diff --git a/ChangeLog b/ChangeLog index 9868f7665..8ed104e9c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +* 6.0.0 +- Google Ads v4_0 release +- Deprecate v1_0 +- Updates to various examples to standardize param names and make + changes to support v4. + * 5.1.0 - Google Ads v3_1 release - Add add_campaign_labels example diff --git a/examples/account_management/create_customer.py b/examples/account_management/create_customer.py index f811e4d57..771e6a1e3 100755 --- a/examples/account_management/create_customer.py +++ b/examples/account_management/create_customer.py @@ -29,8 +29,8 @@ def main(client, manager_customer_id): - customer_service = client.get_service('CustomerService', version='v3') - customer = client.get_type('Customer', version='v3') + customer_service = client.get_service('CustomerService', version='v4') + customer = client.get_type('Customer', version='v4') today = datetime.today().strftime('%Y%m%d %H:%M:%S') customer.descriptive_name.value = ('Account created with ' 'CustomerService on %s' % today) diff --git a/examples/account_management/get_account_changes.py b/examples/account_management/get_account_changes.py index 7b3e6eadf..ac006c2c0 100755 --- a/examples/account_management/get_account_changes.py +++ b/examples/account_management/get_account_changes.py @@ -56,7 +56,7 @@ def resource_name_for_resource_type(resource_type, row): def main(client, customer_id): - ads_service = client.get_service('GoogleAdsService', version='v3') + ads_service = client.get_service('GoogleAdsService', version='v4') query = ('SELECT change_status.resource_name, ' 'change_status.last_change_date_time, ' 'change_status.resource_type, ' @@ -74,9 +74,9 @@ def main(client, customer_id): page_size=ADS_PAGE_SIZE) resource_type_enum = (client.get_type( - 'ChangeStatusResourceTypeEnum', version='v3').ChangeStatusResourceType) + 'ChangeStatusResourceTypeEnum', version='v4').ChangeStatusResourceType) change_status_operation_enum = (client.get_type( - 'ChangeStatusOperationEnum', version='v3').ChangeStatusOperation) + 'ChangeStatusOperationEnum', version='v4').ChangeStatusOperation) try: for row in response: diff --git a/examples/account_management/get_account_information.py b/examples/account_management/get_account_information.py index 32b7380e8..15b2f39bd 100755 --- a/examples/account_management/get_account_information.py +++ b/examples/account_management/get_account_information.py @@ -25,7 +25,7 @@ def main(client, customer_id): - customer_service = client.get_service('CustomerService', version='v3') + customer_service = client.get_service('CustomerService', version='v4') resource_name = customer_service.customer_path(customer_id) diff --git a/examples/account_management/link_manager_to_client.py b/examples/account_management/link_manager_to_client.py index 138a0e8d2..a372f97b3 100755 --- a/examples/account_management/link_manager_to_client.py +++ b/examples/account_management/link_manager_to_client.py @@ -35,14 +35,14 @@ def main(client, customer_id, manager_customer_id): # Extend an invitation to the client while authenticating as the manager. client_link_operation = client.get_type( - 'CustomerClientLinkOperation', version='v3') + 'CustomerClientLinkOperation', version='v4') client_link = client_link_operation.create client_link.client_customer.value = 'customers/{}'.format(customer_id) client_link.status = client.get_type( 'ManagerLinkStatusEnum').PENDING customer_client_link_service = client.get_service( - 'CustomerClientLinkService', version='v3') + 'CustomerClientLinkService', version='v4') response = customer_client_link_service.mutate_customer_client_link( manager_customer_id, client_link_operation) resource_name = response.results[0].resource_name @@ -64,7 +64,7 @@ def main(client, customer_id, manager_customer_id): customer_client_link.resource_name = "{}" '''.format(resource_name) - ga_service = client.get_service('GoogleAdsService', version='v3') + ga_service = client.get_service('GoogleAdsService', version='v4') response = ga_service.search(manager_customer_id, query=query) # Since the google_ads_service.search method returns an iterator we need @@ -74,18 +74,18 @@ def main(client, customer_id, manager_customer_id): manager_link_id = row.customer_client_link.manager_link_id manager_link_operation = client.get_type( - 'CustomerManagerLinkOperation', version='v3') + 'CustomerManagerLinkOperation', version='v4') manager_link = manager_link_operation.update manager_link.resource_name.value = ( 'customers/{}/customerManagerLinks/{}~{}'.format( customer_id, manager_customer_id, manager_link_id)) - manager_link.status = client.get_type('ManagerLinkStatusEnum', version='v3') + manager_link.status = client.get_type('ManagerLinkStatusEnum', version='v4') field_mask = protobuf_helpers.field_mask(None, manager_link) manager_link_operation.update_mask.CopyFrom(field_mask) manager_link_service = client.get_service('ManagerLinkService', - version='v3') + version='v4') response = manager_link_service.mutate_manager_links( manager_customer_id, [manager_link_operation]) resource_name = response.results[0].resource_name diff --git a/examples/account_management/list_accessible_customers.py b/examples/account_management/list_accessible_customers.py index c90176611..265873028 100755 --- a/examples/account_management/list_accessible_customers.py +++ b/examples/account_management/list_accessible_customers.py @@ -27,7 +27,7 @@ def main(client): - customer_service = client.get_service('CustomerService', version='v3') + customer_service = client.get_service('CustomerService', version='v4') try: accessible_customers = customer_service.list_accessible_customers() diff --git a/examples/advanced_operations/add_ad_group_bid_modifier.py b/examples/advanced_operations/add_ad_group_bid_modifier.py index 6d51a01c4..531ff044c 100755 --- a/examples/advanced_operations/add_ad_group_bid_modifier.py +++ b/examples/advanced_operations/add_ad_group_bid_modifier.py @@ -25,9 +25,9 @@ def main(client, customer_id, ad_group_id, bid_modifier_value): - ad_group_service = client.get_service('AdGroupService', version='v3') + ad_group_service = client.get_service('AdGroupService', version='v4') ad_group_bm_service = client.get_service('AdGroupBidModifierService', - version='v3') + version='v4') # Create ad group bid modifier for mobile devices with the specified ad # group ID and bid modifier value. @@ -44,7 +44,7 @@ def main(client, customer_id, ad_group_id, bid_modifier_value): # Sets the device. ad_group_bid_modifier.device.type = client.get_type('DeviceEnum', - version='v3').MOBILE + version='v4').MOBILE # Add the ad group bid modifier. try: diff --git a/examples/advanced_operations/add_app_campaign.py b/examples/advanced_operations/add_app_campaign.py index 52f3db574..988181f4e 100755 --- a/examples/advanced_operations/add_app_campaign.py +++ b/examples/advanced_operations/add_app_campaign.py @@ -74,20 +74,20 @@ def _create_budget(client, customer_id): """ # Retrieves a new campaign budget operation object. campaign_budget_operation = client.get_type('CampaignBudgetOperation', - version='v2') + version='v4') # Creates a campaign budget. campaign_budget = campaign_budget_operation.create campaign_budget.name.value = f'Interplanetary Cruise #{uuid4()}' campaign_budget.amount_micros.value = 50000000 campaign_budget.delivery_method = client.get_type( - 'BudgetDeliveryMethodEnum', version='v2').STANDARD + 'BudgetDeliveryMethodEnum', version='v4').STANDARD # An App campaign cannot use a shared campaign budget. # explicitly_shared must be set to false. campaign_budget.explicitly_shared.value = False # Retrieves the campaign budget service. campaign_budget_service = client.get_service('CampaignBudgetService', - version='v2') + version='v4') # Submits the campaign budget operation to add the campaign budget. response = campaign_budget_service.mutate_campaign_budgets( customer_id, [campaign_budget_operation]) @@ -107,8 +107,8 @@ def _create_campaign(client, customer_id, budget_resource_name): Returns: A resource_name str for the newly created app campaign. """ - campaign_service = client.get_service('CampaignService', version='v2') - campaign_operation = client.get_type('CampaignOperation', version='v2') + campaign_service = client.get_service('CampaignService', version='v4') + campaign_operation = client.get_type('CampaignOperation', version='v4') campaign = campaign_operation.create campaign.name.value = f'Interplanetary Cruise App #{uuid4()}' campaign.campaign_budget.value = budget_resource_name @@ -116,14 +116,14 @@ def _create_campaign(client, customer_id, budget_resource_name): # prevent the ads from immediately serving. Set to ENABLED once you've # added targeting and the ads are ready to serve. campaign.status = client.get_type( - 'CampaignStatusEnum', version='v2').PAUSED + 'CampaignStatusEnum', version='v4').PAUSED # All App campaigns have an advertising_channel_type of # MULTI_CHANNEL to reflect the fact that ads from these campaigns are # eligible to appear on multiple channels. campaign.advertising_channel_type = client.get_type( - 'AdvertisingChannelTypeEnum', version='v2').MULTI_CHANNEL + 'AdvertisingChannelTypeEnum', version='v4').MULTI_CHANNEL campaign.advertising_channel_sub_type = client.get_type( - 'AdvertisingChannelSubTypeEnum', version='v2').APP_CAMPAIGN + 'AdvertisingChannelSubTypeEnum', version='v4').APP_CAMPAIGN # Sets the target CPA to $1 / app install. # # campaign_bidding_strategy is a 'oneof' message so setting target_cpa @@ -136,11 +136,11 @@ def _create_campaign(client, customer_id, budget_resource_name): campaign.app_campaign_setting.app_id.value = ( 'com.google.android.apps.adwords') campaign.app_campaign_setting.app_store = client.get_type( - 'AppCampaignAppStoreEnum', version='v2').GOOGLE_APP_STORE + 'AppCampaignAppStoreEnum', version='v4').GOOGLE_APP_STORE # Optimize this campaign for getting new users for your app. campaign.app_campaign_setting.bidding_strategy_goal_type = (client .get_type('AppCampaignBiddingStrategyGoalTypeEnum', - version='v2').OPTIMIZE_INSTALLS_TARGET_INSTALL_COST) + version='v4').OPTIMIZE_INSTALLS_TARGET_INSTALL_COST) # Optional fields campaign.start_date.value = (datetime.now() + timedelta(1)).strftime('%Y%m%d') @@ -152,7 +152,7 @@ def _create_campaign(client, customer_id, budget_resource_name): # your campaign on people who are most likely to complete the # corresponding in-app actions. # selective_optimization1 = (client.get_type('StringValue', - # version='v2')) + # version='v4')) # selective_optimization1.value = ( # 'INSERT_CONVERSION_ACTION_RESOURCE_NAME_HERE') # campaign.selective_optimization.conversion_actions.extend( @@ -178,15 +178,15 @@ def _set_campaign_targeting_criteria(client, customer_id, campaign_resource_name: the campaign to apply targeting to """ campaign_criterion_service = client.get_service( - 'CampaignCriterionService', version='v2') + 'CampaignCriterionService', version='v4') geo_target_constant_service = client.get_service( - 'GeoTargetConstantService', version='v2') + 'GeoTargetConstantService', version='v4') language_constant_service = client.get_service( - 'LanguageConstantService', version='v2') + 'LanguageConstantService', version='v4') location_type = client.get_type( - 'CriterionTypeEnum', version='v2').LOCATION + 'CriterionTypeEnum', version='v4').LOCATION language_type = client.get_type( - 'CriterionTypeEnum', version='v2').LANGUAGE + 'CriterionTypeEnum', version='v4').LANGUAGE campaign_criterion_operations = [] # Creates the location campaign criteria. @@ -197,7 +197,7 @@ def _set_campaign_targeting_criteria(client, customer_id, for location_id in ['21137', # California '2484']: # Mexico campaign_criterion_operation = client.get_type( - 'CampaignCriterionOperation', version='v2') + 'CampaignCriterionOperation', version='v4') campaign_criterion = campaign_criterion_operation.create campaign_criterion.campaign.value = campaign_resource_name campaign_criterion.type = location_type @@ -209,7 +209,7 @@ def _set_campaign_targeting_criteria(client, customer_id, for language_id in ['1000', # English '1003']: # Spanish campaign_criterion_operation = client.get_type( - 'CampaignCriterionOperation', version='v2') + 'CampaignCriterionOperation', version='v4') campaign_criterion = campaign_criterion_operation.create campaign_criterion.campaign.value = campaign_resource_name campaign_criterion.type = language_type @@ -235,18 +235,18 @@ def _create_ad_group(client, customer_id, campaign_resource_name): Returns: A resource_name str for the newly created ad group. """ - ad_group_service = client.get_service('AdGroupService', version='v2') + ad_group_service = client.get_service('AdGroupService', version='v4') # Creates the ad group. # Note that the ad group type must not be set. # Since the advertising_channel_sub_type is APP_CAMPAIGN, # 1- you cannot override bid settings at the ad group level. # 2- you cannot add ad group criteria. - ad_group_operation = client.get_type('AdGroupOperation', version='v2') + ad_group_operation = client.get_type('AdGroupOperation', version='v4') ad_group = ad_group_operation.create ad_group.name.value = f'Earth to Mars cruises {uuid4()}' ad_group.status = client.get_type( - 'AdGroupStatusEnum', version='v2').ENABLED + 'AdGroupStatusEnum', version='v4').ENABLED ad_group.campaign.value = campaign_resource_name ad_group_response = ad_group_service.mutate_ad_groups( @@ -266,11 +266,11 @@ def _create_app_ad(client, customer_id, ad_group_resource_name): ad_group_resource_name: the ad group where the ad will be added. """ # Creates the ad group ad. - ad_group_ad_service = client.get_service('AdGroupAdService', version='v2') - ad_group_ad_operation = client.get_type('AdGroupAdOperation', version='v2') + ad_group_ad_service = client.get_service('AdGroupAdService', version='v4') + ad_group_ad_operation = client.get_type('AdGroupAdOperation', version='v4') ad_group_ad = ad_group_ad_operation.create ad_group_ad.status = client.get_type( - 'AdGroupAdStatusEnum', version='v2').ENABLED + 'AdGroupAdStatusEnum', version='v4').ENABLED ad_group_ad.ad_group.value = ad_group_resource_name # ad_data is a 'oneof' message so setting app_ad # is mutually exclusive with ad data fields such as @@ -293,7 +293,7 @@ def _create_app_ad(client, customer_id, ad_group_resource_name): def _create_ad_text_asset(client, text): - ad_text_asset = client.get_type('AdTextAsset', version='v2') + ad_text_asset = client.get_type('AdTextAsset', version='v4') ad_text_asset.text.value = text return ad_text_asset diff --git a/examples/advanced_operations/add_dynamic_page_feed.py b/examples/advanced_operations/add_dynamic_page_feed.py index 8eb91b74f..3767619f1 100755 --- a/examples/advanced_operations/add_dynamic_page_feed.py +++ b/examples/advanced_operations/add_dynamic_page_feed.py @@ -64,7 +64,7 @@ def main(client, customer_id, campaign_id, ad_group_id): # Associate the page feed with the campaign. update_campaign_dsa_setting(client, customer_id, campaign_id, feed_details) - ad_group_service = client.get_service('AdGroupService', version='v3') + ad_group_service = client.get_service('AdGroupService', version='v4') ad_group_resource_name = ad_group_service.ad_group_path(customer_id, ad_group_id) @@ -94,14 +94,14 @@ def create_feed(client, customer_id): A FeedDetails instance with information about the newly created feed. """ # Retrieve a new feed operation object. - feed_operation = client.get_type('FeedOperation', version='v3') + feed_operation = client.get_type('FeedOperation', version='v4') # Create a new feed. feed = feed_operation.create feed.name.value = 'DSA Feed #{}'.format(uuid.uuid4()) - feed.origin = client.get_type('FeedOriginEnum', version='v3').USER + feed.origin = client.get_type('FeedOriginEnum', version='v4').USER feed_attribute_type_enum = client.get_type('FeedAttributeTypeEnum', - version='v3') + version='v4') # Create the feed's attributes. feed_attribute_url = feed.attributes.add() @@ -113,7 +113,7 @@ def create_feed(client, customer_id): feed_attribute_label.name.value = 'Label' # Retrieve the feed service. - feed_service = client.get_service('FeedService', version='v3') + feed_service = client.get_service('FeedService', version='v4') # Send the feed operation and add the feed. response = feed_service.mutate_feeds(customer_id, [feed_operation]) @@ -142,7 +142,7 @@ def get_feed_details(client, customer_id, resource_name): LIMIT 1 '''.format(resource_name) - ga_service = client.get_service('GoogleAdsService', version='v3') + ga_service = client.get_service('GoogleAdsService', version='v4') response = ga_service.search(customer_id, query=query) # Maps specific fields in each row in the response to a dict. This would @@ -167,14 +167,14 @@ def create_feed_mapping(client, customer_id, feed_details): """ # Retrieve a new feed mapping operation object. feed_mapping_operation = client.get_type('FeedMappingOperation', - version='v3') + version='v4') # Create a new feed mapping. feed_mapping = feed_mapping_operation.create feed_mapping.criterion_type = client.get_type( - 'FeedMappingCriterionTypeEnum', version='v3').DSA_PAGE_FEED + 'FeedMappingCriterionTypeEnum', version='v4').DSA_PAGE_FEED feed_mapping.feed.value = feed_details.resource_name dsa_page_feed_field_enum = client.get_type('DsaPageFeedCriterionFieldEnum', - version='v3') + version='v4') url_field_mapping = feed_mapping.attribute_field_mappings.add() url_field_mapping.feed_attribute_id.value = feed_details.url_attribute_id @@ -187,7 +187,7 @@ def create_feed_mapping(client, customer_id, feed_details): # Retrieve the feed mapping service. feed_mapping_service = client.get_service('FeedMappingService', - version='v3') + version='v4') # Submit the feed mapping operation and add the feed mapping. response = feed_mapping_service.mutate_feed_mappings( customer_id, [feed_mapping_operation]) @@ -213,7 +213,7 @@ def create_feed_items(client, customer_id, feed_details, label): "http://www.example.com/discounts/flight-deals"] def map_feed_urls(url): - feed_item_operation = client.get_type('FeedItemOperation', version='v3') + feed_item_operation = client.get_type('FeedItemOperation', version='v4') feed_item = feed_item_operation.create feed_item.feed.value = feed_details.resource_name @@ -235,7 +235,7 @@ def map_feed_urls(url): feed_item_operations = list(map(map_feed_urls, urls)) # Retrieve the feed item service. - feed_item_service = client.get_service('FeedItemService', version='v3') + feed_item_service = client.get_service('FeedItemService', version='v4') # Submit the feed item operations and add the feed items. response = feed_item_service.mutate_feed_items(customer_id, feed_item_operations) @@ -267,7 +267,7 @@ def update_campaign_dsa_setting(client, customer_id, campaign_id, feed_details): LIMIT 1 '''.format(campaign_id) - ga_service = client.get_service('GoogleAdsService', version='v3') + ga_service = client.get_service('GoogleAdsService', version='v4') results = ga_service.search(customer_id, query=query) for row in results: @@ -282,7 +282,7 @@ def update_campaign_dsa_setting(client, customer_id, campaign_id, feed_details): campaign_id)) # Retrieve a new campaign operation - campaign_operation = client.get_type('CampaignOperation', version='v3') + campaign_operation = client.get_type('CampaignOperation', version='v4') # Copy the retrieved campaign onto the new campaign operation. campaign_operation.update.CopyFrom(campaign) updated_campaign = campaign_operation.update @@ -294,7 +294,7 @@ def update_campaign_dsa_setting(client, customer_id, campaign_id, feed_details): campaign_operation.update_mask.CopyFrom(field_mask) # Retrieve the campaign service. - campaign_service = client.get_service('CampaignService', version='v3') + campaign_service = client.get_service('CampaignService', version='v4') # Submit the campaign operation and update the campaign. response = campaign_service.mutate_campaigns(customer_id, [campaign_operation]) @@ -315,7 +315,7 @@ def add_dsa_targeting(client, customer_id, ad_group_resource_name, label): """ # Retrieve a new ad group criterion operation object. ad_group_criterion_operation = client.get_type( - 'AdGroupCriterionOperation', version='v3') + 'AdGroupCriterionOperation', version='v4') # Create a new ad group criterion. ad_group_criterion = ad_group_criterion_operation.create ad_group_criterion.ad_group.value = ad_group_resource_name @@ -326,11 +326,11 @@ def add_dsa_targeting(client, customer_id, ad_group_resource_name, label): webpage_criterion_info = ad_group_criterion.webpage.conditions.add() webpage_criterion_info.argument.value = label webpage_criterion_info.operand = client.get_type( - 'WebpageConditionOperandEnum', version='v3').CUSTOM_LABEL + 'WebpageConditionOperandEnum', version='v4').CUSTOM_LABEL # Retrieve the ad group criterion service. ad_group_criterion_service = client.get_service('AdGroupCriterionService', - version='v3') + version='v4') response = ad_group_criterion_service.mutate_ad_group_criteria( customer_id, [ad_group_criterion_operation]) resource_name = response.results[0].resource_name diff --git a/examples/advanced_operations/add_dynamic_search_ads.py b/examples/advanced_operations/add_dynamic_search_ads.py index 1009a857c..6c1d3d811 100755 --- a/examples/advanced_operations/add_dynamic_search_ads.py +++ b/examples/advanced_operations/add_dynamic_search_ads.py @@ -65,17 +65,17 @@ def create_budget(client, customer_id): """ # Creates a campaign budget operation. campaign_budget_operation = client.get_type('CampaignBudgetOperation', - version='v3') + version='v4') # Issues a mutate request to add campaign budgets. campaign_budget = campaign_budget_operation.create campaign_budget.name.value = f'Interplanetary Cruise #{uuid4()}' campaign_budget.amount_micros.value = 50000000 campaign_budget.delivery_method = client.get_type( - 'BudgetDeliveryMethodEnum', version='v3').STANDARD + 'BudgetDeliveryMethodEnum', version='v4').STANDARD # Retrieve the campaign budget service. campaign_budget_service = client.get_service('CampaignBudgetService', - version='v3') + version='v4') # Submit the campaign budget operation to add the campaign budget. response = campaign_budget_service.mutate_campaign_budgets( customer_id, [campaign_budget_operation]) @@ -98,16 +98,16 @@ def create_campaign(client, customer_id, budget_resource_name): A resource_name str for the newly created Campaign. """ # Retrieve a new campaign operation object. - campaign_operation = client.get_type('CampaignOperation', version='v3') + campaign_operation = client.get_type('CampaignOperation', version='v4') campaign = campaign_operation.create campaign.name.value = f'Interplanetary Cruise #{uuid4()}' campaign.advertising_channel_type = client.get_type( - 'AdvertisingChannelTypeEnum', version='v3').SEARCH + 'AdvertisingChannelTypeEnum', version='v4').SEARCH # Recommendation: Set the campaign to PAUSED when creating it to prevent the # ads from immediately serving. Set to ENABLED once you've added targeting # and the ads are ready to serve. campaign.status = client.get_type('CampaignStatusEnum', - version='v3').PAUSED + version='v4').PAUSED campaign.manual_cpc.enhanced_cpc_enabled.value = True campaign.campaign_budget.value = budget_resource_name # Required: Enable the campaign for DSAs by setting the campaign's dynamic @@ -121,7 +121,7 @@ def create_campaign(client, customer_id, budget_resource_name): datetime.now() + timedelta(days=365)).strftime('%Y%m%d') # Retrieve the campaign service. - campaign_service = client.get_service('CampaignService', version='v3') + campaign_service = client.get_service('CampaignService', version='v4') # Issues a mutate request to add campaign. response = campaign_service.mutate_campaigns( @@ -145,15 +145,15 @@ def create_ad_group(client, customer_id, campaign_resource_name): A resource_name str for the newly created Ad Group. """ # Retrieve a new ad group operation object. - ad_group_operation = client.get_type('AdGroupOperation', version='v3') + ad_group_operation = client.get_type('AdGroupOperation', version='v4') # Create an ad group. ad_group = ad_group_operation.create # Required: set the ad group's type to Dynamic Search Ads. ad_group.type = client.get_type('AdGroupTypeEnum', - version='v3').SEARCH_DYNAMIC_ADS + version='v4').SEARCH_DYNAMIC_ADS ad_group.name.value = f'Earth to Mars Cruises {uuid4()}' ad_group.campaign.value = campaign_resource_name - ad_group.status = client.get_type('AdGroupStatusEnum', version='v3').PAUSED + ad_group.status = client.get_type('AdGroupStatusEnum', version='v4').PAUSED # Recommended: set a tracking URL template for your ad group if you want to # use URL tracking software. ad_group.tracking_url_template.value = ( @@ -162,7 +162,7 @@ def create_ad_group(client, customer_id, campaign_resource_name): ad_group.cpc_bid_micros.value = 10000000 # Retrieve the ad group service. - ad_group_service = client.get_service('AdGroupService', version='v3') + ad_group_service = client.get_service('AdGroupService', version='v4') # Issues a mutate request to add the ad group. response = ad_group_service.mutate_ad_groups(customer_id, @@ -183,7 +183,7 @@ def create_expanded_dsa(client, customer_id, ad_group_resource_name): ad_group_resource_name: a resource_name str for an Ad Group. """ # Retrieve a new ad group ad operation object. - ad_group_ad_operation = client.get_type('AdGroupAdOperation', version='v3') + ad_group_ad_operation = client.get_type('AdGroupAdOperation', version='v4') # Create and expanded dynamic search ad. This ad will have its headline, # display URL and final URL auto-generated at serving time according to # domain name specific information provided by DynamicSearchAdSetting at @@ -191,14 +191,14 @@ def create_expanded_dsa(client, customer_id, ad_group_resource_name): ad_group_ad = ad_group_ad_operation.create # Optional: set the ad status. ad_group_ad.status = client.get_type('AdGroupAdStatusEnum', - version='v3').PAUSED + version='v4').PAUSED # Set the ad description. ad_group_ad.ad.expanded_dynamic_search_ad.description.value = ( 'Buy tickets now!') ad_group_ad.ad_group.value = ad_group_resource_name # Retrieve the ad group ad service. - ad_group_ad_service = client.get_service('AdGroupAdService', version='v3') + ad_group_ad_service = client.get_service('AdGroupAdService', version='v4') # Submit the ad group ad operation to add the ad group ad. response = ad_group_ad_service.mutate_ad_group_ads(customer_id, [ad_group_ad_operation]) @@ -217,7 +217,7 @@ def add_webpage_criterion(client, customer_id, ad_group_resource_name): """ # Retrieve a new ad group criterion operation. ad_group_criterion_operation = client.get_type( - 'AdGroupCriterionOperation', version='v3') + 'AdGroupCriterionOperation', version='v4') # Create an ad group criterion for special offers for Mars Cruise. criterion = ad_group_criterion_operation.create criterion.ad_group.value = ad_group_resource_name @@ -225,22 +225,22 @@ def add_webpage_criterion(client, customer_id, ad_group_resource_name): criterion.cpc_bid_micros.value = 10000000 # Optional: set the status. criterion.status = client.get_type( - 'AdGroupCriterionStatusEnum', version='v3').PAUSED + 'AdGroupCriterionStatusEnum', version='v4').PAUSED # Sets the criterion to match a specific page URL and title. criterion.webpage.criterion_name.value = 'Special Offers' webpage_info_url = criterion.webpage.conditions.add() webpage_info_url.operand = client.get_type( - 'WebpageConditionOperandEnum', version='v3').URL + 'WebpageConditionOperandEnum', version='v4').URL webpage_info_url.argument.value = '/specialoffers' webpage_info_page_title = criterion.webpage.conditions.add() webpage_info_page_title.operand = client.get_type( - 'WebpageConditionOperandEnum', version='v3').PAGE_TITLE + 'WebpageConditionOperandEnum', version='v4').PAGE_TITLE webpage_info_page_title.argument.value = 'Special Offer' # Retrieve the ad group criterion service. ad_group_criterion_service = client.get_service('AdGroupCriterionService', - version='v3') + version='v4') # Issues a mutate request to add the ad group criterion. response = ad_group_criterion_service.mutate_ad_group_criteria( customer_id, [ad_group_criterion_operation]) diff --git a/examples/advanced_operations/add_expanded_text_ad_with_upgraded_urls.py b/examples/advanced_operations/add_expanded_text_ad_with_upgraded_urls.py index 2ce1dfc7b..ff00ad640 100755 --- a/examples/advanced_operations/add_expanded_text_ad_with_upgraded_urls.py +++ b/examples/advanced_operations/add_expanded_text_ad_with_upgraded_urls.py @@ -22,16 +22,16 @@ def main(client, customer_id, ad_group_id): - ad_group_ad_service = client.get_service('AdGroupAdService', version='v3') - ad_group_service = client.get_service('AdGroupService', version='v3') + ad_group_ad_service = client.get_service('AdGroupAdService', version='v4') + ad_group_service = client.get_service('AdGroupService', version='v4') # Create ad group ad. - ad_group_ad_operation = client.get_type('AdGroupAdOperation', version='v3') + ad_group_ad_operation = client.get_type('AdGroupAdOperation', version='v4') ad_group_ad = ad_group_ad_operation.create ad_group_ad.ad_group.value = ad_group_service.ad_group_path( customer_id, ad_group_id) ad_group_ad.status = client.get_type('AdGroupAdStatusEnum', - version='v3').PAUSED + version='v4').PAUSED # Set expanded text ad info final_url = ad_group_ad.ad.final_urls.add() diff --git a/examples/advanced_operations/add_gmail_ad.py b/examples/advanced_operations/add_gmail_ad.py index f788068cc..4d09c64a9 100755 --- a/examples/advanced_operations/add_gmail_ad.py +++ b/examples/advanced_operations/add_gmail_ad.py @@ -42,27 +42,33 @@ def main(client, customer_id, ad_group_id): if marketing_img_content_type != 'image/jpeg': raise ValueError('Marketing image has invalid content-type.') - media_file_logo_op = client.get_type('MediaFileOperation') + media_file_logo_op = client.get_type('MediaFileOperation', version='v4') media_file_logo = media_file_logo_op.create - media_file_logo.type = client.get_type('MediaTypeEnum').IMAGE + media_file_logo.type = client.get_type('MediaTypeEnum', version='v4').IMAGE media_file_logo.image.data.value = logo_img_bytes - media_file_logo.mime_type = client.get_type('MimeTypeEnum').IMAGE_PNG + media_file_logo.mime_type = client.get_type('MimeTypeEnum', + version='v4').IMAGE_PNG - media_file_marketing_op = client.get_type('MediaFileOperation') + media_file_marketing_op = client.get_type('MediaFileOperation', + version='v4') media_file_marketing = media_file_marketing_op.create - media_file_marketing.type = client.get_type('MediaTypeEnum').IMAGE + media_file_marketing.type = client.get_type('MediaTypeEnum', + version='v4').IMAGE media_file_marketing.image.data.value = marketing_img_bytes - media_file_marketing.mime_type = client.get_type('MimeTypeEnum').IMAGE_JPEG + media_file_marketing.mime_type = client.get_type('MimeTypeEnum', + version='v4').IMAGE_JPEG - media_file_service = client.get_service('MediaFileService') + media_file_service = client.get_service('MediaFileService', + version='v4') image_response = media_file_service.mutate_media_files( customer_id, [media_file_logo_op, media_file_marketing_op]) image_resource_names = list(map(lambda response: response.resource_name, image_response.results)) - ad_group_ad_service = client.get_service('AdGroupAdService') - ad_group_ad_op = client.get_type('AdGroupAdOperation') + ad_group_ad_service = client.get_service('AdGroupAdService', version='v4') + ad_group_service = client.get_service('AdGroupService', version='v4') + ad_group_ad_op = client.get_type('AdGroupAdOperation', version='v4') ad_group_ad = ad_group_ad_op.create gmail_ad = ad_group_ad.ad.gmail_ad gmail_ad.teaser.headline.value = 'Dream' @@ -77,26 +83,25 @@ def main(client, customer_id, ad_group_id): final_url.value = 'http://www.example.com' ad_group_ad.ad.name.value = 'Gmail Ad #{}'.format(str(uuid4())) - ad_group_ad.status = client.get_type('AdGroupAdStatusEnum').PAUSED - ad_group_ad.ad_group.value = ad_group_ad_service.ad_group_ad_path( + ad_group_ad.status = client.get_type('AdGroupAdStatusEnum', + version='v4').PAUSED + ad_group_ad.ad_group.value = ad_group_service.ad_group_path( customer_id, ad_group_id) try: add_gmail_ad_response = ad_group_ad_service.mutate_ad_group_ads( customer_id, [ad_group_ad_op]) except GoogleAdsException as ex: - print('Request with ID "{}" failed with status "{}" and includes the ' - 'following errors:'.format(ex.request_id, ex.error.code().name)) + 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('\tError with message "{}".'.format(error.message)) + print(f'\tError with message "{error.message}".') if error.location: for field_path_element in error.location.field_path_elements: - print('\t\tOn field: {}'.format( - field_path_element.field_name)) + print(f'\t\tOn field: {field_path_element.field_name}') sys.exit(1) - print('Created gmail ad {}.'.format( - add_gmail_ad_response.results[0].resource_name)) + print(f'Created gmail ad {add_gmail_ad_response.results[0].resource_name}.') def get_image(url): diff --git a/examples/advanced_operations/add_sitelink.py b/examples/advanced_operations/add_sitelink.py index 3a8d9d814..e6f0d8425 100755 --- a/examples/advanced_operations/add_sitelink.py +++ b/examples/advanced_operations/add_sitelink.py @@ -24,9 +24,9 @@ def main(client, customer_id): # Create an extension setting. - feed_service = client.get_service('ExtensionFeedItemService', version='v3') + feed_service = client.get_service('ExtensionFeedItemService', version='v4') - extension_feed_item_operation = client.get_type('ExtensionFeedItemOperation', version='v3') + extension_feed_item_operation = client.get_type('ExtensionFeedItemOperation', version='v4') extension_feed_item = extension_feed_item_operation.create extension_feed_item.sitelink_feed_item.link_text.value = 'Text' extension_feed_item.sitelink_feed_item.line1.value = 'Line 1 Value' diff --git a/examples/advanced_operations/add_smart_display_ad.py b/examples/advanced_operations/add_smart_display_ad.py index 2c4646094..18bb5fb30 100755 --- a/examples/advanced_operations/add_smart_display_ad.py +++ b/examples/advanced_operations/add_smart_display_ad.py @@ -90,7 +90,7 @@ def main(client, customer_id, marketing_image_asset_resource_name=None, def _create_budget(client, customer_id): campaign_budget_operation = client.get_type( - 'CampaignBudgetOperation', version='v2') + 'CampaignBudgetOperation', version='v4') campaign_budget = campaign_budget_operation.create campaign_budget.name.value = f'Interplanetary Cruise Budget #{uuid4()}' campaign_budget.delivery_method = client.get_type( @@ -98,7 +98,7 @@ def _create_budget(client, customer_id): campaign_budget.amount_micros.value = 500000 campaign_budget_service = client.get_service( - 'CampaignBudgetService', version='v2') + 'CampaignBudgetService', version='v4') try: campaign_budget_response = ( @@ -118,19 +118,19 @@ def _create_budget(client, customer_id): def _create_smart_display_campaign(client, customer_id, budget_resource_name): - campaign_operation = client.get_type('CampaignOperation', version='v2') + campaign_operation = client.get_type('CampaignOperation', version='v4') campaign = campaign_operation.create campaign.name.value = f'Smart Display Campaign #{uuid4()}' advertising_channel_type_enum = client.get_type( - 'AdvertisingChannelTypeEnum', version='v2') + 'AdvertisingChannelTypeEnum', version='v4') campaign.advertising_channel_type = advertising_channel_type_enum.DISPLAY advertising_channel_sub_type_enum = client.get_type( - 'AdvertisingChannelSubTypeEnum', version='v2') + 'AdvertisingChannelSubTypeEnum', version='v4') # Smart Display campaign requires the advertising_channel_sub_type as # "DISPLAY_SMART_CAMPAIGN". campaign.advertising_channel_sub_type = ( advertising_channel_sub_type_enum.DISPLAY_SMART_CAMPAIGN) - campaign_status_enum = client.get_type('CampaignStatusEnum', version='v2') + campaign_status_enum = client.get_type('CampaignStatusEnum', version='v4') campaign.status = campaign_status_enum.PAUSED # Smart Display campaign requires the TargetCpa bidding strategy. campaign.target_cpa.target_cpa_micros.value = 5000000 @@ -141,7 +141,7 @@ def _create_smart_display_campaign(client, customer_id, budget_resource_name): end_date = start_date + datetime.timedelta(days=365) campaign.end_date.value = end_date.strftime(_DATE_FORMAT) - campaign_service = client.get_service('CampaignService', version='v2') + campaign_service = client.get_service('CampaignService', version='v4') try: campaign_response = campaign_service.mutate_campaigns( @@ -160,14 +160,14 @@ def _create_smart_display_campaign(client, customer_id, budget_resource_name): def _create_ad_group(client, customer_id, campaign_resource_name): - ad_group_operation = client.get_type('AdGroupOperation', version='v2') + ad_group_operation = client.get_type('AdGroupOperation', version='v4') ad_group = ad_group_operation.create ad_group.name.value = f'Earth to Mars Cruises #{uuid4()}' - ad_group_status_enum = client.get_type('AdGroupStatusEnum', version='v2') + ad_group_status_enum = client.get_type('AdGroupStatusEnum', version='v4') ad_group.status = ad_group_status_enum.PAUSED ad_group.campaign.value = campaign_resource_name - ad_group_service = client.get_service('AdGroupService', version='v2') + ad_group_service = client.get_service('AdGroupService', version='v4') try: ad_group_response = ad_group_service.mutate_ad_groups( @@ -190,14 +190,14 @@ def _upload_image_asset(client, customer_id, image_url, image_width, # Download image from URL image_content = requests.get(image_url).content - asset_operation = client.get_type('AssetOperation', version='v2') + asset_operation = client.get_type('AssetOperation', version='v4') asset = asset_operation.create # Optional: Provide a unique friendly name to identify your asset. If you # specify the name field, then both the asset name and the image being # uploaded should be unique, and should not match another ACTIVE asset in # this customer account. # asset.name.value = f'Jupiter Trip #{uuid4()}' - asset_type_enum = client.get_type('AssetTypeEnum', version='v2') + asset_type_enum = client.get_type('AssetTypeEnum', version='v4') asset.type = asset_type_enum.IMAGE image_asset = asset.image_asset image_asset.data.value = image_content @@ -207,7 +207,7 @@ def _upload_image_asset(client, customer_id, image_url, image_width, image_asset.full_size.height_pixels.value = image_height image_asset.full_size.url.value = image_url - asset_service = client.get_service('AssetService', version='v2') + asset_service = client.get_service('AssetService', version='v4') try: mutate_asset_response = ( @@ -227,11 +227,11 @@ def _upload_image_asset(client, customer_id, image_url, image_width, def _create_responsive_display_ad(client, customer_id, ad_group_resource_name, marketing_image_asset_resource_name, square_marketing_image_asset_resource_name): - ad_group_ad_operation = client.get_type('AdGroupAdOperation', version='v2') + ad_group_ad_operation = client.get_type('AdGroupAdOperation', version='v4') ad_group_ad = ad_group_ad_operation.create ad_group_ad.ad_group.value = ad_group_resource_name ad_group_ad.status = client.get_type( - 'AdGroupAdStatusEnum', version='v2').PAUSED + 'AdGroupAdStatusEnum', version='v4').PAUSED ad = ad_group_ad.ad final_url = ad.final_urls.add() final_url.value = 'https://www.example.com' @@ -251,7 +251,7 @@ def _create_responsive_display_ad(client, customer_id, ad_group_resource_name, responsive_display_ad.price_prefix.value = 'as low as' responsive_display_ad.promo_text.value = 'Free shipping!' - ad_group_ad_service = client.get_service('AdGroupAdService', version='v2') + ad_group_ad_service = client.get_service('AdGroupAdService', version='v4') try: ad_group_ad_response = ad_group_ad_service.mutate_ad_group_ads( diff --git a/examples/advanced_operations/create_and_attach_shared_keyword_set.py b/examples/advanced_operations/create_and_attach_shared_keyword_set.py index 2f2e2d41e..59363e7af 100755 --- a/examples/advanced_operations/create_and_attach_shared_keyword_set.py +++ b/examples/advanced_operations/create_and_attach_shared_keyword_set.py @@ -26,19 +26,19 @@ def main(client, customer_id, campaign_id): - campaign_service = client.get_service('CampaignService', version='v3') - shared_set_service = client.get_service('SharedSetService', version='v3') + campaign_service = client.get_service('CampaignService', version='v4') + shared_set_service = client.get_service('SharedSetService', version='v4') shared_criterion_service = client.get_service('SharedCriterionService', - version='v3') + version='v4') campaign_shared_set_service = client.get_service('CampaignSharedSetService', - version='v3') + version='v4') # Create shared negative keyword set. - shared_set_operation = client.get_type('SharedSetOperation', version='v3') + shared_set_operation = client.get_type('SharedSetOperation', version='v4') shared_set = shared_set_operation.create shared_set.name.value = 'API Negative keyword list - %s' % uuid.uuid4() shared_set.type = client.get_type('SharedSetTypeEnum', - version='v3').NEGATIVE_KEYWORDS + version='v4').NEGATIVE_KEYWORDS try: shared_set_resource_name = shared_set_service.mutate_shared_sets( @@ -61,12 +61,12 @@ def main(client, customer_id, campaign_id): shared_criteria_operations = [] for keyword in keywords: shared_criterion_operation = client.get_type('SharedCriterionOperation', - version='v3') + version='v4') shared_criterion = shared_criterion_operation.create keyword_info = shared_criterion.keyword keyword_info.text.value = keyword keyword_info.match_type = client.get_type('KeywordMatchTypeEnum', - version='v3').BROAD + version='v4').BROAD shared_criterion.shared_set.value = shared_set_resource_name shared_criteria_operations.append(shared_criterion_operation) @@ -87,7 +87,7 @@ def main(client, customer_id, campaign_id): print('Created shared criterion "%s".' % shared_criterion.resource_name) campaign_set_operation = client.get_type('CampaignSharedSetOperation', - version='v3') + version='v4') campaign_set = campaign_set_operation.create campaign_set.campaign.value = campaign_service.campaign_path( customer_id, campaign_id) diff --git a/examples/advanced_operations/find_and_remove_criteria_from_shared_set.py b/examples/advanced_operations/find_and_remove_criteria_from_shared_set.py index 4b1c85527..477079aae 100755 --- a/examples/advanced_operations/find_and_remove_criteria_from_shared_set.py +++ b/examples/advanced_operations/find_and_remove_criteria_from_shared_set.py @@ -26,9 +26,9 @@ def main(client, customer_id, page_size, campaign_id): - ga_service = client.get_service('GoogleAdsService', version='v3') + ga_service = client.get_service('GoogleAdsService', version='v4') shared_criterion_service = client.get_service('SharedCriterionService', - version='v3') + version='v4') # First, retrieve all shared sets associated with the campaign. shared_sets_query = ( @@ -78,14 +78,14 @@ def main(client, customer_id, page_size, campaign_id): # Use the enum type to determine the enum name from the value. keyword_match_type_enum = ( - client.get_type('KeywordMatchTypeEnum', version='v3').KeywordMatchType) + client.get_type('KeywordMatchTypeEnum', version='v4').KeywordMatchType) criterion_ids = [] for row in shared_criteria_response: shared_criterion = row.shared_criterion shared_criterion_resource_name = shared_criterion.resource_name if (shared_criterion.type == - client.get_type('CriterionTypeEnum', version='v3').KEYWORD): + client.get_type('CriterionTypeEnum', version='v4').KEYWORD): keyword = shared_criterion.keyword print('Shared criterion with resource name "%s" for negative ' 'keyword with text "%s" and match type "%s" was found.' @@ -98,7 +98,7 @@ def main(client, customer_id, page_size, campaign_id): # Finally, remove the criteria. for criteria_id in criterion_ids: shared_criterion_operation = client.get_type('SharedCriterionOperation', - version='v3') + version='v4') shared_criterion_operation.remove = criteria_id operations.append(shared_criterion_operation) diff --git a/examples/advanced_operations/get_ad_group_bid_modifiers.py b/examples/advanced_operations/get_ad_group_bid_modifiers.py index b2d1217e9..42af63d3f 100755 --- a/examples/advanced_operations/get_ad_group_bid_modifiers.py +++ b/examples/advanced_operations/get_ad_group_bid_modifiers.py @@ -24,7 +24,7 @@ def main(client, customer_id, page_size, ad_group_id=None): - ga_service = client.get_service('GoogleAdsService', version='v3') + ga_service = client.get_service('GoogleAdsService', version='v4') query = ('SELECT campaign.id, ad_group.id, ' 'ad_group_bid_modifier.criterion_id, ' @@ -37,7 +37,7 @@ def main(client, customer_id, page_size, ad_group_id=None): results = ga_service.search(customer_id, query=query, page_size=page_size) # Use the enum type to determine the enum name from the value. - device_enum = client.get_type('DeviceEnum', version='v3').Device + device_enum = client.get_type('DeviceEnum', version='v4').Device try: for row in results: diff --git a/examples/advanced_operations/use_portfolio_bidding_strategy.py b/examples/advanced_operations/use_portfolio_bidding_strategy.py index 82044b346..3395e4ab9 100755 --- a/examples/advanced_operations/use_portfolio_bidding_strategy.py +++ b/examples/advanced_operations/use_portfolio_bidding_strategy.py @@ -24,14 +24,14 @@ def main(client, customer_id): campaign_budget_service = client.get_service('CampaignBudgetService', - version='v3') + version='v4') bidding_strategy_service = client.get_service('BiddingStrategyService', - version='v3') - campaign_service = client.get_service('CampaignService', version='v3') + version='v4') + campaign_service = client.get_service('CampaignService', version='v4') # Create a budget, which can be shared by multiple campaigns. campaign_budget_operation = client.get_type('CampaignBudgetOperation', - version='v3') + version='v4') campaign_budget = campaign_budget_operation.create campaign_budget.name.value = 'Interplanetary Budget %s' % uuid.uuid4() campaign_budget.delivery_method = client.get_type( @@ -60,7 +60,7 @@ def main(client, customer_id): # Create a portfolio bidding strategy. bidding_strategy_operation = client.get_type('BiddingStrategyOperation', - version='v3') + version='v4') bidding_strategy = bidding_strategy_operation.create bidding_strategy.name.value = 'Enhanced CPC %s' % uuid.uuid4() target_spend = bidding_strategy.target_spend @@ -87,7 +87,7 @@ def main(client, customer_id): print('Portfolio bidding strategy "%s" was created.' % bidding_strategy_id) # Create campaign. - campaign_operation = client.get_type('CampaignOperation', version='v3') + campaign_operation = client.get_type('CampaignOperation', version='v4') campaign = campaign_operation.create campaign.name.value = 'Interplanetary Cruise %s' % uuid.uuid4() campaign.advertising_channel_type = client.get_type( @@ -96,7 +96,7 @@ def main(client, customer_id): # Recommendation: Set the campaign to PAUSED when creating it to prevent the # ads from immediately serving. Set to ENABLED once you've added targeting # and the ads are ready to serve. - campaign.status = client.get_type('CampaignStatusEnum', version='v3').PAUSED + campaign.status = client.get_type('CampaignStatusEnum', version='v4').PAUSED # Set the bidding strategy and budget. campaign.bidding_strategy.value = bidding_strategy_id diff --git a/examples/basic_operations/add_ad_groups.py b/examples/basic_operations/add_ad_groups.py index 771b0744d..8b480cb53 100755 --- a/examples/basic_operations/add_ad_groups.py +++ b/examples/basic_operations/add_ad_groups.py @@ -26,18 +26,18 @@ def main(client, customer_id, campaign_id): - ad_group_service = client.get_service('AdGroupService', version='v3') - campaign_service = client.get_service('CampaignService', version='v3') + ad_group_service = client.get_service('AdGroupService', version='v4') + campaign_service = client.get_service('CampaignService', version='v4') # Create ad group. - ad_group_operation = client.get_type('AdGroupOperation', version='v3') + ad_group_operation = client.get_type('AdGroupOperation', version='v4') ad_group = ad_group_operation.create ad_group.name.value = 'Earth to Mars cruises %s' % uuid.uuid4() - ad_group.status = client.get_type('AdGroupStatusEnum', version='v3').ENABLED + ad_group.status = client.get_type('AdGroupStatusEnum', version='v4').ENABLED ad_group.campaign.value = campaign_service.campaign_path( customer_id, campaign_id) ad_group.type = client.get_type('AdGroupTypeEnum', - version='v3').SEARCH_STANDARD + version='v4').SEARCH_STANDARD ad_group.cpc_bid_micros.value = 10000000 # Add the ad group. diff --git a/examples/basic_operations/add_campaigns.py b/examples/basic_operations/add_campaigns.py index e0336e64a..09709b2b0 100755 --- a/examples/basic_operations/add_campaigns.py +++ b/examples/basic_operations/add_campaigns.py @@ -31,12 +31,12 @@ def main(client, customer_id): campaign_budget_service = client.get_service('CampaignBudgetService', - version='v3') - campaign_service = client.get_service('CampaignService', version='v3') + version='v4') + campaign_service = client.get_service('CampaignService', version='v4') # Create a budget, which can be shared by multiple campaigns. campaign_budget_operation = client.get_type('CampaignBudgetOperation', - version='v3') + version='v4') campaign_budget = campaign_budget_operation.create campaign_budget.name.value = 'Interplanetary Budget %s' % uuid.uuid4() campaign_budget.delivery_method = client.get_type( @@ -59,7 +59,7 @@ def main(client, customer_id): sys.exit(1) # Create campaign. - campaign_operation = client.get_type('CampaignOperation', version='v3') + campaign_operation = client.get_type('CampaignOperation', version='v4') campaign = campaign_operation.create campaign.name.value = 'Interplanetary Cruise %s' % uuid.uuid4() campaign.advertising_channel_type = client.get_type( @@ -68,7 +68,7 @@ def main(client, customer_id): # Recommendation: Set the campaign to PAUSED when creating it to prevent # the ads from immediately serving. Set to ENABLED once you've added # targeting and the ads are ready to serve. - campaign.status = client.get_type('CampaignStatusEnum', version='v3').PAUSED + campaign.status = client.get_type('CampaignStatusEnum', version='v4').PAUSED # Set the bidding strategy and budget. campaign.manual_cpc.enhanced_cpc_enabled.value = True diff --git a/examples/basic_operations/add_expanded_text_ads.py b/examples/basic_operations/add_expanded_text_ads.py index 78cd463fe..35df0649a 100755 --- a/examples/basic_operations/add_expanded_text_ads.py +++ b/examples/basic_operations/add_expanded_text_ads.py @@ -26,20 +26,20 @@ def main(client, customer_id, ad_group_id, number_of_ads): - ad_group_ad_service = client.get_service('AdGroupAdService', version='v3') - ad_group_service = client.get_service('AdGroupService', version='v3') + ad_group_ad_service = client.get_service('AdGroupAdService', version='v4') + ad_group_service = client.get_service('AdGroupService', version='v4') ad_group_ad_operations = [] for i in range(number_of_ads): # Create ad group ad. - ad_group_ad_operation = client.get_type('AdGroupAdOperation', version='v3') + ad_group_ad_operation = client.get_type('AdGroupAdOperation', version='v4') ad_group_ad = ad_group_ad_operation.create ad_group_ad.ad_group.value = ad_group_service.ad_group_path( customer_id, ad_group_id) ad_group_ad.status = client.get_type('AdGroupAdStatusEnum', - version='v3').PAUSED + version='v4').PAUSED # Set expanded text ad info final_url = ad_group_ad.ad.final_urls.add() diff --git a/examples/basic_operations/add_keywords.py b/examples/basic_operations/add_keywords.py index 6dc287a69..12e8899fb 100755 --- a/examples/basic_operations/add_keywords.py +++ b/examples/basic_operations/add_keywords.py @@ -18,25 +18,26 @@ import argparse import sys -import google.ads.google_ads.client +from google.ads.google_ads.client import GoogleAdsClient +from google.ads.google_ads.errors import GoogleAdsException -def main(client, customer_id, ad_group_id, keyword): - ad_group_service = client.get_service('AdGroupService', version='v3') +def main(client, customer_id, ad_group_id, keyword_text): + ad_group_service = client.get_service('AdGroupService', version='v4') ad_group_criterion_service = client.get_service('AdGroupCriterionService', - version='v3') + version='v4') # Create keyword. ad_group_criterion_operation = client.get_type('AdGroupCriterionOperation', - version='v3') + version='v4') ad_group_criterion = ad_group_criterion_operation.create ad_group_criterion.ad_group.value = ad_group_service.ad_group_path( customer_id, ad_group_id) ad_group_criterion.status = client.get_type( - 'AdGroupCriterionStatusEnum').ENABLED - ad_group_criterion.keyword.text.value = keyword + 'AdGroupCriterionStatusEnum', version='v4').ENABLED + ad_group_criterion.keyword.text.value = keyword_text ad_group_criterion.keyword.match_type = client.get_type( - 'KeywordMatchTypeEnum').EXACT + 'KeywordMatchTypeEnum', version='v4').EXACT # Optional field # All fields can be referenced from the protos directly. @@ -53,25 +54,24 @@ def main(client, customer_id, ad_group_id, keyword): ad_group_criterion_response = ( ad_group_criterion_service.mutate_ad_group_criteria( customer_id, [ad_group_criterion_operation])) - except google.ads.google_ads.errors.GoogleAdsException as ex: - print('Request with ID "%s" failed with status "%s" and includes the ' - 'following errors:' % (ex.request_id, ex.error.code().name)) + 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('\tError with message "%s".' % error.message) + print(f'\tError with message "{error.message}".') if error.location: for field_path_element in error.location.field_path_elements: - print('\t\tOn field: %s' % field_path_element.field_name) + print('\t\tOn field: {field_path_element.field_name}') sys.exit(1) - print('Created keyword %s.' - % ad_group_criterion_response.results[0].resource_name) + print('Created keyword ' + f'{ad_group_criterion_response.results[0].resource_name}.') if __name__ == '__main__': # GoogleAdsClient will read the google-ads.yaml configuration file in the # home directory if none is specified. - google_ads_client = (google.ads.google_ads.client.GoogleAdsClient - .load_from_storage()) + google_ads_client = GoogleAdsClient.load_from_storage() parser = argparse.ArgumentParser( description=('Adds a keyword to the provided ad group, for the ' @@ -81,11 +81,12 @@ def main(client, customer_id, ad_group_id, keyword): required=True, help='The Google Ads customer ID.') parser.add_argument('-a', '--ad_group_id', type=str, required=True, help='The ad group ID.') - parser.add_argument('-k', '--keyword', type=str, required=False, + parser.add_argument('-k', '--keyword_text', type=str, required=False, default='mars cruise', help=('The keyword to be added to the ad group. Note ' 'that you will receive an error response if you ' 'attempt to create a duplicate keyword.')) args = parser.parse_args() - main(google_ads_client, args.customer_id, args.ad_group_id, args.keyword) + main(google_ads_client, args.customer_id, args.ad_group_id, + args.keyword_text) diff --git a/examples/basic_operations/add_responsive_search_ad.py b/examples/basic_operations/add_responsive_search_ad.py index 7897c012a..81fbbef27 100755 --- a/examples/basic_operations/add_responsive_search_ad.py +++ b/examples/basic_operations/add_responsive_search_ad.py @@ -27,14 +27,14 @@ def main(client, customer_id, ad_group_id): - ad_group_ad_service = client.get_service('AdGroupAdService', version='v2') - ad_group_service = client.get_service('AdGroupService', version='v2') + ad_group_ad_service = client.get_service('AdGroupAdService', version='v4') + ad_group_service = client.get_service('AdGroupService', version='v4') # Create the ad group ad. - ad_group_ad_operation = client.get_type('AdGroupAdOperation', version='v2') + ad_group_ad_operation = client.get_type('AdGroupAdOperation', version='v4') ad_group_ad = ad_group_ad_operation.create ad_group_ad.status = client.get_type( - 'AdGroupAdStatusEnum', version='v2').PAUSED + 'AdGroupAdStatusEnum', version='v4').PAUSED ad_group_ad.ad_group.value = ad_group_service.ad_group_path( customer_id, ad_group_id) @@ -49,7 +49,7 @@ def main(client, customer_id, ad_group_id): client, f'Cruise to Mars #{str(uuid4())[:8]}', client.get_type( - 'ServedAssetFieldTypeEnum', version='v2').HEADLINE_1) + 'ServedAssetFieldTypeEnum', version='v4').HEADLINE_1) ad_group_ad.ad.responsive_search_ad.headlines.extend([ pinned_headline, @@ -82,7 +82,7 @@ def main(client, customer_id, ad_group_id): def _create_ad_text_asset(client, text, pinned_field=None): """Create an AdTextAsset.""" - ad_text_asset = client.get_type('AdTextAsset', version='v2') + ad_text_asset = client.get_type('AdTextAsset', version='v4') ad_text_asset.text.value = text if pinned_field: ad_text_asset.pinned_field = pinned_field diff --git a/examples/basic_operations/get_ad_groups.py b/examples/basic_operations/get_ad_groups.py index b76659ca5..24c255d0b 100755 --- a/examples/basic_operations/get_ad_groups.py +++ b/examples/basic_operations/get_ad_groups.py @@ -24,7 +24,7 @@ def main(client, customer_id, page_size, campaign_id=None): - ga_service = client.get_service('GoogleAdsService', version='v3') + ga_service = client.get_service('GoogleAdsService', version='v4') query = 'SELECT campaign.id, ad_group.id, ad_group.name FROM ad_group' diff --git a/examples/basic_operations/get_artifact_metadata.py b/examples/basic_operations/get_artifact_metadata.py index dd51c5998..f73832705 100755 --- a/examples/basic_operations/get_artifact_metadata.py +++ b/examples/basic_operations/get_artifact_metadata.py @@ -43,7 +43,7 @@ def _is_or_is_not(bool_value): def main(client, artifact_name, page_size): - gaf_service = client.get_service('GoogleAdsFieldService', version='v3') + gaf_service = client.get_service('GoogleAdsFieldService', version='v4') # Searches for an artifact with the specified name. query = ('SELECT name, category, selectable, filterable, sortable, ' diff --git a/examples/basic_operations/get_campaigns.py b/examples/basic_operations/get_campaigns.py index c5f24cee7..d12b66f6f 100755 --- a/examples/basic_operations/get_campaigns.py +++ b/examples/basic_operations/get_campaigns.py @@ -26,7 +26,7 @@ def main(client, customer_id): - ga_service = client.get_service('GoogleAdsService', version='v3') + ga_service = client.get_service('GoogleAdsService', version='v4') query = ('SELECT campaign.id, campaign.name FROM campaign ' 'ORDER BY campaign.id') diff --git a/examples/basic_operations/get_expanded_text_ads.py b/examples/basic_operations/get_expanded_text_ads.py index e7f4e994f..87134da12 100755 --- a/examples/basic_operations/get_expanded_text_ads.py +++ b/examples/basic_operations/get_expanded_text_ads.py @@ -23,9 +23,9 @@ def main(client, customer_id, ad_group_id=None): - ga_service = client.get_service('GoogleAdsService', version='v3') + ga_service = client.get_service('GoogleAdsService', version='v4') ad_group_ad_status_enum = client.get_type( - 'AdGroupAdStatusEnum', version='v3').AdGroupAdStatus + 'AdGroupAdStatusEnum', version='v4').AdGroupAdStatus query = ('SELECT ad_group.id, ad_group_ad.ad.id, ' 'ad_group_ad.ad.expanded_text_ad.headline_part1, ' diff --git a/examples/basic_operations/get_keywords.py b/examples/basic_operations/get_keywords.py index 03712c208..db79f0a36 100755 --- a/examples/basic_operations/get_keywords.py +++ b/examples/basic_operations/get_keywords.py @@ -25,7 +25,7 @@ def main(client, customer_id, page_size, ad_group_id=None): - ga_service = client.get_service('GoogleAdsService', version='v3') + ga_service = client.get_service('GoogleAdsService', version='v4') query = ('SELECT ad_group.id, ad_group_criterion.type, ' 'ad_group_criterion.criterion_id, ' diff --git a/examples/basic_operations/get_responsive_search_ads.py b/examples/basic_operations/get_responsive_search_ads.py index 5f20e482e..291914f35 100755 --- a/examples/basic_operations/get_responsive_search_ads.py +++ b/examples/basic_operations/get_responsive_search_ads.py @@ -29,7 +29,7 @@ def main(client, customer_id, page_size, ad_group_id=None): - ga_service = client.get_service('GoogleAdsService', version='v2') + ga_service = client.get_service('GoogleAdsService', version='v4') query = ''' SELECT ad_group.id, ad_group_ad.ad.id, @@ -46,7 +46,7 @@ def main(client, customer_id, page_size, ad_group_id=None): results = ga_service.search(customer_id, query=query, page_size=page_size) aga_status_enum = client.get_type( - 'AdGroupAdStatusEnum', version='v2').AdGroupAdStatus + 'AdGroupAdStatusEnum', version='v4').AdGroupAdStatus try: one_found = False @@ -81,7 +81,7 @@ def main(client, customer_id, page_size, ad_group_id=None): def _ad_text_assets_to_strs(client, assets): """Converts a list of AdTextAssets to a list of user-friendly strings.""" sa_field_type_enum = client.get_type( - 'ServedAssetFieldTypeEnum', version='v2').ServedAssetFieldType + 'ServedAssetFieldTypeEnum', version='v4').ServedAssetFieldType s = [] for asset in assets: s.append('\t"' + asset.text.value + '" pinned to ' + diff --git a/examples/basic_operations/pause_ad.py b/examples/basic_operations/pause_ad.py index 3cf400cbd..b5ac4fcb2 100755 --- a/examples/basic_operations/pause_ad.py +++ b/examples/basic_operations/pause_ad.py @@ -24,15 +24,15 @@ def main(client, customer_id, ad_group_id, ad_id): - ad_group_ad_service = client.get_service('AdGroupAdService', version='v3') + ad_group_ad_service = client.get_service('AdGroupAdService', version='v4') - ad_group_ad_operation = client.get_type('AdGroupAdOperation', version='v3') + ad_group_ad_operation = client.get_type('AdGroupAdOperation', version='v4') ad_group_ad = ad_group_ad_operation.update ad_group_ad.resource_name = ad_group_ad_service.ad_group_ad_path( customer_id, ResourceName.format_composite(ad_group_id, ad_id)) ad_group_ad.status = client.get_type('AdGroupStatusEnum', - version='v3').PAUSED + version='v4').PAUSED fm = protobuf_helpers.field_mask(None, ad_group_ad) ad_group_ad_operation.update_mask.CopyFrom(fm) diff --git a/examples/basic_operations/remove_ad.py b/examples/basic_operations/remove_ad.py index 552878bed..5d6473509 100755 --- a/examples/basic_operations/remove_ad.py +++ b/examples/basic_operations/remove_ad.py @@ -22,8 +22,8 @@ from google.ads.google_ads.util import ResourceName def main(client, customer_id, ad_group_id, ad_id): - ad_group_ad_service = client.get_service('AdGroupAdService', version='v3') - ad_group_ad_operation = client.get_type('AdGroupAdOperation', version='v3') + ad_group_ad_service = client.get_service('AdGroupAdService', version='v4') + ad_group_ad_operation = client.get_type('AdGroupAdOperation', version='v4') resource_name = ad_group_ad_service.ad_group_ad_path( customer_id, ResourceName.format_composite(ad_group_id, ad_id)) diff --git a/examples/basic_operations/remove_ad_group.py b/examples/basic_operations/remove_ad_group.py index 8f49c241d..a44f89d05 100755 --- a/examples/basic_operations/remove_ad_group.py +++ b/examples/basic_operations/remove_ad_group.py @@ -22,8 +22,8 @@ def main(client, customer_id, ad_group_id): - ad_group_service = client.get_service('AdGroupService', version='v3') - ad_group_operation = client.get_type('AdGroupOperation', version='v3') + ad_group_service = client.get_service('AdGroupService', version='v4') + ad_group_operation = client.get_type('AdGroupOperation', version='v4') resource_name = ad_group_service.ad_group_path(customer_id, ad_group_id) ad_group_operation.remove = resource_name diff --git a/examples/basic_operations/remove_campaign.py b/examples/basic_operations/remove_campaign.py index 4746efbf7..872f4e8f4 100755 --- a/examples/basic_operations/remove_campaign.py +++ b/examples/basic_operations/remove_campaign.py @@ -22,8 +22,8 @@ def main(client, customer_id, campaign_id): - campaign_service = client.get_service('CampaignService', version='v3') - campaign_operation = client.get_type('CampaignOperation', version='v3') + campaign_service = client.get_service('CampaignService', version='v4') + campaign_operation = client.get_type('CampaignOperation', version='v4') resource_name = campaign_service.campaign_path(customer_id, campaign_id) campaign_operation.remove = resource_name diff --git a/examples/basic_operations/remove_keyword.py b/examples/basic_operations/remove_keyword.py index bf32b80b1..539ddc15f 100755 --- a/examples/basic_operations/remove_keyword.py +++ b/examples/basic_operations/remove_keyword.py @@ -19,31 +19,32 @@ import sys from google.ads.google_ads.client import GoogleAdsClient +from google.ads.google_ads.errors import GoogleAdsException from google.ads.google_ads.util import ResourceName -def main(client, customer_id, ad_group_id, criteria_id): - agc_service = client.get_service('AdGroupCriterionService', version='v3') - agc_operation = client.get_type('AdGroupCriterionOperation', version='v3') +def main(client, customer_id, ad_group_id, criterion_id): + agc_service = client.get_service('AdGroupCriterionService', version='v4') + agc_operation = client.get_type('AdGroupCriterionOperation', version='v4') resource_name = agc_service.ad_group_criteria_path( - customer_id, ResourceName.format_composite(ad_group_id, criteria_id)) + customer_id, ResourceName.format_composite(ad_group_id, criterion_id)) agc_operation.remove = resource_name try: agc_response = agc_service.mutate_ad_group_criteria( customer_id, [agc_operation]) - except google.ads.google_ads.errors.GoogleAdsException as ex: - print('Request with ID "%s" failed with status "%s" and includes the ' - 'following errors:' % (ex.request_id, ex.error.code().name)) + 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('\tError with message "%s".' % error.message) + print(f'\tError with message "{error.message}".') if error.location: for field_path_element in error.location.field_path_elements: - print('\t\tOn field: %s' % field_path_element.field_name) + print(f'\t\tOn field: {field_path_element.field_name}') sys.exit(1) - print('Removed keyword %s.' % agc_response.results[0].resource_name) + print(f'Removed keyword {agc_response.results[0].resource_name}.') if __name__ == '__main__': @@ -57,9 +58,9 @@ def main(client, customer_id, ad_group_id, criteria_id): required=True, help='The Google Ads customer ID.') parser.add_argument('-a', '--ad_group_id', type=str, required=True, help='The ad group ID.') - parser.add_argument('-k', '--criteria_id', type=str, - required=True, help='The criteria ID, or keyword ID.') + parser.add_argument('-k', '--criterion_id', type=str, + required=True, help='The criterion ID, or keyword ID.') args = parser.parse_args() main(google_ads_client, args.customer_id, args.ad_group_id, - args.criteria_id) + args.criterion_id) diff --git a/examples/basic_operations/update_ad_group.py b/examples/basic_operations/update_ad_group.py index 74c24ef58..b557a5596 100755 --- a/examples/basic_operations/update_ad_group.py +++ b/examples/basic_operations/update_ad_group.py @@ -21,20 +21,21 @@ import argparse import sys -import google.ads.google_ads.client +from google.ads.google_ads.client import GoogleAdsClient +from google.ads.google_ads.errors import GoogleAdsException from google.api_core import protobuf_helpers -def main(client, customer_id, ad_group_id, bid_micro_amount): - ad_group_service = client.get_service('AdGroupService', version='v3') +def main(client, customer_id, ad_group_id, cpc_bid_micro_amount): + ad_group_service = client.get_service('AdGroupService', version='v4') # Create ad group operation. - ad_group_operation = client.get_type('AdGroupOperation', version='v3') + ad_group_operation = client.get_type('AdGroupOperation', version='v4') ad_group = ad_group_operation.update ad_group.resource_name = ad_group_service.ad_group_path( customer_id, ad_group_id) - ad_group.status = client.get_type('AdGroupStatusEnum', version='v3').PAUSED - ad_group.cpc_bid_micros.value = bid_micro_amount + ad_group.status = client.get_type('AdGroupStatusEnum', version='v4').PAUSED + ad_group.cpc_bid_micros.value = cpc_bid_micro_amount fm = protobuf_helpers.field_mask(None, ad_group) ad_group_operation.update_mask.CopyFrom(fm) @@ -42,24 +43,23 @@ def main(client, customer_id, ad_group_id, bid_micro_amount): try: ad_group_response = ad_group_service.mutate_ad_groups( customer_id, [ad_group_operation]) - except google.ads.google_ads.errors.GoogleAdsException as ex: - print('Request with ID "%s" failed with status "%s" and includes the ' - 'following errors:' % (ex.request_id, ex.error.code().name)) + 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('\tError with message "%s".' % error.message) + print(f'\tError with message "{error.message}".') if error.location: for field_path_element in error.location.field_path_elements: - print('\t\tOn field: %s' % field_path_element.field_name) + print(f'\t\tOn field: {field_path_element.field_name}') sys.exit(1) - print('Updated ad group %s.' % ad_group_response.results[0].resource_name) + print(f'Updated ad group {ad_group_response.results[0].resource_name}.') if __name__ == '__main__': # GoogleAdsClient will read the google-ads.yaml configuration file in the # home directory if none is specified. - google_ads_client = (google.ads.google_ads.client.GoogleAdsClient - .load_from_storage()) + google_ads_client = GoogleAdsClient.load_from_storage() parser = argparse.ArgumentParser( description=('Updates an ad group for specified customer and campaign ' @@ -69,9 +69,9 @@ def main(client, customer_id, ad_group_id, bid_micro_amount): required=True, help='The Google Ads customer ID.') parser.add_argument('-a', '--ad_group_id', type=str, required=True, help='The ad group ID.') - parser.add_argument('-b', '--bid_micro_amount', type=int, - required=True, help='The bid micro amount.') + parser.add_argument('-b', '--cpc_bid_micro_amount', type=int, + required=True, help='The cpc bid micro amount.') args = parser.parse_args() main(google_ads_client, args.customer_id, args.ad_group_id, - args.bid_micro_amount) + args.cpc_bid_micro_amount) diff --git a/examples/basic_operations/update_campaign.py b/examples/basic_operations/update_campaign.py index 628221c94..60ee777c4 100755 --- a/examples/basic_operations/update_campaign.py +++ b/examples/basic_operations/update_campaign.py @@ -27,13 +27,13 @@ def main(client, customer_id, campaign_id): - campaign_service = client.get_service('CampaignService', version='v3') + campaign_service = client.get_service('CampaignService', version='v4') # Create campaign operation. - campaign_operation = client.get_type('CampaignOperation', version='v3') + campaign_operation = client.get_type('CampaignOperation', version='v4') campaign = campaign_operation.update campaign.resource_name = campaign_service.campaign_path( customer_id, campaign_id) - campaign.status = client.get_type('CampaignStatusEnum', version='v3').PAUSED + campaign.status = client.get_type('CampaignStatusEnum', version='v4').PAUSED campaign.network_settings.target_search_network.value = False # Retrieve a FieldMask for the fields configured in the campaign. fm = protobuf_helpers.field_mask(None, campaign) diff --git a/examples/basic_operations/update_expanded_text_ad.py b/examples/basic_operations/update_expanded_text_ad.py index ed5d04451..16706f41e 100755 --- a/examples/basic_operations/update_expanded_text_ad.py +++ b/examples/basic_operations/update_expanded_text_ad.py @@ -28,9 +28,9 @@ def main(client, customer_id, ad_id): - ad_service = client.get_service('AdService', version='v3') + ad_service = client.get_service('AdService', version='v4') - ad_operation = client.get_type('AdOperation', version='v3') + ad_operation = client.get_type('AdOperation', version='v4') # Update ad operation. ad = ad_operation.update diff --git a/examples/basic_operations/update_keyword.py b/examples/basic_operations/update_keyword.py index 4dc617be9..696c250f7 100755 --- a/examples/basic_operations/update_keyword.py +++ b/examples/basic_operations/update_keyword.py @@ -24,16 +24,16 @@ def main(client, customer_id, ad_group_id, criterion_id): - agc_service = client.get_service('AdGroupCriterionService', version='v3') + agc_service = client.get_service('AdGroupCriterionService', version='v4') ad_group_criterion_operation = client.get_type('AdGroupCriterionOperation', - version='v3') + version='v4') ad_group_criterion = ad_group_criterion_operation.update ad_group_criterion.resource_name = agc_service.ad_group_criteria_path( customer_id, ResourceName.format_composite(ad_group_id, criterion_id)) ad_group_criterion.status = (client.get_type('AdGroupCriterionStatusEnum', - version='v3') + version='v4') .ENABLED) final_url = ad_group_criterion.final_urls.add() final_url.value = 'https://www.example.com' diff --git a/examples/billing/add_account_budget_proposal.py b/examples/billing/add_account_budget_proposal.py index 8469f66fd..49b241edb 100755 --- a/examples/billing/add_account_budget_proposal.py +++ b/examples/billing/add_account_budget_proposal.py @@ -29,7 +29,7 @@ def main(client, customer_id, billing_setup_id): account_budget_proposal_service = client.get_service( 'AccountBudgetProposalService') billing_setup_service = client.get_service('BillingSetupService', - version='v3') + version='v4') account_budget_proposal_operation = client.get_type( 'AccountBudgetProposalOperation') @@ -43,7 +43,7 @@ def main(client, customer_id, billing_setup_id): # Specify the account budget starts immediately proposal.proposed_start_time_type = client.get_type('TimeTypeEnum', - version='v3').NOW + version='v4').NOW # Alternatively you can specify a specific start time. Refer to the # AccountBudgetProposal resource documentation for allowed formats. # @@ -51,7 +51,7 @@ def main(client, customer_id, billing_setup_id): # Specify that the budget runs forever proposal.proposed_end_time_type = client.get_type('TimeTypeEnum', - version='v3').FOREVER + version='v4').FOREVER # Alternatively you can specify a specific end time. Allowed formats are as # above. # diff --git a/examples/billing/get_account_budget_proposals.py b/examples/billing/get_account_budget_proposals.py index f9944a4fd..da6829ad1 100755 --- a/examples/billing/get_account_budget_proposals.py +++ b/examples/billing/get_account_budget_proposals.py @@ -29,7 +29,7 @@ def main(client, customer_id, page_size): - ga_service = client.get_service('GoogleAdsService', version='v3') + ga_service = client.get_service('GoogleAdsService', version='v4') query = ('SELECT account_budget_proposal.id, ' 'account_budget_proposal.account_budget,' diff --git a/examples/billing/get_account_budgets.py b/examples/billing/get_account_budgets.py index 81edc7852..9ae0b1e03 100755 --- a/examples/billing/get_account_budgets.py +++ b/examples/billing/get_account_budgets.py @@ -23,7 +23,7 @@ def main(client, customer_id): - ga_service = client.get_service('GoogleAdsService', version='v3') + ga_service = client.get_service('GoogleAdsService', version='v4') query = ('SELECT account_budget.status, ' 'account_budget.billing_setup, ' @@ -46,7 +46,7 @@ def main(client, customer_id): try: # Use the enum type to determine the enum names from the values. budget_status_enum = client.get_type( - 'AccountBudgetStatusEnum', version='v3').AccountBudgetStatus + 'AccountBudgetStatusEnum', version='v4').AccountBudgetStatus for batch in response: for row in batch.results: diff --git a/examples/billing/get_billing_setup.py b/examples/billing/get_billing_setup.py index 11fa77cad..c2c0d14f1 100755 --- a/examples/billing/get_billing_setup.py +++ b/examples/billing/get_billing_setup.py @@ -23,7 +23,7 @@ def main(client, customer_id): - ga_service = client.get_service('GoogleAdsService', version='v3') + ga_service = client.get_service('GoogleAdsService', version='v4') query = ( 'SELECT billing_setup.id, billing_setup.status, ' @@ -40,7 +40,7 @@ def main(client, customer_id): try: # Use the enum type to determine the enum name from the value. billing_setup_status_enum = client.get_type( - 'BillingSetupStatusEnum', version='v3').BillingSetupStatus + 'BillingSetupStatusEnum', version='v4').BillingSetupStatus print('Found the following billing setup results:') for batch in response: diff --git a/examples/billing/remove_billing_setup.py b/examples/billing/remove_billing_setup.py index 60e093062..f09ecc229 100755 --- a/examples/billing/remove_billing_setup.py +++ b/examples/billing/remove_billing_setup.py @@ -26,11 +26,11 @@ def main(client, customer_id, billing_setup_id): billing_setup_service = client.get_service('BillingSetupService', - version='v3') + version='v4') # Create billing setup operation. billing_setup_operation = client.get_type('BillingSetupOperation', - version='v3') + version='v4') billing_setup_operation.remove = billing_setup_service.billing_setup_path( customer_id, billing_setup_id) diff --git a/examples/campaign_management/add_campaign_bid_modifier.py b/examples/campaign_management/add_campaign_bid_modifier.py index bb502f3a6..c8418d54b 100755 --- a/examples/campaign_management/add_campaign_bid_modifier.py +++ b/examples/campaign_management/add_campaign_bid_modifier.py @@ -23,9 +23,9 @@ def main(client, customer_id, campaign_id, bid_modifier_value): - campaign_service = client.get_service('CampaignService', version='v3') + campaign_service = client.get_service('CampaignService', version='v4') campaign_bm_service = client.get_service('CampaignBidModifierService', - version='v3') + version='v4') # Create campaign bid modifier for call interactions with the specified # campaign ID and bid modifier value. @@ -42,7 +42,7 @@ def main(client, customer_id, campaign_id, bid_modifier_value): # Sets the interaction type. campaign_bid_modifier.interaction_type.type = ( - client.get_type('InteractionTypeEnum', version='v3').CALLS) + client.get_type('InteractionTypeEnum', version='v4').CALLS) # Add the campaign bid modifier. try: diff --git a/examples/campaign_management/add_campaign_draft.py b/examples/campaign_management/add_campaign_draft.py index 7023d034a..a79540190 100755 --- a/examples/campaign_management/add_campaign_draft.py +++ b/examples/campaign_management/add_campaign_draft.py @@ -27,9 +27,9 @@ def main(client, customer_id, base_campaign_id): - campaign_service = client.get_service('CampaignService', version='v3') + campaign_service = client.get_service('CampaignService', version='v4') campaign_draft_service = client.get_service('CampaignDraftService', - version='v3') + version='v4') # Creates a campaign draft operation. campaign_draft_operation = client.get_type('CampaignDraftOperation') diff --git a/examples/campaign_management/add_campaign_labels.py b/examples/campaign_management/add_campaign_labels.py index ae4127a5c..498d2e4f0 100755 --- a/examples/campaign_management/add_campaign_labels.py +++ b/examples/campaign_management/add_campaign_labels.py @@ -36,9 +36,9 @@ def main(client, customer_id, label_id, campaign_ids): # Get an instance of CampaignLabelService client. campaign_label_service = client.get_service( - 'CampaignLabelService', version='v3') - campaign_service = client.get_service('CampaignService', version='v3') - label_service = client.get_service('LabelService', version='v3') + 'CampaignLabelService', version='v4') + campaign_service = client.get_service('CampaignService', version='v4') + label_service = client.get_service('LabelService', version='v4') # Build the resource name of the label to be added across the campaigns. label_resource_name = label_service.label_path(customer_id, label_id) @@ -49,7 +49,7 @@ def main(client, customer_id, label_id, campaign_ids): campaign_resource_name = campaign_service.campaign_path(customer_id, campaign_id) campaign_label_operation = client.get_type( - 'CampaignLabelOperation', version='v3') + 'CampaignLabelOperation', version='v4') campaign_label = campaign_label_operation.create campaign_label.campaign.value = campaign_resource_name diff --git a/examples/campaign_management/add_complete_campaigns_using_batch_job.py b/examples/campaign_management/add_complete_campaigns_using_batch_job.py new file mode 100755 index 000000000..c691e0e58 --- /dev/null +++ b/examples/campaign_management/add_complete_campaigns_using_batch_job.py @@ -0,0 +1,584 @@ +#!/usr/bin/env python +# Copyright 2020 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. +"""Adds complete campaigns using BatchJobService. + +Complete campaigns include campaign budgets, campaigns, ad groups and keywords. +""" + + +import argparse +import asyncio +import sys +from uuid import uuid4 + +from google.ads.google_ads.client import GoogleAdsClient +from google.ads.google_ads.errors import GoogleAdsException + +NUMBER_OF_CAMPAIGNS_TO_ADD = 2 +NUMBER_OF_AD_GROUPS_TO_ADD = 2 +NUMBER_OF_KEYWORDS_TO_ADD = 4 + +PAGE_SIZE = 1000 + +_temporary_id = 0 + + +def _get_next_temporary_id(): + """Returns the next temporary ID to use in batch job operations. + + Decrements the temporary ID by one before returning it. The first value + returned for the ID is -1. + + Returns: an int of the next temporary ID. + """ + global _temporary_id + _temporary_id -= 1 + return _temporary_id + + +def _handle_google_ads_exception(exception): + """Prints the details of a GoogleAdsException object. + + Args: + exception: an instance of GoogleAdsException. + """ + print(f'Request with ID "{exception.request_id}" failed with status ' + f'"{exception.error.code().name}" and includes the following errors:') + for error in exception.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) + + +def _build_mutate_operation(client, operation_type, operation): + """Builds a mutate operation with the given operation type and operation. + + Args: + client: an initialized GoogleAdsClient instance. + operation_type: a str of the operation type corresponding to a field on + the MutateOperation message class. + operation: an operation instance. + + Returns: a MutateOperation instance + """ + mutate_operation = client.get_type('MutateOperation', version='v4') + getattr(mutate_operation, operation_type).CopyFrom(operation) + return mutate_operation + + +async def main(client, customer_id): + """Main function that runs the example. + + Args: + client: an initialized GoogleAdsClient instance. + customer_id: a str of a customer ID. + """ + batch_job_service = client.get_service('BatchJobService', version='v4') + batch_job_operation = _create_batch_job_operation(client) + resource_name = _create_batch_job(batch_job_service, customer_id, + batch_job_operation) + operations = _build_all_operations(client, customer_id) + _add_all_batch_job_operations(batch_job_service, operations, resource_name) + operations_response = _run_batch_job(batch_job_service, resource_name) + + # Create an asyncio.Event instance to control execution during the + # asyncronous steps in _poll_batch_job. Note that this is not important + # for polling asyncronously, it simply helps with execution control so we + # can run _fetch_and_print_results after the asyncronous operations have + # completed. + _done_event = asyncio.Event() + _poll_batch_job(operations_response, _done_event) + # Execution will stop here and wait for the asyncronous steps in + # _poll_batch_job to complete before proceeding. + await _done_event.wait() + + _fetch_and_print_results(batch_job_service, resource_name) + + +def _create_batch_job_operation(client): + """Created a BatchJobOperation and sets an empty BatchJob instance to + the "create" property in order to tell the Google Ads API that we're + creating a new BatchJob. + + Args: + client: an initialized GoogleAdsClient instance. + + Returns: a BatchJobOperation with a BatchJob instance set in the "create" + property. + """ + batch_job_operation = client.get_type('BatchJobOperation', version='v4') + batch_job = client.get_type('BatchJob', version='v4') + batch_job_operation.create.CopyFrom(batch_job) + return batch_job_operation + + +def _create_batch_job(batch_job_service, customer_id, batch_job_operation): + """Creates a batch job for the specified customer ID. + + Args: + batch_job_service: an instance of the BatchJobService message class. + customer_id: a str of a customer ID. + batch_job_operation: a BatchJobOperation instance set to "create" + + Returns: a str of a resource name for a batch job. + """ + try: + response = batch_job_service.mutate_batch_job(customer_id, + batch_job_operation) + resource_name = response.resource_name + print(f'Created a batch job with resource name "{resource_name}"') + return resource_name + except GoogleAdsException as exception: + _handle_google_ads_exception(exception) + + +def _add_all_batch_job_operations(batch_job_service, operations, + resource_name): + """Adds all mutate operations to the batch job. + + As this is the first time for this batch job, we pass null as a sequence + token. The response will contain the next sequence token that we can use + to upload more operations in the future. + + Args: + batch_job_service: an instance of the BatchJobService message class. + operations: a list of a mutate operations. + resource_name: a str of a resource name for a batch job. + """ + try: + response = batch_job_service.add_batch_job_operations( + resource_name, None, operations) + + print(f'{response.total_operations} mutate operations have been ' + 'added so far.') + + # You can use this next sequence token for calling + # add_batch_job_operations() next time. + print('Next sequence token for adding next operations is ' + f'{response.next_sequence_token}') + except GoogleAdsException as exception: + _handle_google_ads_exception(exception) + + +def _build_all_operations(client, customer_id): + """Builds all operations for creating a complete campaign. + + Args: + client: an initialized GoogleAdsClient instance. + customer_id: a str of a customer ID. + + Returns: a list of operations of various types. + """ + operations = [] + + # Creates a new campaign budget operation and adds it to the list of + # mutate operations. + campaign_budget_op = _build_campaign_budget_operation(client, customer_id) + operations.append(_build_mutate_operation( + client, 'campaign_budget_operation', campaign_budget_op)) + + # Creates new campaign operations and adds them to the list of + # mutate operations. + campaign_operations = _build_campaign_operations( + client, customer_id, campaign_budget_op.create.resource_name) + operations = operations + [ + _build_mutate_operation(client, 'campaign_operation', operation) \ + for operation in campaign_operations] + + # Creates new campaign criterion operations and adds them to the list of + # mutate operations. + campaign_criterion_operations = _build_campaign_criterion_operations( + client, campaign_operations) + operations = operations + [ + _build_mutate_operation( + client, 'campaign_criterion_operation', operation) \ + for operation in campaign_criterion_operations] + + # Creates new ad group operations and adds them to the list of + # mutate operations. + ad_group_operations = _build_ad_group_operations( + client, customer_id, campaign_operations) + operations = operations + [ + _build_mutate_operation(client, 'ad_group_operation', operation) \ + for operation in ad_group_operations] + + # Creates new ad group criterion operations and add them to the list of + # mutate operations. + ad_group_criterion_operations = _build_ad_group_criterion_operations( + client, ad_group_operations) + operations = operations + [ + _build_mutate_operation( + client, 'ad_group_criterion_operation', operation) \ + for operation in ad_group_criterion_operations] + + # Creates new ad group ad operations and adds them to the list of + # mutate operations. + ad_group_ad_operations = _build_ad_group_ad_operations( + client, ad_group_operations) + operations = operations + [ + _build_mutate_operation(client, 'ad_group_ad_operation', operation) \ + for operation in ad_group_ad_operations] + + return operations + + +def _build_campaign_budget_operation(client, customer_id): + """Builds a new campaign budget operation for the given customer ID. + + Args: + client: an initialized GoogleAdsClient instance. + customer_id: a str of a customer ID. + + Returns: a CampaignBudgetOperation instance. + """ + campaign_budget_service = client.get_service('CampaignBudgetService', + version='v4') + campaign_budget_operation = client.get_type('CampaignBudgetOperation', + version='v4') + campaign_budget = campaign_budget_operation.create + resource_name = campaign_budget_service.campaign_budget_path( + customer_id, _get_next_temporary_id()) + campaign_budget.resource_name = resource_name + campaign_budget.name.value = f'Interplanetary Cruise Budget #{uuid4()}' + campaign_budget.delivery_method = client.get_type( + 'BudgetDeliveryMethodEnum', version='v4').STANDARD + campaign_budget.amount_micros.value = 5000000 + + return campaign_budget_operation + + +def _build_campaign_operations(client, customer_id, + campaign_budget_resource_name): + """Builds new campaign operations for the specified customer ID. + + Args: + client: an initialized GoogleAdsClient instance. + customer_id: a str of a customer ID. + campaign_budget_resource_name: a str resource name for a campaign + budget. + + Returns: a list of CampaignOperation instances. + """ + return [ + _build_campaign_operation( + client, customer_id, campaign_budget_resource_name) \ + for i in range(NUMBER_OF_CAMPAIGNS_TO_ADD)] + + +def _build_campaign_operation(client, customer_id, + campaign_budget_resource_name): + """Builds new campaign operation for the specified customer ID. + + Args: + client: an initialized GoogleAdsClient instance. + customer_id: a str of a customer ID. + campaign_budget_resource_name: a str resource name for a campaign + budget. + + Returns: a CampaignOperation instance. + """ + campaign_operation = client.get_type('CampaignOperation', version='v4') + campaign_service = client.get_service('CampaignService', version='v4') + # Creates a campaign. + campaign = campaign_operation.create + campaign_id = _get_next_temporary_id() + # Creates a resource name using the temporary ID. + campaign.resource_name = campaign_service.campaign_path(customer_id, + campaign_id) + campaign.name.value = f'Batch job campaign #{customer_id}.{campaign_id}' + campaign.advertising_channel_type = client.get_type( + 'AdvertisingChannelTypeEnum', version='v4').SEARCH + # Recommendation: Set the campaign to PAUSED when creating it to prevent + # the ads from immediately serving. Set to ENABLED once you've added + # targeting and the ads are ready to serve. + campaign.status = client.get_type('CampaignStatusEnum', version='v4').PAUSED + # Set the bidding strategy and type. + campaign.manual_cpc.CopyFrom(client.get_type('ManualCpc', version='v4')) + campaign.campaign_budget.value = campaign_budget_resource_name + + return campaign_operation + + +def _build_campaign_criterion_operations(client, campaign_operations): + """Builds new campaign criterion operations for negative keyword criteria. + + Args: + client: an initialized GoogleAdsClient instance. + campaign_operations: a list of CampaignOperation instances. + + Returns: a list of CampaignCriterionOperation instances. + """ + return [ + _build_campaign_criterion_operation(client, campaign_operation) \ + for campaign_operation in campaign_operations] + + +def _build_campaign_criterion_operation(client, campaign_operation): + """Builds a new campaign criterion operation for negative keyword criterion. + + Args: + client: an initialized GoogleAdsClient instance. + campaign_operation: a CampaignOperation instance. + + Returns: a CampaignCriterionOperation instance. + """ + campaign_criterion_operation = client.get_type( + 'CampaignCriterionOperation', version='v4') + # Creates a campaign criterion. + campaign_criterion = campaign_criterion_operation.create + campaign_criterion.keyword.text.value = 'venus' + campaign_criterion.keyword.match_type = client.get_type( + 'KeywordMatchTypeEnum', version='v4').BROAD + # Sets the campaign criterion as a negative criterion. + campaign_criterion.negative.value = True + campaign_criterion.campaign.value = campaign_operation.create.resource_name + + return campaign_criterion_operation + + +def _build_ad_group_operations(client, customer_id, campaign_operations): + """Builds new ad group operations for the specified customer ID. + + Args: + client: an initialized GoogleAdsClient instance. + customer_id: a str of a customer ID. + campaign_operations: a list of CampaignOperation instances. + + Return: a list of AdGroupOperation instances. + """ + operations = [] + + for campaign_operation in campaign_operations: + for i in range(NUMBER_OF_AD_GROUPS_TO_ADD): + operations.append( + _build_ad_group_operation( + client, customer_id, campaign_operation)) + + return operations + + +def _build_ad_group_operation(client, customer_id, campaign_operation): + """Builds a new ad group operation for the specified customer ID. + + Args: + client: an initialized GoogleAdsClient instance. + customer_id: a str of a customer ID. + campaign_operation: a CampaignOperation instance. + + Return: an AdGroupOperation instance. + """ + ad_group_operation = client.get_type('AdGroupOperation', version='v4') + ad_group_service = client.get_service('AdGroupService', version='v4') + # Creates an ad group. + ad_group = ad_group_operation.create + ad_group_id = _get_next_temporary_id() + # Creates a resource name using the temporary ID. + ad_group.resource_name = ad_group_service.ad_group_path(customer_id, + ad_group_id) + ad_group.name.value = f'Batch job ad group #{uuid4()}.{ad_group_id}' + ad_group.campaign.value = campaign_operation.create.resource_name + ad_group.type = client.get_type('AdGroupTypeEnum', + version='v4').SEARCH_STANDARD + ad_group.cpc_bid_micros.value = 10000000 + + return ad_group_operation + + +def _build_ad_group_criterion_operations(client, ad_group_operations): + """Builds new ad group criterion operations for creating keywords. + + 50% of keywords are created with some invalid characters to demonstrate + how BatchJobService returns information about such errors. + + Args: + client: an initialized GoogleAdsClient instance. + ad_group_operations: a list of AdGroupOperation instances. + + Returns a list of AdGroupCriterionOperation instances. + """ + operations = [] + + for ad_group_operation in ad_group_operations: + for i in range(NUMBER_OF_KEYWORDS_TO_ADD): + operations.append( + _build_ad_group_criterion_operation( + # Create a keyword text by making 50% of keywords invalid + # to demonstrate error handling. + client, ad_group_operation, i, i % 2 == 0)) + + return operations + + +def _build_ad_group_criterion_operation(client, ad_group_operation, number, + is_valid=True): + """Builds new ad group criterion operation for creating keywords. + + Takes an optional param that dictates whether the keyword text should + intentionally generate an error with invalid characters. + + Args: + client: an initialized GoogleAdsClient instance. + ad_group_operation: an AdGroupOperation instance. + number: an int of the number to assign to the name of the criterion. + is_valid: a bool of whether the keyword text should be invalid. + + Returns: an AdGroupCriterionOperation instance. + """ + ad_group_criterion_operation = client.get_type('AdGroupCriterionOperation', + version='v4') + # Creates an ad group criterion. + ad_group_criterion = ad_group_criterion_operation.create + ad_group_criterion.keyword.text.value = f'mars{number}' + + # If keyword should be invalid we add exclamation points, which will + # generate errors when sent to the API. + if not is_valid: + ad_group_criterion.keyword.text.value += '!!!' + + ad_group_criterion.keyword.match_type = client.get_type( + 'KeywordMatchTypeEnum', version='v4').BROAD + ad_group_criterion.ad_group.value = ad_group_operation.create.resource_name + ad_group_criterion.status = client.get_type( + 'AdGroupCriterionStatusEnum', version='v4').ENABLED + + return ad_group_criterion_operation + + +def _build_ad_group_ad_operations(client, ad_group_operations): + """Builds new ad group ad operations. + + Args: + client: an initialized GoogleAdsClient instance. + ad_group_operations: a list of AdGroupOperation instances. + + Returns: a list of AdGroupAdOperation instances. + """ + return [ + _build_ad_group_ad_operation(client, ad_group_operation) \ + for ad_group_operation in ad_group_operations] + + +def _build_ad_group_ad_operation(client, ad_group_operation): + """Builds a new ad group ad operation. + + Args: + client: an initialized GoogleAdsClient instance. + ad_group_operation: an AdGroupOperation instance. + + Returns: an AdGroupAdOperation instance. + """ + ad_group_ad_operation = client.get_type('AdGroupAdOperation', version='v4') + # Creates an ad group ad. + ad_group_ad = ad_group_ad_operation.create + # Creates the expanded text ad info. + text_ad = ad_group_ad.ad.expanded_text_ad + text_ad.headline_part1.value = f'Cruise to Mars #{uuid4()}' + text_ad.headline_part2.value = 'Best Space Cruise Line' + text_ad.description.value = 'Buy your tickets now!' + final_url = ad_group_ad.ad.final_urls.add() + final_url.value = 'http://www.example.com' + ad_group_ad.ad_group.value = ad_group_operation.create.resource_name + ad_group_ad.status = client.get_type('AdGroupAdStatusEnum', + version='v4').PAUSED + + return ad_group_ad_operation + + +def _run_batch_job(batch_job_service, resource_name): + """Runs the batch job for executing all uploaded mutate operations. + + Args: + batch_job_service: an instance of the BatchJobService message class. + resource_name: a str of a resource name for a batch job. + + Returns: a google.api_core.operation.Operation instance. + """ + try: + response = batch_job_service.run_batch_job(resource_name) + print(f'Batch job with resource name "{resource_name}" has been ' + 'executed.') + return response + except GoogleAdsException as exception: + _handle_google_ads_exception(exception) + + +def _poll_batch_job(operations_response, event): + """Polls the server until the batch job execution finishes. + + Sets the initial poll delay time and the total time to wait before time-out. + + Args: + operations_response: a google.api_core.operation.Operation instance. + event: an instance of asyncio.Event to invoke once the operations have + completed, alerting the awaiting calling code that it can proceed. + """ + loop = asyncio.get_event_loop() + + def _done_callback(future): + # The operations_response object will call callbacks from a daemon + # thread so we must use a threadsafe method of setting the event here + # otherwise it will not trigger the awaiting code. + loop.call_soon_threadsafe(event.set) + + # operations_response represents a Long-Running Operation or LRO. The class + # provides an interface for polling the API to check when the operation is + # complete. Below we use the asynchronous interface, but there's also a + # synchronous interface that uses the Operation.result method. + # See: https://googleapis.dev/python/google-api-core/latest/operation.html + operations_response.add_done_callback(_done_callback) + + +def _fetch_and_print_results(batch_job_service, resource_name): + """Prints all the results from running the batch job. + + Args: + batch_job_service: an instance of the BatchJobService message class. + resource_name: a str of a resource name for a batch job. + """ + print(f'Batch job with resource name "{resource_name}" has finished. ' + 'Now, printing its results...') + + # Gets all the results from running batch job and prints their information. + batch_job_results = batch_job_service.list_batch_job_results( + resource_name, page_size=PAGE_SIZE) + + for batch_job_result in batch_job_results: + status = batch_job_result.status.message + status = status if status else 'N/A' + result = batch_job_result.mutate_operation_response + result = result if result.ByteSize() else 'N/A' + print(f'Batch job #{batch_job_result.operation_index} ' + f'has a status "{status}" and response type "{result}"') + + +if __name__ == '__main__': + # GoogleAdsClient will read the google-ads.yaml configuration file in the + # home directory if none is specified. + google_ads_client = GoogleAdsClient.load_from_storage() + + parser = argparse.ArgumentParser( + description=('Adds complete campaigns, including campaign budgets, ' + 'campaigns, ad groups and keywords for the given ' + 'customer ID using BatchJobService.')) + + # 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() + + asyncio.run(main(google_ads_client, args.customer_id)) diff --git a/examples/campaign_management/add_complete_campaigns_using_mutate_job.py b/examples/campaign_management/add_complete_campaigns_using_mutate_job.py deleted file mode 100755 index e50806e9b..000000000 --- a/examples/campaign_management/add_complete_campaigns_using_mutate_job.py +++ /dev/null @@ -1,563 +0,0 @@ -#!/usr/bin/env python -# Copyright 2020 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. -"""Adds complete campaigns using MutateJobService. - -Complete campaigns include campaign budgets, campaigns, ad groups and keywords. -""" - - -import argparse -import asyncio -import sys -from uuid import uuid4 - -from google.ads.google_ads.client import GoogleAdsClient -from google.ads.google_ads.errors import GoogleAdsException - -NUMBER_OF_CAMPAIGNS_TO_ADD = 2 -NUMBER_OF_AD_GROUPS_TO_ADD = 2 -NUMBER_OF_KEYWORDS_TO_ADD = 4 - -PAGE_SIZE = 1000 - -_temporary_id = 0 - - -def _get_next_temporary_id(): - """Returns the next temporary ID to use in mutate job operations. - - Decrements the temporary ID by one before returning it. The first value - returned for the ID is -1. - - Returns: an int of the next temporary ID. - """ - global _temporary_id - _temporary_id -= 1 - return _temporary_id - - -def _handle_google_ads_exception(exception): - """Prints the details of a GoogleAdsException object. - - Args: - exception: an instance of GoogleAdsException. - """ - print(f'Request with ID "{exception.request_id}" failed with status ' - f'"{exception.error.code().name}" and includes the following errors:') - for error in exception.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) - - -def _build_mutate_operation(client, operation_type, operation): - """Builds a mutate operation with the given operation type and operation. - - Args: - client: an initialized GoogleAdsClient instance. - operation_type: a str of the operation type corresponding to a field on - the MutateOperation message class. - operation: an operation instance. - - Returns: a MutateOperation instance - """ - mutate_operation = client.get_type('MutateOperation', version='v3') - getattr(mutate_operation, operation_type).CopyFrom(operation) - return mutate_operation - - -async def main(client, customer_id): - """Main function that runs the example. - - Args: - client: an initialized GoogleAdsClient instance. - customer_id: a str of a customer ID. - """ - mutate_job_service = client.get_service('MutateJobService', version='v3') - resource_name = _create_mutate_job(mutate_job_service, customer_id) - operations = _build_all_operations(client, customer_id) - _add_all_mutate_job_operations(mutate_job_service, operations, resource_name) - operations_response = _run_mutate_job(mutate_job_service, resource_name) - - # Create an asyncio.Event instance to control execution during the - # asyncronous steps in _poll_mutate_job. Note that this is not important - # for polling asyncronously, it simply helps with execution control so we - # can run _fetch_and_print_results after the asyncronous operations have - # completed. - _done_event = asyncio.Event() - _poll_mutate_job(operations_response, _done_event) - # Execution will stop here and wait for the asyncronous steps in - # _poll_mutate_job to complete before proceeding. - await _done_event.wait() - - _fetch_and_print_results(mutate_job_service, resource_name) - - -def _create_mutate_job(mutate_job_service, customer_id): - """Creates a mutate job for the specified customer ID. - - Args: - mutate_job_service: an instance of the MutateJobService message class. - customer_id: a str of a customer ID. - - Returns: a str of a resource name for a mutate job. - """ - try: - response = mutate_job_service.create_mutate_job(customer_id) - resource_name = response.resource_name - print(f'Created a mutate job with resource name "{resource_name}"') - return resource_name - except GoogleAdsException as exception: - _handle_google_ads_exception(exception) - - -def _add_all_mutate_job_operations(mutate_job_service, operations, - resource_name): - """Adds all mutate job operations to the mutate job. - - As this is the first time for this mutate job, we pass null as a sequence - token. The response will contain the next sequence token that we can use - to upload more operations in the future. - - Args: - mutate_job_service: an instance of the MutateJobService message class. - operations: a list of a mutate operations. - resource_name: a str of a resource name for a mutate job. - """ - try: - response = mutate_job_service.add_mutate_job_operations( - resource_name, None, operations) - - print(f'{response.total_operations} mutate operations have been ' - 'added so far.') - - # You can use this next sequence token for calling - # add_mutate_job_operations() next time. - print('Next sequence token for adding next operations is ' - f'{response.next_sequence_token}') - except GoogleAdsException as exception: - _handle_google_ads_exception(exception) - - -def _build_all_operations(client, customer_id): - """Builds all operations for creating a complete campaign. - - Args: - client: an initialized GoogleAdsClient instance. - customer_id: a str of a customer ID. - - Returns: a list of operations of various types. - """ - operations = [] - - # Creates a new campaign budget operation and adds it to the list of - # mutate operations. - campaign_budget_op = _build_campaign_budget_operation(client, customer_id) - operations.append(_build_mutate_operation( - client, 'campaign_budget_operation', campaign_budget_op)) - - # Creates new campaign operations and adds them to the list of - # mutate operations. - campaign_operations = _build_campaign_operations( - client, customer_id, campaign_budget_op.create.resource_name) - operations = operations + [ - _build_mutate_operation(client, 'campaign_operation', operation) \ - for operation in campaign_operations] - - # Creates new campaign criterion operations and adds them to the list of - # mutate operations. - campaign_criterion_operations = _build_campaign_criterion_operations( - client, campaign_operations) - operations = operations + [ - _build_mutate_operation( - client, 'campaign_criterion_operation', operation) \ - for operation in campaign_criterion_operations] - - # Creates new ad group operations and adds them to the list of - # mutate operations. - ad_group_operations = _build_ad_group_operations( - client, customer_id, campaign_operations) - operations = operations + [ - _build_mutate_operation(client, 'ad_group_operation', operation) \ - for operation in ad_group_operations] - - # Creates new ad group criterion operations and add them to the list of - # mutate operations. - ad_group_criterion_operations = _build_ad_group_criterion_operations( - client, ad_group_operations) - operations = operations + [ - _build_mutate_operation( - client, 'ad_group_criterion_operation', operation) \ - for operation in ad_group_criterion_operations] - - # Creates new ad group ad operations and adds them to the list of - # mutate operations. - ad_group_ad_operations = _build_ad_group_ad_operations( - client, ad_group_operations) - operations = operations + [ - _build_mutate_operation(client, 'ad_group_ad_operation', operation) \ - for operation in ad_group_ad_operations] - - return operations - - -def _build_campaign_budget_operation(client, customer_id): - """Builds a new campaign budget operation for the given customer ID. - - Args: - client: an initialized GoogleAdsClient instance. - customer_id: a str of a customer ID. - - Returns: a CampaignBudgetOperation instance. - """ - campaign_budget_service = client.get_service('CampaignBudgetService', - version='v3') - campaign_budget_operation = client.get_type('CampaignBudgetOperation', - version='v3') - campaign_budget = campaign_budget_operation.create - resource_name = campaign_budget_service.campaign_budget_path( - customer_id, _get_next_temporary_id()) - campaign_budget.resource_name = resource_name - campaign_budget.name.value = f'Interplanetary Cruise Budget #{uuid4()}' - campaign_budget.delivery_method = client.get_type( - 'BudgetDeliveryMethodEnum', version='v3').STANDARD - campaign_budget.amount_micros.value = 5000000 - - return campaign_budget_operation - - -def _build_campaign_operations(client, customer_id, - campaign_budget_resource_name): - """Builds new campaign operations for the specified customer ID. - - Args: - client: an initialized GoogleAdsClient instance. - customer_id: a str of a customer ID. - campaign_budget_resource_name: a str resource name for a campaign - budget. - - Returns: a list of CampaignOperation instances. - """ - return [ - _build_campaign_operation( - client, customer_id, campaign_budget_resource_name) \ - for i in range(NUMBER_OF_CAMPAIGNS_TO_ADD)] - - -def _build_campaign_operation(client, customer_id, - campaign_budget_resource_name): - """Builds new campaign operation for the specified customer ID. - - Args: - client: an initialized GoogleAdsClient instance. - customer_id: a str of a customer ID. - campaign_budget_resource_name: a str resource name for a campaign - budget. - - Returns: a CampaignOperation instance. - """ - campaign_operation = client.get_type('CampaignOperation', version='v3') - campaign_service = client.get_service('CampaignService', version='v3') - # Creates a campaign. - campaign = campaign_operation.create - campaign_id = _get_next_temporary_id() - # Creates a resource name using the temporary ID. - campaign.resource_name = campaign_service.campaign_path(customer_id, - campaign_id) - campaign.name.value = f'Mutate job campaign #{customer_id}.{campaign_id}' - campaign.advertising_channel_type = client.get_type( - 'AdvertisingChannelTypeEnum', version='v3').SEARCH - # Recommendation: Set the campaign to PAUSED when creating it to prevent - # the ads from immediately serving. Set to ENABLED once you've added - # targeting and the ads are ready to serve. - campaign.status = client.get_type('CampaignStatusEnum', version='v3').PAUSED - # Set the bidding strategy and type. - campaign.manual_cpc.CopyFrom(client.get_type('ManualCpc', version='v3')) - campaign.campaign_budget.value = campaign_budget_resource_name - - return campaign_operation - - -def _build_campaign_criterion_operations(client, campaign_operations): - """Builds new campaign criterion operations for negative keyword criteria. - - Args: - client: an initialized GoogleAdsClient instance. - campaign_operations: a list of CampaignOperation instances. - - Returns: a list of CampaignCriterionOperation instances. - """ - return [ - _build_campaign_criterion_operation(client, campaign_operation) \ - for campaign_operation in campaign_operations] - - -def _build_campaign_criterion_operation(client, campaign_operation): - """Builds a new campaign criterion operation for negative keyword criterion. - - Args: - client: an initialized GoogleAdsClient instance. - campaign_operation: a CampaignOperation instance. - - Returns: a CampaignCriterionOperation instance. - """ - campaign_criterion_operation = client.get_type( - 'CampaignCriterionOperation', version='v3') - # Creates a campaign criterion. - campaign_criterion = campaign_criterion_operation.create - campaign_criterion.keyword.text.value = 'venus' - campaign_criterion.keyword.match_type = client.get_type( - 'KeywordMatchTypeEnum', version='v3').BROAD - # Sets the campaign criterion as a negative criterion. - campaign_criterion.negative.value = True - campaign_criterion.campaign.value = campaign_operation.create.resource_name - - return campaign_criterion_operation - - -def _build_ad_group_operations(client, customer_id, campaign_operations): - """Builds new ad group operations for the specified customer ID. - - Args: - client: an initialized GoogleAdsClient instance. - customer_id: a str of a customer ID. - campaign_operations: a list of CampaignOperation instances. - - Return: a list of AdGroupOperation instances. - """ - operations = [] - - for campaign_operation in campaign_operations: - for i in range(NUMBER_OF_AD_GROUPS_TO_ADD): - operations.append( - _build_ad_group_operation( - client, customer_id, campaign_operation)) - - return operations - - -def _build_ad_group_operation(client, customer_id, campaign_operation): - """Builds a new ad group operation for the specified customer ID. - - Args: - client: an initialized GoogleAdsClient instance. - customer_id: a str of a customer ID. - campaign_operation: a CampaignOperation instance. - - Return: an AdGroupOperation instance. - """ - ad_group_operation = client.get_type('AdGroupOperation', version='v3') - ad_group_service = client.get_service('AdGroupService', version='v3') - # Creates an ad group. - ad_group = ad_group_operation.create - ad_group_id = _get_next_temporary_id() - # Creates a resource name using the temporary ID. - ad_group.resource_name = ad_group_service.ad_group_path(customer_id, - ad_group_id) - ad_group.name.value = f'Mutate job ad group #{uuid4()}.{ad_group_id}' - ad_group.campaign.value = campaign_operation.create.resource_name - ad_group.type = client.get_type('AdGroupTypeEnum', - version='v3').SEARCH_STANDARD - ad_group.cpc_bid_micros.value = 10000000 - - return ad_group_operation - - -def _build_ad_group_criterion_operations(client, ad_group_operations): - """Builds new ad group criterion operations for creating keywords. - - 50% of keywords are created with some invalid characters to demonstrate - how MutateJobService returns information about such errors. - - Args: - client: an initialized GoogleAdsClient instance. - ad_group_operations: a list of AdGroupOperation instances. - - Returns a list of AdGroupCriterionOperation instances. - """ - operations = [] - - for ad_group_operation in ad_group_operations: - for i in range(NUMBER_OF_KEYWORDS_TO_ADD): - operations.append( - _build_ad_group_criterion_operation( - # Create a keyword text by making 50% of keywords invalid - # to demonstrate error handling. - client, ad_group_operation, i, i % 2 == 0)) - - return operations - - -def _build_ad_group_criterion_operation(client, ad_group_operation, number, - is_valid=True): - """Builds new ad group criterion operation for creating keywords. - - Takes an optional param that dictates whether the keyword text should - intentionally generate an error with invalid characters. - - Args: - client: an initialized GoogleAdsClient instance. - ad_group_operation: an AdGroupOperation instance. - number: an int of the number to assign to the name of the criterion. - is_valid: a bool of whether the keyword text should be invalid. - - Returns: an AdGroupCriterionOperation instance. - """ - ad_group_criterion_operation = client.get_type('AdGroupCriterionOperation', - version='v3') - # Creates an ad group criterion. - ad_group_criterion = ad_group_criterion_operation.create - ad_group_criterion.keyword.text.value = f'mars{number}' - - # If keyword should be invalid we add exclamation points, which will - # generate errors when sent to the API. - if not is_valid: - ad_group_criterion.keyword.text.value += '!!!' - - ad_group_criterion.keyword.match_type = client.get_type( - 'KeywordMatchTypeEnum', version='v3').BROAD - ad_group_criterion.ad_group.value = ad_group_operation.create.resource_name - ad_group_criterion.status = client.get_type( - 'AdGroupCriterionStatusEnum', version='v3').ENABLED - - return ad_group_criterion_operation - - -def _build_ad_group_ad_operations(client, ad_group_operations): - """Builds new ad group ad operations. - - Args: - client: an initialized GoogleAdsClient instance. - ad_group_operations: a list of AdGroupOperation instances. - - Returns: a list of AdGroupAdOperation instances. - """ - return [ - _build_ad_group_ad_operation(client, ad_group_operation) \ - for ad_group_operation in ad_group_operations] - - -def _build_ad_group_ad_operation(client, ad_group_operation): - """Builds a new ad group ad operation. - - Args: - client: an initialized GoogleAdsClient instance. - ad_group_operation: an AdGroupOperation instance. - - Returns: an AdGroupAdOperation instance. - """ - ad_group_ad_operation = client.get_type('AdGroupAdOperation', version='v3') - # Creates an ad group ad. - ad_group_ad = ad_group_ad_operation.create - # Creates the expanded text ad info. - text_ad = ad_group_ad.ad.expanded_text_ad - text_ad.headline_part1.value = f'Cruise to Mars #{uuid4()}' - text_ad.headline_part2.value = 'Best Space Cruise Line' - text_ad.description.value = 'Buy your tickets now!' - final_url = ad_group_ad.ad.final_urls.add() - final_url.value = 'http://www.example.com' - ad_group_ad.ad_group.value = ad_group_operation.create.resource_name - ad_group_ad.status = client.get_type('AdGroupAdStatusEnum', - version='v3').PAUSED - - return ad_group_ad_operation - - -def _run_mutate_job(mutate_job_service, resource_name): - """Runs the mutate job for executing all uploaded mutate job operations. - - Args: - mutate_job_service: an instance of the MutateJobService message class. - resource_name: a str of a resource name for a mutate job. - - Returns: a google.api_core.operation.Operation instance. - """ - try: - response = mutate_job_service.run_mutate_job(resource_name) - print(f'Mutate job with resource name "{resource_name}" has been ' - 'executed.') - return response - except GoogleAdsException as exception: - _handle_google_ads_exception(exception) - - -def _poll_mutate_job(operations_response, event): - """Polls the server until the mutate job execution finishes. - - Sets the initial poll delay time and the total time to wait before time-out. - - Args: - operations_response: a google.api_core.operation.Operation instance. - event: an instance of asyncio.Event to invoke once the operations have - completed, alerting the awaiting calling code that it can proceed. - """ - loop = asyncio.get_event_loop() - - def _done_callback(future): - # The operations_response object will call callbacks from a daemon - # thread so we must use a threadsafe method of setting the event here - # otherwise it will not trigger the awaiting code. - loop.call_soon_threadsafe(event.set) - - # operations_response represents a Long-Running Operation or LRO. The class - # provides an interface for polling the API to check when the operation is - # complete. Below we use the asynchronous interface, but there's also a - # synchronous interface that uses the Operation.result method. - # See: https://googleapis.dev/python/google-api-core/latest/operation.html - operations_response.add_done_callback(_done_callback) - - -def _fetch_and_print_results(mutate_job_service, resource_name): - """Prints all the results from running the mutate job. - - Args: - mutate_job_service: an instance of the MutateJobService message class. - resource_name: a str of a resource name for a mutate job. - """ - print(f'Mutate job with resource name "{resource_name}" has finished. ' - 'Now, printing its results...') - - # Gets all the results from running mutate job and prints their information. - mutate_job_results = mutate_job_service.list_mutate_job_results( - resource_name, page_size=PAGE_SIZE) - - for mutate_job_result in mutate_job_results: - status = mutate_job_result.status.message - status = status if status else 'N/A' - result = mutate_job_result.mutate_operation_response - result = result if result.ByteSize() else 'N/A' - print(f'Mutate job #{mutate_job_result.operation_index} ' - f'has a status "{status}" and response type "{result}"') - - -if __name__ == '__main__': - # GoogleAdsClient will read the google-ads.yaml configuration file in the - # home directory if none is specified. - google_ads_client = GoogleAdsClient.load_from_storage() - - parser = argparse.ArgumentParser( - description=('Adds complete campaigns, including campaign budgets, ' - 'campaigns, ad groups and keywords for the given ' - 'customer ID using MutateJobService.')) - - # 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() - - asyncio.run(main(google_ads_client, args.customer_id)) diff --git a/examples/campaign_management/create_campaign_experiment.py b/examples/campaign_management/create_campaign_experiment.py old mode 100644 new mode 100755 index fe8d69b39..552304e89 --- a/examples/campaign_management/create_campaign_experiment.py +++ b/examples/campaign_management/create_campaign_experiment.py @@ -24,21 +24,26 @@ from google.ads.google_ads.client import GoogleAdsClient from google.ads.google_ads.errors import GoogleAdsException +from google.ads.google_ads.util import ResourceName -def main(client, customer_id, campaign_draft_resource_name): +def main(client, customer_id, base_campaign_id, draft_id): # Create the campaign experiment. - campaign_experiment = client.get_type('CampaignExperiment', version='v3') + campaign_experiment = client.get_type('CampaignExperiment', version='v4') + campaign_draft_service = client.get_service('CampaignDraftService', + version='v4') + campaign_draft_resource_name = campaign_draft_service.campaign_draft_path( + customer_id, ResourceName.format_composite(base_campaign_id, draft_id)) + campaign_experiment.campaign_draft.value = campaign_draft_resource_name - campaign_experiment.name.value = 'Campaign Experiment #{}'.format( - uuid.uuid4()) + campaign_experiment.name.value = f'Campaign Experiment #{uuid.uuid4()}' campaign_experiment.traffic_split_percent.value = 50 campaign_experiment.traffic_split_type = client.get_type( - 'CampaignExperimentTrafficSplitTypeEnum', version='v3').RANDOM_QUERY + 'CampaignExperimentTrafficSplitTypeEnum', version='v4').RANDOM_QUERY try: campaign_experiment_service = client.get_service( - 'CampaignExperimentService', version='v3') + 'CampaignExperimentService', version='v4') # A Long Running Operation (LRO) is returned from this # asynchronous request by the API. @@ -46,45 +51,46 @@ def main(client, customer_id, campaign_draft_resource_name): campaign_experiment_service.create_campaign_experiment( customer_id, campaign_experiment)) except GoogleAdsException as ex: - print('Request with ID "{}" failed with status "{}" and includes the ' - 'following errors:'.format(ex.request_id, ex.error.code().name)) + 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('\tError with message "{}".'.format(error.message)) + print(f'\tError with message "{error.message}".') if error.location: for field_path_element in error.location.field_path_elements: - print('\t\tOn field: {}'.format(field_path_element.field_name)) + print(f'\t\tOn field: {field_path_element.field_name}') sys.exit(1) print('Asynchronous request to create campaign experiment with ' - 'resource name "{}" started.'.format( - campaign_experiment_lro.metadata.campaign_experiment)) + 'resource name ' + f'"{campaign_experiment_lro.metadata.campaign_experiment}" started.') print('Waiting until operation completes.') # Poll until the operation completes. campaign_experiment_lro.result() # Retrieve the campaign experiment that has been created. - ga_service = client.get_service('GoogleAdsService', version='v3') + ga_service = client.get_service('GoogleAdsService', version='v4') query = ( 'SELECT campaign_experiment.experiment_campaign ' 'FROM campaign_experiment ' - 'WHERE campaign_experiment.resource_name = "{}"'.format( - campaign_experiment_lro.metadata.campaign_experiment)) + 'WHERE campaign_experiment.resource_name = ' + f'"{campaign_experiment_lro.metadata.campaign_experiment}"') results = ga_service.search(customer_id, query=query, page_size=1) try: for row in results: - print('Experiment campaign "{}" creation completed.'.format( - row.campaign_experiment.experiment_campaign.value)) + print('Experiment campaign ' + f'"{row.campaign_experiment.experiment_campaign.value}" ' + 'creation completed.') except GoogleAdsException as ex: - print('Request with ID "{}" failed with status "{}" and includes the ' - 'following errors:'.format(ex.request_id, ex.error.code().name)) + 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('\tError with message "{}".'.format(error.message)) + print(f'\tError with message "{error.message}".') if error.location: for field_path_element in error.location.field_path_elements: - print('\t\tOn field: {}'.format(field_path_element.field_name)) + print(f'\t\tOn field: {field_path_element.field_name}') sys.exit(1) if __name__ == '__main__': @@ -97,9 +103,11 @@ def main(client, customer_id, campaign_draft_resource_name): # 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.') - parser.add_argument('-n', '--campaign_draft_resource_name', - type=str, required=True, - help='The campaign draft resource name.') + parser.add_argument('-i', '--base_campaign_id', type=str, required=True, + help='The base campaign id.') + parser.add_argument('-d', '--draft_id', type=str, required=True, + help='The id of the draft.') args = parser.parse_args() - main(google_ads_client, args.customer_id, args.campaign_draft_resource_name) + main(google_ads_client, args.customer_id, args.base_campaign_id, + args.draft_id) diff --git a/examples/campaign_management/get_all_disapproved_ads.py b/examples/campaign_management/get_all_disapproved_ads.py index a59e66cd7..ba3411961 100755 --- a/examples/campaign_management/get_all_disapproved_ads.py +++ b/examples/campaign_management/get_all_disapproved_ads.py @@ -24,7 +24,7 @@ def main(client, customer_id, campaign_id, page_size): - ga_service = client.get_service('GoogleAdsService', version='v3') + ga_service = client.get_service('GoogleAdsService', version='v4') query = ('SELECT ad_group_ad.ad.id, ad_group_ad.ad.type, ' 'ad_group_ad.policy_summary FROM ad_group_ad ' @@ -34,7 +34,7 @@ def main(client, customer_id, campaign_id, page_size): try: disapproved_ads_count = 0 - ad_type_enum = client.get_type('AdTypeEnum', version='v3').AdType + ad_type_enum = client.get_type('AdTypeEnum', version='v4').AdType policy_topic_entry_type_enum = client.get_type( 'PolicyTopicEntryTypeEnum').PolicyTopicEntryType diff --git a/examples/campaign_management/get_campaigns_by_label.py b/examples/campaign_management/get_campaigns_by_label.py index 795fa93ee..819034fef 100755 --- a/examples/campaign_management/get_campaigns_by_label.py +++ b/examples/campaign_management/get_campaigns_by_label.py @@ -38,7 +38,7 @@ def main(client, customer_id, label_id, page_size): page_size: An int of the number of results to include in each page of results. """ - ga_service = client.get_service('GoogleAdsService', version='v3') + ga_service = client.get_service('GoogleAdsService', version='v4') # Creates a query that will retrieve all campaign labels with the # specified label ID. diff --git a/examples/campaign_management/set_ad_parameters.py b/examples/campaign_management/set_ad_parameters.py index 9ff922bcf..9abd00a4b 100755 --- a/examples/campaign_management/set_ad_parameters.py +++ b/examples/campaign_management/set_ad_parameters.py @@ -32,7 +32,7 @@ def main(client, customer_id, ad_group_id, criterion_id): criterion_id: A criterion ID str. """ ad_group_criterion_service = client.get_service('AdGroupCriterionService', - version='v3') + version='v4') # Gets the resource name of the ad group criterion to be used. resource_name = ad_group_criterion_service.ad_group_criteria_path( customer_id, ResourceName.format_composite(ad_group_id, criterion_id)) @@ -42,7 +42,7 @@ def main(client, customer_id, ad_group_id, criterion_id): operations.append(create_ad_parameter(client, resource_name, 2, '$40')) ad_parameter_service = client.get_service('AdParameterService', - version='v3') + version='v4') # Add the ad parameter. try: @@ -72,7 +72,7 @@ def create_ad_parameter(client, resource_name, parameter_index, insertion_text): Restrictions apply to the value of the "insertion_text". For more information, see the field documentation in the AdParameter class located - here: https://developers.google.com/google-ads/api/fields/v2/ad_parameter#ad_parameterinsertion_text + here: https://developers.google.com/google-ads/api/fields/v4/ad_parameter#ad_parameterinsertion_text Args: client: An initialized GoogleAdsClient instance. @@ -82,7 +82,7 @@ def create_ad_parameter(client, resource_name, parameter_index, insertion_text): Returns: A new AdParamterOperation message class instance. """ - ad_param_operation = client.get_type('AdParameterOperation', version='v3') + ad_param_operation = client.get_type('AdParameterOperation', version='v4') ad_param = ad_param_operation.create ad_param.ad_group_criterion.value = resource_name ad_param.parameter_index.value = parameter_index diff --git a/examples/campaign_management/update_campaign_criterion_bid_modifier.py b/examples/campaign_management/update_campaign_criterion_bid_modifier.py index be510b79c..9233cf25a 100755 --- a/examples/campaign_management/update_campaign_criterion_bid_modifier.py +++ b/examples/campaign_management/update_campaign_criterion_bid_modifier.py @@ -22,18 +22,18 @@ from google.api_core import protobuf_helpers -def main(client, customer_id, campaign_id, criterion_id, bid_modifier): +def main(client, customer_id, campaign_id, criterion_id, bid_modifier_value): campaign_criterion_service = client.get_service( - 'CampaignCriterionService', version='v2') + 'CampaignCriterionService', version='v4') criterion_rname = campaign_criterion_service.campaign_criteria_path( customer_id, f'{campaign_id}~{criterion_id}') campaign_criterion_operation = client.get_type( - 'CampaignCriterionOperation', version='v2') + 'CampaignCriterionOperation', version='v4') campaign_criterion = campaign_criterion_operation.update campaign_criterion.resource_name = criterion_rname - campaign_criterion.bid_modifier.value = bid_modifier + campaign_criterion.bid_modifier.value = bid_modifier_value fm = protobuf_helpers.field_mask(None, campaign_criterion) campaign_criterion_operation.update_mask.CopyFrom(fm) @@ -71,9 +71,9 @@ def main(client, customer_id, campaign_id, criterion_id, bid_modifier): help='The campaign ID.') parser.add_argument('--criterion_id', type=str, required=True, help='The criterion ID.') - parser.add_argument('-b', '--bid_modifier', type=float, default=1.5, + parser.add_argument('-b', '--bid_modifier_value', type=float, default=1.5, help='The desired campaign criterion bid modifier.') args = parser.parse_args() main(google_ads_client, args.customer_id, args.campaign_id, - args.criterion_id, args.bid_modifier) + args.criterion_id, args.bid_modifier_value) diff --git a/examples/campaign_management/validate_text_ad.py b/examples/campaign_management/validate_text_ad.py index c826b86cb..84fb56ec6 100755 --- a/examples/campaign_management/validate_text_ad.py +++ b/examples/campaign_management/validate_text_ad.py @@ -26,13 +26,13 @@ def main(client, customer_id, ad_group_id): - ad_group_ad_operation = client.get_type('AdGroupAdOperation', version='v2') + ad_group_ad_operation = client.get_type('AdGroupAdOperation', version='v4') ad_group_ad = ad_group_ad_operation.create - ad_group_service = client.get_service('AdGroupService', version='v2') + ad_group_service = client.get_service('AdGroupService', version='v4') ad_group_ad.ad_group.value = ad_group_service.ad_group_path(customer_id, ad_group_id) ad_group_ad.status = client.get_type('AdGroupAdStatusEnum', - version='v2').PAUSED + version='v4').PAUSED # Create an expanded text ad. ad_group_ad.ad.expanded_text_ad.description.value = 'Luxury Cruise to Mars' @@ -45,7 +45,7 @@ def main(client, customer_id, ad_group_id): final_url = ad_group_ad.ad.final_urls.add() final_url.value = 'http://www.example.com/' - ad_group_ad_service = client.get_service('AdGroupAdService', version='v2') + ad_group_ad_service = client.get_service('AdGroupAdService', version='v4') # Attempt the mutate with validate_only=True. try: response = ad_group_ad_service.mutate_ad_group_ads(customer_id, @@ -65,7 +65,7 @@ def main(client, customer_id, ad_group_id): # https://developers.google.com/google-ads/api/docs/policy-exemption/overview if (error.error_code.policy_finding_error == client.get_type('PolicyFindingErrorEnum', - version='v2').POLICY_FINDING): + version='v4').POLICY_FINDING): if error.details.policy_finding_details: count = 1 details = (error.details.policy_finding_details diff --git a/examples/error_handling/handle_partial_failure.py b/examples/error_handling/handle_partial_failure.py index 548b2970f..6268a69e7 100755 --- a/examples/error_handling/handle_partial_failure.py +++ b/examples/error_handling/handle_partial_failure.py @@ -63,8 +63,8 @@ def create_ad_groups(client, customer_id, campaign_id): Returns: A MutateAdGroupsResponse message instance. """ - ad_group_service = client.get_service('AdGroupService', version='v3') - campaign_service = client.get_service('CampaignService', version='v3') + ad_group_service = client.get_service('AdGroupService', version='v4') + campaign_service = client.get_service('CampaignService', version='v4') resource_name = campaign_service.campaign_path(customer_id, campaign_id) invalid_resource_name = campaign_service.campaign_path(customer_id, 0) @@ -72,20 +72,20 @@ def create_ad_groups(client, customer_id, campaign_id): # This AdGroup should be created successfully - assuming the campaign in # the params exists. - ad_group_op1 = client.get_type('AdGroupOperation', version='v3') + ad_group_op1 = client.get_type('AdGroupOperation', version='v4') ad_group_op1.create.name.value = 'Valid AdGroup: %s' % uuid.uuid4() ad_group_op1.create.campaign.value = resource_name ad_group_operations.append(ad_group_op1) # This AdGroup will always fail - campaign ID 0 in resource names is # never valid. - ad_group_op2 = client.get_type('AdGroupOperation', version='v3') + ad_group_op2 = client.get_type('AdGroupOperation', version='v4') ad_group_op2.create.name.value = 'Broken AdGroup: %s' % (uuid.uuid4()) ad_group_op2.create.campaign.value = invalid_resource_name ad_group_operations.append(ad_group_op2) # This AdGroup will always fail - duplicate ad group names are not allowed. - ad_group_op3 = client.get_type('AdGroupOperation', version='v3') + ad_group_op3 = client.get_type('AdGroupOperation', version='v4') ad_group_op3.create.name.value = (ad_group_op1.create.name.value) ad_group_op3.create.campaign.value = resource_name ad_group_operations.append(ad_group_op3) @@ -162,7 +162,7 @@ def print_results(client, response): for error_detail in error_details: # Retrieve an instance of the GoogleAdsFailure class from the client - failure_message = client.get_type('GoogleAdsFailure', version='v3') + failure_message = client.get_type('GoogleAdsFailure', version='v4') # Parse the string into a GoogleAdsFailure message instance. failure_object = failure_message.FromString(error_detail.value) diff --git a/examples/extensions/add_prices.py b/examples/extensions/add_prices.py index 5703b1d0e..31bbb993f 100644 --- a/examples/extensions/add_prices.py +++ b/examples/extensions/add_prices.py @@ -29,9 +29,9 @@ def main(client, customer_id, campaign_id): """The main method that creates all necessary entities for the example.""" # Create the price extension feed item - price_feed_item = client.get_type('PriceFeedItem', version='v3') + price_feed_item = client.get_type('PriceFeedItem', version='v4') price_feed_item.type = ( - client.get_type('PriceExtensionTypeEnum', version='v3').SERVICES) + client.get_type('PriceExtensionTypeEnum', version='v4').SERVICES) # Optional: set price qualifier price_feed_item.price_qualifier = ( client.get_type('PriceExtensionPriceQualifierEnum').FROM) @@ -71,17 +71,17 @@ def main(client, customer_id, campaign_id): # Create a customer extension setting using the previously created # extension feed item. This associates the price extension to your # account. - campaign_service = client.get_service('CampaignService', version='v3') + campaign_service = client.get_service('CampaignService', version='v4') extension_feed_item_operation = ( - client.get_type('ExtensionFeedItemOperation', version='v3')) + client.get_type('ExtensionFeedItemOperation', version='v4')) extension_feed_item = extension_feed_item_operation.create extension_feed_item.extension_type = ( client.get_type('ExtensionTypeEnum').PRICE) extension_feed_item.price_feed_item.CopyFrom(price_feed_item) extension_feed_item.targeted_campaign.value = ( campaign_service.campaign_path(customer_id, campaign_id)) - day_of_week_enum = client.get_type('DayOfWeekEnum', version='v3') - minute_of_hour_enum = client.get_type('MinuteOfHourEnum', version='v3') + day_of_week_enum = client.get_type('DayOfWeekEnum', version='v4') + minute_of_hour_enum = client.get_type('MinuteOfHourEnum', version='v4') extension_feed_item.ad_schedules.extend([ _create_ad_schedule_info(client, day_of_week_enum.SUNDAY, @@ -100,7 +100,7 @@ def main(client, customer_id, campaign_id): # Add the extension try: feed_service = client.get_service('ExtensionFeedItemService', - version='v3') + version='v4') # Issues a mutate request to add the customer extension setting and # print its information. feed_response = ( @@ -125,7 +125,7 @@ def _create_price_offer(client, header, description, price_in_micros, currency_code, unit, in_final_url, in_final_mobile_url=None): """Create a price offer.""" - price_offer = client.get_type('PriceOffer', version='v3') + price_offer = client.get_type('PriceOffer', version='v4') price_offer.header.value = header price_offer.description.value = description final_url = price_offer.final_urls.add() @@ -143,7 +143,7 @@ def _create_price_offer(client, header, description, price_in_micros, def _create_ad_schedule_info(client, day_of_week, start_hour, start_minute, end_hour, end_minute): """Create a new ad schedule info with the specified parameters.""" - ad_schedule_info = client.get_type('AdScheduleInfo', version='v3') + ad_schedule_info = client.get_type('AdScheduleInfo', version='v4') ad_schedule_info.day_of_week = day_of_week ad_schedule_info.start_hour.value = start_hour ad_schedule_info.start_minute = start_minute diff --git a/examples/extensions/add_sitelinks.py b/examples/extensions/add_sitelinks.py index 23b7b44bf..9e4daa802 100644 --- a/examples/extensions/add_sitelinks.py +++ b/examples/extensions/add_sitelinks.py @@ -34,9 +34,9 @@ def main(client, customer_id, campaign_id): """The main method that creates all necessary entities for the example.""" # Create an extension setting. - campaign_service = client.get_service('CampaignService', version='v3') + campaign_service = client.get_service('CampaignService', version='v4') campaign_ext_setting_service = client.get_service( - 'CampaignExtensionSettingService', version='v3') + 'CampaignExtensionSettingService', version='v4') campaign_resource_name = campaign_service.campaign_path( customer_id, campaign_id) @@ -45,9 +45,9 @@ def main(client, customer_id, campaign_id): client, customer_id, campaign_resource_name) campaign_ext_setting_operation = client.get_type( - 'CampaignExtensionSettingOperation', version='v3') + 'CampaignExtensionSettingOperation', version='v4') extension_type_enum = client.get_type( - 'ExtensionTypeEnum', version='v3') + 'ExtensionTypeEnum', version='v4') campaign_ext_setting = campaign_ext_setting_operation.create campaign_ext_setting.campaign.value = campaign_resource_name @@ -90,16 +90,16 @@ def _create_extension_feed_items(client, customer_id, campaign_resource_name): feed items. """ extension_feed_item_service = client.get_service( - 'ExtensionFeedItemService', version='v3') + 'ExtensionFeedItemService', version='v4') geo_target_constant_service = client.get_service( - 'GeoTargetConstantService', version='v3') + 'GeoTargetConstantService', version='v4') extension_type_enum = client.get_type('ExtensionTypeEnum') feed_item_target_device_enum = client.get_type('FeedItemTargetDeviceEnum') day_of_week_enum = client.get_type('DayOfWeekEnum') minute_of_hour_enum = client.get_type('MinuteOfHourEnum') extension_feed_item_operation1 = client.get_type( - 'ExtensionFeedItemOperation', version='v3') + 'ExtensionFeedItemOperation', version='v4') extension_feed_item1 = extension_feed_item_operation1.create extension_feed_item1.extension_type = extension_type_enum.SITELINK extension_feed_item1.sitelink_feed_item.link_text.value = 'Store Hours' @@ -108,7 +108,7 @@ def _create_extension_feed_items(client, customer_id, campaign_resource_name): final_url1.value = 'http://www.example.com/storehours' extension_feed_item_operation2 = client.get_type( - 'ExtensionFeedItemOperation', version='v3') + 'ExtensionFeedItemOperation', version='v4') date_range = _get_thanksgiving_string_date_range() extension_feed_item2 = extension_feed_item_operation2.create extension_feed_item2.extension_type = extension_type_enum.SITELINK @@ -126,7 +126,7 @@ def _create_extension_feed_items(client, customer_id, campaign_resource_name): final_url2.value = 'http://www.example.com/thanksgiving' extension_feed_item_operation3 = client.get_type( - 'ExtensionFeedItemOperation', version='v3') + 'ExtensionFeedItemOperation', version='v4') extension_feed_item3 = extension_feed_item_operation3.create extension_feed_item3.extension_type = extension_type_enum.SITELINK extension_feed_item3.sitelink_feed_item.link_text.value = 'Wifi available' @@ -136,7 +136,7 @@ def _create_extension_feed_items(client, customer_id, campaign_resource_name): final_url3.value = 'http://www.example.com/mobile/wifi' extension_feed_item_operation4 = client.get_type( - 'ExtensionFeedItemOperation', version='v3') + 'ExtensionFeedItemOperation', version='v4') extension_feed_item4 = extension_feed_item_operation4.create extension_feed_item4.extension_type = extension_type_enum.SITELINK extension_feed_item4.sitelink_feed_item.link_text.value = 'Happy hours' diff --git a/examples/hotel_ads/add_hotel_ad.py b/examples/hotel_ads/add_hotel_ad.py index fc220ef66..4dddd2221 100755 --- a/examples/hotel_ads/add_hotel_ad.py +++ b/examples/hotel_ads/add_hotel_ad.py @@ -48,11 +48,11 @@ def main(client, customer_id, hotel_center_account_id, def add_budget(client, customer_id): campaign_budget_service = client.get_service('CampaignBudgetService', - version='v3') + version='v4') # Create a budget, which can be shared by multiple campaigns. campaign_budget_operation = client.get_type('CampaignBudgetOperation', - version='v3') + version='v4') campaign_budget = campaign_budget_operation.create campaign_budget.name.value = 'Interplanetary Budget %s' % uuid.uuid4() campaign_budget.delivery_method = client.get_type( @@ -82,19 +82,19 @@ def add_budget(client, customer_id): def add_hotel_ad(client, customer_id, ad_group_resource_name): - ad_group_ad_service = client.get_service('AdGroupAdService', version='v3') + ad_group_ad_service = client.get_service('AdGroupAdService', version='v4') # Creates a new ad group ad and sets the hotel ad to it. - ad_group_ad_operation = client.get_type('AdGroupAdOperation', version='v3') + ad_group_ad_operation = client.get_type('AdGroupAdOperation', version='v4') ad_group_ad = ad_group_ad_operation.create ad_group_ad.ad_group.value = ad_group_resource_name # Set the ad group ad to enabled. Setting this to paused will cause an error # for hotel campaigns. For hotels pausing should happen at either the ad group or # campaign level. ad_group_ad.status = client.get_type('AdGroupAdStatusEnum', - version='v3').ENABLED + version='v4').ENABLED ad_group_ad.ad.hotel_ad.CopyFrom(client.get_type('HotelAdInfo', - version='v3')) + version='v4')) # Add the ad group ad. try: @@ -118,16 +118,16 @@ def add_hotel_ad(client, customer_id, ad_group_resource_name): def add_hotel_ad_group(client, customer_id, campaign_resource_name): - ad_group_service = client.get_service('AdGroupService', version='v3') + ad_group_service = client.get_service('AdGroupService', version='v4') # Create ad group. - ad_group_operation = client.get_type('AdGroupOperation', version='v3') + ad_group_operation = client.get_type('AdGroupOperation', version='v4') ad_group = ad_group_operation.create ad_group.name.value = 'Earth to Mars cruise %s' % uuid.uuid4() - ad_group.status = client.get_type('AdGroupStatusEnum', version='v3').ENABLED + ad_group.status = client.get_type('AdGroupStatusEnum', version='v4').ENABLED ad_group.campaign.value = campaign_resource_name # Sets the ad group type to HOTEL_ADS. This cannot be set to other types. - ad_group.type = client.get_type('AdGroupTypeEnum', version='v3').HOTEL_ADS + ad_group.type = client.get_type('AdGroupTypeEnum', version='v4').HOTEL_ADS ad_group.cpc_bid_micros.value = 10000000 # Add the ad group. @@ -154,10 +154,10 @@ def add_hotel_ad_group(client, customer_id, campaign_resource_name): def add_hotel_campaign(client, customer_id, budget_resource_name, hotel_center_account_id, bid_ceiling_micro_amount): - campaign_service = client.get_service('CampaignService', version='v3') + campaign_service = client.get_service('CampaignService', version='v4') # Create campaign. - campaign_operation = client.get_type('CampaignOperation', version='v3') + campaign_operation = client.get_type('CampaignOperation', version='v4') campaign = campaign_operation.create campaign.name.value = 'Interplanetary Cruise Campaign %s' % uuid.uuid4() @@ -170,7 +170,7 @@ def add_hotel_campaign(client, customer_id, budget_resource_name, # Recommendation: Set the campaign to PAUSED when creating it to prevent the # ads from immediately serving. Set to ENABLED once you've added targeting # and the ads are ready to serve. - campaign.status = client.get_type('CampaignStatusEnum', version='v3').PAUSED + campaign.status = client.get_type('CampaignStatusEnum', version='v4').PAUSED # Set the bidding strategy to PercentCpc. Only Manual CPC and Percent CPC # can be used for hotel campaigns. diff --git a/examples/hotel_ads/add_hotel_ad_group_bid_modifiers.py b/examples/hotel_ads/add_hotel_ad_group_bid_modifiers.py index f3fc7c26d..c6366d47f 100755 --- a/examples/hotel_ads/add_hotel_ad_group_bid_modifiers.py +++ b/examples/hotel_ads/add_hotel_ad_group_bid_modifiers.py @@ -25,16 +25,16 @@ def main(client, customer_id, ad_group_id): - ad_group_service = client.get_service('AdGroupService', version='v3') + ad_group_service = client.get_service('AdGroupService', version='v4') ag_bm_service = client.get_service('AdGroupBidModifierService', - version='v3') + version='v4') # Create ad group bid modifier based on hotel check-in day. check_in_ag_bm_operation = client.get_type('AdGroupBidModifierOperation', - version='v3') + version='v4') check_in_ag_bid_modifier = check_in_ag_bm_operation.create check_in_ag_bid_modifier.hotel_check_in_day.day_of_week = ( - client.get_type('DayOfWeekEnum', version='v3').MONDAY) + client.get_type('DayOfWeekEnum', version='v4').MONDAY) check_in_ag_bid_modifier.ad_group.value = ad_group_service.ad_group_path( customer_id, ad_group_id) # Sets the bid modifier value to 150%. @@ -42,7 +42,7 @@ def main(client, customer_id, ad_group_id): # Create ad group bid modifier based on hotel length of stay info. los_ag_bm_operation = client.get_type('AdGroupBidModifierOperation', - version='v3') + version='v4') los_ag_bid_modifier = los_ag_bm_operation.create los_ag_bid_modifier.ad_group.value = ad_group_service.ad_group_path( customer_id, ad_group_id) diff --git a/examples/migration/create_complete_campaign_both_apis_phase_1.py b/examples/migration/create_complete_campaign_both_apis_phase_1.py index 060a9a05f..ffe1f0046 100755 --- a/examples/migration/create_complete_campaign_both_apis_phase_1.py +++ b/examples/migration/create_complete_campaign_both_apis_phase_1.py @@ -54,17 +54,17 @@ def create_campaign_budget(client, customer_id): customer_id: (str) Customer ID associated with the account. Returns: - An instance of google.ads.google_ads.v2.types.CampaignBudget for the + An instance of google.ads.google_ads.v4.types.CampaignBudget for the newly created Budget. """ - campaign_service = client.get_service('CampaignBudgetService', version='v3') - operation = client.get_type('CampaignBudgetOperation', version='v3') + campaign_service = client.get_service('CampaignBudgetService', version='v4') + operation = client.get_type('CampaignBudgetOperation', version='v4') criterion = operation.create criterion.name.value = 'Interplanetary Cruise Budget #{}'.format( uuid.uuid4()) criterion.delivery_method = client.get_type( 'BudgetDeliveryMethodEnum', - version='v3').STANDARD + version='v4').STANDARD criterion.amount_micros.value = 500000 response = campaign_service.mutate_campaign_budgets(customer_id, [operation]) @@ -76,7 +76,7 @@ def create_campaign_budget(client, customer_id): def get_campaign_budget(client, customer_id, resource_name): - """Retrieves an instance of google.ads.google_ads.v2.types.CampaignBudget + """Retrieves an instance of google.ads.google_ads.v4.types.CampaignBudget message class that is associated with a given resource name. Args: @@ -86,10 +86,10 @@ def get_campaign_budget(client, customer_id, resource_name): campaign. Returns: - An instance of google.ads.google_ads.v2.types.CampaignBudget for the + An instance of google.ads.google_ads.v4.types.CampaignBudget for the newly created Budget. """ - ga_service = client.get_service('GoogleAdsService', version='v3') + ga_service = client.get_service('GoogleAdsService', version='v4') query = ('SELECT campaign_budget.id, campaign_budget.name, ' 'campaign_budget.resource_name FROM campaign_budget WHERE ' 'campaign_budget.resource_name = "{}"'.format(resource_name)) diff --git a/examples/migration/create_complete_campaign_both_apis_phase_2.py b/examples/migration/create_complete_campaign_both_apis_phase_2.py index c2e6d3eb0..bbdc2ef64 100755 --- a/examples/migration/create_complete_campaign_both_apis_phase_2.py +++ b/examples/migration/create_complete_campaign_both_apis_phase_2.py @@ -53,17 +53,17 @@ def create_campaign_budget(client, customer_id): customer_id: (str) Customer ID associated with the account. Returns: - An instance of google.ads.google_ads.v2.types.CampaignBudget for the + An instance of google.ads.google_ads.v4.types.CampaignBudget for the newly created Budget. """ - campaign_service = client.get_service('CampaignBudgetService', version='v3') - operation = client.get_type('CampaignBudgetOperation', version='v3') + campaign_service = client.get_service('CampaignBudgetService', version='v4') + operation = client.get_type('CampaignBudgetOperation', version='v4') criterion = operation.create criterion.name.value = 'Interplanetary Cruise Budget #{}'.format( uuid.uuid4()) criterion.delivery_method = client.get_type( 'BudgetDeliveryMethodEnum', - version='v3').STANDARD + version='v4').STANDARD criterion.amount_micros.value = 500000 response = campaign_service.mutate_campaign_budgets(customer_id, [operation]) @@ -75,7 +75,7 @@ def create_campaign_budget(client, customer_id): def get_campaign_budget(client, customer_id, resource_name): - """Retrieves a google.ads.google_ads.v2.types.CampaignBudget instance.. + """Retrieves a google.ads.google_ads.v4.types.CampaignBudget instance.. Args: client: A google.ads.google_ads.client.GoogleAdsClient instance. @@ -83,10 +83,10 @@ def get_campaign_budget(client, customer_id, resource_name): resource_name: (str) Resource name associated with the newly created campaign. : - An instance of google.ads.google_ads.v2.types.CampaignBudget for the + An instance of google.ads.google_ads.v4.types.CampaignBudget for the newly created Budget. """ - ga_service = client.get_service('GoogleAdsService', version='v3') + ga_service = client.get_service('GoogleAdsService', version='v4') query = ('SELECT campaign_budget.id, campaign_budget.name, ' 'campaign_budget.resource_name FROM campaign_budget WHERE ' 'campaign_budget.resource_name = "{}"'.format(resource_name)) @@ -101,23 +101,23 @@ def create_campaign(client, customer_id, campaign_budget): Args: client: A google.ads.google_ads.client.GoogleAdsClient instance. customer_id: (str) Customer ID associated with the account. - campaign_budget: A google.ads.google_ads.v2.types.CampaignBudget + campaign_budget: A google.ads.google_ads.v4.types.CampaignBudget message class instance. Returns: - A google.ads.google_ads.v2.types.GoogleAdsClient message class instance. + A google.ads.google_ads.v4.types.GoogleAdsClient message class instance. """ - operation = client.get_type('CampaignOperation', version='v3') + operation = client.get_type('CampaignOperation', version='v4') campaign = operation.create - campaign_service = client.get_service('CampaignService', version='v3') + campaign_service = client.get_service('CampaignService', version='v4') campaign.name.value = 'Interplanetary Cruise#{}'.format(uuid.uuid4()) campaign.advertising_channel_type = client.get_type( 'AdvertisingChannelTypeEnum', - version='v3').SEARCH + version='v4').SEARCH # Recommendation: Set the campaign to PAUSED when creating it to stop the # ads from immediately serving. Set to ENABLED once you've added # targeting and the ads are ready to serve. - campaign.status = client.get_type('CampaignStatusEnum', version='v3').PAUSED + campaign.status = client.get_type('CampaignStatusEnum', version='v4').PAUSED campaign.manual_cpc.enhanced_cpc_enabled.value = True campaign.campaign_budget.value = campaign_budget.resource_name campaign.network_settings.target_google_search.value = True @@ -136,7 +136,7 @@ def create_campaign(client, customer_id, campaign_budget): def get_campaign(client, customer_id, campaign_resource_name): - """Retrieves a google.ads.google_ads.v2.types.Campaign instance. + """Retrieves a google.ads.google_ads.v4.types.Campaign instance. Args: client: A google.ads.google_ads.client.GoogleAdsClient instance. @@ -145,9 +145,9 @@ def get_campaign(client, customer_id, campaign_resource_name): created campaign budget. Returns: - A google.ads.google_ads.v2.types.GoogleAdsClient message class instance. + A google.ads.google_ads.v4.types.GoogleAdsClient message class instance. """ - ga_service = client.get_service('GoogleAdsService', version='v3') + ga_service = client.get_service('GoogleAdsService', version='v4') query = ('SELECT campaign.id, campaign.name, campaign.resource_name ' 'FROM campaign WHERE campaign.resource_name = "{}" ' .format(campaign_resource_name)) diff --git a/examples/migration/create_complete_campaign_both_apis_phase_3.py b/examples/migration/create_complete_campaign_both_apis_phase_3.py index 2e2a8a5d4..fdfd27f5b 100755 --- a/examples/migration/create_complete_campaign_both_apis_phase_3.py +++ b/examples/migration/create_complete_campaign_both_apis_phase_3.py @@ -53,17 +53,17 @@ def create_campaign_budget(client, customer_id): customer_id: (str) Customer ID associated with the account. Returns: - An instance of google.ads.google_ads.v2.types.CampaignBudget for the + An instance of google.ads.google_ads.v4.types.CampaignBudget for the newly created Budget. """ - campaign_service = client.get_service('CampaignBudgetService', version='v3') - operation = client.get_type('CampaignBudgetOperation', version='v3') + campaign_service = client.get_service('CampaignBudgetService', version='v4') + operation = client.get_type('CampaignBudgetOperation', version='v4') criterion = operation.create criterion.name.value = 'Interplanetary Cruise Budget #{}'.format( uuid.uuid4()) criterion.delivery_method = client.get_type( 'BudgetDeliveryMethodEnum', - version='v3').STANDARD + version='v4').STANDARD criterion.amount_micros.value = 500000 response = campaign_service.mutate_campaign_budgets(customer_id, [operation]) @@ -75,7 +75,7 @@ def create_campaign_budget(client, customer_id): def get_campaign_budget(client, customer_id, resource_name): - """Retrieves a google.ads.google_ads.v2.types.CampaignBudget instance. + """Retrieves a google.ads.google_ads.v4.types.CampaignBudget instance. Args: client: A google.ads.google_ads.client.GoogleAdsClient instance. @@ -84,10 +84,10 @@ def get_campaign_budget(client, customer_id, resource_name): campaign. Returns: - An instance of google.ads.google_ads.v2.types.CampaignBudget for the + An instance of google.ads.google_ads.v4.types.CampaignBudget for the newly created Budget. """ - ga_service = client.get_service('GoogleAdsService', version='v3') + ga_service = client.get_service('GoogleAdsService', version='v4') query = ('SELECT campaign_budget.id, campaign_budget.name, ' 'campaign_budget.resource_name FROM campaign_budget WHERE ' 'campaign_budget.resource_name = "{}"'.format(resource_name)) @@ -102,23 +102,23 @@ def create_campaign(client, customer_id, campaign_budget): Args: client: A google.ads.google_ads.client.GoogleAdsClient instance. customer_id: (str) Customer ID associated with the account. - campaign_budget: A google.ads.google_ads.v2.types.CampaignBudget + campaign_budget: A google.ads.google_ads.v4.types.CampaignBudget instance. Returns: - A google.ads.google_ads.v2.types.GoogleAdsClient message class instance. + A google.ads.google_ads.v4.types.GoogleAdsClient message class instance. """ - operation = client.get_type('CampaignOperation', version='v3') + operation = client.get_type('CampaignOperation', version='v4') campaign = operation.create - campaign_service = client.get_service('CampaignService', version='v3') + campaign_service = client.get_service('CampaignService', version='v4') campaign.name.value = 'Interplanetary Cruise#{}'.format(uuid.uuid4()) campaign.advertising_channel_type = client.get_type( 'AdvertisingChannelTypeEnum', - version='v3').SEARCH + version='v4').SEARCH # Recommendation: Set the campaign to PAUSED when creating it to stop the # ads from immediately serving. Set to ENABLED once you've added # targeting and the ads are ready to serve. - campaign.status = client.get_type('CampaignStatusEnum', version='v3').PAUSED + campaign.status = client.get_type('CampaignStatusEnum', version='v4').PAUSED campaign.manual_cpc.enhanced_cpc_enabled.value = True campaign.campaign_budget.value = campaign_budget.resource_name campaign.network_settings.target_google_search.value = True @@ -137,7 +137,7 @@ def create_campaign(client, customer_id, campaign_budget): def get_campaign(client, customer_id, campaign_resource_name): - """Retrieves a google.ads.google_ads.v2.types.Campaign instance. + """Retrieves a google.ads.google_ads.v4.types.Campaign instance. Args: client: A google.ads.google_ads.client.GoogleAdsClient instance. @@ -146,9 +146,9 @@ def get_campaign(client, customer_id, campaign_resource_name): created campaign budget. Returns: - A google.ads.google_ads.v2.types.GoogleAdsClient message class instance. + A google.ads.google_ads.v4.types.GoogleAdsClient message class instance. """ - ga_service = client.get_service('GoogleAdsService', version='v3') + ga_service = client.get_service('GoogleAdsService', version='v4') query = ('SELECT campaign.id, campaign.name, campaign.resource_name ' 'FROM campaign WHERE campaign.resource_name = "{}" ' .format(campaign_resource_name)) @@ -163,22 +163,22 @@ def create_ad_group(client, customer_id, campaign): Args: client: A google.ads.google_ads.client.GoogleAdsClient instance. customer_id: (str) Customer ID associated with the account. - campaign: An instance of the google.ads.google_ads.v2.types.Campaign + campaign: An instance of the google.ads.google_ads.v4.types.Campaign message class. Returns: - An instance of the google.ads.google_ads.v2.types.AdGroup message class + An instance of the google.ads.google_ads.v4.types.AdGroup message class of the newly created ad group. """ - operation = client.get_type('AdGroupOperation', version='v3') + operation = client.get_type('AdGroupOperation', version='v4') adgroup = operation.create - adgroup_service = client.get_service('AdGroupService', version='v3') + adgroup_service = client.get_service('AdGroupService', version='v4') adgroup.name.value = 'Earth to Mars Cruises #{}'.format(uuid.uuid4()) adgroup.campaign.value = campaign.resource_name adgroup.status = client.get_type('AdGroupStatusEnum', - version='v3').ENABLED + version='v4').ENABLED adgroup.type = client.get_type('AdGroupTypeEnum', - version='v3').SEARCH_STANDARD + version='v4').SEARCH_STANDARD adgroup.cpc_bid_micros.value = 10000000 response = adgroup_service.mutate_ad_groups(customer_id, [operation]) ad_group_resource_name = response.results[0].resource_name @@ -188,7 +188,7 @@ def create_ad_group(client, customer_id, campaign): def get_ad_group(client, customer_id, ad_group_resource_name): - """Retrieves a google.ads.googleads_v2.types.AdGroup instance. + """Retrieves a google.ads.googleads_v4.types.AdGroup instance. Args: client: A google.ads.google_ads.client.GoogleAdsClient instance. @@ -197,10 +197,10 @@ def get_ad_group(client, customer_id, ad_group_resource_name): created Ad group. Returns: - An instance of the google.ads.google_ads.v2.types.AdGroup message class + An instance of the google.ads.google_ads.v4.types.AdGroup message class of the newly created ad group. """ - ga_service = client.get_service('GoogleAdsService', version='v3') + ga_service = client.get_service('GoogleAdsService', version='v4') query = ('SELECT ad_group.id, ad_group.name, ad_group.resource_name ' 'FROM ad_group WHERE ad_group.resource_name = "{}" ' .format(ad_group_resource_name)) diff --git a/examples/migration/create_complete_campaign_both_apis_phase_4.py b/examples/migration/create_complete_campaign_both_apis_phase_4.py index dcb17d288..9b1b2226f 100755 --- a/examples/migration/create_complete_campaign_both_apis_phase_4.py +++ b/examples/migration/create_complete_campaign_both_apis_phase_4.py @@ -53,17 +53,17 @@ def create_campaign_budget(client, customer_id): customer_id: (str) Customer ID associated with the account. Returns: - An instance of google.ads.google_ads.v2.types.CampaignBudget for the + An instance of google.ads.google_ads.v4.types.CampaignBudget for the newly created Budget. """ - campaign_service = client.get_service('CampaignBudgetService', version='v3') - operation = client.get_type('CampaignBudgetOperation', version='v3') + campaign_service = client.get_service('CampaignBudgetService', version='v4') + operation = client.get_type('CampaignBudgetOperation', version='v4') criterion = operation.create criterion.name.value = 'Interplanetary Cruise Budget #{}'.format( uuid.uuid4()) criterion.delivery_method = client.get_type( 'BudgetDeliveryMethodEnum', - version='v3').STANDARD + version='v4').STANDARD criterion.amount_micros.value = 500000 response = campaign_service.mutate_campaign_budgets(customer_id, [operation]) @@ -75,7 +75,7 @@ def create_campaign_budget(client, customer_id): def get_campaign_budget(client, customer_id, resource_name): - """Retrieves a google.ads.google_ads.v2.types.CampaignBudget instance . + """Retrieves a google.ads.google_ads.v4.types.CampaignBudget instance . Args: client: A google.ads.google_ads.client.GoogleAdsClient instance. @@ -84,10 +84,10 @@ def get_campaign_budget(client, customer_id, resource_name): created campaign. Returns: - An instance of google.ads.google_ads.v2.types.CampaignBudget for the + An instance of google.ads.google_ads.v4.types.CampaignBudget for the newly created Budget. """ - ga_service = client.get_service('GoogleAdsService', version='v3') + ga_service = client.get_service('GoogleAdsService', version='v4') query = ('SELECT campaign_budget.id, campaign_budget.name, ' 'campaign_budget.resource_name FROM campaign_budget WHERE ' 'campaign_budget.resource_name = "{}"'.format(resource_name)) @@ -102,23 +102,23 @@ def create_campaign(client, customer_id, campaign_budget): Args: client: A google.ads.google_ads.client.GoogleAdsClient instance. customer_id: (str) Customer ID associated with the account. - campaign_budget: A google.ads.google_ads.v2.types.CampaignBudget + campaign_budget: A google.ads.google_ads.v4.types.CampaignBudget instance. Returns: - A google.ads.google_ads.v2.types.GoogleAdsClient message class instance. + A google.ads.google_ads.v4.types.GoogleAdsClient message class instance. """ - operation = client.get_type('CampaignOperation', version='v3') + operation = client.get_type('CampaignOperation', version='v4') campaign = operation.create - campaign_service = client.get_service('CampaignService', version='v3') + campaign_service = client.get_service('CampaignService', version='v4') campaign.name.value = 'Interplanetary Cruise#{}'.format(uuid.uuid4()) campaign.advertising_channel_type = client.get_type( 'AdvertisingChannelTypeEnum', - version='v3').SEARCH + version='v4').SEARCH # Recommendation: Set the campaign to PAUSED when creating it to stop the # ads from immediately serving. Set to ENABLED once you've added # targeting and the ads are ready to serve. - campaign.status = client.get_type('CampaignStatusEnum', version='v3').PAUSED + campaign.status = client.get_type('CampaignStatusEnum', version='v4').PAUSED campaign.manual_cpc.enhanced_cpc_enabled.value = True campaign.campaign_budget.value = campaign_budget.resource_name campaign.network_settings.target_google_search.value = True @@ -137,7 +137,7 @@ def create_campaign(client, customer_id, campaign_budget): def get_campaign(client, customer_id, campaign_resource_name): - """Retrieves a google.ads.google_ads.v2.types.Campaign instance. + """Retrieves a google.ads.google_ads.v4.types.Campaign instance. Args: client: A google.ads.google_ads.client.GoogleAdsClient instance. @@ -146,9 +146,9 @@ def get_campaign(client, customer_id, campaign_resource_name): created campaign budget. Returns: - A google.ads.google_ads.v2.types.GoogleAdsClient message class instance. + A google.ads.google_ads.v4.types.GoogleAdsClient message class instance. """ - ga_service = client.get_service('GoogleAdsService', version='v3') + ga_service = client.get_service('GoogleAdsService', version='v4') query = ('SELECT campaign.id, campaign.name, campaign.resource_name ' 'FROM campaign WHERE campaign.resource_name = "{}" ' .format(campaign_resource_name)) @@ -163,21 +163,21 @@ def create_ad_group(client, customer_id, campaign): Args: client: A google.ads.google_ads.client.GoogleAdsClient instance. customer_id: (str) Customer ID associated with the account. - campaign: A google.ads.google_ads.v2.types.Campaign instance. + campaign: A google.ads.google_ads.v4.types.Campaign instance. Returns: - An instance of the google.ads.google_ads.v2.types.AdGroup message class + An instance of the google.ads.google_ads.v4.types.AdGroup message class of the newly created ad group. """ - operation = client.get_type('AdGroupOperation', version='v3') + operation = client.get_type('AdGroupOperation', version='v4') adgroup = operation.create - adgroup_service = client.get_service('AdGroupService', version='v3') + adgroup_service = client.get_service('AdGroupService', version='v4') adgroup.name.value = 'Earth to Mars Cruises #{}'.format(uuid.uuid4()) adgroup.campaign.value = campaign.resource_name adgroup.status = client.get_type('AdGroupStatusEnum', - version='v3').ENABLED + version='v4').ENABLED adgroup.type = client.get_type('AdGroupTypeEnum', - version='v3').SEARCH_STANDARD + version='v4').SEARCH_STANDARD adgroup.cpc_bid_micros.value = 10000000 response = adgroup_service.mutate_ad_groups(customer_id, [operation]) ad_group_resource_name = response.results[0].resource_name @@ -187,7 +187,7 @@ def create_ad_group(client, customer_id, campaign): def get_ad_group(client, customer_id, ad_group_resource_name): - """Retrieves a google.ads.googleads_v2.types.AdGroup instance. + """Retrieves a google.ads.googleads_v4.types.AdGroup instance. Args: client: A google.ads.google_ads.client.GoogleAdsClient instance. @@ -196,10 +196,10 @@ def get_ad_group(client, customer_id, ad_group_resource_name): created Ad group. Returns: - An instance of the google.ads.google_ads.v2.types.AdGroup message class + An instance of the google.ads.google_ads.v4.types.AdGroup message class of the newly created ad group. """ - ga_service = client.get_service('GoogleAdsService', version='v3') + ga_service = client.get_service('GoogleAdsService', version='v4') query = ('SELECT ad_group.id, ad_group.name, ad_group.resource_name ' 'FROM ad_group WHERE ad_group.resource_name = "{}" ' .format(ad_group_resource_name)) @@ -214,27 +214,27 @@ def create_text_ads(client, customer_id, ad_group): Args: client: A google.ads.google_ads.client.GoogleAdsClient instance. customer_id: (str) Customer ID associated with the account. - ad_group: A google.ads.google_ads.v2.types.AdGroup instance. + ad_group: A google.ads.google_ads.v4.types.AdGroup instance. """ operations = [] for i in range(0, NUMBER_OF_ADS): - operation = client.get_type('AdGroupAdOperation', version='v3') + operation = client.get_type('AdGroupAdOperation', version='v4') ad_group_operation = operation.create ad_group_operation.ad_group.value = ad_group.resource_name ad_group_operation.status = client.get_type('AdGroupAdStatusEnum', - version='v3').PAUSED + version='v4').PAUSED ad_group_operation.ad.expanded_text_ad.headline_part1.value = \ 'Cruise to Mars #{}'.format(str(uuid.uuid4())[:4]) ad_group_operation.ad.expanded_text_ad.headline_part2.value = \ 'Best Space Cruise Line' ad_group_operation.ad.expanded_text_ad.description.value = \ 'Buy your tickets now!' - final_urls = client.get_type('StringValue', version='v3') + final_urls = client.get_type('StringValue', version='v4') final_urls.value = 'http://www.example.com' ad_group_operation.ad.final_urls.extend([final_urls]) operations.append(operation) - adgroup_service = client.get_service('AdGroupAdService', version='v3') + adgroup_service = client.get_service('AdGroupAdService', version='v4') ad_group_ad_response = adgroup_service.mutate_ad_group_ads(customer_id, operations) new_ad_resource_names = [] @@ -252,7 +252,7 @@ def create_text_ads(client, customer_id, ad_group): def get_ads(client, customer_id, new_ad_resource_names): - """Retrieves a google.ads.google_ads.v2.types.AdGroupAd instance . + """Retrieves a google.ads.google_ads.v4.types.AdGroupAd instance . Args: client: A google.ads.google_ads.client.GoogleAdsClient instance. @@ -260,7 +260,7 @@ def get_ads(client, customer_id, new_ad_resource_names): new_ad_resource_names: (str) Resource name associated with the Ad group. Returns: - An instance of the google.ads.google_ads.v2.types.AdGroupAd message + An instance of the google.ads.google_ads.v4.types.AdGroupAd message class of the newly created ad group ad. """ def formatter(given_string): @@ -276,7 +276,7 @@ def formatter(given_string): return ','.join(results) resouce_names = formatter(new_ad_resource_names) - ga_service = client.get_service('GoogleAdsService', version='v3') + ga_service = client.get_service('GoogleAdsService', version='v4') query = ('SELECT ad_group_ad.ad.id, ' 'ad_group_ad.ad.expanded_text_ad.headline_part1, ' 'ad_group_ad.ad.expanded_text_ad.headline_part2, ' diff --git a/examples/migration/create_complete_campaign_google_ads_api_only.py b/examples/migration/create_complete_campaign_google_ads_api_only.py index 981ea45df..4a5d59a1c 100755 --- a/examples/migration/create_complete_campaign_google_ads_api_only.py +++ b/examples/migration/create_complete_campaign_google_ads_api_only.py @@ -51,17 +51,17 @@ def create_campaign_budget(client, customer_id): customer_id: (str) Customer ID associated with the account. Returns: - An instance of google.ads.google_ads.v2.types.CampaignBudget for the + An instance of google.ads.google_ads.v4.types.CampaignBudget for the newly created Budget. """ - campaign_service = client.get_service('CampaignBudgetService', version='v3') - operation = client.get_type('CampaignBudgetOperation', version='v3') + campaign_service = client.get_service('CampaignBudgetService', version='v4') + operation = client.get_type('CampaignBudgetOperation', version='v4') criterion = operation.create criterion.name.value = 'Interplanetary Cruise Budget #{}'.format( uuid.uuid4()) criterion.delivery_method = client.get_type( 'BudgetDeliveryMethodEnum', - version='v3').STANDARD + version='v4').STANDARD criterion.amount_micros.value = 500000 response = campaign_service.mutate_campaign_budgets(customer_id, [operation]) @@ -73,7 +73,7 @@ def create_campaign_budget(client, customer_id): def get_campaign_budget(client, customer_id, resource_name): - """Retrieves a google.ads.google_ads.v2.types.CampaignBudget instance. + """Retrieves a google.ads.google_ads.v4.types.CampaignBudget instance. Args: client: A google.ads.google_ads.client.GoogleAdsClient instance. @@ -82,10 +82,10 @@ def get_campaign_budget(client, customer_id, resource_name): campaign. Returns: - An instance of google.ads.google_ads.v2.types.CampaignBudget for the + An instance of google.ads.google_ads.v4.types.CampaignBudget for the newly created Budget. """ - ga_service = client.get_service('GoogleAdsService', version='v3') + ga_service = client.get_service('GoogleAdsService', version='v4') query = ('SELECT campaign_budget.id, campaign_budget.name, ' 'campaign_budget.resource_name FROM campaign_budget WHERE ' 'campaign_budget.resource_name = "{}"'.format(resource_name)) @@ -100,23 +100,23 @@ def create_campaign(client, customer_id, campaign_budget): Args: client: A google.ads.google_ads.client.GoogleAdsClient instance. customer_id: (str) Customer ID associated with the account. - campaign_budget: A google.ads.google_ads.v2.types.CampaignBudget + campaign_budget: A google.ads.google_ads.v4.types.CampaignBudget instance. Returns: - A google.ads.google_ads.v2.types.GoogleAdsClient message class instance. + A google.ads.google_ads.v4.types.GoogleAdsClient message class instance. """ - operation = client.get_type('CampaignOperation', version='v3') + operation = client.get_type('CampaignOperation', version='v4') campaign = operation.create - campaign_service = client.get_service('CampaignService', version='v3') + campaign_service = client.get_service('CampaignService', version='v4') campaign.name.value = 'Interplanetary Cruise#{}'.format(uuid.uuid4()) campaign.advertising_channel_type = client.get_type( 'AdvertisingChannelTypeEnum', - version='v3').SEARCH + version='v4').SEARCH # Recommendation: Set the campaign to PAUSED when creating it to stop the # ads from immediately serving. Set to ENABLED once you've added # targeting and the ads are ready to serve. - campaign.status = client.get_type('CampaignStatusEnum', version='v3').PAUSED + campaign.status = client.get_type('CampaignStatusEnum', version='v4').PAUSED campaign.manual_cpc.enhanced_cpc_enabled.value = True campaign.campaign_budget.value = campaign_budget.resource_name campaign.network_settings.target_google_search.value = True @@ -135,7 +135,7 @@ def create_campaign(client, customer_id, campaign_budget): def get_campaign(client, customer_id, campaign_resource_name): - """Retrieves a google.ads.google_ads.v2.types.Campaign instance. + """Retrieves a google.ads.google_ads.v4.types.Campaign instance. Args: client: A google.ads.google_ads.client.GoogleAdsClient instance. @@ -144,9 +144,9 @@ def get_campaign(client, customer_id, campaign_resource_name): created campaign budget. Returns: - A google.ads.google_ads.v2.types.GoogleAdsClient message class instance. + A google.ads.google_ads.v4.types.GoogleAdsClient message class instance. """ - ga_service = client.get_service('GoogleAdsService', version='v3') + ga_service = client.get_service('GoogleAdsService', version='v4') query = ('SELECT campaign.id, campaign.name, campaign.resource_name ' 'FROM campaign WHERE campaign.resource_name = "{}" ' .format(campaign_resource_name)) @@ -161,21 +161,21 @@ def create_ad_group(client, customer_id, campaign): Args: client: A google.ads.google_ads.client.GoogleAdsClient instance. customer_id: (str) Customer ID associated with the account. - campaign: A google.ads.google_ads.v2.types.Campaign instance. + campaign: A google.ads.google_ads.v4.types.Campaign instance. Returns: - An instance of the google.ads.google_ads.v2.types.AdGroup message class + An instance of the google.ads.google_ads.v4.types.AdGroup message class of the newly created ad group. """ - operation = client.get_type('AdGroupOperation', version='v3') + operation = client.get_type('AdGroupOperation', version='v4') adgroup = operation.create - adgroup_service = client.get_service('AdGroupService', version='v3') + adgroup_service = client.get_service('AdGroupService', version='v4') adgroup.name.value = 'Earth to Mars Cruises #{}'.format(uuid.uuid4()) adgroup.campaign.value = campaign.resource_name adgroup.status = client.get_type('AdGroupStatusEnum', - version='v3').ENABLED + version='v4').ENABLED adgroup.type = client.get_type('AdGroupTypeEnum', - version='v3').SEARCH_STANDARD + version='v4').SEARCH_STANDARD adgroup.cpc_bid_micros.value = 10000000 response = adgroup_service.mutate_ad_groups(customer_id, [operation]) ad_group_resource_name = response.results[0].resource_name @@ -185,7 +185,7 @@ def create_ad_group(client, customer_id, campaign): def get_ad_group(client, customer_id, ad_group_resource_name): - """Retrieves a google.ads.googleads_v2.types.AdGroup instance. + """Retrieves a google.ads.googleads_v4.types.AdGroup instance. Args: client: A google.ads.google_ads.client.GoogleAdsClient instance. @@ -194,10 +194,10 @@ def get_ad_group(client, customer_id, ad_group_resource_name): created Ad group. Returns: - An instance of the google.ads.google_ads.v2.types.AdGroup message class + An instance of the google.ads.google_ads.v4.types.AdGroup message class of the newly created ad group. """ - ga_service = client.get_service('GoogleAdsService', version='v3') + ga_service = client.get_service('GoogleAdsService', version='v4') query = ('SELECT ad_group.id, ad_group.name, ad_group.resource_name ' 'FROM ad_group WHERE ad_group.resource_name = "{}" ' .format(ad_group_resource_name)) @@ -212,27 +212,27 @@ def create_text_ads(client, customer_id, ad_group): Args: client: A google.ads.google_ads.client.GoogleAdsClient instance. customer_id: (str) Customer ID associated with the account. - ad_group: A google.ads.google_ads.v2.types.AdGroup instance. + ad_group: A google.ads.google_ads.v4.types.AdGroup instance. """ operations = [] for i in range(0, NUMBER_OF_ADS): - operation = client.get_type('AdGroupAdOperation', version='v3') + operation = client.get_type('AdGroupAdOperation', version='v4') ad_group_operation = operation.create ad_group_operation.ad_group.value = ad_group.resource_name ad_group_operation.status = client.get_type('AdGroupAdStatusEnum', - version='v3').PAUSED + version='v4').PAUSED ad_group_operation.ad.expanded_text_ad.headline_part1.value = \ 'Cruise to Mars #{}'.format(str(uuid.uuid4())[:4]) ad_group_operation.ad.expanded_text_ad.headline_part2.value = \ 'Best Space Cruise Line' ad_group_operation.ad.expanded_text_ad.description.value = \ 'Buy your tickets now!' - final_urls = client.get_type('StringValue', version='v3') + final_urls = client.get_type('StringValue', version='v4') final_urls.value = 'http://www.example.com' ad_group_operation.ad.final_urls.extend([final_urls]) operations.append(operation) - adgroup_service = client.get_service('AdGroupAdService', version='v3') + adgroup_service = client.get_service('AdGroupAdService', version='v4') ad_group_ad_response = adgroup_service.mutate_ad_group_ads(customer_id, operations) new_ad_resource_names = [] @@ -250,7 +250,7 @@ def create_text_ads(client, customer_id, ad_group): def get_ads(client, customer_id, new_ad_resource_names): - """Retrieves a google.ads.google_ads.v2.types.AdGroupAd instance. + """Retrieves a google.ads.google_ads.v4.types.AdGroupAd instance. Args: client: A google.ads.google_ads.client.GoogleAdsClient instanc e. @@ -258,7 +258,7 @@ def get_ads(client, customer_id, new_ad_resource_names): new_ad_resource_names: (str) Resource name associated with the Ad group. Returns: - An instance of the google.ads.google_ads.v2.types.AdGroupAd message + An instance of the google.ads.google_ads.v4.types.AdGroupAd message class of the newly created ad group ad. """ def formatter(given_string): @@ -274,7 +274,7 @@ def formatter(given_string): return ','.join(results) resouce_names = formatter(new_ad_resource_names) - ga_service = client.get_service('GoogleAdsService', version='v3') + ga_service = client.get_service('GoogleAdsService', version='v4') query = ('SELECT ad_group_ad.ad.id, ' 'ad_group_ad.ad.expanded_text_ad.headline_part1, ' 'ad_group_ad.ad.expanded_text_ad.headline_part2, ' @@ -304,25 +304,25 @@ def create_keywords(client, customer_id, ad_group, keywords_to_add): Args: client: A google.ads.google_ads.client.GoogleAdsClient instance. customer_id: (str) Customer ID associated with the account. - ad_group: A google.ads.google_ads.v2.types.AdGroup instance. + ad_group: A google.ads.google_ads.v4.types.AdGroup instance. keywords_to_add: keywords_to_add: (list) A list of keywords which are to be added to a given ad group. """ ad_group_criterion_operations = [] for keyword in keywords_to_add: - operation = client.get_type('AdGroupCriterionOperation', version='v3') + operation = client.get_type('AdGroupCriterionOperation', version='v4') ad_group_criterion_operation = operation.create ad_group_criterion_operation.ad_group.value = ad_group.resource_name ad_group_criterion_operation.status = client.get_type( 'AdGroupCriterionStatusEnum', - version='v3').ENABLED + version='v4').ENABLED ad_group_criterion_operation.keyword.text.value = keyword ad_group_criterion_operation.keyword.match_type = client.get_type( - 'KeywordMatchTypeEnum', version='v3').EXACT + 'KeywordMatchTypeEnum', version='v4').EXACT ad_group_criterion_operations.append(operation) ad_group_criterion_service_client = client.get_service( - 'AdGroupCriterionService', version='v3') + 'AdGroupCriterionService', version='v4') ad_group_criterion_response = ad_group_criterion_service_client.\ mutate_ad_group_criteria(customer_id, ad_group_criterion_operations) @@ -342,7 +342,7 @@ def create_keywords(client, customer_id, ad_group, keywords_to_add): def get_keywords(client, customer_id, keyword_resource_names): - """Retrieves a google.ads.google_ads.v2.types.AdGroupCriterion instance. + """Retrieves a google.ads.google_ads.v4.types.AdGroupCriterion instance. Args: client: A google.ads.google_ads.client.GoogleAdsClient instance. @@ -351,7 +351,7 @@ def get_keywords(client, customer_id, keyword_resource_names): created ad group criterion. Returns: - An instance of the google.ads.google_ads.v2.types.AdGroupCriterion + An instance of the google.ads.google_ads.v4.types.AdGroupCriterion message class of the newly created ad group criterion. """ def formatter(given_string): @@ -367,7 +367,7 @@ def formatter(given_string): return ','.join(results) resouce_names = formatter(keyword_resource_names) - ga_service = client.get_service('GoogleAdsService', version='v3') + ga_service = client.get_service('GoogleAdsService', version='v4') query = ('SELECT ad_group.id, ad_group.status, ' 'ad_group_criterion.criterion_id, ad_group_criterion.keyword.text, ' 'ad_group_criterion.keyword.match_type FROM ad_group_criterion ' diff --git a/examples/misc/get_all_image_assets.py b/examples/misc/get_all_image_assets.py index 82cf3ae84..c7d9f49d9 100755 --- a/examples/misc/get_all_image_assets.py +++ b/examples/misc/get_all_image_assets.py @@ -25,7 +25,7 @@ def main(client, customer_id, page_size): """Main method, to run this code example as a standalone application.""" - ga_service = client.get_service('GoogleAdsService', version='v3') + ga_service = client.get_service('GoogleAdsService', version='v4') query = ('SELECT asset.name, asset.image_asset.file_size, ' 'asset.image_asset.full_size.width_pixels, ' diff --git a/examples/misc/get_all_videos_and_images.py b/examples/misc/get_all_videos_and_images.py index 5ee931d19..46583a5b4 100755 --- a/examples/misc/get_all_videos_and_images.py +++ b/examples/misc/get_all_videos_and_images.py @@ -25,7 +25,7 @@ def main(client, customer_id, page_size): """Main method, to run this code example as a standalone application.""" - ga_service = client.get_service('GoogleAdsService', version='v3') + ga_service = client.get_service('GoogleAdsService', version='v4') # Creates a query that will retrieve all video and image files. query = ('SELECT media_file.id, media_file.name, media_file.type ' @@ -34,7 +34,7 @@ def main(client, customer_id, page_size): # Issues a search request by specifying page size. results = ga_service.search(customer_id, query=query, page_size=page_size) - media_type_enum = client.get_type('MediaTypeEnum', version='v3').MediaType + media_type_enum = client.get_type('MediaTypeEnum', version='v4').MediaType # Iterates over all rows and prints the information about each media file. try: diff --git a/examples/misc/upload_image.py b/examples/misc/upload_image.py index f7b38b4f9..33ad7d4bb 100644 --- a/examples/misc/upload_image.py +++ b/examples/misc/upload_image.py @@ -27,15 +27,15 @@ def main(client, customer_id): """Main method, to run this code example as a standalone application.""" URL = "https://goo.gl/3b9Wfh" - media_file_operation = client.get_type('MediaFileOperation', version='v3') + media_file_operation = client.get_type('MediaFileOperation', version='v4') media_file = media_file_operation.create media_file.name.value = "Ad Image" - media_file.type = client.get_type('MediaTypeEnum', version='v3').IMAGE + media_file.type = client.get_type('MediaTypeEnum', version='v4').IMAGE media_file.source_url.value = URL # Download the image as bytes from the URL media_file.image.data.value = requests.get(URL).content - media_file_service = client.get_service('MediaFileService', version='v3') + media_file_service = client.get_service('MediaFileService', version='v4') try: mutate_media_files_response = ( diff --git a/examples/misc/upload_image_asset.py b/examples/misc/upload_image_asset.py index 7f515d5e8..ffa81b528 100644 --- a/examples/misc/upload_image_asset.py +++ b/examples/misc/upload_image_asset.py @@ -32,9 +32,9 @@ def main(client, customer_id): URL = 'https://goo.gl/3b9Wfh' image_content = requests.get(URL).content - asset_operation = client.get_type('AssetOperation', version='v3') + asset_operation = client.get_type('AssetOperation', version='v4') asset = asset_operation.create - asset.type = client.get_type('AssetTypeEnum', version='v3').IMAGE + asset.type = client.get_type('AssetTypeEnum', version='v4').IMAGE asset.image_asset.data.value = image_content asset.image_asset.file_size.value = len(image_content) asset.image_asset.mime_type = client.get_type('MimeTypeEnum').IMAGE_JPEG @@ -48,7 +48,7 @@ def main(client, customer_id): # asset in this customer account. # asset.name = 'Jupiter Trip #' + uuid.uuid4() - asset_service = client.get_service('AssetService', version='v3') + asset_service = client.get_service('AssetService', version='v4') try: mutate_asset_response = ( diff --git a/examples/misc/upload_media_bundle.py b/examples/misc/upload_media_bundle.py index 104a2e012..2b59de1dc 100755 --- a/examples/misc/upload_media_bundle.py +++ b/examples/misc/upload_media_bundle.py @@ -27,15 +27,15 @@ BUNDLE_URL = 'https://goo.gl/9Y7qI2' def main(client, customer_id): - media_file_operation = client.get_type('MediaFileOperation', version='v3') + media_file_operation = client.get_type('MediaFileOperation', version='v4') media_file = media_file_operation.create media_file.name.value = 'Ad Media Bundle' media_file.type = (client.get_type('MediaTypeEnum', - version='v3').MEDIA_BUNDLE) + version='v4').MEDIA_BUNDLE) # Download the ZIP as bytes from the URL media_file.media_bundle.data.value = requests.get(BUNDLE_URL).content - media_file_service = client.get_service('MediaFileService', version='v3') + media_file_service = client.get_service('MediaFileService', version='v4') try: mutate_media_files_response = ( diff --git a/examples/planning/add_keyword_plan.py b/examples/planning/add_keyword_plan.py index 68c5071b6..556e3a932 100755 --- a/examples/planning/add_keyword_plan.py +++ b/examples/planning/add_keyword_plan.py @@ -39,14 +39,13 @@ def main(client, customer_id): try: add_keyword_plan(client, customer_id) except GoogleAdsException as ex: - print('Request with ID "{}" failed with status "{}" and includes the ' - 'following errors:'.format(ex.request_id, ex.error.code().name)) + 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('\tError with message "{}".'.format(error.message)) + print(f'\tError with message "{error.message}".') if error.location: for field_path_element in error.location.field_path_elements: - print('\t\tOn field: {}'.format( - field_path_element.field_name)) + print(f'\t\tOn field: {field_path_element.field_name}') sys.exit(1) @@ -65,9 +64,10 @@ def add_keyword_plan(client, customer_id): keyword_plan) keyword_plan_ad_group = create_keyword_plan_ad_group(client, customer_id, keyword_plan_campaign) - create_keyword_plan_keywords(client, customer_id, keyword_plan_ad_group) - create_keyword_plan_negative_keywords(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): @@ -83,23 +83,23 @@ def create_keyword_plan(client, customer_id): Raises: GoogleAdsException: If an error is returned from the API. """ - operation = client.get_type('KeywordPlanOperation', version='v3') + operation = client.get_type('KeywordPlanOperation', version='v4') keyword_plan = operation.create - keyword_plan.name.value = ('Keyword plan for traffic estimate {}'.format( - uuid.uuid4())) + keyword_plan.name.value = ( + f'Keyword plan for traffic estimate {uuid.uuid4()}') forecast_interval = client.get_type('KeywordPlanForecastIntervalEnum', - version='v3').NEXT_QUARTER + version='v4').NEXT_QUARTER keyword_plan.forecast_period.date_interval = forecast_interval keyword_plan_service = client.get_service('KeywordPlanService', - version='v3') + version='v4') response = keyword_plan_service.mutate_keyword_plans(customer_id, [operation]) resource_name = response.results[0].resource_name - print('Created keyword plan with resource name: {}'.format(resource_name)) + print(f'Created keyword plan with resource name: {resource_name}') return resource_name @@ -119,39 +119,37 @@ def create_keyword_plan_campaign(client, customer_id, keyword_plan): Raises: GoogleAdsException: If an error is returned from the API. """ - operation = client.get_type('KeywordPlanCampaignOperation', version='v3') + operation = client.get_type('KeywordPlanCampaignOperation', version='v4') keyword_plan_campaign = operation.create - keyword_plan_campaign.name.value = 'Keyword plan campaign {}'.format( - uuid.uuid4()) + keyword_plan_campaign.name.value = f'Keyword plan campaign {uuid.uuid4()}' keyword_plan_campaign.cpc_bid_micros.value = 1000000 keyword_plan_campaign.keyword_plan.value = keyword_plan keyword_plan_network = client.get_type('KeywordPlanNetworkEnum', - version='v3') + version='v4') network = keyword_plan_network.GOOGLE_SEARCH keyword_plan_campaign.keyword_plan_network = network - geo_target = client.get_type('KeywordPlanGeoTarget', version='v3') + geo_target = client.get_type('KeywordPlanGeoTarget', version='v4') # Constant for U.S. Other geo target constants can be referenced here: # https://developers.google.com/adwords/api/docs/appendix/geotargeting geo_target.geo_target_constant.value = 'geoTargetConstants/2840' keyword_plan_campaign.geo_targets.extend([geo_target]) - language = client.get_type('StringValue', version='v3') + language = client.get_type('StringValue', version='v4') # Constant for English language.value = 'languageConstants/1000' keyword_plan_campaign.language_constants.extend([language]) keyword_plan_campaign_service = client.get_service( - 'KeywordPlanCampaignService', version='v3') + 'KeywordPlanCampaignService', version='v4') response = keyword_plan_campaign_service.mutate_keyword_plan_campaigns( customer_id, [operation]) resource_name = response.results[0].resource_name - print('Created keyword plan campaign with resource name: {}'.format( - resource_name)) + print(f'Created keyword plan campaign with resource name: {resource_name}') return resource_name @@ -171,29 +169,27 @@ def create_keyword_plan_ad_group(client, customer_id, keyword_plan_campaign): Raises: GoogleAdsException: If an error is returned from the API. """ - operation = client.get_type('KeywordPlanAdGroupOperation', version='v3') + operation = client.get_type('KeywordPlanAdGroupOperation', version='v4') keyword_plan_ad_group = operation.create - keyword_plan_ad_group.name.value = 'Keyword plan ad group {}'.format( - uuid.uuid4()) + keyword_plan_ad_group.name.value = f'Keyword plan ad group {uuid.uuid4()}' keyword_plan_ad_group.cpc_bid_micros.value = 2500000 keyword_plan_ad_group.keyword_plan_campaign.value = keyword_plan_campaign keyword_plan_ad_group_service = client.get_service( - 'KeywordPlanAdGroupService', version='v3') + 'KeywordPlanAdGroupService', version='v4') response = keyword_plan_ad_group_service.mutate_keyword_plan_ad_groups( customer_id, [operation]) resource_name = response.results[0].resource_name - print('Created keyword plan ad group with resource name: {}'.format( - resource_name)) + print(f'Created keyword plan ad group with resource name: {resource_name}') return resource_name -def create_keyword_plan_keywords(client, customer_id, plan_ad_group): - """Adds keyword plan keywords to the given keyword plan ad group. +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 @@ -204,46 +200,53 @@ def create_keyword_plan_keywords(client, customer_id, plan_ad_group): Raises: GoogleAdsException: If an error is returned from the API. """ - match_types = client.get_type('KeywordMatchTypeEnum', version='v3') - - keyword_plan_keyword1 = client.get_type('KeywordPlanKeyword', version='v3') - keyword_plan_keyword1.text.value = 'mars cruise' - keyword_plan_keyword1.cpc_bid_micros.value = 2000000 - keyword_plan_keyword1.match_type = match_types.BROAD - keyword_plan_keyword1.keyword_plan_ad_group.value = plan_ad_group - - keyword_plan_keyword2 = client.get_type('KeywordPlanKeyword', version='v3') - keyword_plan_keyword2.text.value = 'cheap cruise' - keyword_plan_keyword2.cpc_bid_micros.value = 1500000 - keyword_plan_keyword2.match_type = match_types.PHRASE - keyword_plan_keyword2.keyword_plan_ad_group.value = plan_ad_group - - keyword_plan_keyword3 = client.get_type('KeywordPlanKeyword', version='v3') - keyword_plan_keyword3.text.value = 'jupiter cruise' - keyword_plan_keyword3.cpc_bid_micros.value = 1990000 - keyword_plan_keyword3.match_type = match_types.EXACT - keyword_plan_keyword3.keyword_plan_ad_group.value = plan_ad_group + match_types = client.get_type('KeywordMatchTypeEnum', version='v4') + + keyword_plan_ad_group_keyword1 = client.get_type( + 'KeywordPlanAdGroupKeyword', version='v4') + keyword_plan_ad_group_keyword1.text.value = 'mars cruise' + keyword_plan_ad_group_keyword1.cpc_bid_micros.value = 2000000 + keyword_plan_ad_group_keyword1.match_type = match_types.BROAD + keyword_plan_ad_group_keyword1.keyword_plan_ad_group.value = plan_ad_group + + keyword_plan_ad_group_keyword2 = client.get_type( + 'KeywordPlanAdGroupKeyword', version='v4') + keyword_plan_ad_group_keyword2.text.value = 'cheap cruise' + keyword_plan_ad_group_keyword2.cpc_bid_micros.value = 1500000 + keyword_plan_ad_group_keyword2.match_type = match_types.PHRASE + keyword_plan_ad_group_keyword2.keyword_plan_ad_group.value = plan_ad_group + + keyword_plan_ad_group_keyword3 = client.get_type( + 'KeywordPlanAdGroupKeyword', version='v4') + keyword_plan_ad_group_keyword3.text.value = 'jupiter cruise' + keyword_plan_ad_group_keyword3.cpc_bid_micros.value = 1990000 + keyword_plan_ad_group_keyword3.match_type = match_types.EXACT + keyword_plan_ad_group_keyword3.keyword_plan_ad_group.value = plan_ad_group operations = [] - for keyword in [keyword_plan_keyword1, - keyword_plan_keyword2, - keyword_plan_keyword3]: - operation = client.get_type('KeywordPlanKeywordOperation', version='v3') + for keyword in [keyword_plan_ad_group_keyword1, + keyword_plan_ad_group_keyword2, + keyword_plan_ad_group_keyword3]: + operation = client.get_type('KeywordPlanAdGroupKeywordOperation', + version='v4') operation.create.CopyFrom(keyword) operations.append(operation) - keyword_plan_keyword_service = client.get_service( - 'KeywordPlanKeywordService', version='v3') - response = keyword_plan_keyword_service.mutate_keyword_plan_keywords( - customer_id, operations) + keyword_plan_ad_group_keyword_service = client.get_service( + 'KeywordPlanAdGroupKeywordService', version='v4') + + response = (keyword_plan_ad_group_keyword_service + .mutate_keyword_plan_ad_group_keywords(customer_id, operations)) for result in response.results: - print('Created keyword plan keyword with resource name: {}'.format( - result.resource_name)) + print('Created keyword plan ad group keyword with resource name: ' + f'{result.resource_name}') -def create_keyword_plan_negative_keywords(client, customer_id, plan_campaign): - """Adds a keyword plan negative keyword to the given keyword plan campaign. +def create_keyword_plan_negative_campaign_keywords(client, customer_id, + plan_campaign): + """Adds a keyword plan negative campaign keyword to the given keyword plan + campaign. Args: client: An initialized instance of GoogleAdsClient @@ -254,23 +257,24 @@ def create_keyword_plan_negative_keywords(client, customer_id, plan_campaign): Raises: GoogleAdsException: If an error is returned from the API. """ - match_types = client.get_type('KeywordMatchTypeEnum', version='v3') - operation = client.get_type('KeywordPlanNegativeKeywordOperation', - version='v3') - keyword_plan_negative_keyword = operation.create + match_types = client.get_type('KeywordMatchTypeEnum', version='v4') + operation = client.get_type('KeywordPlanCampaignKeywordOperation', + version='v4') - keyword_plan_negative_keyword.text.value = 'moon walk' - keyword_plan_negative_keyword.match_type = match_types.BROAD - keyword_plan_negative_keyword.keyword_plan_campaign.value = plan_campaign + keyword_plan_campaign_keyword = operation.create + keyword_plan_campaign_keyword.text.value = 'moon walk' + keyword_plan_campaign_keyword.match_type = match_types.BROAD + keyword_plan_campaign_keyword.keyword_plan_campaign.value = plan_campaign + keyword_plan_campaign_keyword.negative.value = True keyword_plan_negative_keyword_service = client.get_service( - 'KeywordPlanNegativeKeywordService', version='v3') - response = (keyword_plan_negative_keyword_service - .mutate_keyword_plan_negative_keywords( + 'KeywordPlanCampaignKeywordService', version='v4') + response = (keyword_plan_campaign_keyword_service + .mutate_keyword_plan_campaign_keywords( customer_id, [operation])) - print('Created keyword plan negative keyword with resource name: {}'.format( - response.results[0].resource_name)) + print('Created keyword plan campaign keyword with resource name: ' + f'{response.results[0].resource_name}') if __name__ == '__main__': diff --git a/examples/planning/forecast_reach.py b/examples/planning/forecast_reach.py index 76e97bcdc..77a2ff9c2 100755 --- a/examples/planning/forecast_reach.py +++ b/examples/planning/forecast_reach.py @@ -35,9 +35,10 @@ def _string_value(client, value): value: A string value to wrap. Returns: - The value wrapped in a google.ads.googleads_v2.types.StringValue. + An instance of google.protobuf.wrappers_pb2.StringValue with its "value" + property updates with the given value. """ - string_val = client.get_type('StringValue', version='v3') + string_val = client.get_type('StringValue', version='v4') string_val.value = value return string_val @@ -50,9 +51,10 @@ def _int_32_value(client, value): value: A number to wrap, truncated to the nearest integer. Returns: - The value wrapped in a google.ads.googleads_v2.types.Int32. + An instance of google.protobuf.wrappers_pb2.Int32Value with its "value" + property updates with the given value. """ - int_32_val = client.get_type('Int32Value', version='v3') + int_32_val = client.get_type('Int32Value', version='v4') int_32_val.value = math.trunc(value) return int_32_val @@ -65,9 +67,10 @@ def _int_64_value(client, value): value: A number to wrap, truncated to the nearest integer. Returns: - The value wrapped in a google.ads.googleads_v2.types.Int64. + An instance of google.protobuf.wrappers_pb2.Int64Value with its "value" + property updates with the given value. """ - int_64_val = client.get_type('Int64Value', version='v3') + int_64_val = client.get_type('Int64Value', version='v4') int_64_val.value = math.trunc(value) return int_64_val @@ -78,7 +81,7 @@ def show_plannable_locations(client): Args: client: A google.ads.google_ads.client.GoogleAdsClient instance. """ - reach_plan_service = client.get_service('ReachPlanService', version='v3') + reach_plan_service = client.get_service('ReachPlanService', version='v4') response = reach_plan_service.list_plannable_locations() print('Plannable Locations') @@ -99,7 +102,7 @@ def show_plannable_products(client, location_id): https://developers.google.com/adwords/api/docs/appendix/geotargeting or by calling ListPlannableLocations on the ReachPlanService. """ - reach_plan_service = client.get_service('ReachPlanService', version='v3') + reach_plan_service = client.get_service('ReachPlanService', version='v4') response = reach_plan_service.list_plannable_products( plannable_location_id=_string_value(client, location_id)) print('Plannable Products for Location ID {}'.format(location_id)) @@ -119,7 +122,7 @@ def _request_reach_curve( by calling ListPlannableLocations on the ReachPlanService. currency_code: Three-character ISO 4217 currency code. """ - reach_request = client.get_type('GenerateReachForecastRequest', version='v3') + reach_request = client.get_type('GenerateReachForecastRequest', version='v4') reach_request.customer_id = customer_id @@ -130,33 +133,33 @@ def _request_reach_curve( targeting = reach_request.targeting targeting.plannable_location_id.value = location_id targeting.age_range = client.get_type( - 'ReachPlanAgeRangeEnum', version='v3').AGE_RANGE_18_65_UP + 'ReachPlanAgeRangeEnum', version='v4').AGE_RANGE_18_65_UP genders = targeting.genders gender_types = [ - client.get_type('GenderTypeEnum', version='v3').FEMALE, - client.get_type('GenderTypeEnum', version='v3').MALE, + client.get_type('GenderTypeEnum', version='v4').FEMALE, + client.get_type('GenderTypeEnum', version='v4').MALE, ] for gender_type in gender_types: - gender = client.get_type('GenderInfo', version='v3') + gender = client.get_type('GenderInfo', version='v4') gender.type = gender_type genders.append(gender) devices = targeting.devices device_types = [ - client.get_type('DeviceEnum', version='v3').DESKTOP, - client.get_type('DeviceEnum', version='v3').MOBILE, - client.get_type('DeviceEnum', version='v3').TABLET, + client.get_type('DeviceEnum', version='v4').DESKTOP, + client.get_type('DeviceEnum', version='v4').MOBILE, + client.get_type('DeviceEnum', version='v4').TABLET, ] for device_type in device_types: - device = client.get_type('DeviceInfo', version='v3') + device = client.get_type('DeviceInfo', version='v4') device.type = device_type devices.append(device) - reach_plan_service = client.get_service('ReachPlanService', version='v3') + reach_plan_service = client.get_service('ReachPlanService', version='v4') # See the docs for defaults and valid ranges: - # https://developers.google.com/google-ads/api/reference/rpc/google.ads.googleads.v2.services#google.ads.googleads.v2.services.GenerateReachForecastRequest + # https://developers.google.com/google-ads/api/reference/rpc/google.ads.googleads.v4.services#google.ads.googleads.v4.services.GenerateReachForecastRequest response = reach_plan_service.generate_reach_forecast( customer_id=customer_id, currency_code=_string_value(client, currency_code), @@ -206,7 +209,7 @@ def forecast_manual_mix( ('BUMPER', bumper_allocation), ] for product, split in product_splits: - planned_product = client.get_type('PlannedProduct', version='v3') + planned_product = client.get_type('PlannedProduct', version='v4') planned_product.plannable_product_code.value = product planned_product.budget_micros.value = math.trunc( budget * ONE_MILLION * split) @@ -229,15 +232,15 @@ def forecast_suggested_mix( currency_code: Three-character ISO 4217 currency code. budget: Budget to allocate to the plan. """ - preferences = client.get_type('Preferences', version='v3') + preferences = client.get_type('Preferences', version='v4') preferences.has_guaranteed_price.value = True preferences.starts_with_sound.value = True preferences.is_skippable.value = False preferences.top_content_only.value = True preferences.ad_length = client.get_type( - 'ReachPlanAdLengthEnum', version='v3').FIFTEEN_OR_TWENTY_SECONDS + 'ReachPlanAdLengthEnum', version='v4').FIFTEEN_OR_TWENTY_SECONDS - reach_plan_service = client.get_service('ReachPlanService', version='v3') + reach_plan_service = client.get_service('ReachPlanService', version='v4') mix_response = reach_plan_service.generate_product_mix_ideas( customer_id=customer_id, plannable_location_id=_string_value(client, location_id), @@ -247,7 +250,7 @@ def forecast_suggested_mix( product_mix = [] for product in mix_response.product_allocation: - planned_product = client.get_type('PlannedProduct', version='v3') + planned_product = client.get_type('PlannedProduct', version='v4') planned_product.plannable_product_code.value = ( product.plannable_product_code.value) planned_product.budget_micros.value = product.budget_micros.value diff --git a/examples/planning/generate_keyword_ideas.py b/examples/planning/generate_keyword_ideas.py index f196e6d56..5ca0636de 100755 --- a/examples/planning/generate_keyword_ideas.py +++ b/examples/planning/generate_keyword_ideas.py @@ -23,21 +23,22 @@ # Location IDs are listed here: https://developers.google.com/adwords/api/docs/appendix/geotargeting # and they can also be retrieved using the GeoTargetConstantService as shown # here: https://developers.google.com/google-ads/api/docs/targeting/location-targeting -_DEFAULT_LOCATION_IDS = '1023191' # location ID for New York, NY +_DEFAULT_LOCATION_IDS = ['1023191'] # location ID for New York, NY # A language criterion ID. For example, specify 1000 for English. For more # information on determining this value, see the below link: # https://developers.google.com/adwords/api/docs/appendix/codes-formats#languages. _DEFAULT_LANGUAGE_ID = '1000' # language ID for English -def main(client, customer_id, location_ids, language_id, keywords, page_url): +def main(client, customer_id, location_ids, language_id, keyword_texts, + page_url): keyword_plan_idea_service = client.get_service('KeywordPlanIdeaService', - version='v3') - keyword_competition_level_enum = ( - client.get_type('KeywordPlanCompetitionLevelEnum', version='v3') - .KeywordPlanCompetitionLevel) + version='v4') + keyword_competition_level_enum = client.get_type( + 'KeywordPlanCompetitionLevelEnum', + version='v4').KeywordPlanCompetitionLevel keyword_plan_network = client.get_type( - 'KeywordPlanNetworkEnum', version='v3').GOOGLE_SEARCH_AND_PARTNERS + 'KeywordPlanNetworkEnum', version='v4').GOOGLE_SEARCH_AND_PARTNERS locations = map_locations_to_string_values(client, location_ids) language = map_language_to_string_value(client, language_id) @@ -49,41 +50,41 @@ def main(client, customer_id, location_ids, language_id, keywords, page_url): # Either keywords or a page_url are required to generate keyword ideas # so this raises an error if neither are provided. - if not (keywords or page_url): + if not (keyword_texts or page_url): raise ValueError('At least one of keywords or page URL is required, ' 'but neither was specified.') # To generate keyword ideas with only a page_url and no keywords we need # to initialize a UrlSeed object with the page_url as the "url" field. - if not keywords and page_url: - url_seed = client.get_type('UrlSeed', version='v3') + if not keyword_texts and page_url: + url_seed = client.get_type('UrlSeed', version='v4') url_seed.url.value = page_url # To generate keyword ideas with only a list of keywords and no page_url # we need to initialize a KeywordSeed object and set the "keywords" field # to be a list of StringValue objects. - if keywords and not page_url: - keyword_seed = client.get_type('KeywordSeed', version='v3') - keyword_protos = map_keywords_to_string_values(client, keywords) + if keyword_texts and not page_url: + keyword_seed = client.get_type('KeywordSeed', version='v4') + keyword_protos = map_keywords_to_string_values(client, keyword_texts) keyword_seed.keywords.extend(keyword_protos) # To generate keyword ideas using both a list of keywords and a page_url we # need to initialize a KeywordAndUrlSeed object, setting both the "url" and # "keywords" fields. - if keywords and page_url: - keyword_url_seed = client.get_type('KeywordAndUrlSeed', version='v3') + if keyword_texts and page_url: + keyword_url_seed = client.get_type('KeywordAndUrlSeed', version='v4') keyword_url_seed.url.value = page_url - keyword_protos = map_keywords_to_string_values(client, keywords) + keyword_protos = map_keywords_to_string_values(client, keyword_textss) keyword_url_seed.keywords.extend(keyword_protos) try: keyword_ideas = keyword_plan_idea_service.generate_keyword_ideas( - customer_id, language, locations, keyword_plan_network, + customer_id, language, locations, False, keyword_plan_network, url_seed=url_seed, keyword_seed=keyword_seed, keyword_and_url_seed=keyword_url_seed) - for idea in keyword_ideas.results: + for idea in keyword_ideas: competition_value = keyword_competition_level_enum.Name( idea.keyword_idea_metrics.competition) print(f'Keyword idea text "{idea.text.value}" has ' @@ -101,20 +102,20 @@ def main(client, customer_id, location_ids, language_id, keywords, page_url): sys.exit(1) -def map_keywords_to_string_values(client, keywords): +def map_keywords_to_string_values(client, keyword_texts): keyword_protos = [] - for keyword in keywords: - string_val = client.get_type('StringValue') + for keyword in keyword_texts: + string_val = client.get_type('StringValue', version='v4') string_val.value = keyword keyword_protos.append(string_val) return keyword_protos def map_locations_to_string_values(client, location_ids): - gtc_service = client.get_service('GeoTargetConstantService', version='v3') + gtc_service = client.get_service('GeoTargetConstantService', version='v4') locations = [] for location_id in location_ids: - location = client.get_type('StringValue') + location = client.get_type('StringValue', version='v4') location.value = gtc_service.geo_target_constant_path(location_id) locations.append(location) return locations @@ -123,7 +124,7 @@ def map_locations_to_string_values(client, location_ids): def map_language_to_string_value(client, language_id): language = client.get_type('StringValue') language.value = client.get_service('LanguageConstantService', - version='v3').language_constant_path( + version='v4').language_constant_path( language_id) return language @@ -139,28 +140,24 @@ def map_language_to_string_value(client, language_id): # 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.') - # For more information on determining location IDs, see: - parser.add_argument('-k', '--keywords', type=str, required=False, - help='Comma-delimited starter keywords') + parser.add_argument('-k', '--keyword_texts', nargs='+', type=str, + required=False, default=[], + help='Space-delimited list of starter keywords') + # To determine the appropriate location IDs, see: # https://developers.google.com/adwords/api/docs/appendix/geotargeting. - parser.add_argument('-l', '--location_ids', type=str, - required=False, help='Comma-delimited list of location ' - 'criteria IDs') + parser.add_argument('-l', '--location_ids', nargs='+', type=str, + required=False, default=_DEFAULT_LOCATION_IDS, + help='Space-delimited list of location criteria IDs') + # To determine the appropriate language ID, see: # https://developers.google.com/adwords/api/docs/appendix/codes-formats#languages. parser.add_argument('-i', '--language_id', type=str, - required=False, help='Comma-delimited list of language ' - 'criterion IDs') + required=False, default=_DEFAULT_LANGUAGE_ID, + help='The language criterion ID.') # Optional: Specify a URL string related to your business to generate ideas. parser.add_argument('-p', '--page_url', type=str, required=False, help='A URL string related to your business') - parser.set_defaults(location_ids=_DEFAULT_LOCATION_IDS, - language_id=_DEFAULT_LANGUAGE_ID, keywords='') - args = parser.parse_args() - location_ids = [loc for loc in args.location_ids.split(',') if loc] - keywords = [keyword for keyword in args.keywords.split(',') if keyword] - - main(google_ads_client, args.customer_id, location_ids, args.language_id, - keywords, args.page_url) + main(google_ads_client, args.customer_id, args.location_ids, + args.language_id, args.keyword_texts, args.page_url) diff --git a/examples/recommendations/apply_recommendation.py b/examples/recommendations/apply_recommendation.py index dbd4c540d..2cdb80cad 100755 --- a/examples/recommendations/apply_recommendation.py +++ b/examples/recommendations/apply_recommendation.py @@ -26,7 +26,7 @@ def main(client, customer_id, recommendation_id): recommendation_service = client.get_service('RecommendationService', - version='v3') + version='v4') apply_recommendation_operation = client.get_type( 'ApplyRecommendationOperation') diff --git a/examples/recommendations/get_text_ad_recommendations.py b/examples/recommendations/get_text_ad_recommendations.py index 2907befa4..899d2746e 100755 --- a/examples/recommendations/get_text_ad_recommendations.py +++ b/examples/recommendations/get_text_ad_recommendations.py @@ -28,7 +28,7 @@ def main(client, customer_id, page_size): - ga_service = client.get_service('GoogleAdsService', version='v3') + ga_service = client.get_service('GoogleAdsService', version='v4') query = ('SELECT recommendation.type, recommendation.campaign, ' 'recommendation.text_ad_recommendation FROM recommendation ' diff --git a/examples/remarketing/add_conversion_action.py b/examples/remarketing/add_conversion_action.py index 92e19d816..ad3145676 100755 --- a/examples/remarketing/add_conversion_action.py +++ b/examples/remarketing/add_conversion_action.py @@ -24,11 +24,11 @@ def main(client, customer_id): conversion_action_service = client.get_service('ConversionActionService', - version='v3') + version='v4') # Create the operation. conversion_action_operation = client.get_type('ConversionActionOperation', - version='v3') + version='v4') # Create conversion action. conversion_action = conversion_action_operation.create diff --git a/examples/remarketing/add_remarketing_action.py b/examples/remarketing/add_remarketing_action.py index 5069ffbbd..680502924 100755 --- a/examples/remarketing/add_remarketing_action.py +++ b/examples/remarketing/add_remarketing_action.py @@ -40,9 +40,9 @@ def main(client, customer_id, page_size): def _add_remarketing_action(client, customer_id): remarketing_action_service = client.get_service( - 'RemarketingActionService', version='v2') + 'RemarketingActionService', version='v4') remarketing_action_operation = client.get_type( - 'RemarketingActionOperation', version='v2') + 'RemarketingActionOperation', version='v4') remarketing_action = remarketing_action_operation.create remarketing_action.name.value = f'Remarketing action #{uuid4()}' @@ -74,7 +74,7 @@ def _query_remarketing_action(client, customer_id, resource_name, page_size): f'WHERE remarketing_action.resource_name = "{resource_name}"') google_ads_service_client = client.get_service( - 'GoogleAdsService', version='v2') + 'GoogleAdsService', version='v4') results = google_ads_service_client.search( customer_id, query=query, page_size=page_size) @@ -94,9 +94,9 @@ def _query_remarketing_action(client, customer_id, resource_name, page_size): def _print_remarketing_action_attributes(client, remarketing_action): tracking_code_type_enum = client.get_type( - 'TrackingCodeTypeEnum', version='v2').TrackingCodeType + 'TrackingCodeTypeEnum', version='v4').TrackingCodeType tracking_code_page_format_enum = client.get_type( - 'TrackingCodePageFormatEnum', version='v2').TrackingCodePageFormat + 'TrackingCodePageFormatEnum', version='v4').TrackingCodePageFormat print(f'Remarketing action has ID {remarketing_action.id.value} and name ' f'"{remarketing_action.name.value}". \nIt has the following ' diff --git a/examples/remarketing/upload_conversion_adjustment.py b/examples/remarketing/upload_conversion_adjustment.py index fde1cb755..f73c660e8 100644 --- a/examples/remarketing/upload_conversion_adjustment.py +++ b/examples/remarketing/upload_conversion_adjustment.py @@ -41,9 +41,9 @@ def main(client, customer_id, conversion_action_id, gclid, adjustment_type, # Associates conversion adjustments with the existing conversion action. # The GCLID should have been uploaded before with a conversion conversion_adjustment = (client.get_type('ConversionAdjustment', - version='v3')) + version='v4')) conversion_action_service = (client.get_service('ConversionActionService', - version='v3')) + version='v4')) conversion_adjustment.conversion_action.value = ( conversion_action_service.conversion_action_path( customer_id, conversion_action_id)) @@ -63,7 +63,7 @@ def main(client, customer_id, conversion_action_id, gclid, adjustment_type, float(restatement_value)) conversion_adjustment_upload_service = ( - client.get_service('ConversionAdjustmentUploadService', version='v3')) + client.get_service('ConversionAdjustmentUploadService', version='v4')) try: response = ( conversion_adjustment_upload_service. diff --git a/examples/remarketing/upload_offline_conversion.py b/examples/remarketing/upload_offline_conversion.py index 10bc05fd9..1c132946a 100644 --- a/examples/remarketing/upload_offline_conversion.py +++ b/examples/remarketing/upload_offline_conversion.py @@ -31,9 +31,9 @@ def main(client, customer_id, conversion_action_id, gclid, conversion_date_time, conversion_value): """Creates a click conversion with a default currency of USD.""" - click_conversion = client.get_type('ClickConversion', version='v3') + click_conversion = client.get_type('ClickConversion', version='v4') conversion_action_service = client.get_service('ConversionActionService', - version='v3') + version='v4') click_conversion.conversion_action.value = ( conversion_action_service.conversion_action_path( customer_id, conversion_action_id)) @@ -43,7 +43,7 @@ def main(client, customer_id, conversion_action_id, gclid, click_conversion.currency_code.value = 'USD' conversion_upload_service = client.get_service('ConversionUploadService', - version='v3') + version='v4') try: conversion_upload_response = ( diff --git a/examples/reporting/get_hotel_ads_performance.py b/examples/reporting/get_hotel_ads_performance.py index defbd7c2e..4bc11f70d 100755 --- a/examples/reporting/get_hotel_ads_performance.py +++ b/examples/reporting/get_hotel_ads_performance.py @@ -27,7 +27,7 @@ def main(client, customer_id, page_size): - ga_service = client.get_service('GoogleAdsService', version='v3') + ga_service = client.get_service('GoogleAdsService', version='v4') query = ('SELECT campaign.id, campaign.advertising_channel_type, ' 'ad_group.id, ad_group.status, metrics.impressions, ' diff --git a/examples/reporting/get_keyword_stats.py b/examples/reporting/get_keyword_stats.py index 3b4e735a2..25f20c5b9 100755 --- a/examples/reporting/get_keyword_stats.py +++ b/examples/reporting/get_keyword_stats.py @@ -25,7 +25,7 @@ def main(client, customer_id): - ga_service = client.get_service('GoogleAdsService', version='v3') + ga_service = client.get_service('GoogleAdsService', version='v4') query = ('SELECT campaign.id, campaign.name, ad_group.id, ad_group.name, ' 'ad_group_criterion.criterion_id, ' @@ -42,7 +42,7 @@ def main(client, customer_id): # Issues a search request using streaming. response = ga_service.search_stream(customer_id, query) keyword_match_type_enum = client.get_type( - 'KeywordMatchTypeEnum', version='v2').KeywordMatchType + 'KeywordMatchTypeEnum', version='v4').KeywordMatchType try: for batch in response: for row in batch.results: diff --git a/examples/shopping_ads/add_listing_scope.py b/examples/shopping_ads/add_listing_scope.py index fdaf0834f..3f9c64038 100644 --- a/examples/shopping_ads/add_listing_scope.py +++ b/examples/shopping_ads/add_listing_scope.py @@ -35,13 +35,13 @@ def main(client, customer_id, campaign_id): - campaign_service = client.get_service('CampaignService', version='v3') + campaign_service = client.get_service('CampaignService', version='v4') campaign_resource_name = campaign_service.campaign_path( customer_id, campaign_id) campaign_criterion_operation = client.get_type( - 'CampaignCriterionOperation', version='v3') + 'CampaignCriterionOperation', version='v4') campaign_criterion = campaign_criterion_operation.create campaign_criterion.campaign.value = campaign_resource_name @@ -54,7 +54,7 @@ def main(client, customer_id, campaign_id): client, campaign_criterion.listing_scope.dimensions) campaign_criterion_service = client.get_service('CampaignCriterionService', - version='v3') + version='v4') try: campaign_criterion_response = ( @@ -81,7 +81,7 @@ def _build_listing_scope_dimensions(client, dimensions): product_brand_dimension.product_brand.value.value = 'google' product_custom_attribute_index_enum = client.get_type( - 'ProductCustomAttributeIndexEnum', version='v3') + 'ProductCustomAttributeIndexEnum', version='v4') product_custom_attribute_dimension = dimensions.add() product_custom_attribute = ( @@ -90,7 +90,7 @@ def _build_listing_scope_dimensions(client, dimensions): product_custom_attribute.value.value = 'top_selling_products' product_type_level_enum = client.get_type( - 'ProductTypeLevelEnum', version='v3') + 'ProductTypeLevelEnum', version='v4') product_type_dimension_1 = dimensions.add() product_type = product_type_dimension_1.product_type diff --git a/examples/shopping/add_shopping_product_ad.py b/examples/shopping_ads/add_shopping_product_ad.py similarity index 96% rename from examples/shopping/add_shopping_product_ad.py rename to examples/shopping_ads/add_shopping_product_ad.py index 170cb7299..b43b2d29e 100755 --- a/examples/shopping/add_shopping_product_ad.py +++ b/examples/shopping_ads/add_shopping_product_ad.py @@ -60,11 +60,11 @@ def main(client, customer_id, merchant_center_account_id, def add_campaign_budget(client, customer_id): """Creates a new campaign budget in the specified client account.""" campaign_budget_service = client.get_service('CampaignBudgetService', - version='v3') + version='v4') # Create a budget, which can be shared by multiple campaigns. campaign_budget_operation = client.get_type('CampaignBudgetOperation', - version='v3') + version='v4') campaign_budget = campaign_budget_operation.create campaign_budget.name.value = 'Interplanetary Budget %s' % uuid.uuid4() campaign_budget.delivery_method = client.get_type( @@ -96,14 +96,14 @@ def add_campaign_budget(client, customer_id): def add_shopping_product_ad_group_ad(client, customer_id, ad_group_resource_name): """Creates a new shopping product ad group ad in the specified ad group.""" - ad_group_ad_service = client.get_service('AdGroupAdService', version='v3') + ad_group_ad_service = client.get_service('AdGroupAdService', version='v4') # Creates a new ad group ad and sets the product ad to it. - ad_group_ad_operation = client.get_type('AdGroupAdOperation', version='v3') + ad_group_ad_operation = client.get_type('AdGroupAdOperation', version='v4') ad_group_ad = ad_group_ad_operation.create ad_group_ad.ad_group.value = ad_group_resource_name ad_group_ad.status = client.get_type('AdGroupAdStatusEnum', - version='v3').PAUSED + version='v4').PAUSED ad_group_ad.ad.shopping_product_ad.CopyFrom(client.get_type( 'ShoppingProductAdInfo')) @@ -131,18 +131,18 @@ def add_shopping_product_ad_group_ad(client, customer_id, def add_shopping_product_ad_group(client, customer_id, campaign_resource_name): """Creates a new shopping product ad group in the specified campaign.""" - ad_group_service = client.get_service('AdGroupService', version='v3') + ad_group_service = client.get_service('AdGroupService', version='v4') # Create ad group. - ad_group_operation = client.get_type('AdGroupOperation', version='v3') + ad_group_operation = client.get_type('AdGroupOperation', version='v4') ad_group = ad_group_operation.create ad_group.name.value = 'Earth to Mars cruise %s' % uuid.uuid4() - ad_group.status = client.get_type('AdGroupStatusEnum', version='v3').ENABLED + ad_group.status = client.get_type('AdGroupStatusEnum', version='v4').ENABLED ad_group.campaign.value = campaign_resource_name # Sets the ad group type to SHOPPING_PRODUCT_ADS. This is the only value # possible for ad groups that contain shopping product ads. ad_group.type = client.get_type('AdGroupTypeEnum', - version='v3').SHOPPING_PRODUCT_ADS + version='v4').SHOPPING_PRODUCT_ADS ad_group.cpc_bid_micros.value = 10000000 # Add the ad group. @@ -171,10 +171,10 @@ def add_standard_shopping_campaign(client, customer_id, budget_resource_name, merchant_center_account_id): """Creates a new standard shopping campaign in the specified client account. """ - campaign_service = client.get_service('CampaignService', version='v3') + campaign_service = client.get_service('CampaignService', version='v4') # Create standard shoppping campaign. - campaign_operation = client.get_type('CampaignOperation', version='v3') + campaign_operation = client.get_type('CampaignOperation', version='v4') campaign = campaign_operation.create campaign.name.value = 'Interplanetary Cruise Campaign %s' % uuid.uuid4() @@ -198,7 +198,7 @@ def add_standard_shopping_campaign(client, customer_id, budget_resource_name, # Recommendation: Set the campaign to PAUSED when creating it to prevent the # ads from immediately serving. Set to ENABLED once you've added targeting # and the ads are ready to serve. - campaign.status = client.get_type('CampaignStatusEnum', version='v3').PAUSED + campaign.status = client.get_type('CampaignStatusEnum', version='v4').PAUSED # Sets the bidding strategy to Manual CPC (with eCPC enabled) # Recommendation: Use one of the automated bidding strategies for Shopping @@ -241,12 +241,12 @@ def add_default_shopping_listing_group(client, customer_id, the bid for a given listing group. """ ad_group_criterion_service = client.get_service('AdGroupCriterionService', - version='v3') + version='v4') # Creates a new ad group criterion. This will contain the "default" listing # group (All products). ad_group_criterion_operation = client.get_type('AdGroupCriterionOperation', - version='v3') + version='v4') ad_group_criterion = ad_group_criterion_operation.create ad_group_criterion.ad_group.value = ad_group_resource_name ad_group_criterion.status = client.get_type( diff --git a/examples/shopping/get_product_bidding_category_constant.py b/examples/shopping_ads/get_product_bidding_category_constant.py similarity index 99% rename from examples/shopping/get_product_bidding_category_constant.py rename to examples/shopping_ads/get_product_bidding_category_constant.py index 3cf9f6927..22b088104 100755 --- a/examples/shopping/get_product_bidding_category_constant.py +++ b/examples/shopping_ads/get_product_bidding_category_constant.py @@ -32,7 +32,7 @@ def display_categories(categories, prefix=''): def main(client, customer_id, page_size): - ga_service = client.get_service('GoogleAdsService', version='v3') + ga_service = client.get_service('GoogleAdsService', version='v4') query = ('SELECT product_bidding_category_constant.localized_name, ' 'product_bidding_category_constant.product_bidding_category_constant_parent ' 'FROM product_bidding_category_constant WHERE ' diff --git a/examples/targeting/add_campaign_targeting_criteria.py b/examples/targeting/add_campaign_targeting_criteria.py index 12a2edd3e..03d6274fc 100755 --- a/examples/targeting/add_campaign_targeting_criteria.py +++ b/examples/targeting/add_campaign_targeting_criteria.py @@ -18,16 +18,18 @@ import argparse import sys -import google.ads.google_ads.client +from google.ads.google_ads.client import GoogleAdsClient +from google.ads.google_ads.errors import GoolgeAdsException -def main(client, customer_id, campaign_id, keyword, location_id): +def main(client, customer_id, campaign_id, keyword_text, location_id): campaign_criterion_service = client.get_service('CampaignCriterionService', - version='v3') + version='v4') operations = [ create_location_op(client, customer_id, campaign_id, location_id), - create_negative_keyword_op(client, customer_id, campaign_id, keyword), + create_negative_keyword_op(client, customer_id, campaign_id, + keyword_text), create_proximity_op(client, customer_id, campaign_id) ] @@ -35,28 +37,28 @@ def main(client, customer_id, campaign_id, keyword, location_id): campaign_criterion_response = ( campaign_criterion_service.mutate_campaign_criteria( customer_id, operations)) - except google.ads.google_ads.errors.GoogleAdsException as ex: - print('Request with ID "%s" failed with status "%s" and includes the ' - 'following errors:' % (ex.request_id, ex.error.code().name)) + 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('\tError with message "%s".' % error.message) + print(f'\tError with message "{error.message}".') if error.location: for field_path_element in error.location.field_path_elements: - print('\t\tOn field: %s' % field_path_element.field_name) + print(f'\t\tOn field: {field_path_element.field_name}') sys.exit(1) for result in campaign_criterion_response.results: - print('Added campaign criterion "%s".' % result.resource_name) + print(f'Added campaign criterion "{result.resource_name}".') def create_location_op(client, customer_id, campaign_id, location_id): - campaign_service = client.get_service('CampaignService', version='v3') + campaign_service = client.get_service('CampaignService', version='v4') geo_target_constant_service = client.get_service('GeoTargetConstantService', - version='v3') + version='v4') # Create the campaign criterion. campaign_criterion_operation = client.get_type('CampaignCriterionOperation', - version='v3') + version='v4') campaign_criterion = campaign_criterion_operation.create campaign_criterion.campaign.value = campaign_service.campaign_path( customer_id, campaign_id) @@ -71,30 +73,30 @@ def create_location_op(client, customer_id, campaign_id, location_id): return campaign_criterion_operation -def create_negative_keyword_op(client, customer_id, campaign_id, keyword): - campaign_service = client.get_service('CampaignService', version='v3') +def create_negative_keyword_op(client, customer_id, campaign_id, keyword_text): + campaign_service = client.get_service('CampaignService', version='v4') # Create the campaign criterion. campaign_criterion_operation = client.get_type('CampaignCriterionOperation', - version='v3') + version='v4') campaign_criterion = campaign_criterion_operation.create campaign_criterion.campaign.value = campaign_service.campaign_path( customer_id, campaign_id) campaign_criterion.negative.value = True criterion_keyword = campaign_criterion.keyword - criterion_keyword.text.value = keyword + criterion_keyword.text.value = keyword_text criterion_keyword.match_type = client.get_type('KeywordMatchTypeEnum', - version='v3').BROAD + version='v4').BROAD return campaign_criterion_operation def create_proximity_op(client, customer_id, campaign_id): - campaign_service = client.get_service('CampaignService', version='v3') + campaign_service = client.get_service('CampaignService', version='v4') # Create the campaign criterion. campaign_criterion_operation = client.get_type('CampaignCriterionOperation', - version='v3') + version='v4') campaign_criterion = campaign_criterion_operation.create campaign_criterion.campaign.value = campaign_service.campaign_path( customer_id, campaign_id) @@ -114,8 +116,7 @@ def create_proximity_op(client, customer_id, campaign_id): if __name__ == '__main__': # GoogleAdsClient will read the google-ads.yaml configuration file in the # home directory if none is specified. - google_ads_client = (google.ads.google_ads.client.GoogleAdsClient - .load_from_storage()) + google_ads_client = GoogleAdsClient.load_from_storage() parser = argparse.ArgumentParser( description=('Adds campaign targeting criteria for the specified ' @@ -125,8 +126,8 @@ def create_proximity_op(client, customer_id, campaign_id): required=True, help='The Google Ads customer ID.') parser.add_argument('-i', '--campaign_id', type=str, required=True, help='The campaign ID.') - parser.add_argument('-k', '--keyword', type=str, required=True, - help='The keyword to be added to the campaign.') + parser.add_argument('-k', '--keyword_text', type=str, required=True, + help='The keyword text to be added to the campaign.') parser.add_argument( '-l', '--location_id', type=str, required=False, default='21167', # New York @@ -137,5 +138,5 @@ def create_proximity_op(client, customer_id, campaign_id): 'geotargeting.')) args = parser.parse_args() - main(google_ads_client, args.customer_id, args.campaign_id, args.keyword, - args.location_id) + main(google_ads_client, args.customer_id, args.campaign_id, + args.keyword_text, args.location_id) diff --git a/examples/targeting/add_demographic_targeting_criteria.py b/examples/targeting/add_demographic_targeting_criteria.py index a9f9238fd..d59cc0002 100755 --- a/examples/targeting/add_demographic_targeting_criteria.py +++ b/examples/targeting/add_demographic_targeting_criteria.py @@ -24,21 +24,21 @@ def main(client, customer_id, ad_group_id): - ad_group_service = client.get_service('AdGroupService', version='v3') + ad_group_service = client.get_service('AdGroupService', version='v4') ad_group_criterion_service = client.get_service('AdGroupCriterionService', - version='v3') + version='v4') ad_group_resource_name = ad_group_service.ad_group_path(customer_id, ad_group_id) # Create a positive ad group criterion for the gender MALE. gender_ad_group_criterion_operation = client.get_type( - 'AdGroupCriterionOperation', version='v3') + 'AdGroupCriterionOperation', version='v4') gender_ad_group_criterion = gender_ad_group_criterion_operation.create gender_ad_group_criterion.ad_group.value = ad_group_resource_name gender_ad_group_criterion.gender.type = client.get_type('GenderTypeEnum').MALE # Create a negative ad group criterion for age range of 18 to 24. age_range_ad_group_criterion_operation = client.get_type( - 'AdGroupCriterionOperation', version='v3') + 'AdGroupCriterionOperation', version='v4') age_range_ad_group_criterion = age_range_ad_group_criterion_operation.create age_range_ad_group_criterion.ad_group.value = ad_group_resource_name age_range_ad_group_criterion.negative.value = True diff --git a/examples/targeting/get_campaign_targeting_criteria.py b/examples/targeting/get_campaign_targeting_criteria.py index 95d6b6388..9bcfa8cbe 100755 --- a/examples/targeting/get_campaign_targeting_criteria.py +++ b/examples/targeting/get_campaign_targeting_criteria.py @@ -26,7 +26,7 @@ def main(client, customer_id, campaign_id, page_size): - ga_service = client.get_service('GoogleAdsService', version='v3') + ga_service = client.get_service('GoogleAdsService', version='v4') query = ('SELECT campaign.id, campaign_criterion.campaign, ' 'campaign_criterion.criterion_id, campaign_criterion.negative, ' @@ -44,7 +44,7 @@ def main(client, customer_id, campaign_id, page_size): % criterion.criterion_id.value) if criterion.type == client.get_type('CriterionTypeEnum', - version='v3').KEYWORD: + version='v4').KEYWORD: print('\t%sKeyword with text "%s" and match type %s.' % ('' if criterion.negative.value else 'Negative', criterion.keyword.text.value, diff --git a/examples/targeting/get_geo_target_constants_by_names.py b/examples/targeting/get_geo_target_constants_by_names.py index e2b942dc9..11094173b 100755 --- a/examples/targeting/get_geo_target_constants_by_names.py +++ b/examples/targeting/get_geo_target_constants_by_names.py @@ -22,11 +22,11 @@ def main(client): - gtc_service = client.get_service('GeoTargetConstantService', version='v3') + gtc_service = client.get_service('GeoTargetConstantService', version='v4') location_names = ( client.get_type('SuggestGeoTargetConstantsRequest', - version='v3').LocationNames()) + version='v4').LocationNames()) for location in ['Paris', 'Quebec', 'Spain', 'Deutschland']: location_name = location_names.names.add() @@ -34,12 +34,12 @@ def main(client): # Locale is using ISO 639-1 format. If an invalid locale is given, # 'en' is used by default. - locale = client.get_type('StringValue', version='v3') + locale = client.get_type('StringValue', version='v4') locale.value = 'en' # A list of country codes can be referenced here: # https://developers.google.com/adwords/api/docs/appendix/geotargeting - country_code = client.get_type('StringValue', version='v3') + country_code = client.get_type('StringValue', version='v4') country_code.value = 'FR' results = gtc_service.suggest_geo_target_constants( diff --git a/google/ads/google_ads/__init__.py b/google/ads/google_ads/__init__.py index cec159c4d..a953d5cb4 100644 --- a/google/ads/google_ads/__init__.py +++ b/google/ads/google_ads/__init__.py @@ -20,4 +20,4 @@ import google.ads.google_ads.util -VERSION = '5.1.0' +VERSION = '6.0.0' diff --git a/google/ads/google_ads/client.py b/google/ads/google_ads/client.py index aa5737b70..112f3cba3 100644 --- a/google/ads/google_ads/client.py +++ b/google/ads/google_ads/client.py @@ -28,7 +28,7 @@ _SERVICE_CLIENT_TEMPLATE = '{}Client' _SERVICE_GRPC_TRANSPORT_TEMPLATE = '{}GrpcTransport' -_VALID_API_VERSIONS = ['v3', 'v2', 'v1'] +_VALID_API_VERSIONS = ['v4', 'v3', 'v2'] _DEFAULT_VERSION = _VALID_API_VERSIONS[0] _GRPC_CHANNEL_OPTIONS = [ diff --git a/google/ads/google_ads/v1/__init__.py b/google/ads/google_ads/v1/__init__.py deleted file mode 100644 index e1843b044..000000000 --- a/google/ads/google_ads/v1/__init__.py +++ /dev/null @@ -1,1525 +0,0 @@ -# Copyright 2018 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. - - - - -from google.ads.google_ads.v1 import types -from google.ads.google_ads.v1.services import account_budget_proposal_service_client -from google.ads.google_ads.v1.services import account_budget_service_client -from google.ads.google_ads.v1.services import ad_group_ad_label_service_client -from google.ads.google_ads.v1.services import ad_group_ad_service_client -from google.ads.google_ads.v1.services import ad_group_audience_view_service_client -from google.ads.google_ads.v1.services import ad_group_bid_modifier_service_client -from google.ads.google_ads.v1.services import ad_group_criterion_label_service_client -from google.ads.google_ads.v1.services import ad_group_criterion_service_client -from google.ads.google_ads.v1.services import ad_group_criterion_simulation_service_client -from google.ads.google_ads.v1.services import ad_group_extension_setting_service_client -from google.ads.google_ads.v1.services import ad_group_feed_service_client -from google.ads.google_ads.v1.services import ad_group_label_service_client -from google.ads.google_ads.v1.services import ad_group_service_client -from google.ads.google_ads.v1.services import ad_group_simulation_service_client -from google.ads.google_ads.v1.services import ad_parameter_service_client -from google.ads.google_ads.v1.services import ad_schedule_view_service_client -from google.ads.google_ads.v1.services import age_range_view_service_client -from google.ads.google_ads.v1.services import asset_service_client -from google.ads.google_ads.v1.services import bidding_strategy_service_client -from google.ads.google_ads.v1.services import billing_setup_service_client -from google.ads.google_ads.v1.services import campaign_audience_view_service_client -from google.ads.google_ads.v1.services import campaign_bid_modifier_service_client -from google.ads.google_ads.v1.services import campaign_budget_service_client -from google.ads.google_ads.v1.services import campaign_criterion_service_client -from google.ads.google_ads.v1.services import campaign_criterion_simulation_service_client -from google.ads.google_ads.v1.services import campaign_draft_service_client -from google.ads.google_ads.v1.services import campaign_experiment_service_client -from google.ads.google_ads.v1.services import campaign_extension_setting_service_client -from google.ads.google_ads.v1.services import campaign_feed_service_client -from google.ads.google_ads.v1.services import campaign_label_service_client -from google.ads.google_ads.v1.services import campaign_service_client -from google.ads.google_ads.v1.services import campaign_shared_set_service_client -from google.ads.google_ads.v1.services import carrier_constant_service_client -from google.ads.google_ads.v1.services import change_status_service_client -from google.ads.google_ads.v1.services import click_view_service_client -from google.ads.google_ads.v1.services import conversion_action_service_client -from google.ads.google_ads.v1.services import conversion_adjustment_upload_service_client -from google.ads.google_ads.v1.services import conversion_upload_service_client -from google.ads.google_ads.v1.services import customer_client_link_service_client -from google.ads.google_ads.v1.services import customer_client_service_client -from google.ads.google_ads.v1.services import customer_extension_setting_service_client -from google.ads.google_ads.v1.services import customer_feed_service_client -from google.ads.google_ads.v1.services import customer_label_service_client -from google.ads.google_ads.v1.services import customer_manager_link_service_client -from google.ads.google_ads.v1.services import customer_negative_criterion_service_client -from google.ads.google_ads.v1.services import customer_service_client -from google.ads.google_ads.v1.services import custom_interest_service_client -from google.ads.google_ads.v1.services import detail_placement_view_service_client -from google.ads.google_ads.v1.services import display_keyword_view_service_client -from google.ads.google_ads.v1.services import domain_category_service_client -from google.ads.google_ads.v1.services import dynamic_search_ads_search_term_view_service_client -from google.ads.google_ads.v1.services import enums -from google.ads.google_ads.v1.services import expanded_landing_page_view_service_client -from google.ads.google_ads.v1.services import extension_feed_item_service_client -from google.ads.google_ads.v1.services import feed_item_service_client -from google.ads.google_ads.v1.services import feed_item_target_service_client -from google.ads.google_ads.v1.services import feed_mapping_service_client -from google.ads.google_ads.v1.services import feed_placeholder_view_service_client -from google.ads.google_ads.v1.services import feed_service_client -from google.ads.google_ads.v1.services import gender_view_service_client -from google.ads.google_ads.v1.services import geographic_view_service_client -from google.ads.google_ads.v1.services import geo_target_constant_service_client -from google.ads.google_ads.v1.services import google_ads_field_service_client -from google.ads.google_ads.v1.services import google_ads_service_client -from google.ads.google_ads.v1.services import group_placement_view_service_client -from google.ads.google_ads.v1.services import hotel_group_view_service_client -from google.ads.google_ads.v1.services import hotel_performance_view_service_client -from google.ads.google_ads.v1.services import keyword_plan_ad_group_service_client -from google.ads.google_ads.v1.services import keyword_plan_campaign_service_client -from google.ads.google_ads.v1.services import keyword_plan_idea_service_client -from google.ads.google_ads.v1.services import keyword_plan_keyword_service_client -from google.ads.google_ads.v1.services import keyword_plan_negative_keyword_service_client -from google.ads.google_ads.v1.services import keyword_plan_service_client -from google.ads.google_ads.v1.services import keyword_view_service_client -from google.ads.google_ads.v1.services import label_service_client -from google.ads.google_ads.v1.services import landing_page_view_service_client -from google.ads.google_ads.v1.services import language_constant_service_client -from google.ads.google_ads.v1.services import location_view_service_client -from google.ads.google_ads.v1.services import managed_placement_view_service_client -from google.ads.google_ads.v1.services import media_file_service_client -from google.ads.google_ads.v1.services import merchant_center_link_service_client -from google.ads.google_ads.v1.services import mobile_app_category_constant_service_client -from google.ads.google_ads.v1.services import mobile_device_constant_service_client -from google.ads.google_ads.v1.services import mutate_job_service_client -from google.ads.google_ads.v1.services import operating_system_version_constant_service_client -from google.ads.google_ads.v1.services import paid_organic_search_term_view_service_client -from google.ads.google_ads.v1.services import parental_status_view_service_client -from google.ads.google_ads.v1.services import payments_account_service_client -from google.ads.google_ads.v1.services import product_bidding_category_constant_service_client -from google.ads.google_ads.v1.services import product_group_view_service_client -from google.ads.google_ads.v1.services import recommendation_service_client -from google.ads.google_ads.v1.services import remarketing_action_service_client -from google.ads.google_ads.v1.services import search_term_view_service_client -from google.ads.google_ads.v1.services import shared_criterion_service_client -from google.ads.google_ads.v1.services import shared_set_service_client -from google.ads.google_ads.v1.services import shopping_performance_view_service_client -from google.ads.google_ads.v1.services import topic_constant_service_client -from google.ads.google_ads.v1.services import topic_view_service_client -from google.ads.google_ads.v1.services import user_interest_service_client -from google.ads.google_ads.v1.services import user_list_service_client -from google.ads.google_ads.v1.services import video_service_client -from google.ads.google_ads.v1.services.transports import account_budget_proposal_service_grpc_transport -from google.ads.google_ads.v1.services.transports import account_budget_service_grpc_transport -from google.ads.google_ads.v1.services.transports import ad_group_ad_label_service_grpc_transport -from google.ads.google_ads.v1.services.transports import ad_group_ad_service_grpc_transport -from google.ads.google_ads.v1.services.transports import ad_group_audience_view_service_grpc_transport -from google.ads.google_ads.v1.services.transports import ad_group_bid_modifier_service_grpc_transport -from google.ads.google_ads.v1.services.transports import ad_group_criterion_label_service_grpc_transport -from google.ads.google_ads.v1.services.transports import ad_group_criterion_service_grpc_transport -from google.ads.google_ads.v1.services.transports import ad_group_criterion_simulation_service_grpc_transport -from google.ads.google_ads.v1.services.transports import ad_group_extension_setting_service_grpc_transport -from google.ads.google_ads.v1.services.transports import ad_group_feed_service_grpc_transport -from google.ads.google_ads.v1.services.transports import ad_group_label_service_grpc_transport -from google.ads.google_ads.v1.services.transports import ad_group_service_grpc_transport -from google.ads.google_ads.v1.services.transports import ad_group_simulation_service_grpc_transport -from google.ads.google_ads.v1.services.transports import ad_parameter_service_grpc_transport -from google.ads.google_ads.v1.services.transports import ad_schedule_view_service_grpc_transport -from google.ads.google_ads.v1.services.transports import age_range_view_service_grpc_transport -from google.ads.google_ads.v1.services.transports import asset_service_grpc_transport -from google.ads.google_ads.v1.services.transports import bidding_strategy_service_grpc_transport -from google.ads.google_ads.v1.services.transports import billing_setup_service_grpc_transport -from google.ads.google_ads.v1.services.transports import campaign_audience_view_service_grpc_transport -from google.ads.google_ads.v1.services.transports import campaign_bid_modifier_service_grpc_transport -from google.ads.google_ads.v1.services.transports import campaign_budget_service_grpc_transport -from google.ads.google_ads.v1.services.transports import campaign_criterion_service_grpc_transport -from google.ads.google_ads.v1.services.transports import campaign_criterion_simulation_service_grpc_transport -from google.ads.google_ads.v1.services.transports import campaign_draft_service_grpc_transport -from google.ads.google_ads.v1.services.transports import campaign_experiment_service_grpc_transport -from google.ads.google_ads.v1.services.transports import campaign_extension_setting_service_grpc_transport -from google.ads.google_ads.v1.services.transports import campaign_feed_service_grpc_transport -from google.ads.google_ads.v1.services.transports import campaign_label_service_grpc_transport -from google.ads.google_ads.v1.services.transports import campaign_service_grpc_transport -from google.ads.google_ads.v1.services.transports import campaign_shared_set_service_grpc_transport -from google.ads.google_ads.v1.services.transports import carrier_constant_service_grpc_transport -from google.ads.google_ads.v1.services.transports import change_status_service_grpc_transport -from google.ads.google_ads.v1.services.transports import click_view_service_grpc_transport -from google.ads.google_ads.v1.services.transports import conversion_action_service_grpc_transport -from google.ads.google_ads.v1.services.transports import conversion_adjustment_upload_service_grpc_transport -from google.ads.google_ads.v1.services.transports import conversion_upload_service_grpc_transport -from google.ads.google_ads.v1.services.transports import customer_client_link_service_grpc_transport -from google.ads.google_ads.v1.services.transports import customer_client_service_grpc_transport -from google.ads.google_ads.v1.services.transports import customer_extension_setting_service_grpc_transport -from google.ads.google_ads.v1.services.transports import customer_feed_service_grpc_transport -from google.ads.google_ads.v1.services.transports import customer_label_service_grpc_transport -from google.ads.google_ads.v1.services.transports import customer_manager_link_service_grpc_transport -from google.ads.google_ads.v1.services.transports import customer_negative_criterion_service_grpc_transport -from google.ads.google_ads.v1.services.transports import customer_service_grpc_transport -from google.ads.google_ads.v1.services.transports import custom_interest_service_grpc_transport -from google.ads.google_ads.v1.services.transports import detail_placement_view_service_grpc_transport -from google.ads.google_ads.v1.services.transports import display_keyword_view_service_grpc_transport -from google.ads.google_ads.v1.services.transports import domain_category_service_grpc_transport -from google.ads.google_ads.v1.services.transports import dynamic_search_ads_search_term_view_service_grpc_transport -from google.ads.google_ads.v1.services.transports import expanded_landing_page_view_service_grpc_transport -from google.ads.google_ads.v1.services.transports import extension_feed_item_service_grpc_transport -from google.ads.google_ads.v1.services.transports import feed_item_service_grpc_transport -from google.ads.google_ads.v1.services.transports import feed_item_target_service_grpc_transport -from google.ads.google_ads.v1.services.transports import feed_mapping_service_grpc_transport -from google.ads.google_ads.v1.services.transports import feed_placeholder_view_service_grpc_transport -from google.ads.google_ads.v1.services.transports import feed_service_grpc_transport -from google.ads.google_ads.v1.services.transports import gender_view_service_grpc_transport -from google.ads.google_ads.v1.services.transports import geographic_view_service_grpc_transport -from google.ads.google_ads.v1.services.transports import geo_target_constant_service_grpc_transport -from google.ads.google_ads.v1.services.transports import google_ads_field_service_grpc_transport -from google.ads.google_ads.v1.services.transports import google_ads_service_grpc_transport -from google.ads.google_ads.v1.services.transports import group_placement_view_service_grpc_transport -from google.ads.google_ads.v1.services.transports import hotel_group_view_service_grpc_transport -from google.ads.google_ads.v1.services.transports import hotel_performance_view_service_grpc_transport -from google.ads.google_ads.v1.services.transports import keyword_plan_ad_group_service_grpc_transport -from google.ads.google_ads.v1.services.transports import keyword_plan_campaign_service_grpc_transport -from google.ads.google_ads.v1.services.transports import keyword_plan_idea_service_grpc_transport -from google.ads.google_ads.v1.services.transports import keyword_plan_keyword_service_grpc_transport -from google.ads.google_ads.v1.services.transports import keyword_plan_negative_keyword_service_grpc_transport -from google.ads.google_ads.v1.services.transports import keyword_plan_service_grpc_transport -from google.ads.google_ads.v1.services.transports import keyword_view_service_grpc_transport -from google.ads.google_ads.v1.services.transports import label_service_grpc_transport -from google.ads.google_ads.v1.services.transports import landing_page_view_service_grpc_transport -from google.ads.google_ads.v1.services.transports import language_constant_service_grpc_transport -from google.ads.google_ads.v1.services.transports import location_view_service_grpc_transport -from google.ads.google_ads.v1.services.transports import managed_placement_view_service_grpc_transport -from google.ads.google_ads.v1.services.transports import media_file_service_grpc_transport -from google.ads.google_ads.v1.services.transports import merchant_center_link_service_grpc_transport -from google.ads.google_ads.v1.services.transports import mobile_app_category_constant_service_grpc_transport -from google.ads.google_ads.v1.services.transports import mobile_device_constant_service_grpc_transport -from google.ads.google_ads.v1.services.transports import mutate_job_service_grpc_transport -from google.ads.google_ads.v1.services.transports import operating_system_version_constant_service_grpc_transport -from google.ads.google_ads.v1.services.transports import paid_organic_search_term_view_service_grpc_transport -from google.ads.google_ads.v1.services.transports import parental_status_view_service_grpc_transport -from google.ads.google_ads.v1.services.transports import payments_account_service_grpc_transport -from google.ads.google_ads.v1.services.transports import product_bidding_category_constant_service_grpc_transport -from google.ads.google_ads.v1.services.transports import product_group_view_service_grpc_transport -from google.ads.google_ads.v1.services.transports import recommendation_service_grpc_transport -from google.ads.google_ads.v1.services.transports import remarketing_action_service_grpc_transport -from google.ads.google_ads.v1.services.transports import search_term_view_service_grpc_transport -from google.ads.google_ads.v1.services.transports import shared_criterion_service_grpc_transport -from google.ads.google_ads.v1.services.transports import shared_set_service_grpc_transport -from google.ads.google_ads.v1.services.transports import shopping_performance_view_service_grpc_transport -from google.ads.google_ads.v1.services.transports import topic_constant_service_grpc_transport -from google.ads.google_ads.v1.services.transports import topic_view_service_grpc_transport -from google.ads.google_ads.v1.services.transports import user_interest_service_grpc_transport -from google.ads.google_ads.v1.services.transports import user_list_service_grpc_transport -from google.ads.google_ads.v1.services.transports import video_service_grpc_transport - - -class AccountBudgetProposalServiceClient( - account_budget_proposal_service_client.AccountBudgetProposalServiceClient): - __doc__ = account_budget_proposal_service_client.AccountBudgetProposalServiceClient.__doc__ - enums = enums - - -class AccountBudgetServiceClient( - account_budget_service_client.AccountBudgetServiceClient): - __doc__ = account_budget_service_client.AccountBudgetServiceClient.__doc__ - enums = enums - - -class AdGroupAdLabelServiceClient( - ad_group_ad_label_service_client.AdGroupAdLabelServiceClient): - __doc__ = ad_group_ad_label_service_client.AdGroupAdLabelServiceClient.__doc__ - enums = enums - - -class AdGroupAdServiceClient( - ad_group_ad_service_client.AdGroupAdServiceClient): - __doc__ = ad_group_ad_service_client.AdGroupAdServiceClient.__doc__ - enums = enums - - -class AdGroupAudienceViewServiceClient( - ad_group_audience_view_service_client.AdGroupAudienceViewServiceClient): - __doc__ = ad_group_audience_view_service_client.AdGroupAudienceViewServiceClient.__doc__ - enums = enums - - -class AdGroupBidModifierServiceClient( - ad_group_bid_modifier_service_client.AdGroupBidModifierServiceClient): - __doc__ = ad_group_bid_modifier_service_client.AdGroupBidModifierServiceClient.__doc__ - enums = enums - - -class AdGroupCriterionLabelServiceClient( - ad_group_criterion_label_service_client.AdGroupCriterionLabelServiceClient): - __doc__ = ad_group_criterion_label_service_client.AdGroupCriterionLabelServiceClient.__doc__ - enums = enums - - -class AdGroupCriterionServiceClient( - ad_group_criterion_service_client.AdGroupCriterionServiceClient): - __doc__ = ad_group_criterion_service_client.AdGroupCriterionServiceClient.__doc__ - enums = enums - - -class AdGroupCriterionSimulationServiceClient( - ad_group_criterion_simulation_service_client.AdGroupCriterionSimulationServiceClient): - __doc__ = ad_group_criterion_simulation_service_client.AdGroupCriterionSimulationServiceClient.__doc__ - enums = enums - - -class AdGroupExtensionSettingServiceClient( - ad_group_extension_setting_service_client.AdGroupExtensionSettingServiceClient): - __doc__ = ad_group_extension_setting_service_client.AdGroupExtensionSettingServiceClient.__doc__ - enums = enums - - -class AdGroupFeedServiceClient( - ad_group_feed_service_client.AdGroupFeedServiceClient): - __doc__ = ad_group_feed_service_client.AdGroupFeedServiceClient.__doc__ - enums = enums - - -class AdGroupLabelServiceClient( - ad_group_label_service_client.AdGroupLabelServiceClient): - __doc__ = ad_group_label_service_client.AdGroupLabelServiceClient.__doc__ - enums = enums - - -class AdGroupServiceClient( - ad_group_service_client.AdGroupServiceClient): - __doc__ = ad_group_service_client.AdGroupServiceClient.__doc__ - enums = enums - - -class AdGroupSimulationServiceClient( - ad_group_simulation_service_client.AdGroupSimulationServiceClient): - __doc__ = ad_group_simulation_service_client.AdGroupSimulationServiceClient.__doc__ - enums = enums - - -class AdParameterServiceClient( - ad_parameter_service_client.AdParameterServiceClient): - __doc__ = ad_parameter_service_client.AdParameterServiceClient.__doc__ - enums = enums - - -class AdScheduleViewServiceClient( - ad_schedule_view_service_client.AdScheduleViewServiceClient): - __doc__ = ad_schedule_view_service_client.AdScheduleViewServiceClient.__doc__ - enums = enums - - -class AgeRangeViewServiceClient( - age_range_view_service_client.AgeRangeViewServiceClient): - __doc__ = age_range_view_service_client.AgeRangeViewServiceClient.__doc__ - enums = enums - - -class AssetServiceClient( - asset_service_client.AssetServiceClient): - __doc__ = asset_service_client.AssetServiceClient.__doc__ - enums = enums - - -class BiddingStrategyServiceClient( - bidding_strategy_service_client.BiddingStrategyServiceClient): - __doc__ = bidding_strategy_service_client.BiddingStrategyServiceClient.__doc__ - enums = enums - - -class BillingSetupServiceClient( - billing_setup_service_client.BillingSetupServiceClient): - __doc__ = billing_setup_service_client.BillingSetupServiceClient.__doc__ - enums = enums - - -class CampaignAudienceViewServiceClient( - campaign_audience_view_service_client.CampaignAudienceViewServiceClient): - __doc__ = campaign_audience_view_service_client.CampaignAudienceViewServiceClient.__doc__ - enums = enums - - -class CampaignBidModifierServiceClient( - campaign_bid_modifier_service_client.CampaignBidModifierServiceClient): - __doc__ = campaign_bid_modifier_service_client.CampaignBidModifierServiceClient.__doc__ - enums = enums - - -class CampaignBudgetServiceClient( - campaign_budget_service_client.CampaignBudgetServiceClient): - __doc__ = campaign_budget_service_client.CampaignBudgetServiceClient.__doc__ - enums = enums - - -class CampaignCriterionServiceClient( - campaign_criterion_service_client.CampaignCriterionServiceClient): - __doc__ = campaign_criterion_service_client.CampaignCriterionServiceClient.__doc__ - enums = enums - - -class CampaignCriterionSimulationServiceClient( - campaign_criterion_simulation_service_client.CampaignCriterionSimulationServiceClient): - __doc__ = campaign_criterion_simulation_service_client.CampaignCriterionSimulationServiceClient.__doc__ - enums = enums - - -class CampaignDraftServiceClient( - campaign_draft_service_client.CampaignDraftServiceClient): - __doc__ = campaign_draft_service_client.CampaignDraftServiceClient.__doc__ - enums = enums - - -class CampaignExperimentServiceClient( - campaign_experiment_service_client.CampaignExperimentServiceClient): - __doc__ = campaign_experiment_service_client.CampaignExperimentServiceClient.__doc__ - enums = enums - - -class CampaignExtensionSettingServiceClient( - campaign_extension_setting_service_client.CampaignExtensionSettingServiceClient): - __doc__ = campaign_extension_setting_service_client.CampaignExtensionSettingServiceClient.__doc__ - enums = enums - - -class CampaignFeedServiceClient( - campaign_feed_service_client.CampaignFeedServiceClient): - __doc__ = campaign_feed_service_client.CampaignFeedServiceClient.__doc__ - enums = enums - - -class CampaignLabelServiceClient( - campaign_label_service_client.CampaignLabelServiceClient): - __doc__ = campaign_label_service_client.CampaignLabelServiceClient.__doc__ - enums = enums - - -class CampaignServiceClient( - campaign_service_client.CampaignServiceClient): - __doc__ = campaign_service_client.CampaignServiceClient.__doc__ - enums = enums - - -class CampaignSharedSetServiceClient( - campaign_shared_set_service_client.CampaignSharedSetServiceClient): - __doc__ = campaign_shared_set_service_client.CampaignSharedSetServiceClient.__doc__ - enums = enums - - -class CarrierConstantServiceClient( - carrier_constant_service_client.CarrierConstantServiceClient): - __doc__ = carrier_constant_service_client.CarrierConstantServiceClient.__doc__ - enums = enums - - -class ChangeStatusServiceClient( - change_status_service_client.ChangeStatusServiceClient): - __doc__ = change_status_service_client.ChangeStatusServiceClient.__doc__ - enums = enums - - -class ClickViewServiceClient( - click_view_service_client.ClickViewServiceClient): - __doc__ = click_view_service_client.ClickViewServiceClient.__doc__ - enums = enums - - -class ConversionActionServiceClient( - conversion_action_service_client.ConversionActionServiceClient): - __doc__ = conversion_action_service_client.ConversionActionServiceClient.__doc__ - enums = enums - - -class ConversionAdjustmentUploadServiceClient( - conversion_adjustment_upload_service_client.ConversionAdjustmentUploadServiceClient): - __doc__ = conversion_adjustment_upload_service_client.ConversionAdjustmentUploadServiceClient.__doc__ - enums = enums - - -class ConversionUploadServiceClient( - conversion_upload_service_client.ConversionUploadServiceClient): - __doc__ = conversion_upload_service_client.ConversionUploadServiceClient.__doc__ - enums = enums - - -class CustomerClientLinkServiceClient( - customer_client_link_service_client.CustomerClientLinkServiceClient): - __doc__ = customer_client_link_service_client.CustomerClientLinkServiceClient.__doc__ - enums = enums - - -class CustomerClientServiceClient( - customer_client_service_client.CustomerClientServiceClient): - __doc__ = customer_client_service_client.CustomerClientServiceClient.__doc__ - enums = enums - - -class CustomerExtensionSettingServiceClient( - customer_extension_setting_service_client.CustomerExtensionSettingServiceClient): - __doc__ = customer_extension_setting_service_client.CustomerExtensionSettingServiceClient.__doc__ - enums = enums - - -class CustomerFeedServiceClient( - customer_feed_service_client.CustomerFeedServiceClient): - __doc__ = customer_feed_service_client.CustomerFeedServiceClient.__doc__ - enums = enums - - -class CustomerLabelServiceClient( - customer_label_service_client.CustomerLabelServiceClient): - __doc__ = customer_label_service_client.CustomerLabelServiceClient.__doc__ - enums = enums - - -class CustomerManagerLinkServiceClient( - customer_manager_link_service_client.CustomerManagerLinkServiceClient): - __doc__ = customer_manager_link_service_client.CustomerManagerLinkServiceClient.__doc__ - enums = enums - - -class CustomerNegativeCriterionServiceClient( - customer_negative_criterion_service_client.CustomerNegativeCriterionServiceClient): - __doc__ = customer_negative_criterion_service_client.CustomerNegativeCriterionServiceClient.__doc__ - enums = enums - - -class CustomerServiceClient( - customer_service_client.CustomerServiceClient): - __doc__ = customer_service_client.CustomerServiceClient.__doc__ - enums = enums - - -class CustomInterestServiceClient( - custom_interest_service_client.CustomInterestServiceClient): - __doc__ = custom_interest_service_client.CustomInterestServiceClient.__doc__ - enums = enums - - -class DetailPlacementViewServiceClient( - detail_placement_view_service_client.DetailPlacementViewServiceClient): - __doc__ = detail_placement_view_service_client.DetailPlacementViewServiceClient.__doc__ - enums = enums - - -class DisplayKeywordViewServiceClient( - display_keyword_view_service_client.DisplayKeywordViewServiceClient): - __doc__ = display_keyword_view_service_client.DisplayKeywordViewServiceClient.__doc__ - enums = enums - - -class DomainCategoryServiceClient( - domain_category_service_client.DomainCategoryServiceClient): - __doc__ = domain_category_service_client.DomainCategoryServiceClient.__doc__ - enums = enums - - -class DynamicSearchAdsSearchTermViewServiceClient( - dynamic_search_ads_search_term_view_service_client.DynamicSearchAdsSearchTermViewServiceClient): - __doc__ = dynamic_search_ads_search_term_view_service_client.DynamicSearchAdsSearchTermViewServiceClient.__doc__ - enums = enums - - -class ExpandedLandingPageViewServiceClient( - expanded_landing_page_view_service_client.ExpandedLandingPageViewServiceClient): - __doc__ = expanded_landing_page_view_service_client.ExpandedLandingPageViewServiceClient.__doc__ - enums = enums - - -class ExtensionFeedItemServiceClient( - extension_feed_item_service_client.ExtensionFeedItemServiceClient): - __doc__ = extension_feed_item_service_client.ExtensionFeedItemServiceClient.__doc__ - enums = enums - - -class FeedItemServiceClient( - feed_item_service_client.FeedItemServiceClient): - __doc__ = feed_item_service_client.FeedItemServiceClient.__doc__ - enums = enums - - -class FeedItemTargetServiceClient( - feed_item_target_service_client.FeedItemTargetServiceClient): - __doc__ = feed_item_target_service_client.FeedItemTargetServiceClient.__doc__ - enums = enums - - -class FeedMappingServiceClient( - feed_mapping_service_client.FeedMappingServiceClient): - __doc__ = feed_mapping_service_client.FeedMappingServiceClient.__doc__ - enums = enums - - -class FeedPlaceholderViewServiceClient( - feed_placeholder_view_service_client.FeedPlaceholderViewServiceClient): - __doc__ = feed_placeholder_view_service_client.FeedPlaceholderViewServiceClient.__doc__ - enums = enums - - -class FeedServiceClient( - feed_service_client.FeedServiceClient): - __doc__ = feed_service_client.FeedServiceClient.__doc__ - enums = enums - - -class GenderViewServiceClient( - gender_view_service_client.GenderViewServiceClient): - __doc__ = gender_view_service_client.GenderViewServiceClient.__doc__ - enums = enums - - -class GeographicViewServiceClient( - geographic_view_service_client.GeographicViewServiceClient): - __doc__ = geographic_view_service_client.GeographicViewServiceClient.__doc__ - enums = enums - - -class GeoTargetConstantServiceClient( - geo_target_constant_service_client.GeoTargetConstantServiceClient): - __doc__ = geo_target_constant_service_client.GeoTargetConstantServiceClient.__doc__ - enums = enums - - -class GoogleAdsFieldServiceClient( - google_ads_field_service_client.GoogleAdsFieldServiceClient): - __doc__ = google_ads_field_service_client.GoogleAdsFieldServiceClient.__doc__ - enums = enums - - -class GoogleAdsServiceClient( - google_ads_service_client.GoogleAdsServiceClient): - __doc__ = google_ads_service_client.GoogleAdsServiceClient.__doc__ - enums = enums - - -class GroupPlacementViewServiceClient( - group_placement_view_service_client.GroupPlacementViewServiceClient): - __doc__ = group_placement_view_service_client.GroupPlacementViewServiceClient.__doc__ - enums = enums - - -class HotelGroupViewServiceClient( - hotel_group_view_service_client.HotelGroupViewServiceClient): - __doc__ = hotel_group_view_service_client.HotelGroupViewServiceClient.__doc__ - enums = enums - - -class HotelPerformanceViewServiceClient( - hotel_performance_view_service_client.HotelPerformanceViewServiceClient): - __doc__ = hotel_performance_view_service_client.HotelPerformanceViewServiceClient.__doc__ - enums = enums - - -class KeywordPlanAdGroupServiceClient( - keyword_plan_ad_group_service_client.KeywordPlanAdGroupServiceClient): - __doc__ = keyword_plan_ad_group_service_client.KeywordPlanAdGroupServiceClient.__doc__ - enums = enums - - -class KeywordPlanCampaignServiceClient( - keyword_plan_campaign_service_client.KeywordPlanCampaignServiceClient): - __doc__ = keyword_plan_campaign_service_client.KeywordPlanCampaignServiceClient.__doc__ - enums = enums - - -class KeywordPlanIdeaServiceClient( - keyword_plan_idea_service_client.KeywordPlanIdeaServiceClient): - __doc__ = keyword_plan_idea_service_client.KeywordPlanIdeaServiceClient.__doc__ - enums = enums - - -class KeywordPlanKeywordServiceClient( - keyword_plan_keyword_service_client.KeywordPlanKeywordServiceClient): - __doc__ = keyword_plan_keyword_service_client.KeywordPlanKeywordServiceClient.__doc__ - enums = enums - - -class KeywordPlanNegativeKeywordServiceClient( - keyword_plan_negative_keyword_service_client.KeywordPlanNegativeKeywordServiceClient): - __doc__ = keyword_plan_negative_keyword_service_client.KeywordPlanNegativeKeywordServiceClient.__doc__ - enums = enums - - -class KeywordPlanServiceClient( - keyword_plan_service_client.KeywordPlanServiceClient): - __doc__ = keyword_plan_service_client.KeywordPlanServiceClient.__doc__ - enums = enums - - -class KeywordViewServiceClient( - keyword_view_service_client.KeywordViewServiceClient): - __doc__ = keyword_view_service_client.KeywordViewServiceClient.__doc__ - enums = enums - - -class LabelServiceClient( - label_service_client.LabelServiceClient): - __doc__ = label_service_client.LabelServiceClient.__doc__ - enums = enums - - -class LandingPageViewServiceClient( - landing_page_view_service_client.LandingPageViewServiceClient): - __doc__ = landing_page_view_service_client.LandingPageViewServiceClient.__doc__ - enums = enums - - -class LanguageConstantServiceClient( - language_constant_service_client.LanguageConstantServiceClient): - __doc__ = language_constant_service_client.LanguageConstantServiceClient.__doc__ - enums = enums - - -class LocationViewServiceClient( - location_view_service_client.LocationViewServiceClient): - __doc__ = location_view_service_client.LocationViewServiceClient.__doc__ - enums = enums - - -class ManagedPlacementViewServiceClient( - managed_placement_view_service_client.ManagedPlacementViewServiceClient): - __doc__ = managed_placement_view_service_client.ManagedPlacementViewServiceClient.__doc__ - enums = enums - - -class MediaFileServiceClient( - media_file_service_client.MediaFileServiceClient): - __doc__ = media_file_service_client.MediaFileServiceClient.__doc__ - enums = enums - - -class MerchantCenterLinkServiceClient( - merchant_center_link_service_client.MerchantCenterLinkServiceClient): - __doc__ = merchant_center_link_service_client.MerchantCenterLinkServiceClient.__doc__ - enums = enums - - -class MobileAppCategoryConstantServiceClient( - mobile_app_category_constant_service_client.MobileAppCategoryConstantServiceClient): - __doc__ = mobile_app_category_constant_service_client.MobileAppCategoryConstantServiceClient.__doc__ - enums = enums - - -class MobileDeviceConstantServiceClient( - mobile_device_constant_service_client.MobileDeviceConstantServiceClient): - __doc__ = mobile_device_constant_service_client.MobileDeviceConstantServiceClient.__doc__ - enums = enums - - -class MutateJobServiceClient( - mutate_job_service_client.MutateJobServiceClient): - __doc__ = mutate_job_service_client.MutateJobServiceClient.__doc__ - enums = enums - - -class OperatingSystemVersionConstantServiceClient( - operating_system_version_constant_service_client.OperatingSystemVersionConstantServiceClient): - __doc__ = operating_system_version_constant_service_client.OperatingSystemVersionConstantServiceClient.__doc__ - enums = enums - - -class PaidOrganicSearchTermViewServiceClient( - paid_organic_search_term_view_service_client.PaidOrganicSearchTermViewServiceClient): - __doc__ = paid_organic_search_term_view_service_client.PaidOrganicSearchTermViewServiceClient.__doc__ - enums = enums - - -class ParentalStatusViewServiceClient( - parental_status_view_service_client.ParentalStatusViewServiceClient): - __doc__ = parental_status_view_service_client.ParentalStatusViewServiceClient.__doc__ - enums = enums - - -class PaymentsAccountServiceClient( - payments_account_service_client.PaymentsAccountServiceClient): - __doc__ = payments_account_service_client.PaymentsAccountServiceClient.__doc__ - enums = enums - - -class ProductBiddingCategoryConstantServiceClient( - product_bidding_category_constant_service_client.ProductBiddingCategoryConstantServiceClient): - __doc__ = product_bidding_category_constant_service_client.ProductBiddingCategoryConstantServiceClient.__doc__ - enums = enums - - -class ProductGroupViewServiceClient( - product_group_view_service_client.ProductGroupViewServiceClient): - __doc__ = product_group_view_service_client.ProductGroupViewServiceClient.__doc__ - enums = enums - - -class RecommendationServiceClient( - recommendation_service_client.RecommendationServiceClient): - __doc__ = recommendation_service_client.RecommendationServiceClient.__doc__ - enums = enums - - -class RemarketingActionServiceClient( - remarketing_action_service_client.RemarketingActionServiceClient): - __doc__ = remarketing_action_service_client.RemarketingActionServiceClient.__doc__ - enums = enums - - -class SearchTermViewServiceClient( - search_term_view_service_client.SearchTermViewServiceClient): - __doc__ = search_term_view_service_client.SearchTermViewServiceClient.__doc__ - enums = enums - - -class SharedCriterionServiceClient( - shared_criterion_service_client.SharedCriterionServiceClient): - __doc__ = shared_criterion_service_client.SharedCriterionServiceClient.__doc__ - enums = enums - - -class SharedSetServiceClient( - shared_set_service_client.SharedSetServiceClient): - __doc__ = shared_set_service_client.SharedSetServiceClient.__doc__ - enums = enums - - -class ShoppingPerformanceViewServiceClient( - shopping_performance_view_service_client.ShoppingPerformanceViewServiceClient): - __doc__ = shopping_performance_view_service_client.ShoppingPerformanceViewServiceClient.__doc__ - enums = enums - - -class TopicConstantServiceClient( - topic_constant_service_client.TopicConstantServiceClient): - __doc__ = topic_constant_service_client.TopicConstantServiceClient.__doc__ - enums = enums - - -class TopicViewServiceClient( - topic_view_service_client.TopicViewServiceClient): - __doc__ = topic_view_service_client.TopicViewServiceClient.__doc__ - enums = enums - - -class UserInterestServiceClient( - user_interest_service_client.UserInterestServiceClient): - __doc__ = user_interest_service_client.UserInterestServiceClient.__doc__ - enums = enums - - -class UserListServiceClient( - user_list_service_client.UserListServiceClient): - __doc__ = user_list_service_client.UserListServiceClient.__doc__ - enums = enums - - -class VideoServiceClient( - video_service_client.VideoServiceClient): - __doc__ = video_service_client.VideoServiceClient.__doc__ - enums = enums - - -class AccountBudgetProposalServiceGrpcTransport( - account_budget_proposal_service_grpc_transport.AccountBudgetProposalServiceGrpcTransport): - __doc__ = account_budget_proposal_service_grpc_transport.AccountBudgetProposalServiceGrpcTransport.__doc__ - - -class AccountBudgetServiceGrpcTransport( - account_budget_service_grpc_transport.AccountBudgetServiceGrpcTransport): - __doc__ = account_budget_service_grpc_transport.AccountBudgetServiceGrpcTransport.__doc__ - - -class AdGroupAdLabelServiceGrpcTransport( - ad_group_ad_label_service_grpc_transport.AdGroupAdLabelServiceGrpcTransport): - __doc__ = ad_group_ad_label_service_grpc_transport.AdGroupAdLabelServiceGrpcTransport.__doc__ - - -class AdGroupAdServiceGrpcTransport( - ad_group_ad_service_grpc_transport.AdGroupAdServiceGrpcTransport): - __doc__ = ad_group_ad_service_grpc_transport.AdGroupAdServiceGrpcTransport.__doc__ - - -class AdGroupAudienceViewServiceGrpcTransport( - ad_group_audience_view_service_grpc_transport.AdGroupAudienceViewServiceGrpcTransport): - __doc__ = ad_group_audience_view_service_grpc_transport.AdGroupAudienceViewServiceGrpcTransport.__doc__ - - -class AdGroupBidModifierServiceGrpcTransport( - ad_group_bid_modifier_service_grpc_transport.AdGroupBidModifierServiceGrpcTransport): - __doc__ = ad_group_bid_modifier_service_grpc_transport.AdGroupBidModifierServiceGrpcTransport.__doc__ - - -class AdGroupCriterionLabelServiceGrpcTransport( - ad_group_criterion_label_service_grpc_transport.AdGroupCriterionLabelServiceGrpcTransport): - __doc__ = ad_group_criterion_label_service_grpc_transport.AdGroupCriterionLabelServiceGrpcTransport.__doc__ - - -class AdGroupCriterionServiceGrpcTransport( - ad_group_criterion_service_grpc_transport.AdGroupCriterionServiceGrpcTransport): - __doc__ = ad_group_criterion_service_grpc_transport.AdGroupCriterionServiceGrpcTransport.__doc__ - - -class AdGroupCriterionSimulationServiceGrpcTransport( - ad_group_criterion_simulation_service_grpc_transport.AdGroupCriterionSimulationServiceGrpcTransport): - __doc__ = ad_group_criterion_simulation_service_grpc_transport.AdGroupCriterionSimulationServiceGrpcTransport.__doc__ - - -class AdGroupExtensionSettingServiceGrpcTransport( - ad_group_extension_setting_service_grpc_transport.AdGroupExtensionSettingServiceGrpcTransport): - __doc__ = ad_group_extension_setting_service_grpc_transport.AdGroupExtensionSettingServiceGrpcTransport.__doc__ - - -class AdGroupFeedServiceGrpcTransport( - ad_group_feed_service_grpc_transport.AdGroupFeedServiceGrpcTransport): - __doc__ = ad_group_feed_service_grpc_transport.AdGroupFeedServiceGrpcTransport.__doc__ - - -class AdGroupLabelServiceGrpcTransport( - ad_group_label_service_grpc_transport.AdGroupLabelServiceGrpcTransport): - __doc__ = ad_group_label_service_grpc_transport.AdGroupLabelServiceGrpcTransport.__doc__ - - -class AdGroupServiceGrpcTransport( - ad_group_service_grpc_transport.AdGroupServiceGrpcTransport): - __doc__ = ad_group_service_grpc_transport.AdGroupServiceGrpcTransport.__doc__ - - -class AdGroupSimulationServiceGrpcTransport( - ad_group_simulation_service_grpc_transport.AdGroupSimulationServiceGrpcTransport): - __doc__ = ad_group_simulation_service_grpc_transport.AdGroupSimulationServiceGrpcTransport.__doc__ - - -class AdParameterServiceGrpcTransport( - ad_parameter_service_grpc_transport.AdParameterServiceGrpcTransport): - __doc__ = ad_parameter_service_grpc_transport.AdParameterServiceGrpcTransport.__doc__ - - -class AdScheduleViewServiceGrpcTransport( - ad_schedule_view_service_grpc_transport.AdScheduleViewServiceGrpcTransport): - __doc__ = ad_schedule_view_service_grpc_transport.AdScheduleViewServiceGrpcTransport.__doc__ - - -class AgeRangeViewServiceGrpcTransport( - age_range_view_service_grpc_transport.AgeRangeViewServiceGrpcTransport): - __doc__ = age_range_view_service_grpc_transport.AgeRangeViewServiceGrpcTransport.__doc__ - - -class AssetServiceGrpcTransport( - asset_service_grpc_transport.AssetServiceGrpcTransport): - __doc__ = asset_service_grpc_transport.AssetServiceGrpcTransport.__doc__ - - -class BiddingStrategyServiceGrpcTransport( - bidding_strategy_service_grpc_transport.BiddingStrategyServiceGrpcTransport): - __doc__ = bidding_strategy_service_grpc_transport.BiddingStrategyServiceGrpcTransport.__doc__ - - -class BillingSetupServiceGrpcTransport( - billing_setup_service_grpc_transport.BillingSetupServiceGrpcTransport): - __doc__ = billing_setup_service_grpc_transport.BillingSetupServiceGrpcTransport.__doc__ - - -class CampaignAudienceViewServiceGrpcTransport( - campaign_audience_view_service_grpc_transport.CampaignAudienceViewServiceGrpcTransport): - __doc__ = campaign_audience_view_service_grpc_transport.CampaignAudienceViewServiceGrpcTransport.__doc__ - - -class CampaignBidModifierServiceGrpcTransport( - campaign_bid_modifier_service_grpc_transport.CampaignBidModifierServiceGrpcTransport): - __doc__ = campaign_bid_modifier_service_grpc_transport.CampaignBidModifierServiceGrpcTransport.__doc__ - - -class CampaignBudgetServiceGrpcTransport( - campaign_budget_service_grpc_transport.CampaignBudgetServiceGrpcTransport): - __doc__ = campaign_budget_service_grpc_transport.CampaignBudgetServiceGrpcTransport.__doc__ - - -class CampaignCriterionServiceGrpcTransport( - campaign_criterion_service_grpc_transport.CampaignCriterionServiceGrpcTransport): - __doc__ = campaign_criterion_service_grpc_transport.CampaignCriterionServiceGrpcTransport.__doc__ - - -class CampaignCriterionSimulationServiceGrpcTransport( - campaign_criterion_simulation_service_grpc_transport.CampaignCriterionSimulationServiceGrpcTransport): - __doc__ = campaign_criterion_simulation_service_grpc_transport.CampaignCriterionSimulationServiceGrpcTransport.__doc__ - - -class CampaignDraftServiceGrpcTransport( - campaign_draft_service_grpc_transport.CampaignDraftServiceGrpcTransport): - __doc__ = campaign_draft_service_grpc_transport.CampaignDraftServiceGrpcTransport.__doc__ - - -class CampaignExperimentServiceGrpcTransport( - campaign_experiment_service_grpc_transport.CampaignExperimentServiceGrpcTransport): - __doc__ = campaign_experiment_service_grpc_transport.CampaignExperimentServiceGrpcTransport.__doc__ - - -class CampaignExtensionSettingServiceGrpcTransport( - campaign_extension_setting_service_grpc_transport.CampaignExtensionSettingServiceGrpcTransport): - __doc__ = campaign_extension_setting_service_grpc_transport.CampaignExtensionSettingServiceGrpcTransport.__doc__ - - -class CampaignFeedServiceGrpcTransport( - campaign_feed_service_grpc_transport.CampaignFeedServiceGrpcTransport): - __doc__ = campaign_feed_service_grpc_transport.CampaignFeedServiceGrpcTransport.__doc__ - - -class CampaignLabelServiceGrpcTransport( - campaign_label_service_grpc_transport.CampaignLabelServiceGrpcTransport): - __doc__ = campaign_label_service_grpc_transport.CampaignLabelServiceGrpcTransport.__doc__ - - -class CampaignServiceGrpcTransport( - campaign_service_grpc_transport.CampaignServiceGrpcTransport): - __doc__ = campaign_service_grpc_transport.CampaignServiceGrpcTransport.__doc__ - - -class CampaignSharedSetServiceGrpcTransport( - campaign_shared_set_service_grpc_transport.CampaignSharedSetServiceGrpcTransport): - __doc__ = campaign_shared_set_service_grpc_transport.CampaignSharedSetServiceGrpcTransport.__doc__ - - -class CarrierConstantServiceGrpcTransport( - carrier_constant_service_grpc_transport.CarrierConstantServiceGrpcTransport): - __doc__ = carrier_constant_service_grpc_transport.CarrierConstantServiceGrpcTransport.__doc__ - - -class ChangeStatusServiceGrpcTransport( - change_status_service_grpc_transport.ChangeStatusServiceGrpcTransport): - __doc__ = change_status_service_grpc_transport.ChangeStatusServiceGrpcTransport.__doc__ - - -class ClickViewServiceGrpcTransport( - click_view_service_grpc_transport.ClickViewServiceGrpcTransport): - __doc__ = click_view_service_grpc_transport.ClickViewServiceGrpcTransport.__doc__ - - -class ConversionActionServiceGrpcTransport( - conversion_action_service_grpc_transport.ConversionActionServiceGrpcTransport): - __doc__ = conversion_action_service_grpc_transport.ConversionActionServiceGrpcTransport.__doc__ - - -class ConversionAdjustmentUploadServiceGrpcTransport( - conversion_adjustment_upload_service_grpc_transport.ConversionAdjustmentUploadServiceGrpcTransport): - __doc__ = conversion_adjustment_upload_service_grpc_transport.ConversionAdjustmentUploadServiceGrpcTransport.__doc__ - - -class ConversionUploadServiceGrpcTransport( - conversion_upload_service_grpc_transport.ConversionUploadServiceGrpcTransport): - __doc__ = conversion_upload_service_grpc_transport.ConversionUploadServiceGrpcTransport.__doc__ - - -class CustomerClientLinkServiceGrpcTransport( - customer_client_link_service_grpc_transport.CustomerClientLinkServiceGrpcTransport): - __doc__ = customer_client_link_service_grpc_transport.CustomerClientLinkServiceGrpcTransport.__doc__ - - -class CustomerClientServiceGrpcTransport( - customer_client_service_grpc_transport.CustomerClientServiceGrpcTransport): - __doc__ = customer_client_service_grpc_transport.CustomerClientServiceGrpcTransport.__doc__ - - -class CustomerExtensionSettingServiceGrpcTransport( - customer_extension_setting_service_grpc_transport.CustomerExtensionSettingServiceGrpcTransport): - __doc__ = customer_extension_setting_service_grpc_transport.CustomerExtensionSettingServiceGrpcTransport.__doc__ - - -class CustomerFeedServiceGrpcTransport( - customer_feed_service_grpc_transport.CustomerFeedServiceGrpcTransport): - __doc__ = customer_feed_service_grpc_transport.CustomerFeedServiceGrpcTransport.__doc__ - - -class CustomerLabelServiceGrpcTransport( - customer_label_service_grpc_transport.CustomerLabelServiceGrpcTransport): - __doc__ = customer_label_service_grpc_transport.CustomerLabelServiceGrpcTransport.__doc__ - - -class CustomerManagerLinkServiceGrpcTransport( - customer_manager_link_service_grpc_transport.CustomerManagerLinkServiceGrpcTransport): - __doc__ = customer_manager_link_service_grpc_transport.CustomerManagerLinkServiceGrpcTransport.__doc__ - - -class CustomerNegativeCriterionServiceGrpcTransport( - customer_negative_criterion_service_grpc_transport.CustomerNegativeCriterionServiceGrpcTransport): - __doc__ = customer_negative_criterion_service_grpc_transport.CustomerNegativeCriterionServiceGrpcTransport.__doc__ - - -class CustomerServiceGrpcTransport( - customer_service_grpc_transport.CustomerServiceGrpcTransport): - __doc__ = customer_service_grpc_transport.CustomerServiceGrpcTransport.__doc__ - - -class CustomInterestServiceGrpcTransport( - custom_interest_service_grpc_transport.CustomInterestServiceGrpcTransport): - __doc__ = custom_interest_service_grpc_transport.CustomInterestServiceGrpcTransport.__doc__ - - -class DetailPlacementViewServiceGrpcTransport( - detail_placement_view_service_grpc_transport.DetailPlacementViewServiceGrpcTransport): - __doc__ = detail_placement_view_service_grpc_transport.DetailPlacementViewServiceGrpcTransport.__doc__ - - -class DisplayKeywordViewServiceGrpcTransport( - display_keyword_view_service_grpc_transport.DisplayKeywordViewServiceGrpcTransport): - __doc__ = display_keyword_view_service_grpc_transport.DisplayKeywordViewServiceGrpcTransport.__doc__ - - -class DomainCategoryServiceGrpcTransport( - domain_category_service_grpc_transport.DomainCategoryServiceGrpcTransport): - __doc__ = domain_category_service_grpc_transport.DomainCategoryServiceGrpcTransport.__doc__ - - -class DynamicSearchAdsSearchTermViewServiceGrpcTransport( - dynamic_search_ads_search_term_view_service_grpc_transport.DynamicSearchAdsSearchTermViewServiceGrpcTransport): - __doc__ = dynamic_search_ads_search_term_view_service_grpc_transport.DynamicSearchAdsSearchTermViewServiceGrpcTransport.__doc__ - - -class ExpandedLandingPageViewServiceGrpcTransport( - expanded_landing_page_view_service_grpc_transport.ExpandedLandingPageViewServiceGrpcTransport): - __doc__ = expanded_landing_page_view_service_grpc_transport.ExpandedLandingPageViewServiceGrpcTransport.__doc__ - - -class ExtensionFeedItemServiceGrpcTransport( - extension_feed_item_service_grpc_transport.ExtensionFeedItemServiceGrpcTransport): - __doc__ = extension_feed_item_service_grpc_transport.ExtensionFeedItemServiceGrpcTransport.__doc__ - - -class FeedItemServiceGrpcTransport( - feed_item_service_grpc_transport.FeedItemServiceGrpcTransport): - __doc__ = feed_item_service_grpc_transport.FeedItemServiceGrpcTransport.__doc__ - - -class FeedItemTargetServiceGrpcTransport( - feed_item_target_service_grpc_transport.FeedItemTargetServiceGrpcTransport): - __doc__ = feed_item_target_service_grpc_transport.FeedItemTargetServiceGrpcTransport.__doc__ - - -class FeedMappingServiceGrpcTransport( - feed_mapping_service_grpc_transport.FeedMappingServiceGrpcTransport): - __doc__ = feed_mapping_service_grpc_transport.FeedMappingServiceGrpcTransport.__doc__ - - -class FeedPlaceholderViewServiceGrpcTransport( - feed_placeholder_view_service_grpc_transport.FeedPlaceholderViewServiceGrpcTransport): - __doc__ = feed_placeholder_view_service_grpc_transport.FeedPlaceholderViewServiceGrpcTransport.__doc__ - - -class FeedServiceGrpcTransport( - feed_service_grpc_transport.FeedServiceGrpcTransport): - __doc__ = feed_service_grpc_transport.FeedServiceGrpcTransport.__doc__ - - -class GenderViewServiceGrpcTransport( - gender_view_service_grpc_transport.GenderViewServiceGrpcTransport): - __doc__ = gender_view_service_grpc_transport.GenderViewServiceGrpcTransport.__doc__ - - -class GeographicViewServiceGrpcTransport( - geographic_view_service_grpc_transport.GeographicViewServiceGrpcTransport): - __doc__ = geographic_view_service_grpc_transport.GeographicViewServiceGrpcTransport.__doc__ - - -class GeoTargetConstantServiceGrpcTransport( - geo_target_constant_service_grpc_transport.GeoTargetConstantServiceGrpcTransport): - __doc__ = geo_target_constant_service_grpc_transport.GeoTargetConstantServiceGrpcTransport.__doc__ - - -class GoogleAdsFieldServiceGrpcTransport( - google_ads_field_service_grpc_transport.GoogleAdsFieldServiceGrpcTransport): - __doc__ = google_ads_field_service_grpc_transport.GoogleAdsFieldServiceGrpcTransport.__doc__ - - -class GoogleAdsServiceGrpcTransport( - google_ads_service_grpc_transport.GoogleAdsServiceGrpcTransport): - __doc__ = google_ads_service_grpc_transport.GoogleAdsServiceGrpcTransport.__doc__ - - -class GroupPlacementViewServiceGrpcTransport( - group_placement_view_service_grpc_transport.GroupPlacementViewServiceGrpcTransport): - __doc__ = group_placement_view_service_grpc_transport.GroupPlacementViewServiceGrpcTransport.__doc__ - - -class HotelGroupViewServiceGrpcTransport( - hotel_group_view_service_grpc_transport.HotelGroupViewServiceGrpcTransport): - __doc__ = hotel_group_view_service_grpc_transport.HotelGroupViewServiceGrpcTransport.__doc__ - - -class HotelPerformanceViewServiceGrpcTransport( - hotel_performance_view_service_grpc_transport.HotelPerformanceViewServiceGrpcTransport): - __doc__ = hotel_performance_view_service_grpc_transport.HotelPerformanceViewServiceGrpcTransport.__doc__ - - -class KeywordPlanAdGroupServiceGrpcTransport( - keyword_plan_ad_group_service_grpc_transport.KeywordPlanAdGroupServiceGrpcTransport): - __doc__ = keyword_plan_ad_group_service_grpc_transport.KeywordPlanAdGroupServiceGrpcTransport.__doc__ - - -class KeywordPlanCampaignServiceGrpcTransport( - keyword_plan_campaign_service_grpc_transport.KeywordPlanCampaignServiceGrpcTransport): - __doc__ = keyword_plan_campaign_service_grpc_transport.KeywordPlanCampaignServiceGrpcTransport.__doc__ - - -class KeywordPlanIdeaServiceGrpcTransport( - keyword_plan_idea_service_grpc_transport.KeywordPlanIdeaServiceGrpcTransport): - __doc__ = keyword_plan_idea_service_grpc_transport.KeywordPlanIdeaServiceGrpcTransport.__doc__ - - -class KeywordPlanKeywordServiceGrpcTransport( - keyword_plan_keyword_service_grpc_transport.KeywordPlanKeywordServiceGrpcTransport): - __doc__ = keyword_plan_keyword_service_grpc_transport.KeywordPlanKeywordServiceGrpcTransport.__doc__ - - -class KeywordPlanNegativeKeywordServiceGrpcTransport( - keyword_plan_negative_keyword_service_grpc_transport.KeywordPlanNegativeKeywordServiceGrpcTransport): - __doc__ = keyword_plan_negative_keyword_service_grpc_transport.KeywordPlanNegativeKeywordServiceGrpcTransport.__doc__ - - -class KeywordPlanServiceGrpcTransport( - keyword_plan_service_grpc_transport.KeywordPlanServiceGrpcTransport): - __doc__ = keyword_plan_service_grpc_transport.KeywordPlanServiceGrpcTransport.__doc__ - - -class KeywordViewServiceGrpcTransport( - keyword_view_service_grpc_transport.KeywordViewServiceGrpcTransport): - __doc__ = keyword_view_service_grpc_transport.KeywordViewServiceGrpcTransport.__doc__ - - -class LabelServiceGrpcTransport( - label_service_grpc_transport.LabelServiceGrpcTransport): - __doc__ = label_service_grpc_transport.LabelServiceGrpcTransport.__doc__ - - -class LandingPageViewServiceGrpcTransport( - landing_page_view_service_grpc_transport.LandingPageViewServiceGrpcTransport): - __doc__ = landing_page_view_service_grpc_transport.LandingPageViewServiceGrpcTransport.__doc__ - - -class LanguageConstantServiceGrpcTransport( - language_constant_service_grpc_transport.LanguageConstantServiceGrpcTransport): - __doc__ = language_constant_service_grpc_transport.LanguageConstantServiceGrpcTransport.__doc__ - - -class LocationViewServiceGrpcTransport( - location_view_service_grpc_transport.LocationViewServiceGrpcTransport): - __doc__ = location_view_service_grpc_transport.LocationViewServiceGrpcTransport.__doc__ - - -class ManagedPlacementViewServiceGrpcTransport( - managed_placement_view_service_grpc_transport.ManagedPlacementViewServiceGrpcTransport): - __doc__ = managed_placement_view_service_grpc_transport.ManagedPlacementViewServiceGrpcTransport.__doc__ - - -class MediaFileServiceGrpcTransport( - media_file_service_grpc_transport.MediaFileServiceGrpcTransport): - __doc__ = media_file_service_grpc_transport.MediaFileServiceGrpcTransport.__doc__ - - -class MerchantCenterLinkServiceGrpcTransport( - merchant_center_link_service_grpc_transport.MerchantCenterLinkServiceGrpcTransport): - __doc__ = merchant_center_link_service_grpc_transport.MerchantCenterLinkServiceGrpcTransport.__doc__ - - -class MobileAppCategoryConstantServiceGrpcTransport( - mobile_app_category_constant_service_grpc_transport.MobileAppCategoryConstantServiceGrpcTransport): - __doc__ = mobile_app_category_constant_service_grpc_transport.MobileAppCategoryConstantServiceGrpcTransport.__doc__ - - -class MobileDeviceConstantServiceGrpcTransport( - mobile_device_constant_service_grpc_transport.MobileDeviceConstantServiceGrpcTransport): - __doc__ = mobile_device_constant_service_grpc_transport.MobileDeviceConstantServiceGrpcTransport.__doc__ - - -class MutateJobServiceGrpcTransport( - mutate_job_service_grpc_transport.MutateJobServiceGrpcTransport): - __doc__ = mutate_job_service_grpc_transport.MutateJobServiceGrpcTransport.__doc__ - - -class OperatingSystemVersionConstantServiceGrpcTransport( - operating_system_version_constant_service_grpc_transport.OperatingSystemVersionConstantServiceGrpcTransport): - __doc__ = operating_system_version_constant_service_grpc_transport.OperatingSystemVersionConstantServiceGrpcTransport.__doc__ - - -class PaidOrganicSearchTermViewServiceGrpcTransport( - paid_organic_search_term_view_service_grpc_transport.PaidOrganicSearchTermViewServiceGrpcTransport): - __doc__ = paid_organic_search_term_view_service_grpc_transport.PaidOrganicSearchTermViewServiceGrpcTransport.__doc__ - - -class ParentalStatusViewServiceGrpcTransport( - parental_status_view_service_grpc_transport.ParentalStatusViewServiceGrpcTransport): - __doc__ = parental_status_view_service_grpc_transport.ParentalStatusViewServiceGrpcTransport.__doc__ - - -class PaymentsAccountServiceGrpcTransport( - payments_account_service_grpc_transport.PaymentsAccountServiceGrpcTransport): - __doc__ = payments_account_service_grpc_transport.PaymentsAccountServiceGrpcTransport.__doc__ - - -class ProductBiddingCategoryConstantServiceGrpcTransport( - product_bidding_category_constant_service_grpc_transport.ProductBiddingCategoryConstantServiceGrpcTransport): - __doc__ = product_bidding_category_constant_service_grpc_transport.ProductBiddingCategoryConstantServiceGrpcTransport.__doc__ - - -class ProductGroupViewServiceGrpcTransport( - product_group_view_service_grpc_transport.ProductGroupViewServiceGrpcTransport): - __doc__ = product_group_view_service_grpc_transport.ProductGroupViewServiceGrpcTransport.__doc__ - - -class RecommendationServiceGrpcTransport( - recommendation_service_grpc_transport.RecommendationServiceGrpcTransport): - __doc__ = recommendation_service_grpc_transport.RecommendationServiceGrpcTransport.__doc__ - - -class RemarketingActionServiceGrpcTransport( - remarketing_action_service_grpc_transport.RemarketingActionServiceGrpcTransport): - __doc__ = remarketing_action_service_grpc_transport.RemarketingActionServiceGrpcTransport.__doc__ - - -class SearchTermViewServiceGrpcTransport( - search_term_view_service_grpc_transport.SearchTermViewServiceGrpcTransport): - __doc__ = search_term_view_service_grpc_transport.SearchTermViewServiceGrpcTransport.__doc__ - - -class SharedCriterionServiceGrpcTransport( - shared_criterion_service_grpc_transport.SharedCriterionServiceGrpcTransport): - __doc__ = shared_criterion_service_grpc_transport.SharedCriterionServiceGrpcTransport.__doc__ - - -class SharedSetServiceGrpcTransport( - shared_set_service_grpc_transport.SharedSetServiceGrpcTransport): - __doc__ = shared_set_service_grpc_transport.SharedSetServiceGrpcTransport.__doc__ - - -class ShoppingPerformanceViewServiceGrpcTransport( - shopping_performance_view_service_grpc_transport.ShoppingPerformanceViewServiceGrpcTransport): - __doc__ = shopping_performance_view_service_grpc_transport.ShoppingPerformanceViewServiceGrpcTransport.__doc__ - - -class TopicConstantServiceGrpcTransport( - topic_constant_service_grpc_transport.TopicConstantServiceGrpcTransport): - __doc__ = topic_constant_service_grpc_transport.TopicConstantServiceGrpcTransport.__doc__ - - -class TopicViewServiceGrpcTransport( - topic_view_service_grpc_transport.TopicViewServiceGrpcTransport): - __doc__ = topic_view_service_grpc_transport.TopicViewServiceGrpcTransport.__doc__ - - -class UserInterestServiceGrpcTransport( - user_interest_service_grpc_transport.UserInterestServiceGrpcTransport): - __doc__ = user_interest_service_grpc_transport.UserInterestServiceGrpcTransport.__doc__ - - -class UserListServiceGrpcTransport( - user_list_service_grpc_transport.UserListServiceGrpcTransport): - __doc__ = user_list_service_grpc_transport.UserListServiceGrpcTransport.__doc__ - - -class VideoServiceGrpcTransport( - video_service_grpc_transport.VideoServiceGrpcTransport): - __doc__ = video_service_grpc_transport.VideoServiceGrpcTransport.__doc__ - - -__all__ = ( - 'enums', - 'types', - 'AccountBudgetProposalServiceClient', - 'AccountBudgetServiceClient', - 'AdGroupAdLabelServiceClient', - 'AdGroupAdServiceClient', - 'AdGroupAudienceViewServiceClient', - 'AdGroupBidModifierServiceClient', - 'AdGroupCriterionLabelServiceClient', - 'AdGroupCriterionServiceClient', - 'AdGroupCriterionSimulationServiceClient', - 'AdGroupExtensionSettingServiceClient', - 'AdGroupFeedServiceClient', - 'AdGroupLabelServiceClient', - 'AdGroupServiceClient', - 'AdGroupSimulationServiceClient', - 'AdParameterServiceClient', - 'AdScheduleViewServiceClient', - 'AgeRangeViewServiceClient', - 'AssetServiceClient', - 'BiddingStrategyServiceClient', - 'BillingSetupServiceClient', - 'CampaignAudienceViewServiceClient', - 'CampaignBidModifierServiceClient', - 'CampaignBudgetServiceClient', - 'CampaignCriterionServiceClient', - 'CampaignCriterionSimulationServiceClient', - 'CampaignDraftServiceClient', - 'CampaignExperimentServiceClient', - 'CampaignExtensionSettingServiceClient', - 'CampaignFeedServiceClient', - 'CampaignLabelServiceClient', - 'CampaignServiceClient', - 'CampaignSharedSetServiceClient', - 'CarrierConstantServiceClient', - 'ChangeStatusServiceClient', - 'ClickViewServiceClient', - 'ConversionActionServiceClient', - 'ConversionAdjustmentUploadServiceClient', - 'ConversionUploadServiceClient', - 'CustomerClientLinkServiceClient', - 'CustomerClientServiceClient', - 'CustomerExtensionSettingServiceClient', - 'CustomerFeedServiceClient', - 'CustomerLabelServiceClient', - 'CustomerManagerLinkServiceClient', - 'CustomerNegativeCriterionServiceClient', - 'CustomerServiceClient', - 'CustomInterestServiceClient', - 'DetailPlacementViewServiceClient', - 'DisplayKeywordViewServiceClient', - 'DomainCategoryServiceClient', - 'DynamicSearchAdsSearchTermViewServiceClient', - 'ExpandedLandingPageViewServiceClient', - 'ExtensionFeedItemServiceClient', - 'FeedItemServiceClient', - 'FeedItemTargetServiceClient', - 'FeedMappingServiceClient', - 'FeedPlaceholderViewServiceClient', - 'FeedServiceClient', - 'GenderViewServiceClient', - 'GeographicViewServiceClient', - 'GeoTargetConstantServiceClient', - 'GoogleAdsFieldServiceClient', - 'GoogleAdsServiceClient', - 'GroupPlacementViewServiceClient', - 'HotelGroupViewServiceClient', - 'HotelPerformanceViewServiceClient', - 'KeywordPlanAdGroupServiceClient', - 'KeywordPlanCampaignServiceClient', - 'KeywordPlanIdeaServiceClient', - 'KeywordPlanKeywordServiceClient', - 'KeywordPlanNegativeKeywordServiceClient', - 'KeywordPlanServiceClient', - 'KeywordViewServiceClient', - 'LabelServiceClient', - 'LandingPageViewServiceClient', - 'LanguageConstantServiceClient', - 'LocationViewServiceClient', - 'ManagedPlacementViewServiceClient', - 'MediaFileServiceClient', - 'MerchantCenterLinkServiceClient', - 'MobileAppCategoryConstantServiceClient', - 'MobileDeviceConstantServiceClient', - 'MutateJobServiceClient', - 'OperatingSystemVersionConstantServiceClient', - 'PaidOrganicSearchTermViewServiceClient', - 'ParentalStatusViewServiceClient', - 'PaymentsAccountServiceClient', - 'ProductBiddingCategoryConstantServiceClient', - 'ProductGroupViewServiceClient', - 'RecommendationServiceClient', - 'RemarketingActionServiceClient', - 'SearchTermViewServiceClient', - 'SharedCriterionServiceClient', - 'SharedSetServiceClient', - 'ShoppingPerformanceViewServiceClient', - 'TopicConstantServiceClient', - 'TopicViewServiceClient', - 'UserInterestServiceClient', - 'UserListServiceClient', - 'VideoServiceClient', - 'AccountBudgetProposalServiceGrpcTransport', - 'AccountBudgetServiceGrpcTransport', - 'AdGroupAdLabelServiceGrpcTransport', - 'AdGroupAdServiceGrpcTransport', - 'AdGroupAudienceViewServiceGrpcTransport', - 'AdGroupBidModifierServiceGrpcTransport', - 'AdGroupCriterionLabelServiceGrpcTransport', - 'AdGroupCriterionServiceGrpcTransport', - 'AdGroupCriterionSimulationServiceGrpcTransport', - 'AdGroupExtensionSettingServiceGrpcTransport', - 'AdGroupFeedServiceGrpcTransport', - 'AdGroupLabelServiceGrpcTransport', - 'AdGroupServiceGrpcTransport', - 'AdGroupSimulationServiceGrpcTransport', - 'AdParameterServiceGrpcTransport', - 'AdScheduleViewServiceGrpcTransport', - 'AgeRangeViewServiceGrpcTransport', - 'AssetServiceGrpcTransport', - 'BiddingStrategyServiceGrpcTransport', - 'BillingSetupServiceGrpcTransport', - 'CampaignAudienceViewServiceGrpcTransport', - 'CampaignBidModifierServiceGrpcTransport', - 'CampaignBudgetServiceGrpcTransport', - 'CampaignCriterionServiceGrpcTransport', - 'CampaignCriterionSimulationServiceGrpcTransport', - 'CampaignDraftServiceGrpcTransport', - 'CampaignExperimentServiceGrpcTransport', - 'CampaignExtensionSettingServiceGrpcTransport', - 'CampaignFeedServiceGrpcTransport', - 'CampaignLabelServiceGrpcTransport', - 'CampaignServiceGrpcTransport', - 'CampaignSharedSetServiceGrpcTransport', - 'CarrierConstantServiceGrpcTransport', - 'ChangeStatusServiceGrpcTransport', - 'ClickViewServiceGrpcTransport', - 'ConversionActionServiceGrpcTransport', - 'ConversionAdjustmentUploadServiceGrpcTransport', - 'ConversionUploadServiceGrpcTransport', - 'CustomerClientLinkServiceGrpcTransport', - 'CustomerClientServiceGrpcTransport', - 'CustomerExtensionSettingServiceGrpcTransport', - 'CustomerFeedServiceGrpcTransport', - 'CustomerLabelServiceGrpcTransport', - 'CustomerManagerLinkServiceGrpcTransport', - 'CustomerNegativeCriterionServiceGrpcTransport', - 'CustomerServiceGrpcTransport', - 'CustomInterestServiceGrpcTransport', - 'DetailPlacementViewServiceGrpcTransport', - 'DisplayKeywordViewServiceGrpcTransport', - 'DomainCategoryServiceGrpcTransport', - 'DynamicSearchAdsSearchTermViewServiceGrpcTransport', - 'ExpandedLandingPageViewServiceGrpcTransport', - 'ExtensionFeedItemServiceGrpcTransport', - 'FeedItemServiceGrpcTransport', - 'FeedItemTargetServiceGrpcTransport', - 'FeedMappingServiceGrpcTransport', - 'FeedPlaceholderViewServiceGrpcTransport', - 'FeedServiceGrpcTransport', - 'GenderViewServiceGrpcTransport', - 'GeographicViewServiceGrpcTransport', - 'GeoTargetConstantServiceGrpcTransport', - 'GoogleAdsFieldServiceGrpcTransport', - 'GoogleAdsServiceGrpcTransport', - 'GroupPlacementViewServiceGrpcTransport', - 'HotelGroupViewServiceGrpcTransport', - 'HotelPerformanceViewServiceGrpcTransport', - 'KeywordPlanAdGroupServiceGrpcTransport', - 'KeywordPlanCampaignServiceGrpcTransport', - 'KeywordPlanIdeaServiceGrpcTransport', - 'KeywordPlanKeywordServiceGrpcTransport', - 'KeywordPlanNegativeKeywordServiceGrpcTransport', - 'KeywordPlanServiceGrpcTransport', - 'KeywordViewServiceGrpcTransport', - 'LabelServiceGrpcTransport', - 'LandingPageViewServiceGrpcTransport', - 'LanguageConstantServiceGrpcTransport', - 'LocationViewServiceGrpcTransport', - 'ManagedPlacementViewServiceGrpcTransport', - 'MediaFileServiceGrpcTransport', - 'MerchantCenterLinkServiceGrpcTransport', - 'MobileAppCategoryConstantServiceGrpcTransport', - 'MobileDeviceConstantServiceGrpcTransport', - 'MutateJobServiceGrpcTransport', - 'OperatingSystemVersionConstantServiceGrpcTransport', - 'PaidOrganicSearchTermViewServiceGrpcTransport', - 'ParentalStatusViewServiceGrpcTransport', - 'PaymentsAccountServiceGrpcTransport', - 'ProductBiddingCategoryConstantServiceGrpcTransport', - 'ProductGroupViewServiceGrpcTransport', - 'RecommendationServiceGrpcTransport', - 'RemarketingActionServiceGrpcTransport', - 'SearchTermViewServiceGrpcTransport', - 'SharedCriterionServiceGrpcTransport', - 'SharedSetServiceGrpcTransport', - 'ShoppingPerformanceViewServiceGrpcTransport', - 'TopicConstantServiceGrpcTransport', - 'TopicViewServiceGrpcTransport', - 'UserInterestServiceGrpcTransport', - 'UserListServiceGrpcTransport', - 'VideoServiceGrpcTransport', -) diff --git a/google/ads/google_ads/v1/proto/common/ad_type_infos_pb2.py b/google/ads/google_ads/v1/proto/common/ad_type_infos_pb2.py deleted file mode 100644 index bae3cbba9..000000000 --- a/google/ads/google_ads/v1/proto/common/ad_type_infos_pb2.py +++ /dev/null @@ -1,2332 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/common/ad_type_infos.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.ads.google_ads.v1.proto.common import ad_asset_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_ad__asset__pb2 -from google.ads.google_ads.v1.proto.enums import call_conversion_reporting_state_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_call__conversion__reporting__state__pb2 -from google.ads.google_ads.v1.proto.enums import display_ad_format_setting_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_display__ad__format__setting__pb2 -from google.ads.google_ads.v1.proto.enums import display_upload_product_type_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_display__upload__product__type__pb2 -from google.ads.google_ads.v1.proto.enums import legacy_app_install_ad_app_store_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_legacy__app__install__ad__app__store__pb2 -from google.ads.google_ads.v1.proto.enums import mime_type_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_mime__type__pb2 -from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/common/ad_type_infos.proto', - package='google.ads.googleads.v1.common', - syntax='proto3', - serialized_options=_b('\n\"com.google.ads.googleads.v1.commonB\020AdTypeInfosProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/common;common\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V1.Common\312\002\036Google\\Ads\\GoogleAds\\V1\\Common\352\002\"Google::Ads::GoogleAds::V1::Common'), - serialized_pb=_b('\n8google/ads/googleads_v1/proto/common/ad_type_infos.proto\x12\x1egoogle.ads.googleads.v1.common\x1a\x33google/ads/googleads_v1/proto/common/ad_asset.proto\x1aIgoogle/ads/googleads_v1/proto/enums/call_conversion_reporting_state.proto\x1a\x43google/ads/googleads_v1/proto/enums/display_ad_format_setting.proto\x1a\x45google/ads/googleads_v1/proto/enums/display_upload_product_type.proto\x1aIgoogle/ads/googleads_v1/proto/enums/legacy_app_install_ad_app_store.proto\x1a\x33google/ads/googleads_v1/proto/enums/mime_type.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1cgoogle/api/annotations.proto\"\xa4\x01\n\nTextAdInfo\x12.\n\x08headline\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x32\n\x0c\x64\x65scription1\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x32\n\x0c\x64\x65scription2\x18\x03 \x01(\x0b\x32\x1c.google.protobuf.StringValue\"\xf7\x02\n\x12\x45xpandedTextAdInfo\x12\x34\n\x0eheadline_part1\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x34\n\x0eheadline_part2\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x34\n\x0eheadline_part3\x18\x06 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x31\n\x0b\x64\x65scription\x18\x03 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x32\n\x0c\x64\x65scription2\x18\x07 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12+\n\x05path1\x18\x04 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12+\n\x05path2\x18\x05 \x01(\x0b\x32\x1c.google.protobuf.StringValue\"\xe7\x05\n\x0e\x43\x61llOnlyAdInfo\x12\x32\n\x0c\x63ountry_code\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x32\n\x0cphone_number\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x33\n\rbusiness_name\x18\x03 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12/\n\theadline1\x18\x0b \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12/\n\theadline2\x18\x0c \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x32\n\x0c\x64\x65scription1\x18\x04 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x32\n\x0c\x64\x65scription2\x18\x05 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x30\n\x0c\x63\x61ll_tracked\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.BoolValue\x12;\n\x17\x64isable_call_conversion\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.BoolValue\x12\x43\n\x1dphone_number_verification_url\x18\x08 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x37\n\x11\x63onversion_action\x18\t \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x80\x01\n\x1a\x63onversion_reporting_state\x18\n \x01(\x0e\x32\\.google.ads.googleads.v1.enums.CallConversionReportingStateEnum.CallConversionReportingState\"P\n\x1b\x45xpandedDynamicSearchAdInfo\x12\x31\n\x0b\x64\x65scription\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\"\r\n\x0bHotelAdInfo\"\x15\n\x13ShoppingSmartAdInfo\"\x17\n\x15ShoppingProductAdInfo\"Q\n\x1fShoppingComparisonListingAdInfo\x12.\n\x08headline\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\"\xa9\x04\n\x0bGmailAdInfo\x12;\n\x06teaser\x18\x01 \x01(\x0b\x32+.google.ads.googleads.v1.common.GmailTeaser\x12\x32\n\x0cheader_image\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x35\n\x0fmarketing_image\x18\x03 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12>\n\x18marketing_image_headline\x18\x04 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x41\n\x1bmarketing_image_description\x18\x05 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x63\n&marketing_image_display_call_to_action\x18\x06 \x01(\x0b\x32\x33.google.ads.googleads.v1.common.DisplayCallToAction\x12\x44\n\x0eproduct_images\x18\x07 \x03(\x0b\x32,.google.ads.googleads.v1.common.ProductImage\x12\x44\n\x0eproduct_videos\x18\x08 \x03(\x0b\x32,.google.ads.googleads.v1.common.ProductVideo\"\xd7\x01\n\x0bGmailTeaser\x12.\n\x08headline\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x31\n\x0b\x64\x65scription\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x33\n\rbusiness_name\x18\x03 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x30\n\nlogo_image\x18\x04 \x01(\x0b\x32\x1c.google.protobuf.StringValue\"\xac\x01\n\x13\x44isplayCallToAction\x12*\n\x04text\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x30\n\ntext_color\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x37\n\x11url_collection_id\x18\x03 \x01(\x0b\x32\x1c.google.protobuf.StringValue\"\xcb\x01\n\x0cProductImage\x12\x33\n\rproduct_image\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x31\n\x0b\x64\x65scription\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12S\n\x16\x64isplay_call_to_action\x18\x03 \x01(\x0b\x32\x33.google.ads.googleads.v1.common.DisplayCallToAction\"C\n\x0cProductVideo\x12\x33\n\rproduct_video\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\"\xf1\x04\n\x0bImageAdInfo\x12\x30\n\x0bpixel_width\x18\x04 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x31\n\x0cpixel_height\x18\x05 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12/\n\timage_url\x18\x06 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x38\n\x13preview_pixel_width\x18\x07 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x39\n\x14preview_pixel_height\x18\x08 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x37\n\x11preview_image_url\x18\t \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12G\n\tmime_type\x18\n \x01(\x0e\x32\x34.google.ads.googleads.v1.enums.MimeTypeEnum.MimeType\x12*\n\x04name\x18\x0b \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x32\n\nmedia_file\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValueH\x00\x12+\n\x04\x64\x61ta\x18\x02 \x01(\x0b\x32\x1b.google.protobuf.BytesValueH\x00\x12?\n\x18\x61\x64_id_to_copy_image_from\x18\x03 \x01(\x0b\x32\x1b.google.protobuf.Int64ValueH\x00\x42\x07\n\x05image\"\x1b\n\x19VideoBumperInStreamAdInfo\"!\n\x1fVideoNonSkippableInStreamAdInfo\"\xc7\x01\n\x1bVideoTrueViewInStreamAdInfo\x12\x39\n\x13\x61\x63tion_button_label\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x35\n\x0f\x61\x63tion_headline\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x36\n\x10\x63ompanion_banner\x18\x03 \x01(\x0b\x32\x1c.google.protobuf.StringValue\"y\n\x14VideoOutstreamAdInfo\x12.\n\x08headline\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x31\n\x0b\x64\x65scription\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValue\"\x8e\x03\n\x0bVideoAdInfo\x12\x30\n\nmedia_file\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12P\n\tin_stream\x18\x02 \x01(\x0b\x32;.google.ads.googleads.v1.common.VideoTrueViewInStreamAdInfoH\x00\x12K\n\x06\x62umper\x18\x03 \x01(\x0b\x32\x39.google.ads.googleads.v1.common.VideoBumperInStreamAdInfoH\x00\x12J\n\nout_stream\x18\x04 \x01(\x0b\x32\x34.google.ads.googleads.v1.common.VideoOutstreamAdInfoH\x00\x12X\n\rnon_skippable\x18\x05 \x01(\x0b\x32?.google.ads.googleads.v1.common.VideoNonSkippableInStreamAdInfoH\x00\x42\x08\n\x06\x66ormat\"\xf5\x01\n\x16ResponsiveSearchAdInfo\x12>\n\theadlines\x18\x01 \x03(\x0b\x32+.google.ads.googleads.v1.common.AdTextAsset\x12\x41\n\x0c\x64\x65scriptions\x18\x02 \x03(\x0b\x32+.google.ads.googleads.v1.common.AdTextAsset\x12+\n\x05path1\x18\x03 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12+\n\x05path2\x18\x04 \x01(\x0b\x32\x1c.google.protobuf.StringValue\"\xfd\x06\n\x1dLegacyResponsiveDisplayAdInfo\x12\x34\n\x0eshort_headline\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x33\n\rlong_headline\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x31\n\x0b\x64\x65scription\x18\x03 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x33\n\rbusiness_name\x18\x04 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x38\n\x14\x61llow_flexible_color\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.BoolValue\x12\x32\n\x0c\x61\x63\x63\x65nt_color\x18\x06 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x30\n\nmain_color\x18\x07 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x39\n\x13\x63\x61ll_to_action_text\x18\x08 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x30\n\nlogo_image\x18\t \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x37\n\x11square_logo_image\x18\n \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x35\n\x0fmarketing_image\x18\x0b \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12<\n\x16square_marketing_image\x18\x0c \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12h\n\x0e\x66ormat_setting\x18\r \x01(\x0e\x32P.google.ads.googleads.v1.enums.DisplayAdFormatSettingEnum.DisplayAdFormatSetting\x12\x32\n\x0cprice_prefix\x18\x0e \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x30\n\npromo_text\x18\x0f \x01(\x0b\x32\x1c.google.protobuf.StringValue\"\xab\x03\n\tAppAdInfo\x12\x46\n\x11mandatory_ad_text\x18\x01 \x01(\x0b\x32+.google.ads.googleads.v1.common.AdTextAsset\x12>\n\theadlines\x18\x02 \x03(\x0b\x32+.google.ads.googleads.v1.common.AdTextAsset\x12\x41\n\x0c\x64\x65scriptions\x18\x03 \x03(\x0b\x32+.google.ads.googleads.v1.common.AdTextAsset\x12<\n\x06images\x18\x04 \x03(\x0b\x32,.google.ads.googleads.v1.common.AdImageAsset\x12\x44\n\x0eyoutube_videos\x18\x05 \x03(\x0b\x32,.google.ads.googleads.v1.common.AdVideoAsset\x12O\n\x13html5_media_bundles\x18\x06 \x03(\x0b\x32\x32.google.ads.googleads.v1.common.AdMediaBundleAsset\"\x94\x02\n\x13\x41ppEngagementAdInfo\x12>\n\theadlines\x18\x01 \x03(\x0b\x32+.google.ads.googleads.v1.common.AdTextAsset\x12\x41\n\x0c\x64\x65scriptions\x18\x02 \x03(\x0b\x32+.google.ads.googleads.v1.common.AdTextAsset\x12<\n\x06images\x18\x03 \x03(\x0b\x32,.google.ads.googleads.v1.common.AdImageAsset\x12<\n\x06videos\x18\x04 \x03(\x0b\x32,.google.ads.googleads.v1.common.AdVideoAsset\"\xcb\x02\n\x16LegacyAppInstallAdInfo\x12,\n\x06\x61pp_id\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12k\n\tapp_store\x18\x02 \x01(\x0e\x32X.google.ads.googleads.v1.enums.LegacyAppInstallAdAppStoreEnum.LegacyAppInstallAdAppStore\x12.\n\x08headline\x18\x03 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x32\n\x0c\x64\x65scription1\x18\x04 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x32\n\x0c\x64\x65scription2\x18\x05 \x01(\x0b\x32\x1c.google.protobuf.StringValue\"\xaa\x08\n\x17ResponsiveDisplayAdInfo\x12\x46\n\x10marketing_images\x18\x01 \x03(\x0b\x32,.google.ads.googleads.v1.common.AdImageAsset\x12M\n\x17square_marketing_images\x18\x02 \x03(\x0b\x32,.google.ads.googleads.v1.common.AdImageAsset\x12\x41\n\x0blogo_images\x18\x03 \x03(\x0b\x32,.google.ads.googleads.v1.common.AdImageAsset\x12H\n\x12square_logo_images\x18\x04 \x03(\x0b\x32,.google.ads.googleads.v1.common.AdImageAsset\x12>\n\theadlines\x18\x05 \x03(\x0b\x32+.google.ads.googleads.v1.common.AdTextAsset\x12\x42\n\rlong_headline\x18\x06 \x01(\x0b\x32+.google.ads.googleads.v1.common.AdTextAsset\x12\x41\n\x0c\x64\x65scriptions\x18\x07 \x03(\x0b\x32+.google.ads.googleads.v1.common.AdTextAsset\x12\x44\n\x0eyoutube_videos\x18\x08 \x03(\x0b\x32,.google.ads.googleads.v1.common.AdVideoAsset\x12\x33\n\rbusiness_name\x18\t \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x30\n\nmain_color\x18\n \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x32\n\x0c\x61\x63\x63\x65nt_color\x18\x0b \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x38\n\x14\x61llow_flexible_color\x18\x0c \x01(\x0b\x32\x1a.google.protobuf.BoolValue\x12\x39\n\x13\x63\x61ll_to_action_text\x18\r \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x32\n\x0cprice_prefix\x18\x0e \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x30\n\npromo_text\x18\x0f \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12h\n\x0e\x66ormat_setting\x18\x10 \x01(\x0e\x32P.google.ads.googleads.v1.enums.DisplayAdFormatSettingEnum.DisplayAdFormatSetting\"\xeb\x01\n\x13\x44isplayUploadAdInfo\x12y\n\x1b\x64isplay_upload_product_type\x18\x01 \x01(\x0e\x32T.google.ads.googleads.v1.enums.DisplayUploadProductTypeEnum.DisplayUploadProductType\x12J\n\x0cmedia_bundle\x18\x02 \x01(\x0b\x32\x32.google.ads.googleads.v1.common.AdMediaBundleAssetH\x00\x42\r\n\x0bmedia_assetB\xeb\x01\n\"com.google.ads.googleads.v1.commonB\x10\x41\x64TypeInfosProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/common;common\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V1.Common\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V1\\Common\xea\x02\"Google::Ads::GoogleAds::V1::Commonb\x06proto3') - , - dependencies=[google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_ad__asset__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_call__conversion__reporting__state__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_display__ad__format__setting__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_display__upload__product__type__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_legacy__app__install__ad__app__store__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_mime__type__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - - -_TEXTADINFO = _descriptor.Descriptor( - name='TextAdInfo', - full_name='google.ads.googleads.v1.common.TextAdInfo', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='headline', full_name='google.ads.googleads.v1.common.TextAdInfo.headline', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='description1', full_name='google.ads.googleads.v1.common.TextAdInfo.description1', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='description2', full_name='google.ads.googleads.v1.common.TextAdInfo.description2', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=551, - serialized_end=715, -) - - -_EXPANDEDTEXTADINFO = _descriptor.Descriptor( - name='ExpandedTextAdInfo', - full_name='google.ads.googleads.v1.common.ExpandedTextAdInfo', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='headline_part1', full_name='google.ads.googleads.v1.common.ExpandedTextAdInfo.headline_part1', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='headline_part2', full_name='google.ads.googleads.v1.common.ExpandedTextAdInfo.headline_part2', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='headline_part3', full_name='google.ads.googleads.v1.common.ExpandedTextAdInfo.headline_part3', index=2, - number=6, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='description', full_name='google.ads.googleads.v1.common.ExpandedTextAdInfo.description', index=3, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='description2', full_name='google.ads.googleads.v1.common.ExpandedTextAdInfo.description2', index=4, - number=7, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='path1', full_name='google.ads.googleads.v1.common.ExpandedTextAdInfo.path1', index=5, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='path2', full_name='google.ads.googleads.v1.common.ExpandedTextAdInfo.path2', index=6, - number=5, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=718, - serialized_end=1093, -) - - -_CALLONLYADINFO = _descriptor.Descriptor( - name='CallOnlyAdInfo', - full_name='google.ads.googleads.v1.common.CallOnlyAdInfo', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='country_code', full_name='google.ads.googleads.v1.common.CallOnlyAdInfo.country_code', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='phone_number', full_name='google.ads.googleads.v1.common.CallOnlyAdInfo.phone_number', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='business_name', full_name='google.ads.googleads.v1.common.CallOnlyAdInfo.business_name', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='headline1', full_name='google.ads.googleads.v1.common.CallOnlyAdInfo.headline1', index=3, - number=11, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='headline2', full_name='google.ads.googleads.v1.common.CallOnlyAdInfo.headline2', index=4, - number=12, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='description1', full_name='google.ads.googleads.v1.common.CallOnlyAdInfo.description1', index=5, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='description2', full_name='google.ads.googleads.v1.common.CallOnlyAdInfo.description2', index=6, - number=5, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='call_tracked', full_name='google.ads.googleads.v1.common.CallOnlyAdInfo.call_tracked', index=7, - number=6, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='disable_call_conversion', full_name='google.ads.googleads.v1.common.CallOnlyAdInfo.disable_call_conversion', index=8, - number=7, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='phone_number_verification_url', full_name='google.ads.googleads.v1.common.CallOnlyAdInfo.phone_number_verification_url', index=9, - number=8, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='conversion_action', full_name='google.ads.googleads.v1.common.CallOnlyAdInfo.conversion_action', index=10, - number=9, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='conversion_reporting_state', full_name='google.ads.googleads.v1.common.CallOnlyAdInfo.conversion_reporting_state', index=11, - number=10, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1096, - serialized_end=1839, -) - - -_EXPANDEDDYNAMICSEARCHADINFO = _descriptor.Descriptor( - name='ExpandedDynamicSearchAdInfo', - full_name='google.ads.googleads.v1.common.ExpandedDynamicSearchAdInfo', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='description', full_name='google.ads.googleads.v1.common.ExpandedDynamicSearchAdInfo.description', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1841, - serialized_end=1921, -) - - -_HOTELADINFO = _descriptor.Descriptor( - name='HotelAdInfo', - full_name='google.ads.googleads.v1.common.HotelAdInfo', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1923, - serialized_end=1936, -) - - -_SHOPPINGSMARTADINFO = _descriptor.Descriptor( - name='ShoppingSmartAdInfo', - full_name='google.ads.googleads.v1.common.ShoppingSmartAdInfo', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1938, - serialized_end=1959, -) - - -_SHOPPINGPRODUCTADINFO = _descriptor.Descriptor( - name='ShoppingProductAdInfo', - full_name='google.ads.googleads.v1.common.ShoppingProductAdInfo', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1961, - serialized_end=1984, -) - - -_SHOPPINGCOMPARISONLISTINGADINFO = _descriptor.Descriptor( - name='ShoppingComparisonListingAdInfo', - full_name='google.ads.googleads.v1.common.ShoppingComparisonListingAdInfo', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='headline', full_name='google.ads.googleads.v1.common.ShoppingComparisonListingAdInfo.headline', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1986, - serialized_end=2067, -) - - -_GMAILADINFO = _descriptor.Descriptor( - name='GmailAdInfo', - full_name='google.ads.googleads.v1.common.GmailAdInfo', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='teaser', full_name='google.ads.googleads.v1.common.GmailAdInfo.teaser', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='header_image', full_name='google.ads.googleads.v1.common.GmailAdInfo.header_image', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='marketing_image', full_name='google.ads.googleads.v1.common.GmailAdInfo.marketing_image', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='marketing_image_headline', full_name='google.ads.googleads.v1.common.GmailAdInfo.marketing_image_headline', index=3, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='marketing_image_description', full_name='google.ads.googleads.v1.common.GmailAdInfo.marketing_image_description', index=4, - number=5, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='marketing_image_display_call_to_action', full_name='google.ads.googleads.v1.common.GmailAdInfo.marketing_image_display_call_to_action', index=5, - number=6, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='product_images', full_name='google.ads.googleads.v1.common.GmailAdInfo.product_images', index=6, - number=7, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='product_videos', full_name='google.ads.googleads.v1.common.GmailAdInfo.product_videos', index=7, - number=8, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2070, - serialized_end=2623, -) - - -_GMAILTEASER = _descriptor.Descriptor( - name='GmailTeaser', - full_name='google.ads.googleads.v1.common.GmailTeaser', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='headline', full_name='google.ads.googleads.v1.common.GmailTeaser.headline', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='description', full_name='google.ads.googleads.v1.common.GmailTeaser.description', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='business_name', full_name='google.ads.googleads.v1.common.GmailTeaser.business_name', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='logo_image', full_name='google.ads.googleads.v1.common.GmailTeaser.logo_image', index=3, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2626, - serialized_end=2841, -) - - -_DISPLAYCALLTOACTION = _descriptor.Descriptor( - name='DisplayCallToAction', - full_name='google.ads.googleads.v1.common.DisplayCallToAction', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='text', full_name='google.ads.googleads.v1.common.DisplayCallToAction.text', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='text_color', full_name='google.ads.googleads.v1.common.DisplayCallToAction.text_color', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='url_collection_id', full_name='google.ads.googleads.v1.common.DisplayCallToAction.url_collection_id', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2844, - serialized_end=3016, -) - - -_PRODUCTIMAGE = _descriptor.Descriptor( - name='ProductImage', - full_name='google.ads.googleads.v1.common.ProductImage', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='product_image', full_name='google.ads.googleads.v1.common.ProductImage.product_image', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='description', full_name='google.ads.googleads.v1.common.ProductImage.description', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='display_call_to_action', full_name='google.ads.googleads.v1.common.ProductImage.display_call_to_action', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=3019, - serialized_end=3222, -) - - -_PRODUCTVIDEO = _descriptor.Descriptor( - name='ProductVideo', - full_name='google.ads.googleads.v1.common.ProductVideo', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='product_video', full_name='google.ads.googleads.v1.common.ProductVideo.product_video', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=3224, - serialized_end=3291, -) - - -_IMAGEADINFO = _descriptor.Descriptor( - name='ImageAdInfo', - full_name='google.ads.googleads.v1.common.ImageAdInfo', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='pixel_width', full_name='google.ads.googleads.v1.common.ImageAdInfo.pixel_width', index=0, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='pixel_height', full_name='google.ads.googleads.v1.common.ImageAdInfo.pixel_height', index=1, - number=5, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='image_url', full_name='google.ads.googleads.v1.common.ImageAdInfo.image_url', index=2, - number=6, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='preview_pixel_width', full_name='google.ads.googleads.v1.common.ImageAdInfo.preview_pixel_width', index=3, - number=7, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='preview_pixel_height', full_name='google.ads.googleads.v1.common.ImageAdInfo.preview_pixel_height', index=4, - number=8, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='preview_image_url', full_name='google.ads.googleads.v1.common.ImageAdInfo.preview_image_url', index=5, - number=9, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='mime_type', full_name='google.ads.googleads.v1.common.ImageAdInfo.mime_type', index=6, - number=10, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='name', full_name='google.ads.googleads.v1.common.ImageAdInfo.name', index=7, - number=11, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='media_file', full_name='google.ads.googleads.v1.common.ImageAdInfo.media_file', index=8, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='data', full_name='google.ads.googleads.v1.common.ImageAdInfo.data', index=9, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='ad_id_to_copy_image_from', full_name='google.ads.googleads.v1.common.ImageAdInfo.ad_id_to_copy_image_from', index=10, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='image', full_name='google.ads.googleads.v1.common.ImageAdInfo.image', - index=0, containing_type=None, fields=[]), - ], - serialized_start=3294, - serialized_end=3919, -) - - -_VIDEOBUMPERINSTREAMADINFO = _descriptor.Descriptor( - name='VideoBumperInStreamAdInfo', - full_name='google.ads.googleads.v1.common.VideoBumperInStreamAdInfo', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=3921, - serialized_end=3948, -) - - -_VIDEONONSKIPPABLEINSTREAMADINFO = _descriptor.Descriptor( - name='VideoNonSkippableInStreamAdInfo', - full_name='google.ads.googleads.v1.common.VideoNonSkippableInStreamAdInfo', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=3950, - serialized_end=3983, -) - - -_VIDEOTRUEVIEWINSTREAMADINFO = _descriptor.Descriptor( - name='VideoTrueViewInStreamAdInfo', - full_name='google.ads.googleads.v1.common.VideoTrueViewInStreamAdInfo', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='action_button_label', full_name='google.ads.googleads.v1.common.VideoTrueViewInStreamAdInfo.action_button_label', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='action_headline', full_name='google.ads.googleads.v1.common.VideoTrueViewInStreamAdInfo.action_headline', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='companion_banner', full_name='google.ads.googleads.v1.common.VideoTrueViewInStreamAdInfo.companion_banner', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=3986, - serialized_end=4185, -) - - -_VIDEOOUTSTREAMADINFO = _descriptor.Descriptor( - name='VideoOutstreamAdInfo', - full_name='google.ads.googleads.v1.common.VideoOutstreamAdInfo', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='headline', full_name='google.ads.googleads.v1.common.VideoOutstreamAdInfo.headline', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='description', full_name='google.ads.googleads.v1.common.VideoOutstreamAdInfo.description', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=4187, - serialized_end=4308, -) - - -_VIDEOADINFO = _descriptor.Descriptor( - name='VideoAdInfo', - full_name='google.ads.googleads.v1.common.VideoAdInfo', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='media_file', full_name='google.ads.googleads.v1.common.VideoAdInfo.media_file', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='in_stream', full_name='google.ads.googleads.v1.common.VideoAdInfo.in_stream', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='bumper', full_name='google.ads.googleads.v1.common.VideoAdInfo.bumper', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='out_stream', full_name='google.ads.googleads.v1.common.VideoAdInfo.out_stream', index=3, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='non_skippable', full_name='google.ads.googleads.v1.common.VideoAdInfo.non_skippable', index=4, - number=5, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='format', full_name='google.ads.googleads.v1.common.VideoAdInfo.format', - index=0, containing_type=None, fields=[]), - ], - serialized_start=4311, - serialized_end=4709, -) - - -_RESPONSIVESEARCHADINFO = _descriptor.Descriptor( - name='ResponsiveSearchAdInfo', - full_name='google.ads.googleads.v1.common.ResponsiveSearchAdInfo', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='headlines', full_name='google.ads.googleads.v1.common.ResponsiveSearchAdInfo.headlines', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='descriptions', full_name='google.ads.googleads.v1.common.ResponsiveSearchAdInfo.descriptions', index=1, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='path1', full_name='google.ads.googleads.v1.common.ResponsiveSearchAdInfo.path1', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='path2', full_name='google.ads.googleads.v1.common.ResponsiveSearchAdInfo.path2', index=3, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=4712, - serialized_end=4957, -) - - -_LEGACYRESPONSIVEDISPLAYADINFO = _descriptor.Descriptor( - name='LegacyResponsiveDisplayAdInfo', - full_name='google.ads.googleads.v1.common.LegacyResponsiveDisplayAdInfo', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='short_headline', full_name='google.ads.googleads.v1.common.LegacyResponsiveDisplayAdInfo.short_headline', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='long_headline', full_name='google.ads.googleads.v1.common.LegacyResponsiveDisplayAdInfo.long_headline', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='description', full_name='google.ads.googleads.v1.common.LegacyResponsiveDisplayAdInfo.description', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='business_name', full_name='google.ads.googleads.v1.common.LegacyResponsiveDisplayAdInfo.business_name', index=3, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='allow_flexible_color', full_name='google.ads.googleads.v1.common.LegacyResponsiveDisplayAdInfo.allow_flexible_color', index=4, - number=5, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='accent_color', full_name='google.ads.googleads.v1.common.LegacyResponsiveDisplayAdInfo.accent_color', index=5, - number=6, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='main_color', full_name='google.ads.googleads.v1.common.LegacyResponsiveDisplayAdInfo.main_color', index=6, - number=7, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='call_to_action_text', full_name='google.ads.googleads.v1.common.LegacyResponsiveDisplayAdInfo.call_to_action_text', index=7, - number=8, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='logo_image', full_name='google.ads.googleads.v1.common.LegacyResponsiveDisplayAdInfo.logo_image', index=8, - number=9, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='square_logo_image', full_name='google.ads.googleads.v1.common.LegacyResponsiveDisplayAdInfo.square_logo_image', index=9, - number=10, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='marketing_image', full_name='google.ads.googleads.v1.common.LegacyResponsiveDisplayAdInfo.marketing_image', index=10, - number=11, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='square_marketing_image', full_name='google.ads.googleads.v1.common.LegacyResponsiveDisplayAdInfo.square_marketing_image', index=11, - number=12, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='format_setting', full_name='google.ads.googleads.v1.common.LegacyResponsiveDisplayAdInfo.format_setting', index=12, - number=13, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='price_prefix', full_name='google.ads.googleads.v1.common.LegacyResponsiveDisplayAdInfo.price_prefix', index=13, - number=14, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='promo_text', full_name='google.ads.googleads.v1.common.LegacyResponsiveDisplayAdInfo.promo_text', index=14, - number=15, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=4960, - serialized_end=5853, -) - - -_APPADINFO = _descriptor.Descriptor( - name='AppAdInfo', - full_name='google.ads.googleads.v1.common.AppAdInfo', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='mandatory_ad_text', full_name='google.ads.googleads.v1.common.AppAdInfo.mandatory_ad_text', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='headlines', full_name='google.ads.googleads.v1.common.AppAdInfo.headlines', index=1, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='descriptions', full_name='google.ads.googleads.v1.common.AppAdInfo.descriptions', index=2, - number=3, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='images', full_name='google.ads.googleads.v1.common.AppAdInfo.images', index=3, - number=4, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='youtube_videos', full_name='google.ads.googleads.v1.common.AppAdInfo.youtube_videos', index=4, - number=5, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='html5_media_bundles', full_name='google.ads.googleads.v1.common.AppAdInfo.html5_media_bundles', index=5, - number=6, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=5856, - serialized_end=6283, -) - - -_APPENGAGEMENTADINFO = _descriptor.Descriptor( - name='AppEngagementAdInfo', - full_name='google.ads.googleads.v1.common.AppEngagementAdInfo', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='headlines', full_name='google.ads.googleads.v1.common.AppEngagementAdInfo.headlines', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='descriptions', full_name='google.ads.googleads.v1.common.AppEngagementAdInfo.descriptions', index=1, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='images', full_name='google.ads.googleads.v1.common.AppEngagementAdInfo.images', index=2, - number=3, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='videos', full_name='google.ads.googleads.v1.common.AppEngagementAdInfo.videos', index=3, - number=4, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=6286, - serialized_end=6562, -) - - -_LEGACYAPPINSTALLADINFO = _descriptor.Descriptor( - name='LegacyAppInstallAdInfo', - full_name='google.ads.googleads.v1.common.LegacyAppInstallAdInfo', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='app_id', full_name='google.ads.googleads.v1.common.LegacyAppInstallAdInfo.app_id', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='app_store', full_name='google.ads.googleads.v1.common.LegacyAppInstallAdInfo.app_store', index=1, - number=2, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='headline', full_name='google.ads.googleads.v1.common.LegacyAppInstallAdInfo.headline', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='description1', full_name='google.ads.googleads.v1.common.LegacyAppInstallAdInfo.description1', index=3, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='description2', full_name='google.ads.googleads.v1.common.LegacyAppInstallAdInfo.description2', index=4, - number=5, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=6565, - serialized_end=6896, -) - - -_RESPONSIVEDISPLAYADINFO = _descriptor.Descriptor( - name='ResponsiveDisplayAdInfo', - full_name='google.ads.googleads.v1.common.ResponsiveDisplayAdInfo', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='marketing_images', full_name='google.ads.googleads.v1.common.ResponsiveDisplayAdInfo.marketing_images', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='square_marketing_images', full_name='google.ads.googleads.v1.common.ResponsiveDisplayAdInfo.square_marketing_images', index=1, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='logo_images', full_name='google.ads.googleads.v1.common.ResponsiveDisplayAdInfo.logo_images', index=2, - number=3, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='square_logo_images', full_name='google.ads.googleads.v1.common.ResponsiveDisplayAdInfo.square_logo_images', index=3, - number=4, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='headlines', full_name='google.ads.googleads.v1.common.ResponsiveDisplayAdInfo.headlines', index=4, - number=5, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='long_headline', full_name='google.ads.googleads.v1.common.ResponsiveDisplayAdInfo.long_headline', index=5, - number=6, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='descriptions', full_name='google.ads.googleads.v1.common.ResponsiveDisplayAdInfo.descriptions', index=6, - number=7, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='youtube_videos', full_name='google.ads.googleads.v1.common.ResponsiveDisplayAdInfo.youtube_videos', index=7, - number=8, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='business_name', full_name='google.ads.googleads.v1.common.ResponsiveDisplayAdInfo.business_name', index=8, - number=9, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='main_color', full_name='google.ads.googleads.v1.common.ResponsiveDisplayAdInfo.main_color', index=9, - number=10, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='accent_color', full_name='google.ads.googleads.v1.common.ResponsiveDisplayAdInfo.accent_color', index=10, - number=11, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='allow_flexible_color', full_name='google.ads.googleads.v1.common.ResponsiveDisplayAdInfo.allow_flexible_color', index=11, - number=12, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='call_to_action_text', full_name='google.ads.googleads.v1.common.ResponsiveDisplayAdInfo.call_to_action_text', index=12, - number=13, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='price_prefix', full_name='google.ads.googleads.v1.common.ResponsiveDisplayAdInfo.price_prefix', index=13, - number=14, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='promo_text', full_name='google.ads.googleads.v1.common.ResponsiveDisplayAdInfo.promo_text', index=14, - number=15, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='format_setting', full_name='google.ads.googleads.v1.common.ResponsiveDisplayAdInfo.format_setting', index=15, - number=16, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=6899, - serialized_end=7965, -) - - -_DISPLAYUPLOADADINFO = _descriptor.Descriptor( - name='DisplayUploadAdInfo', - full_name='google.ads.googleads.v1.common.DisplayUploadAdInfo', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='display_upload_product_type', full_name='google.ads.googleads.v1.common.DisplayUploadAdInfo.display_upload_product_type', index=0, - number=1, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='media_bundle', full_name='google.ads.googleads.v1.common.DisplayUploadAdInfo.media_bundle', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='media_asset', full_name='google.ads.googleads.v1.common.DisplayUploadAdInfo.media_asset', - index=0, containing_type=None, fields=[]), - ], - serialized_start=7968, - serialized_end=8203, -) - -_TEXTADINFO.fields_by_name['headline'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_TEXTADINFO.fields_by_name['description1'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_TEXTADINFO.fields_by_name['description2'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_EXPANDEDTEXTADINFO.fields_by_name['headline_part1'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_EXPANDEDTEXTADINFO.fields_by_name['headline_part2'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_EXPANDEDTEXTADINFO.fields_by_name['headline_part3'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_EXPANDEDTEXTADINFO.fields_by_name['description'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_EXPANDEDTEXTADINFO.fields_by_name['description2'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_EXPANDEDTEXTADINFO.fields_by_name['path1'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_EXPANDEDTEXTADINFO.fields_by_name['path2'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_CALLONLYADINFO.fields_by_name['country_code'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_CALLONLYADINFO.fields_by_name['phone_number'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_CALLONLYADINFO.fields_by_name['business_name'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_CALLONLYADINFO.fields_by_name['headline1'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_CALLONLYADINFO.fields_by_name['headline2'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_CALLONLYADINFO.fields_by_name['description1'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_CALLONLYADINFO.fields_by_name['description2'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_CALLONLYADINFO.fields_by_name['call_tracked'].message_type = google_dot_protobuf_dot_wrappers__pb2._BOOLVALUE -_CALLONLYADINFO.fields_by_name['disable_call_conversion'].message_type = google_dot_protobuf_dot_wrappers__pb2._BOOLVALUE -_CALLONLYADINFO.fields_by_name['phone_number_verification_url'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_CALLONLYADINFO.fields_by_name['conversion_action'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_CALLONLYADINFO.fields_by_name['conversion_reporting_state'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_call__conversion__reporting__state__pb2._CALLCONVERSIONREPORTINGSTATEENUM_CALLCONVERSIONREPORTINGSTATE -_EXPANDEDDYNAMICSEARCHADINFO.fields_by_name['description'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_SHOPPINGCOMPARISONLISTINGADINFO.fields_by_name['headline'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_GMAILADINFO.fields_by_name['teaser'].message_type = _GMAILTEASER -_GMAILADINFO.fields_by_name['header_image'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_GMAILADINFO.fields_by_name['marketing_image'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_GMAILADINFO.fields_by_name['marketing_image_headline'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_GMAILADINFO.fields_by_name['marketing_image_description'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_GMAILADINFO.fields_by_name['marketing_image_display_call_to_action'].message_type = _DISPLAYCALLTOACTION -_GMAILADINFO.fields_by_name['product_images'].message_type = _PRODUCTIMAGE -_GMAILADINFO.fields_by_name['product_videos'].message_type = _PRODUCTVIDEO -_GMAILTEASER.fields_by_name['headline'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_GMAILTEASER.fields_by_name['description'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_GMAILTEASER.fields_by_name['business_name'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_GMAILTEASER.fields_by_name['logo_image'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_DISPLAYCALLTOACTION.fields_by_name['text'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_DISPLAYCALLTOACTION.fields_by_name['text_color'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_DISPLAYCALLTOACTION.fields_by_name['url_collection_id'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_PRODUCTIMAGE.fields_by_name['product_image'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_PRODUCTIMAGE.fields_by_name['description'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_PRODUCTIMAGE.fields_by_name['display_call_to_action'].message_type = _DISPLAYCALLTOACTION -_PRODUCTVIDEO.fields_by_name['product_video'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_IMAGEADINFO.fields_by_name['pixel_width'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -_IMAGEADINFO.fields_by_name['pixel_height'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -_IMAGEADINFO.fields_by_name['image_url'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_IMAGEADINFO.fields_by_name['preview_pixel_width'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -_IMAGEADINFO.fields_by_name['preview_pixel_height'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -_IMAGEADINFO.fields_by_name['preview_image_url'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_IMAGEADINFO.fields_by_name['mime_type'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_mime__type__pb2._MIMETYPEENUM_MIMETYPE -_IMAGEADINFO.fields_by_name['name'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_IMAGEADINFO.fields_by_name['media_file'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_IMAGEADINFO.fields_by_name['data'].message_type = google_dot_protobuf_dot_wrappers__pb2._BYTESVALUE -_IMAGEADINFO.fields_by_name['ad_id_to_copy_image_from'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -_IMAGEADINFO.oneofs_by_name['image'].fields.append( - _IMAGEADINFO.fields_by_name['media_file']) -_IMAGEADINFO.fields_by_name['media_file'].containing_oneof = _IMAGEADINFO.oneofs_by_name['image'] -_IMAGEADINFO.oneofs_by_name['image'].fields.append( - _IMAGEADINFO.fields_by_name['data']) -_IMAGEADINFO.fields_by_name['data'].containing_oneof = _IMAGEADINFO.oneofs_by_name['image'] -_IMAGEADINFO.oneofs_by_name['image'].fields.append( - _IMAGEADINFO.fields_by_name['ad_id_to_copy_image_from']) -_IMAGEADINFO.fields_by_name['ad_id_to_copy_image_from'].containing_oneof = _IMAGEADINFO.oneofs_by_name['image'] -_VIDEOTRUEVIEWINSTREAMADINFO.fields_by_name['action_button_label'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_VIDEOTRUEVIEWINSTREAMADINFO.fields_by_name['action_headline'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_VIDEOTRUEVIEWINSTREAMADINFO.fields_by_name['companion_banner'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_VIDEOOUTSTREAMADINFO.fields_by_name['headline'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_VIDEOOUTSTREAMADINFO.fields_by_name['description'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_VIDEOADINFO.fields_by_name['media_file'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_VIDEOADINFO.fields_by_name['in_stream'].message_type = _VIDEOTRUEVIEWINSTREAMADINFO -_VIDEOADINFO.fields_by_name['bumper'].message_type = _VIDEOBUMPERINSTREAMADINFO -_VIDEOADINFO.fields_by_name['out_stream'].message_type = _VIDEOOUTSTREAMADINFO -_VIDEOADINFO.fields_by_name['non_skippable'].message_type = _VIDEONONSKIPPABLEINSTREAMADINFO -_VIDEOADINFO.oneofs_by_name['format'].fields.append( - _VIDEOADINFO.fields_by_name['in_stream']) -_VIDEOADINFO.fields_by_name['in_stream'].containing_oneof = _VIDEOADINFO.oneofs_by_name['format'] -_VIDEOADINFO.oneofs_by_name['format'].fields.append( - _VIDEOADINFO.fields_by_name['bumper']) -_VIDEOADINFO.fields_by_name['bumper'].containing_oneof = _VIDEOADINFO.oneofs_by_name['format'] -_VIDEOADINFO.oneofs_by_name['format'].fields.append( - _VIDEOADINFO.fields_by_name['out_stream']) -_VIDEOADINFO.fields_by_name['out_stream'].containing_oneof = _VIDEOADINFO.oneofs_by_name['format'] -_VIDEOADINFO.oneofs_by_name['format'].fields.append( - _VIDEOADINFO.fields_by_name['non_skippable']) -_VIDEOADINFO.fields_by_name['non_skippable'].containing_oneof = _VIDEOADINFO.oneofs_by_name['format'] -_RESPONSIVESEARCHADINFO.fields_by_name['headlines'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_ad__asset__pb2._ADTEXTASSET -_RESPONSIVESEARCHADINFO.fields_by_name['descriptions'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_ad__asset__pb2._ADTEXTASSET -_RESPONSIVESEARCHADINFO.fields_by_name['path1'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_RESPONSIVESEARCHADINFO.fields_by_name['path2'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_LEGACYRESPONSIVEDISPLAYADINFO.fields_by_name['short_headline'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_LEGACYRESPONSIVEDISPLAYADINFO.fields_by_name['long_headline'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_LEGACYRESPONSIVEDISPLAYADINFO.fields_by_name['description'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_LEGACYRESPONSIVEDISPLAYADINFO.fields_by_name['business_name'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_LEGACYRESPONSIVEDISPLAYADINFO.fields_by_name['allow_flexible_color'].message_type = google_dot_protobuf_dot_wrappers__pb2._BOOLVALUE -_LEGACYRESPONSIVEDISPLAYADINFO.fields_by_name['accent_color'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_LEGACYRESPONSIVEDISPLAYADINFO.fields_by_name['main_color'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_LEGACYRESPONSIVEDISPLAYADINFO.fields_by_name['call_to_action_text'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_LEGACYRESPONSIVEDISPLAYADINFO.fields_by_name['logo_image'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_LEGACYRESPONSIVEDISPLAYADINFO.fields_by_name['square_logo_image'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_LEGACYRESPONSIVEDISPLAYADINFO.fields_by_name['marketing_image'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_LEGACYRESPONSIVEDISPLAYADINFO.fields_by_name['square_marketing_image'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_LEGACYRESPONSIVEDISPLAYADINFO.fields_by_name['format_setting'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_display__ad__format__setting__pb2._DISPLAYADFORMATSETTINGENUM_DISPLAYADFORMATSETTING -_LEGACYRESPONSIVEDISPLAYADINFO.fields_by_name['price_prefix'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_LEGACYRESPONSIVEDISPLAYADINFO.fields_by_name['promo_text'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_APPADINFO.fields_by_name['mandatory_ad_text'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_ad__asset__pb2._ADTEXTASSET -_APPADINFO.fields_by_name['headlines'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_ad__asset__pb2._ADTEXTASSET -_APPADINFO.fields_by_name['descriptions'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_ad__asset__pb2._ADTEXTASSET -_APPADINFO.fields_by_name['images'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_ad__asset__pb2._ADIMAGEASSET -_APPADINFO.fields_by_name['youtube_videos'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_ad__asset__pb2._ADVIDEOASSET -_APPADINFO.fields_by_name['html5_media_bundles'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_ad__asset__pb2._ADMEDIABUNDLEASSET -_APPENGAGEMENTADINFO.fields_by_name['headlines'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_ad__asset__pb2._ADTEXTASSET -_APPENGAGEMENTADINFO.fields_by_name['descriptions'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_ad__asset__pb2._ADTEXTASSET -_APPENGAGEMENTADINFO.fields_by_name['images'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_ad__asset__pb2._ADIMAGEASSET -_APPENGAGEMENTADINFO.fields_by_name['videos'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_ad__asset__pb2._ADVIDEOASSET -_LEGACYAPPINSTALLADINFO.fields_by_name['app_id'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_LEGACYAPPINSTALLADINFO.fields_by_name['app_store'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_legacy__app__install__ad__app__store__pb2._LEGACYAPPINSTALLADAPPSTOREENUM_LEGACYAPPINSTALLADAPPSTORE -_LEGACYAPPINSTALLADINFO.fields_by_name['headline'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_LEGACYAPPINSTALLADINFO.fields_by_name['description1'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_LEGACYAPPINSTALLADINFO.fields_by_name['description2'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_RESPONSIVEDISPLAYADINFO.fields_by_name['marketing_images'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_ad__asset__pb2._ADIMAGEASSET -_RESPONSIVEDISPLAYADINFO.fields_by_name['square_marketing_images'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_ad__asset__pb2._ADIMAGEASSET -_RESPONSIVEDISPLAYADINFO.fields_by_name['logo_images'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_ad__asset__pb2._ADIMAGEASSET -_RESPONSIVEDISPLAYADINFO.fields_by_name['square_logo_images'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_ad__asset__pb2._ADIMAGEASSET -_RESPONSIVEDISPLAYADINFO.fields_by_name['headlines'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_ad__asset__pb2._ADTEXTASSET -_RESPONSIVEDISPLAYADINFO.fields_by_name['long_headline'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_ad__asset__pb2._ADTEXTASSET -_RESPONSIVEDISPLAYADINFO.fields_by_name['descriptions'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_ad__asset__pb2._ADTEXTASSET -_RESPONSIVEDISPLAYADINFO.fields_by_name['youtube_videos'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_ad__asset__pb2._ADVIDEOASSET -_RESPONSIVEDISPLAYADINFO.fields_by_name['business_name'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_RESPONSIVEDISPLAYADINFO.fields_by_name['main_color'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_RESPONSIVEDISPLAYADINFO.fields_by_name['accent_color'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_RESPONSIVEDISPLAYADINFO.fields_by_name['allow_flexible_color'].message_type = google_dot_protobuf_dot_wrappers__pb2._BOOLVALUE -_RESPONSIVEDISPLAYADINFO.fields_by_name['call_to_action_text'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_RESPONSIVEDISPLAYADINFO.fields_by_name['price_prefix'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_RESPONSIVEDISPLAYADINFO.fields_by_name['promo_text'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_RESPONSIVEDISPLAYADINFO.fields_by_name['format_setting'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_display__ad__format__setting__pb2._DISPLAYADFORMATSETTINGENUM_DISPLAYADFORMATSETTING -_DISPLAYUPLOADADINFO.fields_by_name['display_upload_product_type'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_display__upload__product__type__pb2._DISPLAYUPLOADPRODUCTTYPEENUM_DISPLAYUPLOADPRODUCTTYPE -_DISPLAYUPLOADADINFO.fields_by_name['media_bundle'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_ad__asset__pb2._ADMEDIABUNDLEASSET -_DISPLAYUPLOADADINFO.oneofs_by_name['media_asset'].fields.append( - _DISPLAYUPLOADADINFO.fields_by_name['media_bundle']) -_DISPLAYUPLOADADINFO.fields_by_name['media_bundle'].containing_oneof = _DISPLAYUPLOADADINFO.oneofs_by_name['media_asset'] -DESCRIPTOR.message_types_by_name['TextAdInfo'] = _TEXTADINFO -DESCRIPTOR.message_types_by_name['ExpandedTextAdInfo'] = _EXPANDEDTEXTADINFO -DESCRIPTOR.message_types_by_name['CallOnlyAdInfo'] = _CALLONLYADINFO -DESCRIPTOR.message_types_by_name['ExpandedDynamicSearchAdInfo'] = _EXPANDEDDYNAMICSEARCHADINFO -DESCRIPTOR.message_types_by_name['HotelAdInfo'] = _HOTELADINFO -DESCRIPTOR.message_types_by_name['ShoppingSmartAdInfo'] = _SHOPPINGSMARTADINFO -DESCRIPTOR.message_types_by_name['ShoppingProductAdInfo'] = _SHOPPINGPRODUCTADINFO -DESCRIPTOR.message_types_by_name['ShoppingComparisonListingAdInfo'] = _SHOPPINGCOMPARISONLISTINGADINFO -DESCRIPTOR.message_types_by_name['GmailAdInfo'] = _GMAILADINFO -DESCRIPTOR.message_types_by_name['GmailTeaser'] = _GMAILTEASER -DESCRIPTOR.message_types_by_name['DisplayCallToAction'] = _DISPLAYCALLTOACTION -DESCRIPTOR.message_types_by_name['ProductImage'] = _PRODUCTIMAGE -DESCRIPTOR.message_types_by_name['ProductVideo'] = _PRODUCTVIDEO -DESCRIPTOR.message_types_by_name['ImageAdInfo'] = _IMAGEADINFO -DESCRIPTOR.message_types_by_name['VideoBumperInStreamAdInfo'] = _VIDEOBUMPERINSTREAMADINFO -DESCRIPTOR.message_types_by_name['VideoNonSkippableInStreamAdInfo'] = _VIDEONONSKIPPABLEINSTREAMADINFO -DESCRIPTOR.message_types_by_name['VideoTrueViewInStreamAdInfo'] = _VIDEOTRUEVIEWINSTREAMADINFO -DESCRIPTOR.message_types_by_name['VideoOutstreamAdInfo'] = _VIDEOOUTSTREAMADINFO -DESCRIPTOR.message_types_by_name['VideoAdInfo'] = _VIDEOADINFO -DESCRIPTOR.message_types_by_name['ResponsiveSearchAdInfo'] = _RESPONSIVESEARCHADINFO -DESCRIPTOR.message_types_by_name['LegacyResponsiveDisplayAdInfo'] = _LEGACYRESPONSIVEDISPLAYADINFO -DESCRIPTOR.message_types_by_name['AppAdInfo'] = _APPADINFO -DESCRIPTOR.message_types_by_name['AppEngagementAdInfo'] = _APPENGAGEMENTADINFO -DESCRIPTOR.message_types_by_name['LegacyAppInstallAdInfo'] = _LEGACYAPPINSTALLADINFO -DESCRIPTOR.message_types_by_name['ResponsiveDisplayAdInfo'] = _RESPONSIVEDISPLAYADINFO -DESCRIPTOR.message_types_by_name['DisplayUploadAdInfo'] = _DISPLAYUPLOADADINFO -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -TextAdInfo = _reflection.GeneratedProtocolMessageType('TextAdInfo', (_message.Message,), dict( - DESCRIPTOR = _TEXTADINFO, - __module__ = 'google.ads.googleads_v1.proto.common.ad_type_infos_pb2' - , - __doc__ = """A text ad. - - - Attributes: - headline: - The headline of the ad. - description1: - The first line of the ad's description. - description2: - The second line of the ad's description. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.TextAdInfo) - )) -_sym_db.RegisterMessage(TextAdInfo) - -ExpandedTextAdInfo = _reflection.GeneratedProtocolMessageType('ExpandedTextAdInfo', (_message.Message,), dict( - DESCRIPTOR = _EXPANDEDTEXTADINFO, - __module__ = 'google.ads.googleads_v1.proto.common.ad_type_infos_pb2' - , - __doc__ = """An expanded text ad. - - - Attributes: - headline_part1: - The first part of the ad's headline. - headline_part2: - The second part of the ad's headline. - headline_part3: - The third part of the ad's headline. - description: - The description of the ad. - description2: - The second description of the ad. - path1: - The text that can appear alongside the ad's displayed URL. - path2: - Additional text that can appear alongside the ad's displayed - URL. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.ExpandedTextAdInfo) - )) -_sym_db.RegisterMessage(ExpandedTextAdInfo) - -CallOnlyAdInfo = _reflection.GeneratedProtocolMessageType('CallOnlyAdInfo', (_message.Message,), dict( - DESCRIPTOR = _CALLONLYADINFO, - __module__ = 'google.ads.googleads_v1.proto.common.ad_type_infos_pb2' - , - __doc__ = """A call-only ad. - - - Attributes: - country_code: - The country code in the ad. - phone_number: - The phone number in the ad. - business_name: - The business name in the ad. - headline1: - First headline in the ad. - headline2: - Second headline in the ad. - description1: - The first line of the ad's description. - description2: - The second line of the ad's description. - call_tracked: - Whether to enable call tracking for the creative. Enabling - call tracking also enables call conversions. - disable_call_conversion: - Whether to disable call conversion for the creative. If set to - ``true``, disables call conversions even when ``call_tracked`` - is ``true``. If ``call_tracked`` is ``false``, this field is - ignored. - phone_number_verification_url: - The URL to be used for phone number verification. - conversion_action: - The conversion action to attribute a call conversion to. If - not set a default conversion action is used. This field only - has effect if call\_tracked is set to true. Otherwise this - field is ignored. - conversion_reporting_state: - The call conversion behavior of this call only ad. It can use - its own call conversion setting, inherit the account level - setting, or be disabled. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.CallOnlyAdInfo) - )) -_sym_db.RegisterMessage(CallOnlyAdInfo) - -ExpandedDynamicSearchAdInfo = _reflection.GeneratedProtocolMessageType('ExpandedDynamicSearchAdInfo', (_message.Message,), dict( - DESCRIPTOR = _EXPANDEDDYNAMICSEARCHADINFO, - __module__ = 'google.ads.googleads_v1.proto.common.ad_type_infos_pb2' - , - __doc__ = """An expanded dynamic search ad. - - - Attributes: - description: - The description of the ad. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.ExpandedDynamicSearchAdInfo) - )) -_sym_db.RegisterMessage(ExpandedDynamicSearchAdInfo) - -HotelAdInfo = _reflection.GeneratedProtocolMessageType('HotelAdInfo', (_message.Message,), dict( - DESCRIPTOR = _HOTELADINFO, - __module__ = 'google.ads.googleads_v1.proto.common.ad_type_infos_pb2' - , - __doc__ = """A hotel ad. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.HotelAdInfo) - )) -_sym_db.RegisterMessage(HotelAdInfo) - -ShoppingSmartAdInfo = _reflection.GeneratedProtocolMessageType('ShoppingSmartAdInfo', (_message.Message,), dict( - DESCRIPTOR = _SHOPPINGSMARTADINFO, - __module__ = 'google.ads.googleads_v1.proto.common.ad_type_infos_pb2' - , - __doc__ = """A Smart Shopping ad. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.ShoppingSmartAdInfo) - )) -_sym_db.RegisterMessage(ShoppingSmartAdInfo) - -ShoppingProductAdInfo = _reflection.GeneratedProtocolMessageType('ShoppingProductAdInfo', (_message.Message,), dict( - DESCRIPTOR = _SHOPPINGPRODUCTADINFO, - __module__ = 'google.ads.googleads_v1.proto.common.ad_type_infos_pb2' - , - __doc__ = """A standard Shopping ad. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.ShoppingProductAdInfo) - )) -_sym_db.RegisterMessage(ShoppingProductAdInfo) - -ShoppingComparisonListingAdInfo = _reflection.GeneratedProtocolMessageType('ShoppingComparisonListingAdInfo', (_message.Message,), dict( - DESCRIPTOR = _SHOPPINGCOMPARISONLISTINGADINFO, - __module__ = 'google.ads.googleads_v1.proto.common.ad_type_infos_pb2' - , - __doc__ = """A Shopping Comparison Listing ad. - - - Attributes: - headline: - Headline of the ad. This field is required. Allowed length is - between 25 and 45 characters. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.ShoppingComparisonListingAdInfo) - )) -_sym_db.RegisterMessage(ShoppingComparisonListingAdInfo) - -GmailAdInfo = _reflection.GeneratedProtocolMessageType('GmailAdInfo', (_message.Message,), dict( - DESCRIPTOR = _GMAILADINFO, - __module__ = 'google.ads.googleads_v1.proto.common.ad_type_infos_pb2' - , - __doc__ = """A Gmail ad. - - - Attributes: - teaser: - The Gmail teaser. - header_image: - The MediaFile resource name of the header image. Valid image - types are GIF, JPEG and PNG. The minimum size is 300x100 - pixels and the aspect ratio must be between 3:1 and 5:1 - (+-1%). - marketing_image: - The MediaFile resource name of the marketing image. Valid - image types are GIF, JPEG and PNG. The image must either be - landscape with a minimum size of 600x314 pixels and aspect - ratio of 600:314 (+-1%) or square with a minimum size of - 300x300 pixels and aspect ratio of 1:1 (+-1%) - marketing_image_headline: - Headline of the marketing image. - marketing_image_description: - Description of the marketing image. - marketing_image_display_call_to_action: - Display-call-to-action of the marketing image. - product_images: - Product images. Up to 15 images are supported. - product_videos: - Product videos. Up to 7 videos are supported. At least one - product video or a marketing image must be specified. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.GmailAdInfo) - )) -_sym_db.RegisterMessage(GmailAdInfo) - -GmailTeaser = _reflection.GeneratedProtocolMessageType('GmailTeaser', (_message.Message,), dict( - DESCRIPTOR = _GMAILTEASER, - __module__ = 'google.ads.googleads_v1.proto.common.ad_type_infos_pb2' - , - __doc__ = """Gmail teaser data. The teaser is a small header that acts as an - invitation to view the rest of the ad (the body). - - - Attributes: - headline: - Headline of the teaser. - description: - Description of the teaser. - business_name: - Business name of the advertiser. - logo_image: - The MediaFile resource name of the logo image. Valid image - types are GIF, JPEG and PNG. The minimum size is 144x144 - pixels and the aspect ratio must be 1:1 (+-1%). - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.GmailTeaser) - )) -_sym_db.RegisterMessage(GmailTeaser) - -DisplayCallToAction = _reflection.GeneratedProtocolMessageType('DisplayCallToAction', (_message.Message,), dict( - DESCRIPTOR = _DISPLAYCALLTOACTION, - __module__ = 'google.ads.googleads_v1.proto.common.ad_type_infos_pb2' - , - __doc__ = """Data for display call to action. The call to action is a piece of the ad - that prompts the user to do something. Like clicking a link or making a - phone call. - - - Attributes: - text: - Text for the display-call-to-action. - text_color: - Text color for the display-call-to-action in hexadecimal, e.g. - #ffffff for white. - url_collection_id: - Identifies the url collection in the ad.url\_collections - field. If not set the url defaults to final\_url. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.DisplayCallToAction) - )) -_sym_db.RegisterMessage(DisplayCallToAction) - -ProductImage = _reflection.GeneratedProtocolMessageType('ProductImage', (_message.Message,), dict( - DESCRIPTOR = _PRODUCTIMAGE, - __module__ = 'google.ads.googleads_v1.proto.common.ad_type_infos_pb2' - , - __doc__ = """Product image specific data. - - - Attributes: - product_image: - The MediaFile resource name of the product image. Valid image - types are GIF, JPEG and PNG. The minimum size is 300x300 - pixels and the aspect ratio must be 1:1 (+-1%). - description: - Description of the product. - display_call_to_action: - Display-call-to-action of the product image. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.ProductImage) - )) -_sym_db.RegisterMessage(ProductImage) - -ProductVideo = _reflection.GeneratedProtocolMessageType('ProductVideo', (_message.Message,), dict( - DESCRIPTOR = _PRODUCTVIDEO, - __module__ = 'google.ads.googleads_v1.proto.common.ad_type_infos_pb2' - , - __doc__ = """Product video specific data. - - - Attributes: - product_video: - The MediaFile resource name of a video which must be hosted on - YouTube. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.ProductVideo) - )) -_sym_db.RegisterMessage(ProductVideo) - -ImageAdInfo = _reflection.GeneratedProtocolMessageType('ImageAdInfo', (_message.Message,), dict( - DESCRIPTOR = _IMAGEADINFO, - __module__ = 'google.ads.googleads_v1.proto.common.ad_type_infos_pb2' - , - __doc__ = """An image ad. - - - Attributes: - pixel_width: - Width in pixels of the full size image. - pixel_height: - Height in pixels of the full size image. - image_url: - URL of the full size image. - preview_pixel_width: - Width in pixels of the preview size image. - preview_pixel_height: - Height in pixels of the preview size image. - preview_image_url: - URL of the preview size image. - mime_type: - The mime type of the image. - name: - The name of the image. If the image was created from a - MediaFile, this is the MediaFile's name. If the image was - created from bytes, this is empty. - image: - The image to create the ImageAd from. This can be specified in - one of two ways. 1. An existing MediaFile resource. 2. The raw - image data as bytes. - media_file: - The MediaFile resource to use for the image. - data: - Raw image data as bytes. - ad_id_to_copy_image_from: - An ad ID to copy the image from. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.ImageAdInfo) - )) -_sym_db.RegisterMessage(ImageAdInfo) - -VideoBumperInStreamAdInfo = _reflection.GeneratedProtocolMessageType('VideoBumperInStreamAdInfo', (_message.Message,), dict( - DESCRIPTOR = _VIDEOBUMPERINSTREAMADINFO, - __module__ = 'google.ads.googleads_v1.proto.common.ad_type_infos_pb2' - , - __doc__ = """Representation of video bumper in-stream ad format (very short in-stream - non-skippable video ad). - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.VideoBumperInStreamAdInfo) - )) -_sym_db.RegisterMessage(VideoBumperInStreamAdInfo) - -VideoNonSkippableInStreamAdInfo = _reflection.GeneratedProtocolMessageType('VideoNonSkippableInStreamAdInfo', (_message.Message,), dict( - DESCRIPTOR = _VIDEONONSKIPPABLEINSTREAMADINFO, - __module__ = 'google.ads.googleads_v1.proto.common.ad_type_infos_pb2' - , - __doc__ = """Representation of video non-skippable in-stream ad format (15 second - in-stream non-skippable video ad). - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.VideoNonSkippableInStreamAdInfo) - )) -_sym_db.RegisterMessage(VideoNonSkippableInStreamAdInfo) - -VideoTrueViewInStreamAdInfo = _reflection.GeneratedProtocolMessageType('VideoTrueViewInStreamAdInfo', (_message.Message,), dict( - DESCRIPTOR = _VIDEOTRUEVIEWINSTREAMADINFO, - __module__ = 'google.ads.googleads_v1.proto.common.ad_type_infos_pb2' - , - __doc__ = """Representation of video TrueView in-stream ad format (ad shown during - video playback, often at beginning, which displays a skip button a few - seconds into the video). - - - Attributes: - action_button_label: - Label on the CTA (call-to-action) button taking the user to - the video ad's final URL. Required for TrueView for action - campaigns, optional otherwise. - action_headline: - Additional text displayed with the CTA (call-to-action) button - to give context and encourage clicking on the button. - companion_banner: - The MediaFile resource name of the companion banner used with - the ad. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.VideoTrueViewInStreamAdInfo) - )) -_sym_db.RegisterMessage(VideoTrueViewInStreamAdInfo) - -VideoOutstreamAdInfo = _reflection.GeneratedProtocolMessageType('VideoOutstreamAdInfo', (_message.Message,), dict( - DESCRIPTOR = _VIDEOOUTSTREAMADINFO, - __module__ = 'google.ads.googleads_v1.proto.common.ad_type_infos_pb2' - , - __doc__ = """Representation of video out-stream ad format (ad shown alongside a feed - with automatic playback, without sound). - - - Attributes: - headline: - The headline of the ad. - description: - The description line. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.VideoOutstreamAdInfo) - )) -_sym_db.RegisterMessage(VideoOutstreamAdInfo) - -VideoAdInfo = _reflection.GeneratedProtocolMessageType('VideoAdInfo', (_message.Message,), dict( - DESCRIPTOR = _VIDEOADINFO, - __module__ = 'google.ads.googleads_v1.proto.common.ad_type_infos_pb2' - , - __doc__ = """A video ad. - - - Attributes: - media_file: - The MediaFile resource to use for the video. - format: - Format-specific schema for the different video formats. - in_stream: - Video TrueView in-stream ad format. - bumper: - Video bumper in-stream ad format. - out_stream: - Video out-stream ad format. - non_skippable: - Video non-skippable in-stream ad format. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.VideoAdInfo) - )) -_sym_db.RegisterMessage(VideoAdInfo) - -ResponsiveSearchAdInfo = _reflection.GeneratedProtocolMessageType('ResponsiveSearchAdInfo', (_message.Message,), dict( - DESCRIPTOR = _RESPONSIVESEARCHADINFO, - __module__ = 'google.ads.googleads_v1.proto.common.ad_type_infos_pb2' - , - __doc__ = """A responsive search ad. - - Responsive search ads let you create an ad that adapts to show more - text, and more relevant messages, to your customers. Enter multiple - headlines and descriptions when creating a responsive search ad, and - over time, Google Ads will automatically test different combinations and - learn which combinations perform best. By adapting your ad's content to - more closely match potential customers' search terms, responsive search - ads may improve your campaign's performance. - - More information at https://support.google.com/google-ads/answer/7684791 - - - Attributes: - headlines: - List of text assets for headlines. When the ad serves the - headlines will be selected from this list. - descriptions: - List of text assets for descriptions. When the ad serves the - descriptions will be selected from this list. - path1: - First part of text that may appear appended to the url - displayed in the ad. - path2: - Second part of text that may appear appended to the url - displayed in the ad. This field can only be set when path1 is - also set. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.ResponsiveSearchAdInfo) - )) -_sym_db.RegisterMessage(ResponsiveSearchAdInfo) - -LegacyResponsiveDisplayAdInfo = _reflection.GeneratedProtocolMessageType('LegacyResponsiveDisplayAdInfo', (_message.Message,), dict( - DESCRIPTOR = _LEGACYRESPONSIVEDISPLAYADINFO, - __module__ = 'google.ads.googleads_v1.proto.common.ad_type_infos_pb2' - , - __doc__ = """A legacy responsive display ad. Ads of this type are labeled 'Responsive - ads' in the Google Ads UI. - - - Attributes: - short_headline: - The short version of the ad's headline. - long_headline: - The long version of the ad's headline. - description: - The description of the ad. - business_name: - The business name in the ad. - allow_flexible_color: - Advertiser's consent to allow flexible color. When true, the - ad may be served with different color if necessary. When - false, the ad will be served with the specified colors or a - neutral color. The default value is true. Must be true if - main\_color and accent\_color are not set. - accent_color: - The accent color of the ad in hexadecimal, e.g. #ffffff for - white. If one of main\_color and accent\_color is set, the - other is required as well. - main_color: - The main color of the ad in hexadecimal, e.g. #ffffff for - white. If one of main\_color and accent\_color is set, the - other is required as well. - call_to_action_text: - The call-to-action text for the ad. - logo_image: - The MediaFile resource name of the logo image used in the ad. - square_logo_image: - The MediaFile resource name of the square logo image used in - the ad. - marketing_image: - The MediaFile resource name of the marketing image used in the - ad. - square_marketing_image: - The MediaFile resource name of the square marketing image used - in the ad. - format_setting: - Specifies which format the ad will be served in. Default is - ALL\_FORMATS. - price_prefix: - Prefix before price. E.g. 'as low as'. - promo_text: - Promotion text used for dyanmic formats of responsive ads. For - example 'Free two-day shipping'. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.LegacyResponsiveDisplayAdInfo) - )) -_sym_db.RegisterMessage(LegacyResponsiveDisplayAdInfo) - -AppAdInfo = _reflection.GeneratedProtocolMessageType('AppAdInfo', (_message.Message,), dict( - DESCRIPTOR = _APPADINFO, - __module__ = 'google.ads.googleads_v1.proto.common.ad_type_infos_pb2' - , - __doc__ = """An app ad. - - - Attributes: - mandatory_ad_text: - An optional text asset that, if specified, must always be - displayed when the ad is served. - headlines: - List of text assets for headlines. When the ad serves the - headlines will be selected from this list. - descriptions: - List of text assets for descriptions. When the ad serves the - descriptions will be selected from this list. - images: - List of image assets that may be displayed with the ad. - youtube_videos: - List of YouTube video assets that may be displayed with the - ad. - html5_media_bundles: - List of media bundle assets that may be used with the ad. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.AppAdInfo) - )) -_sym_db.RegisterMessage(AppAdInfo) - -AppEngagementAdInfo = _reflection.GeneratedProtocolMessageType('AppEngagementAdInfo', (_message.Message,), dict( - DESCRIPTOR = _APPENGAGEMENTADINFO, - __module__ = 'google.ads.googleads_v1.proto.common.ad_type_infos_pb2' - , - __doc__ = """App engagement ads allow you to write text encouraging a specific action - in the app, like checking in, making a purchase, or booking a flight. - They allow you to send users to a specific part of your app where they - can find what they're looking for easier and faster. - - - Attributes: - headlines: - List of text assets for headlines. When the ad serves the - headlines will be selected from this list. - descriptions: - List of text assets for descriptions. When the ad serves the - descriptions will be selected from this list. - images: - List of image assets that may be displayed with the ad. - videos: - List of video assets that may be displayed with the ad. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.AppEngagementAdInfo) - )) -_sym_db.RegisterMessage(AppEngagementAdInfo) - -LegacyAppInstallAdInfo = _reflection.GeneratedProtocolMessageType('LegacyAppInstallAdInfo', (_message.Message,), dict( - DESCRIPTOR = _LEGACYAPPINSTALLADINFO, - __module__ = 'google.ads.googleads_v1.proto.common.ad_type_infos_pb2' - , - __doc__ = """A legacy app install ad that only can be used by a few select customers. - - - Attributes: - app_id: - The id of the mobile app. - app_store: - The app store the mobile app is available in. - headline: - The headline of the ad. - description1: - The first description line of the ad. - description2: - The second description line of the ad. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.LegacyAppInstallAdInfo) - )) -_sym_db.RegisterMessage(LegacyAppInstallAdInfo) - -ResponsiveDisplayAdInfo = _reflection.GeneratedProtocolMessageType('ResponsiveDisplayAdInfo', (_message.Message,), dict( - DESCRIPTOR = _RESPONSIVEDISPLAYADINFO, - __module__ = 'google.ads.googleads_v1.proto.common.ad_type_infos_pb2' - , - __doc__ = """A responsive display ad. - - - Attributes: - marketing_images: - Marketing images to be used in the ad. Valid image types are - GIF, JPEG, and PNG. The minimum size is 600x314 and the aspect - ratio must be 1.91:1 (+-1%). At least one marketing\_image is - required. Combined with square\_marketing\_images the maximum - is 15. - square_marketing_images: - Square marketing images to be used in the ad. Valid image - types are GIF, JPEG, and PNG. The minimum size is 300x300 and - the aspect ratio must be 1:1 (+-1%). At least one square - marketing\_image is required. Combined with marketing\_images - the maximum is 15. - logo_images: - Logo images to be used in the ad. Valid image types are GIF, - JPEG, and PNG. The minimum size is 512x128 and the aspect - ratio must be 4:1 (+-1%). Combined with square\_logo\_images - the maximum is 5. - square_logo_images: - Square logo images 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%). Combined with square\_logo\_images - the maximum is 5. - headlines: - Short format headlines for the ad. The maximum length is 30 - characters. At least 1 and max 5 headlines can be specified. - long_headline: - A required long format headline. The maximum length is 90 - characters. - descriptions: - Descriptive texts for the ad. The maximum length is 90 - characters. At least 1 and max 5 headlines can be specified. - youtube_videos: - Optional YouTube vidoes for the ad. A maximum of 5 videos can - be specified. - business_name: - The advertiser/brand name. Maximum display width is 25. - main_color: - The main color of the ad in hexadecimal, e.g. #ffffff for - white. If one of main\_color and accent\_color is set, the - other is required as well. - accent_color: - The accent color of the ad in hexadecimal, e.g. #ffffff for - white. If one of main\_color and accent\_color is set, the - other is required as well. - allow_flexible_color: - Advertiser's consent to allow flexible color. When true, the - ad may be served with different color if necessary. When - false, the ad will be served with the specified colors or a - neutral color. The default value is true. Must be true if - main\_color and accent\_color are not set. - call_to_action_text: - The call-to-action text for the ad. Maximum display width is - 30. - price_prefix: - Prefix before price. E.g. 'as low as'. - promo_text: - Promotion text used for dyanmic formats of responsive ads. For - example 'Free two-day shipping'. - format_setting: - Specifies which format the ad will be served in. Default is - ALL\_FORMATS. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.ResponsiveDisplayAdInfo) - )) -_sym_db.RegisterMessage(ResponsiveDisplayAdInfo) - -DisplayUploadAdInfo = _reflection.GeneratedProtocolMessageType('DisplayUploadAdInfo', (_message.Message,), dict( - DESCRIPTOR = _DISPLAYUPLOADADINFO, - __module__ = 'google.ads.googleads_v1.proto.common.ad_type_infos_pb2' - , - __doc__ = """A generic type of display ad. The exact ad format is controlled by the - display\_upload\_product\_type field, which determines what kinds of - data need to be included with the ad. - - - Attributes: - display_upload_product_type: - The product type of this ad. See comments on the enum for - details. - media_asset: - The asset data that makes up the ad. - media_bundle: - A media bundle asset to be used in the ad. For information - about the media bundle for HTML5\_UPLOAD\_AD see - https://support.google.com/google-ads/answer/1722096 Media - bundles that are part of dynamic product types use a special - format that needs to be created through the Google Web - Designer. See - https://support.google.com/webdesigner/answer/7543898 for more - information. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.DisplayUploadAdInfo) - )) -_sym_db.RegisterMessage(DisplayUploadAdInfo) - - -DESCRIPTOR._options = None -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/common/asset_types_pb2.py b/google/ads/google_ads/v1/proto/common/asset_types_pb2.py deleted file mode 100644 index 368a11cab..000000000 --- a/google/ads/google_ads/v1/proto/common/asset_types_pb2.py +++ /dev/null @@ -1,331 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/common/asset_types.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.ads.google_ads.v1.proto.enums import mime_type_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_mime__type__pb2 -from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/common/asset_types.proto', - package='google.ads.googleads.v1.common', - syntax='proto3', - serialized_options=_b('\n\"com.google.ads.googleads.v1.commonB\017AssetTypesProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/common;common\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V1.Common\312\002\036Google\\Ads\\GoogleAds\\V1\\Common\352\002\"Google::Ads::GoogleAds::V1::Common'), - serialized_pb=_b('\n6google/ads/googleads_v1/proto/common/asset_types.proto\x12\x1egoogle.ads.googleads.v1.common\x1a\x33google/ads/googleads_v1/proto/enums/mime_type.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1cgoogle/api/annotations.proto\"K\n\x11YoutubeVideoAsset\x12\x36\n\x10youtube_video_id\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\"=\n\x10MediaBundleAsset\x12)\n\x04\x64\x61ta\x18\x01 \x01(\x0b\x32\x1b.google.protobuf.BytesValue\"\xf3\x01\n\nImageAsset\x12)\n\x04\x64\x61ta\x18\x01 \x01(\x0b\x32\x1b.google.protobuf.BytesValue\x12.\n\tfile_size\x18\x02 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12G\n\tmime_type\x18\x03 \x01(\x0e\x32\x34.google.ads.googleads.v1.enums.MimeTypeEnum.MimeType\x12\x41\n\tfull_size\x18\x04 \x01(\x0b\x32..google.ads.googleads.v1.common.ImageDimension\"\xa2\x01\n\x0eImageDimension\x12\x32\n\rheight_pixels\x18\x01 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x31\n\x0cwidth_pixels\x18\x02 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12)\n\x03url\x18\x03 \x01(\x0b\x32\x1c.google.protobuf.StringValue\"7\n\tTextAsset\x12*\n\x04text\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValueB\xea\x01\n\"com.google.ads.googleads.v1.commonB\x0f\x41ssetTypesProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/common;common\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V1.Common\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V1\\Common\xea\x02\"Google::Ads::GoogleAds::V1::Commonb\x06proto3') - , - dependencies=[google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_mime__type__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - - -_YOUTUBEVIDEOASSET = _descriptor.Descriptor( - name='YoutubeVideoAsset', - full_name='google.ads.googleads.v1.common.YoutubeVideoAsset', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='youtube_video_id', full_name='google.ads.googleads.v1.common.YoutubeVideoAsset.youtube_video_id', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=205, - serialized_end=280, -) - - -_MEDIABUNDLEASSET = _descriptor.Descriptor( - name='MediaBundleAsset', - full_name='google.ads.googleads.v1.common.MediaBundleAsset', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='data', full_name='google.ads.googleads.v1.common.MediaBundleAsset.data', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=282, - serialized_end=343, -) - - -_IMAGEASSET = _descriptor.Descriptor( - name='ImageAsset', - full_name='google.ads.googleads.v1.common.ImageAsset', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='data', full_name='google.ads.googleads.v1.common.ImageAsset.data', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='file_size', full_name='google.ads.googleads.v1.common.ImageAsset.file_size', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='mime_type', full_name='google.ads.googleads.v1.common.ImageAsset.mime_type', index=2, - number=3, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='full_size', full_name='google.ads.googleads.v1.common.ImageAsset.full_size', index=3, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=346, - serialized_end=589, -) - - -_IMAGEDIMENSION = _descriptor.Descriptor( - name='ImageDimension', - full_name='google.ads.googleads.v1.common.ImageDimension', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='height_pixels', full_name='google.ads.googleads.v1.common.ImageDimension.height_pixels', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='width_pixels', full_name='google.ads.googleads.v1.common.ImageDimension.width_pixels', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='url', full_name='google.ads.googleads.v1.common.ImageDimension.url', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=592, - serialized_end=754, -) - - -_TEXTASSET = _descriptor.Descriptor( - name='TextAsset', - full_name='google.ads.googleads.v1.common.TextAsset', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='text', full_name='google.ads.googleads.v1.common.TextAsset.text', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=756, - serialized_end=811, -) - -_YOUTUBEVIDEOASSET.fields_by_name['youtube_video_id'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_MEDIABUNDLEASSET.fields_by_name['data'].message_type = google_dot_protobuf_dot_wrappers__pb2._BYTESVALUE -_IMAGEASSET.fields_by_name['data'].message_type = google_dot_protobuf_dot_wrappers__pb2._BYTESVALUE -_IMAGEASSET.fields_by_name['file_size'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -_IMAGEASSET.fields_by_name['mime_type'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_mime__type__pb2._MIMETYPEENUM_MIMETYPE -_IMAGEASSET.fields_by_name['full_size'].message_type = _IMAGEDIMENSION -_IMAGEDIMENSION.fields_by_name['height_pixels'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -_IMAGEDIMENSION.fields_by_name['width_pixels'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -_IMAGEDIMENSION.fields_by_name['url'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_TEXTASSET.fields_by_name['text'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -DESCRIPTOR.message_types_by_name['YoutubeVideoAsset'] = _YOUTUBEVIDEOASSET -DESCRIPTOR.message_types_by_name['MediaBundleAsset'] = _MEDIABUNDLEASSET -DESCRIPTOR.message_types_by_name['ImageAsset'] = _IMAGEASSET -DESCRIPTOR.message_types_by_name['ImageDimension'] = _IMAGEDIMENSION -DESCRIPTOR.message_types_by_name['TextAsset'] = _TEXTASSET -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -YoutubeVideoAsset = _reflection.GeneratedProtocolMessageType('YoutubeVideoAsset', (_message.Message,), dict( - DESCRIPTOR = _YOUTUBEVIDEOASSET, - __module__ = 'google.ads.googleads_v1.proto.common.asset_types_pb2' - , - __doc__ = """A YouTube asset. - - - Attributes: - youtube_video_id: - YouTube video id. This is the 11 character string value used - in the YouTube video URL. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.YoutubeVideoAsset) - )) -_sym_db.RegisterMessage(YoutubeVideoAsset) - -MediaBundleAsset = _reflection.GeneratedProtocolMessageType('MediaBundleAsset', (_message.Message,), dict( - DESCRIPTOR = _MEDIABUNDLEASSET, - __module__ = 'google.ads.googleads_v1.proto.common.asset_types_pb2' - , - __doc__ = """A MediaBundle asset. - - - Attributes: - data: - Media bundle (ZIP file) asset data. The format of the uploaded - ZIP file depends on the ad field where it will be used. For - more information on the format, see the documentation of the - ad field where you plan on using the MediaBundleAsset. This - field is mutate only. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.MediaBundleAsset) - )) -_sym_db.RegisterMessage(MediaBundleAsset) - -ImageAsset = _reflection.GeneratedProtocolMessageType('ImageAsset', (_message.Message,), dict( - DESCRIPTOR = _IMAGEASSET, - __module__ = 'google.ads.googleads_v1.proto.common.asset_types_pb2' - , - __doc__ = """An Image asset. - - - Attributes: - data: - The raw bytes data of an image. This field is mutate only. - file_size: - File size of the image asset in bytes. - mime_type: - MIME type of the image asset. - full_size: - Metadata for this image at its original size. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.ImageAsset) - )) -_sym_db.RegisterMessage(ImageAsset) - -ImageDimension = _reflection.GeneratedProtocolMessageType('ImageDimension', (_message.Message,), dict( - DESCRIPTOR = _IMAGEDIMENSION, - __module__ = 'google.ads.googleads_v1.proto.common.asset_types_pb2' - , - __doc__ = """Metadata for an image at a certain size, either original or resized. - - - Attributes: - height_pixels: - Height of the image. - width_pixels: - Width of the image. - url: - A URL that returns the image with this height and width. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.ImageDimension) - )) -_sym_db.RegisterMessage(ImageDimension) - -TextAsset = _reflection.GeneratedProtocolMessageType('TextAsset', (_message.Message,), dict( - DESCRIPTOR = _TEXTASSET, - __module__ = 'google.ads.googleads_v1.proto.common.asset_types_pb2' - , - __doc__ = """A Text asset. - - - Attributes: - text: - Text content of the text asset. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.TextAsset) - )) -_sym_db.RegisterMessage(TextAsset) - - -DESCRIPTOR._options = None -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/common/bidding_pb2.py b/google/ads/google_ads/v1/proto/common/bidding_pb2.py deleted file mode 100644 index 172916c48..000000000 --- a/google/ads/google_ads/v1/proto/common/bidding_pb2.py +++ /dev/null @@ -1,932 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/common/bidding.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.ads.google_ads.v1.proto.enums import page_one_promoted_strategy_goal_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_page__one__promoted__strategy__goal__pb2 -from google.ads.google_ads.v1.proto.enums import target_impression_share_location_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_target__impression__share__location__pb2 -from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/common/bidding.proto', - package='google.ads.googleads.v1.common', - syntax='proto3', - serialized_options=_b('\n\"com.google.ads.googleads.v1.commonB\014BiddingProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/common;common\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V1.Common\312\002\036Google\\Ads\\GoogleAds\\V1\\Common\352\002\"Google::Ads::GoogleAds::V1::Common'), - serialized_pb=_b('\n2google/ads/googleads_v1/proto/common/bidding.proto\x12\x1egoogle.ads.googleads.v1.common\x1aIgoogle/ads/googleads_v1/proto/enums/page_one_promoted_strategy_goal.proto\x1aJgoogle/ads/googleads_v1/proto/enums/target_impression_share_location.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1cgoogle/api/annotations.proto\"I\n\nCommission\x12;\n\x16\x63ommission_rate_micros\x18\x01 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\"\r\n\x0b\x45nhancedCpc\"E\n\tManualCpc\x12\x38\n\x14\x65nhanced_cpc_enabled\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.BoolValue\"\x0b\n\tManualCpm\"\x0b\n\tManualCpv\"\x15\n\x13MaximizeConversions\"L\n\x17MaximizeConversionValue\x12\x31\n\x0btarget_roas\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\"\xc6\x03\n\x0fPageOnePromoted\x12q\n\rstrategy_goal\x18\x01 \x01(\x0e\x32Z.google.ads.googleads.v1.enums.PageOnePromotedStrategyGoalEnum.PageOnePromotedStrategyGoal\x12;\n\x16\x63pc_bid_ceiling_micros\x18\x02 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x32\n\x0c\x62id_modifier\x18\x03 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12\x37\n\x13only_raise_cpc_bids\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.BoolValue\x12I\n%raise_cpc_bid_when_budget_constrained\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.BoolValue\x12K\n\'raise_cpc_bid_when_quality_score_is_low\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.BoolValue\"\xbb\x01\n\tTargetCpa\x12\x36\n\x11target_cpa_micros\x18\x01 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12;\n\x16\x63pc_bid_ceiling_micros\x18\x02 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x39\n\x14\x63pc_bid_floor_micros\x18\x03 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\"\x0b\n\tTargetCpm\"\x85\x02\n\x15TargetImpressionShare\x12p\n\x08location\x18\x01 \x01(\x0e\x32^.google.ads.googleads.v1.enums.TargetImpressionShareLocationEnum.TargetImpressionShareLocation\x12=\n\x18location_fraction_micros\x18\x02 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12;\n\x16\x63pc_bid_ceiling_micros\x18\x03 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\"\xd2\x02\n\x12TargetOutrankShare\x12@\n\x1btarget_outrank_share_micros\x18\x01 \x01(\x0b\x32\x1b.google.protobuf.Int32Value\x12\x37\n\x11\x63ompetitor_domain\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12;\n\x16\x63pc_bid_ceiling_micros\x18\x03 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x37\n\x13only_raise_cpc_bids\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.BoolValue\x12K\n\'raise_cpc_bid_when_quality_score_is_low\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.BoolValue\"\xb7\x01\n\nTargetRoas\x12\x31\n\x0btarget_roas\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12;\n\x16\x63pc_bid_ceiling_micros\x18\x02 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x39\n\x14\x63pc_bid_floor_micros\x18\x03 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\"\x84\x01\n\x0bTargetSpend\x12\x38\n\x13target_spend_micros\x18\x01 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12;\n\x16\x63pc_bid_ceiling_micros\x18\x02 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\"\x83\x01\n\nPercentCpc\x12;\n\x16\x63pc_bid_ceiling_micros\x18\x01 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x38\n\x14\x65nhanced_cpc_enabled\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.BoolValueB\xe7\x01\n\"com.google.ads.googleads.v1.commonB\x0c\x42iddingProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/common;common\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V1.Common\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V1\\Common\xea\x02\"Google::Ads::GoogleAds::V1::Commonb\x06proto3') - , - dependencies=[google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_page__one__promoted__strategy__goal__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_target__impression__share__location__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - - -_COMMISSION = _descriptor.Descriptor( - name='Commission', - full_name='google.ads.googleads.v1.common.Commission', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='commission_rate_micros', full_name='google.ads.googleads.v1.common.Commission.commission_rate_micros', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=299, - serialized_end=372, -) - - -_ENHANCEDCPC = _descriptor.Descriptor( - name='EnhancedCpc', - full_name='google.ads.googleads.v1.common.EnhancedCpc', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=374, - serialized_end=387, -) - - -_MANUALCPC = _descriptor.Descriptor( - name='ManualCpc', - full_name='google.ads.googleads.v1.common.ManualCpc', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='enhanced_cpc_enabled', full_name='google.ads.googleads.v1.common.ManualCpc.enhanced_cpc_enabled', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=389, - serialized_end=458, -) - - -_MANUALCPM = _descriptor.Descriptor( - name='ManualCpm', - full_name='google.ads.googleads.v1.common.ManualCpm', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=460, - serialized_end=471, -) - - -_MANUALCPV = _descriptor.Descriptor( - name='ManualCpv', - full_name='google.ads.googleads.v1.common.ManualCpv', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=473, - serialized_end=484, -) - - -_MAXIMIZECONVERSIONS = _descriptor.Descriptor( - name='MaximizeConversions', - full_name='google.ads.googleads.v1.common.MaximizeConversions', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=486, - serialized_end=507, -) - - -_MAXIMIZECONVERSIONVALUE = _descriptor.Descriptor( - name='MaximizeConversionValue', - full_name='google.ads.googleads.v1.common.MaximizeConversionValue', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='target_roas', full_name='google.ads.googleads.v1.common.MaximizeConversionValue.target_roas', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=509, - serialized_end=585, -) - - -_PAGEONEPROMOTED = _descriptor.Descriptor( - name='PageOnePromoted', - full_name='google.ads.googleads.v1.common.PageOnePromoted', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='strategy_goal', full_name='google.ads.googleads.v1.common.PageOnePromoted.strategy_goal', index=0, - number=1, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='cpc_bid_ceiling_micros', full_name='google.ads.googleads.v1.common.PageOnePromoted.cpc_bid_ceiling_micros', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='bid_modifier', full_name='google.ads.googleads.v1.common.PageOnePromoted.bid_modifier', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='only_raise_cpc_bids', full_name='google.ads.googleads.v1.common.PageOnePromoted.only_raise_cpc_bids', index=3, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='raise_cpc_bid_when_budget_constrained', full_name='google.ads.googleads.v1.common.PageOnePromoted.raise_cpc_bid_when_budget_constrained', index=4, - number=5, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='raise_cpc_bid_when_quality_score_is_low', full_name='google.ads.googleads.v1.common.PageOnePromoted.raise_cpc_bid_when_quality_score_is_low', index=5, - number=6, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=588, - serialized_end=1042, -) - - -_TARGETCPA = _descriptor.Descriptor( - name='TargetCpa', - full_name='google.ads.googleads.v1.common.TargetCpa', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='target_cpa_micros', full_name='google.ads.googleads.v1.common.TargetCpa.target_cpa_micros', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='cpc_bid_ceiling_micros', full_name='google.ads.googleads.v1.common.TargetCpa.cpc_bid_ceiling_micros', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='cpc_bid_floor_micros', full_name='google.ads.googleads.v1.common.TargetCpa.cpc_bid_floor_micros', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1045, - serialized_end=1232, -) - - -_TARGETCPM = _descriptor.Descriptor( - name='TargetCpm', - full_name='google.ads.googleads.v1.common.TargetCpm', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1234, - serialized_end=1245, -) - - -_TARGETIMPRESSIONSHARE = _descriptor.Descriptor( - name='TargetImpressionShare', - full_name='google.ads.googleads.v1.common.TargetImpressionShare', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='location', full_name='google.ads.googleads.v1.common.TargetImpressionShare.location', index=0, - number=1, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='location_fraction_micros', full_name='google.ads.googleads.v1.common.TargetImpressionShare.location_fraction_micros', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='cpc_bid_ceiling_micros', full_name='google.ads.googleads.v1.common.TargetImpressionShare.cpc_bid_ceiling_micros', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1248, - serialized_end=1509, -) - - -_TARGETOUTRANKSHARE = _descriptor.Descriptor( - name='TargetOutrankShare', - full_name='google.ads.googleads.v1.common.TargetOutrankShare', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='target_outrank_share_micros', full_name='google.ads.googleads.v1.common.TargetOutrankShare.target_outrank_share_micros', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='competitor_domain', full_name='google.ads.googleads.v1.common.TargetOutrankShare.competitor_domain', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='cpc_bid_ceiling_micros', full_name='google.ads.googleads.v1.common.TargetOutrankShare.cpc_bid_ceiling_micros', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='only_raise_cpc_bids', full_name='google.ads.googleads.v1.common.TargetOutrankShare.only_raise_cpc_bids', index=3, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='raise_cpc_bid_when_quality_score_is_low', full_name='google.ads.googleads.v1.common.TargetOutrankShare.raise_cpc_bid_when_quality_score_is_low', index=4, - number=5, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1512, - serialized_end=1850, -) - - -_TARGETROAS = _descriptor.Descriptor( - name='TargetRoas', - full_name='google.ads.googleads.v1.common.TargetRoas', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='target_roas', full_name='google.ads.googleads.v1.common.TargetRoas.target_roas', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='cpc_bid_ceiling_micros', full_name='google.ads.googleads.v1.common.TargetRoas.cpc_bid_ceiling_micros', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='cpc_bid_floor_micros', full_name='google.ads.googleads.v1.common.TargetRoas.cpc_bid_floor_micros', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1853, - serialized_end=2036, -) - - -_TARGETSPEND = _descriptor.Descriptor( - name='TargetSpend', - full_name='google.ads.googleads.v1.common.TargetSpend', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='target_spend_micros', full_name='google.ads.googleads.v1.common.TargetSpend.target_spend_micros', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='cpc_bid_ceiling_micros', full_name='google.ads.googleads.v1.common.TargetSpend.cpc_bid_ceiling_micros', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2039, - serialized_end=2171, -) - - -_PERCENTCPC = _descriptor.Descriptor( - name='PercentCpc', - full_name='google.ads.googleads.v1.common.PercentCpc', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='cpc_bid_ceiling_micros', full_name='google.ads.googleads.v1.common.PercentCpc.cpc_bid_ceiling_micros', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='enhanced_cpc_enabled', full_name='google.ads.googleads.v1.common.PercentCpc.enhanced_cpc_enabled', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2174, - serialized_end=2305, -) - -_COMMISSION.fields_by_name['commission_rate_micros'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -_MANUALCPC.fields_by_name['enhanced_cpc_enabled'].message_type = google_dot_protobuf_dot_wrappers__pb2._BOOLVALUE -_MAXIMIZECONVERSIONVALUE.fields_by_name['target_roas'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE -_PAGEONEPROMOTED.fields_by_name['strategy_goal'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_page__one__promoted__strategy__goal__pb2._PAGEONEPROMOTEDSTRATEGYGOALENUM_PAGEONEPROMOTEDSTRATEGYGOAL -_PAGEONEPROMOTED.fields_by_name['cpc_bid_ceiling_micros'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -_PAGEONEPROMOTED.fields_by_name['bid_modifier'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE -_PAGEONEPROMOTED.fields_by_name['only_raise_cpc_bids'].message_type = google_dot_protobuf_dot_wrappers__pb2._BOOLVALUE -_PAGEONEPROMOTED.fields_by_name['raise_cpc_bid_when_budget_constrained'].message_type = google_dot_protobuf_dot_wrappers__pb2._BOOLVALUE -_PAGEONEPROMOTED.fields_by_name['raise_cpc_bid_when_quality_score_is_low'].message_type = google_dot_protobuf_dot_wrappers__pb2._BOOLVALUE -_TARGETCPA.fields_by_name['target_cpa_micros'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -_TARGETCPA.fields_by_name['cpc_bid_ceiling_micros'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -_TARGETCPA.fields_by_name['cpc_bid_floor_micros'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -_TARGETIMPRESSIONSHARE.fields_by_name['location'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_target__impression__share__location__pb2._TARGETIMPRESSIONSHARELOCATIONENUM_TARGETIMPRESSIONSHARELOCATION -_TARGETIMPRESSIONSHARE.fields_by_name['location_fraction_micros'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -_TARGETIMPRESSIONSHARE.fields_by_name['cpc_bid_ceiling_micros'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -_TARGETOUTRANKSHARE.fields_by_name['target_outrank_share_micros'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT32VALUE -_TARGETOUTRANKSHARE.fields_by_name['competitor_domain'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_TARGETOUTRANKSHARE.fields_by_name['cpc_bid_ceiling_micros'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -_TARGETOUTRANKSHARE.fields_by_name['only_raise_cpc_bids'].message_type = google_dot_protobuf_dot_wrappers__pb2._BOOLVALUE -_TARGETOUTRANKSHARE.fields_by_name['raise_cpc_bid_when_quality_score_is_low'].message_type = google_dot_protobuf_dot_wrappers__pb2._BOOLVALUE -_TARGETROAS.fields_by_name['target_roas'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE -_TARGETROAS.fields_by_name['cpc_bid_ceiling_micros'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -_TARGETROAS.fields_by_name['cpc_bid_floor_micros'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -_TARGETSPEND.fields_by_name['target_spend_micros'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -_TARGETSPEND.fields_by_name['cpc_bid_ceiling_micros'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -_PERCENTCPC.fields_by_name['cpc_bid_ceiling_micros'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -_PERCENTCPC.fields_by_name['enhanced_cpc_enabled'].message_type = google_dot_protobuf_dot_wrappers__pb2._BOOLVALUE -DESCRIPTOR.message_types_by_name['Commission'] = _COMMISSION -DESCRIPTOR.message_types_by_name['EnhancedCpc'] = _ENHANCEDCPC -DESCRIPTOR.message_types_by_name['ManualCpc'] = _MANUALCPC -DESCRIPTOR.message_types_by_name['ManualCpm'] = _MANUALCPM -DESCRIPTOR.message_types_by_name['ManualCpv'] = _MANUALCPV -DESCRIPTOR.message_types_by_name['MaximizeConversions'] = _MAXIMIZECONVERSIONS -DESCRIPTOR.message_types_by_name['MaximizeConversionValue'] = _MAXIMIZECONVERSIONVALUE -DESCRIPTOR.message_types_by_name['PageOnePromoted'] = _PAGEONEPROMOTED -DESCRIPTOR.message_types_by_name['TargetCpa'] = _TARGETCPA -DESCRIPTOR.message_types_by_name['TargetCpm'] = _TARGETCPM -DESCRIPTOR.message_types_by_name['TargetImpressionShare'] = _TARGETIMPRESSIONSHARE -DESCRIPTOR.message_types_by_name['TargetOutrankShare'] = _TARGETOUTRANKSHARE -DESCRIPTOR.message_types_by_name['TargetRoas'] = _TARGETROAS -DESCRIPTOR.message_types_by_name['TargetSpend'] = _TARGETSPEND -DESCRIPTOR.message_types_by_name['PercentCpc'] = _PERCENTCPC -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -Commission = _reflection.GeneratedProtocolMessageType('Commission', (_message.Message,), dict( - DESCRIPTOR = _COMMISSION, - __module__ = 'google.ads.googleads_v1.proto.common.bidding_pb2' - , - __doc__ = """Commission is an automatic bidding strategy in which the advertiser pays - a certain portion of the conversion value. - - - Attributes: - commission_rate_micros: - Commission rate defines the portion of the conversion value - that the advertiser will be billed. A commission rate of x - should be passed into this field as (x \* 1,000,000). For - example, 106,000 represents a commission rate of 0.106 - (10.6%). - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.Commission) - )) -_sym_db.RegisterMessage(Commission) - -EnhancedCpc = _reflection.GeneratedProtocolMessageType('EnhancedCpc', (_message.Message,), dict( - DESCRIPTOR = _ENHANCEDCPC, - __module__ = 'google.ads.googleads_v1.proto.common.bidding_pb2' - , - __doc__ = """An automated bidding strategy that raises bids for clicks that seem more - likely to lead to a conversion and lowers them for clicks where they - seem less likely. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.EnhancedCpc) - )) -_sym_db.RegisterMessage(EnhancedCpc) - -ManualCpc = _reflection.GeneratedProtocolMessageType('ManualCpc', (_message.Message,), dict( - DESCRIPTOR = _MANUALCPC, - __module__ = 'google.ads.googleads_v1.proto.common.bidding_pb2' - , - __doc__ = """Manual click-based bidding where user pays per click. - - - Attributes: - enhanced_cpc_enabled: - Whether bids are to be enhanced based on conversion optimizer - data. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.ManualCpc) - )) -_sym_db.RegisterMessage(ManualCpc) - -ManualCpm = _reflection.GeneratedProtocolMessageType('ManualCpm', (_message.Message,), dict( - DESCRIPTOR = _MANUALCPM, - __module__ = 'google.ads.googleads_v1.proto.common.bidding_pb2' - , - __doc__ = """Manual impression-based bidding where user pays per thousand - impressions. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.ManualCpm) - )) -_sym_db.RegisterMessage(ManualCpm) - -ManualCpv = _reflection.GeneratedProtocolMessageType('ManualCpv', (_message.Message,), dict( - DESCRIPTOR = _MANUALCPV, - __module__ = 'google.ads.googleads_v1.proto.common.bidding_pb2' - , - __doc__ = """View based bidding where user pays per video view. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.ManualCpv) - )) -_sym_db.RegisterMessage(ManualCpv) - -MaximizeConversions = _reflection.GeneratedProtocolMessageType('MaximizeConversions', (_message.Message,), dict( - DESCRIPTOR = _MAXIMIZECONVERSIONS, - __module__ = 'google.ads.googleads_v1.proto.common.bidding_pb2' - , - __doc__ = """An automated bidding strategy that sets bids to help get the most - conversions for your campaign while spending your budget. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.MaximizeConversions) - )) -_sym_db.RegisterMessage(MaximizeConversions) - -MaximizeConversionValue = _reflection.GeneratedProtocolMessageType('MaximizeConversionValue', (_message.Message,), dict( - DESCRIPTOR = _MAXIMIZECONVERSIONVALUE, - __module__ = 'google.ads.googleads_v1.proto.common.bidding_pb2' - , - __doc__ = """An automated bidding strategy which tries to maximize conversion value - given a daily budget. - - - Attributes: - target_roas: - The target return on ad spend (ROAS) option. If set, the bid - strategy will maximize revenue while averaging the target - return on ad spend. If the target ROAS is high, the bid - strategy may not be able to spend the full budget. If the - target ROAS is not set, the bid strategy will aim to achieve - the highest possible ROAS for the budget. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.MaximizeConversionValue) - )) -_sym_db.RegisterMessage(MaximizeConversionValue) - -PageOnePromoted = _reflection.GeneratedProtocolMessageType('PageOnePromoted', (_message.Message,), dict( - DESCRIPTOR = _PAGEONEPROMOTED, - __module__ = 'google.ads.googleads_v1.proto.common.bidding_pb2' - , - __doc__ = """An automated bidding strategy which sets CPC bids to target impressions - on page one, or page one promoted slots on google.com. - - - Attributes: - strategy_goal: - The strategy goal of where impressions are desired to be shown - on search result pages. - cpc_bid_ceiling_micros: - Maximum bid limit that can be set by the bid strategy. The - limit applies to all keywords managed by the strategy. - bid_modifier: - Bid multiplier to be applied to the relevant bid estimate - (depending on the ``strategy_goal``) in determining a - keyword's new CPC bid. - only_raise_cpc_bids: - Whether the strategy should always follow bid estimate - changes, or only increase. If false, always sets a keyword's - new bid to the current bid estimate. If true, only updates a - keyword's bid if the current bid estimate is greater than the - current bid. - raise_cpc_bid_when_budget_constrained: - Whether the strategy is allowed to raise bids when the - throttling rate of the budget it is serving out of rises above - a threshold. - raise_cpc_bid_when_quality_score_is_low: - Whether the strategy is allowed to raise bids on keywords with - lower-range quality scores. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.PageOnePromoted) - )) -_sym_db.RegisterMessage(PageOnePromoted) - -TargetCpa = _reflection.GeneratedProtocolMessageType('TargetCpa', (_message.Message,), dict( - DESCRIPTOR = _TARGETCPA, - __module__ = 'google.ads.googleads_v1.proto.common.bidding_pb2' - , - __doc__ = """An automated bid strategy that sets bids to help get as many conversions - as possible at the target cost-per-acquisition (CPA) you set. - - - Attributes: - target_cpa_micros: - Average CPA target. This target should be greater than or - equal to minimum billable unit based on the currency for the - account. - cpc_bid_ceiling_micros: - Maximum bid limit that can be set by the bid strategy. The - limit applies to all keywords managed by the strategy. - cpc_bid_floor_micros: - Minimum bid limit that can be set by the bid strategy. The - limit applies to all keywords managed by the strategy. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.TargetCpa) - )) -_sym_db.RegisterMessage(TargetCpa) - -TargetCpm = _reflection.GeneratedProtocolMessageType('TargetCpm', (_message.Message,), dict( - DESCRIPTOR = _TARGETCPM, - __module__ = 'google.ads.googleads_v1.proto.common.bidding_pb2' - , - __doc__ = """Target CPM (cost per thousand impressions) is an automated bidding - strategy that sets bids to optimize performance given the target CPM you - set. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.TargetCpm) - )) -_sym_db.RegisterMessage(TargetCpm) - -TargetImpressionShare = _reflection.GeneratedProtocolMessageType('TargetImpressionShare', (_message.Message,), dict( - DESCRIPTOR = _TARGETIMPRESSIONSHARE, - __module__ = 'google.ads.googleads_v1.proto.common.bidding_pb2' - , - __doc__ = """An automated bidding strategy that sets bids so that a certain - percentage of search ads are shown at the top of the first page (or - other targeted location). Next Id = 4 - - - Attributes: - location: - The targeted location on the search results page. - location_fraction_micros: - The desired fraction of ads to be shown in the targeted - location in micros. E.g. 1% equals 10,000. - cpc_bid_ceiling_micros: - The highest CPC bid the automated bidding system is permitted - to specify. This is a required field entered by the advertiser - that sets the ceiling and specified in local micros. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.TargetImpressionShare) - )) -_sym_db.RegisterMessage(TargetImpressionShare) - -TargetOutrankShare = _reflection.GeneratedProtocolMessageType('TargetOutrankShare', (_message.Message,), dict( - DESCRIPTOR = _TARGETOUTRANKSHARE, - __module__ = 'google.ads.googleads_v1.proto.common.bidding_pb2' - , - __doc__ = """An automated bidding strategy that sets bids based on the target - fraction of auctions where the advertiser should outrank a specific - competitor. - - - Attributes: - target_outrank_share_micros: - The target fraction of auctions where the advertiser should - outrank the competitor. The advertiser outranks the competitor - in an auction if either the advertiser appears above the - competitor in the search results, or appears in the search - results when the competitor does not. Value must be between 1 - and 1000000, inclusive. - competitor_domain: - Competitor's visible domain URL. - cpc_bid_ceiling_micros: - Maximum bid limit that can be set by the bid strategy. The - limit applies to all keywords managed by the strategy. - only_raise_cpc_bids: - Whether the strategy should always follow bid estimate - changes, or only increase. If false, always set a keyword's - new bid to the current bid estimate. If true, only updates a - keyword's bid if the current bid estimate is greater than the - current bid. - raise_cpc_bid_when_quality_score_is_low: - Whether the strategy is allowed to raise bids on keywords with - lower-range quality scores. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.TargetOutrankShare) - )) -_sym_db.RegisterMessage(TargetOutrankShare) - -TargetRoas = _reflection.GeneratedProtocolMessageType('TargetRoas', (_message.Message,), dict( - DESCRIPTOR = _TARGETROAS, - __module__ = 'google.ads.googleads_v1.proto.common.bidding_pb2' - , - __doc__ = """An automated bidding strategy that helps you maximize revenue while - averaging a specific target return on ad spend (ROAS). - - - Attributes: - target_roas: - Required. The desired revenue (based on conversion data) per - unit of spend. Value must be between 0.01 and 1000.0, - inclusive. - cpc_bid_ceiling_micros: - Maximum bid limit that can be set by the bid strategy. The - limit applies to all keywords managed by the strategy. - cpc_bid_floor_micros: - Minimum bid limit that can be set by the bid strategy. The - limit applies to all keywords managed by the strategy. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.TargetRoas) - )) -_sym_db.RegisterMessage(TargetRoas) - -TargetSpend = _reflection.GeneratedProtocolMessageType('TargetSpend', (_message.Message,), dict( - DESCRIPTOR = _TARGETSPEND, - __module__ = 'google.ads.googleads_v1.proto.common.bidding_pb2' - , - __doc__ = """An automated bid strategy that sets your bids to help get as many clicks - as possible within your budget. - - - Attributes: - target_spend_micros: - The spend target under which to maximize clicks. A TargetSpend - bidder will attempt to spend the smaller of this value or the - natural throttling spend amount. If not specified, the budget - is used as the spend target. - cpc_bid_ceiling_micros: - Maximum bid limit that can be set by the bid strategy. The - limit applies to all keywords managed by the strategy. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.TargetSpend) - )) -_sym_db.RegisterMessage(TargetSpend) - -PercentCpc = _reflection.GeneratedProtocolMessageType('PercentCpc', (_message.Message,), dict( - DESCRIPTOR = _PERCENTCPC, - __module__ = 'google.ads.googleads_v1.proto.common.bidding_pb2' - , - __doc__ = """A bidding strategy where bids are a fraction of the advertised price for - some good or service. - - - Attributes: - cpc_bid_ceiling_micros: - Maximum bid limit that can be set by the bid strategy. This is - an optional field entered by the advertiser and specified in - local micros. Note: A zero value is interpreted in the same - way as having bid\_ceiling undefined. - enhanced_cpc_enabled: - Adjusts the bid for each auction upward or downward, depending - on the likelihood of a conversion. Individual bids may exceed - cpc\_bid\_ceiling\_micros, but the average bid amount for a - campaign should not. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.PercentCpc) - )) -_sym_db.RegisterMessage(PercentCpc) - - -DESCRIPTOR._options = None -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/common/custom_parameter_pb2.py b/google/ads/google_ads/v1/proto/common/custom_parameter_pb2.py deleted file mode 100644 index 8f42ce6be..000000000 --- a/google/ads/google_ads/v1/proto/common/custom_parameter_pb2.py +++ /dev/null @@ -1,94 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/common/custom_parameter.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/common/custom_parameter.proto', - package='google.ads.googleads.v1.common', - syntax='proto3', - serialized_options=_b('\n\"com.google.ads.googleads.v1.commonB\024CustomParameterProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/common;common\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V1.Common\312\002\036Google\\Ads\\GoogleAds\\V1\\Common\352\002\"Google::Ads::GoogleAds::V1::Common'), - serialized_pb=_b('\n;google/ads/googleads_v1/proto/common/custom_parameter.proto\x12\x1egoogle.ads.googleads.v1.common\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1cgoogle/api/annotations.proto\"i\n\x0f\x43ustomParameter\x12)\n\x03key\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12+\n\x05value\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValueB\xef\x01\n\"com.google.ads.googleads.v1.commonB\x14\x43ustomParameterProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/common;common\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V1.Common\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V1\\Common\xea\x02\"Google::Ads::GoogleAds::V1::Commonb\x06proto3') - , - dependencies=[google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - - -_CUSTOMPARAMETER = _descriptor.Descriptor( - name='CustomParameter', - full_name='google.ads.googleads.v1.common.CustomParameter', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='key', full_name='google.ads.googleads.v1.common.CustomParameter.key', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='value', full_name='google.ads.googleads.v1.common.CustomParameter.value', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=157, - serialized_end=262, -) - -_CUSTOMPARAMETER.fields_by_name['key'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_CUSTOMPARAMETER.fields_by_name['value'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -DESCRIPTOR.message_types_by_name['CustomParameter'] = _CUSTOMPARAMETER -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -CustomParameter = _reflection.GeneratedProtocolMessageType('CustomParameter', (_message.Message,), dict( - DESCRIPTOR = _CUSTOMPARAMETER, - __module__ = 'google.ads.googleads_v1.proto.common.custom_parameter_pb2' - , - __doc__ = """A mapping that can be used by custom parameter tags in a - ``tracking_url_template``, ``final_urls``, or ``mobile_final_urls``. - - - Attributes: - key: - The key matching the parameter tag name. - value: - The value to be substituted. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.CustomParameter) - )) -_sym_db.RegisterMessage(CustomParameter) - - -DESCRIPTOR._options = None -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/common/dates_pb2.py b/google/ads/google_ads/v1/proto/common/dates_pb2.py deleted file mode 100644 index cbf592e8f..000000000 --- a/google/ads/google_ads/v1/proto/common/dates_pb2.py +++ /dev/null @@ -1,93 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/common/dates.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/common/dates.proto', - package='google.ads.googleads.v1.common', - syntax='proto3', - serialized_options=_b('\n\"com.google.ads.googleads.v1.commonB\nDatesProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/common;common\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V1.Common\312\002\036Google\\Ads\\GoogleAds\\V1\\Common\352\002\"Google::Ads::GoogleAds::V1::Common'), - serialized_pb=_b('\n0google/ads/googleads_v1/proto/common/dates.proto\x12\x1egoogle.ads.googleads.v1.common\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1cgoogle/api/annotations.proto\"m\n\tDateRange\x12\x30\n\nstart_date\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12.\n\x08\x65nd_date\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValueB\xe5\x01\n\"com.google.ads.googleads.v1.commonB\nDatesProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/common;common\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V1.Common\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V1\\Common\xea\x02\"Google::Ads::GoogleAds::V1::Commonb\x06proto3') - , - dependencies=[google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - - -_DATERANGE = _descriptor.Descriptor( - name='DateRange', - full_name='google.ads.googleads.v1.common.DateRange', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='start_date', full_name='google.ads.googleads.v1.common.DateRange.start_date', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='end_date', full_name='google.ads.googleads.v1.common.DateRange.end_date', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=146, - serialized_end=255, -) - -_DATERANGE.fields_by_name['start_date'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_DATERANGE.fields_by_name['end_date'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -DESCRIPTOR.message_types_by_name['DateRange'] = _DATERANGE -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -DateRange = _reflection.GeneratedProtocolMessageType('DateRange', (_message.Message,), dict( - DESCRIPTOR = _DATERANGE, - __module__ = 'google.ads.googleads_v1.proto.common.dates_pb2' - , - __doc__ = """A date range. - - - Attributes: - start_date: - The start date, in yyyy-mm-dd format. - end_date: - The end date, in yyyy-mm-dd format. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.DateRange) - )) -_sym_db.RegisterMessage(DateRange) - - -DESCRIPTOR._options = None -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/common/explorer_auto_optimizer_setting_pb2.py b/google/ads/google_ads/v1/proto/common/explorer_auto_optimizer_setting_pb2.py deleted file mode 100644 index 6243184ed..000000000 --- a/google/ads/google_ads/v1/proto/common/explorer_auto_optimizer_setting_pb2.py +++ /dev/null @@ -1,84 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/common/explorer_auto_optimizer_setting.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/common/explorer_auto_optimizer_setting.proto', - package='google.ads.googleads.v1.common', - syntax='proto3', - serialized_options=_b('\n\"com.google.ads.googleads.v1.commonB!ExplorerAutoOptimizerSettingProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/common;common\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V1.Common\312\002\036Google\\Ads\\GoogleAds\\V1\\Common\352\002\"Google::Ads::GoogleAds::V1::Common'), - serialized_pb=_b('\nJgoogle/ads/googleads_v1/proto/common/explorer_auto_optimizer_setting.proto\x12\x1egoogle.ads.googleads.v1.common\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1cgoogle/api/annotations.proto\"J\n\x1c\x45xplorerAutoOptimizerSetting\x12*\n\x06opt_in\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.BoolValueB\xfc\x01\n\"com.google.ads.googleads.v1.commonB!ExplorerAutoOptimizerSettingProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/common;common\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V1.Common\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V1\\Common\xea\x02\"Google::Ads::GoogleAds::V1::Commonb\x06proto3') - , - dependencies=[google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - - -_EXPLORERAUTOOPTIMIZERSETTING = _descriptor.Descriptor( - name='ExplorerAutoOptimizerSetting', - full_name='google.ads.googleads.v1.common.ExplorerAutoOptimizerSetting', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='opt_in', full_name='google.ads.googleads.v1.common.ExplorerAutoOptimizerSetting.opt_in', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=172, - serialized_end=246, -) - -_EXPLORERAUTOOPTIMIZERSETTING.fields_by_name['opt_in'].message_type = google_dot_protobuf_dot_wrappers__pb2._BOOLVALUE -DESCRIPTOR.message_types_by_name['ExplorerAutoOptimizerSetting'] = _EXPLORERAUTOOPTIMIZERSETTING -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -ExplorerAutoOptimizerSetting = _reflection.GeneratedProtocolMessageType('ExplorerAutoOptimizerSetting', (_message.Message,), dict( - DESCRIPTOR = _EXPLORERAUTOOPTIMIZERSETTING, - __module__ = 'google.ads.googleads_v1.proto.common.explorer_auto_optimizer_setting_pb2' - , - __doc__ = """Settings for the Display Campaign Optimizer, initially termed - "Explorer". - - - Attributes: - opt_in: - Indicates whether the optimizer is turned on. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.ExplorerAutoOptimizerSetting) - )) -_sym_db.RegisterMessage(ExplorerAutoOptimizerSetting) - - -DESCRIPTOR._options = None -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/common/feed_common_pb2.py b/google/ads/google_ads/v1/proto/common/feed_common_pb2.py deleted file mode 100644 index 12863d42c..000000000 --- a/google/ads/google_ads/v1/proto/common/feed_common_pb2.py +++ /dev/null @@ -1,93 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/common/feed_common.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/common/feed_common.proto', - package='google.ads.googleads.v1.common', - syntax='proto3', - serialized_options=_b('\n\"com.google.ads.googleads.v1.commonB\017FeedCommonProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/common;common\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V1.Common\312\002\036Google\\Ads\\GoogleAds\\V1\\Common\352\002\"Google::Ads::GoogleAds::V1::Common'), - serialized_pb=_b('\n6google/ads/googleads_v1/proto/common/feed_common.proto\x12\x1egoogle.ads.googleads.v1.common\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1cgoogle/api/annotations.proto\"p\n\x05Money\x12\x33\n\rcurrency_code\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x32\n\ramount_micros\x18\x02 \x01(\x0b\x32\x1b.google.protobuf.Int64ValueB\xea\x01\n\"com.google.ads.googleads.v1.commonB\x0f\x46\x65\x65\x64\x43ommonProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/common;common\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V1.Common\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V1\\Common\xea\x02\"Google::Ads::GoogleAds::V1::Commonb\x06proto3') - , - dependencies=[google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - - -_MONEY = _descriptor.Descriptor( - name='Money', - full_name='google.ads.googleads.v1.common.Money', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='currency_code', full_name='google.ads.googleads.v1.common.Money.currency_code', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='amount_micros', full_name='google.ads.googleads.v1.common.Money.amount_micros', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=152, - serialized_end=264, -) - -_MONEY.fields_by_name['currency_code'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_MONEY.fields_by_name['amount_micros'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -DESCRIPTOR.message_types_by_name['Money'] = _MONEY -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -Money = _reflection.GeneratedProtocolMessageType('Money', (_message.Message,), dict( - DESCRIPTOR = _MONEY, - __module__ = 'google.ads.googleads_v1.proto.common.feed_common_pb2' - , - __doc__ = """Represents a price in a particular currency. - - - Attributes: - currency_code: - Three-character ISO 4217 currency code. - amount_micros: - Amount in micros. One million is equivalent to one unit. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.Money) - )) -_sym_db.RegisterMessage(Money) - - -DESCRIPTOR._options = None -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/common/final_app_url_pb2.py b/google/ads/google_ads/v1/proto/common/final_app_url_pb2.py deleted file mode 100644 index 52c13f63b..000000000 --- a/google/ads/google_ads/v1/proto/common/final_app_url_pb2.py +++ /dev/null @@ -1,100 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/common/final_app_url.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.ads.google_ads.v1.proto.enums import app_url_operating_system_type_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_app__url__operating__system__type__pb2 -from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/common/final_app_url.proto', - package='google.ads.googleads.v1.common', - syntax='proto3', - serialized_options=_b('\n\"com.google.ads.googleads.v1.commonB\020FinalAppUrlProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/common;common\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V1.Common\312\002\036Google\\Ads\\GoogleAds\\V1\\Common\352\002\"Google::Ads::GoogleAds::V1::Common'), - serialized_pb=_b('\n8google/ads/googleads_v1/proto/common/final_app_url.proto\x12\x1egoogle.ads.googleads.v1.common\x1aGgoogle/ads/googleads_v1/proto/enums/app_url_operating_system_type.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1cgoogle/api/annotations.proto\"\xa1\x01\n\x0b\x46inalAppUrl\x12g\n\x07os_type\x18\x01 \x01(\x0e\x32V.google.ads.googleads.v1.enums.AppUrlOperatingSystemTypeEnum.AppUrlOperatingSystemType\x12)\n\x03url\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValueB\xeb\x01\n\"com.google.ads.googleads.v1.commonB\x10\x46inalAppUrlProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/common;common\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V1.Common\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V1\\Common\xea\x02\"Google::Ads::GoogleAds::V1::Commonb\x06proto3') - , - dependencies=[google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_app__url__operating__system__type__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - - -_FINALAPPURL = _descriptor.Descriptor( - name='FinalAppUrl', - full_name='google.ads.googleads.v1.common.FinalAppUrl', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='os_type', full_name='google.ads.googleads.v1.common.FinalAppUrl.os_type', index=0, - number=1, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='url', full_name='google.ads.googleads.v1.common.FinalAppUrl.url', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=228, - serialized_end=389, -) - -_FINALAPPURL.fields_by_name['os_type'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_app__url__operating__system__type__pb2._APPURLOPERATINGSYSTEMTYPEENUM_APPURLOPERATINGSYSTEMTYPE -_FINALAPPURL.fields_by_name['url'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -DESCRIPTOR.message_types_by_name['FinalAppUrl'] = _FINALAPPURL -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -FinalAppUrl = _reflection.GeneratedProtocolMessageType('FinalAppUrl', (_message.Message,), dict( - DESCRIPTOR = _FINALAPPURL, - __module__ = 'google.ads.googleads_v1.proto.common.final_app_url_pb2' - , - __doc__ = """A URL for deep linking into an app for the given operating system. - - - Attributes: - os_type: - The operating system targeted by this URL. Required. - url: - The app deep link URL. Deep links specify a location in an app - that corresponds to the content you'd like to show, and should - be of the form {scheme}://{host\_path} The scheme identifies - which app to open. For your app, you can use a custom scheme - that starts with the app's name. The host and path specify the - unique location in the app where your content exists. Example: - "exampleapp://productid\_1234". Required. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.FinalAppUrl) - )) -_sym_db.RegisterMessage(FinalAppUrl) - - -DESCRIPTOR._options = None -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/common/frequency_cap_pb2.py b/google/ads/google_ads/v1/proto/common/frequency_cap_pb2.py deleted file mode 100644 index a5cf16403..000000000 --- a/google/ads/google_ads/v1/proto/common/frequency_cap_pb2.py +++ /dev/null @@ -1,180 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/common/frequency_cap.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.ads.google_ads.v1.proto.enums import frequency_cap_event_type_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_frequency__cap__event__type__pb2 -from google.ads.google_ads.v1.proto.enums import frequency_cap_level_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_frequency__cap__level__pb2 -from google.ads.google_ads.v1.proto.enums import frequency_cap_time_unit_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_frequency__cap__time__unit__pb2 -from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/common/frequency_cap.proto', - package='google.ads.googleads.v1.common', - syntax='proto3', - serialized_options=_b('\n\"com.google.ads.googleads.v1.commonB\021FrequencyCapProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/common;common\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V1.Common\312\002\036Google\\Ads\\GoogleAds\\V1\\Common\352\002\"Google::Ads::GoogleAds::V1::Common'), - serialized_pb=_b('\n8google/ads/googleads_v1/proto/common/frequency_cap.proto\x12\x1egoogle.ads.googleads.v1.common\x1a\x42google/ads/googleads_v1/proto/enums/frequency_cap_event_type.proto\x1a=google/ads/googleads_v1/proto/enums/frequency_cap_level.proto\x1a\x41google/ads/googleads_v1/proto/enums/frequency_cap_time_unit.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1cgoogle/api/annotations.proto\"{\n\x11\x46requencyCapEntry\x12<\n\x03key\x18\x01 \x01(\x0b\x32/.google.ads.googleads.v1.common.FrequencyCapKey\x12(\n\x03\x63\x61p\x18\x02 \x01(\x0b\x32\x1b.google.protobuf.Int32Value\"\xdf\x02\n\x0f\x46requencyCapKey\x12U\n\x05level\x18\x01 \x01(\x0e\x32\x46.google.ads.googleads.v1.enums.FrequencyCapLevelEnum.FrequencyCapLevel\x12\x62\n\nevent_type\x18\x03 \x01(\x0e\x32N.google.ads.googleads.v1.enums.FrequencyCapEventTypeEnum.FrequencyCapEventType\x12_\n\ttime_unit\x18\x02 \x01(\x0e\x32L.google.ads.googleads.v1.enums.FrequencyCapTimeUnitEnum.FrequencyCapTimeUnit\x12\x30\n\x0btime_length\x18\x04 \x01(\x0b\x32\x1b.google.protobuf.Int32ValueB\xec\x01\n\"com.google.ads.googleads.v1.commonB\x11\x46requencyCapProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/common;common\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V1.Common\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V1\\Common\xea\x02\"Google::Ads::GoogleAds::V1::Commonb\x06proto3') - , - dependencies=[google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_frequency__cap__event__type__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_frequency__cap__level__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_frequency__cap__time__unit__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - - -_FREQUENCYCAPENTRY = _descriptor.Descriptor( - name='FrequencyCapEntry', - full_name='google.ads.googleads.v1.common.FrequencyCapEntry', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='key', full_name='google.ads.googleads.v1.common.FrequencyCapEntry.key', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='cap', full_name='google.ads.googleads.v1.common.FrequencyCapEntry.cap', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=352, - serialized_end=475, -) - - -_FREQUENCYCAPKEY = _descriptor.Descriptor( - name='FrequencyCapKey', - full_name='google.ads.googleads.v1.common.FrequencyCapKey', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='level', full_name='google.ads.googleads.v1.common.FrequencyCapKey.level', index=0, - number=1, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='event_type', full_name='google.ads.googleads.v1.common.FrequencyCapKey.event_type', index=1, - number=3, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='time_unit', full_name='google.ads.googleads.v1.common.FrequencyCapKey.time_unit', index=2, - number=2, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='time_length', full_name='google.ads.googleads.v1.common.FrequencyCapKey.time_length', index=3, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=478, - serialized_end=829, -) - -_FREQUENCYCAPENTRY.fields_by_name['key'].message_type = _FREQUENCYCAPKEY -_FREQUENCYCAPENTRY.fields_by_name['cap'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT32VALUE -_FREQUENCYCAPKEY.fields_by_name['level'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_frequency__cap__level__pb2._FREQUENCYCAPLEVELENUM_FREQUENCYCAPLEVEL -_FREQUENCYCAPKEY.fields_by_name['event_type'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_frequency__cap__event__type__pb2._FREQUENCYCAPEVENTTYPEENUM_FREQUENCYCAPEVENTTYPE -_FREQUENCYCAPKEY.fields_by_name['time_unit'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_frequency__cap__time__unit__pb2._FREQUENCYCAPTIMEUNITENUM_FREQUENCYCAPTIMEUNIT -_FREQUENCYCAPKEY.fields_by_name['time_length'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT32VALUE -DESCRIPTOR.message_types_by_name['FrequencyCapEntry'] = _FREQUENCYCAPENTRY -DESCRIPTOR.message_types_by_name['FrequencyCapKey'] = _FREQUENCYCAPKEY -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -FrequencyCapEntry = _reflection.GeneratedProtocolMessageType('FrequencyCapEntry', (_message.Message,), dict( - DESCRIPTOR = _FREQUENCYCAPENTRY, - __module__ = 'google.ads.googleads_v1.proto.common.frequency_cap_pb2' - , - __doc__ = """A rule specifying the maximum number of times an ad (or some set of ads) - can be shown to a user over a particular time period. - - - Attributes: - key: - The key of a particular frequency cap. There can be no more - than one frequency cap with the same key. - cap: - Maximum number of events allowed during the time range by this - cap. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.FrequencyCapEntry) - )) -_sym_db.RegisterMessage(FrequencyCapEntry) - -FrequencyCapKey = _reflection.GeneratedProtocolMessageType('FrequencyCapKey', (_message.Message,), dict( - DESCRIPTOR = _FREQUENCYCAPKEY, - __module__ = 'google.ads.googleads_v1.proto.common.frequency_cap_pb2' - , - __doc__ = """A group of fields used as keys for a frequency cap. There can be no more - than one frequency cap with the same key. - - - Attributes: - level: - The level on which the cap is to be applied (e.g. ad group ad, - ad group). The cap is applied to all the entities of this - level. - event_type: - The type of event that the cap applies to (e.g. impression). - time_unit: - Unit of time the cap is defined at (e.g. day, week). - time_length: - Number of time units the cap lasts. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.FrequencyCapKey) - )) -_sym_db.RegisterMessage(FrequencyCapKey) - - -DESCRIPTOR._options = None -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/common/keyword_plan_common_pb2.py b/google/ads/google_ads/v1/proto/common/keyword_plan_common_pb2.py deleted file mode 100644 index 37b7cd059..000000000 --- a/google/ads/google_ads/v1/proto/common/keyword_plan_common_pb2.py +++ /dev/null @@ -1,94 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/common/keyword_plan_common.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.ads.google_ads.v1.proto.enums import keyword_plan_competition_level_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_keyword__plan__competition__level__pb2 -from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/common/keyword_plan_common.proto', - package='google.ads.googleads.v1.common', - syntax='proto3', - serialized_options=_b('\n\"com.google.ads.googleads.v1.commonB\026KeywordPlanCommonProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/common;common\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V1.Common\312\002\036Google\\Ads\\GoogleAds\\V1\\Common\352\002\"Google::Ads::GoogleAds::V1::Common'), - serialized_pb=_b('\n>google/ads/googleads_v1/proto/common/keyword_plan_common.proto\x12\x1egoogle.ads.googleads.v1.common\x1aHgoogle/ads/googleads_v1/proto/enums/keyword_plan_competition_level.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1cgoogle/api/annotations.proto\"\xca\x01\n\x1cKeywordPlanHistoricalMetrics\x12\x39\n\x14\x61vg_monthly_searches\x18\x01 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12o\n\x0b\x63ompetition\x18\x02 \x01(\x0e\x32Z.google.ads.googleads.v1.enums.KeywordPlanCompetitionLevelEnum.KeywordPlanCompetitionLevelB\xf1\x01\n\"com.google.ads.googleads.v1.commonB\x16KeywordPlanCommonProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/common;common\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V1.Common\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V1\\Common\xea\x02\"Google::Ads::GoogleAds::V1::Commonb\x06proto3') - , - dependencies=[google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_keyword__plan__competition__level__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - - -_KEYWORDPLANHISTORICALMETRICS = _descriptor.Descriptor( - name='KeywordPlanHistoricalMetrics', - full_name='google.ads.googleads.v1.common.KeywordPlanHistoricalMetrics', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='avg_monthly_searches', full_name='google.ads.googleads.v1.common.KeywordPlanHistoricalMetrics.avg_monthly_searches', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='competition', full_name='google.ads.googleads.v1.common.KeywordPlanHistoricalMetrics.competition', index=1, - number=2, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=235, - serialized_end=437, -) - -_KEYWORDPLANHISTORICALMETRICS.fields_by_name['avg_monthly_searches'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -_KEYWORDPLANHISTORICALMETRICS.fields_by_name['competition'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_keyword__plan__competition__level__pb2._KEYWORDPLANCOMPETITIONLEVELENUM_KEYWORDPLANCOMPETITIONLEVEL -DESCRIPTOR.message_types_by_name['KeywordPlanHistoricalMetrics'] = _KEYWORDPLANHISTORICALMETRICS -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -KeywordPlanHistoricalMetrics = _reflection.GeneratedProtocolMessageType('KeywordPlanHistoricalMetrics', (_message.Message,), dict( - DESCRIPTOR = _KEYWORDPLANHISTORICALMETRICS, - __module__ = 'google.ads.googleads_v1.proto.common.keyword_plan_common_pb2' - , - __doc__ = """Historical metrics. - - - Attributes: - avg_monthly_searches: - Average monthly searches for the past 12 months. - competition: - The competition level for the query. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.KeywordPlanHistoricalMetrics) - )) -_sym_db.RegisterMessage(KeywordPlanHistoricalMetrics) - - -DESCRIPTOR._options = None -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/common/metrics_pb2.py b/google/ads/google_ads/v1/proto/common/metrics_pb2.py deleted file mode 100644 index f013b2668..000000000 --- a/google/ads/google_ads/v1/proto/common/metrics_pb2.py +++ /dev/null @@ -1,1380 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/common/metrics.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.ads.google_ads.v1.proto.enums import interaction_event_type_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_interaction__event__type__pb2 -from google.ads.google_ads.v1.proto.enums import quality_score_bucket_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_quality__score__bucket__pb2 -from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/common/metrics.proto', - package='google.ads.googleads.v1.common', - syntax='proto3', - serialized_options=_b('\n\"com.google.ads.googleads.v1.commonB\014MetricsProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/common;common\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V1.Common\312\002\036Google\\Ads\\GoogleAds\\V1\\Common\352\002\"Google::Ads::GoogleAds::V1::Common'), - serialized_pb=_b('\n2google/ads/googleads_v1/proto/common/metrics.proto\x12\x1egoogle.ads.googleads.v1.common\x1a@google/ads/googleads_v1/proto/enums/interaction_event_type.proto\x1a>google/ads/googleads_v1/proto/enums/quality_score_bucket.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1cgoogle/api/annotations.proto\"\xb3\x39\n\x07Metrics\x12H\n\"absolute_top_impression_percentage\x18_ \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12\x35\n\x0f\x61\x63tive_view_cpm\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12\x35\n\x0f\x61\x63tive_view_ctr\x18O \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12<\n\x17\x61\x63tive_view_impressions\x18\x02 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12?\n\x19\x61\x63tive_view_measurability\x18` \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12G\n\"active_view_measurable_cost_micros\x18\x03 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12G\n\"active_view_measurable_impressions\x18\x04 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12=\n\x17\x61\x63tive_view_viewability\x18\x61 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12L\n&all_conversions_from_interactions_rate\x18\x41 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12;\n\x15\x61ll_conversions_value\x18\x42 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12\x35\n\x0f\x61ll_conversions\x18\x07 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12\x44\n\x1e\x61ll_conversions_value_per_cost\x18> \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12H\n\"all_conversions_from_click_to_call\x18v \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12\x45\n\x1f\x61ll_conversions_from_directions\x18w \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12]\n7all_conversions_from_interactions_value_per_interaction\x18\x43 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12?\n\x19\x61ll_conversions_from_menu\x18x \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12@\n\x1a\x61ll_conversions_from_order\x18y \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12K\n%all_conversions_from_other_engagement\x18z \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12\x46\n all_conversions_from_store_visit\x18{ \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12H\n\"all_conversions_from_store_website\x18| \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12\x32\n\x0c\x61verage_cost\x18\x08 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12\x31\n\x0b\x61verage_cpc\x18\t \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12\x31\n\x0b\x61verage_cpe\x18\x62 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12\x31\n\x0b\x61verage_cpm\x18\n \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12\x31\n\x0b\x61verage_cpv\x18\x0b \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12\x37\n\x11\x61verage_frequency\x18\x0c \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12\x38\n\x12\x61verage_page_views\x18\x63 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12\x36\n\x10\x61verage_position\x18\r \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12:\n\x14\x61verage_time_on_site\x18T \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12?\n\x19\x62\x65nchmark_average_max_cpc\x18\x0e \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12\x33\n\rbenchmark_ctr\x18M \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12\x31\n\x0b\x62ounce_rate\x18\x0f \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12+\n\x06\x63licks\x18\x13 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x34\n\x0f\x63ombined_clicks\x18s \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12?\n\x19\x63ombined_clicks_per_query\x18t \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12\x35\n\x10\x63ombined_queries\x18u \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12J\n$content_budget_lost_impression_share\x18\x14 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12>\n\x18\x63ontent_impression_share\x18\x15 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12P\n*conversion_last_received_request_date_time\x18I \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x45\n\x1f\x63onversion_last_conversion_date\x18J \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12H\n\"content_rank_lost_impression_share\x18\x16 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12H\n\"conversions_from_interactions_rate\x18\x45 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12\x37\n\x11\x63onversions_value\x18\x46 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12@\n\x1a\x63onversions_value_per_cost\x18G \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12Y\n3conversions_from_interactions_value_per_interaction\x18H \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12\x31\n\x0b\x63onversions\x18\x19 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12\x30\n\x0b\x63ost_micros\x18\x1a \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12>\n\x18\x63ost_per_all_conversions\x18\x44 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12\x39\n\x13\x63ost_per_conversion\x18\x1c \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12R\n,cost_per_current_model_attributed_conversion\x18j \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12>\n\x18\x63ross_device_conversions\x18\x1d \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12)\n\x03\x63tr\x18\x1e \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12J\n$current_model_attributed_conversions\x18\x65 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12\x61\n;current_model_attributed_conversions_from_interactions_rate\x18\x66 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12r\nLcurrent_model_attributed_conversions_from_interactions_value_per_interaction\x18g \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12P\n*current_model_attributed_conversions_value\x18h \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12Y\n3current_model_attributed_conversions_value_per_cost\x18i \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12\x35\n\x0f\x65ngagement_rate\x18\x1f \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12\x30\n\x0b\x65ngagements\x18 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x45\n\x1fhotel_average_lead_value_micros\x18K \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12s\n!historical_creative_quality_score\x18P \x01(\x0e\x32H.google.ads.googleads.v1.enums.QualityScoreBucketEnum.QualityScoreBucket\x12w\n%historical_landing_page_quality_score\x18Q \x01(\x0e\x32H.google.ads.googleads.v1.enums.QualityScoreBucketEnum.QualityScoreBucket\x12=\n\x18historical_quality_score\x18R \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12q\n\x1fhistorical_search_predicted_ctr\x18S \x01(\x0e\x32H.google.ads.googleads.v1.enums.QualityScoreBucketEnum.QualityScoreBucket\x12\x33\n\x0egmail_forwards\x18U \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x30\n\x0bgmail_saves\x18V \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12;\n\x16gmail_secondary_clicks\x18W \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x35\n\x10impression_reach\x18$ \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x41\n\x1cimpressions_from_store_reach\x18} \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x30\n\x0bimpressions\x18% \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x36\n\x10interaction_rate\x18& \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12\x31\n\x0cinteractions\x18\' \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12m\n\x17interaction_event_types\x18\x64 \x03(\x0e\x32L.google.ads.googleads.v1.enums.InteractionEventTypeEnum.InteractionEventType\x12\x38\n\x12invalid_click_rate\x18( \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12\x33\n\x0einvalid_clicks\x18) \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12G\n!mobile_friendly_clicks_percentage\x18m \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12\x33\n\x0eorganic_clicks\x18n \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12>\n\x18organic_clicks_per_query\x18o \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12\x38\n\x13organic_impressions\x18p \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x43\n\x1dorganic_impressions_per_query\x18q \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12\x34\n\x0forganic_queries\x18r \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12:\n\x14percent_new_visitors\x18* \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12\x30\n\x0bphone_calls\x18+ \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x36\n\x11phone_impressions\x18, \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x38\n\x12phone_through_rate\x18- \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12\x32\n\x0crelative_ctr\x18. \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12J\n$search_absolute_top_impression_share\x18N \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12V\n0search_budget_lost_absolute_top_impression_share\x18X \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12I\n#search_budget_lost_impression_share\x18/ \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12M\n\'search_budget_lost_top_impression_share\x18Y \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12\x38\n\x12search_click_share\x18\x30 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12I\n#search_exact_match_impression_share\x18\x31 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12=\n\x17search_impression_share\x18\x32 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12T\n.search_rank_lost_absolute_top_impression_share\x18Z \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12G\n!search_rank_lost_impression_share\x18\x33 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12K\n%search_rank_lost_top_impression_share\x18[ \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12\x41\n\x1bsearch_top_impression_share\x18\\ \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12\x30\n\x0bspeed_score\x18k \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12?\n\x19top_impression_percentage\x18] \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12V\n0valid_accelerated_mobile_pages_clicks_percentage\x18l \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12?\n\x19value_per_all_conversions\x18\x34 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12:\n\x14value_per_conversion\x18\x35 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12S\n-value_per_current_model_attributed_conversion\x18^ \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12=\n\x17video_quartile_100_rate\x18\x36 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12<\n\x16video_quartile_25_rate\x18\x37 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12<\n\x16video_quartile_50_rate\x18\x38 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12<\n\x16video_quartile_75_rate\x18\x39 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12\x35\n\x0fvideo_view_rate\x18: \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12\x30\n\x0bvideo_views\x18; \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12=\n\x18view_through_conversions\x18< \x01(\x0b\x32\x1b.google.protobuf.Int64ValueB\xe7\x01\n\"com.google.ads.googleads.v1.commonB\x0cMetricsProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/common;common\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V1.Common\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V1\\Common\xea\x02\"Google::Ads::GoogleAds::V1::Commonb\x06proto3') - , - dependencies=[google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_interaction__event__type__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_quality__score__bucket__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - - -_METRICS = _descriptor.Descriptor( - name='Metrics', - full_name='google.ads.googleads.v1.common.Metrics', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='absolute_top_impression_percentage', full_name='google.ads.googleads.v1.common.Metrics.absolute_top_impression_percentage', index=0, - number=95, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='active_view_cpm', full_name='google.ads.googleads.v1.common.Metrics.active_view_cpm', index=1, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='active_view_ctr', full_name='google.ads.googleads.v1.common.Metrics.active_view_ctr', index=2, - number=79, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='active_view_impressions', full_name='google.ads.googleads.v1.common.Metrics.active_view_impressions', index=3, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='active_view_measurability', full_name='google.ads.googleads.v1.common.Metrics.active_view_measurability', index=4, - number=96, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='active_view_measurable_cost_micros', full_name='google.ads.googleads.v1.common.Metrics.active_view_measurable_cost_micros', index=5, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='active_view_measurable_impressions', full_name='google.ads.googleads.v1.common.Metrics.active_view_measurable_impressions', index=6, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='active_view_viewability', full_name='google.ads.googleads.v1.common.Metrics.active_view_viewability', index=7, - number=97, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='all_conversions_from_interactions_rate', full_name='google.ads.googleads.v1.common.Metrics.all_conversions_from_interactions_rate', index=8, - number=65, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='all_conversions_value', full_name='google.ads.googleads.v1.common.Metrics.all_conversions_value', index=9, - number=66, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='all_conversions', full_name='google.ads.googleads.v1.common.Metrics.all_conversions', index=10, - number=7, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='all_conversions_value_per_cost', full_name='google.ads.googleads.v1.common.Metrics.all_conversions_value_per_cost', index=11, - number=62, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='all_conversions_from_click_to_call', full_name='google.ads.googleads.v1.common.Metrics.all_conversions_from_click_to_call', index=12, - number=118, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='all_conversions_from_directions', full_name='google.ads.googleads.v1.common.Metrics.all_conversions_from_directions', index=13, - number=119, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='all_conversions_from_interactions_value_per_interaction', full_name='google.ads.googleads.v1.common.Metrics.all_conversions_from_interactions_value_per_interaction', index=14, - number=67, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='all_conversions_from_menu', full_name='google.ads.googleads.v1.common.Metrics.all_conversions_from_menu', index=15, - number=120, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='all_conversions_from_order', full_name='google.ads.googleads.v1.common.Metrics.all_conversions_from_order', index=16, - number=121, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='all_conversions_from_other_engagement', full_name='google.ads.googleads.v1.common.Metrics.all_conversions_from_other_engagement', index=17, - number=122, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='all_conversions_from_store_visit', full_name='google.ads.googleads.v1.common.Metrics.all_conversions_from_store_visit', index=18, - number=123, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='all_conversions_from_store_website', full_name='google.ads.googleads.v1.common.Metrics.all_conversions_from_store_website', index=19, - number=124, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='average_cost', full_name='google.ads.googleads.v1.common.Metrics.average_cost', index=20, - number=8, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='average_cpc', full_name='google.ads.googleads.v1.common.Metrics.average_cpc', index=21, - number=9, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='average_cpe', full_name='google.ads.googleads.v1.common.Metrics.average_cpe', index=22, - number=98, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='average_cpm', full_name='google.ads.googleads.v1.common.Metrics.average_cpm', index=23, - number=10, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='average_cpv', full_name='google.ads.googleads.v1.common.Metrics.average_cpv', index=24, - number=11, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='average_frequency', full_name='google.ads.googleads.v1.common.Metrics.average_frequency', index=25, - number=12, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='average_page_views', full_name='google.ads.googleads.v1.common.Metrics.average_page_views', index=26, - number=99, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='average_position', full_name='google.ads.googleads.v1.common.Metrics.average_position', index=27, - number=13, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='average_time_on_site', full_name='google.ads.googleads.v1.common.Metrics.average_time_on_site', index=28, - number=84, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='benchmark_average_max_cpc', full_name='google.ads.googleads.v1.common.Metrics.benchmark_average_max_cpc', index=29, - number=14, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='benchmark_ctr', full_name='google.ads.googleads.v1.common.Metrics.benchmark_ctr', index=30, - number=77, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='bounce_rate', full_name='google.ads.googleads.v1.common.Metrics.bounce_rate', index=31, - number=15, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='clicks', full_name='google.ads.googleads.v1.common.Metrics.clicks', index=32, - number=19, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='combined_clicks', full_name='google.ads.googleads.v1.common.Metrics.combined_clicks', index=33, - number=115, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='combined_clicks_per_query', full_name='google.ads.googleads.v1.common.Metrics.combined_clicks_per_query', index=34, - number=116, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='combined_queries', full_name='google.ads.googleads.v1.common.Metrics.combined_queries', index=35, - number=117, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='content_budget_lost_impression_share', full_name='google.ads.googleads.v1.common.Metrics.content_budget_lost_impression_share', index=36, - number=20, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='content_impression_share', full_name='google.ads.googleads.v1.common.Metrics.content_impression_share', index=37, - number=21, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='conversion_last_received_request_date_time', full_name='google.ads.googleads.v1.common.Metrics.conversion_last_received_request_date_time', index=38, - number=73, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='conversion_last_conversion_date', full_name='google.ads.googleads.v1.common.Metrics.conversion_last_conversion_date', index=39, - number=74, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='content_rank_lost_impression_share', full_name='google.ads.googleads.v1.common.Metrics.content_rank_lost_impression_share', index=40, - number=22, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='conversions_from_interactions_rate', full_name='google.ads.googleads.v1.common.Metrics.conversions_from_interactions_rate', index=41, - number=69, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='conversions_value', full_name='google.ads.googleads.v1.common.Metrics.conversions_value', index=42, - number=70, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='conversions_value_per_cost', full_name='google.ads.googleads.v1.common.Metrics.conversions_value_per_cost', index=43, - number=71, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='conversions_from_interactions_value_per_interaction', full_name='google.ads.googleads.v1.common.Metrics.conversions_from_interactions_value_per_interaction', index=44, - number=72, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='conversions', full_name='google.ads.googleads.v1.common.Metrics.conversions', index=45, - number=25, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='cost_micros', full_name='google.ads.googleads.v1.common.Metrics.cost_micros', index=46, - number=26, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='cost_per_all_conversions', full_name='google.ads.googleads.v1.common.Metrics.cost_per_all_conversions', index=47, - number=68, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='cost_per_conversion', full_name='google.ads.googleads.v1.common.Metrics.cost_per_conversion', index=48, - number=28, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='cost_per_current_model_attributed_conversion', full_name='google.ads.googleads.v1.common.Metrics.cost_per_current_model_attributed_conversion', index=49, - number=106, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='cross_device_conversions', full_name='google.ads.googleads.v1.common.Metrics.cross_device_conversions', index=50, - number=29, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='ctr', full_name='google.ads.googleads.v1.common.Metrics.ctr', index=51, - number=30, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='current_model_attributed_conversions', full_name='google.ads.googleads.v1.common.Metrics.current_model_attributed_conversions', index=52, - number=101, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='current_model_attributed_conversions_from_interactions_rate', full_name='google.ads.googleads.v1.common.Metrics.current_model_attributed_conversions_from_interactions_rate', index=53, - number=102, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='current_model_attributed_conversions_from_interactions_value_per_interaction', full_name='google.ads.googleads.v1.common.Metrics.current_model_attributed_conversions_from_interactions_value_per_interaction', index=54, - number=103, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='current_model_attributed_conversions_value', full_name='google.ads.googleads.v1.common.Metrics.current_model_attributed_conversions_value', index=55, - number=104, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='current_model_attributed_conversions_value_per_cost', full_name='google.ads.googleads.v1.common.Metrics.current_model_attributed_conversions_value_per_cost', index=56, - number=105, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='engagement_rate', full_name='google.ads.googleads.v1.common.Metrics.engagement_rate', index=57, - number=31, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='engagements', full_name='google.ads.googleads.v1.common.Metrics.engagements', index=58, - number=32, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='hotel_average_lead_value_micros', full_name='google.ads.googleads.v1.common.Metrics.hotel_average_lead_value_micros', index=59, - number=75, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='historical_creative_quality_score', full_name='google.ads.googleads.v1.common.Metrics.historical_creative_quality_score', index=60, - number=80, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='historical_landing_page_quality_score', full_name='google.ads.googleads.v1.common.Metrics.historical_landing_page_quality_score', index=61, - number=81, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='historical_quality_score', full_name='google.ads.googleads.v1.common.Metrics.historical_quality_score', index=62, - number=82, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='historical_search_predicted_ctr', full_name='google.ads.googleads.v1.common.Metrics.historical_search_predicted_ctr', index=63, - number=83, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='gmail_forwards', full_name='google.ads.googleads.v1.common.Metrics.gmail_forwards', index=64, - number=85, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='gmail_saves', full_name='google.ads.googleads.v1.common.Metrics.gmail_saves', index=65, - number=86, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='gmail_secondary_clicks', full_name='google.ads.googleads.v1.common.Metrics.gmail_secondary_clicks', index=66, - number=87, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='impression_reach', full_name='google.ads.googleads.v1.common.Metrics.impression_reach', index=67, - number=36, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='impressions_from_store_reach', full_name='google.ads.googleads.v1.common.Metrics.impressions_from_store_reach', index=68, - number=125, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='impressions', full_name='google.ads.googleads.v1.common.Metrics.impressions', index=69, - number=37, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='interaction_rate', full_name='google.ads.googleads.v1.common.Metrics.interaction_rate', index=70, - number=38, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='interactions', full_name='google.ads.googleads.v1.common.Metrics.interactions', index=71, - number=39, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='interaction_event_types', full_name='google.ads.googleads.v1.common.Metrics.interaction_event_types', index=72, - number=100, type=14, cpp_type=8, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='invalid_click_rate', full_name='google.ads.googleads.v1.common.Metrics.invalid_click_rate', index=73, - number=40, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='invalid_clicks', full_name='google.ads.googleads.v1.common.Metrics.invalid_clicks', index=74, - number=41, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='mobile_friendly_clicks_percentage', full_name='google.ads.googleads.v1.common.Metrics.mobile_friendly_clicks_percentage', index=75, - number=109, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='organic_clicks', full_name='google.ads.googleads.v1.common.Metrics.organic_clicks', index=76, - number=110, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='organic_clicks_per_query', full_name='google.ads.googleads.v1.common.Metrics.organic_clicks_per_query', index=77, - number=111, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='organic_impressions', full_name='google.ads.googleads.v1.common.Metrics.organic_impressions', index=78, - number=112, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='organic_impressions_per_query', full_name='google.ads.googleads.v1.common.Metrics.organic_impressions_per_query', index=79, - number=113, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='organic_queries', full_name='google.ads.googleads.v1.common.Metrics.organic_queries', index=80, - number=114, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='percent_new_visitors', full_name='google.ads.googleads.v1.common.Metrics.percent_new_visitors', index=81, - number=42, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='phone_calls', full_name='google.ads.googleads.v1.common.Metrics.phone_calls', index=82, - number=43, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='phone_impressions', full_name='google.ads.googleads.v1.common.Metrics.phone_impressions', index=83, - number=44, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='phone_through_rate', full_name='google.ads.googleads.v1.common.Metrics.phone_through_rate', index=84, - number=45, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='relative_ctr', full_name='google.ads.googleads.v1.common.Metrics.relative_ctr', index=85, - number=46, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='search_absolute_top_impression_share', full_name='google.ads.googleads.v1.common.Metrics.search_absolute_top_impression_share', index=86, - number=78, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='search_budget_lost_absolute_top_impression_share', full_name='google.ads.googleads.v1.common.Metrics.search_budget_lost_absolute_top_impression_share', index=87, - number=88, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='search_budget_lost_impression_share', full_name='google.ads.googleads.v1.common.Metrics.search_budget_lost_impression_share', index=88, - number=47, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='search_budget_lost_top_impression_share', full_name='google.ads.googleads.v1.common.Metrics.search_budget_lost_top_impression_share', index=89, - number=89, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='search_click_share', full_name='google.ads.googleads.v1.common.Metrics.search_click_share', index=90, - number=48, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='search_exact_match_impression_share', full_name='google.ads.googleads.v1.common.Metrics.search_exact_match_impression_share', index=91, - number=49, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='search_impression_share', full_name='google.ads.googleads.v1.common.Metrics.search_impression_share', index=92, - number=50, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='search_rank_lost_absolute_top_impression_share', full_name='google.ads.googleads.v1.common.Metrics.search_rank_lost_absolute_top_impression_share', index=93, - number=90, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='search_rank_lost_impression_share', full_name='google.ads.googleads.v1.common.Metrics.search_rank_lost_impression_share', index=94, - number=51, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='search_rank_lost_top_impression_share', full_name='google.ads.googleads.v1.common.Metrics.search_rank_lost_top_impression_share', index=95, - number=91, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='search_top_impression_share', full_name='google.ads.googleads.v1.common.Metrics.search_top_impression_share', index=96, - number=92, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='speed_score', full_name='google.ads.googleads.v1.common.Metrics.speed_score', index=97, - number=107, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='top_impression_percentage', full_name='google.ads.googleads.v1.common.Metrics.top_impression_percentage', index=98, - number=93, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='valid_accelerated_mobile_pages_clicks_percentage', full_name='google.ads.googleads.v1.common.Metrics.valid_accelerated_mobile_pages_clicks_percentage', index=99, - number=108, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='value_per_all_conversions', full_name='google.ads.googleads.v1.common.Metrics.value_per_all_conversions', index=100, - number=52, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='value_per_conversion', full_name='google.ads.googleads.v1.common.Metrics.value_per_conversion', index=101, - number=53, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='value_per_current_model_attributed_conversion', full_name='google.ads.googleads.v1.common.Metrics.value_per_current_model_attributed_conversion', index=102, - number=94, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='video_quartile_100_rate', full_name='google.ads.googleads.v1.common.Metrics.video_quartile_100_rate', index=103, - number=54, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='video_quartile_25_rate', full_name='google.ads.googleads.v1.common.Metrics.video_quartile_25_rate', index=104, - number=55, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='video_quartile_50_rate', full_name='google.ads.googleads.v1.common.Metrics.video_quartile_50_rate', index=105, - number=56, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='video_quartile_75_rate', full_name='google.ads.googleads.v1.common.Metrics.video_quartile_75_rate', index=106, - number=57, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='video_view_rate', full_name='google.ads.googleads.v1.common.Metrics.video_view_rate', index=107, - number=58, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='video_views', full_name='google.ads.googleads.v1.common.Metrics.video_views', index=108, - number=59, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='view_through_conversions', full_name='google.ads.googleads.v1.common.Metrics.view_through_conversions', index=109, - number=60, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=279, - serialized_end=7626, -) - -_METRICS.fields_by_name['absolute_top_impression_percentage'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE -_METRICS.fields_by_name['active_view_cpm'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE -_METRICS.fields_by_name['active_view_ctr'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE -_METRICS.fields_by_name['active_view_impressions'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -_METRICS.fields_by_name['active_view_measurability'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE -_METRICS.fields_by_name['active_view_measurable_cost_micros'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -_METRICS.fields_by_name['active_view_measurable_impressions'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -_METRICS.fields_by_name['active_view_viewability'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE -_METRICS.fields_by_name['all_conversions_from_interactions_rate'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE -_METRICS.fields_by_name['all_conversions_value'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE -_METRICS.fields_by_name['all_conversions'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE -_METRICS.fields_by_name['all_conversions_value_per_cost'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE -_METRICS.fields_by_name['all_conversions_from_click_to_call'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE -_METRICS.fields_by_name['all_conversions_from_directions'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE -_METRICS.fields_by_name['all_conversions_from_interactions_value_per_interaction'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE -_METRICS.fields_by_name['all_conversions_from_menu'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE -_METRICS.fields_by_name['all_conversions_from_order'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE -_METRICS.fields_by_name['all_conversions_from_other_engagement'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE -_METRICS.fields_by_name['all_conversions_from_store_visit'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE -_METRICS.fields_by_name['all_conversions_from_store_website'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE -_METRICS.fields_by_name['average_cost'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE -_METRICS.fields_by_name['average_cpc'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE -_METRICS.fields_by_name['average_cpe'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE -_METRICS.fields_by_name['average_cpm'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE -_METRICS.fields_by_name['average_cpv'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE -_METRICS.fields_by_name['average_frequency'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE -_METRICS.fields_by_name['average_page_views'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE -_METRICS.fields_by_name['average_position'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE -_METRICS.fields_by_name['average_time_on_site'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE -_METRICS.fields_by_name['benchmark_average_max_cpc'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE -_METRICS.fields_by_name['benchmark_ctr'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE -_METRICS.fields_by_name['bounce_rate'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE -_METRICS.fields_by_name['clicks'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -_METRICS.fields_by_name['combined_clicks'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -_METRICS.fields_by_name['combined_clicks_per_query'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE -_METRICS.fields_by_name['combined_queries'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -_METRICS.fields_by_name['content_budget_lost_impression_share'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE -_METRICS.fields_by_name['content_impression_share'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE -_METRICS.fields_by_name['conversion_last_received_request_date_time'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_METRICS.fields_by_name['conversion_last_conversion_date'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_METRICS.fields_by_name['content_rank_lost_impression_share'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE -_METRICS.fields_by_name['conversions_from_interactions_rate'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE -_METRICS.fields_by_name['conversions_value'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE -_METRICS.fields_by_name['conversions_value_per_cost'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE -_METRICS.fields_by_name['conversions_from_interactions_value_per_interaction'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE -_METRICS.fields_by_name['conversions'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE -_METRICS.fields_by_name['cost_micros'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -_METRICS.fields_by_name['cost_per_all_conversions'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE -_METRICS.fields_by_name['cost_per_conversion'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE -_METRICS.fields_by_name['cost_per_current_model_attributed_conversion'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE -_METRICS.fields_by_name['cross_device_conversions'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE -_METRICS.fields_by_name['ctr'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE -_METRICS.fields_by_name['current_model_attributed_conversions'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE -_METRICS.fields_by_name['current_model_attributed_conversions_from_interactions_rate'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE -_METRICS.fields_by_name['current_model_attributed_conversions_from_interactions_value_per_interaction'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE -_METRICS.fields_by_name['current_model_attributed_conversions_value'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE -_METRICS.fields_by_name['current_model_attributed_conversions_value_per_cost'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE -_METRICS.fields_by_name['engagement_rate'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE -_METRICS.fields_by_name['engagements'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -_METRICS.fields_by_name['hotel_average_lead_value_micros'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE -_METRICS.fields_by_name['historical_creative_quality_score'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_quality__score__bucket__pb2._QUALITYSCOREBUCKETENUM_QUALITYSCOREBUCKET -_METRICS.fields_by_name['historical_landing_page_quality_score'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_quality__score__bucket__pb2._QUALITYSCOREBUCKETENUM_QUALITYSCOREBUCKET -_METRICS.fields_by_name['historical_quality_score'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -_METRICS.fields_by_name['historical_search_predicted_ctr'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_quality__score__bucket__pb2._QUALITYSCOREBUCKETENUM_QUALITYSCOREBUCKET -_METRICS.fields_by_name['gmail_forwards'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -_METRICS.fields_by_name['gmail_saves'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -_METRICS.fields_by_name['gmail_secondary_clicks'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -_METRICS.fields_by_name['impression_reach'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -_METRICS.fields_by_name['impressions_from_store_reach'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -_METRICS.fields_by_name['impressions'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -_METRICS.fields_by_name['interaction_rate'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE -_METRICS.fields_by_name['interactions'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -_METRICS.fields_by_name['interaction_event_types'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_interaction__event__type__pb2._INTERACTIONEVENTTYPEENUM_INTERACTIONEVENTTYPE -_METRICS.fields_by_name['invalid_click_rate'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE -_METRICS.fields_by_name['invalid_clicks'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -_METRICS.fields_by_name['mobile_friendly_clicks_percentage'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE -_METRICS.fields_by_name['organic_clicks'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -_METRICS.fields_by_name['organic_clicks_per_query'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE -_METRICS.fields_by_name['organic_impressions'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -_METRICS.fields_by_name['organic_impressions_per_query'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE -_METRICS.fields_by_name['organic_queries'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -_METRICS.fields_by_name['percent_new_visitors'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE -_METRICS.fields_by_name['phone_calls'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -_METRICS.fields_by_name['phone_impressions'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -_METRICS.fields_by_name['phone_through_rate'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE -_METRICS.fields_by_name['relative_ctr'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE -_METRICS.fields_by_name['search_absolute_top_impression_share'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE -_METRICS.fields_by_name['search_budget_lost_absolute_top_impression_share'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE -_METRICS.fields_by_name['search_budget_lost_impression_share'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE -_METRICS.fields_by_name['search_budget_lost_top_impression_share'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE -_METRICS.fields_by_name['search_click_share'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE -_METRICS.fields_by_name['search_exact_match_impression_share'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE -_METRICS.fields_by_name['search_impression_share'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE -_METRICS.fields_by_name['search_rank_lost_absolute_top_impression_share'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE -_METRICS.fields_by_name['search_rank_lost_impression_share'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE -_METRICS.fields_by_name['search_rank_lost_top_impression_share'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE -_METRICS.fields_by_name['search_top_impression_share'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE -_METRICS.fields_by_name['speed_score'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -_METRICS.fields_by_name['top_impression_percentage'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE -_METRICS.fields_by_name['valid_accelerated_mobile_pages_clicks_percentage'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE -_METRICS.fields_by_name['value_per_all_conversions'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE -_METRICS.fields_by_name['value_per_conversion'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE -_METRICS.fields_by_name['value_per_current_model_attributed_conversion'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE -_METRICS.fields_by_name['video_quartile_100_rate'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE -_METRICS.fields_by_name['video_quartile_25_rate'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE -_METRICS.fields_by_name['video_quartile_50_rate'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE -_METRICS.fields_by_name['video_quartile_75_rate'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE -_METRICS.fields_by_name['video_view_rate'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE -_METRICS.fields_by_name['video_views'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -_METRICS.fields_by_name['view_through_conversions'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -DESCRIPTOR.message_types_by_name['Metrics'] = _METRICS -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -Metrics = _reflection.GeneratedProtocolMessageType('Metrics', (_message.Message,), dict( - DESCRIPTOR = _METRICS, - __module__ = 'google.ads.googleads_v1.proto.common.metrics_pb2' - , - __doc__ = """Metrics data. - - - Attributes: - absolute_top_impression_percentage: - The percent of your ad impressions that are shown as the very - first ad above the organic search results. - active_view_cpm: - Average cost of viewable impressions - (``active_view_impressions``). - active_view_ctr: - Active view measurable clicks divided by active view viewable - impressions. This metric is reported only for display network. - active_view_impressions: - A measurement of how often your ad has become viewable on a - Display Network site. - active_view_measurability: - The ratio of impressions that could be measured by Active View - over the number of served impressions. - active_view_measurable_cost_micros: - The cost of the impressions you received that were measurable - by Active View. - active_view_measurable_impressions: - The number of times your ads are appearing on placements in - positions where they can be seen. - active_view_viewability: - The percentage of time when your ad appeared on an Active View - enabled site (measurable impressions) and was viewable - (viewable impressions). - all_conversions_from_interactions_rate: - All conversions from interactions (as oppose to view through - conversions) divided by the number of ad interactions. - all_conversions_value: - The total value of all conversions. - all_conversions: - The total number of conversions. This only includes conversion - actions which include\_in\_conversions\_metric attribute is - set to true. - all_conversions_value_per_cost: - The value of all conversions divided by the total cost of ad - interactions (such as clicks for text ads or views for video - ads). - all_conversions_from_click_to_call: - The number of times people clicked the "Call" button to call a - store during or after clicking an ad. This number doesn't - include whether or not calls were connected, or the duration - of any calls. This metric applies to feed items only. - all_conversions_from_directions: - The number of times people clicked a "Get directions" button - to navigate to a store after clicking an ad. This metric - applies to feed items only. - all_conversions_from_interactions_value_per_interaction: - The value of all conversions from interactions divided by the - total number of interactions. - all_conversions_from_menu: - The number of times people clicked a link to view a store's - menu after clicking an ad. This metric applies to feed items - only. - all_conversions_from_order: - The number of times people placed an order at a store after - clicking an ad. This metric applies to feed items only. - all_conversions_from_other_engagement: - The number of other conversions (for example, posting a review - or saving a location for a store) that occurred after people - clicked an ad. This metric applies to feed items only. - all_conversions_from_store_visit: - Estimated number of times people visited a store after - clicking an ad. This metric applies to feed items only. - all_conversions_from_store_website: - The number of times that people were taken to a store's URL - after clicking an ad. This metric applies to feed items only. - average_cost: - The average amount you pay per interaction. This amount is the - total cost of your ads divided by the total number of - interactions. - average_cpc: - The total cost of all clicks divided by the total number of - clicks received. - average_cpe: - The average amount that you've been charged for an ad - engagement. This amount is the total cost of all ad - engagements divided by the total number of ad engagements. - average_cpm: - Average cost-per-thousand impressions (CPM). - average_cpv: - The average amount you pay each time someone views your ad. - The average CPV is defined by the total cost of all ad views - divided by the number of views. - average_frequency: - Average number of times a unique cookie was exposed to your ad - over a given time period. Imported from Google Analytics. - average_page_views: - Average number of pages viewed per session. - average_position: - Your ad's position relative to those of other advertisers. - average_time_on_site: - Total duration of all sessions (in seconds) / number of - sessions. Imported from Google Analytics. - benchmark_average_max_cpc: - An indication of how other advertisers are bidding on similar - products. - benchmark_ctr: - An indication on how other advertisers' Shopping ads for - similar products are performing based on how often people who - see their ad click on it. - bounce_rate: - Percentage of clicks where the user only visited a single page - on your site. Imported from Google Analytics. - clicks: - The number of clicks. - combined_clicks: - The number of times your ad or your site's listing in the - unpaid results was clicked. See the help page at - https://support.google.com/google-ads/answer/3097241 for - details. - combined_clicks_per_query: - The number of times your ad or your site's listing in the - unpaid results was clicked (combined\_clicks) divided by - combined\_queries. See the help page at - https://support.google.com/google-ads/answer/3097241 for - details. - combined_queries: - The number of searches that returned pages from your site in - the unpaid results or showed one of your text ads. See the - help page at https://support.google.com/google- - ads/answer/3097241 for details. - content_budget_lost_impression_share: - The estimated percent of times that your ad was eligible to - show on the Display Network but didn't because your budget was - too low. Note: Content budget lost impression share is - reported in the range of 0 to 0.9. Any value above 0.9 is - reported as 0.9001. - content_impression_share: - The impressions you've received on the Display Network divided - by the estimated number of impressions you were eligible to - receive. Note: Content impression share is reported in the - range of 0.1 to 1. Any value below 0.1 is reported as 0.0999. - conversion_last_received_request_date_time: - The last date/time a conversion tag for this conversion action - successfully fired and was seen by Google Ads. This firing - event may not have been the result of an attributable - conversion (e.g. because the tag was fired from a browser that - did not previously click an ad from an appropriate - advertiser). The date/time is in the customer's time zone. - conversion_last_conversion_date: - The date of the most recent conversion for this conversion - action. The date is in the customer's time zone. - content_rank_lost_impression_share: - The estimated percentage of impressions on the Display Network - that your ads didn't receive due to poor Ad Rank. Note: - Content rank lost impression share is reported in the range of - 0 to 0.9. Any value above 0.9 is reported as 0.9001. - conversions_from_interactions_rate: - Conversions from interactions divided by the number of ad - interactions (such as clicks for text ads or views for video - ads). This only includes conversion actions which - include\_in\_conversions\_metric attribute is set to true. - conversions_value: - The total value of conversions. This only includes conversion - actions which include\_in\_conversions\_metric attribute is - set to true. - conversions_value_per_cost: - The value of conversions divided by the cost of ad - interactions. This only includes conversion actions which - include\_in\_conversions\_metric attribute is set to true. - conversions_from_interactions_value_per_interaction: - The value of conversions from interactions divided by the - number of ad interactions. This only includes conversion - actions which include\_in\_conversions\_metric attribute is - set to true. - conversions: - The number of conversions. This only includes conversion - actions which include\_in\_conversions\_metric attribute is - set to true. - cost_micros: - The sum of your cost-per-click (CPC) and cost-per-thousand - impressions (CPM) costs during this period. - cost_per_all_conversions: - The cost of ad interactions divided by all conversions. - cost_per_conversion: - The cost of ad interactions divided by conversions. This only - includes conversion actions which - include\_in\_conversions\_metric attribute is set to true. - cost_per_current_model_attributed_conversion: - The cost of ad interactions divided by current model - attributed conversions. This only includes conversion actions - which include\_in\_conversions\_metric attribute is set to - true. - cross_device_conversions: - Conversions from when a customer clicks on a Google Ads ad on - one device, then converts on a different device or browser. - Cross-device conversions are already included in - all\_conversions. - ctr: - The number of clicks your ad receives (Clicks) divided by the - number of times your ad is shown (Impressions). - current_model_attributed_conversions: - Shows how your historic conversions data would look under the - attribution model you've currently selected. This only - includes conversion actions which - include\_in\_conversions\_metric attribute is set to true. - current_model_attributed_conversions_from_interactions_rate: - Current model attributed conversions from interactions divided - by the number of ad interactions (such as clicks for text ads - or views for video ads). This only includes conversion actions - which include\_in\_conversions\_metric attribute is set to - true. - current_model_attributed_conversions_from_interactions_value_per_interaction: - The value of current model attributed conversions from - interactions divided by the number of ad interactions. This - only includes conversion actions which - include\_in\_conversions\_metric attribute is set to true. - current_model_attributed_conversions_value: - The total value of current model attributed conversions. This - only includes conversion actions which - include\_in\_conversions\_metric attribute is set to true. - current_model_attributed_conversions_value_per_cost: - The value of current model attributed conversions divided by - the cost of ad interactions. This only includes conversion - actions which include\_in\_conversions\_metric attribute is - set to true. - engagement_rate: - How often people engage with your ad after it's shown to them. - This is the number of ad expansions divided by the number of - times your ad is shown. - engagements: - The number of engagements. An engagement occurs when a viewer - expands your Lightbox ad. Also, in the future, other ad types - may support engagement metrics. - hotel_average_lead_value_micros: - Average lead value of hotel. - historical_creative_quality_score: - The creative historical quality score. - historical_landing_page_quality_score: - The quality of historical landing page experience. - historical_quality_score: - The historical quality score. - historical_search_predicted_ctr: - The historical search predicted click through rate (CTR). - gmail_forwards: - The number of times the ad was forwarded to someone else as a - message. - gmail_saves: - The number of times someone has saved your Gmail ad to their - inbox as a message. - gmail_secondary_clicks: - The number of clicks to the landing page on the expanded state - of Gmail ads. - impression_reach: - Number of unique cookies that were exposed to your ad over a - given time period. - impressions_from_store_reach: - The number of times a store's location-based ad was shown. - This metric applies to feed items only. - impressions: - Count of how often your ad has appeared on a search results - page or website on the Google Network. - interaction_rate: - How often people interact with your ad after it is shown to - them. This is the number of interactions divided by the number - of times your ad is shown. - interactions: - The number of interactions. An interaction is the main user - action associated with an ad format-clicks for text and - shopping ads, views for video ads, and so on. - interaction_event_types: - The types of payable and free interactions. - invalid_click_rate: - The percentage of clicks filtered out of your total number of - clicks (filtered + non-filtered clicks) during the reporting - period. - invalid_clicks: - Number of clicks Google considers illegitimate and doesn't - charge you for. - mobile_friendly_clicks_percentage: - The percentage of mobile clicks that go to a mobile-friendly - page. - organic_clicks: - The number of times someone clicked your site's listing in the - unpaid results for a particular query. See the help page at - https://support.google.com/google-ads/answer/3097241 for - details. - organic_clicks_per_query: - The number of times someone clicked your site's listing in the - unpaid results (organic\_clicks) divided by the total number - of searches that returned pages from your site - (organic\_queries). See the help page at - https://support.google.com/google-ads/answer/3097241 for - details. - organic_impressions: - The number of listings for your site in the unpaid search - results. See the help page at - https://support.google.com/google-ads/answer/3097241 for - details. - organic_impressions_per_query: - The number of times a page from your site was listed in the - unpaid search results (organic\_impressions) divided by the - number of searches returning your site's listing in the unpaid - results (organic\_queries). See the help page at - https://support.google.com/google-ads/answer/3097241 for - details. - organic_queries: - The total number of searches that returned your site's listing - in the unpaid results. See the help page at - https://support.google.com/google-ads/answer/3097241 for - details. - percent_new_visitors: - Percentage of first-time sessions (from people who had never - visited your site before). Imported from Google Analytics. - phone_calls: - Number of offline phone calls. - phone_impressions: - Number of offline phone impressions. - phone_through_rate: - Number of phone calls received (phone\_calls) divided by the - number of times your phone number is shown - (phone\_impressions). - relative_ctr: - Your clickthrough rate (Ctr) divided by the average - clickthrough rate of all advertisers on the websites that show - your ads. Measures how your ads perform on Display Network - sites compared to other ads on the same sites. - search_absolute_top_impression_share: - The percentage of the customer's Shopping or Search ad - impressions that are shown in the most prominent Shopping - position. See this Merchant Center article for details. Any - value below 0.1 is reported as 0.0999. - search_budget_lost_absolute_top_impression_share: - The number estimating how often your ad wasn't the very first - ad above the organic search results due to a low budget. Note: - Search budget lost absolute top impression share is reported - in the range of 0 to 0.9. Any value above 0.9 is reported as - 0.9001. - search_budget_lost_impression_share: - The estimated percent of times that your ad was eligible to - show on the Search Network but didn't because your budget was - too low. Note: Search budget lost impression share is reported - in the range of 0 to 0.9. Any value above 0.9 is reported as - 0.9001. - search_budget_lost_top_impression_share: - The number estimating how often your ad didn't show anywhere - above the organic search results due to a low budget. Note: - Search budget lost top impression share is reported in the - range of 0 to 0.9. Any value above 0.9 is reported as 0.9001. - search_click_share: - The number of clicks you've received on the Search Network - divided by the estimated number of clicks you were eligible to - receive. Note: Search click share is reported in the range of - 0.1 to 1. Any value below 0.1 is reported as 0.0999. - search_exact_match_impression_share: - The impressions you've received divided by the estimated - number of impressions you were eligible to receive on the - Search Network for search terms that matched your keywords - exactly (or were close variants of your keyword), regardless - of your keyword match types. Note: Search exact match - impression share is reported in the range of 0.1 to 1. Any - value below 0.1 is reported as 0.0999. - search_impression_share: - The impressions you've received on the Search Network divided - by the estimated number of impressions you were eligible to - receive. Note: Search impression share is reported in the - range of 0.1 to 1. Any value below 0.1 is reported as 0.0999. - search_rank_lost_absolute_top_impression_share: - The number estimating how often your ad wasn't the very first - ad above the organic search results due to poor Ad Rank. Note: - Search rank lost absolute top impression share is reported in - the range of 0 to 0.9. Any value above 0.9 is reported as - 0.9001. - search_rank_lost_impression_share: - The estimated percentage of impressions on the Search Network - that your ads didn't receive due to poor Ad Rank. Note: Search - rank lost impression share is reported in the range of 0 to - 0.9. Any value above 0.9 is reported as 0.9001. - search_rank_lost_top_impression_share: - The number estimating how often your ad didn't show anywhere - above the organic search results due to poor Ad Rank. Note: - Search rank lost top impression share is reported in the range - of 0 to 0.9. Any value above 0.9 is reported as 0.9001. - search_top_impression_share: - The impressions you've received in the top location (anywhere - above the organic search results) compared to the estimated - number of impressions you were eligible to receive in the top - location. Note: Search top impression share is reported in the - range of 0.1 to 1. Any value below 0.1 is reported as 0.0999. - speed_score: - A measure of how quickly your page loads after clicks on your - mobile ads. The score is a range from 1 to 10, 10 being the - fastest. - top_impression_percentage: - The percent of your ad impressions that are shown anywhere - above the organic search results. - valid_accelerated_mobile_pages_clicks_percentage: - The percentage of ad clicks to Accelerated Mobile Pages (AMP) - landing pages that reach a valid AMP page. - value_per_all_conversions: - The value of all conversions divided by the number of all - conversions. - value_per_conversion: - The value of conversions divided by the number of conversions. - This only includes conversion actions which - include\_in\_conversions\_metric attribute is set to true. - value_per_current_model_attributed_conversion: - The value of current model attributed conversions divided by - the number of the conversions. This only includes conversion - actions which include\_in\_conversions\_metric attribute is - set to true. - video_quartile_100_rate: - Percentage of impressions where the viewer watched all of your - video. - video_quartile_25_rate: - Percentage of impressions where the viewer watched 25% of your - video. - video_quartile_50_rate: - Percentage of impressions where the viewer watched 50% of your - video. - video_quartile_75_rate: - Percentage of impressions where the viewer watched 75% of your - video. - video_view_rate: - The number of views your TrueView video ad receives divided by - its number of impressions, including thumbnail impressions for - TrueView in-display ads. - video_views: - The number of times your video ads were viewed. - view_through_conversions: - The total number of view-through conversions. These happen - when a customer sees an image or rich media ad, then later - completes a conversion on your site without interacting with - (e.g., clicking on) another ad. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.Metrics) - )) -_sym_db.RegisterMessage(Metrics) - - -DESCRIPTOR._options = None -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/common/policy_pb2.py b/google/ads/google_ads/v1/proto/common/policy_pb2.py deleted file mode 100644 index a2dc6e30c..000000000 --- a/google/ads/google_ads/v1/proto/common/policy_pb2.py +++ /dev/null @@ -1,913 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/common/policy.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.ads.google_ads.v1.proto.enums import policy_topic_entry_type_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_policy__topic__entry__type__pb2 -from google.ads.google_ads.v1.proto.enums import policy_topic_evidence_destination_mismatch_url_type_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_policy__topic__evidence__destination__mismatch__url__type__pb2 -from google.ads.google_ads.v1.proto.enums import policy_topic_evidence_destination_not_working_device_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_policy__topic__evidence__destination__not__working__device__pb2 -from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/common/policy.proto', - package='google.ads.googleads.v1.common', - syntax='proto3', - serialized_options=_b('\n\"com.google.ads.googleads.v1.commonB\013PolicyProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/common;common\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V1.Common\312\002\036Google\\Ads\\GoogleAds\\V1\\Common\352\002\"Google::Ads::GoogleAds::V1::Common'), - serialized_pb=_b('\n1google/ads/googleads_v1/proto/common/policy.proto\x12\x1egoogle.ads.googleads.v1.common\x1a\x41google/ads/googleads_v1/proto/enums/policy_topic_entry_type.proto\x1a]google/ads/googleads_v1/proto/enums/policy_topic_evidence_destination_mismatch_url_type.proto\x1a^google/ads/googleads_v1/proto/enums/policy_topic_evidence_destination_not_working_device.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1cgoogle/api/annotations.proto\"}\n\x12PolicyViolationKey\x12\x31\n\x0bpolicy_name\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x34\n\x0eviolating_text\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValue\"\xb4\x01\n\x19PolicyValidationParameter\x12=\n\x17ignorable_policy_topics\x18\x01 \x03(\x0b\x32\x1c.google.protobuf.StringValue\x12X\n\x1c\x65xempt_policy_violation_keys\x18\x02 \x03(\x0b\x32\x32.google.ads.googleads.v1.common.PolicyViolationKey\"\xaf\x02\n\x10PolicyTopicEntry\x12+\n\x05topic\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12Z\n\x04type\x18\x02 \x01(\x0e\x32L.google.ads.googleads.v1.enums.PolicyTopicEntryTypeEnum.PolicyTopicEntryType\x12\x46\n\tevidences\x18\x03 \x03(\x0b\x32\x33.google.ads.googleads.v1.common.PolicyTopicEvidence\x12J\n\x0b\x63onstraints\x18\x04 \x03(\x0b\x32\x35.google.ads.googleads.v1.common.PolicyTopicConstraint\"\x88\n\n\x13PolicyTopicEvidence\x12\x30\n\thttp_code\x18\x02 \x01(\x0b\x32\x1b.google.protobuf.Int32ValueH\x00\x12W\n\x0cwebsite_list\x18\x03 \x01(\x0b\x32?.google.ads.googleads.v1.common.PolicyTopicEvidence.WebsiteListH\x00\x12Q\n\ttext_list\x18\x04 \x01(\x0b\x32<.google.ads.googleads.v1.common.PolicyTopicEvidence.TextListH\x00\x12\x35\n\rlanguage_code\x18\x05 \x01(\x0b\x32\x1c.google.protobuf.StringValueH\x00\x12h\n\x15\x64\x65stination_text_list\x18\x06 \x01(\x0b\x32G.google.ads.googleads.v1.common.PolicyTopicEvidence.DestinationTextListH\x00\x12g\n\x14\x64\x65stination_mismatch\x18\x07 \x01(\x0b\x32G.google.ads.googleads.v1.common.PolicyTopicEvidence.DestinationMismatchH\x00\x12l\n\x17\x64\x65stination_not_working\x18\x08 \x01(\x0b\x32I.google.ads.googleads.v1.common.PolicyTopicEvidence.DestinationNotWorkingH\x00\x1a\x37\n\x08TextList\x12+\n\x05texts\x18\x01 \x03(\x0b\x32\x1c.google.protobuf.StringValue\x1a=\n\x0bWebsiteList\x12.\n\x08websites\x18\x01 \x03(\x0b\x32\x1c.google.protobuf.StringValue\x1aN\n\x13\x44\x65stinationTextList\x12\x37\n\x11\x64\x65stination_texts\x18\x01 \x03(\x0b\x32\x1c.google.protobuf.StringValue\x1a\xa9\x01\n\x13\x44\x65stinationMismatch\x12\x91\x01\n\turl_types\x18\x01 \x03(\x0e\x32~.google.ads.googleads.v1.enums.PolicyTopicEvidenceDestinationMismatchUrlTypeEnum.PolicyTopicEvidenceDestinationMismatchUrlType\x1a\x9d\x02\n\x15\x44\x65stinationNotWorking\x12\x32\n\x0c\x65xpanded_url\x18\x03 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x91\x01\n\x06\x64\x65vice\x18\x04 \x01(\x0e\x32\x80\x01.google.ads.googleads.v1.enums.PolicyTopicEvidenceDestinationNotWorkingDeviceEnum.PolicyTopicEvidenceDestinationNotWorkingDevice\x12<\n\x16last_checked_date_time\x18\x05 \x01(\x0b\x32\x1c.google.protobuf.StringValueB\x07\n\x05value\"\x93\x06\n\x15PolicyTopicConstraint\x12n\n\x17\x63ountry_constraint_list\x18\x01 \x01(\x0b\x32K.google.ads.googleads.v1.common.PolicyTopicConstraint.CountryConstraintListH\x00\x12g\n\x13reseller_constraint\x18\x02 \x01(\x0b\x32H.google.ads.googleads.v1.common.PolicyTopicConstraint.ResellerConstraintH\x00\x12z\n#certificate_missing_in_country_list\x18\x03 \x01(\x0b\x32K.google.ads.googleads.v1.common.PolicyTopicConstraint.CountryConstraintListH\x00\x12\x82\x01\n+certificate_domain_mismatch_in_country_list\x18\x04 \x01(\x0b\x32K.google.ads.googleads.v1.common.PolicyTopicConstraint.CountryConstraintListH\x00\x1a\xb2\x01\n\x15\x43ountryConstraintList\x12=\n\x18total_targeted_countries\x18\x01 \x01(\x0b\x32\x1b.google.protobuf.Int32Value\x12Z\n\tcountries\x18\x02 \x03(\x0b\x32G.google.ads.googleads.v1.common.PolicyTopicConstraint.CountryConstraint\x1a\x14\n\x12ResellerConstraint\x1aL\n\x11\x43ountryConstraint\x12\x37\n\x11\x63ountry_criterion\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValueB\x07\n\x05valueB\xe6\x01\n\"com.google.ads.googleads.v1.commonB\x0bPolicyProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/common;common\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V1.Common\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V1\\Common\xea\x02\"Google::Ads::GoogleAds::V1::Commonb\x06proto3') - , - dependencies=[google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_policy__topic__entry__type__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_policy__topic__evidence__destination__mismatch__url__type__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_policy__topic__evidence__destination__not__working__device__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - - -_POLICYVIOLATIONKEY = _descriptor.Descriptor( - name='PolicyViolationKey', - full_name='google.ads.googleads.v1.common.PolicyViolationKey', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='policy_name', full_name='google.ads.googleads.v1.common.PolicyViolationKey.policy_name', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='violating_text', full_name='google.ads.googleads.v1.common.PolicyViolationKey.violating_text', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=405, - serialized_end=530, -) - - -_POLICYVALIDATIONPARAMETER = _descriptor.Descriptor( - name='PolicyValidationParameter', - full_name='google.ads.googleads.v1.common.PolicyValidationParameter', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='ignorable_policy_topics', full_name='google.ads.googleads.v1.common.PolicyValidationParameter.ignorable_policy_topics', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='exempt_policy_violation_keys', full_name='google.ads.googleads.v1.common.PolicyValidationParameter.exempt_policy_violation_keys', index=1, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=533, - serialized_end=713, -) - - -_POLICYTOPICENTRY = _descriptor.Descriptor( - name='PolicyTopicEntry', - full_name='google.ads.googleads.v1.common.PolicyTopicEntry', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='topic', full_name='google.ads.googleads.v1.common.PolicyTopicEntry.topic', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='type', full_name='google.ads.googleads.v1.common.PolicyTopicEntry.type', index=1, - number=2, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='evidences', full_name='google.ads.googleads.v1.common.PolicyTopicEntry.evidences', index=2, - number=3, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='constraints', full_name='google.ads.googleads.v1.common.PolicyTopicEntry.constraints', index=3, - number=4, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=716, - serialized_end=1019, -) - - -_POLICYTOPICEVIDENCE_TEXTLIST = _descriptor.Descriptor( - name='TextList', - full_name='google.ads.googleads.v1.common.PolicyTopicEvidence.TextList', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='texts', full_name='google.ads.googleads.v1.common.PolicyTopicEvidence.TextList.texts', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1643, - serialized_end=1698, -) - -_POLICYTOPICEVIDENCE_WEBSITELIST = _descriptor.Descriptor( - name='WebsiteList', - full_name='google.ads.googleads.v1.common.PolicyTopicEvidence.WebsiteList', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='websites', full_name='google.ads.googleads.v1.common.PolicyTopicEvidence.WebsiteList.websites', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1700, - serialized_end=1761, -) - -_POLICYTOPICEVIDENCE_DESTINATIONTEXTLIST = _descriptor.Descriptor( - name='DestinationTextList', - full_name='google.ads.googleads.v1.common.PolicyTopicEvidence.DestinationTextList', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='destination_texts', full_name='google.ads.googleads.v1.common.PolicyTopicEvidence.DestinationTextList.destination_texts', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1763, - serialized_end=1841, -) - -_POLICYTOPICEVIDENCE_DESTINATIONMISMATCH = _descriptor.Descriptor( - name='DestinationMismatch', - full_name='google.ads.googleads.v1.common.PolicyTopicEvidence.DestinationMismatch', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='url_types', full_name='google.ads.googleads.v1.common.PolicyTopicEvidence.DestinationMismatch.url_types', index=0, - number=1, type=14, cpp_type=8, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1844, - serialized_end=2013, -) - -_POLICYTOPICEVIDENCE_DESTINATIONNOTWORKING = _descriptor.Descriptor( - name='DestinationNotWorking', - full_name='google.ads.googleads.v1.common.PolicyTopicEvidence.DestinationNotWorking', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='expanded_url', full_name='google.ads.googleads.v1.common.PolicyTopicEvidence.DestinationNotWorking.expanded_url', index=0, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='device', full_name='google.ads.googleads.v1.common.PolicyTopicEvidence.DestinationNotWorking.device', index=1, - number=4, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='last_checked_date_time', full_name='google.ads.googleads.v1.common.PolicyTopicEvidence.DestinationNotWorking.last_checked_date_time', index=2, - number=5, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2016, - serialized_end=2301, -) - -_POLICYTOPICEVIDENCE = _descriptor.Descriptor( - name='PolicyTopicEvidence', - full_name='google.ads.googleads.v1.common.PolicyTopicEvidence', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='http_code', full_name='google.ads.googleads.v1.common.PolicyTopicEvidence.http_code', index=0, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='website_list', full_name='google.ads.googleads.v1.common.PolicyTopicEvidence.website_list', index=1, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='text_list', full_name='google.ads.googleads.v1.common.PolicyTopicEvidence.text_list', index=2, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='language_code', full_name='google.ads.googleads.v1.common.PolicyTopicEvidence.language_code', index=3, - number=5, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='destination_text_list', full_name='google.ads.googleads.v1.common.PolicyTopicEvidence.destination_text_list', index=4, - number=6, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='destination_mismatch', full_name='google.ads.googleads.v1.common.PolicyTopicEvidence.destination_mismatch', index=5, - number=7, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='destination_not_working', full_name='google.ads.googleads.v1.common.PolicyTopicEvidence.destination_not_working', index=6, - number=8, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[_POLICYTOPICEVIDENCE_TEXTLIST, _POLICYTOPICEVIDENCE_WEBSITELIST, _POLICYTOPICEVIDENCE_DESTINATIONTEXTLIST, _POLICYTOPICEVIDENCE_DESTINATIONMISMATCH, _POLICYTOPICEVIDENCE_DESTINATIONNOTWORKING, ], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='value', full_name='google.ads.googleads.v1.common.PolicyTopicEvidence.value', - index=0, containing_type=None, fields=[]), - ], - serialized_start=1022, - serialized_end=2310, -) - - -_POLICYTOPICCONSTRAINT_COUNTRYCONSTRAINTLIST = _descriptor.Descriptor( - name='CountryConstraintList', - full_name='google.ads.googleads.v1.common.PolicyTopicConstraint.CountryConstraintList', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='total_targeted_countries', full_name='google.ads.googleads.v1.common.PolicyTopicConstraint.CountryConstraintList.total_targeted_countries', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='countries', full_name='google.ads.googleads.v1.common.PolicyTopicConstraint.CountryConstraintList.countries', index=1, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2813, - serialized_end=2991, -) - -_POLICYTOPICCONSTRAINT_RESELLERCONSTRAINT = _descriptor.Descriptor( - name='ResellerConstraint', - full_name='google.ads.googleads.v1.common.PolicyTopicConstraint.ResellerConstraint', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2993, - serialized_end=3013, -) - -_POLICYTOPICCONSTRAINT_COUNTRYCONSTRAINT = _descriptor.Descriptor( - name='CountryConstraint', - full_name='google.ads.googleads.v1.common.PolicyTopicConstraint.CountryConstraint', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='country_criterion', full_name='google.ads.googleads.v1.common.PolicyTopicConstraint.CountryConstraint.country_criterion', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=3015, - serialized_end=3091, -) - -_POLICYTOPICCONSTRAINT = _descriptor.Descriptor( - name='PolicyTopicConstraint', - full_name='google.ads.googleads.v1.common.PolicyTopicConstraint', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='country_constraint_list', full_name='google.ads.googleads.v1.common.PolicyTopicConstraint.country_constraint_list', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='reseller_constraint', full_name='google.ads.googleads.v1.common.PolicyTopicConstraint.reseller_constraint', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='certificate_missing_in_country_list', full_name='google.ads.googleads.v1.common.PolicyTopicConstraint.certificate_missing_in_country_list', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='certificate_domain_mismatch_in_country_list', full_name='google.ads.googleads.v1.common.PolicyTopicConstraint.certificate_domain_mismatch_in_country_list', index=3, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[_POLICYTOPICCONSTRAINT_COUNTRYCONSTRAINTLIST, _POLICYTOPICCONSTRAINT_RESELLERCONSTRAINT, _POLICYTOPICCONSTRAINT_COUNTRYCONSTRAINT, ], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='value', full_name='google.ads.googleads.v1.common.PolicyTopicConstraint.value', - index=0, containing_type=None, fields=[]), - ], - serialized_start=2313, - serialized_end=3100, -) - -_POLICYVIOLATIONKEY.fields_by_name['policy_name'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_POLICYVIOLATIONKEY.fields_by_name['violating_text'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_POLICYVALIDATIONPARAMETER.fields_by_name['ignorable_policy_topics'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_POLICYVALIDATIONPARAMETER.fields_by_name['exempt_policy_violation_keys'].message_type = _POLICYVIOLATIONKEY -_POLICYTOPICENTRY.fields_by_name['topic'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_POLICYTOPICENTRY.fields_by_name['type'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_policy__topic__entry__type__pb2._POLICYTOPICENTRYTYPEENUM_POLICYTOPICENTRYTYPE -_POLICYTOPICENTRY.fields_by_name['evidences'].message_type = _POLICYTOPICEVIDENCE -_POLICYTOPICENTRY.fields_by_name['constraints'].message_type = _POLICYTOPICCONSTRAINT -_POLICYTOPICEVIDENCE_TEXTLIST.fields_by_name['texts'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_POLICYTOPICEVIDENCE_TEXTLIST.containing_type = _POLICYTOPICEVIDENCE -_POLICYTOPICEVIDENCE_WEBSITELIST.fields_by_name['websites'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_POLICYTOPICEVIDENCE_WEBSITELIST.containing_type = _POLICYTOPICEVIDENCE -_POLICYTOPICEVIDENCE_DESTINATIONTEXTLIST.fields_by_name['destination_texts'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_POLICYTOPICEVIDENCE_DESTINATIONTEXTLIST.containing_type = _POLICYTOPICEVIDENCE -_POLICYTOPICEVIDENCE_DESTINATIONMISMATCH.fields_by_name['url_types'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_policy__topic__evidence__destination__mismatch__url__type__pb2._POLICYTOPICEVIDENCEDESTINATIONMISMATCHURLTYPEENUM_POLICYTOPICEVIDENCEDESTINATIONMISMATCHURLTYPE -_POLICYTOPICEVIDENCE_DESTINATIONMISMATCH.containing_type = _POLICYTOPICEVIDENCE -_POLICYTOPICEVIDENCE_DESTINATIONNOTWORKING.fields_by_name['expanded_url'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_POLICYTOPICEVIDENCE_DESTINATIONNOTWORKING.fields_by_name['device'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_policy__topic__evidence__destination__not__working__device__pb2._POLICYTOPICEVIDENCEDESTINATIONNOTWORKINGDEVICEENUM_POLICYTOPICEVIDENCEDESTINATIONNOTWORKINGDEVICE -_POLICYTOPICEVIDENCE_DESTINATIONNOTWORKING.fields_by_name['last_checked_date_time'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_POLICYTOPICEVIDENCE_DESTINATIONNOTWORKING.containing_type = _POLICYTOPICEVIDENCE -_POLICYTOPICEVIDENCE.fields_by_name['http_code'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT32VALUE -_POLICYTOPICEVIDENCE.fields_by_name['website_list'].message_type = _POLICYTOPICEVIDENCE_WEBSITELIST -_POLICYTOPICEVIDENCE.fields_by_name['text_list'].message_type = _POLICYTOPICEVIDENCE_TEXTLIST -_POLICYTOPICEVIDENCE.fields_by_name['language_code'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_POLICYTOPICEVIDENCE.fields_by_name['destination_text_list'].message_type = _POLICYTOPICEVIDENCE_DESTINATIONTEXTLIST -_POLICYTOPICEVIDENCE.fields_by_name['destination_mismatch'].message_type = _POLICYTOPICEVIDENCE_DESTINATIONMISMATCH -_POLICYTOPICEVIDENCE.fields_by_name['destination_not_working'].message_type = _POLICYTOPICEVIDENCE_DESTINATIONNOTWORKING -_POLICYTOPICEVIDENCE.oneofs_by_name['value'].fields.append( - _POLICYTOPICEVIDENCE.fields_by_name['http_code']) -_POLICYTOPICEVIDENCE.fields_by_name['http_code'].containing_oneof = _POLICYTOPICEVIDENCE.oneofs_by_name['value'] -_POLICYTOPICEVIDENCE.oneofs_by_name['value'].fields.append( - _POLICYTOPICEVIDENCE.fields_by_name['website_list']) -_POLICYTOPICEVIDENCE.fields_by_name['website_list'].containing_oneof = _POLICYTOPICEVIDENCE.oneofs_by_name['value'] -_POLICYTOPICEVIDENCE.oneofs_by_name['value'].fields.append( - _POLICYTOPICEVIDENCE.fields_by_name['text_list']) -_POLICYTOPICEVIDENCE.fields_by_name['text_list'].containing_oneof = _POLICYTOPICEVIDENCE.oneofs_by_name['value'] -_POLICYTOPICEVIDENCE.oneofs_by_name['value'].fields.append( - _POLICYTOPICEVIDENCE.fields_by_name['language_code']) -_POLICYTOPICEVIDENCE.fields_by_name['language_code'].containing_oneof = _POLICYTOPICEVIDENCE.oneofs_by_name['value'] -_POLICYTOPICEVIDENCE.oneofs_by_name['value'].fields.append( - _POLICYTOPICEVIDENCE.fields_by_name['destination_text_list']) -_POLICYTOPICEVIDENCE.fields_by_name['destination_text_list'].containing_oneof = _POLICYTOPICEVIDENCE.oneofs_by_name['value'] -_POLICYTOPICEVIDENCE.oneofs_by_name['value'].fields.append( - _POLICYTOPICEVIDENCE.fields_by_name['destination_mismatch']) -_POLICYTOPICEVIDENCE.fields_by_name['destination_mismatch'].containing_oneof = _POLICYTOPICEVIDENCE.oneofs_by_name['value'] -_POLICYTOPICEVIDENCE.oneofs_by_name['value'].fields.append( - _POLICYTOPICEVIDENCE.fields_by_name['destination_not_working']) -_POLICYTOPICEVIDENCE.fields_by_name['destination_not_working'].containing_oneof = _POLICYTOPICEVIDENCE.oneofs_by_name['value'] -_POLICYTOPICCONSTRAINT_COUNTRYCONSTRAINTLIST.fields_by_name['total_targeted_countries'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT32VALUE -_POLICYTOPICCONSTRAINT_COUNTRYCONSTRAINTLIST.fields_by_name['countries'].message_type = _POLICYTOPICCONSTRAINT_COUNTRYCONSTRAINT -_POLICYTOPICCONSTRAINT_COUNTRYCONSTRAINTLIST.containing_type = _POLICYTOPICCONSTRAINT -_POLICYTOPICCONSTRAINT_RESELLERCONSTRAINT.containing_type = _POLICYTOPICCONSTRAINT -_POLICYTOPICCONSTRAINT_COUNTRYCONSTRAINT.fields_by_name['country_criterion'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_POLICYTOPICCONSTRAINT_COUNTRYCONSTRAINT.containing_type = _POLICYTOPICCONSTRAINT -_POLICYTOPICCONSTRAINT.fields_by_name['country_constraint_list'].message_type = _POLICYTOPICCONSTRAINT_COUNTRYCONSTRAINTLIST -_POLICYTOPICCONSTRAINT.fields_by_name['reseller_constraint'].message_type = _POLICYTOPICCONSTRAINT_RESELLERCONSTRAINT -_POLICYTOPICCONSTRAINT.fields_by_name['certificate_missing_in_country_list'].message_type = _POLICYTOPICCONSTRAINT_COUNTRYCONSTRAINTLIST -_POLICYTOPICCONSTRAINT.fields_by_name['certificate_domain_mismatch_in_country_list'].message_type = _POLICYTOPICCONSTRAINT_COUNTRYCONSTRAINTLIST -_POLICYTOPICCONSTRAINT.oneofs_by_name['value'].fields.append( - _POLICYTOPICCONSTRAINT.fields_by_name['country_constraint_list']) -_POLICYTOPICCONSTRAINT.fields_by_name['country_constraint_list'].containing_oneof = _POLICYTOPICCONSTRAINT.oneofs_by_name['value'] -_POLICYTOPICCONSTRAINT.oneofs_by_name['value'].fields.append( - _POLICYTOPICCONSTRAINT.fields_by_name['reseller_constraint']) -_POLICYTOPICCONSTRAINT.fields_by_name['reseller_constraint'].containing_oneof = _POLICYTOPICCONSTRAINT.oneofs_by_name['value'] -_POLICYTOPICCONSTRAINT.oneofs_by_name['value'].fields.append( - _POLICYTOPICCONSTRAINT.fields_by_name['certificate_missing_in_country_list']) -_POLICYTOPICCONSTRAINT.fields_by_name['certificate_missing_in_country_list'].containing_oneof = _POLICYTOPICCONSTRAINT.oneofs_by_name['value'] -_POLICYTOPICCONSTRAINT.oneofs_by_name['value'].fields.append( - _POLICYTOPICCONSTRAINT.fields_by_name['certificate_domain_mismatch_in_country_list']) -_POLICYTOPICCONSTRAINT.fields_by_name['certificate_domain_mismatch_in_country_list'].containing_oneof = _POLICYTOPICCONSTRAINT.oneofs_by_name['value'] -DESCRIPTOR.message_types_by_name['PolicyViolationKey'] = _POLICYVIOLATIONKEY -DESCRIPTOR.message_types_by_name['PolicyValidationParameter'] = _POLICYVALIDATIONPARAMETER -DESCRIPTOR.message_types_by_name['PolicyTopicEntry'] = _POLICYTOPICENTRY -DESCRIPTOR.message_types_by_name['PolicyTopicEvidence'] = _POLICYTOPICEVIDENCE -DESCRIPTOR.message_types_by_name['PolicyTopicConstraint'] = _POLICYTOPICCONSTRAINT -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -PolicyViolationKey = _reflection.GeneratedProtocolMessageType('PolicyViolationKey', (_message.Message,), dict( - DESCRIPTOR = _POLICYVIOLATIONKEY, - __module__ = 'google.ads.googleads_v1.proto.common.policy_pb2' - , - __doc__ = """Key of the violation. The key is used for referring to a violation when - filing an exemption request. - - - Attributes: - policy_name: - Unique ID of the violated policy. - violating_text: - The text that violates the policy if specified. Otherwise, - refers to the policy in general (e.g., when requesting to be - exempt from the whole policy). If not specified for criterion - exemptions, the whole policy is implied. Must be specified for - ad exemptions. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.PolicyViolationKey) - )) -_sym_db.RegisterMessage(PolicyViolationKey) - -PolicyValidationParameter = _reflection.GeneratedProtocolMessageType('PolicyValidationParameter', (_message.Message,), dict( - DESCRIPTOR = _POLICYVALIDATIONPARAMETER, - __module__ = 'google.ads.googleads_v1.proto.common.policy_pb2' - , - __doc__ = """Parameter for controlling how policy exemption is done. Ignorable policy - topics are only usable with expanded text ads and responsive search ads. - All other ad types must use policy violation keys. - - - Attributes: - ignorable_policy_topics: - The list of policy topics that should not cause a - PolicyFindingError to be reported. This field is currently - only compatible with Enhanced Text Ad. It corresponds to the - PolicyTopicEntry.topic field. Resources violating these - policies will be saved, but will not be eligible to serve. - They may begin serving at a later time due to a change in - policies, re-review of the resource, or a change in advertiser - certificates. - exempt_policy_violation_keys: - The list of policy violation keys that should not cause a - PolicyViolationError to be reported. Not all policy violations - are exemptable, please refer to the is\_exemptible field in - the returned PolicyViolationError. Resources violating these - polices will be saved, but will not be eligible to serve. They - may begin serving at a later time due to a change in policies, - re-review of the resource, or a change in advertiser - certificates. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.PolicyValidationParameter) - )) -_sym_db.RegisterMessage(PolicyValidationParameter) - -PolicyTopicEntry = _reflection.GeneratedProtocolMessageType('PolicyTopicEntry', (_message.Message,), dict( - DESCRIPTOR = _POLICYTOPICENTRY, - __module__ = 'google.ads.googleads_v1.proto.common.policy_pb2' - , - __doc__ = """Policy finding attached to a resource (e.g. alcohol policy associated - with a site that sells alcohol). - - Each PolicyTopicEntry has a topic that indicates the specific ads policy - the entry is about and a type to indicate the effect that the entry will - have on serving. It may optionally have one or more evidences that - indicate the reason for the finding. It may also optionally have one or - more constraints that provide details about how serving may be - restricted. - - - Attributes: - topic: - Policy topic this finding refers to. For example, "ALCOHOL", - "TRADEMARKS\_IN\_AD\_TEXT", or "DESTINATION\_NOT\_WORKING". - The set of possible policy topics is not fixed for a - particular API version and may change at any time. - type: - Describes the negative or positive effect this policy will - have on serving. - evidences: - Additional information that explains policy finding (e.g. the - brand name for a trademark finding). - constraints: - Indicates how serving of this resource may be affected (e.g. - not serving in a country). - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.PolicyTopicEntry) - )) -_sym_db.RegisterMessage(PolicyTopicEntry) - -PolicyTopicEvidence = _reflection.GeneratedProtocolMessageType('PolicyTopicEvidence', (_message.Message,), dict( - - TextList = _reflection.GeneratedProtocolMessageType('TextList', (_message.Message,), dict( - DESCRIPTOR = _POLICYTOPICEVIDENCE_TEXTLIST, - __module__ = 'google.ads.googleads_v1.proto.common.policy_pb2' - , - __doc__ = """A list of fragments of text that violated a policy. - - - Attributes: - texts: - The fragments of text from the resource that caused the policy - finding. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.PolicyTopicEvidence.TextList) - )) - , - - WebsiteList = _reflection.GeneratedProtocolMessageType('WebsiteList', (_message.Message,), dict( - DESCRIPTOR = _POLICYTOPICEVIDENCE_WEBSITELIST, - __module__ = 'google.ads.googleads_v1.proto.common.policy_pb2' - , - __doc__ = """A list of websites that caused a policy finding. Used for - ONE\_WEBSITE\_PER\_AD\_GROUP policy topic, for example. In case there - are more than five websites, only the top five (those that appear in - resources the most) will be listed here. - - - Attributes: - websites: - Websites that caused the policy finding. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.PolicyTopicEvidence.WebsiteList) - )) - , - - DestinationTextList = _reflection.GeneratedProtocolMessageType('DestinationTextList', (_message.Message,), dict( - DESCRIPTOR = _POLICYTOPICEVIDENCE_DESTINATIONTEXTLIST, - __module__ = 'google.ads.googleads_v1.proto.common.policy_pb2' - , - __doc__ = """A list of strings found in a destination page that caused a policy - finding. - - - Attributes: - destination_texts: - List of text found in the resource's destination page. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.PolicyTopicEvidence.DestinationTextList) - )) - , - - DestinationMismatch = _reflection.GeneratedProtocolMessageType('DestinationMismatch', (_message.Message,), dict( - DESCRIPTOR = _POLICYTOPICEVIDENCE_DESTINATIONMISMATCH, - __module__ = 'google.ads.googleads_v1.proto.common.policy_pb2' - , - __doc__ = """Evidence of mismatches between the URLs of a resource. - - - Attributes: - url_types: - The set of URLs that did not match each other. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.PolicyTopicEvidence.DestinationMismatch) - )) - , - - DestinationNotWorking = _reflection.GeneratedProtocolMessageType('DestinationNotWorking', (_message.Message,), dict( - DESCRIPTOR = _POLICYTOPICEVIDENCE_DESTINATIONNOTWORKING, - __module__ = 'google.ads.googleads_v1.proto.common.policy_pb2' - , - __doc__ = """Evidence details when the destination is returning an HTTP error code or - isn't functional in all locations for commonly used devices. - - - Attributes: - expanded_url: - The full URL that didn't work. - device: - The type of device that failed to load the URL. - last_checked_date_time: - The time the URL was last checked. The format is "YYYY-MM-DD - HH:MM:SS". Examples: "2018-03-05 09:15:00" or "2018-02-01 - 14:34:30" - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.PolicyTopicEvidence.DestinationNotWorking) - )) - , - DESCRIPTOR = _POLICYTOPICEVIDENCE, - __module__ = 'google.ads.googleads_v1.proto.common.policy_pb2' - , - __doc__ = """Additional information that explains a policy finding. - - - Attributes: - value: - Specific evidence information depending on the evidence type. - http_code: - HTTP code returned when the final URL was crawled. - website_list: - List of websites linked with this resource. - text_list: - List of evidence found in the text of a resource. - language_code: - The language the resource was detected to be written in. This - is an IETF language tag such as "en-US". - destination_text_list: - The text in the destination of the resource that is causing a - policy finding. - destination_mismatch: - Mismatch between the destinations of a resource's URLs. - destination_not_working: - Details when the destination is returning an HTTP error code - or isn't functional in all locations for commonly used - devices. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.PolicyTopicEvidence) - )) -_sym_db.RegisterMessage(PolicyTopicEvidence) -_sym_db.RegisterMessage(PolicyTopicEvidence.TextList) -_sym_db.RegisterMessage(PolicyTopicEvidence.WebsiteList) -_sym_db.RegisterMessage(PolicyTopicEvidence.DestinationTextList) -_sym_db.RegisterMessage(PolicyTopicEvidence.DestinationMismatch) -_sym_db.RegisterMessage(PolicyTopicEvidence.DestinationNotWorking) - -PolicyTopicConstraint = _reflection.GeneratedProtocolMessageType('PolicyTopicConstraint', (_message.Message,), dict( - - CountryConstraintList = _reflection.GeneratedProtocolMessageType('CountryConstraintList', (_message.Message,), dict( - DESCRIPTOR = _POLICYTOPICCONSTRAINT_COUNTRYCONSTRAINTLIST, - __module__ = 'google.ads.googleads_v1.proto.common.policy_pb2' - , - __doc__ = """A list of countries where a resource's serving is constrained. - - - Attributes: - total_targeted_countries: - Total number of countries targeted by the resource. - countries: - Countries in which serving is restricted. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.PolicyTopicConstraint.CountryConstraintList) - )) - , - - ResellerConstraint = _reflection.GeneratedProtocolMessageType('ResellerConstraint', (_message.Message,), dict( - DESCRIPTOR = _POLICYTOPICCONSTRAINT_RESELLERCONSTRAINT, - __module__ = 'google.ads.googleads_v1.proto.common.policy_pb2' - , - __doc__ = """Indicates that a policy topic was constrained due to disapproval of the - website for reseller purposes. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.PolicyTopicConstraint.ResellerConstraint) - )) - , - - CountryConstraint = _reflection.GeneratedProtocolMessageType('CountryConstraint', (_message.Message,), dict( - DESCRIPTOR = _POLICYTOPICCONSTRAINT_COUNTRYCONSTRAINT, - __module__ = 'google.ads.googleads_v1.proto.common.policy_pb2' - , - __doc__ = """Indicates that a resource's ability to serve in a particular country is - constrained. - - - Attributes: - country_criterion: - Geo target constant resource name of the country in which - serving is constrained. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.PolicyTopicConstraint.CountryConstraint) - )) - , - DESCRIPTOR = _POLICYTOPICCONSTRAINT, - __module__ = 'google.ads.googleads_v1.proto.common.policy_pb2' - , - __doc__ = """Describes the effect on serving that a policy topic entry will have. - - - Attributes: - value: - Specific information about the constraint. - country_constraint_list: - Countries where the resource cannot serve. - reseller_constraint: - Reseller constraint. - certificate_missing_in_country_list: - Countries where a certificate is required for serving. - certificate_domain_mismatch_in_country_list: - Countries where the resource's domain is not covered by the - certificates associated with it. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.PolicyTopicConstraint) - )) -_sym_db.RegisterMessage(PolicyTopicConstraint) -_sym_db.RegisterMessage(PolicyTopicConstraint.CountryConstraintList) -_sym_db.RegisterMessage(PolicyTopicConstraint.ResellerConstraint) -_sym_db.RegisterMessage(PolicyTopicConstraint.CountryConstraint) - - -DESCRIPTOR._options = None -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/common/real_time_bidding_setting_pb2.py b/google/ads/google_ads/v1/proto/common/real_time_bidding_setting_pb2.py deleted file mode 100644 index 496991eca..000000000 --- a/google/ads/google_ads/v1/proto/common/real_time_bidding_setting_pb2.py +++ /dev/null @@ -1,84 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/common/real_time_bidding_setting.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/common/real_time_bidding_setting.proto', - package='google.ads.googleads.v1.common', - syntax='proto3', - serialized_options=_b('\n\"com.google.ads.googleads.v1.commonB\033RealTimeBiddingSettingProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/common;common\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V1.Common\312\002\036Google\\Ads\\GoogleAds\\V1\\Common\352\002\"Google::Ads::GoogleAds::V1::Common'), - serialized_pb=_b('\nDgoogle/ads/googleads_v1/proto/common/real_time_bidding_setting.proto\x12\x1egoogle.ads.googleads.v1.common\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1cgoogle/api/annotations.proto\"D\n\x16RealTimeBiddingSetting\x12*\n\x06opt_in\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.BoolValueB\xf6\x01\n\"com.google.ads.googleads.v1.commonB\x1bRealTimeBiddingSettingProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/common;common\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V1.Common\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V1\\Common\xea\x02\"Google::Ads::GoogleAds::V1::Commonb\x06proto3') - , - dependencies=[google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - - -_REALTIMEBIDDINGSETTING = _descriptor.Descriptor( - name='RealTimeBiddingSetting', - full_name='google.ads.googleads.v1.common.RealTimeBiddingSetting', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='opt_in', full_name='google.ads.googleads.v1.common.RealTimeBiddingSetting.opt_in', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=166, - serialized_end=234, -) - -_REALTIMEBIDDINGSETTING.fields_by_name['opt_in'].message_type = google_dot_protobuf_dot_wrappers__pb2._BOOLVALUE -DESCRIPTOR.message_types_by_name['RealTimeBiddingSetting'] = _REALTIMEBIDDINGSETTING -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -RealTimeBiddingSetting = _reflection.GeneratedProtocolMessageType('RealTimeBiddingSetting', (_message.Message,), dict( - DESCRIPTOR = _REALTIMEBIDDINGSETTING, - __module__ = 'google.ads.googleads_v1.proto.common.real_time_bidding_setting_pb2' - , - __doc__ = """Settings for Real-Time Bidding, a feature only available for campaigns - targeting the Ad Exchange network. - - - Attributes: - opt_in: - Whether the campaign is opted in to real-time bidding. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.RealTimeBiddingSetting) - )) -_sym_db.RegisterMessage(RealTimeBiddingSetting) - - -DESCRIPTOR._options = None -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/common/segments_pb2.py b/google/ads/google_ads/v1/proto/common/segments_pb2.py deleted file mode 100644 index c82e9c8d6..000000000 --- a/google/ads/google_ads/v1/proto/common/segments_pb2.py +++ /dev/null @@ -1,930 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/common/segments.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.ads.google_ads.v1.proto.common import criteria_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_criteria__pb2 -from google.ads.google_ads.v1.proto.enums import ad_network_type_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_ad__network__type__pb2 -from google.ads.google_ads.v1.proto.enums import click_type_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_click__type__pb2 -from google.ads.google_ads.v1.proto.enums import conversion_action_category_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_conversion__action__category__pb2 -from google.ads.google_ads.v1.proto.enums import conversion_attribution_event_type_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_conversion__attribution__event__type__pb2 -from google.ads.google_ads.v1.proto.enums import conversion_lag_bucket_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_conversion__lag__bucket__pb2 -from google.ads.google_ads.v1.proto.enums import conversion_or_adjustment_lag_bucket_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_conversion__or__adjustment__lag__bucket__pb2 -from google.ads.google_ads.v1.proto.enums import day_of_week_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_day__of__week__pb2 -from google.ads.google_ads.v1.proto.enums import device_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_device__pb2 -from google.ads.google_ads.v1.proto.enums import external_conversion_source_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_external__conversion__source__pb2 -from google.ads.google_ads.v1.proto.enums import hotel_date_selection_type_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_hotel__date__selection__type__pb2 -from google.ads.google_ads.v1.proto.enums import hotel_rate_type_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_hotel__rate__type__pb2 -from google.ads.google_ads.v1.proto.enums import month_of_year_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_month__of__year__pb2 -from google.ads.google_ads.v1.proto.enums import placeholder_type_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_placeholder__type__pb2 -from google.ads.google_ads.v1.proto.enums import product_channel_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_product__channel__pb2 -from google.ads.google_ads.v1.proto.enums import product_channel_exclusivity_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_product__channel__exclusivity__pb2 -from google.ads.google_ads.v1.proto.enums import product_condition_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_product__condition__pb2 -from google.ads.google_ads.v1.proto.enums import search_engine_results_page_type_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_search__engine__results__page__type__pb2 -from google.ads.google_ads.v1.proto.enums import search_term_match_type_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_search__term__match__type__pb2 -from google.ads.google_ads.v1.proto.enums import slot_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_slot__pb2 -from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/common/segments.proto', - package='google.ads.googleads.v1.common', - syntax='proto3', - serialized_options=_b('\n\"com.google.ads.googleads.v1.commonB\rSegmentsProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/common;common\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V1.Common\312\002\036Google\\Ads\\GoogleAds\\V1\\Common\352\002\"Google::Ads::GoogleAds::V1::Common'), - serialized_pb=_b('\n3google/ads/googleads_v1/proto/common/segments.proto\x12\x1egoogle.ads.googleads.v1.common\x1a\x33google/ads/googleads_v1/proto/common/criteria.proto\x1a\x39google/ads/googleads_v1/proto/enums/ad_network_type.proto\x1a\x34google/ads/googleads_v1/proto/enums/click_type.proto\x1a\x44google/ads/googleads_v1/proto/enums/conversion_action_category.proto\x1aKgoogle/ads/googleads_v1/proto/enums/conversion_attribution_event_type.proto\x1a?google/ads/googleads_v1/proto/enums/conversion_lag_bucket.proto\x1aMgoogle/ads/googleads_v1/proto/enums/conversion_or_adjustment_lag_bucket.proto\x1a\x35google/ads/googleads_v1/proto/enums/day_of_week.proto\x1a\x30google/ads/googleads_v1/proto/enums/device.proto\x1a\x44google/ads/googleads_v1/proto/enums/external_conversion_source.proto\x1a\x43google/ads/googleads_v1/proto/enums/hotel_date_selection_type.proto\x1a\x39google/ads/googleads_v1/proto/enums/hotel_rate_type.proto\x1a\x37google/ads/googleads_v1/proto/enums/month_of_year.proto\x1a:google/ads/googleads_v1/proto/enums/placeholder_type.proto\x1a\x39google/ads/googleads_v1/proto/enums/product_channel.proto\x1a\x45google/ads/googleads_v1/proto/enums/product_channel_exclusivity.proto\x1a;google/ads/googleads_v1/proto/enums/product_condition.proto\x1aIgoogle/ads/googleads_v1/proto/enums/search_engine_results_page_type.proto\x1a@google/ads/googleads_v1/proto/enums/search_term_match_type.proto\x1a.google/ads/googleads_v1/proto/enums/slot.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1cgoogle/api/annotations.proto\"\xdc(\n\x08Segments\x12W\n\x0f\x61\x64_network_type\x18\x03 \x01(\x0e\x32>.google.ads.googleads.v1.enums.AdNetworkTypeEnum.AdNetworkType\x12J\n\nclick_type\x18\x1a \x01(\x0e\x32\x36.google.ads.googleads.v1.enums.ClickTypeEnum.ClickType\x12\x37\n\x11\x63onversion_action\x18\x34 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12x\n\x1a\x63onversion_action_category\x18\x35 \x01(\x0e\x32T.google.ads.googleads.v1.enums.ConversionActionCategoryEnum.ConversionActionCategory\x12<\n\x16\x63onversion_action_name\x18\x36 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x39\n\x15\x63onversion_adjustment\x18\x1b \x01(\x0b\x32\x1a.google.protobuf.BoolValue\x12\x8b\x01\n!conversion_attribution_event_type\x18\x02 \x01(\x0e\x32`.google.ads.googleads.v1.enums.ConversionAttributionEventTypeEnum.ConversionAttributionEventType\x12i\n\x15\x63onversion_lag_bucket\x18\x32 \x01(\x0e\x32J.google.ads.googleads.v1.enums.ConversionLagBucketEnum.ConversionLagBucket\x12\x8f\x01\n#conversion_or_adjustment_lag_bucket\x18\x33 \x01(\x0e\x32\x62.google.ads.googleads.v1.enums.ConversionOrAdjustmentLagBucketEnum.ConversionOrAdjustmentLagBucket\x12*\n\x04\x64\x61te\x18\x04 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12K\n\x0b\x64\x61y_of_week\x18\x05 \x01(\x0e\x32\x36.google.ads.googleads.v1.enums.DayOfWeekEnum.DayOfWeek\x12@\n\x06\x64\x65vice\x18\x01 \x01(\x0e\x32\x30.google.ads.googleads.v1.enums.DeviceEnum.Device\x12x\n\x1a\x65xternal_conversion_source\x18\x37 \x01(\x0e\x32T.google.ads.googleads.v1.enums.ExternalConversionSourceEnum.ExternalConversionSource\x12\x38\n\x12geo_target_airport\x18\x41 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x35\n\x0fgeo_target_city\x18> \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x37\n\x11geo_target_county\x18\x44 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x39\n\x13geo_target_district\x18\x45 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x36\n\x10geo_target_metro\x18? \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12G\n!geo_target_most_specific_location\x18H \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12<\n\x16geo_target_postal_code\x18G \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x39\n\x13geo_target_province\x18K \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x37\n\x11geo_target_region\x18@ \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x36\n\x10geo_target_state\x18\x43 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12>\n\x19hotel_booking_window_days\x18\x06 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x34\n\x0fhotel_center_id\x18\x07 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x39\n\x13hotel_check_in_date\x18\x08 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12Z\n\x1ahotel_check_in_day_of_week\x18\t \x01(\x0e\x32\x36.google.ads.googleads.v1.enums.DayOfWeekEnum.DayOfWeek\x12\x30\n\nhotel_city\x18\n \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x30\n\x0bhotel_class\x18\x0b \x01(\x0b\x32\x1b.google.protobuf.Int32Value\x12\x33\n\rhotel_country\x18\x0c \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12s\n\x19hotel_date_selection_type\x18\r \x01(\x0e\x32P.google.ads.googleads.v1.enums.HotelDateSelectionTypeEnum.HotelDateSelectionType\x12\x39\n\x14hotel_length_of_stay\x18\x0e \x01(\x0b\x32\x1b.google.protobuf.Int32Value\x12\x38\n\x12hotel_rate_rule_id\x18I \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12W\n\x0fhotel_rate_type\x18J \x01(\x0e\x32>.google.ads.googleads.v1.enums.HotelRateTypeEnum.HotelRateType\x12\x31\n\x0bhotel_state\x18\x0f \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12)\n\x04hour\x18\x10 \x01(\x0b\x32\x1b.google.protobuf.Int32Value\x12\x41\n\x1dinteraction_on_this_extension\x18\x31 \x01(\x0b\x32\x1a.google.protobuf.BoolValue\x12\x38\n\x07keyword\x18= \x01(\x0b\x32\'.google.ads.googleads.v1.common.Keyword\x12+\n\x05month\x18\x11 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12Q\n\rmonth_of_year\x18\x12 \x01(\x0e\x32:.google.ads.googleads.v1.enums.MonthOfYearEnum.MonthOfYear\x12\x36\n\x10partner_hotel_id\x18\x13 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\\\n\x10placeholder_type\x18\x14 \x01(\x0e\x32\x42.google.ads.googleads.v1.enums.PlaceholderTypeEnum.PlaceholderType\x12;\n\x15product_aggregator_id\x18\x1c \x01(\x0b\x32\x1c.google.protobuf.UInt64Value\x12\x45\n\x1fproduct_bidding_category_level1\x18\x38 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x45\n\x1fproduct_bidding_category_level2\x18\x39 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x45\n\x1fproduct_bidding_category_level3\x18: \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x45\n\x1fproduct_bidding_category_level4\x18; \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x45\n\x1fproduct_bidding_category_level5\x18< \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x33\n\rproduct_brand\x18\x1d \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12Y\n\x0fproduct_channel\x18\x1e \x01(\x0e\x32@.google.ads.googleads.v1.enums.ProductChannelEnum.ProductChannel\x12{\n\x1bproduct_channel_exclusivity\x18\x1f \x01(\x0e\x32V.google.ads.googleads.v1.enums.ProductChannelExclusivityEnum.ProductChannelExclusivity\x12_\n\x11product_condition\x18 \x01(\x0e\x32\x44.google.ads.googleads.v1.enums.ProductConditionEnum.ProductCondition\x12\x35\n\x0fproduct_country\x18! \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12?\n\x19product_custom_attribute0\x18\" \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12?\n\x19product_custom_attribute1\x18# \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12?\n\x19product_custom_attribute2\x18$ \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12?\n\x19product_custom_attribute3\x18% \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12?\n\x19product_custom_attribute4\x18& \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x35\n\x0fproduct_item_id\x18\' \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x36\n\x10product_language\x18( \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x39\n\x13product_merchant_id\x18) \x01(\x0b\x32\x1c.google.protobuf.UInt64Value\x12\x36\n\x10product_store_id\x18* \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x33\n\rproduct_title\x18+ \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x35\n\x0fproduct_type_l1\x18, \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x35\n\x0fproduct_type_l2\x18- \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x35\n\x0fproduct_type_l3\x18. \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x35\n\x0fproduct_type_l4\x18/ \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x35\n\x0fproduct_type_l5\x18\x30 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12-\n\x07quarter\x18\x15 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x83\x01\n\x1fsearch_engine_results_page_type\x18\x46 \x01(\x0e\x32Z.google.ads.googleads.v1.enums.SearchEngineResultsPageTypeEnum.SearchEngineResultsPageType\x12j\n\x16search_term_match_type\x18\x16 \x01(\x0e\x32J.google.ads.googleads.v1.enums.SearchTermMatchTypeEnum.SearchTermMatchType\x12:\n\x04slot\x18\x17 \x01(\x0e\x32,.google.ads.googleads.v1.enums.SlotEnum.Slot\x12-\n\x07webpage\x18\x42 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12*\n\x04week\x18\x18 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12)\n\x04year\x18\x19 \x01(\x0b\x32\x1b.google.protobuf.Int32Value\"~\n\x07Keyword\x12\x38\n\x12\x61\x64_group_criterion\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x39\n\x04info\x18\x02 \x01(\x0b\x32+.google.ads.googleads.v1.common.KeywordInfoB\xe8\x01\n\"com.google.ads.googleads.v1.commonB\rSegmentsProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/common;common\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V1.Common\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V1\\Common\xea\x02\"Google::Ads::GoogleAds::V1::Commonb\x06proto3') - , - dependencies=[google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_criteria__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_ad__network__type__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_click__type__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_conversion__action__category__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_conversion__attribution__event__type__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_conversion__lag__bucket__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_conversion__or__adjustment__lag__bucket__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_day__of__week__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_device__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_external__conversion__source__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_hotel__date__selection__type__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_hotel__rate__type__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_month__of__year__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_placeholder__type__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_product__channel__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_product__channel__exclusivity__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_product__condition__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_search__engine__results__page__type__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_search__term__match__type__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_slot__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - - -_SEGMENTS = _descriptor.Descriptor( - name='Segments', - full_name='google.ads.googleads.v1.common.Segments', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='ad_network_type', full_name='google.ads.googleads.v1.common.Segments.ad_network_type', index=0, - number=3, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='click_type', full_name='google.ads.googleads.v1.common.Segments.click_type', index=1, - number=26, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='conversion_action', full_name='google.ads.googleads.v1.common.Segments.conversion_action', index=2, - number=52, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='conversion_action_category', full_name='google.ads.googleads.v1.common.Segments.conversion_action_category', index=3, - number=53, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='conversion_action_name', full_name='google.ads.googleads.v1.common.Segments.conversion_action_name', index=4, - number=54, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='conversion_adjustment', full_name='google.ads.googleads.v1.common.Segments.conversion_adjustment', index=5, - number=27, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='conversion_attribution_event_type', full_name='google.ads.googleads.v1.common.Segments.conversion_attribution_event_type', index=6, - number=2, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='conversion_lag_bucket', full_name='google.ads.googleads.v1.common.Segments.conversion_lag_bucket', index=7, - number=50, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='conversion_or_adjustment_lag_bucket', full_name='google.ads.googleads.v1.common.Segments.conversion_or_adjustment_lag_bucket', index=8, - number=51, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='date', full_name='google.ads.googleads.v1.common.Segments.date', index=9, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='day_of_week', full_name='google.ads.googleads.v1.common.Segments.day_of_week', index=10, - number=5, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='device', full_name='google.ads.googleads.v1.common.Segments.device', index=11, - number=1, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='external_conversion_source', full_name='google.ads.googleads.v1.common.Segments.external_conversion_source', index=12, - number=55, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='geo_target_airport', full_name='google.ads.googleads.v1.common.Segments.geo_target_airport', index=13, - number=65, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='geo_target_city', full_name='google.ads.googleads.v1.common.Segments.geo_target_city', index=14, - number=62, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='geo_target_county', full_name='google.ads.googleads.v1.common.Segments.geo_target_county', index=15, - number=68, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='geo_target_district', full_name='google.ads.googleads.v1.common.Segments.geo_target_district', index=16, - number=69, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='geo_target_metro', full_name='google.ads.googleads.v1.common.Segments.geo_target_metro', index=17, - number=63, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='geo_target_most_specific_location', full_name='google.ads.googleads.v1.common.Segments.geo_target_most_specific_location', index=18, - number=72, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='geo_target_postal_code', full_name='google.ads.googleads.v1.common.Segments.geo_target_postal_code', index=19, - number=71, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='geo_target_province', full_name='google.ads.googleads.v1.common.Segments.geo_target_province', index=20, - number=75, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='geo_target_region', full_name='google.ads.googleads.v1.common.Segments.geo_target_region', index=21, - number=64, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='geo_target_state', full_name='google.ads.googleads.v1.common.Segments.geo_target_state', index=22, - number=67, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='hotel_booking_window_days', full_name='google.ads.googleads.v1.common.Segments.hotel_booking_window_days', index=23, - number=6, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='hotel_center_id', full_name='google.ads.googleads.v1.common.Segments.hotel_center_id', index=24, - number=7, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='hotel_check_in_date', full_name='google.ads.googleads.v1.common.Segments.hotel_check_in_date', index=25, - number=8, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='hotel_check_in_day_of_week', full_name='google.ads.googleads.v1.common.Segments.hotel_check_in_day_of_week', index=26, - number=9, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='hotel_city', full_name='google.ads.googleads.v1.common.Segments.hotel_city', index=27, - number=10, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='hotel_class', full_name='google.ads.googleads.v1.common.Segments.hotel_class', index=28, - number=11, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='hotel_country', full_name='google.ads.googleads.v1.common.Segments.hotel_country', index=29, - number=12, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='hotel_date_selection_type', full_name='google.ads.googleads.v1.common.Segments.hotel_date_selection_type', index=30, - number=13, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='hotel_length_of_stay', full_name='google.ads.googleads.v1.common.Segments.hotel_length_of_stay', index=31, - number=14, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='hotel_rate_rule_id', full_name='google.ads.googleads.v1.common.Segments.hotel_rate_rule_id', index=32, - number=73, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='hotel_rate_type', full_name='google.ads.googleads.v1.common.Segments.hotel_rate_type', index=33, - number=74, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='hotel_state', full_name='google.ads.googleads.v1.common.Segments.hotel_state', index=34, - number=15, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='hour', full_name='google.ads.googleads.v1.common.Segments.hour', index=35, - number=16, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='interaction_on_this_extension', full_name='google.ads.googleads.v1.common.Segments.interaction_on_this_extension', index=36, - number=49, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='keyword', full_name='google.ads.googleads.v1.common.Segments.keyword', index=37, - number=61, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='month', full_name='google.ads.googleads.v1.common.Segments.month', index=38, - number=17, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='month_of_year', full_name='google.ads.googleads.v1.common.Segments.month_of_year', index=39, - number=18, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='partner_hotel_id', full_name='google.ads.googleads.v1.common.Segments.partner_hotel_id', index=40, - number=19, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='placeholder_type', full_name='google.ads.googleads.v1.common.Segments.placeholder_type', index=41, - number=20, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='product_aggregator_id', full_name='google.ads.googleads.v1.common.Segments.product_aggregator_id', index=42, - number=28, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='product_bidding_category_level1', full_name='google.ads.googleads.v1.common.Segments.product_bidding_category_level1', index=43, - number=56, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='product_bidding_category_level2', full_name='google.ads.googleads.v1.common.Segments.product_bidding_category_level2', index=44, - number=57, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='product_bidding_category_level3', full_name='google.ads.googleads.v1.common.Segments.product_bidding_category_level3', index=45, - number=58, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='product_bidding_category_level4', full_name='google.ads.googleads.v1.common.Segments.product_bidding_category_level4', index=46, - number=59, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='product_bidding_category_level5', full_name='google.ads.googleads.v1.common.Segments.product_bidding_category_level5', index=47, - number=60, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='product_brand', full_name='google.ads.googleads.v1.common.Segments.product_brand', index=48, - number=29, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='product_channel', full_name='google.ads.googleads.v1.common.Segments.product_channel', index=49, - number=30, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='product_channel_exclusivity', full_name='google.ads.googleads.v1.common.Segments.product_channel_exclusivity', index=50, - number=31, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='product_condition', full_name='google.ads.googleads.v1.common.Segments.product_condition', index=51, - number=32, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='product_country', full_name='google.ads.googleads.v1.common.Segments.product_country', index=52, - number=33, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='product_custom_attribute0', full_name='google.ads.googleads.v1.common.Segments.product_custom_attribute0', index=53, - number=34, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='product_custom_attribute1', full_name='google.ads.googleads.v1.common.Segments.product_custom_attribute1', index=54, - number=35, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='product_custom_attribute2', full_name='google.ads.googleads.v1.common.Segments.product_custom_attribute2', index=55, - number=36, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='product_custom_attribute3', full_name='google.ads.googleads.v1.common.Segments.product_custom_attribute3', index=56, - number=37, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='product_custom_attribute4', full_name='google.ads.googleads.v1.common.Segments.product_custom_attribute4', index=57, - number=38, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='product_item_id', full_name='google.ads.googleads.v1.common.Segments.product_item_id', index=58, - number=39, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='product_language', full_name='google.ads.googleads.v1.common.Segments.product_language', index=59, - number=40, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='product_merchant_id', full_name='google.ads.googleads.v1.common.Segments.product_merchant_id', index=60, - number=41, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='product_store_id', full_name='google.ads.googleads.v1.common.Segments.product_store_id', index=61, - number=42, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='product_title', full_name='google.ads.googleads.v1.common.Segments.product_title', index=62, - number=43, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='product_type_l1', full_name='google.ads.googleads.v1.common.Segments.product_type_l1', index=63, - number=44, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='product_type_l2', full_name='google.ads.googleads.v1.common.Segments.product_type_l2', index=64, - number=45, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='product_type_l3', full_name='google.ads.googleads.v1.common.Segments.product_type_l3', index=65, - number=46, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='product_type_l4', full_name='google.ads.googleads.v1.common.Segments.product_type_l4', index=66, - number=47, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='product_type_l5', full_name='google.ads.googleads.v1.common.Segments.product_type_l5', index=67, - number=48, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='quarter', full_name='google.ads.googleads.v1.common.Segments.quarter', index=68, - number=21, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='search_engine_results_page_type', full_name='google.ads.googleads.v1.common.Segments.search_engine_results_page_type', index=69, - number=70, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='search_term_match_type', full_name='google.ads.googleads.v1.common.Segments.search_term_match_type', index=70, - number=22, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='slot', full_name='google.ads.googleads.v1.common.Segments.slot', index=71, - number=23, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='webpage', full_name='google.ads.googleads.v1.common.Segments.webpage', index=72, - number=66, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='week', full_name='google.ads.googleads.v1.common.Segments.week', index=73, - number=24, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='year', full_name='google.ads.googleads.v1.common.Segments.year', index=74, - number=25, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1407, - serialized_end=6619, -) - - -_KEYWORD = _descriptor.Descriptor( - name='Keyword', - full_name='google.ads.googleads.v1.common.Keyword', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='ad_group_criterion', full_name='google.ads.googleads.v1.common.Keyword.ad_group_criterion', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='info', full_name='google.ads.googleads.v1.common.Keyword.info', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=6621, - serialized_end=6747, -) - -_SEGMENTS.fields_by_name['ad_network_type'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_ad__network__type__pb2._ADNETWORKTYPEENUM_ADNETWORKTYPE -_SEGMENTS.fields_by_name['click_type'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_click__type__pb2._CLICKTYPEENUM_CLICKTYPE -_SEGMENTS.fields_by_name['conversion_action'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_SEGMENTS.fields_by_name['conversion_action_category'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_conversion__action__category__pb2._CONVERSIONACTIONCATEGORYENUM_CONVERSIONACTIONCATEGORY -_SEGMENTS.fields_by_name['conversion_action_name'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_SEGMENTS.fields_by_name['conversion_adjustment'].message_type = google_dot_protobuf_dot_wrappers__pb2._BOOLVALUE -_SEGMENTS.fields_by_name['conversion_attribution_event_type'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_conversion__attribution__event__type__pb2._CONVERSIONATTRIBUTIONEVENTTYPEENUM_CONVERSIONATTRIBUTIONEVENTTYPE -_SEGMENTS.fields_by_name['conversion_lag_bucket'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_conversion__lag__bucket__pb2._CONVERSIONLAGBUCKETENUM_CONVERSIONLAGBUCKET -_SEGMENTS.fields_by_name['conversion_or_adjustment_lag_bucket'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_conversion__or__adjustment__lag__bucket__pb2._CONVERSIONORADJUSTMENTLAGBUCKETENUM_CONVERSIONORADJUSTMENTLAGBUCKET -_SEGMENTS.fields_by_name['date'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_SEGMENTS.fields_by_name['day_of_week'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_day__of__week__pb2._DAYOFWEEKENUM_DAYOFWEEK -_SEGMENTS.fields_by_name['device'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_device__pb2._DEVICEENUM_DEVICE -_SEGMENTS.fields_by_name['external_conversion_source'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_external__conversion__source__pb2._EXTERNALCONVERSIONSOURCEENUM_EXTERNALCONVERSIONSOURCE -_SEGMENTS.fields_by_name['geo_target_airport'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_SEGMENTS.fields_by_name['geo_target_city'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_SEGMENTS.fields_by_name['geo_target_county'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_SEGMENTS.fields_by_name['geo_target_district'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_SEGMENTS.fields_by_name['geo_target_metro'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_SEGMENTS.fields_by_name['geo_target_most_specific_location'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_SEGMENTS.fields_by_name['geo_target_postal_code'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_SEGMENTS.fields_by_name['geo_target_province'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_SEGMENTS.fields_by_name['geo_target_region'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_SEGMENTS.fields_by_name['geo_target_state'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_SEGMENTS.fields_by_name['hotel_booking_window_days'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -_SEGMENTS.fields_by_name['hotel_center_id'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -_SEGMENTS.fields_by_name['hotel_check_in_date'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_SEGMENTS.fields_by_name['hotel_check_in_day_of_week'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_day__of__week__pb2._DAYOFWEEKENUM_DAYOFWEEK -_SEGMENTS.fields_by_name['hotel_city'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_SEGMENTS.fields_by_name['hotel_class'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT32VALUE -_SEGMENTS.fields_by_name['hotel_country'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_SEGMENTS.fields_by_name['hotel_date_selection_type'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_hotel__date__selection__type__pb2._HOTELDATESELECTIONTYPEENUM_HOTELDATESELECTIONTYPE -_SEGMENTS.fields_by_name['hotel_length_of_stay'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT32VALUE -_SEGMENTS.fields_by_name['hotel_rate_rule_id'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_SEGMENTS.fields_by_name['hotel_rate_type'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_hotel__rate__type__pb2._HOTELRATETYPEENUM_HOTELRATETYPE -_SEGMENTS.fields_by_name['hotel_state'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_SEGMENTS.fields_by_name['hour'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT32VALUE -_SEGMENTS.fields_by_name['interaction_on_this_extension'].message_type = google_dot_protobuf_dot_wrappers__pb2._BOOLVALUE -_SEGMENTS.fields_by_name['keyword'].message_type = _KEYWORD -_SEGMENTS.fields_by_name['month'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_SEGMENTS.fields_by_name['month_of_year'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_month__of__year__pb2._MONTHOFYEARENUM_MONTHOFYEAR -_SEGMENTS.fields_by_name['partner_hotel_id'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_SEGMENTS.fields_by_name['placeholder_type'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_placeholder__type__pb2._PLACEHOLDERTYPEENUM_PLACEHOLDERTYPE -_SEGMENTS.fields_by_name['product_aggregator_id'].message_type = google_dot_protobuf_dot_wrappers__pb2._UINT64VALUE -_SEGMENTS.fields_by_name['product_bidding_category_level1'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_SEGMENTS.fields_by_name['product_bidding_category_level2'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_SEGMENTS.fields_by_name['product_bidding_category_level3'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_SEGMENTS.fields_by_name['product_bidding_category_level4'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_SEGMENTS.fields_by_name['product_bidding_category_level5'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_SEGMENTS.fields_by_name['product_brand'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_SEGMENTS.fields_by_name['product_channel'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_product__channel__pb2._PRODUCTCHANNELENUM_PRODUCTCHANNEL -_SEGMENTS.fields_by_name['product_channel_exclusivity'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_product__channel__exclusivity__pb2._PRODUCTCHANNELEXCLUSIVITYENUM_PRODUCTCHANNELEXCLUSIVITY -_SEGMENTS.fields_by_name['product_condition'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_product__condition__pb2._PRODUCTCONDITIONENUM_PRODUCTCONDITION -_SEGMENTS.fields_by_name['product_country'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_SEGMENTS.fields_by_name['product_custom_attribute0'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_SEGMENTS.fields_by_name['product_custom_attribute1'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_SEGMENTS.fields_by_name['product_custom_attribute2'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_SEGMENTS.fields_by_name['product_custom_attribute3'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_SEGMENTS.fields_by_name['product_custom_attribute4'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_SEGMENTS.fields_by_name['product_item_id'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_SEGMENTS.fields_by_name['product_language'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_SEGMENTS.fields_by_name['product_merchant_id'].message_type = google_dot_protobuf_dot_wrappers__pb2._UINT64VALUE -_SEGMENTS.fields_by_name['product_store_id'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_SEGMENTS.fields_by_name['product_title'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_SEGMENTS.fields_by_name['product_type_l1'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_SEGMENTS.fields_by_name['product_type_l2'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_SEGMENTS.fields_by_name['product_type_l3'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_SEGMENTS.fields_by_name['product_type_l4'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_SEGMENTS.fields_by_name['product_type_l5'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_SEGMENTS.fields_by_name['quarter'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_SEGMENTS.fields_by_name['search_engine_results_page_type'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_search__engine__results__page__type__pb2._SEARCHENGINERESULTSPAGETYPEENUM_SEARCHENGINERESULTSPAGETYPE -_SEGMENTS.fields_by_name['search_term_match_type'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_search__term__match__type__pb2._SEARCHTERMMATCHTYPEENUM_SEARCHTERMMATCHTYPE -_SEGMENTS.fields_by_name['slot'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_slot__pb2._SLOTENUM_SLOT -_SEGMENTS.fields_by_name['webpage'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_SEGMENTS.fields_by_name['week'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_SEGMENTS.fields_by_name['year'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT32VALUE -_KEYWORD.fields_by_name['ad_group_criterion'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_KEYWORD.fields_by_name['info'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_criteria__pb2._KEYWORDINFO -DESCRIPTOR.message_types_by_name['Segments'] = _SEGMENTS -DESCRIPTOR.message_types_by_name['Keyword'] = _KEYWORD -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -Segments = _reflection.GeneratedProtocolMessageType('Segments', (_message.Message,), dict( - DESCRIPTOR = _SEGMENTS, - __module__ = 'google.ads.googleads_v1.proto.common.segments_pb2' - , - __doc__ = """Segment only fields. - - - Attributes: - ad_network_type: - Ad network type. - click_type: - Click type. - conversion_action: - Resource name of the conversion action. - conversion_action_category: - Conversion action category. - conversion_action_name: - Conversion action name. - conversion_adjustment: - This segments your conversion columns by the original - conversion and conversion value vs. the delta if conversions - were adjusted. False row has the data as originally stated; - While true row has the delta between data now and the data as - originally stated. Summing the two together results post- - adjustment data. - conversion_attribution_event_type: - Conversion attribution event type. - conversion_lag_bucket: - An enum value representing the number of days between the - impression and the conversion. - conversion_or_adjustment_lag_bucket: - An enum value representing the number of days between the - impression and the conversion or between the impression and - adjustments to the conversion. - date: - Date to which metrics apply. yyyy-MM-dd format, e.g., - 2018-04-17. - day_of_week: - Day of the week, e.g., MONDAY. - device: - Device to which metrics apply. - external_conversion_source: - External conversion source. - geo_target_airport: - Resource name of the geo target constant that represents an - airport. - geo_target_city: - Resource name of the geo target constant that represents a - city. - geo_target_county: - Resource name of the geo target constant that represents a - county. - geo_target_district: - Resource name of the geo target constant that represents a - district. - geo_target_metro: - Resource name of the geo target constant that represents a - metro. - geo_target_most_specific_location: - Resource name of the geo target constant that represents the - most specific location. - geo_target_postal_code: - Resource name of the geo target constant that represents a - postal code. - geo_target_province: - Resource name of the geo target constant that represents a - province. - geo_target_region: - Resource name of the geo target constant that represents a - region. - geo_target_state: - Resource name of the geo target constant that represents a - state. - hotel_booking_window_days: - Hotel booking window in days. - hotel_center_id: - Hotel center ID. - hotel_check_in_date: - Hotel check-in date. Formatted as yyyy-MM-dd. - hotel_check_in_day_of_week: - Hotel check-in day of week. - hotel_city: - Hotel city. - hotel_class: - Hotel class. - hotel_country: - Hotel country. - hotel_date_selection_type: - Hotel date selection type. - hotel_length_of_stay: - Hotel length of stay. - hotel_rate_rule_id: - Hotel rate rule ID. - hotel_rate_type: - Hotel rate type. - hotel_state: - Hotel state. - hour: - Hour of day as a number between 0 and 23, inclusive. - interaction_on_this_extension: - Only used with feed item metrics. Indicates whether the - interaction metrics occurred on the feed item itself or a - different extension or ad unit. - keyword: - Keyword criterion. - month: - Month as represented by the date of the first day of a month. - Formatted as yyyy-MM-dd. - month_of_year: - Month of the year, e.g., January. - partner_hotel_id: - Partner hotel ID. - placeholder_type: - Placeholder type. This is only used with feed item metrics. - product_aggregator_id: - Aggregator ID of the product. - product_bidding_category_level1: - Bidding category (level 1) of the product. - product_bidding_category_level2: - Bidding category (level 2) of the product. - product_bidding_category_level3: - Bidding category (level 3) of the product. - product_bidding_category_level4: - Bidding category (level 4) of the product. - product_bidding_category_level5: - Bidding category (level 5) of the product. - product_brand: - Brand of the product. - product_channel: - Channel of the product. - product_channel_exclusivity: - Channel exclusivity of the product. - product_condition: - Condition of the product. - product_country: - Resource name of the geo target constant for the country of - sale of the product. - product_custom_attribute0: - Custom attribute 0 of the product. - product_custom_attribute1: - Custom attribute 1 of the product. - product_custom_attribute2: - Custom attribute 2 of the product. - product_custom_attribute3: - Custom attribute 3 of the product. - product_custom_attribute4: - Custom attribute 4 of the product. - product_item_id: - Item ID of the product. - product_language: - Resource name of the language constant for the language of the - product. - product_merchant_id: - Merchant ID of the product. - product_store_id: - Store ID of the product. - product_title: - Title of the product. - product_type_l1: - Type (level 1) of the product. - product_type_l2: - Type (level 2) of the product. - product_type_l3: - Type (level 3) of the product. - product_type_l4: - Type (level 4) of the product. - product_type_l5: - Type (level 5) of the product. - quarter: - Quarter as represented by the date of the first day of a - quarter. Uses the calendar year for quarters, e.g., the second - quarter of 2018 starts on 2018-04-01. Formatted as yyyy-MM-dd. - search_engine_results_page_type: - Type of the search engine results page. - search_term_match_type: - Match type of the keyword that triggered the ad, including - variants. - slot: - Position of the ad. - webpage: - Resource name of the ad group criterion that represents - webpage criterion. - week: - Week as defined as Monday through Sunday, and represented by - the date of Monday. Formatted as yyyy-MM-dd. - year: - Year, formatted as yyyy. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.Segments) - )) -_sym_db.RegisterMessage(Segments) - -Keyword = _reflection.GeneratedProtocolMessageType('Keyword', (_message.Message,), dict( - DESCRIPTOR = _KEYWORD, - __module__ = 'google.ads.googleads_v1.proto.common.segments_pb2' - , - __doc__ = """A Keyword criterion segment. - - - Attributes: - ad_group_criterion: - The AdGroupCriterion resource name. - info: - Keyword info. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.Keyword) - )) -_sym_db.RegisterMessage(Keyword) - - -DESCRIPTOR._options = None -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/common/simulation_pb2.py b/google/ads/google_ads/v1/proto/common/simulation_pb2.py deleted file mode 100644 index 32855ae29..000000000 --- a/google/ads/google_ads/v1/proto/common/simulation_pb2.py +++ /dev/null @@ -1,686 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/common/simulation.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/common/simulation.proto', - package='google.ads.googleads.v1.common', - syntax='proto3', - serialized_options=_b('\n\"com.google.ads.googleads.v1.commonB\017SimulationProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/common;common\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V1.Common\312\002\036Google\\Ads\\GoogleAds\\V1\\Common\352\002\"Google::Ads::GoogleAds::V1::Common'), - serialized_pb=_b('\n5google/ads/googleads_v1/proto/common/simulation.proto\x12\x1egoogle.ads.googleads.v1.common\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1cgoogle/api/annotations.proto\"l\n\x1e\x42idModifierSimulationPointList\x12J\n\x06points\x18\x01 \x03(\x0b\x32:.google.ads.googleads.v1.common.BidModifierSimulationPoint\"b\n\x19\x43pcBidSimulationPointList\x12\x45\n\x06points\x18\x01 \x03(\x0b\x32\x35.google.ads.googleads.v1.common.CpcBidSimulationPoint\"b\n\x19\x43pvBidSimulationPointList\x12\x45\n\x06points\x18\x01 \x03(\x0b\x32\x35.google.ads.googleads.v1.common.CpvBidSimulationPoint\"h\n\x1cTargetCpaSimulationPointList\x12H\n\x06points\x18\x01 \x03(\x0b\x32\x38.google.ads.googleads.v1.common.TargetCpaSimulationPoint\"\x8e\x06\n\x1a\x42idModifierSimulationPoint\x12\x32\n\x0c\x62id_modifier\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12:\n\x14\x62iddable_conversions\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12@\n\x1a\x62iddable_conversions_value\x18\x03 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12+\n\x06\x63licks\x18\x04 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x30\n\x0b\x63ost_micros\x18\x05 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x30\n\x0bimpressions\x18\x06 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x39\n\x14top_slot_impressions\x18\x07 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x41\n\x1bparent_biddable_conversions\x18\x08 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12G\n!parent_biddable_conversions_value\x18\t \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12\x32\n\rparent_clicks\x18\n \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x37\n\x12parent_cost_micros\x18\x0b \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x37\n\x12parent_impressions\x18\x0c \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12@\n\x1bparent_top_slot_impressions\x18\r \x01(\x0b\x32\x1b.google.protobuf.Int64Value\"\x96\x03\n\x15\x43pcBidSimulationPoint\x12\x33\n\x0e\x63pc_bid_micros\x18\x01 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12:\n\x14\x62iddable_conversions\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12@\n\x1a\x62iddable_conversions_value\x18\x03 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12+\n\x06\x63licks\x18\x04 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x30\n\x0b\x63ost_micros\x18\x05 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x30\n\x0bimpressions\x18\x06 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x39\n\x14top_slot_impressions\x18\x07 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\"\xb0\x01\n\x15\x43pvBidSimulationPoint\x12\x33\n\x0e\x63pv_bid_micros\x18\x01 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x30\n\x0b\x63ost_micros\x18\x02 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x30\n\x0bimpressions\x18\x03 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\"\x9c\x03\n\x18TargetCpaSimulationPoint\x12\x36\n\x11target_cpa_micros\x18\x01 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12:\n\x14\x62iddable_conversions\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12@\n\x1a\x62iddable_conversions_value\x18\x03 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12+\n\x06\x63licks\x18\x04 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x30\n\x0b\x63ost_micros\x18\x05 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x30\n\x0bimpressions\x18\x06 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x39\n\x14top_slot_impressions\x18\x07 \x01(\x0b\x32\x1b.google.protobuf.Int64ValueB\xea\x01\n\"com.google.ads.googleads.v1.commonB\x0fSimulationProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/common;common\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V1.Common\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V1\\Common\xea\x02\"Google::Ads::GoogleAds::V1::Commonb\x06proto3') - , - dependencies=[google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - - -_BIDMODIFIERSIMULATIONPOINTLIST = _descriptor.Descriptor( - name='BidModifierSimulationPointList', - full_name='google.ads.googleads.v1.common.BidModifierSimulationPointList', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='points', full_name='google.ads.googleads.v1.common.BidModifierSimulationPointList.points', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=151, - serialized_end=259, -) - - -_CPCBIDSIMULATIONPOINTLIST = _descriptor.Descriptor( - name='CpcBidSimulationPointList', - full_name='google.ads.googleads.v1.common.CpcBidSimulationPointList', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='points', full_name='google.ads.googleads.v1.common.CpcBidSimulationPointList.points', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=261, - serialized_end=359, -) - - -_CPVBIDSIMULATIONPOINTLIST = _descriptor.Descriptor( - name='CpvBidSimulationPointList', - full_name='google.ads.googleads.v1.common.CpvBidSimulationPointList', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='points', full_name='google.ads.googleads.v1.common.CpvBidSimulationPointList.points', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=361, - serialized_end=459, -) - - -_TARGETCPASIMULATIONPOINTLIST = _descriptor.Descriptor( - name='TargetCpaSimulationPointList', - full_name='google.ads.googleads.v1.common.TargetCpaSimulationPointList', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='points', full_name='google.ads.googleads.v1.common.TargetCpaSimulationPointList.points', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=461, - serialized_end=565, -) - - -_BIDMODIFIERSIMULATIONPOINT = _descriptor.Descriptor( - name='BidModifierSimulationPoint', - full_name='google.ads.googleads.v1.common.BidModifierSimulationPoint', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='bid_modifier', full_name='google.ads.googleads.v1.common.BidModifierSimulationPoint.bid_modifier', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='biddable_conversions', full_name='google.ads.googleads.v1.common.BidModifierSimulationPoint.biddable_conversions', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='biddable_conversions_value', full_name='google.ads.googleads.v1.common.BidModifierSimulationPoint.biddable_conversions_value', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='clicks', full_name='google.ads.googleads.v1.common.BidModifierSimulationPoint.clicks', index=3, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='cost_micros', full_name='google.ads.googleads.v1.common.BidModifierSimulationPoint.cost_micros', index=4, - number=5, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='impressions', full_name='google.ads.googleads.v1.common.BidModifierSimulationPoint.impressions', index=5, - number=6, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='top_slot_impressions', full_name='google.ads.googleads.v1.common.BidModifierSimulationPoint.top_slot_impressions', index=6, - number=7, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='parent_biddable_conversions', full_name='google.ads.googleads.v1.common.BidModifierSimulationPoint.parent_biddable_conversions', index=7, - number=8, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='parent_biddable_conversions_value', full_name='google.ads.googleads.v1.common.BidModifierSimulationPoint.parent_biddable_conversions_value', index=8, - number=9, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='parent_clicks', full_name='google.ads.googleads.v1.common.BidModifierSimulationPoint.parent_clicks', index=9, - number=10, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='parent_cost_micros', full_name='google.ads.googleads.v1.common.BidModifierSimulationPoint.parent_cost_micros', index=10, - number=11, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='parent_impressions', full_name='google.ads.googleads.v1.common.BidModifierSimulationPoint.parent_impressions', index=11, - number=12, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='parent_top_slot_impressions', full_name='google.ads.googleads.v1.common.BidModifierSimulationPoint.parent_top_slot_impressions', index=12, - number=13, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=568, - serialized_end=1350, -) - - -_CPCBIDSIMULATIONPOINT = _descriptor.Descriptor( - name='CpcBidSimulationPoint', - full_name='google.ads.googleads.v1.common.CpcBidSimulationPoint', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='cpc_bid_micros', full_name='google.ads.googleads.v1.common.CpcBidSimulationPoint.cpc_bid_micros', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='biddable_conversions', full_name='google.ads.googleads.v1.common.CpcBidSimulationPoint.biddable_conversions', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='biddable_conversions_value', full_name='google.ads.googleads.v1.common.CpcBidSimulationPoint.biddable_conversions_value', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='clicks', full_name='google.ads.googleads.v1.common.CpcBidSimulationPoint.clicks', index=3, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='cost_micros', full_name='google.ads.googleads.v1.common.CpcBidSimulationPoint.cost_micros', index=4, - number=5, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='impressions', full_name='google.ads.googleads.v1.common.CpcBidSimulationPoint.impressions', index=5, - number=6, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='top_slot_impressions', full_name='google.ads.googleads.v1.common.CpcBidSimulationPoint.top_slot_impressions', index=6, - number=7, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1353, - serialized_end=1759, -) - - -_CPVBIDSIMULATIONPOINT = _descriptor.Descriptor( - name='CpvBidSimulationPoint', - full_name='google.ads.googleads.v1.common.CpvBidSimulationPoint', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='cpv_bid_micros', full_name='google.ads.googleads.v1.common.CpvBidSimulationPoint.cpv_bid_micros', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='cost_micros', full_name='google.ads.googleads.v1.common.CpvBidSimulationPoint.cost_micros', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='impressions', full_name='google.ads.googleads.v1.common.CpvBidSimulationPoint.impressions', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1762, - serialized_end=1938, -) - - -_TARGETCPASIMULATIONPOINT = _descriptor.Descriptor( - name='TargetCpaSimulationPoint', - full_name='google.ads.googleads.v1.common.TargetCpaSimulationPoint', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='target_cpa_micros', full_name='google.ads.googleads.v1.common.TargetCpaSimulationPoint.target_cpa_micros', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='biddable_conversions', full_name='google.ads.googleads.v1.common.TargetCpaSimulationPoint.biddable_conversions', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='biddable_conversions_value', full_name='google.ads.googleads.v1.common.TargetCpaSimulationPoint.biddable_conversions_value', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='clicks', full_name='google.ads.googleads.v1.common.TargetCpaSimulationPoint.clicks', index=3, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='cost_micros', full_name='google.ads.googleads.v1.common.TargetCpaSimulationPoint.cost_micros', index=4, - number=5, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='impressions', full_name='google.ads.googleads.v1.common.TargetCpaSimulationPoint.impressions', index=5, - number=6, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='top_slot_impressions', full_name='google.ads.googleads.v1.common.TargetCpaSimulationPoint.top_slot_impressions', index=6, - number=7, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1941, - serialized_end=2353, -) - -_BIDMODIFIERSIMULATIONPOINTLIST.fields_by_name['points'].message_type = _BIDMODIFIERSIMULATIONPOINT -_CPCBIDSIMULATIONPOINTLIST.fields_by_name['points'].message_type = _CPCBIDSIMULATIONPOINT -_CPVBIDSIMULATIONPOINTLIST.fields_by_name['points'].message_type = _CPVBIDSIMULATIONPOINT -_TARGETCPASIMULATIONPOINTLIST.fields_by_name['points'].message_type = _TARGETCPASIMULATIONPOINT -_BIDMODIFIERSIMULATIONPOINT.fields_by_name['bid_modifier'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE -_BIDMODIFIERSIMULATIONPOINT.fields_by_name['biddable_conversions'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE -_BIDMODIFIERSIMULATIONPOINT.fields_by_name['biddable_conversions_value'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE -_BIDMODIFIERSIMULATIONPOINT.fields_by_name['clicks'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -_BIDMODIFIERSIMULATIONPOINT.fields_by_name['cost_micros'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -_BIDMODIFIERSIMULATIONPOINT.fields_by_name['impressions'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -_BIDMODIFIERSIMULATIONPOINT.fields_by_name['top_slot_impressions'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -_BIDMODIFIERSIMULATIONPOINT.fields_by_name['parent_biddable_conversions'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE -_BIDMODIFIERSIMULATIONPOINT.fields_by_name['parent_biddable_conversions_value'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE -_BIDMODIFIERSIMULATIONPOINT.fields_by_name['parent_clicks'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -_BIDMODIFIERSIMULATIONPOINT.fields_by_name['parent_cost_micros'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -_BIDMODIFIERSIMULATIONPOINT.fields_by_name['parent_impressions'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -_BIDMODIFIERSIMULATIONPOINT.fields_by_name['parent_top_slot_impressions'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -_CPCBIDSIMULATIONPOINT.fields_by_name['cpc_bid_micros'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -_CPCBIDSIMULATIONPOINT.fields_by_name['biddable_conversions'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE -_CPCBIDSIMULATIONPOINT.fields_by_name['biddable_conversions_value'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE -_CPCBIDSIMULATIONPOINT.fields_by_name['clicks'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -_CPCBIDSIMULATIONPOINT.fields_by_name['cost_micros'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -_CPCBIDSIMULATIONPOINT.fields_by_name['impressions'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -_CPCBIDSIMULATIONPOINT.fields_by_name['top_slot_impressions'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -_CPVBIDSIMULATIONPOINT.fields_by_name['cpv_bid_micros'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -_CPVBIDSIMULATIONPOINT.fields_by_name['cost_micros'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -_CPVBIDSIMULATIONPOINT.fields_by_name['impressions'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -_TARGETCPASIMULATIONPOINT.fields_by_name['target_cpa_micros'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -_TARGETCPASIMULATIONPOINT.fields_by_name['biddable_conversions'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE -_TARGETCPASIMULATIONPOINT.fields_by_name['biddable_conversions_value'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE -_TARGETCPASIMULATIONPOINT.fields_by_name['clicks'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -_TARGETCPASIMULATIONPOINT.fields_by_name['cost_micros'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -_TARGETCPASIMULATIONPOINT.fields_by_name['impressions'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -_TARGETCPASIMULATIONPOINT.fields_by_name['top_slot_impressions'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -DESCRIPTOR.message_types_by_name['BidModifierSimulationPointList'] = _BIDMODIFIERSIMULATIONPOINTLIST -DESCRIPTOR.message_types_by_name['CpcBidSimulationPointList'] = _CPCBIDSIMULATIONPOINTLIST -DESCRIPTOR.message_types_by_name['CpvBidSimulationPointList'] = _CPVBIDSIMULATIONPOINTLIST -DESCRIPTOR.message_types_by_name['TargetCpaSimulationPointList'] = _TARGETCPASIMULATIONPOINTLIST -DESCRIPTOR.message_types_by_name['BidModifierSimulationPoint'] = _BIDMODIFIERSIMULATIONPOINT -DESCRIPTOR.message_types_by_name['CpcBidSimulationPoint'] = _CPCBIDSIMULATIONPOINT -DESCRIPTOR.message_types_by_name['CpvBidSimulationPoint'] = _CPVBIDSIMULATIONPOINT -DESCRIPTOR.message_types_by_name['TargetCpaSimulationPoint'] = _TARGETCPASIMULATIONPOINT -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -BidModifierSimulationPointList = _reflection.GeneratedProtocolMessageType('BidModifierSimulationPointList', (_message.Message,), dict( - DESCRIPTOR = _BIDMODIFIERSIMULATIONPOINTLIST, - __module__ = 'google.ads.googleads_v1.proto.common.simulation_pb2' - , - __doc__ = """A container for simulation points for simulations of type BID\_MODIFIER. - - - Attributes: - points: - Projected metrics for a series of bid modifier amounts. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.BidModifierSimulationPointList) - )) -_sym_db.RegisterMessage(BidModifierSimulationPointList) - -CpcBidSimulationPointList = _reflection.GeneratedProtocolMessageType('CpcBidSimulationPointList', (_message.Message,), dict( - DESCRIPTOR = _CPCBIDSIMULATIONPOINTLIST, - __module__ = 'google.ads.googleads_v1.proto.common.simulation_pb2' - , - __doc__ = """A container for simulation points for simulations of type CPC\_BID. - - - Attributes: - points: - Projected metrics for a series of CPC bid amounts. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.CpcBidSimulationPointList) - )) -_sym_db.RegisterMessage(CpcBidSimulationPointList) - -CpvBidSimulationPointList = _reflection.GeneratedProtocolMessageType('CpvBidSimulationPointList', (_message.Message,), dict( - DESCRIPTOR = _CPVBIDSIMULATIONPOINTLIST, - __module__ = 'google.ads.googleads_v1.proto.common.simulation_pb2' - , - __doc__ = """A container for simulation points for simulations of type CPV\_BID. - - - Attributes: - points: - Projected metrics for a series of CPV bid amounts. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.CpvBidSimulationPointList) - )) -_sym_db.RegisterMessage(CpvBidSimulationPointList) - -TargetCpaSimulationPointList = _reflection.GeneratedProtocolMessageType('TargetCpaSimulationPointList', (_message.Message,), dict( - DESCRIPTOR = _TARGETCPASIMULATIONPOINTLIST, - __module__ = 'google.ads.googleads_v1.proto.common.simulation_pb2' - , - __doc__ = """A container for simulation points for simulations of type TARGET\_CPA. - - - Attributes: - points: - Projected metrics for a series of target CPA amounts. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.TargetCpaSimulationPointList) - )) -_sym_db.RegisterMessage(TargetCpaSimulationPointList) - -BidModifierSimulationPoint = _reflection.GeneratedProtocolMessageType('BidModifierSimulationPoint', (_message.Message,), dict( - DESCRIPTOR = _BIDMODIFIERSIMULATIONPOINT, - __module__ = 'google.ads.googleads_v1.proto.common.simulation_pb2' - , - __doc__ = """Projected metrics for a specific bid modifier amount. - - - Attributes: - bid_modifier: - The simulated bid modifier upon which projected metrics are - based. - biddable_conversions: - Projected number of biddable conversions. - biddable_conversions_value: - Projected total value of biddable conversions. - clicks: - Projected number of clicks. - cost_micros: - Projected cost in micros. - impressions: - Projected number of impressions. - top_slot_impressions: - Projected number of top slot impressions. - parent_biddable_conversions: - Projected number of biddable conversions for the parent - resource. - parent_biddable_conversions_value: - Projected total value of biddable conversions for the parent - resource. - parent_clicks: - Projected number of clicks for the parent resource. - parent_cost_micros: - Projected cost in micros for the parent resource. - parent_impressions: - Projected number of impressions for the parent resource. - parent_top_slot_impressions: - Projected number of top slot impressions for the parent - resource. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.BidModifierSimulationPoint) - )) -_sym_db.RegisterMessage(BidModifierSimulationPoint) - -CpcBidSimulationPoint = _reflection.GeneratedProtocolMessageType('CpcBidSimulationPoint', (_message.Message,), dict( - DESCRIPTOR = _CPCBIDSIMULATIONPOINT, - __module__ = 'google.ads.googleads_v1.proto.common.simulation_pb2' - , - __doc__ = """Projected metrics for a specific CPC bid amount. - - - Attributes: - cpc_bid_micros: - The simulated CPC bid upon which projected metrics are based. - biddable_conversions: - Projected number of biddable conversions. - biddable_conversions_value: - Projected total value of biddable conversions. - clicks: - Projected number of clicks. - cost_micros: - Projected cost in micros. - impressions: - Projected number of impressions. - top_slot_impressions: - Projected number of top slot impressions. Display network does - not support this field at the ad group level. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.CpcBidSimulationPoint) - )) -_sym_db.RegisterMessage(CpcBidSimulationPoint) - -CpvBidSimulationPoint = _reflection.GeneratedProtocolMessageType('CpvBidSimulationPoint', (_message.Message,), dict( - DESCRIPTOR = _CPVBIDSIMULATIONPOINT, - __module__ = 'google.ads.googleads_v1.proto.common.simulation_pb2' - , - __doc__ = """Projected metrics for a specific CPV bid amount. - - - Attributes: - cpv_bid_micros: - The simulated CPV bid upon which projected metrics are based. - cost_micros: - Projected cost in micros. - impressions: - Projected number of impressions. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.CpvBidSimulationPoint) - )) -_sym_db.RegisterMessage(CpvBidSimulationPoint) - -TargetCpaSimulationPoint = _reflection.GeneratedProtocolMessageType('TargetCpaSimulationPoint', (_message.Message,), dict( - DESCRIPTOR = _TARGETCPASIMULATIONPOINT, - __module__ = 'google.ads.googleads_v1.proto.common.simulation_pb2' - , - __doc__ = """Projected metrics for a specific target CPA amount. - - - Attributes: - target_cpa_micros: - The simulated target CPA upon which projected metrics are - based. - biddable_conversions: - Projected number of biddable conversions. - biddable_conversions_value: - Projected total value of biddable conversions. - clicks: - Projected number of clicks. - cost_micros: - Projected cost in micros. - impressions: - Projected number of impressions. - top_slot_impressions: - Projected number of top slot impressions. Display network does - not support this field at the ad group level. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.TargetCpaSimulationPoint) - )) -_sym_db.RegisterMessage(TargetCpaSimulationPoint) - - -DESCRIPTOR._options = None -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/common/tag_snippet_pb2.py b/google/ads/google_ads/v1/proto/common/tag_snippet_pb2.py deleted file mode 100644 index 37090fe0b..000000000 --- a/google/ads/google_ads/v1/proto/common/tag_snippet_pb2.py +++ /dev/null @@ -1,119 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/common/tag_snippet.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.ads.google_ads.v1.proto.enums import tracking_code_page_format_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_tracking__code__page__format__pb2 -from google.ads.google_ads.v1.proto.enums import tracking_code_type_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_tracking__code__type__pb2 -from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/common/tag_snippet.proto', - package='google.ads.googleads.v1.common', - syntax='proto3', - serialized_options=_b('\n\"com.google.ads.googleads.v1.commonB\017TagSnippetProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/common;common\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V1.Common\312\002\036Google\\Ads\\GoogleAds\\V1\\Common\352\002\"Google::Ads::GoogleAds::V1::Common'), - serialized_pb=_b('\n6google/ads/googleads_v1/proto/common/tag_snippet.proto\x12\x1egoogle.ads.googleads.v1.common\x1a\x43google/ads/googleads_v1/proto/enums/tracking_code_page_format.proto\x1agoogle/ads/googleads_v1/proto/enums/custom_interest_type.proto\x12\x1dgoogle.ads.googleads.v1.enums\x1a\x1cgoogle/api/annotations.proto\"t\n\x16\x43ustomInterestTypeEnum\"Z\n\x12\x43ustomInterestType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x13\n\x0f\x43USTOM_AFFINITY\x10\x02\x12\x11\n\rCUSTOM_INTENT\x10\x03\x42\xec\x01\n!com.google.ads.googleads.v1.enumsB\x17\x43ustomInterestTypeProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v1/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V1.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V1\\Enums\xea\x02!Google::Ads::GoogleAds::V1::Enumsb\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - -_CUSTOMINTERESTTYPEENUM_CUSTOMINTERESTTYPE = _descriptor.EnumDescriptor( - name='CustomInterestType', - full_name='google.ads.googleads.v1.enums.CustomInterestTypeEnum.CustomInterestType', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='UNSPECIFIED', index=0, number=0, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='UNKNOWN', index=1, number=1, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='CUSTOM_AFFINITY', index=2, number=2, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='CUSTOM_INTENT', index=3, number=3, - serialized_options=None, - type=None), - ], - containing_type=None, - serialized_options=None, - serialized_start=153, - serialized_end=243, -) -_sym_db.RegisterEnumDescriptor(_CUSTOMINTERESTTYPEENUM_CUSTOMINTERESTTYPE) - - -_CUSTOMINTERESTTYPEENUM = _descriptor.Descriptor( - name='CustomInterestTypeEnum', - full_name='google.ads.googleads.v1.enums.CustomInterestTypeEnum', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - _CUSTOMINTERESTTYPEENUM_CUSTOMINTERESTTYPE, - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=127, - serialized_end=243, -) - -_CUSTOMINTERESTTYPEENUM_CUSTOMINTERESTTYPE.containing_type = _CUSTOMINTERESTTYPEENUM -DESCRIPTOR.message_types_by_name['CustomInterestTypeEnum'] = _CUSTOMINTERESTTYPEENUM -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -CustomInterestTypeEnum = _reflection.GeneratedProtocolMessageType('CustomInterestTypeEnum', (_message.Message,), dict( - DESCRIPTOR = _CUSTOMINTERESTTYPEENUM, - __module__ = 'google.ads.googleads_v1.proto.enums.custom_interest_type_pb2' - , - __doc__ = """The types of custom interest. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.enums.CustomInterestTypeEnum) - )) -_sym_db.RegisterMessage(CustomInterestTypeEnum) - - -DESCRIPTOR._options = None -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/enums/dsa_page_feed_criterion_field_pb2.py b/google/ads/google_ads/v1/proto/enums/dsa_page_feed_criterion_field_pb2.py deleted file mode 100644 index edcc222ea..000000000 --- a/google/ads/google_ads/v1/proto/enums/dsa_page_feed_criterion_field_pb2.py +++ /dev/null @@ -1,101 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/enums/dsa_page_feed_criterion_field.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/enums/dsa_page_feed_criterion_field.proto', - package='google.ads.googleads.v1.enums', - syntax='proto3', - serialized_options=_b('\n!com.google.ads.googleads.v1.enumsB\036DsaPageFeedCriterionFieldProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v1/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V1.Enums\312\002\035Google\\Ads\\GoogleAds\\V1\\Enums\352\002!Google::Ads::GoogleAds::V1::Enums'), - serialized_pb=_b('\nGgoogle/ads/googleads_v1/proto/enums/dsa_page_feed_criterion_field.proto\x12\x1dgoogle.ads.googleads.v1.enums\x1a\x1cgoogle/api/annotations.proto\"s\n\x1d\x44saPageFeedCriterionFieldEnum\"R\n\x19\x44saPageFeedCriterionField\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0c\n\x08PAGE_URL\x10\x02\x12\t\n\x05LABEL\x10\x03\x42\xf3\x01\n!com.google.ads.googleads.v1.enumsB\x1e\x44saPageFeedCriterionFieldProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v1/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V1.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V1\\Enums\xea\x02!Google::Ads::GoogleAds::V1::Enumsb\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - -_DSAPAGEFEEDCRITERIONFIELDENUM_DSAPAGEFEEDCRITERIONFIELD = _descriptor.EnumDescriptor( - name='DsaPageFeedCriterionField', - full_name='google.ads.googleads.v1.enums.DsaPageFeedCriterionFieldEnum.DsaPageFeedCriterionField', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='UNSPECIFIED', index=0, number=0, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='UNKNOWN', index=1, number=1, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='PAGE_URL', index=2, number=2, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='LABEL', index=3, number=3, - serialized_options=None, - type=None), - ], - containing_type=None, - serialized_options=None, - serialized_start=169, - serialized_end=251, -) -_sym_db.RegisterEnumDescriptor(_DSAPAGEFEEDCRITERIONFIELDENUM_DSAPAGEFEEDCRITERIONFIELD) - - -_DSAPAGEFEEDCRITERIONFIELDENUM = _descriptor.Descriptor( - name='DsaPageFeedCriterionFieldEnum', - full_name='google.ads.googleads.v1.enums.DsaPageFeedCriterionFieldEnum', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - _DSAPAGEFEEDCRITERIONFIELDENUM_DSAPAGEFEEDCRITERIONFIELD, - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=136, - serialized_end=251, -) - -_DSAPAGEFEEDCRITERIONFIELDENUM_DSAPAGEFEEDCRITERIONFIELD.containing_type = _DSAPAGEFEEDCRITERIONFIELDENUM -DESCRIPTOR.message_types_by_name['DsaPageFeedCriterionFieldEnum'] = _DSAPAGEFEEDCRITERIONFIELDENUM -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -DsaPageFeedCriterionFieldEnum = _reflection.GeneratedProtocolMessageType('DsaPageFeedCriterionFieldEnum', (_message.Message,), dict( - DESCRIPTOR = _DSAPAGEFEEDCRITERIONFIELDENUM, - __module__ = 'google.ads.googleads_v1.proto.enums.dsa_page_feed_criterion_field_pb2' - , - __doc__ = """Values for Dynamic Search Ad Page Feed criterion fields. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.enums.DsaPageFeedCriterionFieldEnum) - )) -_sym_db.RegisterMessage(DsaPageFeedCriterionFieldEnum) - - -DESCRIPTOR._options = None -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/enums/extension_setting_device_pb2.py b/google/ads/google_ads/v1/proto/enums/extension_setting_device_pb2.py deleted file mode 100644 index 84ec2fd56..000000000 --- a/google/ads/google_ads/v1/proto/enums/extension_setting_device_pb2.py +++ /dev/null @@ -1,101 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/enums/extension_setting_device.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/enums/extension_setting_device.proto', - package='google.ads.googleads.v1.enums', - syntax='proto3', - serialized_options=_b('\n!com.google.ads.googleads.v1.enumsB\033ExtensionSettingDeviceProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v1/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V1.Enums\312\002\035Google\\Ads\\GoogleAds\\V1\\Enums\352\002!Google::Ads::GoogleAds::V1::Enums'), - serialized_pb=_b('\nBgoogle/ads/googleads_v1/proto/enums/extension_setting_device.proto\x12\x1dgoogle.ads.googleads.v1.enums\x1a\x1cgoogle/api/annotations.proto\"m\n\x1a\x45xtensionSettingDeviceEnum\"O\n\x16\x45xtensionSettingDevice\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\n\n\x06MOBILE\x10\x02\x12\x0b\n\x07\x44\x45SKTOP\x10\x03\x42\xf0\x01\n!com.google.ads.googleads.v1.enumsB\x1b\x45xtensionSettingDeviceProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v1/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V1.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V1\\Enums\xea\x02!Google::Ads::GoogleAds::V1::Enumsb\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - -_EXTENSIONSETTINGDEVICEENUM_EXTENSIONSETTINGDEVICE = _descriptor.EnumDescriptor( - name='ExtensionSettingDevice', - full_name='google.ads.googleads.v1.enums.ExtensionSettingDeviceEnum.ExtensionSettingDevice', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='UNSPECIFIED', index=0, number=0, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='UNKNOWN', index=1, number=1, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='MOBILE', index=2, number=2, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='DESKTOP', index=3, number=3, - serialized_options=None, - type=None), - ], - containing_type=None, - serialized_options=None, - serialized_start=161, - serialized_end=240, -) -_sym_db.RegisterEnumDescriptor(_EXTENSIONSETTINGDEVICEENUM_EXTENSIONSETTINGDEVICE) - - -_EXTENSIONSETTINGDEVICEENUM = _descriptor.Descriptor( - name='ExtensionSettingDeviceEnum', - full_name='google.ads.googleads.v1.enums.ExtensionSettingDeviceEnum', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - _EXTENSIONSETTINGDEVICEENUM_EXTENSIONSETTINGDEVICE, - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=131, - serialized_end=240, -) - -_EXTENSIONSETTINGDEVICEENUM_EXTENSIONSETTINGDEVICE.containing_type = _EXTENSIONSETTINGDEVICEENUM -DESCRIPTOR.message_types_by_name['ExtensionSettingDeviceEnum'] = _EXTENSIONSETTINGDEVICEENUM -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -ExtensionSettingDeviceEnum = _reflection.GeneratedProtocolMessageType('ExtensionSettingDeviceEnum', (_message.Message,), dict( - DESCRIPTOR = _EXTENSIONSETTINGDEVICEENUM, - __module__ = 'google.ads.googleads_v1.proto.enums.extension_setting_device_pb2' - , - __doc__ = """Container for enum describing extension setting device types. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.enums.ExtensionSettingDeviceEnum) - )) -_sym_db.RegisterMessage(ExtensionSettingDeviceEnum) - - -DESCRIPTOR._options = None -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/enums/extension_type_pb2.py b/google/ads/google_ads/v1/proto/enums/extension_type_pb2.py deleted file mode 100644 index c94b0badd..000000000 --- a/google/ads/google_ads/v1/proto/enums/extension_type_pb2.py +++ /dev/null @@ -1,142 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/enums/extension_type.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/enums/extension_type.proto', - package='google.ads.googleads.v1.enums', - syntax='proto3', - serialized_options=_b('\n!com.google.ads.googleads.v1.enumsB\022ExtensionTypeProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v1/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V1.Enums\312\002\035Google\\Ads\\GoogleAds\\V1\\Enums\352\002!Google::Ads::GoogleAds::V1::Enums'), - serialized_pb=_b('\n8google/ads/googleads_v1/proto/enums/extension_type.proto\x12\x1dgoogle.ads.googleads.v1.enums\x1a\x1cgoogle/api/annotations.proto\"\xec\x01\n\x11\x45xtensionTypeEnum\"\xd6\x01\n\rExtensionType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x08\n\x04NONE\x10\x02\x12\x07\n\x03\x41PP\x10\x03\x12\x08\n\x04\x43\x41LL\x10\x04\x12\x0b\n\x07\x43\x41LLOUT\x10\x05\x12\x0b\n\x07MESSAGE\x10\x06\x12\t\n\x05PRICE\x10\x07\x12\r\n\tPROMOTION\x10\x08\x12\n\n\x06REVIEW\x10\t\x12\x0c\n\x08SITELINK\x10\n\x12\x16\n\x12STRUCTURED_SNIPPET\x10\x0b\x12\x0c\n\x08LOCATION\x10\x0c\x12\x16\n\x12\x41\x46\x46ILIATE_LOCATION\x10\rB\xe7\x01\n!com.google.ads.googleads.v1.enumsB\x12\x45xtensionTypeProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v1/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V1.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V1\\Enums\xea\x02!Google::Ads::GoogleAds::V1::Enumsb\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - -_EXTENSIONTYPEENUM_EXTENSIONTYPE = _descriptor.EnumDescriptor( - name='ExtensionType', - full_name='google.ads.googleads.v1.enums.ExtensionTypeEnum.ExtensionType', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='UNSPECIFIED', index=0, number=0, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='UNKNOWN', index=1, number=1, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='NONE', index=2, number=2, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='APP', index=3, number=3, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='CALL', index=4, number=4, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='CALLOUT', index=5, number=5, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='MESSAGE', index=6, number=6, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='PRICE', index=7, number=7, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='PROMOTION', index=8, number=8, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='REVIEW', index=9, number=9, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='SITELINK', index=10, number=10, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='STRUCTURED_SNIPPET', index=11, number=11, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='LOCATION', index=12, number=12, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='AFFILIATE_LOCATION', index=13, number=13, - serialized_options=None, - type=None), - ], - containing_type=None, - serialized_options=None, - serialized_start=144, - serialized_end=358, -) -_sym_db.RegisterEnumDescriptor(_EXTENSIONTYPEENUM_EXTENSIONTYPE) - - -_EXTENSIONTYPEENUM = _descriptor.Descriptor( - name='ExtensionTypeEnum', - full_name='google.ads.googleads.v1.enums.ExtensionTypeEnum', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - _EXTENSIONTYPEENUM_EXTENSIONTYPE, - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=122, - serialized_end=358, -) - -_EXTENSIONTYPEENUM_EXTENSIONTYPE.containing_type = _EXTENSIONTYPEENUM -DESCRIPTOR.message_types_by_name['ExtensionTypeEnum'] = _EXTENSIONTYPEENUM -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -ExtensionTypeEnum = _reflection.GeneratedProtocolMessageType('ExtensionTypeEnum', (_message.Message,), dict( - DESCRIPTOR = _EXTENSIONTYPEENUM, - __module__ = 'google.ads.googleads_v1.proto.enums.extension_type_pb2' - , - __doc__ = """Container for enum describing possible data types for an extension in an - extension setting. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.enums.ExtensionTypeEnum) - )) -_sym_db.RegisterMessage(ExtensionTypeEnum) - - -DESCRIPTOR._options = None -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/enums/feed_item_status_pb2.py b/google/ads/google_ads/v1/proto/enums/feed_item_status_pb2.py deleted file mode 100644 index 6466c6dfa..000000000 --- a/google/ads/google_ads/v1/proto/enums/feed_item_status_pb2.py +++ /dev/null @@ -1,101 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/enums/feed_item_status.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/enums/feed_item_status.proto', - package='google.ads.googleads.v1.enums', - syntax='proto3', - serialized_options=_b('\n!com.google.ads.googleads.v1.enumsB\023FeedItemStatusProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v1/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V1.Enums\312\002\035Google\\Ads\\GoogleAds\\V1\\Enums\352\002!Google::Ads::GoogleAds::V1::Enums'), - serialized_pb=_b('\n:google/ads/googleads_v1/proto/enums/feed_item_status.proto\x12\x1dgoogle.ads.googleads.v1.enums\x1a\x1cgoogle/api/annotations.proto\"^\n\x12\x46\x65\x65\x64ItemStatusEnum\"H\n\x0e\x46\x65\x65\x64ItemStatus\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0b\n\x07\x45NABLED\x10\x02\x12\x0b\n\x07REMOVED\x10\x03\x42\xe8\x01\n!com.google.ads.googleads.v1.enumsB\x13\x46\x65\x65\x64ItemStatusProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v1/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V1.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V1\\Enums\xea\x02!Google::Ads::GoogleAds::V1::Enumsb\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - -_FEEDITEMSTATUSENUM_FEEDITEMSTATUS = _descriptor.EnumDescriptor( - name='FeedItemStatus', - full_name='google.ads.googleads.v1.enums.FeedItemStatusEnum.FeedItemStatus', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='UNSPECIFIED', index=0, number=0, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='UNKNOWN', index=1, number=1, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='ENABLED', index=2, number=2, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='REMOVED', index=3, number=3, - serialized_options=None, - type=None), - ], - containing_type=None, - serialized_options=None, - serialized_start=145, - serialized_end=217, -) -_sym_db.RegisterEnumDescriptor(_FEEDITEMSTATUSENUM_FEEDITEMSTATUS) - - -_FEEDITEMSTATUSENUM = _descriptor.Descriptor( - name='FeedItemStatusEnum', - full_name='google.ads.googleads.v1.enums.FeedItemStatusEnum', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - _FEEDITEMSTATUSENUM_FEEDITEMSTATUS, - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=123, - serialized_end=217, -) - -_FEEDITEMSTATUSENUM_FEEDITEMSTATUS.containing_type = _FEEDITEMSTATUSENUM -DESCRIPTOR.message_types_by_name['FeedItemStatusEnum'] = _FEEDITEMSTATUSENUM -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -FeedItemStatusEnum = _reflection.GeneratedProtocolMessageType('FeedItemStatusEnum', (_message.Message,), dict( - DESCRIPTOR = _FEEDITEMSTATUSENUM, - __module__ = 'google.ads.googleads_v1.proto.enums.feed_item_status_pb2' - , - __doc__ = """Container for enum describing possible statuses of a feed item. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.enums.FeedItemStatusEnum) - )) -_sym_db.RegisterMessage(FeedItemStatusEnum) - - -DESCRIPTOR._options = None -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/enums/feed_item_target_device_pb2.py b/google/ads/google_ads/v1/proto/enums/feed_item_target_device_pb2.py deleted file mode 100644 index 956a01d5a..000000000 --- a/google/ads/google_ads/v1/proto/enums/feed_item_target_device_pb2.py +++ /dev/null @@ -1,98 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/enums/feed_item_target_device.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/enums/feed_item_target_device.proto', - package='google.ads.googleads.v1.enums', - syntax='proto3', - serialized_options=_b('\n!com.google.ads.googleads.v1.enumsB\031FeedItemTargetDeviceProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v1/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V1.Enums\312\002\035Google\\Ads\\GoogleAds\\V1\\Enums\352\002!Google::Ads::GoogleAds::V1::Enums'), - serialized_pb=_b('\nAgoogle/ads/googleads_v1/proto/enums/feed_item_target_device.proto\x12\x1dgoogle.ads.googleads.v1.enums\x1a\x1cgoogle/api/annotations.proto\"\\\n\x18\x46\x65\x65\x64ItemTargetDeviceEnum\"@\n\x14\x46\x65\x65\x64ItemTargetDevice\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\n\n\x06MOBILE\x10\x02\x42\xee\x01\n!com.google.ads.googleads.v1.enumsB\x19\x46\x65\x65\x64ItemTargetDeviceProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v1/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V1.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V1\\Enums\xea\x02!Google::Ads::GoogleAds::V1::Enumsb\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - -_FEEDITEMTARGETDEVICEENUM_FEEDITEMTARGETDEVICE = _descriptor.EnumDescriptor( - name='FeedItemTargetDevice', - full_name='google.ads.googleads.v1.enums.FeedItemTargetDeviceEnum.FeedItemTargetDevice', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='UNSPECIFIED', index=0, number=0, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='UNKNOWN', index=1, number=1, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='MOBILE', index=2, number=2, - serialized_options=None, - type=None), - ], - containing_type=None, - serialized_options=None, - serialized_start=158, - serialized_end=222, -) -_sym_db.RegisterEnumDescriptor(_FEEDITEMTARGETDEVICEENUM_FEEDITEMTARGETDEVICE) - - -_FEEDITEMTARGETDEVICEENUM = _descriptor.Descriptor( - name='FeedItemTargetDeviceEnum', - full_name='google.ads.googleads.v1.enums.FeedItemTargetDeviceEnum', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - _FEEDITEMTARGETDEVICEENUM_FEEDITEMTARGETDEVICE, - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=130, - serialized_end=222, -) - -_FEEDITEMTARGETDEVICEENUM_FEEDITEMTARGETDEVICE.containing_type = _FEEDITEMTARGETDEVICEENUM -DESCRIPTOR.message_types_by_name['FeedItemTargetDeviceEnum'] = _FEEDITEMTARGETDEVICEENUM -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -FeedItemTargetDeviceEnum = _reflection.GeneratedProtocolMessageType('FeedItemTargetDeviceEnum', (_message.Message,), dict( - DESCRIPTOR = _FEEDITEMTARGETDEVICEENUM, - __module__ = 'google.ads.googleads_v1.proto.enums.feed_item_target_device_pb2' - , - __doc__ = """Container for enum describing possible data types for a feed item target - device. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.enums.FeedItemTargetDeviceEnum) - )) -_sym_db.RegisterMessage(FeedItemTargetDeviceEnum) - - -DESCRIPTOR._options = None -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/enums/feed_item_target_type_pb2.py b/google/ads/google_ads/v1/proto/enums/feed_item_target_type_pb2.py deleted file mode 100644 index 91449f57e..000000000 --- a/google/ads/google_ads/v1/proto/enums/feed_item_target_type_pb2.py +++ /dev/null @@ -1,105 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/enums/feed_item_target_type.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/enums/feed_item_target_type.proto', - package='google.ads.googleads.v1.enums', - syntax='proto3', - serialized_options=_b('\n!com.google.ads.googleads.v1.enumsB\027FeedItemTargetTypeProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v1/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V1.Enums\312\002\035Google\\Ads\\GoogleAds\\V1\\Enums\352\002!Google::Ads::GoogleAds::V1::Enums'), - serialized_pb=_b('\n?google/ads/googleads_v1/proto/enums/feed_item_target_type.proto\x12\x1dgoogle.ads.googleads.v1.enums\x1a\x1cgoogle/api/annotations.proto\"w\n\x16\x46\x65\x65\x64ItemTargetTypeEnum\"]\n\x12\x46\x65\x65\x64ItemTargetType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0c\n\x08\x43\x41MPAIGN\x10\x02\x12\x0c\n\x08\x41\x44_GROUP\x10\x03\x12\r\n\tCRITERION\x10\x04\x42\xec\x01\n!com.google.ads.googleads.v1.enumsB\x17\x46\x65\x65\x64ItemTargetTypeProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v1/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V1.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V1\\Enums\xea\x02!Google::Ads::GoogleAds::V1::Enumsb\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - -_FEEDITEMTARGETTYPEENUM_FEEDITEMTARGETTYPE = _descriptor.EnumDescriptor( - name='FeedItemTargetType', - full_name='google.ads.googleads.v1.enums.FeedItemTargetTypeEnum.FeedItemTargetType', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='UNSPECIFIED', index=0, number=0, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='UNKNOWN', index=1, number=1, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='CAMPAIGN', index=2, number=2, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='AD_GROUP', index=3, number=3, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='CRITERION', index=4, number=4, - serialized_options=None, - type=None), - ], - containing_type=None, - serialized_options=None, - serialized_start=154, - serialized_end=247, -) -_sym_db.RegisterEnumDescriptor(_FEEDITEMTARGETTYPEENUM_FEEDITEMTARGETTYPE) - - -_FEEDITEMTARGETTYPEENUM = _descriptor.Descriptor( - name='FeedItemTargetTypeEnum', - full_name='google.ads.googleads.v1.enums.FeedItemTargetTypeEnum', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - _FEEDITEMTARGETTYPEENUM_FEEDITEMTARGETTYPE, - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=128, - serialized_end=247, -) - -_FEEDITEMTARGETTYPEENUM_FEEDITEMTARGETTYPE.containing_type = _FEEDITEMTARGETTYPEENUM -DESCRIPTOR.message_types_by_name['FeedItemTargetTypeEnum'] = _FEEDITEMTARGETTYPEENUM -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -FeedItemTargetTypeEnum = _reflection.GeneratedProtocolMessageType('FeedItemTargetTypeEnum', (_message.Message,), dict( - DESCRIPTOR = _FEEDITEMTARGETTYPEENUM, - __module__ = 'google.ads.googleads_v1.proto.enums.feed_item_target_type_pb2' - , - __doc__ = """Container for enum describing possible types of a feed item target. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.enums.FeedItemTargetTypeEnum) - )) -_sym_db.RegisterMessage(FeedItemTargetTypeEnum) - - -DESCRIPTOR._options = None -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/enums/feed_link_status_pb2.py b/google/ads/google_ads/v1/proto/enums/feed_link_status_pb2.py deleted file mode 100644 index 1ac650c13..000000000 --- a/google/ads/google_ads/v1/proto/enums/feed_link_status_pb2.py +++ /dev/null @@ -1,101 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/enums/feed_link_status.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/enums/feed_link_status.proto', - package='google.ads.googleads.v1.enums', - syntax='proto3', - serialized_options=_b('\n!com.google.ads.googleads.v1.enumsB\023FeedLinkStatusProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v1/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V1.Enums\312\002\035Google\\Ads\\GoogleAds\\V1\\Enums\352\002!Google::Ads::GoogleAds::V1::Enums'), - serialized_pb=_b('\n:google/ads/googleads_v1/proto/enums/feed_link_status.proto\x12\x1dgoogle.ads.googleads.v1.enums\x1a\x1cgoogle/api/annotations.proto\"^\n\x12\x46\x65\x65\x64LinkStatusEnum\"H\n\x0e\x46\x65\x65\x64LinkStatus\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0b\n\x07\x45NABLED\x10\x02\x12\x0b\n\x07REMOVED\x10\x03\x42\xe8\x01\n!com.google.ads.googleads.v1.enumsB\x13\x46\x65\x65\x64LinkStatusProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v1/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V1.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V1\\Enums\xea\x02!Google::Ads::GoogleAds::V1::Enumsb\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - -_FEEDLINKSTATUSENUM_FEEDLINKSTATUS = _descriptor.EnumDescriptor( - name='FeedLinkStatus', - full_name='google.ads.googleads.v1.enums.FeedLinkStatusEnum.FeedLinkStatus', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='UNSPECIFIED', index=0, number=0, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='UNKNOWN', index=1, number=1, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='ENABLED', index=2, number=2, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='REMOVED', index=3, number=3, - serialized_options=None, - type=None), - ], - containing_type=None, - serialized_options=None, - serialized_start=145, - serialized_end=217, -) -_sym_db.RegisterEnumDescriptor(_FEEDLINKSTATUSENUM_FEEDLINKSTATUS) - - -_FEEDLINKSTATUSENUM = _descriptor.Descriptor( - name='FeedLinkStatusEnum', - full_name='google.ads.googleads.v1.enums.FeedLinkStatusEnum', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - _FEEDLINKSTATUSENUM_FEEDLINKSTATUS, - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=123, - serialized_end=217, -) - -_FEEDLINKSTATUSENUM_FEEDLINKSTATUS.containing_type = _FEEDLINKSTATUSENUM -DESCRIPTOR.message_types_by_name['FeedLinkStatusEnum'] = _FEEDLINKSTATUSENUM -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -FeedLinkStatusEnum = _reflection.GeneratedProtocolMessageType('FeedLinkStatusEnum', (_message.Message,), dict( - DESCRIPTOR = _FEEDLINKSTATUSENUM, - __module__ = 'google.ads.googleads_v1.proto.enums.feed_link_status_pb2' - , - __doc__ = """Container for an enum describing possible statuses of a feed link. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.enums.FeedLinkStatusEnum) - )) -_sym_db.RegisterMessage(FeedLinkStatusEnum) - - -DESCRIPTOR._options = None -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/enums/feed_mapping_criterion_type_pb2.py b/google/ads/google_ads/v1/proto/enums/feed_mapping_criterion_type_pb2.py deleted file mode 100644 index a30f3394a..000000000 --- a/google/ads/google_ads/v1/proto/enums/feed_mapping_criterion_type_pb2.py +++ /dev/null @@ -1,102 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/enums/feed_mapping_criterion_type.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/enums/feed_mapping_criterion_type.proto', - package='google.ads.googleads.v1.enums', - syntax='proto3', - serialized_options=_b('\n!com.google.ads.googleads.v1.enumsB\035FeedMappingCriterionTypeProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v1/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V1.Enums\312\002\035Google\\Ads\\GoogleAds\\V1\\Enums\352\002!Google::Ads::GoogleAds::V1::Enums'), - serialized_pb=_b('\nEgoogle/ads/googleads_v1/proto/enums/feed_mapping_criterion_type.proto\x12\x1dgoogle.ads.googleads.v1.enums\x1a\x1cgoogle/api/annotations.proto\"\x8d\x01\n\x1c\x46\x65\x65\x64MappingCriterionTypeEnum\"m\n\x18\x46\x65\x65\x64MappingCriterionType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12 \n\x1cLOCATION_EXTENSION_TARGETING\x10\x04\x12\x11\n\rDSA_PAGE_FEED\x10\x03\x42\xf2\x01\n!com.google.ads.googleads.v1.enumsB\x1d\x46\x65\x65\x64MappingCriterionTypeProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v1/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V1.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V1\\Enums\xea\x02!Google::Ads::GoogleAds::V1::Enumsb\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - -_FEEDMAPPINGCRITERIONTYPEENUM_FEEDMAPPINGCRITERIONTYPE = _descriptor.EnumDescriptor( - name='FeedMappingCriterionType', - full_name='google.ads.googleads.v1.enums.FeedMappingCriterionTypeEnum.FeedMappingCriterionType', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='UNSPECIFIED', index=0, number=0, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='UNKNOWN', index=1, number=1, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='LOCATION_EXTENSION_TARGETING', index=2, number=4, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='DSA_PAGE_FEED', index=3, number=3, - serialized_options=None, - type=None), - ], - containing_type=None, - serialized_options=None, - serialized_start=167, - serialized_end=276, -) -_sym_db.RegisterEnumDescriptor(_FEEDMAPPINGCRITERIONTYPEENUM_FEEDMAPPINGCRITERIONTYPE) - - -_FEEDMAPPINGCRITERIONTYPEENUM = _descriptor.Descriptor( - name='FeedMappingCriterionTypeEnum', - full_name='google.ads.googleads.v1.enums.FeedMappingCriterionTypeEnum', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - _FEEDMAPPINGCRITERIONTYPEENUM_FEEDMAPPINGCRITERIONTYPE, - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=135, - serialized_end=276, -) - -_FEEDMAPPINGCRITERIONTYPEENUM_FEEDMAPPINGCRITERIONTYPE.containing_type = _FEEDMAPPINGCRITERIONTYPEENUM -DESCRIPTOR.message_types_by_name['FeedMappingCriterionTypeEnum'] = _FEEDMAPPINGCRITERIONTYPEENUM -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -FeedMappingCriterionTypeEnum = _reflection.GeneratedProtocolMessageType('FeedMappingCriterionTypeEnum', (_message.Message,), dict( - DESCRIPTOR = _FEEDMAPPINGCRITERIONTYPEENUM, - __module__ = 'google.ads.googleads_v1.proto.enums.feed_mapping_criterion_type_pb2' - , - __doc__ = """Container for enum describing possible criterion types for a feed - mapping. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.enums.FeedMappingCriterionTypeEnum) - )) -_sym_db.RegisterMessage(FeedMappingCriterionTypeEnum) - - -DESCRIPTOR._options = None -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/enums/feed_mapping_status_pb2.py b/google/ads/google_ads/v1/proto/enums/feed_mapping_status_pb2.py deleted file mode 100644 index 336c73a47..000000000 --- a/google/ads/google_ads/v1/proto/enums/feed_mapping_status_pb2.py +++ /dev/null @@ -1,101 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/enums/feed_mapping_status.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/enums/feed_mapping_status.proto', - package='google.ads.googleads.v1.enums', - syntax='proto3', - serialized_options=_b('\n!com.google.ads.googleads.v1.enumsB\026FeedMappingStatusProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v1/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V1.Enums\312\002\035Google\\Ads\\GoogleAds\\V1\\Enums\352\002!Google::Ads::GoogleAds::V1::Enums'), - serialized_pb=_b('\n=google/ads/googleads_v1/proto/enums/feed_mapping_status.proto\x12\x1dgoogle.ads.googleads.v1.enums\x1a\x1cgoogle/api/annotations.proto\"d\n\x15\x46\x65\x65\x64MappingStatusEnum\"K\n\x11\x46\x65\x65\x64MappingStatus\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0b\n\x07\x45NABLED\x10\x02\x12\x0b\n\x07REMOVED\x10\x03\x42\xeb\x01\n!com.google.ads.googleads.v1.enumsB\x16\x46\x65\x65\x64MappingStatusProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v1/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V1.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V1\\Enums\xea\x02!Google::Ads::GoogleAds::V1::Enumsb\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - -_FEEDMAPPINGSTATUSENUM_FEEDMAPPINGSTATUS = _descriptor.EnumDescriptor( - name='FeedMappingStatus', - full_name='google.ads.googleads.v1.enums.FeedMappingStatusEnum.FeedMappingStatus', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='UNSPECIFIED', index=0, number=0, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='UNKNOWN', index=1, number=1, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='ENABLED', index=2, number=2, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='REMOVED', index=3, number=3, - serialized_options=None, - type=None), - ], - containing_type=None, - serialized_options=None, - serialized_start=151, - serialized_end=226, -) -_sym_db.RegisterEnumDescriptor(_FEEDMAPPINGSTATUSENUM_FEEDMAPPINGSTATUS) - - -_FEEDMAPPINGSTATUSENUM = _descriptor.Descriptor( - name='FeedMappingStatusEnum', - full_name='google.ads.googleads.v1.enums.FeedMappingStatusEnum', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - _FEEDMAPPINGSTATUSENUM_FEEDMAPPINGSTATUS, - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=126, - serialized_end=226, -) - -_FEEDMAPPINGSTATUSENUM_FEEDMAPPINGSTATUS.containing_type = _FEEDMAPPINGSTATUSENUM -DESCRIPTOR.message_types_by_name['FeedMappingStatusEnum'] = _FEEDMAPPINGSTATUSENUM -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -FeedMappingStatusEnum = _reflection.GeneratedProtocolMessageType('FeedMappingStatusEnum', (_message.Message,), dict( - DESCRIPTOR = _FEEDMAPPINGSTATUSENUM, - __module__ = 'google.ads.googleads_v1.proto.enums.feed_mapping_status_pb2' - , - __doc__ = """Container for enum describing possible statuses of a feed mapping. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.enums.FeedMappingStatusEnum) - )) -_sym_db.RegisterMessage(FeedMappingStatusEnum) - - -DESCRIPTOR._options = None -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/enums/feed_origin_pb2.py b/google/ads/google_ads/v1/proto/enums/feed_origin_pb2.py deleted file mode 100644 index 8d2571b62..000000000 --- a/google/ads/google_ads/v1/proto/enums/feed_origin_pb2.py +++ /dev/null @@ -1,101 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/enums/feed_origin.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/enums/feed_origin.proto', - package='google.ads.googleads.v1.enums', - syntax='proto3', - serialized_options=_b('\n!com.google.ads.googleads.v1.enumsB\017FeedOriginProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v1/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V1.Enums\312\002\035Google\\Ads\\GoogleAds\\V1\\Enums\352\002!Google::Ads::GoogleAds::V1::Enums'), - serialized_pb=_b('\n5google/ads/googleads_v1/proto/enums/feed_origin.proto\x12\x1dgoogle.ads.googleads.v1.enums\x1a\x1cgoogle/api/annotations.proto\"R\n\x0e\x46\x65\x65\x64OriginEnum\"@\n\nFeedOrigin\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x08\n\x04USER\x10\x02\x12\n\n\x06GOOGLE\x10\x03\x42\xe4\x01\n!com.google.ads.googleads.v1.enumsB\x0f\x46\x65\x65\x64OriginProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v1/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V1.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V1\\Enums\xea\x02!Google::Ads::GoogleAds::V1::Enumsb\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - -_FEEDORIGINENUM_FEEDORIGIN = _descriptor.EnumDescriptor( - name='FeedOrigin', - full_name='google.ads.googleads.v1.enums.FeedOriginEnum.FeedOrigin', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='UNSPECIFIED', index=0, number=0, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='UNKNOWN', index=1, number=1, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='USER', index=2, number=2, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='GOOGLE', index=3, number=3, - serialized_options=None, - type=None), - ], - containing_type=None, - serialized_options=None, - serialized_start=136, - serialized_end=200, -) -_sym_db.RegisterEnumDescriptor(_FEEDORIGINENUM_FEEDORIGIN) - - -_FEEDORIGINENUM = _descriptor.Descriptor( - name='FeedOriginEnum', - full_name='google.ads.googleads.v1.enums.FeedOriginEnum', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - _FEEDORIGINENUM_FEEDORIGIN, - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=118, - serialized_end=200, -) - -_FEEDORIGINENUM_FEEDORIGIN.containing_type = _FEEDORIGINENUM -DESCRIPTOR.message_types_by_name['FeedOriginEnum'] = _FEEDORIGINENUM -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -FeedOriginEnum = _reflection.GeneratedProtocolMessageType('FeedOriginEnum', (_message.Message,), dict( - DESCRIPTOR = _FEEDORIGINENUM, - __module__ = 'google.ads.googleads_v1.proto.enums.feed_origin_pb2' - , - __doc__ = """Container for enum describing possible values for a feed origin. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.enums.FeedOriginEnum) - )) -_sym_db.RegisterMessage(FeedOriginEnum) - - -DESCRIPTOR._options = None -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/enums/feed_status_pb2.py b/google/ads/google_ads/v1/proto/enums/feed_status_pb2.py deleted file mode 100644 index 39e90c299..000000000 --- a/google/ads/google_ads/v1/proto/enums/feed_status_pb2.py +++ /dev/null @@ -1,101 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/enums/feed_status.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/enums/feed_status.proto', - package='google.ads.googleads.v1.enums', - syntax='proto3', - serialized_options=_b('\n!com.google.ads.googleads.v1.enumsB\017FeedStatusProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v1/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V1.Enums\312\002\035Google\\Ads\\GoogleAds\\V1\\Enums\352\002!Google::Ads::GoogleAds::V1::Enums'), - serialized_pb=_b('\n5google/ads/googleads_v1/proto/enums/feed_status.proto\x12\x1dgoogle.ads.googleads.v1.enums\x1a\x1cgoogle/api/annotations.proto\"V\n\x0e\x46\x65\x65\x64StatusEnum\"D\n\nFeedStatus\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0b\n\x07\x45NABLED\x10\x02\x12\x0b\n\x07REMOVED\x10\x03\x42\xe4\x01\n!com.google.ads.googleads.v1.enumsB\x0f\x46\x65\x65\x64StatusProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v1/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V1.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V1\\Enums\xea\x02!Google::Ads::GoogleAds::V1::Enumsb\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - -_FEEDSTATUSENUM_FEEDSTATUS = _descriptor.EnumDescriptor( - name='FeedStatus', - full_name='google.ads.googleads.v1.enums.FeedStatusEnum.FeedStatus', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='UNSPECIFIED', index=0, number=0, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='UNKNOWN', index=1, number=1, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='ENABLED', index=2, number=2, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='REMOVED', index=3, number=3, - serialized_options=None, - type=None), - ], - containing_type=None, - serialized_options=None, - serialized_start=136, - serialized_end=204, -) -_sym_db.RegisterEnumDescriptor(_FEEDSTATUSENUM_FEEDSTATUS) - - -_FEEDSTATUSENUM = _descriptor.Descriptor( - name='FeedStatusEnum', - full_name='google.ads.googleads.v1.enums.FeedStatusEnum', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - _FEEDSTATUSENUM_FEEDSTATUS, - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=118, - serialized_end=204, -) - -_FEEDSTATUSENUM_FEEDSTATUS.containing_type = _FEEDSTATUSENUM -DESCRIPTOR.message_types_by_name['FeedStatusEnum'] = _FEEDSTATUSENUM -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -FeedStatusEnum = _reflection.GeneratedProtocolMessageType('FeedStatusEnum', (_message.Message,), dict( - DESCRIPTOR = _FEEDSTATUSENUM, - __module__ = 'google.ads.googleads_v1.proto.enums.feed_status_pb2' - , - __doc__ = """Container for enum describing possible statuses of a feed. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.enums.FeedStatusEnum) - )) -_sym_db.RegisterMessage(FeedStatusEnum) - - -DESCRIPTOR._options = None -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/enums/frequency_cap_event_type_pb2.py b/google/ads/google_ads/v1/proto/enums/frequency_cap_event_type_pb2.py deleted file mode 100644 index 6a8c9073e..000000000 --- a/google/ads/google_ads/v1/proto/enums/frequency_cap_event_type_pb2.py +++ /dev/null @@ -1,101 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/enums/frequency_cap_event_type.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/enums/frequency_cap_event_type.proto', - package='google.ads.googleads.v1.enums', - syntax='proto3', - serialized_options=_b('\n!com.google.ads.googleads.v1.enumsB\032FrequencyCapEventTypeProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v1/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V1.Enums\312\002\035Google\\Ads\\GoogleAds\\V1\\Enums\352\002!Google::Ads::GoogleAds::V1::Enums'), - serialized_pb=_b('\nBgoogle/ads/googleads_v1/proto/enums/frequency_cap_event_type.proto\x12\x1dgoogle.ads.googleads.v1.enums\x1a\x1cgoogle/api/annotations.proto\"r\n\x19\x46requencyCapEventTypeEnum\"U\n\x15\x46requencyCapEventType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0e\n\nIMPRESSION\x10\x02\x12\x0e\n\nVIDEO_VIEW\x10\x03\x42\xef\x01\n!com.google.ads.googleads.v1.enumsB\x1a\x46requencyCapEventTypeProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v1/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V1.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V1\\Enums\xea\x02!Google::Ads::GoogleAds::V1::Enumsb\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - -_FREQUENCYCAPEVENTTYPEENUM_FREQUENCYCAPEVENTTYPE = _descriptor.EnumDescriptor( - name='FrequencyCapEventType', - full_name='google.ads.googleads.v1.enums.FrequencyCapEventTypeEnum.FrequencyCapEventType', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='UNSPECIFIED', index=0, number=0, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='UNKNOWN', index=1, number=1, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='IMPRESSION', index=2, number=2, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='VIDEO_VIEW', index=3, number=3, - serialized_options=None, - type=None), - ], - containing_type=None, - serialized_options=None, - serialized_start=160, - serialized_end=245, -) -_sym_db.RegisterEnumDescriptor(_FREQUENCYCAPEVENTTYPEENUM_FREQUENCYCAPEVENTTYPE) - - -_FREQUENCYCAPEVENTTYPEENUM = _descriptor.Descriptor( - name='FrequencyCapEventTypeEnum', - full_name='google.ads.googleads.v1.enums.FrequencyCapEventTypeEnum', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - _FREQUENCYCAPEVENTTYPEENUM_FREQUENCYCAPEVENTTYPE, - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=131, - serialized_end=245, -) - -_FREQUENCYCAPEVENTTYPEENUM_FREQUENCYCAPEVENTTYPE.containing_type = _FREQUENCYCAPEVENTTYPEENUM -DESCRIPTOR.message_types_by_name['FrequencyCapEventTypeEnum'] = _FREQUENCYCAPEVENTTYPEENUM -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -FrequencyCapEventTypeEnum = _reflection.GeneratedProtocolMessageType('FrequencyCapEventTypeEnum', (_message.Message,), dict( - DESCRIPTOR = _FREQUENCYCAPEVENTTYPEENUM, - __module__ = 'google.ads.googleads_v1.proto.enums.frequency_cap_event_type_pb2' - , - __doc__ = """Container for enum describing the type of event that the cap applies to. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.enums.FrequencyCapEventTypeEnum) - )) -_sym_db.RegisterMessage(FrequencyCapEventTypeEnum) - - -DESCRIPTOR._options = None -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/enums/frequency_cap_level_pb2.py b/google/ads/google_ads/v1/proto/enums/frequency_cap_level_pb2.py deleted file mode 100644 index 771bbb8aa..000000000 --- a/google/ads/google_ads/v1/proto/enums/frequency_cap_level_pb2.py +++ /dev/null @@ -1,106 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/enums/frequency_cap_level.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/enums/frequency_cap_level.proto', - package='google.ads.googleads.v1.enums', - syntax='proto3', - serialized_options=_b('\n!com.google.ads.googleads.v1.enumsB\026FrequencyCapLevelProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v1/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V1.Enums\312\002\035Google\\Ads\\GoogleAds\\V1\\Enums\352\002!Google::Ads::GoogleAds::V1::Enums'), - serialized_pb=_b('\n=google/ads/googleads_v1/proto/enums/frequency_cap_level.proto\x12\x1dgoogle.ads.googleads.v1.enums\x1a\x1cgoogle/api/annotations.proto\"w\n\x15\x46requencyCapLevelEnum\"^\n\x11\x46requencyCapLevel\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0f\n\x0b\x41\x44_GROUP_AD\x10\x02\x12\x0c\n\x08\x41\x44_GROUP\x10\x03\x12\x0c\n\x08\x43\x41MPAIGN\x10\x04\x42\xeb\x01\n!com.google.ads.googleads.v1.enumsB\x16\x46requencyCapLevelProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v1/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V1.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V1\\Enums\xea\x02!Google::Ads::GoogleAds::V1::Enumsb\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - -_FREQUENCYCAPLEVELENUM_FREQUENCYCAPLEVEL = _descriptor.EnumDescriptor( - name='FrequencyCapLevel', - full_name='google.ads.googleads.v1.enums.FrequencyCapLevelEnum.FrequencyCapLevel', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='UNSPECIFIED', index=0, number=0, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='UNKNOWN', index=1, number=1, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='AD_GROUP_AD', index=2, number=2, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='AD_GROUP', index=3, number=3, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='CAMPAIGN', index=4, number=4, - serialized_options=None, - type=None), - ], - containing_type=None, - serialized_options=None, - serialized_start=151, - serialized_end=245, -) -_sym_db.RegisterEnumDescriptor(_FREQUENCYCAPLEVELENUM_FREQUENCYCAPLEVEL) - - -_FREQUENCYCAPLEVELENUM = _descriptor.Descriptor( - name='FrequencyCapLevelEnum', - full_name='google.ads.googleads.v1.enums.FrequencyCapLevelEnum', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - _FREQUENCYCAPLEVELENUM_FREQUENCYCAPLEVEL, - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=126, - serialized_end=245, -) - -_FREQUENCYCAPLEVELENUM_FREQUENCYCAPLEVEL.containing_type = _FREQUENCYCAPLEVELENUM -DESCRIPTOR.message_types_by_name['FrequencyCapLevelEnum'] = _FREQUENCYCAPLEVELENUM -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -FrequencyCapLevelEnum = _reflection.GeneratedProtocolMessageType('FrequencyCapLevelEnum', (_message.Message,), dict( - DESCRIPTOR = _FREQUENCYCAPLEVELENUM, - __module__ = 'google.ads.googleads_v1.proto.enums.frequency_cap_level_pb2' - , - __doc__ = """Container for enum describing the level on which the cap is to be - applied. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.enums.FrequencyCapLevelEnum) - )) -_sym_db.RegisterMessage(FrequencyCapLevelEnum) - - -DESCRIPTOR._options = None -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/enums/gender_type_pb2.py b/google/ads/google_ads/v1/proto/enums/gender_type_pb2.py deleted file mode 100644 index 0297fd844..000000000 --- a/google/ads/google_ads/v1/proto/enums/gender_type_pb2.py +++ /dev/null @@ -1,105 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/enums/gender_type.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/enums/gender_type.proto', - package='google.ads.googleads.v1.enums', - syntax='proto3', - serialized_options=_b('\n!com.google.ads.googleads.v1.enumsB\017GenderTypeProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v1/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V1.Enums\312\002\035Google\\Ads\\GoogleAds\\V1\\Enums\352\002!Google::Ads::GoogleAds::V1::Enums'), - serialized_pb=_b('\n5google/ads/googleads_v1/proto/enums/gender_type.proto\x12\x1dgoogle.ads.googleads.v1.enums\x1a\x1cgoogle/api/annotations.proto\"d\n\x0eGenderTypeEnum\"R\n\nGenderType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x08\n\x04MALE\x10\n\x12\n\n\x06\x46\x45MALE\x10\x0b\x12\x10\n\x0cUNDETERMINED\x10\x14\x42\xe4\x01\n!com.google.ads.googleads.v1.enumsB\x0fGenderTypeProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v1/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V1.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V1\\Enums\xea\x02!Google::Ads::GoogleAds::V1::Enumsb\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - -_GENDERTYPEENUM_GENDERTYPE = _descriptor.EnumDescriptor( - name='GenderType', - full_name='google.ads.googleads.v1.enums.GenderTypeEnum.GenderType', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='UNSPECIFIED', index=0, number=0, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='UNKNOWN', index=1, number=1, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='MALE', index=2, number=10, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='FEMALE', index=3, number=11, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='UNDETERMINED', index=4, number=20, - serialized_options=None, - type=None), - ], - containing_type=None, - serialized_options=None, - serialized_start=136, - serialized_end=218, -) -_sym_db.RegisterEnumDescriptor(_GENDERTYPEENUM_GENDERTYPE) - - -_GENDERTYPEENUM = _descriptor.Descriptor( - name='GenderTypeEnum', - full_name='google.ads.googleads.v1.enums.GenderTypeEnum', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - _GENDERTYPEENUM_GENDERTYPE, - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=118, - serialized_end=218, -) - -_GENDERTYPEENUM_GENDERTYPE.containing_type = _GENDERTYPEENUM -DESCRIPTOR.message_types_by_name['GenderTypeEnum'] = _GENDERTYPEENUM -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -GenderTypeEnum = _reflection.GeneratedProtocolMessageType('GenderTypeEnum', (_message.Message,), dict( - DESCRIPTOR = _GENDERTYPEENUM, - __module__ = 'google.ads.googleads_v1.proto.enums.gender_type_pb2' - , - __doc__ = """Container for enum describing the type of demographic genders. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.enums.GenderTypeEnum) - )) -_sym_db.RegisterMessage(GenderTypeEnum) - - -DESCRIPTOR._options = None -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/enums/geo_target_constant_status_pb2.py b/google/ads/google_ads/v1/proto/enums/geo_target_constant_status_pb2.py deleted file mode 100644 index 212c9a9d4..000000000 --- a/google/ads/google_ads/v1/proto/enums/geo_target_constant_status_pb2.py +++ /dev/null @@ -1,101 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/enums/geo_target_constant_status.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/enums/geo_target_constant_status.proto', - package='google.ads.googleads.v1.enums', - syntax='proto3', - serialized_options=_b('\n!com.google.ads.googleads.v1.enumsB\034GeoTargetConstantStatusProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v1/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V1.Enums\312\002\035Google\\Ads\\GoogleAds\\V1\\Enums\352\002!Google::Ads::GoogleAds::V1::Enums'), - serialized_pb=_b('\nDgoogle/ads/googleads_v1/proto/enums/geo_target_constant_status.proto\x12\x1dgoogle.ads.googleads.v1.enums\x1a\x1cgoogle/api/annotations.proto\"x\n\x1bGeoTargetConstantStatusEnum\"Y\n\x17GeoTargetConstantStatus\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0b\n\x07\x45NABLED\x10\x02\x12\x13\n\x0fREMOVAL_PLANNED\x10\x03\x42\xf1\x01\n!com.google.ads.googleads.v1.enumsB\x1cGeoTargetConstantStatusProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v1/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V1.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V1\\Enums\xea\x02!Google::Ads::GoogleAds::V1::Enumsb\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - -_GEOTARGETCONSTANTSTATUSENUM_GEOTARGETCONSTANTSTATUS = _descriptor.EnumDescriptor( - name='GeoTargetConstantStatus', - full_name='google.ads.googleads.v1.enums.GeoTargetConstantStatusEnum.GeoTargetConstantStatus', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='UNSPECIFIED', index=0, number=0, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='UNKNOWN', index=1, number=1, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='ENABLED', index=2, number=2, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='REMOVAL_PLANNED', index=3, number=3, - serialized_options=None, - type=None), - ], - containing_type=None, - serialized_options=None, - serialized_start=164, - serialized_end=253, -) -_sym_db.RegisterEnumDescriptor(_GEOTARGETCONSTANTSTATUSENUM_GEOTARGETCONSTANTSTATUS) - - -_GEOTARGETCONSTANTSTATUSENUM = _descriptor.Descriptor( - name='GeoTargetConstantStatusEnum', - full_name='google.ads.googleads.v1.enums.GeoTargetConstantStatusEnum', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - _GEOTARGETCONSTANTSTATUSENUM_GEOTARGETCONSTANTSTATUS, - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=133, - serialized_end=253, -) - -_GEOTARGETCONSTANTSTATUSENUM_GEOTARGETCONSTANTSTATUS.containing_type = _GEOTARGETCONSTANTSTATUSENUM -DESCRIPTOR.message_types_by_name['GeoTargetConstantStatusEnum'] = _GEOTARGETCONSTANTSTATUSENUM -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -GeoTargetConstantStatusEnum = _reflection.GeneratedProtocolMessageType('GeoTargetConstantStatusEnum', (_message.Message,), dict( - DESCRIPTOR = _GEOTARGETCONSTANTSTATUSENUM, - __module__ = 'google.ads.googleads_v1.proto.enums.geo_target_constant_status_pb2' - , - __doc__ = """Container for describing the status of a geo target constant. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.enums.GeoTargetConstantStatusEnum) - )) -_sym_db.RegisterMessage(GeoTargetConstantStatusEnum) - - -DESCRIPTOR._options = None -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/enums/geo_targeting_restriction_pb2.py b/google/ads/google_ads/v1/proto/enums/geo_targeting_restriction_pb2.py deleted file mode 100644 index b13d8da90..000000000 --- a/google/ads/google_ads/v1/proto/enums/geo_targeting_restriction_pb2.py +++ /dev/null @@ -1,97 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/enums/geo_targeting_restriction.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/enums/geo_targeting_restriction.proto', - package='google.ads.googleads.v1.enums', - syntax='proto3', - serialized_options=_b('\n!com.google.ads.googleads.v1.enumsB\034GeoTargetingRestrictionProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v1/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V1.Enums\312\002\035Google\\Ads\\GoogleAds\\V1\\Enums\352\002!Google::Ads::GoogleAds::V1::Enums'), - serialized_pb=_b('\nCgoogle/ads/googleads_v1/proto/enums/geo_targeting_restriction.proto\x12\x1dgoogle.ads.googleads.v1.enums\x1a\x1cgoogle/api/annotations.proto\"p\n\x1bGeoTargetingRestrictionEnum\"Q\n\x17GeoTargetingRestriction\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x18\n\x14LOCATION_OF_PRESENCE\x10\x02\x42\xf1\x01\n!com.google.ads.googleads.v1.enumsB\x1cGeoTargetingRestrictionProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v1/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V1.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V1\\Enums\xea\x02!Google::Ads::GoogleAds::V1::Enumsb\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - -_GEOTARGETINGRESTRICTIONENUM_GEOTARGETINGRESTRICTION = _descriptor.EnumDescriptor( - name='GeoTargetingRestriction', - full_name='google.ads.googleads.v1.enums.GeoTargetingRestrictionEnum.GeoTargetingRestriction', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='UNSPECIFIED', index=0, number=0, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='UNKNOWN', index=1, number=1, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='LOCATION_OF_PRESENCE', index=2, number=2, - serialized_options=None, - type=None), - ], - containing_type=None, - serialized_options=None, - serialized_start=163, - serialized_end=244, -) -_sym_db.RegisterEnumDescriptor(_GEOTARGETINGRESTRICTIONENUM_GEOTARGETINGRESTRICTION) - - -_GEOTARGETINGRESTRICTIONENUM = _descriptor.Descriptor( - name='GeoTargetingRestrictionEnum', - full_name='google.ads.googleads.v1.enums.GeoTargetingRestrictionEnum', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - _GEOTARGETINGRESTRICTIONENUM_GEOTARGETINGRESTRICTION, - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=132, - serialized_end=244, -) - -_GEOTARGETINGRESTRICTIONENUM_GEOTARGETINGRESTRICTION.containing_type = _GEOTARGETINGRESTRICTIONENUM -DESCRIPTOR.message_types_by_name['GeoTargetingRestrictionEnum'] = _GEOTARGETINGRESTRICTIONENUM -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -GeoTargetingRestrictionEnum = _reflection.GeneratedProtocolMessageType('GeoTargetingRestrictionEnum', (_message.Message,), dict( - DESCRIPTOR = _GEOTARGETINGRESTRICTIONENUM, - __module__ = 'google.ads.googleads_v1.proto.enums.geo_targeting_restriction_pb2' - , - __doc__ = """Message describing feed item geo targeting restriction. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.enums.GeoTargetingRestrictionEnum) - )) -_sym_db.RegisterMessage(GeoTargetingRestrictionEnum) - - -DESCRIPTOR._options = None -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/enums/geo_targeting_type_pb2.py b/google/ads/google_ads/v1/proto/enums/geo_targeting_type_pb2.py deleted file mode 100644 index 7f6d5fa90..000000000 --- a/google/ads/google_ads/v1/proto/enums/geo_targeting_type_pb2.py +++ /dev/null @@ -1,101 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/enums/geo_targeting_type.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/enums/geo_targeting_type.proto', - package='google.ads.googleads.v1.enums', - syntax='proto3', - serialized_options=_b('\n!com.google.ads.googleads.v1.enumsB\025GeoTargetingTypeProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v1/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V1.Enums\312\002\035Google\\Ads\\GoogleAds\\V1\\Enums\352\002!Google::Ads::GoogleAds::V1::Enums'), - serialized_pb=_b('\nB\xe9\x01\n!com.google.ads.googleads.v1.enumsB\x14InteractionTypeProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v1/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V1.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V1\\Enums\xea\x02!Google::Ads::GoogleAds::V1::Enumsb\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - -_INTERACTIONTYPEENUM_INTERACTIONTYPE = _descriptor.EnumDescriptor( - name='InteractionType', - full_name='google.ads.googleads.v1.enums.InteractionTypeEnum.InteractionType', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='UNSPECIFIED', index=0, number=0, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='UNKNOWN', index=1, number=1, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='CALLS', index=2, number=8000, - serialized_options=None, - type=None), - ], - containing_type=None, - serialized_options=None, - serialized_start=146, - serialized_end=205, -) -_sym_db.RegisterEnumDescriptor(_INTERACTIONTYPEENUM_INTERACTIONTYPE) - - -_INTERACTIONTYPEENUM = _descriptor.Descriptor( - name='InteractionTypeEnum', - full_name='google.ads.googleads.v1.enums.InteractionTypeEnum', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - _INTERACTIONTYPEENUM_INTERACTIONTYPE, - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=123, - serialized_end=205, -) - -_INTERACTIONTYPEENUM_INTERACTIONTYPE.containing_type = _INTERACTIONTYPEENUM -DESCRIPTOR.message_types_by_name['InteractionTypeEnum'] = _INTERACTIONTYPEENUM -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -InteractionTypeEnum = _reflection.GeneratedProtocolMessageType('InteractionTypeEnum', (_message.Message,), dict( - DESCRIPTOR = _INTERACTIONTYPEENUM, - __module__ = 'google.ads.googleads_v1.proto.enums.interaction_type_pb2' - , - __doc__ = """Container for enum describing possible interaction types. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.enums.InteractionTypeEnum) - )) -_sym_db.RegisterMessage(InteractionTypeEnum) - - -DESCRIPTOR._options = None -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/enums/keyword_match_type_pb2.py b/google/ads/google_ads/v1/proto/enums/keyword_match_type_pb2.py deleted file mode 100644 index c31bacfce..000000000 --- a/google/ads/google_ads/v1/proto/enums/keyword_match_type_pb2.py +++ /dev/null @@ -1,105 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/enums/keyword_match_type.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/enums/keyword_match_type.proto', - package='google.ads.googleads.v1.enums', - syntax='proto3', - serialized_options=_b('\n!com.google.ads.googleads.v1.enumsB\025KeywordMatchTypeProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v1/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V1.Enums\312\002\035Google\\Ads\\GoogleAds\\V1\\Enums\352\002!Google::Ads::GoogleAds::V1::Enums'), - serialized_pb=_b('\ngoogle/ads/googleads_v1/proto/enums/keyword_plan_network.proto\x12\x1dgoogle.ads.googleads.v1.enums\x1a\x1cgoogle/api/annotations.proto\"\x7f\n\x16KeywordPlanNetworkEnum\"e\n\x12KeywordPlanNetwork\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x11\n\rGOOGLE_SEARCH\x10\x02\x12\x1e\n\x1aGOOGLE_SEARCH_AND_PARTNERS\x10\x03\x42\xec\x01\n!com.google.ads.googleads.v1.enumsB\x17KeywordPlanNetworkProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v1/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V1.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V1\\Enums\xea\x02!Google::Ads::GoogleAds::V1::Enumsb\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - -_KEYWORDPLANNETWORKENUM_KEYWORDPLANNETWORK = _descriptor.EnumDescriptor( - name='KeywordPlanNetwork', - full_name='google.ads.googleads.v1.enums.KeywordPlanNetworkEnum.KeywordPlanNetwork', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='UNSPECIFIED', index=0, number=0, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='UNKNOWN', index=1, number=1, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='GOOGLE_SEARCH', index=2, number=2, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='GOOGLE_SEARCH_AND_PARTNERS', index=3, number=3, - serialized_options=None, - type=None), - ], - containing_type=None, - serialized_options=None, - serialized_start=153, - serialized_end=254, -) -_sym_db.RegisterEnumDescriptor(_KEYWORDPLANNETWORKENUM_KEYWORDPLANNETWORK) - - -_KEYWORDPLANNETWORKENUM = _descriptor.Descriptor( - name='KeywordPlanNetworkEnum', - full_name='google.ads.googleads.v1.enums.KeywordPlanNetworkEnum', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - _KEYWORDPLANNETWORKENUM_KEYWORDPLANNETWORK, - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=127, - serialized_end=254, -) - -_KEYWORDPLANNETWORKENUM_KEYWORDPLANNETWORK.containing_type = _KEYWORDPLANNETWORKENUM -DESCRIPTOR.message_types_by_name['KeywordPlanNetworkEnum'] = _KEYWORDPLANNETWORKENUM -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -KeywordPlanNetworkEnum = _reflection.GeneratedProtocolMessageType('KeywordPlanNetworkEnum', (_message.Message,), dict( - DESCRIPTOR = _KEYWORDPLANNETWORKENUM, - __module__ = 'google.ads.googleads_v1.proto.enums.keyword_plan_network_pb2' - , - __doc__ = """Container for enumeration of keyword plan forecastable network types. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.enums.KeywordPlanNetworkEnum) - )) -_sym_db.RegisterMessage(KeywordPlanNetworkEnum) - - -DESCRIPTOR._options = None -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/enums/label_status_pb2.py b/google/ads/google_ads/v1/proto/enums/label_status_pb2.py deleted file mode 100644 index dd43e3b8a..000000000 --- a/google/ads/google_ads/v1/proto/enums/label_status_pb2.py +++ /dev/null @@ -1,101 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/enums/label_status.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/enums/label_status.proto', - package='google.ads.googleads.v1.enums', - syntax='proto3', - serialized_options=_b('\n!com.google.ads.googleads.v1.enumsB\020LabelStatusProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v1/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V1.Enums\312\002\035Google\\Ads\\GoogleAds\\V1\\Enums\352\002!Google::Ads::GoogleAds::V1::Enums'), - serialized_pb=_b('\n6google/ads/googleads_v1/proto/enums/label_status.proto\x12\x1dgoogle.ads.googleads.v1.enums\x1a\x1cgoogle/api/annotations.proto\"X\n\x0fLabelStatusEnum\"E\n\x0bLabelStatus\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0b\n\x07\x45NABLED\x10\x02\x12\x0b\n\x07REMOVED\x10\x03\x42\xe5\x01\n!com.google.ads.googleads.v1.enumsB\x10LabelStatusProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v1/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V1.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V1\\Enums\xea\x02!Google::Ads::GoogleAds::V1::Enumsb\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - -_LABELSTATUSENUM_LABELSTATUS = _descriptor.EnumDescriptor( - name='LabelStatus', - full_name='google.ads.googleads.v1.enums.LabelStatusEnum.LabelStatus', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='UNSPECIFIED', index=0, number=0, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='UNKNOWN', index=1, number=1, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='ENABLED', index=2, number=2, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='REMOVED', index=3, number=3, - serialized_options=None, - type=None), - ], - containing_type=None, - serialized_options=None, - serialized_start=138, - serialized_end=207, -) -_sym_db.RegisterEnumDescriptor(_LABELSTATUSENUM_LABELSTATUS) - - -_LABELSTATUSENUM = _descriptor.Descriptor( - name='LabelStatusEnum', - full_name='google.ads.googleads.v1.enums.LabelStatusEnum', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - _LABELSTATUSENUM_LABELSTATUS, - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=119, - serialized_end=207, -) - -_LABELSTATUSENUM_LABELSTATUS.containing_type = _LABELSTATUSENUM -DESCRIPTOR.message_types_by_name['LabelStatusEnum'] = _LABELSTATUSENUM -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -LabelStatusEnum = _reflection.GeneratedProtocolMessageType('LabelStatusEnum', (_message.Message,), dict( - DESCRIPTOR = _LABELSTATUSENUM, - __module__ = 'google.ads.googleads_v1.proto.enums.label_status_pb2' - , - __doc__ = """Container for enum describing possible status of a label. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.enums.LabelStatusEnum) - )) -_sym_db.RegisterMessage(LabelStatusEnum) - - -DESCRIPTOR._options = None -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/enums/listing_custom_attribute_index_pb2.py b/google/ads/google_ads/v1/proto/enums/listing_custom_attribute_index_pb2.py deleted file mode 100644 index 7183ce362..000000000 --- a/google/ads/google_ads/v1/proto/enums/listing_custom_attribute_index_pb2.py +++ /dev/null @@ -1,113 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/enums/listing_custom_attribute_index.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/enums/listing_custom_attribute_index.proto', - package='google.ads.googleads.v1.enums', - syntax='proto3', - serialized_options=_b('\n!com.google.ads.googleads.v1.enumsB ListingCustomAttributeIndexProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v1/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V1.Enums\312\002\035Google\\Ads\\GoogleAds\\V1\\Enums\352\002!Google::Ads::GoogleAds::V1::Enums'), - serialized_pb=_b('\nHgoogle/ads/googleads_v1/proto/enums/listing_custom_attribute_index.proto\x12\x1dgoogle.ads.googleads.v1.enums\x1a\x1cgoogle/api/annotations.proto\"\x9a\x01\n\x1fListingCustomAttributeIndexEnum\"w\n\x1bListingCustomAttributeIndex\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\n\n\x06INDEX0\x10\x07\x12\n\n\x06INDEX1\x10\x08\x12\n\n\x06INDEX2\x10\t\x12\n\n\x06INDEX3\x10\n\x12\n\n\x06INDEX4\x10\x0b\x42\xf5\x01\n!com.google.ads.googleads.v1.enumsB ListingCustomAttributeIndexProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v1/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V1.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V1\\Enums\xea\x02!Google::Ads::GoogleAds::V1::Enumsb\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - -_LISTINGCUSTOMATTRIBUTEINDEXENUM_LISTINGCUSTOMATTRIBUTEINDEX = _descriptor.EnumDescriptor( - name='ListingCustomAttributeIndex', - full_name='google.ads.googleads.v1.enums.ListingCustomAttributeIndexEnum.ListingCustomAttributeIndex', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='UNSPECIFIED', index=0, number=0, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='UNKNOWN', index=1, number=1, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='INDEX0', index=2, number=7, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='INDEX1', index=3, number=8, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='INDEX2', index=4, number=9, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='INDEX3', index=5, number=10, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='INDEX4', index=6, number=11, - serialized_options=None, - type=None), - ], - containing_type=None, - serialized_options=None, - serialized_start=173, - serialized_end=292, -) -_sym_db.RegisterEnumDescriptor(_LISTINGCUSTOMATTRIBUTEINDEXENUM_LISTINGCUSTOMATTRIBUTEINDEX) - - -_LISTINGCUSTOMATTRIBUTEINDEXENUM = _descriptor.Descriptor( - name='ListingCustomAttributeIndexEnum', - full_name='google.ads.googleads.v1.enums.ListingCustomAttributeIndexEnum', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - _LISTINGCUSTOMATTRIBUTEINDEXENUM_LISTINGCUSTOMATTRIBUTEINDEX, - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=138, - serialized_end=292, -) - -_LISTINGCUSTOMATTRIBUTEINDEXENUM_LISTINGCUSTOMATTRIBUTEINDEX.containing_type = _LISTINGCUSTOMATTRIBUTEINDEXENUM -DESCRIPTOR.message_types_by_name['ListingCustomAttributeIndexEnum'] = _LISTINGCUSTOMATTRIBUTEINDEXENUM -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -ListingCustomAttributeIndexEnum = _reflection.GeneratedProtocolMessageType('ListingCustomAttributeIndexEnum', (_message.Message,), dict( - DESCRIPTOR = _LISTINGCUSTOMATTRIBUTEINDEXENUM, - __module__ = 'google.ads.googleads_v1.proto.enums.listing_custom_attribute_index_pb2' - , - __doc__ = """Container for enum describing the index of the listing custom attribute. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.enums.ListingCustomAttributeIndexEnum) - )) -_sym_db.RegisterMessage(ListingCustomAttributeIndexEnum) - - -DESCRIPTOR._options = None -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/enums/listing_group_type_pb2.py b/google/ads/google_ads/v1/proto/enums/listing_group_type_pb2.py deleted file mode 100644 index c97c73630..000000000 --- a/google/ads/google_ads/v1/proto/enums/listing_group_type_pb2.py +++ /dev/null @@ -1,101 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/enums/listing_group_type.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/enums/listing_group_type.proto', - package='google.ads.googleads.v1.enums', - syntax='proto3', - serialized_options=_b('\n!com.google.ads.googleads.v1.enumsB\025ListingGroupTypeProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v1/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V1.Enums\312\002\035Google\\Ads\\GoogleAds\\V1\\Enums\352\002!Google::Ads::GoogleAds::V1::Enums'), - serialized_pb=_b('\ngoogle/ads/googleads_v1/proto/enums/policy_review_status.proto\x12\x1dgoogle.ads.googleads.v1.enums\x1a\x1cgoogle/api/annotations.proto\"\x84\x01\n\x16PolicyReviewStatusEnum\"j\n\x12PolicyReviewStatus\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x16\n\x12REVIEW_IN_PROGRESS\x10\x02\x12\x0c\n\x08REVIEWED\x10\x03\x12\x10\n\x0cUNDER_APPEAL\x10\x04\x42\xec\x01\n!com.google.ads.googleads.v1.enumsB\x17PolicyReviewStatusProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v1/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V1.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V1\\Enums\xea\x02!Google::Ads::GoogleAds::V1::Enumsb\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - -_POLICYREVIEWSTATUSENUM_POLICYREVIEWSTATUS = _descriptor.EnumDescriptor( - name='PolicyReviewStatus', - full_name='google.ads.googleads.v1.enums.PolicyReviewStatusEnum.PolicyReviewStatus', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='UNSPECIFIED', index=0, number=0, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='UNKNOWN', index=1, number=1, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='REVIEW_IN_PROGRESS', index=2, number=2, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='REVIEWED', index=3, number=3, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='UNDER_APPEAL', index=4, number=4, - serialized_options=None, - type=None), - ], - containing_type=None, - serialized_options=None, - serialized_start=154, - serialized_end=260, -) -_sym_db.RegisterEnumDescriptor(_POLICYREVIEWSTATUSENUM_POLICYREVIEWSTATUS) - - -_POLICYREVIEWSTATUSENUM = _descriptor.Descriptor( - name='PolicyReviewStatusEnum', - full_name='google.ads.googleads.v1.enums.PolicyReviewStatusEnum', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - _POLICYREVIEWSTATUSENUM_POLICYREVIEWSTATUS, - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=128, - serialized_end=260, -) - -_POLICYREVIEWSTATUSENUM_POLICYREVIEWSTATUS.containing_type = _POLICYREVIEWSTATUSENUM -DESCRIPTOR.message_types_by_name['PolicyReviewStatusEnum'] = _POLICYREVIEWSTATUSENUM -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -PolicyReviewStatusEnum = _reflection.GeneratedProtocolMessageType('PolicyReviewStatusEnum', (_message.Message,), dict( - DESCRIPTOR = _POLICYREVIEWSTATUSENUM, - __module__ = 'google.ads.googleads_v1.proto.enums.policy_review_status_pb2' - , - __doc__ = """Container for enum describing possible policy review statuses. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.enums.PolicyReviewStatusEnum) - )) -_sym_db.RegisterMessage(PolicyReviewStatusEnum) - - -DESCRIPTOR._options = None -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/enums/positive_geo_target_type_pb2.py b/google/ads/google_ads/v1/proto/enums/positive_geo_target_type_pb2.py deleted file mode 100644 index 621825f8c..000000000 --- a/google/ads/google_ads/v1/proto/enums/positive_geo_target_type_pb2.py +++ /dev/null @@ -1,105 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/enums/positive_geo_target_type.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/enums/positive_geo_target_type.proto', - package='google.ads.googleads.v1.enums', - syntax='proto3', - serialized_options=_b('\n!com.google.ads.googleads.v1.enumsB\032PositiveGeoTargetTypeProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v1/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V1.Enums\312\002\035Google\\Ads\\GoogleAds\\V1\\Enums\352\002!Google::Ads::GoogleAds::V1::Enums'), - serialized_pb=_b('\nBgoogle/ads/googleads_v1/proto/enums/positive_geo_target_type.proto\x12\x1dgoogle.ads.googleads.v1.enums\x1a\x1cgoogle/api/annotations.proto\"\x91\x01\n\x19PositiveGeoTargetTypeEnum\"t\n\x15PositiveGeoTargetType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\r\n\tDONT_CARE\x10\x02\x12\x14\n\x10\x41REA_OF_INTEREST\x10\x03\x12\x18\n\x14LOCATION_OF_PRESENCE\x10\x04\x42\xef\x01\n!com.google.ads.googleads.v1.enumsB\x1aPositiveGeoTargetTypeProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v1/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V1.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V1\\Enums\xea\x02!Google::Ads::GoogleAds::V1::Enumsb\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - -_POSITIVEGEOTARGETTYPEENUM_POSITIVEGEOTARGETTYPE = _descriptor.EnumDescriptor( - name='PositiveGeoTargetType', - full_name='google.ads.googleads.v1.enums.PositiveGeoTargetTypeEnum.PositiveGeoTargetType', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='UNSPECIFIED', index=0, number=0, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='UNKNOWN', index=1, number=1, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='DONT_CARE', index=2, number=2, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='AREA_OF_INTEREST', index=3, number=3, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='LOCATION_OF_PRESENCE', index=4, number=4, - serialized_options=None, - type=None), - ], - containing_type=None, - serialized_options=None, - serialized_start=161, - serialized_end=277, -) -_sym_db.RegisterEnumDescriptor(_POSITIVEGEOTARGETTYPEENUM_POSITIVEGEOTARGETTYPE) - - -_POSITIVEGEOTARGETTYPEENUM = _descriptor.Descriptor( - name='PositiveGeoTargetTypeEnum', - full_name='google.ads.googleads.v1.enums.PositiveGeoTargetTypeEnum', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - _POSITIVEGEOTARGETTYPEENUM_POSITIVEGEOTARGETTYPE, - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=132, - serialized_end=277, -) - -_POSITIVEGEOTARGETTYPEENUM_POSITIVEGEOTARGETTYPE.containing_type = _POSITIVEGEOTARGETTYPEENUM -DESCRIPTOR.message_types_by_name['PositiveGeoTargetTypeEnum'] = _POSITIVEGEOTARGETTYPEENUM -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -PositiveGeoTargetTypeEnum = _reflection.GeneratedProtocolMessageType('PositiveGeoTargetTypeEnum', (_message.Message,), dict( - DESCRIPTOR = _POSITIVEGEOTARGETTYPEENUM, - __module__ = 'google.ads.googleads_v1.proto.enums.positive_geo_target_type_pb2' - , - __doc__ = """Container for enum describing possible positive geo target types. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.enums.PositiveGeoTargetTypeEnum) - )) -_sym_db.RegisterMessage(PositiveGeoTargetTypeEnum) - - -DESCRIPTOR._options = None -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/enums/preferred_content_type_pb2.py b/google/ads/google_ads/v1/proto/enums/preferred_content_type_pb2.py deleted file mode 100644 index df5c94bf7..000000000 --- a/google/ads/google_ads/v1/proto/enums/preferred_content_type_pb2.py +++ /dev/null @@ -1,97 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/enums/preferred_content_type.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/enums/preferred_content_type.proto', - package='google.ads.googleads.v1.enums', - syntax='proto3', - serialized_options=_b('\n!com.google.ads.googleads.v1.enumsB\031PreferredContentTypeProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v1/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V1.Enums\312\002\035Google\\Ads\\GoogleAds\\V1\\Enums\352\002!Google::Ads::GoogleAds::V1::Enums'), - serialized_pb=_b('\n@google/ads/googleads_v1/proto/enums/preferred_content_type.proto\x12\x1dgoogle.ads.googleads.v1.enums\x1a\x1cgoogle/api/annotations.proto\"j\n\x18PreferredContentTypeEnum\"N\n\x14PreferredContentType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x18\n\x13YOUTUBE_TOP_CONTENT\x10\x90\x03\x42\xee\x01\n!com.google.ads.googleads.v1.enumsB\x19PreferredContentTypeProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v1/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V1.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V1\\Enums\xea\x02!Google::Ads::GoogleAds::V1::Enumsb\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - -_PREFERREDCONTENTTYPEENUM_PREFERREDCONTENTTYPE = _descriptor.EnumDescriptor( - name='PreferredContentType', - full_name='google.ads.googleads.v1.enums.PreferredContentTypeEnum.PreferredContentType', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='UNSPECIFIED', index=0, number=0, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='UNKNOWN', index=1, number=1, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='YOUTUBE_TOP_CONTENT', index=2, number=400, - serialized_options=None, - type=None), - ], - containing_type=None, - serialized_options=None, - serialized_start=157, - serialized_end=235, -) -_sym_db.RegisterEnumDescriptor(_PREFERREDCONTENTTYPEENUM_PREFERREDCONTENTTYPE) - - -_PREFERREDCONTENTTYPEENUM = _descriptor.Descriptor( - name='PreferredContentTypeEnum', - full_name='google.ads.googleads.v1.enums.PreferredContentTypeEnum', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - _PREFERREDCONTENTTYPEENUM_PREFERREDCONTENTTYPE, - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=129, - serialized_end=235, -) - -_PREFERREDCONTENTTYPEENUM_PREFERREDCONTENTTYPE.containing_type = _PREFERREDCONTENTTYPEENUM -DESCRIPTOR.message_types_by_name['PreferredContentTypeEnum'] = _PREFERREDCONTENTTYPEENUM -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -PreferredContentTypeEnum = _reflection.GeneratedProtocolMessageType('PreferredContentTypeEnum', (_message.Message,), dict( - DESCRIPTOR = _PREFERREDCONTENTTYPEENUM, - __module__ = 'google.ads.googleads_v1.proto.enums.preferred_content_type_pb2' - , - __doc__ = """Container for enumeration of preferred content criterion type. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.enums.PreferredContentTypeEnum) - )) -_sym_db.RegisterMessage(PreferredContentTypeEnum) - - -DESCRIPTOR._options = None -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/enums/product_bidding_category_status_pb2.py b/google/ads/google_ads/v1/proto/enums/product_bidding_category_status_pb2.py deleted file mode 100644 index 27c6e59eb..000000000 --- a/google/ads/google_ads/v1/proto/enums/product_bidding_category_status_pb2.py +++ /dev/null @@ -1,101 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/enums/product_bidding_category_status.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/enums/product_bidding_category_status.proto', - package='google.ads.googleads.v1.enums', - syntax='proto3', - serialized_options=_b('\n!com.google.ads.googleads.v1.enumsB!ProductBiddingCategoryStatusProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v1/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V1.Enums\312\002\035Google\\Ads\\GoogleAds\\V1\\Enums\352\002!Google::Ads::GoogleAds::V1::Enums'), - serialized_pb=_b('\nIgoogle/ads/googleads_v1/proto/enums/product_bidding_category_status.proto\x12\x1dgoogle.ads.googleads.v1.enums\x1a\x1cgoogle/api/annotations.proto\"z\n ProductBiddingCategoryStatusEnum\"V\n\x1cProductBiddingCategoryStatus\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\n\n\x06\x41\x43TIVE\x10\x02\x12\x0c\n\x08OBSOLETE\x10\x03\x42\xf6\x01\n!com.google.ads.googleads.v1.enumsB!ProductBiddingCategoryStatusProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v1/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V1.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V1\\Enums\xea\x02!Google::Ads::GoogleAds::V1::Enumsb\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - -_PRODUCTBIDDINGCATEGORYSTATUSENUM_PRODUCTBIDDINGCATEGORYSTATUS = _descriptor.EnumDescriptor( - name='ProductBiddingCategoryStatus', - full_name='google.ads.googleads.v1.enums.ProductBiddingCategoryStatusEnum.ProductBiddingCategoryStatus', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='UNSPECIFIED', index=0, number=0, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='UNKNOWN', index=1, number=1, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='ACTIVE', index=2, number=2, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='OBSOLETE', index=3, number=3, - serialized_options=None, - type=None), - ], - containing_type=None, - serialized_options=None, - serialized_start=174, - serialized_end=260, -) -_sym_db.RegisterEnumDescriptor(_PRODUCTBIDDINGCATEGORYSTATUSENUM_PRODUCTBIDDINGCATEGORYSTATUS) - - -_PRODUCTBIDDINGCATEGORYSTATUSENUM = _descriptor.Descriptor( - name='ProductBiddingCategoryStatusEnum', - full_name='google.ads.googleads.v1.enums.ProductBiddingCategoryStatusEnum', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - _PRODUCTBIDDINGCATEGORYSTATUSENUM_PRODUCTBIDDINGCATEGORYSTATUS, - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=138, - serialized_end=260, -) - -_PRODUCTBIDDINGCATEGORYSTATUSENUM_PRODUCTBIDDINGCATEGORYSTATUS.containing_type = _PRODUCTBIDDINGCATEGORYSTATUSENUM -DESCRIPTOR.message_types_by_name['ProductBiddingCategoryStatusEnum'] = _PRODUCTBIDDINGCATEGORYSTATUSENUM -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -ProductBiddingCategoryStatusEnum = _reflection.GeneratedProtocolMessageType('ProductBiddingCategoryStatusEnum', (_message.Message,), dict( - DESCRIPTOR = _PRODUCTBIDDINGCATEGORYSTATUSENUM, - __module__ = 'google.ads.googleads_v1.proto.enums.product_bidding_category_status_pb2' - , - __doc__ = """Status of the product bidding category. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.enums.ProductBiddingCategoryStatusEnum) - )) -_sym_db.RegisterMessage(ProductBiddingCategoryStatusEnum) - - -DESCRIPTOR._options = None -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/enums/product_channel_pb2.py b/google/ads/google_ads/v1/proto/enums/product_channel_pb2.py deleted file mode 100644 index 353c17019..000000000 --- a/google/ads/google_ads/v1/proto/enums/product_channel_pb2.py +++ /dev/null @@ -1,101 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/enums/product_channel.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/enums/product_channel.proto', - package='google.ads.googleads.v1.enums', - syntax='proto3', - serialized_options=_b('\n!com.google.ads.googleads.v1.enumsB\023ProductChannelProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v1/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V1.Enums\312\002\035Google\\Ads\\GoogleAds\\V1\\Enums\352\002!Google::Ads::GoogleAds::V1::Enums'), - serialized_pb=_b('\n9google/ads/googleads_v1/proto/enums/product_channel.proto\x12\x1dgoogle.ads.googleads.v1.enums\x1a\x1cgoogle/api/annotations.proto\"[\n\x12ProductChannelEnum\"E\n\x0eProductChannel\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\n\n\x06ONLINE\x10\x02\x12\t\n\x05LOCAL\x10\x03\x42\xe8\x01\n!com.google.ads.googleads.v1.enumsB\x13ProductChannelProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v1/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V1.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V1\\Enums\xea\x02!Google::Ads::GoogleAds::V1::Enumsb\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - -_PRODUCTCHANNELENUM_PRODUCTCHANNEL = _descriptor.EnumDescriptor( - name='ProductChannel', - full_name='google.ads.googleads.v1.enums.ProductChannelEnum.ProductChannel', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='UNSPECIFIED', index=0, number=0, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='UNKNOWN', index=1, number=1, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='ONLINE', index=2, number=2, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='LOCAL', index=3, number=3, - serialized_options=None, - type=None), - ], - containing_type=None, - serialized_options=None, - serialized_start=144, - serialized_end=213, -) -_sym_db.RegisterEnumDescriptor(_PRODUCTCHANNELENUM_PRODUCTCHANNEL) - - -_PRODUCTCHANNELENUM = _descriptor.Descriptor( - name='ProductChannelEnum', - full_name='google.ads.googleads.v1.enums.ProductChannelEnum', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - _PRODUCTCHANNELENUM_PRODUCTCHANNEL, - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=122, - serialized_end=213, -) - -_PRODUCTCHANNELENUM_PRODUCTCHANNEL.containing_type = _PRODUCTCHANNELENUM -DESCRIPTOR.message_types_by_name['ProductChannelEnum'] = _PRODUCTCHANNELENUM -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -ProductChannelEnum = _reflection.GeneratedProtocolMessageType('ProductChannelEnum', (_message.Message,), dict( - DESCRIPTOR = _PRODUCTCHANNELENUM, - __module__ = 'google.ads.googleads_v1.proto.enums.product_channel_pb2' - , - __doc__ = """Locality of a product offer. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.enums.ProductChannelEnum) - )) -_sym_db.RegisterMessage(ProductChannelEnum) - - -DESCRIPTOR._options = None -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/enums/product_condition_pb2.py b/google/ads/google_ads/v1/proto/enums/product_condition_pb2.py deleted file mode 100644 index 4a81bce9a..000000000 --- a/google/ads/google_ads/v1/proto/enums/product_condition_pb2.py +++ /dev/null @@ -1,105 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/enums/product_condition.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/enums/product_condition.proto', - package='google.ads.googleads.v1.enums', - syntax='proto3', - serialized_options=_b('\n!com.google.ads.googleads.v1.enumsB\025ProductConditionProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v1/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V1.Enums\312\002\035Google\\Ads\\GoogleAds\\V1\\Enums\352\002!Google::Ads::GoogleAds::V1::Enums'), - serialized_pb=_b('\n;google/ads/googleads_v1/proto/enums/product_condition.proto\x12\x1dgoogle.ads.googleads.v1.enums\x1a\x1cgoogle/api/annotations.proto\"l\n\x14ProductConditionEnum\"T\n\x10ProductCondition\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x07\n\x03NEW\x10\x03\x12\x0f\n\x0bREFURBISHED\x10\x04\x12\x08\n\x04USED\x10\x05\x42\xea\x01\n!com.google.ads.googleads.v1.enumsB\x15ProductConditionProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v1/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V1.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V1\\Enums\xea\x02!Google::Ads::GoogleAds::V1::Enumsb\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - -_PRODUCTCONDITIONENUM_PRODUCTCONDITION = _descriptor.EnumDescriptor( - name='ProductCondition', - full_name='google.ads.googleads.v1.enums.ProductConditionEnum.ProductCondition', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='UNSPECIFIED', index=0, number=0, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='UNKNOWN', index=1, number=1, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='NEW', index=2, number=3, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='REFURBISHED', index=3, number=4, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='USED', index=4, number=5, - serialized_options=None, - type=None), - ], - containing_type=None, - serialized_options=None, - serialized_start=148, - serialized_end=232, -) -_sym_db.RegisterEnumDescriptor(_PRODUCTCONDITIONENUM_PRODUCTCONDITION) - - -_PRODUCTCONDITIONENUM = _descriptor.Descriptor( - name='ProductConditionEnum', - full_name='google.ads.googleads.v1.enums.ProductConditionEnum', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - _PRODUCTCONDITIONENUM_PRODUCTCONDITION, - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=124, - serialized_end=232, -) - -_PRODUCTCONDITIONENUM_PRODUCTCONDITION.containing_type = _PRODUCTCONDITIONENUM -DESCRIPTOR.message_types_by_name['ProductConditionEnum'] = _PRODUCTCONDITIONENUM -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -ProductConditionEnum = _reflection.GeneratedProtocolMessageType('ProductConditionEnum', (_message.Message,), dict( - DESCRIPTOR = _PRODUCTCONDITIONENUM, - __module__ = 'google.ads.googleads_v1.proto.enums.product_condition_pb2' - , - __doc__ = """Condition of a product offer. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.enums.ProductConditionEnum) - )) -_sym_db.RegisterMessage(ProductConditionEnum) - - -DESCRIPTOR._options = None -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/enums/promotion_extension_discount_modifier_pb2.py b/google/ads/google_ads/v1/proto/enums/promotion_extension_discount_modifier_pb2.py deleted file mode 100644 index 9841f50b8..000000000 --- a/google/ads/google_ads/v1/proto/enums/promotion_extension_discount_modifier_pb2.py +++ /dev/null @@ -1,98 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/enums/promotion_extension_discount_modifier.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/enums/promotion_extension_discount_modifier.proto', - package='google.ads.googleads.v1.enums', - syntax='proto3', - serialized_options=_b('\n!com.google.ads.googleads.v1.enumsB\'PromotionExtensionDiscountModifierProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v1/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V1.Enums\312\002\035Google\\Ads\\GoogleAds\\V1\\Enums\352\002!Google::Ads::GoogleAds::V1::Enums'), - serialized_pb=_b('\nOgoogle/ads/googleads_v1/proto/enums/promotion_extension_discount_modifier.proto\x12\x1dgoogle.ads.googleads.v1.enums\x1a\x1cgoogle/api/annotations.proto\"w\n&PromotionExtensionDiscountModifierEnum\"M\n\"PromotionExtensionDiscountModifier\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\t\n\x05UP_TO\x10\x02\x42\xfc\x01\n!com.google.ads.googleads.v1.enumsB\'PromotionExtensionDiscountModifierProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v1/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V1.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V1\\Enums\xea\x02!Google::Ads::GoogleAds::V1::Enumsb\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - -_PROMOTIONEXTENSIONDISCOUNTMODIFIERENUM_PROMOTIONEXTENSIONDISCOUNTMODIFIER = _descriptor.EnumDescriptor( - name='PromotionExtensionDiscountModifier', - full_name='google.ads.googleads.v1.enums.PromotionExtensionDiscountModifierEnum.PromotionExtensionDiscountModifier', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='UNSPECIFIED', index=0, number=0, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='UNKNOWN', index=1, number=1, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='UP_TO', index=2, number=2, - serialized_options=None, - type=None), - ], - containing_type=None, - serialized_options=None, - serialized_start=186, - serialized_end=263, -) -_sym_db.RegisterEnumDescriptor(_PROMOTIONEXTENSIONDISCOUNTMODIFIERENUM_PROMOTIONEXTENSIONDISCOUNTMODIFIER) - - -_PROMOTIONEXTENSIONDISCOUNTMODIFIERENUM = _descriptor.Descriptor( - name='PromotionExtensionDiscountModifierEnum', - full_name='google.ads.googleads.v1.enums.PromotionExtensionDiscountModifierEnum', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - _PROMOTIONEXTENSIONDISCOUNTMODIFIERENUM_PROMOTIONEXTENSIONDISCOUNTMODIFIER, - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=144, - serialized_end=263, -) - -_PROMOTIONEXTENSIONDISCOUNTMODIFIERENUM_PROMOTIONEXTENSIONDISCOUNTMODIFIER.containing_type = _PROMOTIONEXTENSIONDISCOUNTMODIFIERENUM -DESCRIPTOR.message_types_by_name['PromotionExtensionDiscountModifierEnum'] = _PROMOTIONEXTENSIONDISCOUNTMODIFIERENUM -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -PromotionExtensionDiscountModifierEnum = _reflection.GeneratedProtocolMessageType('PromotionExtensionDiscountModifierEnum', (_message.Message,), dict( - DESCRIPTOR = _PROMOTIONEXTENSIONDISCOUNTMODIFIERENUM, - __module__ = 'google.ads.googleads_v1.proto.enums.promotion_extension_discount_modifier_pb2' - , - __doc__ = """Container for enum describing possible a promotion extension discount - modifier. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.enums.PromotionExtensionDiscountModifierEnum) - )) -_sym_db.RegisterMessage(PromotionExtensionDiscountModifierEnum) - - -DESCRIPTOR._options = None -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/enums/proximity_radius_units_pb2.py b/google/ads/google_ads/v1/proto/enums/proximity_radius_units_pb2.py deleted file mode 100644 index 5e9bcfb09..000000000 --- a/google/ads/google_ads/v1/proto/enums/proximity_radius_units_pb2.py +++ /dev/null @@ -1,101 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/enums/proximity_radius_units.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/enums/proximity_radius_units.proto', - package='google.ads.googleads.v1.enums', - syntax='proto3', - serialized_options=_b('\n!com.google.ads.googleads.v1.enumsB\031ProximityRadiusUnitsProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v1/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V1.Enums\312\002\035Google\\Ads\\GoogleAds\\V1\\Enums\352\002!Google::Ads::GoogleAds::V1::Enums'), - serialized_pb=_b('\n@google/ads/googleads_v1/proto/enums/proximity_radius_units.proto\x12\x1dgoogle.ads.googleads.v1.enums\x1a\x1cgoogle/api/annotations.proto\"k\n\x18ProximityRadiusUnitsEnum\"O\n\x14ProximityRadiusUnits\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\t\n\x05MILES\x10\x02\x12\x0e\n\nKILOMETERS\x10\x03\x42\xee\x01\n!com.google.ads.googleads.v1.enumsB\x19ProximityRadiusUnitsProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v1/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V1.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V1\\Enums\xea\x02!Google::Ads::GoogleAds::V1::Enumsb\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - -_PROXIMITYRADIUSUNITSENUM_PROXIMITYRADIUSUNITS = _descriptor.EnumDescriptor( - name='ProximityRadiusUnits', - full_name='google.ads.googleads.v1.enums.ProximityRadiusUnitsEnum.ProximityRadiusUnits', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='UNSPECIFIED', index=0, number=0, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='UNKNOWN', index=1, number=1, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='MILES', index=2, number=2, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='KILOMETERS', index=3, number=3, - serialized_options=None, - type=None), - ], - containing_type=None, - serialized_options=None, - serialized_start=157, - serialized_end=236, -) -_sym_db.RegisterEnumDescriptor(_PROXIMITYRADIUSUNITSENUM_PROXIMITYRADIUSUNITS) - - -_PROXIMITYRADIUSUNITSENUM = _descriptor.Descriptor( - name='ProximityRadiusUnitsEnum', - full_name='google.ads.googleads.v1.enums.ProximityRadiusUnitsEnum', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - _PROXIMITYRADIUSUNITSENUM_PROXIMITYRADIUSUNITS, - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=129, - serialized_end=236, -) - -_PROXIMITYRADIUSUNITSENUM_PROXIMITYRADIUSUNITS.containing_type = _PROXIMITYRADIUSUNITSENUM -DESCRIPTOR.message_types_by_name['ProximityRadiusUnitsEnum'] = _PROXIMITYRADIUSUNITSENUM -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -ProximityRadiusUnitsEnum = _reflection.GeneratedProtocolMessageType('ProximityRadiusUnitsEnum', (_message.Message,), dict( - DESCRIPTOR = _PROXIMITYRADIUSUNITSENUM, - __module__ = 'google.ads.googleads_v1.proto.enums.proximity_radius_units_pb2' - , - __doc__ = """Container for enum describing unit of radius in proximity. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.enums.ProximityRadiusUnitsEnum) - )) -_sym_db.RegisterMessage(ProximityRadiusUnitsEnum) - - -DESCRIPTOR._options = None -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/enums/shared_set_status_pb2.py b/google/ads/google_ads/v1/proto/enums/shared_set_status_pb2.py deleted file mode 100644 index 336efefc5..000000000 --- a/google/ads/google_ads/v1/proto/enums/shared_set_status_pb2.py +++ /dev/null @@ -1,101 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/enums/shared_set_status.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/enums/shared_set_status.proto', - package='google.ads.googleads.v1.enums', - syntax='proto3', - serialized_options=_b('\n!com.google.ads.googleads.v1.enumsB\024SharedSetStatusProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v1/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V1.Enums\312\002\035Google\\Ads\\GoogleAds\\V1\\Enums\352\002!Google::Ads::GoogleAds::V1::Enums'), - serialized_pb=_b('\n;google/ads/googleads_v1/proto/enums/shared_set_status.proto\x12\x1dgoogle.ads.googleads.v1.enums\x1a\x1cgoogle/api/annotations.proto\"`\n\x13SharedSetStatusEnum\"I\n\x0fSharedSetStatus\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0b\n\x07\x45NABLED\x10\x02\x12\x0b\n\x07REMOVED\x10\x03\x42\xe9\x01\n!com.google.ads.googleads.v1.enumsB\x14SharedSetStatusProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v1/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V1.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V1\\Enums\xea\x02!Google::Ads::GoogleAds::V1::Enumsb\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - -_SHAREDSETSTATUSENUM_SHAREDSETSTATUS = _descriptor.EnumDescriptor( - name='SharedSetStatus', - full_name='google.ads.googleads.v1.enums.SharedSetStatusEnum.SharedSetStatus', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='UNSPECIFIED', index=0, number=0, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='UNKNOWN', index=1, number=1, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='ENABLED', index=2, number=2, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='REMOVED', index=3, number=3, - serialized_options=None, - type=None), - ], - containing_type=None, - serialized_options=None, - serialized_start=147, - serialized_end=220, -) -_sym_db.RegisterEnumDescriptor(_SHAREDSETSTATUSENUM_SHAREDSETSTATUS) - - -_SHAREDSETSTATUSENUM = _descriptor.Descriptor( - name='SharedSetStatusEnum', - full_name='google.ads.googleads.v1.enums.SharedSetStatusEnum', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - _SHAREDSETSTATUSENUM_SHAREDSETSTATUS, - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=124, - serialized_end=220, -) - -_SHAREDSETSTATUSENUM_SHAREDSETSTATUS.containing_type = _SHAREDSETSTATUSENUM -DESCRIPTOR.message_types_by_name['SharedSetStatusEnum'] = _SHAREDSETSTATUSENUM -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -SharedSetStatusEnum = _reflection.GeneratedProtocolMessageType('SharedSetStatusEnum', (_message.Message,), dict( - DESCRIPTOR = _SHAREDSETSTATUSENUM, - __module__ = 'google.ads.googleads_v1.proto.enums.shared_set_status_pb2' - , - __doc__ = """Container for enum describing types of shared set statuses. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.enums.SharedSetStatusEnum) - )) -_sym_db.RegisterMessage(SharedSetStatusEnum) - - -DESCRIPTOR._options = None -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/enums/shared_set_type_pb2.py b/google/ads/google_ads/v1/proto/enums/shared_set_type_pb2.py deleted file mode 100644 index 0cf32adaa..000000000 --- a/google/ads/google_ads/v1/proto/enums/shared_set_type_pb2.py +++ /dev/null @@ -1,101 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/enums/shared_set_type.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/enums/shared_set_type.proto', - package='google.ads.googleads.v1.enums', - syntax='proto3', - serialized_options=_b('\n!com.google.ads.googleads.v1.enumsB\022SharedSetTypeProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v1/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V1.Enums\312\002\035Google\\Ads\\GoogleAds\\V1\\Enums\352\002!Google::Ads::GoogleAds::V1::Enums'), - serialized_pb=_b('\n9google/ads/googleads_v1/proto/enums/shared_set_type.proto\x12\x1dgoogle.ads.googleads.v1.enums\x1a\x1cgoogle/api/annotations.proto\"r\n\x11SharedSetTypeEnum\"]\n\rSharedSetType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x15\n\x11NEGATIVE_KEYWORDS\x10\x02\x12\x17\n\x13NEGATIVE_PLACEMENTS\x10\x03\x42\xe7\x01\n!com.google.ads.googleads.v1.enumsB\x12SharedSetTypeProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v1/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V1.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V1\\Enums\xea\x02!Google::Ads::GoogleAds::V1::Enumsb\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - -_SHAREDSETTYPEENUM_SHAREDSETTYPE = _descriptor.EnumDescriptor( - name='SharedSetType', - full_name='google.ads.googleads.v1.enums.SharedSetTypeEnum.SharedSetType', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='UNSPECIFIED', index=0, number=0, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='UNKNOWN', index=1, number=1, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='NEGATIVE_KEYWORDS', index=2, number=2, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='NEGATIVE_PLACEMENTS', index=3, number=3, - serialized_options=None, - type=None), - ], - containing_type=None, - serialized_options=None, - serialized_start=143, - serialized_end=236, -) -_sym_db.RegisterEnumDescriptor(_SHAREDSETTYPEENUM_SHAREDSETTYPE) - - -_SHAREDSETTYPEENUM = _descriptor.Descriptor( - name='SharedSetTypeEnum', - full_name='google.ads.googleads.v1.enums.SharedSetTypeEnum', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - _SHAREDSETTYPEENUM_SHAREDSETTYPE, - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=122, - serialized_end=236, -) - -_SHAREDSETTYPEENUM_SHAREDSETTYPE.containing_type = _SHAREDSETTYPEENUM -DESCRIPTOR.message_types_by_name['SharedSetTypeEnum'] = _SHAREDSETTYPEENUM -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -SharedSetTypeEnum = _reflection.GeneratedProtocolMessageType('SharedSetTypeEnum', (_message.Message,), dict( - DESCRIPTOR = _SHAREDSETTYPEENUM, - __module__ = 'google.ads.googleads_v1.proto.enums.shared_set_type_pb2' - , - __doc__ = """Container for enum describing types of shared sets. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.enums.SharedSetTypeEnum) - )) -_sym_db.RegisterMessage(SharedSetTypeEnum) - - -DESCRIPTOR._options = None -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/enums/simulation_type_pb2.py b/google/ads/google_ads/v1/proto/enums/simulation_type_pb2.py deleted file mode 100644 index 01e7e1119..000000000 --- a/google/ads/google_ads/v1/proto/enums/simulation_type_pb2.py +++ /dev/null @@ -1,109 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/enums/simulation_type.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/enums/simulation_type.proto', - package='google.ads.googleads.v1.enums', - syntax='proto3', - serialized_options=_b('\n!com.google.ads.googleads.v1.enumsB\023SimulationTypeProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v1/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V1.Enums\312\002\035Google\\Ads\\GoogleAds\\V1\\Enums\352\002!Google::Ads::GoogleAds::V1::Enums'), - serialized_pb=_b('\n9google/ads/googleads_v1/proto/enums/simulation_type.proto\x12\x1dgoogle.ads.googleads.v1.enums\x1a\x1cgoogle/api/annotations.proto\"\x80\x01\n\x12SimulationTypeEnum\"j\n\x0eSimulationType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0b\n\x07\x43PC_BID\x10\x02\x12\x0b\n\x07\x43PV_BID\x10\x03\x12\x0e\n\nTARGET_CPA\x10\x04\x12\x10\n\x0c\x42ID_MODIFIER\x10\x05\x42\xe8\x01\n!com.google.ads.googleads.v1.enumsB\x13SimulationTypeProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v1/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V1.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V1\\Enums\xea\x02!Google::Ads::GoogleAds::V1::Enumsb\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - -_SIMULATIONTYPEENUM_SIMULATIONTYPE = _descriptor.EnumDescriptor( - name='SimulationType', - full_name='google.ads.googleads.v1.enums.SimulationTypeEnum.SimulationType', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='UNSPECIFIED', index=0, number=0, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='UNKNOWN', index=1, number=1, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='CPC_BID', index=2, number=2, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='CPV_BID', index=3, number=3, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='TARGET_CPA', index=4, number=4, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='BID_MODIFIER', index=5, number=5, - serialized_options=None, - type=None), - ], - containing_type=None, - serialized_options=None, - serialized_start=145, - serialized_end=251, -) -_sym_db.RegisterEnumDescriptor(_SIMULATIONTYPEENUM_SIMULATIONTYPE) - - -_SIMULATIONTYPEENUM = _descriptor.Descriptor( - name='SimulationTypeEnum', - full_name='google.ads.googleads.v1.enums.SimulationTypeEnum', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - _SIMULATIONTYPEENUM_SIMULATIONTYPE, - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=123, - serialized_end=251, -) - -_SIMULATIONTYPEENUM_SIMULATIONTYPE.containing_type = _SIMULATIONTYPEENUM -DESCRIPTOR.message_types_by_name['SimulationTypeEnum'] = _SIMULATIONTYPEENUM -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -SimulationTypeEnum = _reflection.GeneratedProtocolMessageType('SimulationTypeEnum', (_message.Message,), dict( - DESCRIPTOR = _SIMULATIONTYPEENUM, - __module__ = 'google.ads.googleads_v1.proto.enums.simulation_type_pb2' - , - __doc__ = """Container for enum describing the field a simulation modifies. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.enums.SimulationTypeEnum) - )) -_sym_db.RegisterMessage(SimulationTypeEnum) - - -DESCRIPTOR._options = None -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/enums/spending_limit_type_pb2.py b/google/ads/google_ads/v1/proto/enums/spending_limit_type_pb2.py deleted file mode 100644 index 8221a861c..000000000 --- a/google/ads/google_ads/v1/proto/enums/spending_limit_type_pb2.py +++ /dev/null @@ -1,97 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/enums/spending_limit_type.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/enums/spending_limit_type.proto', - package='google.ads.googleads.v1.enums', - syntax='proto3', - serialized_options=_b('\n!com.google.ads.googleads.v1.enumsB\026SpendingLimitTypeProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v1/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V1.Enums\312\002\035Google\\Ads\\GoogleAds\\V1\\Enums\352\002!Google::Ads::GoogleAds::V1::Enums'), - serialized_pb=_b('\n=google/ads/googleads_v1/proto/enums/spending_limit_type.proto\x12\x1dgoogle.ads.googleads.v1.enums\x1a\x1cgoogle/api/annotations.proto\"X\n\x15SpendingLimitTypeEnum\"?\n\x11SpendingLimitType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0c\n\x08INFINITE\x10\x02\x42\xeb\x01\n!com.google.ads.googleads.v1.enumsB\x16SpendingLimitTypeProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v1/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V1.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V1\\Enums\xea\x02!Google::Ads::GoogleAds::V1::Enumsb\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - -_SPENDINGLIMITTYPEENUM_SPENDINGLIMITTYPE = _descriptor.EnumDescriptor( - name='SpendingLimitType', - full_name='google.ads.googleads.v1.enums.SpendingLimitTypeEnum.SpendingLimitType', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='UNSPECIFIED', index=0, number=0, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='UNKNOWN', index=1, number=1, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='INFINITE', index=2, number=2, - serialized_options=None, - type=None), - ], - containing_type=None, - serialized_options=None, - serialized_start=151, - serialized_end=214, -) -_sym_db.RegisterEnumDescriptor(_SPENDINGLIMITTYPEENUM_SPENDINGLIMITTYPE) - - -_SPENDINGLIMITTYPEENUM = _descriptor.Descriptor( - name='SpendingLimitTypeEnum', - full_name='google.ads.googleads.v1.enums.SpendingLimitTypeEnum', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - _SPENDINGLIMITTYPEENUM_SPENDINGLIMITTYPE, - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=126, - serialized_end=214, -) - -_SPENDINGLIMITTYPEENUM_SPENDINGLIMITTYPE.containing_type = _SPENDINGLIMITTYPEENUM -DESCRIPTOR.message_types_by_name['SpendingLimitTypeEnum'] = _SPENDINGLIMITTYPEENUM -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -SpendingLimitTypeEnum = _reflection.GeneratedProtocolMessageType('SpendingLimitTypeEnum', (_message.Message,), dict( - DESCRIPTOR = _SPENDINGLIMITTYPEENUM, - __module__ = 'google.ads.googleads_v1.proto.enums.spending_limit_type_pb2' - , - __doc__ = """Message describing spending limit types. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.enums.SpendingLimitTypeEnum) - )) -_sym_db.RegisterMessage(SpendingLimitTypeEnum) - - -DESCRIPTOR._options = None -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/enums/system_managed_entity_source_pb2.py b/google/ads/google_ads/v1/proto/enums/system_managed_entity_source_pb2.py deleted file mode 100644 index 3fc64fad0..000000000 --- a/google/ads/google_ads/v1/proto/enums/system_managed_entity_source_pb2.py +++ /dev/null @@ -1,97 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/enums/system_managed_entity_source.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/enums/system_managed_entity_source.proto', - package='google.ads.googleads.v1.enums', - syntax='proto3', - serialized_options=_b('\n!com.google.ads.googleads.v1.enumsB\036SystemManagedEntitySourceProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v1/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V1.Enums\312\002\035Google\\Ads\\GoogleAds\\V1\\Enums\352\002!Google::Ads::GoogleAds::V1::Enums'), - serialized_pb=_b('\nFgoogle/ads/googleads_v1/proto/enums/system_managed_entity_source.proto\x12\x1dgoogle.ads.googleads.v1.enums\x1a\x1cgoogle/api/annotations.proto\"q\n\x1fSystemManagedResourceSourceEnum\"N\n\x1bSystemManagedResourceSource\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x11\n\rAD_VARIATIONS\x10\x02\x42\xf3\x01\n!com.google.ads.googleads.v1.enumsB\x1eSystemManagedEntitySourceProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v1/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V1.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V1\\Enums\xea\x02!Google::Ads::GoogleAds::V1::Enumsb\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - -_SYSTEMMANAGEDRESOURCESOURCEENUM_SYSTEMMANAGEDRESOURCESOURCE = _descriptor.EnumDescriptor( - name='SystemManagedResourceSource', - full_name='google.ads.googleads.v1.enums.SystemManagedResourceSourceEnum.SystemManagedResourceSource', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='UNSPECIFIED', index=0, number=0, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='UNKNOWN', index=1, number=1, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='AD_VARIATIONS', index=2, number=2, - serialized_options=None, - type=None), - ], - containing_type=None, - serialized_options=None, - serialized_start=170, - serialized_end=248, -) -_sym_db.RegisterEnumDescriptor(_SYSTEMMANAGEDRESOURCESOURCEENUM_SYSTEMMANAGEDRESOURCESOURCE) - - -_SYSTEMMANAGEDRESOURCESOURCEENUM = _descriptor.Descriptor( - name='SystemManagedResourceSourceEnum', - full_name='google.ads.googleads.v1.enums.SystemManagedResourceSourceEnum', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - _SYSTEMMANAGEDRESOURCESOURCEENUM_SYSTEMMANAGEDRESOURCESOURCE, - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=135, - serialized_end=248, -) - -_SYSTEMMANAGEDRESOURCESOURCEENUM_SYSTEMMANAGEDRESOURCESOURCE.containing_type = _SYSTEMMANAGEDRESOURCESOURCEENUM -DESCRIPTOR.message_types_by_name['SystemManagedResourceSourceEnum'] = _SYSTEMMANAGEDRESOURCESOURCEENUM -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -SystemManagedResourceSourceEnum = _reflection.GeneratedProtocolMessageType('SystemManagedResourceSourceEnum', (_message.Message,), dict( - DESCRIPTOR = _SYSTEMMANAGEDRESOURCESOURCEENUM, - __module__ = 'google.ads.googleads_v1.proto.enums.system_managed_entity_source_pb2' - , - __doc__ = """Container for enum describing possible system managed entity sources. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.enums.SystemManagedResourceSourceEnum) - )) -_sym_db.RegisterMessage(SystemManagedResourceSourceEnum) - - -DESCRIPTOR._options = None -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/enums/time_type_pb2.py b/google/ads/google_ads/v1/proto/enums/time_type_pb2.py deleted file mode 100644 index 2970f49b8..000000000 --- a/google/ads/google_ads/v1/proto/enums/time_type_pb2.py +++ /dev/null @@ -1,101 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/enums/time_type.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/enums/time_type.proto', - package='google.ads.googleads.v1.enums', - syntax='proto3', - serialized_options=_b('\n!com.google.ads.googleads.v1.enumsB\rTimeTypeProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v1/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V1.Enums\312\002\035Google\\Ads\\GoogleAds\\V1\\Enums\352\002!Google::Ads::GoogleAds::V1::Enums'), - serialized_pb=_b('\n3google/ads/googleads_v1/proto/enums/time_type.proto\x12\x1dgoogle.ads.googleads.v1.enums\x1a\x1cgoogle/api/annotations.proto\"N\n\x0cTimeTypeEnum\">\n\x08TimeType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x07\n\x03NOW\x10\x02\x12\x0b\n\x07\x46OREVER\x10\x03\x42\xe2\x01\n!com.google.ads.googleads.v1.enumsB\rTimeTypeProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v1/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V1.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V1\\Enums\xea\x02!Google::Ads::GoogleAds::V1::Enumsb\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - -_TIMETYPEENUM_TIMETYPE = _descriptor.EnumDescriptor( - name='TimeType', - full_name='google.ads.googleads.v1.enums.TimeTypeEnum.TimeType', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='UNSPECIFIED', index=0, number=0, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='UNKNOWN', index=1, number=1, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='NOW', index=2, number=2, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='FOREVER', index=3, number=3, - serialized_options=None, - type=None), - ], - containing_type=None, - serialized_options=None, - serialized_start=132, - serialized_end=194, -) -_sym_db.RegisterEnumDescriptor(_TIMETYPEENUM_TIMETYPE) - - -_TIMETYPEENUM = _descriptor.Descriptor( - name='TimeTypeEnum', - full_name='google.ads.googleads.v1.enums.TimeTypeEnum', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - _TIMETYPEENUM_TIMETYPE, - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=116, - serialized_end=194, -) - -_TIMETYPEENUM_TIMETYPE.containing_type = _TIMETYPEENUM -DESCRIPTOR.message_types_by_name['TimeTypeEnum'] = _TIMETYPEENUM -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -TimeTypeEnum = _reflection.GeneratedProtocolMessageType('TimeTypeEnum', (_message.Message,), dict( - DESCRIPTOR = _TIMETYPEENUM, - __module__ = 'google.ads.googleads_v1.proto.enums.time_type_pb2' - , - __doc__ = """Message describing time types. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.enums.TimeTypeEnum) - )) -_sym_db.RegisterMessage(TimeTypeEnum) - - -DESCRIPTOR._options = None -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/enums/tracking_code_page_format_pb2.py b/google/ads/google_ads/v1/proto/enums/tracking_code_page_format_pb2.py deleted file mode 100644 index b3fd40af5..000000000 --- a/google/ads/google_ads/v1/proto/enums/tracking_code_page_format_pb2.py +++ /dev/null @@ -1,102 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/enums/tracking_code_page_format.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/enums/tracking_code_page_format.proto', - package='google.ads.googleads.v1.enums', - syntax='proto3', - serialized_options=_b('\n!com.google.ads.googleads.v1.enumsB\033TrackingCodePageFormatProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v1/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V1.Enums\312\002\035Google\\Ads\\GoogleAds\\V1\\Enums\352\002!Google::Ads::GoogleAds::V1::Enums'), - serialized_pb=_b('\nCgoogle/ads/googleads_v1/proto/enums/tracking_code_page_format.proto\x12\x1dgoogle.ads.googleads.v1.enums\x1a\x1cgoogle/api/annotations.proto\"g\n\x1aTrackingCodePageFormatEnum\"I\n\x16TrackingCodePageFormat\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x08\n\x04HTML\x10\x02\x12\x07\n\x03\x41MP\x10\x03\x42\xf0\x01\n!com.google.ads.googleads.v1.enumsB\x1bTrackingCodePageFormatProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v1/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V1.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V1\\Enums\xea\x02!Google::Ads::GoogleAds::V1::Enumsb\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - -_TRACKINGCODEPAGEFORMATENUM_TRACKINGCODEPAGEFORMAT = _descriptor.EnumDescriptor( - name='TrackingCodePageFormat', - full_name='google.ads.googleads.v1.enums.TrackingCodePageFormatEnum.TrackingCodePageFormat', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='UNSPECIFIED', index=0, number=0, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='UNKNOWN', index=1, number=1, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='HTML', index=2, number=2, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='AMP', index=3, number=3, - serialized_options=None, - type=None), - ], - containing_type=None, - serialized_options=None, - serialized_start=162, - serialized_end=235, -) -_sym_db.RegisterEnumDescriptor(_TRACKINGCODEPAGEFORMATENUM_TRACKINGCODEPAGEFORMAT) - - -_TRACKINGCODEPAGEFORMATENUM = _descriptor.Descriptor( - name='TrackingCodePageFormatEnum', - full_name='google.ads.googleads.v1.enums.TrackingCodePageFormatEnum', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - _TRACKINGCODEPAGEFORMATENUM_TRACKINGCODEPAGEFORMAT, - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=132, - serialized_end=235, -) - -_TRACKINGCODEPAGEFORMATENUM_TRACKINGCODEPAGEFORMAT.containing_type = _TRACKINGCODEPAGEFORMATENUM -DESCRIPTOR.message_types_by_name['TrackingCodePageFormatEnum'] = _TRACKINGCODEPAGEFORMATENUM -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -TrackingCodePageFormatEnum = _reflection.GeneratedProtocolMessageType('TrackingCodePageFormatEnum', (_message.Message,), dict( - DESCRIPTOR = _TRACKINGCODEPAGEFORMATENUM, - __module__ = 'google.ads.googleads_v1.proto.enums.tracking_code_page_format_pb2' - , - __doc__ = """Container for enum describing the format of the web page where the - tracking tag and snippet will be installed. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.enums.TrackingCodePageFormatEnum) - )) -_sym_db.RegisterMessage(TrackingCodePageFormatEnum) - - -DESCRIPTOR._options = None -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/enums/tracking_code_type_pb2.py b/google/ads/google_ads/v1/proto/enums/tracking_code_type_pb2.py deleted file mode 100644 index b4fab48cb..000000000 --- a/google/ads/google_ads/v1/proto/enums/tracking_code_type_pb2.py +++ /dev/null @@ -1,106 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/enums/tracking_code_type.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/enums/tracking_code_type.proto', - package='google.ads.googleads.v1.enums', - syntax='proto3', - serialized_options=_b('\n!com.google.ads.googleads.v1.enumsB\025TrackingCodeTypeProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v1/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V1.Enums\312\002\035Google\\Ads\\GoogleAds\\V1\\Enums\352\002!Google::Ads::GoogleAds::V1::Enums'), - serialized_pb=_b('\ngoogle/ads/googleads_v1/proto/errors/authorization_error.proto\x12\x1egoogle.ads.googleads.v1.errors\x1a\x1cgoogle/api/annotations.proto\"\xdb\x02\n\x16\x41uthorizationErrorEnum\"\xc0\x02\n\x12\x41uthorizationError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x1a\n\x16USER_PERMISSION_DENIED\x10\x02\x12#\n\x1f\x44\x45VELOPER_TOKEN_NOT_WHITELISTED\x10\x03\x12\x1e\n\x1a\x44\x45VELOPER_TOKEN_PROHIBITED\x10\x04\x12\x14\n\x10PROJECT_DISABLED\x10\x05\x12\x17\n\x13\x41UTHORIZATION_ERROR\x10\x06\x12\x18\n\x14\x41\x43TION_NOT_PERMITTED\x10\x07\x12\x15\n\x11INCOMPLETE_SIGNUP\x10\x08\x12\x18\n\x14\x43USTOMER_NOT_ENABLED\x10\x18\x12\x0f\n\x0bMISSING_TOS\x10\t\x12 \n\x1c\x44\x45VELOPER_TOKEN_NOT_APPROVED\x10\nB\xf2\x01\n\"com.google.ads.googleads.v1.errorsB\x17\x41uthorizationErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V1.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V1\\Errors\xea\x02\"Google::Ads::GoogleAds::V1::Errorsb\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - -_AUTHORIZATIONERRORENUM_AUTHORIZATIONERROR = _descriptor.EnumDescriptor( - name='AuthorizationError', - full_name='google.ads.googleads.v1.errors.AuthorizationErrorEnum.AuthorizationError', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='UNSPECIFIED', index=0, number=0, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='UNKNOWN', index=1, number=1, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='USER_PERMISSION_DENIED', index=2, number=2, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='DEVELOPER_TOKEN_NOT_WHITELISTED', index=3, number=3, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='DEVELOPER_TOKEN_PROHIBITED', index=4, number=4, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='PROJECT_DISABLED', index=5, number=5, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='AUTHORIZATION_ERROR', index=6, number=6, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='ACTION_NOT_PERMITTED', index=7, number=7, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='INCOMPLETE_SIGNUP', index=8, number=8, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='CUSTOMER_NOT_ENABLED', index=9, number=24, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='MISSING_TOS', index=10, number=9, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='DEVELOPER_TOKEN_NOT_APPROVED', index=11, number=10, - serialized_options=None, - type=None), - ], - containing_type=None, - serialized_options=None, - serialized_start=156, - serialized_end=476, -) -_sym_db.RegisterEnumDescriptor(_AUTHORIZATIONERRORENUM_AUTHORIZATIONERROR) - - -_AUTHORIZATIONERRORENUM = _descriptor.Descriptor( - name='AuthorizationErrorEnum', - full_name='google.ads.googleads.v1.errors.AuthorizationErrorEnum', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - _AUTHORIZATIONERRORENUM_AUTHORIZATIONERROR, - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=129, - serialized_end=476, -) - -_AUTHORIZATIONERRORENUM_AUTHORIZATIONERROR.containing_type = _AUTHORIZATIONERRORENUM -DESCRIPTOR.message_types_by_name['AuthorizationErrorEnum'] = _AUTHORIZATIONERRORENUM -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -AuthorizationErrorEnum = _reflection.GeneratedProtocolMessageType('AuthorizationErrorEnum', (_message.Message,), dict( - DESCRIPTOR = _AUTHORIZATIONERRORENUM, - __module__ = 'google.ads.googleads_v1.proto.errors.authorization_error_pb2' - , - __doc__ = """Container for enum describing possible authorization errors. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.errors.AuthorizationErrorEnum) - )) -_sym_db.RegisterMessage(AuthorizationErrorEnum) - - -DESCRIPTOR._options = None -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/errors/campaign_feed_error_pb2.py b/google/ads/google_ads/v1/proto/errors/campaign_feed_error_pb2.py deleted file mode 100644 index 04184c431..000000000 --- a/google/ads/google_ads/v1/proto/errors/campaign_feed_error_pb2.py +++ /dev/null @@ -1,117 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/errors/campaign_feed_error.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/errors/campaign_feed_error.proto', - package='google.ads.googleads.v1.errors', - syntax='proto3', - serialized_options=_b('\n\"com.google.ads.googleads.v1.errorsB\026CampaignFeedErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V1.Errors\312\002\036Google\\Ads\\GoogleAds\\V1\\Errors\352\002\"Google::Ads::GoogleAds::V1::Errors'), - serialized_pb=_b('\n>google/ads/googleads_v1/proto/errors/campaign_feed_error.proto\x12\x1egoogle.ads.googleads.v1.errors\x1a\x1cgoogle/api/annotations.proto\"\xc4\x02\n\x15\x43\x61mpaignFeedErrorEnum\"\xaa\x02\n\x11\x43\x61mpaignFeedError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12,\n(FEED_ALREADY_EXISTS_FOR_PLACEHOLDER_TYPE\x10\x02\x12\"\n\x1e\x43\x41NNOT_CREATE_FOR_REMOVED_FEED\x10\x04\x12\x30\n,CANNOT_CREATE_ALREADY_EXISTING_CAMPAIGN_FEED\x10\x05\x12\'\n#CANNOT_MODIFY_REMOVED_CAMPAIGN_FEED\x10\x06\x12\x1c\n\x18INVALID_PLACEHOLDER_TYPE\x10\x07\x12,\n(MISSING_FEEDMAPPING_FOR_PLACEHOLDER_TYPE\x10\x08\x42\xf1\x01\n\"com.google.ads.googleads.v1.errorsB\x16\x43\x61mpaignFeedErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V1.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V1\\Errors\xea\x02\"Google::Ads::GoogleAds::V1::Errorsb\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - -_CAMPAIGNFEEDERRORENUM_CAMPAIGNFEEDERROR = _descriptor.EnumDescriptor( - name='CampaignFeedError', - full_name='google.ads.googleads.v1.errors.CampaignFeedErrorEnum.CampaignFeedError', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='UNSPECIFIED', index=0, number=0, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='UNKNOWN', index=1, number=1, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='FEED_ALREADY_EXISTS_FOR_PLACEHOLDER_TYPE', index=2, number=2, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='CANNOT_CREATE_FOR_REMOVED_FEED', index=3, number=4, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='CANNOT_CREATE_ALREADY_EXISTING_CAMPAIGN_FEED', index=4, number=5, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='CANNOT_MODIFY_REMOVED_CAMPAIGN_FEED', index=5, number=6, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='INVALID_PLACEHOLDER_TYPE', index=6, number=7, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='MISSING_FEEDMAPPING_FOR_PLACEHOLDER_TYPE', index=7, number=8, - serialized_options=None, - type=None), - ], - containing_type=None, - serialized_options=None, - serialized_start=155, - serialized_end=453, -) -_sym_db.RegisterEnumDescriptor(_CAMPAIGNFEEDERRORENUM_CAMPAIGNFEEDERROR) - - -_CAMPAIGNFEEDERRORENUM = _descriptor.Descriptor( - name='CampaignFeedErrorEnum', - full_name='google.ads.googleads.v1.errors.CampaignFeedErrorEnum', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - _CAMPAIGNFEEDERRORENUM_CAMPAIGNFEEDERROR, - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=129, - serialized_end=453, -) - -_CAMPAIGNFEEDERRORENUM_CAMPAIGNFEEDERROR.containing_type = _CAMPAIGNFEEDERRORENUM -DESCRIPTOR.message_types_by_name['CampaignFeedErrorEnum'] = _CAMPAIGNFEEDERRORENUM -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -CampaignFeedErrorEnum = _reflection.GeneratedProtocolMessageType('CampaignFeedErrorEnum', (_message.Message,), dict( - DESCRIPTOR = _CAMPAIGNFEEDERRORENUM, - __module__ = 'google.ads.googleads_v1.proto.errors.campaign_feed_error_pb2' - , - __doc__ = """Container for enum describing possible campaign feed errors. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.errors.CampaignFeedErrorEnum) - )) -_sym_db.RegisterMessage(CampaignFeedErrorEnum) - - -DESCRIPTOR._options = None -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/errors/campaign_shared_set_error_pb2.py b/google/ads/google_ads/v1/proto/errors/campaign_shared_set_error_pb2.py deleted file mode 100644 index 48c57a5db..000000000 --- a/google/ads/google_ads/v1/proto/errors/campaign_shared_set_error_pb2.py +++ /dev/null @@ -1,97 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/errors/campaign_shared_set_error.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/errors/campaign_shared_set_error.proto', - package='google.ads.googleads.v1.errors', - syntax='proto3', - serialized_options=_b('\n\"com.google.ads.googleads.v1.errorsB\033CampaignSharedSetErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V1.Errors\312\002\036Google\\Ads\\GoogleAds\\V1\\Errors\352\002\"Google::Ads::GoogleAds::V1::Errors'), - serialized_pb=_b('\nDgoogle/ads/googleads_v1/proto/errors/campaign_shared_set_error.proto\x12\x1egoogle.ads.googleads.v1.errors\x1a\x1cgoogle/api/annotations.proto\"r\n\x1a\x43\x61mpaignSharedSetErrorEnum\"T\n\x16\x43\x61mpaignSharedSetError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x1c\n\x18SHARED_SET_ACCESS_DENIED\x10\x02\x42\xf6\x01\n\"com.google.ads.googleads.v1.errorsB\x1b\x43\x61mpaignSharedSetErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V1.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V1\\Errors\xea\x02\"Google::Ads::GoogleAds::V1::Errorsb\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - -_CAMPAIGNSHAREDSETERRORENUM_CAMPAIGNSHAREDSETERROR = _descriptor.EnumDescriptor( - name='CampaignSharedSetError', - full_name='google.ads.googleads.v1.errors.CampaignSharedSetErrorEnum.CampaignSharedSetError', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='UNSPECIFIED', index=0, number=0, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='UNKNOWN', index=1, number=1, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='SHARED_SET_ACCESS_DENIED', index=2, number=2, - serialized_options=None, - type=None), - ], - containing_type=None, - serialized_options=None, - serialized_start=164, - serialized_end=248, -) -_sym_db.RegisterEnumDescriptor(_CAMPAIGNSHAREDSETERRORENUM_CAMPAIGNSHAREDSETERROR) - - -_CAMPAIGNSHAREDSETERRORENUM = _descriptor.Descriptor( - name='CampaignSharedSetErrorEnum', - full_name='google.ads.googleads.v1.errors.CampaignSharedSetErrorEnum', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - _CAMPAIGNSHAREDSETERRORENUM_CAMPAIGNSHAREDSETERROR, - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=134, - serialized_end=248, -) - -_CAMPAIGNSHAREDSETERRORENUM_CAMPAIGNSHAREDSETERROR.containing_type = _CAMPAIGNSHAREDSETERRORENUM -DESCRIPTOR.message_types_by_name['CampaignSharedSetErrorEnum'] = _CAMPAIGNSHAREDSETERRORENUM -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -CampaignSharedSetErrorEnum = _reflection.GeneratedProtocolMessageType('CampaignSharedSetErrorEnum', (_message.Message,), dict( - DESCRIPTOR = _CAMPAIGNSHAREDSETERRORENUM, - __module__ = 'google.ads.googleads_v1.proto.errors.campaign_shared_set_error_pb2' - , - __doc__ = """Container for enum describing possible campaign shared set errors. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.errors.CampaignSharedSetErrorEnum) - )) -_sym_db.RegisterMessage(CampaignSharedSetErrorEnum) - - -DESCRIPTOR._options = None -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/errors/change_status_error_pb2.py b/google/ads/google_ads/v1/proto/errors/change_status_error_pb2.py deleted file mode 100644 index b116ea9f8..000000000 --- a/google/ads/google_ads/v1/proto/errors/change_status_error_pb2.py +++ /dev/null @@ -1,97 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/errors/change_status_error.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/errors/change_status_error.proto', - package='google.ads.googleads.v1.errors', - syntax='proto3', - serialized_options=_b('\n\"com.google.ads.googleads.v1.errorsB\026ChangeStatusErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V1.Errors\312\002\036Google\\Ads\\GoogleAds\\V1\\Errors\352\002\"Google::Ads::GoogleAds::V1::Errors'), - serialized_pb=_b('\n>google/ads/googleads_v1/proto/errors/change_status_error.proto\x12\x1egoogle.ads.googleads.v1.errors\x1a\x1cgoogle/api/annotations.proto\"b\n\x15\x43hangeStatusErrorEnum\"I\n\x11\x43hangeStatusError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x16\n\x12START_DATE_TOO_OLD\x10\x03\x42\xf1\x01\n\"com.google.ads.googleads.v1.errorsB\x16\x43hangeStatusErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V1.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V1\\Errors\xea\x02\"Google::Ads::GoogleAds::V1::Errorsb\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - -_CHANGESTATUSERRORENUM_CHANGESTATUSERROR = _descriptor.EnumDescriptor( - name='ChangeStatusError', - full_name='google.ads.googleads.v1.errors.ChangeStatusErrorEnum.ChangeStatusError', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='UNSPECIFIED', index=0, number=0, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='UNKNOWN', index=1, number=1, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='START_DATE_TOO_OLD', index=2, number=3, - serialized_options=None, - type=None), - ], - containing_type=None, - serialized_options=None, - serialized_start=153, - serialized_end=226, -) -_sym_db.RegisterEnumDescriptor(_CHANGESTATUSERRORENUM_CHANGESTATUSERROR) - - -_CHANGESTATUSERRORENUM = _descriptor.Descriptor( - name='ChangeStatusErrorEnum', - full_name='google.ads.googleads.v1.errors.ChangeStatusErrorEnum', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - _CHANGESTATUSERRORENUM_CHANGESTATUSERROR, - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=128, - serialized_end=226, -) - -_CHANGESTATUSERRORENUM_CHANGESTATUSERROR.containing_type = _CHANGESTATUSERRORENUM -DESCRIPTOR.message_types_by_name['ChangeStatusErrorEnum'] = _CHANGESTATUSERRORENUM -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -ChangeStatusErrorEnum = _reflection.GeneratedProtocolMessageType('ChangeStatusErrorEnum', (_message.Message,), dict( - DESCRIPTOR = _CHANGESTATUSERRORENUM, - __module__ = 'google.ads.googleads_v1.proto.errors.change_status_error_pb2' - , - __doc__ = """Container for enum describing possible change status errors. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.errors.ChangeStatusErrorEnum) - )) -_sym_db.RegisterMessage(ChangeStatusErrorEnum) - - -DESCRIPTOR._options = None -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/errors/collection_size_error_pb2.py b/google/ads/google_ads/v1/proto/errors/collection_size_error_pb2.py deleted file mode 100644 index 991d64bdc..000000000 --- a/google/ads/google_ads/v1/proto/errors/collection_size_error_pb2.py +++ /dev/null @@ -1,101 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/errors/collection_size_error.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/errors/collection_size_error.proto', - package='google.ads.googleads.v1.errors', - syntax='proto3', - serialized_options=_b('\n\"com.google.ads.googleads.v1.errorsB\030CollectionSizeErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V1.Errors\312\002\036Google\\Ads\\GoogleAds\\V1\\Errors\352\002\"Google::Ads::GoogleAds::V1::Errors'), - serialized_pb=_b('\n@google/ads/googleads_v1/proto/errors/collection_size_error.proto\x12\x1egoogle.ads.googleads.v1.errors\x1a\x1cgoogle/api/annotations.proto\"i\n\x17\x43ollectionSizeErrorEnum\"N\n\x13\x43ollectionSizeError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0b\n\x07TOO_FEW\x10\x02\x12\x0c\n\x08TOO_MANY\x10\x03\x42\xf3\x01\n\"com.google.ads.googleads.v1.errorsB\x18\x43ollectionSizeErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V1.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V1\\Errors\xea\x02\"Google::Ads::GoogleAds::V1::Errorsb\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - -_COLLECTIONSIZEERRORENUM_COLLECTIONSIZEERROR = _descriptor.EnumDescriptor( - name='CollectionSizeError', - full_name='google.ads.googleads.v1.errors.CollectionSizeErrorEnum.CollectionSizeError', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='UNSPECIFIED', index=0, number=0, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='UNKNOWN', index=1, number=1, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='TOO_FEW', index=2, number=2, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='TOO_MANY', index=3, number=3, - serialized_options=None, - type=None), - ], - containing_type=None, - serialized_options=None, - serialized_start=157, - serialized_end=235, -) -_sym_db.RegisterEnumDescriptor(_COLLECTIONSIZEERRORENUM_COLLECTIONSIZEERROR) - - -_COLLECTIONSIZEERRORENUM = _descriptor.Descriptor( - name='CollectionSizeErrorEnum', - full_name='google.ads.googleads.v1.errors.CollectionSizeErrorEnum', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - _COLLECTIONSIZEERRORENUM_COLLECTIONSIZEERROR, - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=130, - serialized_end=235, -) - -_COLLECTIONSIZEERRORENUM_COLLECTIONSIZEERROR.containing_type = _COLLECTIONSIZEERRORENUM -DESCRIPTOR.message_types_by_name['CollectionSizeErrorEnum'] = _COLLECTIONSIZEERRORENUM -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -CollectionSizeErrorEnum = _reflection.GeneratedProtocolMessageType('CollectionSizeErrorEnum', (_message.Message,), dict( - DESCRIPTOR = _COLLECTIONSIZEERRORENUM, - __module__ = 'google.ads.googleads_v1.proto.errors.collection_size_error_pb2' - , - __doc__ = """Container for enum describing possible collection size errors. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.errors.CollectionSizeErrorEnum) - )) -_sym_db.RegisterMessage(CollectionSizeErrorEnum) - - -DESCRIPTOR._options = None -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/errors/context_error_pb2.py b/google/ads/google_ads/v1/proto/errors/context_error_pb2.py deleted file mode 100644 index 1279b7c11..000000000 --- a/google/ads/google_ads/v1/proto/errors/context_error_pb2.py +++ /dev/null @@ -1,101 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/errors/context_error.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/errors/context_error.proto', - package='google.ads.googleads.v1.errors', - syntax='proto3', - serialized_options=_b('\n\"com.google.ads.googleads.v1.errorsB\021ContextErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V1.Errors\312\002\036Google\\Ads\\GoogleAds\\V1\\Errors\352\002\"Google::Ads::GoogleAds::V1::Errors'), - serialized_pb=_b('\n8google/ads/googleads_v1/proto/errors/context_error.proto\x12\x1egoogle.ads.googleads.v1.errors\x1a\x1cgoogle/api/annotations.proto\"\x9c\x01\n\x10\x43ontextErrorEnum\"\x87\x01\n\x0c\x43ontextError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\'\n#OPERATION_NOT_PERMITTED_FOR_CONTEXT\x10\x02\x12\x30\n,OPERATION_NOT_PERMITTED_FOR_REMOVED_RESOURCE\x10\x03\x42\xec\x01\n\"com.google.ads.googleads.v1.errorsB\x11\x43ontextErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V1.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V1\\Errors\xea\x02\"Google::Ads::GoogleAds::V1::Errorsb\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - -_CONTEXTERRORENUM_CONTEXTERROR = _descriptor.EnumDescriptor( - name='ContextError', - full_name='google.ads.googleads.v1.errors.ContextErrorEnum.ContextError', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='UNSPECIFIED', index=0, number=0, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='UNKNOWN', index=1, number=1, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='OPERATION_NOT_PERMITTED_FOR_CONTEXT', index=2, number=2, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='OPERATION_NOT_PERMITTED_FOR_REMOVED_RESOURCE', index=3, number=3, - serialized_options=None, - type=None), - ], - containing_type=None, - serialized_options=None, - serialized_start=144, - serialized_end=279, -) -_sym_db.RegisterEnumDescriptor(_CONTEXTERRORENUM_CONTEXTERROR) - - -_CONTEXTERRORENUM = _descriptor.Descriptor( - name='ContextErrorEnum', - full_name='google.ads.googleads.v1.errors.ContextErrorEnum', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - _CONTEXTERRORENUM_CONTEXTERROR, - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=123, - serialized_end=279, -) - -_CONTEXTERRORENUM_CONTEXTERROR.containing_type = _CONTEXTERRORENUM -DESCRIPTOR.message_types_by_name['ContextErrorEnum'] = _CONTEXTERRORENUM -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -ContextErrorEnum = _reflection.GeneratedProtocolMessageType('ContextErrorEnum', (_message.Message,), dict( - DESCRIPTOR = _CONTEXTERRORENUM, - __module__ = 'google.ads.googleads_v1.proto.errors.context_error_pb2' - , - __doc__ = """Container for enum describing possible context errors. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.errors.ContextErrorEnum) - )) -_sym_db.RegisterMessage(ContextErrorEnum) - - -DESCRIPTOR._options = None -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/errors/conversion_action_error_pb2.py b/google/ads/google_ads/v1/proto/errors/conversion_action_error_pb2.py deleted file mode 100644 index bb710204a..000000000 --- a/google/ads/google_ads/v1/proto/errors/conversion_action_error_pb2.py +++ /dev/null @@ -1,125 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/errors/conversion_action_error.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/errors/conversion_action_error.proto', - package='google.ads.googleads.v1.errors', - syntax='proto3', - serialized_options=_b('\n\"com.google.ads.googleads.v1.errorsB\032ConversionActionErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V1.Errors\312\002\036Google\\Ads\\GoogleAds\\V1\\Errors\352\002\"Google::Ads::GoogleAds::V1::Errors'), - serialized_pb=_b('\nBgoogle/ads/googleads_v1/proto/errors/conversion_action_error.proto\x12\x1egoogle.ads.googleads.v1.errors\x1a\x1cgoogle/api/annotations.proto\"\xef\x02\n\x19\x43onversionActionErrorEnum\"\xd1\x02\n\x15\x43onversionActionError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x12\n\x0e\x44UPLICATE_NAME\x10\x02\x12\x14\n\x10\x44UPLICATE_APP_ID\x10\x03\x12\x37\n3TWO_CONVERSION_ACTIONS_BIDDING_ON_SAME_APP_DOWNLOAD\x10\x04\x12\x31\n-BIDDING_ON_SAME_APP_DOWNLOAD_AS_GLOBAL_ACTION\x10\x05\x12)\n%DATA_DRIVEN_MODEL_WAS_NEVER_GENERATED\x10\x06\x12\x1d\n\x19\x44\x41TA_DRIVEN_MODEL_EXPIRED\x10\x07\x12\x1b\n\x17\x44\x41TA_DRIVEN_MODEL_STALE\x10\x08\x12\x1d\n\x19\x44\x41TA_DRIVEN_MODEL_UNKNOWN\x10\tB\xf5\x01\n\"com.google.ads.googleads.v1.errorsB\x1a\x43onversionActionErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V1.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V1\\Errors\xea\x02\"Google::Ads::GoogleAds::V1::Errorsb\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - -_CONVERSIONACTIONERRORENUM_CONVERSIONACTIONERROR = _descriptor.EnumDescriptor( - name='ConversionActionError', - full_name='google.ads.googleads.v1.errors.ConversionActionErrorEnum.ConversionActionError', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='UNSPECIFIED', index=0, number=0, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='UNKNOWN', index=1, number=1, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='DUPLICATE_NAME', index=2, number=2, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='DUPLICATE_APP_ID', index=3, number=3, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='TWO_CONVERSION_ACTIONS_BIDDING_ON_SAME_APP_DOWNLOAD', index=4, number=4, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='BIDDING_ON_SAME_APP_DOWNLOAD_AS_GLOBAL_ACTION', index=5, number=5, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='DATA_DRIVEN_MODEL_WAS_NEVER_GENERATED', index=6, number=6, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='DATA_DRIVEN_MODEL_EXPIRED', index=7, number=7, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='DATA_DRIVEN_MODEL_STALE', index=8, number=8, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='DATA_DRIVEN_MODEL_UNKNOWN', index=9, number=9, - serialized_options=None, - type=None), - ], - containing_type=None, - serialized_options=None, - serialized_start=163, - serialized_end=500, -) -_sym_db.RegisterEnumDescriptor(_CONVERSIONACTIONERRORENUM_CONVERSIONACTIONERROR) - - -_CONVERSIONACTIONERRORENUM = _descriptor.Descriptor( - name='ConversionActionErrorEnum', - full_name='google.ads.googleads.v1.errors.ConversionActionErrorEnum', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - _CONVERSIONACTIONERRORENUM_CONVERSIONACTIONERROR, - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=133, - serialized_end=500, -) - -_CONVERSIONACTIONERRORENUM_CONVERSIONACTIONERROR.containing_type = _CONVERSIONACTIONERRORENUM -DESCRIPTOR.message_types_by_name['ConversionActionErrorEnum'] = _CONVERSIONACTIONERRORENUM -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -ConversionActionErrorEnum = _reflection.GeneratedProtocolMessageType('ConversionActionErrorEnum', (_message.Message,), dict( - DESCRIPTOR = _CONVERSIONACTIONERRORENUM, - __module__ = 'google.ads.googleads_v1.proto.errors.conversion_action_error_pb2' - , - __doc__ = """Container for enum describing possible conversion action errors. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.errors.ConversionActionErrorEnum) - )) -_sym_db.RegisterMessage(ConversionActionErrorEnum) - - -DESCRIPTOR._options = None -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/errors/conversion_adjustment_upload_error_pb2.py b/google/ads/google_ads/v1/proto/errors/conversion_adjustment_upload_error_pb2.py deleted file mode 100644 index bb5d2d589..000000000 --- a/google/ads/google_ads/v1/proto/errors/conversion_adjustment_upload_error_pb2.py +++ /dev/null @@ -1,130 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/errors/conversion_adjustment_upload_error.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/errors/conversion_adjustment_upload_error.proto', - package='google.ads.googleads.v1.errors', - syntax='proto3', - serialized_options=_b('\n\"com.google.ads.googleads.v1.errorsB$ConversionAdjustmentUploadErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V1.Errors\312\002\036Google\\Ads\\GoogleAds\\V1\\Errors\352\002\"Google::Ads::GoogleAds::V1::Errors'), - serialized_pb=_b('\nMgoogle/ads/googleads_v1/proto/errors/conversion_adjustment_upload_error.proto\x12\x1egoogle.ads.googleads.v1.errors\x1a\x1cgoogle/api/annotations.proto\"\xae\x03\n#ConversionAdjustmentUploadErrorEnum\"\x86\x03\n\x1f\x43onversionAdjustmentUploadError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12 \n\x1cTOO_RECENT_CONVERSION_ACTION\x10\x02\x12\x1d\n\x19INVALID_CONVERSION_ACTION\x10\x03\x12 \n\x1c\x43ONVERSION_ALREADY_RETRACTED\x10\x04\x12\x18\n\x14\x43ONVERSION_NOT_FOUND\x10\x05\x12\x16\n\x12\x43ONVERSION_EXPIRED\x10\x06\x12\"\n\x1e\x41\x44JUSTMENT_PRECEDES_CONVERSION\x10\x07\x12!\n\x1dMORE_RECENT_RESTATEMENT_FOUND\x10\x08\x12\x19\n\x15TOO_RECENT_CONVERSION\x10\t\x12N\nJCANNOT_RESTATE_CONVERSION_ACTION_THAT_ALWAYS_USES_DEFAULT_CONVERSION_VALUE\x10\nB\xff\x01\n\"com.google.ads.googleads.v1.errorsB$ConversionAdjustmentUploadErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V1.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V1\\Errors\xea\x02\"Google::Ads::GoogleAds::V1::Errorsb\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - -_CONVERSIONADJUSTMENTUPLOADERRORENUM_CONVERSIONADJUSTMENTUPLOADERROR = _descriptor.EnumDescriptor( - name='ConversionAdjustmentUploadError', - full_name='google.ads.googleads.v1.errors.ConversionAdjustmentUploadErrorEnum.ConversionAdjustmentUploadError', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='UNSPECIFIED', index=0, number=0, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='UNKNOWN', index=1, number=1, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='TOO_RECENT_CONVERSION_ACTION', index=2, number=2, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='INVALID_CONVERSION_ACTION', index=3, number=3, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='CONVERSION_ALREADY_RETRACTED', index=4, number=4, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='CONVERSION_NOT_FOUND', index=5, number=5, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='CONVERSION_EXPIRED', index=6, number=6, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='ADJUSTMENT_PRECEDES_CONVERSION', index=7, number=7, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='MORE_RECENT_RESTATEMENT_FOUND', index=8, number=8, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='TOO_RECENT_CONVERSION', index=9, number=9, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='CANNOT_RESTATE_CONVERSION_ACTION_THAT_ALWAYS_USES_DEFAULT_CONVERSION_VALUE', index=10, number=10, - serialized_options=None, - type=None), - ], - containing_type=None, - serialized_options=None, - serialized_start=184, - serialized_end=574, -) -_sym_db.RegisterEnumDescriptor(_CONVERSIONADJUSTMENTUPLOADERRORENUM_CONVERSIONADJUSTMENTUPLOADERROR) - - -_CONVERSIONADJUSTMENTUPLOADERRORENUM = _descriptor.Descriptor( - name='ConversionAdjustmentUploadErrorEnum', - full_name='google.ads.googleads.v1.errors.ConversionAdjustmentUploadErrorEnum', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - _CONVERSIONADJUSTMENTUPLOADERRORENUM_CONVERSIONADJUSTMENTUPLOADERROR, - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=144, - serialized_end=574, -) - -_CONVERSIONADJUSTMENTUPLOADERRORENUM_CONVERSIONADJUSTMENTUPLOADERROR.containing_type = _CONVERSIONADJUSTMENTUPLOADERRORENUM -DESCRIPTOR.message_types_by_name['ConversionAdjustmentUploadErrorEnum'] = _CONVERSIONADJUSTMENTUPLOADERRORENUM -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -ConversionAdjustmentUploadErrorEnum = _reflection.GeneratedProtocolMessageType('ConversionAdjustmentUploadErrorEnum', (_message.Message,), dict( - DESCRIPTOR = _CONVERSIONADJUSTMENTUPLOADERRORENUM, - __module__ = 'google.ads.googleads_v1.proto.errors.conversion_adjustment_upload_error_pb2' - , - __doc__ = """Container for enum describing possible conversion adjustment upload - errors. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.errors.ConversionAdjustmentUploadErrorEnum) - )) -_sym_db.RegisterMessage(ConversionAdjustmentUploadErrorEnum) - - -DESCRIPTOR._options = None -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/errors/country_code_error_pb2.py b/google/ads/google_ads/v1/proto/errors/country_code_error_pb2.py deleted file mode 100644 index 14425c705..000000000 --- a/google/ads/google_ads/v1/proto/errors/country_code_error_pb2.py +++ /dev/null @@ -1,97 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/errors/country_code_error.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/errors/country_code_error.proto', - package='google.ads.googleads.v1.errors', - syntax='proto3', - serialized_options=_b('\n\"com.google.ads.googleads.v1.errorsB\025CountryCodeErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V1.Errors\312\002\036Google\\Ads\\GoogleAds\\V1\\Errors\352\002\"Google::Ads::GoogleAds::V1::Errors'), - serialized_pb=_b('\n=google/ads/googleads_v1/proto/errors/country_code_error.proto\x12\x1egoogle.ads.googleads.v1.errors\x1a\x1cgoogle/api/annotations.proto\"b\n\x14\x43ountryCodeErrorEnum\"J\n\x10\x43ountryCodeError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x18\n\x14INVALID_COUNTRY_CODE\x10\x02\x42\xf0\x01\n\"com.google.ads.googleads.v1.errorsB\x15\x43ountryCodeErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V1.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V1\\Errors\xea\x02\"Google::Ads::GoogleAds::V1::Errorsb\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - -_COUNTRYCODEERRORENUM_COUNTRYCODEERROR = _descriptor.EnumDescriptor( - name='CountryCodeError', - full_name='google.ads.googleads.v1.errors.CountryCodeErrorEnum.CountryCodeError', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='UNSPECIFIED', index=0, number=0, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='UNKNOWN', index=1, number=1, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='INVALID_COUNTRY_CODE', index=2, number=2, - serialized_options=None, - type=None), - ], - containing_type=None, - serialized_options=None, - serialized_start=151, - serialized_end=225, -) -_sym_db.RegisterEnumDescriptor(_COUNTRYCODEERRORENUM_COUNTRYCODEERROR) - - -_COUNTRYCODEERRORENUM = _descriptor.Descriptor( - name='CountryCodeErrorEnum', - full_name='google.ads.googleads.v1.errors.CountryCodeErrorEnum', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - _COUNTRYCODEERRORENUM_COUNTRYCODEERROR, - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=127, - serialized_end=225, -) - -_COUNTRYCODEERRORENUM_COUNTRYCODEERROR.containing_type = _COUNTRYCODEERRORENUM -DESCRIPTOR.message_types_by_name['CountryCodeErrorEnum'] = _COUNTRYCODEERRORENUM -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -CountryCodeErrorEnum = _reflection.GeneratedProtocolMessageType('CountryCodeErrorEnum', (_message.Message,), dict( - DESCRIPTOR = _COUNTRYCODEERRORENUM, - __module__ = 'google.ads.googleads_v1.proto.errors.country_code_error_pb2' - , - __doc__ = """Container for enum describing country code errors. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.errors.CountryCodeErrorEnum) - )) -_sym_db.RegisterMessage(CountryCodeErrorEnum) - - -DESCRIPTOR._options = None -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/errors/criterion_error_pb2.py b/google/ads/google_ads/v1/proto/errors/criterion_error_pb2.py deleted file mode 100644 index 3ba7d5b2c..000000000 --- a/google/ads/google_ads/v1/proto/errors/criterion_error_pb2.py +++ /dev/null @@ -1,481 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/errors/criterion_error.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/errors/criterion_error.proto', - package='google.ads.googleads.v1.errors', - syntax='proto3', - serialized_options=_b('\n\"com.google.ads.googleads.v1.errorsB\023CriterionErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V1.Errors\312\002\036Google\\Ads\\GoogleAds\\V1\\Errors\352\002\"Google::Ads::GoogleAds::V1::Errors'), - serialized_pb=_b('\n:google/ads/googleads_v1/proto/errors/criterion_error.proto\x12\x1egoogle.ads.googleads.v1.errors\x1a\x1cgoogle/api/annotations.proto\"\xa8\x1d\n\x12\x43riterionErrorEnum\"\x91\x1d\n\x0e\x43riterionError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x1a\n\x16\x43ONCRETE_TYPE_REQUIRED\x10\x02\x12\x1d\n\x19INVALID_EXCLUDED_CATEGORY\x10\x03\x12\x18\n\x14INVALID_KEYWORD_TEXT\x10\x04\x12\x19\n\x15KEYWORD_TEXT_TOO_LONG\x10\x05\x12\x1e\n\x1aKEYWORD_HAS_TOO_MANY_WORDS\x10\x06\x12\x1d\n\x19KEYWORD_HAS_INVALID_CHARS\x10\x07\x12\x19\n\x15INVALID_PLACEMENT_URL\x10\x08\x12\x15\n\x11INVALID_USER_LIST\x10\t\x12\x19\n\x15INVALID_USER_INTEREST\x10\n\x12$\n INVALID_FORMAT_FOR_PLACEMENT_URL\x10\x0b\x12\x1d\n\x19PLACEMENT_URL_IS_TOO_LONG\x10\x0c\x12\"\n\x1ePLACEMENT_URL_HAS_ILLEGAL_CHAR\x10\r\x12,\n(PLACEMENT_URL_HAS_MULTIPLE_SITES_IN_LINE\x10\x0e\x12\x39\n5PLACEMENT_IS_NOT_AVAILABLE_FOR_TARGETING_OR_EXCLUSION\x10\x0f\x12\x16\n\x12INVALID_TOPIC_PATH\x10\x10\x12\x1e\n\x1aINVALID_YOUTUBE_CHANNEL_ID\x10\x11\x12\x1c\n\x18INVALID_YOUTUBE_VIDEO_ID\x10\x12\x12\'\n#YOUTUBE_VERTICAL_CHANNEL_DEPRECATED\x10\x13\x12*\n&YOUTUBE_DEMOGRAPHIC_CHANNEL_DEPRECATED\x10\x14\x12\x1b\n\x17YOUTUBE_URL_UNSUPPORTED\x10\x15\x12 \n\x1c\x43\x41NNOT_EXCLUDE_CRITERIA_TYPE\x10\x16\x12\x1c\n\x18\x43\x41NNOT_ADD_CRITERIA_TYPE\x10\x17\x12\x1a\n\x16INVALID_PRODUCT_FILTER\x10\x18\x12\x1b\n\x17PRODUCT_FILTER_TOO_LONG\x10\x19\x12$\n CANNOT_EXCLUDE_SIMILAR_USER_LIST\x10\x1a\x12\x1f\n\x1b\x43\x41NNOT_ADD_CLOSED_USER_LIST\x10\x1b\x12:\n6CANNOT_ADD_DISPLAY_ONLY_LISTS_TO_SEARCH_ONLY_CAMPAIGNS\x10\x1c\x12\x35\n1CANNOT_ADD_DISPLAY_ONLY_LISTS_TO_SEARCH_CAMPAIGNS\x10\x1d\x12\x37\n3CANNOT_ADD_DISPLAY_ONLY_LISTS_TO_SHOPPING_CAMPAIGNS\x10\x1e\x12\x31\n-CANNOT_ADD_USER_INTERESTS_TO_SEARCH_CAMPAIGNS\x10\x1f\x12\x39\n5CANNOT_SET_BIDS_ON_CRITERION_TYPE_IN_SEARCH_CAMPAIGNS\x10 \x12\x37\n3CANNOT_ADD_URLS_TO_CRITERION_TYPE_FOR_CAMPAIGN_TYPE\x10!\x12\x1b\n\x17INVALID_CUSTOM_AFFINITY\x10`\x12\x19\n\x15INVALID_CUSTOM_INTENT\x10\x61\x12\x16\n\x12INVALID_IP_ADDRESS\x10\"\x12\x15\n\x11INVALID_IP_FORMAT\x10#\x12\x16\n\x12INVALID_MOBILE_APP\x10$\x12\x1f\n\x1bINVALID_MOBILE_APP_CATEGORY\x10%\x12\x18\n\x14INVALID_CRITERION_ID\x10&\x12\x1b\n\x17\x43\x41NNOT_TARGET_CRITERION\x10\'\x12$\n CANNOT_TARGET_OBSOLETE_CRITERION\x10(\x12\"\n\x1e\x43RITERION_ID_AND_TYPE_MISMATCH\x10)\x12\x1c\n\x18INVALID_PROXIMITY_RADIUS\x10*\x12\"\n\x1eINVALID_PROXIMITY_RADIUS_UNITS\x10+\x12 \n\x1cINVALID_STREETADDRESS_LENGTH\x10,\x12\x1b\n\x17INVALID_CITYNAME_LENGTH\x10-\x12\x1d\n\x19INVALID_REGIONCODE_LENGTH\x10.\x12\x1d\n\x19INVALID_REGIONNAME_LENGTH\x10/\x12\x1d\n\x19INVALID_POSTALCODE_LENGTH\x10\x30\x12\x18\n\x14INVALID_COUNTRY_CODE\x10\x31\x12\x14\n\x10INVALID_LATITUDE\x10\x32\x12\x15\n\x11INVALID_LONGITUDE\x10\x33\x12\x36\n2PROXIMITY_GEOPOINT_AND_ADDRESS_BOTH_CANNOT_BE_NULL\x10\x34\x12\x1d\n\x19INVALID_PROXIMITY_ADDRESS\x10\x35\x12\x1c\n\x18INVALID_USER_DOMAIN_NAME\x10\x36\x12 \n\x1c\x43RITERION_PARAMETER_TOO_LONG\x10\x37\x12&\n\"AD_SCHEDULE_TIME_INTERVALS_OVERLAP\x10\x38\x12\x32\n.AD_SCHEDULE_INTERVAL_CANNOT_SPAN_MULTIPLE_DAYS\x10\x39\x12%\n!AD_SCHEDULE_INVALID_TIME_INTERVAL\x10:\x12\x30\n,AD_SCHEDULE_EXCEEDED_INTERVALS_PER_DAY_LIMIT\x10;\x12/\n+AD_SCHEDULE_CRITERION_ID_MISMATCHING_FIELDS\x10<\x12$\n CANNOT_BID_MODIFY_CRITERION_TYPE\x10=\x12\x32\n.CANNOT_BID_MODIFY_CRITERION_CAMPAIGN_OPTED_OUT\x10>\x12(\n$CANNOT_BID_MODIFY_NEGATIVE_CRITERION\x10?\x12\x1f\n\x1b\x42ID_MODIFIER_ALREADY_EXISTS\x10@\x12\x17\n\x13\x46\x45\x45\x44_ID_NOT_ALLOWED\x10\x41\x12(\n$ACCOUNT_INELIGIBLE_FOR_CRITERIA_TYPE\x10\x42\x12.\n*CRITERIA_TYPE_INVALID_FOR_BIDDING_STRATEGY\x10\x43\x12\x1c\n\x18\x43\x41NNOT_EXCLUDE_CRITERION\x10\x44\x12\x1b\n\x17\x43\x41NNOT_REMOVE_CRITERION\x10\x45\x12\x1a\n\x16PRODUCT_SCOPE_TOO_LONG\x10\x46\x12%\n!PRODUCT_SCOPE_TOO_MANY_DIMENSIONS\x10G\x12\x1e\n\x1aPRODUCT_PARTITION_TOO_LONG\x10H\x12)\n%PRODUCT_PARTITION_TOO_MANY_DIMENSIONS\x10I\x12\x1d\n\x19INVALID_PRODUCT_DIMENSION\x10J\x12\"\n\x1eINVALID_PRODUCT_DIMENSION_TYPE\x10K\x12$\n INVALID_PRODUCT_BIDDING_CATEGORY\x10L\x12\x1c\n\x18MISSING_SHOPPING_SETTING\x10M\x12\x1d\n\x19INVALID_MATCHING_FUNCTION\x10N\x12\x1f\n\x1bLOCATION_FILTER_NOT_ALLOWED\x10O\x12$\n INVALID_FEED_FOR_LOCATION_FILTER\x10\x62\x12\x1b\n\x17LOCATION_FILTER_INVALID\x10P\x12\x32\n.CANNOT_ATTACH_CRITERIA_AT_CAMPAIGN_AND_ADGROUP\x10Q\x12\x39\n5HOTEL_LENGTH_OF_STAY_OVERLAPS_WITH_EXISTING_CRITERION\x10R\x12\x41\n=HOTEL_ADVANCE_BOOKING_WINDOW_OVERLAPS_WITH_EXISTING_CRITERION\x10S\x12.\n*FIELD_INCOMPATIBLE_WITH_NEGATIVE_TARGETING\x10T\x12\x1d\n\x19INVALID_WEBPAGE_CONDITION\x10U\x12!\n\x1dINVALID_WEBPAGE_CONDITION_URL\x10V\x12)\n%WEBPAGE_CONDITION_URL_CANNOT_BE_EMPTY\x10W\x12.\n*WEBPAGE_CONDITION_URL_UNSUPPORTED_PROTOCOL\x10X\x12.\n*WEBPAGE_CONDITION_URL_CANNOT_BE_IP_ADDRESS\x10Y\x12\x45\nAWEBPAGE_CONDITION_URL_DOMAIN_NOT_CONSISTENT_WITH_CAMPAIGN_SETTING\x10Z\x12\x31\n-WEBPAGE_CONDITION_URL_CANNOT_BE_PUBLIC_SUFFIX\x10[\x12/\n+WEBPAGE_CONDITION_URL_INVALID_PUBLIC_SUFFIX\x10\\\x12\x39\n5WEBPAGE_CONDITION_URL_VALUE_TRACK_VALUE_NOT_SUPPORTED\x10]\x12<\n8WEBPAGE_CRITERION_URL_EQUALS_CAN_HAVE_ONLY_ONE_CONDITION\x10^\x12\x37\n3WEBPAGE_CRITERION_NOT_SUPPORTED_ON_NON_DSA_AD_GROUP\x10_B\xee\x01\n\"com.google.ads.googleads.v1.errorsB\x13\x43riterionErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V1.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V1\\Errors\xea\x02\"Google::Ads::GoogleAds::V1::Errorsb\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - -_CRITERIONERRORENUM_CRITERIONERROR = _descriptor.EnumDescriptor( - name='CriterionError', - full_name='google.ads.googleads.v1.errors.CriterionErrorEnum.CriterionError', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='UNSPECIFIED', index=0, number=0, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='UNKNOWN', index=1, number=1, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='CONCRETE_TYPE_REQUIRED', index=2, number=2, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='INVALID_EXCLUDED_CATEGORY', index=3, number=3, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='INVALID_KEYWORD_TEXT', index=4, number=4, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='KEYWORD_TEXT_TOO_LONG', index=5, number=5, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='KEYWORD_HAS_TOO_MANY_WORDS', index=6, number=6, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='KEYWORD_HAS_INVALID_CHARS', index=7, number=7, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='INVALID_PLACEMENT_URL', index=8, number=8, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='INVALID_USER_LIST', index=9, number=9, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='INVALID_USER_INTEREST', index=10, number=10, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='INVALID_FORMAT_FOR_PLACEMENT_URL', index=11, number=11, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='PLACEMENT_URL_IS_TOO_LONG', index=12, number=12, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='PLACEMENT_URL_HAS_ILLEGAL_CHAR', index=13, number=13, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='PLACEMENT_URL_HAS_MULTIPLE_SITES_IN_LINE', index=14, number=14, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='PLACEMENT_IS_NOT_AVAILABLE_FOR_TARGETING_OR_EXCLUSION', index=15, number=15, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='INVALID_TOPIC_PATH', index=16, number=16, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='INVALID_YOUTUBE_CHANNEL_ID', index=17, number=17, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='INVALID_YOUTUBE_VIDEO_ID', index=18, number=18, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='YOUTUBE_VERTICAL_CHANNEL_DEPRECATED', index=19, number=19, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='YOUTUBE_DEMOGRAPHIC_CHANNEL_DEPRECATED', index=20, number=20, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='YOUTUBE_URL_UNSUPPORTED', index=21, number=21, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='CANNOT_EXCLUDE_CRITERIA_TYPE', index=22, number=22, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='CANNOT_ADD_CRITERIA_TYPE', index=23, number=23, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='INVALID_PRODUCT_FILTER', index=24, number=24, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='PRODUCT_FILTER_TOO_LONG', index=25, number=25, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='CANNOT_EXCLUDE_SIMILAR_USER_LIST', index=26, number=26, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='CANNOT_ADD_CLOSED_USER_LIST', index=27, number=27, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='CANNOT_ADD_DISPLAY_ONLY_LISTS_TO_SEARCH_ONLY_CAMPAIGNS', index=28, number=28, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='CANNOT_ADD_DISPLAY_ONLY_LISTS_TO_SEARCH_CAMPAIGNS', index=29, number=29, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='CANNOT_ADD_DISPLAY_ONLY_LISTS_TO_SHOPPING_CAMPAIGNS', index=30, number=30, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='CANNOT_ADD_USER_INTERESTS_TO_SEARCH_CAMPAIGNS', index=31, number=31, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='CANNOT_SET_BIDS_ON_CRITERION_TYPE_IN_SEARCH_CAMPAIGNS', index=32, number=32, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='CANNOT_ADD_URLS_TO_CRITERION_TYPE_FOR_CAMPAIGN_TYPE', index=33, number=33, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='INVALID_CUSTOM_AFFINITY', index=34, number=96, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='INVALID_CUSTOM_INTENT', index=35, number=97, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='INVALID_IP_ADDRESS', index=36, number=34, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='INVALID_IP_FORMAT', index=37, number=35, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='INVALID_MOBILE_APP', index=38, number=36, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='INVALID_MOBILE_APP_CATEGORY', index=39, number=37, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='INVALID_CRITERION_ID', index=40, number=38, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='CANNOT_TARGET_CRITERION', index=41, number=39, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='CANNOT_TARGET_OBSOLETE_CRITERION', index=42, number=40, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='CRITERION_ID_AND_TYPE_MISMATCH', index=43, number=41, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='INVALID_PROXIMITY_RADIUS', index=44, number=42, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='INVALID_PROXIMITY_RADIUS_UNITS', index=45, number=43, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='INVALID_STREETADDRESS_LENGTH', index=46, number=44, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='INVALID_CITYNAME_LENGTH', index=47, number=45, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='INVALID_REGIONCODE_LENGTH', index=48, number=46, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='INVALID_REGIONNAME_LENGTH', index=49, number=47, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='INVALID_POSTALCODE_LENGTH', index=50, number=48, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='INVALID_COUNTRY_CODE', index=51, number=49, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='INVALID_LATITUDE', index=52, number=50, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='INVALID_LONGITUDE', index=53, number=51, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='PROXIMITY_GEOPOINT_AND_ADDRESS_BOTH_CANNOT_BE_NULL', index=54, number=52, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='INVALID_PROXIMITY_ADDRESS', index=55, number=53, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='INVALID_USER_DOMAIN_NAME', index=56, number=54, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='CRITERION_PARAMETER_TOO_LONG', index=57, number=55, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='AD_SCHEDULE_TIME_INTERVALS_OVERLAP', index=58, number=56, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='AD_SCHEDULE_INTERVAL_CANNOT_SPAN_MULTIPLE_DAYS', index=59, number=57, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='AD_SCHEDULE_INVALID_TIME_INTERVAL', index=60, number=58, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='AD_SCHEDULE_EXCEEDED_INTERVALS_PER_DAY_LIMIT', index=61, number=59, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='AD_SCHEDULE_CRITERION_ID_MISMATCHING_FIELDS', index=62, number=60, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='CANNOT_BID_MODIFY_CRITERION_TYPE', index=63, number=61, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='CANNOT_BID_MODIFY_CRITERION_CAMPAIGN_OPTED_OUT', index=64, number=62, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='CANNOT_BID_MODIFY_NEGATIVE_CRITERION', index=65, number=63, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='BID_MODIFIER_ALREADY_EXISTS', index=66, number=64, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='FEED_ID_NOT_ALLOWED', index=67, number=65, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='ACCOUNT_INELIGIBLE_FOR_CRITERIA_TYPE', index=68, number=66, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='CRITERIA_TYPE_INVALID_FOR_BIDDING_STRATEGY', index=69, number=67, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='CANNOT_EXCLUDE_CRITERION', index=70, number=68, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='CANNOT_REMOVE_CRITERION', index=71, number=69, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='PRODUCT_SCOPE_TOO_LONG', index=72, number=70, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='PRODUCT_SCOPE_TOO_MANY_DIMENSIONS', index=73, number=71, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='PRODUCT_PARTITION_TOO_LONG', index=74, number=72, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='PRODUCT_PARTITION_TOO_MANY_DIMENSIONS', index=75, number=73, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='INVALID_PRODUCT_DIMENSION', index=76, number=74, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='INVALID_PRODUCT_DIMENSION_TYPE', index=77, number=75, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='INVALID_PRODUCT_BIDDING_CATEGORY', index=78, number=76, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='MISSING_SHOPPING_SETTING', index=79, number=77, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='INVALID_MATCHING_FUNCTION', index=80, number=78, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='LOCATION_FILTER_NOT_ALLOWED', index=81, number=79, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='INVALID_FEED_FOR_LOCATION_FILTER', index=82, number=98, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='LOCATION_FILTER_INVALID', index=83, number=80, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='CANNOT_ATTACH_CRITERIA_AT_CAMPAIGN_AND_ADGROUP', index=84, number=81, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='HOTEL_LENGTH_OF_STAY_OVERLAPS_WITH_EXISTING_CRITERION', index=85, number=82, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='HOTEL_ADVANCE_BOOKING_WINDOW_OVERLAPS_WITH_EXISTING_CRITERION', index=86, number=83, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='FIELD_INCOMPATIBLE_WITH_NEGATIVE_TARGETING', index=87, number=84, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='INVALID_WEBPAGE_CONDITION', index=88, number=85, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='INVALID_WEBPAGE_CONDITION_URL', index=89, number=86, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='WEBPAGE_CONDITION_URL_CANNOT_BE_EMPTY', index=90, number=87, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='WEBPAGE_CONDITION_URL_UNSUPPORTED_PROTOCOL', index=91, number=88, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='WEBPAGE_CONDITION_URL_CANNOT_BE_IP_ADDRESS', index=92, number=89, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='WEBPAGE_CONDITION_URL_DOMAIN_NOT_CONSISTENT_WITH_CAMPAIGN_SETTING', index=93, number=90, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='WEBPAGE_CONDITION_URL_CANNOT_BE_PUBLIC_SUFFIX', index=94, number=91, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='WEBPAGE_CONDITION_URL_INVALID_PUBLIC_SUFFIX', index=95, number=92, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='WEBPAGE_CONDITION_URL_VALUE_TRACK_VALUE_NOT_SUPPORTED', index=96, number=93, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='WEBPAGE_CRITERION_URL_EQUALS_CAN_HAVE_ONLY_ONE_CONDITION', index=97, number=94, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='WEBPAGE_CRITERION_NOT_SUPPORTED_ON_NON_DSA_AD_GROUP', index=98, number=95, - serialized_options=None, - type=None), - ], - containing_type=None, - serialized_options=None, - serialized_start=148, - serialized_end=3877, -) -_sym_db.RegisterEnumDescriptor(_CRITERIONERRORENUM_CRITERIONERROR) - - -_CRITERIONERRORENUM = _descriptor.Descriptor( - name='CriterionErrorEnum', - full_name='google.ads.googleads.v1.errors.CriterionErrorEnum', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - _CRITERIONERRORENUM_CRITERIONERROR, - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=125, - serialized_end=3877, -) - -_CRITERIONERRORENUM_CRITERIONERROR.containing_type = _CRITERIONERRORENUM -DESCRIPTOR.message_types_by_name['CriterionErrorEnum'] = _CRITERIONERRORENUM -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -CriterionErrorEnum = _reflection.GeneratedProtocolMessageType('CriterionErrorEnum', (_message.Message,), dict( - DESCRIPTOR = _CRITERIONERRORENUM, - __module__ = 'google.ads.googleads_v1.proto.errors.criterion_error_pb2' - , - __doc__ = """Container for enum describing possible criterion errors. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.errors.CriterionErrorEnum) - )) -_sym_db.RegisterMessage(CriterionErrorEnum) - - -DESCRIPTOR._options = None -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/errors/customer_client_link_error_pb2.py b/google/ads/google_ads/v1/proto/errors/customer_client_link_error_pb2.py deleted file mode 100644 index 0c162e0ee..000000000 --- a/google/ads/google_ads/v1/proto/errors/customer_client_link_error_pb2.py +++ /dev/null @@ -1,121 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/errors/customer_client_link_error.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/errors/customer_client_link_error.proto', - package='google.ads.googleads.v1.errors', - syntax='proto3', - serialized_options=_b('\n\"com.google.ads.googleads.v1.errorsB\034CustomerClientLinkErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V1.Errors\312\002\036Google\\Ads\\GoogleAds\\V1\\Errors\352\002\"Google::Ads::GoogleAds::V1::Errors'), - serialized_pb=_b('\nEgoogle/ads/googleads_v1/proto/errors/customer_client_link_error.proto\x12\x1egoogle.ads.googleads.v1.errors\x1a\x1cgoogle/api/annotations.proto\"\xed\x02\n\x1b\x43ustomerClientLinkErrorEnum\"\xcd\x02\n\x17\x43ustomerClientLinkError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12*\n&CLIENT_ALREADY_INVITED_BY_THIS_MANAGER\x10\x02\x12\'\n#CLIENT_ALREADY_MANAGED_IN_HIERARCHY\x10\x03\x12\x1b\n\x17\x43YCLIC_LINK_NOT_ALLOWED\x10\x04\x12\"\n\x1e\x43USTOMER_HAS_TOO_MANY_ACCOUNTS\x10\x05\x12#\n\x1f\x43LIENT_HAS_TOO_MANY_INVITATIONS\x10\x06\x12*\n&CANNOT_HIDE_OR_UNHIDE_MANAGER_ACCOUNTS\x10\x07\x12-\n)CUSTOMER_HAS_TOO_MANY_ACCOUNTS_AT_MANAGER\x10\x08\x42\xf7\x01\n\"com.google.ads.googleads.v1.errorsB\x1c\x43ustomerClientLinkErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V1.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V1\\Errors\xea\x02\"Google::Ads::GoogleAds::V1::Errorsb\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - -_CUSTOMERCLIENTLINKERRORENUM_CUSTOMERCLIENTLINKERROR = _descriptor.EnumDescriptor( - name='CustomerClientLinkError', - full_name='google.ads.googleads.v1.errors.CustomerClientLinkErrorEnum.CustomerClientLinkError', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='UNSPECIFIED', index=0, number=0, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='UNKNOWN', index=1, number=1, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='CLIENT_ALREADY_INVITED_BY_THIS_MANAGER', index=2, number=2, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='CLIENT_ALREADY_MANAGED_IN_HIERARCHY', index=3, number=3, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='CYCLIC_LINK_NOT_ALLOWED', index=4, number=4, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='CUSTOMER_HAS_TOO_MANY_ACCOUNTS', index=5, number=5, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='CLIENT_HAS_TOO_MANY_INVITATIONS', index=6, number=6, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='CANNOT_HIDE_OR_UNHIDE_MANAGER_ACCOUNTS', index=7, number=7, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='CUSTOMER_HAS_TOO_MANY_ACCOUNTS_AT_MANAGER', index=8, number=8, - serialized_options=None, - type=None), - ], - containing_type=None, - serialized_options=None, - serialized_start=168, - serialized_end=501, -) -_sym_db.RegisterEnumDescriptor(_CUSTOMERCLIENTLINKERRORENUM_CUSTOMERCLIENTLINKERROR) - - -_CUSTOMERCLIENTLINKERRORENUM = _descriptor.Descriptor( - name='CustomerClientLinkErrorEnum', - full_name='google.ads.googleads.v1.errors.CustomerClientLinkErrorEnum', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - _CUSTOMERCLIENTLINKERRORENUM_CUSTOMERCLIENTLINKERROR, - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=136, - serialized_end=501, -) - -_CUSTOMERCLIENTLINKERRORENUM_CUSTOMERCLIENTLINKERROR.containing_type = _CUSTOMERCLIENTLINKERRORENUM -DESCRIPTOR.message_types_by_name['CustomerClientLinkErrorEnum'] = _CUSTOMERCLIENTLINKERRORENUM -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -CustomerClientLinkErrorEnum = _reflection.GeneratedProtocolMessageType('CustomerClientLinkErrorEnum', (_message.Message,), dict( - DESCRIPTOR = _CUSTOMERCLIENTLINKERRORENUM, - __module__ = 'google.ads.googleads_v1.proto.errors.customer_client_link_error_pb2' - , - __doc__ = """Container for enum describing possible CustomeClientLink errors. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.errors.CustomerClientLinkErrorEnum) - )) -_sym_db.RegisterMessage(CustomerClientLinkErrorEnum) - - -DESCRIPTOR._options = None -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/errors/customer_error_pb2.py b/google/ads/google_ads/v1/proto/errors/customer_error_pb2.py deleted file mode 100644 index 71e3fa354..000000000 --- a/google/ads/google_ads/v1/proto/errors/customer_error_pb2.py +++ /dev/null @@ -1,101 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/errors/customer_error.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/errors/customer_error.proto', - package='google.ads.googleads.v1.errors', - syntax='proto3', - serialized_options=_b('\n\"com.google.ads.googleads.v1.errorsB\022CustomerErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V1.Errors\312\002\036Google\\Ads\\GoogleAds\\V1\\Errors\352\002\"Google::Ads::GoogleAds::V1::Errors'), - serialized_pb=_b('\n9google/ads/googleads_v1/proto/errors/customer_error.proto\x12\x1egoogle.ads.googleads.v1.errors\x1a\x1cgoogle/api/annotations.proto\"x\n\x11\x43ustomerErrorEnum\"c\n\rCustomerError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x1c\n\x18STATUS_CHANGE_DISALLOWED\x10\x02\x12\x16\n\x12\x41\x43\x43OUNT_NOT_SET_UP\x10\x03\x42\xed\x01\n\"com.google.ads.googleads.v1.errorsB\x12\x43ustomerErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V1.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V1\\Errors\xea\x02\"Google::Ads::GoogleAds::V1::Errorsb\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - -_CUSTOMERERRORENUM_CUSTOMERERROR = _descriptor.EnumDescriptor( - name='CustomerError', - full_name='google.ads.googleads.v1.errors.CustomerErrorEnum.CustomerError', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='UNSPECIFIED', index=0, number=0, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='UNKNOWN', index=1, number=1, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='STATUS_CHANGE_DISALLOWED', index=2, number=2, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='ACCOUNT_NOT_SET_UP', index=3, number=3, - serialized_options=None, - type=None), - ], - containing_type=None, - serialized_options=None, - serialized_start=144, - serialized_end=243, -) -_sym_db.RegisterEnumDescriptor(_CUSTOMERERRORENUM_CUSTOMERERROR) - - -_CUSTOMERERRORENUM = _descriptor.Descriptor( - name='CustomerErrorEnum', - full_name='google.ads.googleads.v1.errors.CustomerErrorEnum', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - _CUSTOMERERRORENUM_CUSTOMERERROR, - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=123, - serialized_end=243, -) - -_CUSTOMERERRORENUM_CUSTOMERERROR.containing_type = _CUSTOMERERRORENUM -DESCRIPTOR.message_types_by_name['CustomerErrorEnum'] = _CUSTOMERERRORENUM -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -CustomerErrorEnum = _reflection.GeneratedProtocolMessageType('CustomerErrorEnum', (_message.Message,), dict( - DESCRIPTOR = _CUSTOMERERRORENUM, - __module__ = 'google.ads.googleads_v1.proto.errors.customer_error_pb2' - , - __doc__ = """Container for enum describing possible customer errors. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.errors.CustomerErrorEnum) - )) -_sym_db.RegisterMessage(CustomerErrorEnum) - - -DESCRIPTOR._options = None -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/errors/customer_manager_link_error_pb2.py b/google/ads/google_ads/v1/proto/errors/customer_manager_link_error_pb2.py deleted file mode 100644 index 15305e2fd..000000000 --- a/google/ads/google_ads/v1/proto/errors/customer_manager_link_error_pb2.py +++ /dev/null @@ -1,125 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/errors/customer_manager_link_error.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/errors/customer_manager_link_error.proto', - package='google.ads.googleads.v1.errors', - syntax='proto3', - serialized_options=_b('\n\"com.google.ads.googleads.v1.errorsB\035CustomerManagerLinkErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V1.Errors\312\002\036Google\\Ads\\GoogleAds\\V1\\Errors\352\002\"Google::Ads::GoogleAds::V1::Errors'), - serialized_pb=_b('\nFgoogle/ads/googleads_v1/proto/errors/customer_manager_link_error.proto\x12\x1egoogle.ads.googleads.v1.errors\x1a\x1cgoogle/api/annotations.proto\"\xa0\x03\n\x1c\x43ustomerManagerLinkErrorEnum\"\xff\x02\n\x18\x43ustomerManagerLinkError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x15\n\x11NO_PENDING_INVITE\x10\x02\x12\'\n#SAME_CLIENT_MORE_THAN_ONCE_PER_CALL\x10\x03\x12-\n)MANAGER_HAS_MAX_NUMBER_OF_LINKED_ACCOUNTS\x10\x04\x12-\n)CANNOT_UNLINK_ACCOUNT_WITHOUT_ACTIVE_USER\x10\x05\x12+\n\'CANNOT_REMOVE_LAST_CLIENT_ACCOUNT_OWNER\x10\x06\x12+\n\'CANNOT_CHANGE_ROLE_BY_NON_ACCOUNT_OWNER\x10\x07\x12\x32\n.CANNOT_CHANGE_ROLE_FOR_NON_ACTIVE_LINK_ACCOUNT\x10\x08\x12\x19\n\x15\x44UPLICATE_CHILD_FOUND\x10\tB\xf8\x01\n\"com.google.ads.googleads.v1.errorsB\x1d\x43ustomerManagerLinkErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V1.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V1\\Errors\xea\x02\"Google::Ads::GoogleAds::V1::Errorsb\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - -_CUSTOMERMANAGERLINKERRORENUM_CUSTOMERMANAGERLINKERROR = _descriptor.EnumDescriptor( - name='CustomerManagerLinkError', - full_name='google.ads.googleads.v1.errors.CustomerManagerLinkErrorEnum.CustomerManagerLinkError', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='UNSPECIFIED', index=0, number=0, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='UNKNOWN', index=1, number=1, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='NO_PENDING_INVITE', index=2, number=2, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='SAME_CLIENT_MORE_THAN_ONCE_PER_CALL', index=3, number=3, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='MANAGER_HAS_MAX_NUMBER_OF_LINKED_ACCOUNTS', index=4, number=4, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='CANNOT_UNLINK_ACCOUNT_WITHOUT_ACTIVE_USER', index=5, number=5, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='CANNOT_REMOVE_LAST_CLIENT_ACCOUNT_OWNER', index=6, number=6, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='CANNOT_CHANGE_ROLE_BY_NON_ACCOUNT_OWNER', index=7, number=7, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='CANNOT_CHANGE_ROLE_FOR_NON_ACTIVE_LINK_ACCOUNT', index=8, number=8, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='DUPLICATE_CHILD_FOUND', index=9, number=9, - serialized_options=None, - type=None), - ], - containing_type=None, - serialized_options=None, - serialized_start=170, - serialized_end=553, -) -_sym_db.RegisterEnumDescriptor(_CUSTOMERMANAGERLINKERRORENUM_CUSTOMERMANAGERLINKERROR) - - -_CUSTOMERMANAGERLINKERRORENUM = _descriptor.Descriptor( - name='CustomerManagerLinkErrorEnum', - full_name='google.ads.googleads.v1.errors.CustomerManagerLinkErrorEnum', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - _CUSTOMERMANAGERLINKERRORENUM_CUSTOMERMANAGERLINKERROR, - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=137, - serialized_end=553, -) - -_CUSTOMERMANAGERLINKERRORENUM_CUSTOMERMANAGERLINKERROR.containing_type = _CUSTOMERMANAGERLINKERRORENUM -DESCRIPTOR.message_types_by_name['CustomerManagerLinkErrorEnum'] = _CUSTOMERMANAGERLINKERRORENUM -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -CustomerManagerLinkErrorEnum = _reflection.GeneratedProtocolMessageType('CustomerManagerLinkErrorEnum', (_message.Message,), dict( - DESCRIPTOR = _CUSTOMERMANAGERLINKERRORENUM, - __module__ = 'google.ads.googleads_v1.proto.errors.customer_manager_link_error_pb2' - , - __doc__ = """Container for enum describing possible CustomerManagerLink errors. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.errors.CustomerManagerLinkErrorEnum) - )) -_sym_db.RegisterMessage(CustomerManagerLinkErrorEnum) - - -DESCRIPTOR._options = None -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/errors/database_error_pb2.py b/google/ads/google_ads/v1/proto/errors/database_error_pb2.py deleted file mode 100644 index 9dc8e5180..000000000 --- a/google/ads/google_ads/v1/proto/errors/database_error_pb2.py +++ /dev/null @@ -1,97 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/errors/database_error.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/errors/database_error.proto', - package='google.ads.googleads.v1.errors', - syntax='proto3', - serialized_options=_b('\n\"com.google.ads.googleads.v1.errorsB\022DatabaseErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V1.Errors\312\002\036Google\\Ads\\GoogleAds\\V1\\Errors\352\002\"Google::Ads::GoogleAds::V1::Errors'), - serialized_pb=_b('\n9google/ads/googleads_v1/proto/errors/database_error.proto\x12\x1egoogle.ads.googleads.v1.errors\x1a\x1cgoogle/api/annotations.proto\"_\n\x11\x44\x61tabaseErrorEnum\"J\n\rDatabaseError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x1b\n\x17\x43ONCURRENT_MODIFICATION\x10\x02\x42\xed\x01\n\"com.google.ads.googleads.v1.errorsB\x12\x44\x61tabaseErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V1.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V1\\Errors\xea\x02\"Google::Ads::GoogleAds::V1::Errorsb\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - -_DATABASEERRORENUM_DATABASEERROR = _descriptor.EnumDescriptor( - name='DatabaseError', - full_name='google.ads.googleads.v1.errors.DatabaseErrorEnum.DatabaseError', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='UNSPECIFIED', index=0, number=0, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='UNKNOWN', index=1, number=1, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='CONCURRENT_MODIFICATION', index=2, number=2, - serialized_options=None, - type=None), - ], - containing_type=None, - serialized_options=None, - serialized_start=144, - serialized_end=218, -) -_sym_db.RegisterEnumDescriptor(_DATABASEERRORENUM_DATABASEERROR) - - -_DATABASEERRORENUM = _descriptor.Descriptor( - name='DatabaseErrorEnum', - full_name='google.ads.googleads.v1.errors.DatabaseErrorEnum', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - _DATABASEERRORENUM_DATABASEERROR, - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=123, - serialized_end=218, -) - -_DATABASEERRORENUM_DATABASEERROR.containing_type = _DATABASEERRORENUM -DESCRIPTOR.message_types_by_name['DatabaseErrorEnum'] = _DATABASEERRORENUM -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -DatabaseErrorEnum = _reflection.GeneratedProtocolMessageType('DatabaseErrorEnum', (_message.Message,), dict( - DESCRIPTOR = _DATABASEERRORENUM, - __module__ = 'google.ads.googleads_v1.proto.errors.database_error_pb2' - , - __doc__ = """Container for enum describing possible database errors. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.errors.DatabaseErrorEnum) - )) -_sym_db.RegisterMessage(DatabaseErrorEnum) - - -DESCRIPTOR._options = None -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/errors/distinct_error_pb2.py b/google/ads/google_ads/v1/proto/errors/distinct_error_pb2.py deleted file mode 100644 index 27c3434e1..000000000 --- a/google/ads/google_ads/v1/proto/errors/distinct_error_pb2.py +++ /dev/null @@ -1,101 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/errors/distinct_error.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/errors/distinct_error.proto', - package='google.ads.googleads.v1.errors', - syntax='proto3', - serialized_options=_b('\n\"com.google.ads.googleads.v1.errorsB\022DistinctErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V1.Errors\312\002\036Google\\Ads\\GoogleAds\\V1\\Errors\352\002\"Google::Ads::GoogleAds::V1::Errors'), - serialized_pb=_b('\n9google/ads/googleads_v1/proto/errors/distinct_error.proto\x12\x1egoogle.ads.googleads.v1.errors\x1a\x1cgoogle/api/annotations.proto\"m\n\x11\x44istinctErrorEnum\"X\n\rDistinctError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x15\n\x11\x44UPLICATE_ELEMENT\x10\x02\x12\x12\n\x0e\x44UPLICATE_TYPE\x10\x03\x42\xed\x01\n\"com.google.ads.googleads.v1.errorsB\x12\x44istinctErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V1.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V1\\Errors\xea\x02\"Google::Ads::GoogleAds::V1::Errorsb\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - -_DISTINCTERRORENUM_DISTINCTERROR = _descriptor.EnumDescriptor( - name='DistinctError', - full_name='google.ads.googleads.v1.errors.DistinctErrorEnum.DistinctError', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='UNSPECIFIED', index=0, number=0, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='UNKNOWN', index=1, number=1, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='DUPLICATE_ELEMENT', index=2, number=2, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='DUPLICATE_TYPE', index=3, number=3, - serialized_options=None, - type=None), - ], - containing_type=None, - serialized_options=None, - serialized_start=144, - serialized_end=232, -) -_sym_db.RegisterEnumDescriptor(_DISTINCTERRORENUM_DISTINCTERROR) - - -_DISTINCTERRORENUM = _descriptor.Descriptor( - name='DistinctErrorEnum', - full_name='google.ads.googleads.v1.errors.DistinctErrorEnum', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - _DISTINCTERRORENUM_DISTINCTERROR, - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=123, - serialized_end=232, -) - -_DISTINCTERRORENUM_DISTINCTERROR.containing_type = _DISTINCTERRORENUM -DESCRIPTOR.message_types_by_name['DistinctErrorEnum'] = _DISTINCTERRORENUM -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -DistinctErrorEnum = _reflection.GeneratedProtocolMessageType('DistinctErrorEnum', (_message.Message,), dict( - DESCRIPTOR = _DISTINCTERRORENUM, - __module__ = 'google.ads.googleads_v1.proto.errors.distinct_error_pb2' - , - __doc__ = """Container for enum describing possible distinct errors. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.errors.DistinctErrorEnum) - )) -_sym_db.RegisterMessage(DistinctErrorEnum) - - -DESCRIPTOR._options = None -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/errors/enum_error_pb2.py b/google/ads/google_ads/v1/proto/errors/enum_error_pb2.py deleted file mode 100644 index f5e2e6564..000000000 --- a/google/ads/google_ads/v1/proto/errors/enum_error_pb2.py +++ /dev/null @@ -1,97 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/errors/enum_error.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/errors/enum_error.proto', - package='google.ads.googleads.v1.errors', - syntax='proto3', - serialized_options=_b('\n\"com.google.ads.googleads.v1.errorsB\016EnumErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V1.Errors\312\002\036Google\\Ads\\GoogleAds\\V1\\Errors\352\002\"Google::Ads::GoogleAds::V1::Errors'), - serialized_pb=_b('\n5google/ads/googleads_v1/proto/errors/enum_error.proto\x12\x1egoogle.ads.googleads.v1.errors\x1a\x1cgoogle/api/annotations.proto\"X\n\rEnumErrorEnum\"G\n\tEnumError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x1c\n\x18\x45NUM_VALUE_NOT_PERMITTED\x10\x03\x42\xe9\x01\n\"com.google.ads.googleads.v1.errorsB\x0e\x45numErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V1.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V1\\Errors\xea\x02\"Google::Ads::GoogleAds::V1::Errorsb\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - -_ENUMERRORENUM_ENUMERROR = _descriptor.EnumDescriptor( - name='EnumError', - full_name='google.ads.googleads.v1.errors.EnumErrorEnum.EnumError', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='UNSPECIFIED', index=0, number=0, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='UNKNOWN', index=1, number=1, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='ENUM_VALUE_NOT_PERMITTED', index=2, number=3, - serialized_options=None, - type=None), - ], - containing_type=None, - serialized_options=None, - serialized_start=136, - serialized_end=207, -) -_sym_db.RegisterEnumDescriptor(_ENUMERRORENUM_ENUMERROR) - - -_ENUMERRORENUM = _descriptor.Descriptor( - name='EnumErrorEnum', - full_name='google.ads.googleads.v1.errors.EnumErrorEnum', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - _ENUMERRORENUM_ENUMERROR, - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=119, - serialized_end=207, -) - -_ENUMERRORENUM_ENUMERROR.containing_type = _ENUMERRORENUM -DESCRIPTOR.message_types_by_name['EnumErrorEnum'] = _ENUMERRORENUM -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -EnumErrorEnum = _reflection.GeneratedProtocolMessageType('EnumErrorEnum', (_message.Message,), dict( - DESCRIPTOR = _ENUMERRORENUM, - __module__ = 'google.ads.googleads_v1.proto.errors.enum_error_pb2' - , - __doc__ = """Container for enum describing possible enum errors. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.errors.EnumErrorEnum) - )) -_sym_db.RegisterMessage(EnumErrorEnum) - - -DESCRIPTOR._options = None -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/errors/errors_pb2.py b/google/ads/google_ads/v1/proto/errors/errors_pb2.py deleted file mode 100644 index 3bb5d6950..000000000 --- a/google/ads/google_ads/v1/proto/errors/errors_pb2.py +++ /dev/null @@ -1,1950 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/errors/errors.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.ads.google_ads.v1.proto.common import policy_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_policy__pb2 -from google.ads.google_ads.v1.proto.common import value_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_value__pb2 -from google.ads.google_ads.v1.proto.errors import account_budget_proposal_error_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_account__budget__proposal__error__pb2 -from google.ads.google_ads.v1.proto.errors import ad_customizer_error_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_ad__customizer__error__pb2 -from google.ads.google_ads.v1.proto.errors import ad_error_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_ad__error__pb2 -from google.ads.google_ads.v1.proto.errors import ad_group_ad_error_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_ad__group__ad__error__pb2 -from google.ads.google_ads.v1.proto.errors import ad_group_bid_modifier_error_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_ad__group__bid__modifier__error__pb2 -from google.ads.google_ads.v1.proto.errors import ad_group_criterion_error_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_ad__group__criterion__error__pb2 -from google.ads.google_ads.v1.proto.errors import ad_group_error_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_ad__group__error__pb2 -from google.ads.google_ads.v1.proto.errors import ad_group_feed_error_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_ad__group__feed__error__pb2 -from google.ads.google_ads.v1.proto.errors import ad_parameter_error_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_ad__parameter__error__pb2 -from google.ads.google_ads.v1.proto.errors import ad_sharing_error_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_ad__sharing__error__pb2 -from google.ads.google_ads.v1.proto.errors import adx_error_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_adx__error__pb2 -from google.ads.google_ads.v1.proto.errors import asset_error_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_asset__error__pb2 -from google.ads.google_ads.v1.proto.errors import authentication_error_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_authentication__error__pb2 -from google.ads.google_ads.v1.proto.errors import authorization_error_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_authorization__error__pb2 -from google.ads.google_ads.v1.proto.errors import bidding_error_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_bidding__error__pb2 -from google.ads.google_ads.v1.proto.errors import bidding_strategy_error_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_bidding__strategy__error__pb2 -from google.ads.google_ads.v1.proto.errors import billing_setup_error_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_billing__setup__error__pb2 -from google.ads.google_ads.v1.proto.errors import campaign_budget_error_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_campaign__budget__error__pb2 -from google.ads.google_ads.v1.proto.errors import campaign_criterion_error_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_campaign__criterion__error__pb2 -from google.ads.google_ads.v1.proto.errors import campaign_draft_error_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_campaign__draft__error__pb2 -from google.ads.google_ads.v1.proto.errors import campaign_error_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_campaign__error__pb2 -from google.ads.google_ads.v1.proto.errors import campaign_experiment_error_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_campaign__experiment__error__pb2 -from google.ads.google_ads.v1.proto.errors import campaign_feed_error_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_campaign__feed__error__pb2 -from google.ads.google_ads.v1.proto.errors import campaign_shared_set_error_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_campaign__shared__set__error__pb2 -from google.ads.google_ads.v1.proto.errors import change_status_error_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_change__status__error__pb2 -from google.ads.google_ads.v1.proto.errors import collection_size_error_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_collection__size__error__pb2 -from google.ads.google_ads.v1.proto.errors import context_error_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_context__error__pb2 -from google.ads.google_ads.v1.proto.errors import conversion_action_error_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_conversion__action__error__pb2 -from google.ads.google_ads.v1.proto.errors import conversion_adjustment_upload_error_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_conversion__adjustment__upload__error__pb2 -from google.ads.google_ads.v1.proto.errors import conversion_upload_error_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_conversion__upload__error__pb2 -from google.ads.google_ads.v1.proto.errors import country_code_error_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_country__code__error__pb2 -from google.ads.google_ads.v1.proto.errors import criterion_error_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_criterion__error__pb2 -from google.ads.google_ads.v1.proto.errors import custom_interest_error_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_custom__interest__error__pb2 -from google.ads.google_ads.v1.proto.errors import customer_client_link_error_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_customer__client__link__error__pb2 -from google.ads.google_ads.v1.proto.errors import customer_error_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_customer__error__pb2 -from google.ads.google_ads.v1.proto.errors import customer_feed_error_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_customer__feed__error__pb2 -from google.ads.google_ads.v1.proto.errors import customer_manager_link_error_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_customer__manager__link__error__pb2 -from google.ads.google_ads.v1.proto.errors import database_error_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_database__error__pb2 -from google.ads.google_ads.v1.proto.errors import date_error_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_date__error__pb2 -from google.ads.google_ads.v1.proto.errors import date_range_error_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_date__range__error__pb2 -from google.ads.google_ads.v1.proto.errors import distinct_error_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_distinct__error__pb2 -from google.ads.google_ads.v1.proto.errors import enum_error_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_enum__error__pb2 -from google.ads.google_ads.v1.proto.errors import extension_feed_item_error_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_extension__feed__item__error__pb2 -from google.ads.google_ads.v1.proto.errors import extension_setting_error_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_extension__setting__error__pb2 -from google.ads.google_ads.v1.proto.errors import feed_attribute_reference_error_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_feed__attribute__reference__error__pb2 -from google.ads.google_ads.v1.proto.errors import feed_error_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_feed__error__pb2 -from google.ads.google_ads.v1.proto.errors import feed_item_error_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_feed__item__error__pb2 -from google.ads.google_ads.v1.proto.errors import feed_item_target_error_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_feed__item__target__error__pb2 -from google.ads.google_ads.v1.proto.errors import feed_item_validation_error_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_feed__item__validation__error__pb2 -from google.ads.google_ads.v1.proto.errors import feed_mapping_error_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_feed__mapping__error__pb2 -from google.ads.google_ads.v1.proto.errors import field_error_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_field__error__pb2 -from google.ads.google_ads.v1.proto.errors import field_mask_error_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_field__mask__error__pb2 -from google.ads.google_ads.v1.proto.errors import function_error_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_function__error__pb2 -from google.ads.google_ads.v1.proto.errors import function_parsing_error_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_function__parsing__error__pb2 -from google.ads.google_ads.v1.proto.errors import geo_target_constant_suggestion_error_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_geo__target__constant__suggestion__error__pb2 -from google.ads.google_ads.v1.proto.errors import header_error_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_header__error__pb2 -from google.ads.google_ads.v1.proto.errors import id_error_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_id__error__pb2 -from google.ads.google_ads.v1.proto.errors import image_error_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_image__error__pb2 -from google.ads.google_ads.v1.proto.errors import internal_error_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_internal__error__pb2 -from google.ads.google_ads.v1.proto.errors import keyword_plan_ad_group_error_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_keyword__plan__ad__group__error__pb2 -from google.ads.google_ads.v1.proto.errors import keyword_plan_campaign_error_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_keyword__plan__campaign__error__pb2 -from google.ads.google_ads.v1.proto.errors import keyword_plan_error_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_keyword__plan__error__pb2 -from google.ads.google_ads.v1.proto.errors import keyword_plan_idea_error_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_keyword__plan__idea__error__pb2 -from google.ads.google_ads.v1.proto.errors import keyword_plan_keyword_error_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_keyword__plan__keyword__error__pb2 -from google.ads.google_ads.v1.proto.errors import keyword_plan_negative_keyword_error_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_keyword__plan__negative__keyword__error__pb2 -from google.ads.google_ads.v1.proto.errors import label_error_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_label__error__pb2 -from google.ads.google_ads.v1.proto.errors import language_code_error_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_language__code__error__pb2 -from google.ads.google_ads.v1.proto.errors import list_operation_error_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_list__operation__error__pb2 -from google.ads.google_ads.v1.proto.errors import manager_link_error_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_manager__link__error__pb2 -from google.ads.google_ads.v1.proto.errors import media_bundle_error_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_media__bundle__error__pb2 -from google.ads.google_ads.v1.proto.errors import media_file_error_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_media__file__error__pb2 -from google.ads.google_ads.v1.proto.errors import media_upload_error_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_media__upload__error__pb2 -from google.ads.google_ads.v1.proto.errors import multiplier_error_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_multiplier__error__pb2 -from google.ads.google_ads.v1.proto.errors import mutate_error_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_mutate__error__pb2 -from google.ads.google_ads.v1.proto.errors import mutate_job_error_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_mutate__job__error__pb2 -from google.ads.google_ads.v1.proto.errors import new_resource_creation_error_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_new__resource__creation__error__pb2 -from google.ads.google_ads.v1.proto.errors import not_empty_error_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_not__empty__error__pb2 -from google.ads.google_ads.v1.proto.errors import not_whitelisted_error_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_not__whitelisted__error__pb2 -from google.ads.google_ads.v1.proto.errors import null_error_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_null__error__pb2 -from google.ads.google_ads.v1.proto.errors import operation_access_denied_error_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_operation__access__denied__error__pb2 -from google.ads.google_ads.v1.proto.errors import operator_error_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_operator__error__pb2 -from google.ads.google_ads.v1.proto.errors import partial_failure_error_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_partial__failure__error__pb2 -from google.ads.google_ads.v1.proto.errors import policy_finding_error_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_policy__finding__error__pb2 -from google.ads.google_ads.v1.proto.errors import policy_validation_parameter_error_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_policy__validation__parameter__error__pb2 -from google.ads.google_ads.v1.proto.errors import policy_violation_error_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_policy__violation__error__pb2 -from google.ads.google_ads.v1.proto.errors import query_error_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_query__error__pb2 -from google.ads.google_ads.v1.proto.errors import quota_error_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_quota__error__pb2 -from google.ads.google_ads.v1.proto.errors import range_error_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_range__error__pb2 -from google.ads.google_ads.v1.proto.errors import recommendation_error_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_recommendation__error__pb2 -from google.ads.google_ads.v1.proto.errors import region_code_error_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_region__code__error__pb2 -from google.ads.google_ads.v1.proto.errors import request_error_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_request__error__pb2 -from google.ads.google_ads.v1.proto.errors import resource_access_denied_error_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_resource__access__denied__error__pb2 -from google.ads.google_ads.v1.proto.errors import resource_count_limit_exceeded_error_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_resource__count__limit__exceeded__error__pb2 -from google.ads.google_ads.v1.proto.errors import setting_error_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_setting__error__pb2 -from google.ads.google_ads.v1.proto.errors import shared_criterion_error_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_shared__criterion__error__pb2 -from google.ads.google_ads.v1.proto.errors import shared_set_error_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_shared__set__error__pb2 -from google.ads.google_ads.v1.proto.errors import size_limit_error_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_size__limit__error__pb2 -from google.ads.google_ads.v1.proto.errors import string_format_error_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_string__format__error__pb2 -from google.ads.google_ads.v1.proto.errors import string_length_error_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_string__length__error__pb2 -from google.ads.google_ads.v1.proto.errors import url_field_error_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_url__field__error__pb2 -from google.ads.google_ads.v1.proto.errors import user_list_error_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_user__list__error__pb2 -from google.ads.google_ads.v1.proto.errors import youtube_video_registration_error_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_youtube__video__registration__error__pb2 -from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/errors/errors.proto', - package='google.ads.googleads.v1.errors', - syntax='proto3', - serialized_options=_b('\n\"com.google.ads.googleads.v1.errorsB\013ErrorsProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V1.Errors\312\002\036Google\\Ads\\GoogleAds\\V1\\Errors\352\002\"Google::Ads::GoogleAds::V1::Errors'), - serialized_pb=_b('\n1google/ads/googleads_v1/proto/errors/errors.proto\x12\x1egoogle.ads.googleads.v1.errors\x1a\x31google/ads/googleads_v1/proto/common/policy.proto\x1a\x30google/ads/googleads_v1/proto/common/value.proto\x1aHgoogle/ads/googleads_v1/proto/errors/account_budget_proposal_error.proto\x1a>google/ads/googleads_v1/proto/errors/ad_customizer_error.proto\x1a\x33google/ads/googleads_v1/proto/errors/ad_error.proto\x1agoogle/ads/googleads_v1/proto/errors/ad_group_feed_error.proto\x1a=google/ads/googleads_v1/proto/errors/ad_parameter_error.proto\x1a;google/ads/googleads_v1/proto/errors/ad_sharing_error.proto\x1a\x34google/ads/googleads_v1/proto/errors/adx_error.proto\x1a\x36google/ads/googleads_v1/proto/errors/asset_error.proto\x1a?google/ads/googleads_v1/proto/errors/authentication_error.proto\x1a>google/ads/googleads_v1/proto/errors/authorization_error.proto\x1a\x38google/ads/googleads_v1/proto/errors/bidding_error.proto\x1a\x41google/ads/googleads_v1/proto/errors/bidding_strategy_error.proto\x1a>google/ads/googleads_v1/proto/errors/billing_setup_error.proto\x1a@google/ads/googleads_v1/proto/errors/campaign_budget_error.proto\x1a\x43google/ads/googleads_v1/proto/errors/campaign_criterion_error.proto\x1a?google/ads/googleads_v1/proto/errors/campaign_draft_error.proto\x1a\x39google/ads/googleads_v1/proto/errors/campaign_error.proto\x1a\x44google/ads/googleads_v1/proto/errors/campaign_experiment_error.proto\x1a>google/ads/googleads_v1/proto/errors/campaign_feed_error.proto\x1a\x44google/ads/googleads_v1/proto/errors/campaign_shared_set_error.proto\x1a>google/ads/googleads_v1/proto/errors/change_status_error.proto\x1a@google/ads/googleads_v1/proto/errors/collection_size_error.proto\x1a\x38google/ads/googleads_v1/proto/errors/context_error.proto\x1a\x42google/ads/googleads_v1/proto/errors/conversion_action_error.proto\x1aMgoogle/ads/googleads_v1/proto/errors/conversion_adjustment_upload_error.proto\x1a\x42google/ads/googleads_v1/proto/errors/conversion_upload_error.proto\x1a=google/ads/googleads_v1/proto/errors/country_code_error.proto\x1a:google/ads/googleads_v1/proto/errors/criterion_error.proto\x1a@google/ads/googleads_v1/proto/errors/custom_interest_error.proto\x1a\x45google/ads/googleads_v1/proto/errors/customer_client_link_error.proto\x1a\x39google/ads/googleads_v1/proto/errors/customer_error.proto\x1a>google/ads/googleads_v1/proto/errors/customer_feed_error.proto\x1a\x46google/ads/googleads_v1/proto/errors/customer_manager_link_error.proto\x1a\x39google/ads/googleads_v1/proto/errors/database_error.proto\x1a\x35google/ads/googleads_v1/proto/errors/date_error.proto\x1a;google/ads/googleads_v1/proto/errors/date_range_error.proto\x1a\x39google/ads/googleads_v1/proto/errors/distinct_error.proto\x1a\x35google/ads/googleads_v1/proto/errors/enum_error.proto\x1a\x44google/ads/googleads_v1/proto/errors/extension_feed_item_error.proto\x1a\x42google/ads/googleads_v1/proto/errors/extension_setting_error.proto\x1aIgoogle/ads/googleads_v1/proto/errors/feed_attribute_reference_error.proto\x1a\x35google/ads/googleads_v1/proto/errors/feed_error.proto\x1a:google/ads/googleads_v1/proto/errors/feed_item_error.proto\x1a\x41google/ads/googleads_v1/proto/errors/feed_item_target_error.proto\x1a\x45google/ads/googleads_v1/proto/errors/feed_item_validation_error.proto\x1a=google/ads/googleads_v1/proto/errors/feed_mapping_error.proto\x1a\x36google/ads/googleads_v1/proto/errors/field_error.proto\x1a;google/ads/googleads_v1/proto/errors/field_mask_error.proto\x1a\x39google/ads/googleads_v1/proto/errors/function_error.proto\x1a\x41google/ads/googleads_v1/proto/errors/function_parsing_error.proto\x1aOgoogle/ads/googleads_v1/proto/errors/geo_target_constant_suggestion_error.proto\x1a\x37google/ads/googleads_v1/proto/errors/header_error.proto\x1a\x33google/ads/googleads_v1/proto/errors/id_error.proto\x1a\x36google/ads/googleads_v1/proto/errors/image_error.proto\x1a\x39google/ads/googleads_v1/proto/errors/internal_error.proto\x1a\x46google/ads/googleads_v1/proto/errors/keyword_plan_ad_group_error.proto\x1a\x46google/ads/googleads_v1/proto/errors/keyword_plan_campaign_error.proto\x1a=google/ads/googleads_v1/proto/errors/keyword_plan_error.proto\x1a\x42google/ads/googleads_v1/proto/errors/keyword_plan_idea_error.proto\x1a\x45google/ads/googleads_v1/proto/errors/keyword_plan_keyword_error.proto\x1aNgoogle/ads/googleads_v1/proto/errors/keyword_plan_negative_keyword_error.proto\x1a\x36google/ads/googleads_v1/proto/errors/label_error.proto\x1a>google/ads/googleads_v1/proto/errors/language_code_error.proto\x1a?google/ads/googleads_v1/proto/errors/list_operation_error.proto\x1a=google/ads/googleads_v1/proto/errors/manager_link_error.proto\x1a=google/ads/googleads_v1/proto/errors/media_bundle_error.proto\x1a;google/ads/googleads_v1/proto/errors/media_file_error.proto\x1a=google/ads/googleads_v1/proto/errors/media_upload_error.proto\x1a;google/ads/googleads_v1/proto/errors/multiplier_error.proto\x1a\x37google/ads/googleads_v1/proto/errors/mutate_error.proto\x1a;google/ads/googleads_v1/proto/errors/mutate_job_error.proto\x1a\x46google/ads/googleads_v1/proto/errors/new_resource_creation_error.proto\x1a:google/ads/googleads_v1/proto/errors/not_empty_error.proto\x1a@google/ads/googleads_v1/proto/errors/not_whitelisted_error.proto\x1a\x35google/ads/googleads_v1/proto/errors/null_error.proto\x1aHgoogle/ads/googleads_v1/proto/errors/operation_access_denied_error.proto\x1a\x39google/ads/googleads_v1/proto/errors/operator_error.proto\x1a@google/ads/googleads_v1/proto/errors/partial_failure_error.proto\x1a?google/ads/googleads_v1/proto/errors/policy_finding_error.proto\x1aLgoogle/ads/googleads_v1/proto/errors/policy_validation_parameter_error.proto\x1a\x41google/ads/googleads_v1/proto/errors/policy_violation_error.proto\x1a\x36google/ads/googleads_v1/proto/errors/query_error.proto\x1a\x36google/ads/googleads_v1/proto/errors/quota_error.proto\x1a\x36google/ads/googleads_v1/proto/errors/range_error.proto\x1a?google/ads/googleads_v1/proto/errors/recommendation_error.proto\x1agoogle/ads/googleads_v1/proto/errors/string_format_error.proto\x1a>google/ads/googleads_v1/proto/errors/string_length_error.proto\x1a:google/ads/googleads_v1/proto/errors/url_field_error.proto\x1a:google/ads/googleads_v1/proto/errors/user_list_error.proto\x1aKgoogle/ads/googleads_v1/proto/errors/youtube_video_registration_error.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1cgoogle/api/annotations.proto\"R\n\x10GoogleAdsFailure\x12>\n\x06\x65rrors\x18\x01 \x03(\x0b\x32..google.ads.googleads.v1.errors.GoogleAdsError\"\x98\x02\n\x0eGoogleAdsError\x12=\n\nerror_code\x18\x01 \x01(\x0b\x32).google.ads.googleads.v1.errors.ErrorCode\x12\x0f\n\x07message\x18\x02 \x01(\t\x12\x36\n\x07trigger\x18\x03 \x01(\x0b\x32%.google.ads.googleads.v1.common.Value\x12?\n\x08location\x18\x04 \x01(\x0b\x32-.google.ads.googleads.v1.errors.ErrorLocation\x12=\n\x07\x64\x65tails\x18\x05 \x01(\x0b\x32,.google.ads.googleads.v1.errors.ErrorDetails\"\xb1S\n\tErrorCode\x12V\n\rrequest_error\x18\x01 \x01(\x0e\x32=.google.ads.googleads.v1.errors.RequestErrorEnum.RequestErrorH\x00\x12o\n\x16\x62idding_strategy_error\x18\x02 \x01(\x0e\x32M.google.ads.googleads.v1.errors.BiddingStrategyErrorEnum.BiddingStrategyErrorH\x00\x12Z\n\x0furl_field_error\x18\x03 \x01(\x0e\x32?.google.ads.googleads.v1.errors.UrlFieldErrorEnum.UrlFieldErrorH\x00\x12i\n\x14list_operation_error\x18\x04 \x01(\x0e\x32I.google.ads.googleads.v1.errors.ListOperationErrorEnum.ListOperationErrorH\x00\x12P\n\x0bquery_error\x18\x05 \x01(\x0e\x32\x39.google.ads.googleads.v1.errors.QueryErrorEnum.QueryErrorH\x00\x12S\n\x0cmutate_error\x18\x07 \x01(\x0e\x32;.google.ads.googleads.v1.errors.MutateErrorEnum.MutateErrorH\x00\x12]\n\x10\x66ield_mask_error\x18\x08 \x01(\x0e\x32\x41.google.ads.googleads.v1.errors.FieldMaskErrorEnum.FieldMaskErrorH\x00\x12h\n\x13\x61uthorization_error\x18\t \x01(\x0e\x32I.google.ads.googleads.v1.errors.AuthorizationErrorEnum.AuthorizationErrorH\x00\x12Y\n\x0einternal_error\x18\n \x01(\x0e\x32?.google.ads.googleads.v1.errors.InternalErrorEnum.InternalErrorH\x00\x12P\n\x0bquota_error\x18\x0b \x01(\x0e\x32\x39.google.ads.googleads.v1.errors.QuotaErrorEnum.QuotaErrorH\x00\x12G\n\x08\x61\x64_error\x18\x0c \x01(\x0e\x32\x33.google.ads.googleads.v1.errors.AdErrorEnum.AdErrorH\x00\x12W\n\x0e\x61\x64_group_error\x18\r \x01(\x0e\x32=.google.ads.googleads.v1.errors.AdGroupErrorEnum.AdGroupErrorH\x00\x12l\n\x15\x63\x61mpaign_budget_error\x18\x0e \x01(\x0e\x32K.google.ads.googleads.v1.errors.CampaignBudgetErrorEnum.CampaignBudgetErrorH\x00\x12Y\n\x0e\x63\x61mpaign_error\x18\x0f \x01(\x0e\x32?.google.ads.googleads.v1.errors.CampaignErrorEnum.CampaignErrorH\x00\x12k\n\x14\x61uthentication_error\x18\x11 \x01(\x0e\x32K.google.ads.googleads.v1.errors.AuthenticationErrorEnum.AuthenticationErrorH\x00\x12s\n\x18\x61\x64_group_criterion_error\x18\x12 \x01(\x0e\x32O.google.ads.googleads.v1.errors.AdGroupCriterionErrorEnum.AdGroupCriterionErrorH\x00\x12\x66\n\x13\x61\x64_customizer_error\x18\x13 \x01(\x0e\x32G.google.ads.googleads.v1.errors.AdCustomizerErrorEnum.AdCustomizerErrorH\x00\x12^\n\x11\x61\x64_group_ad_error\x18\x15 \x01(\x0e\x32\x41.google.ads.googleads.v1.errors.AdGroupAdErrorEnum.AdGroupAdErrorH\x00\x12]\n\x10\x61\x64_sharing_error\x18\x18 \x01(\x0e\x32\x41.google.ads.googleads.v1.errors.AdSharingErrorEnum.AdSharingErrorH\x00\x12J\n\tadx_error\x18\x19 \x01(\x0e\x32\x35.google.ads.googleads.v1.errors.AdxErrorEnum.AdxErrorH\x00\x12P\n\x0b\x61sset_error\x18k \x01(\x0e\x32\x39.google.ads.googleads.v1.errors.AssetErrorEnum.AssetErrorH\x00\x12V\n\rbidding_error\x18\x1a \x01(\x0e\x32=.google.ads.googleads.v1.errors.BiddingErrorEnum.BiddingErrorH\x00\x12u\n\x18\x63\x61mpaign_criterion_error\x18\x1d \x01(\x0e\x32Q.google.ads.googleads.v1.errors.CampaignCriterionErrorEnum.CampaignCriterionErrorH\x00\x12l\n\x15\x63ollection_size_error\x18\x1f \x01(\x0e\x32K.google.ads.googleads.v1.errors.CollectionSizeErrorEnum.CollectionSizeErrorH\x00\x12\x63\n\x12\x63ountry_code_error\x18m \x01(\x0e\x32\x45.google.ads.googleads.v1.errors.CountryCodeErrorEnum.CountryCodeErrorH\x00\x12\\\n\x0f\x63riterion_error\x18 \x01(\x0e\x32\x41.google.ads.googleads.v1.errors.CriterionErrorEnum.CriterionErrorH\x00\x12Y\n\x0e\x63ustomer_error\x18Z \x01(\x0e\x32?.google.ads.googleads.v1.errors.CustomerErrorEnum.CustomerErrorH\x00\x12M\n\ndate_error\x18! \x01(\x0e\x32\x37.google.ads.googleads.v1.errors.DateErrorEnum.DateErrorH\x00\x12]\n\x10\x64\x61te_range_error\x18\" \x01(\x0e\x32\x41.google.ads.googleads.v1.errors.DateRangeErrorEnum.DateRangeErrorH\x00\x12Y\n\x0e\x64istinct_error\x18# \x01(\x0e\x32?.google.ads.googleads.v1.errors.DistinctErrorEnum.DistinctErrorH\x00\x12\x85\x01\n\x1e\x66\x65\x65\x64_attribute_reference_error\x18$ \x01(\x0e\x32[.google.ads.googleads.v1.errors.FeedAttributeReferenceErrorEnum.FeedAttributeReferenceErrorH\x00\x12Y\n\x0e\x66unction_error\x18% \x01(\x0e\x32?.google.ads.googleads.v1.errors.FunctionErrorEnum.FunctionErrorH\x00\x12o\n\x16\x66unction_parsing_error\x18& \x01(\x0e\x32M.google.ads.googleads.v1.errors.FunctionParsingErrorEnum.FunctionParsingErrorH\x00\x12G\n\x08id_error\x18\' \x01(\x0e\x32\x33.google.ads.googleads.v1.errors.IdErrorEnum.IdErrorH\x00\x12P\n\x0bimage_error\x18( \x01(\x0e\x32\x39.google.ads.googleads.v1.errors.ImageErrorEnum.ImageErrorH\x00\x12\x66\n\x13language_code_error\x18n \x01(\x0e\x32G.google.ads.googleads.v1.errors.LanguageCodeErrorEnum.LanguageCodeErrorH\x00\x12\x63\n\x12media_bundle_error\x18* \x01(\x0e\x32\x45.google.ads.googleads.v1.errors.MediaBundleErrorEnum.MediaBundleErrorH\x00\x12\x63\n\x12media_upload_error\x18t \x01(\x0e\x32\x45.google.ads.googleads.v1.errors.MediaUploadErrorEnum.MediaUploadErrorH\x00\x12]\n\x10media_file_error\x18V \x01(\x0e\x32\x41.google.ads.googleads.v1.errors.MediaFileErrorEnum.MediaFileErrorH\x00\x12_\n\x10multiplier_error\x18, \x01(\x0e\x32\x43.google.ads.googleads.v1.errors.MultiplierErrorEnum.MultiplierErrorH\x00\x12|\n\x1bnew_resource_creation_error\x18- \x01(\x0e\x32U.google.ads.googleads.v1.errors.NewResourceCreationErrorEnum.NewResourceCreationErrorH\x00\x12Z\n\x0fnot_empty_error\x18. \x01(\x0e\x32?.google.ads.googleads.v1.errors.NotEmptyErrorEnum.NotEmptyErrorH\x00\x12M\n\nnull_error\x18/ \x01(\x0e\x32\x37.google.ads.googleads.v1.errors.NullErrorEnum.NullErrorH\x00\x12Y\n\x0eoperator_error\x18\x30 \x01(\x0e\x32?.google.ads.googleads.v1.errors.OperatorErrorEnum.OperatorErrorH\x00\x12P\n\x0brange_error\x18\x31 \x01(\x0e\x32\x39.google.ads.googleads.v1.errors.RangeErrorEnum.RangeErrorH\x00\x12k\n\x14recommendation_error\x18: \x01(\x0e\x32K.google.ads.googleads.v1.errors.RecommendationErrorEnum.RecommendationErrorH\x00\x12`\n\x11region_code_error\x18\x33 \x01(\x0e\x32\x43.google.ads.googleads.v1.errors.RegionCodeErrorEnum.RegionCodeErrorH\x00\x12V\n\rsetting_error\x18\x34 \x01(\x0e\x32=.google.ads.googleads.v1.errors.SettingErrorEnum.SettingErrorH\x00\x12\x66\n\x13string_format_error\x18\x35 \x01(\x0e\x32G.google.ads.googleads.v1.errors.StringFormatErrorEnum.StringFormatErrorH\x00\x12\x66\n\x13string_length_error\x18\x36 \x01(\x0e\x32G.google.ads.googleads.v1.errors.StringLengthErrorEnum.StringLengthErrorH\x00\x12\x82\x01\n\x1doperation_access_denied_error\x18\x37 \x01(\x0e\x32Y.google.ads.googleads.v1.errors.OperationAccessDeniedErrorEnum.OperationAccessDeniedErrorH\x00\x12\x7f\n\x1cresource_access_denied_error\x18\x38 \x01(\x0e\x32W.google.ads.googleads.v1.errors.ResourceAccessDeniedErrorEnum.ResourceAccessDeniedErrorH\x00\x12\x92\x01\n#resource_count_limit_exceeded_error\x18\x39 \x01(\x0e\x32\x63.google.ads.googleads.v1.errors.ResourceCountLimitExceededErrorEnum.ResourceCountLimitExceededErrorH\x00\x12\x8b\x01\n youtube_video_registration_error\x18u \x01(\x0e\x32_.google.ads.googleads.v1.errors.YoutubeVideoRegistrationErrorEnum.YoutubeVideoRegistrationErrorH\x00\x12z\n\x1b\x61\x64_group_bid_modifier_error\x18; \x01(\x0e\x32S.google.ads.googleads.v1.errors.AdGroupBidModifierErrorEnum.AdGroupBidModifierErrorH\x00\x12V\n\rcontext_error\x18< \x01(\x0e\x32=.google.ads.googleads.v1.errors.ContextErrorEnum.ContextErrorH\x00\x12P\n\x0b\x66ield_error\x18= \x01(\x0e\x32\x39.google.ads.googleads.v1.errors.FieldErrorEnum.FieldErrorH\x00\x12]\n\x10shared_set_error\x18> \x01(\x0e\x32\x41.google.ads.googleads.v1.errors.SharedSetErrorEnum.SharedSetErrorH\x00\x12o\n\x16shared_criterion_error\x18? \x01(\x0e\x32M.google.ads.googleads.v1.errors.SharedCriterionErrorEnum.SharedCriterionErrorH\x00\x12v\n\x19\x63\x61mpaign_shared_set_error\x18@ \x01(\x0e\x32Q.google.ads.googleads.v1.errors.CampaignSharedSetErrorEnum.CampaignSharedSetErrorH\x00\x12r\n\x17\x63onversion_action_error\x18\x41 \x01(\x0e\x32O.google.ads.googleads.v1.errors.ConversionActionErrorEnum.ConversionActionErrorH\x00\x12\x91\x01\n\"conversion_adjustment_upload_error\x18s \x01(\x0e\x32\x63.google.ads.googleads.v1.errors.ConversionAdjustmentUploadErrorEnum.ConversionAdjustmentUploadErrorH\x00\x12r\n\x17\x63onversion_upload_error\x18o \x01(\x0e\x32O.google.ads.googleads.v1.errors.ConversionUploadErrorEnum.ConversionUploadErrorH\x00\x12S\n\x0cheader_error\x18\x42 \x01(\x0e\x32;.google.ads.googleads.v1.errors.HeaderErrorEnum.HeaderErrorH\x00\x12Y\n\x0e\x64\x61tabase_error\x18\x43 \x01(\x0e\x32?.google.ads.googleads.v1.errors.DatabaseErrorEnum.DatabaseErrorH\x00\x12i\n\x14policy_finding_error\x18\x44 \x01(\x0e\x32I.google.ads.googleads.v1.errors.PolicyFindingErrorEnum.PolicyFindingErrorH\x00\x12M\n\nenum_error\x18\x46 \x01(\x0e\x32\x37.google.ads.googleads.v1.errors.EnumErrorEnum.EnumErrorH\x00\x12\x63\n\x12keyword_plan_error\x18G \x01(\x0e\x32\x45.google.ads.googleads.v1.errors.KeywordPlanErrorEnum.KeywordPlanErrorH\x00\x12|\n\x1bkeyword_plan_campaign_error\x18H \x01(\x0e\x32U.google.ads.googleads.v1.errors.KeywordPlanCampaignErrorEnum.KeywordPlanCampaignErrorH\x00\x12\x92\x01\n#keyword_plan_negative_keyword_error\x18I \x01(\x0e\x32\x63.google.ads.googleads.v1.errors.KeywordPlanNegativeKeywordErrorEnum.KeywordPlanNegativeKeywordErrorH\x00\x12z\n\x1bkeyword_plan_ad_group_error\x18J \x01(\x0e\x32S.google.ads.googleads.v1.errors.KeywordPlanAdGroupErrorEnum.KeywordPlanAdGroupErrorH\x00\x12y\n\x1akeyword_plan_keyword_error\x18K \x01(\x0e\x32S.google.ads.googleads.v1.errors.KeywordPlanKeywordErrorEnum.KeywordPlanKeywordErrorH\x00\x12p\n\x17keyword_plan_idea_error\x18L \x01(\x0e\x32M.google.ads.googleads.v1.errors.KeywordPlanIdeaErrorEnum.KeywordPlanIdeaErrorH\x00\x12\x82\x01\n\x1d\x61\x63\x63ount_budget_proposal_error\x18M \x01(\x0e\x32Y.google.ads.googleads.v1.errors.AccountBudgetProposalErrorEnum.AccountBudgetProposalErrorH\x00\x12Z\n\x0fuser_list_error\x18N \x01(\x0e\x32?.google.ads.googleads.v1.errors.UserListErrorEnum.UserListErrorH\x00\x12\x66\n\x13\x63hange_status_error\x18O \x01(\x0e\x32G.google.ads.googleads.v1.errors.ChangeStatusErrorEnum.ChangeStatusErrorH\x00\x12M\n\nfeed_error\x18P \x01(\x0e\x32\x37.google.ads.googleads.v1.errors.FeedErrorEnum.FeedErrorH\x00\x12\x95\x01\n$geo_target_constant_suggestion_error\x18Q \x01(\x0e\x32\x65.google.ads.googleads.v1.errors.GeoTargetConstantSuggestionErrorEnum.GeoTargetConstantSuggestionErrorH\x00\x12i\n\x14\x63\x61mpaign_draft_error\x18R \x01(\x0e\x32I.google.ads.googleads.v1.errors.CampaignDraftErrorEnum.CampaignDraftErrorH\x00\x12Z\n\x0f\x66\x65\x65\x64_item_error\x18S \x01(\x0e\x32?.google.ads.googleads.v1.errors.FeedItemErrorEnum.FeedItemErrorH\x00\x12P\n\x0blabel_error\x18T \x01(\x0e\x32\x39.google.ads.googleads.v1.errors.LabelErrorEnum.LabelErrorH\x00\x12\x66\n\x13\x62illing_setup_error\x18W \x01(\x0e\x32G.google.ads.googleads.v1.errors.BillingSetupErrorEnum.BillingSetupErrorH\x00\x12y\n\x1a\x63ustomer_client_link_error\x18X \x01(\x0e\x32S.google.ads.googleads.v1.errors.CustomerClientLinkErrorEnum.CustomerClientLinkErrorH\x00\x12|\n\x1b\x63ustomer_manager_link_error\x18[ \x01(\x0e\x32U.google.ads.googleads.v1.errors.CustomerManagerLinkErrorEnum.CustomerManagerLinkErrorH\x00\x12\x63\n\x12\x66\x65\x65\x64_mapping_error\x18\\ \x01(\x0e\x32\x45.google.ads.googleads.v1.errors.FeedMappingErrorEnum.FeedMappingErrorH\x00\x12\x66\n\x13\x63ustomer_feed_error\x18] \x01(\x0e\x32G.google.ads.googleads.v1.errors.CustomerFeedErrorEnum.CustomerFeedErrorH\x00\x12\x64\n\x13\x61\x64_group_feed_error\x18^ \x01(\x0e\x32\x45.google.ads.googleads.v1.errors.AdGroupFeedErrorEnum.AdGroupFeedErrorH\x00\x12\x66\n\x13\x63\x61mpaign_feed_error\x18` \x01(\x0e\x32G.google.ads.googleads.v1.errors.CampaignFeedErrorEnum.CampaignFeedErrorH\x00\x12l\n\x15\x63ustom_interest_error\x18\x61 \x01(\x0e\x32K.google.ads.googleads.v1.errors.CustomInterestErrorEnum.CustomInterestErrorH\x00\x12x\n\x19\x63\x61mpaign_experiment_error\x18\x62 \x01(\x0e\x32S.google.ads.googleads.v1.errors.CampaignExperimentErrorEnum.CampaignExperimentErrorH\x00\x12v\n\x19\x65xtension_feed_item_error\x18\x64 \x01(\x0e\x32Q.google.ads.googleads.v1.errors.ExtensionFeedItemErrorEnum.ExtensionFeedItemErrorH\x00\x12\x63\n\x12\x61\x64_parameter_error\x18\x65 \x01(\x0e\x32\x45.google.ads.googleads.v1.errors.AdParameterErrorEnum.AdParameterErrorH\x00\x12y\n\x1a\x66\x65\x65\x64_item_validation_error\x18\x66 \x01(\x0e\x32S.google.ads.googleads.v1.errors.FeedItemValidationErrorEnum.FeedItemValidationErrorH\x00\x12r\n\x17\x65xtension_setting_error\x18g \x01(\x0e\x32O.google.ads.googleads.v1.errors.ExtensionSettingErrorEnum.ExtensionSettingErrorH\x00\x12m\n\x16\x66\x65\x65\x64_item_target_error\x18h \x01(\x0e\x32K.google.ads.googleads.v1.errors.FeedItemTargetErrorEnum.FeedItemTargetErrorH\x00\x12o\n\x16policy_violation_error\x18i \x01(\x0e\x32M.google.ads.googleads.v1.errors.PolicyViolationErrorEnum.PolicyViolationErrorH\x00\x12]\n\x10mutate_job_error\x18l \x01(\x0e\x32\x41.google.ads.googleads.v1.errors.MutateJobErrorEnum.MutateJobErrorH\x00\x12l\n\x15partial_failure_error\x18p \x01(\x0e\x32K.google.ads.googleads.v1.errors.PartialFailureErrorEnum.PartialFailureErrorH\x00\x12\x8e\x01\n!policy_validation_parameter_error\x18r \x01(\x0e\x32\x61.google.ads.googleads.v1.errors.PolicyValidationParameterErrorEnum.PolicyValidationParameterErrorH\x00\x12]\n\x10size_limit_error\x18v \x01(\x0e\x32\x41.google.ads.googleads.v1.errors.SizeLimitErrorEnum.SizeLimitErrorH\x00\x12l\n\x15not_whitelisted_error\x18x \x01(\x0e\x32K.google.ads.googleads.v1.errors.NotWhitelistedErrorEnum.NotWhitelistedErrorH\x00\x12\x63\n\x12manager_link_error\x18y \x01(\x0e\x32\x45.google.ads.googleads.v1.errors.ManagerLinkErrorEnum.ManagerLinkErrorH\x00\x42\x0c\n\nerror_code\"\xc0\x01\n\rErrorLocation\x12[\n\x13\x66ield_path_elements\x18\x02 \x03(\x0b\x32>.google.ads.googleads.v1.errors.ErrorLocation.FieldPathElement\x1aR\n\x10\x46ieldPathElement\x12\x12\n\nfield_name\x18\x01 \x01(\t\x12*\n\x05index\x18\x02 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\"\xde\x01\n\x0c\x45rrorDetails\x12\x1e\n\x16unpublished_error_code\x18\x01 \x01(\t\x12X\n\x18policy_violation_details\x18\x02 \x01(\x0b\x32\x36.google.ads.googleads.v1.errors.PolicyViolationDetails\x12T\n\x16policy_finding_details\x18\x03 \x01(\x0b\x32\x34.google.ads.googleads.v1.errors.PolicyFindingDetails\"\xb3\x01\n\x16PolicyViolationDetails\x12#\n\x1b\x65xternal_policy_description\x18\x02 \x01(\t\x12?\n\x03key\x18\x04 \x01(\x0b\x32\x32.google.ads.googleads.v1.common.PolicyViolationKey\x12\x1c\n\x14\x65xternal_policy_name\x18\x05 \x01(\t\x12\x15\n\ris_exemptible\x18\x06 \x01(\x08\"f\n\x14PolicyFindingDetails\x12N\n\x14policy_topic_entries\x18\x01 \x03(\x0b\x32\x30.google.ads.googleads.v1.common.PolicyTopicEntryB\xe6\x01\n\"com.google.ads.googleads.v1.errorsB\x0b\x45rrorsProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V1.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V1\\Errors\xea\x02\"Google::Ads::GoogleAds::V1::Errorsb\x06proto3') - , - dependencies=[google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_policy__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_value__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_account__budget__proposal__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_ad__customizer__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_ad__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_ad__group__ad__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_ad__group__bid__modifier__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_ad__group__criterion__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_ad__group__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_ad__group__feed__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_ad__parameter__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_ad__sharing__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_adx__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_asset__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_authentication__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_authorization__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_bidding__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_bidding__strategy__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_billing__setup__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_campaign__budget__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_campaign__criterion__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_campaign__draft__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_campaign__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_campaign__experiment__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_campaign__feed__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_campaign__shared__set__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_change__status__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_collection__size__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_context__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_conversion__action__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_conversion__adjustment__upload__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_conversion__upload__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_country__code__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_criterion__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_custom__interest__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_customer__client__link__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_customer__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_customer__feed__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_customer__manager__link__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_database__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_date__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_date__range__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_distinct__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_enum__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_extension__feed__item__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_extension__setting__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_feed__attribute__reference__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_feed__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_feed__item__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_feed__item__target__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_feed__item__validation__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_feed__mapping__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_field__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_field__mask__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_function__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_function__parsing__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_geo__target__constant__suggestion__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_header__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_id__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_image__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_internal__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_keyword__plan__ad__group__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_keyword__plan__campaign__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_keyword__plan__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_keyword__plan__idea__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_keyword__plan__keyword__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_keyword__plan__negative__keyword__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_label__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_language__code__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_list__operation__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_manager__link__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_media__bundle__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_media__file__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_media__upload__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_multiplier__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_mutate__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_mutate__job__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_new__resource__creation__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_not__empty__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_not__whitelisted__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_null__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_operation__access__denied__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_operator__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_partial__failure__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_policy__finding__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_policy__validation__parameter__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_policy__violation__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_query__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_quota__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_range__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_recommendation__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_region__code__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_request__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_resource__access__denied__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_resource__count__limit__exceeded__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_setting__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_shared__criterion__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_shared__set__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_size__limit__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_string__format__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_string__length__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_url__field__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_user__list__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_youtube__video__registration__error__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - - -_GOOGLEADSFAILURE = _descriptor.Descriptor( - name='GoogleAdsFailure', - full_name='google.ads.googleads.v1.errors.GoogleAdsFailure', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='errors', full_name='google.ads.googleads.v1.errors.GoogleAdsFailure.errors', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=6785, - serialized_end=6867, -) - - -_GOOGLEADSERROR = _descriptor.Descriptor( - name='GoogleAdsError', - full_name='google.ads.googleads.v1.errors.GoogleAdsError', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='error_code', full_name='google.ads.googleads.v1.errors.GoogleAdsError.error_code', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='message', full_name='google.ads.googleads.v1.errors.GoogleAdsError.message', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='trigger', full_name='google.ads.googleads.v1.errors.GoogleAdsError.trigger', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='location', full_name='google.ads.googleads.v1.errors.GoogleAdsError.location', index=3, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='details', full_name='google.ads.googleads.v1.errors.GoogleAdsError.details', index=4, - number=5, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=6870, - serialized_end=7150, -) - - -_ERRORCODE = _descriptor.Descriptor( - name='ErrorCode', - full_name='google.ads.googleads.v1.errors.ErrorCode', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='request_error', full_name='google.ads.googleads.v1.errors.ErrorCode.request_error', index=0, - number=1, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='bidding_strategy_error', full_name='google.ads.googleads.v1.errors.ErrorCode.bidding_strategy_error', index=1, - number=2, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='url_field_error', full_name='google.ads.googleads.v1.errors.ErrorCode.url_field_error', index=2, - number=3, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='list_operation_error', full_name='google.ads.googleads.v1.errors.ErrorCode.list_operation_error', index=3, - number=4, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='query_error', full_name='google.ads.googleads.v1.errors.ErrorCode.query_error', index=4, - number=5, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='mutate_error', full_name='google.ads.googleads.v1.errors.ErrorCode.mutate_error', index=5, - number=7, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='field_mask_error', full_name='google.ads.googleads.v1.errors.ErrorCode.field_mask_error', index=6, - number=8, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='authorization_error', full_name='google.ads.googleads.v1.errors.ErrorCode.authorization_error', index=7, - number=9, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='internal_error', full_name='google.ads.googleads.v1.errors.ErrorCode.internal_error', index=8, - number=10, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='quota_error', full_name='google.ads.googleads.v1.errors.ErrorCode.quota_error', index=9, - number=11, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='ad_error', full_name='google.ads.googleads.v1.errors.ErrorCode.ad_error', index=10, - number=12, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='ad_group_error', full_name='google.ads.googleads.v1.errors.ErrorCode.ad_group_error', index=11, - number=13, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='campaign_budget_error', full_name='google.ads.googleads.v1.errors.ErrorCode.campaign_budget_error', index=12, - number=14, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='campaign_error', full_name='google.ads.googleads.v1.errors.ErrorCode.campaign_error', index=13, - number=15, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='authentication_error', full_name='google.ads.googleads.v1.errors.ErrorCode.authentication_error', index=14, - number=17, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='ad_group_criterion_error', full_name='google.ads.googleads.v1.errors.ErrorCode.ad_group_criterion_error', index=15, - number=18, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='ad_customizer_error', full_name='google.ads.googleads.v1.errors.ErrorCode.ad_customizer_error', index=16, - number=19, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='ad_group_ad_error', full_name='google.ads.googleads.v1.errors.ErrorCode.ad_group_ad_error', index=17, - number=21, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='ad_sharing_error', full_name='google.ads.googleads.v1.errors.ErrorCode.ad_sharing_error', index=18, - number=24, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='adx_error', full_name='google.ads.googleads.v1.errors.ErrorCode.adx_error', index=19, - number=25, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='asset_error', full_name='google.ads.googleads.v1.errors.ErrorCode.asset_error', index=20, - number=107, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='bidding_error', full_name='google.ads.googleads.v1.errors.ErrorCode.bidding_error', index=21, - number=26, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='campaign_criterion_error', full_name='google.ads.googleads.v1.errors.ErrorCode.campaign_criterion_error', index=22, - number=29, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='collection_size_error', full_name='google.ads.googleads.v1.errors.ErrorCode.collection_size_error', index=23, - number=31, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='country_code_error', full_name='google.ads.googleads.v1.errors.ErrorCode.country_code_error', index=24, - number=109, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='criterion_error', full_name='google.ads.googleads.v1.errors.ErrorCode.criterion_error', index=25, - number=32, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='customer_error', full_name='google.ads.googleads.v1.errors.ErrorCode.customer_error', index=26, - number=90, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='date_error', full_name='google.ads.googleads.v1.errors.ErrorCode.date_error', index=27, - number=33, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='date_range_error', full_name='google.ads.googleads.v1.errors.ErrorCode.date_range_error', index=28, - number=34, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='distinct_error', full_name='google.ads.googleads.v1.errors.ErrorCode.distinct_error', index=29, - number=35, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='feed_attribute_reference_error', full_name='google.ads.googleads.v1.errors.ErrorCode.feed_attribute_reference_error', index=30, - number=36, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='function_error', full_name='google.ads.googleads.v1.errors.ErrorCode.function_error', index=31, - number=37, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='function_parsing_error', full_name='google.ads.googleads.v1.errors.ErrorCode.function_parsing_error', index=32, - number=38, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='id_error', full_name='google.ads.googleads.v1.errors.ErrorCode.id_error', index=33, - number=39, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='image_error', full_name='google.ads.googleads.v1.errors.ErrorCode.image_error', index=34, - number=40, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='language_code_error', full_name='google.ads.googleads.v1.errors.ErrorCode.language_code_error', index=35, - number=110, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='media_bundle_error', full_name='google.ads.googleads.v1.errors.ErrorCode.media_bundle_error', index=36, - number=42, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='media_upload_error', full_name='google.ads.googleads.v1.errors.ErrorCode.media_upload_error', index=37, - number=116, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='media_file_error', full_name='google.ads.googleads.v1.errors.ErrorCode.media_file_error', index=38, - number=86, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='multiplier_error', full_name='google.ads.googleads.v1.errors.ErrorCode.multiplier_error', index=39, - number=44, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='new_resource_creation_error', full_name='google.ads.googleads.v1.errors.ErrorCode.new_resource_creation_error', index=40, - number=45, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='not_empty_error', full_name='google.ads.googleads.v1.errors.ErrorCode.not_empty_error', index=41, - number=46, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='null_error', full_name='google.ads.googleads.v1.errors.ErrorCode.null_error', index=42, - number=47, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='operator_error', full_name='google.ads.googleads.v1.errors.ErrorCode.operator_error', index=43, - number=48, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='range_error', full_name='google.ads.googleads.v1.errors.ErrorCode.range_error', index=44, - number=49, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='recommendation_error', full_name='google.ads.googleads.v1.errors.ErrorCode.recommendation_error', index=45, - number=58, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='region_code_error', full_name='google.ads.googleads.v1.errors.ErrorCode.region_code_error', index=46, - number=51, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='setting_error', full_name='google.ads.googleads.v1.errors.ErrorCode.setting_error', index=47, - number=52, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='string_format_error', full_name='google.ads.googleads.v1.errors.ErrorCode.string_format_error', index=48, - number=53, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='string_length_error', full_name='google.ads.googleads.v1.errors.ErrorCode.string_length_error', index=49, - number=54, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='operation_access_denied_error', full_name='google.ads.googleads.v1.errors.ErrorCode.operation_access_denied_error', index=50, - number=55, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='resource_access_denied_error', full_name='google.ads.googleads.v1.errors.ErrorCode.resource_access_denied_error', index=51, - number=56, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='resource_count_limit_exceeded_error', full_name='google.ads.googleads.v1.errors.ErrorCode.resource_count_limit_exceeded_error', index=52, - number=57, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='youtube_video_registration_error', full_name='google.ads.googleads.v1.errors.ErrorCode.youtube_video_registration_error', index=53, - number=117, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='ad_group_bid_modifier_error', full_name='google.ads.googleads.v1.errors.ErrorCode.ad_group_bid_modifier_error', index=54, - number=59, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='context_error', full_name='google.ads.googleads.v1.errors.ErrorCode.context_error', index=55, - number=60, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='field_error', full_name='google.ads.googleads.v1.errors.ErrorCode.field_error', index=56, - number=61, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='shared_set_error', full_name='google.ads.googleads.v1.errors.ErrorCode.shared_set_error', index=57, - number=62, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='shared_criterion_error', full_name='google.ads.googleads.v1.errors.ErrorCode.shared_criterion_error', index=58, - number=63, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='campaign_shared_set_error', full_name='google.ads.googleads.v1.errors.ErrorCode.campaign_shared_set_error', index=59, - number=64, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='conversion_action_error', full_name='google.ads.googleads.v1.errors.ErrorCode.conversion_action_error', index=60, - number=65, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='conversion_adjustment_upload_error', full_name='google.ads.googleads.v1.errors.ErrorCode.conversion_adjustment_upload_error', index=61, - number=115, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='conversion_upload_error', full_name='google.ads.googleads.v1.errors.ErrorCode.conversion_upload_error', index=62, - number=111, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='header_error', full_name='google.ads.googleads.v1.errors.ErrorCode.header_error', index=63, - number=66, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='database_error', full_name='google.ads.googleads.v1.errors.ErrorCode.database_error', index=64, - number=67, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='policy_finding_error', full_name='google.ads.googleads.v1.errors.ErrorCode.policy_finding_error', index=65, - number=68, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='enum_error', full_name='google.ads.googleads.v1.errors.ErrorCode.enum_error', index=66, - number=70, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='keyword_plan_error', full_name='google.ads.googleads.v1.errors.ErrorCode.keyword_plan_error', index=67, - number=71, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='keyword_plan_campaign_error', full_name='google.ads.googleads.v1.errors.ErrorCode.keyword_plan_campaign_error', index=68, - number=72, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='keyword_plan_negative_keyword_error', full_name='google.ads.googleads.v1.errors.ErrorCode.keyword_plan_negative_keyword_error', index=69, - number=73, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='keyword_plan_ad_group_error', full_name='google.ads.googleads.v1.errors.ErrorCode.keyword_plan_ad_group_error', index=70, - number=74, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='keyword_plan_keyword_error', full_name='google.ads.googleads.v1.errors.ErrorCode.keyword_plan_keyword_error', index=71, - number=75, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='keyword_plan_idea_error', full_name='google.ads.googleads.v1.errors.ErrorCode.keyword_plan_idea_error', index=72, - number=76, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='account_budget_proposal_error', full_name='google.ads.googleads.v1.errors.ErrorCode.account_budget_proposal_error', index=73, - number=77, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='user_list_error', full_name='google.ads.googleads.v1.errors.ErrorCode.user_list_error', index=74, - number=78, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='change_status_error', full_name='google.ads.googleads.v1.errors.ErrorCode.change_status_error', index=75, - number=79, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='feed_error', full_name='google.ads.googleads.v1.errors.ErrorCode.feed_error', index=76, - number=80, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='geo_target_constant_suggestion_error', full_name='google.ads.googleads.v1.errors.ErrorCode.geo_target_constant_suggestion_error', index=77, - number=81, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='campaign_draft_error', full_name='google.ads.googleads.v1.errors.ErrorCode.campaign_draft_error', index=78, - number=82, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='feed_item_error', full_name='google.ads.googleads.v1.errors.ErrorCode.feed_item_error', index=79, - number=83, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='label_error', full_name='google.ads.googleads.v1.errors.ErrorCode.label_error', index=80, - number=84, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='billing_setup_error', full_name='google.ads.googleads.v1.errors.ErrorCode.billing_setup_error', index=81, - number=87, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='customer_client_link_error', full_name='google.ads.googleads.v1.errors.ErrorCode.customer_client_link_error', index=82, - number=88, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='customer_manager_link_error', full_name='google.ads.googleads.v1.errors.ErrorCode.customer_manager_link_error', index=83, - number=91, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='feed_mapping_error', full_name='google.ads.googleads.v1.errors.ErrorCode.feed_mapping_error', index=84, - number=92, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='customer_feed_error', full_name='google.ads.googleads.v1.errors.ErrorCode.customer_feed_error', index=85, - number=93, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='ad_group_feed_error', full_name='google.ads.googleads.v1.errors.ErrorCode.ad_group_feed_error', index=86, - number=94, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='campaign_feed_error', full_name='google.ads.googleads.v1.errors.ErrorCode.campaign_feed_error', index=87, - number=96, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='custom_interest_error', full_name='google.ads.googleads.v1.errors.ErrorCode.custom_interest_error', index=88, - number=97, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='campaign_experiment_error', full_name='google.ads.googleads.v1.errors.ErrorCode.campaign_experiment_error', index=89, - number=98, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='extension_feed_item_error', full_name='google.ads.googleads.v1.errors.ErrorCode.extension_feed_item_error', index=90, - number=100, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='ad_parameter_error', full_name='google.ads.googleads.v1.errors.ErrorCode.ad_parameter_error', index=91, - number=101, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='feed_item_validation_error', full_name='google.ads.googleads.v1.errors.ErrorCode.feed_item_validation_error', index=92, - number=102, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='extension_setting_error', full_name='google.ads.googleads.v1.errors.ErrorCode.extension_setting_error', index=93, - number=103, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='feed_item_target_error', full_name='google.ads.googleads.v1.errors.ErrorCode.feed_item_target_error', index=94, - number=104, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='policy_violation_error', full_name='google.ads.googleads.v1.errors.ErrorCode.policy_violation_error', index=95, - number=105, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='mutate_job_error', full_name='google.ads.googleads.v1.errors.ErrorCode.mutate_job_error', index=96, - number=108, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='partial_failure_error', full_name='google.ads.googleads.v1.errors.ErrorCode.partial_failure_error', index=97, - number=112, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='policy_validation_parameter_error', full_name='google.ads.googleads.v1.errors.ErrorCode.policy_validation_parameter_error', index=98, - number=114, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='size_limit_error', full_name='google.ads.googleads.v1.errors.ErrorCode.size_limit_error', index=99, - number=118, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='not_whitelisted_error', full_name='google.ads.googleads.v1.errors.ErrorCode.not_whitelisted_error', index=100, - number=120, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='manager_link_error', full_name='google.ads.googleads.v1.errors.ErrorCode.manager_link_error', index=101, - number=121, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='error_code', full_name='google.ads.googleads.v1.errors.ErrorCode.error_code', - index=0, containing_type=None, fields=[]), - ], - serialized_start=7153, - serialized_end=17826, -) - - -_ERRORLOCATION_FIELDPATHELEMENT = _descriptor.Descriptor( - name='FieldPathElement', - full_name='google.ads.googleads.v1.errors.ErrorLocation.FieldPathElement', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='field_name', full_name='google.ads.googleads.v1.errors.ErrorLocation.FieldPathElement.field_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='index', full_name='google.ads.googleads.v1.errors.ErrorLocation.FieldPathElement.index', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=17939, - serialized_end=18021, -) - -_ERRORLOCATION = _descriptor.Descriptor( - name='ErrorLocation', - full_name='google.ads.googleads.v1.errors.ErrorLocation', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='field_path_elements', full_name='google.ads.googleads.v1.errors.ErrorLocation.field_path_elements', index=0, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[_ERRORLOCATION_FIELDPATHELEMENT, ], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=17829, - serialized_end=18021, -) - - -_ERRORDETAILS = _descriptor.Descriptor( - name='ErrorDetails', - full_name='google.ads.googleads.v1.errors.ErrorDetails', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='unpublished_error_code', full_name='google.ads.googleads.v1.errors.ErrorDetails.unpublished_error_code', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='policy_violation_details', full_name='google.ads.googleads.v1.errors.ErrorDetails.policy_violation_details', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='policy_finding_details', full_name='google.ads.googleads.v1.errors.ErrorDetails.policy_finding_details', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=18024, - serialized_end=18246, -) - - -_POLICYVIOLATIONDETAILS = _descriptor.Descriptor( - name='PolicyViolationDetails', - full_name='google.ads.googleads.v1.errors.PolicyViolationDetails', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='external_policy_description', full_name='google.ads.googleads.v1.errors.PolicyViolationDetails.external_policy_description', index=0, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='key', full_name='google.ads.googleads.v1.errors.PolicyViolationDetails.key', index=1, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='external_policy_name', full_name='google.ads.googleads.v1.errors.PolicyViolationDetails.external_policy_name', index=2, - number=5, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='is_exemptible', full_name='google.ads.googleads.v1.errors.PolicyViolationDetails.is_exemptible', index=3, - number=6, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=18249, - serialized_end=18428, -) - - -_POLICYFINDINGDETAILS = _descriptor.Descriptor( - name='PolicyFindingDetails', - full_name='google.ads.googleads.v1.errors.PolicyFindingDetails', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='policy_topic_entries', full_name='google.ads.googleads.v1.errors.PolicyFindingDetails.policy_topic_entries', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=18430, - serialized_end=18532, -) - -_GOOGLEADSFAILURE.fields_by_name['errors'].message_type = _GOOGLEADSERROR -_GOOGLEADSERROR.fields_by_name['error_code'].message_type = _ERRORCODE -_GOOGLEADSERROR.fields_by_name['trigger'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_value__pb2._VALUE -_GOOGLEADSERROR.fields_by_name['location'].message_type = _ERRORLOCATION -_GOOGLEADSERROR.fields_by_name['details'].message_type = _ERRORDETAILS -_ERRORCODE.fields_by_name['request_error'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_request__error__pb2._REQUESTERRORENUM_REQUESTERROR -_ERRORCODE.fields_by_name['bidding_strategy_error'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_bidding__strategy__error__pb2._BIDDINGSTRATEGYERRORENUM_BIDDINGSTRATEGYERROR -_ERRORCODE.fields_by_name['url_field_error'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_url__field__error__pb2._URLFIELDERRORENUM_URLFIELDERROR -_ERRORCODE.fields_by_name['list_operation_error'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_list__operation__error__pb2._LISTOPERATIONERRORENUM_LISTOPERATIONERROR -_ERRORCODE.fields_by_name['query_error'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_query__error__pb2._QUERYERRORENUM_QUERYERROR -_ERRORCODE.fields_by_name['mutate_error'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_mutate__error__pb2._MUTATEERRORENUM_MUTATEERROR -_ERRORCODE.fields_by_name['field_mask_error'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_field__mask__error__pb2._FIELDMASKERRORENUM_FIELDMASKERROR -_ERRORCODE.fields_by_name['authorization_error'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_authorization__error__pb2._AUTHORIZATIONERRORENUM_AUTHORIZATIONERROR -_ERRORCODE.fields_by_name['internal_error'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_internal__error__pb2._INTERNALERRORENUM_INTERNALERROR -_ERRORCODE.fields_by_name['quota_error'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_quota__error__pb2._QUOTAERRORENUM_QUOTAERROR -_ERRORCODE.fields_by_name['ad_error'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_ad__error__pb2._ADERRORENUM_ADERROR -_ERRORCODE.fields_by_name['ad_group_error'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_ad__group__error__pb2._ADGROUPERRORENUM_ADGROUPERROR -_ERRORCODE.fields_by_name['campaign_budget_error'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_campaign__budget__error__pb2._CAMPAIGNBUDGETERRORENUM_CAMPAIGNBUDGETERROR -_ERRORCODE.fields_by_name['campaign_error'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_campaign__error__pb2._CAMPAIGNERRORENUM_CAMPAIGNERROR -_ERRORCODE.fields_by_name['authentication_error'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_authentication__error__pb2._AUTHENTICATIONERRORENUM_AUTHENTICATIONERROR -_ERRORCODE.fields_by_name['ad_group_criterion_error'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_ad__group__criterion__error__pb2._ADGROUPCRITERIONERRORENUM_ADGROUPCRITERIONERROR -_ERRORCODE.fields_by_name['ad_customizer_error'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_ad__customizer__error__pb2._ADCUSTOMIZERERRORENUM_ADCUSTOMIZERERROR -_ERRORCODE.fields_by_name['ad_group_ad_error'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_ad__group__ad__error__pb2._ADGROUPADERRORENUM_ADGROUPADERROR -_ERRORCODE.fields_by_name['ad_sharing_error'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_ad__sharing__error__pb2._ADSHARINGERRORENUM_ADSHARINGERROR -_ERRORCODE.fields_by_name['adx_error'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_adx__error__pb2._ADXERRORENUM_ADXERROR -_ERRORCODE.fields_by_name['asset_error'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_asset__error__pb2._ASSETERRORENUM_ASSETERROR -_ERRORCODE.fields_by_name['bidding_error'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_bidding__error__pb2._BIDDINGERRORENUM_BIDDINGERROR -_ERRORCODE.fields_by_name['campaign_criterion_error'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_campaign__criterion__error__pb2._CAMPAIGNCRITERIONERRORENUM_CAMPAIGNCRITERIONERROR -_ERRORCODE.fields_by_name['collection_size_error'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_collection__size__error__pb2._COLLECTIONSIZEERRORENUM_COLLECTIONSIZEERROR -_ERRORCODE.fields_by_name['country_code_error'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_country__code__error__pb2._COUNTRYCODEERRORENUM_COUNTRYCODEERROR -_ERRORCODE.fields_by_name['criterion_error'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_criterion__error__pb2._CRITERIONERRORENUM_CRITERIONERROR -_ERRORCODE.fields_by_name['customer_error'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_customer__error__pb2._CUSTOMERERRORENUM_CUSTOMERERROR -_ERRORCODE.fields_by_name['date_error'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_date__error__pb2._DATEERRORENUM_DATEERROR -_ERRORCODE.fields_by_name['date_range_error'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_date__range__error__pb2._DATERANGEERRORENUM_DATERANGEERROR -_ERRORCODE.fields_by_name['distinct_error'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_distinct__error__pb2._DISTINCTERRORENUM_DISTINCTERROR -_ERRORCODE.fields_by_name['feed_attribute_reference_error'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_feed__attribute__reference__error__pb2._FEEDATTRIBUTEREFERENCEERRORENUM_FEEDATTRIBUTEREFERENCEERROR -_ERRORCODE.fields_by_name['function_error'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_function__error__pb2._FUNCTIONERRORENUM_FUNCTIONERROR -_ERRORCODE.fields_by_name['function_parsing_error'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_function__parsing__error__pb2._FUNCTIONPARSINGERRORENUM_FUNCTIONPARSINGERROR -_ERRORCODE.fields_by_name['id_error'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_id__error__pb2._IDERRORENUM_IDERROR -_ERRORCODE.fields_by_name['image_error'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_image__error__pb2._IMAGEERRORENUM_IMAGEERROR -_ERRORCODE.fields_by_name['language_code_error'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_language__code__error__pb2._LANGUAGECODEERRORENUM_LANGUAGECODEERROR -_ERRORCODE.fields_by_name['media_bundle_error'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_media__bundle__error__pb2._MEDIABUNDLEERRORENUM_MEDIABUNDLEERROR -_ERRORCODE.fields_by_name['media_upload_error'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_media__upload__error__pb2._MEDIAUPLOADERRORENUM_MEDIAUPLOADERROR -_ERRORCODE.fields_by_name['media_file_error'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_media__file__error__pb2._MEDIAFILEERRORENUM_MEDIAFILEERROR -_ERRORCODE.fields_by_name['multiplier_error'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_multiplier__error__pb2._MULTIPLIERERRORENUM_MULTIPLIERERROR -_ERRORCODE.fields_by_name['new_resource_creation_error'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_new__resource__creation__error__pb2._NEWRESOURCECREATIONERRORENUM_NEWRESOURCECREATIONERROR -_ERRORCODE.fields_by_name['not_empty_error'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_not__empty__error__pb2._NOTEMPTYERRORENUM_NOTEMPTYERROR -_ERRORCODE.fields_by_name['null_error'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_null__error__pb2._NULLERRORENUM_NULLERROR -_ERRORCODE.fields_by_name['operator_error'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_operator__error__pb2._OPERATORERRORENUM_OPERATORERROR -_ERRORCODE.fields_by_name['range_error'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_range__error__pb2._RANGEERRORENUM_RANGEERROR -_ERRORCODE.fields_by_name['recommendation_error'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_recommendation__error__pb2._RECOMMENDATIONERRORENUM_RECOMMENDATIONERROR -_ERRORCODE.fields_by_name['region_code_error'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_region__code__error__pb2._REGIONCODEERRORENUM_REGIONCODEERROR -_ERRORCODE.fields_by_name['setting_error'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_setting__error__pb2._SETTINGERRORENUM_SETTINGERROR -_ERRORCODE.fields_by_name['string_format_error'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_string__format__error__pb2._STRINGFORMATERRORENUM_STRINGFORMATERROR -_ERRORCODE.fields_by_name['string_length_error'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_string__length__error__pb2._STRINGLENGTHERRORENUM_STRINGLENGTHERROR -_ERRORCODE.fields_by_name['operation_access_denied_error'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_operation__access__denied__error__pb2._OPERATIONACCESSDENIEDERRORENUM_OPERATIONACCESSDENIEDERROR -_ERRORCODE.fields_by_name['resource_access_denied_error'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_resource__access__denied__error__pb2._RESOURCEACCESSDENIEDERRORENUM_RESOURCEACCESSDENIEDERROR -_ERRORCODE.fields_by_name['resource_count_limit_exceeded_error'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_resource__count__limit__exceeded__error__pb2._RESOURCECOUNTLIMITEXCEEDEDERRORENUM_RESOURCECOUNTLIMITEXCEEDEDERROR -_ERRORCODE.fields_by_name['youtube_video_registration_error'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_youtube__video__registration__error__pb2._YOUTUBEVIDEOREGISTRATIONERRORENUM_YOUTUBEVIDEOREGISTRATIONERROR -_ERRORCODE.fields_by_name['ad_group_bid_modifier_error'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_ad__group__bid__modifier__error__pb2._ADGROUPBIDMODIFIERERRORENUM_ADGROUPBIDMODIFIERERROR -_ERRORCODE.fields_by_name['context_error'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_context__error__pb2._CONTEXTERRORENUM_CONTEXTERROR -_ERRORCODE.fields_by_name['field_error'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_field__error__pb2._FIELDERRORENUM_FIELDERROR -_ERRORCODE.fields_by_name['shared_set_error'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_shared__set__error__pb2._SHAREDSETERRORENUM_SHAREDSETERROR -_ERRORCODE.fields_by_name['shared_criterion_error'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_shared__criterion__error__pb2._SHAREDCRITERIONERRORENUM_SHAREDCRITERIONERROR -_ERRORCODE.fields_by_name['campaign_shared_set_error'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_campaign__shared__set__error__pb2._CAMPAIGNSHAREDSETERRORENUM_CAMPAIGNSHAREDSETERROR -_ERRORCODE.fields_by_name['conversion_action_error'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_conversion__action__error__pb2._CONVERSIONACTIONERRORENUM_CONVERSIONACTIONERROR -_ERRORCODE.fields_by_name['conversion_adjustment_upload_error'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_conversion__adjustment__upload__error__pb2._CONVERSIONADJUSTMENTUPLOADERRORENUM_CONVERSIONADJUSTMENTUPLOADERROR -_ERRORCODE.fields_by_name['conversion_upload_error'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_conversion__upload__error__pb2._CONVERSIONUPLOADERRORENUM_CONVERSIONUPLOADERROR -_ERRORCODE.fields_by_name['header_error'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_header__error__pb2._HEADERERRORENUM_HEADERERROR -_ERRORCODE.fields_by_name['database_error'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_database__error__pb2._DATABASEERRORENUM_DATABASEERROR -_ERRORCODE.fields_by_name['policy_finding_error'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_policy__finding__error__pb2._POLICYFINDINGERRORENUM_POLICYFINDINGERROR -_ERRORCODE.fields_by_name['enum_error'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_enum__error__pb2._ENUMERRORENUM_ENUMERROR -_ERRORCODE.fields_by_name['keyword_plan_error'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_keyword__plan__error__pb2._KEYWORDPLANERRORENUM_KEYWORDPLANERROR -_ERRORCODE.fields_by_name['keyword_plan_campaign_error'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_keyword__plan__campaign__error__pb2._KEYWORDPLANCAMPAIGNERRORENUM_KEYWORDPLANCAMPAIGNERROR -_ERRORCODE.fields_by_name['keyword_plan_negative_keyword_error'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_keyword__plan__negative__keyword__error__pb2._KEYWORDPLANNEGATIVEKEYWORDERRORENUM_KEYWORDPLANNEGATIVEKEYWORDERROR -_ERRORCODE.fields_by_name['keyword_plan_ad_group_error'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_keyword__plan__ad__group__error__pb2._KEYWORDPLANADGROUPERRORENUM_KEYWORDPLANADGROUPERROR -_ERRORCODE.fields_by_name['keyword_plan_keyword_error'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_keyword__plan__keyword__error__pb2._KEYWORDPLANKEYWORDERRORENUM_KEYWORDPLANKEYWORDERROR -_ERRORCODE.fields_by_name['keyword_plan_idea_error'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_keyword__plan__idea__error__pb2._KEYWORDPLANIDEAERRORENUM_KEYWORDPLANIDEAERROR -_ERRORCODE.fields_by_name['account_budget_proposal_error'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_account__budget__proposal__error__pb2._ACCOUNTBUDGETPROPOSALERRORENUM_ACCOUNTBUDGETPROPOSALERROR -_ERRORCODE.fields_by_name['user_list_error'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_user__list__error__pb2._USERLISTERRORENUM_USERLISTERROR -_ERRORCODE.fields_by_name['change_status_error'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_change__status__error__pb2._CHANGESTATUSERRORENUM_CHANGESTATUSERROR -_ERRORCODE.fields_by_name['feed_error'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_feed__error__pb2._FEEDERRORENUM_FEEDERROR -_ERRORCODE.fields_by_name['geo_target_constant_suggestion_error'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_geo__target__constant__suggestion__error__pb2._GEOTARGETCONSTANTSUGGESTIONERRORENUM_GEOTARGETCONSTANTSUGGESTIONERROR -_ERRORCODE.fields_by_name['campaign_draft_error'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_campaign__draft__error__pb2._CAMPAIGNDRAFTERRORENUM_CAMPAIGNDRAFTERROR -_ERRORCODE.fields_by_name['feed_item_error'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_feed__item__error__pb2._FEEDITEMERRORENUM_FEEDITEMERROR -_ERRORCODE.fields_by_name['label_error'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_label__error__pb2._LABELERRORENUM_LABELERROR -_ERRORCODE.fields_by_name['billing_setup_error'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_billing__setup__error__pb2._BILLINGSETUPERRORENUM_BILLINGSETUPERROR -_ERRORCODE.fields_by_name['customer_client_link_error'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_customer__client__link__error__pb2._CUSTOMERCLIENTLINKERRORENUM_CUSTOMERCLIENTLINKERROR -_ERRORCODE.fields_by_name['customer_manager_link_error'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_customer__manager__link__error__pb2._CUSTOMERMANAGERLINKERRORENUM_CUSTOMERMANAGERLINKERROR -_ERRORCODE.fields_by_name['feed_mapping_error'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_feed__mapping__error__pb2._FEEDMAPPINGERRORENUM_FEEDMAPPINGERROR -_ERRORCODE.fields_by_name['customer_feed_error'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_customer__feed__error__pb2._CUSTOMERFEEDERRORENUM_CUSTOMERFEEDERROR -_ERRORCODE.fields_by_name['ad_group_feed_error'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_ad__group__feed__error__pb2._ADGROUPFEEDERRORENUM_ADGROUPFEEDERROR -_ERRORCODE.fields_by_name['campaign_feed_error'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_campaign__feed__error__pb2._CAMPAIGNFEEDERRORENUM_CAMPAIGNFEEDERROR -_ERRORCODE.fields_by_name['custom_interest_error'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_custom__interest__error__pb2._CUSTOMINTERESTERRORENUM_CUSTOMINTERESTERROR -_ERRORCODE.fields_by_name['campaign_experiment_error'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_campaign__experiment__error__pb2._CAMPAIGNEXPERIMENTERRORENUM_CAMPAIGNEXPERIMENTERROR -_ERRORCODE.fields_by_name['extension_feed_item_error'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_extension__feed__item__error__pb2._EXTENSIONFEEDITEMERRORENUM_EXTENSIONFEEDITEMERROR -_ERRORCODE.fields_by_name['ad_parameter_error'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_ad__parameter__error__pb2._ADPARAMETERERRORENUM_ADPARAMETERERROR -_ERRORCODE.fields_by_name['feed_item_validation_error'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_feed__item__validation__error__pb2._FEEDITEMVALIDATIONERRORENUM_FEEDITEMVALIDATIONERROR -_ERRORCODE.fields_by_name['extension_setting_error'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_extension__setting__error__pb2._EXTENSIONSETTINGERRORENUM_EXTENSIONSETTINGERROR -_ERRORCODE.fields_by_name['feed_item_target_error'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_feed__item__target__error__pb2._FEEDITEMTARGETERRORENUM_FEEDITEMTARGETERROR -_ERRORCODE.fields_by_name['policy_violation_error'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_policy__violation__error__pb2._POLICYVIOLATIONERRORENUM_POLICYVIOLATIONERROR -_ERRORCODE.fields_by_name['mutate_job_error'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_mutate__job__error__pb2._MUTATEJOBERRORENUM_MUTATEJOBERROR -_ERRORCODE.fields_by_name['partial_failure_error'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_partial__failure__error__pb2._PARTIALFAILUREERRORENUM_PARTIALFAILUREERROR -_ERRORCODE.fields_by_name['policy_validation_parameter_error'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_policy__validation__parameter__error__pb2._POLICYVALIDATIONPARAMETERERRORENUM_POLICYVALIDATIONPARAMETERERROR -_ERRORCODE.fields_by_name['size_limit_error'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_size__limit__error__pb2._SIZELIMITERRORENUM_SIZELIMITERROR -_ERRORCODE.fields_by_name['not_whitelisted_error'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_not__whitelisted__error__pb2._NOTWHITELISTEDERRORENUM_NOTWHITELISTEDERROR -_ERRORCODE.fields_by_name['manager_link_error'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_manager__link__error__pb2._MANAGERLINKERRORENUM_MANAGERLINKERROR -_ERRORCODE.oneofs_by_name['error_code'].fields.append( - _ERRORCODE.fields_by_name['request_error']) -_ERRORCODE.fields_by_name['request_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] -_ERRORCODE.oneofs_by_name['error_code'].fields.append( - _ERRORCODE.fields_by_name['bidding_strategy_error']) -_ERRORCODE.fields_by_name['bidding_strategy_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] -_ERRORCODE.oneofs_by_name['error_code'].fields.append( - _ERRORCODE.fields_by_name['url_field_error']) -_ERRORCODE.fields_by_name['url_field_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] -_ERRORCODE.oneofs_by_name['error_code'].fields.append( - _ERRORCODE.fields_by_name['list_operation_error']) -_ERRORCODE.fields_by_name['list_operation_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] -_ERRORCODE.oneofs_by_name['error_code'].fields.append( - _ERRORCODE.fields_by_name['query_error']) -_ERRORCODE.fields_by_name['query_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] -_ERRORCODE.oneofs_by_name['error_code'].fields.append( - _ERRORCODE.fields_by_name['mutate_error']) -_ERRORCODE.fields_by_name['mutate_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] -_ERRORCODE.oneofs_by_name['error_code'].fields.append( - _ERRORCODE.fields_by_name['field_mask_error']) -_ERRORCODE.fields_by_name['field_mask_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] -_ERRORCODE.oneofs_by_name['error_code'].fields.append( - _ERRORCODE.fields_by_name['authorization_error']) -_ERRORCODE.fields_by_name['authorization_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] -_ERRORCODE.oneofs_by_name['error_code'].fields.append( - _ERRORCODE.fields_by_name['internal_error']) -_ERRORCODE.fields_by_name['internal_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] -_ERRORCODE.oneofs_by_name['error_code'].fields.append( - _ERRORCODE.fields_by_name['quota_error']) -_ERRORCODE.fields_by_name['quota_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] -_ERRORCODE.oneofs_by_name['error_code'].fields.append( - _ERRORCODE.fields_by_name['ad_error']) -_ERRORCODE.fields_by_name['ad_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] -_ERRORCODE.oneofs_by_name['error_code'].fields.append( - _ERRORCODE.fields_by_name['ad_group_error']) -_ERRORCODE.fields_by_name['ad_group_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] -_ERRORCODE.oneofs_by_name['error_code'].fields.append( - _ERRORCODE.fields_by_name['campaign_budget_error']) -_ERRORCODE.fields_by_name['campaign_budget_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] -_ERRORCODE.oneofs_by_name['error_code'].fields.append( - _ERRORCODE.fields_by_name['campaign_error']) -_ERRORCODE.fields_by_name['campaign_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] -_ERRORCODE.oneofs_by_name['error_code'].fields.append( - _ERRORCODE.fields_by_name['authentication_error']) -_ERRORCODE.fields_by_name['authentication_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] -_ERRORCODE.oneofs_by_name['error_code'].fields.append( - _ERRORCODE.fields_by_name['ad_group_criterion_error']) -_ERRORCODE.fields_by_name['ad_group_criterion_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] -_ERRORCODE.oneofs_by_name['error_code'].fields.append( - _ERRORCODE.fields_by_name['ad_customizer_error']) -_ERRORCODE.fields_by_name['ad_customizer_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] -_ERRORCODE.oneofs_by_name['error_code'].fields.append( - _ERRORCODE.fields_by_name['ad_group_ad_error']) -_ERRORCODE.fields_by_name['ad_group_ad_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] -_ERRORCODE.oneofs_by_name['error_code'].fields.append( - _ERRORCODE.fields_by_name['ad_sharing_error']) -_ERRORCODE.fields_by_name['ad_sharing_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] -_ERRORCODE.oneofs_by_name['error_code'].fields.append( - _ERRORCODE.fields_by_name['adx_error']) -_ERRORCODE.fields_by_name['adx_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] -_ERRORCODE.oneofs_by_name['error_code'].fields.append( - _ERRORCODE.fields_by_name['asset_error']) -_ERRORCODE.fields_by_name['asset_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] -_ERRORCODE.oneofs_by_name['error_code'].fields.append( - _ERRORCODE.fields_by_name['bidding_error']) -_ERRORCODE.fields_by_name['bidding_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] -_ERRORCODE.oneofs_by_name['error_code'].fields.append( - _ERRORCODE.fields_by_name['campaign_criterion_error']) -_ERRORCODE.fields_by_name['campaign_criterion_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] -_ERRORCODE.oneofs_by_name['error_code'].fields.append( - _ERRORCODE.fields_by_name['collection_size_error']) -_ERRORCODE.fields_by_name['collection_size_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] -_ERRORCODE.oneofs_by_name['error_code'].fields.append( - _ERRORCODE.fields_by_name['country_code_error']) -_ERRORCODE.fields_by_name['country_code_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] -_ERRORCODE.oneofs_by_name['error_code'].fields.append( - _ERRORCODE.fields_by_name['criterion_error']) -_ERRORCODE.fields_by_name['criterion_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] -_ERRORCODE.oneofs_by_name['error_code'].fields.append( - _ERRORCODE.fields_by_name['customer_error']) -_ERRORCODE.fields_by_name['customer_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] -_ERRORCODE.oneofs_by_name['error_code'].fields.append( - _ERRORCODE.fields_by_name['date_error']) -_ERRORCODE.fields_by_name['date_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] -_ERRORCODE.oneofs_by_name['error_code'].fields.append( - _ERRORCODE.fields_by_name['date_range_error']) -_ERRORCODE.fields_by_name['date_range_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] -_ERRORCODE.oneofs_by_name['error_code'].fields.append( - _ERRORCODE.fields_by_name['distinct_error']) -_ERRORCODE.fields_by_name['distinct_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] -_ERRORCODE.oneofs_by_name['error_code'].fields.append( - _ERRORCODE.fields_by_name['feed_attribute_reference_error']) -_ERRORCODE.fields_by_name['feed_attribute_reference_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] -_ERRORCODE.oneofs_by_name['error_code'].fields.append( - _ERRORCODE.fields_by_name['function_error']) -_ERRORCODE.fields_by_name['function_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] -_ERRORCODE.oneofs_by_name['error_code'].fields.append( - _ERRORCODE.fields_by_name['function_parsing_error']) -_ERRORCODE.fields_by_name['function_parsing_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] -_ERRORCODE.oneofs_by_name['error_code'].fields.append( - _ERRORCODE.fields_by_name['id_error']) -_ERRORCODE.fields_by_name['id_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] -_ERRORCODE.oneofs_by_name['error_code'].fields.append( - _ERRORCODE.fields_by_name['image_error']) -_ERRORCODE.fields_by_name['image_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] -_ERRORCODE.oneofs_by_name['error_code'].fields.append( - _ERRORCODE.fields_by_name['language_code_error']) -_ERRORCODE.fields_by_name['language_code_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] -_ERRORCODE.oneofs_by_name['error_code'].fields.append( - _ERRORCODE.fields_by_name['media_bundle_error']) -_ERRORCODE.fields_by_name['media_bundle_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] -_ERRORCODE.oneofs_by_name['error_code'].fields.append( - _ERRORCODE.fields_by_name['media_upload_error']) -_ERRORCODE.fields_by_name['media_upload_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] -_ERRORCODE.oneofs_by_name['error_code'].fields.append( - _ERRORCODE.fields_by_name['media_file_error']) -_ERRORCODE.fields_by_name['media_file_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] -_ERRORCODE.oneofs_by_name['error_code'].fields.append( - _ERRORCODE.fields_by_name['multiplier_error']) -_ERRORCODE.fields_by_name['multiplier_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] -_ERRORCODE.oneofs_by_name['error_code'].fields.append( - _ERRORCODE.fields_by_name['new_resource_creation_error']) -_ERRORCODE.fields_by_name['new_resource_creation_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] -_ERRORCODE.oneofs_by_name['error_code'].fields.append( - _ERRORCODE.fields_by_name['not_empty_error']) -_ERRORCODE.fields_by_name['not_empty_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] -_ERRORCODE.oneofs_by_name['error_code'].fields.append( - _ERRORCODE.fields_by_name['null_error']) -_ERRORCODE.fields_by_name['null_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] -_ERRORCODE.oneofs_by_name['error_code'].fields.append( - _ERRORCODE.fields_by_name['operator_error']) -_ERRORCODE.fields_by_name['operator_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] -_ERRORCODE.oneofs_by_name['error_code'].fields.append( - _ERRORCODE.fields_by_name['range_error']) -_ERRORCODE.fields_by_name['range_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] -_ERRORCODE.oneofs_by_name['error_code'].fields.append( - _ERRORCODE.fields_by_name['recommendation_error']) -_ERRORCODE.fields_by_name['recommendation_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] -_ERRORCODE.oneofs_by_name['error_code'].fields.append( - _ERRORCODE.fields_by_name['region_code_error']) -_ERRORCODE.fields_by_name['region_code_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] -_ERRORCODE.oneofs_by_name['error_code'].fields.append( - _ERRORCODE.fields_by_name['setting_error']) -_ERRORCODE.fields_by_name['setting_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] -_ERRORCODE.oneofs_by_name['error_code'].fields.append( - _ERRORCODE.fields_by_name['string_format_error']) -_ERRORCODE.fields_by_name['string_format_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] -_ERRORCODE.oneofs_by_name['error_code'].fields.append( - _ERRORCODE.fields_by_name['string_length_error']) -_ERRORCODE.fields_by_name['string_length_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] -_ERRORCODE.oneofs_by_name['error_code'].fields.append( - _ERRORCODE.fields_by_name['operation_access_denied_error']) -_ERRORCODE.fields_by_name['operation_access_denied_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] -_ERRORCODE.oneofs_by_name['error_code'].fields.append( - _ERRORCODE.fields_by_name['resource_access_denied_error']) -_ERRORCODE.fields_by_name['resource_access_denied_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] -_ERRORCODE.oneofs_by_name['error_code'].fields.append( - _ERRORCODE.fields_by_name['resource_count_limit_exceeded_error']) -_ERRORCODE.fields_by_name['resource_count_limit_exceeded_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] -_ERRORCODE.oneofs_by_name['error_code'].fields.append( - _ERRORCODE.fields_by_name['youtube_video_registration_error']) -_ERRORCODE.fields_by_name['youtube_video_registration_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] -_ERRORCODE.oneofs_by_name['error_code'].fields.append( - _ERRORCODE.fields_by_name['ad_group_bid_modifier_error']) -_ERRORCODE.fields_by_name['ad_group_bid_modifier_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] -_ERRORCODE.oneofs_by_name['error_code'].fields.append( - _ERRORCODE.fields_by_name['context_error']) -_ERRORCODE.fields_by_name['context_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] -_ERRORCODE.oneofs_by_name['error_code'].fields.append( - _ERRORCODE.fields_by_name['field_error']) -_ERRORCODE.fields_by_name['field_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] -_ERRORCODE.oneofs_by_name['error_code'].fields.append( - _ERRORCODE.fields_by_name['shared_set_error']) -_ERRORCODE.fields_by_name['shared_set_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] -_ERRORCODE.oneofs_by_name['error_code'].fields.append( - _ERRORCODE.fields_by_name['shared_criterion_error']) -_ERRORCODE.fields_by_name['shared_criterion_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] -_ERRORCODE.oneofs_by_name['error_code'].fields.append( - _ERRORCODE.fields_by_name['campaign_shared_set_error']) -_ERRORCODE.fields_by_name['campaign_shared_set_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] -_ERRORCODE.oneofs_by_name['error_code'].fields.append( - _ERRORCODE.fields_by_name['conversion_action_error']) -_ERRORCODE.fields_by_name['conversion_action_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] -_ERRORCODE.oneofs_by_name['error_code'].fields.append( - _ERRORCODE.fields_by_name['conversion_adjustment_upload_error']) -_ERRORCODE.fields_by_name['conversion_adjustment_upload_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] -_ERRORCODE.oneofs_by_name['error_code'].fields.append( - _ERRORCODE.fields_by_name['conversion_upload_error']) -_ERRORCODE.fields_by_name['conversion_upload_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] -_ERRORCODE.oneofs_by_name['error_code'].fields.append( - _ERRORCODE.fields_by_name['header_error']) -_ERRORCODE.fields_by_name['header_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] -_ERRORCODE.oneofs_by_name['error_code'].fields.append( - _ERRORCODE.fields_by_name['database_error']) -_ERRORCODE.fields_by_name['database_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] -_ERRORCODE.oneofs_by_name['error_code'].fields.append( - _ERRORCODE.fields_by_name['policy_finding_error']) -_ERRORCODE.fields_by_name['policy_finding_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] -_ERRORCODE.oneofs_by_name['error_code'].fields.append( - _ERRORCODE.fields_by_name['enum_error']) -_ERRORCODE.fields_by_name['enum_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] -_ERRORCODE.oneofs_by_name['error_code'].fields.append( - _ERRORCODE.fields_by_name['keyword_plan_error']) -_ERRORCODE.fields_by_name['keyword_plan_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] -_ERRORCODE.oneofs_by_name['error_code'].fields.append( - _ERRORCODE.fields_by_name['keyword_plan_campaign_error']) -_ERRORCODE.fields_by_name['keyword_plan_campaign_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] -_ERRORCODE.oneofs_by_name['error_code'].fields.append( - _ERRORCODE.fields_by_name['keyword_plan_negative_keyword_error']) -_ERRORCODE.fields_by_name['keyword_plan_negative_keyword_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] -_ERRORCODE.oneofs_by_name['error_code'].fields.append( - _ERRORCODE.fields_by_name['keyword_plan_ad_group_error']) -_ERRORCODE.fields_by_name['keyword_plan_ad_group_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] -_ERRORCODE.oneofs_by_name['error_code'].fields.append( - _ERRORCODE.fields_by_name['keyword_plan_keyword_error']) -_ERRORCODE.fields_by_name['keyword_plan_keyword_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] -_ERRORCODE.oneofs_by_name['error_code'].fields.append( - _ERRORCODE.fields_by_name['keyword_plan_idea_error']) -_ERRORCODE.fields_by_name['keyword_plan_idea_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] -_ERRORCODE.oneofs_by_name['error_code'].fields.append( - _ERRORCODE.fields_by_name['account_budget_proposal_error']) -_ERRORCODE.fields_by_name['account_budget_proposal_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] -_ERRORCODE.oneofs_by_name['error_code'].fields.append( - _ERRORCODE.fields_by_name['user_list_error']) -_ERRORCODE.fields_by_name['user_list_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] -_ERRORCODE.oneofs_by_name['error_code'].fields.append( - _ERRORCODE.fields_by_name['change_status_error']) -_ERRORCODE.fields_by_name['change_status_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] -_ERRORCODE.oneofs_by_name['error_code'].fields.append( - _ERRORCODE.fields_by_name['feed_error']) -_ERRORCODE.fields_by_name['feed_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] -_ERRORCODE.oneofs_by_name['error_code'].fields.append( - _ERRORCODE.fields_by_name['geo_target_constant_suggestion_error']) -_ERRORCODE.fields_by_name['geo_target_constant_suggestion_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] -_ERRORCODE.oneofs_by_name['error_code'].fields.append( - _ERRORCODE.fields_by_name['campaign_draft_error']) -_ERRORCODE.fields_by_name['campaign_draft_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] -_ERRORCODE.oneofs_by_name['error_code'].fields.append( - _ERRORCODE.fields_by_name['feed_item_error']) -_ERRORCODE.fields_by_name['feed_item_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] -_ERRORCODE.oneofs_by_name['error_code'].fields.append( - _ERRORCODE.fields_by_name['label_error']) -_ERRORCODE.fields_by_name['label_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] -_ERRORCODE.oneofs_by_name['error_code'].fields.append( - _ERRORCODE.fields_by_name['billing_setup_error']) -_ERRORCODE.fields_by_name['billing_setup_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] -_ERRORCODE.oneofs_by_name['error_code'].fields.append( - _ERRORCODE.fields_by_name['customer_client_link_error']) -_ERRORCODE.fields_by_name['customer_client_link_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] -_ERRORCODE.oneofs_by_name['error_code'].fields.append( - _ERRORCODE.fields_by_name['customer_manager_link_error']) -_ERRORCODE.fields_by_name['customer_manager_link_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] -_ERRORCODE.oneofs_by_name['error_code'].fields.append( - _ERRORCODE.fields_by_name['feed_mapping_error']) -_ERRORCODE.fields_by_name['feed_mapping_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] -_ERRORCODE.oneofs_by_name['error_code'].fields.append( - _ERRORCODE.fields_by_name['customer_feed_error']) -_ERRORCODE.fields_by_name['customer_feed_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] -_ERRORCODE.oneofs_by_name['error_code'].fields.append( - _ERRORCODE.fields_by_name['ad_group_feed_error']) -_ERRORCODE.fields_by_name['ad_group_feed_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] -_ERRORCODE.oneofs_by_name['error_code'].fields.append( - _ERRORCODE.fields_by_name['campaign_feed_error']) -_ERRORCODE.fields_by_name['campaign_feed_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] -_ERRORCODE.oneofs_by_name['error_code'].fields.append( - _ERRORCODE.fields_by_name['custom_interest_error']) -_ERRORCODE.fields_by_name['custom_interest_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] -_ERRORCODE.oneofs_by_name['error_code'].fields.append( - _ERRORCODE.fields_by_name['campaign_experiment_error']) -_ERRORCODE.fields_by_name['campaign_experiment_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] -_ERRORCODE.oneofs_by_name['error_code'].fields.append( - _ERRORCODE.fields_by_name['extension_feed_item_error']) -_ERRORCODE.fields_by_name['extension_feed_item_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] -_ERRORCODE.oneofs_by_name['error_code'].fields.append( - _ERRORCODE.fields_by_name['ad_parameter_error']) -_ERRORCODE.fields_by_name['ad_parameter_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] -_ERRORCODE.oneofs_by_name['error_code'].fields.append( - _ERRORCODE.fields_by_name['feed_item_validation_error']) -_ERRORCODE.fields_by_name['feed_item_validation_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] -_ERRORCODE.oneofs_by_name['error_code'].fields.append( - _ERRORCODE.fields_by_name['extension_setting_error']) -_ERRORCODE.fields_by_name['extension_setting_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] -_ERRORCODE.oneofs_by_name['error_code'].fields.append( - _ERRORCODE.fields_by_name['feed_item_target_error']) -_ERRORCODE.fields_by_name['feed_item_target_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] -_ERRORCODE.oneofs_by_name['error_code'].fields.append( - _ERRORCODE.fields_by_name['policy_violation_error']) -_ERRORCODE.fields_by_name['policy_violation_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] -_ERRORCODE.oneofs_by_name['error_code'].fields.append( - _ERRORCODE.fields_by_name['mutate_job_error']) -_ERRORCODE.fields_by_name['mutate_job_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] -_ERRORCODE.oneofs_by_name['error_code'].fields.append( - _ERRORCODE.fields_by_name['partial_failure_error']) -_ERRORCODE.fields_by_name['partial_failure_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] -_ERRORCODE.oneofs_by_name['error_code'].fields.append( - _ERRORCODE.fields_by_name['policy_validation_parameter_error']) -_ERRORCODE.fields_by_name['policy_validation_parameter_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] -_ERRORCODE.oneofs_by_name['error_code'].fields.append( - _ERRORCODE.fields_by_name['size_limit_error']) -_ERRORCODE.fields_by_name['size_limit_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] -_ERRORCODE.oneofs_by_name['error_code'].fields.append( - _ERRORCODE.fields_by_name['not_whitelisted_error']) -_ERRORCODE.fields_by_name['not_whitelisted_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] -_ERRORCODE.oneofs_by_name['error_code'].fields.append( - _ERRORCODE.fields_by_name['manager_link_error']) -_ERRORCODE.fields_by_name['manager_link_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] -_ERRORLOCATION_FIELDPATHELEMENT.fields_by_name['index'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -_ERRORLOCATION_FIELDPATHELEMENT.containing_type = _ERRORLOCATION -_ERRORLOCATION.fields_by_name['field_path_elements'].message_type = _ERRORLOCATION_FIELDPATHELEMENT -_ERRORDETAILS.fields_by_name['policy_violation_details'].message_type = _POLICYVIOLATIONDETAILS -_ERRORDETAILS.fields_by_name['policy_finding_details'].message_type = _POLICYFINDINGDETAILS -_POLICYVIOLATIONDETAILS.fields_by_name['key'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_policy__pb2._POLICYVIOLATIONKEY -_POLICYFINDINGDETAILS.fields_by_name['policy_topic_entries'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_policy__pb2._POLICYTOPICENTRY -DESCRIPTOR.message_types_by_name['GoogleAdsFailure'] = _GOOGLEADSFAILURE -DESCRIPTOR.message_types_by_name['GoogleAdsError'] = _GOOGLEADSERROR -DESCRIPTOR.message_types_by_name['ErrorCode'] = _ERRORCODE -DESCRIPTOR.message_types_by_name['ErrorLocation'] = _ERRORLOCATION -DESCRIPTOR.message_types_by_name['ErrorDetails'] = _ERRORDETAILS -DESCRIPTOR.message_types_by_name['PolicyViolationDetails'] = _POLICYVIOLATIONDETAILS -DESCRIPTOR.message_types_by_name['PolicyFindingDetails'] = _POLICYFINDINGDETAILS -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -GoogleAdsFailure = _reflection.GeneratedProtocolMessageType('GoogleAdsFailure', (_message.Message,), dict( - DESCRIPTOR = _GOOGLEADSFAILURE, - __module__ = 'google.ads.googleads_v1.proto.errors.errors_pb2' - , - __doc__ = """Describes how a GoogleAds API call failed. It's returned inside - google.rpc.Status.details when a call fails. - - - Attributes: - errors: - The list of errors that occurred. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.errors.GoogleAdsFailure) - )) -_sym_db.RegisterMessage(GoogleAdsFailure) - -GoogleAdsError = _reflection.GeneratedProtocolMessageType('GoogleAdsError', (_message.Message,), dict( - DESCRIPTOR = _GOOGLEADSERROR, - __module__ = 'google.ads.googleads_v1.proto.errors.errors_pb2' - , - __doc__ = """GoogleAds-specific error. - - - Attributes: - error_code: - An enum value that indicates which error occurred. - message: - A human-readable description of the error. - trigger: - The value that triggered the error. - location: - Describes the part of the request proto that caused the error. - details: - Additional error details, which are returned by certain error - codes. Most error codes do not include details. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.errors.GoogleAdsError) - )) -_sym_db.RegisterMessage(GoogleAdsError) - -ErrorCode = _reflection.GeneratedProtocolMessageType('ErrorCode', (_message.Message,), dict( - DESCRIPTOR = _ERRORCODE, - __module__ = 'google.ads.googleads_v1.proto.errors.errors_pb2' - , - __doc__ = """The error reason represented by type and enum. - - - Attributes: - error_code: - The list of error enums - request_error: - An error caused by the request - bidding_strategy_error: - An error with a Bidding Strategy mutate. - url_field_error: - An error with a URL field mutate. - list_operation_error: - An error with a list operation. - query_error: - An error with an AWQL query - mutate_error: - An error with a mutate - field_mask_error: - An error with a field mask - authorization_error: - An error encountered when trying to authorize a user. - internal_error: - An unexpected server-side error. - quota_error: - An error with the amonut of quota remaining. - ad_error: - An error with an Ad Group Ad mutate. - ad_group_error: - An error with an Ad Group mutate. - campaign_budget_error: - An error with a Campaign Budget mutate. - campaign_error: - An error with a Campaign mutate. - authentication_error: - Indicates failure to properly authenticate user. - ad_group_criterion_error: - Indicates failure to properly authenticate user. - ad_customizer_error: - The reasons for the ad customizer error - ad_group_ad_error: - The reasons for the ad group ad error - ad_sharing_error: - The reasons for the ad sharing error - adx_error: - The reasons for the adx error - asset_error: - The reasons for the asset error - bidding_error: - The reasons for the bidding errors - campaign_criterion_error: - The reasons for the campaign criterion error - collection_size_error: - The reasons for the collection size error - country_code_error: - The reasons for the country code error - criterion_error: - The reasons for the criterion error - customer_error: - The reasons for the customer error - date_error: - The reasons for the date error - date_range_error: - The reasons for the date range error - distinct_error: - The reasons for the distinct error - feed_attribute_reference_error: - The reasons for the feed attribute reference error - function_error: - The reasons for the function error - function_parsing_error: - The reasons for the function parsing error - id_error: - The reasons for the id error - image_error: - The reasons for the image error - language_code_error: - The reasons for the language code error - media_bundle_error: - The reasons for the media bundle error - media_upload_error: - The reasons for media uploading errors. - media_file_error: - The reasons for the media file error - multiplier_error: - The reasons for the multiplier error - new_resource_creation_error: - The reasons for the new resource creation error - not_empty_error: - The reasons for the not empty error - null_error: - The reasons for the null error - operator_error: - The reasons for the operator error - range_error: - The reasons for the range error - recommendation_error: - The reasons for error in applying a recommendation - region_code_error: - The reasons for the region code error - setting_error: - The reasons for the setting error - string_format_error: - The reasons for the string format error - string_length_error: - The reasons for the string length error - operation_access_denied_error: - The reasons for the operation access denied error - resource_access_denied_error: - The reasons for the resource access denied error - resource_count_limit_exceeded_error: - The reasons for the resource count limit exceeded error - youtube_video_registration_error: - The reasons for YouTube video registration errors. - ad_group_bid_modifier_error: - The reasons for the ad group bid modifier error - context_error: - The reasons for the context error - field_error: - The reasons for the field error - shared_set_error: - The reasons for the shared set error - shared_criterion_error: - The reasons for the shared criterion error - campaign_shared_set_error: - The reasons for the campaign shared set error - conversion_action_error: - The reasons for the conversion action error - conversion_adjustment_upload_error: - The reasons for the conversion adjustment upload error - conversion_upload_error: - The reasons for the conversion upload error - header_error: - The reasons for the header error. - database_error: - The reasons for the database error. - policy_finding_error: - The reasons for the policy finding error. - enum_error: - The reason for enum error. - keyword_plan_error: - The reason for keyword plan error. - keyword_plan_campaign_error: - The reason for keyword plan campaign error. - keyword_plan_negative_keyword_error: - The reason for keyword plan negative keyword error. - keyword_plan_ad_group_error: - The reason for keyword plan ad group error. - keyword_plan_keyword_error: - The reason for keyword plan keyword error. - keyword_plan_idea_error: - The reason for keyword idea error. - account_budget_proposal_error: - The reasons for account budget proposal errors. - user_list_error: - The reasons for the user list error - change_status_error: - The reasons for the change status error - feed_error: - The reasons for the feed error - geo_target_constant_suggestion_error: - The reasons for the geo target constant suggestion error. - campaign_draft_error: - The reasons for the campaign draft error - feed_item_error: - The reasons for the feed item error - label_error: - The reason for the label error. - billing_setup_error: - The reasons for the billing setup error - customer_client_link_error: - The reasons for the customer client link error - customer_manager_link_error: - The reasons for the customer manager link error - feed_mapping_error: - The reasons for the feed mapping error - customer_feed_error: - The reasons for the customer feed error - ad_group_feed_error: - The reasons for the ad group feed error - campaign_feed_error: - The reasons for the campaign feed error - custom_interest_error: - The reasons for the custom interest error - campaign_experiment_error: - The reasons for the campaign experiment error - extension_feed_item_error: - The reasons for the extension feed item error - ad_parameter_error: - The reasons for the ad parameter error - feed_item_validation_error: - The reasons for the feed item validation error - extension_setting_error: - The reasons for the extension setting error - feed_item_target_error: - The reasons for the feed item target error - policy_violation_error: - The reasons for the policy violation error - mutate_job_error: - The reasons for the mutate job error - partial_failure_error: - The reasons for the mutate job error - policy_validation_parameter_error: - The reasons for the policy validation parameter error - size_limit_error: - The reasons for the size limit error - not_whitelisted_error: - The reasons for the not whitelisted error - manager_link_error: - The reasons for the manager link error - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.errors.ErrorCode) - )) -_sym_db.RegisterMessage(ErrorCode) - -ErrorLocation = _reflection.GeneratedProtocolMessageType('ErrorLocation', (_message.Message,), dict( - - FieldPathElement = _reflection.GeneratedProtocolMessageType('FieldPathElement', (_message.Message,), dict( - DESCRIPTOR = _ERRORLOCATION_FIELDPATHELEMENT, - __module__ = 'google.ads.googleads_v1.proto.errors.errors_pb2' - , - __doc__ = """A part of a field path. - - - Attributes: - field_name: - The name of a field or a oneof - index: - If field\_name is a repeated field, this is the element that - failed - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.errors.ErrorLocation.FieldPathElement) - )) - , - DESCRIPTOR = _ERRORLOCATION, - __module__ = 'google.ads.googleads_v1.proto.errors.errors_pb2' - , - __doc__ = """Describes the part of the request proto that caused the error. - - - Attributes: - field_path_elements: - A field path that indicates which field was invalid in the - request. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.errors.ErrorLocation) - )) -_sym_db.RegisterMessage(ErrorLocation) -_sym_db.RegisterMessage(ErrorLocation.FieldPathElement) - -ErrorDetails = _reflection.GeneratedProtocolMessageType('ErrorDetails', (_message.Message,), dict( - DESCRIPTOR = _ERRORDETAILS, - __module__ = 'google.ads.googleads_v1.proto.errors.errors_pb2' - , - __doc__ = """Additional error details. - - - Attributes: - unpublished_error_code: - The error code that should have been returned, but wasn't. - This is used when the error code is - InternalError.ERROR\_CODE\_NOT\_PUBLISHED. - policy_violation_details: - Describes an ad policy violation. - policy_finding_details: - Describes policy violation findings. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.errors.ErrorDetails) - )) -_sym_db.RegisterMessage(ErrorDetails) - -PolicyViolationDetails = _reflection.GeneratedProtocolMessageType('PolicyViolationDetails', (_message.Message,), dict( - DESCRIPTOR = _POLICYVIOLATIONDETAILS, - __module__ = 'google.ads.googleads_v1.proto.errors.errors_pb2' - , - __doc__ = """Error returned as part of a mutate response. This error indicates single - policy violation by some text in one of the fields. - - - Attributes: - external_policy_description: - Human readable description of policy violation. - key: - Unique identifier for this violation. If policy is exemptible, - this key may be used to request exemption. - external_policy_name: - Human readable name of the policy. - is_exemptible: - Whether user can file an exemption request for this violation. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.errors.PolicyViolationDetails) - )) -_sym_db.RegisterMessage(PolicyViolationDetails) - -PolicyFindingDetails = _reflection.GeneratedProtocolMessageType('PolicyFindingDetails', (_message.Message,), dict( - DESCRIPTOR = _POLICYFINDINGDETAILS, - __module__ = 'google.ads.googleads_v1.proto.errors.errors_pb2' - , - __doc__ = """Error returned as part of a mutate response. This error indicates one or - more policy findings in the fields of a resource. - - - Attributes: - policy_topic_entries: - The list of policy topics for the resource. Contains the - PROHIBITED or FULLY\_LIMITED policy topic entries that - prevented the resource from being saved (among any other - entries the resource may also have). - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.errors.PolicyFindingDetails) - )) -_sym_db.RegisterMessage(PolicyFindingDetails) - - -DESCRIPTOR._options = None -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/errors/feed_item_target_error_pb2.py b/google/ads/google_ads/v1/proto/errors/feed_item_target_error_pb2.py deleted file mode 100644 index 3e607abe3..000000000 --- a/google/ads/google_ads/v1/proto/errors/feed_item_target_error_pb2.py +++ /dev/null @@ -1,117 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/errors/feed_item_target_error.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/errors/feed_item_target_error.proto', - package='google.ads.googleads.v1.errors', - syntax='proto3', - serialized_options=_b('\n\"com.google.ads.googleads.v1.errorsB\030FeedItemTargetErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V1.Errors\312\002\036Google\\Ads\\GoogleAds\\V1\\Errors\352\002\"Google::Ads::GoogleAds::V1::Errors'), - serialized_pb=_b('\nAgoogle/ads/googleads_v1/proto/errors/feed_item_target_error.proto\x12\x1egoogle.ads.googleads.v1.errors\x1a\x1cgoogle/api/annotations.proto\"\xca\x02\n\x17\x46\x65\x65\x64ItemTargetErrorEnum\"\xae\x02\n\x13\x46\x65\x65\x64ItemTargetError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12#\n\x1fMUST_SET_TARGET_ONEOF_ON_CREATE\x10\x02\x12#\n\x1f\x46\x45\x45\x44_ITEM_TARGET_ALREADY_EXISTS\x10\x03\x12&\n\"FEED_ITEM_SCHEDULES_CANNOT_OVERLAP\x10\x04\x12(\n$TARGET_LIMIT_EXCEEDED_FOR_GIVEN_TYPE\x10\x05\x12\x1e\n\x1aTOO_MANY_SCHEDULES_PER_DAY\x10\x06\x12=\n9CANNOT_HAVE_ENABLED_CAMPAIGN_AND_ENABLED_AD_GROUP_TARGETS\x10\x07\x42\xf3\x01\n\"com.google.ads.googleads.v1.errorsB\x18\x46\x65\x65\x64ItemTargetErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V1.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V1\\Errors\xea\x02\"Google::Ads::GoogleAds::V1::Errorsb\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - -_FEEDITEMTARGETERRORENUM_FEEDITEMTARGETERROR = _descriptor.EnumDescriptor( - name='FeedItemTargetError', - full_name='google.ads.googleads.v1.errors.FeedItemTargetErrorEnum.FeedItemTargetError', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='UNSPECIFIED', index=0, number=0, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='UNKNOWN', index=1, number=1, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='MUST_SET_TARGET_ONEOF_ON_CREATE', index=2, number=2, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='FEED_ITEM_TARGET_ALREADY_EXISTS', index=3, number=3, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='FEED_ITEM_SCHEDULES_CANNOT_OVERLAP', index=4, number=4, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='TARGET_LIMIT_EXCEEDED_FOR_GIVEN_TYPE', index=5, number=5, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='TOO_MANY_SCHEDULES_PER_DAY', index=6, number=6, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='CANNOT_HAVE_ENABLED_CAMPAIGN_AND_ENABLED_AD_GROUP_TARGETS', index=7, number=7, - serialized_options=None, - type=None), - ], - containing_type=None, - serialized_options=None, - serialized_start=160, - serialized_end=462, -) -_sym_db.RegisterEnumDescriptor(_FEEDITEMTARGETERRORENUM_FEEDITEMTARGETERROR) - - -_FEEDITEMTARGETERRORENUM = _descriptor.Descriptor( - name='FeedItemTargetErrorEnum', - full_name='google.ads.googleads.v1.errors.FeedItemTargetErrorEnum', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - _FEEDITEMTARGETERRORENUM_FEEDITEMTARGETERROR, - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=132, - serialized_end=462, -) - -_FEEDITEMTARGETERRORENUM_FEEDITEMTARGETERROR.containing_type = _FEEDITEMTARGETERRORENUM -DESCRIPTOR.message_types_by_name['FeedItemTargetErrorEnum'] = _FEEDITEMTARGETERRORENUM -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -FeedItemTargetErrorEnum = _reflection.GeneratedProtocolMessageType('FeedItemTargetErrorEnum', (_message.Message,), dict( - DESCRIPTOR = _FEEDITEMTARGETERRORENUM, - __module__ = 'google.ads.googleads_v1.proto.errors.feed_item_target_error_pb2' - , - __doc__ = """Container for enum describing possible feed item target errors. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.errors.FeedItemTargetErrorEnum) - )) -_sym_db.RegisterMessage(FeedItemTargetErrorEnum) - - -DESCRIPTOR._options = None -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/errors/header_error_pb2.py b/google/ads/google_ads/v1/proto/errors/header_error_pb2.py deleted file mode 100644 index baf579035..000000000 --- a/google/ads/google_ads/v1/proto/errors/header_error_pb2.py +++ /dev/null @@ -1,97 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/errors/header_error.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/errors/header_error.proto', - package='google.ads.googleads.v1.errors', - syntax='proto3', - serialized_options=_b('\n\"com.google.ads.googleads.v1.errorsB\020HeaderErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V1.Errors\312\002\036Google\\Ads\\GoogleAds\\V1\\Errors\352\002\"Google::Ads::GoogleAds::V1::Errors'), - serialized_pb=_b('\n7google/ads/googleads_v1/proto/errors/header_error.proto\x12\x1egoogle.ads.googleads.v1.errors\x1a\x1cgoogle/api/annotations.proto\"]\n\x0fHeaderErrorEnum\"J\n\x0bHeaderError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x1d\n\x19INVALID_LOGIN_CUSTOMER_ID\x10\x03\x42\xeb\x01\n\"com.google.ads.googleads.v1.errorsB\x10HeaderErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V1.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V1\\Errors\xea\x02\"Google::Ads::GoogleAds::V1::Errorsb\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - -_HEADERERRORENUM_HEADERERROR = _descriptor.EnumDescriptor( - name='HeaderError', - full_name='google.ads.googleads.v1.errors.HeaderErrorEnum.HeaderError', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='UNSPECIFIED', index=0, number=0, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='UNKNOWN', index=1, number=1, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='INVALID_LOGIN_CUSTOMER_ID', index=2, number=3, - serialized_options=None, - type=None), - ], - containing_type=None, - serialized_options=None, - serialized_start=140, - serialized_end=214, -) -_sym_db.RegisterEnumDescriptor(_HEADERERRORENUM_HEADERERROR) - - -_HEADERERRORENUM = _descriptor.Descriptor( - name='HeaderErrorEnum', - full_name='google.ads.googleads.v1.errors.HeaderErrorEnum', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - _HEADERERRORENUM_HEADERERROR, - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=121, - serialized_end=214, -) - -_HEADERERRORENUM_HEADERERROR.containing_type = _HEADERERRORENUM -DESCRIPTOR.message_types_by_name['HeaderErrorEnum'] = _HEADERERRORENUM -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -HeaderErrorEnum = _reflection.GeneratedProtocolMessageType('HeaderErrorEnum', (_message.Message,), dict( - DESCRIPTOR = _HEADERERRORENUM, - __module__ = 'google.ads.googleads_v1.proto.errors.header_error_pb2' - , - __doc__ = """Container for enum describing possible header errors. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.errors.HeaderErrorEnum) - )) -_sym_db.RegisterMessage(HeaderErrorEnum) - - -DESCRIPTOR._options = None -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/errors/id_error_pb2.py b/google/ads/google_ads/v1/proto/errors/id_error_pb2.py deleted file mode 100644 index 7b7c76f56..000000000 --- a/google/ads/google_ads/v1/proto/errors/id_error_pb2.py +++ /dev/null @@ -1,97 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/errors/id_error.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/errors/id_error.proto', - package='google.ads.googleads.v1.errors', - syntax='proto3', - serialized_options=_b('\n\"com.google.ads.googleads.v1.errorsB\014IdErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V1.Errors\312\002\036Google\\Ads\\GoogleAds\\V1\\Errors\352\002\"Google::Ads::GoogleAds::V1::Errors'), - serialized_pb=_b('\n3google/ads/googleads_v1/proto/errors/id_error.proto\x12\x1egoogle.ads.googleads.v1.errors\x1a\x1cgoogle/api/annotations.proto\"E\n\x0bIdErrorEnum\"6\n\x07IdError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\r\n\tNOT_FOUND\x10\x02\x42\xe7\x01\n\"com.google.ads.googleads.v1.errorsB\x0cIdErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V1.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V1\\Errors\xea\x02\"Google::Ads::GoogleAds::V1::Errorsb\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - -_IDERRORENUM_IDERROR = _descriptor.EnumDescriptor( - name='IdError', - full_name='google.ads.googleads.v1.errors.IdErrorEnum.IdError', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='UNSPECIFIED', index=0, number=0, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='UNKNOWN', index=1, number=1, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='NOT_FOUND', index=2, number=2, - serialized_options=None, - type=None), - ], - containing_type=None, - serialized_options=None, - serialized_start=132, - serialized_end=186, -) -_sym_db.RegisterEnumDescriptor(_IDERRORENUM_IDERROR) - - -_IDERRORENUM = _descriptor.Descriptor( - name='IdErrorEnum', - full_name='google.ads.googleads.v1.errors.IdErrorEnum', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - _IDERRORENUM_IDERROR, - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=117, - serialized_end=186, -) - -_IDERRORENUM_IDERROR.containing_type = _IDERRORENUM -DESCRIPTOR.message_types_by_name['IdErrorEnum'] = _IDERRORENUM -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -IdErrorEnum = _reflection.GeneratedProtocolMessageType('IdErrorEnum', (_message.Message,), dict( - DESCRIPTOR = _IDERRORENUM, - __module__ = 'google.ads.googleads_v1.proto.errors.id_error_pb2' - , - __doc__ = """Container for enum describing possible id errors. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.errors.IdErrorEnum) - )) -_sym_db.RegisterMessage(IdErrorEnum) - - -DESCRIPTOR._options = None -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/errors/internal_error_pb2.py b/google/ads/google_ads/v1/proto/errors/internal_error_pb2.py deleted file mode 100644 index db0049a5b..000000000 --- a/google/ads/google_ads/v1/proto/errors/internal_error_pb2.py +++ /dev/null @@ -1,105 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/errors/internal_error.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/errors/internal_error.proto', - package='google.ads.googleads.v1.errors', - syntax='proto3', - serialized_options=_b('\n\"com.google.ads.googleads.v1.errorsB\022InternalErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V1.Errors\312\002\036Google\\Ads\\GoogleAds\\V1\\Errors\352\002\"Google::Ads::GoogleAds::V1::Errors'), - serialized_pb=_b('\n9google/ads/googleads_v1/proto/errors/internal_error.proto\x12\x1egoogle.ads.googleads.v1.errors\x1a\x1cgoogle/api/annotations.proto\"\x89\x01\n\x11InternalErrorEnum\"t\n\rInternalError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x12\n\x0eINTERNAL_ERROR\x10\x02\x12\x1c\n\x18\x45RROR_CODE_NOT_PUBLISHED\x10\x03\x12\x13\n\x0fTRANSIENT_ERROR\x10\x04\x42\xed\x01\n\"com.google.ads.googleads.v1.errorsB\x12InternalErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V1.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V1\\Errors\xea\x02\"Google::Ads::GoogleAds::V1::Errorsb\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - -_INTERNALERRORENUM_INTERNALERROR = _descriptor.EnumDescriptor( - name='InternalError', - full_name='google.ads.googleads.v1.errors.InternalErrorEnum.InternalError', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='UNSPECIFIED', index=0, number=0, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='UNKNOWN', index=1, number=1, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='INTERNAL_ERROR', index=2, number=2, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='ERROR_CODE_NOT_PUBLISHED', index=3, number=3, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='TRANSIENT_ERROR', index=4, number=4, - serialized_options=None, - type=None), - ], - containing_type=None, - serialized_options=None, - serialized_start=145, - serialized_end=261, -) -_sym_db.RegisterEnumDescriptor(_INTERNALERRORENUM_INTERNALERROR) - - -_INTERNALERRORENUM = _descriptor.Descriptor( - name='InternalErrorEnum', - full_name='google.ads.googleads.v1.errors.InternalErrorEnum', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - _INTERNALERRORENUM_INTERNALERROR, - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=124, - serialized_end=261, -) - -_INTERNALERRORENUM_INTERNALERROR.containing_type = _INTERNALERRORENUM -DESCRIPTOR.message_types_by_name['InternalErrorEnum'] = _INTERNALERRORENUM -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -InternalErrorEnum = _reflection.GeneratedProtocolMessageType('InternalErrorEnum', (_message.Message,), dict( - DESCRIPTOR = _INTERNALERRORENUM, - __module__ = 'google.ads.googleads_v1.proto.errors.internal_error_pb2' - , - __doc__ = """Container for enum describing possible internal errors. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.errors.InternalErrorEnum) - )) -_sym_db.RegisterMessage(InternalErrorEnum) - - -DESCRIPTOR._options = None -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/errors/keyword_plan_campaign_error_pb2.py b/google/ads/google_ads/v1/proto/errors/keyword_plan_campaign_error_pb2.py deleted file mode 100644 index e1f35ec11..000000000 --- a/google/ads/google_ads/v1/proto/errors/keyword_plan_campaign_error_pb2.py +++ /dev/null @@ -1,114 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/errors/keyword_plan_campaign_error.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/errors/keyword_plan_campaign_error.proto', - package='google.ads.googleads.v1.errors', - syntax='proto3', - serialized_options=_b('\n\"com.google.ads.googleads.v1.errorsB\035KeywordPlanCampaignErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V1.Errors\312\002\036Google\\Ads\\GoogleAds\\V1\\Errors\352\002\"Google::Ads::GoogleAds::V1::Errors'), - serialized_pb=_b('\nFgoogle/ads/googleads_v1/proto/errors/keyword_plan_campaign_error.proto\x12\x1egoogle.ads.googleads.v1.errors\x1a\x1cgoogle/api/annotations.proto\"\xbf\x01\n\x1cKeywordPlanCampaignErrorEnum\"\x9e\x01\n\x18KeywordPlanCampaignError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x10\n\x0cINVALID_NAME\x10\x02\x12\x15\n\x11INVALID_LANGUAGES\x10\x03\x12\x10\n\x0cINVALID_GEOS\x10\x04\x12\x12\n\x0e\x44UPLICATE_NAME\x10\x05\x12\x15\n\x11MAX_GEOS_EXCEEDED\x10\x06\x42\xf8\x01\n\"com.google.ads.googleads.v1.errorsB\x1dKeywordPlanCampaignErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V1.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V1\\Errors\xea\x02\"Google::Ads::GoogleAds::V1::Errorsb\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - -_KEYWORDPLANCAMPAIGNERRORENUM_KEYWORDPLANCAMPAIGNERROR = _descriptor.EnumDescriptor( - name='KeywordPlanCampaignError', - full_name='google.ads.googleads.v1.errors.KeywordPlanCampaignErrorEnum.KeywordPlanCampaignError', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='UNSPECIFIED', index=0, number=0, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='UNKNOWN', index=1, number=1, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='INVALID_NAME', index=2, number=2, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='INVALID_LANGUAGES', index=3, number=3, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='INVALID_GEOS', index=4, number=4, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='DUPLICATE_NAME', index=5, number=5, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='MAX_GEOS_EXCEEDED', index=6, number=6, - serialized_options=None, - type=None), - ], - containing_type=None, - serialized_options=None, - serialized_start=170, - serialized_end=328, -) -_sym_db.RegisterEnumDescriptor(_KEYWORDPLANCAMPAIGNERRORENUM_KEYWORDPLANCAMPAIGNERROR) - - -_KEYWORDPLANCAMPAIGNERRORENUM = _descriptor.Descriptor( - name='KeywordPlanCampaignErrorEnum', - full_name='google.ads.googleads.v1.errors.KeywordPlanCampaignErrorEnum', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - _KEYWORDPLANCAMPAIGNERRORENUM_KEYWORDPLANCAMPAIGNERROR, - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=137, - serialized_end=328, -) - -_KEYWORDPLANCAMPAIGNERRORENUM_KEYWORDPLANCAMPAIGNERROR.containing_type = _KEYWORDPLANCAMPAIGNERRORENUM -DESCRIPTOR.message_types_by_name['KeywordPlanCampaignErrorEnum'] = _KEYWORDPLANCAMPAIGNERRORENUM -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -KeywordPlanCampaignErrorEnum = _reflection.GeneratedProtocolMessageType('KeywordPlanCampaignErrorEnum', (_message.Message,), dict( - DESCRIPTOR = _KEYWORDPLANCAMPAIGNERRORENUM, - __module__ = 'google.ads.googleads_v1.proto.errors.keyword_plan_campaign_error_pb2' - , - __doc__ = """Container for enum describing possible errors from applying a keyword - plan campaign. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.errors.KeywordPlanCampaignErrorEnum) - )) -_sym_db.RegisterMessage(KeywordPlanCampaignErrorEnum) - - -DESCRIPTOR._options = None -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/errors/keyword_plan_idea_error_pb2.py b/google/ads/google_ads/v1/proto/errors/keyword_plan_idea_error_pb2.py deleted file mode 100644 index 22bd4b544..000000000 --- a/google/ads/google_ads/v1/proto/errors/keyword_plan_idea_error_pb2.py +++ /dev/null @@ -1,102 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/errors/keyword_plan_idea_error.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/errors/keyword_plan_idea_error.proto', - package='google.ads.googleads.v1.errors', - syntax='proto3', - serialized_options=_b('\n\"com.google.ads.googleads.v1.errorsB\031KeywordPlanIdeaErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V1.Errors\312\002\036Google\\Ads\\GoogleAds\\V1\\Errors\352\002\"Google::Ads::GoogleAds::V1::Errors'), - serialized_pb=_b('\nBgoogle/ads/googleads_v1/proto/errors/keyword_plan_idea_error.proto\x12\x1egoogle.ads.googleads.v1.errors\x1a\x1cgoogle/api/annotations.proto\"x\n\x18KeywordPlanIdeaErrorEnum\"\\\n\x14KeywordPlanIdeaError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x13\n\x0fURL_CRAWL_ERROR\x10\x02\x12\x11\n\rINVALID_VALUE\x10\x03\x42\xf4\x01\n\"com.google.ads.googleads.v1.errorsB\x19KeywordPlanIdeaErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V1.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V1\\Errors\xea\x02\"Google::Ads::GoogleAds::V1::Errorsb\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - -_KEYWORDPLANIDEAERRORENUM_KEYWORDPLANIDEAERROR = _descriptor.EnumDescriptor( - name='KeywordPlanIdeaError', - full_name='google.ads.googleads.v1.errors.KeywordPlanIdeaErrorEnum.KeywordPlanIdeaError', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='UNSPECIFIED', index=0, number=0, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='UNKNOWN', index=1, number=1, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='URL_CRAWL_ERROR', index=2, number=2, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='INVALID_VALUE', index=3, number=3, - serialized_options=None, - type=None), - ], - containing_type=None, - serialized_options=None, - serialized_start=160, - serialized_end=252, -) -_sym_db.RegisterEnumDescriptor(_KEYWORDPLANIDEAERRORENUM_KEYWORDPLANIDEAERROR) - - -_KEYWORDPLANIDEAERRORENUM = _descriptor.Descriptor( - name='KeywordPlanIdeaErrorEnum', - full_name='google.ads.googleads.v1.errors.KeywordPlanIdeaErrorEnum', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - _KEYWORDPLANIDEAERRORENUM_KEYWORDPLANIDEAERROR, - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=132, - serialized_end=252, -) - -_KEYWORDPLANIDEAERRORENUM_KEYWORDPLANIDEAERROR.containing_type = _KEYWORDPLANIDEAERRORENUM -DESCRIPTOR.message_types_by_name['KeywordPlanIdeaErrorEnum'] = _KEYWORDPLANIDEAERRORENUM -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -KeywordPlanIdeaErrorEnum = _reflection.GeneratedProtocolMessageType('KeywordPlanIdeaErrorEnum', (_message.Message,), dict( - DESCRIPTOR = _KEYWORDPLANIDEAERRORENUM, - __module__ = 'google.ads.googleads_v1.proto.errors.keyword_plan_idea_error_pb2' - , - __doc__ = """Container for enum describing possible errors from - KeywordPlanIdeaService. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.errors.KeywordPlanIdeaErrorEnum) - )) -_sym_db.RegisterMessage(KeywordPlanIdeaErrorEnum) - - -DESCRIPTOR._options = None -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/errors/keyword_plan_keyword_error_pb2.py b/google/ads/google_ads/v1/proto/errors/keyword_plan_keyword_error_pb2.py deleted file mode 100644 index 5e9532495..000000000 --- a/google/ads/google_ads/v1/proto/errors/keyword_plan_keyword_error_pb2.py +++ /dev/null @@ -1,118 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/errors/keyword_plan_keyword_error.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/errors/keyword_plan_keyword_error.proto', - package='google.ads.googleads.v1.errors', - syntax='proto3', - serialized_options=_b('\n\"com.google.ads.googleads.v1.errorsB\034KeywordPlanKeywordErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V1.Errors\312\002\036Google\\Ads\\GoogleAds\\V1\\Errors\352\002\"Google::Ads::GoogleAds::V1::Errors'), - serialized_pb=_b('\nEgoogle/ads/googleads_v1/proto/errors/keyword_plan_keyword_error.proto\x12\x1egoogle.ads.googleads.v1.errors\x1a\x1cgoogle/api/annotations.proto\"\x82\x02\n\x1bKeywordPlanKeywordErrorEnum\"\xe2\x01\n\x17KeywordPlanKeywordError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x1e\n\x1aINVALID_KEYWORD_MATCH_TYPE\x10\x02\x12\x15\n\x11\x44UPLICATE_KEYWORD\x10\x03\x12\x19\n\x15KEYWORD_TEXT_TOO_LONG\x10\x04\x12\x1d\n\x19KEYWORD_HAS_INVALID_CHARS\x10\x05\x12\x1e\n\x1aKEYWORD_HAS_TOO_MANY_WORDS\x10\x06\x12\x18\n\x14INVALID_KEYWORD_TEXT\x10\x07\x42\xf7\x01\n\"com.google.ads.googleads.v1.errorsB\x1cKeywordPlanKeywordErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V1.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V1\\Errors\xea\x02\"Google::Ads::GoogleAds::V1::Errorsb\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - -_KEYWORDPLANKEYWORDERRORENUM_KEYWORDPLANKEYWORDERROR = _descriptor.EnumDescriptor( - name='KeywordPlanKeywordError', - full_name='google.ads.googleads.v1.errors.KeywordPlanKeywordErrorEnum.KeywordPlanKeywordError', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='UNSPECIFIED', index=0, number=0, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='UNKNOWN', index=1, number=1, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='INVALID_KEYWORD_MATCH_TYPE', index=2, number=2, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='DUPLICATE_KEYWORD', index=3, number=3, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='KEYWORD_TEXT_TOO_LONG', index=4, number=4, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='KEYWORD_HAS_INVALID_CHARS', index=5, number=5, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='KEYWORD_HAS_TOO_MANY_WORDS', index=6, number=6, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='INVALID_KEYWORD_TEXT', index=7, number=7, - serialized_options=None, - type=None), - ], - containing_type=None, - serialized_options=None, - serialized_start=168, - serialized_end=394, -) -_sym_db.RegisterEnumDescriptor(_KEYWORDPLANKEYWORDERRORENUM_KEYWORDPLANKEYWORDERROR) - - -_KEYWORDPLANKEYWORDERRORENUM = _descriptor.Descriptor( - name='KeywordPlanKeywordErrorEnum', - full_name='google.ads.googleads.v1.errors.KeywordPlanKeywordErrorEnum', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - _KEYWORDPLANKEYWORDERRORENUM_KEYWORDPLANKEYWORDERROR, - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=136, - serialized_end=394, -) - -_KEYWORDPLANKEYWORDERRORENUM_KEYWORDPLANKEYWORDERROR.containing_type = _KEYWORDPLANKEYWORDERRORENUM -DESCRIPTOR.message_types_by_name['KeywordPlanKeywordErrorEnum'] = _KEYWORDPLANKEYWORDERRORENUM -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -KeywordPlanKeywordErrorEnum = _reflection.GeneratedProtocolMessageType('KeywordPlanKeywordErrorEnum', (_message.Message,), dict( - DESCRIPTOR = _KEYWORDPLANKEYWORDERRORENUM, - __module__ = 'google.ads.googleads_v1.proto.errors.keyword_plan_keyword_error_pb2' - , - __doc__ = """Container for enum describing possible errors from applying a keyword or - a negative keyword from a keyword plan. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.errors.KeywordPlanKeywordErrorEnum) - )) -_sym_db.RegisterMessage(KeywordPlanKeywordErrorEnum) - - -DESCRIPTOR._options = None -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/errors/keyword_plan_negative_keyword_error_pb2.py b/google/ads/google_ads/v1/proto/errors/keyword_plan_negative_keyword_error_pb2.py deleted file mode 100644 index ff7afc856..000000000 --- a/google/ads/google_ads/v1/proto/errors/keyword_plan_negative_keyword_error_pb2.py +++ /dev/null @@ -1,94 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/errors/keyword_plan_negative_keyword_error.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/errors/keyword_plan_negative_keyword_error.proto', - package='google.ads.googleads.v1.errors', - syntax='proto3', - serialized_options=_b('\n\"com.google.ads.googleads.v1.errorsB$KeywordPlanNegativeKeywordErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V1.Errors\312\002\036Google\\Ads\\GoogleAds\\V1\\Errors\352\002\"Google::Ads::GoogleAds::V1::Errors'), - serialized_pb=_b('\nNgoogle/ads/googleads_v1/proto/errors/keyword_plan_negative_keyword_error.proto\x12\x1egoogle.ads.googleads.v1.errors\x1a\x1cgoogle/api/annotations.proto\"f\n#KeywordPlanNegativeKeywordErrorEnum\"?\n\x1fKeywordPlanNegativeKeywordError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x42\xff\x01\n\"com.google.ads.googleads.v1.errorsB$KeywordPlanNegativeKeywordErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V1.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V1\\Errors\xea\x02\"Google::Ads::GoogleAds::V1::Errorsb\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - -_KEYWORDPLANNEGATIVEKEYWORDERRORENUM_KEYWORDPLANNEGATIVEKEYWORDERROR = _descriptor.EnumDescriptor( - name='KeywordPlanNegativeKeywordError', - full_name='google.ads.googleads.v1.errors.KeywordPlanNegativeKeywordErrorEnum.KeywordPlanNegativeKeywordError', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='UNSPECIFIED', index=0, number=0, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='UNKNOWN', index=1, number=1, - serialized_options=None, - type=None), - ], - containing_type=None, - serialized_options=None, - serialized_start=183, - serialized_end=246, -) -_sym_db.RegisterEnumDescriptor(_KEYWORDPLANNEGATIVEKEYWORDERRORENUM_KEYWORDPLANNEGATIVEKEYWORDERROR) - - -_KEYWORDPLANNEGATIVEKEYWORDERRORENUM = _descriptor.Descriptor( - name='KeywordPlanNegativeKeywordErrorEnum', - full_name='google.ads.googleads.v1.errors.KeywordPlanNegativeKeywordErrorEnum', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - _KEYWORDPLANNEGATIVEKEYWORDERRORENUM_KEYWORDPLANNEGATIVEKEYWORDERROR, - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=144, - serialized_end=246, -) - -_KEYWORDPLANNEGATIVEKEYWORDERRORENUM_KEYWORDPLANNEGATIVEKEYWORDERROR.containing_type = _KEYWORDPLANNEGATIVEKEYWORDERRORENUM -DESCRIPTOR.message_types_by_name['KeywordPlanNegativeKeywordErrorEnum'] = _KEYWORDPLANNEGATIVEKEYWORDERRORENUM -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -KeywordPlanNegativeKeywordErrorEnum = _reflection.GeneratedProtocolMessageType('KeywordPlanNegativeKeywordErrorEnum', (_message.Message,), dict( - DESCRIPTOR = _KEYWORDPLANNEGATIVEKEYWORDERRORENUM, - __module__ = 'google.ads.googleads_v1.proto.errors.keyword_plan_negative_keyword_error_pb2' - , - __doc__ = """Container for enum describing possible errors from applying a keyword - plan negative keyword. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.errors.KeywordPlanNegativeKeywordErrorEnum) - )) -_sym_db.RegisterMessage(KeywordPlanNegativeKeywordErrorEnum) - - -DESCRIPTOR._options = None -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/errors/language_code_error_pb2.py b/google/ads/google_ads/v1/proto/errors/language_code_error_pb2.py deleted file mode 100644 index 808acd818..000000000 --- a/google/ads/google_ads/v1/proto/errors/language_code_error_pb2.py +++ /dev/null @@ -1,101 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/errors/language_code_error.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/errors/language_code_error.proto', - package='google.ads.googleads.v1.errors', - syntax='proto3', - serialized_options=_b('\n\"com.google.ads.googleads.v1.errorsB\026LanguageCodeErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V1.Errors\312\002\036Google\\Ads\\GoogleAds\\V1\\Errors\352\002\"Google::Ads::GoogleAds::V1::Errors'), - serialized_pb=_b('\n>google/ads/googleads_v1/proto/errors/language_code_error.proto\x12\x1egoogle.ads.googleads.v1.errors\x1a\x1cgoogle/api/annotations.proto\"\x82\x01\n\x15LanguageCodeErrorEnum\"i\n\x11LanguageCodeError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x1b\n\x17LANGUAGE_CODE_NOT_FOUND\x10\x02\x12\x19\n\x15INVALID_LANGUAGE_CODE\x10\x03\x42\xf1\x01\n\"com.google.ads.googleads.v1.errorsB\x16LanguageCodeErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V1.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V1\\Errors\xea\x02\"Google::Ads::GoogleAds::V1::Errorsb\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - -_LANGUAGECODEERRORENUM_LANGUAGECODEERROR = _descriptor.EnumDescriptor( - name='LanguageCodeError', - full_name='google.ads.googleads.v1.errors.LanguageCodeErrorEnum.LanguageCodeError', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='UNSPECIFIED', index=0, number=0, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='UNKNOWN', index=1, number=1, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='LANGUAGE_CODE_NOT_FOUND', index=2, number=2, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='INVALID_LANGUAGE_CODE', index=3, number=3, - serialized_options=None, - type=None), - ], - containing_type=None, - serialized_options=None, - serialized_start=154, - serialized_end=259, -) -_sym_db.RegisterEnumDescriptor(_LANGUAGECODEERRORENUM_LANGUAGECODEERROR) - - -_LANGUAGECODEERRORENUM = _descriptor.Descriptor( - name='LanguageCodeErrorEnum', - full_name='google.ads.googleads.v1.errors.LanguageCodeErrorEnum', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - _LANGUAGECODEERRORENUM_LANGUAGECODEERROR, - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=129, - serialized_end=259, -) - -_LANGUAGECODEERRORENUM_LANGUAGECODEERROR.containing_type = _LANGUAGECODEERRORENUM -DESCRIPTOR.message_types_by_name['LanguageCodeErrorEnum'] = _LANGUAGECODEERRORENUM -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -LanguageCodeErrorEnum = _reflection.GeneratedProtocolMessageType('LanguageCodeErrorEnum', (_message.Message,), dict( - DESCRIPTOR = _LANGUAGECODEERRORENUM, - __module__ = 'google.ads.googleads_v1.proto.errors.language_code_error_pb2' - , - __doc__ = """Container for enum describing language code errors. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.errors.LanguageCodeErrorEnum) - )) -_sym_db.RegisterMessage(LanguageCodeErrorEnum) - - -DESCRIPTOR._options = None -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/errors/list_operation_error_pb2.py b/google/ads/google_ads/v1/proto/errors/list_operation_error_pb2.py deleted file mode 100644 index 05ec4062b..000000000 --- a/google/ads/google_ads/v1/proto/errors/list_operation_error_pb2.py +++ /dev/null @@ -1,101 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/errors/list_operation_error.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/errors/list_operation_error.proto', - package='google.ads.googleads.v1.errors', - syntax='proto3', - serialized_options=_b('\n\"com.google.ads.googleads.v1.errorsB\027ListOperationErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V1.Errors\312\002\036Google\\Ads\\GoogleAds\\V1\\Errors\352\002\"Google::Ads::GoogleAds::V1::Errors'), - serialized_pb=_b('\n?google/ads/googleads_v1/proto/errors/list_operation_error.proto\x12\x1egoogle.ads.googleads.v1.errors\x1a\x1cgoogle/api/annotations.proto\"~\n\x16ListOperationErrorEnum\"d\n\x12ListOperationError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x1a\n\x16REQUIRED_FIELD_MISSING\x10\x07\x12\x14\n\x10\x44UPLICATE_VALUES\x10\x08\x42\xf2\x01\n\"com.google.ads.googleads.v1.errorsB\x17ListOperationErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V1.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V1\\Errors\xea\x02\"Google::Ads::GoogleAds::V1::Errorsb\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - -_LISTOPERATIONERRORENUM_LISTOPERATIONERROR = _descriptor.EnumDescriptor( - name='ListOperationError', - full_name='google.ads.googleads.v1.errors.ListOperationErrorEnum.ListOperationError', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='UNSPECIFIED', index=0, number=0, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='UNKNOWN', index=1, number=1, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='REQUIRED_FIELD_MISSING', index=2, number=7, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='DUPLICATE_VALUES', index=3, number=8, - serialized_options=None, - type=None), - ], - containing_type=None, - serialized_options=None, - serialized_start=155, - serialized_end=255, -) -_sym_db.RegisterEnumDescriptor(_LISTOPERATIONERRORENUM_LISTOPERATIONERROR) - - -_LISTOPERATIONERRORENUM = _descriptor.Descriptor( - name='ListOperationErrorEnum', - full_name='google.ads.googleads.v1.errors.ListOperationErrorEnum', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - _LISTOPERATIONERRORENUM_LISTOPERATIONERROR, - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=129, - serialized_end=255, -) - -_LISTOPERATIONERRORENUM_LISTOPERATIONERROR.containing_type = _LISTOPERATIONERRORENUM -DESCRIPTOR.message_types_by_name['ListOperationErrorEnum'] = _LISTOPERATIONERRORENUM -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -ListOperationErrorEnum = _reflection.GeneratedProtocolMessageType('ListOperationErrorEnum', (_message.Message,), dict( - DESCRIPTOR = _LISTOPERATIONERRORENUM, - __module__ = 'google.ads.googleads_v1.proto.errors.list_operation_error_pb2' - , - __doc__ = """Container for enum describing possible list operation errors. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.errors.ListOperationErrorEnum) - )) -_sym_db.RegisterMessage(ListOperationErrorEnum) - - -DESCRIPTOR._options = None -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/errors/manager_link_error_pb2.py b/google/ads/google_ads/v1/proto/errors/manager_link_error_pb2.py deleted file mode 100644 index a56e9b7d0..000000000 --- a/google/ads/google_ads/v1/proto/errors/manager_link_error_pb2.py +++ /dev/null @@ -1,149 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/errors/manager_link_error.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/errors/manager_link_error.proto', - package='google.ads.googleads.v1.errors', - syntax='proto3', - serialized_options=_b('\n\"com.google.ads.googleads.v1.errorsB\025ManagerLinkErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V1.Errors\312\002\036Google\\Ads\\GoogleAds\\V1\\Errors\352\002\"Google::Ads::GoogleAds::V1::Errors'), - serialized_pb=_b('\n=google/ads/googleads_v1/proto/errors/manager_link_error.proto\x12\x1egoogle.ads.googleads.v1.errors\x1a\x1cgoogle/api/annotations.proto\"\xfd\x03\n\x14ManagerLinkErrorEnum\"\xe4\x03\n\x10ManagerLinkError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\'\n#ACCOUNTS_NOT_COMPATIBLE_FOR_LINKING\x10\x02\x12\x15\n\x11TOO_MANY_MANAGERS\x10\x03\x12\x14\n\x10TOO_MANY_INVITES\x10\x04\x12#\n\x1f\x41LREADY_INVITED_BY_THIS_MANAGER\x10\x05\x12#\n\x1f\x41LREADY_MANAGED_BY_THIS_MANAGER\x10\x06\x12 \n\x1c\x41LREADY_MANAGED_IN_HIERARCHY\x10\x07\x12\x19\n\x15\x44UPLICATE_CHILD_FOUND\x10\x08\x12\x1c\n\x18\x43LIENT_HAS_NO_ADMIN_USER\x10\t\x12\x16\n\x12MAX_DEPTH_EXCEEDED\x10\n\x12\x15\n\x11\x43YCLE_NOT_ALLOWED\x10\x0b\x12\x15\n\x11TOO_MANY_ACCOUNTS\x10\x0c\x12 \n\x1cTOO_MANY_ACCOUNTS_AT_MANAGER\x10\r\x12%\n!NON_OWNER_USER_CANNOT_MODIFY_LINK\x10\x0e\x12(\n$SUSPENDED_ACCOUNT_CANNOT_ADD_CLIENTS\x10\x0f\x42\xf0\x01\n\"com.google.ads.googleads.v1.errorsB\x15ManagerLinkErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V1.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V1\\Errors\xea\x02\"Google::Ads::GoogleAds::V1::Errorsb\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - -_MANAGERLINKERRORENUM_MANAGERLINKERROR = _descriptor.EnumDescriptor( - name='ManagerLinkError', - full_name='google.ads.googleads.v1.errors.ManagerLinkErrorEnum.ManagerLinkError', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='UNSPECIFIED', index=0, number=0, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='UNKNOWN', index=1, number=1, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='ACCOUNTS_NOT_COMPATIBLE_FOR_LINKING', index=2, number=2, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='TOO_MANY_MANAGERS', index=3, number=3, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='TOO_MANY_INVITES', index=4, number=4, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='ALREADY_INVITED_BY_THIS_MANAGER', index=5, number=5, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='ALREADY_MANAGED_BY_THIS_MANAGER', index=6, number=6, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='ALREADY_MANAGED_IN_HIERARCHY', index=7, number=7, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='DUPLICATE_CHILD_FOUND', index=8, number=8, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='CLIENT_HAS_NO_ADMIN_USER', index=9, number=9, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='MAX_DEPTH_EXCEEDED', index=10, number=10, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='CYCLE_NOT_ALLOWED', index=11, number=11, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='TOO_MANY_ACCOUNTS', index=12, number=12, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='TOO_MANY_ACCOUNTS_AT_MANAGER', index=13, number=13, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='NON_OWNER_USER_CANNOT_MODIFY_LINK', index=14, number=14, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='SUSPENDED_ACCOUNT_CANNOT_ADD_CLIENTS', index=15, number=15, - serialized_options=None, - type=None), - ], - containing_type=None, - serialized_options=None, - serialized_start=153, - serialized_end=637, -) -_sym_db.RegisterEnumDescriptor(_MANAGERLINKERRORENUM_MANAGERLINKERROR) - - -_MANAGERLINKERRORENUM = _descriptor.Descriptor( - name='ManagerLinkErrorEnum', - full_name='google.ads.googleads.v1.errors.ManagerLinkErrorEnum', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - _MANAGERLINKERRORENUM_MANAGERLINKERROR, - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=128, - serialized_end=637, -) - -_MANAGERLINKERRORENUM_MANAGERLINKERROR.containing_type = _MANAGERLINKERRORENUM -DESCRIPTOR.message_types_by_name['ManagerLinkErrorEnum'] = _MANAGERLINKERRORENUM -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -ManagerLinkErrorEnum = _reflection.GeneratedProtocolMessageType('ManagerLinkErrorEnum', (_message.Message,), dict( - DESCRIPTOR = _MANAGERLINKERRORENUM, - __module__ = 'google.ads.googleads_v1.proto.errors.manager_link_error_pb2' - , - __doc__ = """Container for enum describing possible ManagerLink errors. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.errors.ManagerLinkErrorEnum) - )) -_sym_db.RegisterMessage(ManagerLinkErrorEnum) - - -DESCRIPTOR._options = None -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/errors/media_upload_error_pb2.py b/google/ads/google_ads/v1/proto/errors/media_upload_error_pb2.py deleted file mode 100644 index e48784b08..000000000 --- a/google/ads/google_ads/v1/proto/errors/media_upload_error_pb2.py +++ /dev/null @@ -1,109 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/errors/media_upload_error.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/errors/media_upload_error.proto', - package='google.ads.googleads.v1.errors', - syntax='proto3', - serialized_options=_b('\n\"com.google.ads.googleads.v1.errorsB\025MediaUploadErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V1.Errors\312\002\036Google\\Ads\\GoogleAds\\V1\\Errors\352\002\"Google::Ads::GoogleAds::V1::Errors'), - serialized_pb=_b('\n=google/ads/googleads_v1/proto/errors/media_upload_error.proto\x12\x1egoogle.ads.googleads.v1.errors\x1a\x1cgoogle/api/annotations.proto\"\xaa\x01\n\x14MediaUploadErrorEnum\"\x91\x01\n\x10MediaUploadError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x10\n\x0c\x46ILE_TOO_BIG\x10\x02\x12\x15\n\x11UNPARSEABLE_IMAGE\x10\x03\x12\x1e\n\x1a\x41NIMATED_IMAGE_NOT_ALLOWED\x10\x04\x12\x16\n\x12\x46ORMAT_NOT_ALLOWED\x10\x05\x42\xf0\x01\n\"com.google.ads.googleads.v1.errorsB\x15MediaUploadErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V1.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V1\\Errors\xea\x02\"Google::Ads::GoogleAds::V1::Errorsb\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - -_MEDIAUPLOADERRORENUM_MEDIAUPLOADERROR = _descriptor.EnumDescriptor( - name='MediaUploadError', - full_name='google.ads.googleads.v1.errors.MediaUploadErrorEnum.MediaUploadError', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='UNSPECIFIED', index=0, number=0, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='UNKNOWN', index=1, number=1, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='FILE_TOO_BIG', index=2, number=2, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='UNPARSEABLE_IMAGE', index=3, number=3, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='ANIMATED_IMAGE_NOT_ALLOWED', index=4, number=4, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='FORMAT_NOT_ALLOWED', index=5, number=5, - serialized_options=None, - type=None), - ], - containing_type=None, - serialized_options=None, - serialized_start=153, - serialized_end=298, -) -_sym_db.RegisterEnumDescriptor(_MEDIAUPLOADERRORENUM_MEDIAUPLOADERROR) - - -_MEDIAUPLOADERRORENUM = _descriptor.Descriptor( - name='MediaUploadErrorEnum', - full_name='google.ads.googleads.v1.errors.MediaUploadErrorEnum', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - _MEDIAUPLOADERRORENUM_MEDIAUPLOADERROR, - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=128, - serialized_end=298, -) - -_MEDIAUPLOADERRORENUM_MEDIAUPLOADERROR.containing_type = _MEDIAUPLOADERRORENUM -DESCRIPTOR.message_types_by_name['MediaUploadErrorEnum'] = _MEDIAUPLOADERRORENUM -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -MediaUploadErrorEnum = _reflection.GeneratedProtocolMessageType('MediaUploadErrorEnum', (_message.Message,), dict( - DESCRIPTOR = _MEDIAUPLOADERRORENUM, - __module__ = 'google.ads.googleads_v1.proto.errors.media_upload_error_pb2' - , - __doc__ = """Container for enum describing possible media uploading errors. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.errors.MediaUploadErrorEnum) - )) -_sym_db.RegisterMessage(MediaUploadErrorEnum) - - -DESCRIPTOR._options = None -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/errors/mutate_error_pb2.py b/google/ads/google_ads/v1/proto/errors/mutate_error_pb2.py deleted file mode 100644 index c32b7aec6..000000000 --- a/google/ads/google_ads/v1/proto/errors/mutate_error_pb2.py +++ /dev/null @@ -1,117 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/errors/mutate_error.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/errors/mutate_error.proto', - package='google.ads.googleads.v1.errors', - syntax='proto3', - serialized_options=_b('\n\"com.google.ads.googleads.v1.errorsB\020MutateErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V1.Errors\312\002\036Google\\Ads\\GoogleAds\\V1\\Errors\352\002\"Google::Ads::GoogleAds::V1::Errors'), - serialized_pb=_b('\n7google/ads/googleads_v1/proto/errors/mutate_error.proto\x12\x1egoogle.ads.googleads.v1.errors\x1a\x1cgoogle/api/annotations.proto\"\xee\x01\n\x0fMutateErrorEnum\"\xda\x01\n\x0bMutateError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x16\n\x12RESOURCE_NOT_FOUND\x10\x03\x12!\n\x1dID_EXISTS_IN_MULTIPLE_MUTATES\x10\x07\x12\x1d\n\x19INCONSISTENT_FIELD_VALUES\x10\x08\x12\x16\n\x12MUTATE_NOT_ALLOWED\x10\t\x12\x1e\n\x1aRESOURCE_NOT_IN_GOOGLE_ADS\x10\n\x12\x1b\n\x17RESOURCE_ALREADY_EXISTS\x10\x0b\x42\xeb\x01\n\"com.google.ads.googleads.v1.errorsB\x10MutateErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V1.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V1\\Errors\xea\x02\"Google::Ads::GoogleAds::V1::Errorsb\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - -_MUTATEERRORENUM_MUTATEERROR = _descriptor.EnumDescriptor( - name='MutateError', - full_name='google.ads.googleads.v1.errors.MutateErrorEnum.MutateError', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='UNSPECIFIED', index=0, number=0, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='UNKNOWN', index=1, number=1, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='RESOURCE_NOT_FOUND', index=2, number=3, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='ID_EXISTS_IN_MULTIPLE_MUTATES', index=3, number=7, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='INCONSISTENT_FIELD_VALUES', index=4, number=8, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='MUTATE_NOT_ALLOWED', index=5, number=9, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='RESOURCE_NOT_IN_GOOGLE_ADS', index=6, number=10, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='RESOURCE_ALREADY_EXISTS', index=7, number=11, - serialized_options=None, - type=None), - ], - containing_type=None, - serialized_options=None, - serialized_start=142, - serialized_end=360, -) -_sym_db.RegisterEnumDescriptor(_MUTATEERRORENUM_MUTATEERROR) - - -_MUTATEERRORENUM = _descriptor.Descriptor( - name='MutateErrorEnum', - full_name='google.ads.googleads.v1.errors.MutateErrorEnum', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - _MUTATEERRORENUM_MUTATEERROR, - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=122, - serialized_end=360, -) - -_MUTATEERRORENUM_MUTATEERROR.containing_type = _MUTATEERRORENUM -DESCRIPTOR.message_types_by_name['MutateErrorEnum'] = _MUTATEERRORENUM -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -MutateErrorEnum = _reflection.GeneratedProtocolMessageType('MutateErrorEnum', (_message.Message,), dict( - DESCRIPTOR = _MUTATEERRORENUM, - __module__ = 'google.ads.googleads_v1.proto.errors.mutate_error_pb2' - , - __doc__ = """Container for enum describing possible mutate errors. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.errors.MutateErrorEnum) - )) -_sym_db.RegisterMessage(MutateErrorEnum) - - -DESCRIPTOR._options = None -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/errors/mutate_job_error_pb2.py b/google/ads/google_ads/v1/proto/errors/mutate_job_error_pb2.py deleted file mode 100644 index a7dc23e62..000000000 --- a/google/ads/google_ads/v1/proto/errors/mutate_job_error_pb2.py +++ /dev/null @@ -1,113 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/errors/mutate_job_error.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/errors/mutate_job_error.proto', - package='google.ads.googleads.v1.errors', - syntax='proto3', - serialized_options=_b('\n\"com.google.ads.googleads.v1.errorsB\023MutateJobErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V1.Errors\312\002\036Google\\Ads\\GoogleAds\\V1\\Errors\352\002\"Google::Ads::GoogleAds::V1::Errors'), - serialized_pb=_b('\n;google/ads/googleads_v1/proto/errors/mutate_job_error.proto\x12\x1egoogle.ads.googleads.v1.errors\x1a\x1cgoogle/api/annotations.proto\"\xd5\x01\n\x12MutateJobErrorEnum\"\xbe\x01\n\x0eMutateJobError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12.\n*CANNOT_MODIFY_JOB_AFTER_JOB_STARTS_RUNNING\x10\x02\x12\x14\n\x10\x45MPTY_OPERATIONS\x10\x03\x12\x1a\n\x16INVALID_SEQUENCE_TOKEN\x10\x04\x12\x15\n\x11RESULTS_NOT_READY\x10\x05\x12\x15\n\x11INVALID_PAGE_SIZE\x10\x06\x42\xee\x01\n\"com.google.ads.googleads.v1.errorsB\x13MutateJobErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V1.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V1\\Errors\xea\x02\"Google::Ads::GoogleAds::V1::Errorsb\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - -_MUTATEJOBERRORENUM_MUTATEJOBERROR = _descriptor.EnumDescriptor( - name='MutateJobError', - full_name='google.ads.googleads.v1.errors.MutateJobErrorEnum.MutateJobError', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='UNSPECIFIED', index=0, number=0, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='UNKNOWN', index=1, number=1, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='CANNOT_MODIFY_JOB_AFTER_JOB_STARTS_RUNNING', index=2, number=2, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='EMPTY_OPERATIONS', index=3, number=3, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='INVALID_SEQUENCE_TOKEN', index=4, number=4, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='RESULTS_NOT_READY', index=5, number=5, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='INVALID_PAGE_SIZE', index=6, number=6, - serialized_options=None, - type=None), - ], - containing_type=None, - serialized_options=None, - serialized_start=149, - serialized_end=339, -) -_sym_db.RegisterEnumDescriptor(_MUTATEJOBERRORENUM_MUTATEJOBERROR) - - -_MUTATEJOBERRORENUM = _descriptor.Descriptor( - name='MutateJobErrorEnum', - full_name='google.ads.googleads.v1.errors.MutateJobErrorEnum', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - _MUTATEJOBERRORENUM_MUTATEJOBERROR, - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=126, - serialized_end=339, -) - -_MUTATEJOBERRORENUM_MUTATEJOBERROR.containing_type = _MUTATEJOBERRORENUM -DESCRIPTOR.message_types_by_name['MutateJobErrorEnum'] = _MUTATEJOBERRORENUM -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -MutateJobErrorEnum = _reflection.GeneratedProtocolMessageType('MutateJobErrorEnum', (_message.Message,), dict( - DESCRIPTOR = _MUTATEJOBERRORENUM, - __module__ = 'google.ads.googleads_v1.proto.errors.mutate_job_error_pb2' - , - __doc__ = """Container for enum describing possible mutate job errors. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.errors.MutateJobErrorEnum) - )) -_sym_db.RegisterMessage(MutateJobErrorEnum) - - -DESCRIPTOR._options = None -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/errors/not_empty_error_pb2.py b/google/ads/google_ads/v1/proto/errors/not_empty_error_pb2.py deleted file mode 100644 index 786b38fd7..000000000 --- a/google/ads/google_ads/v1/proto/errors/not_empty_error_pb2.py +++ /dev/null @@ -1,97 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/errors/not_empty_error.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/errors/not_empty_error.proto', - package='google.ads.googleads.v1.errors', - syntax='proto3', - serialized_options=_b('\n\"com.google.ads.googleads.v1.errorsB\022NotEmptyErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V1.Errors\312\002\036Google\\Ads\\GoogleAds\\V1\\Errors\352\002\"Google::Ads::GoogleAds::V1::Errors'), - serialized_pb=_b('\n:google/ads/googleads_v1/proto/errors/not_empty_error.proto\x12\x1egoogle.ads.googleads.v1.errors\x1a\x1cgoogle/api/annotations.proto\"R\n\x11NotEmptyErrorEnum\"=\n\rNotEmptyError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0e\n\nEMPTY_LIST\x10\x02\x42\xed\x01\n\"com.google.ads.googleads.v1.errorsB\x12NotEmptyErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V1.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V1\\Errors\xea\x02\"Google::Ads::GoogleAds::V1::Errorsb\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - -_NOTEMPTYERRORENUM_NOTEMPTYERROR = _descriptor.EnumDescriptor( - name='NotEmptyError', - full_name='google.ads.googleads.v1.errors.NotEmptyErrorEnum.NotEmptyError', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='UNSPECIFIED', index=0, number=0, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='UNKNOWN', index=1, number=1, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='EMPTY_LIST', index=2, number=2, - serialized_options=None, - type=None), - ], - containing_type=None, - serialized_options=None, - serialized_start=145, - serialized_end=206, -) -_sym_db.RegisterEnumDescriptor(_NOTEMPTYERRORENUM_NOTEMPTYERROR) - - -_NOTEMPTYERRORENUM = _descriptor.Descriptor( - name='NotEmptyErrorEnum', - full_name='google.ads.googleads.v1.errors.NotEmptyErrorEnum', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - _NOTEMPTYERRORENUM_NOTEMPTYERROR, - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=124, - serialized_end=206, -) - -_NOTEMPTYERRORENUM_NOTEMPTYERROR.containing_type = _NOTEMPTYERRORENUM -DESCRIPTOR.message_types_by_name['NotEmptyErrorEnum'] = _NOTEMPTYERRORENUM -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -NotEmptyErrorEnum = _reflection.GeneratedProtocolMessageType('NotEmptyErrorEnum', (_message.Message,), dict( - DESCRIPTOR = _NOTEMPTYERRORENUM, - __module__ = 'google.ads.googleads_v1.proto.errors.not_empty_error_pb2' - , - __doc__ = """Container for enum describing possible not empty errors. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.errors.NotEmptyErrorEnum) - )) -_sym_db.RegisterMessage(NotEmptyErrorEnum) - - -DESCRIPTOR._options = None -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/errors/not_whitelisted_error_pb2.py b/google/ads/google_ads/v1/proto/errors/not_whitelisted_error_pb2.py deleted file mode 100644 index 85e78f253..000000000 --- a/google/ads/google_ads/v1/proto/errors/not_whitelisted_error_pb2.py +++ /dev/null @@ -1,97 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/errors/not_whitelisted_error.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/errors/not_whitelisted_error.proto', - package='google.ads.googleads.v1.errors', - syntax='proto3', - serialized_options=_b('\n\"com.google.ads.googleads.v1.errorsB\030NotWhitelistedErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V1.Errors\312\002\036Google\\Ads\\GoogleAds\\V1\\Errors\352\002\"Google::Ads::GoogleAds::V1::Errors'), - serialized_pb=_b('\n@google/ads/googleads_v1/proto/errors/not_whitelisted_error.proto\x12\x1egoogle.ads.googleads.v1.errors\x1a\x1cgoogle/api/annotations.proto\"}\n\x17NotWhitelistedErrorEnum\"b\n\x13NotWhitelistedError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12-\n)CUSTOMER_NOT_WHITELISTED_FOR_THIS_FEATURE\x10\x02\x42\xf3\x01\n\"com.google.ads.googleads.v1.errorsB\x18NotWhitelistedErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V1.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V1\\Errors\xea\x02\"Google::Ads::GoogleAds::V1::Errorsb\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - -_NOTWHITELISTEDERRORENUM_NOTWHITELISTEDERROR = _descriptor.EnumDescriptor( - name='NotWhitelistedError', - full_name='google.ads.googleads.v1.errors.NotWhitelistedErrorEnum.NotWhitelistedError', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='UNSPECIFIED', index=0, number=0, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='UNKNOWN', index=1, number=1, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='CUSTOMER_NOT_WHITELISTED_FOR_THIS_FEATURE', index=2, number=2, - serialized_options=None, - type=None), - ], - containing_type=None, - serialized_options=None, - serialized_start=157, - serialized_end=255, -) -_sym_db.RegisterEnumDescriptor(_NOTWHITELISTEDERRORENUM_NOTWHITELISTEDERROR) - - -_NOTWHITELISTEDERRORENUM = _descriptor.Descriptor( - name='NotWhitelistedErrorEnum', - full_name='google.ads.googleads.v1.errors.NotWhitelistedErrorEnum', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - _NOTWHITELISTEDERRORENUM_NOTWHITELISTEDERROR, - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=130, - serialized_end=255, -) - -_NOTWHITELISTEDERRORENUM_NOTWHITELISTEDERROR.containing_type = _NOTWHITELISTEDERRORENUM -DESCRIPTOR.message_types_by_name['NotWhitelistedErrorEnum'] = _NOTWHITELISTEDERRORENUM -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -NotWhitelistedErrorEnum = _reflection.GeneratedProtocolMessageType('NotWhitelistedErrorEnum', (_message.Message,), dict( - DESCRIPTOR = _NOTWHITELISTEDERRORENUM, - __module__ = 'google.ads.googleads_v1.proto.errors.not_whitelisted_error_pb2' - , - __doc__ = """Container for enum describing possible not whitelisted errors. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.errors.NotWhitelistedErrorEnum) - )) -_sym_db.RegisterMessage(NotWhitelistedErrorEnum) - - -DESCRIPTOR._options = None -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/errors/null_error_pb2.py b/google/ads/google_ads/v1/proto/errors/null_error_pb2.py deleted file mode 100644 index 3a79c78f0..000000000 --- a/google/ads/google_ads/v1/proto/errors/null_error_pb2.py +++ /dev/null @@ -1,97 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/errors/null_error.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/errors/null_error.proto', - package='google.ads.googleads.v1.errors', - syntax='proto3', - serialized_options=_b('\n\"com.google.ads.googleads.v1.errorsB\016NullErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V1.Errors\312\002\036Google\\Ads\\GoogleAds\\V1\\Errors\352\002\"Google::Ads::GoogleAds::V1::Errors'), - serialized_pb=_b('\n5google/ads/googleads_v1/proto/errors/null_error.proto\x12\x1egoogle.ads.googleads.v1.errors\x1a\x1cgoogle/api/annotations.proto\"L\n\rNullErrorEnum\";\n\tNullError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x10\n\x0cNULL_CONTENT\x10\x02\x42\xe9\x01\n\"com.google.ads.googleads.v1.errorsB\x0eNullErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V1.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V1\\Errors\xea\x02\"Google::Ads::GoogleAds::V1::Errorsb\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - -_NULLERRORENUM_NULLERROR = _descriptor.EnumDescriptor( - name='NullError', - full_name='google.ads.googleads.v1.errors.NullErrorEnum.NullError', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='UNSPECIFIED', index=0, number=0, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='UNKNOWN', index=1, number=1, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='NULL_CONTENT', index=2, number=2, - serialized_options=None, - type=None), - ], - containing_type=None, - serialized_options=None, - serialized_start=136, - serialized_end=195, -) -_sym_db.RegisterEnumDescriptor(_NULLERRORENUM_NULLERROR) - - -_NULLERRORENUM = _descriptor.Descriptor( - name='NullErrorEnum', - full_name='google.ads.googleads.v1.errors.NullErrorEnum', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - _NULLERRORENUM_NULLERROR, - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=119, - serialized_end=195, -) - -_NULLERRORENUM_NULLERROR.containing_type = _NULLERRORENUM -DESCRIPTOR.message_types_by_name['NullErrorEnum'] = _NULLERRORENUM -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -NullErrorEnum = _reflection.GeneratedProtocolMessageType('NullErrorEnum', (_message.Message,), dict( - DESCRIPTOR = _NULLERRORENUM, - __module__ = 'google.ads.googleads_v1.proto.errors.null_error_pb2' - , - __doc__ = """Container for enum describing possible null errors. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.errors.NullErrorEnum) - )) -_sym_db.RegisterMessage(NullErrorEnum) - - -DESCRIPTOR._options = None -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/errors/operator_error_pb2.py b/google/ads/google_ads/v1/proto/errors/operator_error_pb2.py deleted file mode 100644 index 192939956..000000000 --- a/google/ads/google_ads/v1/proto/errors/operator_error_pb2.py +++ /dev/null @@ -1,97 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/errors/operator_error.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/errors/operator_error.proto', - package='google.ads.googleads.v1.errors', - syntax='proto3', - serialized_options=_b('\n\"com.google.ads.googleads.v1.errorsB\022OperatorErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V1.Errors\312\002\036Google\\Ads\\GoogleAds\\V1\\Errors\352\002\"Google::Ads::GoogleAds::V1::Errors'), - serialized_pb=_b('\n9google/ads/googleads_v1/proto/errors/operator_error.proto\x12\x1egoogle.ads.googleads.v1.errors\x1a\x1cgoogle/api/annotations.proto\"^\n\x11OperatorErrorEnum\"I\n\rOperatorError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x1a\n\x16OPERATOR_NOT_SUPPORTED\x10\x02\x42\xed\x01\n\"com.google.ads.googleads.v1.errorsB\x12OperatorErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V1.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V1\\Errors\xea\x02\"Google::Ads::GoogleAds::V1::Errorsb\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - -_OPERATORERRORENUM_OPERATORERROR = _descriptor.EnumDescriptor( - name='OperatorError', - full_name='google.ads.googleads.v1.errors.OperatorErrorEnum.OperatorError', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='UNSPECIFIED', index=0, number=0, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='UNKNOWN', index=1, number=1, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='OPERATOR_NOT_SUPPORTED', index=2, number=2, - serialized_options=None, - type=None), - ], - containing_type=None, - serialized_options=None, - serialized_start=144, - serialized_end=217, -) -_sym_db.RegisterEnumDescriptor(_OPERATORERRORENUM_OPERATORERROR) - - -_OPERATORERRORENUM = _descriptor.Descriptor( - name='OperatorErrorEnum', - full_name='google.ads.googleads.v1.errors.OperatorErrorEnum', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - _OPERATORERRORENUM_OPERATORERROR, - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=123, - serialized_end=217, -) - -_OPERATORERRORENUM_OPERATORERROR.containing_type = _OPERATORERRORENUM -DESCRIPTOR.message_types_by_name['OperatorErrorEnum'] = _OPERATORERRORENUM -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -OperatorErrorEnum = _reflection.GeneratedProtocolMessageType('OperatorErrorEnum', (_message.Message,), dict( - DESCRIPTOR = _OPERATORERRORENUM, - __module__ = 'google.ads.googleads_v1.proto.errors.operator_error_pb2' - , - __doc__ = """Container for enum describing possible operator errors. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.errors.OperatorErrorEnum) - )) -_sym_db.RegisterMessage(OperatorErrorEnum) - - -DESCRIPTOR._options = None -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/errors/partial_failure_error_pb2.py b/google/ads/google_ads/v1/proto/errors/partial_failure_error_pb2.py deleted file mode 100644 index 3f9001654..000000000 --- a/google/ads/google_ads/v1/proto/errors/partial_failure_error_pb2.py +++ /dev/null @@ -1,97 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/errors/partial_failure_error.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/errors/partial_failure_error.proto', - package='google.ads.googleads.v1.errors', - syntax='proto3', - serialized_options=_b('\n\"com.google.ads.googleads.v1.errorsB\030PartialFailureErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V1.Errors\312\002\036Google\\Ads\\GoogleAds\\V1\\Errors\352\002\"Google::Ads::GoogleAds::V1::Errors'), - serialized_pb=_b('\n@google/ads/googleads_v1/proto/errors/partial_failure_error.proto\x12\x1egoogle.ads.googleads.v1.errors\x1a\x1cgoogle/api/annotations.proto\"q\n\x17PartialFailureErrorEnum\"V\n\x13PartialFailureError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12!\n\x1dPARTIAL_FAILURE_MODE_REQUIRED\x10\x02\x42\xf3\x01\n\"com.google.ads.googleads.v1.errorsB\x18PartialFailureErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V1.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V1\\Errors\xea\x02\"Google::Ads::GoogleAds::V1::Errorsb\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - -_PARTIALFAILUREERRORENUM_PARTIALFAILUREERROR = _descriptor.EnumDescriptor( - name='PartialFailureError', - full_name='google.ads.googleads.v1.errors.PartialFailureErrorEnum.PartialFailureError', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='UNSPECIFIED', index=0, number=0, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='UNKNOWN', index=1, number=1, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='PARTIAL_FAILURE_MODE_REQUIRED', index=2, number=2, - serialized_options=None, - type=None), - ], - containing_type=None, - serialized_options=None, - serialized_start=157, - serialized_end=243, -) -_sym_db.RegisterEnumDescriptor(_PARTIALFAILUREERRORENUM_PARTIALFAILUREERROR) - - -_PARTIALFAILUREERRORENUM = _descriptor.Descriptor( - name='PartialFailureErrorEnum', - full_name='google.ads.googleads.v1.errors.PartialFailureErrorEnum', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - _PARTIALFAILUREERRORENUM_PARTIALFAILUREERROR, - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=130, - serialized_end=243, -) - -_PARTIALFAILUREERRORENUM_PARTIALFAILUREERROR.containing_type = _PARTIALFAILUREERRORENUM -DESCRIPTOR.message_types_by_name['PartialFailureErrorEnum'] = _PARTIALFAILUREERRORENUM -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -PartialFailureErrorEnum = _reflection.GeneratedProtocolMessageType('PartialFailureErrorEnum', (_message.Message,), dict( - DESCRIPTOR = _PARTIALFAILUREERRORENUM, - __module__ = 'google.ads.googleads_v1.proto.errors.partial_failure_error_pb2' - , - __doc__ = """Container for enum describing possible partial failure errors. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.errors.PartialFailureErrorEnum) - )) -_sym_db.RegisterMessage(PartialFailureErrorEnum) - - -DESCRIPTOR._options = None -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/errors/policy_finding_error_pb2.py b/google/ads/google_ads/v1/proto/errors/policy_finding_error_pb2.py deleted file mode 100644 index d69cb5368..000000000 --- a/google/ads/google_ads/v1/proto/errors/policy_finding_error_pb2.py +++ /dev/null @@ -1,101 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/errors/policy_finding_error.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/errors/policy_finding_error.proto', - package='google.ads.googleads.v1.errors', - syntax='proto3', - serialized_options=_b('\n\"com.google.ads.googleads.v1.errorsB\027PolicyFindingErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V1.Errors\312\002\036Google\\Ads\\GoogleAds\\V1\\Errors\352\002\"Google::Ads::GoogleAds::V1::Errors'), - serialized_pb=_b('\n?google/ads/googleads_v1/proto/errors/policy_finding_error.proto\x12\x1egoogle.ads.googleads.v1.errors\x1a\x1cgoogle/api/annotations.proto\"|\n\x16PolicyFindingErrorEnum\"b\n\x12PolicyFindingError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x12\n\x0ePOLICY_FINDING\x10\x02\x12\x1a\n\x16POLICY_TOPIC_NOT_FOUND\x10\x03\x42\xf2\x01\n\"com.google.ads.googleads.v1.errorsB\x17PolicyFindingErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V1.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V1\\Errors\xea\x02\"Google::Ads::GoogleAds::V1::Errorsb\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - -_POLICYFINDINGERRORENUM_POLICYFINDINGERROR = _descriptor.EnumDescriptor( - name='PolicyFindingError', - full_name='google.ads.googleads.v1.errors.PolicyFindingErrorEnum.PolicyFindingError', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='UNSPECIFIED', index=0, number=0, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='UNKNOWN', index=1, number=1, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='POLICY_FINDING', index=2, number=2, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='POLICY_TOPIC_NOT_FOUND', index=3, number=3, - serialized_options=None, - type=None), - ], - containing_type=None, - serialized_options=None, - serialized_start=155, - serialized_end=253, -) -_sym_db.RegisterEnumDescriptor(_POLICYFINDINGERRORENUM_POLICYFINDINGERROR) - - -_POLICYFINDINGERRORENUM = _descriptor.Descriptor( - name='PolicyFindingErrorEnum', - full_name='google.ads.googleads.v1.errors.PolicyFindingErrorEnum', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - _POLICYFINDINGERRORENUM_POLICYFINDINGERROR, - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=129, - serialized_end=253, -) - -_POLICYFINDINGERRORENUM_POLICYFINDINGERROR.containing_type = _POLICYFINDINGERRORENUM -DESCRIPTOR.message_types_by_name['PolicyFindingErrorEnum'] = _POLICYFINDINGERRORENUM -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -PolicyFindingErrorEnum = _reflection.GeneratedProtocolMessageType('PolicyFindingErrorEnum', (_message.Message,), dict( - DESCRIPTOR = _POLICYFINDINGERRORENUM, - __module__ = 'google.ads.googleads_v1.proto.errors.policy_finding_error_pb2' - , - __doc__ = """Container for enum describing possible policy finding errors. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.errors.PolicyFindingErrorEnum) - )) -_sym_db.RegisterMessage(PolicyFindingErrorEnum) - - -DESCRIPTOR._options = None -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/errors/policy_violation_error_pb2.py b/google/ads/google_ads/v1/proto/errors/policy_violation_error_pb2.py deleted file mode 100644 index 9b84f81ea..000000000 --- a/google/ads/google_ads/v1/proto/errors/policy_violation_error_pb2.py +++ /dev/null @@ -1,97 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/errors/policy_violation_error.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/errors/policy_violation_error.proto', - package='google.ads.googleads.v1.errors', - syntax='proto3', - serialized_options=_b('\n\"com.google.ads.googleads.v1.errorsB\031PolicyViolationErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V1.Errors\312\002\036Google\\Ads\\GoogleAds\\V1\\Errors\352\002\"Google::Ads::GoogleAds::V1::Errors'), - serialized_pb=_b('\nAgoogle/ads/googleads_v1/proto/errors/policy_violation_error.proto\x12\x1egoogle.ads.googleads.v1.errors\x1a\x1cgoogle/api/annotations.proto\"b\n\x18PolicyViolationErrorEnum\"F\n\x14PolicyViolationError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x10\n\x0cPOLICY_ERROR\x10\x02\x42\xf4\x01\n\"com.google.ads.googleads.v1.errorsB\x19PolicyViolationErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V1.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V1\\Errors\xea\x02\"Google::Ads::GoogleAds::V1::Errorsb\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - -_POLICYVIOLATIONERRORENUM_POLICYVIOLATIONERROR = _descriptor.EnumDescriptor( - name='PolicyViolationError', - full_name='google.ads.googleads.v1.errors.PolicyViolationErrorEnum.PolicyViolationError', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='UNSPECIFIED', index=0, number=0, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='UNKNOWN', index=1, number=1, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='POLICY_ERROR', index=2, number=2, - serialized_options=None, - type=None), - ], - containing_type=None, - serialized_options=None, - serialized_start=159, - serialized_end=229, -) -_sym_db.RegisterEnumDescriptor(_POLICYVIOLATIONERRORENUM_POLICYVIOLATIONERROR) - - -_POLICYVIOLATIONERRORENUM = _descriptor.Descriptor( - name='PolicyViolationErrorEnum', - full_name='google.ads.googleads.v1.errors.PolicyViolationErrorEnum', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - _POLICYVIOLATIONERRORENUM_POLICYVIOLATIONERROR, - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=131, - serialized_end=229, -) - -_POLICYVIOLATIONERRORENUM_POLICYVIOLATIONERROR.containing_type = _POLICYVIOLATIONERRORENUM -DESCRIPTOR.message_types_by_name['PolicyViolationErrorEnum'] = _POLICYVIOLATIONERRORENUM -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -PolicyViolationErrorEnum = _reflection.GeneratedProtocolMessageType('PolicyViolationErrorEnum', (_message.Message,), dict( - DESCRIPTOR = _POLICYVIOLATIONERRORENUM, - __module__ = 'google.ads.googleads_v1.proto.errors.policy_violation_error_pb2' - , - __doc__ = """Container for enum describing possible policy violation errors. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.errors.PolicyViolationErrorEnum) - )) -_sym_db.RegisterMessage(PolicyViolationErrorEnum) - - -DESCRIPTOR._options = None -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/errors/query_error_pb2.py b/google/ads/google_ads/v1/proto/errors/query_error_pb2.py deleted file mode 100644 index 9feeea957..000000000 --- a/google/ads/google_ads/v1/proto/errors/query_error_pb2.py +++ /dev/null @@ -1,301 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/errors/query_error.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/errors/query_error.proto', - package='google.ads.googleads.v1.errors', - syntax='proto3', - serialized_options=_b('\n\"com.google.ads.googleads.v1.errorsB\017QueryErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V1.Errors\312\002\036Google\\Ads\\GoogleAds\\V1\\Errors\352\002\"Google::Ads::GoogleAds::V1::Errors'), - serialized_pb=_b('\n6google/ads/googleads_v1/proto/errors/query_error.proto\x12\x1egoogle.ads.googleads.v1.errors\x1a\x1cgoogle/api/annotations.proto\"\xb8\r\n\x0eQueryErrorEnum\"\xa5\r\n\nQueryError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0f\n\x0bQUERY_ERROR\x10\x32\x12\x15\n\x11\x42\x41\x44_ENUM_CONSTANT\x10\x12\x12\x17\n\x13\x42\x41\x44_ESCAPE_SEQUENCE\x10\x07\x12\x12\n\x0e\x42\x41\x44_FIELD_NAME\x10\x0c\x12\x13\n\x0f\x42\x41\x44_LIMIT_VALUE\x10\x0f\x12\x0e\n\nBAD_NUMBER\x10\x05\x12\x10\n\x0c\x42\x41\x44_OPERATOR\x10\x03\x12\x16\n\x12\x42\x41\x44_PARAMETER_NAME\x10=\x12\x17\n\x13\x42\x41\x44_PARAMETER_VALUE\x10>\x12$\n BAD_RESOURCE_TYPE_IN_FROM_CLAUSE\x10-\x12\x0e\n\nBAD_SYMBOL\x10\x02\x12\r\n\tBAD_VALUE\x10\x04\x12\x17\n\x13\x44\x41TE_RANGE_TOO_WIDE\x10$\x12\x10\n\x0c\x45XPECTED_AND\x10\x1e\x12\x0f\n\x0b\x45XPECTED_BY\x10\x0e\x12-\n)EXPECTED_DIMENSION_FIELD_IN_SELECT_CLAUSE\x10%\x12\"\n\x1e\x45XPECTED_FILTERS_ON_DATE_RANGE\x10\x37\x12\x11\n\rEXPECTED_FROM\x10,\x12\x11\n\rEXPECTED_LIST\x10)\x12.\n*EXPECTED_REFERENCED_FIELD_IN_SELECT_CLAUSE\x10\x10\x12\x13\n\x0f\x45XPECTED_SELECT\x10\r\x12\x19\n\x15\x45XPECTED_SINGLE_VALUE\x10*\x12(\n$EXPECTED_VALUE_WITH_BETWEEN_OPERATOR\x10\x1d\x12\x17\n\x13INVALID_DATE_FORMAT\x10&\x12\x18\n\x14INVALID_STRING_VALUE\x10\x39\x12\'\n#INVALID_VALUE_WITH_BETWEEN_OPERATOR\x10\x1a\x12&\n\"INVALID_VALUE_WITH_DURING_OPERATOR\x10\x16\x12$\n INVALID_VALUE_WITH_LIKE_OPERATOR\x10\x38\x12\x1b\n\x17OPERATOR_FIELD_MISMATCH\x10#\x12&\n\"PROHIBITED_EMPTY_LIST_IN_CONDITION\x10\x1c\x12\x1c\n\x18PROHIBITED_ENUM_CONSTANT\x10\x36\x12\x31\n-PROHIBITED_FIELD_COMBINATION_IN_SELECT_CLAUSE\x10\x1f\x12\'\n#PROHIBITED_FIELD_IN_ORDER_BY_CLAUSE\x10(\x12%\n!PROHIBITED_FIELD_IN_SELECT_CLAUSE\x10\x17\x12$\n PROHIBITED_FIELD_IN_WHERE_CLAUSE\x10\x18\x12+\n\'PROHIBITED_RESOURCE_TYPE_IN_FROM_CLAUSE\x10+\x12-\n)PROHIBITED_RESOURCE_TYPE_IN_SELECT_CLAUSE\x10\x30\x12,\n(PROHIBITED_RESOURCE_TYPE_IN_WHERE_CLAUSE\x10:\x12/\n+PROHIBITED_METRIC_IN_SELECT_OR_WHERE_CLAUSE\x10\x31\x12\x30\n,PROHIBITED_SEGMENT_IN_SELECT_OR_WHERE_CLAUSE\x10\x33\x12<\n8PROHIBITED_SEGMENT_WITH_METRIC_IN_SELECT_OR_WHERE_CLAUSE\x10\x35\x12\x17\n\x13LIMIT_VALUE_TOO_LOW\x10\x19\x12 \n\x1cPROHIBITED_NEWLINE_IN_STRING\x10\x08\x12(\n$PROHIBITED_VALUE_COMBINATION_IN_LIST\x10\n\x12\x36\n2PROHIBITED_VALUE_COMBINATION_WITH_BETWEEN_OPERATOR\x10\x15\x12\x19\n\x15STRING_NOT_TERMINATED\x10\x06\x12\x15\n\x11TOO_MANY_SEGMENTS\x10\"\x12\x1b\n\x17UNEXPECTED_END_OF_QUERY\x10\t\x12\x1a\n\x16UNEXPECTED_FROM_CLAUSE\x10/\x12\x16\n\x12UNRECOGNIZED_FIELD\x10 \x12\x14\n\x10UNEXPECTED_INPUT\x10\x0b\x12!\n\x1dREQUESTED_METRICS_FOR_MANAGER\x10;B\xea\x01\n\"com.google.ads.googleads.v1.errorsB\x0fQueryErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V1.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V1\\Errors\xea\x02\"Google::Ads::GoogleAds::V1::Errorsb\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - -_QUERYERRORENUM_QUERYERROR = _descriptor.EnumDescriptor( - name='QueryError', - full_name='google.ads.googleads.v1.errors.QueryErrorEnum.QueryError', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='UNSPECIFIED', index=0, number=0, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='UNKNOWN', index=1, number=1, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='QUERY_ERROR', index=2, number=50, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='BAD_ENUM_CONSTANT', index=3, number=18, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='BAD_ESCAPE_SEQUENCE', index=4, number=7, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='BAD_FIELD_NAME', index=5, number=12, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='BAD_LIMIT_VALUE', index=6, number=15, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='BAD_NUMBER', index=7, number=5, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='BAD_OPERATOR', index=8, number=3, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='BAD_PARAMETER_NAME', index=9, number=61, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='BAD_PARAMETER_VALUE', index=10, number=62, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='BAD_RESOURCE_TYPE_IN_FROM_CLAUSE', index=11, number=45, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='BAD_SYMBOL', index=12, number=2, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='BAD_VALUE', index=13, number=4, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='DATE_RANGE_TOO_WIDE', index=14, number=36, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='EXPECTED_AND', index=15, number=30, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='EXPECTED_BY', index=16, number=14, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='EXPECTED_DIMENSION_FIELD_IN_SELECT_CLAUSE', index=17, number=37, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='EXPECTED_FILTERS_ON_DATE_RANGE', index=18, number=55, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='EXPECTED_FROM', index=19, number=44, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='EXPECTED_LIST', index=20, number=41, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='EXPECTED_REFERENCED_FIELD_IN_SELECT_CLAUSE', index=21, number=16, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='EXPECTED_SELECT', index=22, number=13, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='EXPECTED_SINGLE_VALUE', index=23, number=42, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='EXPECTED_VALUE_WITH_BETWEEN_OPERATOR', index=24, number=29, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='INVALID_DATE_FORMAT', index=25, number=38, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='INVALID_STRING_VALUE', index=26, number=57, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='INVALID_VALUE_WITH_BETWEEN_OPERATOR', index=27, number=26, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='INVALID_VALUE_WITH_DURING_OPERATOR', index=28, number=22, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='INVALID_VALUE_WITH_LIKE_OPERATOR', index=29, number=56, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='OPERATOR_FIELD_MISMATCH', index=30, number=35, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='PROHIBITED_EMPTY_LIST_IN_CONDITION', index=31, number=28, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='PROHIBITED_ENUM_CONSTANT', index=32, number=54, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='PROHIBITED_FIELD_COMBINATION_IN_SELECT_CLAUSE', index=33, number=31, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='PROHIBITED_FIELD_IN_ORDER_BY_CLAUSE', index=34, number=40, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='PROHIBITED_FIELD_IN_SELECT_CLAUSE', index=35, number=23, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='PROHIBITED_FIELD_IN_WHERE_CLAUSE', index=36, number=24, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='PROHIBITED_RESOURCE_TYPE_IN_FROM_CLAUSE', index=37, number=43, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='PROHIBITED_RESOURCE_TYPE_IN_SELECT_CLAUSE', index=38, number=48, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='PROHIBITED_RESOURCE_TYPE_IN_WHERE_CLAUSE', index=39, number=58, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='PROHIBITED_METRIC_IN_SELECT_OR_WHERE_CLAUSE', index=40, number=49, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='PROHIBITED_SEGMENT_IN_SELECT_OR_WHERE_CLAUSE', index=41, number=51, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='PROHIBITED_SEGMENT_WITH_METRIC_IN_SELECT_OR_WHERE_CLAUSE', index=42, number=53, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='LIMIT_VALUE_TOO_LOW', index=43, number=25, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='PROHIBITED_NEWLINE_IN_STRING', index=44, number=8, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='PROHIBITED_VALUE_COMBINATION_IN_LIST', index=45, number=10, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='PROHIBITED_VALUE_COMBINATION_WITH_BETWEEN_OPERATOR', index=46, number=21, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='STRING_NOT_TERMINATED', index=47, number=6, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='TOO_MANY_SEGMENTS', index=48, number=34, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='UNEXPECTED_END_OF_QUERY', index=49, number=9, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='UNEXPECTED_FROM_CLAUSE', index=50, number=47, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='UNRECOGNIZED_FIELD', index=51, number=32, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='UNEXPECTED_INPUT', index=52, number=11, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='REQUESTED_METRICS_FOR_MANAGER', index=53, number=59, - serialized_options=None, - type=None), - ], - containing_type=None, - serialized_options=None, - serialized_start=140, - serialized_end=1841, -) -_sym_db.RegisterEnumDescriptor(_QUERYERRORENUM_QUERYERROR) - - -_QUERYERRORENUM = _descriptor.Descriptor( - name='QueryErrorEnum', - full_name='google.ads.googleads.v1.errors.QueryErrorEnum', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - _QUERYERRORENUM_QUERYERROR, - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=121, - serialized_end=1841, -) - -_QUERYERRORENUM_QUERYERROR.containing_type = _QUERYERRORENUM -DESCRIPTOR.message_types_by_name['QueryErrorEnum'] = _QUERYERRORENUM -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -QueryErrorEnum = _reflection.GeneratedProtocolMessageType('QueryErrorEnum', (_message.Message,), dict( - DESCRIPTOR = _QUERYERRORENUM, - __module__ = 'google.ads.googleads_v1.proto.errors.query_error_pb2' - , - __doc__ = """Container for enum describing possible query errors. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.errors.QueryErrorEnum) - )) -_sym_db.RegisterMessage(QueryErrorEnum) - - -DESCRIPTOR._options = None -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/errors/quota_error_pb2.py b/google/ads/google_ads/v1/proto/errors/quota_error_pb2.py deleted file mode 100644 index b34da325e..000000000 --- a/google/ads/google_ads/v1/proto/errors/quota_error_pb2.py +++ /dev/null @@ -1,105 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/errors/quota_error.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/errors/quota_error.proto', - package='google.ads.googleads.v1.errors', - syntax='proto3', - serialized_options=_b('\n\"com.google.ads.googleads.v1.errorsB\017QuotaErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V1.Errors\312\002\036Google\\Ads\\GoogleAds\\V1\\Errors\352\002\"Google::Ads::GoogleAds::V1::Errors'), - serialized_pb=_b('\n6google/ads/googleads_v1/proto/errors/quota_error.proto\x12\x1egoogle.ads.googleads.v1.errors\x1a\x1cgoogle/api/annotations.proto\"\x8f\x01\n\x0eQuotaErrorEnum\"}\n\nQuotaError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x16\n\x12RESOURCE_EXHAUSTED\x10\x02\x12\x15\n\x11\x41\x43\x43\x45SS_PROHIBITED\x10\x03\x12\"\n\x1eRESOURCE_TEMPORARILY_EXHAUSTED\x10\x04\x42\xea\x01\n\"com.google.ads.googleads.v1.errorsB\x0fQuotaErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V1.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V1\\Errors\xea\x02\"Google::Ads::GoogleAds::V1::Errorsb\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - -_QUOTAERRORENUM_QUOTAERROR = _descriptor.EnumDescriptor( - name='QuotaError', - full_name='google.ads.googleads.v1.errors.QuotaErrorEnum.QuotaError', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='UNSPECIFIED', index=0, number=0, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='UNKNOWN', index=1, number=1, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='RESOURCE_EXHAUSTED', index=2, number=2, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='ACCESS_PROHIBITED', index=3, number=3, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='RESOURCE_TEMPORARILY_EXHAUSTED', index=4, number=4, - serialized_options=None, - type=None), - ], - containing_type=None, - serialized_options=None, - serialized_start=139, - serialized_end=264, -) -_sym_db.RegisterEnumDescriptor(_QUOTAERRORENUM_QUOTAERROR) - - -_QUOTAERRORENUM = _descriptor.Descriptor( - name='QuotaErrorEnum', - full_name='google.ads.googleads.v1.errors.QuotaErrorEnum', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - _QUOTAERRORENUM_QUOTAERROR, - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=121, - serialized_end=264, -) - -_QUOTAERRORENUM_QUOTAERROR.containing_type = _QUOTAERRORENUM -DESCRIPTOR.message_types_by_name['QuotaErrorEnum'] = _QUOTAERRORENUM -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -QuotaErrorEnum = _reflection.GeneratedProtocolMessageType('QuotaErrorEnum', (_message.Message,), dict( - DESCRIPTOR = _QUOTAERRORENUM, - __module__ = 'google.ads.googleads_v1.proto.errors.quota_error_pb2' - , - __doc__ = """Container for enum describing possible quota errors. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.errors.QuotaErrorEnum) - )) -_sym_db.RegisterMessage(QuotaErrorEnum) - - -DESCRIPTOR._options = None -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/errors/range_error_pb2.py b/google/ads/google_ads/v1/proto/errors/range_error_pb2.py deleted file mode 100644 index 539c327ad..000000000 --- a/google/ads/google_ads/v1/proto/errors/range_error_pb2.py +++ /dev/null @@ -1,101 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/errors/range_error.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/errors/range_error.proto', - package='google.ads.googleads.v1.errors', - syntax='proto3', - serialized_options=_b('\n\"com.google.ads.googleads.v1.errorsB\017RangeErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V1.Errors\312\002\036Google\\Ads\\GoogleAds\\V1\\Errors\352\002\"Google::Ads::GoogleAds::V1::Errors'), - serialized_pb=_b('\n6google/ads/googleads_v1/proto/errors/range_error.proto\x12\x1egoogle.ads.googleads.v1.errors\x1a\x1cgoogle/api/annotations.proto\"W\n\x0eRangeErrorEnum\"E\n\nRangeError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0b\n\x07TOO_LOW\x10\x02\x12\x0c\n\x08TOO_HIGH\x10\x03\x42\xea\x01\n\"com.google.ads.googleads.v1.errorsB\x0fRangeErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V1.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V1\\Errors\xea\x02\"Google::Ads::GoogleAds::V1::Errorsb\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - -_RANGEERRORENUM_RANGEERROR = _descriptor.EnumDescriptor( - name='RangeError', - full_name='google.ads.googleads.v1.errors.RangeErrorEnum.RangeError', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='UNSPECIFIED', index=0, number=0, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='UNKNOWN', index=1, number=1, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='TOO_LOW', index=2, number=2, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='TOO_HIGH', index=3, number=3, - serialized_options=None, - type=None), - ], - containing_type=None, - serialized_options=None, - serialized_start=138, - serialized_end=207, -) -_sym_db.RegisterEnumDescriptor(_RANGEERRORENUM_RANGEERROR) - - -_RANGEERRORENUM = _descriptor.Descriptor( - name='RangeErrorEnum', - full_name='google.ads.googleads.v1.errors.RangeErrorEnum', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - _RANGEERRORENUM_RANGEERROR, - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=120, - serialized_end=207, -) - -_RANGEERRORENUM_RANGEERROR.containing_type = _RANGEERRORENUM -DESCRIPTOR.message_types_by_name['RangeErrorEnum'] = _RANGEERRORENUM -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -RangeErrorEnum = _reflection.GeneratedProtocolMessageType('RangeErrorEnum', (_message.Message,), dict( - DESCRIPTOR = _RANGEERRORENUM, - __module__ = 'google.ads.googleads_v1.proto.errors.range_error_pb2' - , - __doc__ = """Container for enum describing possible range errors. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.errors.RangeErrorEnum) - )) -_sym_db.RegisterMessage(RangeErrorEnum) - - -DESCRIPTOR._options = None -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/errors/region_code_error_pb2.py b/google/ads/google_ads/v1/proto/errors/region_code_error_pb2.py deleted file mode 100644 index 0a9ed58bb..000000000 --- a/google/ads/google_ads/v1/proto/errors/region_code_error_pb2.py +++ /dev/null @@ -1,97 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/errors/region_code_error.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/errors/region_code_error.proto', - package='google.ads.googleads.v1.errors', - syntax='proto3', - serialized_options=_b('\n\"com.google.ads.googleads.v1.errorsB\024RegionCodeErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V1.Errors\312\002\036Google\\Ads\\GoogleAds\\V1\\Errors\352\002\"Google::Ads::GoogleAds::V1::Errors'), - serialized_pb=_b('\n\n:TARGET_ALL_IS_NOT_ALLOWED_FOR_PLACEMENT_IN_SEARCH_CAMPAIGN\x10\x0c\x12\x38\n4UNIVERSAL_APP_CAMPAIGN_SETTING_DUPLICATE_DESCRIPTION\x10\r\x12\x42\n>UNIVERSAL_APP_CAMPAIGN_SETTING_DESCRIPTION_LINE_WIDTH_TOO_LONG\x10\x0e\x12<\n8UNIVERSAL_APP_CAMPAIGN_SETTING_APP_ID_CANNOT_BE_MODIFIED\x10\x0f\x12\x38\n4TOO_MANY_YOUTUBE_MEDIA_IDS_IN_UNIVERSAL_APP_CAMPAIGN\x10\x10\x12\x36\n2TOO_MANY_IMAGE_MEDIA_IDS_IN_UNIVERSAL_APP_CAMPAIGN\x10\x11\x12\x31\n-MEDIA_INCOMPATIBLE_FOR_UNIVERSAL_APP_CAMPAIGN\x10\x12\x12\x1e\n\x1aTOO_MANY_EXCLAMATION_MARKS\x10\x13\x42\xec\x01\n\"com.google.ads.googleads.v1.errorsB\x11SettingErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V1.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V1\\Errors\xea\x02\"Google::Ads::GoogleAds::V1::Errorsb\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - -_SETTINGERRORENUM_SETTINGERROR = _descriptor.EnumDescriptor( - name='SettingError', - full_name='google.ads.googleads.v1.errors.SettingErrorEnum.SettingError', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='UNSPECIFIED', index=0, number=0, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='UNKNOWN', index=1, number=1, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='SETTING_TYPE_IS_NOT_AVAILABLE', index=2, number=3, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='SETTING_TYPE_IS_NOT_COMPATIBLE_WITH_CAMPAIGN', index=3, number=4, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='TARGETING_SETTING_CONTAINS_INVALID_CRITERION_TYPE_GROUP', index=4, number=5, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='TARGETING_SETTING_DEMOGRAPHIC_CRITERION_TYPE_GROUPS_MUST_BE_SET_TO_TARGET_ALL', index=5, number=6, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='TARGETING_SETTING_CANNOT_CHANGE_TARGET_ALL_TO_FALSE_FOR_DEMOGRAPHIC_CRITERION_TYPE_GROUP', index=6, number=7, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='DYNAMIC_SEARCH_ADS_SETTING_AT_LEAST_ONE_FEED_ID_MUST_BE_PRESENT', index=7, number=8, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='DYNAMIC_SEARCH_ADS_SETTING_CONTAINS_INVALID_DOMAIN_NAME', index=8, number=9, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='DYNAMIC_SEARCH_ADS_SETTING_CONTAINS_SUBDOMAIN_NAME', index=9, number=10, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='DYNAMIC_SEARCH_ADS_SETTING_CONTAINS_INVALID_LANGUAGE_CODE', index=10, number=11, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='TARGET_ALL_IS_NOT_ALLOWED_FOR_PLACEMENT_IN_SEARCH_CAMPAIGN', index=11, number=12, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='UNIVERSAL_APP_CAMPAIGN_SETTING_DUPLICATE_DESCRIPTION', index=12, number=13, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='UNIVERSAL_APP_CAMPAIGN_SETTING_DESCRIPTION_LINE_WIDTH_TOO_LONG', index=13, number=14, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='UNIVERSAL_APP_CAMPAIGN_SETTING_APP_ID_CANNOT_BE_MODIFIED', index=14, number=15, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='TOO_MANY_YOUTUBE_MEDIA_IDS_IN_UNIVERSAL_APP_CAMPAIGN', index=15, number=16, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='TOO_MANY_IMAGE_MEDIA_IDS_IN_UNIVERSAL_APP_CAMPAIGN', index=16, number=17, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='MEDIA_INCOMPATIBLE_FOR_UNIVERSAL_APP_CAMPAIGN', index=17, number=18, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='TOO_MANY_EXCLAMATION_MARKS', index=18, number=19, - serialized_options=None, - type=None), - ], - containing_type=None, - serialized_options=None, - serialized_start=144, - serialized_end=1209, -) -_sym_db.RegisterEnumDescriptor(_SETTINGERRORENUM_SETTINGERROR) - - -_SETTINGERRORENUM = _descriptor.Descriptor( - name='SettingErrorEnum', - full_name='google.ads.googleads.v1.errors.SettingErrorEnum', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - _SETTINGERRORENUM_SETTINGERROR, - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=123, - serialized_end=1209, -) - -_SETTINGERRORENUM_SETTINGERROR.containing_type = _SETTINGERRORENUM -DESCRIPTOR.message_types_by_name['SettingErrorEnum'] = _SETTINGERRORENUM -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -SettingErrorEnum = _reflection.GeneratedProtocolMessageType('SettingErrorEnum', (_message.Message,), dict( - DESCRIPTOR = _SETTINGERRORENUM, - __module__ = 'google.ads.googleads_v1.proto.errors.setting_error_pb2' - , - __doc__ = """Container for enum describing possible setting errors. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.errors.SettingErrorEnum) - )) -_sym_db.RegisterMessage(SettingErrorEnum) - - -DESCRIPTOR._options = None -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/errors/shared_criterion_error_pb2.py b/google/ads/google_ads/v1/proto/errors/shared_criterion_error_pb2.py deleted file mode 100644 index a5c3064e7..000000000 --- a/google/ads/google_ads/v1/proto/errors/shared_criterion_error_pb2.py +++ /dev/null @@ -1,97 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/errors/shared_criterion_error.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/errors/shared_criterion_error.proto', - package='google.ads.googleads.v1.errors', - syntax='proto3', - serialized_options=_b('\n\"com.google.ads.googleads.v1.errorsB\031SharedCriterionErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V1.Errors\312\002\036Google\\Ads\\GoogleAds\\V1\\Errors\352\002\"Google::Ads::GoogleAds::V1::Errors'), - serialized_pb=_b('\nAgoogle/ads/googleads_v1/proto/errors/shared_criterion_error.proto\x12\x1egoogle.ads.googleads.v1.errors\x1a\x1cgoogle/api/annotations.proto\"\x84\x01\n\x18SharedCriterionErrorEnum\"h\n\x14SharedCriterionError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x32\n.CRITERION_TYPE_NOT_ALLOWED_FOR_SHARED_SET_TYPE\x10\x02\x42\xf4\x01\n\"com.google.ads.googleads.v1.errorsB\x19SharedCriterionErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V1.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V1\\Errors\xea\x02\"Google::Ads::GoogleAds::V1::Errorsb\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - -_SHAREDCRITERIONERRORENUM_SHAREDCRITERIONERROR = _descriptor.EnumDescriptor( - name='SharedCriterionError', - full_name='google.ads.googleads.v1.errors.SharedCriterionErrorEnum.SharedCriterionError', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='UNSPECIFIED', index=0, number=0, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='UNKNOWN', index=1, number=1, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='CRITERION_TYPE_NOT_ALLOWED_FOR_SHARED_SET_TYPE', index=2, number=2, - serialized_options=None, - type=None), - ], - containing_type=None, - serialized_options=None, - serialized_start=160, - serialized_end=264, -) -_sym_db.RegisterEnumDescriptor(_SHAREDCRITERIONERRORENUM_SHAREDCRITERIONERROR) - - -_SHAREDCRITERIONERRORENUM = _descriptor.Descriptor( - name='SharedCriterionErrorEnum', - full_name='google.ads.googleads.v1.errors.SharedCriterionErrorEnum', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - _SHAREDCRITERIONERRORENUM_SHAREDCRITERIONERROR, - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=132, - serialized_end=264, -) - -_SHAREDCRITERIONERRORENUM_SHAREDCRITERIONERROR.containing_type = _SHAREDCRITERIONERRORENUM -DESCRIPTOR.message_types_by_name['SharedCriterionErrorEnum'] = _SHAREDCRITERIONERRORENUM -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -SharedCriterionErrorEnum = _reflection.GeneratedProtocolMessageType('SharedCriterionErrorEnum', (_message.Message,), dict( - DESCRIPTOR = _SHAREDCRITERIONERRORENUM, - __module__ = 'google.ads.googleads_v1.proto.errors.shared_criterion_error_pb2' - , - __doc__ = """Container for enum describing possible shared criterion errors. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.errors.SharedCriterionErrorEnum) - )) -_sym_db.RegisterMessage(SharedCriterionErrorEnum) - - -DESCRIPTOR._options = None -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/errors/size_limit_error_pb2.py b/google/ads/google_ads/v1/proto/errors/size_limit_error_pb2.py deleted file mode 100644 index 4f8d9c323..000000000 --- a/google/ads/google_ads/v1/proto/errors/size_limit_error_pb2.py +++ /dev/null @@ -1,101 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/errors/size_limit_error.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/errors/size_limit_error.proto', - package='google.ads.googleads.v1.errors', - syntax='proto3', - serialized_options=_b('\n\"com.google.ads.googleads.v1.errorsB\023SizeLimitErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V1.Errors\312\002\036Google\\Ads\\GoogleAds\\V1\\Errors\352\002\"Google::Ads::GoogleAds::V1::Errors'), - serialized_pb=_b('\n;google/ads/googleads_v1/proto/errors/size_limit_error.proto\x12\x1egoogle.ads.googleads.v1.errors\x1a\x1cgoogle/api/annotations.proto\"\x87\x01\n\x12SizeLimitErrorEnum\"q\n\x0eSizeLimitError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x1f\n\x1bREQUEST_SIZE_LIMIT_EXCEEDED\x10\x02\x12 \n\x1cRESPONSE_SIZE_LIMIT_EXCEEDED\x10\x03\x42\xee\x01\n\"com.google.ads.googleads.v1.errorsB\x13SizeLimitErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V1.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V1\\Errors\xea\x02\"Google::Ads::GoogleAds::V1::Errorsb\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - -_SIZELIMITERRORENUM_SIZELIMITERROR = _descriptor.EnumDescriptor( - name='SizeLimitError', - full_name='google.ads.googleads.v1.errors.SizeLimitErrorEnum.SizeLimitError', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='UNSPECIFIED', index=0, number=0, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='UNKNOWN', index=1, number=1, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='REQUEST_SIZE_LIMIT_EXCEEDED', index=2, number=2, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='RESPONSE_SIZE_LIMIT_EXCEEDED', index=3, number=3, - serialized_options=None, - type=None), - ], - containing_type=None, - serialized_options=None, - serialized_start=148, - serialized_end=261, -) -_sym_db.RegisterEnumDescriptor(_SIZELIMITERRORENUM_SIZELIMITERROR) - - -_SIZELIMITERRORENUM = _descriptor.Descriptor( - name='SizeLimitErrorEnum', - full_name='google.ads.googleads.v1.errors.SizeLimitErrorEnum', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - _SIZELIMITERRORENUM_SIZELIMITERROR, - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=126, - serialized_end=261, -) - -_SIZELIMITERRORENUM_SIZELIMITERROR.containing_type = _SIZELIMITERRORENUM -DESCRIPTOR.message_types_by_name['SizeLimitErrorEnum'] = _SIZELIMITERRORENUM -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -SizeLimitErrorEnum = _reflection.GeneratedProtocolMessageType('SizeLimitErrorEnum', (_message.Message,), dict( - DESCRIPTOR = _SIZELIMITERRORENUM, - __module__ = 'google.ads.googleads_v1.proto.errors.size_limit_error_pb2' - , - __doc__ = """Container for enum describing possible size limit errors. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.errors.SizeLimitErrorEnum) - )) -_sym_db.RegisterMessage(SizeLimitErrorEnum) - - -DESCRIPTOR._options = None -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/errors/string_format_error_pb2.py b/google/ads/google_ads/v1/proto/errors/string_format_error_pb2.py deleted file mode 100644 index 620b1f952..000000000 --- a/google/ads/google_ads/v1/proto/errors/string_format_error_pb2.py +++ /dev/null @@ -1,101 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/errors/string_format_error.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/errors/string_format_error.proto', - package='google.ads.googleads.v1.errors', - syntax='proto3', - serialized_options=_b('\n\"com.google.ads.googleads.v1.errorsB\026StringFormatErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V1.Errors\312\002\036Google\\Ads\\GoogleAds\\V1\\Errors\352\002\"Google::Ads::GoogleAds::V1::Errors'), - serialized_pb=_b('\n>google/ads/googleads_v1/proto/errors/string_format_error.proto\x12\x1egoogle.ads.googleads.v1.errors\x1a\x1cgoogle/api/annotations.proto\"q\n\x15StringFormatErrorEnum\"X\n\x11StringFormatError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x11\n\rILLEGAL_CHARS\x10\x02\x12\x12\n\x0eINVALID_FORMAT\x10\x03\x42\xf1\x01\n\"com.google.ads.googleads.v1.errorsB\x16StringFormatErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V1.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V1\\Errors\xea\x02\"Google::Ads::GoogleAds::V1::Errorsb\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - -_STRINGFORMATERRORENUM_STRINGFORMATERROR = _descriptor.EnumDescriptor( - name='StringFormatError', - full_name='google.ads.googleads.v1.errors.StringFormatErrorEnum.StringFormatError', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='UNSPECIFIED', index=0, number=0, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='UNKNOWN', index=1, number=1, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='ILLEGAL_CHARS', index=2, number=2, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='INVALID_FORMAT', index=3, number=3, - serialized_options=None, - type=None), - ], - containing_type=None, - serialized_options=None, - serialized_start=153, - serialized_end=241, -) -_sym_db.RegisterEnumDescriptor(_STRINGFORMATERRORENUM_STRINGFORMATERROR) - - -_STRINGFORMATERRORENUM = _descriptor.Descriptor( - name='StringFormatErrorEnum', - full_name='google.ads.googleads.v1.errors.StringFormatErrorEnum', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - _STRINGFORMATERRORENUM_STRINGFORMATERROR, - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=128, - serialized_end=241, -) - -_STRINGFORMATERRORENUM_STRINGFORMATERROR.containing_type = _STRINGFORMATERRORENUM -DESCRIPTOR.message_types_by_name['StringFormatErrorEnum'] = _STRINGFORMATERRORENUM -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -StringFormatErrorEnum = _reflection.GeneratedProtocolMessageType('StringFormatErrorEnum', (_message.Message,), dict( - DESCRIPTOR = _STRINGFORMATERRORENUM, - __module__ = 'google.ads.googleads_v1.proto.errors.string_format_error_pb2' - , - __doc__ = """Container for enum describing possible string format errors. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.errors.StringFormatErrorEnum) - )) -_sym_db.RegisterMessage(StringFormatErrorEnum) - - -DESCRIPTOR._options = None -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/errors/string_length_error_pb2.py b/google/ads/google_ads/v1/proto/errors/string_length_error_pb2.py deleted file mode 100644 index d84e37dc8..000000000 --- a/google/ads/google_ads/v1/proto/errors/string_length_error_pb2.py +++ /dev/null @@ -1,101 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/errors/string_length_error.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/errors/string_length_error.proto', - package='google.ads.googleads.v1.errors', - syntax='proto3', - serialized_options=_b('\n\"com.google.ads.googleads.v1.errorsB\026StringLengthErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V1.Errors\312\002\036Google\\Ads\\GoogleAds\\V1\\Errors\352\002\"Google::Ads::GoogleAds::V1::Errors'), - serialized_pb=_b('\n>google/ads/googleads_v1/proto/errors/string_length_error.proto\x12\x1egoogle.ads.googleads.v1.errors\x1a\x1cgoogle/api/annotations.proto\"g\n\x15StringLengthErrorEnum\"N\n\x11StringLengthError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\r\n\tTOO_SHORT\x10\x02\x12\x0c\n\x08TOO_LONG\x10\x03\x42\xf1\x01\n\"com.google.ads.googleads.v1.errorsB\x16StringLengthErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V1.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V1\\Errors\xea\x02\"Google::Ads::GoogleAds::V1::Errorsb\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - -_STRINGLENGTHERRORENUM_STRINGLENGTHERROR = _descriptor.EnumDescriptor( - name='StringLengthError', - full_name='google.ads.googleads.v1.errors.StringLengthErrorEnum.StringLengthError', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='UNSPECIFIED', index=0, number=0, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='UNKNOWN', index=1, number=1, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='TOO_SHORT', index=2, number=2, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='TOO_LONG', index=3, number=3, - serialized_options=None, - type=None), - ], - containing_type=None, - serialized_options=None, - serialized_start=153, - serialized_end=231, -) -_sym_db.RegisterEnumDescriptor(_STRINGLENGTHERRORENUM_STRINGLENGTHERROR) - - -_STRINGLENGTHERRORENUM = _descriptor.Descriptor( - name='StringLengthErrorEnum', - full_name='google.ads.googleads.v1.errors.StringLengthErrorEnum', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - _STRINGLENGTHERRORENUM_STRINGLENGTHERROR, - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=128, - serialized_end=231, -) - -_STRINGLENGTHERRORENUM_STRINGLENGTHERROR.containing_type = _STRINGLENGTHERRORENUM -DESCRIPTOR.message_types_by_name['StringLengthErrorEnum'] = _STRINGLENGTHERRORENUM -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -StringLengthErrorEnum = _reflection.GeneratedProtocolMessageType('StringLengthErrorEnum', (_message.Message,), dict( - DESCRIPTOR = _STRINGLENGTHERRORENUM, - __module__ = 'google.ads.googleads_v1.proto.errors.string_length_error_pb2' - , - __doc__ = """Container for enum describing possible string length errors. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.errors.StringLengthErrorEnum) - )) -_sym_db.RegisterMessage(StringLengthErrorEnum) - - -DESCRIPTOR._options = None -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/errors/youtube_video_registration_error_pb2.py b/google/ads/google_ads/v1/proto/errors/youtube_video_registration_error_pb2.py deleted file mode 100644 index fc6c143ab..000000000 --- a/google/ads/google_ads/v1/proto/errors/youtube_video_registration_error_pb2.py +++ /dev/null @@ -1,101 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/errors/youtube_video_registration_error.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/errors/youtube_video_registration_error.proto', - package='google.ads.googleads.v1.errors', - syntax='proto3', - serialized_options=_b('\n\"com.google.ads.googleads.v1.errorsB\"YoutubeVideoRegistrationErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V1.Errors\312\002\036Google\\Ads\\GoogleAds\\V1\\Errors\352\002\"Google::Ads::GoogleAds::V1::Errors'), - serialized_pb=_b('\nKgoogle/ads/googleads_v1/proto/errors/youtube_video_registration_error.proto\x12\x1egoogle.ads.googleads.v1.errors\x1a\x1cgoogle/api/annotations.proto\"\x91\x01\n!YoutubeVideoRegistrationErrorEnum\"l\n\x1dYoutubeVideoRegistrationError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x13\n\x0fVIDEO_NOT_FOUND\x10\x02\x12\x18\n\x14VIDEO_NOT_ACCESSIBLE\x10\x03\x42\xfd\x01\n\"com.google.ads.googleads.v1.errorsB\"YoutubeVideoRegistrationErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V1.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V1\\Errors\xea\x02\"Google::Ads::GoogleAds::V1::Errorsb\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - -_YOUTUBEVIDEOREGISTRATIONERRORENUM_YOUTUBEVIDEOREGISTRATIONERROR = _descriptor.EnumDescriptor( - name='YoutubeVideoRegistrationError', - full_name='google.ads.googleads.v1.errors.YoutubeVideoRegistrationErrorEnum.YoutubeVideoRegistrationError', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='UNSPECIFIED', index=0, number=0, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='UNKNOWN', index=1, number=1, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='VIDEO_NOT_FOUND', index=2, number=2, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='VIDEO_NOT_ACCESSIBLE', index=3, number=3, - serialized_options=None, - type=None), - ], - containing_type=None, - serialized_options=None, - serialized_start=179, - serialized_end=287, -) -_sym_db.RegisterEnumDescriptor(_YOUTUBEVIDEOREGISTRATIONERRORENUM_YOUTUBEVIDEOREGISTRATIONERROR) - - -_YOUTUBEVIDEOREGISTRATIONERRORENUM = _descriptor.Descriptor( - name='YoutubeVideoRegistrationErrorEnum', - full_name='google.ads.googleads.v1.errors.YoutubeVideoRegistrationErrorEnum', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - _YOUTUBEVIDEOREGISTRATIONERRORENUM_YOUTUBEVIDEOREGISTRATIONERROR, - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=142, - serialized_end=287, -) - -_YOUTUBEVIDEOREGISTRATIONERRORENUM_YOUTUBEVIDEOREGISTRATIONERROR.containing_type = _YOUTUBEVIDEOREGISTRATIONERRORENUM -DESCRIPTOR.message_types_by_name['YoutubeVideoRegistrationErrorEnum'] = _YOUTUBEVIDEOREGISTRATIONERRORENUM -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -YoutubeVideoRegistrationErrorEnum = _reflection.GeneratedProtocolMessageType('YoutubeVideoRegistrationErrorEnum', (_message.Message,), dict( - DESCRIPTOR = _YOUTUBEVIDEOREGISTRATIONERRORENUM, - __module__ = 'google.ads.googleads_v1.proto.errors.youtube_video_registration_error_pb2' - , - __doc__ = """Container for enum describing YouTube video registration errors. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.errors.YoutubeVideoRegistrationErrorEnum) - )) -_sym_db.RegisterMessage(YoutubeVideoRegistrationErrorEnum) - - -DESCRIPTOR._options = None -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/resources/account_budget_pb2.py b/google/ads/google_ads/v1/proto/resources/account_budget_pb2.py deleted file mode 100644 index fab91e187..000000000 --- a/google/ads/google_ads/v1/proto/resources/account_budget_pb2.py +++ /dev/null @@ -1,585 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/resources/account_budget.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.ads.google_ads.v1.proto.enums import account_budget_proposal_type_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_account__budget__proposal__type__pb2 -from google.ads.google_ads.v1.proto.enums import account_budget_status_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_account__budget__status__pb2 -from google.ads.google_ads.v1.proto.enums import spending_limit_type_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_spending__limit__type__pb2 -from google.ads.google_ads.v1.proto.enums import time_type_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_time__type__pb2 -from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/resources/account_budget.proto', - package='google.ads.googleads.v1.resources', - syntax='proto3', - serialized_options=_b('\n%com.google.ads.googleads.v1.resourcesB\022AccountBudgetProtoP\001ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources\242\002\003GAA\252\002!Google.Ads.GoogleAds.V1.Resources\312\002!Google\\Ads\\GoogleAds\\V1\\Resources\352\002%Google::Ads::GoogleAds::V1::Resources'), - serialized_pb=_b('\n\n\x18proposed_start_date_time\x18\x06 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12>\n\x18\x61pproved_start_date_time\x18\x07 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12=\n\x18total_adjustments_micros\x18\x12 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x39\n\x14\x61mount_served_micros\x18\x13 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12;\n\x15purchase_order_number\x18\x14 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12+\n\x05notes\x18\x15 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12g\n\x10pending_proposal\x18\x16 \x01(\x0b\x32M.google.ads.googleads.v1.resources.AccountBudget.PendingAccountBudgetProposal\x12>\n\x16proposed_end_date_time\x18\x08 \x01(\x0b\x32\x1c.google.protobuf.StringValueH\x00\x12V\n\x16proposed_end_time_type\x18\t \x01(\x0e\x32\x34.google.ads.googleads.v1.enums.TimeTypeEnum.TimeTypeH\x00\x12>\n\x16\x61pproved_end_date_time\x18\n \x01(\x0b\x32\x1c.google.protobuf.StringValueH\x01\x12V\n\x16\x61pproved_end_time_type\x18\x0b \x01(\x0e\x32\x34.google.ads.googleads.v1.enums.TimeTypeEnum.TimeTypeH\x01\x12\x45\n\x1eproposed_spending_limit_micros\x18\x0c \x01(\x0b\x32\x1b.google.protobuf.Int64ValueH\x02\x12n\n\x1cproposed_spending_limit_type\x18\r \x01(\x0e\x32\x46.google.ads.googleads.v1.enums.SpendingLimitTypeEnum.SpendingLimitTypeH\x02\x12\x45\n\x1e\x61pproved_spending_limit_micros\x18\x0e \x01(\x0b\x32\x1b.google.protobuf.Int64ValueH\x03\x12n\n\x1c\x61pproved_spending_limit_type\x18\x0f \x01(\x0e\x32\x46.google.ads.googleads.v1.enums.SpendingLimitTypeEnum.SpendingLimitTypeH\x03\x12\x45\n\x1e\x61\x64justed_spending_limit_micros\x18\x10 \x01(\x0b\x32\x1b.google.protobuf.Int64ValueH\x04\x12n\n\x1c\x61\x64justed_spending_limit_type\x18\x11 \x01(\x0e\x32\x46.google.ads.googleads.v1.enums.SpendingLimitTypeEnum.SpendingLimitTypeH\x04\x1a\x9c\x06\n\x1cPendingAccountBudgetProposal\x12=\n\x17\x61\x63\x63ount_budget_proposal\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12m\n\rproposal_type\x18\x02 \x01(\x0e\x32V.google.ads.googleads.v1.enums.AccountBudgetProposalTypeEnum.AccountBudgetProposalType\x12*\n\x04name\x18\x03 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x35\n\x0fstart_date_time\x18\x04 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12;\n\x15purchase_order_number\x18\t \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12+\n\x05notes\x18\n \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x38\n\x12\x63reation_date_time\x18\x0b \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x35\n\rend_date_time\x18\x05 \x01(\x0b\x32\x1c.google.protobuf.StringValueH\x00\x12M\n\rend_time_type\x18\x06 \x01(\x0e\x32\x34.google.ads.googleads.v1.enums.TimeTypeEnum.TimeTypeH\x00\x12<\n\x15spending_limit_micros\x18\x07 \x01(\x0b\x32\x1b.google.protobuf.Int64ValueH\x01\x12\x65\n\x13spending_limit_type\x18\x08 \x01(\x0e\x32\x46.google.ads.googleads.v1.enums.SpendingLimitTypeEnum.SpendingLimitTypeH\x01\x42\n\n\x08\x65nd_timeB\x10\n\x0espending_limitB\x13\n\x11proposed_end_timeB\x13\n\x11\x61pproved_end_timeB\x19\n\x17proposed_spending_limitB\x19\n\x17\x61pproved_spending_limitB\x19\n\x17\x61\x64justed_spending_limitB\xff\x01\n%com.google.ads.googleads.v1.resourcesB\x12\x41\x63\x63ountBudgetProtoP\x01ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V1.Resources\xca\x02!Google\\Ads\\GoogleAds\\V1\\Resources\xea\x02%Google::Ads::GoogleAds::V1::Resourcesb\x06proto3') - , - dependencies=[google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_account__budget__proposal__type__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_account__budget__status__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_spending__limit__type__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_time__type__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - - -_ACCOUNTBUDGET_PENDINGACCOUNTBUDGETPROPOSAL = _descriptor.Descriptor( - name='PendingAccountBudgetProposal', - full_name='google.ads.googleads.v1.resources.AccountBudget.PendingAccountBudgetProposal', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='account_budget_proposal', full_name='google.ads.googleads.v1.resources.AccountBudget.PendingAccountBudgetProposal.account_budget_proposal', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='proposal_type', full_name='google.ads.googleads.v1.resources.AccountBudget.PendingAccountBudgetProposal.proposal_type', index=1, - number=2, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='name', full_name='google.ads.googleads.v1.resources.AccountBudget.PendingAccountBudgetProposal.name', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='start_date_time', full_name='google.ads.googleads.v1.resources.AccountBudget.PendingAccountBudgetProposal.start_date_time', index=3, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='purchase_order_number', full_name='google.ads.googleads.v1.resources.AccountBudget.PendingAccountBudgetProposal.purchase_order_number', index=4, - number=9, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='notes', full_name='google.ads.googleads.v1.resources.AccountBudget.PendingAccountBudgetProposal.notes', index=5, - number=10, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='creation_date_time', full_name='google.ads.googleads.v1.resources.AccountBudget.PendingAccountBudgetProposal.creation_date_time', index=6, - number=11, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='end_date_time', full_name='google.ads.googleads.v1.resources.AccountBudget.PendingAccountBudgetProposal.end_date_time', index=7, - number=5, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='end_time_type', full_name='google.ads.googleads.v1.resources.AccountBudget.PendingAccountBudgetProposal.end_time_type', index=8, - number=6, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='spending_limit_micros', full_name='google.ads.googleads.v1.resources.AccountBudget.PendingAccountBudgetProposal.spending_limit_micros', index=9, - number=7, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='spending_limit_type', full_name='google.ads.googleads.v1.resources.AccountBudget.PendingAccountBudgetProposal.spending_limit_type', index=10, - number=8, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='end_time', full_name='google.ads.googleads.v1.resources.AccountBudget.PendingAccountBudgetProposal.end_time', - index=0, containing_type=None, fields=[]), - _descriptor.OneofDescriptor( - name='spending_limit', full_name='google.ads.googleads.v1.resources.AccountBudget.PendingAccountBudgetProposal.spending_limit', - index=1, containing_type=None, fields=[]), - ], - serialized_start=2000, - serialized_end=2796, -) - -_ACCOUNTBUDGET = _descriptor.Descriptor( - name='AccountBudget', - full_name='google.ads.googleads.v1.resources.AccountBudget', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.resources.AccountBudget.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='id', full_name='google.ads.googleads.v1.resources.AccountBudget.id', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='billing_setup', full_name='google.ads.googleads.v1.resources.AccountBudget.billing_setup', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='status', full_name='google.ads.googleads.v1.resources.AccountBudget.status', index=3, - number=4, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='name', full_name='google.ads.googleads.v1.resources.AccountBudget.name', index=4, - number=5, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='proposed_start_date_time', full_name='google.ads.googleads.v1.resources.AccountBudget.proposed_start_date_time', index=5, - number=6, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='approved_start_date_time', full_name='google.ads.googleads.v1.resources.AccountBudget.approved_start_date_time', index=6, - number=7, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='total_adjustments_micros', full_name='google.ads.googleads.v1.resources.AccountBudget.total_adjustments_micros', index=7, - number=18, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='amount_served_micros', full_name='google.ads.googleads.v1.resources.AccountBudget.amount_served_micros', index=8, - number=19, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='purchase_order_number', full_name='google.ads.googleads.v1.resources.AccountBudget.purchase_order_number', index=9, - number=20, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='notes', full_name='google.ads.googleads.v1.resources.AccountBudget.notes', index=10, - number=21, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='pending_proposal', full_name='google.ads.googleads.v1.resources.AccountBudget.pending_proposal', index=11, - number=22, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='proposed_end_date_time', full_name='google.ads.googleads.v1.resources.AccountBudget.proposed_end_date_time', index=12, - number=8, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='proposed_end_time_type', full_name='google.ads.googleads.v1.resources.AccountBudget.proposed_end_time_type', index=13, - number=9, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='approved_end_date_time', full_name='google.ads.googleads.v1.resources.AccountBudget.approved_end_date_time', index=14, - number=10, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='approved_end_time_type', full_name='google.ads.googleads.v1.resources.AccountBudget.approved_end_time_type', index=15, - number=11, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='proposed_spending_limit_micros', full_name='google.ads.googleads.v1.resources.AccountBudget.proposed_spending_limit_micros', index=16, - number=12, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='proposed_spending_limit_type', full_name='google.ads.googleads.v1.resources.AccountBudget.proposed_spending_limit_type', index=17, - number=13, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='approved_spending_limit_micros', full_name='google.ads.googleads.v1.resources.AccountBudget.approved_spending_limit_micros', index=18, - number=14, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='approved_spending_limit_type', full_name='google.ads.googleads.v1.resources.AccountBudget.approved_spending_limit_type', index=19, - number=15, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='adjusted_spending_limit_micros', full_name='google.ads.googleads.v1.resources.AccountBudget.adjusted_spending_limit_micros', index=20, - number=16, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='adjusted_spending_limit_type', full_name='google.ads.googleads.v1.resources.AccountBudget.adjusted_spending_limit_type', index=21, - number=17, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[_ACCOUNTBUDGET_PENDINGACCOUNTBUDGETPROPOSAL, ], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='proposed_end_time', full_name='google.ads.googleads.v1.resources.AccountBudget.proposed_end_time', - index=0, containing_type=None, fields=[]), - _descriptor.OneofDescriptor( - name='approved_end_time', full_name='google.ads.googleads.v1.resources.AccountBudget.approved_end_time', - index=1, containing_type=None, fields=[]), - _descriptor.OneofDescriptor( - name='proposed_spending_limit', full_name='google.ads.googleads.v1.resources.AccountBudget.proposed_spending_limit', - index=2, containing_type=None, fields=[]), - _descriptor.OneofDescriptor( - name='approved_spending_limit', full_name='google.ads.googleads.v1.resources.AccountBudget.approved_spending_limit', - index=3, containing_type=None, fields=[]), - _descriptor.OneofDescriptor( - name='adjusted_spending_limit', full_name='google.ads.googleads.v1.resources.AccountBudget.adjusted_spending_limit', - index=4, containing_type=None, fields=[]), - ], - serialized_start=415, - serialized_end=2919, -) - -_ACCOUNTBUDGET_PENDINGACCOUNTBUDGETPROPOSAL.fields_by_name['account_budget_proposal'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_ACCOUNTBUDGET_PENDINGACCOUNTBUDGETPROPOSAL.fields_by_name['proposal_type'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_account__budget__proposal__type__pb2._ACCOUNTBUDGETPROPOSALTYPEENUM_ACCOUNTBUDGETPROPOSALTYPE -_ACCOUNTBUDGET_PENDINGACCOUNTBUDGETPROPOSAL.fields_by_name['name'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_ACCOUNTBUDGET_PENDINGACCOUNTBUDGETPROPOSAL.fields_by_name['start_date_time'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_ACCOUNTBUDGET_PENDINGACCOUNTBUDGETPROPOSAL.fields_by_name['purchase_order_number'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_ACCOUNTBUDGET_PENDINGACCOUNTBUDGETPROPOSAL.fields_by_name['notes'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_ACCOUNTBUDGET_PENDINGACCOUNTBUDGETPROPOSAL.fields_by_name['creation_date_time'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_ACCOUNTBUDGET_PENDINGACCOUNTBUDGETPROPOSAL.fields_by_name['end_date_time'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_ACCOUNTBUDGET_PENDINGACCOUNTBUDGETPROPOSAL.fields_by_name['end_time_type'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_time__type__pb2._TIMETYPEENUM_TIMETYPE -_ACCOUNTBUDGET_PENDINGACCOUNTBUDGETPROPOSAL.fields_by_name['spending_limit_micros'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -_ACCOUNTBUDGET_PENDINGACCOUNTBUDGETPROPOSAL.fields_by_name['spending_limit_type'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_spending__limit__type__pb2._SPENDINGLIMITTYPEENUM_SPENDINGLIMITTYPE -_ACCOUNTBUDGET_PENDINGACCOUNTBUDGETPROPOSAL.containing_type = _ACCOUNTBUDGET -_ACCOUNTBUDGET_PENDINGACCOUNTBUDGETPROPOSAL.oneofs_by_name['end_time'].fields.append( - _ACCOUNTBUDGET_PENDINGACCOUNTBUDGETPROPOSAL.fields_by_name['end_date_time']) -_ACCOUNTBUDGET_PENDINGACCOUNTBUDGETPROPOSAL.fields_by_name['end_date_time'].containing_oneof = _ACCOUNTBUDGET_PENDINGACCOUNTBUDGETPROPOSAL.oneofs_by_name['end_time'] -_ACCOUNTBUDGET_PENDINGACCOUNTBUDGETPROPOSAL.oneofs_by_name['end_time'].fields.append( - _ACCOUNTBUDGET_PENDINGACCOUNTBUDGETPROPOSAL.fields_by_name['end_time_type']) -_ACCOUNTBUDGET_PENDINGACCOUNTBUDGETPROPOSAL.fields_by_name['end_time_type'].containing_oneof = _ACCOUNTBUDGET_PENDINGACCOUNTBUDGETPROPOSAL.oneofs_by_name['end_time'] -_ACCOUNTBUDGET_PENDINGACCOUNTBUDGETPROPOSAL.oneofs_by_name['spending_limit'].fields.append( - _ACCOUNTBUDGET_PENDINGACCOUNTBUDGETPROPOSAL.fields_by_name['spending_limit_micros']) -_ACCOUNTBUDGET_PENDINGACCOUNTBUDGETPROPOSAL.fields_by_name['spending_limit_micros'].containing_oneof = _ACCOUNTBUDGET_PENDINGACCOUNTBUDGETPROPOSAL.oneofs_by_name['spending_limit'] -_ACCOUNTBUDGET_PENDINGACCOUNTBUDGETPROPOSAL.oneofs_by_name['spending_limit'].fields.append( - _ACCOUNTBUDGET_PENDINGACCOUNTBUDGETPROPOSAL.fields_by_name['spending_limit_type']) -_ACCOUNTBUDGET_PENDINGACCOUNTBUDGETPROPOSAL.fields_by_name['spending_limit_type'].containing_oneof = _ACCOUNTBUDGET_PENDINGACCOUNTBUDGETPROPOSAL.oneofs_by_name['spending_limit'] -_ACCOUNTBUDGET.fields_by_name['id'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -_ACCOUNTBUDGET.fields_by_name['billing_setup'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_ACCOUNTBUDGET.fields_by_name['status'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_account__budget__status__pb2._ACCOUNTBUDGETSTATUSENUM_ACCOUNTBUDGETSTATUS -_ACCOUNTBUDGET.fields_by_name['name'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_ACCOUNTBUDGET.fields_by_name['proposed_start_date_time'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_ACCOUNTBUDGET.fields_by_name['approved_start_date_time'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_ACCOUNTBUDGET.fields_by_name['total_adjustments_micros'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -_ACCOUNTBUDGET.fields_by_name['amount_served_micros'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -_ACCOUNTBUDGET.fields_by_name['purchase_order_number'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_ACCOUNTBUDGET.fields_by_name['notes'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_ACCOUNTBUDGET.fields_by_name['pending_proposal'].message_type = _ACCOUNTBUDGET_PENDINGACCOUNTBUDGETPROPOSAL -_ACCOUNTBUDGET.fields_by_name['proposed_end_date_time'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_ACCOUNTBUDGET.fields_by_name['proposed_end_time_type'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_time__type__pb2._TIMETYPEENUM_TIMETYPE -_ACCOUNTBUDGET.fields_by_name['approved_end_date_time'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_ACCOUNTBUDGET.fields_by_name['approved_end_time_type'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_time__type__pb2._TIMETYPEENUM_TIMETYPE -_ACCOUNTBUDGET.fields_by_name['proposed_spending_limit_micros'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -_ACCOUNTBUDGET.fields_by_name['proposed_spending_limit_type'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_spending__limit__type__pb2._SPENDINGLIMITTYPEENUM_SPENDINGLIMITTYPE -_ACCOUNTBUDGET.fields_by_name['approved_spending_limit_micros'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -_ACCOUNTBUDGET.fields_by_name['approved_spending_limit_type'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_spending__limit__type__pb2._SPENDINGLIMITTYPEENUM_SPENDINGLIMITTYPE -_ACCOUNTBUDGET.fields_by_name['adjusted_spending_limit_micros'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -_ACCOUNTBUDGET.fields_by_name['adjusted_spending_limit_type'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_spending__limit__type__pb2._SPENDINGLIMITTYPEENUM_SPENDINGLIMITTYPE -_ACCOUNTBUDGET.oneofs_by_name['proposed_end_time'].fields.append( - _ACCOUNTBUDGET.fields_by_name['proposed_end_date_time']) -_ACCOUNTBUDGET.fields_by_name['proposed_end_date_time'].containing_oneof = _ACCOUNTBUDGET.oneofs_by_name['proposed_end_time'] -_ACCOUNTBUDGET.oneofs_by_name['proposed_end_time'].fields.append( - _ACCOUNTBUDGET.fields_by_name['proposed_end_time_type']) -_ACCOUNTBUDGET.fields_by_name['proposed_end_time_type'].containing_oneof = _ACCOUNTBUDGET.oneofs_by_name['proposed_end_time'] -_ACCOUNTBUDGET.oneofs_by_name['approved_end_time'].fields.append( - _ACCOUNTBUDGET.fields_by_name['approved_end_date_time']) -_ACCOUNTBUDGET.fields_by_name['approved_end_date_time'].containing_oneof = _ACCOUNTBUDGET.oneofs_by_name['approved_end_time'] -_ACCOUNTBUDGET.oneofs_by_name['approved_end_time'].fields.append( - _ACCOUNTBUDGET.fields_by_name['approved_end_time_type']) -_ACCOUNTBUDGET.fields_by_name['approved_end_time_type'].containing_oneof = _ACCOUNTBUDGET.oneofs_by_name['approved_end_time'] -_ACCOUNTBUDGET.oneofs_by_name['proposed_spending_limit'].fields.append( - _ACCOUNTBUDGET.fields_by_name['proposed_spending_limit_micros']) -_ACCOUNTBUDGET.fields_by_name['proposed_spending_limit_micros'].containing_oneof = _ACCOUNTBUDGET.oneofs_by_name['proposed_spending_limit'] -_ACCOUNTBUDGET.oneofs_by_name['proposed_spending_limit'].fields.append( - _ACCOUNTBUDGET.fields_by_name['proposed_spending_limit_type']) -_ACCOUNTBUDGET.fields_by_name['proposed_spending_limit_type'].containing_oneof = _ACCOUNTBUDGET.oneofs_by_name['proposed_spending_limit'] -_ACCOUNTBUDGET.oneofs_by_name['approved_spending_limit'].fields.append( - _ACCOUNTBUDGET.fields_by_name['approved_spending_limit_micros']) -_ACCOUNTBUDGET.fields_by_name['approved_spending_limit_micros'].containing_oneof = _ACCOUNTBUDGET.oneofs_by_name['approved_spending_limit'] -_ACCOUNTBUDGET.oneofs_by_name['approved_spending_limit'].fields.append( - _ACCOUNTBUDGET.fields_by_name['approved_spending_limit_type']) -_ACCOUNTBUDGET.fields_by_name['approved_spending_limit_type'].containing_oneof = _ACCOUNTBUDGET.oneofs_by_name['approved_spending_limit'] -_ACCOUNTBUDGET.oneofs_by_name['adjusted_spending_limit'].fields.append( - _ACCOUNTBUDGET.fields_by_name['adjusted_spending_limit_micros']) -_ACCOUNTBUDGET.fields_by_name['adjusted_spending_limit_micros'].containing_oneof = _ACCOUNTBUDGET.oneofs_by_name['adjusted_spending_limit'] -_ACCOUNTBUDGET.oneofs_by_name['adjusted_spending_limit'].fields.append( - _ACCOUNTBUDGET.fields_by_name['adjusted_spending_limit_type']) -_ACCOUNTBUDGET.fields_by_name['adjusted_spending_limit_type'].containing_oneof = _ACCOUNTBUDGET.oneofs_by_name['adjusted_spending_limit'] -DESCRIPTOR.message_types_by_name['AccountBudget'] = _ACCOUNTBUDGET -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -AccountBudget = _reflection.GeneratedProtocolMessageType('AccountBudget', (_message.Message,), dict( - - PendingAccountBudgetProposal = _reflection.GeneratedProtocolMessageType('PendingAccountBudgetProposal', (_message.Message,), dict( - DESCRIPTOR = _ACCOUNTBUDGET_PENDINGACCOUNTBUDGETPROPOSAL, - __module__ = 'google.ads.googleads_v1.proto.resources.account_budget_pb2' - , - __doc__ = """A pending proposal associated with the enclosing account-level budget, - if applicable. - - - Attributes: - account_budget_proposal: - The resource name of the proposal. AccountBudgetProposal - resource names have the form: ``customers/{customer_id}/accou - ntBudgetProposals/{account_budget_proposal_id}`` - proposal_type: - The type of this proposal, e.g. END to end the budget - associated with this proposal. - name: - The name to assign to the account-level budget. - start_date_time: - The start time in yyyy-MM-dd HH:mm:ss format. - purchase_order_number: - A purchase order number is a value that helps users reference - this budget in their monthly invoices. - notes: - Notes associated with this budget. - creation_date_time: - The time when this account-level budget proposal was created. - Formatted as yyyy-MM-dd HH:mm:ss. - end_time: - The end time of the account-level budget. - end_date_time: - The end time in yyyy-MM-dd HH:mm:ss format. - end_time_type: - The end time as a well-defined type, e.g. FOREVER. - spending_limit: - The spending limit. - spending_limit_micros: - The spending limit in micros. One million is equivalent to one - unit. - spending_limit_type: - The spending limit as a well-defined type, e.g. INFINITE. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.resources.AccountBudget.PendingAccountBudgetProposal) - )) - , - DESCRIPTOR = _ACCOUNTBUDGET, - __module__ = 'google.ads.googleads_v1.proto.resources.account_budget_pb2' - , - __doc__ = """An account-level budget. It contains information about the budget - itself, as well as the most recently approved changes to the budget and - proposed changes that are pending approval. The proposed changes that - are pending approval, if any, are found in 'pending\_proposal'. - Effective details about the budget are found in fields prefixed - 'approved\_', 'adjusted\_' and those without a prefix. Since some - effective details may differ from what the user had originally requested - (e.g. spending limit), these differences are juxtaposed via - 'proposed\_', 'approved\_', and possibly 'adjusted\_' fields. - - This resource is mutated using AccountBudgetProposal and cannot be - mutated directly. A budget may have at most one pending proposal at any - given time. It is read through pending\_proposal. - - Once approved, a budget may be subject to adjustments, such as credit - adjustments. Adjustments create differences between the 'approved' and - 'adjusted' fields, which would otherwise be identical. - - - Attributes: - resource_name: - The resource name of the account-level budget. AccountBudget - resource names have the form: - ``customers/{customer_id}/accountBudgets/{account_budget_id}`` - id: - The ID of the account-level budget. - billing_setup: - The resource name of the billing setup associated with this - account-level budget. BillingSetup resource names have the - form: - ``customers/{customer_id}/billingSetups/{billing_setup_id}`` - status: - The status of this account-level budget. - name: - The name of the account-level budget. - proposed_start_date_time: - The proposed start time of the account-level budget in yyyy- - MM-dd HH:mm:ss format. If a start time type of NOW was - proposed, this is the time of request. - approved_start_date_time: - The approved start time of the account-level budget in yyyy- - MM-dd HH:mm:ss format. For example, if a new budget is - approved after the proposed start time, the approved start - time is the time of approval. - total_adjustments_micros: - The total adjustments amount. An example of an adjustment is - courtesy credits. - amount_served_micros: - The value of Ads that have been served, in micros. This - includes overdelivery costs, in which case a credit might be - automatically applied to the budget (see - total\_adjustments\_micros). - purchase_order_number: - A purchase order number is a value that helps users reference - this budget in their monthly invoices. - notes: - Notes associated with the budget. - pending_proposal: - The pending proposal to modify this budget, if applicable. - proposed_end_time: - The proposed end time of the account-level budget. - proposed_end_date_time: - The proposed end time in yyyy-MM-dd HH:mm:ss format. - proposed_end_time_type: - The proposed end time as a well-defined type, e.g. FOREVER. - approved_end_time: - The approved end time of the account-level budget. For - example, if a budget's end time is updated and the proposal is - approved after the proposed end time, the approved end time is - the time of approval. - approved_end_date_time: - The approved end time in yyyy-MM-dd HH:mm:ss format. - approved_end_time_type: - The approved end time as a well-defined type, e.g. FOREVER. - proposed_spending_limit: - The proposed spending limit. - proposed_spending_limit_micros: - The proposed spending limit in micros. One million is - equivalent to one unit. - proposed_spending_limit_type: - The proposed spending limit as a well-defined type, e.g. - INFINITE. - approved_spending_limit: - The approved spending limit. For example, if the amount - already spent by the account exceeds the proposed spending - limit at the time the proposal is approved, the approved - spending limit is set to the amount already spent. - approved_spending_limit_micros: - The approved spending limit in micros. One million is - equivalent to one unit. This will only be populated if the - proposed spending limit is finite, and will always be greater - than or equal to the proposed spending limit. - approved_spending_limit_type: - The approved spending limit as a well-defined type, e.g. - INFINITE. This will only be populated if the approved spending - limit is INFINITE. - adjusted_spending_limit: - The spending limit after adjustments have been applied. - Adjustments are stored in total\_adjustments\_micros. This - value has the final say on how much the account is allowed to - spend. - adjusted_spending_limit_micros: - The adjusted spending limit in micros. One million is - equivalent to one unit. If the approved spending limit is - finite, the adjusted spending limit may vary depending on the - types of adjustments applied to this budget, if applicable. - 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. - adjusted_spending_limit_type: - The adjusted spending limit as a well-defined type, e.g. - INFINITE. This will only be populated if the adjusted spending - limit is INFINITE, which is guaranteed to be true if the - approved spending limit is INFINITE. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.resources.AccountBudget) - )) -_sym_db.RegisterMessage(AccountBudget) -_sym_db.RegisterMessage(AccountBudget.PendingAccountBudgetProposal) - - -DESCRIPTOR._options = None -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/resources/account_budget_proposal_pb2.py b/google/ads/google_ads/v1/proto/resources/account_budget_proposal_pb2.py deleted file mode 100644 index e2e0f4057..000000000 --- a/google/ads/google_ads/v1/proto/resources/account_budget_proposal_pb2.py +++ /dev/null @@ -1,377 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/resources/account_budget_proposal.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.ads.google_ads.v1.proto.enums import account_budget_proposal_status_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_account__budget__proposal__status__pb2 -from google.ads.google_ads.v1.proto.enums import account_budget_proposal_type_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_account__budget__proposal__type__pb2 -from google.ads.google_ads.v1.proto.enums import spending_limit_type_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_spending__limit__type__pb2 -from google.ads.google_ads.v1.proto.enums import time_type_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_time__type__pb2 -from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/resources/account_budget_proposal.proto', - package='google.ads.googleads.v1.resources', - syntax='proto3', - serialized_options=_b('\n%com.google.ads.googleads.v1.resourcesB\032AccountBudgetProposalProtoP\001ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources\242\002\003GAA\252\002!Google.Ads.GoogleAds.V1.Resources\312\002!Google\\Ads\\GoogleAds\\V1\\Resources\352\002%Google::Ads::GoogleAds::V1::Resources'), - serialized_pb=_b('\nEgoogle/ads/googleads_v1/proto/resources/account_budget_proposal.proto\x12!google.ads.googleads.v1.resources\x1aHgoogle/ads/googleads_v1/proto/enums/account_budget_proposal_status.proto\x1a\x46google/ads/googleads_v1/proto/enums/account_budget_proposal_type.proto\x1a=google/ads/googleads_v1/proto/enums/spending_limit_type.proto\x1a\x33google/ads/googleads_v1/proto/enums/time_type.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1cgoogle/api/annotations.proto\"\xb3\r\n\x15\x41\x63\x63ountBudgetProposal\x12\x15\n\rresource_name\x18\x01 \x01(\t\x12\'\n\x02id\x18\x0e \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x33\n\rbilling_setup\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x34\n\x0e\x61\x63\x63ount_budget\x18\x03 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12m\n\rproposal_type\x18\x04 \x01(\x0e\x32V.google.ads.googleads.v1.enums.AccountBudgetProposalTypeEnum.AccountBudgetProposalType\x12j\n\x06status\x18\x0f \x01(\x0e\x32Z.google.ads.googleads.v1.enums.AccountBudgetProposalStatusEnum.AccountBudgetProposalStatus\x12\x33\n\rproposed_name\x18\x05 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12>\n\x18\x61pproved_start_date_time\x18\x14 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x44\n\x1eproposed_purchase_order_number\x18\x0c \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x34\n\x0eproposed_notes\x18\r \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x38\n\x12\x63reation_date_time\x18\x10 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x38\n\x12\x61pproval_date_time\x18\x11 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12@\n\x18proposed_start_date_time\x18\x12 \x01(\x0b\x32\x1c.google.protobuf.StringValueH\x00\x12X\n\x18proposed_start_time_type\x18\x07 \x01(\x0e\x32\x34.google.ads.googleads.v1.enums.TimeTypeEnum.TimeTypeH\x00\x12>\n\x16proposed_end_date_time\x18\x13 \x01(\x0b\x32\x1c.google.protobuf.StringValueH\x01\x12V\n\x16proposed_end_time_type\x18\t \x01(\x0e\x32\x34.google.ads.googleads.v1.enums.TimeTypeEnum.TimeTypeH\x01\x12>\n\x16\x61pproved_end_date_time\x18\x15 \x01(\x0b\x32\x1c.google.protobuf.StringValueH\x02\x12V\n\x16\x61pproved_end_time_type\x18\x16 \x01(\x0e\x32\x34.google.ads.googleads.v1.enums.TimeTypeEnum.TimeTypeH\x02\x12\x45\n\x1eproposed_spending_limit_micros\x18\n \x01(\x0b\x32\x1b.google.protobuf.Int64ValueH\x03\x12n\n\x1cproposed_spending_limit_type\x18\x0b \x01(\x0e\x32\x46.google.ads.googleads.v1.enums.SpendingLimitTypeEnum.SpendingLimitTypeH\x03\x12\x45\n\x1e\x61pproved_spending_limit_micros\x18\x17 \x01(\x0b\x32\x1b.google.protobuf.Int64ValueH\x04\x12n\n\x1c\x61pproved_spending_limit_type\x18\x18 \x01(\x0e\x32\x46.google.ads.googleads.v1.enums.SpendingLimitTypeEnum.SpendingLimitTypeH\x04\x42\x15\n\x13proposed_start_timeB\x13\n\x11proposed_end_timeB\x13\n\x11\x61pproved_end_timeB\x19\n\x17proposed_spending_limitB\x19\n\x17\x61pproved_spending_limitB\x87\x02\n%com.google.ads.googleads.v1.resourcesB\x1a\x41\x63\x63ountBudgetProposalProtoP\x01ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V1.Resources\xca\x02!Google\\Ads\\GoogleAds\\V1\\Resources\xea\x02%Google::Ads::GoogleAds::V1::Resourcesb\x06proto3') - , - dependencies=[google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_account__budget__proposal__status__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_account__budget__proposal__type__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_spending__limit__type__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_time__type__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - - -_ACCOUNTBUDGETPROPOSAL = _descriptor.Descriptor( - name='AccountBudgetProposal', - full_name='google.ads.googleads.v1.resources.AccountBudgetProposal', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.resources.AccountBudgetProposal.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='id', full_name='google.ads.googleads.v1.resources.AccountBudgetProposal.id', index=1, - number=14, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='billing_setup', full_name='google.ads.googleads.v1.resources.AccountBudgetProposal.billing_setup', index=2, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='account_budget', full_name='google.ads.googleads.v1.resources.AccountBudgetProposal.account_budget', index=3, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='proposal_type', full_name='google.ads.googleads.v1.resources.AccountBudgetProposal.proposal_type', index=4, - number=4, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='status', full_name='google.ads.googleads.v1.resources.AccountBudgetProposal.status', index=5, - number=15, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='proposed_name', full_name='google.ads.googleads.v1.resources.AccountBudgetProposal.proposed_name', index=6, - number=5, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='approved_start_date_time', full_name='google.ads.googleads.v1.resources.AccountBudgetProposal.approved_start_date_time', index=7, - number=20, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='proposed_purchase_order_number', full_name='google.ads.googleads.v1.resources.AccountBudgetProposal.proposed_purchase_order_number', index=8, - number=12, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='proposed_notes', full_name='google.ads.googleads.v1.resources.AccountBudgetProposal.proposed_notes', index=9, - number=13, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='creation_date_time', full_name='google.ads.googleads.v1.resources.AccountBudgetProposal.creation_date_time', index=10, - number=16, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='approval_date_time', full_name='google.ads.googleads.v1.resources.AccountBudgetProposal.approval_date_time', index=11, - number=17, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='proposed_start_date_time', full_name='google.ads.googleads.v1.resources.AccountBudgetProposal.proposed_start_date_time', index=12, - number=18, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='proposed_start_time_type', full_name='google.ads.googleads.v1.resources.AccountBudgetProposal.proposed_start_time_type', index=13, - number=7, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='proposed_end_date_time', full_name='google.ads.googleads.v1.resources.AccountBudgetProposal.proposed_end_date_time', index=14, - number=19, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='proposed_end_time_type', full_name='google.ads.googleads.v1.resources.AccountBudgetProposal.proposed_end_time_type', index=15, - number=9, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='approved_end_date_time', full_name='google.ads.googleads.v1.resources.AccountBudgetProposal.approved_end_date_time', index=16, - number=21, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='approved_end_time_type', full_name='google.ads.googleads.v1.resources.AccountBudgetProposal.approved_end_time_type', index=17, - number=22, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='proposed_spending_limit_micros', full_name='google.ads.googleads.v1.resources.AccountBudgetProposal.proposed_spending_limit_micros', index=18, - number=10, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='proposed_spending_limit_type', full_name='google.ads.googleads.v1.resources.AccountBudgetProposal.proposed_spending_limit_type', index=19, - number=11, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='approved_spending_limit_micros', full_name='google.ads.googleads.v1.resources.AccountBudgetProposal.approved_spending_limit_micros', index=20, - number=23, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='approved_spending_limit_type', full_name='google.ads.googleads.v1.resources.AccountBudgetProposal.approved_spending_limit_type', index=21, - number=24, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='proposed_start_time', full_name='google.ads.googleads.v1.resources.AccountBudgetProposal.proposed_start_time', - index=0, containing_type=None, fields=[]), - _descriptor.OneofDescriptor( - name='proposed_end_time', full_name='google.ads.googleads.v1.resources.AccountBudgetProposal.proposed_end_time', - index=1, containing_type=None, fields=[]), - _descriptor.OneofDescriptor( - name='approved_end_time', full_name='google.ads.googleads.v1.resources.AccountBudgetProposal.approved_end_time', - index=2, containing_type=None, fields=[]), - _descriptor.OneofDescriptor( - name='proposed_spending_limit', full_name='google.ads.googleads.v1.resources.AccountBudgetProposal.proposed_spending_limit', - index=3, containing_type=None, fields=[]), - _descriptor.OneofDescriptor( - name='approved_spending_limit', full_name='google.ads.googleads.v1.resources.AccountBudgetProposal.approved_spending_limit', - index=4, containing_type=None, fields=[]), - ], - serialized_start=433, - serialized_end=2148, -) - -_ACCOUNTBUDGETPROPOSAL.fields_by_name['id'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -_ACCOUNTBUDGETPROPOSAL.fields_by_name['billing_setup'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_ACCOUNTBUDGETPROPOSAL.fields_by_name['account_budget'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_ACCOUNTBUDGETPROPOSAL.fields_by_name['proposal_type'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_account__budget__proposal__type__pb2._ACCOUNTBUDGETPROPOSALTYPEENUM_ACCOUNTBUDGETPROPOSALTYPE -_ACCOUNTBUDGETPROPOSAL.fields_by_name['status'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_account__budget__proposal__status__pb2._ACCOUNTBUDGETPROPOSALSTATUSENUM_ACCOUNTBUDGETPROPOSALSTATUS -_ACCOUNTBUDGETPROPOSAL.fields_by_name['proposed_name'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_ACCOUNTBUDGETPROPOSAL.fields_by_name['approved_start_date_time'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_ACCOUNTBUDGETPROPOSAL.fields_by_name['proposed_purchase_order_number'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_ACCOUNTBUDGETPROPOSAL.fields_by_name['proposed_notes'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_ACCOUNTBUDGETPROPOSAL.fields_by_name['creation_date_time'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_ACCOUNTBUDGETPROPOSAL.fields_by_name['approval_date_time'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_ACCOUNTBUDGETPROPOSAL.fields_by_name['proposed_start_date_time'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_ACCOUNTBUDGETPROPOSAL.fields_by_name['proposed_start_time_type'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_time__type__pb2._TIMETYPEENUM_TIMETYPE -_ACCOUNTBUDGETPROPOSAL.fields_by_name['proposed_end_date_time'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_ACCOUNTBUDGETPROPOSAL.fields_by_name['proposed_end_time_type'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_time__type__pb2._TIMETYPEENUM_TIMETYPE -_ACCOUNTBUDGETPROPOSAL.fields_by_name['approved_end_date_time'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_ACCOUNTBUDGETPROPOSAL.fields_by_name['approved_end_time_type'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_time__type__pb2._TIMETYPEENUM_TIMETYPE -_ACCOUNTBUDGETPROPOSAL.fields_by_name['proposed_spending_limit_micros'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -_ACCOUNTBUDGETPROPOSAL.fields_by_name['proposed_spending_limit_type'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_spending__limit__type__pb2._SPENDINGLIMITTYPEENUM_SPENDINGLIMITTYPE -_ACCOUNTBUDGETPROPOSAL.fields_by_name['approved_spending_limit_micros'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -_ACCOUNTBUDGETPROPOSAL.fields_by_name['approved_spending_limit_type'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_spending__limit__type__pb2._SPENDINGLIMITTYPEENUM_SPENDINGLIMITTYPE -_ACCOUNTBUDGETPROPOSAL.oneofs_by_name['proposed_start_time'].fields.append( - _ACCOUNTBUDGETPROPOSAL.fields_by_name['proposed_start_date_time']) -_ACCOUNTBUDGETPROPOSAL.fields_by_name['proposed_start_date_time'].containing_oneof = _ACCOUNTBUDGETPROPOSAL.oneofs_by_name['proposed_start_time'] -_ACCOUNTBUDGETPROPOSAL.oneofs_by_name['proposed_start_time'].fields.append( - _ACCOUNTBUDGETPROPOSAL.fields_by_name['proposed_start_time_type']) -_ACCOUNTBUDGETPROPOSAL.fields_by_name['proposed_start_time_type'].containing_oneof = _ACCOUNTBUDGETPROPOSAL.oneofs_by_name['proposed_start_time'] -_ACCOUNTBUDGETPROPOSAL.oneofs_by_name['proposed_end_time'].fields.append( - _ACCOUNTBUDGETPROPOSAL.fields_by_name['proposed_end_date_time']) -_ACCOUNTBUDGETPROPOSAL.fields_by_name['proposed_end_date_time'].containing_oneof = _ACCOUNTBUDGETPROPOSAL.oneofs_by_name['proposed_end_time'] -_ACCOUNTBUDGETPROPOSAL.oneofs_by_name['proposed_end_time'].fields.append( - _ACCOUNTBUDGETPROPOSAL.fields_by_name['proposed_end_time_type']) -_ACCOUNTBUDGETPROPOSAL.fields_by_name['proposed_end_time_type'].containing_oneof = _ACCOUNTBUDGETPROPOSAL.oneofs_by_name['proposed_end_time'] -_ACCOUNTBUDGETPROPOSAL.oneofs_by_name['approved_end_time'].fields.append( - _ACCOUNTBUDGETPROPOSAL.fields_by_name['approved_end_date_time']) -_ACCOUNTBUDGETPROPOSAL.fields_by_name['approved_end_date_time'].containing_oneof = _ACCOUNTBUDGETPROPOSAL.oneofs_by_name['approved_end_time'] -_ACCOUNTBUDGETPROPOSAL.oneofs_by_name['approved_end_time'].fields.append( - _ACCOUNTBUDGETPROPOSAL.fields_by_name['approved_end_time_type']) -_ACCOUNTBUDGETPROPOSAL.fields_by_name['approved_end_time_type'].containing_oneof = _ACCOUNTBUDGETPROPOSAL.oneofs_by_name['approved_end_time'] -_ACCOUNTBUDGETPROPOSAL.oneofs_by_name['proposed_spending_limit'].fields.append( - _ACCOUNTBUDGETPROPOSAL.fields_by_name['proposed_spending_limit_micros']) -_ACCOUNTBUDGETPROPOSAL.fields_by_name['proposed_spending_limit_micros'].containing_oneof = _ACCOUNTBUDGETPROPOSAL.oneofs_by_name['proposed_spending_limit'] -_ACCOUNTBUDGETPROPOSAL.oneofs_by_name['proposed_spending_limit'].fields.append( - _ACCOUNTBUDGETPROPOSAL.fields_by_name['proposed_spending_limit_type']) -_ACCOUNTBUDGETPROPOSAL.fields_by_name['proposed_spending_limit_type'].containing_oneof = _ACCOUNTBUDGETPROPOSAL.oneofs_by_name['proposed_spending_limit'] -_ACCOUNTBUDGETPROPOSAL.oneofs_by_name['approved_spending_limit'].fields.append( - _ACCOUNTBUDGETPROPOSAL.fields_by_name['approved_spending_limit_micros']) -_ACCOUNTBUDGETPROPOSAL.fields_by_name['approved_spending_limit_micros'].containing_oneof = _ACCOUNTBUDGETPROPOSAL.oneofs_by_name['approved_spending_limit'] -_ACCOUNTBUDGETPROPOSAL.oneofs_by_name['approved_spending_limit'].fields.append( - _ACCOUNTBUDGETPROPOSAL.fields_by_name['approved_spending_limit_type']) -_ACCOUNTBUDGETPROPOSAL.fields_by_name['approved_spending_limit_type'].containing_oneof = _ACCOUNTBUDGETPROPOSAL.oneofs_by_name['approved_spending_limit'] -DESCRIPTOR.message_types_by_name['AccountBudgetProposal'] = _ACCOUNTBUDGETPROPOSAL -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -AccountBudgetProposal = _reflection.GeneratedProtocolMessageType('AccountBudgetProposal', (_message.Message,), dict( - DESCRIPTOR = _ACCOUNTBUDGETPROPOSAL, - __module__ = 'google.ads.googleads_v1.proto.resources.account_budget_proposal_pb2' - , - __doc__ = """An account-level budget proposal. - - All fields prefixed with 'proposed' may not necessarily be applied - directly. For example, proposed spending limits may be adjusted before - their application. This is true if the 'proposed' field has an - 'approved' counterpart, e.g. spending limits. - - Please note that the proposal type (proposal\_type) changes which fields - are required and which must remain empty. - - - Attributes: - resource_name: - The resource name of the proposal. AccountBudgetProposal - resource names have the form: ``customers/{customer_id}/accou - ntBudgetProposals/{account_budget_proposal_id}`` - id: - The ID of the proposal. - billing_setup: - The resource name of the billing setup associated with this - proposal. - account_budget: - The resource name of the account-level budget associated with - this proposal. - proposal_type: - The type of this proposal, e.g. END to end the budget - associated with this proposal. - status: - The status of this proposal. When a new proposal is created, - the status defaults to PENDING. - proposed_name: - The name to assign to the account-level budget. - approved_start_date_time: - The approved start date time in yyyy-mm-dd hh:mm:ss format. - proposed_purchase_order_number: - A purchase order number is a value that enables the user to - help them reference this budget in their monthly invoices. - proposed_notes: - Notes associated with this budget. - creation_date_time: - The date time when this account-level budget proposal was - created, which is not the same as its approval date time, if - applicable. - approval_date_time: - The date time when this account-level budget was approved, if - applicable. - proposed_start_time: - The proposed start date time of the account-level budget, - which cannot be in the past. - proposed_start_date_time: - The proposed start date time in yyyy-mm-dd hh:mm:ss format. - proposed_start_time_type: - The proposed start date time as a well-defined type, e.g. NOW. - proposed_end_time: - The proposed end date time of the account-level budget, which - cannot be in the past. - proposed_end_date_time: - The proposed end date time in yyyy-mm-dd hh:mm:ss format. - proposed_end_time_type: - The proposed end date time as a well-defined type, e.g. - FOREVER. - approved_end_time: - The approved end date time of the account-level budget. - approved_end_date_time: - The approved end date time in yyyy-mm-dd hh:mm:ss format. - approved_end_time_type: - The approved end date time as a well-defined type, e.g. - FOREVER. - proposed_spending_limit: - The proposed spending limit. - proposed_spending_limit_micros: - The proposed spending limit in micros. One million is - equivalent to one unit. - proposed_spending_limit_type: - The proposed spending limit as a well-defined type, e.g. - INFINITE. - approved_spending_limit: - The approved spending limit. - approved_spending_limit_micros: - The approved spending limit in micros. One million is - equivalent to one unit. - approved_spending_limit_type: - The approved spending limit as a well-defined type, e.g. - INFINITE. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.resources.AccountBudgetProposal) - )) -_sym_db.RegisterMessage(AccountBudgetProposal) - - -DESCRIPTOR._options = None -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/resources/ad_group_ad_label_pb2.py b/google/ads/google_ads/v1/proto/resources/ad_group_ad_label_pb2.py deleted file mode 100644 index 926428575..000000000 --- a/google/ads/google_ads/v1/proto/resources/ad_group_ad_label_pb2.py +++ /dev/null @@ -1,104 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/resources/ad_group_ad_label.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/resources/ad_group_ad_label.proto', - package='google.ads.googleads.v1.resources', - syntax='proto3', - serialized_options=_b('\n%com.google.ads.googleads.v1.resourcesB\023AdGroupAdLabelProtoP\001ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources\242\002\003GAA\252\002!Google.Ads.GoogleAds.V1.Resources\312\002!Google\\Ads\\GoogleAds\\V1\\Resources\352\002%Google::Ads::GoogleAds::V1::Resources'), - serialized_pb=_b('\n?google/ads/googleads_v1/proto/resources/ad_group_ad_label.proto\x12!google.ads.googleads.v1.resources\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1cgoogle/api/annotations.proto\"\x87\x01\n\x0e\x41\x64GroupAdLabel\x12\x15\n\rresource_name\x18\x01 \x01(\t\x12\x31\n\x0b\x61\x64_group_ad\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12+\n\x05label\x18\x03 \x01(\x0b\x32\x1c.google.protobuf.StringValueB\x80\x02\n%com.google.ads.googleads.v1.resourcesB\x13\x41\x64GroupAdLabelProtoP\x01ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V1.Resources\xca\x02!Google\\Ads\\GoogleAds\\V1\\Resources\xea\x02%Google::Ads::GoogleAds::V1::Resourcesb\x06proto3') - , - dependencies=[google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - - -_ADGROUPADLABEL = _descriptor.Descriptor( - name='AdGroupAdLabel', - full_name='google.ads.googleads.v1.resources.AdGroupAdLabel', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.resources.AdGroupAdLabel.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='ad_group_ad', full_name='google.ads.googleads.v1.resources.AdGroupAdLabel.ad_group_ad', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='label', full_name='google.ads.googleads.v1.resources.AdGroupAdLabel.label', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=165, - serialized_end=300, -) - -_ADGROUPADLABEL.fields_by_name['ad_group_ad'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_ADGROUPADLABEL.fields_by_name['label'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -DESCRIPTOR.message_types_by_name['AdGroupAdLabel'] = _ADGROUPADLABEL -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -AdGroupAdLabel = _reflection.GeneratedProtocolMessageType('AdGroupAdLabel', (_message.Message,), dict( - DESCRIPTOR = _ADGROUPADLABEL, - __module__ = 'google.ads.googleads_v1.proto.resources.ad_group_ad_label_pb2' - , - __doc__ = """A relationship between an ad group ad and a label. - - - Attributes: - resource_name: - The resource name of the ad group ad label. Ad group ad label - resource names have the form: ``customers/{customer_id}/adGrou - pAdLabels/{ad_group_id}~{ad_id}~{label_id}`` - ad_group_ad: - The ad group ad to which the label is attached. - label: - The label assigned to the ad group ad. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.resources.AdGroupAdLabel) - )) -_sym_db.RegisterMessage(AdGroupAdLabel) - - -DESCRIPTOR._options = None -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/resources/ad_group_ad_pb2.py b/google/ads/google_ads/v1/proto/resources/ad_group_ad_pb2.py deleted file mode 100644 index 494722d28..000000000 --- a/google/ads/google_ads/v1/proto/resources/ad_group_ad_pb2.py +++ /dev/null @@ -1,209 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/resources/ad_group_ad.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.ads.google_ads.v1.proto.common import policy_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_policy__pb2 -from google.ads.google_ads.v1.proto.enums import ad_group_ad_status_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_ad__group__ad__status__pb2 -from google.ads.google_ads.v1.proto.enums import ad_strength_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_ad__strength__pb2 -from google.ads.google_ads.v1.proto.enums import policy_approval_status_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_policy__approval__status__pb2 -from google.ads.google_ads.v1.proto.enums import policy_review_status_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_policy__review__status__pb2 -from google.ads.google_ads.v1.proto.resources import ad_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_ad__pb2 -from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/resources/ad_group_ad.proto', - package='google.ads.googleads.v1.resources', - syntax='proto3', - serialized_options=_b('\n%com.google.ads.googleads.v1.resourcesB\016AdGroupAdProtoP\001ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources\242\002\003GAA\252\002!Google.Ads.GoogleAds.V1.Resources\312\002!Google\\Ads\\GoogleAds\\V1\\Resources\352\002%Google::Ads::GoogleAds::V1::Resources'), - serialized_pb=_b('\n9google/ads/googleads_v1/proto/resources/ad_group_ad.proto\x12!google.ads.googleads.v1.resources\x1a\x31google/ads/googleads_v1/proto/common/policy.proto\x1agoogle/ads/googleads_v1/proto/enums/policy_review_status.proto\x1a\x30google/ads/googleads_v1/proto/resources/ad.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1cgoogle/api/annotations.proto\"\xfb\x02\n\tAdGroupAd\x12\x15\n\rresource_name\x18\x01 \x01(\t\x12R\n\x06status\x18\x03 \x01(\x0e\x32\x42.google.ads.googleads.v1.enums.AdGroupAdStatusEnum.AdGroupAdStatus\x12.\n\x08\x61\x64_group\x18\x04 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x31\n\x02\x61\x64\x18\x05 \x01(\x0b\x32%.google.ads.googleads.v1.resources.Ad\x12Q\n\x0epolicy_summary\x18\x06 \x01(\x0b\x32\x39.google.ads.googleads.v1.resources.AdGroupAdPolicySummary\x12M\n\x0b\x61\x64_strength\x18\x07 \x01(\x0e\x32\x38.google.ads.googleads.v1.enums.AdStrengthEnum.AdStrength\"\xb0\x02\n\x16\x41\x64GroupAdPolicySummary\x12N\n\x14policy_topic_entries\x18\x01 \x03(\x0b\x32\x30.google.ads.googleads.v1.common.PolicyTopicEntry\x12_\n\rreview_status\x18\x02 \x01(\x0e\x32H.google.ads.googleads.v1.enums.PolicyReviewStatusEnum.PolicyReviewStatus\x12\x65\n\x0f\x61pproval_status\x18\x03 \x01(\x0e\x32L.google.ads.googleads.v1.enums.PolicyApprovalStatusEnum.PolicyApprovalStatusB\xfb\x01\n%com.google.ads.googleads.v1.resourcesB\x0e\x41\x64GroupAdProtoP\x01ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V1.Resources\xca\x02!Google\\Ads\\GoogleAds\\V1\\Resources\xea\x02%Google::Ads::GoogleAds::V1::Resourcesb\x06proto3') - , - dependencies=[google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_policy__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_ad__group__ad__status__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_ad__strength__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_policy__approval__status__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_policy__review__status__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_ad__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - - -_ADGROUPAD = _descriptor.Descriptor( - name='AdGroupAd', - full_name='google.ads.googleads.v1.resources.AdGroupAd', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.resources.AdGroupAd.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='status', full_name='google.ads.googleads.v1.resources.AdGroupAd.status', index=1, - number=3, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='ad_group', full_name='google.ads.googleads.v1.resources.AdGroupAd.ad_group', index=2, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='ad', full_name='google.ads.googleads.v1.resources.AdGroupAd.ad', index=3, - number=5, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='policy_summary', full_name='google.ads.googleads.v1.resources.AdGroupAd.policy_summary', index=4, - number=6, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='ad_strength', full_name='google.ads.googleads.v1.resources.AdGroupAd.ad_strength', index=5, - number=7, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=507, - serialized_end=886, -) - - -_ADGROUPADPOLICYSUMMARY = _descriptor.Descriptor( - name='AdGroupAdPolicySummary', - full_name='google.ads.googleads.v1.resources.AdGroupAdPolicySummary', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='policy_topic_entries', full_name='google.ads.googleads.v1.resources.AdGroupAdPolicySummary.policy_topic_entries', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='review_status', full_name='google.ads.googleads.v1.resources.AdGroupAdPolicySummary.review_status', index=1, - number=2, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='approval_status', full_name='google.ads.googleads.v1.resources.AdGroupAdPolicySummary.approval_status', index=2, - number=3, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=889, - serialized_end=1193, -) - -_ADGROUPAD.fields_by_name['status'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_ad__group__ad__status__pb2._ADGROUPADSTATUSENUM_ADGROUPADSTATUS -_ADGROUPAD.fields_by_name['ad_group'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_ADGROUPAD.fields_by_name['ad'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_ad__pb2._AD -_ADGROUPAD.fields_by_name['policy_summary'].message_type = _ADGROUPADPOLICYSUMMARY -_ADGROUPAD.fields_by_name['ad_strength'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_ad__strength__pb2._ADSTRENGTHENUM_ADSTRENGTH -_ADGROUPADPOLICYSUMMARY.fields_by_name['policy_topic_entries'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_policy__pb2._POLICYTOPICENTRY -_ADGROUPADPOLICYSUMMARY.fields_by_name['review_status'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_policy__review__status__pb2._POLICYREVIEWSTATUSENUM_POLICYREVIEWSTATUS -_ADGROUPADPOLICYSUMMARY.fields_by_name['approval_status'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_policy__approval__status__pb2._POLICYAPPROVALSTATUSENUM_POLICYAPPROVALSTATUS -DESCRIPTOR.message_types_by_name['AdGroupAd'] = _ADGROUPAD -DESCRIPTOR.message_types_by_name['AdGroupAdPolicySummary'] = _ADGROUPADPOLICYSUMMARY -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -AdGroupAd = _reflection.GeneratedProtocolMessageType('AdGroupAd', (_message.Message,), dict( - DESCRIPTOR = _ADGROUPAD, - __module__ = 'google.ads.googleads_v1.proto.resources.ad_group_ad_pb2' - , - __doc__ = """An ad group ad. - - - Attributes: - resource_name: - The resource name of the ad. Ad group ad resource names have - the form: - ``customers/{customer_id}/adGroupAds/{ad_group_id}~{ad_id}`` - status: - The status of the ad. - ad_group: - The ad group to which the ad belongs. - ad: - The ad. - policy_summary: - Policy information for the ad. - ad_strength: - Overall ad strength for this ad group ad. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.resources.AdGroupAd) - )) -_sym_db.RegisterMessage(AdGroupAd) - -AdGroupAdPolicySummary = _reflection.GeneratedProtocolMessageType('AdGroupAdPolicySummary', (_message.Message,), dict( - DESCRIPTOR = _ADGROUPADPOLICYSUMMARY, - __module__ = 'google.ads.googleads_v1.proto.resources.ad_group_ad_pb2' - , - __doc__ = """Contains policy information for an ad. - - - Attributes: - policy_topic_entries: - The list of policy findings for this ad. - review_status: - Where in the review process this ad is. - approval_status: - The overall approval status of this ad, calculated based on - the status of its individual policy topic entries. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.resources.AdGroupAdPolicySummary) - )) -_sym_db.RegisterMessage(AdGroupAdPolicySummary) - - -DESCRIPTOR._options = None -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/resources/ad_group_audience_view_pb2.py b/google/ads/google_ads/v1/proto/resources/ad_group_audience_view_pb2.py deleted file mode 100644 index cb24b73cf..000000000 --- a/google/ads/google_ads/v1/proto/resources/ad_group_audience_view_pb2.py +++ /dev/null @@ -1,86 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/resources/ad_group_audience_view.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/resources/ad_group_audience_view.proto', - package='google.ads.googleads.v1.resources', - syntax='proto3', - serialized_options=_b('\n%com.google.ads.googleads.v1.resourcesB\030AdGroupAudienceViewProtoP\001ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources\242\002\003GAA\252\002!Google.Ads.GoogleAds.V1.Resources\312\002!Google\\Ads\\GoogleAds\\V1\\Resources\352\002%Google::Ads::GoogleAds::V1::Resources'), - serialized_pb=_b('\nDgoogle/ads/googleads_v1/proto/resources/ad_group_audience_view.proto\x12!google.ads.googleads.v1.resources\x1a\x1cgoogle/api/annotations.proto\",\n\x13\x41\x64GroupAudienceView\x12\x15\n\rresource_name\x18\x01 \x01(\tB\x85\x02\n%com.google.ads.googleads.v1.resourcesB\x18\x41\x64GroupAudienceViewProtoP\x01ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V1.Resources\xca\x02!Google\\Ads\\GoogleAds\\V1\\Resources\xea\x02%Google::Ads::GoogleAds::V1::Resourcesb\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - - -_ADGROUPAUDIENCEVIEW = _descriptor.Descriptor( - name='AdGroupAudienceView', - full_name='google.ads.googleads.v1.resources.AdGroupAudienceView', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.resources.AdGroupAudienceView.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=137, - serialized_end=181, -) - -DESCRIPTOR.message_types_by_name['AdGroupAudienceView'] = _ADGROUPAUDIENCEVIEW -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -AdGroupAudienceView = _reflection.GeneratedProtocolMessageType('AdGroupAudienceView', (_message.Message,), dict( - DESCRIPTOR = _ADGROUPAUDIENCEVIEW, - __module__ = 'google.ads.googleads_v1.proto.resources.ad_group_audience_view_pb2' - , - __doc__ = """An ad group audience view. Includes performance data from interests and - remarketing lists for Display Network and YouTube Network ads, and - remarketing lists for search ads (RLSA), aggregated at the audience - level. - - - Attributes: - resource_name: - The resource name of the ad group audience view. Ad group - audience view resource names have the form: ``customers/{cust - omer_id}/adGroupAudienceViews/{ad_group_id}~{criterion_id}`` - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.resources.AdGroupAudienceView) - )) -_sym_db.RegisterMessage(AdGroupAudienceView) - - -DESCRIPTOR._options = None -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/resources/ad_group_bid_modifier_pb2.py b/google/ads/google_ads/v1/proto/resources/ad_group_bid_modifier_pb2.py deleted file mode 100644 index 9da0d7fc1..000000000 --- a/google/ads/google_ads/v1/proto/resources/ad_group_bid_modifier_pb2.py +++ /dev/null @@ -1,228 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/resources/ad_group_bid_modifier.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.ads.google_ads.v1.proto.common import criteria_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_criteria__pb2 -from google.ads.google_ads.v1.proto.enums import bid_modifier_source_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_bid__modifier__source__pb2 -from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/resources/ad_group_bid_modifier.proto', - package='google.ads.googleads.v1.resources', - syntax='proto3', - serialized_options=_b('\n%com.google.ads.googleads.v1.resourcesB\027AdGroupBidModifierProtoP\001ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources\242\002\003GAA\252\002!Google.Ads.GoogleAds.V1.Resources\312\002!Google\\Ads\\GoogleAds\\V1\\Resources\352\002%Google::Ads::GoogleAds::V1::Resources'), - serialized_pb=_b('\nCgoogle/ads/googleads_v1/proto/resources/ad_group_bid_modifier.proto\x12!google.ads.googleads.v1.resources\x1a\x33google/ads/googleads_v1/proto/common/criteria.proto\x1a=google/ads/googleads_v1/proto/enums/bid_modifier_source.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1cgoogle/api/annotations.proto\"\xec\x06\n\x12\x41\x64GroupBidModifier\x12\x15\n\rresource_name\x18\x01 \x01(\t\x12.\n\x08\x61\x64_group\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x31\n\x0c\x63riterion_id\x18\x03 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x32\n\x0c\x62id_modifier\x18\x04 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12\x33\n\rbase_ad_group\x18\t \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x63\n\x13\x62id_modifier_source\x18\n \x01(\x0e\x32\x46.google.ads.googleads.v1.enums.BidModifierSourceEnum.BidModifierSource\x12_\n\x19hotel_date_selection_type\x18\x05 \x01(\x0b\x32:.google.ads.googleads.v1.common.HotelDateSelectionTypeInfoH\x00\x12\x65\n\x1chotel_advance_booking_window\x18\x06 \x01(\x0b\x32=.google.ads.googleads.v1.common.HotelAdvanceBookingWindowInfoH\x00\x12U\n\x14hotel_length_of_stay\x18\x07 \x01(\x0b\x32\x35.google.ads.googleads.v1.common.HotelLengthOfStayInfoH\x00\x12Q\n\x12hotel_check_in_day\x18\x08 \x01(\x0b\x32\x33.google.ads.googleads.v1.common.HotelCheckInDayInfoH\x00\x12<\n\x06\x64\x65vice\x18\x0b \x01(\x0b\x32*.google.ads.googleads.v1.common.DeviceInfoH\x00\x12Q\n\x11preferred_content\x18\x0c \x01(\x0b\x32\x34.google.ads.googleads.v1.common.PreferredContentInfoH\x00\x42\x0b\n\tcriterionB\x84\x02\n%com.google.ads.googleads.v1.resourcesB\x17\x41\x64GroupBidModifierProtoP\x01ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V1.Resources\xca\x02!Google\\Ads\\GoogleAds\\V1\\Resources\xea\x02%Google::Ads::GoogleAds::V1::Resourcesb\x06proto3') - , - dependencies=[google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_criteria__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_bid__modifier__source__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - - -_ADGROUPBIDMODIFIER = _descriptor.Descriptor( - name='AdGroupBidModifier', - full_name='google.ads.googleads.v1.resources.AdGroupBidModifier', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.resources.AdGroupBidModifier.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='ad_group', full_name='google.ads.googleads.v1.resources.AdGroupBidModifier.ad_group', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='criterion_id', full_name='google.ads.googleads.v1.resources.AdGroupBidModifier.criterion_id', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='bid_modifier', full_name='google.ads.googleads.v1.resources.AdGroupBidModifier.bid_modifier', index=3, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='base_ad_group', full_name='google.ads.googleads.v1.resources.AdGroupBidModifier.base_ad_group', index=4, - number=9, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='bid_modifier_source', full_name='google.ads.googleads.v1.resources.AdGroupBidModifier.bid_modifier_source', index=5, - number=10, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='hotel_date_selection_type', full_name='google.ads.googleads.v1.resources.AdGroupBidModifier.hotel_date_selection_type', index=6, - number=5, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='hotel_advance_booking_window', full_name='google.ads.googleads.v1.resources.AdGroupBidModifier.hotel_advance_booking_window', index=7, - number=6, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='hotel_length_of_stay', full_name='google.ads.googleads.v1.resources.AdGroupBidModifier.hotel_length_of_stay', index=8, - number=7, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='hotel_check_in_day', full_name='google.ads.googleads.v1.resources.AdGroupBidModifier.hotel_check_in_day', index=9, - number=8, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='device', full_name='google.ads.googleads.v1.resources.AdGroupBidModifier.device', index=10, - number=11, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='preferred_content', full_name='google.ads.googleads.v1.resources.AdGroupBidModifier.preferred_content', index=11, - number=12, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='criterion', full_name='google.ads.googleads.v1.resources.AdGroupBidModifier.criterion', - index=0, containing_type=None, fields=[]), - ], - serialized_start=285, - serialized_end=1161, -) - -_ADGROUPBIDMODIFIER.fields_by_name['ad_group'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_ADGROUPBIDMODIFIER.fields_by_name['criterion_id'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -_ADGROUPBIDMODIFIER.fields_by_name['bid_modifier'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE -_ADGROUPBIDMODIFIER.fields_by_name['base_ad_group'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_ADGROUPBIDMODIFIER.fields_by_name['bid_modifier_source'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_bid__modifier__source__pb2._BIDMODIFIERSOURCEENUM_BIDMODIFIERSOURCE -_ADGROUPBIDMODIFIER.fields_by_name['hotel_date_selection_type'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_criteria__pb2._HOTELDATESELECTIONTYPEINFO -_ADGROUPBIDMODIFIER.fields_by_name['hotel_advance_booking_window'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_criteria__pb2._HOTELADVANCEBOOKINGWINDOWINFO -_ADGROUPBIDMODIFIER.fields_by_name['hotel_length_of_stay'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_criteria__pb2._HOTELLENGTHOFSTAYINFO -_ADGROUPBIDMODIFIER.fields_by_name['hotel_check_in_day'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_criteria__pb2._HOTELCHECKINDAYINFO -_ADGROUPBIDMODIFIER.fields_by_name['device'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_criteria__pb2._DEVICEINFO -_ADGROUPBIDMODIFIER.fields_by_name['preferred_content'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_criteria__pb2._PREFERREDCONTENTINFO -_ADGROUPBIDMODIFIER.oneofs_by_name['criterion'].fields.append( - _ADGROUPBIDMODIFIER.fields_by_name['hotel_date_selection_type']) -_ADGROUPBIDMODIFIER.fields_by_name['hotel_date_selection_type'].containing_oneof = _ADGROUPBIDMODIFIER.oneofs_by_name['criterion'] -_ADGROUPBIDMODIFIER.oneofs_by_name['criterion'].fields.append( - _ADGROUPBIDMODIFIER.fields_by_name['hotel_advance_booking_window']) -_ADGROUPBIDMODIFIER.fields_by_name['hotel_advance_booking_window'].containing_oneof = _ADGROUPBIDMODIFIER.oneofs_by_name['criterion'] -_ADGROUPBIDMODIFIER.oneofs_by_name['criterion'].fields.append( - _ADGROUPBIDMODIFIER.fields_by_name['hotel_length_of_stay']) -_ADGROUPBIDMODIFIER.fields_by_name['hotel_length_of_stay'].containing_oneof = _ADGROUPBIDMODIFIER.oneofs_by_name['criterion'] -_ADGROUPBIDMODIFIER.oneofs_by_name['criterion'].fields.append( - _ADGROUPBIDMODIFIER.fields_by_name['hotel_check_in_day']) -_ADGROUPBIDMODIFIER.fields_by_name['hotel_check_in_day'].containing_oneof = _ADGROUPBIDMODIFIER.oneofs_by_name['criterion'] -_ADGROUPBIDMODIFIER.oneofs_by_name['criterion'].fields.append( - _ADGROUPBIDMODIFIER.fields_by_name['device']) -_ADGROUPBIDMODIFIER.fields_by_name['device'].containing_oneof = _ADGROUPBIDMODIFIER.oneofs_by_name['criterion'] -_ADGROUPBIDMODIFIER.oneofs_by_name['criterion'].fields.append( - _ADGROUPBIDMODIFIER.fields_by_name['preferred_content']) -_ADGROUPBIDMODIFIER.fields_by_name['preferred_content'].containing_oneof = _ADGROUPBIDMODIFIER.oneofs_by_name['criterion'] -DESCRIPTOR.message_types_by_name['AdGroupBidModifier'] = _ADGROUPBIDMODIFIER -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -AdGroupBidModifier = _reflection.GeneratedProtocolMessageType('AdGroupBidModifier', (_message.Message,), dict( - DESCRIPTOR = _ADGROUPBIDMODIFIER, - __module__ = 'google.ads.googleads_v1.proto.resources.ad_group_bid_modifier_pb2' - , - __doc__ = """Represents an ad group bid modifier. - - - Attributes: - resource_name: - The resource name of the ad group bid modifier. Ad group bid - modifier resource names have the form: ``customers/{customer_ - id}/adGroupBidModifiers/{ad_group_id}~{criterion_id}`` - ad_group: - The ad group to which this criterion belongs. - criterion_id: - The ID of the criterion to bid modify. This field is ignored - for mutates. - bid_modifier: - The modifier for the bid when the criterion matches. The - modifier must be in the range: 0.1 - 10.0. The range is 1.0 - - 6.0 for PreferredContent. Use 0 to opt out of a Device type. - base_ad_group: - The base ad group from which this draft/trial adgroup bid - modifier was created. If ad\_group is a base ad group then - this field will be equal to ad\_group. If the ad group was - created in the draft or trial and has no corresponding base ad - group, then this field will be null. This field is readonly. - bid_modifier_source: - Bid modifier source. - criterion: - The criterion of this ad group bid modifier. - hotel_date_selection_type: - Criterion for hotel date selection (default dates vs. user - selected). - hotel_advance_booking_window: - Criterion for number of days prior to the stay the booking is - being made. - hotel_length_of_stay: - Criterion for length of hotel stay in nights. - hotel_check_in_day: - Criterion for day of the week the booking is for. - device: - A device criterion. - preferred_content: - A preferred content criterion. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.resources.AdGroupBidModifier) - )) -_sym_db.RegisterMessage(AdGroupBidModifier) - - -DESCRIPTOR._options = None -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/resources/ad_group_criterion_label_pb2.py b/google/ads/google_ads/v1/proto/resources/ad_group_criterion_label_pb2.py deleted file mode 100644 index 85258613b..000000000 --- a/google/ads/google_ads/v1/proto/resources/ad_group_criterion_label_pb2.py +++ /dev/null @@ -1,105 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/resources/ad_group_criterion_label.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/resources/ad_group_criterion_label.proto', - package='google.ads.googleads.v1.resources', - syntax='proto3', - serialized_options=_b('\n%com.google.ads.googleads.v1.resourcesB\032AdGroupCriterionLabelProtoP\001ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources\242\002\003GAA\252\002!Google.Ads.GoogleAds.V1.Resources\312\002!Google\\Ads\\GoogleAds\\V1\\Resources\352\002%Google::Ads::GoogleAds::V1::Resources'), - serialized_pb=_b('\nFgoogle/ads/googleads_v1/proto/resources/ad_group_criterion_label.proto\x12!google.ads.googleads.v1.resources\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1cgoogle/api/annotations.proto\"\x95\x01\n\x15\x41\x64GroupCriterionLabel\x12\x15\n\rresource_name\x18\x01 \x01(\t\x12\x38\n\x12\x61\x64_group_criterion\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12+\n\x05label\x18\x03 \x01(\x0b\x32\x1c.google.protobuf.StringValueB\x87\x02\n%com.google.ads.googleads.v1.resourcesB\x1a\x41\x64GroupCriterionLabelProtoP\x01ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V1.Resources\xca\x02!Google\\Ads\\GoogleAds\\V1\\Resources\xea\x02%Google::Ads::GoogleAds::V1::Resourcesb\x06proto3') - , - dependencies=[google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - - -_ADGROUPCRITERIONLABEL = _descriptor.Descriptor( - name='AdGroupCriterionLabel', - full_name='google.ads.googleads.v1.resources.AdGroupCriterionLabel', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.resources.AdGroupCriterionLabel.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='ad_group_criterion', full_name='google.ads.googleads.v1.resources.AdGroupCriterionLabel.ad_group_criterion', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='label', full_name='google.ads.googleads.v1.resources.AdGroupCriterionLabel.label', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=172, - serialized_end=321, -) - -_ADGROUPCRITERIONLABEL.fields_by_name['ad_group_criterion'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_ADGROUPCRITERIONLABEL.fields_by_name['label'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -DESCRIPTOR.message_types_by_name['AdGroupCriterionLabel'] = _ADGROUPCRITERIONLABEL -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -AdGroupCriterionLabel = _reflection.GeneratedProtocolMessageType('AdGroupCriterionLabel', (_message.Message,), dict( - DESCRIPTOR = _ADGROUPCRITERIONLABEL, - __module__ = 'google.ads.googleads_v1.proto.resources.ad_group_criterion_label_pb2' - , - __doc__ = """A relationship between an ad group criterion and a label. - - - Attributes: - resource_name: - The resource name of the ad group criterion label. Ad group - criterion label resource names have the form: ``customers/{cu - stomer_id}/adGroupCriterionLabels/{ad_group_id}~{criterion_id} - ~{label_id}`` - ad_group_criterion: - The ad group criterion to which the label is attached. - label: - The label assigned to the ad group criterion. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.resources.AdGroupCriterionLabel) - )) -_sym_db.RegisterMessage(AdGroupCriterionLabel) - - -DESCRIPTOR._options = None -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/resources/ad_group_criterion_pb2.py b/google/ads/google_ads/v1/proto/resources/ad_group_criterion_pb2.py deleted file mode 100644 index cfff78008..000000000 --- a/google/ads/google_ads/v1/proto/resources/ad_group_criterion_pb2.py +++ /dev/null @@ -1,786 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/resources/ad_group_criterion.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.ads.google_ads.v1.proto.common import criteria_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_criteria__pb2 -from google.ads.google_ads.v1.proto.common import custom_parameter_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_custom__parameter__pb2 -from google.ads.google_ads.v1.proto.enums import ad_group_criterion_approval_status_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_ad__group__criterion__approval__status__pb2 -from google.ads.google_ads.v1.proto.enums import ad_group_criterion_status_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_ad__group__criterion__status__pb2 -from google.ads.google_ads.v1.proto.enums import bidding_source_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_bidding__source__pb2 -from google.ads.google_ads.v1.proto.enums import criterion_system_serving_status_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_criterion__system__serving__status__pb2 -from google.ads.google_ads.v1.proto.enums import criterion_type_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_criterion__type__pb2 -from google.ads.google_ads.v1.proto.enums import quality_score_bucket_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_quality__score__bucket__pb2 -from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/resources/ad_group_criterion.proto', - package='google.ads.googleads.v1.resources', - syntax='proto3', - serialized_options=_b('\n%com.google.ads.googleads.v1.resourcesB\025AdGroupCriterionProtoP\001ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources\242\002\003GAA\252\002!Google.Ads.GoogleAds.V1.Resources\312\002!Google\\Ads\\GoogleAds\\V1\\Resources\352\002%Google::Ads::GoogleAds::V1::Resources'), - serialized_pb=_b('\n@google/ads/googleads_v1/proto/resources/ad_group_criterion.proto\x12!google.ads.googleads.v1.resources\x1a\x33google/ads/googleads_v1/proto/common/criteria.proto\x1a;google/ads/googleads_v1/proto/common/custom_parameter.proto\x1aLgoogle/ads/googleads_v1/proto/enums/ad_group_criterion_approval_status.proto\x1a\x43google/ads/googleads_v1/proto/enums/ad_group_criterion_status.proto\x1a\x38google/ads/googleads_v1/proto/enums/bidding_source.proto\x1aIgoogle/ads/googleads_v1/proto/enums/criterion_system_serving_status.proto\x1a\x38google/ads/googleads_v1/proto/enums/criterion_type.proto\x1a>google/ads/googleads_v1/proto/enums/quality_score_bucket.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1cgoogle/api/annotations.proto\"\x91 \n\x10\x41\x64GroupCriterion\x12\x15\n\rresource_name\x18\x01 \x01(\t\x12\x31\n\x0c\x63riterion_id\x18\x1a \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12`\n\x06status\x18\x03 \x01(\x0e\x32P.google.ads.googleads.v1.enums.AdGroupCriterionStatusEnum.AdGroupCriterionStatus\x12U\n\x0cquality_info\x18\x04 \x01(\x0b\x32?.google.ads.googleads.v1.resources.AdGroupCriterion.QualityInfo\x12.\n\x08\x61\x64_group\x18\x05 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12L\n\x04type\x18\x19 \x01(\x0e\x32>.google.ads.googleads.v1.enums.CriterionTypeEnum.CriterionType\x12,\n\x08negative\x18\x1f \x01(\x0b\x32\x1a.google.protobuf.BoolValue\x12{\n\x15system_serving_status\x18\x34 \x01(\x0e\x32\\.google.ads.googleads.v1.enums.CriterionSystemServingStatusEnum.CriterionSystemServingStatus\x12y\n\x0f\x61pproval_status\x18\x35 \x01(\x0e\x32`.google.ads.googleads.v1.enums.AdGroupCriterionApprovalStatusEnum.AdGroupCriterionApprovalStatus\x12\x32\n\x0c\x62id_modifier\x18, \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12\x33\n\x0e\x63pc_bid_micros\x18\x10 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x33\n\x0e\x63pm_bid_micros\x18\x11 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x33\n\x0e\x63pv_bid_micros\x18\x18 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12;\n\x16percent_cpc_bid_micros\x18! \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12=\n\x18\x65\x66\x66\x65\x63tive_cpc_bid_micros\x18\x12 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12=\n\x18\x65\x66\x66\x65\x63tive_cpm_bid_micros\x18\x13 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12=\n\x18\x65\x66\x66\x65\x63tive_cpv_bid_micros\x18\x14 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x45\n effective_percent_cpc_bid_micros\x18\" \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12`\n\x18\x65\x66\x66\x65\x63tive_cpc_bid_source\x18\x15 \x01(\x0e\x32>.google.ads.googleads.v1.enums.BiddingSourceEnum.BiddingSource\x12`\n\x18\x65\x66\x66\x65\x63tive_cpm_bid_source\x18\x16 \x01(\x0e\x32>.google.ads.googleads.v1.enums.BiddingSourceEnum.BiddingSource\x12`\n\x18\x65\x66\x66\x65\x63tive_cpv_bid_source\x18\x17 \x01(\x0e\x32>.google.ads.googleads.v1.enums.BiddingSourceEnum.BiddingSource\x12h\n effective_percent_cpc_bid_source\x18# \x01(\x0e\x32>.google.ads.googleads.v1.enums.BiddingSourceEnum.BiddingSource\x12\x61\n\x12position_estimates\x18\n \x01(\x0b\x32\x45.google.ads.googleads.v1.resources.AdGroupCriterion.PositionEstimates\x12\x30\n\nfinal_urls\x18\x0b \x03(\x0b\x32\x1c.google.protobuf.StringValue\x12\x37\n\x11\x66inal_mobile_urls\x18\x33 \x03(\x0b\x32\x1c.google.protobuf.StringValue\x12\x36\n\x10\x66inal_url_suffix\x18\x32 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12;\n\x15tracking_url_template\x18\r \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12N\n\x15url_custom_parameters\x18\x0e \x03(\x0b\x32/.google.ads.googleads.v1.common.CustomParameter\x12>\n\x07keyword\x18\x1b \x01(\x0b\x32+.google.ads.googleads.v1.common.KeywordInfoH\x00\x12\x42\n\tplacement\x18\x1c \x01(\x0b\x32-.google.ads.googleads.v1.common.PlacementInfoH\x00\x12T\n\x13mobile_app_category\x18\x1d \x01(\x0b\x32\x35.google.ads.googleads.v1.common.MobileAppCategoryInfoH\x00\x12S\n\x12mobile_application\x18\x1e \x01(\x0b\x32\x35.google.ads.googleads.v1.common.MobileApplicationInfoH\x00\x12I\n\rlisting_group\x18 \x01(\x0b\x32\x30.google.ads.googleads.v1.common.ListingGroupInfoH\x00\x12\x41\n\tage_range\x18$ \x01(\x0b\x32,.google.ads.googleads.v1.common.AgeRangeInfoH\x00\x12<\n\x06gender\x18% \x01(\x0b\x32*.google.ads.googleads.v1.common.GenderInfoH\x00\x12G\n\x0cincome_range\x18& \x01(\x0b\x32/.google.ads.googleads.v1.common.IncomeRangeInfoH\x00\x12M\n\x0fparental_status\x18\' \x01(\x0b\x32\x32.google.ads.googleads.v1.common.ParentalStatusInfoH\x00\x12\x41\n\tuser_list\x18* \x01(\x0b\x32,.google.ads.googleads.v1.common.UserListInfoH\x00\x12I\n\ryoutube_video\x18( \x01(\x0b\x32\x30.google.ads.googleads.v1.common.YouTubeVideoInfoH\x00\x12M\n\x0fyoutube_channel\x18) \x01(\x0b\x32\x32.google.ads.googleads.v1.common.YouTubeChannelInfoH\x00\x12:\n\x05topic\x18+ \x01(\x0b\x32).google.ads.googleads.v1.common.TopicInfoH\x00\x12I\n\ruser_interest\x18- \x01(\x0b\x32\x30.google.ads.googleads.v1.common.UserInterestInfoH\x00\x12>\n\x07webpage\x18. \x01(\x0b\x32+.google.ads.googleads.v1.common.WebpageInfoH\x00\x12P\n\x11\x61pp_payment_model\x18/ \x01(\x0b\x32\x33.google.ads.googleads.v1.common.AppPaymentModelInfoH\x00\x12M\n\x0f\x63ustom_affinity\x18\x30 \x01(\x0b\x32\x32.google.ads.googleads.v1.common.CustomAffinityInfoH\x00\x12I\n\rcustom_intent\x18\x31 \x01(\x0b\x32\x30.google.ads.googleads.v1.common.CustomIntentInfoH\x00\x1a\xff\x02\n\x0bQualityInfo\x12\x32\n\rquality_score\x18\x01 \x01(\x0b\x32\x1b.google.protobuf.Int32Value\x12h\n\x16\x63reative_quality_score\x18\x02 \x01(\x0e\x32H.google.ads.googleads.v1.enums.QualityScoreBucketEnum.QualityScoreBucket\x12j\n\x18post_click_quality_score\x18\x03 \x01(\x0e\x32H.google.ads.googleads.v1.enums.QualityScoreBucketEnum.QualityScoreBucket\x12\x66\n\x14search_predicted_ctr\x18\x04 \x01(\x0e\x32H.google.ads.googleads.v1.enums.QualityScoreBucketEnum.QualityScoreBucket\x1a\xec\x02\n\x11PositionEstimates\x12:\n\x15\x66irst_page_cpc_micros\x18\x01 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12>\n\x19\x66irst_position_cpc_micros\x18\x02 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12;\n\x16top_of_page_cpc_micros\x18\x03 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12O\n*estimated_add_clicks_at_first_position_cpc\x18\x04 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12M\n(estimated_add_cost_at_first_position_cpc\x18\x05 \x01(\x0b\x32\x1b.google.protobuf.Int64ValueB\x0b\n\tcriterionB\x82\x02\n%com.google.ads.googleads.v1.resourcesB\x15\x41\x64GroupCriterionProtoP\x01ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V1.Resources\xca\x02!Google\\Ads\\GoogleAds\\V1\\Resources\xea\x02%Google::Ads::GoogleAds::V1::Resourcesb\x06proto3') - , - dependencies=[google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_criteria__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_custom__parameter__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_ad__group__criterion__approval__status__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_ad__group__criterion__status__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_bidding__source__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_criterion__system__serving__status__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_criterion__type__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_quality__score__bucket__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - - -_ADGROUPCRITERION_QUALITYINFO = _descriptor.Descriptor( - name='QualityInfo', - full_name='google.ads.googleads.v1.resources.AdGroupCriterion.QualityInfo', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='quality_score', full_name='google.ads.googleads.v1.resources.AdGroupCriterion.QualityInfo.quality_score', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='creative_quality_score', full_name='google.ads.googleads.v1.resources.AdGroupCriterion.QualityInfo.creative_quality_score', index=1, - number=2, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='post_click_quality_score', full_name='google.ads.googleads.v1.resources.AdGroupCriterion.QualityInfo.post_click_quality_score', index=2, - number=3, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='search_predicted_ctr', full_name='google.ads.googleads.v1.resources.AdGroupCriterion.QualityInfo.search_predicted_ctr', index=3, - number=4, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=4032, - serialized_end=4415, -) - -_ADGROUPCRITERION_POSITIONESTIMATES = _descriptor.Descriptor( - name='PositionEstimates', - full_name='google.ads.googleads.v1.resources.AdGroupCriterion.PositionEstimates', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='first_page_cpc_micros', full_name='google.ads.googleads.v1.resources.AdGroupCriterion.PositionEstimates.first_page_cpc_micros', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='first_position_cpc_micros', full_name='google.ads.googleads.v1.resources.AdGroupCriterion.PositionEstimates.first_position_cpc_micros', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='top_of_page_cpc_micros', full_name='google.ads.googleads.v1.resources.AdGroupCriterion.PositionEstimates.top_of_page_cpc_micros', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='estimated_add_clicks_at_first_position_cpc', full_name='google.ads.googleads.v1.resources.AdGroupCriterion.PositionEstimates.estimated_add_clicks_at_first_position_cpc', index=3, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='estimated_add_cost_at_first_position_cpc', full_name='google.ads.googleads.v1.resources.AdGroupCriterion.PositionEstimates.estimated_add_cost_at_first_position_cpc', index=4, - number=5, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=4418, - serialized_end=4782, -) - -_ADGROUPCRITERION = _descriptor.Descriptor( - name='AdGroupCriterion', - full_name='google.ads.googleads.v1.resources.AdGroupCriterion', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.resources.AdGroupCriterion.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='criterion_id', full_name='google.ads.googleads.v1.resources.AdGroupCriterion.criterion_id', index=1, - number=26, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='status', full_name='google.ads.googleads.v1.resources.AdGroupCriterion.status', index=2, - number=3, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='quality_info', full_name='google.ads.googleads.v1.resources.AdGroupCriterion.quality_info', index=3, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='ad_group', full_name='google.ads.googleads.v1.resources.AdGroupCriterion.ad_group', index=4, - number=5, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='type', full_name='google.ads.googleads.v1.resources.AdGroupCriterion.type', index=5, - number=25, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='negative', full_name='google.ads.googleads.v1.resources.AdGroupCriterion.negative', index=6, - number=31, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='system_serving_status', full_name='google.ads.googleads.v1.resources.AdGroupCriterion.system_serving_status', index=7, - number=52, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='approval_status', full_name='google.ads.googleads.v1.resources.AdGroupCriterion.approval_status', index=8, - number=53, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='bid_modifier', full_name='google.ads.googleads.v1.resources.AdGroupCriterion.bid_modifier', index=9, - number=44, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='cpc_bid_micros', full_name='google.ads.googleads.v1.resources.AdGroupCriterion.cpc_bid_micros', index=10, - number=16, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='cpm_bid_micros', full_name='google.ads.googleads.v1.resources.AdGroupCriterion.cpm_bid_micros', index=11, - number=17, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='cpv_bid_micros', full_name='google.ads.googleads.v1.resources.AdGroupCriterion.cpv_bid_micros', index=12, - number=24, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='percent_cpc_bid_micros', full_name='google.ads.googleads.v1.resources.AdGroupCriterion.percent_cpc_bid_micros', index=13, - number=33, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='effective_cpc_bid_micros', full_name='google.ads.googleads.v1.resources.AdGroupCriterion.effective_cpc_bid_micros', index=14, - number=18, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='effective_cpm_bid_micros', full_name='google.ads.googleads.v1.resources.AdGroupCriterion.effective_cpm_bid_micros', index=15, - number=19, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='effective_cpv_bid_micros', full_name='google.ads.googleads.v1.resources.AdGroupCriterion.effective_cpv_bid_micros', index=16, - number=20, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='effective_percent_cpc_bid_micros', full_name='google.ads.googleads.v1.resources.AdGroupCriterion.effective_percent_cpc_bid_micros', index=17, - number=34, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='effective_cpc_bid_source', full_name='google.ads.googleads.v1.resources.AdGroupCriterion.effective_cpc_bid_source', index=18, - number=21, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='effective_cpm_bid_source', full_name='google.ads.googleads.v1.resources.AdGroupCriterion.effective_cpm_bid_source', index=19, - number=22, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='effective_cpv_bid_source', full_name='google.ads.googleads.v1.resources.AdGroupCriterion.effective_cpv_bid_source', index=20, - number=23, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='effective_percent_cpc_bid_source', full_name='google.ads.googleads.v1.resources.AdGroupCriterion.effective_percent_cpc_bid_source', index=21, - number=35, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='position_estimates', full_name='google.ads.googleads.v1.resources.AdGroupCriterion.position_estimates', index=22, - number=10, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='final_urls', full_name='google.ads.googleads.v1.resources.AdGroupCriterion.final_urls', index=23, - number=11, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='final_mobile_urls', full_name='google.ads.googleads.v1.resources.AdGroupCriterion.final_mobile_urls', index=24, - number=51, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='final_url_suffix', full_name='google.ads.googleads.v1.resources.AdGroupCriterion.final_url_suffix', index=25, - number=50, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='tracking_url_template', full_name='google.ads.googleads.v1.resources.AdGroupCriterion.tracking_url_template', index=26, - number=13, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='url_custom_parameters', full_name='google.ads.googleads.v1.resources.AdGroupCriterion.url_custom_parameters', index=27, - number=14, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='keyword', full_name='google.ads.googleads.v1.resources.AdGroupCriterion.keyword', index=28, - number=27, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='placement', full_name='google.ads.googleads.v1.resources.AdGroupCriterion.placement', index=29, - number=28, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='mobile_app_category', full_name='google.ads.googleads.v1.resources.AdGroupCriterion.mobile_app_category', index=30, - number=29, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='mobile_application', full_name='google.ads.googleads.v1.resources.AdGroupCriterion.mobile_application', index=31, - number=30, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='listing_group', full_name='google.ads.googleads.v1.resources.AdGroupCriterion.listing_group', index=32, - number=32, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='age_range', full_name='google.ads.googleads.v1.resources.AdGroupCriterion.age_range', index=33, - number=36, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='gender', full_name='google.ads.googleads.v1.resources.AdGroupCriterion.gender', index=34, - number=37, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='income_range', full_name='google.ads.googleads.v1.resources.AdGroupCriterion.income_range', index=35, - number=38, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='parental_status', full_name='google.ads.googleads.v1.resources.AdGroupCriterion.parental_status', index=36, - number=39, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='user_list', full_name='google.ads.googleads.v1.resources.AdGroupCriterion.user_list', index=37, - number=42, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='youtube_video', full_name='google.ads.googleads.v1.resources.AdGroupCriterion.youtube_video', index=38, - number=40, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='youtube_channel', full_name='google.ads.googleads.v1.resources.AdGroupCriterion.youtube_channel', index=39, - number=41, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='topic', full_name='google.ads.googleads.v1.resources.AdGroupCriterion.topic', index=40, - number=43, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='user_interest', full_name='google.ads.googleads.v1.resources.AdGroupCriterion.user_interest', index=41, - number=45, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='webpage', full_name='google.ads.googleads.v1.resources.AdGroupCriterion.webpage', index=42, - number=46, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='app_payment_model', full_name='google.ads.googleads.v1.resources.AdGroupCriterion.app_payment_model', index=43, - number=47, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='custom_affinity', full_name='google.ads.googleads.v1.resources.AdGroupCriterion.custom_affinity', index=44, - number=48, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='custom_intent', full_name='google.ads.googleads.v1.resources.AdGroupCriterion.custom_intent', index=45, - number=49, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[_ADGROUPCRITERION_QUALITYINFO, _ADGROUPCRITERION_POSITIONESTIMATES, ], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='criterion', full_name='google.ads.googleads.v1.resources.AdGroupCriterion.criterion', - index=0, containing_type=None, fields=[]), - ], - serialized_start=682, - serialized_end=4795, -) - -_ADGROUPCRITERION_QUALITYINFO.fields_by_name['quality_score'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT32VALUE -_ADGROUPCRITERION_QUALITYINFO.fields_by_name['creative_quality_score'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_quality__score__bucket__pb2._QUALITYSCOREBUCKETENUM_QUALITYSCOREBUCKET -_ADGROUPCRITERION_QUALITYINFO.fields_by_name['post_click_quality_score'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_quality__score__bucket__pb2._QUALITYSCOREBUCKETENUM_QUALITYSCOREBUCKET -_ADGROUPCRITERION_QUALITYINFO.fields_by_name['search_predicted_ctr'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_quality__score__bucket__pb2._QUALITYSCOREBUCKETENUM_QUALITYSCOREBUCKET -_ADGROUPCRITERION_QUALITYINFO.containing_type = _ADGROUPCRITERION -_ADGROUPCRITERION_POSITIONESTIMATES.fields_by_name['first_page_cpc_micros'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -_ADGROUPCRITERION_POSITIONESTIMATES.fields_by_name['first_position_cpc_micros'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -_ADGROUPCRITERION_POSITIONESTIMATES.fields_by_name['top_of_page_cpc_micros'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -_ADGROUPCRITERION_POSITIONESTIMATES.fields_by_name['estimated_add_clicks_at_first_position_cpc'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -_ADGROUPCRITERION_POSITIONESTIMATES.fields_by_name['estimated_add_cost_at_first_position_cpc'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -_ADGROUPCRITERION_POSITIONESTIMATES.containing_type = _ADGROUPCRITERION -_ADGROUPCRITERION.fields_by_name['criterion_id'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -_ADGROUPCRITERION.fields_by_name['status'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_ad__group__criterion__status__pb2._ADGROUPCRITERIONSTATUSENUM_ADGROUPCRITERIONSTATUS -_ADGROUPCRITERION.fields_by_name['quality_info'].message_type = _ADGROUPCRITERION_QUALITYINFO -_ADGROUPCRITERION.fields_by_name['ad_group'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_ADGROUPCRITERION.fields_by_name['type'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_criterion__type__pb2._CRITERIONTYPEENUM_CRITERIONTYPE -_ADGROUPCRITERION.fields_by_name['negative'].message_type = google_dot_protobuf_dot_wrappers__pb2._BOOLVALUE -_ADGROUPCRITERION.fields_by_name['system_serving_status'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_criterion__system__serving__status__pb2._CRITERIONSYSTEMSERVINGSTATUSENUM_CRITERIONSYSTEMSERVINGSTATUS -_ADGROUPCRITERION.fields_by_name['approval_status'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_ad__group__criterion__approval__status__pb2._ADGROUPCRITERIONAPPROVALSTATUSENUM_ADGROUPCRITERIONAPPROVALSTATUS -_ADGROUPCRITERION.fields_by_name['bid_modifier'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE -_ADGROUPCRITERION.fields_by_name['cpc_bid_micros'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -_ADGROUPCRITERION.fields_by_name['cpm_bid_micros'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -_ADGROUPCRITERION.fields_by_name['cpv_bid_micros'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -_ADGROUPCRITERION.fields_by_name['percent_cpc_bid_micros'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -_ADGROUPCRITERION.fields_by_name['effective_cpc_bid_micros'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -_ADGROUPCRITERION.fields_by_name['effective_cpm_bid_micros'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -_ADGROUPCRITERION.fields_by_name['effective_cpv_bid_micros'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -_ADGROUPCRITERION.fields_by_name['effective_percent_cpc_bid_micros'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -_ADGROUPCRITERION.fields_by_name['effective_cpc_bid_source'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_bidding__source__pb2._BIDDINGSOURCEENUM_BIDDINGSOURCE -_ADGROUPCRITERION.fields_by_name['effective_cpm_bid_source'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_bidding__source__pb2._BIDDINGSOURCEENUM_BIDDINGSOURCE -_ADGROUPCRITERION.fields_by_name['effective_cpv_bid_source'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_bidding__source__pb2._BIDDINGSOURCEENUM_BIDDINGSOURCE -_ADGROUPCRITERION.fields_by_name['effective_percent_cpc_bid_source'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_bidding__source__pb2._BIDDINGSOURCEENUM_BIDDINGSOURCE -_ADGROUPCRITERION.fields_by_name['position_estimates'].message_type = _ADGROUPCRITERION_POSITIONESTIMATES -_ADGROUPCRITERION.fields_by_name['final_urls'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_ADGROUPCRITERION.fields_by_name['final_mobile_urls'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_ADGROUPCRITERION.fields_by_name['final_url_suffix'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_ADGROUPCRITERION.fields_by_name['tracking_url_template'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_ADGROUPCRITERION.fields_by_name['url_custom_parameters'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_custom__parameter__pb2._CUSTOMPARAMETER -_ADGROUPCRITERION.fields_by_name['keyword'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_criteria__pb2._KEYWORDINFO -_ADGROUPCRITERION.fields_by_name['placement'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_criteria__pb2._PLACEMENTINFO -_ADGROUPCRITERION.fields_by_name['mobile_app_category'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_criteria__pb2._MOBILEAPPCATEGORYINFO -_ADGROUPCRITERION.fields_by_name['mobile_application'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_criteria__pb2._MOBILEAPPLICATIONINFO -_ADGROUPCRITERION.fields_by_name['listing_group'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_criteria__pb2._LISTINGGROUPINFO -_ADGROUPCRITERION.fields_by_name['age_range'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_criteria__pb2._AGERANGEINFO -_ADGROUPCRITERION.fields_by_name['gender'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_criteria__pb2._GENDERINFO -_ADGROUPCRITERION.fields_by_name['income_range'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_criteria__pb2._INCOMERANGEINFO -_ADGROUPCRITERION.fields_by_name['parental_status'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_criteria__pb2._PARENTALSTATUSINFO -_ADGROUPCRITERION.fields_by_name['user_list'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_criteria__pb2._USERLISTINFO -_ADGROUPCRITERION.fields_by_name['youtube_video'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_criteria__pb2._YOUTUBEVIDEOINFO -_ADGROUPCRITERION.fields_by_name['youtube_channel'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_criteria__pb2._YOUTUBECHANNELINFO -_ADGROUPCRITERION.fields_by_name['topic'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_criteria__pb2._TOPICINFO -_ADGROUPCRITERION.fields_by_name['user_interest'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_criteria__pb2._USERINTERESTINFO -_ADGROUPCRITERION.fields_by_name['webpage'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_criteria__pb2._WEBPAGEINFO -_ADGROUPCRITERION.fields_by_name['app_payment_model'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_criteria__pb2._APPPAYMENTMODELINFO -_ADGROUPCRITERION.fields_by_name['custom_affinity'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_criteria__pb2._CUSTOMAFFINITYINFO -_ADGROUPCRITERION.fields_by_name['custom_intent'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_criteria__pb2._CUSTOMINTENTINFO -_ADGROUPCRITERION.oneofs_by_name['criterion'].fields.append( - _ADGROUPCRITERION.fields_by_name['keyword']) -_ADGROUPCRITERION.fields_by_name['keyword'].containing_oneof = _ADGROUPCRITERION.oneofs_by_name['criterion'] -_ADGROUPCRITERION.oneofs_by_name['criterion'].fields.append( - _ADGROUPCRITERION.fields_by_name['placement']) -_ADGROUPCRITERION.fields_by_name['placement'].containing_oneof = _ADGROUPCRITERION.oneofs_by_name['criterion'] -_ADGROUPCRITERION.oneofs_by_name['criterion'].fields.append( - _ADGROUPCRITERION.fields_by_name['mobile_app_category']) -_ADGROUPCRITERION.fields_by_name['mobile_app_category'].containing_oneof = _ADGROUPCRITERION.oneofs_by_name['criterion'] -_ADGROUPCRITERION.oneofs_by_name['criterion'].fields.append( - _ADGROUPCRITERION.fields_by_name['mobile_application']) -_ADGROUPCRITERION.fields_by_name['mobile_application'].containing_oneof = _ADGROUPCRITERION.oneofs_by_name['criterion'] -_ADGROUPCRITERION.oneofs_by_name['criterion'].fields.append( - _ADGROUPCRITERION.fields_by_name['listing_group']) -_ADGROUPCRITERION.fields_by_name['listing_group'].containing_oneof = _ADGROUPCRITERION.oneofs_by_name['criterion'] -_ADGROUPCRITERION.oneofs_by_name['criterion'].fields.append( - _ADGROUPCRITERION.fields_by_name['age_range']) -_ADGROUPCRITERION.fields_by_name['age_range'].containing_oneof = _ADGROUPCRITERION.oneofs_by_name['criterion'] -_ADGROUPCRITERION.oneofs_by_name['criterion'].fields.append( - _ADGROUPCRITERION.fields_by_name['gender']) -_ADGROUPCRITERION.fields_by_name['gender'].containing_oneof = _ADGROUPCRITERION.oneofs_by_name['criterion'] -_ADGROUPCRITERION.oneofs_by_name['criterion'].fields.append( - _ADGROUPCRITERION.fields_by_name['income_range']) -_ADGROUPCRITERION.fields_by_name['income_range'].containing_oneof = _ADGROUPCRITERION.oneofs_by_name['criterion'] -_ADGROUPCRITERION.oneofs_by_name['criterion'].fields.append( - _ADGROUPCRITERION.fields_by_name['parental_status']) -_ADGROUPCRITERION.fields_by_name['parental_status'].containing_oneof = _ADGROUPCRITERION.oneofs_by_name['criterion'] -_ADGROUPCRITERION.oneofs_by_name['criterion'].fields.append( - _ADGROUPCRITERION.fields_by_name['user_list']) -_ADGROUPCRITERION.fields_by_name['user_list'].containing_oneof = _ADGROUPCRITERION.oneofs_by_name['criterion'] -_ADGROUPCRITERION.oneofs_by_name['criterion'].fields.append( - _ADGROUPCRITERION.fields_by_name['youtube_video']) -_ADGROUPCRITERION.fields_by_name['youtube_video'].containing_oneof = _ADGROUPCRITERION.oneofs_by_name['criterion'] -_ADGROUPCRITERION.oneofs_by_name['criterion'].fields.append( - _ADGROUPCRITERION.fields_by_name['youtube_channel']) -_ADGROUPCRITERION.fields_by_name['youtube_channel'].containing_oneof = _ADGROUPCRITERION.oneofs_by_name['criterion'] -_ADGROUPCRITERION.oneofs_by_name['criterion'].fields.append( - _ADGROUPCRITERION.fields_by_name['topic']) -_ADGROUPCRITERION.fields_by_name['topic'].containing_oneof = _ADGROUPCRITERION.oneofs_by_name['criterion'] -_ADGROUPCRITERION.oneofs_by_name['criterion'].fields.append( - _ADGROUPCRITERION.fields_by_name['user_interest']) -_ADGROUPCRITERION.fields_by_name['user_interest'].containing_oneof = _ADGROUPCRITERION.oneofs_by_name['criterion'] -_ADGROUPCRITERION.oneofs_by_name['criterion'].fields.append( - _ADGROUPCRITERION.fields_by_name['webpage']) -_ADGROUPCRITERION.fields_by_name['webpage'].containing_oneof = _ADGROUPCRITERION.oneofs_by_name['criterion'] -_ADGROUPCRITERION.oneofs_by_name['criterion'].fields.append( - _ADGROUPCRITERION.fields_by_name['app_payment_model']) -_ADGROUPCRITERION.fields_by_name['app_payment_model'].containing_oneof = _ADGROUPCRITERION.oneofs_by_name['criterion'] -_ADGROUPCRITERION.oneofs_by_name['criterion'].fields.append( - _ADGROUPCRITERION.fields_by_name['custom_affinity']) -_ADGROUPCRITERION.fields_by_name['custom_affinity'].containing_oneof = _ADGROUPCRITERION.oneofs_by_name['criterion'] -_ADGROUPCRITERION.oneofs_by_name['criterion'].fields.append( - _ADGROUPCRITERION.fields_by_name['custom_intent']) -_ADGROUPCRITERION.fields_by_name['custom_intent'].containing_oneof = _ADGROUPCRITERION.oneofs_by_name['criterion'] -DESCRIPTOR.message_types_by_name['AdGroupCriterion'] = _ADGROUPCRITERION -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -AdGroupCriterion = _reflection.GeneratedProtocolMessageType('AdGroupCriterion', (_message.Message,), dict( - - QualityInfo = _reflection.GeneratedProtocolMessageType('QualityInfo', (_message.Message,), dict( - DESCRIPTOR = _ADGROUPCRITERION_QUALITYINFO, - __module__ = 'google.ads.googleads_v1.proto.resources.ad_group_criterion_pb2' - , - __doc__ = """A container for ad group criterion quality information. - - - Attributes: - quality_score: - The quality score. This field may not be populated if Google - does not have enough information to determine a value. - creative_quality_score: - The performance of the ad compared to other advertisers. - post_click_quality_score: - The quality score of the landing page. - search_predicted_ctr: - The click-through rate compared to that of other advertisers. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.resources.AdGroupCriterion.QualityInfo) - )) - , - - PositionEstimates = _reflection.GeneratedProtocolMessageType('PositionEstimates', (_message.Message,), dict( - DESCRIPTOR = _ADGROUPCRITERION_POSITIONESTIMATES, - __module__ = 'google.ads.googleads_v1.proto.resources.ad_group_criterion_pb2' - , - __doc__ = """Estimates for criterion bids at various positions. - - - Attributes: - first_page_cpc_micros: - The estimate of the CPC bid required for ad to be shown on - first page of search results. - first_position_cpc_micros: - The estimate of the CPC bid required for ad to be displayed in - first position, at the top of the first page of search - results. - top_of_page_cpc_micros: - The estimate of the CPC bid required for ad to be displayed at - the top of the first page of search results. - estimated_add_clicks_at_first_position_cpc: - Estimate of how many clicks per week you might get by changing - your keyword bid to the value in first\_position\_cpc\_micros. - estimated_add_cost_at_first_position_cpc: - Estimate of how your cost per week might change when changing - your keyword bid to the value in first\_position\_cpc\_micros. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.resources.AdGroupCriterion.PositionEstimates) - )) - , - DESCRIPTOR = _ADGROUPCRITERION, - __module__ = 'google.ads.googleads_v1.proto.resources.ad_group_criterion_pb2' - , - __doc__ = """An ad group criterion. - - - Attributes: - resource_name: - The resource name of the ad group criterion. Ad group - criterion resource names have the form: ``customers/{customer - _id}/adGroupCriteria/{ad_group_id}~{criterion_id}`` - criterion_id: - The ID of the criterion. This field is ignored for mutates. - status: - The status of the criterion. - quality_info: - Information regarding the quality of the criterion. - ad_group: - The ad group to which the criterion belongs. - type: - The type of the criterion. - negative: - Whether to target (``false``) or exclude (``true``) the - criterion. This field is immutable. To switch a criterion - from positive to negative, remove then re-add it. - system_serving_status: - Serving status of the criterion. - approval_status: - Approval status of the criterion. - bid_modifier: - The modifier for the bid when the criterion matches. The - modifier must be in the range: 0.1 - 10.0. Most targetable - criteria types support modifiers. - cpc_bid_micros: - The CPC (cost-per-click) bid. - cpm_bid_micros: - The CPM (cost-per-thousand viewable impressions) bid. - cpv_bid_micros: - The CPV (cost-per-view) bid. - percent_cpc_bid_micros: - The CPC bid amount, expressed as a fraction of the advertised - price for some good or service. The valid range for the - fraction is [0,1) and the value stored here is 1,000,000 \* - [fraction]. - effective_cpc_bid_micros: - The effective CPC (cost-per-click) bid. - effective_cpm_bid_micros: - The effective CPM (cost-per-thousand viewable impressions) - bid. - effective_cpv_bid_micros: - The effective CPV (cost-per-view) bid. - effective_percent_cpc_bid_micros: - The effective Percent CPC bid amount. - effective_cpc_bid_source: - Source of the effective CPC bid. - effective_cpm_bid_source: - Source of the effective CPM bid. - effective_cpv_bid_source: - Source of the effective CPV bid. - effective_percent_cpc_bid_source: - Source of the effective Percent CPC bid. - position_estimates: - Estimates for criterion bids at various positions. - final_urls: - The list of possible final URLs after all cross-domain - redirects for the ad. - final_mobile_urls: - The list of possible final mobile URLs after all cross-domain - redirects. - final_url_suffix: - URL template for appending params to final URL. - tracking_url_template: - The URL template for constructing a tracking URL. - url_custom_parameters: - The list of mappings used to substitute custom parameter tags - in a ``tracking_url_template``, ``final_urls``, or - ``mobile_final_urls``. - criterion: - The ad group criterion. Exactly one must be set. - keyword: - Keyword. - placement: - Placement. - mobile_app_category: - Mobile app category. - mobile_application: - Mobile application. - listing_group: - Listing group. - age_range: - Age range. - gender: - Gender. - income_range: - Income range. - parental_status: - Parental status. - user_list: - User List. - youtube_video: - YouTube Video. - youtube_channel: - YouTube Channel. - topic: - Topic. - user_interest: - User Interest. - webpage: - Webpage - app_payment_model: - App Payment Model. - custom_affinity: - Custom Affinity. - custom_intent: - Custom Intent. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.resources.AdGroupCriterion) - )) -_sym_db.RegisterMessage(AdGroupCriterion) -_sym_db.RegisterMessage(AdGroupCriterion.QualityInfo) -_sym_db.RegisterMessage(AdGroupCriterion.PositionEstimates) - - -DESCRIPTOR._options = None -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/resources/ad_group_criterion_simulation_pb2.py b/google/ads/google_ads/v1/proto/resources/ad_group_criterion_simulation_pb2.py deleted file mode 100644 index 76a2047d7..000000000 --- a/google/ads/google_ads/v1/proto/resources/ad_group_criterion_simulation_pb2.py +++ /dev/null @@ -1,173 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/resources/ad_group_criterion_simulation.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.ads.google_ads.v1.proto.common import simulation_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_simulation__pb2 -from google.ads.google_ads.v1.proto.enums import simulation_modification_method_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_simulation__modification__method__pb2 -from google.ads.google_ads.v1.proto.enums import simulation_type_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_simulation__type__pb2 -from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/resources/ad_group_criterion_simulation.proto', - package='google.ads.googleads.v1.resources', - syntax='proto3', - serialized_options=_b('\n%com.google.ads.googleads.v1.resourcesB\037AdGroupCriterionSimulationProtoP\001ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources\242\002\003GAA\252\002!Google.Ads.GoogleAds.V1.Resources\312\002!Google\\Ads\\GoogleAds\\V1\\Resources\352\002%Google::Ads::GoogleAds::V1::Resources'), - serialized_pb=_b('\nKgoogle/ads/googleads_v1/proto/resources/ad_group_criterion_simulation.proto\x12!google.ads.googleads.v1.resources\x1a\x35google/ads/googleads_v1/proto/common/simulation.proto\x1aHgoogle/ads/googleads_v1/proto/enums/simulation_modification_method.proto\x1a\x39google/ads/googleads_v1/proto/enums/simulation_type.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1cgoogle/api/annotations.proto\"\xac\x04\n\x1a\x41\x64GroupCriterionSimulation\x12\x15\n\rresource_name\x18\x01 \x01(\t\x12\x30\n\x0b\x61\x64_group_id\x18\x02 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x31\n\x0c\x63riterion_id\x18\x03 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12N\n\x04type\x18\x04 \x01(\x0e\x32@.google.ads.googleads.v1.enums.SimulationTypeEnum.SimulationType\x12y\n\x13modification_method\x18\x05 \x01(\x0e\x32\\.google.ads.googleads.v1.enums.SimulationModificationMethodEnum.SimulationModificationMethod\x12\x30\n\nstart_date\x18\x06 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12.\n\x08\x65nd_date\x18\x07 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12W\n\x12\x63pc_bid_point_list\x18\x08 \x01(\x0b\x32\x39.google.ads.googleads.v1.common.CpcBidSimulationPointListH\x00\x42\x0c\n\npoint_listB\x8c\x02\n%com.google.ads.googleads.v1.resourcesB\x1f\x41\x64GroupCriterionSimulationProtoP\x01ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V1.Resources\xca\x02!Google\\Ads\\GoogleAds\\V1\\Resources\xea\x02%Google::Ads::GoogleAds::V1::Resourcesb\x06proto3') - , - dependencies=[google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_simulation__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_simulation__modification__method__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_simulation__type__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - - -_ADGROUPCRITERIONSIMULATION = _descriptor.Descriptor( - name='AdGroupCriterionSimulation', - full_name='google.ads.googleads.v1.resources.AdGroupCriterionSimulation', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.resources.AdGroupCriterionSimulation.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='ad_group_id', full_name='google.ads.googleads.v1.resources.AdGroupCriterionSimulation.ad_group_id', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='criterion_id', full_name='google.ads.googleads.v1.resources.AdGroupCriterionSimulation.criterion_id', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='type', full_name='google.ads.googleads.v1.resources.AdGroupCriterionSimulation.type', index=3, - number=4, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='modification_method', full_name='google.ads.googleads.v1.resources.AdGroupCriterionSimulation.modification_method', index=4, - number=5, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='start_date', full_name='google.ads.googleads.v1.resources.AdGroupCriterionSimulation.start_date', index=5, - number=6, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='end_date', full_name='google.ads.googleads.v1.resources.AdGroupCriterionSimulation.end_date', index=6, - number=7, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='cpc_bid_point_list', full_name='google.ads.googleads.v1.resources.AdGroupCriterionSimulation.cpc_bid_point_list', index=7, - number=8, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='point_list', full_name='google.ads.googleads.v1.resources.AdGroupCriterionSimulation.point_list', - index=0, containing_type=None, fields=[]), - ], - serialized_start=365, - serialized_end=921, -) - -_ADGROUPCRITERIONSIMULATION.fields_by_name['ad_group_id'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -_ADGROUPCRITERIONSIMULATION.fields_by_name['criterion_id'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -_ADGROUPCRITERIONSIMULATION.fields_by_name['type'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_simulation__type__pb2._SIMULATIONTYPEENUM_SIMULATIONTYPE -_ADGROUPCRITERIONSIMULATION.fields_by_name['modification_method'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_simulation__modification__method__pb2._SIMULATIONMODIFICATIONMETHODENUM_SIMULATIONMODIFICATIONMETHOD -_ADGROUPCRITERIONSIMULATION.fields_by_name['start_date'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_ADGROUPCRITERIONSIMULATION.fields_by_name['end_date'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_ADGROUPCRITERIONSIMULATION.fields_by_name['cpc_bid_point_list'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_simulation__pb2._CPCBIDSIMULATIONPOINTLIST -_ADGROUPCRITERIONSIMULATION.oneofs_by_name['point_list'].fields.append( - _ADGROUPCRITERIONSIMULATION.fields_by_name['cpc_bid_point_list']) -_ADGROUPCRITERIONSIMULATION.fields_by_name['cpc_bid_point_list'].containing_oneof = _ADGROUPCRITERIONSIMULATION.oneofs_by_name['point_list'] -DESCRIPTOR.message_types_by_name['AdGroupCriterionSimulation'] = _ADGROUPCRITERIONSIMULATION -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -AdGroupCriterionSimulation = _reflection.GeneratedProtocolMessageType('AdGroupCriterionSimulation', (_message.Message,), dict( - DESCRIPTOR = _ADGROUPCRITERIONSIMULATION, - __module__ = 'google.ads.googleads_v1.proto.resources.ad_group_criterion_simulation_pb2' - , - __doc__ = """An ad group criterion simulation. Supported combinations of advertising - channel type, criterion type, simulation type, and simulation - modification method are detailed below respectively. - - SEARCH KEYWORD CPC\_BID UNIFORM - - - Attributes: - resource_name: - The resource name of the ad group criterion simulation. Ad - group criterion simulation resource names have the form: ``cu - stomers/{customer_id}/adGroupCriterionSimulations/{ad_group_id - }~{criterion_id}~{type}~{modification_method}~{start_date}~{en - d_date}`` - ad_group_id: - AdGroup ID of the simulation. - criterion_id: - Criterion ID of the simulation. - type: - The field that the simulation modifies. - modification_method: - How the simulation modifies the field. - start_date: - First day on which the simulation is based, in YYYY-MM-DD - format. - end_date: - Last day on which the simulation is based, in YYYY-MM-DD - format. - point_list: - List of simulation points. - cpc_bid_point_list: - Simulation points if the simulation type is CPC\_BID. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.resources.AdGroupCriterionSimulation) - )) -_sym_db.RegisterMessage(AdGroupCriterionSimulation) - - -DESCRIPTOR._options = None -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/resources/ad_group_extension_setting_pb2.py b/google/ads/google_ads/v1/proto/resources/ad_group_extension_setting_pb2.py deleted file mode 100644 index b8ae81f87..000000000 --- a/google/ads/google_ads/v1/proto/resources/ad_group_extension_setting_pb2.py +++ /dev/null @@ -1,132 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/resources/ad_group_extension_setting.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.ads.google_ads.v1.proto.enums import extension_setting_device_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_extension__setting__device__pb2 -from google.ads.google_ads.v1.proto.enums import extension_type_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_extension__type__pb2 -from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/resources/ad_group_extension_setting.proto', - package='google.ads.googleads.v1.resources', - syntax='proto3', - serialized_options=_b('\n%com.google.ads.googleads.v1.resourcesB\034AdGroupExtensionSettingProtoP\001ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources\242\002\003GAA\252\002!Google.Ads.GoogleAds.V1.Resources\312\002!Google\\Ads\\GoogleAds\\V1\\Resources\352\002%Google::Ads::GoogleAds::V1::Resources'), - serialized_pb=_b('\nHgoogle/ads/googleads_v1/proto/resources/ad_group_extension_setting.proto\x12!google.ads.googleads.v1.resources\x1a\x42google/ads/googleads_v1/proto/enums/extension_setting_device.proto\x1a\x38google/ads/googleads_v1/proto/enums/extension_type.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1cgoogle/api/annotations.proto\"\xd6\x02\n\x17\x41\x64GroupExtensionSetting\x12\x15\n\rresource_name\x18\x01 \x01(\t\x12V\n\x0e\x65xtension_type\x18\x02 \x01(\x0e\x32>.google.ads.googleads.v1.enums.ExtensionTypeEnum.ExtensionType\x12.\n\x08\x61\x64_group\x18\x03 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12:\n\x14\x65xtension_feed_items\x18\x04 \x03(\x0b\x32\x1c.google.protobuf.StringValue\x12`\n\x06\x64\x65vice\x18\x05 \x01(\x0e\x32P.google.ads.googleads.v1.enums.ExtensionSettingDeviceEnum.ExtensionSettingDeviceB\x89\x02\n%com.google.ads.googleads.v1.resourcesB\x1c\x41\x64GroupExtensionSettingProtoP\x01ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V1.Resources\xca\x02!Google\\Ads\\GoogleAds\\V1\\Resources\xea\x02%Google::Ads::GoogleAds::V1::Resourcesb\x06proto3') - , - dependencies=[google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_extension__setting__device__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_extension__type__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - - -_ADGROUPEXTENSIONSETTING = _descriptor.Descriptor( - name='AdGroupExtensionSetting', - full_name='google.ads.googleads.v1.resources.AdGroupExtensionSetting', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.resources.AdGroupExtensionSetting.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='extension_type', full_name='google.ads.googleads.v1.resources.AdGroupExtensionSetting.extension_type', index=1, - number=2, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='ad_group', full_name='google.ads.googleads.v1.resources.AdGroupExtensionSetting.ad_group', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='extension_feed_items', full_name='google.ads.googleads.v1.resources.AdGroupExtensionSetting.extension_feed_items', index=3, - number=4, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='device', full_name='google.ads.googleads.v1.resources.AdGroupExtensionSetting.device', index=4, - number=5, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=300, - serialized_end=642, -) - -_ADGROUPEXTENSIONSETTING.fields_by_name['extension_type'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_extension__type__pb2._EXTENSIONTYPEENUM_EXTENSIONTYPE -_ADGROUPEXTENSIONSETTING.fields_by_name['ad_group'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_ADGROUPEXTENSIONSETTING.fields_by_name['extension_feed_items'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_ADGROUPEXTENSIONSETTING.fields_by_name['device'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_extension__setting__device__pb2._EXTENSIONSETTINGDEVICEENUM_EXTENSIONSETTINGDEVICE -DESCRIPTOR.message_types_by_name['AdGroupExtensionSetting'] = _ADGROUPEXTENSIONSETTING -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -AdGroupExtensionSetting = _reflection.GeneratedProtocolMessageType('AdGroupExtensionSetting', (_message.Message,), dict( - DESCRIPTOR = _ADGROUPEXTENSIONSETTING, - __module__ = 'google.ads.googleads_v1.proto.resources.ad_group_extension_setting_pb2' - , - __doc__ = """An ad group extension setting. - - - Attributes: - resource_name: - The resource name of the ad group extension setting. - AdGroupExtensionSetting resource names have the form: ``custo - mers/{customer_id}/adGroupExtensionSettings/{ad_group_id}~{ext - ension_type}`` - extension_type: - The extension type of the ad group extension setting. - ad_group: - The resource name of the ad group. The linked extension feed - items will serve under this ad group. AdGroup resource names - have the form: - ``customers/{customer_id}/adGroups/{ad_group_id}`` - extension_feed_items: - The resource names of the extension feed items to serve under - the ad group. ExtensionFeedItem resource names have the form: - ``customers/{customer_id}/extensionFeedItems/{feed_item_id}`` - device: - The device for which the extensions will serve. Optional. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.resources.AdGroupExtensionSetting) - )) -_sym_db.RegisterMessage(AdGroupExtensionSetting) - - -DESCRIPTOR._options = None -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/resources/ad_group_feed_pb2.py b/google/ads/google_ads/v1/proto/resources/ad_group_feed_pb2.py deleted file mode 100644 index dcb47831f..000000000 --- a/google/ads/google_ads/v1/proto/resources/ad_group_feed_pb2.py +++ /dev/null @@ -1,140 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/resources/ad_group_feed.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.ads.google_ads.v1.proto.common import matching_function_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_matching__function__pb2 -from google.ads.google_ads.v1.proto.enums import feed_link_status_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_feed__link__status__pb2 -from google.ads.google_ads.v1.proto.enums import placeholder_type_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_placeholder__type__pb2 -from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/resources/ad_group_feed.proto', - package='google.ads.googleads.v1.resources', - syntax='proto3', - serialized_options=_b('\n%com.google.ads.googleads.v1.resourcesB\020AdGroupFeedProtoP\001ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources\242\002\003GAA\252\002!Google.Ads.GoogleAds.V1.Resources\312\002!Google\\Ads\\GoogleAds\\V1\\Resources\352\002%Google::Ads::GoogleAds::V1::Resources'), - serialized_pb=_b('\n;google/ads/googleads_v1/proto/resources/ad_group_feed.proto\x12!google.ads.googleads.v1.resources\x1a.google.ads.googleads.v1.enums.AdGroupStatusEnum.AdGroupStatus\x12H\n\x04type\x18\x0c \x01(\x0e\x32:.google.ads.googleads.v1.enums.AdGroupTypeEnum.AdGroupType\x12h\n\x10\x61\x64_rotation_mode\x18\x16 \x01(\x0e\x32N.google.ads.googleads.v1.enums.AdGroupAdRotationModeEnum.AdGroupAdRotationMode\x12\x33\n\rbase_ad_group\x18\x12 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12;\n\x15tracking_url_template\x18\r \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12N\n\x15url_custom_parameters\x18\x06 \x03(\x0b\x32/.google.ads.googleads.v1.common.CustomParameter\x12.\n\x08\x63\x61mpaign\x18\n \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x33\n\x0e\x63pc_bid_micros\x18\x0e \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x33\n\x0e\x63pm_bid_micros\x18\x0f \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x36\n\x11target_cpa_micros\x18\x1b \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x33\n\x0e\x63pv_bid_micros\x18\x11 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x36\n\x11target_cpm_micros\x18\x1a \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x31\n\x0btarget_roas\x18\x1e \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12;\n\x16percent_cpc_bid_micros\x18\x14 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x65\n\x1f\x65xplorer_auto_optimizer_setting\x18\x15 \x01(\x0b\x32<.google.ads.googleads.v1.common.ExplorerAutoOptimizerSetting\x12n\n\x1c\x64isplay_custom_bid_dimension\x18\x17 \x01(\x0e\x32H.google.ads.googleads.v1.enums.TargetingDimensionEnum.TargetingDimension\x12\x36\n\x10\x66inal_url_suffix\x18\x18 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12K\n\x11targeting_setting\x18\x19 \x01(\x0b\x32\x30.google.ads.googleads.v1.common.TargetingSetting\x12@\n\x1b\x65\x66\x66\x65\x63tive_target_cpa_micros\x18\x1c \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x63\n\x1b\x65\x66\x66\x65\x63tive_target_cpa_source\x18\x1d \x01(\x0e\x32>.google.ads.googleads.v1.enums.BiddingSourceEnum.BiddingSource\x12;\n\x15\x65\x66\x66\x65\x63tive_target_roas\x18\x1f \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12\x64\n\x1c\x65\x66\x66\x65\x63tive_target_roas_source\x18 \x01(\x0e\x32>.google.ads.googleads.v1.enums.BiddingSourceEnum.BiddingSourceB\xf9\x01\n%com.google.ads.googleads.v1.resourcesB\x0c\x41\x64GroupProtoP\x01ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V1.Resources\xca\x02!Google\\Ads\\GoogleAds\\V1\\Resources\xea\x02%Google::Ads::GoogleAds::V1::Resourcesb\x06proto3') - , - dependencies=[google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_custom__parameter__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_explorer__auto__optimizer__setting__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_targeting__setting__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_ad__group__ad__rotation__mode__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_ad__group__status__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_ad__group__type__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_bidding__source__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_targeting__dimension__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - - -_ADGROUP = _descriptor.Descriptor( - name='AdGroup', - full_name='google.ads.googleads.v1.resources.AdGroup', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.resources.AdGroup.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='id', full_name='google.ads.googleads.v1.resources.AdGroup.id', index=1, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='name', full_name='google.ads.googleads.v1.resources.AdGroup.name', index=2, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='status', full_name='google.ads.googleads.v1.resources.AdGroup.status', index=3, - number=5, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='type', full_name='google.ads.googleads.v1.resources.AdGroup.type', index=4, - number=12, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='ad_rotation_mode', full_name='google.ads.googleads.v1.resources.AdGroup.ad_rotation_mode', index=5, - number=22, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='base_ad_group', full_name='google.ads.googleads.v1.resources.AdGroup.base_ad_group', index=6, - number=18, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='tracking_url_template', full_name='google.ads.googleads.v1.resources.AdGroup.tracking_url_template', index=7, - number=13, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='url_custom_parameters', full_name='google.ads.googleads.v1.resources.AdGroup.url_custom_parameters', index=8, - number=6, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='campaign', full_name='google.ads.googleads.v1.resources.AdGroup.campaign', index=9, - number=10, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='cpc_bid_micros', full_name='google.ads.googleads.v1.resources.AdGroup.cpc_bid_micros', index=10, - number=14, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='cpm_bid_micros', full_name='google.ads.googleads.v1.resources.AdGroup.cpm_bid_micros', index=11, - number=15, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='target_cpa_micros', full_name='google.ads.googleads.v1.resources.AdGroup.target_cpa_micros', index=12, - number=27, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='cpv_bid_micros', full_name='google.ads.googleads.v1.resources.AdGroup.cpv_bid_micros', index=13, - number=17, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='target_cpm_micros', full_name='google.ads.googleads.v1.resources.AdGroup.target_cpm_micros', index=14, - number=26, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='target_roas', full_name='google.ads.googleads.v1.resources.AdGroup.target_roas', index=15, - number=30, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='percent_cpc_bid_micros', full_name='google.ads.googleads.v1.resources.AdGroup.percent_cpc_bid_micros', index=16, - number=20, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='explorer_auto_optimizer_setting', full_name='google.ads.googleads.v1.resources.AdGroup.explorer_auto_optimizer_setting', index=17, - number=21, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='display_custom_bid_dimension', full_name='google.ads.googleads.v1.resources.AdGroup.display_custom_bid_dimension', index=18, - number=23, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='final_url_suffix', full_name='google.ads.googleads.v1.resources.AdGroup.final_url_suffix', index=19, - number=24, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='targeting_setting', full_name='google.ads.googleads.v1.resources.AdGroup.targeting_setting', index=20, - number=25, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='effective_target_cpa_micros', full_name='google.ads.googleads.v1.resources.AdGroup.effective_target_cpa_micros', index=21, - number=28, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='effective_target_cpa_source', full_name='google.ads.googleads.v1.resources.AdGroup.effective_target_cpa_source', index=22, - number=29, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='effective_target_roas', full_name='google.ads.googleads.v1.resources.AdGroup.effective_target_roas', index=23, - number=31, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='effective_target_roas_source', full_name='google.ads.googleads.v1.resources.AdGroup.effective_target_roas_source', index=24, - number=32, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=661, - serialized_end=2341, -) - -_ADGROUP.fields_by_name['id'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -_ADGROUP.fields_by_name['name'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_ADGROUP.fields_by_name['status'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_ad__group__status__pb2._ADGROUPSTATUSENUM_ADGROUPSTATUS -_ADGROUP.fields_by_name['type'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_ad__group__type__pb2._ADGROUPTYPEENUM_ADGROUPTYPE -_ADGROUP.fields_by_name['ad_rotation_mode'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_ad__group__ad__rotation__mode__pb2._ADGROUPADROTATIONMODEENUM_ADGROUPADROTATIONMODE -_ADGROUP.fields_by_name['base_ad_group'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_ADGROUP.fields_by_name['tracking_url_template'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_ADGROUP.fields_by_name['url_custom_parameters'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_custom__parameter__pb2._CUSTOMPARAMETER -_ADGROUP.fields_by_name['campaign'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_ADGROUP.fields_by_name['cpc_bid_micros'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -_ADGROUP.fields_by_name['cpm_bid_micros'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -_ADGROUP.fields_by_name['target_cpa_micros'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -_ADGROUP.fields_by_name['cpv_bid_micros'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -_ADGROUP.fields_by_name['target_cpm_micros'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -_ADGROUP.fields_by_name['target_roas'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE -_ADGROUP.fields_by_name['percent_cpc_bid_micros'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -_ADGROUP.fields_by_name['explorer_auto_optimizer_setting'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_explorer__auto__optimizer__setting__pb2._EXPLORERAUTOOPTIMIZERSETTING -_ADGROUP.fields_by_name['display_custom_bid_dimension'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_targeting__dimension__pb2._TARGETINGDIMENSIONENUM_TARGETINGDIMENSION -_ADGROUP.fields_by_name['final_url_suffix'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_ADGROUP.fields_by_name['targeting_setting'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_targeting__setting__pb2._TARGETINGSETTING -_ADGROUP.fields_by_name['effective_target_cpa_micros'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -_ADGROUP.fields_by_name['effective_target_cpa_source'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_bidding__source__pb2._BIDDINGSOURCEENUM_BIDDINGSOURCE -_ADGROUP.fields_by_name['effective_target_roas'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE -_ADGROUP.fields_by_name['effective_target_roas_source'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_bidding__source__pb2._BIDDINGSOURCEENUM_BIDDINGSOURCE -DESCRIPTOR.message_types_by_name['AdGroup'] = _ADGROUP -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -AdGroup = _reflection.GeneratedProtocolMessageType('AdGroup', (_message.Message,), dict( - DESCRIPTOR = _ADGROUP, - __module__ = 'google.ads.googleads_v1.proto.resources.ad_group_pb2' - , - __doc__ = """An ad group. - - - Attributes: - resource_name: - The resource name of the ad group. Ad group resource names - have the form: - ``customers/{customer_id}/adGroups/{ad_group_id}`` - id: - The ID of the ad group. - name: - The name of the ad group. This field is required and should - not be empty when creating new ad groups. It must contain - fewer than 255 UTF-8 full-width characters. It must not - contain any null (code point 0x0), NL line feed (code point - 0xA) or carriage return (code point 0xD) characters. - status: - The status of the ad group. - type: - The type of the ad group. - ad_rotation_mode: - The ad rotation mode of the ad group. - base_ad_group: - For draft or experiment ad groups, this field is the resource - name of the base ad group from which this ad group was - created. If a draft or experiment ad group does not have a - base ad group, then this field is null. For base ad groups, - this field equals the ad group resource name. This field is - read-only. - tracking_url_template: - The URL template for constructing a tracking URL. - url_custom_parameters: - The list of mappings used to substitute custom parameter tags - in a ``tracking_url_template``, ``final_urls``, or - ``mobile_final_urls``. - campaign: - The campaign to which the ad group belongs. - cpc_bid_micros: - The maximum CPC (cost-per-click) bid. - cpm_bid_micros: - The maximum CPM (cost-per-thousand viewable impressions) bid. - target_cpa_micros: - The target CPA (cost-per-acquisition). - cpv_bid_micros: - The CPV (cost-per-view) bid. - target_cpm_micros: - Average amount in micros that the advertiser is willing to pay - for every thousand times the ad is shown. - target_roas: - The target ROAS (return-on-ad-spend) override. If the ad - group's campaign bidding strategy is a standard Target ROAS - strategy, then this field overrides the target ROAS specified - in the campaign's bidding strategy. Otherwise, this value is - ignored. - percent_cpc_bid_micros: - The percent cpc bid amount, expressed as a fraction of the - advertised price for some good or service. The valid range for - the fraction is [0,1) and the value stored here is 1,000,000 - \* [fraction]. - explorer_auto_optimizer_setting: - Settings for the Display Campaign Optimizer, initially termed - "Explorer". - display_custom_bid_dimension: - Allows advertisers to specify a targeting dimension on which - to place absolute bids. This is only applicable for campaigns - that target only the display network and not search. - final_url_suffix: - URL template for appending params to Final URL. - targeting_setting: - Setting for targeting related features. - effective_target_cpa_micros: - The effective target CPA (cost-per-acquisition). This field is - read-only. - effective_target_cpa_source: - Source of the effective target CPA. This field is read-only. - effective_target_roas: - The effective target ROAS (return-on-ad-spend). This field is - read-only. - effective_target_roas_source: - Source of the effective target ROAS. This field is read-only. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.resources.AdGroup) - )) -_sym_db.RegisterMessage(AdGroup) - - -DESCRIPTOR._options = None -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/resources/ad_group_simulation_pb2.py b/google/ads/google_ads/v1/proto/resources/ad_group_simulation_pb2.py deleted file mode 100644 index 78bb85cd7..000000000 --- a/google/ads/google_ads/v1/proto/resources/ad_group_simulation_pb2.py +++ /dev/null @@ -1,190 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/resources/ad_group_simulation.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.ads.google_ads.v1.proto.common import simulation_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_simulation__pb2 -from google.ads.google_ads.v1.proto.enums import simulation_modification_method_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_simulation__modification__method__pb2 -from google.ads.google_ads.v1.proto.enums import simulation_type_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_simulation__type__pb2 -from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/resources/ad_group_simulation.proto', - package='google.ads.googleads.v1.resources', - syntax='proto3', - serialized_options=_b('\n%com.google.ads.googleads.v1.resourcesB\026AdGroupSimulationProtoP\001ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources\242\002\003GAA\252\002!Google.Ads.GoogleAds.V1.Resources\312\002!Google\\Ads\\GoogleAds\\V1\\Resources\352\002%Google::Ads::GoogleAds::V1::Resources'), - serialized_pb=_b('\nAgoogle/ads/googleads_v1/proto/resources/ad_group_simulation.proto\x12!google.ads.googleads.v1.resources\x1a\x35google/ads/googleads_v1/proto/common/simulation.proto\x1aHgoogle/ads/googleads_v1/proto/enums/simulation_modification_method.proto\x1a\x39google/ads/googleads_v1/proto/enums/simulation_type.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1cgoogle/api/annotations.proto\"\xa8\x05\n\x11\x41\x64GroupSimulation\x12\x15\n\rresource_name\x18\x01 \x01(\t\x12\x30\n\x0b\x61\x64_group_id\x18\x02 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12N\n\x04type\x18\x03 \x01(\x0e\x32@.google.ads.googleads.v1.enums.SimulationTypeEnum.SimulationType\x12y\n\x13modification_method\x18\x04 \x01(\x0e\x32\\.google.ads.googleads.v1.enums.SimulationModificationMethodEnum.SimulationModificationMethod\x12\x30\n\nstart_date\x18\x05 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12.\n\x08\x65nd_date\x18\x06 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12W\n\x12\x63pc_bid_point_list\x18\x08 \x01(\x0b\x32\x39.google.ads.googleads.v1.common.CpcBidSimulationPointListH\x00\x12W\n\x12\x63pv_bid_point_list\x18\n \x01(\x0b\x32\x39.google.ads.googleads.v1.common.CpvBidSimulationPointListH\x00\x12]\n\x15target_cpa_point_list\x18\t \x01(\x0b\x32<.google.ads.googleads.v1.common.TargetCpaSimulationPointListH\x00\x42\x0c\n\npoint_listB\x83\x02\n%com.google.ads.googleads.v1.resourcesB\x16\x41\x64GroupSimulationProtoP\x01ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V1.Resources\xca\x02!Google\\Ads\\GoogleAds\\V1\\Resources\xea\x02%Google::Ads::GoogleAds::V1::Resourcesb\x06proto3') - , - dependencies=[google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_simulation__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_simulation__modification__method__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_simulation__type__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - - -_ADGROUPSIMULATION = _descriptor.Descriptor( - name='AdGroupSimulation', - full_name='google.ads.googleads.v1.resources.AdGroupSimulation', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.resources.AdGroupSimulation.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='ad_group_id', full_name='google.ads.googleads.v1.resources.AdGroupSimulation.ad_group_id', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='type', full_name='google.ads.googleads.v1.resources.AdGroupSimulation.type', index=2, - number=3, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='modification_method', full_name='google.ads.googleads.v1.resources.AdGroupSimulation.modification_method', index=3, - number=4, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='start_date', full_name='google.ads.googleads.v1.resources.AdGroupSimulation.start_date', index=4, - number=5, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='end_date', full_name='google.ads.googleads.v1.resources.AdGroupSimulation.end_date', index=5, - number=6, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='cpc_bid_point_list', full_name='google.ads.googleads.v1.resources.AdGroupSimulation.cpc_bid_point_list', index=6, - number=8, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='cpv_bid_point_list', full_name='google.ads.googleads.v1.resources.AdGroupSimulation.cpv_bid_point_list', index=7, - number=10, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='target_cpa_point_list', full_name='google.ads.googleads.v1.resources.AdGroupSimulation.target_cpa_point_list', index=8, - number=9, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='point_list', full_name='google.ads.googleads.v1.resources.AdGroupSimulation.point_list', - index=0, containing_type=None, fields=[]), - ], - serialized_start=355, - serialized_end=1035, -) - -_ADGROUPSIMULATION.fields_by_name['ad_group_id'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -_ADGROUPSIMULATION.fields_by_name['type'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_simulation__type__pb2._SIMULATIONTYPEENUM_SIMULATIONTYPE -_ADGROUPSIMULATION.fields_by_name['modification_method'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_simulation__modification__method__pb2._SIMULATIONMODIFICATIONMETHODENUM_SIMULATIONMODIFICATIONMETHOD -_ADGROUPSIMULATION.fields_by_name['start_date'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_ADGROUPSIMULATION.fields_by_name['end_date'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_ADGROUPSIMULATION.fields_by_name['cpc_bid_point_list'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_simulation__pb2._CPCBIDSIMULATIONPOINTLIST -_ADGROUPSIMULATION.fields_by_name['cpv_bid_point_list'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_simulation__pb2._CPVBIDSIMULATIONPOINTLIST -_ADGROUPSIMULATION.fields_by_name['target_cpa_point_list'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_simulation__pb2._TARGETCPASIMULATIONPOINTLIST -_ADGROUPSIMULATION.oneofs_by_name['point_list'].fields.append( - _ADGROUPSIMULATION.fields_by_name['cpc_bid_point_list']) -_ADGROUPSIMULATION.fields_by_name['cpc_bid_point_list'].containing_oneof = _ADGROUPSIMULATION.oneofs_by_name['point_list'] -_ADGROUPSIMULATION.oneofs_by_name['point_list'].fields.append( - _ADGROUPSIMULATION.fields_by_name['cpv_bid_point_list']) -_ADGROUPSIMULATION.fields_by_name['cpv_bid_point_list'].containing_oneof = _ADGROUPSIMULATION.oneofs_by_name['point_list'] -_ADGROUPSIMULATION.oneofs_by_name['point_list'].fields.append( - _ADGROUPSIMULATION.fields_by_name['target_cpa_point_list']) -_ADGROUPSIMULATION.fields_by_name['target_cpa_point_list'].containing_oneof = _ADGROUPSIMULATION.oneofs_by_name['point_list'] -DESCRIPTOR.message_types_by_name['AdGroupSimulation'] = _ADGROUPSIMULATION -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -AdGroupSimulation = _reflection.GeneratedProtocolMessageType('AdGroupSimulation', (_message.Message,), dict( - DESCRIPTOR = _ADGROUPSIMULATION, - __module__ = 'google.ads.googleads_v1.proto.resources.ad_group_simulation_pb2' - , - __doc__ = """An ad group simulation. Supported combinations of advertising channel - type, simulation type and simulation modification method is detailed - below respectively. - - SEARCH CPC\_BID DEFAULT SEARCH CPC\_BID UNIFORM SEARCH TARGET\_CPA - UNIFORM DISPLAY CPC\_BID DEFAULT DISPLAY CPC\_BID UNIFORM DISPLAY - TARGET\_CPA UNIFORM VIDEO CPV\_BID DEFAULT VIDEO CPV\_BID UNIFORM - - - Attributes: - resource_name: - The resource name of the ad group simulation. Ad group - simulation resource names have the form: ``customers/{custome - r_id}/adGroupSimulations/{ad_group_id}~{type}~{modification_me - thod}~{start_date}~{end_date}`` - ad_group_id: - Ad group id of the simulation. - type: - The field that the simulation modifies. - modification_method: - How the simulation modifies the field. - start_date: - First day on which the simulation is based, in YYYY-MM-DD - format. - end_date: - Last day on which the simulation is based, in YYYY-MM-DD - format - point_list: - List of simulation points. - cpc_bid_point_list: - Simulation points if the simulation type is CPC\_BID. - cpv_bid_point_list: - Simulation points if the simulation type is CPV\_BID. - target_cpa_point_list: - Simulation points if the simulation type is TARGET\_CPA. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.resources.AdGroupSimulation) - )) -_sym_db.RegisterMessage(AdGroupSimulation) - - -DESCRIPTOR._options = None -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/resources/ad_parameter_pb2.py b/google/ads/google_ads/v1/proto/resources/ad_parameter_pb2.py deleted file mode 100644 index 3a32adfff..000000000 --- a/google/ads/google_ads/v1/proto/resources/ad_parameter_pb2.py +++ /dev/null @@ -1,129 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/resources/ad_parameter.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/resources/ad_parameter.proto', - package='google.ads.googleads.v1.resources', - syntax='proto3', - serialized_options=_b('\n%com.google.ads.googleads.v1.resourcesB\020AdParameterProtoP\001ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources\242\002\003GAA\252\002!Google.Ads.GoogleAds.V1.Resources\312\002!Google\\Ads\\GoogleAds\\V1\\Resources\352\002%Google::Ads::GoogleAds::V1::Resources'), - serialized_pb=_b('\n:google/ads/googleads_v1/proto/resources/ad_parameter.proto\x12!google.ads.googleads.v1.resources\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1cgoogle/api/annotations.proto\"\xca\x01\n\x0b\x41\x64Parameter\x12\x15\n\rresource_name\x18\x01 \x01(\t\x12\x38\n\x12\x61\x64_group_criterion\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x34\n\x0fparameter_index\x18\x03 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x34\n\x0einsertion_text\x18\x04 \x01(\x0b\x32\x1c.google.protobuf.StringValueB\xfd\x01\n%com.google.ads.googleads.v1.resourcesB\x10\x41\x64ParameterProtoP\x01ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V1.Resources\xca\x02!Google\\Ads\\GoogleAds\\V1\\Resources\xea\x02%Google::Ads::GoogleAds::V1::Resourcesb\x06proto3') - , - dependencies=[google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - - -_ADPARAMETER = _descriptor.Descriptor( - name='AdParameter', - full_name='google.ads.googleads.v1.resources.AdParameter', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.resources.AdParameter.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='ad_group_criterion', full_name='google.ads.googleads.v1.resources.AdParameter.ad_group_criterion', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='parameter_index', full_name='google.ads.googleads.v1.resources.AdParameter.parameter_index', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='insertion_text', full_name='google.ads.googleads.v1.resources.AdParameter.insertion_text', index=3, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=160, - serialized_end=362, -) - -_ADPARAMETER.fields_by_name['ad_group_criterion'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_ADPARAMETER.fields_by_name['parameter_index'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -_ADPARAMETER.fields_by_name['insertion_text'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -DESCRIPTOR.message_types_by_name['AdParameter'] = _ADPARAMETER -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -AdParameter = _reflection.GeneratedProtocolMessageType('AdParameter', (_message.Message,), dict( - DESCRIPTOR = _ADPARAMETER, - __module__ = 'google.ads.googleads_v1.proto.resources.ad_parameter_pb2' - , - __doc__ = """An ad parameter that is used to update numeric values (such as prices or - inventory levels) in any text line of an ad (including URLs). There can - be a maximum of two AdParameters per ad group criterion. (One with - parameter\_index = 1 and one with parameter\_index = 2.) In the ad the - parameters are referenced by a placeholder of the form "{param#:value}". - E.g. "{param1:$17}" - - - Attributes: - resource_name: - The resource name of the ad parameter. Ad parameter resource - names have the form: ``customers/{customer_id}/adParameters/{ - ad_group_id}~{criterion_id}~{parameter_index}`` - ad_group_criterion: - The ad group criterion that this ad parameter belongs to. - parameter_index: - The unique index of this ad parameter. Must be either 1 or 2. - insertion_text: - 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. - - Can be prepended or appended with a currency symbol. For - example, $99.99 is valid. - Can be prepended or appended with - a currency 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. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.resources.AdParameter) - )) -_sym_db.RegisterMessage(AdParameter) - - -DESCRIPTOR._options = None -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/resources/ad_pb2.py b/google/ads/google_ads/v1/proto/resources/ad_pb2.py deleted file mode 100644 index 70de5c464..000000000 --- a/google/ads/google_ads/v1/proto/resources/ad_pb2.py +++ /dev/null @@ -1,473 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/resources/ad.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.ads.google_ads.v1.proto.common import ad_type_infos_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_ad__type__infos__pb2 -from google.ads.google_ads.v1.proto.common import custom_parameter_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_custom__parameter__pb2 -from google.ads.google_ads.v1.proto.common import final_app_url_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_final__app__url__pb2 -from google.ads.google_ads.v1.proto.common import url_collection_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_url__collection__pb2 -from google.ads.google_ads.v1.proto.enums import ad_type_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_ad__type__pb2 -from google.ads.google_ads.v1.proto.enums import device_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_device__pb2 -from google.ads.google_ads.v1.proto.enums import system_managed_entity_source_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_system__managed__entity__source__pb2 -from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/resources/ad.proto', - package='google.ads.googleads.v1.resources', - syntax='proto3', - serialized_options=_b('\n%com.google.ads.googleads.v1.resourcesB\007AdProtoP\001ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources\242\002\003GAA\252\002!Google.Ads.GoogleAds.V1.Resources\312\002!Google\\Ads\\GoogleAds\\V1\\Resources\352\002%Google::Ads::GoogleAds::V1::Resources'), - serialized_pb=_b('\n0google/ads/googleads_v1/proto/resources/ad.proto\x12!google.ads.googleads.v1.resources\x1a\x38google/ads/googleads_v1/proto/common/ad_type_infos.proto\x1a;google/ads/googleads_v1/proto/common/custom_parameter.proto\x1a\x38google/ads/googleads_v1/proto/common/final_app_url.proto\x1a\x39google/ads/googleads_v1/proto/common/url_collection.proto\x1a\x31google/ads/googleads_v1/proto/enums/ad_type.proto\x1a\x30google/ads/googleads_v1/proto/enums/device.proto\x1a\x46google/ads/googleads_v1/proto/enums/system_managed_entity_source.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1cgoogle/api/annotations.proto\"\x8b\x12\n\x02\x41\x64\x12\'\n\x02id\x18\x01 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x30\n\nfinal_urls\x18\x02 \x03(\x0b\x32\x1c.google.protobuf.StringValue\x12\x43\n\x0e\x66inal_app_urls\x18# \x03(\x0b\x32+.google.ads.googleads.v1.common.FinalAppUrl\x12\x37\n\x11\x66inal_mobile_urls\x18\x10 \x03(\x0b\x32\x1c.google.protobuf.StringValue\x12;\n\x15tracking_url_template\x18\x0c \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12N\n\x15url_custom_parameters\x18\n \x03(\x0b\x32/.google.ads.googleads.v1.common.CustomParameter\x12\x31\n\x0b\x64isplay_url\x18\x04 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12>\n\x04type\x18\x05 \x01(\x0e\x32\x30.google.ads.googleads.v1.enums.AdTypeEnum.AdType\x12\x37\n\x13\x61\x64\x64\x65\x64_by_google_ads\x18\x13 \x01(\x0b\x32\x1a.google.protobuf.BoolValue\x12K\n\x11\x64\x65vice_preference\x18\x14 \x01(\x0e\x32\x30.google.ads.googleads.v1.enums.DeviceEnum.Device\x12\x46\n\x0furl_collections\x18\x1a \x03(\x0b\x32-.google.ads.googleads.v1.common.UrlCollection\x12*\n\x04name\x18\x17 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x82\x01\n\x1esystem_managed_resource_source\x18\x1b \x01(\x0e\x32Z.google.ads.googleads.v1.enums.SystemManagedResourceSourceEnum.SystemManagedResourceSource\x12=\n\x07text_ad\x18\x06 \x01(\x0b\x32*.google.ads.googleads.v1.common.TextAdInfoH\x00\x12N\n\x10\x65xpanded_text_ad\x18\x07 \x01(\x0b\x32\x32.google.ads.googleads.v1.common.ExpandedTextAdInfoH\x00\x12\x46\n\x0c\x63\x61ll_only_ad\x18\r \x01(\x0b\x32..google.ads.googleads.v1.common.CallOnlyAdInfoH\x00\x12\x61\n\x1a\x65xpanded_dynamic_search_ad\x18\x0e \x01(\x0b\x32;.google.ads.googleads.v1.common.ExpandedDynamicSearchAdInfoH\x00\x12?\n\x08hotel_ad\x18\x0f \x01(\x0b\x32+.google.ads.googleads.v1.common.HotelAdInfoH\x00\x12P\n\x11shopping_smart_ad\x18\x11 \x01(\x0b\x32\x33.google.ads.googleads.v1.common.ShoppingSmartAdInfoH\x00\x12T\n\x13shopping_product_ad\x18\x12 \x01(\x0b\x32\x35.google.ads.googleads.v1.common.ShoppingProductAdInfoH\x00\x12?\n\x08gmail_ad\x18\x15 \x01(\x0b\x32+.google.ads.googleads.v1.common.GmailAdInfoH\x00\x12?\n\x08image_ad\x18\x16 \x01(\x0b\x32+.google.ads.googleads.v1.common.ImageAdInfoH\x00\x12?\n\x08video_ad\x18\x18 \x01(\x0b\x32+.google.ads.googleads.v1.common.VideoAdInfoH\x00\x12V\n\x14responsive_search_ad\x18\x19 \x01(\x0b\x32\x36.google.ads.googleads.v1.common.ResponsiveSearchAdInfoH\x00\x12\x65\n\x1clegacy_responsive_display_ad\x18\x1c \x01(\x0b\x32=.google.ads.googleads.v1.common.LegacyResponsiveDisplayAdInfoH\x00\x12;\n\x06\x61pp_ad\x18\x1d \x01(\x0b\x32).google.ads.googleads.v1.common.AppAdInfoH\x00\x12W\n\x15legacy_app_install_ad\x18\x1e \x01(\x0b\x32\x36.google.ads.googleads.v1.common.LegacyAppInstallAdInfoH\x00\x12X\n\x15responsive_display_ad\x18\x1f \x01(\x0b\x32\x37.google.ads.googleads.v1.common.ResponsiveDisplayAdInfoH\x00\x12P\n\x11\x64isplay_upload_ad\x18! \x01(\x0b\x32\x33.google.ads.googleads.v1.common.DisplayUploadAdInfoH\x00\x12P\n\x11\x61pp_engagement_ad\x18\" \x01(\x0b\x32\x33.google.ads.googleads.v1.common.AppEngagementAdInfoH\x00\x12i\n\x1eshopping_comparison_listing_ad\x18$ \x01(\x0b\x32?.google.ads.googleads.v1.common.ShoppingComparisonListingAdInfoH\x00\x42\t\n\x07\x61\x64_dataB\xf4\x01\n%com.google.ads.googleads.v1.resourcesB\x07\x41\x64ProtoP\x01ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V1.Resources\xca\x02!Google\\Ads\\GoogleAds\\V1\\Resources\xea\x02%Google::Ads::GoogleAds::V1::Resourcesb\x06proto3') - , - dependencies=[google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_ad__type__infos__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_custom__parameter__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_final__app__url__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_url__collection__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_ad__type__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_device__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_system__managed__entity__source__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - - -_AD = _descriptor.Descriptor( - name='Ad', - full_name='google.ads.googleads.v1.resources.Ad', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='id', full_name='google.ads.googleads.v1.resources.Ad.id', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='final_urls', full_name='google.ads.googleads.v1.resources.Ad.final_urls', index=1, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='final_app_urls', full_name='google.ads.googleads.v1.resources.Ad.final_app_urls', index=2, - number=35, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='final_mobile_urls', full_name='google.ads.googleads.v1.resources.Ad.final_mobile_urls', index=3, - number=16, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='tracking_url_template', full_name='google.ads.googleads.v1.resources.Ad.tracking_url_template', index=4, - number=12, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='url_custom_parameters', full_name='google.ads.googleads.v1.resources.Ad.url_custom_parameters', index=5, - number=10, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='display_url', full_name='google.ads.googleads.v1.resources.Ad.display_url', index=6, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='type', full_name='google.ads.googleads.v1.resources.Ad.type', index=7, - number=5, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='added_by_google_ads', full_name='google.ads.googleads.v1.resources.Ad.added_by_google_ads', index=8, - number=19, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='device_preference', full_name='google.ads.googleads.v1.resources.Ad.device_preference', index=9, - number=20, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='url_collections', full_name='google.ads.googleads.v1.resources.Ad.url_collections', index=10, - number=26, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='name', full_name='google.ads.googleads.v1.resources.Ad.name', index=11, - number=23, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='system_managed_resource_source', full_name='google.ads.googleads.v1.resources.Ad.system_managed_resource_source', index=12, - number=27, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='text_ad', full_name='google.ads.googleads.v1.resources.Ad.text_ad', index=13, - number=6, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='expanded_text_ad', full_name='google.ads.googleads.v1.resources.Ad.expanded_text_ad', index=14, - number=7, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='call_only_ad', full_name='google.ads.googleads.v1.resources.Ad.call_only_ad', index=15, - number=13, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='expanded_dynamic_search_ad', full_name='google.ads.googleads.v1.resources.Ad.expanded_dynamic_search_ad', index=16, - number=14, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='hotel_ad', full_name='google.ads.googleads.v1.resources.Ad.hotel_ad', index=17, - number=15, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='shopping_smart_ad', full_name='google.ads.googleads.v1.resources.Ad.shopping_smart_ad', index=18, - number=17, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='shopping_product_ad', full_name='google.ads.googleads.v1.resources.Ad.shopping_product_ad', index=19, - number=18, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='gmail_ad', full_name='google.ads.googleads.v1.resources.Ad.gmail_ad', index=20, - number=21, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='image_ad', full_name='google.ads.googleads.v1.resources.Ad.image_ad', index=21, - number=22, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='video_ad', full_name='google.ads.googleads.v1.resources.Ad.video_ad', index=22, - number=24, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='responsive_search_ad', full_name='google.ads.googleads.v1.resources.Ad.responsive_search_ad', index=23, - number=25, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='legacy_responsive_display_ad', full_name='google.ads.googleads.v1.resources.Ad.legacy_responsive_display_ad', index=24, - number=28, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='app_ad', full_name='google.ads.googleads.v1.resources.Ad.app_ad', index=25, - number=29, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='legacy_app_install_ad', full_name='google.ads.googleads.v1.resources.Ad.legacy_app_install_ad', index=26, - number=30, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='responsive_display_ad', full_name='google.ads.googleads.v1.resources.Ad.responsive_display_ad', index=27, - number=31, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='display_upload_ad', full_name='google.ads.googleads.v1.resources.Ad.display_upload_ad', index=28, - number=33, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='app_engagement_ad', full_name='google.ads.googleads.v1.resources.Ad.app_engagement_ad', index=29, - number=34, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='shopping_comparison_listing_ad', full_name='google.ads.googleads.v1.resources.Ad.shopping_comparison_listing_ad', index=30, - number=36, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='ad_data', full_name='google.ads.googleads.v1.resources.Ad.ad_data', - index=0, containing_type=None, fields=[]), - ], - serialized_start=559, - serialized_end=2874, -) - -_AD.fields_by_name['id'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -_AD.fields_by_name['final_urls'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_AD.fields_by_name['final_app_urls'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_final__app__url__pb2._FINALAPPURL -_AD.fields_by_name['final_mobile_urls'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_AD.fields_by_name['tracking_url_template'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_AD.fields_by_name['url_custom_parameters'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_custom__parameter__pb2._CUSTOMPARAMETER -_AD.fields_by_name['display_url'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_AD.fields_by_name['type'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_ad__type__pb2._ADTYPEENUM_ADTYPE -_AD.fields_by_name['added_by_google_ads'].message_type = google_dot_protobuf_dot_wrappers__pb2._BOOLVALUE -_AD.fields_by_name['device_preference'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_device__pb2._DEVICEENUM_DEVICE -_AD.fields_by_name['url_collections'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_url__collection__pb2._URLCOLLECTION -_AD.fields_by_name['name'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_AD.fields_by_name['system_managed_resource_source'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_system__managed__entity__source__pb2._SYSTEMMANAGEDRESOURCESOURCEENUM_SYSTEMMANAGEDRESOURCESOURCE -_AD.fields_by_name['text_ad'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_ad__type__infos__pb2._TEXTADINFO -_AD.fields_by_name['expanded_text_ad'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_ad__type__infos__pb2._EXPANDEDTEXTADINFO -_AD.fields_by_name['call_only_ad'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_ad__type__infos__pb2._CALLONLYADINFO -_AD.fields_by_name['expanded_dynamic_search_ad'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_ad__type__infos__pb2._EXPANDEDDYNAMICSEARCHADINFO -_AD.fields_by_name['hotel_ad'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_ad__type__infos__pb2._HOTELADINFO -_AD.fields_by_name['shopping_smart_ad'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_ad__type__infos__pb2._SHOPPINGSMARTADINFO -_AD.fields_by_name['shopping_product_ad'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_ad__type__infos__pb2._SHOPPINGPRODUCTADINFO -_AD.fields_by_name['gmail_ad'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_ad__type__infos__pb2._GMAILADINFO -_AD.fields_by_name['image_ad'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_ad__type__infos__pb2._IMAGEADINFO -_AD.fields_by_name['video_ad'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_ad__type__infos__pb2._VIDEOADINFO -_AD.fields_by_name['responsive_search_ad'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_ad__type__infos__pb2._RESPONSIVESEARCHADINFO -_AD.fields_by_name['legacy_responsive_display_ad'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_ad__type__infos__pb2._LEGACYRESPONSIVEDISPLAYADINFO -_AD.fields_by_name['app_ad'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_ad__type__infos__pb2._APPADINFO -_AD.fields_by_name['legacy_app_install_ad'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_ad__type__infos__pb2._LEGACYAPPINSTALLADINFO -_AD.fields_by_name['responsive_display_ad'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_ad__type__infos__pb2._RESPONSIVEDISPLAYADINFO -_AD.fields_by_name['display_upload_ad'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_ad__type__infos__pb2._DISPLAYUPLOADADINFO -_AD.fields_by_name['app_engagement_ad'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_ad__type__infos__pb2._APPENGAGEMENTADINFO -_AD.fields_by_name['shopping_comparison_listing_ad'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_ad__type__infos__pb2._SHOPPINGCOMPARISONLISTINGADINFO -_AD.oneofs_by_name['ad_data'].fields.append( - _AD.fields_by_name['text_ad']) -_AD.fields_by_name['text_ad'].containing_oneof = _AD.oneofs_by_name['ad_data'] -_AD.oneofs_by_name['ad_data'].fields.append( - _AD.fields_by_name['expanded_text_ad']) -_AD.fields_by_name['expanded_text_ad'].containing_oneof = _AD.oneofs_by_name['ad_data'] -_AD.oneofs_by_name['ad_data'].fields.append( - _AD.fields_by_name['call_only_ad']) -_AD.fields_by_name['call_only_ad'].containing_oneof = _AD.oneofs_by_name['ad_data'] -_AD.oneofs_by_name['ad_data'].fields.append( - _AD.fields_by_name['expanded_dynamic_search_ad']) -_AD.fields_by_name['expanded_dynamic_search_ad'].containing_oneof = _AD.oneofs_by_name['ad_data'] -_AD.oneofs_by_name['ad_data'].fields.append( - _AD.fields_by_name['hotel_ad']) -_AD.fields_by_name['hotel_ad'].containing_oneof = _AD.oneofs_by_name['ad_data'] -_AD.oneofs_by_name['ad_data'].fields.append( - _AD.fields_by_name['shopping_smart_ad']) -_AD.fields_by_name['shopping_smart_ad'].containing_oneof = _AD.oneofs_by_name['ad_data'] -_AD.oneofs_by_name['ad_data'].fields.append( - _AD.fields_by_name['shopping_product_ad']) -_AD.fields_by_name['shopping_product_ad'].containing_oneof = _AD.oneofs_by_name['ad_data'] -_AD.oneofs_by_name['ad_data'].fields.append( - _AD.fields_by_name['gmail_ad']) -_AD.fields_by_name['gmail_ad'].containing_oneof = _AD.oneofs_by_name['ad_data'] -_AD.oneofs_by_name['ad_data'].fields.append( - _AD.fields_by_name['image_ad']) -_AD.fields_by_name['image_ad'].containing_oneof = _AD.oneofs_by_name['ad_data'] -_AD.oneofs_by_name['ad_data'].fields.append( - _AD.fields_by_name['video_ad']) -_AD.fields_by_name['video_ad'].containing_oneof = _AD.oneofs_by_name['ad_data'] -_AD.oneofs_by_name['ad_data'].fields.append( - _AD.fields_by_name['responsive_search_ad']) -_AD.fields_by_name['responsive_search_ad'].containing_oneof = _AD.oneofs_by_name['ad_data'] -_AD.oneofs_by_name['ad_data'].fields.append( - _AD.fields_by_name['legacy_responsive_display_ad']) -_AD.fields_by_name['legacy_responsive_display_ad'].containing_oneof = _AD.oneofs_by_name['ad_data'] -_AD.oneofs_by_name['ad_data'].fields.append( - _AD.fields_by_name['app_ad']) -_AD.fields_by_name['app_ad'].containing_oneof = _AD.oneofs_by_name['ad_data'] -_AD.oneofs_by_name['ad_data'].fields.append( - _AD.fields_by_name['legacy_app_install_ad']) -_AD.fields_by_name['legacy_app_install_ad'].containing_oneof = _AD.oneofs_by_name['ad_data'] -_AD.oneofs_by_name['ad_data'].fields.append( - _AD.fields_by_name['responsive_display_ad']) -_AD.fields_by_name['responsive_display_ad'].containing_oneof = _AD.oneofs_by_name['ad_data'] -_AD.oneofs_by_name['ad_data'].fields.append( - _AD.fields_by_name['display_upload_ad']) -_AD.fields_by_name['display_upload_ad'].containing_oneof = _AD.oneofs_by_name['ad_data'] -_AD.oneofs_by_name['ad_data'].fields.append( - _AD.fields_by_name['app_engagement_ad']) -_AD.fields_by_name['app_engagement_ad'].containing_oneof = _AD.oneofs_by_name['ad_data'] -_AD.oneofs_by_name['ad_data'].fields.append( - _AD.fields_by_name['shopping_comparison_listing_ad']) -_AD.fields_by_name['shopping_comparison_listing_ad'].containing_oneof = _AD.oneofs_by_name['ad_data'] -DESCRIPTOR.message_types_by_name['Ad'] = _AD -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -Ad = _reflection.GeneratedProtocolMessageType('Ad', (_message.Message,), dict( - DESCRIPTOR = _AD, - __module__ = 'google.ads.googleads_v1.proto.resources.ad_pb2' - , - __doc__ = """An ad. - - - Attributes: - id: - The ID of the ad. - final_urls: - The list of possible final URLs after all cross-domain - redirects for the ad. - final_app_urls: - A list of final app URLs that will be used on mobile if the - user has the specific app installed. - final_mobile_urls: - The list of possible final mobile URLs after all cross-domain - redirects for the ad. - tracking_url_template: - The URL template for constructing a tracking URL. - url_custom_parameters: - The list of mappings that can be used to substitute custom - parameter tags in a ``tracking_url_template``, ``final_urls``, - or ``mobile_final_urls``. - display_url: - The URL that appears in the ad description for some ad - formats. - type: - The type of ad. - added_by_google_ads: - Indicates if this ad was automatically added by Google Ads and - not by a user. For example, this could happen when ads are - automatically created as suggestions for new ads based on - knowledge of how existing ads are performing. - device_preference: - The device preference for the ad. You can only specify a - preference for mobile devices. When this preference is set the - ad will be preferred over other ads when being displayed on a - mobile device. The ad can still be displayed on other device - types, e.g. if no other ads are available. If unspecified (no - device preference), all devices are targeted. This is only - supported by some ad types. - url_collections: - Additional URLs for the ad that are tagged with a unique - identifier that can be referenced from other fields in the ad. - name: - The name of the ad. This is only used to be able to identify - the ad. It does not need to be unique and does not affect the - served ad. - system_managed_resource_source: - If this ad is system managed, then this field will indicate - the source. This field is read-only. - ad_data: - Details pertinent to the ad type. Exactly one value must be - set. - text_ad: - Details pertaining to a text ad. - expanded_text_ad: - Details pertaining to an expanded text ad. - call_only_ad: - Details pertaining to a call-only ad. - expanded_dynamic_search_ad: - Details pertaining to an Expanded Dynamic Search Ad. This type - of ad has its headline, final URLs, and display URL auto- - generated at serving time according to domain name specific - information provided by ``dynamic_search_ads_setting`` linked - at the campaign level. - hotel_ad: - Details pertaining to a hotel ad. - shopping_smart_ad: - Details pertaining to a Smart Shopping ad. - shopping_product_ad: - Details pertaining to a Shopping product ad. - gmail_ad: - Details pertaining to a Gmail ad. - image_ad: - Details pertaining to an Image ad. - video_ad: - Details pertaining to a Video ad. - responsive_search_ad: - Details pertaining to a responsive search ad. - legacy_responsive_display_ad: - Details pertaining to a legacy responsive display ad. - app_ad: - Details pertaining to an app ad. - legacy_app_install_ad: - Details pertaining to a legacy app install ad. - responsive_display_ad: - Details pertaining to a responsive display ad. - display_upload_ad: - Details pertaining to a display upload ad. - app_engagement_ad: - Details pertaining to an app engagement ad. - shopping_comparison_listing_ad: - Details pertaining to a Shopping Comparison Listing ad. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.resources.Ad) - )) -_sym_db.RegisterMessage(Ad) - - -DESCRIPTOR._options = None -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/resources/ad_schedule_view_pb2.py b/google/ads/google_ads/v1/proto/resources/ad_schedule_view_pb2.py deleted file mode 100644 index 58e91ffdd..000000000 --- a/google/ads/google_ads/v1/proto/resources/ad_schedule_view_pb2.py +++ /dev/null @@ -1,84 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/resources/ad_schedule_view.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/resources/ad_schedule_view.proto', - package='google.ads.googleads.v1.resources', - syntax='proto3', - serialized_options=_b('\n%com.google.ads.googleads.v1.resourcesB\023AdScheduleViewProtoP\001ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources\242\002\003GAA\252\002!Google.Ads.GoogleAds.V1.Resources\312\002!Google\\Ads\\GoogleAds\\V1\\Resources\352\002%Google::Ads::GoogleAds::V1::Resources'), - serialized_pb=_b('\n>google/ads/googleads_v1/proto/resources/ad_schedule_view.proto\x12!google.ads.googleads.v1.resources\x1a\x1cgoogle/api/annotations.proto\"\'\n\x0e\x41\x64ScheduleView\x12\x15\n\rresource_name\x18\x01 \x01(\tB\x80\x02\n%com.google.ads.googleads.v1.resourcesB\x13\x41\x64ScheduleViewProtoP\x01ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V1.Resources\xca\x02!Google\\Ads\\GoogleAds\\V1\\Resources\xea\x02%Google::Ads::GoogleAds::V1::Resourcesb\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - - -_ADSCHEDULEVIEW = _descriptor.Descriptor( - name='AdScheduleView', - full_name='google.ads.googleads.v1.resources.AdScheduleView', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.resources.AdScheduleView.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=131, - serialized_end=170, -) - -DESCRIPTOR.message_types_by_name['AdScheduleView'] = _ADSCHEDULEVIEW -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -AdScheduleView = _reflection.GeneratedProtocolMessageType('AdScheduleView', (_message.Message,), dict( - DESCRIPTOR = _ADSCHEDULEVIEW, - __module__ = 'google.ads.googleads_v1.proto.resources.ad_schedule_view_pb2' - , - __doc__ = """An ad schedule view summarizes the performance of campaigns by - AdSchedule criteria. - - - Attributes: - resource_name: - The resource name of the ad schedule view. AdSchedule view - resource names have the form: ``customers/{customer_id}/adSch - eduleViews/{campaign_id}~{criterion_id}`` - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.resources.AdScheduleView) - )) -_sym_db.RegisterMessage(AdScheduleView) - - -DESCRIPTOR._options = None -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/resources/age_range_view_pb2.py b/google/ads/google_ads/v1/proto/resources/age_range_view_pb2.py deleted file mode 100644 index aa65a8d54..000000000 --- a/google/ads/google_ads/v1/proto/resources/age_range_view_pb2.py +++ /dev/null @@ -1,83 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/resources/age_range_view.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/resources/age_range_view.proto', - package='google.ads.googleads.v1.resources', - syntax='proto3', - serialized_options=_b('\n%com.google.ads.googleads.v1.resourcesB\021AgeRangeViewProtoP\001ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources\242\002\003GAA\252\002!Google.Ads.GoogleAds.V1.Resources\312\002!Google\\Ads\\GoogleAds\\V1\\Resources\352\002%Google::Ads::GoogleAds::V1::Resources'), - serialized_pb=_b('\ngoogle/ads/googleads_v1/proto/resources/bidding_strategy.proto\x12!google.ads.googleads.v1.resources\x1a\x32google/ads/googleads_v1/proto/common/bidding.proto\x1a\x41google/ads/googleads_v1/proto/enums/bidding_strategy_status.proto\x1a?google/ads/googleads_v1/proto/enums/bidding_strategy_type.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1cgoogle/api/annotations.proto\"\xc1\x07\n\x0f\x42iddingStrategy\x12\x15\n\rresource_name\x18\x01 \x01(\t\x12\'\n\x02id\x18\x03 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12*\n\x04name\x18\x04 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12^\n\x06status\x18\x0f \x01(\x0e\x32N.google.ads.googleads.v1.enums.BiddingStrategyStatusEnum.BiddingStrategyStatus\x12X\n\x04type\x18\x05 \x01(\x0e\x32J.google.ads.googleads.v1.enums.BiddingStrategyTypeEnum.BiddingStrategyType\x12\x33\n\x0e\x63\x61mpaign_count\x18\r \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12?\n\x1anon_removed_campaign_count\x18\x0e \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x43\n\x0c\x65nhanced_cpc\x18\x07 \x01(\x0b\x32+.google.ads.googleads.v1.common.EnhancedCpcH\x00\x12L\n\x11page_one_promoted\x18\x08 \x01(\x0b\x32/.google.ads.googleads.v1.common.PageOnePromotedH\x00\x12?\n\ntarget_cpa\x18\t \x01(\x0b\x32).google.ads.googleads.v1.common.TargetCpaH\x00\x12X\n\x17target_impression_share\x18\x30 \x01(\x0b\x32\x35.google.ads.googleads.v1.common.TargetImpressionShareH\x00\x12R\n\x14target_outrank_share\x18\n \x01(\x0b\x32\x32.google.ads.googleads.v1.common.TargetOutrankShareH\x00\x12\x41\n\x0btarget_roas\x18\x0b \x01(\x0b\x32*.google.ads.googleads.v1.common.TargetRoasH\x00\x12\x43\n\x0ctarget_spend\x18\x0c \x01(\x0b\x32+.google.ads.googleads.v1.common.TargetSpendH\x00\x42\x08\n\x06schemeB\x81\x02\n%com.google.ads.googleads.v1.resourcesB\x14\x42iddingStrategyProtoP\x01ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V1.Resources\xca\x02!Google\\Ads\\GoogleAds\\V1\\Resources\xea\x02%Google::Ads::GoogleAds::V1::Resourcesb\x06proto3') - , - dependencies=[google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_bidding__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_bidding__strategy__status__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_bidding__strategy__type__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - - -_BIDDINGSTRATEGY = _descriptor.Descriptor( - name='BiddingStrategy', - full_name='google.ads.googleads.v1.resources.BiddingStrategy', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.resources.BiddingStrategy.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='id', full_name='google.ads.googleads.v1.resources.BiddingStrategy.id', index=1, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='name', full_name='google.ads.googleads.v1.resources.BiddingStrategy.name', index=2, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='status', full_name='google.ads.googleads.v1.resources.BiddingStrategy.status', index=3, - number=15, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='type', full_name='google.ads.googleads.v1.resources.BiddingStrategy.type', index=4, - number=5, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='campaign_count', full_name='google.ads.googleads.v1.resources.BiddingStrategy.campaign_count', index=5, - number=13, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='non_removed_campaign_count', full_name='google.ads.googleads.v1.resources.BiddingStrategy.non_removed_campaign_count', index=6, - number=14, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='enhanced_cpc', full_name='google.ads.googleads.v1.resources.BiddingStrategy.enhanced_cpc', index=7, - number=7, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='page_one_promoted', full_name='google.ads.googleads.v1.resources.BiddingStrategy.page_one_promoted', index=8, - number=8, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='target_cpa', full_name='google.ads.googleads.v1.resources.BiddingStrategy.target_cpa', index=9, - number=9, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='target_impression_share', full_name='google.ads.googleads.v1.resources.BiddingStrategy.target_impression_share', index=10, - number=48, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='target_outrank_share', full_name='google.ads.googleads.v1.resources.BiddingStrategy.target_outrank_share', index=11, - number=10, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='target_roas', full_name='google.ads.googleads.v1.resources.BiddingStrategy.target_roas', index=12, - number=11, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='target_spend', full_name='google.ads.googleads.v1.resources.BiddingStrategy.target_spend', index=13, - number=12, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='scheme', full_name='google.ads.googleads.v1.resources.BiddingStrategy.scheme', - index=0, containing_type=None, fields=[]), - ], - serialized_start=348, - serialized_end=1309, -) - -_BIDDINGSTRATEGY.fields_by_name['id'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -_BIDDINGSTRATEGY.fields_by_name['name'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_BIDDINGSTRATEGY.fields_by_name['status'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_bidding__strategy__status__pb2._BIDDINGSTRATEGYSTATUSENUM_BIDDINGSTRATEGYSTATUS -_BIDDINGSTRATEGY.fields_by_name['type'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_bidding__strategy__type__pb2._BIDDINGSTRATEGYTYPEENUM_BIDDINGSTRATEGYTYPE -_BIDDINGSTRATEGY.fields_by_name['campaign_count'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -_BIDDINGSTRATEGY.fields_by_name['non_removed_campaign_count'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -_BIDDINGSTRATEGY.fields_by_name['enhanced_cpc'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_bidding__pb2._ENHANCEDCPC -_BIDDINGSTRATEGY.fields_by_name['page_one_promoted'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_bidding__pb2._PAGEONEPROMOTED -_BIDDINGSTRATEGY.fields_by_name['target_cpa'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_bidding__pb2._TARGETCPA -_BIDDINGSTRATEGY.fields_by_name['target_impression_share'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_bidding__pb2._TARGETIMPRESSIONSHARE -_BIDDINGSTRATEGY.fields_by_name['target_outrank_share'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_bidding__pb2._TARGETOUTRANKSHARE -_BIDDINGSTRATEGY.fields_by_name['target_roas'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_bidding__pb2._TARGETROAS -_BIDDINGSTRATEGY.fields_by_name['target_spend'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_bidding__pb2._TARGETSPEND -_BIDDINGSTRATEGY.oneofs_by_name['scheme'].fields.append( - _BIDDINGSTRATEGY.fields_by_name['enhanced_cpc']) -_BIDDINGSTRATEGY.fields_by_name['enhanced_cpc'].containing_oneof = _BIDDINGSTRATEGY.oneofs_by_name['scheme'] -_BIDDINGSTRATEGY.oneofs_by_name['scheme'].fields.append( - _BIDDINGSTRATEGY.fields_by_name['page_one_promoted']) -_BIDDINGSTRATEGY.fields_by_name['page_one_promoted'].containing_oneof = _BIDDINGSTRATEGY.oneofs_by_name['scheme'] -_BIDDINGSTRATEGY.oneofs_by_name['scheme'].fields.append( - _BIDDINGSTRATEGY.fields_by_name['target_cpa']) -_BIDDINGSTRATEGY.fields_by_name['target_cpa'].containing_oneof = _BIDDINGSTRATEGY.oneofs_by_name['scheme'] -_BIDDINGSTRATEGY.oneofs_by_name['scheme'].fields.append( - _BIDDINGSTRATEGY.fields_by_name['target_impression_share']) -_BIDDINGSTRATEGY.fields_by_name['target_impression_share'].containing_oneof = _BIDDINGSTRATEGY.oneofs_by_name['scheme'] -_BIDDINGSTRATEGY.oneofs_by_name['scheme'].fields.append( - _BIDDINGSTRATEGY.fields_by_name['target_outrank_share']) -_BIDDINGSTRATEGY.fields_by_name['target_outrank_share'].containing_oneof = _BIDDINGSTRATEGY.oneofs_by_name['scheme'] -_BIDDINGSTRATEGY.oneofs_by_name['scheme'].fields.append( - _BIDDINGSTRATEGY.fields_by_name['target_roas']) -_BIDDINGSTRATEGY.fields_by_name['target_roas'].containing_oneof = _BIDDINGSTRATEGY.oneofs_by_name['scheme'] -_BIDDINGSTRATEGY.oneofs_by_name['scheme'].fields.append( - _BIDDINGSTRATEGY.fields_by_name['target_spend']) -_BIDDINGSTRATEGY.fields_by_name['target_spend'].containing_oneof = _BIDDINGSTRATEGY.oneofs_by_name['scheme'] -DESCRIPTOR.message_types_by_name['BiddingStrategy'] = _BIDDINGSTRATEGY -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -BiddingStrategy = _reflection.GeneratedProtocolMessageType('BiddingStrategy', (_message.Message,), dict( - DESCRIPTOR = _BIDDINGSTRATEGY, - __module__ = 'google.ads.googleads_v1.proto.resources.bidding_strategy_pb2' - , - __doc__ = """A bidding strategy. - - - Attributes: - resource_name: - The resource name of the bidding strategy. Bidding strategy - resource names have the form: ``customers/{customer_id}/biddi - ngStrategies/{bidding_strategy_id}`` - id: - The ID of the bidding strategy. - name: - The name of the bidding strategy. All bidding strategies - within an account must be named distinctly. The length of - this string should be between 1 and 255, inclusive, in UTF-8 - bytes, (trimmed). - status: - The status of the bidding strategy. This field is read-only. - type: - The type of the bidding strategy. Create a bidding strategy by - setting the bidding scheme. This field is read-only. - campaign_count: - The number of campaigns attached to this bidding strategy. - This field is read-only. - non_removed_campaign_count: - The number of non-removed campaigns attached to this bidding - strategy. This field is read-only. - scheme: - The bidding scheme. Only one can be set. - enhanced_cpc: - A bidding strategy that raises bids for clicks that seem more - likely to lead to a conversion and lowers them for clicks - where they seem less likely. - page_one_promoted: - A bidding strategy that sets max CPC bids to target - impressions on page one or page one promoted slots on - google.com. - target_cpa: - A bidding strategy that sets bids to help get as many - conversions as possible at the target cost-per-acquisition - (CPA) you set. - target_impression_share: - A bidding strategy that automatically optimizes towards a - desired percentage of impressions. - target_outrank_share: - A bidding strategy that sets bids based on the target fraction - of auctions where the advertiser should outrank a specific - competitor. - target_roas: - A bidding strategy that helps you maximize revenue while - averaging a specific target Return On Ad Spend (ROAS). - target_spend: - A bid strategy that sets your bids to help get as many clicks - as possible within your budget. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.resources.BiddingStrategy) - )) -_sym_db.RegisterMessage(BiddingStrategy) - - -DESCRIPTOR._options = None -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/resources/billing_setup_pb2.py b/google/ads/google_ads/v1/proto/resources/billing_setup_pb2.py deleted file mode 100644 index 23ec77c49..000000000 --- a/google/ads/google_ads/v1/proto/resources/billing_setup_pb2.py +++ /dev/null @@ -1,305 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/resources/billing_setup.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.ads.google_ads.v1.proto.enums import billing_setup_status_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_billing__setup__status__pb2 -from google.ads.google_ads.v1.proto.enums import time_type_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_time__type__pb2 -from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/resources/billing_setup.proto', - package='google.ads.googleads.v1.resources', - syntax='proto3', - serialized_options=_b('\n%com.google.ads.googleads.v1.resourcesB\021BillingSetupProtoP\001ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources\242\002\003GAA\252\002!Google.Ads.GoogleAds.V1.Resources\312\002!Google\\Ads\\GoogleAds\\V1\\Resources\352\002%Google::Ads::GoogleAds::V1::Resources'), - serialized_pb=_b('\n;google/ads/googleads_v1/proto/resources/billing_setup.proto\x12!google.ads.googleads.v1.resources\x1a>google/ads/googleads_v1/proto/enums/billing_setup_status.proto\x1a\x33google/ads/googleads_v1/proto/enums/time_type.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1cgoogle/api/annotations.proto\"\xbb\x07\n\x0c\x42illingSetup\x12\x15\n\rresource_name\x18\x01 \x01(\t\x12\'\n\x02id\x18\x02 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12X\n\x06status\x18\x03 \x01(\x0e\x32H.google.ads.googleads.v1.enums.BillingSetupStatusEnum.BillingSetupStatus\x12\x36\n\x10payments_account\x18\x0b \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x62\n\x15payments_account_info\x18\x0c \x01(\x0b\x32\x43.google.ads.googleads.v1.resources.BillingSetup.PaymentsAccountInfo\x12\x37\n\x0fstart_date_time\x18\t \x01(\x0b\x32\x1c.google.protobuf.StringValueH\x00\x12O\n\x0fstart_time_type\x18\n \x01(\x0e\x32\x34.google.ads.googleads.v1.enums.TimeTypeEnum.TimeTypeH\x00\x12\x35\n\rend_date_time\x18\r \x01(\x0b\x32\x1c.google.protobuf.StringValueH\x01\x12M\n\rend_time_type\x18\x0e \x01(\x0e\x32\x34.google.ads.googleads.v1.enums.TimeTypeEnum.TimeTypeH\x01\x1a\xca\x02\n\x13PaymentsAccountInfo\x12\x39\n\x13payments_account_id\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12;\n\x15payments_account_name\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x39\n\x13payments_profile_id\x18\x03 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12;\n\x15payments_profile_name\x18\x04 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x43\n\x1dsecondary_payments_profile_id\x18\x05 \x01(\x0b\x32\x1c.google.protobuf.StringValueB\x0c\n\nstart_timeB\n\n\x08\x65nd_timeB\xfe\x01\n%com.google.ads.googleads.v1.resourcesB\x11\x42illingSetupProtoP\x01ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V1.Resources\xca\x02!Google\\Ads\\GoogleAds\\V1\\Resources\xea\x02%Google::Ads::GoogleAds::V1::Resourcesb\x06proto3') - , - dependencies=[google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_billing__setup__status__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_time__type__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - - -_BILLINGSETUP_PAYMENTSACCOUNTINFO = _descriptor.Descriptor( - name='PaymentsAccountInfo', - full_name='google.ads.googleads.v1.resources.BillingSetup.PaymentsAccountInfo', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='payments_account_id', full_name='google.ads.googleads.v1.resources.BillingSetup.PaymentsAccountInfo.payments_account_id', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='payments_account_name', full_name='google.ads.googleads.v1.resources.BillingSetup.PaymentsAccountInfo.payments_account_name', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='payments_profile_id', full_name='google.ads.googleads.v1.resources.BillingSetup.PaymentsAccountInfo.payments_profile_id', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='payments_profile_name', full_name='google.ads.googleads.v1.resources.BillingSetup.PaymentsAccountInfo.payments_profile_name', index=3, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='secondary_payments_profile_id', full_name='google.ads.googleads.v1.resources.BillingSetup.PaymentsAccountInfo.secondary_payments_profile_id', index=4, - number=5, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=877, - serialized_end=1207, -) - -_BILLINGSETUP = _descriptor.Descriptor( - name='BillingSetup', - full_name='google.ads.googleads.v1.resources.BillingSetup', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.resources.BillingSetup.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='id', full_name='google.ads.googleads.v1.resources.BillingSetup.id', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='status', full_name='google.ads.googleads.v1.resources.BillingSetup.status', index=2, - number=3, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='payments_account', full_name='google.ads.googleads.v1.resources.BillingSetup.payments_account', index=3, - number=11, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='payments_account_info', full_name='google.ads.googleads.v1.resources.BillingSetup.payments_account_info', index=4, - number=12, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='start_date_time', full_name='google.ads.googleads.v1.resources.BillingSetup.start_date_time', index=5, - number=9, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='start_time_type', full_name='google.ads.googleads.v1.resources.BillingSetup.start_time_type', index=6, - number=10, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='end_date_time', full_name='google.ads.googleads.v1.resources.BillingSetup.end_date_time', index=7, - number=13, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='end_time_type', full_name='google.ads.googleads.v1.resources.BillingSetup.end_time_type', index=8, - number=14, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[_BILLINGSETUP_PAYMENTSACCOUNTINFO, ], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='start_time', full_name='google.ads.googleads.v1.resources.BillingSetup.start_time', - index=0, containing_type=None, fields=[]), - _descriptor.OneofDescriptor( - name='end_time', full_name='google.ads.googleads.v1.resources.BillingSetup.end_time', - index=1, containing_type=None, fields=[]), - ], - serialized_start=278, - serialized_end=1233, -) - -_BILLINGSETUP_PAYMENTSACCOUNTINFO.fields_by_name['payments_account_id'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_BILLINGSETUP_PAYMENTSACCOUNTINFO.fields_by_name['payments_account_name'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_BILLINGSETUP_PAYMENTSACCOUNTINFO.fields_by_name['payments_profile_id'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_BILLINGSETUP_PAYMENTSACCOUNTINFO.fields_by_name['payments_profile_name'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_BILLINGSETUP_PAYMENTSACCOUNTINFO.fields_by_name['secondary_payments_profile_id'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_BILLINGSETUP_PAYMENTSACCOUNTINFO.containing_type = _BILLINGSETUP -_BILLINGSETUP.fields_by_name['id'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -_BILLINGSETUP.fields_by_name['status'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_billing__setup__status__pb2._BILLINGSETUPSTATUSENUM_BILLINGSETUPSTATUS -_BILLINGSETUP.fields_by_name['payments_account'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_BILLINGSETUP.fields_by_name['payments_account_info'].message_type = _BILLINGSETUP_PAYMENTSACCOUNTINFO -_BILLINGSETUP.fields_by_name['start_date_time'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_BILLINGSETUP.fields_by_name['start_time_type'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_time__type__pb2._TIMETYPEENUM_TIMETYPE -_BILLINGSETUP.fields_by_name['end_date_time'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_BILLINGSETUP.fields_by_name['end_time_type'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_time__type__pb2._TIMETYPEENUM_TIMETYPE -_BILLINGSETUP.oneofs_by_name['start_time'].fields.append( - _BILLINGSETUP.fields_by_name['start_date_time']) -_BILLINGSETUP.fields_by_name['start_date_time'].containing_oneof = _BILLINGSETUP.oneofs_by_name['start_time'] -_BILLINGSETUP.oneofs_by_name['start_time'].fields.append( - _BILLINGSETUP.fields_by_name['start_time_type']) -_BILLINGSETUP.fields_by_name['start_time_type'].containing_oneof = _BILLINGSETUP.oneofs_by_name['start_time'] -_BILLINGSETUP.oneofs_by_name['end_time'].fields.append( - _BILLINGSETUP.fields_by_name['end_date_time']) -_BILLINGSETUP.fields_by_name['end_date_time'].containing_oneof = _BILLINGSETUP.oneofs_by_name['end_time'] -_BILLINGSETUP.oneofs_by_name['end_time'].fields.append( - _BILLINGSETUP.fields_by_name['end_time_type']) -_BILLINGSETUP.fields_by_name['end_time_type'].containing_oneof = _BILLINGSETUP.oneofs_by_name['end_time'] -DESCRIPTOR.message_types_by_name['BillingSetup'] = _BILLINGSETUP -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -BillingSetup = _reflection.GeneratedProtocolMessageType('BillingSetup', (_message.Message,), dict( - - PaymentsAccountInfo = _reflection.GeneratedProtocolMessageType('PaymentsAccountInfo', (_message.Message,), dict( - DESCRIPTOR = _BILLINGSETUP_PAYMENTSACCOUNTINFO, - __module__ = 'google.ads.googleads_v1.proto.resources.billing_setup_pb2' - , - __doc__ = """Container of Payments account information for this billing. - - - Attributes: - payments_account_id: - A 16 digit id used to identify the Payments account associated - with the billing setup. This must be passed as a string with - dashes, e.g. "1234-5678-9012-3456". - payments_account_name: - The name of the Payments account associated with the billing - setup. This enables the user to specify a meaningful name for - a Payments account to aid in reconciling monthly invoices. - This name will be printed in the monthly invoices. - payments_profile_id: - A 12 digit id used to identify the Payments profile associated - with the billing setup. This must be passed in as a string - with dashes, e.g. "1234-5678-9012". - payments_profile_name: - The name of the Payments profile associated with the billing - setup. - secondary_payments_profile_id: - A secondary payments profile id present in uncommon - situations, e.g. when a sequential liability agreement has - been arranged. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.resources.BillingSetup.PaymentsAccountInfo) - )) - , - DESCRIPTOR = _BILLINGSETUP, - __module__ = 'google.ads.googleads_v1.proto.resources.billing_setup_pb2' - , - __doc__ = """A billing setup across Ads and Payments systems; an association between - a Payments account and an advertiser. A billing setup is specific to one - advertiser. - - - Attributes: - resource_name: - The resource name of the billing setup. BillingSetup resource - names have the form: - ``customers/{customer_id}/billingSetups/{billing_setup_id}`` - id: - The ID of the billing setup. - status: - The status of the billing setup. - payments_account: - The resource name of the Payments account associated with this - billing setup. Payments resource names have the form: ``custo - mers/{customer_id}/paymentsAccounts/{payments_account_id}`` - When setting up billing, this is used to signup with an - existing Payments account (and then payments\_account\_info - should not be set). When getting a billing setup, this and - payments\_account\_info will be populated. - payments_account_info: - The Payments account information associated with this billing - setup. When setting up billing, this is used to signup with a - new Payments account (and then payments\_account should not be - set). When getting a billing setup, this and payments\_account - will be populated. - start_time: - When creating a new billing setup, this is when the setup - should take effect. NOW is the only acceptable start time if - the customer doesn't have any approved setups. When fetching - an existing billing setup, this is the requested start time. - However, if the setup was approved (see status) after the - requested start time, then this is the approval time. - start_date_time: - The start date time in yyyy-MM-dd or yyyy-MM-dd HH:mm:ss - format. Only a future time is allowed. - start_time_type: - The start time as a type. Only NOW is allowed. - end_time: - When the billing setup ends / ended. This is either FOREVER or - the start time of the next scheduled billing setup. - end_date_time: - The end date time in yyyy-MM-dd or yyyy-MM-dd HH:mm:ss format. - end_time_type: - The end time as a type. The only possible value is FOREVER. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.resources.BillingSetup) - )) -_sym_db.RegisterMessage(BillingSetup) -_sym_db.RegisterMessage(BillingSetup.PaymentsAccountInfo) - - -DESCRIPTOR._options = None -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/resources/campaign_audience_view_pb2.py b/google/ads/google_ads/v1/proto/resources/campaign_audience_view_pb2.py deleted file mode 100644 index 09b4928a7..000000000 --- a/google/ads/google_ads/v1/proto/resources/campaign_audience_view_pb2.py +++ /dev/null @@ -1,87 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/resources/campaign_audience_view.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/resources/campaign_audience_view.proto', - package='google.ads.googleads.v1.resources', - syntax='proto3', - serialized_options=_b('\n%com.google.ads.googleads.v1.resourcesB\031CampaignAudienceViewProtoP\001ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources\242\002\003GAA\252\002!Google.Ads.GoogleAds.V1.Resources\312\002!Google\\Ads\\GoogleAds\\V1\\Resources\352\002%Google::Ads::GoogleAds::V1::Resources'), - serialized_pb=_b('\nDgoogle/ads/googleads_v1/proto/resources/campaign_audience_view.proto\x12!google.ads.googleads.v1.resources\x1a\x1cgoogle/api/annotations.proto\"-\n\x14\x43\x61mpaignAudienceView\x12\x15\n\rresource_name\x18\x01 \x01(\tB\x86\x02\n%com.google.ads.googleads.v1.resourcesB\x19\x43\x61mpaignAudienceViewProtoP\x01ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V1.Resources\xca\x02!Google\\Ads\\GoogleAds\\V1\\Resources\xea\x02%Google::Ads::GoogleAds::V1::Resourcesb\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - - -_CAMPAIGNAUDIENCEVIEW = _descriptor.Descriptor( - name='CampaignAudienceView', - full_name='google.ads.googleads.v1.resources.CampaignAudienceView', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.resources.CampaignAudienceView.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=137, - serialized_end=182, -) - -DESCRIPTOR.message_types_by_name['CampaignAudienceView'] = _CAMPAIGNAUDIENCEVIEW -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -CampaignAudienceView = _reflection.GeneratedProtocolMessageType('CampaignAudienceView', (_message.Message,), dict( - DESCRIPTOR = _CAMPAIGNAUDIENCEVIEW, - __module__ = 'google.ads.googleads_v1.proto.resources.campaign_audience_view_pb2' - , - __doc__ = """A campaign audience view. Includes performance data from interests and - remarketing lists for Display Network and YouTube Network ads, and - remarketing lists for search ads (RLSA), aggregated by campaign and - audience criterion. This view only includes audiences attached at the - campaign level. - - - Attributes: - resource_name: - The resource name of the campaign audience view. Campaign - audience view resource names have the form: ``customers/{cust - omer_id}/campaignAudienceViews/{campaign_id}~{criterion_id}`` - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.resources.CampaignAudienceView) - )) -_sym_db.RegisterMessage(CampaignAudienceView) - - -DESCRIPTOR._options = None -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/resources/campaign_bid_modifier_pb2.py b/google/ads/google_ads/v1/proto/resources/campaign_bid_modifier_pb2.py deleted file mode 100644 index 5b134292e..000000000 --- a/google/ads/google_ads/v1/proto/resources/campaign_bid_modifier_pb2.py +++ /dev/null @@ -1,135 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/resources/campaign_bid_modifier.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.ads.google_ads.v1.proto.common import criteria_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_criteria__pb2 -from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/resources/campaign_bid_modifier.proto', - package='google.ads.googleads.v1.resources', - syntax='proto3', - serialized_options=_b('\n%com.google.ads.googleads.v1.resourcesB\030CampaignBidModifierProtoP\001ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources\242\002\003GAA\252\002!Google.Ads.GoogleAds.V1.Resources\312\002!Google\\Ads\\GoogleAds\\V1\\Resources\352\002%Google::Ads::GoogleAds::V1::Resources'), - serialized_pb=_b('\nCgoogle/ads/googleads_v1/proto/resources/campaign_bid_modifier.proto\x12!google.ads.googleads.v1.resources\x1a\x33google/ads/googleads_v1/proto/common/criteria.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1cgoogle/api/annotations.proto\"\xa1\x02\n\x13\x43\x61mpaignBidModifier\x12\x15\n\rresource_name\x18\x01 \x01(\t\x12.\n\x08\x63\x61mpaign\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x31\n\x0c\x63riterion_id\x18\x03 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x32\n\x0c\x62id_modifier\x18\x04 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12O\n\x10interaction_type\x18\x05 \x01(\x0b\x32\x33.google.ads.googleads.v1.common.InteractionTypeInfoH\x00\x42\x0b\n\tcriterionB\x85\x02\n%com.google.ads.googleads.v1.resourcesB\x18\x43\x61mpaignBidModifierProtoP\x01ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V1.Resources\xca\x02!Google\\Ads\\GoogleAds\\V1\\Resources\xea\x02%Google::Ads::GoogleAds::V1::Resourcesb\x06proto3') - , - dependencies=[google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_criteria__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - - -_CAMPAIGNBIDMODIFIER = _descriptor.Descriptor( - name='CampaignBidModifier', - full_name='google.ads.googleads.v1.resources.CampaignBidModifier', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.resources.CampaignBidModifier.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='campaign', full_name='google.ads.googleads.v1.resources.CampaignBidModifier.campaign', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='criterion_id', full_name='google.ads.googleads.v1.resources.CampaignBidModifier.criterion_id', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='bid_modifier', full_name='google.ads.googleads.v1.resources.CampaignBidModifier.bid_modifier', index=3, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='interaction_type', full_name='google.ads.googleads.v1.resources.CampaignBidModifier.interaction_type', index=4, - number=5, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='criterion', full_name='google.ads.googleads.v1.resources.CampaignBidModifier.criterion', - index=0, containing_type=None, fields=[]), - ], - serialized_start=222, - serialized_end=511, -) - -_CAMPAIGNBIDMODIFIER.fields_by_name['campaign'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_CAMPAIGNBIDMODIFIER.fields_by_name['criterion_id'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -_CAMPAIGNBIDMODIFIER.fields_by_name['bid_modifier'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE -_CAMPAIGNBIDMODIFIER.fields_by_name['interaction_type'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_criteria__pb2._INTERACTIONTYPEINFO -_CAMPAIGNBIDMODIFIER.oneofs_by_name['criterion'].fields.append( - _CAMPAIGNBIDMODIFIER.fields_by_name['interaction_type']) -_CAMPAIGNBIDMODIFIER.fields_by_name['interaction_type'].containing_oneof = _CAMPAIGNBIDMODIFIER.oneofs_by_name['criterion'] -DESCRIPTOR.message_types_by_name['CampaignBidModifier'] = _CAMPAIGNBIDMODIFIER -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -CampaignBidModifier = _reflection.GeneratedProtocolMessageType('CampaignBidModifier', (_message.Message,), dict( - DESCRIPTOR = _CAMPAIGNBIDMODIFIER, - __module__ = 'google.ads.googleads_v1.proto.resources.campaign_bid_modifier_pb2' - , - __doc__ = """Represents a bid-modifiable only criterion at the campaign level. - - - Attributes: - resource_name: - The resource name of the campaign bid modifier. Campaign bid - modifier resource names have the form: ``customers/{customer_ - id}/campaignBidModifiers/{campaign_id}~{criterion_id}`` - campaign: - The campaign to which this criterion belongs. - criterion_id: - The ID of the criterion to bid modify. This field is ignored - for mutates. - bid_modifier: - The modifier for the bid when the criterion matches. - criterion: - The criterion of this campaign bid modifier. - interaction_type: - Criterion for interaction type. Only supported for search - campaigns. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.resources.CampaignBidModifier) - )) -_sym_db.RegisterMessage(CampaignBidModifier) - - -DESCRIPTOR._options = None -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/resources/campaign_budget_pb2.py b/google/ads/google_ads/v1/proto/resources/campaign_budget_pb2.py deleted file mode 100644 index f5c561a05..000000000 --- a/google/ads/google_ads/v1/proto/resources/campaign_budget_pb2.py +++ /dev/null @@ -1,286 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/resources/campaign_budget.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.ads.google_ads.v1.proto.enums import budget_delivery_method_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_budget__delivery__method__pb2 -from google.ads.google_ads.v1.proto.enums import budget_period_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_budget__period__pb2 -from google.ads.google_ads.v1.proto.enums import budget_status_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_budget__status__pb2 -from google.ads.google_ads.v1.proto.enums import budget_type_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_budget__type__pb2 -from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/resources/campaign_budget.proto', - package='google.ads.googleads.v1.resources', - syntax='proto3', - serialized_options=_b('\n%com.google.ads.googleads.v1.resourcesB\023CampaignBudgetProtoP\001ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources\242\002\003GAA\252\002!Google.Ads.GoogleAds.V1.Resources\312\002!Google\\Ads\\GoogleAds\\V1\\Resources\352\002%Google::Ads::GoogleAds::V1::Resources'), - serialized_pb=_b('\n=google/ads/googleads_v1/proto/resources/campaign_budget.proto\x12!google.ads.googleads.v1.resources\x1a@google/ads/googleads_v1/proto/enums/budget_delivery_method.proto\x1a\x37google/ads/googleads_v1/proto/enums/budget_period.proto\x1a\x37google/ads/googleads_v1/proto/enums/budget_status.proto\x1a\x35google/ads/googleads_v1/proto/enums/budget_type.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1cgoogle/api/annotations.proto\"\x8f\t\n\x0e\x43\x61mpaignBudget\x12\x15\n\rresource_name\x18\x01 \x01(\t\x12\'\n\x02id\x18\x03 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12*\n\x04name\x18\x04 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x32\n\ramount_micros\x18\x05 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x38\n\x13total_amount_micros\x18\n \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12L\n\x06status\x18\x06 \x01(\x0e\x32<.google.ads.googleads.v1.enums.BudgetStatusEnum.BudgetStatus\x12\x65\n\x0f\x64\x65livery_method\x18\x07 \x01(\x0e\x32L.google.ads.googleads.v1.enums.BudgetDeliveryMethodEnum.BudgetDeliveryMethod\x12\x35\n\x11\x65xplicitly_shared\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.BoolValue\x12\x34\n\x0freference_count\x18\t \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12:\n\x16has_recommended_budget\x18\x0b \x01(\x0b\x32\x1a.google.protobuf.BoolValue\x12\x45\n recommended_budget_amount_micros\x18\x0c \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12L\n\x06period\x18\r \x01(\x0e\x32<.google.ads.googleads.v1.enums.BudgetPeriodEnum.BudgetPeriod\x12V\n1recommended_budget_estimated_change_weekly_clicks\x18\x0e \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12[\n6recommended_budget_estimated_change_weekly_cost_micros\x18\x0f \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\\\n7recommended_budget_estimated_change_weekly_interactions\x18\x10 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12U\n0recommended_budget_estimated_change_weekly_views\x18\x11 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x46\n\x04type\x18\x12 \x01(\x0e\x32\x38.google.ads.googleads.v1.enums.BudgetTypeEnum.BudgetTypeB\x80\x02\n%com.google.ads.googleads.v1.resourcesB\x13\x43\x61mpaignBudgetProtoP\x01ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V1.Resources\xca\x02!Google\\Ads\\GoogleAds\\V1\\Resources\xea\x02%Google::Ads::GoogleAds::V1::Resourcesb\x06proto3') - , - dependencies=[google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_budget__delivery__method__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_budget__period__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_budget__status__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_budget__type__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - - -_CAMPAIGNBUDGET = _descriptor.Descriptor( - name='CampaignBudget', - full_name='google.ads.googleads.v1.resources.CampaignBudget', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.resources.CampaignBudget.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='id', full_name='google.ads.googleads.v1.resources.CampaignBudget.id', index=1, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='name', full_name='google.ads.googleads.v1.resources.CampaignBudget.name', index=2, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='amount_micros', full_name='google.ads.googleads.v1.resources.CampaignBudget.amount_micros', index=3, - number=5, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='total_amount_micros', full_name='google.ads.googleads.v1.resources.CampaignBudget.total_amount_micros', index=4, - number=10, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='status', full_name='google.ads.googleads.v1.resources.CampaignBudget.status', index=5, - number=6, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='delivery_method', full_name='google.ads.googleads.v1.resources.CampaignBudget.delivery_method', index=6, - number=7, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='explicitly_shared', full_name='google.ads.googleads.v1.resources.CampaignBudget.explicitly_shared', index=7, - number=8, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='reference_count', full_name='google.ads.googleads.v1.resources.CampaignBudget.reference_count', index=8, - number=9, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='has_recommended_budget', full_name='google.ads.googleads.v1.resources.CampaignBudget.has_recommended_budget', index=9, - number=11, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='recommended_budget_amount_micros', full_name='google.ads.googleads.v1.resources.CampaignBudget.recommended_budget_amount_micros', index=10, - number=12, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='period', full_name='google.ads.googleads.v1.resources.CampaignBudget.period', index=11, - number=13, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='recommended_budget_estimated_change_weekly_clicks', full_name='google.ads.googleads.v1.resources.CampaignBudget.recommended_budget_estimated_change_weekly_clicks', index=12, - number=14, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='recommended_budget_estimated_change_weekly_cost_micros', full_name='google.ads.googleads.v1.resources.CampaignBudget.recommended_budget_estimated_change_weekly_cost_micros', index=13, - number=15, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='recommended_budget_estimated_change_weekly_interactions', full_name='google.ads.googleads.v1.resources.CampaignBudget.recommended_budget_estimated_change_weekly_interactions', index=14, - number=16, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='recommended_budget_estimated_change_weekly_views', full_name='google.ads.googleads.v1.resources.CampaignBudget.recommended_budget_estimated_change_weekly_views', index=15, - number=17, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='type', full_name='google.ads.googleads.v1.resources.CampaignBudget.type', index=16, - number=18, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=398, - serialized_end=1565, -) - -_CAMPAIGNBUDGET.fields_by_name['id'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -_CAMPAIGNBUDGET.fields_by_name['name'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_CAMPAIGNBUDGET.fields_by_name['amount_micros'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -_CAMPAIGNBUDGET.fields_by_name['total_amount_micros'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -_CAMPAIGNBUDGET.fields_by_name['status'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_budget__status__pb2._BUDGETSTATUSENUM_BUDGETSTATUS -_CAMPAIGNBUDGET.fields_by_name['delivery_method'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_budget__delivery__method__pb2._BUDGETDELIVERYMETHODENUM_BUDGETDELIVERYMETHOD -_CAMPAIGNBUDGET.fields_by_name['explicitly_shared'].message_type = google_dot_protobuf_dot_wrappers__pb2._BOOLVALUE -_CAMPAIGNBUDGET.fields_by_name['reference_count'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -_CAMPAIGNBUDGET.fields_by_name['has_recommended_budget'].message_type = google_dot_protobuf_dot_wrappers__pb2._BOOLVALUE -_CAMPAIGNBUDGET.fields_by_name['recommended_budget_amount_micros'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -_CAMPAIGNBUDGET.fields_by_name['period'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_budget__period__pb2._BUDGETPERIODENUM_BUDGETPERIOD -_CAMPAIGNBUDGET.fields_by_name['recommended_budget_estimated_change_weekly_clicks'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -_CAMPAIGNBUDGET.fields_by_name['recommended_budget_estimated_change_weekly_cost_micros'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -_CAMPAIGNBUDGET.fields_by_name['recommended_budget_estimated_change_weekly_interactions'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -_CAMPAIGNBUDGET.fields_by_name['recommended_budget_estimated_change_weekly_views'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -_CAMPAIGNBUDGET.fields_by_name['type'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_budget__type__pb2._BUDGETTYPEENUM_BUDGETTYPE -DESCRIPTOR.message_types_by_name['CampaignBudget'] = _CAMPAIGNBUDGET -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -CampaignBudget = _reflection.GeneratedProtocolMessageType('CampaignBudget', (_message.Message,), dict( - DESCRIPTOR = _CAMPAIGNBUDGET, - __module__ = 'google.ads.googleads_v1.proto.resources.campaign_budget_pb2' - , - __doc__ = """A campaign budget. - - - Attributes: - resource_name: - The resource name of the campaign budget. Campaign budget - resource names have the form: - ``customers/{customer_id}/campaignBudgets/{budget_id}`` - id: - The ID of the campaign budget. A campaign budget is created - using the CampaignBudgetService create operation and is - assigned a budget ID. A budget ID can be shared across - different campaigns; the system will then allocate the - campaign budget among different campaigns to get optimum - results. - name: - The name of the campaign budget. When creating a campaign - budget through CampaignBudgetService, every explicitly shared - campaign budget must have a non-null, non-empty name. Campaign - budgets that are not explicitly shared derive their name from - the attached campaign's name. The length of this string must - be between 1 and 255, inclusive, in UTF-8 bytes, (trimmed). - amount_micros: - The amount of the budget, in the local currency for the - account. Amount is specified in micros, where one million is - equivalent to one currency unit. Monthly spend is capped at - 30.4 times this amount. - total_amount_micros: - The lifetime amount of the budget, in the local currency for - the account. Amount is specified in micros, where one million - is equivalent to one currency unit. - status: - The status of this campaign budget. This field is read-only. - delivery_method: - The delivery method that determines the rate at which the - campaign budget is spent. Defaults to STANDARD if unspecified - in a create operation. - explicitly_shared: - Specifies whether the budget is explicitly shared. Defaults to - true if unspecified in a create operation. If true, the - budget was created with the purpose of sharing across one or - more campaigns. If false, the budget was created with the - intention of only being used with a single campaign. The - budget's name and status will stay in sync with the campaign's - name and status. Attempting to share the budget with a second - campaign will result in an error. A non-shared budget can - become an explicitly shared. The same operation must also - assign the budget a name. A shared campaign budget can never - become non-shared. - reference_count: - The number of campaigns actively using the budget. This field - is read-only. - has_recommended_budget: - Indicates whether there is a recommended budget for this - campaign budget. This field is read-only. - recommended_budget_amount_micros: - The recommended budget amount. If no recommendation is - available, this will be set to the budget amount. Amount is - specified in micros, where one million is equivalent to one - currency unit. This field is read-only. - period: - Period over which to spend the budget. Defaults to DAILY if - not specified. - recommended_budget_estimated_change_weekly_clicks: - The estimated change in weekly clicks if the recommended - budget is applied. This field is read-only. - recommended_budget_estimated_change_weekly_cost_micros: - The estimated change in weekly cost in micros if the - recommended budget is applied. One million is equivalent to - one currency unit. This field is read-only. - recommended_budget_estimated_change_weekly_interactions: - The estimated change in weekly interactions if the recommended - budget is applied. This field is read-only. - recommended_budget_estimated_change_weekly_views: - The estimated change in weekly views if the recommended budget - is applied. This field is read-only. - type: - The type of the campaign budget. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.resources.CampaignBudget) - )) -_sym_db.RegisterMessage(CampaignBudget) - - -DESCRIPTOR._options = None -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/resources/campaign_criterion_pb2.py b/google/ads/google_ads/v1/proto/resources/campaign_criterion_pb2.py deleted file mode 100644 index 55012cbd0..000000000 --- a/google/ads/google_ads/v1/proto/resources/campaign_criterion_pb2.py +++ /dev/null @@ -1,494 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/resources/campaign_criterion.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.ads.google_ads.v1.proto.common import criteria_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_criteria__pb2 -from google.ads.google_ads.v1.proto.enums import campaign_criterion_status_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_campaign__criterion__status__pb2 -from google.ads.google_ads.v1.proto.enums import criterion_type_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_criterion__type__pb2 -from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/resources/campaign_criterion.proto', - package='google.ads.googleads.v1.resources', - syntax='proto3', - serialized_options=_b('\n%com.google.ads.googleads.v1.resourcesB\026CampaignCriterionProtoP\001ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources\242\002\003GAA\252\002!Google.Ads.GoogleAds.V1.Resources\312\002!Google\\Ads\\GoogleAds\\V1\\Resources\352\002%Google::Ads::GoogleAds::V1::Resources'), - serialized_pb=_b('\n@google/ads/googleads_v1/proto/resources/campaign_criterion.proto\x12!google.ads.googleads.v1.resources\x1a\x33google/ads/googleads_v1/proto/common/criteria.proto\x1a\x43google/ads/googleads_v1/proto/enums/campaign_criterion_status.proto\x1a\x38google/ads/googleads_v1/proto/enums/criterion_type.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1cgoogle/api/annotations.proto\"\xf5\x11\n\x11\x43\x61mpaignCriterion\x12\x15\n\rresource_name\x18\x01 \x01(\t\x12.\n\x08\x63\x61mpaign\x18\x04 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x31\n\x0c\x63riterion_id\x18\x05 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x31\n\x0c\x62id_modifier\x18\x0e \x01(\x0b\x32\x1b.google.protobuf.FloatValue\x12,\n\x08negative\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.BoolValue\x12L\n\x04type\x18\x06 \x01(\x0e\x32>.google.ads.googleads.v1.enums.CriterionTypeEnum.CriterionType\x12\x62\n\x06status\x18# \x01(\x0e\x32R.google.ads.googleads.v1.enums.CampaignCriterionStatusEnum.CampaignCriterionStatus\x12>\n\x07keyword\x18\x08 \x01(\x0b\x32+.google.ads.googleads.v1.common.KeywordInfoH\x00\x12\x42\n\tplacement\x18\t \x01(\x0b\x32-.google.ads.googleads.v1.common.PlacementInfoH\x00\x12T\n\x13mobile_app_category\x18\n \x01(\x0b\x32\x35.google.ads.googleads.v1.common.MobileAppCategoryInfoH\x00\x12S\n\x12mobile_application\x18\x0b \x01(\x0b\x32\x35.google.ads.googleads.v1.common.MobileApplicationInfoH\x00\x12@\n\x08location\x18\x0c \x01(\x0b\x32,.google.ads.googleads.v1.common.LocationInfoH\x00\x12<\n\x06\x64\x65vice\x18\r \x01(\x0b\x32*.google.ads.googleads.v1.common.DeviceInfoH\x00\x12\x45\n\x0b\x61\x64_schedule\x18\x0f \x01(\x0b\x32..google.ads.googleads.v1.common.AdScheduleInfoH\x00\x12\x41\n\tage_range\x18\x10 \x01(\x0b\x32,.google.ads.googleads.v1.common.AgeRangeInfoH\x00\x12<\n\x06gender\x18\x11 \x01(\x0b\x32*.google.ads.googleads.v1.common.GenderInfoH\x00\x12G\n\x0cincome_range\x18\x12 \x01(\x0b\x32/.google.ads.googleads.v1.common.IncomeRangeInfoH\x00\x12M\n\x0fparental_status\x18\x13 \x01(\x0b\x32\x32.google.ads.googleads.v1.common.ParentalStatusInfoH\x00\x12\x41\n\tuser_list\x18\x16 \x01(\x0b\x32,.google.ads.googleads.v1.common.UserListInfoH\x00\x12I\n\ryoutube_video\x18\x14 \x01(\x0b\x32\x30.google.ads.googleads.v1.common.YouTubeVideoInfoH\x00\x12M\n\x0fyoutube_channel\x18\x15 \x01(\x0b\x32\x32.google.ads.googleads.v1.common.YouTubeChannelInfoH\x00\x12\x42\n\tproximity\x18\x17 \x01(\x0b\x32-.google.ads.googleads.v1.common.ProximityInfoH\x00\x12:\n\x05topic\x18\x18 \x01(\x0b\x32).google.ads.googleads.v1.common.TopicInfoH\x00\x12I\n\rlisting_scope\x18\x19 \x01(\x0b\x32\x30.google.ads.googleads.v1.common.ListingScopeInfoH\x00\x12@\n\x08language\x18\x1a \x01(\x0b\x32,.google.ads.googleads.v1.common.LanguageInfoH\x00\x12?\n\x08ip_block\x18\x1b \x01(\x0b\x32+.google.ads.googleads.v1.common.IpBlockInfoH\x00\x12I\n\rcontent_label\x18\x1c \x01(\x0b\x32\x30.google.ads.googleads.v1.common.ContentLabelInfoH\x00\x12>\n\x07\x63\x61rrier\x18\x1d \x01(\x0b\x32+.google.ads.googleads.v1.common.CarrierInfoH\x00\x12I\n\ruser_interest\x18\x1e \x01(\x0b\x32\x30.google.ads.googleads.v1.common.UserInterestInfoH\x00\x12>\n\x07webpage\x18\x1f \x01(\x0b\x32+.google.ads.googleads.v1.common.WebpageInfoH\x00\x12^\n\x18operating_system_version\x18 \x01(\x0b\x32:.google.ads.googleads.v1.common.OperatingSystemVersionInfoH\x00\x12I\n\rmobile_device\x18! \x01(\x0b\x32\x30.google.ads.googleads.v1.common.MobileDeviceInfoH\x00\x12K\n\x0elocation_group\x18\" \x01(\x0b\x32\x31.google.ads.googleads.v1.common.LocationGroupInfoH\x00\x42\x0b\n\tcriterionB\x83\x02\n%com.google.ads.googleads.v1.resourcesB\x16\x43\x61mpaignCriterionProtoP\x01ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V1.Resources\xca\x02!Google\\Ads\\GoogleAds\\V1\\Resources\xea\x02%Google::Ads::GoogleAds::V1::Resourcesb\x06proto3') - , - dependencies=[google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_criteria__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_campaign__criterion__status__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_criterion__type__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - - -_CAMPAIGNCRITERION = _descriptor.Descriptor( - name='CampaignCriterion', - full_name='google.ads.googleads.v1.resources.CampaignCriterion', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.resources.CampaignCriterion.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='campaign', full_name='google.ads.googleads.v1.resources.CampaignCriterion.campaign', index=1, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='criterion_id', full_name='google.ads.googleads.v1.resources.CampaignCriterion.criterion_id', index=2, - number=5, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='bid_modifier', full_name='google.ads.googleads.v1.resources.CampaignCriterion.bid_modifier', index=3, - number=14, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='negative', full_name='google.ads.googleads.v1.resources.CampaignCriterion.negative', index=4, - number=7, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='type', full_name='google.ads.googleads.v1.resources.CampaignCriterion.type', index=5, - number=6, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='status', full_name='google.ads.googleads.v1.resources.CampaignCriterion.status', index=6, - number=35, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='keyword', full_name='google.ads.googleads.v1.resources.CampaignCriterion.keyword', index=7, - number=8, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='placement', full_name='google.ads.googleads.v1.resources.CampaignCriterion.placement', index=8, - number=9, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='mobile_app_category', full_name='google.ads.googleads.v1.resources.CampaignCriterion.mobile_app_category', index=9, - number=10, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='mobile_application', full_name='google.ads.googleads.v1.resources.CampaignCriterion.mobile_application', index=10, - number=11, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='location', full_name='google.ads.googleads.v1.resources.CampaignCriterion.location', index=11, - number=12, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='device', full_name='google.ads.googleads.v1.resources.CampaignCriterion.device', index=12, - number=13, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='ad_schedule', full_name='google.ads.googleads.v1.resources.CampaignCriterion.ad_schedule', index=13, - number=15, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='age_range', full_name='google.ads.googleads.v1.resources.CampaignCriterion.age_range', index=14, - number=16, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='gender', full_name='google.ads.googleads.v1.resources.CampaignCriterion.gender', index=15, - number=17, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='income_range', full_name='google.ads.googleads.v1.resources.CampaignCriterion.income_range', index=16, - number=18, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='parental_status', full_name='google.ads.googleads.v1.resources.CampaignCriterion.parental_status', index=17, - number=19, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='user_list', full_name='google.ads.googleads.v1.resources.CampaignCriterion.user_list', index=18, - number=22, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='youtube_video', full_name='google.ads.googleads.v1.resources.CampaignCriterion.youtube_video', index=19, - number=20, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='youtube_channel', full_name='google.ads.googleads.v1.resources.CampaignCriterion.youtube_channel', index=20, - number=21, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='proximity', full_name='google.ads.googleads.v1.resources.CampaignCriterion.proximity', index=21, - number=23, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='topic', full_name='google.ads.googleads.v1.resources.CampaignCriterion.topic', index=22, - number=24, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='listing_scope', full_name='google.ads.googleads.v1.resources.CampaignCriterion.listing_scope', index=23, - number=25, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='language', full_name='google.ads.googleads.v1.resources.CampaignCriterion.language', index=24, - number=26, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='ip_block', full_name='google.ads.googleads.v1.resources.CampaignCriterion.ip_block', index=25, - number=27, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='content_label', full_name='google.ads.googleads.v1.resources.CampaignCriterion.content_label', index=26, - number=28, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='carrier', full_name='google.ads.googleads.v1.resources.CampaignCriterion.carrier', index=27, - number=29, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='user_interest', full_name='google.ads.googleads.v1.resources.CampaignCriterion.user_interest', index=28, - number=30, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='webpage', full_name='google.ads.googleads.v1.resources.CampaignCriterion.webpage', index=29, - number=31, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='operating_system_version', full_name='google.ads.googleads.v1.resources.CampaignCriterion.operating_system_version', index=30, - number=32, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='mobile_device', full_name='google.ads.googleads.v1.resources.CampaignCriterion.mobile_device', index=31, - number=33, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='location_group', full_name='google.ads.googleads.v1.resources.CampaignCriterion.location_group', index=32, - number=34, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='criterion', full_name='google.ads.googleads.v1.resources.CampaignCriterion.criterion', - index=0, containing_type=None, fields=[]), - ], - serialized_start=346, - serialized_end=2639, -) - -_CAMPAIGNCRITERION.fields_by_name['campaign'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_CAMPAIGNCRITERION.fields_by_name['criterion_id'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -_CAMPAIGNCRITERION.fields_by_name['bid_modifier'].message_type = google_dot_protobuf_dot_wrappers__pb2._FLOATVALUE -_CAMPAIGNCRITERION.fields_by_name['negative'].message_type = google_dot_protobuf_dot_wrappers__pb2._BOOLVALUE -_CAMPAIGNCRITERION.fields_by_name['type'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_criterion__type__pb2._CRITERIONTYPEENUM_CRITERIONTYPE -_CAMPAIGNCRITERION.fields_by_name['status'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_campaign__criterion__status__pb2._CAMPAIGNCRITERIONSTATUSENUM_CAMPAIGNCRITERIONSTATUS -_CAMPAIGNCRITERION.fields_by_name['keyword'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_criteria__pb2._KEYWORDINFO -_CAMPAIGNCRITERION.fields_by_name['placement'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_criteria__pb2._PLACEMENTINFO -_CAMPAIGNCRITERION.fields_by_name['mobile_app_category'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_criteria__pb2._MOBILEAPPCATEGORYINFO -_CAMPAIGNCRITERION.fields_by_name['mobile_application'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_criteria__pb2._MOBILEAPPLICATIONINFO -_CAMPAIGNCRITERION.fields_by_name['location'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_criteria__pb2._LOCATIONINFO -_CAMPAIGNCRITERION.fields_by_name['device'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_criteria__pb2._DEVICEINFO -_CAMPAIGNCRITERION.fields_by_name['ad_schedule'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_criteria__pb2._ADSCHEDULEINFO -_CAMPAIGNCRITERION.fields_by_name['age_range'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_criteria__pb2._AGERANGEINFO -_CAMPAIGNCRITERION.fields_by_name['gender'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_criteria__pb2._GENDERINFO -_CAMPAIGNCRITERION.fields_by_name['income_range'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_criteria__pb2._INCOMERANGEINFO -_CAMPAIGNCRITERION.fields_by_name['parental_status'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_criteria__pb2._PARENTALSTATUSINFO -_CAMPAIGNCRITERION.fields_by_name['user_list'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_criteria__pb2._USERLISTINFO -_CAMPAIGNCRITERION.fields_by_name['youtube_video'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_criteria__pb2._YOUTUBEVIDEOINFO -_CAMPAIGNCRITERION.fields_by_name['youtube_channel'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_criteria__pb2._YOUTUBECHANNELINFO -_CAMPAIGNCRITERION.fields_by_name['proximity'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_criteria__pb2._PROXIMITYINFO -_CAMPAIGNCRITERION.fields_by_name['topic'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_criteria__pb2._TOPICINFO -_CAMPAIGNCRITERION.fields_by_name['listing_scope'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_criteria__pb2._LISTINGSCOPEINFO -_CAMPAIGNCRITERION.fields_by_name['language'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_criteria__pb2._LANGUAGEINFO -_CAMPAIGNCRITERION.fields_by_name['ip_block'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_criteria__pb2._IPBLOCKINFO -_CAMPAIGNCRITERION.fields_by_name['content_label'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_criteria__pb2._CONTENTLABELINFO -_CAMPAIGNCRITERION.fields_by_name['carrier'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_criteria__pb2._CARRIERINFO -_CAMPAIGNCRITERION.fields_by_name['user_interest'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_criteria__pb2._USERINTERESTINFO -_CAMPAIGNCRITERION.fields_by_name['webpage'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_criteria__pb2._WEBPAGEINFO -_CAMPAIGNCRITERION.fields_by_name['operating_system_version'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_criteria__pb2._OPERATINGSYSTEMVERSIONINFO -_CAMPAIGNCRITERION.fields_by_name['mobile_device'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_criteria__pb2._MOBILEDEVICEINFO -_CAMPAIGNCRITERION.fields_by_name['location_group'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_criteria__pb2._LOCATIONGROUPINFO -_CAMPAIGNCRITERION.oneofs_by_name['criterion'].fields.append( - _CAMPAIGNCRITERION.fields_by_name['keyword']) -_CAMPAIGNCRITERION.fields_by_name['keyword'].containing_oneof = _CAMPAIGNCRITERION.oneofs_by_name['criterion'] -_CAMPAIGNCRITERION.oneofs_by_name['criterion'].fields.append( - _CAMPAIGNCRITERION.fields_by_name['placement']) -_CAMPAIGNCRITERION.fields_by_name['placement'].containing_oneof = _CAMPAIGNCRITERION.oneofs_by_name['criterion'] -_CAMPAIGNCRITERION.oneofs_by_name['criterion'].fields.append( - _CAMPAIGNCRITERION.fields_by_name['mobile_app_category']) -_CAMPAIGNCRITERION.fields_by_name['mobile_app_category'].containing_oneof = _CAMPAIGNCRITERION.oneofs_by_name['criterion'] -_CAMPAIGNCRITERION.oneofs_by_name['criterion'].fields.append( - _CAMPAIGNCRITERION.fields_by_name['mobile_application']) -_CAMPAIGNCRITERION.fields_by_name['mobile_application'].containing_oneof = _CAMPAIGNCRITERION.oneofs_by_name['criterion'] -_CAMPAIGNCRITERION.oneofs_by_name['criterion'].fields.append( - _CAMPAIGNCRITERION.fields_by_name['location']) -_CAMPAIGNCRITERION.fields_by_name['location'].containing_oneof = _CAMPAIGNCRITERION.oneofs_by_name['criterion'] -_CAMPAIGNCRITERION.oneofs_by_name['criterion'].fields.append( - _CAMPAIGNCRITERION.fields_by_name['device']) -_CAMPAIGNCRITERION.fields_by_name['device'].containing_oneof = _CAMPAIGNCRITERION.oneofs_by_name['criterion'] -_CAMPAIGNCRITERION.oneofs_by_name['criterion'].fields.append( - _CAMPAIGNCRITERION.fields_by_name['ad_schedule']) -_CAMPAIGNCRITERION.fields_by_name['ad_schedule'].containing_oneof = _CAMPAIGNCRITERION.oneofs_by_name['criterion'] -_CAMPAIGNCRITERION.oneofs_by_name['criterion'].fields.append( - _CAMPAIGNCRITERION.fields_by_name['age_range']) -_CAMPAIGNCRITERION.fields_by_name['age_range'].containing_oneof = _CAMPAIGNCRITERION.oneofs_by_name['criterion'] -_CAMPAIGNCRITERION.oneofs_by_name['criterion'].fields.append( - _CAMPAIGNCRITERION.fields_by_name['gender']) -_CAMPAIGNCRITERION.fields_by_name['gender'].containing_oneof = _CAMPAIGNCRITERION.oneofs_by_name['criterion'] -_CAMPAIGNCRITERION.oneofs_by_name['criterion'].fields.append( - _CAMPAIGNCRITERION.fields_by_name['income_range']) -_CAMPAIGNCRITERION.fields_by_name['income_range'].containing_oneof = _CAMPAIGNCRITERION.oneofs_by_name['criterion'] -_CAMPAIGNCRITERION.oneofs_by_name['criterion'].fields.append( - _CAMPAIGNCRITERION.fields_by_name['parental_status']) -_CAMPAIGNCRITERION.fields_by_name['parental_status'].containing_oneof = _CAMPAIGNCRITERION.oneofs_by_name['criterion'] -_CAMPAIGNCRITERION.oneofs_by_name['criterion'].fields.append( - _CAMPAIGNCRITERION.fields_by_name['user_list']) -_CAMPAIGNCRITERION.fields_by_name['user_list'].containing_oneof = _CAMPAIGNCRITERION.oneofs_by_name['criterion'] -_CAMPAIGNCRITERION.oneofs_by_name['criterion'].fields.append( - _CAMPAIGNCRITERION.fields_by_name['youtube_video']) -_CAMPAIGNCRITERION.fields_by_name['youtube_video'].containing_oneof = _CAMPAIGNCRITERION.oneofs_by_name['criterion'] -_CAMPAIGNCRITERION.oneofs_by_name['criterion'].fields.append( - _CAMPAIGNCRITERION.fields_by_name['youtube_channel']) -_CAMPAIGNCRITERION.fields_by_name['youtube_channel'].containing_oneof = _CAMPAIGNCRITERION.oneofs_by_name['criterion'] -_CAMPAIGNCRITERION.oneofs_by_name['criterion'].fields.append( - _CAMPAIGNCRITERION.fields_by_name['proximity']) -_CAMPAIGNCRITERION.fields_by_name['proximity'].containing_oneof = _CAMPAIGNCRITERION.oneofs_by_name['criterion'] -_CAMPAIGNCRITERION.oneofs_by_name['criterion'].fields.append( - _CAMPAIGNCRITERION.fields_by_name['topic']) -_CAMPAIGNCRITERION.fields_by_name['topic'].containing_oneof = _CAMPAIGNCRITERION.oneofs_by_name['criterion'] -_CAMPAIGNCRITERION.oneofs_by_name['criterion'].fields.append( - _CAMPAIGNCRITERION.fields_by_name['listing_scope']) -_CAMPAIGNCRITERION.fields_by_name['listing_scope'].containing_oneof = _CAMPAIGNCRITERION.oneofs_by_name['criterion'] -_CAMPAIGNCRITERION.oneofs_by_name['criterion'].fields.append( - _CAMPAIGNCRITERION.fields_by_name['language']) -_CAMPAIGNCRITERION.fields_by_name['language'].containing_oneof = _CAMPAIGNCRITERION.oneofs_by_name['criterion'] -_CAMPAIGNCRITERION.oneofs_by_name['criterion'].fields.append( - _CAMPAIGNCRITERION.fields_by_name['ip_block']) -_CAMPAIGNCRITERION.fields_by_name['ip_block'].containing_oneof = _CAMPAIGNCRITERION.oneofs_by_name['criterion'] -_CAMPAIGNCRITERION.oneofs_by_name['criterion'].fields.append( - _CAMPAIGNCRITERION.fields_by_name['content_label']) -_CAMPAIGNCRITERION.fields_by_name['content_label'].containing_oneof = _CAMPAIGNCRITERION.oneofs_by_name['criterion'] -_CAMPAIGNCRITERION.oneofs_by_name['criterion'].fields.append( - _CAMPAIGNCRITERION.fields_by_name['carrier']) -_CAMPAIGNCRITERION.fields_by_name['carrier'].containing_oneof = _CAMPAIGNCRITERION.oneofs_by_name['criterion'] -_CAMPAIGNCRITERION.oneofs_by_name['criterion'].fields.append( - _CAMPAIGNCRITERION.fields_by_name['user_interest']) -_CAMPAIGNCRITERION.fields_by_name['user_interest'].containing_oneof = _CAMPAIGNCRITERION.oneofs_by_name['criterion'] -_CAMPAIGNCRITERION.oneofs_by_name['criterion'].fields.append( - _CAMPAIGNCRITERION.fields_by_name['webpage']) -_CAMPAIGNCRITERION.fields_by_name['webpage'].containing_oneof = _CAMPAIGNCRITERION.oneofs_by_name['criterion'] -_CAMPAIGNCRITERION.oneofs_by_name['criterion'].fields.append( - _CAMPAIGNCRITERION.fields_by_name['operating_system_version']) -_CAMPAIGNCRITERION.fields_by_name['operating_system_version'].containing_oneof = _CAMPAIGNCRITERION.oneofs_by_name['criterion'] -_CAMPAIGNCRITERION.oneofs_by_name['criterion'].fields.append( - _CAMPAIGNCRITERION.fields_by_name['mobile_device']) -_CAMPAIGNCRITERION.fields_by_name['mobile_device'].containing_oneof = _CAMPAIGNCRITERION.oneofs_by_name['criterion'] -_CAMPAIGNCRITERION.oneofs_by_name['criterion'].fields.append( - _CAMPAIGNCRITERION.fields_by_name['location_group']) -_CAMPAIGNCRITERION.fields_by_name['location_group'].containing_oneof = _CAMPAIGNCRITERION.oneofs_by_name['criterion'] -DESCRIPTOR.message_types_by_name['CampaignCriterion'] = _CAMPAIGNCRITERION -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -CampaignCriterion = _reflection.GeneratedProtocolMessageType('CampaignCriterion', (_message.Message,), dict( - DESCRIPTOR = _CAMPAIGNCRITERION, - __module__ = 'google.ads.googleads_v1.proto.resources.campaign_criterion_pb2' - , - __doc__ = """A campaign criterion. - - - Attributes: - resource_name: - The resource name of the campaign criterion. Campaign - criterion resource names have the form: ``customers/{customer - _id}/campaignCriteria/{campaign_id}~{criterion_id}`` - campaign: - The campaign to which the criterion belongs. - criterion_id: - The ID of the criterion. This field is ignored during mutate. - bid_modifier: - The modifier for the bids when the criterion matches. The - modifier must be in the range: 0.1 - 10.0. Most targetable - criteria types support modifiers. Use 0 to opt out of a Device - type. - negative: - Whether to target (``false``) or exclude (``true``) the - criterion. - type: - The type of the criterion. - status: - The status of the criterion. - criterion: - The campaign criterion. Exactly one must be set. - keyword: - Keyword. - placement: - Placement. - mobile_app_category: - Mobile app category. - mobile_application: - Mobile application. - location: - Location. - device: - Device. - ad_schedule: - Ad Schedule. - age_range: - Age range. - gender: - Gender. - income_range: - Income range. - parental_status: - Parental status. - user_list: - User List. - youtube_video: - YouTube Video. - youtube_channel: - YouTube Channel. - proximity: - Proximity. - topic: - Topic. - listing_scope: - Listing scope. - language: - Language. - ip_block: - IpBlock. - content_label: - ContentLabel. - carrier: - Carrier. - user_interest: - User Interest. - webpage: - Webpage. - operating_system_version: - Operating system version. - mobile_device: - Mobile Device. - location_group: - Location Group - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.resources.CampaignCriterion) - )) -_sym_db.RegisterMessage(CampaignCriterion) - - -DESCRIPTOR._options = None -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/resources/campaign_criterion_simulation_pb2.py b/google/ads/google_ads/v1/proto/resources/campaign_criterion_simulation_pb2.py deleted file mode 100644 index 7bc3d8f1f..000000000 --- a/google/ads/google_ads/v1/proto/resources/campaign_criterion_simulation_pb2.py +++ /dev/null @@ -1,174 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/resources/campaign_criterion_simulation.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.ads.google_ads.v1.proto.common import simulation_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_simulation__pb2 -from google.ads.google_ads.v1.proto.enums import simulation_modification_method_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_simulation__modification__method__pb2 -from google.ads.google_ads.v1.proto.enums import simulation_type_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_simulation__type__pb2 -from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/resources/campaign_criterion_simulation.proto', - package='google.ads.googleads.v1.resources', - syntax='proto3', - serialized_options=_b('\n%com.google.ads.googleads.v1.resourcesB CampaignCriterionSimulationProtoP\001ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources\242\002\003GAA\252\002!Google.Ads.GoogleAds.V1.Resources\312\002!Google\\Ads\\GoogleAds\\V1\\Resources\352\002%Google::Ads::GoogleAds::V1::Resources'), - serialized_pb=_b('\nKgoogle/ads/googleads_v1/proto/resources/campaign_criterion_simulation.proto\x12!google.ads.googleads.v1.resources\x1a\x35google/ads/googleads_v1/proto/common/simulation.proto\x1aHgoogle/ads/googleads_v1/proto/enums/simulation_modification_method.proto\x1a\x39google/ads/googleads_v1/proto/enums/simulation_type.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1cgoogle/api/annotations.proto\"\xb7\x04\n\x1b\x43\x61mpaignCriterionSimulation\x12\x15\n\rresource_name\x18\x01 \x01(\t\x12\x30\n\x0b\x63\x61mpaign_id\x18\x02 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x31\n\x0c\x63riterion_id\x18\x03 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12N\n\x04type\x18\x04 \x01(\x0e\x32@.google.ads.googleads.v1.enums.SimulationTypeEnum.SimulationType\x12y\n\x13modification_method\x18\x05 \x01(\x0e\x32\\.google.ads.googleads.v1.enums.SimulationModificationMethodEnum.SimulationModificationMethod\x12\x30\n\nstart_date\x18\x06 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12.\n\x08\x65nd_date\x18\x07 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x61\n\x17\x62id_modifier_point_list\x18\x08 \x01(\x0b\x32>.google.ads.googleads.v1.common.BidModifierSimulationPointListH\x00\x42\x0c\n\npoint_listB\x8d\x02\n%com.google.ads.googleads.v1.resourcesB CampaignCriterionSimulationProtoP\x01ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V1.Resources\xca\x02!Google\\Ads\\GoogleAds\\V1\\Resources\xea\x02%Google::Ads::GoogleAds::V1::Resourcesb\x06proto3') - , - dependencies=[google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_simulation__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_simulation__modification__method__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_simulation__type__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - - -_CAMPAIGNCRITERIONSIMULATION = _descriptor.Descriptor( - name='CampaignCriterionSimulation', - full_name='google.ads.googleads.v1.resources.CampaignCriterionSimulation', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.resources.CampaignCriterionSimulation.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='campaign_id', full_name='google.ads.googleads.v1.resources.CampaignCriterionSimulation.campaign_id', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='criterion_id', full_name='google.ads.googleads.v1.resources.CampaignCriterionSimulation.criterion_id', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='type', full_name='google.ads.googleads.v1.resources.CampaignCriterionSimulation.type', index=3, - number=4, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='modification_method', full_name='google.ads.googleads.v1.resources.CampaignCriterionSimulation.modification_method', index=4, - number=5, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='start_date', full_name='google.ads.googleads.v1.resources.CampaignCriterionSimulation.start_date', index=5, - number=6, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='end_date', full_name='google.ads.googleads.v1.resources.CampaignCriterionSimulation.end_date', index=6, - number=7, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='bid_modifier_point_list', full_name='google.ads.googleads.v1.resources.CampaignCriterionSimulation.bid_modifier_point_list', index=7, - number=8, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='point_list', full_name='google.ads.googleads.v1.resources.CampaignCriterionSimulation.point_list', - index=0, containing_type=None, fields=[]), - ], - serialized_start=365, - serialized_end=932, -) - -_CAMPAIGNCRITERIONSIMULATION.fields_by_name['campaign_id'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -_CAMPAIGNCRITERIONSIMULATION.fields_by_name['criterion_id'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -_CAMPAIGNCRITERIONSIMULATION.fields_by_name['type'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_simulation__type__pb2._SIMULATIONTYPEENUM_SIMULATIONTYPE -_CAMPAIGNCRITERIONSIMULATION.fields_by_name['modification_method'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_simulation__modification__method__pb2._SIMULATIONMODIFICATIONMETHODENUM_SIMULATIONMODIFICATIONMETHOD -_CAMPAIGNCRITERIONSIMULATION.fields_by_name['start_date'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_CAMPAIGNCRITERIONSIMULATION.fields_by_name['end_date'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_CAMPAIGNCRITERIONSIMULATION.fields_by_name['bid_modifier_point_list'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_simulation__pb2._BIDMODIFIERSIMULATIONPOINTLIST -_CAMPAIGNCRITERIONSIMULATION.oneofs_by_name['point_list'].fields.append( - _CAMPAIGNCRITERIONSIMULATION.fields_by_name['bid_modifier_point_list']) -_CAMPAIGNCRITERIONSIMULATION.fields_by_name['bid_modifier_point_list'].containing_oneof = _CAMPAIGNCRITERIONSIMULATION.oneofs_by_name['point_list'] -DESCRIPTOR.message_types_by_name['CampaignCriterionSimulation'] = _CAMPAIGNCRITERIONSIMULATION -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -CampaignCriterionSimulation = _reflection.GeneratedProtocolMessageType('CampaignCriterionSimulation', (_message.Message,), dict( - DESCRIPTOR = _CAMPAIGNCRITERIONSIMULATION, - __module__ = 'google.ads.googleads_v1.proto.resources.campaign_criterion_simulation_pb2' - , - __doc__ = """A campaign criterion simulation. Supported combinations of advertising - channel type, criterion ids, simulation type and simulation modification - method is detailed below respectively. - - SEARCH 30000,30001,30002 BID\_MODIFIER UNIFORM DISPLAY 30001 - BID\_MODIFIER UNIFORM - - - Attributes: - resource_name: - The resource name of the campaign criterion simulation. - Campaign criterion simulation resource names have the form: ` - `customers/{customer_id}/campaignCriterionSimulations/{campaig - n_id}~{criterion_id}~{type}~{modification_method}~{start_date} - ~{end_date}`` - campaign_id: - Campaign ID of the simulation. - criterion_id: - Criterion ID of the simulation. - type: - The field that the simulation modifies. - modification_method: - How the simulation modifies the field. - start_date: - First day on which the simulation is based, in YYYY-MM-DD - format. - end_date: - Last day on which the simulation is based, in YYYY-MM-DD - format. - point_list: - List of simulation points. - bid_modifier_point_list: - Simulation points if the simulation type is BID\_MODIFIER. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.resources.CampaignCriterionSimulation) - )) -_sym_db.RegisterMessage(CampaignCriterionSimulation) - - -DESCRIPTOR._options = None -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/resources/campaign_draft_pb2.py b/google/ads/google_ads/v1/proto/resources/campaign_draft_pb2.py deleted file mode 100644 index 8044a6d1a..000000000 --- a/google/ads/google_ads/v1/proto/resources/campaign_draft_pb2.py +++ /dev/null @@ -1,165 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/resources/campaign_draft.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.ads.google_ads.v1.proto.enums import campaign_draft_status_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_campaign__draft__status__pb2 -from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/resources/campaign_draft.proto', - package='google.ads.googleads.v1.resources', - syntax='proto3', - serialized_options=_b('\n%com.google.ads.googleads.v1.resourcesB\022CampaignDraftProtoP\001ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources\242\002\003GAA\252\002!Google.Ads.GoogleAds.V1.Resources\312\002!Google\\Ads\\GoogleAds\\V1\\Resources\352\002%Google::Ads::GoogleAds::V1::Resources'), - serialized_pb=_b('\n.google.ads.googleads.v1.enums.ExtensionTypeEnum.ExtensionType\x12.\n\x08\x63\x61mpaign\x18\x03 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12:\n\x14\x65xtension_feed_items\x18\x04 \x03(\x0b\x32\x1c.google.protobuf.StringValue\x12`\n\x06\x64\x65vice\x18\x05 \x01(\x0e\x32P.google.ads.googleads.v1.enums.ExtensionSettingDeviceEnum.ExtensionSettingDeviceB\x8a\x02\n%com.google.ads.googleads.v1.resourcesB\x1d\x43\x61mpaignExtensionSettingProtoP\x01ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V1.Resources\xca\x02!Google\\Ads\\GoogleAds\\V1\\Resources\xea\x02%Google::Ads::GoogleAds::V1::Resourcesb\x06proto3') - , - dependencies=[google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_extension__setting__device__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_extension__type__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - - -_CAMPAIGNEXTENSIONSETTING = _descriptor.Descriptor( - name='CampaignExtensionSetting', - full_name='google.ads.googleads.v1.resources.CampaignExtensionSetting', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.resources.CampaignExtensionSetting.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='extension_type', full_name='google.ads.googleads.v1.resources.CampaignExtensionSetting.extension_type', index=1, - number=2, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='campaign', full_name='google.ads.googleads.v1.resources.CampaignExtensionSetting.campaign', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='extension_feed_items', full_name='google.ads.googleads.v1.resources.CampaignExtensionSetting.extension_feed_items', index=3, - number=4, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='device', full_name='google.ads.googleads.v1.resources.CampaignExtensionSetting.device', index=4, - number=5, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=300, - serialized_end=643, -) - -_CAMPAIGNEXTENSIONSETTING.fields_by_name['extension_type'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_extension__type__pb2._EXTENSIONTYPEENUM_EXTENSIONTYPE -_CAMPAIGNEXTENSIONSETTING.fields_by_name['campaign'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_CAMPAIGNEXTENSIONSETTING.fields_by_name['extension_feed_items'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_CAMPAIGNEXTENSIONSETTING.fields_by_name['device'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_extension__setting__device__pb2._EXTENSIONSETTINGDEVICEENUM_EXTENSIONSETTINGDEVICE -DESCRIPTOR.message_types_by_name['CampaignExtensionSetting'] = _CAMPAIGNEXTENSIONSETTING -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -CampaignExtensionSetting = _reflection.GeneratedProtocolMessageType('CampaignExtensionSetting', (_message.Message,), dict( - DESCRIPTOR = _CAMPAIGNEXTENSIONSETTING, - __module__ = 'google.ads.googleads_v1.proto.resources.campaign_extension_setting_pb2' - , - __doc__ = """A campaign extension setting. - - - Attributes: - resource_name: - The resource name of the campaign extension setting. - CampaignExtensionSetting resource names have the form: ``cust - omers/{customer_id}/campaignExtensionSettings/{campaign_id}~{e - xtension_type}`` - extension_type: - The extension type of the customer extension setting. - campaign: - The resource name of the campaign. The linked extension feed - items will serve under this campaign. Campaign resource names - have the form: - ``customers/{customer_id}/campaigns/{campaign_id}`` - extension_feed_items: - The resource names of the extension feed items to serve under - the campaign. ExtensionFeedItem resource names have the form: - ``customers/{customer_id}/extensionFeedItems/{feed_item_id}`` - device: - The device for which the extensions will serve. Optional. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.resources.CampaignExtensionSetting) - )) -_sym_db.RegisterMessage(CampaignExtensionSetting) - - -DESCRIPTOR._options = None -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/resources/campaign_feed_pb2.py b/google/ads/google_ads/v1/proto/resources/campaign_feed_pb2.py deleted file mode 100644 index be6227b02..000000000 --- a/google/ads/google_ads/v1/proto/resources/campaign_feed_pb2.py +++ /dev/null @@ -1,140 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/resources/campaign_feed.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.ads.google_ads.v1.proto.common import matching_function_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_matching__function__pb2 -from google.ads.google_ads.v1.proto.enums import feed_link_status_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_feed__link__status__pb2 -from google.ads.google_ads.v1.proto.enums import placeholder_type_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_placeholder__type__pb2 -from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/resources/campaign_feed.proto', - package='google.ads.googleads.v1.resources', - syntax='proto3', - serialized_options=_b('\n%com.google.ads.googleads.v1.resourcesB\021CampaignFeedProtoP\001ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources\242\002\003GAA\252\002!Google.Ads.GoogleAds.V1.Resources\312\002!Google\\Ads\\GoogleAds\\V1\\Resources\352\002%Google::Ads::GoogleAds::V1::Resources'), - serialized_pb=_b('\n;google/ads/googleads_v1/proto/resources/campaign_feed.proto\x12!google.ads.googleads.v1.resources\x1a.google.ads.googleads.v1.resources.Campaign.AppCampaignSetting\x12,\n\x06labels\x18\x35 \x03(\x0b\x32\x1c.google.protobuf.StringValue\x12i\n\x0f\x65xperiment_type\x18\x11 \x01(\x0e\x32P.google.ads.googleads.v1.enums.CampaignExperimentTypeEnum.CampaignExperimentType\x12\x33\n\rbase_campaign\x18\x1c \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x35\n\x0f\x63\x61mpaign_budget\x18\x06 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12i\n\x15\x62idding_strategy_type\x18\x16 \x01(\x0e\x32J.google.ads.googleads.v1.enums.BiddingStrategyTypeEnum.BiddingStrategyType\x12\x30\n\nstart_date\x18\x13 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12.\n\x08\x65nd_date\x18\x14 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x36\n\x10\x66inal_url_suffix\x18& \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12I\n\x0e\x66requency_caps\x18( \x03(\x0b\x32\x31.google.ads.googleads.v1.common.FrequencyCapEntry\x12x\n\x1evideo_brand_safety_suitability\x18* \x01(\x0e\x32P.google.ads.googleads.v1.enums.BrandSafetySuitabilityEnum.BrandSafetySuitability\x12O\n\rvanity_pharma\x18, \x01(\x0b\x32\x38.google.ads.googleads.v1.resources.Campaign.VanityPharma\x12\x61\n\x16selective_optimization\x18- \x01(\x0b\x32\x41.google.ads.googleads.v1.resources.Campaign.SelectiveOptimization\x12U\n\x10tracking_setting\x18. \x01(\x0b\x32;.google.ads.googleads.v1.resources.Campaign.TrackingSetting\x12P\n\x0cpayment_mode\x18\x34 \x01(\x0e\x32:.google.ads.googleads.v1.enums.PaymentModeEnum.PaymentMode\x12\x38\n\x10\x62idding_strategy\x18\x17 \x01(\x0b\x32\x1c.google.protobuf.StringValueH\x00\x12@\n\ncommission\x18\x31 \x01(\x0b\x32*.google.ads.googleads.v1.common.CommissionH\x00\x12?\n\nmanual_cpc\x18\x18 \x01(\x0b\x32).google.ads.googleads.v1.common.ManualCpcH\x00\x12?\n\nmanual_cpm\x18\x19 \x01(\x0b\x32).google.ads.googleads.v1.common.ManualCpmH\x00\x12?\n\nmanual_cpv\x18% \x01(\x0b\x32).google.ads.googleads.v1.common.ManualCpvH\x00\x12S\n\x14maximize_conversions\x18\x1e \x01(\x0b\x32\x33.google.ads.googleads.v1.common.MaximizeConversionsH\x00\x12\\\n\x19maximize_conversion_value\x18\x1f \x01(\x0b\x32\x37.google.ads.googleads.v1.common.MaximizeConversionValueH\x00\x12?\n\ntarget_cpa\x18\x1a \x01(\x0b\x32).google.ads.googleads.v1.common.TargetCpaH\x00\x12X\n\x17target_impression_share\x18\x30 \x01(\x0b\x32\x35.google.ads.googleads.v1.common.TargetImpressionShareH\x00\x12\x41\n\x0btarget_roas\x18\x1d \x01(\x0b\x32*.google.ads.googleads.v1.common.TargetRoasH\x00\x12\x43\n\x0ctarget_spend\x18\x1b \x01(\x0b\x32+.google.ads.googleads.v1.common.TargetSpendH\x00\x12\x41\n\x0bpercent_cpc\x18\" \x01(\x0b\x32*.google.ads.googleads.v1.common.PercentCpcH\x00\x12?\n\ntarget_cpm\x18) \x01(\x0b\x32).google.ads.googleads.v1.common.TargetCpmH\x00\x1a\x85\x02\n\x0fNetworkSettings\x12\x38\n\x14target_google_search\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.BoolValue\x12\x39\n\x15target_search_network\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.BoolValue\x12:\n\x16target_content_network\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.BoolValue\x12\x41\n\x1dtarget_partner_search_network\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.BoolValue\x1aH\n\x10HotelSettingInfo\x12\x34\n\x0fhotel_center_id\x18\x01 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x1a\xf3\x01\n\x0cVanityPharma\x12\x80\x01\n\x1evanity_pharma_display_url_mode\x18\x01 \x01(\x0e\x32X.google.ads.googleads.v1.enums.VanityPharmaDisplayUrlModeEnum.VanityPharmaDisplayUrlMode\x12`\n\x12vanity_pharma_text\x18\x02 \x01(\x0e\x32\x44.google.ads.googleads.v1.enums.VanityPharmaTextEnum.VanityPharmaText\x1a\xea\x01\n\x17\x44ynamicSearchAdsSetting\x12\x31\n\x0b\x64omain_name\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x33\n\rlanguage_code\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12:\n\x16use_supplied_urls_only\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.BoolValue\x12+\n\x05\x66\x65\x65\x64s\x18\x05 \x03(\x0b\x32\x1c.google.protobuf.StringValue\x1a\xe2\x01\n\x0fShoppingSetting\x12\x30\n\x0bmerchant_id\x18\x01 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x33\n\rsales_country\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x36\n\x11\x63\x61mpaign_priority\x18\x03 \x01(\x0b\x32\x1b.google.protobuf.Int32Value\x12\x30\n\x0c\x65nable_local\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.BoolValue\x1a\x45\n\x0fTrackingSetting\x12\x32\n\x0ctracking_url\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x1aQ\n\x15SelectiveOptimization\x12\x38\n\x12\x63onversion_actions\x18\x01 \x03(\x0b\x32\x1c.google.protobuf.StringValue\x1a\xb0\x02\n\x12\x41ppCampaignSetting\x12\x8c\x01\n\x1a\x62idding_strategy_goal_type\x18\x01 \x01(\x0e\x32h.google.ads.googleads.v1.enums.AppCampaignBiddingStrategyGoalTypeEnum.AppCampaignBiddingStrategyGoalType\x12,\n\x06\x61pp_id\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12]\n\tapp_store\x18\x03 \x01(\x0e\x32J.google.ads.googleads.v1.enums.AppCampaignAppStoreEnum.AppCampaignAppStore\x1a\xfa\x01\n\x14GeoTargetTypeSetting\x12p\n\x18positive_geo_target_type\x18\x01 \x01(\x0e\x32N.google.ads.googleads.v1.enums.PositiveGeoTargetTypeEnum.PositiveGeoTargetType\x12p\n\x18negative_geo_target_type\x18\x02 \x01(\x0e\x32N.google.ads.googleads.v1.enums.NegativeGeoTargetTypeEnum.NegativeGeoTargetTypeB\x1b\n\x19\x63\x61mpaign_bidding_strategyB\xfa\x01\n%com.google.ads.googleads.v1.resourcesB\rCampaignProtoP\x01ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V1.Resources\xca\x02!Google\\Ads\\GoogleAds\\V1\\Resources\xea\x02%Google::Ads::GoogleAds::V1::Resourcesb\x06proto3') - , - dependencies=[google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_bidding__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_custom__parameter__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_frequency__cap__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_real__time__bidding__setting__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_targeting__setting__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_ad__serving__optimization__status__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_advertising__channel__sub__type__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_advertising__channel__type__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_app__campaign__app__store__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_app__campaign__bidding__strategy__goal__type__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_bidding__strategy__type__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_brand__safety__suitability__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_campaign__experiment__type__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_campaign__serving__status__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_campaign__status__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_negative__geo__target__type__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_payment__mode__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_positive__geo__target__type__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_vanity__pharma__display__url__mode__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_vanity__pharma__text__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - - -_CAMPAIGN_NETWORKSETTINGS = _descriptor.Descriptor( - name='NetworkSettings', - full_name='google.ads.googleads.v1.resources.Campaign.NetworkSettings', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='target_google_search', full_name='google.ads.googleads.v1.resources.Campaign.NetworkSettings.target_google_search', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='target_search_network', full_name='google.ads.googleads.v1.resources.Campaign.NetworkSettings.target_search_network', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='target_content_network', full_name='google.ads.googleads.v1.resources.Campaign.NetworkSettings.target_content_network', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='target_partner_search_network', full_name='google.ads.googleads.v1.resources.Campaign.NetworkSettings.target_partner_search_network', index=3, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=5014, - serialized_end=5275, -) - -_CAMPAIGN_HOTELSETTINGINFO = _descriptor.Descriptor( - name='HotelSettingInfo', - full_name='google.ads.googleads.v1.resources.Campaign.HotelSettingInfo', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='hotel_center_id', full_name='google.ads.googleads.v1.resources.Campaign.HotelSettingInfo.hotel_center_id', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=5277, - serialized_end=5349, -) - -_CAMPAIGN_VANITYPHARMA = _descriptor.Descriptor( - name='VanityPharma', - full_name='google.ads.googleads.v1.resources.Campaign.VanityPharma', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='vanity_pharma_display_url_mode', full_name='google.ads.googleads.v1.resources.Campaign.VanityPharma.vanity_pharma_display_url_mode', index=0, - number=1, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='vanity_pharma_text', full_name='google.ads.googleads.v1.resources.Campaign.VanityPharma.vanity_pharma_text', index=1, - number=2, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=5352, - serialized_end=5595, -) - -_CAMPAIGN_DYNAMICSEARCHADSSETTING = _descriptor.Descriptor( - name='DynamicSearchAdsSetting', - full_name='google.ads.googleads.v1.resources.Campaign.DynamicSearchAdsSetting', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='domain_name', full_name='google.ads.googleads.v1.resources.Campaign.DynamicSearchAdsSetting.domain_name', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='language_code', full_name='google.ads.googleads.v1.resources.Campaign.DynamicSearchAdsSetting.language_code', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='use_supplied_urls_only', full_name='google.ads.googleads.v1.resources.Campaign.DynamicSearchAdsSetting.use_supplied_urls_only', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='feeds', full_name='google.ads.googleads.v1.resources.Campaign.DynamicSearchAdsSetting.feeds', index=3, - number=5, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=5598, - serialized_end=5832, -) - -_CAMPAIGN_SHOPPINGSETTING = _descriptor.Descriptor( - name='ShoppingSetting', - full_name='google.ads.googleads.v1.resources.Campaign.ShoppingSetting', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='merchant_id', full_name='google.ads.googleads.v1.resources.Campaign.ShoppingSetting.merchant_id', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='sales_country', full_name='google.ads.googleads.v1.resources.Campaign.ShoppingSetting.sales_country', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='campaign_priority', full_name='google.ads.googleads.v1.resources.Campaign.ShoppingSetting.campaign_priority', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='enable_local', full_name='google.ads.googleads.v1.resources.Campaign.ShoppingSetting.enable_local', index=3, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=5835, - serialized_end=6061, -) - -_CAMPAIGN_TRACKINGSETTING = _descriptor.Descriptor( - name='TrackingSetting', - full_name='google.ads.googleads.v1.resources.Campaign.TrackingSetting', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='tracking_url', full_name='google.ads.googleads.v1.resources.Campaign.TrackingSetting.tracking_url', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=6063, - serialized_end=6132, -) - -_CAMPAIGN_SELECTIVEOPTIMIZATION = _descriptor.Descriptor( - name='SelectiveOptimization', - full_name='google.ads.googleads.v1.resources.Campaign.SelectiveOptimization', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='conversion_actions', full_name='google.ads.googleads.v1.resources.Campaign.SelectiveOptimization.conversion_actions', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=6134, - serialized_end=6215, -) - -_CAMPAIGN_APPCAMPAIGNSETTING = _descriptor.Descriptor( - name='AppCampaignSetting', - full_name='google.ads.googleads.v1.resources.Campaign.AppCampaignSetting', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='bidding_strategy_goal_type', full_name='google.ads.googleads.v1.resources.Campaign.AppCampaignSetting.bidding_strategy_goal_type', index=0, - number=1, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='app_id', full_name='google.ads.googleads.v1.resources.Campaign.AppCampaignSetting.app_id', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='app_store', full_name='google.ads.googleads.v1.resources.Campaign.AppCampaignSetting.app_store', index=2, - number=3, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=6218, - serialized_end=6522, -) - -_CAMPAIGN_GEOTARGETTYPESETTING = _descriptor.Descriptor( - name='GeoTargetTypeSetting', - full_name='google.ads.googleads.v1.resources.Campaign.GeoTargetTypeSetting', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='positive_geo_target_type', full_name='google.ads.googleads.v1.resources.Campaign.GeoTargetTypeSetting.positive_geo_target_type', index=0, - number=1, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='negative_geo_target_type', full_name='google.ads.googleads.v1.resources.Campaign.GeoTargetTypeSetting.negative_geo_target_type', index=1, - number=2, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=6525, - serialized_end=6775, -) - -_CAMPAIGN = _descriptor.Descriptor( - name='Campaign', - full_name='google.ads.googleads.v1.resources.Campaign', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.resources.Campaign.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='id', full_name='google.ads.googleads.v1.resources.Campaign.id', index=1, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='name', full_name='google.ads.googleads.v1.resources.Campaign.name', index=2, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='status', full_name='google.ads.googleads.v1.resources.Campaign.status', index=3, - number=5, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='serving_status', full_name='google.ads.googleads.v1.resources.Campaign.serving_status', index=4, - number=21, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='ad_serving_optimization_status', full_name='google.ads.googleads.v1.resources.Campaign.ad_serving_optimization_status', index=5, - number=8, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='advertising_channel_type', full_name='google.ads.googleads.v1.resources.Campaign.advertising_channel_type', index=6, - number=9, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='advertising_channel_sub_type', full_name='google.ads.googleads.v1.resources.Campaign.advertising_channel_sub_type', index=7, - number=10, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='tracking_url_template', full_name='google.ads.googleads.v1.resources.Campaign.tracking_url_template', index=8, - number=11, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='url_custom_parameters', full_name='google.ads.googleads.v1.resources.Campaign.url_custom_parameters', index=9, - number=12, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='real_time_bidding_setting', full_name='google.ads.googleads.v1.resources.Campaign.real_time_bidding_setting', index=10, - number=39, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='network_settings', full_name='google.ads.googleads.v1.resources.Campaign.network_settings', index=11, - number=14, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='hotel_setting', full_name='google.ads.googleads.v1.resources.Campaign.hotel_setting', index=12, - number=32, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='dynamic_search_ads_setting', full_name='google.ads.googleads.v1.resources.Campaign.dynamic_search_ads_setting', index=13, - number=33, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='shopping_setting', full_name='google.ads.googleads.v1.resources.Campaign.shopping_setting', index=14, - number=36, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='targeting_setting', full_name='google.ads.googleads.v1.resources.Campaign.targeting_setting', index=15, - number=43, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='geo_target_type_setting', full_name='google.ads.googleads.v1.resources.Campaign.geo_target_type_setting', index=16, - number=47, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='app_campaign_setting', full_name='google.ads.googleads.v1.resources.Campaign.app_campaign_setting', index=17, - number=51, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='labels', full_name='google.ads.googleads.v1.resources.Campaign.labels', index=18, - number=53, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='experiment_type', full_name='google.ads.googleads.v1.resources.Campaign.experiment_type', index=19, - number=17, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='base_campaign', full_name='google.ads.googleads.v1.resources.Campaign.base_campaign', index=20, - number=28, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='campaign_budget', full_name='google.ads.googleads.v1.resources.Campaign.campaign_budget', index=21, - number=6, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='bidding_strategy_type', full_name='google.ads.googleads.v1.resources.Campaign.bidding_strategy_type', index=22, - number=22, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='start_date', full_name='google.ads.googleads.v1.resources.Campaign.start_date', index=23, - number=19, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='end_date', full_name='google.ads.googleads.v1.resources.Campaign.end_date', index=24, - number=20, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='final_url_suffix', full_name='google.ads.googleads.v1.resources.Campaign.final_url_suffix', index=25, - number=38, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='frequency_caps', full_name='google.ads.googleads.v1.resources.Campaign.frequency_caps', index=26, - number=40, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='video_brand_safety_suitability', full_name='google.ads.googleads.v1.resources.Campaign.video_brand_safety_suitability', index=27, - number=42, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='vanity_pharma', full_name='google.ads.googleads.v1.resources.Campaign.vanity_pharma', index=28, - number=44, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='selective_optimization', full_name='google.ads.googleads.v1.resources.Campaign.selective_optimization', index=29, - number=45, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='tracking_setting', full_name='google.ads.googleads.v1.resources.Campaign.tracking_setting', index=30, - number=46, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='payment_mode', full_name='google.ads.googleads.v1.resources.Campaign.payment_mode', index=31, - number=52, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='bidding_strategy', full_name='google.ads.googleads.v1.resources.Campaign.bidding_strategy', index=32, - number=23, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='commission', full_name='google.ads.googleads.v1.resources.Campaign.commission', index=33, - number=49, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='manual_cpc', full_name='google.ads.googleads.v1.resources.Campaign.manual_cpc', index=34, - number=24, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='manual_cpm', full_name='google.ads.googleads.v1.resources.Campaign.manual_cpm', index=35, - number=25, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='manual_cpv', full_name='google.ads.googleads.v1.resources.Campaign.manual_cpv', index=36, - number=37, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='maximize_conversions', full_name='google.ads.googleads.v1.resources.Campaign.maximize_conversions', index=37, - number=30, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='maximize_conversion_value', full_name='google.ads.googleads.v1.resources.Campaign.maximize_conversion_value', index=38, - number=31, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='target_cpa', full_name='google.ads.googleads.v1.resources.Campaign.target_cpa', index=39, - number=26, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='target_impression_share', full_name='google.ads.googleads.v1.resources.Campaign.target_impression_share', index=40, - number=48, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='target_roas', full_name='google.ads.googleads.v1.resources.Campaign.target_roas', index=41, - number=29, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='target_spend', full_name='google.ads.googleads.v1.resources.Campaign.target_spend', index=42, - number=27, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='percent_cpc', full_name='google.ads.googleads.v1.resources.Campaign.percent_cpc', index=43, - number=34, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='target_cpm', full_name='google.ads.googleads.v1.resources.Campaign.target_cpm', index=44, - number=41, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[_CAMPAIGN_NETWORKSETTINGS, _CAMPAIGN_HOTELSETTINGINFO, _CAMPAIGN_VANITYPHARMA, _CAMPAIGN_DYNAMICSEARCHADSSETTING, _CAMPAIGN_SHOPPINGSETTING, _CAMPAIGN_TRACKINGSETTING, _CAMPAIGN_SELECTIVEOPTIMIZATION, _CAMPAIGN_APPCAMPAIGNSETTING, _CAMPAIGN_GEOTARGETTYPESETTING, ], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='campaign_bidding_strategy', full_name='google.ads.googleads.v1.resources.Campaign.campaign_bidding_strategy', - index=0, containing_type=None, fields=[]), - ], - serialized_start=1477, - serialized_end=6804, -) - -_CAMPAIGN_NETWORKSETTINGS.fields_by_name['target_google_search'].message_type = google_dot_protobuf_dot_wrappers__pb2._BOOLVALUE -_CAMPAIGN_NETWORKSETTINGS.fields_by_name['target_search_network'].message_type = google_dot_protobuf_dot_wrappers__pb2._BOOLVALUE -_CAMPAIGN_NETWORKSETTINGS.fields_by_name['target_content_network'].message_type = google_dot_protobuf_dot_wrappers__pb2._BOOLVALUE -_CAMPAIGN_NETWORKSETTINGS.fields_by_name['target_partner_search_network'].message_type = google_dot_protobuf_dot_wrappers__pb2._BOOLVALUE -_CAMPAIGN_NETWORKSETTINGS.containing_type = _CAMPAIGN -_CAMPAIGN_HOTELSETTINGINFO.fields_by_name['hotel_center_id'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -_CAMPAIGN_HOTELSETTINGINFO.containing_type = _CAMPAIGN -_CAMPAIGN_VANITYPHARMA.fields_by_name['vanity_pharma_display_url_mode'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_vanity__pharma__display__url__mode__pb2._VANITYPHARMADISPLAYURLMODEENUM_VANITYPHARMADISPLAYURLMODE -_CAMPAIGN_VANITYPHARMA.fields_by_name['vanity_pharma_text'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_vanity__pharma__text__pb2._VANITYPHARMATEXTENUM_VANITYPHARMATEXT -_CAMPAIGN_VANITYPHARMA.containing_type = _CAMPAIGN -_CAMPAIGN_DYNAMICSEARCHADSSETTING.fields_by_name['domain_name'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_CAMPAIGN_DYNAMICSEARCHADSSETTING.fields_by_name['language_code'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_CAMPAIGN_DYNAMICSEARCHADSSETTING.fields_by_name['use_supplied_urls_only'].message_type = google_dot_protobuf_dot_wrappers__pb2._BOOLVALUE -_CAMPAIGN_DYNAMICSEARCHADSSETTING.fields_by_name['feeds'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_CAMPAIGN_DYNAMICSEARCHADSSETTING.containing_type = _CAMPAIGN -_CAMPAIGN_SHOPPINGSETTING.fields_by_name['merchant_id'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -_CAMPAIGN_SHOPPINGSETTING.fields_by_name['sales_country'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_CAMPAIGN_SHOPPINGSETTING.fields_by_name['campaign_priority'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT32VALUE -_CAMPAIGN_SHOPPINGSETTING.fields_by_name['enable_local'].message_type = google_dot_protobuf_dot_wrappers__pb2._BOOLVALUE -_CAMPAIGN_SHOPPINGSETTING.containing_type = _CAMPAIGN -_CAMPAIGN_TRACKINGSETTING.fields_by_name['tracking_url'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_CAMPAIGN_TRACKINGSETTING.containing_type = _CAMPAIGN -_CAMPAIGN_SELECTIVEOPTIMIZATION.fields_by_name['conversion_actions'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_CAMPAIGN_SELECTIVEOPTIMIZATION.containing_type = _CAMPAIGN -_CAMPAIGN_APPCAMPAIGNSETTING.fields_by_name['bidding_strategy_goal_type'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_app__campaign__bidding__strategy__goal__type__pb2._APPCAMPAIGNBIDDINGSTRATEGYGOALTYPEENUM_APPCAMPAIGNBIDDINGSTRATEGYGOALTYPE -_CAMPAIGN_APPCAMPAIGNSETTING.fields_by_name['app_id'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_CAMPAIGN_APPCAMPAIGNSETTING.fields_by_name['app_store'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_app__campaign__app__store__pb2._APPCAMPAIGNAPPSTOREENUM_APPCAMPAIGNAPPSTORE -_CAMPAIGN_APPCAMPAIGNSETTING.containing_type = _CAMPAIGN -_CAMPAIGN_GEOTARGETTYPESETTING.fields_by_name['positive_geo_target_type'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_positive__geo__target__type__pb2._POSITIVEGEOTARGETTYPEENUM_POSITIVEGEOTARGETTYPE -_CAMPAIGN_GEOTARGETTYPESETTING.fields_by_name['negative_geo_target_type'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_negative__geo__target__type__pb2._NEGATIVEGEOTARGETTYPEENUM_NEGATIVEGEOTARGETTYPE -_CAMPAIGN_GEOTARGETTYPESETTING.containing_type = _CAMPAIGN -_CAMPAIGN.fields_by_name['id'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -_CAMPAIGN.fields_by_name['name'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_CAMPAIGN.fields_by_name['status'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_campaign__status__pb2._CAMPAIGNSTATUSENUM_CAMPAIGNSTATUS -_CAMPAIGN.fields_by_name['serving_status'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_campaign__serving__status__pb2._CAMPAIGNSERVINGSTATUSENUM_CAMPAIGNSERVINGSTATUS -_CAMPAIGN.fields_by_name['ad_serving_optimization_status'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_ad__serving__optimization__status__pb2._ADSERVINGOPTIMIZATIONSTATUSENUM_ADSERVINGOPTIMIZATIONSTATUS -_CAMPAIGN.fields_by_name['advertising_channel_type'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_advertising__channel__type__pb2._ADVERTISINGCHANNELTYPEENUM_ADVERTISINGCHANNELTYPE -_CAMPAIGN.fields_by_name['advertising_channel_sub_type'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_advertising__channel__sub__type__pb2._ADVERTISINGCHANNELSUBTYPEENUM_ADVERTISINGCHANNELSUBTYPE -_CAMPAIGN.fields_by_name['tracking_url_template'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_CAMPAIGN.fields_by_name['url_custom_parameters'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_custom__parameter__pb2._CUSTOMPARAMETER -_CAMPAIGN.fields_by_name['real_time_bidding_setting'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_real__time__bidding__setting__pb2._REALTIMEBIDDINGSETTING -_CAMPAIGN.fields_by_name['network_settings'].message_type = _CAMPAIGN_NETWORKSETTINGS -_CAMPAIGN.fields_by_name['hotel_setting'].message_type = _CAMPAIGN_HOTELSETTINGINFO -_CAMPAIGN.fields_by_name['dynamic_search_ads_setting'].message_type = _CAMPAIGN_DYNAMICSEARCHADSSETTING -_CAMPAIGN.fields_by_name['shopping_setting'].message_type = _CAMPAIGN_SHOPPINGSETTING -_CAMPAIGN.fields_by_name['targeting_setting'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_targeting__setting__pb2._TARGETINGSETTING -_CAMPAIGN.fields_by_name['geo_target_type_setting'].message_type = _CAMPAIGN_GEOTARGETTYPESETTING -_CAMPAIGN.fields_by_name['app_campaign_setting'].message_type = _CAMPAIGN_APPCAMPAIGNSETTING -_CAMPAIGN.fields_by_name['labels'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_CAMPAIGN.fields_by_name['experiment_type'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_campaign__experiment__type__pb2._CAMPAIGNEXPERIMENTTYPEENUM_CAMPAIGNEXPERIMENTTYPE -_CAMPAIGN.fields_by_name['base_campaign'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_CAMPAIGN.fields_by_name['campaign_budget'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_CAMPAIGN.fields_by_name['bidding_strategy_type'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_bidding__strategy__type__pb2._BIDDINGSTRATEGYTYPEENUM_BIDDINGSTRATEGYTYPE -_CAMPAIGN.fields_by_name['start_date'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_CAMPAIGN.fields_by_name['end_date'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_CAMPAIGN.fields_by_name['final_url_suffix'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_CAMPAIGN.fields_by_name['frequency_caps'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_frequency__cap__pb2._FREQUENCYCAPENTRY -_CAMPAIGN.fields_by_name['video_brand_safety_suitability'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_brand__safety__suitability__pb2._BRANDSAFETYSUITABILITYENUM_BRANDSAFETYSUITABILITY -_CAMPAIGN.fields_by_name['vanity_pharma'].message_type = _CAMPAIGN_VANITYPHARMA -_CAMPAIGN.fields_by_name['selective_optimization'].message_type = _CAMPAIGN_SELECTIVEOPTIMIZATION -_CAMPAIGN.fields_by_name['tracking_setting'].message_type = _CAMPAIGN_TRACKINGSETTING -_CAMPAIGN.fields_by_name['payment_mode'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_payment__mode__pb2._PAYMENTMODEENUM_PAYMENTMODE -_CAMPAIGN.fields_by_name['bidding_strategy'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_CAMPAIGN.fields_by_name['commission'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_bidding__pb2._COMMISSION -_CAMPAIGN.fields_by_name['manual_cpc'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_bidding__pb2._MANUALCPC -_CAMPAIGN.fields_by_name['manual_cpm'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_bidding__pb2._MANUALCPM -_CAMPAIGN.fields_by_name['manual_cpv'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_bidding__pb2._MANUALCPV -_CAMPAIGN.fields_by_name['maximize_conversions'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_bidding__pb2._MAXIMIZECONVERSIONS -_CAMPAIGN.fields_by_name['maximize_conversion_value'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_bidding__pb2._MAXIMIZECONVERSIONVALUE -_CAMPAIGN.fields_by_name['target_cpa'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_bidding__pb2._TARGETCPA -_CAMPAIGN.fields_by_name['target_impression_share'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_bidding__pb2._TARGETIMPRESSIONSHARE -_CAMPAIGN.fields_by_name['target_roas'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_bidding__pb2._TARGETROAS -_CAMPAIGN.fields_by_name['target_spend'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_bidding__pb2._TARGETSPEND -_CAMPAIGN.fields_by_name['percent_cpc'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_bidding__pb2._PERCENTCPC -_CAMPAIGN.fields_by_name['target_cpm'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_bidding__pb2._TARGETCPM -_CAMPAIGN.oneofs_by_name['campaign_bidding_strategy'].fields.append( - _CAMPAIGN.fields_by_name['bidding_strategy']) -_CAMPAIGN.fields_by_name['bidding_strategy'].containing_oneof = _CAMPAIGN.oneofs_by_name['campaign_bidding_strategy'] -_CAMPAIGN.oneofs_by_name['campaign_bidding_strategy'].fields.append( - _CAMPAIGN.fields_by_name['commission']) -_CAMPAIGN.fields_by_name['commission'].containing_oneof = _CAMPAIGN.oneofs_by_name['campaign_bidding_strategy'] -_CAMPAIGN.oneofs_by_name['campaign_bidding_strategy'].fields.append( - _CAMPAIGN.fields_by_name['manual_cpc']) -_CAMPAIGN.fields_by_name['manual_cpc'].containing_oneof = _CAMPAIGN.oneofs_by_name['campaign_bidding_strategy'] -_CAMPAIGN.oneofs_by_name['campaign_bidding_strategy'].fields.append( - _CAMPAIGN.fields_by_name['manual_cpm']) -_CAMPAIGN.fields_by_name['manual_cpm'].containing_oneof = _CAMPAIGN.oneofs_by_name['campaign_bidding_strategy'] -_CAMPAIGN.oneofs_by_name['campaign_bidding_strategy'].fields.append( - _CAMPAIGN.fields_by_name['manual_cpv']) -_CAMPAIGN.fields_by_name['manual_cpv'].containing_oneof = _CAMPAIGN.oneofs_by_name['campaign_bidding_strategy'] -_CAMPAIGN.oneofs_by_name['campaign_bidding_strategy'].fields.append( - _CAMPAIGN.fields_by_name['maximize_conversions']) -_CAMPAIGN.fields_by_name['maximize_conversions'].containing_oneof = _CAMPAIGN.oneofs_by_name['campaign_bidding_strategy'] -_CAMPAIGN.oneofs_by_name['campaign_bidding_strategy'].fields.append( - _CAMPAIGN.fields_by_name['maximize_conversion_value']) -_CAMPAIGN.fields_by_name['maximize_conversion_value'].containing_oneof = _CAMPAIGN.oneofs_by_name['campaign_bidding_strategy'] -_CAMPAIGN.oneofs_by_name['campaign_bidding_strategy'].fields.append( - _CAMPAIGN.fields_by_name['target_cpa']) -_CAMPAIGN.fields_by_name['target_cpa'].containing_oneof = _CAMPAIGN.oneofs_by_name['campaign_bidding_strategy'] -_CAMPAIGN.oneofs_by_name['campaign_bidding_strategy'].fields.append( - _CAMPAIGN.fields_by_name['target_impression_share']) -_CAMPAIGN.fields_by_name['target_impression_share'].containing_oneof = _CAMPAIGN.oneofs_by_name['campaign_bidding_strategy'] -_CAMPAIGN.oneofs_by_name['campaign_bidding_strategy'].fields.append( - _CAMPAIGN.fields_by_name['target_roas']) -_CAMPAIGN.fields_by_name['target_roas'].containing_oneof = _CAMPAIGN.oneofs_by_name['campaign_bidding_strategy'] -_CAMPAIGN.oneofs_by_name['campaign_bidding_strategy'].fields.append( - _CAMPAIGN.fields_by_name['target_spend']) -_CAMPAIGN.fields_by_name['target_spend'].containing_oneof = _CAMPAIGN.oneofs_by_name['campaign_bidding_strategy'] -_CAMPAIGN.oneofs_by_name['campaign_bidding_strategy'].fields.append( - _CAMPAIGN.fields_by_name['percent_cpc']) -_CAMPAIGN.fields_by_name['percent_cpc'].containing_oneof = _CAMPAIGN.oneofs_by_name['campaign_bidding_strategy'] -_CAMPAIGN.oneofs_by_name['campaign_bidding_strategy'].fields.append( - _CAMPAIGN.fields_by_name['target_cpm']) -_CAMPAIGN.fields_by_name['target_cpm'].containing_oneof = _CAMPAIGN.oneofs_by_name['campaign_bidding_strategy'] -DESCRIPTOR.message_types_by_name['Campaign'] = _CAMPAIGN -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -Campaign = _reflection.GeneratedProtocolMessageType('Campaign', (_message.Message,), dict( - - NetworkSettings = _reflection.GeneratedProtocolMessageType('NetworkSettings', (_message.Message,), dict( - DESCRIPTOR = _CAMPAIGN_NETWORKSETTINGS, - __module__ = 'google.ads.googleads_v1.proto.resources.campaign_pb2' - , - __doc__ = """The network settings for the campaign. - - - Attributes: - target_google_search: - Whether ads will be served with google.com search results. - target_search_network: - Whether ads will be served on partner sites in the Google - Search Network (requires ``target_google_search`` to also be - ``true``). - target_content_network: - Whether ads will be served on specified placements in the - Google Display Network. Placements are specified using the - Placement criterion. - target_partner_search_network: - Whether ads will be served on the Google Partner Network. This - is available only to some select Google partner accounts. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.resources.Campaign.NetworkSettings) - )) - , - - HotelSettingInfo = _reflection.GeneratedProtocolMessageType('HotelSettingInfo', (_message.Message,), dict( - DESCRIPTOR = _CAMPAIGN_HOTELSETTINGINFO, - __module__ = 'google.ads.googleads_v1.proto.resources.campaign_pb2' - , - __doc__ = """Campaign-level settings for hotel ads. - - - Attributes: - hotel_center_id: - The linked Hotel Center account. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.resources.Campaign.HotelSettingInfo) - )) - , - - VanityPharma = _reflection.GeneratedProtocolMessageType('VanityPharma', (_message.Message,), dict( - DESCRIPTOR = _CAMPAIGN_VANITYPHARMA, - __module__ = 'google.ads.googleads_v1.proto.resources.campaign_pb2' - , - __doc__ = """Describes how unbranded pharma ads will be displayed. - - - Attributes: - vanity_pharma_display_url_mode: - The display mode for vanity pharma URLs. - vanity_pharma_text: - The text that will be displayed in display URL of the text ad - when website description is the selected display mode for - vanity pharma URLs. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.resources.Campaign.VanityPharma) - )) - , - - DynamicSearchAdsSetting = _reflection.GeneratedProtocolMessageType('DynamicSearchAdsSetting', (_message.Message,), dict( - DESCRIPTOR = _CAMPAIGN_DYNAMICSEARCHADSSETTING, - __module__ = 'google.ads.googleads_v1.proto.resources.campaign_pb2' - , - __doc__ = """The setting for controlling Dynamic Search Ads (DSA). - - - Attributes: - domain_name: - The Internet domain name that this setting represents, e.g., - "google.com" or "www.google.com". - language_code: - The language code specifying the language of the domain, e.g., - "en". - use_supplied_urls_only: - Whether the campaign uses advertiser supplied URLs - exclusively. - feeds: - The list of page feeds associated with the campaign. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.resources.Campaign.DynamicSearchAdsSetting) - )) - , - - ShoppingSetting = _reflection.GeneratedProtocolMessageType('ShoppingSetting', (_message.Message,), dict( - DESCRIPTOR = _CAMPAIGN_SHOPPINGSETTING, - __module__ = 'google.ads.googleads_v1.proto.resources.campaign_pb2' - , - __doc__ = """The setting for Shopping campaigns. Defines the universe of products - that can be advertised by the campaign, and how this campaign interacts - with other Shopping campaigns. - - - Attributes: - merchant_id: - ID of the Merchant Center account. This field is required for - create operations. This field is immutable for Shopping - campaigns. - sales_country: - Sales country of products to include in the campaign. This - field is required for Shopping campaigns. This field is - immutable. This field is optional for non-Shopping campaigns, - but it must be equal to 'ZZ' if set. - campaign_priority: - Priority of the campaign. Campaigns with numerically higher - priorities take precedence over those with lower priorities. - This field is required for Shopping campaigns, with values - between 0 and 2, inclusive. This field is optional for Smart - Shopping campaigns, but must be equal to 3 if set. - enable_local: - Whether to include local products. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.resources.Campaign.ShoppingSetting) - )) - , - - TrackingSetting = _reflection.GeneratedProtocolMessageType('TrackingSetting', (_message.Message,), dict( - DESCRIPTOR = _CAMPAIGN_TRACKINGSETTING, - __module__ = 'google.ads.googleads_v1.proto.resources.campaign_pb2' - , - __doc__ = """Campaign level settings for tracking information. - - - Attributes: - tracking_url: - The url used for dynamic tracking. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.resources.Campaign.TrackingSetting) - )) - , - - SelectiveOptimization = _reflection.GeneratedProtocolMessageType('SelectiveOptimization', (_message.Message,), dict( - DESCRIPTOR = _CAMPAIGN_SELECTIVEOPTIMIZATION, - __module__ = 'google.ads.googleads_v1.proto.resources.campaign_pb2' - , - __doc__ = """Selective optimization setting for this campaign, which includes a set - of conversion actions to optimize this campaign towards. - - - Attributes: - conversion_actions: - The selected set of conversion actions for optimizing this - campaign. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.resources.Campaign.SelectiveOptimization) - )) - , - - AppCampaignSetting = _reflection.GeneratedProtocolMessageType('AppCampaignSetting', (_message.Message,), dict( - DESCRIPTOR = _CAMPAIGN_APPCAMPAIGNSETTING, - __module__ = 'google.ads.googleads_v1.proto.resources.campaign_pb2' - , - __doc__ = """Campaign level settings for App Campaigns. - - - Attributes: - bidding_strategy_goal_type: - Represents the goal which the bidding strategy of this app - campaign should optimize towards. - app_id: - A string that uniquely identifies a mobile application. - app_store: - The application store that distributes this specific app. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.resources.Campaign.AppCampaignSetting) - )) - , - - GeoTargetTypeSetting = _reflection.GeneratedProtocolMessageType('GeoTargetTypeSetting', (_message.Message,), dict( - DESCRIPTOR = _CAMPAIGN_GEOTARGETTYPESETTING, - __module__ = 'google.ads.googleads_v1.proto.resources.campaign_pb2' - , - __doc__ = """Represents a collection of settings related to ads geotargeting. - - - Attributes: - positive_geo_target_type: - The setting used for positive geotargeting in this particular - campaign. - negative_geo_target_type: - The setting used for negative geotargeting in this particular - campaign. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.resources.Campaign.GeoTargetTypeSetting) - )) - , - DESCRIPTOR = _CAMPAIGN, - __module__ = 'google.ads.googleads_v1.proto.resources.campaign_pb2' - , - __doc__ = """A campaign. - - - Attributes: - resource_name: - The resource name of the campaign. Campaign resource names - have the form: - ``customers/{customer_id}/campaigns/{campaign_id}`` - id: - The ID of the campaign. - name: - The name of the campaign. This field is required and should - not be empty when creating new campaigns. It must not contain - any null (code point 0x0), NL line feed (code point 0xA) or - carriage return (code point 0xD) characters. - status: - The status of the campaign. When a new campaign is added, the - status defaults to ENABLED. - serving_status: - The ad serving status of the campaign. - ad_serving_optimization_status: - The ad serving optimization status of the campaign. - advertising_channel_type: - The primary serving target for ads within the campaign. The - targeting options can be refined in ``network_settings``. - This field is required and should not be empty when creating - new campaigns. Can be set only when creating campaigns. After - the campaign is created, the field can not be changed. - advertising_channel_sub_type: - Optional refinement to ``advertising_channel_type``. Must be a - valid sub-type of the parent channel type. Can be set only - when creating campaigns. After campaign is created, the field - can not be changed. - tracking_url_template: - The URL template for constructing a tracking URL. - url_custom_parameters: - The list of mappings used to substitute custom parameter tags - in a ``tracking_url_template``, ``final_urls``, or - ``mobile_final_urls``. - real_time_bidding_setting: - Settings for Real-Time Bidding, a feature only available for - campaigns targeting the Ad Exchange network. - network_settings: - The network settings for the campaign. - hotel_setting: - The hotel setting for the campaign. - dynamic_search_ads_setting: - The setting for controlling Dynamic Search Ads (DSA). - shopping_setting: - The setting for controlling Shopping campaigns. - targeting_setting: - Setting for targeting related features. - geo_target_type_setting: - The setting for ads geotargeting. - app_campaign_setting: - The setting related to App Campaign. - labels: - The resource names of labels attached to this campaign. - experiment_type: - The type of campaign: normal, draft, or experiment. - base_campaign: - The resource name of the base campaign of a draft or - experiment campaign. For base campaigns, this is equal to - ``resource_name``. This field is read-only. - campaign_budget: - The budget of the campaign. - bidding_strategy_type: - The type of bidding strategy. A bidding strategy can be - created by setting either the bidding scheme to create a - standard bidding strategy or the ``bidding_strategy`` field to - create a portfolio bidding strategy. This field is read-only. - start_date: - The date when campaign started. This field must not be used - in WHERE clauses. - end_date: - The date when campaign ended. This field must not be used in - WHERE clauses. - final_url_suffix: - Suffix used to append query parameters to landing pages that - are served with parallel tracking. - frequency_caps: - A list that limits how often each user will see this - campaign's ads. - video_brand_safety_suitability: - 3-Tier Brand Safety setting for the campaign. - vanity_pharma: - Describes how unbranded pharma ads will be displayed. - selective_optimization: - Selective optimization setting for this campaign, which - includes a set of conversion actions to optimize this campaign - towards. - tracking_setting: - Campaign level settings for tracking information. - payment_mode: - Payment mode for the campaign. - campaign_bidding_strategy: - The bidding strategy for the campaign. Must be either - portfolio (created via BiddingStrategy service) or standard, - that is embedded into the campaign. - bidding_strategy: - Portfolio bidding strategy used by campaign. - commission: - Commission is an automatic bidding strategy in which the - advertiser pays a certain portion of the conversion value. - manual_cpc: - Standard Manual CPC bidding strategy. Manual click-based - bidding where user pays per click. - manual_cpm: - Standard Manual CPM bidding strategy. Manual impression-based - bidding where user pays per thousand impressions. - manual_cpv: - A bidding strategy that pays a configurable amount per video - view. - maximize_conversions: - Standard Maximize Conversions bidding strategy that - automatically maximizes number of conversions given a daily - budget. - maximize_conversion_value: - Standard Maximize Conversion Value bidding strategy that - automatically sets bids to maximize revenue while spending - your budget. - target_cpa: - Standard Target CPA bidding strategy that automatically sets - bids to help get as many conversions as possible at the target - cost-per-acquisition (CPA) you set. - target_impression_share: - Target Impression Share bidding strategy. An automated bidding - strategy that sets bids to achieve a desired percentage of - impressions. - target_roas: - Standard Target ROAS bidding strategy that automatically - maximizes revenue while averaging a specific target return on - ad spend (ROAS). - target_spend: - Standard Target Spend bidding strategy that automatically sets - your bids to help get as many clicks as possible within your - budget. - percent_cpc: - Standard Percent Cpc bidding strategy where bids are a - fraction of the advertised price for some good or service. - target_cpm: - A bidding strategy that automatically optimizes cost per - thousand impressions. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.resources.Campaign) - )) -_sym_db.RegisterMessage(Campaign) -_sym_db.RegisterMessage(Campaign.NetworkSettings) -_sym_db.RegisterMessage(Campaign.HotelSettingInfo) -_sym_db.RegisterMessage(Campaign.VanityPharma) -_sym_db.RegisterMessage(Campaign.DynamicSearchAdsSetting) -_sym_db.RegisterMessage(Campaign.ShoppingSetting) -_sym_db.RegisterMessage(Campaign.TrackingSetting) -_sym_db.RegisterMessage(Campaign.SelectiveOptimization) -_sym_db.RegisterMessage(Campaign.AppCampaignSetting) -_sym_db.RegisterMessage(Campaign.GeoTargetTypeSetting) - - -DESCRIPTOR._options = None -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/resources/campaign_shared_set_pb2.py b/google/ads/google_ads/v1/proto/resources/campaign_shared_set_pb2.py deleted file mode 100644 index b5ebfb85a..000000000 --- a/google/ads/google_ads/v1/proto/resources/campaign_shared_set_pb2.py +++ /dev/null @@ -1,122 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/resources/campaign_shared_set.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.ads.google_ads.v1.proto.enums import campaign_shared_set_status_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_campaign__shared__set__status__pb2 -from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/resources/campaign_shared_set.proto', - package='google.ads.googleads.v1.resources', - syntax='proto3', - serialized_options=_b('\n%com.google.ads.googleads.v1.resourcesB\026CampaignSharedSetProtoP\001ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources\242\002\003GAA\252\002!Google.Ads.GoogleAds.V1.Resources\312\002!Google\\Ads\\GoogleAds\\V1\\Resources\352\002%Google::Ads::GoogleAds::V1::Resources'), - serialized_pb=_b('\nAgoogle/ads/googleads_v1/proto/resources/campaign_shared_set.proto\x12!google.ads.googleads.v1.resources\x1a\x44google/ads/googleads_v1/proto/enums/campaign_shared_set_status.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1cgoogle/api/annotations.proto\"\xf0\x01\n\x11\x43\x61mpaignSharedSet\x12\x15\n\rresource_name\x18\x01 \x01(\t\x12.\n\x08\x63\x61mpaign\x18\x03 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x30\n\nshared_set\x18\x04 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x62\n\x06status\x18\x02 \x01(\x0e\x32R.google.ads.googleads.v1.enums.CampaignSharedSetStatusEnum.CampaignSharedSetStatusB\x83\x02\n%com.google.ads.googleads.v1.resourcesB\x16\x43\x61mpaignSharedSetProtoP\x01ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V1.Resources\xca\x02!Google\\Ads\\GoogleAds\\V1\\Resources\xea\x02%Google::Ads::GoogleAds::V1::Resourcesb\x06proto3') - , - dependencies=[google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_campaign__shared__set__status__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - - -_CAMPAIGNSHAREDSET = _descriptor.Descriptor( - name='CampaignSharedSet', - full_name='google.ads.googleads.v1.resources.CampaignSharedSet', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.resources.CampaignSharedSet.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='campaign', full_name='google.ads.googleads.v1.resources.CampaignSharedSet.campaign', index=1, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='shared_set', full_name='google.ads.googleads.v1.resources.CampaignSharedSet.shared_set', index=2, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='status', full_name='google.ads.googleads.v1.resources.CampaignSharedSet.status', index=3, - number=2, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=237, - serialized_end=477, -) - -_CAMPAIGNSHAREDSET.fields_by_name['campaign'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_CAMPAIGNSHAREDSET.fields_by_name['shared_set'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_CAMPAIGNSHAREDSET.fields_by_name['status'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_campaign__shared__set__status__pb2._CAMPAIGNSHAREDSETSTATUSENUM_CAMPAIGNSHAREDSETSTATUS -DESCRIPTOR.message_types_by_name['CampaignSharedSet'] = _CAMPAIGNSHAREDSET -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -CampaignSharedSet = _reflection.GeneratedProtocolMessageType('CampaignSharedSet', (_message.Message,), dict( - DESCRIPTOR = _CAMPAIGNSHAREDSET, - __module__ = 'google.ads.googleads_v1.proto.resources.campaign_shared_set_pb2' - , - __doc__ = """CampaignSharedSets are used for managing the shared sets associated with - a campaign. - - - Attributes: - resource_name: - The resource name of the campaign shared set. Campaign shared - set resource names have the form: ``customers/{customer_id}/c - ampaignSharedSets/{campaign_id}~{shared_set_id}`` - campaign: - The campaign to which the campaign shared set belongs. - shared_set: - The shared set associated with the campaign. This may be a - negative keyword shared set of another customer. This customer - should be a manager of the other customer, otherwise the - campaign shared set will exist but have no serving effect. - Only negative keyword shared sets can be associated with - Shopping campaigns. Only negative placement shared sets can be - associated with Display mobile app campaigns. - status: - The status of this campaign shared set. Read only. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.resources.CampaignSharedSet) - )) -_sym_db.RegisterMessage(CampaignSharedSet) - - -DESCRIPTOR._options = None -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/resources/carrier_constant_pb2.py b/google/ads/google_ads/v1/proto/resources/carrier_constant_pb2.py deleted file mode 100644 index 22b29f17d..000000000 --- a/google/ads/google_ads/v1/proto/resources/carrier_constant_pb2.py +++ /dev/null @@ -1,115 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/resources/carrier_constant.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/resources/carrier_constant.proto', - package='google.ads.googleads.v1.resources', - syntax='proto3', - serialized_options=_b('\n%com.google.ads.googleads.v1.resourcesB\024CarrierConstantProtoP\001ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources\242\002\003GAA\252\002!Google.Ads.GoogleAds.V1.Resources\312\002!Google\\Ads\\GoogleAds\\V1\\Resources\352\002%Google::Ads::GoogleAds::V1::Resources'), - serialized_pb=_b('\n>google/ads/googleads_v1/proto/resources/carrier_constant.proto\x12!google.ads.googleads.v1.resources\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1cgoogle/api/annotations.proto\"\xb1\x01\n\x0f\x43\x61rrierConstant\x12\x15\n\rresource_name\x18\x01 \x01(\t\x12\'\n\x02id\x18\x02 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12*\n\x04name\x18\x03 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x32\n\x0c\x63ountry_code\x18\x04 \x01(\x0b\x32\x1c.google.protobuf.StringValueB\x81\x02\n%com.google.ads.googleads.v1.resourcesB\x14\x43\x61rrierConstantProtoP\x01ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V1.Resources\xca\x02!Google\\Ads\\GoogleAds\\V1\\Resources\xea\x02%Google::Ads::GoogleAds::V1::Resourcesb\x06proto3') - , - dependencies=[google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - - -_CARRIERCONSTANT = _descriptor.Descriptor( - name='CarrierConstant', - full_name='google.ads.googleads.v1.resources.CarrierConstant', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.resources.CarrierConstant.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='id', full_name='google.ads.googleads.v1.resources.CarrierConstant.id', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='name', full_name='google.ads.googleads.v1.resources.CarrierConstant.name', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='country_code', full_name='google.ads.googleads.v1.resources.CarrierConstant.country_code', index=3, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=164, - serialized_end=341, -) - -_CARRIERCONSTANT.fields_by_name['id'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -_CARRIERCONSTANT.fields_by_name['name'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_CARRIERCONSTANT.fields_by_name['country_code'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -DESCRIPTOR.message_types_by_name['CarrierConstant'] = _CARRIERCONSTANT -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -CarrierConstant = _reflection.GeneratedProtocolMessageType('CarrierConstant', (_message.Message,), dict( - DESCRIPTOR = _CARRIERCONSTANT, - __module__ = 'google.ads.googleads_v1.proto.resources.carrier_constant_pb2' - , - __doc__ = """A carrier criterion that can be used in campaign targeting. - - - Attributes: - resource_name: - The resource name of the carrier criterion. Carrier criterion - resource names have the form: - ``carrierConstants/{criterion_id}`` - id: - The ID of the carrier criterion. - name: - The full name of the carrier in English. - country_code: - The country code of the country where the carrier is located, - e.g., "AR", "FR", etc. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.resources.CarrierConstant) - )) -_sym_db.RegisterMessage(CarrierConstant) - - -DESCRIPTOR._options = None -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/resources/change_status_pb2.py b/google/ads/google_ads/v1/proto/resources/change_status_pb2.py deleted file mode 100644 index b2ae95f2f..000000000 --- a/google/ads/google_ads/v1/proto/resources/change_status_pb2.py +++ /dev/null @@ -1,219 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/resources/change_status.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.ads.google_ads.v1.proto.enums import change_status_operation_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_change__status__operation__pb2 -from google.ads.google_ads.v1.proto.enums import change_status_resource_type_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_change__status__resource__type__pb2 -from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/resources/change_status.proto', - package='google.ads.googleads.v1.resources', - syntax='proto3', - serialized_options=_b('\n%com.google.ads.googleads.v1.resourcesB\021ChangeStatusProtoP\001ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources\242\002\003GAA\252\002!Google.Ads.GoogleAds.V1.Resources\312\002!Google\\Ads\\GoogleAds\\V1\\Resources\352\002%Google::Ads::GoogleAds::V1::Resources'), - serialized_pb=_b('\n;google/ads/googleads_v1/proto/resources/change_status.proto\x12!google.ads.googleads.v1.resources\x1a\x41google/ads/googleads_v1/proto/enums/change_status_operation.proto\x1a\x45google/ads/googleads_v1/proto/enums/change_status_resource_type.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1cgoogle/api/annotations.proto\"\xc3\x06\n\x0c\x43hangeStatus\x12\x15\n\rresource_name\x18\x01 \x01(\t\x12;\n\x15last_change_date_time\x18\x03 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12k\n\rresource_type\x18\x04 \x01(\x0e\x32T.google.ads.googleads.v1.enums.ChangeStatusResourceTypeEnum.ChangeStatusResourceType\x12.\n\x08\x63\x61mpaign\x18\x05 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12.\n\x08\x61\x64_group\x18\x06 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12g\n\x0fresource_status\x18\x08 \x01(\x0e\x32N.google.ads.googleads.v1.enums.ChangeStatusOperationEnum.ChangeStatusOperation\x12\x31\n\x0b\x61\x64_group_ad\x18\t \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x38\n\x12\x61\x64_group_criterion\x18\n \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x38\n\x12\x63\x61mpaign_criterion\x18\x0b \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12*\n\x04\x66\x65\x65\x64\x18\x0c \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12/\n\tfeed_item\x18\r \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x33\n\rad_group_feed\x18\x0e \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x33\n\rcampaign_feed\x18\x0f \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12;\n\x15\x61\x64_group_bid_modifier\x18\x10 \x01(\x0b\x32\x1c.google.protobuf.StringValueB\xfe\x01\n%com.google.ads.googleads.v1.resourcesB\x11\x43hangeStatusProtoP\x01ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V1.Resources\xca\x02!Google\\Ads\\GoogleAds\\V1\\Resources\xea\x02%Google::Ads::GoogleAds::V1::Resourcesb\x06proto3') - , - dependencies=[google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_change__status__operation__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_change__status__resource__type__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - - -_CHANGESTATUS = _descriptor.Descriptor( - name='ChangeStatus', - full_name='google.ads.googleads.v1.resources.ChangeStatus', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.resources.ChangeStatus.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='last_change_date_time', full_name='google.ads.googleads.v1.resources.ChangeStatus.last_change_date_time', index=1, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='resource_type', full_name='google.ads.googleads.v1.resources.ChangeStatus.resource_type', index=2, - number=4, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='campaign', full_name='google.ads.googleads.v1.resources.ChangeStatus.campaign', index=3, - number=5, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='ad_group', full_name='google.ads.googleads.v1.resources.ChangeStatus.ad_group', index=4, - number=6, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='resource_status', full_name='google.ads.googleads.v1.resources.ChangeStatus.resource_status', index=5, - number=8, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='ad_group_ad', full_name='google.ads.googleads.v1.resources.ChangeStatus.ad_group_ad', index=6, - number=9, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='ad_group_criterion', full_name='google.ads.googleads.v1.resources.ChangeStatus.ad_group_criterion', index=7, - number=10, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='campaign_criterion', full_name='google.ads.googleads.v1.resources.ChangeStatus.campaign_criterion', index=8, - number=11, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='feed', full_name='google.ads.googleads.v1.resources.ChangeStatus.feed', index=9, - number=12, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='feed_item', full_name='google.ads.googleads.v1.resources.ChangeStatus.feed_item', index=10, - number=13, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='ad_group_feed', full_name='google.ads.googleads.v1.resources.ChangeStatus.ad_group_feed', index=11, - number=14, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='campaign_feed', full_name='google.ads.googleads.v1.resources.ChangeStatus.campaign_feed', index=12, - number=15, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='ad_group_bid_modifier', full_name='google.ads.googleads.v1.resources.ChangeStatus.ad_group_bid_modifier', index=13, - number=16, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=299, - serialized_end=1134, -) - -_CHANGESTATUS.fields_by_name['last_change_date_time'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_CHANGESTATUS.fields_by_name['resource_type'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_change__status__resource__type__pb2._CHANGESTATUSRESOURCETYPEENUM_CHANGESTATUSRESOURCETYPE -_CHANGESTATUS.fields_by_name['campaign'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_CHANGESTATUS.fields_by_name['ad_group'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_CHANGESTATUS.fields_by_name['resource_status'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_change__status__operation__pb2._CHANGESTATUSOPERATIONENUM_CHANGESTATUSOPERATION -_CHANGESTATUS.fields_by_name['ad_group_ad'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_CHANGESTATUS.fields_by_name['ad_group_criterion'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_CHANGESTATUS.fields_by_name['campaign_criterion'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_CHANGESTATUS.fields_by_name['feed'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_CHANGESTATUS.fields_by_name['feed_item'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_CHANGESTATUS.fields_by_name['ad_group_feed'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_CHANGESTATUS.fields_by_name['campaign_feed'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_CHANGESTATUS.fields_by_name['ad_group_bid_modifier'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -DESCRIPTOR.message_types_by_name['ChangeStatus'] = _CHANGESTATUS -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -ChangeStatus = _reflection.GeneratedProtocolMessageType('ChangeStatus', (_message.Message,), dict( - DESCRIPTOR = _CHANGESTATUS, - __module__ = 'google.ads.googleads_v1.proto.resources.change_status_pb2' - , - __doc__ = """Describes the status of returned resource. - - - Attributes: - resource_name: - The resource name of the change status. Change status resource - names have the form: - ``customers/{customer_id}/changeStatus/{change_status_id}`` - last_change_date_time: - Time at which the most recent change has occurred on this - resource. - resource_type: - Represents the type of the changed resource. This dictates - what fields will be set. For example, for AD\_GROUP, campaign - and ad\_group fields will be set. - campaign: - The Campaign affected by this change. - ad_group: - The AdGroup affected by this change. - resource_status: - Represents the status of the changed resource. - ad_group_ad: - The AdGroupAd affected by this change. - ad_group_criterion: - The AdGroupCriterion affected by this change. - campaign_criterion: - The CampaignCriterion affected by this change. - feed: - The Feed affected by this change. - feed_item: - The FeedItem affected by this change. - ad_group_feed: - The AdGroupFeed affected by this change. - campaign_feed: - The CampaignFeed affected by this change. - ad_group_bid_modifier: - The AdGroupBidModifier affected by this change. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.resources.ChangeStatus) - )) -_sym_db.RegisterMessage(ChangeStatus) - - -DESCRIPTOR._options = None -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/resources/click_view_pb2.py b/google/ads/google_ads/v1/proto/resources/click_view_pb2.py deleted file mode 100644 index f0dd39f25..000000000 --- a/google/ads/google_ads/v1/proto/resources/click_view_pb2.py +++ /dev/null @@ -1,129 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/resources/click_view.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.ads.google_ads.v1.proto.common import click_location_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_click__location__pb2 -from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/resources/click_view.proto', - package='google.ads.googleads.v1.resources', - syntax='proto3', - serialized_options=_b('\n%com.google.ads.googleads.v1.resourcesB\016ClickViewProtoP\001ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources\242\002\003GAA\252\002!Google.Ads.GoogleAds.V1.Resources\312\002!Google\\Ads\\GoogleAds\\V1\\Resources\352\002%Google::Ads::GoogleAds::V1::Resources'), - serialized_pb=_b('\n8google/ads/googleads_v1/proto/resources/click_view.proto\x12!google.ads.googleads.v1.resources\x1a\x39google/ads/googleads_v1/proto/common/click_location.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1cgoogle/api/annotations.proto\"\x97\x02\n\tClickView\x12\x15\n\rresource_name\x18\x01 \x01(\t\x12+\n\x05gclid\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12G\n\x10\x61rea_of_interest\x18\x03 \x01(\x0b\x32-.google.ads.googleads.v1.common.ClickLocation\x12K\n\x14location_of_presence\x18\x04 \x01(\x0b\x32-.google.ads.googleads.v1.common.ClickLocation\x12\x30\n\x0bpage_number\x18\x05 \x01(\x0b\x32\x1b.google.protobuf.Int64ValueB\xfb\x01\n%com.google.ads.googleads.v1.resourcesB\x0e\x43lickViewProtoP\x01ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V1.Resources\xca\x02!Google\\Ads\\GoogleAds\\V1\\Resources\xea\x02%Google::Ads::GoogleAds::V1::Resourcesb\x06proto3') - , - dependencies=[google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_click__location__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - - -_CLICKVIEW = _descriptor.Descriptor( - name='ClickView', - full_name='google.ads.googleads.v1.resources.ClickView', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.resources.ClickView.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='gclid', full_name='google.ads.googleads.v1.resources.ClickView.gclid', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='area_of_interest', full_name='google.ads.googleads.v1.resources.ClickView.area_of_interest', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='location_of_presence', full_name='google.ads.googleads.v1.resources.ClickView.location_of_presence', index=3, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='page_number', full_name='google.ads.googleads.v1.resources.ClickView.page_number', index=4, - number=5, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=217, - serialized_end=496, -) - -_CLICKVIEW.fields_by_name['gclid'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_CLICKVIEW.fields_by_name['area_of_interest'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_click__location__pb2._CLICKLOCATION -_CLICKVIEW.fields_by_name['location_of_presence'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_click__location__pb2._CLICKLOCATION -_CLICKVIEW.fields_by_name['page_number'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -DESCRIPTOR.message_types_by_name['ClickView'] = _CLICKVIEW -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -ClickView = _reflection.GeneratedProtocolMessageType('ClickView', (_message.Message,), dict( - DESCRIPTOR = _CLICKVIEW, - __module__ = 'google.ads.googleads_v1.proto.resources.click_view_pb2' - , - __doc__ = """A click view with metrics aggregated at each click level, including both - valid and invalid clicks. For non-Search campaigns, metrics.clicks - represents the number of valid and invalid interactions. - - - Attributes: - resource_name: - The resource name of the click view. Click view resource names - have the form: ``customers/{customer_id}/clickViews/{date - (yyyy-MM-dd)}~{gclid}`` - gclid: - The Google Click ID. - area_of_interest: - The location criteria matching the area of interest associated - with the impression. - location_of_presence: - The location criteria matching the location of presence - associated with the impression. - page_number: - Page number in search results where the ad was shown. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.resources.ClickView) - )) -_sym_db.RegisterMessage(ClickView) - - -DESCRIPTOR._options = None -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/resources/conversion_action_pb2.py b/google/ads/google_ads/v1/proto/resources/conversion_action_pb2.py deleted file mode 100644 index 35cbdf748..000000000 --- a/google/ads/google_ads/v1/proto/resources/conversion_action_pb2.py +++ /dev/null @@ -1,388 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/resources/conversion_action.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.ads.google_ads.v1.proto.common import tag_snippet_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_tag__snippet__pb2 -from google.ads.google_ads.v1.proto.enums import attribution_model_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_attribution__model__pb2 -from google.ads.google_ads.v1.proto.enums import conversion_action_category_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_conversion__action__category__pb2 -from google.ads.google_ads.v1.proto.enums import conversion_action_counting_type_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_conversion__action__counting__type__pb2 -from google.ads.google_ads.v1.proto.enums import conversion_action_status_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_conversion__action__status__pb2 -from google.ads.google_ads.v1.proto.enums import conversion_action_type_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_conversion__action__type__pb2 -from google.ads.google_ads.v1.proto.enums import data_driven_model_status_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_data__driven__model__status__pb2 -from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/resources/conversion_action.proto', - package='google.ads.googleads.v1.resources', - syntax='proto3', - serialized_options=_b('\n%com.google.ads.googleads.v1.resourcesB\025ConversionActionProtoP\001ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources\242\002\003GAA\252\002!Google.Ads.GoogleAds.V1.Resources\312\002!Google\\Ads\\GoogleAds\\V1\\Resources\352\002%Google::Ads::GoogleAds::V1::Resources'), - serialized_pb=_b('\n?google/ads/googleads_v1/proto/resources/conversion_action.proto\x12!google.ads.googleads.v1.resources\x1a\x36google/ads/googleads_v1/proto/common/tag_snippet.proto\x1a;google/ads/googleads_v1/proto/enums/attribution_model.proto\x1a\x44google/ads/googleads_v1/proto/enums/conversion_action_category.proto\x1aIgoogle/ads/googleads_v1/proto/enums/conversion_action_counting_type.proto\x1a\x42google/ads/googleads_v1/proto/enums/conversion_action_status.proto\x1a@google/ads/googleads_v1/proto/enums/conversion_action_type.proto\x1a\x42google/ads/googleads_v1/proto/enums/data_driven_model_status.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1cgoogle/api/annotations.proto\"\xd4\x0c\n\x10\x43onversionAction\x12\x15\n\rresource_name\x18\x01 \x01(\t\x12\'\n\x02id\x18\x02 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12*\n\x04name\x18\x03 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12`\n\x06status\x18\x04 \x01(\x0e\x32P.google.ads.googleads.v1.enums.ConversionActionStatusEnum.ConversionActionStatus\x12Z\n\x04type\x18\x05 \x01(\x0e\x32L.google.ads.googleads.v1.enums.ConversionActionTypeEnum.ConversionActionType\x12\x66\n\x08\x63\x61tegory\x18\x06 \x01(\x0e\x32T.google.ads.googleads.v1.enums.ConversionActionCategoryEnum.ConversionActionCategory\x12\x34\n\x0eowner_customer\x18\x07 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x41\n\x1dinclude_in_conversions_metric\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.BoolValue\x12G\n\"click_through_lookback_window_days\x18\t \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x46\n!view_through_lookback_window_days\x18\n \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12Y\n\x0evalue_settings\x18\x0b \x01(\x0b\x32\x41.google.ads.googleads.v1.resources.ConversionAction.ValueSettings\x12s\n\rcounting_type\x18\x0c \x01(\x0e\x32\\.google.ads.googleads.v1.enums.ConversionActionCountingTypeEnum.ConversionActionCountingType\x12p\n\x1a\x61ttribution_model_settings\x18\r \x01(\x0b\x32L.google.ads.googleads.v1.resources.ConversionAction.AttributionModelSettings\x12@\n\x0ctag_snippets\x18\x0e \x03(\x0b\x32*.google.ads.googleads.v1.common.TagSnippet\x12@\n\x1bphone_call_duration_seconds\x18\x0f \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12,\n\x06\x61pp_id\x18\x10 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x1a\xed\x01\n\x18\x41ttributionModelSettings\x12_\n\x11\x61ttribution_model\x18\x01 \x01(\x0e\x32\x44.google.ads.googleads.v1.enums.AttributionModelEnum.AttributionModel\x12p\n\x18\x64\x61ta_driven_model_status\x18\x02 \x01(\x0e\x32N.google.ads.googleads.v1.enums.DataDrivenModelStatusEnum.DataDrivenModelStatus\x1a\xbf\x01\n\rValueSettings\x12\x33\n\rdefault_value\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12;\n\x15\x64\x65\x66\x61ult_currency_code\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12<\n\x18\x61lways_use_default_value\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.BoolValueB\x82\x02\n%com.google.ads.googleads.v1.resourcesB\x15\x43onversionActionProtoP\x01ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V1.Resources\xca\x02!Google\\Ads\\GoogleAds\\V1\\Resources\xea\x02%Google::Ads::GoogleAds::V1::Resourcesb\x06proto3') - , - dependencies=[google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_tag__snippet__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_attribution__model__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_conversion__action__category__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_conversion__action__counting__type__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_conversion__action__status__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_conversion__action__type__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_data__driven__model__status__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - - -_CONVERSIONACTION_ATTRIBUTIONMODELSETTINGS = _descriptor.Descriptor( - name='AttributionModelSettings', - full_name='google.ads.googleads.v1.resources.ConversionAction.AttributionModelSettings', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='attribution_model', full_name='google.ads.googleads.v1.resources.ConversionAction.AttributionModelSettings.attribution_model', index=0, - number=1, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='data_driven_model_status', full_name='google.ads.googleads.v1.resources.ConversionAction.AttributionModelSettings.data_driven_model_status', index=1, - number=2, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1818, - serialized_end=2055, -) - -_CONVERSIONACTION_VALUESETTINGS = _descriptor.Descriptor( - name='ValueSettings', - full_name='google.ads.googleads.v1.resources.ConversionAction.ValueSettings', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='default_value', full_name='google.ads.googleads.v1.resources.ConversionAction.ValueSettings.default_value', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='default_currency_code', full_name='google.ads.googleads.v1.resources.ConversionAction.ValueSettings.default_currency_code', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='always_use_default_value', full_name='google.ads.googleads.v1.resources.ConversionAction.ValueSettings.always_use_default_value', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2058, - serialized_end=2249, -) - -_CONVERSIONACTION = _descriptor.Descriptor( - name='ConversionAction', - full_name='google.ads.googleads.v1.resources.ConversionAction', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.resources.ConversionAction.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='id', full_name='google.ads.googleads.v1.resources.ConversionAction.id', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='name', full_name='google.ads.googleads.v1.resources.ConversionAction.name', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='status', full_name='google.ads.googleads.v1.resources.ConversionAction.status', index=3, - number=4, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='type', full_name='google.ads.googleads.v1.resources.ConversionAction.type', index=4, - number=5, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='category', full_name='google.ads.googleads.v1.resources.ConversionAction.category', index=5, - number=6, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='owner_customer', full_name='google.ads.googleads.v1.resources.ConversionAction.owner_customer', index=6, - number=7, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='include_in_conversions_metric', full_name='google.ads.googleads.v1.resources.ConversionAction.include_in_conversions_metric', index=7, - number=8, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='click_through_lookback_window_days', full_name='google.ads.googleads.v1.resources.ConversionAction.click_through_lookback_window_days', index=8, - number=9, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='view_through_lookback_window_days', full_name='google.ads.googleads.v1.resources.ConversionAction.view_through_lookback_window_days', index=9, - number=10, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='value_settings', full_name='google.ads.googleads.v1.resources.ConversionAction.value_settings', index=10, - number=11, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='counting_type', full_name='google.ads.googleads.v1.resources.ConversionAction.counting_type', index=11, - number=12, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='attribution_model_settings', full_name='google.ads.googleads.v1.resources.ConversionAction.attribution_model_settings', index=12, - number=13, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='tag_snippets', full_name='google.ads.googleads.v1.resources.ConversionAction.tag_snippets', index=13, - number=14, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='phone_call_duration_seconds', full_name='google.ads.googleads.v1.resources.ConversionAction.phone_call_duration_seconds', index=14, - number=15, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='app_id', full_name='google.ads.googleads.v1.resources.ConversionAction.app_id', index=15, - number=16, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[_CONVERSIONACTION_ATTRIBUTIONMODELSETTINGS, _CONVERSIONACTION_VALUESETTINGS, ], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=629, - serialized_end=2249, -) - -_CONVERSIONACTION_ATTRIBUTIONMODELSETTINGS.fields_by_name['attribution_model'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_attribution__model__pb2._ATTRIBUTIONMODELENUM_ATTRIBUTIONMODEL -_CONVERSIONACTION_ATTRIBUTIONMODELSETTINGS.fields_by_name['data_driven_model_status'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_data__driven__model__status__pb2._DATADRIVENMODELSTATUSENUM_DATADRIVENMODELSTATUS -_CONVERSIONACTION_ATTRIBUTIONMODELSETTINGS.containing_type = _CONVERSIONACTION -_CONVERSIONACTION_VALUESETTINGS.fields_by_name['default_value'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE -_CONVERSIONACTION_VALUESETTINGS.fields_by_name['default_currency_code'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_CONVERSIONACTION_VALUESETTINGS.fields_by_name['always_use_default_value'].message_type = google_dot_protobuf_dot_wrappers__pb2._BOOLVALUE -_CONVERSIONACTION_VALUESETTINGS.containing_type = _CONVERSIONACTION -_CONVERSIONACTION.fields_by_name['id'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -_CONVERSIONACTION.fields_by_name['name'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_CONVERSIONACTION.fields_by_name['status'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_conversion__action__status__pb2._CONVERSIONACTIONSTATUSENUM_CONVERSIONACTIONSTATUS -_CONVERSIONACTION.fields_by_name['type'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_conversion__action__type__pb2._CONVERSIONACTIONTYPEENUM_CONVERSIONACTIONTYPE -_CONVERSIONACTION.fields_by_name['category'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_conversion__action__category__pb2._CONVERSIONACTIONCATEGORYENUM_CONVERSIONACTIONCATEGORY -_CONVERSIONACTION.fields_by_name['owner_customer'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_CONVERSIONACTION.fields_by_name['include_in_conversions_metric'].message_type = google_dot_protobuf_dot_wrappers__pb2._BOOLVALUE -_CONVERSIONACTION.fields_by_name['click_through_lookback_window_days'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -_CONVERSIONACTION.fields_by_name['view_through_lookback_window_days'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -_CONVERSIONACTION.fields_by_name['value_settings'].message_type = _CONVERSIONACTION_VALUESETTINGS -_CONVERSIONACTION.fields_by_name['counting_type'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_conversion__action__counting__type__pb2._CONVERSIONACTIONCOUNTINGTYPEENUM_CONVERSIONACTIONCOUNTINGTYPE -_CONVERSIONACTION.fields_by_name['attribution_model_settings'].message_type = _CONVERSIONACTION_ATTRIBUTIONMODELSETTINGS -_CONVERSIONACTION.fields_by_name['tag_snippets'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_tag__snippet__pb2._TAGSNIPPET -_CONVERSIONACTION.fields_by_name['phone_call_duration_seconds'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -_CONVERSIONACTION.fields_by_name['app_id'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -DESCRIPTOR.message_types_by_name['ConversionAction'] = _CONVERSIONACTION -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -ConversionAction = _reflection.GeneratedProtocolMessageType('ConversionAction', (_message.Message,), dict( - - AttributionModelSettings = _reflection.GeneratedProtocolMessageType('AttributionModelSettings', (_message.Message,), dict( - DESCRIPTOR = _CONVERSIONACTION_ATTRIBUTIONMODELSETTINGS, - __module__ = 'google.ads.googleads_v1.proto.resources.conversion_action_pb2' - , - __doc__ = """Settings related to this conversion action's attribution model. - - - Attributes: - attribution_model: - The attribution model type of this conversion action. - data_driven_model_status: - The status of the data-driven attribution model for the - conversion action. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.resources.ConversionAction.AttributionModelSettings) - )) - , - - ValueSettings = _reflection.GeneratedProtocolMessageType('ValueSettings', (_message.Message,), dict( - DESCRIPTOR = _CONVERSIONACTION_VALUESETTINGS, - __module__ = 'google.ads.googleads_v1.proto.resources.conversion_action_pb2' - , - __doc__ = """Settings related to the value for conversion events associated with this - conversion action. - - - Attributes: - default_value: - The value to use when conversion events for this conversion - action are sent with an invalid, disallowed or missing value, - or when this conversion action is configured to always use the - default value. - default_currency_code: - The currency code to use when conversion events for this - conversion action are sent with an invalid or missing currency - code, or when this conversion action is configured to always - use the default value. - always_use_default_value: - Controls whether the default value and default currency code - are used in place of the value and currency code specified in - conversion events for this conversion action. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.resources.ConversionAction.ValueSettings) - )) - , - DESCRIPTOR = _CONVERSIONACTION, - __module__ = 'google.ads.googleads_v1.proto.resources.conversion_action_pb2' - , - __doc__ = """A conversion action. - - - Attributes: - resource_name: - The resource name of the conversion action. Conversion action - resource names have the form: ``customers/{customer_id}/conve - rsionActions/{conversion_action_id}`` - id: - The ID of the conversion action. - name: - The name of the conversion action. This field is required and - should not be empty when creating new conversion actions. - status: - The status of this conversion action for conversion event - accrual. - type: - The type of this conversion action. - category: - The category of conversions reported for this conversion - action. - owner_customer: - The resource name of the conversion action owner customer, or - null if this is a system-defined conversion action. - include_in_conversions_metric: - Whether this conversion action should be included in the - "conversions" metric. - click_through_lookback_window_days: - The maximum number of days that may elapse between an - interaction (e.g., a click) and a conversion event. - view_through_lookback_window_days: - The maximum number of days which may elapse between an - impression and a conversion without an interaction. - value_settings: - Settings related to the value for conversion events associated - with this conversion action. - counting_type: - How to count conversion events for the conversion action. - attribution_model_settings: - Settings related to this conversion action's attribution - model. - tag_snippets: - The snippets used for tracking conversions. - phone_call_duration_seconds: - The phone call duration in seconds after which a conversion - should be reported for this conversion action. The value must - be between 0 and 10000, inclusive. - app_id: - App ID for an app conversion action. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.resources.ConversionAction) - )) -_sym_db.RegisterMessage(ConversionAction) -_sym_db.RegisterMessage(ConversionAction.AttributionModelSettings) -_sym_db.RegisterMessage(ConversionAction.ValueSettings) - - -DESCRIPTOR._options = None -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/resources/custom_interest_pb2.py b/google/ads/google_ads/v1/proto/resources/custom_interest_pb2.py deleted file mode 100644 index feef5c2d3..000000000 --- a/google/ads/google_ads/v1/proto/resources/custom_interest_pb2.py +++ /dev/null @@ -1,216 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/resources/custom_interest.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.ads.google_ads.v1.proto.enums import custom_interest_member_type_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_custom__interest__member__type__pb2 -from google.ads.google_ads.v1.proto.enums import custom_interest_status_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_custom__interest__status__pb2 -from google.ads.google_ads.v1.proto.enums import custom_interest_type_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_custom__interest__type__pb2 -from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/resources/custom_interest.proto', - package='google.ads.googleads.v1.resources', - syntax='proto3', - serialized_options=_b('\n%com.google.ads.googleads.v1.resourcesB\023CustomInterestProtoP\001ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources\242\002\003GAA\252\002!Google.Ads.GoogleAds.V1.Resources\312\002!Google\\Ads\\GoogleAds\\V1\\Resources\352\002%Google::Ads::GoogleAds::V1::Resources'), - serialized_pb=_b('\n=google/ads/googleads_v1/proto/resources/custom_interest.proto\x12!google.ads.googleads.v1.resources\x1a\x45google/ads/googleads_v1/proto/enums/custom_interest_member_type.proto\x1a@google/ads/googleads_v1/proto/enums/custom_interest_status.proto\x1a>google/ads/googleads_v1/proto/enums/custom_interest_type.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1cgoogle/api/annotations.proto\"\xaf\x03\n\x0e\x43ustomInterest\x12\x15\n\rresource_name\x18\x01 \x01(\t\x12\'\n\x02id\x18\x02 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\\\n\x06status\x18\x03 \x01(\x0e\x32L.google.ads.googleads.v1.enums.CustomInterestStatusEnum.CustomInterestStatus\x12*\n\x04name\x18\x04 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12V\n\x04type\x18\x05 \x01(\x0e\x32H.google.ads.googleads.v1.enums.CustomInterestTypeEnum.CustomInterestType\x12\x31\n\x0b\x64\x65scription\x18\x06 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12H\n\x07members\x18\x07 \x03(\x0b\x32\x37.google.ads.googleads.v1.resources.CustomInterestMember\"\xb2\x01\n\x14\x43ustomInterestMember\x12i\n\x0bmember_type\x18\x01 \x01(\x0e\x32T.google.ads.googleads.v1.enums.CustomInterestMemberTypeEnum.CustomInterestMemberType\x12/\n\tparameter\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValueB\x80\x02\n%com.google.ads.googleads.v1.resourcesB\x13\x43ustomInterestProtoP\x01ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V1.Resources\xca\x02!Google\\Ads\\GoogleAds\\V1\\Resources\xea\x02%Google::Ads::GoogleAds::V1::Resourcesb\x06proto3') - , - dependencies=[google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_custom__interest__member__type__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_custom__interest__status__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_custom__interest__type__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - - -_CUSTOMINTEREST = _descriptor.Descriptor( - name='CustomInterest', - full_name='google.ads.googleads.v1.resources.CustomInterest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.resources.CustomInterest.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='id', full_name='google.ads.googleads.v1.resources.CustomInterest.id', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='status', full_name='google.ads.googleads.v1.resources.CustomInterest.status', index=2, - number=3, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='name', full_name='google.ads.googleads.v1.resources.CustomInterest.name', index=3, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='type', full_name='google.ads.googleads.v1.resources.CustomInterest.type', index=4, - number=5, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='description', full_name='google.ads.googleads.v1.resources.CustomInterest.description', index=5, - number=6, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='members', full_name='google.ads.googleads.v1.resources.CustomInterest.members', index=6, - number=7, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=364, - serialized_end=795, -) - - -_CUSTOMINTERESTMEMBER = _descriptor.Descriptor( - name='CustomInterestMember', - full_name='google.ads.googleads.v1.resources.CustomInterestMember', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='member_type', full_name='google.ads.googleads.v1.resources.CustomInterestMember.member_type', index=0, - number=1, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='parameter', full_name='google.ads.googleads.v1.resources.CustomInterestMember.parameter', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=798, - serialized_end=976, -) - -_CUSTOMINTEREST.fields_by_name['id'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -_CUSTOMINTEREST.fields_by_name['status'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_custom__interest__status__pb2._CUSTOMINTERESTSTATUSENUM_CUSTOMINTERESTSTATUS -_CUSTOMINTEREST.fields_by_name['name'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_CUSTOMINTEREST.fields_by_name['type'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_custom__interest__type__pb2._CUSTOMINTERESTTYPEENUM_CUSTOMINTERESTTYPE -_CUSTOMINTEREST.fields_by_name['description'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_CUSTOMINTEREST.fields_by_name['members'].message_type = _CUSTOMINTERESTMEMBER -_CUSTOMINTERESTMEMBER.fields_by_name['member_type'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_custom__interest__member__type__pb2._CUSTOMINTERESTMEMBERTYPEENUM_CUSTOMINTERESTMEMBERTYPE -_CUSTOMINTERESTMEMBER.fields_by_name['parameter'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -DESCRIPTOR.message_types_by_name['CustomInterest'] = _CUSTOMINTEREST -DESCRIPTOR.message_types_by_name['CustomInterestMember'] = _CUSTOMINTERESTMEMBER -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -CustomInterest = _reflection.GeneratedProtocolMessageType('CustomInterest', (_message.Message,), dict( - DESCRIPTOR = _CUSTOMINTEREST, - __module__ = 'google.ads.googleads_v1.proto.resources.custom_interest_pb2' - , - __doc__ = """A custom interest. This is a list of users by interest. - - - Attributes: - resource_name: - The resource name of the custom interest. Custom interest - resource names have the form: ``customers/{customer_id}/custo - mInterests/{custom_interest_id}`` - id: - Id of the custom interest. - status: - Status of this custom interest. Indicates whether the custom - interest is enabled or removed. - name: - Name of the custom interest. It should be unique across the - same custom affinity audience. This field is required for - create operations. - type: - Type of the custom interest, CUSTOM\_AFFINITY or - CUSTOM\_INTENT. By default the type is set to - CUSTOM\_AFFINITY. - description: - Description of this custom interest audience. - members: - List of custom interest members that this custom interest is - composed of. Members can be added during CustomInterest - creation. If members are presented in UPDATE operation, - existing members will be overridden. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.resources.CustomInterest) - )) -_sym_db.RegisterMessage(CustomInterest) - -CustomInterestMember = _reflection.GeneratedProtocolMessageType('CustomInterestMember', (_message.Message,), dict( - DESCRIPTOR = _CUSTOMINTERESTMEMBER, - __module__ = 'google.ads.googleads_v1.proto.resources.custom_interest_pb2' - , - __doc__ = """A member of custom interest audience. A member can be a keyword or url. - It is immutable, that is, it can only be created or removed but not - changed. - - - Attributes: - member_type: - The type of custom interest member, KEYWORD or URL. - parameter: - Keyword text when member\_type is KEYWORD or URL string when - member\_type is URL. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.resources.CustomInterestMember) - )) -_sym_db.RegisterMessage(CustomInterestMember) - - -DESCRIPTOR._options = None -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/resources/customer_client_link_pb2.py b/google/ads/google_ads/v1/proto/resources/customer_client_link_pb2.py deleted file mode 100644 index 110449d16..000000000 --- a/google/ads/google_ads/v1/proto/resources/customer_client_link_pb2.py +++ /dev/null @@ -1,126 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/resources/customer_client_link.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.ads.google_ads.v1.proto.enums import manager_link_status_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_manager__link__status__pb2 -from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/resources/customer_client_link.proto', - package='google.ads.googleads.v1.resources', - syntax='proto3', - serialized_options=_b('\n%com.google.ads.googleads.v1.resourcesB\027CustomerClientLinkProtoP\001ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources\242\002\003GAA\252\002!Google.Ads.GoogleAds.V1.Resources\312\002!Google\\Ads\\GoogleAds\\V1\\Resources\352\002%Google::Ads::GoogleAds::V1::Resources'), - serialized_pb=_b('\nBgoogle/ads/googleads_v1/proto/resources/customer_client_link.proto\x12!google.ads.googleads.v1.resources\x1a=google/ads/googleads_v1/proto/enums/manager_link_status.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1cgoogle/api/annotations.proto\"\x9c\x02\n\x12\x43ustomerClientLink\x12\x15\n\rresource_name\x18\x01 \x01(\t\x12\x35\n\x0f\x63lient_customer\x18\x03 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x34\n\x0fmanager_link_id\x18\x04 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12V\n\x06status\x18\x05 \x01(\x0e\x32\x46.google.ads.googleads.v1.enums.ManagerLinkStatusEnum.ManagerLinkStatus\x12*\n\x06hidden\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.BoolValueB\x84\x02\n%com.google.ads.googleads.v1.resourcesB\x17\x43ustomerClientLinkProtoP\x01ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V1.Resources\xca\x02!Google\\Ads\\GoogleAds\\V1\\Resources\xea\x02%Google::Ads::GoogleAds::V1::Resourcesb\x06proto3') - , - dependencies=[google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_manager__link__status__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - - -_CUSTOMERCLIENTLINK = _descriptor.Descriptor( - name='CustomerClientLink', - full_name='google.ads.googleads.v1.resources.CustomerClientLink', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.resources.CustomerClientLink.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='client_customer', full_name='google.ads.googleads.v1.resources.CustomerClientLink.client_customer', index=1, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='manager_link_id', full_name='google.ads.googleads.v1.resources.CustomerClientLink.manager_link_id', index=2, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='status', full_name='google.ads.googleads.v1.resources.CustomerClientLink.status', index=3, - number=5, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='hidden', full_name='google.ads.googleads.v1.resources.CustomerClientLink.hidden', index=4, - number=6, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=231, - serialized_end=515, -) - -_CUSTOMERCLIENTLINK.fields_by_name['client_customer'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_CUSTOMERCLIENTLINK.fields_by_name['manager_link_id'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -_CUSTOMERCLIENTLINK.fields_by_name['status'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_manager__link__status__pb2._MANAGERLINKSTATUSENUM_MANAGERLINKSTATUS -_CUSTOMERCLIENTLINK.fields_by_name['hidden'].message_type = google_dot_protobuf_dot_wrappers__pb2._BOOLVALUE -DESCRIPTOR.message_types_by_name['CustomerClientLink'] = _CUSTOMERCLIENTLINK -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -CustomerClientLink = _reflection.GeneratedProtocolMessageType('CustomerClientLink', (_message.Message,), dict( - DESCRIPTOR = _CUSTOMERCLIENTLINK, - __module__ = 'google.ads.googleads_v1.proto.resources.customer_client_link_pb2' - , - __doc__ = """Represents customer client link relationship. - - - Attributes: - resource_name: - Name of the resource. CustomerClientLink resource names have - the form: ``customers/{customer_id}/customerClientLinks/{clie - nt_customer_id}~{manager_link_id}`` - client_customer: - The client customer linked to this customer. - manager_link_id: - This is uniquely identifies a customer client link. Read only. - status: - This is the status of the link between client and manager. - hidden: - The visibility of the link. Users can choose whether or not to - see hidden links in the AdWords UI. Default value is false - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.resources.CustomerClientLink) - )) -_sym_db.RegisterMessage(CustomerClientLink) - - -DESCRIPTOR._options = None -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/resources/customer_client_pb2.py b/google/ads/google_ads/v1/proto/resources/customer_client_pb2.py deleted file mode 100644 index a5c967f0c..000000000 --- a/google/ads/google_ads/v1/proto/resources/customer_client_pb2.py +++ /dev/null @@ -1,119 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/resources/customer_client.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/resources/customer_client.proto', - package='google.ads.googleads.v1.resources', - syntax='proto3', - serialized_options=_b('\n%com.google.ads.googleads.v1.resourcesB\023CustomerClientProtoP\001ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources\242\002\003GAA\252\002!Google.Ads.GoogleAds.V1.Resources\312\002!Google\\Ads\\GoogleAds\\V1\\Resources\352\002%Google::Ads::GoogleAds::V1::Resources'), - serialized_pb=_b('\n=google/ads/googleads_v1/proto/resources/customer_client.proto\x12!google.ads.googleads.v1.resources\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1cgoogle/api/annotations.proto\"\xb6\x01\n\x0e\x43ustomerClient\x12\x15\n\rresource_name\x18\x01 \x01(\t\x12\x35\n\x0f\x63lient_customer\x18\x03 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12*\n\x06hidden\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.BoolValue\x12*\n\x05level\x18\x05 \x01(\x0b\x32\x1b.google.protobuf.Int64ValueB\x80\x02\n%com.google.ads.googleads.v1.resourcesB\x13\x43ustomerClientProtoP\x01ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V1.Resources\xca\x02!Google\\Ads\\GoogleAds\\V1\\Resources\xea\x02%Google::Ads::GoogleAds::V1::Resourcesb\x06proto3') - , - dependencies=[google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - - -_CUSTOMERCLIENT = _descriptor.Descriptor( - name='CustomerClient', - full_name='google.ads.googleads.v1.resources.CustomerClient', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.resources.CustomerClient.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='client_customer', full_name='google.ads.googleads.v1.resources.CustomerClient.client_customer', index=1, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='hidden', full_name='google.ads.googleads.v1.resources.CustomerClient.hidden', index=2, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='level', full_name='google.ads.googleads.v1.resources.CustomerClient.level', index=3, - number=5, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=163, - serialized_end=345, -) - -_CUSTOMERCLIENT.fields_by_name['client_customer'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_CUSTOMERCLIENT.fields_by_name['hidden'].message_type = google_dot_protobuf_dot_wrappers__pb2._BOOLVALUE -_CUSTOMERCLIENT.fields_by_name['level'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -DESCRIPTOR.message_types_by_name['CustomerClient'] = _CUSTOMERCLIENT -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -CustomerClient = _reflection.GeneratedProtocolMessageType('CustomerClient', (_message.Message,), dict( - DESCRIPTOR = _CUSTOMERCLIENT, - __module__ = 'google.ads.googleads_v1.proto.resources.customer_client_pb2' - , - __doc__ = """A link between the given customer and a client customer. CustomerClients - only exist for manager customers. All direct and indirect client - customers are included, as well as the manager itself. - - - Attributes: - resource_name: - The resource name of the customer client. CustomerClient - resource names have the form: ``customers/{customer_id}/custom - erClients/{client_customer_id}`` - client_customer: - The resource name of the client-customer which is linked to - the given customer. Read only. - hidden: - Specifies whether this is a hidden account. Learn more about - hidden accounts here. Read only. - level: - Distance between given customer and client. For self link, the - level value will be 0. Read only. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.resources.CustomerClient) - )) -_sym_db.RegisterMessage(CustomerClient) - - -DESCRIPTOR._options = None -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/resources/customer_extension_setting_pb2.py b/google/ads/google_ads/v1/proto/resources/customer_extension_setting_pb2.py deleted file mode 100644 index 70a7116b5..000000000 --- a/google/ads/google_ads/v1/proto/resources/customer_extension_setting_pb2.py +++ /dev/null @@ -1,119 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/resources/customer_extension_setting.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.ads.google_ads.v1.proto.enums import extension_setting_device_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_extension__setting__device__pb2 -from google.ads.google_ads.v1.proto.enums import extension_type_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_extension__type__pb2 -from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/resources/customer_extension_setting.proto', - package='google.ads.googleads.v1.resources', - syntax='proto3', - serialized_options=_b('\n%com.google.ads.googleads.v1.resourcesB\035CustomerExtensionSettingProtoP\001ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources\242\002\003GAA\252\002!Google.Ads.GoogleAds.V1.Resources\312\002!Google\\Ads\\GoogleAds\\V1\\Resources\352\002%Google::Ads::GoogleAds::V1::Resources'), - serialized_pb=_b('\nHgoogle/ads/googleads_v1/proto/resources/customer_extension_setting.proto\x12!google.ads.googleads.v1.resources\x1a\x42google/ads/googleads_v1/proto/enums/extension_setting_device.proto\x1a\x38google/ads/googleads_v1/proto/enums/extension_type.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1cgoogle/api/annotations.proto\"\xa7\x02\n\x18\x43ustomerExtensionSetting\x12\x15\n\rresource_name\x18\x01 \x01(\t\x12V\n\x0e\x65xtension_type\x18\x02 \x01(\x0e\x32>.google.ads.googleads.v1.enums.ExtensionTypeEnum.ExtensionType\x12:\n\x14\x65xtension_feed_items\x18\x03 \x03(\x0b\x32\x1c.google.protobuf.StringValue\x12`\n\x06\x64\x65vice\x18\x04 \x01(\x0e\x32P.google.ads.googleads.v1.enums.ExtensionSettingDeviceEnum.ExtensionSettingDeviceB\x8a\x02\n%com.google.ads.googleads.v1.resourcesB\x1d\x43ustomerExtensionSettingProtoP\x01ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V1.Resources\xca\x02!Google\\Ads\\GoogleAds\\V1\\Resources\xea\x02%Google::Ads::GoogleAds::V1::Resourcesb\x06proto3') - , - dependencies=[google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_extension__setting__device__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_extension__type__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - - -_CUSTOMEREXTENSIONSETTING = _descriptor.Descriptor( - name='CustomerExtensionSetting', - full_name='google.ads.googleads.v1.resources.CustomerExtensionSetting', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.resources.CustomerExtensionSetting.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='extension_type', full_name='google.ads.googleads.v1.resources.CustomerExtensionSetting.extension_type', index=1, - number=2, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='extension_feed_items', full_name='google.ads.googleads.v1.resources.CustomerExtensionSetting.extension_feed_items', index=2, - number=3, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='device', full_name='google.ads.googleads.v1.resources.CustomerExtensionSetting.device', index=3, - number=4, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=300, - serialized_end=595, -) - -_CUSTOMEREXTENSIONSETTING.fields_by_name['extension_type'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_extension__type__pb2._EXTENSIONTYPEENUM_EXTENSIONTYPE -_CUSTOMEREXTENSIONSETTING.fields_by_name['extension_feed_items'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_CUSTOMEREXTENSIONSETTING.fields_by_name['device'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_extension__setting__device__pb2._EXTENSIONSETTINGDEVICEENUM_EXTENSIONSETTINGDEVICE -DESCRIPTOR.message_types_by_name['CustomerExtensionSetting'] = _CUSTOMEREXTENSIONSETTING -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -CustomerExtensionSetting = _reflection.GeneratedProtocolMessageType('CustomerExtensionSetting', (_message.Message,), dict( - DESCRIPTOR = _CUSTOMEREXTENSIONSETTING, - __module__ = 'google.ads.googleads_v1.proto.resources.customer_extension_setting_pb2' - , - __doc__ = """A customer extension setting. - - - Attributes: - resource_name: - The resource name of the customer extension setting. - CustomerExtensionSetting resource names have the form: ``cust - omers/{customer_id}/customerExtensionSettings/{extension_type} - `` - extension_type: - The extension type of the customer extension setting. - extension_feed_items: - The resource names of the extension feed items to serve under - the customer. ExtensionFeedItem resource names have the form: - ``customers/{customer_id}/extensionFeedItems/{feed_item_id}`` - device: - The device for which the extensions will serve. Optional. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.resources.CustomerExtensionSetting) - )) -_sym_db.RegisterMessage(CustomerExtensionSetting) - - -DESCRIPTOR._options = None -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/resources/customer_feed_pb2.py b/google/ads/google_ads/v1/proto/resources/customer_feed_pb2.py deleted file mode 100644 index e205f59ff..000000000 --- a/google/ads/google_ads/v1/proto/resources/customer_feed_pb2.py +++ /dev/null @@ -1,130 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/resources/customer_feed.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.ads.google_ads.v1.proto.common import matching_function_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_matching__function__pb2 -from google.ads.google_ads.v1.proto.enums import feed_link_status_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_feed__link__status__pb2 -from google.ads.google_ads.v1.proto.enums import placeholder_type_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_placeholder__type__pb2 -from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/resources/customer_feed.proto', - package='google.ads.googleads.v1.resources', - syntax='proto3', - serialized_options=_b('\n%com.google.ads.googleads.v1.resourcesB\021CustomerFeedProtoP\001ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources\242\002\003GAA\252\002!Google.Ads.GoogleAds.V1.Resources\312\002!Google\\Ads\\GoogleAds\\V1\\Resources\352\002%Google::Ads::GoogleAds::V1::Resources'), - serialized_pb=_b('\n;google/ads/googleads_v1/proto/resources/customer_feed.proto\x12!google.ads.googleads.v1.resources\x1a.google.ads.googleads.v1.enums.CriterionTypeEnum.CriterionType\x12I\n\rcontent_label\x18\x04 \x01(\x0b\x32\x30.google.ads.googleads.v1.common.ContentLabelInfoH\x00\x12S\n\x12mobile_application\x18\x05 \x01(\x0b\x32\x35.google.ads.googleads.v1.common.MobileApplicationInfoH\x00\x12T\n\x13mobile_app_category\x18\x06 \x01(\x0b\x32\x35.google.ads.googleads.v1.common.MobileAppCategoryInfoH\x00\x12\x42\n\tplacement\x18\x07 \x01(\x0b\x32-.google.ads.googleads.v1.common.PlacementInfoH\x00\x12I\n\ryoutube_video\x18\x08 \x01(\x0b\x32\x30.google.ads.googleads.v1.common.YouTubeVideoInfoH\x00\x12M\n\x0fyoutube_channel\x18\t \x01(\x0b\x32\x32.google.ads.googleads.v1.common.YouTubeChannelInfoH\x00\x42\x0b\n\tcriterionB\x8b\x02\n%com.google.ads.googleads.v1.resourcesB\x1e\x43ustomerNegativeCriterionProtoP\x01ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V1.Resources\xca\x02!Google\\Ads\\GoogleAds\\V1\\Resources\xea\x02%Google::Ads::GoogleAds::V1::Resourcesb\x06proto3') - , - dependencies=[google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_criteria__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_criterion__type__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - - -_CUSTOMERNEGATIVECRITERION = _descriptor.Descriptor( - name='CustomerNegativeCriterion', - full_name='google.ads.googleads.v1.resources.CustomerNegativeCriterion', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.resources.CustomerNegativeCriterion.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='id', full_name='google.ads.googleads.v1.resources.CustomerNegativeCriterion.id', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='type', full_name='google.ads.googleads.v1.resources.CustomerNegativeCriterion.type', index=2, - number=3, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='content_label', full_name='google.ads.googleads.v1.resources.CustomerNegativeCriterion.content_label', index=3, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='mobile_application', full_name='google.ads.googleads.v1.resources.CustomerNegativeCriterion.mobile_application', index=4, - number=5, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='mobile_app_category', full_name='google.ads.googleads.v1.resources.CustomerNegativeCriterion.mobile_app_category', index=5, - number=6, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='placement', full_name='google.ads.googleads.v1.resources.CustomerNegativeCriterion.placement', index=6, - number=7, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='youtube_video', full_name='google.ads.googleads.v1.resources.CustomerNegativeCriterion.youtube_video', index=7, - number=8, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='youtube_channel', full_name='google.ads.googleads.v1.resources.CustomerNegativeCriterion.youtube_channel', index=8, - number=9, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='criterion', full_name='google.ads.googleads.v1.resources.CustomerNegativeCriterion.criterion', - index=0, containing_type=None, fields=[]), - ], - serialized_start=286, - serialized_end=936, -) - -_CUSTOMERNEGATIVECRITERION.fields_by_name['id'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -_CUSTOMERNEGATIVECRITERION.fields_by_name['type'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_criterion__type__pb2._CRITERIONTYPEENUM_CRITERIONTYPE -_CUSTOMERNEGATIVECRITERION.fields_by_name['content_label'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_criteria__pb2._CONTENTLABELINFO -_CUSTOMERNEGATIVECRITERION.fields_by_name['mobile_application'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_criteria__pb2._MOBILEAPPLICATIONINFO -_CUSTOMERNEGATIVECRITERION.fields_by_name['mobile_app_category'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_criteria__pb2._MOBILEAPPCATEGORYINFO -_CUSTOMERNEGATIVECRITERION.fields_by_name['placement'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_criteria__pb2._PLACEMENTINFO -_CUSTOMERNEGATIVECRITERION.fields_by_name['youtube_video'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_criteria__pb2._YOUTUBEVIDEOINFO -_CUSTOMERNEGATIVECRITERION.fields_by_name['youtube_channel'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_criteria__pb2._YOUTUBECHANNELINFO -_CUSTOMERNEGATIVECRITERION.oneofs_by_name['criterion'].fields.append( - _CUSTOMERNEGATIVECRITERION.fields_by_name['content_label']) -_CUSTOMERNEGATIVECRITERION.fields_by_name['content_label'].containing_oneof = _CUSTOMERNEGATIVECRITERION.oneofs_by_name['criterion'] -_CUSTOMERNEGATIVECRITERION.oneofs_by_name['criterion'].fields.append( - _CUSTOMERNEGATIVECRITERION.fields_by_name['mobile_application']) -_CUSTOMERNEGATIVECRITERION.fields_by_name['mobile_application'].containing_oneof = _CUSTOMERNEGATIVECRITERION.oneofs_by_name['criterion'] -_CUSTOMERNEGATIVECRITERION.oneofs_by_name['criterion'].fields.append( - _CUSTOMERNEGATIVECRITERION.fields_by_name['mobile_app_category']) -_CUSTOMERNEGATIVECRITERION.fields_by_name['mobile_app_category'].containing_oneof = _CUSTOMERNEGATIVECRITERION.oneofs_by_name['criterion'] -_CUSTOMERNEGATIVECRITERION.oneofs_by_name['criterion'].fields.append( - _CUSTOMERNEGATIVECRITERION.fields_by_name['placement']) -_CUSTOMERNEGATIVECRITERION.fields_by_name['placement'].containing_oneof = _CUSTOMERNEGATIVECRITERION.oneofs_by_name['criterion'] -_CUSTOMERNEGATIVECRITERION.oneofs_by_name['criterion'].fields.append( - _CUSTOMERNEGATIVECRITERION.fields_by_name['youtube_video']) -_CUSTOMERNEGATIVECRITERION.fields_by_name['youtube_video'].containing_oneof = _CUSTOMERNEGATIVECRITERION.oneofs_by_name['criterion'] -_CUSTOMERNEGATIVECRITERION.oneofs_by_name['criterion'].fields.append( - _CUSTOMERNEGATIVECRITERION.fields_by_name['youtube_channel']) -_CUSTOMERNEGATIVECRITERION.fields_by_name['youtube_channel'].containing_oneof = _CUSTOMERNEGATIVECRITERION.oneofs_by_name['criterion'] -DESCRIPTOR.message_types_by_name['CustomerNegativeCriterion'] = _CUSTOMERNEGATIVECRITERION -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -CustomerNegativeCriterion = _reflection.GeneratedProtocolMessageType('CustomerNegativeCriterion', (_message.Message,), dict( - DESCRIPTOR = _CUSTOMERNEGATIVECRITERION, - __module__ = 'google.ads.googleads_v1.proto.resources.customer_negative_criterion_pb2' - , - __doc__ = """A negative criterion for exclusions at the customer level. - - - Attributes: - resource_name: - The resource name of the customer negative criterion. Customer - negative criterion resource names have the form: ``customers/ - {customer_id}/customerNegativeCriteria/{criterion_id}`` - id: - The ID of the criterion. - type: - The type of the criterion. - criterion: - The customer negative criterion. Exactly one must be set. - content_label: - ContentLabel. - mobile_application: - MobileApplication. - mobile_app_category: - MobileAppCategory. - placement: - Placement. - youtube_video: - YouTube Video. - youtube_channel: - YouTube Channel. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.resources.CustomerNegativeCriterion) - )) -_sym_db.RegisterMessage(CustomerNegativeCriterion) - - -DESCRIPTOR._options = None -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/resources/customer_pb2.py b/google/ads/google_ads/v1/proto/resources/customer_pb2.py deleted file mode 100644 index cb8c2f930..000000000 --- a/google/ads/google_ads/v1/proto/resources/customer_pb2.py +++ /dev/null @@ -1,417 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/resources/customer.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.ads.google_ads.v1.proto.enums import customer_pay_per_conversion_eligibility_failure_reason_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_customer__pay__per__conversion__eligibility__failure__reason__pb2 -from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/resources/customer.proto', - package='google.ads.googleads.v1.resources', - syntax='proto3', - serialized_options=_b('\n%com.google.ads.googleads.v1.resourcesB\rCustomerProtoP\001ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources\242\002\003GAA\252\002!Google.Ads.GoogleAds.V1.Resources\312\002!Google\\Ads\\GoogleAds\\V1\\Resources\352\002%Google::Ads::GoogleAds::V1::Resources'), - serialized_pb=_b('\n6google/ads/googleads_v1/proto/resources/customer.proto\x12!google.ads.googleads.v1.resources\x1a`google/ads/googleads_v1/proto/enums/customer_pay_per_conversion_eligibility_failure_reason.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1cgoogle/api/annotations.proto\"\xfe\x07\n\x08\x43ustomer\x12\x15\n\rresource_name\x18\x01 \x01(\t\x12\'\n\x02id\x18\x03 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x36\n\x10\x64\x65scriptive_name\x18\x04 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x33\n\rcurrency_code\x18\x05 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12/\n\ttime_zone\x18\x06 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12;\n\x15tracking_url_template\x18\x07 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x36\n\x10\x66inal_url_suffix\x18\x0b \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x38\n\x14\x61uto_tagging_enabled\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.BoolValue\x12\x36\n\x12has_partners_badge\x18\t \x01(\x0b\x32\x1a.google.protobuf.BoolValue\x12+\n\x07manager\x18\x0c \x01(\x0b\x32\x1a.google.protobuf.BoolValue\x12\x30\n\x0ctest_account\x18\r \x01(\x0b\x32\x1a.google.protobuf.BoolValue\x12W\n\x16\x63\x61ll_reporting_setting\x18\n \x01(\x0b\x32\x37.google.ads.googleads.v1.resources.CallReportingSetting\x12\x61\n\x1b\x63onversion_tracking_setting\x18\x0e \x01(\x0b\x32<.google.ads.googleads.v1.resources.ConversionTrackingSetting\x12R\n\x13remarketing_setting\x18\x0f \x01(\x0b\x32\x35.google.ads.googleads.v1.resources.RemarketingSetting\x12\xbd\x01\n.pay_per_conversion_eligibility_failure_reasons\x18\x10 \x03(\x0e\x32\x84\x01.google.ads.googleads.v1.enums.CustomerPayPerConversionEligibilityFailureReasonEnum.CustomerPayPerConversionEligibilityFailureReason\"\xd7\x01\n\x14\x43\x61llReportingSetting\x12:\n\x16\x63\x61ll_reporting_enabled\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.BoolValue\x12\x45\n!call_conversion_reporting_enabled\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.BoolValue\x12<\n\x16\x63\x61ll_conversion_action\x18\t \x01(\x0b\x32\x1c.google.protobuf.StringValue\"\xa3\x01\n\x19\x43onversionTrackingSetting\x12;\n\x16\x63onversion_tracking_id\x18\x01 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12I\n$cross_account_conversion_tracking_id\x18\x02 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\"R\n\x12RemarketingSetting\x12<\n\x16google_global_site_tag\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValueB\xfa\x01\n%com.google.ads.googleads.v1.resourcesB\rCustomerProtoP\x01ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V1.Resources\xca\x02!Google\\Ads\\GoogleAds\\V1\\Resources\xea\x02%Google::Ads::GoogleAds::V1::Resourcesb\x06proto3') - , - dependencies=[google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_customer__pay__per__conversion__eligibility__failure__reason__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - - -_CUSTOMER = _descriptor.Descriptor( - name='Customer', - full_name='google.ads.googleads.v1.resources.Customer', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.resources.Customer.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='id', full_name='google.ads.googleads.v1.resources.Customer.id', index=1, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='descriptive_name', full_name='google.ads.googleads.v1.resources.Customer.descriptive_name', index=2, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='currency_code', full_name='google.ads.googleads.v1.resources.Customer.currency_code', index=3, - number=5, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='time_zone', full_name='google.ads.googleads.v1.resources.Customer.time_zone', index=4, - number=6, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='tracking_url_template', full_name='google.ads.googleads.v1.resources.Customer.tracking_url_template', index=5, - number=7, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='final_url_suffix', full_name='google.ads.googleads.v1.resources.Customer.final_url_suffix', index=6, - number=11, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='auto_tagging_enabled', full_name='google.ads.googleads.v1.resources.Customer.auto_tagging_enabled', index=7, - number=8, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='has_partners_badge', full_name='google.ads.googleads.v1.resources.Customer.has_partners_badge', index=8, - number=9, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='manager', full_name='google.ads.googleads.v1.resources.Customer.manager', index=9, - number=12, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='test_account', full_name='google.ads.googleads.v1.resources.Customer.test_account', index=10, - number=13, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='call_reporting_setting', full_name='google.ads.googleads.v1.resources.Customer.call_reporting_setting', index=11, - number=10, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='conversion_tracking_setting', full_name='google.ads.googleads.v1.resources.Customer.conversion_tracking_setting', index=12, - number=14, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='remarketing_setting', full_name='google.ads.googleads.v1.resources.Customer.remarketing_setting', index=13, - number=15, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='pay_per_conversion_eligibility_failure_reasons', full_name='google.ads.googleads.v1.resources.Customer.pay_per_conversion_eligibility_failure_reasons', index=14, - number=16, type=14, cpp_type=8, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=254, - serialized_end=1276, -) - - -_CALLREPORTINGSETTING = _descriptor.Descriptor( - name='CallReportingSetting', - full_name='google.ads.googleads.v1.resources.CallReportingSetting', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='call_reporting_enabled', full_name='google.ads.googleads.v1.resources.CallReportingSetting.call_reporting_enabled', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='call_conversion_reporting_enabled', full_name='google.ads.googleads.v1.resources.CallReportingSetting.call_conversion_reporting_enabled', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='call_conversion_action', full_name='google.ads.googleads.v1.resources.CallReportingSetting.call_conversion_action', index=2, - number=9, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1279, - serialized_end=1494, -) - - -_CONVERSIONTRACKINGSETTING = _descriptor.Descriptor( - name='ConversionTrackingSetting', - full_name='google.ads.googleads.v1.resources.ConversionTrackingSetting', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='conversion_tracking_id', full_name='google.ads.googleads.v1.resources.ConversionTrackingSetting.conversion_tracking_id', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='cross_account_conversion_tracking_id', full_name='google.ads.googleads.v1.resources.ConversionTrackingSetting.cross_account_conversion_tracking_id', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1497, - serialized_end=1660, -) - - -_REMARKETINGSETTING = _descriptor.Descriptor( - name='RemarketingSetting', - full_name='google.ads.googleads.v1.resources.RemarketingSetting', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='google_global_site_tag', full_name='google.ads.googleads.v1.resources.RemarketingSetting.google_global_site_tag', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1662, - serialized_end=1744, -) - -_CUSTOMER.fields_by_name['id'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -_CUSTOMER.fields_by_name['descriptive_name'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_CUSTOMER.fields_by_name['currency_code'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_CUSTOMER.fields_by_name['time_zone'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_CUSTOMER.fields_by_name['tracking_url_template'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_CUSTOMER.fields_by_name['final_url_suffix'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_CUSTOMER.fields_by_name['auto_tagging_enabled'].message_type = google_dot_protobuf_dot_wrappers__pb2._BOOLVALUE -_CUSTOMER.fields_by_name['has_partners_badge'].message_type = google_dot_protobuf_dot_wrappers__pb2._BOOLVALUE -_CUSTOMER.fields_by_name['manager'].message_type = google_dot_protobuf_dot_wrappers__pb2._BOOLVALUE -_CUSTOMER.fields_by_name['test_account'].message_type = google_dot_protobuf_dot_wrappers__pb2._BOOLVALUE -_CUSTOMER.fields_by_name['call_reporting_setting'].message_type = _CALLREPORTINGSETTING -_CUSTOMER.fields_by_name['conversion_tracking_setting'].message_type = _CONVERSIONTRACKINGSETTING -_CUSTOMER.fields_by_name['remarketing_setting'].message_type = _REMARKETINGSETTING -_CUSTOMER.fields_by_name['pay_per_conversion_eligibility_failure_reasons'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_customer__pay__per__conversion__eligibility__failure__reason__pb2._CUSTOMERPAYPERCONVERSIONELIGIBILITYFAILUREREASONENUM_CUSTOMERPAYPERCONVERSIONELIGIBILITYFAILUREREASON -_CALLREPORTINGSETTING.fields_by_name['call_reporting_enabled'].message_type = google_dot_protobuf_dot_wrappers__pb2._BOOLVALUE -_CALLREPORTINGSETTING.fields_by_name['call_conversion_reporting_enabled'].message_type = google_dot_protobuf_dot_wrappers__pb2._BOOLVALUE -_CALLREPORTINGSETTING.fields_by_name['call_conversion_action'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_CONVERSIONTRACKINGSETTING.fields_by_name['conversion_tracking_id'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -_CONVERSIONTRACKINGSETTING.fields_by_name['cross_account_conversion_tracking_id'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -_REMARKETINGSETTING.fields_by_name['google_global_site_tag'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -DESCRIPTOR.message_types_by_name['Customer'] = _CUSTOMER -DESCRIPTOR.message_types_by_name['CallReportingSetting'] = _CALLREPORTINGSETTING -DESCRIPTOR.message_types_by_name['ConversionTrackingSetting'] = _CONVERSIONTRACKINGSETTING -DESCRIPTOR.message_types_by_name['RemarketingSetting'] = _REMARKETINGSETTING -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -Customer = _reflection.GeneratedProtocolMessageType('Customer', (_message.Message,), dict( - DESCRIPTOR = _CUSTOMER, - __module__ = 'google.ads.googleads_v1.proto.resources.customer_pb2' - , - __doc__ = """A customer. - - - Attributes: - resource_name: - The resource name of the customer. Customer resource names - have the form: ``customers/{customer_id}`` - id: - The ID of the customer. - descriptive_name: - Optional, non-unique descriptive name of the customer. - currency_code: - The currency in which the account operates. A subset of the - currency codes from the ISO 4217 standard is supported. - time_zone: - The local timezone ID of the customer. - tracking_url_template: - The URL template for constructing a tracking URL out of - parameters. - final_url_suffix: - The URL template for appending params to the final URL - auto_tagging_enabled: - Whether auto-tagging is enabled for the customer. - has_partners_badge: - Whether the Customer has a Partners program badge. If the - Customer is not associated with the Partners program, this - will be false. For more information, see - https://support.google.com/partners/answer/3125774. - manager: - Whether the customer is a manager. - test_account: - Whether the customer is a test account. - call_reporting_setting: - Call reporting setting for a customer. - conversion_tracking_setting: - Conversion tracking setting for a customer. - remarketing_setting: - Remarketing setting for a customer. - pay_per_conversion_eligibility_failure_reasons: - Reasons why the customer is not eligible to use - PaymentMode.CONVERSIONS. If the list is empty, the customer is - eligible. This field is read-only. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.resources.Customer) - )) -_sym_db.RegisterMessage(Customer) - -CallReportingSetting = _reflection.GeneratedProtocolMessageType('CallReportingSetting', (_message.Message,), dict( - DESCRIPTOR = _CALLREPORTINGSETTING, - __module__ = 'google.ads.googleads_v1.proto.resources.customer_pb2' - , - __doc__ = """Call reporting setting for a customer. - - - Attributes: - call_reporting_enabled: - Enable reporting of phone call events by redirecting them via - Google System. - call_conversion_reporting_enabled: - Whether to enable call conversion reporting. - call_conversion_action: - Customer-level call conversion action to attribute a call - conversion to. If not set a default conversion action is used. - Only in effect when call\_conversion\_reporting\_enabled is - set to true. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.resources.CallReportingSetting) - )) -_sym_db.RegisterMessage(CallReportingSetting) - -ConversionTrackingSetting = _reflection.GeneratedProtocolMessageType('ConversionTrackingSetting', (_message.Message,), dict( - DESCRIPTOR = _CONVERSIONTRACKINGSETTING, - __module__ = 'google.ads.googleads_v1.proto.resources.customer_pb2' - , - __doc__ = """A collection of customer-wide settings related to Google Ads Conversion - Tracking. - - - Attributes: - conversion_tracking_id: - The conversion tracking id used for this account. This id is - automatically assigned after any conversion tracking feature - is used. If the customer doesn't use conversion tracking, this - is 0. This field is read-only. - cross_account_conversion_tracking_id: - The conversion tracking id of the customer's manager. This is - set when the customer is opted into cross account conversion - tracking, and it overrides conversion\_tracking\_id. This - field can only be managed through the Google Ads UI. This - field is read-only. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.resources.ConversionTrackingSetting) - )) -_sym_db.RegisterMessage(ConversionTrackingSetting) - -RemarketingSetting = _reflection.GeneratedProtocolMessageType('RemarketingSetting', (_message.Message,), dict( - DESCRIPTOR = _REMARKETINGSETTING, - __module__ = 'google.ads.googleads_v1.proto.resources.customer_pb2' - , - __doc__ = """Remarketing setting for a customer. - - - Attributes: - google_global_site_tag: - The Google global site tag. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.resources.RemarketingSetting) - )) -_sym_db.RegisterMessage(RemarketingSetting) - - -DESCRIPTOR._options = None -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/resources/detail_placement_view_pb2.py b/google/ads/google_ads/v1/proto/resources/detail_placement_view_pb2.py deleted file mode 100644 index 1904c21ea..000000000 --- a/google/ads/google_ads/v1/proto/resources/detail_placement_view_pb2.py +++ /dev/null @@ -1,142 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/resources/detail_placement_view.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.ads.google_ads.v1.proto.enums import placement_type_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_placement__type__pb2 -from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/resources/detail_placement_view.proto', - package='google.ads.googleads.v1.resources', - syntax='proto3', - serialized_options=_b('\n%com.google.ads.googleads.v1.resourcesB\030DetailPlacementViewProtoP\001ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources\242\002\003GAA\252\002!Google.Ads.GoogleAds.V1.Resources\312\002!Google\\Ads\\GoogleAds\\V1\\Resources\352\002%Google::Ads::GoogleAds::V1::Resources'), - serialized_pb=_b('\nCgoogle/ads/googleads_v1/proto/resources/detail_placement_view.proto\x12!google.ads.googleads.v1.resources\x1a\x38google/ads/googleads_v1/proto/enums/placement_type.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1cgoogle/api/annotations.proto\"\xdd\x02\n\x13\x44\x65tailPlacementView\x12\x15\n\rresource_name\x18\x01 \x01(\t\x12/\n\tplacement\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x32\n\x0c\x64isplay_name\x18\x03 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12@\n\x1agroup_placement_target_url\x18\x04 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x30\n\ntarget_url\x18\x05 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12V\n\x0eplacement_type\x18\x06 \x01(\x0e\x32>.google.ads.googleads.v1.enums.PlacementTypeEnum.PlacementTypeB\x85\x02\n%com.google.ads.googleads.v1.resourcesB\x18\x44\x65tailPlacementViewProtoP\x01ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V1.Resources\xca\x02!Google\\Ads\\GoogleAds\\V1\\Resources\xea\x02%Google::Ads::GoogleAds::V1::Resourcesb\x06proto3') - , - dependencies=[google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_placement__type__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - - -_DETAILPLACEMENTVIEW = _descriptor.Descriptor( - name='DetailPlacementView', - full_name='google.ads.googleads.v1.resources.DetailPlacementView', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.resources.DetailPlacementView.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='placement', full_name='google.ads.googleads.v1.resources.DetailPlacementView.placement', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='display_name', full_name='google.ads.googleads.v1.resources.DetailPlacementView.display_name', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='group_placement_target_url', full_name='google.ads.googleads.v1.resources.DetailPlacementView.group_placement_target_url', index=3, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='target_url', full_name='google.ads.googleads.v1.resources.DetailPlacementView.target_url', index=4, - number=5, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='placement_type', full_name='google.ads.googleads.v1.resources.DetailPlacementView.placement_type', index=5, - number=6, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=227, - serialized_end=576, -) - -_DETAILPLACEMENTVIEW.fields_by_name['placement'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_DETAILPLACEMENTVIEW.fields_by_name['display_name'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_DETAILPLACEMENTVIEW.fields_by_name['group_placement_target_url'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_DETAILPLACEMENTVIEW.fields_by_name['target_url'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_DETAILPLACEMENTVIEW.fields_by_name['placement_type'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_placement__type__pb2._PLACEMENTTYPEENUM_PLACEMENTTYPE -DESCRIPTOR.message_types_by_name['DetailPlacementView'] = _DETAILPLACEMENTVIEW -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -DetailPlacementView = _reflection.GeneratedProtocolMessageType('DetailPlacementView', (_message.Message,), dict( - DESCRIPTOR = _DETAILPLACEMENTVIEW, - __module__ = 'google.ads.googleads_v1.proto.resources.detail_placement_view_pb2' - , - __doc__ = """A view with metrics aggregated by ad group and URL or YouTube video. - - - Attributes: - resource_name: - The resource name of the detail placement view. Detail - placement view resource names have the form: ``customers/{cus - tomer_id}/detailPlacementViews/{ad_group_id}~{base64_placement - }`` - placement: - The automatic placement string at detail level, e. g. website - URL, mobile application ID, or a YouTube video ID. - display_name: - The display name is URL name for websites, YouTube video name - for YouTube videos, and translated mobile app name for mobile - apps. - group_placement_target_url: - URL of the group placement, e.g. domain, link to the mobile - application in app store, or a YouTube channel URL. - target_url: - URL of the placement, e.g. website, link to the mobile - application in app store, or a YouTube video URL. - placement_type: - Type of the placement, e.g. Website, YouTube Video, and Mobile - Application. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.resources.DetailPlacementView) - )) -_sym_db.RegisterMessage(DetailPlacementView) - - -DESCRIPTOR._options = None -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/resources/display_keyword_view_pb2.py b/google/ads/google_ads/v1/proto/resources/display_keyword_view_pb2.py deleted file mode 100644 index 4d1b81513..000000000 --- a/google/ads/google_ads/v1/proto/resources/display_keyword_view_pb2.py +++ /dev/null @@ -1,83 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/resources/display_keyword_view.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/resources/display_keyword_view.proto', - package='google.ads.googleads.v1.resources', - syntax='proto3', - serialized_options=_b('\n%com.google.ads.googleads.v1.resourcesB\027DisplayKeywordViewProtoP\001ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources\242\002\003GAA\252\002!Google.Ads.GoogleAds.V1.Resources\312\002!Google\\Ads\\GoogleAds\\V1\\Resources\352\002%Google::Ads::GoogleAds::V1::Resources'), - serialized_pb=_b('\nBgoogle/ads/googleads_v1/proto/resources/display_keyword_view.proto\x12!google.ads.googleads.v1.resources\x1a\x1cgoogle/api/annotations.proto\"+\n\x12\x44isplayKeywordView\x12\x15\n\rresource_name\x18\x01 \x01(\tB\x84\x02\n%com.google.ads.googleads.v1.resourcesB\x17\x44isplayKeywordViewProtoP\x01ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V1.Resources\xca\x02!Google\\Ads\\GoogleAds\\V1\\Resources\xea\x02%Google::Ads::GoogleAds::V1::Resourcesb\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - - -_DISPLAYKEYWORDVIEW = _descriptor.Descriptor( - name='DisplayKeywordView', - full_name='google.ads.googleads.v1.resources.DisplayKeywordView', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.resources.DisplayKeywordView.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=135, - serialized_end=178, -) - -DESCRIPTOR.message_types_by_name['DisplayKeywordView'] = _DISPLAYKEYWORDVIEW -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -DisplayKeywordView = _reflection.GeneratedProtocolMessageType('DisplayKeywordView', (_message.Message,), dict( - DESCRIPTOR = _DISPLAYKEYWORDVIEW, - __module__ = 'google.ads.googleads_v1.proto.resources.display_keyword_view_pb2' - , - __doc__ = """A display keyword view. - - - Attributes: - resource_name: - The resource name of the display keyword view. Display Keyword - view resource names have the form: ``customers/{customer_id}/ - displayKeywordViews/{ad_group_id}~{criterion_id}`` - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.resources.DisplayKeywordView) - )) -_sym_db.RegisterMessage(DisplayKeywordView) - - -DESCRIPTOR._options = None -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/resources/domain_category_pb2.py b/google/ads/google_ads/v1/proto/resources/domain_category_pb2.py deleted file mode 100644 index e3f6e430f..000000000 --- a/google/ads/google_ads/v1/proto/resources/domain_category_pb2.py +++ /dev/null @@ -1,177 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/resources/domain_category.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/resources/domain_category.proto', - package='google.ads.googleads.v1.resources', - syntax='proto3', - serialized_options=_b('\n%com.google.ads.googleads.v1.resourcesB\023DomainCategoryProtoP\001ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources\242\002\003GAA\252\002!Google.Ads.GoogleAds.V1.Resources\312\002!Google\\Ads\\GoogleAds\\V1\\Resources\352\002%Google::Ads::GoogleAds::V1::Resources'), - serialized_pb=_b('\n=google/ads/googleads_v1/proto/resources/domain_category.proto\x12!google.ads.googleads.v1.resources\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1cgoogle/api/annotations.proto\"\xca\x03\n\x0e\x44omainCategory\x12\x15\n\rresource_name\x18\x01 \x01(\t\x12.\n\x08\x63\x61mpaign\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12.\n\x08\x63\x61tegory\x18\x03 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x33\n\rlanguage_code\x18\x04 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12,\n\x06\x64omain\x18\x05 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x37\n\x11\x63overage_fraction\x18\x06 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12\x32\n\rcategory_rank\x18\x07 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x30\n\x0chas_children\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.BoolValue\x12?\n\x1arecommended_cpc_bid_micros\x18\t \x01(\x0b\x32\x1b.google.protobuf.Int64ValueB\x80\x02\n%com.google.ads.googleads.v1.resourcesB\x13\x44omainCategoryProtoP\x01ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V1.Resources\xca\x02!Google\\Ads\\GoogleAds\\V1\\Resources\xea\x02%Google::Ads::GoogleAds::V1::Resourcesb\x06proto3') - , - dependencies=[google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - - -_DOMAINCATEGORY = _descriptor.Descriptor( - name='DomainCategory', - full_name='google.ads.googleads.v1.resources.DomainCategory', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.resources.DomainCategory.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='campaign', full_name='google.ads.googleads.v1.resources.DomainCategory.campaign', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='category', full_name='google.ads.googleads.v1.resources.DomainCategory.category', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='language_code', full_name='google.ads.googleads.v1.resources.DomainCategory.language_code', index=3, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='domain', full_name='google.ads.googleads.v1.resources.DomainCategory.domain', index=4, - number=5, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='coverage_fraction', full_name='google.ads.googleads.v1.resources.DomainCategory.coverage_fraction', index=5, - number=6, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='category_rank', full_name='google.ads.googleads.v1.resources.DomainCategory.category_rank', index=6, - number=7, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='has_children', full_name='google.ads.googleads.v1.resources.DomainCategory.has_children', index=7, - number=8, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='recommended_cpc_bid_micros', full_name='google.ads.googleads.v1.resources.DomainCategory.recommended_cpc_bid_micros', index=8, - number=9, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=163, - serialized_end=621, -) - -_DOMAINCATEGORY.fields_by_name['campaign'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_DOMAINCATEGORY.fields_by_name['category'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_DOMAINCATEGORY.fields_by_name['language_code'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_DOMAINCATEGORY.fields_by_name['domain'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_DOMAINCATEGORY.fields_by_name['coverage_fraction'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE -_DOMAINCATEGORY.fields_by_name['category_rank'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -_DOMAINCATEGORY.fields_by_name['has_children'].message_type = google_dot_protobuf_dot_wrappers__pb2._BOOLVALUE -_DOMAINCATEGORY.fields_by_name['recommended_cpc_bid_micros'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -DESCRIPTOR.message_types_by_name['DomainCategory'] = _DOMAINCATEGORY -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -DomainCategory = _reflection.GeneratedProtocolMessageType('DomainCategory', (_message.Message,), dict( - DESCRIPTOR = _DOMAINCATEGORY, - __module__ = 'google.ads.googleads_v1.proto.resources.domain_category_pb2' - , - __doc__ = """A category generated automatically by crawling a domain. If a campaign - uses the DynamicSearchAdsSetting, then domain categories will be - generated for the domain. The categories can be targeted using - WebpageConditionInfo. See: - https://support.google.com/google-ads/answer/2471185 - - - Attributes: - resource_name: - The resource name of the domain category. Domain category - resource names have the form: ``customers/{customer_id}/domai - nCategories/{campaign_id}~{category_base64}~{language_code}`` - campaign: - The campaign this category is recommended for. - category: - Recommended category for the website domain. e.g. if you have - a website about electronics, the categories could be - "cameras", "televisions", etc. - language_code: - The language code specifying the language of the website. e.g. - "en" for English. The language can be specified in the - DynamicSearchAdsSetting required for dynamic search ads. This - is the language of the pages from your website that you want - Google Ads to find, create ads for, and match searches with. - domain: - The domain for the website. The domain can be specified in the - DynamicSearchAdsSetting required for dynamic search ads. - coverage_fraction: - Fraction of pages on your site that this category matches. - category_rank: - The position of this category in the set of categories. Lower - numbers indicate a better match for the domain. null indicates - not recommended. - has_children: - Indicates whether this category has sub-categories. - recommended_cpc_bid_micros: - The recommended cost per click for the category. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.resources.DomainCategory) - )) -_sym_db.RegisterMessage(DomainCategory) - - -DESCRIPTOR._options = None -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/resources/dynamic_search_ads_search_term_view_pb2.py b/google/ads/google_ads/v1/proto/resources/dynamic_search_ads_search_term_view_pb2.py deleted file mode 100644 index 8a7117a7c..000000000 --- a/google/ads/google_ads/v1/proto/resources/dynamic_search_ads_search_term_view_pb2.py +++ /dev/null @@ -1,129 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/resources/dynamic_search_ads_search_term_view.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/resources/dynamic_search_ads_search_term_view.proto', - package='google.ads.googleads.v1.resources', - syntax='proto3', - serialized_options=_b('\n%com.google.ads.googleads.v1.resourcesB#DynamicSearchAdsSearchTermViewProtoP\001ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources\242\002\003GAA\252\002!Google.Ads.GoogleAds.V1.Resources\312\002!Google\\Ads\\GoogleAds\\V1\\Resources\352\002%Google::Ads::GoogleAds::V1::Resources'), - serialized_pb=_b('\nQgoogle/ads/googleads_v1/proto/resources/dynamic_search_ads_search_term_view.proto\x12!google.ads.googleads.v1.resources\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1cgoogle/api/annotations.proto\"\xfe\x01\n\x1e\x44ynamicSearchAdsSearchTermView\x12\x15\n\rresource_name\x18\x01 \x01(\t\x12\x31\n\x0bsearch_term\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12.\n\x08headline\x18\x03 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x32\n\x0clanding_page\x18\x04 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12.\n\x08page_url\x18\x05 \x01(\x0b\x32\x1c.google.protobuf.StringValueB\x90\x02\n%com.google.ads.googleads.v1.resourcesB#DynamicSearchAdsSearchTermViewProtoP\x01ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V1.Resources\xca\x02!Google\\Ads\\GoogleAds\\V1\\Resources\xea\x02%Google::Ads::GoogleAds::V1::Resourcesb\x06proto3') - , - dependencies=[google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - - -_DYNAMICSEARCHADSSEARCHTERMVIEW = _descriptor.Descriptor( - name='DynamicSearchAdsSearchTermView', - full_name='google.ads.googleads.v1.resources.DynamicSearchAdsSearchTermView', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.resources.DynamicSearchAdsSearchTermView.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='search_term', full_name='google.ads.googleads.v1.resources.DynamicSearchAdsSearchTermView.search_term', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='headline', full_name='google.ads.googleads.v1.resources.DynamicSearchAdsSearchTermView.headline', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='landing_page', full_name='google.ads.googleads.v1.resources.DynamicSearchAdsSearchTermView.landing_page', index=3, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='page_url', full_name='google.ads.googleads.v1.resources.DynamicSearchAdsSearchTermView.page_url', index=4, - number=5, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=183, - serialized_end=437, -) - -_DYNAMICSEARCHADSSEARCHTERMVIEW.fields_by_name['search_term'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_DYNAMICSEARCHADSSEARCHTERMVIEW.fields_by_name['headline'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_DYNAMICSEARCHADSSEARCHTERMVIEW.fields_by_name['landing_page'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_DYNAMICSEARCHADSSEARCHTERMVIEW.fields_by_name['page_url'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -DESCRIPTOR.message_types_by_name['DynamicSearchAdsSearchTermView'] = _DYNAMICSEARCHADSSEARCHTERMVIEW -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -DynamicSearchAdsSearchTermView = _reflection.GeneratedProtocolMessageType('DynamicSearchAdsSearchTermView', (_message.Message,), dict( - DESCRIPTOR = _DYNAMICSEARCHADSSEARCHTERMVIEW, - __module__ = 'google.ads.googleads_v1.proto.resources.dynamic_search_ads_search_term_view_pb2' - , - __doc__ = """A dynamic search ads search term view. - - - Attributes: - resource_name: - The resource name of the dynamic search ads search term view. - Dynamic search ads search term view resource names have the - form: ``customers/{customer_id}/dynamicSearchAdsSearchTermVie - ws/{ad_group_id}~{search_term_fp}~{headline_fp}~{landing_page_ - fp}~{page_url_fp}`` - search_term: - Search term This field is read-only. - headline: - The dynamically generated headline of the Dynamic Search Ad. - This field is read-only. - landing_page: - The dynamically selected landing page URL of the impression. - This field is read-only. - page_url: - The URL of page feed item served for the impression. This - field is read-only. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.resources.DynamicSearchAdsSearchTermView) - )) -_sym_db.RegisterMessage(DynamicSearchAdsSearchTermView) - - -DESCRIPTOR._options = None -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/resources/expanded_landing_page_view_pb2.py b/google/ads/google_ads/v1/proto/resources/expanded_landing_page_view_pb2.py deleted file mode 100644 index 22ab6c57a..000000000 --- a/google/ads/google_ads/v1/proto/resources/expanded_landing_page_view_pb2.py +++ /dev/null @@ -1,96 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/resources/expanded_landing_page_view.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/resources/expanded_landing_page_view.proto', - package='google.ads.googleads.v1.resources', - syntax='proto3', - serialized_options=_b('\n%com.google.ads.googleads.v1.resourcesB\034ExpandedLandingPageViewProtoP\001ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources\242\002\003GAA\252\002!Google.Ads.GoogleAds.V1.Resources\312\002!Google\\Ads\\GoogleAds\\V1\\Resources\352\002%Google::Ads::GoogleAds::V1::Resources'), - serialized_pb=_b('\nHgoogle/ads/googleads_v1/proto/resources/expanded_landing_page_view.proto\x12!google.ads.googleads.v1.resources\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1cgoogle/api/annotations.proto\"j\n\x17\x45xpandedLandingPageView\x12\x15\n\rresource_name\x18\x01 \x01(\t\x12\x38\n\x12\x65xpanded_final_url\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValueB\x89\x02\n%com.google.ads.googleads.v1.resourcesB\x1c\x45xpandedLandingPageViewProtoP\x01ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V1.Resources\xca\x02!Google\\Ads\\GoogleAds\\V1\\Resources\xea\x02%Google::Ads::GoogleAds::V1::Resourcesb\x06proto3') - , - dependencies=[google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - - -_EXPANDEDLANDINGPAGEVIEW = _descriptor.Descriptor( - name='ExpandedLandingPageView', - full_name='google.ads.googleads.v1.resources.ExpandedLandingPageView', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.resources.ExpandedLandingPageView.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='expanded_final_url', full_name='google.ads.googleads.v1.resources.ExpandedLandingPageView.expanded_final_url', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=173, - serialized_end=279, -) - -_EXPANDEDLANDINGPAGEVIEW.fields_by_name['expanded_final_url'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -DESCRIPTOR.message_types_by_name['ExpandedLandingPageView'] = _EXPANDEDLANDINGPAGEVIEW -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -ExpandedLandingPageView = _reflection.GeneratedProtocolMessageType('ExpandedLandingPageView', (_message.Message,), dict( - DESCRIPTOR = _EXPANDEDLANDINGPAGEVIEW, - __module__ = 'google.ads.googleads_v1.proto.resources.expanded_landing_page_view_pb2' - , - __doc__ = """A landing page view with metrics aggregated at the expanded final URL - level. - - - Attributes: - resource_name: - The resource name of the expanded landing page view. Expanded - landing page view resource names have the form: ``customers/{ - customer_id}/expandedLandingPageViews/{expanded_final_url_fing - erprint}`` - expanded_final_url: - The final URL that clicks are directed to. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.resources.ExpandedLandingPageView) - )) -_sym_db.RegisterMessage(ExpandedLandingPageView) - - -DESCRIPTOR._options = None -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/resources/extension_feed_item_pb2.py b/google/ads/google_ads/v1/proto/resources/extension_feed_item_pb2.py deleted file mode 100644 index 1dd8b9c38..000000000 --- a/google/ads/google_ads/v1/proto/resources/extension_feed_item_pb2.py +++ /dev/null @@ -1,336 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/resources/extension_feed_item.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.ads.google_ads.v1.proto.common import criteria_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_criteria__pb2 -from google.ads.google_ads.v1.proto.common import extensions_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_extensions__pb2 -from google.ads.google_ads.v1.proto.enums import extension_type_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_extension__type__pb2 -from google.ads.google_ads.v1.proto.enums import feed_item_status_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_feed__item__status__pb2 -from google.ads.google_ads.v1.proto.enums import feed_item_target_device_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_feed__item__target__device__pb2 -from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/resources/extension_feed_item.proto', - package='google.ads.googleads.v1.resources', - syntax='proto3', - serialized_options=_b('\n%com.google.ads.googleads.v1.resourcesB\026ExtensionFeedItemProtoP\001ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources\242\002\003GAA\252\002!Google.Ads.GoogleAds.V1.Resources\312\002!Google\\Ads\\GoogleAds\\V1\\Resources\352\002%Google::Ads::GoogleAds::V1::Resources'), - serialized_pb=_b('\nAgoogle/ads/googleads_v1/proto/resources/extension_feed_item.proto\x12!google.ads.googleads.v1.resources\x1a\x33google/ads/googleads_v1/proto/common/criteria.proto\x1a\x35google/ads/googleads_v1/proto/common/extensions.proto\x1a\x38google/ads/googleads_v1/proto/enums/extension_type.proto\x1a:google/ads/googleads_v1/proto/enums/feed_item_status.proto\x1a\x41google/ads/googleads_v1/proto/enums/feed_item_target_device.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1cgoogle/api/annotations.proto\"\xfe\x0b\n\x11\x45xtensionFeedItem\x12\x15\n\rresource_name\x18\x01 \x01(\t\x12V\n\x0e\x65xtension_type\x18\r \x01(\x0e\x32>.google.ads.googleads.v1.enums.ExtensionTypeEnum.ExtensionType\x12\x35\n\x0fstart_date_time\x18\x05 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x33\n\rend_date_time\x18\x06 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x44\n\x0c\x61\x64_schedules\x18\x10 \x03(\x0b\x32..google.ads.googleads.v1.common.AdScheduleInfo\x12\\\n\x06\x64\x65vice\x18\x11 \x01(\x0e\x32L.google.ads.googleads.v1.enums.FeedItemTargetDeviceEnum.FeedItemTargetDevice\x12\x42\n\x1ctargeted_geo_target_constant\x18\x14 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12P\n\x06status\x18\x04 \x01(\x0e\x32@.google.ads.googleads.v1.enums.FeedItemStatusEnum.FeedItemStatus\x12N\n\x12sitelink_feed_item\x18\x02 \x01(\x0b\x32\x30.google.ads.googleads.v1.common.SitelinkFeedItemH\x00\x12\x61\n\x1cstructured_snippet_feed_item\x18\x03 \x01(\x0b\x32\x39.google.ads.googleads.v1.common.StructuredSnippetFeedItemH\x00\x12\x44\n\rapp_feed_item\x18\x07 \x01(\x0b\x32+.google.ads.googleads.v1.common.AppFeedItemH\x00\x12\x46\n\x0e\x63\x61ll_feed_item\x18\x08 \x01(\x0b\x32,.google.ads.googleads.v1.common.CallFeedItemH\x00\x12L\n\x11\x63\x61llout_feed_item\x18\t \x01(\x0b\x32/.google.ads.googleads.v1.common.CalloutFeedItemH\x00\x12U\n\x16text_message_feed_item\x18\n \x01(\x0b\x32\x33.google.ads.googleads.v1.common.TextMessageFeedItemH\x00\x12H\n\x0fprice_feed_item\x18\x0b \x01(\x0b\x32-.google.ads.googleads.v1.common.PriceFeedItemH\x00\x12P\n\x13promotion_feed_item\x18\x0c \x01(\x0b\x32\x31.google.ads.googleads.v1.common.PromotionFeedItemH\x00\x12N\n\x12location_feed_item\x18\x0e \x01(\x0b\x32\x30.google.ads.googleads.v1.common.LocationFeedItemH\x00\x12\x61\n\x1c\x61\x66\x66iliate_location_feed_item\x18\x0f \x01(\x0b\x32\x39.google.ads.googleads.v1.common.AffiliateLocationFeedItemH\x00\x12\x39\n\x11targeted_campaign\x18\x12 \x01(\x0b\x32\x1c.google.protobuf.StringValueH\x01\x12\x39\n\x11targeted_ad_group\x18\x13 \x01(\x0b\x32\x1c.google.protobuf.StringValueH\x01\x42\x0b\n\textensionB\x1c\n\x1aserving_resource_targetingB\x83\x02\n%com.google.ads.googleads.v1.resourcesB\x16\x45xtensionFeedItemProtoP\x01ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V1.Resources\xca\x02!Google\\Ads\\GoogleAds\\V1\\Resources\xea\x02%Google::Ads::GoogleAds::V1::Resourcesb\x06proto3') - , - dependencies=[google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_criteria__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_extensions__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_extension__type__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_feed__item__status__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_feed__item__target__device__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - - -_EXTENSIONFEEDITEM = _descriptor.Descriptor( - name='ExtensionFeedItem', - full_name='google.ads.googleads.v1.resources.ExtensionFeedItem', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.resources.ExtensionFeedItem.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='extension_type', full_name='google.ads.googleads.v1.resources.ExtensionFeedItem.extension_type', index=1, - number=13, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='start_date_time', full_name='google.ads.googleads.v1.resources.ExtensionFeedItem.start_date_time', index=2, - number=5, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='end_date_time', full_name='google.ads.googleads.v1.resources.ExtensionFeedItem.end_date_time', index=3, - number=6, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='ad_schedules', full_name='google.ads.googleads.v1.resources.ExtensionFeedItem.ad_schedules', index=4, - number=16, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='device', full_name='google.ads.googleads.v1.resources.ExtensionFeedItem.device', index=5, - number=17, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='targeted_geo_target_constant', full_name='google.ads.googleads.v1.resources.ExtensionFeedItem.targeted_geo_target_constant', index=6, - number=20, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='status', full_name='google.ads.googleads.v1.resources.ExtensionFeedItem.status', index=7, - number=4, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='sitelink_feed_item', full_name='google.ads.googleads.v1.resources.ExtensionFeedItem.sitelink_feed_item', index=8, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='structured_snippet_feed_item', full_name='google.ads.googleads.v1.resources.ExtensionFeedItem.structured_snippet_feed_item', index=9, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='app_feed_item', full_name='google.ads.googleads.v1.resources.ExtensionFeedItem.app_feed_item', index=10, - number=7, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='call_feed_item', full_name='google.ads.googleads.v1.resources.ExtensionFeedItem.call_feed_item', index=11, - number=8, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='callout_feed_item', full_name='google.ads.googleads.v1.resources.ExtensionFeedItem.callout_feed_item', index=12, - number=9, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='text_message_feed_item', full_name='google.ads.googleads.v1.resources.ExtensionFeedItem.text_message_feed_item', index=13, - number=10, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='price_feed_item', full_name='google.ads.googleads.v1.resources.ExtensionFeedItem.price_feed_item', index=14, - number=11, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='promotion_feed_item', full_name='google.ads.googleads.v1.resources.ExtensionFeedItem.promotion_feed_item', index=15, - number=12, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='location_feed_item', full_name='google.ads.googleads.v1.resources.ExtensionFeedItem.location_feed_item', index=16, - number=14, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='affiliate_location_feed_item', full_name='google.ads.googleads.v1.resources.ExtensionFeedItem.affiliate_location_feed_item', index=17, - number=15, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='targeted_campaign', full_name='google.ads.googleads.v1.resources.ExtensionFeedItem.targeted_campaign', index=18, - number=18, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='targeted_ad_group', full_name='google.ads.googleads.v1.resources.ExtensionFeedItem.targeted_ad_group', index=19, - number=19, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='extension', full_name='google.ads.googleads.v1.resources.ExtensionFeedItem.extension', - index=0, containing_type=None, fields=[]), - _descriptor.OneofDescriptor( - name='serving_resource_targeting', full_name='google.ads.googleads.v1.resources.ExtensionFeedItem.serving_resource_targeting', - index=1, containing_type=None, fields=[]), - ], - serialized_start=460, - serialized_end=1994, -) - -_EXTENSIONFEEDITEM.fields_by_name['extension_type'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_extension__type__pb2._EXTENSIONTYPEENUM_EXTENSIONTYPE -_EXTENSIONFEEDITEM.fields_by_name['start_date_time'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_EXTENSIONFEEDITEM.fields_by_name['end_date_time'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_EXTENSIONFEEDITEM.fields_by_name['ad_schedules'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_criteria__pb2._ADSCHEDULEINFO -_EXTENSIONFEEDITEM.fields_by_name['device'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_feed__item__target__device__pb2._FEEDITEMTARGETDEVICEENUM_FEEDITEMTARGETDEVICE -_EXTENSIONFEEDITEM.fields_by_name['targeted_geo_target_constant'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_EXTENSIONFEEDITEM.fields_by_name['status'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_feed__item__status__pb2._FEEDITEMSTATUSENUM_FEEDITEMSTATUS -_EXTENSIONFEEDITEM.fields_by_name['sitelink_feed_item'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_extensions__pb2._SITELINKFEEDITEM -_EXTENSIONFEEDITEM.fields_by_name['structured_snippet_feed_item'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_extensions__pb2._STRUCTUREDSNIPPETFEEDITEM -_EXTENSIONFEEDITEM.fields_by_name['app_feed_item'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_extensions__pb2._APPFEEDITEM -_EXTENSIONFEEDITEM.fields_by_name['call_feed_item'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_extensions__pb2._CALLFEEDITEM -_EXTENSIONFEEDITEM.fields_by_name['callout_feed_item'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_extensions__pb2._CALLOUTFEEDITEM -_EXTENSIONFEEDITEM.fields_by_name['text_message_feed_item'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_extensions__pb2._TEXTMESSAGEFEEDITEM -_EXTENSIONFEEDITEM.fields_by_name['price_feed_item'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_extensions__pb2._PRICEFEEDITEM -_EXTENSIONFEEDITEM.fields_by_name['promotion_feed_item'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_extensions__pb2._PROMOTIONFEEDITEM -_EXTENSIONFEEDITEM.fields_by_name['location_feed_item'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_extensions__pb2._LOCATIONFEEDITEM -_EXTENSIONFEEDITEM.fields_by_name['affiliate_location_feed_item'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_extensions__pb2._AFFILIATELOCATIONFEEDITEM -_EXTENSIONFEEDITEM.fields_by_name['targeted_campaign'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_EXTENSIONFEEDITEM.fields_by_name['targeted_ad_group'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_EXTENSIONFEEDITEM.oneofs_by_name['extension'].fields.append( - _EXTENSIONFEEDITEM.fields_by_name['sitelink_feed_item']) -_EXTENSIONFEEDITEM.fields_by_name['sitelink_feed_item'].containing_oneof = _EXTENSIONFEEDITEM.oneofs_by_name['extension'] -_EXTENSIONFEEDITEM.oneofs_by_name['extension'].fields.append( - _EXTENSIONFEEDITEM.fields_by_name['structured_snippet_feed_item']) -_EXTENSIONFEEDITEM.fields_by_name['structured_snippet_feed_item'].containing_oneof = _EXTENSIONFEEDITEM.oneofs_by_name['extension'] -_EXTENSIONFEEDITEM.oneofs_by_name['extension'].fields.append( - _EXTENSIONFEEDITEM.fields_by_name['app_feed_item']) -_EXTENSIONFEEDITEM.fields_by_name['app_feed_item'].containing_oneof = _EXTENSIONFEEDITEM.oneofs_by_name['extension'] -_EXTENSIONFEEDITEM.oneofs_by_name['extension'].fields.append( - _EXTENSIONFEEDITEM.fields_by_name['call_feed_item']) -_EXTENSIONFEEDITEM.fields_by_name['call_feed_item'].containing_oneof = _EXTENSIONFEEDITEM.oneofs_by_name['extension'] -_EXTENSIONFEEDITEM.oneofs_by_name['extension'].fields.append( - _EXTENSIONFEEDITEM.fields_by_name['callout_feed_item']) -_EXTENSIONFEEDITEM.fields_by_name['callout_feed_item'].containing_oneof = _EXTENSIONFEEDITEM.oneofs_by_name['extension'] -_EXTENSIONFEEDITEM.oneofs_by_name['extension'].fields.append( - _EXTENSIONFEEDITEM.fields_by_name['text_message_feed_item']) -_EXTENSIONFEEDITEM.fields_by_name['text_message_feed_item'].containing_oneof = _EXTENSIONFEEDITEM.oneofs_by_name['extension'] -_EXTENSIONFEEDITEM.oneofs_by_name['extension'].fields.append( - _EXTENSIONFEEDITEM.fields_by_name['price_feed_item']) -_EXTENSIONFEEDITEM.fields_by_name['price_feed_item'].containing_oneof = _EXTENSIONFEEDITEM.oneofs_by_name['extension'] -_EXTENSIONFEEDITEM.oneofs_by_name['extension'].fields.append( - _EXTENSIONFEEDITEM.fields_by_name['promotion_feed_item']) -_EXTENSIONFEEDITEM.fields_by_name['promotion_feed_item'].containing_oneof = _EXTENSIONFEEDITEM.oneofs_by_name['extension'] -_EXTENSIONFEEDITEM.oneofs_by_name['extension'].fields.append( - _EXTENSIONFEEDITEM.fields_by_name['location_feed_item']) -_EXTENSIONFEEDITEM.fields_by_name['location_feed_item'].containing_oneof = _EXTENSIONFEEDITEM.oneofs_by_name['extension'] -_EXTENSIONFEEDITEM.oneofs_by_name['extension'].fields.append( - _EXTENSIONFEEDITEM.fields_by_name['affiliate_location_feed_item']) -_EXTENSIONFEEDITEM.fields_by_name['affiliate_location_feed_item'].containing_oneof = _EXTENSIONFEEDITEM.oneofs_by_name['extension'] -_EXTENSIONFEEDITEM.oneofs_by_name['serving_resource_targeting'].fields.append( - _EXTENSIONFEEDITEM.fields_by_name['targeted_campaign']) -_EXTENSIONFEEDITEM.fields_by_name['targeted_campaign'].containing_oneof = _EXTENSIONFEEDITEM.oneofs_by_name['serving_resource_targeting'] -_EXTENSIONFEEDITEM.oneofs_by_name['serving_resource_targeting'].fields.append( - _EXTENSIONFEEDITEM.fields_by_name['targeted_ad_group']) -_EXTENSIONFEEDITEM.fields_by_name['targeted_ad_group'].containing_oneof = _EXTENSIONFEEDITEM.oneofs_by_name['serving_resource_targeting'] -DESCRIPTOR.message_types_by_name['ExtensionFeedItem'] = _EXTENSIONFEEDITEM -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -ExtensionFeedItem = _reflection.GeneratedProtocolMessageType('ExtensionFeedItem', (_message.Message,), dict( - DESCRIPTOR = _EXTENSIONFEEDITEM, - __module__ = 'google.ads.googleads_v1.proto.resources.extension_feed_item_pb2' - , - __doc__ = """An extension feed item. - - - Attributes: - resource_name: - The resource name of the extension feed item. Extension feed - item resource names have the form: - ``customers/{customer_id}/extensionFeedItems/{feed_item_id}`` - extension_type: - The extension type of the extension feed item. This field is - read-only. - start_date_time: - Start time in which this feed item is effective and can begin - serving. The format is "YYYY-MM-DD HH:MM:SS". Examples: - "2018-03-05 09:15:00" or "2018-02-01 14:34:30" - end_date_time: - End time in which this feed item is no longer effective and - will stop serving. The format is "YYYY-MM-DD HH:MM:SS". - Examples: "2018-03-05 09:15:00" or "2018-02-01 14:34:30" - ad_schedules: - List of non-overlapping schedules specifying all time - intervals for which the feed item may serve. There can be a - maximum of 6 schedules per day. - device: - The targeted device. - targeted_geo_target_constant: - The targeted geo target constant. - status: - Status of the feed item. This field is read-only. - extension: - Extension type. - sitelink_feed_item: - Sitelink extension. - structured_snippet_feed_item: - Structured snippet extension. - app_feed_item: - App extension. - call_feed_item: - Call extension. - callout_feed_item: - Callout extension. - text_message_feed_item: - Text message extension. - price_feed_item: - Price extension. - promotion_feed_item: - Promotion extension. - location_feed_item: - Location extension. Locations are synced from a GMB account - into a feed. This field is read-only. - affiliate_location_feed_item: - Affiliate location extension. Feed locations are populated by - Google Ads based on a chain ID. This field is read-only. - serving_resource_targeting: - Targeting at either the campaign or ad group level. Feed items - that target a campaign or ad group will only serve with that - resource. - targeted_campaign: - The targeted campaign. - targeted_ad_group: - The targeted ad group. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.resources.ExtensionFeedItem) - )) -_sym_db.RegisterMessage(ExtensionFeedItem) - - -DESCRIPTOR._options = None -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/resources/feed_item_pb2.py b/google/ads/google_ads/v1/proto/resources/feed_item_pb2.py deleted file mode 100644 index 083befa59..000000000 --- a/google/ads/google_ads/v1/proto/resources/feed_item_pb2.py +++ /dev/null @@ -1,575 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/resources/feed_item.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.ads.google_ads.v1.proto.common import custom_parameter_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_custom__parameter__pb2 -from google.ads.google_ads.v1.proto.common import feed_common_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_feed__common__pb2 -from google.ads.google_ads.v1.proto.common import policy_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_policy__pb2 -from google.ads.google_ads.v1.proto.enums import feed_item_quality_approval_status_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_feed__item__quality__approval__status__pb2 -from google.ads.google_ads.v1.proto.enums import feed_item_quality_disapproval_reason_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_feed__item__quality__disapproval__reason__pb2 -from google.ads.google_ads.v1.proto.enums import feed_item_status_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_feed__item__status__pb2 -from google.ads.google_ads.v1.proto.enums import feed_item_validation_status_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_feed__item__validation__status__pb2 -from google.ads.google_ads.v1.proto.enums import geo_targeting_restriction_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_geo__targeting__restriction__pb2 -from google.ads.google_ads.v1.proto.enums import policy_approval_status_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_policy__approval__status__pb2 -from google.ads.google_ads.v1.proto.enums import policy_review_status_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_policy__review__status__pb2 -from google.ads.google_ads.v1.proto.errors import feed_item_validation_error_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_feed__item__validation__error__pb2 -from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/resources/feed_item.proto', - package='google.ads.googleads.v1.resources', - syntax='proto3', - serialized_options=_b('\n%com.google.ads.googleads.v1.resourcesB\rFeedItemProtoP\001ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources\242\002\003GAA\252\002!Google.Ads.GoogleAds.V1.Resources\312\002!Google\\Ads\\GoogleAds\\V1\\Resources\352\002%Google::Ads::GoogleAds::V1::Resources'), - serialized_pb=_b('\n7google/ads/googleads_v1/proto/resources/feed_item.proto\x12!google.ads.googleads.v1.resources\x1a;google/ads/googleads_v1/proto/common/custom_parameter.proto\x1a\x36google/ads/googleads_v1/proto/common/feed_common.proto\x1a\x31google/ads/googleads_v1/proto/common/policy.proto\x1aKgoogle/ads/googleads_v1/proto/enums/feed_item_quality_approval_status.proto\x1aNgoogle/ads/googleads_v1/proto/enums/feed_item_quality_disapproval_reason.proto\x1a:google/ads/googleads_v1/proto/enums/feed_item_status.proto\x1a\x45google/ads/googleads_v1/proto/enums/feed_item_validation_status.proto\x1a\x43google/ads/googleads_v1/proto/enums/geo_targeting_restriction.proto\x1a@google/ads/googleads_v1/proto/enums/policy_approval_status.proto\x1a>google/ads/googleads_v1/proto/enums/policy_review_status.proto\x1a\x45google/ads/googleads_v1/proto/errors/feed_item_validation_error.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1cgoogle/api/annotations.proto\"\xa8\x05\n\x08\x46\x65\x65\x64Item\x12\x15\n\rresource_name\x18\x01 \x01(\t\x12*\n\x04\x66\x65\x65\x64\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\'\n\x02id\x18\x03 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x35\n\x0fstart_date_time\x18\x04 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x33\n\rend_date_time\x18\x05 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12S\n\x10\x61ttribute_values\x18\x06 \x03(\x0b\x32\x39.google.ads.googleads.v1.resources.FeedItemAttributeValue\x12u\n\x19geo_targeting_restriction\x18\x07 \x01(\x0e\x32R.google.ads.googleads.v1.enums.GeoTargetingRestrictionEnum.GeoTargetingRestriction\x12N\n\x15url_custom_parameters\x18\x08 \x03(\x0b\x32/.google.ads.googleads.v1.common.CustomParameter\x12P\n\x06status\x18\t \x01(\x0e\x32@.google.ads.googleads.v1.enums.FeedItemStatusEnum.FeedItemStatus\x12V\n\x0cpolicy_infos\x18\n \x03(\x0b\x32@.google.ads.googleads.v1.resources.FeedItemPlaceholderPolicyInfo\"\xae\x04\n\x16\x46\x65\x65\x64ItemAttributeValue\x12\x36\n\x11\x66\x65\x65\x64_attribute_id\x18\x01 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x32\n\rinteger_value\x18\x02 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x31\n\rboolean_value\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.BoolValue\x12\x32\n\x0cstring_value\x18\x04 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x32\n\x0c\x64ouble_value\x18\x05 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12:\n\x0bprice_value\x18\x06 \x01(\x0b\x32%.google.ads.googleads.v1.common.Money\x12\x33\n\x0einteger_values\x18\x07 \x03(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x32\n\x0e\x62oolean_values\x18\x08 \x03(\x0b\x32\x1a.google.protobuf.BoolValue\x12\x33\n\rstring_values\x18\t \x03(\x0b\x32\x1c.google.protobuf.StringValue\x12\x33\n\rdouble_values\x18\n \x03(\x0b\x32\x1c.google.protobuf.DoubleValue\"\x85\x07\n\x1d\x46\x65\x65\x64ItemPlaceholderPolicyInfo\x12\x35\n\x10placeholder_type\x18\x01 \x01(\x0b\x32\x1b.google.protobuf.Int32Value\x12@\n\x1a\x66\x65\x65\x64_mapping_resource_name\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12_\n\rreview_status\x18\x03 \x01(\x0e\x32H.google.ads.googleads.v1.enums.PolicyReviewStatusEnum.PolicyReviewStatus\x12\x65\n\x0f\x61pproval_status\x18\x04 \x01(\x0e\x32L.google.ads.googleads.v1.enums.PolicyApprovalStatusEnum.PolicyApprovalStatus\x12N\n\x14policy_topic_entries\x18\x05 \x03(\x0b\x32\x30.google.ads.googleads.v1.common.PolicyTopicEntry\x12o\n\x11validation_status\x18\x06 \x01(\x0e\x32T.google.ads.googleads.v1.enums.FeedItemValidationStatusEnum.FeedItemValidationStatus\x12U\n\x11validation_errors\x18\x07 \x03(\x0b\x32:.google.ads.googleads.v1.resources.FeedItemValidationError\x12\x7f\n\x17quality_approval_status\x18\x08 \x01(\x0e\x32^.google.ads.googleads.v1.enums.FeedItemQualityApprovalStatusEnum.FeedItemQualityApprovalStatus\x12\x89\x01\n\x1bquality_disapproval_reasons\x18\t \x03(\x0e\x32\x64.google.ads.googleads.v1.enums.FeedItemQualityDisapprovalReasonEnum.FeedItemQualityDisapprovalReason\"\xa6\x02\n\x17\x46\x65\x65\x64ItemValidationError\x12m\n\x10validation_error\x18\x01 \x01(\x0e\x32S.google.ads.googleads.v1.errors.FeedItemValidationErrorEnum.FeedItemValidationError\x12\x31\n\x0b\x64\x65scription\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x37\n\x12\x66\x65\x65\x64_attribute_ids\x18\x03 \x03(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x30\n\nextra_info\x18\x05 \x01(\x0b\x32\x1c.google.protobuf.StringValueB\xfa\x01\n%com.google.ads.googleads.v1.resourcesB\rFeedItemProtoP\x01ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V1.Resources\xca\x02!Google\\Ads\\GoogleAds\\V1\\Resources\xea\x02%Google::Ads::GoogleAds::V1::Resourcesb\x06proto3') - , - dependencies=[google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_custom__parameter__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_feed__common__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_policy__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_feed__item__quality__approval__status__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_feed__item__quality__disapproval__reason__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_feed__item__status__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_feed__item__validation__status__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_geo__targeting__restriction__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_policy__approval__status__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_policy__review__status__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_feed__item__validation__error__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - - -_FEEDITEM = _descriptor.Descriptor( - name='FeedItem', - full_name='google.ads.googleads.v1.resources.FeedItem', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.resources.FeedItem.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='feed', full_name='google.ads.googleads.v1.resources.FeedItem.feed', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='id', full_name='google.ads.googleads.v1.resources.FeedItem.id', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='start_date_time', full_name='google.ads.googleads.v1.resources.FeedItem.start_date_time', index=3, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='end_date_time', full_name='google.ads.googleads.v1.resources.FeedItem.end_date_time', index=4, - number=5, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='attribute_values', full_name='google.ads.googleads.v1.resources.FeedItem.attribute_values', index=5, - number=6, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='geo_targeting_restriction', full_name='google.ads.googleads.v1.resources.FeedItem.geo_targeting_restriction', index=6, - number=7, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='url_custom_parameters', full_name='google.ads.googleads.v1.resources.FeedItem.url_custom_parameters', index=7, - number=8, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='status', full_name='google.ads.googleads.v1.resources.FeedItem.status', index=8, - number=9, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='policy_infos', full_name='google.ads.googleads.v1.resources.FeedItem.policy_infos', index=9, - number=10, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=883, - serialized_end=1563, -) - - -_FEEDITEMATTRIBUTEVALUE = _descriptor.Descriptor( - name='FeedItemAttributeValue', - full_name='google.ads.googleads.v1.resources.FeedItemAttributeValue', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='feed_attribute_id', full_name='google.ads.googleads.v1.resources.FeedItemAttributeValue.feed_attribute_id', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='integer_value', full_name='google.ads.googleads.v1.resources.FeedItemAttributeValue.integer_value', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='boolean_value', full_name='google.ads.googleads.v1.resources.FeedItemAttributeValue.boolean_value', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='string_value', full_name='google.ads.googleads.v1.resources.FeedItemAttributeValue.string_value', index=3, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='double_value', full_name='google.ads.googleads.v1.resources.FeedItemAttributeValue.double_value', index=4, - number=5, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='price_value', full_name='google.ads.googleads.v1.resources.FeedItemAttributeValue.price_value', index=5, - number=6, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='integer_values', full_name='google.ads.googleads.v1.resources.FeedItemAttributeValue.integer_values', index=6, - number=7, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='boolean_values', full_name='google.ads.googleads.v1.resources.FeedItemAttributeValue.boolean_values', index=7, - number=8, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='string_values', full_name='google.ads.googleads.v1.resources.FeedItemAttributeValue.string_values', index=8, - number=9, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='double_values', full_name='google.ads.googleads.v1.resources.FeedItemAttributeValue.double_values', index=9, - number=10, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1566, - serialized_end=2124, -) - - -_FEEDITEMPLACEHOLDERPOLICYINFO = _descriptor.Descriptor( - name='FeedItemPlaceholderPolicyInfo', - full_name='google.ads.googleads.v1.resources.FeedItemPlaceholderPolicyInfo', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='placeholder_type', full_name='google.ads.googleads.v1.resources.FeedItemPlaceholderPolicyInfo.placeholder_type', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='feed_mapping_resource_name', full_name='google.ads.googleads.v1.resources.FeedItemPlaceholderPolicyInfo.feed_mapping_resource_name', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='review_status', full_name='google.ads.googleads.v1.resources.FeedItemPlaceholderPolicyInfo.review_status', index=2, - number=3, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='approval_status', full_name='google.ads.googleads.v1.resources.FeedItemPlaceholderPolicyInfo.approval_status', index=3, - number=4, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='policy_topic_entries', full_name='google.ads.googleads.v1.resources.FeedItemPlaceholderPolicyInfo.policy_topic_entries', index=4, - number=5, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='validation_status', full_name='google.ads.googleads.v1.resources.FeedItemPlaceholderPolicyInfo.validation_status', index=5, - number=6, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='validation_errors', full_name='google.ads.googleads.v1.resources.FeedItemPlaceholderPolicyInfo.validation_errors', index=6, - number=7, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='quality_approval_status', full_name='google.ads.googleads.v1.resources.FeedItemPlaceholderPolicyInfo.quality_approval_status', index=7, - number=8, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='quality_disapproval_reasons', full_name='google.ads.googleads.v1.resources.FeedItemPlaceholderPolicyInfo.quality_disapproval_reasons', index=8, - number=9, type=14, cpp_type=8, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2127, - serialized_end=3028, -) - - -_FEEDITEMVALIDATIONERROR = _descriptor.Descriptor( - name='FeedItemValidationError', - full_name='google.ads.googleads.v1.resources.FeedItemValidationError', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='validation_error', full_name='google.ads.googleads.v1.resources.FeedItemValidationError.validation_error', index=0, - number=1, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='description', full_name='google.ads.googleads.v1.resources.FeedItemValidationError.description', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='feed_attribute_ids', full_name='google.ads.googleads.v1.resources.FeedItemValidationError.feed_attribute_ids', index=2, - number=3, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='extra_info', full_name='google.ads.googleads.v1.resources.FeedItemValidationError.extra_info', index=3, - number=5, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=3031, - serialized_end=3325, -) - -_FEEDITEM.fields_by_name['feed'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_FEEDITEM.fields_by_name['id'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -_FEEDITEM.fields_by_name['start_date_time'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_FEEDITEM.fields_by_name['end_date_time'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_FEEDITEM.fields_by_name['attribute_values'].message_type = _FEEDITEMATTRIBUTEVALUE -_FEEDITEM.fields_by_name['geo_targeting_restriction'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_geo__targeting__restriction__pb2._GEOTARGETINGRESTRICTIONENUM_GEOTARGETINGRESTRICTION -_FEEDITEM.fields_by_name['url_custom_parameters'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_custom__parameter__pb2._CUSTOMPARAMETER -_FEEDITEM.fields_by_name['status'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_feed__item__status__pb2._FEEDITEMSTATUSENUM_FEEDITEMSTATUS -_FEEDITEM.fields_by_name['policy_infos'].message_type = _FEEDITEMPLACEHOLDERPOLICYINFO -_FEEDITEMATTRIBUTEVALUE.fields_by_name['feed_attribute_id'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -_FEEDITEMATTRIBUTEVALUE.fields_by_name['integer_value'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -_FEEDITEMATTRIBUTEVALUE.fields_by_name['boolean_value'].message_type = google_dot_protobuf_dot_wrappers__pb2._BOOLVALUE -_FEEDITEMATTRIBUTEVALUE.fields_by_name['string_value'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_FEEDITEMATTRIBUTEVALUE.fields_by_name['double_value'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE -_FEEDITEMATTRIBUTEVALUE.fields_by_name['price_value'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_feed__common__pb2._MONEY -_FEEDITEMATTRIBUTEVALUE.fields_by_name['integer_values'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -_FEEDITEMATTRIBUTEVALUE.fields_by_name['boolean_values'].message_type = google_dot_protobuf_dot_wrappers__pb2._BOOLVALUE -_FEEDITEMATTRIBUTEVALUE.fields_by_name['string_values'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_FEEDITEMATTRIBUTEVALUE.fields_by_name['double_values'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE -_FEEDITEMPLACEHOLDERPOLICYINFO.fields_by_name['placeholder_type'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT32VALUE -_FEEDITEMPLACEHOLDERPOLICYINFO.fields_by_name['feed_mapping_resource_name'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_FEEDITEMPLACEHOLDERPOLICYINFO.fields_by_name['review_status'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_policy__review__status__pb2._POLICYREVIEWSTATUSENUM_POLICYREVIEWSTATUS -_FEEDITEMPLACEHOLDERPOLICYINFO.fields_by_name['approval_status'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_policy__approval__status__pb2._POLICYAPPROVALSTATUSENUM_POLICYAPPROVALSTATUS -_FEEDITEMPLACEHOLDERPOLICYINFO.fields_by_name['policy_topic_entries'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_policy__pb2._POLICYTOPICENTRY -_FEEDITEMPLACEHOLDERPOLICYINFO.fields_by_name['validation_status'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_feed__item__validation__status__pb2._FEEDITEMVALIDATIONSTATUSENUM_FEEDITEMVALIDATIONSTATUS -_FEEDITEMPLACEHOLDERPOLICYINFO.fields_by_name['validation_errors'].message_type = _FEEDITEMVALIDATIONERROR -_FEEDITEMPLACEHOLDERPOLICYINFO.fields_by_name['quality_approval_status'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_feed__item__quality__approval__status__pb2._FEEDITEMQUALITYAPPROVALSTATUSENUM_FEEDITEMQUALITYAPPROVALSTATUS -_FEEDITEMPLACEHOLDERPOLICYINFO.fields_by_name['quality_disapproval_reasons'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_feed__item__quality__disapproval__reason__pb2._FEEDITEMQUALITYDISAPPROVALREASONENUM_FEEDITEMQUALITYDISAPPROVALREASON -_FEEDITEMVALIDATIONERROR.fields_by_name['validation_error'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_errors_dot_feed__item__validation__error__pb2._FEEDITEMVALIDATIONERRORENUM_FEEDITEMVALIDATIONERROR -_FEEDITEMVALIDATIONERROR.fields_by_name['description'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_FEEDITEMVALIDATIONERROR.fields_by_name['feed_attribute_ids'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -_FEEDITEMVALIDATIONERROR.fields_by_name['extra_info'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -DESCRIPTOR.message_types_by_name['FeedItem'] = _FEEDITEM -DESCRIPTOR.message_types_by_name['FeedItemAttributeValue'] = _FEEDITEMATTRIBUTEVALUE -DESCRIPTOR.message_types_by_name['FeedItemPlaceholderPolicyInfo'] = _FEEDITEMPLACEHOLDERPOLICYINFO -DESCRIPTOR.message_types_by_name['FeedItemValidationError'] = _FEEDITEMVALIDATIONERROR -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -FeedItem = _reflection.GeneratedProtocolMessageType('FeedItem', (_message.Message,), dict( - DESCRIPTOR = _FEEDITEM, - __module__ = 'google.ads.googleads_v1.proto.resources.feed_item_pb2' - , - __doc__ = """A feed item. - - - Attributes: - resource_name: - The resource name of the feed item. Feed item resource names - have the form: - ``customers/{customer_id}/feedItems/{feed_id}~{feed_item_id}`` - feed: - The feed to which this feed item belongs. - id: - The ID of this feed item. - start_date_time: - Start time in which this feed item is effective and can begin - serving. The format is "YYYY-MM-DD HH:MM:SS". Examples: - "2018-03-05 09:15:00" or "2018-02-01 14:34:30" - end_date_time: - End time in which this feed item is no longer effective and - will stop serving. The format is "YYYY-MM-DD HH:MM:SS". - Examples: "2018-03-05 09:15:00" or "2018-02-01 14:34:30" - attribute_values: - The feed item's attribute values. - geo_targeting_restriction: - Geo targeting restriction specifies the type of location that - can be used for targeting. - url_custom_parameters: - The list of mappings used to substitute custom parameter tags - in a ``tracking_url_template``, ``final_urls``, or - ``mobile_final_urls``. - status: - Status of the feed item. This field is read-only. - policy_infos: - List of info about a feed item's validation and approval state - for active feed mappings. There will be an entry in the list - for each type of feed mapping associated with the feed, e.g. a - feed with a sitelink and a call feed mapping would cause every - feed item associated with that feed to have an entry in this - list for both sitelink and call. This field is read-only. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.resources.FeedItem) - )) -_sym_db.RegisterMessage(FeedItem) - -FeedItemAttributeValue = _reflection.GeneratedProtocolMessageType('FeedItemAttributeValue', (_message.Message,), dict( - DESCRIPTOR = _FEEDITEMATTRIBUTEVALUE, - __module__ = 'google.ads.googleads_v1.proto.resources.feed_item_pb2' - , - __doc__ = """A feed item attribute value. - - - Attributes: - feed_attribute_id: - Id of the feed attribute for which the value is associated - with. - integer_value: - Int64 value. Should be set if feed\_attribute\_id refers to a - feed attribute of type INT64. - boolean_value: - Bool value. Should be set if feed\_attribute\_id refers to a - feed attribute of type BOOLEAN. - string_value: - String value. Should be set if feed\_attribute\_id refers to a - feed attribute of type STRING, URL or DATE\_TIME. For STRING - the maximum length is 1500 characters. For URL the maximum - length is 2076 characters. For DATE\_TIME the format of the - string must be the same as start and end time for the feed - item. - double_value: - Double value. Should be set if feed\_attribute\_id refers to a - feed attribute of type DOUBLE. - price_value: - Price value. Should be set if feed\_attribute\_id refers to a - feed attribute of type PRICE. - integer_values: - Repeated int64 value. Should be set if feed\_attribute\_id - refers to a feed attribute of type INT64\_LIST. - boolean_values: - Repeated bool value. Should be set if feed\_attribute\_id - refers to a feed attribute of type BOOLEAN\_LIST. - string_values: - Repeated string value. Should be set if feed\_attribute\_id - refers to a feed attribute of type STRING\_LIST, URL\_LIST or - DATE\_TIME\_LIST. For STRING\_LIST and URL\_LIST the total - size of the list in bytes may not exceed 3000. For - DATE\_TIME\_LIST the number of elements may not exceed 200. - For STRING\_LIST the maximum length of each string element is - 1500 characters. For URL\_LIST the maximum length is 2076 - characters. For DATE\_TIME the format of the string must be - the same as start and end time for the feed item. - double_values: - Repeated double value. Should be set if feed\_attribute\_id - refers to a feed attribute of type DOUBLE\_LIST. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.resources.FeedItemAttributeValue) - )) -_sym_db.RegisterMessage(FeedItemAttributeValue) - -FeedItemPlaceholderPolicyInfo = _reflection.GeneratedProtocolMessageType('FeedItemPlaceholderPolicyInfo', (_message.Message,), dict( - DESCRIPTOR = _FEEDITEMPLACEHOLDERPOLICYINFO, - __module__ = 'google.ads.googleads_v1.proto.resources.feed_item_pb2' - , - __doc__ = """Policy, validation, and quality approval info for a feed item for the - specified placeholder type. - - - Attributes: - placeholder_type: - The placeholder type. - feed_mapping_resource_name: - The FeedMapping that contains the placeholder type. - review_status: - Where the placeholder type is in the review process. - approval_status: - The overall approval status of the placeholder type, - calculated based on the status of its individual policy topic - entries. - policy_topic_entries: - The list of policy findings for the placeholder type. - validation_status: - The validation status of the palceholder type. - validation_errors: - List of placeholder type validation errors. - quality_approval_status: - Placeholder type quality evaluation approval status. - quality_disapproval_reasons: - List of placeholder type quality evaluation disapproval - reasons. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.resources.FeedItemPlaceholderPolicyInfo) - )) -_sym_db.RegisterMessage(FeedItemPlaceholderPolicyInfo) - -FeedItemValidationError = _reflection.GeneratedProtocolMessageType('FeedItemValidationError', (_message.Message,), dict( - DESCRIPTOR = _FEEDITEMVALIDATIONERROR, - __module__ = 'google.ads.googleads_v1.proto.resources.feed_item_pb2' - , - __doc__ = """Stores a validation error and the set of offending feed attributes which - together are responsible for causing a feed item validation error. - - - Attributes: - validation_error: - Error code indicating what validation error was triggered. The - description of the error can be found in the 'description' - field. - description: - The description of the validation error. - feed_attribute_ids: - Set of feed attributes in the feed item flagged during - validation. If empty, no specific feed attributes can be - associated with the error (e.g. error across the entire feed - item). - extra_info: - Any extra information related to this error which is not - captured by validation\_error and feed\_attribute\_id (e.g. - placeholder field IDs when feed\_attribute\_id is not mapped). - Note that extra\_info is not localized. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.resources.FeedItemValidationError) - )) -_sym_db.RegisterMessage(FeedItemValidationError) - - -DESCRIPTOR._options = None -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/resources/feed_item_target_pb2.py b/google/ads/google_ads/v1/proto/resources/feed_item_target_pb2.py deleted file mode 100644 index 5b52e553f..000000000 --- a/google/ads/google_ads/v1/proto/resources/feed_item_target_pb2.py +++ /dev/null @@ -1,202 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/resources/feed_item_target.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.ads.google_ads.v1.proto.common import criteria_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_criteria__pb2 -from google.ads.google_ads.v1.proto.enums import feed_item_target_device_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_feed__item__target__device__pb2 -from google.ads.google_ads.v1.proto.enums import feed_item_target_type_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_feed__item__target__type__pb2 -from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/resources/feed_item_target.proto', - package='google.ads.googleads.v1.resources', - syntax='proto3', - serialized_options=_b('\n%com.google.ads.googleads.v1.resourcesB\023FeedItemTargetProtoP\001ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources\242\002\003GAA\252\002!Google.Ads.GoogleAds.V1.Resources\312\002!Google\\Ads\\GoogleAds\\V1\\Resources\352\002%Google::Ads::GoogleAds::V1::Resources'), - serialized_pb=_b('\n>google/ads/googleads_v1/proto/resources/feed_item_target.proto\x12!google.ads.googleads.v1.resources\x1a\x33google/ads/googleads_v1/proto/common/criteria.proto\x1a\x41google/ads/googleads_v1/proto/enums/feed_item_target_device.proto\x1a?google/ads/googleads_v1/proto/enums/feed_item_target_type.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1cgoogle/api/annotations.proto\"\x8d\x05\n\x0e\x46\x65\x65\x64ItemTarget\x12\x15\n\rresource_name\x18\x01 \x01(\t\x12/\n\tfeed_item\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12g\n\x15\x66\x65\x65\x64_item_target_type\x18\x03 \x01(\x0e\x32H.google.ads.googleads.v1.enums.FeedItemTargetTypeEnum.FeedItemTargetType\x12\x38\n\x13\x66\x65\x65\x64_item_target_id\x18\x06 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x30\n\x08\x63\x61mpaign\x18\x04 \x01(\x0b\x32\x1c.google.protobuf.StringValueH\x00\x12\x30\n\x08\x61\x64_group\x18\x05 \x01(\x0b\x32\x1c.google.protobuf.StringValueH\x00\x12>\n\x07keyword\x18\x07 \x01(\x0b\x32+.google.ads.googleads.v1.common.KeywordInfoH\x00\x12;\n\x13geo_target_constant\x18\x08 \x01(\x0b\x32\x1c.google.protobuf.StringValueH\x00\x12^\n\x06\x64\x65vice\x18\t \x01(\x0e\x32L.google.ads.googleads.v1.enums.FeedItemTargetDeviceEnum.FeedItemTargetDeviceH\x00\x12\x45\n\x0b\x61\x64_schedule\x18\n \x01(\x0b\x32..google.ads.googleads.v1.common.AdScheduleInfoH\x00\x42\x08\n\x06targetB\x80\x02\n%com.google.ads.googleads.v1.resourcesB\x13\x46\x65\x65\x64ItemTargetProtoP\x01ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V1.Resources\xca\x02!Google\\Ads\\GoogleAds\\V1\\Resources\xea\x02%Google::Ads::GoogleAds::V1::Resourcesb\x06proto3') - , - dependencies=[google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_criteria__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_feed__item__target__device__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_feed__item__target__type__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - - -_FEEDITEMTARGET = _descriptor.Descriptor( - name='FeedItemTarget', - full_name='google.ads.googleads.v1.resources.FeedItemTarget', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.resources.FeedItemTarget.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='feed_item', full_name='google.ads.googleads.v1.resources.FeedItemTarget.feed_item', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='feed_item_target_type', full_name='google.ads.googleads.v1.resources.FeedItemTarget.feed_item_target_type', index=2, - number=3, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='feed_item_target_id', full_name='google.ads.googleads.v1.resources.FeedItemTarget.feed_item_target_id', index=3, - number=6, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='campaign', full_name='google.ads.googleads.v1.resources.FeedItemTarget.campaign', index=4, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='ad_group', full_name='google.ads.googleads.v1.resources.FeedItemTarget.ad_group', index=5, - number=5, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='keyword', full_name='google.ads.googleads.v1.resources.FeedItemTarget.keyword', index=6, - number=7, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='geo_target_constant', full_name='google.ads.googleads.v1.resources.FeedItemTarget.geo_target_constant', index=7, - number=8, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='device', full_name='google.ads.googleads.v1.resources.FeedItemTarget.device', index=8, - number=9, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='ad_schedule', full_name='google.ads.googleads.v1.resources.FeedItemTarget.ad_schedule', index=9, - number=10, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='target', full_name='google.ads.googleads.v1.resources.FeedItemTarget.target', - index=0, containing_type=None, fields=[]), - ], - serialized_start=349, - serialized_end=1002, -) - -_FEEDITEMTARGET.fields_by_name['feed_item'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_FEEDITEMTARGET.fields_by_name['feed_item_target_type'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_feed__item__target__type__pb2._FEEDITEMTARGETTYPEENUM_FEEDITEMTARGETTYPE -_FEEDITEMTARGET.fields_by_name['feed_item_target_id'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -_FEEDITEMTARGET.fields_by_name['campaign'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_FEEDITEMTARGET.fields_by_name['ad_group'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_FEEDITEMTARGET.fields_by_name['keyword'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_criteria__pb2._KEYWORDINFO -_FEEDITEMTARGET.fields_by_name['geo_target_constant'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_FEEDITEMTARGET.fields_by_name['device'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_feed__item__target__device__pb2._FEEDITEMTARGETDEVICEENUM_FEEDITEMTARGETDEVICE -_FEEDITEMTARGET.fields_by_name['ad_schedule'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_criteria__pb2._ADSCHEDULEINFO -_FEEDITEMTARGET.oneofs_by_name['target'].fields.append( - _FEEDITEMTARGET.fields_by_name['campaign']) -_FEEDITEMTARGET.fields_by_name['campaign'].containing_oneof = _FEEDITEMTARGET.oneofs_by_name['target'] -_FEEDITEMTARGET.oneofs_by_name['target'].fields.append( - _FEEDITEMTARGET.fields_by_name['ad_group']) -_FEEDITEMTARGET.fields_by_name['ad_group'].containing_oneof = _FEEDITEMTARGET.oneofs_by_name['target'] -_FEEDITEMTARGET.oneofs_by_name['target'].fields.append( - _FEEDITEMTARGET.fields_by_name['keyword']) -_FEEDITEMTARGET.fields_by_name['keyword'].containing_oneof = _FEEDITEMTARGET.oneofs_by_name['target'] -_FEEDITEMTARGET.oneofs_by_name['target'].fields.append( - _FEEDITEMTARGET.fields_by_name['geo_target_constant']) -_FEEDITEMTARGET.fields_by_name['geo_target_constant'].containing_oneof = _FEEDITEMTARGET.oneofs_by_name['target'] -_FEEDITEMTARGET.oneofs_by_name['target'].fields.append( - _FEEDITEMTARGET.fields_by_name['device']) -_FEEDITEMTARGET.fields_by_name['device'].containing_oneof = _FEEDITEMTARGET.oneofs_by_name['target'] -_FEEDITEMTARGET.oneofs_by_name['target'].fields.append( - _FEEDITEMTARGET.fields_by_name['ad_schedule']) -_FEEDITEMTARGET.fields_by_name['ad_schedule'].containing_oneof = _FEEDITEMTARGET.oneofs_by_name['target'] -DESCRIPTOR.message_types_by_name['FeedItemTarget'] = _FEEDITEMTARGET -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -FeedItemTarget = _reflection.GeneratedProtocolMessageType('FeedItemTarget', (_message.Message,), dict( - DESCRIPTOR = _FEEDITEMTARGET, - __module__ = 'google.ads.googleads_v1.proto.resources.feed_item_target_pb2' - , - __doc__ = """A feed item target. - - - Attributes: - resource_name: - The resource name of the feed item target. Feed item target - resource names have the form: ``customers/{customer_id}/feedI - temTargets/{feed_id}~{feed_item_id}~{feed_item_target_type}~{f - eed_item_target_id}`` - feed_item: - The feed item to which this feed item target belongs. - feed_item_target_type: - The target type of this feed item target. This field is read- - only. - feed_item_target_id: - The ID of the targeted resource. This field is read-only. - target: - The targeted resource. - campaign: - The targeted campaign. - ad_group: - The targeted ad group. - keyword: - The targeted keyword. - geo_target_constant: - The targeted geo target constant resource name. - device: - The targeted device. - ad_schedule: - The targeted schedule. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.resources.FeedItemTarget) - )) -_sym_db.RegisterMessage(FeedItemTarget) - - -DESCRIPTOR._options = None -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/resources/feed_mapping_pb2.py b/google/ads/google_ads/v1/proto/resources/feed_mapping_pb2.py deleted file mode 100644 index 8e33ccc6a..000000000 --- a/google/ads/google_ads/v1/proto/resources/feed_mapping_pb2.py +++ /dev/null @@ -1,519 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/resources/feed_mapping.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.ads.google_ads.v1.proto.enums import ad_customizer_placeholder_field_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_ad__customizer__placeholder__field__pb2 -from google.ads.google_ads.v1.proto.enums import affiliate_location_placeholder_field_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_affiliate__location__placeholder__field__pb2 -from google.ads.google_ads.v1.proto.enums import app_placeholder_field_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_app__placeholder__field__pb2 -from google.ads.google_ads.v1.proto.enums import call_placeholder_field_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_call__placeholder__field__pb2 -from google.ads.google_ads.v1.proto.enums import callout_placeholder_field_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_callout__placeholder__field__pb2 -from google.ads.google_ads.v1.proto.enums import custom_placeholder_field_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_custom__placeholder__field__pb2 -from google.ads.google_ads.v1.proto.enums import dsa_page_feed_criterion_field_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_dsa__page__feed__criterion__field__pb2 -from google.ads.google_ads.v1.proto.enums import education_placeholder_field_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_education__placeholder__field__pb2 -from google.ads.google_ads.v1.proto.enums import feed_mapping_criterion_type_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_feed__mapping__criterion__type__pb2 -from google.ads.google_ads.v1.proto.enums import feed_mapping_status_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_feed__mapping__status__pb2 -from google.ads.google_ads.v1.proto.enums import flight_placeholder_field_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_flight__placeholder__field__pb2 -from google.ads.google_ads.v1.proto.enums import hotel_placeholder_field_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_hotel__placeholder__field__pb2 -from google.ads.google_ads.v1.proto.enums import job_placeholder_field_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_job__placeholder__field__pb2 -from google.ads.google_ads.v1.proto.enums import local_placeholder_field_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_local__placeholder__field__pb2 -from google.ads.google_ads.v1.proto.enums import location_extension_targeting_criterion_field_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_location__extension__targeting__criterion__field__pb2 -from google.ads.google_ads.v1.proto.enums import location_placeholder_field_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_location__placeholder__field__pb2 -from google.ads.google_ads.v1.proto.enums import message_placeholder_field_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_message__placeholder__field__pb2 -from google.ads.google_ads.v1.proto.enums import placeholder_type_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_placeholder__type__pb2 -from google.ads.google_ads.v1.proto.enums import price_placeholder_field_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_price__placeholder__field__pb2 -from google.ads.google_ads.v1.proto.enums import promotion_placeholder_field_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_promotion__placeholder__field__pb2 -from google.ads.google_ads.v1.proto.enums import real_estate_placeholder_field_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_real__estate__placeholder__field__pb2 -from google.ads.google_ads.v1.proto.enums import sitelink_placeholder_field_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_sitelink__placeholder__field__pb2 -from google.ads.google_ads.v1.proto.enums import structured_snippet_placeholder_field_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_structured__snippet__placeholder__field__pb2 -from google.ads.google_ads.v1.proto.enums import travel_placeholder_field_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_travel__placeholder__field__pb2 -from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/resources/feed_mapping.proto', - package='google.ads.googleads.v1.resources', - syntax='proto3', - serialized_options=_b('\n%com.google.ads.googleads.v1.resourcesB\020FeedMappingProtoP\001ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources\242\002\003GAA\252\002!Google.Ads.GoogleAds.V1.Resources\312\002!Google\\Ads\\GoogleAds\\V1\\Resources\352\002%Google::Ads::GoogleAds::V1::Resources'), - serialized_pb=_b('\n:google/ads/googleads_v1/proto/resources/feed_mapping.proto\x12!google.ads.googleads.v1.resources\x1aIgoogle/ads/googleads_v1/proto/enums/ad_customizer_placeholder_field.proto\x1aNgoogle/ads/googleads_v1/proto/enums/affiliate_location_placeholder_field.proto\x1a?google/ads/googleads_v1/proto/enums/app_placeholder_field.proto\x1a@google/ads/googleads_v1/proto/enums/call_placeholder_field.proto\x1a\x43google/ads/googleads_v1/proto/enums/callout_placeholder_field.proto\x1a\x42google/ads/googleads_v1/proto/enums/custom_placeholder_field.proto\x1aGgoogle/ads/googleads_v1/proto/enums/dsa_page_feed_criterion_field.proto\x1a\x45google/ads/googleads_v1/proto/enums/education_placeholder_field.proto\x1a\x45google/ads/googleads_v1/proto/enums/feed_mapping_criterion_type.proto\x1a=google/ads/googleads_v1/proto/enums/feed_mapping_status.proto\x1a\x42google/ads/googleads_v1/proto/enums/flight_placeholder_field.proto\x1a\x41google/ads/googleads_v1/proto/enums/hotel_placeholder_field.proto\x1a?google/ads/googleads_v1/proto/enums/job_placeholder_field.proto\x1a\x41google/ads/googleads_v1/proto/enums/local_placeholder_field.proto\x1aVgoogle/ads/googleads_v1/proto/enums/location_extension_targeting_criterion_field.proto\x1a\x44google/ads/googleads_v1/proto/enums/location_placeholder_field.proto\x1a\x43google/ads/googleads_v1/proto/enums/message_placeholder_field.proto\x1a:google/ads/googleads_v1/proto/enums/placeholder_type.proto\x1a\x41google/ads/googleads_v1/proto/enums/price_placeholder_field.proto\x1a\x45google/ads/googleads_v1/proto/enums/promotion_placeholder_field.proto\x1aGgoogle/ads/googleads_v1/proto/enums/real_estate_placeholder_field.proto\x1a\x44google/ads/googleads_v1/proto/enums/sitelink_placeholder_field.proto\x1aNgoogle/ads/googleads_v1/proto/enums/structured_snippet_placeholder_field.proto\x1a\x42google/ads/googleads_v1/proto/enums/travel_placeholder_field.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1cgoogle/api/annotations.proto\"\xde\x03\n\x0b\x46\x65\x65\x64Mapping\x12\x15\n\rresource_name\x18\x01 \x01(\t\x12*\n\x04\x66\x65\x65\x64\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12Z\n\x18\x61ttribute_field_mappings\x18\x05 \x03(\x0b\x32\x38.google.ads.googleads.v1.resources.AttributeFieldMapping\x12V\n\x06status\x18\x06 \x01(\x0e\x32\x46.google.ads.googleads.v1.enums.FeedMappingStatusEnum.FeedMappingStatus\x12^\n\x10placeholder_type\x18\x03 \x01(\x0e\x32\x42.google.ads.googleads.v1.enums.PlaceholderTypeEnum.PlaceholderTypeH\x00\x12n\n\x0e\x63riterion_type\x18\x04 \x01(\x0e\x32T.google.ads.googleads.v1.enums.FeedMappingCriterionTypeEnum.FeedMappingCriterionTypeH\x00\x42\x08\n\x06target\"\xea\x13\n\x15\x41ttributeFieldMapping\x12\x36\n\x11\x66\x65\x65\x64_attribute_id\x18\x01 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12-\n\x08\x66ield_id\x18\x02 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12n\n\x0esitelink_field\x18\x03 \x01(\x0e\x32T.google.ads.googleads.v1.enums.SitelinkPlaceholderFieldEnum.SitelinkPlaceholderFieldH\x00\x12\x62\n\ncall_field\x18\x04 \x01(\x0e\x32L.google.ads.googleads.v1.enums.CallPlaceholderFieldEnum.CallPlaceholderFieldH\x00\x12_\n\tapp_field\x18\x05 \x01(\x0e\x32J.google.ads.googleads.v1.enums.AppPlaceholderFieldEnum.AppPlaceholderFieldH\x00\x12n\n\x0elocation_field\x18\x06 \x01(\x0e\x32T.google.ads.googleads.v1.enums.LocationPlaceholderFieldEnum.LocationPlaceholderFieldH\x00\x12\x8a\x01\n\x18\x61\x66\x66iliate_location_field\x18\x07 \x01(\x0e\x32\x66.google.ads.googleads.v1.enums.AffiliateLocationPlaceholderFieldEnum.AffiliateLocationPlaceholderFieldH\x00\x12k\n\rcallout_field\x18\x08 \x01(\x0e\x32R.google.ads.googleads.v1.enums.CalloutPlaceholderFieldEnum.CalloutPlaceholderFieldH\x00\x12\x8a\x01\n\x18structured_snippet_field\x18\t \x01(\x0e\x32\x66.google.ads.googleads.v1.enums.StructuredSnippetPlaceholderFieldEnum.StructuredSnippetPlaceholderFieldH\x00\x12k\n\rmessage_field\x18\n \x01(\x0e\x32R.google.ads.googleads.v1.enums.MessagePlaceholderFieldEnum.MessagePlaceholderFieldH\x00\x12\x65\n\x0bprice_field\x18\x0b \x01(\x0e\x32N.google.ads.googleads.v1.enums.PricePlaceholderFieldEnum.PricePlaceholderFieldH\x00\x12q\n\x0fpromotion_field\x18\x0c \x01(\x0e\x32V.google.ads.googleads.v1.enums.PromotionPlaceholderFieldEnum.PromotionPlaceholderFieldH\x00\x12{\n\x13\x61\x64_customizer_field\x18\r \x01(\x0e\x32\\.google.ads.googleads.v1.enums.AdCustomizerPlaceholderFieldEnum.AdCustomizerPlaceholderFieldH\x00\x12u\n\x13\x64sa_page_feed_field\x18\x0e \x01(\x0e\x32V.google.ads.googleads.v1.enums.DsaPageFeedCriterionFieldEnum.DsaPageFeedCriterionFieldH\x00\x12\xa2\x01\n\"location_extension_targeting_field\x18\x0f \x01(\x0e\x32t.google.ads.googleads.v1.enums.LocationExtensionTargetingCriterionFieldEnum.LocationExtensionTargetingCriterionFieldH\x00\x12q\n\x0f\x65\x64ucation_field\x18\x10 \x01(\x0e\x32V.google.ads.googleads.v1.enums.EducationPlaceholderFieldEnum.EducationPlaceholderFieldH\x00\x12h\n\x0c\x66light_field\x18\x11 \x01(\x0e\x32P.google.ads.googleads.v1.enums.FlightPlaceholderFieldEnum.FlightPlaceholderFieldH\x00\x12h\n\x0c\x63ustom_field\x18\x12 \x01(\x0e\x32P.google.ads.googleads.v1.enums.CustomPlaceholderFieldEnum.CustomPlaceholderFieldH\x00\x12\x65\n\x0bhotel_field\x18\x13 \x01(\x0e\x32N.google.ads.googleads.v1.enums.HotelPlaceholderFieldEnum.HotelPlaceholderFieldH\x00\x12u\n\x11real_estate_field\x18\x14 \x01(\x0e\x32X.google.ads.googleads.v1.enums.RealEstatePlaceholderFieldEnum.RealEstatePlaceholderFieldH\x00\x12h\n\x0ctravel_field\x18\x15 \x01(\x0e\x32P.google.ads.googleads.v1.enums.TravelPlaceholderFieldEnum.TravelPlaceholderFieldH\x00\x12\x65\n\x0blocal_field\x18\x16 \x01(\x0e\x32N.google.ads.googleads.v1.enums.LocalPlaceholderFieldEnum.LocalPlaceholderFieldH\x00\x12_\n\tjob_field\x18\x17 \x01(\x0e\x32J.google.ads.googleads.v1.enums.JobPlaceholderFieldEnum.JobPlaceholderFieldH\x00\x42\x07\n\x05\x66ieldB\xfd\x01\n%com.google.ads.googleads.v1.resourcesB\x10\x46\x65\x65\x64MappingProtoP\x01ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V1.Resources\xca\x02!Google\\Ads\\GoogleAds\\V1\\Resources\xea\x02%Google::Ads::GoogleAds::V1::Resourcesb\x06proto3') - , - dependencies=[google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_ad__customizer__placeholder__field__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_affiliate__location__placeholder__field__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_app__placeholder__field__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_call__placeholder__field__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_callout__placeholder__field__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_custom__placeholder__field__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_dsa__page__feed__criterion__field__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_education__placeholder__field__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_feed__mapping__criterion__type__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_feed__mapping__status__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_flight__placeholder__field__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_hotel__placeholder__field__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_job__placeholder__field__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_local__placeholder__field__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_location__extension__targeting__criterion__field__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_location__placeholder__field__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_message__placeholder__field__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_placeholder__type__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_price__placeholder__field__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_promotion__placeholder__field__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_real__estate__placeholder__field__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_sitelink__placeholder__field__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_structured__snippet__placeholder__field__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_travel__placeholder__field__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - - -_FEEDMAPPING = _descriptor.Descriptor( - name='FeedMapping', - full_name='google.ads.googleads.v1.resources.FeedMapping', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.resources.FeedMapping.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='feed', full_name='google.ads.googleads.v1.resources.FeedMapping.feed', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='attribute_field_mappings', full_name='google.ads.googleads.v1.resources.FeedMapping.attribute_field_mappings', index=2, - number=5, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='status', full_name='google.ads.googleads.v1.resources.FeedMapping.status', index=3, - number=6, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='placeholder_type', full_name='google.ads.googleads.v1.resources.FeedMapping.placeholder_type', index=4, - number=3, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='criterion_type', full_name='google.ads.googleads.v1.resources.FeedMapping.criterion_type', index=5, - number=4, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='target', full_name='google.ads.googleads.v1.resources.FeedMapping.target', - index=0, containing_type=None, fields=[]), - ], - serialized_start=1844, - serialized_end=2322, -) - - -_ATTRIBUTEFIELDMAPPING = _descriptor.Descriptor( - name='AttributeFieldMapping', - full_name='google.ads.googleads.v1.resources.AttributeFieldMapping', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='feed_attribute_id', full_name='google.ads.googleads.v1.resources.AttributeFieldMapping.feed_attribute_id', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='field_id', full_name='google.ads.googleads.v1.resources.AttributeFieldMapping.field_id', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='sitelink_field', full_name='google.ads.googleads.v1.resources.AttributeFieldMapping.sitelink_field', index=2, - number=3, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='call_field', full_name='google.ads.googleads.v1.resources.AttributeFieldMapping.call_field', index=3, - number=4, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='app_field', full_name='google.ads.googleads.v1.resources.AttributeFieldMapping.app_field', index=4, - number=5, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='location_field', full_name='google.ads.googleads.v1.resources.AttributeFieldMapping.location_field', index=5, - number=6, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='affiliate_location_field', full_name='google.ads.googleads.v1.resources.AttributeFieldMapping.affiliate_location_field', index=6, - number=7, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='callout_field', full_name='google.ads.googleads.v1.resources.AttributeFieldMapping.callout_field', index=7, - number=8, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='structured_snippet_field', full_name='google.ads.googleads.v1.resources.AttributeFieldMapping.structured_snippet_field', index=8, - number=9, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='message_field', full_name='google.ads.googleads.v1.resources.AttributeFieldMapping.message_field', index=9, - number=10, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='price_field', full_name='google.ads.googleads.v1.resources.AttributeFieldMapping.price_field', index=10, - number=11, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='promotion_field', full_name='google.ads.googleads.v1.resources.AttributeFieldMapping.promotion_field', index=11, - number=12, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='ad_customizer_field', full_name='google.ads.googleads.v1.resources.AttributeFieldMapping.ad_customizer_field', index=12, - number=13, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='dsa_page_feed_field', full_name='google.ads.googleads.v1.resources.AttributeFieldMapping.dsa_page_feed_field', index=13, - number=14, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='location_extension_targeting_field', full_name='google.ads.googleads.v1.resources.AttributeFieldMapping.location_extension_targeting_field', index=14, - number=15, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='education_field', full_name='google.ads.googleads.v1.resources.AttributeFieldMapping.education_field', index=15, - number=16, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='flight_field', full_name='google.ads.googleads.v1.resources.AttributeFieldMapping.flight_field', index=16, - number=17, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='custom_field', full_name='google.ads.googleads.v1.resources.AttributeFieldMapping.custom_field', index=17, - number=18, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='hotel_field', full_name='google.ads.googleads.v1.resources.AttributeFieldMapping.hotel_field', index=18, - number=19, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='real_estate_field', full_name='google.ads.googleads.v1.resources.AttributeFieldMapping.real_estate_field', index=19, - number=20, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='travel_field', full_name='google.ads.googleads.v1.resources.AttributeFieldMapping.travel_field', index=20, - number=21, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='local_field', full_name='google.ads.googleads.v1.resources.AttributeFieldMapping.local_field', index=21, - number=22, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='job_field', full_name='google.ads.googleads.v1.resources.AttributeFieldMapping.job_field', index=22, - number=23, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='field', full_name='google.ads.googleads.v1.resources.AttributeFieldMapping.field', - index=0, containing_type=None, fields=[]), - ], - serialized_start=2325, - serialized_end=4863, -) - -_FEEDMAPPING.fields_by_name['feed'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_FEEDMAPPING.fields_by_name['attribute_field_mappings'].message_type = _ATTRIBUTEFIELDMAPPING -_FEEDMAPPING.fields_by_name['status'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_feed__mapping__status__pb2._FEEDMAPPINGSTATUSENUM_FEEDMAPPINGSTATUS -_FEEDMAPPING.fields_by_name['placeholder_type'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_placeholder__type__pb2._PLACEHOLDERTYPEENUM_PLACEHOLDERTYPE -_FEEDMAPPING.fields_by_name['criterion_type'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_feed__mapping__criterion__type__pb2._FEEDMAPPINGCRITERIONTYPEENUM_FEEDMAPPINGCRITERIONTYPE -_FEEDMAPPING.oneofs_by_name['target'].fields.append( - _FEEDMAPPING.fields_by_name['placeholder_type']) -_FEEDMAPPING.fields_by_name['placeholder_type'].containing_oneof = _FEEDMAPPING.oneofs_by_name['target'] -_FEEDMAPPING.oneofs_by_name['target'].fields.append( - _FEEDMAPPING.fields_by_name['criterion_type']) -_FEEDMAPPING.fields_by_name['criterion_type'].containing_oneof = _FEEDMAPPING.oneofs_by_name['target'] -_ATTRIBUTEFIELDMAPPING.fields_by_name['feed_attribute_id'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -_ATTRIBUTEFIELDMAPPING.fields_by_name['field_id'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -_ATTRIBUTEFIELDMAPPING.fields_by_name['sitelink_field'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_sitelink__placeholder__field__pb2._SITELINKPLACEHOLDERFIELDENUM_SITELINKPLACEHOLDERFIELD -_ATTRIBUTEFIELDMAPPING.fields_by_name['call_field'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_call__placeholder__field__pb2._CALLPLACEHOLDERFIELDENUM_CALLPLACEHOLDERFIELD -_ATTRIBUTEFIELDMAPPING.fields_by_name['app_field'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_app__placeholder__field__pb2._APPPLACEHOLDERFIELDENUM_APPPLACEHOLDERFIELD -_ATTRIBUTEFIELDMAPPING.fields_by_name['location_field'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_location__placeholder__field__pb2._LOCATIONPLACEHOLDERFIELDENUM_LOCATIONPLACEHOLDERFIELD -_ATTRIBUTEFIELDMAPPING.fields_by_name['affiliate_location_field'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_affiliate__location__placeholder__field__pb2._AFFILIATELOCATIONPLACEHOLDERFIELDENUM_AFFILIATELOCATIONPLACEHOLDERFIELD -_ATTRIBUTEFIELDMAPPING.fields_by_name['callout_field'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_callout__placeholder__field__pb2._CALLOUTPLACEHOLDERFIELDENUM_CALLOUTPLACEHOLDERFIELD -_ATTRIBUTEFIELDMAPPING.fields_by_name['structured_snippet_field'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_structured__snippet__placeholder__field__pb2._STRUCTUREDSNIPPETPLACEHOLDERFIELDENUM_STRUCTUREDSNIPPETPLACEHOLDERFIELD -_ATTRIBUTEFIELDMAPPING.fields_by_name['message_field'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_message__placeholder__field__pb2._MESSAGEPLACEHOLDERFIELDENUM_MESSAGEPLACEHOLDERFIELD -_ATTRIBUTEFIELDMAPPING.fields_by_name['price_field'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_price__placeholder__field__pb2._PRICEPLACEHOLDERFIELDENUM_PRICEPLACEHOLDERFIELD -_ATTRIBUTEFIELDMAPPING.fields_by_name['promotion_field'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_promotion__placeholder__field__pb2._PROMOTIONPLACEHOLDERFIELDENUM_PROMOTIONPLACEHOLDERFIELD -_ATTRIBUTEFIELDMAPPING.fields_by_name['ad_customizer_field'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_ad__customizer__placeholder__field__pb2._ADCUSTOMIZERPLACEHOLDERFIELDENUM_ADCUSTOMIZERPLACEHOLDERFIELD -_ATTRIBUTEFIELDMAPPING.fields_by_name['dsa_page_feed_field'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_dsa__page__feed__criterion__field__pb2._DSAPAGEFEEDCRITERIONFIELDENUM_DSAPAGEFEEDCRITERIONFIELD -_ATTRIBUTEFIELDMAPPING.fields_by_name['location_extension_targeting_field'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_location__extension__targeting__criterion__field__pb2._LOCATIONEXTENSIONTARGETINGCRITERIONFIELDENUM_LOCATIONEXTENSIONTARGETINGCRITERIONFIELD -_ATTRIBUTEFIELDMAPPING.fields_by_name['education_field'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_education__placeholder__field__pb2._EDUCATIONPLACEHOLDERFIELDENUM_EDUCATIONPLACEHOLDERFIELD -_ATTRIBUTEFIELDMAPPING.fields_by_name['flight_field'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_flight__placeholder__field__pb2._FLIGHTPLACEHOLDERFIELDENUM_FLIGHTPLACEHOLDERFIELD -_ATTRIBUTEFIELDMAPPING.fields_by_name['custom_field'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_custom__placeholder__field__pb2._CUSTOMPLACEHOLDERFIELDENUM_CUSTOMPLACEHOLDERFIELD -_ATTRIBUTEFIELDMAPPING.fields_by_name['hotel_field'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_hotel__placeholder__field__pb2._HOTELPLACEHOLDERFIELDENUM_HOTELPLACEHOLDERFIELD -_ATTRIBUTEFIELDMAPPING.fields_by_name['real_estate_field'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_real__estate__placeholder__field__pb2._REALESTATEPLACEHOLDERFIELDENUM_REALESTATEPLACEHOLDERFIELD -_ATTRIBUTEFIELDMAPPING.fields_by_name['travel_field'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_travel__placeholder__field__pb2._TRAVELPLACEHOLDERFIELDENUM_TRAVELPLACEHOLDERFIELD -_ATTRIBUTEFIELDMAPPING.fields_by_name['local_field'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_local__placeholder__field__pb2._LOCALPLACEHOLDERFIELDENUM_LOCALPLACEHOLDERFIELD -_ATTRIBUTEFIELDMAPPING.fields_by_name['job_field'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_job__placeholder__field__pb2._JOBPLACEHOLDERFIELDENUM_JOBPLACEHOLDERFIELD -_ATTRIBUTEFIELDMAPPING.oneofs_by_name['field'].fields.append( - _ATTRIBUTEFIELDMAPPING.fields_by_name['sitelink_field']) -_ATTRIBUTEFIELDMAPPING.fields_by_name['sitelink_field'].containing_oneof = _ATTRIBUTEFIELDMAPPING.oneofs_by_name['field'] -_ATTRIBUTEFIELDMAPPING.oneofs_by_name['field'].fields.append( - _ATTRIBUTEFIELDMAPPING.fields_by_name['call_field']) -_ATTRIBUTEFIELDMAPPING.fields_by_name['call_field'].containing_oneof = _ATTRIBUTEFIELDMAPPING.oneofs_by_name['field'] -_ATTRIBUTEFIELDMAPPING.oneofs_by_name['field'].fields.append( - _ATTRIBUTEFIELDMAPPING.fields_by_name['app_field']) -_ATTRIBUTEFIELDMAPPING.fields_by_name['app_field'].containing_oneof = _ATTRIBUTEFIELDMAPPING.oneofs_by_name['field'] -_ATTRIBUTEFIELDMAPPING.oneofs_by_name['field'].fields.append( - _ATTRIBUTEFIELDMAPPING.fields_by_name['location_field']) -_ATTRIBUTEFIELDMAPPING.fields_by_name['location_field'].containing_oneof = _ATTRIBUTEFIELDMAPPING.oneofs_by_name['field'] -_ATTRIBUTEFIELDMAPPING.oneofs_by_name['field'].fields.append( - _ATTRIBUTEFIELDMAPPING.fields_by_name['affiliate_location_field']) -_ATTRIBUTEFIELDMAPPING.fields_by_name['affiliate_location_field'].containing_oneof = _ATTRIBUTEFIELDMAPPING.oneofs_by_name['field'] -_ATTRIBUTEFIELDMAPPING.oneofs_by_name['field'].fields.append( - _ATTRIBUTEFIELDMAPPING.fields_by_name['callout_field']) -_ATTRIBUTEFIELDMAPPING.fields_by_name['callout_field'].containing_oneof = _ATTRIBUTEFIELDMAPPING.oneofs_by_name['field'] -_ATTRIBUTEFIELDMAPPING.oneofs_by_name['field'].fields.append( - _ATTRIBUTEFIELDMAPPING.fields_by_name['structured_snippet_field']) -_ATTRIBUTEFIELDMAPPING.fields_by_name['structured_snippet_field'].containing_oneof = _ATTRIBUTEFIELDMAPPING.oneofs_by_name['field'] -_ATTRIBUTEFIELDMAPPING.oneofs_by_name['field'].fields.append( - _ATTRIBUTEFIELDMAPPING.fields_by_name['message_field']) -_ATTRIBUTEFIELDMAPPING.fields_by_name['message_field'].containing_oneof = _ATTRIBUTEFIELDMAPPING.oneofs_by_name['field'] -_ATTRIBUTEFIELDMAPPING.oneofs_by_name['field'].fields.append( - _ATTRIBUTEFIELDMAPPING.fields_by_name['price_field']) -_ATTRIBUTEFIELDMAPPING.fields_by_name['price_field'].containing_oneof = _ATTRIBUTEFIELDMAPPING.oneofs_by_name['field'] -_ATTRIBUTEFIELDMAPPING.oneofs_by_name['field'].fields.append( - _ATTRIBUTEFIELDMAPPING.fields_by_name['promotion_field']) -_ATTRIBUTEFIELDMAPPING.fields_by_name['promotion_field'].containing_oneof = _ATTRIBUTEFIELDMAPPING.oneofs_by_name['field'] -_ATTRIBUTEFIELDMAPPING.oneofs_by_name['field'].fields.append( - _ATTRIBUTEFIELDMAPPING.fields_by_name['ad_customizer_field']) -_ATTRIBUTEFIELDMAPPING.fields_by_name['ad_customizer_field'].containing_oneof = _ATTRIBUTEFIELDMAPPING.oneofs_by_name['field'] -_ATTRIBUTEFIELDMAPPING.oneofs_by_name['field'].fields.append( - _ATTRIBUTEFIELDMAPPING.fields_by_name['dsa_page_feed_field']) -_ATTRIBUTEFIELDMAPPING.fields_by_name['dsa_page_feed_field'].containing_oneof = _ATTRIBUTEFIELDMAPPING.oneofs_by_name['field'] -_ATTRIBUTEFIELDMAPPING.oneofs_by_name['field'].fields.append( - _ATTRIBUTEFIELDMAPPING.fields_by_name['location_extension_targeting_field']) -_ATTRIBUTEFIELDMAPPING.fields_by_name['location_extension_targeting_field'].containing_oneof = _ATTRIBUTEFIELDMAPPING.oneofs_by_name['field'] -_ATTRIBUTEFIELDMAPPING.oneofs_by_name['field'].fields.append( - _ATTRIBUTEFIELDMAPPING.fields_by_name['education_field']) -_ATTRIBUTEFIELDMAPPING.fields_by_name['education_field'].containing_oneof = _ATTRIBUTEFIELDMAPPING.oneofs_by_name['field'] -_ATTRIBUTEFIELDMAPPING.oneofs_by_name['field'].fields.append( - _ATTRIBUTEFIELDMAPPING.fields_by_name['flight_field']) -_ATTRIBUTEFIELDMAPPING.fields_by_name['flight_field'].containing_oneof = _ATTRIBUTEFIELDMAPPING.oneofs_by_name['field'] -_ATTRIBUTEFIELDMAPPING.oneofs_by_name['field'].fields.append( - _ATTRIBUTEFIELDMAPPING.fields_by_name['custom_field']) -_ATTRIBUTEFIELDMAPPING.fields_by_name['custom_field'].containing_oneof = _ATTRIBUTEFIELDMAPPING.oneofs_by_name['field'] -_ATTRIBUTEFIELDMAPPING.oneofs_by_name['field'].fields.append( - _ATTRIBUTEFIELDMAPPING.fields_by_name['hotel_field']) -_ATTRIBUTEFIELDMAPPING.fields_by_name['hotel_field'].containing_oneof = _ATTRIBUTEFIELDMAPPING.oneofs_by_name['field'] -_ATTRIBUTEFIELDMAPPING.oneofs_by_name['field'].fields.append( - _ATTRIBUTEFIELDMAPPING.fields_by_name['real_estate_field']) -_ATTRIBUTEFIELDMAPPING.fields_by_name['real_estate_field'].containing_oneof = _ATTRIBUTEFIELDMAPPING.oneofs_by_name['field'] -_ATTRIBUTEFIELDMAPPING.oneofs_by_name['field'].fields.append( - _ATTRIBUTEFIELDMAPPING.fields_by_name['travel_field']) -_ATTRIBUTEFIELDMAPPING.fields_by_name['travel_field'].containing_oneof = _ATTRIBUTEFIELDMAPPING.oneofs_by_name['field'] -_ATTRIBUTEFIELDMAPPING.oneofs_by_name['field'].fields.append( - _ATTRIBUTEFIELDMAPPING.fields_by_name['local_field']) -_ATTRIBUTEFIELDMAPPING.fields_by_name['local_field'].containing_oneof = _ATTRIBUTEFIELDMAPPING.oneofs_by_name['field'] -_ATTRIBUTEFIELDMAPPING.oneofs_by_name['field'].fields.append( - _ATTRIBUTEFIELDMAPPING.fields_by_name['job_field']) -_ATTRIBUTEFIELDMAPPING.fields_by_name['job_field'].containing_oneof = _ATTRIBUTEFIELDMAPPING.oneofs_by_name['field'] -DESCRIPTOR.message_types_by_name['FeedMapping'] = _FEEDMAPPING -DESCRIPTOR.message_types_by_name['AttributeFieldMapping'] = _ATTRIBUTEFIELDMAPPING -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -FeedMapping = _reflection.GeneratedProtocolMessageType('FeedMapping', (_message.Message,), dict( - DESCRIPTOR = _FEEDMAPPING, - __module__ = 'google.ads.googleads_v1.proto.resources.feed_mapping_pb2' - , - __doc__ = """A feed mapping. - - - Attributes: - resource_name: - The resource name of the feed mapping. Feed mapping resource - names have the form: ``customers/{customer_id}/feedMappings/{ - feed_id}~{feed_mapping_id}`` - feed: - The feed of this feed mapping. - attribute_field_mappings: - Feed attributes to field mappings. These mappings are a one- - to-many relationship meaning that 1 feed attribute can be used - to populate multiple placeholder fields, but 1 placeholder - field can only draw data from 1 feed attribute. Ad Customizer - is an exception, 1 placeholder field can be mapped to multiple - feed attributes. Required. - status: - Status of the feed mapping. This field is read-only. - target: - Feed mapping target. Can be either a placeholder or a - criterion. For a given feed, the active FeedMappings must have - unique targets. Required. - placeholder_type: - The placeholder type of this mapping (i.e., if the mapping - maps feed attributes to placeholder fields). - criterion_type: - The criterion type of this mapping (i.e., if the mapping maps - feed attributes to criterion fields). - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.resources.FeedMapping) - )) -_sym_db.RegisterMessage(FeedMapping) - -AttributeFieldMapping = _reflection.GeneratedProtocolMessageType('AttributeFieldMapping', (_message.Message,), dict( - DESCRIPTOR = _ATTRIBUTEFIELDMAPPING, - __module__ = 'google.ads.googleads_v1.proto.resources.feed_mapping_pb2' - , - __doc__ = """Maps from feed attribute id to a placeholder or criterion field id. - - - Attributes: - feed_attribute_id: - Feed attribute from which to map. - field_id: - The placeholder field ID. If a placeholder field enum is not - published in the current API version, then this field will be - populated and the field oneof will be empty. This field is - read-only. - field: - Placeholder or criterion field to be populated using data from - the above feed attribute. Required. - sitelink_field: - Sitelink Placeholder Fields. - call_field: - Call Placeholder Fields. - app_field: - App Placeholder Fields. - location_field: - Location Placeholder Fields. This field is read-only. - affiliate_location_field: - Affiliate Location Placeholder Fields. This field is read- - only. - callout_field: - Callout Placeholder Fields. - structured_snippet_field: - Structured Snippet Placeholder Fields. - message_field: - Message Placeholder Fields. - price_field: - Price Placeholder Fields. - promotion_field: - Promotion Placeholder Fields. - ad_customizer_field: - Ad Customizer Placeholder Fields - dsa_page_feed_field: - Dynamic Search Ad Page Feed Fields. - location_extension_targeting_field: - Location Target Fields. - education_field: - Education Placeholder Fields - flight_field: - Flight Placeholder Fields - custom_field: - Custom Placeholder Fields - hotel_field: - Hotel Placeholder Fields - real_estate_field: - Real Estate Placeholder Fields - travel_field: - Travel Placeholder Fields - local_field: - Local Placeholder Fields - job_field: - Job Placeholder Fields - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.resources.AttributeFieldMapping) - )) -_sym_db.RegisterMessage(AttributeFieldMapping) - - -DESCRIPTOR._options = None -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/resources/feed_pb2.py b/google/ads/google_ads/v1/proto/resources/feed_pb2.py deleted file mode 100644 index b3811bbf0..000000000 --- a/google/ads/google_ads/v1/proto/resources/feed_pb2.py +++ /dev/null @@ -1,598 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/resources/feed.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.ads.google_ads.v1.proto.enums import affiliate_location_feed_relationship_type_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_affiliate__location__feed__relationship__type__pb2 -from google.ads.google_ads.v1.proto.enums import feed_attribute_type_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_feed__attribute__type__pb2 -from google.ads.google_ads.v1.proto.enums import feed_origin_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_feed__origin__pb2 -from google.ads.google_ads.v1.proto.enums import feed_status_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_feed__status__pb2 -from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/resources/feed.proto', - package='google.ads.googleads.v1.resources', - syntax='proto3', - serialized_options=_b('\n%com.google.ads.googleads.v1.resourcesB\tFeedProtoP\001ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources\242\002\003GAA\252\002!Google.Ads.GoogleAds.V1.Resources\312\002!Google\\Ads\\GoogleAds\\V1\\Resources\352\002%Google::Ads::GoogleAds::V1::Resources'), - serialized_pb=_b('\n2google/ads/googleads_v1/proto/resources/feed.proto\x12!google.ads.googleads.v1.resources\x1aSgoogle/ads/googleads_v1/proto/enums/affiliate_location_feed_relationship_type.proto\x1a=google/ads/googleads_v1/proto/enums/feed_attribute_type.proto\x1a\x35google/ads/googleads_v1/proto/enums/feed_origin.proto\x1a\x35google/ads/googleads_v1/proto/enums/feed_status.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1cgoogle/api/annotations.proto\"\xba\x0b\n\x04\x46\x65\x65\x64\x12\x15\n\rresource_name\x18\x01 \x01(\t\x12\'\n\x02id\x18\x02 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12*\n\x04name\x18\x03 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x44\n\nattributes\x18\x04 \x03(\x0b\x32\x30.google.ads.googleads.v1.resources.FeedAttribute\x12W\n\x14\x61ttribute_operations\x18\t \x03(\x0b\x32\x39.google.ads.googleads.v1.resources.FeedAttributeOperation\x12H\n\x06origin\x18\x05 \x01(\x0e\x32\x38.google.ads.googleads.v1.enums.FeedOriginEnum.FeedOrigin\x12H\n\x06status\x18\x08 \x01(\x0e\x32\x38.google.ads.googleads.v1.enums.FeedStatusEnum.FeedStatus\x12\x63\n\x19places_location_feed_data\x18\x06 \x01(\x0b\x32>.google.ads.googleads.v1.resources.Feed.PlacesLocationFeedDataH\x00\x12i\n\x1c\x61\x66\x66iliate_location_feed_data\x18\x07 \x01(\x0b\x32\x41.google.ads.googleads.v1.resources.Feed.AffiliateLocationFeedDataH\x00\x1a\xc9\x04\n\x16PlacesLocationFeedData\x12\\\n\noauth_info\x18\x01 \x01(\x0b\x32H.google.ads.googleads.v1.resources.Feed.PlacesLocationFeedData.OAuthInfo\x12\x33\n\remail_address\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x39\n\x13\x62usiness_account_id\x18\n \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12:\n\x14\x62usiness_name_filter\x18\x04 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x36\n\x10\x63\x61tegory_filters\x18\x05 \x03(\x0b\x32\x1c.google.protobuf.StringValue\x12\x33\n\rlabel_filters\x18\x06 \x03(\x0b\x32\x1c.google.protobuf.StringValue\x1a\xb7\x01\n\tOAuthInfo\x12\x31\n\x0bhttp_method\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x36\n\x10http_request_url\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12?\n\x19http_authorization_header\x18\x03 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x1a\xd7\x01\n\x19\x41\x66\x66iliateLocationFeedData\x12.\n\tchain_ids\x18\x01 \x03(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x89\x01\n\x11relationship_type\x18\x02 \x01(\x0e\x32n.google.ads.googleads.v1.enums.AffiliateLocationFeedRelationshipTypeEnum.AffiliateLocationFeedRelationshipTypeB\x1d\n\x1bsystem_feed_generation_data\"\xee\x01\n\rFeedAttribute\x12\'\n\x02id\x18\x01 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12*\n\x04name\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12T\n\x04type\x18\x03 \x01(\x0e\x32\x46.google.ads.googleads.v1.enums.FeedAttributeTypeEnum.FeedAttributeType\x12\x32\n\x0eis_part_of_key\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.BoolValue\"\xe2\x01\n\x16\x46\x65\x65\x64\x41ttributeOperation\x12T\n\x08operator\x18\x01 \x01(\x0e\x32\x42.google.ads.googleads.v1.resources.FeedAttributeOperation.Operator\x12?\n\x05value\x18\x02 \x01(\x0b\x32\x30.google.ads.googleads.v1.resources.FeedAttribute\"1\n\x08Operator\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x07\n\x03\x41\x44\x44\x10\x02\x42\xf6\x01\n%com.google.ads.googleads.v1.resourcesB\tFeedProtoP\x01ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V1.Resources\xca\x02!Google\\Ads\\GoogleAds\\V1\\Resources\xea\x02%Google::Ads::GoogleAds::V1::Resourcesb\x06proto3') - , - dependencies=[google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_affiliate__location__feed__relationship__type__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_feed__attribute__type__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_feed__origin__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_feed__status__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - -_FEEDATTRIBUTEOPERATION_OPERATOR = _descriptor.EnumDescriptor( - name='Operator', - full_name='google.ads.googleads.v1.resources.FeedAttributeOperation.Operator', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='UNSPECIFIED', index=0, number=0, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='UNKNOWN', index=1, number=1, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='ADD', index=2, number=2, - serialized_options=None, - type=None), - ], - containing_type=None, - serialized_options=None, - serialized_start=2297, - serialized_end=2346, -) -_sym_db.RegisterEnumDescriptor(_FEEDATTRIBUTEOPERATION_OPERATOR) - - -_FEED_PLACESLOCATIONFEEDDATA_OAUTHINFO = _descriptor.Descriptor( - name='OAuthInfo', - full_name='google.ads.googleads.v1.resources.Feed.PlacesLocationFeedData.OAuthInfo', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='http_method', full_name='google.ads.googleads.v1.resources.Feed.PlacesLocationFeedData.OAuthInfo.http_method', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='http_request_url', full_name='google.ads.googleads.v1.resources.Feed.PlacesLocationFeedData.OAuthInfo.http_request_url', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='http_authorization_header', full_name='google.ads.googleads.v1.resources.Feed.PlacesLocationFeedData.OAuthInfo.http_authorization_header', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1444, - serialized_end=1627, -) - -_FEED_PLACESLOCATIONFEEDDATA = _descriptor.Descriptor( - name='PlacesLocationFeedData', - full_name='google.ads.googleads.v1.resources.Feed.PlacesLocationFeedData', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='oauth_info', full_name='google.ads.googleads.v1.resources.Feed.PlacesLocationFeedData.oauth_info', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='email_address', full_name='google.ads.googleads.v1.resources.Feed.PlacesLocationFeedData.email_address', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='business_account_id', full_name='google.ads.googleads.v1.resources.Feed.PlacesLocationFeedData.business_account_id', index=2, - number=10, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='business_name_filter', full_name='google.ads.googleads.v1.resources.Feed.PlacesLocationFeedData.business_name_filter', index=3, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='category_filters', full_name='google.ads.googleads.v1.resources.Feed.PlacesLocationFeedData.category_filters', index=4, - number=5, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='label_filters', full_name='google.ads.googleads.v1.resources.Feed.PlacesLocationFeedData.label_filters', index=5, - number=6, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[_FEED_PLACESLOCATIONFEEDDATA_OAUTHINFO, ], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1042, - serialized_end=1627, -) - -_FEED_AFFILIATELOCATIONFEEDDATA = _descriptor.Descriptor( - name='AffiliateLocationFeedData', - full_name='google.ads.googleads.v1.resources.Feed.AffiliateLocationFeedData', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='chain_ids', full_name='google.ads.googleads.v1.resources.Feed.AffiliateLocationFeedData.chain_ids', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='relationship_type', full_name='google.ads.googleads.v1.resources.Feed.AffiliateLocationFeedData.relationship_type', index=1, - number=2, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1630, - serialized_end=1845, -) - -_FEED = _descriptor.Descriptor( - name='Feed', - full_name='google.ads.googleads.v1.resources.Feed', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.resources.Feed.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='id', full_name='google.ads.googleads.v1.resources.Feed.id', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='name', full_name='google.ads.googleads.v1.resources.Feed.name', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='attributes', full_name='google.ads.googleads.v1.resources.Feed.attributes', index=3, - number=4, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='attribute_operations', full_name='google.ads.googleads.v1.resources.Feed.attribute_operations', index=4, - number=9, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='origin', full_name='google.ads.googleads.v1.resources.Feed.origin', index=5, - number=5, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='status', full_name='google.ads.googleads.v1.resources.Feed.status', index=6, - number=8, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='places_location_feed_data', full_name='google.ads.googleads.v1.resources.Feed.places_location_feed_data', index=7, - number=6, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='affiliate_location_feed_data', full_name='google.ads.googleads.v1.resources.Feed.affiliate_location_feed_data', index=8, - number=7, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[_FEED_PLACESLOCATIONFEEDDATA, _FEED_AFFILIATELOCATIONFEEDDATA, ], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='system_feed_generation_data', full_name='google.ads.googleads.v1.resources.Feed.system_feed_generation_data', - index=0, containing_type=None, fields=[]), - ], - serialized_start=410, - serialized_end=1876, -) - - -_FEEDATTRIBUTE = _descriptor.Descriptor( - name='FeedAttribute', - full_name='google.ads.googleads.v1.resources.FeedAttribute', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='id', full_name='google.ads.googleads.v1.resources.FeedAttribute.id', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='name', full_name='google.ads.googleads.v1.resources.FeedAttribute.name', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='type', full_name='google.ads.googleads.v1.resources.FeedAttribute.type', index=2, - number=3, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='is_part_of_key', full_name='google.ads.googleads.v1.resources.FeedAttribute.is_part_of_key', index=3, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1879, - serialized_end=2117, -) - - -_FEEDATTRIBUTEOPERATION = _descriptor.Descriptor( - name='FeedAttributeOperation', - full_name='google.ads.googleads.v1.resources.FeedAttributeOperation', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='operator', full_name='google.ads.googleads.v1.resources.FeedAttributeOperation.operator', index=0, - number=1, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='value', full_name='google.ads.googleads.v1.resources.FeedAttributeOperation.value', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - _FEEDATTRIBUTEOPERATION_OPERATOR, - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2120, - serialized_end=2346, -) - -_FEED_PLACESLOCATIONFEEDDATA_OAUTHINFO.fields_by_name['http_method'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_FEED_PLACESLOCATIONFEEDDATA_OAUTHINFO.fields_by_name['http_request_url'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_FEED_PLACESLOCATIONFEEDDATA_OAUTHINFO.fields_by_name['http_authorization_header'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_FEED_PLACESLOCATIONFEEDDATA_OAUTHINFO.containing_type = _FEED_PLACESLOCATIONFEEDDATA -_FEED_PLACESLOCATIONFEEDDATA.fields_by_name['oauth_info'].message_type = _FEED_PLACESLOCATIONFEEDDATA_OAUTHINFO -_FEED_PLACESLOCATIONFEEDDATA.fields_by_name['email_address'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_FEED_PLACESLOCATIONFEEDDATA.fields_by_name['business_account_id'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_FEED_PLACESLOCATIONFEEDDATA.fields_by_name['business_name_filter'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_FEED_PLACESLOCATIONFEEDDATA.fields_by_name['category_filters'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_FEED_PLACESLOCATIONFEEDDATA.fields_by_name['label_filters'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_FEED_PLACESLOCATIONFEEDDATA.containing_type = _FEED -_FEED_AFFILIATELOCATIONFEEDDATA.fields_by_name['chain_ids'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -_FEED_AFFILIATELOCATIONFEEDDATA.fields_by_name['relationship_type'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_affiliate__location__feed__relationship__type__pb2._AFFILIATELOCATIONFEEDRELATIONSHIPTYPEENUM_AFFILIATELOCATIONFEEDRELATIONSHIPTYPE -_FEED_AFFILIATELOCATIONFEEDDATA.containing_type = _FEED -_FEED.fields_by_name['id'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -_FEED.fields_by_name['name'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_FEED.fields_by_name['attributes'].message_type = _FEEDATTRIBUTE -_FEED.fields_by_name['attribute_operations'].message_type = _FEEDATTRIBUTEOPERATION -_FEED.fields_by_name['origin'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_feed__origin__pb2._FEEDORIGINENUM_FEEDORIGIN -_FEED.fields_by_name['status'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_feed__status__pb2._FEEDSTATUSENUM_FEEDSTATUS -_FEED.fields_by_name['places_location_feed_data'].message_type = _FEED_PLACESLOCATIONFEEDDATA -_FEED.fields_by_name['affiliate_location_feed_data'].message_type = _FEED_AFFILIATELOCATIONFEEDDATA -_FEED.oneofs_by_name['system_feed_generation_data'].fields.append( - _FEED.fields_by_name['places_location_feed_data']) -_FEED.fields_by_name['places_location_feed_data'].containing_oneof = _FEED.oneofs_by_name['system_feed_generation_data'] -_FEED.oneofs_by_name['system_feed_generation_data'].fields.append( - _FEED.fields_by_name['affiliate_location_feed_data']) -_FEED.fields_by_name['affiliate_location_feed_data'].containing_oneof = _FEED.oneofs_by_name['system_feed_generation_data'] -_FEEDATTRIBUTE.fields_by_name['id'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -_FEEDATTRIBUTE.fields_by_name['name'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_FEEDATTRIBUTE.fields_by_name['type'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_feed__attribute__type__pb2._FEEDATTRIBUTETYPEENUM_FEEDATTRIBUTETYPE -_FEEDATTRIBUTE.fields_by_name['is_part_of_key'].message_type = google_dot_protobuf_dot_wrappers__pb2._BOOLVALUE -_FEEDATTRIBUTEOPERATION.fields_by_name['operator'].enum_type = _FEEDATTRIBUTEOPERATION_OPERATOR -_FEEDATTRIBUTEOPERATION.fields_by_name['value'].message_type = _FEEDATTRIBUTE -_FEEDATTRIBUTEOPERATION_OPERATOR.containing_type = _FEEDATTRIBUTEOPERATION -DESCRIPTOR.message_types_by_name['Feed'] = _FEED -DESCRIPTOR.message_types_by_name['FeedAttribute'] = _FEEDATTRIBUTE -DESCRIPTOR.message_types_by_name['FeedAttributeOperation'] = _FEEDATTRIBUTEOPERATION -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -Feed = _reflection.GeneratedProtocolMessageType('Feed', (_message.Message,), dict( - - PlacesLocationFeedData = _reflection.GeneratedProtocolMessageType('PlacesLocationFeedData', (_message.Message,), dict( - - OAuthInfo = _reflection.GeneratedProtocolMessageType('OAuthInfo', (_message.Message,), dict( - DESCRIPTOR = _FEED_PLACESLOCATIONFEEDDATA_OAUTHINFO, - __module__ = 'google.ads.googleads_v1.proto.resources.feed_pb2' - , - __doc__ = """Data used for authorization using OAuth. - - - Attributes: - http_method: - The HTTP method used to obtain authorization. - http_request_url: - The HTTP request URL used to obtain authorization. - http_authorization_header: - The HTTP authorization header used to obtain authorization. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.resources.Feed.PlacesLocationFeedData.OAuthInfo) - )) - , - DESCRIPTOR = _FEED_PLACESLOCATIONFEEDDATA, - __module__ = 'google.ads.googleads_v1.proto.resources.feed_pb2' - , - __doc__ = """Data used to configure a location feed populated from Google My Business - Locations. - - - Attributes: - oauth_info: - Required authentication token (from OAuth API) for the email. - This field can only be specified in a create request. All its - subfields are not selectable. - email_address: - Email address of a Google My Business account or email address - of a manager of the Google My Business account. Required. - business_account_id: - Plus page ID of the managed business whose locations should be - used. If this field is not set, then all businesses accessible - by the user (specified by email\_address) are used. This field - is mutate-only and is not selectable. - business_name_filter: - Used to filter Google My Business listings by business name. - If business\_name\_filter is set, only listings with a - matching business name are candidates to be sync'd into - FeedItems. - category_filters: - Used to filter Google My Business listings by categories. If - entries exist in category\_filters, only listings that belong - to any of the categories are candidates to be sync'd into - FeedItems. If no entries exist in category\_filters, then all - listings are candidates for syncing. - label_filters: - Used to filter Google My Business listings by labels. If - entries exist in label\_filters, only listings that has any of - the labels set are candidates to be synchronized into - FeedItems. If no entries exist in label\_filters, then all - listings are candidates for syncing. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.resources.Feed.PlacesLocationFeedData) - )) - , - - AffiliateLocationFeedData = _reflection.GeneratedProtocolMessageType('AffiliateLocationFeedData', (_message.Message,), dict( - DESCRIPTOR = _FEED_AFFILIATELOCATIONFEEDDATA, - __module__ = 'google.ads.googleads_v1.proto.resources.feed_pb2' - , - __doc__ = """Data used to configure an affiliate location feed populated with the - specified chains. - - - Attributes: - chain_ids: - The list of chains that the affiliate location feed will sync - the locations from. - relationship_type: - The relationship the chains have with the advertiser. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.resources.Feed.AffiliateLocationFeedData) - )) - , - DESCRIPTOR = _FEED, - __module__ = 'google.ads.googleads_v1.proto.resources.feed_pb2' - , - __doc__ = """A feed. - - - Attributes: - resource_name: - The resource name of the feed. Feed resource names have the - form: ``customers/{customer_id}/feeds/{feed_id}`` - id: - The ID of the feed. This field is read-only. - name: - Name of the feed. Required. - attributes: - The Feed's attributes. Required on CREATE. Disallowed on - UPDATE. Use attribute\_operations to add new attributes. - attribute_operations: - The list of operations changing the feed attributes. - Attributes can only be added, not removed. - origin: - Specifies who manages the FeedAttributes for the Feed. - status: - Status of the feed. This field is read-only. - system_feed_generation_data: - The system data for the Feed. This data specifies information - for generating the feed items of the system generated feed. - places_location_feed_data: - Data used to configure a location feed populated from Google - My Business Locations. - affiliate_location_feed_data: - Data used to configure an affiliate location feed populated - with the specified chains. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.resources.Feed) - )) -_sym_db.RegisterMessage(Feed) -_sym_db.RegisterMessage(Feed.PlacesLocationFeedData) -_sym_db.RegisterMessage(Feed.PlacesLocationFeedData.OAuthInfo) -_sym_db.RegisterMessage(Feed.AffiliateLocationFeedData) - -FeedAttribute = _reflection.GeneratedProtocolMessageType('FeedAttribute', (_message.Message,), dict( - DESCRIPTOR = _FEEDATTRIBUTE, - __module__ = 'google.ads.googleads_v1.proto.resources.feed_pb2' - , - __doc__ = """FeedAttributes define the types of data expected to be present in a - Feed. A single FeedAttribute specifies the expected type of the - FeedItemAttributes with the same FeedAttributeId. Optionally, a - FeedAttribute can be marked as being part of a FeedItem's unique key. - - - Attributes: - id: - ID of the attribute. - name: - The name of the attribute. Required. - type: - Data type for feed attribute. Required. - is_part_of_key: - Indicates that data corresponding to this attribute is part of - a FeedItem's unique key. It defaults to false if it is - unspecified. Note that a unique key is not required in a - Feed's schema, in which case the FeedItems must be referenced - by their feed\_item\_id. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.resources.FeedAttribute) - )) -_sym_db.RegisterMessage(FeedAttribute) - -FeedAttributeOperation = _reflection.GeneratedProtocolMessageType('FeedAttributeOperation', (_message.Message,), dict( - DESCRIPTOR = _FEEDATTRIBUTEOPERATION, - __module__ = 'google.ads.googleads_v1.proto.resources.feed_pb2' - , - __doc__ = """Operation to be performed on a feed attribute list in a mutate. - - - Attributes: - operator: - Type of list operation to perform. - value: - The feed attribute being added to the list. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.resources.FeedAttributeOperation) - )) -_sym_db.RegisterMessage(FeedAttributeOperation) - - -DESCRIPTOR._options = None -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/resources/feed_placeholder_view_pb2.py b/google/ads/google_ads/v1/proto/resources/feed_placeholder_view_pb2.py deleted file mode 100644 index 795ee2f8b..000000000 --- a/google/ads/google_ads/v1/proto/resources/feed_placeholder_view_pb2.py +++ /dev/null @@ -1,94 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/resources/feed_placeholder_view.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.ads.google_ads.v1.proto.enums import placeholder_type_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_placeholder__type__pb2 -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/resources/feed_placeholder_view.proto', - package='google.ads.googleads.v1.resources', - syntax='proto3', - serialized_options=_b('\n%com.google.ads.googleads.v1.resourcesB\030FeedPlaceholderViewProtoP\001ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources\242\002\003GAA\252\002!Google.Ads.GoogleAds.V1.Resources\312\002!Google\\Ads\\GoogleAds\\V1\\Resources\352\002%Google::Ads::GoogleAds::V1::Resources'), - serialized_pb=_b('\nCgoogle/ads/googleads_v1/proto/resources/feed_placeholder_view.proto\x12!google.ads.googleads.v1.resources\x1a:google/ads/googleads_v1/proto/enums/placeholder_type.proto\x1a\x1cgoogle/api/annotations.proto\"\x8a\x01\n\x13\x46\x65\x65\x64PlaceholderView\x12\x15\n\rresource_name\x18\x01 \x01(\t\x12\\\n\x10placeholder_type\x18\x02 \x01(\x0e\x32\x42.google.ads.googleads.v1.enums.PlaceholderTypeEnum.PlaceholderTypeB\x85\x02\n%com.google.ads.googleads.v1.resourcesB\x18\x46\x65\x65\x64PlaceholderViewProtoP\x01ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V1.Resources\xca\x02!Google\\Ads\\GoogleAds\\V1\\Resources\xea\x02%Google::Ads::GoogleAds::V1::Resourcesb\x06proto3') - , - dependencies=[google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_placeholder__type__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - - -_FEEDPLACEHOLDERVIEW = _descriptor.Descriptor( - name='FeedPlaceholderView', - full_name='google.ads.googleads.v1.resources.FeedPlaceholderView', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.resources.FeedPlaceholderView.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='placeholder_type', full_name='google.ads.googleads.v1.resources.FeedPlaceholderView.placeholder_type', index=1, - number=2, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=197, - serialized_end=335, -) - -_FEEDPLACEHOLDERVIEW.fields_by_name['placeholder_type'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_placeholder__type__pb2._PLACEHOLDERTYPEENUM_PLACEHOLDERTYPE -DESCRIPTOR.message_types_by_name['FeedPlaceholderView'] = _FEEDPLACEHOLDERVIEW -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -FeedPlaceholderView = _reflection.GeneratedProtocolMessageType('FeedPlaceholderView', (_message.Message,), dict( - DESCRIPTOR = _FEEDPLACEHOLDERVIEW, - __module__ = 'google.ads.googleads_v1.proto.resources.feed_placeholder_view_pb2' - , - __doc__ = """A feed placeholder view. - - - Attributes: - resource_name: - The resource name of the feed placeholder view. Feed - placeholder view resource names have the form: ``customers/{c - ustomer_id}/feedPlaceholderViews/{placeholder_type}`` - placeholder_type: - The placeholder type of the feed placeholder view. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.resources.FeedPlaceholderView) - )) -_sym_db.RegisterMessage(FeedPlaceholderView) - - -DESCRIPTOR._options = None -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/resources/gender_view_pb2.py b/google/ads/google_ads/v1/proto/resources/gender_view_pb2.py deleted file mode 100644 index 47087655c..000000000 --- a/google/ads/google_ads/v1/proto/resources/gender_view_pb2.py +++ /dev/null @@ -1,83 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/resources/gender_view.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/resources/gender_view.proto', - package='google.ads.googleads.v1.resources', - syntax='proto3', - serialized_options=_b('\n%com.google.ads.googleads.v1.resourcesB\017GenderViewProtoP\001ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources\242\002\003GAA\252\002!Google.Ads.GoogleAds.V1.Resources\312\002!Google\\Ads\\GoogleAds\\V1\\Resources\352\002%Google::Ads::GoogleAds::V1::Resources'), - serialized_pb=_b('\n9google/ads/googleads_v1/proto/resources/gender_view.proto\x12!google.ads.googleads.v1.resources\x1a\x1cgoogle/api/annotations.proto\"#\n\nGenderView\x12\x15\n\rresource_name\x18\x01 \x01(\tB\xfc\x01\n%com.google.ads.googleads.v1.resourcesB\x0fGenderViewProtoP\x01ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V1.Resources\xca\x02!Google\\Ads\\GoogleAds\\V1\\Resources\xea\x02%Google::Ads::GoogleAds::V1::Resourcesb\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - - -_GENDERVIEW = _descriptor.Descriptor( - name='GenderView', - full_name='google.ads.googleads.v1.resources.GenderView', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.resources.GenderView.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=126, - serialized_end=161, -) - -DESCRIPTOR.message_types_by_name['GenderView'] = _GENDERVIEW -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -GenderView = _reflection.GeneratedProtocolMessageType('GenderView', (_message.Message,), dict( - DESCRIPTOR = _GENDERVIEW, - __module__ = 'google.ads.googleads_v1.proto.resources.gender_view_pb2' - , - __doc__ = """A gender view. - - - Attributes: - resource_name: - The resource name of the gender view. Gender view resource - names have the form: ``customers/{customer_id}/genderViews/{a - d_group_id}~{criterion_id}`` - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.resources.GenderView) - )) -_sym_db.RegisterMessage(GenderView) - - -DESCRIPTOR._options = None -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/resources/geo_target_constant_pb2.py b/google/ads/google_ads/v1/proto/resources/geo_target_constant_pb2.py deleted file mode 100644 index b81f3fc92..000000000 --- a/google/ads/google_ads/v1/proto/resources/geo_target_constant_pb2.py +++ /dev/null @@ -1,147 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/resources/geo_target_constant.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.ads.google_ads.v1.proto.enums import geo_target_constant_status_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_geo__target__constant__status__pb2 -from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/resources/geo_target_constant.proto', - package='google.ads.googleads.v1.resources', - syntax='proto3', - serialized_options=_b('\n%com.google.ads.googleads.v1.resourcesB\026GeoTargetConstantProtoP\001ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources\242\002\003GAA\252\002!Google.Ads.GoogleAds.V1.Resources\312\002!Google\\Ads\\GoogleAds\\V1\\Resources\352\002%Google::Ads::GoogleAds::V1::Resources'), - serialized_pb=_b('\nAgoogle/ads/googleads_v1/proto/resources/geo_target_constant.proto\x12!google.ads.googleads.v1.resources\x1a\x44google/ads/googleads_v1/proto/enums/geo_target_constant_status.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1cgoogle/api/annotations.proto\"\x80\x03\n\x11GeoTargetConstant\x12\x15\n\rresource_name\x18\x01 \x01(\t\x12\'\n\x02id\x18\x03 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12*\n\x04name\x18\x04 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x32\n\x0c\x63ountry_code\x18\x05 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x31\n\x0btarget_type\x18\x06 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x62\n\x06status\x18\x07 \x01(\x0e\x32R.google.ads.googleads.v1.enums.GeoTargetConstantStatusEnum.GeoTargetConstantStatus\x12\x34\n\x0e\x63\x61nonical_name\x18\x08 \x01(\x0b\x32\x1c.google.protobuf.StringValueB\x83\x02\n%com.google.ads.googleads.v1.resourcesB\x16GeoTargetConstantProtoP\x01ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V1.Resources\xca\x02!Google\\Ads\\GoogleAds\\V1\\Resources\xea\x02%Google::Ads::GoogleAds::V1::Resourcesb\x06proto3') - , - dependencies=[google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_geo__target__constant__status__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - - -_GEOTARGETCONSTANT = _descriptor.Descriptor( - name='GeoTargetConstant', - full_name='google.ads.googleads.v1.resources.GeoTargetConstant', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.resources.GeoTargetConstant.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='id', full_name='google.ads.googleads.v1.resources.GeoTargetConstant.id', index=1, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='name', full_name='google.ads.googleads.v1.resources.GeoTargetConstant.name', index=2, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='country_code', full_name='google.ads.googleads.v1.resources.GeoTargetConstant.country_code', index=3, - number=5, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='target_type', full_name='google.ads.googleads.v1.resources.GeoTargetConstant.target_type', index=4, - number=6, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='status', full_name='google.ads.googleads.v1.resources.GeoTargetConstant.status', index=5, - number=7, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='canonical_name', full_name='google.ads.googleads.v1.resources.GeoTargetConstant.canonical_name', index=6, - number=8, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=237, - serialized_end=621, -) - -_GEOTARGETCONSTANT.fields_by_name['id'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -_GEOTARGETCONSTANT.fields_by_name['name'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_GEOTARGETCONSTANT.fields_by_name['country_code'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_GEOTARGETCONSTANT.fields_by_name['target_type'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_GEOTARGETCONSTANT.fields_by_name['status'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_geo__target__constant__status__pb2._GEOTARGETCONSTANTSTATUSENUM_GEOTARGETCONSTANTSTATUS -_GEOTARGETCONSTANT.fields_by_name['canonical_name'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -DESCRIPTOR.message_types_by_name['GeoTargetConstant'] = _GEOTARGETCONSTANT -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -GeoTargetConstant = _reflection.GeneratedProtocolMessageType('GeoTargetConstant', (_message.Message,), dict( - DESCRIPTOR = _GEOTARGETCONSTANT, - __module__ = 'google.ads.googleads_v1.proto.resources.geo_target_constant_pb2' - , - __doc__ = """A geo target constant. - - - Attributes: - resource_name: - The resource name of the geo target constant. Geo target - constant resource names have the form: - ``geoTargetConstants/{geo_target_constant_id}`` - id: - The ID of the geo target constant. - name: - Geo target constant English name. - country_code: - The ISO-3166-1 alpha-2 country code that is associated with - the target. - target_type: - Geo target constant target type. - status: - Geo target constant status. - canonical_name: - The fully qualified English name, consisting of the target's - name and that of its parent and country. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.resources.GeoTargetConstant) - )) -_sym_db.RegisterMessage(GeoTargetConstant) - - -DESCRIPTOR._options = None -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/resources/geographic_view_pb2.py b/google/ads/google_ads/v1/proto/resources/geographic_view_pb2.py deleted file mode 100644 index 0026aa166..000000000 --- a/google/ads/google_ads/v1/proto/resources/geographic_view_pb2.py +++ /dev/null @@ -1,110 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/resources/geographic_view.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.ads.google_ads.v1.proto.enums import geo_targeting_type_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_geo__targeting__type__pb2 -from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/resources/geographic_view.proto', - package='google.ads.googleads.v1.resources', - syntax='proto3', - serialized_options=_b('\n%com.google.ads.googleads.v1.resourcesB\023GeographicViewProtoP\001ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources\242\002\003GAA\252\002!Google.Ads.GoogleAds.V1.Resources\312\002!Google\\Ads\\GoogleAds\\V1\\Resources\352\002%Google::Ads::GoogleAds::V1::Resources'), - serialized_pb=_b('\n=google/ads/googleads_v1/proto/resources/geographic_view.proto\x12!google.ads.googleads.v1.resources\x1agoogle/ads/googleads_v1/proto/resources/google_ads_field.proto\x12!google.ads.googleads.v1.resources\x1a\x43google/ads/googleads_v1/proto/enums/google_ads_field_category.proto\x1a\x44google/ads/googleads_v1/proto/enums/google_ads_field_data_type.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1cgoogle/api/annotations.proto\"\x8f\x06\n\x0eGoogleAdsField\x12\x15\n\rresource_name\x18\x01 \x01(\t\x12*\n\x04name\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x62\n\x08\x63\x61tegory\x18\x03 \x01(\x0e\x32P.google.ads.googleads.v1.enums.GoogleAdsFieldCategoryEnum.GoogleAdsFieldCategory\x12.\n\nselectable\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.BoolValue\x12.\n\nfilterable\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.BoolValue\x12,\n\x08sortable\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.BoolValue\x12\x35\n\x0fselectable_with\x18\x07 \x03(\x0b\x32\x1c.google.protobuf.StringValue\x12\x39\n\x13\x61ttribute_resources\x18\x08 \x03(\x0b\x32\x1c.google.protobuf.StringValue\x12-\n\x07metrics\x18\t \x03(\x0b\x32\x1c.google.protobuf.StringValue\x12.\n\x08segments\x18\n \x03(\x0b\x32\x1c.google.protobuf.StringValue\x12\x31\n\x0b\x65num_values\x18\x0b \x03(\x0b\x32\x1c.google.protobuf.StringValue\x12\x63\n\tdata_type\x18\x0c \x01(\x0e\x32P.google.ads.googleads.v1.enums.GoogleAdsFieldDataTypeEnum.GoogleAdsFieldDataType\x12.\n\x08type_url\x18\r \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12/\n\x0bis_repeated\x18\x0e \x01(\x0b\x32\x1a.google.protobuf.BoolValueB\x80\x02\n%com.google.ads.googleads.v1.resourcesB\x13GoogleAdsFieldProtoP\x01ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V1.Resources\xca\x02!Google\\Ads\\GoogleAds\\V1\\Resources\xea\x02%Google::Ads::GoogleAds::V1::Resourcesb\x06proto3') - , - dependencies=[google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_google__ads__field__category__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_google__ads__field__data__type__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - - -_GOOGLEADSFIELD = _descriptor.Descriptor( - name='GoogleAdsField', - full_name='google.ads.googleads.v1.resources.GoogleAdsField', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.resources.GoogleAdsField.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='name', full_name='google.ads.googleads.v1.resources.GoogleAdsField.name', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='category', full_name='google.ads.googleads.v1.resources.GoogleAdsField.category', index=2, - number=3, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='selectable', full_name='google.ads.googleads.v1.resources.GoogleAdsField.selectable', index=3, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='filterable', full_name='google.ads.googleads.v1.resources.GoogleAdsField.filterable', index=4, - number=5, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='sortable', full_name='google.ads.googleads.v1.resources.GoogleAdsField.sortable', index=5, - number=6, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='selectable_with', full_name='google.ads.googleads.v1.resources.GoogleAdsField.selectable_with', index=6, - number=7, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='attribute_resources', full_name='google.ads.googleads.v1.resources.GoogleAdsField.attribute_resources', index=7, - number=8, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='metrics', full_name='google.ads.googleads.v1.resources.GoogleAdsField.metrics', index=8, - number=9, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='segments', full_name='google.ads.googleads.v1.resources.GoogleAdsField.segments', index=9, - number=10, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='enum_values', full_name='google.ads.googleads.v1.resources.GoogleAdsField.enum_values', index=10, - number=11, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='data_type', full_name='google.ads.googleads.v1.resources.GoogleAdsField.data_type', index=11, - number=12, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='type_url', full_name='google.ads.googleads.v1.resources.GoogleAdsField.type_url', index=12, - number=13, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='is_repeated', full_name='google.ads.googleads.v1.resources.GoogleAdsField.is_repeated', index=13, - number=14, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=303, - serialized_end=1086, -) - -_GOOGLEADSFIELD.fields_by_name['name'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_GOOGLEADSFIELD.fields_by_name['category'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_google__ads__field__category__pb2._GOOGLEADSFIELDCATEGORYENUM_GOOGLEADSFIELDCATEGORY -_GOOGLEADSFIELD.fields_by_name['selectable'].message_type = google_dot_protobuf_dot_wrappers__pb2._BOOLVALUE -_GOOGLEADSFIELD.fields_by_name['filterable'].message_type = google_dot_protobuf_dot_wrappers__pb2._BOOLVALUE -_GOOGLEADSFIELD.fields_by_name['sortable'].message_type = google_dot_protobuf_dot_wrappers__pb2._BOOLVALUE -_GOOGLEADSFIELD.fields_by_name['selectable_with'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_GOOGLEADSFIELD.fields_by_name['attribute_resources'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_GOOGLEADSFIELD.fields_by_name['metrics'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_GOOGLEADSFIELD.fields_by_name['segments'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_GOOGLEADSFIELD.fields_by_name['enum_values'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_GOOGLEADSFIELD.fields_by_name['data_type'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_google__ads__field__data__type__pb2._GOOGLEADSFIELDDATATYPEENUM_GOOGLEADSFIELDDATATYPE -_GOOGLEADSFIELD.fields_by_name['type_url'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_GOOGLEADSFIELD.fields_by_name['is_repeated'].message_type = google_dot_protobuf_dot_wrappers__pb2._BOOLVALUE -DESCRIPTOR.message_types_by_name['GoogleAdsField'] = _GOOGLEADSFIELD -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -GoogleAdsField = _reflection.GeneratedProtocolMessageType('GoogleAdsField', (_message.Message,), dict( - DESCRIPTOR = _GOOGLEADSFIELD, - __module__ = 'google.ads.googleads_v1.proto.resources.google_ads_field_pb2' - , - __doc__ = """A field or resource (artifact) used by GoogleAdsService. - - - Attributes: - resource_name: - The resource name of the artifact. Artifact resource names - have the form: ``googleAdsFields/{name}`` - name: - The name of the artifact. - category: - The category of the artifact. - selectable: - Whether the artifact can be used in a SELECT clause in search - queries. - filterable: - Whether the artifact can be used in a WHERE clause in search - queries. - sortable: - Whether the artifact can be used in a ORDER BY clause in - search queries. - selectable_with: - The names of all resources, segments, and metrics that are - selectable with the described artifact. - attribute_resources: - The names of all resources that are selectable with the - described artifact. Fields from these resources do not segment - metrics when included in search queries. This field is only - set for artifacts whose category is RESOURCE. - metrics: - At and beyond version V1 this field lists the names of all - metrics that are selectable with the described artifact when - it is used in the FROM clause. It is only set for artifacts - whose category is RESOURCE. Before version V1 this field - lists the names of all metrics that are selectable with the - described artifact. It is only set for artifacts whose - category is either RESOURCE or SEGMENT - segments: - At and beyond version V1 this field lists the names of all - artifacts, whether a segment or another resource, that segment - metrics when included in search queries and when the described - artifact is used in the FROM clause. It is only set for - artifacts whose category is RESOURCE. Before version V1 this - field lists the names of all artifacts, whether a segment or - another resource, that segment metrics when included in search - queries. It is only set for artifacts of category RESOURCE, - SEGMENT or METRIC. - enum_values: - Values the artifact can assume if it is a field of type ENUM. - This field is only set for artifacts of category SEGMENT or - ATTRIBUTE. - data_type: - This field determines the operators that can be used with the - artifact in WHERE clauses. - type_url: - The URL of proto describing the artifact's data type. - is_repeated: - Whether the field artifact is repeated. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.resources.GoogleAdsField) - )) -_sym_db.RegisterMessage(GoogleAdsField) - - -DESCRIPTOR._options = None -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/resources/group_placement_view_pb2.py b/google/ads/google_ads/v1/proto/resources/group_placement_view_pb2.py deleted file mode 100644 index 10b752643..000000000 --- a/google/ads/google_ads/v1/proto/resources/group_placement_view_pb2.py +++ /dev/null @@ -1,129 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/resources/group_placement_view.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.ads.google_ads.v1.proto.enums import placement_type_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_placement__type__pb2 -from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/resources/group_placement_view.proto', - package='google.ads.googleads.v1.resources', - syntax='proto3', - serialized_options=_b('\n%com.google.ads.googleads.v1.resourcesB\027GroupPlacementViewProtoP\001ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources\242\002\003GAA\252\002!Google.Ads.GoogleAds.V1.Resources\312\002!Google\\Ads\\GoogleAds\\V1\\Resources\352\002%Google::Ads::GoogleAds::V1::Resources'), - serialized_pb=_b('\nBgoogle/ads/googleads_v1/proto/resources/group_placement_view.proto\x12!google.ads.googleads.v1.resources\x1a\x38google/ads/googleads_v1/proto/enums/placement_type.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1cgoogle/api/annotations.proto\"\x9a\x02\n\x12GroupPlacementView\x12\x15\n\rresource_name\x18\x01 \x01(\t\x12/\n\tplacement\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x32\n\x0c\x64isplay_name\x18\x03 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x30\n\ntarget_url\x18\x04 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12V\n\x0eplacement_type\x18\x05 \x01(\x0e\x32>.google.ads.googleads.v1.enums.PlacementTypeEnum.PlacementTypeB\x84\x02\n%com.google.ads.googleads.v1.resourcesB\x17GroupPlacementViewProtoP\x01ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V1.Resources\xca\x02!Google\\Ads\\GoogleAds\\V1\\Resources\xea\x02%Google::Ads::GoogleAds::V1::Resourcesb\x06proto3') - , - dependencies=[google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_placement__type__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - - -_GROUPPLACEMENTVIEW = _descriptor.Descriptor( - name='GroupPlacementView', - full_name='google.ads.googleads.v1.resources.GroupPlacementView', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.resources.GroupPlacementView.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='placement', full_name='google.ads.googleads.v1.resources.GroupPlacementView.placement', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='display_name', full_name='google.ads.googleads.v1.resources.GroupPlacementView.display_name', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='target_url', full_name='google.ads.googleads.v1.resources.GroupPlacementView.target_url', index=3, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='placement_type', full_name='google.ads.googleads.v1.resources.GroupPlacementView.placement_type', index=4, - number=5, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=226, - serialized_end=508, -) - -_GROUPPLACEMENTVIEW.fields_by_name['placement'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_GROUPPLACEMENTVIEW.fields_by_name['display_name'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_GROUPPLACEMENTVIEW.fields_by_name['target_url'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_GROUPPLACEMENTVIEW.fields_by_name['placement_type'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_placement__type__pb2._PLACEMENTTYPEENUM_PLACEMENTTYPE -DESCRIPTOR.message_types_by_name['GroupPlacementView'] = _GROUPPLACEMENTVIEW -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -GroupPlacementView = _reflection.GeneratedProtocolMessageType('GroupPlacementView', (_message.Message,), dict( - DESCRIPTOR = _GROUPPLACEMENTVIEW, - __module__ = 'google.ads.googleads_v1.proto.resources.group_placement_view_pb2' - , - __doc__ = """A group placement view. - - - Attributes: - resource_name: - The resource name of the group placement view. Group placement - view resource names have the form: ``customers/{customer_id}/ - groupPlacementViews/{ad_group_id}~{base64_placement}`` - placement: - The automatic placement string at group level, e. g. web - domain, mobile app ID, or a YouTube channel ID. - display_name: - Domain name for websites and YouTube channel name for YouTube - channels. - target_url: - URL of the group placement, e.g. domain, link to the mobile - application in app store, or a YouTube channel URL. - placement_type: - Type of the placement, e.g. Website, YouTube Channel, Mobile - Application. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.resources.GroupPlacementView) - )) -_sym_db.RegisterMessage(GroupPlacementView) - - -DESCRIPTOR._options = None -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/resources/hotel_group_view_pb2.py b/google/ads/google_ads/v1/proto/resources/hotel_group_view_pb2.py deleted file mode 100644 index 559b9eda9..000000000 --- a/google/ads/google_ads/v1/proto/resources/hotel_group_view_pb2.py +++ /dev/null @@ -1,83 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/resources/hotel_group_view.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/resources/hotel_group_view.proto', - package='google.ads.googleads.v1.resources', - syntax='proto3', - serialized_options=_b('\n%com.google.ads.googleads.v1.resourcesB\023HotelGroupViewProtoP\001ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources\242\002\003GAA\252\002!Google.Ads.GoogleAds.V1.Resources\312\002!Google\\Ads\\GoogleAds\\V1\\Resources\352\002%Google::Ads::GoogleAds::V1::Resources'), - serialized_pb=_b('\n>google/ads/googleads_v1/proto/resources/hotel_group_view.proto\x12!google.ads.googleads.v1.resources\x1a\x1cgoogle/api/annotations.proto\"\'\n\x0eHotelGroupView\x12\x15\n\rresource_name\x18\x01 \x01(\tB\x80\x02\n%com.google.ads.googleads.v1.resourcesB\x13HotelGroupViewProtoP\x01ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V1.Resources\xca\x02!Google\\Ads\\GoogleAds\\V1\\Resources\xea\x02%Google::Ads::GoogleAds::V1::Resourcesb\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - - -_HOTELGROUPVIEW = _descriptor.Descriptor( - name='HotelGroupView', - full_name='google.ads.googleads.v1.resources.HotelGroupView', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.resources.HotelGroupView.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=131, - serialized_end=170, -) - -DESCRIPTOR.message_types_by_name['HotelGroupView'] = _HOTELGROUPVIEW -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -HotelGroupView = _reflection.GeneratedProtocolMessageType('HotelGroupView', (_message.Message,), dict( - DESCRIPTOR = _HOTELGROUPVIEW, - __module__ = 'google.ads.googleads_v1.proto.resources.hotel_group_view_pb2' - , - __doc__ = """A hotel group view. - - - Attributes: - resource_name: - The resource name of the hotel group view. Hotel Group view - resource names have the form: ``customers/{customer_id}/hotel - GroupViews/{ad_group_id}~{criterion_id}`` - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.resources.HotelGroupView) - )) -_sym_db.RegisterMessage(HotelGroupView) - - -DESCRIPTOR._options = None -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/resources/hotel_performance_view_pb2.py b/google/ads/google_ads/v1/proto/resources/hotel_performance_view_pb2.py deleted file mode 100644 index 464ac350b..000000000 --- a/google/ads/google_ads/v1/proto/resources/hotel_performance_view_pb2.py +++ /dev/null @@ -1,83 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/resources/hotel_performance_view.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/resources/hotel_performance_view.proto', - package='google.ads.googleads.v1.resources', - syntax='proto3', - serialized_options=_b('\n%com.google.ads.googleads.v1.resourcesB\031HotelPerformanceViewProtoP\001ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources\242\002\003GAA\252\002!Google.Ads.GoogleAds.V1.Resources\312\002!Google\\Ads\\GoogleAds\\V1\\Resources\352\002%Google::Ads::GoogleAds::V1::Resources'), - serialized_pb=_b('\nDgoogle/ads/googleads_v1/proto/resources/hotel_performance_view.proto\x12!google.ads.googleads.v1.resources\x1a\x1cgoogle/api/annotations.proto\"-\n\x14HotelPerformanceView\x12\x15\n\rresource_name\x18\x01 \x01(\tB\x86\x02\n%com.google.ads.googleads.v1.resourcesB\x19HotelPerformanceViewProtoP\x01ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V1.Resources\xca\x02!Google\\Ads\\GoogleAds\\V1\\Resources\xea\x02%Google::Ads::GoogleAds::V1::Resourcesb\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - - -_HOTELPERFORMANCEVIEW = _descriptor.Descriptor( - name='HotelPerformanceView', - full_name='google.ads.googleads.v1.resources.HotelPerformanceView', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.resources.HotelPerformanceView.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=137, - serialized_end=182, -) - -DESCRIPTOR.message_types_by_name['HotelPerformanceView'] = _HOTELPERFORMANCEVIEW -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -HotelPerformanceView = _reflection.GeneratedProtocolMessageType('HotelPerformanceView', (_message.Message,), dict( - DESCRIPTOR = _HOTELPERFORMANCEVIEW, - __module__ = 'google.ads.googleads_v1.proto.resources.hotel_performance_view_pb2' - , - __doc__ = """A hotel performance view. - - - Attributes: - resource_name: - The resource name of the hotel performance view. Hotel - performance view resource names have the form: - ``customers/{customer_id}/hotelPerformanceView`` - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.resources.HotelPerformanceView) - )) -_sym_db.RegisterMessage(HotelPerformanceView) - - -DESCRIPTOR._options = None -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/resources/keyword_plan_ad_group_pb2.py b/google/ads/google_ads/v1/proto/resources/keyword_plan_ad_group_pb2.py deleted file mode 100644 index e5f714d9d..000000000 --- a/google/ads/google_ads/v1/proto/resources/keyword_plan_ad_group_pb2.py +++ /dev/null @@ -1,128 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/resources/keyword_plan_ad_group.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/resources/keyword_plan_ad_group.proto', - package='google.ads.googleads.v1.resources', - syntax='proto3', - serialized_options=_b('\n%com.google.ads.googleads.v1.resourcesB\027KeywordPlanAdGroupProtoP\001ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources\242\002\003GAA\252\002!Google.Ads.GoogleAds.V1.Resources\312\002!Google\\Ads\\GoogleAds\\V1\\Resources\352\002%Google::Ads::GoogleAds::V1::Resources'), - serialized_pb=_b('\nCgoogle/ads/googleads_v1/proto/resources/keyword_plan_ad_group.proto\x12!google.ads.googleads.v1.resources\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1cgoogle/api/annotations.proto\"\xf2\x01\n\x12KeywordPlanAdGroup\x12\x15\n\rresource_name\x18\x01 \x01(\t\x12;\n\x15keyword_plan_campaign\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\'\n\x02id\x18\x03 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12*\n\x04name\x18\x04 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x33\n\x0e\x63pc_bid_micros\x18\x05 \x01(\x0b\x32\x1b.google.protobuf.Int64ValueB\x84\x02\n%com.google.ads.googleads.v1.resourcesB\x17KeywordPlanAdGroupProtoP\x01ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V1.Resources\xca\x02!Google\\Ads\\GoogleAds\\V1\\Resources\xea\x02%Google::Ads::GoogleAds::V1::Resourcesb\x06proto3') - , - dependencies=[google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - - -_KEYWORDPLANADGROUP = _descriptor.Descriptor( - name='KeywordPlanAdGroup', - full_name='google.ads.googleads.v1.resources.KeywordPlanAdGroup', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.resources.KeywordPlanAdGroup.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='keyword_plan_campaign', full_name='google.ads.googleads.v1.resources.KeywordPlanAdGroup.keyword_plan_campaign', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='id', full_name='google.ads.googleads.v1.resources.KeywordPlanAdGroup.id', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='name', full_name='google.ads.googleads.v1.resources.KeywordPlanAdGroup.name', index=3, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='cpc_bid_micros', full_name='google.ads.googleads.v1.resources.KeywordPlanAdGroup.cpc_bid_micros', index=4, - number=5, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=169, - serialized_end=411, -) - -_KEYWORDPLANADGROUP.fields_by_name['keyword_plan_campaign'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_KEYWORDPLANADGROUP.fields_by_name['id'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -_KEYWORDPLANADGROUP.fields_by_name['name'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_KEYWORDPLANADGROUP.fields_by_name['cpc_bid_micros'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -DESCRIPTOR.message_types_by_name['KeywordPlanAdGroup'] = _KEYWORDPLANADGROUP -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -KeywordPlanAdGroup = _reflection.GeneratedProtocolMessageType('KeywordPlanAdGroup', (_message.Message,), dict( - DESCRIPTOR = _KEYWORDPLANADGROUP, - __module__ = 'google.ads.googleads_v1.proto.resources.keyword_plan_ad_group_pb2' - , - __doc__ = """A Keyword Planner ad group. Max number of keyword plan ad groups per - plan: 200. - - - Attributes: - resource_name: - The resource name of the Keyword Planner ad group. - KeywordPlanAdGroup resource names have the form: ``customers/ - {customer_id}/keywordPlanAdGroups/{kp_ad_group_id}`` - keyword_plan_campaign: - The keyword plan campaign to which this ad group belongs. - id: - The ID of the keyword plan ad group. - name: - The name of the keyword plan ad group. This field is required - and should not be empty when creating keyword plan ad group. - cpc_bid_micros: - A default ad group max cpc bid in micros in account currency - for all biddable keywords under the keyword plan ad group. If - not set, will inherit from parent campaign. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.resources.KeywordPlanAdGroup) - )) -_sym_db.RegisterMessage(KeywordPlanAdGroup) - - -DESCRIPTOR._options = None -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/resources/keyword_plan_campaign_pb2.py b/google/ads/google_ads/v1/proto/resources/keyword_plan_campaign_pb2.py deleted file mode 100644 index 2d315024f..000000000 --- a/google/ads/google_ads/v1/proto/resources/keyword_plan_campaign_pb2.py +++ /dev/null @@ -1,209 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/resources/keyword_plan_campaign.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.ads.google_ads.v1.proto.enums import keyword_plan_network_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_keyword__plan__network__pb2 -from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/resources/keyword_plan_campaign.proto', - package='google.ads.googleads.v1.resources', - syntax='proto3', - serialized_options=_b('\n%com.google.ads.googleads.v1.resourcesB\030KeywordPlanCampaignProtoP\001ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources\242\002\003GAA\252\002!Google.Ads.GoogleAds.V1.Resources\312\002!Google\\Ads\\GoogleAds\\V1\\Resources\352\002%Google::Ads::GoogleAds::V1::Resources'), - serialized_pb=_b('\nCgoogle/ads/googleads_v1/proto/resources/keyword_plan_campaign.proto\x12!google.ads.googleads.v1.resources\x1a>google/ads/googleads_v1/proto/enums/keyword_plan_network.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1cgoogle/api/annotations.proto\"\xda\x03\n\x13KeywordPlanCampaign\x12\x15\n\rresource_name\x18\x01 \x01(\t\x12\x32\n\x0ckeyword_plan\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\'\n\x02id\x18\x03 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12*\n\x04name\x18\x04 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x38\n\x12language_constants\x18\x05 \x03(\x0b\x32\x1c.google.protobuf.StringValue\x12\x66\n\x14keyword_plan_network\x18\x06 \x01(\x0e\x32H.google.ads.googleads.v1.enums.KeywordPlanNetworkEnum.KeywordPlanNetwork\x12\x33\n\x0e\x63pc_bid_micros\x18\x07 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12L\n\x0bgeo_targets\x18\x08 \x03(\x0b\x32\x37.google.ads.googleads.v1.resources.KeywordPlanGeoTarget\"Q\n\x14KeywordPlanGeoTarget\x12\x39\n\x13geo_target_constant\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValueB\x85\x02\n%com.google.ads.googleads.v1.resourcesB\x18KeywordPlanCampaignProtoP\x01ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V1.Resources\xca\x02!Google\\Ads\\GoogleAds\\V1\\Resources\xea\x02%Google::Ads::GoogleAds::V1::Resourcesb\x06proto3') - , - dependencies=[google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_keyword__plan__network__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - - -_KEYWORDPLANCAMPAIGN = _descriptor.Descriptor( - name='KeywordPlanCampaign', - full_name='google.ads.googleads.v1.resources.KeywordPlanCampaign', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.resources.KeywordPlanCampaign.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='keyword_plan', full_name='google.ads.googleads.v1.resources.KeywordPlanCampaign.keyword_plan', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='id', full_name='google.ads.googleads.v1.resources.KeywordPlanCampaign.id', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='name', full_name='google.ads.googleads.v1.resources.KeywordPlanCampaign.name', index=3, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='language_constants', full_name='google.ads.googleads.v1.resources.KeywordPlanCampaign.language_constants', index=4, - number=5, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='keyword_plan_network', full_name='google.ads.googleads.v1.resources.KeywordPlanCampaign.keyword_plan_network', index=5, - number=6, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='cpc_bid_micros', full_name='google.ads.googleads.v1.resources.KeywordPlanCampaign.cpc_bid_micros', index=6, - number=7, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='geo_targets', full_name='google.ads.googleads.v1.resources.KeywordPlanCampaign.geo_targets', index=7, - number=8, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=233, - serialized_end=707, -) - - -_KEYWORDPLANGEOTARGET = _descriptor.Descriptor( - name='KeywordPlanGeoTarget', - full_name='google.ads.googleads.v1.resources.KeywordPlanGeoTarget', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='geo_target_constant', full_name='google.ads.googleads.v1.resources.KeywordPlanGeoTarget.geo_target_constant', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=709, - serialized_end=790, -) - -_KEYWORDPLANCAMPAIGN.fields_by_name['keyword_plan'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_KEYWORDPLANCAMPAIGN.fields_by_name['id'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -_KEYWORDPLANCAMPAIGN.fields_by_name['name'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_KEYWORDPLANCAMPAIGN.fields_by_name['language_constants'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_KEYWORDPLANCAMPAIGN.fields_by_name['keyword_plan_network'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_keyword__plan__network__pb2._KEYWORDPLANNETWORKENUM_KEYWORDPLANNETWORK -_KEYWORDPLANCAMPAIGN.fields_by_name['cpc_bid_micros'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -_KEYWORDPLANCAMPAIGN.fields_by_name['geo_targets'].message_type = _KEYWORDPLANGEOTARGET -_KEYWORDPLANGEOTARGET.fields_by_name['geo_target_constant'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -DESCRIPTOR.message_types_by_name['KeywordPlanCampaign'] = _KEYWORDPLANCAMPAIGN -DESCRIPTOR.message_types_by_name['KeywordPlanGeoTarget'] = _KEYWORDPLANGEOTARGET -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -KeywordPlanCampaign = _reflection.GeneratedProtocolMessageType('KeywordPlanCampaign', (_message.Message,), dict( - DESCRIPTOR = _KEYWORDPLANCAMPAIGN, - __module__ = 'google.ads.googleads_v1.proto.resources.keyword_plan_campaign_pb2' - , - __doc__ = """A Keyword Plan campaign. Max number of keyword plan campaigns per plan - allowed: 1. - - - Attributes: - resource_name: - The resource name of the Keyword Plan campaign. - KeywordPlanCampaign resource names have the form: ``customers - /{customer_id}/keywordPlanCampaigns/{kp_campaign_id}`` - keyword_plan: - The keyword plan this campaign belongs to. - id: - The ID of the Keyword Plan campaign. - name: - The name of the Keyword Plan campaign. This field is required - and should not be empty when creating Keyword Plan campaigns. - language_constants: - The languages targeted for the Keyword Plan campaign. Max - allowed: 1. - keyword_plan_network: - Targeting network. This field is required and should not be - empty when creating Keyword Plan campaigns. - cpc_bid_micros: - A default max cpc bid in micros, and in the account currency, - for all ad groups under the campaign. This field is required - and should not be empty when creating Keyword Plan campaigns. - geo_targets: - The geo targets. Max number allowed: 20. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.resources.KeywordPlanCampaign) - )) -_sym_db.RegisterMessage(KeywordPlanCampaign) - -KeywordPlanGeoTarget = _reflection.GeneratedProtocolMessageType('KeywordPlanGeoTarget', (_message.Message,), dict( - DESCRIPTOR = _KEYWORDPLANGEOTARGET, - __module__ = 'google.ads.googleads_v1.proto.resources.keyword_plan_campaign_pb2' - , - __doc__ = """A geo target. Next ID: 3 - - - Attributes: - geo_target_constant: - Required. The resource name of the geo target. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.resources.KeywordPlanGeoTarget) - )) -_sym_db.RegisterMessage(KeywordPlanGeoTarget) - - -DESCRIPTOR._options = None -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/resources/keyword_plan_keyword_pb2.py b/google/ads/google_ads/v1/proto/resources/keyword_plan_keyword_pb2.py deleted file mode 100644 index 7e5cf38a5..000000000 --- a/google/ads/google_ads/v1/proto/resources/keyword_plan_keyword_pb2.py +++ /dev/null @@ -1,137 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/resources/keyword_plan_keyword.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.ads.google_ads.v1.proto.enums import keyword_match_type_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_keyword__match__type__pb2 -from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/resources/keyword_plan_keyword.proto', - package='google.ads.googleads.v1.resources', - syntax='proto3', - serialized_options=_b('\n%com.google.ads.googleads.v1.resourcesB\027KeywordPlanKeywordProtoP\001ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources\242\002\003GAA\252\002!Google.Ads.GoogleAds.V1.Resources\312\002!Google\\Ads\\GoogleAds\\V1\\Resources\352\002%Google::Ads::GoogleAds::V1::Resources'), - serialized_pb=_b('\nBgoogle/ads/googleads_v1/proto/resources/keyword_plan_keyword.proto\x12!google.ads.googleads.v1.resources\x1a\n\x05image\x18\x03 \x01(\x0b\x32-.google.ads.googleads.v1.resources.MediaImageH\x00\x12\x46\n\x0cmedia_bundle\x18\x04 \x01(\x0b\x32..google.ads.googleads.v1.resources.MediaBundleH\x00\x12>\n\x05\x61udio\x18\n \x01(\x0b\x32-.google.ads.googleads.v1.resources.MediaAudioH\x00\x12>\n\x05video\x18\x0b \x01(\x0b\x32-.google.ads.googleads.v1.resources.MediaVideoH\x00\x42\x0b\n\tmediatype\"7\n\nMediaImage\x12)\n\x04\x64\x61ta\x18\x01 \x01(\x0b\x32\x1b.google.protobuf.BytesValue\"8\n\x0bMediaBundle\x12)\n\x04\x64\x61ta\x18\x01 \x01(\x0b\x32\x1b.google.protobuf.BytesValue\"E\n\nMediaAudio\x12\x37\n\x12\x61\x64_duration_millis\x18\x01 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\"\xe9\x01\n\nMediaVideo\x12\x37\n\x12\x61\x64_duration_millis\x18\x01 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x36\n\x10youtube_video_id\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x39\n\x13\x61\x64vertising_id_code\x18\x03 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12/\n\tisci_code\x18\x04 \x01(\x0b\x32\x1c.google.protobuf.StringValueB\xfb\x01\n%com.google.ads.googleads.v1.resourcesB\x0eMediaFileProtoP\x01ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V1.Resources\xca\x02!Google\\Ads\\GoogleAds\\V1\\Resources\xea\x02%Google::Ads::GoogleAds::V1::Resourcesb\x06proto3') - , - dependencies=[google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_media__type__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_mime__type__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - - -_MEDIAFILE = _descriptor.Descriptor( - name='MediaFile', - full_name='google.ads.googleads.v1.resources.MediaFile', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.resources.MediaFile.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='id', full_name='google.ads.googleads.v1.resources.MediaFile.id', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='type', full_name='google.ads.googleads.v1.resources.MediaFile.type', index=2, - number=5, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='mime_type', full_name='google.ads.googleads.v1.resources.MediaFile.mime_type', index=3, - number=6, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='source_url', full_name='google.ads.googleads.v1.resources.MediaFile.source_url', index=4, - number=7, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='name', full_name='google.ads.googleads.v1.resources.MediaFile.name', index=5, - number=8, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='file_size', full_name='google.ads.googleads.v1.resources.MediaFile.file_size', index=6, - number=9, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='image', full_name='google.ads.googleads.v1.resources.MediaFile.image', index=7, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='media_bundle', full_name='google.ads.googleads.v1.resources.MediaFile.media_bundle', index=8, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='audio', full_name='google.ads.googleads.v1.resources.MediaFile.audio', index=9, - number=10, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='video', full_name='google.ads.googleads.v1.resources.MediaFile.video', index=10, - number=11, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='mediatype', full_name='google.ads.googleads.v1.resources.MediaFile.mediatype', - index=0, containing_type=None, fields=[]), - ], - serialized_start=265, - serialized_end=902, -) - - -_MEDIAIMAGE = _descriptor.Descriptor( - name='MediaImage', - full_name='google.ads.googleads.v1.resources.MediaImage', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='data', full_name='google.ads.googleads.v1.resources.MediaImage.data', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=904, - serialized_end=959, -) - - -_MEDIABUNDLE = _descriptor.Descriptor( - name='MediaBundle', - full_name='google.ads.googleads.v1.resources.MediaBundle', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='data', full_name='google.ads.googleads.v1.resources.MediaBundle.data', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=961, - serialized_end=1017, -) - - -_MEDIAAUDIO = _descriptor.Descriptor( - name='MediaAudio', - full_name='google.ads.googleads.v1.resources.MediaAudio', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='ad_duration_millis', full_name='google.ads.googleads.v1.resources.MediaAudio.ad_duration_millis', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1019, - serialized_end=1088, -) - - -_MEDIAVIDEO = _descriptor.Descriptor( - name='MediaVideo', - full_name='google.ads.googleads.v1.resources.MediaVideo', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='ad_duration_millis', full_name='google.ads.googleads.v1.resources.MediaVideo.ad_duration_millis', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='youtube_video_id', full_name='google.ads.googleads.v1.resources.MediaVideo.youtube_video_id', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='advertising_id_code', full_name='google.ads.googleads.v1.resources.MediaVideo.advertising_id_code', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='isci_code', full_name='google.ads.googleads.v1.resources.MediaVideo.isci_code', index=3, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1091, - serialized_end=1324, -) - -_MEDIAFILE.fields_by_name['id'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -_MEDIAFILE.fields_by_name['type'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_media__type__pb2._MEDIATYPEENUM_MEDIATYPE -_MEDIAFILE.fields_by_name['mime_type'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_mime__type__pb2._MIMETYPEENUM_MIMETYPE -_MEDIAFILE.fields_by_name['source_url'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_MEDIAFILE.fields_by_name['name'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_MEDIAFILE.fields_by_name['file_size'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -_MEDIAFILE.fields_by_name['image'].message_type = _MEDIAIMAGE -_MEDIAFILE.fields_by_name['media_bundle'].message_type = _MEDIABUNDLE -_MEDIAFILE.fields_by_name['audio'].message_type = _MEDIAAUDIO -_MEDIAFILE.fields_by_name['video'].message_type = _MEDIAVIDEO -_MEDIAFILE.oneofs_by_name['mediatype'].fields.append( - _MEDIAFILE.fields_by_name['image']) -_MEDIAFILE.fields_by_name['image'].containing_oneof = _MEDIAFILE.oneofs_by_name['mediatype'] -_MEDIAFILE.oneofs_by_name['mediatype'].fields.append( - _MEDIAFILE.fields_by_name['media_bundle']) -_MEDIAFILE.fields_by_name['media_bundle'].containing_oneof = _MEDIAFILE.oneofs_by_name['mediatype'] -_MEDIAFILE.oneofs_by_name['mediatype'].fields.append( - _MEDIAFILE.fields_by_name['audio']) -_MEDIAFILE.fields_by_name['audio'].containing_oneof = _MEDIAFILE.oneofs_by_name['mediatype'] -_MEDIAFILE.oneofs_by_name['mediatype'].fields.append( - _MEDIAFILE.fields_by_name['video']) -_MEDIAFILE.fields_by_name['video'].containing_oneof = _MEDIAFILE.oneofs_by_name['mediatype'] -_MEDIAIMAGE.fields_by_name['data'].message_type = google_dot_protobuf_dot_wrappers__pb2._BYTESVALUE -_MEDIABUNDLE.fields_by_name['data'].message_type = google_dot_protobuf_dot_wrappers__pb2._BYTESVALUE -_MEDIAAUDIO.fields_by_name['ad_duration_millis'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -_MEDIAVIDEO.fields_by_name['ad_duration_millis'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -_MEDIAVIDEO.fields_by_name['youtube_video_id'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_MEDIAVIDEO.fields_by_name['advertising_id_code'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_MEDIAVIDEO.fields_by_name['isci_code'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -DESCRIPTOR.message_types_by_name['MediaFile'] = _MEDIAFILE -DESCRIPTOR.message_types_by_name['MediaImage'] = _MEDIAIMAGE -DESCRIPTOR.message_types_by_name['MediaBundle'] = _MEDIABUNDLE -DESCRIPTOR.message_types_by_name['MediaAudio'] = _MEDIAAUDIO -DESCRIPTOR.message_types_by_name['MediaVideo'] = _MEDIAVIDEO -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -MediaFile = _reflection.GeneratedProtocolMessageType('MediaFile', (_message.Message,), dict( - DESCRIPTOR = _MEDIAFILE, - __module__ = 'google.ads.googleads_v1.proto.resources.media_file_pb2' - , - __doc__ = """A media file. - - - Attributes: - resource_name: - The resource name of the media file. Media file resource names - have the form: - ``customers/{customer_id}/mediaFiles/{media_file_id}`` - id: - The ID of the media file. - type: - Type of the media file. - mime_type: - The mime type of the media file. - source_url: - The URL of where the original media file was downloaded from - (or a file name). - name: - The name of the media file. The name can be used by clients to - help identify previously uploaded media. - file_size: - The size of the media file in bytes. - mediatype: - The specific type of the media file. - image: - Encapsulates an Image. - media_bundle: - A ZIP archive media the content of which contains HTML5 - assets. - audio: - Encapsulates an Audio. - video: - Encapsulates a Video. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.resources.MediaFile) - )) -_sym_db.RegisterMessage(MediaFile) - -MediaImage = _reflection.GeneratedProtocolMessageType('MediaImage', (_message.Message,), dict( - DESCRIPTOR = _MEDIAIMAGE, - __module__ = 'google.ads.googleads_v1.proto.resources.media_file_pb2' - , - __doc__ = """Encapsulates an Image. - - - Attributes: - data: - Raw image data. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.resources.MediaImage) - )) -_sym_db.RegisterMessage(MediaImage) - -MediaBundle = _reflection.GeneratedProtocolMessageType('MediaBundle', (_message.Message,), dict( - DESCRIPTOR = _MEDIABUNDLE, - __module__ = 'google.ads.googleads_v1.proto.resources.media_file_pb2' - , - __doc__ = """Represents a ZIP archive media the content of which contains HTML5 - assets. - - - Attributes: - data: - Raw zipped data. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.resources.MediaBundle) - )) -_sym_db.RegisterMessage(MediaBundle) - -MediaAudio = _reflection.GeneratedProtocolMessageType('MediaAudio', (_message.Message,), dict( - DESCRIPTOR = _MEDIAAUDIO, - __module__ = 'google.ads.googleads_v1.proto.resources.media_file_pb2' - , - __doc__ = """Encapsulates an Audio. - - - Attributes: - ad_duration_millis: - The duration of the Audio in milliseconds. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.resources.MediaAudio) - )) -_sym_db.RegisterMessage(MediaAudio) - -MediaVideo = _reflection.GeneratedProtocolMessageType('MediaVideo', (_message.Message,), dict( - DESCRIPTOR = _MEDIAVIDEO, - __module__ = 'google.ads.googleads_v1.proto.resources.media_file_pb2' - , - __doc__ = """Encapsulates a Video. - - - Attributes: - ad_duration_millis: - The duration of the Video in milliseconds. - youtube_video_id: - The YouTube video ID (as seen in YouTube URLs). - advertising_id_code: - The Advertising Digital Identification code for this video, as - defined by the American Association of Advertising Agencies, - used mainly for television commercials. - isci_code: - The Industry Standard Commercial Identifier code for this - video, used mainly for television commercials. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.resources.MediaVideo) - )) -_sym_db.RegisterMessage(MediaVideo) - - -DESCRIPTOR._options = None -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/resources/merchant_center_link_pb2.py b/google/ads/google_ads/v1/proto/resources/merchant_center_link_pb2.py deleted file mode 100644 index 7509339eb..000000000 --- a/google/ads/google_ads/v1/proto/resources/merchant_center_link_pb2.py +++ /dev/null @@ -1,117 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/resources/merchant_center_link.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.ads.google_ads.v1.proto.enums import merchant_center_link_status_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_merchant__center__link__status__pb2 -from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/resources/merchant_center_link.proto', - package='google.ads.googleads.v1.resources', - syntax='proto3', - serialized_options=_b('\n%com.google.ads.googleads.v1.resourcesB\027MerchantCenterLinkProtoP\001ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources\242\002\003GAA\252\002!Google.Ads.GoogleAds.V1.Resources\312\002!Google\\Ads\\GoogleAds\\V1\\Resources\352\002%Google::Ads::GoogleAds::V1::Resources'), - serialized_pb=_b('\nBgoogle/ads/googleads_v1/proto/resources/merchant_center_link.proto\x12!google.ads.googleads.v1.resources\x1a\x45google/ads/googleads_v1/proto/enums/merchant_center_link_status.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1cgoogle/api/annotations.proto\"\xfe\x01\n\x12MerchantCenterLink\x12\x15\n\rresource_name\x18\x01 \x01(\t\x12\'\n\x02id\x18\x03 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x42\n\x1cmerchant_center_account_name\x18\x04 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x64\n\x06status\x18\x05 \x01(\x0e\x32T.google.ads.googleads.v1.enums.MerchantCenterLinkStatusEnum.MerchantCenterLinkStatusB\x84\x02\n%com.google.ads.googleads.v1.resourcesB\x17MerchantCenterLinkProtoP\x01ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V1.Resources\xca\x02!Google\\Ads\\GoogleAds\\V1\\Resources\xea\x02%Google::Ads::GoogleAds::V1::Resourcesb\x06proto3') - , - dependencies=[google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_merchant__center__link__status__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - - -_MERCHANTCENTERLINK = _descriptor.Descriptor( - name='MerchantCenterLink', - full_name='google.ads.googleads.v1.resources.MerchantCenterLink', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.resources.MerchantCenterLink.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='id', full_name='google.ads.googleads.v1.resources.MerchantCenterLink.id', index=1, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='merchant_center_account_name', full_name='google.ads.googleads.v1.resources.MerchantCenterLink.merchant_center_account_name', index=2, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='status', full_name='google.ads.googleads.v1.resources.MerchantCenterLink.status', index=3, - number=5, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=239, - serialized_end=493, -) - -_MERCHANTCENTERLINK.fields_by_name['id'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -_MERCHANTCENTERLINK.fields_by_name['merchant_center_account_name'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_MERCHANTCENTERLINK.fields_by_name['status'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_merchant__center__link__status__pb2._MERCHANTCENTERLINKSTATUSENUM_MERCHANTCENTERLINKSTATUS -DESCRIPTOR.message_types_by_name['MerchantCenterLink'] = _MERCHANTCENTERLINK -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -MerchantCenterLink = _reflection.GeneratedProtocolMessageType('MerchantCenterLink', (_message.Message,), dict( - DESCRIPTOR = _MERCHANTCENTERLINK, - __module__ = 'google.ads.googleads_v1.proto.resources.merchant_center_link_pb2' - , - __doc__ = """A data sharing connection, proposed or in use, between a Google Ads - Customer and a Merchant Center account. - - - Attributes: - resource_name: - The resource name of the merchant center link. Merchant center - link resource names have the form: ``customers/{customer_id}/ - merchantCenterLinks/{merchant_center_id}`` - id: - The ID of the Merchant Center account. This field is readonly. - merchant_center_account_name: - The name of the Merchant Center account. This field is - readonly. - status: - The status of the link. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.resources.MerchantCenterLink) - )) -_sym_db.RegisterMessage(MerchantCenterLink) - - -DESCRIPTOR._options = None -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/resources/mobile_app_category_constant_pb2.py b/google/ads/google_ads/v1/proto/resources/mobile_app_category_constant_pb2.py deleted file mode 100644 index 19fcd292d..000000000 --- a/google/ads/google_ads/v1/proto/resources/mobile_app_category_constant_pb2.py +++ /dev/null @@ -1,104 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/resources/mobile_app_category_constant.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/resources/mobile_app_category_constant.proto', - package='google.ads.googleads.v1.resources', - syntax='proto3', - serialized_options=_b('\n%com.google.ads.googleads.v1.resourcesB\036MobileAppCategoryConstantProtoP\001ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources\242\002\003GAA\252\002!Google.Ads.GoogleAds.V1.Resources\312\002!Google\\Ads\\GoogleAds\\V1\\Resources\352\002%Google::Ads::GoogleAds::V1::Resources'), - serialized_pb=_b('\nJgoogle/ads/googleads_v1/proto/resources/mobile_app_category_constant.proto\x12!google.ads.googleads.v1.resources\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1cgoogle/api/annotations.proto\"\x87\x01\n\x19MobileAppCategoryConstant\x12\x15\n\rresource_name\x18\x01 \x01(\t\x12\'\n\x02id\x18\x02 \x01(\x0b\x32\x1b.google.protobuf.Int32Value\x12*\n\x04name\x18\x03 \x01(\x0b\x32\x1c.google.protobuf.StringValueB\x8b\x02\n%com.google.ads.googleads.v1.resourcesB\x1eMobileAppCategoryConstantProtoP\x01ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V1.Resources\xca\x02!Google\\Ads\\GoogleAds\\V1\\Resources\xea\x02%Google::Ads::GoogleAds::V1::Resourcesb\x06proto3') - , - dependencies=[google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - - -_MOBILEAPPCATEGORYCONSTANT = _descriptor.Descriptor( - name='MobileAppCategoryConstant', - full_name='google.ads.googleads.v1.resources.MobileAppCategoryConstant', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.resources.MobileAppCategoryConstant.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='id', full_name='google.ads.googleads.v1.resources.MobileAppCategoryConstant.id', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='name', full_name='google.ads.googleads.v1.resources.MobileAppCategoryConstant.name', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=176, - serialized_end=311, -) - -_MOBILEAPPCATEGORYCONSTANT.fields_by_name['id'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT32VALUE -_MOBILEAPPCATEGORYCONSTANT.fields_by_name['name'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -DESCRIPTOR.message_types_by_name['MobileAppCategoryConstant'] = _MOBILEAPPCATEGORYCONSTANT -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -MobileAppCategoryConstant = _reflection.GeneratedProtocolMessageType('MobileAppCategoryConstant', (_message.Message,), dict( - DESCRIPTOR = _MOBILEAPPCATEGORYCONSTANT, - __module__ = 'google.ads.googleads_v1.proto.resources.mobile_app_category_constant_pb2' - , - __doc__ = """A mobile application category constant. - - - Attributes: - resource_name: - The resource name of the mobile app category constant. Mobile - app category constant resource names have the form: - ``mobileAppCategoryConstants/{mobile_app_category_id}`` - id: - The ID of the mobile app category constant. - name: - Mobile app category name. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.resources.MobileAppCategoryConstant) - )) -_sym_db.RegisterMessage(MobileAppCategoryConstant) - - -DESCRIPTOR._options = None -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/resources/mobile_device_constant_pb2.py b/google/ads/google_ads/v1/proto/resources/mobile_device_constant_pb2.py deleted file mode 100644 index 90065ec6a..000000000 --- a/google/ads/google_ads/v1/proto/resources/mobile_device_constant_pb2.py +++ /dev/null @@ -1,135 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/resources/mobile_device_constant.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.ads.google_ads.v1.proto.enums import mobile_device_type_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_mobile__device__type__pb2 -from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/resources/mobile_device_constant.proto', - package='google.ads.googleads.v1.resources', - syntax='proto3', - serialized_options=_b('\n%com.google.ads.googleads.v1.resourcesB\031MobileDeviceConstantProtoP\001ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources\242\002\003GAA\252\002!Google.Ads.GoogleAds.V1.Resources\312\002!Google\\Ads\\GoogleAds\\V1\\Resources\352\002%Google::Ads::GoogleAds::V1::Resources'), - serialized_pb=_b('\nDgoogle/ads/googleads_v1/proto/resources/mobile_device_constant.proto\x12!google.ads.googleads.v1.resources\x1a.google.ads.googleads.v1.resources.MutateJob.MutateJobMetadata\x12R\n\x06status\x18\x05 \x01(\x0e\x32\x42.google.ads.googleads.v1.enums.MutateJobStatusEnum.MutateJobStatus\x12<\n\x16long_running_operation\x18\x06 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x1a\xc0\x02\n\x11MutateJobMetadata\x12\x38\n\x12\x63reation_date_time\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12:\n\x14\x63ompletion_date_time\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12@\n\x1a\x65stimated_completion_ratio\x18\x03 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12\x34\n\x0foperation_count\x18\x04 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12=\n\x18\x65xecuted_operation_count\x18\x05 \x01(\x0b\x32\x1b.google.protobuf.Int64ValueB\xfb\x01\n%com.google.ads.googleads.v1.resourcesB\x0eMutateJobProtoP\x01ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V1.Resources\xca\x02!Google\\Ads\\GoogleAds\\V1\\Resources\xea\x02%Google::Ads::GoogleAds::V1::Resourcesb\x06proto3') - , - dependencies=[google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_mutate__job__status__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - - -_MUTATEJOB_MUTATEJOBMETADATA = _descriptor.Descriptor( - name='MutateJobMetadata', - full_name='google.ads.googleads.v1.resources.MutateJob.MutateJobMetadata', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='creation_date_time', full_name='google.ads.googleads.v1.resources.MutateJob.MutateJobMetadata.creation_date_time', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='completion_date_time', full_name='google.ads.googleads.v1.resources.MutateJob.MutateJobMetadata.completion_date_time', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='estimated_completion_ratio', full_name='google.ads.googleads.v1.resources.MutateJob.MutateJobMetadata.estimated_completion_ratio', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='operation_count', full_name='google.ads.googleads.v1.resources.MutateJob.MutateJobMetadata.operation_count', index=3, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='executed_operation_count', full_name='google.ads.googleads.v1.resources.MutateJob.MutateJobMetadata.executed_operation_count', index=4, - number=5, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=588, - serialized_end=908, -) - -_MUTATEJOB = _descriptor.Descriptor( - name='MutateJob', - full_name='google.ads.googleads.v1.resources.MutateJob', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.resources.MutateJob.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='id', full_name='google.ads.googleads.v1.resources.MutateJob.id', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='next_add_sequence_token', full_name='google.ads.googleads.v1.resources.MutateJob.next_add_sequence_token', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='metadata', full_name='google.ads.googleads.v1.resources.MutateJob.metadata', index=3, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='status', full_name='google.ads.googleads.v1.resources.MutateJob.status', index=4, - number=5, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='long_running_operation', full_name='google.ads.googleads.v1.resources.MutateJob.long_running_operation', index=5, - number=6, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[_MUTATEJOB_MUTATEJOBMETADATA, ], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=219, - serialized_end=908, -) - -_MUTATEJOB_MUTATEJOBMETADATA.fields_by_name['creation_date_time'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_MUTATEJOB_MUTATEJOBMETADATA.fields_by_name['completion_date_time'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_MUTATEJOB_MUTATEJOBMETADATA.fields_by_name['estimated_completion_ratio'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE -_MUTATEJOB_MUTATEJOBMETADATA.fields_by_name['operation_count'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -_MUTATEJOB_MUTATEJOBMETADATA.fields_by_name['executed_operation_count'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -_MUTATEJOB_MUTATEJOBMETADATA.containing_type = _MUTATEJOB -_MUTATEJOB.fields_by_name['id'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -_MUTATEJOB.fields_by_name['next_add_sequence_token'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_MUTATEJOB.fields_by_name['metadata'].message_type = _MUTATEJOB_MUTATEJOBMETADATA -_MUTATEJOB.fields_by_name['status'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_mutate__job__status__pb2._MUTATEJOBSTATUSENUM_MUTATEJOBSTATUS -_MUTATEJOB.fields_by_name['long_running_operation'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -DESCRIPTOR.message_types_by_name['MutateJob'] = _MUTATEJOB -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -MutateJob = _reflection.GeneratedProtocolMessageType('MutateJob', (_message.Message,), dict( - - MutateJobMetadata = _reflection.GeneratedProtocolMessageType('MutateJobMetadata', (_message.Message,), dict( - DESCRIPTOR = _MUTATEJOB_MUTATEJOBMETADATA, - __module__ = 'google.ads.googleads_v1.proto.resources.mutate_job_pb2' - , - __doc__ = """Additional information about the mutate job. This message is also used - as metadata returned in mutate job Long Running Operations. - - - Attributes: - creation_date_time: - The time when this mutate job was created. Formatted as yyyy- - mm-dd hh:mm:ss. Example: "2018-03-05 09:15:00" - completion_date_time: - The time when this mutate job was completed. Formatted as - yyyy-MM-dd HH:mm:ss. Example: "2018-03-05 09:16:00" - estimated_completion_ratio: - The fraction (between 0.0 and 1.0) of mutates that have been - processed. This is empty if the job hasn't started running - yet. - operation_count: - The number of mutate operations in the mutate job. - executed_operation_count: - The number of mutate operations executed by the mutate job. - Present only if the job has started running. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.resources.MutateJob.MutateJobMetadata) - )) - , - DESCRIPTOR = _MUTATEJOB, - __module__ = 'google.ads.googleads_v1.proto.resources.mutate_job_pb2' - , - __doc__ = """A list of mutates being processed asynchronously. The mutates are - uploaded by the user. The mutates themselves aren’t readable and the - results of the job can only be read using - MutateJobService.ListMutateJobResults. - - - Attributes: - resource_name: - The resource name of the mutate job. Mutate job resource names - have the form: - ``customers/{customer_id}/mutateJobs/{mutate_job_id}`` - id: - ID of this mutate job. - next_add_sequence_token: - The next sequence token to use when adding operations. Only - set when the mutate job status is PENDING. - metadata: - Contains additional information about this mutate job. - status: - Status of this mutate job. - long_running_operation: - The resource name of the long-running operation that can be - used to poll for completion. Only set when the mutate job - status is RUNNING or DONE. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.resources.MutateJob) - )) -_sym_db.RegisterMessage(MutateJob) -_sym_db.RegisterMessage(MutateJob.MutateJobMetadata) - - -DESCRIPTOR._options = None -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/resources/operating_system_version_constant_pb2.py b/google/ads/google_ads/v1/proto/resources/operating_system_version_constant_pb2.py deleted file mode 100644 index 9148e6a9c..000000000 --- a/google/ads/google_ads/v1/proto/resources/operating_system_version_constant_pb2.py +++ /dev/null @@ -1,141 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/resources/operating_system_version_constant.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.ads.google_ads.v1.proto.enums import operating_system_version_operator_type_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_operating__system__version__operator__type__pb2 -from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/resources/operating_system_version_constant.proto', - package='google.ads.googleads.v1.resources', - syntax='proto3', - serialized_options=_b('\n%com.google.ads.googleads.v1.resourcesB#OperatingSystemVersionConstantProtoP\001ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources\242\002\003GAA\252\002!Google.Ads.GoogleAds.V1.Resources\312\002!Google\\Ads\\GoogleAds\\V1\\Resources\352\002%Google::Ads::GoogleAds::V1::Resources'), - serialized_pb=_b('\nOgoogle/ads/googleads_v1/proto/resources/operating_system_version_constant.proto\x12!google.ads.googleads.v1.resources\x1aPgoogle/ads/googleads_v1/proto/enums/operating_system_version_operator_type.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1cgoogle/api/annotations.proto\"\xfb\x02\n\x1eOperatingSystemVersionConstant\x12\x15\n\rresource_name\x18\x01 \x01(\t\x12\'\n\x02id\x18\x02 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12*\n\x04name\x18\x03 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x35\n\x10os_major_version\x18\x04 \x01(\x0b\x32\x1b.google.protobuf.Int32Value\x12\x35\n\x10os_minor_version\x18\x05 \x01(\x0b\x32\x1b.google.protobuf.Int32Value\x12\x7f\n\roperator_type\x18\x06 \x01(\x0e\x32h.google.ads.googleads.v1.enums.OperatingSystemVersionOperatorTypeEnum.OperatingSystemVersionOperatorTypeB\x90\x02\n%com.google.ads.googleads.v1.resourcesB#OperatingSystemVersionConstantProtoP\x01ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V1.Resources\xca\x02!Google\\Ads\\GoogleAds\\V1\\Resources\xea\x02%Google::Ads::GoogleAds::V1::Resourcesb\x06proto3') - , - dependencies=[google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_operating__system__version__operator__type__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - - -_OPERATINGSYSTEMVERSIONCONSTANT = _descriptor.Descriptor( - name='OperatingSystemVersionConstant', - full_name='google.ads.googleads.v1.resources.OperatingSystemVersionConstant', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.resources.OperatingSystemVersionConstant.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='id', full_name='google.ads.googleads.v1.resources.OperatingSystemVersionConstant.id', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='name', full_name='google.ads.googleads.v1.resources.OperatingSystemVersionConstant.name', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='os_major_version', full_name='google.ads.googleads.v1.resources.OperatingSystemVersionConstant.os_major_version', index=3, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='os_minor_version', full_name='google.ads.googleads.v1.resources.OperatingSystemVersionConstant.os_minor_version', index=4, - number=5, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='operator_type', full_name='google.ads.googleads.v1.resources.OperatingSystemVersionConstant.operator_type', index=5, - number=6, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=263, - serialized_end=642, -) - -_OPERATINGSYSTEMVERSIONCONSTANT.fields_by_name['id'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -_OPERATINGSYSTEMVERSIONCONSTANT.fields_by_name['name'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_OPERATINGSYSTEMVERSIONCONSTANT.fields_by_name['os_major_version'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT32VALUE -_OPERATINGSYSTEMVERSIONCONSTANT.fields_by_name['os_minor_version'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT32VALUE -_OPERATINGSYSTEMVERSIONCONSTANT.fields_by_name['operator_type'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_operating__system__version__operator__type__pb2._OPERATINGSYSTEMVERSIONOPERATORTYPEENUM_OPERATINGSYSTEMVERSIONOPERATORTYPE -DESCRIPTOR.message_types_by_name['OperatingSystemVersionConstant'] = _OPERATINGSYSTEMVERSIONCONSTANT -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -OperatingSystemVersionConstant = _reflection.GeneratedProtocolMessageType('OperatingSystemVersionConstant', (_message.Message,), dict( - DESCRIPTOR = _OPERATINGSYSTEMVERSIONCONSTANT, - __module__ = 'google.ads.googleads_v1.proto.resources.operating_system_version_constant_pb2' - , - __doc__ = """A mobile operating system version or a range of versions, depending on - 'operator\_type'. The complete list of available mobile platforms is - available google/ads/googleads_v1/proto/resources/payments_account.proto\x12!google.ads.googleads.v1.resources\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1cgoogle/api/annotations.proto\"\xc4\x02\n\x0fPaymentsAccount\x12\x15\n\rresource_name\x18\x01 \x01(\t\x12\x39\n\x13payments_account_id\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12*\n\x04name\x18\x03 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x33\n\rcurrency_code\x18\x04 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x39\n\x13payments_profile_id\x18\x05 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x43\n\x1dsecondary_payments_profile_id\x18\x06 \x01(\x0b\x32\x1c.google.protobuf.StringValueB\x81\x02\n%com.google.ads.googleads.v1.resourcesB\x14PaymentsAccountProtoP\x01ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V1.Resources\xca\x02!Google\\Ads\\GoogleAds\\V1\\Resources\xea\x02%Google::Ads::GoogleAds::V1::Resourcesb\x06proto3') - , - dependencies=[google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - - -_PAYMENTSACCOUNT = _descriptor.Descriptor( - name='PaymentsAccount', - full_name='google.ads.googleads.v1.resources.PaymentsAccount', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.resources.PaymentsAccount.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='payments_account_id', full_name='google.ads.googleads.v1.resources.PaymentsAccount.payments_account_id', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='name', full_name='google.ads.googleads.v1.resources.PaymentsAccount.name', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='currency_code', full_name='google.ads.googleads.v1.resources.PaymentsAccount.currency_code', index=3, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='payments_profile_id', full_name='google.ads.googleads.v1.resources.PaymentsAccount.payments_profile_id', index=4, - number=5, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='secondary_payments_profile_id', full_name='google.ads.googleads.v1.resources.PaymentsAccount.secondary_payments_profile_id', index=5, - number=6, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=164, - serialized_end=488, -) - -_PAYMENTSACCOUNT.fields_by_name['payments_account_id'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_PAYMENTSACCOUNT.fields_by_name['name'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_PAYMENTSACCOUNT.fields_by_name['currency_code'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_PAYMENTSACCOUNT.fields_by_name['payments_profile_id'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_PAYMENTSACCOUNT.fields_by_name['secondary_payments_profile_id'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -DESCRIPTOR.message_types_by_name['PaymentsAccount'] = _PAYMENTSACCOUNT -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -PaymentsAccount = _reflection.GeneratedProtocolMessageType('PaymentsAccount', (_message.Message,), dict( - DESCRIPTOR = _PAYMENTSACCOUNT, - __module__ = 'google.ads.googleads_v1.proto.resources.payments_account_pb2' - , - __doc__ = """A Payments account, which can be used to set up billing for an Ads - customer. - - - Attributes: - resource_name: - The resource name of the Payments account. PaymentsAccount - resource names have the form: ``customers/{customer_id}/payme - ntsAccounts/{payments_account_id}`` - payments_account_id: - A 16 digit ID used to identify a Payments account. - name: - The name of the Payments account. - currency_code: - The currency code of the Payments account. A subset of the - currency codes derived from the ISO 4217 standard is - supported. - payments_profile_id: - A 12 digit ID used to identify the Payments profile associated - with the Payments account. - secondary_payments_profile_id: - A secondary Payments profile ID present in uncommon - situations, e.g. when a sequential liability agreement has - been arranged. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.resources.PaymentsAccount) - )) -_sym_db.RegisterMessage(PaymentsAccount) - - -DESCRIPTOR._options = None -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/resources/product_bidding_category_constant_pb2.py b/google/ads/google_ads/v1/proto/resources/product_bidding_category_constant_pb2.py deleted file mode 100644 index 427064596..000000000 --- a/google/ads/google_ads/v1/proto/resources/product_bidding_category_constant_pb2.py +++ /dev/null @@ -1,160 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/resources/product_bidding_category_constant.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.ads.google_ads.v1.proto.enums import product_bidding_category_level_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_product__bidding__category__level__pb2 -from google.ads.google_ads.v1.proto.enums import product_bidding_category_status_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_product__bidding__category__status__pb2 -from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/resources/product_bidding_category_constant.proto', - package='google.ads.googleads.v1.resources', - syntax='proto3', - serialized_options=_b('\n%com.google.ads.googleads.v1.resourcesB#ProductBiddingCategoryConstantProtoP\001ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources\242\002\003GAA\252\002!Google.Ads.GoogleAds.V1.Resources\312\002!Google\\Ads\\GoogleAds\\V1\\Resources\352\002%Google::Ads::GoogleAds::V1::Resources'), - serialized_pb=_b('\nOgoogle/ads/googleads_v1/proto/resources/product_bidding_category_constant.proto\x12!google.ads.googleads.v1.resources\x1aHgoogle/ads/googleads_v1/proto/enums/product_bidding_category_level.proto\x1aIgoogle/ads/googleads_v1/proto/enums/product_bidding_category_status.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1cgoogle/api/annotations.proto\"\xa8\x04\n\x1eProductBiddingCategoryConstant\x12\x15\n\rresource_name\x18\x01 \x01(\t\x12\'\n\x02id\x18\x02 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x32\n\x0c\x63ountry_code\x18\x03 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12N\n(product_bidding_category_constant_parent\x18\x04 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12i\n\x05level\x18\x05 \x01(\x0e\x32Z.google.ads.googleads.v1.enums.ProductBiddingCategoryLevelEnum.ProductBiddingCategoryLevel\x12l\n\x06status\x18\x06 \x01(\x0e\x32\\.google.ads.googleads.v1.enums.ProductBiddingCategoryStatusEnum.ProductBiddingCategoryStatus\x12\x33\n\rlanguage_code\x18\x07 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x34\n\x0elocalized_name\x18\x08 \x01(\x0b\x32\x1c.google.protobuf.StringValueB\x90\x02\n%com.google.ads.googleads.v1.resourcesB#ProductBiddingCategoryConstantProtoP\x01ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V1.Resources\xca\x02!Google\\Ads\\GoogleAds\\V1\\Resources\xea\x02%Google::Ads::GoogleAds::V1::Resourcesb\x06proto3') - , - dependencies=[google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_product__bidding__category__level__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_product__bidding__category__status__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - - -_PRODUCTBIDDINGCATEGORYCONSTANT = _descriptor.Descriptor( - name='ProductBiddingCategoryConstant', - full_name='google.ads.googleads.v1.resources.ProductBiddingCategoryConstant', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.resources.ProductBiddingCategoryConstant.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='id', full_name='google.ads.googleads.v1.resources.ProductBiddingCategoryConstant.id', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='country_code', full_name='google.ads.googleads.v1.resources.ProductBiddingCategoryConstant.country_code', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='product_bidding_category_constant_parent', full_name='google.ads.googleads.v1.resources.ProductBiddingCategoryConstant.product_bidding_category_constant_parent', index=3, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='level', full_name='google.ads.googleads.v1.resources.ProductBiddingCategoryConstant.level', index=4, - number=5, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='status', full_name='google.ads.googleads.v1.resources.ProductBiddingCategoryConstant.status', index=5, - number=6, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='language_code', full_name='google.ads.googleads.v1.resources.ProductBiddingCategoryConstant.language_code', index=6, - number=7, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='localized_name', full_name='google.ads.googleads.v1.resources.ProductBiddingCategoryConstant.localized_name', index=7, - number=8, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=330, - serialized_end=882, -) - -_PRODUCTBIDDINGCATEGORYCONSTANT.fields_by_name['id'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -_PRODUCTBIDDINGCATEGORYCONSTANT.fields_by_name['country_code'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_PRODUCTBIDDINGCATEGORYCONSTANT.fields_by_name['product_bidding_category_constant_parent'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_PRODUCTBIDDINGCATEGORYCONSTANT.fields_by_name['level'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_product__bidding__category__level__pb2._PRODUCTBIDDINGCATEGORYLEVELENUM_PRODUCTBIDDINGCATEGORYLEVEL -_PRODUCTBIDDINGCATEGORYCONSTANT.fields_by_name['status'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_product__bidding__category__status__pb2._PRODUCTBIDDINGCATEGORYSTATUSENUM_PRODUCTBIDDINGCATEGORYSTATUS -_PRODUCTBIDDINGCATEGORYCONSTANT.fields_by_name['language_code'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_PRODUCTBIDDINGCATEGORYCONSTANT.fields_by_name['localized_name'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -DESCRIPTOR.message_types_by_name['ProductBiddingCategoryConstant'] = _PRODUCTBIDDINGCATEGORYCONSTANT -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -ProductBiddingCategoryConstant = _reflection.GeneratedProtocolMessageType('ProductBiddingCategoryConstant', (_message.Message,), dict( - DESCRIPTOR = _PRODUCTBIDDINGCATEGORYCONSTANT, - __module__ = 'google.ads.googleads_v1.proto.resources.product_bidding_category_constant_pb2' - , - __doc__ = """A Product Bidding Category. - - - Attributes: - resource_name: - The resource name of the product bidding category. Product - bidding category resource names have the form: ``productBiddi - ngCategoryConstants/{country_code}~{level}~{id}`` - id: - ID of the product bidding category. This ID is equivalent to - the google\_product\_category ID as described in this article: - https://support.google.com/merchants/answer/6324436. - country_code: - Two-letter upper-case country code of the product bidding - category. - product_bidding_category_constant_parent: - Resource name of the parent product bidding category. - level: - Level of the product bidding category. - status: - Status of the product bidding category. - language_code: - Language code of the product bidding category. - localized_name: - Display value of the product bidding category localized - according to language\_code. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.resources.ProductBiddingCategoryConstant) - )) -_sym_db.RegisterMessage(ProductBiddingCategoryConstant) - - -DESCRIPTOR._options = None -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/resources/product_group_view_pb2.py b/google/ads/google_ads/v1/proto/resources/product_group_view_pb2.py deleted file mode 100644 index 9110bc3cf..000000000 --- a/google/ads/google_ads/v1/proto/resources/product_group_view_pb2.py +++ /dev/null @@ -1,83 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/resources/product_group_view.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/resources/product_group_view.proto', - package='google.ads.googleads.v1.resources', - syntax='proto3', - serialized_options=_b('\n%com.google.ads.googleads.v1.resourcesB\025ProductGroupViewProtoP\001ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources\242\002\003GAA\252\002!Google.Ads.GoogleAds.V1.Resources\312\002!Google\\Ads\\GoogleAds\\V1\\Resources\352\002%Google::Ads::GoogleAds::V1::Resources'), - serialized_pb=_b('\n@google/ads/googleads_v1/proto/resources/product_group_view.proto\x12!google.ads.googleads.v1.resources\x1a\x1cgoogle/api/annotations.proto\")\n\x10ProductGroupView\x12\x15\n\rresource_name\x18\x01 \x01(\tB\x82\x02\n%com.google.ads.googleads.v1.resourcesB\x15ProductGroupViewProtoP\x01ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V1.Resources\xca\x02!Google\\Ads\\GoogleAds\\V1\\Resources\xea\x02%Google::Ads::GoogleAds::V1::Resourcesb\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - - -_PRODUCTGROUPVIEW = _descriptor.Descriptor( - name='ProductGroupView', - full_name='google.ads.googleads.v1.resources.ProductGroupView', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.resources.ProductGroupView.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=133, - serialized_end=174, -) - -DESCRIPTOR.message_types_by_name['ProductGroupView'] = _PRODUCTGROUPVIEW -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -ProductGroupView = _reflection.GeneratedProtocolMessageType('ProductGroupView', (_message.Message,), dict( - DESCRIPTOR = _PRODUCTGROUPVIEW, - __module__ = 'google.ads.googleads_v1.proto.resources.product_group_view_pb2' - , - __doc__ = """A product group view. - - - Attributes: - resource_name: - The resource name of the product group view. Product group - view resource names have the form: ``customers/{customer_id}/ - productGroupViews/{ad_group_id}~{criterion_id}`` - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.resources.ProductGroupView) - )) -_sym_db.RegisterMessage(ProductGroupView) - - -DESCRIPTOR._options = None -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/resources/recommendation_pb2.py b/google/ads/google_ads/v1/proto/resources/recommendation_pb2.py deleted file mode 100644 index d3b667805..000000000 --- a/google/ads/google_ads/v1/proto/resources/recommendation_pb2.py +++ /dev/null @@ -1,1357 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/resources/recommendation.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.ads.google_ads.v1.proto.common import criteria_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_criteria__pb2 -from google.ads.google_ads.v1.proto.common import extensions_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_extensions__pb2 -from google.ads.google_ads.v1.proto.enums import keyword_match_type_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_keyword__match__type__pb2 -from google.ads.google_ads.v1.proto.enums import recommendation_type_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_recommendation__type__pb2 -from google.ads.google_ads.v1.proto.enums import target_cpa_opt_in_recommendation_goal_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_target__cpa__opt__in__recommendation__goal__pb2 -from google.ads.google_ads.v1.proto.resources import ad_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_ad__pb2 -from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/resources/recommendation.proto', - package='google.ads.googleads.v1.resources', - syntax='proto3', - serialized_options=_b('\n%com.google.ads.googleads.v1.resourcesB\023RecommendationProtoP\001ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources\242\002\003GAA\252\002!Google.Ads.GoogleAds.V1.Resources\312\002!Google\\Ads\\GoogleAds\\V1\\Resources\352\002%Google::Ads::GoogleAds::V1::Resources'), - serialized_pb=_b('\ngoogle/ads/googleads_v1/proto/resources/search_term_view.proto\x12!google.ads.googleads.v1.resources\x1a\x46google/ads/googleads_v1/proto/enums/search_term_targeting_status.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1cgoogle/api/annotations.proto\"\xf2\x01\n\x0eSearchTermView\x12\x15\n\rresource_name\x18\x01 \x01(\t\x12\x31\n\x0bsearch_term\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12.\n\x08\x61\x64_group\x18\x03 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x66\n\x06status\x18\x04 \x01(\x0e\x32V.google.ads.googleads.v1.enums.SearchTermTargetingStatusEnum.SearchTermTargetingStatusB\x80\x02\n%com.google.ads.googleads.v1.resourcesB\x13SearchTermViewProtoP\x01ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V1.Resources\xca\x02!Google\\Ads\\GoogleAds\\V1\\Resources\xea\x02%Google::Ads::GoogleAds::V1::Resourcesb\x06proto3') - , - dependencies=[google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_search__term__targeting__status__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - - -_SEARCHTERMVIEW = _descriptor.Descriptor( - name='SearchTermView', - full_name='google.ads.googleads.v1.resources.SearchTermView', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.resources.SearchTermView.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='search_term', full_name='google.ads.googleads.v1.resources.SearchTermView.search_term', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='ad_group', full_name='google.ads.googleads.v1.resources.SearchTermView.ad_group', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='status', full_name='google.ads.googleads.v1.resources.SearchTermView.status', index=3, - number=4, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=236, - serialized_end=478, -) - -_SEARCHTERMVIEW.fields_by_name['search_term'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_SEARCHTERMVIEW.fields_by_name['ad_group'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_SEARCHTERMVIEW.fields_by_name['status'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_search__term__targeting__status__pb2._SEARCHTERMTARGETINGSTATUSENUM_SEARCHTERMTARGETINGSTATUS -DESCRIPTOR.message_types_by_name['SearchTermView'] = _SEARCHTERMVIEW -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -SearchTermView = _reflection.GeneratedProtocolMessageType('SearchTermView', (_message.Message,), dict( - DESCRIPTOR = _SEARCHTERMVIEW, - __module__ = 'google.ads.googleads_v1.proto.resources.search_term_view_pb2' - , - __doc__ = """A search term view with metrics aggregated by search term at the ad - group level. - - - Attributes: - resource_name: - The resource name of the search term view. Search term view - resource names have the form: ``customers/{customer_id}/searc - hTermViews/{campaign_id}~{ad_group_id}~ {URL-base64 search - term}`` - search_term: - The search term. - ad_group: - The ad group the search term served in. - status: - Indicates whether the search term is currently one of your - targeted or excluded keywords. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.resources.SearchTermView) - )) -_sym_db.RegisterMessage(SearchTermView) - - -DESCRIPTOR._options = None -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/resources/shared_criterion_pb2.py b/google/ads/google_ads/v1/proto/resources/shared_criterion_pb2.py deleted file mode 100644 index 74b847804..000000000 --- a/google/ads/google_ads/v1/proto/resources/shared_criterion_pb2.py +++ /dev/null @@ -1,199 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/resources/shared_criterion.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.ads.google_ads.v1.proto.common import criteria_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_criteria__pb2 -from google.ads.google_ads.v1.proto.enums import criterion_type_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_criterion__type__pb2 -from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/resources/shared_criterion.proto', - package='google.ads.googleads.v1.resources', - syntax='proto3', - serialized_options=_b('\n%com.google.ads.googleads.v1.resourcesB\024SharedCriterionProtoP\001ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources\242\002\003GAA\252\002!Google.Ads.GoogleAds.V1.Resources\312\002!Google\\Ads\\GoogleAds\\V1\\Resources\352\002%Google::Ads::GoogleAds::V1::Resources'), - serialized_pb=_b('\n>google/ads/googleads_v1/proto/resources/shared_criterion.proto\x12!google.ads.googleads.v1.resources\x1a\x33google/ads/googleads_v1/proto/common/criteria.proto\x1a\x38google/ads/googleads_v1/proto/enums/criterion_type.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1cgoogle/api/annotations.proto\"\xb1\x05\n\x0fSharedCriterion\x12\x15\n\rresource_name\x18\x01 \x01(\t\x12\x30\n\nshared_set\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x31\n\x0c\x63riterion_id\x18\x1a \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12L\n\x04type\x18\x04 \x01(\x0e\x32>.google.ads.googleads.v1.enums.CriterionTypeEnum.CriterionType\x12>\n\x07keyword\x18\x03 \x01(\x0b\x32+.google.ads.googleads.v1.common.KeywordInfoH\x00\x12I\n\ryoutube_video\x18\x05 \x01(\x0b\x32\x30.google.ads.googleads.v1.common.YouTubeVideoInfoH\x00\x12M\n\x0fyoutube_channel\x18\x06 \x01(\x0b\x32\x32.google.ads.googleads.v1.common.YouTubeChannelInfoH\x00\x12\x42\n\tplacement\x18\x07 \x01(\x0b\x32-.google.ads.googleads.v1.common.PlacementInfoH\x00\x12T\n\x13mobile_app_category\x18\x08 \x01(\x0b\x32\x35.google.ads.googleads.v1.common.MobileAppCategoryInfoH\x00\x12S\n\x12mobile_application\x18\t \x01(\x0b\x32\x35.google.ads.googleads.v1.common.MobileApplicationInfoH\x00\x42\x0b\n\tcriterionB\x81\x02\n%com.google.ads.googleads.v1.resourcesB\x14SharedCriterionProtoP\x01ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V1.Resources\xca\x02!Google\\Ads\\GoogleAds\\V1\\Resources\xea\x02%Google::Ads::GoogleAds::V1::Resourcesb\x06proto3') - , - dependencies=[google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_criteria__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_criterion__type__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - - -_SHAREDCRITERION = _descriptor.Descriptor( - name='SharedCriterion', - full_name='google.ads.googleads.v1.resources.SharedCriterion', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.resources.SharedCriterion.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='shared_set', full_name='google.ads.googleads.v1.resources.SharedCriterion.shared_set', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='criterion_id', full_name='google.ads.googleads.v1.resources.SharedCriterion.criterion_id', index=2, - number=26, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='type', full_name='google.ads.googleads.v1.resources.SharedCriterion.type', index=3, - number=4, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='keyword', full_name='google.ads.googleads.v1.resources.SharedCriterion.keyword', index=4, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='youtube_video', full_name='google.ads.googleads.v1.resources.SharedCriterion.youtube_video', index=5, - number=5, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='youtube_channel', full_name='google.ads.googleads.v1.resources.SharedCriterion.youtube_channel', index=6, - number=6, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='placement', full_name='google.ads.googleads.v1.resources.SharedCriterion.placement', index=7, - number=7, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='mobile_app_category', full_name='google.ads.googleads.v1.resources.SharedCriterion.mobile_app_category', index=8, - number=8, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='mobile_application', full_name='google.ads.googleads.v1.resources.SharedCriterion.mobile_application', index=9, - number=9, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='criterion', full_name='google.ads.googleads.v1.resources.SharedCriterion.criterion', - index=0, containing_type=None, fields=[]), - ], - serialized_start=275, - serialized_end=964, -) - -_SHAREDCRITERION.fields_by_name['shared_set'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_SHAREDCRITERION.fields_by_name['criterion_id'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -_SHAREDCRITERION.fields_by_name['type'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_criterion__type__pb2._CRITERIONTYPEENUM_CRITERIONTYPE -_SHAREDCRITERION.fields_by_name['keyword'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_criteria__pb2._KEYWORDINFO -_SHAREDCRITERION.fields_by_name['youtube_video'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_criteria__pb2._YOUTUBEVIDEOINFO -_SHAREDCRITERION.fields_by_name['youtube_channel'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_criteria__pb2._YOUTUBECHANNELINFO -_SHAREDCRITERION.fields_by_name['placement'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_criteria__pb2._PLACEMENTINFO -_SHAREDCRITERION.fields_by_name['mobile_app_category'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_criteria__pb2._MOBILEAPPCATEGORYINFO -_SHAREDCRITERION.fields_by_name['mobile_application'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_criteria__pb2._MOBILEAPPLICATIONINFO -_SHAREDCRITERION.oneofs_by_name['criterion'].fields.append( - _SHAREDCRITERION.fields_by_name['keyword']) -_SHAREDCRITERION.fields_by_name['keyword'].containing_oneof = _SHAREDCRITERION.oneofs_by_name['criterion'] -_SHAREDCRITERION.oneofs_by_name['criterion'].fields.append( - _SHAREDCRITERION.fields_by_name['youtube_video']) -_SHAREDCRITERION.fields_by_name['youtube_video'].containing_oneof = _SHAREDCRITERION.oneofs_by_name['criterion'] -_SHAREDCRITERION.oneofs_by_name['criterion'].fields.append( - _SHAREDCRITERION.fields_by_name['youtube_channel']) -_SHAREDCRITERION.fields_by_name['youtube_channel'].containing_oneof = _SHAREDCRITERION.oneofs_by_name['criterion'] -_SHAREDCRITERION.oneofs_by_name['criterion'].fields.append( - _SHAREDCRITERION.fields_by_name['placement']) -_SHAREDCRITERION.fields_by_name['placement'].containing_oneof = _SHAREDCRITERION.oneofs_by_name['criterion'] -_SHAREDCRITERION.oneofs_by_name['criterion'].fields.append( - _SHAREDCRITERION.fields_by_name['mobile_app_category']) -_SHAREDCRITERION.fields_by_name['mobile_app_category'].containing_oneof = _SHAREDCRITERION.oneofs_by_name['criterion'] -_SHAREDCRITERION.oneofs_by_name['criterion'].fields.append( - _SHAREDCRITERION.fields_by_name['mobile_application']) -_SHAREDCRITERION.fields_by_name['mobile_application'].containing_oneof = _SHAREDCRITERION.oneofs_by_name['criterion'] -DESCRIPTOR.message_types_by_name['SharedCriterion'] = _SHAREDCRITERION -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -SharedCriterion = _reflection.GeneratedProtocolMessageType('SharedCriterion', (_message.Message,), dict( - DESCRIPTOR = _SHAREDCRITERION, - __module__ = 'google.ads.googleads_v1.proto.resources.shared_criterion_pb2' - , - __doc__ = """A criterion belonging to a shared set. - - - Attributes: - resource_name: - The resource name of the shared criterion. Shared set resource - names have the form: ``customers/{customer_id}/sharedCriteria - /{shared_set_id}~{criterion_id}`` - shared_set: - The shared set to which the shared criterion belongs. - criterion_id: - The ID of the criterion. This field is ignored for mutates. - type: - The type of the criterion. - criterion: - The criterion. Exactly one must be set. - keyword: - Keyword. - youtube_video: - YouTube Video. - youtube_channel: - YouTube Channel. - placement: - Placement. - mobile_app_category: - Mobile App Category. - mobile_application: - Mobile application. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.resources.SharedCriterion) - )) -_sym_db.RegisterMessage(SharedCriterion) - - -DESCRIPTOR._options = None -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/resources/shared_set_pb2.py b/google/ads/google_ads/v1/proto/resources/shared_set_pb2.py deleted file mode 100644 index f9b816483..000000000 --- a/google/ads/google_ads/v1/proto/resources/shared_set_pb2.py +++ /dev/null @@ -1,153 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/resources/shared_set.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.ads.google_ads.v1.proto.enums import shared_set_status_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_shared__set__status__pb2 -from google.ads.google_ads.v1.proto.enums import shared_set_type_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_shared__set__type__pb2 -from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/resources/shared_set.proto', - package='google.ads.googleads.v1.resources', - syntax='proto3', - serialized_options=_b('\n%com.google.ads.googleads.v1.resourcesB\016SharedSetProtoP\001ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources\242\002\003GAA\252\002!Google.Ads.GoogleAds.V1.Resources\312\002!Google\\Ads\\GoogleAds\\V1\\Resources\352\002%Google::Ads::GoogleAds::V1::Resources'), - serialized_pb=_b('\n8google/ads/googleads_v1/proto/resources/shared_set.proto\x12!google.ads.googleads.v1.resources\x1a;google/ads/googleads_v1/proto/enums/shared_set_status.proto\x1a\x39google/ads/googleads_v1/proto/enums/shared_set_type.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1cgoogle/api/annotations.proto\"\x82\x03\n\tSharedSet\x12\x15\n\rresource_name\x18\x01 \x01(\t\x12\'\n\x02id\x18\x02 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12L\n\x04type\x18\x03 \x01(\x0e\x32>.google.ads.googleads.v1.enums.SharedSetTypeEnum.SharedSetType\x12*\n\x04name\x18\x04 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12R\n\x06status\x18\x05 \x01(\x0e\x32\x42.google.ads.googleads.v1.enums.SharedSetStatusEnum.SharedSetStatus\x12\x31\n\x0cmember_count\x18\x06 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x34\n\x0freference_count\x18\x07 \x01(\x0b\x32\x1b.google.protobuf.Int64ValueB\xfb\x01\n%com.google.ads.googleads.v1.resourcesB\x0eSharedSetProtoP\x01ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V1.Resources\xca\x02!Google\\Ads\\GoogleAds\\V1\\Resources\xea\x02%Google::Ads::GoogleAds::V1::Resourcesb\x06proto3') - , - dependencies=[google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_shared__set__status__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_shared__set__type__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - - -_SHAREDSET = _descriptor.Descriptor( - name='SharedSet', - full_name='google.ads.googleads.v1.resources.SharedSet', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.resources.SharedSet.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='id', full_name='google.ads.googleads.v1.resources.SharedSet.id', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='type', full_name='google.ads.googleads.v1.resources.SharedSet.type', index=2, - number=3, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='name', full_name='google.ads.googleads.v1.resources.SharedSet.name', index=3, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='status', full_name='google.ads.googleads.v1.resources.SharedSet.status', index=4, - number=5, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='member_count', full_name='google.ads.googleads.v1.resources.SharedSet.member_count', index=5, - number=6, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='reference_count', full_name='google.ads.googleads.v1.resources.SharedSet.reference_count', index=6, - number=7, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=278, - serialized_end=664, -) - -_SHAREDSET.fields_by_name['id'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -_SHAREDSET.fields_by_name['type'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_shared__set__type__pb2._SHAREDSETTYPEENUM_SHAREDSETTYPE -_SHAREDSET.fields_by_name['name'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_SHAREDSET.fields_by_name['status'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_shared__set__status__pb2._SHAREDSETSTATUSENUM_SHAREDSETSTATUS -_SHAREDSET.fields_by_name['member_count'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -_SHAREDSET.fields_by_name['reference_count'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -DESCRIPTOR.message_types_by_name['SharedSet'] = _SHAREDSET -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -SharedSet = _reflection.GeneratedProtocolMessageType('SharedSet', (_message.Message,), dict( - DESCRIPTOR = _SHAREDSET, - __module__ = 'google.ads.googleads_v1.proto.resources.shared_set_pb2' - , - __doc__ = """SharedSets are used for sharing criterion exclusions across multiple - campaigns. - - - Attributes: - resource_name: - The resource name of the shared set. Shared set resource names - have the form: - ``customers/{customer_id}/sharedSets/{shared_set_id}`` - id: - The ID of this shared set. Read only. - type: - The type of this shared set: each shared set holds only a - single kind of resource. Required. Immutable. - name: - The name of this shared set. Required. Shared Sets must have - names that are unique among active shared sets of the same - type. The length of this string should be between 1 and 255 - UTF-8 bytes, inclusive. - status: - The status of this shared set. Read only. - member_count: - The number of shared criteria within this shared set. Read - only. - reference_count: - The number of campaigns associated with this shared set. Read - only. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.resources.SharedSet) - )) -_sym_db.RegisterMessage(SharedSet) - - -DESCRIPTOR._options = None -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/resources/shopping_performance_view_pb2.py b/google/ads/google_ads/v1/proto/resources/shopping_performance_view_pb2.py deleted file mode 100644 index 7f937e279..000000000 --- a/google/ads/google_ads/v1/proto/resources/shopping_performance_view_pb2.py +++ /dev/null @@ -1,87 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/resources/shopping_performance_view.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/resources/shopping_performance_view.proto', - package='google.ads.googleads.v1.resources', - syntax='proto3', - serialized_options=_b('\n%com.google.ads.googleads.v1.resourcesB\034ShoppingPerformanceViewProtoP\001ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources\242\002\003GAA\252\002!Google.Ads.GoogleAds.V1.Resources\312\002!Google\\Ads\\GoogleAds\\V1\\Resources\352\002%Google::Ads::GoogleAds::V1::Resources'), - serialized_pb=_b('\nGgoogle/ads/googleads_v1/proto/resources/shopping_performance_view.proto\x12!google.ads.googleads.v1.resources\x1a\x1cgoogle/api/annotations.proto\"0\n\x17ShoppingPerformanceView\x12\x15\n\rresource_name\x18\x01 \x01(\tB\x89\x02\n%com.google.ads.googleads.v1.resourcesB\x1cShoppingPerformanceViewProtoP\x01ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V1.Resources\xca\x02!Google\\Ads\\GoogleAds\\V1\\Resources\xea\x02%Google::Ads::GoogleAds::V1::Resourcesb\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - - -_SHOPPINGPERFORMANCEVIEW = _descriptor.Descriptor( - name='ShoppingPerformanceView', - full_name='google.ads.googleads.v1.resources.ShoppingPerformanceView', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.resources.ShoppingPerformanceView.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=140, - serialized_end=188, -) - -DESCRIPTOR.message_types_by_name['ShoppingPerformanceView'] = _SHOPPINGPERFORMANCEVIEW -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -ShoppingPerformanceView = _reflection.GeneratedProtocolMessageType('ShoppingPerformanceView', (_message.Message,), dict( - DESCRIPTOR = _SHOPPINGPERFORMANCEVIEW, - __module__ = 'google.ads.googleads_v1.proto.resources.shopping_performance_view_pb2' - , - __doc__ = """Shopping performance view. Provides Shopping campaign statistics - aggregated at several product dimension levels. Product dimension values - from Merchant Center such as brand, category, custom attributes, product - condition and product type will reflect the state of each dimension as - of the date and time when the corresponding event was recorded. - - - Attributes: - resource_name: - The resource name of the Shopping performance view. Shopping - performance view resource names have the form: - ``customers/{customer_id}/shoppingPerformanceView`` - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.resources.ShoppingPerformanceView) - )) -_sym_db.RegisterMessage(ShoppingPerformanceView) - - -DESCRIPTOR._options = None -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/resources/topic_constant_pb2.py b/google/ads/google_ads/v1/proto/resources/topic_constant_pb2.py deleted file mode 100644 index b2676638d..000000000 --- a/google/ads/google_ads/v1/proto/resources/topic_constant_pb2.py +++ /dev/null @@ -1,119 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/resources/topic_constant.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/resources/topic_constant.proto', - package='google.ads.googleads.v1.resources', - syntax='proto3', - serialized_options=_b('\n%com.google.ads.googleads.v1.resourcesB\022TopicConstantProtoP\001ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources\242\002\003GAA\252\002!Google.Ads.GoogleAds.V1.Resources\312\002!Google\\Ads\\GoogleAds\\V1\\Resources\352\002%Google::Ads::GoogleAds::V1::Resources'), - serialized_pb=_b('\ngoogle/ads/googleads_v1/proto/enums/user_list_size_range.proto\x1a\x38google/ads/googleads_v1/proto/enums/user_list_type.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1cgoogle/api/annotations.proto\"\x8f\r\n\x08UserList\x12\x15\n\rresource_name\x18\x01 \x01(\t\x12\'\n\x02id\x18\x02 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12-\n\tread_only\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.BoolValue\x12*\n\x04name\x18\x04 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x31\n\x0b\x64\x65scription\x18\x05 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12o\n\x11membership_status\x18\x06 \x01(\x0e\x32T.google.ads.googleads.v1.enums.UserListMembershipStatusEnum.UserListMembershipStatus\x12\x36\n\x10integration_code\x18\x07 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x39\n\x14membership_life_span\x18\x08 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x35\n\x10size_for_display\x18\t \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x66\n\x16size_range_for_display\x18\n \x01(\x0e\x32\x46.google.ads.googleads.v1.enums.UserListSizeRangeEnum.UserListSizeRange\x12\x34\n\x0fsize_for_search\x18\x0b \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x65\n\x15size_range_for_search\x18\x0c \x01(\x0e\x32\x46.google.ads.googleads.v1.enums.UserListSizeRangeEnum.UserListSizeRange\x12J\n\x04type\x18\r \x01(\x0e\x32<.google.ads.googleads.v1.enums.UserListTypeEnum.UserListType\x12\x66\n\x0e\x63losing_reason\x18\x0e \x01(\x0e\x32N.google.ads.googleads.v1.enums.UserListClosingReasonEnum.UserListClosingReason\x12S\n\raccess_reason\x18\x0f \x01(\x0e\x32<.google.ads.googleads.v1.enums.AccessReasonEnum.AccessReason\x12n\n\x18\x61\x63\x63ount_user_list_status\x18\x10 \x01(\x0e\x32L.google.ads.googleads.v1.enums.UserListAccessStatusEnum.UserListAccessStatus\x12\x37\n\x13\x65ligible_for_search\x18\x11 \x01(\x0b\x32\x1a.google.protobuf.BoolValue\x12\x38\n\x14\x65ligible_for_display\x18\x12 \x01(\x0b\x32\x1a.google.protobuf.BoolValue\x12S\n\x13\x63rm_based_user_list\x18\x13 \x01(\x0b\x32\x34.google.ads.googleads.v1.common.CrmBasedUserListInfoH\x00\x12P\n\x11similar_user_list\x18\x14 \x01(\x0b\x32\x33.google.ads.googleads.v1.common.SimilarUserListInfoH\x00\x12U\n\x14rule_based_user_list\x18\x15 \x01(\x0b\x32\x35.google.ads.googleads.v1.common.RuleBasedUserListInfoH\x00\x12P\n\x11logical_user_list\x18\x16 \x01(\x0b\x32\x33.google.ads.googleads.v1.common.LogicalUserListInfoH\x00\x12L\n\x0f\x62\x61sic_user_list\x18\x17 \x01(\x0b\x32\x31.google.ads.googleads.v1.common.BasicUserListInfoH\x00\x42\x0b\n\tuser_listB\xfa\x01\n%com.google.ads.googleads.v1.resourcesB\rUserListProtoP\x01ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V1.Resources\xca\x02!Google\\Ads\\GoogleAds\\V1\\Resources\xea\x02%Google::Ads::GoogleAds::V1::Resourcesb\x06proto3') - , - dependencies=[google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_user__lists__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_access__reason__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_user__list__access__status__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_user__list__closing__reason__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_user__list__membership__status__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_user__list__size__range__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_user__list__type__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - - -_USERLIST = _descriptor.Descriptor( - name='UserList', - full_name='google.ads.googleads.v1.resources.UserList', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.resources.UserList.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='id', full_name='google.ads.googleads.v1.resources.UserList.id', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='read_only', full_name='google.ads.googleads.v1.resources.UserList.read_only', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='name', full_name='google.ads.googleads.v1.resources.UserList.name', index=3, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='description', full_name='google.ads.googleads.v1.resources.UserList.description', index=4, - number=5, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='membership_status', full_name='google.ads.googleads.v1.resources.UserList.membership_status', index=5, - number=6, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='integration_code', full_name='google.ads.googleads.v1.resources.UserList.integration_code', index=6, - number=7, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='membership_life_span', full_name='google.ads.googleads.v1.resources.UserList.membership_life_span', index=7, - number=8, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='size_for_display', full_name='google.ads.googleads.v1.resources.UserList.size_for_display', index=8, - number=9, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='size_range_for_display', full_name='google.ads.googleads.v1.resources.UserList.size_range_for_display', index=9, - number=10, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='size_for_search', full_name='google.ads.googleads.v1.resources.UserList.size_for_search', index=10, - number=11, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='size_range_for_search', full_name='google.ads.googleads.v1.resources.UserList.size_range_for_search', index=11, - number=12, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='type', full_name='google.ads.googleads.v1.resources.UserList.type', index=12, - number=13, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='closing_reason', full_name='google.ads.googleads.v1.resources.UserList.closing_reason', index=13, - number=14, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='access_reason', full_name='google.ads.googleads.v1.resources.UserList.access_reason', index=14, - number=15, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='account_user_list_status', full_name='google.ads.googleads.v1.resources.UserList.account_user_list_status', index=15, - number=16, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='eligible_for_search', full_name='google.ads.googleads.v1.resources.UserList.eligible_for_search', index=16, - number=17, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='eligible_for_display', full_name='google.ads.googleads.v1.resources.UserList.eligible_for_display', index=17, - number=18, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='crm_based_user_list', full_name='google.ads.googleads.v1.resources.UserList.crm_based_user_list', index=18, - number=19, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='similar_user_list', full_name='google.ads.googleads.v1.resources.UserList.similar_user_list', index=19, - number=20, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='rule_based_user_list', full_name='google.ads.googleads.v1.resources.UserList.rule_based_user_list', index=20, - number=21, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='logical_user_list', full_name='google.ads.googleads.v1.resources.UserList.logical_user_list', index=21, - number=22, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='basic_user_list', full_name='google.ads.googleads.v1.resources.UserList.basic_user_list', index=22, - number=23, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='user_list', full_name='google.ads.googleads.v1.resources.UserList.user_list', - index=0, containing_type=None, fields=[]), - ], - serialized_start=597, - serialized_end=2276, -) - -_USERLIST.fields_by_name['id'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -_USERLIST.fields_by_name['read_only'].message_type = google_dot_protobuf_dot_wrappers__pb2._BOOLVALUE -_USERLIST.fields_by_name['name'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_USERLIST.fields_by_name['description'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_USERLIST.fields_by_name['membership_status'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_user__list__membership__status__pb2._USERLISTMEMBERSHIPSTATUSENUM_USERLISTMEMBERSHIPSTATUS -_USERLIST.fields_by_name['integration_code'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_USERLIST.fields_by_name['membership_life_span'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -_USERLIST.fields_by_name['size_for_display'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -_USERLIST.fields_by_name['size_range_for_display'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_user__list__size__range__pb2._USERLISTSIZERANGEENUM_USERLISTSIZERANGE -_USERLIST.fields_by_name['size_for_search'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -_USERLIST.fields_by_name['size_range_for_search'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_user__list__size__range__pb2._USERLISTSIZERANGEENUM_USERLISTSIZERANGE -_USERLIST.fields_by_name['type'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_user__list__type__pb2._USERLISTTYPEENUM_USERLISTTYPE -_USERLIST.fields_by_name['closing_reason'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_user__list__closing__reason__pb2._USERLISTCLOSINGREASONENUM_USERLISTCLOSINGREASON -_USERLIST.fields_by_name['access_reason'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_access__reason__pb2._ACCESSREASONENUM_ACCESSREASON -_USERLIST.fields_by_name['account_user_list_status'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_user__list__access__status__pb2._USERLISTACCESSSTATUSENUM_USERLISTACCESSSTATUS -_USERLIST.fields_by_name['eligible_for_search'].message_type = google_dot_protobuf_dot_wrappers__pb2._BOOLVALUE -_USERLIST.fields_by_name['eligible_for_display'].message_type = google_dot_protobuf_dot_wrappers__pb2._BOOLVALUE -_USERLIST.fields_by_name['crm_based_user_list'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_user__lists__pb2._CRMBASEDUSERLISTINFO -_USERLIST.fields_by_name['similar_user_list'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_user__lists__pb2._SIMILARUSERLISTINFO -_USERLIST.fields_by_name['rule_based_user_list'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_user__lists__pb2._RULEBASEDUSERLISTINFO -_USERLIST.fields_by_name['logical_user_list'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_user__lists__pb2._LOGICALUSERLISTINFO -_USERLIST.fields_by_name['basic_user_list'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_user__lists__pb2._BASICUSERLISTINFO -_USERLIST.oneofs_by_name['user_list'].fields.append( - _USERLIST.fields_by_name['crm_based_user_list']) -_USERLIST.fields_by_name['crm_based_user_list'].containing_oneof = _USERLIST.oneofs_by_name['user_list'] -_USERLIST.oneofs_by_name['user_list'].fields.append( - _USERLIST.fields_by_name['similar_user_list']) -_USERLIST.fields_by_name['similar_user_list'].containing_oneof = _USERLIST.oneofs_by_name['user_list'] -_USERLIST.oneofs_by_name['user_list'].fields.append( - _USERLIST.fields_by_name['rule_based_user_list']) -_USERLIST.fields_by_name['rule_based_user_list'].containing_oneof = _USERLIST.oneofs_by_name['user_list'] -_USERLIST.oneofs_by_name['user_list'].fields.append( - _USERLIST.fields_by_name['logical_user_list']) -_USERLIST.fields_by_name['logical_user_list'].containing_oneof = _USERLIST.oneofs_by_name['user_list'] -_USERLIST.oneofs_by_name['user_list'].fields.append( - _USERLIST.fields_by_name['basic_user_list']) -_USERLIST.fields_by_name['basic_user_list'].containing_oneof = _USERLIST.oneofs_by_name['user_list'] -DESCRIPTOR.message_types_by_name['UserList'] = _USERLIST -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -UserList = _reflection.GeneratedProtocolMessageType('UserList', (_message.Message,), dict( - DESCRIPTOR = _USERLIST, - __module__ = 'google.ads.googleads_v1.proto.resources.user_list_pb2' - , - __doc__ = """A user list. This is a list of users a customer may target. - - - Attributes: - resource_name: - The resource name of the user list. User list resource names - have the form: - ``customers/{customer_id}/userLists/{user_list_id}`` - id: - Id of the user list. - read_only: - A flag that indicates if a user may edit a list. Depends on - the list ownership and list type. For example, external - remarketing user lists are not editable. This field is read- - only. - name: - Name of this user list. Depending on its access\_reason, the - user list name may not be unique (e.g. if - access\_reason=SHARED) - description: - Description of this user list. - membership_status: - Membership status of this user list. Indicates whether a user - list is open or active. Only open user lists can accumulate - more users and can be targeted to. - integration_code: - An ID from external system. It is used by user list sellers to - correlate IDs on their systems. - membership_life_span: - Number of days a user's cookie stays on your list since its - most recent addition to the list. This field must be between 0 - and 540 inclusive. However, for CRM based userlists, this - field can be set to 10000 which means no expiration. It'll be - ignored for logical\_user\_list. - size_for_display: - Estimated number of users in this user list, on the Google - Display Network. This value is null if the number of users has - not yet been determined. This field is read-only. - size_range_for_display: - Size range in terms of number of users of the UserList, on the - Google Display Network. This field is read-only. - size_for_search: - Estimated number of users in this user list in the google.com - domain. These are the users available for targeting in Search - campaigns. This value is null if the number of users has not - yet been determined. This field is read-only. - size_range_for_search: - Size range in terms of number of users of the UserList, for - Search ads. This field is read-only. - type: - Type of this list. This field is read-only. - closing_reason: - Indicating the reason why this user list membership status is - closed. It is only populated on lists that were automatically - closed due to inactivity, and will be cleared once the list - membership status becomes open. - access_reason: - Indicates the reason this account has been granted access to - the list. The reason can be SHARED, OWNED, LICENSED or - SUBSCRIBED. This field is read-only. - account_user_list_status: - Indicates if this share is still enabled. When a UserList is - shared with the user this field is set to ENABLED. Later the - userList owner can decide to revoke the share and make it - DISABLED. The default value of this field is set to ENABLED. - eligible_for_search: - Indicates if this user list is eligible for Google Search - Network. - eligible_for_display: - Indicates this user list is eligible for Google Display - Network. This field is read-only. - user_list: - The user list. Exactly one must be set. - crm_based_user_list: - User list of CRM users provided by the advertiser. - similar_user_list: - User list which are similar to users from another UserList. - These lists are readonly and automatically created by google. - rule_based_user_list: - User list generated by a rule. - logical_user_list: - User list that is a custom combination of user lists and user - interests. - basic_user_list: - User list targeting as a collection of conversion or - remarketing actions. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.resources.UserList) - )) -_sym_db.RegisterMessage(UserList) - - -DESCRIPTOR._options = None -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/resources/video_pb2.py b/google/ads/google_ads/v1/proto/resources/video_pb2.py deleted file mode 100644 index 3b9848780..000000000 --- a/google/ads/google_ads/v1/proto/resources/video_pb2.py +++ /dev/null @@ -1,123 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/resources/video.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/resources/video.proto', - package='google.ads.googleads.v1.resources', - syntax='proto3', - serialized_options=_b('\n%com.google.ads.googleads.v1.resourcesB\nVideoProtoP\001ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources\242\002\003GAA\252\002!Google.Ads.GoogleAds.V1.Resources\312\002!Google\\Ads\\GoogleAds\\V1\\Resources\352\002%Google::Ads::GoogleAds::V1::Resources'), - serialized_pb=_b('\n3google/ads/googleads_v1/proto/resources/video.proto\x12!google.ads.googleads.v1.resources\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1cgoogle/api/annotations.proto\"\xdd\x01\n\x05Video\x12\x15\n\rresource_name\x18\x01 \x01(\t\x12(\n\x02id\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x30\n\nchannel_id\x18\x03 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x34\n\x0f\x64uration_millis\x18\x04 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12+\n\x05title\x18\x05 \x01(\x0b\x32\x1c.google.protobuf.StringValueB\xf7\x01\n%com.google.ads.googleads.v1.resourcesB\nVideoProtoP\x01ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V1.Resources\xca\x02!Google\\Ads\\GoogleAds\\V1\\Resources\xea\x02%Google::Ads::GoogleAds::V1::Resourcesb\x06proto3') - , - dependencies=[google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - - -_VIDEO = _descriptor.Descriptor( - name='Video', - full_name='google.ads.googleads.v1.resources.Video', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.resources.Video.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='id', full_name='google.ads.googleads.v1.resources.Video.id', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='channel_id', full_name='google.ads.googleads.v1.resources.Video.channel_id', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='duration_millis', full_name='google.ads.googleads.v1.resources.Video.duration_millis', index=3, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='title', full_name='google.ads.googleads.v1.resources.Video.title', index=4, - number=5, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=153, - serialized_end=374, -) - -_VIDEO.fields_by_name['id'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_VIDEO.fields_by_name['channel_id'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_VIDEO.fields_by_name['duration_millis'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -_VIDEO.fields_by_name['title'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -DESCRIPTOR.message_types_by_name['Video'] = _VIDEO -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -Video = _reflection.GeneratedProtocolMessageType('Video', (_message.Message,), dict( - DESCRIPTOR = _VIDEO, - __module__ = 'google.ads.googleads_v1.proto.resources.video_pb2' - , - __doc__ = """A video. - - - Attributes: - resource_name: - The resource name of the video. Video resource names have the - form: ``customers/{customer_id}/videos/{video_id}`` - id: - The ID of the video. - channel_id: - The owner channel id of the video. - duration_millis: - The duration of the video in milliseconds. - title: - The title of the video. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.resources.Video) - )) -_sym_db.RegisterMessage(Video) - - -DESCRIPTOR._options = None -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/services/account_budget_proposal_service_pb2.py b/google/ads/google_ads/v1/proto/services/account_budget_proposal_service_pb2.py deleted file mode 100644 index d2308c5a0..000000000 --- a/google/ads/google_ads/v1/proto/services/account_budget_proposal_service_pb2.py +++ /dev/null @@ -1,372 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/services/account_budget_proposal_service.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.ads.google_ads.v1.proto.resources import account_budget_proposal_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_account__budget__proposal__pb2 -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 -from google.protobuf import field_mask_pb2 as google_dot_protobuf_dot_field__mask__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/services/account_budget_proposal_service.proto', - package='google.ads.googleads.v1.services', - syntax='proto3', - serialized_options=_b('\n$com.google.ads.googleads.v1.servicesB!AccountBudgetProposalServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v1/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V1.Services\312\002 Google\\Ads\\GoogleAds\\V1\\Services\352\002$Google::Ads::GoogleAds::V1::Services'), - serialized_pb=_b('\nLgoogle/ads/googleads_v1/proto/services/account_budget_proposal_service.proto\x12 google.ads.googleads.v1.services\x1a\x45google/ads/googleads_v1/proto/resources/account_budget_proposal.proto\x1a\x1cgoogle/api/annotations.proto\x1a google/protobuf/field_mask.proto\"8\n\x1fGetAccountBudgetProposalRequest\x12\x15\n\rresource_name\x18\x01 \x01(\t\"\xa5\x01\n\"MutateAccountBudgetProposalRequest\x12\x13\n\x0b\x63ustomer_id\x18\x01 \x01(\t\x12S\n\toperation\x18\x02 \x01(\x0b\x32@.google.ads.googleads.v1.services.AccountBudgetProposalOperation\x12\x15\n\rvalidate_only\x18\x03 \x01(\x08\"\xbc\x01\n\x1e\x41\x63\x63ountBudgetProposalOperation\x12/\n\x0bupdate_mask\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12J\n\x06\x63reate\x18\x02 \x01(\x0b\x32\x38.google.ads.googleads.v1.resources.AccountBudgetProposalH\x00\x12\x10\n\x06remove\x18\x01 \x01(\tH\x00\x42\x0b\n\toperation\"z\n#MutateAccountBudgetProposalResponse\x12S\n\x06result\x18\x02 \x01(\x0b\x32\x43.google.ads.googleads.v1.services.MutateAccountBudgetProposalResult\":\n!MutateAccountBudgetProposalResult\x12\x15\n\rresource_name\x18\x01 \x01(\t2\xef\x03\n\x1c\x41\x63\x63ountBudgetProposalService\x12\xd9\x01\n\x18GetAccountBudgetProposal\x12\x41.google.ads.googleads.v1.services.GetAccountBudgetProposalRequest\x1a\x38.google.ads.googleads.v1.resources.AccountBudgetProposal\"@\x82\xd3\xe4\x93\x02:\x12\x38/v1/{resource_name=customers/*/accountBudgetProposals/*}\x12\xf2\x01\n\x1bMutateAccountBudgetProposal\x12\x44.google.ads.googleads.v1.services.MutateAccountBudgetProposalRequest\x1a\x45.google.ads.googleads.v1.services.MutateAccountBudgetProposalResponse\"F\x82\xd3\xe4\x93\x02@\";/v1/customers/{customer_id=*}/accountBudgetProposals:mutate:\x01*B\x88\x02\n$com.google.ads.googleads.v1.servicesB!AccountBudgetProposalServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v1/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V1.Services\xca\x02 Google\\Ads\\GoogleAds\\V1\\Services\xea\x02$Google::Ads::GoogleAds::V1::Servicesb\x06proto3') - , - dependencies=[google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_account__budget__proposal__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_protobuf_dot_field__mask__pb2.DESCRIPTOR,]) - - - - -_GETACCOUNTBUDGETPROPOSALREQUEST = _descriptor.Descriptor( - name='GetAccountBudgetProposalRequest', - full_name='google.ads.googleads.v1.services.GetAccountBudgetProposalRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.services.GetAccountBudgetProposalRequest.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=249, - serialized_end=305, -) - - -_MUTATEACCOUNTBUDGETPROPOSALREQUEST = _descriptor.Descriptor( - name='MutateAccountBudgetProposalRequest', - full_name='google.ads.googleads.v1.services.MutateAccountBudgetProposalRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='customer_id', full_name='google.ads.googleads.v1.services.MutateAccountBudgetProposalRequest.customer_id', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='operation', full_name='google.ads.googleads.v1.services.MutateAccountBudgetProposalRequest.operation', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='validate_only', full_name='google.ads.googleads.v1.services.MutateAccountBudgetProposalRequest.validate_only', index=2, - number=3, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=308, - serialized_end=473, -) - - -_ACCOUNTBUDGETPROPOSALOPERATION = _descriptor.Descriptor( - name='AccountBudgetProposalOperation', - full_name='google.ads.googleads.v1.services.AccountBudgetProposalOperation', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='update_mask', full_name='google.ads.googleads.v1.services.AccountBudgetProposalOperation.update_mask', index=0, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='create', full_name='google.ads.googleads.v1.services.AccountBudgetProposalOperation.create', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='remove', full_name='google.ads.googleads.v1.services.AccountBudgetProposalOperation.remove', index=2, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='operation', full_name='google.ads.googleads.v1.services.AccountBudgetProposalOperation.operation', - index=0, containing_type=None, fields=[]), - ], - serialized_start=476, - serialized_end=664, -) - - -_MUTATEACCOUNTBUDGETPROPOSALRESPONSE = _descriptor.Descriptor( - name='MutateAccountBudgetProposalResponse', - full_name='google.ads.googleads.v1.services.MutateAccountBudgetProposalResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='result', full_name='google.ads.googleads.v1.services.MutateAccountBudgetProposalResponse.result', index=0, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=666, - serialized_end=788, -) - - -_MUTATEACCOUNTBUDGETPROPOSALRESULT = _descriptor.Descriptor( - name='MutateAccountBudgetProposalResult', - full_name='google.ads.googleads.v1.services.MutateAccountBudgetProposalResult', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.services.MutateAccountBudgetProposalResult.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=790, - serialized_end=848, -) - -_MUTATEACCOUNTBUDGETPROPOSALREQUEST.fields_by_name['operation'].message_type = _ACCOUNTBUDGETPROPOSALOPERATION -_ACCOUNTBUDGETPROPOSALOPERATION.fields_by_name['update_mask'].message_type = google_dot_protobuf_dot_field__mask__pb2._FIELDMASK -_ACCOUNTBUDGETPROPOSALOPERATION.fields_by_name['create'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_account__budget__proposal__pb2._ACCOUNTBUDGETPROPOSAL -_ACCOUNTBUDGETPROPOSALOPERATION.oneofs_by_name['operation'].fields.append( - _ACCOUNTBUDGETPROPOSALOPERATION.fields_by_name['create']) -_ACCOUNTBUDGETPROPOSALOPERATION.fields_by_name['create'].containing_oneof = _ACCOUNTBUDGETPROPOSALOPERATION.oneofs_by_name['operation'] -_ACCOUNTBUDGETPROPOSALOPERATION.oneofs_by_name['operation'].fields.append( - _ACCOUNTBUDGETPROPOSALOPERATION.fields_by_name['remove']) -_ACCOUNTBUDGETPROPOSALOPERATION.fields_by_name['remove'].containing_oneof = _ACCOUNTBUDGETPROPOSALOPERATION.oneofs_by_name['operation'] -_MUTATEACCOUNTBUDGETPROPOSALRESPONSE.fields_by_name['result'].message_type = _MUTATEACCOUNTBUDGETPROPOSALRESULT -DESCRIPTOR.message_types_by_name['GetAccountBudgetProposalRequest'] = _GETACCOUNTBUDGETPROPOSALREQUEST -DESCRIPTOR.message_types_by_name['MutateAccountBudgetProposalRequest'] = _MUTATEACCOUNTBUDGETPROPOSALREQUEST -DESCRIPTOR.message_types_by_name['AccountBudgetProposalOperation'] = _ACCOUNTBUDGETPROPOSALOPERATION -DESCRIPTOR.message_types_by_name['MutateAccountBudgetProposalResponse'] = _MUTATEACCOUNTBUDGETPROPOSALRESPONSE -DESCRIPTOR.message_types_by_name['MutateAccountBudgetProposalResult'] = _MUTATEACCOUNTBUDGETPROPOSALRESULT -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -GetAccountBudgetProposalRequest = _reflection.GeneratedProtocolMessageType('GetAccountBudgetProposalRequest', (_message.Message,), dict( - DESCRIPTOR = _GETACCOUNTBUDGETPROPOSALREQUEST, - __module__ = 'google.ads.googleads_v1.proto.services.account_budget_proposal_service_pb2' - , - __doc__ = """Request message for - [AccountBudgetProposalService.GetAccountBudgetProposal][google.ads.googleads.v1.services.AccountBudgetProposalService.GetAccountBudgetProposal]. - - - Attributes: - resource_name: - The resource name of the account-level budget proposal to - fetch. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.GetAccountBudgetProposalRequest) - )) -_sym_db.RegisterMessage(GetAccountBudgetProposalRequest) - -MutateAccountBudgetProposalRequest = _reflection.GeneratedProtocolMessageType('MutateAccountBudgetProposalRequest', (_message.Message,), dict( - DESCRIPTOR = _MUTATEACCOUNTBUDGETPROPOSALREQUEST, - __module__ = 'google.ads.googleads_v1.proto.services.account_budget_proposal_service_pb2' - , - __doc__ = """Request message for - [AccountBudgetProposalService.MutateAccountBudgetProposal][google.ads.googleads.v1.services.AccountBudgetProposalService.MutateAccountBudgetProposal]. - - - Attributes: - customer_id: - The ID of the customer. - operation: - The operation to perform on an individual account-level budget - proposal. - validate_only: - If true, the request is validated but not executed. Only - errors are returned, not results. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.MutateAccountBudgetProposalRequest) - )) -_sym_db.RegisterMessage(MutateAccountBudgetProposalRequest) - -AccountBudgetProposalOperation = _reflection.GeneratedProtocolMessageType('AccountBudgetProposalOperation', (_message.Message,), dict( - DESCRIPTOR = _ACCOUNTBUDGETPROPOSALOPERATION, - __module__ = 'google.ads.googleads_v1.proto.services.account_budget_proposal_service_pb2' - , - __doc__ = """A single operation to propose the creation of a new account-level budget - or edit/end/remove an existing one. - - - Attributes: - update_mask: - FieldMask that determines which budget fields are modified. - While budgets may be modified, proposals that propose such - modifications are final. Therefore, update operations are not - supported for proposals. Proposals that modify budgets have - the 'update' proposal type. Specifying a mask for any other - proposal type is considered an error. - operation: - The mutate operation. - create: - 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. No - resource name is expected for the new proposal. - remove: - Remove operation: A resource name for the removed proposal is - expected, in this format: ``customers/{customer_id}/accountBu - dgetProposals/{account_budget_proposal_id}`` A request may be - cancelled iff it is pending. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.AccountBudgetProposalOperation) - )) -_sym_db.RegisterMessage(AccountBudgetProposalOperation) - -MutateAccountBudgetProposalResponse = _reflection.GeneratedProtocolMessageType('MutateAccountBudgetProposalResponse', (_message.Message,), dict( - DESCRIPTOR = _MUTATEACCOUNTBUDGETPROPOSALRESPONSE, - __module__ = 'google.ads.googleads_v1.proto.services.account_budget_proposal_service_pb2' - , - __doc__ = """Response message for account-level budget mutate operations. - - - Attributes: - result: - The result of the mutate. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.MutateAccountBudgetProposalResponse) - )) -_sym_db.RegisterMessage(MutateAccountBudgetProposalResponse) - -MutateAccountBudgetProposalResult = _reflection.GeneratedProtocolMessageType('MutateAccountBudgetProposalResult', (_message.Message,), dict( - DESCRIPTOR = _MUTATEACCOUNTBUDGETPROPOSALRESULT, - __module__ = 'google.ads.googleads_v1.proto.services.account_budget_proposal_service_pb2' - , - __doc__ = """The result for the account budget proposal mutate. - - - Attributes: - resource_name: - Returned for successful operations. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.MutateAccountBudgetProposalResult) - )) -_sym_db.RegisterMessage(MutateAccountBudgetProposalResult) - - -DESCRIPTOR._options = None - -_ACCOUNTBUDGETPROPOSALSERVICE = _descriptor.ServiceDescriptor( - name='AccountBudgetProposalService', - full_name='google.ads.googleads.v1.services.AccountBudgetProposalService', - file=DESCRIPTOR, - index=0, - serialized_options=None, - serialized_start=851, - serialized_end=1346, - methods=[ - _descriptor.MethodDescriptor( - name='GetAccountBudgetProposal', - full_name='google.ads.googleads.v1.services.AccountBudgetProposalService.GetAccountBudgetProposal', - index=0, - containing_service=None, - input_type=_GETACCOUNTBUDGETPROPOSALREQUEST, - output_type=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_account__budget__proposal__pb2._ACCOUNTBUDGETPROPOSAL, - serialized_options=_b('\202\323\344\223\002:\0228/v1/{resource_name=customers/*/accountBudgetProposals/*}'), - ), - _descriptor.MethodDescriptor( - name='MutateAccountBudgetProposal', - full_name='google.ads.googleads.v1.services.AccountBudgetProposalService.MutateAccountBudgetProposal', - index=1, - containing_service=None, - input_type=_MUTATEACCOUNTBUDGETPROPOSALREQUEST, - output_type=_MUTATEACCOUNTBUDGETPROPOSALRESPONSE, - serialized_options=_b('\202\323\344\223\002@\";/v1/customers/{customer_id=*}/accountBudgetProposals:mutate:\001*'), - ), -]) -_sym_db.RegisterServiceDescriptor(_ACCOUNTBUDGETPROPOSALSERVICE) - -DESCRIPTOR.services_by_name['AccountBudgetProposalService'] = _ACCOUNTBUDGETPROPOSALSERVICE - -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/services/account_budget_service_pb2.py b/google/ads/google_ads/v1/proto/services/account_budget_service_pb2.py deleted file mode 100644 index 1d559757c..000000000 --- a/google/ads/google_ads/v1/proto/services/account_budget_service_pb2.py +++ /dev/null @@ -1,107 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/services/account_budget_service.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.ads.google_ads.v1.proto.resources import account_budget_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_account__budget__pb2 -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/services/account_budget_service.proto', - package='google.ads.googleads.v1.services', - syntax='proto3', - serialized_options=_b('\n$com.google.ads.googleads.v1.servicesB\031AccountBudgetServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v1/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V1.Services\312\002 Google\\Ads\\GoogleAds\\V1\\Services\352\002$Google::Ads::GoogleAds::V1::Services'), - serialized_pb=_b('\nCgoogle/ads/googleads_v1/proto/services/account_budget_service.proto\x12 google.ads.googleads.v1.services\x1a.google.ads.googleads.v1.services.MutateAdGroupAdLabelsRequest\x1a?.google.ads.googleads.v1.services.MutateAdGroupAdLabelsResponse\"?\x82\xd3\xe4\x93\x02\x39\"4/v1/customers/{customer_id=*}/adGroupAdLabels:mutate:\x01*B\x81\x02\n$com.google.ads.googleads.v1.servicesB\x1a\x41\x64GroupAdLabelServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v1/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V1.Services\xca\x02 Google\\Ads\\GoogleAds\\V1\\Services\xea\x02$Google::Ads::GoogleAds::V1::Servicesb\x06proto3') - , - dependencies=[google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_ad__group__ad__label__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_rpc_dot_status__pb2.DESCRIPTOR,]) - - - - -_GETADGROUPADLABELREQUEST = _descriptor.Descriptor( - name='GetAdGroupAdLabelRequest', - full_name='google.ads.googleads.v1.services.GetAdGroupAdLabelRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.services.GetAdGroupAdLabelRequest.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=260, - serialized_end=309, -) - - -_MUTATEADGROUPADLABELSREQUEST = _descriptor.Descriptor( - name='MutateAdGroupAdLabelsRequest', - full_name='google.ads.googleads.v1.services.MutateAdGroupAdLabelsRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='customer_id', full_name='google.ads.googleads.v1.services.MutateAdGroupAdLabelsRequest.customer_id', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='operations', full_name='google.ads.googleads.v1.services.MutateAdGroupAdLabelsRequest.operations', index=1, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='partial_failure', full_name='google.ads.googleads.v1.services.MutateAdGroupAdLabelsRequest.partial_failure', index=2, - number=3, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='validate_only', full_name='google.ads.googleads.v1.services.MutateAdGroupAdLabelsRequest.validate_only', index=3, - number=4, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=312, - serialized_end=490, -) - - -_ADGROUPADLABELOPERATION = _descriptor.Descriptor( - name='AdGroupAdLabelOperation', - full_name='google.ads.googleads.v1.services.AdGroupAdLabelOperation', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='create', full_name='google.ads.googleads.v1.services.AdGroupAdLabelOperation.create', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='remove', full_name='google.ads.googleads.v1.services.AdGroupAdLabelOperation.remove', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='operation', full_name='google.ads.googleads.v1.services.AdGroupAdLabelOperation.operation', - index=0, containing_type=None, fields=[]), - ], - serialized_start=492, - serialized_end=617, -) - - -_MUTATEADGROUPADLABELSRESPONSE = _descriptor.Descriptor( - name='MutateAdGroupAdLabelsResponse', - full_name='google.ads.googleads.v1.services.MutateAdGroupAdLabelsResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='partial_failure_error', full_name='google.ads.googleads.v1.services.MutateAdGroupAdLabelsResponse.partial_failure_error', index=0, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='results', full_name='google.ads.googleads.v1.services.MutateAdGroupAdLabelsResponse.results', index=1, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=620, - serialized_end=781, -) - - -_MUTATEADGROUPADLABELRESULT = _descriptor.Descriptor( - name='MutateAdGroupAdLabelResult', - full_name='google.ads.googleads.v1.services.MutateAdGroupAdLabelResult', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.services.MutateAdGroupAdLabelResult.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=783, - serialized_end=834, -) - -_MUTATEADGROUPADLABELSREQUEST.fields_by_name['operations'].message_type = _ADGROUPADLABELOPERATION -_ADGROUPADLABELOPERATION.fields_by_name['create'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_ad__group__ad__label__pb2._ADGROUPADLABEL -_ADGROUPADLABELOPERATION.oneofs_by_name['operation'].fields.append( - _ADGROUPADLABELOPERATION.fields_by_name['create']) -_ADGROUPADLABELOPERATION.fields_by_name['create'].containing_oneof = _ADGROUPADLABELOPERATION.oneofs_by_name['operation'] -_ADGROUPADLABELOPERATION.oneofs_by_name['operation'].fields.append( - _ADGROUPADLABELOPERATION.fields_by_name['remove']) -_ADGROUPADLABELOPERATION.fields_by_name['remove'].containing_oneof = _ADGROUPADLABELOPERATION.oneofs_by_name['operation'] -_MUTATEADGROUPADLABELSRESPONSE.fields_by_name['partial_failure_error'].message_type = google_dot_rpc_dot_status__pb2._STATUS -_MUTATEADGROUPADLABELSRESPONSE.fields_by_name['results'].message_type = _MUTATEADGROUPADLABELRESULT -DESCRIPTOR.message_types_by_name['GetAdGroupAdLabelRequest'] = _GETADGROUPADLABELREQUEST -DESCRIPTOR.message_types_by_name['MutateAdGroupAdLabelsRequest'] = _MUTATEADGROUPADLABELSREQUEST -DESCRIPTOR.message_types_by_name['AdGroupAdLabelOperation'] = _ADGROUPADLABELOPERATION -DESCRIPTOR.message_types_by_name['MutateAdGroupAdLabelsResponse'] = _MUTATEADGROUPADLABELSRESPONSE -DESCRIPTOR.message_types_by_name['MutateAdGroupAdLabelResult'] = _MUTATEADGROUPADLABELRESULT -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -GetAdGroupAdLabelRequest = _reflection.GeneratedProtocolMessageType('GetAdGroupAdLabelRequest', (_message.Message,), dict( - DESCRIPTOR = _GETADGROUPADLABELREQUEST, - __module__ = 'google.ads.googleads_v1.proto.services.ad_group_ad_label_service_pb2' - , - __doc__ = """Request message for - [AdGroupAdLabelService.GetAdGroupAdLabel][google.ads.googleads.v1.services.AdGroupAdLabelService.GetAdGroupAdLabel]. - - - Attributes: - resource_name: - The resource name of the ad group ad label to fetch. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.GetAdGroupAdLabelRequest) - )) -_sym_db.RegisterMessage(GetAdGroupAdLabelRequest) - -MutateAdGroupAdLabelsRequest = _reflection.GeneratedProtocolMessageType('MutateAdGroupAdLabelsRequest', (_message.Message,), dict( - DESCRIPTOR = _MUTATEADGROUPADLABELSREQUEST, - __module__ = 'google.ads.googleads_v1.proto.services.ad_group_ad_label_service_pb2' - , - __doc__ = """Request message for - [AdGroupAdLabelService.MutateAdGroupAdLabels][google.ads.googleads.v1.services.AdGroupAdLabelService.MutateAdGroupAdLabels]. - - - Attributes: - customer_id: - ID of the customer whose ad group ad labels are being - modified. - operations: - The list of operations to perform on ad group ad labels. - partial_failure: - If true, successful operations will be carried out and invalid - operations will return errors. If false, all operations will - be carried out in one transaction if and only if they are all - valid. Default is false. - validate_only: - If true, the request is validated but not executed. Only - errors are returned, not results. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.MutateAdGroupAdLabelsRequest) - )) -_sym_db.RegisterMessage(MutateAdGroupAdLabelsRequest) - -AdGroupAdLabelOperation = _reflection.GeneratedProtocolMessageType('AdGroupAdLabelOperation', (_message.Message,), dict( - DESCRIPTOR = _ADGROUPADLABELOPERATION, - __module__ = 'google.ads.googleads_v1.proto.services.ad_group_ad_label_service_pb2' - , - __doc__ = """A single operation (create, remove) on an ad group ad label. - - - Attributes: - operation: - The mutate operation. - create: - Create operation: No resource name is expected for the new ad - group ad label. - remove: - Remove operation: A resource name for the ad group ad label - being removed, in this format: ``customers/{customer_id}/adGr - oupAdLabels/{ad_group_id}~{ad_id} _{label_id}`` - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.AdGroupAdLabelOperation) - )) -_sym_db.RegisterMessage(AdGroupAdLabelOperation) - -MutateAdGroupAdLabelsResponse = _reflection.GeneratedProtocolMessageType('MutateAdGroupAdLabelsResponse', (_message.Message,), dict( - DESCRIPTOR = _MUTATEADGROUPADLABELSRESPONSE, - __module__ = 'google.ads.googleads_v1.proto.services.ad_group_ad_label_service_pb2' - , - __doc__ = """Response message for an ad group ad labels mutate. - - - Attributes: - partial_failure_error: - Errors that pertain to operation failures in the partial - failure mode. Returned only when partial\_failure = true and - all errors occur inside the operations. If any errors occur - outside the operations (e.g. auth errors), we return an RPC - level error. - results: - All results for the mutate. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.MutateAdGroupAdLabelsResponse) - )) -_sym_db.RegisterMessage(MutateAdGroupAdLabelsResponse) - -MutateAdGroupAdLabelResult = _reflection.GeneratedProtocolMessageType('MutateAdGroupAdLabelResult', (_message.Message,), dict( - DESCRIPTOR = _MUTATEADGROUPADLABELRESULT, - __module__ = 'google.ads.googleads_v1.proto.services.ad_group_ad_label_service_pb2' - , - __doc__ = """The result for an ad group ad label mutate. - - - Attributes: - resource_name: - Returned for successful operations. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.MutateAdGroupAdLabelResult) - )) -_sym_db.RegisterMessage(MutateAdGroupAdLabelResult) - - -DESCRIPTOR._options = None - -_ADGROUPADLABELSERVICE = _descriptor.ServiceDescriptor( - name='AdGroupAdLabelService', - full_name='google.ads.googleads.v1.services.AdGroupAdLabelService', - file=DESCRIPTOR, - index=0, - serialized_options=None, - serialized_start=837, - serialized_end=1272, - methods=[ - _descriptor.MethodDescriptor( - name='GetAdGroupAdLabel', - full_name='google.ads.googleads.v1.services.AdGroupAdLabelService.GetAdGroupAdLabel', - index=0, - containing_service=None, - input_type=_GETADGROUPADLABELREQUEST, - output_type=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_ad__group__ad__label__pb2._ADGROUPADLABEL, - serialized_options=_b('\202\323\344\223\0023\0221/v1/{resource_name=customers/*/adGroupAdLabels/*}'), - ), - _descriptor.MethodDescriptor( - name='MutateAdGroupAdLabels', - full_name='google.ads.googleads.v1.services.AdGroupAdLabelService.MutateAdGroupAdLabels', - index=1, - containing_service=None, - input_type=_MUTATEADGROUPADLABELSREQUEST, - output_type=_MUTATEADGROUPADLABELSRESPONSE, - serialized_options=_b('\202\323\344\223\0029\"4/v1/customers/{customer_id=*}/adGroupAdLabels:mutate:\001*'), - ), -]) -_sym_db.RegisterServiceDescriptor(_ADGROUPADLABELSERVICE) - -DESCRIPTOR.services_by_name['AdGroupAdLabelService'] = _ADGROUPADLABELSERVICE - -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/services/ad_group_ad_label_service_pb2_grpc.py b/google/ads/google_ads/v1/proto/services/ad_group_ad_label_service_pb2_grpc.py deleted file mode 100644 index 2b867108a..000000000 --- a/google/ads/google_ads/v1/proto/services/ad_group_ad_label_service_pb2_grpc.py +++ /dev/null @@ -1,69 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -import grpc - -from google.ads.google_ads.v1.proto.resources import ad_group_ad_label_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_ad__group__ad__label__pb2 -from google.ads.google_ads.v1.proto.services import ad_group_ad_label_service_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_ad__group__ad__label__service__pb2 - - -class AdGroupAdLabelServiceStub(object): - """Proto file describing the Ad Group Ad Label service. - - Service to manage labels on ad group ads. - """ - - def __init__(self, channel): - """Constructor. - - Args: - channel: A grpc.Channel. - """ - self.GetAdGroupAdLabel = channel.unary_unary( - '/google.ads.googleads.v1.services.AdGroupAdLabelService/GetAdGroupAdLabel', - request_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_ad__group__ad__label__service__pb2.GetAdGroupAdLabelRequest.SerializeToString, - response_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_ad__group__ad__label__pb2.AdGroupAdLabel.FromString, - ) - self.MutateAdGroupAdLabels = channel.unary_unary( - '/google.ads.googleads.v1.services.AdGroupAdLabelService/MutateAdGroupAdLabels', - request_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_ad__group__ad__label__service__pb2.MutateAdGroupAdLabelsRequest.SerializeToString, - response_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_ad__group__ad__label__service__pb2.MutateAdGroupAdLabelsResponse.FromString, - ) - - -class AdGroupAdLabelServiceServicer(object): - """Proto file describing the Ad Group Ad Label service. - - Service to manage labels on ad group ads. - """ - - def GetAdGroupAdLabel(self, request, context): - """Returns the requested ad group ad label in full detail. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def MutateAdGroupAdLabels(self, request, context): - """Creates and removes ad group ad labels. - Operation statuses are returned. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - -def add_AdGroupAdLabelServiceServicer_to_server(servicer, server): - rpc_method_handlers = { - 'GetAdGroupAdLabel': grpc.unary_unary_rpc_method_handler( - servicer.GetAdGroupAdLabel, - request_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_ad__group__ad__label__service__pb2.GetAdGroupAdLabelRequest.FromString, - response_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_ad__group__ad__label__pb2.AdGroupAdLabel.SerializeToString, - ), - 'MutateAdGroupAdLabels': grpc.unary_unary_rpc_method_handler( - servicer.MutateAdGroupAdLabels, - request_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_ad__group__ad__label__service__pb2.MutateAdGroupAdLabelsRequest.FromString, - response_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_ad__group__ad__label__service__pb2.MutateAdGroupAdLabelsResponse.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'google.ads.googleads.v1.services.AdGroupAdLabelService', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) diff --git a/google/ads/google_ads/v1/proto/services/ad_group_ad_service_pb2.py b/google/ads/google_ads/v1/proto/services/ad_group_ad_service_pb2.py deleted file mode 100644 index ea81a04ef..000000000 --- a/google/ads/google_ads/v1/proto/services/ad_group_ad_service_pb2.py +++ /dev/null @@ -1,414 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/services/ad_group_ad_service.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.ads.google_ads.v1.proto.common import policy_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_policy__pb2 -from google.ads.google_ads.v1.proto.resources import ad_group_ad_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_ad__group__ad__pb2 -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 -from google.protobuf import field_mask_pb2 as google_dot_protobuf_dot_field__mask__pb2 -from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 -from google.rpc import status_pb2 as google_dot_rpc_dot_status__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/services/ad_group_ad_service.proto', - package='google.ads.googleads.v1.services', - syntax='proto3', - serialized_options=_b('\n$com.google.ads.googleads.v1.servicesB\025AdGroupAdServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v1/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V1.Services\312\002 Google\\Ads\\GoogleAds\\V1\\Services\352\002$Google::Ads::GoogleAds::V1::Services'), - serialized_pb=_b('\n@google/ads/googleads_v1/proto/services/ad_group_ad_service.proto\x12 google.ads.googleads.v1.services\x1a\x31google/ads/googleads_v1/proto/common/policy.proto\x1a\x39google/ads/googleads_v1/proto/resources/ad_group_ad.proto\x1a\x1cgoogle/api/annotations.proto\x1a google/protobuf/field_mask.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x17google/rpc/status.proto\",\n\x13GetAdGroupAdRequest\x12\x15\n\rresource_name\x18\x01 \x01(\t\"\xa8\x01\n\x17MutateAdGroupAdsRequest\x12\x13\n\x0b\x63ustomer_id\x18\x01 \x01(\t\x12H\n\noperations\x18\x02 \x03(\x0b\x32\x34.google.ads.googleads.v1.services.AdGroupAdOperation\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\"\xc4\x02\n\x12\x41\x64GroupAdOperation\x12/\n\x0bupdate_mask\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12^\n\x1bpolicy_validation_parameter\x18\x05 \x01(\x0b\x32\x39.google.ads.googleads.v1.common.PolicyValidationParameter\x12>\n\x06\x63reate\x18\x01 \x01(\x0b\x32,.google.ads.googleads.v1.resources.AdGroupAdH\x00\x12>\n\x06update\x18\x02 \x01(\x0b\x32,.google.ads.googleads.v1.resources.AdGroupAdH\x00\x12\x10\n\x06remove\x18\x03 \x01(\tH\x00\x42\x0b\n\toperation\"\x97\x01\n\x18MutateAdGroupAdsResponse\x12\x31\n\x15partial_failure_error\x18\x03 \x01(\x0b\x32\x12.google.rpc.Status\x12H\n\x07results\x18\x02 \x03(\x0b\x32\x37.google.ads.googleads.v1.services.MutateAdGroupAdResult\".\n\x15MutateAdGroupAdResult\x12\x15\n\rresource_name\x18\x01 \x01(\t2\x86\x03\n\x10\x41\x64GroupAdService\x12\xa9\x01\n\x0cGetAdGroupAd\x12\x35.google.ads.googleads.v1.services.GetAdGroupAdRequest\x1a,.google.ads.googleads.v1.resources.AdGroupAd\"4\x82\xd3\xe4\x93\x02.\x12,/v1/{resource_name=customers/*/adGroupAds/*}\x12\xc5\x01\n\x10MutateAdGroupAds\x12\x39.google.ads.googleads.v1.services.MutateAdGroupAdsRequest\x1a:.google.ads.googleads.v1.services.MutateAdGroupAdsResponse\":\x82\xd3\xe4\x93\x02\x34\"//v1/customers/{customer_id=*}/adGroupAds:mutate:\x01*B\xfc\x01\n$com.google.ads.googleads.v1.servicesB\x15\x41\x64GroupAdServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v1/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V1.Services\xca\x02 Google\\Ads\\GoogleAds\\V1\\Services\xea\x02$Google::Ads::GoogleAds::V1::Servicesb\x06proto3') - , - dependencies=[google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_policy__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_ad__group__ad__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_protobuf_dot_field__mask__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_rpc_dot_status__pb2.DESCRIPTOR,]) - - - - -_GETADGROUPADREQUEST = _descriptor.Descriptor( - name='GetAdGroupAdRequest', - full_name='google.ads.googleads.v1.services.GetAdGroupAdRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.services.GetAdGroupAdRequest.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=333, - serialized_end=377, -) - - -_MUTATEADGROUPADSREQUEST = _descriptor.Descriptor( - name='MutateAdGroupAdsRequest', - full_name='google.ads.googleads.v1.services.MutateAdGroupAdsRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='customer_id', full_name='google.ads.googleads.v1.services.MutateAdGroupAdsRequest.customer_id', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='operations', full_name='google.ads.googleads.v1.services.MutateAdGroupAdsRequest.operations', index=1, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='partial_failure', full_name='google.ads.googleads.v1.services.MutateAdGroupAdsRequest.partial_failure', index=2, - number=3, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='validate_only', full_name='google.ads.googleads.v1.services.MutateAdGroupAdsRequest.validate_only', index=3, - number=4, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=380, - serialized_end=548, -) - - -_ADGROUPADOPERATION = _descriptor.Descriptor( - name='AdGroupAdOperation', - full_name='google.ads.googleads.v1.services.AdGroupAdOperation', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='update_mask', full_name='google.ads.googleads.v1.services.AdGroupAdOperation.update_mask', index=0, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='policy_validation_parameter', full_name='google.ads.googleads.v1.services.AdGroupAdOperation.policy_validation_parameter', index=1, - number=5, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='create', full_name='google.ads.googleads.v1.services.AdGroupAdOperation.create', index=2, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='update', full_name='google.ads.googleads.v1.services.AdGroupAdOperation.update', index=3, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='remove', full_name='google.ads.googleads.v1.services.AdGroupAdOperation.remove', index=4, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='operation', full_name='google.ads.googleads.v1.services.AdGroupAdOperation.operation', - index=0, containing_type=None, fields=[]), - ], - serialized_start=551, - serialized_end=875, -) - - -_MUTATEADGROUPADSRESPONSE = _descriptor.Descriptor( - name='MutateAdGroupAdsResponse', - full_name='google.ads.googleads.v1.services.MutateAdGroupAdsResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='partial_failure_error', full_name='google.ads.googleads.v1.services.MutateAdGroupAdsResponse.partial_failure_error', index=0, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='results', full_name='google.ads.googleads.v1.services.MutateAdGroupAdsResponse.results', index=1, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=878, - serialized_end=1029, -) - - -_MUTATEADGROUPADRESULT = _descriptor.Descriptor( - name='MutateAdGroupAdResult', - full_name='google.ads.googleads.v1.services.MutateAdGroupAdResult', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.services.MutateAdGroupAdResult.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1031, - serialized_end=1077, -) - -_MUTATEADGROUPADSREQUEST.fields_by_name['operations'].message_type = _ADGROUPADOPERATION -_ADGROUPADOPERATION.fields_by_name['update_mask'].message_type = google_dot_protobuf_dot_field__mask__pb2._FIELDMASK -_ADGROUPADOPERATION.fields_by_name['policy_validation_parameter'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_policy__pb2._POLICYVALIDATIONPARAMETER -_ADGROUPADOPERATION.fields_by_name['create'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_ad__group__ad__pb2._ADGROUPAD -_ADGROUPADOPERATION.fields_by_name['update'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_ad__group__ad__pb2._ADGROUPAD -_ADGROUPADOPERATION.oneofs_by_name['operation'].fields.append( - _ADGROUPADOPERATION.fields_by_name['create']) -_ADGROUPADOPERATION.fields_by_name['create'].containing_oneof = _ADGROUPADOPERATION.oneofs_by_name['operation'] -_ADGROUPADOPERATION.oneofs_by_name['operation'].fields.append( - _ADGROUPADOPERATION.fields_by_name['update']) -_ADGROUPADOPERATION.fields_by_name['update'].containing_oneof = _ADGROUPADOPERATION.oneofs_by_name['operation'] -_ADGROUPADOPERATION.oneofs_by_name['operation'].fields.append( - _ADGROUPADOPERATION.fields_by_name['remove']) -_ADGROUPADOPERATION.fields_by_name['remove'].containing_oneof = _ADGROUPADOPERATION.oneofs_by_name['operation'] -_MUTATEADGROUPADSRESPONSE.fields_by_name['partial_failure_error'].message_type = google_dot_rpc_dot_status__pb2._STATUS -_MUTATEADGROUPADSRESPONSE.fields_by_name['results'].message_type = _MUTATEADGROUPADRESULT -DESCRIPTOR.message_types_by_name['GetAdGroupAdRequest'] = _GETADGROUPADREQUEST -DESCRIPTOR.message_types_by_name['MutateAdGroupAdsRequest'] = _MUTATEADGROUPADSREQUEST -DESCRIPTOR.message_types_by_name['AdGroupAdOperation'] = _ADGROUPADOPERATION -DESCRIPTOR.message_types_by_name['MutateAdGroupAdsResponse'] = _MUTATEADGROUPADSRESPONSE -DESCRIPTOR.message_types_by_name['MutateAdGroupAdResult'] = _MUTATEADGROUPADRESULT -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -GetAdGroupAdRequest = _reflection.GeneratedProtocolMessageType('GetAdGroupAdRequest', (_message.Message,), dict( - DESCRIPTOR = _GETADGROUPADREQUEST, - __module__ = 'google.ads.googleads_v1.proto.services.ad_group_ad_service_pb2' - , - __doc__ = """Request message for - [AdGroupAdService.GetAdGroupAd][google.ads.googleads.v1.services.AdGroupAdService.GetAdGroupAd]. - - - Attributes: - resource_name: - The resource name of the ad to fetch. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.GetAdGroupAdRequest) - )) -_sym_db.RegisterMessage(GetAdGroupAdRequest) - -MutateAdGroupAdsRequest = _reflection.GeneratedProtocolMessageType('MutateAdGroupAdsRequest', (_message.Message,), dict( - DESCRIPTOR = _MUTATEADGROUPADSREQUEST, - __module__ = 'google.ads.googleads_v1.proto.services.ad_group_ad_service_pb2' - , - __doc__ = """Request message for - [AdGroupAdService.MutateAdGroupAds][google.ads.googleads.v1.services.AdGroupAdService.MutateAdGroupAds]. - - - Attributes: - customer_id: - The ID of the customer whose ads are being modified. - operations: - The list of operations to perform on individual ads. - partial_failure: - If true, successful operations will be carried out and invalid - operations will return errors. If false, all operations will - be carried out in one transaction if and only if they are all - valid. Default is false. - validate_only: - If true, the request is validated but not executed. Only - errors are returned, not results. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.MutateAdGroupAdsRequest) - )) -_sym_db.RegisterMessage(MutateAdGroupAdsRequest) - -AdGroupAdOperation = _reflection.GeneratedProtocolMessageType('AdGroupAdOperation', (_message.Message,), dict( - DESCRIPTOR = _ADGROUPADOPERATION, - __module__ = 'google.ads.googleads_v1.proto.services.ad_group_ad_service_pb2' - , - __doc__ = """A single operation (create, update, remove) on an ad group ad. - - - Attributes: - update_mask: - FieldMask that determines which resource fields are modified - in an update. - policy_validation_parameter: - Configuration for how policies are validated. - operation: - The mutate operation. - create: - Create operation: No resource name is expected for the new ad. - update: - Update operation: The ad is expected to have a valid resource - name. - remove: - Remove operation: A resource name for the removed ad is - expected, in this format: - ``customers/{customer_id}/adGroupAds/{ad_group_id}~{ad_id}`` - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.AdGroupAdOperation) - )) -_sym_db.RegisterMessage(AdGroupAdOperation) - -MutateAdGroupAdsResponse = _reflection.GeneratedProtocolMessageType('MutateAdGroupAdsResponse', (_message.Message,), dict( - DESCRIPTOR = _MUTATEADGROUPADSRESPONSE, - __module__ = 'google.ads.googleads_v1.proto.services.ad_group_ad_service_pb2' - , - __doc__ = """Response message for an ad group ad mutate. - - - Attributes: - partial_failure_error: - Errors that pertain to operation failures in the partial - failure mode. Returned only when partial\_failure = true and - all errors occur inside the operations. If any errors occur - outside the operations (e.g. auth errors), we return an RPC - level error. - results: - All results for the mutate. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.MutateAdGroupAdsResponse) - )) -_sym_db.RegisterMessage(MutateAdGroupAdsResponse) - -MutateAdGroupAdResult = _reflection.GeneratedProtocolMessageType('MutateAdGroupAdResult', (_message.Message,), dict( - DESCRIPTOR = _MUTATEADGROUPADRESULT, - __module__ = 'google.ads.googleads_v1.proto.services.ad_group_ad_service_pb2' - , - __doc__ = """The result for the ad mutate. - - - Attributes: - resource_name: - The resource name returned for successful operations. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.MutateAdGroupAdResult) - )) -_sym_db.RegisterMessage(MutateAdGroupAdResult) - - -DESCRIPTOR._options = None - -_ADGROUPADSERVICE = _descriptor.ServiceDescriptor( - name='AdGroupAdService', - full_name='google.ads.googleads.v1.services.AdGroupAdService', - file=DESCRIPTOR, - index=0, - serialized_options=None, - serialized_start=1080, - serialized_end=1470, - methods=[ - _descriptor.MethodDescriptor( - name='GetAdGroupAd', - full_name='google.ads.googleads.v1.services.AdGroupAdService.GetAdGroupAd', - index=0, - containing_service=None, - input_type=_GETADGROUPADREQUEST, - output_type=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_ad__group__ad__pb2._ADGROUPAD, - serialized_options=_b('\202\323\344\223\002.\022,/v1/{resource_name=customers/*/adGroupAds/*}'), - ), - _descriptor.MethodDescriptor( - name='MutateAdGroupAds', - full_name='google.ads.googleads.v1.services.AdGroupAdService.MutateAdGroupAds', - index=1, - containing_service=None, - input_type=_MUTATEADGROUPADSREQUEST, - output_type=_MUTATEADGROUPADSRESPONSE, - serialized_options=_b('\202\323\344\223\0024\"//v1/customers/{customer_id=*}/adGroupAds:mutate:\001*'), - ), -]) -_sym_db.RegisterServiceDescriptor(_ADGROUPADSERVICE) - -DESCRIPTOR.services_by_name['AdGroupAdService'] = _ADGROUPADSERVICE - -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/services/ad_group_ad_service_pb2_grpc.py b/google/ads/google_ads/v1/proto/services/ad_group_ad_service_pb2_grpc.py deleted file mode 100644 index aca7eac1a..000000000 --- a/google/ads/google_ads/v1/proto/services/ad_group_ad_service_pb2_grpc.py +++ /dev/null @@ -1,68 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -import grpc - -from google.ads.google_ads.v1.proto.resources import ad_group_ad_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_ad__group__ad__pb2 -from google.ads.google_ads.v1.proto.services import ad_group_ad_service_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_ad__group__ad__service__pb2 - - -class AdGroupAdServiceStub(object): - """Proto file describing the Ad Group Ad service. - - Service to manage ads in an ad group. - """ - - def __init__(self, channel): - """Constructor. - - Args: - channel: A grpc.Channel. - """ - self.GetAdGroupAd = channel.unary_unary( - '/google.ads.googleads.v1.services.AdGroupAdService/GetAdGroupAd', - request_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_ad__group__ad__service__pb2.GetAdGroupAdRequest.SerializeToString, - response_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_ad__group__ad__pb2.AdGroupAd.FromString, - ) - self.MutateAdGroupAds = channel.unary_unary( - '/google.ads.googleads.v1.services.AdGroupAdService/MutateAdGroupAds', - request_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_ad__group__ad__service__pb2.MutateAdGroupAdsRequest.SerializeToString, - response_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_ad__group__ad__service__pb2.MutateAdGroupAdsResponse.FromString, - ) - - -class AdGroupAdServiceServicer(object): - """Proto file describing the Ad Group Ad service. - - Service to manage ads in an ad group. - """ - - def GetAdGroupAd(self, request, context): - """Returns the requested ad in full detail. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def MutateAdGroupAds(self, request, context): - """Creates, updates, or removes ads. Operation statuses are returned. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - -def add_AdGroupAdServiceServicer_to_server(servicer, server): - rpc_method_handlers = { - 'GetAdGroupAd': grpc.unary_unary_rpc_method_handler( - servicer.GetAdGroupAd, - request_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_ad__group__ad__service__pb2.GetAdGroupAdRequest.FromString, - response_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_ad__group__ad__pb2.AdGroupAd.SerializeToString, - ), - 'MutateAdGroupAds': grpc.unary_unary_rpc_method_handler( - servicer.MutateAdGroupAds, - request_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_ad__group__ad__service__pb2.MutateAdGroupAdsRequest.FromString, - response_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_ad__group__ad__service__pb2.MutateAdGroupAdsResponse.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'google.ads.googleads.v1.services.AdGroupAdService', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) diff --git a/google/ads/google_ads/v1/proto/services/ad_group_audience_view_service_pb2.py b/google/ads/google_ads/v1/proto/services/ad_group_audience_view_service_pb2.py deleted file mode 100644 index f1c8046cf..000000000 --- a/google/ads/google_ads/v1/proto/services/ad_group_audience_view_service_pb2.py +++ /dev/null @@ -1,107 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/services/ad_group_audience_view_service.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.ads.google_ads.v1.proto.resources import ad_group_audience_view_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_ad__group__audience__view__pb2 -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/services/ad_group_audience_view_service.proto', - package='google.ads.googleads.v1.services', - syntax='proto3', - serialized_options=_b('\n$com.google.ads.googleads.v1.servicesB\037AdGroupAudienceViewServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v1/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V1.Services\312\002 Google\\Ads\\GoogleAds\\V1\\Services\352\002$Google::Ads::GoogleAds::V1::Services'), - serialized_pb=_b('\nKgoogle/ads/googleads_v1/proto/services/ad_group_audience_view_service.proto\x12 google.ads.googleads.v1.services\x1a\x44google/ads/googleads_v1/proto/resources/ad_group_audience_view.proto\x1a\x1cgoogle/api/annotations.proto\"6\n\x1dGetAdGroupAudienceViewRequest\x12\x15\n\rresource_name\x18\x01 \x01(\t2\xf0\x01\n\x1a\x41\x64GroupAudienceViewService\x12\xd1\x01\n\x16GetAdGroupAudienceView\x12?.google.ads.googleads.v1.services.GetAdGroupAudienceViewRequest\x1a\x36.google.ads.googleads.v1.resources.AdGroupAudienceView\">\x82\xd3\xe4\x93\x02\x38\x12\x36/v1/{resource_name=customers/*/adGroupAudienceViews/*}B\x86\x02\n$com.google.ads.googleads.v1.servicesB\x1f\x41\x64GroupAudienceViewServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v1/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V1.Services\xca\x02 Google\\Ads\\GoogleAds\\V1\\Services\xea\x02$Google::Ads::GoogleAds::V1::Servicesb\x06proto3') - , - dependencies=[google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_ad__group__audience__view__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - - -_GETADGROUPAUDIENCEVIEWREQUEST = _descriptor.Descriptor( - name='GetAdGroupAudienceViewRequest', - full_name='google.ads.googleads.v1.services.GetAdGroupAudienceViewRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.services.GetAdGroupAudienceViewRequest.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=213, - serialized_end=267, -) - -DESCRIPTOR.message_types_by_name['GetAdGroupAudienceViewRequest'] = _GETADGROUPAUDIENCEVIEWREQUEST -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -GetAdGroupAudienceViewRequest = _reflection.GeneratedProtocolMessageType('GetAdGroupAudienceViewRequest', (_message.Message,), dict( - DESCRIPTOR = _GETADGROUPAUDIENCEVIEWREQUEST, - __module__ = 'google.ads.googleads_v1.proto.services.ad_group_audience_view_service_pb2' - , - __doc__ = """Request message for - [AdGroupAudienceViewService.GetAdGoupAudienceView][]. - - - Attributes: - resource_name: - The resource name of the ad group audience view to fetch. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.GetAdGroupAudienceViewRequest) - )) -_sym_db.RegisterMessage(GetAdGroupAudienceViewRequest) - - -DESCRIPTOR._options = None - -_ADGROUPAUDIENCEVIEWSERVICE = _descriptor.ServiceDescriptor( - name='AdGroupAudienceViewService', - full_name='google.ads.googleads.v1.services.AdGroupAudienceViewService', - file=DESCRIPTOR, - index=0, - serialized_options=None, - serialized_start=270, - serialized_end=510, - methods=[ - _descriptor.MethodDescriptor( - name='GetAdGroupAudienceView', - full_name='google.ads.googleads.v1.services.AdGroupAudienceViewService.GetAdGroupAudienceView', - index=0, - containing_service=None, - input_type=_GETADGROUPAUDIENCEVIEWREQUEST, - output_type=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_ad__group__audience__view__pb2._ADGROUPAUDIENCEVIEW, - serialized_options=_b('\202\323\344\223\0028\0226/v1/{resource_name=customers/*/adGroupAudienceViews/*}'), - ), -]) -_sym_db.RegisterServiceDescriptor(_ADGROUPAUDIENCEVIEWSERVICE) - -DESCRIPTOR.services_by_name['AdGroupAudienceViewService'] = _ADGROUPAUDIENCEVIEWSERVICE - -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/services/ad_group_audience_view_service_pb2_grpc.py b/google/ads/google_ads/v1/proto/services/ad_group_audience_view_service_pb2_grpc.py deleted file mode 100644 index 3320d48f6..000000000 --- a/google/ads/google_ads/v1/proto/services/ad_group_audience_view_service_pb2_grpc.py +++ /dev/null @@ -1,51 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -import grpc - -from google.ads.google_ads.v1.proto.resources import ad_group_audience_view_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_ad__group__audience__view__pb2 -from google.ads.google_ads.v1.proto.services import ad_group_audience_view_service_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_ad__group__audience__view__service__pb2 - - -class AdGroupAudienceViewServiceStub(object): - """Proto file describing the AdGroup Audience View service. - - Service to manage ad group audience views. - """ - - def __init__(self, channel): - """Constructor. - - Args: - channel: A grpc.Channel. - """ - self.GetAdGroupAudienceView = channel.unary_unary( - '/google.ads.googleads.v1.services.AdGroupAudienceViewService/GetAdGroupAudienceView', - request_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_ad__group__audience__view__service__pb2.GetAdGroupAudienceViewRequest.SerializeToString, - response_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_ad__group__audience__view__pb2.AdGroupAudienceView.FromString, - ) - - -class AdGroupAudienceViewServiceServicer(object): - """Proto file describing the AdGroup Audience View service. - - Service to manage ad group audience views. - """ - - def GetAdGroupAudienceView(self, request, context): - """Returns the requested ad group audience view in full detail. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - -def add_AdGroupAudienceViewServiceServicer_to_server(servicer, server): - rpc_method_handlers = { - 'GetAdGroupAudienceView': grpc.unary_unary_rpc_method_handler( - servicer.GetAdGroupAudienceView, - request_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_ad__group__audience__view__service__pb2.GetAdGroupAudienceViewRequest.FromString, - response_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_ad__group__audience__view__pb2.AdGroupAudienceView.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'google.ads.googleads.v1.services.AdGroupAudienceViewService', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) diff --git a/google/ads/google_ads/v1/proto/services/ad_group_bid_modifier_service_pb2.py b/google/ads/google_ads/v1/proto/services/ad_group_bid_modifier_service_pb2.py deleted file mode 100644 index e4f9bec92..000000000 --- a/google/ads/google_ads/v1/proto/services/ad_group_bid_modifier_service_pb2.py +++ /dev/null @@ -1,406 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/services/ad_group_bid_modifier_service.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.ads.google_ads.v1.proto.resources import ad_group_bid_modifier_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_ad__group__bid__modifier__pb2 -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 -from google.protobuf import field_mask_pb2 as google_dot_protobuf_dot_field__mask__pb2 -from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 -from google.rpc import status_pb2 as google_dot_rpc_dot_status__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/services/ad_group_bid_modifier_service.proto', - package='google.ads.googleads.v1.services', - syntax='proto3', - serialized_options=_b('\n$com.google.ads.googleads.v1.servicesB\036AdGroupBidModifierServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v1/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V1.Services\312\002 Google\\Ads\\GoogleAds\\V1\\Services\352\002$Google::Ads::GoogleAds::V1::Services'), - serialized_pb=_b('\nJgoogle/ads/googleads_v1/proto/services/ad_group_bid_modifier_service.proto\x12 google.ads.googleads.v1.services\x1a\x43google/ads/googleads_v1/proto/resources/ad_group_bid_modifier.proto\x1a\x1cgoogle/api/annotations.proto\x1a google/protobuf/field_mask.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x17google/rpc/status.proto\"5\n\x1cGetAdGroupBidModifierRequest\x12\x15\n\rresource_name\x18\x01 \x01(\t\"\xba\x01\n MutateAdGroupBidModifiersRequest\x12\x13\n\x0b\x63ustomer_id\x18\x01 \x01(\t\x12Q\n\noperations\x18\x02 \x03(\x0b\x32=.google.ads.googleads.v1.services.AdGroupBidModifierOperation\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\"\xff\x01\n\x1b\x41\x64GroupBidModifierOperation\x12/\n\x0bupdate_mask\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12G\n\x06\x63reate\x18\x01 \x01(\x0b\x32\x35.google.ads.googleads.v1.resources.AdGroupBidModifierH\x00\x12G\n\x06update\x18\x02 \x01(\x0b\x32\x35.google.ads.googleads.v1.resources.AdGroupBidModifierH\x00\x12\x10\n\x06remove\x18\x03 \x01(\tH\x00\x42\x0b\n\toperation\"\xa9\x01\n!MutateAdGroupBidModifiersResponse\x12\x31\n\x15partial_failure_error\x18\x03 \x01(\x0b\x32\x12.google.rpc.Status\x12Q\n\x07results\x18\x02 \x03(\x0b\x32@.google.ads.googleads.v1.services.MutateAdGroupBidModifierResult\"7\n\x1eMutateAdGroupBidModifierResult\x12\x15\n\rresource_name\x18\x01 \x01(\t2\xd7\x03\n\x19\x41\x64GroupBidModifierService\x12\xcd\x01\n\x15GetAdGroupBidModifier\x12>.google.ads.googleads.v1.services.GetAdGroupBidModifierRequest\x1a\x35.google.ads.googleads.v1.resources.AdGroupBidModifier\"=\x82\xd3\xe4\x93\x02\x37\x12\x35/v1/{resource_name=customers/*/adGroupBidModifiers/*}\x12\xe9\x01\n\x19MutateAdGroupBidModifiers\x12\x42.google.ads.googleads.v1.services.MutateAdGroupBidModifiersRequest\x1a\x43.google.ads.googleads.v1.services.MutateAdGroupBidModifiersResponse\"C\x82\xd3\xe4\x93\x02=\"8/v1/customers/{customer_id=*}/adGroupBidModifiers:mutate:\x01*B\x85\x02\n$com.google.ads.googleads.v1.servicesB\x1e\x41\x64GroupBidModifierServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v1/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V1.Services\xca\x02 Google\\Ads\\GoogleAds\\V1\\Services\xea\x02$Google::Ads::GoogleAds::V1::Servicesb\x06proto3') - , - dependencies=[google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_ad__group__bid__modifier__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_protobuf_dot_field__mask__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_rpc_dot_status__pb2.DESCRIPTOR,]) - - - - -_GETADGROUPBIDMODIFIERREQUEST = _descriptor.Descriptor( - name='GetAdGroupBidModifierRequest', - full_name='google.ads.googleads.v1.services.GetAdGroupBidModifierRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.services.GetAdGroupBidModifierRequest.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=302, - serialized_end=355, -) - - -_MUTATEADGROUPBIDMODIFIERSREQUEST = _descriptor.Descriptor( - name='MutateAdGroupBidModifiersRequest', - full_name='google.ads.googleads.v1.services.MutateAdGroupBidModifiersRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='customer_id', full_name='google.ads.googleads.v1.services.MutateAdGroupBidModifiersRequest.customer_id', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='operations', full_name='google.ads.googleads.v1.services.MutateAdGroupBidModifiersRequest.operations', index=1, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='partial_failure', full_name='google.ads.googleads.v1.services.MutateAdGroupBidModifiersRequest.partial_failure', index=2, - number=3, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='validate_only', full_name='google.ads.googleads.v1.services.MutateAdGroupBidModifiersRequest.validate_only', index=3, - number=4, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=358, - serialized_end=544, -) - - -_ADGROUPBIDMODIFIEROPERATION = _descriptor.Descriptor( - name='AdGroupBidModifierOperation', - full_name='google.ads.googleads.v1.services.AdGroupBidModifierOperation', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='update_mask', full_name='google.ads.googleads.v1.services.AdGroupBidModifierOperation.update_mask', index=0, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='create', full_name='google.ads.googleads.v1.services.AdGroupBidModifierOperation.create', index=1, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='update', full_name='google.ads.googleads.v1.services.AdGroupBidModifierOperation.update', index=2, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='remove', full_name='google.ads.googleads.v1.services.AdGroupBidModifierOperation.remove', index=3, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='operation', full_name='google.ads.googleads.v1.services.AdGroupBidModifierOperation.operation', - index=0, containing_type=None, fields=[]), - ], - serialized_start=547, - serialized_end=802, -) - - -_MUTATEADGROUPBIDMODIFIERSRESPONSE = _descriptor.Descriptor( - name='MutateAdGroupBidModifiersResponse', - full_name='google.ads.googleads.v1.services.MutateAdGroupBidModifiersResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='partial_failure_error', full_name='google.ads.googleads.v1.services.MutateAdGroupBidModifiersResponse.partial_failure_error', index=0, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='results', full_name='google.ads.googleads.v1.services.MutateAdGroupBidModifiersResponse.results', index=1, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=805, - serialized_end=974, -) - - -_MUTATEADGROUPBIDMODIFIERRESULT = _descriptor.Descriptor( - name='MutateAdGroupBidModifierResult', - full_name='google.ads.googleads.v1.services.MutateAdGroupBidModifierResult', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.services.MutateAdGroupBidModifierResult.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=976, - serialized_end=1031, -) - -_MUTATEADGROUPBIDMODIFIERSREQUEST.fields_by_name['operations'].message_type = _ADGROUPBIDMODIFIEROPERATION -_ADGROUPBIDMODIFIEROPERATION.fields_by_name['update_mask'].message_type = google_dot_protobuf_dot_field__mask__pb2._FIELDMASK -_ADGROUPBIDMODIFIEROPERATION.fields_by_name['create'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_ad__group__bid__modifier__pb2._ADGROUPBIDMODIFIER -_ADGROUPBIDMODIFIEROPERATION.fields_by_name['update'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_ad__group__bid__modifier__pb2._ADGROUPBIDMODIFIER -_ADGROUPBIDMODIFIEROPERATION.oneofs_by_name['operation'].fields.append( - _ADGROUPBIDMODIFIEROPERATION.fields_by_name['create']) -_ADGROUPBIDMODIFIEROPERATION.fields_by_name['create'].containing_oneof = _ADGROUPBIDMODIFIEROPERATION.oneofs_by_name['operation'] -_ADGROUPBIDMODIFIEROPERATION.oneofs_by_name['operation'].fields.append( - _ADGROUPBIDMODIFIEROPERATION.fields_by_name['update']) -_ADGROUPBIDMODIFIEROPERATION.fields_by_name['update'].containing_oneof = _ADGROUPBIDMODIFIEROPERATION.oneofs_by_name['operation'] -_ADGROUPBIDMODIFIEROPERATION.oneofs_by_name['operation'].fields.append( - _ADGROUPBIDMODIFIEROPERATION.fields_by_name['remove']) -_ADGROUPBIDMODIFIEROPERATION.fields_by_name['remove'].containing_oneof = _ADGROUPBIDMODIFIEROPERATION.oneofs_by_name['operation'] -_MUTATEADGROUPBIDMODIFIERSRESPONSE.fields_by_name['partial_failure_error'].message_type = google_dot_rpc_dot_status__pb2._STATUS -_MUTATEADGROUPBIDMODIFIERSRESPONSE.fields_by_name['results'].message_type = _MUTATEADGROUPBIDMODIFIERRESULT -DESCRIPTOR.message_types_by_name['GetAdGroupBidModifierRequest'] = _GETADGROUPBIDMODIFIERREQUEST -DESCRIPTOR.message_types_by_name['MutateAdGroupBidModifiersRequest'] = _MUTATEADGROUPBIDMODIFIERSREQUEST -DESCRIPTOR.message_types_by_name['AdGroupBidModifierOperation'] = _ADGROUPBIDMODIFIEROPERATION -DESCRIPTOR.message_types_by_name['MutateAdGroupBidModifiersResponse'] = _MUTATEADGROUPBIDMODIFIERSRESPONSE -DESCRIPTOR.message_types_by_name['MutateAdGroupBidModifierResult'] = _MUTATEADGROUPBIDMODIFIERRESULT -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -GetAdGroupBidModifierRequest = _reflection.GeneratedProtocolMessageType('GetAdGroupBidModifierRequest', (_message.Message,), dict( - DESCRIPTOR = _GETADGROUPBIDMODIFIERREQUEST, - __module__ = 'google.ads.googleads_v1.proto.services.ad_group_bid_modifier_service_pb2' - , - __doc__ = """Request message for - [AdGroupBidModifierService.GetAdGroupBidModifier][google.ads.googleads.v1.services.AdGroupBidModifierService.GetAdGroupBidModifier]. - - - Attributes: - resource_name: - The resource name of the ad group bid modifier to fetch. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.GetAdGroupBidModifierRequest) - )) -_sym_db.RegisterMessage(GetAdGroupBidModifierRequest) - -MutateAdGroupBidModifiersRequest = _reflection.GeneratedProtocolMessageType('MutateAdGroupBidModifiersRequest', (_message.Message,), dict( - DESCRIPTOR = _MUTATEADGROUPBIDMODIFIERSREQUEST, - __module__ = 'google.ads.googleads_v1.proto.services.ad_group_bid_modifier_service_pb2' - , - __doc__ = """Request message for - [AdGroupBidModifierService.MutateAdGroupBidModifiers][google.ads.googleads.v1.services.AdGroupBidModifierService.MutateAdGroupBidModifiers]. - - - Attributes: - customer_id: - ID of the customer whose ad group bid modifiers are being - modified. - operations: - The list of operations to perform on individual ad group bid - modifiers. - partial_failure: - If true, successful operations will be carried out and invalid - operations will return errors. If false, all operations will - be carried out in one transaction if and only if they are all - valid. Default is false. - validate_only: - If true, the request is validated but not executed. Only - errors are returned, not results. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.MutateAdGroupBidModifiersRequest) - )) -_sym_db.RegisterMessage(MutateAdGroupBidModifiersRequest) - -AdGroupBidModifierOperation = _reflection.GeneratedProtocolMessageType('AdGroupBidModifierOperation', (_message.Message,), dict( - DESCRIPTOR = _ADGROUPBIDMODIFIEROPERATION, - __module__ = 'google.ads.googleads_v1.proto.services.ad_group_bid_modifier_service_pb2' - , - __doc__ = """A single operation (create, remove, update) on an ad group bid modifier. - - - Attributes: - update_mask: - FieldMask that determines which resource fields are modified - in an update. - operation: - The mutate operation. - create: - Create operation: No resource name is expected for the new ad - group bid modifier. - update: - Update operation: The ad group bid modifier is expected to - have a valid resource name. - remove: - Remove operation: A resource name for the removed ad group bid - modifier is expected, in this format: ``customers/{customer_i - d}/adGroupBidModifiers/{ad_group_id}~{criterion_id}`` - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.AdGroupBidModifierOperation) - )) -_sym_db.RegisterMessage(AdGroupBidModifierOperation) - -MutateAdGroupBidModifiersResponse = _reflection.GeneratedProtocolMessageType('MutateAdGroupBidModifiersResponse', (_message.Message,), dict( - DESCRIPTOR = _MUTATEADGROUPBIDMODIFIERSRESPONSE, - __module__ = 'google.ads.googleads_v1.proto.services.ad_group_bid_modifier_service_pb2' - , - __doc__ = """Response message for ad group bid modifiers mutate. - - - Attributes: - partial_failure_error: - Errors that pertain to operation failures in the partial - failure mode. Returned only when partial\_failure = true and - all errors occur inside the operations. If any errors occur - outside the operations (e.g. auth errors), we return an RPC - level error. - results: - All results for the mutate. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.MutateAdGroupBidModifiersResponse) - )) -_sym_db.RegisterMessage(MutateAdGroupBidModifiersResponse) - -MutateAdGroupBidModifierResult = _reflection.GeneratedProtocolMessageType('MutateAdGroupBidModifierResult', (_message.Message,), dict( - DESCRIPTOR = _MUTATEADGROUPBIDMODIFIERRESULT, - __module__ = 'google.ads.googleads_v1.proto.services.ad_group_bid_modifier_service_pb2' - , - __doc__ = """The result for the criterion mutate. - - - Attributes: - resource_name: - Returned for successful operations. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.MutateAdGroupBidModifierResult) - )) -_sym_db.RegisterMessage(MutateAdGroupBidModifierResult) - - -DESCRIPTOR._options = None - -_ADGROUPBIDMODIFIERSERVICE = _descriptor.ServiceDescriptor( - name='AdGroupBidModifierService', - full_name='google.ads.googleads.v1.services.AdGroupBidModifierService', - file=DESCRIPTOR, - index=0, - serialized_options=None, - serialized_start=1034, - serialized_end=1505, - methods=[ - _descriptor.MethodDescriptor( - name='GetAdGroupBidModifier', - full_name='google.ads.googleads.v1.services.AdGroupBidModifierService.GetAdGroupBidModifier', - index=0, - containing_service=None, - input_type=_GETADGROUPBIDMODIFIERREQUEST, - output_type=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_ad__group__bid__modifier__pb2._ADGROUPBIDMODIFIER, - serialized_options=_b('\202\323\344\223\0027\0225/v1/{resource_name=customers/*/adGroupBidModifiers/*}'), - ), - _descriptor.MethodDescriptor( - name='MutateAdGroupBidModifiers', - full_name='google.ads.googleads.v1.services.AdGroupBidModifierService.MutateAdGroupBidModifiers', - index=1, - containing_service=None, - input_type=_MUTATEADGROUPBIDMODIFIERSREQUEST, - output_type=_MUTATEADGROUPBIDMODIFIERSRESPONSE, - serialized_options=_b('\202\323\344\223\002=\"8/v1/customers/{customer_id=*}/adGroupBidModifiers:mutate:\001*'), - ), -]) -_sym_db.RegisterServiceDescriptor(_ADGROUPBIDMODIFIERSERVICE) - -DESCRIPTOR.services_by_name['AdGroupBidModifierService'] = _ADGROUPBIDMODIFIERSERVICE - -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/services/ad_group_bid_modifier_service_pb2_grpc.py b/google/ads/google_ads/v1/proto/services/ad_group_bid_modifier_service_pb2_grpc.py deleted file mode 100644 index 8b7662216..000000000 --- a/google/ads/google_ads/v1/proto/services/ad_group_bid_modifier_service_pb2_grpc.py +++ /dev/null @@ -1,69 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -import grpc - -from google.ads.google_ads.v1.proto.resources import ad_group_bid_modifier_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_ad__group__bid__modifier__pb2 -from google.ads.google_ads.v1.proto.services import ad_group_bid_modifier_service_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_ad__group__bid__modifier__service__pb2 - - -class AdGroupBidModifierServiceStub(object): - """Proto file describing the Ad Group Bid Modifier service. - - Service to manage ad group bid modifiers. - """ - - def __init__(self, channel): - """Constructor. - - Args: - channel: A grpc.Channel. - """ - self.GetAdGroupBidModifier = channel.unary_unary( - '/google.ads.googleads.v1.services.AdGroupBidModifierService/GetAdGroupBidModifier', - request_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_ad__group__bid__modifier__service__pb2.GetAdGroupBidModifierRequest.SerializeToString, - response_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_ad__group__bid__modifier__pb2.AdGroupBidModifier.FromString, - ) - self.MutateAdGroupBidModifiers = channel.unary_unary( - '/google.ads.googleads.v1.services.AdGroupBidModifierService/MutateAdGroupBidModifiers', - request_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_ad__group__bid__modifier__service__pb2.MutateAdGroupBidModifiersRequest.SerializeToString, - response_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_ad__group__bid__modifier__service__pb2.MutateAdGroupBidModifiersResponse.FromString, - ) - - -class AdGroupBidModifierServiceServicer(object): - """Proto file describing the Ad Group Bid Modifier service. - - Service to manage ad group bid modifiers. - """ - - def GetAdGroupBidModifier(self, request, context): - """Returns the requested ad group bid modifier in full detail. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def MutateAdGroupBidModifiers(self, request, context): - """Creates, updates, or removes ad group bid modifiers. - Operation statuses are returned. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - -def add_AdGroupBidModifierServiceServicer_to_server(servicer, server): - rpc_method_handlers = { - 'GetAdGroupBidModifier': grpc.unary_unary_rpc_method_handler( - servicer.GetAdGroupBidModifier, - request_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_ad__group__bid__modifier__service__pb2.GetAdGroupBidModifierRequest.FromString, - response_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_ad__group__bid__modifier__pb2.AdGroupBidModifier.SerializeToString, - ), - 'MutateAdGroupBidModifiers': grpc.unary_unary_rpc_method_handler( - servicer.MutateAdGroupBidModifiers, - request_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_ad__group__bid__modifier__service__pb2.MutateAdGroupBidModifiersRequest.FromString, - response_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_ad__group__bid__modifier__service__pb2.MutateAdGroupBidModifiersResponse.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'google.ads.googleads.v1.services.AdGroupBidModifierService', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) diff --git a/google/ads/google_ads/v1/proto/services/ad_group_criterion_label_service_pb2.py b/google/ads/google_ads/v1/proto/services/ad_group_criterion_label_service_pb2.py deleted file mode 100644 index a6d6074ec..000000000 --- a/google/ads/google_ads/v1/proto/services/ad_group_criterion_label_service_pb2.py +++ /dev/null @@ -1,381 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/services/ad_group_criterion_label_service.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.ads.google_ads.v1.proto.resources import ad_group_criterion_label_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_ad__group__criterion__label__pb2 -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 -from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 -from google.rpc import status_pb2 as google_dot_rpc_dot_status__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/services/ad_group_criterion_label_service.proto', - package='google.ads.googleads.v1.services', - syntax='proto3', - serialized_options=_b('\n$com.google.ads.googleads.v1.servicesB!AdGroupCriterionLabelServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v1/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V1.Services\312\002 Google\\Ads\\GoogleAds\\V1\\Services\352\002$Google::Ads::GoogleAds::V1::Services'), - serialized_pb=_b('\nMgoogle/ads/googleads_v1/proto/services/ad_group_criterion_label_service.proto\x12 google.ads.googleads.v1.services\x1a\x46google/ads/googleads_v1/proto/resources/ad_group_criterion_label.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x17google/rpc/status.proto\"8\n\x1fGetAdGroupCriterionLabelRequest\x12\x15\n\rresource_name\x18\x01 \x01(\t\"\xc0\x01\n#MutateAdGroupCriterionLabelsRequest\x12\x13\n\x0b\x63ustomer_id\x18\x01 \x01(\t\x12T\n\noperations\x18\x02 \x03(\x0b\x32@.google.ads.googleads.v1.services.AdGroupCriterionLabelOperation\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\"\x8b\x01\n\x1e\x41\x64GroupCriterionLabelOperation\x12J\n\x06\x63reate\x18\x01 \x01(\x0b\x32\x38.google.ads.googleads.v1.resources.AdGroupCriterionLabelH\x00\x12\x10\n\x06remove\x18\x02 \x01(\tH\x00\x42\x0b\n\toperation\"\xaf\x01\n$MutateAdGroupCriterionLabelsResponse\x12\x31\n\x15partial_failure_error\x18\x03 \x01(\x0b\x32\x12.google.rpc.Status\x12T\n\x07results\x18\x02 \x03(\x0b\x32\x43.google.ads.googleads.v1.services.MutateAdGroupCriterionLabelResult\":\n!MutateAdGroupCriterionLabelResult\x12\x15\n\rresource_name\x18\x01 \x01(\t2\xf2\x03\n\x1c\x41\x64GroupCriterionLabelService\x12\xd9\x01\n\x18GetAdGroupCriterionLabel\x12\x41.google.ads.googleads.v1.services.GetAdGroupCriterionLabelRequest\x1a\x38.google.ads.googleads.v1.resources.AdGroupCriterionLabel\"@\x82\xd3\xe4\x93\x02:\x12\x38/v1/{resource_name=customers/*/adGroupCriterionLabels/*}\x12\xf5\x01\n\x1cMutateAdGroupCriterionLabels\x12\x45.google.ads.googleads.v1.services.MutateAdGroupCriterionLabelsRequest\x1a\x46.google.ads.googleads.v1.services.MutateAdGroupCriterionLabelsResponse\"F\x82\xd3\xe4\x93\x02@\";/v1/customers/{customer_id=*}/adGroupCriterionLabels:mutate:\x01*B\x88\x02\n$com.google.ads.googleads.v1.servicesB!AdGroupCriterionLabelServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v1/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V1.Services\xca\x02 Google\\Ads\\GoogleAds\\V1\\Services\xea\x02$Google::Ads::GoogleAds::V1::Servicesb\x06proto3') - , - dependencies=[google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_ad__group__criterion__label__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_rpc_dot_status__pb2.DESCRIPTOR,]) - - - - -_GETADGROUPCRITERIONLABELREQUEST = _descriptor.Descriptor( - name='GetAdGroupCriterionLabelRequest', - full_name='google.ads.googleads.v1.services.GetAdGroupCriterionLabelRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.services.GetAdGroupCriterionLabelRequest.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=274, - serialized_end=330, -) - - -_MUTATEADGROUPCRITERIONLABELSREQUEST = _descriptor.Descriptor( - name='MutateAdGroupCriterionLabelsRequest', - full_name='google.ads.googleads.v1.services.MutateAdGroupCriterionLabelsRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='customer_id', full_name='google.ads.googleads.v1.services.MutateAdGroupCriterionLabelsRequest.customer_id', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='operations', full_name='google.ads.googleads.v1.services.MutateAdGroupCriterionLabelsRequest.operations', index=1, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='partial_failure', full_name='google.ads.googleads.v1.services.MutateAdGroupCriterionLabelsRequest.partial_failure', index=2, - number=3, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='validate_only', full_name='google.ads.googleads.v1.services.MutateAdGroupCriterionLabelsRequest.validate_only', index=3, - number=4, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=333, - serialized_end=525, -) - - -_ADGROUPCRITERIONLABELOPERATION = _descriptor.Descriptor( - name='AdGroupCriterionLabelOperation', - full_name='google.ads.googleads.v1.services.AdGroupCriterionLabelOperation', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='create', full_name='google.ads.googleads.v1.services.AdGroupCriterionLabelOperation.create', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='remove', full_name='google.ads.googleads.v1.services.AdGroupCriterionLabelOperation.remove', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='operation', full_name='google.ads.googleads.v1.services.AdGroupCriterionLabelOperation.operation', - index=0, containing_type=None, fields=[]), - ], - serialized_start=528, - serialized_end=667, -) - - -_MUTATEADGROUPCRITERIONLABELSRESPONSE = _descriptor.Descriptor( - name='MutateAdGroupCriterionLabelsResponse', - full_name='google.ads.googleads.v1.services.MutateAdGroupCriterionLabelsResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='partial_failure_error', full_name='google.ads.googleads.v1.services.MutateAdGroupCriterionLabelsResponse.partial_failure_error', index=0, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='results', full_name='google.ads.googleads.v1.services.MutateAdGroupCriterionLabelsResponse.results', index=1, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=670, - serialized_end=845, -) - - -_MUTATEADGROUPCRITERIONLABELRESULT = _descriptor.Descriptor( - name='MutateAdGroupCriterionLabelResult', - full_name='google.ads.googleads.v1.services.MutateAdGroupCriterionLabelResult', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.services.MutateAdGroupCriterionLabelResult.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=847, - serialized_end=905, -) - -_MUTATEADGROUPCRITERIONLABELSREQUEST.fields_by_name['operations'].message_type = _ADGROUPCRITERIONLABELOPERATION -_ADGROUPCRITERIONLABELOPERATION.fields_by_name['create'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_ad__group__criterion__label__pb2._ADGROUPCRITERIONLABEL -_ADGROUPCRITERIONLABELOPERATION.oneofs_by_name['operation'].fields.append( - _ADGROUPCRITERIONLABELOPERATION.fields_by_name['create']) -_ADGROUPCRITERIONLABELOPERATION.fields_by_name['create'].containing_oneof = _ADGROUPCRITERIONLABELOPERATION.oneofs_by_name['operation'] -_ADGROUPCRITERIONLABELOPERATION.oneofs_by_name['operation'].fields.append( - _ADGROUPCRITERIONLABELOPERATION.fields_by_name['remove']) -_ADGROUPCRITERIONLABELOPERATION.fields_by_name['remove'].containing_oneof = _ADGROUPCRITERIONLABELOPERATION.oneofs_by_name['operation'] -_MUTATEADGROUPCRITERIONLABELSRESPONSE.fields_by_name['partial_failure_error'].message_type = google_dot_rpc_dot_status__pb2._STATUS -_MUTATEADGROUPCRITERIONLABELSRESPONSE.fields_by_name['results'].message_type = _MUTATEADGROUPCRITERIONLABELRESULT -DESCRIPTOR.message_types_by_name['GetAdGroupCriterionLabelRequest'] = _GETADGROUPCRITERIONLABELREQUEST -DESCRIPTOR.message_types_by_name['MutateAdGroupCriterionLabelsRequest'] = _MUTATEADGROUPCRITERIONLABELSREQUEST -DESCRIPTOR.message_types_by_name['AdGroupCriterionLabelOperation'] = _ADGROUPCRITERIONLABELOPERATION -DESCRIPTOR.message_types_by_name['MutateAdGroupCriterionLabelsResponse'] = _MUTATEADGROUPCRITERIONLABELSRESPONSE -DESCRIPTOR.message_types_by_name['MutateAdGroupCriterionLabelResult'] = _MUTATEADGROUPCRITERIONLABELRESULT -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -GetAdGroupCriterionLabelRequest = _reflection.GeneratedProtocolMessageType('GetAdGroupCriterionLabelRequest', (_message.Message,), dict( - DESCRIPTOR = _GETADGROUPCRITERIONLABELREQUEST, - __module__ = 'google.ads.googleads_v1.proto.services.ad_group_criterion_label_service_pb2' - , - __doc__ = """Request message for - [AdGroupCriterionLabelService.GetAdGroupCriterionLabel][google.ads.googleads.v1.services.AdGroupCriterionLabelService.GetAdGroupCriterionLabel]. - - - Attributes: - resource_name: - The resource name of the ad group criterion label to fetch. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.GetAdGroupCriterionLabelRequest) - )) -_sym_db.RegisterMessage(GetAdGroupCriterionLabelRequest) - -MutateAdGroupCriterionLabelsRequest = _reflection.GeneratedProtocolMessageType('MutateAdGroupCriterionLabelsRequest', (_message.Message,), dict( - DESCRIPTOR = _MUTATEADGROUPCRITERIONLABELSREQUEST, - __module__ = 'google.ads.googleads_v1.proto.services.ad_group_criterion_label_service_pb2' - , - __doc__ = """Request message for - [AdGroupCriterionLabelService.MutateAdGroupCriterionLabels][google.ads.googleads.v1.services.AdGroupCriterionLabelService.MutateAdGroupCriterionLabels]. - - - Attributes: - customer_id: - ID of the customer whose ad group criterion labels are being - modified. - operations: - The list of operations to perform on ad group criterion - labels. - partial_failure: - If true, successful operations will be carried out and invalid - operations will return errors. If false, all operations will - be carried out in one transaction if and only if they are all - valid. Default is false. - validate_only: - If true, the request is validated but not executed. Only - errors are returned, not results. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.MutateAdGroupCriterionLabelsRequest) - )) -_sym_db.RegisterMessage(MutateAdGroupCriterionLabelsRequest) - -AdGroupCriterionLabelOperation = _reflection.GeneratedProtocolMessageType('AdGroupCriterionLabelOperation', (_message.Message,), dict( - DESCRIPTOR = _ADGROUPCRITERIONLABELOPERATION, - __module__ = 'google.ads.googleads_v1.proto.services.ad_group_criterion_label_service_pb2' - , - __doc__ = """A single operation (create, remove) on an ad group criterion label. - - - Attributes: - operation: - The mutate operation. - create: - Create operation: No resource name is expected for the new ad - group label. - remove: - Remove operation: A resource name for the ad group criterion - label being removed, in this format: ``customers/{customer_id - }/adGroupCriterionLabels/{ad_group_id}~{criterion_id}~{label_i - d}`` - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.AdGroupCriterionLabelOperation) - )) -_sym_db.RegisterMessage(AdGroupCriterionLabelOperation) - -MutateAdGroupCriterionLabelsResponse = _reflection.GeneratedProtocolMessageType('MutateAdGroupCriterionLabelsResponse', (_message.Message,), dict( - DESCRIPTOR = _MUTATEADGROUPCRITERIONLABELSRESPONSE, - __module__ = 'google.ads.googleads_v1.proto.services.ad_group_criterion_label_service_pb2' - , - __doc__ = """Response message for an ad group criterion labels mutate. - - - Attributes: - partial_failure_error: - Errors that pertain to operation failures in the partial - failure mode. Returned only when partial\_failure = true and - all errors occur inside the operations. If any errors occur - outside the operations (e.g. auth errors), we return an RPC - level error. - results: - All results for the mutate. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.MutateAdGroupCriterionLabelsResponse) - )) -_sym_db.RegisterMessage(MutateAdGroupCriterionLabelsResponse) - -MutateAdGroupCriterionLabelResult = _reflection.GeneratedProtocolMessageType('MutateAdGroupCriterionLabelResult', (_message.Message,), dict( - DESCRIPTOR = _MUTATEADGROUPCRITERIONLABELRESULT, - __module__ = 'google.ads.googleads_v1.proto.services.ad_group_criterion_label_service_pb2' - , - __doc__ = """The result for an ad group criterion label mutate. - - - Attributes: - resource_name: - Returned for successful operations. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.MutateAdGroupCriterionLabelResult) - )) -_sym_db.RegisterMessage(MutateAdGroupCriterionLabelResult) - - -DESCRIPTOR._options = None - -_ADGROUPCRITERIONLABELSERVICE = _descriptor.ServiceDescriptor( - name='AdGroupCriterionLabelService', - full_name='google.ads.googleads.v1.services.AdGroupCriterionLabelService', - file=DESCRIPTOR, - index=0, - serialized_options=None, - serialized_start=908, - serialized_end=1406, - methods=[ - _descriptor.MethodDescriptor( - name='GetAdGroupCriterionLabel', - full_name='google.ads.googleads.v1.services.AdGroupCriterionLabelService.GetAdGroupCriterionLabel', - index=0, - containing_service=None, - input_type=_GETADGROUPCRITERIONLABELREQUEST, - output_type=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_ad__group__criterion__label__pb2._ADGROUPCRITERIONLABEL, - serialized_options=_b('\202\323\344\223\002:\0228/v1/{resource_name=customers/*/adGroupCriterionLabels/*}'), - ), - _descriptor.MethodDescriptor( - name='MutateAdGroupCriterionLabels', - full_name='google.ads.googleads.v1.services.AdGroupCriterionLabelService.MutateAdGroupCriterionLabels', - index=1, - containing_service=None, - input_type=_MUTATEADGROUPCRITERIONLABELSREQUEST, - output_type=_MUTATEADGROUPCRITERIONLABELSRESPONSE, - serialized_options=_b('\202\323\344\223\002@\";/v1/customers/{customer_id=*}/adGroupCriterionLabels:mutate:\001*'), - ), -]) -_sym_db.RegisterServiceDescriptor(_ADGROUPCRITERIONLABELSERVICE) - -DESCRIPTOR.services_by_name['AdGroupCriterionLabelService'] = _ADGROUPCRITERIONLABELSERVICE - -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/services/ad_group_criterion_service_pb2.py b/google/ads/google_ads/v1/proto/services/ad_group_criterion_service_pb2.py deleted file mode 100644 index 431727e8f..000000000 --- a/google/ads/google_ads/v1/proto/services/ad_group_criterion_service_pb2.py +++ /dev/null @@ -1,422 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/services/ad_group_criterion_service.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.ads.google_ads.v1.proto.common import policy_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_policy__pb2 -from google.ads.google_ads.v1.proto.resources import ad_group_criterion_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_ad__group__criterion__pb2 -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 -from google.protobuf import field_mask_pb2 as google_dot_protobuf_dot_field__mask__pb2 -from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 -from google.rpc import status_pb2 as google_dot_rpc_dot_status__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/services/ad_group_criterion_service.proto', - package='google.ads.googleads.v1.services', - syntax='proto3', - serialized_options=_b('\n$com.google.ads.googleads.v1.servicesB\034AdGroupCriterionServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v1/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V1.Services\312\002 Google\\Ads\\GoogleAds\\V1\\Services\352\002$Google::Ads::GoogleAds::V1::Services'), - serialized_pb=_b('\nGgoogle/ads/googleads_v1/proto/services/ad_group_criterion_service.proto\x12 google.ads.googleads.v1.services\x1a\x31google/ads/googleads_v1/proto/common/policy.proto\x1a@google/ads/googleads_v1/proto/resources/ad_group_criterion.proto\x1a\x1cgoogle/api/annotations.proto\x1a google/protobuf/field_mask.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x17google/rpc/status.proto\"3\n\x1aGetAdGroupCriterionRequest\x12\x15\n\rresource_name\x18\x01 \x01(\t\"\xb4\x01\n\x1cMutateAdGroupCriteriaRequest\x12\x13\n\x0b\x63ustomer_id\x18\x01 \x01(\t\x12O\n\noperations\x18\x02 \x03(\x0b\x32;.google.ads.googleads.v1.services.AdGroupCriterionOperation\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\"\xd3\x02\n\x19\x41\x64GroupCriterionOperation\x12/\n\x0bupdate_mask\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12X\n\x1c\x65xempt_policy_violation_keys\x18\x05 \x03(\x0b\x32\x32.google.ads.googleads.v1.common.PolicyViolationKey\x12\x45\n\x06\x63reate\x18\x01 \x01(\x0b\x32\x33.google.ads.googleads.v1.resources.AdGroupCriterionH\x00\x12\x45\n\x06update\x18\x02 \x01(\x0b\x32\x33.google.ads.googleads.v1.resources.AdGroupCriterionH\x00\x12\x10\n\x06remove\x18\x03 \x01(\tH\x00\x42\x0b\n\toperation\"\xa3\x01\n\x1dMutateAdGroupCriteriaResponse\x12\x31\n\x15partial_failure_error\x18\x03 \x01(\x0b\x32\x12.google.rpc.Status\x12O\n\x07results\x18\x02 \x03(\x0b\x32>.google.ads.googleads.v1.services.MutateAdGroupCriterionResult\"5\n\x1cMutateAdGroupCriterionResult\x12\x15\n\rresource_name\x18\x01 \x01(\t2\xbb\x03\n\x17\x41\x64GroupCriterionService\x12\xc3\x01\n\x13GetAdGroupCriterion\x12<.google.ads.googleads.v1.services.GetAdGroupCriterionRequest\x1a\x33.google.ads.googleads.v1.resources.AdGroupCriterion\"9\x82\xd3\xe4\x93\x02\x33\x12\x31/v1/{resource_name=customers/*/adGroupCriteria/*}\x12\xd9\x01\n\x15MutateAdGroupCriteria\x12>.google.ads.googleads.v1.services.MutateAdGroupCriteriaRequest\x1a?.google.ads.googleads.v1.services.MutateAdGroupCriteriaResponse\"?\x82\xd3\xe4\x93\x02\x39\"4/v1/customers/{customer_id=*}/adGroupCriteria:mutate:\x01*B\x83\x02\n$com.google.ads.googleads.v1.servicesB\x1c\x41\x64GroupCriterionServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v1/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V1.Services\xca\x02 Google\\Ads\\GoogleAds\\V1\\Services\xea\x02$Google::Ads::GoogleAds::V1::Servicesb\x06proto3') - , - dependencies=[google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_policy__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_ad__group__criterion__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_protobuf_dot_field__mask__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_rpc_dot_status__pb2.DESCRIPTOR,]) - - - - -_GETADGROUPCRITERIONREQUEST = _descriptor.Descriptor( - name='GetAdGroupCriterionRequest', - full_name='google.ads.googleads.v1.services.GetAdGroupCriterionRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.services.GetAdGroupCriterionRequest.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=347, - serialized_end=398, -) - - -_MUTATEADGROUPCRITERIAREQUEST = _descriptor.Descriptor( - name='MutateAdGroupCriteriaRequest', - full_name='google.ads.googleads.v1.services.MutateAdGroupCriteriaRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='customer_id', full_name='google.ads.googleads.v1.services.MutateAdGroupCriteriaRequest.customer_id', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='operations', full_name='google.ads.googleads.v1.services.MutateAdGroupCriteriaRequest.operations', index=1, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='partial_failure', full_name='google.ads.googleads.v1.services.MutateAdGroupCriteriaRequest.partial_failure', index=2, - number=3, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='validate_only', full_name='google.ads.googleads.v1.services.MutateAdGroupCriteriaRequest.validate_only', index=3, - number=4, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=401, - serialized_end=581, -) - - -_ADGROUPCRITERIONOPERATION = _descriptor.Descriptor( - name='AdGroupCriterionOperation', - full_name='google.ads.googleads.v1.services.AdGroupCriterionOperation', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='update_mask', full_name='google.ads.googleads.v1.services.AdGroupCriterionOperation.update_mask', index=0, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='exempt_policy_violation_keys', full_name='google.ads.googleads.v1.services.AdGroupCriterionOperation.exempt_policy_violation_keys', index=1, - number=5, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='create', full_name='google.ads.googleads.v1.services.AdGroupCriterionOperation.create', index=2, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='update', full_name='google.ads.googleads.v1.services.AdGroupCriterionOperation.update', index=3, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='remove', full_name='google.ads.googleads.v1.services.AdGroupCriterionOperation.remove', index=4, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='operation', full_name='google.ads.googleads.v1.services.AdGroupCriterionOperation.operation', - index=0, containing_type=None, fields=[]), - ], - serialized_start=584, - serialized_end=923, -) - - -_MUTATEADGROUPCRITERIARESPONSE = _descriptor.Descriptor( - name='MutateAdGroupCriteriaResponse', - full_name='google.ads.googleads.v1.services.MutateAdGroupCriteriaResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='partial_failure_error', full_name='google.ads.googleads.v1.services.MutateAdGroupCriteriaResponse.partial_failure_error', index=0, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='results', full_name='google.ads.googleads.v1.services.MutateAdGroupCriteriaResponse.results', index=1, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=926, - serialized_end=1089, -) - - -_MUTATEADGROUPCRITERIONRESULT = _descriptor.Descriptor( - name='MutateAdGroupCriterionResult', - full_name='google.ads.googleads.v1.services.MutateAdGroupCriterionResult', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.services.MutateAdGroupCriterionResult.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1091, - serialized_end=1144, -) - -_MUTATEADGROUPCRITERIAREQUEST.fields_by_name['operations'].message_type = _ADGROUPCRITERIONOPERATION -_ADGROUPCRITERIONOPERATION.fields_by_name['update_mask'].message_type = google_dot_protobuf_dot_field__mask__pb2._FIELDMASK -_ADGROUPCRITERIONOPERATION.fields_by_name['exempt_policy_violation_keys'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_policy__pb2._POLICYVIOLATIONKEY -_ADGROUPCRITERIONOPERATION.fields_by_name['create'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_ad__group__criterion__pb2._ADGROUPCRITERION -_ADGROUPCRITERIONOPERATION.fields_by_name['update'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_ad__group__criterion__pb2._ADGROUPCRITERION -_ADGROUPCRITERIONOPERATION.oneofs_by_name['operation'].fields.append( - _ADGROUPCRITERIONOPERATION.fields_by_name['create']) -_ADGROUPCRITERIONOPERATION.fields_by_name['create'].containing_oneof = _ADGROUPCRITERIONOPERATION.oneofs_by_name['operation'] -_ADGROUPCRITERIONOPERATION.oneofs_by_name['operation'].fields.append( - _ADGROUPCRITERIONOPERATION.fields_by_name['update']) -_ADGROUPCRITERIONOPERATION.fields_by_name['update'].containing_oneof = _ADGROUPCRITERIONOPERATION.oneofs_by_name['operation'] -_ADGROUPCRITERIONOPERATION.oneofs_by_name['operation'].fields.append( - _ADGROUPCRITERIONOPERATION.fields_by_name['remove']) -_ADGROUPCRITERIONOPERATION.fields_by_name['remove'].containing_oneof = _ADGROUPCRITERIONOPERATION.oneofs_by_name['operation'] -_MUTATEADGROUPCRITERIARESPONSE.fields_by_name['partial_failure_error'].message_type = google_dot_rpc_dot_status__pb2._STATUS -_MUTATEADGROUPCRITERIARESPONSE.fields_by_name['results'].message_type = _MUTATEADGROUPCRITERIONRESULT -DESCRIPTOR.message_types_by_name['GetAdGroupCriterionRequest'] = _GETADGROUPCRITERIONREQUEST -DESCRIPTOR.message_types_by_name['MutateAdGroupCriteriaRequest'] = _MUTATEADGROUPCRITERIAREQUEST -DESCRIPTOR.message_types_by_name['AdGroupCriterionOperation'] = _ADGROUPCRITERIONOPERATION -DESCRIPTOR.message_types_by_name['MutateAdGroupCriteriaResponse'] = _MUTATEADGROUPCRITERIARESPONSE -DESCRIPTOR.message_types_by_name['MutateAdGroupCriterionResult'] = _MUTATEADGROUPCRITERIONRESULT -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -GetAdGroupCriterionRequest = _reflection.GeneratedProtocolMessageType('GetAdGroupCriterionRequest', (_message.Message,), dict( - DESCRIPTOR = _GETADGROUPCRITERIONREQUEST, - __module__ = 'google.ads.googleads_v1.proto.services.ad_group_criterion_service_pb2' - , - __doc__ = """Request message for - [AdGroupCriterionService.GetAdGroupCriterion][google.ads.googleads.v1.services.AdGroupCriterionService.GetAdGroupCriterion]. - - - Attributes: - resource_name: - The resource name of the criterion to fetch. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.GetAdGroupCriterionRequest) - )) -_sym_db.RegisterMessage(GetAdGroupCriterionRequest) - -MutateAdGroupCriteriaRequest = _reflection.GeneratedProtocolMessageType('MutateAdGroupCriteriaRequest', (_message.Message,), dict( - DESCRIPTOR = _MUTATEADGROUPCRITERIAREQUEST, - __module__ = 'google.ads.googleads_v1.proto.services.ad_group_criterion_service_pb2' - , - __doc__ = """Request message for - [AdGroupCriterionService.MutateAdGroupCriteria][google.ads.googleads.v1.services.AdGroupCriterionService.MutateAdGroupCriteria]. - - - Attributes: - customer_id: - ID of the customer whose criteria are being modified. - operations: - The list of operations to perform on individual criteria. - partial_failure: - If true, successful operations will be carried out and invalid - operations will return errors. If false, all operations will - be carried out in one transaction if and only if they are all - valid. Default is false. - validate_only: - If true, the request is validated but not executed. Only - errors are returned, not results. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.MutateAdGroupCriteriaRequest) - )) -_sym_db.RegisterMessage(MutateAdGroupCriteriaRequest) - -AdGroupCriterionOperation = _reflection.GeneratedProtocolMessageType('AdGroupCriterionOperation', (_message.Message,), dict( - DESCRIPTOR = _ADGROUPCRITERIONOPERATION, - __module__ = 'google.ads.googleads_v1.proto.services.ad_group_criterion_service_pb2' - , - __doc__ = """A single operation (create, remove, update) on an ad group criterion. - - - Attributes: - update_mask: - FieldMask that determines which resource fields are modified - in an update. - exempt_policy_violation_keys: - The list of policy violation keys that should not cause a - PolicyViolationError to be reported. Not all policy violations - are exemptable, please refer to the is\_exemptible field in - the returned PolicyViolationError. Resources violating these - polices will be saved, but will not be eligible to serve. They - may begin serving at a later time due to a change in policies, - re-review of the resource, or a change in advertiser - certificates. - operation: - The mutate operation. - create: - Create operation: No resource name is expected for the new - criterion. - update: - Update operation: The criterion is expected to have a valid - resource name. - remove: - Remove operation: A resource name for the removed criterion is - expected, in this format: ``customers/{customer_id}/adGroupCr - iteria/{ad_group_id}~{criterion_id}`` - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.AdGroupCriterionOperation) - )) -_sym_db.RegisterMessage(AdGroupCriterionOperation) - -MutateAdGroupCriteriaResponse = _reflection.GeneratedProtocolMessageType('MutateAdGroupCriteriaResponse', (_message.Message,), dict( - DESCRIPTOR = _MUTATEADGROUPCRITERIARESPONSE, - __module__ = 'google.ads.googleads_v1.proto.services.ad_group_criterion_service_pb2' - , - __doc__ = """Response message for an ad group criterion mutate. - - - Attributes: - partial_failure_error: - Errors that pertain to operation failures in the partial - failure mode. Returned only when partial\_failure = true and - all errors occur inside the operations. If any errors occur - outside the operations (e.g. auth errors), we return an RPC - level error. - results: - All results for the mutate. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.MutateAdGroupCriteriaResponse) - )) -_sym_db.RegisterMessage(MutateAdGroupCriteriaResponse) - -MutateAdGroupCriterionResult = _reflection.GeneratedProtocolMessageType('MutateAdGroupCriterionResult', (_message.Message,), dict( - DESCRIPTOR = _MUTATEADGROUPCRITERIONRESULT, - __module__ = 'google.ads.googleads_v1.proto.services.ad_group_criterion_service_pb2' - , - __doc__ = """The result for the criterion mutate. - - - Attributes: - resource_name: - Returned for successful operations. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.MutateAdGroupCriterionResult) - )) -_sym_db.RegisterMessage(MutateAdGroupCriterionResult) - - -DESCRIPTOR._options = None - -_ADGROUPCRITERIONSERVICE = _descriptor.ServiceDescriptor( - name='AdGroupCriterionService', - full_name='google.ads.googleads.v1.services.AdGroupCriterionService', - file=DESCRIPTOR, - index=0, - serialized_options=None, - serialized_start=1147, - serialized_end=1590, - methods=[ - _descriptor.MethodDescriptor( - name='GetAdGroupCriterion', - full_name='google.ads.googleads.v1.services.AdGroupCriterionService.GetAdGroupCriterion', - index=0, - containing_service=None, - input_type=_GETADGROUPCRITERIONREQUEST, - output_type=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_ad__group__criterion__pb2._ADGROUPCRITERION, - serialized_options=_b('\202\323\344\223\0023\0221/v1/{resource_name=customers/*/adGroupCriteria/*}'), - ), - _descriptor.MethodDescriptor( - name='MutateAdGroupCriteria', - full_name='google.ads.googleads.v1.services.AdGroupCriterionService.MutateAdGroupCriteria', - index=1, - containing_service=None, - input_type=_MUTATEADGROUPCRITERIAREQUEST, - output_type=_MUTATEADGROUPCRITERIARESPONSE, - serialized_options=_b('\202\323\344\223\0029\"4/v1/customers/{customer_id=*}/adGroupCriteria:mutate:\001*'), - ), -]) -_sym_db.RegisterServiceDescriptor(_ADGROUPCRITERIONSERVICE) - -DESCRIPTOR.services_by_name['AdGroupCriterionService'] = _ADGROUPCRITERIONSERVICE - -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/services/ad_group_criterion_service_pb2_grpc.py b/google/ads/google_ads/v1/proto/services/ad_group_criterion_service_pb2_grpc.py deleted file mode 100644 index ab9b4e313..000000000 --- a/google/ads/google_ads/v1/proto/services/ad_group_criterion_service_pb2_grpc.py +++ /dev/null @@ -1,68 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -import grpc - -from google.ads.google_ads.v1.proto.resources import ad_group_criterion_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_ad__group__criterion__pb2 -from google.ads.google_ads.v1.proto.services import ad_group_criterion_service_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_ad__group__criterion__service__pb2 - - -class AdGroupCriterionServiceStub(object): - """Proto file describing the Ad Group Criterion service. - - Service to manage ad group criteria. - """ - - def __init__(self, channel): - """Constructor. - - Args: - channel: A grpc.Channel. - """ - self.GetAdGroupCriterion = channel.unary_unary( - '/google.ads.googleads.v1.services.AdGroupCriterionService/GetAdGroupCriterion', - request_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_ad__group__criterion__service__pb2.GetAdGroupCriterionRequest.SerializeToString, - response_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_ad__group__criterion__pb2.AdGroupCriterion.FromString, - ) - self.MutateAdGroupCriteria = channel.unary_unary( - '/google.ads.googleads.v1.services.AdGroupCriterionService/MutateAdGroupCriteria', - request_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_ad__group__criterion__service__pb2.MutateAdGroupCriteriaRequest.SerializeToString, - response_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_ad__group__criterion__service__pb2.MutateAdGroupCriteriaResponse.FromString, - ) - - -class AdGroupCriterionServiceServicer(object): - """Proto file describing the Ad Group Criterion service. - - Service to manage ad group criteria. - """ - - def GetAdGroupCriterion(self, request, context): - """Returns the requested criterion in full detail. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def MutateAdGroupCriteria(self, request, context): - """Creates, updates, or removes criteria. Operation statuses are returned. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - -def add_AdGroupCriterionServiceServicer_to_server(servicer, server): - rpc_method_handlers = { - 'GetAdGroupCriterion': grpc.unary_unary_rpc_method_handler( - servicer.GetAdGroupCriterion, - request_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_ad__group__criterion__service__pb2.GetAdGroupCriterionRequest.FromString, - response_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_ad__group__criterion__pb2.AdGroupCriterion.SerializeToString, - ), - 'MutateAdGroupCriteria': grpc.unary_unary_rpc_method_handler( - servicer.MutateAdGroupCriteria, - request_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_ad__group__criterion__service__pb2.MutateAdGroupCriteriaRequest.FromString, - response_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_ad__group__criterion__service__pb2.MutateAdGroupCriteriaResponse.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'google.ads.googleads.v1.services.AdGroupCriterionService', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) diff --git a/google/ads/google_ads/v1/proto/services/ad_group_criterion_simulation_service_pb2.py b/google/ads/google_ads/v1/proto/services/ad_group_criterion_simulation_service_pb2.py deleted file mode 100644 index 2860f8284..000000000 --- a/google/ads/google_ads/v1/proto/services/ad_group_criterion_simulation_service_pb2.py +++ /dev/null @@ -1,108 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/services/ad_group_criterion_simulation_service.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.ads.google_ads.v1.proto.resources import ad_group_criterion_simulation_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_ad__group__criterion__simulation__pb2 -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/services/ad_group_criterion_simulation_service.proto', - package='google.ads.googleads.v1.services', - syntax='proto3', - serialized_options=_b('\n$com.google.ads.googleads.v1.servicesB&AdGroupCriterionSimulationServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v1/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V1.Services\312\002 Google\\Ads\\GoogleAds\\V1\\Services\352\002$Google::Ads::GoogleAds::V1::Services'), - serialized_pb=_b('\nRgoogle/ads/googleads_v1/proto/services/ad_group_criterion_simulation_service.proto\x12 google.ads.googleads.v1.services\x1aKgoogle/ads/googleads_v1/proto/resources/ad_group_criterion_simulation.proto\x1a\x1cgoogle/api/annotations.proto\"=\n$GetAdGroupCriterionSimulationRequest\x12\x15\n\rresource_name\x18\x01 \x01(\t2\x93\x02\n!AdGroupCriterionSimulationService\x12\xed\x01\n\x1dGetAdGroupCriterionSimulation\x12\x46.google.ads.googleads.v1.services.GetAdGroupCriterionSimulationRequest\x1a=.google.ads.googleads.v1.resources.AdGroupCriterionSimulation\"E\x82\xd3\xe4\x93\x02?\x12=/v1/{resource_name=customers/*/adGroupCriterionSimulations/*}B\x8d\x02\n$com.google.ads.googleads.v1.servicesB&AdGroupCriterionSimulationServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v1/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V1.Services\xca\x02 Google\\Ads\\GoogleAds\\V1\\Services\xea\x02$Google::Ads::GoogleAds::V1::Servicesb\x06proto3') - , - dependencies=[google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_ad__group__criterion__simulation__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - - -_GETADGROUPCRITERIONSIMULATIONREQUEST = _descriptor.Descriptor( - name='GetAdGroupCriterionSimulationRequest', - full_name='google.ads.googleads.v1.services.GetAdGroupCriterionSimulationRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.services.GetAdGroupCriterionSimulationRequest.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=227, - serialized_end=288, -) - -DESCRIPTOR.message_types_by_name['GetAdGroupCriterionSimulationRequest'] = _GETADGROUPCRITERIONSIMULATIONREQUEST -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -GetAdGroupCriterionSimulationRequest = _reflection.GeneratedProtocolMessageType('GetAdGroupCriterionSimulationRequest', (_message.Message,), dict( - DESCRIPTOR = _GETADGROUPCRITERIONSIMULATIONREQUEST, - __module__ = 'google.ads.googleads_v1.proto.services.ad_group_criterion_simulation_service_pb2' - , - __doc__ = """Request message for - [AdGroupCriterionSimulationService.GetAdGroupCriterionSimulation][google.ads.googleads.v1.services.AdGroupCriterionSimulationService.GetAdGroupCriterionSimulation]. - - - Attributes: - resource_name: - The resource name of the ad group criterion simulation to - fetch. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.GetAdGroupCriterionSimulationRequest) - )) -_sym_db.RegisterMessage(GetAdGroupCriterionSimulationRequest) - - -DESCRIPTOR._options = None - -_ADGROUPCRITERIONSIMULATIONSERVICE = _descriptor.ServiceDescriptor( - name='AdGroupCriterionSimulationService', - full_name='google.ads.googleads.v1.services.AdGroupCriterionSimulationService', - file=DESCRIPTOR, - index=0, - serialized_options=None, - serialized_start=291, - serialized_end=566, - methods=[ - _descriptor.MethodDescriptor( - name='GetAdGroupCriterionSimulation', - full_name='google.ads.googleads.v1.services.AdGroupCriterionSimulationService.GetAdGroupCriterionSimulation', - index=0, - containing_service=None, - input_type=_GETADGROUPCRITERIONSIMULATIONREQUEST, - output_type=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_ad__group__criterion__simulation__pb2._ADGROUPCRITERIONSIMULATION, - serialized_options=_b('\202\323\344\223\002?\022=/v1/{resource_name=customers/*/adGroupCriterionSimulations/*}'), - ), -]) -_sym_db.RegisterServiceDescriptor(_ADGROUPCRITERIONSIMULATIONSERVICE) - -DESCRIPTOR.services_by_name['AdGroupCriterionSimulationService'] = _ADGROUPCRITERIONSIMULATIONSERVICE - -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/services/ad_group_extension_setting_service_pb2.py b/google/ads/google_ads/v1/proto/services/ad_group_extension_setting_service_pb2.py deleted file mode 100644 index 0f253726d..000000000 --- a/google/ads/google_ads/v1/proto/services/ad_group_extension_setting_service_pb2.py +++ /dev/null @@ -1,408 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/services/ad_group_extension_setting_service.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.ads.google_ads.v1.proto.resources import ad_group_extension_setting_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_ad__group__extension__setting__pb2 -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 -from google.protobuf import field_mask_pb2 as google_dot_protobuf_dot_field__mask__pb2 -from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 -from google.rpc import status_pb2 as google_dot_rpc_dot_status__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/services/ad_group_extension_setting_service.proto', - package='google.ads.googleads.v1.services', - syntax='proto3', - serialized_options=_b('\n$com.google.ads.googleads.v1.servicesB#AdGroupExtensionSettingServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v1/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V1.Services\312\002 Google\\Ads\\GoogleAds\\V1\\Services\352\002$Google::Ads::GoogleAds::V1::Services'), - serialized_pb=_b('\nOgoogle/ads/googleads_v1/proto/services/ad_group_extension_setting_service.proto\x12 google.ads.googleads.v1.services\x1aHgoogle/ads/googleads_v1/proto/resources/ad_group_extension_setting.proto\x1a\x1cgoogle/api/annotations.proto\x1a google/protobuf/field_mask.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x17google/rpc/status.proto\":\n!GetAdGroupExtensionSettingRequest\x12\x15\n\rresource_name\x18\x01 \x01(\t\"\xc4\x01\n%MutateAdGroupExtensionSettingsRequest\x12\x13\n\x0b\x63ustomer_id\x18\x01 \x01(\t\x12V\n\noperations\x18\x02 \x03(\x0b\x32\x42.google.ads.googleads.v1.services.AdGroupExtensionSettingOperation\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\"\x8e\x02\n AdGroupExtensionSettingOperation\x12/\n\x0bupdate_mask\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12L\n\x06\x63reate\x18\x01 \x01(\x0b\x32:.google.ads.googleads.v1.resources.AdGroupExtensionSettingH\x00\x12L\n\x06update\x18\x02 \x01(\x0b\x32:.google.ads.googleads.v1.resources.AdGroupExtensionSettingH\x00\x12\x10\n\x06remove\x18\x03 \x01(\tH\x00\x42\x0b\n\toperation\"\xb3\x01\n&MutateAdGroupExtensionSettingsResponse\x12\x31\n\x15partial_failure_error\x18\x03 \x01(\x0b\x32\x12.google.rpc.Status\x12V\n\x07results\x18\x02 \x03(\x0b\x32\x45.google.ads.googleads.v1.services.MutateAdGroupExtensionSettingResult\"<\n#MutateAdGroupExtensionSettingResult\x12\x15\n\rresource_name\x18\x01 \x01(\t2\x84\x04\n\x1e\x41\x64GroupExtensionSettingService\x12\xe1\x01\n\x1aGetAdGroupExtensionSetting\x12\x43.google.ads.googleads.v1.services.GetAdGroupExtensionSettingRequest\x1a:.google.ads.googleads.v1.resources.AdGroupExtensionSetting\"B\x82\xd3\xe4\x93\x02<\x12:/v1/{resource_name=customers/*/adGroupExtensionSettings/*}\x12\xfd\x01\n\x1eMutateAdGroupExtensionSettings\x12G.google.ads.googleads.v1.services.MutateAdGroupExtensionSettingsRequest\x1aH.google.ads.googleads.v1.services.MutateAdGroupExtensionSettingsResponse\"H\x82\xd3\xe4\x93\x02\x42\"=/v1/customers/{customer_id=*}/adGroupExtensionSettings:mutate:\x01*B\x8a\x02\n$com.google.ads.googleads.v1.servicesB#AdGroupExtensionSettingServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v1/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V1.Services\xca\x02 Google\\Ads\\GoogleAds\\V1\\Services\xea\x02$Google::Ads::GoogleAds::V1::Servicesb\x06proto3') - , - dependencies=[google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_ad__group__extension__setting__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_protobuf_dot_field__mask__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_rpc_dot_status__pb2.DESCRIPTOR,]) - - - - -_GETADGROUPEXTENSIONSETTINGREQUEST = _descriptor.Descriptor( - name='GetAdGroupExtensionSettingRequest', - full_name='google.ads.googleads.v1.services.GetAdGroupExtensionSettingRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.services.GetAdGroupExtensionSettingRequest.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=312, - serialized_end=370, -) - - -_MUTATEADGROUPEXTENSIONSETTINGSREQUEST = _descriptor.Descriptor( - name='MutateAdGroupExtensionSettingsRequest', - full_name='google.ads.googleads.v1.services.MutateAdGroupExtensionSettingsRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='customer_id', full_name='google.ads.googleads.v1.services.MutateAdGroupExtensionSettingsRequest.customer_id', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='operations', full_name='google.ads.googleads.v1.services.MutateAdGroupExtensionSettingsRequest.operations', index=1, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='partial_failure', full_name='google.ads.googleads.v1.services.MutateAdGroupExtensionSettingsRequest.partial_failure', index=2, - number=3, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='validate_only', full_name='google.ads.googleads.v1.services.MutateAdGroupExtensionSettingsRequest.validate_only', index=3, - number=4, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=373, - serialized_end=569, -) - - -_ADGROUPEXTENSIONSETTINGOPERATION = _descriptor.Descriptor( - name='AdGroupExtensionSettingOperation', - full_name='google.ads.googleads.v1.services.AdGroupExtensionSettingOperation', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='update_mask', full_name='google.ads.googleads.v1.services.AdGroupExtensionSettingOperation.update_mask', index=0, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='create', full_name='google.ads.googleads.v1.services.AdGroupExtensionSettingOperation.create', index=1, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='update', full_name='google.ads.googleads.v1.services.AdGroupExtensionSettingOperation.update', index=2, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='remove', full_name='google.ads.googleads.v1.services.AdGroupExtensionSettingOperation.remove', index=3, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='operation', full_name='google.ads.googleads.v1.services.AdGroupExtensionSettingOperation.operation', - index=0, containing_type=None, fields=[]), - ], - serialized_start=572, - serialized_end=842, -) - - -_MUTATEADGROUPEXTENSIONSETTINGSRESPONSE = _descriptor.Descriptor( - name='MutateAdGroupExtensionSettingsResponse', - full_name='google.ads.googleads.v1.services.MutateAdGroupExtensionSettingsResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='partial_failure_error', full_name='google.ads.googleads.v1.services.MutateAdGroupExtensionSettingsResponse.partial_failure_error', index=0, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='results', full_name='google.ads.googleads.v1.services.MutateAdGroupExtensionSettingsResponse.results', index=1, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=845, - serialized_end=1024, -) - - -_MUTATEADGROUPEXTENSIONSETTINGRESULT = _descriptor.Descriptor( - name='MutateAdGroupExtensionSettingResult', - full_name='google.ads.googleads.v1.services.MutateAdGroupExtensionSettingResult', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.services.MutateAdGroupExtensionSettingResult.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1026, - serialized_end=1086, -) - -_MUTATEADGROUPEXTENSIONSETTINGSREQUEST.fields_by_name['operations'].message_type = _ADGROUPEXTENSIONSETTINGOPERATION -_ADGROUPEXTENSIONSETTINGOPERATION.fields_by_name['update_mask'].message_type = google_dot_protobuf_dot_field__mask__pb2._FIELDMASK -_ADGROUPEXTENSIONSETTINGOPERATION.fields_by_name['create'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_ad__group__extension__setting__pb2._ADGROUPEXTENSIONSETTING -_ADGROUPEXTENSIONSETTINGOPERATION.fields_by_name['update'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_ad__group__extension__setting__pb2._ADGROUPEXTENSIONSETTING -_ADGROUPEXTENSIONSETTINGOPERATION.oneofs_by_name['operation'].fields.append( - _ADGROUPEXTENSIONSETTINGOPERATION.fields_by_name['create']) -_ADGROUPEXTENSIONSETTINGOPERATION.fields_by_name['create'].containing_oneof = _ADGROUPEXTENSIONSETTINGOPERATION.oneofs_by_name['operation'] -_ADGROUPEXTENSIONSETTINGOPERATION.oneofs_by_name['operation'].fields.append( - _ADGROUPEXTENSIONSETTINGOPERATION.fields_by_name['update']) -_ADGROUPEXTENSIONSETTINGOPERATION.fields_by_name['update'].containing_oneof = _ADGROUPEXTENSIONSETTINGOPERATION.oneofs_by_name['operation'] -_ADGROUPEXTENSIONSETTINGOPERATION.oneofs_by_name['operation'].fields.append( - _ADGROUPEXTENSIONSETTINGOPERATION.fields_by_name['remove']) -_ADGROUPEXTENSIONSETTINGOPERATION.fields_by_name['remove'].containing_oneof = _ADGROUPEXTENSIONSETTINGOPERATION.oneofs_by_name['operation'] -_MUTATEADGROUPEXTENSIONSETTINGSRESPONSE.fields_by_name['partial_failure_error'].message_type = google_dot_rpc_dot_status__pb2._STATUS -_MUTATEADGROUPEXTENSIONSETTINGSRESPONSE.fields_by_name['results'].message_type = _MUTATEADGROUPEXTENSIONSETTINGRESULT -DESCRIPTOR.message_types_by_name['GetAdGroupExtensionSettingRequest'] = _GETADGROUPEXTENSIONSETTINGREQUEST -DESCRIPTOR.message_types_by_name['MutateAdGroupExtensionSettingsRequest'] = _MUTATEADGROUPEXTENSIONSETTINGSREQUEST -DESCRIPTOR.message_types_by_name['AdGroupExtensionSettingOperation'] = _ADGROUPEXTENSIONSETTINGOPERATION -DESCRIPTOR.message_types_by_name['MutateAdGroupExtensionSettingsResponse'] = _MUTATEADGROUPEXTENSIONSETTINGSRESPONSE -DESCRIPTOR.message_types_by_name['MutateAdGroupExtensionSettingResult'] = _MUTATEADGROUPEXTENSIONSETTINGRESULT -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -GetAdGroupExtensionSettingRequest = _reflection.GeneratedProtocolMessageType('GetAdGroupExtensionSettingRequest', (_message.Message,), dict( - DESCRIPTOR = _GETADGROUPEXTENSIONSETTINGREQUEST, - __module__ = 'google.ads.googleads_v1.proto.services.ad_group_extension_setting_service_pb2' - , - __doc__ = """Request message for - [AdGroupExtensionSettingService.GetAdGroupExtensionSetting][google.ads.googleads.v1.services.AdGroupExtensionSettingService.GetAdGroupExtensionSetting]. - - - Attributes: - resource_name: - The resource name of the ad group extension setting to fetch. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.GetAdGroupExtensionSettingRequest) - )) -_sym_db.RegisterMessage(GetAdGroupExtensionSettingRequest) - -MutateAdGroupExtensionSettingsRequest = _reflection.GeneratedProtocolMessageType('MutateAdGroupExtensionSettingsRequest', (_message.Message,), dict( - DESCRIPTOR = _MUTATEADGROUPEXTENSIONSETTINGSREQUEST, - __module__ = 'google.ads.googleads_v1.proto.services.ad_group_extension_setting_service_pb2' - , - __doc__ = """Request message for - [AdGroupExtensionSettingService.MutateAdGroupExtensionSettings][google.ads.googleads.v1.services.AdGroupExtensionSettingService.MutateAdGroupExtensionSettings]. - - - Attributes: - customer_id: - The ID of the customer whose ad group extension settings are - being modified. - operations: - The list of operations to perform on individual ad group - extension settings. - partial_failure: - If true, successful operations will be carried out and invalid - operations will return errors. If false, all operations will - be carried out in one transaction if and only if they are all - valid. Default is false. - validate_only: - If true, the request is validated but not executed. Only - errors are returned, not results. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.MutateAdGroupExtensionSettingsRequest) - )) -_sym_db.RegisterMessage(MutateAdGroupExtensionSettingsRequest) - -AdGroupExtensionSettingOperation = _reflection.GeneratedProtocolMessageType('AdGroupExtensionSettingOperation', (_message.Message,), dict( - DESCRIPTOR = _ADGROUPEXTENSIONSETTINGOPERATION, - __module__ = 'google.ads.googleads_v1.proto.services.ad_group_extension_setting_service_pb2' - , - __doc__ = """A single operation (create, update, remove) on an ad group extension - setting. - - - Attributes: - update_mask: - FieldMask that determines which resource fields are modified - in an update. - operation: - The mutate operation. - create: - Create operation: No resource name is expected for the new ad - group extension setting. - update: - Update operation: The ad group extension setting is expected - to have a valid resource name. - remove: - Remove operation: A resource name for the removed ad group - extension setting is expected, in this format: ``customers/{c - ustomer_id}/adGroupExtensionSettings/{ad_group_id}~{extension_ - type}`` - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.AdGroupExtensionSettingOperation) - )) -_sym_db.RegisterMessage(AdGroupExtensionSettingOperation) - -MutateAdGroupExtensionSettingsResponse = _reflection.GeneratedProtocolMessageType('MutateAdGroupExtensionSettingsResponse', (_message.Message,), dict( - DESCRIPTOR = _MUTATEADGROUPEXTENSIONSETTINGSRESPONSE, - __module__ = 'google.ads.googleads_v1.proto.services.ad_group_extension_setting_service_pb2' - , - __doc__ = """Response message for an ad group extension setting mutate. - - - Attributes: - partial_failure_error: - Errors that pertain to operation failures in the partial - failure mode. Returned only when partial\_failure = true and - all errors occur inside the operations. If any errors occur - outside the operations (e.g. auth errors), we return an RPC - level error. - results: - All results for the mutate. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.MutateAdGroupExtensionSettingsResponse) - )) -_sym_db.RegisterMessage(MutateAdGroupExtensionSettingsResponse) - -MutateAdGroupExtensionSettingResult = _reflection.GeneratedProtocolMessageType('MutateAdGroupExtensionSettingResult', (_message.Message,), dict( - DESCRIPTOR = _MUTATEADGROUPEXTENSIONSETTINGRESULT, - __module__ = 'google.ads.googleads_v1.proto.services.ad_group_extension_setting_service_pb2' - , - __doc__ = """The result for the ad group extension setting mutate. - - - Attributes: - resource_name: - Returned for successful operations. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.MutateAdGroupExtensionSettingResult) - )) -_sym_db.RegisterMessage(MutateAdGroupExtensionSettingResult) - - -DESCRIPTOR._options = None - -_ADGROUPEXTENSIONSETTINGSERVICE = _descriptor.ServiceDescriptor( - name='AdGroupExtensionSettingService', - full_name='google.ads.googleads.v1.services.AdGroupExtensionSettingService', - file=DESCRIPTOR, - index=0, - serialized_options=None, - serialized_start=1089, - serialized_end=1605, - methods=[ - _descriptor.MethodDescriptor( - name='GetAdGroupExtensionSetting', - full_name='google.ads.googleads.v1.services.AdGroupExtensionSettingService.GetAdGroupExtensionSetting', - index=0, - containing_service=None, - input_type=_GETADGROUPEXTENSIONSETTINGREQUEST, - output_type=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_ad__group__extension__setting__pb2._ADGROUPEXTENSIONSETTING, - serialized_options=_b('\202\323\344\223\002<\022:/v1/{resource_name=customers/*/adGroupExtensionSettings/*}'), - ), - _descriptor.MethodDescriptor( - name='MutateAdGroupExtensionSettings', - full_name='google.ads.googleads.v1.services.AdGroupExtensionSettingService.MutateAdGroupExtensionSettings', - index=1, - containing_service=None, - input_type=_MUTATEADGROUPEXTENSIONSETTINGSREQUEST, - output_type=_MUTATEADGROUPEXTENSIONSETTINGSRESPONSE, - serialized_options=_b('\202\323\344\223\002B\"=/v1/customers/{customer_id=*}/adGroupExtensionSettings:mutate:\001*'), - ), -]) -_sym_db.RegisterServiceDescriptor(_ADGROUPEXTENSIONSETTINGSERVICE) - -DESCRIPTOR.services_by_name['AdGroupExtensionSettingService'] = _ADGROUPEXTENSIONSETTINGSERVICE - -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/services/ad_group_feed_service_pb2.py b/google/ads/google_ads/v1/proto/services/ad_group_feed_service_pb2.py deleted file mode 100644 index 0b139300a..000000000 --- a/google/ads/google_ads/v1/proto/services/ad_group_feed_service_pb2.py +++ /dev/null @@ -1,406 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/services/ad_group_feed_service.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.ads.google_ads.v1.proto.resources import ad_group_feed_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_ad__group__feed__pb2 -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 -from google.protobuf import field_mask_pb2 as google_dot_protobuf_dot_field__mask__pb2 -from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 -from google.rpc import status_pb2 as google_dot_rpc_dot_status__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/services/ad_group_feed_service.proto', - package='google.ads.googleads.v1.services', - syntax='proto3', - serialized_options=_b('\n$com.google.ads.googleads.v1.servicesB\027AdGroupFeedServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v1/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V1.Services\312\002 Google\\Ads\\GoogleAds\\V1\\Services\352\002$Google::Ads::GoogleAds::V1::Services'), - serialized_pb=_b('\nBgoogle/ads/googleads_v1/proto/services/ad_group_feed_service.proto\x12 google.ads.googleads.v1.services\x1a;google/ads/googleads_v1/proto/resources/ad_group_feed.proto\x1a\x1cgoogle/api/annotations.proto\x1a google/protobuf/field_mask.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x17google/rpc/status.proto\".\n\x15GetAdGroupFeedRequest\x12\x15\n\rresource_name\x18\x01 \x01(\t\"\xac\x01\n\x19MutateAdGroupFeedsRequest\x12\x13\n\x0b\x63ustomer_id\x18\x01 \x01(\t\x12J\n\noperations\x18\x02 \x03(\x0b\x32\x36.google.ads.googleads.v1.services.AdGroupFeedOperation\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\"\xea\x01\n\x14\x41\x64GroupFeedOperation\x12/\n\x0bupdate_mask\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12@\n\x06\x63reate\x18\x01 \x01(\x0b\x32..google.ads.googleads.v1.resources.AdGroupFeedH\x00\x12@\n\x06update\x18\x02 \x01(\x0b\x32..google.ads.googleads.v1.resources.AdGroupFeedH\x00\x12\x10\n\x06remove\x18\x03 \x01(\tH\x00\x42\x0b\n\toperation\"\x9b\x01\n\x1aMutateAdGroupFeedsResponse\x12\x31\n\x15partial_failure_error\x18\x03 \x01(\x0b\x32\x12.google.rpc.Status\x12J\n\x07results\x18\x02 \x03(\x0b\x32\x39.google.ads.googleads.v1.services.MutateAdGroupFeedResult\"0\n\x17MutateAdGroupFeedResult\x12\x15\n\rresource_name\x18\x01 \x01(\t2\x98\x03\n\x12\x41\x64GroupFeedService\x12\xb1\x01\n\x0eGetAdGroupFeed\x12\x37.google.ads.googleads.v1.services.GetAdGroupFeedRequest\x1a..google.ads.googleads.v1.resources.AdGroupFeed\"6\x82\xd3\xe4\x93\x02\x30\x12./v1/{resource_name=customers/*/adGroupFeeds/*}\x12\xcd\x01\n\x12MutateAdGroupFeeds\x12;.google.ads.googleads.v1.services.MutateAdGroupFeedsRequest\x1a<.google.ads.googleads.v1.services.MutateAdGroupFeedsResponse\"<\x82\xd3\xe4\x93\x02\x36\"1/v1/customers/{customer_id=*}/adGroupFeeds:mutate:\x01*B\xfe\x01\n$com.google.ads.googleads.v1.servicesB\x17\x41\x64GroupFeedServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v1/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V1.Services\xca\x02 Google\\Ads\\GoogleAds\\V1\\Services\xea\x02$Google::Ads::GoogleAds::V1::Servicesb\x06proto3') - , - dependencies=[google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_ad__group__feed__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_protobuf_dot_field__mask__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_rpc_dot_status__pb2.DESCRIPTOR,]) - - - - -_GETADGROUPFEEDREQUEST = _descriptor.Descriptor( - name='GetAdGroupFeedRequest', - full_name='google.ads.googleads.v1.services.GetAdGroupFeedRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.services.GetAdGroupFeedRequest.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=286, - serialized_end=332, -) - - -_MUTATEADGROUPFEEDSREQUEST = _descriptor.Descriptor( - name='MutateAdGroupFeedsRequest', - full_name='google.ads.googleads.v1.services.MutateAdGroupFeedsRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='customer_id', full_name='google.ads.googleads.v1.services.MutateAdGroupFeedsRequest.customer_id', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='operations', full_name='google.ads.googleads.v1.services.MutateAdGroupFeedsRequest.operations', index=1, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='partial_failure', full_name='google.ads.googleads.v1.services.MutateAdGroupFeedsRequest.partial_failure', index=2, - number=3, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='validate_only', full_name='google.ads.googleads.v1.services.MutateAdGroupFeedsRequest.validate_only', index=3, - number=4, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=335, - serialized_end=507, -) - - -_ADGROUPFEEDOPERATION = _descriptor.Descriptor( - name='AdGroupFeedOperation', - full_name='google.ads.googleads.v1.services.AdGroupFeedOperation', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='update_mask', full_name='google.ads.googleads.v1.services.AdGroupFeedOperation.update_mask', index=0, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='create', full_name='google.ads.googleads.v1.services.AdGroupFeedOperation.create', index=1, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='update', full_name='google.ads.googleads.v1.services.AdGroupFeedOperation.update', index=2, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='remove', full_name='google.ads.googleads.v1.services.AdGroupFeedOperation.remove', index=3, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='operation', full_name='google.ads.googleads.v1.services.AdGroupFeedOperation.operation', - index=0, containing_type=None, fields=[]), - ], - serialized_start=510, - serialized_end=744, -) - - -_MUTATEADGROUPFEEDSRESPONSE = _descriptor.Descriptor( - name='MutateAdGroupFeedsResponse', - full_name='google.ads.googleads.v1.services.MutateAdGroupFeedsResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='partial_failure_error', full_name='google.ads.googleads.v1.services.MutateAdGroupFeedsResponse.partial_failure_error', index=0, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='results', full_name='google.ads.googleads.v1.services.MutateAdGroupFeedsResponse.results', index=1, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=747, - serialized_end=902, -) - - -_MUTATEADGROUPFEEDRESULT = _descriptor.Descriptor( - name='MutateAdGroupFeedResult', - full_name='google.ads.googleads.v1.services.MutateAdGroupFeedResult', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.services.MutateAdGroupFeedResult.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=904, - serialized_end=952, -) - -_MUTATEADGROUPFEEDSREQUEST.fields_by_name['operations'].message_type = _ADGROUPFEEDOPERATION -_ADGROUPFEEDOPERATION.fields_by_name['update_mask'].message_type = google_dot_protobuf_dot_field__mask__pb2._FIELDMASK -_ADGROUPFEEDOPERATION.fields_by_name['create'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_ad__group__feed__pb2._ADGROUPFEED -_ADGROUPFEEDOPERATION.fields_by_name['update'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_ad__group__feed__pb2._ADGROUPFEED -_ADGROUPFEEDOPERATION.oneofs_by_name['operation'].fields.append( - _ADGROUPFEEDOPERATION.fields_by_name['create']) -_ADGROUPFEEDOPERATION.fields_by_name['create'].containing_oneof = _ADGROUPFEEDOPERATION.oneofs_by_name['operation'] -_ADGROUPFEEDOPERATION.oneofs_by_name['operation'].fields.append( - _ADGROUPFEEDOPERATION.fields_by_name['update']) -_ADGROUPFEEDOPERATION.fields_by_name['update'].containing_oneof = _ADGROUPFEEDOPERATION.oneofs_by_name['operation'] -_ADGROUPFEEDOPERATION.oneofs_by_name['operation'].fields.append( - _ADGROUPFEEDOPERATION.fields_by_name['remove']) -_ADGROUPFEEDOPERATION.fields_by_name['remove'].containing_oneof = _ADGROUPFEEDOPERATION.oneofs_by_name['operation'] -_MUTATEADGROUPFEEDSRESPONSE.fields_by_name['partial_failure_error'].message_type = google_dot_rpc_dot_status__pb2._STATUS -_MUTATEADGROUPFEEDSRESPONSE.fields_by_name['results'].message_type = _MUTATEADGROUPFEEDRESULT -DESCRIPTOR.message_types_by_name['GetAdGroupFeedRequest'] = _GETADGROUPFEEDREQUEST -DESCRIPTOR.message_types_by_name['MutateAdGroupFeedsRequest'] = _MUTATEADGROUPFEEDSREQUEST -DESCRIPTOR.message_types_by_name['AdGroupFeedOperation'] = _ADGROUPFEEDOPERATION -DESCRIPTOR.message_types_by_name['MutateAdGroupFeedsResponse'] = _MUTATEADGROUPFEEDSRESPONSE -DESCRIPTOR.message_types_by_name['MutateAdGroupFeedResult'] = _MUTATEADGROUPFEEDRESULT -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -GetAdGroupFeedRequest = _reflection.GeneratedProtocolMessageType('GetAdGroupFeedRequest', (_message.Message,), dict( - DESCRIPTOR = _GETADGROUPFEEDREQUEST, - __module__ = 'google.ads.googleads_v1.proto.services.ad_group_feed_service_pb2' - , - __doc__ = """Request message for - [AdGroupFeedService.GetAdGroupFeed][google.ads.googleads.v1.services.AdGroupFeedService.GetAdGroupFeed]. - - - Attributes: - resource_name: - The resource name of the ad group feed to fetch. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.GetAdGroupFeedRequest) - )) -_sym_db.RegisterMessage(GetAdGroupFeedRequest) - -MutateAdGroupFeedsRequest = _reflection.GeneratedProtocolMessageType('MutateAdGroupFeedsRequest', (_message.Message,), dict( - DESCRIPTOR = _MUTATEADGROUPFEEDSREQUEST, - __module__ = 'google.ads.googleads_v1.proto.services.ad_group_feed_service_pb2' - , - __doc__ = """Request message for - [AdGroupFeedService.MutateAdGroupFeeds][google.ads.googleads.v1.services.AdGroupFeedService.MutateAdGroupFeeds]. - - - Attributes: - customer_id: - The ID of the customer whose ad group feeds are being - modified. - operations: - The list of operations to perform on individual ad group - feeds. - partial_failure: - If true, successful operations will be carried out and invalid - operations will return errors. If false, all operations will - be carried out in one transaction if and only if they are all - valid. Default is false. - validate_only: - If true, the request is validated but not executed. Only - errors are returned, not results. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.MutateAdGroupFeedsRequest) - )) -_sym_db.RegisterMessage(MutateAdGroupFeedsRequest) - -AdGroupFeedOperation = _reflection.GeneratedProtocolMessageType('AdGroupFeedOperation', (_message.Message,), dict( - DESCRIPTOR = _ADGROUPFEEDOPERATION, - __module__ = 'google.ads.googleads_v1.proto.services.ad_group_feed_service_pb2' - , - __doc__ = """A single operation (create, update, remove) on an ad group feed. - - - Attributes: - update_mask: - FieldMask that determines which resource fields are modified - in an update. - operation: - The mutate operation. - create: - Create operation: No resource name is expected for the new ad - group feed. - update: - Update operation: The ad group feed is expected to have a - valid resource name. - remove: - Remove operation: A resource name for the removed ad group - feed is expected, in this format: ``customers/{customer_id}/a - dGroupFeeds/{ad_group_id}~{feed_id}`` - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.AdGroupFeedOperation) - )) -_sym_db.RegisterMessage(AdGroupFeedOperation) - -MutateAdGroupFeedsResponse = _reflection.GeneratedProtocolMessageType('MutateAdGroupFeedsResponse', (_message.Message,), dict( - DESCRIPTOR = _MUTATEADGROUPFEEDSRESPONSE, - __module__ = 'google.ads.googleads_v1.proto.services.ad_group_feed_service_pb2' - , - __doc__ = """Response message for an ad group feed mutate. - - - Attributes: - partial_failure_error: - Errors that pertain to operation failures in the partial - failure mode. Returned only when partial\_failure = true and - all errors occur inside the operations. If any errors occur - outside the operations (e.g. auth errors), we return an RPC - level error. - results: - All results for the mutate. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.MutateAdGroupFeedsResponse) - )) -_sym_db.RegisterMessage(MutateAdGroupFeedsResponse) - -MutateAdGroupFeedResult = _reflection.GeneratedProtocolMessageType('MutateAdGroupFeedResult', (_message.Message,), dict( - DESCRIPTOR = _MUTATEADGROUPFEEDRESULT, - __module__ = 'google.ads.googleads_v1.proto.services.ad_group_feed_service_pb2' - , - __doc__ = """The result for the ad group feed mutate. - - - Attributes: - resource_name: - Returned for successful operations. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.MutateAdGroupFeedResult) - )) -_sym_db.RegisterMessage(MutateAdGroupFeedResult) - - -DESCRIPTOR._options = None - -_ADGROUPFEEDSERVICE = _descriptor.ServiceDescriptor( - name='AdGroupFeedService', - full_name='google.ads.googleads.v1.services.AdGroupFeedService', - file=DESCRIPTOR, - index=0, - serialized_options=None, - serialized_start=955, - serialized_end=1363, - methods=[ - _descriptor.MethodDescriptor( - name='GetAdGroupFeed', - full_name='google.ads.googleads.v1.services.AdGroupFeedService.GetAdGroupFeed', - index=0, - containing_service=None, - input_type=_GETADGROUPFEEDREQUEST, - output_type=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_ad__group__feed__pb2._ADGROUPFEED, - serialized_options=_b('\202\323\344\223\0020\022./v1/{resource_name=customers/*/adGroupFeeds/*}'), - ), - _descriptor.MethodDescriptor( - name='MutateAdGroupFeeds', - full_name='google.ads.googleads.v1.services.AdGroupFeedService.MutateAdGroupFeeds', - index=1, - containing_service=None, - input_type=_MUTATEADGROUPFEEDSREQUEST, - output_type=_MUTATEADGROUPFEEDSRESPONSE, - serialized_options=_b('\202\323\344\223\0026\"1/v1/customers/{customer_id=*}/adGroupFeeds:mutate:\001*'), - ), -]) -_sym_db.RegisterServiceDescriptor(_ADGROUPFEEDSERVICE) - -DESCRIPTOR.services_by_name['AdGroupFeedService'] = _ADGROUPFEEDSERVICE - -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/services/ad_group_feed_service_pb2_grpc.py b/google/ads/google_ads/v1/proto/services/ad_group_feed_service_pb2_grpc.py deleted file mode 100644 index a54f78f42..000000000 --- a/google/ads/google_ads/v1/proto/services/ad_group_feed_service_pb2_grpc.py +++ /dev/null @@ -1,69 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -import grpc - -from google.ads.google_ads.v1.proto.resources import ad_group_feed_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_ad__group__feed__pb2 -from google.ads.google_ads.v1.proto.services import ad_group_feed_service_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_ad__group__feed__service__pb2 - - -class AdGroupFeedServiceStub(object): - """Proto file describing the AdGroupFeed service. - - Service to manage ad group feeds. - """ - - def __init__(self, channel): - """Constructor. - - Args: - channel: A grpc.Channel. - """ - self.GetAdGroupFeed = channel.unary_unary( - '/google.ads.googleads.v1.services.AdGroupFeedService/GetAdGroupFeed', - request_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_ad__group__feed__service__pb2.GetAdGroupFeedRequest.SerializeToString, - response_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_ad__group__feed__pb2.AdGroupFeed.FromString, - ) - self.MutateAdGroupFeeds = channel.unary_unary( - '/google.ads.googleads.v1.services.AdGroupFeedService/MutateAdGroupFeeds', - request_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_ad__group__feed__service__pb2.MutateAdGroupFeedsRequest.SerializeToString, - response_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_ad__group__feed__service__pb2.MutateAdGroupFeedsResponse.FromString, - ) - - -class AdGroupFeedServiceServicer(object): - """Proto file describing the AdGroupFeed service. - - Service to manage ad group feeds. - """ - - def GetAdGroupFeed(self, request, context): - """Returns the requested ad group feed in full detail. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def MutateAdGroupFeeds(self, request, context): - """Creates, updates, or removes ad group feeds. Operation statuses are - returned. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - -def add_AdGroupFeedServiceServicer_to_server(servicer, server): - rpc_method_handlers = { - 'GetAdGroupFeed': grpc.unary_unary_rpc_method_handler( - servicer.GetAdGroupFeed, - request_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_ad__group__feed__service__pb2.GetAdGroupFeedRequest.FromString, - response_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_ad__group__feed__pb2.AdGroupFeed.SerializeToString, - ), - 'MutateAdGroupFeeds': grpc.unary_unary_rpc_method_handler( - servicer.MutateAdGroupFeeds, - request_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_ad__group__feed__service__pb2.MutateAdGroupFeedsRequest.FromString, - response_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_ad__group__feed__service__pb2.MutateAdGroupFeedsResponse.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'google.ads.googleads.v1.services.AdGroupFeedService', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) diff --git a/google/ads/google_ads/v1/proto/services/ad_group_label_service_pb2.py b/google/ads/google_ads/v1/proto/services/ad_group_label_service_pb2.py deleted file mode 100644 index 6fb8aa3a7..000000000 --- a/google/ads/google_ads/v1/proto/services/ad_group_label_service_pb2.py +++ /dev/null @@ -1,378 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/services/ad_group_label_service.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.ads.google_ads.v1.proto.resources import ad_group_label_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_ad__group__label__pb2 -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 -from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 -from google.rpc import status_pb2 as google_dot_rpc_dot_status__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/services/ad_group_label_service.proto', - package='google.ads.googleads.v1.services', - syntax='proto3', - serialized_options=_b('\n$com.google.ads.googleads.v1.servicesB\030AdGroupLabelServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v1/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V1.Services\312\002 Google\\Ads\\GoogleAds\\V1\\Services\352\002$Google::Ads::GoogleAds::V1::Services'), - serialized_pb=_b('\nCgoogle/ads/googleads_v1/proto/services/ad_group_label_service.proto\x12 google.ads.googleads.v1.services\x1agoogle/ads/googleads_v1/proto/resources/ad_schedule_view.proto\x1a\x1cgoogle/api/annotations.proto\"1\n\x18GetAdScheduleViewRequest\x12\x15\n\rresource_name\x18\x01 \x01(\t2\xd7\x01\n\x15\x41\x64ScheduleViewService\x12\xbd\x01\n\x11GetAdScheduleView\x12:.google.ads.googleads.v1.services.GetAdScheduleViewRequest\x1a\x31.google.ads.googleads.v1.resources.AdScheduleView\"9\x82\xd3\xe4\x93\x02\x33\x12\x31/v1/{resource_name=customers/*/adScheduleViews/*}B\x81\x02\n$com.google.ads.googleads.v1.servicesB\x1a\x41\x64ScheduleViewServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v1/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V1.Services\xca\x02 Google\\Ads\\GoogleAds\\V1\\Services\xea\x02$Google::Ads::GoogleAds::V1::Servicesb\x06proto3') - , - dependencies=[google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_ad__schedule__view__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - - -_GETADSCHEDULEVIEWREQUEST = _descriptor.Descriptor( - name='GetAdScheduleViewRequest', - full_name='google.ads.googleads.v1.services.GetAdScheduleViewRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.services.GetAdScheduleViewRequest.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=201, - serialized_end=250, -) - -DESCRIPTOR.message_types_by_name['GetAdScheduleViewRequest'] = _GETADSCHEDULEVIEWREQUEST -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -GetAdScheduleViewRequest = _reflection.GeneratedProtocolMessageType('GetAdScheduleViewRequest', (_message.Message,), dict( - DESCRIPTOR = _GETADSCHEDULEVIEWREQUEST, - __module__ = 'google.ads.googleads_v1.proto.services.ad_schedule_view_service_pb2' - , - __doc__ = """Request message for - [AdScheduleViewService.GetAdScheduleView][google.ads.googleads.v1.services.AdScheduleViewService.GetAdScheduleView]. - - - Attributes: - resource_name: - The resource name of the ad schedule view to fetch. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.GetAdScheduleViewRequest) - )) -_sym_db.RegisterMessage(GetAdScheduleViewRequest) - - -DESCRIPTOR._options = None - -_ADSCHEDULEVIEWSERVICE = _descriptor.ServiceDescriptor( - name='AdScheduleViewService', - full_name='google.ads.googleads.v1.services.AdScheduleViewService', - file=DESCRIPTOR, - index=0, - serialized_options=None, - serialized_start=253, - serialized_end=468, - methods=[ - _descriptor.MethodDescriptor( - name='GetAdScheduleView', - full_name='google.ads.googleads.v1.services.AdScheduleViewService.GetAdScheduleView', - index=0, - containing_service=None, - input_type=_GETADSCHEDULEVIEWREQUEST, - output_type=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_ad__schedule__view__pb2._ADSCHEDULEVIEW, - serialized_options=_b('\202\323\344\223\0023\0221/v1/{resource_name=customers/*/adScheduleViews/*}'), - ), -]) -_sym_db.RegisterServiceDescriptor(_ADSCHEDULEVIEWSERVICE) - -DESCRIPTOR.services_by_name['AdScheduleViewService'] = _ADSCHEDULEVIEWSERVICE - -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/services/ad_schedule_view_service_pb2_grpc.py b/google/ads/google_ads/v1/proto/services/ad_schedule_view_service_pb2_grpc.py deleted file mode 100644 index 54f5a5072..000000000 --- a/google/ads/google_ads/v1/proto/services/ad_schedule_view_service_pb2_grpc.py +++ /dev/null @@ -1,51 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -import grpc - -from google.ads.google_ads.v1.proto.resources import ad_schedule_view_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_ad__schedule__view__pb2 -from google.ads.google_ads.v1.proto.services import ad_schedule_view_service_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_ad__schedule__view__service__pb2 - - -class AdScheduleViewServiceStub(object): - """Proto file describing the AdSchedule View service. - - Service to fetch ad schedule views. - """ - - def __init__(self, channel): - """Constructor. - - Args: - channel: A grpc.Channel. - """ - self.GetAdScheduleView = channel.unary_unary( - '/google.ads.googleads.v1.services.AdScheduleViewService/GetAdScheduleView', - request_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_ad__schedule__view__service__pb2.GetAdScheduleViewRequest.SerializeToString, - response_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_ad__schedule__view__pb2.AdScheduleView.FromString, - ) - - -class AdScheduleViewServiceServicer(object): - """Proto file describing the AdSchedule View service. - - Service to fetch ad schedule views. - """ - - def GetAdScheduleView(self, request, context): - """Returns the requested ad schedule view in full detail. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - -def add_AdScheduleViewServiceServicer_to_server(servicer, server): - rpc_method_handlers = { - 'GetAdScheduleView': grpc.unary_unary_rpc_method_handler( - servicer.GetAdScheduleView, - request_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_ad__schedule__view__service__pb2.GetAdScheduleViewRequest.FromString, - response_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_ad__schedule__view__pb2.AdScheduleView.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'google.ads.googleads.v1.services.AdScheduleViewService', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) diff --git a/google/ads/google_ads/v1/proto/services/age_range_view_service_pb2.py b/google/ads/google_ads/v1/proto/services/age_range_view_service_pb2.py deleted file mode 100644 index c1f400a72..000000000 --- a/google/ads/google_ads/v1/proto/services/age_range_view_service_pb2.py +++ /dev/null @@ -1,107 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/services/age_range_view_service.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.ads.google_ads.v1.proto.resources import age_range_view_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_age__range__view__pb2 -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/services/age_range_view_service.proto', - package='google.ads.googleads.v1.services', - syntax='proto3', - serialized_options=_b('\n$com.google.ads.googleads.v1.servicesB\030AgeRangeViewServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v1/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V1.Services\312\002 Google\\Ads\\GoogleAds\\V1\\Services\352\002$Google::Ads::GoogleAds::V1::Services'), - serialized_pb=_b('\nCgoogle/ads/googleads_v1/proto/services/age_range_view_service.proto\x12 google.ads.googleads.v1.services\x1agoogle/ads/googleads_v1/proto/resources/bidding_strategy.proto\x1a\x1cgoogle/api/annotations.proto\x1a google/protobuf/field_mask.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x17google/rpc/status.proto\"2\n\x19GetBiddingStrategyRequest\x12\x15\n\rresource_name\x18\x01 \x01(\t\"\xb5\x01\n\x1eMutateBiddingStrategiesRequest\x12\x13\n\x0b\x63ustomer_id\x18\x01 \x01(\t\x12N\n\noperations\x18\x02 \x03(\x0b\x32:.google.ads.googleads.v1.services.BiddingStrategyOperation\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\"\xf6\x01\n\x18\x42iddingStrategyOperation\x12/\n\x0bupdate_mask\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12\x44\n\x06\x63reate\x18\x01 \x01(\x0b\x32\x32.google.ads.googleads.v1.resources.BiddingStrategyH\x00\x12\x44\n\x06update\x18\x02 \x01(\x0b\x32\x32.google.ads.googleads.v1.resources.BiddingStrategyH\x00\x12\x10\n\x06remove\x18\x03 \x01(\tH\x00\x42\x0b\n\toperation\"\xa4\x01\n\x1fMutateBiddingStrategiesResponse\x12\x31\n\x15partial_failure_error\x18\x03 \x01(\x0b\x32\x12.google.rpc.Status\x12N\n\x07results\x18\x02 \x03(\x0b\x32=.google.ads.googleads.v1.services.MutateBiddingStrategyResult\"4\n\x1bMutateBiddingStrategyResult\x12\x15\n\rresource_name\x18\x01 \x01(\t2\xc1\x03\n\x16\x42iddingStrategyService\x12\xc2\x01\n\x12GetBiddingStrategy\x12;.google.ads.googleads.v1.services.GetBiddingStrategyRequest\x1a\x32.google.ads.googleads.v1.resources.BiddingStrategy\";\x82\xd3\xe4\x93\x02\x35\x12\x33/v1/{resource_name=customers/*/biddingStrategies/*}\x12\xe1\x01\n\x17MutateBiddingStrategies\x12@.google.ads.googleads.v1.services.MutateBiddingStrategiesRequest\x1a\x41.google.ads.googleads.v1.services.MutateBiddingStrategiesResponse\"A\x82\xd3\xe4\x93\x02;\"6/v1/customers/{customer_id=*}/biddingStrategies:mutate:\x01*B\x82\x02\n$com.google.ads.googleads.v1.servicesB\x1b\x42iddingStrategyServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v1/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V1.Services\xca\x02 Google\\Ads\\GoogleAds\\V1\\Services\xea\x02$Google::Ads::GoogleAds::V1::Servicesb\x06proto3') - , - dependencies=[google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_bidding__strategy__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_protobuf_dot_field__mask__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_rpc_dot_status__pb2.DESCRIPTOR,]) - - - - -_GETBIDDINGSTRATEGYREQUEST = _descriptor.Descriptor( - name='GetBiddingStrategyRequest', - full_name='google.ads.googleads.v1.services.GetBiddingStrategyRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.services.GetBiddingStrategyRequest.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=292, - serialized_end=342, -) - - -_MUTATEBIDDINGSTRATEGIESREQUEST = _descriptor.Descriptor( - name='MutateBiddingStrategiesRequest', - full_name='google.ads.googleads.v1.services.MutateBiddingStrategiesRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='customer_id', full_name='google.ads.googleads.v1.services.MutateBiddingStrategiesRequest.customer_id', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='operations', full_name='google.ads.googleads.v1.services.MutateBiddingStrategiesRequest.operations', index=1, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='partial_failure', full_name='google.ads.googleads.v1.services.MutateBiddingStrategiesRequest.partial_failure', index=2, - number=3, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='validate_only', full_name='google.ads.googleads.v1.services.MutateBiddingStrategiesRequest.validate_only', index=3, - number=4, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=345, - serialized_end=526, -) - - -_BIDDINGSTRATEGYOPERATION = _descriptor.Descriptor( - name='BiddingStrategyOperation', - full_name='google.ads.googleads.v1.services.BiddingStrategyOperation', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='update_mask', full_name='google.ads.googleads.v1.services.BiddingStrategyOperation.update_mask', index=0, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='create', full_name='google.ads.googleads.v1.services.BiddingStrategyOperation.create', index=1, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='update', full_name='google.ads.googleads.v1.services.BiddingStrategyOperation.update', index=2, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='remove', full_name='google.ads.googleads.v1.services.BiddingStrategyOperation.remove', index=3, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='operation', full_name='google.ads.googleads.v1.services.BiddingStrategyOperation.operation', - index=0, containing_type=None, fields=[]), - ], - serialized_start=529, - serialized_end=775, -) - - -_MUTATEBIDDINGSTRATEGIESRESPONSE = _descriptor.Descriptor( - name='MutateBiddingStrategiesResponse', - full_name='google.ads.googleads.v1.services.MutateBiddingStrategiesResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='partial_failure_error', full_name='google.ads.googleads.v1.services.MutateBiddingStrategiesResponse.partial_failure_error', index=0, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='results', full_name='google.ads.googleads.v1.services.MutateBiddingStrategiesResponse.results', index=1, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=778, - serialized_end=942, -) - - -_MUTATEBIDDINGSTRATEGYRESULT = _descriptor.Descriptor( - name='MutateBiddingStrategyResult', - full_name='google.ads.googleads.v1.services.MutateBiddingStrategyResult', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.services.MutateBiddingStrategyResult.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=944, - serialized_end=996, -) - -_MUTATEBIDDINGSTRATEGIESREQUEST.fields_by_name['operations'].message_type = _BIDDINGSTRATEGYOPERATION -_BIDDINGSTRATEGYOPERATION.fields_by_name['update_mask'].message_type = google_dot_protobuf_dot_field__mask__pb2._FIELDMASK -_BIDDINGSTRATEGYOPERATION.fields_by_name['create'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_bidding__strategy__pb2._BIDDINGSTRATEGY -_BIDDINGSTRATEGYOPERATION.fields_by_name['update'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_bidding__strategy__pb2._BIDDINGSTRATEGY -_BIDDINGSTRATEGYOPERATION.oneofs_by_name['operation'].fields.append( - _BIDDINGSTRATEGYOPERATION.fields_by_name['create']) -_BIDDINGSTRATEGYOPERATION.fields_by_name['create'].containing_oneof = _BIDDINGSTRATEGYOPERATION.oneofs_by_name['operation'] -_BIDDINGSTRATEGYOPERATION.oneofs_by_name['operation'].fields.append( - _BIDDINGSTRATEGYOPERATION.fields_by_name['update']) -_BIDDINGSTRATEGYOPERATION.fields_by_name['update'].containing_oneof = _BIDDINGSTRATEGYOPERATION.oneofs_by_name['operation'] -_BIDDINGSTRATEGYOPERATION.oneofs_by_name['operation'].fields.append( - _BIDDINGSTRATEGYOPERATION.fields_by_name['remove']) -_BIDDINGSTRATEGYOPERATION.fields_by_name['remove'].containing_oneof = _BIDDINGSTRATEGYOPERATION.oneofs_by_name['operation'] -_MUTATEBIDDINGSTRATEGIESRESPONSE.fields_by_name['partial_failure_error'].message_type = google_dot_rpc_dot_status__pb2._STATUS -_MUTATEBIDDINGSTRATEGIESRESPONSE.fields_by_name['results'].message_type = _MUTATEBIDDINGSTRATEGYRESULT -DESCRIPTOR.message_types_by_name['GetBiddingStrategyRequest'] = _GETBIDDINGSTRATEGYREQUEST -DESCRIPTOR.message_types_by_name['MutateBiddingStrategiesRequest'] = _MUTATEBIDDINGSTRATEGIESREQUEST -DESCRIPTOR.message_types_by_name['BiddingStrategyOperation'] = _BIDDINGSTRATEGYOPERATION -DESCRIPTOR.message_types_by_name['MutateBiddingStrategiesResponse'] = _MUTATEBIDDINGSTRATEGIESRESPONSE -DESCRIPTOR.message_types_by_name['MutateBiddingStrategyResult'] = _MUTATEBIDDINGSTRATEGYRESULT -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -GetBiddingStrategyRequest = _reflection.GeneratedProtocolMessageType('GetBiddingStrategyRequest', (_message.Message,), dict( - DESCRIPTOR = _GETBIDDINGSTRATEGYREQUEST, - __module__ = 'google.ads.googleads_v1.proto.services.bidding_strategy_service_pb2' - , - __doc__ = """Request message for - [BiddingStrategyService.GetBiddingStrategy][google.ads.googleads.v1.services.BiddingStrategyService.GetBiddingStrategy]. - - - Attributes: - resource_name: - The resource name of the bidding strategy to fetch. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.GetBiddingStrategyRequest) - )) -_sym_db.RegisterMessage(GetBiddingStrategyRequest) - -MutateBiddingStrategiesRequest = _reflection.GeneratedProtocolMessageType('MutateBiddingStrategiesRequest', (_message.Message,), dict( - DESCRIPTOR = _MUTATEBIDDINGSTRATEGIESREQUEST, - __module__ = 'google.ads.googleads_v1.proto.services.bidding_strategy_service_pb2' - , - __doc__ = """Request message for - [BiddingStrategyService.MutateBiddingStrategies][google.ads.googleads.v1.services.BiddingStrategyService.MutateBiddingStrategies]. - - - Attributes: - customer_id: - The ID of the customer whose bidding strategies are being - modified. - operations: - The list of operations to perform on individual bidding - strategies. - partial_failure: - If true, successful operations will be carried out and invalid - operations will return errors. If false, all operations will - be carried out in one transaction if and only if they are all - valid. Default is false. - validate_only: - If true, the request is validated but not executed. Only - errors are returned, not results. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.MutateBiddingStrategiesRequest) - )) -_sym_db.RegisterMessage(MutateBiddingStrategiesRequest) - -BiddingStrategyOperation = _reflection.GeneratedProtocolMessageType('BiddingStrategyOperation', (_message.Message,), dict( - DESCRIPTOR = _BIDDINGSTRATEGYOPERATION, - __module__ = 'google.ads.googleads_v1.proto.services.bidding_strategy_service_pb2' - , - __doc__ = """A single operation (create, update, remove) on a bidding strategy. - - - Attributes: - update_mask: - FieldMask that determines which resource fields are modified - in an update. - operation: - The mutate operation. - create: - Create operation: No resource name is expected for the new - bidding strategy. - update: - Update operation: The bidding strategy is expected to have a - valid resource name. - remove: - Remove operation: A resource name for the removed bidding - strategy is expected, in this format: ``customers/{customer_i - d}/biddingStrategies/{bidding_strategy_id}`` - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.BiddingStrategyOperation) - )) -_sym_db.RegisterMessage(BiddingStrategyOperation) - -MutateBiddingStrategiesResponse = _reflection.GeneratedProtocolMessageType('MutateBiddingStrategiesResponse', (_message.Message,), dict( - DESCRIPTOR = _MUTATEBIDDINGSTRATEGIESRESPONSE, - __module__ = 'google.ads.googleads_v1.proto.services.bidding_strategy_service_pb2' - , - __doc__ = """Response message for bidding strategy mutate. - - - Attributes: - partial_failure_error: - Errors that pertain to operation failures in the partial - failure mode. Returned only when partial\_failure = true and - all errors occur inside the operations. If any errors occur - outside the operations (e.g. auth errors), we return an RPC - level error. - results: - All results for the mutate. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.MutateBiddingStrategiesResponse) - )) -_sym_db.RegisterMessage(MutateBiddingStrategiesResponse) - -MutateBiddingStrategyResult = _reflection.GeneratedProtocolMessageType('MutateBiddingStrategyResult', (_message.Message,), dict( - DESCRIPTOR = _MUTATEBIDDINGSTRATEGYRESULT, - __module__ = 'google.ads.googleads_v1.proto.services.bidding_strategy_service_pb2' - , - __doc__ = """The result for the bidding strategy mutate. - - - Attributes: - resource_name: - Returned for successful operations. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.MutateBiddingStrategyResult) - )) -_sym_db.RegisterMessage(MutateBiddingStrategyResult) - - -DESCRIPTOR._options = None - -_BIDDINGSTRATEGYSERVICE = _descriptor.ServiceDescriptor( - name='BiddingStrategyService', - full_name='google.ads.googleads.v1.services.BiddingStrategyService', - file=DESCRIPTOR, - index=0, - serialized_options=None, - serialized_start=999, - serialized_end=1448, - methods=[ - _descriptor.MethodDescriptor( - name='GetBiddingStrategy', - full_name='google.ads.googleads.v1.services.BiddingStrategyService.GetBiddingStrategy', - index=0, - containing_service=None, - input_type=_GETBIDDINGSTRATEGYREQUEST, - output_type=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_bidding__strategy__pb2._BIDDINGSTRATEGY, - serialized_options=_b('\202\323\344\223\0025\0223/v1/{resource_name=customers/*/biddingStrategies/*}'), - ), - _descriptor.MethodDescriptor( - name='MutateBiddingStrategies', - full_name='google.ads.googleads.v1.services.BiddingStrategyService.MutateBiddingStrategies', - index=1, - containing_service=None, - input_type=_MUTATEBIDDINGSTRATEGIESREQUEST, - output_type=_MUTATEBIDDINGSTRATEGIESRESPONSE, - serialized_options=_b('\202\323\344\223\002;\"6/v1/customers/{customer_id=*}/biddingStrategies:mutate:\001*'), - ), -]) -_sym_db.RegisterServiceDescriptor(_BIDDINGSTRATEGYSERVICE) - -DESCRIPTOR.services_by_name['BiddingStrategyService'] = _BIDDINGSTRATEGYSERVICE - -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/services/bidding_strategy_service_pb2_grpc.py b/google/ads/google_ads/v1/proto/services/bidding_strategy_service_pb2_grpc.py deleted file mode 100644 index c1e772276..000000000 --- a/google/ads/google_ads/v1/proto/services/bidding_strategy_service_pb2_grpc.py +++ /dev/null @@ -1,69 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -import grpc - -from google.ads.google_ads.v1.proto.resources import bidding_strategy_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_bidding__strategy__pb2 -from google.ads.google_ads.v1.proto.services import bidding_strategy_service_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_bidding__strategy__service__pb2 - - -class BiddingStrategyServiceStub(object): - """Proto file describing the Bidding Strategy service. - - Service to manage bidding strategies. - """ - - def __init__(self, channel): - """Constructor. - - Args: - channel: A grpc.Channel. - """ - self.GetBiddingStrategy = channel.unary_unary( - '/google.ads.googleads.v1.services.BiddingStrategyService/GetBiddingStrategy', - request_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_bidding__strategy__service__pb2.GetBiddingStrategyRequest.SerializeToString, - response_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_bidding__strategy__pb2.BiddingStrategy.FromString, - ) - self.MutateBiddingStrategies = channel.unary_unary( - '/google.ads.googleads.v1.services.BiddingStrategyService/MutateBiddingStrategies', - request_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_bidding__strategy__service__pb2.MutateBiddingStrategiesRequest.SerializeToString, - response_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_bidding__strategy__service__pb2.MutateBiddingStrategiesResponse.FromString, - ) - - -class BiddingStrategyServiceServicer(object): - """Proto file describing the Bidding Strategy service. - - Service to manage bidding strategies. - """ - - def GetBiddingStrategy(self, request, context): - """Returns the requested bidding strategy in full detail. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def MutateBiddingStrategies(self, request, context): - """Creates, updates, or removes bidding strategies. Operation statuses are - returned. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - -def add_BiddingStrategyServiceServicer_to_server(servicer, server): - rpc_method_handlers = { - 'GetBiddingStrategy': grpc.unary_unary_rpc_method_handler( - servicer.GetBiddingStrategy, - request_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_bidding__strategy__service__pb2.GetBiddingStrategyRequest.FromString, - response_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_bidding__strategy__pb2.BiddingStrategy.SerializeToString, - ), - 'MutateBiddingStrategies': grpc.unary_unary_rpc_method_handler( - servicer.MutateBiddingStrategies, - request_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_bidding__strategy__service__pb2.MutateBiddingStrategiesRequest.FromString, - response_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_bidding__strategy__service__pb2.MutateBiddingStrategiesResponse.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'google.ads.googleads.v1.services.BiddingStrategyService', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) diff --git a/google/ads/google_ads/v1/proto/services/billing_setup_service_pb2.py b/google/ads/google_ads/v1/proto/services/billing_setup_service_pb2.py deleted file mode 100644 index 1a5a765eb..000000000 --- a/google/ads/google_ads/v1/proto/services/billing_setup_service_pb2.py +++ /dev/null @@ -1,344 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/services/billing_setup_service.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.ads.google_ads.v1.proto.resources import billing_setup_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_billing__setup__pb2 -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/services/billing_setup_service.proto', - package='google.ads.googleads.v1.services', - syntax='proto3', - serialized_options=_b('\n$com.google.ads.googleads.v1.servicesB\030BillingSetupServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v1/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V1.Services\312\002 Google\\Ads\\GoogleAds\\V1\\Services\352\002$Google::Ads::GoogleAds::V1::Services'), - serialized_pb=_b('\nBgoogle/ads/googleads_v1/proto/services/billing_setup_service.proto\x12 google.ads.googleads.v1.services\x1a;google/ads/googleads_v1/proto/resources/billing_setup.proto\x1a\x1cgoogle/api/annotations.proto\"/\n\x16GetBillingSetupRequest\x12\x15\n\rresource_name\x18\x01 \x01(\t\"|\n\x19MutateBillingSetupRequest\x12\x13\n\x0b\x63ustomer_id\x18\x01 \x01(\t\x12J\n\toperation\x18\x02 \x01(\x0b\x32\x37.google.ads.googleads.v1.services.BillingSetupOperation\"y\n\x15\x42illingSetupOperation\x12\x41\n\x06\x63reate\x18\x02 \x01(\x0b\x32/.google.ads.googleads.v1.resources.BillingSetupH\x00\x12\x10\n\x06remove\x18\x01 \x01(\tH\x00\x42\x0b\n\toperation\"h\n\x1aMutateBillingSetupResponse\x12J\n\x06result\x18\x01 \x01(\x0b\x32:.google.ads.googleads.v1.services.MutateBillingSetupResult\"1\n\x18MutateBillingSetupResult\x12\x15\n\rresource_name\x18\x01 \x01(\t2\x9e\x03\n\x13\x42illingSetupService\x12\xb5\x01\n\x0fGetBillingSetup\x12\x38.google.ads.googleads.v1.services.GetBillingSetupRequest\x1a/.google.ads.googleads.v1.resources.BillingSetup\"7\x82\xd3\xe4\x93\x02\x31\x12//v1/{resource_name=customers/*/billingSetups/*}\x12\xce\x01\n\x12MutateBillingSetup\x12;.google.ads.googleads.v1.services.MutateBillingSetupRequest\x1a<.google.ads.googleads.v1.services.MutateBillingSetupResponse\"=\x82\xd3\xe4\x93\x02\x37\"2/v1/customers/{customer_id=*}/billingSetups:mutate:\x01*B\xff\x01\n$com.google.ads.googleads.v1.servicesB\x18\x42illingSetupServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v1/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V1.Services\xca\x02 Google\\Ads\\GoogleAds\\V1\\Services\xea\x02$Google::Ads::GoogleAds::V1::Servicesb\x06proto3') - , - dependencies=[google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_billing__setup__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - - -_GETBILLINGSETUPREQUEST = _descriptor.Descriptor( - name='GetBillingSetupRequest', - full_name='google.ads.googleads.v1.services.GetBillingSetupRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.services.GetBillingSetupRequest.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=195, - serialized_end=242, -) - - -_MUTATEBILLINGSETUPREQUEST = _descriptor.Descriptor( - name='MutateBillingSetupRequest', - full_name='google.ads.googleads.v1.services.MutateBillingSetupRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='customer_id', full_name='google.ads.googleads.v1.services.MutateBillingSetupRequest.customer_id', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='operation', full_name='google.ads.googleads.v1.services.MutateBillingSetupRequest.operation', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=244, - serialized_end=368, -) - - -_BILLINGSETUPOPERATION = _descriptor.Descriptor( - name='BillingSetupOperation', - full_name='google.ads.googleads.v1.services.BillingSetupOperation', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='create', full_name='google.ads.googleads.v1.services.BillingSetupOperation.create', index=0, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='remove', full_name='google.ads.googleads.v1.services.BillingSetupOperation.remove', index=1, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='operation', full_name='google.ads.googleads.v1.services.BillingSetupOperation.operation', - index=0, containing_type=None, fields=[]), - ], - serialized_start=370, - serialized_end=491, -) - - -_MUTATEBILLINGSETUPRESPONSE = _descriptor.Descriptor( - name='MutateBillingSetupResponse', - full_name='google.ads.googleads.v1.services.MutateBillingSetupResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='result', full_name='google.ads.googleads.v1.services.MutateBillingSetupResponse.result', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=493, - serialized_end=597, -) - - -_MUTATEBILLINGSETUPRESULT = _descriptor.Descriptor( - name='MutateBillingSetupResult', - full_name='google.ads.googleads.v1.services.MutateBillingSetupResult', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.services.MutateBillingSetupResult.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=599, - serialized_end=648, -) - -_MUTATEBILLINGSETUPREQUEST.fields_by_name['operation'].message_type = _BILLINGSETUPOPERATION -_BILLINGSETUPOPERATION.fields_by_name['create'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_billing__setup__pb2._BILLINGSETUP -_BILLINGSETUPOPERATION.oneofs_by_name['operation'].fields.append( - _BILLINGSETUPOPERATION.fields_by_name['create']) -_BILLINGSETUPOPERATION.fields_by_name['create'].containing_oneof = _BILLINGSETUPOPERATION.oneofs_by_name['operation'] -_BILLINGSETUPOPERATION.oneofs_by_name['operation'].fields.append( - _BILLINGSETUPOPERATION.fields_by_name['remove']) -_BILLINGSETUPOPERATION.fields_by_name['remove'].containing_oneof = _BILLINGSETUPOPERATION.oneofs_by_name['operation'] -_MUTATEBILLINGSETUPRESPONSE.fields_by_name['result'].message_type = _MUTATEBILLINGSETUPRESULT -DESCRIPTOR.message_types_by_name['GetBillingSetupRequest'] = _GETBILLINGSETUPREQUEST -DESCRIPTOR.message_types_by_name['MutateBillingSetupRequest'] = _MUTATEBILLINGSETUPREQUEST -DESCRIPTOR.message_types_by_name['BillingSetupOperation'] = _BILLINGSETUPOPERATION -DESCRIPTOR.message_types_by_name['MutateBillingSetupResponse'] = _MUTATEBILLINGSETUPRESPONSE -DESCRIPTOR.message_types_by_name['MutateBillingSetupResult'] = _MUTATEBILLINGSETUPRESULT -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -GetBillingSetupRequest = _reflection.GeneratedProtocolMessageType('GetBillingSetupRequest', (_message.Message,), dict( - DESCRIPTOR = _GETBILLINGSETUPREQUEST, - __module__ = 'google.ads.googleads_v1.proto.services.billing_setup_service_pb2' - , - __doc__ = """Request message for - [BillingSetupService.GetBillingSetup][google.ads.googleads.v1.services.BillingSetupService.GetBillingSetup]. - - - Attributes: - resource_name: - The resource name of the billing setup to fetch. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.GetBillingSetupRequest) - )) -_sym_db.RegisterMessage(GetBillingSetupRequest) - -MutateBillingSetupRequest = _reflection.GeneratedProtocolMessageType('MutateBillingSetupRequest', (_message.Message,), dict( - DESCRIPTOR = _MUTATEBILLINGSETUPREQUEST, - __module__ = 'google.ads.googleads_v1.proto.services.billing_setup_service_pb2' - , - __doc__ = """Request message for billing setup mutate operations. - - - Attributes: - customer_id: - Id of the customer to apply the billing setup mutate operation - to. - operation: - The operation to perform. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.MutateBillingSetupRequest) - )) -_sym_db.RegisterMessage(MutateBillingSetupRequest) - -BillingSetupOperation = _reflection.GeneratedProtocolMessageType('BillingSetupOperation', (_message.Message,), dict( - DESCRIPTOR = _BILLINGSETUPOPERATION, - __module__ = 'google.ads.googleads_v1.proto.services.billing_setup_service_pb2' - , - __doc__ = """A single operation on a billing setup, which describes the cancellation - of an existing billing setup. - - - Attributes: - operation: - Only one of these operations can be set. "Update" operations - are not supported. - create: - Creates a billing setup. No resource name is expected for the - new billing setup. - remove: - Resource name of the billing setup to remove. A setup cannot - be removed unless it is in a pending state or its scheduled - start time is in the future. The resource name looks like - ``customers/{customer_id}/billingSetups/{billing_id}``. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.BillingSetupOperation) - )) -_sym_db.RegisterMessage(BillingSetupOperation) - -MutateBillingSetupResponse = _reflection.GeneratedProtocolMessageType('MutateBillingSetupResponse', (_message.Message,), dict( - DESCRIPTOR = _MUTATEBILLINGSETUPRESPONSE, - __module__ = 'google.ads.googleads_v1.proto.services.billing_setup_service_pb2' - , - __doc__ = """Response message for a billing setup operation. - - - Attributes: - result: - A result that identifies the resource affected by the mutate - request. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.MutateBillingSetupResponse) - )) -_sym_db.RegisterMessage(MutateBillingSetupResponse) - -MutateBillingSetupResult = _reflection.GeneratedProtocolMessageType('MutateBillingSetupResult', (_message.Message,), dict( - DESCRIPTOR = _MUTATEBILLINGSETUPRESULT, - __module__ = 'google.ads.googleads_v1.proto.services.billing_setup_service_pb2' - , - __doc__ = """Result for a single billing setup mutate. - - - Attributes: - resource_name: - Returned for successful operations. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.MutateBillingSetupResult) - )) -_sym_db.RegisterMessage(MutateBillingSetupResult) - - -DESCRIPTOR._options = None - -_BILLINGSETUPSERVICE = _descriptor.ServiceDescriptor( - name='BillingSetupService', - full_name='google.ads.googleads.v1.services.BillingSetupService', - file=DESCRIPTOR, - index=0, - serialized_options=None, - serialized_start=651, - serialized_end=1065, - methods=[ - _descriptor.MethodDescriptor( - name='GetBillingSetup', - full_name='google.ads.googleads.v1.services.BillingSetupService.GetBillingSetup', - index=0, - containing_service=None, - input_type=_GETBILLINGSETUPREQUEST, - output_type=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_billing__setup__pb2._BILLINGSETUP, - serialized_options=_b('\202\323\344\223\0021\022//v1/{resource_name=customers/*/billingSetups/*}'), - ), - _descriptor.MethodDescriptor( - name='MutateBillingSetup', - full_name='google.ads.googleads.v1.services.BillingSetupService.MutateBillingSetup', - index=1, - containing_service=None, - input_type=_MUTATEBILLINGSETUPREQUEST, - output_type=_MUTATEBILLINGSETUPRESPONSE, - serialized_options=_b('\202\323\344\223\0027\"2/v1/customers/{customer_id=*}/billingSetups:mutate:\001*'), - ), -]) -_sym_db.RegisterServiceDescriptor(_BILLINGSETUPSERVICE) - -DESCRIPTOR.services_by_name['BillingSetupService'] = _BILLINGSETUPSERVICE - -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/services/billing_setup_service_pb2_grpc.py b/google/ads/google_ads/v1/proto/services/billing_setup_service_pb2_grpc.py deleted file mode 100644 index bed3103ab..000000000 --- a/google/ads/google_ads/v1/proto/services/billing_setup_service_pb2_grpc.py +++ /dev/null @@ -1,84 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -import grpc - -from google.ads.google_ads.v1.proto.resources import billing_setup_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_billing__setup__pb2 -from google.ads.google_ads.v1.proto.services import billing_setup_service_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_billing__setup__service__pb2 - - -class BillingSetupServiceStub(object): - """Proto file describing the BillingSetup service. - - A service for designating the business entity responsible for accrued costs. - - A billing setup is associated with a Payments account. Billing-related - activity for all billing setups associated with a particular Payments account - will appear on a single invoice generated monthly. - - Mutates: - The REMOVE operation cancels a pending billing setup. - The CREATE operation creates a new billing setup. - """ - - def __init__(self, channel): - """Constructor. - - Args: - channel: A grpc.Channel. - """ - self.GetBillingSetup = channel.unary_unary( - '/google.ads.googleads.v1.services.BillingSetupService/GetBillingSetup', - request_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_billing__setup__service__pb2.GetBillingSetupRequest.SerializeToString, - response_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_billing__setup__pb2.BillingSetup.FromString, - ) - self.MutateBillingSetup = channel.unary_unary( - '/google.ads.googleads.v1.services.BillingSetupService/MutateBillingSetup', - request_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_billing__setup__service__pb2.MutateBillingSetupRequest.SerializeToString, - response_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_billing__setup__service__pb2.MutateBillingSetupResponse.FromString, - ) - - -class BillingSetupServiceServicer(object): - """Proto file describing the BillingSetup service. - - A service for designating the business entity responsible for accrued costs. - - A billing setup is associated with a Payments account. Billing-related - activity for all billing setups associated with a particular Payments account - will appear on a single invoice generated monthly. - - Mutates: - The REMOVE operation cancels a pending billing setup. - The CREATE operation creates a new billing setup. - """ - - def GetBillingSetup(self, request, context): - """Returns a billing setup. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def MutateBillingSetup(self, request, context): - """Creates a billing setup, or cancels an existing billing setup. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - -def add_BillingSetupServiceServicer_to_server(servicer, server): - rpc_method_handlers = { - 'GetBillingSetup': grpc.unary_unary_rpc_method_handler( - servicer.GetBillingSetup, - request_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_billing__setup__service__pb2.GetBillingSetupRequest.FromString, - response_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_billing__setup__pb2.BillingSetup.SerializeToString, - ), - 'MutateBillingSetup': grpc.unary_unary_rpc_method_handler( - servicer.MutateBillingSetup, - request_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_billing__setup__service__pb2.MutateBillingSetupRequest.FromString, - response_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_billing__setup__service__pb2.MutateBillingSetupResponse.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'google.ads.googleads.v1.services.BillingSetupService', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) diff --git a/google/ads/google_ads/v1/proto/services/campaign_audience_view_service_pb2.py b/google/ads/google_ads/v1/proto/services/campaign_audience_view_service_pb2.py deleted file mode 100644 index c07f036a2..000000000 --- a/google/ads/google_ads/v1/proto/services/campaign_audience_view_service_pb2.py +++ /dev/null @@ -1,107 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/services/campaign_audience_view_service.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.ads.google_ads.v1.proto.resources import campaign_audience_view_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_campaign__audience__view__pb2 -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/services/campaign_audience_view_service.proto', - package='google.ads.googleads.v1.services', - syntax='proto3', - serialized_options=_b('\n$com.google.ads.googleads.v1.servicesB CampaignAudienceViewServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v1/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V1.Services\312\002 Google\\Ads\\GoogleAds\\V1\\Services\352\002$Google::Ads::GoogleAds::V1::Services'), - serialized_pb=_b('\nKgoogle/ads/googleads_v1/proto/services/campaign_audience_view_service.proto\x12 google.ads.googleads.v1.services\x1a\x44google/ads/googleads_v1/proto/resources/campaign_audience_view.proto\x1a\x1cgoogle/api/annotations.proto\"7\n\x1eGetCampaignAudienceViewRequest\x12\x15\n\rresource_name\x18\x01 \x01(\t2\xf5\x01\n\x1b\x43\x61mpaignAudienceViewService\x12\xd5\x01\n\x17GetCampaignAudienceView\x12@.google.ads.googleads.v1.services.GetCampaignAudienceViewRequest\x1a\x37.google.ads.googleads.v1.resources.CampaignAudienceView\"?\x82\xd3\xe4\x93\x02\x39\x12\x37/v1/{resource_name=customers/*/campaignAudienceViews/*}B\x87\x02\n$com.google.ads.googleads.v1.servicesB CampaignAudienceViewServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v1/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V1.Services\xca\x02 Google\\Ads\\GoogleAds\\V1\\Services\xea\x02$Google::Ads::GoogleAds::V1::Servicesb\x06proto3') - , - dependencies=[google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_campaign__audience__view__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - - -_GETCAMPAIGNAUDIENCEVIEWREQUEST = _descriptor.Descriptor( - name='GetCampaignAudienceViewRequest', - full_name='google.ads.googleads.v1.services.GetCampaignAudienceViewRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.services.GetCampaignAudienceViewRequest.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=213, - serialized_end=268, -) - -DESCRIPTOR.message_types_by_name['GetCampaignAudienceViewRequest'] = _GETCAMPAIGNAUDIENCEVIEWREQUEST -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -GetCampaignAudienceViewRequest = _reflection.GeneratedProtocolMessageType('GetCampaignAudienceViewRequest', (_message.Message,), dict( - DESCRIPTOR = _GETCAMPAIGNAUDIENCEVIEWREQUEST, - __module__ = 'google.ads.googleads_v1.proto.services.campaign_audience_view_service_pb2' - , - __doc__ = """Request message for - [CampaignAudienceViewService.GetCampaignAudienceView][google.ads.googleads.v1.services.CampaignAudienceViewService.GetCampaignAudienceView]. - - - Attributes: - resource_name: - The resource name of the campaign audience view to fetch. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.GetCampaignAudienceViewRequest) - )) -_sym_db.RegisterMessage(GetCampaignAudienceViewRequest) - - -DESCRIPTOR._options = None - -_CAMPAIGNAUDIENCEVIEWSERVICE = _descriptor.ServiceDescriptor( - name='CampaignAudienceViewService', - full_name='google.ads.googleads.v1.services.CampaignAudienceViewService', - file=DESCRIPTOR, - index=0, - serialized_options=None, - serialized_start=271, - serialized_end=516, - methods=[ - _descriptor.MethodDescriptor( - name='GetCampaignAudienceView', - full_name='google.ads.googleads.v1.services.CampaignAudienceViewService.GetCampaignAudienceView', - index=0, - containing_service=None, - input_type=_GETCAMPAIGNAUDIENCEVIEWREQUEST, - output_type=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_campaign__audience__view__pb2._CAMPAIGNAUDIENCEVIEW, - serialized_options=_b('\202\323\344\223\0029\0227/v1/{resource_name=customers/*/campaignAudienceViews/*}'), - ), -]) -_sym_db.RegisterServiceDescriptor(_CAMPAIGNAUDIENCEVIEWSERVICE) - -DESCRIPTOR.services_by_name['CampaignAudienceViewService'] = _CAMPAIGNAUDIENCEVIEWSERVICE - -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/services/campaign_audience_view_service_pb2_grpc.py b/google/ads/google_ads/v1/proto/services/campaign_audience_view_service_pb2_grpc.py deleted file mode 100644 index 02701a275..000000000 --- a/google/ads/google_ads/v1/proto/services/campaign_audience_view_service_pb2_grpc.py +++ /dev/null @@ -1,51 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -import grpc - -from google.ads.google_ads.v1.proto.resources import campaign_audience_view_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_campaign__audience__view__pb2 -from google.ads.google_ads.v1.proto.services import campaign_audience_view_service_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_campaign__audience__view__service__pb2 - - -class CampaignAudienceViewServiceStub(object): - """Proto file describing the Campaign Audience View service. - - Service to manage campaign audience views. - """ - - def __init__(self, channel): - """Constructor. - - Args: - channel: A grpc.Channel. - """ - self.GetCampaignAudienceView = channel.unary_unary( - '/google.ads.googleads.v1.services.CampaignAudienceViewService/GetCampaignAudienceView', - request_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_campaign__audience__view__service__pb2.GetCampaignAudienceViewRequest.SerializeToString, - response_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_campaign__audience__view__pb2.CampaignAudienceView.FromString, - ) - - -class CampaignAudienceViewServiceServicer(object): - """Proto file describing the Campaign Audience View service. - - Service to manage campaign audience views. - """ - - def GetCampaignAudienceView(self, request, context): - """Returns the requested campaign audience view in full detail. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - -def add_CampaignAudienceViewServiceServicer_to_server(servicer, server): - rpc_method_handlers = { - 'GetCampaignAudienceView': grpc.unary_unary_rpc_method_handler( - servicer.GetCampaignAudienceView, - request_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_campaign__audience__view__service__pb2.GetCampaignAudienceViewRequest.FromString, - response_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_campaign__audience__view__pb2.CampaignAudienceView.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'google.ads.googleads.v1.services.CampaignAudienceViewService', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) diff --git a/google/ads/google_ads/v1/proto/services/campaign_bid_modifier_service_pb2.py b/google/ads/google_ads/v1/proto/services/campaign_bid_modifier_service_pb2.py deleted file mode 100644 index 5773a0501..000000000 --- a/google/ads/google_ads/v1/proto/services/campaign_bid_modifier_service_pb2.py +++ /dev/null @@ -1,406 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/services/campaign_bid_modifier_service.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.ads.google_ads.v1.proto.resources import campaign_bid_modifier_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_campaign__bid__modifier__pb2 -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 -from google.protobuf import field_mask_pb2 as google_dot_protobuf_dot_field__mask__pb2 -from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 -from google.rpc import status_pb2 as google_dot_rpc_dot_status__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/services/campaign_bid_modifier_service.proto', - package='google.ads.googleads.v1.services', - syntax='proto3', - serialized_options=_b('\n$com.google.ads.googleads.v1.servicesB\037CampaignBidModifierServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v1/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V1.Services\312\002 Google\\Ads\\GoogleAds\\V1\\Services\352\002$Google::Ads::GoogleAds::V1::Services'), - serialized_pb=_b('\nJgoogle/ads/googleads_v1/proto/services/campaign_bid_modifier_service.proto\x12 google.ads.googleads.v1.services\x1a\x43google/ads/googleads_v1/proto/resources/campaign_bid_modifier.proto\x1a\x1cgoogle/api/annotations.proto\x1a google/protobuf/field_mask.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x17google/rpc/status.proto\"6\n\x1dGetCampaignBidModifierRequest\x12\x15\n\rresource_name\x18\x01 \x01(\t\"\xbc\x01\n!MutateCampaignBidModifiersRequest\x12\x13\n\x0b\x63ustomer_id\x18\x01 \x01(\t\x12R\n\noperations\x18\x02 \x03(\x0b\x32>.google.ads.googleads.v1.services.CampaignBidModifierOperation\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\"\x82\x02\n\x1c\x43\x61mpaignBidModifierOperation\x12/\n\x0bupdate_mask\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12H\n\x06\x63reate\x18\x01 \x01(\x0b\x32\x36.google.ads.googleads.v1.resources.CampaignBidModifierH\x00\x12H\n\x06update\x18\x02 \x01(\x0b\x32\x36.google.ads.googleads.v1.resources.CampaignBidModifierH\x00\x12\x10\n\x06remove\x18\x03 \x01(\tH\x00\x42\x0b\n\toperation\"\xab\x01\n\"MutateCampaignBidModifiersResponse\x12\x31\n\x15partial_failure_error\x18\x03 \x01(\x0b\x32\x12.google.rpc.Status\x12R\n\x07results\x18\x02 \x03(\x0b\x32\x41.google.ads.googleads.v1.services.MutateCampaignBidModifierResult\"8\n\x1fMutateCampaignBidModifierResult\x12\x15\n\rresource_name\x18\x01 \x01(\t2\xe0\x03\n\x1a\x43\x61mpaignBidModifierService\x12\xd1\x01\n\x16GetCampaignBidModifier\x12?.google.ads.googleads.v1.services.GetCampaignBidModifierRequest\x1a\x36.google.ads.googleads.v1.resources.CampaignBidModifier\">\x82\xd3\xe4\x93\x02\x38\x12\x36/v1/{resource_name=customers/*/campaignBidModifiers/*}\x12\xed\x01\n\x1aMutateCampaignBidModifiers\x12\x43.google.ads.googleads.v1.services.MutateCampaignBidModifiersRequest\x1a\x44.google.ads.googleads.v1.services.MutateCampaignBidModifiersResponse\"D\x82\xd3\xe4\x93\x02>\"9/v1/customers/{customer_id=*}/campaignBidModifiers:mutate:\x01*B\x86\x02\n$com.google.ads.googleads.v1.servicesB\x1f\x43\x61mpaignBidModifierServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v1/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V1.Services\xca\x02 Google\\Ads\\GoogleAds\\V1\\Services\xea\x02$Google::Ads::GoogleAds::V1::Servicesb\x06proto3') - , - dependencies=[google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_campaign__bid__modifier__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_protobuf_dot_field__mask__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_rpc_dot_status__pb2.DESCRIPTOR,]) - - - - -_GETCAMPAIGNBIDMODIFIERREQUEST = _descriptor.Descriptor( - name='GetCampaignBidModifierRequest', - full_name='google.ads.googleads.v1.services.GetCampaignBidModifierRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.services.GetCampaignBidModifierRequest.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=302, - serialized_end=356, -) - - -_MUTATECAMPAIGNBIDMODIFIERSREQUEST = _descriptor.Descriptor( - name='MutateCampaignBidModifiersRequest', - full_name='google.ads.googleads.v1.services.MutateCampaignBidModifiersRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='customer_id', full_name='google.ads.googleads.v1.services.MutateCampaignBidModifiersRequest.customer_id', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='operations', full_name='google.ads.googleads.v1.services.MutateCampaignBidModifiersRequest.operations', index=1, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='partial_failure', full_name='google.ads.googleads.v1.services.MutateCampaignBidModifiersRequest.partial_failure', index=2, - number=3, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='validate_only', full_name='google.ads.googleads.v1.services.MutateCampaignBidModifiersRequest.validate_only', index=3, - number=4, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=359, - serialized_end=547, -) - - -_CAMPAIGNBIDMODIFIEROPERATION = _descriptor.Descriptor( - name='CampaignBidModifierOperation', - full_name='google.ads.googleads.v1.services.CampaignBidModifierOperation', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='update_mask', full_name='google.ads.googleads.v1.services.CampaignBidModifierOperation.update_mask', index=0, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='create', full_name='google.ads.googleads.v1.services.CampaignBidModifierOperation.create', index=1, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='update', full_name='google.ads.googleads.v1.services.CampaignBidModifierOperation.update', index=2, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='remove', full_name='google.ads.googleads.v1.services.CampaignBidModifierOperation.remove', index=3, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='operation', full_name='google.ads.googleads.v1.services.CampaignBidModifierOperation.operation', - index=0, containing_type=None, fields=[]), - ], - serialized_start=550, - serialized_end=808, -) - - -_MUTATECAMPAIGNBIDMODIFIERSRESPONSE = _descriptor.Descriptor( - name='MutateCampaignBidModifiersResponse', - full_name='google.ads.googleads.v1.services.MutateCampaignBidModifiersResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='partial_failure_error', full_name='google.ads.googleads.v1.services.MutateCampaignBidModifiersResponse.partial_failure_error', index=0, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='results', full_name='google.ads.googleads.v1.services.MutateCampaignBidModifiersResponse.results', index=1, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=811, - serialized_end=982, -) - - -_MUTATECAMPAIGNBIDMODIFIERRESULT = _descriptor.Descriptor( - name='MutateCampaignBidModifierResult', - full_name='google.ads.googleads.v1.services.MutateCampaignBidModifierResult', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.services.MutateCampaignBidModifierResult.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=984, - serialized_end=1040, -) - -_MUTATECAMPAIGNBIDMODIFIERSREQUEST.fields_by_name['operations'].message_type = _CAMPAIGNBIDMODIFIEROPERATION -_CAMPAIGNBIDMODIFIEROPERATION.fields_by_name['update_mask'].message_type = google_dot_protobuf_dot_field__mask__pb2._FIELDMASK -_CAMPAIGNBIDMODIFIEROPERATION.fields_by_name['create'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_campaign__bid__modifier__pb2._CAMPAIGNBIDMODIFIER -_CAMPAIGNBIDMODIFIEROPERATION.fields_by_name['update'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_campaign__bid__modifier__pb2._CAMPAIGNBIDMODIFIER -_CAMPAIGNBIDMODIFIEROPERATION.oneofs_by_name['operation'].fields.append( - _CAMPAIGNBIDMODIFIEROPERATION.fields_by_name['create']) -_CAMPAIGNBIDMODIFIEROPERATION.fields_by_name['create'].containing_oneof = _CAMPAIGNBIDMODIFIEROPERATION.oneofs_by_name['operation'] -_CAMPAIGNBIDMODIFIEROPERATION.oneofs_by_name['operation'].fields.append( - _CAMPAIGNBIDMODIFIEROPERATION.fields_by_name['update']) -_CAMPAIGNBIDMODIFIEROPERATION.fields_by_name['update'].containing_oneof = _CAMPAIGNBIDMODIFIEROPERATION.oneofs_by_name['operation'] -_CAMPAIGNBIDMODIFIEROPERATION.oneofs_by_name['operation'].fields.append( - _CAMPAIGNBIDMODIFIEROPERATION.fields_by_name['remove']) -_CAMPAIGNBIDMODIFIEROPERATION.fields_by_name['remove'].containing_oneof = _CAMPAIGNBIDMODIFIEROPERATION.oneofs_by_name['operation'] -_MUTATECAMPAIGNBIDMODIFIERSRESPONSE.fields_by_name['partial_failure_error'].message_type = google_dot_rpc_dot_status__pb2._STATUS -_MUTATECAMPAIGNBIDMODIFIERSRESPONSE.fields_by_name['results'].message_type = _MUTATECAMPAIGNBIDMODIFIERRESULT -DESCRIPTOR.message_types_by_name['GetCampaignBidModifierRequest'] = _GETCAMPAIGNBIDMODIFIERREQUEST -DESCRIPTOR.message_types_by_name['MutateCampaignBidModifiersRequest'] = _MUTATECAMPAIGNBIDMODIFIERSREQUEST -DESCRIPTOR.message_types_by_name['CampaignBidModifierOperation'] = _CAMPAIGNBIDMODIFIEROPERATION -DESCRIPTOR.message_types_by_name['MutateCampaignBidModifiersResponse'] = _MUTATECAMPAIGNBIDMODIFIERSRESPONSE -DESCRIPTOR.message_types_by_name['MutateCampaignBidModifierResult'] = _MUTATECAMPAIGNBIDMODIFIERRESULT -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -GetCampaignBidModifierRequest = _reflection.GeneratedProtocolMessageType('GetCampaignBidModifierRequest', (_message.Message,), dict( - DESCRIPTOR = _GETCAMPAIGNBIDMODIFIERREQUEST, - __module__ = 'google.ads.googleads_v1.proto.services.campaign_bid_modifier_service_pb2' - , - __doc__ = """Request message for - [CampaignBidModifierService.GetCampaignBidModifier][google.ads.googleads.v1.services.CampaignBidModifierService.GetCampaignBidModifier]. - - - Attributes: - resource_name: - The resource name of the campaign bid modifier to fetch. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.GetCampaignBidModifierRequest) - )) -_sym_db.RegisterMessage(GetCampaignBidModifierRequest) - -MutateCampaignBidModifiersRequest = _reflection.GeneratedProtocolMessageType('MutateCampaignBidModifiersRequest', (_message.Message,), dict( - DESCRIPTOR = _MUTATECAMPAIGNBIDMODIFIERSREQUEST, - __module__ = 'google.ads.googleads_v1.proto.services.campaign_bid_modifier_service_pb2' - , - __doc__ = """Request message for - [CampaignBidModifierService.MutateCampaignBidModifier][]. - - - Attributes: - customer_id: - ID of the customer whose campaign bid modifiers are being - modified. - operations: - The list of operations to perform on individual campaign bid - modifiers. - partial_failure: - If true, successful operations will be carried out and invalid - operations will return errors. If false, all operations will - be carried out in one transaction if and only if they are all - valid. Default is false. - validate_only: - If true, the request is validated but not executed. Only - errors are returned, not results. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.MutateCampaignBidModifiersRequest) - )) -_sym_db.RegisterMessage(MutateCampaignBidModifiersRequest) - -CampaignBidModifierOperation = _reflection.GeneratedProtocolMessageType('CampaignBidModifierOperation', (_message.Message,), dict( - DESCRIPTOR = _CAMPAIGNBIDMODIFIEROPERATION, - __module__ = 'google.ads.googleads_v1.proto.services.campaign_bid_modifier_service_pb2' - , - __doc__ = """A single operation (create, remove, update) on a campaign bid modifier. - - - Attributes: - update_mask: - FieldMask that determines which resource fields are modified - in an update. - operation: - The mutate operation. - create: - Create operation: No resource name is expected for the new - campaign bid modifier. - update: - Update operation: The campaign bid modifier is expected to - have a valid resource name. - remove: - Remove operation: A resource name for the removed campaign bid - modifier is expected, in this format: ``customers/{customer_i - d}/CampaignBidModifiers/{campaign_id}~{criterion_id}`` - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.CampaignBidModifierOperation) - )) -_sym_db.RegisterMessage(CampaignBidModifierOperation) - -MutateCampaignBidModifiersResponse = _reflection.GeneratedProtocolMessageType('MutateCampaignBidModifiersResponse', (_message.Message,), dict( - DESCRIPTOR = _MUTATECAMPAIGNBIDMODIFIERSRESPONSE, - __module__ = 'google.ads.googleads_v1.proto.services.campaign_bid_modifier_service_pb2' - , - __doc__ = """Response message for campaign bid modifiers mutate. - - - Attributes: - partial_failure_error: - Errors that pertain to operation failures in the partial - failure mode. Returned only when partial\_failure = true and - all errors occur inside the operations. If any errors occur - outside the operations (e.g. auth errors), we return an RPC - level error. - results: - All results for the mutate. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.MutateCampaignBidModifiersResponse) - )) -_sym_db.RegisterMessage(MutateCampaignBidModifiersResponse) - -MutateCampaignBidModifierResult = _reflection.GeneratedProtocolMessageType('MutateCampaignBidModifierResult', (_message.Message,), dict( - DESCRIPTOR = _MUTATECAMPAIGNBIDMODIFIERRESULT, - __module__ = 'google.ads.googleads_v1.proto.services.campaign_bid_modifier_service_pb2' - , - __doc__ = """The result for the criterion mutate. - - - Attributes: - resource_name: - Returned for successful operations. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.MutateCampaignBidModifierResult) - )) -_sym_db.RegisterMessage(MutateCampaignBidModifierResult) - - -DESCRIPTOR._options = None - -_CAMPAIGNBIDMODIFIERSERVICE = _descriptor.ServiceDescriptor( - name='CampaignBidModifierService', - full_name='google.ads.googleads.v1.services.CampaignBidModifierService', - file=DESCRIPTOR, - index=0, - serialized_options=None, - serialized_start=1043, - serialized_end=1523, - methods=[ - _descriptor.MethodDescriptor( - name='GetCampaignBidModifier', - full_name='google.ads.googleads.v1.services.CampaignBidModifierService.GetCampaignBidModifier', - index=0, - containing_service=None, - input_type=_GETCAMPAIGNBIDMODIFIERREQUEST, - output_type=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_campaign__bid__modifier__pb2._CAMPAIGNBIDMODIFIER, - serialized_options=_b('\202\323\344\223\0028\0226/v1/{resource_name=customers/*/campaignBidModifiers/*}'), - ), - _descriptor.MethodDescriptor( - name='MutateCampaignBidModifiers', - full_name='google.ads.googleads.v1.services.CampaignBidModifierService.MutateCampaignBidModifiers', - index=1, - containing_service=None, - input_type=_MUTATECAMPAIGNBIDMODIFIERSREQUEST, - output_type=_MUTATECAMPAIGNBIDMODIFIERSRESPONSE, - serialized_options=_b('\202\323\344\223\002>\"9/v1/customers/{customer_id=*}/campaignBidModifiers:mutate:\001*'), - ), -]) -_sym_db.RegisterServiceDescriptor(_CAMPAIGNBIDMODIFIERSERVICE) - -DESCRIPTOR.services_by_name['CampaignBidModifierService'] = _CAMPAIGNBIDMODIFIERSERVICE - -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/services/campaign_bid_modifier_service_pb2_grpc.py b/google/ads/google_ads/v1/proto/services/campaign_bid_modifier_service_pb2_grpc.py deleted file mode 100644 index cf99d835b..000000000 --- a/google/ads/google_ads/v1/proto/services/campaign_bid_modifier_service_pb2_grpc.py +++ /dev/null @@ -1,69 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -import grpc - -from google.ads.google_ads.v1.proto.resources import campaign_bid_modifier_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_campaign__bid__modifier__pb2 -from google.ads.google_ads.v1.proto.services import campaign_bid_modifier_service_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_campaign__bid__modifier__service__pb2 - - -class CampaignBidModifierServiceStub(object): - """Proto file describing the Campaign Bid Modifier service. - - Service to manage campaign bid modifiers. - """ - - def __init__(self, channel): - """Constructor. - - Args: - channel: A grpc.Channel. - """ - self.GetCampaignBidModifier = channel.unary_unary( - '/google.ads.googleads.v1.services.CampaignBidModifierService/GetCampaignBidModifier', - request_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_campaign__bid__modifier__service__pb2.GetCampaignBidModifierRequest.SerializeToString, - response_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_campaign__bid__modifier__pb2.CampaignBidModifier.FromString, - ) - self.MutateCampaignBidModifiers = channel.unary_unary( - '/google.ads.googleads.v1.services.CampaignBidModifierService/MutateCampaignBidModifiers', - request_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_campaign__bid__modifier__service__pb2.MutateCampaignBidModifiersRequest.SerializeToString, - response_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_campaign__bid__modifier__service__pb2.MutateCampaignBidModifiersResponse.FromString, - ) - - -class CampaignBidModifierServiceServicer(object): - """Proto file describing the Campaign Bid Modifier service. - - Service to manage campaign bid modifiers. - """ - - def GetCampaignBidModifier(self, request, context): - """Returns the requested campaign bid modifier in full detail. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def MutateCampaignBidModifiers(self, request, context): - """Creates, updates, or removes campaign bid modifiers. - Operation statuses are returned. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - -def add_CampaignBidModifierServiceServicer_to_server(servicer, server): - rpc_method_handlers = { - 'GetCampaignBidModifier': grpc.unary_unary_rpc_method_handler( - servicer.GetCampaignBidModifier, - request_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_campaign__bid__modifier__service__pb2.GetCampaignBidModifierRequest.FromString, - response_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_campaign__bid__modifier__pb2.CampaignBidModifier.SerializeToString, - ), - 'MutateCampaignBidModifiers': grpc.unary_unary_rpc_method_handler( - servicer.MutateCampaignBidModifiers, - request_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_campaign__bid__modifier__service__pb2.MutateCampaignBidModifiersRequest.FromString, - response_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_campaign__bid__modifier__service__pb2.MutateCampaignBidModifiersResponse.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'google.ads.googleads.v1.services.CampaignBidModifierService', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) diff --git a/google/ads/google_ads/v1/proto/services/campaign_budget_service_pb2.py b/google/ads/google_ads/v1/proto/services/campaign_budget_service_pb2.py deleted file mode 100644 index cc7b18374..000000000 --- a/google/ads/google_ads/v1/proto/services/campaign_budget_service_pb2.py +++ /dev/null @@ -1,406 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/services/campaign_budget_service.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.ads.google_ads.v1.proto.resources import campaign_budget_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_campaign__budget__pb2 -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 -from google.protobuf import field_mask_pb2 as google_dot_protobuf_dot_field__mask__pb2 -from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 -from google.rpc import status_pb2 as google_dot_rpc_dot_status__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/services/campaign_budget_service.proto', - package='google.ads.googleads.v1.services', - syntax='proto3', - serialized_options=_b('\n$com.google.ads.googleads.v1.servicesB\032CampaignBudgetServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v1/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V1.Services\312\002 Google\\Ads\\GoogleAds\\V1\\Services\352\002$Google::Ads::GoogleAds::V1::Services'), - serialized_pb=_b('\nDgoogle/ads/googleads_v1/proto/services/campaign_budget_service.proto\x12 google.ads.googleads.v1.services\x1a=google/ads/googleads_v1/proto/resources/campaign_budget.proto\x1a\x1cgoogle/api/annotations.proto\x1a google/protobuf/field_mask.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x17google/rpc/status.proto\"1\n\x18GetCampaignBudgetRequest\x12\x15\n\rresource_name\x18\x01 \x01(\t\"\xb2\x01\n\x1cMutateCampaignBudgetsRequest\x12\x13\n\x0b\x63ustomer_id\x18\x01 \x01(\t\x12M\n\noperations\x18\x02 \x03(\x0b\x32\x39.google.ads.googleads.v1.services.CampaignBudgetOperation\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\"\xf3\x01\n\x17\x43\x61mpaignBudgetOperation\x12/\n\x0bupdate_mask\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12\x43\n\x06\x63reate\x18\x01 \x01(\x0b\x32\x31.google.ads.googleads.v1.resources.CampaignBudgetH\x00\x12\x43\n\x06update\x18\x02 \x01(\x0b\x32\x31.google.ads.googleads.v1.resources.CampaignBudgetH\x00\x12\x10\n\x06remove\x18\x03 \x01(\tH\x00\x42\x0b\n\toperation\"\xa1\x01\n\x1dMutateCampaignBudgetsResponse\x12\x31\n\x15partial_failure_error\x18\x03 \x01(\x0b\x32\x12.google.rpc.Status\x12M\n\x07results\x18\x02 \x03(\x0b\x32<.google.ads.googleads.v1.services.MutateCampaignBudgetResult\"3\n\x1aMutateCampaignBudgetResult\x12\x15\n\rresource_name\x18\x01 \x01(\t2\xb3\x03\n\x15\x43\x61mpaignBudgetService\x12\xbd\x01\n\x11GetCampaignBudget\x12:.google.ads.googleads.v1.services.GetCampaignBudgetRequest\x1a\x31.google.ads.googleads.v1.resources.CampaignBudget\"9\x82\xd3\xe4\x93\x02\x33\x12\x31/v1/{resource_name=customers/*/campaignBudgets/*}\x12\xd9\x01\n\x15MutateCampaignBudgets\x12>.google.ads.googleads.v1.services.MutateCampaignBudgetsRequest\x1a?.google.ads.googleads.v1.services.MutateCampaignBudgetsResponse\"?\x82\xd3\xe4\x93\x02\x39\"4/v1/customers/{customer_id=*}/campaignBudgets:mutate:\x01*B\x81\x02\n$com.google.ads.googleads.v1.servicesB\x1a\x43\x61mpaignBudgetServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v1/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V1.Services\xca\x02 Google\\Ads\\GoogleAds\\V1\\Services\xea\x02$Google::Ads::GoogleAds::V1::Servicesb\x06proto3') - , - dependencies=[google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_campaign__budget__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_protobuf_dot_field__mask__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_rpc_dot_status__pb2.DESCRIPTOR,]) - - - - -_GETCAMPAIGNBUDGETREQUEST = _descriptor.Descriptor( - name='GetCampaignBudgetRequest', - full_name='google.ads.googleads.v1.services.GetCampaignBudgetRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.services.GetCampaignBudgetRequest.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=290, - serialized_end=339, -) - - -_MUTATECAMPAIGNBUDGETSREQUEST = _descriptor.Descriptor( - name='MutateCampaignBudgetsRequest', - full_name='google.ads.googleads.v1.services.MutateCampaignBudgetsRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='customer_id', full_name='google.ads.googleads.v1.services.MutateCampaignBudgetsRequest.customer_id', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='operations', full_name='google.ads.googleads.v1.services.MutateCampaignBudgetsRequest.operations', index=1, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='partial_failure', full_name='google.ads.googleads.v1.services.MutateCampaignBudgetsRequest.partial_failure', index=2, - number=3, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='validate_only', full_name='google.ads.googleads.v1.services.MutateCampaignBudgetsRequest.validate_only', index=3, - number=4, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=342, - serialized_end=520, -) - - -_CAMPAIGNBUDGETOPERATION = _descriptor.Descriptor( - name='CampaignBudgetOperation', - full_name='google.ads.googleads.v1.services.CampaignBudgetOperation', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='update_mask', full_name='google.ads.googleads.v1.services.CampaignBudgetOperation.update_mask', index=0, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='create', full_name='google.ads.googleads.v1.services.CampaignBudgetOperation.create', index=1, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='update', full_name='google.ads.googleads.v1.services.CampaignBudgetOperation.update', index=2, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='remove', full_name='google.ads.googleads.v1.services.CampaignBudgetOperation.remove', index=3, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='operation', full_name='google.ads.googleads.v1.services.CampaignBudgetOperation.operation', - index=0, containing_type=None, fields=[]), - ], - serialized_start=523, - serialized_end=766, -) - - -_MUTATECAMPAIGNBUDGETSRESPONSE = _descriptor.Descriptor( - name='MutateCampaignBudgetsResponse', - full_name='google.ads.googleads.v1.services.MutateCampaignBudgetsResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='partial_failure_error', full_name='google.ads.googleads.v1.services.MutateCampaignBudgetsResponse.partial_failure_error', index=0, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='results', full_name='google.ads.googleads.v1.services.MutateCampaignBudgetsResponse.results', index=1, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=769, - serialized_end=930, -) - - -_MUTATECAMPAIGNBUDGETRESULT = _descriptor.Descriptor( - name='MutateCampaignBudgetResult', - full_name='google.ads.googleads.v1.services.MutateCampaignBudgetResult', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.services.MutateCampaignBudgetResult.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=932, - serialized_end=983, -) - -_MUTATECAMPAIGNBUDGETSREQUEST.fields_by_name['operations'].message_type = _CAMPAIGNBUDGETOPERATION -_CAMPAIGNBUDGETOPERATION.fields_by_name['update_mask'].message_type = google_dot_protobuf_dot_field__mask__pb2._FIELDMASK -_CAMPAIGNBUDGETOPERATION.fields_by_name['create'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_campaign__budget__pb2._CAMPAIGNBUDGET -_CAMPAIGNBUDGETOPERATION.fields_by_name['update'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_campaign__budget__pb2._CAMPAIGNBUDGET -_CAMPAIGNBUDGETOPERATION.oneofs_by_name['operation'].fields.append( - _CAMPAIGNBUDGETOPERATION.fields_by_name['create']) -_CAMPAIGNBUDGETOPERATION.fields_by_name['create'].containing_oneof = _CAMPAIGNBUDGETOPERATION.oneofs_by_name['operation'] -_CAMPAIGNBUDGETOPERATION.oneofs_by_name['operation'].fields.append( - _CAMPAIGNBUDGETOPERATION.fields_by_name['update']) -_CAMPAIGNBUDGETOPERATION.fields_by_name['update'].containing_oneof = _CAMPAIGNBUDGETOPERATION.oneofs_by_name['operation'] -_CAMPAIGNBUDGETOPERATION.oneofs_by_name['operation'].fields.append( - _CAMPAIGNBUDGETOPERATION.fields_by_name['remove']) -_CAMPAIGNBUDGETOPERATION.fields_by_name['remove'].containing_oneof = _CAMPAIGNBUDGETOPERATION.oneofs_by_name['operation'] -_MUTATECAMPAIGNBUDGETSRESPONSE.fields_by_name['partial_failure_error'].message_type = google_dot_rpc_dot_status__pb2._STATUS -_MUTATECAMPAIGNBUDGETSRESPONSE.fields_by_name['results'].message_type = _MUTATECAMPAIGNBUDGETRESULT -DESCRIPTOR.message_types_by_name['GetCampaignBudgetRequest'] = _GETCAMPAIGNBUDGETREQUEST -DESCRIPTOR.message_types_by_name['MutateCampaignBudgetsRequest'] = _MUTATECAMPAIGNBUDGETSREQUEST -DESCRIPTOR.message_types_by_name['CampaignBudgetOperation'] = _CAMPAIGNBUDGETOPERATION -DESCRIPTOR.message_types_by_name['MutateCampaignBudgetsResponse'] = _MUTATECAMPAIGNBUDGETSRESPONSE -DESCRIPTOR.message_types_by_name['MutateCampaignBudgetResult'] = _MUTATECAMPAIGNBUDGETRESULT -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -GetCampaignBudgetRequest = _reflection.GeneratedProtocolMessageType('GetCampaignBudgetRequest', (_message.Message,), dict( - DESCRIPTOR = _GETCAMPAIGNBUDGETREQUEST, - __module__ = 'google.ads.googleads_v1.proto.services.campaign_budget_service_pb2' - , - __doc__ = """Request message for - [CampaignBudgetService.GetCampaignBudget][google.ads.googleads.v1.services.CampaignBudgetService.GetCampaignBudget]. - - - Attributes: - resource_name: - The resource name of the campaign budget to fetch. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.GetCampaignBudgetRequest) - )) -_sym_db.RegisterMessage(GetCampaignBudgetRequest) - -MutateCampaignBudgetsRequest = _reflection.GeneratedProtocolMessageType('MutateCampaignBudgetsRequest', (_message.Message,), dict( - DESCRIPTOR = _MUTATECAMPAIGNBUDGETSREQUEST, - __module__ = 'google.ads.googleads_v1.proto.services.campaign_budget_service_pb2' - , - __doc__ = """Request message for - [CampaignBudgetService.MutateCampaignBudgets][google.ads.googleads.v1.services.CampaignBudgetService.MutateCampaignBudgets]. - - - Attributes: - customer_id: - The ID of the customer whose campaign budgets are being - modified. - operations: - The list of operations to perform on individual campaign - budgets. - partial_failure: - If true, successful operations will be carried out and invalid - operations will return errors. If false, all operations will - be carried out in one transaction if and only if they are all - valid. Default is false. - validate_only: - If true, the request is validated but not executed. Only - errors are returned, not results. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.MutateCampaignBudgetsRequest) - )) -_sym_db.RegisterMessage(MutateCampaignBudgetsRequest) - -CampaignBudgetOperation = _reflection.GeneratedProtocolMessageType('CampaignBudgetOperation', (_message.Message,), dict( - DESCRIPTOR = _CAMPAIGNBUDGETOPERATION, - __module__ = 'google.ads.googleads_v1.proto.services.campaign_budget_service_pb2' - , - __doc__ = """A single operation (create, update, remove) on a campaign budget. - - - Attributes: - update_mask: - FieldMask that determines which resource fields are modified - in an update. - operation: - The mutate operation. - create: - Create operation: No resource name is expected for the new - budget. - update: - Update operation: The campaign budget is expected to have a - valid resource name. - remove: - Remove operation: A resource name for the removed budget is - expected, in this format: - ``customers/{customer_id}/campaignBudgets/{budget_id}`` - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.CampaignBudgetOperation) - )) -_sym_db.RegisterMessage(CampaignBudgetOperation) - -MutateCampaignBudgetsResponse = _reflection.GeneratedProtocolMessageType('MutateCampaignBudgetsResponse', (_message.Message,), dict( - DESCRIPTOR = _MUTATECAMPAIGNBUDGETSRESPONSE, - __module__ = 'google.ads.googleads_v1.proto.services.campaign_budget_service_pb2' - , - __doc__ = """Response message for campaign budget mutate. - - - Attributes: - partial_failure_error: - Errors that pertain to operation failures in the partial - failure mode. Returned only when partial\_failure = true and - all errors occur inside the operations. If any errors occur - outside the operations (e.g. auth errors), we return an RPC - level error. - results: - All results for the mutate. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.MutateCampaignBudgetsResponse) - )) -_sym_db.RegisterMessage(MutateCampaignBudgetsResponse) - -MutateCampaignBudgetResult = _reflection.GeneratedProtocolMessageType('MutateCampaignBudgetResult', (_message.Message,), dict( - DESCRIPTOR = _MUTATECAMPAIGNBUDGETRESULT, - __module__ = 'google.ads.googleads_v1.proto.services.campaign_budget_service_pb2' - , - __doc__ = """The result for the campaign budget mutate. - - - Attributes: - resource_name: - Returned for successful operations. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.MutateCampaignBudgetResult) - )) -_sym_db.RegisterMessage(MutateCampaignBudgetResult) - - -DESCRIPTOR._options = None - -_CAMPAIGNBUDGETSERVICE = _descriptor.ServiceDescriptor( - name='CampaignBudgetService', - full_name='google.ads.googleads.v1.services.CampaignBudgetService', - file=DESCRIPTOR, - index=0, - serialized_options=None, - serialized_start=986, - serialized_end=1421, - methods=[ - _descriptor.MethodDescriptor( - name='GetCampaignBudget', - full_name='google.ads.googleads.v1.services.CampaignBudgetService.GetCampaignBudget', - index=0, - containing_service=None, - input_type=_GETCAMPAIGNBUDGETREQUEST, - output_type=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_campaign__budget__pb2._CAMPAIGNBUDGET, - serialized_options=_b('\202\323\344\223\0023\0221/v1/{resource_name=customers/*/campaignBudgets/*}'), - ), - _descriptor.MethodDescriptor( - name='MutateCampaignBudgets', - full_name='google.ads.googleads.v1.services.CampaignBudgetService.MutateCampaignBudgets', - index=1, - containing_service=None, - input_type=_MUTATECAMPAIGNBUDGETSREQUEST, - output_type=_MUTATECAMPAIGNBUDGETSRESPONSE, - serialized_options=_b('\202\323\344\223\0029\"4/v1/customers/{customer_id=*}/campaignBudgets:mutate:\001*'), - ), -]) -_sym_db.RegisterServiceDescriptor(_CAMPAIGNBUDGETSERVICE) - -DESCRIPTOR.services_by_name['CampaignBudgetService'] = _CAMPAIGNBUDGETSERVICE - -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/services/campaign_budget_service_pb2_grpc.py b/google/ads/google_ads/v1/proto/services/campaign_budget_service_pb2_grpc.py deleted file mode 100644 index 74eb84466..000000000 --- a/google/ads/google_ads/v1/proto/services/campaign_budget_service_pb2_grpc.py +++ /dev/null @@ -1,69 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -import grpc - -from google.ads.google_ads.v1.proto.resources import campaign_budget_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_campaign__budget__pb2 -from google.ads.google_ads.v1.proto.services import campaign_budget_service_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_campaign__budget__service__pb2 - - -class CampaignBudgetServiceStub(object): - """Proto file describing the Campaign Budget service. - - Service to manage campaign budgets. - """ - - def __init__(self, channel): - """Constructor. - - Args: - channel: A grpc.Channel. - """ - self.GetCampaignBudget = channel.unary_unary( - '/google.ads.googleads.v1.services.CampaignBudgetService/GetCampaignBudget', - request_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_campaign__budget__service__pb2.GetCampaignBudgetRequest.SerializeToString, - response_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_campaign__budget__pb2.CampaignBudget.FromString, - ) - self.MutateCampaignBudgets = channel.unary_unary( - '/google.ads.googleads.v1.services.CampaignBudgetService/MutateCampaignBudgets', - request_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_campaign__budget__service__pb2.MutateCampaignBudgetsRequest.SerializeToString, - response_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_campaign__budget__service__pb2.MutateCampaignBudgetsResponse.FromString, - ) - - -class CampaignBudgetServiceServicer(object): - """Proto file describing the Campaign Budget service. - - Service to manage campaign budgets. - """ - - def GetCampaignBudget(self, request, context): - """Returns the requested Campaign Budget in full detail. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def MutateCampaignBudgets(self, request, context): - """Creates, updates, or removes campaign budgets. Operation statuses are - returned. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - -def add_CampaignBudgetServiceServicer_to_server(servicer, server): - rpc_method_handlers = { - 'GetCampaignBudget': grpc.unary_unary_rpc_method_handler( - servicer.GetCampaignBudget, - request_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_campaign__budget__service__pb2.GetCampaignBudgetRequest.FromString, - response_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_campaign__budget__pb2.CampaignBudget.SerializeToString, - ), - 'MutateCampaignBudgets': grpc.unary_unary_rpc_method_handler( - servicer.MutateCampaignBudgets, - request_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_campaign__budget__service__pb2.MutateCampaignBudgetsRequest.FromString, - response_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_campaign__budget__service__pb2.MutateCampaignBudgetsResponse.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'google.ads.googleads.v1.services.CampaignBudgetService', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) diff --git a/google/ads/google_ads/v1/proto/services/campaign_criterion_service_pb2.py b/google/ads/google_ads/v1/proto/services/campaign_criterion_service_pb2.py deleted file mode 100644 index 0e7ea1a10..000000000 --- a/google/ads/google_ads/v1/proto/services/campaign_criterion_service_pb2.py +++ /dev/null @@ -1,404 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/services/campaign_criterion_service.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.ads.google_ads.v1.proto.resources import campaign_criterion_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_campaign__criterion__pb2 -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 -from google.protobuf import field_mask_pb2 as google_dot_protobuf_dot_field__mask__pb2 -from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 -from google.rpc import status_pb2 as google_dot_rpc_dot_status__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/services/campaign_criterion_service.proto', - package='google.ads.googleads.v1.services', - syntax='proto3', - serialized_options=_b('\n$com.google.ads.googleads.v1.servicesB\035CampaignCriterionServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v1/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V1.Services\312\002 Google\\Ads\\GoogleAds\\V1\\Services\352\002$Google::Ads::GoogleAds::V1::Services'), - serialized_pb=_b('\nGgoogle/ads/googleads_v1/proto/services/campaign_criterion_service.proto\x12 google.ads.googleads.v1.services\x1a@google/ads/googleads_v1/proto/resources/campaign_criterion.proto\x1a\x1cgoogle/api/annotations.proto\x1a google/protobuf/field_mask.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x17google/rpc/status.proto\"4\n\x1bGetCampaignCriterionRequest\x12\x15\n\rresource_name\x18\x01 \x01(\t\"\xb6\x01\n\x1dMutateCampaignCriteriaRequest\x12\x13\n\x0b\x63ustomer_id\x18\x01 \x01(\t\x12P\n\noperations\x18\x02 \x03(\x0b\x32<.google.ads.googleads.v1.services.CampaignCriterionOperation\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\"\xfc\x01\n\x1a\x43\x61mpaignCriterionOperation\x12/\n\x0bupdate_mask\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12\x46\n\x06\x63reate\x18\x01 \x01(\x0b\x32\x34.google.ads.googleads.v1.resources.CampaignCriterionH\x00\x12\x46\n\x06update\x18\x02 \x01(\x0b\x32\x34.google.ads.googleads.v1.resources.CampaignCriterionH\x00\x12\x10\n\x06remove\x18\x03 \x01(\tH\x00\x42\x0b\n\toperation\"\xa5\x01\n\x1eMutateCampaignCriteriaResponse\x12\x31\n\x15partial_failure_error\x18\x03 \x01(\x0b\x32\x12.google.rpc.Status\x12P\n\x07results\x18\x02 \x03(\x0b\x32?.google.ads.googleads.v1.services.MutateCampaignCriterionResult\"6\n\x1dMutateCampaignCriterionResult\x12\x15\n\rresource_name\x18\x01 \x01(\t2\xc4\x03\n\x18\x43\x61mpaignCriterionService\x12\xc7\x01\n\x14GetCampaignCriterion\x12=.google.ads.googleads.v1.services.GetCampaignCriterionRequest\x1a\x34.google.ads.googleads.v1.resources.CampaignCriterion\":\x82\xd3\xe4\x93\x02\x34\x12\x32/v1/{resource_name=customers/*/campaignCriteria/*}\x12\xdd\x01\n\x16MutateCampaignCriteria\x12?.google.ads.googleads.v1.services.MutateCampaignCriteriaRequest\x1a@.google.ads.googleads.v1.services.MutateCampaignCriteriaResponse\"@\x82\xd3\xe4\x93\x02:\"5/v1/customers/{customer_id=*}/campaignCriteria:mutate:\x01*B\x84\x02\n$com.google.ads.googleads.v1.servicesB\x1d\x43\x61mpaignCriterionServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v1/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V1.Services\xca\x02 Google\\Ads\\GoogleAds\\V1\\Services\xea\x02$Google::Ads::GoogleAds::V1::Servicesb\x06proto3') - , - dependencies=[google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_campaign__criterion__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_protobuf_dot_field__mask__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_rpc_dot_status__pb2.DESCRIPTOR,]) - - - - -_GETCAMPAIGNCRITERIONREQUEST = _descriptor.Descriptor( - name='GetCampaignCriterionRequest', - full_name='google.ads.googleads.v1.services.GetCampaignCriterionRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.services.GetCampaignCriterionRequest.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=296, - serialized_end=348, -) - - -_MUTATECAMPAIGNCRITERIAREQUEST = _descriptor.Descriptor( - name='MutateCampaignCriteriaRequest', - full_name='google.ads.googleads.v1.services.MutateCampaignCriteriaRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='customer_id', full_name='google.ads.googleads.v1.services.MutateCampaignCriteriaRequest.customer_id', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='operations', full_name='google.ads.googleads.v1.services.MutateCampaignCriteriaRequest.operations', index=1, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='partial_failure', full_name='google.ads.googleads.v1.services.MutateCampaignCriteriaRequest.partial_failure', index=2, - number=3, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='validate_only', full_name='google.ads.googleads.v1.services.MutateCampaignCriteriaRequest.validate_only', index=3, - number=4, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=351, - serialized_end=533, -) - - -_CAMPAIGNCRITERIONOPERATION = _descriptor.Descriptor( - name='CampaignCriterionOperation', - full_name='google.ads.googleads.v1.services.CampaignCriterionOperation', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='update_mask', full_name='google.ads.googleads.v1.services.CampaignCriterionOperation.update_mask', index=0, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='create', full_name='google.ads.googleads.v1.services.CampaignCriterionOperation.create', index=1, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='update', full_name='google.ads.googleads.v1.services.CampaignCriterionOperation.update', index=2, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='remove', full_name='google.ads.googleads.v1.services.CampaignCriterionOperation.remove', index=3, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='operation', full_name='google.ads.googleads.v1.services.CampaignCriterionOperation.operation', - index=0, containing_type=None, fields=[]), - ], - serialized_start=536, - serialized_end=788, -) - - -_MUTATECAMPAIGNCRITERIARESPONSE = _descriptor.Descriptor( - name='MutateCampaignCriteriaResponse', - full_name='google.ads.googleads.v1.services.MutateCampaignCriteriaResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='partial_failure_error', full_name='google.ads.googleads.v1.services.MutateCampaignCriteriaResponse.partial_failure_error', index=0, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='results', full_name='google.ads.googleads.v1.services.MutateCampaignCriteriaResponse.results', index=1, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=791, - serialized_end=956, -) - - -_MUTATECAMPAIGNCRITERIONRESULT = _descriptor.Descriptor( - name='MutateCampaignCriterionResult', - full_name='google.ads.googleads.v1.services.MutateCampaignCriterionResult', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.services.MutateCampaignCriterionResult.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=958, - serialized_end=1012, -) - -_MUTATECAMPAIGNCRITERIAREQUEST.fields_by_name['operations'].message_type = _CAMPAIGNCRITERIONOPERATION -_CAMPAIGNCRITERIONOPERATION.fields_by_name['update_mask'].message_type = google_dot_protobuf_dot_field__mask__pb2._FIELDMASK -_CAMPAIGNCRITERIONOPERATION.fields_by_name['create'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_campaign__criterion__pb2._CAMPAIGNCRITERION -_CAMPAIGNCRITERIONOPERATION.fields_by_name['update'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_campaign__criterion__pb2._CAMPAIGNCRITERION -_CAMPAIGNCRITERIONOPERATION.oneofs_by_name['operation'].fields.append( - _CAMPAIGNCRITERIONOPERATION.fields_by_name['create']) -_CAMPAIGNCRITERIONOPERATION.fields_by_name['create'].containing_oneof = _CAMPAIGNCRITERIONOPERATION.oneofs_by_name['operation'] -_CAMPAIGNCRITERIONOPERATION.oneofs_by_name['operation'].fields.append( - _CAMPAIGNCRITERIONOPERATION.fields_by_name['update']) -_CAMPAIGNCRITERIONOPERATION.fields_by_name['update'].containing_oneof = _CAMPAIGNCRITERIONOPERATION.oneofs_by_name['operation'] -_CAMPAIGNCRITERIONOPERATION.oneofs_by_name['operation'].fields.append( - _CAMPAIGNCRITERIONOPERATION.fields_by_name['remove']) -_CAMPAIGNCRITERIONOPERATION.fields_by_name['remove'].containing_oneof = _CAMPAIGNCRITERIONOPERATION.oneofs_by_name['operation'] -_MUTATECAMPAIGNCRITERIARESPONSE.fields_by_name['partial_failure_error'].message_type = google_dot_rpc_dot_status__pb2._STATUS -_MUTATECAMPAIGNCRITERIARESPONSE.fields_by_name['results'].message_type = _MUTATECAMPAIGNCRITERIONRESULT -DESCRIPTOR.message_types_by_name['GetCampaignCriterionRequest'] = _GETCAMPAIGNCRITERIONREQUEST -DESCRIPTOR.message_types_by_name['MutateCampaignCriteriaRequest'] = _MUTATECAMPAIGNCRITERIAREQUEST -DESCRIPTOR.message_types_by_name['CampaignCriterionOperation'] = _CAMPAIGNCRITERIONOPERATION -DESCRIPTOR.message_types_by_name['MutateCampaignCriteriaResponse'] = _MUTATECAMPAIGNCRITERIARESPONSE -DESCRIPTOR.message_types_by_name['MutateCampaignCriterionResult'] = _MUTATECAMPAIGNCRITERIONRESULT -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -GetCampaignCriterionRequest = _reflection.GeneratedProtocolMessageType('GetCampaignCriterionRequest', (_message.Message,), dict( - DESCRIPTOR = _GETCAMPAIGNCRITERIONREQUEST, - __module__ = 'google.ads.googleads_v1.proto.services.campaign_criterion_service_pb2' - , - __doc__ = """Request message for - [CampaignCriterionService.GetCampaignCriterion][google.ads.googleads.v1.services.CampaignCriterionService.GetCampaignCriterion]. - - - Attributes: - resource_name: - The resource name of the criterion to fetch. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.GetCampaignCriterionRequest) - )) -_sym_db.RegisterMessage(GetCampaignCriterionRequest) - -MutateCampaignCriteriaRequest = _reflection.GeneratedProtocolMessageType('MutateCampaignCriteriaRequest', (_message.Message,), dict( - DESCRIPTOR = _MUTATECAMPAIGNCRITERIAREQUEST, - __module__ = 'google.ads.googleads_v1.proto.services.campaign_criterion_service_pb2' - , - __doc__ = """Request message for - [CampaignCriterionService.MutateCampaignCriteria][google.ads.googleads.v1.services.CampaignCriterionService.MutateCampaignCriteria]. - - - Attributes: - customer_id: - The ID of the customer whose criteria are being modified. - operations: - The list of operations to perform on individual criteria. - partial_failure: - If true, successful operations will be carried out and invalid - operations will return errors. If false, all operations will - be carried out in one transaction if and only if they are all - valid. Default is false. - validate_only: - If true, the request is validated but not executed. Only - errors are returned, not results. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.MutateCampaignCriteriaRequest) - )) -_sym_db.RegisterMessage(MutateCampaignCriteriaRequest) - -CampaignCriterionOperation = _reflection.GeneratedProtocolMessageType('CampaignCriterionOperation', (_message.Message,), dict( - DESCRIPTOR = _CAMPAIGNCRITERIONOPERATION, - __module__ = 'google.ads.googleads_v1.proto.services.campaign_criterion_service_pb2' - , - __doc__ = """A single operation (create, update, remove) on a campaign criterion. - - - Attributes: - update_mask: - FieldMask that determines which resource fields are modified - in an update. - operation: - The mutate operation. - create: - Create operation: No resource name is expected for the new - criterion. - update: - Update operation: The criterion is expected to have a valid - resource name. - remove: - Remove operation: A resource name for the removed criterion is - expected, in this format: ``customers/{customer_id}/campaignC - riteria/{campaign_id}~{criterion_id}`` - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.CampaignCriterionOperation) - )) -_sym_db.RegisterMessage(CampaignCriterionOperation) - -MutateCampaignCriteriaResponse = _reflection.GeneratedProtocolMessageType('MutateCampaignCriteriaResponse', (_message.Message,), dict( - DESCRIPTOR = _MUTATECAMPAIGNCRITERIARESPONSE, - __module__ = 'google.ads.googleads_v1.proto.services.campaign_criterion_service_pb2' - , - __doc__ = """Response message for campaign criterion mutate. - - - Attributes: - partial_failure_error: - Errors that pertain to operation failures in the partial - failure mode. Returned only when partial\_failure = true and - all errors occur inside the operations. If any errors occur - outside the operations (e.g. auth errors), we return an RPC - level error. - results: - All results for the mutate. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.MutateCampaignCriteriaResponse) - )) -_sym_db.RegisterMessage(MutateCampaignCriteriaResponse) - -MutateCampaignCriterionResult = _reflection.GeneratedProtocolMessageType('MutateCampaignCriterionResult', (_message.Message,), dict( - DESCRIPTOR = _MUTATECAMPAIGNCRITERIONRESULT, - __module__ = 'google.ads.googleads_v1.proto.services.campaign_criterion_service_pb2' - , - __doc__ = """The result for the criterion mutate. - - - Attributes: - resource_name: - Returned for successful operations. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.MutateCampaignCriterionResult) - )) -_sym_db.RegisterMessage(MutateCampaignCriterionResult) - - -DESCRIPTOR._options = None - -_CAMPAIGNCRITERIONSERVICE = _descriptor.ServiceDescriptor( - name='CampaignCriterionService', - full_name='google.ads.googleads.v1.services.CampaignCriterionService', - file=DESCRIPTOR, - index=0, - serialized_options=None, - serialized_start=1015, - serialized_end=1467, - methods=[ - _descriptor.MethodDescriptor( - name='GetCampaignCriterion', - full_name='google.ads.googleads.v1.services.CampaignCriterionService.GetCampaignCriterion', - index=0, - containing_service=None, - input_type=_GETCAMPAIGNCRITERIONREQUEST, - output_type=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_campaign__criterion__pb2._CAMPAIGNCRITERION, - serialized_options=_b('\202\323\344\223\0024\0222/v1/{resource_name=customers/*/campaignCriteria/*}'), - ), - _descriptor.MethodDescriptor( - name='MutateCampaignCriteria', - full_name='google.ads.googleads.v1.services.CampaignCriterionService.MutateCampaignCriteria', - index=1, - containing_service=None, - input_type=_MUTATECAMPAIGNCRITERIAREQUEST, - output_type=_MUTATECAMPAIGNCRITERIARESPONSE, - serialized_options=_b('\202\323\344\223\002:\"5/v1/customers/{customer_id=*}/campaignCriteria:mutate:\001*'), - ), -]) -_sym_db.RegisterServiceDescriptor(_CAMPAIGNCRITERIONSERVICE) - -DESCRIPTOR.services_by_name['CampaignCriterionService'] = _CAMPAIGNCRITERIONSERVICE - -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/services/campaign_criterion_service_pb2_grpc.py b/google/ads/google_ads/v1/proto/services/campaign_criterion_service_pb2_grpc.py deleted file mode 100644 index b2f37d282..000000000 --- a/google/ads/google_ads/v1/proto/services/campaign_criterion_service_pb2_grpc.py +++ /dev/null @@ -1,68 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -import grpc - -from google.ads.google_ads.v1.proto.resources import campaign_criterion_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_campaign__criterion__pb2 -from google.ads.google_ads.v1.proto.services import campaign_criterion_service_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_campaign__criterion__service__pb2 - - -class CampaignCriterionServiceStub(object): - """Proto file describing the Campaign Criterion service. - - Service to manage campaign criteria. - """ - - def __init__(self, channel): - """Constructor. - - Args: - channel: A grpc.Channel. - """ - self.GetCampaignCriterion = channel.unary_unary( - '/google.ads.googleads.v1.services.CampaignCriterionService/GetCampaignCriterion', - request_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_campaign__criterion__service__pb2.GetCampaignCriterionRequest.SerializeToString, - response_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_campaign__criterion__pb2.CampaignCriterion.FromString, - ) - self.MutateCampaignCriteria = channel.unary_unary( - '/google.ads.googleads.v1.services.CampaignCriterionService/MutateCampaignCriteria', - request_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_campaign__criterion__service__pb2.MutateCampaignCriteriaRequest.SerializeToString, - response_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_campaign__criterion__service__pb2.MutateCampaignCriteriaResponse.FromString, - ) - - -class CampaignCriterionServiceServicer(object): - """Proto file describing the Campaign Criterion service. - - Service to manage campaign criteria. - """ - - def GetCampaignCriterion(self, request, context): - """Returns the requested criterion in full detail. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def MutateCampaignCriteria(self, request, context): - """Creates, updates, or removes criteria. Operation statuses are returned. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - -def add_CampaignCriterionServiceServicer_to_server(servicer, server): - rpc_method_handlers = { - 'GetCampaignCriterion': grpc.unary_unary_rpc_method_handler( - servicer.GetCampaignCriterion, - request_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_campaign__criterion__service__pb2.GetCampaignCriterionRequest.FromString, - response_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_campaign__criterion__pb2.CampaignCriterion.SerializeToString, - ), - 'MutateCampaignCriteria': grpc.unary_unary_rpc_method_handler( - servicer.MutateCampaignCriteria, - request_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_campaign__criterion__service__pb2.MutateCampaignCriteriaRequest.FromString, - response_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_campaign__criterion__service__pb2.MutateCampaignCriteriaResponse.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'google.ads.googleads.v1.services.CampaignCriterionService', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) diff --git a/google/ads/google_ads/v1/proto/services/campaign_criterion_simulation_service_pb2.py b/google/ads/google_ads/v1/proto/services/campaign_criterion_simulation_service_pb2.py deleted file mode 100644 index 406ce8349..000000000 --- a/google/ads/google_ads/v1/proto/services/campaign_criterion_simulation_service_pb2.py +++ /dev/null @@ -1,108 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/services/campaign_criterion_simulation_service.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.ads.google_ads.v1.proto.resources import campaign_criterion_simulation_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_campaign__criterion__simulation__pb2 -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/services/campaign_criterion_simulation_service.proto', - package='google.ads.googleads.v1.services', - syntax='proto3', - serialized_options=_b('\n$com.google.ads.googleads.v1.servicesB\'CampaignCriterionSimulationServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v1/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V1.Services\312\002 Google\\Ads\\GoogleAds\\V1\\Services\352\002$Google::Ads::GoogleAds::V1::Services'), - serialized_pb=_b('\nRgoogle/ads/googleads_v1/proto/services/campaign_criterion_simulation_service.proto\x12 google.ads.googleads.v1.services\x1aKgoogle/ads/googleads_v1/proto/resources/campaign_criterion_simulation.proto\x1a\x1cgoogle/api/annotations.proto\">\n%GetCampaignCriterionSimulationRequest\x12\x15\n\rresource_name\x18\x01 \x01(\t2\x98\x02\n\"CampaignCriterionSimulationService\x12\xf1\x01\n\x1eGetCampaignCriterionSimulation\x12G.google.ads.googleads.v1.services.GetCampaignCriterionSimulationRequest\x1a>.google.ads.googleads.v1.resources.CampaignCriterionSimulation\"F\x82\xd3\xe4\x93\x02@\x12>/v1/{resource_name=customers/*/campaignCriterionSimulations/*}B\x8e\x02\n$com.google.ads.googleads.v1.servicesB\'CampaignCriterionSimulationServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v1/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V1.Services\xca\x02 Google\\Ads\\GoogleAds\\V1\\Services\xea\x02$Google::Ads::GoogleAds::V1::Servicesb\x06proto3') - , - dependencies=[google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_campaign__criterion__simulation__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - - -_GETCAMPAIGNCRITERIONSIMULATIONREQUEST = _descriptor.Descriptor( - name='GetCampaignCriterionSimulationRequest', - full_name='google.ads.googleads.v1.services.GetCampaignCriterionSimulationRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.services.GetCampaignCriterionSimulationRequest.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=227, - serialized_end=289, -) - -DESCRIPTOR.message_types_by_name['GetCampaignCriterionSimulationRequest'] = _GETCAMPAIGNCRITERIONSIMULATIONREQUEST -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -GetCampaignCriterionSimulationRequest = _reflection.GeneratedProtocolMessageType('GetCampaignCriterionSimulationRequest', (_message.Message,), dict( - DESCRIPTOR = _GETCAMPAIGNCRITERIONSIMULATIONREQUEST, - __module__ = 'google.ads.googleads_v1.proto.services.campaign_criterion_simulation_service_pb2' - , - __doc__ = """Request message for - [CampaignCriterionSimulationService.GetCampaignCriterionSimulation][google.ads.googleads.v1.services.CampaignCriterionSimulationService.GetCampaignCriterionSimulation]. - - - Attributes: - resource_name: - The resource name of the campaign criterion simulation to - fetch. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.GetCampaignCriterionSimulationRequest) - )) -_sym_db.RegisterMessage(GetCampaignCriterionSimulationRequest) - - -DESCRIPTOR._options = None - -_CAMPAIGNCRITERIONSIMULATIONSERVICE = _descriptor.ServiceDescriptor( - name='CampaignCriterionSimulationService', - full_name='google.ads.googleads.v1.services.CampaignCriterionSimulationService', - file=DESCRIPTOR, - index=0, - serialized_options=None, - serialized_start=292, - serialized_end=572, - methods=[ - _descriptor.MethodDescriptor( - name='GetCampaignCriterionSimulation', - full_name='google.ads.googleads.v1.services.CampaignCriterionSimulationService.GetCampaignCriterionSimulation', - index=0, - containing_service=None, - input_type=_GETCAMPAIGNCRITERIONSIMULATIONREQUEST, - output_type=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_campaign__criterion__simulation__pb2._CAMPAIGNCRITERIONSIMULATION, - serialized_options=_b('\202\323\344\223\002@\022>/v1/{resource_name=customers/*/campaignCriterionSimulations/*}'), - ), -]) -_sym_db.RegisterServiceDescriptor(_CAMPAIGNCRITERIONSIMULATIONSERVICE) - -DESCRIPTOR.services_by_name['CampaignCriterionSimulationService'] = _CAMPAIGNCRITERIONSIMULATIONSERVICE - -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/services/campaign_draft_service_pb2.py b/google/ads/google_ads/v1/proto/services/campaign_draft_service_pb2.py deleted file mode 100644 index b39632ac1..000000000 --- a/google/ads/google_ads/v1/proto/services/campaign_draft_service_pb2.py +++ /dev/null @@ -1,607 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/services/campaign_draft_service.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.ads.google_ads.v1.proto.resources import campaign_draft_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_campaign__draft__pb2 -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 -from google.longrunning import operations_pb2 as google_dot_longrunning_dot_operations__pb2 -from google.protobuf import field_mask_pb2 as google_dot_protobuf_dot_field__mask__pb2 -from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 -from google.rpc import status_pb2 as google_dot_rpc_dot_status__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/services/campaign_draft_service.proto', - package='google.ads.googleads.v1.services', - syntax='proto3', - serialized_options=_b('\n$com.google.ads.googleads.v1.servicesB\031CampaignDraftServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v1/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V1.Services\312\002 Google\\Ads\\GoogleAds\\V1\\Services\352\002$Google::Ads::GoogleAds::V1::Services'), - serialized_pb=_b('\nCgoogle/ads/googleads_v1/proto/services/campaign_draft_service.proto\x12 google.ads.googleads.v1.services\x1a.google.ads.googleads.v1.services.MutateCampaignDraftsResponse\">\x82\xd3\xe4\x93\x02\x38\"3/v1/customers/{customer_id=*}/campaignDrafts:mutate:\x01*\x12\xba\x01\n\x14PromoteCampaignDraft\x12=.google.ads.googleads.v1.services.PromoteCampaignDraftRequest\x1a\x1d.google.longrunning.Operation\"D\x82\xd3\xe4\x93\x02>\"9/v1/{campaign_draft=customers/*/campaignDrafts/*}:promote:\x01*\x12\xf7\x01\n\x1cListCampaignDraftAsyncErrors\x12\x45.google.ads.googleads.v1.services.ListCampaignDraftAsyncErrorsRequest\x1a\x46.google.ads.googleads.v1.services.ListCampaignDraftAsyncErrorsResponse\"H\x82\xd3\xe4\x93\x02\x42\x12@/v1/{resource_name=customers/*/campaignDrafts/*}:listAsyncErrorsB\x80\x02\n$com.google.ads.googleads.v1.servicesB\x19\x43\x61mpaignDraftServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v1/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V1.Services\xca\x02 Google\\Ads\\GoogleAds\\V1\\Services\xea\x02$Google::Ads::GoogleAds::V1::Servicesb\x06proto3') - , - dependencies=[google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_campaign__draft__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_longrunning_dot_operations__pb2.DESCRIPTOR,google_dot_protobuf_dot_field__mask__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_rpc_dot_status__pb2.DESCRIPTOR,]) - - - - -_GETCAMPAIGNDRAFTREQUEST = _descriptor.Descriptor( - name='GetCampaignDraftRequest', - full_name='google.ads.googleads.v1.services.GetCampaignDraftRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.services.GetCampaignDraftRequest.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=325, - serialized_end=373, -) - - -_MUTATECAMPAIGNDRAFTSREQUEST = _descriptor.Descriptor( - name='MutateCampaignDraftsRequest', - full_name='google.ads.googleads.v1.services.MutateCampaignDraftsRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='customer_id', full_name='google.ads.googleads.v1.services.MutateCampaignDraftsRequest.customer_id', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='operations', full_name='google.ads.googleads.v1.services.MutateCampaignDraftsRequest.operations', index=1, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='partial_failure', full_name='google.ads.googleads.v1.services.MutateCampaignDraftsRequest.partial_failure', index=2, - number=3, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='validate_only', full_name='google.ads.googleads.v1.services.MutateCampaignDraftsRequest.validate_only', index=3, - number=4, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=376, - serialized_end=552, -) - - -_PROMOTECAMPAIGNDRAFTREQUEST = _descriptor.Descriptor( - name='PromoteCampaignDraftRequest', - full_name='google.ads.googleads.v1.services.PromoteCampaignDraftRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='campaign_draft', full_name='google.ads.googleads.v1.services.PromoteCampaignDraftRequest.campaign_draft', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=554, - serialized_end=607, -) - - -_CAMPAIGNDRAFTOPERATION = _descriptor.Descriptor( - name='CampaignDraftOperation', - full_name='google.ads.googleads.v1.services.CampaignDraftOperation', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='update_mask', full_name='google.ads.googleads.v1.services.CampaignDraftOperation.update_mask', index=0, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='create', full_name='google.ads.googleads.v1.services.CampaignDraftOperation.create', index=1, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='update', full_name='google.ads.googleads.v1.services.CampaignDraftOperation.update', index=2, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='remove', full_name='google.ads.googleads.v1.services.CampaignDraftOperation.remove', index=3, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='operation', full_name='google.ads.googleads.v1.services.CampaignDraftOperation.operation', - index=0, containing_type=None, fields=[]), - ], - serialized_start=610, - serialized_end=850, -) - - -_MUTATECAMPAIGNDRAFTSRESPONSE = _descriptor.Descriptor( - name='MutateCampaignDraftsResponse', - full_name='google.ads.googleads.v1.services.MutateCampaignDraftsResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='partial_failure_error', full_name='google.ads.googleads.v1.services.MutateCampaignDraftsResponse.partial_failure_error', index=0, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='results', full_name='google.ads.googleads.v1.services.MutateCampaignDraftsResponse.results', index=1, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=853, - serialized_end=1012, -) - - -_MUTATECAMPAIGNDRAFTRESULT = _descriptor.Descriptor( - name='MutateCampaignDraftResult', - full_name='google.ads.googleads.v1.services.MutateCampaignDraftResult', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.services.MutateCampaignDraftResult.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1014, - serialized_end=1064, -) - - -_LISTCAMPAIGNDRAFTASYNCERRORSREQUEST = _descriptor.Descriptor( - name='ListCampaignDraftAsyncErrorsRequest', - full_name='google.ads.googleads.v1.services.ListCampaignDraftAsyncErrorsRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.services.ListCampaignDraftAsyncErrorsRequest.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='page_token', full_name='google.ads.googleads.v1.services.ListCampaignDraftAsyncErrorsRequest.page_token', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='page_size', full_name='google.ads.googleads.v1.services.ListCampaignDraftAsyncErrorsRequest.page_size', index=2, - number=3, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1066, - serialized_end=1165, -) - - -_LISTCAMPAIGNDRAFTASYNCERRORSRESPONSE = _descriptor.Descriptor( - name='ListCampaignDraftAsyncErrorsResponse', - full_name='google.ads.googleads.v1.services.ListCampaignDraftAsyncErrorsResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='errors', full_name='google.ads.googleads.v1.services.ListCampaignDraftAsyncErrorsResponse.errors', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='next_page_token', full_name='google.ads.googleads.v1.services.ListCampaignDraftAsyncErrorsResponse.next_page_token', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1167, - serialized_end=1266, -) - -_MUTATECAMPAIGNDRAFTSREQUEST.fields_by_name['operations'].message_type = _CAMPAIGNDRAFTOPERATION -_CAMPAIGNDRAFTOPERATION.fields_by_name['update_mask'].message_type = google_dot_protobuf_dot_field__mask__pb2._FIELDMASK -_CAMPAIGNDRAFTOPERATION.fields_by_name['create'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_campaign__draft__pb2._CAMPAIGNDRAFT -_CAMPAIGNDRAFTOPERATION.fields_by_name['update'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_campaign__draft__pb2._CAMPAIGNDRAFT -_CAMPAIGNDRAFTOPERATION.oneofs_by_name['operation'].fields.append( - _CAMPAIGNDRAFTOPERATION.fields_by_name['create']) -_CAMPAIGNDRAFTOPERATION.fields_by_name['create'].containing_oneof = _CAMPAIGNDRAFTOPERATION.oneofs_by_name['operation'] -_CAMPAIGNDRAFTOPERATION.oneofs_by_name['operation'].fields.append( - _CAMPAIGNDRAFTOPERATION.fields_by_name['update']) -_CAMPAIGNDRAFTOPERATION.fields_by_name['update'].containing_oneof = _CAMPAIGNDRAFTOPERATION.oneofs_by_name['operation'] -_CAMPAIGNDRAFTOPERATION.oneofs_by_name['operation'].fields.append( - _CAMPAIGNDRAFTOPERATION.fields_by_name['remove']) -_CAMPAIGNDRAFTOPERATION.fields_by_name['remove'].containing_oneof = _CAMPAIGNDRAFTOPERATION.oneofs_by_name['operation'] -_MUTATECAMPAIGNDRAFTSRESPONSE.fields_by_name['partial_failure_error'].message_type = google_dot_rpc_dot_status__pb2._STATUS -_MUTATECAMPAIGNDRAFTSRESPONSE.fields_by_name['results'].message_type = _MUTATECAMPAIGNDRAFTRESULT -_LISTCAMPAIGNDRAFTASYNCERRORSRESPONSE.fields_by_name['errors'].message_type = google_dot_rpc_dot_status__pb2._STATUS -DESCRIPTOR.message_types_by_name['GetCampaignDraftRequest'] = _GETCAMPAIGNDRAFTREQUEST -DESCRIPTOR.message_types_by_name['MutateCampaignDraftsRequest'] = _MUTATECAMPAIGNDRAFTSREQUEST -DESCRIPTOR.message_types_by_name['PromoteCampaignDraftRequest'] = _PROMOTECAMPAIGNDRAFTREQUEST -DESCRIPTOR.message_types_by_name['CampaignDraftOperation'] = _CAMPAIGNDRAFTOPERATION -DESCRIPTOR.message_types_by_name['MutateCampaignDraftsResponse'] = _MUTATECAMPAIGNDRAFTSRESPONSE -DESCRIPTOR.message_types_by_name['MutateCampaignDraftResult'] = _MUTATECAMPAIGNDRAFTRESULT -DESCRIPTOR.message_types_by_name['ListCampaignDraftAsyncErrorsRequest'] = _LISTCAMPAIGNDRAFTASYNCERRORSREQUEST -DESCRIPTOR.message_types_by_name['ListCampaignDraftAsyncErrorsResponse'] = _LISTCAMPAIGNDRAFTASYNCERRORSRESPONSE -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -GetCampaignDraftRequest = _reflection.GeneratedProtocolMessageType('GetCampaignDraftRequest', (_message.Message,), dict( - DESCRIPTOR = _GETCAMPAIGNDRAFTREQUEST, - __module__ = 'google.ads.googleads_v1.proto.services.campaign_draft_service_pb2' - , - __doc__ = """Request message for - [CampaignDraftService.GetCampaignDraft][google.ads.googleads.v1.services.CampaignDraftService.GetCampaignDraft]. - - - Attributes: - resource_name: - The resource name of the campaign draft to fetch. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.GetCampaignDraftRequest) - )) -_sym_db.RegisterMessage(GetCampaignDraftRequest) - -MutateCampaignDraftsRequest = _reflection.GeneratedProtocolMessageType('MutateCampaignDraftsRequest', (_message.Message,), dict( - DESCRIPTOR = _MUTATECAMPAIGNDRAFTSREQUEST, - __module__ = 'google.ads.googleads_v1.proto.services.campaign_draft_service_pb2' - , - __doc__ = """Request message for - [CampaignDraftService.MutateCampaignDrafts][google.ads.googleads.v1.services.CampaignDraftService.MutateCampaignDrafts]. - - - Attributes: - customer_id: - The ID of the customer whose campaign drafts are being - modified. - operations: - The list of operations to perform on individual campaign - drafts. - partial_failure: - If true, successful operations will be carried out and invalid - operations will return errors. If false, all operations will - be carried out in one transaction if and only if they are all - valid. Default is false. - validate_only: - If true, the request is validated but not executed. Only - errors are returned, not results. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.MutateCampaignDraftsRequest) - )) -_sym_db.RegisterMessage(MutateCampaignDraftsRequest) - -PromoteCampaignDraftRequest = _reflection.GeneratedProtocolMessageType('PromoteCampaignDraftRequest', (_message.Message,), dict( - DESCRIPTOR = _PROMOTECAMPAIGNDRAFTREQUEST, - __module__ = 'google.ads.googleads_v1.proto.services.campaign_draft_service_pb2' - , - __doc__ = """Request message for - [CampaignDraftService.PromoteCampaignDraft][google.ads.googleads.v1.services.CampaignDraftService.PromoteCampaignDraft]. - - - Attributes: - campaign_draft: - The resource name of the campaign draft to promote. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.PromoteCampaignDraftRequest) - )) -_sym_db.RegisterMessage(PromoteCampaignDraftRequest) - -CampaignDraftOperation = _reflection.GeneratedProtocolMessageType('CampaignDraftOperation', (_message.Message,), dict( - DESCRIPTOR = _CAMPAIGNDRAFTOPERATION, - __module__ = 'google.ads.googleads_v1.proto.services.campaign_draft_service_pb2' - , - __doc__ = """A single operation (create, update, remove) on a campaign draft. - - - Attributes: - update_mask: - FieldMask that determines which resource fields are modified - in an update. - operation: - The mutate operation. - create: - Create operation: No resource name is expected for the new - campaign draft. - update: - Update operation: The campaign draft is expected to have a - valid resource name. - remove: - Remove operation: The campaign draft is expected to have a - valid resource name, in this format: ``customers/{customer_id - }/campaignDrafts/{base_campaign_id}~{draft_id}`` - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.CampaignDraftOperation) - )) -_sym_db.RegisterMessage(CampaignDraftOperation) - -MutateCampaignDraftsResponse = _reflection.GeneratedProtocolMessageType('MutateCampaignDraftsResponse', (_message.Message,), dict( - DESCRIPTOR = _MUTATECAMPAIGNDRAFTSRESPONSE, - __module__ = 'google.ads.googleads_v1.proto.services.campaign_draft_service_pb2' - , - __doc__ = """Response message for campaign draft mutate. - - - Attributes: - partial_failure_error: - Errors that pertain to operation failures in the partial - failure mode. Returned only when partial\_failure = true and - all errors occur inside the operations. If any errors occur - outside the operations (e.g. auth errors), we return an RPC - level error. - results: - All results for the mutate. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.MutateCampaignDraftsResponse) - )) -_sym_db.RegisterMessage(MutateCampaignDraftsResponse) - -MutateCampaignDraftResult = _reflection.GeneratedProtocolMessageType('MutateCampaignDraftResult', (_message.Message,), dict( - DESCRIPTOR = _MUTATECAMPAIGNDRAFTRESULT, - __module__ = 'google.ads.googleads_v1.proto.services.campaign_draft_service_pb2' - , - __doc__ = """The result for the campaign draft mutate. - - - Attributes: - resource_name: - Returned for successful operations. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.MutateCampaignDraftResult) - )) -_sym_db.RegisterMessage(MutateCampaignDraftResult) - -ListCampaignDraftAsyncErrorsRequest = _reflection.GeneratedProtocolMessageType('ListCampaignDraftAsyncErrorsRequest', (_message.Message,), dict( - DESCRIPTOR = _LISTCAMPAIGNDRAFTASYNCERRORSREQUEST, - __module__ = 'google.ads.googleads_v1.proto.services.campaign_draft_service_pb2' - , - __doc__ = """Request message for - [CampaignDraftService.ListCampaignDraftAsyncErrors][google.ads.googleads.v1.services.CampaignDraftService.ListCampaignDraftAsyncErrors]. - - - Attributes: - resource_name: - The name of the campaign draft from which to retrieve the - async errors. - page_token: - Token of the page to retrieve. If not specified, the first - page of results will be returned. Use the value obtained from - ``next_page_token`` in the previous response in order to - request the next page of results. - page_size: - Number of elements to retrieve in a single page. When a page - request is too large, the server may decide to further limit - the number of returned resources. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.ListCampaignDraftAsyncErrorsRequest) - )) -_sym_db.RegisterMessage(ListCampaignDraftAsyncErrorsRequest) - -ListCampaignDraftAsyncErrorsResponse = _reflection.GeneratedProtocolMessageType('ListCampaignDraftAsyncErrorsResponse', (_message.Message,), dict( - DESCRIPTOR = _LISTCAMPAIGNDRAFTASYNCERRORSRESPONSE, - __module__ = 'google.ads.googleads_v1.proto.services.campaign_draft_service_pb2' - , - __doc__ = """Response message for - [CampaignDraftService.ListCampaignDraftAsyncErrors][google.ads.googleads.v1.services.CampaignDraftService.ListCampaignDraftAsyncErrors]. - - - Attributes: - errors: - Details of the errors when performing the asynchronous - operation. - next_page_token: - Pagination token used to retrieve the next page of results. - Pass the content of this string as the ``page_token`` - attribute of the next request. ``next_page_token`` is not - returned for the last page. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.ListCampaignDraftAsyncErrorsResponse) - )) -_sym_db.RegisterMessage(ListCampaignDraftAsyncErrorsResponse) - - -DESCRIPTOR._options = None - -_CAMPAIGNDRAFTSERVICE = _descriptor.ServiceDescriptor( - name='CampaignDraftService', - full_name='google.ads.googleads.v1.services.CampaignDraftService', - file=DESCRIPTOR, - index=0, - serialized_options=None, - serialized_start=1269, - serialized_end=2134, - methods=[ - _descriptor.MethodDescriptor( - name='GetCampaignDraft', - full_name='google.ads.googleads.v1.services.CampaignDraftService.GetCampaignDraft', - index=0, - containing_service=None, - input_type=_GETCAMPAIGNDRAFTREQUEST, - output_type=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_campaign__draft__pb2._CAMPAIGNDRAFT, - serialized_options=_b('\202\323\344\223\0022\0220/v1/{resource_name=customers/*/campaignDrafts/*}'), - ), - _descriptor.MethodDescriptor( - name='MutateCampaignDrafts', - full_name='google.ads.googleads.v1.services.CampaignDraftService.MutateCampaignDrafts', - index=1, - containing_service=None, - input_type=_MUTATECAMPAIGNDRAFTSREQUEST, - output_type=_MUTATECAMPAIGNDRAFTSRESPONSE, - serialized_options=_b('\202\323\344\223\0028\"3/v1/customers/{customer_id=*}/campaignDrafts:mutate:\001*'), - ), - _descriptor.MethodDescriptor( - name='PromoteCampaignDraft', - full_name='google.ads.googleads.v1.services.CampaignDraftService.PromoteCampaignDraft', - index=2, - containing_service=None, - input_type=_PROMOTECAMPAIGNDRAFTREQUEST, - output_type=google_dot_longrunning_dot_operations__pb2._OPERATION, - serialized_options=_b('\202\323\344\223\002>\"9/v1/{campaign_draft=customers/*/campaignDrafts/*}:promote:\001*'), - ), - _descriptor.MethodDescriptor( - name='ListCampaignDraftAsyncErrors', - full_name='google.ads.googleads.v1.services.CampaignDraftService.ListCampaignDraftAsyncErrors', - index=3, - containing_service=None, - input_type=_LISTCAMPAIGNDRAFTASYNCERRORSREQUEST, - output_type=_LISTCAMPAIGNDRAFTASYNCERRORSRESPONSE, - serialized_options=_b('\202\323\344\223\002B\022@/v1/{resource_name=customers/*/campaignDrafts/*}:listAsyncErrors'), - ), -]) -_sym_db.RegisterServiceDescriptor(_CAMPAIGNDRAFTSERVICE) - -DESCRIPTOR.services_by_name['CampaignDraftService'] = _CAMPAIGNDRAFTSERVICE - -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/services/campaign_experiment_service_pb2.py b/google/ads/google_ads/v1/proto/services/campaign_experiment_service_pb2.py deleted file mode 100644 index c39edb636..000000000 --- a/google/ads/google_ads/v1/proto/services/campaign_experiment_service_pb2.py +++ /dev/null @@ -1,893 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/services/campaign_experiment_service.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.ads.google_ads.v1.proto.resources import campaign_experiment_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_campaign__experiment__pb2 -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 -from google.longrunning import operations_pb2 as google_dot_longrunning_dot_operations__pb2 -from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2 -from google.protobuf import field_mask_pb2 as google_dot_protobuf_dot_field__mask__pb2 -from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 -from google.rpc import status_pb2 as google_dot_rpc_dot_status__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/services/campaign_experiment_service.proto', - package='google.ads.googleads.v1.services', - syntax='proto3', - serialized_options=_b('\n$com.google.ads.googleads.v1.servicesB\036CampaignExperimentServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v1/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V1.Services\312\002 Google\\Ads\\GoogleAds\\V1\\Services\352\002$Google::Ads::GoogleAds::V1::Services'), - serialized_pb=_b('\nHgoogle/ads/googleads_v1/proto/services/campaign_experiment_service.proto\x12 google.ads.googleads.v1.services\x1a\x41google/ads/googleads_v1/proto/resources/campaign_experiment.proto\x1a\x1cgoogle/api/annotations.proto\x1a#google/longrunning/operations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x17google/rpc/status.proto\"5\n\x1cGetCampaignExperimentRequest\x12\x15\n\rresource_name\x18\x01 \x01(\t\"\xba\x01\n MutateCampaignExperimentsRequest\x12\x13\n\x0b\x63ustomer_id\x18\x01 \x01(\t\x12Q\n\noperations\x18\x02 \x03(\x0b\x32=.google.ads.googleads.v1.services.CampaignExperimentOperation\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\"\xb6\x01\n\x1b\x43\x61mpaignExperimentOperation\x12/\n\x0bupdate_mask\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12G\n\x06update\x18\x01 \x01(\x0b\x32\x35.google.ads.googleads.v1.resources.CampaignExperimentH\x00\x12\x10\n\x06remove\x18\x02 \x01(\tH\x00\x42\x0b\n\toperation\"\xa9\x01\n!MutateCampaignExperimentsResponse\x12\x31\n\x15partial_failure_error\x18\x03 \x01(\x0b\x32\x12.google.rpc.Status\x12Q\n\x07results\x18\x02 \x03(\x0b\x32@.google.ads.googleads.v1.services.MutateCampaignExperimentResult\"7\n\x1eMutateCampaignExperimentResult\x12\x15\n\rresource_name\x18\x01 \x01(\t\"\xa1\x01\n\x1f\x43reateCampaignExperimentRequest\x12\x13\n\x0b\x63ustomer_id\x18\x01 \x01(\t\x12R\n\x13\x63\x61mpaign_experiment\x18\x02 \x01(\x0b\x32\x35.google.ads.googleads.v1.resources.CampaignExperiment\x12\x15\n\rvalidate_only\x18\x03 \x01(\x08\"?\n CreateCampaignExperimentMetadata\x12\x1b\n\x13\x63\x61mpaign_experiment\x18\x01 \x01(\t\"Y\n!GraduateCampaignExperimentRequest\x12\x1b\n\x13\x63\x61mpaign_experiment\x18\x01 \x01(\t\x12\x17\n\x0f\x63\x61mpaign_budget\x18\x02 \x01(\t\"@\n\"GraduateCampaignExperimentResponse\x12\x1a\n\x12graduated_campaign\x18\x01 \x01(\t\"?\n PromoteCampaignExperimentRequest\x12\x1b\n\x13\x63\x61mpaign_experiment\x18\x01 \x01(\t\";\n\x1c\x45ndCampaignExperimentRequest\x12\x1b\n\x13\x63\x61mpaign_experiment\x18\x01 \x01(\t\"h\n(ListCampaignExperimentAsyncErrorsRequest\x12\x15\n\rresource_name\x18\x01 \x01(\t\x12\x12\n\npage_token\x18\x02 \x01(\t\x12\x11\n\tpage_size\x18\x03 \x01(\x05\"h\n)ListCampaignExperimentAsyncErrorsResponse\x12\"\n\x06\x65rrors\x18\x01 \x03(\x0b\x32\x12.google.rpc.Status\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t2\xb3\x0c\n\x19\x43\x61mpaignExperimentService\x12\xcd\x01\n\x15GetCampaignExperiment\x12>.google.ads.googleads.v1.services.GetCampaignExperimentRequest\x1a\x35.google.ads.googleads.v1.resources.CampaignExperiment\"=\x82\xd3\xe4\x93\x02\x37\x12\x35/v1/{resource_name=customers/*/campaignExperiments/*}\x12\xc1\x01\n\x18\x43reateCampaignExperiment\x12\x41.google.ads.googleads.v1.services.CreateCampaignExperimentRequest\x1a\x1d.google.longrunning.Operation\"C\x82\xd3\xe4\x93\x02=\"8/v1/customers/{customer_id=*}/campaignExperiments:create:\x01*\x12\xe9\x01\n\x19MutateCampaignExperiments\x12\x42.google.ads.googleads.v1.services.MutateCampaignExperimentsRequest\x1a\x43.google.ads.googleads.v1.services.MutateCampaignExperimentsResponse\"C\x82\xd3\xe4\x93\x02=\"8/v1/customers/{customer_id=*}/campaignExperiments:mutate:\x01*\x12\xf8\x01\n\x1aGraduateCampaignExperiment\x12\x43.google.ads.googleads.v1.services.GraduateCampaignExperimentRequest\x1a\x44.google.ads.googleads.v1.services.GraduateCampaignExperimentResponse\"O\x82\xd3\xe4\x93\x02I\"D/v1/{campaign_experiment=customers/*/campaignExperiments/*}:graduate:\x01*\x12\xce\x01\n\x19PromoteCampaignExperiment\x12\x42.google.ads.googleads.v1.services.PromoteCampaignExperimentRequest\x1a\x1d.google.longrunning.Operation\"N\x82\xd3\xe4\x93\x02H\"C/v1/{campaign_experiment=customers/*/campaignExperiments/*}:promote:\x01*\x12\xbb\x01\n\x15\x45ndCampaignExperiment\x12>.google.ads.googleads.v1.services.EndCampaignExperimentRequest\x1a\x16.google.protobuf.Empty\"J\x82\xd3\xe4\x93\x02\x44\"?/v1/{campaign_experiment=customers/*/campaignExperiments/*}:end:\x01*\x12\x8b\x02\n!ListCampaignExperimentAsyncErrors\x12J.google.ads.googleads.v1.services.ListCampaignExperimentAsyncErrorsRequest\x1aK.google.ads.googleads.v1.services.ListCampaignExperimentAsyncErrorsResponse\"M\x82\xd3\xe4\x93\x02G\x12\x45/v1/{resource_name=customers/*/campaignExperiments/*}:listAsyncErrorsB\x85\x02\n$com.google.ads.googleads.v1.servicesB\x1e\x43\x61mpaignExperimentServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v1/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V1.Services\xca\x02 Google\\Ads\\GoogleAds\\V1\\Services\xea\x02$Google::Ads::GoogleAds::V1::Servicesb\x06proto3') - , - dependencies=[google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_campaign__experiment__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_longrunning_dot_operations__pb2.DESCRIPTOR,google_dot_protobuf_dot_empty__pb2.DESCRIPTOR,google_dot_protobuf_dot_field__mask__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_rpc_dot_status__pb2.DESCRIPTOR,]) - - - - -_GETCAMPAIGNEXPERIMENTREQUEST = _descriptor.Descriptor( - name='GetCampaignExperimentRequest', - full_name='google.ads.googleads.v1.services.GetCampaignExperimentRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.services.GetCampaignExperimentRequest.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=364, - serialized_end=417, -) - - -_MUTATECAMPAIGNEXPERIMENTSREQUEST = _descriptor.Descriptor( - name='MutateCampaignExperimentsRequest', - full_name='google.ads.googleads.v1.services.MutateCampaignExperimentsRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='customer_id', full_name='google.ads.googleads.v1.services.MutateCampaignExperimentsRequest.customer_id', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='operations', full_name='google.ads.googleads.v1.services.MutateCampaignExperimentsRequest.operations', index=1, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='partial_failure', full_name='google.ads.googleads.v1.services.MutateCampaignExperimentsRequest.partial_failure', index=2, - number=3, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='validate_only', full_name='google.ads.googleads.v1.services.MutateCampaignExperimentsRequest.validate_only', index=3, - number=4, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=420, - serialized_end=606, -) - - -_CAMPAIGNEXPERIMENTOPERATION = _descriptor.Descriptor( - name='CampaignExperimentOperation', - full_name='google.ads.googleads.v1.services.CampaignExperimentOperation', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='update_mask', full_name='google.ads.googleads.v1.services.CampaignExperimentOperation.update_mask', index=0, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='update', full_name='google.ads.googleads.v1.services.CampaignExperimentOperation.update', index=1, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='remove', full_name='google.ads.googleads.v1.services.CampaignExperimentOperation.remove', index=2, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='operation', full_name='google.ads.googleads.v1.services.CampaignExperimentOperation.operation', - index=0, containing_type=None, fields=[]), - ], - serialized_start=609, - serialized_end=791, -) - - -_MUTATECAMPAIGNEXPERIMENTSRESPONSE = _descriptor.Descriptor( - name='MutateCampaignExperimentsResponse', - full_name='google.ads.googleads.v1.services.MutateCampaignExperimentsResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='partial_failure_error', full_name='google.ads.googleads.v1.services.MutateCampaignExperimentsResponse.partial_failure_error', index=0, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='results', full_name='google.ads.googleads.v1.services.MutateCampaignExperimentsResponse.results', index=1, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=794, - serialized_end=963, -) - - -_MUTATECAMPAIGNEXPERIMENTRESULT = _descriptor.Descriptor( - name='MutateCampaignExperimentResult', - full_name='google.ads.googleads.v1.services.MutateCampaignExperimentResult', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.services.MutateCampaignExperimentResult.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=965, - serialized_end=1020, -) - - -_CREATECAMPAIGNEXPERIMENTREQUEST = _descriptor.Descriptor( - name='CreateCampaignExperimentRequest', - full_name='google.ads.googleads.v1.services.CreateCampaignExperimentRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='customer_id', full_name='google.ads.googleads.v1.services.CreateCampaignExperimentRequest.customer_id', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='campaign_experiment', full_name='google.ads.googleads.v1.services.CreateCampaignExperimentRequest.campaign_experiment', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='validate_only', full_name='google.ads.googleads.v1.services.CreateCampaignExperimentRequest.validate_only', index=2, - number=3, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1023, - serialized_end=1184, -) - - -_CREATECAMPAIGNEXPERIMENTMETADATA = _descriptor.Descriptor( - name='CreateCampaignExperimentMetadata', - full_name='google.ads.googleads.v1.services.CreateCampaignExperimentMetadata', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='campaign_experiment', full_name='google.ads.googleads.v1.services.CreateCampaignExperimentMetadata.campaign_experiment', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1186, - serialized_end=1249, -) - - -_GRADUATECAMPAIGNEXPERIMENTREQUEST = _descriptor.Descriptor( - name='GraduateCampaignExperimentRequest', - full_name='google.ads.googleads.v1.services.GraduateCampaignExperimentRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='campaign_experiment', full_name='google.ads.googleads.v1.services.GraduateCampaignExperimentRequest.campaign_experiment', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='campaign_budget', full_name='google.ads.googleads.v1.services.GraduateCampaignExperimentRequest.campaign_budget', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1251, - serialized_end=1340, -) - - -_GRADUATECAMPAIGNEXPERIMENTRESPONSE = _descriptor.Descriptor( - name='GraduateCampaignExperimentResponse', - full_name='google.ads.googleads.v1.services.GraduateCampaignExperimentResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='graduated_campaign', full_name='google.ads.googleads.v1.services.GraduateCampaignExperimentResponse.graduated_campaign', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1342, - serialized_end=1406, -) - - -_PROMOTECAMPAIGNEXPERIMENTREQUEST = _descriptor.Descriptor( - name='PromoteCampaignExperimentRequest', - full_name='google.ads.googleads.v1.services.PromoteCampaignExperimentRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='campaign_experiment', full_name='google.ads.googleads.v1.services.PromoteCampaignExperimentRequest.campaign_experiment', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1408, - serialized_end=1471, -) - - -_ENDCAMPAIGNEXPERIMENTREQUEST = _descriptor.Descriptor( - name='EndCampaignExperimentRequest', - full_name='google.ads.googleads.v1.services.EndCampaignExperimentRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='campaign_experiment', full_name='google.ads.googleads.v1.services.EndCampaignExperimentRequest.campaign_experiment', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1473, - serialized_end=1532, -) - - -_LISTCAMPAIGNEXPERIMENTASYNCERRORSREQUEST = _descriptor.Descriptor( - name='ListCampaignExperimentAsyncErrorsRequest', - full_name='google.ads.googleads.v1.services.ListCampaignExperimentAsyncErrorsRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.services.ListCampaignExperimentAsyncErrorsRequest.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='page_token', full_name='google.ads.googleads.v1.services.ListCampaignExperimentAsyncErrorsRequest.page_token', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='page_size', full_name='google.ads.googleads.v1.services.ListCampaignExperimentAsyncErrorsRequest.page_size', index=2, - number=3, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1534, - serialized_end=1638, -) - - -_LISTCAMPAIGNEXPERIMENTASYNCERRORSRESPONSE = _descriptor.Descriptor( - name='ListCampaignExperimentAsyncErrorsResponse', - full_name='google.ads.googleads.v1.services.ListCampaignExperimentAsyncErrorsResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='errors', full_name='google.ads.googleads.v1.services.ListCampaignExperimentAsyncErrorsResponse.errors', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='next_page_token', full_name='google.ads.googleads.v1.services.ListCampaignExperimentAsyncErrorsResponse.next_page_token', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1640, - serialized_end=1744, -) - -_MUTATECAMPAIGNEXPERIMENTSREQUEST.fields_by_name['operations'].message_type = _CAMPAIGNEXPERIMENTOPERATION -_CAMPAIGNEXPERIMENTOPERATION.fields_by_name['update_mask'].message_type = google_dot_protobuf_dot_field__mask__pb2._FIELDMASK -_CAMPAIGNEXPERIMENTOPERATION.fields_by_name['update'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_campaign__experiment__pb2._CAMPAIGNEXPERIMENT -_CAMPAIGNEXPERIMENTOPERATION.oneofs_by_name['operation'].fields.append( - _CAMPAIGNEXPERIMENTOPERATION.fields_by_name['update']) -_CAMPAIGNEXPERIMENTOPERATION.fields_by_name['update'].containing_oneof = _CAMPAIGNEXPERIMENTOPERATION.oneofs_by_name['operation'] -_CAMPAIGNEXPERIMENTOPERATION.oneofs_by_name['operation'].fields.append( - _CAMPAIGNEXPERIMENTOPERATION.fields_by_name['remove']) -_CAMPAIGNEXPERIMENTOPERATION.fields_by_name['remove'].containing_oneof = _CAMPAIGNEXPERIMENTOPERATION.oneofs_by_name['operation'] -_MUTATECAMPAIGNEXPERIMENTSRESPONSE.fields_by_name['partial_failure_error'].message_type = google_dot_rpc_dot_status__pb2._STATUS -_MUTATECAMPAIGNEXPERIMENTSRESPONSE.fields_by_name['results'].message_type = _MUTATECAMPAIGNEXPERIMENTRESULT -_CREATECAMPAIGNEXPERIMENTREQUEST.fields_by_name['campaign_experiment'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_campaign__experiment__pb2._CAMPAIGNEXPERIMENT -_LISTCAMPAIGNEXPERIMENTASYNCERRORSRESPONSE.fields_by_name['errors'].message_type = google_dot_rpc_dot_status__pb2._STATUS -DESCRIPTOR.message_types_by_name['GetCampaignExperimentRequest'] = _GETCAMPAIGNEXPERIMENTREQUEST -DESCRIPTOR.message_types_by_name['MutateCampaignExperimentsRequest'] = _MUTATECAMPAIGNEXPERIMENTSREQUEST -DESCRIPTOR.message_types_by_name['CampaignExperimentOperation'] = _CAMPAIGNEXPERIMENTOPERATION -DESCRIPTOR.message_types_by_name['MutateCampaignExperimentsResponse'] = _MUTATECAMPAIGNEXPERIMENTSRESPONSE -DESCRIPTOR.message_types_by_name['MutateCampaignExperimentResult'] = _MUTATECAMPAIGNEXPERIMENTRESULT -DESCRIPTOR.message_types_by_name['CreateCampaignExperimentRequest'] = _CREATECAMPAIGNEXPERIMENTREQUEST -DESCRIPTOR.message_types_by_name['CreateCampaignExperimentMetadata'] = _CREATECAMPAIGNEXPERIMENTMETADATA -DESCRIPTOR.message_types_by_name['GraduateCampaignExperimentRequest'] = _GRADUATECAMPAIGNEXPERIMENTREQUEST -DESCRIPTOR.message_types_by_name['GraduateCampaignExperimentResponse'] = _GRADUATECAMPAIGNEXPERIMENTRESPONSE -DESCRIPTOR.message_types_by_name['PromoteCampaignExperimentRequest'] = _PROMOTECAMPAIGNEXPERIMENTREQUEST -DESCRIPTOR.message_types_by_name['EndCampaignExperimentRequest'] = _ENDCAMPAIGNEXPERIMENTREQUEST -DESCRIPTOR.message_types_by_name['ListCampaignExperimentAsyncErrorsRequest'] = _LISTCAMPAIGNEXPERIMENTASYNCERRORSREQUEST -DESCRIPTOR.message_types_by_name['ListCampaignExperimentAsyncErrorsResponse'] = _LISTCAMPAIGNEXPERIMENTASYNCERRORSRESPONSE -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -GetCampaignExperimentRequest = _reflection.GeneratedProtocolMessageType('GetCampaignExperimentRequest', (_message.Message,), dict( - DESCRIPTOR = _GETCAMPAIGNEXPERIMENTREQUEST, - __module__ = 'google.ads.googleads_v1.proto.services.campaign_experiment_service_pb2' - , - __doc__ = """Request message for - [CampaignExperimentService.GetCampaignExperiment][google.ads.googleads.v1.services.CampaignExperimentService.GetCampaignExperiment]. - - - Attributes: - resource_name: - The resource name of the campaign experiment to fetch. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.GetCampaignExperimentRequest) - )) -_sym_db.RegisterMessage(GetCampaignExperimentRequest) - -MutateCampaignExperimentsRequest = _reflection.GeneratedProtocolMessageType('MutateCampaignExperimentsRequest', (_message.Message,), dict( - DESCRIPTOR = _MUTATECAMPAIGNEXPERIMENTSREQUEST, - __module__ = 'google.ads.googleads_v1.proto.services.campaign_experiment_service_pb2' - , - __doc__ = """Request message for - [CampaignExperimentService.MutateCampaignExperiments][google.ads.googleads.v1.services.CampaignExperimentService.MutateCampaignExperiments]. - - - Attributes: - customer_id: - The ID of the customer whose campaign experiments are being - modified. - operations: - The list of operations to perform on individual campaign - experiments. - partial_failure: - If true, successful operations will be carried out and invalid - operations will return errors. If false, all operations will - be carried out in one transaction if and only if they are all - valid. Default is false. - validate_only: - If true, the request is validated but not executed. Only - errors are returned, not results. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.MutateCampaignExperimentsRequest) - )) -_sym_db.RegisterMessage(MutateCampaignExperimentsRequest) - -CampaignExperimentOperation = _reflection.GeneratedProtocolMessageType('CampaignExperimentOperation', (_message.Message,), dict( - DESCRIPTOR = _CAMPAIGNEXPERIMENTOPERATION, - __module__ = 'google.ads.googleads_v1.proto.services.campaign_experiment_service_pb2' - , - __doc__ = """A single update operation on a campaign experiment. - - - Attributes: - update_mask: - FieldMask that determines which resource fields are modified - in an update. - operation: - The mutate operation. - update: - Update operation: The campaign experiment is expected to have - a valid resource name. - remove: - Remove operation: The campaign experiment is expected to have - a valid resource name, in this format: ``customers/{customer_ - id}/campaignExperiments/{campaign_experiment_id}`` - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.CampaignExperimentOperation) - )) -_sym_db.RegisterMessage(CampaignExperimentOperation) - -MutateCampaignExperimentsResponse = _reflection.GeneratedProtocolMessageType('MutateCampaignExperimentsResponse', (_message.Message,), dict( - DESCRIPTOR = _MUTATECAMPAIGNEXPERIMENTSRESPONSE, - __module__ = 'google.ads.googleads_v1.proto.services.campaign_experiment_service_pb2' - , - __doc__ = """Response message for campaign experiment mutate. - - - Attributes: - partial_failure_error: - Errors that pertain to operation failures in the partial - failure mode. Returned only when partial\_failure = true and - all errors occur inside the operations. If any errors occur - outside the operations (e.g. auth errors), we return an RPC - level error. - results: - All results for the mutate. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.MutateCampaignExperimentsResponse) - )) -_sym_db.RegisterMessage(MutateCampaignExperimentsResponse) - -MutateCampaignExperimentResult = _reflection.GeneratedProtocolMessageType('MutateCampaignExperimentResult', (_message.Message,), dict( - DESCRIPTOR = _MUTATECAMPAIGNEXPERIMENTRESULT, - __module__ = 'google.ads.googleads_v1.proto.services.campaign_experiment_service_pb2' - , - __doc__ = """The result for the campaign experiment mutate. - - - Attributes: - resource_name: - Returned for successful operations. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.MutateCampaignExperimentResult) - )) -_sym_db.RegisterMessage(MutateCampaignExperimentResult) - -CreateCampaignExperimentRequest = _reflection.GeneratedProtocolMessageType('CreateCampaignExperimentRequest', (_message.Message,), dict( - DESCRIPTOR = _CREATECAMPAIGNEXPERIMENTREQUEST, - __module__ = 'google.ads.googleads_v1.proto.services.campaign_experiment_service_pb2' - , - __doc__ = """Request message for - [CampaignExperimentService.CreateCampaignExperiment][google.ads.googleads.v1.services.CampaignExperimentService.CreateCampaignExperiment]. - - - Attributes: - customer_id: - The ID of the customer whose campaign experiment is being - created. - campaign_experiment: - The campaign experiment to be created. - validate_only: - If true, the request is validated but not executed. Only - errors are returned, not results. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.CreateCampaignExperimentRequest) - )) -_sym_db.RegisterMessage(CreateCampaignExperimentRequest) - -CreateCampaignExperimentMetadata = _reflection.GeneratedProtocolMessageType('CreateCampaignExperimentMetadata', (_message.Message,), dict( - DESCRIPTOR = _CREATECAMPAIGNEXPERIMENTMETADATA, - __module__ = 'google.ads.googleads_v1.proto.services.campaign_experiment_service_pb2' - , - __doc__ = """Message used as metadata returned in Long Running Operations for - CreateCampaignExperimentRequest - - - Attributes: - campaign_experiment: - Resource name of campaign experiment created. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.CreateCampaignExperimentMetadata) - )) -_sym_db.RegisterMessage(CreateCampaignExperimentMetadata) - -GraduateCampaignExperimentRequest = _reflection.GeneratedProtocolMessageType('GraduateCampaignExperimentRequest', (_message.Message,), dict( - DESCRIPTOR = _GRADUATECAMPAIGNEXPERIMENTREQUEST, - __module__ = 'google.ads.googleads_v1.proto.services.campaign_experiment_service_pb2' - , - __doc__ = """Request message for - [CampaignExperimentService.GraduateCampaignExperiment][google.ads.googleads.v1.services.CampaignExperimentService.GraduateCampaignExperiment]. - - - Attributes: - campaign_experiment: - The resource name of the campaign experiment to graduate. - campaign_budget: - Resource name of the budget to attach to the campaign - graduated from the experiment. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.GraduateCampaignExperimentRequest) - )) -_sym_db.RegisterMessage(GraduateCampaignExperimentRequest) - -GraduateCampaignExperimentResponse = _reflection.GeneratedProtocolMessageType('GraduateCampaignExperimentResponse', (_message.Message,), dict( - DESCRIPTOR = _GRADUATECAMPAIGNEXPERIMENTRESPONSE, - __module__ = 'google.ads.googleads_v1.proto.services.campaign_experiment_service_pb2' - , - __doc__ = """Response message for campaign experiment graduate. - - - Attributes: - graduated_campaign: - The resource name of the campaign from the graduated - experiment. This campaign is the same one as - CampaignExperiment.experiment\_campaign. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.GraduateCampaignExperimentResponse) - )) -_sym_db.RegisterMessage(GraduateCampaignExperimentResponse) - -PromoteCampaignExperimentRequest = _reflection.GeneratedProtocolMessageType('PromoteCampaignExperimentRequest', (_message.Message,), dict( - DESCRIPTOR = _PROMOTECAMPAIGNEXPERIMENTREQUEST, - __module__ = 'google.ads.googleads_v1.proto.services.campaign_experiment_service_pb2' - , - __doc__ = """Request message for - [CampaignExperimentService.PromoteCampaignExperiment][google.ads.googleads.v1.services.CampaignExperimentService.PromoteCampaignExperiment]. - - - Attributes: - campaign_experiment: - The resource name of the campaign experiment to promote. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.PromoteCampaignExperimentRequest) - )) -_sym_db.RegisterMessage(PromoteCampaignExperimentRequest) - -EndCampaignExperimentRequest = _reflection.GeneratedProtocolMessageType('EndCampaignExperimentRequest', (_message.Message,), dict( - DESCRIPTOR = _ENDCAMPAIGNEXPERIMENTREQUEST, - __module__ = 'google.ads.googleads_v1.proto.services.campaign_experiment_service_pb2' - , - __doc__ = """Request message for - [CampaignExperimentService.EndCampaignExperiment][google.ads.googleads.v1.services.CampaignExperimentService.EndCampaignExperiment]. - - - Attributes: - campaign_experiment: - The resource name of the campaign experiment to end. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.EndCampaignExperimentRequest) - )) -_sym_db.RegisterMessage(EndCampaignExperimentRequest) - -ListCampaignExperimentAsyncErrorsRequest = _reflection.GeneratedProtocolMessageType('ListCampaignExperimentAsyncErrorsRequest', (_message.Message,), dict( - DESCRIPTOR = _LISTCAMPAIGNEXPERIMENTASYNCERRORSREQUEST, - __module__ = 'google.ads.googleads_v1.proto.services.campaign_experiment_service_pb2' - , - __doc__ = """Request message for - [CampaignExperimentService.ListCampaignExperimentAsyncErrors][google.ads.googleads.v1.services.CampaignExperimentService.ListCampaignExperimentAsyncErrors]. - - - Attributes: - resource_name: - The name of the campaign experiment from which to retrieve the - async errors. - page_token: - Token of the page to retrieve. If not specified, the first - page of results will be returned. Use the value obtained from - ``next_page_token`` in the previous response in order to - request the next page of results. - page_size: - Number of elements to retrieve in a single page. When a page - request is too large, the server may decide to further limit - the number of returned resources. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.ListCampaignExperimentAsyncErrorsRequest) - )) -_sym_db.RegisterMessage(ListCampaignExperimentAsyncErrorsRequest) - -ListCampaignExperimentAsyncErrorsResponse = _reflection.GeneratedProtocolMessageType('ListCampaignExperimentAsyncErrorsResponse', (_message.Message,), dict( - DESCRIPTOR = _LISTCAMPAIGNEXPERIMENTASYNCERRORSRESPONSE, - __module__ = 'google.ads.googleads_v1.proto.services.campaign_experiment_service_pb2' - , - __doc__ = """Response message for - [CampaignExperimentService.ListCampaignExperimentAsyncErrors][google.ads.googleads.v1.services.CampaignExperimentService.ListCampaignExperimentAsyncErrors]. - - - Attributes: - errors: - Details of the errors when performing the asynchronous - operation. - next_page_token: - Pagination token used to retrieve the next page of results. - Pass the content of this string as the ``page_token`` - attribute of the next request. ``next_page_token`` is not - returned for the last page. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.ListCampaignExperimentAsyncErrorsResponse) - )) -_sym_db.RegisterMessage(ListCampaignExperimentAsyncErrorsResponse) - - -DESCRIPTOR._options = None - -_CAMPAIGNEXPERIMENTSERVICE = _descriptor.ServiceDescriptor( - name='CampaignExperimentService', - full_name='google.ads.googleads.v1.services.CampaignExperimentService', - file=DESCRIPTOR, - index=0, - serialized_options=None, - serialized_start=1747, - serialized_end=3334, - methods=[ - _descriptor.MethodDescriptor( - name='GetCampaignExperiment', - full_name='google.ads.googleads.v1.services.CampaignExperimentService.GetCampaignExperiment', - index=0, - containing_service=None, - input_type=_GETCAMPAIGNEXPERIMENTREQUEST, - output_type=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_campaign__experiment__pb2._CAMPAIGNEXPERIMENT, - serialized_options=_b('\202\323\344\223\0027\0225/v1/{resource_name=customers/*/campaignExperiments/*}'), - ), - _descriptor.MethodDescriptor( - name='CreateCampaignExperiment', - full_name='google.ads.googleads.v1.services.CampaignExperimentService.CreateCampaignExperiment', - index=1, - containing_service=None, - input_type=_CREATECAMPAIGNEXPERIMENTREQUEST, - output_type=google_dot_longrunning_dot_operations__pb2._OPERATION, - serialized_options=_b('\202\323\344\223\002=\"8/v1/customers/{customer_id=*}/campaignExperiments:create:\001*'), - ), - _descriptor.MethodDescriptor( - name='MutateCampaignExperiments', - full_name='google.ads.googleads.v1.services.CampaignExperimentService.MutateCampaignExperiments', - index=2, - containing_service=None, - input_type=_MUTATECAMPAIGNEXPERIMENTSREQUEST, - output_type=_MUTATECAMPAIGNEXPERIMENTSRESPONSE, - serialized_options=_b('\202\323\344\223\002=\"8/v1/customers/{customer_id=*}/campaignExperiments:mutate:\001*'), - ), - _descriptor.MethodDescriptor( - name='GraduateCampaignExperiment', - full_name='google.ads.googleads.v1.services.CampaignExperimentService.GraduateCampaignExperiment', - index=3, - containing_service=None, - input_type=_GRADUATECAMPAIGNEXPERIMENTREQUEST, - output_type=_GRADUATECAMPAIGNEXPERIMENTRESPONSE, - serialized_options=_b('\202\323\344\223\002I\"D/v1/{campaign_experiment=customers/*/campaignExperiments/*}:graduate:\001*'), - ), - _descriptor.MethodDescriptor( - name='PromoteCampaignExperiment', - full_name='google.ads.googleads.v1.services.CampaignExperimentService.PromoteCampaignExperiment', - index=4, - containing_service=None, - input_type=_PROMOTECAMPAIGNEXPERIMENTREQUEST, - output_type=google_dot_longrunning_dot_operations__pb2._OPERATION, - serialized_options=_b('\202\323\344\223\002H\"C/v1/{campaign_experiment=customers/*/campaignExperiments/*}:promote:\001*'), - ), - _descriptor.MethodDescriptor( - name='EndCampaignExperiment', - full_name='google.ads.googleads.v1.services.CampaignExperimentService.EndCampaignExperiment', - index=5, - containing_service=None, - input_type=_ENDCAMPAIGNEXPERIMENTREQUEST, - output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, - serialized_options=_b('\202\323\344\223\002D\"?/v1/{campaign_experiment=customers/*/campaignExperiments/*}:end:\001*'), - ), - _descriptor.MethodDescriptor( - name='ListCampaignExperimentAsyncErrors', - full_name='google.ads.googleads.v1.services.CampaignExperimentService.ListCampaignExperimentAsyncErrors', - index=6, - containing_service=None, - input_type=_LISTCAMPAIGNEXPERIMENTASYNCERRORSREQUEST, - output_type=_LISTCAMPAIGNEXPERIMENTASYNCERRORSRESPONSE, - serialized_options=_b('\202\323\344\223\002G\022E/v1/{resource_name=customers/*/campaignExperiments/*}:listAsyncErrors'), - ), -]) -_sym_db.RegisterServiceDescriptor(_CAMPAIGNEXPERIMENTSERVICE) - -DESCRIPTOR.services_by_name['CampaignExperimentService'] = _CAMPAIGNEXPERIMENTSERVICE - -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/services/campaign_extension_setting_service_pb2.py b/google/ads/google_ads/v1/proto/services/campaign_extension_setting_service_pb2.py deleted file mode 100644 index 28e11e9aa..000000000 --- a/google/ads/google_ads/v1/proto/services/campaign_extension_setting_service_pb2.py +++ /dev/null @@ -1,408 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/services/campaign_extension_setting_service.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.ads.google_ads.v1.proto.resources import campaign_extension_setting_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_campaign__extension__setting__pb2 -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 -from google.protobuf import field_mask_pb2 as google_dot_protobuf_dot_field__mask__pb2 -from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 -from google.rpc import status_pb2 as google_dot_rpc_dot_status__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/services/campaign_extension_setting_service.proto', - package='google.ads.googleads.v1.services', - syntax='proto3', - serialized_options=_b('\n$com.google.ads.googleads.v1.servicesB$CampaignExtensionSettingServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v1/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V1.Services\312\002 Google\\Ads\\GoogleAds\\V1\\Services\352\002$Google::Ads::GoogleAds::V1::Services'), - serialized_pb=_b('\nOgoogle/ads/googleads_v1/proto/services/campaign_extension_setting_service.proto\x12 google.ads.googleads.v1.services\x1aHgoogle/ads/googleads_v1/proto/resources/campaign_extension_setting.proto\x1a\x1cgoogle/api/annotations.proto\x1a google/protobuf/field_mask.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x17google/rpc/status.proto\";\n\"GetCampaignExtensionSettingRequest\x12\x15\n\rresource_name\x18\x01 \x01(\t\"\xc6\x01\n&MutateCampaignExtensionSettingsRequest\x12\x13\n\x0b\x63ustomer_id\x18\x01 \x01(\t\x12W\n\noperations\x18\x02 \x03(\x0b\x32\x43.google.ads.googleads.v1.services.CampaignExtensionSettingOperation\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\"\x91\x02\n!CampaignExtensionSettingOperation\x12/\n\x0bupdate_mask\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12M\n\x06\x63reate\x18\x01 \x01(\x0b\x32;.google.ads.googleads.v1.resources.CampaignExtensionSettingH\x00\x12M\n\x06update\x18\x02 \x01(\x0b\x32;.google.ads.googleads.v1.resources.CampaignExtensionSettingH\x00\x12\x10\n\x06remove\x18\x03 \x01(\tH\x00\x42\x0b\n\toperation\"\xb5\x01\n\'MutateCampaignExtensionSettingsResponse\x12\x31\n\x15partial_failure_error\x18\x03 \x01(\x0b\x32\x12.google.rpc.Status\x12W\n\x07results\x18\x02 \x03(\x0b\x32\x46.google.ads.googleads.v1.services.MutateCampaignExtensionSettingResult\"=\n$MutateCampaignExtensionSettingResult\x12\x15\n\rresource_name\x18\x01 \x01(\t2\x8d\x04\n\x1f\x43\x61mpaignExtensionSettingService\x12\xe5\x01\n\x1bGetCampaignExtensionSetting\x12\x44.google.ads.googleads.v1.services.GetCampaignExtensionSettingRequest\x1a;.google.ads.googleads.v1.resources.CampaignExtensionSetting\"C\x82\xd3\xe4\x93\x02=\x12;/v1/{resource_name=customers/*/campaignExtensionSettings/*}\x12\x81\x02\n\x1fMutateCampaignExtensionSettings\x12H.google.ads.googleads.v1.services.MutateCampaignExtensionSettingsRequest\x1aI.google.ads.googleads.v1.services.MutateCampaignExtensionSettingsResponse\"I\x82\xd3\xe4\x93\x02\x43\">/v1/customers/{customer_id=*}/campaignExtensionSettings:mutate:\x01*B\x8b\x02\n$com.google.ads.googleads.v1.servicesB$CampaignExtensionSettingServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v1/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V1.Services\xca\x02 Google\\Ads\\GoogleAds\\V1\\Services\xea\x02$Google::Ads::GoogleAds::V1::Servicesb\x06proto3') - , - dependencies=[google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_campaign__extension__setting__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_protobuf_dot_field__mask__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_rpc_dot_status__pb2.DESCRIPTOR,]) - - - - -_GETCAMPAIGNEXTENSIONSETTINGREQUEST = _descriptor.Descriptor( - name='GetCampaignExtensionSettingRequest', - full_name='google.ads.googleads.v1.services.GetCampaignExtensionSettingRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.services.GetCampaignExtensionSettingRequest.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=312, - serialized_end=371, -) - - -_MUTATECAMPAIGNEXTENSIONSETTINGSREQUEST = _descriptor.Descriptor( - name='MutateCampaignExtensionSettingsRequest', - full_name='google.ads.googleads.v1.services.MutateCampaignExtensionSettingsRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='customer_id', full_name='google.ads.googleads.v1.services.MutateCampaignExtensionSettingsRequest.customer_id', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='operations', full_name='google.ads.googleads.v1.services.MutateCampaignExtensionSettingsRequest.operations', index=1, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='partial_failure', full_name='google.ads.googleads.v1.services.MutateCampaignExtensionSettingsRequest.partial_failure', index=2, - number=3, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='validate_only', full_name='google.ads.googleads.v1.services.MutateCampaignExtensionSettingsRequest.validate_only', index=3, - number=4, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=374, - serialized_end=572, -) - - -_CAMPAIGNEXTENSIONSETTINGOPERATION = _descriptor.Descriptor( - name='CampaignExtensionSettingOperation', - full_name='google.ads.googleads.v1.services.CampaignExtensionSettingOperation', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='update_mask', full_name='google.ads.googleads.v1.services.CampaignExtensionSettingOperation.update_mask', index=0, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='create', full_name='google.ads.googleads.v1.services.CampaignExtensionSettingOperation.create', index=1, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='update', full_name='google.ads.googleads.v1.services.CampaignExtensionSettingOperation.update', index=2, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='remove', full_name='google.ads.googleads.v1.services.CampaignExtensionSettingOperation.remove', index=3, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='operation', full_name='google.ads.googleads.v1.services.CampaignExtensionSettingOperation.operation', - index=0, containing_type=None, fields=[]), - ], - serialized_start=575, - serialized_end=848, -) - - -_MUTATECAMPAIGNEXTENSIONSETTINGSRESPONSE = _descriptor.Descriptor( - name='MutateCampaignExtensionSettingsResponse', - full_name='google.ads.googleads.v1.services.MutateCampaignExtensionSettingsResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='partial_failure_error', full_name='google.ads.googleads.v1.services.MutateCampaignExtensionSettingsResponse.partial_failure_error', index=0, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='results', full_name='google.ads.googleads.v1.services.MutateCampaignExtensionSettingsResponse.results', index=1, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=851, - serialized_end=1032, -) - - -_MUTATECAMPAIGNEXTENSIONSETTINGRESULT = _descriptor.Descriptor( - name='MutateCampaignExtensionSettingResult', - full_name='google.ads.googleads.v1.services.MutateCampaignExtensionSettingResult', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.services.MutateCampaignExtensionSettingResult.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1034, - serialized_end=1095, -) - -_MUTATECAMPAIGNEXTENSIONSETTINGSREQUEST.fields_by_name['operations'].message_type = _CAMPAIGNEXTENSIONSETTINGOPERATION -_CAMPAIGNEXTENSIONSETTINGOPERATION.fields_by_name['update_mask'].message_type = google_dot_protobuf_dot_field__mask__pb2._FIELDMASK -_CAMPAIGNEXTENSIONSETTINGOPERATION.fields_by_name['create'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_campaign__extension__setting__pb2._CAMPAIGNEXTENSIONSETTING -_CAMPAIGNEXTENSIONSETTINGOPERATION.fields_by_name['update'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_campaign__extension__setting__pb2._CAMPAIGNEXTENSIONSETTING -_CAMPAIGNEXTENSIONSETTINGOPERATION.oneofs_by_name['operation'].fields.append( - _CAMPAIGNEXTENSIONSETTINGOPERATION.fields_by_name['create']) -_CAMPAIGNEXTENSIONSETTINGOPERATION.fields_by_name['create'].containing_oneof = _CAMPAIGNEXTENSIONSETTINGOPERATION.oneofs_by_name['operation'] -_CAMPAIGNEXTENSIONSETTINGOPERATION.oneofs_by_name['operation'].fields.append( - _CAMPAIGNEXTENSIONSETTINGOPERATION.fields_by_name['update']) -_CAMPAIGNEXTENSIONSETTINGOPERATION.fields_by_name['update'].containing_oneof = _CAMPAIGNEXTENSIONSETTINGOPERATION.oneofs_by_name['operation'] -_CAMPAIGNEXTENSIONSETTINGOPERATION.oneofs_by_name['operation'].fields.append( - _CAMPAIGNEXTENSIONSETTINGOPERATION.fields_by_name['remove']) -_CAMPAIGNEXTENSIONSETTINGOPERATION.fields_by_name['remove'].containing_oneof = _CAMPAIGNEXTENSIONSETTINGOPERATION.oneofs_by_name['operation'] -_MUTATECAMPAIGNEXTENSIONSETTINGSRESPONSE.fields_by_name['partial_failure_error'].message_type = google_dot_rpc_dot_status__pb2._STATUS -_MUTATECAMPAIGNEXTENSIONSETTINGSRESPONSE.fields_by_name['results'].message_type = _MUTATECAMPAIGNEXTENSIONSETTINGRESULT -DESCRIPTOR.message_types_by_name['GetCampaignExtensionSettingRequest'] = _GETCAMPAIGNEXTENSIONSETTINGREQUEST -DESCRIPTOR.message_types_by_name['MutateCampaignExtensionSettingsRequest'] = _MUTATECAMPAIGNEXTENSIONSETTINGSREQUEST -DESCRIPTOR.message_types_by_name['CampaignExtensionSettingOperation'] = _CAMPAIGNEXTENSIONSETTINGOPERATION -DESCRIPTOR.message_types_by_name['MutateCampaignExtensionSettingsResponse'] = _MUTATECAMPAIGNEXTENSIONSETTINGSRESPONSE -DESCRIPTOR.message_types_by_name['MutateCampaignExtensionSettingResult'] = _MUTATECAMPAIGNEXTENSIONSETTINGRESULT -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -GetCampaignExtensionSettingRequest = _reflection.GeneratedProtocolMessageType('GetCampaignExtensionSettingRequest', (_message.Message,), dict( - DESCRIPTOR = _GETCAMPAIGNEXTENSIONSETTINGREQUEST, - __module__ = 'google.ads.googleads_v1.proto.services.campaign_extension_setting_service_pb2' - , - __doc__ = """Request message for - [CampaignExtensionSettingService.GetCampaignExtensionSetting][google.ads.googleads.v1.services.CampaignExtensionSettingService.GetCampaignExtensionSetting]. - - - Attributes: - resource_name: - The resource name of the campaign extension setting to fetch. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.GetCampaignExtensionSettingRequest) - )) -_sym_db.RegisterMessage(GetCampaignExtensionSettingRequest) - -MutateCampaignExtensionSettingsRequest = _reflection.GeneratedProtocolMessageType('MutateCampaignExtensionSettingsRequest', (_message.Message,), dict( - DESCRIPTOR = _MUTATECAMPAIGNEXTENSIONSETTINGSREQUEST, - __module__ = 'google.ads.googleads_v1.proto.services.campaign_extension_setting_service_pb2' - , - __doc__ = """Request message for - [CampaignExtensionSettingService.MutateCampaignExtensionSettings][google.ads.googleads.v1.services.CampaignExtensionSettingService.MutateCampaignExtensionSettings]. - - - Attributes: - customer_id: - The ID of the customer whose campaign extension settings are - being modified. - operations: - The list of operations to perform on individual campaign - extension settings. - partial_failure: - If true, successful operations will be carried out and invalid - operations will return errors. If false, all operations will - be carried out in one transaction if and only if they are all - valid. Default is false. - validate_only: - If true, the request is validated but not executed. Only - errors are returned, not results. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.MutateCampaignExtensionSettingsRequest) - )) -_sym_db.RegisterMessage(MutateCampaignExtensionSettingsRequest) - -CampaignExtensionSettingOperation = _reflection.GeneratedProtocolMessageType('CampaignExtensionSettingOperation', (_message.Message,), dict( - DESCRIPTOR = _CAMPAIGNEXTENSIONSETTINGOPERATION, - __module__ = 'google.ads.googleads_v1.proto.services.campaign_extension_setting_service_pb2' - , - __doc__ = """A single operation (create, update, remove) on a campaign extension - setting. - - - Attributes: - update_mask: - FieldMask that determines which resource fields are modified - in an update. - operation: - The mutate operation. - create: - Create operation: No resource name is expected for the new - campaign extension setting. - update: - Update operation: The campaign extension setting is expected - to have a valid resource name. - remove: - Remove operation: A resource name for the removed campaign - extension setting is expected, in this format: ``customers/{c - ustomer_id}/campaignExtensionSettings/{campaign_id}~{extension - _type}`` - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.CampaignExtensionSettingOperation) - )) -_sym_db.RegisterMessage(CampaignExtensionSettingOperation) - -MutateCampaignExtensionSettingsResponse = _reflection.GeneratedProtocolMessageType('MutateCampaignExtensionSettingsResponse', (_message.Message,), dict( - DESCRIPTOR = _MUTATECAMPAIGNEXTENSIONSETTINGSRESPONSE, - __module__ = 'google.ads.googleads_v1.proto.services.campaign_extension_setting_service_pb2' - , - __doc__ = """Response message for a campaign extension setting mutate. - - - Attributes: - partial_failure_error: - Errors that pertain to operation failures in the partial - failure mode. Returned only when partial\_failure = true and - all errors occur inside the operations. If any errors occur - outside the operations (e.g. auth errors), we return an RPC - level error. - results: - All results for the mutate. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.MutateCampaignExtensionSettingsResponse) - )) -_sym_db.RegisterMessage(MutateCampaignExtensionSettingsResponse) - -MutateCampaignExtensionSettingResult = _reflection.GeneratedProtocolMessageType('MutateCampaignExtensionSettingResult', (_message.Message,), dict( - DESCRIPTOR = _MUTATECAMPAIGNEXTENSIONSETTINGRESULT, - __module__ = 'google.ads.googleads_v1.proto.services.campaign_extension_setting_service_pb2' - , - __doc__ = """The result for the campaign extension setting mutate. - - - Attributes: - resource_name: - Returned for successful operations. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.MutateCampaignExtensionSettingResult) - )) -_sym_db.RegisterMessage(MutateCampaignExtensionSettingResult) - - -DESCRIPTOR._options = None - -_CAMPAIGNEXTENSIONSETTINGSERVICE = _descriptor.ServiceDescriptor( - name='CampaignExtensionSettingService', - full_name='google.ads.googleads.v1.services.CampaignExtensionSettingService', - file=DESCRIPTOR, - index=0, - serialized_options=None, - serialized_start=1098, - serialized_end=1623, - methods=[ - _descriptor.MethodDescriptor( - name='GetCampaignExtensionSetting', - full_name='google.ads.googleads.v1.services.CampaignExtensionSettingService.GetCampaignExtensionSetting', - index=0, - containing_service=None, - input_type=_GETCAMPAIGNEXTENSIONSETTINGREQUEST, - output_type=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_campaign__extension__setting__pb2._CAMPAIGNEXTENSIONSETTING, - serialized_options=_b('\202\323\344\223\002=\022;/v1/{resource_name=customers/*/campaignExtensionSettings/*}'), - ), - _descriptor.MethodDescriptor( - name='MutateCampaignExtensionSettings', - full_name='google.ads.googleads.v1.services.CampaignExtensionSettingService.MutateCampaignExtensionSettings', - index=1, - containing_service=None, - input_type=_MUTATECAMPAIGNEXTENSIONSETTINGSREQUEST, - output_type=_MUTATECAMPAIGNEXTENSIONSETTINGSRESPONSE, - serialized_options=_b('\202\323\344\223\002C\">/v1/customers/{customer_id=*}/campaignExtensionSettings:mutate:\001*'), - ), -]) -_sym_db.RegisterServiceDescriptor(_CAMPAIGNEXTENSIONSETTINGSERVICE) - -DESCRIPTOR.services_by_name['CampaignExtensionSettingService'] = _CAMPAIGNEXTENSIONSETTINGSERVICE - -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/services/campaign_feed_service_pb2.py b/google/ads/google_ads/v1/proto/services/campaign_feed_service_pb2.py deleted file mode 100644 index 13f36dc53..000000000 --- a/google/ads/google_ads/v1/proto/services/campaign_feed_service_pb2.py +++ /dev/null @@ -1,406 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/services/campaign_feed_service.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.ads.google_ads.v1.proto.resources import campaign_feed_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_campaign__feed__pb2 -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 -from google.protobuf import field_mask_pb2 as google_dot_protobuf_dot_field__mask__pb2 -from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 -from google.rpc import status_pb2 as google_dot_rpc_dot_status__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/services/campaign_feed_service.proto', - package='google.ads.googleads.v1.services', - syntax='proto3', - serialized_options=_b('\n$com.google.ads.googleads.v1.servicesB\030CampaignFeedServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v1/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V1.Services\312\002 Google\\Ads\\GoogleAds\\V1\\Services\352\002$Google::Ads::GoogleAds::V1::Services'), - serialized_pb=_b('\nBgoogle/ads/googleads_v1/proto/services/campaign_feed_service.proto\x12 google.ads.googleads.v1.services\x1a;google/ads/googleads_v1/proto/resources/campaign_feed.proto\x1a\x1cgoogle/api/annotations.proto\x1a google/protobuf/field_mask.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x17google/rpc/status.proto\"/\n\x16GetCampaignFeedRequest\x12\x15\n\rresource_name\x18\x01 \x01(\t\"\xae\x01\n\x1aMutateCampaignFeedsRequest\x12\x13\n\x0b\x63ustomer_id\x18\x01 \x01(\t\x12K\n\noperations\x18\x02 \x03(\x0b\x32\x37.google.ads.googleads.v1.services.CampaignFeedOperation\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\"\xed\x01\n\x15\x43\x61mpaignFeedOperation\x12/\n\x0bupdate_mask\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12\x41\n\x06\x63reate\x18\x01 \x01(\x0b\x32/.google.ads.googleads.v1.resources.CampaignFeedH\x00\x12\x41\n\x06update\x18\x02 \x01(\x0b\x32/.google.ads.googleads.v1.resources.CampaignFeedH\x00\x12\x10\n\x06remove\x18\x03 \x01(\tH\x00\x42\x0b\n\toperation\"\x9d\x01\n\x1bMutateCampaignFeedsResponse\x12\x31\n\x15partial_failure_error\x18\x03 \x01(\x0b\x32\x12.google.rpc.Status\x12K\n\x07results\x18\x02 \x03(\x0b\x32:.google.ads.googleads.v1.services.MutateCampaignFeedResult\"1\n\x18MutateCampaignFeedResult\x12\x15\n\rresource_name\x18\x01 \x01(\t2\xa1\x03\n\x13\x43\x61mpaignFeedService\x12\xb5\x01\n\x0fGetCampaignFeed\x12\x38.google.ads.googleads.v1.services.GetCampaignFeedRequest\x1a/.google.ads.googleads.v1.resources.CampaignFeed\"7\x82\xd3\xe4\x93\x02\x31\x12//v1/{resource_name=customers/*/campaignFeeds/*}\x12\xd1\x01\n\x13MutateCampaignFeeds\x12<.google.ads.googleads.v1.services.MutateCampaignFeedsRequest\x1a=.google.ads.googleads.v1.services.MutateCampaignFeedsResponse\"=\x82\xd3\xe4\x93\x02\x37\"2/v1/customers/{customer_id=*}/campaignFeeds:mutate:\x01*B\xff\x01\n$com.google.ads.googleads.v1.servicesB\x18\x43\x61mpaignFeedServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v1/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V1.Services\xca\x02 Google\\Ads\\GoogleAds\\V1\\Services\xea\x02$Google::Ads::GoogleAds::V1::Servicesb\x06proto3') - , - dependencies=[google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_campaign__feed__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_protobuf_dot_field__mask__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_rpc_dot_status__pb2.DESCRIPTOR,]) - - - - -_GETCAMPAIGNFEEDREQUEST = _descriptor.Descriptor( - name='GetCampaignFeedRequest', - full_name='google.ads.googleads.v1.services.GetCampaignFeedRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.services.GetCampaignFeedRequest.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=286, - serialized_end=333, -) - - -_MUTATECAMPAIGNFEEDSREQUEST = _descriptor.Descriptor( - name='MutateCampaignFeedsRequest', - full_name='google.ads.googleads.v1.services.MutateCampaignFeedsRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='customer_id', full_name='google.ads.googleads.v1.services.MutateCampaignFeedsRequest.customer_id', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='operations', full_name='google.ads.googleads.v1.services.MutateCampaignFeedsRequest.operations', index=1, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='partial_failure', full_name='google.ads.googleads.v1.services.MutateCampaignFeedsRequest.partial_failure', index=2, - number=3, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='validate_only', full_name='google.ads.googleads.v1.services.MutateCampaignFeedsRequest.validate_only', index=3, - number=4, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=336, - serialized_end=510, -) - - -_CAMPAIGNFEEDOPERATION = _descriptor.Descriptor( - name='CampaignFeedOperation', - full_name='google.ads.googleads.v1.services.CampaignFeedOperation', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='update_mask', full_name='google.ads.googleads.v1.services.CampaignFeedOperation.update_mask', index=0, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='create', full_name='google.ads.googleads.v1.services.CampaignFeedOperation.create', index=1, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='update', full_name='google.ads.googleads.v1.services.CampaignFeedOperation.update', index=2, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='remove', full_name='google.ads.googleads.v1.services.CampaignFeedOperation.remove', index=3, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='operation', full_name='google.ads.googleads.v1.services.CampaignFeedOperation.operation', - index=0, containing_type=None, fields=[]), - ], - serialized_start=513, - serialized_end=750, -) - - -_MUTATECAMPAIGNFEEDSRESPONSE = _descriptor.Descriptor( - name='MutateCampaignFeedsResponse', - full_name='google.ads.googleads.v1.services.MutateCampaignFeedsResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='partial_failure_error', full_name='google.ads.googleads.v1.services.MutateCampaignFeedsResponse.partial_failure_error', index=0, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='results', full_name='google.ads.googleads.v1.services.MutateCampaignFeedsResponse.results', index=1, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=753, - serialized_end=910, -) - - -_MUTATECAMPAIGNFEEDRESULT = _descriptor.Descriptor( - name='MutateCampaignFeedResult', - full_name='google.ads.googleads.v1.services.MutateCampaignFeedResult', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.services.MutateCampaignFeedResult.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=912, - serialized_end=961, -) - -_MUTATECAMPAIGNFEEDSREQUEST.fields_by_name['operations'].message_type = _CAMPAIGNFEEDOPERATION -_CAMPAIGNFEEDOPERATION.fields_by_name['update_mask'].message_type = google_dot_protobuf_dot_field__mask__pb2._FIELDMASK -_CAMPAIGNFEEDOPERATION.fields_by_name['create'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_campaign__feed__pb2._CAMPAIGNFEED -_CAMPAIGNFEEDOPERATION.fields_by_name['update'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_campaign__feed__pb2._CAMPAIGNFEED -_CAMPAIGNFEEDOPERATION.oneofs_by_name['operation'].fields.append( - _CAMPAIGNFEEDOPERATION.fields_by_name['create']) -_CAMPAIGNFEEDOPERATION.fields_by_name['create'].containing_oneof = _CAMPAIGNFEEDOPERATION.oneofs_by_name['operation'] -_CAMPAIGNFEEDOPERATION.oneofs_by_name['operation'].fields.append( - _CAMPAIGNFEEDOPERATION.fields_by_name['update']) -_CAMPAIGNFEEDOPERATION.fields_by_name['update'].containing_oneof = _CAMPAIGNFEEDOPERATION.oneofs_by_name['operation'] -_CAMPAIGNFEEDOPERATION.oneofs_by_name['operation'].fields.append( - _CAMPAIGNFEEDOPERATION.fields_by_name['remove']) -_CAMPAIGNFEEDOPERATION.fields_by_name['remove'].containing_oneof = _CAMPAIGNFEEDOPERATION.oneofs_by_name['operation'] -_MUTATECAMPAIGNFEEDSRESPONSE.fields_by_name['partial_failure_error'].message_type = google_dot_rpc_dot_status__pb2._STATUS -_MUTATECAMPAIGNFEEDSRESPONSE.fields_by_name['results'].message_type = _MUTATECAMPAIGNFEEDRESULT -DESCRIPTOR.message_types_by_name['GetCampaignFeedRequest'] = _GETCAMPAIGNFEEDREQUEST -DESCRIPTOR.message_types_by_name['MutateCampaignFeedsRequest'] = _MUTATECAMPAIGNFEEDSREQUEST -DESCRIPTOR.message_types_by_name['CampaignFeedOperation'] = _CAMPAIGNFEEDOPERATION -DESCRIPTOR.message_types_by_name['MutateCampaignFeedsResponse'] = _MUTATECAMPAIGNFEEDSRESPONSE -DESCRIPTOR.message_types_by_name['MutateCampaignFeedResult'] = _MUTATECAMPAIGNFEEDRESULT -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -GetCampaignFeedRequest = _reflection.GeneratedProtocolMessageType('GetCampaignFeedRequest', (_message.Message,), dict( - DESCRIPTOR = _GETCAMPAIGNFEEDREQUEST, - __module__ = 'google.ads.googleads_v1.proto.services.campaign_feed_service_pb2' - , - __doc__ = """Request message for - [CampaignFeedService.GetCampaignFeed][google.ads.googleads.v1.services.CampaignFeedService.GetCampaignFeed]. - - - Attributes: - resource_name: - The resource name of the campaign feed to fetch. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.GetCampaignFeedRequest) - )) -_sym_db.RegisterMessage(GetCampaignFeedRequest) - -MutateCampaignFeedsRequest = _reflection.GeneratedProtocolMessageType('MutateCampaignFeedsRequest', (_message.Message,), dict( - DESCRIPTOR = _MUTATECAMPAIGNFEEDSREQUEST, - __module__ = 'google.ads.googleads_v1.proto.services.campaign_feed_service_pb2' - , - __doc__ = """Request message for - [CampaignFeedService.MutateCampaignFeeds][google.ads.googleads.v1.services.CampaignFeedService.MutateCampaignFeeds]. - - - Attributes: - customer_id: - The ID of the customer whose campaign feeds are being - modified. - operations: - The list of operations to perform on individual campaign - feeds. - partial_failure: - If true, successful operations will be carried out and invalid - operations will return errors. If false, all operations will - be carried out in one transaction if and only if they are all - valid. Default is false. - validate_only: - If true, the request is validated but not executed. Only - errors are returned, not results. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.MutateCampaignFeedsRequest) - )) -_sym_db.RegisterMessage(MutateCampaignFeedsRequest) - -CampaignFeedOperation = _reflection.GeneratedProtocolMessageType('CampaignFeedOperation', (_message.Message,), dict( - DESCRIPTOR = _CAMPAIGNFEEDOPERATION, - __module__ = 'google.ads.googleads_v1.proto.services.campaign_feed_service_pb2' - , - __doc__ = """A single operation (create, update, remove) on a campaign feed. - - - Attributes: - update_mask: - FieldMask that determines which resource fields are modified - in an update. - operation: - The mutate operation. - create: - Create operation: No resource name is expected for the new - campaign feed. - update: - Update operation: The campaign feed is expected to have a - valid resource name. - remove: - Remove operation: A resource name for the removed campaign - feed is expected, in this format: ``customers/{customer_id}/c - ampaignFeeds/{campaign_id}~{feed_id}`` - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.CampaignFeedOperation) - )) -_sym_db.RegisterMessage(CampaignFeedOperation) - -MutateCampaignFeedsResponse = _reflection.GeneratedProtocolMessageType('MutateCampaignFeedsResponse', (_message.Message,), dict( - DESCRIPTOR = _MUTATECAMPAIGNFEEDSRESPONSE, - __module__ = 'google.ads.googleads_v1.proto.services.campaign_feed_service_pb2' - , - __doc__ = """Response message for a campaign feed mutate. - - - Attributes: - partial_failure_error: - Errors that pertain to operation failures in the partial - failure mode. Returned only when partial\_failure = true and - all errors occur inside the operations. If any errors occur - outside the operations (e.g. auth errors), we return an RPC - level error. - results: - All results for the mutate. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.MutateCampaignFeedsResponse) - )) -_sym_db.RegisterMessage(MutateCampaignFeedsResponse) - -MutateCampaignFeedResult = _reflection.GeneratedProtocolMessageType('MutateCampaignFeedResult', (_message.Message,), dict( - DESCRIPTOR = _MUTATECAMPAIGNFEEDRESULT, - __module__ = 'google.ads.googleads_v1.proto.services.campaign_feed_service_pb2' - , - __doc__ = """The result for the campaign feed mutate. - - - Attributes: - resource_name: - Returned for successful operations. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.MutateCampaignFeedResult) - )) -_sym_db.RegisterMessage(MutateCampaignFeedResult) - - -DESCRIPTOR._options = None - -_CAMPAIGNFEEDSERVICE = _descriptor.ServiceDescriptor( - name='CampaignFeedService', - full_name='google.ads.googleads.v1.services.CampaignFeedService', - file=DESCRIPTOR, - index=0, - serialized_options=None, - serialized_start=964, - serialized_end=1381, - methods=[ - _descriptor.MethodDescriptor( - name='GetCampaignFeed', - full_name='google.ads.googleads.v1.services.CampaignFeedService.GetCampaignFeed', - index=0, - containing_service=None, - input_type=_GETCAMPAIGNFEEDREQUEST, - output_type=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_campaign__feed__pb2._CAMPAIGNFEED, - serialized_options=_b('\202\323\344\223\0021\022//v1/{resource_name=customers/*/campaignFeeds/*}'), - ), - _descriptor.MethodDescriptor( - name='MutateCampaignFeeds', - full_name='google.ads.googleads.v1.services.CampaignFeedService.MutateCampaignFeeds', - index=1, - containing_service=None, - input_type=_MUTATECAMPAIGNFEEDSREQUEST, - output_type=_MUTATECAMPAIGNFEEDSRESPONSE, - serialized_options=_b('\202\323\344\223\0027\"2/v1/customers/{customer_id=*}/campaignFeeds:mutate:\001*'), - ), -]) -_sym_db.RegisterServiceDescriptor(_CAMPAIGNFEEDSERVICE) - -DESCRIPTOR.services_by_name['CampaignFeedService'] = _CAMPAIGNFEEDSERVICE - -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/services/campaign_feed_service_pb2_grpc.py b/google/ads/google_ads/v1/proto/services/campaign_feed_service_pb2_grpc.py deleted file mode 100644 index 26f107cbd..000000000 --- a/google/ads/google_ads/v1/proto/services/campaign_feed_service_pb2_grpc.py +++ /dev/null @@ -1,69 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -import grpc - -from google.ads.google_ads.v1.proto.resources import campaign_feed_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_campaign__feed__pb2 -from google.ads.google_ads.v1.proto.services import campaign_feed_service_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_campaign__feed__service__pb2 - - -class CampaignFeedServiceStub(object): - """Proto file describing the CampaignFeed service. - - Service to manage campaign feeds. - """ - - def __init__(self, channel): - """Constructor. - - Args: - channel: A grpc.Channel. - """ - self.GetCampaignFeed = channel.unary_unary( - '/google.ads.googleads.v1.services.CampaignFeedService/GetCampaignFeed', - request_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_campaign__feed__service__pb2.GetCampaignFeedRequest.SerializeToString, - response_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_campaign__feed__pb2.CampaignFeed.FromString, - ) - self.MutateCampaignFeeds = channel.unary_unary( - '/google.ads.googleads.v1.services.CampaignFeedService/MutateCampaignFeeds', - request_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_campaign__feed__service__pb2.MutateCampaignFeedsRequest.SerializeToString, - response_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_campaign__feed__service__pb2.MutateCampaignFeedsResponse.FromString, - ) - - -class CampaignFeedServiceServicer(object): - """Proto file describing the CampaignFeed service. - - Service to manage campaign feeds. - """ - - def GetCampaignFeed(self, request, context): - """Returns the requested campaign feed in full detail. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def MutateCampaignFeeds(self, request, context): - """Creates, updates, or removes campaign feeds. Operation statuses are - returned. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - -def add_CampaignFeedServiceServicer_to_server(servicer, server): - rpc_method_handlers = { - 'GetCampaignFeed': grpc.unary_unary_rpc_method_handler( - servicer.GetCampaignFeed, - request_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_campaign__feed__service__pb2.GetCampaignFeedRequest.FromString, - response_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_campaign__feed__pb2.CampaignFeed.SerializeToString, - ), - 'MutateCampaignFeeds': grpc.unary_unary_rpc_method_handler( - servicer.MutateCampaignFeeds, - request_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_campaign__feed__service__pb2.MutateCampaignFeedsRequest.FromString, - response_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_campaign__feed__service__pb2.MutateCampaignFeedsResponse.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'google.ads.googleads.v1.services.CampaignFeedService', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) diff --git a/google/ads/google_ads/v1/proto/services/campaign_label_service_pb2.py b/google/ads/google_ads/v1/proto/services/campaign_label_service_pb2.py deleted file mode 100644 index 7659b663f..000000000 --- a/google/ads/google_ads/v1/proto/services/campaign_label_service_pb2.py +++ /dev/null @@ -1,380 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/services/campaign_label_service.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.ads.google_ads.v1.proto.resources import campaign_label_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_campaign__label__pb2 -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 -from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 -from google.rpc import status_pb2 as google_dot_rpc_dot_status__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/services/campaign_label_service.proto', - package='google.ads.googleads.v1.services', - syntax='proto3', - serialized_options=_b('\n$com.google.ads.googleads.v1.servicesB\031CampaignLabelServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v1/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V1.Services\312\002 Google\\Ads\\GoogleAds\\V1\\Services\352\002$Google::Ads::GoogleAds::V1::Services'), - serialized_pb=_b('\nCgoogle/ads/googleads_v1/proto/services/campaign_label_service.proto\x12 google.ads.googleads.v1.services\x1a.google.ads.googleads.v1.services.MutateCampaignLabelsResponse\">\x82\xd3\xe4\x93\x02\x38\"3/v1/customers/{customer_id=*}/campaignLabels:mutate:\x01*B\x80\x02\n$com.google.ads.googleads.v1.servicesB\x19\x43\x61mpaignLabelServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v1/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V1.Services\xca\x02 Google\\Ads\\GoogleAds\\V1\\Services\xea\x02$Google::Ads::GoogleAds::V1::Servicesb\x06proto3') - , - dependencies=[google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_campaign__label__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_rpc_dot_status__pb2.DESCRIPTOR,]) - - - - -_GETCAMPAIGNLABELREQUEST = _descriptor.Descriptor( - name='GetCampaignLabelRequest', - full_name='google.ads.googleads.v1.services.GetCampaignLabelRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.services.GetCampaignLabelRequest.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=254, - serialized_end=302, -) - - -_MUTATECAMPAIGNLABELSREQUEST = _descriptor.Descriptor( - name='MutateCampaignLabelsRequest', - full_name='google.ads.googleads.v1.services.MutateCampaignLabelsRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='customer_id', full_name='google.ads.googleads.v1.services.MutateCampaignLabelsRequest.customer_id', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='operations', full_name='google.ads.googleads.v1.services.MutateCampaignLabelsRequest.operations', index=1, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='partial_failure', full_name='google.ads.googleads.v1.services.MutateCampaignLabelsRequest.partial_failure', index=2, - number=3, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='validate_only', full_name='google.ads.googleads.v1.services.MutateCampaignLabelsRequest.validate_only', index=3, - number=4, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=305, - serialized_end=481, -) - - -_CAMPAIGNLABELOPERATION = _descriptor.Descriptor( - name='CampaignLabelOperation', - full_name='google.ads.googleads.v1.services.CampaignLabelOperation', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='create', full_name='google.ads.googleads.v1.services.CampaignLabelOperation.create', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='remove', full_name='google.ads.googleads.v1.services.CampaignLabelOperation.remove', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='operation', full_name='google.ads.googleads.v1.services.CampaignLabelOperation.operation', - index=0, containing_type=None, fields=[]), - ], - serialized_start=483, - serialized_end=606, -) - - -_MUTATECAMPAIGNLABELSRESPONSE = _descriptor.Descriptor( - name='MutateCampaignLabelsResponse', - full_name='google.ads.googleads.v1.services.MutateCampaignLabelsResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='partial_failure_error', full_name='google.ads.googleads.v1.services.MutateCampaignLabelsResponse.partial_failure_error', index=0, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='results', full_name='google.ads.googleads.v1.services.MutateCampaignLabelsResponse.results', index=1, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=609, - serialized_end=768, -) - - -_MUTATECAMPAIGNLABELRESULT = _descriptor.Descriptor( - name='MutateCampaignLabelResult', - full_name='google.ads.googleads.v1.services.MutateCampaignLabelResult', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.services.MutateCampaignLabelResult.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=770, - serialized_end=820, -) - -_MUTATECAMPAIGNLABELSREQUEST.fields_by_name['operations'].message_type = _CAMPAIGNLABELOPERATION -_CAMPAIGNLABELOPERATION.fields_by_name['create'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_campaign__label__pb2._CAMPAIGNLABEL -_CAMPAIGNLABELOPERATION.oneofs_by_name['operation'].fields.append( - _CAMPAIGNLABELOPERATION.fields_by_name['create']) -_CAMPAIGNLABELOPERATION.fields_by_name['create'].containing_oneof = _CAMPAIGNLABELOPERATION.oneofs_by_name['operation'] -_CAMPAIGNLABELOPERATION.oneofs_by_name['operation'].fields.append( - _CAMPAIGNLABELOPERATION.fields_by_name['remove']) -_CAMPAIGNLABELOPERATION.fields_by_name['remove'].containing_oneof = _CAMPAIGNLABELOPERATION.oneofs_by_name['operation'] -_MUTATECAMPAIGNLABELSRESPONSE.fields_by_name['partial_failure_error'].message_type = google_dot_rpc_dot_status__pb2._STATUS -_MUTATECAMPAIGNLABELSRESPONSE.fields_by_name['results'].message_type = _MUTATECAMPAIGNLABELRESULT -DESCRIPTOR.message_types_by_name['GetCampaignLabelRequest'] = _GETCAMPAIGNLABELREQUEST -DESCRIPTOR.message_types_by_name['MutateCampaignLabelsRequest'] = _MUTATECAMPAIGNLABELSREQUEST -DESCRIPTOR.message_types_by_name['CampaignLabelOperation'] = _CAMPAIGNLABELOPERATION -DESCRIPTOR.message_types_by_name['MutateCampaignLabelsResponse'] = _MUTATECAMPAIGNLABELSRESPONSE -DESCRIPTOR.message_types_by_name['MutateCampaignLabelResult'] = _MUTATECAMPAIGNLABELRESULT -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -GetCampaignLabelRequest = _reflection.GeneratedProtocolMessageType('GetCampaignLabelRequest', (_message.Message,), dict( - DESCRIPTOR = _GETCAMPAIGNLABELREQUEST, - __module__ = 'google.ads.googleads_v1.proto.services.campaign_label_service_pb2' - , - __doc__ = """Request message for - [CampaignLabelService.GetCampaignLabel][google.ads.googleads.v1.services.CampaignLabelService.GetCampaignLabel]. - - - Attributes: - resource_name: - The resource name of the campaign-label relationship to fetch. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.GetCampaignLabelRequest) - )) -_sym_db.RegisterMessage(GetCampaignLabelRequest) - -MutateCampaignLabelsRequest = _reflection.GeneratedProtocolMessageType('MutateCampaignLabelsRequest', (_message.Message,), dict( - DESCRIPTOR = _MUTATECAMPAIGNLABELSREQUEST, - __module__ = 'google.ads.googleads_v1.proto.services.campaign_label_service_pb2' - , - __doc__ = """Request message for - [CampaignLabelService.MutateCampaignLabels][google.ads.googleads.v1.services.CampaignLabelService.MutateCampaignLabels]. - - - Attributes: - customer_id: - ID of the customer whose campaign-label relationships are - being modified. - operations: - The list of operations to perform on campaign-label - relationships. - partial_failure: - If true, successful operations will be carried out and invalid - operations will return errors. If false, all operations will - be carried out in one transaction if and only if they are all - valid. Default is false. - validate_only: - If true, the request is validated but not executed. Only - errors are returned, not results. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.MutateCampaignLabelsRequest) - )) -_sym_db.RegisterMessage(MutateCampaignLabelsRequest) - -CampaignLabelOperation = _reflection.GeneratedProtocolMessageType('CampaignLabelOperation', (_message.Message,), dict( - DESCRIPTOR = _CAMPAIGNLABELOPERATION, - __module__ = 'google.ads.googleads_v1.proto.services.campaign_label_service_pb2' - , - __doc__ = """A single operation (create, remove) on a campaign-label relationship. - - - Attributes: - operation: - The mutate operation. - create: - Create operation: No resource name is expected for the new - campaign-label relationship. - remove: - Remove operation: A resource name for the campaign-label - relationship being removed, in this format: ``customers/{cust - omer_id}/campaignLabels/{campaign_id}~{label_id}`` - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.CampaignLabelOperation) - )) -_sym_db.RegisterMessage(CampaignLabelOperation) - -MutateCampaignLabelsResponse = _reflection.GeneratedProtocolMessageType('MutateCampaignLabelsResponse', (_message.Message,), dict( - DESCRIPTOR = _MUTATECAMPAIGNLABELSRESPONSE, - __module__ = 'google.ads.googleads_v1.proto.services.campaign_label_service_pb2' - , - __doc__ = """Response message for a campaign labels mutate. - - - Attributes: - partial_failure_error: - Errors that pertain to operation failures in the partial - failure mode. Returned only when partial\_failure = true and - all errors occur inside the operations. If any errors occur - outside the operations (e.g. auth errors), we return an RPC - level error. - results: - All results for the mutate. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.MutateCampaignLabelsResponse) - )) -_sym_db.RegisterMessage(MutateCampaignLabelsResponse) - -MutateCampaignLabelResult = _reflection.GeneratedProtocolMessageType('MutateCampaignLabelResult', (_message.Message,), dict( - DESCRIPTOR = _MUTATECAMPAIGNLABELRESULT, - __module__ = 'google.ads.googleads_v1.proto.services.campaign_label_service_pb2' - , - __doc__ = """The result for a campaign label mutate. - - - Attributes: - resource_name: - Returned for successful operations. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.MutateCampaignLabelResult) - )) -_sym_db.RegisterMessage(MutateCampaignLabelResult) - - -DESCRIPTOR._options = None - -_CAMPAIGNLABELSERVICE = _descriptor.ServiceDescriptor( - name='CampaignLabelService', - full_name='google.ads.googleads.v1.services.CampaignLabelService', - file=DESCRIPTOR, - index=0, - serialized_options=None, - serialized_start=823, - serialized_end=1249, - methods=[ - _descriptor.MethodDescriptor( - name='GetCampaignLabel', - full_name='google.ads.googleads.v1.services.CampaignLabelService.GetCampaignLabel', - index=0, - containing_service=None, - input_type=_GETCAMPAIGNLABELREQUEST, - output_type=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_campaign__label__pb2._CAMPAIGNLABEL, - serialized_options=_b('\202\323\344\223\0022\0220/v1/{resource_name=customers/*/campaignLabels/*}'), - ), - _descriptor.MethodDescriptor( - name='MutateCampaignLabels', - full_name='google.ads.googleads.v1.services.CampaignLabelService.MutateCampaignLabels', - index=1, - containing_service=None, - input_type=_MUTATECAMPAIGNLABELSREQUEST, - output_type=_MUTATECAMPAIGNLABELSRESPONSE, - serialized_options=_b('\202\323\344\223\0028\"3/v1/customers/{customer_id=*}/campaignLabels:mutate:\001*'), - ), -]) -_sym_db.RegisterServiceDescriptor(_CAMPAIGNLABELSERVICE) - -DESCRIPTOR.services_by_name['CampaignLabelService'] = _CAMPAIGNLABELSERVICE - -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/services/campaign_label_service_pb2_grpc.py b/google/ads/google_ads/v1/proto/services/campaign_label_service_pb2_grpc.py deleted file mode 100644 index 975a111b0..000000000 --- a/google/ads/google_ads/v1/proto/services/campaign_label_service_pb2_grpc.py +++ /dev/null @@ -1,69 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -import grpc - -from google.ads.google_ads.v1.proto.resources import campaign_label_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_campaign__label__pb2 -from google.ads.google_ads.v1.proto.services import campaign_label_service_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_campaign__label__service__pb2 - - -class CampaignLabelServiceStub(object): - """Proto file describing the Campaign Label service. - - Service to manage labels on campaigns. - """ - - def __init__(self, channel): - """Constructor. - - Args: - channel: A grpc.Channel. - """ - self.GetCampaignLabel = channel.unary_unary( - '/google.ads.googleads.v1.services.CampaignLabelService/GetCampaignLabel', - request_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_campaign__label__service__pb2.GetCampaignLabelRequest.SerializeToString, - response_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_campaign__label__pb2.CampaignLabel.FromString, - ) - self.MutateCampaignLabels = channel.unary_unary( - '/google.ads.googleads.v1.services.CampaignLabelService/MutateCampaignLabels', - request_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_campaign__label__service__pb2.MutateCampaignLabelsRequest.SerializeToString, - response_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_campaign__label__service__pb2.MutateCampaignLabelsResponse.FromString, - ) - - -class CampaignLabelServiceServicer(object): - """Proto file describing the Campaign Label service. - - Service to manage labels on campaigns. - """ - - def GetCampaignLabel(self, request, context): - """Returns the requested campaign-label relationship in full detail. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def MutateCampaignLabels(self, request, context): - """Creates and removes campaign-label relationships. - Operation statuses are returned. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - -def add_CampaignLabelServiceServicer_to_server(servicer, server): - rpc_method_handlers = { - 'GetCampaignLabel': grpc.unary_unary_rpc_method_handler( - servicer.GetCampaignLabel, - request_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_campaign__label__service__pb2.GetCampaignLabelRequest.FromString, - response_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_campaign__label__pb2.CampaignLabel.SerializeToString, - ), - 'MutateCampaignLabels': grpc.unary_unary_rpc_method_handler( - servicer.MutateCampaignLabels, - request_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_campaign__label__service__pb2.MutateCampaignLabelsRequest.FromString, - response_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_campaign__label__service__pb2.MutateCampaignLabelsResponse.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'google.ads.googleads.v1.services.CampaignLabelService', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) diff --git a/google/ads/google_ads/v1/proto/services/campaign_service_pb2.py b/google/ads/google_ads/v1/proto/services/campaign_service_pb2.py deleted file mode 100644 index e3613b6e9..000000000 --- a/google/ads/google_ads/v1/proto/services/campaign_service_pb2.py +++ /dev/null @@ -1,404 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/services/campaign_service.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.ads.google_ads.v1.proto.resources import campaign_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_campaign__pb2 -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 -from google.protobuf import field_mask_pb2 as google_dot_protobuf_dot_field__mask__pb2 -from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 -from google.rpc import status_pb2 as google_dot_rpc_dot_status__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/services/campaign_service.proto', - package='google.ads.googleads.v1.services', - syntax='proto3', - serialized_options=_b('\n$com.google.ads.googleads.v1.servicesB\024CampaignServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v1/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V1.Services\312\002 Google\\Ads\\GoogleAds\\V1\\Services\352\002$Google::Ads::GoogleAds::V1::Services'), - serialized_pb=_b('\n=google/ads/googleads_v1/proto/services/campaign_service.proto\x12 google.ads.googleads.v1.services\x1a\x36google/ads/googleads_v1/proto/resources/campaign.proto\x1a\x1cgoogle/api/annotations.proto\x1a google/protobuf/field_mask.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x17google/rpc/status.proto\"+\n\x12GetCampaignRequest\x12\x15\n\rresource_name\x18\x01 \x01(\t\"\xa6\x01\n\x16MutateCampaignsRequest\x12\x13\n\x0b\x63ustomer_id\x18\x01 \x01(\t\x12G\n\noperations\x18\x02 \x03(\x0b\x32\x33.google.ads.googleads.v1.services.CampaignOperation\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\"\xe1\x01\n\x11\x43\x61mpaignOperation\x12/\n\x0bupdate_mask\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12=\n\x06\x63reate\x18\x01 \x01(\x0b\x32+.google.ads.googleads.v1.resources.CampaignH\x00\x12=\n\x06update\x18\x02 \x01(\x0b\x32+.google.ads.googleads.v1.resources.CampaignH\x00\x12\x10\n\x06remove\x18\x03 \x01(\tH\x00\x42\x0b\n\toperation\"\x95\x01\n\x17MutateCampaignsResponse\x12\x31\n\x15partial_failure_error\x18\x03 \x01(\x0b\x32\x12.google.rpc.Status\x12G\n\x07results\x18\x02 \x03(\x0b\x32\x36.google.ads.googleads.v1.services.MutateCampaignResult\"-\n\x14MutateCampaignResult\x12\x15\n\rresource_name\x18\x01 \x01(\t2\xfd\x02\n\x0f\x43\x61mpaignService\x12\xa5\x01\n\x0bGetCampaign\x12\x34.google.ads.googleads.v1.services.GetCampaignRequest\x1a+.google.ads.googleads.v1.resources.Campaign\"3\x82\xd3\xe4\x93\x02-\x12+/v1/{resource_name=customers/*/campaigns/*}\x12\xc1\x01\n\x0fMutateCampaigns\x12\x38.google.ads.googleads.v1.services.MutateCampaignsRequest\x1a\x39.google.ads.googleads.v1.services.MutateCampaignsResponse\"9\x82\xd3\xe4\x93\x02\x33\"./v1/customers/{customer_id=*}/campaigns:mutate:\x01*B\xfb\x01\n$com.google.ads.googleads.v1.servicesB\x14\x43\x61mpaignServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v1/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V1.Services\xca\x02 Google\\Ads\\GoogleAds\\V1\\Services\xea\x02$Google::Ads::GoogleAds::V1::Servicesb\x06proto3') - , - dependencies=[google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_campaign__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_protobuf_dot_field__mask__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_rpc_dot_status__pb2.DESCRIPTOR,]) - - - - -_GETCAMPAIGNREQUEST = _descriptor.Descriptor( - name='GetCampaignRequest', - full_name='google.ads.googleads.v1.services.GetCampaignRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.services.GetCampaignRequest.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=276, - serialized_end=319, -) - - -_MUTATECAMPAIGNSREQUEST = _descriptor.Descriptor( - name='MutateCampaignsRequest', - full_name='google.ads.googleads.v1.services.MutateCampaignsRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='customer_id', full_name='google.ads.googleads.v1.services.MutateCampaignsRequest.customer_id', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='operations', full_name='google.ads.googleads.v1.services.MutateCampaignsRequest.operations', index=1, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='partial_failure', full_name='google.ads.googleads.v1.services.MutateCampaignsRequest.partial_failure', index=2, - number=3, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='validate_only', full_name='google.ads.googleads.v1.services.MutateCampaignsRequest.validate_only', index=3, - number=4, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=322, - serialized_end=488, -) - - -_CAMPAIGNOPERATION = _descriptor.Descriptor( - name='CampaignOperation', - full_name='google.ads.googleads.v1.services.CampaignOperation', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='update_mask', full_name='google.ads.googleads.v1.services.CampaignOperation.update_mask', index=0, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='create', full_name='google.ads.googleads.v1.services.CampaignOperation.create', index=1, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='update', full_name='google.ads.googleads.v1.services.CampaignOperation.update', index=2, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='remove', full_name='google.ads.googleads.v1.services.CampaignOperation.remove', index=3, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='operation', full_name='google.ads.googleads.v1.services.CampaignOperation.operation', - index=0, containing_type=None, fields=[]), - ], - serialized_start=491, - serialized_end=716, -) - - -_MUTATECAMPAIGNSRESPONSE = _descriptor.Descriptor( - name='MutateCampaignsResponse', - full_name='google.ads.googleads.v1.services.MutateCampaignsResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='partial_failure_error', full_name='google.ads.googleads.v1.services.MutateCampaignsResponse.partial_failure_error', index=0, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='results', full_name='google.ads.googleads.v1.services.MutateCampaignsResponse.results', index=1, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=719, - serialized_end=868, -) - - -_MUTATECAMPAIGNRESULT = _descriptor.Descriptor( - name='MutateCampaignResult', - full_name='google.ads.googleads.v1.services.MutateCampaignResult', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.services.MutateCampaignResult.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=870, - serialized_end=915, -) - -_MUTATECAMPAIGNSREQUEST.fields_by_name['operations'].message_type = _CAMPAIGNOPERATION -_CAMPAIGNOPERATION.fields_by_name['update_mask'].message_type = google_dot_protobuf_dot_field__mask__pb2._FIELDMASK -_CAMPAIGNOPERATION.fields_by_name['create'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_campaign__pb2._CAMPAIGN -_CAMPAIGNOPERATION.fields_by_name['update'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_campaign__pb2._CAMPAIGN -_CAMPAIGNOPERATION.oneofs_by_name['operation'].fields.append( - _CAMPAIGNOPERATION.fields_by_name['create']) -_CAMPAIGNOPERATION.fields_by_name['create'].containing_oneof = _CAMPAIGNOPERATION.oneofs_by_name['operation'] -_CAMPAIGNOPERATION.oneofs_by_name['operation'].fields.append( - _CAMPAIGNOPERATION.fields_by_name['update']) -_CAMPAIGNOPERATION.fields_by_name['update'].containing_oneof = _CAMPAIGNOPERATION.oneofs_by_name['operation'] -_CAMPAIGNOPERATION.oneofs_by_name['operation'].fields.append( - _CAMPAIGNOPERATION.fields_by_name['remove']) -_CAMPAIGNOPERATION.fields_by_name['remove'].containing_oneof = _CAMPAIGNOPERATION.oneofs_by_name['operation'] -_MUTATECAMPAIGNSRESPONSE.fields_by_name['partial_failure_error'].message_type = google_dot_rpc_dot_status__pb2._STATUS -_MUTATECAMPAIGNSRESPONSE.fields_by_name['results'].message_type = _MUTATECAMPAIGNRESULT -DESCRIPTOR.message_types_by_name['GetCampaignRequest'] = _GETCAMPAIGNREQUEST -DESCRIPTOR.message_types_by_name['MutateCampaignsRequest'] = _MUTATECAMPAIGNSREQUEST -DESCRIPTOR.message_types_by_name['CampaignOperation'] = _CAMPAIGNOPERATION -DESCRIPTOR.message_types_by_name['MutateCampaignsResponse'] = _MUTATECAMPAIGNSRESPONSE -DESCRIPTOR.message_types_by_name['MutateCampaignResult'] = _MUTATECAMPAIGNRESULT -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -GetCampaignRequest = _reflection.GeneratedProtocolMessageType('GetCampaignRequest', (_message.Message,), dict( - DESCRIPTOR = _GETCAMPAIGNREQUEST, - __module__ = 'google.ads.googleads_v1.proto.services.campaign_service_pb2' - , - __doc__ = """Request message for - [CampaignService.GetCampaign][google.ads.googleads.v1.services.CampaignService.GetCampaign]. - - - Attributes: - resource_name: - The resource name of the campaign to fetch. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.GetCampaignRequest) - )) -_sym_db.RegisterMessage(GetCampaignRequest) - -MutateCampaignsRequest = _reflection.GeneratedProtocolMessageType('MutateCampaignsRequest', (_message.Message,), dict( - DESCRIPTOR = _MUTATECAMPAIGNSREQUEST, - __module__ = 'google.ads.googleads_v1.proto.services.campaign_service_pb2' - , - __doc__ = """Request message for - [CampaignService.MutateCampaigns][google.ads.googleads.v1.services.CampaignService.MutateCampaigns]. - - - Attributes: - customer_id: - The ID of the customer whose campaigns are being modified. - operations: - The list of operations to perform on individual campaigns. - partial_failure: - If true, successful operations will be carried out and invalid - operations will return errors. If false, all operations will - be carried out in one transaction if and only if they are all - valid. Default is false. - validate_only: - If true, the request is validated but not executed. Only - errors are returned, not results. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.MutateCampaignsRequest) - )) -_sym_db.RegisterMessage(MutateCampaignsRequest) - -CampaignOperation = _reflection.GeneratedProtocolMessageType('CampaignOperation', (_message.Message,), dict( - DESCRIPTOR = _CAMPAIGNOPERATION, - __module__ = 'google.ads.googleads_v1.proto.services.campaign_service_pb2' - , - __doc__ = """A single operation (create, update, remove) on a campaign. - - - Attributes: - update_mask: - FieldMask that determines which resource fields are modified - in an update. - operation: - The mutate operation. - create: - Create operation: No resource name is expected for the new - campaign. - update: - Update operation: The campaign is expected to have a valid - resource name. - remove: - Remove operation: A resource name for the removed campaign is - expected, in this format: - ``customers/{customer_id}/campaigns/{campaign_id}`` - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.CampaignOperation) - )) -_sym_db.RegisterMessage(CampaignOperation) - -MutateCampaignsResponse = _reflection.GeneratedProtocolMessageType('MutateCampaignsResponse', (_message.Message,), dict( - DESCRIPTOR = _MUTATECAMPAIGNSRESPONSE, - __module__ = 'google.ads.googleads_v1.proto.services.campaign_service_pb2' - , - __doc__ = """Response message for campaign mutate. - - - Attributes: - partial_failure_error: - Errors that pertain to operation failures in the partial - failure mode. Returned only when partial\_failure = true and - all errors occur inside the operations. If any errors occur - outside the operations (e.g. auth errors), we return an RPC - level error. - results: - All results for the mutate. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.MutateCampaignsResponse) - )) -_sym_db.RegisterMessage(MutateCampaignsResponse) - -MutateCampaignResult = _reflection.GeneratedProtocolMessageType('MutateCampaignResult', (_message.Message,), dict( - DESCRIPTOR = _MUTATECAMPAIGNRESULT, - __module__ = 'google.ads.googleads_v1.proto.services.campaign_service_pb2' - , - __doc__ = """The result for the campaign mutate. - - - Attributes: - resource_name: - Returned for successful operations. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.MutateCampaignResult) - )) -_sym_db.RegisterMessage(MutateCampaignResult) - - -DESCRIPTOR._options = None - -_CAMPAIGNSERVICE = _descriptor.ServiceDescriptor( - name='CampaignService', - full_name='google.ads.googleads.v1.services.CampaignService', - file=DESCRIPTOR, - index=0, - serialized_options=None, - serialized_start=918, - serialized_end=1299, - methods=[ - _descriptor.MethodDescriptor( - name='GetCampaign', - full_name='google.ads.googleads.v1.services.CampaignService.GetCampaign', - index=0, - containing_service=None, - input_type=_GETCAMPAIGNREQUEST, - output_type=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_campaign__pb2._CAMPAIGN, - serialized_options=_b('\202\323\344\223\002-\022+/v1/{resource_name=customers/*/campaigns/*}'), - ), - _descriptor.MethodDescriptor( - name='MutateCampaigns', - full_name='google.ads.googleads.v1.services.CampaignService.MutateCampaigns', - index=1, - containing_service=None, - input_type=_MUTATECAMPAIGNSREQUEST, - output_type=_MUTATECAMPAIGNSRESPONSE, - serialized_options=_b('\202\323\344\223\0023\"./v1/customers/{customer_id=*}/campaigns:mutate:\001*'), - ), -]) -_sym_db.RegisterServiceDescriptor(_CAMPAIGNSERVICE) - -DESCRIPTOR.services_by_name['CampaignService'] = _CAMPAIGNSERVICE - -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/services/campaign_service_pb2_grpc.py b/google/ads/google_ads/v1/proto/services/campaign_service_pb2_grpc.py deleted file mode 100644 index aef9a9b29..000000000 --- a/google/ads/google_ads/v1/proto/services/campaign_service_pb2_grpc.py +++ /dev/null @@ -1,68 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -import grpc - -from google.ads.google_ads.v1.proto.resources import campaign_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_campaign__pb2 -from google.ads.google_ads.v1.proto.services import campaign_service_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_campaign__service__pb2 - - -class CampaignServiceStub(object): - """Proto file describing the Campaign service. - - Service to manage campaigns. - """ - - def __init__(self, channel): - """Constructor. - - Args: - channel: A grpc.Channel. - """ - self.GetCampaign = channel.unary_unary( - '/google.ads.googleads.v1.services.CampaignService/GetCampaign', - request_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_campaign__service__pb2.GetCampaignRequest.SerializeToString, - response_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_campaign__pb2.Campaign.FromString, - ) - self.MutateCampaigns = channel.unary_unary( - '/google.ads.googleads.v1.services.CampaignService/MutateCampaigns', - request_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_campaign__service__pb2.MutateCampaignsRequest.SerializeToString, - response_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_campaign__service__pb2.MutateCampaignsResponse.FromString, - ) - - -class CampaignServiceServicer(object): - """Proto file describing the Campaign service. - - Service to manage campaigns. - """ - - def GetCampaign(self, request, context): - """Returns the requested campaign in full detail. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def MutateCampaigns(self, request, context): - """Creates, updates, or removes campaigns. Operation statuses are returned. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - -def add_CampaignServiceServicer_to_server(servicer, server): - rpc_method_handlers = { - 'GetCampaign': grpc.unary_unary_rpc_method_handler( - servicer.GetCampaign, - request_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_campaign__service__pb2.GetCampaignRequest.FromString, - response_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_campaign__pb2.Campaign.SerializeToString, - ), - 'MutateCampaigns': grpc.unary_unary_rpc_method_handler( - servicer.MutateCampaigns, - request_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_campaign__service__pb2.MutateCampaignsRequest.FromString, - response_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_campaign__service__pb2.MutateCampaignsResponse.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'google.ads.googleads.v1.services.CampaignService', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) diff --git a/google/ads/google_ads/v1/proto/services/campaign_shared_set_service_pb2.py b/google/ads/google_ads/v1/proto/services/campaign_shared_set_service_pb2.py deleted file mode 100644 index 8dbede501..000000000 --- a/google/ads/google_ads/v1/proto/services/campaign_shared_set_service_pb2.py +++ /dev/null @@ -1,380 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/services/campaign_shared_set_service.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.ads.google_ads.v1.proto.resources import campaign_shared_set_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_campaign__shared__set__pb2 -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 -from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 -from google.rpc import status_pb2 as google_dot_rpc_dot_status__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/services/campaign_shared_set_service.proto', - package='google.ads.googleads.v1.services', - syntax='proto3', - serialized_options=_b('\n$com.google.ads.googleads.v1.servicesB\035CampaignSharedSetServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v1/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V1.Services\312\002 Google\\Ads\\GoogleAds\\V1\\Services\352\002$Google::Ads::GoogleAds::V1::Services'), - serialized_pb=_b('\nHgoogle/ads/googleads_v1/proto/services/campaign_shared_set_service.proto\x12 google.ads.googleads.v1.services\x1a\x41google/ads/googleads_v1/proto/resources/campaign_shared_set.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x17google/rpc/status.proto\"4\n\x1bGetCampaignSharedSetRequest\x12\x15\n\rresource_name\x18\x01 \x01(\t\"\xb8\x01\n\x1fMutateCampaignSharedSetsRequest\x12\x13\n\x0b\x63ustomer_id\x18\x01 \x01(\t\x12P\n\noperations\x18\x02 \x03(\x0b\x32<.google.ads.googleads.v1.services.CampaignSharedSetOperation\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\"\x83\x01\n\x1a\x43\x61mpaignSharedSetOperation\x12\x46\n\x06\x63reate\x18\x01 \x01(\x0b\x32\x34.google.ads.googleads.v1.resources.CampaignSharedSetH\x00\x12\x10\n\x06remove\x18\x03 \x01(\tH\x00\x42\x0b\n\toperation\"\xa7\x01\n MutateCampaignSharedSetsResponse\x12\x31\n\x15partial_failure_error\x18\x03 \x01(\x0b\x32\x12.google.rpc.Status\x12P\n\x07results\x18\x02 \x03(\x0b\x32?.google.ads.googleads.v1.services.MutateCampaignSharedSetResult\"6\n\x1dMutateCampaignSharedSetResult\x12\x15\n\rresource_name\x18\x01 \x01(\t2\xce\x03\n\x18\x43\x61mpaignSharedSetService\x12\xc9\x01\n\x14GetCampaignSharedSet\x12=.google.ads.googleads.v1.services.GetCampaignSharedSetRequest\x1a\x34.google.ads.googleads.v1.resources.CampaignSharedSet\"<\x82\xd3\xe4\x93\x02\x36\x12\x34/v1/{resource_name=customers/*/campaignSharedSets/*}\x12\xe5\x01\n\x18MutateCampaignSharedSets\x12\x41.google.ads.googleads.v1.services.MutateCampaignSharedSetsRequest\x1a\x42.google.ads.googleads.v1.services.MutateCampaignSharedSetsResponse\"B\x82\xd3\xe4\x93\x02<\"7/v1/customers/{customer_id=*}/campaignSharedSets:mutate:\x01*B\x84\x02\n$com.google.ads.googleads.v1.servicesB\x1d\x43\x61mpaignSharedSetServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v1/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V1.Services\xca\x02 Google\\Ads\\GoogleAds\\V1\\Services\xea\x02$Google::Ads::GoogleAds::V1::Servicesb\x06proto3') - , - dependencies=[google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_campaign__shared__set__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_rpc_dot_status__pb2.DESCRIPTOR,]) - - - - -_GETCAMPAIGNSHAREDSETREQUEST = _descriptor.Descriptor( - name='GetCampaignSharedSetRequest', - full_name='google.ads.googleads.v1.services.GetCampaignSharedSetRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.services.GetCampaignSharedSetRequest.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=264, - serialized_end=316, -) - - -_MUTATECAMPAIGNSHAREDSETSREQUEST = _descriptor.Descriptor( - name='MutateCampaignSharedSetsRequest', - full_name='google.ads.googleads.v1.services.MutateCampaignSharedSetsRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='customer_id', full_name='google.ads.googleads.v1.services.MutateCampaignSharedSetsRequest.customer_id', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='operations', full_name='google.ads.googleads.v1.services.MutateCampaignSharedSetsRequest.operations', index=1, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='partial_failure', full_name='google.ads.googleads.v1.services.MutateCampaignSharedSetsRequest.partial_failure', index=2, - number=3, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='validate_only', full_name='google.ads.googleads.v1.services.MutateCampaignSharedSetsRequest.validate_only', index=3, - number=4, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=319, - serialized_end=503, -) - - -_CAMPAIGNSHAREDSETOPERATION = _descriptor.Descriptor( - name='CampaignSharedSetOperation', - full_name='google.ads.googleads.v1.services.CampaignSharedSetOperation', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='create', full_name='google.ads.googleads.v1.services.CampaignSharedSetOperation.create', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='remove', full_name='google.ads.googleads.v1.services.CampaignSharedSetOperation.remove', index=1, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='operation', full_name='google.ads.googleads.v1.services.CampaignSharedSetOperation.operation', - index=0, containing_type=None, fields=[]), - ], - serialized_start=506, - serialized_end=637, -) - - -_MUTATECAMPAIGNSHAREDSETSRESPONSE = _descriptor.Descriptor( - name='MutateCampaignSharedSetsResponse', - full_name='google.ads.googleads.v1.services.MutateCampaignSharedSetsResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='partial_failure_error', full_name='google.ads.googleads.v1.services.MutateCampaignSharedSetsResponse.partial_failure_error', index=0, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='results', full_name='google.ads.googleads.v1.services.MutateCampaignSharedSetsResponse.results', index=1, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=640, - serialized_end=807, -) - - -_MUTATECAMPAIGNSHAREDSETRESULT = _descriptor.Descriptor( - name='MutateCampaignSharedSetResult', - full_name='google.ads.googleads.v1.services.MutateCampaignSharedSetResult', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.services.MutateCampaignSharedSetResult.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=809, - serialized_end=863, -) - -_MUTATECAMPAIGNSHAREDSETSREQUEST.fields_by_name['operations'].message_type = _CAMPAIGNSHAREDSETOPERATION -_CAMPAIGNSHAREDSETOPERATION.fields_by_name['create'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_campaign__shared__set__pb2._CAMPAIGNSHAREDSET -_CAMPAIGNSHAREDSETOPERATION.oneofs_by_name['operation'].fields.append( - _CAMPAIGNSHAREDSETOPERATION.fields_by_name['create']) -_CAMPAIGNSHAREDSETOPERATION.fields_by_name['create'].containing_oneof = _CAMPAIGNSHAREDSETOPERATION.oneofs_by_name['operation'] -_CAMPAIGNSHAREDSETOPERATION.oneofs_by_name['operation'].fields.append( - _CAMPAIGNSHAREDSETOPERATION.fields_by_name['remove']) -_CAMPAIGNSHAREDSETOPERATION.fields_by_name['remove'].containing_oneof = _CAMPAIGNSHAREDSETOPERATION.oneofs_by_name['operation'] -_MUTATECAMPAIGNSHAREDSETSRESPONSE.fields_by_name['partial_failure_error'].message_type = google_dot_rpc_dot_status__pb2._STATUS -_MUTATECAMPAIGNSHAREDSETSRESPONSE.fields_by_name['results'].message_type = _MUTATECAMPAIGNSHAREDSETRESULT -DESCRIPTOR.message_types_by_name['GetCampaignSharedSetRequest'] = _GETCAMPAIGNSHAREDSETREQUEST -DESCRIPTOR.message_types_by_name['MutateCampaignSharedSetsRequest'] = _MUTATECAMPAIGNSHAREDSETSREQUEST -DESCRIPTOR.message_types_by_name['CampaignSharedSetOperation'] = _CAMPAIGNSHAREDSETOPERATION -DESCRIPTOR.message_types_by_name['MutateCampaignSharedSetsResponse'] = _MUTATECAMPAIGNSHAREDSETSRESPONSE -DESCRIPTOR.message_types_by_name['MutateCampaignSharedSetResult'] = _MUTATECAMPAIGNSHAREDSETRESULT -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -GetCampaignSharedSetRequest = _reflection.GeneratedProtocolMessageType('GetCampaignSharedSetRequest', (_message.Message,), dict( - DESCRIPTOR = _GETCAMPAIGNSHAREDSETREQUEST, - __module__ = 'google.ads.googleads_v1.proto.services.campaign_shared_set_service_pb2' - , - __doc__ = """Request message for - [CampaignSharedSetService.GetCampaignSharedSet][google.ads.googleads.v1.services.CampaignSharedSetService.GetCampaignSharedSet]. - - - Attributes: - resource_name: - The resource name of the campaign shared set to fetch. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.GetCampaignSharedSetRequest) - )) -_sym_db.RegisterMessage(GetCampaignSharedSetRequest) - -MutateCampaignSharedSetsRequest = _reflection.GeneratedProtocolMessageType('MutateCampaignSharedSetsRequest', (_message.Message,), dict( - DESCRIPTOR = _MUTATECAMPAIGNSHAREDSETSREQUEST, - __module__ = 'google.ads.googleads_v1.proto.services.campaign_shared_set_service_pb2' - , - __doc__ = """Request message for - [CampaignSharedSetService.MutateCampaignSharedSets][google.ads.googleads.v1.services.CampaignSharedSetService.MutateCampaignSharedSets]. - - - Attributes: - customer_id: - The ID of the customer whose campaign shared sets are being - modified. - operations: - The list of operations to perform on individual campaign - shared sets. - partial_failure: - If true, successful operations will be carried out and invalid - operations will return errors. If false, all operations will - be carried out in one transaction if and only if they are all - valid. Default is false. - validate_only: - If true, the request is validated but not executed. Only - errors are returned, not results. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.MutateCampaignSharedSetsRequest) - )) -_sym_db.RegisterMessage(MutateCampaignSharedSetsRequest) - -CampaignSharedSetOperation = _reflection.GeneratedProtocolMessageType('CampaignSharedSetOperation', (_message.Message,), dict( - DESCRIPTOR = _CAMPAIGNSHAREDSETOPERATION, - __module__ = 'google.ads.googleads_v1.proto.services.campaign_shared_set_service_pb2' - , - __doc__ = """A single operation (create, remove) on an campaign shared set. - - - Attributes: - operation: - The mutate operation. - create: - Create operation: No resource name is expected for the new - campaign shared set. - remove: - Remove operation: A resource name for the removed campaign - shared set is expected, in this format: ``customers/{customer - _id}/campaignSharedSets/{campaign_id}~{shared_set_id}`` - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.CampaignSharedSetOperation) - )) -_sym_db.RegisterMessage(CampaignSharedSetOperation) - -MutateCampaignSharedSetsResponse = _reflection.GeneratedProtocolMessageType('MutateCampaignSharedSetsResponse', (_message.Message,), dict( - DESCRIPTOR = _MUTATECAMPAIGNSHAREDSETSRESPONSE, - __module__ = 'google.ads.googleads_v1.proto.services.campaign_shared_set_service_pb2' - , - __doc__ = """Response message for a campaign shared set mutate. - - - Attributes: - partial_failure_error: - Errors that pertain to operation failures in the partial - failure mode. Returned only when partial\_failure = true and - all errors occur inside the operations. If any errors occur - outside the operations (e.g. auth errors), we return an RPC - level error. - results: - All results for the mutate. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.MutateCampaignSharedSetsResponse) - )) -_sym_db.RegisterMessage(MutateCampaignSharedSetsResponse) - -MutateCampaignSharedSetResult = _reflection.GeneratedProtocolMessageType('MutateCampaignSharedSetResult', (_message.Message,), dict( - DESCRIPTOR = _MUTATECAMPAIGNSHAREDSETRESULT, - __module__ = 'google.ads.googleads_v1.proto.services.campaign_shared_set_service_pb2' - , - __doc__ = """The result for the campaign shared set mutate. - - - Attributes: - resource_name: - Returned for successful operations. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.MutateCampaignSharedSetResult) - )) -_sym_db.RegisterMessage(MutateCampaignSharedSetResult) - - -DESCRIPTOR._options = None - -_CAMPAIGNSHAREDSETSERVICE = _descriptor.ServiceDescriptor( - name='CampaignSharedSetService', - full_name='google.ads.googleads.v1.services.CampaignSharedSetService', - file=DESCRIPTOR, - index=0, - serialized_options=None, - serialized_start=866, - serialized_end=1328, - methods=[ - _descriptor.MethodDescriptor( - name='GetCampaignSharedSet', - full_name='google.ads.googleads.v1.services.CampaignSharedSetService.GetCampaignSharedSet', - index=0, - containing_service=None, - input_type=_GETCAMPAIGNSHAREDSETREQUEST, - output_type=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_campaign__shared__set__pb2._CAMPAIGNSHAREDSET, - serialized_options=_b('\202\323\344\223\0026\0224/v1/{resource_name=customers/*/campaignSharedSets/*}'), - ), - _descriptor.MethodDescriptor( - name='MutateCampaignSharedSets', - full_name='google.ads.googleads.v1.services.CampaignSharedSetService.MutateCampaignSharedSets', - index=1, - containing_service=None, - input_type=_MUTATECAMPAIGNSHAREDSETSREQUEST, - output_type=_MUTATECAMPAIGNSHAREDSETSRESPONSE, - serialized_options=_b('\202\323\344\223\002<\"7/v1/customers/{customer_id=*}/campaignSharedSets:mutate:\001*'), - ), -]) -_sym_db.RegisterServiceDescriptor(_CAMPAIGNSHAREDSETSERVICE) - -DESCRIPTOR.services_by_name['CampaignSharedSetService'] = _CAMPAIGNSHAREDSETSERVICE - -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/services/campaign_shared_set_service_pb2_grpc.py b/google/ads/google_ads/v1/proto/services/campaign_shared_set_service_pb2_grpc.py deleted file mode 100644 index 9eb6e2c38..000000000 --- a/google/ads/google_ads/v1/proto/services/campaign_shared_set_service_pb2_grpc.py +++ /dev/null @@ -1,68 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -import grpc - -from google.ads.google_ads.v1.proto.resources import campaign_shared_set_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_campaign__shared__set__pb2 -from google.ads.google_ads.v1.proto.services import campaign_shared_set_service_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_campaign__shared__set__service__pb2 - - -class CampaignSharedSetServiceStub(object): - """Proto file describing the Campaign Shared Set service. - - Service to manage campaign shared sets. - """ - - def __init__(self, channel): - """Constructor. - - Args: - channel: A grpc.Channel. - """ - self.GetCampaignSharedSet = channel.unary_unary( - '/google.ads.googleads.v1.services.CampaignSharedSetService/GetCampaignSharedSet', - request_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_campaign__shared__set__service__pb2.GetCampaignSharedSetRequest.SerializeToString, - response_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_campaign__shared__set__pb2.CampaignSharedSet.FromString, - ) - self.MutateCampaignSharedSets = channel.unary_unary( - '/google.ads.googleads.v1.services.CampaignSharedSetService/MutateCampaignSharedSets', - request_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_campaign__shared__set__service__pb2.MutateCampaignSharedSetsRequest.SerializeToString, - response_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_campaign__shared__set__service__pb2.MutateCampaignSharedSetsResponse.FromString, - ) - - -class CampaignSharedSetServiceServicer(object): - """Proto file describing the Campaign Shared Set service. - - Service to manage campaign shared sets. - """ - - def GetCampaignSharedSet(self, request, context): - """Returns the requested campaign shared set in full detail. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def MutateCampaignSharedSets(self, request, context): - """Creates or removes campaign shared sets. Operation statuses are returned. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - -def add_CampaignSharedSetServiceServicer_to_server(servicer, server): - rpc_method_handlers = { - 'GetCampaignSharedSet': grpc.unary_unary_rpc_method_handler( - servicer.GetCampaignSharedSet, - request_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_campaign__shared__set__service__pb2.GetCampaignSharedSetRequest.FromString, - response_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_campaign__shared__set__pb2.CampaignSharedSet.SerializeToString, - ), - 'MutateCampaignSharedSets': grpc.unary_unary_rpc_method_handler( - servicer.MutateCampaignSharedSets, - request_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_campaign__shared__set__service__pb2.MutateCampaignSharedSetsRequest.FromString, - response_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_campaign__shared__set__service__pb2.MutateCampaignSharedSetsResponse.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'google.ads.googleads.v1.services.CampaignSharedSetService', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) diff --git a/google/ads/google_ads/v1/proto/services/carrier_constant_service_pb2.py b/google/ads/google_ads/v1/proto/services/carrier_constant_service_pb2.py deleted file mode 100644 index a71d6324a..000000000 --- a/google/ads/google_ads/v1/proto/services/carrier_constant_service_pb2.py +++ /dev/null @@ -1,107 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/services/carrier_constant_service.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.ads.google_ads.v1.proto.resources import carrier_constant_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_carrier__constant__pb2 -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/services/carrier_constant_service.proto', - package='google.ads.googleads.v1.services', - syntax='proto3', - serialized_options=_b('\n$com.google.ads.googleads.v1.servicesB\033CarrierConstantServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v1/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V1.Services\312\002 Google\\Ads\\GoogleAds\\V1\\Services\352\002$Google::Ads::GoogleAds::V1::Services'), - serialized_pb=_b('\nEgoogle/ads/googleads_v1/proto/services/carrier_constant_service.proto\x12 google.ads.googleads.v1.services\x1a>google/ads/googleads_v1/proto/resources/carrier_constant.proto\x1a\x1cgoogle/api/annotations.proto\"2\n\x19GetCarrierConstantRequest\x12\x15\n\rresource_name\x18\x01 \x01(\t2\xd0\x01\n\x16\x43\x61rrierConstantService\x12\xb5\x01\n\x12GetCarrierConstant\x12;.google.ads.googleads.v1.services.GetCarrierConstantRequest\x1a\x32.google.ads.googleads.v1.resources.CarrierConstant\".\x82\xd3\xe4\x93\x02(\x12&/v1/{resource_name=carrierConstants/*}B\x82\x02\n$com.google.ads.googleads.v1.servicesB\x1b\x43\x61rrierConstantServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v1/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V1.Services\xca\x02 Google\\Ads\\GoogleAds\\V1\\Services\xea\x02$Google::Ads::GoogleAds::V1::Servicesb\x06proto3') - , - dependencies=[google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_carrier__constant__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - - -_GETCARRIERCONSTANTREQUEST = _descriptor.Descriptor( - name='GetCarrierConstantRequest', - full_name='google.ads.googleads.v1.services.GetCarrierConstantRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.services.GetCarrierConstantRequest.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=201, - serialized_end=251, -) - -DESCRIPTOR.message_types_by_name['GetCarrierConstantRequest'] = _GETCARRIERCONSTANTREQUEST -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -GetCarrierConstantRequest = _reflection.GeneratedProtocolMessageType('GetCarrierConstantRequest', (_message.Message,), dict( - DESCRIPTOR = _GETCARRIERCONSTANTREQUEST, - __module__ = 'google.ads.googleads_v1.proto.services.carrier_constant_service_pb2' - , - __doc__ = """Request message for - [CarrierConstantService.GetCarrierConstant][google.ads.googleads.v1.services.CarrierConstantService.GetCarrierConstant]. - - - Attributes: - resource_name: - Resource name of the carrier constant to fetch. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.GetCarrierConstantRequest) - )) -_sym_db.RegisterMessage(GetCarrierConstantRequest) - - -DESCRIPTOR._options = None - -_CARRIERCONSTANTSERVICE = _descriptor.ServiceDescriptor( - name='CarrierConstantService', - full_name='google.ads.googleads.v1.services.CarrierConstantService', - file=DESCRIPTOR, - index=0, - serialized_options=None, - serialized_start=254, - serialized_end=462, - methods=[ - _descriptor.MethodDescriptor( - name='GetCarrierConstant', - full_name='google.ads.googleads.v1.services.CarrierConstantService.GetCarrierConstant', - index=0, - containing_service=None, - input_type=_GETCARRIERCONSTANTREQUEST, - output_type=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_carrier__constant__pb2._CARRIERCONSTANT, - serialized_options=_b('\202\323\344\223\002(\022&/v1/{resource_name=carrierConstants/*}'), - ), -]) -_sym_db.RegisterServiceDescriptor(_CARRIERCONSTANTSERVICE) - -DESCRIPTOR.services_by_name['CarrierConstantService'] = _CARRIERCONSTANTSERVICE - -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/services/carrier_constant_service_pb2_grpc.py b/google/ads/google_ads/v1/proto/services/carrier_constant_service_pb2_grpc.py deleted file mode 100644 index 499b9faf9..000000000 --- a/google/ads/google_ads/v1/proto/services/carrier_constant_service_pb2_grpc.py +++ /dev/null @@ -1,51 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -import grpc - -from google.ads.google_ads.v1.proto.resources import carrier_constant_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_carrier__constant__pb2 -from google.ads.google_ads.v1.proto.services import carrier_constant_service_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_carrier__constant__service__pb2 - - -class CarrierConstantServiceStub(object): - """Proto file describing the carrier constant service. - - Service to fetch carrier constants. - """ - - def __init__(self, channel): - """Constructor. - - Args: - channel: A grpc.Channel. - """ - self.GetCarrierConstant = channel.unary_unary( - '/google.ads.googleads.v1.services.CarrierConstantService/GetCarrierConstant', - request_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_carrier__constant__service__pb2.GetCarrierConstantRequest.SerializeToString, - response_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_carrier__constant__pb2.CarrierConstant.FromString, - ) - - -class CarrierConstantServiceServicer(object): - """Proto file describing the carrier constant service. - - Service to fetch carrier constants. - """ - - def GetCarrierConstant(self, request, context): - """Returns the requested carrier constant in full detail. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - -def add_CarrierConstantServiceServicer_to_server(servicer, server): - rpc_method_handlers = { - 'GetCarrierConstant': grpc.unary_unary_rpc_method_handler( - servicer.GetCarrierConstant, - request_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_carrier__constant__service__pb2.GetCarrierConstantRequest.FromString, - response_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_carrier__constant__pb2.CarrierConstant.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'google.ads.googleads.v1.services.CarrierConstantService', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) diff --git a/google/ads/google_ads/v1/proto/services/change_status_service_pb2.py b/google/ads/google_ads/v1/proto/services/change_status_service_pb2.py deleted file mode 100644 index 1d93f7a32..000000000 --- a/google/ads/google_ads/v1/proto/services/change_status_service_pb2.py +++ /dev/null @@ -1,107 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/services/change_status_service.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.ads.google_ads.v1.proto.resources import change_status_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_change__status__pb2 -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/services/change_status_service.proto', - package='google.ads.googleads.v1.services', - syntax='proto3', - serialized_options=_b('\n$com.google.ads.googleads.v1.servicesB\030ChangeStatusServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v1/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V1.Services\312\002 Google\\Ads\\GoogleAds\\V1\\Services\352\002$Google::Ads::GoogleAds::V1::Services'), - serialized_pb=_b('\nBgoogle/ads/googleads_v1/proto/services/change_status_service.proto\x12 google.ads.googleads.v1.services\x1a;google/ads/googleads_v1/proto/resources/change_status.proto\x1a\x1cgoogle/api/annotations.proto\"/\n\x16GetChangeStatusRequest\x12\x15\n\rresource_name\x18\x01 \x01(\t2\xcc\x01\n\x13\x43hangeStatusService\x12\xb4\x01\n\x0fGetChangeStatus\x12\x38.google.ads.googleads.v1.services.GetChangeStatusRequest\x1a/.google.ads.googleads.v1.resources.ChangeStatus\"6\x82\xd3\xe4\x93\x02\x30\x12./v1/{resource_name=customers/*/changeStatus/*}B\xff\x01\n$com.google.ads.googleads.v1.servicesB\x18\x43hangeStatusServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v1/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V1.Services\xca\x02 Google\\Ads\\GoogleAds\\V1\\Services\xea\x02$Google::Ads::GoogleAds::V1::Servicesb\x06proto3') - , - dependencies=[google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_change__status__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - - -_GETCHANGESTATUSREQUEST = _descriptor.Descriptor( - name='GetChangeStatusRequest', - full_name='google.ads.googleads.v1.services.GetChangeStatusRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.services.GetChangeStatusRequest.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=195, - serialized_end=242, -) - -DESCRIPTOR.message_types_by_name['GetChangeStatusRequest'] = _GETCHANGESTATUSREQUEST -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -GetChangeStatusRequest = _reflection.GeneratedProtocolMessageType('GetChangeStatusRequest', (_message.Message,), dict( - DESCRIPTOR = _GETCHANGESTATUSREQUEST, - __module__ = 'google.ads.googleads_v1.proto.services.change_status_service_pb2' - , - __doc__ = """Request message for - '[ChangeStatusService.GetChangeStatus][google.ads.googleads.v1.services.ChangeStatusService.GetChangeStatus]'. - - - Attributes: - resource_name: - The resource name of the change status to fetch. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.GetChangeStatusRequest) - )) -_sym_db.RegisterMessage(GetChangeStatusRequest) - - -DESCRIPTOR._options = None - -_CHANGESTATUSSERVICE = _descriptor.ServiceDescriptor( - name='ChangeStatusService', - full_name='google.ads.googleads.v1.services.ChangeStatusService', - file=DESCRIPTOR, - index=0, - serialized_options=None, - serialized_start=245, - serialized_end=449, - methods=[ - _descriptor.MethodDescriptor( - name='GetChangeStatus', - full_name='google.ads.googleads.v1.services.ChangeStatusService.GetChangeStatus', - index=0, - containing_service=None, - input_type=_GETCHANGESTATUSREQUEST, - output_type=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_change__status__pb2._CHANGESTATUS, - serialized_options=_b('\202\323\344\223\0020\022./v1/{resource_name=customers/*/changeStatus/*}'), - ), -]) -_sym_db.RegisterServiceDescriptor(_CHANGESTATUSSERVICE) - -DESCRIPTOR.services_by_name['ChangeStatusService'] = _CHANGESTATUSSERVICE - -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/services/change_status_service_pb2_grpc.py b/google/ads/google_ads/v1/proto/services/change_status_service_pb2_grpc.py deleted file mode 100644 index d7db7bebb..000000000 --- a/google/ads/google_ads/v1/proto/services/change_status_service_pb2_grpc.py +++ /dev/null @@ -1,51 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -import grpc - -from google.ads.google_ads.v1.proto.resources import change_status_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_change__status__pb2 -from google.ads.google_ads.v1.proto.services import change_status_service_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_change__status__service__pb2 - - -class ChangeStatusServiceStub(object): - """Proto file describing the Change Status service. - - Service to fetch change statuses. - """ - - def __init__(self, channel): - """Constructor. - - Args: - channel: A grpc.Channel. - """ - self.GetChangeStatus = channel.unary_unary( - '/google.ads.googleads.v1.services.ChangeStatusService/GetChangeStatus', - request_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_change__status__service__pb2.GetChangeStatusRequest.SerializeToString, - response_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_change__status__pb2.ChangeStatus.FromString, - ) - - -class ChangeStatusServiceServicer(object): - """Proto file describing the Change Status service. - - Service to fetch change statuses. - """ - - def GetChangeStatus(self, request, context): - """Returns the requested change status in full detail. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - -def add_ChangeStatusServiceServicer_to_server(servicer, server): - rpc_method_handlers = { - 'GetChangeStatus': grpc.unary_unary_rpc_method_handler( - servicer.GetChangeStatus, - request_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_change__status__service__pb2.GetChangeStatusRequest.FromString, - response_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_change__status__pb2.ChangeStatus.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'google.ads.googleads.v1.services.ChangeStatusService', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) diff --git a/google/ads/google_ads/v1/proto/services/click_view_service_pb2.py b/google/ads/google_ads/v1/proto/services/click_view_service_pb2.py deleted file mode 100644 index ef61f672d..000000000 --- a/google/ads/google_ads/v1/proto/services/click_view_service_pb2.py +++ /dev/null @@ -1,107 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/services/click_view_service.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.ads.google_ads.v1.proto.resources import click_view_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_click__view__pb2 -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/services/click_view_service.proto', - package='google.ads.googleads.v1.services', - syntax='proto3', - serialized_options=_b('\n$com.google.ads.googleads.v1.servicesB\025ClickViewServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v1/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V1.Services\312\002 Google\\Ads\\GoogleAds\\V1\\Services\352\002$Google::Ads::GoogleAds::V1::Services'), - serialized_pb=_b('\n?google/ads/googleads_v1/proto/services/click_view_service.proto\x12 google.ads.googleads.v1.services\x1a\x38google/ads/googleads_v1/proto/resources/click_view.proto\x1a\x1cgoogle/api/annotations.proto\",\n\x13GetClickViewRequest\x12\x15\n\rresource_name\x18\x01 \x01(\t2\xbe\x01\n\x10\x43lickViewService\x12\xa9\x01\n\x0cGetClickView\x12\x35.google.ads.googleads.v1.services.GetClickViewRequest\x1a,.google.ads.googleads.v1.resources.ClickView\"4\x82\xd3\xe4\x93\x02.\x12,/v1/{resource_name=customers/*/clickViews/*}B\xfc\x01\n$com.google.ads.googleads.v1.servicesB\x15\x43lickViewServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v1/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V1.Services\xca\x02 Google\\Ads\\GoogleAds\\V1\\Services\xea\x02$Google::Ads::GoogleAds::V1::Servicesb\x06proto3') - , - dependencies=[google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_click__view__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - - -_GETCLICKVIEWREQUEST = _descriptor.Descriptor( - name='GetClickViewRequest', - full_name='google.ads.googleads.v1.services.GetClickViewRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.services.GetClickViewRequest.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=189, - serialized_end=233, -) - -DESCRIPTOR.message_types_by_name['GetClickViewRequest'] = _GETCLICKVIEWREQUEST -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -GetClickViewRequest = _reflection.GeneratedProtocolMessageType('GetClickViewRequest', (_message.Message,), dict( - DESCRIPTOR = _GETCLICKVIEWREQUEST, - __module__ = 'google.ads.googleads_v1.proto.services.click_view_service_pb2' - , - __doc__ = """Request message for - [ClickViewService.GetClickView][google.ads.googleads.v1.services.ClickViewService.GetClickView]. - - - Attributes: - resource_name: - The resource name of the click view to fetch. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.GetClickViewRequest) - )) -_sym_db.RegisterMessage(GetClickViewRequest) - - -DESCRIPTOR._options = None - -_CLICKVIEWSERVICE = _descriptor.ServiceDescriptor( - name='ClickViewService', - full_name='google.ads.googleads.v1.services.ClickViewService', - file=DESCRIPTOR, - index=0, - serialized_options=None, - serialized_start=236, - serialized_end=426, - methods=[ - _descriptor.MethodDescriptor( - name='GetClickView', - full_name='google.ads.googleads.v1.services.ClickViewService.GetClickView', - index=0, - containing_service=None, - input_type=_GETCLICKVIEWREQUEST, - output_type=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_click__view__pb2._CLICKVIEW, - serialized_options=_b('\202\323\344\223\002.\022,/v1/{resource_name=customers/*/clickViews/*}'), - ), -]) -_sym_db.RegisterServiceDescriptor(_CLICKVIEWSERVICE) - -DESCRIPTOR.services_by_name['ClickViewService'] = _CLICKVIEWSERVICE - -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/services/click_view_service_pb2_grpc.py b/google/ads/google_ads/v1/proto/services/click_view_service_pb2_grpc.py deleted file mode 100644 index 00af337f0..000000000 --- a/google/ads/google_ads/v1/proto/services/click_view_service_pb2_grpc.py +++ /dev/null @@ -1,51 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -import grpc - -from google.ads.google_ads.v1.proto.resources import click_view_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_click__view__pb2 -from google.ads.google_ads.v1.proto.services import click_view_service_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_click__view__service__pb2 - - -class ClickViewServiceStub(object): - """Proto file describing the ClickView service. - - Service to fetch click views. - """ - - def __init__(self, channel): - """Constructor. - - Args: - channel: A grpc.Channel. - """ - self.GetClickView = channel.unary_unary( - '/google.ads.googleads.v1.services.ClickViewService/GetClickView', - request_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_click__view__service__pb2.GetClickViewRequest.SerializeToString, - response_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_click__view__pb2.ClickView.FromString, - ) - - -class ClickViewServiceServicer(object): - """Proto file describing the ClickView service. - - Service to fetch click views. - """ - - def GetClickView(self, request, context): - """Returns the requested click view in full detail. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - -def add_ClickViewServiceServicer_to_server(servicer, server): - rpc_method_handlers = { - 'GetClickView': grpc.unary_unary_rpc_method_handler( - servicer.GetClickView, - request_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_click__view__service__pb2.GetClickViewRequest.FromString, - response_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_click__view__pb2.ClickView.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'google.ads.googleads.v1.services.ClickViewService', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) diff --git a/google/ads/google_ads/v1/proto/services/conversion_action_service_pb2.py b/google/ads/google_ads/v1/proto/services/conversion_action_service_pb2.py deleted file mode 100644 index 1ec297acf..000000000 --- a/google/ads/google_ads/v1/proto/services/conversion_action_service_pb2.py +++ /dev/null @@ -1,407 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/services/conversion_action_service.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.ads.google_ads.v1.proto.resources import conversion_action_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_conversion__action__pb2 -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 -from google.protobuf import field_mask_pb2 as google_dot_protobuf_dot_field__mask__pb2 -from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 -from google.rpc import status_pb2 as google_dot_rpc_dot_status__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/services/conversion_action_service.proto', - package='google.ads.googleads.v1.services', - syntax='proto3', - serialized_options=_b('\n$com.google.ads.googleads.v1.servicesB\034ConversionActionServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v1/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V1.Services\312\002 Google\\Ads\\GoogleAds\\V1\\Services\352\002$Google::Ads::GoogleAds::V1::Services'), - serialized_pb=_b('\nFgoogle/ads/googleads_v1/proto/services/conversion_action_service.proto\x12 google.ads.googleads.v1.services\x1a?google/ads/googleads_v1/proto/resources/conversion_action.proto\x1a\x1cgoogle/api/annotations.proto\x1a google/protobuf/field_mask.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x17google/rpc/status.proto\"3\n\x1aGetConversionActionRequest\x12\x15\n\rresource_name\x18\x01 \x01(\t\"\xb6\x01\n\x1eMutateConversionActionsRequest\x12\x13\n\x0b\x63ustomer_id\x18\x01 \x01(\t\x12O\n\noperations\x18\x02 \x03(\x0b\x32;.google.ads.googleads.v1.services.ConversionActionOperation\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\"\xf9\x01\n\x19\x43onversionActionOperation\x12/\n\x0bupdate_mask\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12\x45\n\x06\x63reate\x18\x01 \x01(\x0b\x32\x33.google.ads.googleads.v1.resources.ConversionActionH\x00\x12\x45\n\x06update\x18\x02 \x01(\x0b\x32\x33.google.ads.googleads.v1.resources.ConversionActionH\x00\x12\x10\n\x06remove\x18\x03 \x01(\tH\x00\x42\x0b\n\toperation\"\xa5\x01\n\x1fMutateConversionActionsResponse\x12\x31\n\x15partial_failure_error\x18\x03 \x01(\x0b\x32\x12.google.rpc.Status\x12O\n\x07results\x18\x02 \x03(\x0b\x32>.google.ads.googleads.v1.services.MutateConversionActionResult\"5\n\x1cMutateConversionActionResult\x12\x15\n\rresource_name\x18\x01 \x01(\t2\xc5\x03\n\x17\x43onversionActionService\x12\xc5\x01\n\x13GetConversionAction\x12<.google.ads.googleads.v1.services.GetConversionActionRequest\x1a\x33.google.ads.googleads.v1.resources.ConversionAction\";\x82\xd3\xe4\x93\x02\x35\x12\x33/v1/{resource_name=customers/*/conversionActions/*}\x12\xe1\x01\n\x17MutateConversionActions\x12@.google.ads.googleads.v1.services.MutateConversionActionsRequest\x1a\x41.google.ads.googleads.v1.services.MutateConversionActionsResponse\"A\x82\xd3\xe4\x93\x02;\"6/v1/customers/{customer_id=*}/conversionActions:mutate:\x01*B\x83\x02\n$com.google.ads.googleads.v1.servicesB\x1c\x43onversionActionServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v1/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V1.Services\xca\x02 Google\\Ads\\GoogleAds\\V1\\Services\xea\x02$Google::Ads::GoogleAds::V1::Servicesb\x06proto3') - , - dependencies=[google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_conversion__action__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_protobuf_dot_field__mask__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_rpc_dot_status__pb2.DESCRIPTOR,]) - - - - -_GETCONVERSIONACTIONREQUEST = _descriptor.Descriptor( - name='GetConversionActionRequest', - full_name='google.ads.googleads.v1.services.GetConversionActionRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.services.GetConversionActionRequest.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=294, - serialized_end=345, -) - - -_MUTATECONVERSIONACTIONSREQUEST = _descriptor.Descriptor( - name='MutateConversionActionsRequest', - full_name='google.ads.googleads.v1.services.MutateConversionActionsRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='customer_id', full_name='google.ads.googleads.v1.services.MutateConversionActionsRequest.customer_id', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='operations', full_name='google.ads.googleads.v1.services.MutateConversionActionsRequest.operations', index=1, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='partial_failure', full_name='google.ads.googleads.v1.services.MutateConversionActionsRequest.partial_failure', index=2, - number=3, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='validate_only', full_name='google.ads.googleads.v1.services.MutateConversionActionsRequest.validate_only', index=3, - number=4, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=348, - serialized_end=530, -) - - -_CONVERSIONACTIONOPERATION = _descriptor.Descriptor( - name='ConversionActionOperation', - full_name='google.ads.googleads.v1.services.ConversionActionOperation', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='update_mask', full_name='google.ads.googleads.v1.services.ConversionActionOperation.update_mask', index=0, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='create', full_name='google.ads.googleads.v1.services.ConversionActionOperation.create', index=1, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='update', full_name='google.ads.googleads.v1.services.ConversionActionOperation.update', index=2, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='remove', full_name='google.ads.googleads.v1.services.ConversionActionOperation.remove', index=3, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='operation', full_name='google.ads.googleads.v1.services.ConversionActionOperation.operation', - index=0, containing_type=None, fields=[]), - ], - serialized_start=533, - serialized_end=782, -) - - -_MUTATECONVERSIONACTIONSRESPONSE = _descriptor.Descriptor( - name='MutateConversionActionsResponse', - full_name='google.ads.googleads.v1.services.MutateConversionActionsResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='partial_failure_error', full_name='google.ads.googleads.v1.services.MutateConversionActionsResponse.partial_failure_error', index=0, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='results', full_name='google.ads.googleads.v1.services.MutateConversionActionsResponse.results', index=1, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=785, - serialized_end=950, -) - - -_MUTATECONVERSIONACTIONRESULT = _descriptor.Descriptor( - name='MutateConversionActionResult', - full_name='google.ads.googleads.v1.services.MutateConversionActionResult', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.services.MutateConversionActionResult.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=952, - serialized_end=1005, -) - -_MUTATECONVERSIONACTIONSREQUEST.fields_by_name['operations'].message_type = _CONVERSIONACTIONOPERATION -_CONVERSIONACTIONOPERATION.fields_by_name['update_mask'].message_type = google_dot_protobuf_dot_field__mask__pb2._FIELDMASK -_CONVERSIONACTIONOPERATION.fields_by_name['create'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_conversion__action__pb2._CONVERSIONACTION -_CONVERSIONACTIONOPERATION.fields_by_name['update'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_conversion__action__pb2._CONVERSIONACTION -_CONVERSIONACTIONOPERATION.oneofs_by_name['operation'].fields.append( - _CONVERSIONACTIONOPERATION.fields_by_name['create']) -_CONVERSIONACTIONOPERATION.fields_by_name['create'].containing_oneof = _CONVERSIONACTIONOPERATION.oneofs_by_name['operation'] -_CONVERSIONACTIONOPERATION.oneofs_by_name['operation'].fields.append( - _CONVERSIONACTIONOPERATION.fields_by_name['update']) -_CONVERSIONACTIONOPERATION.fields_by_name['update'].containing_oneof = _CONVERSIONACTIONOPERATION.oneofs_by_name['operation'] -_CONVERSIONACTIONOPERATION.oneofs_by_name['operation'].fields.append( - _CONVERSIONACTIONOPERATION.fields_by_name['remove']) -_CONVERSIONACTIONOPERATION.fields_by_name['remove'].containing_oneof = _CONVERSIONACTIONOPERATION.oneofs_by_name['operation'] -_MUTATECONVERSIONACTIONSRESPONSE.fields_by_name['partial_failure_error'].message_type = google_dot_rpc_dot_status__pb2._STATUS -_MUTATECONVERSIONACTIONSRESPONSE.fields_by_name['results'].message_type = _MUTATECONVERSIONACTIONRESULT -DESCRIPTOR.message_types_by_name['GetConversionActionRequest'] = _GETCONVERSIONACTIONREQUEST -DESCRIPTOR.message_types_by_name['MutateConversionActionsRequest'] = _MUTATECONVERSIONACTIONSREQUEST -DESCRIPTOR.message_types_by_name['ConversionActionOperation'] = _CONVERSIONACTIONOPERATION -DESCRIPTOR.message_types_by_name['MutateConversionActionsResponse'] = _MUTATECONVERSIONACTIONSRESPONSE -DESCRIPTOR.message_types_by_name['MutateConversionActionResult'] = _MUTATECONVERSIONACTIONRESULT -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -GetConversionActionRequest = _reflection.GeneratedProtocolMessageType('GetConversionActionRequest', (_message.Message,), dict( - DESCRIPTOR = _GETCONVERSIONACTIONREQUEST, - __module__ = 'google.ads.googleads_v1.proto.services.conversion_action_service_pb2' - , - __doc__ = """Request message for - [ConversionActionService.GetConversionAction][google.ads.googleads.v1.services.ConversionActionService.GetConversionAction]. - - - Attributes: - resource_name: - The resource name of the conversion action to fetch. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.GetConversionActionRequest) - )) -_sym_db.RegisterMessage(GetConversionActionRequest) - -MutateConversionActionsRequest = _reflection.GeneratedProtocolMessageType('MutateConversionActionsRequest', (_message.Message,), dict( - DESCRIPTOR = _MUTATECONVERSIONACTIONSREQUEST, - __module__ = 'google.ads.googleads_v1.proto.services.conversion_action_service_pb2' - , - __doc__ = """Request message for - [ConversionActionService.MutateConversionActions][google.ads.googleads.v1.services.ConversionActionService.MutateConversionActions]. - - - Attributes: - customer_id: - The ID of the customer whose conversion actions are being - modified. - operations: - The list of operations to perform on individual conversion - actions. - partial_failure: - If true, successful operations will be carried out and invalid - operations will return errors. If false, all operations will - be carried out in one transaction if and only if they are all - valid. Default is false. - validate_only: - If true, the request is validated but not executed. Only - errors are returned, not results. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.MutateConversionActionsRequest) - )) -_sym_db.RegisterMessage(MutateConversionActionsRequest) - -ConversionActionOperation = _reflection.GeneratedProtocolMessageType('ConversionActionOperation', (_message.Message,), dict( - DESCRIPTOR = _CONVERSIONACTIONOPERATION, - __module__ = 'google.ads.googleads_v1.proto.services.conversion_action_service_pb2' - , - __doc__ = """A single operation (create, update, remove) on a conversion action. - - - Attributes: - update_mask: - FieldMask that determines which resource fields are modified - in an update. - operation: - The mutate operation. - create: - Create operation: No resource name is expected for the new - conversion action. - update: - Update operation: The conversion action is expected to have a - valid resource name. - remove: - Remove operation: A resource name for the removed conversion - action is expected, in this format: ``customers/{customer_id} - /conversionActions/{conversion_action_id}`` - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.ConversionActionOperation) - )) -_sym_db.RegisterMessage(ConversionActionOperation) - -MutateConversionActionsResponse = _reflection.GeneratedProtocolMessageType('MutateConversionActionsResponse', (_message.Message,), dict( - DESCRIPTOR = _MUTATECONVERSIONACTIONSRESPONSE, - __module__ = 'google.ads.googleads_v1.proto.services.conversion_action_service_pb2' - , - __doc__ = """Response message for - [ConversionActionService.MutateConversionActions][google.ads.googleads.v1.services.ConversionActionService.MutateConversionActions]. - - - Attributes: - partial_failure_error: - Errors that pertain to operation failures in the partial - failure mode. Returned only when partial\_failure = true and - all errors occur inside the operations. If any errors occur - outside the operations (e.g. auth errors), we return an RPC - level error. - results: - All results for the mutate. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.MutateConversionActionsResponse) - )) -_sym_db.RegisterMessage(MutateConversionActionsResponse) - -MutateConversionActionResult = _reflection.GeneratedProtocolMessageType('MutateConversionActionResult', (_message.Message,), dict( - DESCRIPTOR = _MUTATECONVERSIONACTIONRESULT, - __module__ = 'google.ads.googleads_v1.proto.services.conversion_action_service_pb2' - , - __doc__ = """The result for the conversion action mutate. - - - Attributes: - resource_name: - Returned for successful operations. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.MutateConversionActionResult) - )) -_sym_db.RegisterMessage(MutateConversionActionResult) - - -DESCRIPTOR._options = None - -_CONVERSIONACTIONSERVICE = _descriptor.ServiceDescriptor( - name='ConversionActionService', - full_name='google.ads.googleads.v1.services.ConversionActionService', - file=DESCRIPTOR, - index=0, - serialized_options=None, - serialized_start=1008, - serialized_end=1461, - methods=[ - _descriptor.MethodDescriptor( - name='GetConversionAction', - full_name='google.ads.googleads.v1.services.ConversionActionService.GetConversionAction', - index=0, - containing_service=None, - input_type=_GETCONVERSIONACTIONREQUEST, - output_type=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_conversion__action__pb2._CONVERSIONACTION, - serialized_options=_b('\202\323\344\223\0025\0223/v1/{resource_name=customers/*/conversionActions/*}'), - ), - _descriptor.MethodDescriptor( - name='MutateConversionActions', - full_name='google.ads.googleads.v1.services.ConversionActionService.MutateConversionActions', - index=1, - containing_service=None, - input_type=_MUTATECONVERSIONACTIONSREQUEST, - output_type=_MUTATECONVERSIONACTIONSRESPONSE, - serialized_options=_b('\202\323\344\223\002;\"6/v1/customers/{customer_id=*}/conversionActions:mutate:\001*'), - ), -]) -_sym_db.RegisterServiceDescriptor(_CONVERSIONACTIONSERVICE) - -DESCRIPTOR.services_by_name['ConversionActionService'] = _CONVERSIONACTIONSERVICE - -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/services/conversion_action_service_pb2_grpc.py b/google/ads/google_ads/v1/proto/services/conversion_action_service_pb2_grpc.py deleted file mode 100644 index e4cc63463..000000000 --- a/google/ads/google_ads/v1/proto/services/conversion_action_service_pb2_grpc.py +++ /dev/null @@ -1,69 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -import grpc - -from google.ads.google_ads.v1.proto.resources import conversion_action_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_conversion__action__pb2 -from google.ads.google_ads.v1.proto.services import conversion_action_service_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_conversion__action__service__pb2 - - -class ConversionActionServiceStub(object): - """Proto file describing the Conversion Action service. - - Service to manage conversion actions. - """ - - def __init__(self, channel): - """Constructor. - - Args: - channel: A grpc.Channel. - """ - self.GetConversionAction = channel.unary_unary( - '/google.ads.googleads.v1.services.ConversionActionService/GetConversionAction', - request_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_conversion__action__service__pb2.GetConversionActionRequest.SerializeToString, - response_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_conversion__action__pb2.ConversionAction.FromString, - ) - self.MutateConversionActions = channel.unary_unary( - '/google.ads.googleads.v1.services.ConversionActionService/MutateConversionActions', - request_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_conversion__action__service__pb2.MutateConversionActionsRequest.SerializeToString, - response_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_conversion__action__service__pb2.MutateConversionActionsResponse.FromString, - ) - - -class ConversionActionServiceServicer(object): - """Proto file describing the Conversion Action service. - - Service to manage conversion actions. - """ - - def GetConversionAction(self, request, context): - """Returns the requested conversion action. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def MutateConversionActions(self, request, context): - """Creates, updates or removes conversion actions. Operation statuses are - returned. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - -def add_ConversionActionServiceServicer_to_server(servicer, server): - rpc_method_handlers = { - 'GetConversionAction': grpc.unary_unary_rpc_method_handler( - servicer.GetConversionAction, - request_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_conversion__action__service__pb2.GetConversionActionRequest.FromString, - response_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_conversion__action__pb2.ConversionAction.SerializeToString, - ), - 'MutateConversionActions': grpc.unary_unary_rpc_method_handler( - servicer.MutateConversionActions, - request_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_conversion__action__service__pb2.MutateConversionActionsRequest.FromString, - response_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_conversion__action__service__pb2.MutateConversionActionsResponse.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'google.ads.googleads.v1.services.ConversionActionService', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) diff --git a/google/ads/google_ads/v1/proto/services/conversion_adjustment_upload_service_pb2.py b/google/ads/google_ads/v1/proto/services/conversion_adjustment_upload_service_pb2.py deleted file mode 100644 index 2ab1e7563..000000000 --- a/google/ads/google_ads/v1/proto/services/conversion_adjustment_upload_service_pb2.py +++ /dev/null @@ -1,556 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/services/conversion_adjustment_upload_service.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.ads.google_ads.v1.proto.enums import conversion_adjustment_type_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_conversion__adjustment__type__pb2 -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 -from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 -from google.rpc import status_pb2 as google_dot_rpc_dot_status__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/services/conversion_adjustment_upload_service.proto', - package='google.ads.googleads.v1.services', - syntax='proto3', - serialized_options=_b('\n$com.google.ads.googleads.v1.servicesB&ConversionAdjustmentUploadServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v1/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V1.Services\312\002 Google\\Ads\\GoogleAds\\V1\\Services\352\002$Google::Ads::GoogleAds::V1::Services'), - serialized_pb=_b('\nQgoogle/ads/googleads_v1/proto/services/conversion_adjustment_upload_service.proto\x12 google.ads.googleads.v1.services\x1a\x44google/ads/googleads_v1/proto/enums/conversion_adjustment_type.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x17google/rpc/status.proto\"\xc1\x01\n\"UploadConversionAdjustmentsRequest\x12\x13\n\x0b\x63ustomer_id\x18\x01 \x01(\t\x12V\n\x16\x63onversion_adjustments\x18\x02 \x03(\x0b\x32\x36.google.ads.googleads.v1.services.ConversionAdjustment\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\"\xa7\x01\n#UploadConversionAdjustmentsResponse\x12\x31\n\x15partial_failure_error\x18\x01 \x01(\x0b\x32\x12.google.rpc.Status\x12M\n\x07results\x18\x02 \x03(\x0b\x32<.google.ads.googleads.v1.services.ConversionAdjustmentResult\"\xe9\x03\n\x14\x43onversionAdjustment\x12\x37\n\x11\x63onversion_action\x18\x03 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12:\n\x14\x61\x64justment_date_time\x18\x04 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12m\n\x0f\x61\x64justment_type\x18\x05 \x01(\x0e\x32T.google.ads.googleads.v1.enums.ConversionAdjustmentTypeEnum.ConversionAdjustmentType\x12M\n\x11restatement_value\x18\x06 \x01(\x0b\x32\x32.google.ads.googleads.v1.services.RestatementValue\x12S\n\x14gclid_date_time_pair\x18\x01 \x01(\x0b\x32\x33.google.ads.googleads.v1.services.GclidDateTimePairH\x00\x12\x30\n\x08order_id\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValueH\x00\x42\x17\n\x15\x63onversion_identifier\"}\n\x10RestatementValue\x12\x34\n\x0e\x61\x64justed_value\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12\x33\n\rcurrency_code\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValue\"|\n\x11GclidDateTimePair\x12+\n\x05gclid\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12:\n\x14\x63onversion_date_time\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValue\"\xa0\x03\n\x1a\x43onversionAdjustmentResult\x12\x37\n\x11\x63onversion_action\x18\x03 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12:\n\x14\x61\x64justment_date_time\x18\x04 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12m\n\x0f\x61\x64justment_type\x18\x05 \x01(\x0e\x32T.google.ads.googleads.v1.enums.ConversionAdjustmentTypeEnum.ConversionAdjustmentType\x12S\n\x14gclid_date_time_pair\x18\x01 \x01(\x0b\x32\x33.google.ads.googleads.v1.services.GclidDateTimePairH\x00\x12\x30\n\x08order_id\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValueH\x00\x42\x17\n\x15\x63onversion_identifier2\x96\x02\n!ConversionAdjustmentUploadService\x12\xf0\x01\n\x1bUploadConversionAdjustments\x12\x44.google.ads.googleads.v1.services.UploadConversionAdjustmentsRequest\x1a\x45.google.ads.googleads.v1.services.UploadConversionAdjustmentsResponse\"D\x82\xd3\xe4\x93\x02>\"9/v1/customers/{customer_id=*}:uploadConversionAdjustments:\x01*B\x8d\x02\n$com.google.ads.googleads.v1.servicesB&ConversionAdjustmentUploadServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v1/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V1.Services\xca\x02 Google\\Ads\\GoogleAds\\V1\\Services\xea\x02$Google::Ads::GoogleAds::V1::Servicesb\x06proto3') - , - dependencies=[google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_conversion__adjustment__type__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_rpc_dot_status__pb2.DESCRIPTOR,]) - - - - -_UPLOADCONVERSIONADJUSTMENTSREQUEST = _descriptor.Descriptor( - name='UploadConversionAdjustmentsRequest', - full_name='google.ads.googleads.v1.services.UploadConversionAdjustmentsRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='customer_id', full_name='google.ads.googleads.v1.services.UploadConversionAdjustmentsRequest.customer_id', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='conversion_adjustments', full_name='google.ads.googleads.v1.services.UploadConversionAdjustmentsRequest.conversion_adjustments', index=1, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='partial_failure', full_name='google.ads.googleads.v1.services.UploadConversionAdjustmentsRequest.partial_failure', index=2, - number=3, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='validate_only', full_name='google.ads.googleads.v1.services.UploadConversionAdjustmentsRequest.validate_only', index=3, - number=4, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=277, - serialized_end=470, -) - - -_UPLOADCONVERSIONADJUSTMENTSRESPONSE = _descriptor.Descriptor( - name='UploadConversionAdjustmentsResponse', - full_name='google.ads.googleads.v1.services.UploadConversionAdjustmentsResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='partial_failure_error', full_name='google.ads.googleads.v1.services.UploadConversionAdjustmentsResponse.partial_failure_error', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='results', full_name='google.ads.googleads.v1.services.UploadConversionAdjustmentsResponse.results', index=1, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=473, - serialized_end=640, -) - - -_CONVERSIONADJUSTMENT = _descriptor.Descriptor( - name='ConversionAdjustment', - full_name='google.ads.googleads.v1.services.ConversionAdjustment', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='conversion_action', full_name='google.ads.googleads.v1.services.ConversionAdjustment.conversion_action', index=0, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='adjustment_date_time', full_name='google.ads.googleads.v1.services.ConversionAdjustment.adjustment_date_time', index=1, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='adjustment_type', full_name='google.ads.googleads.v1.services.ConversionAdjustment.adjustment_type', index=2, - number=5, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='restatement_value', full_name='google.ads.googleads.v1.services.ConversionAdjustment.restatement_value', index=3, - number=6, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='gclid_date_time_pair', full_name='google.ads.googleads.v1.services.ConversionAdjustment.gclid_date_time_pair', index=4, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='order_id', full_name='google.ads.googleads.v1.services.ConversionAdjustment.order_id', index=5, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='conversion_identifier', full_name='google.ads.googleads.v1.services.ConversionAdjustment.conversion_identifier', - index=0, containing_type=None, fields=[]), - ], - serialized_start=643, - serialized_end=1132, -) - - -_RESTATEMENTVALUE = _descriptor.Descriptor( - name='RestatementValue', - full_name='google.ads.googleads.v1.services.RestatementValue', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='adjusted_value', full_name='google.ads.googleads.v1.services.RestatementValue.adjusted_value', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='currency_code', full_name='google.ads.googleads.v1.services.RestatementValue.currency_code', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1134, - serialized_end=1259, -) - - -_GCLIDDATETIMEPAIR = _descriptor.Descriptor( - name='GclidDateTimePair', - full_name='google.ads.googleads.v1.services.GclidDateTimePair', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='gclid', full_name='google.ads.googleads.v1.services.GclidDateTimePair.gclid', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='conversion_date_time', full_name='google.ads.googleads.v1.services.GclidDateTimePair.conversion_date_time', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1261, - serialized_end=1385, -) - - -_CONVERSIONADJUSTMENTRESULT = _descriptor.Descriptor( - name='ConversionAdjustmentResult', - full_name='google.ads.googleads.v1.services.ConversionAdjustmentResult', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='conversion_action', full_name='google.ads.googleads.v1.services.ConversionAdjustmentResult.conversion_action', index=0, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='adjustment_date_time', full_name='google.ads.googleads.v1.services.ConversionAdjustmentResult.adjustment_date_time', index=1, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='adjustment_type', full_name='google.ads.googleads.v1.services.ConversionAdjustmentResult.adjustment_type', index=2, - number=5, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='gclid_date_time_pair', full_name='google.ads.googleads.v1.services.ConversionAdjustmentResult.gclid_date_time_pair', index=3, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='order_id', full_name='google.ads.googleads.v1.services.ConversionAdjustmentResult.order_id', index=4, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='conversion_identifier', full_name='google.ads.googleads.v1.services.ConversionAdjustmentResult.conversion_identifier', - index=0, containing_type=None, fields=[]), - ], - serialized_start=1388, - serialized_end=1804, -) - -_UPLOADCONVERSIONADJUSTMENTSREQUEST.fields_by_name['conversion_adjustments'].message_type = _CONVERSIONADJUSTMENT -_UPLOADCONVERSIONADJUSTMENTSRESPONSE.fields_by_name['partial_failure_error'].message_type = google_dot_rpc_dot_status__pb2._STATUS -_UPLOADCONVERSIONADJUSTMENTSRESPONSE.fields_by_name['results'].message_type = _CONVERSIONADJUSTMENTRESULT -_CONVERSIONADJUSTMENT.fields_by_name['conversion_action'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_CONVERSIONADJUSTMENT.fields_by_name['adjustment_date_time'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_CONVERSIONADJUSTMENT.fields_by_name['adjustment_type'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_conversion__adjustment__type__pb2._CONVERSIONADJUSTMENTTYPEENUM_CONVERSIONADJUSTMENTTYPE -_CONVERSIONADJUSTMENT.fields_by_name['restatement_value'].message_type = _RESTATEMENTVALUE -_CONVERSIONADJUSTMENT.fields_by_name['gclid_date_time_pair'].message_type = _GCLIDDATETIMEPAIR -_CONVERSIONADJUSTMENT.fields_by_name['order_id'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_CONVERSIONADJUSTMENT.oneofs_by_name['conversion_identifier'].fields.append( - _CONVERSIONADJUSTMENT.fields_by_name['gclid_date_time_pair']) -_CONVERSIONADJUSTMENT.fields_by_name['gclid_date_time_pair'].containing_oneof = _CONVERSIONADJUSTMENT.oneofs_by_name['conversion_identifier'] -_CONVERSIONADJUSTMENT.oneofs_by_name['conversion_identifier'].fields.append( - _CONVERSIONADJUSTMENT.fields_by_name['order_id']) -_CONVERSIONADJUSTMENT.fields_by_name['order_id'].containing_oneof = _CONVERSIONADJUSTMENT.oneofs_by_name['conversion_identifier'] -_RESTATEMENTVALUE.fields_by_name['adjusted_value'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE -_RESTATEMENTVALUE.fields_by_name['currency_code'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_GCLIDDATETIMEPAIR.fields_by_name['gclid'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_GCLIDDATETIMEPAIR.fields_by_name['conversion_date_time'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_CONVERSIONADJUSTMENTRESULT.fields_by_name['conversion_action'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_CONVERSIONADJUSTMENTRESULT.fields_by_name['adjustment_date_time'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_CONVERSIONADJUSTMENTRESULT.fields_by_name['adjustment_type'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_conversion__adjustment__type__pb2._CONVERSIONADJUSTMENTTYPEENUM_CONVERSIONADJUSTMENTTYPE -_CONVERSIONADJUSTMENTRESULT.fields_by_name['gclid_date_time_pair'].message_type = _GCLIDDATETIMEPAIR -_CONVERSIONADJUSTMENTRESULT.fields_by_name['order_id'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_CONVERSIONADJUSTMENTRESULT.oneofs_by_name['conversion_identifier'].fields.append( - _CONVERSIONADJUSTMENTRESULT.fields_by_name['gclid_date_time_pair']) -_CONVERSIONADJUSTMENTRESULT.fields_by_name['gclid_date_time_pair'].containing_oneof = _CONVERSIONADJUSTMENTRESULT.oneofs_by_name['conversion_identifier'] -_CONVERSIONADJUSTMENTRESULT.oneofs_by_name['conversion_identifier'].fields.append( - _CONVERSIONADJUSTMENTRESULT.fields_by_name['order_id']) -_CONVERSIONADJUSTMENTRESULT.fields_by_name['order_id'].containing_oneof = _CONVERSIONADJUSTMENTRESULT.oneofs_by_name['conversion_identifier'] -DESCRIPTOR.message_types_by_name['UploadConversionAdjustmentsRequest'] = _UPLOADCONVERSIONADJUSTMENTSREQUEST -DESCRIPTOR.message_types_by_name['UploadConversionAdjustmentsResponse'] = _UPLOADCONVERSIONADJUSTMENTSRESPONSE -DESCRIPTOR.message_types_by_name['ConversionAdjustment'] = _CONVERSIONADJUSTMENT -DESCRIPTOR.message_types_by_name['RestatementValue'] = _RESTATEMENTVALUE -DESCRIPTOR.message_types_by_name['GclidDateTimePair'] = _GCLIDDATETIMEPAIR -DESCRIPTOR.message_types_by_name['ConversionAdjustmentResult'] = _CONVERSIONADJUSTMENTRESULT -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -UploadConversionAdjustmentsRequest = _reflection.GeneratedProtocolMessageType('UploadConversionAdjustmentsRequest', (_message.Message,), dict( - DESCRIPTOR = _UPLOADCONVERSIONADJUSTMENTSREQUEST, - __module__ = 'google.ads.googleads_v1.proto.services.conversion_adjustment_upload_service_pb2' - , - __doc__ = """Request message for - [ConversionAdjustmentUploadService.UploadConversionAdjustments][google.ads.googleads.v1.services.ConversionAdjustmentUploadService.UploadConversionAdjustments]. - - - Attributes: - customer_id: - The ID of the customer performing the upload. - conversion_adjustments: - The conversion adjustments that are being uploaded. - partial_failure: - If true, successful operations will be carried out and invalid - operations will return errors. If false, all operations will - be carried out in one transaction if and only if they are all - valid. This should always be set to true. - validate_only: - If true, the request is validated but not executed. Only - errors are returned, not results. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.UploadConversionAdjustmentsRequest) - )) -_sym_db.RegisterMessage(UploadConversionAdjustmentsRequest) - -UploadConversionAdjustmentsResponse = _reflection.GeneratedProtocolMessageType('UploadConversionAdjustmentsResponse', (_message.Message,), dict( - DESCRIPTOR = _UPLOADCONVERSIONADJUSTMENTSRESPONSE, - __module__ = 'google.ads.googleads_v1.proto.services.conversion_adjustment_upload_service_pb2' - , - __doc__ = """Response message for - [ConversionAdjustmentUploadService.UploadConversionAdjustments][google.ads.googleads.v1.services.ConversionAdjustmentUploadService.UploadConversionAdjustments]. - - - Attributes: - partial_failure_error: - Errors that pertain to conversion adjustment failures in the - partial failure mode. Returned when all errors occur inside - the adjustments. If any errors occur outside the adjustments - (e.g. auth errors), we return an RPC level error. - results: - Returned for successfully processed conversion adjustments. - Proto will be empty for rows that received an error. Results - are not returned when validate\_only is true. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.UploadConversionAdjustmentsResponse) - )) -_sym_db.RegisterMessage(UploadConversionAdjustmentsResponse) - -ConversionAdjustment = _reflection.GeneratedProtocolMessageType('ConversionAdjustment', (_message.Message,), dict( - DESCRIPTOR = _CONVERSIONADJUSTMENT, - __module__ = 'google.ads.googleads_v1.proto.services.conversion_adjustment_upload_service_pb2' - , - __doc__ = """A conversion adjustment. - - - Attributes: - conversion_action: - Resource name of the conversion action associated with this - conversion adjustment. Note: Although this resource name - consists of a customer id and a conversion action id, - validation will ignore the customer id and use the conversion - action id as the sole identifier of the conversion action. - adjustment_date_time: - The date time at which the adjustment occurred. Must be after - the conversion\_date\_time. The timezone must be specified. - The format is "yyyy-mm-dd hh:mm:ss+\|-hh:mm", e.g. "2019-01-01 - 12:32:45-08:00". - adjustment_type: - The adjustment type. - restatement_value: - Information needed to restate the conversion's value. Required - for restatements. Should not be supplied for retractions. An - error will be returned if provided for a retraction. - conversion_identifier: - Identifies the conversion to be adjusted. - gclid_date_time_pair: - Uniquely identifies a conversion that was reported without an - order ID specified. - order_id: - The order ID of the conversion to be adjusted. If the - conversion was reported with an order ID specified, that order - ID must be used as the identifier here. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.ConversionAdjustment) - )) -_sym_db.RegisterMessage(ConversionAdjustment) - -RestatementValue = _reflection.GeneratedProtocolMessageType('RestatementValue', (_message.Message,), dict( - DESCRIPTOR = _RESTATEMENTVALUE, - __module__ = 'google.ads.googleads_v1.proto.services.conversion_adjustment_upload_service_pb2' - , - __doc__ = """Contains information needed to restate a conversion's value. - - - Attributes: - adjusted_value: - The restated conversion value. This is the value of the - conversion after restatement. For example, to change the value - of a conversion from 100 to 70, an adjusted value of 70 should - be reported. - currency_code: - The currency of the restated value. If not provided, then the - default currency from the conversion action is used, and if - that is not set then the account currency is used. This is the - ISO 4217 3-character currency code e.g. USD or EUR. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.RestatementValue) - )) -_sym_db.RegisterMessage(RestatementValue) - -GclidDateTimePair = _reflection.GeneratedProtocolMessageType('GclidDateTimePair', (_message.Message,), dict( - DESCRIPTOR = _GCLIDDATETIMEPAIR, - __module__ = 'google.ads.googleads_v1.proto.services.conversion_adjustment_upload_service_pb2' - , - __doc__ = """Uniquely identifies a conversion that was reported without an order ID - specified. - - - Attributes: - gclid: - Google click ID (gclid) associated with the original - conversion for this adjustment. - conversion_date_time: - The date time at which the original conversion for this - adjustment occurred. The timezone must be specified. The - format is "yyyy-mm-dd hh:mm:ss+\|-hh:mm", e.g. "2019-01-01 - 12:32:45-08:00". - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.GclidDateTimePair) - )) -_sym_db.RegisterMessage(GclidDateTimePair) - -ConversionAdjustmentResult = _reflection.GeneratedProtocolMessageType('ConversionAdjustmentResult', (_message.Message,), dict( - DESCRIPTOR = _CONVERSIONADJUSTMENTRESULT, - __module__ = 'google.ads.googleads_v1.proto.services.conversion_adjustment_upload_service_pb2' - , - __doc__ = """Information identifying a successfully processed ConversionAdjustment. - - - Attributes: - conversion_action: - Resource name of the conversion action associated with this - conversion adjustment. - adjustment_date_time: - The date time at which the adjustment occurred. The format is - "yyyy-mm-dd hh:mm:ss+\|-hh:mm", e.g. "2019-01-01 - 12:32:45-08:00". - adjustment_type: - The adjustment type. - conversion_identifier: - Identifies the conversion that was adjusted. - gclid_date_time_pair: - Uniquely identifies a conversion that was reported without an - order ID specified. - order_id: - The order ID of the conversion that was adjusted. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.ConversionAdjustmentResult) - )) -_sym_db.RegisterMessage(ConversionAdjustmentResult) - - -DESCRIPTOR._options = None - -_CONVERSIONADJUSTMENTUPLOADSERVICE = _descriptor.ServiceDescriptor( - name='ConversionAdjustmentUploadService', - full_name='google.ads.googleads.v1.services.ConversionAdjustmentUploadService', - file=DESCRIPTOR, - index=0, - serialized_options=None, - serialized_start=1807, - serialized_end=2085, - methods=[ - _descriptor.MethodDescriptor( - name='UploadConversionAdjustments', - full_name='google.ads.googleads.v1.services.ConversionAdjustmentUploadService.UploadConversionAdjustments', - index=0, - containing_service=None, - input_type=_UPLOADCONVERSIONADJUSTMENTSREQUEST, - output_type=_UPLOADCONVERSIONADJUSTMENTSRESPONSE, - serialized_options=_b('\202\323\344\223\002>\"9/v1/customers/{customer_id=*}:uploadConversionAdjustments:\001*'), - ), -]) -_sym_db.RegisterServiceDescriptor(_CONVERSIONADJUSTMENTUPLOADSERVICE) - -DESCRIPTOR.services_by_name['ConversionAdjustmentUploadService'] = _CONVERSIONADJUSTMENTUPLOADSERVICE - -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/services/conversion_upload_service_pb2.py b/google/ads/google_ads/v1/proto/services/conversion_upload_service_pb2.py deleted file mode 100644 index 64d44fdb9..000000000 --- a/google/ads/google_ads/v1/proto/services/conversion_upload_service_pb2.py +++ /dev/null @@ -1,800 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/services/conversion_upload_service.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 -from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 -from google.rpc import status_pb2 as google_dot_rpc_dot_status__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/services/conversion_upload_service.proto', - package='google.ads.googleads.v1.services', - syntax='proto3', - serialized_options=_b('\n$com.google.ads.googleads.v1.servicesB\034ConversionUploadServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v1/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V1.Services\312\002 Google\\Ads\\GoogleAds\\V1\\Services\352\002$Google::Ads::GoogleAds::V1::Services'), - serialized_pb=_b('\nFgoogle/ads/googleads_v1/proto/services/conversion_upload_service.proto\x12 google.ads.googleads.v1.services\x1a\x1cgoogle/api/annotations.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x17google/rpc/status.proto\"\xac\x01\n\x1dUploadClickConversionsRequest\x12\x13\n\x0b\x63ustomer_id\x18\x01 \x01(\t\x12\x46\n\x0b\x63onversions\x18\x02 \x03(\x0b\x32\x31.google.ads.googleads.v1.services.ClickConversion\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\"\x9d\x01\n\x1eUploadClickConversionsResponse\x12\x31\n\x15partial_failure_error\x18\x01 \x01(\x0b\x32\x12.google.rpc.Status\x12H\n\x07results\x18\x02 \x03(\x0b\x32\x37.google.ads.googleads.v1.services.ClickConversionResult\"\xaa\x01\n\x1cUploadCallConversionsRequest\x12\x13\n\x0b\x63ustomer_id\x18\x01 \x01(\t\x12\x45\n\x0b\x63onversions\x18\x02 \x03(\x0b\x32\x30.google.ads.googleads.v1.services.CallConversion\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\"\x9b\x01\n\x1dUploadCallConversionsResponse\x12\x31\n\x15partial_failure_error\x18\x01 \x01(\x0b\x32\x12.google.rpc.Status\x12G\n\x07results\x18\x02 \x03(\x0b\x32\x36.google.ads.googleads.v1.services.CallConversionResult\"\xae\x03\n\x0f\x43lickConversion\x12+\n\x05gclid\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x37\n\x11\x63onversion_action\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12:\n\x14\x63onversion_date_time\x18\x03 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x36\n\x10\x63onversion_value\x18\x04 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12\x33\n\rcurrency_code\x18\x05 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12.\n\x08order_id\x18\x06 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\\\n\x19\x65xternal_attribution_data\x18\x07 \x01(\x0b\x32\x39.google.ads.googleads.v1.services.ExternalAttributionData\"\xdf\x02\n\x0e\x43\x61llConversion\x12/\n\tcaller_id\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12:\n\x14\x63\x61ll_start_date_time\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x37\n\x11\x63onversion_action\x18\x03 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12:\n\x14\x63onversion_date_time\x18\x04 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x36\n\x10\x63onversion_value\x18\x05 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12\x33\n\rcurrency_code\x18\x06 \x01(\x0b\x32\x1c.google.protobuf.StringValue\"\x9e\x01\n\x17\x45xternalAttributionData\x12\x41\n\x1b\x65xternal_attribution_credit\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12@\n\x1a\x65xternal_attribution_model\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValue\"\xb9\x01\n\x15\x43lickConversionResult\x12+\n\x05gclid\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x37\n\x11\x63onversion_action\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12:\n\x14\x63onversion_date_time\x18\x03 \x01(\x0b\x32\x1c.google.protobuf.StringValue\"\xf8\x01\n\x14\x43\x61llConversionResult\x12/\n\tcaller_id\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12:\n\x14\x63\x61ll_start_date_time\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x37\n\x11\x63onversion_action\x18\x03 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12:\n\x14\x63onversion_date_time\x18\x04 \x01(\x0b\x32\x1c.google.protobuf.StringValue2\xd3\x03\n\x17\x43onversionUploadService\x12\xdc\x01\n\x16UploadClickConversions\x12?.google.ads.googleads.v1.services.UploadClickConversionsRequest\x1a@.google.ads.googleads.v1.services.UploadClickConversionsResponse\"?\x82\xd3\xe4\x93\x02\x39\"4/v1/customers/{customer_id=*}:uploadClickConversions:\x01*\x12\xd8\x01\n\x15UploadCallConversions\x12>.google.ads.googleads.v1.services.UploadCallConversionsRequest\x1a?.google.ads.googleads.v1.services.UploadCallConversionsResponse\">\x82\xd3\xe4\x93\x02\x38\"3/v1/customers/{customer_id=*}:uploadCallConversions:\x01*B\x83\x02\n$com.google.ads.googleads.v1.servicesB\x1c\x43onversionUploadServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v1/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V1.Services\xca\x02 Google\\Ads\\GoogleAds\\V1\\Services\xea\x02$Google::Ads::GoogleAds::V1::Servicesb\x06proto3') - , - dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_rpc_dot_status__pb2.DESCRIPTOR,]) - - - - -_UPLOADCLICKCONVERSIONSREQUEST = _descriptor.Descriptor( - name='UploadClickConversionsRequest', - full_name='google.ads.googleads.v1.services.UploadClickConversionsRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='customer_id', full_name='google.ads.googleads.v1.services.UploadClickConversionsRequest.customer_id', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='conversions', full_name='google.ads.googleads.v1.services.UploadClickConversionsRequest.conversions', index=1, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='partial_failure', full_name='google.ads.googleads.v1.services.UploadClickConversionsRequest.partial_failure', index=2, - number=3, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='validate_only', full_name='google.ads.googleads.v1.services.UploadClickConversionsRequest.validate_only', index=3, - number=4, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=196, - serialized_end=368, -) - - -_UPLOADCLICKCONVERSIONSRESPONSE = _descriptor.Descriptor( - name='UploadClickConversionsResponse', - full_name='google.ads.googleads.v1.services.UploadClickConversionsResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='partial_failure_error', full_name='google.ads.googleads.v1.services.UploadClickConversionsResponse.partial_failure_error', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='results', full_name='google.ads.googleads.v1.services.UploadClickConversionsResponse.results', index=1, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=371, - serialized_end=528, -) - - -_UPLOADCALLCONVERSIONSREQUEST = _descriptor.Descriptor( - name='UploadCallConversionsRequest', - full_name='google.ads.googleads.v1.services.UploadCallConversionsRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='customer_id', full_name='google.ads.googleads.v1.services.UploadCallConversionsRequest.customer_id', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='conversions', full_name='google.ads.googleads.v1.services.UploadCallConversionsRequest.conversions', index=1, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='partial_failure', full_name='google.ads.googleads.v1.services.UploadCallConversionsRequest.partial_failure', index=2, - number=3, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='validate_only', full_name='google.ads.googleads.v1.services.UploadCallConversionsRequest.validate_only', index=3, - number=4, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=531, - serialized_end=701, -) - - -_UPLOADCALLCONVERSIONSRESPONSE = _descriptor.Descriptor( - name='UploadCallConversionsResponse', - full_name='google.ads.googleads.v1.services.UploadCallConversionsResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='partial_failure_error', full_name='google.ads.googleads.v1.services.UploadCallConversionsResponse.partial_failure_error', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='results', full_name='google.ads.googleads.v1.services.UploadCallConversionsResponse.results', index=1, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=704, - serialized_end=859, -) - - -_CLICKCONVERSION = _descriptor.Descriptor( - name='ClickConversion', - full_name='google.ads.googleads.v1.services.ClickConversion', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='gclid', full_name='google.ads.googleads.v1.services.ClickConversion.gclid', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='conversion_action', full_name='google.ads.googleads.v1.services.ClickConversion.conversion_action', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='conversion_date_time', full_name='google.ads.googleads.v1.services.ClickConversion.conversion_date_time', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='conversion_value', full_name='google.ads.googleads.v1.services.ClickConversion.conversion_value', index=3, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='currency_code', full_name='google.ads.googleads.v1.services.ClickConversion.currency_code', index=4, - number=5, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='order_id', full_name='google.ads.googleads.v1.services.ClickConversion.order_id', index=5, - number=6, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='external_attribution_data', full_name='google.ads.googleads.v1.services.ClickConversion.external_attribution_data', index=6, - number=7, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=862, - serialized_end=1292, -) - - -_CALLCONVERSION = _descriptor.Descriptor( - name='CallConversion', - full_name='google.ads.googleads.v1.services.CallConversion', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='caller_id', full_name='google.ads.googleads.v1.services.CallConversion.caller_id', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='call_start_date_time', full_name='google.ads.googleads.v1.services.CallConversion.call_start_date_time', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='conversion_action', full_name='google.ads.googleads.v1.services.CallConversion.conversion_action', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='conversion_date_time', full_name='google.ads.googleads.v1.services.CallConversion.conversion_date_time', index=3, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='conversion_value', full_name='google.ads.googleads.v1.services.CallConversion.conversion_value', index=4, - number=5, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='currency_code', full_name='google.ads.googleads.v1.services.CallConversion.currency_code', index=5, - number=6, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1295, - serialized_end=1646, -) - - -_EXTERNALATTRIBUTIONDATA = _descriptor.Descriptor( - name='ExternalAttributionData', - full_name='google.ads.googleads.v1.services.ExternalAttributionData', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='external_attribution_credit', full_name='google.ads.googleads.v1.services.ExternalAttributionData.external_attribution_credit', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='external_attribution_model', full_name='google.ads.googleads.v1.services.ExternalAttributionData.external_attribution_model', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1649, - serialized_end=1807, -) - - -_CLICKCONVERSIONRESULT = _descriptor.Descriptor( - name='ClickConversionResult', - full_name='google.ads.googleads.v1.services.ClickConversionResult', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='gclid', full_name='google.ads.googleads.v1.services.ClickConversionResult.gclid', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='conversion_action', full_name='google.ads.googleads.v1.services.ClickConversionResult.conversion_action', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='conversion_date_time', full_name='google.ads.googleads.v1.services.ClickConversionResult.conversion_date_time', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1810, - serialized_end=1995, -) - - -_CALLCONVERSIONRESULT = _descriptor.Descriptor( - name='CallConversionResult', - full_name='google.ads.googleads.v1.services.CallConversionResult', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='caller_id', full_name='google.ads.googleads.v1.services.CallConversionResult.caller_id', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='call_start_date_time', full_name='google.ads.googleads.v1.services.CallConversionResult.call_start_date_time', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='conversion_action', full_name='google.ads.googleads.v1.services.CallConversionResult.conversion_action', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='conversion_date_time', full_name='google.ads.googleads.v1.services.CallConversionResult.conversion_date_time', index=3, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1998, - serialized_end=2246, -) - -_UPLOADCLICKCONVERSIONSREQUEST.fields_by_name['conversions'].message_type = _CLICKCONVERSION -_UPLOADCLICKCONVERSIONSRESPONSE.fields_by_name['partial_failure_error'].message_type = google_dot_rpc_dot_status__pb2._STATUS -_UPLOADCLICKCONVERSIONSRESPONSE.fields_by_name['results'].message_type = _CLICKCONVERSIONRESULT -_UPLOADCALLCONVERSIONSREQUEST.fields_by_name['conversions'].message_type = _CALLCONVERSION -_UPLOADCALLCONVERSIONSRESPONSE.fields_by_name['partial_failure_error'].message_type = google_dot_rpc_dot_status__pb2._STATUS -_UPLOADCALLCONVERSIONSRESPONSE.fields_by_name['results'].message_type = _CALLCONVERSIONRESULT -_CLICKCONVERSION.fields_by_name['gclid'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_CLICKCONVERSION.fields_by_name['conversion_action'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_CLICKCONVERSION.fields_by_name['conversion_date_time'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_CLICKCONVERSION.fields_by_name['conversion_value'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE -_CLICKCONVERSION.fields_by_name['currency_code'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_CLICKCONVERSION.fields_by_name['order_id'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_CLICKCONVERSION.fields_by_name['external_attribution_data'].message_type = _EXTERNALATTRIBUTIONDATA -_CALLCONVERSION.fields_by_name['caller_id'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_CALLCONVERSION.fields_by_name['call_start_date_time'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_CALLCONVERSION.fields_by_name['conversion_action'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_CALLCONVERSION.fields_by_name['conversion_date_time'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_CALLCONVERSION.fields_by_name['conversion_value'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE -_CALLCONVERSION.fields_by_name['currency_code'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_EXTERNALATTRIBUTIONDATA.fields_by_name['external_attribution_credit'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE -_EXTERNALATTRIBUTIONDATA.fields_by_name['external_attribution_model'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_CLICKCONVERSIONRESULT.fields_by_name['gclid'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_CLICKCONVERSIONRESULT.fields_by_name['conversion_action'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_CLICKCONVERSIONRESULT.fields_by_name['conversion_date_time'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_CALLCONVERSIONRESULT.fields_by_name['caller_id'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_CALLCONVERSIONRESULT.fields_by_name['call_start_date_time'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_CALLCONVERSIONRESULT.fields_by_name['conversion_action'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_CALLCONVERSIONRESULT.fields_by_name['conversion_date_time'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -DESCRIPTOR.message_types_by_name['UploadClickConversionsRequest'] = _UPLOADCLICKCONVERSIONSREQUEST -DESCRIPTOR.message_types_by_name['UploadClickConversionsResponse'] = _UPLOADCLICKCONVERSIONSRESPONSE -DESCRIPTOR.message_types_by_name['UploadCallConversionsRequest'] = _UPLOADCALLCONVERSIONSREQUEST -DESCRIPTOR.message_types_by_name['UploadCallConversionsResponse'] = _UPLOADCALLCONVERSIONSRESPONSE -DESCRIPTOR.message_types_by_name['ClickConversion'] = _CLICKCONVERSION -DESCRIPTOR.message_types_by_name['CallConversion'] = _CALLCONVERSION -DESCRIPTOR.message_types_by_name['ExternalAttributionData'] = _EXTERNALATTRIBUTIONDATA -DESCRIPTOR.message_types_by_name['ClickConversionResult'] = _CLICKCONVERSIONRESULT -DESCRIPTOR.message_types_by_name['CallConversionResult'] = _CALLCONVERSIONRESULT -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -UploadClickConversionsRequest = _reflection.GeneratedProtocolMessageType('UploadClickConversionsRequest', (_message.Message,), dict( - DESCRIPTOR = _UPLOADCLICKCONVERSIONSREQUEST, - __module__ = 'google.ads.googleads_v1.proto.services.conversion_upload_service_pb2' - , - __doc__ = """Request message for - [ConversionUploadService.UploadClickConversions][google.ads.googleads.v1.services.ConversionUploadService.UploadClickConversions]. - - - Attributes: - customer_id: - The ID of the customer performing the upload. - conversions: - The conversions that are being uploaded. - partial_failure: - If true, successful operations will be carried out and invalid - operations will return errors. If false, all operations will - be carried out in one transaction if and only if they are all - valid. This should always be set to true. - validate_only: - If true, the request is validated but not executed. Only - errors are returned, not results. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.UploadClickConversionsRequest) - )) -_sym_db.RegisterMessage(UploadClickConversionsRequest) - -UploadClickConversionsResponse = _reflection.GeneratedProtocolMessageType('UploadClickConversionsResponse', (_message.Message,), dict( - DESCRIPTOR = _UPLOADCLICKCONVERSIONSRESPONSE, - __module__ = 'google.ads.googleads_v1.proto.services.conversion_upload_service_pb2' - , - __doc__ = """Response message for - [ConversionUploadService.UploadClickConversions][google.ads.googleads.v1.services.ConversionUploadService.UploadClickConversions]. - - - Attributes: - partial_failure_error: - Errors that pertain to conversion failures in the partial - failure mode. Returned when all errors occur inside the - conversions. If any errors occur outside the conversions (e.g. - auth errors), we return an RPC level error. - results: - Returned for successfully processed conversions. Proto will be - empty for rows that received an error. Results are not - returned when validate\_only is true. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.UploadClickConversionsResponse) - )) -_sym_db.RegisterMessage(UploadClickConversionsResponse) - -UploadCallConversionsRequest = _reflection.GeneratedProtocolMessageType('UploadCallConversionsRequest', (_message.Message,), dict( - DESCRIPTOR = _UPLOADCALLCONVERSIONSREQUEST, - __module__ = 'google.ads.googleads_v1.proto.services.conversion_upload_service_pb2' - , - __doc__ = """Request message for - [ConversionUploadService.UploadCallConversions][google.ads.googleads.v1.services.ConversionUploadService.UploadCallConversions]. - - - Attributes: - customer_id: - The ID of the customer performing the upload. - conversions: - The conversions that are being uploaded. - partial_failure: - If true, successful operations will be carried out and invalid - operations will return errors. If false, all operations will - be carried out in one transaction if and only if they are all - valid. This should always be set to true. - validate_only: - If true, the request is validated but not executed. Only - errors are returned, not results. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.UploadCallConversionsRequest) - )) -_sym_db.RegisterMessage(UploadCallConversionsRequest) - -UploadCallConversionsResponse = _reflection.GeneratedProtocolMessageType('UploadCallConversionsResponse', (_message.Message,), dict( - DESCRIPTOR = _UPLOADCALLCONVERSIONSRESPONSE, - __module__ = 'google.ads.googleads_v1.proto.services.conversion_upload_service_pb2' - , - __doc__ = """Response message for - [ConversionUploadService.UploadCallConversions][google.ads.googleads.v1.services.ConversionUploadService.UploadCallConversions]. - - - Attributes: - partial_failure_error: - Errors that pertain to conversion failures in the partial - failure mode. Returned when all errors occur inside the - conversions. If any errors occur outside the conversions (e.g. - auth errors), we return an RPC level error. - results: - Returned for successfully processed conversions. Proto will be - empty for rows that received an error. Results are not - returned when validate\_only is true. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.UploadCallConversionsResponse) - )) -_sym_db.RegisterMessage(UploadCallConversionsResponse) - -ClickConversion = _reflection.GeneratedProtocolMessageType('ClickConversion', (_message.Message,), dict( - DESCRIPTOR = _CLICKCONVERSION, - __module__ = 'google.ads.googleads_v1.proto.services.conversion_upload_service_pb2' - , - __doc__ = """A click conversion. - - - Attributes: - gclid: - The Google click ID (gclid) associated with this conversion. - conversion_action: - Resource name of the conversion action associated with this - conversion. Note: Although this resource name consists of a - customer id and a conversion action id, validation will ignore - the customer id and use the conversion action id as the sole - identifier of the conversion action. - conversion_date_time: - The date time at which the conversion occurred. Must be after - the click time. The timezone must be specified. The format is - "yyyy-mm-dd hh:mm:ss+\|-hh:mm", e.g. “2019-01-01 - 12:32:45-08:00”. - conversion_value: - The value of the conversion for the advertiser. - currency_code: - Currency associated with the conversion value. This is the ISO - 4217 3-character currency code. For example: USD, EUR. - order_id: - The order ID associated with the conversion. An order id can - only be used for one conversion per conversion action. - external_attribution_data: - Additional data about externally attributed conversions. This - field is required for conversions with an externally - attributed conversion action, but should not be set otherwise. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.ClickConversion) - )) -_sym_db.RegisterMessage(ClickConversion) - -CallConversion = _reflection.GeneratedProtocolMessageType('CallConversion', (_message.Message,), dict( - DESCRIPTOR = _CALLCONVERSION, - __module__ = 'google.ads.googleads_v1.proto.services.conversion_upload_service_pb2' - , - __doc__ = """A call conversion. - - - Attributes: - caller_id: - The caller id from which this call was placed. Caller id is - expected to be in E.164 format with preceding '+' sign. e.g. - "+16502531234". - call_start_date_time: - The date time at which the call occurred. The timezone must be - specified. The format is "yyyy-mm-dd hh:mm:ss+\|-hh:mm", e.g. - "2019-01-01 12:32:45-08:00". - conversion_action: - Resource name of the conversion action associated with this - conversion. Note: Although this resource name consists of a - customer id and a conversion action id, validation will ignore - the customer id and use the conversion action id as the sole - identifier of the conversion action. - conversion_date_time: - The date time at which the conversion occurred. Must be after - the call time. The timezone must be specified. The format is - "yyyy-mm-dd hh:mm:ss+\|-hh:mm", e.g. "2019-01-01 - 12:32:45-08:00". - conversion_value: - The value of the conversion for the advertiser. - currency_code: - Currency associated with the conversion value. This is the ISO - 4217 3-character currency code. For example: USD, EUR. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.CallConversion) - )) -_sym_db.RegisterMessage(CallConversion) - -ExternalAttributionData = _reflection.GeneratedProtocolMessageType('ExternalAttributionData', (_message.Message,), dict( - DESCRIPTOR = _EXTERNALATTRIBUTIONDATA, - __module__ = 'google.ads.googleads_v1.proto.services.conversion_upload_service_pb2' - , - __doc__ = """Contains additional information about externally attributed conversions. - - - Attributes: - external_attribution_credit: - Represents the fraction of the conversion that is attributed - to the Google Ads click. - external_attribution_model: - Specifies the attribution model name. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.ExternalAttributionData) - )) -_sym_db.RegisterMessage(ExternalAttributionData) - -ClickConversionResult = _reflection.GeneratedProtocolMessageType('ClickConversionResult', (_message.Message,), dict( - DESCRIPTOR = _CLICKCONVERSIONRESULT, - __module__ = 'google.ads.googleads_v1.proto.services.conversion_upload_service_pb2' - , - __doc__ = """Identifying information for a successfully processed ClickConversion. - - - Attributes: - gclid: - The Google Click ID (gclid) associated with this conversion. - conversion_action: - Resource name of the conversion action associated with this - conversion. - conversion_date_time: - The date time at which the conversion occurred. The format is - "yyyy-mm-dd hh:mm:ss+\|-hh:mm", e.g. “2019-01-01 - 12:32:45-08:00”. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.ClickConversionResult) - )) -_sym_db.RegisterMessage(ClickConversionResult) - -CallConversionResult = _reflection.GeneratedProtocolMessageType('CallConversionResult', (_message.Message,), dict( - DESCRIPTOR = _CALLCONVERSIONRESULT, - __module__ = 'google.ads.googleads_v1.proto.services.conversion_upload_service_pb2' - , - __doc__ = """Identifying information for a successfully processed - CallConversionUpload. - - - Attributes: - caller_id: - The caller id from which this call was placed. Caller id is - expected to be in E.164 format with preceding '+' sign. - call_start_date_time: - The date time at which the call occurred. The format is "yyyy- - mm-dd hh:mm:ss+\|-hh:mm", e.g. "2019-01-01 12:32:45-08:00". - conversion_action: - Resource name of the conversion action associated with this - conversion. - conversion_date_time: - The date time at which the conversion occurred. The format is - "yyyy-mm-dd hh:mm:ss+\|-hh:mm", e.g. "2019-01-01 - 12:32:45-08:00". - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.CallConversionResult) - )) -_sym_db.RegisterMessage(CallConversionResult) - - -DESCRIPTOR._options = None - -_CONVERSIONUPLOADSERVICE = _descriptor.ServiceDescriptor( - name='ConversionUploadService', - full_name='google.ads.googleads.v1.services.ConversionUploadService', - file=DESCRIPTOR, - index=0, - serialized_options=None, - serialized_start=2249, - serialized_end=2716, - methods=[ - _descriptor.MethodDescriptor( - name='UploadClickConversions', - full_name='google.ads.googleads.v1.services.ConversionUploadService.UploadClickConversions', - index=0, - containing_service=None, - input_type=_UPLOADCLICKCONVERSIONSREQUEST, - output_type=_UPLOADCLICKCONVERSIONSRESPONSE, - serialized_options=_b('\202\323\344\223\0029\"4/v1/customers/{customer_id=*}:uploadClickConversions:\001*'), - ), - _descriptor.MethodDescriptor( - name='UploadCallConversions', - full_name='google.ads.googleads.v1.services.ConversionUploadService.UploadCallConversions', - index=1, - containing_service=None, - input_type=_UPLOADCALLCONVERSIONSREQUEST, - output_type=_UPLOADCALLCONVERSIONSRESPONSE, - serialized_options=_b('\202\323\344\223\0028\"3/v1/customers/{customer_id=*}:uploadCallConversions:\001*'), - ), -]) -_sym_db.RegisterServiceDescriptor(_CONVERSIONUPLOADSERVICE) - -DESCRIPTOR.services_by_name['ConversionUploadService'] = _CONVERSIONUPLOADSERVICE - -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/services/conversion_upload_service_pb2_grpc.py b/google/ads/google_ads/v1/proto/services/conversion_upload_service_pb2_grpc.py deleted file mode 100644 index f3d35e5bf..000000000 --- a/google/ads/google_ads/v1/proto/services/conversion_upload_service_pb2_grpc.py +++ /dev/null @@ -1,63 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -import grpc - -from google.ads.google_ads.v1.proto.services import conversion_upload_service_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_conversion__upload__service__pb2 - - -class ConversionUploadServiceStub(object): - """Service to upload conversions. - """ - - def __init__(self, channel): - """Constructor. - - Args: - channel: A grpc.Channel. - """ - self.UploadClickConversions = channel.unary_unary( - '/google.ads.googleads.v1.services.ConversionUploadService/UploadClickConversions', - request_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_conversion__upload__service__pb2.UploadClickConversionsRequest.SerializeToString, - response_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_conversion__upload__service__pb2.UploadClickConversionsResponse.FromString, - ) - self.UploadCallConversions = channel.unary_unary( - '/google.ads.googleads.v1.services.ConversionUploadService/UploadCallConversions', - request_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_conversion__upload__service__pb2.UploadCallConversionsRequest.SerializeToString, - response_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_conversion__upload__service__pb2.UploadCallConversionsResponse.FromString, - ) - - -class ConversionUploadServiceServicer(object): - """Service to upload conversions. - """ - - def UploadClickConversions(self, request, context): - """Processes the given click conversions. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def UploadCallConversions(self, request, context): - """Processes the given call conversions. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - -def add_ConversionUploadServiceServicer_to_server(servicer, server): - rpc_method_handlers = { - 'UploadClickConversions': grpc.unary_unary_rpc_method_handler( - servicer.UploadClickConversions, - request_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_conversion__upload__service__pb2.UploadClickConversionsRequest.FromString, - response_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_conversion__upload__service__pb2.UploadClickConversionsResponse.SerializeToString, - ), - 'UploadCallConversions': grpc.unary_unary_rpc_method_handler( - servicer.UploadCallConversions, - request_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_conversion__upload__service__pb2.UploadCallConversionsRequest.FromString, - response_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_conversion__upload__service__pb2.UploadCallConversionsResponse.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'google.ads.googleads.v1.services.ConversionUploadService', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) diff --git a/google/ads/google_ads/v1/proto/services/custom_interest_service_pb2.py b/google/ads/google_ads/v1/proto/services/custom_interest_service_pb2.py deleted file mode 100644 index c146f2118..000000000 --- a/google/ads/google_ads/v1/proto/services/custom_interest_service_pb2.py +++ /dev/null @@ -1,365 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/services/custom_interest_service.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.ads.google_ads.v1.proto.resources import custom_interest_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_custom__interest__pb2 -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 -from google.protobuf import field_mask_pb2 as google_dot_protobuf_dot_field__mask__pb2 -from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/services/custom_interest_service.proto', - package='google.ads.googleads.v1.services', - syntax='proto3', - serialized_options=_b('\n$com.google.ads.googleads.v1.servicesB\032CustomInterestServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v1/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V1.Services\312\002 Google\\Ads\\GoogleAds\\V1\\Services\352\002$Google::Ads::GoogleAds::V1::Services'), - serialized_pb=_b('\nDgoogle/ads/googleads_v1/proto/services/custom_interest_service.proto\x12 google.ads.googleads.v1.services\x1a=google/ads/googleads_v1/proto/resources/custom_interest.proto\x1a\x1cgoogle/api/annotations.proto\x1a google/protobuf/field_mask.proto\x1a\x1egoogle/protobuf/wrappers.proto\"1\n\x18GetCustomInterestRequest\x12\x15\n\rresource_name\x18\x01 \x01(\t\"\x99\x01\n\x1cMutateCustomInterestsRequest\x12\x13\n\x0b\x63ustomer_id\x18\x01 \x01(\t\x12M\n\noperations\x18\x02 \x03(\x0b\x32\x39.google.ads.googleads.v1.services.CustomInterestOperation\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\"\xe1\x01\n\x17\x43ustomInterestOperation\x12/\n\x0bupdate_mask\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12\x43\n\x06\x63reate\x18\x01 \x01(\x0b\x32\x31.google.ads.googleads.v1.resources.CustomInterestH\x00\x12\x43\n\x06update\x18\x02 \x01(\x0b\x32\x31.google.ads.googleads.v1.resources.CustomInterestH\x00\x42\x0b\n\toperation\"n\n\x1dMutateCustomInterestsResponse\x12M\n\x07results\x18\x02 \x03(\x0b\x32<.google.ads.googleads.v1.services.MutateCustomInterestResult\"3\n\x1aMutateCustomInterestResult\x12\x15\n\rresource_name\x18\x01 \x01(\t2\xb3\x03\n\x15\x43ustomInterestService\x12\xbd\x01\n\x11GetCustomInterest\x12:.google.ads.googleads.v1.services.GetCustomInterestRequest\x1a\x31.google.ads.googleads.v1.resources.CustomInterest\"9\x82\xd3\xe4\x93\x02\x33\x12\x31/v1/{resource_name=customers/*/customInterests/*}\x12\xd9\x01\n\x15MutateCustomInterests\x12>.google.ads.googleads.v1.services.MutateCustomInterestsRequest\x1a?.google.ads.googleads.v1.services.MutateCustomInterestsResponse\"?\x82\xd3\xe4\x93\x02\x39\"4/v1/customers/{customer_id=*}/customInterests:mutate:\x01*B\x81\x02\n$com.google.ads.googleads.v1.servicesB\x1a\x43ustomInterestServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v1/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V1.Services\xca\x02 Google\\Ads\\GoogleAds\\V1\\Services\xea\x02$Google::Ads::GoogleAds::V1::Servicesb\x06proto3') - , - dependencies=[google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_custom__interest__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_protobuf_dot_field__mask__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,]) - - - - -_GETCUSTOMINTERESTREQUEST = _descriptor.Descriptor( - name='GetCustomInterestRequest', - full_name='google.ads.googleads.v1.services.GetCustomInterestRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.services.GetCustomInterestRequest.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=265, - serialized_end=314, -) - - -_MUTATECUSTOMINTERESTSREQUEST = _descriptor.Descriptor( - name='MutateCustomInterestsRequest', - full_name='google.ads.googleads.v1.services.MutateCustomInterestsRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='customer_id', full_name='google.ads.googleads.v1.services.MutateCustomInterestsRequest.customer_id', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='operations', full_name='google.ads.googleads.v1.services.MutateCustomInterestsRequest.operations', index=1, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='validate_only', full_name='google.ads.googleads.v1.services.MutateCustomInterestsRequest.validate_only', index=2, - number=4, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=317, - serialized_end=470, -) - - -_CUSTOMINTERESTOPERATION = _descriptor.Descriptor( - name='CustomInterestOperation', - full_name='google.ads.googleads.v1.services.CustomInterestOperation', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='update_mask', full_name='google.ads.googleads.v1.services.CustomInterestOperation.update_mask', index=0, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='create', full_name='google.ads.googleads.v1.services.CustomInterestOperation.create', index=1, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='update', full_name='google.ads.googleads.v1.services.CustomInterestOperation.update', index=2, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='operation', full_name='google.ads.googleads.v1.services.CustomInterestOperation.operation', - index=0, containing_type=None, fields=[]), - ], - serialized_start=473, - serialized_end=698, -) - - -_MUTATECUSTOMINTERESTSRESPONSE = _descriptor.Descriptor( - name='MutateCustomInterestsResponse', - full_name='google.ads.googleads.v1.services.MutateCustomInterestsResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='results', full_name='google.ads.googleads.v1.services.MutateCustomInterestsResponse.results', index=0, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=700, - serialized_end=810, -) - - -_MUTATECUSTOMINTERESTRESULT = _descriptor.Descriptor( - name='MutateCustomInterestResult', - full_name='google.ads.googleads.v1.services.MutateCustomInterestResult', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.services.MutateCustomInterestResult.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=812, - serialized_end=863, -) - -_MUTATECUSTOMINTERESTSREQUEST.fields_by_name['operations'].message_type = _CUSTOMINTERESTOPERATION -_CUSTOMINTERESTOPERATION.fields_by_name['update_mask'].message_type = google_dot_protobuf_dot_field__mask__pb2._FIELDMASK -_CUSTOMINTERESTOPERATION.fields_by_name['create'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_custom__interest__pb2._CUSTOMINTEREST -_CUSTOMINTERESTOPERATION.fields_by_name['update'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_custom__interest__pb2._CUSTOMINTEREST -_CUSTOMINTERESTOPERATION.oneofs_by_name['operation'].fields.append( - _CUSTOMINTERESTOPERATION.fields_by_name['create']) -_CUSTOMINTERESTOPERATION.fields_by_name['create'].containing_oneof = _CUSTOMINTERESTOPERATION.oneofs_by_name['operation'] -_CUSTOMINTERESTOPERATION.oneofs_by_name['operation'].fields.append( - _CUSTOMINTERESTOPERATION.fields_by_name['update']) -_CUSTOMINTERESTOPERATION.fields_by_name['update'].containing_oneof = _CUSTOMINTERESTOPERATION.oneofs_by_name['operation'] -_MUTATECUSTOMINTERESTSRESPONSE.fields_by_name['results'].message_type = _MUTATECUSTOMINTERESTRESULT -DESCRIPTOR.message_types_by_name['GetCustomInterestRequest'] = _GETCUSTOMINTERESTREQUEST -DESCRIPTOR.message_types_by_name['MutateCustomInterestsRequest'] = _MUTATECUSTOMINTERESTSREQUEST -DESCRIPTOR.message_types_by_name['CustomInterestOperation'] = _CUSTOMINTERESTOPERATION -DESCRIPTOR.message_types_by_name['MutateCustomInterestsResponse'] = _MUTATECUSTOMINTERESTSRESPONSE -DESCRIPTOR.message_types_by_name['MutateCustomInterestResult'] = _MUTATECUSTOMINTERESTRESULT -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -GetCustomInterestRequest = _reflection.GeneratedProtocolMessageType('GetCustomInterestRequest', (_message.Message,), dict( - DESCRIPTOR = _GETCUSTOMINTERESTREQUEST, - __module__ = 'google.ads.googleads_v1.proto.services.custom_interest_service_pb2' - , - __doc__ = """Request message for - [CustomInterestService.GetCustomInterest][google.ads.googleads.v1.services.CustomInterestService.GetCustomInterest]. - - - Attributes: - resource_name: - The resource name of the custom interest to fetch. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.GetCustomInterestRequest) - )) -_sym_db.RegisterMessage(GetCustomInterestRequest) - -MutateCustomInterestsRequest = _reflection.GeneratedProtocolMessageType('MutateCustomInterestsRequest', (_message.Message,), dict( - DESCRIPTOR = _MUTATECUSTOMINTERESTSREQUEST, - __module__ = 'google.ads.googleads_v1.proto.services.custom_interest_service_pb2' - , - __doc__ = """Request message for - [CustomInterestService.MutateCustomInterests][google.ads.googleads.v1.services.CustomInterestService.MutateCustomInterests]. - - - Attributes: - customer_id: - The ID of the customer whose custom interests are being - modified. - operations: - The list of operations to perform on individual custom - interests. - validate_only: - If true, the request is validated but not executed. Only - errors are returned, not results. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.MutateCustomInterestsRequest) - )) -_sym_db.RegisterMessage(MutateCustomInterestsRequest) - -CustomInterestOperation = _reflection.GeneratedProtocolMessageType('CustomInterestOperation', (_message.Message,), dict( - DESCRIPTOR = _CUSTOMINTERESTOPERATION, - __module__ = 'google.ads.googleads_v1.proto.services.custom_interest_service_pb2' - , - __doc__ = """A single operation (create, update) on a custom interest. - - - Attributes: - update_mask: - FieldMask that determines which resource fields are modified - in an update. - operation: - The mutate operation. - create: - Create operation: No resource name is expected for the new - custom interest. - update: - Update operation: The custom interest is expected to have a - valid resource name. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.CustomInterestOperation) - )) -_sym_db.RegisterMessage(CustomInterestOperation) - -MutateCustomInterestsResponse = _reflection.GeneratedProtocolMessageType('MutateCustomInterestsResponse', (_message.Message,), dict( - DESCRIPTOR = _MUTATECUSTOMINTERESTSRESPONSE, - __module__ = 'google.ads.googleads_v1.proto.services.custom_interest_service_pb2' - , - __doc__ = """Response message for custom interest mutate. - - - Attributes: - results: - All results for the mutate. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.MutateCustomInterestsResponse) - )) -_sym_db.RegisterMessage(MutateCustomInterestsResponse) - -MutateCustomInterestResult = _reflection.GeneratedProtocolMessageType('MutateCustomInterestResult', (_message.Message,), dict( - DESCRIPTOR = _MUTATECUSTOMINTERESTRESULT, - __module__ = 'google.ads.googleads_v1.proto.services.custom_interest_service_pb2' - , - __doc__ = """The result for the custom interest mutate. - - - Attributes: - resource_name: - Returned for successful operations. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.MutateCustomInterestResult) - )) -_sym_db.RegisterMessage(MutateCustomInterestResult) - - -DESCRIPTOR._options = None - -_CUSTOMINTERESTSERVICE = _descriptor.ServiceDescriptor( - name='CustomInterestService', - full_name='google.ads.googleads.v1.services.CustomInterestService', - file=DESCRIPTOR, - index=0, - serialized_options=None, - serialized_start=866, - serialized_end=1301, - methods=[ - _descriptor.MethodDescriptor( - name='GetCustomInterest', - full_name='google.ads.googleads.v1.services.CustomInterestService.GetCustomInterest', - index=0, - containing_service=None, - input_type=_GETCUSTOMINTERESTREQUEST, - output_type=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_custom__interest__pb2._CUSTOMINTEREST, - serialized_options=_b('\202\323\344\223\0023\0221/v1/{resource_name=customers/*/customInterests/*}'), - ), - _descriptor.MethodDescriptor( - name='MutateCustomInterests', - full_name='google.ads.googleads.v1.services.CustomInterestService.MutateCustomInterests', - index=1, - containing_service=None, - input_type=_MUTATECUSTOMINTERESTSREQUEST, - output_type=_MUTATECUSTOMINTERESTSRESPONSE, - serialized_options=_b('\202\323\344\223\0029\"4/v1/customers/{customer_id=*}/customInterests:mutate:\001*'), - ), -]) -_sym_db.RegisterServiceDescriptor(_CUSTOMINTERESTSERVICE) - -DESCRIPTOR.services_by_name['CustomInterestService'] = _CUSTOMINTERESTSERVICE - -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/services/custom_interest_service_pb2_grpc.py b/google/ads/google_ads/v1/proto/services/custom_interest_service_pb2_grpc.py deleted file mode 100644 index c48f37657..000000000 --- a/google/ads/google_ads/v1/proto/services/custom_interest_service_pb2_grpc.py +++ /dev/null @@ -1,68 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -import grpc - -from google.ads.google_ads.v1.proto.resources import custom_interest_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_custom__interest__pb2 -from google.ads.google_ads.v1.proto.services import custom_interest_service_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_custom__interest__service__pb2 - - -class CustomInterestServiceStub(object): - """Proto file describing the Custom Interest service. - - Service to manage custom interests. - """ - - def __init__(self, channel): - """Constructor. - - Args: - channel: A grpc.Channel. - """ - self.GetCustomInterest = channel.unary_unary( - '/google.ads.googleads.v1.services.CustomInterestService/GetCustomInterest', - request_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_custom__interest__service__pb2.GetCustomInterestRequest.SerializeToString, - response_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_custom__interest__pb2.CustomInterest.FromString, - ) - self.MutateCustomInterests = channel.unary_unary( - '/google.ads.googleads.v1.services.CustomInterestService/MutateCustomInterests', - request_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_custom__interest__service__pb2.MutateCustomInterestsRequest.SerializeToString, - response_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_custom__interest__service__pb2.MutateCustomInterestsResponse.FromString, - ) - - -class CustomInterestServiceServicer(object): - """Proto file describing the Custom Interest service. - - Service to manage custom interests. - """ - - def GetCustomInterest(self, request, context): - """Returns the requested custom interest in full detail. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def MutateCustomInterests(self, request, context): - """Creates or updates custom interests. Operation statuses are returned. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - -def add_CustomInterestServiceServicer_to_server(servicer, server): - rpc_method_handlers = { - 'GetCustomInterest': grpc.unary_unary_rpc_method_handler( - servicer.GetCustomInterest, - request_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_custom__interest__service__pb2.GetCustomInterestRequest.FromString, - response_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_custom__interest__pb2.CustomInterest.SerializeToString, - ), - 'MutateCustomInterests': grpc.unary_unary_rpc_method_handler( - servicer.MutateCustomInterests, - request_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_custom__interest__service__pb2.MutateCustomInterestsRequest.FromString, - response_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_custom__interest__service__pb2.MutateCustomInterestsResponse.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'google.ads.googleads.v1.services.CustomInterestService', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) diff --git a/google/ads/google_ads/v1/proto/services/customer_client_link_service_pb2.py b/google/ads/google_ads/v1/proto/services/customer_client_link_service_pb2.py deleted file mode 100644 index d5666b834..000000000 --- a/google/ads/google_ads/v1/proto/services/customer_client_link_service_pb2.py +++ /dev/null @@ -1,354 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/services/customer_client_link_service.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.ads.google_ads.v1.proto.resources import customer_client_link_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_customer__client__link__pb2 -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 -from google.protobuf import field_mask_pb2 as google_dot_protobuf_dot_field__mask__pb2 -from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/services/customer_client_link_service.proto', - package='google.ads.googleads.v1.services', - syntax='proto3', - serialized_options=_b('\n$com.google.ads.googleads.v1.servicesB\036CustomerClientLinkServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v1/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V1.Services\312\002 Google\\Ads\\GoogleAds\\V1\\Services\352\002$Google::Ads::GoogleAds::V1::Services'), - serialized_pb=_b('\nIgoogle/ads/googleads_v1/proto/services/customer_client_link_service.proto\x12 google.ads.googleads.v1.services\x1a\x42google/ads/googleads_v1/proto/resources/customer_client_link.proto\x1a\x1cgoogle/api/annotations.proto\x1a google/protobuf/field_mask.proto\x1a\x1egoogle/protobuf/wrappers.proto\"5\n\x1cGetCustomerClientLinkRequest\x12\x15\n\rresource_name\x18\x01 \x01(\t\"\x88\x01\n\x1fMutateCustomerClientLinkRequest\x12\x13\n\x0b\x63ustomer_id\x18\x01 \x01(\t\x12P\n\toperation\x18\x02 \x01(\x0b\x32=.google.ads.googleads.v1.services.CustomerClientLinkOperation\"\xed\x01\n\x1b\x43ustomerClientLinkOperation\x12/\n\x0bupdate_mask\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12G\n\x06\x63reate\x18\x01 \x01(\x0b\x32\x35.google.ads.googleads.v1.resources.CustomerClientLinkH\x00\x12G\n\x06update\x18\x02 \x01(\x0b\x32\x35.google.ads.googleads.v1.resources.CustomerClientLinkH\x00\x42\x0b\n\toperation\"t\n MutateCustomerClientLinkResponse\x12P\n\x06result\x18\x01 \x01(\x0b\x32@.google.ads.googleads.v1.services.MutateCustomerClientLinkResult\"7\n\x1eMutateCustomerClientLinkResult\x12\x15\n\rresource_name\x18\x01 \x01(\t2\xd4\x03\n\x19\x43ustomerClientLinkService\x12\xcd\x01\n\x15GetCustomerClientLink\x12>.google.ads.googleads.v1.services.GetCustomerClientLinkRequest\x1a\x35.google.ads.googleads.v1.resources.CustomerClientLink\"=\x82\xd3\xe4\x93\x02\x37\x12\x35/v1/{resource_name=customers/*/customerClientLinks/*}\x12\xe6\x01\n\x18MutateCustomerClientLink\x12\x41.google.ads.googleads.v1.services.MutateCustomerClientLinkRequest\x1a\x42.google.ads.googleads.v1.services.MutateCustomerClientLinkResponse\"C\x82\xd3\xe4\x93\x02=\"8/v1/customers/{customer_id=*}/customerClientLinks:mutate:\x01*B\x85\x02\n$com.google.ads.googleads.v1.servicesB\x1e\x43ustomerClientLinkServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v1/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V1.Services\xca\x02 Google\\Ads\\GoogleAds\\V1\\Services\xea\x02$Google::Ads::GoogleAds::V1::Servicesb\x06proto3') - , - dependencies=[google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_customer__client__link__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_protobuf_dot_field__mask__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,]) - - - - -_GETCUSTOMERCLIENTLINKREQUEST = _descriptor.Descriptor( - name='GetCustomerClientLinkRequest', - full_name='google.ads.googleads.v1.services.GetCustomerClientLinkRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.services.GetCustomerClientLinkRequest.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=275, - serialized_end=328, -) - - -_MUTATECUSTOMERCLIENTLINKREQUEST = _descriptor.Descriptor( - name='MutateCustomerClientLinkRequest', - full_name='google.ads.googleads.v1.services.MutateCustomerClientLinkRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='customer_id', full_name='google.ads.googleads.v1.services.MutateCustomerClientLinkRequest.customer_id', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='operation', full_name='google.ads.googleads.v1.services.MutateCustomerClientLinkRequest.operation', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=331, - serialized_end=467, -) - - -_CUSTOMERCLIENTLINKOPERATION = _descriptor.Descriptor( - name='CustomerClientLinkOperation', - full_name='google.ads.googleads.v1.services.CustomerClientLinkOperation', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='update_mask', full_name='google.ads.googleads.v1.services.CustomerClientLinkOperation.update_mask', index=0, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='create', full_name='google.ads.googleads.v1.services.CustomerClientLinkOperation.create', index=1, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='update', full_name='google.ads.googleads.v1.services.CustomerClientLinkOperation.update', index=2, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='operation', full_name='google.ads.googleads.v1.services.CustomerClientLinkOperation.operation', - index=0, containing_type=None, fields=[]), - ], - serialized_start=470, - serialized_end=707, -) - - -_MUTATECUSTOMERCLIENTLINKRESPONSE = _descriptor.Descriptor( - name='MutateCustomerClientLinkResponse', - full_name='google.ads.googleads.v1.services.MutateCustomerClientLinkResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='result', full_name='google.ads.googleads.v1.services.MutateCustomerClientLinkResponse.result', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=709, - serialized_end=825, -) - - -_MUTATECUSTOMERCLIENTLINKRESULT = _descriptor.Descriptor( - name='MutateCustomerClientLinkResult', - full_name='google.ads.googleads.v1.services.MutateCustomerClientLinkResult', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.services.MutateCustomerClientLinkResult.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=827, - serialized_end=882, -) - -_MUTATECUSTOMERCLIENTLINKREQUEST.fields_by_name['operation'].message_type = _CUSTOMERCLIENTLINKOPERATION -_CUSTOMERCLIENTLINKOPERATION.fields_by_name['update_mask'].message_type = google_dot_protobuf_dot_field__mask__pb2._FIELDMASK -_CUSTOMERCLIENTLINKOPERATION.fields_by_name['create'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_customer__client__link__pb2._CUSTOMERCLIENTLINK -_CUSTOMERCLIENTLINKOPERATION.fields_by_name['update'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_customer__client__link__pb2._CUSTOMERCLIENTLINK -_CUSTOMERCLIENTLINKOPERATION.oneofs_by_name['operation'].fields.append( - _CUSTOMERCLIENTLINKOPERATION.fields_by_name['create']) -_CUSTOMERCLIENTLINKOPERATION.fields_by_name['create'].containing_oneof = _CUSTOMERCLIENTLINKOPERATION.oneofs_by_name['operation'] -_CUSTOMERCLIENTLINKOPERATION.oneofs_by_name['operation'].fields.append( - _CUSTOMERCLIENTLINKOPERATION.fields_by_name['update']) -_CUSTOMERCLIENTLINKOPERATION.fields_by_name['update'].containing_oneof = _CUSTOMERCLIENTLINKOPERATION.oneofs_by_name['operation'] -_MUTATECUSTOMERCLIENTLINKRESPONSE.fields_by_name['result'].message_type = _MUTATECUSTOMERCLIENTLINKRESULT -DESCRIPTOR.message_types_by_name['GetCustomerClientLinkRequest'] = _GETCUSTOMERCLIENTLINKREQUEST -DESCRIPTOR.message_types_by_name['MutateCustomerClientLinkRequest'] = _MUTATECUSTOMERCLIENTLINKREQUEST -DESCRIPTOR.message_types_by_name['CustomerClientLinkOperation'] = _CUSTOMERCLIENTLINKOPERATION -DESCRIPTOR.message_types_by_name['MutateCustomerClientLinkResponse'] = _MUTATECUSTOMERCLIENTLINKRESPONSE -DESCRIPTOR.message_types_by_name['MutateCustomerClientLinkResult'] = _MUTATECUSTOMERCLIENTLINKRESULT -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -GetCustomerClientLinkRequest = _reflection.GeneratedProtocolMessageType('GetCustomerClientLinkRequest', (_message.Message,), dict( - DESCRIPTOR = _GETCUSTOMERCLIENTLINKREQUEST, - __module__ = 'google.ads.googleads_v1.proto.services.customer_client_link_service_pb2' - , - __doc__ = """Request message for - [CustomerClientLinkService.GetCustomerClientLink][google.ads.googleads.v1.services.CustomerClientLinkService.GetCustomerClientLink]. - - - Attributes: - resource_name: - The resource name of the customer client link to fetch. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.GetCustomerClientLinkRequest) - )) -_sym_db.RegisterMessage(GetCustomerClientLinkRequest) - -MutateCustomerClientLinkRequest = _reflection.GeneratedProtocolMessageType('MutateCustomerClientLinkRequest', (_message.Message,), dict( - DESCRIPTOR = _MUTATECUSTOMERCLIENTLINKREQUEST, - __module__ = 'google.ads.googleads_v1.proto.services.customer_client_link_service_pb2' - , - __doc__ = """Request message for - [CustomerClientLinkService.MutateCustomerClientLink][google.ads.googleads.v1.services.CustomerClientLinkService.MutateCustomerClientLink]. - - - Attributes: - customer_id: - The ID of the customer whose customer link are being modified. - operation: - The operation to perform on the individual CustomerClientLink. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.MutateCustomerClientLinkRequest) - )) -_sym_db.RegisterMessage(MutateCustomerClientLinkRequest) - -CustomerClientLinkOperation = _reflection.GeneratedProtocolMessageType('CustomerClientLinkOperation', (_message.Message,), dict( - DESCRIPTOR = _CUSTOMERCLIENTLINKOPERATION, - __module__ = 'google.ads.googleads_v1.proto.services.customer_client_link_service_pb2' - , - __doc__ = """A single operation (create, update) on a CustomerClientLink. - - - Attributes: - update_mask: - FieldMask that determines which resource fields are modified - in an update. - operation: - The mutate operation. - create: - Create operation: No resource name is expected for the new - link. - update: - Update operation: The link is expected to have a valid - resource name. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.CustomerClientLinkOperation) - )) -_sym_db.RegisterMessage(CustomerClientLinkOperation) - -MutateCustomerClientLinkResponse = _reflection.GeneratedProtocolMessageType('MutateCustomerClientLinkResponse', (_message.Message,), dict( - DESCRIPTOR = _MUTATECUSTOMERCLIENTLINKRESPONSE, - __module__ = 'google.ads.googleads_v1.proto.services.customer_client_link_service_pb2' - , - __doc__ = """Response message for a CustomerClientLink mutate. - - - Attributes: - result: - A result that identifies the resource affected by the mutate - request. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.MutateCustomerClientLinkResponse) - )) -_sym_db.RegisterMessage(MutateCustomerClientLinkResponse) - -MutateCustomerClientLinkResult = _reflection.GeneratedProtocolMessageType('MutateCustomerClientLinkResult', (_message.Message,), dict( - DESCRIPTOR = _MUTATECUSTOMERCLIENTLINKRESULT, - __module__ = 'google.ads.googleads_v1.proto.services.customer_client_link_service_pb2' - , - __doc__ = """The result for a single customer client link mutate. - - - Attributes: - resource_name: - Returned for successful operations. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.MutateCustomerClientLinkResult) - )) -_sym_db.RegisterMessage(MutateCustomerClientLinkResult) - - -DESCRIPTOR._options = None - -_CUSTOMERCLIENTLINKSERVICE = _descriptor.ServiceDescriptor( - name='CustomerClientLinkService', - full_name='google.ads.googleads.v1.services.CustomerClientLinkService', - file=DESCRIPTOR, - index=0, - serialized_options=None, - serialized_start=885, - serialized_end=1353, - methods=[ - _descriptor.MethodDescriptor( - name='GetCustomerClientLink', - full_name='google.ads.googleads.v1.services.CustomerClientLinkService.GetCustomerClientLink', - index=0, - containing_service=None, - input_type=_GETCUSTOMERCLIENTLINKREQUEST, - output_type=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_customer__client__link__pb2._CUSTOMERCLIENTLINK, - serialized_options=_b('\202\323\344\223\0027\0225/v1/{resource_name=customers/*/customerClientLinks/*}'), - ), - _descriptor.MethodDescriptor( - name='MutateCustomerClientLink', - full_name='google.ads.googleads.v1.services.CustomerClientLinkService.MutateCustomerClientLink', - index=1, - containing_service=None, - input_type=_MUTATECUSTOMERCLIENTLINKREQUEST, - output_type=_MUTATECUSTOMERCLIENTLINKRESPONSE, - serialized_options=_b('\202\323\344\223\002=\"8/v1/customers/{customer_id=*}/customerClientLinks:mutate:\001*'), - ), -]) -_sym_db.RegisterServiceDescriptor(_CUSTOMERCLIENTLINKSERVICE) - -DESCRIPTOR.services_by_name['CustomerClientLinkService'] = _CUSTOMERCLIENTLINKSERVICE - -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/services/customer_client_link_service_pb2_grpc.py b/google/ads/google_ads/v1/proto/services/customer_client_link_service_pb2_grpc.py deleted file mode 100644 index 07574595e..000000000 --- a/google/ads/google_ads/v1/proto/services/customer_client_link_service_pb2_grpc.py +++ /dev/null @@ -1,64 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -import grpc - -from google.ads.google_ads.v1.proto.resources import customer_client_link_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_customer__client__link__pb2 -from google.ads.google_ads.v1.proto.services import customer_client_link_service_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_customer__client__link__service__pb2 - - -class CustomerClientLinkServiceStub(object): - """Service to manage customer client links. - """ - - def __init__(self, channel): - """Constructor. - - Args: - channel: A grpc.Channel. - """ - self.GetCustomerClientLink = channel.unary_unary( - '/google.ads.googleads.v1.services.CustomerClientLinkService/GetCustomerClientLink', - request_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_customer__client__link__service__pb2.GetCustomerClientLinkRequest.SerializeToString, - response_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_customer__client__link__pb2.CustomerClientLink.FromString, - ) - self.MutateCustomerClientLink = channel.unary_unary( - '/google.ads.googleads.v1.services.CustomerClientLinkService/MutateCustomerClientLink', - request_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_customer__client__link__service__pb2.MutateCustomerClientLinkRequest.SerializeToString, - response_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_customer__client__link__service__pb2.MutateCustomerClientLinkResponse.FromString, - ) - - -class CustomerClientLinkServiceServicer(object): - """Service to manage customer client links. - """ - - def GetCustomerClientLink(self, request, context): - """Returns the requested CustomerClientLink in full detail. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def MutateCustomerClientLink(self, request, context): - """Creates or updates a customer client link. Operation statuses are returned. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - -def add_CustomerClientLinkServiceServicer_to_server(servicer, server): - rpc_method_handlers = { - 'GetCustomerClientLink': grpc.unary_unary_rpc_method_handler( - servicer.GetCustomerClientLink, - request_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_customer__client__link__service__pb2.GetCustomerClientLinkRequest.FromString, - response_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_customer__client__link__pb2.CustomerClientLink.SerializeToString, - ), - 'MutateCustomerClientLink': grpc.unary_unary_rpc_method_handler( - servicer.MutateCustomerClientLink, - request_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_customer__client__link__service__pb2.MutateCustomerClientLinkRequest.FromString, - response_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_customer__client__link__service__pb2.MutateCustomerClientLinkResponse.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'google.ads.googleads.v1.services.CustomerClientLinkService', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) diff --git a/google/ads/google_ads/v1/proto/services/customer_client_service_pb2.py b/google/ads/google_ads/v1/proto/services/customer_client_service_pb2.py deleted file mode 100644 index bbacf40d6..000000000 --- a/google/ads/google_ads/v1/proto/services/customer_client_service_pb2.py +++ /dev/null @@ -1,107 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/services/customer_client_service.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.ads.google_ads.v1.proto.resources import customer_client_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_customer__client__pb2 -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/services/customer_client_service.proto', - package='google.ads.googleads.v1.services', - syntax='proto3', - serialized_options=_b('\n$com.google.ads.googleads.v1.servicesB\032CustomerClientServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v1/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V1.Services\312\002 Google\\Ads\\GoogleAds\\V1\\Services\352\002$Google::Ads::GoogleAds::V1::Services'), - serialized_pb=_b('\nDgoogle/ads/googleads_v1/proto/services/customer_client_service.proto\x12 google.ads.googleads.v1.services\x1a=google/ads/googleads_v1/proto/resources/customer_client.proto\x1a\x1cgoogle/api/annotations.proto\"1\n\x18GetCustomerClientRequest\x12\x15\n\rresource_name\x18\x01 \x01(\t2\xd7\x01\n\x15\x43ustomerClientService\x12\xbd\x01\n\x11GetCustomerClient\x12:.google.ads.googleads.v1.services.GetCustomerClientRequest\x1a\x31.google.ads.googleads.v1.resources.CustomerClient\"9\x82\xd3\xe4\x93\x02\x33\x12\x31/v1/{resource_name=customers/*/customerClients/*}B\x81\x02\n$com.google.ads.googleads.v1.servicesB\x1a\x43ustomerClientServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v1/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V1.Services\xca\x02 Google\\Ads\\GoogleAds\\V1\\Services\xea\x02$Google::Ads::GoogleAds::V1::Servicesb\x06proto3') - , - dependencies=[google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_customer__client__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - - -_GETCUSTOMERCLIENTREQUEST = _descriptor.Descriptor( - name='GetCustomerClientRequest', - full_name='google.ads.googleads.v1.services.GetCustomerClientRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.services.GetCustomerClientRequest.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=199, - serialized_end=248, -) - -DESCRIPTOR.message_types_by_name['GetCustomerClientRequest'] = _GETCUSTOMERCLIENTREQUEST -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -GetCustomerClientRequest = _reflection.GeneratedProtocolMessageType('GetCustomerClientRequest', (_message.Message,), dict( - DESCRIPTOR = _GETCUSTOMERCLIENTREQUEST, - __module__ = 'google.ads.googleads_v1.proto.services.customer_client_service_pb2' - , - __doc__ = """Request message for - [CustomerClientService.GetCustomerClient][google.ads.googleads.v1.services.CustomerClientService.GetCustomerClient]. - - - Attributes: - resource_name: - The resource name of the client to fetch. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.GetCustomerClientRequest) - )) -_sym_db.RegisterMessage(GetCustomerClientRequest) - - -DESCRIPTOR._options = None - -_CUSTOMERCLIENTSERVICE = _descriptor.ServiceDescriptor( - name='CustomerClientService', - full_name='google.ads.googleads.v1.services.CustomerClientService', - file=DESCRIPTOR, - index=0, - serialized_options=None, - serialized_start=251, - serialized_end=466, - methods=[ - _descriptor.MethodDescriptor( - name='GetCustomerClient', - full_name='google.ads.googleads.v1.services.CustomerClientService.GetCustomerClient', - index=0, - containing_service=None, - input_type=_GETCUSTOMERCLIENTREQUEST, - output_type=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_customer__client__pb2._CUSTOMERCLIENT, - serialized_options=_b('\202\323\344\223\0023\0221/v1/{resource_name=customers/*/customerClients/*}'), - ), -]) -_sym_db.RegisterServiceDescriptor(_CUSTOMERCLIENTSERVICE) - -DESCRIPTOR.services_by_name['CustomerClientService'] = _CUSTOMERCLIENTSERVICE - -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/services/customer_client_service_pb2_grpc.py b/google/ads/google_ads/v1/proto/services/customer_client_service_pb2_grpc.py deleted file mode 100644 index 58e40e6e7..000000000 --- a/google/ads/google_ads/v1/proto/services/customer_client_service_pb2_grpc.py +++ /dev/null @@ -1,51 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -import grpc - -from google.ads.google_ads.v1.proto.resources import customer_client_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_customer__client__pb2 -from google.ads.google_ads.v1.proto.services import customer_client_service_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_customer__client__service__pb2 - - -class CustomerClientServiceStub(object): - """Proto file describing the Customer Client service. - - Service to get clients in a customer's hierarchy. - """ - - def __init__(self, channel): - """Constructor. - - Args: - channel: A grpc.Channel. - """ - self.GetCustomerClient = channel.unary_unary( - '/google.ads.googleads.v1.services.CustomerClientService/GetCustomerClient', - request_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_customer__client__service__pb2.GetCustomerClientRequest.SerializeToString, - response_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_customer__client__pb2.CustomerClient.FromString, - ) - - -class CustomerClientServiceServicer(object): - """Proto file describing the Customer Client service. - - Service to get clients in a customer's hierarchy. - """ - - def GetCustomerClient(self, request, context): - """Returns the requested client in full detail. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - -def add_CustomerClientServiceServicer_to_server(servicer, server): - rpc_method_handlers = { - 'GetCustomerClient': grpc.unary_unary_rpc_method_handler( - servicer.GetCustomerClient, - request_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_customer__client__service__pb2.GetCustomerClientRequest.FromString, - response_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_customer__client__pb2.CustomerClient.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'google.ads.googleads.v1.services.CustomerClientService', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) diff --git a/google/ads/google_ads/v1/proto/services/customer_extension_setting_service_pb2.py b/google/ads/google_ads/v1/proto/services/customer_extension_setting_service_pb2.py deleted file mode 100644 index c6c1f42ab..000000000 --- a/google/ads/google_ads/v1/proto/services/customer_extension_setting_service_pb2.py +++ /dev/null @@ -1,407 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/services/customer_extension_setting_service.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.ads.google_ads.v1.proto.resources import customer_extension_setting_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_customer__extension__setting__pb2 -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 -from google.protobuf import field_mask_pb2 as google_dot_protobuf_dot_field__mask__pb2 -from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 -from google.rpc import status_pb2 as google_dot_rpc_dot_status__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/services/customer_extension_setting_service.proto', - package='google.ads.googleads.v1.services', - syntax='proto3', - serialized_options=_b('\n$com.google.ads.googleads.v1.servicesB$CustomerExtensionSettingServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v1/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V1.Services\312\002 Google\\Ads\\GoogleAds\\V1\\Services\352\002$Google::Ads::GoogleAds::V1::Services'), - serialized_pb=_b('\nOgoogle/ads/googleads_v1/proto/services/customer_extension_setting_service.proto\x12 google.ads.googleads.v1.services\x1aHgoogle/ads/googleads_v1/proto/resources/customer_extension_setting.proto\x1a\x1cgoogle/api/annotations.proto\x1a google/protobuf/field_mask.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x17google/rpc/status.proto\";\n\"GetCustomerExtensionSettingRequest\x12\x15\n\rresource_name\x18\x01 \x01(\t\"\xc6\x01\n&MutateCustomerExtensionSettingsRequest\x12\x13\n\x0b\x63ustomer_id\x18\x01 \x01(\t\x12W\n\noperations\x18\x02 \x03(\x0b\x32\x43.google.ads.googleads.v1.services.CustomerExtensionSettingOperation\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\"\x91\x02\n!CustomerExtensionSettingOperation\x12/\n\x0bupdate_mask\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12M\n\x06\x63reate\x18\x01 \x01(\x0b\x32;.google.ads.googleads.v1.resources.CustomerExtensionSettingH\x00\x12M\n\x06update\x18\x02 \x01(\x0b\x32;.google.ads.googleads.v1.resources.CustomerExtensionSettingH\x00\x12\x10\n\x06remove\x18\x03 \x01(\tH\x00\x42\x0b\n\toperation\"\xb5\x01\n\'MutateCustomerExtensionSettingsResponse\x12\x31\n\x15partial_failure_error\x18\x03 \x01(\x0b\x32\x12.google.rpc.Status\x12W\n\x07results\x18\x02 \x03(\x0b\x32\x46.google.ads.googleads.v1.services.MutateCustomerExtensionSettingResult\"=\n$MutateCustomerExtensionSettingResult\x12\x15\n\rresource_name\x18\x01 \x01(\t2\x8d\x04\n\x1f\x43ustomerExtensionSettingService\x12\xe5\x01\n\x1bGetCustomerExtensionSetting\x12\x44.google.ads.googleads.v1.services.GetCustomerExtensionSettingRequest\x1a;.google.ads.googleads.v1.resources.CustomerExtensionSetting\"C\x82\xd3\xe4\x93\x02=\x12;/v1/{resource_name=customers/*/customerExtensionSettings/*}\x12\x81\x02\n\x1fMutateCustomerExtensionSettings\x12H.google.ads.googleads.v1.services.MutateCustomerExtensionSettingsRequest\x1aI.google.ads.googleads.v1.services.MutateCustomerExtensionSettingsResponse\"I\x82\xd3\xe4\x93\x02\x43\">/v1/customers/{customer_id=*}/customerExtensionSettings:mutate:\x01*B\x8b\x02\n$com.google.ads.googleads.v1.servicesB$CustomerExtensionSettingServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v1/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V1.Services\xca\x02 Google\\Ads\\GoogleAds\\V1\\Services\xea\x02$Google::Ads::GoogleAds::V1::Servicesb\x06proto3') - , - dependencies=[google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_customer__extension__setting__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_protobuf_dot_field__mask__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_rpc_dot_status__pb2.DESCRIPTOR,]) - - - - -_GETCUSTOMEREXTENSIONSETTINGREQUEST = _descriptor.Descriptor( - name='GetCustomerExtensionSettingRequest', - full_name='google.ads.googleads.v1.services.GetCustomerExtensionSettingRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.services.GetCustomerExtensionSettingRequest.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=312, - serialized_end=371, -) - - -_MUTATECUSTOMEREXTENSIONSETTINGSREQUEST = _descriptor.Descriptor( - name='MutateCustomerExtensionSettingsRequest', - full_name='google.ads.googleads.v1.services.MutateCustomerExtensionSettingsRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='customer_id', full_name='google.ads.googleads.v1.services.MutateCustomerExtensionSettingsRequest.customer_id', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='operations', full_name='google.ads.googleads.v1.services.MutateCustomerExtensionSettingsRequest.operations', index=1, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='partial_failure', full_name='google.ads.googleads.v1.services.MutateCustomerExtensionSettingsRequest.partial_failure', index=2, - number=3, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='validate_only', full_name='google.ads.googleads.v1.services.MutateCustomerExtensionSettingsRequest.validate_only', index=3, - number=4, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=374, - serialized_end=572, -) - - -_CUSTOMEREXTENSIONSETTINGOPERATION = _descriptor.Descriptor( - name='CustomerExtensionSettingOperation', - full_name='google.ads.googleads.v1.services.CustomerExtensionSettingOperation', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='update_mask', full_name='google.ads.googleads.v1.services.CustomerExtensionSettingOperation.update_mask', index=0, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='create', full_name='google.ads.googleads.v1.services.CustomerExtensionSettingOperation.create', index=1, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='update', full_name='google.ads.googleads.v1.services.CustomerExtensionSettingOperation.update', index=2, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='remove', full_name='google.ads.googleads.v1.services.CustomerExtensionSettingOperation.remove', index=3, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='operation', full_name='google.ads.googleads.v1.services.CustomerExtensionSettingOperation.operation', - index=0, containing_type=None, fields=[]), - ], - serialized_start=575, - serialized_end=848, -) - - -_MUTATECUSTOMEREXTENSIONSETTINGSRESPONSE = _descriptor.Descriptor( - name='MutateCustomerExtensionSettingsResponse', - full_name='google.ads.googleads.v1.services.MutateCustomerExtensionSettingsResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='partial_failure_error', full_name='google.ads.googleads.v1.services.MutateCustomerExtensionSettingsResponse.partial_failure_error', index=0, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='results', full_name='google.ads.googleads.v1.services.MutateCustomerExtensionSettingsResponse.results', index=1, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=851, - serialized_end=1032, -) - - -_MUTATECUSTOMEREXTENSIONSETTINGRESULT = _descriptor.Descriptor( - name='MutateCustomerExtensionSettingResult', - full_name='google.ads.googleads.v1.services.MutateCustomerExtensionSettingResult', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.services.MutateCustomerExtensionSettingResult.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1034, - serialized_end=1095, -) - -_MUTATECUSTOMEREXTENSIONSETTINGSREQUEST.fields_by_name['operations'].message_type = _CUSTOMEREXTENSIONSETTINGOPERATION -_CUSTOMEREXTENSIONSETTINGOPERATION.fields_by_name['update_mask'].message_type = google_dot_protobuf_dot_field__mask__pb2._FIELDMASK -_CUSTOMEREXTENSIONSETTINGOPERATION.fields_by_name['create'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_customer__extension__setting__pb2._CUSTOMEREXTENSIONSETTING -_CUSTOMEREXTENSIONSETTINGOPERATION.fields_by_name['update'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_customer__extension__setting__pb2._CUSTOMEREXTENSIONSETTING -_CUSTOMEREXTENSIONSETTINGOPERATION.oneofs_by_name['operation'].fields.append( - _CUSTOMEREXTENSIONSETTINGOPERATION.fields_by_name['create']) -_CUSTOMEREXTENSIONSETTINGOPERATION.fields_by_name['create'].containing_oneof = _CUSTOMEREXTENSIONSETTINGOPERATION.oneofs_by_name['operation'] -_CUSTOMEREXTENSIONSETTINGOPERATION.oneofs_by_name['operation'].fields.append( - _CUSTOMEREXTENSIONSETTINGOPERATION.fields_by_name['update']) -_CUSTOMEREXTENSIONSETTINGOPERATION.fields_by_name['update'].containing_oneof = _CUSTOMEREXTENSIONSETTINGOPERATION.oneofs_by_name['operation'] -_CUSTOMEREXTENSIONSETTINGOPERATION.oneofs_by_name['operation'].fields.append( - _CUSTOMEREXTENSIONSETTINGOPERATION.fields_by_name['remove']) -_CUSTOMEREXTENSIONSETTINGOPERATION.fields_by_name['remove'].containing_oneof = _CUSTOMEREXTENSIONSETTINGOPERATION.oneofs_by_name['operation'] -_MUTATECUSTOMEREXTENSIONSETTINGSRESPONSE.fields_by_name['partial_failure_error'].message_type = google_dot_rpc_dot_status__pb2._STATUS -_MUTATECUSTOMEREXTENSIONSETTINGSRESPONSE.fields_by_name['results'].message_type = _MUTATECUSTOMEREXTENSIONSETTINGRESULT -DESCRIPTOR.message_types_by_name['GetCustomerExtensionSettingRequest'] = _GETCUSTOMEREXTENSIONSETTINGREQUEST -DESCRIPTOR.message_types_by_name['MutateCustomerExtensionSettingsRequest'] = _MUTATECUSTOMEREXTENSIONSETTINGSREQUEST -DESCRIPTOR.message_types_by_name['CustomerExtensionSettingOperation'] = _CUSTOMEREXTENSIONSETTINGOPERATION -DESCRIPTOR.message_types_by_name['MutateCustomerExtensionSettingsResponse'] = _MUTATECUSTOMEREXTENSIONSETTINGSRESPONSE -DESCRIPTOR.message_types_by_name['MutateCustomerExtensionSettingResult'] = _MUTATECUSTOMEREXTENSIONSETTINGRESULT -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -GetCustomerExtensionSettingRequest = _reflection.GeneratedProtocolMessageType('GetCustomerExtensionSettingRequest', (_message.Message,), dict( - DESCRIPTOR = _GETCUSTOMEREXTENSIONSETTINGREQUEST, - __module__ = 'google.ads.googleads_v1.proto.services.customer_extension_setting_service_pb2' - , - __doc__ = """Request message for - [CustomerExtensionSettingService.GetCustomerExtensionSetting][google.ads.googleads.v1.services.CustomerExtensionSettingService.GetCustomerExtensionSetting]. - - - Attributes: - resource_name: - The resource name of the customer extension setting to fetch. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.GetCustomerExtensionSettingRequest) - )) -_sym_db.RegisterMessage(GetCustomerExtensionSettingRequest) - -MutateCustomerExtensionSettingsRequest = _reflection.GeneratedProtocolMessageType('MutateCustomerExtensionSettingsRequest', (_message.Message,), dict( - DESCRIPTOR = _MUTATECUSTOMEREXTENSIONSETTINGSREQUEST, - __module__ = 'google.ads.googleads_v1.proto.services.customer_extension_setting_service_pb2' - , - __doc__ = """Request message for - [CustomerExtensionSettingService.MutateCustomerExtensionSettings][google.ads.googleads.v1.services.CustomerExtensionSettingService.MutateCustomerExtensionSettings]. - - - Attributes: - customer_id: - The ID of the customer whose customer extension settings are - being modified. - operations: - The list of operations to perform on individual customer - extension settings. - partial_failure: - If true, successful operations will be carried out and invalid - operations will return errors. If false, all operations will - be carried out in one transaction if and only if they are all - valid. Default is false. - validate_only: - If true, the request is validated but not executed. Only - errors are returned, not results. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.MutateCustomerExtensionSettingsRequest) - )) -_sym_db.RegisterMessage(MutateCustomerExtensionSettingsRequest) - -CustomerExtensionSettingOperation = _reflection.GeneratedProtocolMessageType('CustomerExtensionSettingOperation', (_message.Message,), dict( - DESCRIPTOR = _CUSTOMEREXTENSIONSETTINGOPERATION, - __module__ = 'google.ads.googleads_v1.proto.services.customer_extension_setting_service_pb2' - , - __doc__ = """A single operation (create, update, remove) on a customer extension - setting. - - - Attributes: - update_mask: - FieldMask that determines which resource fields are modified - in an update. - operation: - The mutate operation. - create: - Create operation: No resource name is expected for the new - customer extension setting. - update: - Update operation: The customer extension setting is expected - to have a valid resource name. - remove: - Remove operation: A resource name for the removed customer - extension setting is expected, in this format: ``customers/{c - ustomer_id}/customerExtensionSettings/{extension_type}`` - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.CustomerExtensionSettingOperation) - )) -_sym_db.RegisterMessage(CustomerExtensionSettingOperation) - -MutateCustomerExtensionSettingsResponse = _reflection.GeneratedProtocolMessageType('MutateCustomerExtensionSettingsResponse', (_message.Message,), dict( - DESCRIPTOR = _MUTATECUSTOMEREXTENSIONSETTINGSRESPONSE, - __module__ = 'google.ads.googleads_v1.proto.services.customer_extension_setting_service_pb2' - , - __doc__ = """Response message for a customer extension setting mutate. - - - Attributes: - partial_failure_error: - Errors that pertain to operation failures in the partial - failure mode. Returned only when partial\_failure = true and - all errors occur inside the operations. If any errors occur - outside the operations (e.g. auth errors), we return an RPC - level error. - results: - All results for the mutate. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.MutateCustomerExtensionSettingsResponse) - )) -_sym_db.RegisterMessage(MutateCustomerExtensionSettingsResponse) - -MutateCustomerExtensionSettingResult = _reflection.GeneratedProtocolMessageType('MutateCustomerExtensionSettingResult', (_message.Message,), dict( - DESCRIPTOR = _MUTATECUSTOMEREXTENSIONSETTINGRESULT, - __module__ = 'google.ads.googleads_v1.proto.services.customer_extension_setting_service_pb2' - , - __doc__ = """The result for the customer extension setting mutate. - - - Attributes: - resource_name: - Returned for successful operations. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.MutateCustomerExtensionSettingResult) - )) -_sym_db.RegisterMessage(MutateCustomerExtensionSettingResult) - - -DESCRIPTOR._options = None - -_CUSTOMEREXTENSIONSETTINGSERVICE = _descriptor.ServiceDescriptor( - name='CustomerExtensionSettingService', - full_name='google.ads.googleads.v1.services.CustomerExtensionSettingService', - file=DESCRIPTOR, - index=0, - serialized_options=None, - serialized_start=1098, - serialized_end=1623, - methods=[ - _descriptor.MethodDescriptor( - name='GetCustomerExtensionSetting', - full_name='google.ads.googleads.v1.services.CustomerExtensionSettingService.GetCustomerExtensionSetting', - index=0, - containing_service=None, - input_type=_GETCUSTOMEREXTENSIONSETTINGREQUEST, - output_type=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_customer__extension__setting__pb2._CUSTOMEREXTENSIONSETTING, - serialized_options=_b('\202\323\344\223\002=\022;/v1/{resource_name=customers/*/customerExtensionSettings/*}'), - ), - _descriptor.MethodDescriptor( - name='MutateCustomerExtensionSettings', - full_name='google.ads.googleads.v1.services.CustomerExtensionSettingService.MutateCustomerExtensionSettings', - index=1, - containing_service=None, - input_type=_MUTATECUSTOMEREXTENSIONSETTINGSREQUEST, - output_type=_MUTATECUSTOMEREXTENSIONSETTINGSRESPONSE, - serialized_options=_b('\202\323\344\223\002C\">/v1/customers/{customer_id=*}/customerExtensionSettings:mutate:\001*'), - ), -]) -_sym_db.RegisterServiceDescriptor(_CUSTOMEREXTENSIONSETTINGSERVICE) - -DESCRIPTOR.services_by_name['CustomerExtensionSettingService'] = _CUSTOMEREXTENSIONSETTINGSERVICE - -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/services/customer_feed_service_pb2.py b/google/ads/google_ads/v1/proto/services/customer_feed_service_pb2.py deleted file mode 100644 index 7a1fc046d..000000000 --- a/google/ads/google_ads/v1/proto/services/customer_feed_service_pb2.py +++ /dev/null @@ -1,406 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/services/customer_feed_service.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.ads.google_ads.v1.proto.resources import customer_feed_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_customer__feed__pb2 -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 -from google.protobuf import field_mask_pb2 as google_dot_protobuf_dot_field__mask__pb2 -from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 -from google.rpc import status_pb2 as google_dot_rpc_dot_status__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/services/customer_feed_service.proto', - package='google.ads.googleads.v1.services', - syntax='proto3', - serialized_options=_b('\n$com.google.ads.googleads.v1.servicesB\030CustomerFeedServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v1/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V1.Services\312\002 Google\\Ads\\GoogleAds\\V1\\Services\352\002$Google::Ads::GoogleAds::V1::Services'), - serialized_pb=_b('\nBgoogle/ads/googleads_v1/proto/services/customer_feed_service.proto\x12 google.ads.googleads.v1.services\x1a;google/ads/googleads_v1/proto/resources/customer_feed.proto\x1a\x1cgoogle/api/annotations.proto\x1a google/protobuf/field_mask.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x17google/rpc/status.proto\"/\n\x16GetCustomerFeedRequest\x12\x15\n\rresource_name\x18\x01 \x01(\t\"\xae\x01\n\x1aMutateCustomerFeedsRequest\x12\x13\n\x0b\x63ustomer_id\x18\x01 \x01(\t\x12K\n\noperations\x18\x02 \x03(\x0b\x32\x37.google.ads.googleads.v1.services.CustomerFeedOperation\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\"\xed\x01\n\x15\x43ustomerFeedOperation\x12/\n\x0bupdate_mask\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12\x41\n\x06\x63reate\x18\x01 \x01(\x0b\x32/.google.ads.googleads.v1.resources.CustomerFeedH\x00\x12\x41\n\x06update\x18\x02 \x01(\x0b\x32/.google.ads.googleads.v1.resources.CustomerFeedH\x00\x12\x10\n\x06remove\x18\x03 \x01(\tH\x00\x42\x0b\n\toperation\"\x9d\x01\n\x1bMutateCustomerFeedsResponse\x12\x31\n\x15partial_failure_error\x18\x03 \x01(\x0b\x32\x12.google.rpc.Status\x12K\n\x07results\x18\x02 \x03(\x0b\x32:.google.ads.googleads.v1.services.MutateCustomerFeedResult\"1\n\x18MutateCustomerFeedResult\x12\x15\n\rresource_name\x18\x01 \x01(\t2\xa1\x03\n\x13\x43ustomerFeedService\x12\xb5\x01\n\x0fGetCustomerFeed\x12\x38.google.ads.googleads.v1.services.GetCustomerFeedRequest\x1a/.google.ads.googleads.v1.resources.CustomerFeed\"7\x82\xd3\xe4\x93\x02\x31\x12//v1/{resource_name=customers/*/customerFeeds/*}\x12\xd1\x01\n\x13MutateCustomerFeeds\x12<.google.ads.googleads.v1.services.MutateCustomerFeedsRequest\x1a=.google.ads.googleads.v1.services.MutateCustomerFeedsResponse\"=\x82\xd3\xe4\x93\x02\x37\"2/v1/customers/{customer_id=*}/customerFeeds:mutate:\x01*B\xff\x01\n$com.google.ads.googleads.v1.servicesB\x18\x43ustomerFeedServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v1/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V1.Services\xca\x02 Google\\Ads\\GoogleAds\\V1\\Services\xea\x02$Google::Ads::GoogleAds::V1::Servicesb\x06proto3') - , - dependencies=[google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_customer__feed__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_protobuf_dot_field__mask__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_rpc_dot_status__pb2.DESCRIPTOR,]) - - - - -_GETCUSTOMERFEEDREQUEST = _descriptor.Descriptor( - name='GetCustomerFeedRequest', - full_name='google.ads.googleads.v1.services.GetCustomerFeedRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.services.GetCustomerFeedRequest.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=286, - serialized_end=333, -) - - -_MUTATECUSTOMERFEEDSREQUEST = _descriptor.Descriptor( - name='MutateCustomerFeedsRequest', - full_name='google.ads.googleads.v1.services.MutateCustomerFeedsRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='customer_id', full_name='google.ads.googleads.v1.services.MutateCustomerFeedsRequest.customer_id', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='operations', full_name='google.ads.googleads.v1.services.MutateCustomerFeedsRequest.operations', index=1, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='partial_failure', full_name='google.ads.googleads.v1.services.MutateCustomerFeedsRequest.partial_failure', index=2, - number=3, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='validate_only', full_name='google.ads.googleads.v1.services.MutateCustomerFeedsRequest.validate_only', index=3, - number=4, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=336, - serialized_end=510, -) - - -_CUSTOMERFEEDOPERATION = _descriptor.Descriptor( - name='CustomerFeedOperation', - full_name='google.ads.googleads.v1.services.CustomerFeedOperation', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='update_mask', full_name='google.ads.googleads.v1.services.CustomerFeedOperation.update_mask', index=0, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='create', full_name='google.ads.googleads.v1.services.CustomerFeedOperation.create', index=1, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='update', full_name='google.ads.googleads.v1.services.CustomerFeedOperation.update', index=2, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='remove', full_name='google.ads.googleads.v1.services.CustomerFeedOperation.remove', index=3, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='operation', full_name='google.ads.googleads.v1.services.CustomerFeedOperation.operation', - index=0, containing_type=None, fields=[]), - ], - serialized_start=513, - serialized_end=750, -) - - -_MUTATECUSTOMERFEEDSRESPONSE = _descriptor.Descriptor( - name='MutateCustomerFeedsResponse', - full_name='google.ads.googleads.v1.services.MutateCustomerFeedsResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='partial_failure_error', full_name='google.ads.googleads.v1.services.MutateCustomerFeedsResponse.partial_failure_error', index=0, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='results', full_name='google.ads.googleads.v1.services.MutateCustomerFeedsResponse.results', index=1, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=753, - serialized_end=910, -) - - -_MUTATECUSTOMERFEEDRESULT = _descriptor.Descriptor( - name='MutateCustomerFeedResult', - full_name='google.ads.googleads.v1.services.MutateCustomerFeedResult', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.services.MutateCustomerFeedResult.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=912, - serialized_end=961, -) - -_MUTATECUSTOMERFEEDSREQUEST.fields_by_name['operations'].message_type = _CUSTOMERFEEDOPERATION -_CUSTOMERFEEDOPERATION.fields_by_name['update_mask'].message_type = google_dot_protobuf_dot_field__mask__pb2._FIELDMASK -_CUSTOMERFEEDOPERATION.fields_by_name['create'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_customer__feed__pb2._CUSTOMERFEED -_CUSTOMERFEEDOPERATION.fields_by_name['update'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_customer__feed__pb2._CUSTOMERFEED -_CUSTOMERFEEDOPERATION.oneofs_by_name['operation'].fields.append( - _CUSTOMERFEEDOPERATION.fields_by_name['create']) -_CUSTOMERFEEDOPERATION.fields_by_name['create'].containing_oneof = _CUSTOMERFEEDOPERATION.oneofs_by_name['operation'] -_CUSTOMERFEEDOPERATION.oneofs_by_name['operation'].fields.append( - _CUSTOMERFEEDOPERATION.fields_by_name['update']) -_CUSTOMERFEEDOPERATION.fields_by_name['update'].containing_oneof = _CUSTOMERFEEDOPERATION.oneofs_by_name['operation'] -_CUSTOMERFEEDOPERATION.oneofs_by_name['operation'].fields.append( - _CUSTOMERFEEDOPERATION.fields_by_name['remove']) -_CUSTOMERFEEDOPERATION.fields_by_name['remove'].containing_oneof = _CUSTOMERFEEDOPERATION.oneofs_by_name['operation'] -_MUTATECUSTOMERFEEDSRESPONSE.fields_by_name['partial_failure_error'].message_type = google_dot_rpc_dot_status__pb2._STATUS -_MUTATECUSTOMERFEEDSRESPONSE.fields_by_name['results'].message_type = _MUTATECUSTOMERFEEDRESULT -DESCRIPTOR.message_types_by_name['GetCustomerFeedRequest'] = _GETCUSTOMERFEEDREQUEST -DESCRIPTOR.message_types_by_name['MutateCustomerFeedsRequest'] = _MUTATECUSTOMERFEEDSREQUEST -DESCRIPTOR.message_types_by_name['CustomerFeedOperation'] = _CUSTOMERFEEDOPERATION -DESCRIPTOR.message_types_by_name['MutateCustomerFeedsResponse'] = _MUTATECUSTOMERFEEDSRESPONSE -DESCRIPTOR.message_types_by_name['MutateCustomerFeedResult'] = _MUTATECUSTOMERFEEDRESULT -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -GetCustomerFeedRequest = _reflection.GeneratedProtocolMessageType('GetCustomerFeedRequest', (_message.Message,), dict( - DESCRIPTOR = _GETCUSTOMERFEEDREQUEST, - __module__ = 'google.ads.googleads_v1.proto.services.customer_feed_service_pb2' - , - __doc__ = """Request message for - [CustomerFeedService.GetCustomerFeed][google.ads.googleads.v1.services.CustomerFeedService.GetCustomerFeed]. - - - Attributes: - resource_name: - The resource name of the customer feed to fetch. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.GetCustomerFeedRequest) - )) -_sym_db.RegisterMessage(GetCustomerFeedRequest) - -MutateCustomerFeedsRequest = _reflection.GeneratedProtocolMessageType('MutateCustomerFeedsRequest', (_message.Message,), dict( - DESCRIPTOR = _MUTATECUSTOMERFEEDSREQUEST, - __module__ = 'google.ads.googleads_v1.proto.services.customer_feed_service_pb2' - , - __doc__ = """Request message for - [CustomerFeedService.MutateCustomerFeeds][google.ads.googleads.v1.services.CustomerFeedService.MutateCustomerFeeds]. - - - Attributes: - customer_id: - The ID of the customer whose customer feeds are being - modified. - operations: - The list of operations to perform on individual customer - feeds. - partial_failure: - If true, successful operations will be carried out and invalid - operations will return errors. If false, all operations will - be carried out in one transaction if and only if they are all - valid. Default is false. - validate_only: - If true, the request is validated but not executed. Only - errors are returned, not results. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.MutateCustomerFeedsRequest) - )) -_sym_db.RegisterMessage(MutateCustomerFeedsRequest) - -CustomerFeedOperation = _reflection.GeneratedProtocolMessageType('CustomerFeedOperation', (_message.Message,), dict( - DESCRIPTOR = _CUSTOMERFEEDOPERATION, - __module__ = 'google.ads.googleads_v1.proto.services.customer_feed_service_pb2' - , - __doc__ = """A single operation (create, update, remove) on a customer feed. - - - Attributes: - update_mask: - FieldMask that determines which resource fields are modified - in an update. - operation: - The mutate operation. - create: - Create operation: No resource name is expected for the new - customer feed. - update: - Update operation: The customer feed is expected to have a - valid resource name. - remove: - Remove operation: A resource name for the removed customer - feed is expected, in this format: - ``customers/{customer_id}/customerFeeds/{feed_id}`` - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.CustomerFeedOperation) - )) -_sym_db.RegisterMessage(CustomerFeedOperation) - -MutateCustomerFeedsResponse = _reflection.GeneratedProtocolMessageType('MutateCustomerFeedsResponse', (_message.Message,), dict( - DESCRIPTOR = _MUTATECUSTOMERFEEDSRESPONSE, - __module__ = 'google.ads.googleads_v1.proto.services.customer_feed_service_pb2' - , - __doc__ = """Response message for a customer feed mutate. - - - Attributes: - partial_failure_error: - Errors that pertain to operation failures in the partial - failure mode. Returned only when partial\_failure = true and - all errors occur inside the operations. If any errors occur - outside the operations (e.g. auth errors), we return an RPC - level error. - results: - All results for the mutate. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.MutateCustomerFeedsResponse) - )) -_sym_db.RegisterMessage(MutateCustomerFeedsResponse) - -MutateCustomerFeedResult = _reflection.GeneratedProtocolMessageType('MutateCustomerFeedResult', (_message.Message,), dict( - DESCRIPTOR = _MUTATECUSTOMERFEEDRESULT, - __module__ = 'google.ads.googleads_v1.proto.services.customer_feed_service_pb2' - , - __doc__ = """The result for the customer feed mutate. - - - Attributes: - resource_name: - Returned for successful operations. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.MutateCustomerFeedResult) - )) -_sym_db.RegisterMessage(MutateCustomerFeedResult) - - -DESCRIPTOR._options = None - -_CUSTOMERFEEDSERVICE = _descriptor.ServiceDescriptor( - name='CustomerFeedService', - full_name='google.ads.googleads.v1.services.CustomerFeedService', - file=DESCRIPTOR, - index=0, - serialized_options=None, - serialized_start=964, - serialized_end=1381, - methods=[ - _descriptor.MethodDescriptor( - name='GetCustomerFeed', - full_name='google.ads.googleads.v1.services.CustomerFeedService.GetCustomerFeed', - index=0, - containing_service=None, - input_type=_GETCUSTOMERFEEDREQUEST, - output_type=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_customer__feed__pb2._CUSTOMERFEED, - serialized_options=_b('\202\323\344\223\0021\022//v1/{resource_name=customers/*/customerFeeds/*}'), - ), - _descriptor.MethodDescriptor( - name='MutateCustomerFeeds', - full_name='google.ads.googleads.v1.services.CustomerFeedService.MutateCustomerFeeds', - index=1, - containing_service=None, - input_type=_MUTATECUSTOMERFEEDSREQUEST, - output_type=_MUTATECUSTOMERFEEDSRESPONSE, - serialized_options=_b('\202\323\344\223\0027\"2/v1/customers/{customer_id=*}/customerFeeds:mutate:\001*'), - ), -]) -_sym_db.RegisterServiceDescriptor(_CUSTOMERFEEDSERVICE) - -DESCRIPTOR.services_by_name['CustomerFeedService'] = _CUSTOMERFEEDSERVICE - -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/services/customer_feed_service_pb2_grpc.py b/google/ads/google_ads/v1/proto/services/customer_feed_service_pb2_grpc.py deleted file mode 100644 index 02561e92f..000000000 --- a/google/ads/google_ads/v1/proto/services/customer_feed_service_pb2_grpc.py +++ /dev/null @@ -1,69 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -import grpc - -from google.ads.google_ads.v1.proto.resources import customer_feed_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_customer__feed__pb2 -from google.ads.google_ads.v1.proto.services import customer_feed_service_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_customer__feed__service__pb2 - - -class CustomerFeedServiceStub(object): - """Proto file describing the CustomerFeed service. - - Service to manage customer feeds. - """ - - def __init__(self, channel): - """Constructor. - - Args: - channel: A grpc.Channel. - """ - self.GetCustomerFeed = channel.unary_unary( - '/google.ads.googleads.v1.services.CustomerFeedService/GetCustomerFeed', - request_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_customer__feed__service__pb2.GetCustomerFeedRequest.SerializeToString, - response_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_customer__feed__pb2.CustomerFeed.FromString, - ) - self.MutateCustomerFeeds = channel.unary_unary( - '/google.ads.googleads.v1.services.CustomerFeedService/MutateCustomerFeeds', - request_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_customer__feed__service__pb2.MutateCustomerFeedsRequest.SerializeToString, - response_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_customer__feed__service__pb2.MutateCustomerFeedsResponse.FromString, - ) - - -class CustomerFeedServiceServicer(object): - """Proto file describing the CustomerFeed service. - - Service to manage customer feeds. - """ - - def GetCustomerFeed(self, request, context): - """Returns the requested customer feed in full detail. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def MutateCustomerFeeds(self, request, context): - """Creates, updates, or removes customer feeds. Operation statuses are - returned. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - -def add_CustomerFeedServiceServicer_to_server(servicer, server): - rpc_method_handlers = { - 'GetCustomerFeed': grpc.unary_unary_rpc_method_handler( - servicer.GetCustomerFeed, - request_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_customer__feed__service__pb2.GetCustomerFeedRequest.FromString, - response_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_customer__feed__pb2.CustomerFeed.SerializeToString, - ), - 'MutateCustomerFeeds': grpc.unary_unary_rpc_method_handler( - servicer.MutateCustomerFeeds, - request_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_customer__feed__service__pb2.MutateCustomerFeedsRequest.FromString, - response_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_customer__feed__service__pb2.MutateCustomerFeedsResponse.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'google.ads.googleads.v1.services.CustomerFeedService', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) diff --git a/google/ads/google_ads/v1/proto/services/customer_label_service_pb2.py b/google/ads/google_ads/v1/proto/services/customer_label_service_pb2.py deleted file mode 100644 index 87031769a..000000000 --- a/google/ads/google_ads/v1/proto/services/customer_label_service_pb2.py +++ /dev/null @@ -1,380 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/services/customer_label_service.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.ads.google_ads.v1.proto.resources import customer_label_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_customer__label__pb2 -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 -from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 -from google.rpc import status_pb2 as google_dot_rpc_dot_status__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/services/customer_label_service.proto', - package='google.ads.googleads.v1.services', - syntax='proto3', - serialized_options=_b('\n$com.google.ads.googleads.v1.servicesB\031CustomerLabelServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v1/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V1.Services\312\002 Google\\Ads\\GoogleAds\\V1\\Services\352\002$Google::Ads::GoogleAds::V1::Services'), - serialized_pb=_b('\nCgoogle/ads/googleads_v1/proto/services/customer_label_service.proto\x12 google.ads.googleads.v1.services\x1a.google.ads.googleads.v1.services.MutateCustomerLabelsResponse\">\x82\xd3\xe4\x93\x02\x38\"3/v1/customers/{customer_id=*}/customerLabels:mutate:\x01*B\x80\x02\n$com.google.ads.googleads.v1.servicesB\x19\x43ustomerLabelServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v1/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V1.Services\xca\x02 Google\\Ads\\GoogleAds\\V1\\Services\xea\x02$Google::Ads::GoogleAds::V1::Servicesb\x06proto3') - , - dependencies=[google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_customer__label__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_rpc_dot_status__pb2.DESCRIPTOR,]) - - - - -_GETCUSTOMERLABELREQUEST = _descriptor.Descriptor( - name='GetCustomerLabelRequest', - full_name='google.ads.googleads.v1.services.GetCustomerLabelRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.services.GetCustomerLabelRequest.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=254, - serialized_end=302, -) - - -_MUTATECUSTOMERLABELSREQUEST = _descriptor.Descriptor( - name='MutateCustomerLabelsRequest', - full_name='google.ads.googleads.v1.services.MutateCustomerLabelsRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='customer_id', full_name='google.ads.googleads.v1.services.MutateCustomerLabelsRequest.customer_id', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='operations', full_name='google.ads.googleads.v1.services.MutateCustomerLabelsRequest.operations', index=1, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='partial_failure', full_name='google.ads.googleads.v1.services.MutateCustomerLabelsRequest.partial_failure', index=2, - number=3, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='validate_only', full_name='google.ads.googleads.v1.services.MutateCustomerLabelsRequest.validate_only', index=3, - number=4, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=305, - serialized_end=481, -) - - -_CUSTOMERLABELOPERATION = _descriptor.Descriptor( - name='CustomerLabelOperation', - full_name='google.ads.googleads.v1.services.CustomerLabelOperation', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='create', full_name='google.ads.googleads.v1.services.CustomerLabelOperation.create', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='remove', full_name='google.ads.googleads.v1.services.CustomerLabelOperation.remove', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='operation', full_name='google.ads.googleads.v1.services.CustomerLabelOperation.operation', - index=0, containing_type=None, fields=[]), - ], - serialized_start=483, - serialized_end=606, -) - - -_MUTATECUSTOMERLABELSRESPONSE = _descriptor.Descriptor( - name='MutateCustomerLabelsResponse', - full_name='google.ads.googleads.v1.services.MutateCustomerLabelsResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='partial_failure_error', full_name='google.ads.googleads.v1.services.MutateCustomerLabelsResponse.partial_failure_error', index=0, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='results', full_name='google.ads.googleads.v1.services.MutateCustomerLabelsResponse.results', index=1, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=609, - serialized_end=768, -) - - -_MUTATECUSTOMERLABELRESULT = _descriptor.Descriptor( - name='MutateCustomerLabelResult', - full_name='google.ads.googleads.v1.services.MutateCustomerLabelResult', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.services.MutateCustomerLabelResult.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=770, - serialized_end=820, -) - -_MUTATECUSTOMERLABELSREQUEST.fields_by_name['operations'].message_type = _CUSTOMERLABELOPERATION -_CUSTOMERLABELOPERATION.fields_by_name['create'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_customer__label__pb2._CUSTOMERLABEL -_CUSTOMERLABELOPERATION.oneofs_by_name['operation'].fields.append( - _CUSTOMERLABELOPERATION.fields_by_name['create']) -_CUSTOMERLABELOPERATION.fields_by_name['create'].containing_oneof = _CUSTOMERLABELOPERATION.oneofs_by_name['operation'] -_CUSTOMERLABELOPERATION.oneofs_by_name['operation'].fields.append( - _CUSTOMERLABELOPERATION.fields_by_name['remove']) -_CUSTOMERLABELOPERATION.fields_by_name['remove'].containing_oneof = _CUSTOMERLABELOPERATION.oneofs_by_name['operation'] -_MUTATECUSTOMERLABELSRESPONSE.fields_by_name['partial_failure_error'].message_type = google_dot_rpc_dot_status__pb2._STATUS -_MUTATECUSTOMERLABELSRESPONSE.fields_by_name['results'].message_type = _MUTATECUSTOMERLABELRESULT -DESCRIPTOR.message_types_by_name['GetCustomerLabelRequest'] = _GETCUSTOMERLABELREQUEST -DESCRIPTOR.message_types_by_name['MutateCustomerLabelsRequest'] = _MUTATECUSTOMERLABELSREQUEST -DESCRIPTOR.message_types_by_name['CustomerLabelOperation'] = _CUSTOMERLABELOPERATION -DESCRIPTOR.message_types_by_name['MutateCustomerLabelsResponse'] = _MUTATECUSTOMERLABELSRESPONSE -DESCRIPTOR.message_types_by_name['MutateCustomerLabelResult'] = _MUTATECUSTOMERLABELRESULT -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -GetCustomerLabelRequest = _reflection.GeneratedProtocolMessageType('GetCustomerLabelRequest', (_message.Message,), dict( - DESCRIPTOR = _GETCUSTOMERLABELREQUEST, - __module__ = 'google.ads.googleads_v1.proto.services.customer_label_service_pb2' - , - __doc__ = """Request message for - [CustomerLabelService.GetCustomerLabel][google.ads.googleads.v1.services.CustomerLabelService.GetCustomerLabel]. - - - Attributes: - resource_name: - The resource name of the customer-label relationship to fetch. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.GetCustomerLabelRequest) - )) -_sym_db.RegisterMessage(GetCustomerLabelRequest) - -MutateCustomerLabelsRequest = _reflection.GeneratedProtocolMessageType('MutateCustomerLabelsRequest', (_message.Message,), dict( - DESCRIPTOR = _MUTATECUSTOMERLABELSREQUEST, - __module__ = 'google.ads.googleads_v1.proto.services.customer_label_service_pb2' - , - __doc__ = """Request message for - [CustomerLabelService.MutateCustomerLabels][google.ads.googleads.v1.services.CustomerLabelService.MutateCustomerLabels]. - - - Attributes: - customer_id: - ID of the customer whose customer-label relationships are - being modified. - operations: - The list of operations to perform on customer-label - relationships. - partial_failure: - If true, successful operations will be carried out and invalid - operations will return errors. If false, all operations will - be carried out in one transaction if and only if they are all - valid. Default is false. - validate_only: - If true, the request is validated but not executed. Only - errors are returned, not results. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.MutateCustomerLabelsRequest) - )) -_sym_db.RegisterMessage(MutateCustomerLabelsRequest) - -CustomerLabelOperation = _reflection.GeneratedProtocolMessageType('CustomerLabelOperation', (_message.Message,), dict( - DESCRIPTOR = _CUSTOMERLABELOPERATION, - __module__ = 'google.ads.googleads_v1.proto.services.customer_label_service_pb2' - , - __doc__ = """A single operation (create, remove) on a customer-label relationship. - - - Attributes: - operation: - The mutate operation. - create: - Create operation: No resource name is expected for the new - customer-label relationship. - remove: - Remove operation: A resource name for the customer-label - relationship being removed, in this format: - ``customers/{customer_id}/customerLabels/{label_id}`` - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.CustomerLabelOperation) - )) -_sym_db.RegisterMessage(CustomerLabelOperation) - -MutateCustomerLabelsResponse = _reflection.GeneratedProtocolMessageType('MutateCustomerLabelsResponse', (_message.Message,), dict( - DESCRIPTOR = _MUTATECUSTOMERLABELSRESPONSE, - __module__ = 'google.ads.googleads_v1.proto.services.customer_label_service_pb2' - , - __doc__ = """Response message for a customer labels mutate. - - - Attributes: - partial_failure_error: - Errors that pertain to operation failures in the partial - failure mode. Returned only when partial\_failure = true and - all errors occur inside the operations. If any errors occur - outside the operations (e.g. auth errors), we return an RPC - level error. - results: - All results for the mutate. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.MutateCustomerLabelsResponse) - )) -_sym_db.RegisterMessage(MutateCustomerLabelsResponse) - -MutateCustomerLabelResult = _reflection.GeneratedProtocolMessageType('MutateCustomerLabelResult', (_message.Message,), dict( - DESCRIPTOR = _MUTATECUSTOMERLABELRESULT, - __module__ = 'google.ads.googleads_v1.proto.services.customer_label_service_pb2' - , - __doc__ = """The result for a customer label mutate. - - - Attributes: - resource_name: - Returned for successful operations. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.MutateCustomerLabelResult) - )) -_sym_db.RegisterMessage(MutateCustomerLabelResult) - - -DESCRIPTOR._options = None - -_CUSTOMERLABELSERVICE = _descriptor.ServiceDescriptor( - name='CustomerLabelService', - full_name='google.ads.googleads.v1.services.CustomerLabelService', - file=DESCRIPTOR, - index=0, - serialized_options=None, - serialized_start=823, - serialized_end=1249, - methods=[ - _descriptor.MethodDescriptor( - name='GetCustomerLabel', - full_name='google.ads.googleads.v1.services.CustomerLabelService.GetCustomerLabel', - index=0, - containing_service=None, - input_type=_GETCUSTOMERLABELREQUEST, - output_type=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_customer__label__pb2._CUSTOMERLABEL, - serialized_options=_b('\202\323\344\223\0022\0220/v1/{resource_name=customers/*/customerLabels/*}'), - ), - _descriptor.MethodDescriptor( - name='MutateCustomerLabels', - full_name='google.ads.googleads.v1.services.CustomerLabelService.MutateCustomerLabels', - index=1, - containing_service=None, - input_type=_MUTATECUSTOMERLABELSREQUEST, - output_type=_MUTATECUSTOMERLABELSRESPONSE, - serialized_options=_b('\202\323\344\223\0028\"3/v1/customers/{customer_id=*}/customerLabels:mutate:\001*'), - ), -]) -_sym_db.RegisterServiceDescriptor(_CUSTOMERLABELSERVICE) - -DESCRIPTOR.services_by_name['CustomerLabelService'] = _CUSTOMERLABELSERVICE - -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/services/customer_label_service_pb2_grpc.py b/google/ads/google_ads/v1/proto/services/customer_label_service_pb2_grpc.py deleted file mode 100644 index 296c3bd99..000000000 --- a/google/ads/google_ads/v1/proto/services/customer_label_service_pb2_grpc.py +++ /dev/null @@ -1,69 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -import grpc - -from google.ads.google_ads.v1.proto.resources import customer_label_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_customer__label__pb2 -from google.ads.google_ads.v1.proto.services import customer_label_service_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_customer__label__service__pb2 - - -class CustomerLabelServiceStub(object): - """Proto file describing the Customer Label service. - - Service to manage labels on customers. - """ - - def __init__(self, channel): - """Constructor. - - Args: - channel: A grpc.Channel. - """ - self.GetCustomerLabel = channel.unary_unary( - '/google.ads.googleads.v1.services.CustomerLabelService/GetCustomerLabel', - request_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_customer__label__service__pb2.GetCustomerLabelRequest.SerializeToString, - response_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_customer__label__pb2.CustomerLabel.FromString, - ) - self.MutateCustomerLabels = channel.unary_unary( - '/google.ads.googleads.v1.services.CustomerLabelService/MutateCustomerLabels', - request_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_customer__label__service__pb2.MutateCustomerLabelsRequest.SerializeToString, - response_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_customer__label__service__pb2.MutateCustomerLabelsResponse.FromString, - ) - - -class CustomerLabelServiceServicer(object): - """Proto file describing the Customer Label service. - - Service to manage labels on customers. - """ - - def GetCustomerLabel(self, request, context): - """Returns the requested customer-label relationship in full detail. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def MutateCustomerLabels(self, request, context): - """Creates and removes customer-label relationships. - Operation statuses are returned. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - -def add_CustomerLabelServiceServicer_to_server(servicer, server): - rpc_method_handlers = { - 'GetCustomerLabel': grpc.unary_unary_rpc_method_handler( - servicer.GetCustomerLabel, - request_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_customer__label__service__pb2.GetCustomerLabelRequest.FromString, - response_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_customer__label__pb2.CustomerLabel.SerializeToString, - ), - 'MutateCustomerLabels': grpc.unary_unary_rpc_method_handler( - servicer.MutateCustomerLabels, - request_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_customer__label__service__pb2.MutateCustomerLabelsRequest.FromString, - response_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_customer__label__service__pb2.MutateCustomerLabelsResponse.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'google.ads.googleads.v1.services.CustomerLabelService', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) diff --git a/google/ads/google_ads/v1/proto/services/customer_manager_link_service_pb2.py b/google/ads/google_ads/v1/proto/services/customer_manager_link_service_pb2.py deleted file mode 100644 index 5c6a20069..000000000 --- a/google/ads/google_ads/v1/proto/services/customer_manager_link_service_pb2.py +++ /dev/null @@ -1,345 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/services/customer_manager_link_service.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.ads.google_ads.v1.proto.resources import customer_manager_link_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_customer__manager__link__pb2 -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 -from google.protobuf import field_mask_pb2 as google_dot_protobuf_dot_field__mask__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/services/customer_manager_link_service.proto', - package='google.ads.googleads.v1.services', - syntax='proto3', - serialized_options=_b('\n$com.google.ads.googleads.v1.servicesB\037CustomerManagerLinkServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v1/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V1.Services\312\002 Google\\Ads\\GoogleAds\\V1\\Services\352\002$Google::Ads::GoogleAds::V1::Services'), - serialized_pb=_b('\nJgoogle/ads/googleads_v1/proto/services/customer_manager_link_service.proto\x12 google.ads.googleads.v1.services\x1a\x43google/ads/googleads_v1/proto/resources/customer_manager_link.proto\x1a\x1cgoogle/api/annotations.proto\x1a google/protobuf/field_mask.proto\"6\n\x1dGetCustomerManagerLinkRequest\x12\x15\n\rresource_name\x18\x01 \x01(\t\"\x8b\x01\n MutateCustomerManagerLinkRequest\x12\x13\n\x0b\x63ustomer_id\x18\x01 \x01(\t\x12R\n\noperations\x18\x02 \x03(\x0b\x32>.google.ads.googleads.v1.services.CustomerManagerLinkOperation\"\xa6\x01\n\x1c\x43ustomerManagerLinkOperation\x12/\n\x0bupdate_mask\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12H\n\x06update\x18\x02 \x01(\x0b\x32\x36.google.ads.googleads.v1.resources.CustomerManagerLinkH\x00\x42\x0b\n\toperation\"w\n!MutateCustomerManagerLinkResponse\x12R\n\x07results\x18\x01 \x03(\x0b\x32\x41.google.ads.googleads.v1.services.MutateCustomerManagerLinkResult\"8\n\x1fMutateCustomerManagerLinkResult\x12\x15\n\rresource_name\x18\x01 \x01(\t2\xdd\x03\n\x1a\x43ustomerManagerLinkService\x12\xd1\x01\n\x16GetCustomerManagerLink\x12?.google.ads.googleads.v1.services.GetCustomerManagerLinkRequest\x1a\x36.google.ads.googleads.v1.resources.CustomerManagerLink\">\x82\xd3\xe4\x93\x02\x38\x12\x36/v1/{resource_name=customers/*/customerManagerLinks/*}\x12\xea\x01\n\x19MutateCustomerManagerLink\x12\x42.google.ads.googleads.v1.services.MutateCustomerManagerLinkRequest\x1a\x43.google.ads.googleads.v1.services.MutateCustomerManagerLinkResponse\"D\x82\xd3\xe4\x93\x02>\"9/v1/customers/{customer_id=*}/customerManagerLinks:mutate:\x01*B\x86\x02\n$com.google.ads.googleads.v1.servicesB\x1f\x43ustomerManagerLinkServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v1/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V1.Services\xca\x02 Google\\Ads\\GoogleAds\\V1\\Services\xea\x02$Google::Ads::GoogleAds::V1::Servicesb\x06proto3') - , - dependencies=[google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_customer__manager__link__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_protobuf_dot_field__mask__pb2.DESCRIPTOR,]) - - - - -_GETCUSTOMERMANAGERLINKREQUEST = _descriptor.Descriptor( - name='GetCustomerManagerLinkRequest', - full_name='google.ads.googleads.v1.services.GetCustomerManagerLinkRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.services.GetCustomerManagerLinkRequest.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=245, - serialized_end=299, -) - - -_MUTATECUSTOMERMANAGERLINKREQUEST = _descriptor.Descriptor( - name='MutateCustomerManagerLinkRequest', - full_name='google.ads.googleads.v1.services.MutateCustomerManagerLinkRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='customer_id', full_name='google.ads.googleads.v1.services.MutateCustomerManagerLinkRequest.customer_id', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='operations', full_name='google.ads.googleads.v1.services.MutateCustomerManagerLinkRequest.operations', index=1, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=302, - serialized_end=441, -) - - -_CUSTOMERMANAGERLINKOPERATION = _descriptor.Descriptor( - name='CustomerManagerLinkOperation', - full_name='google.ads.googleads.v1.services.CustomerManagerLinkOperation', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='update_mask', full_name='google.ads.googleads.v1.services.CustomerManagerLinkOperation.update_mask', index=0, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='update', full_name='google.ads.googleads.v1.services.CustomerManagerLinkOperation.update', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='operation', full_name='google.ads.googleads.v1.services.CustomerManagerLinkOperation.operation', - index=0, containing_type=None, fields=[]), - ], - serialized_start=444, - serialized_end=610, -) - - -_MUTATECUSTOMERMANAGERLINKRESPONSE = _descriptor.Descriptor( - name='MutateCustomerManagerLinkResponse', - full_name='google.ads.googleads.v1.services.MutateCustomerManagerLinkResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='results', full_name='google.ads.googleads.v1.services.MutateCustomerManagerLinkResponse.results', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=612, - serialized_end=731, -) - - -_MUTATECUSTOMERMANAGERLINKRESULT = _descriptor.Descriptor( - name='MutateCustomerManagerLinkResult', - full_name='google.ads.googleads.v1.services.MutateCustomerManagerLinkResult', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.services.MutateCustomerManagerLinkResult.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=733, - serialized_end=789, -) - -_MUTATECUSTOMERMANAGERLINKREQUEST.fields_by_name['operations'].message_type = _CUSTOMERMANAGERLINKOPERATION -_CUSTOMERMANAGERLINKOPERATION.fields_by_name['update_mask'].message_type = google_dot_protobuf_dot_field__mask__pb2._FIELDMASK -_CUSTOMERMANAGERLINKOPERATION.fields_by_name['update'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_customer__manager__link__pb2._CUSTOMERMANAGERLINK -_CUSTOMERMANAGERLINKOPERATION.oneofs_by_name['operation'].fields.append( - _CUSTOMERMANAGERLINKOPERATION.fields_by_name['update']) -_CUSTOMERMANAGERLINKOPERATION.fields_by_name['update'].containing_oneof = _CUSTOMERMANAGERLINKOPERATION.oneofs_by_name['operation'] -_MUTATECUSTOMERMANAGERLINKRESPONSE.fields_by_name['results'].message_type = _MUTATECUSTOMERMANAGERLINKRESULT -DESCRIPTOR.message_types_by_name['GetCustomerManagerLinkRequest'] = _GETCUSTOMERMANAGERLINKREQUEST -DESCRIPTOR.message_types_by_name['MutateCustomerManagerLinkRequest'] = _MUTATECUSTOMERMANAGERLINKREQUEST -DESCRIPTOR.message_types_by_name['CustomerManagerLinkOperation'] = _CUSTOMERMANAGERLINKOPERATION -DESCRIPTOR.message_types_by_name['MutateCustomerManagerLinkResponse'] = _MUTATECUSTOMERMANAGERLINKRESPONSE -DESCRIPTOR.message_types_by_name['MutateCustomerManagerLinkResult'] = _MUTATECUSTOMERMANAGERLINKRESULT -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -GetCustomerManagerLinkRequest = _reflection.GeneratedProtocolMessageType('GetCustomerManagerLinkRequest', (_message.Message,), dict( - DESCRIPTOR = _GETCUSTOMERMANAGERLINKREQUEST, - __module__ = 'google.ads.googleads_v1.proto.services.customer_manager_link_service_pb2' - , - __doc__ = """Request message for - [CustomerManagerLinkService.GetCustomerManagerLink][google.ads.googleads.v1.services.CustomerManagerLinkService.GetCustomerManagerLink]. - - - Attributes: - resource_name: - The resource name of the CustomerManagerLink to fetch. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.GetCustomerManagerLinkRequest) - )) -_sym_db.RegisterMessage(GetCustomerManagerLinkRequest) - -MutateCustomerManagerLinkRequest = _reflection.GeneratedProtocolMessageType('MutateCustomerManagerLinkRequest', (_message.Message,), dict( - DESCRIPTOR = _MUTATECUSTOMERMANAGERLINKREQUEST, - __module__ = 'google.ads.googleads_v1.proto.services.customer_manager_link_service_pb2' - , - __doc__ = """Request message for - [CustomerManagerLinkService.MutateCustomerManagerLink][google.ads.googleads.v1.services.CustomerManagerLinkService.MutateCustomerManagerLink]. - - - Attributes: - customer_id: - The ID of the customer whose customer manager links are being - modified. - operations: - The list of operations to perform on individual customer - manager links. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.MutateCustomerManagerLinkRequest) - )) -_sym_db.RegisterMessage(MutateCustomerManagerLinkRequest) - -CustomerManagerLinkOperation = _reflection.GeneratedProtocolMessageType('CustomerManagerLinkOperation', (_message.Message,), dict( - DESCRIPTOR = _CUSTOMERMANAGERLINKOPERATION, - __module__ = 'google.ads.googleads_v1.proto.services.customer_manager_link_service_pb2' - , - __doc__ = """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 terminates link to - manager. - - - Attributes: - update_mask: - FieldMask that determines which resource fields are modified - in an update. - operation: - The mutate operation. - update: - Update operation: The link is expected to have a valid - resource name. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.CustomerManagerLinkOperation) - )) -_sym_db.RegisterMessage(CustomerManagerLinkOperation) - -MutateCustomerManagerLinkResponse = _reflection.GeneratedProtocolMessageType('MutateCustomerManagerLinkResponse', (_message.Message,), dict( - DESCRIPTOR = _MUTATECUSTOMERMANAGERLINKRESPONSE, - __module__ = 'google.ads.googleads_v1.proto.services.customer_manager_link_service_pb2' - , - __doc__ = """Response message for a CustomerManagerLink mutate. - - - Attributes: - results: - A result that identifies the resource affected by the mutate - request. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.MutateCustomerManagerLinkResponse) - )) -_sym_db.RegisterMessage(MutateCustomerManagerLinkResponse) - -MutateCustomerManagerLinkResult = _reflection.GeneratedProtocolMessageType('MutateCustomerManagerLinkResult', (_message.Message,), dict( - DESCRIPTOR = _MUTATECUSTOMERMANAGERLINKRESULT, - __module__ = 'google.ads.googleads_v1.proto.services.customer_manager_link_service_pb2' - , - __doc__ = """The result for the customer manager link mutate. - - - Attributes: - resource_name: - Returned for successful operations. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.MutateCustomerManagerLinkResult) - )) -_sym_db.RegisterMessage(MutateCustomerManagerLinkResult) - - -DESCRIPTOR._options = None - -_CUSTOMERMANAGERLINKSERVICE = _descriptor.ServiceDescriptor( - name='CustomerManagerLinkService', - full_name='google.ads.googleads.v1.services.CustomerManagerLinkService', - file=DESCRIPTOR, - index=0, - serialized_options=None, - serialized_start=792, - serialized_end=1269, - methods=[ - _descriptor.MethodDescriptor( - name='GetCustomerManagerLink', - full_name='google.ads.googleads.v1.services.CustomerManagerLinkService.GetCustomerManagerLink', - index=0, - containing_service=None, - input_type=_GETCUSTOMERMANAGERLINKREQUEST, - output_type=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_customer__manager__link__pb2._CUSTOMERMANAGERLINK, - serialized_options=_b('\202\323\344\223\0028\0226/v1/{resource_name=customers/*/customerManagerLinks/*}'), - ), - _descriptor.MethodDescriptor( - name='MutateCustomerManagerLink', - full_name='google.ads.googleads.v1.services.CustomerManagerLinkService.MutateCustomerManagerLink', - index=1, - containing_service=None, - input_type=_MUTATECUSTOMERMANAGERLINKREQUEST, - output_type=_MUTATECUSTOMERMANAGERLINKRESPONSE, - serialized_options=_b('\202\323\344\223\002>\"9/v1/customers/{customer_id=*}/customerManagerLinks:mutate:\001*'), - ), -]) -_sym_db.RegisterServiceDescriptor(_CUSTOMERMANAGERLINKSERVICE) - -DESCRIPTOR.services_by_name['CustomerManagerLinkService'] = _CUSTOMERMANAGERLINKSERVICE - -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/services/customer_manager_link_service_pb2_grpc.py b/google/ads/google_ads/v1/proto/services/customer_manager_link_service_pb2_grpc.py deleted file mode 100644 index b52cdef47..000000000 --- a/google/ads/google_ads/v1/proto/services/customer_manager_link_service_pb2_grpc.py +++ /dev/null @@ -1,64 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -import grpc - -from google.ads.google_ads.v1.proto.resources import customer_manager_link_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_customer__manager__link__pb2 -from google.ads.google_ads.v1.proto.services import customer_manager_link_service_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_customer__manager__link__service__pb2 - - -class CustomerManagerLinkServiceStub(object): - """Service to manage customer-manager links. - """ - - def __init__(self, channel): - """Constructor. - - Args: - channel: A grpc.Channel. - """ - self.GetCustomerManagerLink = channel.unary_unary( - '/google.ads.googleads.v1.services.CustomerManagerLinkService/GetCustomerManagerLink', - request_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_customer__manager__link__service__pb2.GetCustomerManagerLinkRequest.SerializeToString, - response_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_customer__manager__link__pb2.CustomerManagerLink.FromString, - ) - self.MutateCustomerManagerLink = channel.unary_unary( - '/google.ads.googleads.v1.services.CustomerManagerLinkService/MutateCustomerManagerLink', - request_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_customer__manager__link__service__pb2.MutateCustomerManagerLinkRequest.SerializeToString, - response_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_customer__manager__link__service__pb2.MutateCustomerManagerLinkResponse.FromString, - ) - - -class CustomerManagerLinkServiceServicer(object): - """Service to manage customer-manager links. - """ - - def GetCustomerManagerLink(self, request, context): - """Returns the requested CustomerManagerLink in full detail. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def MutateCustomerManagerLink(self, request, context): - """Creates or updates customer manager links. Operation statuses are returned. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - -def add_CustomerManagerLinkServiceServicer_to_server(servicer, server): - rpc_method_handlers = { - 'GetCustomerManagerLink': grpc.unary_unary_rpc_method_handler( - servicer.GetCustomerManagerLink, - request_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_customer__manager__link__service__pb2.GetCustomerManagerLinkRequest.FromString, - response_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_customer__manager__link__pb2.CustomerManagerLink.SerializeToString, - ), - 'MutateCustomerManagerLink': grpc.unary_unary_rpc_method_handler( - servicer.MutateCustomerManagerLink, - request_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_customer__manager__link__service__pb2.MutateCustomerManagerLinkRequest.FromString, - response_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_customer__manager__link__service__pb2.MutateCustomerManagerLinkResponse.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'google.ads.googleads.v1.services.CustomerManagerLinkService', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) diff --git a/google/ads/google_ads/v1/proto/services/customer_negative_criterion_service_pb2.py b/google/ads/google_ads/v1/proto/services/customer_negative_criterion_service_pb2.py deleted file mode 100644 index 5c427ffa5..000000000 --- a/google/ads/google_ads/v1/proto/services/customer_negative_criterion_service_pb2.py +++ /dev/null @@ -1,379 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/services/customer_negative_criterion_service.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.ads.google_ads.v1.proto.resources import customer_negative_criterion_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_customer__negative__criterion__pb2 -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 -from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 -from google.rpc import status_pb2 as google_dot_rpc_dot_status__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/services/customer_negative_criterion_service.proto', - package='google.ads.googleads.v1.services', - syntax='proto3', - serialized_options=_b('\n$com.google.ads.googleads.v1.servicesB%CustomerNegativeCriterionServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v1/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V1.Services\312\002 Google\\Ads\\GoogleAds\\V1\\Services\352\002$Google::Ads::GoogleAds::V1::Services'), - serialized_pb=_b('\nPgoogle/ads/googleads_v1/proto/services/customer_negative_criterion_service.proto\x12 google.ads.googleads.v1.services\x1aIgoogle/ads/googleads_v1/proto/resources/customer_negative_criterion.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x17google/rpc/status.proto\"<\n#GetCustomerNegativeCriterionRequest\x12\x15\n\rresource_name\x18\x01 \x01(\t\"\xc6\x01\n%MutateCustomerNegativeCriteriaRequest\x12\x13\n\x0b\x63ustomer_id\x18\x01 \x01(\t\x12X\n\noperations\x18\x02 \x03(\x0b\x32\x44.google.ads.googleads.v1.services.CustomerNegativeCriterionOperation\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\"\x93\x01\n\"CustomerNegativeCriterionOperation\x12N\n\x06\x63reate\x18\x01 \x01(\x0b\x32<.google.ads.googleads.v1.resources.CustomerNegativeCriterionH\x00\x12\x10\n\x06remove\x18\x02 \x01(\tH\x00\x42\x0b\n\toperation\"\xb4\x01\n&MutateCustomerNegativeCriteriaResponse\x12\x31\n\x15partial_failure_error\x18\x03 \x01(\x0b\x32\x12.google.rpc.Status\x12W\n\x07results\x18\x02 \x03(\x0b\x32\x46.google.ads.googleads.v1.services.MutateCustomerNegativeCriteriaResult\"=\n$MutateCustomerNegativeCriteriaResult\x12\x15\n\rresource_name\x18\x01 \x01(\t2\x8c\x04\n CustomerNegativeCriterionService\x12\xe7\x01\n\x1cGetCustomerNegativeCriterion\x12\x45.google.ads.googleads.v1.services.GetCustomerNegativeCriterionRequest\x1a<.google.ads.googleads.v1.resources.CustomerNegativeCriterion\"B\x82\xd3\xe4\x93\x02<\x12:/v1/{resource_name=customers/*/customerNegativeCriteria/*}\x12\xfd\x01\n\x1eMutateCustomerNegativeCriteria\x12G.google.ads.googleads.v1.services.MutateCustomerNegativeCriteriaRequest\x1aH.google.ads.googleads.v1.services.MutateCustomerNegativeCriteriaResponse\"H\x82\xd3\xe4\x93\x02\x42\"=/v1/customers/{customer_id=*}/customerNegativeCriteria:mutate:\x01*B\x8c\x02\n$com.google.ads.googleads.v1.servicesB%CustomerNegativeCriterionServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v1/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V1.Services\xca\x02 Google\\Ads\\GoogleAds\\V1\\Services\xea\x02$Google::Ads::GoogleAds::V1::Servicesb\x06proto3') - , - dependencies=[google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_customer__negative__criterion__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_rpc_dot_status__pb2.DESCRIPTOR,]) - - - - -_GETCUSTOMERNEGATIVECRITERIONREQUEST = _descriptor.Descriptor( - name='GetCustomerNegativeCriterionRequest', - full_name='google.ads.googleads.v1.services.GetCustomerNegativeCriterionRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.services.GetCustomerNegativeCriterionRequest.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=280, - serialized_end=340, -) - - -_MUTATECUSTOMERNEGATIVECRITERIAREQUEST = _descriptor.Descriptor( - name='MutateCustomerNegativeCriteriaRequest', - full_name='google.ads.googleads.v1.services.MutateCustomerNegativeCriteriaRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='customer_id', full_name='google.ads.googleads.v1.services.MutateCustomerNegativeCriteriaRequest.customer_id', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='operations', full_name='google.ads.googleads.v1.services.MutateCustomerNegativeCriteriaRequest.operations', index=1, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='partial_failure', full_name='google.ads.googleads.v1.services.MutateCustomerNegativeCriteriaRequest.partial_failure', index=2, - number=3, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='validate_only', full_name='google.ads.googleads.v1.services.MutateCustomerNegativeCriteriaRequest.validate_only', index=3, - number=4, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=343, - serialized_end=541, -) - - -_CUSTOMERNEGATIVECRITERIONOPERATION = _descriptor.Descriptor( - name='CustomerNegativeCriterionOperation', - full_name='google.ads.googleads.v1.services.CustomerNegativeCriterionOperation', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='create', full_name='google.ads.googleads.v1.services.CustomerNegativeCriterionOperation.create', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='remove', full_name='google.ads.googleads.v1.services.CustomerNegativeCriterionOperation.remove', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='operation', full_name='google.ads.googleads.v1.services.CustomerNegativeCriterionOperation.operation', - index=0, containing_type=None, fields=[]), - ], - serialized_start=544, - serialized_end=691, -) - - -_MUTATECUSTOMERNEGATIVECRITERIARESPONSE = _descriptor.Descriptor( - name='MutateCustomerNegativeCriteriaResponse', - full_name='google.ads.googleads.v1.services.MutateCustomerNegativeCriteriaResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='partial_failure_error', full_name='google.ads.googleads.v1.services.MutateCustomerNegativeCriteriaResponse.partial_failure_error', index=0, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='results', full_name='google.ads.googleads.v1.services.MutateCustomerNegativeCriteriaResponse.results', index=1, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=694, - serialized_end=874, -) - - -_MUTATECUSTOMERNEGATIVECRITERIARESULT = _descriptor.Descriptor( - name='MutateCustomerNegativeCriteriaResult', - full_name='google.ads.googleads.v1.services.MutateCustomerNegativeCriteriaResult', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.services.MutateCustomerNegativeCriteriaResult.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=876, - serialized_end=937, -) - -_MUTATECUSTOMERNEGATIVECRITERIAREQUEST.fields_by_name['operations'].message_type = _CUSTOMERNEGATIVECRITERIONOPERATION -_CUSTOMERNEGATIVECRITERIONOPERATION.fields_by_name['create'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_customer__negative__criterion__pb2._CUSTOMERNEGATIVECRITERION -_CUSTOMERNEGATIVECRITERIONOPERATION.oneofs_by_name['operation'].fields.append( - _CUSTOMERNEGATIVECRITERIONOPERATION.fields_by_name['create']) -_CUSTOMERNEGATIVECRITERIONOPERATION.fields_by_name['create'].containing_oneof = _CUSTOMERNEGATIVECRITERIONOPERATION.oneofs_by_name['operation'] -_CUSTOMERNEGATIVECRITERIONOPERATION.oneofs_by_name['operation'].fields.append( - _CUSTOMERNEGATIVECRITERIONOPERATION.fields_by_name['remove']) -_CUSTOMERNEGATIVECRITERIONOPERATION.fields_by_name['remove'].containing_oneof = _CUSTOMERNEGATIVECRITERIONOPERATION.oneofs_by_name['operation'] -_MUTATECUSTOMERNEGATIVECRITERIARESPONSE.fields_by_name['partial_failure_error'].message_type = google_dot_rpc_dot_status__pb2._STATUS -_MUTATECUSTOMERNEGATIVECRITERIARESPONSE.fields_by_name['results'].message_type = _MUTATECUSTOMERNEGATIVECRITERIARESULT -DESCRIPTOR.message_types_by_name['GetCustomerNegativeCriterionRequest'] = _GETCUSTOMERNEGATIVECRITERIONREQUEST -DESCRIPTOR.message_types_by_name['MutateCustomerNegativeCriteriaRequest'] = _MUTATECUSTOMERNEGATIVECRITERIAREQUEST -DESCRIPTOR.message_types_by_name['CustomerNegativeCriterionOperation'] = _CUSTOMERNEGATIVECRITERIONOPERATION -DESCRIPTOR.message_types_by_name['MutateCustomerNegativeCriteriaResponse'] = _MUTATECUSTOMERNEGATIVECRITERIARESPONSE -DESCRIPTOR.message_types_by_name['MutateCustomerNegativeCriteriaResult'] = _MUTATECUSTOMERNEGATIVECRITERIARESULT -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -GetCustomerNegativeCriterionRequest = _reflection.GeneratedProtocolMessageType('GetCustomerNegativeCriterionRequest', (_message.Message,), dict( - DESCRIPTOR = _GETCUSTOMERNEGATIVECRITERIONREQUEST, - __module__ = 'google.ads.googleads_v1.proto.services.customer_negative_criterion_service_pb2' - , - __doc__ = """Request message for - [CustomerNegativeCriterionService.GetCustomerNegativeCriterion][google.ads.googleads.v1.services.CustomerNegativeCriterionService.GetCustomerNegativeCriterion]. - - - Attributes: - resource_name: - The resource name of the criterion to fetch. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.GetCustomerNegativeCriterionRequest) - )) -_sym_db.RegisterMessage(GetCustomerNegativeCriterionRequest) - -MutateCustomerNegativeCriteriaRequest = _reflection.GeneratedProtocolMessageType('MutateCustomerNegativeCriteriaRequest', (_message.Message,), dict( - DESCRIPTOR = _MUTATECUSTOMERNEGATIVECRITERIAREQUEST, - __module__ = 'google.ads.googleads_v1.proto.services.customer_negative_criterion_service_pb2' - , - __doc__ = """Request message for - [CustomerNegativeCriterionService.MutateCustomerNegativeCriteria][google.ads.googleads.v1.services.CustomerNegativeCriterionService.MutateCustomerNegativeCriteria]. - - - Attributes: - customer_id: - The ID of the customer whose criteria are being modified. - operations: - The list of operations to perform on individual criteria. - partial_failure: - If true, successful operations will be carried out and invalid - operations will return errors. If false, all operations will - be carried out in one transaction if and only if they are all - valid. Default is false. - validate_only: - If true, the request is validated but not executed. Only - errors are returned, not results. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.MutateCustomerNegativeCriteriaRequest) - )) -_sym_db.RegisterMessage(MutateCustomerNegativeCriteriaRequest) - -CustomerNegativeCriterionOperation = _reflection.GeneratedProtocolMessageType('CustomerNegativeCriterionOperation', (_message.Message,), dict( - DESCRIPTOR = _CUSTOMERNEGATIVECRITERIONOPERATION, - __module__ = 'google.ads.googleads_v1.proto.services.customer_negative_criterion_service_pb2' - , - __doc__ = """A single operation (create or remove) on a customer level negative - criterion. - - - Attributes: - operation: - The mutate operation. - create: - Create operation: No resource name is expected for the new - criterion. - remove: - Remove operation: A resource name for the removed criterion is - expected, in this format: ``customers/{customer_id}/customerN - egativeCriteria/{criterion_id}`` - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.CustomerNegativeCriterionOperation) - )) -_sym_db.RegisterMessage(CustomerNegativeCriterionOperation) - -MutateCustomerNegativeCriteriaResponse = _reflection.GeneratedProtocolMessageType('MutateCustomerNegativeCriteriaResponse', (_message.Message,), dict( - DESCRIPTOR = _MUTATECUSTOMERNEGATIVECRITERIARESPONSE, - __module__ = 'google.ads.googleads_v1.proto.services.customer_negative_criterion_service_pb2' - , - __doc__ = """Response message for customer negative criterion mutate. - - - Attributes: - partial_failure_error: - Errors that pertain to operation failures in the partial - failure mode. Returned only when partial\_failure = true and - all errors occur inside the operations. If any errors occur - outside the operations (e.g. auth errors), we return an RPC - level error. - results: - All results for the mutate. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.MutateCustomerNegativeCriteriaResponse) - )) -_sym_db.RegisterMessage(MutateCustomerNegativeCriteriaResponse) - -MutateCustomerNegativeCriteriaResult = _reflection.GeneratedProtocolMessageType('MutateCustomerNegativeCriteriaResult', (_message.Message,), dict( - DESCRIPTOR = _MUTATECUSTOMERNEGATIVECRITERIARESULT, - __module__ = 'google.ads.googleads_v1.proto.services.customer_negative_criterion_service_pb2' - , - __doc__ = """The result for the criterion mutate. - - - Attributes: - resource_name: - Returned for successful operations. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.MutateCustomerNegativeCriteriaResult) - )) -_sym_db.RegisterMessage(MutateCustomerNegativeCriteriaResult) - - -DESCRIPTOR._options = None - -_CUSTOMERNEGATIVECRITERIONSERVICE = _descriptor.ServiceDescriptor( - name='CustomerNegativeCriterionService', - full_name='google.ads.googleads.v1.services.CustomerNegativeCriterionService', - file=DESCRIPTOR, - index=0, - serialized_options=None, - serialized_start=940, - serialized_end=1464, - methods=[ - _descriptor.MethodDescriptor( - name='GetCustomerNegativeCriterion', - full_name='google.ads.googleads.v1.services.CustomerNegativeCriterionService.GetCustomerNegativeCriterion', - index=0, - containing_service=None, - input_type=_GETCUSTOMERNEGATIVECRITERIONREQUEST, - output_type=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_customer__negative__criterion__pb2._CUSTOMERNEGATIVECRITERION, - serialized_options=_b('\202\323\344\223\002<\022:/v1/{resource_name=customers/*/customerNegativeCriteria/*}'), - ), - _descriptor.MethodDescriptor( - name='MutateCustomerNegativeCriteria', - full_name='google.ads.googleads.v1.services.CustomerNegativeCriterionService.MutateCustomerNegativeCriteria', - index=1, - containing_service=None, - input_type=_MUTATECUSTOMERNEGATIVECRITERIAREQUEST, - output_type=_MUTATECUSTOMERNEGATIVECRITERIARESPONSE, - serialized_options=_b('\202\323\344\223\002B\"=/v1/customers/{customer_id=*}/customerNegativeCriteria:mutate:\001*'), - ), -]) -_sym_db.RegisterServiceDescriptor(_CUSTOMERNEGATIVECRITERIONSERVICE) - -DESCRIPTOR.services_by_name['CustomerNegativeCriterionService'] = _CUSTOMERNEGATIVECRITERIONSERVICE - -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/services/customer_service_pb2.py b/google/ads/google_ads/v1/proto/services/customer_service_pb2.py deleted file mode 100644 index 351af6717..000000000 --- a/google/ads/google_ads/v1/proto/services/customer_service_pb2.py +++ /dev/null @@ -1,550 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/services/customer_service.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.ads.google_ads.v1.proto.resources import customer_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_customer__pb2 -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 -from google.protobuf import field_mask_pb2 as google_dot_protobuf_dot_field__mask__pb2 -from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/services/customer_service.proto', - package='google.ads.googleads.v1.services', - syntax='proto3', - serialized_options=_b('\n$com.google.ads.googleads.v1.servicesB\024CustomerServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v1/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V1.Services\312\002 Google\\Ads\\GoogleAds\\V1\\Services\352\002$Google::Ads::GoogleAds::V1::Services'), - serialized_pb=_b('\n=google/ads/googleads_v1/proto/services/customer_service.proto\x12 google.ads.googleads.v1.services\x1a\x36google/ads/googleads_v1/proto/resources/customer.proto\x1a\x1cgoogle/api/annotations.proto\x1a google/protobuf/field_mask.proto\x1a\x1egoogle/protobuf/wrappers.proto\"+\n\x12GetCustomerRequest\x12\x15\n\rresource_name\x18\x01 \x01(\t\"\x8b\x01\n\x15MutateCustomerRequest\x12\x13\n\x0b\x63ustomer_id\x18\x01 \x01(\t\x12\x46\n\toperation\x18\x04 \x01(\x0b\x32\x33.google.ads.googleads.v1.services.CustomerOperation\x12\x15\n\rvalidate_only\x18\x05 \x01(\x08\"x\n\x1b\x43reateCustomerClientRequest\x12\x13\n\x0b\x63ustomer_id\x18\x01 \x01(\t\x12\x44\n\x0f\x63ustomer_client\x18\x02 \x01(\x0b\x32+.google.ads.googleads.v1.resources.Customer\"\x81\x01\n\x11\x43ustomerOperation\x12;\n\x06update\x18\x01 \x01(\x0b\x32+.google.ads.googleads.v1.resources.Customer\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"5\n\x1c\x43reateCustomerClientResponse\x12\x15\n\rresource_name\x18\x02 \x01(\t\"`\n\x16MutateCustomerResponse\x12\x46\n\x06result\x18\x02 \x01(\x0b\x32\x36.google.ads.googleads.v1.services.MutateCustomerResult\"-\n\x14MutateCustomerResult\x12\x15\n\rresource_name\x18\x01 \x01(\t\" \n\x1eListAccessibleCustomersRequest\"9\n\x1fListAccessibleCustomersResponse\x12\x16\n\x0eresource_names\x18\x01 \x03(\t2\x8b\x06\n\x0f\x43ustomerService\x12\x99\x01\n\x0bGetCustomer\x12\x34.google.ads.googleads.v1.services.GetCustomerRequest\x1a+.google.ads.googleads.v1.resources.Customer\"\'\x82\xd3\xe4\x93\x02!\x12\x1f/v1/{resource_name=customers/*}\x12\xb4\x01\n\x0eMutateCustomer\x12\x37.google.ads.googleads.v1.services.MutateCustomerRequest\x1a\x38.google.ads.googleads.v1.services.MutateCustomerResponse\"/\x82\xd3\xe4\x93\x02)\"$/v1/customers/{customer_id=*}:mutate:\x01*\x12\xcd\x01\n\x17ListAccessibleCustomers\x12@.google.ads.googleads.v1.services.ListAccessibleCustomersRequest\x1a\x41.google.ads.googleads.v1.services.ListAccessibleCustomersResponse\"-\x82\xd3\xe4\x93\x02\'\x12%/v1/customers:listAccessibleCustomers\x12\xd4\x01\n\x14\x43reateCustomerClient\x12=.google.ads.googleads.v1.services.CreateCustomerClientRequest\x1a>.google.ads.googleads.v1.services.CreateCustomerClientResponse\"=\x82\xd3\xe4\x93\x02\x37\"2/v1/customers/{customer_id=*}:createCustomerClient:\x01*B\xfb\x01\n$com.google.ads.googleads.v1.servicesB\x14\x43ustomerServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v1/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V1.Services\xca\x02 Google\\Ads\\GoogleAds\\V1\\Services\xea\x02$Google::Ads::GoogleAds::V1::Servicesb\x06proto3') - , - dependencies=[google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_customer__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_protobuf_dot_field__mask__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,]) - - - - -_GETCUSTOMERREQUEST = _descriptor.Descriptor( - name='GetCustomerRequest', - full_name='google.ads.googleads.v1.services.GetCustomerRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.services.GetCustomerRequest.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=251, - serialized_end=294, -) - - -_MUTATECUSTOMERREQUEST = _descriptor.Descriptor( - name='MutateCustomerRequest', - full_name='google.ads.googleads.v1.services.MutateCustomerRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='customer_id', full_name='google.ads.googleads.v1.services.MutateCustomerRequest.customer_id', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='operation', full_name='google.ads.googleads.v1.services.MutateCustomerRequest.operation', index=1, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='validate_only', full_name='google.ads.googleads.v1.services.MutateCustomerRequest.validate_only', index=2, - number=5, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=297, - serialized_end=436, -) - - -_CREATECUSTOMERCLIENTREQUEST = _descriptor.Descriptor( - name='CreateCustomerClientRequest', - full_name='google.ads.googleads.v1.services.CreateCustomerClientRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='customer_id', full_name='google.ads.googleads.v1.services.CreateCustomerClientRequest.customer_id', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='customer_client', full_name='google.ads.googleads.v1.services.CreateCustomerClientRequest.customer_client', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=438, - serialized_end=558, -) - - -_CUSTOMEROPERATION = _descriptor.Descriptor( - name='CustomerOperation', - full_name='google.ads.googleads.v1.services.CustomerOperation', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='update', full_name='google.ads.googleads.v1.services.CustomerOperation.update', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='update_mask', full_name='google.ads.googleads.v1.services.CustomerOperation.update_mask', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=561, - serialized_end=690, -) - - -_CREATECUSTOMERCLIENTRESPONSE = _descriptor.Descriptor( - name='CreateCustomerClientResponse', - full_name='google.ads.googleads.v1.services.CreateCustomerClientResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.services.CreateCustomerClientResponse.resource_name', index=0, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=692, - serialized_end=745, -) - - -_MUTATECUSTOMERRESPONSE = _descriptor.Descriptor( - name='MutateCustomerResponse', - full_name='google.ads.googleads.v1.services.MutateCustomerResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='result', full_name='google.ads.googleads.v1.services.MutateCustomerResponse.result', index=0, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=747, - serialized_end=843, -) - - -_MUTATECUSTOMERRESULT = _descriptor.Descriptor( - name='MutateCustomerResult', - full_name='google.ads.googleads.v1.services.MutateCustomerResult', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.services.MutateCustomerResult.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=845, - serialized_end=890, -) - - -_LISTACCESSIBLECUSTOMERSREQUEST = _descriptor.Descriptor( - name='ListAccessibleCustomersRequest', - full_name='google.ads.googleads.v1.services.ListAccessibleCustomersRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=892, - serialized_end=924, -) - - -_LISTACCESSIBLECUSTOMERSRESPONSE = _descriptor.Descriptor( - name='ListAccessibleCustomersResponse', - full_name='google.ads.googleads.v1.services.ListAccessibleCustomersResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_names', full_name='google.ads.googleads.v1.services.ListAccessibleCustomersResponse.resource_names', index=0, - number=1, type=9, cpp_type=9, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=926, - serialized_end=983, -) - -_MUTATECUSTOMERREQUEST.fields_by_name['operation'].message_type = _CUSTOMEROPERATION -_CREATECUSTOMERCLIENTREQUEST.fields_by_name['customer_client'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_customer__pb2._CUSTOMER -_CUSTOMEROPERATION.fields_by_name['update'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_customer__pb2._CUSTOMER -_CUSTOMEROPERATION.fields_by_name['update_mask'].message_type = google_dot_protobuf_dot_field__mask__pb2._FIELDMASK -_MUTATECUSTOMERRESPONSE.fields_by_name['result'].message_type = _MUTATECUSTOMERRESULT -DESCRIPTOR.message_types_by_name['GetCustomerRequest'] = _GETCUSTOMERREQUEST -DESCRIPTOR.message_types_by_name['MutateCustomerRequest'] = _MUTATECUSTOMERREQUEST -DESCRIPTOR.message_types_by_name['CreateCustomerClientRequest'] = _CREATECUSTOMERCLIENTREQUEST -DESCRIPTOR.message_types_by_name['CustomerOperation'] = _CUSTOMEROPERATION -DESCRIPTOR.message_types_by_name['CreateCustomerClientResponse'] = _CREATECUSTOMERCLIENTRESPONSE -DESCRIPTOR.message_types_by_name['MutateCustomerResponse'] = _MUTATECUSTOMERRESPONSE -DESCRIPTOR.message_types_by_name['MutateCustomerResult'] = _MUTATECUSTOMERRESULT -DESCRIPTOR.message_types_by_name['ListAccessibleCustomersRequest'] = _LISTACCESSIBLECUSTOMERSREQUEST -DESCRIPTOR.message_types_by_name['ListAccessibleCustomersResponse'] = _LISTACCESSIBLECUSTOMERSRESPONSE -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -GetCustomerRequest = _reflection.GeneratedProtocolMessageType('GetCustomerRequest', (_message.Message,), dict( - DESCRIPTOR = _GETCUSTOMERREQUEST, - __module__ = 'google.ads.googleads_v1.proto.services.customer_service_pb2' - , - __doc__ = """Request message for - [CustomerService.GetCustomer][google.ads.googleads.v1.services.CustomerService.GetCustomer]. - - - Attributes: - resource_name: - The resource name of the customer to fetch. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.GetCustomerRequest) - )) -_sym_db.RegisterMessage(GetCustomerRequest) - -MutateCustomerRequest = _reflection.GeneratedProtocolMessageType('MutateCustomerRequest', (_message.Message,), dict( - DESCRIPTOR = _MUTATECUSTOMERREQUEST, - __module__ = 'google.ads.googleads_v1.proto.services.customer_service_pb2' - , - __doc__ = """Request message for - [CustomerService.MutateCustomer][google.ads.googleads.v1.services.CustomerService.MutateCustomer]. - - - Attributes: - customer_id: - The ID of the customer being modified. - operation: - The operation to perform on the customer - validate_only: - If true, the request is validated but not executed. Only - errors are returned, not results. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.MutateCustomerRequest) - )) -_sym_db.RegisterMessage(MutateCustomerRequest) - -CreateCustomerClientRequest = _reflection.GeneratedProtocolMessageType('CreateCustomerClientRequest', (_message.Message,), dict( - DESCRIPTOR = _CREATECUSTOMERCLIENTREQUEST, - __module__ = 'google.ads.googleads_v1.proto.services.customer_service_pb2' - , - __doc__ = """Request message for - [CustomerService.CreateCustomerClient][google.ads.googleads.v1.services.CustomerService.CreateCustomerClient]. - - - Attributes: - customer_id: - The ID of the Manager under whom client customer is being - created. - customer_client: - The new client customer to create. The resource name on this - customer will be ignored. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.CreateCustomerClientRequest) - )) -_sym_db.RegisterMessage(CreateCustomerClientRequest) - -CustomerOperation = _reflection.GeneratedProtocolMessageType('CustomerOperation', (_message.Message,), dict( - DESCRIPTOR = _CUSTOMEROPERATION, - __module__ = 'google.ads.googleads_v1.proto.services.customer_service_pb2' - , - __doc__ = """A single update on a customer. - - - Attributes: - update: - Mutate operation. Only updates are supported for customer. - update_mask: - FieldMask that determines which resource fields are modified - in an update. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.CustomerOperation) - )) -_sym_db.RegisterMessage(CustomerOperation) - -CreateCustomerClientResponse = _reflection.GeneratedProtocolMessageType('CreateCustomerClientResponse', (_message.Message,), dict( - DESCRIPTOR = _CREATECUSTOMERCLIENTRESPONSE, - __module__ = 'google.ads.googleads_v1.proto.services.customer_service_pb2' - , - __doc__ = """Response message for CreateCustomerClient mutate. - - - Attributes: - resource_name: - The resource name of the newly created customer client. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.CreateCustomerClientResponse) - )) -_sym_db.RegisterMessage(CreateCustomerClientResponse) - -MutateCustomerResponse = _reflection.GeneratedProtocolMessageType('MutateCustomerResponse', (_message.Message,), dict( - DESCRIPTOR = _MUTATECUSTOMERRESPONSE, - __module__ = 'google.ads.googleads_v1.proto.services.customer_service_pb2' - , - __doc__ = """Response message for customer mutate. - - - Attributes: - result: - Result for the mutate. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.MutateCustomerResponse) - )) -_sym_db.RegisterMessage(MutateCustomerResponse) - -MutateCustomerResult = _reflection.GeneratedProtocolMessageType('MutateCustomerResult', (_message.Message,), dict( - DESCRIPTOR = _MUTATECUSTOMERRESULT, - __module__ = 'google.ads.googleads_v1.proto.services.customer_service_pb2' - , - __doc__ = """The result for the customer mutate. - - - Attributes: - resource_name: - Returned for successful operations. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.MutateCustomerResult) - )) -_sym_db.RegisterMessage(MutateCustomerResult) - -ListAccessibleCustomersRequest = _reflection.GeneratedProtocolMessageType('ListAccessibleCustomersRequest', (_message.Message,), dict( - DESCRIPTOR = _LISTACCESSIBLECUSTOMERSREQUEST, - __module__ = 'google.ads.googleads_v1.proto.services.customer_service_pb2' - , - __doc__ = """Request message for - [CustomerService.ListAccessibleCustomers][google.ads.googleads.v1.services.CustomerService.ListAccessibleCustomers]. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.ListAccessibleCustomersRequest) - )) -_sym_db.RegisterMessage(ListAccessibleCustomersRequest) - -ListAccessibleCustomersResponse = _reflection.GeneratedProtocolMessageType('ListAccessibleCustomersResponse', (_message.Message,), dict( - DESCRIPTOR = _LISTACCESSIBLECUSTOMERSRESPONSE, - __module__ = 'google.ads.googleads_v1.proto.services.customer_service_pb2' - , - __doc__ = """Response message for - [CustomerService.ListAccessibleCustomers][google.ads.googleads.v1.services.CustomerService.ListAccessibleCustomers]. - - - Attributes: - resource_names: - Resource name of customers directly accessible by the user - authenticating the call. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.ListAccessibleCustomersResponse) - )) -_sym_db.RegisterMessage(ListAccessibleCustomersResponse) - - -DESCRIPTOR._options = None - -_CUSTOMERSERVICE = _descriptor.ServiceDescriptor( - name='CustomerService', - full_name='google.ads.googleads.v1.services.CustomerService', - file=DESCRIPTOR, - index=0, - serialized_options=None, - serialized_start=986, - serialized_end=1765, - methods=[ - _descriptor.MethodDescriptor( - name='GetCustomer', - full_name='google.ads.googleads.v1.services.CustomerService.GetCustomer', - index=0, - containing_service=None, - input_type=_GETCUSTOMERREQUEST, - output_type=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_customer__pb2._CUSTOMER, - serialized_options=_b('\202\323\344\223\002!\022\037/v1/{resource_name=customers/*}'), - ), - _descriptor.MethodDescriptor( - name='MutateCustomer', - full_name='google.ads.googleads.v1.services.CustomerService.MutateCustomer', - index=1, - containing_service=None, - input_type=_MUTATECUSTOMERREQUEST, - output_type=_MUTATECUSTOMERRESPONSE, - serialized_options=_b('\202\323\344\223\002)\"$/v1/customers/{customer_id=*}:mutate:\001*'), - ), - _descriptor.MethodDescriptor( - name='ListAccessibleCustomers', - full_name='google.ads.googleads.v1.services.CustomerService.ListAccessibleCustomers', - index=2, - containing_service=None, - input_type=_LISTACCESSIBLECUSTOMERSREQUEST, - output_type=_LISTACCESSIBLECUSTOMERSRESPONSE, - serialized_options=_b('\202\323\344\223\002\'\022%/v1/customers:listAccessibleCustomers'), - ), - _descriptor.MethodDescriptor( - name='CreateCustomerClient', - full_name='google.ads.googleads.v1.services.CustomerService.CreateCustomerClient', - index=3, - containing_service=None, - input_type=_CREATECUSTOMERCLIENTREQUEST, - output_type=_CREATECUSTOMERCLIENTRESPONSE, - serialized_options=_b('\202\323\344\223\0027\"2/v1/customers/{customer_id=*}:createCustomerClient:\001*'), - ), -]) -_sym_db.RegisterServiceDescriptor(_CUSTOMERSERVICE) - -DESCRIPTOR.services_by_name['CustomerService'] = _CUSTOMERSERVICE - -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/services/customer_service_pb2_grpc.py b/google/ads/google_ads/v1/proto/services/customer_service_pb2_grpc.py deleted file mode 100644 index 8c9d5b1ab..000000000 --- a/google/ads/google_ads/v1/proto/services/customer_service_pb2_grpc.py +++ /dev/null @@ -1,103 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -import grpc - -from google.ads.google_ads.v1.proto.resources import customer_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_customer__pb2 -from google.ads.google_ads.v1.proto.services import customer_service_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_customer__service__pb2 - - -class CustomerServiceStub(object): - """Proto file describing the Customer service. - - Service to manage customers. - """ - - def __init__(self, channel): - """Constructor. - - Args: - channel: A grpc.Channel. - """ - self.GetCustomer = channel.unary_unary( - '/google.ads.googleads.v1.services.CustomerService/GetCustomer', - request_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_customer__service__pb2.GetCustomerRequest.SerializeToString, - response_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_customer__pb2.Customer.FromString, - ) - self.MutateCustomer = channel.unary_unary( - '/google.ads.googleads.v1.services.CustomerService/MutateCustomer', - request_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_customer__service__pb2.MutateCustomerRequest.SerializeToString, - response_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_customer__service__pb2.MutateCustomerResponse.FromString, - ) - self.ListAccessibleCustomers = channel.unary_unary( - '/google.ads.googleads.v1.services.CustomerService/ListAccessibleCustomers', - request_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_customer__service__pb2.ListAccessibleCustomersRequest.SerializeToString, - response_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_customer__service__pb2.ListAccessibleCustomersResponse.FromString, - ) - self.CreateCustomerClient = channel.unary_unary( - '/google.ads.googleads.v1.services.CustomerService/CreateCustomerClient', - request_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_customer__service__pb2.CreateCustomerClientRequest.SerializeToString, - response_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_customer__service__pb2.CreateCustomerClientResponse.FromString, - ) - - -class CustomerServiceServicer(object): - """Proto file describing the Customer service. - - Service to manage customers. - """ - - def GetCustomer(self, request, context): - """Returns the requested customer in full detail. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def MutateCustomer(self, request, context): - """Updates a customer. Operation statuses are returned. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ListAccessibleCustomers(self, request, context): - """Returns resource names of customers directly accessible by the - user authenticating the call. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def CreateCustomerClient(self, request, context): - """Creates a new client under manager. The new client customer is returned. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - -def add_CustomerServiceServicer_to_server(servicer, server): - rpc_method_handlers = { - 'GetCustomer': grpc.unary_unary_rpc_method_handler( - servicer.GetCustomer, - request_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_customer__service__pb2.GetCustomerRequest.FromString, - response_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_customer__pb2.Customer.SerializeToString, - ), - 'MutateCustomer': grpc.unary_unary_rpc_method_handler( - servicer.MutateCustomer, - request_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_customer__service__pb2.MutateCustomerRequest.FromString, - response_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_customer__service__pb2.MutateCustomerResponse.SerializeToString, - ), - 'ListAccessibleCustomers': grpc.unary_unary_rpc_method_handler( - servicer.ListAccessibleCustomers, - request_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_customer__service__pb2.ListAccessibleCustomersRequest.FromString, - response_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_customer__service__pb2.ListAccessibleCustomersResponse.SerializeToString, - ), - 'CreateCustomerClient': grpc.unary_unary_rpc_method_handler( - servicer.CreateCustomerClient, - request_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_customer__service__pb2.CreateCustomerClientRequest.FromString, - response_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_customer__service__pb2.CreateCustomerClientResponse.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'google.ads.googleads.v1.services.CustomerService', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) diff --git a/google/ads/google_ads/v1/proto/services/detail_placement_view_service_pb2.py b/google/ads/google_ads/v1/proto/services/detail_placement_view_service_pb2.py deleted file mode 100644 index 10f2306f7..000000000 --- a/google/ads/google_ads/v1/proto/services/detail_placement_view_service_pb2.py +++ /dev/null @@ -1,107 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/services/detail_placement_view_service.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.ads.google_ads.v1.proto.resources import detail_placement_view_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_detail__placement__view__pb2 -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/services/detail_placement_view_service.proto', - package='google.ads.googleads.v1.services', - syntax='proto3', - serialized_options=_b('\n$com.google.ads.googleads.v1.servicesB\037DetailPlacementViewServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v1/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V1.Services\312\002 Google\\Ads\\GoogleAds\\V1\\Services\352\002$Google::Ads::GoogleAds::V1::Services'), - serialized_pb=_b('\nJgoogle/ads/googleads_v1/proto/services/detail_placement_view_service.proto\x12 google.ads.googleads.v1.services\x1a\x43google/ads/googleads_v1/proto/resources/detail_placement_view.proto\x1a\x1cgoogle/api/annotations.proto\"6\n\x1dGetDetailPlacementViewRequest\x12\x15\n\rresource_name\x18\x01 \x01(\t2\xf0\x01\n\x1a\x44\x65tailPlacementViewService\x12\xd1\x01\n\x16GetDetailPlacementView\x12?.google.ads.googleads.v1.services.GetDetailPlacementViewRequest\x1a\x36.google.ads.googleads.v1.resources.DetailPlacementView\">\x82\xd3\xe4\x93\x02\x38\x12\x36/v1/{resource_name=customers/*/detailPlacementViews/*}B\x86\x02\n$com.google.ads.googleads.v1.servicesB\x1f\x44\x65tailPlacementViewServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v1/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V1.Services\xca\x02 Google\\Ads\\GoogleAds\\V1\\Services\xea\x02$Google::Ads::GoogleAds::V1::Servicesb\x06proto3') - , - dependencies=[google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_detail__placement__view__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - - -_GETDETAILPLACEMENTVIEWREQUEST = _descriptor.Descriptor( - name='GetDetailPlacementViewRequest', - full_name='google.ads.googleads.v1.services.GetDetailPlacementViewRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.services.GetDetailPlacementViewRequest.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=211, - serialized_end=265, -) - -DESCRIPTOR.message_types_by_name['GetDetailPlacementViewRequest'] = _GETDETAILPLACEMENTVIEWREQUEST -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -GetDetailPlacementViewRequest = _reflection.GeneratedProtocolMessageType('GetDetailPlacementViewRequest', (_message.Message,), dict( - DESCRIPTOR = _GETDETAILPLACEMENTVIEWREQUEST, - __module__ = 'google.ads.googleads_v1.proto.services.detail_placement_view_service_pb2' - , - __doc__ = """Request message for - [DetailPlacementViewService.GetDetailPlacementView][google.ads.googleads.v1.services.DetailPlacementViewService.GetDetailPlacementView]. - - - Attributes: - resource_name: - The resource name of the Detail Placement view to fetch. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.GetDetailPlacementViewRequest) - )) -_sym_db.RegisterMessage(GetDetailPlacementViewRequest) - - -DESCRIPTOR._options = None - -_DETAILPLACEMENTVIEWSERVICE = _descriptor.ServiceDescriptor( - name='DetailPlacementViewService', - full_name='google.ads.googleads.v1.services.DetailPlacementViewService', - file=DESCRIPTOR, - index=0, - serialized_options=None, - serialized_start=268, - serialized_end=508, - methods=[ - _descriptor.MethodDescriptor( - name='GetDetailPlacementView', - full_name='google.ads.googleads.v1.services.DetailPlacementViewService.GetDetailPlacementView', - index=0, - containing_service=None, - input_type=_GETDETAILPLACEMENTVIEWREQUEST, - output_type=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_detail__placement__view__pb2._DETAILPLACEMENTVIEW, - serialized_options=_b('\202\323\344\223\0028\0226/v1/{resource_name=customers/*/detailPlacementViews/*}'), - ), -]) -_sym_db.RegisterServiceDescriptor(_DETAILPLACEMENTVIEWSERVICE) - -DESCRIPTOR.services_by_name['DetailPlacementViewService'] = _DETAILPLACEMENTVIEWSERVICE - -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/services/detail_placement_view_service_pb2_grpc.py b/google/ads/google_ads/v1/proto/services/detail_placement_view_service_pb2_grpc.py deleted file mode 100644 index 3b6930969..000000000 --- a/google/ads/google_ads/v1/proto/services/detail_placement_view_service_pb2_grpc.py +++ /dev/null @@ -1,51 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -import grpc - -from google.ads.google_ads.v1.proto.resources import detail_placement_view_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_detail__placement__view__pb2 -from google.ads.google_ads.v1.proto.services import detail_placement_view_service_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_detail__placement__view__service__pb2 - - -class DetailPlacementViewServiceStub(object): - """Proto file describing the Detail Placement View service. - - Service to fetch Detail Placement views. - """ - - def __init__(self, channel): - """Constructor. - - Args: - channel: A grpc.Channel. - """ - self.GetDetailPlacementView = channel.unary_unary( - '/google.ads.googleads.v1.services.DetailPlacementViewService/GetDetailPlacementView', - request_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_detail__placement__view__service__pb2.GetDetailPlacementViewRequest.SerializeToString, - response_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_detail__placement__view__pb2.DetailPlacementView.FromString, - ) - - -class DetailPlacementViewServiceServicer(object): - """Proto file describing the Detail Placement View service. - - Service to fetch Detail Placement views. - """ - - def GetDetailPlacementView(self, request, context): - """Returns the requested Detail Placement view in full detail. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - -def add_DetailPlacementViewServiceServicer_to_server(servicer, server): - rpc_method_handlers = { - 'GetDetailPlacementView': grpc.unary_unary_rpc_method_handler( - servicer.GetDetailPlacementView, - request_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_detail__placement__view__service__pb2.GetDetailPlacementViewRequest.FromString, - response_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_detail__placement__view__pb2.DetailPlacementView.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'google.ads.googleads.v1.services.DetailPlacementViewService', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) diff --git a/google/ads/google_ads/v1/proto/services/display_keyword_view_service_pb2.py b/google/ads/google_ads/v1/proto/services/display_keyword_view_service_pb2.py deleted file mode 100644 index 922d4e261..000000000 --- a/google/ads/google_ads/v1/proto/services/display_keyword_view_service_pb2.py +++ /dev/null @@ -1,107 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/services/display_keyword_view_service.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.ads.google_ads.v1.proto.resources import display_keyword_view_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_display__keyword__view__pb2 -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/services/display_keyword_view_service.proto', - package='google.ads.googleads.v1.services', - syntax='proto3', - serialized_options=_b('\n$com.google.ads.googleads.v1.servicesB\036DisplayKeywordViewServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v1/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V1.Services\312\002 Google\\Ads\\GoogleAds\\V1\\Services\352\002$Google::Ads::GoogleAds::V1::Services'), - serialized_pb=_b('\nIgoogle/ads/googleads_v1/proto/services/display_keyword_view_service.proto\x12 google.ads.googleads.v1.services\x1a\x42google/ads/googleads_v1/proto/resources/display_keyword_view.proto\x1a\x1cgoogle/api/annotations.proto\"5\n\x1cGetDisplayKeywordViewRequest\x12\x15\n\rresource_name\x18\x01 \x01(\t2\xeb\x01\n\x19\x44isplayKeywordViewService\x12\xcd\x01\n\x15GetDisplayKeywordView\x12>.google.ads.googleads.v1.services.GetDisplayKeywordViewRequest\x1a\x35.google.ads.googleads.v1.resources.DisplayKeywordView\"=\x82\xd3\xe4\x93\x02\x37\x12\x35/v1/{resource_name=customers/*/displayKeywordViews/*}B\x85\x02\n$com.google.ads.googleads.v1.servicesB\x1e\x44isplayKeywordViewServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v1/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V1.Services\xca\x02 Google\\Ads\\GoogleAds\\V1\\Services\xea\x02$Google::Ads::GoogleAds::V1::Servicesb\x06proto3') - , - dependencies=[google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_display__keyword__view__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - - -_GETDISPLAYKEYWORDVIEWREQUEST = _descriptor.Descriptor( - name='GetDisplayKeywordViewRequest', - full_name='google.ads.googleads.v1.services.GetDisplayKeywordViewRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.services.GetDisplayKeywordViewRequest.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=209, - serialized_end=262, -) - -DESCRIPTOR.message_types_by_name['GetDisplayKeywordViewRequest'] = _GETDISPLAYKEYWORDVIEWREQUEST -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -GetDisplayKeywordViewRequest = _reflection.GeneratedProtocolMessageType('GetDisplayKeywordViewRequest', (_message.Message,), dict( - DESCRIPTOR = _GETDISPLAYKEYWORDVIEWREQUEST, - __module__ = 'google.ads.googleads_v1.proto.services.display_keyword_view_service_pb2' - , - __doc__ = """Request message for - [DisplayKeywordViewService.GetDisplayKeywordView][google.ads.googleads.v1.services.DisplayKeywordViewService.GetDisplayKeywordView]. - - - Attributes: - resource_name: - The resource name of the display keyword view to fetch. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.GetDisplayKeywordViewRequest) - )) -_sym_db.RegisterMessage(GetDisplayKeywordViewRequest) - - -DESCRIPTOR._options = None - -_DISPLAYKEYWORDVIEWSERVICE = _descriptor.ServiceDescriptor( - name='DisplayKeywordViewService', - full_name='google.ads.googleads.v1.services.DisplayKeywordViewService', - file=DESCRIPTOR, - index=0, - serialized_options=None, - serialized_start=265, - serialized_end=500, - methods=[ - _descriptor.MethodDescriptor( - name='GetDisplayKeywordView', - full_name='google.ads.googleads.v1.services.DisplayKeywordViewService.GetDisplayKeywordView', - index=0, - containing_service=None, - input_type=_GETDISPLAYKEYWORDVIEWREQUEST, - output_type=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_display__keyword__view__pb2._DISPLAYKEYWORDVIEW, - serialized_options=_b('\202\323\344\223\0027\0225/v1/{resource_name=customers/*/displayKeywordViews/*}'), - ), -]) -_sym_db.RegisterServiceDescriptor(_DISPLAYKEYWORDVIEWSERVICE) - -DESCRIPTOR.services_by_name['DisplayKeywordViewService'] = _DISPLAYKEYWORDVIEWSERVICE - -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/services/display_keyword_view_service_pb2_grpc.py b/google/ads/google_ads/v1/proto/services/display_keyword_view_service_pb2_grpc.py deleted file mode 100644 index 8fad0913d..000000000 --- a/google/ads/google_ads/v1/proto/services/display_keyword_view_service_pb2_grpc.py +++ /dev/null @@ -1,51 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -import grpc - -from google.ads.google_ads.v1.proto.resources import display_keyword_view_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_display__keyword__view__pb2 -from google.ads.google_ads.v1.proto.services import display_keyword_view_service_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_display__keyword__view__service__pb2 - - -class DisplayKeywordViewServiceStub(object): - """Proto file describing the Display Keyword View service. - - Service to manage display keyword views. - """ - - def __init__(self, channel): - """Constructor. - - Args: - channel: A grpc.Channel. - """ - self.GetDisplayKeywordView = channel.unary_unary( - '/google.ads.googleads.v1.services.DisplayKeywordViewService/GetDisplayKeywordView', - request_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_display__keyword__view__service__pb2.GetDisplayKeywordViewRequest.SerializeToString, - response_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_display__keyword__view__pb2.DisplayKeywordView.FromString, - ) - - -class DisplayKeywordViewServiceServicer(object): - """Proto file describing the Display Keyword View service. - - Service to manage display keyword views. - """ - - def GetDisplayKeywordView(self, request, context): - """Returns the requested display keyword view in full detail. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - -def add_DisplayKeywordViewServiceServicer_to_server(servicer, server): - rpc_method_handlers = { - 'GetDisplayKeywordView': grpc.unary_unary_rpc_method_handler( - servicer.GetDisplayKeywordView, - request_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_display__keyword__view__service__pb2.GetDisplayKeywordViewRequest.FromString, - response_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_display__keyword__view__pb2.DisplayKeywordView.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'google.ads.googleads.v1.services.DisplayKeywordViewService', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) diff --git a/google/ads/google_ads/v1/proto/services/domain_category_service_pb2.py b/google/ads/google_ads/v1/proto/services/domain_category_service_pb2.py deleted file mode 100644 index 64ea12a06..000000000 --- a/google/ads/google_ads/v1/proto/services/domain_category_service_pb2.py +++ /dev/null @@ -1,107 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/services/domain_category_service.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.ads.google_ads.v1.proto.resources import domain_category_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_domain__category__pb2 -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/services/domain_category_service.proto', - package='google.ads.googleads.v1.services', - syntax='proto3', - serialized_options=_b('\n$com.google.ads.googleads.v1.servicesB\032DomainCategoryServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v1/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V1.Services\312\002 Google\\Ads\\GoogleAds\\V1\\Services\352\002$Google::Ads::GoogleAds::V1::Services'), - serialized_pb=_b('\nDgoogle/ads/googleads_v1/proto/services/domain_category_service.proto\x12 google.ads.googleads.v1.services\x1a=google/ads/googleads_v1/proto/resources/domain_category.proto\x1a\x1cgoogle/api/annotations.proto\"1\n\x18GetDomainCategoryRequest\x12\x15\n\rresource_name\x18\x01 \x01(\t2\xd8\x01\n\x15\x44omainCategoryService\x12\xbe\x01\n\x11GetDomainCategory\x12:.google.ads.googleads.v1.services.GetDomainCategoryRequest\x1a\x31.google.ads.googleads.v1.resources.DomainCategory\":\x82\xd3\xe4\x93\x02\x34\x12\x32/v1/{resource_name=customers/*/domainCategories/*}B\x81\x02\n$com.google.ads.googleads.v1.servicesB\x1a\x44omainCategoryServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v1/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V1.Services\xca\x02 Google\\Ads\\GoogleAds\\V1\\Services\xea\x02$Google::Ads::GoogleAds::V1::Servicesb\x06proto3') - , - dependencies=[google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_domain__category__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - - -_GETDOMAINCATEGORYREQUEST = _descriptor.Descriptor( - name='GetDomainCategoryRequest', - full_name='google.ads.googleads.v1.services.GetDomainCategoryRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.services.GetDomainCategoryRequest.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=199, - serialized_end=248, -) - -DESCRIPTOR.message_types_by_name['GetDomainCategoryRequest'] = _GETDOMAINCATEGORYREQUEST -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -GetDomainCategoryRequest = _reflection.GeneratedProtocolMessageType('GetDomainCategoryRequest', (_message.Message,), dict( - DESCRIPTOR = _GETDOMAINCATEGORYREQUEST, - __module__ = 'google.ads.googleads_v1.proto.services.domain_category_service_pb2' - , - __doc__ = """Request message for - [DomainCategoryService.GetDomainCategory][google.ads.googleads.v1.services.DomainCategoryService.GetDomainCategory]. - - - Attributes: - resource_name: - Resource name of the domain category to fetch. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.GetDomainCategoryRequest) - )) -_sym_db.RegisterMessage(GetDomainCategoryRequest) - - -DESCRIPTOR._options = None - -_DOMAINCATEGORYSERVICE = _descriptor.ServiceDescriptor( - name='DomainCategoryService', - full_name='google.ads.googleads.v1.services.DomainCategoryService', - file=DESCRIPTOR, - index=0, - serialized_options=None, - serialized_start=251, - serialized_end=467, - methods=[ - _descriptor.MethodDescriptor( - name='GetDomainCategory', - full_name='google.ads.googleads.v1.services.DomainCategoryService.GetDomainCategory', - index=0, - containing_service=None, - input_type=_GETDOMAINCATEGORYREQUEST, - output_type=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_domain__category__pb2._DOMAINCATEGORY, - serialized_options=_b('\202\323\344\223\0024\0222/v1/{resource_name=customers/*/domainCategories/*}'), - ), -]) -_sym_db.RegisterServiceDescriptor(_DOMAINCATEGORYSERVICE) - -DESCRIPTOR.services_by_name['DomainCategoryService'] = _DOMAINCATEGORYSERVICE - -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/services/domain_category_service_pb2_grpc.py b/google/ads/google_ads/v1/proto/services/domain_category_service_pb2_grpc.py deleted file mode 100644 index dffd135ad..000000000 --- a/google/ads/google_ads/v1/proto/services/domain_category_service_pb2_grpc.py +++ /dev/null @@ -1,51 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -import grpc - -from google.ads.google_ads.v1.proto.resources import domain_category_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_domain__category__pb2 -from google.ads.google_ads.v1.proto.services import domain_category_service_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_domain__category__service__pb2 - - -class DomainCategoryServiceStub(object): - """Proto file describing the DomainCategory Service. - - Service to fetch domain categories. - """ - - def __init__(self, channel): - """Constructor. - - Args: - channel: A grpc.Channel. - """ - self.GetDomainCategory = channel.unary_unary( - '/google.ads.googleads.v1.services.DomainCategoryService/GetDomainCategory', - request_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_domain__category__service__pb2.GetDomainCategoryRequest.SerializeToString, - response_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_domain__category__pb2.DomainCategory.FromString, - ) - - -class DomainCategoryServiceServicer(object): - """Proto file describing the DomainCategory Service. - - Service to fetch domain categories. - """ - - def GetDomainCategory(self, request, context): - """Returns the requested domain category. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - -def add_DomainCategoryServiceServicer_to_server(servicer, server): - rpc_method_handlers = { - 'GetDomainCategory': grpc.unary_unary_rpc_method_handler( - servicer.GetDomainCategory, - request_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_domain__category__service__pb2.GetDomainCategoryRequest.FromString, - response_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_domain__category__pb2.DomainCategory.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'google.ads.googleads.v1.services.DomainCategoryService', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) diff --git a/google/ads/google_ads/v1/proto/services/dynamic_search_ads_search_term_view_service_pb2.py b/google/ads/google_ads/v1/proto/services/dynamic_search_ads_search_term_view_service_pb2.py deleted file mode 100644 index df37ed76d..000000000 --- a/google/ads/google_ads/v1/proto/services/dynamic_search_ads_search_term_view_service_pb2.py +++ /dev/null @@ -1,108 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/services/dynamic_search_ads_search_term_view_service.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.ads.google_ads.v1.proto.resources import dynamic_search_ads_search_term_view_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_dynamic__search__ads__search__term__view__pb2 -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/services/dynamic_search_ads_search_term_view_service.proto', - package='google.ads.googleads.v1.services', - syntax='proto3', - serialized_options=_b('\n$com.google.ads.googleads.v1.servicesB*DynamicSearchAdsSearchTermViewServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v1/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V1.Services\312\002 Google\\Ads\\GoogleAds\\V1\\Services\352\002$Google::Ads::GoogleAds::V1::Services'), - serialized_pb=_b('\nXgoogle/ads/googleads_v1/proto/services/dynamic_search_ads_search_term_view_service.proto\x12 google.ads.googleads.v1.services\x1aQgoogle/ads/googleads_v1/proto/resources/dynamic_search_ads_search_term_view.proto\x1a\x1cgoogle/api/annotations.proto\"A\n(GetDynamicSearchAdsSearchTermViewRequest\x12\x15\n\rresource_name\x18\x01 \x01(\t2\xa7\x02\n%DynamicSearchAdsSearchTermViewService\x12\xfd\x01\n!GetDynamicSearchAdsSearchTermView\x12J.google.ads.googleads.v1.services.GetDynamicSearchAdsSearchTermViewRequest\x1a\x41.google.ads.googleads.v1.resources.DynamicSearchAdsSearchTermView\"I\x82\xd3\xe4\x93\x02\x43\x12\x41/v1/{resource_name=customers/*/dynamicSearchAdsSearchTermViews/*}B\x91\x02\n$com.google.ads.googleads.v1.servicesB*DynamicSearchAdsSearchTermViewServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v1/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V1.Services\xca\x02 Google\\Ads\\GoogleAds\\V1\\Services\xea\x02$Google::Ads::GoogleAds::V1::Servicesb\x06proto3') - , - dependencies=[google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_dynamic__search__ads__search__term__view__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - - -_GETDYNAMICSEARCHADSSEARCHTERMVIEWREQUEST = _descriptor.Descriptor( - name='GetDynamicSearchAdsSearchTermViewRequest', - full_name='google.ads.googleads.v1.services.GetDynamicSearchAdsSearchTermViewRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.services.GetDynamicSearchAdsSearchTermViewRequest.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=239, - serialized_end=304, -) - -DESCRIPTOR.message_types_by_name['GetDynamicSearchAdsSearchTermViewRequest'] = _GETDYNAMICSEARCHADSSEARCHTERMVIEWREQUEST -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -GetDynamicSearchAdsSearchTermViewRequest = _reflection.GeneratedProtocolMessageType('GetDynamicSearchAdsSearchTermViewRequest', (_message.Message,), dict( - DESCRIPTOR = _GETDYNAMICSEARCHADSSEARCHTERMVIEWREQUEST, - __module__ = 'google.ads.googleads_v1.proto.services.dynamic_search_ads_search_term_view_service_pb2' - , - __doc__ = """Request message for - [DynamicSearchAdsSearchTermViewService.GetDynamicSearchAdsSearchTermView][google.ads.googleads.v1.services.DynamicSearchAdsSearchTermViewService.GetDynamicSearchAdsSearchTermView]. - - - Attributes: - resource_name: - The resource name of the dynamic search ads search term view - to fetch. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.GetDynamicSearchAdsSearchTermViewRequest) - )) -_sym_db.RegisterMessage(GetDynamicSearchAdsSearchTermViewRequest) - - -DESCRIPTOR._options = None - -_DYNAMICSEARCHADSSEARCHTERMVIEWSERVICE = _descriptor.ServiceDescriptor( - name='DynamicSearchAdsSearchTermViewService', - full_name='google.ads.googleads.v1.services.DynamicSearchAdsSearchTermViewService', - file=DESCRIPTOR, - index=0, - serialized_options=None, - serialized_start=307, - serialized_end=602, - methods=[ - _descriptor.MethodDescriptor( - name='GetDynamicSearchAdsSearchTermView', - full_name='google.ads.googleads.v1.services.DynamicSearchAdsSearchTermViewService.GetDynamicSearchAdsSearchTermView', - index=0, - containing_service=None, - input_type=_GETDYNAMICSEARCHADSSEARCHTERMVIEWREQUEST, - output_type=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_dynamic__search__ads__search__term__view__pb2._DYNAMICSEARCHADSSEARCHTERMVIEW, - serialized_options=_b('\202\323\344\223\002C\022A/v1/{resource_name=customers/*/dynamicSearchAdsSearchTermViews/*}'), - ), -]) -_sym_db.RegisterServiceDescriptor(_DYNAMICSEARCHADSSEARCHTERMVIEWSERVICE) - -DESCRIPTOR.services_by_name['DynamicSearchAdsSearchTermViewService'] = _DYNAMICSEARCHADSSEARCHTERMVIEWSERVICE - -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/services/expanded_landing_page_view_service_pb2.py b/google/ads/google_ads/v1/proto/services/expanded_landing_page_view_service_pb2.py deleted file mode 100644 index bc152fc3f..000000000 --- a/google/ads/google_ads/v1/proto/services/expanded_landing_page_view_service_pb2.py +++ /dev/null @@ -1,108 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/services/expanded_landing_page_view_service.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.ads.google_ads.v1.proto.resources import expanded_landing_page_view_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_expanded__landing__page__view__pb2 -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 -from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/services/expanded_landing_page_view_service.proto', - package='google.ads.googleads.v1.services', - syntax='proto3', - serialized_options=_b('\n$com.google.ads.googleads.v1.servicesB#ExpandedLandingPageViewServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v1/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V1.Services\312\002 Google\\Ads\\GoogleAds\\V1\\Services\352\002$Google::Ads::GoogleAds::V1::Services'), - serialized_pb=_b('\nOgoogle/ads/googleads_v1/proto/services/expanded_landing_page_view_service.proto\x12 google.ads.googleads.v1.services\x1aHgoogle/ads/googleads_v1/proto/resources/expanded_landing_page_view.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x1egoogle/protobuf/wrappers.proto\":\n!GetExpandedLandingPageViewRequest\x12\x15\n\rresource_name\x18\x01 \x01(\t2\x84\x02\n\x1e\x45xpandedLandingPageViewService\x12\xe1\x01\n\x1aGetExpandedLandingPageView\x12\x43.google.ads.googleads.v1.services.GetExpandedLandingPageViewRequest\x1a:.google.ads.googleads.v1.resources.ExpandedLandingPageView\"B\x82\xd3\xe4\x93\x02<\x12:/v1/{resource_name=customers/*/expandedLandingPageViews/*}B\x8a\x02\n$com.google.ads.googleads.v1.servicesB#ExpandedLandingPageViewServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v1/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V1.Services\xca\x02 Google\\Ads\\GoogleAds\\V1\\Services\xea\x02$Google::Ads::GoogleAds::V1::Servicesb\x06proto3') - , - dependencies=[google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_expanded__landing__page__view__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,]) - - - - -_GETEXPANDEDLANDINGPAGEVIEWREQUEST = _descriptor.Descriptor( - name='GetExpandedLandingPageViewRequest', - full_name='google.ads.googleads.v1.services.GetExpandedLandingPageViewRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.services.GetExpandedLandingPageViewRequest.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=253, - serialized_end=311, -) - -DESCRIPTOR.message_types_by_name['GetExpandedLandingPageViewRequest'] = _GETEXPANDEDLANDINGPAGEVIEWREQUEST -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -GetExpandedLandingPageViewRequest = _reflection.GeneratedProtocolMessageType('GetExpandedLandingPageViewRequest', (_message.Message,), dict( - DESCRIPTOR = _GETEXPANDEDLANDINGPAGEVIEWREQUEST, - __module__ = 'google.ads.googleads_v1.proto.services.expanded_landing_page_view_service_pb2' - , - __doc__ = """Request message for - [ExpandedLandingPageViewService.GetExpandedLandingPageView][google.ads.googleads.v1.services.ExpandedLandingPageViewService.GetExpandedLandingPageView]. - - - Attributes: - resource_name: - The resource name of the expanded landing page view to fetch. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.GetExpandedLandingPageViewRequest) - )) -_sym_db.RegisterMessage(GetExpandedLandingPageViewRequest) - - -DESCRIPTOR._options = None - -_EXPANDEDLANDINGPAGEVIEWSERVICE = _descriptor.ServiceDescriptor( - name='ExpandedLandingPageViewService', - full_name='google.ads.googleads.v1.services.ExpandedLandingPageViewService', - file=DESCRIPTOR, - index=0, - serialized_options=None, - serialized_start=314, - serialized_end=574, - methods=[ - _descriptor.MethodDescriptor( - name='GetExpandedLandingPageView', - full_name='google.ads.googleads.v1.services.ExpandedLandingPageViewService.GetExpandedLandingPageView', - index=0, - containing_service=None, - input_type=_GETEXPANDEDLANDINGPAGEVIEWREQUEST, - output_type=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_expanded__landing__page__view__pb2._EXPANDEDLANDINGPAGEVIEW, - serialized_options=_b('\202\323\344\223\002<\022:/v1/{resource_name=customers/*/expandedLandingPageViews/*}'), - ), -]) -_sym_db.RegisterServiceDescriptor(_EXPANDEDLANDINGPAGEVIEWSERVICE) - -DESCRIPTOR.services_by_name['ExpandedLandingPageViewService'] = _EXPANDEDLANDINGPAGEVIEWSERVICE - -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/services/expanded_landing_page_view_service_pb2_grpc.py b/google/ads/google_ads/v1/proto/services/expanded_landing_page_view_service_pb2_grpc.py deleted file mode 100644 index a3d6c401e..000000000 --- a/google/ads/google_ads/v1/proto/services/expanded_landing_page_view_service_pb2_grpc.py +++ /dev/null @@ -1,51 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -import grpc - -from google.ads.google_ads.v1.proto.resources import expanded_landing_page_view_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_expanded__landing__page__view__pb2 -from google.ads.google_ads.v1.proto.services import expanded_landing_page_view_service_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_expanded__landing__page__view__service__pb2 - - -class ExpandedLandingPageViewServiceStub(object): - """Proto file describing the expanded landing page view service. - - Service to fetch expanded landing page views. - """ - - def __init__(self, channel): - """Constructor. - - Args: - channel: A grpc.Channel. - """ - self.GetExpandedLandingPageView = channel.unary_unary( - '/google.ads.googleads.v1.services.ExpandedLandingPageViewService/GetExpandedLandingPageView', - request_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_expanded__landing__page__view__service__pb2.GetExpandedLandingPageViewRequest.SerializeToString, - response_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_expanded__landing__page__view__pb2.ExpandedLandingPageView.FromString, - ) - - -class ExpandedLandingPageViewServiceServicer(object): - """Proto file describing the expanded landing page view service. - - Service to fetch expanded landing page views. - """ - - def GetExpandedLandingPageView(self, request, context): - """Returns the requested expanded landing page view in full detail. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - -def add_ExpandedLandingPageViewServiceServicer_to_server(servicer, server): - rpc_method_handlers = { - 'GetExpandedLandingPageView': grpc.unary_unary_rpc_method_handler( - servicer.GetExpandedLandingPageView, - request_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_expanded__landing__page__view__service__pb2.GetExpandedLandingPageViewRequest.FromString, - response_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_expanded__landing__page__view__pb2.ExpandedLandingPageView.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'google.ads.googleads.v1.services.ExpandedLandingPageViewService', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) diff --git a/google/ads/google_ads/v1/proto/services/extension_feed_item_service_pb2.py b/google/ads/google_ads/v1/proto/services/extension_feed_item_service_pb2.py deleted file mode 100644 index ab32b1c00..000000000 --- a/google/ads/google_ads/v1/proto/services/extension_feed_item_service_pb2.py +++ /dev/null @@ -1,379 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/services/extension_feed_item_service.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.ads.google_ads.v1.proto.resources import extension_feed_item_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_extension__feed__item__pb2 -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 -from google.protobuf import field_mask_pb2 as google_dot_protobuf_dot_field__mask__pb2 -from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/services/extension_feed_item_service.proto', - package='google.ads.googleads.v1.services', - syntax='proto3', - serialized_options=_b('\n$com.google.ads.googleads.v1.servicesB\035ExtensionFeedItemServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v1/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V1.Services\312\002 Google\\Ads\\GoogleAds\\V1\\Services\352\002$Google::Ads::GoogleAds::V1::Services'), - serialized_pb=_b('\nHgoogle/ads/googleads_v1/proto/services/extension_feed_item_service.proto\x12 google.ads.googleads.v1.services\x1a\x41google/ads/googleads_v1/proto/resources/extension_feed_item.proto\x1a\x1cgoogle/api/annotations.proto\x1a google/protobuf/field_mask.proto\x1a\x1egoogle/protobuf/wrappers.proto\"4\n\x1bGetExtensionFeedItemRequest\x12\x15\n\rresource_name\x18\x01 \x01(\t\"\x9f\x01\n\x1fMutateExtensionFeedItemsRequest\x12\x13\n\x0b\x63ustomer_id\x18\x01 \x01(\t\x12P\n\noperations\x18\x02 \x03(\x0b\x32<.google.ads.googleads.v1.services.ExtensionFeedItemOperation\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\"\xfc\x01\n\x1a\x45xtensionFeedItemOperation\x12/\n\x0bupdate_mask\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12\x46\n\x06\x63reate\x18\x01 \x01(\x0b\x32\x34.google.ads.googleads.v1.resources.ExtensionFeedItemH\x00\x12\x46\n\x06update\x18\x02 \x01(\x0b\x32\x34.google.ads.googleads.v1.resources.ExtensionFeedItemH\x00\x12\x10\n\x06remove\x18\x03 \x01(\tH\x00\x42\x0b\n\toperation\"t\n MutateExtensionFeedItemsResponse\x12P\n\x07results\x18\x02 \x03(\x0b\x32?.google.ads.googleads.v1.services.MutateExtensionFeedItemResult\"6\n\x1dMutateExtensionFeedItemResult\x12\x15\n\rresource_name\x18\x01 \x01(\t2\xce\x03\n\x18\x45xtensionFeedItemService\x12\xc9\x01\n\x14GetExtensionFeedItem\x12=.google.ads.googleads.v1.services.GetExtensionFeedItemRequest\x1a\x34.google.ads.googleads.v1.resources.ExtensionFeedItem\"<\x82\xd3\xe4\x93\x02\x36\x12\x34/v1/{resource_name=customers/*/extensionFeedItems/*}\x12\xe5\x01\n\x18MutateExtensionFeedItems\x12\x41.google.ads.googleads.v1.services.MutateExtensionFeedItemsRequest\x1a\x42.google.ads.googleads.v1.services.MutateExtensionFeedItemsResponse\"B\x82\xd3\xe4\x93\x02<\"7/v1/customers/{customer_id=*}/extensionFeedItems:mutate:\x01*B\x84\x02\n$com.google.ads.googleads.v1.servicesB\x1d\x45xtensionFeedItemServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v1/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V1.Services\xca\x02 Google\\Ads\\GoogleAds\\V1\\Services\xea\x02$Google::Ads::GoogleAds::V1::Servicesb\x06proto3') - , - dependencies=[google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_extension__feed__item__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_protobuf_dot_field__mask__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,]) - - - - -_GETEXTENSIONFEEDITEMREQUEST = _descriptor.Descriptor( - name='GetExtensionFeedItemRequest', - full_name='google.ads.googleads.v1.services.GetExtensionFeedItemRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.services.GetExtensionFeedItemRequest.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=273, - serialized_end=325, -) - - -_MUTATEEXTENSIONFEEDITEMSREQUEST = _descriptor.Descriptor( - name='MutateExtensionFeedItemsRequest', - full_name='google.ads.googleads.v1.services.MutateExtensionFeedItemsRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='customer_id', full_name='google.ads.googleads.v1.services.MutateExtensionFeedItemsRequest.customer_id', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='operations', full_name='google.ads.googleads.v1.services.MutateExtensionFeedItemsRequest.operations', index=1, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='validate_only', full_name='google.ads.googleads.v1.services.MutateExtensionFeedItemsRequest.validate_only', index=2, - number=4, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=328, - serialized_end=487, -) - - -_EXTENSIONFEEDITEMOPERATION = _descriptor.Descriptor( - name='ExtensionFeedItemOperation', - full_name='google.ads.googleads.v1.services.ExtensionFeedItemOperation', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='update_mask', full_name='google.ads.googleads.v1.services.ExtensionFeedItemOperation.update_mask', index=0, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='create', full_name='google.ads.googleads.v1.services.ExtensionFeedItemOperation.create', index=1, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='update', full_name='google.ads.googleads.v1.services.ExtensionFeedItemOperation.update', index=2, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='remove', full_name='google.ads.googleads.v1.services.ExtensionFeedItemOperation.remove', index=3, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='operation', full_name='google.ads.googleads.v1.services.ExtensionFeedItemOperation.operation', - index=0, containing_type=None, fields=[]), - ], - serialized_start=490, - serialized_end=742, -) - - -_MUTATEEXTENSIONFEEDITEMSRESPONSE = _descriptor.Descriptor( - name='MutateExtensionFeedItemsResponse', - full_name='google.ads.googleads.v1.services.MutateExtensionFeedItemsResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='results', full_name='google.ads.googleads.v1.services.MutateExtensionFeedItemsResponse.results', index=0, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=744, - serialized_end=860, -) - - -_MUTATEEXTENSIONFEEDITEMRESULT = _descriptor.Descriptor( - name='MutateExtensionFeedItemResult', - full_name='google.ads.googleads.v1.services.MutateExtensionFeedItemResult', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.services.MutateExtensionFeedItemResult.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=862, - serialized_end=916, -) - -_MUTATEEXTENSIONFEEDITEMSREQUEST.fields_by_name['operations'].message_type = _EXTENSIONFEEDITEMOPERATION -_EXTENSIONFEEDITEMOPERATION.fields_by_name['update_mask'].message_type = google_dot_protobuf_dot_field__mask__pb2._FIELDMASK -_EXTENSIONFEEDITEMOPERATION.fields_by_name['create'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_extension__feed__item__pb2._EXTENSIONFEEDITEM -_EXTENSIONFEEDITEMOPERATION.fields_by_name['update'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_extension__feed__item__pb2._EXTENSIONFEEDITEM -_EXTENSIONFEEDITEMOPERATION.oneofs_by_name['operation'].fields.append( - _EXTENSIONFEEDITEMOPERATION.fields_by_name['create']) -_EXTENSIONFEEDITEMOPERATION.fields_by_name['create'].containing_oneof = _EXTENSIONFEEDITEMOPERATION.oneofs_by_name['operation'] -_EXTENSIONFEEDITEMOPERATION.oneofs_by_name['operation'].fields.append( - _EXTENSIONFEEDITEMOPERATION.fields_by_name['update']) -_EXTENSIONFEEDITEMOPERATION.fields_by_name['update'].containing_oneof = _EXTENSIONFEEDITEMOPERATION.oneofs_by_name['operation'] -_EXTENSIONFEEDITEMOPERATION.oneofs_by_name['operation'].fields.append( - _EXTENSIONFEEDITEMOPERATION.fields_by_name['remove']) -_EXTENSIONFEEDITEMOPERATION.fields_by_name['remove'].containing_oneof = _EXTENSIONFEEDITEMOPERATION.oneofs_by_name['operation'] -_MUTATEEXTENSIONFEEDITEMSRESPONSE.fields_by_name['results'].message_type = _MUTATEEXTENSIONFEEDITEMRESULT -DESCRIPTOR.message_types_by_name['GetExtensionFeedItemRequest'] = _GETEXTENSIONFEEDITEMREQUEST -DESCRIPTOR.message_types_by_name['MutateExtensionFeedItemsRequest'] = _MUTATEEXTENSIONFEEDITEMSREQUEST -DESCRIPTOR.message_types_by_name['ExtensionFeedItemOperation'] = _EXTENSIONFEEDITEMOPERATION -DESCRIPTOR.message_types_by_name['MutateExtensionFeedItemsResponse'] = _MUTATEEXTENSIONFEEDITEMSRESPONSE -DESCRIPTOR.message_types_by_name['MutateExtensionFeedItemResult'] = _MUTATEEXTENSIONFEEDITEMRESULT -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -GetExtensionFeedItemRequest = _reflection.GeneratedProtocolMessageType('GetExtensionFeedItemRequest', (_message.Message,), dict( - DESCRIPTOR = _GETEXTENSIONFEEDITEMREQUEST, - __module__ = 'google.ads.googleads_v1.proto.services.extension_feed_item_service_pb2' - , - __doc__ = """Request message for - [ExtensionFeedItemService.GetExtensionFeedItem][google.ads.googleads.v1.services.ExtensionFeedItemService.GetExtensionFeedItem]. - - - Attributes: - resource_name: - The resource name of the extension feed item to fetch. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.GetExtensionFeedItemRequest) - )) -_sym_db.RegisterMessage(GetExtensionFeedItemRequest) - -MutateExtensionFeedItemsRequest = _reflection.GeneratedProtocolMessageType('MutateExtensionFeedItemsRequest', (_message.Message,), dict( - DESCRIPTOR = _MUTATEEXTENSIONFEEDITEMSREQUEST, - __module__ = 'google.ads.googleads_v1.proto.services.extension_feed_item_service_pb2' - , - __doc__ = """Request message for - [ExtensionFeedItemService.MutateExtensionFeedItems][google.ads.googleads.v1.services.ExtensionFeedItemService.MutateExtensionFeedItems]. - - - Attributes: - customer_id: - The ID of the customer whose extension feed items are being - modified. - operations: - The list of operations to perform on individual extension feed - items. - validate_only: - If true, the request is validated but not executed. Only - errors are returned, not results. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.MutateExtensionFeedItemsRequest) - )) -_sym_db.RegisterMessage(MutateExtensionFeedItemsRequest) - -ExtensionFeedItemOperation = _reflection.GeneratedProtocolMessageType('ExtensionFeedItemOperation', (_message.Message,), dict( - DESCRIPTOR = _EXTENSIONFEEDITEMOPERATION, - __module__ = 'google.ads.googleads_v1.proto.services.extension_feed_item_service_pb2' - , - __doc__ = """A single operation (create, update, remove) on an extension feed item. - - - Attributes: - update_mask: - FieldMask that determines which resource fields are modified - in an update. - operation: - The mutate operation. - create: - Create operation: No resource name is expected for the new - extension feed item. - update: - Update operation: The extension feed item is expected to have - a valid resource name. - remove: - Remove operation: A resource name for the removed extension - feed item is expected, in this format: - ``customers/{customer_id}/extensionFeedItems/{feed_item_id}`` - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.ExtensionFeedItemOperation) - )) -_sym_db.RegisterMessage(ExtensionFeedItemOperation) - -MutateExtensionFeedItemsResponse = _reflection.GeneratedProtocolMessageType('MutateExtensionFeedItemsResponse', (_message.Message,), dict( - DESCRIPTOR = _MUTATEEXTENSIONFEEDITEMSRESPONSE, - __module__ = 'google.ads.googleads_v1.proto.services.extension_feed_item_service_pb2' - , - __doc__ = """Response message for an extension feed item mutate. - - - Attributes: - results: - All results for the mutate. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.MutateExtensionFeedItemsResponse) - )) -_sym_db.RegisterMessage(MutateExtensionFeedItemsResponse) - -MutateExtensionFeedItemResult = _reflection.GeneratedProtocolMessageType('MutateExtensionFeedItemResult', (_message.Message,), dict( - DESCRIPTOR = _MUTATEEXTENSIONFEEDITEMRESULT, - __module__ = 'google.ads.googleads_v1.proto.services.extension_feed_item_service_pb2' - , - __doc__ = """The result for the extension feed item mutate. - - - Attributes: - resource_name: - Returned for successful operations. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.MutateExtensionFeedItemResult) - )) -_sym_db.RegisterMessage(MutateExtensionFeedItemResult) - - -DESCRIPTOR._options = None - -_EXTENSIONFEEDITEMSERVICE = _descriptor.ServiceDescriptor( - name='ExtensionFeedItemService', - full_name='google.ads.googleads.v1.services.ExtensionFeedItemService', - file=DESCRIPTOR, - index=0, - serialized_options=None, - serialized_start=919, - serialized_end=1381, - methods=[ - _descriptor.MethodDescriptor( - name='GetExtensionFeedItem', - full_name='google.ads.googleads.v1.services.ExtensionFeedItemService.GetExtensionFeedItem', - index=0, - containing_service=None, - input_type=_GETEXTENSIONFEEDITEMREQUEST, - output_type=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_extension__feed__item__pb2._EXTENSIONFEEDITEM, - serialized_options=_b('\202\323\344\223\0026\0224/v1/{resource_name=customers/*/extensionFeedItems/*}'), - ), - _descriptor.MethodDescriptor( - name='MutateExtensionFeedItems', - full_name='google.ads.googleads.v1.services.ExtensionFeedItemService.MutateExtensionFeedItems', - index=1, - containing_service=None, - input_type=_MUTATEEXTENSIONFEEDITEMSREQUEST, - output_type=_MUTATEEXTENSIONFEEDITEMSRESPONSE, - serialized_options=_b('\202\323\344\223\002<\"7/v1/customers/{customer_id=*}/extensionFeedItems:mutate:\001*'), - ), -]) -_sym_db.RegisterServiceDescriptor(_EXTENSIONFEEDITEMSERVICE) - -DESCRIPTOR.services_by_name['ExtensionFeedItemService'] = _EXTENSIONFEEDITEMSERVICE - -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/services/extension_feed_item_service_pb2_grpc.py b/google/ads/google_ads/v1/proto/services/extension_feed_item_service_pb2_grpc.py deleted file mode 100644 index ee70f3418..000000000 --- a/google/ads/google_ads/v1/proto/services/extension_feed_item_service_pb2_grpc.py +++ /dev/null @@ -1,69 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -import grpc - -from google.ads.google_ads.v1.proto.resources import extension_feed_item_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_extension__feed__item__pb2 -from google.ads.google_ads.v1.proto.services import extension_feed_item_service_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_extension__feed__item__service__pb2 - - -class ExtensionFeedItemServiceStub(object): - """Proto file describing the ExtensionFeedItem service. - - Service to manage extension feed items. - """ - - def __init__(self, channel): - """Constructor. - - Args: - channel: A grpc.Channel. - """ - self.GetExtensionFeedItem = channel.unary_unary( - '/google.ads.googleads.v1.services.ExtensionFeedItemService/GetExtensionFeedItem', - request_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_extension__feed__item__service__pb2.GetExtensionFeedItemRequest.SerializeToString, - response_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_extension__feed__item__pb2.ExtensionFeedItem.FromString, - ) - self.MutateExtensionFeedItems = channel.unary_unary( - '/google.ads.googleads.v1.services.ExtensionFeedItemService/MutateExtensionFeedItems', - request_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_extension__feed__item__service__pb2.MutateExtensionFeedItemsRequest.SerializeToString, - response_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_extension__feed__item__service__pb2.MutateExtensionFeedItemsResponse.FromString, - ) - - -class ExtensionFeedItemServiceServicer(object): - """Proto file describing the ExtensionFeedItem service. - - Service to manage extension feed items. - """ - - def GetExtensionFeedItem(self, request, context): - """Returns the requested extension feed item in full detail. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def MutateExtensionFeedItems(self, request, context): - """Creates, updates, or removes extension feed items. Operation - statuses are returned. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - -def add_ExtensionFeedItemServiceServicer_to_server(servicer, server): - rpc_method_handlers = { - 'GetExtensionFeedItem': grpc.unary_unary_rpc_method_handler( - servicer.GetExtensionFeedItem, - request_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_extension__feed__item__service__pb2.GetExtensionFeedItemRequest.FromString, - response_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_extension__feed__item__pb2.ExtensionFeedItem.SerializeToString, - ), - 'MutateExtensionFeedItems': grpc.unary_unary_rpc_method_handler( - servicer.MutateExtensionFeedItems, - request_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_extension__feed__item__service__pb2.MutateExtensionFeedItemsRequest.FromString, - response_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_extension__feed__item__service__pb2.MutateExtensionFeedItemsResponse.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'google.ads.googleads.v1.services.ExtensionFeedItemService', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) diff --git a/google/ads/google_ads/v1/proto/services/feed_item_service_pb2.py b/google/ads/google_ads/v1/proto/services/feed_item_service_pb2.py deleted file mode 100644 index 6a916f34e..000000000 --- a/google/ads/google_ads/v1/proto/services/feed_item_service_pb2.py +++ /dev/null @@ -1,404 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/services/feed_item_service.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.ads.google_ads.v1.proto.resources import feed_item_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_feed__item__pb2 -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 -from google.protobuf import field_mask_pb2 as google_dot_protobuf_dot_field__mask__pb2 -from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 -from google.rpc import status_pb2 as google_dot_rpc_dot_status__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/services/feed_item_service.proto', - package='google.ads.googleads.v1.services', - syntax='proto3', - serialized_options=_b('\n$com.google.ads.googleads.v1.servicesB\024FeedItemServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v1/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V1.Services\312\002 Google\\Ads\\GoogleAds\\V1\\Services\352\002$Google::Ads::GoogleAds::V1::Services'), - serialized_pb=_b('\n>google/ads/googleads_v1/proto/services/feed_item_service.proto\x12 google.ads.googleads.v1.services\x1a\x37google/ads/googleads_v1/proto/resources/feed_item.proto\x1a\x1cgoogle/api/annotations.proto\x1a google/protobuf/field_mask.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x17google/rpc/status.proto\"+\n\x12GetFeedItemRequest\x12\x15\n\rresource_name\x18\x01 \x01(\t\"\xa6\x01\n\x16MutateFeedItemsRequest\x12\x13\n\x0b\x63ustomer_id\x18\x01 \x01(\t\x12G\n\noperations\x18\x02 \x03(\x0b\x32\x33.google.ads.googleads.v1.services.FeedItemOperation\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\"\xe1\x01\n\x11\x46\x65\x65\x64ItemOperation\x12/\n\x0bupdate_mask\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12=\n\x06\x63reate\x18\x01 \x01(\x0b\x32+.google.ads.googleads.v1.resources.FeedItemH\x00\x12=\n\x06update\x18\x02 \x01(\x0b\x32+.google.ads.googleads.v1.resources.FeedItemH\x00\x12\x10\n\x06remove\x18\x03 \x01(\tH\x00\x42\x0b\n\toperation\"\x95\x01\n\x17MutateFeedItemsResponse\x12\x31\n\x15partial_failure_error\x18\x03 \x01(\x0b\x32\x12.google.rpc.Status\x12G\n\x07results\x18\x02 \x03(\x0b\x32\x36.google.ads.googleads.v1.services.MutateFeedItemResult\"-\n\x14MutateFeedItemResult\x12\x15\n\rresource_name\x18\x01 \x01(\t2\xfd\x02\n\x0f\x46\x65\x65\x64ItemService\x12\xa5\x01\n\x0bGetFeedItem\x12\x34.google.ads.googleads.v1.services.GetFeedItemRequest\x1a+.google.ads.googleads.v1.resources.FeedItem\"3\x82\xd3\xe4\x93\x02-\x12+/v1/{resource_name=customers/*/feedItems/*}\x12\xc1\x01\n\x0fMutateFeedItems\x12\x38.google.ads.googleads.v1.services.MutateFeedItemsRequest\x1a\x39.google.ads.googleads.v1.services.MutateFeedItemsResponse\"9\x82\xd3\xe4\x93\x02\x33\"./v1/customers/{customer_id=*}/feedItems:mutate:\x01*B\xfb\x01\n$com.google.ads.googleads.v1.servicesB\x14\x46\x65\x65\x64ItemServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v1/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V1.Services\xca\x02 Google\\Ads\\GoogleAds\\V1\\Services\xea\x02$Google::Ads::GoogleAds::V1::Servicesb\x06proto3') - , - dependencies=[google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_feed__item__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_protobuf_dot_field__mask__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_rpc_dot_status__pb2.DESCRIPTOR,]) - - - - -_GETFEEDITEMREQUEST = _descriptor.Descriptor( - name='GetFeedItemRequest', - full_name='google.ads.googleads.v1.services.GetFeedItemRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.services.GetFeedItemRequest.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=278, - serialized_end=321, -) - - -_MUTATEFEEDITEMSREQUEST = _descriptor.Descriptor( - name='MutateFeedItemsRequest', - full_name='google.ads.googleads.v1.services.MutateFeedItemsRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='customer_id', full_name='google.ads.googleads.v1.services.MutateFeedItemsRequest.customer_id', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='operations', full_name='google.ads.googleads.v1.services.MutateFeedItemsRequest.operations', index=1, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='partial_failure', full_name='google.ads.googleads.v1.services.MutateFeedItemsRequest.partial_failure', index=2, - number=3, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='validate_only', full_name='google.ads.googleads.v1.services.MutateFeedItemsRequest.validate_only', index=3, - number=4, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=324, - serialized_end=490, -) - - -_FEEDITEMOPERATION = _descriptor.Descriptor( - name='FeedItemOperation', - full_name='google.ads.googleads.v1.services.FeedItemOperation', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='update_mask', full_name='google.ads.googleads.v1.services.FeedItemOperation.update_mask', index=0, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='create', full_name='google.ads.googleads.v1.services.FeedItemOperation.create', index=1, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='update', full_name='google.ads.googleads.v1.services.FeedItemOperation.update', index=2, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='remove', full_name='google.ads.googleads.v1.services.FeedItemOperation.remove', index=3, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='operation', full_name='google.ads.googleads.v1.services.FeedItemOperation.operation', - index=0, containing_type=None, fields=[]), - ], - serialized_start=493, - serialized_end=718, -) - - -_MUTATEFEEDITEMSRESPONSE = _descriptor.Descriptor( - name='MutateFeedItemsResponse', - full_name='google.ads.googleads.v1.services.MutateFeedItemsResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='partial_failure_error', full_name='google.ads.googleads.v1.services.MutateFeedItemsResponse.partial_failure_error', index=0, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='results', full_name='google.ads.googleads.v1.services.MutateFeedItemsResponse.results', index=1, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=721, - serialized_end=870, -) - - -_MUTATEFEEDITEMRESULT = _descriptor.Descriptor( - name='MutateFeedItemResult', - full_name='google.ads.googleads.v1.services.MutateFeedItemResult', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.services.MutateFeedItemResult.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=872, - serialized_end=917, -) - -_MUTATEFEEDITEMSREQUEST.fields_by_name['operations'].message_type = _FEEDITEMOPERATION -_FEEDITEMOPERATION.fields_by_name['update_mask'].message_type = google_dot_protobuf_dot_field__mask__pb2._FIELDMASK -_FEEDITEMOPERATION.fields_by_name['create'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_feed__item__pb2._FEEDITEM -_FEEDITEMOPERATION.fields_by_name['update'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_feed__item__pb2._FEEDITEM -_FEEDITEMOPERATION.oneofs_by_name['operation'].fields.append( - _FEEDITEMOPERATION.fields_by_name['create']) -_FEEDITEMOPERATION.fields_by_name['create'].containing_oneof = _FEEDITEMOPERATION.oneofs_by_name['operation'] -_FEEDITEMOPERATION.oneofs_by_name['operation'].fields.append( - _FEEDITEMOPERATION.fields_by_name['update']) -_FEEDITEMOPERATION.fields_by_name['update'].containing_oneof = _FEEDITEMOPERATION.oneofs_by_name['operation'] -_FEEDITEMOPERATION.oneofs_by_name['operation'].fields.append( - _FEEDITEMOPERATION.fields_by_name['remove']) -_FEEDITEMOPERATION.fields_by_name['remove'].containing_oneof = _FEEDITEMOPERATION.oneofs_by_name['operation'] -_MUTATEFEEDITEMSRESPONSE.fields_by_name['partial_failure_error'].message_type = google_dot_rpc_dot_status__pb2._STATUS -_MUTATEFEEDITEMSRESPONSE.fields_by_name['results'].message_type = _MUTATEFEEDITEMRESULT -DESCRIPTOR.message_types_by_name['GetFeedItemRequest'] = _GETFEEDITEMREQUEST -DESCRIPTOR.message_types_by_name['MutateFeedItemsRequest'] = _MUTATEFEEDITEMSREQUEST -DESCRIPTOR.message_types_by_name['FeedItemOperation'] = _FEEDITEMOPERATION -DESCRIPTOR.message_types_by_name['MutateFeedItemsResponse'] = _MUTATEFEEDITEMSRESPONSE -DESCRIPTOR.message_types_by_name['MutateFeedItemResult'] = _MUTATEFEEDITEMRESULT -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -GetFeedItemRequest = _reflection.GeneratedProtocolMessageType('GetFeedItemRequest', (_message.Message,), dict( - DESCRIPTOR = _GETFEEDITEMREQUEST, - __module__ = 'google.ads.googleads_v1.proto.services.feed_item_service_pb2' - , - __doc__ = """Request message for - [FeedItemService.GetFeedItem][google.ads.googleads.v1.services.FeedItemService.GetFeedItem]. - - - Attributes: - resource_name: - The resource name of the feed item to fetch. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.GetFeedItemRequest) - )) -_sym_db.RegisterMessage(GetFeedItemRequest) - -MutateFeedItemsRequest = _reflection.GeneratedProtocolMessageType('MutateFeedItemsRequest', (_message.Message,), dict( - DESCRIPTOR = _MUTATEFEEDITEMSREQUEST, - __module__ = 'google.ads.googleads_v1.proto.services.feed_item_service_pb2' - , - __doc__ = """Request message for - [FeedItemService.MutateFeedItems][google.ads.googleads.v1.services.FeedItemService.MutateFeedItems]. - - - Attributes: - customer_id: - The ID of the customer whose feed items are being modified. - operations: - The list of operations to perform on individual feed items. - partial_failure: - If true, successful operations will be carried out and invalid - operations will return errors. If false, all operations will - be carried out in one transaction if and only if they are all - valid. Default is false. - validate_only: - If true, the request is validated but not executed. Only - errors are returned, not results. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.MutateFeedItemsRequest) - )) -_sym_db.RegisterMessage(MutateFeedItemsRequest) - -FeedItemOperation = _reflection.GeneratedProtocolMessageType('FeedItemOperation', (_message.Message,), dict( - DESCRIPTOR = _FEEDITEMOPERATION, - __module__ = 'google.ads.googleads_v1.proto.services.feed_item_service_pb2' - , - __doc__ = """A single operation (create, update, remove) on an feed item. - - - Attributes: - update_mask: - FieldMask that determines which resource fields are modified - in an update. - operation: - The mutate operation. - create: - Create operation: No resource name is expected for the new - feed item. - update: - Update operation: The feed item is expected to have a valid - resource name. - remove: - Remove operation: A resource name for the removed feed item is - expected, in this format: - ``customers/{customer_id}/feedItems/{feed_id}~{feed_item_id}`` - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.FeedItemOperation) - )) -_sym_db.RegisterMessage(FeedItemOperation) - -MutateFeedItemsResponse = _reflection.GeneratedProtocolMessageType('MutateFeedItemsResponse', (_message.Message,), dict( - DESCRIPTOR = _MUTATEFEEDITEMSRESPONSE, - __module__ = 'google.ads.googleads_v1.proto.services.feed_item_service_pb2' - , - __doc__ = """Response message for an feed item mutate. - - - Attributes: - partial_failure_error: - Errors that pertain to operation failures in the partial - failure mode. Returned only when partial\_failure = true and - all errors occur inside the operations. If any errors occur - outside the operations (e.g. auth errors), we return an RPC - level error. - results: - All results for the mutate. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.MutateFeedItemsResponse) - )) -_sym_db.RegisterMessage(MutateFeedItemsResponse) - -MutateFeedItemResult = _reflection.GeneratedProtocolMessageType('MutateFeedItemResult', (_message.Message,), dict( - DESCRIPTOR = _MUTATEFEEDITEMRESULT, - __module__ = 'google.ads.googleads_v1.proto.services.feed_item_service_pb2' - , - __doc__ = """The result for the feed item mutate. - - - Attributes: - resource_name: - Returned for successful operations. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.MutateFeedItemResult) - )) -_sym_db.RegisterMessage(MutateFeedItemResult) - - -DESCRIPTOR._options = None - -_FEEDITEMSERVICE = _descriptor.ServiceDescriptor( - name='FeedItemService', - full_name='google.ads.googleads.v1.services.FeedItemService', - file=DESCRIPTOR, - index=0, - serialized_options=None, - serialized_start=920, - serialized_end=1301, - methods=[ - _descriptor.MethodDescriptor( - name='GetFeedItem', - full_name='google.ads.googleads.v1.services.FeedItemService.GetFeedItem', - index=0, - containing_service=None, - input_type=_GETFEEDITEMREQUEST, - output_type=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_feed__item__pb2._FEEDITEM, - serialized_options=_b('\202\323\344\223\002-\022+/v1/{resource_name=customers/*/feedItems/*}'), - ), - _descriptor.MethodDescriptor( - name='MutateFeedItems', - full_name='google.ads.googleads.v1.services.FeedItemService.MutateFeedItems', - index=1, - containing_service=None, - input_type=_MUTATEFEEDITEMSREQUEST, - output_type=_MUTATEFEEDITEMSRESPONSE, - serialized_options=_b('\202\323\344\223\0023\"./v1/customers/{customer_id=*}/feedItems:mutate:\001*'), - ), -]) -_sym_db.RegisterServiceDescriptor(_FEEDITEMSERVICE) - -DESCRIPTOR.services_by_name['FeedItemService'] = _FEEDITEMSERVICE - -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/services/feed_item_service_pb2_grpc.py b/google/ads/google_ads/v1/proto/services/feed_item_service_pb2_grpc.py deleted file mode 100644 index f99efe4d0..000000000 --- a/google/ads/google_ads/v1/proto/services/feed_item_service_pb2_grpc.py +++ /dev/null @@ -1,69 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -import grpc - -from google.ads.google_ads.v1.proto.resources import feed_item_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_feed__item__pb2 -from google.ads.google_ads.v1.proto.services import feed_item_service_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_feed__item__service__pb2 - - -class FeedItemServiceStub(object): - """Proto file describing the FeedItem service. - - Service to manage feed items. - """ - - def __init__(self, channel): - """Constructor. - - Args: - channel: A grpc.Channel. - """ - self.GetFeedItem = channel.unary_unary( - '/google.ads.googleads.v1.services.FeedItemService/GetFeedItem', - request_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_feed__item__service__pb2.GetFeedItemRequest.SerializeToString, - response_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_feed__item__pb2.FeedItem.FromString, - ) - self.MutateFeedItems = channel.unary_unary( - '/google.ads.googleads.v1.services.FeedItemService/MutateFeedItems', - request_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_feed__item__service__pb2.MutateFeedItemsRequest.SerializeToString, - response_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_feed__item__service__pb2.MutateFeedItemsResponse.FromString, - ) - - -class FeedItemServiceServicer(object): - """Proto file describing the FeedItem service. - - Service to manage feed items. - """ - - def GetFeedItem(self, request, context): - """Returns the requested feed item in full detail. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def MutateFeedItems(self, request, context): - """Creates, updates, or removes feed items. Operation statuses are - returned. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - -def add_FeedItemServiceServicer_to_server(servicer, server): - rpc_method_handlers = { - 'GetFeedItem': grpc.unary_unary_rpc_method_handler( - servicer.GetFeedItem, - request_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_feed__item__service__pb2.GetFeedItemRequest.FromString, - response_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_feed__item__pb2.FeedItem.SerializeToString, - ), - 'MutateFeedItems': grpc.unary_unary_rpc_method_handler( - servicer.MutateFeedItems, - request_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_feed__item__service__pb2.MutateFeedItemsRequest.FromString, - response_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_feed__item__service__pb2.MutateFeedItemsResponse.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'google.ads.googleads.v1.services.FeedItemService', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) diff --git a/google/ads/google_ads/v1/proto/services/feed_item_target_service_pb2.py b/google/ads/google_ads/v1/proto/services/feed_item_target_service_pb2.py deleted file mode 100644 index 495eb969d..000000000 --- a/google/ads/google_ads/v1/proto/services/feed_item_target_service_pb2.py +++ /dev/null @@ -1,343 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/services/feed_item_target_service.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.ads.google_ads.v1.proto.resources import feed_item_target_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_feed__item__target__pb2 -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/services/feed_item_target_service.proto', - package='google.ads.googleads.v1.services', - syntax='proto3', - serialized_options=_b('\n$com.google.ads.googleads.v1.servicesB\032FeedItemTargetServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v1/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V1.Services\312\002 Google\\Ads\\GoogleAds\\V1\\Services\352\002$Google::Ads::GoogleAds::V1::Services'), - serialized_pb=_b('\nEgoogle/ads/googleads_v1/proto/services/feed_item_target_service.proto\x12 google.ads.googleads.v1.services\x1a>google/ads/googleads_v1/proto/resources/feed_item_target.proto\x1a\x1cgoogle/api/annotations.proto\"1\n\x18GetFeedItemTargetRequest\x12\x15\n\rresource_name\x18\x01 \x01(\t\"\x82\x01\n\x1cMutateFeedItemTargetsRequest\x12\x13\n\x0b\x63ustomer_id\x18\x01 \x01(\t\x12M\n\noperations\x18\x02 \x03(\x0b\x32\x39.google.ads.googleads.v1.services.FeedItemTargetOperation\"}\n\x17\x46\x65\x65\x64ItemTargetOperation\x12\x43\n\x06\x63reate\x18\x01 \x01(\x0b\x32\x31.google.ads.googleads.v1.resources.FeedItemTargetH\x00\x12\x10\n\x06remove\x18\x02 \x01(\tH\x00\x42\x0b\n\toperation\"n\n\x1dMutateFeedItemTargetsResponse\x12M\n\x07results\x18\x02 \x03(\x0b\x32<.google.ads.googleads.v1.services.MutateFeedItemTargetResult\"3\n\x1aMutateFeedItemTargetResult\x12\x15\n\rresource_name\x18\x01 \x01(\t2\xb3\x03\n\x15\x46\x65\x65\x64ItemTargetService\x12\xbd\x01\n\x11GetFeedItemTarget\x12:.google.ads.googleads.v1.services.GetFeedItemTargetRequest\x1a\x31.google.ads.googleads.v1.resources.FeedItemTarget\"9\x82\xd3\xe4\x93\x02\x33\x12\x31/v1/{resource_name=customers/*/feedItemTargets/*}\x12\xd9\x01\n\x15MutateFeedItemTargets\x12>.google.ads.googleads.v1.services.MutateFeedItemTargetsRequest\x1a?.google.ads.googleads.v1.services.MutateFeedItemTargetsResponse\"?\x82\xd3\xe4\x93\x02\x39\"4/v1/customers/{customer_id=*}/feedItemTargets:mutate:\x01*B\x81\x02\n$com.google.ads.googleads.v1.servicesB\x1a\x46\x65\x65\x64ItemTargetServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v1/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V1.Services\xca\x02 Google\\Ads\\GoogleAds\\V1\\Services\xea\x02$Google::Ads::GoogleAds::V1::Servicesb\x06proto3') - , - dependencies=[google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_feed__item__target__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - - -_GETFEEDITEMTARGETREQUEST = _descriptor.Descriptor( - name='GetFeedItemTargetRequest', - full_name='google.ads.googleads.v1.services.GetFeedItemTargetRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.services.GetFeedItemTargetRequest.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=201, - serialized_end=250, -) - - -_MUTATEFEEDITEMTARGETSREQUEST = _descriptor.Descriptor( - name='MutateFeedItemTargetsRequest', - full_name='google.ads.googleads.v1.services.MutateFeedItemTargetsRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='customer_id', full_name='google.ads.googleads.v1.services.MutateFeedItemTargetsRequest.customer_id', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='operations', full_name='google.ads.googleads.v1.services.MutateFeedItemTargetsRequest.operations', index=1, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=253, - serialized_end=383, -) - - -_FEEDITEMTARGETOPERATION = _descriptor.Descriptor( - name='FeedItemTargetOperation', - full_name='google.ads.googleads.v1.services.FeedItemTargetOperation', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='create', full_name='google.ads.googleads.v1.services.FeedItemTargetOperation.create', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='remove', full_name='google.ads.googleads.v1.services.FeedItemTargetOperation.remove', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='operation', full_name='google.ads.googleads.v1.services.FeedItemTargetOperation.operation', - index=0, containing_type=None, fields=[]), - ], - serialized_start=385, - serialized_end=510, -) - - -_MUTATEFEEDITEMTARGETSRESPONSE = _descriptor.Descriptor( - name='MutateFeedItemTargetsResponse', - full_name='google.ads.googleads.v1.services.MutateFeedItemTargetsResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='results', full_name='google.ads.googleads.v1.services.MutateFeedItemTargetsResponse.results', index=0, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=512, - serialized_end=622, -) - - -_MUTATEFEEDITEMTARGETRESULT = _descriptor.Descriptor( - name='MutateFeedItemTargetResult', - full_name='google.ads.googleads.v1.services.MutateFeedItemTargetResult', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.services.MutateFeedItemTargetResult.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=624, - serialized_end=675, -) - -_MUTATEFEEDITEMTARGETSREQUEST.fields_by_name['operations'].message_type = _FEEDITEMTARGETOPERATION -_FEEDITEMTARGETOPERATION.fields_by_name['create'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_feed__item__target__pb2._FEEDITEMTARGET -_FEEDITEMTARGETOPERATION.oneofs_by_name['operation'].fields.append( - _FEEDITEMTARGETOPERATION.fields_by_name['create']) -_FEEDITEMTARGETOPERATION.fields_by_name['create'].containing_oneof = _FEEDITEMTARGETOPERATION.oneofs_by_name['operation'] -_FEEDITEMTARGETOPERATION.oneofs_by_name['operation'].fields.append( - _FEEDITEMTARGETOPERATION.fields_by_name['remove']) -_FEEDITEMTARGETOPERATION.fields_by_name['remove'].containing_oneof = _FEEDITEMTARGETOPERATION.oneofs_by_name['operation'] -_MUTATEFEEDITEMTARGETSRESPONSE.fields_by_name['results'].message_type = _MUTATEFEEDITEMTARGETRESULT -DESCRIPTOR.message_types_by_name['GetFeedItemTargetRequest'] = _GETFEEDITEMTARGETREQUEST -DESCRIPTOR.message_types_by_name['MutateFeedItemTargetsRequest'] = _MUTATEFEEDITEMTARGETSREQUEST -DESCRIPTOR.message_types_by_name['FeedItemTargetOperation'] = _FEEDITEMTARGETOPERATION -DESCRIPTOR.message_types_by_name['MutateFeedItemTargetsResponse'] = _MUTATEFEEDITEMTARGETSRESPONSE -DESCRIPTOR.message_types_by_name['MutateFeedItemTargetResult'] = _MUTATEFEEDITEMTARGETRESULT -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -GetFeedItemTargetRequest = _reflection.GeneratedProtocolMessageType('GetFeedItemTargetRequest', (_message.Message,), dict( - DESCRIPTOR = _GETFEEDITEMTARGETREQUEST, - __module__ = 'google.ads.googleads_v1.proto.services.feed_item_target_service_pb2' - , - __doc__ = """Request message for - [FeedItemTargetService.GetFeedItemTarget][google.ads.googleads.v1.services.FeedItemTargetService.GetFeedItemTarget]. - - - Attributes: - resource_name: - The resource name of the feed item targets to fetch. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.GetFeedItemTargetRequest) - )) -_sym_db.RegisterMessage(GetFeedItemTargetRequest) - -MutateFeedItemTargetsRequest = _reflection.GeneratedProtocolMessageType('MutateFeedItemTargetsRequest', (_message.Message,), dict( - DESCRIPTOR = _MUTATEFEEDITEMTARGETSREQUEST, - __module__ = 'google.ads.googleads_v1.proto.services.feed_item_target_service_pb2' - , - __doc__ = """Request message for - [FeedItemTargetService.MutateFeedItemTargets][google.ads.googleads.v1.services.FeedItemTargetService.MutateFeedItemTargets]. - - - Attributes: - customer_id: - The ID of the customer whose feed item targets are being - modified. - operations: - The list of operations to perform on individual feed item - targets. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.MutateFeedItemTargetsRequest) - )) -_sym_db.RegisterMessage(MutateFeedItemTargetsRequest) - -FeedItemTargetOperation = _reflection.GeneratedProtocolMessageType('FeedItemTargetOperation', (_message.Message,), dict( - DESCRIPTOR = _FEEDITEMTARGETOPERATION, - __module__ = 'google.ads.googleads_v1.proto.services.feed_item_target_service_pb2' - , - __doc__ = """A single operation (create, remove) on an feed item target. - - - Attributes: - operation: - The mutate operation. - create: - Create operation: No resource name is expected for the new - feed item target. - remove: - Remove operation: A resource name for the removed feed item - target is expected, in this format: ``customers/{customer_id} - /feedItemTargets/{feed_id}~{feed_item_id}~{feed_item_target_ty - pe}~{feed_item_target_id}`` - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.FeedItemTargetOperation) - )) -_sym_db.RegisterMessage(FeedItemTargetOperation) - -MutateFeedItemTargetsResponse = _reflection.GeneratedProtocolMessageType('MutateFeedItemTargetsResponse', (_message.Message,), dict( - DESCRIPTOR = _MUTATEFEEDITEMTARGETSRESPONSE, - __module__ = 'google.ads.googleads_v1.proto.services.feed_item_target_service_pb2' - , - __doc__ = """Response message for an feed item target mutate. - - - Attributes: - results: - All results for the mutate. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.MutateFeedItemTargetsResponse) - )) -_sym_db.RegisterMessage(MutateFeedItemTargetsResponse) - -MutateFeedItemTargetResult = _reflection.GeneratedProtocolMessageType('MutateFeedItemTargetResult', (_message.Message,), dict( - DESCRIPTOR = _MUTATEFEEDITEMTARGETRESULT, - __module__ = 'google.ads.googleads_v1.proto.services.feed_item_target_service_pb2' - , - __doc__ = """The result for the feed item target mutate. - - - Attributes: - resource_name: - Returned for successful operations. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.MutateFeedItemTargetResult) - )) -_sym_db.RegisterMessage(MutateFeedItemTargetResult) - - -DESCRIPTOR._options = None - -_FEEDITEMTARGETSERVICE = _descriptor.ServiceDescriptor( - name='FeedItemTargetService', - full_name='google.ads.googleads.v1.services.FeedItemTargetService', - file=DESCRIPTOR, - index=0, - serialized_options=None, - serialized_start=678, - serialized_end=1113, - methods=[ - _descriptor.MethodDescriptor( - name='GetFeedItemTarget', - full_name='google.ads.googleads.v1.services.FeedItemTargetService.GetFeedItemTarget', - index=0, - containing_service=None, - input_type=_GETFEEDITEMTARGETREQUEST, - output_type=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_feed__item__target__pb2._FEEDITEMTARGET, - serialized_options=_b('\202\323\344\223\0023\0221/v1/{resource_name=customers/*/feedItemTargets/*}'), - ), - _descriptor.MethodDescriptor( - name='MutateFeedItemTargets', - full_name='google.ads.googleads.v1.services.FeedItemTargetService.MutateFeedItemTargets', - index=1, - containing_service=None, - input_type=_MUTATEFEEDITEMTARGETSREQUEST, - output_type=_MUTATEFEEDITEMTARGETSRESPONSE, - serialized_options=_b('\202\323\344\223\0029\"4/v1/customers/{customer_id=*}/feedItemTargets:mutate:\001*'), - ), -]) -_sym_db.RegisterServiceDescriptor(_FEEDITEMTARGETSERVICE) - -DESCRIPTOR.services_by_name['FeedItemTargetService'] = _FEEDITEMTARGETSERVICE - -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/services/feed_item_target_service_pb2_grpc.py b/google/ads/google_ads/v1/proto/services/feed_item_target_service_pb2_grpc.py deleted file mode 100644 index 231ea1e4f..000000000 --- a/google/ads/google_ads/v1/proto/services/feed_item_target_service_pb2_grpc.py +++ /dev/null @@ -1,68 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -import grpc - -from google.ads.google_ads.v1.proto.resources import feed_item_target_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_feed__item__target__pb2 -from google.ads.google_ads.v1.proto.services import feed_item_target_service_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_feed__item__target__service__pb2 - - -class FeedItemTargetServiceStub(object): - """Proto file describing the FeedItemTarget service. - - Service to manage feed item targets. - """ - - def __init__(self, channel): - """Constructor. - - Args: - channel: A grpc.Channel. - """ - self.GetFeedItemTarget = channel.unary_unary( - '/google.ads.googleads.v1.services.FeedItemTargetService/GetFeedItemTarget', - request_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_feed__item__target__service__pb2.GetFeedItemTargetRequest.SerializeToString, - response_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_feed__item__target__pb2.FeedItemTarget.FromString, - ) - self.MutateFeedItemTargets = channel.unary_unary( - '/google.ads.googleads.v1.services.FeedItemTargetService/MutateFeedItemTargets', - request_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_feed__item__target__service__pb2.MutateFeedItemTargetsRequest.SerializeToString, - response_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_feed__item__target__service__pb2.MutateFeedItemTargetsResponse.FromString, - ) - - -class FeedItemTargetServiceServicer(object): - """Proto file describing the FeedItemTarget service. - - Service to manage feed item targets. - """ - - def GetFeedItemTarget(self, request, context): - """Returns the requested feed item targets in full detail. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def MutateFeedItemTargets(self, request, context): - """Creates or removes feed item targets. Operation statuses are returned. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - -def add_FeedItemTargetServiceServicer_to_server(servicer, server): - rpc_method_handlers = { - 'GetFeedItemTarget': grpc.unary_unary_rpc_method_handler( - servicer.GetFeedItemTarget, - request_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_feed__item__target__service__pb2.GetFeedItemTargetRequest.FromString, - response_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_feed__item__target__pb2.FeedItemTarget.SerializeToString, - ), - 'MutateFeedItemTargets': grpc.unary_unary_rpc_method_handler( - servicer.MutateFeedItemTargets, - request_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_feed__item__target__service__pb2.MutateFeedItemTargetsRequest.FromString, - response_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_feed__item__target__service__pb2.MutateFeedItemTargetsResponse.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'google.ads.googleads.v1.services.FeedItemTargetService', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) diff --git a/google/ads/google_ads/v1/proto/services/feed_mapping_service_pb2.py b/google/ads/google_ads/v1/proto/services/feed_mapping_service_pb2.py deleted file mode 100644 index 11ae76c71..000000000 --- a/google/ads/google_ads/v1/proto/services/feed_mapping_service_pb2.py +++ /dev/null @@ -1,378 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/services/feed_mapping_service.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.ads.google_ads.v1.proto.resources import feed_mapping_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_feed__mapping__pb2 -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 -from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 -from google.rpc import status_pb2 as google_dot_rpc_dot_status__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/services/feed_mapping_service.proto', - package='google.ads.googleads.v1.services', - syntax='proto3', - serialized_options=_b('\n$com.google.ads.googleads.v1.servicesB\027FeedMappingServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v1/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V1.Services\312\002 Google\\Ads\\GoogleAds\\V1\\Services\352\002$Google::Ads::GoogleAds::V1::Services'), - serialized_pb=_b('\nAgoogle/ads/googleads_v1/proto/services/feed_mapping_service.proto\x12 google.ads.googleads.v1.services\x1a:google/ads/googleads_v1/proto/resources/feed_mapping.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x17google/rpc/status.proto\".\n\x15GetFeedMappingRequest\x12\x15\n\rresource_name\x18\x01 \x01(\t\"\xac\x01\n\x19MutateFeedMappingsRequest\x12\x13\n\x0b\x63ustomer_id\x18\x01 \x01(\t\x12J\n\noperations\x18\x02 \x03(\x0b\x32\x36.google.ads.googleads.v1.services.FeedMappingOperation\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\"w\n\x14\x46\x65\x65\x64MappingOperation\x12@\n\x06\x63reate\x18\x01 \x01(\x0b\x32..google.ads.googleads.v1.resources.FeedMappingH\x00\x12\x10\n\x06remove\x18\x03 \x01(\tH\x00\x42\x0b\n\toperation\"\x9b\x01\n\x1aMutateFeedMappingsResponse\x12\x31\n\x15partial_failure_error\x18\x03 \x01(\x0b\x32\x12.google.rpc.Status\x12J\n\x07results\x18\x02 \x03(\x0b\x32\x39.google.ads.googleads.v1.services.MutateFeedMappingResult\"0\n\x17MutateFeedMappingResult\x12\x15\n\rresource_name\x18\x01 \x01(\t2\x98\x03\n\x12\x46\x65\x65\x64MappingService\x12\xb1\x01\n\x0eGetFeedMapping\x12\x37.google.ads.googleads.v1.services.GetFeedMappingRequest\x1a..google.ads.googleads.v1.resources.FeedMapping\"6\x82\xd3\xe4\x93\x02\x30\x12./v1/{resource_name=customers/*/feedMappings/*}\x12\xcd\x01\n\x12MutateFeedMappings\x12;.google.ads.googleads.v1.services.MutateFeedMappingsRequest\x1a<.google.ads.googleads.v1.services.MutateFeedMappingsResponse\"<\x82\xd3\xe4\x93\x02\x36\"1/v1/customers/{customer_id=*}/feedMappings:mutate:\x01*B\xfe\x01\n$com.google.ads.googleads.v1.servicesB\x17\x46\x65\x65\x64MappingServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v1/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V1.Services\xca\x02 Google\\Ads\\GoogleAds\\V1\\Services\xea\x02$Google::Ads::GoogleAds::V1::Servicesb\x06proto3') - , - dependencies=[google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_feed__mapping__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_rpc_dot_status__pb2.DESCRIPTOR,]) - - - - -_GETFEEDMAPPINGREQUEST = _descriptor.Descriptor( - name='GetFeedMappingRequest', - full_name='google.ads.googleads.v1.services.GetFeedMappingRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.services.GetFeedMappingRequest.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=250, - serialized_end=296, -) - - -_MUTATEFEEDMAPPINGSREQUEST = _descriptor.Descriptor( - name='MutateFeedMappingsRequest', - full_name='google.ads.googleads.v1.services.MutateFeedMappingsRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='customer_id', full_name='google.ads.googleads.v1.services.MutateFeedMappingsRequest.customer_id', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='operations', full_name='google.ads.googleads.v1.services.MutateFeedMappingsRequest.operations', index=1, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='partial_failure', full_name='google.ads.googleads.v1.services.MutateFeedMappingsRequest.partial_failure', index=2, - number=3, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='validate_only', full_name='google.ads.googleads.v1.services.MutateFeedMappingsRequest.validate_only', index=3, - number=4, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=299, - serialized_end=471, -) - - -_FEEDMAPPINGOPERATION = _descriptor.Descriptor( - name='FeedMappingOperation', - full_name='google.ads.googleads.v1.services.FeedMappingOperation', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='create', full_name='google.ads.googleads.v1.services.FeedMappingOperation.create', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='remove', full_name='google.ads.googleads.v1.services.FeedMappingOperation.remove', index=1, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='operation', full_name='google.ads.googleads.v1.services.FeedMappingOperation.operation', - index=0, containing_type=None, fields=[]), - ], - serialized_start=473, - serialized_end=592, -) - - -_MUTATEFEEDMAPPINGSRESPONSE = _descriptor.Descriptor( - name='MutateFeedMappingsResponse', - full_name='google.ads.googleads.v1.services.MutateFeedMappingsResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='partial_failure_error', full_name='google.ads.googleads.v1.services.MutateFeedMappingsResponse.partial_failure_error', index=0, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='results', full_name='google.ads.googleads.v1.services.MutateFeedMappingsResponse.results', index=1, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=595, - serialized_end=750, -) - - -_MUTATEFEEDMAPPINGRESULT = _descriptor.Descriptor( - name='MutateFeedMappingResult', - full_name='google.ads.googleads.v1.services.MutateFeedMappingResult', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.services.MutateFeedMappingResult.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=752, - serialized_end=800, -) - -_MUTATEFEEDMAPPINGSREQUEST.fields_by_name['operations'].message_type = _FEEDMAPPINGOPERATION -_FEEDMAPPINGOPERATION.fields_by_name['create'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_feed__mapping__pb2._FEEDMAPPING -_FEEDMAPPINGOPERATION.oneofs_by_name['operation'].fields.append( - _FEEDMAPPINGOPERATION.fields_by_name['create']) -_FEEDMAPPINGOPERATION.fields_by_name['create'].containing_oneof = _FEEDMAPPINGOPERATION.oneofs_by_name['operation'] -_FEEDMAPPINGOPERATION.oneofs_by_name['operation'].fields.append( - _FEEDMAPPINGOPERATION.fields_by_name['remove']) -_FEEDMAPPINGOPERATION.fields_by_name['remove'].containing_oneof = _FEEDMAPPINGOPERATION.oneofs_by_name['operation'] -_MUTATEFEEDMAPPINGSRESPONSE.fields_by_name['partial_failure_error'].message_type = google_dot_rpc_dot_status__pb2._STATUS -_MUTATEFEEDMAPPINGSRESPONSE.fields_by_name['results'].message_type = _MUTATEFEEDMAPPINGRESULT -DESCRIPTOR.message_types_by_name['GetFeedMappingRequest'] = _GETFEEDMAPPINGREQUEST -DESCRIPTOR.message_types_by_name['MutateFeedMappingsRequest'] = _MUTATEFEEDMAPPINGSREQUEST -DESCRIPTOR.message_types_by_name['FeedMappingOperation'] = _FEEDMAPPINGOPERATION -DESCRIPTOR.message_types_by_name['MutateFeedMappingsResponse'] = _MUTATEFEEDMAPPINGSRESPONSE -DESCRIPTOR.message_types_by_name['MutateFeedMappingResult'] = _MUTATEFEEDMAPPINGRESULT -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -GetFeedMappingRequest = _reflection.GeneratedProtocolMessageType('GetFeedMappingRequest', (_message.Message,), dict( - DESCRIPTOR = _GETFEEDMAPPINGREQUEST, - __module__ = 'google.ads.googleads_v1.proto.services.feed_mapping_service_pb2' - , - __doc__ = """Request message for - [FeedMappingService.GetFeedMapping][google.ads.googleads.v1.services.FeedMappingService.GetFeedMapping]. - - - Attributes: - resource_name: - The resource name of the feed mapping to fetch. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.GetFeedMappingRequest) - )) -_sym_db.RegisterMessage(GetFeedMappingRequest) - -MutateFeedMappingsRequest = _reflection.GeneratedProtocolMessageType('MutateFeedMappingsRequest', (_message.Message,), dict( - DESCRIPTOR = _MUTATEFEEDMAPPINGSREQUEST, - __module__ = 'google.ads.googleads_v1.proto.services.feed_mapping_service_pb2' - , - __doc__ = """Request message for - [FeedMappingService.MutateFeedMappings][google.ads.googleads.v1.services.FeedMappingService.MutateFeedMappings]. - - - Attributes: - customer_id: - The ID of the customer whose feed mappings are being modified. - operations: - The list of operations to perform on individual feed mappings. - partial_failure: - If true, successful operations will be carried out and invalid - operations will return errors. If false, all operations will - be carried out in one transaction if and only if they are all - valid. Default is false. - validate_only: - If true, the request is validated but not executed. Only - errors are returned, not results. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.MutateFeedMappingsRequest) - )) -_sym_db.RegisterMessage(MutateFeedMappingsRequest) - -FeedMappingOperation = _reflection.GeneratedProtocolMessageType('FeedMappingOperation', (_message.Message,), dict( - DESCRIPTOR = _FEEDMAPPINGOPERATION, - __module__ = 'google.ads.googleads_v1.proto.services.feed_mapping_service_pb2' - , - __doc__ = """A single operation (create, remove) on a feed mapping. - - - Attributes: - operation: - The mutate operation. - create: - Create operation: No resource name is expected for the new - feed mapping. - remove: - Remove operation: A resource name for the removed feed mapping - is expected, in this format: ``customers/{customer_id}/feedMa - ppings/{feed_id}~{feed_mapping_id}`` - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.FeedMappingOperation) - )) -_sym_db.RegisterMessage(FeedMappingOperation) - -MutateFeedMappingsResponse = _reflection.GeneratedProtocolMessageType('MutateFeedMappingsResponse', (_message.Message,), dict( - DESCRIPTOR = _MUTATEFEEDMAPPINGSRESPONSE, - __module__ = 'google.ads.googleads_v1.proto.services.feed_mapping_service_pb2' - , - __doc__ = """Response message for a feed mapping mutate. - - - Attributes: - partial_failure_error: - Errors that pertain to operation failures in the partial - failure mode. Returned only when partial\_failure = true and - all errors occur inside the operations. If any errors occur - outside the operations (e.g. auth errors), we return an RPC - level error. - results: - All results for the mutate. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.MutateFeedMappingsResponse) - )) -_sym_db.RegisterMessage(MutateFeedMappingsResponse) - -MutateFeedMappingResult = _reflection.GeneratedProtocolMessageType('MutateFeedMappingResult', (_message.Message,), dict( - DESCRIPTOR = _MUTATEFEEDMAPPINGRESULT, - __module__ = 'google.ads.googleads_v1.proto.services.feed_mapping_service_pb2' - , - __doc__ = """The result for the feed mapping mutate. - - - Attributes: - resource_name: - Returned for successful operations. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.MutateFeedMappingResult) - )) -_sym_db.RegisterMessage(MutateFeedMappingResult) - - -DESCRIPTOR._options = None - -_FEEDMAPPINGSERVICE = _descriptor.ServiceDescriptor( - name='FeedMappingService', - full_name='google.ads.googleads.v1.services.FeedMappingService', - file=DESCRIPTOR, - index=0, - serialized_options=None, - serialized_start=803, - serialized_end=1211, - methods=[ - _descriptor.MethodDescriptor( - name='GetFeedMapping', - full_name='google.ads.googleads.v1.services.FeedMappingService.GetFeedMapping', - index=0, - containing_service=None, - input_type=_GETFEEDMAPPINGREQUEST, - output_type=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_feed__mapping__pb2._FEEDMAPPING, - serialized_options=_b('\202\323\344\223\0020\022./v1/{resource_name=customers/*/feedMappings/*}'), - ), - _descriptor.MethodDescriptor( - name='MutateFeedMappings', - full_name='google.ads.googleads.v1.services.FeedMappingService.MutateFeedMappings', - index=1, - containing_service=None, - input_type=_MUTATEFEEDMAPPINGSREQUEST, - output_type=_MUTATEFEEDMAPPINGSRESPONSE, - serialized_options=_b('\202\323\344\223\0026\"1/v1/customers/{customer_id=*}/feedMappings:mutate:\001*'), - ), -]) -_sym_db.RegisterServiceDescriptor(_FEEDMAPPINGSERVICE) - -DESCRIPTOR.services_by_name['FeedMappingService'] = _FEEDMAPPINGSERVICE - -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/services/feed_mapping_service_pb2_grpc.py b/google/ads/google_ads/v1/proto/services/feed_mapping_service_pb2_grpc.py deleted file mode 100644 index 6ce4fc75c..000000000 --- a/google/ads/google_ads/v1/proto/services/feed_mapping_service_pb2_grpc.py +++ /dev/null @@ -1,69 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -import grpc - -from google.ads.google_ads.v1.proto.resources import feed_mapping_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_feed__mapping__pb2 -from google.ads.google_ads.v1.proto.services import feed_mapping_service_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_feed__mapping__service__pb2 - - -class FeedMappingServiceStub(object): - """Proto file describing the FeedMapping service. - - Service to manage feed mappings. - """ - - def __init__(self, channel): - """Constructor. - - Args: - channel: A grpc.Channel. - """ - self.GetFeedMapping = channel.unary_unary( - '/google.ads.googleads.v1.services.FeedMappingService/GetFeedMapping', - request_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_feed__mapping__service__pb2.GetFeedMappingRequest.SerializeToString, - response_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_feed__mapping__pb2.FeedMapping.FromString, - ) - self.MutateFeedMappings = channel.unary_unary( - '/google.ads.googleads.v1.services.FeedMappingService/MutateFeedMappings', - request_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_feed__mapping__service__pb2.MutateFeedMappingsRequest.SerializeToString, - response_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_feed__mapping__service__pb2.MutateFeedMappingsResponse.FromString, - ) - - -class FeedMappingServiceServicer(object): - """Proto file describing the FeedMapping service. - - Service to manage feed mappings. - """ - - def GetFeedMapping(self, request, context): - """Returns the requested feed mapping in full detail. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def MutateFeedMappings(self, request, context): - """Creates or removes feed mappings. Operation statuses are - returned. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - -def add_FeedMappingServiceServicer_to_server(servicer, server): - rpc_method_handlers = { - 'GetFeedMapping': grpc.unary_unary_rpc_method_handler( - servicer.GetFeedMapping, - request_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_feed__mapping__service__pb2.GetFeedMappingRequest.FromString, - response_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_feed__mapping__pb2.FeedMapping.SerializeToString, - ), - 'MutateFeedMappings': grpc.unary_unary_rpc_method_handler( - servicer.MutateFeedMappings, - request_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_feed__mapping__service__pb2.MutateFeedMappingsRequest.FromString, - response_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_feed__mapping__service__pb2.MutateFeedMappingsResponse.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'google.ads.googleads.v1.services.FeedMappingService', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) diff --git a/google/ads/google_ads/v1/proto/services/feed_placeholder_view_service_pb2.py b/google/ads/google_ads/v1/proto/services/feed_placeholder_view_service_pb2.py deleted file mode 100644 index ec6be9fc1..000000000 --- a/google/ads/google_ads/v1/proto/services/feed_placeholder_view_service_pb2.py +++ /dev/null @@ -1,107 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/services/feed_placeholder_view_service.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.ads.google_ads.v1.proto.resources import feed_placeholder_view_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_feed__placeholder__view__pb2 -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/services/feed_placeholder_view_service.proto', - package='google.ads.googleads.v1.services', - syntax='proto3', - serialized_options=_b('\n$com.google.ads.googleads.v1.servicesB\037FeedPlaceholderViewServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v1/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V1.Services\312\002 Google\\Ads\\GoogleAds\\V1\\Services\352\002$Google::Ads::GoogleAds::V1::Services'), - serialized_pb=_b('\nJgoogle/ads/googleads_v1/proto/services/feed_placeholder_view_service.proto\x12 google.ads.googleads.v1.services\x1a\x43google/ads/googleads_v1/proto/resources/feed_placeholder_view.proto\x1a\x1cgoogle/api/annotations.proto\"6\n\x1dGetFeedPlaceholderViewRequest\x12\x15\n\rresource_name\x18\x01 \x01(\t2\xf0\x01\n\x1a\x46\x65\x65\x64PlaceholderViewService\x12\xd1\x01\n\x16GetFeedPlaceholderView\x12?.google.ads.googleads.v1.services.GetFeedPlaceholderViewRequest\x1a\x36.google.ads.googleads.v1.resources.FeedPlaceholderView\">\x82\xd3\xe4\x93\x02\x38\x12\x36/v1/{resource_name=customers/*/feedPlaceholderViews/*}B\x86\x02\n$com.google.ads.googleads.v1.servicesB\x1f\x46\x65\x65\x64PlaceholderViewServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v1/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V1.Services\xca\x02 Google\\Ads\\GoogleAds\\V1\\Services\xea\x02$Google::Ads::GoogleAds::V1::Servicesb\x06proto3') - , - dependencies=[google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_feed__placeholder__view__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - - -_GETFEEDPLACEHOLDERVIEWREQUEST = _descriptor.Descriptor( - name='GetFeedPlaceholderViewRequest', - full_name='google.ads.googleads.v1.services.GetFeedPlaceholderViewRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.services.GetFeedPlaceholderViewRequest.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=211, - serialized_end=265, -) - -DESCRIPTOR.message_types_by_name['GetFeedPlaceholderViewRequest'] = _GETFEEDPLACEHOLDERVIEWREQUEST -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -GetFeedPlaceholderViewRequest = _reflection.GeneratedProtocolMessageType('GetFeedPlaceholderViewRequest', (_message.Message,), dict( - DESCRIPTOR = _GETFEEDPLACEHOLDERVIEWREQUEST, - __module__ = 'google.ads.googleads_v1.proto.services.feed_placeholder_view_service_pb2' - , - __doc__ = """Request message for - [FeedPlaceholderViewService.GetFeedPlaceholderView][google.ads.googleads.v1.services.FeedPlaceholderViewService.GetFeedPlaceholderView]. - - - Attributes: - resource_name: - The resource name of the feed placeholder view to fetch. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.GetFeedPlaceholderViewRequest) - )) -_sym_db.RegisterMessage(GetFeedPlaceholderViewRequest) - - -DESCRIPTOR._options = None - -_FEEDPLACEHOLDERVIEWSERVICE = _descriptor.ServiceDescriptor( - name='FeedPlaceholderViewService', - full_name='google.ads.googleads.v1.services.FeedPlaceholderViewService', - file=DESCRIPTOR, - index=0, - serialized_options=None, - serialized_start=268, - serialized_end=508, - methods=[ - _descriptor.MethodDescriptor( - name='GetFeedPlaceholderView', - full_name='google.ads.googleads.v1.services.FeedPlaceholderViewService.GetFeedPlaceholderView', - index=0, - containing_service=None, - input_type=_GETFEEDPLACEHOLDERVIEWREQUEST, - output_type=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_feed__placeholder__view__pb2._FEEDPLACEHOLDERVIEW, - serialized_options=_b('\202\323\344\223\0028\0226/v1/{resource_name=customers/*/feedPlaceholderViews/*}'), - ), -]) -_sym_db.RegisterServiceDescriptor(_FEEDPLACEHOLDERVIEWSERVICE) - -DESCRIPTOR.services_by_name['FeedPlaceholderViewService'] = _FEEDPLACEHOLDERVIEWSERVICE - -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/services/feed_placeholder_view_service_pb2_grpc.py b/google/ads/google_ads/v1/proto/services/feed_placeholder_view_service_pb2_grpc.py deleted file mode 100644 index 61943aef9..000000000 --- a/google/ads/google_ads/v1/proto/services/feed_placeholder_view_service_pb2_grpc.py +++ /dev/null @@ -1,51 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -import grpc - -from google.ads.google_ads.v1.proto.resources import feed_placeholder_view_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_feed__placeholder__view__pb2 -from google.ads.google_ads.v1.proto.services import feed_placeholder_view_service_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_feed__placeholder__view__service__pb2 - - -class FeedPlaceholderViewServiceStub(object): - """Proto file describing the FeedPlaceholderView service. - - Service to fetch feed placeholder views. - """ - - def __init__(self, channel): - """Constructor. - - Args: - channel: A grpc.Channel. - """ - self.GetFeedPlaceholderView = channel.unary_unary( - '/google.ads.googleads.v1.services.FeedPlaceholderViewService/GetFeedPlaceholderView', - request_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_feed__placeholder__view__service__pb2.GetFeedPlaceholderViewRequest.SerializeToString, - response_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_feed__placeholder__view__pb2.FeedPlaceholderView.FromString, - ) - - -class FeedPlaceholderViewServiceServicer(object): - """Proto file describing the FeedPlaceholderView service. - - Service to fetch feed placeholder views. - """ - - def GetFeedPlaceholderView(self, request, context): - """Returns the requested feed placeholder view in full detail. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - -def add_FeedPlaceholderViewServiceServicer_to_server(servicer, server): - rpc_method_handlers = { - 'GetFeedPlaceholderView': grpc.unary_unary_rpc_method_handler( - servicer.GetFeedPlaceholderView, - request_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_feed__placeholder__view__service__pb2.GetFeedPlaceholderViewRequest.FromString, - response_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_feed__placeholder__view__pb2.FeedPlaceholderView.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'google.ads.googleads.v1.services.FeedPlaceholderViewService', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) diff --git a/google/ads/google_ads/v1/proto/services/feed_service_pb2.py b/google/ads/google_ads/v1/proto/services/feed_service_pb2.py deleted file mode 100644 index 2aad747d6..000000000 --- a/google/ads/google_ads/v1/proto/services/feed_service_pb2.py +++ /dev/null @@ -1,404 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/services/feed_service.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.ads.google_ads.v1.proto.resources import feed_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_feed__pb2 -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 -from google.protobuf import field_mask_pb2 as google_dot_protobuf_dot_field__mask__pb2 -from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 -from google.rpc import status_pb2 as google_dot_rpc_dot_status__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/services/feed_service.proto', - package='google.ads.googleads.v1.services', - syntax='proto3', - serialized_options=_b('\n$com.google.ads.googleads.v1.servicesB\020FeedServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v1/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V1.Services\312\002 Google\\Ads\\GoogleAds\\V1\\Services\352\002$Google::Ads::GoogleAds::V1::Services'), - serialized_pb=_b('\n9google/ads/googleads_v1/proto/services/feed_service.proto\x12 google.ads.googleads.v1.services\x1a\x32google/ads/googleads_v1/proto/resources/feed.proto\x1a\x1cgoogle/api/annotations.proto\x1a google/protobuf/field_mask.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x17google/rpc/status.proto\"\'\n\x0eGetFeedRequest\x12\x15\n\rresource_name\x18\x01 \x01(\t\"\x9e\x01\n\x12MutateFeedsRequest\x12\x13\n\x0b\x63ustomer_id\x18\x01 \x01(\t\x12\x43\n\noperations\x18\x02 \x03(\x0b\x32/.google.ads.googleads.v1.services.FeedOperation\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\"\xd5\x01\n\rFeedOperation\x12/\n\x0bupdate_mask\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12\x39\n\x06\x63reate\x18\x01 \x01(\x0b\x32\'.google.ads.googleads.v1.resources.FeedH\x00\x12\x39\n\x06update\x18\x02 \x01(\x0b\x32\'.google.ads.googleads.v1.resources.FeedH\x00\x12\x10\n\x06remove\x18\x03 \x01(\tH\x00\x42\x0b\n\toperation\"\x8d\x01\n\x13MutateFeedsResponse\x12\x31\n\x15partial_failure_error\x18\x03 \x01(\x0b\x32\x12.google.rpc.Status\x12\x43\n\x07results\x18\x02 \x03(\x0b\x32\x32.google.ads.googleads.v1.services.MutateFeedResult\")\n\x10MutateFeedResult\x12\x15\n\rresource_name\x18\x01 \x01(\t2\xd9\x02\n\x0b\x46\x65\x65\x64Service\x12\x95\x01\n\x07GetFeed\x12\x30.google.ads.googleads.v1.services.GetFeedRequest\x1a\'.google.ads.googleads.v1.resources.Feed\"/\x82\xd3\xe4\x93\x02)\x12\'/v1/{resource_name=customers/*/feeds/*}\x12\xb1\x01\n\x0bMutateFeeds\x12\x34.google.ads.googleads.v1.services.MutateFeedsRequest\x1a\x35.google.ads.googleads.v1.services.MutateFeedsResponse\"5\x82\xd3\xe4\x93\x02/\"*/v1/customers/{customer_id=*}/feeds:mutate:\x01*B\xf7\x01\n$com.google.ads.googleads.v1.servicesB\x10\x46\x65\x65\x64ServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v1/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V1.Services\xca\x02 Google\\Ads\\GoogleAds\\V1\\Services\xea\x02$Google::Ads::GoogleAds::V1::Servicesb\x06proto3') - , - dependencies=[google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_feed__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_protobuf_dot_field__mask__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_rpc_dot_status__pb2.DESCRIPTOR,]) - - - - -_GETFEEDREQUEST = _descriptor.Descriptor( - name='GetFeedRequest', - full_name='google.ads.googleads.v1.services.GetFeedRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.services.GetFeedRequest.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=268, - serialized_end=307, -) - - -_MUTATEFEEDSREQUEST = _descriptor.Descriptor( - name='MutateFeedsRequest', - full_name='google.ads.googleads.v1.services.MutateFeedsRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='customer_id', full_name='google.ads.googleads.v1.services.MutateFeedsRequest.customer_id', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='operations', full_name='google.ads.googleads.v1.services.MutateFeedsRequest.operations', index=1, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='partial_failure', full_name='google.ads.googleads.v1.services.MutateFeedsRequest.partial_failure', index=2, - number=3, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='validate_only', full_name='google.ads.googleads.v1.services.MutateFeedsRequest.validate_only', index=3, - number=4, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=310, - serialized_end=468, -) - - -_FEEDOPERATION = _descriptor.Descriptor( - name='FeedOperation', - full_name='google.ads.googleads.v1.services.FeedOperation', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='update_mask', full_name='google.ads.googleads.v1.services.FeedOperation.update_mask', index=0, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='create', full_name='google.ads.googleads.v1.services.FeedOperation.create', index=1, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='update', full_name='google.ads.googleads.v1.services.FeedOperation.update', index=2, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='remove', full_name='google.ads.googleads.v1.services.FeedOperation.remove', index=3, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='operation', full_name='google.ads.googleads.v1.services.FeedOperation.operation', - index=0, containing_type=None, fields=[]), - ], - serialized_start=471, - serialized_end=684, -) - - -_MUTATEFEEDSRESPONSE = _descriptor.Descriptor( - name='MutateFeedsResponse', - full_name='google.ads.googleads.v1.services.MutateFeedsResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='partial_failure_error', full_name='google.ads.googleads.v1.services.MutateFeedsResponse.partial_failure_error', index=0, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='results', full_name='google.ads.googleads.v1.services.MutateFeedsResponse.results', index=1, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=687, - serialized_end=828, -) - - -_MUTATEFEEDRESULT = _descriptor.Descriptor( - name='MutateFeedResult', - full_name='google.ads.googleads.v1.services.MutateFeedResult', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.services.MutateFeedResult.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=830, - serialized_end=871, -) - -_MUTATEFEEDSREQUEST.fields_by_name['operations'].message_type = _FEEDOPERATION -_FEEDOPERATION.fields_by_name['update_mask'].message_type = google_dot_protobuf_dot_field__mask__pb2._FIELDMASK -_FEEDOPERATION.fields_by_name['create'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_feed__pb2._FEED -_FEEDOPERATION.fields_by_name['update'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_feed__pb2._FEED -_FEEDOPERATION.oneofs_by_name['operation'].fields.append( - _FEEDOPERATION.fields_by_name['create']) -_FEEDOPERATION.fields_by_name['create'].containing_oneof = _FEEDOPERATION.oneofs_by_name['operation'] -_FEEDOPERATION.oneofs_by_name['operation'].fields.append( - _FEEDOPERATION.fields_by_name['update']) -_FEEDOPERATION.fields_by_name['update'].containing_oneof = _FEEDOPERATION.oneofs_by_name['operation'] -_FEEDOPERATION.oneofs_by_name['operation'].fields.append( - _FEEDOPERATION.fields_by_name['remove']) -_FEEDOPERATION.fields_by_name['remove'].containing_oneof = _FEEDOPERATION.oneofs_by_name['operation'] -_MUTATEFEEDSRESPONSE.fields_by_name['partial_failure_error'].message_type = google_dot_rpc_dot_status__pb2._STATUS -_MUTATEFEEDSRESPONSE.fields_by_name['results'].message_type = _MUTATEFEEDRESULT -DESCRIPTOR.message_types_by_name['GetFeedRequest'] = _GETFEEDREQUEST -DESCRIPTOR.message_types_by_name['MutateFeedsRequest'] = _MUTATEFEEDSREQUEST -DESCRIPTOR.message_types_by_name['FeedOperation'] = _FEEDOPERATION -DESCRIPTOR.message_types_by_name['MutateFeedsResponse'] = _MUTATEFEEDSRESPONSE -DESCRIPTOR.message_types_by_name['MutateFeedResult'] = _MUTATEFEEDRESULT -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -GetFeedRequest = _reflection.GeneratedProtocolMessageType('GetFeedRequest', (_message.Message,), dict( - DESCRIPTOR = _GETFEEDREQUEST, - __module__ = 'google.ads.googleads_v1.proto.services.feed_service_pb2' - , - __doc__ = """Request message for - [FeedService.GetFeed][google.ads.googleads.v1.services.FeedService.GetFeed]. - - - Attributes: - resource_name: - The resource name of the feed to fetch. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.GetFeedRequest) - )) -_sym_db.RegisterMessage(GetFeedRequest) - -MutateFeedsRequest = _reflection.GeneratedProtocolMessageType('MutateFeedsRequest', (_message.Message,), dict( - DESCRIPTOR = _MUTATEFEEDSREQUEST, - __module__ = 'google.ads.googleads_v1.proto.services.feed_service_pb2' - , - __doc__ = """Request message for - [FeedService.MutateFeeds][google.ads.googleads.v1.services.FeedService.MutateFeeds]. - - - Attributes: - customer_id: - The ID of the customer whose feeds are being modified. - operations: - The list of operations to perform on individual feeds. - partial_failure: - If true, successful operations will be carried out and invalid - operations will return errors. If false, all operations will - be carried out in one transaction if and only if they are all - valid. Default is false. - validate_only: - If true, the request is validated but not executed. Only - errors are returned, not results. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.MutateFeedsRequest) - )) -_sym_db.RegisterMessage(MutateFeedsRequest) - -FeedOperation = _reflection.GeneratedProtocolMessageType('FeedOperation', (_message.Message,), dict( - DESCRIPTOR = _FEEDOPERATION, - __module__ = 'google.ads.googleads_v1.proto.services.feed_service_pb2' - , - __doc__ = """A single operation (create, update, remove) on an feed. - - - Attributes: - update_mask: - FieldMask that determines which resource fields are modified - in an update. - operation: - The mutate operation. - create: - Create operation: No resource name is expected for the new - feed. - update: - Update operation: The feed is expected to have a valid - resource name. - remove: - Remove operation: A resource name for the removed feed is - expected, in this format: - ``customers/{customer_id}/feeds/{feed_id}`` - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.FeedOperation) - )) -_sym_db.RegisterMessage(FeedOperation) - -MutateFeedsResponse = _reflection.GeneratedProtocolMessageType('MutateFeedsResponse', (_message.Message,), dict( - DESCRIPTOR = _MUTATEFEEDSRESPONSE, - __module__ = 'google.ads.googleads_v1.proto.services.feed_service_pb2' - , - __doc__ = """Response message for an feed mutate. - - - Attributes: - partial_failure_error: - Errors that pertain to operation failures in the partial - failure mode. Returned only when partial\_failure = true and - all errors occur inside the operations. If any errors occur - outside the operations (e.g. auth errors), we return an RPC - level error. - results: - All results for the mutate. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.MutateFeedsResponse) - )) -_sym_db.RegisterMessage(MutateFeedsResponse) - -MutateFeedResult = _reflection.GeneratedProtocolMessageType('MutateFeedResult', (_message.Message,), dict( - DESCRIPTOR = _MUTATEFEEDRESULT, - __module__ = 'google.ads.googleads_v1.proto.services.feed_service_pb2' - , - __doc__ = """The result for the feed mutate. - - - Attributes: - resource_name: - Returned for successful operations. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.MutateFeedResult) - )) -_sym_db.RegisterMessage(MutateFeedResult) - - -DESCRIPTOR._options = None - -_FEEDSERVICE = _descriptor.ServiceDescriptor( - name='FeedService', - full_name='google.ads.googleads.v1.services.FeedService', - file=DESCRIPTOR, - index=0, - serialized_options=None, - serialized_start=874, - serialized_end=1219, - methods=[ - _descriptor.MethodDescriptor( - name='GetFeed', - full_name='google.ads.googleads.v1.services.FeedService.GetFeed', - index=0, - containing_service=None, - input_type=_GETFEEDREQUEST, - output_type=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_feed__pb2._FEED, - serialized_options=_b('\202\323\344\223\002)\022\'/v1/{resource_name=customers/*/feeds/*}'), - ), - _descriptor.MethodDescriptor( - name='MutateFeeds', - full_name='google.ads.googleads.v1.services.FeedService.MutateFeeds', - index=1, - containing_service=None, - input_type=_MUTATEFEEDSREQUEST, - output_type=_MUTATEFEEDSRESPONSE, - serialized_options=_b('\202\323\344\223\002/\"*/v1/customers/{customer_id=*}/feeds:mutate:\001*'), - ), -]) -_sym_db.RegisterServiceDescriptor(_FEEDSERVICE) - -DESCRIPTOR.services_by_name['FeedService'] = _FEEDSERVICE - -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/services/feed_service_pb2_grpc.py b/google/ads/google_ads/v1/proto/services/feed_service_pb2_grpc.py deleted file mode 100644 index b27241d76..000000000 --- a/google/ads/google_ads/v1/proto/services/feed_service_pb2_grpc.py +++ /dev/null @@ -1,69 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -import grpc - -from google.ads.google_ads.v1.proto.resources import feed_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_feed__pb2 -from google.ads.google_ads.v1.proto.services import feed_service_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_feed__service__pb2 - - -class FeedServiceStub(object): - """Proto file describing the Feed service. - - Service to manage feeds. - """ - - def __init__(self, channel): - """Constructor. - - Args: - channel: A grpc.Channel. - """ - self.GetFeed = channel.unary_unary( - '/google.ads.googleads.v1.services.FeedService/GetFeed', - request_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_feed__service__pb2.GetFeedRequest.SerializeToString, - response_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_feed__pb2.Feed.FromString, - ) - self.MutateFeeds = channel.unary_unary( - '/google.ads.googleads.v1.services.FeedService/MutateFeeds', - request_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_feed__service__pb2.MutateFeedsRequest.SerializeToString, - response_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_feed__service__pb2.MutateFeedsResponse.FromString, - ) - - -class FeedServiceServicer(object): - """Proto file describing the Feed service. - - Service to manage feeds. - """ - - def GetFeed(self, request, context): - """Returns the requested feed in full detail. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def MutateFeeds(self, request, context): - """Creates, updates, or removes feeds. Operation statuses are - returned. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - -def add_FeedServiceServicer_to_server(servicer, server): - rpc_method_handlers = { - 'GetFeed': grpc.unary_unary_rpc_method_handler( - servicer.GetFeed, - request_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_feed__service__pb2.GetFeedRequest.FromString, - response_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_feed__pb2.Feed.SerializeToString, - ), - 'MutateFeeds': grpc.unary_unary_rpc_method_handler( - servicer.MutateFeeds, - request_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_feed__service__pb2.MutateFeedsRequest.FromString, - response_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_feed__service__pb2.MutateFeedsResponse.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'google.ads.googleads.v1.services.FeedService', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) diff --git a/google/ads/google_ads/v1/proto/services/gender_view_service_pb2.py b/google/ads/google_ads/v1/proto/services/gender_view_service_pb2.py deleted file mode 100644 index 88487169a..000000000 --- a/google/ads/google_ads/v1/proto/services/gender_view_service_pb2.py +++ /dev/null @@ -1,107 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/services/gender_view_service.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.ads.google_ads.v1.proto.resources import gender_view_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_gender__view__pb2 -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/services/gender_view_service.proto', - package='google.ads.googleads.v1.services', - syntax='proto3', - serialized_options=_b('\n$com.google.ads.googleads.v1.servicesB\026GenderViewServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v1/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V1.Services\312\002 Google\\Ads\\GoogleAds\\V1\\Services\352\002$Google::Ads::GoogleAds::V1::Services'), - serialized_pb=_b('\n@google/ads/googleads_v1/proto/services/gender_view_service.proto\x12 google.ads.googleads.v1.services\x1a\x39google/ads/googleads_v1/proto/resources/gender_view.proto\x1a\x1cgoogle/api/annotations.proto\"-\n\x14GetGenderViewRequest\x12\x15\n\rresource_name\x18\x01 \x01(\t2\xc3\x01\n\x11GenderViewService\x12\xad\x01\n\rGetGenderView\x12\x36.google.ads.googleads.v1.services.GetGenderViewRequest\x1a-.google.ads.googleads.v1.resources.GenderView\"5\x82\xd3\xe4\x93\x02/\x12-/v1/{resource_name=customers/*/genderViews/*}B\xfd\x01\n$com.google.ads.googleads.v1.servicesB\x16GenderViewServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v1/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V1.Services\xca\x02 Google\\Ads\\GoogleAds\\V1\\Services\xea\x02$Google::Ads::GoogleAds::V1::Servicesb\x06proto3') - , - dependencies=[google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_gender__view__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - - -_GETGENDERVIEWREQUEST = _descriptor.Descriptor( - name='GetGenderViewRequest', - full_name='google.ads.googleads.v1.services.GetGenderViewRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.services.GetGenderViewRequest.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=191, - serialized_end=236, -) - -DESCRIPTOR.message_types_by_name['GetGenderViewRequest'] = _GETGENDERVIEWREQUEST -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -GetGenderViewRequest = _reflection.GeneratedProtocolMessageType('GetGenderViewRequest', (_message.Message,), dict( - DESCRIPTOR = _GETGENDERVIEWREQUEST, - __module__ = 'google.ads.googleads_v1.proto.services.gender_view_service_pb2' - , - __doc__ = """Request message for - [GenderViewService.GetGenderView][google.ads.googleads.v1.services.GenderViewService.GetGenderView]. - - - Attributes: - resource_name: - The resource name of the gender view to fetch. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.GetGenderViewRequest) - )) -_sym_db.RegisterMessage(GetGenderViewRequest) - - -DESCRIPTOR._options = None - -_GENDERVIEWSERVICE = _descriptor.ServiceDescriptor( - name='GenderViewService', - full_name='google.ads.googleads.v1.services.GenderViewService', - file=DESCRIPTOR, - index=0, - serialized_options=None, - serialized_start=239, - serialized_end=434, - methods=[ - _descriptor.MethodDescriptor( - name='GetGenderView', - full_name='google.ads.googleads.v1.services.GenderViewService.GetGenderView', - index=0, - containing_service=None, - input_type=_GETGENDERVIEWREQUEST, - output_type=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_gender__view__pb2._GENDERVIEW, - serialized_options=_b('\202\323\344\223\002/\022-/v1/{resource_name=customers/*/genderViews/*}'), - ), -]) -_sym_db.RegisterServiceDescriptor(_GENDERVIEWSERVICE) - -DESCRIPTOR.services_by_name['GenderViewService'] = _GENDERVIEWSERVICE - -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/services/gender_view_service_pb2_grpc.py b/google/ads/google_ads/v1/proto/services/gender_view_service_pb2_grpc.py deleted file mode 100644 index b07d1810e..000000000 --- a/google/ads/google_ads/v1/proto/services/gender_view_service_pb2_grpc.py +++ /dev/null @@ -1,51 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -import grpc - -from google.ads.google_ads.v1.proto.resources import gender_view_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_gender__view__pb2 -from google.ads.google_ads.v1.proto.services import gender_view_service_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_gender__view__service__pb2 - - -class GenderViewServiceStub(object): - """Proto file describing the Gender View service. - - Service to manage gender views. - """ - - def __init__(self, channel): - """Constructor. - - Args: - channel: A grpc.Channel. - """ - self.GetGenderView = channel.unary_unary( - '/google.ads.googleads.v1.services.GenderViewService/GetGenderView', - request_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_gender__view__service__pb2.GetGenderViewRequest.SerializeToString, - response_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_gender__view__pb2.GenderView.FromString, - ) - - -class GenderViewServiceServicer(object): - """Proto file describing the Gender View service. - - Service to manage gender views. - """ - - def GetGenderView(self, request, context): - """Returns the requested gender view in full detail. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - -def add_GenderViewServiceServicer_to_server(servicer, server): - rpc_method_handlers = { - 'GetGenderView': grpc.unary_unary_rpc_method_handler( - servicer.GetGenderView, - request_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_gender__view__service__pb2.GetGenderViewRequest.FromString, - response_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_gender__view__pb2.GenderView.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'google.ads.googleads.v1.services.GenderViewService', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) diff --git a/google/ads/google_ads/v1/proto/services/geo_target_constant_service_pb2.py b/google/ads/google_ads/v1/proto/services/geo_target_constant_service_pb2.py deleted file mode 100644 index 34fd867b2..000000000 --- a/google/ads/google_ads/v1/proto/services/geo_target_constant_service_pb2.py +++ /dev/null @@ -1,448 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/services/geo_target_constant_service.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.ads.google_ads.v1.proto.resources import geo_target_constant_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_geo__target__constant__pb2 -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 -from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/services/geo_target_constant_service.proto', - package='google.ads.googleads.v1.services', - syntax='proto3', - serialized_options=_b('\n$com.google.ads.googleads.v1.servicesB\035GeoTargetConstantServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v1/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V1.Services\312\002 Google\\Ads\\GoogleAds\\V1\\Services\352\002$Google::Ads::GoogleAds::V1::Services'), - serialized_pb=_b('\nHgoogle/ads/googleads_v1/proto/services/geo_target_constant_service.proto\x12 google.ads.googleads.v1.services\x1a\x41google/ads/googleads_v1/proto/resources/geo_target_constant.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x1egoogle/protobuf/wrappers.proto\"4\n\x1bGetGeoTargetConstantRequest\x12\x15\n\rresource_name\x18\x01 \x01(\t\"\xe7\x03\n SuggestGeoTargetConstantsRequest\x12,\n\x06locale\x18\x03 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x32\n\x0c\x63ountry_code\x18\x05 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12j\n\x0elocation_names\x18\x01 \x01(\x0b\x32P.google.ads.googleads.v1.services.SuggestGeoTargetConstantsRequest.LocationNamesH\x00\x12\x64\n\x0bgeo_targets\x18\x02 \x01(\x0b\x32M.google.ads.googleads.v1.services.SuggestGeoTargetConstantsRequest.GeoTargetsH\x00\x1a<\n\rLocationNames\x12+\n\x05names\x18\x01 \x03(\x0b\x32\x1c.google.protobuf.StringValue\x1aH\n\nGeoTargets\x12:\n\x14geo_target_constants\x18\x01 \x03(\x0b\x32\x1c.google.protobuf.StringValueB\x07\n\x05query\"\x8b\x01\n!SuggestGeoTargetConstantsResponse\x12\x66\n\x1fgeo_target_constant_suggestions\x18\x01 \x03(\x0b\x32=.google.ads.googleads.v1.services.GeoTargetConstantSuggestion\"\xd8\x02\n\x1bGeoTargetConstantSuggestion\x12,\n\x06locale\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12*\n\x05reach\x18\x02 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x31\n\x0bsearch_term\x18\x03 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12Q\n\x13geo_target_constant\x18\x04 \x01(\x0b\x32\x34.google.ads.googleads.v1.resources.GeoTargetConstant\x12Y\n\x1bgeo_target_constant_parents\x18\x05 \x03(\x0b\x32\x34.google.ads.googleads.v1.resources.GeoTargetConstant2\xac\x03\n\x18GeoTargetConstantService\x12\xbd\x01\n\x14GetGeoTargetConstant\x12=.google.ads.googleads.v1.services.GetGeoTargetConstantRequest\x1a\x34.google.ads.googleads.v1.resources.GeoTargetConstant\"0\x82\xd3\xe4\x93\x02*\x12(/v1/{resource_name=geoTargetConstants/*}\x12\xcf\x01\n\x19SuggestGeoTargetConstants\x12\x42.google.ads.googleads.v1.services.SuggestGeoTargetConstantsRequest\x1a\x43.google.ads.googleads.v1.services.SuggestGeoTargetConstantsResponse\")\x82\xd3\xe4\x93\x02#\"\x1e/v1/geoTargetConstants:suggest:\x01*B\x84\x02\n$com.google.ads.googleads.v1.servicesB\x1dGeoTargetConstantServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v1/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V1.Services\xca\x02 Google\\Ads\\GoogleAds\\V1\\Services\xea\x02$Google::Ads::GoogleAds::V1::Servicesb\x06proto3') - , - dependencies=[google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_geo__target__constant__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,]) - - - - -_GETGEOTARGETCONSTANTREQUEST = _descriptor.Descriptor( - name='GetGeoTargetConstantRequest', - full_name='google.ads.googleads.v1.services.GetGeoTargetConstantRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.services.GetGeoTargetConstantRequest.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=239, - serialized_end=291, -) - - -_SUGGESTGEOTARGETCONSTANTSREQUEST_LOCATIONNAMES = _descriptor.Descriptor( - name='LocationNames', - full_name='google.ads.googleads.v1.services.SuggestGeoTargetConstantsRequest.LocationNames', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='names', full_name='google.ads.googleads.v1.services.SuggestGeoTargetConstantsRequest.LocationNames.names', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=638, - serialized_end=698, -) - -_SUGGESTGEOTARGETCONSTANTSREQUEST_GEOTARGETS = _descriptor.Descriptor( - name='GeoTargets', - full_name='google.ads.googleads.v1.services.SuggestGeoTargetConstantsRequest.GeoTargets', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='geo_target_constants', full_name='google.ads.googleads.v1.services.SuggestGeoTargetConstantsRequest.GeoTargets.geo_target_constants', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=700, - serialized_end=772, -) - -_SUGGESTGEOTARGETCONSTANTSREQUEST = _descriptor.Descriptor( - name='SuggestGeoTargetConstantsRequest', - full_name='google.ads.googleads.v1.services.SuggestGeoTargetConstantsRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='locale', full_name='google.ads.googleads.v1.services.SuggestGeoTargetConstantsRequest.locale', index=0, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='country_code', full_name='google.ads.googleads.v1.services.SuggestGeoTargetConstantsRequest.country_code', index=1, - number=5, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='location_names', full_name='google.ads.googleads.v1.services.SuggestGeoTargetConstantsRequest.location_names', index=2, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='geo_targets', full_name='google.ads.googleads.v1.services.SuggestGeoTargetConstantsRequest.geo_targets', index=3, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[_SUGGESTGEOTARGETCONSTANTSREQUEST_LOCATIONNAMES, _SUGGESTGEOTARGETCONSTANTSREQUEST_GEOTARGETS, ], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='query', full_name='google.ads.googleads.v1.services.SuggestGeoTargetConstantsRequest.query', - index=0, containing_type=None, fields=[]), - ], - serialized_start=294, - serialized_end=781, -) - - -_SUGGESTGEOTARGETCONSTANTSRESPONSE = _descriptor.Descriptor( - name='SuggestGeoTargetConstantsResponse', - full_name='google.ads.googleads.v1.services.SuggestGeoTargetConstantsResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='geo_target_constant_suggestions', full_name='google.ads.googleads.v1.services.SuggestGeoTargetConstantsResponse.geo_target_constant_suggestions', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=784, - serialized_end=923, -) - - -_GEOTARGETCONSTANTSUGGESTION = _descriptor.Descriptor( - name='GeoTargetConstantSuggestion', - full_name='google.ads.googleads.v1.services.GeoTargetConstantSuggestion', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='locale', full_name='google.ads.googleads.v1.services.GeoTargetConstantSuggestion.locale', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='reach', full_name='google.ads.googleads.v1.services.GeoTargetConstantSuggestion.reach', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='search_term', full_name='google.ads.googleads.v1.services.GeoTargetConstantSuggestion.search_term', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='geo_target_constant', full_name='google.ads.googleads.v1.services.GeoTargetConstantSuggestion.geo_target_constant', index=3, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='geo_target_constant_parents', full_name='google.ads.googleads.v1.services.GeoTargetConstantSuggestion.geo_target_constant_parents', index=4, - number=5, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=926, - serialized_end=1270, -) - -_SUGGESTGEOTARGETCONSTANTSREQUEST_LOCATIONNAMES.fields_by_name['names'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_SUGGESTGEOTARGETCONSTANTSREQUEST_LOCATIONNAMES.containing_type = _SUGGESTGEOTARGETCONSTANTSREQUEST -_SUGGESTGEOTARGETCONSTANTSREQUEST_GEOTARGETS.fields_by_name['geo_target_constants'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_SUGGESTGEOTARGETCONSTANTSREQUEST_GEOTARGETS.containing_type = _SUGGESTGEOTARGETCONSTANTSREQUEST -_SUGGESTGEOTARGETCONSTANTSREQUEST.fields_by_name['locale'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_SUGGESTGEOTARGETCONSTANTSREQUEST.fields_by_name['country_code'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_SUGGESTGEOTARGETCONSTANTSREQUEST.fields_by_name['location_names'].message_type = _SUGGESTGEOTARGETCONSTANTSREQUEST_LOCATIONNAMES -_SUGGESTGEOTARGETCONSTANTSREQUEST.fields_by_name['geo_targets'].message_type = _SUGGESTGEOTARGETCONSTANTSREQUEST_GEOTARGETS -_SUGGESTGEOTARGETCONSTANTSREQUEST.oneofs_by_name['query'].fields.append( - _SUGGESTGEOTARGETCONSTANTSREQUEST.fields_by_name['location_names']) -_SUGGESTGEOTARGETCONSTANTSREQUEST.fields_by_name['location_names'].containing_oneof = _SUGGESTGEOTARGETCONSTANTSREQUEST.oneofs_by_name['query'] -_SUGGESTGEOTARGETCONSTANTSREQUEST.oneofs_by_name['query'].fields.append( - _SUGGESTGEOTARGETCONSTANTSREQUEST.fields_by_name['geo_targets']) -_SUGGESTGEOTARGETCONSTANTSREQUEST.fields_by_name['geo_targets'].containing_oneof = _SUGGESTGEOTARGETCONSTANTSREQUEST.oneofs_by_name['query'] -_SUGGESTGEOTARGETCONSTANTSRESPONSE.fields_by_name['geo_target_constant_suggestions'].message_type = _GEOTARGETCONSTANTSUGGESTION -_GEOTARGETCONSTANTSUGGESTION.fields_by_name['locale'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_GEOTARGETCONSTANTSUGGESTION.fields_by_name['reach'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -_GEOTARGETCONSTANTSUGGESTION.fields_by_name['search_term'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_GEOTARGETCONSTANTSUGGESTION.fields_by_name['geo_target_constant'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_geo__target__constant__pb2._GEOTARGETCONSTANT -_GEOTARGETCONSTANTSUGGESTION.fields_by_name['geo_target_constant_parents'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_geo__target__constant__pb2._GEOTARGETCONSTANT -DESCRIPTOR.message_types_by_name['GetGeoTargetConstantRequest'] = _GETGEOTARGETCONSTANTREQUEST -DESCRIPTOR.message_types_by_name['SuggestGeoTargetConstantsRequest'] = _SUGGESTGEOTARGETCONSTANTSREQUEST -DESCRIPTOR.message_types_by_name['SuggestGeoTargetConstantsResponse'] = _SUGGESTGEOTARGETCONSTANTSRESPONSE -DESCRIPTOR.message_types_by_name['GeoTargetConstantSuggestion'] = _GEOTARGETCONSTANTSUGGESTION -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -GetGeoTargetConstantRequest = _reflection.GeneratedProtocolMessageType('GetGeoTargetConstantRequest', (_message.Message,), dict( - DESCRIPTOR = _GETGEOTARGETCONSTANTREQUEST, - __module__ = 'google.ads.googleads_v1.proto.services.geo_target_constant_service_pb2' - , - __doc__ = """Request message for - [GeoTargetConstantService.GetGeoTargetConstant][google.ads.googleads.v1.services.GeoTargetConstantService.GetGeoTargetConstant]. - - - Attributes: - resource_name: - The resource name of the geo target constant to fetch. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.GetGeoTargetConstantRequest) - )) -_sym_db.RegisterMessage(GetGeoTargetConstantRequest) - -SuggestGeoTargetConstantsRequest = _reflection.GeneratedProtocolMessageType('SuggestGeoTargetConstantsRequest', (_message.Message,), dict( - - LocationNames = _reflection.GeneratedProtocolMessageType('LocationNames', (_message.Message,), dict( - DESCRIPTOR = _SUGGESTGEOTARGETCONSTANTSREQUEST_LOCATIONNAMES, - __module__ = 'google.ads.googleads_v1.proto.services.geo_target_constant_service_pb2' - , - __doc__ = """A list of location names. - - - Attributes: - names: - A list of location names. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.SuggestGeoTargetConstantsRequest.LocationNames) - )) - , - - GeoTargets = _reflection.GeneratedProtocolMessageType('GeoTargets', (_message.Message,), dict( - DESCRIPTOR = _SUGGESTGEOTARGETCONSTANTSREQUEST_GEOTARGETS, - __module__ = 'google.ads.googleads_v1.proto.services.geo_target_constant_service_pb2' - , - __doc__ = """A list of geo target constant resource names. - - - Attributes: - geo_target_constants: - A list of geo target constant resource names. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.SuggestGeoTargetConstantsRequest.GeoTargets) - )) - , - DESCRIPTOR = _SUGGESTGEOTARGETCONSTANTSREQUEST, - __module__ = 'google.ads.googleads_v1.proto.services.geo_target_constant_service_pb2' - , - __doc__ = """Request message for - [GeoTargetConstantService.SuggestGeoTargetConstantsRequest][]. - - - Attributes: - locale: - If possible, returned geo targets are translated using this - locale. If not, en is used by default. This is also used as a - hint for returned geo targets. - country_code: - Returned geo targets are restricted to this country code. - query: - Required. A selector of geo target constants. - location_names: - The location names to search by. At most 25 names can be set. - geo_targets: - The geo target constant resource names to filter by. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.SuggestGeoTargetConstantsRequest) - )) -_sym_db.RegisterMessage(SuggestGeoTargetConstantsRequest) -_sym_db.RegisterMessage(SuggestGeoTargetConstantsRequest.LocationNames) -_sym_db.RegisterMessage(SuggestGeoTargetConstantsRequest.GeoTargets) - -SuggestGeoTargetConstantsResponse = _reflection.GeneratedProtocolMessageType('SuggestGeoTargetConstantsResponse', (_message.Message,), dict( - DESCRIPTOR = _SUGGESTGEOTARGETCONSTANTSRESPONSE, - __module__ = 'google.ads.googleads_v1.proto.services.geo_target_constant_service_pb2' - , - __doc__ = """Response message for - [GeoTargetConstantService.SuggestGeoTargetConstants][google.ads.googleads.v1.services.GeoTargetConstantService.SuggestGeoTargetConstants] - - - Attributes: - geo_target_constant_suggestions: - Geo target constant suggestions. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.SuggestGeoTargetConstantsResponse) - )) -_sym_db.RegisterMessage(SuggestGeoTargetConstantsResponse) - -GeoTargetConstantSuggestion = _reflection.GeneratedProtocolMessageType('GeoTargetConstantSuggestion', (_message.Message,), dict( - DESCRIPTOR = _GEOTARGETCONSTANTSUGGESTION, - __module__ = 'google.ads.googleads_v1.proto.services.geo_target_constant_service_pb2' - , - __doc__ = """A geo target constant suggestion. - - - Attributes: - locale: - The language this GeoTargetConstantSuggestion is currently - translated to. It affects the name of geo target fields. For - example, if locale=en, then name=Spain. If locale=es, then - name=España. The default locale will be returned if no - translation exists for the locale in the request. - reach: - Approximate user population that will be targeted, rounded to - the nearest 100. - search_term: - If the request searched by location name, this is the location - name that matched the geo target. - geo_target_constant: - The GeoTargetConstant result. - geo_target_constant_parents: - The list of parents of the geo target constant. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.GeoTargetConstantSuggestion) - )) -_sym_db.RegisterMessage(GeoTargetConstantSuggestion) - - -DESCRIPTOR._options = None - -_GEOTARGETCONSTANTSERVICE = _descriptor.ServiceDescriptor( - name='GeoTargetConstantService', - full_name='google.ads.googleads.v1.services.GeoTargetConstantService', - file=DESCRIPTOR, - index=0, - serialized_options=None, - serialized_start=1273, - serialized_end=1701, - methods=[ - _descriptor.MethodDescriptor( - name='GetGeoTargetConstant', - full_name='google.ads.googleads.v1.services.GeoTargetConstantService.GetGeoTargetConstant', - index=0, - containing_service=None, - input_type=_GETGEOTARGETCONSTANTREQUEST, - output_type=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_geo__target__constant__pb2._GEOTARGETCONSTANT, - serialized_options=_b('\202\323\344\223\002*\022(/v1/{resource_name=geoTargetConstants/*}'), - ), - _descriptor.MethodDescriptor( - name='SuggestGeoTargetConstants', - full_name='google.ads.googleads.v1.services.GeoTargetConstantService.SuggestGeoTargetConstants', - index=1, - containing_service=None, - input_type=_SUGGESTGEOTARGETCONSTANTSREQUEST, - output_type=_SUGGESTGEOTARGETCONSTANTSRESPONSE, - serialized_options=_b('\202\323\344\223\002#\"\036/v1/geoTargetConstants:suggest:\001*'), - ), -]) -_sym_db.RegisterServiceDescriptor(_GEOTARGETCONSTANTSERVICE) - -DESCRIPTOR.services_by_name['GeoTargetConstantService'] = _GEOTARGETCONSTANTSERVICE - -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/services/geo_target_constant_service_pb2_grpc.py b/google/ads/google_ads/v1/proto/services/geo_target_constant_service_pb2_grpc.py deleted file mode 100644 index d2ea163c7..000000000 --- a/google/ads/google_ads/v1/proto/services/geo_target_constant_service_pb2_grpc.py +++ /dev/null @@ -1,68 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -import grpc - -from google.ads.google_ads.v1.proto.resources import geo_target_constant_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_geo__target__constant__pb2 -from google.ads.google_ads.v1.proto.services import geo_target_constant_service_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_geo__target__constant__service__pb2 - - -class GeoTargetConstantServiceStub(object): - """Proto file describing the Geo target constant service. - - Service to fetch geo target constants. - """ - - def __init__(self, channel): - """Constructor. - - Args: - channel: A grpc.Channel. - """ - self.GetGeoTargetConstant = channel.unary_unary( - '/google.ads.googleads.v1.services.GeoTargetConstantService/GetGeoTargetConstant', - request_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_geo__target__constant__service__pb2.GetGeoTargetConstantRequest.SerializeToString, - response_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_geo__target__constant__pb2.GeoTargetConstant.FromString, - ) - self.SuggestGeoTargetConstants = channel.unary_unary( - '/google.ads.googleads.v1.services.GeoTargetConstantService/SuggestGeoTargetConstants', - request_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_geo__target__constant__service__pb2.SuggestGeoTargetConstantsRequest.SerializeToString, - response_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_geo__target__constant__service__pb2.SuggestGeoTargetConstantsResponse.FromString, - ) - - -class GeoTargetConstantServiceServicer(object): - """Proto file describing the Geo target constant service. - - Service to fetch geo target constants. - """ - - def GetGeoTargetConstant(self, request, context): - """Returns the requested geo target constant in full detail. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def SuggestGeoTargetConstants(self, request, context): - """Returns GeoTargetConstant suggestions by location name or by resource name. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - -def add_GeoTargetConstantServiceServicer_to_server(servicer, server): - rpc_method_handlers = { - 'GetGeoTargetConstant': grpc.unary_unary_rpc_method_handler( - servicer.GetGeoTargetConstant, - request_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_geo__target__constant__service__pb2.GetGeoTargetConstantRequest.FromString, - response_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_geo__target__constant__pb2.GeoTargetConstant.SerializeToString, - ), - 'SuggestGeoTargetConstants': grpc.unary_unary_rpc_method_handler( - servicer.SuggestGeoTargetConstants, - request_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_geo__target__constant__service__pb2.SuggestGeoTargetConstantsRequest.FromString, - response_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_geo__target__constant__service__pb2.SuggestGeoTargetConstantsResponse.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'google.ads.googleads.v1.services.GeoTargetConstantService', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) diff --git a/google/ads/google_ads/v1/proto/services/geographic_view_service_pb2.py b/google/ads/google_ads/v1/proto/services/geographic_view_service_pb2.py deleted file mode 100644 index f7e7dbe16..000000000 --- a/google/ads/google_ads/v1/proto/services/geographic_view_service_pb2.py +++ /dev/null @@ -1,107 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/services/geographic_view_service.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.ads.google_ads.v1.proto.resources import geographic_view_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_geographic__view__pb2 -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/services/geographic_view_service.proto', - package='google.ads.googleads.v1.services', - syntax='proto3', - serialized_options=_b('\n$com.google.ads.googleads.v1.servicesB\032GeographicViewServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v1/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V1.Services\312\002 Google\\Ads\\GoogleAds\\V1\\Services\352\002$Google::Ads::GoogleAds::V1::Services'), - serialized_pb=_b('\nDgoogle/ads/googleads_v1/proto/services/geographic_view_service.proto\x12 google.ads.googleads.v1.services\x1a=google/ads/googleads_v1/proto/resources/geographic_view.proto\x1a\x1cgoogle/api/annotations.proto\"1\n\x18GetGeographicViewRequest\x12\x15\n\rresource_name\x18\x01 \x01(\t2\xd7\x01\n\x15GeographicViewService\x12\xbd\x01\n\x11GetGeographicView\x12:.google.ads.googleads.v1.services.GetGeographicViewRequest\x1a\x31.google.ads.googleads.v1.resources.GeographicView\"9\x82\xd3\xe4\x93\x02\x33\x12\x31/v1/{resource_name=customers/*/geographicViews/*}B\x81\x02\n$com.google.ads.googleads.v1.servicesB\x1aGeographicViewServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v1/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V1.Services\xca\x02 Google\\Ads\\GoogleAds\\V1\\Services\xea\x02$Google::Ads::GoogleAds::V1::Servicesb\x06proto3') - , - dependencies=[google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_geographic__view__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - - -_GETGEOGRAPHICVIEWREQUEST = _descriptor.Descriptor( - name='GetGeographicViewRequest', - full_name='google.ads.googleads.v1.services.GetGeographicViewRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.services.GetGeographicViewRequest.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=199, - serialized_end=248, -) - -DESCRIPTOR.message_types_by_name['GetGeographicViewRequest'] = _GETGEOGRAPHICVIEWREQUEST -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -GetGeographicViewRequest = _reflection.GeneratedProtocolMessageType('GetGeographicViewRequest', (_message.Message,), dict( - DESCRIPTOR = _GETGEOGRAPHICVIEWREQUEST, - __module__ = 'google.ads.googleads_v1.proto.services.geographic_view_service_pb2' - , - __doc__ = """Request message for - [GeographicViewService.GetGeographicView][google.ads.googleads.v1.services.GeographicViewService.GetGeographicView]. - - - Attributes: - resource_name: - The resource name of the geographic view to fetch. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.GetGeographicViewRequest) - )) -_sym_db.RegisterMessage(GetGeographicViewRequest) - - -DESCRIPTOR._options = None - -_GEOGRAPHICVIEWSERVICE = _descriptor.ServiceDescriptor( - name='GeographicViewService', - full_name='google.ads.googleads.v1.services.GeographicViewService', - file=DESCRIPTOR, - index=0, - serialized_options=None, - serialized_start=251, - serialized_end=466, - methods=[ - _descriptor.MethodDescriptor( - name='GetGeographicView', - full_name='google.ads.googleads.v1.services.GeographicViewService.GetGeographicView', - index=0, - containing_service=None, - input_type=_GETGEOGRAPHICVIEWREQUEST, - output_type=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_geographic__view__pb2._GEOGRAPHICVIEW, - serialized_options=_b('\202\323\344\223\0023\0221/v1/{resource_name=customers/*/geographicViews/*}'), - ), -]) -_sym_db.RegisterServiceDescriptor(_GEOGRAPHICVIEWSERVICE) - -DESCRIPTOR.services_by_name['GeographicViewService'] = _GEOGRAPHICVIEWSERVICE - -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/services/geographic_view_service_pb2_grpc.py b/google/ads/google_ads/v1/proto/services/geographic_view_service_pb2_grpc.py deleted file mode 100644 index a621f19a4..000000000 --- a/google/ads/google_ads/v1/proto/services/geographic_view_service_pb2_grpc.py +++ /dev/null @@ -1,51 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -import grpc - -from google.ads.google_ads.v1.proto.resources import geographic_view_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_geographic__view__pb2 -from google.ads.google_ads.v1.proto.services import geographic_view_service_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_geographic__view__service__pb2 - - -class GeographicViewServiceStub(object): - """Proto file describing the GeographicViewService. - - Service to manage geographic views. - """ - - def __init__(self, channel): - """Constructor. - - Args: - channel: A grpc.Channel. - """ - self.GetGeographicView = channel.unary_unary( - '/google.ads.googleads.v1.services.GeographicViewService/GetGeographicView', - request_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_geographic__view__service__pb2.GetGeographicViewRequest.SerializeToString, - response_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_geographic__view__pb2.GeographicView.FromString, - ) - - -class GeographicViewServiceServicer(object): - """Proto file describing the GeographicViewService. - - Service to manage geographic views. - """ - - def GetGeographicView(self, request, context): - """Returns the requested geographic view in full detail. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - -def add_GeographicViewServiceServicer_to_server(servicer, server): - rpc_method_handlers = { - 'GetGeographicView': grpc.unary_unary_rpc_method_handler( - servicer.GetGeographicView, - request_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_geographic__view__service__pb2.GetGeographicViewRequest.FromString, - response_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_geographic__view__pb2.GeographicView.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'google.ads.googleads.v1.services.GeographicViewService', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) diff --git a/google/ads/google_ads/v1/proto/services/google_ads_field_service_pb2.py b/google/ads/google_ads/v1/proto/services/google_ads_field_service_pb2.py deleted file mode 100644 index 256aa66d2..000000000 --- a/google/ads/google_ads/v1/proto/services/google_ads_field_service_pb2.py +++ /dev/null @@ -1,258 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/services/google_ads_field_service.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.ads.google_ads.v1.proto.resources import google_ads_field_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_google__ads__field__pb2 -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/services/google_ads_field_service.proto', - package='google.ads.googleads.v1.services', - syntax='proto3', - serialized_options=_b('\n$com.google.ads.googleads.v1.servicesB\032GoogleAdsFieldServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v1/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V1.Services\312\002 Google\\Ads\\GoogleAds\\V1\\Services\352\002$Google::Ads::GoogleAds::V1::Services'), - serialized_pb=_b('\nEgoogle/ads/googleads_v1/proto/services/google_ads_field_service.proto\x12 google.ads.googleads.v1.services\x1a>google/ads/googleads_v1/proto/resources/google_ads_field.proto\x1a\x1cgoogle/api/annotations.proto\"1\n\x18GetGoogleAdsFieldRequest\x12\x15\n\rresource_name\x18\x01 \x01(\t\"T\n\x1cSearchGoogleAdsFieldsRequest\x12\r\n\x05query\x18\x01 \x01(\t\x12\x12\n\npage_token\x18\x02 \x01(\t\x12\x11\n\tpage_size\x18\x03 \x01(\x05\"\x99\x01\n\x1dSearchGoogleAdsFieldsResponse\x12\x42\n\x07results\x18\x01 \x03(\x0b\x32\x31.google.ads.googleads.v1.resources.GoogleAdsField\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x1b\n\x13total_results_count\x18\x03 \x01(\x03\x32\x8d\x03\n\x15GoogleAdsFieldService\x12\xb1\x01\n\x11GetGoogleAdsField\x12:.google.ads.googleads.v1.services.GetGoogleAdsFieldRequest\x1a\x31.google.ads.googleads.v1.resources.GoogleAdsField\"-\x82\xd3\xe4\x93\x02\'\x12%/v1/{resource_name=googleAdsFields/*}\x12\xbf\x01\n\x15SearchGoogleAdsFields\x12>.google.ads.googleads.v1.services.SearchGoogleAdsFieldsRequest\x1a?.google.ads.googleads.v1.services.SearchGoogleAdsFieldsResponse\"%\x82\xd3\xe4\x93\x02\x1f\"\x1a/v1/googleAdsFields:search:\x01*B\x81\x02\n$com.google.ads.googleads.v1.servicesB\x1aGoogleAdsFieldServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v1/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V1.Services\xca\x02 Google\\Ads\\GoogleAds\\V1\\Services\xea\x02$Google::Ads::GoogleAds::V1::Servicesb\x06proto3') - , - dependencies=[google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_google__ads__field__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - - -_GETGOOGLEADSFIELDREQUEST = _descriptor.Descriptor( - name='GetGoogleAdsFieldRequest', - full_name='google.ads.googleads.v1.services.GetGoogleAdsFieldRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.services.GetGoogleAdsFieldRequest.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=201, - serialized_end=250, -) - - -_SEARCHGOOGLEADSFIELDSREQUEST = _descriptor.Descriptor( - name='SearchGoogleAdsFieldsRequest', - full_name='google.ads.googleads.v1.services.SearchGoogleAdsFieldsRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='query', full_name='google.ads.googleads.v1.services.SearchGoogleAdsFieldsRequest.query', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='page_token', full_name='google.ads.googleads.v1.services.SearchGoogleAdsFieldsRequest.page_token', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='page_size', full_name='google.ads.googleads.v1.services.SearchGoogleAdsFieldsRequest.page_size', index=2, - number=3, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=252, - serialized_end=336, -) - - -_SEARCHGOOGLEADSFIELDSRESPONSE = _descriptor.Descriptor( - name='SearchGoogleAdsFieldsResponse', - full_name='google.ads.googleads.v1.services.SearchGoogleAdsFieldsResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='results', full_name='google.ads.googleads.v1.services.SearchGoogleAdsFieldsResponse.results', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='next_page_token', full_name='google.ads.googleads.v1.services.SearchGoogleAdsFieldsResponse.next_page_token', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='total_results_count', full_name='google.ads.googleads.v1.services.SearchGoogleAdsFieldsResponse.total_results_count', index=2, - number=3, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=339, - serialized_end=492, -) - -_SEARCHGOOGLEADSFIELDSRESPONSE.fields_by_name['results'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_google__ads__field__pb2._GOOGLEADSFIELD -DESCRIPTOR.message_types_by_name['GetGoogleAdsFieldRequest'] = _GETGOOGLEADSFIELDREQUEST -DESCRIPTOR.message_types_by_name['SearchGoogleAdsFieldsRequest'] = _SEARCHGOOGLEADSFIELDSREQUEST -DESCRIPTOR.message_types_by_name['SearchGoogleAdsFieldsResponse'] = _SEARCHGOOGLEADSFIELDSRESPONSE -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -GetGoogleAdsFieldRequest = _reflection.GeneratedProtocolMessageType('GetGoogleAdsFieldRequest', (_message.Message,), dict( - DESCRIPTOR = _GETGOOGLEADSFIELDREQUEST, - __module__ = 'google.ads.googleads_v1.proto.services.google_ads_field_service_pb2' - , - __doc__ = """Request message for - [GoogleAdsFieldService.GetGoogleAdsField][google.ads.googleads.v1.services.GoogleAdsFieldService.GetGoogleAdsField]. - - - Attributes: - resource_name: - The resource name of the field to get. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.GetGoogleAdsFieldRequest) - )) -_sym_db.RegisterMessage(GetGoogleAdsFieldRequest) - -SearchGoogleAdsFieldsRequest = _reflection.GeneratedProtocolMessageType('SearchGoogleAdsFieldsRequest', (_message.Message,), dict( - DESCRIPTOR = _SEARCHGOOGLEADSFIELDSREQUEST, - __module__ = 'google.ads.googleads_v1.proto.services.google_ads_field_service_pb2' - , - __doc__ = """Request message for - [GoogleAdsFieldService.SearchGoogleAdsFields][google.ads.googleads.v1.services.GoogleAdsFieldService.SearchGoogleAdsFields]. - - - Attributes: - query: - The query string. - page_token: - Token of the page to retrieve. If not specified, the first - page of results will be returned. Use the value obtained from - ``next_page_token`` in the previous response in order to - request the next page of results. - page_size: - Number of elements to retrieve in a single page. When too - large a page is requested, the server may decide to further - limit the number of returned resources. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.SearchGoogleAdsFieldsRequest) - )) -_sym_db.RegisterMessage(SearchGoogleAdsFieldsRequest) - -SearchGoogleAdsFieldsResponse = _reflection.GeneratedProtocolMessageType('SearchGoogleAdsFieldsResponse', (_message.Message,), dict( - DESCRIPTOR = _SEARCHGOOGLEADSFIELDSRESPONSE, - __module__ = 'google.ads.googleads_v1.proto.services.google_ads_field_service_pb2' - , - __doc__ = """Response message for - [GoogleAdsFieldService.SearchGoogleAdsFields][google.ads.googleads.v1.services.GoogleAdsFieldService.SearchGoogleAdsFields]. - - - Attributes: - results: - The list of fields that matched the query. - next_page_token: - Pagination token used to retrieve the next page of results. - Pass the content of this string as the ``page_token`` - attribute of the next request. ``next_page_token`` is not - returned for the last page. - total_results_count: - Total number of results that match the query ignoring the - LIMIT clause. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.SearchGoogleAdsFieldsResponse) - )) -_sym_db.RegisterMessage(SearchGoogleAdsFieldsResponse) - - -DESCRIPTOR._options = None - -_GOOGLEADSFIELDSERVICE = _descriptor.ServiceDescriptor( - name='GoogleAdsFieldService', - full_name='google.ads.googleads.v1.services.GoogleAdsFieldService', - file=DESCRIPTOR, - index=0, - serialized_options=None, - serialized_start=495, - serialized_end=892, - methods=[ - _descriptor.MethodDescriptor( - name='GetGoogleAdsField', - full_name='google.ads.googleads.v1.services.GoogleAdsFieldService.GetGoogleAdsField', - index=0, - containing_service=None, - input_type=_GETGOOGLEADSFIELDREQUEST, - output_type=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_google__ads__field__pb2._GOOGLEADSFIELD, - serialized_options=_b('\202\323\344\223\002\'\022%/v1/{resource_name=googleAdsFields/*}'), - ), - _descriptor.MethodDescriptor( - name='SearchGoogleAdsFields', - full_name='google.ads.googleads.v1.services.GoogleAdsFieldService.SearchGoogleAdsFields', - index=1, - containing_service=None, - input_type=_SEARCHGOOGLEADSFIELDSREQUEST, - output_type=_SEARCHGOOGLEADSFIELDSRESPONSE, - serialized_options=_b('\202\323\344\223\002\037\"\032/v1/googleAdsFields:search:\001*'), - ), -]) -_sym_db.RegisterServiceDescriptor(_GOOGLEADSFIELDSERVICE) - -DESCRIPTOR.services_by_name['GoogleAdsFieldService'] = _GOOGLEADSFIELDSERVICE - -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/services/google_ads_field_service_pb2_grpc.py b/google/ads/google_ads/v1/proto/services/google_ads_field_service_pb2_grpc.py deleted file mode 100644 index f52c74062..000000000 --- a/google/ads/google_ads/v1/proto/services/google_ads_field_service_pb2_grpc.py +++ /dev/null @@ -1,68 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -import grpc - -from google.ads.google_ads.v1.proto.resources import google_ads_field_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_google__ads__field__pb2 -from google.ads.google_ads.v1.proto.services import google_ads_field_service_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_google__ads__field__service__pb2 - - -class GoogleAdsFieldServiceStub(object): - """Proto file describing the GoogleAdsFieldService - - Service to fetch Google Ads API fields. - """ - - def __init__(self, channel): - """Constructor. - - Args: - channel: A grpc.Channel. - """ - self.GetGoogleAdsField = channel.unary_unary( - '/google.ads.googleads.v1.services.GoogleAdsFieldService/GetGoogleAdsField', - request_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_google__ads__field__service__pb2.GetGoogleAdsFieldRequest.SerializeToString, - response_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_google__ads__field__pb2.GoogleAdsField.FromString, - ) - self.SearchGoogleAdsFields = channel.unary_unary( - '/google.ads.googleads.v1.services.GoogleAdsFieldService/SearchGoogleAdsFields', - request_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_google__ads__field__service__pb2.SearchGoogleAdsFieldsRequest.SerializeToString, - response_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_google__ads__field__service__pb2.SearchGoogleAdsFieldsResponse.FromString, - ) - - -class GoogleAdsFieldServiceServicer(object): - """Proto file describing the GoogleAdsFieldService - - Service to fetch Google Ads API fields. - """ - - def GetGoogleAdsField(self, request, context): - """Returns just the requested field. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def SearchGoogleAdsFields(self, request, context): - """Returns all fields that match the search query. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - -def add_GoogleAdsFieldServiceServicer_to_server(servicer, server): - rpc_method_handlers = { - 'GetGoogleAdsField': grpc.unary_unary_rpc_method_handler( - servicer.GetGoogleAdsField, - request_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_google__ads__field__service__pb2.GetGoogleAdsFieldRequest.FromString, - response_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_google__ads__field__pb2.GoogleAdsField.SerializeToString, - ), - 'SearchGoogleAdsFields': grpc.unary_unary_rpc_method_handler( - servicer.SearchGoogleAdsFields, - request_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_google__ads__field__service__pb2.SearchGoogleAdsFieldsRequest.FromString, - response_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_google__ads__field__service__pb2.SearchGoogleAdsFieldsResponse.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'google.ads.googleads.v1.services.GoogleAdsFieldService', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) diff --git a/google/ads/google_ads/v1/proto/services/google_ads_service_pb2.py b/google/ads/google_ads/v1/proto/services/google_ads_service_pb2.py deleted file mode 100644 index c2398d672..000000000 --- a/google/ads/google_ads/v1/proto/services/google_ads_service_pb2.py +++ /dev/null @@ -1,2606 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/services/google_ads_service.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.ads.google_ads.v1.proto.common import metrics_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_metrics__pb2 -from google.ads.google_ads.v1.proto.common import segments_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_segments__pb2 -from google.ads.google_ads.v1.proto.resources import account_budget_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_account__budget__pb2 -from google.ads.google_ads.v1.proto.resources import account_budget_proposal_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_account__budget__proposal__pb2 -from google.ads.google_ads.v1.proto.resources import ad_group_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_ad__group__pb2 -from google.ads.google_ads.v1.proto.resources import ad_group_ad_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_ad__group__ad__pb2 -from google.ads.google_ads.v1.proto.resources import ad_group_ad_label_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_ad__group__ad__label__pb2 -from google.ads.google_ads.v1.proto.resources import ad_group_audience_view_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_ad__group__audience__view__pb2 -from google.ads.google_ads.v1.proto.resources import ad_group_bid_modifier_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_ad__group__bid__modifier__pb2 -from google.ads.google_ads.v1.proto.resources import ad_group_criterion_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_ad__group__criterion__pb2 -from google.ads.google_ads.v1.proto.resources import ad_group_criterion_label_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_ad__group__criterion__label__pb2 -from google.ads.google_ads.v1.proto.resources import ad_group_criterion_simulation_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_ad__group__criterion__simulation__pb2 -from google.ads.google_ads.v1.proto.resources import ad_group_extension_setting_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_ad__group__extension__setting__pb2 -from google.ads.google_ads.v1.proto.resources import ad_group_feed_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_ad__group__feed__pb2 -from google.ads.google_ads.v1.proto.resources import ad_group_label_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_ad__group__label__pb2 -from google.ads.google_ads.v1.proto.resources import ad_group_simulation_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_ad__group__simulation__pb2 -from google.ads.google_ads.v1.proto.resources import ad_parameter_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_ad__parameter__pb2 -from google.ads.google_ads.v1.proto.resources import ad_schedule_view_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_ad__schedule__view__pb2 -from google.ads.google_ads.v1.proto.resources import age_range_view_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_age__range__view__pb2 -from google.ads.google_ads.v1.proto.resources import asset_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_asset__pb2 -from google.ads.google_ads.v1.proto.resources import bidding_strategy_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_bidding__strategy__pb2 -from google.ads.google_ads.v1.proto.resources import billing_setup_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_billing__setup__pb2 -from google.ads.google_ads.v1.proto.resources import campaign_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_campaign__pb2 -from google.ads.google_ads.v1.proto.resources import campaign_audience_view_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_campaign__audience__view__pb2 -from google.ads.google_ads.v1.proto.resources import campaign_bid_modifier_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_campaign__bid__modifier__pb2 -from google.ads.google_ads.v1.proto.resources import campaign_budget_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_campaign__budget__pb2 -from google.ads.google_ads.v1.proto.resources import campaign_criterion_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_campaign__criterion__pb2 -from google.ads.google_ads.v1.proto.resources import campaign_criterion_simulation_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_campaign__criterion__simulation__pb2 -from google.ads.google_ads.v1.proto.resources import campaign_draft_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_campaign__draft__pb2 -from google.ads.google_ads.v1.proto.resources import campaign_experiment_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_campaign__experiment__pb2 -from google.ads.google_ads.v1.proto.resources import campaign_extension_setting_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_campaign__extension__setting__pb2 -from google.ads.google_ads.v1.proto.resources import campaign_feed_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_campaign__feed__pb2 -from google.ads.google_ads.v1.proto.resources import campaign_label_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_campaign__label__pb2 -from google.ads.google_ads.v1.proto.resources import campaign_shared_set_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_campaign__shared__set__pb2 -from google.ads.google_ads.v1.proto.resources import carrier_constant_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_carrier__constant__pb2 -from google.ads.google_ads.v1.proto.resources import change_status_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_change__status__pb2 -from google.ads.google_ads.v1.proto.resources import click_view_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_click__view__pb2 -from google.ads.google_ads.v1.proto.resources import conversion_action_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_conversion__action__pb2 -from google.ads.google_ads.v1.proto.resources import custom_interest_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_custom__interest__pb2 -from google.ads.google_ads.v1.proto.resources import customer_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_customer__pb2 -from google.ads.google_ads.v1.proto.resources import customer_client_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_customer__client__pb2 -from google.ads.google_ads.v1.proto.resources import customer_client_link_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_customer__client__link__pb2 -from google.ads.google_ads.v1.proto.resources import customer_extension_setting_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_customer__extension__setting__pb2 -from google.ads.google_ads.v1.proto.resources import customer_feed_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_customer__feed__pb2 -from google.ads.google_ads.v1.proto.resources import customer_label_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_customer__label__pb2 -from google.ads.google_ads.v1.proto.resources import customer_manager_link_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_customer__manager__link__pb2 -from google.ads.google_ads.v1.proto.resources import customer_negative_criterion_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_customer__negative__criterion__pb2 -from google.ads.google_ads.v1.proto.resources import detail_placement_view_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_detail__placement__view__pb2 -from google.ads.google_ads.v1.proto.resources import display_keyword_view_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_display__keyword__view__pb2 -from google.ads.google_ads.v1.proto.resources import domain_category_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_domain__category__pb2 -from google.ads.google_ads.v1.proto.resources import dynamic_search_ads_search_term_view_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_dynamic__search__ads__search__term__view__pb2 -from google.ads.google_ads.v1.proto.resources import expanded_landing_page_view_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_expanded__landing__page__view__pb2 -from google.ads.google_ads.v1.proto.resources import extension_feed_item_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_extension__feed__item__pb2 -from google.ads.google_ads.v1.proto.resources import feed_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_feed__pb2 -from google.ads.google_ads.v1.proto.resources import feed_item_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_feed__item__pb2 -from google.ads.google_ads.v1.proto.resources import feed_item_target_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_feed__item__target__pb2 -from google.ads.google_ads.v1.proto.resources import feed_mapping_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_feed__mapping__pb2 -from google.ads.google_ads.v1.proto.resources import feed_placeholder_view_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_feed__placeholder__view__pb2 -from google.ads.google_ads.v1.proto.resources import gender_view_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_gender__view__pb2 -from google.ads.google_ads.v1.proto.resources import geo_target_constant_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_geo__target__constant__pb2 -from google.ads.google_ads.v1.proto.resources import geographic_view_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_geographic__view__pb2 -from google.ads.google_ads.v1.proto.resources import group_placement_view_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_group__placement__view__pb2 -from google.ads.google_ads.v1.proto.resources import hotel_group_view_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_hotel__group__view__pb2 -from google.ads.google_ads.v1.proto.resources import hotel_performance_view_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_hotel__performance__view__pb2 -from google.ads.google_ads.v1.proto.resources import keyword_plan_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_keyword__plan__pb2 -from google.ads.google_ads.v1.proto.resources import keyword_plan_ad_group_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_keyword__plan__ad__group__pb2 -from google.ads.google_ads.v1.proto.resources import keyword_plan_campaign_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_keyword__plan__campaign__pb2 -from google.ads.google_ads.v1.proto.resources import keyword_plan_keyword_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_keyword__plan__keyword__pb2 -from google.ads.google_ads.v1.proto.resources import keyword_plan_negative_keyword_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_keyword__plan__negative__keyword__pb2 -from google.ads.google_ads.v1.proto.resources import keyword_view_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_keyword__view__pb2 -from google.ads.google_ads.v1.proto.resources import label_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_label__pb2 -from google.ads.google_ads.v1.proto.resources import landing_page_view_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_landing__page__view__pb2 -from google.ads.google_ads.v1.proto.resources import language_constant_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_language__constant__pb2 -from google.ads.google_ads.v1.proto.resources import location_view_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_location__view__pb2 -from google.ads.google_ads.v1.proto.resources import managed_placement_view_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_managed__placement__view__pb2 -from google.ads.google_ads.v1.proto.resources import media_file_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_media__file__pb2 -from google.ads.google_ads.v1.proto.resources import mobile_app_category_constant_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_mobile__app__category__constant__pb2 -from google.ads.google_ads.v1.proto.resources import mobile_device_constant_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_mobile__device__constant__pb2 -from google.ads.google_ads.v1.proto.resources import mutate_job_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_mutate__job__pb2 -from google.ads.google_ads.v1.proto.resources import operating_system_version_constant_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_operating__system__version__constant__pb2 -from google.ads.google_ads.v1.proto.resources import paid_organic_search_term_view_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_paid__organic__search__term__view__pb2 -from google.ads.google_ads.v1.proto.resources import parental_status_view_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_parental__status__view__pb2 -from google.ads.google_ads.v1.proto.resources import product_bidding_category_constant_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_product__bidding__category__constant__pb2 -from google.ads.google_ads.v1.proto.resources import product_group_view_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_product__group__view__pb2 -from google.ads.google_ads.v1.proto.resources import recommendation_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_recommendation__pb2 -from google.ads.google_ads.v1.proto.resources import remarketing_action_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_remarketing__action__pb2 -from google.ads.google_ads.v1.proto.resources import search_term_view_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_search__term__view__pb2 -from google.ads.google_ads.v1.proto.resources import shared_criterion_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_shared__criterion__pb2 -from google.ads.google_ads.v1.proto.resources import shared_set_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_shared__set__pb2 -from google.ads.google_ads.v1.proto.resources import shopping_performance_view_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_shopping__performance__view__pb2 -from google.ads.google_ads.v1.proto.resources import topic_constant_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_topic__constant__pb2 -from google.ads.google_ads.v1.proto.resources import topic_view_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_topic__view__pb2 -from google.ads.google_ads.v1.proto.resources import user_interest_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_user__interest__pb2 -from google.ads.google_ads.v1.proto.resources import user_list_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_user__list__pb2 -from google.ads.google_ads.v1.proto.resources import video_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_video__pb2 -from google.ads.google_ads.v1.proto.services import ad_group_ad_label_service_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_ad__group__ad__label__service__pb2 -from google.ads.google_ads.v1.proto.services import ad_group_ad_service_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_ad__group__ad__service__pb2 -from google.ads.google_ads.v1.proto.services import ad_group_bid_modifier_service_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_ad__group__bid__modifier__service__pb2 -from google.ads.google_ads.v1.proto.services import ad_group_criterion_label_service_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_ad__group__criterion__label__service__pb2 -from google.ads.google_ads.v1.proto.services import ad_group_criterion_service_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_ad__group__criterion__service__pb2 -from google.ads.google_ads.v1.proto.services import ad_group_extension_setting_service_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_ad__group__extension__setting__service__pb2 -from google.ads.google_ads.v1.proto.services import ad_group_feed_service_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_ad__group__feed__service__pb2 -from google.ads.google_ads.v1.proto.services import ad_group_label_service_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_ad__group__label__service__pb2 -from google.ads.google_ads.v1.proto.services import ad_group_service_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_ad__group__service__pb2 -from google.ads.google_ads.v1.proto.services import ad_parameter_service_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_ad__parameter__service__pb2 -from google.ads.google_ads.v1.proto.services import asset_service_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_asset__service__pb2 -from google.ads.google_ads.v1.proto.services import bidding_strategy_service_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_bidding__strategy__service__pb2 -from google.ads.google_ads.v1.proto.services import campaign_bid_modifier_service_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_campaign__bid__modifier__service__pb2 -from google.ads.google_ads.v1.proto.services import campaign_budget_service_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_campaign__budget__service__pb2 -from google.ads.google_ads.v1.proto.services import campaign_criterion_service_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_campaign__criterion__service__pb2 -from google.ads.google_ads.v1.proto.services import campaign_draft_service_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_campaign__draft__service__pb2 -from google.ads.google_ads.v1.proto.services import campaign_experiment_service_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_campaign__experiment__service__pb2 -from google.ads.google_ads.v1.proto.services import campaign_extension_setting_service_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_campaign__extension__setting__service__pb2 -from google.ads.google_ads.v1.proto.services import campaign_feed_service_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_campaign__feed__service__pb2 -from google.ads.google_ads.v1.proto.services import campaign_label_service_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_campaign__label__service__pb2 -from google.ads.google_ads.v1.proto.services import campaign_service_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_campaign__service__pb2 -from google.ads.google_ads.v1.proto.services import campaign_shared_set_service_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_campaign__shared__set__service__pb2 -from google.ads.google_ads.v1.proto.services import conversion_action_service_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_conversion__action__service__pb2 -from google.ads.google_ads.v1.proto.services import customer_extension_setting_service_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_customer__extension__setting__service__pb2 -from google.ads.google_ads.v1.proto.services import customer_feed_service_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_customer__feed__service__pb2 -from google.ads.google_ads.v1.proto.services import customer_label_service_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_customer__label__service__pb2 -from google.ads.google_ads.v1.proto.services import customer_negative_criterion_service_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_customer__negative__criterion__service__pb2 -from google.ads.google_ads.v1.proto.services import customer_service_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_customer__service__pb2 -from google.ads.google_ads.v1.proto.services import extension_feed_item_service_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_extension__feed__item__service__pb2 -from google.ads.google_ads.v1.proto.services import feed_item_service_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_feed__item__service__pb2 -from google.ads.google_ads.v1.proto.services import feed_item_target_service_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_feed__item__target__service__pb2 -from google.ads.google_ads.v1.proto.services import feed_mapping_service_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_feed__mapping__service__pb2 -from google.ads.google_ads.v1.proto.services import feed_service_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_feed__service__pb2 -from google.ads.google_ads.v1.proto.services import label_service_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_label__service__pb2 -from google.ads.google_ads.v1.proto.services import media_file_service_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_media__file__service__pb2 -from google.ads.google_ads.v1.proto.services import remarketing_action_service_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_remarketing__action__service__pb2 -from google.ads.google_ads.v1.proto.services import shared_criterion_service_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_shared__criterion__service__pb2 -from google.ads.google_ads.v1.proto.services import shared_set_service_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_shared__set__service__pb2 -from google.ads.google_ads.v1.proto.services import user_list_service_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_user__list__service__pb2 -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 -from google.protobuf import field_mask_pb2 as google_dot_protobuf_dot_field__mask__pb2 -from google.rpc import status_pb2 as google_dot_rpc_dot_status__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/services/google_ads_service.proto', - package='google.ads.googleads.v1.services', - syntax='proto3', - serialized_options=_b('\n$com.google.ads.googleads.v1.servicesB\025GoogleAdsServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v1/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V1.Services\312\002 Google\\Ads\\GoogleAds\\V1\\Services\352\002$Google::Ads::GoogleAds::V1::Services'), - serialized_pb=_b('\n?google/ads/googleads_v1/proto/services/google_ads_service.proto\x12 google.ads.googleads.v1.services\x1a\x32google/ads/googleads_v1/proto/common/metrics.proto\x1a\x33google/ads/googleads_v1/proto/common/segments.proto\x1agoogle/ads/googleads_v1/proto/resources/ad_schedule_view.proto\x1agoogle/ads/googleads_v1/proto/resources/bidding_strategy.proto\x1a;google/ads/googleads_v1/proto/resources/billing_setup.proto\x1a\x36google/ads/googleads_v1/proto/resources/campaign.proto\x1a\x44google/ads/googleads_v1/proto/resources/campaign_audience_view.proto\x1a\x43google/ads/googleads_v1/proto/resources/campaign_bid_modifier.proto\x1a=google/ads/googleads_v1/proto/resources/campaign_budget.proto\x1a@google/ads/googleads_v1/proto/resources/campaign_criterion.proto\x1aKgoogle/ads/googleads_v1/proto/resources/campaign_criterion_simulation.proto\x1agoogle/ads/googleads_v1/proto/resources/carrier_constant.proto\x1a;google/ads/googleads_v1/proto/resources/change_status.proto\x1a\x38google/ads/googleads_v1/proto/resources/click_view.proto\x1a?google/ads/googleads_v1/proto/resources/conversion_action.proto\x1a=google/ads/googleads_v1/proto/resources/custom_interest.proto\x1a\x36google/ads/googleads_v1/proto/resources/customer.proto\x1a=google/ads/googleads_v1/proto/resources/customer_client.proto\x1a\x42google/ads/googleads_v1/proto/resources/customer_client_link.proto\x1aHgoogle/ads/googleads_v1/proto/resources/customer_extension_setting.proto\x1a;google/ads/googleads_v1/proto/resources/customer_feed.proto\x1agoogle/ads/googleads_v1/proto/resources/feed_item_target.proto\x1a:google/ads/googleads_v1/proto/resources/feed_mapping.proto\x1a\x43google/ads/googleads_v1/proto/resources/feed_placeholder_view.proto\x1a\x39google/ads/googleads_v1/proto/resources/gender_view.proto\x1a\x41google/ads/googleads_v1/proto/resources/geo_target_constant.proto\x1a=google/ads/googleads_v1/proto/resources/geographic_view.proto\x1a\x42google/ads/googleads_v1/proto/resources/group_placement_view.proto\x1a>google/ads/googleads_v1/proto/resources/hotel_group_view.proto\x1a\x44google/ads/googleads_v1/proto/resources/hotel_performance_view.proto\x1a:google/ads/googleads_v1/proto/resources/keyword_plan.proto\x1a\x43google/ads/googleads_v1/proto/resources/keyword_plan_ad_group.proto\x1a\x43google/ads/googleads_v1/proto/resources/keyword_plan_campaign.proto\x1a\x42google/ads/googleads_v1/proto/resources/keyword_plan_keyword.proto\x1aKgoogle/ads/googleads_v1/proto/resources/keyword_plan_negative_keyword.proto\x1a:google/ads/googleads_v1/proto/resources/keyword_view.proto\x1a\x33google/ads/googleads_v1/proto/resources/label.proto\x1a?google/ads/googleads_v1/proto/resources/landing_page_view.proto\x1a?google/ads/googleads_v1/proto/resources/language_constant.proto\x1a;google/ads/googleads_v1/proto/resources/location_view.proto\x1a\x44google/ads/googleads_v1/proto/resources/managed_placement_view.proto\x1a\x38google/ads/googleads_v1/proto/resources/media_file.proto\x1aJgoogle/ads/googleads_v1/proto/resources/mobile_app_category_constant.proto\x1a\x44google/ads/googleads_v1/proto/resources/mobile_device_constant.proto\x1a\x38google/ads/googleads_v1/proto/resources/mutate_job.proto\x1aOgoogle/ads/googleads_v1/proto/resources/operating_system_version_constant.proto\x1aKgoogle/ads/googleads_v1/proto/resources/paid_organic_search_term_view.proto\x1a\x42google/ads/googleads_v1/proto/resources/parental_status_view.proto\x1aOgoogle/ads/googleads_v1/proto/resources/product_bidding_category_constant.proto\x1a@google/ads/googleads_v1/proto/resources/product_group_view.proto\x1agoogle/ads/googleads_v1/proto/resources/search_term_view.proto\x1a>google/ads/googleads_v1/proto/resources/shared_criterion.proto\x1a\x38google/ads/googleads_v1/proto/resources/shared_set.proto\x1aGgoogle/ads/googleads_v1/proto/resources/shopping_performance_view.proto\x1agoogle/ads/googleads_v1/proto/services/feed_item_service.proto\x1a\x45google/ads/googleads_v1/proto/services/feed_item_target_service.proto\x1a\x41google/ads/googleads_v1/proto/services/feed_mapping_service.proto\x1a\x39google/ads/googleads_v1/proto/services/feed_service.proto\x1a:google/ads/googleads_v1/proto/services/label_service.proto\x1a?google/ads/googleads_v1/proto/services/media_file_service.proto\x1aGgoogle/ads/googleads_v1/proto/services/remarketing_action_service.proto\x1a\x45google/ads/googleads_v1/proto/services/shared_criterion_service.proto\x1a?google/ads/googleads_v1/proto/services/shared_set_service.proto\x1a>google/ads/googleads_v1/proto/services/user_list_service.proto\x1a\x1cgoogle/api/annotations.proto\x1a google/protobuf/field_mask.proto\x1a\x17google/rpc/status.proto\"z\n\x16SearchGoogleAdsRequest\x12\x13\n\x0b\x63ustomer_id\x18\x01 \x01(\t\x12\r\n\x05query\x18\x02 \x01(\t\x12\x12\n\npage_token\x18\x03 \x01(\t\x12\x11\n\tpage_size\x18\x04 \x01(\x05\x12\x15\n\rvalidate_only\x18\x05 \x01(\x08\"\xc0\x01\n\x17SearchGoogleAdsResponse\x12?\n\x07results\x18\x01 \x03(\x0b\x32..google.ads.googleads.v1.services.GoogleAdsRow\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x1b\n\x13total_results_count\x18\x03 \x01(\x03\x12.\n\nfield_mask\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"\x98;\n\x0cGoogleAdsRow\x12H\n\x0e\x61\x63\x63ount_budget\x18* \x01(\x0b\x32\x30.google.ads.googleads.v1.resources.AccountBudget\x12Y\n\x17\x61\x63\x63ount_budget_proposal\x18+ \x01(\x0b\x32\x38.google.ads.googleads.v1.resources.AccountBudgetProposal\x12<\n\x08\x61\x64_group\x18\x03 \x01(\x0b\x32*.google.ads.googleads.v1.resources.AdGroup\x12\x41\n\x0b\x61\x64_group_ad\x18\x10 \x01(\x0b\x32,.google.ads.googleads.v1.resources.AdGroupAd\x12L\n\x11\x61\x64_group_ad_label\x18x \x01(\x0b\x32\x31.google.ads.googleads.v1.resources.AdGroupAdLabel\x12V\n\x16\x61\x64_group_audience_view\x18\x39 \x01(\x0b\x32\x36.google.ads.googleads.v1.resources.AdGroupAudienceView\x12T\n\x15\x61\x64_group_bid_modifier\x18\x18 \x01(\x0b\x32\x35.google.ads.googleads.v1.resources.AdGroupBidModifier\x12O\n\x12\x61\x64_group_criterion\x18\x11 \x01(\x0b\x32\x33.google.ads.googleads.v1.resources.AdGroupCriterion\x12Z\n\x18\x61\x64_group_criterion_label\x18y \x01(\x0b\x32\x38.google.ads.googleads.v1.resources.AdGroupCriterionLabel\x12\x64\n\x1d\x61\x64_group_criterion_simulation\x18n \x01(\x0b\x32=.google.ads.googleads.v1.resources.AdGroupCriterionSimulation\x12^\n\x1a\x61\x64_group_extension_setting\x18p \x01(\x0b\x32:.google.ads.googleads.v1.resources.AdGroupExtensionSetting\x12\x45\n\rad_group_feed\x18\x43 \x01(\x0b\x32..google.ads.googleads.v1.resources.AdGroupFeed\x12G\n\x0e\x61\x64_group_label\x18s \x01(\x0b\x32/.google.ads.googleads.v1.resources.AdGroupLabel\x12Q\n\x13\x61\x64_group_simulation\x18k \x01(\x0b\x32\x34.google.ads.googleads.v1.resources.AdGroupSimulation\x12\x45\n\x0c\x61\x64_parameter\x18\x82\x01 \x01(\x0b\x32..google.ads.googleads.v1.resources.AdParameter\x12G\n\x0e\x61ge_range_view\x18\x30 \x01(\x0b\x32/.google.ads.googleads.v1.resources.AgeRangeView\x12K\n\x10\x61\x64_schedule_view\x18Y \x01(\x0b\x32\x31.google.ads.googleads.v1.resources.AdScheduleView\x12J\n\x0f\x64omain_category\x18[ \x01(\x0b\x32\x31.google.ads.googleads.v1.resources.DomainCategory\x12\x37\n\x05\x61sset\x18i \x01(\x0b\x32(.google.ads.googleads.v1.resources.Asset\x12L\n\x10\x62idding_strategy\x18\x12 \x01(\x0b\x32\x32.google.ads.googleads.v1.resources.BiddingStrategy\x12\x46\n\rbilling_setup\x18) \x01(\x0b\x32/.google.ads.googleads.v1.resources.BillingSetup\x12J\n\x0f\x63\x61mpaign_budget\x18\x13 \x01(\x0b\x32\x31.google.ads.googleads.v1.resources.CampaignBudget\x12=\n\x08\x63\x61mpaign\x18\x02 \x01(\x0b\x32+.google.ads.googleads.v1.resources.Campaign\x12W\n\x16\x63\x61mpaign_audience_view\x18\x45 \x01(\x0b\x32\x37.google.ads.googleads.v1.resources.CampaignAudienceView\x12U\n\x15\x63\x61mpaign_bid_modifier\x18\x1a \x01(\x0b\x32\x36.google.ads.googleads.v1.resources.CampaignBidModifier\x12P\n\x12\x63\x61mpaign_criterion\x18\x14 \x01(\x0b\x32\x34.google.ads.googleads.v1.resources.CampaignCriterion\x12\x65\n\x1d\x63\x61mpaign_criterion_simulation\x18o \x01(\x0b\x32>.google.ads.googleads.v1.resources.CampaignCriterionSimulation\x12H\n\x0e\x63\x61mpaign_draft\x18\x31 \x01(\x0b\x32\x30.google.ads.googleads.v1.resources.CampaignDraft\x12R\n\x13\x63\x61mpaign_experiment\x18T \x01(\x0b\x32\x35.google.ads.googleads.v1.resources.CampaignExperiment\x12_\n\x1a\x63\x61mpaign_extension_setting\x18q \x01(\x0b\x32;.google.ads.googleads.v1.resources.CampaignExtensionSetting\x12\x46\n\rcampaign_feed\x18? \x01(\x0b\x32/.google.ads.googleads.v1.resources.CampaignFeed\x12H\n\x0e\x63\x61mpaign_label\x18l \x01(\x0b\x32\x30.google.ads.googleads.v1.resources.CampaignLabel\x12Q\n\x13\x63\x61mpaign_shared_set\x18\x1e \x01(\x0b\x32\x34.google.ads.googleads.v1.resources.CampaignSharedSet\x12L\n\x10\x63\x61rrier_constant\x18\x42 \x01(\x0b\x32\x32.google.ads.googleads.v1.resources.CarrierConstant\x12\x46\n\rchange_status\x18% \x01(\x0b\x32/.google.ads.googleads.v1.resources.ChangeStatus\x12N\n\x11\x63onversion_action\x18g \x01(\x0b\x32\x33.google.ads.googleads.v1.resources.ConversionAction\x12@\n\nclick_view\x18z \x01(\x0b\x32,.google.ads.googleads.v1.resources.ClickView\x12J\n\x0f\x63ustom_interest\x18h \x01(\x0b\x32\x31.google.ads.googleads.v1.resources.CustomInterest\x12=\n\x08\x63ustomer\x18\x01 \x01(\x0b\x32+.google.ads.googleads.v1.resources.Customer\x12U\n\x15\x63ustomer_manager_link\x18= \x01(\x0b\x32\x36.google.ads.googleads.v1.resources.CustomerManagerLink\x12S\n\x14\x63ustomer_client_link\x18> \x01(\x0b\x32\x35.google.ads.googleads.v1.resources.CustomerClientLink\x12J\n\x0f\x63ustomer_client\x18\x46 \x01(\x0b\x32\x31.google.ads.googleads.v1.resources.CustomerClient\x12_\n\x1a\x63ustomer_extension_setting\x18r \x01(\x0b\x32;.google.ads.googleads.v1.resources.CustomerExtensionSetting\x12\x46\n\rcustomer_feed\x18@ \x01(\x0b\x32/.google.ads.googleads.v1.resources.CustomerFeed\x12H\n\x0e\x63ustomer_label\x18| \x01(\x0b\x32\x30.google.ads.googleads.v1.resources.CustomerLabel\x12\x61\n\x1b\x63ustomer_negative_criterion\x18X \x01(\x0b\x32<.google.ads.googleads.v1.resources.CustomerNegativeCriterion\x12U\n\x15\x64\x65tail_placement_view\x18v \x01(\x0b\x32\x36.google.ads.googleads.v1.resources.DetailPlacementView\x12S\n\x14\x64isplay_keyword_view\x18/ \x01(\x0b\x32\x35.google.ads.googleads.v1.resources.DisplayKeywordView\x12n\n#dynamic_search_ads_search_term_view\x18j \x01(\x0b\x32\x41.google.ads.googleads.v1.resources.DynamicSearchAdsSearchTermView\x12_\n\x1a\x65xpanded_landing_page_view\x18\x80\x01 \x01(\x0b\x32:.google.ads.googleads.v1.resources.ExpandedLandingPageView\x12Q\n\x13\x65xtension_feed_item\x18U \x01(\x0b\x32\x34.google.ads.googleads.v1.resources.ExtensionFeedItem\x12\x35\n\x04\x66\x65\x65\x64\x18. \x01(\x0b\x32\'.google.ads.googleads.v1.resources.Feed\x12>\n\tfeed_item\x18\x32 \x01(\x0b\x32+.google.ads.googleads.v1.resources.FeedItem\x12K\n\x10\x66\x65\x65\x64_item_target\x18t \x01(\x0b\x32\x31.google.ads.googleads.v1.resources.FeedItemTarget\x12\x44\n\x0c\x66\x65\x65\x64_mapping\x18: \x01(\x0b\x32..google.ads.googleads.v1.resources.FeedMapping\x12U\n\x15\x66\x65\x65\x64_placeholder_view\x18\x61 \x01(\x0b\x32\x36.google.ads.googleads.v1.resources.FeedPlaceholderView\x12\x42\n\x0bgender_view\x18( \x01(\x0b\x32-.google.ads.googleads.v1.resources.GenderView\x12Q\n\x13geo_target_constant\x18\x17 \x01(\x0b\x32\x34.google.ads.googleads.v1.resources.GeoTargetConstant\x12J\n\x0fgeographic_view\x18} \x01(\x0b\x32\x31.google.ads.googleads.v1.resources.GeographicView\x12S\n\x14group_placement_view\x18w \x01(\x0b\x32\x35.google.ads.googleads.v1.resources.GroupPlacementView\x12K\n\x10hotel_group_view\x18\x33 \x01(\x0b\x32\x31.google.ads.googleads.v1.resources.HotelGroupView\x12W\n\x16hotel_performance_view\x18G \x01(\x0b\x32\x37.google.ads.googleads.v1.resources.HotelPerformanceView\x12\x44\n\x0ckeyword_view\x18\x15 \x01(\x0b\x32..google.ads.googleads.v1.resources.KeywordView\x12\x44\n\x0ckeyword_plan\x18 \x01(\x0b\x32..google.ads.googleads.v1.resources.KeywordPlan\x12U\n\x15keyword_plan_campaign\x18! \x01(\x0b\x32\x36.google.ads.googleads.v1.resources.KeywordPlanCampaign\x12\x64\n\x1dkeyword_plan_negative_keyword\x18\" \x01(\x0b\x32=.google.ads.googleads.v1.resources.KeywordPlanNegativeKeyword\x12T\n\x15keyword_plan_ad_group\x18# \x01(\x0b\x32\x35.google.ads.googleads.v1.resources.KeywordPlanAdGroup\x12S\n\x14keyword_plan_keyword\x18$ \x01(\x0b\x32\x35.google.ads.googleads.v1.resources.KeywordPlanKeyword\x12\x37\n\x05label\x18\x34 \x01(\x0b\x32(.google.ads.googleads.v1.resources.Label\x12M\n\x11landing_page_view\x18~ \x01(\x0b\x32\x32.google.ads.googleads.v1.resources.LandingPageView\x12N\n\x11language_constant\x18\x37 \x01(\x0b\x32\x33.google.ads.googleads.v1.resources.LanguageConstant\x12\x46\n\rlocation_view\x18{ \x01(\x0b\x32/.google.ads.googleads.v1.resources.LocationView\x12W\n\x16managed_placement_view\x18\x35 \x01(\x0b\x32\x37.google.ads.googleads.v1.resources.ManagedPlacementView\x12@\n\nmedia_file\x18Z \x01(\x0b\x32,.google.ads.googleads.v1.resources.MediaFile\x12\x62\n\x1cmobile_app_category_constant\x18W \x01(\x0b\x32<.google.ads.googleads.v1.resources.MobileAppCategoryConstant\x12W\n\x16mobile_device_constant\x18\x62 \x01(\x0b\x32\x37.google.ads.googleads.v1.resources.MobileDeviceConstant\x12@\n\nmutate_job\x18\x7f \x01(\x0b\x32,.google.ads.googleads.v1.resources.MutateJob\x12l\n!operating_system_version_constant\x18V \x01(\x0b\x32\x41.google.ads.googleads.v1.resources.OperatingSystemVersionConstant\x12\x64\n\x1dpaid_organic_search_term_view\x18\x81\x01 \x01(\x0b\x32<.google.ads.googleads.v1.resources.PaidOrganicSearchTermView\x12S\n\x14parental_status_view\x18- \x01(\x0b\x32\x35.google.ads.googleads.v1.resources.ParentalStatusView\x12l\n!product_bidding_category_constant\x18m \x01(\x0b\x32\x41.google.ads.googleads.v1.resources.ProductBiddingCategoryConstant\x12O\n\x12product_group_view\x18\x36 \x01(\x0b\x32\x33.google.ads.googleads.v1.resources.ProductGroupView\x12I\n\x0erecommendation\x18\x16 \x01(\x0b\x32\x31.google.ads.googleads.v1.resources.Recommendation\x12K\n\x10search_term_view\x18\x44 \x01(\x0b\x32\x31.google.ads.googleads.v1.resources.SearchTermView\x12L\n\x10shared_criterion\x18\x1d \x01(\x0b\x32\x32.google.ads.googleads.v1.resources.SharedCriterion\x12@\n\nshared_set\x18\x1b \x01(\x0b\x32,.google.ads.googleads.v1.resources.SharedSet\x12]\n\x19shopping_performance_view\x18u \x01(\x0b\x32:.google.ads.googleads.v1.resources.ShoppingPerformanceView\x12@\n\ntopic_view\x18, \x01(\x0b\x32,.google.ads.googleads.v1.resources.TopicView\x12\x46\n\ruser_interest\x18; \x01(\x0b\x32/.google.ads.googleads.v1.resources.UserInterest\x12>\n\tuser_list\x18& \x01(\x0b\x32+.google.ads.googleads.v1.resources.UserList\x12P\n\x12remarketing_action\x18< \x01(\x0b\x32\x34.google.ads.googleads.v1.resources.RemarketingAction\x12H\n\x0etopic_constant\x18\x1f \x01(\x0b\x32\x30.google.ads.googleads.v1.resources.TopicConstant\x12\x37\n\x05video\x18\' \x01(\x0b\x32(.google.ads.googleads.v1.resources.Video\x12\x38\n\x07metrics\x18\x04 \x01(\x0b\x32\'.google.ads.googleads.v1.common.Metrics\x12:\n\x08segments\x18\x66 \x01(\x0b\x32(.google.ads.googleads.v1.common.Segments\"\xab\x01\n\x16MutateGoogleAdsRequest\x12\x13\n\x0b\x63ustomer_id\x18\x01 \x01(\t\x12L\n\x11mutate_operations\x18\x02 \x03(\x0b\x32\x31.google.ads.googleads.v1.services.MutateOperation\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\"\xab\x01\n\x17MutateGoogleAdsResponse\x12\x31\n\x15partial_failure_error\x18\x03 \x01(\x0b\x32\x12.google.rpc.Status\x12]\n\x1amutate_operation_responses\x18\x01 \x03(\x0b\x32\x39.google.ads.googleads.v1.services.MutateOperationResponse\"\xb0\x1d\n\x0fMutateOperation\x12`\n\x1b\x61\x64_group_ad_label_operation\x18\x11 \x01(\x0b\x32\x39.google.ads.googleads.v1.services.AdGroupAdLabelOperationH\x00\x12U\n\x15\x61\x64_group_ad_operation\x18\x01 \x01(\x0b\x32\x34.google.ads.googleads.v1.services.AdGroupAdOperationH\x00\x12h\n\x1f\x61\x64_group_bid_modifier_operation\x18\x02 \x01(\x0b\x32=.google.ads.googleads.v1.services.AdGroupBidModifierOperationH\x00\x12n\n\"ad_group_criterion_label_operation\x18\x12 \x01(\x0b\x32@.google.ads.googleads.v1.services.AdGroupCriterionLabelOperationH\x00\x12\x63\n\x1c\x61\x64_group_criterion_operation\x18\x03 \x01(\x0b\x32;.google.ads.googleads.v1.services.AdGroupCriterionOperationH\x00\x12r\n$ad_group_extension_setting_operation\x18\x13 \x01(\x0b\x32\x42.google.ads.googleads.v1.services.AdGroupExtensionSettingOperationH\x00\x12Y\n\x17\x61\x64_group_feed_operation\x18\x14 \x01(\x0b\x32\x36.google.ads.googleads.v1.services.AdGroupFeedOperationH\x00\x12[\n\x18\x61\x64_group_label_operation\x18\x15 \x01(\x0b\x32\x37.google.ads.googleads.v1.services.AdGroupLabelOperationH\x00\x12P\n\x12\x61\x64_group_operation\x18\x05 \x01(\x0b\x32\x32.google.ads.googleads.v1.services.AdGroupOperationH\x00\x12X\n\x16\x61\x64_parameter_operation\x18\x16 \x01(\x0b\x32\x36.google.ads.googleads.v1.services.AdParameterOperationH\x00\x12K\n\x0f\x61sset_operation\x18\x17 \x01(\x0b\x32\x30.google.ads.googleads.v1.services.AssetOperationH\x00\x12`\n\x1a\x62idding_strategy_operation\x18\x06 \x01(\x0b\x32:.google.ads.googleads.v1.services.BiddingStrategyOperationH\x00\x12i\n\x1f\x63\x61mpaign_bid_modifier_operation\x18\x07 \x01(\x0b\x32>.google.ads.googleads.v1.services.CampaignBidModifierOperationH\x00\x12^\n\x19\x63\x61mpaign_budget_operation\x18\x08 \x01(\x0b\x32\x39.google.ads.googleads.v1.services.CampaignBudgetOperationH\x00\x12\x64\n\x1c\x63\x61mpaign_criterion_operation\x18\r \x01(\x0b\x32<.google.ads.googleads.v1.services.CampaignCriterionOperationH\x00\x12\\\n\x18\x63\x61mpaign_draft_operation\x18\x18 \x01(\x0b\x32\x38.google.ads.googleads.v1.services.CampaignDraftOperationH\x00\x12\x66\n\x1d\x63\x61mpaign_experiment_operation\x18\x19 \x01(\x0b\x32=.google.ads.googleads.v1.services.CampaignExperimentOperationH\x00\x12s\n$campaign_extension_setting_operation\x18\x1a \x01(\x0b\x32\x43.google.ads.googleads.v1.services.CampaignExtensionSettingOperationH\x00\x12Z\n\x17\x63\x61mpaign_feed_operation\x18\x1b \x01(\x0b\x32\x37.google.ads.googleads.v1.services.CampaignFeedOperationH\x00\x12\\\n\x18\x63\x61mpaign_label_operation\x18\x1c \x01(\x0b\x32\x38.google.ads.googleads.v1.services.CampaignLabelOperationH\x00\x12Q\n\x12\x63\x61mpaign_operation\x18\n \x01(\x0b\x32\x33.google.ads.googleads.v1.services.CampaignOperationH\x00\x12\x65\n\x1d\x63\x61mpaign_shared_set_operation\x18\x0b \x01(\x0b\x32<.google.ads.googleads.v1.services.CampaignSharedSetOperationH\x00\x12\x62\n\x1b\x63onversion_action_operation\x18\x0c \x01(\x0b\x32;.google.ads.googleads.v1.services.ConversionActionOperationH\x00\x12s\n$customer_extension_setting_operation\x18\x1e \x01(\x0b\x32\x43.google.ads.googleads.v1.services.CustomerExtensionSettingOperationH\x00\x12Z\n\x17\x63ustomer_feed_operation\x18\x1f \x01(\x0b\x32\x37.google.ads.googleads.v1.services.CustomerFeedOperationH\x00\x12\\\n\x18\x63ustomer_label_operation\x18 \x01(\x0b\x32\x38.google.ads.googleads.v1.services.CustomerLabelOperationH\x00\x12u\n%customer_negative_criterion_operation\x18\" \x01(\x0b\x32\x44.google.ads.googleads.v1.services.CustomerNegativeCriterionOperationH\x00\x12Q\n\x12\x63ustomer_operation\x18# \x01(\x0b\x32\x33.google.ads.googleads.v1.services.CustomerOperationH\x00\x12\x65\n\x1d\x65xtension_feed_item_operation\x18$ \x01(\x0b\x32<.google.ads.googleads.v1.services.ExtensionFeedItemOperationH\x00\x12R\n\x13\x66\x65\x65\x64_item_operation\x18% \x01(\x0b\x32\x33.google.ads.googleads.v1.services.FeedItemOperationH\x00\x12_\n\x1a\x66\x65\x65\x64_item_target_operation\x18& \x01(\x0b\x32\x39.google.ads.googleads.v1.services.FeedItemTargetOperationH\x00\x12X\n\x16\x66\x65\x65\x64_mapping_operation\x18\' \x01(\x0b\x32\x36.google.ads.googleads.v1.services.FeedMappingOperationH\x00\x12I\n\x0e\x66\x65\x65\x64_operation\x18( \x01(\x0b\x32/.google.ads.googleads.v1.services.FeedOperationH\x00\x12K\n\x0flabel_operation\x18) \x01(\x0b\x32\x30.google.ads.googleads.v1.services.LabelOperationH\x00\x12T\n\x14media_file_operation\x18* \x01(\x0b\x32\x34.google.ads.googleads.v1.services.MediaFileOperationH\x00\x12\x64\n\x1cremarketing_action_operation\x18+ \x01(\x0b\x32<.google.ads.googleads.v1.services.RemarketingActionOperationH\x00\x12`\n\x1ashared_criterion_operation\x18\x0e \x01(\x0b\x32:.google.ads.googleads.v1.services.SharedCriterionOperationH\x00\x12T\n\x14shared_set_operation\x18\x0f \x01(\x0b\x32\x34.google.ads.googleads.v1.services.SharedSetOperationH\x00\x12R\n\x13user_list_operation\x18\x10 \x01(\x0b\x32\x33.google.ads.googleads.v1.services.UserListOperationH\x00\x42\x0b\n\toperation\"\xb6\x1d\n\x17MutateOperationResponse\x12`\n\x18\x61\x64_group_ad_label_result\x18\x11 \x01(\x0b\x32<.google.ads.googleads.v1.services.MutateAdGroupAdLabelResultH\x00\x12U\n\x12\x61\x64_group_ad_result\x18\x01 \x01(\x0b\x32\x37.google.ads.googleads.v1.services.MutateAdGroupAdResultH\x00\x12h\n\x1c\x61\x64_group_bid_modifier_result\x18\x02 \x01(\x0b\x32@.google.ads.googleads.v1.services.MutateAdGroupBidModifierResultH\x00\x12n\n\x1f\x61\x64_group_criterion_label_result\x18\x12 \x01(\x0b\x32\x43.google.ads.googleads.v1.services.MutateAdGroupCriterionLabelResultH\x00\x12\x63\n\x19\x61\x64_group_criterion_result\x18\x03 \x01(\x0b\x32>.google.ads.googleads.v1.services.MutateAdGroupCriterionResultH\x00\x12r\n!ad_group_extension_setting_result\x18\x13 \x01(\x0b\x32\x45.google.ads.googleads.v1.services.MutateAdGroupExtensionSettingResultH\x00\x12Y\n\x14\x61\x64_group_feed_result\x18\x14 \x01(\x0b\x32\x39.google.ads.googleads.v1.services.MutateAdGroupFeedResultH\x00\x12[\n\x15\x61\x64_group_label_result\x18\x15 \x01(\x0b\x32:.google.ads.googleads.v1.services.MutateAdGroupLabelResultH\x00\x12P\n\x0f\x61\x64_group_result\x18\x05 \x01(\x0b\x32\x35.google.ads.googleads.v1.services.MutateAdGroupResultH\x00\x12X\n\x13\x61\x64_parameter_result\x18\x16 \x01(\x0b\x32\x39.google.ads.googleads.v1.services.MutateAdParameterResultH\x00\x12K\n\x0c\x61sset_result\x18\x17 \x01(\x0b\x32\x33.google.ads.googleads.v1.services.MutateAssetResultH\x00\x12`\n\x17\x62idding_strategy_result\x18\x06 \x01(\x0b\x32=.google.ads.googleads.v1.services.MutateBiddingStrategyResultH\x00\x12i\n\x1c\x63\x61mpaign_bid_modifier_result\x18\x07 \x01(\x0b\x32\x41.google.ads.googleads.v1.services.MutateCampaignBidModifierResultH\x00\x12^\n\x16\x63\x61mpaign_budget_result\x18\x08 \x01(\x0b\x32<.google.ads.googleads.v1.services.MutateCampaignBudgetResultH\x00\x12\x64\n\x19\x63\x61mpaign_criterion_result\x18\r \x01(\x0b\x32?.google.ads.googleads.v1.services.MutateCampaignCriterionResultH\x00\x12\\\n\x15\x63\x61mpaign_draft_result\x18\x18 \x01(\x0b\x32;.google.ads.googleads.v1.services.MutateCampaignDraftResultH\x00\x12\x66\n\x1a\x63\x61mpaign_experiment_result\x18\x19 \x01(\x0b\x32@.google.ads.googleads.v1.services.MutateCampaignExperimentResultH\x00\x12s\n!campaign_extension_setting_result\x18\x1a \x01(\x0b\x32\x46.google.ads.googleads.v1.services.MutateCampaignExtensionSettingResultH\x00\x12Z\n\x14\x63\x61mpaign_feed_result\x18\x1b \x01(\x0b\x32:.google.ads.googleads.v1.services.MutateCampaignFeedResultH\x00\x12\\\n\x15\x63\x61mpaign_label_result\x18\x1c \x01(\x0b\x32;.google.ads.googleads.v1.services.MutateCampaignLabelResultH\x00\x12Q\n\x0f\x63\x61mpaign_result\x18\n \x01(\x0b\x32\x36.google.ads.googleads.v1.services.MutateCampaignResultH\x00\x12\x65\n\x1a\x63\x61mpaign_shared_set_result\x18\x0b \x01(\x0b\x32?.google.ads.googleads.v1.services.MutateCampaignSharedSetResultH\x00\x12\x62\n\x18\x63onversion_action_result\x18\x0c \x01(\x0b\x32>.google.ads.googleads.v1.services.MutateConversionActionResultH\x00\x12s\n!customer_extension_setting_result\x18\x1e \x01(\x0b\x32\x46.google.ads.googleads.v1.services.MutateCustomerExtensionSettingResultH\x00\x12Z\n\x14\x63ustomer_feed_result\x18\x1f \x01(\x0b\x32:.google.ads.googleads.v1.services.MutateCustomerFeedResultH\x00\x12\\\n\x15\x63ustomer_label_result\x18 \x01(\x0b\x32;.google.ads.googleads.v1.services.MutateCustomerLabelResultH\x00\x12t\n\"customer_negative_criterion_result\x18\" \x01(\x0b\x32\x46.google.ads.googleads.v1.services.MutateCustomerNegativeCriteriaResultH\x00\x12Q\n\x0f\x63ustomer_result\x18# \x01(\x0b\x32\x36.google.ads.googleads.v1.services.MutateCustomerResultH\x00\x12\x65\n\x1a\x65xtension_feed_item_result\x18$ \x01(\x0b\x32?.google.ads.googleads.v1.services.MutateExtensionFeedItemResultH\x00\x12R\n\x10\x66\x65\x65\x64_item_result\x18% \x01(\x0b\x32\x36.google.ads.googleads.v1.services.MutateFeedItemResultH\x00\x12_\n\x17\x66\x65\x65\x64_item_target_result\x18& \x01(\x0b\x32<.google.ads.googleads.v1.services.MutateFeedItemTargetResultH\x00\x12X\n\x13\x66\x65\x65\x64_mapping_result\x18\' \x01(\x0b\x32\x39.google.ads.googleads.v1.services.MutateFeedMappingResultH\x00\x12I\n\x0b\x66\x65\x65\x64_result\x18( \x01(\x0b\x32\x32.google.ads.googleads.v1.services.MutateFeedResultH\x00\x12K\n\x0clabel_result\x18) \x01(\x0b\x32\x33.google.ads.googleads.v1.services.MutateLabelResultH\x00\x12T\n\x11media_file_result\x18* \x01(\x0b\x32\x37.google.ads.googleads.v1.services.MutateMediaFileResultH\x00\x12\x64\n\x19remarketing_action_result\x18+ \x01(\x0b\x32?.google.ads.googleads.v1.services.MutateRemarketingActionResultH\x00\x12`\n\x17shared_criterion_result\x18\x0e \x01(\x0b\x32=.google.ads.googleads.v1.services.MutateSharedCriterionResultH\x00\x12T\n\x11shared_set_result\x18\x0f \x01(\x0b\x32\x37.google.ads.googleads.v1.services.MutateSharedSetResultH\x00\x12R\n\x10user_list_result\x18\x10 \x01(\x0b\x32\x36.google.ads.googleads.v1.services.MutateUserListResultH\x00\x42\n\n\x08response2\x88\x03\n\x10GoogleAdsService\x12\xb8\x01\n\x06Search\x12\x38.google.ads.googleads.v1.services.SearchGoogleAdsRequest\x1a\x39.google.ads.googleads.v1.services.SearchGoogleAdsResponse\"9\x82\xd3\xe4\x93\x02\x33\"./v1/customers/{customer_id=*}/googleAds:search:\x01*\x12\xb8\x01\n\x06Mutate\x12\x38.google.ads.googleads.v1.services.MutateGoogleAdsRequest\x1a\x39.google.ads.googleads.v1.services.MutateGoogleAdsResponse\"9\x82\xd3\xe4\x93\x02\x33\"./v1/customers/{customer_id=*}/googleAds:mutate:\x01*B\xfc\x01\n$com.google.ads.googleads.v1.servicesB\x15GoogleAdsServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v1/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V1.Services\xca\x02 Google\\Ads\\GoogleAds\\V1\\Services\xea\x02$Google::Ads::GoogleAds::V1::Servicesb\x06proto3') - , - dependencies=[google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_metrics__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_segments__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_account__budget__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_account__budget__proposal__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_ad__group__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_ad__group__ad__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_ad__group__ad__label__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_ad__group__audience__view__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_ad__group__bid__modifier__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_ad__group__criterion__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_ad__group__criterion__label__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_ad__group__criterion__simulation__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_ad__group__extension__setting__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_ad__group__feed__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_ad__group__label__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_ad__group__simulation__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_ad__parameter__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_ad__schedule__view__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_age__range__view__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_asset__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_bidding__strategy__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_billing__setup__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_campaign__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_campaign__audience__view__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_campaign__bid__modifier__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_campaign__budget__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_campaign__criterion__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_campaign__criterion__simulation__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_campaign__draft__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_campaign__experiment__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_campaign__extension__setting__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_campaign__feed__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_campaign__label__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_campaign__shared__set__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_carrier__constant__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_change__status__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_click__view__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_conversion__action__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_custom__interest__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_customer__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_customer__client__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_customer__client__link__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_customer__extension__setting__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_customer__feed__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_customer__label__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_customer__manager__link__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_customer__negative__criterion__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_detail__placement__view__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_display__keyword__view__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_domain__category__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_dynamic__search__ads__search__term__view__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_expanded__landing__page__view__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_extension__feed__item__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_feed__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_feed__item__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_feed__item__target__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_feed__mapping__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_feed__placeholder__view__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_gender__view__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_geo__target__constant__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_geographic__view__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_group__placement__view__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_hotel__group__view__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_hotel__performance__view__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_keyword__plan__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_keyword__plan__ad__group__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_keyword__plan__campaign__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_keyword__plan__keyword__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_keyword__plan__negative__keyword__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_keyword__view__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_label__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_landing__page__view__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_language__constant__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_location__view__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_managed__placement__view__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_media__file__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_mobile__app__category__constant__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_mobile__device__constant__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_mutate__job__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_operating__system__version__constant__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_paid__organic__search__term__view__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_parental__status__view__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_product__bidding__category__constant__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_product__group__view__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_recommendation__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_remarketing__action__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_search__term__view__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_shared__criterion__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_shared__set__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_shopping__performance__view__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_topic__constant__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_topic__view__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_user__interest__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_user__list__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_video__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_ad__group__ad__label__service__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_ad__group__ad__service__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_ad__group__bid__modifier__service__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_ad__group__criterion__label__service__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_ad__group__criterion__service__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_ad__group__extension__setting__service__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_ad__group__feed__service__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_ad__group__label__service__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_ad__group__service__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_ad__parameter__service__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_asset__service__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_bidding__strategy__service__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_campaign__bid__modifier__service__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_campaign__budget__service__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_campaign__criterion__service__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_campaign__draft__service__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_campaign__experiment__service__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_campaign__extension__setting__service__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_campaign__feed__service__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_campaign__label__service__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_campaign__service__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_campaign__shared__set__service__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_conversion__action__service__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_customer__extension__setting__service__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_customer__feed__service__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_customer__label__service__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_customer__negative__criterion__service__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_customer__service__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_extension__feed__item__service__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_feed__item__service__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_feed__item__target__service__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_feed__mapping__service__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_feed__service__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_label__service__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_media__file__service__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_remarketing__action__service__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_shared__criterion__service__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_shared__set__service__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_user__list__service__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_protobuf_dot_field__mask__pb2.DESCRIPTOR,google_dot_rpc_dot_status__pb2.DESCRIPTOR,]) - - - - -_SEARCHGOOGLEADSREQUEST = _descriptor.Descriptor( - name='SearchGoogleAdsRequest', - full_name='google.ads.googleads.v1.services.SearchGoogleAdsRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='customer_id', full_name='google.ads.googleads.v1.services.SearchGoogleAdsRequest.customer_id', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='query', full_name='google.ads.googleads.v1.services.SearchGoogleAdsRequest.query', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='page_token', full_name='google.ads.googleads.v1.services.SearchGoogleAdsRequest.page_token', index=2, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='page_size', full_name='google.ads.googleads.v1.services.SearchGoogleAdsRequest.page_size', index=3, - number=4, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='validate_only', full_name='google.ads.googleads.v1.services.SearchGoogleAdsRequest.validate_only', index=4, - number=5, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=9100, - serialized_end=9222, -) - - -_SEARCHGOOGLEADSRESPONSE = _descriptor.Descriptor( - name='SearchGoogleAdsResponse', - full_name='google.ads.googleads.v1.services.SearchGoogleAdsResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='results', full_name='google.ads.googleads.v1.services.SearchGoogleAdsResponse.results', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='next_page_token', full_name='google.ads.googleads.v1.services.SearchGoogleAdsResponse.next_page_token', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='total_results_count', full_name='google.ads.googleads.v1.services.SearchGoogleAdsResponse.total_results_count', index=2, - number=3, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='field_mask', full_name='google.ads.googleads.v1.services.SearchGoogleAdsResponse.field_mask', index=3, - number=5, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=9225, - serialized_end=9417, -) - - -_GOOGLEADSROW = _descriptor.Descriptor( - name='GoogleAdsRow', - full_name='google.ads.googleads.v1.services.GoogleAdsRow', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='account_budget', full_name='google.ads.googleads.v1.services.GoogleAdsRow.account_budget', index=0, - number=42, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='account_budget_proposal', full_name='google.ads.googleads.v1.services.GoogleAdsRow.account_budget_proposal', index=1, - number=43, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='ad_group', full_name='google.ads.googleads.v1.services.GoogleAdsRow.ad_group', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='ad_group_ad', full_name='google.ads.googleads.v1.services.GoogleAdsRow.ad_group_ad', index=3, - number=16, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='ad_group_ad_label', full_name='google.ads.googleads.v1.services.GoogleAdsRow.ad_group_ad_label', index=4, - number=120, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='ad_group_audience_view', full_name='google.ads.googleads.v1.services.GoogleAdsRow.ad_group_audience_view', index=5, - number=57, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='ad_group_bid_modifier', full_name='google.ads.googleads.v1.services.GoogleAdsRow.ad_group_bid_modifier', index=6, - number=24, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='ad_group_criterion', full_name='google.ads.googleads.v1.services.GoogleAdsRow.ad_group_criterion', index=7, - number=17, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='ad_group_criterion_label', full_name='google.ads.googleads.v1.services.GoogleAdsRow.ad_group_criterion_label', index=8, - number=121, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='ad_group_criterion_simulation', full_name='google.ads.googleads.v1.services.GoogleAdsRow.ad_group_criterion_simulation', index=9, - number=110, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='ad_group_extension_setting', full_name='google.ads.googleads.v1.services.GoogleAdsRow.ad_group_extension_setting', index=10, - number=112, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='ad_group_feed', full_name='google.ads.googleads.v1.services.GoogleAdsRow.ad_group_feed', index=11, - number=67, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='ad_group_label', full_name='google.ads.googleads.v1.services.GoogleAdsRow.ad_group_label', index=12, - number=115, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='ad_group_simulation', full_name='google.ads.googleads.v1.services.GoogleAdsRow.ad_group_simulation', index=13, - number=107, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='ad_parameter', full_name='google.ads.googleads.v1.services.GoogleAdsRow.ad_parameter', index=14, - number=130, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='age_range_view', full_name='google.ads.googleads.v1.services.GoogleAdsRow.age_range_view', index=15, - number=48, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='ad_schedule_view', full_name='google.ads.googleads.v1.services.GoogleAdsRow.ad_schedule_view', index=16, - number=89, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='domain_category', full_name='google.ads.googleads.v1.services.GoogleAdsRow.domain_category', index=17, - number=91, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='asset', full_name='google.ads.googleads.v1.services.GoogleAdsRow.asset', index=18, - number=105, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='bidding_strategy', full_name='google.ads.googleads.v1.services.GoogleAdsRow.bidding_strategy', index=19, - number=18, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='billing_setup', full_name='google.ads.googleads.v1.services.GoogleAdsRow.billing_setup', index=20, - number=41, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='campaign_budget', full_name='google.ads.googleads.v1.services.GoogleAdsRow.campaign_budget', index=21, - number=19, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='campaign', full_name='google.ads.googleads.v1.services.GoogleAdsRow.campaign', index=22, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='campaign_audience_view', full_name='google.ads.googleads.v1.services.GoogleAdsRow.campaign_audience_view', index=23, - number=69, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='campaign_bid_modifier', full_name='google.ads.googleads.v1.services.GoogleAdsRow.campaign_bid_modifier', index=24, - number=26, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='campaign_criterion', full_name='google.ads.googleads.v1.services.GoogleAdsRow.campaign_criterion', index=25, - number=20, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='campaign_criterion_simulation', full_name='google.ads.googleads.v1.services.GoogleAdsRow.campaign_criterion_simulation', index=26, - number=111, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='campaign_draft', full_name='google.ads.googleads.v1.services.GoogleAdsRow.campaign_draft', index=27, - number=49, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='campaign_experiment', full_name='google.ads.googleads.v1.services.GoogleAdsRow.campaign_experiment', index=28, - number=84, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='campaign_extension_setting', full_name='google.ads.googleads.v1.services.GoogleAdsRow.campaign_extension_setting', index=29, - number=113, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='campaign_feed', full_name='google.ads.googleads.v1.services.GoogleAdsRow.campaign_feed', index=30, - number=63, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='campaign_label', full_name='google.ads.googleads.v1.services.GoogleAdsRow.campaign_label', index=31, - number=108, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='campaign_shared_set', full_name='google.ads.googleads.v1.services.GoogleAdsRow.campaign_shared_set', index=32, - number=30, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='carrier_constant', full_name='google.ads.googleads.v1.services.GoogleAdsRow.carrier_constant', index=33, - number=66, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='change_status', full_name='google.ads.googleads.v1.services.GoogleAdsRow.change_status', index=34, - number=37, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='conversion_action', full_name='google.ads.googleads.v1.services.GoogleAdsRow.conversion_action', index=35, - number=103, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='click_view', full_name='google.ads.googleads.v1.services.GoogleAdsRow.click_view', index=36, - number=122, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='custom_interest', full_name='google.ads.googleads.v1.services.GoogleAdsRow.custom_interest', index=37, - number=104, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='customer', full_name='google.ads.googleads.v1.services.GoogleAdsRow.customer', index=38, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='customer_manager_link', full_name='google.ads.googleads.v1.services.GoogleAdsRow.customer_manager_link', index=39, - number=61, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='customer_client_link', full_name='google.ads.googleads.v1.services.GoogleAdsRow.customer_client_link', index=40, - number=62, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='customer_client', full_name='google.ads.googleads.v1.services.GoogleAdsRow.customer_client', index=41, - number=70, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='customer_extension_setting', full_name='google.ads.googleads.v1.services.GoogleAdsRow.customer_extension_setting', index=42, - number=114, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='customer_feed', full_name='google.ads.googleads.v1.services.GoogleAdsRow.customer_feed', index=43, - number=64, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='customer_label', full_name='google.ads.googleads.v1.services.GoogleAdsRow.customer_label', index=44, - number=124, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='customer_negative_criterion', full_name='google.ads.googleads.v1.services.GoogleAdsRow.customer_negative_criterion', index=45, - number=88, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='detail_placement_view', full_name='google.ads.googleads.v1.services.GoogleAdsRow.detail_placement_view', index=46, - number=118, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='display_keyword_view', full_name='google.ads.googleads.v1.services.GoogleAdsRow.display_keyword_view', index=47, - number=47, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='dynamic_search_ads_search_term_view', full_name='google.ads.googleads.v1.services.GoogleAdsRow.dynamic_search_ads_search_term_view', index=48, - number=106, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='expanded_landing_page_view', full_name='google.ads.googleads.v1.services.GoogleAdsRow.expanded_landing_page_view', index=49, - number=128, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='extension_feed_item', full_name='google.ads.googleads.v1.services.GoogleAdsRow.extension_feed_item', index=50, - number=85, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='feed', full_name='google.ads.googleads.v1.services.GoogleAdsRow.feed', index=51, - number=46, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='feed_item', full_name='google.ads.googleads.v1.services.GoogleAdsRow.feed_item', index=52, - number=50, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='feed_item_target', full_name='google.ads.googleads.v1.services.GoogleAdsRow.feed_item_target', index=53, - number=116, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='feed_mapping', full_name='google.ads.googleads.v1.services.GoogleAdsRow.feed_mapping', index=54, - number=58, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='feed_placeholder_view', full_name='google.ads.googleads.v1.services.GoogleAdsRow.feed_placeholder_view', index=55, - number=97, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='gender_view', full_name='google.ads.googleads.v1.services.GoogleAdsRow.gender_view', index=56, - number=40, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='geo_target_constant', full_name='google.ads.googleads.v1.services.GoogleAdsRow.geo_target_constant', index=57, - number=23, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='geographic_view', full_name='google.ads.googleads.v1.services.GoogleAdsRow.geographic_view', index=58, - number=125, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='group_placement_view', full_name='google.ads.googleads.v1.services.GoogleAdsRow.group_placement_view', index=59, - number=119, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='hotel_group_view', full_name='google.ads.googleads.v1.services.GoogleAdsRow.hotel_group_view', index=60, - number=51, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='hotel_performance_view', full_name='google.ads.googleads.v1.services.GoogleAdsRow.hotel_performance_view', index=61, - number=71, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='keyword_view', full_name='google.ads.googleads.v1.services.GoogleAdsRow.keyword_view', index=62, - number=21, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='keyword_plan', full_name='google.ads.googleads.v1.services.GoogleAdsRow.keyword_plan', index=63, - number=32, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='keyword_plan_campaign', full_name='google.ads.googleads.v1.services.GoogleAdsRow.keyword_plan_campaign', index=64, - number=33, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='keyword_plan_negative_keyword', full_name='google.ads.googleads.v1.services.GoogleAdsRow.keyword_plan_negative_keyword', index=65, - number=34, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='keyword_plan_ad_group', full_name='google.ads.googleads.v1.services.GoogleAdsRow.keyword_plan_ad_group', index=66, - number=35, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='keyword_plan_keyword', full_name='google.ads.googleads.v1.services.GoogleAdsRow.keyword_plan_keyword', index=67, - number=36, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='label', full_name='google.ads.googleads.v1.services.GoogleAdsRow.label', index=68, - number=52, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='landing_page_view', full_name='google.ads.googleads.v1.services.GoogleAdsRow.landing_page_view', index=69, - number=126, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='language_constant', full_name='google.ads.googleads.v1.services.GoogleAdsRow.language_constant', index=70, - number=55, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='location_view', full_name='google.ads.googleads.v1.services.GoogleAdsRow.location_view', index=71, - number=123, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='managed_placement_view', full_name='google.ads.googleads.v1.services.GoogleAdsRow.managed_placement_view', index=72, - number=53, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='media_file', full_name='google.ads.googleads.v1.services.GoogleAdsRow.media_file', index=73, - number=90, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='mobile_app_category_constant', full_name='google.ads.googleads.v1.services.GoogleAdsRow.mobile_app_category_constant', index=74, - number=87, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='mobile_device_constant', full_name='google.ads.googleads.v1.services.GoogleAdsRow.mobile_device_constant', index=75, - number=98, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='mutate_job', full_name='google.ads.googleads.v1.services.GoogleAdsRow.mutate_job', index=76, - number=127, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='operating_system_version_constant', full_name='google.ads.googleads.v1.services.GoogleAdsRow.operating_system_version_constant', index=77, - number=86, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='paid_organic_search_term_view', full_name='google.ads.googleads.v1.services.GoogleAdsRow.paid_organic_search_term_view', index=78, - number=129, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='parental_status_view', full_name='google.ads.googleads.v1.services.GoogleAdsRow.parental_status_view', index=79, - number=45, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='product_bidding_category_constant', full_name='google.ads.googleads.v1.services.GoogleAdsRow.product_bidding_category_constant', index=80, - number=109, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='product_group_view', full_name='google.ads.googleads.v1.services.GoogleAdsRow.product_group_view', index=81, - number=54, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='recommendation', full_name='google.ads.googleads.v1.services.GoogleAdsRow.recommendation', index=82, - number=22, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='search_term_view', full_name='google.ads.googleads.v1.services.GoogleAdsRow.search_term_view', index=83, - number=68, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='shared_criterion', full_name='google.ads.googleads.v1.services.GoogleAdsRow.shared_criterion', index=84, - number=29, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='shared_set', full_name='google.ads.googleads.v1.services.GoogleAdsRow.shared_set', index=85, - number=27, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='shopping_performance_view', full_name='google.ads.googleads.v1.services.GoogleAdsRow.shopping_performance_view', index=86, - number=117, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='topic_view', full_name='google.ads.googleads.v1.services.GoogleAdsRow.topic_view', index=87, - number=44, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='user_interest', full_name='google.ads.googleads.v1.services.GoogleAdsRow.user_interest', index=88, - number=59, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='user_list', full_name='google.ads.googleads.v1.services.GoogleAdsRow.user_list', index=89, - number=38, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='remarketing_action', full_name='google.ads.googleads.v1.services.GoogleAdsRow.remarketing_action', index=90, - number=60, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='topic_constant', full_name='google.ads.googleads.v1.services.GoogleAdsRow.topic_constant', index=91, - number=31, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='video', full_name='google.ads.googleads.v1.services.GoogleAdsRow.video', index=92, - number=39, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='metrics', full_name='google.ads.googleads.v1.services.GoogleAdsRow.metrics', index=93, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='segments', full_name='google.ads.googleads.v1.services.GoogleAdsRow.segments', index=94, - number=102, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=9420, - serialized_end=16996, -) - - -_MUTATEGOOGLEADSREQUEST = _descriptor.Descriptor( - name='MutateGoogleAdsRequest', - full_name='google.ads.googleads.v1.services.MutateGoogleAdsRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='customer_id', full_name='google.ads.googleads.v1.services.MutateGoogleAdsRequest.customer_id', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='mutate_operations', full_name='google.ads.googleads.v1.services.MutateGoogleAdsRequest.mutate_operations', index=1, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='partial_failure', full_name='google.ads.googleads.v1.services.MutateGoogleAdsRequest.partial_failure', index=2, - number=3, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='validate_only', full_name='google.ads.googleads.v1.services.MutateGoogleAdsRequest.validate_only', index=3, - number=4, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=16999, - serialized_end=17170, -) - - -_MUTATEGOOGLEADSRESPONSE = _descriptor.Descriptor( - name='MutateGoogleAdsResponse', - full_name='google.ads.googleads.v1.services.MutateGoogleAdsResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='partial_failure_error', full_name='google.ads.googleads.v1.services.MutateGoogleAdsResponse.partial_failure_error', index=0, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='mutate_operation_responses', full_name='google.ads.googleads.v1.services.MutateGoogleAdsResponse.mutate_operation_responses', index=1, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=17173, - serialized_end=17344, -) - - -_MUTATEOPERATION = _descriptor.Descriptor( - name='MutateOperation', - full_name='google.ads.googleads.v1.services.MutateOperation', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='ad_group_ad_label_operation', full_name='google.ads.googleads.v1.services.MutateOperation.ad_group_ad_label_operation', index=0, - number=17, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='ad_group_ad_operation', full_name='google.ads.googleads.v1.services.MutateOperation.ad_group_ad_operation', index=1, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='ad_group_bid_modifier_operation', full_name='google.ads.googleads.v1.services.MutateOperation.ad_group_bid_modifier_operation', index=2, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='ad_group_criterion_label_operation', full_name='google.ads.googleads.v1.services.MutateOperation.ad_group_criterion_label_operation', index=3, - number=18, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='ad_group_criterion_operation', full_name='google.ads.googleads.v1.services.MutateOperation.ad_group_criterion_operation', index=4, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='ad_group_extension_setting_operation', full_name='google.ads.googleads.v1.services.MutateOperation.ad_group_extension_setting_operation', index=5, - number=19, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='ad_group_feed_operation', full_name='google.ads.googleads.v1.services.MutateOperation.ad_group_feed_operation', index=6, - number=20, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='ad_group_label_operation', full_name='google.ads.googleads.v1.services.MutateOperation.ad_group_label_operation', index=7, - number=21, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='ad_group_operation', full_name='google.ads.googleads.v1.services.MutateOperation.ad_group_operation', index=8, - number=5, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='ad_parameter_operation', full_name='google.ads.googleads.v1.services.MutateOperation.ad_parameter_operation', index=9, - number=22, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='asset_operation', full_name='google.ads.googleads.v1.services.MutateOperation.asset_operation', index=10, - number=23, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='bidding_strategy_operation', full_name='google.ads.googleads.v1.services.MutateOperation.bidding_strategy_operation', index=11, - number=6, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='campaign_bid_modifier_operation', full_name='google.ads.googleads.v1.services.MutateOperation.campaign_bid_modifier_operation', index=12, - number=7, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='campaign_budget_operation', full_name='google.ads.googleads.v1.services.MutateOperation.campaign_budget_operation', index=13, - number=8, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='campaign_criterion_operation', full_name='google.ads.googleads.v1.services.MutateOperation.campaign_criterion_operation', index=14, - number=13, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='campaign_draft_operation', full_name='google.ads.googleads.v1.services.MutateOperation.campaign_draft_operation', index=15, - number=24, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='campaign_experiment_operation', full_name='google.ads.googleads.v1.services.MutateOperation.campaign_experiment_operation', index=16, - number=25, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='campaign_extension_setting_operation', full_name='google.ads.googleads.v1.services.MutateOperation.campaign_extension_setting_operation', index=17, - number=26, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='campaign_feed_operation', full_name='google.ads.googleads.v1.services.MutateOperation.campaign_feed_operation', index=18, - number=27, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='campaign_label_operation', full_name='google.ads.googleads.v1.services.MutateOperation.campaign_label_operation', index=19, - number=28, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='campaign_operation', full_name='google.ads.googleads.v1.services.MutateOperation.campaign_operation', index=20, - number=10, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='campaign_shared_set_operation', full_name='google.ads.googleads.v1.services.MutateOperation.campaign_shared_set_operation', index=21, - number=11, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='conversion_action_operation', full_name='google.ads.googleads.v1.services.MutateOperation.conversion_action_operation', index=22, - number=12, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='customer_extension_setting_operation', full_name='google.ads.googleads.v1.services.MutateOperation.customer_extension_setting_operation', index=23, - number=30, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='customer_feed_operation', full_name='google.ads.googleads.v1.services.MutateOperation.customer_feed_operation', index=24, - number=31, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='customer_label_operation', full_name='google.ads.googleads.v1.services.MutateOperation.customer_label_operation', index=25, - number=32, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='customer_negative_criterion_operation', full_name='google.ads.googleads.v1.services.MutateOperation.customer_negative_criterion_operation', index=26, - number=34, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='customer_operation', full_name='google.ads.googleads.v1.services.MutateOperation.customer_operation', index=27, - number=35, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='extension_feed_item_operation', full_name='google.ads.googleads.v1.services.MutateOperation.extension_feed_item_operation', index=28, - number=36, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='feed_item_operation', full_name='google.ads.googleads.v1.services.MutateOperation.feed_item_operation', index=29, - number=37, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='feed_item_target_operation', full_name='google.ads.googleads.v1.services.MutateOperation.feed_item_target_operation', index=30, - number=38, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='feed_mapping_operation', full_name='google.ads.googleads.v1.services.MutateOperation.feed_mapping_operation', index=31, - number=39, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='feed_operation', full_name='google.ads.googleads.v1.services.MutateOperation.feed_operation', index=32, - number=40, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='label_operation', full_name='google.ads.googleads.v1.services.MutateOperation.label_operation', index=33, - number=41, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='media_file_operation', full_name='google.ads.googleads.v1.services.MutateOperation.media_file_operation', index=34, - number=42, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='remarketing_action_operation', full_name='google.ads.googleads.v1.services.MutateOperation.remarketing_action_operation', index=35, - number=43, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='shared_criterion_operation', full_name='google.ads.googleads.v1.services.MutateOperation.shared_criterion_operation', index=36, - number=14, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='shared_set_operation', full_name='google.ads.googleads.v1.services.MutateOperation.shared_set_operation', index=37, - number=15, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='user_list_operation', full_name='google.ads.googleads.v1.services.MutateOperation.user_list_operation', index=38, - number=16, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='operation', full_name='google.ads.googleads.v1.services.MutateOperation.operation', - index=0, containing_type=None, fields=[]), - ], - serialized_start=17347, - serialized_end=21107, -) - - -_MUTATEOPERATIONRESPONSE = _descriptor.Descriptor( - name='MutateOperationResponse', - full_name='google.ads.googleads.v1.services.MutateOperationResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='ad_group_ad_label_result', full_name='google.ads.googleads.v1.services.MutateOperationResponse.ad_group_ad_label_result', index=0, - number=17, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='ad_group_ad_result', full_name='google.ads.googleads.v1.services.MutateOperationResponse.ad_group_ad_result', index=1, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='ad_group_bid_modifier_result', full_name='google.ads.googleads.v1.services.MutateOperationResponse.ad_group_bid_modifier_result', index=2, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='ad_group_criterion_label_result', full_name='google.ads.googleads.v1.services.MutateOperationResponse.ad_group_criterion_label_result', index=3, - number=18, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='ad_group_criterion_result', full_name='google.ads.googleads.v1.services.MutateOperationResponse.ad_group_criterion_result', index=4, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='ad_group_extension_setting_result', full_name='google.ads.googleads.v1.services.MutateOperationResponse.ad_group_extension_setting_result', index=5, - number=19, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='ad_group_feed_result', full_name='google.ads.googleads.v1.services.MutateOperationResponse.ad_group_feed_result', index=6, - number=20, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='ad_group_label_result', full_name='google.ads.googleads.v1.services.MutateOperationResponse.ad_group_label_result', index=7, - number=21, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='ad_group_result', full_name='google.ads.googleads.v1.services.MutateOperationResponse.ad_group_result', index=8, - number=5, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='ad_parameter_result', full_name='google.ads.googleads.v1.services.MutateOperationResponse.ad_parameter_result', index=9, - number=22, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='asset_result', full_name='google.ads.googleads.v1.services.MutateOperationResponse.asset_result', index=10, - number=23, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='bidding_strategy_result', full_name='google.ads.googleads.v1.services.MutateOperationResponse.bidding_strategy_result', index=11, - number=6, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='campaign_bid_modifier_result', full_name='google.ads.googleads.v1.services.MutateOperationResponse.campaign_bid_modifier_result', index=12, - number=7, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='campaign_budget_result', full_name='google.ads.googleads.v1.services.MutateOperationResponse.campaign_budget_result', index=13, - number=8, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='campaign_criterion_result', full_name='google.ads.googleads.v1.services.MutateOperationResponse.campaign_criterion_result', index=14, - number=13, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='campaign_draft_result', full_name='google.ads.googleads.v1.services.MutateOperationResponse.campaign_draft_result', index=15, - number=24, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='campaign_experiment_result', full_name='google.ads.googleads.v1.services.MutateOperationResponse.campaign_experiment_result', index=16, - number=25, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='campaign_extension_setting_result', full_name='google.ads.googleads.v1.services.MutateOperationResponse.campaign_extension_setting_result', index=17, - number=26, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='campaign_feed_result', full_name='google.ads.googleads.v1.services.MutateOperationResponse.campaign_feed_result', index=18, - number=27, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='campaign_label_result', full_name='google.ads.googleads.v1.services.MutateOperationResponse.campaign_label_result', index=19, - number=28, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='campaign_result', full_name='google.ads.googleads.v1.services.MutateOperationResponse.campaign_result', index=20, - number=10, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='campaign_shared_set_result', full_name='google.ads.googleads.v1.services.MutateOperationResponse.campaign_shared_set_result', index=21, - number=11, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='conversion_action_result', full_name='google.ads.googleads.v1.services.MutateOperationResponse.conversion_action_result', index=22, - number=12, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='customer_extension_setting_result', full_name='google.ads.googleads.v1.services.MutateOperationResponse.customer_extension_setting_result', index=23, - number=30, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='customer_feed_result', full_name='google.ads.googleads.v1.services.MutateOperationResponse.customer_feed_result', index=24, - number=31, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='customer_label_result', full_name='google.ads.googleads.v1.services.MutateOperationResponse.customer_label_result', index=25, - number=32, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='customer_negative_criterion_result', full_name='google.ads.googleads.v1.services.MutateOperationResponse.customer_negative_criterion_result', index=26, - number=34, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='customer_result', full_name='google.ads.googleads.v1.services.MutateOperationResponse.customer_result', index=27, - number=35, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='extension_feed_item_result', full_name='google.ads.googleads.v1.services.MutateOperationResponse.extension_feed_item_result', index=28, - number=36, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='feed_item_result', full_name='google.ads.googleads.v1.services.MutateOperationResponse.feed_item_result', index=29, - number=37, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='feed_item_target_result', full_name='google.ads.googleads.v1.services.MutateOperationResponse.feed_item_target_result', index=30, - number=38, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='feed_mapping_result', full_name='google.ads.googleads.v1.services.MutateOperationResponse.feed_mapping_result', index=31, - number=39, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='feed_result', full_name='google.ads.googleads.v1.services.MutateOperationResponse.feed_result', index=32, - number=40, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='label_result', full_name='google.ads.googleads.v1.services.MutateOperationResponse.label_result', index=33, - number=41, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='media_file_result', full_name='google.ads.googleads.v1.services.MutateOperationResponse.media_file_result', index=34, - number=42, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='remarketing_action_result', full_name='google.ads.googleads.v1.services.MutateOperationResponse.remarketing_action_result', index=35, - number=43, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='shared_criterion_result', full_name='google.ads.googleads.v1.services.MutateOperationResponse.shared_criterion_result', index=36, - number=14, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='shared_set_result', full_name='google.ads.googleads.v1.services.MutateOperationResponse.shared_set_result', index=37, - number=15, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='user_list_result', full_name='google.ads.googleads.v1.services.MutateOperationResponse.user_list_result', index=38, - number=16, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='response', full_name='google.ads.googleads.v1.services.MutateOperationResponse.response', - index=0, containing_type=None, fields=[]), - ], - serialized_start=21110, - serialized_end=24876, -) - -_SEARCHGOOGLEADSRESPONSE.fields_by_name['results'].message_type = _GOOGLEADSROW -_SEARCHGOOGLEADSRESPONSE.fields_by_name['field_mask'].message_type = google_dot_protobuf_dot_field__mask__pb2._FIELDMASK -_GOOGLEADSROW.fields_by_name['account_budget'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_account__budget__pb2._ACCOUNTBUDGET -_GOOGLEADSROW.fields_by_name['account_budget_proposal'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_account__budget__proposal__pb2._ACCOUNTBUDGETPROPOSAL -_GOOGLEADSROW.fields_by_name['ad_group'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_ad__group__pb2._ADGROUP -_GOOGLEADSROW.fields_by_name['ad_group_ad'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_ad__group__ad__pb2._ADGROUPAD -_GOOGLEADSROW.fields_by_name['ad_group_ad_label'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_ad__group__ad__label__pb2._ADGROUPADLABEL -_GOOGLEADSROW.fields_by_name['ad_group_audience_view'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_ad__group__audience__view__pb2._ADGROUPAUDIENCEVIEW -_GOOGLEADSROW.fields_by_name['ad_group_bid_modifier'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_ad__group__bid__modifier__pb2._ADGROUPBIDMODIFIER -_GOOGLEADSROW.fields_by_name['ad_group_criterion'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_ad__group__criterion__pb2._ADGROUPCRITERION -_GOOGLEADSROW.fields_by_name['ad_group_criterion_label'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_ad__group__criterion__label__pb2._ADGROUPCRITERIONLABEL -_GOOGLEADSROW.fields_by_name['ad_group_criterion_simulation'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_ad__group__criterion__simulation__pb2._ADGROUPCRITERIONSIMULATION -_GOOGLEADSROW.fields_by_name['ad_group_extension_setting'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_ad__group__extension__setting__pb2._ADGROUPEXTENSIONSETTING -_GOOGLEADSROW.fields_by_name['ad_group_feed'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_ad__group__feed__pb2._ADGROUPFEED -_GOOGLEADSROW.fields_by_name['ad_group_label'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_ad__group__label__pb2._ADGROUPLABEL -_GOOGLEADSROW.fields_by_name['ad_group_simulation'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_ad__group__simulation__pb2._ADGROUPSIMULATION -_GOOGLEADSROW.fields_by_name['ad_parameter'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_ad__parameter__pb2._ADPARAMETER -_GOOGLEADSROW.fields_by_name['age_range_view'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_age__range__view__pb2._AGERANGEVIEW -_GOOGLEADSROW.fields_by_name['ad_schedule_view'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_ad__schedule__view__pb2._ADSCHEDULEVIEW -_GOOGLEADSROW.fields_by_name['domain_category'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_domain__category__pb2._DOMAINCATEGORY -_GOOGLEADSROW.fields_by_name['asset'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_asset__pb2._ASSET -_GOOGLEADSROW.fields_by_name['bidding_strategy'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_bidding__strategy__pb2._BIDDINGSTRATEGY -_GOOGLEADSROW.fields_by_name['billing_setup'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_billing__setup__pb2._BILLINGSETUP -_GOOGLEADSROW.fields_by_name['campaign_budget'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_campaign__budget__pb2._CAMPAIGNBUDGET -_GOOGLEADSROW.fields_by_name['campaign'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_campaign__pb2._CAMPAIGN -_GOOGLEADSROW.fields_by_name['campaign_audience_view'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_campaign__audience__view__pb2._CAMPAIGNAUDIENCEVIEW -_GOOGLEADSROW.fields_by_name['campaign_bid_modifier'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_campaign__bid__modifier__pb2._CAMPAIGNBIDMODIFIER -_GOOGLEADSROW.fields_by_name['campaign_criterion'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_campaign__criterion__pb2._CAMPAIGNCRITERION -_GOOGLEADSROW.fields_by_name['campaign_criterion_simulation'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_campaign__criterion__simulation__pb2._CAMPAIGNCRITERIONSIMULATION -_GOOGLEADSROW.fields_by_name['campaign_draft'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_campaign__draft__pb2._CAMPAIGNDRAFT -_GOOGLEADSROW.fields_by_name['campaign_experiment'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_campaign__experiment__pb2._CAMPAIGNEXPERIMENT -_GOOGLEADSROW.fields_by_name['campaign_extension_setting'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_campaign__extension__setting__pb2._CAMPAIGNEXTENSIONSETTING -_GOOGLEADSROW.fields_by_name['campaign_feed'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_campaign__feed__pb2._CAMPAIGNFEED -_GOOGLEADSROW.fields_by_name['campaign_label'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_campaign__label__pb2._CAMPAIGNLABEL -_GOOGLEADSROW.fields_by_name['campaign_shared_set'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_campaign__shared__set__pb2._CAMPAIGNSHAREDSET -_GOOGLEADSROW.fields_by_name['carrier_constant'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_carrier__constant__pb2._CARRIERCONSTANT -_GOOGLEADSROW.fields_by_name['change_status'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_change__status__pb2._CHANGESTATUS -_GOOGLEADSROW.fields_by_name['conversion_action'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_conversion__action__pb2._CONVERSIONACTION -_GOOGLEADSROW.fields_by_name['click_view'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_click__view__pb2._CLICKVIEW -_GOOGLEADSROW.fields_by_name['custom_interest'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_custom__interest__pb2._CUSTOMINTEREST -_GOOGLEADSROW.fields_by_name['customer'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_customer__pb2._CUSTOMER -_GOOGLEADSROW.fields_by_name['customer_manager_link'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_customer__manager__link__pb2._CUSTOMERMANAGERLINK -_GOOGLEADSROW.fields_by_name['customer_client_link'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_customer__client__link__pb2._CUSTOMERCLIENTLINK -_GOOGLEADSROW.fields_by_name['customer_client'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_customer__client__pb2._CUSTOMERCLIENT -_GOOGLEADSROW.fields_by_name['customer_extension_setting'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_customer__extension__setting__pb2._CUSTOMEREXTENSIONSETTING -_GOOGLEADSROW.fields_by_name['customer_feed'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_customer__feed__pb2._CUSTOMERFEED -_GOOGLEADSROW.fields_by_name['customer_label'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_customer__label__pb2._CUSTOMERLABEL -_GOOGLEADSROW.fields_by_name['customer_negative_criterion'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_customer__negative__criterion__pb2._CUSTOMERNEGATIVECRITERION -_GOOGLEADSROW.fields_by_name['detail_placement_view'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_detail__placement__view__pb2._DETAILPLACEMENTVIEW -_GOOGLEADSROW.fields_by_name['display_keyword_view'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_display__keyword__view__pb2._DISPLAYKEYWORDVIEW -_GOOGLEADSROW.fields_by_name['dynamic_search_ads_search_term_view'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_dynamic__search__ads__search__term__view__pb2._DYNAMICSEARCHADSSEARCHTERMVIEW -_GOOGLEADSROW.fields_by_name['expanded_landing_page_view'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_expanded__landing__page__view__pb2._EXPANDEDLANDINGPAGEVIEW -_GOOGLEADSROW.fields_by_name['extension_feed_item'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_extension__feed__item__pb2._EXTENSIONFEEDITEM -_GOOGLEADSROW.fields_by_name['feed'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_feed__pb2._FEED -_GOOGLEADSROW.fields_by_name['feed_item'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_feed__item__pb2._FEEDITEM -_GOOGLEADSROW.fields_by_name['feed_item_target'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_feed__item__target__pb2._FEEDITEMTARGET -_GOOGLEADSROW.fields_by_name['feed_mapping'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_feed__mapping__pb2._FEEDMAPPING -_GOOGLEADSROW.fields_by_name['feed_placeholder_view'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_feed__placeholder__view__pb2._FEEDPLACEHOLDERVIEW -_GOOGLEADSROW.fields_by_name['gender_view'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_gender__view__pb2._GENDERVIEW -_GOOGLEADSROW.fields_by_name['geo_target_constant'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_geo__target__constant__pb2._GEOTARGETCONSTANT -_GOOGLEADSROW.fields_by_name['geographic_view'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_geographic__view__pb2._GEOGRAPHICVIEW -_GOOGLEADSROW.fields_by_name['group_placement_view'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_group__placement__view__pb2._GROUPPLACEMENTVIEW -_GOOGLEADSROW.fields_by_name['hotel_group_view'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_hotel__group__view__pb2._HOTELGROUPVIEW -_GOOGLEADSROW.fields_by_name['hotel_performance_view'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_hotel__performance__view__pb2._HOTELPERFORMANCEVIEW -_GOOGLEADSROW.fields_by_name['keyword_view'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_keyword__view__pb2._KEYWORDVIEW -_GOOGLEADSROW.fields_by_name['keyword_plan'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_keyword__plan__pb2._KEYWORDPLAN -_GOOGLEADSROW.fields_by_name['keyword_plan_campaign'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_keyword__plan__campaign__pb2._KEYWORDPLANCAMPAIGN -_GOOGLEADSROW.fields_by_name['keyword_plan_negative_keyword'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_keyword__plan__negative__keyword__pb2._KEYWORDPLANNEGATIVEKEYWORD -_GOOGLEADSROW.fields_by_name['keyword_plan_ad_group'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_keyword__plan__ad__group__pb2._KEYWORDPLANADGROUP -_GOOGLEADSROW.fields_by_name['keyword_plan_keyword'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_keyword__plan__keyword__pb2._KEYWORDPLANKEYWORD -_GOOGLEADSROW.fields_by_name['label'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_label__pb2._LABEL -_GOOGLEADSROW.fields_by_name['landing_page_view'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_landing__page__view__pb2._LANDINGPAGEVIEW -_GOOGLEADSROW.fields_by_name['language_constant'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_language__constant__pb2._LANGUAGECONSTANT -_GOOGLEADSROW.fields_by_name['location_view'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_location__view__pb2._LOCATIONVIEW -_GOOGLEADSROW.fields_by_name['managed_placement_view'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_managed__placement__view__pb2._MANAGEDPLACEMENTVIEW -_GOOGLEADSROW.fields_by_name['media_file'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_media__file__pb2._MEDIAFILE -_GOOGLEADSROW.fields_by_name['mobile_app_category_constant'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_mobile__app__category__constant__pb2._MOBILEAPPCATEGORYCONSTANT -_GOOGLEADSROW.fields_by_name['mobile_device_constant'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_mobile__device__constant__pb2._MOBILEDEVICECONSTANT -_GOOGLEADSROW.fields_by_name['mutate_job'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_mutate__job__pb2._MUTATEJOB -_GOOGLEADSROW.fields_by_name['operating_system_version_constant'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_operating__system__version__constant__pb2._OPERATINGSYSTEMVERSIONCONSTANT -_GOOGLEADSROW.fields_by_name['paid_organic_search_term_view'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_paid__organic__search__term__view__pb2._PAIDORGANICSEARCHTERMVIEW -_GOOGLEADSROW.fields_by_name['parental_status_view'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_parental__status__view__pb2._PARENTALSTATUSVIEW -_GOOGLEADSROW.fields_by_name['product_bidding_category_constant'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_product__bidding__category__constant__pb2._PRODUCTBIDDINGCATEGORYCONSTANT -_GOOGLEADSROW.fields_by_name['product_group_view'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_product__group__view__pb2._PRODUCTGROUPVIEW -_GOOGLEADSROW.fields_by_name['recommendation'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_recommendation__pb2._RECOMMENDATION -_GOOGLEADSROW.fields_by_name['search_term_view'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_search__term__view__pb2._SEARCHTERMVIEW -_GOOGLEADSROW.fields_by_name['shared_criterion'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_shared__criterion__pb2._SHAREDCRITERION -_GOOGLEADSROW.fields_by_name['shared_set'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_shared__set__pb2._SHAREDSET -_GOOGLEADSROW.fields_by_name['shopping_performance_view'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_shopping__performance__view__pb2._SHOPPINGPERFORMANCEVIEW -_GOOGLEADSROW.fields_by_name['topic_view'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_topic__view__pb2._TOPICVIEW -_GOOGLEADSROW.fields_by_name['user_interest'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_user__interest__pb2._USERINTEREST -_GOOGLEADSROW.fields_by_name['user_list'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_user__list__pb2._USERLIST -_GOOGLEADSROW.fields_by_name['remarketing_action'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_remarketing__action__pb2._REMARKETINGACTION -_GOOGLEADSROW.fields_by_name['topic_constant'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_topic__constant__pb2._TOPICCONSTANT -_GOOGLEADSROW.fields_by_name['video'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_video__pb2._VIDEO -_GOOGLEADSROW.fields_by_name['metrics'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_metrics__pb2._METRICS -_GOOGLEADSROW.fields_by_name['segments'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_segments__pb2._SEGMENTS -_MUTATEGOOGLEADSREQUEST.fields_by_name['mutate_operations'].message_type = _MUTATEOPERATION -_MUTATEGOOGLEADSRESPONSE.fields_by_name['partial_failure_error'].message_type = google_dot_rpc_dot_status__pb2._STATUS -_MUTATEGOOGLEADSRESPONSE.fields_by_name['mutate_operation_responses'].message_type = _MUTATEOPERATIONRESPONSE -_MUTATEOPERATION.fields_by_name['ad_group_ad_label_operation'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_ad__group__ad__label__service__pb2._ADGROUPADLABELOPERATION -_MUTATEOPERATION.fields_by_name['ad_group_ad_operation'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_ad__group__ad__service__pb2._ADGROUPADOPERATION -_MUTATEOPERATION.fields_by_name['ad_group_bid_modifier_operation'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_ad__group__bid__modifier__service__pb2._ADGROUPBIDMODIFIEROPERATION -_MUTATEOPERATION.fields_by_name['ad_group_criterion_label_operation'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_ad__group__criterion__label__service__pb2._ADGROUPCRITERIONLABELOPERATION -_MUTATEOPERATION.fields_by_name['ad_group_criterion_operation'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_ad__group__criterion__service__pb2._ADGROUPCRITERIONOPERATION -_MUTATEOPERATION.fields_by_name['ad_group_extension_setting_operation'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_ad__group__extension__setting__service__pb2._ADGROUPEXTENSIONSETTINGOPERATION -_MUTATEOPERATION.fields_by_name['ad_group_feed_operation'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_ad__group__feed__service__pb2._ADGROUPFEEDOPERATION -_MUTATEOPERATION.fields_by_name['ad_group_label_operation'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_ad__group__label__service__pb2._ADGROUPLABELOPERATION -_MUTATEOPERATION.fields_by_name['ad_group_operation'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_ad__group__service__pb2._ADGROUPOPERATION -_MUTATEOPERATION.fields_by_name['ad_parameter_operation'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_ad__parameter__service__pb2._ADPARAMETEROPERATION -_MUTATEOPERATION.fields_by_name['asset_operation'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_asset__service__pb2._ASSETOPERATION -_MUTATEOPERATION.fields_by_name['bidding_strategy_operation'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_bidding__strategy__service__pb2._BIDDINGSTRATEGYOPERATION -_MUTATEOPERATION.fields_by_name['campaign_bid_modifier_operation'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_campaign__bid__modifier__service__pb2._CAMPAIGNBIDMODIFIEROPERATION -_MUTATEOPERATION.fields_by_name['campaign_budget_operation'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_campaign__budget__service__pb2._CAMPAIGNBUDGETOPERATION -_MUTATEOPERATION.fields_by_name['campaign_criterion_operation'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_campaign__criterion__service__pb2._CAMPAIGNCRITERIONOPERATION -_MUTATEOPERATION.fields_by_name['campaign_draft_operation'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_campaign__draft__service__pb2._CAMPAIGNDRAFTOPERATION -_MUTATEOPERATION.fields_by_name['campaign_experiment_operation'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_campaign__experiment__service__pb2._CAMPAIGNEXPERIMENTOPERATION -_MUTATEOPERATION.fields_by_name['campaign_extension_setting_operation'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_campaign__extension__setting__service__pb2._CAMPAIGNEXTENSIONSETTINGOPERATION -_MUTATEOPERATION.fields_by_name['campaign_feed_operation'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_campaign__feed__service__pb2._CAMPAIGNFEEDOPERATION -_MUTATEOPERATION.fields_by_name['campaign_label_operation'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_campaign__label__service__pb2._CAMPAIGNLABELOPERATION -_MUTATEOPERATION.fields_by_name['campaign_operation'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_campaign__service__pb2._CAMPAIGNOPERATION -_MUTATEOPERATION.fields_by_name['campaign_shared_set_operation'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_campaign__shared__set__service__pb2._CAMPAIGNSHAREDSETOPERATION -_MUTATEOPERATION.fields_by_name['conversion_action_operation'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_conversion__action__service__pb2._CONVERSIONACTIONOPERATION -_MUTATEOPERATION.fields_by_name['customer_extension_setting_operation'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_customer__extension__setting__service__pb2._CUSTOMEREXTENSIONSETTINGOPERATION -_MUTATEOPERATION.fields_by_name['customer_feed_operation'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_customer__feed__service__pb2._CUSTOMERFEEDOPERATION -_MUTATEOPERATION.fields_by_name['customer_label_operation'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_customer__label__service__pb2._CUSTOMERLABELOPERATION -_MUTATEOPERATION.fields_by_name['customer_negative_criterion_operation'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_customer__negative__criterion__service__pb2._CUSTOMERNEGATIVECRITERIONOPERATION -_MUTATEOPERATION.fields_by_name['customer_operation'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_customer__service__pb2._CUSTOMEROPERATION -_MUTATEOPERATION.fields_by_name['extension_feed_item_operation'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_extension__feed__item__service__pb2._EXTENSIONFEEDITEMOPERATION -_MUTATEOPERATION.fields_by_name['feed_item_operation'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_feed__item__service__pb2._FEEDITEMOPERATION -_MUTATEOPERATION.fields_by_name['feed_item_target_operation'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_feed__item__target__service__pb2._FEEDITEMTARGETOPERATION -_MUTATEOPERATION.fields_by_name['feed_mapping_operation'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_feed__mapping__service__pb2._FEEDMAPPINGOPERATION -_MUTATEOPERATION.fields_by_name['feed_operation'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_feed__service__pb2._FEEDOPERATION -_MUTATEOPERATION.fields_by_name['label_operation'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_label__service__pb2._LABELOPERATION -_MUTATEOPERATION.fields_by_name['media_file_operation'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_media__file__service__pb2._MEDIAFILEOPERATION -_MUTATEOPERATION.fields_by_name['remarketing_action_operation'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_remarketing__action__service__pb2._REMARKETINGACTIONOPERATION -_MUTATEOPERATION.fields_by_name['shared_criterion_operation'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_shared__criterion__service__pb2._SHAREDCRITERIONOPERATION -_MUTATEOPERATION.fields_by_name['shared_set_operation'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_shared__set__service__pb2._SHAREDSETOPERATION -_MUTATEOPERATION.fields_by_name['user_list_operation'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_user__list__service__pb2._USERLISTOPERATION -_MUTATEOPERATION.oneofs_by_name['operation'].fields.append( - _MUTATEOPERATION.fields_by_name['ad_group_ad_label_operation']) -_MUTATEOPERATION.fields_by_name['ad_group_ad_label_operation'].containing_oneof = _MUTATEOPERATION.oneofs_by_name['operation'] -_MUTATEOPERATION.oneofs_by_name['operation'].fields.append( - _MUTATEOPERATION.fields_by_name['ad_group_ad_operation']) -_MUTATEOPERATION.fields_by_name['ad_group_ad_operation'].containing_oneof = _MUTATEOPERATION.oneofs_by_name['operation'] -_MUTATEOPERATION.oneofs_by_name['operation'].fields.append( - _MUTATEOPERATION.fields_by_name['ad_group_bid_modifier_operation']) -_MUTATEOPERATION.fields_by_name['ad_group_bid_modifier_operation'].containing_oneof = _MUTATEOPERATION.oneofs_by_name['operation'] -_MUTATEOPERATION.oneofs_by_name['operation'].fields.append( - _MUTATEOPERATION.fields_by_name['ad_group_criterion_label_operation']) -_MUTATEOPERATION.fields_by_name['ad_group_criterion_label_operation'].containing_oneof = _MUTATEOPERATION.oneofs_by_name['operation'] -_MUTATEOPERATION.oneofs_by_name['operation'].fields.append( - _MUTATEOPERATION.fields_by_name['ad_group_criterion_operation']) -_MUTATEOPERATION.fields_by_name['ad_group_criterion_operation'].containing_oneof = _MUTATEOPERATION.oneofs_by_name['operation'] -_MUTATEOPERATION.oneofs_by_name['operation'].fields.append( - _MUTATEOPERATION.fields_by_name['ad_group_extension_setting_operation']) -_MUTATEOPERATION.fields_by_name['ad_group_extension_setting_operation'].containing_oneof = _MUTATEOPERATION.oneofs_by_name['operation'] -_MUTATEOPERATION.oneofs_by_name['operation'].fields.append( - _MUTATEOPERATION.fields_by_name['ad_group_feed_operation']) -_MUTATEOPERATION.fields_by_name['ad_group_feed_operation'].containing_oneof = _MUTATEOPERATION.oneofs_by_name['operation'] -_MUTATEOPERATION.oneofs_by_name['operation'].fields.append( - _MUTATEOPERATION.fields_by_name['ad_group_label_operation']) -_MUTATEOPERATION.fields_by_name['ad_group_label_operation'].containing_oneof = _MUTATEOPERATION.oneofs_by_name['operation'] -_MUTATEOPERATION.oneofs_by_name['operation'].fields.append( - _MUTATEOPERATION.fields_by_name['ad_group_operation']) -_MUTATEOPERATION.fields_by_name['ad_group_operation'].containing_oneof = _MUTATEOPERATION.oneofs_by_name['operation'] -_MUTATEOPERATION.oneofs_by_name['operation'].fields.append( - _MUTATEOPERATION.fields_by_name['ad_parameter_operation']) -_MUTATEOPERATION.fields_by_name['ad_parameter_operation'].containing_oneof = _MUTATEOPERATION.oneofs_by_name['operation'] -_MUTATEOPERATION.oneofs_by_name['operation'].fields.append( - _MUTATEOPERATION.fields_by_name['asset_operation']) -_MUTATEOPERATION.fields_by_name['asset_operation'].containing_oneof = _MUTATEOPERATION.oneofs_by_name['operation'] -_MUTATEOPERATION.oneofs_by_name['operation'].fields.append( - _MUTATEOPERATION.fields_by_name['bidding_strategy_operation']) -_MUTATEOPERATION.fields_by_name['bidding_strategy_operation'].containing_oneof = _MUTATEOPERATION.oneofs_by_name['operation'] -_MUTATEOPERATION.oneofs_by_name['operation'].fields.append( - _MUTATEOPERATION.fields_by_name['campaign_bid_modifier_operation']) -_MUTATEOPERATION.fields_by_name['campaign_bid_modifier_operation'].containing_oneof = _MUTATEOPERATION.oneofs_by_name['operation'] -_MUTATEOPERATION.oneofs_by_name['operation'].fields.append( - _MUTATEOPERATION.fields_by_name['campaign_budget_operation']) -_MUTATEOPERATION.fields_by_name['campaign_budget_operation'].containing_oneof = _MUTATEOPERATION.oneofs_by_name['operation'] -_MUTATEOPERATION.oneofs_by_name['operation'].fields.append( - _MUTATEOPERATION.fields_by_name['campaign_criterion_operation']) -_MUTATEOPERATION.fields_by_name['campaign_criterion_operation'].containing_oneof = _MUTATEOPERATION.oneofs_by_name['operation'] -_MUTATEOPERATION.oneofs_by_name['operation'].fields.append( - _MUTATEOPERATION.fields_by_name['campaign_draft_operation']) -_MUTATEOPERATION.fields_by_name['campaign_draft_operation'].containing_oneof = _MUTATEOPERATION.oneofs_by_name['operation'] -_MUTATEOPERATION.oneofs_by_name['operation'].fields.append( - _MUTATEOPERATION.fields_by_name['campaign_experiment_operation']) -_MUTATEOPERATION.fields_by_name['campaign_experiment_operation'].containing_oneof = _MUTATEOPERATION.oneofs_by_name['operation'] -_MUTATEOPERATION.oneofs_by_name['operation'].fields.append( - _MUTATEOPERATION.fields_by_name['campaign_extension_setting_operation']) -_MUTATEOPERATION.fields_by_name['campaign_extension_setting_operation'].containing_oneof = _MUTATEOPERATION.oneofs_by_name['operation'] -_MUTATEOPERATION.oneofs_by_name['operation'].fields.append( - _MUTATEOPERATION.fields_by_name['campaign_feed_operation']) -_MUTATEOPERATION.fields_by_name['campaign_feed_operation'].containing_oneof = _MUTATEOPERATION.oneofs_by_name['operation'] -_MUTATEOPERATION.oneofs_by_name['operation'].fields.append( - _MUTATEOPERATION.fields_by_name['campaign_label_operation']) -_MUTATEOPERATION.fields_by_name['campaign_label_operation'].containing_oneof = _MUTATEOPERATION.oneofs_by_name['operation'] -_MUTATEOPERATION.oneofs_by_name['operation'].fields.append( - _MUTATEOPERATION.fields_by_name['campaign_operation']) -_MUTATEOPERATION.fields_by_name['campaign_operation'].containing_oneof = _MUTATEOPERATION.oneofs_by_name['operation'] -_MUTATEOPERATION.oneofs_by_name['operation'].fields.append( - _MUTATEOPERATION.fields_by_name['campaign_shared_set_operation']) -_MUTATEOPERATION.fields_by_name['campaign_shared_set_operation'].containing_oneof = _MUTATEOPERATION.oneofs_by_name['operation'] -_MUTATEOPERATION.oneofs_by_name['operation'].fields.append( - _MUTATEOPERATION.fields_by_name['conversion_action_operation']) -_MUTATEOPERATION.fields_by_name['conversion_action_operation'].containing_oneof = _MUTATEOPERATION.oneofs_by_name['operation'] -_MUTATEOPERATION.oneofs_by_name['operation'].fields.append( - _MUTATEOPERATION.fields_by_name['customer_extension_setting_operation']) -_MUTATEOPERATION.fields_by_name['customer_extension_setting_operation'].containing_oneof = _MUTATEOPERATION.oneofs_by_name['operation'] -_MUTATEOPERATION.oneofs_by_name['operation'].fields.append( - _MUTATEOPERATION.fields_by_name['customer_feed_operation']) -_MUTATEOPERATION.fields_by_name['customer_feed_operation'].containing_oneof = _MUTATEOPERATION.oneofs_by_name['operation'] -_MUTATEOPERATION.oneofs_by_name['operation'].fields.append( - _MUTATEOPERATION.fields_by_name['customer_label_operation']) -_MUTATEOPERATION.fields_by_name['customer_label_operation'].containing_oneof = _MUTATEOPERATION.oneofs_by_name['operation'] -_MUTATEOPERATION.oneofs_by_name['operation'].fields.append( - _MUTATEOPERATION.fields_by_name['customer_negative_criterion_operation']) -_MUTATEOPERATION.fields_by_name['customer_negative_criterion_operation'].containing_oneof = _MUTATEOPERATION.oneofs_by_name['operation'] -_MUTATEOPERATION.oneofs_by_name['operation'].fields.append( - _MUTATEOPERATION.fields_by_name['customer_operation']) -_MUTATEOPERATION.fields_by_name['customer_operation'].containing_oneof = _MUTATEOPERATION.oneofs_by_name['operation'] -_MUTATEOPERATION.oneofs_by_name['operation'].fields.append( - _MUTATEOPERATION.fields_by_name['extension_feed_item_operation']) -_MUTATEOPERATION.fields_by_name['extension_feed_item_operation'].containing_oneof = _MUTATEOPERATION.oneofs_by_name['operation'] -_MUTATEOPERATION.oneofs_by_name['operation'].fields.append( - _MUTATEOPERATION.fields_by_name['feed_item_operation']) -_MUTATEOPERATION.fields_by_name['feed_item_operation'].containing_oneof = _MUTATEOPERATION.oneofs_by_name['operation'] -_MUTATEOPERATION.oneofs_by_name['operation'].fields.append( - _MUTATEOPERATION.fields_by_name['feed_item_target_operation']) -_MUTATEOPERATION.fields_by_name['feed_item_target_operation'].containing_oneof = _MUTATEOPERATION.oneofs_by_name['operation'] -_MUTATEOPERATION.oneofs_by_name['operation'].fields.append( - _MUTATEOPERATION.fields_by_name['feed_mapping_operation']) -_MUTATEOPERATION.fields_by_name['feed_mapping_operation'].containing_oneof = _MUTATEOPERATION.oneofs_by_name['operation'] -_MUTATEOPERATION.oneofs_by_name['operation'].fields.append( - _MUTATEOPERATION.fields_by_name['feed_operation']) -_MUTATEOPERATION.fields_by_name['feed_operation'].containing_oneof = _MUTATEOPERATION.oneofs_by_name['operation'] -_MUTATEOPERATION.oneofs_by_name['operation'].fields.append( - _MUTATEOPERATION.fields_by_name['label_operation']) -_MUTATEOPERATION.fields_by_name['label_operation'].containing_oneof = _MUTATEOPERATION.oneofs_by_name['operation'] -_MUTATEOPERATION.oneofs_by_name['operation'].fields.append( - _MUTATEOPERATION.fields_by_name['media_file_operation']) -_MUTATEOPERATION.fields_by_name['media_file_operation'].containing_oneof = _MUTATEOPERATION.oneofs_by_name['operation'] -_MUTATEOPERATION.oneofs_by_name['operation'].fields.append( - _MUTATEOPERATION.fields_by_name['remarketing_action_operation']) -_MUTATEOPERATION.fields_by_name['remarketing_action_operation'].containing_oneof = _MUTATEOPERATION.oneofs_by_name['operation'] -_MUTATEOPERATION.oneofs_by_name['operation'].fields.append( - _MUTATEOPERATION.fields_by_name['shared_criterion_operation']) -_MUTATEOPERATION.fields_by_name['shared_criterion_operation'].containing_oneof = _MUTATEOPERATION.oneofs_by_name['operation'] -_MUTATEOPERATION.oneofs_by_name['operation'].fields.append( - _MUTATEOPERATION.fields_by_name['shared_set_operation']) -_MUTATEOPERATION.fields_by_name['shared_set_operation'].containing_oneof = _MUTATEOPERATION.oneofs_by_name['operation'] -_MUTATEOPERATION.oneofs_by_name['operation'].fields.append( - _MUTATEOPERATION.fields_by_name['user_list_operation']) -_MUTATEOPERATION.fields_by_name['user_list_operation'].containing_oneof = _MUTATEOPERATION.oneofs_by_name['operation'] -_MUTATEOPERATIONRESPONSE.fields_by_name['ad_group_ad_label_result'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_ad__group__ad__label__service__pb2._MUTATEADGROUPADLABELRESULT -_MUTATEOPERATIONRESPONSE.fields_by_name['ad_group_ad_result'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_ad__group__ad__service__pb2._MUTATEADGROUPADRESULT -_MUTATEOPERATIONRESPONSE.fields_by_name['ad_group_bid_modifier_result'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_ad__group__bid__modifier__service__pb2._MUTATEADGROUPBIDMODIFIERRESULT -_MUTATEOPERATIONRESPONSE.fields_by_name['ad_group_criterion_label_result'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_ad__group__criterion__label__service__pb2._MUTATEADGROUPCRITERIONLABELRESULT -_MUTATEOPERATIONRESPONSE.fields_by_name['ad_group_criterion_result'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_ad__group__criterion__service__pb2._MUTATEADGROUPCRITERIONRESULT -_MUTATEOPERATIONRESPONSE.fields_by_name['ad_group_extension_setting_result'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_ad__group__extension__setting__service__pb2._MUTATEADGROUPEXTENSIONSETTINGRESULT -_MUTATEOPERATIONRESPONSE.fields_by_name['ad_group_feed_result'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_ad__group__feed__service__pb2._MUTATEADGROUPFEEDRESULT -_MUTATEOPERATIONRESPONSE.fields_by_name['ad_group_label_result'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_ad__group__label__service__pb2._MUTATEADGROUPLABELRESULT -_MUTATEOPERATIONRESPONSE.fields_by_name['ad_group_result'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_ad__group__service__pb2._MUTATEADGROUPRESULT -_MUTATEOPERATIONRESPONSE.fields_by_name['ad_parameter_result'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_ad__parameter__service__pb2._MUTATEADPARAMETERRESULT -_MUTATEOPERATIONRESPONSE.fields_by_name['asset_result'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_asset__service__pb2._MUTATEASSETRESULT -_MUTATEOPERATIONRESPONSE.fields_by_name['bidding_strategy_result'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_bidding__strategy__service__pb2._MUTATEBIDDINGSTRATEGYRESULT -_MUTATEOPERATIONRESPONSE.fields_by_name['campaign_bid_modifier_result'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_campaign__bid__modifier__service__pb2._MUTATECAMPAIGNBIDMODIFIERRESULT -_MUTATEOPERATIONRESPONSE.fields_by_name['campaign_budget_result'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_campaign__budget__service__pb2._MUTATECAMPAIGNBUDGETRESULT -_MUTATEOPERATIONRESPONSE.fields_by_name['campaign_criterion_result'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_campaign__criterion__service__pb2._MUTATECAMPAIGNCRITERIONRESULT -_MUTATEOPERATIONRESPONSE.fields_by_name['campaign_draft_result'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_campaign__draft__service__pb2._MUTATECAMPAIGNDRAFTRESULT -_MUTATEOPERATIONRESPONSE.fields_by_name['campaign_experiment_result'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_campaign__experiment__service__pb2._MUTATECAMPAIGNEXPERIMENTRESULT -_MUTATEOPERATIONRESPONSE.fields_by_name['campaign_extension_setting_result'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_campaign__extension__setting__service__pb2._MUTATECAMPAIGNEXTENSIONSETTINGRESULT -_MUTATEOPERATIONRESPONSE.fields_by_name['campaign_feed_result'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_campaign__feed__service__pb2._MUTATECAMPAIGNFEEDRESULT -_MUTATEOPERATIONRESPONSE.fields_by_name['campaign_label_result'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_campaign__label__service__pb2._MUTATECAMPAIGNLABELRESULT -_MUTATEOPERATIONRESPONSE.fields_by_name['campaign_result'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_campaign__service__pb2._MUTATECAMPAIGNRESULT -_MUTATEOPERATIONRESPONSE.fields_by_name['campaign_shared_set_result'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_campaign__shared__set__service__pb2._MUTATECAMPAIGNSHAREDSETRESULT -_MUTATEOPERATIONRESPONSE.fields_by_name['conversion_action_result'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_conversion__action__service__pb2._MUTATECONVERSIONACTIONRESULT -_MUTATEOPERATIONRESPONSE.fields_by_name['customer_extension_setting_result'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_customer__extension__setting__service__pb2._MUTATECUSTOMEREXTENSIONSETTINGRESULT -_MUTATEOPERATIONRESPONSE.fields_by_name['customer_feed_result'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_customer__feed__service__pb2._MUTATECUSTOMERFEEDRESULT -_MUTATEOPERATIONRESPONSE.fields_by_name['customer_label_result'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_customer__label__service__pb2._MUTATECUSTOMERLABELRESULT -_MUTATEOPERATIONRESPONSE.fields_by_name['customer_negative_criterion_result'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_customer__negative__criterion__service__pb2._MUTATECUSTOMERNEGATIVECRITERIARESULT -_MUTATEOPERATIONRESPONSE.fields_by_name['customer_result'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_customer__service__pb2._MUTATECUSTOMERRESULT -_MUTATEOPERATIONRESPONSE.fields_by_name['extension_feed_item_result'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_extension__feed__item__service__pb2._MUTATEEXTENSIONFEEDITEMRESULT -_MUTATEOPERATIONRESPONSE.fields_by_name['feed_item_result'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_feed__item__service__pb2._MUTATEFEEDITEMRESULT -_MUTATEOPERATIONRESPONSE.fields_by_name['feed_item_target_result'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_feed__item__target__service__pb2._MUTATEFEEDITEMTARGETRESULT -_MUTATEOPERATIONRESPONSE.fields_by_name['feed_mapping_result'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_feed__mapping__service__pb2._MUTATEFEEDMAPPINGRESULT -_MUTATEOPERATIONRESPONSE.fields_by_name['feed_result'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_feed__service__pb2._MUTATEFEEDRESULT -_MUTATEOPERATIONRESPONSE.fields_by_name['label_result'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_label__service__pb2._MUTATELABELRESULT -_MUTATEOPERATIONRESPONSE.fields_by_name['media_file_result'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_media__file__service__pb2._MUTATEMEDIAFILERESULT -_MUTATEOPERATIONRESPONSE.fields_by_name['remarketing_action_result'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_remarketing__action__service__pb2._MUTATEREMARKETINGACTIONRESULT -_MUTATEOPERATIONRESPONSE.fields_by_name['shared_criterion_result'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_shared__criterion__service__pb2._MUTATESHAREDCRITERIONRESULT -_MUTATEOPERATIONRESPONSE.fields_by_name['shared_set_result'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_shared__set__service__pb2._MUTATESHAREDSETRESULT -_MUTATEOPERATIONRESPONSE.fields_by_name['user_list_result'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_user__list__service__pb2._MUTATEUSERLISTRESULT -_MUTATEOPERATIONRESPONSE.oneofs_by_name['response'].fields.append( - _MUTATEOPERATIONRESPONSE.fields_by_name['ad_group_ad_label_result']) -_MUTATEOPERATIONRESPONSE.fields_by_name['ad_group_ad_label_result'].containing_oneof = _MUTATEOPERATIONRESPONSE.oneofs_by_name['response'] -_MUTATEOPERATIONRESPONSE.oneofs_by_name['response'].fields.append( - _MUTATEOPERATIONRESPONSE.fields_by_name['ad_group_ad_result']) -_MUTATEOPERATIONRESPONSE.fields_by_name['ad_group_ad_result'].containing_oneof = _MUTATEOPERATIONRESPONSE.oneofs_by_name['response'] -_MUTATEOPERATIONRESPONSE.oneofs_by_name['response'].fields.append( - _MUTATEOPERATIONRESPONSE.fields_by_name['ad_group_bid_modifier_result']) -_MUTATEOPERATIONRESPONSE.fields_by_name['ad_group_bid_modifier_result'].containing_oneof = _MUTATEOPERATIONRESPONSE.oneofs_by_name['response'] -_MUTATEOPERATIONRESPONSE.oneofs_by_name['response'].fields.append( - _MUTATEOPERATIONRESPONSE.fields_by_name['ad_group_criterion_label_result']) -_MUTATEOPERATIONRESPONSE.fields_by_name['ad_group_criterion_label_result'].containing_oneof = _MUTATEOPERATIONRESPONSE.oneofs_by_name['response'] -_MUTATEOPERATIONRESPONSE.oneofs_by_name['response'].fields.append( - _MUTATEOPERATIONRESPONSE.fields_by_name['ad_group_criterion_result']) -_MUTATEOPERATIONRESPONSE.fields_by_name['ad_group_criterion_result'].containing_oneof = _MUTATEOPERATIONRESPONSE.oneofs_by_name['response'] -_MUTATEOPERATIONRESPONSE.oneofs_by_name['response'].fields.append( - _MUTATEOPERATIONRESPONSE.fields_by_name['ad_group_extension_setting_result']) -_MUTATEOPERATIONRESPONSE.fields_by_name['ad_group_extension_setting_result'].containing_oneof = _MUTATEOPERATIONRESPONSE.oneofs_by_name['response'] -_MUTATEOPERATIONRESPONSE.oneofs_by_name['response'].fields.append( - _MUTATEOPERATIONRESPONSE.fields_by_name['ad_group_feed_result']) -_MUTATEOPERATIONRESPONSE.fields_by_name['ad_group_feed_result'].containing_oneof = _MUTATEOPERATIONRESPONSE.oneofs_by_name['response'] -_MUTATEOPERATIONRESPONSE.oneofs_by_name['response'].fields.append( - _MUTATEOPERATIONRESPONSE.fields_by_name['ad_group_label_result']) -_MUTATEOPERATIONRESPONSE.fields_by_name['ad_group_label_result'].containing_oneof = _MUTATEOPERATIONRESPONSE.oneofs_by_name['response'] -_MUTATEOPERATIONRESPONSE.oneofs_by_name['response'].fields.append( - _MUTATEOPERATIONRESPONSE.fields_by_name['ad_group_result']) -_MUTATEOPERATIONRESPONSE.fields_by_name['ad_group_result'].containing_oneof = _MUTATEOPERATIONRESPONSE.oneofs_by_name['response'] -_MUTATEOPERATIONRESPONSE.oneofs_by_name['response'].fields.append( - _MUTATEOPERATIONRESPONSE.fields_by_name['ad_parameter_result']) -_MUTATEOPERATIONRESPONSE.fields_by_name['ad_parameter_result'].containing_oneof = _MUTATEOPERATIONRESPONSE.oneofs_by_name['response'] -_MUTATEOPERATIONRESPONSE.oneofs_by_name['response'].fields.append( - _MUTATEOPERATIONRESPONSE.fields_by_name['asset_result']) -_MUTATEOPERATIONRESPONSE.fields_by_name['asset_result'].containing_oneof = _MUTATEOPERATIONRESPONSE.oneofs_by_name['response'] -_MUTATEOPERATIONRESPONSE.oneofs_by_name['response'].fields.append( - _MUTATEOPERATIONRESPONSE.fields_by_name['bidding_strategy_result']) -_MUTATEOPERATIONRESPONSE.fields_by_name['bidding_strategy_result'].containing_oneof = _MUTATEOPERATIONRESPONSE.oneofs_by_name['response'] -_MUTATEOPERATIONRESPONSE.oneofs_by_name['response'].fields.append( - _MUTATEOPERATIONRESPONSE.fields_by_name['campaign_bid_modifier_result']) -_MUTATEOPERATIONRESPONSE.fields_by_name['campaign_bid_modifier_result'].containing_oneof = _MUTATEOPERATIONRESPONSE.oneofs_by_name['response'] -_MUTATEOPERATIONRESPONSE.oneofs_by_name['response'].fields.append( - _MUTATEOPERATIONRESPONSE.fields_by_name['campaign_budget_result']) -_MUTATEOPERATIONRESPONSE.fields_by_name['campaign_budget_result'].containing_oneof = _MUTATEOPERATIONRESPONSE.oneofs_by_name['response'] -_MUTATEOPERATIONRESPONSE.oneofs_by_name['response'].fields.append( - _MUTATEOPERATIONRESPONSE.fields_by_name['campaign_criterion_result']) -_MUTATEOPERATIONRESPONSE.fields_by_name['campaign_criterion_result'].containing_oneof = _MUTATEOPERATIONRESPONSE.oneofs_by_name['response'] -_MUTATEOPERATIONRESPONSE.oneofs_by_name['response'].fields.append( - _MUTATEOPERATIONRESPONSE.fields_by_name['campaign_draft_result']) -_MUTATEOPERATIONRESPONSE.fields_by_name['campaign_draft_result'].containing_oneof = _MUTATEOPERATIONRESPONSE.oneofs_by_name['response'] -_MUTATEOPERATIONRESPONSE.oneofs_by_name['response'].fields.append( - _MUTATEOPERATIONRESPONSE.fields_by_name['campaign_experiment_result']) -_MUTATEOPERATIONRESPONSE.fields_by_name['campaign_experiment_result'].containing_oneof = _MUTATEOPERATIONRESPONSE.oneofs_by_name['response'] -_MUTATEOPERATIONRESPONSE.oneofs_by_name['response'].fields.append( - _MUTATEOPERATIONRESPONSE.fields_by_name['campaign_extension_setting_result']) -_MUTATEOPERATIONRESPONSE.fields_by_name['campaign_extension_setting_result'].containing_oneof = _MUTATEOPERATIONRESPONSE.oneofs_by_name['response'] -_MUTATEOPERATIONRESPONSE.oneofs_by_name['response'].fields.append( - _MUTATEOPERATIONRESPONSE.fields_by_name['campaign_feed_result']) -_MUTATEOPERATIONRESPONSE.fields_by_name['campaign_feed_result'].containing_oneof = _MUTATEOPERATIONRESPONSE.oneofs_by_name['response'] -_MUTATEOPERATIONRESPONSE.oneofs_by_name['response'].fields.append( - _MUTATEOPERATIONRESPONSE.fields_by_name['campaign_label_result']) -_MUTATEOPERATIONRESPONSE.fields_by_name['campaign_label_result'].containing_oneof = _MUTATEOPERATIONRESPONSE.oneofs_by_name['response'] -_MUTATEOPERATIONRESPONSE.oneofs_by_name['response'].fields.append( - _MUTATEOPERATIONRESPONSE.fields_by_name['campaign_result']) -_MUTATEOPERATIONRESPONSE.fields_by_name['campaign_result'].containing_oneof = _MUTATEOPERATIONRESPONSE.oneofs_by_name['response'] -_MUTATEOPERATIONRESPONSE.oneofs_by_name['response'].fields.append( - _MUTATEOPERATIONRESPONSE.fields_by_name['campaign_shared_set_result']) -_MUTATEOPERATIONRESPONSE.fields_by_name['campaign_shared_set_result'].containing_oneof = _MUTATEOPERATIONRESPONSE.oneofs_by_name['response'] -_MUTATEOPERATIONRESPONSE.oneofs_by_name['response'].fields.append( - _MUTATEOPERATIONRESPONSE.fields_by_name['conversion_action_result']) -_MUTATEOPERATIONRESPONSE.fields_by_name['conversion_action_result'].containing_oneof = _MUTATEOPERATIONRESPONSE.oneofs_by_name['response'] -_MUTATEOPERATIONRESPONSE.oneofs_by_name['response'].fields.append( - _MUTATEOPERATIONRESPONSE.fields_by_name['customer_extension_setting_result']) -_MUTATEOPERATIONRESPONSE.fields_by_name['customer_extension_setting_result'].containing_oneof = _MUTATEOPERATIONRESPONSE.oneofs_by_name['response'] -_MUTATEOPERATIONRESPONSE.oneofs_by_name['response'].fields.append( - _MUTATEOPERATIONRESPONSE.fields_by_name['customer_feed_result']) -_MUTATEOPERATIONRESPONSE.fields_by_name['customer_feed_result'].containing_oneof = _MUTATEOPERATIONRESPONSE.oneofs_by_name['response'] -_MUTATEOPERATIONRESPONSE.oneofs_by_name['response'].fields.append( - _MUTATEOPERATIONRESPONSE.fields_by_name['customer_label_result']) -_MUTATEOPERATIONRESPONSE.fields_by_name['customer_label_result'].containing_oneof = _MUTATEOPERATIONRESPONSE.oneofs_by_name['response'] -_MUTATEOPERATIONRESPONSE.oneofs_by_name['response'].fields.append( - _MUTATEOPERATIONRESPONSE.fields_by_name['customer_negative_criterion_result']) -_MUTATEOPERATIONRESPONSE.fields_by_name['customer_negative_criterion_result'].containing_oneof = _MUTATEOPERATIONRESPONSE.oneofs_by_name['response'] -_MUTATEOPERATIONRESPONSE.oneofs_by_name['response'].fields.append( - _MUTATEOPERATIONRESPONSE.fields_by_name['customer_result']) -_MUTATEOPERATIONRESPONSE.fields_by_name['customer_result'].containing_oneof = _MUTATEOPERATIONRESPONSE.oneofs_by_name['response'] -_MUTATEOPERATIONRESPONSE.oneofs_by_name['response'].fields.append( - _MUTATEOPERATIONRESPONSE.fields_by_name['extension_feed_item_result']) -_MUTATEOPERATIONRESPONSE.fields_by_name['extension_feed_item_result'].containing_oneof = _MUTATEOPERATIONRESPONSE.oneofs_by_name['response'] -_MUTATEOPERATIONRESPONSE.oneofs_by_name['response'].fields.append( - _MUTATEOPERATIONRESPONSE.fields_by_name['feed_item_result']) -_MUTATEOPERATIONRESPONSE.fields_by_name['feed_item_result'].containing_oneof = _MUTATEOPERATIONRESPONSE.oneofs_by_name['response'] -_MUTATEOPERATIONRESPONSE.oneofs_by_name['response'].fields.append( - _MUTATEOPERATIONRESPONSE.fields_by_name['feed_item_target_result']) -_MUTATEOPERATIONRESPONSE.fields_by_name['feed_item_target_result'].containing_oneof = _MUTATEOPERATIONRESPONSE.oneofs_by_name['response'] -_MUTATEOPERATIONRESPONSE.oneofs_by_name['response'].fields.append( - _MUTATEOPERATIONRESPONSE.fields_by_name['feed_mapping_result']) -_MUTATEOPERATIONRESPONSE.fields_by_name['feed_mapping_result'].containing_oneof = _MUTATEOPERATIONRESPONSE.oneofs_by_name['response'] -_MUTATEOPERATIONRESPONSE.oneofs_by_name['response'].fields.append( - _MUTATEOPERATIONRESPONSE.fields_by_name['feed_result']) -_MUTATEOPERATIONRESPONSE.fields_by_name['feed_result'].containing_oneof = _MUTATEOPERATIONRESPONSE.oneofs_by_name['response'] -_MUTATEOPERATIONRESPONSE.oneofs_by_name['response'].fields.append( - _MUTATEOPERATIONRESPONSE.fields_by_name['label_result']) -_MUTATEOPERATIONRESPONSE.fields_by_name['label_result'].containing_oneof = _MUTATEOPERATIONRESPONSE.oneofs_by_name['response'] -_MUTATEOPERATIONRESPONSE.oneofs_by_name['response'].fields.append( - _MUTATEOPERATIONRESPONSE.fields_by_name['media_file_result']) -_MUTATEOPERATIONRESPONSE.fields_by_name['media_file_result'].containing_oneof = _MUTATEOPERATIONRESPONSE.oneofs_by_name['response'] -_MUTATEOPERATIONRESPONSE.oneofs_by_name['response'].fields.append( - _MUTATEOPERATIONRESPONSE.fields_by_name['remarketing_action_result']) -_MUTATEOPERATIONRESPONSE.fields_by_name['remarketing_action_result'].containing_oneof = _MUTATEOPERATIONRESPONSE.oneofs_by_name['response'] -_MUTATEOPERATIONRESPONSE.oneofs_by_name['response'].fields.append( - _MUTATEOPERATIONRESPONSE.fields_by_name['shared_criterion_result']) -_MUTATEOPERATIONRESPONSE.fields_by_name['shared_criterion_result'].containing_oneof = _MUTATEOPERATIONRESPONSE.oneofs_by_name['response'] -_MUTATEOPERATIONRESPONSE.oneofs_by_name['response'].fields.append( - _MUTATEOPERATIONRESPONSE.fields_by_name['shared_set_result']) -_MUTATEOPERATIONRESPONSE.fields_by_name['shared_set_result'].containing_oneof = _MUTATEOPERATIONRESPONSE.oneofs_by_name['response'] -_MUTATEOPERATIONRESPONSE.oneofs_by_name['response'].fields.append( - _MUTATEOPERATIONRESPONSE.fields_by_name['user_list_result']) -_MUTATEOPERATIONRESPONSE.fields_by_name['user_list_result'].containing_oneof = _MUTATEOPERATIONRESPONSE.oneofs_by_name['response'] -DESCRIPTOR.message_types_by_name['SearchGoogleAdsRequest'] = _SEARCHGOOGLEADSREQUEST -DESCRIPTOR.message_types_by_name['SearchGoogleAdsResponse'] = _SEARCHGOOGLEADSRESPONSE -DESCRIPTOR.message_types_by_name['GoogleAdsRow'] = _GOOGLEADSROW -DESCRIPTOR.message_types_by_name['MutateGoogleAdsRequest'] = _MUTATEGOOGLEADSREQUEST -DESCRIPTOR.message_types_by_name['MutateGoogleAdsResponse'] = _MUTATEGOOGLEADSRESPONSE -DESCRIPTOR.message_types_by_name['MutateOperation'] = _MUTATEOPERATION -DESCRIPTOR.message_types_by_name['MutateOperationResponse'] = _MUTATEOPERATIONRESPONSE -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -SearchGoogleAdsRequest = _reflection.GeneratedProtocolMessageType('SearchGoogleAdsRequest', (_message.Message,), dict( - DESCRIPTOR = _SEARCHGOOGLEADSREQUEST, - __module__ = 'google.ads.googleads_v1.proto.services.google_ads_service_pb2' - , - __doc__ = """Request message for - [GoogleAdsService.Search][google.ads.googleads.v1.services.GoogleAdsService.Search]. - - - Attributes: - customer_id: - The ID of the customer being queried. - query: - The query string. - page_token: - Token of the page to retrieve. If not specified, the first - page of results will be returned. Use the value obtained from - ``next_page_token`` in the previous response in order to - request the next page of results. - page_size: - Number of elements to retrieve in a single page. When too - large a page is requested, the server may decide to further - limit the number of returned resources. - validate_only: - If true, the request is validated but not executed. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.SearchGoogleAdsRequest) - )) -_sym_db.RegisterMessage(SearchGoogleAdsRequest) - -SearchGoogleAdsResponse = _reflection.GeneratedProtocolMessageType('SearchGoogleAdsResponse', (_message.Message,), dict( - DESCRIPTOR = _SEARCHGOOGLEADSRESPONSE, - __module__ = 'google.ads.googleads_v1.proto.services.google_ads_service_pb2' - , - __doc__ = """Response message for - [GoogleAdsService.Search][google.ads.googleads.v1.services.GoogleAdsService.Search]. - - - Attributes: - results: - The list of rows that matched the query. - next_page_token: - Pagination token used to retrieve the next page of results. - Pass the content of this string as the ``page_token`` - attribute of the next request. ``next_page_token`` is not - returned for the last page. - total_results_count: - Total number of results that match the query ignoring the - LIMIT clause. - field_mask: - FieldMask that represents what fields were requested by the - user. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.SearchGoogleAdsResponse) - )) -_sym_db.RegisterMessage(SearchGoogleAdsResponse) - -GoogleAdsRow = _reflection.GeneratedProtocolMessageType('GoogleAdsRow', (_message.Message,), dict( - DESCRIPTOR = _GOOGLEADSROW, - __module__ = 'google.ads.googleads_v1.proto.services.google_ads_service_pb2' - , - __doc__ = """A returned row from the query. - - - Attributes: - account_budget: - The account budget in the query. - account_budget_proposal: - The account budget proposal referenced in the query. - ad_group: - The ad group referenced in the query. - ad_group_ad: - The ad referenced in the query. - ad_group_ad_label: - The ad group ad label referenced in the query. - ad_group_audience_view: - The ad group audience view referenced in the query. - ad_group_bid_modifier: - The bid modifier referenced in the query. - ad_group_criterion: - The criterion referenced in the query. - ad_group_criterion_label: - The ad group criterion label referenced in the query. - ad_group_criterion_simulation: - The ad group criterion simulation referenced in the query. - ad_group_extension_setting: - The ad group extension setting referenced in the query. - ad_group_feed: - The ad group feed referenced in the query. - ad_group_label: - The ad group label referenced in the query. - ad_group_simulation: - The ad group simulation referenced in the query. - ad_parameter: - The ad parameter referenced in the query. - age_range_view: - The age range view referenced in the query. - ad_schedule_view: - The ad schedule view referenced in the query. - domain_category: - The domain category referenced in the query. - asset: - The asset referenced in the query. - bidding_strategy: - The bidding strategy referenced in the query. - billing_setup: - The billing setup referenced in the query. - campaign_budget: - The campaign budget referenced in the query. - campaign: - The campaign referenced in the query. - campaign_audience_view: - The campaign audience view referenced in the query. - campaign_bid_modifier: - The campaign bid modifier referenced in the query. - campaign_criterion: - The campaign criterion referenced in the query. - campaign_criterion_simulation: - The campaign criterion simulation referenced in the query. - campaign_draft: - The campaign draft referenced in the query. - campaign_experiment: - The campaign experiment referenced in the query. - campaign_extension_setting: - The campaign extension setting referenced in the query. - campaign_feed: - The campaign feed referenced in the query. - campaign_label: - The campaign label referenced in the query. - campaign_shared_set: - Campaign Shared Set referenced in AWQL query. - carrier_constant: - The carrier constant referenced in the query. - change_status: - The ChangeStatus referenced in the query. - conversion_action: - The conversion action referenced in the query. - click_view: - The ClickView referenced in the query. - custom_interest: - The CustomInterest referenced in the query. - customer: - The customer referenced in the query. - customer_manager_link: - The CustomerManagerLink referenced in the query. - customer_client_link: - The CustomerClientLink referenced in the query. - customer_client: - The CustomerClient referenced in the query. - customer_extension_setting: - The customer extension setting referenced in the query. - customer_feed: - The customer feed referenced in the query. - customer_label: - The customer label referenced in the query. - customer_negative_criterion: - The customer negative criterion referenced in the query. - detail_placement_view: - The detail placement view referenced in the query. - display_keyword_view: - The display keyword view referenced in the query. - dynamic_search_ads_search_term_view: - The dynamic search ads search term view referenced in the - query. - expanded_landing_page_view: - The expanded landing page view referenced in the query. - extension_feed_item: - The extension feed item referenced in the query. - feed: - The feed referenced in the query. - feed_item: - The feed item referenced in the query. - feed_item_target: - The feed item target referenced in the query. - feed_mapping: - The feed mapping referenced in the query. - feed_placeholder_view: - The feed placeholder view referenced in the query. - gender_view: - The gender view referenced in the query. - geo_target_constant: - The geo target constant referenced in the query. - geographic_view: - The geographic view referenced in the query. - group_placement_view: - The group placement view referenced in the query. - hotel_group_view: - The hotel group view referenced in the query. - hotel_performance_view: - The hotel performance view referenced in the query. - keyword_view: - The keyword view referenced in the query. - keyword_plan: - The keyword plan referenced in the query. - keyword_plan_campaign: - The keyword plan campaign referenced in the query. - keyword_plan_negative_keyword: - The keyword plan negative keyword referenced in the query. - keyword_plan_ad_group: - The keyword plan ad group referenced in the query. - keyword_plan_keyword: - The keyword plan keyword referenced in the query. - label: - The label referenced in the query. - landing_page_view: - The landing page view referenced in the query. - language_constant: - The language constant referenced in the query. - location_view: - The location view referenced in the query. - managed_placement_view: - The managed placement view referenced in the query. - media_file: - The media file referenced in the query. - mobile_app_category_constant: - The mobile app category constant referenced in the query. - mobile_device_constant: - The mobile device constant referenced in the query. - mutate_job: - The mutate job referenced in the query. - operating_system_version_constant: - The operating system version constant referenced in the query. - paid_organic_search_term_view: - The paid organic search term view referenced in the query. - parental_status_view: - The parental status view referenced in the query. - product_bidding_category_constant: - The Product Bidding Category referenced in the query. - product_group_view: - The product group view referenced in the query. - recommendation: - The recommendation referenced in the query. - search_term_view: - The search term view referenced in the query. - shared_criterion: - The shared set referenced in the query. - shared_set: - The shared set referenced in the query. - shopping_performance_view: - The shopping performance view referenced in the query. - topic_view: - The topic view referenced in the query. - user_interest: - The user interest referenced in the query. - user_list: - The user list referenced in the query. - remarketing_action: - The remarketing action referenced in the query. - topic_constant: - The topic constant referenced in the query. - video: - The video referenced in the query. - metrics: - The metrics. - segments: - The segments. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.GoogleAdsRow) - )) -_sym_db.RegisterMessage(GoogleAdsRow) - -MutateGoogleAdsRequest = _reflection.GeneratedProtocolMessageType('MutateGoogleAdsRequest', (_message.Message,), dict( - DESCRIPTOR = _MUTATEGOOGLEADSREQUEST, - __module__ = 'google.ads.googleads_v1.proto.services.google_ads_service_pb2' - , - __doc__ = """Request message for - [GoogleAdsService.Mutate][google.ads.googleads.v1.services.GoogleAdsService.Mutate]. - - - Attributes: - customer_id: - The ID of the customer whose resources are being modified. - mutate_operations: - The list of operations to perform on individual resources. - partial_failure: - If true, successful operations will be carried out and invalid - operations will return errors. If false, all operations will - be carried out in one transaction if and only if they are all - valid. Default is false. - validate_only: - If true, the request is validated but not executed. Only - errors are returned, not results. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.MutateGoogleAdsRequest) - )) -_sym_db.RegisterMessage(MutateGoogleAdsRequest) - -MutateGoogleAdsResponse = _reflection.GeneratedProtocolMessageType('MutateGoogleAdsResponse', (_message.Message,), dict( - DESCRIPTOR = _MUTATEGOOGLEADSRESPONSE, - __module__ = 'google.ads.googleads_v1.proto.services.google_ads_service_pb2' - , - __doc__ = """Response message for - [GoogleAdsService.Mutate][google.ads.googleads.v1.services.GoogleAdsService.Mutate]. - - - Attributes: - partial_failure_error: - Errors that pertain to operation failures in the partial - failure mode. Returned only when partial\_failure = true and - all errors occur inside the operations. If any errors occur - outside the operations (e.g. auth errors), we return an RPC - level error. - mutate_operation_responses: - All responses for the mutate. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.MutateGoogleAdsResponse) - )) -_sym_db.RegisterMessage(MutateGoogleAdsResponse) - -MutateOperation = _reflection.GeneratedProtocolMessageType('MutateOperation', (_message.Message,), dict( - DESCRIPTOR = _MUTATEOPERATION, - __module__ = 'google.ads.googleads_v1.proto.services.google_ads_service_pb2' - , - __doc__ = """A single operation (create, update, remove) on a resource. - - - Attributes: - operation: - The mutate operation. - ad_group_ad_label_operation: - An ad group ad label mutate operation. - ad_group_ad_operation: - An ad group ad mutate operation. - ad_group_bid_modifier_operation: - An ad group bid modifier mutate operation. - ad_group_criterion_label_operation: - An ad group criterion label mutate operation. - ad_group_criterion_operation: - An ad group criterion mutate operation. - ad_group_extension_setting_operation: - An ad group extension setting mutate operation. - ad_group_feed_operation: - An ad group feed mutate operation. - ad_group_label_operation: - An ad group label mutate operation. - ad_group_operation: - An ad group mutate operation. - ad_parameter_operation: - An ad parameter mutate operation. - asset_operation: - An asset mutate operation. - bidding_strategy_operation: - A bidding strategy mutate operation. - campaign_bid_modifier_operation: - A campaign bid modifier mutate operation. - campaign_budget_operation: - A campaign budget mutate operation. - campaign_criterion_operation: - A campaign criterion mutate operation. - campaign_draft_operation: - A campaign draft mutate operation. - campaign_experiment_operation: - A campaign experiment mutate operation. - campaign_extension_setting_operation: - A campaign extension setting mutate operation. - campaign_feed_operation: - A campaign feed mutate operation. - campaign_label_operation: - A campaign label mutate operation. - campaign_operation: - A campaign mutate operation. - campaign_shared_set_operation: - A campaign shared set mutate operation. - conversion_action_operation: - A conversion action mutate operation. - customer_extension_setting_operation: - A customer extension setting mutate operation. - customer_feed_operation: - A customer feed mutate operation. - customer_label_operation: - A customer label mutate operation. - customer_negative_criterion_operation: - A customer negative criterion mutate operation. - customer_operation: - A customer mutate operation. - extension_feed_item_operation: - An extension feed item mutate operation. - feed_item_operation: - A feed item mutate operation. - feed_item_target_operation: - A feed item target mutate operation. - feed_mapping_operation: - A feed mapping mutate operation. - feed_operation: - A feed mutate operation. - label_operation: - A label mutate operation. - media_file_operation: - A media file mutate operation. - remarketing_action_operation: - A remarketing action mutate operation. - shared_criterion_operation: - A shared criterion mutate operation. - shared_set_operation: - A shared set mutate operation. - user_list_operation: - A user list mutate operation. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.MutateOperation) - )) -_sym_db.RegisterMessage(MutateOperation) - -MutateOperationResponse = _reflection.GeneratedProtocolMessageType('MutateOperationResponse', (_message.Message,), dict( - DESCRIPTOR = _MUTATEOPERATIONRESPONSE, - __module__ = 'google.ads.googleads_v1.proto.services.google_ads_service_pb2' - , - __doc__ = """Response message for the resource mutate. - - - Attributes: - response: - The mutate response - ad_group_ad_label_result: - The result for the ad group ad label mutate. - ad_group_ad_result: - The result for the ad group ad mutate. - ad_group_bid_modifier_result: - The result for the ad group bid modifier mutate. - ad_group_criterion_label_result: - The result for the ad group criterion label mutate. - ad_group_criterion_result: - The result for the ad group criterion mutate. - ad_group_extension_setting_result: - The result for the ad group extension setting mutate. - ad_group_feed_result: - The result for the ad group feed mutate. - ad_group_label_result: - The result for the ad group label mutate. - ad_group_result: - The result for the ad group mutate. - ad_parameter_result: - The result for the ad parameter mutate. - asset_result: - The result for the asset mutate. - bidding_strategy_result: - The result for the bidding strategy mutate. - campaign_bid_modifier_result: - The result for the campaign bid modifier mutate. - campaign_budget_result: - The result for the campaign budget mutate. - campaign_criterion_result: - The result for the campaign criterion mutate. - campaign_draft_result: - The result for the campaign draft mutate. - campaign_experiment_result: - The result for the campaign experiment mutate. - campaign_extension_setting_result: - The result for the campaign extension setting mutate. - campaign_feed_result: - The result for the campaign feed mutate. - campaign_label_result: - The result for the campaign label mutate. - campaign_result: - The result for the campaign mutate. - campaign_shared_set_result: - The result for the campaign shared set mutate. - conversion_action_result: - The result for the conversion action mutate. - customer_extension_setting_result: - The result for the customer extension setting mutate. - customer_feed_result: - The result for the customer feed mutate. - customer_label_result: - The result for the customer label mutate. - customer_negative_criterion_result: - The result for the customer negative criterion mutate. - customer_result: - The result for the customer mutate. - extension_feed_item_result: - The result for the extension feed item mutate. - feed_item_result: - The result for the feed item mutate. - feed_item_target_result: - The result for the feed item target mutate. - feed_mapping_result: - The result for the feed mapping mutate. - feed_result: - The result for the feed mutate. - label_result: - The result for the label mutate. - media_file_result: - The result for the media file mutate. - remarketing_action_result: - The result for the remarketing action mutate. - shared_criterion_result: - The result for the shared criterion mutate. - shared_set_result: - The result for the shared set mutate. - user_list_result: - The result for the user list mutate. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.MutateOperationResponse) - )) -_sym_db.RegisterMessage(MutateOperationResponse) - - -DESCRIPTOR._options = None - -_GOOGLEADSSERVICE = _descriptor.ServiceDescriptor( - name='GoogleAdsService', - full_name='google.ads.googleads.v1.services.GoogleAdsService', - file=DESCRIPTOR, - index=0, - serialized_options=None, - serialized_start=24879, - serialized_end=25271, - methods=[ - _descriptor.MethodDescriptor( - name='Search', - full_name='google.ads.googleads.v1.services.GoogleAdsService.Search', - index=0, - containing_service=None, - input_type=_SEARCHGOOGLEADSREQUEST, - output_type=_SEARCHGOOGLEADSRESPONSE, - serialized_options=_b('\202\323\344\223\0023\"./v1/customers/{customer_id=*}/googleAds:search:\001*'), - ), - _descriptor.MethodDescriptor( - name='Mutate', - full_name='google.ads.googleads.v1.services.GoogleAdsService.Mutate', - index=1, - containing_service=None, - input_type=_MUTATEGOOGLEADSREQUEST, - output_type=_MUTATEGOOGLEADSRESPONSE, - serialized_options=_b('\202\323\344\223\0023\"./v1/customers/{customer_id=*}/googleAds:mutate:\001*'), - ), -]) -_sym_db.RegisterServiceDescriptor(_GOOGLEADSSERVICE) - -DESCRIPTOR.services_by_name['GoogleAdsService'] = _GOOGLEADSSERVICE - -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/services/google_ads_service_pb2_grpc.py b/google/ads/google_ads/v1/proto/services/google_ads_service_pb2_grpc.py deleted file mode 100644 index 7d77f2e70..000000000 --- a/google/ads/google_ads/v1/proto/services/google_ads_service_pb2_grpc.py +++ /dev/null @@ -1,115 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -import grpc - -from google.ads.google_ads.v1.proto.services import google_ads_service_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_google__ads__service__pb2 - - -class GoogleAdsServiceStub(object): - """Proto file describing the GoogleAdsService. - - Service to fetch data and metrics across resources. - """ - - def __init__(self, channel): - """Constructor. - - Args: - channel: A grpc.Channel. - """ - self.Search = channel.unary_unary( - '/google.ads.googleads.v1.services.GoogleAdsService/Search', - request_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_google__ads__service__pb2.SearchGoogleAdsRequest.SerializeToString, - response_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_google__ads__service__pb2.SearchGoogleAdsResponse.FromString, - ) - self.Mutate = channel.unary_unary( - '/google.ads.googleads.v1.services.GoogleAdsService/Mutate', - request_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_google__ads__service__pb2.MutateGoogleAdsRequest.SerializeToString, - response_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_google__ads__service__pb2.MutateGoogleAdsResponse.FromString, - ) - - -class GoogleAdsServiceServicer(object): - """Proto file describing the GoogleAdsService. - - Service to fetch data and metrics across resources. - """ - - def Search(self, request, context): - """Returns all rows that match the search query. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def Mutate(self, request, context): - """Creates, updates, or removes resources. This method supports atomic - transactions with multiple types of resources. For example, you can - atomically create a campaign and a campaign budget, or perform up to - thousands of mutates atomically. - - This method is essentially a wrapper around a series of mutate methods. The - only features it offers over calling those methods directly are: - - Atomic transactions - - Temp resource names (described below) - - Somewhat reduced latency over making a series of mutate calls. - - Note: Only resources that support atomic transactions are included, so this - method can't replace all calls to individual services. - - ## Atomic Transaction Benefits - - Atomicity makes error handling much easier. If you're making a series of - changes and one fails, it can leave your account in an inconsistent state. - With atomicity, you either reach the desired state directly, or the request - fails and you can retry. - - ## Temp Resource Names - - Temp resource names are a special type of resource name used to create a - resource and reference that resource in the same request. For example, if a - campaign budget is created with 'resource_name' equal to - 'customers/123/campaignBudgets/-1', that resource name can be reused in - the 'Campaign.budget' field in the same request. That way, the two - resources are created and linked atomically. - - To create a temp resource name, put a negative number in the part of the - name that the server would normally allocate. - - Note: - - Resources must be created with a temp name before the name can be reused. - For example, the previous CampaignBudget+Campaign example would fail if - the mutate order was reversed. - - Temp names are not remembered across requests. - - There's no limit to the number of temp names in a request. - - Each temp name must use a unique negative number, even if the resource - types differ. - - ## Latency - - It's important to group mutates by resource type or the request may time - out and fail. Latency is roughly equal to a series of calls to individual - mutate methods, where each change in resource type is a new call. For - example, mutating 10 campaigns then 10 ad groups is like 2 calls, while - mutating 1 campaign, 1 ad group, 1 campaign, 1 ad group is like 4 calls. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - -def add_GoogleAdsServiceServicer_to_server(servicer, server): - rpc_method_handlers = { - 'Search': grpc.unary_unary_rpc_method_handler( - servicer.Search, - request_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_google__ads__service__pb2.SearchGoogleAdsRequest.FromString, - response_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_google__ads__service__pb2.SearchGoogleAdsResponse.SerializeToString, - ), - 'Mutate': grpc.unary_unary_rpc_method_handler( - servicer.Mutate, - request_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_google__ads__service__pb2.MutateGoogleAdsRequest.FromString, - response_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_google__ads__service__pb2.MutateGoogleAdsResponse.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'google.ads.googleads.v1.services.GoogleAdsService', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) diff --git a/google/ads/google_ads/v1/proto/services/group_placement_view_service_pb2.py b/google/ads/google_ads/v1/proto/services/group_placement_view_service_pb2.py deleted file mode 100644 index 74b6b8ceb..000000000 --- a/google/ads/google_ads/v1/proto/services/group_placement_view_service_pb2.py +++ /dev/null @@ -1,107 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/services/group_placement_view_service.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.ads.google_ads.v1.proto.resources import group_placement_view_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_group__placement__view__pb2 -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/services/group_placement_view_service.proto', - package='google.ads.googleads.v1.services', - syntax='proto3', - serialized_options=_b('\n$com.google.ads.googleads.v1.servicesB\036GroupPlacementViewServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v1/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V1.Services\312\002 Google\\Ads\\GoogleAds\\V1\\Services\352\002$Google::Ads::GoogleAds::V1::Services'), - serialized_pb=_b('\nIgoogle/ads/googleads_v1/proto/services/group_placement_view_service.proto\x12 google.ads.googleads.v1.services\x1a\x42google/ads/googleads_v1/proto/resources/group_placement_view.proto\x1a\x1cgoogle/api/annotations.proto\"5\n\x1cGetGroupPlacementViewRequest\x12\x15\n\rresource_name\x18\x01 \x01(\t2\xeb\x01\n\x19GroupPlacementViewService\x12\xcd\x01\n\x15GetGroupPlacementView\x12>.google.ads.googleads.v1.services.GetGroupPlacementViewRequest\x1a\x35.google.ads.googleads.v1.resources.GroupPlacementView\"=\x82\xd3\xe4\x93\x02\x37\x12\x35/v1/{resource_name=customers/*/groupPlacementViews/*}B\x85\x02\n$com.google.ads.googleads.v1.servicesB\x1eGroupPlacementViewServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v1/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V1.Services\xca\x02 Google\\Ads\\GoogleAds\\V1\\Services\xea\x02$Google::Ads::GoogleAds::V1::Servicesb\x06proto3') - , - dependencies=[google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_group__placement__view__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - - -_GETGROUPPLACEMENTVIEWREQUEST = _descriptor.Descriptor( - name='GetGroupPlacementViewRequest', - full_name='google.ads.googleads.v1.services.GetGroupPlacementViewRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.services.GetGroupPlacementViewRequest.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=209, - serialized_end=262, -) - -DESCRIPTOR.message_types_by_name['GetGroupPlacementViewRequest'] = _GETGROUPPLACEMENTVIEWREQUEST -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -GetGroupPlacementViewRequest = _reflection.GeneratedProtocolMessageType('GetGroupPlacementViewRequest', (_message.Message,), dict( - DESCRIPTOR = _GETGROUPPLACEMENTVIEWREQUEST, - __module__ = 'google.ads.googleads_v1.proto.services.group_placement_view_service_pb2' - , - __doc__ = """Request message for - [GroupPlacementViewService.GetGroupPlacementView][google.ads.googleads.v1.services.GroupPlacementViewService.GetGroupPlacementView]. - - - Attributes: - resource_name: - The resource name of the Group Placement view to fetch. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.GetGroupPlacementViewRequest) - )) -_sym_db.RegisterMessage(GetGroupPlacementViewRequest) - - -DESCRIPTOR._options = None - -_GROUPPLACEMENTVIEWSERVICE = _descriptor.ServiceDescriptor( - name='GroupPlacementViewService', - full_name='google.ads.googleads.v1.services.GroupPlacementViewService', - file=DESCRIPTOR, - index=0, - serialized_options=None, - serialized_start=265, - serialized_end=500, - methods=[ - _descriptor.MethodDescriptor( - name='GetGroupPlacementView', - full_name='google.ads.googleads.v1.services.GroupPlacementViewService.GetGroupPlacementView', - index=0, - containing_service=None, - input_type=_GETGROUPPLACEMENTVIEWREQUEST, - output_type=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_group__placement__view__pb2._GROUPPLACEMENTVIEW, - serialized_options=_b('\202\323\344\223\0027\0225/v1/{resource_name=customers/*/groupPlacementViews/*}'), - ), -]) -_sym_db.RegisterServiceDescriptor(_GROUPPLACEMENTVIEWSERVICE) - -DESCRIPTOR.services_by_name['GroupPlacementViewService'] = _GROUPPLACEMENTVIEWSERVICE - -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/services/group_placement_view_service_pb2_grpc.py b/google/ads/google_ads/v1/proto/services/group_placement_view_service_pb2_grpc.py deleted file mode 100644 index 2978f83a9..000000000 --- a/google/ads/google_ads/v1/proto/services/group_placement_view_service_pb2_grpc.py +++ /dev/null @@ -1,51 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -import grpc - -from google.ads.google_ads.v1.proto.resources import group_placement_view_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_group__placement__view__pb2 -from google.ads.google_ads.v1.proto.services import group_placement_view_service_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_group__placement__view__service__pb2 - - -class GroupPlacementViewServiceStub(object): - """Proto file describing the Group Placement View service. - - Service to fetch Group Placement views. - """ - - def __init__(self, channel): - """Constructor. - - Args: - channel: A grpc.Channel. - """ - self.GetGroupPlacementView = channel.unary_unary( - '/google.ads.googleads.v1.services.GroupPlacementViewService/GetGroupPlacementView', - request_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_group__placement__view__service__pb2.GetGroupPlacementViewRequest.SerializeToString, - response_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_group__placement__view__pb2.GroupPlacementView.FromString, - ) - - -class GroupPlacementViewServiceServicer(object): - """Proto file describing the Group Placement View service. - - Service to fetch Group Placement views. - """ - - def GetGroupPlacementView(self, request, context): - """Returns the requested Group Placement view in full detail. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - -def add_GroupPlacementViewServiceServicer_to_server(servicer, server): - rpc_method_handlers = { - 'GetGroupPlacementView': grpc.unary_unary_rpc_method_handler( - servicer.GetGroupPlacementView, - request_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_group__placement__view__service__pb2.GetGroupPlacementViewRequest.FromString, - response_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_group__placement__view__pb2.GroupPlacementView.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'google.ads.googleads.v1.services.GroupPlacementViewService', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) diff --git a/google/ads/google_ads/v1/proto/services/hotel_group_view_service_pb2.py b/google/ads/google_ads/v1/proto/services/hotel_group_view_service_pb2.py deleted file mode 100644 index 8951ff732..000000000 --- a/google/ads/google_ads/v1/proto/services/hotel_group_view_service_pb2.py +++ /dev/null @@ -1,107 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/services/hotel_group_view_service.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.ads.google_ads.v1.proto.resources import hotel_group_view_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_hotel__group__view__pb2 -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/services/hotel_group_view_service.proto', - package='google.ads.googleads.v1.services', - syntax='proto3', - serialized_options=_b('\n$com.google.ads.googleads.v1.servicesB\032HotelGroupViewServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v1/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V1.Services\312\002 Google\\Ads\\GoogleAds\\V1\\Services\352\002$Google::Ads::GoogleAds::V1::Services'), - serialized_pb=_b('\nEgoogle/ads/googleads_v1/proto/services/hotel_group_view_service.proto\x12 google.ads.googleads.v1.services\x1a>google/ads/googleads_v1/proto/resources/hotel_group_view.proto\x1a\x1cgoogle/api/annotations.proto\"1\n\x18GetHotelGroupViewRequest\x12\x15\n\rresource_name\x18\x01 \x01(\t2\xd7\x01\n\x15HotelGroupViewService\x12\xbd\x01\n\x11GetHotelGroupView\x12:.google.ads.googleads.v1.services.GetHotelGroupViewRequest\x1a\x31.google.ads.googleads.v1.resources.HotelGroupView\"9\x82\xd3\xe4\x93\x02\x33\x12\x31/v1/{resource_name=customers/*/hotelGroupViews/*}B\x81\x02\n$com.google.ads.googleads.v1.servicesB\x1aHotelGroupViewServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v1/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V1.Services\xca\x02 Google\\Ads\\GoogleAds\\V1\\Services\xea\x02$Google::Ads::GoogleAds::V1::Servicesb\x06proto3') - , - dependencies=[google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_hotel__group__view__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - - -_GETHOTELGROUPVIEWREQUEST = _descriptor.Descriptor( - name='GetHotelGroupViewRequest', - full_name='google.ads.googleads.v1.services.GetHotelGroupViewRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.services.GetHotelGroupViewRequest.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=201, - serialized_end=250, -) - -DESCRIPTOR.message_types_by_name['GetHotelGroupViewRequest'] = _GETHOTELGROUPVIEWREQUEST -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -GetHotelGroupViewRequest = _reflection.GeneratedProtocolMessageType('GetHotelGroupViewRequest', (_message.Message,), dict( - DESCRIPTOR = _GETHOTELGROUPVIEWREQUEST, - __module__ = 'google.ads.googleads_v1.proto.services.hotel_group_view_service_pb2' - , - __doc__ = """Request message for - [HotelGroupViewService.GetHotelGroupView][google.ads.googleads.v1.services.HotelGroupViewService.GetHotelGroupView]. - - - Attributes: - resource_name: - Resource name of the Hotel Group View to fetch. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.GetHotelGroupViewRequest) - )) -_sym_db.RegisterMessage(GetHotelGroupViewRequest) - - -DESCRIPTOR._options = None - -_HOTELGROUPVIEWSERVICE = _descriptor.ServiceDescriptor( - name='HotelGroupViewService', - full_name='google.ads.googleads.v1.services.HotelGroupViewService', - file=DESCRIPTOR, - index=0, - serialized_options=None, - serialized_start=253, - serialized_end=468, - methods=[ - _descriptor.MethodDescriptor( - name='GetHotelGroupView', - full_name='google.ads.googleads.v1.services.HotelGroupViewService.GetHotelGroupView', - index=0, - containing_service=None, - input_type=_GETHOTELGROUPVIEWREQUEST, - output_type=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_hotel__group__view__pb2._HOTELGROUPVIEW, - serialized_options=_b('\202\323\344\223\0023\0221/v1/{resource_name=customers/*/hotelGroupViews/*}'), - ), -]) -_sym_db.RegisterServiceDescriptor(_HOTELGROUPVIEWSERVICE) - -DESCRIPTOR.services_by_name['HotelGroupViewService'] = _HOTELGROUPVIEWSERVICE - -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/services/hotel_group_view_service_pb2_grpc.py b/google/ads/google_ads/v1/proto/services/hotel_group_view_service_pb2_grpc.py deleted file mode 100644 index 46ee02323..000000000 --- a/google/ads/google_ads/v1/proto/services/hotel_group_view_service_pb2_grpc.py +++ /dev/null @@ -1,51 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -import grpc - -from google.ads.google_ads.v1.proto.resources import hotel_group_view_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_hotel__group__view__pb2 -from google.ads.google_ads.v1.proto.services import hotel_group_view_service_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_hotel__group__view__service__pb2 - - -class HotelGroupViewServiceStub(object): - """Proto file describing the Hotel Group View Service. - - Service to manage Hotel Group Views. - """ - - def __init__(self, channel): - """Constructor. - - Args: - channel: A grpc.Channel. - """ - self.GetHotelGroupView = channel.unary_unary( - '/google.ads.googleads.v1.services.HotelGroupViewService/GetHotelGroupView', - request_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_hotel__group__view__service__pb2.GetHotelGroupViewRequest.SerializeToString, - response_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_hotel__group__view__pb2.HotelGroupView.FromString, - ) - - -class HotelGroupViewServiceServicer(object): - """Proto file describing the Hotel Group View Service. - - Service to manage Hotel Group Views. - """ - - def GetHotelGroupView(self, request, context): - """Returns the requested Hotel Group View in full detail. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - -def add_HotelGroupViewServiceServicer_to_server(servicer, server): - rpc_method_handlers = { - 'GetHotelGroupView': grpc.unary_unary_rpc_method_handler( - servicer.GetHotelGroupView, - request_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_hotel__group__view__service__pb2.GetHotelGroupViewRequest.FromString, - response_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_hotel__group__view__pb2.HotelGroupView.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'google.ads.googleads.v1.services.HotelGroupViewService', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) diff --git a/google/ads/google_ads/v1/proto/services/hotel_performance_view_service_pb2.py b/google/ads/google_ads/v1/proto/services/hotel_performance_view_service_pb2.py deleted file mode 100644 index 5b74b0759..000000000 --- a/google/ads/google_ads/v1/proto/services/hotel_performance_view_service_pb2.py +++ /dev/null @@ -1,107 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/services/hotel_performance_view_service.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.ads.google_ads.v1.proto.resources import hotel_performance_view_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_hotel__performance__view__pb2 -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/services/hotel_performance_view_service.proto', - package='google.ads.googleads.v1.services', - syntax='proto3', - serialized_options=_b('\n$com.google.ads.googleads.v1.servicesB HotelPerformanceViewServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v1/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V1.Services\312\002 Google\\Ads\\GoogleAds\\V1\\Services\352\002$Google::Ads::GoogleAds::V1::Services'), - serialized_pb=_b('\nKgoogle/ads/googleads_v1/proto/services/hotel_performance_view_service.proto\x12 google.ads.googleads.v1.services\x1a\x44google/ads/googleads_v1/proto/resources/hotel_performance_view.proto\x1a\x1cgoogle/api/annotations.proto\"7\n\x1eGetHotelPerformanceViewRequest\x12\x15\n\rresource_name\x18\x01 \x01(\t2\xf2\x01\n\x1bHotelPerformanceViewService\x12\xd2\x01\n\x17GetHotelPerformanceView\x12@.google.ads.googleads.v1.services.GetHotelPerformanceViewRequest\x1a\x37.google.ads.googleads.v1.resources.HotelPerformanceView\"<\x82\xd3\xe4\x93\x02\x36\x12\x34/v1/{resource_name=customers/*/hotelPerformanceView}B\x87\x02\n$com.google.ads.googleads.v1.servicesB HotelPerformanceViewServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v1/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V1.Services\xca\x02 Google\\Ads\\GoogleAds\\V1\\Services\xea\x02$Google::Ads::GoogleAds::V1::Servicesb\x06proto3') - , - dependencies=[google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_hotel__performance__view__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - - -_GETHOTELPERFORMANCEVIEWREQUEST = _descriptor.Descriptor( - name='GetHotelPerformanceViewRequest', - full_name='google.ads.googleads.v1.services.GetHotelPerformanceViewRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.services.GetHotelPerformanceViewRequest.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=213, - serialized_end=268, -) - -DESCRIPTOR.message_types_by_name['GetHotelPerformanceViewRequest'] = _GETHOTELPERFORMANCEVIEWREQUEST -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -GetHotelPerformanceViewRequest = _reflection.GeneratedProtocolMessageType('GetHotelPerformanceViewRequest', (_message.Message,), dict( - DESCRIPTOR = _GETHOTELPERFORMANCEVIEWREQUEST, - __module__ = 'google.ads.googleads_v1.proto.services.hotel_performance_view_service_pb2' - , - __doc__ = """Request message for - [HotelPerformanceViewService.GetHotelPerformanceView][google.ads.googleads.v1.services.HotelPerformanceViewService.GetHotelPerformanceView]. - - - Attributes: - resource_name: - Resource name of the Hotel Performance View to fetch. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.GetHotelPerformanceViewRequest) - )) -_sym_db.RegisterMessage(GetHotelPerformanceViewRequest) - - -DESCRIPTOR._options = None - -_HOTELPERFORMANCEVIEWSERVICE = _descriptor.ServiceDescriptor( - name='HotelPerformanceViewService', - full_name='google.ads.googleads.v1.services.HotelPerformanceViewService', - file=DESCRIPTOR, - index=0, - serialized_options=None, - serialized_start=271, - serialized_end=513, - methods=[ - _descriptor.MethodDescriptor( - name='GetHotelPerformanceView', - full_name='google.ads.googleads.v1.services.HotelPerformanceViewService.GetHotelPerformanceView', - index=0, - containing_service=None, - input_type=_GETHOTELPERFORMANCEVIEWREQUEST, - output_type=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_hotel__performance__view__pb2._HOTELPERFORMANCEVIEW, - serialized_options=_b('\202\323\344\223\0026\0224/v1/{resource_name=customers/*/hotelPerformanceView}'), - ), -]) -_sym_db.RegisterServiceDescriptor(_HOTELPERFORMANCEVIEWSERVICE) - -DESCRIPTOR.services_by_name['HotelPerformanceViewService'] = _HOTELPERFORMANCEVIEWSERVICE - -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/services/hotel_performance_view_service_pb2_grpc.py b/google/ads/google_ads/v1/proto/services/hotel_performance_view_service_pb2_grpc.py deleted file mode 100644 index c205f959c..000000000 --- a/google/ads/google_ads/v1/proto/services/hotel_performance_view_service_pb2_grpc.py +++ /dev/null @@ -1,51 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -import grpc - -from google.ads.google_ads.v1.proto.resources import hotel_performance_view_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_hotel__performance__view__pb2 -from google.ads.google_ads.v1.proto.services import hotel_performance_view_service_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_hotel__performance__view__service__pb2 - - -class HotelPerformanceViewServiceStub(object): - """Proto file describing the Hotel Performance View Service. - - Service to manage Hotel Performance Views. - """ - - def __init__(self, channel): - """Constructor. - - Args: - channel: A grpc.Channel. - """ - self.GetHotelPerformanceView = channel.unary_unary( - '/google.ads.googleads.v1.services.HotelPerformanceViewService/GetHotelPerformanceView', - request_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_hotel__performance__view__service__pb2.GetHotelPerformanceViewRequest.SerializeToString, - response_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_hotel__performance__view__pb2.HotelPerformanceView.FromString, - ) - - -class HotelPerformanceViewServiceServicer(object): - """Proto file describing the Hotel Performance View Service. - - Service to manage Hotel Performance Views. - """ - - def GetHotelPerformanceView(self, request, context): - """Returns the requested Hotel Performance View in full detail. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - -def add_HotelPerformanceViewServiceServicer_to_server(servicer, server): - rpc_method_handlers = { - 'GetHotelPerformanceView': grpc.unary_unary_rpc_method_handler( - servicer.GetHotelPerformanceView, - request_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_hotel__performance__view__service__pb2.GetHotelPerformanceViewRequest.FromString, - response_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_hotel__performance__view__pb2.HotelPerformanceView.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'google.ads.googleads.v1.services.HotelPerformanceViewService', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) diff --git a/google/ads/google_ads/v1/proto/services/keyword_plan_ad_group_service_pb2.py b/google/ads/google_ads/v1/proto/services/keyword_plan_ad_group_service_pb2.py deleted file mode 100644 index 9943b6b4e..000000000 --- a/google/ads/google_ads/v1/proto/services/keyword_plan_ad_group_service_pb2.py +++ /dev/null @@ -1,406 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/services/keyword_plan_ad_group_service.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.ads.google_ads.v1.proto.resources import keyword_plan_ad_group_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_keyword__plan__ad__group__pb2 -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 -from google.protobuf import field_mask_pb2 as google_dot_protobuf_dot_field__mask__pb2 -from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 -from google.rpc import status_pb2 as google_dot_rpc_dot_status__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/services/keyword_plan_ad_group_service.proto', - package='google.ads.googleads.v1.services', - syntax='proto3', - serialized_options=_b('\n$com.google.ads.googleads.v1.servicesB\036KeywordPlanAdGroupServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v1/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V1.Services\312\002 Google\\Ads\\GoogleAds\\V1\\Services\352\002$Google::Ads::GoogleAds::V1::Services'), - serialized_pb=_b('\nJgoogle/ads/googleads_v1/proto/services/keyword_plan_ad_group_service.proto\x12 google.ads.googleads.v1.services\x1a\x43google/ads/googleads_v1/proto/resources/keyword_plan_ad_group.proto\x1a\x1cgoogle/api/annotations.proto\x1a google/protobuf/field_mask.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x17google/rpc/status.proto\"5\n\x1cGetKeywordPlanAdGroupRequest\x12\x15\n\rresource_name\x18\x01 \x01(\t\"\xba\x01\n MutateKeywordPlanAdGroupsRequest\x12\x13\n\x0b\x63ustomer_id\x18\x01 \x01(\t\x12Q\n\noperations\x18\x02 \x03(\x0b\x32=.google.ads.googleads.v1.services.KeywordPlanAdGroupOperation\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\"\xff\x01\n\x1bKeywordPlanAdGroupOperation\x12/\n\x0bupdate_mask\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12G\n\x06\x63reate\x18\x01 \x01(\x0b\x32\x35.google.ads.googleads.v1.resources.KeywordPlanAdGroupH\x00\x12G\n\x06update\x18\x02 \x01(\x0b\x32\x35.google.ads.googleads.v1.resources.KeywordPlanAdGroupH\x00\x12\x10\n\x06remove\x18\x03 \x01(\tH\x00\x42\x0b\n\toperation\"\xa9\x01\n!MutateKeywordPlanAdGroupsResponse\x12\x31\n\x15partial_failure_error\x18\x03 \x01(\x0b\x32\x12.google.rpc.Status\x12Q\n\x07results\x18\x02 \x03(\x0b\x32@.google.ads.googleads.v1.services.MutateKeywordPlanAdGroupResult\"7\n\x1eMutateKeywordPlanAdGroupResult\x12\x15\n\rresource_name\x18\x01 \x01(\t2\xd7\x03\n\x19KeywordPlanAdGroupService\x12\xcd\x01\n\x15GetKeywordPlanAdGroup\x12>.google.ads.googleads.v1.services.GetKeywordPlanAdGroupRequest\x1a\x35.google.ads.googleads.v1.resources.KeywordPlanAdGroup\"=\x82\xd3\xe4\x93\x02\x37\x12\x35/v1/{resource_name=customers/*/keywordPlanAdGroups/*}\x12\xe9\x01\n\x19MutateKeywordPlanAdGroups\x12\x42.google.ads.googleads.v1.services.MutateKeywordPlanAdGroupsRequest\x1a\x43.google.ads.googleads.v1.services.MutateKeywordPlanAdGroupsResponse\"C\x82\xd3\xe4\x93\x02=\"8/v1/customers/{customer_id=*}/keywordPlanAdGroups:mutate:\x01*B\x85\x02\n$com.google.ads.googleads.v1.servicesB\x1eKeywordPlanAdGroupServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v1/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V1.Services\xca\x02 Google\\Ads\\GoogleAds\\V1\\Services\xea\x02$Google::Ads::GoogleAds::V1::Servicesb\x06proto3') - , - dependencies=[google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_keyword__plan__ad__group__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_protobuf_dot_field__mask__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_rpc_dot_status__pb2.DESCRIPTOR,]) - - - - -_GETKEYWORDPLANADGROUPREQUEST = _descriptor.Descriptor( - name='GetKeywordPlanAdGroupRequest', - full_name='google.ads.googleads.v1.services.GetKeywordPlanAdGroupRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.services.GetKeywordPlanAdGroupRequest.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=302, - serialized_end=355, -) - - -_MUTATEKEYWORDPLANADGROUPSREQUEST = _descriptor.Descriptor( - name='MutateKeywordPlanAdGroupsRequest', - full_name='google.ads.googleads.v1.services.MutateKeywordPlanAdGroupsRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='customer_id', full_name='google.ads.googleads.v1.services.MutateKeywordPlanAdGroupsRequest.customer_id', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='operations', full_name='google.ads.googleads.v1.services.MutateKeywordPlanAdGroupsRequest.operations', index=1, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='partial_failure', full_name='google.ads.googleads.v1.services.MutateKeywordPlanAdGroupsRequest.partial_failure', index=2, - number=3, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='validate_only', full_name='google.ads.googleads.v1.services.MutateKeywordPlanAdGroupsRequest.validate_only', index=3, - number=4, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=358, - serialized_end=544, -) - - -_KEYWORDPLANADGROUPOPERATION = _descriptor.Descriptor( - name='KeywordPlanAdGroupOperation', - full_name='google.ads.googleads.v1.services.KeywordPlanAdGroupOperation', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='update_mask', full_name='google.ads.googleads.v1.services.KeywordPlanAdGroupOperation.update_mask', index=0, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='create', full_name='google.ads.googleads.v1.services.KeywordPlanAdGroupOperation.create', index=1, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='update', full_name='google.ads.googleads.v1.services.KeywordPlanAdGroupOperation.update', index=2, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='remove', full_name='google.ads.googleads.v1.services.KeywordPlanAdGroupOperation.remove', index=3, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='operation', full_name='google.ads.googleads.v1.services.KeywordPlanAdGroupOperation.operation', - index=0, containing_type=None, fields=[]), - ], - serialized_start=547, - serialized_end=802, -) - - -_MUTATEKEYWORDPLANADGROUPSRESPONSE = _descriptor.Descriptor( - name='MutateKeywordPlanAdGroupsResponse', - full_name='google.ads.googleads.v1.services.MutateKeywordPlanAdGroupsResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='partial_failure_error', full_name='google.ads.googleads.v1.services.MutateKeywordPlanAdGroupsResponse.partial_failure_error', index=0, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='results', full_name='google.ads.googleads.v1.services.MutateKeywordPlanAdGroupsResponse.results', index=1, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=805, - serialized_end=974, -) - - -_MUTATEKEYWORDPLANADGROUPRESULT = _descriptor.Descriptor( - name='MutateKeywordPlanAdGroupResult', - full_name='google.ads.googleads.v1.services.MutateKeywordPlanAdGroupResult', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.services.MutateKeywordPlanAdGroupResult.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=976, - serialized_end=1031, -) - -_MUTATEKEYWORDPLANADGROUPSREQUEST.fields_by_name['operations'].message_type = _KEYWORDPLANADGROUPOPERATION -_KEYWORDPLANADGROUPOPERATION.fields_by_name['update_mask'].message_type = google_dot_protobuf_dot_field__mask__pb2._FIELDMASK -_KEYWORDPLANADGROUPOPERATION.fields_by_name['create'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_keyword__plan__ad__group__pb2._KEYWORDPLANADGROUP -_KEYWORDPLANADGROUPOPERATION.fields_by_name['update'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_keyword__plan__ad__group__pb2._KEYWORDPLANADGROUP -_KEYWORDPLANADGROUPOPERATION.oneofs_by_name['operation'].fields.append( - _KEYWORDPLANADGROUPOPERATION.fields_by_name['create']) -_KEYWORDPLANADGROUPOPERATION.fields_by_name['create'].containing_oneof = _KEYWORDPLANADGROUPOPERATION.oneofs_by_name['operation'] -_KEYWORDPLANADGROUPOPERATION.oneofs_by_name['operation'].fields.append( - _KEYWORDPLANADGROUPOPERATION.fields_by_name['update']) -_KEYWORDPLANADGROUPOPERATION.fields_by_name['update'].containing_oneof = _KEYWORDPLANADGROUPOPERATION.oneofs_by_name['operation'] -_KEYWORDPLANADGROUPOPERATION.oneofs_by_name['operation'].fields.append( - _KEYWORDPLANADGROUPOPERATION.fields_by_name['remove']) -_KEYWORDPLANADGROUPOPERATION.fields_by_name['remove'].containing_oneof = _KEYWORDPLANADGROUPOPERATION.oneofs_by_name['operation'] -_MUTATEKEYWORDPLANADGROUPSRESPONSE.fields_by_name['partial_failure_error'].message_type = google_dot_rpc_dot_status__pb2._STATUS -_MUTATEKEYWORDPLANADGROUPSRESPONSE.fields_by_name['results'].message_type = _MUTATEKEYWORDPLANADGROUPRESULT -DESCRIPTOR.message_types_by_name['GetKeywordPlanAdGroupRequest'] = _GETKEYWORDPLANADGROUPREQUEST -DESCRIPTOR.message_types_by_name['MutateKeywordPlanAdGroupsRequest'] = _MUTATEKEYWORDPLANADGROUPSREQUEST -DESCRIPTOR.message_types_by_name['KeywordPlanAdGroupOperation'] = _KEYWORDPLANADGROUPOPERATION -DESCRIPTOR.message_types_by_name['MutateKeywordPlanAdGroupsResponse'] = _MUTATEKEYWORDPLANADGROUPSRESPONSE -DESCRIPTOR.message_types_by_name['MutateKeywordPlanAdGroupResult'] = _MUTATEKEYWORDPLANADGROUPRESULT -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -GetKeywordPlanAdGroupRequest = _reflection.GeneratedProtocolMessageType('GetKeywordPlanAdGroupRequest', (_message.Message,), dict( - DESCRIPTOR = _GETKEYWORDPLANADGROUPREQUEST, - __module__ = 'google.ads.googleads_v1.proto.services.keyword_plan_ad_group_service_pb2' - , - __doc__ = """Request message for - [KeywordPlanAdGroupService.GetKeywordPlanAdGroup][google.ads.googleads.v1.services.KeywordPlanAdGroupService.GetKeywordPlanAdGroup]. - - - Attributes: - resource_name: - The resource name of the Keyword Plan ad group to fetch. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.GetKeywordPlanAdGroupRequest) - )) -_sym_db.RegisterMessage(GetKeywordPlanAdGroupRequest) - -MutateKeywordPlanAdGroupsRequest = _reflection.GeneratedProtocolMessageType('MutateKeywordPlanAdGroupsRequest', (_message.Message,), dict( - DESCRIPTOR = _MUTATEKEYWORDPLANADGROUPSREQUEST, - __module__ = 'google.ads.googleads_v1.proto.services.keyword_plan_ad_group_service_pb2' - , - __doc__ = """Request message for - [KeywordPlanAdGroupService.MutateKeywordPlanAdGroups][google.ads.googleads.v1.services.KeywordPlanAdGroupService.MutateKeywordPlanAdGroups]. - - - Attributes: - customer_id: - The ID of the customer whose Keyword Plan ad groups are being - modified. - operations: - The list of operations to perform on individual Keyword Plan - ad groups. - partial_failure: - If true, successful operations will be carried out and invalid - operations will return errors. If false, all operations will - be carried out in one transaction if and only if they are all - valid. Default is false. - validate_only: - If true, the request is validated but not executed. Only - errors are returned, not results. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.MutateKeywordPlanAdGroupsRequest) - )) -_sym_db.RegisterMessage(MutateKeywordPlanAdGroupsRequest) - -KeywordPlanAdGroupOperation = _reflection.GeneratedProtocolMessageType('KeywordPlanAdGroupOperation', (_message.Message,), dict( - DESCRIPTOR = _KEYWORDPLANADGROUPOPERATION, - __module__ = 'google.ads.googleads_v1.proto.services.keyword_plan_ad_group_service_pb2' - , - __doc__ = """A single operation (create, update, remove) on a Keyword Plan ad group. - - - Attributes: - update_mask: - The FieldMask that determines which resource fields are - modified in an update. - operation: - The mutate operation. - create: - Create operation: No resource name is expected for the new - Keyword Plan ad group. - update: - Update operation: The Keyword Plan ad group is expected to - have a valid resource name. - remove: - Remove operation: A resource name for the removed Keyword Plan - ad group is expected, in this format: ``customers/{customer_i - d}/keywordPlanAdGroups/{kp_ad_group_id}`` - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.KeywordPlanAdGroupOperation) - )) -_sym_db.RegisterMessage(KeywordPlanAdGroupOperation) - -MutateKeywordPlanAdGroupsResponse = _reflection.GeneratedProtocolMessageType('MutateKeywordPlanAdGroupsResponse', (_message.Message,), dict( - DESCRIPTOR = _MUTATEKEYWORDPLANADGROUPSRESPONSE, - __module__ = 'google.ads.googleads_v1.proto.services.keyword_plan_ad_group_service_pb2' - , - __doc__ = """Response message for a Keyword Plan ad group mutate. - - - Attributes: - partial_failure_error: - Errors that pertain to operation failures in the partial - failure mode. Returned only when partial\_failure = true and - all errors occur inside the operations. If any errors occur - outside the operations (e.g. auth errors), we return an RPC - level error. - results: - All results for the mutate. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.MutateKeywordPlanAdGroupsResponse) - )) -_sym_db.RegisterMessage(MutateKeywordPlanAdGroupsResponse) - -MutateKeywordPlanAdGroupResult = _reflection.GeneratedProtocolMessageType('MutateKeywordPlanAdGroupResult', (_message.Message,), dict( - DESCRIPTOR = _MUTATEKEYWORDPLANADGROUPRESULT, - __module__ = 'google.ads.googleads_v1.proto.services.keyword_plan_ad_group_service_pb2' - , - __doc__ = """The result for the Keyword Plan ad group mutate. - - - Attributes: - resource_name: - Returned for successful operations. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.MutateKeywordPlanAdGroupResult) - )) -_sym_db.RegisterMessage(MutateKeywordPlanAdGroupResult) - - -DESCRIPTOR._options = None - -_KEYWORDPLANADGROUPSERVICE = _descriptor.ServiceDescriptor( - name='KeywordPlanAdGroupService', - full_name='google.ads.googleads.v1.services.KeywordPlanAdGroupService', - file=DESCRIPTOR, - index=0, - serialized_options=None, - serialized_start=1034, - serialized_end=1505, - methods=[ - _descriptor.MethodDescriptor( - name='GetKeywordPlanAdGroup', - full_name='google.ads.googleads.v1.services.KeywordPlanAdGroupService.GetKeywordPlanAdGroup', - index=0, - containing_service=None, - input_type=_GETKEYWORDPLANADGROUPREQUEST, - output_type=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_keyword__plan__ad__group__pb2._KEYWORDPLANADGROUP, - serialized_options=_b('\202\323\344\223\0027\0225/v1/{resource_name=customers/*/keywordPlanAdGroups/*}'), - ), - _descriptor.MethodDescriptor( - name='MutateKeywordPlanAdGroups', - full_name='google.ads.googleads.v1.services.KeywordPlanAdGroupService.MutateKeywordPlanAdGroups', - index=1, - containing_service=None, - input_type=_MUTATEKEYWORDPLANADGROUPSREQUEST, - output_type=_MUTATEKEYWORDPLANADGROUPSRESPONSE, - serialized_options=_b('\202\323\344\223\002=\"8/v1/customers/{customer_id=*}/keywordPlanAdGroups:mutate:\001*'), - ), -]) -_sym_db.RegisterServiceDescriptor(_KEYWORDPLANADGROUPSERVICE) - -DESCRIPTOR.services_by_name['KeywordPlanAdGroupService'] = _KEYWORDPLANADGROUPSERVICE - -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/services/keyword_plan_ad_group_service_pb2_grpc.py b/google/ads/google_ads/v1/proto/services/keyword_plan_ad_group_service_pb2_grpc.py deleted file mode 100644 index fe4bb60b8..000000000 --- a/google/ads/google_ads/v1/proto/services/keyword_plan_ad_group_service_pb2_grpc.py +++ /dev/null @@ -1,69 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -import grpc - -from google.ads.google_ads.v1.proto.resources import keyword_plan_ad_group_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_keyword__plan__ad__group__pb2 -from google.ads.google_ads.v1.proto.services import keyword_plan_ad_group_service_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_keyword__plan__ad__group__service__pb2 - - -class KeywordPlanAdGroupServiceStub(object): - """Proto file describing the keyword plan ad group service. - - Service to manage Keyword Plan ad groups. - """ - - def __init__(self, channel): - """Constructor. - - Args: - channel: A grpc.Channel. - """ - self.GetKeywordPlanAdGroup = channel.unary_unary( - '/google.ads.googleads.v1.services.KeywordPlanAdGroupService/GetKeywordPlanAdGroup', - request_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_keyword__plan__ad__group__service__pb2.GetKeywordPlanAdGroupRequest.SerializeToString, - response_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_keyword__plan__ad__group__pb2.KeywordPlanAdGroup.FromString, - ) - self.MutateKeywordPlanAdGroups = channel.unary_unary( - '/google.ads.googleads.v1.services.KeywordPlanAdGroupService/MutateKeywordPlanAdGroups', - request_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_keyword__plan__ad__group__service__pb2.MutateKeywordPlanAdGroupsRequest.SerializeToString, - response_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_keyword__plan__ad__group__service__pb2.MutateKeywordPlanAdGroupsResponse.FromString, - ) - - -class KeywordPlanAdGroupServiceServicer(object): - """Proto file describing the keyword plan ad group service. - - Service to manage Keyword Plan ad groups. - """ - - def GetKeywordPlanAdGroup(self, request, context): - """Returns the requested Keyword Plan ad group in full detail. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def MutateKeywordPlanAdGroups(self, request, context): - """Creates, updates, or removes Keyword Plan ad groups. Operation statuses are - returned. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - -def add_KeywordPlanAdGroupServiceServicer_to_server(servicer, server): - rpc_method_handlers = { - 'GetKeywordPlanAdGroup': grpc.unary_unary_rpc_method_handler( - servicer.GetKeywordPlanAdGroup, - request_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_keyword__plan__ad__group__service__pb2.GetKeywordPlanAdGroupRequest.FromString, - response_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_keyword__plan__ad__group__pb2.KeywordPlanAdGroup.SerializeToString, - ), - 'MutateKeywordPlanAdGroups': grpc.unary_unary_rpc_method_handler( - servicer.MutateKeywordPlanAdGroups, - request_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_keyword__plan__ad__group__service__pb2.MutateKeywordPlanAdGroupsRequest.FromString, - response_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_keyword__plan__ad__group__service__pb2.MutateKeywordPlanAdGroupsResponse.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'google.ads.googleads.v1.services.KeywordPlanAdGroupService', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) diff --git a/google/ads/google_ads/v1/proto/services/keyword_plan_campaign_service_pb2.py b/google/ads/google_ads/v1/proto/services/keyword_plan_campaign_service_pb2.py deleted file mode 100644 index 2bebe8749..000000000 --- a/google/ads/google_ads/v1/proto/services/keyword_plan_campaign_service_pb2.py +++ /dev/null @@ -1,406 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/services/keyword_plan_campaign_service.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.ads.google_ads.v1.proto.resources import keyword_plan_campaign_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_keyword__plan__campaign__pb2 -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 -from google.protobuf import field_mask_pb2 as google_dot_protobuf_dot_field__mask__pb2 -from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 -from google.rpc import status_pb2 as google_dot_rpc_dot_status__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/services/keyword_plan_campaign_service.proto', - package='google.ads.googleads.v1.services', - syntax='proto3', - serialized_options=_b('\n$com.google.ads.googleads.v1.servicesB\037KeywordPlanCampaignServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v1/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V1.Services\312\002 Google\\Ads\\GoogleAds\\V1\\Services\352\002$Google::Ads::GoogleAds::V1::Services'), - serialized_pb=_b('\nJgoogle/ads/googleads_v1/proto/services/keyword_plan_campaign_service.proto\x12 google.ads.googleads.v1.services\x1a\x43google/ads/googleads_v1/proto/resources/keyword_plan_campaign.proto\x1a\x1cgoogle/api/annotations.proto\x1a google/protobuf/field_mask.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x17google/rpc/status.proto\"6\n\x1dGetKeywordPlanCampaignRequest\x12\x15\n\rresource_name\x18\x01 \x01(\t\"\xbc\x01\n!MutateKeywordPlanCampaignsRequest\x12\x13\n\x0b\x63ustomer_id\x18\x01 \x01(\t\x12R\n\noperations\x18\x02 \x03(\x0b\x32>.google.ads.googleads.v1.services.KeywordPlanCampaignOperation\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\"\x82\x02\n\x1cKeywordPlanCampaignOperation\x12/\n\x0bupdate_mask\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12H\n\x06\x63reate\x18\x01 \x01(\x0b\x32\x36.google.ads.googleads.v1.resources.KeywordPlanCampaignH\x00\x12H\n\x06update\x18\x02 \x01(\x0b\x32\x36.google.ads.googleads.v1.resources.KeywordPlanCampaignH\x00\x12\x10\n\x06remove\x18\x03 \x01(\tH\x00\x42\x0b\n\toperation\"\xab\x01\n\"MutateKeywordPlanCampaignsResponse\x12\x31\n\x15partial_failure_error\x18\x03 \x01(\x0b\x32\x12.google.rpc.Status\x12R\n\x07results\x18\x02 \x03(\x0b\x32\x41.google.ads.googleads.v1.services.MutateKeywordPlanCampaignResult\"8\n\x1fMutateKeywordPlanCampaignResult\x12\x15\n\rresource_name\x18\x01 \x01(\t2\xe0\x03\n\x1aKeywordPlanCampaignService\x12\xd1\x01\n\x16GetKeywordPlanCampaign\x12?.google.ads.googleads.v1.services.GetKeywordPlanCampaignRequest\x1a\x36.google.ads.googleads.v1.resources.KeywordPlanCampaign\">\x82\xd3\xe4\x93\x02\x38\x12\x36/v1/{resource_name=customers/*/keywordPlanCampaigns/*}\x12\xed\x01\n\x1aMutateKeywordPlanCampaigns\x12\x43.google.ads.googleads.v1.services.MutateKeywordPlanCampaignsRequest\x1a\x44.google.ads.googleads.v1.services.MutateKeywordPlanCampaignsResponse\"D\x82\xd3\xe4\x93\x02>\"9/v1/customers/{customer_id=*}/keywordPlanCampaigns:mutate:\x01*B\x86\x02\n$com.google.ads.googleads.v1.servicesB\x1fKeywordPlanCampaignServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v1/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V1.Services\xca\x02 Google\\Ads\\GoogleAds\\V1\\Services\xea\x02$Google::Ads::GoogleAds::V1::Servicesb\x06proto3') - , - dependencies=[google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_keyword__plan__campaign__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_protobuf_dot_field__mask__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_rpc_dot_status__pb2.DESCRIPTOR,]) - - - - -_GETKEYWORDPLANCAMPAIGNREQUEST = _descriptor.Descriptor( - name='GetKeywordPlanCampaignRequest', - full_name='google.ads.googleads.v1.services.GetKeywordPlanCampaignRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.services.GetKeywordPlanCampaignRequest.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=302, - serialized_end=356, -) - - -_MUTATEKEYWORDPLANCAMPAIGNSREQUEST = _descriptor.Descriptor( - name='MutateKeywordPlanCampaignsRequest', - full_name='google.ads.googleads.v1.services.MutateKeywordPlanCampaignsRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='customer_id', full_name='google.ads.googleads.v1.services.MutateKeywordPlanCampaignsRequest.customer_id', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='operations', full_name='google.ads.googleads.v1.services.MutateKeywordPlanCampaignsRequest.operations', index=1, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='partial_failure', full_name='google.ads.googleads.v1.services.MutateKeywordPlanCampaignsRequest.partial_failure', index=2, - number=3, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='validate_only', full_name='google.ads.googleads.v1.services.MutateKeywordPlanCampaignsRequest.validate_only', index=3, - number=4, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=359, - serialized_end=547, -) - - -_KEYWORDPLANCAMPAIGNOPERATION = _descriptor.Descriptor( - name='KeywordPlanCampaignOperation', - full_name='google.ads.googleads.v1.services.KeywordPlanCampaignOperation', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='update_mask', full_name='google.ads.googleads.v1.services.KeywordPlanCampaignOperation.update_mask', index=0, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='create', full_name='google.ads.googleads.v1.services.KeywordPlanCampaignOperation.create', index=1, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='update', full_name='google.ads.googleads.v1.services.KeywordPlanCampaignOperation.update', index=2, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='remove', full_name='google.ads.googleads.v1.services.KeywordPlanCampaignOperation.remove', index=3, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='operation', full_name='google.ads.googleads.v1.services.KeywordPlanCampaignOperation.operation', - index=0, containing_type=None, fields=[]), - ], - serialized_start=550, - serialized_end=808, -) - - -_MUTATEKEYWORDPLANCAMPAIGNSRESPONSE = _descriptor.Descriptor( - name='MutateKeywordPlanCampaignsResponse', - full_name='google.ads.googleads.v1.services.MutateKeywordPlanCampaignsResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='partial_failure_error', full_name='google.ads.googleads.v1.services.MutateKeywordPlanCampaignsResponse.partial_failure_error', index=0, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='results', full_name='google.ads.googleads.v1.services.MutateKeywordPlanCampaignsResponse.results', index=1, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=811, - serialized_end=982, -) - - -_MUTATEKEYWORDPLANCAMPAIGNRESULT = _descriptor.Descriptor( - name='MutateKeywordPlanCampaignResult', - full_name='google.ads.googleads.v1.services.MutateKeywordPlanCampaignResult', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.services.MutateKeywordPlanCampaignResult.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=984, - serialized_end=1040, -) - -_MUTATEKEYWORDPLANCAMPAIGNSREQUEST.fields_by_name['operations'].message_type = _KEYWORDPLANCAMPAIGNOPERATION -_KEYWORDPLANCAMPAIGNOPERATION.fields_by_name['update_mask'].message_type = google_dot_protobuf_dot_field__mask__pb2._FIELDMASK -_KEYWORDPLANCAMPAIGNOPERATION.fields_by_name['create'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_keyword__plan__campaign__pb2._KEYWORDPLANCAMPAIGN -_KEYWORDPLANCAMPAIGNOPERATION.fields_by_name['update'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_keyword__plan__campaign__pb2._KEYWORDPLANCAMPAIGN -_KEYWORDPLANCAMPAIGNOPERATION.oneofs_by_name['operation'].fields.append( - _KEYWORDPLANCAMPAIGNOPERATION.fields_by_name['create']) -_KEYWORDPLANCAMPAIGNOPERATION.fields_by_name['create'].containing_oneof = _KEYWORDPLANCAMPAIGNOPERATION.oneofs_by_name['operation'] -_KEYWORDPLANCAMPAIGNOPERATION.oneofs_by_name['operation'].fields.append( - _KEYWORDPLANCAMPAIGNOPERATION.fields_by_name['update']) -_KEYWORDPLANCAMPAIGNOPERATION.fields_by_name['update'].containing_oneof = _KEYWORDPLANCAMPAIGNOPERATION.oneofs_by_name['operation'] -_KEYWORDPLANCAMPAIGNOPERATION.oneofs_by_name['operation'].fields.append( - _KEYWORDPLANCAMPAIGNOPERATION.fields_by_name['remove']) -_KEYWORDPLANCAMPAIGNOPERATION.fields_by_name['remove'].containing_oneof = _KEYWORDPLANCAMPAIGNOPERATION.oneofs_by_name['operation'] -_MUTATEKEYWORDPLANCAMPAIGNSRESPONSE.fields_by_name['partial_failure_error'].message_type = google_dot_rpc_dot_status__pb2._STATUS -_MUTATEKEYWORDPLANCAMPAIGNSRESPONSE.fields_by_name['results'].message_type = _MUTATEKEYWORDPLANCAMPAIGNRESULT -DESCRIPTOR.message_types_by_name['GetKeywordPlanCampaignRequest'] = _GETKEYWORDPLANCAMPAIGNREQUEST -DESCRIPTOR.message_types_by_name['MutateKeywordPlanCampaignsRequest'] = _MUTATEKEYWORDPLANCAMPAIGNSREQUEST -DESCRIPTOR.message_types_by_name['KeywordPlanCampaignOperation'] = _KEYWORDPLANCAMPAIGNOPERATION -DESCRIPTOR.message_types_by_name['MutateKeywordPlanCampaignsResponse'] = _MUTATEKEYWORDPLANCAMPAIGNSRESPONSE -DESCRIPTOR.message_types_by_name['MutateKeywordPlanCampaignResult'] = _MUTATEKEYWORDPLANCAMPAIGNRESULT -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -GetKeywordPlanCampaignRequest = _reflection.GeneratedProtocolMessageType('GetKeywordPlanCampaignRequest', (_message.Message,), dict( - DESCRIPTOR = _GETKEYWORDPLANCAMPAIGNREQUEST, - __module__ = 'google.ads.googleads_v1.proto.services.keyword_plan_campaign_service_pb2' - , - __doc__ = """Request message for - [KeywordPlanCampaignService.GetKeywordPlanCampaign][google.ads.googleads.v1.services.KeywordPlanCampaignService.GetKeywordPlanCampaign]. - - - Attributes: - resource_name: - The resource name of the Keyword Plan campaign to fetch. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.GetKeywordPlanCampaignRequest) - )) -_sym_db.RegisterMessage(GetKeywordPlanCampaignRequest) - -MutateKeywordPlanCampaignsRequest = _reflection.GeneratedProtocolMessageType('MutateKeywordPlanCampaignsRequest', (_message.Message,), dict( - DESCRIPTOR = _MUTATEKEYWORDPLANCAMPAIGNSREQUEST, - __module__ = 'google.ads.googleads_v1.proto.services.keyword_plan_campaign_service_pb2' - , - __doc__ = """Request message for - [KeywordPlanCampaignService.MutateKeywordPlanCampaigns][google.ads.googleads.v1.services.KeywordPlanCampaignService.MutateKeywordPlanCampaigns]. - - - Attributes: - customer_id: - The ID of the customer whose Keyword Plan campaigns are being - modified. - operations: - The list of operations to perform on individual Keyword Plan - campaigns. - partial_failure: - If true, successful operations will be carried out and invalid - operations will return errors. If false, all operations will - be carried out in one transaction if and only if they are all - valid. Default is false. - validate_only: - If true, the request is validated but not executed. Only - errors are returned, not results. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.MutateKeywordPlanCampaignsRequest) - )) -_sym_db.RegisterMessage(MutateKeywordPlanCampaignsRequest) - -KeywordPlanCampaignOperation = _reflection.GeneratedProtocolMessageType('KeywordPlanCampaignOperation', (_message.Message,), dict( - DESCRIPTOR = _KEYWORDPLANCAMPAIGNOPERATION, - __module__ = 'google.ads.googleads_v1.proto.services.keyword_plan_campaign_service_pb2' - , - __doc__ = """A single operation (create, update, remove) on a Keyword Plan campaign. - - - Attributes: - update_mask: - The FieldMask that determines which resource fields are - modified in an update. - operation: - The mutate operation. - create: - Create operation: No resource name is expected for the new - Keyword Plan campaign. - update: - Update operation: The Keyword Plan campaign is expected to - have a valid resource name. - remove: - Remove operation: A resource name for the removed Keyword Plan - campaign is expected, in this format: ``customers/{customer_i - d}/keywordPlanCampaigns/{keywordPlan_campaign_id}`` - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.KeywordPlanCampaignOperation) - )) -_sym_db.RegisterMessage(KeywordPlanCampaignOperation) - -MutateKeywordPlanCampaignsResponse = _reflection.GeneratedProtocolMessageType('MutateKeywordPlanCampaignsResponse', (_message.Message,), dict( - DESCRIPTOR = _MUTATEKEYWORDPLANCAMPAIGNSRESPONSE, - __module__ = 'google.ads.googleads_v1.proto.services.keyword_plan_campaign_service_pb2' - , - __doc__ = """Response message for a Keyword Plan campaign mutate. - - - Attributes: - partial_failure_error: - Errors that pertain to operation failures in the partial - failure mode. Returned only when partial\_failure = true and - all errors occur inside the operations. If any errors occur - outside the operations (e.g. auth errors), we return an RPC - level error. - results: - All results for the mutate. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.MutateKeywordPlanCampaignsResponse) - )) -_sym_db.RegisterMessage(MutateKeywordPlanCampaignsResponse) - -MutateKeywordPlanCampaignResult = _reflection.GeneratedProtocolMessageType('MutateKeywordPlanCampaignResult', (_message.Message,), dict( - DESCRIPTOR = _MUTATEKEYWORDPLANCAMPAIGNRESULT, - __module__ = 'google.ads.googleads_v1.proto.services.keyword_plan_campaign_service_pb2' - , - __doc__ = """The result for the Keyword Plan campaign mutate. - - - Attributes: - resource_name: - Returned for successful operations. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.MutateKeywordPlanCampaignResult) - )) -_sym_db.RegisterMessage(MutateKeywordPlanCampaignResult) - - -DESCRIPTOR._options = None - -_KEYWORDPLANCAMPAIGNSERVICE = _descriptor.ServiceDescriptor( - name='KeywordPlanCampaignService', - full_name='google.ads.googleads.v1.services.KeywordPlanCampaignService', - file=DESCRIPTOR, - index=0, - serialized_options=None, - serialized_start=1043, - serialized_end=1523, - methods=[ - _descriptor.MethodDescriptor( - name='GetKeywordPlanCampaign', - full_name='google.ads.googleads.v1.services.KeywordPlanCampaignService.GetKeywordPlanCampaign', - index=0, - containing_service=None, - input_type=_GETKEYWORDPLANCAMPAIGNREQUEST, - output_type=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_keyword__plan__campaign__pb2._KEYWORDPLANCAMPAIGN, - serialized_options=_b('\202\323\344\223\0028\0226/v1/{resource_name=customers/*/keywordPlanCampaigns/*}'), - ), - _descriptor.MethodDescriptor( - name='MutateKeywordPlanCampaigns', - full_name='google.ads.googleads.v1.services.KeywordPlanCampaignService.MutateKeywordPlanCampaigns', - index=1, - containing_service=None, - input_type=_MUTATEKEYWORDPLANCAMPAIGNSREQUEST, - output_type=_MUTATEKEYWORDPLANCAMPAIGNSRESPONSE, - serialized_options=_b('\202\323\344\223\002>\"9/v1/customers/{customer_id=*}/keywordPlanCampaigns:mutate:\001*'), - ), -]) -_sym_db.RegisterServiceDescriptor(_KEYWORDPLANCAMPAIGNSERVICE) - -DESCRIPTOR.services_by_name['KeywordPlanCampaignService'] = _KEYWORDPLANCAMPAIGNSERVICE - -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/services/keyword_plan_campaign_service_pb2_grpc.py b/google/ads/google_ads/v1/proto/services/keyword_plan_campaign_service_pb2_grpc.py deleted file mode 100644 index 0a27dc6e8..000000000 --- a/google/ads/google_ads/v1/proto/services/keyword_plan_campaign_service_pb2_grpc.py +++ /dev/null @@ -1,69 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -import grpc - -from google.ads.google_ads.v1.proto.resources import keyword_plan_campaign_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_keyword__plan__campaign__pb2 -from google.ads.google_ads.v1.proto.services import keyword_plan_campaign_service_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_keyword__plan__campaign__service__pb2 - - -class KeywordPlanCampaignServiceStub(object): - """Proto file describing the keyword plan campaign service. - - Service to manage Keyword Plan campaigns. - """ - - def __init__(self, channel): - """Constructor. - - Args: - channel: A grpc.Channel. - """ - self.GetKeywordPlanCampaign = channel.unary_unary( - '/google.ads.googleads.v1.services.KeywordPlanCampaignService/GetKeywordPlanCampaign', - request_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_keyword__plan__campaign__service__pb2.GetKeywordPlanCampaignRequest.SerializeToString, - response_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_keyword__plan__campaign__pb2.KeywordPlanCampaign.FromString, - ) - self.MutateKeywordPlanCampaigns = channel.unary_unary( - '/google.ads.googleads.v1.services.KeywordPlanCampaignService/MutateKeywordPlanCampaigns', - request_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_keyword__plan__campaign__service__pb2.MutateKeywordPlanCampaignsRequest.SerializeToString, - response_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_keyword__plan__campaign__service__pb2.MutateKeywordPlanCampaignsResponse.FromString, - ) - - -class KeywordPlanCampaignServiceServicer(object): - """Proto file describing the keyword plan campaign service. - - Service to manage Keyword Plan campaigns. - """ - - def GetKeywordPlanCampaign(self, request, context): - """Returns the requested Keyword Plan campaign in full detail. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def MutateKeywordPlanCampaigns(self, request, context): - """Creates, updates, or removes Keyword Plan campaigns. Operation statuses are - returned. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - -def add_KeywordPlanCampaignServiceServicer_to_server(servicer, server): - rpc_method_handlers = { - 'GetKeywordPlanCampaign': grpc.unary_unary_rpc_method_handler( - servicer.GetKeywordPlanCampaign, - request_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_keyword__plan__campaign__service__pb2.GetKeywordPlanCampaignRequest.FromString, - response_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_keyword__plan__campaign__pb2.KeywordPlanCampaign.SerializeToString, - ), - 'MutateKeywordPlanCampaigns': grpc.unary_unary_rpc_method_handler( - servicer.MutateKeywordPlanCampaigns, - request_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_keyword__plan__campaign__service__pb2.MutateKeywordPlanCampaignsRequest.FromString, - response_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_keyword__plan__campaign__service__pb2.MutateKeywordPlanCampaignsResponse.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'google.ads.googleads.v1.services.KeywordPlanCampaignService', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) diff --git a/google/ads/google_ads/v1/proto/services/keyword_plan_idea_service_pb2.py b/google/ads/google_ads/v1/proto/services/keyword_plan_idea_service_pb2.py deleted file mode 100644 index 96082a3fd..000000000 --- a/google/ads/google_ads/v1/proto/services/keyword_plan_idea_service_pb2.py +++ /dev/null @@ -1,448 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/services/keyword_plan_idea_service.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.ads.google_ads.v1.proto.common import keyword_plan_common_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_keyword__plan__common__pb2 -from google.ads.google_ads.v1.proto.enums import keyword_plan_network_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_keyword__plan__network__pb2 -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 -from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/services/keyword_plan_idea_service.proto', - package='google.ads.googleads.v1.services', - syntax='proto3', - serialized_options=_b('\n$com.google.ads.googleads.v1.servicesB\033KeywordPlanIdeaServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v1/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V1.Services\312\002 Google\\Ads\\GoogleAds\\V1\\Services\352\002$Google::Ads::GoogleAds::V1::Services'), - serialized_pb=_b('\nFgoogle/ads/googleads_v1/proto/services/keyword_plan_idea_service.proto\x12 google.ads.googleads.v1.services\x1a>google/ads/googleads_v1/proto/common/keyword_plan_common.proto\x1a>google/ads/googleads_v1/proto/enums/keyword_plan_network.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x1egoogle/protobuf/wrappers.proto\"\xe9\x03\n\x1bGenerateKeywordIdeasRequest\x12\x13\n\x0b\x63ustomer_id\x18\x01 \x01(\t\x12.\n\x08language\x18\x07 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12:\n\x14geo_target_constants\x18\x08 \x03(\x0b\x32\x1c.google.protobuf.StringValue\x12\x66\n\x14keyword_plan_network\x18\t \x01(\x0e\x32H.google.ads.googleads.v1.enums.KeywordPlanNetworkEnum.KeywordPlanNetwork\x12S\n\x14keyword_and_url_seed\x18\x02 \x01(\x0b\x32\x33.google.ads.googleads.v1.services.KeywordAndUrlSeedH\x00\x12\x45\n\x0ckeyword_seed\x18\x03 \x01(\x0b\x32-.google.ads.googleads.v1.services.KeywordSeedH\x00\x12=\n\x08url_seed\x18\x05 \x01(\x0b\x32).google.ads.googleads.v1.services.UrlSeedH\x00\x42\x06\n\x04seed\"n\n\x11KeywordAndUrlSeed\x12)\n\x03url\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12.\n\x08keywords\x18\x02 \x03(\x0b\x32\x1c.google.protobuf.StringValue\"=\n\x0bKeywordSeed\x12.\n\x08keywords\x18\x01 \x03(\x0b\x32\x1c.google.protobuf.StringValue\"4\n\x07UrlSeed\x12)\n\x03url\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\"k\n\x1bGenerateKeywordIdeaResponse\x12L\n\x07results\x18\x01 \x03(\x0b\x32;.google.ads.googleads.v1.services.GenerateKeywordIdeaResult\"\xa3\x01\n\x19GenerateKeywordIdeaResult\x12*\n\x04text\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12Z\n\x14keyword_idea_metrics\x18\x03 \x01(\x0b\x32<.google.ads.googleads.v1.common.KeywordPlanHistoricalMetrics2\xee\x01\n\x16KeywordPlanIdeaService\x12\xd3\x01\n\x14GenerateKeywordIdeas\x12=.google.ads.googleads.v1.services.GenerateKeywordIdeasRequest\x1a=.google.ads.googleads.v1.services.GenerateKeywordIdeaResponse\"=\x82\xd3\xe4\x93\x02\x37\"2/v1/customers/{customer_id=*}:generateKeywordIdeas:\x01*B\x82\x02\n$com.google.ads.googleads.v1.servicesB\x1bKeywordPlanIdeaServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v1/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V1.Services\xca\x02 Google\\Ads\\GoogleAds\\V1\\Services\xea\x02$Google::Ads::GoogleAds::V1::Servicesb\x06proto3') - , - dependencies=[google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_keyword__plan__common__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_keyword__plan__network__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,]) - - - - -_GENERATEKEYWORDIDEASREQUEST = _descriptor.Descriptor( - name='GenerateKeywordIdeasRequest', - full_name='google.ads.googleads.v1.services.GenerateKeywordIdeasRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='customer_id', full_name='google.ads.googleads.v1.services.GenerateKeywordIdeasRequest.customer_id', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='language', full_name='google.ads.googleads.v1.services.GenerateKeywordIdeasRequest.language', index=1, - number=7, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='geo_target_constants', full_name='google.ads.googleads.v1.services.GenerateKeywordIdeasRequest.geo_target_constants', index=2, - number=8, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='keyword_plan_network', full_name='google.ads.googleads.v1.services.GenerateKeywordIdeasRequest.keyword_plan_network', index=3, - number=9, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='keyword_and_url_seed', full_name='google.ads.googleads.v1.services.GenerateKeywordIdeasRequest.keyword_and_url_seed', index=4, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='keyword_seed', full_name='google.ads.googleads.v1.services.GenerateKeywordIdeasRequest.keyword_seed', index=5, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='url_seed', full_name='google.ads.googleads.v1.services.GenerateKeywordIdeasRequest.url_seed', index=6, - number=5, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='seed', full_name='google.ads.googleads.v1.services.GenerateKeywordIdeasRequest.seed', - index=0, containing_type=None, fields=[]), - ], - serialized_start=299, - serialized_end=788, -) - - -_KEYWORDANDURLSEED = _descriptor.Descriptor( - name='KeywordAndUrlSeed', - full_name='google.ads.googleads.v1.services.KeywordAndUrlSeed', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='url', full_name='google.ads.googleads.v1.services.KeywordAndUrlSeed.url', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='keywords', full_name='google.ads.googleads.v1.services.KeywordAndUrlSeed.keywords', index=1, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=790, - serialized_end=900, -) - - -_KEYWORDSEED = _descriptor.Descriptor( - name='KeywordSeed', - full_name='google.ads.googleads.v1.services.KeywordSeed', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='keywords', full_name='google.ads.googleads.v1.services.KeywordSeed.keywords', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=902, - serialized_end=963, -) - - -_URLSEED = _descriptor.Descriptor( - name='UrlSeed', - full_name='google.ads.googleads.v1.services.UrlSeed', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='url', full_name='google.ads.googleads.v1.services.UrlSeed.url', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=965, - serialized_end=1017, -) - - -_GENERATEKEYWORDIDEARESPONSE = _descriptor.Descriptor( - name='GenerateKeywordIdeaResponse', - full_name='google.ads.googleads.v1.services.GenerateKeywordIdeaResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='results', full_name='google.ads.googleads.v1.services.GenerateKeywordIdeaResponse.results', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1019, - serialized_end=1126, -) - - -_GENERATEKEYWORDIDEARESULT = _descriptor.Descriptor( - name='GenerateKeywordIdeaResult', - full_name='google.ads.googleads.v1.services.GenerateKeywordIdeaResult', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='text', full_name='google.ads.googleads.v1.services.GenerateKeywordIdeaResult.text', index=0, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='keyword_idea_metrics', full_name='google.ads.googleads.v1.services.GenerateKeywordIdeaResult.keyword_idea_metrics', index=1, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1129, - serialized_end=1292, -) - -_GENERATEKEYWORDIDEASREQUEST.fields_by_name['language'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_GENERATEKEYWORDIDEASREQUEST.fields_by_name['geo_target_constants'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_GENERATEKEYWORDIDEASREQUEST.fields_by_name['keyword_plan_network'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_keyword__plan__network__pb2._KEYWORDPLANNETWORKENUM_KEYWORDPLANNETWORK -_GENERATEKEYWORDIDEASREQUEST.fields_by_name['keyword_and_url_seed'].message_type = _KEYWORDANDURLSEED -_GENERATEKEYWORDIDEASREQUEST.fields_by_name['keyword_seed'].message_type = _KEYWORDSEED -_GENERATEKEYWORDIDEASREQUEST.fields_by_name['url_seed'].message_type = _URLSEED -_GENERATEKEYWORDIDEASREQUEST.oneofs_by_name['seed'].fields.append( - _GENERATEKEYWORDIDEASREQUEST.fields_by_name['keyword_and_url_seed']) -_GENERATEKEYWORDIDEASREQUEST.fields_by_name['keyword_and_url_seed'].containing_oneof = _GENERATEKEYWORDIDEASREQUEST.oneofs_by_name['seed'] -_GENERATEKEYWORDIDEASREQUEST.oneofs_by_name['seed'].fields.append( - _GENERATEKEYWORDIDEASREQUEST.fields_by_name['keyword_seed']) -_GENERATEKEYWORDIDEASREQUEST.fields_by_name['keyword_seed'].containing_oneof = _GENERATEKEYWORDIDEASREQUEST.oneofs_by_name['seed'] -_GENERATEKEYWORDIDEASREQUEST.oneofs_by_name['seed'].fields.append( - _GENERATEKEYWORDIDEASREQUEST.fields_by_name['url_seed']) -_GENERATEKEYWORDIDEASREQUEST.fields_by_name['url_seed'].containing_oneof = _GENERATEKEYWORDIDEASREQUEST.oneofs_by_name['seed'] -_KEYWORDANDURLSEED.fields_by_name['url'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_KEYWORDANDURLSEED.fields_by_name['keywords'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_KEYWORDSEED.fields_by_name['keywords'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_URLSEED.fields_by_name['url'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_GENERATEKEYWORDIDEARESPONSE.fields_by_name['results'].message_type = _GENERATEKEYWORDIDEARESULT -_GENERATEKEYWORDIDEARESULT.fields_by_name['text'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_GENERATEKEYWORDIDEARESULT.fields_by_name['keyword_idea_metrics'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_keyword__plan__common__pb2._KEYWORDPLANHISTORICALMETRICS -DESCRIPTOR.message_types_by_name['GenerateKeywordIdeasRequest'] = _GENERATEKEYWORDIDEASREQUEST -DESCRIPTOR.message_types_by_name['KeywordAndUrlSeed'] = _KEYWORDANDURLSEED -DESCRIPTOR.message_types_by_name['KeywordSeed'] = _KEYWORDSEED -DESCRIPTOR.message_types_by_name['UrlSeed'] = _URLSEED -DESCRIPTOR.message_types_by_name['GenerateKeywordIdeaResponse'] = _GENERATEKEYWORDIDEARESPONSE -DESCRIPTOR.message_types_by_name['GenerateKeywordIdeaResult'] = _GENERATEKEYWORDIDEARESULT -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -GenerateKeywordIdeasRequest = _reflection.GeneratedProtocolMessageType('GenerateKeywordIdeasRequest', (_message.Message,), dict( - DESCRIPTOR = _GENERATEKEYWORDIDEASREQUEST, - __module__ = 'google.ads.googleads_v1.proto.services.keyword_plan_idea_service_pb2' - , - __doc__ = """Request message for [KeywordIdeaService.GenerateKeywordIdeas][]. - - - Attributes: - customer_id: - The ID of the customer with the recommendation. - language: - The resource name of the language to target. Required - geo_target_constants: - The resource names of the location to target. Max 10 - keyword_plan_network: - Targeting network. - seed: - The type of seed to generate keyword ideas. - keyword_and_url_seed: - A Keyword and a specific Url to generate ideas from e.g. cars, - www.example.com/cars. - keyword_seed: - A Keyword or phrase to generate ideas from, e.g. cars. - url_seed: - A specific url to generate ideas from, e.g. - www.example.com/cars. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.GenerateKeywordIdeasRequest) - )) -_sym_db.RegisterMessage(GenerateKeywordIdeasRequest) - -KeywordAndUrlSeed = _reflection.GeneratedProtocolMessageType('KeywordAndUrlSeed', (_message.Message,), dict( - DESCRIPTOR = _KEYWORDANDURLSEED, - __module__ = 'google.ads.googleads_v1.proto.services.keyword_plan_idea_service_pb2' - , - __doc__ = """Keyword And Url Seed - - - Attributes: - url: - The URL to crawl in order to generate keyword ideas. - keywords: - Requires at least one keyword. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.KeywordAndUrlSeed) - )) -_sym_db.RegisterMessage(KeywordAndUrlSeed) - -KeywordSeed = _reflection.GeneratedProtocolMessageType('KeywordSeed', (_message.Message,), dict( - DESCRIPTOR = _KEYWORDSEED, - __module__ = 'google.ads.googleads_v1.proto.services.keyword_plan_idea_service_pb2' - , - __doc__ = """Keyword Seed - - - Attributes: - keywords: - Requires at least one keyword. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.KeywordSeed) - )) -_sym_db.RegisterMessage(KeywordSeed) - -UrlSeed = _reflection.GeneratedProtocolMessageType('UrlSeed', (_message.Message,), dict( - DESCRIPTOR = _URLSEED, - __module__ = 'google.ads.googleads_v1.proto.services.keyword_plan_idea_service_pb2' - , - __doc__ = """Url Seed - - - Attributes: - url: - The URL to crawl in order to generate keyword ideas. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.UrlSeed) - )) -_sym_db.RegisterMessage(UrlSeed) - -GenerateKeywordIdeaResponse = _reflection.GeneratedProtocolMessageType('GenerateKeywordIdeaResponse', (_message.Message,), dict( - DESCRIPTOR = _GENERATEKEYWORDIDEARESPONSE, - __module__ = 'google.ads.googleads_v1.proto.services.keyword_plan_idea_service_pb2' - , - __doc__ = """Response message for [KeywordIdeaService.GenerateKeywordIdeas][]. - - - Attributes: - results: - Results of generating keyword ideas. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.GenerateKeywordIdeaResponse) - )) -_sym_db.RegisterMessage(GenerateKeywordIdeaResponse) - -GenerateKeywordIdeaResult = _reflection.GeneratedProtocolMessageType('GenerateKeywordIdeaResult', (_message.Message,), dict( - DESCRIPTOR = _GENERATEKEYWORDIDEARESULT, - __module__ = 'google.ads.googleads_v1.proto.services.keyword_plan_idea_service_pb2' - , - __doc__ = """The result of generating keyword ideas. - - - Attributes: - text: - Text of the keyword idea. As in Keyword Plan historical - metrics, this text may not be an actual keyword, but the - canonical form of multiple keywords. See - KeywordPlanKeywordHistoricalMetrics message in - KeywordPlanService. - keyword_idea_metrics: - The historical metrics for the keyword - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.GenerateKeywordIdeaResult) - )) -_sym_db.RegisterMessage(GenerateKeywordIdeaResult) - - -DESCRIPTOR._options = None - -_KEYWORDPLANIDEASERVICE = _descriptor.ServiceDescriptor( - name='KeywordPlanIdeaService', - full_name='google.ads.googleads.v1.services.KeywordPlanIdeaService', - file=DESCRIPTOR, - index=0, - serialized_options=None, - serialized_start=1295, - serialized_end=1533, - methods=[ - _descriptor.MethodDescriptor( - name='GenerateKeywordIdeas', - full_name='google.ads.googleads.v1.services.KeywordPlanIdeaService.GenerateKeywordIdeas', - index=0, - containing_service=None, - input_type=_GENERATEKEYWORDIDEASREQUEST, - output_type=_GENERATEKEYWORDIDEARESPONSE, - serialized_options=_b('\202\323\344\223\0027\"2/v1/customers/{customer_id=*}:generateKeywordIdeas:\001*'), - ), -]) -_sym_db.RegisterServiceDescriptor(_KEYWORDPLANIDEASERVICE) - -DESCRIPTOR.services_by_name['KeywordPlanIdeaService'] = _KEYWORDPLANIDEASERVICE - -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/services/keyword_plan_keyword_service_pb2.py b/google/ads/google_ads/v1/proto/services/keyword_plan_keyword_service_pb2.py deleted file mode 100644 index cb17c4878..000000000 --- a/google/ads/google_ads/v1/proto/services/keyword_plan_keyword_service_pb2.py +++ /dev/null @@ -1,406 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/services/keyword_plan_keyword_service.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.ads.google_ads.v1.proto.resources import keyword_plan_keyword_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_keyword__plan__keyword__pb2 -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 -from google.protobuf import field_mask_pb2 as google_dot_protobuf_dot_field__mask__pb2 -from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 -from google.rpc import status_pb2 as google_dot_rpc_dot_status__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/services/keyword_plan_keyword_service.proto', - package='google.ads.googleads.v1.services', - syntax='proto3', - serialized_options=_b('\n$com.google.ads.googleads.v1.servicesB\036KeywordPlanKeywordServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v1/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V1.Services\312\002 Google\\Ads\\GoogleAds\\V1\\Services\352\002$Google::Ads::GoogleAds::V1::Services'), - serialized_pb=_b('\nIgoogle/ads/googleads_v1/proto/services/keyword_plan_keyword_service.proto\x12 google.ads.googleads.v1.services\x1a\x42google/ads/googleads_v1/proto/resources/keyword_plan_keyword.proto\x1a\x1cgoogle/api/annotations.proto\x1a google/protobuf/field_mask.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x17google/rpc/status.proto\"5\n\x1cGetKeywordPlanKeywordRequest\x12\x15\n\rresource_name\x18\x01 \x01(\t\"\xba\x01\n MutateKeywordPlanKeywordsRequest\x12\x13\n\x0b\x63ustomer_id\x18\x01 \x01(\t\x12Q\n\noperations\x18\x02 \x03(\x0b\x32=.google.ads.googleads.v1.services.KeywordPlanKeywordOperation\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\"\xff\x01\n\x1bKeywordPlanKeywordOperation\x12/\n\x0bupdate_mask\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12G\n\x06\x63reate\x18\x01 \x01(\x0b\x32\x35.google.ads.googleads.v1.resources.KeywordPlanKeywordH\x00\x12G\n\x06update\x18\x02 \x01(\x0b\x32\x35.google.ads.googleads.v1.resources.KeywordPlanKeywordH\x00\x12\x10\n\x06remove\x18\x03 \x01(\tH\x00\x42\x0b\n\toperation\"\xa9\x01\n!MutateKeywordPlanKeywordsResponse\x12\x31\n\x15partial_failure_error\x18\x03 \x01(\x0b\x32\x12.google.rpc.Status\x12Q\n\x07results\x18\x02 \x03(\x0b\x32@.google.ads.googleads.v1.services.MutateKeywordPlanKeywordResult\"7\n\x1eMutateKeywordPlanKeywordResult\x12\x15\n\rresource_name\x18\x01 \x01(\t2\xd7\x03\n\x19KeywordPlanKeywordService\x12\xcd\x01\n\x15GetKeywordPlanKeyword\x12>.google.ads.googleads.v1.services.GetKeywordPlanKeywordRequest\x1a\x35.google.ads.googleads.v1.resources.KeywordPlanKeyword\"=\x82\xd3\xe4\x93\x02\x37\x12\x35/v1/{resource_name=customers/*/keywordPlanKeywords/*}\x12\xe9\x01\n\x19MutateKeywordPlanKeywords\x12\x42.google.ads.googleads.v1.services.MutateKeywordPlanKeywordsRequest\x1a\x43.google.ads.googleads.v1.services.MutateKeywordPlanKeywordsResponse\"C\x82\xd3\xe4\x93\x02=\"8/v1/customers/{customer_id=*}/keywordPlanKeywords:mutate:\x01*B\x85\x02\n$com.google.ads.googleads.v1.servicesB\x1eKeywordPlanKeywordServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v1/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V1.Services\xca\x02 Google\\Ads\\GoogleAds\\V1\\Services\xea\x02$Google::Ads::GoogleAds::V1::Servicesb\x06proto3') - , - dependencies=[google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_keyword__plan__keyword__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_protobuf_dot_field__mask__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_rpc_dot_status__pb2.DESCRIPTOR,]) - - - - -_GETKEYWORDPLANKEYWORDREQUEST = _descriptor.Descriptor( - name='GetKeywordPlanKeywordRequest', - full_name='google.ads.googleads.v1.services.GetKeywordPlanKeywordRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.services.GetKeywordPlanKeywordRequest.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=300, - serialized_end=353, -) - - -_MUTATEKEYWORDPLANKEYWORDSREQUEST = _descriptor.Descriptor( - name='MutateKeywordPlanKeywordsRequest', - full_name='google.ads.googleads.v1.services.MutateKeywordPlanKeywordsRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='customer_id', full_name='google.ads.googleads.v1.services.MutateKeywordPlanKeywordsRequest.customer_id', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='operations', full_name='google.ads.googleads.v1.services.MutateKeywordPlanKeywordsRequest.operations', index=1, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='partial_failure', full_name='google.ads.googleads.v1.services.MutateKeywordPlanKeywordsRequest.partial_failure', index=2, - number=3, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='validate_only', full_name='google.ads.googleads.v1.services.MutateKeywordPlanKeywordsRequest.validate_only', index=3, - number=4, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=356, - serialized_end=542, -) - - -_KEYWORDPLANKEYWORDOPERATION = _descriptor.Descriptor( - name='KeywordPlanKeywordOperation', - full_name='google.ads.googleads.v1.services.KeywordPlanKeywordOperation', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='update_mask', full_name='google.ads.googleads.v1.services.KeywordPlanKeywordOperation.update_mask', index=0, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='create', full_name='google.ads.googleads.v1.services.KeywordPlanKeywordOperation.create', index=1, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='update', full_name='google.ads.googleads.v1.services.KeywordPlanKeywordOperation.update', index=2, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='remove', full_name='google.ads.googleads.v1.services.KeywordPlanKeywordOperation.remove', index=3, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='operation', full_name='google.ads.googleads.v1.services.KeywordPlanKeywordOperation.operation', - index=0, containing_type=None, fields=[]), - ], - serialized_start=545, - serialized_end=800, -) - - -_MUTATEKEYWORDPLANKEYWORDSRESPONSE = _descriptor.Descriptor( - name='MutateKeywordPlanKeywordsResponse', - full_name='google.ads.googleads.v1.services.MutateKeywordPlanKeywordsResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='partial_failure_error', full_name='google.ads.googleads.v1.services.MutateKeywordPlanKeywordsResponse.partial_failure_error', index=0, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='results', full_name='google.ads.googleads.v1.services.MutateKeywordPlanKeywordsResponse.results', index=1, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=803, - serialized_end=972, -) - - -_MUTATEKEYWORDPLANKEYWORDRESULT = _descriptor.Descriptor( - name='MutateKeywordPlanKeywordResult', - full_name='google.ads.googleads.v1.services.MutateKeywordPlanKeywordResult', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.services.MutateKeywordPlanKeywordResult.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=974, - serialized_end=1029, -) - -_MUTATEKEYWORDPLANKEYWORDSREQUEST.fields_by_name['operations'].message_type = _KEYWORDPLANKEYWORDOPERATION -_KEYWORDPLANKEYWORDOPERATION.fields_by_name['update_mask'].message_type = google_dot_protobuf_dot_field__mask__pb2._FIELDMASK -_KEYWORDPLANKEYWORDOPERATION.fields_by_name['create'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_keyword__plan__keyword__pb2._KEYWORDPLANKEYWORD -_KEYWORDPLANKEYWORDOPERATION.fields_by_name['update'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_keyword__plan__keyword__pb2._KEYWORDPLANKEYWORD -_KEYWORDPLANKEYWORDOPERATION.oneofs_by_name['operation'].fields.append( - _KEYWORDPLANKEYWORDOPERATION.fields_by_name['create']) -_KEYWORDPLANKEYWORDOPERATION.fields_by_name['create'].containing_oneof = _KEYWORDPLANKEYWORDOPERATION.oneofs_by_name['operation'] -_KEYWORDPLANKEYWORDOPERATION.oneofs_by_name['operation'].fields.append( - _KEYWORDPLANKEYWORDOPERATION.fields_by_name['update']) -_KEYWORDPLANKEYWORDOPERATION.fields_by_name['update'].containing_oneof = _KEYWORDPLANKEYWORDOPERATION.oneofs_by_name['operation'] -_KEYWORDPLANKEYWORDOPERATION.oneofs_by_name['operation'].fields.append( - _KEYWORDPLANKEYWORDOPERATION.fields_by_name['remove']) -_KEYWORDPLANKEYWORDOPERATION.fields_by_name['remove'].containing_oneof = _KEYWORDPLANKEYWORDOPERATION.oneofs_by_name['operation'] -_MUTATEKEYWORDPLANKEYWORDSRESPONSE.fields_by_name['partial_failure_error'].message_type = google_dot_rpc_dot_status__pb2._STATUS -_MUTATEKEYWORDPLANKEYWORDSRESPONSE.fields_by_name['results'].message_type = _MUTATEKEYWORDPLANKEYWORDRESULT -DESCRIPTOR.message_types_by_name['GetKeywordPlanKeywordRequest'] = _GETKEYWORDPLANKEYWORDREQUEST -DESCRIPTOR.message_types_by_name['MutateKeywordPlanKeywordsRequest'] = _MUTATEKEYWORDPLANKEYWORDSREQUEST -DESCRIPTOR.message_types_by_name['KeywordPlanKeywordOperation'] = _KEYWORDPLANKEYWORDOPERATION -DESCRIPTOR.message_types_by_name['MutateKeywordPlanKeywordsResponse'] = _MUTATEKEYWORDPLANKEYWORDSRESPONSE -DESCRIPTOR.message_types_by_name['MutateKeywordPlanKeywordResult'] = _MUTATEKEYWORDPLANKEYWORDRESULT -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -GetKeywordPlanKeywordRequest = _reflection.GeneratedProtocolMessageType('GetKeywordPlanKeywordRequest', (_message.Message,), dict( - DESCRIPTOR = _GETKEYWORDPLANKEYWORDREQUEST, - __module__ = 'google.ads.googleads_v1.proto.services.keyword_plan_keyword_service_pb2' - , - __doc__ = """Request message for - [KeywordPlanKeywordService.GetKeywordPlanKeyword][google.ads.googleads.v1.services.KeywordPlanKeywordService.GetKeywordPlanKeyword]. - - - Attributes: - resource_name: - The resource name of the ad group keyword to fetch. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.GetKeywordPlanKeywordRequest) - )) -_sym_db.RegisterMessage(GetKeywordPlanKeywordRequest) - -MutateKeywordPlanKeywordsRequest = _reflection.GeneratedProtocolMessageType('MutateKeywordPlanKeywordsRequest', (_message.Message,), dict( - DESCRIPTOR = _MUTATEKEYWORDPLANKEYWORDSREQUEST, - __module__ = 'google.ads.googleads_v1.proto.services.keyword_plan_keyword_service_pb2' - , - __doc__ = """Request message for - [KeywordPlanKeywordService.MutateKeywordPlanKeywords][google.ads.googleads.v1.services.KeywordPlanKeywordService.MutateKeywordPlanKeywords]. - - - Attributes: - customer_id: - The ID of the customer whose Keyword Plan keywords are being - modified. - operations: - The list of operations to perform on individual Keyword Plan - keywords. - partial_failure: - If true, successful operations will be carried out and invalid - operations will return errors. If false, all operations will - be carried out in one transaction if and only if they are all - valid. Default is false. - validate_only: - If true, the request is validated but not executed. Only - errors are returned, not results. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.MutateKeywordPlanKeywordsRequest) - )) -_sym_db.RegisterMessage(MutateKeywordPlanKeywordsRequest) - -KeywordPlanKeywordOperation = _reflection.GeneratedProtocolMessageType('KeywordPlanKeywordOperation', (_message.Message,), dict( - DESCRIPTOR = _KEYWORDPLANKEYWORDOPERATION, - __module__ = 'google.ads.googleads_v1.proto.services.keyword_plan_keyword_service_pb2' - , - __doc__ = """A single operation (create, update, remove) on a Keyword Plan keyword. - - - Attributes: - update_mask: - The FieldMask that determines which resource fields are - modified in an update. - operation: - The mutate operation. - create: - Create operation: No resource name is expected for the new - Keyword Plan ad group keyword. - update: - Update operation: The Keyword Plan keyword is expected to have - a valid resource name. - remove: - Remove operation: A resource name for the removed Keyword Plan - keyword is expected, in this format: ``customers/{customer_id - }/keywordPlanKeywords/{kp_ad_group_keyword_id}`` - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.KeywordPlanKeywordOperation) - )) -_sym_db.RegisterMessage(KeywordPlanKeywordOperation) - -MutateKeywordPlanKeywordsResponse = _reflection.GeneratedProtocolMessageType('MutateKeywordPlanKeywordsResponse', (_message.Message,), dict( - DESCRIPTOR = _MUTATEKEYWORDPLANKEYWORDSRESPONSE, - __module__ = 'google.ads.googleads_v1.proto.services.keyword_plan_keyword_service_pb2' - , - __doc__ = """Response message for a Keyword Plan keyword mutate. - - - Attributes: - partial_failure_error: - Errors that pertain to operation failures in the partial - failure mode. Returned only when partial\_failure = true and - all errors occur inside the operations. If any errors occur - outside the operations (e.g. auth errors), we return an RPC - level error. - results: - All results for the mutate. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.MutateKeywordPlanKeywordsResponse) - )) -_sym_db.RegisterMessage(MutateKeywordPlanKeywordsResponse) - -MutateKeywordPlanKeywordResult = _reflection.GeneratedProtocolMessageType('MutateKeywordPlanKeywordResult', (_message.Message,), dict( - DESCRIPTOR = _MUTATEKEYWORDPLANKEYWORDRESULT, - __module__ = 'google.ads.googleads_v1.proto.services.keyword_plan_keyword_service_pb2' - , - __doc__ = """The result for the Keyword Plan keyword mutate. - - - Attributes: - resource_name: - Returned for successful operations. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.MutateKeywordPlanKeywordResult) - )) -_sym_db.RegisterMessage(MutateKeywordPlanKeywordResult) - - -DESCRIPTOR._options = None - -_KEYWORDPLANKEYWORDSERVICE = _descriptor.ServiceDescriptor( - name='KeywordPlanKeywordService', - full_name='google.ads.googleads.v1.services.KeywordPlanKeywordService', - file=DESCRIPTOR, - index=0, - serialized_options=None, - serialized_start=1032, - serialized_end=1503, - methods=[ - _descriptor.MethodDescriptor( - name='GetKeywordPlanKeyword', - full_name='google.ads.googleads.v1.services.KeywordPlanKeywordService.GetKeywordPlanKeyword', - index=0, - containing_service=None, - input_type=_GETKEYWORDPLANKEYWORDREQUEST, - output_type=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_keyword__plan__keyword__pb2._KEYWORDPLANKEYWORD, - serialized_options=_b('\202\323\344\223\0027\0225/v1/{resource_name=customers/*/keywordPlanKeywords/*}'), - ), - _descriptor.MethodDescriptor( - name='MutateKeywordPlanKeywords', - full_name='google.ads.googleads.v1.services.KeywordPlanKeywordService.MutateKeywordPlanKeywords', - index=1, - containing_service=None, - input_type=_MUTATEKEYWORDPLANKEYWORDSREQUEST, - output_type=_MUTATEKEYWORDPLANKEYWORDSRESPONSE, - serialized_options=_b('\202\323\344\223\002=\"8/v1/customers/{customer_id=*}/keywordPlanKeywords:mutate:\001*'), - ), -]) -_sym_db.RegisterServiceDescriptor(_KEYWORDPLANKEYWORDSERVICE) - -DESCRIPTOR.services_by_name['KeywordPlanKeywordService'] = _KEYWORDPLANKEYWORDSERVICE - -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/services/keyword_plan_keyword_service_pb2_grpc.py b/google/ads/google_ads/v1/proto/services/keyword_plan_keyword_service_pb2_grpc.py deleted file mode 100644 index 7a85321ae..000000000 --- a/google/ads/google_ads/v1/proto/services/keyword_plan_keyword_service_pb2_grpc.py +++ /dev/null @@ -1,69 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -import grpc - -from google.ads.google_ads.v1.proto.resources import keyword_plan_keyword_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_keyword__plan__keyword__pb2 -from google.ads.google_ads.v1.proto.services import keyword_plan_keyword_service_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_keyword__plan__keyword__service__pb2 - - -class KeywordPlanKeywordServiceStub(object): - """Proto file describing the keyword plan keyword service. - - Service to manage Keyword Plan ad group keywords. - """ - - def __init__(self, channel): - """Constructor. - - Args: - channel: A grpc.Channel. - """ - self.GetKeywordPlanKeyword = channel.unary_unary( - '/google.ads.googleads.v1.services.KeywordPlanKeywordService/GetKeywordPlanKeyword', - request_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_keyword__plan__keyword__service__pb2.GetKeywordPlanKeywordRequest.SerializeToString, - response_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_keyword__plan__keyword__pb2.KeywordPlanKeyword.FromString, - ) - self.MutateKeywordPlanKeywords = channel.unary_unary( - '/google.ads.googleads.v1.services.KeywordPlanKeywordService/MutateKeywordPlanKeywords', - request_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_keyword__plan__keyword__service__pb2.MutateKeywordPlanKeywordsRequest.SerializeToString, - response_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_keyword__plan__keyword__service__pb2.MutateKeywordPlanKeywordsResponse.FromString, - ) - - -class KeywordPlanKeywordServiceServicer(object): - """Proto file describing the keyword plan keyword service. - - Service to manage Keyword Plan ad group keywords. - """ - - def GetKeywordPlanKeyword(self, request, context): - """Returns the requested Keyword Plan keyword in full detail. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def MutateKeywordPlanKeywords(self, request, context): - """Creates, updates, or removes Keyword Plan keywords. Operation statuses are - returned. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - -def add_KeywordPlanKeywordServiceServicer_to_server(servicer, server): - rpc_method_handlers = { - 'GetKeywordPlanKeyword': grpc.unary_unary_rpc_method_handler( - servicer.GetKeywordPlanKeyword, - request_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_keyword__plan__keyword__service__pb2.GetKeywordPlanKeywordRequest.FromString, - response_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_keyword__plan__keyword__pb2.KeywordPlanKeyword.SerializeToString, - ), - 'MutateKeywordPlanKeywords': grpc.unary_unary_rpc_method_handler( - servicer.MutateKeywordPlanKeywords, - request_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_keyword__plan__keyword__service__pb2.MutateKeywordPlanKeywordsRequest.FromString, - response_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_keyword__plan__keyword__service__pb2.MutateKeywordPlanKeywordsResponse.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'google.ads.googleads.v1.services.KeywordPlanKeywordService', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) diff --git a/google/ads/google_ads/v1/proto/services/keyword_plan_negative_keyword_service_pb2.py b/google/ads/google_ads/v1/proto/services/keyword_plan_negative_keyword_service_pb2.py deleted file mode 100644 index fe798cb7a..000000000 --- a/google/ads/google_ads/v1/proto/services/keyword_plan_negative_keyword_service_pb2.py +++ /dev/null @@ -1,407 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/services/keyword_plan_negative_keyword_service.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.ads.google_ads.v1.proto.resources import keyword_plan_negative_keyword_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_keyword__plan__negative__keyword__pb2 -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 -from google.protobuf import field_mask_pb2 as google_dot_protobuf_dot_field__mask__pb2 -from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 -from google.rpc import status_pb2 as google_dot_rpc_dot_status__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/services/keyword_plan_negative_keyword_service.proto', - package='google.ads.googleads.v1.services', - syntax='proto3', - serialized_options=_b('\n$com.google.ads.googleads.v1.servicesB&KeywordPlanNegativeKeywordServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v1/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V1.Services\312\002 Google\\Ads\\GoogleAds\\V1\\Services\352\002$Google::Ads::GoogleAds::V1::Services'), - serialized_pb=_b('\nRgoogle/ads/googleads_v1/proto/services/keyword_plan_negative_keyword_service.proto\x12 google.ads.googleads.v1.services\x1aKgoogle/ads/googleads_v1/proto/resources/keyword_plan_negative_keyword.proto\x1a\x1cgoogle/api/annotations.proto\x1a google/protobuf/field_mask.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x17google/rpc/status.proto\"=\n$GetKeywordPlanNegativeKeywordRequest\x12\x15\n\rresource_name\x18\x01 \x01(\t\"\xca\x01\n(MutateKeywordPlanNegativeKeywordsRequest\x12\x13\n\x0b\x63ustomer_id\x18\x01 \x01(\t\x12Y\n\noperations\x18\x02 \x03(\x0b\x32\x45.google.ads.googleads.v1.services.KeywordPlanNegativeKeywordOperation\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\"\x97\x02\n#KeywordPlanNegativeKeywordOperation\x12/\n\x0bupdate_mask\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12O\n\x06\x63reate\x18\x01 \x01(\x0b\x32=.google.ads.googleads.v1.resources.KeywordPlanNegativeKeywordH\x00\x12O\n\x06update\x18\x02 \x01(\x0b\x32=.google.ads.googleads.v1.resources.KeywordPlanNegativeKeywordH\x00\x12\x10\n\x06remove\x18\x03 \x01(\tH\x00\x42\x0b\n\toperation\"\xb9\x01\n)MutateKeywordPlanNegativeKeywordsResponse\x12\x31\n\x15partial_failure_error\x18\x03 \x01(\x0b\x32\x12.google.rpc.Status\x12Y\n\x07results\x18\x02 \x03(\x0b\x32H.google.ads.googleads.v1.services.MutateKeywordPlanNegativeKeywordResult\"?\n&MutateKeywordPlanNegativeKeywordResult\x12\x15\n\rresource_name\x18\x01 \x01(\t2\x9f\x04\n!KeywordPlanNegativeKeywordService\x12\xed\x01\n\x1dGetKeywordPlanNegativeKeyword\x12\x46.google.ads.googleads.v1.services.GetKeywordPlanNegativeKeywordRequest\x1a=.google.ads.googleads.v1.resources.KeywordPlanNegativeKeyword\"E\x82\xd3\xe4\x93\x02?\x12=/v1/{resource_name=customers/*/keywordPlanNegativeKeywords/*}\x12\x89\x02\n!MutateKeywordPlanNegativeKeywords\x12J.google.ads.googleads.v1.services.MutateKeywordPlanNegativeKeywordsRequest\x1aK.google.ads.googleads.v1.services.MutateKeywordPlanNegativeKeywordsResponse\"K\x82\xd3\xe4\x93\x02\x45\"@/v1/customers/{customer_id=*}/keywordPlanNegativeKeywords:mutate:\x01*B\x8d\x02\n$com.google.ads.googleads.v1.servicesB&KeywordPlanNegativeKeywordServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v1/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V1.Services\xca\x02 Google\\Ads\\GoogleAds\\V1\\Services\xea\x02$Google::Ads::GoogleAds::V1::Servicesb\x06proto3') - , - dependencies=[google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_keyword__plan__negative__keyword__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_protobuf_dot_field__mask__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_rpc_dot_status__pb2.DESCRIPTOR,]) - - - - -_GETKEYWORDPLANNEGATIVEKEYWORDREQUEST = _descriptor.Descriptor( - name='GetKeywordPlanNegativeKeywordRequest', - full_name='google.ads.googleads.v1.services.GetKeywordPlanNegativeKeywordRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.services.GetKeywordPlanNegativeKeywordRequest.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=318, - serialized_end=379, -) - - -_MUTATEKEYWORDPLANNEGATIVEKEYWORDSREQUEST = _descriptor.Descriptor( - name='MutateKeywordPlanNegativeKeywordsRequest', - full_name='google.ads.googleads.v1.services.MutateKeywordPlanNegativeKeywordsRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='customer_id', full_name='google.ads.googleads.v1.services.MutateKeywordPlanNegativeKeywordsRequest.customer_id', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='operations', full_name='google.ads.googleads.v1.services.MutateKeywordPlanNegativeKeywordsRequest.operations', index=1, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='partial_failure', full_name='google.ads.googleads.v1.services.MutateKeywordPlanNegativeKeywordsRequest.partial_failure', index=2, - number=3, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='validate_only', full_name='google.ads.googleads.v1.services.MutateKeywordPlanNegativeKeywordsRequest.validate_only', index=3, - number=4, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=382, - serialized_end=584, -) - - -_KEYWORDPLANNEGATIVEKEYWORDOPERATION = _descriptor.Descriptor( - name='KeywordPlanNegativeKeywordOperation', - full_name='google.ads.googleads.v1.services.KeywordPlanNegativeKeywordOperation', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='update_mask', full_name='google.ads.googleads.v1.services.KeywordPlanNegativeKeywordOperation.update_mask', index=0, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='create', full_name='google.ads.googleads.v1.services.KeywordPlanNegativeKeywordOperation.create', index=1, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='update', full_name='google.ads.googleads.v1.services.KeywordPlanNegativeKeywordOperation.update', index=2, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='remove', full_name='google.ads.googleads.v1.services.KeywordPlanNegativeKeywordOperation.remove', index=3, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='operation', full_name='google.ads.googleads.v1.services.KeywordPlanNegativeKeywordOperation.operation', - index=0, containing_type=None, fields=[]), - ], - serialized_start=587, - serialized_end=866, -) - - -_MUTATEKEYWORDPLANNEGATIVEKEYWORDSRESPONSE = _descriptor.Descriptor( - name='MutateKeywordPlanNegativeKeywordsResponse', - full_name='google.ads.googleads.v1.services.MutateKeywordPlanNegativeKeywordsResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='partial_failure_error', full_name='google.ads.googleads.v1.services.MutateKeywordPlanNegativeKeywordsResponse.partial_failure_error', index=0, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='results', full_name='google.ads.googleads.v1.services.MutateKeywordPlanNegativeKeywordsResponse.results', index=1, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=869, - serialized_end=1054, -) - - -_MUTATEKEYWORDPLANNEGATIVEKEYWORDRESULT = _descriptor.Descriptor( - name='MutateKeywordPlanNegativeKeywordResult', - full_name='google.ads.googleads.v1.services.MutateKeywordPlanNegativeKeywordResult', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.services.MutateKeywordPlanNegativeKeywordResult.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1056, - serialized_end=1119, -) - -_MUTATEKEYWORDPLANNEGATIVEKEYWORDSREQUEST.fields_by_name['operations'].message_type = _KEYWORDPLANNEGATIVEKEYWORDOPERATION -_KEYWORDPLANNEGATIVEKEYWORDOPERATION.fields_by_name['update_mask'].message_type = google_dot_protobuf_dot_field__mask__pb2._FIELDMASK -_KEYWORDPLANNEGATIVEKEYWORDOPERATION.fields_by_name['create'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_keyword__plan__negative__keyword__pb2._KEYWORDPLANNEGATIVEKEYWORD -_KEYWORDPLANNEGATIVEKEYWORDOPERATION.fields_by_name['update'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_keyword__plan__negative__keyword__pb2._KEYWORDPLANNEGATIVEKEYWORD -_KEYWORDPLANNEGATIVEKEYWORDOPERATION.oneofs_by_name['operation'].fields.append( - _KEYWORDPLANNEGATIVEKEYWORDOPERATION.fields_by_name['create']) -_KEYWORDPLANNEGATIVEKEYWORDOPERATION.fields_by_name['create'].containing_oneof = _KEYWORDPLANNEGATIVEKEYWORDOPERATION.oneofs_by_name['operation'] -_KEYWORDPLANNEGATIVEKEYWORDOPERATION.oneofs_by_name['operation'].fields.append( - _KEYWORDPLANNEGATIVEKEYWORDOPERATION.fields_by_name['update']) -_KEYWORDPLANNEGATIVEKEYWORDOPERATION.fields_by_name['update'].containing_oneof = _KEYWORDPLANNEGATIVEKEYWORDOPERATION.oneofs_by_name['operation'] -_KEYWORDPLANNEGATIVEKEYWORDOPERATION.oneofs_by_name['operation'].fields.append( - _KEYWORDPLANNEGATIVEKEYWORDOPERATION.fields_by_name['remove']) -_KEYWORDPLANNEGATIVEKEYWORDOPERATION.fields_by_name['remove'].containing_oneof = _KEYWORDPLANNEGATIVEKEYWORDOPERATION.oneofs_by_name['operation'] -_MUTATEKEYWORDPLANNEGATIVEKEYWORDSRESPONSE.fields_by_name['partial_failure_error'].message_type = google_dot_rpc_dot_status__pb2._STATUS -_MUTATEKEYWORDPLANNEGATIVEKEYWORDSRESPONSE.fields_by_name['results'].message_type = _MUTATEKEYWORDPLANNEGATIVEKEYWORDRESULT -DESCRIPTOR.message_types_by_name['GetKeywordPlanNegativeKeywordRequest'] = _GETKEYWORDPLANNEGATIVEKEYWORDREQUEST -DESCRIPTOR.message_types_by_name['MutateKeywordPlanNegativeKeywordsRequest'] = _MUTATEKEYWORDPLANNEGATIVEKEYWORDSREQUEST -DESCRIPTOR.message_types_by_name['KeywordPlanNegativeKeywordOperation'] = _KEYWORDPLANNEGATIVEKEYWORDOPERATION -DESCRIPTOR.message_types_by_name['MutateKeywordPlanNegativeKeywordsResponse'] = _MUTATEKEYWORDPLANNEGATIVEKEYWORDSRESPONSE -DESCRIPTOR.message_types_by_name['MutateKeywordPlanNegativeKeywordResult'] = _MUTATEKEYWORDPLANNEGATIVEKEYWORDRESULT -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -GetKeywordPlanNegativeKeywordRequest = _reflection.GeneratedProtocolMessageType('GetKeywordPlanNegativeKeywordRequest', (_message.Message,), dict( - DESCRIPTOR = _GETKEYWORDPLANNEGATIVEKEYWORDREQUEST, - __module__ = 'google.ads.googleads_v1.proto.services.keyword_plan_negative_keyword_service_pb2' - , - __doc__ = """Request message for - [KeywordPlanNegativeKeywordService.GetKeywordPlanNegativeKeyword][google.ads.googleads.v1.services.KeywordPlanNegativeKeywordService.GetKeywordPlanNegativeKeyword]. - - - Attributes: - resource_name: - The resource name of the plan to fetch. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.GetKeywordPlanNegativeKeywordRequest) - )) -_sym_db.RegisterMessage(GetKeywordPlanNegativeKeywordRequest) - -MutateKeywordPlanNegativeKeywordsRequest = _reflection.GeneratedProtocolMessageType('MutateKeywordPlanNegativeKeywordsRequest', (_message.Message,), dict( - DESCRIPTOR = _MUTATEKEYWORDPLANNEGATIVEKEYWORDSREQUEST, - __module__ = 'google.ads.googleads_v1.proto.services.keyword_plan_negative_keyword_service_pb2' - , - __doc__ = """Request message for - [KeywordPlanNegativeKeywordService.MutateKeywordPlanNegativeKeywords][google.ads.googleads.v1.services.KeywordPlanNegativeKeywordService.MutateKeywordPlanNegativeKeywords]. - - - Attributes: - customer_id: - The ID of the customer whose negative keywords are being - modified. - operations: - The list of operations to perform on individual Keyword Plan - negative keywords. - partial_failure: - If true, successful operations will be carried out and invalid - operations will return errors. If false, all operations will - be carried out in one transaction if and only if they are all - valid. Default is false. - validate_only: - If true, the request is validated but not executed. Only - errors are returned, not results. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.MutateKeywordPlanNegativeKeywordsRequest) - )) -_sym_db.RegisterMessage(MutateKeywordPlanNegativeKeywordsRequest) - -KeywordPlanNegativeKeywordOperation = _reflection.GeneratedProtocolMessageType('KeywordPlanNegativeKeywordOperation', (_message.Message,), dict( - DESCRIPTOR = _KEYWORDPLANNEGATIVEKEYWORDOPERATION, - __module__ = 'google.ads.googleads_v1.proto.services.keyword_plan_negative_keyword_service_pb2' - , - __doc__ = """A single operation (create, update, remove) on a Keyword Plan negative - keyword. - - - Attributes: - update_mask: - The FieldMask that determines which resource fields are - modified in an update. - operation: - The mutate operation. - create: - Create operation: No resource name is expected for the new - Keyword Plan negative keyword. - update: - Update operation: The Keyword Plan negative keyword expected - to have a valid resource name. - remove: - Remove operation: A resource name for the removed Keyword Plan - negative keywords expected in this format: ``customers/{custo - mer_id}/keywordPlanNegativeKeywords/{kp_negative_keyword_id}`` - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.KeywordPlanNegativeKeywordOperation) - )) -_sym_db.RegisterMessage(KeywordPlanNegativeKeywordOperation) - -MutateKeywordPlanNegativeKeywordsResponse = _reflection.GeneratedProtocolMessageType('MutateKeywordPlanNegativeKeywordsResponse', (_message.Message,), dict( - DESCRIPTOR = _MUTATEKEYWORDPLANNEGATIVEKEYWORDSRESPONSE, - __module__ = 'google.ads.googleads_v1.proto.services.keyword_plan_negative_keyword_service_pb2' - , - __doc__ = """Response message for a Keyword Plan negative keyword mutate. - - - Attributes: - partial_failure_error: - Errors that pertain to operation failures in the partial - failure mode. Returned only when partial\_failure = true and - all errors occur inside the operations. If any errors occur - outside the operations (e.g. auth errors), we return an RPC - level error. - results: - All results for the mutate. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.MutateKeywordPlanNegativeKeywordsResponse) - )) -_sym_db.RegisterMessage(MutateKeywordPlanNegativeKeywordsResponse) - -MutateKeywordPlanNegativeKeywordResult = _reflection.GeneratedProtocolMessageType('MutateKeywordPlanNegativeKeywordResult', (_message.Message,), dict( - DESCRIPTOR = _MUTATEKEYWORDPLANNEGATIVEKEYWORDRESULT, - __module__ = 'google.ads.googleads_v1.proto.services.keyword_plan_negative_keyword_service_pb2' - , - __doc__ = """The result for the Keyword Plan negative keyword mutate. - - - Attributes: - resource_name: - Returned for successful operations. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.MutateKeywordPlanNegativeKeywordResult) - )) -_sym_db.RegisterMessage(MutateKeywordPlanNegativeKeywordResult) - - -DESCRIPTOR._options = None - -_KEYWORDPLANNEGATIVEKEYWORDSERVICE = _descriptor.ServiceDescriptor( - name='KeywordPlanNegativeKeywordService', - full_name='google.ads.googleads.v1.services.KeywordPlanNegativeKeywordService', - file=DESCRIPTOR, - index=0, - serialized_options=None, - serialized_start=1122, - serialized_end=1665, - methods=[ - _descriptor.MethodDescriptor( - name='GetKeywordPlanNegativeKeyword', - full_name='google.ads.googleads.v1.services.KeywordPlanNegativeKeywordService.GetKeywordPlanNegativeKeyword', - index=0, - containing_service=None, - input_type=_GETKEYWORDPLANNEGATIVEKEYWORDREQUEST, - output_type=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_keyword__plan__negative__keyword__pb2._KEYWORDPLANNEGATIVEKEYWORD, - serialized_options=_b('\202\323\344\223\002?\022=/v1/{resource_name=customers/*/keywordPlanNegativeKeywords/*}'), - ), - _descriptor.MethodDescriptor( - name='MutateKeywordPlanNegativeKeywords', - full_name='google.ads.googleads.v1.services.KeywordPlanNegativeKeywordService.MutateKeywordPlanNegativeKeywords', - index=1, - containing_service=None, - input_type=_MUTATEKEYWORDPLANNEGATIVEKEYWORDSREQUEST, - output_type=_MUTATEKEYWORDPLANNEGATIVEKEYWORDSRESPONSE, - serialized_options=_b('\202\323\344\223\002E\"@/v1/customers/{customer_id=*}/keywordPlanNegativeKeywords:mutate:\001*'), - ), -]) -_sym_db.RegisterServiceDescriptor(_KEYWORDPLANNEGATIVEKEYWORDSERVICE) - -DESCRIPTOR.services_by_name['KeywordPlanNegativeKeywordService'] = _KEYWORDPLANNEGATIVEKEYWORDSERVICE - -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/services/keyword_plan_negative_keyword_service_pb2_grpc.py b/google/ads/google_ads/v1/proto/services/keyword_plan_negative_keyword_service_pb2_grpc.py deleted file mode 100644 index dba928133..000000000 --- a/google/ads/google_ads/v1/proto/services/keyword_plan_negative_keyword_service_pb2_grpc.py +++ /dev/null @@ -1,69 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -import grpc - -from google.ads.google_ads.v1.proto.resources import keyword_plan_negative_keyword_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_keyword__plan__negative__keyword__pb2 -from google.ads.google_ads.v1.proto.services import keyword_plan_negative_keyword_service_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_keyword__plan__negative__keyword__service__pb2 - - -class KeywordPlanNegativeKeywordServiceStub(object): - """Proto file describing the keyword plan negative keyword service. - - Service to manage Keyword Plan negative keywords. - """ - - def __init__(self, channel): - """Constructor. - - Args: - channel: A grpc.Channel. - """ - self.GetKeywordPlanNegativeKeyword = channel.unary_unary( - '/google.ads.googleads.v1.services.KeywordPlanNegativeKeywordService/GetKeywordPlanNegativeKeyword', - request_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_keyword__plan__negative__keyword__service__pb2.GetKeywordPlanNegativeKeywordRequest.SerializeToString, - response_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_keyword__plan__negative__keyword__pb2.KeywordPlanNegativeKeyword.FromString, - ) - self.MutateKeywordPlanNegativeKeywords = channel.unary_unary( - '/google.ads.googleads.v1.services.KeywordPlanNegativeKeywordService/MutateKeywordPlanNegativeKeywords', - request_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_keyword__plan__negative__keyword__service__pb2.MutateKeywordPlanNegativeKeywordsRequest.SerializeToString, - response_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_keyword__plan__negative__keyword__service__pb2.MutateKeywordPlanNegativeKeywordsResponse.FromString, - ) - - -class KeywordPlanNegativeKeywordServiceServicer(object): - """Proto file describing the keyword plan negative keyword service. - - Service to manage Keyword Plan negative keywords. - """ - - def GetKeywordPlanNegativeKeyword(self, request, context): - """Returns the requested plan in full detail. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def MutateKeywordPlanNegativeKeywords(self, request, context): - """Creates, updates, or removes Keyword Plan negative keywords. Operation - statuses are returned. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - -def add_KeywordPlanNegativeKeywordServiceServicer_to_server(servicer, server): - rpc_method_handlers = { - 'GetKeywordPlanNegativeKeyword': grpc.unary_unary_rpc_method_handler( - servicer.GetKeywordPlanNegativeKeyword, - request_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_keyword__plan__negative__keyword__service__pb2.GetKeywordPlanNegativeKeywordRequest.FromString, - response_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_keyword__plan__negative__keyword__pb2.KeywordPlanNegativeKeyword.SerializeToString, - ), - 'MutateKeywordPlanNegativeKeywords': grpc.unary_unary_rpc_method_handler( - servicer.MutateKeywordPlanNegativeKeywords, - request_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_keyword__plan__negative__keyword__service__pb2.MutateKeywordPlanNegativeKeywordsRequest.FromString, - response_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_keyword__plan__negative__keyword__service__pb2.MutateKeywordPlanNegativeKeywordsResponse.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'google.ads.googleads.v1.services.KeywordPlanNegativeKeywordService', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) diff --git a/google/ads/google_ads/v1/proto/services/keyword_plan_service_pb2.py b/google/ads/google_ads/v1/proto/services/keyword_plan_service_pb2.py deleted file mode 100644 index b71b4d082..000000000 --- a/google/ads/google_ads/v1/proto/services/keyword_plan_service_pb2.py +++ /dev/null @@ -1,970 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/services/keyword_plan_service.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.ads.google_ads.v1.proto.common import keyword_plan_common_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_keyword__plan__common__pb2 -from google.ads.google_ads.v1.proto.resources import keyword_plan_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_keyword__plan__pb2 -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 -from google.protobuf import field_mask_pb2 as google_dot_protobuf_dot_field__mask__pb2 -from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 -from google.rpc import status_pb2 as google_dot_rpc_dot_status__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/services/keyword_plan_service.proto', - package='google.ads.googleads.v1.services', - syntax='proto3', - serialized_options=_b('\n$com.google.ads.googleads.v1.servicesB\027KeywordPlanServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v1/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V1.Services\312\002 Google\\Ads\\GoogleAds\\V1\\Services\352\002$Google::Ads::GoogleAds::V1::Services'), - serialized_pb=_b('\nAgoogle/ads/googleads_v1/proto/services/keyword_plan_service.proto\x12 google.ads.googleads.v1.services\x1a>google/ads/googleads_v1/proto/common/keyword_plan_common.proto\x1a:google/ads/googleads_v1/proto/resources/keyword_plan.proto\x1a\x1cgoogle/api/annotations.proto\x1a google/protobuf/field_mask.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x17google/rpc/status.proto\".\n\x15GetKeywordPlanRequest\x12\x15\n\rresource_name\x18\x01 \x01(\t\"\xac\x01\n\x19MutateKeywordPlansRequest\x12\x13\n\x0b\x63ustomer_id\x18\x01 \x01(\t\x12J\n\noperations\x18\x02 \x03(\x0b\x32\x36.google.ads.googleads.v1.services.KeywordPlanOperation\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\"\xea\x01\n\x14KeywordPlanOperation\x12/\n\x0bupdate_mask\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12@\n\x06\x63reate\x18\x01 \x01(\x0b\x32..google.ads.googleads.v1.resources.KeywordPlanH\x00\x12@\n\x06update\x18\x02 \x01(\x0b\x32..google.ads.googleads.v1.resources.KeywordPlanH\x00\x12\x10\n\x06remove\x18\x03 \x01(\tH\x00\x42\x0b\n\toperation\"\x9c\x01\n\x1aMutateKeywordPlansResponse\x12\x31\n\x15partial_failure_error\x18\x03 \x01(\x0b\x32\x12.google.rpc.Status\x12K\n\x07results\x18\x02 \x03(\x0b\x32:.google.ads.googleads.v1.services.MutateKeywordPlansResult\"1\n\x18MutateKeywordPlansResult\x12\x15\n\rresource_name\x18\x01 \x01(\t\"6\n\x1eGenerateForecastMetricsRequest\x12\x14\n\x0ckeyword_plan\x18\x01 \x01(\t\"\xaf\x02\n\x1fGenerateForecastMetricsResponse\x12Y\n\x12\x63\x61mpaign_forecasts\x18\x01 \x03(\x0b\x32=.google.ads.googleads.v1.services.KeywordPlanCampaignForecast\x12X\n\x12\x61\x64_group_forecasts\x18\x02 \x03(\x0b\x32<.google.ads.googleads.v1.services.KeywordPlanAdGroupForecast\x12W\n\x11keyword_forecasts\x18\x03 \x03(\x0b\x32<.google.ads.googleads.v1.services.KeywordPlanKeywordForecast\"\xa8\x01\n\x1bKeywordPlanCampaignForecast\x12;\n\x15keyword_plan_campaign\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12L\n\x11\x63\x61mpaign_forecast\x18\x02 \x01(\x0b\x32\x31.google.ads.googleads.v1.services.ForecastMetrics\"\xa7\x01\n\x1aKeywordPlanAdGroupForecast\x12;\n\x15keyword_plan_ad_group\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12L\n\x11\x61\x64_group_forecast\x18\x02 \x01(\x0b\x32\x31.google.ads.googleads.v1.services.ForecastMetrics\"\xae\x01\n\x1aKeywordPlanKeywordForecast\x12\x43\n\x1dkeyword_plan_ad_group_keyword\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12K\n\x10keyword_forecast\x18\x02 \x01(\x0b\x32\x31.google.ads.googleads.v1.services.ForecastMetrics\"\x81\x02\n\x0f\x46orecastMetrics\x12\x31\n\x0bimpressions\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12)\n\x03\x63tr\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12\x30\n\x0b\x61verage_cpc\x18\x03 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12,\n\x06\x63licks\x18\x05 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12\x30\n\x0b\x63ost_micros\x18\x06 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\"8\n GenerateHistoricalMetricsRequest\x12\x14\n\x0ckeyword_plan\x18\x01 \x01(\t\"{\n!GenerateHistoricalMetricsResponse\x12V\n\x07metrics\x18\x01 \x03(\x0b\x32\x45.google.ads.googleads.v1.services.KeywordPlanKeywordHistoricalMetrics\"\xb0\x01\n#KeywordPlanKeywordHistoricalMetrics\x12\x32\n\x0csearch_query\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12U\n\x0fkeyword_metrics\x18\x02 \x01(\x0b\x32<.google.ads.googleads.v1.common.KeywordPlanHistoricalMetrics2\x86\x07\n\x12KeywordPlanService\x12\xb1\x01\n\x0eGetKeywordPlan\x12\x37.google.ads.googleads.v1.services.GetKeywordPlanRequest\x1a..google.ads.googleads.v1.resources.KeywordPlan\"6\x82\xd3\xe4\x93\x02\x30\x12./v1/{resource_name=customers/*/keywordPlans/*}\x12\xcd\x01\n\x12MutateKeywordPlans\x12;.google.ads.googleads.v1.services.MutateKeywordPlansRequest\x1a<.google.ads.googleads.v1.services.MutateKeywordPlansResponse\"<\x82\xd3\xe4\x93\x02\x36\"1/v1/customers/{customer_id=*}/keywordPlans:mutate:\x01*\x12\xf0\x01\n\x17GenerateForecastMetrics\x12@.google.ads.googleads.v1.services.GenerateForecastMetricsRequest\x1a\x41.google.ads.googleads.v1.services.GenerateForecastMetricsResponse\"P\x82\xd3\xe4\x93\x02J\"E/v1/{keyword_plan=customers/*/keywordPlans/*}:generateForecastMetrics:\x01*\x12\xf8\x01\n\x19GenerateHistoricalMetrics\x12\x42.google.ads.googleads.v1.services.GenerateHistoricalMetricsRequest\x1a\x43.google.ads.googleads.v1.services.GenerateHistoricalMetricsResponse\"R\x82\xd3\xe4\x93\x02L\"G/v1/{keyword_plan=customers/*/keywordPlans/*}:generateHistoricalMetrics:\x01*B\xfe\x01\n$com.google.ads.googleads.v1.servicesB\x17KeywordPlanServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v1/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V1.Services\xca\x02 Google\\Ads\\GoogleAds\\V1\\Services\xea\x02$Google::Ads::GoogleAds::V1::Servicesb\x06proto3') - , - dependencies=[google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_keyword__plan__common__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_keyword__plan__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_protobuf_dot_field__mask__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_rpc_dot_status__pb2.DESCRIPTOR,]) - - - - -_GETKEYWORDPLANREQUEST = _descriptor.Descriptor( - name='GetKeywordPlanRequest', - full_name='google.ads.googleads.v1.services.GetKeywordPlanRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.services.GetKeywordPlanRequest.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=348, - serialized_end=394, -) - - -_MUTATEKEYWORDPLANSREQUEST = _descriptor.Descriptor( - name='MutateKeywordPlansRequest', - full_name='google.ads.googleads.v1.services.MutateKeywordPlansRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='customer_id', full_name='google.ads.googleads.v1.services.MutateKeywordPlansRequest.customer_id', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='operations', full_name='google.ads.googleads.v1.services.MutateKeywordPlansRequest.operations', index=1, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='partial_failure', full_name='google.ads.googleads.v1.services.MutateKeywordPlansRequest.partial_failure', index=2, - number=3, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='validate_only', full_name='google.ads.googleads.v1.services.MutateKeywordPlansRequest.validate_only', index=3, - number=4, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=397, - serialized_end=569, -) - - -_KEYWORDPLANOPERATION = _descriptor.Descriptor( - name='KeywordPlanOperation', - full_name='google.ads.googleads.v1.services.KeywordPlanOperation', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='update_mask', full_name='google.ads.googleads.v1.services.KeywordPlanOperation.update_mask', index=0, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='create', full_name='google.ads.googleads.v1.services.KeywordPlanOperation.create', index=1, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='update', full_name='google.ads.googleads.v1.services.KeywordPlanOperation.update', index=2, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='remove', full_name='google.ads.googleads.v1.services.KeywordPlanOperation.remove', index=3, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='operation', full_name='google.ads.googleads.v1.services.KeywordPlanOperation.operation', - index=0, containing_type=None, fields=[]), - ], - serialized_start=572, - serialized_end=806, -) - - -_MUTATEKEYWORDPLANSRESPONSE = _descriptor.Descriptor( - name='MutateKeywordPlansResponse', - full_name='google.ads.googleads.v1.services.MutateKeywordPlansResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='partial_failure_error', full_name='google.ads.googleads.v1.services.MutateKeywordPlansResponse.partial_failure_error', index=0, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='results', full_name='google.ads.googleads.v1.services.MutateKeywordPlansResponse.results', index=1, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=809, - serialized_end=965, -) - - -_MUTATEKEYWORDPLANSRESULT = _descriptor.Descriptor( - name='MutateKeywordPlansResult', - full_name='google.ads.googleads.v1.services.MutateKeywordPlansResult', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.services.MutateKeywordPlansResult.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=967, - serialized_end=1016, -) - - -_GENERATEFORECASTMETRICSREQUEST = _descriptor.Descriptor( - name='GenerateForecastMetricsRequest', - full_name='google.ads.googleads.v1.services.GenerateForecastMetricsRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='keyword_plan', full_name='google.ads.googleads.v1.services.GenerateForecastMetricsRequest.keyword_plan', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1018, - serialized_end=1072, -) - - -_GENERATEFORECASTMETRICSRESPONSE = _descriptor.Descriptor( - name='GenerateForecastMetricsResponse', - full_name='google.ads.googleads.v1.services.GenerateForecastMetricsResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='campaign_forecasts', full_name='google.ads.googleads.v1.services.GenerateForecastMetricsResponse.campaign_forecasts', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='ad_group_forecasts', full_name='google.ads.googleads.v1.services.GenerateForecastMetricsResponse.ad_group_forecasts', index=1, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='keyword_forecasts', full_name='google.ads.googleads.v1.services.GenerateForecastMetricsResponse.keyword_forecasts', index=2, - number=3, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1075, - serialized_end=1378, -) - - -_KEYWORDPLANCAMPAIGNFORECAST = _descriptor.Descriptor( - name='KeywordPlanCampaignForecast', - full_name='google.ads.googleads.v1.services.KeywordPlanCampaignForecast', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='keyword_plan_campaign', full_name='google.ads.googleads.v1.services.KeywordPlanCampaignForecast.keyword_plan_campaign', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='campaign_forecast', full_name='google.ads.googleads.v1.services.KeywordPlanCampaignForecast.campaign_forecast', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1381, - serialized_end=1549, -) - - -_KEYWORDPLANADGROUPFORECAST = _descriptor.Descriptor( - name='KeywordPlanAdGroupForecast', - full_name='google.ads.googleads.v1.services.KeywordPlanAdGroupForecast', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='keyword_plan_ad_group', full_name='google.ads.googleads.v1.services.KeywordPlanAdGroupForecast.keyword_plan_ad_group', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='ad_group_forecast', full_name='google.ads.googleads.v1.services.KeywordPlanAdGroupForecast.ad_group_forecast', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1552, - serialized_end=1719, -) - - -_KEYWORDPLANKEYWORDFORECAST = _descriptor.Descriptor( - name='KeywordPlanKeywordForecast', - full_name='google.ads.googleads.v1.services.KeywordPlanKeywordForecast', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='keyword_plan_ad_group_keyword', full_name='google.ads.googleads.v1.services.KeywordPlanKeywordForecast.keyword_plan_ad_group_keyword', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='keyword_forecast', full_name='google.ads.googleads.v1.services.KeywordPlanKeywordForecast.keyword_forecast', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1722, - serialized_end=1896, -) - - -_FORECASTMETRICS = _descriptor.Descriptor( - name='ForecastMetrics', - full_name='google.ads.googleads.v1.services.ForecastMetrics', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='impressions', full_name='google.ads.googleads.v1.services.ForecastMetrics.impressions', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='ctr', full_name='google.ads.googleads.v1.services.ForecastMetrics.ctr', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='average_cpc', full_name='google.ads.googleads.v1.services.ForecastMetrics.average_cpc', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='clicks', full_name='google.ads.googleads.v1.services.ForecastMetrics.clicks', index=3, - number=5, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='cost_micros', full_name='google.ads.googleads.v1.services.ForecastMetrics.cost_micros', index=4, - number=6, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1899, - serialized_end=2156, -) - - -_GENERATEHISTORICALMETRICSREQUEST = _descriptor.Descriptor( - name='GenerateHistoricalMetricsRequest', - full_name='google.ads.googleads.v1.services.GenerateHistoricalMetricsRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='keyword_plan', full_name='google.ads.googleads.v1.services.GenerateHistoricalMetricsRequest.keyword_plan', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2158, - serialized_end=2214, -) - - -_GENERATEHISTORICALMETRICSRESPONSE = _descriptor.Descriptor( - name='GenerateHistoricalMetricsResponse', - full_name='google.ads.googleads.v1.services.GenerateHistoricalMetricsResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='metrics', full_name='google.ads.googleads.v1.services.GenerateHistoricalMetricsResponse.metrics', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2216, - serialized_end=2339, -) - - -_KEYWORDPLANKEYWORDHISTORICALMETRICS = _descriptor.Descriptor( - name='KeywordPlanKeywordHistoricalMetrics', - full_name='google.ads.googleads.v1.services.KeywordPlanKeywordHistoricalMetrics', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='search_query', full_name='google.ads.googleads.v1.services.KeywordPlanKeywordHistoricalMetrics.search_query', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='keyword_metrics', full_name='google.ads.googleads.v1.services.KeywordPlanKeywordHistoricalMetrics.keyword_metrics', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2342, - serialized_end=2518, -) - -_MUTATEKEYWORDPLANSREQUEST.fields_by_name['operations'].message_type = _KEYWORDPLANOPERATION -_KEYWORDPLANOPERATION.fields_by_name['update_mask'].message_type = google_dot_protobuf_dot_field__mask__pb2._FIELDMASK -_KEYWORDPLANOPERATION.fields_by_name['create'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_keyword__plan__pb2._KEYWORDPLAN -_KEYWORDPLANOPERATION.fields_by_name['update'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_keyword__plan__pb2._KEYWORDPLAN -_KEYWORDPLANOPERATION.oneofs_by_name['operation'].fields.append( - _KEYWORDPLANOPERATION.fields_by_name['create']) -_KEYWORDPLANOPERATION.fields_by_name['create'].containing_oneof = _KEYWORDPLANOPERATION.oneofs_by_name['operation'] -_KEYWORDPLANOPERATION.oneofs_by_name['operation'].fields.append( - _KEYWORDPLANOPERATION.fields_by_name['update']) -_KEYWORDPLANOPERATION.fields_by_name['update'].containing_oneof = _KEYWORDPLANOPERATION.oneofs_by_name['operation'] -_KEYWORDPLANOPERATION.oneofs_by_name['operation'].fields.append( - _KEYWORDPLANOPERATION.fields_by_name['remove']) -_KEYWORDPLANOPERATION.fields_by_name['remove'].containing_oneof = _KEYWORDPLANOPERATION.oneofs_by_name['operation'] -_MUTATEKEYWORDPLANSRESPONSE.fields_by_name['partial_failure_error'].message_type = google_dot_rpc_dot_status__pb2._STATUS -_MUTATEKEYWORDPLANSRESPONSE.fields_by_name['results'].message_type = _MUTATEKEYWORDPLANSRESULT -_GENERATEFORECASTMETRICSRESPONSE.fields_by_name['campaign_forecasts'].message_type = _KEYWORDPLANCAMPAIGNFORECAST -_GENERATEFORECASTMETRICSRESPONSE.fields_by_name['ad_group_forecasts'].message_type = _KEYWORDPLANADGROUPFORECAST -_GENERATEFORECASTMETRICSRESPONSE.fields_by_name['keyword_forecasts'].message_type = _KEYWORDPLANKEYWORDFORECAST -_KEYWORDPLANCAMPAIGNFORECAST.fields_by_name['keyword_plan_campaign'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_KEYWORDPLANCAMPAIGNFORECAST.fields_by_name['campaign_forecast'].message_type = _FORECASTMETRICS -_KEYWORDPLANADGROUPFORECAST.fields_by_name['keyword_plan_ad_group'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_KEYWORDPLANADGROUPFORECAST.fields_by_name['ad_group_forecast'].message_type = _FORECASTMETRICS -_KEYWORDPLANKEYWORDFORECAST.fields_by_name['keyword_plan_ad_group_keyword'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_KEYWORDPLANKEYWORDFORECAST.fields_by_name['keyword_forecast'].message_type = _FORECASTMETRICS -_FORECASTMETRICS.fields_by_name['impressions'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE -_FORECASTMETRICS.fields_by_name['ctr'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE -_FORECASTMETRICS.fields_by_name['average_cpc'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -_FORECASTMETRICS.fields_by_name['clicks'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE -_FORECASTMETRICS.fields_by_name['cost_micros'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -_GENERATEHISTORICALMETRICSRESPONSE.fields_by_name['metrics'].message_type = _KEYWORDPLANKEYWORDHISTORICALMETRICS -_KEYWORDPLANKEYWORDHISTORICALMETRICS.fields_by_name['search_query'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_KEYWORDPLANKEYWORDHISTORICALMETRICS.fields_by_name['keyword_metrics'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_keyword__plan__common__pb2._KEYWORDPLANHISTORICALMETRICS -DESCRIPTOR.message_types_by_name['GetKeywordPlanRequest'] = _GETKEYWORDPLANREQUEST -DESCRIPTOR.message_types_by_name['MutateKeywordPlansRequest'] = _MUTATEKEYWORDPLANSREQUEST -DESCRIPTOR.message_types_by_name['KeywordPlanOperation'] = _KEYWORDPLANOPERATION -DESCRIPTOR.message_types_by_name['MutateKeywordPlansResponse'] = _MUTATEKEYWORDPLANSRESPONSE -DESCRIPTOR.message_types_by_name['MutateKeywordPlansResult'] = _MUTATEKEYWORDPLANSRESULT -DESCRIPTOR.message_types_by_name['GenerateForecastMetricsRequest'] = _GENERATEFORECASTMETRICSREQUEST -DESCRIPTOR.message_types_by_name['GenerateForecastMetricsResponse'] = _GENERATEFORECASTMETRICSRESPONSE -DESCRIPTOR.message_types_by_name['KeywordPlanCampaignForecast'] = _KEYWORDPLANCAMPAIGNFORECAST -DESCRIPTOR.message_types_by_name['KeywordPlanAdGroupForecast'] = _KEYWORDPLANADGROUPFORECAST -DESCRIPTOR.message_types_by_name['KeywordPlanKeywordForecast'] = _KEYWORDPLANKEYWORDFORECAST -DESCRIPTOR.message_types_by_name['ForecastMetrics'] = _FORECASTMETRICS -DESCRIPTOR.message_types_by_name['GenerateHistoricalMetricsRequest'] = _GENERATEHISTORICALMETRICSREQUEST -DESCRIPTOR.message_types_by_name['GenerateHistoricalMetricsResponse'] = _GENERATEHISTORICALMETRICSRESPONSE -DESCRIPTOR.message_types_by_name['KeywordPlanKeywordHistoricalMetrics'] = _KEYWORDPLANKEYWORDHISTORICALMETRICS -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -GetKeywordPlanRequest = _reflection.GeneratedProtocolMessageType('GetKeywordPlanRequest', (_message.Message,), dict( - DESCRIPTOR = _GETKEYWORDPLANREQUEST, - __module__ = 'google.ads.googleads_v1.proto.services.keyword_plan_service_pb2' - , - __doc__ = """Request message for - [KeywordPlanService.GetKeywordPlan][google.ads.googleads.v1.services.KeywordPlanService.GetKeywordPlan]. - - - Attributes: - resource_name: - The resource name of the plan to fetch. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.GetKeywordPlanRequest) - )) -_sym_db.RegisterMessage(GetKeywordPlanRequest) - -MutateKeywordPlansRequest = _reflection.GeneratedProtocolMessageType('MutateKeywordPlansRequest', (_message.Message,), dict( - DESCRIPTOR = _MUTATEKEYWORDPLANSREQUEST, - __module__ = 'google.ads.googleads_v1.proto.services.keyword_plan_service_pb2' - , - __doc__ = """Request message for - [KeywordPlanService.MutateKeywordPlans][google.ads.googleads.v1.services.KeywordPlanService.MutateKeywordPlans]. - - - Attributes: - customer_id: - The ID of the customer whose keyword plans are being modified. - operations: - The list of operations to perform on individual keyword plans. - partial_failure: - If true, successful operations will be carried out and invalid - operations will return errors. If false, all operations will - be carried out in one transaction if and only if they are all - valid. Default is false. - validate_only: - If true, the request is validated but not executed. Only - errors are returned, not results. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.MutateKeywordPlansRequest) - )) -_sym_db.RegisterMessage(MutateKeywordPlansRequest) - -KeywordPlanOperation = _reflection.GeneratedProtocolMessageType('KeywordPlanOperation', (_message.Message,), dict( - DESCRIPTOR = _KEYWORDPLANOPERATION, - __module__ = 'google.ads.googleads_v1.proto.services.keyword_plan_service_pb2' - , - __doc__ = """A single operation (create, update, remove) on a keyword plan. - - - Attributes: - update_mask: - The FieldMask that determines which resource fields are - modified in an update. - operation: - The mutate operation. - create: - Create operation: No resource name is expected for the new - keyword plan. - update: - Update operation: The keyword plan is expected to have a valid - resource name. - remove: - Remove operation: A resource name for the removed keyword plan - is expected in this format: - ``customers/{customer_id}/keywordPlans/{keyword_plan_id}`` - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.KeywordPlanOperation) - )) -_sym_db.RegisterMessage(KeywordPlanOperation) - -MutateKeywordPlansResponse = _reflection.GeneratedProtocolMessageType('MutateKeywordPlansResponse', (_message.Message,), dict( - DESCRIPTOR = _MUTATEKEYWORDPLANSRESPONSE, - __module__ = 'google.ads.googleads_v1.proto.services.keyword_plan_service_pb2' - , - __doc__ = """Response message for a keyword plan mutate. - - - Attributes: - partial_failure_error: - Errors that pertain to operation failures in the partial - failure mode. Returned only when partial\_failure = true and - all errors occur inside the operations. If any errors occur - outside the operations (e.g. auth errors), we return an RPC - level error. - results: - All results for the mutate. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.MutateKeywordPlansResponse) - )) -_sym_db.RegisterMessage(MutateKeywordPlansResponse) - -MutateKeywordPlansResult = _reflection.GeneratedProtocolMessageType('MutateKeywordPlansResult', (_message.Message,), dict( - DESCRIPTOR = _MUTATEKEYWORDPLANSRESULT, - __module__ = 'google.ads.googleads_v1.proto.services.keyword_plan_service_pb2' - , - __doc__ = """The result for the keyword plan mutate. - - - Attributes: - resource_name: - Returned for successful operations. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.MutateKeywordPlansResult) - )) -_sym_db.RegisterMessage(MutateKeywordPlansResult) - -GenerateForecastMetricsRequest = _reflection.GeneratedProtocolMessageType('GenerateForecastMetricsRequest', (_message.Message,), dict( - DESCRIPTOR = _GENERATEFORECASTMETRICSREQUEST, - __module__ = 'google.ads.googleads_v1.proto.services.keyword_plan_service_pb2' - , - __doc__ = """Request message for - [KeywordPlanService.GenerateForecastMetrics][google.ads.googleads.v1.services.KeywordPlanService.GenerateForecastMetrics]. - - - Attributes: - keyword_plan: - The resource name of the keyword plan to be forecasted. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.GenerateForecastMetricsRequest) - )) -_sym_db.RegisterMessage(GenerateForecastMetricsRequest) - -GenerateForecastMetricsResponse = _reflection.GeneratedProtocolMessageType('GenerateForecastMetricsResponse', (_message.Message,), dict( - DESCRIPTOR = _GENERATEFORECASTMETRICSRESPONSE, - __module__ = 'google.ads.googleads_v1.proto.services.keyword_plan_service_pb2' - , - __doc__ = """Response message for - [KeywordPlanService.GenerateForecastMetrics][google.ads.googleads.v1.services.KeywordPlanService.GenerateForecastMetrics]. - - - Attributes: - campaign_forecasts: - List of campaign forecasts. One maximum. - ad_group_forecasts: - List of ad group forecasts. - keyword_forecasts: - List of keyword forecasts. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.GenerateForecastMetricsResponse) - )) -_sym_db.RegisterMessage(GenerateForecastMetricsResponse) - -KeywordPlanCampaignForecast = _reflection.GeneratedProtocolMessageType('KeywordPlanCampaignForecast', (_message.Message,), dict( - DESCRIPTOR = _KEYWORDPLANCAMPAIGNFORECAST, - __module__ = 'google.ads.googleads_v1.proto.services.keyword_plan_service_pb2' - , - __doc__ = """A campaign forecast. - - - Attributes: - keyword_plan_campaign: - The resource name of the Keyword Plan campaign related to the - forecast. ``customers/{customer_id}/keywordPlanCampaigns/{key - word+plan_campaign_id}`` - campaign_forecast: - The forecast for the Keyword Plan campaign. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.KeywordPlanCampaignForecast) - )) -_sym_db.RegisterMessage(KeywordPlanCampaignForecast) - -KeywordPlanAdGroupForecast = _reflection.GeneratedProtocolMessageType('KeywordPlanAdGroupForecast', (_message.Message,), dict( - DESCRIPTOR = _KEYWORDPLANADGROUPFORECAST, - __module__ = 'google.ads.googleads_v1.proto.services.keyword_plan_service_pb2' - , - __doc__ = """An ad group forecast. - - - Attributes: - keyword_plan_ad_group: - The resource name of the Keyword Plan ad group related to the - forecast. ``customers/{customer_id}/keywordPlanAdGroups/{keyw - ord_plan_ad_group_id}`` - ad_group_forecast: - The forecast for the Keyword Plan ad group. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.KeywordPlanAdGroupForecast) - )) -_sym_db.RegisterMessage(KeywordPlanAdGroupForecast) - -KeywordPlanKeywordForecast = _reflection.GeneratedProtocolMessageType('KeywordPlanKeywordForecast', (_message.Message,), dict( - DESCRIPTOR = _KEYWORDPLANKEYWORDFORECAST, - __module__ = 'google.ads.googleads_v1.proto.services.keyword_plan_service_pb2' - , - __doc__ = """A keyword forecast. - - - Attributes: - keyword_plan_ad_group_keyword: - The resource name of the Keyword Plan keyword related to the - forecast. ``customers/{customer_id}/keywordPlanAdGroupKeyword - s/{keyword_plan_ad_group_keyword_id}`` - keyword_forecast: - The forecast for the Keyword Plan keyword. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.KeywordPlanKeywordForecast) - )) -_sym_db.RegisterMessage(KeywordPlanKeywordForecast) - -ForecastMetrics = _reflection.GeneratedProtocolMessageType('ForecastMetrics', (_message.Message,), dict( - DESCRIPTOR = _FORECASTMETRICS, - __module__ = 'google.ads.googleads_v1.proto.services.keyword_plan_service_pb2' - , - __doc__ = """Forecast metrics. - - - Attributes: - impressions: - Impressions - ctr: - Ctr - average_cpc: - AVG cpc - clicks: - Clicks - cost_micros: - Cost - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.ForecastMetrics) - )) -_sym_db.RegisterMessage(ForecastMetrics) - -GenerateHistoricalMetricsRequest = _reflection.GeneratedProtocolMessageType('GenerateHistoricalMetricsRequest', (_message.Message,), dict( - DESCRIPTOR = _GENERATEHISTORICALMETRICSREQUEST, - __module__ = 'google.ads.googleads_v1.proto.services.keyword_plan_service_pb2' - , - __doc__ = """Request message for - [KeywordPlanService.GenerateHistoricalMetrics][google.ads.googleads.v1.services.KeywordPlanService.GenerateHistoricalMetrics]. - - - Attributes: - keyword_plan: - The resource name of the keyword plan of which historical - metrics are requested. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.GenerateHistoricalMetricsRequest) - )) -_sym_db.RegisterMessage(GenerateHistoricalMetricsRequest) - -GenerateHistoricalMetricsResponse = _reflection.GeneratedProtocolMessageType('GenerateHistoricalMetricsResponse', (_message.Message,), dict( - DESCRIPTOR = _GENERATEHISTORICALMETRICSRESPONSE, - __module__ = 'google.ads.googleads_v1.proto.services.keyword_plan_service_pb2' - , - __doc__ = """Response message for - [KeywordPlanService.GenerateHistoricalMetrics][google.ads.googleads.v1.services.KeywordPlanService.GenerateHistoricalMetrics]. - - - Attributes: - metrics: - List of keyword historical metrics. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.GenerateHistoricalMetricsResponse) - )) -_sym_db.RegisterMessage(GenerateHistoricalMetricsResponse) - -KeywordPlanKeywordHistoricalMetrics = _reflection.GeneratedProtocolMessageType('KeywordPlanKeywordHistoricalMetrics', (_message.Message,), dict( - DESCRIPTOR = _KEYWORDPLANKEYWORDHISTORICALMETRICS, - __module__ = 'google.ads.googleads_v1.proto.services.keyword_plan_service_pb2' - , - __doc__ = """A keyword historical metrics. - - - Attributes: - search_query: - The text of the query associated with one or more - ad\_group\_keywords in the plan. Note that we de-dupe your - keywords list, eliminating close variants before returning the - plan's keywords as text. For example, if your plan originally - contained the keywords 'car' and 'cars', the returned search - query will only contain 'car'. - keyword_metrics: - The historical metrics for the query associated with one or - more ad\_group\_keywords in the plan. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.KeywordPlanKeywordHistoricalMetrics) - )) -_sym_db.RegisterMessage(KeywordPlanKeywordHistoricalMetrics) - - -DESCRIPTOR._options = None - -_KEYWORDPLANSERVICE = _descriptor.ServiceDescriptor( - name='KeywordPlanService', - full_name='google.ads.googleads.v1.services.KeywordPlanService', - file=DESCRIPTOR, - index=0, - serialized_options=None, - serialized_start=2521, - serialized_end=3423, - methods=[ - _descriptor.MethodDescriptor( - name='GetKeywordPlan', - full_name='google.ads.googleads.v1.services.KeywordPlanService.GetKeywordPlan', - index=0, - containing_service=None, - input_type=_GETKEYWORDPLANREQUEST, - output_type=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_keyword__plan__pb2._KEYWORDPLAN, - serialized_options=_b('\202\323\344\223\0020\022./v1/{resource_name=customers/*/keywordPlans/*}'), - ), - _descriptor.MethodDescriptor( - name='MutateKeywordPlans', - full_name='google.ads.googleads.v1.services.KeywordPlanService.MutateKeywordPlans', - index=1, - containing_service=None, - input_type=_MUTATEKEYWORDPLANSREQUEST, - output_type=_MUTATEKEYWORDPLANSRESPONSE, - serialized_options=_b('\202\323\344\223\0026\"1/v1/customers/{customer_id=*}/keywordPlans:mutate:\001*'), - ), - _descriptor.MethodDescriptor( - name='GenerateForecastMetrics', - full_name='google.ads.googleads.v1.services.KeywordPlanService.GenerateForecastMetrics', - index=2, - containing_service=None, - input_type=_GENERATEFORECASTMETRICSREQUEST, - output_type=_GENERATEFORECASTMETRICSRESPONSE, - serialized_options=_b('\202\323\344\223\002J\"E/v1/{keyword_plan=customers/*/keywordPlans/*}:generateForecastMetrics:\001*'), - ), - _descriptor.MethodDescriptor( - name='GenerateHistoricalMetrics', - full_name='google.ads.googleads.v1.services.KeywordPlanService.GenerateHistoricalMetrics', - index=3, - containing_service=None, - input_type=_GENERATEHISTORICALMETRICSREQUEST, - output_type=_GENERATEHISTORICALMETRICSRESPONSE, - serialized_options=_b('\202\323\344\223\002L\"G/v1/{keyword_plan=customers/*/keywordPlans/*}:generateHistoricalMetrics:\001*'), - ), -]) -_sym_db.RegisterServiceDescriptor(_KEYWORDPLANSERVICE) - -DESCRIPTOR.services_by_name['KeywordPlanService'] = _KEYWORDPLANSERVICE - -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/services/keyword_plan_service_pb2_grpc.py b/google/ads/google_ads/v1/proto/services/keyword_plan_service_pb2_grpc.py deleted file mode 100644 index ad3448e25..000000000 --- a/google/ads/google_ads/v1/proto/services/keyword_plan_service_pb2_grpc.py +++ /dev/null @@ -1,103 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -import grpc - -from google.ads.google_ads.v1.proto.resources import keyword_plan_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_keyword__plan__pb2 -from google.ads.google_ads.v1.proto.services import keyword_plan_service_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_keyword__plan__service__pb2 - - -class KeywordPlanServiceStub(object): - """Proto file describing the keyword plan service. - - Service to manage keyword plans. - """ - - def __init__(self, channel): - """Constructor. - - Args: - channel: A grpc.Channel. - """ - self.GetKeywordPlan = channel.unary_unary( - '/google.ads.googleads.v1.services.KeywordPlanService/GetKeywordPlan', - request_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_keyword__plan__service__pb2.GetKeywordPlanRequest.SerializeToString, - response_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_keyword__plan__pb2.KeywordPlan.FromString, - ) - self.MutateKeywordPlans = channel.unary_unary( - '/google.ads.googleads.v1.services.KeywordPlanService/MutateKeywordPlans', - request_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_keyword__plan__service__pb2.MutateKeywordPlansRequest.SerializeToString, - response_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_keyword__plan__service__pb2.MutateKeywordPlansResponse.FromString, - ) - self.GenerateForecastMetrics = channel.unary_unary( - '/google.ads.googleads.v1.services.KeywordPlanService/GenerateForecastMetrics', - request_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_keyword__plan__service__pb2.GenerateForecastMetricsRequest.SerializeToString, - response_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_keyword__plan__service__pb2.GenerateForecastMetricsResponse.FromString, - ) - self.GenerateHistoricalMetrics = channel.unary_unary( - '/google.ads.googleads.v1.services.KeywordPlanService/GenerateHistoricalMetrics', - request_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_keyword__plan__service__pb2.GenerateHistoricalMetricsRequest.SerializeToString, - response_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_keyword__plan__service__pb2.GenerateHistoricalMetricsResponse.FromString, - ) - - -class KeywordPlanServiceServicer(object): - """Proto file describing the keyword plan service. - - Service to manage keyword plans. - """ - - def GetKeywordPlan(self, request, context): - """Returns the requested plan in full detail. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def MutateKeywordPlans(self, request, context): - """Creates, updates, or removes keyword plans. Operation statuses are - returned. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GenerateForecastMetrics(self, request, context): - """Returns the requested Keyword Plan forecasts. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GenerateHistoricalMetrics(self, request, context): - """Returns the requested Keyword Plan historical metrics. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - -def add_KeywordPlanServiceServicer_to_server(servicer, server): - rpc_method_handlers = { - 'GetKeywordPlan': grpc.unary_unary_rpc_method_handler( - servicer.GetKeywordPlan, - request_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_keyword__plan__service__pb2.GetKeywordPlanRequest.FromString, - response_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_keyword__plan__pb2.KeywordPlan.SerializeToString, - ), - 'MutateKeywordPlans': grpc.unary_unary_rpc_method_handler( - servicer.MutateKeywordPlans, - request_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_keyword__plan__service__pb2.MutateKeywordPlansRequest.FromString, - response_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_keyword__plan__service__pb2.MutateKeywordPlansResponse.SerializeToString, - ), - 'GenerateForecastMetrics': grpc.unary_unary_rpc_method_handler( - servicer.GenerateForecastMetrics, - request_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_keyword__plan__service__pb2.GenerateForecastMetricsRequest.FromString, - response_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_keyword__plan__service__pb2.GenerateForecastMetricsResponse.SerializeToString, - ), - 'GenerateHistoricalMetrics': grpc.unary_unary_rpc_method_handler( - servicer.GenerateHistoricalMetrics, - request_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_keyword__plan__service__pb2.GenerateHistoricalMetricsRequest.FromString, - response_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_keyword__plan__service__pb2.GenerateHistoricalMetricsResponse.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'google.ads.googleads.v1.services.KeywordPlanService', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) diff --git a/google/ads/google_ads/v1/proto/services/keyword_view_service_pb2.py b/google/ads/google_ads/v1/proto/services/keyword_view_service_pb2.py deleted file mode 100644 index 52fd0e818..000000000 --- a/google/ads/google_ads/v1/proto/services/keyword_view_service_pb2.py +++ /dev/null @@ -1,107 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/services/keyword_view_service.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.ads.google_ads.v1.proto.resources import keyword_view_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_keyword__view__pb2 -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/services/keyword_view_service.proto', - package='google.ads.googleads.v1.services', - syntax='proto3', - serialized_options=_b('\n$com.google.ads.googleads.v1.servicesB\027KeywordViewServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v1/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V1.Services\312\002 Google\\Ads\\GoogleAds\\V1\\Services\352\002$Google::Ads::GoogleAds::V1::Services'), - serialized_pb=_b('\nAgoogle/ads/googleads_v1/proto/services/keyword_view_service.proto\x12 google.ads.googleads.v1.services\x1a:google/ads/googleads_v1/proto/resources/keyword_view.proto\x1a\x1cgoogle/api/annotations.proto\".\n\x15GetKeywordViewRequest\x12\x15\n\rresource_name\x18\x01 \x01(\t2\xc8\x01\n\x12KeywordViewService\x12\xb1\x01\n\x0eGetKeywordView\x12\x37.google.ads.googleads.v1.services.GetKeywordViewRequest\x1a..google.ads.googleads.v1.resources.KeywordView\"6\x82\xd3\xe4\x93\x02\x30\x12./v1/{resource_name=customers/*/keywordViews/*}B\xfe\x01\n$com.google.ads.googleads.v1.servicesB\x17KeywordViewServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v1/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V1.Services\xca\x02 Google\\Ads\\GoogleAds\\V1\\Services\xea\x02$Google::Ads::GoogleAds::V1::Servicesb\x06proto3') - , - dependencies=[google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_keyword__view__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - - -_GETKEYWORDVIEWREQUEST = _descriptor.Descriptor( - name='GetKeywordViewRequest', - full_name='google.ads.googleads.v1.services.GetKeywordViewRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.services.GetKeywordViewRequest.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=193, - serialized_end=239, -) - -DESCRIPTOR.message_types_by_name['GetKeywordViewRequest'] = _GETKEYWORDVIEWREQUEST -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -GetKeywordViewRequest = _reflection.GeneratedProtocolMessageType('GetKeywordViewRequest', (_message.Message,), dict( - DESCRIPTOR = _GETKEYWORDVIEWREQUEST, - __module__ = 'google.ads.googleads_v1.proto.services.keyword_view_service_pb2' - , - __doc__ = """Request message for - [KeywordViewService.GetKeywordView][google.ads.googleads.v1.services.KeywordViewService.GetKeywordView]. - - - Attributes: - resource_name: - The resource name of the keyword view to fetch. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.GetKeywordViewRequest) - )) -_sym_db.RegisterMessage(GetKeywordViewRequest) - - -DESCRIPTOR._options = None - -_KEYWORDVIEWSERVICE = _descriptor.ServiceDescriptor( - name='KeywordViewService', - full_name='google.ads.googleads.v1.services.KeywordViewService', - file=DESCRIPTOR, - index=0, - serialized_options=None, - serialized_start=242, - serialized_end=442, - methods=[ - _descriptor.MethodDescriptor( - name='GetKeywordView', - full_name='google.ads.googleads.v1.services.KeywordViewService.GetKeywordView', - index=0, - containing_service=None, - input_type=_GETKEYWORDVIEWREQUEST, - output_type=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_keyword__view__pb2._KEYWORDVIEW, - serialized_options=_b('\202\323\344\223\0020\022./v1/{resource_name=customers/*/keywordViews/*}'), - ), -]) -_sym_db.RegisterServiceDescriptor(_KEYWORDVIEWSERVICE) - -DESCRIPTOR.services_by_name['KeywordViewService'] = _KEYWORDVIEWSERVICE - -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/services/keyword_view_service_pb2_grpc.py b/google/ads/google_ads/v1/proto/services/keyword_view_service_pb2_grpc.py deleted file mode 100644 index fcfb30698..000000000 --- a/google/ads/google_ads/v1/proto/services/keyword_view_service_pb2_grpc.py +++ /dev/null @@ -1,51 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -import grpc - -from google.ads.google_ads.v1.proto.resources import keyword_view_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_keyword__view__pb2 -from google.ads.google_ads.v1.proto.services import keyword_view_service_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_keyword__view__service__pb2 - - -class KeywordViewServiceStub(object): - """Proto file describing the Keyword View service. - - Service to manage keyword views. - """ - - def __init__(self, channel): - """Constructor. - - Args: - channel: A grpc.Channel. - """ - self.GetKeywordView = channel.unary_unary( - '/google.ads.googleads.v1.services.KeywordViewService/GetKeywordView', - request_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_keyword__view__service__pb2.GetKeywordViewRequest.SerializeToString, - response_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_keyword__view__pb2.KeywordView.FromString, - ) - - -class KeywordViewServiceServicer(object): - """Proto file describing the Keyword View service. - - Service to manage keyword views. - """ - - def GetKeywordView(self, request, context): - """Returns the requested keyword view in full detail. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - -def add_KeywordViewServiceServicer_to_server(servicer, server): - rpc_method_handlers = { - 'GetKeywordView': grpc.unary_unary_rpc_method_handler( - servicer.GetKeywordView, - request_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_keyword__view__service__pb2.GetKeywordViewRequest.FromString, - response_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_keyword__view__pb2.KeywordView.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'google.ads.googleads.v1.services.KeywordViewService', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) diff --git a/google/ads/google_ads/v1/proto/services/label_service_pb2.py b/google/ads/google_ads/v1/proto/services/label_service_pb2.py deleted file mode 100644 index d00baf3f7..000000000 --- a/google/ads/google_ads/v1/proto/services/label_service_pb2.py +++ /dev/null @@ -1,403 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/services/label_service.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.ads.google_ads.v1.proto.resources import label_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_label__pb2 -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 -from google.protobuf import field_mask_pb2 as google_dot_protobuf_dot_field__mask__pb2 -from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 -from google.rpc import status_pb2 as google_dot_rpc_dot_status__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/services/label_service.proto', - package='google.ads.googleads.v1.services', - syntax='proto3', - serialized_options=_b('\n$com.google.ads.googleads.v1.servicesB\021LabelServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v1/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V1.Services\312\002 Google\\Ads\\GoogleAds\\V1\\Services\352\002$Google::Ads::GoogleAds::V1::Services'), - serialized_pb=_b('\n:google/ads/googleads_v1/proto/services/label_service.proto\x12 google.ads.googleads.v1.services\x1a\x33google/ads/googleads_v1/proto/resources/label.proto\x1a\x1cgoogle/api/annotations.proto\x1a google/protobuf/field_mask.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x17google/rpc/status.proto\"(\n\x0fGetLabelRequest\x12\x15\n\rresource_name\x18\x01 \x01(\t\"\xa0\x01\n\x13MutateLabelsRequest\x12\x13\n\x0b\x63ustomer_id\x18\x01 \x01(\t\x12\x44\n\noperations\x18\x02 \x03(\x0b\x32\x30.google.ads.googleads.v1.services.LabelOperation\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\"\xd8\x01\n\x0eLabelOperation\x12/\n\x0bupdate_mask\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12:\n\x06\x63reate\x18\x01 \x01(\x0b\x32(.google.ads.googleads.v1.resources.LabelH\x00\x12:\n\x06update\x18\x02 \x01(\x0b\x32(.google.ads.googleads.v1.resources.LabelH\x00\x12\x10\n\x06remove\x18\x03 \x01(\tH\x00\x42\x0b\n\toperation\"\x8f\x01\n\x14MutateLabelsResponse\x12\x31\n\x15partial_failure_error\x18\x03 \x01(\x0b\x32\x12.google.rpc.Status\x12\x44\n\x07results\x18\x02 \x03(\x0b\x32\x33.google.ads.googleads.v1.services.MutateLabelResult\"*\n\x11MutateLabelResult\x12\x15\n\rresource_name\x18\x01 \x01(\t2\xe2\x02\n\x0cLabelService\x12\x99\x01\n\x08GetLabel\x12\x31.google.ads.googleads.v1.services.GetLabelRequest\x1a(.google.ads.googleads.v1.resources.Label\"0\x82\xd3\xe4\x93\x02*\x12(/v1/{resource_name=customers/*/labels/*}\x12\xb5\x01\n\x0cMutateLabels\x12\x35.google.ads.googleads.v1.services.MutateLabelsRequest\x1a\x36.google.ads.googleads.v1.services.MutateLabelsResponse\"6\x82\xd3\xe4\x93\x02\x30\"+/v1/customers/{customer_id=*}/labels:mutate:\x01*B\xf8\x01\n$com.google.ads.googleads.v1.servicesB\x11LabelServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v1/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V1.Services\xca\x02 Google\\Ads\\GoogleAds\\V1\\Services\xea\x02$Google::Ads::GoogleAds::V1::Servicesb\x06proto3') - , - dependencies=[google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_label__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_protobuf_dot_field__mask__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_rpc_dot_status__pb2.DESCRIPTOR,]) - - - - -_GETLABELREQUEST = _descriptor.Descriptor( - name='GetLabelRequest', - full_name='google.ads.googleads.v1.services.GetLabelRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.services.GetLabelRequest.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=270, - serialized_end=310, -) - - -_MUTATELABELSREQUEST = _descriptor.Descriptor( - name='MutateLabelsRequest', - full_name='google.ads.googleads.v1.services.MutateLabelsRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='customer_id', full_name='google.ads.googleads.v1.services.MutateLabelsRequest.customer_id', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='operations', full_name='google.ads.googleads.v1.services.MutateLabelsRequest.operations', index=1, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='partial_failure', full_name='google.ads.googleads.v1.services.MutateLabelsRequest.partial_failure', index=2, - number=3, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='validate_only', full_name='google.ads.googleads.v1.services.MutateLabelsRequest.validate_only', index=3, - number=4, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=313, - serialized_end=473, -) - - -_LABELOPERATION = _descriptor.Descriptor( - name='LabelOperation', - full_name='google.ads.googleads.v1.services.LabelOperation', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='update_mask', full_name='google.ads.googleads.v1.services.LabelOperation.update_mask', index=0, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='create', full_name='google.ads.googleads.v1.services.LabelOperation.create', index=1, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='update', full_name='google.ads.googleads.v1.services.LabelOperation.update', index=2, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='remove', full_name='google.ads.googleads.v1.services.LabelOperation.remove', index=3, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='operation', full_name='google.ads.googleads.v1.services.LabelOperation.operation', - index=0, containing_type=None, fields=[]), - ], - serialized_start=476, - serialized_end=692, -) - - -_MUTATELABELSRESPONSE = _descriptor.Descriptor( - name='MutateLabelsResponse', - full_name='google.ads.googleads.v1.services.MutateLabelsResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='partial_failure_error', full_name='google.ads.googleads.v1.services.MutateLabelsResponse.partial_failure_error', index=0, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='results', full_name='google.ads.googleads.v1.services.MutateLabelsResponse.results', index=1, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=695, - serialized_end=838, -) - - -_MUTATELABELRESULT = _descriptor.Descriptor( - name='MutateLabelResult', - full_name='google.ads.googleads.v1.services.MutateLabelResult', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.services.MutateLabelResult.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=840, - serialized_end=882, -) - -_MUTATELABELSREQUEST.fields_by_name['operations'].message_type = _LABELOPERATION -_LABELOPERATION.fields_by_name['update_mask'].message_type = google_dot_protobuf_dot_field__mask__pb2._FIELDMASK -_LABELOPERATION.fields_by_name['create'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_label__pb2._LABEL -_LABELOPERATION.fields_by_name['update'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_label__pb2._LABEL -_LABELOPERATION.oneofs_by_name['operation'].fields.append( - _LABELOPERATION.fields_by_name['create']) -_LABELOPERATION.fields_by_name['create'].containing_oneof = _LABELOPERATION.oneofs_by_name['operation'] -_LABELOPERATION.oneofs_by_name['operation'].fields.append( - _LABELOPERATION.fields_by_name['update']) -_LABELOPERATION.fields_by_name['update'].containing_oneof = _LABELOPERATION.oneofs_by_name['operation'] -_LABELOPERATION.oneofs_by_name['operation'].fields.append( - _LABELOPERATION.fields_by_name['remove']) -_LABELOPERATION.fields_by_name['remove'].containing_oneof = _LABELOPERATION.oneofs_by_name['operation'] -_MUTATELABELSRESPONSE.fields_by_name['partial_failure_error'].message_type = google_dot_rpc_dot_status__pb2._STATUS -_MUTATELABELSRESPONSE.fields_by_name['results'].message_type = _MUTATELABELRESULT -DESCRIPTOR.message_types_by_name['GetLabelRequest'] = _GETLABELREQUEST -DESCRIPTOR.message_types_by_name['MutateLabelsRequest'] = _MUTATELABELSREQUEST -DESCRIPTOR.message_types_by_name['LabelOperation'] = _LABELOPERATION -DESCRIPTOR.message_types_by_name['MutateLabelsResponse'] = _MUTATELABELSRESPONSE -DESCRIPTOR.message_types_by_name['MutateLabelResult'] = _MUTATELABELRESULT -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -GetLabelRequest = _reflection.GeneratedProtocolMessageType('GetLabelRequest', (_message.Message,), dict( - DESCRIPTOR = _GETLABELREQUEST, - __module__ = 'google.ads.googleads_v1.proto.services.label_service_pb2' - , - __doc__ = """Request message for - [LabelService.GetLabel][google.ads.googleads.v1.services.LabelService.GetLabel]. - - - Attributes: - resource_name: - The resource name of the label to fetch. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.GetLabelRequest) - )) -_sym_db.RegisterMessage(GetLabelRequest) - -MutateLabelsRequest = _reflection.GeneratedProtocolMessageType('MutateLabelsRequest', (_message.Message,), dict( - DESCRIPTOR = _MUTATELABELSREQUEST, - __module__ = 'google.ads.googleads_v1.proto.services.label_service_pb2' - , - __doc__ = """Request message for - [LabelService.MutateLabels][google.ads.googleads.v1.services.LabelService.MutateLabels]. - - - Attributes: - customer_id: - ID of the customer whose labels are being modified. - operations: - The list of operations to perform on labels. - partial_failure: - If true, successful operations will be carried out and invalid - operations will return errors. If false, all operations will - be carried out in one transaction if and only if they are all - valid. Default is false. - validate_only: - If true, the request is validated but not executed. Only - errors are returned, not results. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.MutateLabelsRequest) - )) -_sym_db.RegisterMessage(MutateLabelsRequest) - -LabelOperation = _reflection.GeneratedProtocolMessageType('LabelOperation', (_message.Message,), dict( - DESCRIPTOR = _LABELOPERATION, - __module__ = 'google.ads.googleads_v1.proto.services.label_service_pb2' - , - __doc__ = """A single operation (create, remove, update) on a label. - - - Attributes: - update_mask: - FieldMask that determines which resource fields are modified - in an update. - operation: - The mutate operation. - create: - Create operation: No resource name is expected for the new - label. - update: - Update operation: The label is expected to have a valid - resource name. - remove: - Remove operation: A resource name for the label being removed, - in this format: ``customers/{customer_id}/labels/{label_id}`` - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.LabelOperation) - )) -_sym_db.RegisterMessage(LabelOperation) - -MutateLabelsResponse = _reflection.GeneratedProtocolMessageType('MutateLabelsResponse', (_message.Message,), dict( - DESCRIPTOR = _MUTATELABELSRESPONSE, - __module__ = 'google.ads.googleads_v1.proto.services.label_service_pb2' - , - __doc__ = """Response message for a labels mutate. - - - Attributes: - partial_failure_error: - Errors that pertain to operation failures in the partial - failure mode. Returned only when partial\_failure = true and - all errors occur inside the operations. If any errors occur - outside the operations (e.g. auth errors), we return an RPC - level error. - results: - All results for the mutate. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.MutateLabelsResponse) - )) -_sym_db.RegisterMessage(MutateLabelsResponse) - -MutateLabelResult = _reflection.GeneratedProtocolMessageType('MutateLabelResult', (_message.Message,), dict( - DESCRIPTOR = _MUTATELABELRESULT, - __module__ = 'google.ads.googleads_v1.proto.services.label_service_pb2' - , - __doc__ = """The result for a label mutate. - - - Attributes: - resource_name: - Returned for successful operations. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.MutateLabelResult) - )) -_sym_db.RegisterMessage(MutateLabelResult) - - -DESCRIPTOR._options = None - -_LABELSERVICE = _descriptor.ServiceDescriptor( - name='LabelService', - full_name='google.ads.googleads.v1.services.LabelService', - file=DESCRIPTOR, - index=0, - serialized_options=None, - serialized_start=885, - serialized_end=1239, - methods=[ - _descriptor.MethodDescriptor( - name='GetLabel', - full_name='google.ads.googleads.v1.services.LabelService.GetLabel', - index=0, - containing_service=None, - input_type=_GETLABELREQUEST, - output_type=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_label__pb2._LABEL, - serialized_options=_b('\202\323\344\223\002*\022(/v1/{resource_name=customers/*/labels/*}'), - ), - _descriptor.MethodDescriptor( - name='MutateLabels', - full_name='google.ads.googleads.v1.services.LabelService.MutateLabels', - index=1, - containing_service=None, - input_type=_MUTATELABELSREQUEST, - output_type=_MUTATELABELSRESPONSE, - serialized_options=_b('\202\323\344\223\0020\"+/v1/customers/{customer_id=*}/labels:mutate:\001*'), - ), -]) -_sym_db.RegisterServiceDescriptor(_LABELSERVICE) - -DESCRIPTOR.services_by_name['LabelService'] = _LABELSERVICE - -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/services/label_service_pb2_grpc.py b/google/ads/google_ads/v1/proto/services/label_service_pb2_grpc.py deleted file mode 100644 index e5367ce72..000000000 --- a/google/ads/google_ads/v1/proto/services/label_service_pb2_grpc.py +++ /dev/null @@ -1,64 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -import grpc - -from google.ads.google_ads.v1.proto.resources import label_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_label__pb2 -from google.ads.google_ads.v1.proto.services import label_service_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_label__service__pb2 - - -class LabelServiceStub(object): - """Service to manage labels. - """ - - def __init__(self, channel): - """Constructor. - - Args: - channel: A grpc.Channel. - """ - self.GetLabel = channel.unary_unary( - '/google.ads.googleads.v1.services.LabelService/GetLabel', - request_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_label__service__pb2.GetLabelRequest.SerializeToString, - response_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_label__pb2.Label.FromString, - ) - self.MutateLabels = channel.unary_unary( - '/google.ads.googleads.v1.services.LabelService/MutateLabels', - request_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_label__service__pb2.MutateLabelsRequest.SerializeToString, - response_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_label__service__pb2.MutateLabelsResponse.FromString, - ) - - -class LabelServiceServicer(object): - """Service to manage labels. - """ - - def GetLabel(self, request, context): - """Returns the requested label in full detail. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def MutateLabels(self, request, context): - """Creates, updates, or removes labels. Operation statuses are returned. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - -def add_LabelServiceServicer_to_server(servicer, server): - rpc_method_handlers = { - 'GetLabel': grpc.unary_unary_rpc_method_handler( - servicer.GetLabel, - request_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_label__service__pb2.GetLabelRequest.FromString, - response_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_label__pb2.Label.SerializeToString, - ), - 'MutateLabels': grpc.unary_unary_rpc_method_handler( - servicer.MutateLabels, - request_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_label__service__pb2.MutateLabelsRequest.FromString, - response_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_label__service__pb2.MutateLabelsResponse.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'google.ads.googleads.v1.services.LabelService', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) diff --git a/google/ads/google_ads/v1/proto/services/landing_page_view_service_pb2.py b/google/ads/google_ads/v1/proto/services/landing_page_view_service_pb2.py deleted file mode 100644 index 44e40e65a..000000000 --- a/google/ads/google_ads/v1/proto/services/landing_page_view_service_pb2.py +++ /dev/null @@ -1,108 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/services/landing_page_view_service.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.ads.google_ads.v1.proto.resources import landing_page_view_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_landing__page__view__pb2 -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 -from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/services/landing_page_view_service.proto', - package='google.ads.googleads.v1.services', - syntax='proto3', - serialized_options=_b('\n$com.google.ads.googleads.v1.servicesB\033LandingPageViewServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v1/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V1.Services\312\002 Google\\Ads\\GoogleAds\\V1\\Services\352\002$Google::Ads::GoogleAds::V1::Services'), - serialized_pb=_b('\nFgoogle/ads/googleads_v1/proto/services/landing_page_view_service.proto\x12 google.ads.googleads.v1.services\x1a?google/ads/googleads_v1/proto/resources/landing_page_view.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x1egoogle/protobuf/wrappers.proto\"2\n\x19GetLandingPageViewRequest\x12\x15\n\rresource_name\x18\x01 \x01(\t2\xdc\x01\n\x16LandingPageViewService\x12\xc1\x01\n\x12GetLandingPageView\x12;.google.ads.googleads.v1.services.GetLandingPageViewRequest\x1a\x32.google.ads.googleads.v1.resources.LandingPageView\":\x82\xd3\xe4\x93\x02\x34\x12\x32/v1/{resource_name=customers/*/landingPageViews/*}B\x82\x02\n$com.google.ads.googleads.v1.servicesB\x1bLandingPageViewServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v1/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V1.Services\xca\x02 Google\\Ads\\GoogleAds\\V1\\Services\xea\x02$Google::Ads::GoogleAds::V1::Servicesb\x06proto3') - , - dependencies=[google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_landing__page__view__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,]) - - - - -_GETLANDINGPAGEVIEWREQUEST = _descriptor.Descriptor( - name='GetLandingPageViewRequest', - full_name='google.ads.googleads.v1.services.GetLandingPageViewRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.services.GetLandingPageViewRequest.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=235, - serialized_end=285, -) - -DESCRIPTOR.message_types_by_name['GetLandingPageViewRequest'] = _GETLANDINGPAGEVIEWREQUEST -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -GetLandingPageViewRequest = _reflection.GeneratedProtocolMessageType('GetLandingPageViewRequest', (_message.Message,), dict( - DESCRIPTOR = _GETLANDINGPAGEVIEWREQUEST, - __module__ = 'google.ads.googleads_v1.proto.services.landing_page_view_service_pb2' - , - __doc__ = """Request message for - [LandingPageViewService.GetLandingPageView][google.ads.googleads.v1.services.LandingPageViewService.GetLandingPageView]. - - - Attributes: - resource_name: - The resource name of the landing page view to fetch. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.GetLandingPageViewRequest) - )) -_sym_db.RegisterMessage(GetLandingPageViewRequest) - - -DESCRIPTOR._options = None - -_LANDINGPAGEVIEWSERVICE = _descriptor.ServiceDescriptor( - name='LandingPageViewService', - full_name='google.ads.googleads.v1.services.LandingPageViewService', - file=DESCRIPTOR, - index=0, - serialized_options=None, - serialized_start=288, - serialized_end=508, - methods=[ - _descriptor.MethodDescriptor( - name='GetLandingPageView', - full_name='google.ads.googleads.v1.services.LandingPageViewService.GetLandingPageView', - index=0, - containing_service=None, - input_type=_GETLANDINGPAGEVIEWREQUEST, - output_type=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_landing__page__view__pb2._LANDINGPAGEVIEW, - serialized_options=_b('\202\323\344\223\0024\0222/v1/{resource_name=customers/*/landingPageViews/*}'), - ), -]) -_sym_db.RegisterServiceDescriptor(_LANDINGPAGEVIEWSERVICE) - -DESCRIPTOR.services_by_name['LandingPageViewService'] = _LANDINGPAGEVIEWSERVICE - -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/services/landing_page_view_service_pb2_grpc.py b/google/ads/google_ads/v1/proto/services/landing_page_view_service_pb2_grpc.py deleted file mode 100644 index ca3823694..000000000 --- a/google/ads/google_ads/v1/proto/services/landing_page_view_service_pb2_grpc.py +++ /dev/null @@ -1,51 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -import grpc - -from google.ads.google_ads.v1.proto.resources import landing_page_view_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_landing__page__view__pb2 -from google.ads.google_ads.v1.proto.services import landing_page_view_service_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_landing__page__view__service__pb2 - - -class LandingPageViewServiceStub(object): - """Proto file describing the landing page view service. - - Service to fetch landing page views. - """ - - def __init__(self, channel): - """Constructor. - - Args: - channel: A grpc.Channel. - """ - self.GetLandingPageView = channel.unary_unary( - '/google.ads.googleads.v1.services.LandingPageViewService/GetLandingPageView', - request_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_landing__page__view__service__pb2.GetLandingPageViewRequest.SerializeToString, - response_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_landing__page__view__pb2.LandingPageView.FromString, - ) - - -class LandingPageViewServiceServicer(object): - """Proto file describing the landing page view service. - - Service to fetch landing page views. - """ - - def GetLandingPageView(self, request, context): - """Returns the requested landing page view in full detail. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - -def add_LandingPageViewServiceServicer_to_server(servicer, server): - rpc_method_handlers = { - 'GetLandingPageView': grpc.unary_unary_rpc_method_handler( - servicer.GetLandingPageView, - request_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_landing__page__view__service__pb2.GetLandingPageViewRequest.FromString, - response_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_landing__page__view__pb2.LandingPageView.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'google.ads.googleads.v1.services.LandingPageViewService', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) diff --git a/google/ads/google_ads/v1/proto/services/language_constant_service_pb2.py b/google/ads/google_ads/v1/proto/services/language_constant_service_pb2.py deleted file mode 100644 index 4e9cc9a1a..000000000 --- a/google/ads/google_ads/v1/proto/services/language_constant_service_pb2.py +++ /dev/null @@ -1,107 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/services/language_constant_service.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.ads.google_ads.v1.proto.resources import language_constant_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_language__constant__pb2 -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/services/language_constant_service.proto', - package='google.ads.googleads.v1.services', - syntax='proto3', - serialized_options=_b('\n$com.google.ads.googleads.v1.servicesB\034LanguageConstantServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v1/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V1.Services\312\002 Google\\Ads\\GoogleAds\\V1\\Services\352\002$Google::Ads::GoogleAds::V1::Services'), - serialized_pb=_b('\nFgoogle/ads/googleads_v1/proto/services/language_constant_service.proto\x12 google.ads.googleads.v1.services\x1a?google/ads/googleads_v1/proto/resources/language_constant.proto\x1a\x1cgoogle/api/annotations.proto\"3\n\x1aGetLanguageConstantRequest\x12\x15\n\rresource_name\x18\x01 \x01(\t2\xd5\x01\n\x17LanguageConstantService\x12\xb9\x01\n\x13GetLanguageConstant\x12<.google.ads.googleads.v1.services.GetLanguageConstantRequest\x1a\x33.google.ads.googleads.v1.resources.LanguageConstant\"/\x82\xd3\xe4\x93\x02)\x12\'/v1/{resource_name=languageConstants/*}B\x83\x02\n$com.google.ads.googleads.v1.servicesB\x1cLanguageConstantServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v1/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V1.Services\xca\x02 Google\\Ads\\GoogleAds\\V1\\Services\xea\x02$Google::Ads::GoogleAds::V1::Servicesb\x06proto3') - , - dependencies=[google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_language__constant__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - - -_GETLANGUAGECONSTANTREQUEST = _descriptor.Descriptor( - name='GetLanguageConstantRequest', - full_name='google.ads.googleads.v1.services.GetLanguageConstantRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.services.GetLanguageConstantRequest.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=203, - serialized_end=254, -) - -DESCRIPTOR.message_types_by_name['GetLanguageConstantRequest'] = _GETLANGUAGECONSTANTREQUEST -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -GetLanguageConstantRequest = _reflection.GeneratedProtocolMessageType('GetLanguageConstantRequest', (_message.Message,), dict( - DESCRIPTOR = _GETLANGUAGECONSTANTREQUEST, - __module__ = 'google.ads.googleads_v1.proto.services.language_constant_service_pb2' - , - __doc__ = """Request message for - [LanguageConstantService.GetLanguageConstant][google.ads.googleads.v1.services.LanguageConstantService.GetLanguageConstant]. - - - Attributes: - resource_name: - Resource name of the language constant to fetch. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.GetLanguageConstantRequest) - )) -_sym_db.RegisterMessage(GetLanguageConstantRequest) - - -DESCRIPTOR._options = None - -_LANGUAGECONSTANTSERVICE = _descriptor.ServiceDescriptor( - name='LanguageConstantService', - full_name='google.ads.googleads.v1.services.LanguageConstantService', - file=DESCRIPTOR, - index=0, - serialized_options=None, - serialized_start=257, - serialized_end=470, - methods=[ - _descriptor.MethodDescriptor( - name='GetLanguageConstant', - full_name='google.ads.googleads.v1.services.LanguageConstantService.GetLanguageConstant', - index=0, - containing_service=None, - input_type=_GETLANGUAGECONSTANTREQUEST, - output_type=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_language__constant__pb2._LANGUAGECONSTANT, - serialized_options=_b('\202\323\344\223\002)\022\'/v1/{resource_name=languageConstants/*}'), - ), -]) -_sym_db.RegisterServiceDescriptor(_LANGUAGECONSTANTSERVICE) - -DESCRIPTOR.services_by_name['LanguageConstantService'] = _LANGUAGECONSTANTSERVICE - -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/services/language_constant_service_pb2_grpc.py b/google/ads/google_ads/v1/proto/services/language_constant_service_pb2_grpc.py deleted file mode 100644 index 15bd63a00..000000000 --- a/google/ads/google_ads/v1/proto/services/language_constant_service_pb2_grpc.py +++ /dev/null @@ -1,51 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -import grpc - -from google.ads.google_ads.v1.proto.resources import language_constant_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_language__constant__pb2 -from google.ads.google_ads.v1.proto.services import language_constant_service_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_language__constant__service__pb2 - - -class LanguageConstantServiceStub(object): - """Proto file describing the language constant service. - - Service to fetch language constants. - """ - - def __init__(self, channel): - """Constructor. - - Args: - channel: A grpc.Channel. - """ - self.GetLanguageConstant = channel.unary_unary( - '/google.ads.googleads.v1.services.LanguageConstantService/GetLanguageConstant', - request_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_language__constant__service__pb2.GetLanguageConstantRequest.SerializeToString, - response_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_language__constant__pb2.LanguageConstant.FromString, - ) - - -class LanguageConstantServiceServicer(object): - """Proto file describing the language constant service. - - Service to fetch language constants. - """ - - def GetLanguageConstant(self, request, context): - """Returns the requested language constant. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - -def add_LanguageConstantServiceServicer_to_server(servicer, server): - rpc_method_handlers = { - 'GetLanguageConstant': grpc.unary_unary_rpc_method_handler( - servicer.GetLanguageConstant, - request_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_language__constant__service__pb2.GetLanguageConstantRequest.FromString, - response_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_language__constant__pb2.LanguageConstant.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'google.ads.googleads.v1.services.LanguageConstantService', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) diff --git a/google/ads/google_ads/v1/proto/services/location_view_service_pb2.py b/google/ads/google_ads/v1/proto/services/location_view_service_pb2.py deleted file mode 100644 index 76c415735..000000000 --- a/google/ads/google_ads/v1/proto/services/location_view_service_pb2.py +++ /dev/null @@ -1,107 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/services/location_view_service.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.ads.google_ads.v1.proto.resources import location_view_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_location__view__pb2 -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/services/location_view_service.proto', - package='google.ads.googleads.v1.services', - syntax='proto3', - serialized_options=_b('\n$com.google.ads.googleads.v1.servicesB\030LocationViewServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v1/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V1.Services\312\002 Google\\Ads\\GoogleAds\\V1\\Services\352\002$Google::Ads::GoogleAds::V1::Services'), - serialized_pb=_b('\nBgoogle/ads/googleads_v1/proto/services/location_view_service.proto\x12 google.ads.googleads.v1.services\x1a;google/ads/googleads_v1/proto/resources/location_view.proto\x1a\x1cgoogle/api/annotations.proto\"/\n\x16GetLocationViewRequest\x12\x15\n\rresource_name\x18\x01 \x01(\t2\xcd\x01\n\x13LocationViewService\x12\xb5\x01\n\x0fGetLocationView\x12\x38.google.ads.googleads.v1.services.GetLocationViewRequest\x1a/.google.ads.googleads.v1.resources.LocationView\"7\x82\xd3\xe4\x93\x02\x31\x12//v1/{resource_name=customers/*/locationViews/*}B\xff\x01\n$com.google.ads.googleads.v1.servicesB\x18LocationViewServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v1/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V1.Services\xca\x02 Google\\Ads\\GoogleAds\\V1\\Services\xea\x02$Google::Ads::GoogleAds::V1::Servicesb\x06proto3') - , - dependencies=[google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_location__view__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - - -_GETLOCATIONVIEWREQUEST = _descriptor.Descriptor( - name='GetLocationViewRequest', - full_name='google.ads.googleads.v1.services.GetLocationViewRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.services.GetLocationViewRequest.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=195, - serialized_end=242, -) - -DESCRIPTOR.message_types_by_name['GetLocationViewRequest'] = _GETLOCATIONVIEWREQUEST -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -GetLocationViewRequest = _reflection.GeneratedProtocolMessageType('GetLocationViewRequest', (_message.Message,), dict( - DESCRIPTOR = _GETLOCATIONVIEWREQUEST, - __module__ = 'google.ads.googleads_v1.proto.services.location_view_service_pb2' - , - __doc__ = """Request message for - [LocationViewService.GetLocationView][google.ads.googleads.v1.services.LocationViewService.GetLocationView]. - - - Attributes: - resource_name: - The resource name of the location view to fetch. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.GetLocationViewRequest) - )) -_sym_db.RegisterMessage(GetLocationViewRequest) - - -DESCRIPTOR._options = None - -_LOCATIONVIEWSERVICE = _descriptor.ServiceDescriptor( - name='LocationViewService', - full_name='google.ads.googleads.v1.services.LocationViewService', - file=DESCRIPTOR, - index=0, - serialized_options=None, - serialized_start=245, - serialized_end=450, - methods=[ - _descriptor.MethodDescriptor( - name='GetLocationView', - full_name='google.ads.googleads.v1.services.LocationViewService.GetLocationView', - index=0, - containing_service=None, - input_type=_GETLOCATIONVIEWREQUEST, - output_type=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_location__view__pb2._LOCATIONVIEW, - serialized_options=_b('\202\323\344\223\0021\022//v1/{resource_name=customers/*/locationViews/*}'), - ), -]) -_sym_db.RegisterServiceDescriptor(_LOCATIONVIEWSERVICE) - -DESCRIPTOR.services_by_name['LocationViewService'] = _LOCATIONVIEWSERVICE - -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/services/location_view_service_pb2_grpc.py b/google/ads/google_ads/v1/proto/services/location_view_service_pb2_grpc.py deleted file mode 100644 index 11aeb0dc3..000000000 --- a/google/ads/google_ads/v1/proto/services/location_view_service_pb2_grpc.py +++ /dev/null @@ -1,51 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -import grpc - -from google.ads.google_ads.v1.proto.resources import location_view_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_location__view__pb2 -from google.ads.google_ads.v1.proto.services import location_view_service_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_location__view__service__pb2 - - -class LocationViewServiceStub(object): - """Proto file describing the Location View service. - - Service to fetch location views. - """ - - def __init__(self, channel): - """Constructor. - - Args: - channel: A grpc.Channel. - """ - self.GetLocationView = channel.unary_unary( - '/google.ads.googleads.v1.services.LocationViewService/GetLocationView', - request_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_location__view__service__pb2.GetLocationViewRequest.SerializeToString, - response_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_location__view__pb2.LocationView.FromString, - ) - - -class LocationViewServiceServicer(object): - """Proto file describing the Location View service. - - Service to fetch location views. - """ - - def GetLocationView(self, request, context): - """Returns the requested location view in full detail. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - -def add_LocationViewServiceServicer_to_server(servicer, server): - rpc_method_handlers = { - 'GetLocationView': grpc.unary_unary_rpc_method_handler( - servicer.GetLocationView, - request_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_location__view__service__pb2.GetLocationViewRequest.FromString, - response_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_location__view__pb2.LocationView.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'google.ads.googleads.v1.services.LocationViewService', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) diff --git a/google/ads/google_ads/v1/proto/services/managed_placement_view_service_pb2.py b/google/ads/google_ads/v1/proto/services/managed_placement_view_service_pb2.py deleted file mode 100644 index 961d10bbd..000000000 --- a/google/ads/google_ads/v1/proto/services/managed_placement_view_service_pb2.py +++ /dev/null @@ -1,107 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/services/managed_placement_view_service.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.ads.google_ads.v1.proto.resources import managed_placement_view_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_managed__placement__view__pb2 -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/services/managed_placement_view_service.proto', - package='google.ads.googleads.v1.services', - syntax='proto3', - serialized_options=_b('\n$com.google.ads.googleads.v1.servicesB ManagedPlacementViewServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v1/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V1.Services\312\002 Google\\Ads\\GoogleAds\\V1\\Services\352\002$Google::Ads::GoogleAds::V1::Services'), - serialized_pb=_b('\nKgoogle/ads/googleads_v1/proto/services/managed_placement_view_service.proto\x12 google.ads.googleads.v1.services\x1a\x44google/ads/googleads_v1/proto/resources/managed_placement_view.proto\x1a\x1cgoogle/api/annotations.proto\"7\n\x1eGetManagedPlacementViewRequest\x12\x15\n\rresource_name\x18\x01 \x01(\t2\xf5\x01\n\x1bManagedPlacementViewService\x12\xd5\x01\n\x17GetManagedPlacementView\x12@.google.ads.googleads.v1.services.GetManagedPlacementViewRequest\x1a\x37.google.ads.googleads.v1.resources.ManagedPlacementView\"?\x82\xd3\xe4\x93\x02\x39\x12\x37/v1/{resource_name=customers/*/managedPlacementViews/*}B\x87\x02\n$com.google.ads.googleads.v1.servicesB ManagedPlacementViewServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v1/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V1.Services\xca\x02 Google\\Ads\\GoogleAds\\V1\\Services\xea\x02$Google::Ads::GoogleAds::V1::Servicesb\x06proto3') - , - dependencies=[google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_managed__placement__view__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - - -_GETMANAGEDPLACEMENTVIEWREQUEST = _descriptor.Descriptor( - name='GetManagedPlacementViewRequest', - full_name='google.ads.googleads.v1.services.GetManagedPlacementViewRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.services.GetManagedPlacementViewRequest.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=213, - serialized_end=268, -) - -DESCRIPTOR.message_types_by_name['GetManagedPlacementViewRequest'] = _GETMANAGEDPLACEMENTVIEWREQUEST -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -GetManagedPlacementViewRequest = _reflection.GeneratedProtocolMessageType('GetManagedPlacementViewRequest', (_message.Message,), dict( - DESCRIPTOR = _GETMANAGEDPLACEMENTVIEWREQUEST, - __module__ = 'google.ads.googleads_v1.proto.services.managed_placement_view_service_pb2' - , - __doc__ = """Request message for - [ManagedPlacementViewService.GetManagedPlacementView][google.ads.googleads.v1.services.ManagedPlacementViewService.GetManagedPlacementView]. - - - Attributes: - resource_name: - The resource name of the Managed Placement View to fetch. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.GetManagedPlacementViewRequest) - )) -_sym_db.RegisterMessage(GetManagedPlacementViewRequest) - - -DESCRIPTOR._options = None - -_MANAGEDPLACEMENTVIEWSERVICE = _descriptor.ServiceDescriptor( - name='ManagedPlacementViewService', - full_name='google.ads.googleads.v1.services.ManagedPlacementViewService', - file=DESCRIPTOR, - index=0, - serialized_options=None, - serialized_start=271, - serialized_end=516, - methods=[ - _descriptor.MethodDescriptor( - name='GetManagedPlacementView', - full_name='google.ads.googleads.v1.services.ManagedPlacementViewService.GetManagedPlacementView', - index=0, - containing_service=None, - input_type=_GETMANAGEDPLACEMENTVIEWREQUEST, - output_type=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_managed__placement__view__pb2._MANAGEDPLACEMENTVIEW, - serialized_options=_b('\202\323\344\223\0029\0227/v1/{resource_name=customers/*/managedPlacementViews/*}'), - ), -]) -_sym_db.RegisterServiceDescriptor(_MANAGEDPLACEMENTVIEWSERVICE) - -DESCRIPTOR.services_by_name['ManagedPlacementViewService'] = _MANAGEDPLACEMENTVIEWSERVICE - -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/services/managed_placement_view_service_pb2_grpc.py b/google/ads/google_ads/v1/proto/services/managed_placement_view_service_pb2_grpc.py deleted file mode 100644 index 5e5dcdcd6..000000000 --- a/google/ads/google_ads/v1/proto/services/managed_placement_view_service_pb2_grpc.py +++ /dev/null @@ -1,51 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -import grpc - -from google.ads.google_ads.v1.proto.resources import managed_placement_view_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_managed__placement__view__pb2 -from google.ads.google_ads.v1.proto.services import managed_placement_view_service_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_managed__placement__view__service__pb2 - - -class ManagedPlacementViewServiceStub(object): - """Proto file describing the Managed Placement View service. - - Service to manage Managed Placement views. - """ - - def __init__(self, channel): - """Constructor. - - Args: - channel: A grpc.Channel. - """ - self.GetManagedPlacementView = channel.unary_unary( - '/google.ads.googleads.v1.services.ManagedPlacementViewService/GetManagedPlacementView', - request_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_managed__placement__view__service__pb2.GetManagedPlacementViewRequest.SerializeToString, - response_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_managed__placement__view__pb2.ManagedPlacementView.FromString, - ) - - -class ManagedPlacementViewServiceServicer(object): - """Proto file describing the Managed Placement View service. - - Service to manage Managed Placement views. - """ - - def GetManagedPlacementView(self, request, context): - """Returns the requested Managed Placement view in full detail. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - -def add_ManagedPlacementViewServiceServicer_to_server(servicer, server): - rpc_method_handlers = { - 'GetManagedPlacementView': grpc.unary_unary_rpc_method_handler( - servicer.GetManagedPlacementView, - request_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_managed__placement__view__service__pb2.GetManagedPlacementViewRequest.FromString, - response_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_managed__placement__view__pb2.ManagedPlacementView.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'google.ads.googleads.v1.services.ManagedPlacementViewService', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) diff --git a/google/ads/google_ads/v1/proto/services/media_file_service_pb2.py b/google/ads/google_ads/v1/proto/services/media_file_service_pb2.py deleted file mode 100644 index 4aef787da..000000000 --- a/google/ads/google_ads/v1/proto/services/media_file_service_pb2.py +++ /dev/null @@ -1,364 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/services/media_file_service.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.ads.google_ads.v1.proto.resources import media_file_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_media__file__pb2 -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 -from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 -from google.rpc import status_pb2 as google_dot_rpc_dot_status__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/services/media_file_service.proto', - package='google.ads.googleads.v1.services', - syntax='proto3', - serialized_options=_b('\n$com.google.ads.googleads.v1.servicesB\025MediaFileServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v1/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V1.Services\312\002 Google\\Ads\\GoogleAds\\V1\\Services\352\002$Google::Ads::GoogleAds::V1::Services'), - serialized_pb=_b('\n?google/ads/googleads_v1/proto/services/media_file_service.proto\x12 google.ads.googleads.v1.services\x1a\x38google/ads/googleads_v1/proto/resources/media_file.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x17google/rpc/status.proto\",\n\x13GetMediaFileRequest\x12\x15\n\rresource_name\x18\x01 \x01(\t\"\xa8\x01\n\x17MutateMediaFilesRequest\x12\x13\n\x0b\x63ustomer_id\x18\x01 \x01(\t\x12H\n\noperations\x18\x02 \x03(\x0b\x32\x34.google.ads.googleads.v1.services.MediaFileOperation\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\"a\n\x12MediaFileOperation\x12>\n\x06\x63reate\x18\x01 \x01(\x0b\x32,.google.ads.googleads.v1.resources.MediaFileH\x00\x42\x0b\n\toperation\"\x97\x01\n\x18MutateMediaFilesResponse\x12\x31\n\x15partial_failure_error\x18\x03 \x01(\x0b\x32\x12.google.rpc.Status\x12H\n\x07results\x18\x02 \x03(\x0b\x32\x37.google.ads.googleads.v1.services.MutateMediaFileResult\".\n\x15MutateMediaFileResult\x12\x15\n\rresource_name\x18\x01 \x01(\t2\x86\x03\n\x10MediaFileService\x12\xa9\x01\n\x0cGetMediaFile\x12\x35.google.ads.googleads.v1.services.GetMediaFileRequest\x1a,.google.ads.googleads.v1.resources.MediaFile\"4\x82\xd3\xe4\x93\x02.\x12,/v1/{resource_name=customers/*/mediaFiles/*}\x12\xc5\x01\n\x10MutateMediaFiles\x12\x39.google.ads.googleads.v1.services.MutateMediaFilesRequest\x1a:.google.ads.googleads.v1.services.MutateMediaFilesResponse\":\x82\xd3\xe4\x93\x02\x34\"//v1/customers/{customer_id=*}/mediaFiles:mutate:\x01*B\xfc\x01\n$com.google.ads.googleads.v1.servicesB\x15MediaFileServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v1/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V1.Services\xca\x02 Google\\Ads\\GoogleAds\\V1\\Services\xea\x02$Google::Ads::GoogleAds::V1::Servicesb\x06proto3') - , - dependencies=[google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_media__file__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_rpc_dot_status__pb2.DESCRIPTOR,]) - - - - -_GETMEDIAFILEREQUEST = _descriptor.Descriptor( - name='GetMediaFileRequest', - full_name='google.ads.googleads.v1.services.GetMediaFileRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.services.GetMediaFileRequest.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=246, - serialized_end=290, -) - - -_MUTATEMEDIAFILESREQUEST = _descriptor.Descriptor( - name='MutateMediaFilesRequest', - full_name='google.ads.googleads.v1.services.MutateMediaFilesRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='customer_id', full_name='google.ads.googleads.v1.services.MutateMediaFilesRequest.customer_id', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='operations', full_name='google.ads.googleads.v1.services.MutateMediaFilesRequest.operations', index=1, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='partial_failure', full_name='google.ads.googleads.v1.services.MutateMediaFilesRequest.partial_failure', index=2, - number=3, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='validate_only', full_name='google.ads.googleads.v1.services.MutateMediaFilesRequest.validate_only', index=3, - number=4, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=293, - serialized_end=461, -) - - -_MEDIAFILEOPERATION = _descriptor.Descriptor( - name='MediaFileOperation', - full_name='google.ads.googleads.v1.services.MediaFileOperation', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='create', full_name='google.ads.googleads.v1.services.MediaFileOperation.create', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='operation', full_name='google.ads.googleads.v1.services.MediaFileOperation.operation', - index=0, containing_type=None, fields=[]), - ], - serialized_start=463, - serialized_end=560, -) - - -_MUTATEMEDIAFILESRESPONSE = _descriptor.Descriptor( - name='MutateMediaFilesResponse', - full_name='google.ads.googleads.v1.services.MutateMediaFilesResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='partial_failure_error', full_name='google.ads.googleads.v1.services.MutateMediaFilesResponse.partial_failure_error', index=0, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='results', full_name='google.ads.googleads.v1.services.MutateMediaFilesResponse.results', index=1, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=563, - serialized_end=714, -) - - -_MUTATEMEDIAFILERESULT = _descriptor.Descriptor( - name='MutateMediaFileResult', - full_name='google.ads.googleads.v1.services.MutateMediaFileResult', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.services.MutateMediaFileResult.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=716, - serialized_end=762, -) - -_MUTATEMEDIAFILESREQUEST.fields_by_name['operations'].message_type = _MEDIAFILEOPERATION -_MEDIAFILEOPERATION.fields_by_name['create'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_media__file__pb2._MEDIAFILE -_MEDIAFILEOPERATION.oneofs_by_name['operation'].fields.append( - _MEDIAFILEOPERATION.fields_by_name['create']) -_MEDIAFILEOPERATION.fields_by_name['create'].containing_oneof = _MEDIAFILEOPERATION.oneofs_by_name['operation'] -_MUTATEMEDIAFILESRESPONSE.fields_by_name['partial_failure_error'].message_type = google_dot_rpc_dot_status__pb2._STATUS -_MUTATEMEDIAFILESRESPONSE.fields_by_name['results'].message_type = _MUTATEMEDIAFILERESULT -DESCRIPTOR.message_types_by_name['GetMediaFileRequest'] = _GETMEDIAFILEREQUEST -DESCRIPTOR.message_types_by_name['MutateMediaFilesRequest'] = _MUTATEMEDIAFILESREQUEST -DESCRIPTOR.message_types_by_name['MediaFileOperation'] = _MEDIAFILEOPERATION -DESCRIPTOR.message_types_by_name['MutateMediaFilesResponse'] = _MUTATEMEDIAFILESRESPONSE -DESCRIPTOR.message_types_by_name['MutateMediaFileResult'] = _MUTATEMEDIAFILERESULT -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -GetMediaFileRequest = _reflection.GeneratedProtocolMessageType('GetMediaFileRequest', (_message.Message,), dict( - DESCRIPTOR = _GETMEDIAFILEREQUEST, - __module__ = 'google.ads.googleads_v1.proto.services.media_file_service_pb2' - , - __doc__ = """Request message for - [MediaFileService.GetMediaFile][google.ads.googleads.v1.services.MediaFileService.GetMediaFile] - - - Attributes: - resource_name: - The resource name of the media file to fetch. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.GetMediaFileRequest) - )) -_sym_db.RegisterMessage(GetMediaFileRequest) - -MutateMediaFilesRequest = _reflection.GeneratedProtocolMessageType('MutateMediaFilesRequest', (_message.Message,), dict( - DESCRIPTOR = _MUTATEMEDIAFILESREQUEST, - __module__ = 'google.ads.googleads_v1.proto.services.media_file_service_pb2' - , - __doc__ = """Request message for - [MediaFileService.MutateMediaFiles][google.ads.googleads.v1.services.MediaFileService.MutateMediaFiles] - - - Attributes: - customer_id: - The ID of the customer whose media files are being modified. - operations: - The list of operations to perform on individual media file. - partial_failure: - If true, successful operations will be carried out and invalid - operations will return errors. If false, all operations will - be carried out in one transaction if and only if they are all - valid. Default is false. - validate_only: - If true, the request is validated but not executed. Only - errors are returned, not results. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.MutateMediaFilesRequest) - )) -_sym_db.RegisterMessage(MutateMediaFilesRequest) - -MediaFileOperation = _reflection.GeneratedProtocolMessageType('MediaFileOperation', (_message.Message,), dict( - DESCRIPTOR = _MEDIAFILEOPERATION, - __module__ = 'google.ads.googleads_v1.proto.services.media_file_service_pb2' - , - __doc__ = """A single operation to create media file. - - - Attributes: - operation: - The mutate operation. - create: - Create operation: No resource name is expected for the new - media file. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.MediaFileOperation) - )) -_sym_db.RegisterMessage(MediaFileOperation) - -MutateMediaFilesResponse = _reflection.GeneratedProtocolMessageType('MutateMediaFilesResponse', (_message.Message,), dict( - DESCRIPTOR = _MUTATEMEDIAFILESRESPONSE, - __module__ = 'google.ads.googleads_v1.proto.services.media_file_service_pb2' - , - __doc__ = """Response message for a media file mutate. - - - Attributes: - partial_failure_error: - Errors that pertain to operation failures in the partial - failure mode. Returned only when partial\_failure = true and - all errors occur inside the operations. If any errors occur - outside the operations (e.g. auth errors), we return an RPC - level error. - results: - All results for the mutate. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.MutateMediaFilesResponse) - )) -_sym_db.RegisterMessage(MutateMediaFilesResponse) - -MutateMediaFileResult = _reflection.GeneratedProtocolMessageType('MutateMediaFileResult', (_message.Message,), dict( - DESCRIPTOR = _MUTATEMEDIAFILERESULT, - __module__ = 'google.ads.googleads_v1.proto.services.media_file_service_pb2' - , - __doc__ = """The result for the media file mutate. - - - Attributes: - resource_name: - The resource name returned for successful operations. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.MutateMediaFileResult) - )) -_sym_db.RegisterMessage(MutateMediaFileResult) - - -DESCRIPTOR._options = None - -_MEDIAFILESERVICE = _descriptor.ServiceDescriptor( - name='MediaFileService', - full_name='google.ads.googleads.v1.services.MediaFileService', - file=DESCRIPTOR, - index=0, - serialized_options=None, - serialized_start=765, - serialized_end=1155, - methods=[ - _descriptor.MethodDescriptor( - name='GetMediaFile', - full_name='google.ads.googleads.v1.services.MediaFileService.GetMediaFile', - index=0, - containing_service=None, - input_type=_GETMEDIAFILEREQUEST, - output_type=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_media__file__pb2._MEDIAFILE, - serialized_options=_b('\202\323\344\223\002.\022,/v1/{resource_name=customers/*/mediaFiles/*}'), - ), - _descriptor.MethodDescriptor( - name='MutateMediaFiles', - full_name='google.ads.googleads.v1.services.MediaFileService.MutateMediaFiles', - index=1, - containing_service=None, - input_type=_MUTATEMEDIAFILESREQUEST, - output_type=_MUTATEMEDIAFILESRESPONSE, - serialized_options=_b('\202\323\344\223\0024\"//v1/customers/{customer_id=*}/mediaFiles:mutate:\001*'), - ), -]) -_sym_db.RegisterServiceDescriptor(_MEDIAFILESERVICE) - -DESCRIPTOR.services_by_name['MediaFileService'] = _MEDIAFILESERVICE - -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/services/media_file_service_pb2_grpc.py b/google/ads/google_ads/v1/proto/services/media_file_service_pb2_grpc.py deleted file mode 100644 index 593a27f3c..000000000 --- a/google/ads/google_ads/v1/proto/services/media_file_service_pb2_grpc.py +++ /dev/null @@ -1,68 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -import grpc - -from google.ads.google_ads.v1.proto.resources import media_file_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_media__file__pb2 -from google.ads.google_ads.v1.proto.services import media_file_service_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_media__file__service__pb2 - - -class MediaFileServiceStub(object): - """Proto file describing the Media File service. - - Service to manage media files. - """ - - def __init__(self, channel): - """Constructor. - - Args: - channel: A grpc.Channel. - """ - self.GetMediaFile = channel.unary_unary( - '/google.ads.googleads.v1.services.MediaFileService/GetMediaFile', - request_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_media__file__service__pb2.GetMediaFileRequest.SerializeToString, - response_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_media__file__pb2.MediaFile.FromString, - ) - self.MutateMediaFiles = channel.unary_unary( - '/google.ads.googleads.v1.services.MediaFileService/MutateMediaFiles', - request_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_media__file__service__pb2.MutateMediaFilesRequest.SerializeToString, - response_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_media__file__service__pb2.MutateMediaFilesResponse.FromString, - ) - - -class MediaFileServiceServicer(object): - """Proto file describing the Media File service. - - Service to manage media files. - """ - - def GetMediaFile(self, request, context): - """Returns the requested media file in full detail. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def MutateMediaFiles(self, request, context): - """Creates media files. Operation statuses are returned. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - -def add_MediaFileServiceServicer_to_server(servicer, server): - rpc_method_handlers = { - 'GetMediaFile': grpc.unary_unary_rpc_method_handler( - servicer.GetMediaFile, - request_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_media__file__service__pb2.GetMediaFileRequest.FromString, - response_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_media__file__pb2.MediaFile.SerializeToString, - ), - 'MutateMediaFiles': grpc.unary_unary_rpc_method_handler( - servicer.MutateMediaFiles, - request_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_media__file__service__pb2.MutateMediaFilesRequest.FromString, - response_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_media__file__service__pb2.MutateMediaFilesResponse.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'google.ads.googleads.v1.services.MediaFileService', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) diff --git a/google/ads/google_ads/v1/proto/services/merchant_center_link_service_pb2.py b/google/ads/google_ads/v1/proto/services/merchant_center_link_service_pb2.py deleted file mode 100644 index 965c93faf..000000000 --- a/google/ads/google_ads/v1/proto/services/merchant_center_link_service_pb2.py +++ /dev/null @@ -1,459 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/services/merchant_center_link_service.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.ads.google_ads.v1.proto.resources import merchant_center_link_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_merchant__center__link__pb2 -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 -from google.protobuf import field_mask_pb2 as google_dot_protobuf_dot_field__mask__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/services/merchant_center_link_service.proto', - package='google.ads.googleads.v1.services', - syntax='proto3', - serialized_options=_b('\n$com.google.ads.googleads.v1.servicesB\036MerchantCenterLinkServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v1/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V1.Services\312\002 Google\\Ads\\GoogleAds\\V1\\Services\352\002$Google::Ads::GoogleAds::V1::Services'), - serialized_pb=_b('\nIgoogle/ads/googleads_v1/proto/services/merchant_center_link_service.proto\x12 google.ads.googleads.v1.services\x1a\x42google/ads/googleads_v1/proto/resources/merchant_center_link.proto\x1a\x1cgoogle/api/annotations.proto\x1a google/protobuf/field_mask.proto\"5\n\x1eListMerchantCenterLinksRequest\x12\x13\n\x0b\x63ustomer_id\x18\x01 \x01(\t\"w\n\x1fListMerchantCenterLinksResponse\x12T\n\x15merchant_center_links\x18\x01 \x03(\x0b\x32\x35.google.ads.googleads.v1.resources.MerchantCenterLink\"5\n\x1cGetMerchantCenterLinkRequest\x12\x15\n\rresource_name\x18\x01 \x01(\t\"\x88\x01\n\x1fMutateMerchantCenterLinkRequest\x12\x13\n\x0b\x63ustomer_id\x18\x01 \x01(\t\x12P\n\toperation\x18\x02 \x01(\x0b\x32=.google.ads.googleads.v1.services.MerchantCenterLinkOperation\"\xb6\x01\n\x1bMerchantCenterLinkOperation\x12/\n\x0bupdate_mask\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12G\n\x06update\x18\x01 \x01(\x0b\x32\x35.google.ads.googleads.v1.resources.MerchantCenterLinkH\x00\x12\x10\n\x06remove\x18\x02 \x01(\tH\x00\x42\x0b\n\toperation\"t\n MutateMerchantCenterLinkResponse\x12P\n\x06result\x18\x02 \x01(\x0b\x32@.google.ads.googleads.v1.services.MutateMerchantCenterLinkResult\"7\n\x1eMutateMerchantCenterLinkResult\x12\x15\n\rresource_name\x18\x01 \x01(\t2\xb0\x05\n\x19MerchantCenterLinkService\x12\xd9\x01\n\x17ListMerchantCenterLinks\x12@.google.ads.googleads.v1.services.ListMerchantCenterLinksRequest\x1a\x41.google.ads.googleads.v1.services.ListMerchantCenterLinksResponse\"9\x82\xd3\xe4\x93\x02\x33\x12\x31/v1/customers/{customer_id=*}/merchantCenterLinks\x12\xcd\x01\n\x15GetMerchantCenterLink\x12>.google.ads.googleads.v1.services.GetMerchantCenterLinkRequest\x1a\x35.google.ads.googleads.v1.resources.MerchantCenterLink\"=\x82\xd3\xe4\x93\x02\x37\x12\x35/v1/{resource_name=customers/*/merchantCenterLinks/*}\x12\xe6\x01\n\x18MutateMerchantCenterLink\x12\x41.google.ads.googleads.v1.services.MutateMerchantCenterLinkRequest\x1a\x42.google.ads.googleads.v1.services.MutateMerchantCenterLinkResponse\"C\x82\xd3\xe4\x93\x02=\"8/v1/customers/{customer_id=*}/merchantCenterLinks:mutate:\x01*B\x85\x02\n$com.google.ads.googleads.v1.servicesB\x1eMerchantCenterLinkServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v1/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V1.Services\xca\x02 Google\\Ads\\GoogleAds\\V1\\Services\xea\x02$Google::Ads::GoogleAds::V1::Servicesb\x06proto3') - , - dependencies=[google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_merchant__center__link__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_protobuf_dot_field__mask__pb2.DESCRIPTOR,]) - - - - -_LISTMERCHANTCENTERLINKSREQUEST = _descriptor.Descriptor( - name='ListMerchantCenterLinksRequest', - full_name='google.ads.googleads.v1.services.ListMerchantCenterLinksRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='customer_id', full_name='google.ads.googleads.v1.services.ListMerchantCenterLinksRequest.customer_id', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=243, - serialized_end=296, -) - - -_LISTMERCHANTCENTERLINKSRESPONSE = _descriptor.Descriptor( - name='ListMerchantCenterLinksResponse', - full_name='google.ads.googleads.v1.services.ListMerchantCenterLinksResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='merchant_center_links', full_name='google.ads.googleads.v1.services.ListMerchantCenterLinksResponse.merchant_center_links', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=298, - serialized_end=417, -) - - -_GETMERCHANTCENTERLINKREQUEST = _descriptor.Descriptor( - name='GetMerchantCenterLinkRequest', - full_name='google.ads.googleads.v1.services.GetMerchantCenterLinkRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.services.GetMerchantCenterLinkRequest.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=419, - serialized_end=472, -) - - -_MUTATEMERCHANTCENTERLINKREQUEST = _descriptor.Descriptor( - name='MutateMerchantCenterLinkRequest', - full_name='google.ads.googleads.v1.services.MutateMerchantCenterLinkRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='customer_id', full_name='google.ads.googleads.v1.services.MutateMerchantCenterLinkRequest.customer_id', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='operation', full_name='google.ads.googleads.v1.services.MutateMerchantCenterLinkRequest.operation', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=475, - serialized_end=611, -) - - -_MERCHANTCENTERLINKOPERATION = _descriptor.Descriptor( - name='MerchantCenterLinkOperation', - full_name='google.ads.googleads.v1.services.MerchantCenterLinkOperation', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='update_mask', full_name='google.ads.googleads.v1.services.MerchantCenterLinkOperation.update_mask', index=0, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='update', full_name='google.ads.googleads.v1.services.MerchantCenterLinkOperation.update', index=1, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='remove', full_name='google.ads.googleads.v1.services.MerchantCenterLinkOperation.remove', index=2, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='operation', full_name='google.ads.googleads.v1.services.MerchantCenterLinkOperation.operation', - index=0, containing_type=None, fields=[]), - ], - serialized_start=614, - serialized_end=796, -) - - -_MUTATEMERCHANTCENTERLINKRESPONSE = _descriptor.Descriptor( - name='MutateMerchantCenterLinkResponse', - full_name='google.ads.googleads.v1.services.MutateMerchantCenterLinkResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='result', full_name='google.ads.googleads.v1.services.MutateMerchantCenterLinkResponse.result', index=0, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=798, - serialized_end=914, -) - - -_MUTATEMERCHANTCENTERLINKRESULT = _descriptor.Descriptor( - name='MutateMerchantCenterLinkResult', - full_name='google.ads.googleads.v1.services.MutateMerchantCenterLinkResult', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.services.MutateMerchantCenterLinkResult.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=916, - serialized_end=971, -) - -_LISTMERCHANTCENTERLINKSRESPONSE.fields_by_name['merchant_center_links'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_merchant__center__link__pb2._MERCHANTCENTERLINK -_MUTATEMERCHANTCENTERLINKREQUEST.fields_by_name['operation'].message_type = _MERCHANTCENTERLINKOPERATION -_MERCHANTCENTERLINKOPERATION.fields_by_name['update_mask'].message_type = google_dot_protobuf_dot_field__mask__pb2._FIELDMASK -_MERCHANTCENTERLINKOPERATION.fields_by_name['update'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_merchant__center__link__pb2._MERCHANTCENTERLINK -_MERCHANTCENTERLINKOPERATION.oneofs_by_name['operation'].fields.append( - _MERCHANTCENTERLINKOPERATION.fields_by_name['update']) -_MERCHANTCENTERLINKOPERATION.fields_by_name['update'].containing_oneof = _MERCHANTCENTERLINKOPERATION.oneofs_by_name['operation'] -_MERCHANTCENTERLINKOPERATION.oneofs_by_name['operation'].fields.append( - _MERCHANTCENTERLINKOPERATION.fields_by_name['remove']) -_MERCHANTCENTERLINKOPERATION.fields_by_name['remove'].containing_oneof = _MERCHANTCENTERLINKOPERATION.oneofs_by_name['operation'] -_MUTATEMERCHANTCENTERLINKRESPONSE.fields_by_name['result'].message_type = _MUTATEMERCHANTCENTERLINKRESULT -DESCRIPTOR.message_types_by_name['ListMerchantCenterLinksRequest'] = _LISTMERCHANTCENTERLINKSREQUEST -DESCRIPTOR.message_types_by_name['ListMerchantCenterLinksResponse'] = _LISTMERCHANTCENTERLINKSRESPONSE -DESCRIPTOR.message_types_by_name['GetMerchantCenterLinkRequest'] = _GETMERCHANTCENTERLINKREQUEST -DESCRIPTOR.message_types_by_name['MutateMerchantCenterLinkRequest'] = _MUTATEMERCHANTCENTERLINKREQUEST -DESCRIPTOR.message_types_by_name['MerchantCenterLinkOperation'] = _MERCHANTCENTERLINKOPERATION -DESCRIPTOR.message_types_by_name['MutateMerchantCenterLinkResponse'] = _MUTATEMERCHANTCENTERLINKRESPONSE -DESCRIPTOR.message_types_by_name['MutateMerchantCenterLinkResult'] = _MUTATEMERCHANTCENTERLINKRESULT -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -ListMerchantCenterLinksRequest = _reflection.GeneratedProtocolMessageType('ListMerchantCenterLinksRequest', (_message.Message,), dict( - DESCRIPTOR = _LISTMERCHANTCENTERLINKSREQUEST, - __module__ = 'google.ads.googleads_v1.proto.services.merchant_center_link_service_pb2' - , - __doc__ = """Request message for - [MerchantCenterLinkService.ListMerchantCenterLinks][google.ads.googleads.v1.services.MerchantCenterLinkService.ListMerchantCenterLinks]. - - - Attributes: - customer_id: - The ID of the customer onto which to apply the Merchant Center - link list operation. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.ListMerchantCenterLinksRequest) - )) -_sym_db.RegisterMessage(ListMerchantCenterLinksRequest) - -ListMerchantCenterLinksResponse = _reflection.GeneratedProtocolMessageType('ListMerchantCenterLinksResponse', (_message.Message,), dict( - DESCRIPTOR = _LISTMERCHANTCENTERLINKSRESPONSE, - __module__ = 'google.ads.googleads_v1.proto.services.merchant_center_link_service_pb2' - , - __doc__ = """Response message for - [MerchantCenterLinkService.ListMerchantCenterLinks][google.ads.googleads.v1.services.MerchantCenterLinkService.ListMerchantCenterLinks]. - - - Attributes: - merchant_center_links: - Merchant Center links available for the requested customer - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.ListMerchantCenterLinksResponse) - )) -_sym_db.RegisterMessage(ListMerchantCenterLinksResponse) - -GetMerchantCenterLinkRequest = _reflection.GeneratedProtocolMessageType('GetMerchantCenterLinkRequest', (_message.Message,), dict( - DESCRIPTOR = _GETMERCHANTCENTERLINKREQUEST, - __module__ = 'google.ads.googleads_v1.proto.services.merchant_center_link_service_pb2' - , - __doc__ = """Request message for - [MerchantCenterLinkService.GetMerchantCenterLink][google.ads.googleads.v1.services.MerchantCenterLinkService.GetMerchantCenterLink]. - - - Attributes: - resource_name: - Resource name of the Merchant Center link. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.GetMerchantCenterLinkRequest) - )) -_sym_db.RegisterMessage(GetMerchantCenterLinkRequest) - -MutateMerchantCenterLinkRequest = _reflection.GeneratedProtocolMessageType('MutateMerchantCenterLinkRequest', (_message.Message,), dict( - DESCRIPTOR = _MUTATEMERCHANTCENTERLINKREQUEST, - __module__ = 'google.ads.googleads_v1.proto.services.merchant_center_link_service_pb2' - , - __doc__ = """Request message for - [MerchantCenterLinkService.MutateMerchantCenterLink][google.ads.googleads.v1.services.MerchantCenterLinkService.MutateMerchantCenterLink]. - - - Attributes: - customer_id: - The ID of the customer being modified. - operation: - The operation to perform on the link - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.MutateMerchantCenterLinkRequest) - )) -_sym_db.RegisterMessage(MutateMerchantCenterLinkRequest) - -MerchantCenterLinkOperation = _reflection.GeneratedProtocolMessageType('MerchantCenterLinkOperation', (_message.Message,), dict( - DESCRIPTOR = _MERCHANTCENTERLINKOPERATION, - __module__ = 'google.ads.googleads_v1.proto.services.merchant_center_link_service_pb2' - , - __doc__ = """A single update on a Merchant Center link. - - - Attributes: - update_mask: - FieldMask that determines which resource fields are modified - in an update. - operation: - The operation to perform - update: - Update operation: The merchant center link is expected to have - a valid resource name. - remove: - Remove operation: A resource name for the removed merchant - center link is expected, in this format: ``customers/{custome - r_id}/merchantCenterLinks/{merchant_center_id}`` - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.MerchantCenterLinkOperation) - )) -_sym_db.RegisterMessage(MerchantCenterLinkOperation) - -MutateMerchantCenterLinkResponse = _reflection.GeneratedProtocolMessageType('MutateMerchantCenterLinkResponse', (_message.Message,), dict( - DESCRIPTOR = _MUTATEMERCHANTCENTERLINKRESPONSE, - __module__ = 'google.ads.googleads_v1.proto.services.merchant_center_link_service_pb2' - , - __doc__ = """Response message for Merchant Center link mutate. - - - Attributes: - result: - Result for the mutate. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.MutateMerchantCenterLinkResponse) - )) -_sym_db.RegisterMessage(MutateMerchantCenterLinkResponse) - -MutateMerchantCenterLinkResult = _reflection.GeneratedProtocolMessageType('MutateMerchantCenterLinkResult', (_message.Message,), dict( - DESCRIPTOR = _MUTATEMERCHANTCENTERLINKRESULT, - __module__ = 'google.ads.googleads_v1.proto.services.merchant_center_link_service_pb2' - , - __doc__ = """The result for the Merchant Center link mutate. - - - Attributes: - resource_name: - Returned for successful operations. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.MutateMerchantCenterLinkResult) - )) -_sym_db.RegisterMessage(MutateMerchantCenterLinkResult) - - -DESCRIPTOR._options = None - -_MERCHANTCENTERLINKSERVICE = _descriptor.ServiceDescriptor( - name='MerchantCenterLinkService', - full_name='google.ads.googleads.v1.services.MerchantCenterLinkService', - file=DESCRIPTOR, - index=0, - serialized_options=None, - serialized_start=974, - serialized_end=1662, - methods=[ - _descriptor.MethodDescriptor( - name='ListMerchantCenterLinks', - full_name='google.ads.googleads.v1.services.MerchantCenterLinkService.ListMerchantCenterLinks', - index=0, - containing_service=None, - input_type=_LISTMERCHANTCENTERLINKSREQUEST, - output_type=_LISTMERCHANTCENTERLINKSRESPONSE, - serialized_options=_b('\202\323\344\223\0023\0221/v1/customers/{customer_id=*}/merchantCenterLinks'), - ), - _descriptor.MethodDescriptor( - name='GetMerchantCenterLink', - full_name='google.ads.googleads.v1.services.MerchantCenterLinkService.GetMerchantCenterLink', - index=1, - containing_service=None, - input_type=_GETMERCHANTCENTERLINKREQUEST, - output_type=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_merchant__center__link__pb2._MERCHANTCENTERLINK, - serialized_options=_b('\202\323\344\223\0027\0225/v1/{resource_name=customers/*/merchantCenterLinks/*}'), - ), - _descriptor.MethodDescriptor( - name='MutateMerchantCenterLink', - full_name='google.ads.googleads.v1.services.MerchantCenterLinkService.MutateMerchantCenterLink', - index=2, - containing_service=None, - input_type=_MUTATEMERCHANTCENTERLINKREQUEST, - output_type=_MUTATEMERCHANTCENTERLINKRESPONSE, - serialized_options=_b('\202\323\344\223\002=\"8/v1/customers/{customer_id=*}/merchantCenterLinks:mutate:\001*'), - ), -]) -_sym_db.RegisterServiceDescriptor(_MERCHANTCENTERLINKSERVICE) - -DESCRIPTOR.services_by_name['MerchantCenterLinkService'] = _MERCHANTCENTERLINKSERVICE - -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/services/merchant_center_link_service_pb2_grpc.py b/google/ads/google_ads/v1/proto/services/merchant_center_link_service_pb2_grpc.py deleted file mode 100644 index fb0ddb7c7..000000000 --- a/google/ads/google_ads/v1/proto/services/merchant_center_link_service_pb2_grpc.py +++ /dev/null @@ -1,87 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -import grpc - -from google.ads.google_ads.v1.proto.resources import merchant_center_link_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_merchant__center__link__pb2 -from google.ads.google_ads.v1.proto.services import merchant_center_link_service_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_merchant__center__link__service__pb2 - - -class MerchantCenterLinkServiceStub(object): - """Proto file describing the MerchantCenterLink service. - - This service allows management of links between Google Ads and Google - Merchant Center. - """ - - def __init__(self, channel): - """Constructor. - - Args: - channel: A grpc.Channel. - """ - self.ListMerchantCenterLinks = channel.unary_unary( - '/google.ads.googleads.v1.services.MerchantCenterLinkService/ListMerchantCenterLinks', - request_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_merchant__center__link__service__pb2.ListMerchantCenterLinksRequest.SerializeToString, - response_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_merchant__center__link__service__pb2.ListMerchantCenterLinksResponse.FromString, - ) - self.GetMerchantCenterLink = channel.unary_unary( - '/google.ads.googleads.v1.services.MerchantCenterLinkService/GetMerchantCenterLink', - request_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_merchant__center__link__service__pb2.GetMerchantCenterLinkRequest.SerializeToString, - response_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_merchant__center__link__pb2.MerchantCenterLink.FromString, - ) - self.MutateMerchantCenterLink = channel.unary_unary( - '/google.ads.googleads.v1.services.MerchantCenterLinkService/MutateMerchantCenterLink', - request_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_merchant__center__link__service__pb2.MutateMerchantCenterLinkRequest.SerializeToString, - response_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_merchant__center__link__service__pb2.MutateMerchantCenterLinkResponse.FromString, - ) - - -class MerchantCenterLinkServiceServicer(object): - """Proto file describing the MerchantCenterLink service. - - This service allows management of links between Google Ads and Google - Merchant Center. - """ - - def ListMerchantCenterLinks(self, request, context): - """Returns Merchant Center links available tor this customer. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetMerchantCenterLink(self, request, context): - """Returns the Merchant Center link in full detail. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def MutateMerchantCenterLink(self, request, context): - """Updates status or removes a Merchant Center link. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - -def add_MerchantCenterLinkServiceServicer_to_server(servicer, server): - rpc_method_handlers = { - 'ListMerchantCenterLinks': grpc.unary_unary_rpc_method_handler( - servicer.ListMerchantCenterLinks, - request_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_merchant__center__link__service__pb2.ListMerchantCenterLinksRequest.FromString, - response_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_merchant__center__link__service__pb2.ListMerchantCenterLinksResponse.SerializeToString, - ), - 'GetMerchantCenterLink': grpc.unary_unary_rpc_method_handler( - servicer.GetMerchantCenterLink, - request_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_merchant__center__link__service__pb2.GetMerchantCenterLinkRequest.FromString, - response_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_merchant__center__link__pb2.MerchantCenterLink.SerializeToString, - ), - 'MutateMerchantCenterLink': grpc.unary_unary_rpc_method_handler( - servicer.MutateMerchantCenterLink, - request_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_merchant__center__link__service__pb2.MutateMerchantCenterLinkRequest.FromString, - response_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_merchant__center__link__service__pb2.MutateMerchantCenterLinkResponse.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'google.ads.googleads.v1.services.MerchantCenterLinkService', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) diff --git a/google/ads/google_ads/v1/proto/services/mobile_app_category_constant_service_pb2.py b/google/ads/google_ads/v1/proto/services/mobile_app_category_constant_service_pb2.py deleted file mode 100644 index dac9ef56b..000000000 --- a/google/ads/google_ads/v1/proto/services/mobile_app_category_constant_service_pb2.py +++ /dev/null @@ -1,107 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/services/mobile_app_category_constant_service.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.ads.google_ads.v1.proto.resources import mobile_app_category_constant_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_mobile__app__category__constant__pb2 -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/services/mobile_app_category_constant_service.proto', - package='google.ads.googleads.v1.services', - syntax='proto3', - serialized_options=_b('\n$com.google.ads.googleads.v1.servicesB%MobileAppCategoryConstantServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v1/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V1.Services\312\002 Google\\Ads\\GoogleAds\\V1\\Services\352\002$Google::Ads::GoogleAds::V1::Services'), - serialized_pb=_b('\nQgoogle/ads/googleads_v1/proto/services/mobile_app_category_constant_service.proto\x12 google.ads.googleads.v1.services\x1aJgoogle/ads/googleads_v1/proto/resources/mobile_app_category_constant.proto\x1a\x1cgoogle/api/annotations.proto\"<\n#GetMobileAppCategoryConstantRequest\x12\x15\n\rresource_name\x18\x01 \x01(\t2\x82\x02\n MobileAppCategoryConstantService\x12\xdd\x01\n\x1cGetMobileAppCategoryConstant\x12\x45.google.ads.googleads.v1.services.GetMobileAppCategoryConstantRequest\x1a<.google.ads.googleads.v1.resources.MobileAppCategoryConstant\"8\x82\xd3\xe4\x93\x02\x32\x12\x30/v1/{resource_name=mobileAppCategoryConstants/*}B\x8c\x02\n$com.google.ads.googleads.v1.servicesB%MobileAppCategoryConstantServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v1/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V1.Services\xca\x02 Google\\Ads\\GoogleAds\\V1\\Services\xea\x02$Google::Ads::GoogleAds::V1::Servicesb\x06proto3') - , - dependencies=[google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_mobile__app__category__constant__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - - -_GETMOBILEAPPCATEGORYCONSTANTREQUEST = _descriptor.Descriptor( - name='GetMobileAppCategoryConstantRequest', - full_name='google.ads.googleads.v1.services.GetMobileAppCategoryConstantRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.services.GetMobileAppCategoryConstantRequest.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=225, - serialized_end=285, -) - -DESCRIPTOR.message_types_by_name['GetMobileAppCategoryConstantRequest'] = _GETMOBILEAPPCATEGORYCONSTANTREQUEST -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -GetMobileAppCategoryConstantRequest = _reflection.GeneratedProtocolMessageType('GetMobileAppCategoryConstantRequest', (_message.Message,), dict( - DESCRIPTOR = _GETMOBILEAPPCATEGORYCONSTANTREQUEST, - __module__ = 'google.ads.googleads_v1.proto.services.mobile_app_category_constant_service_pb2' - , - __doc__ = """Request message for - [MobileAppCategoryConstantService.GetMobileAppCategoryConstant][google.ads.googleads.v1.services.MobileAppCategoryConstantService.GetMobileAppCategoryConstant]. - - - Attributes: - resource_name: - Resource name of the mobile app category constant to fetch. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.GetMobileAppCategoryConstantRequest) - )) -_sym_db.RegisterMessage(GetMobileAppCategoryConstantRequest) - - -DESCRIPTOR._options = None - -_MOBILEAPPCATEGORYCONSTANTSERVICE = _descriptor.ServiceDescriptor( - name='MobileAppCategoryConstantService', - full_name='google.ads.googleads.v1.services.MobileAppCategoryConstantService', - file=DESCRIPTOR, - index=0, - serialized_options=None, - serialized_start=288, - serialized_end=546, - methods=[ - _descriptor.MethodDescriptor( - name='GetMobileAppCategoryConstant', - full_name='google.ads.googleads.v1.services.MobileAppCategoryConstantService.GetMobileAppCategoryConstant', - index=0, - containing_service=None, - input_type=_GETMOBILEAPPCATEGORYCONSTANTREQUEST, - output_type=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_mobile__app__category__constant__pb2._MOBILEAPPCATEGORYCONSTANT, - serialized_options=_b('\202\323\344\223\0022\0220/v1/{resource_name=mobileAppCategoryConstants/*}'), - ), -]) -_sym_db.RegisterServiceDescriptor(_MOBILEAPPCATEGORYCONSTANTSERVICE) - -DESCRIPTOR.services_by_name['MobileAppCategoryConstantService'] = _MOBILEAPPCATEGORYCONSTANTSERVICE - -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/services/mobile_app_category_constant_service_pb2_grpc.py b/google/ads/google_ads/v1/proto/services/mobile_app_category_constant_service_pb2_grpc.py deleted file mode 100644 index aea44605d..000000000 --- a/google/ads/google_ads/v1/proto/services/mobile_app_category_constant_service_pb2_grpc.py +++ /dev/null @@ -1,47 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -import grpc - -from google.ads.google_ads.v1.proto.resources import mobile_app_category_constant_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_mobile__app__category__constant__pb2 -from google.ads.google_ads.v1.proto.services import mobile_app_category_constant_service_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_mobile__app__category__constant__service__pb2 - - -class MobileAppCategoryConstantServiceStub(object): - """Service to fetch mobile app category constants. - """ - - def __init__(self, channel): - """Constructor. - - Args: - channel: A grpc.Channel. - """ - self.GetMobileAppCategoryConstant = channel.unary_unary( - '/google.ads.googleads.v1.services.MobileAppCategoryConstantService/GetMobileAppCategoryConstant', - request_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_mobile__app__category__constant__service__pb2.GetMobileAppCategoryConstantRequest.SerializeToString, - response_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_mobile__app__category__constant__pb2.MobileAppCategoryConstant.FromString, - ) - - -class MobileAppCategoryConstantServiceServicer(object): - """Service to fetch mobile app category constants. - """ - - def GetMobileAppCategoryConstant(self, request, context): - """Returns the requested mobile app category constant. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - -def add_MobileAppCategoryConstantServiceServicer_to_server(servicer, server): - rpc_method_handlers = { - 'GetMobileAppCategoryConstant': grpc.unary_unary_rpc_method_handler( - servicer.GetMobileAppCategoryConstant, - request_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_mobile__app__category__constant__service__pb2.GetMobileAppCategoryConstantRequest.FromString, - response_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_mobile__app__category__constant__pb2.MobileAppCategoryConstant.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'google.ads.googleads.v1.services.MobileAppCategoryConstantService', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) diff --git a/google/ads/google_ads/v1/proto/services/mobile_device_constant_service_pb2.py b/google/ads/google_ads/v1/proto/services/mobile_device_constant_service_pb2.py deleted file mode 100644 index e79945700..000000000 --- a/google/ads/google_ads/v1/proto/services/mobile_device_constant_service_pb2.py +++ /dev/null @@ -1,107 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/services/mobile_device_constant_service.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.ads.google_ads.v1.proto.resources import mobile_device_constant_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_mobile__device__constant__pb2 -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/services/mobile_device_constant_service.proto', - package='google.ads.googleads.v1.services', - syntax='proto3', - serialized_options=_b('\n$com.google.ads.googleads.v1.servicesB MobileDeviceConstantServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v1/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V1.Services\312\002 Google\\Ads\\GoogleAds\\V1\\Services\352\002$Google::Ads::GoogleAds::V1::Services'), - serialized_pb=_b('\nKgoogle/ads/googleads_v1/proto/services/mobile_device_constant_service.proto\x12 google.ads.googleads.v1.services\x1a\x44google/ads/googleads_v1/proto/resources/mobile_device_constant.proto\x1a\x1cgoogle/api/annotations.proto\"7\n\x1eGetMobileDeviceConstantRequest\x12\x15\n\rresource_name\x18\x01 \x01(\t2\xe9\x01\n\x1bMobileDeviceConstantService\x12\xc9\x01\n\x17GetMobileDeviceConstant\x12@.google.ads.googleads.v1.services.GetMobileDeviceConstantRequest\x1a\x37.google.ads.googleads.v1.resources.MobileDeviceConstant\"3\x82\xd3\xe4\x93\x02-\x12+/v1/{resource_name=mobileDeviceConstants/*}B\x87\x02\n$com.google.ads.googleads.v1.servicesB MobileDeviceConstantServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v1/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V1.Services\xca\x02 Google\\Ads\\GoogleAds\\V1\\Services\xea\x02$Google::Ads::GoogleAds::V1::Servicesb\x06proto3') - , - dependencies=[google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_mobile__device__constant__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - - -_GETMOBILEDEVICECONSTANTREQUEST = _descriptor.Descriptor( - name='GetMobileDeviceConstantRequest', - full_name='google.ads.googleads.v1.services.GetMobileDeviceConstantRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.services.GetMobileDeviceConstantRequest.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=213, - serialized_end=268, -) - -DESCRIPTOR.message_types_by_name['GetMobileDeviceConstantRequest'] = _GETMOBILEDEVICECONSTANTREQUEST -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -GetMobileDeviceConstantRequest = _reflection.GeneratedProtocolMessageType('GetMobileDeviceConstantRequest', (_message.Message,), dict( - DESCRIPTOR = _GETMOBILEDEVICECONSTANTREQUEST, - __module__ = 'google.ads.googleads_v1.proto.services.mobile_device_constant_service_pb2' - , - __doc__ = """Request message for - [MobileDeviceConstantService.GetMobileDeviceConstant][google.ads.googleads.v1.services.MobileDeviceConstantService.GetMobileDeviceConstant]. - - - Attributes: - resource_name: - Resource name of the mobile device to fetch. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.GetMobileDeviceConstantRequest) - )) -_sym_db.RegisterMessage(GetMobileDeviceConstantRequest) - - -DESCRIPTOR._options = None - -_MOBILEDEVICECONSTANTSERVICE = _descriptor.ServiceDescriptor( - name='MobileDeviceConstantService', - full_name='google.ads.googleads.v1.services.MobileDeviceConstantService', - file=DESCRIPTOR, - index=0, - serialized_options=None, - serialized_start=271, - serialized_end=504, - methods=[ - _descriptor.MethodDescriptor( - name='GetMobileDeviceConstant', - full_name='google.ads.googleads.v1.services.MobileDeviceConstantService.GetMobileDeviceConstant', - index=0, - containing_service=None, - input_type=_GETMOBILEDEVICECONSTANTREQUEST, - output_type=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_mobile__device__constant__pb2._MOBILEDEVICECONSTANT, - serialized_options=_b('\202\323\344\223\002-\022+/v1/{resource_name=mobileDeviceConstants/*}'), - ), -]) -_sym_db.RegisterServiceDescriptor(_MOBILEDEVICECONSTANTSERVICE) - -DESCRIPTOR.services_by_name['MobileDeviceConstantService'] = _MOBILEDEVICECONSTANTSERVICE - -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/services/mobile_device_constant_service_pb2_grpc.py b/google/ads/google_ads/v1/proto/services/mobile_device_constant_service_pb2_grpc.py deleted file mode 100644 index 91fe951f7..000000000 --- a/google/ads/google_ads/v1/proto/services/mobile_device_constant_service_pb2_grpc.py +++ /dev/null @@ -1,51 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -import grpc - -from google.ads.google_ads.v1.proto.resources import mobile_device_constant_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_mobile__device__constant__pb2 -from google.ads.google_ads.v1.proto.services import mobile_device_constant_service_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_mobile__device__constant__service__pb2 - - -class MobileDeviceConstantServiceStub(object): - """Proto file describing the mobile device constant service. - - Service to fetch mobile device constants. - """ - - def __init__(self, channel): - """Constructor. - - Args: - channel: A grpc.Channel. - """ - self.GetMobileDeviceConstant = channel.unary_unary( - '/google.ads.googleads.v1.services.MobileDeviceConstantService/GetMobileDeviceConstant', - request_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_mobile__device__constant__service__pb2.GetMobileDeviceConstantRequest.SerializeToString, - response_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_mobile__device__constant__pb2.MobileDeviceConstant.FromString, - ) - - -class MobileDeviceConstantServiceServicer(object): - """Proto file describing the mobile device constant service. - - Service to fetch mobile device constants. - """ - - def GetMobileDeviceConstant(self, request, context): - """Returns the requested mobile device constant in full detail. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - -def add_MobileDeviceConstantServiceServicer_to_server(servicer, server): - rpc_method_handlers = { - 'GetMobileDeviceConstant': grpc.unary_unary_rpc_method_handler( - servicer.GetMobileDeviceConstant, - request_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_mobile__device__constant__service__pb2.GetMobileDeviceConstantRequest.FromString, - response_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_mobile__device__constant__pb2.MobileDeviceConstant.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'google.ads.googleads.v1.services.MobileDeviceConstantService', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) diff --git a/google/ads/google_ads/v1/proto/services/mutate_job_service_pb2.py b/google/ads/google_ads/v1/proto/services/mutate_job_service_pb2.py deleted file mode 100644 index 5ee3aec00..000000000 --- a/google/ads/google_ads/v1/proto/services/mutate_job_service_pb2.py +++ /dev/null @@ -1,627 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/services/mutate_job_service.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.ads.google_ads.v1.proto.resources import mutate_job_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_mutate__job__pb2 -from google.ads.google_ads.v1.proto.services import google_ads_service_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_google__ads__service__pb2 -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 -from google.longrunning import operations_pb2 as google_dot_longrunning_dot_operations__pb2 -from google.rpc import status_pb2 as google_dot_rpc_dot_status__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/services/mutate_job_service.proto', - package='google.ads.googleads.v1.services', - syntax='proto3', - serialized_options=_b('\n$com.google.ads.googleads.v1.servicesB\025MutateJobServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v1/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V1.Services\312\002 Google\\Ads\\GoogleAds\\V1\\Services\352\002$Google::Ads::GoogleAds::V1::Services'), - serialized_pb=_b('\n?google/ads/googleads_v1/proto/services/mutate_job_service.proto\x12 google.ads.googleads.v1.services\x1a\x38google/ads/googleads_v1/proto/resources/mutate_job.proto\x1a?google/ads/googleads_v1/proto/services/google_ads_service.proto\x1a\x1cgoogle/api/annotations.proto\x1a#google/longrunning/operations.proto\x1a\x17google/rpc/status.proto\"-\n\x16\x43reateMutateJobRequest\x12\x13\n\x0b\x63ustomer_id\x18\x01 \x01(\t\"0\n\x17\x43reateMutateJobResponse\x12\x15\n\rresource_name\x18\x01 \x01(\t\",\n\x13GetMutateJobRequest\x12\x15\n\rresource_name\x18\x01 \x01(\t\",\n\x13RunMutateJobRequest\x12\x15\n\rresource_name\x18\x01 \x01(\t\"\x9c\x01\n\x1d\x41\x64\x64MutateJobOperationsRequest\x12\x15\n\rresource_name\x18\x01 \x01(\t\x12\x16\n\x0esequence_token\x18\x02 \x01(\t\x12L\n\x11mutate_operations\x18\x03 \x03(\x0b\x32\x31.google.ads.googleads.v1.services.MutateOperation\"W\n\x1e\x41\x64\x64MutateJobOperationsResponse\x12\x18\n\x10total_operations\x18\x01 \x01(\x03\x12\x1b\n\x13next_sequence_token\x18\x02 \x01(\t\"[\n\x1bListMutateJobResultsRequest\x12\x15\n\rresource_name\x18\x01 \x01(\t\x12\x12\n\npage_token\x18\x02 \x01(\t\x12\x11\n\tpage_size\x18\x03 \x01(\x05\"{\n\x1cListMutateJobResultsResponse\x12\x42\n\x07results\x18\x01 \x03(\x0b\x32\x31.google.ads.googleads.v1.services.MutateJobResult\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xac\x01\n\x0fMutateJobResult\x12\x17\n\x0foperation_index\x18\x01 \x01(\x03\x12\\\n\x19mutate_operation_response\x18\x02 \x01(\x0b\x32\x39.google.ads.googleads.v1.services.MutateOperationResponse\x12\"\n\x06status\x18\x03 \x01(\x0b\x32\x12.google.rpc.Status2\xe6\x07\n\x10MutateJobService\x12\xc2\x01\n\x0f\x43reateMutateJob\x12\x38.google.ads.googleads.v1.services.CreateMutateJobRequest\x1a\x39.google.ads.googleads.v1.services.CreateMutateJobResponse\":\x82\xd3\xe4\x93\x02\x34\"//v1/customers/{customer_id=*}/mutateJobs:create:\x01*\x12\xa9\x01\n\x0cGetMutateJob\x12\x35.google.ads.googleads.v1.services.GetMutateJobRequest\x1a,.google.ads.googleads.v1.resources.MutateJob\"4\x82\xd3\xe4\x93\x02.\x12,/v1/{resource_name=customers/*/mutateJobs/*}\x12\xd7\x01\n\x14ListMutateJobResults\x12=.google.ads.googleads.v1.services.ListMutateJobResultsRequest\x1a>.google.ads.googleads.v1.services.ListMutateJobResultsResponse\"@\x82\xd3\xe4\x93\x02:\x12\x38/v1/{resource_name=customers/*/mutateJobs/*}:listResults\x12\xa1\x01\n\x0cRunMutateJob\x12\x35.google.ads.googleads.v1.services.RunMutateJobRequest\x1a\x1d.google.longrunning.Operation\";\x82\xd3\xe4\x93\x02\x35\"0/v1/{resource_name=customers/*/mutateJobs/*}:run:\x01*\x12\xe2\x01\n\x16\x41\x64\x64MutateJobOperations\x12?.google.ads.googleads.v1.services.AddMutateJobOperationsRequest\x1a@.google.ads.googleads.v1.services.AddMutateJobOperationsResponse\"E\x82\xd3\xe4\x93\x02?\":/v1/{resource_name=customers/*/mutateJobs/*}:addOperations:\x01*B\xfc\x01\n$com.google.ads.googleads.v1.servicesB\x15MutateJobServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v1/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V1.Services\xca\x02 Google\\Ads\\GoogleAds\\V1\\Services\xea\x02$Google::Ads::GoogleAds::V1::Servicesb\x06proto3') - , - dependencies=[google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_mutate__job__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_google__ads__service__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_longrunning_dot_operations__pb2.DESCRIPTOR,google_dot_rpc_dot_status__pb2.DESCRIPTOR,]) - - - - -_CREATEMUTATEJOBREQUEST = _descriptor.Descriptor( - name='CreateMutateJobRequest', - full_name='google.ads.googleads.v1.services.CreateMutateJobRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='customer_id', full_name='google.ads.googleads.v1.services.CreateMutateJobRequest.customer_id', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=316, - serialized_end=361, -) - - -_CREATEMUTATEJOBRESPONSE = _descriptor.Descriptor( - name='CreateMutateJobResponse', - full_name='google.ads.googleads.v1.services.CreateMutateJobResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.services.CreateMutateJobResponse.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=363, - serialized_end=411, -) - - -_GETMUTATEJOBREQUEST = _descriptor.Descriptor( - name='GetMutateJobRequest', - full_name='google.ads.googleads.v1.services.GetMutateJobRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.services.GetMutateJobRequest.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=413, - serialized_end=457, -) - - -_RUNMUTATEJOBREQUEST = _descriptor.Descriptor( - name='RunMutateJobRequest', - full_name='google.ads.googleads.v1.services.RunMutateJobRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.services.RunMutateJobRequest.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=459, - serialized_end=503, -) - - -_ADDMUTATEJOBOPERATIONSREQUEST = _descriptor.Descriptor( - name='AddMutateJobOperationsRequest', - full_name='google.ads.googleads.v1.services.AddMutateJobOperationsRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.services.AddMutateJobOperationsRequest.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='sequence_token', full_name='google.ads.googleads.v1.services.AddMutateJobOperationsRequest.sequence_token', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='mutate_operations', full_name='google.ads.googleads.v1.services.AddMutateJobOperationsRequest.mutate_operations', index=2, - number=3, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=506, - serialized_end=662, -) - - -_ADDMUTATEJOBOPERATIONSRESPONSE = _descriptor.Descriptor( - name='AddMutateJobOperationsResponse', - full_name='google.ads.googleads.v1.services.AddMutateJobOperationsResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='total_operations', full_name='google.ads.googleads.v1.services.AddMutateJobOperationsResponse.total_operations', index=0, - number=1, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='next_sequence_token', full_name='google.ads.googleads.v1.services.AddMutateJobOperationsResponse.next_sequence_token', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=664, - serialized_end=751, -) - - -_LISTMUTATEJOBRESULTSREQUEST = _descriptor.Descriptor( - name='ListMutateJobResultsRequest', - full_name='google.ads.googleads.v1.services.ListMutateJobResultsRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.services.ListMutateJobResultsRequest.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='page_token', full_name='google.ads.googleads.v1.services.ListMutateJobResultsRequest.page_token', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='page_size', full_name='google.ads.googleads.v1.services.ListMutateJobResultsRequest.page_size', index=2, - number=3, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=753, - serialized_end=844, -) - - -_LISTMUTATEJOBRESULTSRESPONSE = _descriptor.Descriptor( - name='ListMutateJobResultsResponse', - full_name='google.ads.googleads.v1.services.ListMutateJobResultsResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='results', full_name='google.ads.googleads.v1.services.ListMutateJobResultsResponse.results', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='next_page_token', full_name='google.ads.googleads.v1.services.ListMutateJobResultsResponse.next_page_token', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=846, - serialized_end=969, -) - - -_MUTATEJOBRESULT = _descriptor.Descriptor( - name='MutateJobResult', - full_name='google.ads.googleads.v1.services.MutateJobResult', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='operation_index', full_name='google.ads.googleads.v1.services.MutateJobResult.operation_index', index=0, - number=1, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='mutate_operation_response', full_name='google.ads.googleads.v1.services.MutateJobResult.mutate_operation_response', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='status', full_name='google.ads.googleads.v1.services.MutateJobResult.status', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=972, - serialized_end=1144, -) - -_ADDMUTATEJOBOPERATIONSREQUEST.fields_by_name['mutate_operations'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_google__ads__service__pb2._MUTATEOPERATION -_LISTMUTATEJOBRESULTSRESPONSE.fields_by_name['results'].message_type = _MUTATEJOBRESULT -_MUTATEJOBRESULT.fields_by_name['mutate_operation_response'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_google__ads__service__pb2._MUTATEOPERATIONRESPONSE -_MUTATEJOBRESULT.fields_by_name['status'].message_type = google_dot_rpc_dot_status__pb2._STATUS -DESCRIPTOR.message_types_by_name['CreateMutateJobRequest'] = _CREATEMUTATEJOBREQUEST -DESCRIPTOR.message_types_by_name['CreateMutateJobResponse'] = _CREATEMUTATEJOBRESPONSE -DESCRIPTOR.message_types_by_name['GetMutateJobRequest'] = _GETMUTATEJOBREQUEST -DESCRIPTOR.message_types_by_name['RunMutateJobRequest'] = _RUNMUTATEJOBREQUEST -DESCRIPTOR.message_types_by_name['AddMutateJobOperationsRequest'] = _ADDMUTATEJOBOPERATIONSREQUEST -DESCRIPTOR.message_types_by_name['AddMutateJobOperationsResponse'] = _ADDMUTATEJOBOPERATIONSRESPONSE -DESCRIPTOR.message_types_by_name['ListMutateJobResultsRequest'] = _LISTMUTATEJOBRESULTSREQUEST -DESCRIPTOR.message_types_by_name['ListMutateJobResultsResponse'] = _LISTMUTATEJOBRESULTSRESPONSE -DESCRIPTOR.message_types_by_name['MutateJobResult'] = _MUTATEJOBRESULT -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -CreateMutateJobRequest = _reflection.GeneratedProtocolMessageType('CreateMutateJobRequest', (_message.Message,), dict( - DESCRIPTOR = _CREATEMUTATEJOBREQUEST, - __module__ = 'google.ads.googleads_v1.proto.services.mutate_job_service_pb2' - , - __doc__ = """Request message for [MutateJobService.CreateMutateJobRequest][] - - - Attributes: - customer_id: - The ID of the customer for which to create a mutate job. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.CreateMutateJobRequest) - )) -_sym_db.RegisterMessage(CreateMutateJobRequest) - -CreateMutateJobResponse = _reflection.GeneratedProtocolMessageType('CreateMutateJobResponse', (_message.Message,), dict( - DESCRIPTOR = _CREATEMUTATEJOBRESPONSE, - __module__ = 'google.ads.googleads_v1.proto.services.mutate_job_service_pb2' - , - __doc__ = """Response message for [MutateJobService.CreateMutateJobResponse][] - - - Attributes: - resource_name: - The resource name of the MutateJob. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.CreateMutateJobResponse) - )) -_sym_db.RegisterMessage(CreateMutateJobResponse) - -GetMutateJobRequest = _reflection.GeneratedProtocolMessageType('GetMutateJobRequest', (_message.Message,), dict( - DESCRIPTOR = _GETMUTATEJOBREQUEST, - __module__ = 'google.ads.googleads_v1.proto.services.mutate_job_service_pb2' - , - __doc__ = """Request message for - [MutateJobService.GetMutateJob][google.ads.googleads.v1.services.MutateJobService.GetMutateJob] - - - Attributes: - resource_name: - The resource name of the MutateJob to get. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.GetMutateJobRequest) - )) -_sym_db.RegisterMessage(GetMutateJobRequest) - -RunMutateJobRequest = _reflection.GeneratedProtocolMessageType('RunMutateJobRequest', (_message.Message,), dict( - DESCRIPTOR = _RUNMUTATEJOBREQUEST, - __module__ = 'google.ads.googleads_v1.proto.services.mutate_job_service_pb2' - , - __doc__ = """Request message for - [MutateJobService.RunMutateJob][google.ads.googleads.v1.services.MutateJobService.RunMutateJob] - - - Attributes: - resource_name: - The resource name of the MutateJob to run. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.RunMutateJobRequest) - )) -_sym_db.RegisterMessage(RunMutateJobRequest) - -AddMutateJobOperationsRequest = _reflection.GeneratedProtocolMessageType('AddMutateJobOperationsRequest', (_message.Message,), dict( - DESCRIPTOR = _ADDMUTATEJOBOPERATIONSREQUEST, - __module__ = 'google.ads.googleads_v1.proto.services.mutate_job_service_pb2' - , - __doc__ = """Request message for - [MutateJobService.AddMutateJobOperations][google.ads.googleads.v1.services.MutateJobService.AddMutateJobOperations] - - - Attributes: - resource_name: - The resource name of the MutateJob. - sequence_token: - A token used to enforce sequencing. The first - AddMutateJobOperations request for a MutateJob should not set - sequence\_token. Subsequent requests must set sequence\_token - to the value of next\_sequence\_token received in the previous - AddMutateJobOperations response. - mutate_operations: - The list of mutates being added. Operations can use negative - integers as temp ids to signify dependencies between entities - created in this MutateJob. For example, a customer with id = - 1234 can create a campaign and an ad group in that same - campaign by creating a campaign in the first operation with - the resource name explicitly set to - "customers/1234/campaigns/-1", and creating an ad group in the - second operation with the campaign field also set to - "customers/1234/campaigns/-1". - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.AddMutateJobOperationsRequest) - )) -_sym_db.RegisterMessage(AddMutateJobOperationsRequest) - -AddMutateJobOperationsResponse = _reflection.GeneratedProtocolMessageType('AddMutateJobOperationsResponse', (_message.Message,), dict( - DESCRIPTOR = _ADDMUTATEJOBOPERATIONSRESPONSE, - __module__ = 'google.ads.googleads_v1.proto.services.mutate_job_service_pb2' - , - __doc__ = """Response message for - [MutateJobService.AddMutateJobOperations][google.ads.googleads.v1.services.MutateJobService.AddMutateJobOperations] - - - Attributes: - total_operations: - The total number of operations added so far for this job. - next_sequence_token: - The sequence token to be used when calling - AddMutateJobOperations again if more operations need to be - added. The next AddMutateJobOperations request must set the - sequence\_token field to the value of this field. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.AddMutateJobOperationsResponse) - )) -_sym_db.RegisterMessage(AddMutateJobOperationsResponse) - -ListMutateJobResultsRequest = _reflection.GeneratedProtocolMessageType('ListMutateJobResultsRequest', (_message.Message,), dict( - DESCRIPTOR = _LISTMUTATEJOBRESULTSREQUEST, - __module__ = 'google.ads.googleads_v1.proto.services.mutate_job_service_pb2' - , - __doc__ = """Request message for - [MutateJobService.ListMutateJobResults][google.ads.googleads.v1.services.MutateJobService.ListMutateJobResults]. - - - Attributes: - resource_name: - The resource name of the MutateJob whose results are being - listed. - page_token: - Token of the page to retrieve. If not specified, the first - page of results will be returned. Use the value obtained from - ``next_page_token`` in the previous response in order to - request the next page of results. - page_size: - Number of elements to retrieve in a single page. When a page - request is too large, the server may decide to further limit - the number of returned resources. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.ListMutateJobResultsRequest) - )) -_sym_db.RegisterMessage(ListMutateJobResultsRequest) - -ListMutateJobResultsResponse = _reflection.GeneratedProtocolMessageType('ListMutateJobResultsResponse', (_message.Message,), dict( - DESCRIPTOR = _LISTMUTATEJOBRESULTSRESPONSE, - __module__ = 'google.ads.googleads_v1.proto.services.mutate_job_service_pb2' - , - __doc__ = """Response message for - [MutateJobService.ListMutateJobResults][google.ads.googleads.v1.services.MutateJobService.ListMutateJobResults]. - - - Attributes: - results: - The list of rows that matched the query. - next_page_token: - Pagination token used to retrieve the next page of results. - Pass the content of this string as the ``page_token`` - attribute of the next request. ``next_page_token`` is not - returned for the last page. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.ListMutateJobResultsResponse) - )) -_sym_db.RegisterMessage(ListMutateJobResultsResponse) - -MutateJobResult = _reflection.GeneratedProtocolMessageType('MutateJobResult', (_message.Message,), dict( - DESCRIPTOR = _MUTATEJOBRESULT, - __module__ = 'google.ads.googleads_v1.proto.services.mutate_job_service_pb2' - , - __doc__ = """MutateJob result. - - - Attributes: - operation_index: - Index of the mutate operation. - mutate_operation_response: - Response for the mutate. May be empty if errors occurred. - status: - Details of the errors when processing the operation. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.MutateJobResult) - )) -_sym_db.RegisterMessage(MutateJobResult) - - -DESCRIPTOR._options = None - -_MUTATEJOBSERVICE = _descriptor.ServiceDescriptor( - name='MutateJobService', - full_name='google.ads.googleads.v1.services.MutateJobService', - file=DESCRIPTOR, - index=0, - serialized_options=None, - serialized_start=1147, - serialized_end=2145, - methods=[ - _descriptor.MethodDescriptor( - name='CreateMutateJob', - full_name='google.ads.googleads.v1.services.MutateJobService.CreateMutateJob', - index=0, - containing_service=None, - input_type=_CREATEMUTATEJOBREQUEST, - output_type=_CREATEMUTATEJOBRESPONSE, - serialized_options=_b('\202\323\344\223\0024\"//v1/customers/{customer_id=*}/mutateJobs:create:\001*'), - ), - _descriptor.MethodDescriptor( - name='GetMutateJob', - full_name='google.ads.googleads.v1.services.MutateJobService.GetMutateJob', - index=1, - containing_service=None, - input_type=_GETMUTATEJOBREQUEST, - output_type=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_mutate__job__pb2._MUTATEJOB, - serialized_options=_b('\202\323\344\223\002.\022,/v1/{resource_name=customers/*/mutateJobs/*}'), - ), - _descriptor.MethodDescriptor( - name='ListMutateJobResults', - full_name='google.ads.googleads.v1.services.MutateJobService.ListMutateJobResults', - index=2, - containing_service=None, - input_type=_LISTMUTATEJOBRESULTSREQUEST, - output_type=_LISTMUTATEJOBRESULTSRESPONSE, - serialized_options=_b('\202\323\344\223\002:\0228/v1/{resource_name=customers/*/mutateJobs/*}:listResults'), - ), - _descriptor.MethodDescriptor( - name='RunMutateJob', - full_name='google.ads.googleads.v1.services.MutateJobService.RunMutateJob', - index=3, - containing_service=None, - input_type=_RUNMUTATEJOBREQUEST, - output_type=google_dot_longrunning_dot_operations__pb2._OPERATION, - serialized_options=_b('\202\323\344\223\0025\"0/v1/{resource_name=customers/*/mutateJobs/*}:run:\001*'), - ), - _descriptor.MethodDescriptor( - name='AddMutateJobOperations', - full_name='google.ads.googleads.v1.services.MutateJobService.AddMutateJobOperations', - index=4, - containing_service=None, - input_type=_ADDMUTATEJOBOPERATIONSREQUEST, - output_type=_ADDMUTATEJOBOPERATIONSRESPONSE, - serialized_options=_b('\202\323\344\223\002?\":/v1/{resource_name=customers/*/mutateJobs/*}:addOperations:\001*'), - ), -]) -_sym_db.RegisterServiceDescriptor(_MUTATEJOBSERVICE) - -DESCRIPTOR.services_by_name['MutateJobService'] = _MUTATEJOBSERVICE - -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/services/mutate_job_service_pb2_grpc.py b/google/ads/google_ads/v1/proto/services/mutate_job_service_pb2_grpc.py deleted file mode 100644 index 1cd10551e..000000000 --- a/google/ads/google_ads/v1/proto/services/mutate_job_service_pb2_grpc.py +++ /dev/null @@ -1,125 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -import grpc - -from google.ads.google_ads.v1.proto.resources import mutate_job_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_mutate__job__pb2 -from google.ads.google_ads.v1.proto.services import mutate_job_service_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_mutate__job__service__pb2 -from google.longrunning import operations_pb2 as google_dot_longrunning_dot_operations__pb2 - - -class MutateJobServiceStub(object): - """Proto file describing the MutateJobService. - - Service to manage mutate jobs. - """ - - def __init__(self, channel): - """Constructor. - - Args: - channel: A grpc.Channel. - """ - self.CreateMutateJob = channel.unary_unary( - '/google.ads.googleads.v1.services.MutateJobService/CreateMutateJob', - request_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_mutate__job__service__pb2.CreateMutateJobRequest.SerializeToString, - response_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_mutate__job__service__pb2.CreateMutateJobResponse.FromString, - ) - self.GetMutateJob = channel.unary_unary( - '/google.ads.googleads.v1.services.MutateJobService/GetMutateJob', - request_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_mutate__job__service__pb2.GetMutateJobRequest.SerializeToString, - response_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_mutate__job__pb2.MutateJob.FromString, - ) - self.ListMutateJobResults = channel.unary_unary( - '/google.ads.googleads.v1.services.MutateJobService/ListMutateJobResults', - request_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_mutate__job__service__pb2.ListMutateJobResultsRequest.SerializeToString, - response_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_mutate__job__service__pb2.ListMutateJobResultsResponse.FromString, - ) - self.RunMutateJob = channel.unary_unary( - '/google.ads.googleads.v1.services.MutateJobService/RunMutateJob', - request_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_mutate__job__service__pb2.RunMutateJobRequest.SerializeToString, - response_deserializer=google_dot_longrunning_dot_operations__pb2.Operation.FromString, - ) - self.AddMutateJobOperations = channel.unary_unary( - '/google.ads.googleads.v1.services.MutateJobService/AddMutateJobOperations', - request_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_mutate__job__service__pb2.AddMutateJobOperationsRequest.SerializeToString, - response_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_mutate__job__service__pb2.AddMutateJobOperationsResponse.FromString, - ) - - -class MutateJobServiceServicer(object): - """Proto file describing the MutateJobService. - - Service to manage mutate jobs. - """ - - def CreateMutateJob(self, request, context): - """Creates a mutate job. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetMutateJob(self, request, context): - """Returns the mutate job. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ListMutateJobResults(self, request, context): - """Returns the results of the mutate job. The job must be done. - Supports standard list paging. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def RunMutateJob(self, request, context): - """Runs the mutate job. - - The Operation.metadata field type is MutateJobMetadata. When finished, the - long running operation will not contain errors or a response. Instead, use - ListMutateJobResults to get the results of the job. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def AddMutateJobOperations(self, request, context): - """Add operations to the mutate job. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - -def add_MutateJobServiceServicer_to_server(servicer, server): - rpc_method_handlers = { - 'CreateMutateJob': grpc.unary_unary_rpc_method_handler( - servicer.CreateMutateJob, - request_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_mutate__job__service__pb2.CreateMutateJobRequest.FromString, - response_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_mutate__job__service__pb2.CreateMutateJobResponse.SerializeToString, - ), - 'GetMutateJob': grpc.unary_unary_rpc_method_handler( - servicer.GetMutateJob, - request_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_mutate__job__service__pb2.GetMutateJobRequest.FromString, - response_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_mutate__job__pb2.MutateJob.SerializeToString, - ), - 'ListMutateJobResults': grpc.unary_unary_rpc_method_handler( - servicer.ListMutateJobResults, - request_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_mutate__job__service__pb2.ListMutateJobResultsRequest.FromString, - response_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_mutate__job__service__pb2.ListMutateJobResultsResponse.SerializeToString, - ), - 'RunMutateJob': grpc.unary_unary_rpc_method_handler( - servicer.RunMutateJob, - request_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_mutate__job__service__pb2.RunMutateJobRequest.FromString, - response_serializer=google_dot_longrunning_dot_operations__pb2.Operation.SerializeToString, - ), - 'AddMutateJobOperations': grpc.unary_unary_rpc_method_handler( - servicer.AddMutateJobOperations, - request_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_mutate__job__service__pb2.AddMutateJobOperationsRequest.FromString, - response_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_mutate__job__service__pb2.AddMutateJobOperationsResponse.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'google.ads.googleads.v1.services.MutateJobService', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) diff --git a/google/ads/google_ads/v1/proto/services/operating_system_version_constant_service_pb2.py b/google/ads/google_ads/v1/proto/services/operating_system_version_constant_service_pb2.py deleted file mode 100644 index 1ee3878ce..000000000 --- a/google/ads/google_ads/v1/proto/services/operating_system_version_constant_service_pb2.py +++ /dev/null @@ -1,107 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/services/operating_system_version_constant_service.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.ads.google_ads.v1.proto.resources import operating_system_version_constant_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_operating__system__version__constant__pb2 -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/services/operating_system_version_constant_service.proto', - package='google.ads.googleads.v1.services', - syntax='proto3', - serialized_options=_b('\n$com.google.ads.googleads.v1.servicesB*OperatingSystemVersionConstantServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v1/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V1.Services\312\002 Google\\Ads\\GoogleAds\\V1\\Services\352\002$Google::Ads::GoogleAds::V1::Services'), - serialized_pb=_b('\nVgoogle/ads/googleads_v1/proto/services/operating_system_version_constant_service.proto\x12 google.ads.googleads.v1.services\x1aOgoogle/ads/googleads_v1/proto/resources/operating_system_version_constant.proto\x1a\x1cgoogle/api/annotations.proto\"A\n(GetOperatingSystemVersionConstantRequest\x12\x15\n\rresource_name\x18\x01 \x01(\t2\x9b\x02\n%OperatingSystemVersionConstantService\x12\xf1\x01\n!GetOperatingSystemVersionConstant\x12J.google.ads.googleads.v1.services.GetOperatingSystemVersionConstantRequest\x1a\x41.google.ads.googleads.v1.resources.OperatingSystemVersionConstant\"=\x82\xd3\xe4\x93\x02\x37\x12\x35/v1/{resource_name=operatingSystemVersionConstants/*}B\x91\x02\n$com.google.ads.googleads.v1.servicesB*OperatingSystemVersionConstantServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v1/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V1.Services\xca\x02 Google\\Ads\\GoogleAds\\V1\\Services\xea\x02$Google::Ads::GoogleAds::V1::Servicesb\x06proto3') - , - dependencies=[google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_operating__system__version__constant__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - - -_GETOPERATINGSYSTEMVERSIONCONSTANTREQUEST = _descriptor.Descriptor( - name='GetOperatingSystemVersionConstantRequest', - full_name='google.ads.googleads.v1.services.GetOperatingSystemVersionConstantRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.services.GetOperatingSystemVersionConstantRequest.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=235, - serialized_end=300, -) - -DESCRIPTOR.message_types_by_name['GetOperatingSystemVersionConstantRequest'] = _GETOPERATINGSYSTEMVERSIONCONSTANTREQUEST -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -GetOperatingSystemVersionConstantRequest = _reflection.GeneratedProtocolMessageType('GetOperatingSystemVersionConstantRequest', (_message.Message,), dict( - DESCRIPTOR = _GETOPERATINGSYSTEMVERSIONCONSTANTREQUEST, - __module__ = 'google.ads.googleads_v1.proto.services.operating_system_version_constant_service_pb2' - , - __doc__ = """Request message for - [OperatingSystemVersionConstantService.GetOperatingSystemVersionConstant][google.ads.googleads.v1.services.OperatingSystemVersionConstantService.GetOperatingSystemVersionConstant]. - - - Attributes: - resource_name: - Resource name of the OS version to fetch. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.GetOperatingSystemVersionConstantRequest) - )) -_sym_db.RegisterMessage(GetOperatingSystemVersionConstantRequest) - - -DESCRIPTOR._options = None - -_OPERATINGSYSTEMVERSIONCONSTANTSERVICE = _descriptor.ServiceDescriptor( - name='OperatingSystemVersionConstantService', - full_name='google.ads.googleads.v1.services.OperatingSystemVersionConstantService', - file=DESCRIPTOR, - index=0, - serialized_options=None, - serialized_start=303, - serialized_end=586, - methods=[ - _descriptor.MethodDescriptor( - name='GetOperatingSystemVersionConstant', - full_name='google.ads.googleads.v1.services.OperatingSystemVersionConstantService.GetOperatingSystemVersionConstant', - index=0, - containing_service=None, - input_type=_GETOPERATINGSYSTEMVERSIONCONSTANTREQUEST, - output_type=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_operating__system__version__constant__pb2._OPERATINGSYSTEMVERSIONCONSTANT, - serialized_options=_b('\202\323\344\223\0027\0225/v1/{resource_name=operatingSystemVersionConstants/*}'), - ), -]) -_sym_db.RegisterServiceDescriptor(_OPERATINGSYSTEMVERSIONCONSTANTSERVICE) - -DESCRIPTOR.services_by_name['OperatingSystemVersionConstantService'] = _OPERATINGSYSTEMVERSIONCONSTANTSERVICE - -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/services/paid_organic_search_term_view_service_pb2.py b/google/ads/google_ads/v1/proto/services/paid_organic_search_term_view_service_pb2.py deleted file mode 100644 index 2254ab76f..000000000 --- a/google/ads/google_ads/v1/proto/services/paid_organic_search_term_view_service_pb2.py +++ /dev/null @@ -1,108 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/services/paid_organic_search_term_view_service.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.ads.google_ads.v1.proto.resources import paid_organic_search_term_view_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_paid__organic__search__term__view__pb2 -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/services/paid_organic_search_term_view_service.proto', - package='google.ads.googleads.v1.services', - syntax='proto3', - serialized_options=_b('\n$com.google.ads.googleads.v1.servicesB%PaidOrganicSearchTermViewServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v1/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V1.Services\312\002 Google\\Ads\\GoogleAds\\V1\\Services\352\002$Google::Ads::GoogleAds::V1::Services'), - serialized_pb=_b('\nRgoogle/ads/googleads_v1/proto/services/paid_organic_search_term_view_service.proto\x12 google.ads.googleads.v1.services\x1aKgoogle/ads/googleads_v1/proto/resources/paid_organic_search_term_view.proto\x1a\x1cgoogle/api/annotations.proto\"<\n#GetPaidOrganicSearchTermViewRequest\x12\x15\n\rresource_name\x18\x01 \x01(\t2\x8e\x02\n PaidOrganicSearchTermViewService\x12\xe9\x01\n\x1cGetPaidOrganicSearchTermView\x12\x45.google.ads.googleads.v1.services.GetPaidOrganicSearchTermViewRequest\x1a<.google.ads.googleads.v1.resources.PaidOrganicSearchTermView\"D\x82\xd3\xe4\x93\x02>\x12\022.google.ads.googleads.v1.services.GetParentalStatusViewRequest\x1a\x35.google.ads.googleads.v1.resources.ParentalStatusView\"=\x82\xd3\xe4\x93\x02\x37\x12\x35/v1/{resource_name=customers/*/parentalStatusViews/*}B\x85\x02\n$com.google.ads.googleads.v1.servicesB\x1eParentalStatusViewServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v1/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V1.Services\xca\x02 Google\\Ads\\GoogleAds\\V1\\Services\xea\x02$Google::Ads::GoogleAds::V1::Servicesb\x06proto3') - , - dependencies=[google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_parental__status__view__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - - -_GETPARENTALSTATUSVIEWREQUEST = _descriptor.Descriptor( - name='GetParentalStatusViewRequest', - full_name='google.ads.googleads.v1.services.GetParentalStatusViewRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.services.GetParentalStatusViewRequest.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=209, - serialized_end=262, -) - -DESCRIPTOR.message_types_by_name['GetParentalStatusViewRequest'] = _GETPARENTALSTATUSVIEWREQUEST -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -GetParentalStatusViewRequest = _reflection.GeneratedProtocolMessageType('GetParentalStatusViewRequest', (_message.Message,), dict( - DESCRIPTOR = _GETPARENTALSTATUSVIEWREQUEST, - __module__ = 'google.ads.googleads_v1.proto.services.parental_status_view_service_pb2' - , - __doc__ = """Request message for - [ParentalStatusViewService.GetParentalStatusView][google.ads.googleads.v1.services.ParentalStatusViewService.GetParentalStatusView]. - - - Attributes: - resource_name: - The resource name of the parental status view to fetch. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.GetParentalStatusViewRequest) - )) -_sym_db.RegisterMessage(GetParentalStatusViewRequest) - - -DESCRIPTOR._options = None - -_PARENTALSTATUSVIEWSERVICE = _descriptor.ServiceDescriptor( - name='ParentalStatusViewService', - full_name='google.ads.googleads.v1.services.ParentalStatusViewService', - file=DESCRIPTOR, - index=0, - serialized_options=None, - serialized_start=265, - serialized_end=500, - methods=[ - _descriptor.MethodDescriptor( - name='GetParentalStatusView', - full_name='google.ads.googleads.v1.services.ParentalStatusViewService.GetParentalStatusView', - index=0, - containing_service=None, - input_type=_GETPARENTALSTATUSVIEWREQUEST, - output_type=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_parental__status__view__pb2._PARENTALSTATUSVIEW, - serialized_options=_b('\202\323\344\223\0027\0225/v1/{resource_name=customers/*/parentalStatusViews/*}'), - ), -]) -_sym_db.RegisterServiceDescriptor(_PARENTALSTATUSVIEWSERVICE) - -DESCRIPTOR.services_by_name['ParentalStatusViewService'] = _PARENTALSTATUSVIEWSERVICE - -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/services/parental_status_view_service_pb2_grpc.py b/google/ads/google_ads/v1/proto/services/parental_status_view_service_pb2_grpc.py deleted file mode 100644 index 19ae70064..000000000 --- a/google/ads/google_ads/v1/proto/services/parental_status_view_service_pb2_grpc.py +++ /dev/null @@ -1,51 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -import grpc - -from google.ads.google_ads.v1.proto.resources import parental_status_view_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_parental__status__view__pb2 -from google.ads.google_ads.v1.proto.services import parental_status_view_service_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_parental__status__view__service__pb2 - - -class ParentalStatusViewServiceStub(object): - """Proto file describing the Parental Status View service. - - Service to manage parental status views. - """ - - def __init__(self, channel): - """Constructor. - - Args: - channel: A grpc.Channel. - """ - self.GetParentalStatusView = channel.unary_unary( - '/google.ads.googleads.v1.services.ParentalStatusViewService/GetParentalStatusView', - request_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_parental__status__view__service__pb2.GetParentalStatusViewRequest.SerializeToString, - response_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_parental__status__view__pb2.ParentalStatusView.FromString, - ) - - -class ParentalStatusViewServiceServicer(object): - """Proto file describing the Parental Status View service. - - Service to manage parental status views. - """ - - def GetParentalStatusView(self, request, context): - """Returns the requested parental status view in full detail. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - -def add_ParentalStatusViewServiceServicer_to_server(servicer, server): - rpc_method_handlers = { - 'GetParentalStatusView': grpc.unary_unary_rpc_method_handler( - servicer.GetParentalStatusView, - request_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_parental__status__view__service__pb2.GetParentalStatusViewRequest.FromString, - response_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_parental__status__view__pb2.ParentalStatusView.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'google.ads.googleads.v1.services.ParentalStatusViewService', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) diff --git a/google/ads/google_ads/v1/proto/services/payments_account_service_pb2.py b/google/ads/google_ads/v1/proto/services/payments_account_service_pb2.py deleted file mode 100644 index 95f170570..000000000 --- a/google/ads/google_ads/v1/proto/services/payments_account_service_pb2.py +++ /dev/null @@ -1,156 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/services/payments_account_service.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.ads.google_ads.v1.proto.resources import payments_account_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_payments__account__pb2 -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/services/payments_account_service.proto', - package='google.ads.googleads.v1.services', - syntax='proto3', - serialized_options=_b('\n$com.google.ads.googleads.v1.servicesB\033PaymentsAccountServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v1/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V1.Services\312\002 Google\\Ads\\GoogleAds\\V1\\Services\352\002$Google::Ads::GoogleAds::V1::Services'), - serialized_pb=_b('\nEgoogle/ads/googleads_v1/proto/services/payments_account_service.proto\x12 google.ads.googleads.v1.services\x1a>google/ads/googleads_v1/proto/resources/payments_account.proto\x1a\x1cgoogle/api/annotations.proto\"2\n\x1bListPaymentsAccountsRequest\x12\x13\n\x0b\x63ustomer_id\x18\x01 \x01(\t\"m\n\x1cListPaymentsAccountsResponse\x12M\n\x11payments_accounts\x18\x01 \x03(\x0b\x32\x32.google.ads.googleads.v1.resources.PaymentsAccount2\xe8\x01\n\x16PaymentsAccountService\x12\xcd\x01\n\x14ListPaymentsAccounts\x12=.google.ads.googleads.v1.services.ListPaymentsAccountsRequest\x1a>.google.ads.googleads.v1.services.ListPaymentsAccountsResponse\"6\x82\xd3\xe4\x93\x02\x30\x12./v1/customers/{customer_id=*}/paymentsAccountsB\x82\x02\n$com.google.ads.googleads.v1.servicesB\x1bPaymentsAccountServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v1/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V1.Services\xca\x02 Google\\Ads\\GoogleAds\\V1\\Services\xea\x02$Google::Ads::GoogleAds::V1::Servicesb\x06proto3') - , - dependencies=[google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_payments__account__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - - -_LISTPAYMENTSACCOUNTSREQUEST = _descriptor.Descriptor( - name='ListPaymentsAccountsRequest', - full_name='google.ads.googleads.v1.services.ListPaymentsAccountsRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='customer_id', full_name='google.ads.googleads.v1.services.ListPaymentsAccountsRequest.customer_id', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=201, - serialized_end=251, -) - - -_LISTPAYMENTSACCOUNTSRESPONSE = _descriptor.Descriptor( - name='ListPaymentsAccountsResponse', - full_name='google.ads.googleads.v1.services.ListPaymentsAccountsResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='payments_accounts', full_name='google.ads.googleads.v1.services.ListPaymentsAccountsResponse.payments_accounts', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=253, - serialized_end=362, -) - -_LISTPAYMENTSACCOUNTSRESPONSE.fields_by_name['payments_accounts'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_payments__account__pb2._PAYMENTSACCOUNT -DESCRIPTOR.message_types_by_name['ListPaymentsAccountsRequest'] = _LISTPAYMENTSACCOUNTSREQUEST -DESCRIPTOR.message_types_by_name['ListPaymentsAccountsResponse'] = _LISTPAYMENTSACCOUNTSRESPONSE -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -ListPaymentsAccountsRequest = _reflection.GeneratedProtocolMessageType('ListPaymentsAccountsRequest', (_message.Message,), dict( - DESCRIPTOR = _LISTPAYMENTSACCOUNTSREQUEST, - __module__ = 'google.ads.googleads_v1.proto.services.payments_account_service_pb2' - , - __doc__ = """Request message for fetching all accessible Payments accounts. - - - Attributes: - customer_id: - The ID of the customer to apply the PaymentsAccount list - operation to. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.ListPaymentsAccountsRequest) - )) -_sym_db.RegisterMessage(ListPaymentsAccountsRequest) - -ListPaymentsAccountsResponse = _reflection.GeneratedProtocolMessageType('ListPaymentsAccountsResponse', (_message.Message,), dict( - DESCRIPTOR = _LISTPAYMENTSACCOUNTSRESPONSE, - __module__ = 'google.ads.googleads_v1.proto.services.payments_account_service_pb2' - , - __doc__ = """Response message for - [PaymentsAccountService.ListPaymentsAccounts][google.ads.googleads.v1.services.PaymentsAccountService.ListPaymentsAccounts]. - - - Attributes: - payments_accounts: - The list of accessible Payments accounts. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.ListPaymentsAccountsResponse) - )) -_sym_db.RegisterMessage(ListPaymentsAccountsResponse) - - -DESCRIPTOR._options = None - -_PAYMENTSACCOUNTSERVICE = _descriptor.ServiceDescriptor( - name='PaymentsAccountService', - full_name='google.ads.googleads.v1.services.PaymentsAccountService', - file=DESCRIPTOR, - index=0, - serialized_options=None, - serialized_start=365, - serialized_end=597, - methods=[ - _descriptor.MethodDescriptor( - name='ListPaymentsAccounts', - full_name='google.ads.googleads.v1.services.PaymentsAccountService.ListPaymentsAccounts', - index=0, - containing_service=None, - input_type=_LISTPAYMENTSACCOUNTSREQUEST, - output_type=_LISTPAYMENTSACCOUNTSRESPONSE, - serialized_options=_b('\202\323\344\223\0020\022./v1/customers/{customer_id=*}/paymentsAccounts'), - ), -]) -_sym_db.RegisterServiceDescriptor(_PAYMENTSACCOUNTSERVICE) - -DESCRIPTOR.services_by_name['PaymentsAccountService'] = _PAYMENTSACCOUNTSERVICE - -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/services/payments_account_service_pb2_grpc.py b/google/ads/google_ads/v1/proto/services/payments_account_service_pb2_grpc.py deleted file mode 100644 index 0d2307cfa..000000000 --- a/google/ads/google_ads/v1/proto/services/payments_account_service_pb2_grpc.py +++ /dev/null @@ -1,54 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -import grpc - -from google.ads.google_ads.v1.proto.services import payments_account_service_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_payments__account__service__pb2 - - -class PaymentsAccountServiceStub(object): - """Proto file describing the Payments account service. - - Service to provide Payments accounts that can be used to set up consolidated - billing. - """ - - def __init__(self, channel): - """Constructor. - - Args: - channel: A grpc.Channel. - """ - self.ListPaymentsAccounts = channel.unary_unary( - '/google.ads.googleads.v1.services.PaymentsAccountService/ListPaymentsAccounts', - request_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_payments__account__service__pb2.ListPaymentsAccountsRequest.SerializeToString, - response_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_payments__account__service__pb2.ListPaymentsAccountsResponse.FromString, - ) - - -class PaymentsAccountServiceServicer(object): - """Proto file describing the Payments account service. - - Service to provide Payments accounts that can be used to set up consolidated - billing. - """ - - def ListPaymentsAccounts(self, request, context): - """Returns all Payments accounts associated with all managers - between the login customer ID and specified serving customer in the - hierarchy, inclusive. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - -def add_PaymentsAccountServiceServicer_to_server(servicer, server): - rpc_method_handlers = { - 'ListPaymentsAccounts': grpc.unary_unary_rpc_method_handler( - servicer.ListPaymentsAccounts, - request_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_payments__account__service__pb2.ListPaymentsAccountsRequest.FromString, - response_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_payments__account__service__pb2.ListPaymentsAccountsResponse.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'google.ads.googleads.v1.services.PaymentsAccountService', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) diff --git a/google/ads/google_ads/v1/proto/services/product_bidding_category_constant_service_pb2.py b/google/ads/google_ads/v1/proto/services/product_bidding_category_constant_service_pb2.py deleted file mode 100644 index ddd6733a9..000000000 --- a/google/ads/google_ads/v1/proto/services/product_bidding_category_constant_service_pb2.py +++ /dev/null @@ -1,107 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/services/product_bidding_category_constant_service.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.ads.google_ads.v1.proto.resources import product_bidding_category_constant_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_product__bidding__category__constant__pb2 -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/services/product_bidding_category_constant_service.proto', - package='google.ads.googleads.v1.services', - syntax='proto3', - serialized_options=_b('\n$com.google.ads.googleads.v1.servicesB*ProductBiddingCategoryConstantServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v1/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V1.Services\312\002 Google\\Ads\\GoogleAds\\V1\\Services\352\002$Google::Ads::GoogleAds::V1::Services'), - serialized_pb=_b('\nVgoogle/ads/googleads_v1/proto/services/product_bidding_category_constant_service.proto\x12 google.ads.googleads.v1.services\x1aOgoogle/ads/googleads_v1/proto/resources/product_bidding_category_constant.proto\x1a\x1cgoogle/api/annotations.proto\"A\n(GetProductBiddingCategoryConstantRequest\x12\x15\n\rresource_name\x18\x01 \x01(\t2\x9b\x02\n%ProductBiddingCategoryConstantService\x12\xf1\x01\n!GetProductBiddingCategoryConstant\x12J.google.ads.googleads.v1.services.GetProductBiddingCategoryConstantRequest\x1a\x41.google.ads.googleads.v1.resources.ProductBiddingCategoryConstant\"=\x82\xd3\xe4\x93\x02\x37\x12\x35/v1/{resource_name=productBiddingCategoryConstants/*}B\x91\x02\n$com.google.ads.googleads.v1.servicesB*ProductBiddingCategoryConstantServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v1/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V1.Services\xca\x02 Google\\Ads\\GoogleAds\\V1\\Services\xea\x02$Google::Ads::GoogleAds::V1::Servicesb\x06proto3') - , - dependencies=[google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_product__bidding__category__constant__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - - -_GETPRODUCTBIDDINGCATEGORYCONSTANTREQUEST = _descriptor.Descriptor( - name='GetProductBiddingCategoryConstantRequest', - full_name='google.ads.googleads.v1.services.GetProductBiddingCategoryConstantRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.services.GetProductBiddingCategoryConstantRequest.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=235, - serialized_end=300, -) - -DESCRIPTOR.message_types_by_name['GetProductBiddingCategoryConstantRequest'] = _GETPRODUCTBIDDINGCATEGORYCONSTANTREQUEST -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -GetProductBiddingCategoryConstantRequest = _reflection.GeneratedProtocolMessageType('GetProductBiddingCategoryConstantRequest', (_message.Message,), dict( - DESCRIPTOR = _GETPRODUCTBIDDINGCATEGORYCONSTANTREQUEST, - __module__ = 'google.ads.googleads_v1.proto.services.product_bidding_category_constant_service_pb2' - , - __doc__ = """Request message for - [ProductBiddingCategoryService.GetProductBiddingCategory][]. - - - Attributes: - resource_name: - Resource name of the Product Bidding Category to fetch. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.GetProductBiddingCategoryConstantRequest) - )) -_sym_db.RegisterMessage(GetProductBiddingCategoryConstantRequest) - - -DESCRIPTOR._options = None - -_PRODUCTBIDDINGCATEGORYCONSTANTSERVICE = _descriptor.ServiceDescriptor( - name='ProductBiddingCategoryConstantService', - full_name='google.ads.googleads.v1.services.ProductBiddingCategoryConstantService', - file=DESCRIPTOR, - index=0, - serialized_options=None, - serialized_start=303, - serialized_end=586, - methods=[ - _descriptor.MethodDescriptor( - name='GetProductBiddingCategoryConstant', - full_name='google.ads.googleads.v1.services.ProductBiddingCategoryConstantService.GetProductBiddingCategoryConstant', - index=0, - containing_service=None, - input_type=_GETPRODUCTBIDDINGCATEGORYCONSTANTREQUEST, - output_type=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_product__bidding__category__constant__pb2._PRODUCTBIDDINGCATEGORYCONSTANT, - serialized_options=_b('\202\323\344\223\0027\0225/v1/{resource_name=productBiddingCategoryConstants/*}'), - ), -]) -_sym_db.RegisterServiceDescriptor(_PRODUCTBIDDINGCATEGORYCONSTANTSERVICE) - -DESCRIPTOR.services_by_name['ProductBiddingCategoryConstantService'] = _PRODUCTBIDDINGCATEGORYCONSTANTSERVICE - -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/services/product_group_view_service_pb2.py b/google/ads/google_ads/v1/proto/services/product_group_view_service_pb2.py deleted file mode 100644 index 0afd3a821..000000000 --- a/google/ads/google_ads/v1/proto/services/product_group_view_service_pb2.py +++ /dev/null @@ -1,107 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/services/product_group_view_service.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.ads.google_ads.v1.proto.resources import product_group_view_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_product__group__view__pb2 -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/services/product_group_view_service.proto', - package='google.ads.googleads.v1.services', - syntax='proto3', - serialized_options=_b('\n$com.google.ads.googleads.v1.servicesB\034ProductGroupViewServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v1/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V1.Services\312\002 Google\\Ads\\GoogleAds\\V1\\Services\352\002$Google::Ads::GoogleAds::V1::Services'), - serialized_pb=_b('\nGgoogle/ads/googleads_v1/proto/services/product_group_view_service.proto\x12 google.ads.googleads.v1.services\x1a@google/ads/googleads_v1/proto/resources/product_group_view.proto\x1a\x1cgoogle/api/annotations.proto\"3\n\x1aGetProductGroupViewRequest\x12\x15\n\rresource_name\x18\x01 \x01(\t2\xe1\x01\n\x17ProductGroupViewService\x12\xc5\x01\n\x13GetProductGroupView\x12<.google.ads.googleads.v1.services.GetProductGroupViewRequest\x1a\x33.google.ads.googleads.v1.resources.ProductGroupView\";\x82\xd3\xe4\x93\x02\x35\x12\x33/v1/{resource_name=customers/*/productGroupViews/*}B\x83\x02\n$com.google.ads.googleads.v1.servicesB\x1cProductGroupViewServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v1/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V1.Services\xca\x02 Google\\Ads\\GoogleAds\\V1\\Services\xea\x02$Google::Ads::GoogleAds::V1::Servicesb\x06proto3') - , - dependencies=[google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_product__group__view__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - - -_GETPRODUCTGROUPVIEWREQUEST = _descriptor.Descriptor( - name='GetProductGroupViewRequest', - full_name='google.ads.googleads.v1.services.GetProductGroupViewRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.services.GetProductGroupViewRequest.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=205, - serialized_end=256, -) - -DESCRIPTOR.message_types_by_name['GetProductGroupViewRequest'] = _GETPRODUCTGROUPVIEWREQUEST -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -GetProductGroupViewRequest = _reflection.GeneratedProtocolMessageType('GetProductGroupViewRequest', (_message.Message,), dict( - DESCRIPTOR = _GETPRODUCTGROUPVIEWREQUEST, - __module__ = 'google.ads.googleads_v1.proto.services.product_group_view_service_pb2' - , - __doc__ = """Request message for - [ProductGroupViewService.GetProductGroupView][google.ads.googleads.v1.services.ProductGroupViewService.GetProductGroupView]. - - - Attributes: - resource_name: - The resource name of the product group view to fetch. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.GetProductGroupViewRequest) - )) -_sym_db.RegisterMessage(GetProductGroupViewRequest) - - -DESCRIPTOR._options = None - -_PRODUCTGROUPVIEWSERVICE = _descriptor.ServiceDescriptor( - name='ProductGroupViewService', - full_name='google.ads.googleads.v1.services.ProductGroupViewService', - file=DESCRIPTOR, - index=0, - serialized_options=None, - serialized_start=259, - serialized_end=484, - methods=[ - _descriptor.MethodDescriptor( - name='GetProductGroupView', - full_name='google.ads.googleads.v1.services.ProductGroupViewService.GetProductGroupView', - index=0, - containing_service=None, - input_type=_GETPRODUCTGROUPVIEWREQUEST, - output_type=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_product__group__view__pb2._PRODUCTGROUPVIEW, - serialized_options=_b('\202\323\344\223\0025\0223/v1/{resource_name=customers/*/productGroupViews/*}'), - ), -]) -_sym_db.RegisterServiceDescriptor(_PRODUCTGROUPVIEWSERVICE) - -DESCRIPTOR.services_by_name['ProductGroupViewService'] = _PRODUCTGROUPVIEWSERVICE - -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/services/product_group_view_service_pb2_grpc.py b/google/ads/google_ads/v1/proto/services/product_group_view_service_pb2_grpc.py deleted file mode 100644 index 025e634b8..000000000 --- a/google/ads/google_ads/v1/proto/services/product_group_view_service_pb2_grpc.py +++ /dev/null @@ -1,51 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -import grpc - -from google.ads.google_ads.v1.proto.resources import product_group_view_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_product__group__view__pb2 -from google.ads.google_ads.v1.proto.services import product_group_view_service_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_product__group__view__service__pb2 - - -class ProductGroupViewServiceStub(object): - """Proto file describing the ProductGroup View service. - - Service to manage product group views. - """ - - def __init__(self, channel): - """Constructor. - - Args: - channel: A grpc.Channel. - """ - self.GetProductGroupView = channel.unary_unary( - '/google.ads.googleads.v1.services.ProductGroupViewService/GetProductGroupView', - request_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_product__group__view__service__pb2.GetProductGroupViewRequest.SerializeToString, - response_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_product__group__view__pb2.ProductGroupView.FromString, - ) - - -class ProductGroupViewServiceServicer(object): - """Proto file describing the ProductGroup View service. - - Service to manage product group views. - """ - - def GetProductGroupView(self, request, context): - """Returns the requested product group view in full detail. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - -def add_ProductGroupViewServiceServicer_to_server(servicer, server): - rpc_method_handlers = { - 'GetProductGroupView': grpc.unary_unary_rpc_method_handler( - servicer.GetProductGroupView, - request_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_product__group__view__service__pb2.GetProductGroupViewRequest.FromString, - response_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_product__group__view__pb2.ProductGroupView.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'google.ads.googleads.v1.services.ProductGroupViewService', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) diff --git a/google/ads/google_ads/v1/proto/services/recommendation_service_pb2.py b/google/ads/google_ads/v1/proto/services/recommendation_service_pb2.py deleted file mode 100644 index 03aa9a058..000000000 --- a/google/ads/google_ads/v1/proto/services/recommendation_service_pb2.py +++ /dev/null @@ -1,1127 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/services/recommendation_service.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.ads.google_ads.v1.proto.common import extensions_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_extensions__pb2 -from google.ads.google_ads.v1.proto.enums import keyword_match_type_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_keyword__match__type__pb2 -from google.ads.google_ads.v1.proto.resources import ad_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_ad__pb2 -from google.ads.google_ads.v1.proto.resources import recommendation_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_recommendation__pb2 -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 -from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 -from google.rpc import status_pb2 as google_dot_rpc_dot_status__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/services/recommendation_service.proto', - package='google.ads.googleads.v1.services', - syntax='proto3', - serialized_options=_b('\n$com.google.ads.googleads.v1.servicesB\032RecommendationServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v1/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V1.Services\312\002 Google\\Ads\\GoogleAds\\V1\\Services\352\002$Google::Ads::GoogleAds::V1::Services'), - serialized_pb=_b('\nCgoogle/ads/googleads_v1/proto/services/recommendation_service.proto\x12 google.ads.googleads.v1.services\x1a\x35google/ads/googleads_v1/proto/common/extensions.proto\x1a.google.ads.googleads.v1.services.ApplyRecommendationOperation\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\"\x82\x0f\n\x1c\x41pplyRecommendationOperation\x12\x15\n\rresource_name\x18\x01 \x01(\t\x12r\n\x0f\x63\x61mpaign_budget\x18\x02 \x01(\x0b\x32W.google.ads.googleads.v1.services.ApplyRecommendationOperation.CampaignBudgetParametersH\x00\x12\x62\n\x07text_ad\x18\x03 \x01(\x0b\x32O.google.ads.googleads.v1.services.ApplyRecommendationOperation.TextAdParametersH\x00\x12\x63\n\x07keyword\x18\x04 \x01(\x0b\x32P.google.ads.googleads.v1.services.ApplyRecommendationOperation.KeywordParametersH\x00\x12t\n\x11target_cpa_opt_in\x18\x05 \x01(\x0b\x32W.google.ads.googleads.v1.services.ApplyRecommendationOperation.TargetCpaOptInParametersH\x00\x12v\n\x11\x63\x61llout_extension\x18\x06 \x01(\x0b\x32Y.google.ads.googleads.v1.services.ApplyRecommendationOperation.CalloutExtensionParametersH\x00\x12p\n\x0e\x63\x61ll_extension\x18\x07 \x01(\x0b\x32V.google.ads.googleads.v1.services.ApplyRecommendationOperation.CallExtensionParametersH\x00\x12x\n\x12sitelink_extension\x18\x08 \x01(\x0b\x32Z.google.ads.googleads.v1.services.ApplyRecommendationOperation.SitelinkExtensionParametersH\x00\x12w\n\x12move_unused_budget\x18\t \x01(\x0b\x32Y.google.ads.googleads.v1.services.ApplyRecommendationOperation.MoveUnusedBudgetParametersH\x00\x1aY\n\x18\x43\x61mpaignBudgetParameters\x12=\n\x18new_budget_amount_micros\x18\x01 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x1a\x45\n\x10TextAdParameters\x12\x31\n\x02\x61\x64\x18\x01 \x01(\x0b\x32%.google.ads.googleads.v1.resources.Ad\x1a\xd2\x01\n\x11KeywordParameters\x12.\n\x08\x61\x64_group\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12X\n\nmatch_type\x18\x02 \x01(\x0e\x32\x44.google.ads.googleads.v1.enums.KeywordMatchTypeEnum.KeywordMatchType\x12\x33\n\x0e\x63pc_bid_micros\x18\x03 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x1a\x9a\x01\n\x18TargetCpaOptInParameters\x12\x36\n\x11target_cpa_micros\x18\x01 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x46\n!new_campaign_budget_amount_micros\x18\x02 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x1ai\n\x1a\x43\x61lloutExtensionParameters\x12K\n\x12\x63\x61llout_extensions\x18\x01 \x03(\x0b\x32/.google.ads.googleads.v1.common.CalloutFeedItem\x1a`\n\x17\x43\x61llExtensionParameters\x12\x45\n\x0f\x63\x61ll_extensions\x18\x01 \x03(\x0b\x32,.google.ads.googleads.v1.common.CallFeedItem\x1al\n\x1bSitelinkExtensionParameters\x12M\n\x13sitelink_extensions\x18\x01 \x03(\x0b\x32\x30.google.ads.googleads.v1.common.SitelinkFeedItem\x1aX\n\x1aMoveUnusedBudgetParameters\x12:\n\x15\x62udget_micros_to_move\x18\x01 \x01(\x0b\x32\x1b.google.protobuf.Int64ValueB\x12\n\x10\x61pply_parameters\"\x9e\x01\n\x1b\x41pplyRecommendationResponse\x12L\n\x07results\x18\x01 \x03(\x0b\x32;.google.ads.googleads.v1.services.ApplyRecommendationResult\x12\x31\n\x15partial_failure_error\x18\x02 \x01(\x0b\x32\x12.google.rpc.Status\"2\n\x19\x41pplyRecommendationResult\x12\x15\n\rresource_name\x18\x01 \x01(\t\"\xf8\x01\n\x1c\x44ismissRecommendationRequest\x12\x13\n\x0b\x63ustomer_id\x18\x01 \x01(\t\x12q\n\noperations\x18\x03 \x03(\x0b\x32].google.ads.googleads.v1.services.DismissRecommendationRequest.DismissRecommendationOperation\x12\x17\n\x0fpartial_failure\x18\x02 \x01(\x08\x1a\x37\n\x1e\x44ismissRecommendationOperation\x12\x15\n\rresource_name\x18\x01 \x01(\t\"\xf6\x01\n\x1d\x44ismissRecommendationResponse\x12l\n\x07results\x18\x01 \x03(\x0b\x32[.google.ads.googleads.v1.services.DismissRecommendationResponse.DismissRecommendationResult\x12\x31\n\x15partial_failure_error\x18\x02 \x01(\x0b\x32\x12.google.rpc.Status\x1a\x34\n\x1b\x44ismissRecommendationResult\x12\x15\n\rresource_name\x18\x01 \x01(\t2\x89\x05\n\x15RecommendationService\x12\xbd\x01\n\x11GetRecommendation\x12:.google.ads.googleads.v1.services.GetRecommendationRequest\x1a\x31.google.ads.googleads.v1.resources.Recommendation\"9\x82\xd3\xe4\x93\x02\x33\x12\x31/v1/{resource_name=customers/*/recommendations/*}\x12\xd2\x01\n\x13\x41pplyRecommendation\x12<.google.ads.googleads.v1.services.ApplyRecommendationRequest\x1a=.google.ads.googleads.v1.services.ApplyRecommendationResponse\">\x82\xd3\xe4\x93\x02\x38\"3/v1/customers/{customer_id=*}/recommendations:apply:\x01*\x12\xda\x01\n\x15\x44ismissRecommendation\x12>.google.ads.googleads.v1.services.DismissRecommendationRequest\x1a?.google.ads.googleads.v1.services.DismissRecommendationResponse\"@\x82\xd3\xe4\x93\x02:\"5/v1/customers/{customer_id=*}/recommendations:dismiss:\x01*B\x81\x02\n$com.google.ads.googleads.v1.servicesB\x1aRecommendationServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v1/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V1.Services\xca\x02 Google\\Ads\\GoogleAds\\V1\\Services\xea\x02$Google::Ads::GoogleAds::V1::Servicesb\x06proto3') - , - dependencies=[google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_extensions__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_keyword__match__type__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_ad__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_recommendation__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_rpc_dot_status__pb2.DESCRIPTOR,]) - - - - -_GETRECOMMENDATIONREQUEST = _descriptor.Descriptor( - name='GetRecommendationRequest', - full_name='google.ads.googleads.v1.services.GetRecommendationRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.services.GetRecommendationRequest.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=421, - serialized_end=470, -) - - -_APPLYRECOMMENDATIONREQUEST = _descriptor.Descriptor( - name='ApplyRecommendationRequest', - full_name='google.ads.googleads.v1.services.ApplyRecommendationRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='customer_id', full_name='google.ads.googleads.v1.services.ApplyRecommendationRequest.customer_id', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='operations', full_name='google.ads.googleads.v1.services.ApplyRecommendationRequest.operations', index=1, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='partial_failure', full_name='google.ads.googleads.v1.services.ApplyRecommendationRequest.partial_failure', index=2, - number=3, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=473, - serialized_end=631, -) - - -_APPLYRECOMMENDATIONOPERATION_CAMPAIGNBUDGETPARAMETERS = _descriptor.Descriptor( - name='CampaignBudgetParameters', - full_name='google.ads.googleads.v1.services.ApplyRecommendationOperation.CampaignBudgetParameters', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='new_budget_amount_micros', full_name='google.ads.googleads.v1.services.ApplyRecommendationOperation.CampaignBudgetParameters.new_budget_amount_micros', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1601, - serialized_end=1690, -) - -_APPLYRECOMMENDATIONOPERATION_TEXTADPARAMETERS = _descriptor.Descriptor( - name='TextAdParameters', - full_name='google.ads.googleads.v1.services.ApplyRecommendationOperation.TextAdParameters', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='ad', full_name='google.ads.googleads.v1.services.ApplyRecommendationOperation.TextAdParameters.ad', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1692, - serialized_end=1761, -) - -_APPLYRECOMMENDATIONOPERATION_KEYWORDPARAMETERS = _descriptor.Descriptor( - name='KeywordParameters', - full_name='google.ads.googleads.v1.services.ApplyRecommendationOperation.KeywordParameters', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='ad_group', full_name='google.ads.googleads.v1.services.ApplyRecommendationOperation.KeywordParameters.ad_group', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='match_type', full_name='google.ads.googleads.v1.services.ApplyRecommendationOperation.KeywordParameters.match_type', index=1, - number=2, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='cpc_bid_micros', full_name='google.ads.googleads.v1.services.ApplyRecommendationOperation.KeywordParameters.cpc_bid_micros', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1764, - serialized_end=1974, -) - -_APPLYRECOMMENDATIONOPERATION_TARGETCPAOPTINPARAMETERS = _descriptor.Descriptor( - name='TargetCpaOptInParameters', - full_name='google.ads.googleads.v1.services.ApplyRecommendationOperation.TargetCpaOptInParameters', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='target_cpa_micros', full_name='google.ads.googleads.v1.services.ApplyRecommendationOperation.TargetCpaOptInParameters.target_cpa_micros', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='new_campaign_budget_amount_micros', full_name='google.ads.googleads.v1.services.ApplyRecommendationOperation.TargetCpaOptInParameters.new_campaign_budget_amount_micros', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1977, - serialized_end=2131, -) - -_APPLYRECOMMENDATIONOPERATION_CALLOUTEXTENSIONPARAMETERS = _descriptor.Descriptor( - name='CalloutExtensionParameters', - full_name='google.ads.googleads.v1.services.ApplyRecommendationOperation.CalloutExtensionParameters', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='callout_extensions', full_name='google.ads.googleads.v1.services.ApplyRecommendationOperation.CalloutExtensionParameters.callout_extensions', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2133, - serialized_end=2238, -) - -_APPLYRECOMMENDATIONOPERATION_CALLEXTENSIONPARAMETERS = _descriptor.Descriptor( - name='CallExtensionParameters', - full_name='google.ads.googleads.v1.services.ApplyRecommendationOperation.CallExtensionParameters', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='call_extensions', full_name='google.ads.googleads.v1.services.ApplyRecommendationOperation.CallExtensionParameters.call_extensions', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2240, - serialized_end=2336, -) - -_APPLYRECOMMENDATIONOPERATION_SITELINKEXTENSIONPARAMETERS = _descriptor.Descriptor( - name='SitelinkExtensionParameters', - full_name='google.ads.googleads.v1.services.ApplyRecommendationOperation.SitelinkExtensionParameters', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='sitelink_extensions', full_name='google.ads.googleads.v1.services.ApplyRecommendationOperation.SitelinkExtensionParameters.sitelink_extensions', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2338, - serialized_end=2446, -) - -_APPLYRECOMMENDATIONOPERATION_MOVEUNUSEDBUDGETPARAMETERS = _descriptor.Descriptor( - name='MoveUnusedBudgetParameters', - full_name='google.ads.googleads.v1.services.ApplyRecommendationOperation.MoveUnusedBudgetParameters', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='budget_micros_to_move', full_name='google.ads.googleads.v1.services.ApplyRecommendationOperation.MoveUnusedBudgetParameters.budget_micros_to_move', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2448, - serialized_end=2536, -) - -_APPLYRECOMMENDATIONOPERATION = _descriptor.Descriptor( - name='ApplyRecommendationOperation', - full_name='google.ads.googleads.v1.services.ApplyRecommendationOperation', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.services.ApplyRecommendationOperation.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='campaign_budget', full_name='google.ads.googleads.v1.services.ApplyRecommendationOperation.campaign_budget', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='text_ad', full_name='google.ads.googleads.v1.services.ApplyRecommendationOperation.text_ad', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='keyword', full_name='google.ads.googleads.v1.services.ApplyRecommendationOperation.keyword', index=3, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='target_cpa_opt_in', full_name='google.ads.googleads.v1.services.ApplyRecommendationOperation.target_cpa_opt_in', index=4, - number=5, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='callout_extension', full_name='google.ads.googleads.v1.services.ApplyRecommendationOperation.callout_extension', index=5, - number=6, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='call_extension', full_name='google.ads.googleads.v1.services.ApplyRecommendationOperation.call_extension', index=6, - number=7, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='sitelink_extension', full_name='google.ads.googleads.v1.services.ApplyRecommendationOperation.sitelink_extension', index=7, - number=8, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='move_unused_budget', full_name='google.ads.googleads.v1.services.ApplyRecommendationOperation.move_unused_budget', index=8, - number=9, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[_APPLYRECOMMENDATIONOPERATION_CAMPAIGNBUDGETPARAMETERS, _APPLYRECOMMENDATIONOPERATION_TEXTADPARAMETERS, _APPLYRECOMMENDATIONOPERATION_KEYWORDPARAMETERS, _APPLYRECOMMENDATIONOPERATION_TARGETCPAOPTINPARAMETERS, _APPLYRECOMMENDATIONOPERATION_CALLOUTEXTENSIONPARAMETERS, _APPLYRECOMMENDATIONOPERATION_CALLEXTENSIONPARAMETERS, _APPLYRECOMMENDATIONOPERATION_SITELINKEXTENSIONPARAMETERS, _APPLYRECOMMENDATIONOPERATION_MOVEUNUSEDBUDGETPARAMETERS, ], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='apply_parameters', full_name='google.ads.googleads.v1.services.ApplyRecommendationOperation.apply_parameters', - index=0, containing_type=None, fields=[]), - ], - serialized_start=634, - serialized_end=2556, -) - - -_APPLYRECOMMENDATIONRESPONSE = _descriptor.Descriptor( - name='ApplyRecommendationResponse', - full_name='google.ads.googleads.v1.services.ApplyRecommendationResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='results', full_name='google.ads.googleads.v1.services.ApplyRecommendationResponse.results', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='partial_failure_error', full_name='google.ads.googleads.v1.services.ApplyRecommendationResponse.partial_failure_error', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2559, - serialized_end=2717, -) - - -_APPLYRECOMMENDATIONRESULT = _descriptor.Descriptor( - name='ApplyRecommendationResult', - full_name='google.ads.googleads.v1.services.ApplyRecommendationResult', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.services.ApplyRecommendationResult.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2719, - serialized_end=2769, -) - - -_DISMISSRECOMMENDATIONREQUEST_DISMISSRECOMMENDATIONOPERATION = _descriptor.Descriptor( - name='DismissRecommendationOperation', - full_name='google.ads.googleads.v1.services.DismissRecommendationRequest.DismissRecommendationOperation', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.services.DismissRecommendationRequest.DismissRecommendationOperation.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2965, - serialized_end=3020, -) - -_DISMISSRECOMMENDATIONREQUEST = _descriptor.Descriptor( - name='DismissRecommendationRequest', - full_name='google.ads.googleads.v1.services.DismissRecommendationRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='customer_id', full_name='google.ads.googleads.v1.services.DismissRecommendationRequest.customer_id', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='operations', full_name='google.ads.googleads.v1.services.DismissRecommendationRequest.operations', index=1, - number=3, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='partial_failure', full_name='google.ads.googleads.v1.services.DismissRecommendationRequest.partial_failure', index=2, - number=2, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[_DISMISSRECOMMENDATIONREQUEST_DISMISSRECOMMENDATIONOPERATION, ], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2772, - serialized_end=3020, -) - - -_DISMISSRECOMMENDATIONRESPONSE_DISMISSRECOMMENDATIONRESULT = _descriptor.Descriptor( - name='DismissRecommendationResult', - full_name='google.ads.googleads.v1.services.DismissRecommendationResponse.DismissRecommendationResult', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.services.DismissRecommendationResponse.DismissRecommendationResult.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=3217, - serialized_end=3269, -) - -_DISMISSRECOMMENDATIONRESPONSE = _descriptor.Descriptor( - name='DismissRecommendationResponse', - full_name='google.ads.googleads.v1.services.DismissRecommendationResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='results', full_name='google.ads.googleads.v1.services.DismissRecommendationResponse.results', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='partial_failure_error', full_name='google.ads.googleads.v1.services.DismissRecommendationResponse.partial_failure_error', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[_DISMISSRECOMMENDATIONRESPONSE_DISMISSRECOMMENDATIONRESULT, ], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=3023, - serialized_end=3269, -) - -_APPLYRECOMMENDATIONREQUEST.fields_by_name['operations'].message_type = _APPLYRECOMMENDATIONOPERATION -_APPLYRECOMMENDATIONOPERATION_CAMPAIGNBUDGETPARAMETERS.fields_by_name['new_budget_amount_micros'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -_APPLYRECOMMENDATIONOPERATION_CAMPAIGNBUDGETPARAMETERS.containing_type = _APPLYRECOMMENDATIONOPERATION -_APPLYRECOMMENDATIONOPERATION_TEXTADPARAMETERS.fields_by_name['ad'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_ad__pb2._AD -_APPLYRECOMMENDATIONOPERATION_TEXTADPARAMETERS.containing_type = _APPLYRECOMMENDATIONOPERATION -_APPLYRECOMMENDATIONOPERATION_KEYWORDPARAMETERS.fields_by_name['ad_group'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_APPLYRECOMMENDATIONOPERATION_KEYWORDPARAMETERS.fields_by_name['match_type'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_keyword__match__type__pb2._KEYWORDMATCHTYPEENUM_KEYWORDMATCHTYPE -_APPLYRECOMMENDATIONOPERATION_KEYWORDPARAMETERS.fields_by_name['cpc_bid_micros'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -_APPLYRECOMMENDATIONOPERATION_KEYWORDPARAMETERS.containing_type = _APPLYRECOMMENDATIONOPERATION -_APPLYRECOMMENDATIONOPERATION_TARGETCPAOPTINPARAMETERS.fields_by_name['target_cpa_micros'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -_APPLYRECOMMENDATIONOPERATION_TARGETCPAOPTINPARAMETERS.fields_by_name['new_campaign_budget_amount_micros'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -_APPLYRECOMMENDATIONOPERATION_TARGETCPAOPTINPARAMETERS.containing_type = _APPLYRECOMMENDATIONOPERATION -_APPLYRECOMMENDATIONOPERATION_CALLOUTEXTENSIONPARAMETERS.fields_by_name['callout_extensions'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_extensions__pb2._CALLOUTFEEDITEM -_APPLYRECOMMENDATIONOPERATION_CALLOUTEXTENSIONPARAMETERS.containing_type = _APPLYRECOMMENDATIONOPERATION -_APPLYRECOMMENDATIONOPERATION_CALLEXTENSIONPARAMETERS.fields_by_name['call_extensions'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_extensions__pb2._CALLFEEDITEM -_APPLYRECOMMENDATIONOPERATION_CALLEXTENSIONPARAMETERS.containing_type = _APPLYRECOMMENDATIONOPERATION -_APPLYRECOMMENDATIONOPERATION_SITELINKEXTENSIONPARAMETERS.fields_by_name['sitelink_extensions'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_extensions__pb2._SITELINKFEEDITEM -_APPLYRECOMMENDATIONOPERATION_SITELINKEXTENSIONPARAMETERS.containing_type = _APPLYRECOMMENDATIONOPERATION -_APPLYRECOMMENDATIONOPERATION_MOVEUNUSEDBUDGETPARAMETERS.fields_by_name['budget_micros_to_move'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -_APPLYRECOMMENDATIONOPERATION_MOVEUNUSEDBUDGETPARAMETERS.containing_type = _APPLYRECOMMENDATIONOPERATION -_APPLYRECOMMENDATIONOPERATION.fields_by_name['campaign_budget'].message_type = _APPLYRECOMMENDATIONOPERATION_CAMPAIGNBUDGETPARAMETERS -_APPLYRECOMMENDATIONOPERATION.fields_by_name['text_ad'].message_type = _APPLYRECOMMENDATIONOPERATION_TEXTADPARAMETERS -_APPLYRECOMMENDATIONOPERATION.fields_by_name['keyword'].message_type = _APPLYRECOMMENDATIONOPERATION_KEYWORDPARAMETERS -_APPLYRECOMMENDATIONOPERATION.fields_by_name['target_cpa_opt_in'].message_type = _APPLYRECOMMENDATIONOPERATION_TARGETCPAOPTINPARAMETERS -_APPLYRECOMMENDATIONOPERATION.fields_by_name['callout_extension'].message_type = _APPLYRECOMMENDATIONOPERATION_CALLOUTEXTENSIONPARAMETERS -_APPLYRECOMMENDATIONOPERATION.fields_by_name['call_extension'].message_type = _APPLYRECOMMENDATIONOPERATION_CALLEXTENSIONPARAMETERS -_APPLYRECOMMENDATIONOPERATION.fields_by_name['sitelink_extension'].message_type = _APPLYRECOMMENDATIONOPERATION_SITELINKEXTENSIONPARAMETERS -_APPLYRECOMMENDATIONOPERATION.fields_by_name['move_unused_budget'].message_type = _APPLYRECOMMENDATIONOPERATION_MOVEUNUSEDBUDGETPARAMETERS -_APPLYRECOMMENDATIONOPERATION.oneofs_by_name['apply_parameters'].fields.append( - _APPLYRECOMMENDATIONOPERATION.fields_by_name['campaign_budget']) -_APPLYRECOMMENDATIONOPERATION.fields_by_name['campaign_budget'].containing_oneof = _APPLYRECOMMENDATIONOPERATION.oneofs_by_name['apply_parameters'] -_APPLYRECOMMENDATIONOPERATION.oneofs_by_name['apply_parameters'].fields.append( - _APPLYRECOMMENDATIONOPERATION.fields_by_name['text_ad']) -_APPLYRECOMMENDATIONOPERATION.fields_by_name['text_ad'].containing_oneof = _APPLYRECOMMENDATIONOPERATION.oneofs_by_name['apply_parameters'] -_APPLYRECOMMENDATIONOPERATION.oneofs_by_name['apply_parameters'].fields.append( - _APPLYRECOMMENDATIONOPERATION.fields_by_name['keyword']) -_APPLYRECOMMENDATIONOPERATION.fields_by_name['keyword'].containing_oneof = _APPLYRECOMMENDATIONOPERATION.oneofs_by_name['apply_parameters'] -_APPLYRECOMMENDATIONOPERATION.oneofs_by_name['apply_parameters'].fields.append( - _APPLYRECOMMENDATIONOPERATION.fields_by_name['target_cpa_opt_in']) -_APPLYRECOMMENDATIONOPERATION.fields_by_name['target_cpa_opt_in'].containing_oneof = _APPLYRECOMMENDATIONOPERATION.oneofs_by_name['apply_parameters'] -_APPLYRECOMMENDATIONOPERATION.oneofs_by_name['apply_parameters'].fields.append( - _APPLYRECOMMENDATIONOPERATION.fields_by_name['callout_extension']) -_APPLYRECOMMENDATIONOPERATION.fields_by_name['callout_extension'].containing_oneof = _APPLYRECOMMENDATIONOPERATION.oneofs_by_name['apply_parameters'] -_APPLYRECOMMENDATIONOPERATION.oneofs_by_name['apply_parameters'].fields.append( - _APPLYRECOMMENDATIONOPERATION.fields_by_name['call_extension']) -_APPLYRECOMMENDATIONOPERATION.fields_by_name['call_extension'].containing_oneof = _APPLYRECOMMENDATIONOPERATION.oneofs_by_name['apply_parameters'] -_APPLYRECOMMENDATIONOPERATION.oneofs_by_name['apply_parameters'].fields.append( - _APPLYRECOMMENDATIONOPERATION.fields_by_name['sitelink_extension']) -_APPLYRECOMMENDATIONOPERATION.fields_by_name['sitelink_extension'].containing_oneof = _APPLYRECOMMENDATIONOPERATION.oneofs_by_name['apply_parameters'] -_APPLYRECOMMENDATIONOPERATION.oneofs_by_name['apply_parameters'].fields.append( - _APPLYRECOMMENDATIONOPERATION.fields_by_name['move_unused_budget']) -_APPLYRECOMMENDATIONOPERATION.fields_by_name['move_unused_budget'].containing_oneof = _APPLYRECOMMENDATIONOPERATION.oneofs_by_name['apply_parameters'] -_APPLYRECOMMENDATIONRESPONSE.fields_by_name['results'].message_type = _APPLYRECOMMENDATIONRESULT -_APPLYRECOMMENDATIONRESPONSE.fields_by_name['partial_failure_error'].message_type = google_dot_rpc_dot_status__pb2._STATUS -_DISMISSRECOMMENDATIONREQUEST_DISMISSRECOMMENDATIONOPERATION.containing_type = _DISMISSRECOMMENDATIONREQUEST -_DISMISSRECOMMENDATIONREQUEST.fields_by_name['operations'].message_type = _DISMISSRECOMMENDATIONREQUEST_DISMISSRECOMMENDATIONOPERATION -_DISMISSRECOMMENDATIONRESPONSE_DISMISSRECOMMENDATIONRESULT.containing_type = _DISMISSRECOMMENDATIONRESPONSE -_DISMISSRECOMMENDATIONRESPONSE.fields_by_name['results'].message_type = _DISMISSRECOMMENDATIONRESPONSE_DISMISSRECOMMENDATIONRESULT -_DISMISSRECOMMENDATIONRESPONSE.fields_by_name['partial_failure_error'].message_type = google_dot_rpc_dot_status__pb2._STATUS -DESCRIPTOR.message_types_by_name['GetRecommendationRequest'] = _GETRECOMMENDATIONREQUEST -DESCRIPTOR.message_types_by_name['ApplyRecommendationRequest'] = _APPLYRECOMMENDATIONREQUEST -DESCRIPTOR.message_types_by_name['ApplyRecommendationOperation'] = _APPLYRECOMMENDATIONOPERATION -DESCRIPTOR.message_types_by_name['ApplyRecommendationResponse'] = _APPLYRECOMMENDATIONRESPONSE -DESCRIPTOR.message_types_by_name['ApplyRecommendationResult'] = _APPLYRECOMMENDATIONRESULT -DESCRIPTOR.message_types_by_name['DismissRecommendationRequest'] = _DISMISSRECOMMENDATIONREQUEST -DESCRIPTOR.message_types_by_name['DismissRecommendationResponse'] = _DISMISSRECOMMENDATIONRESPONSE -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -GetRecommendationRequest = _reflection.GeneratedProtocolMessageType('GetRecommendationRequest', (_message.Message,), dict( - DESCRIPTOR = _GETRECOMMENDATIONREQUEST, - __module__ = 'google.ads.googleads_v1.proto.services.recommendation_service_pb2' - , - __doc__ = """Request message for - [RecommendationService.GetRecommendation][google.ads.googleads.v1.services.RecommendationService.GetRecommendation]. - - - Attributes: - resource_name: - The resource name of the recommendation to fetch. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.GetRecommendationRequest) - )) -_sym_db.RegisterMessage(GetRecommendationRequest) - -ApplyRecommendationRequest = _reflection.GeneratedProtocolMessageType('ApplyRecommendationRequest', (_message.Message,), dict( - DESCRIPTOR = _APPLYRECOMMENDATIONREQUEST, - __module__ = 'google.ads.googleads_v1.proto.services.recommendation_service_pb2' - , - __doc__ = """Request message for - [RecommendationService.ApplyRecommendation][google.ads.googleads.v1.services.RecommendationService.ApplyRecommendation]. - - - Attributes: - customer_id: - The ID of the customer with the recommendation. - operations: - The list of operations to apply recommendations. If - partial\_failure=false all recommendations should be of the - same type There is a limit of 100 operations per request. - partial_failure: - If true, successful operations will be carried out and invalid - operations will return errors. If false, operations will be - carried out as a transaction if and only if they are all - valid. Default is false. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.ApplyRecommendationRequest) - )) -_sym_db.RegisterMessage(ApplyRecommendationRequest) - -ApplyRecommendationOperation = _reflection.GeneratedProtocolMessageType('ApplyRecommendationOperation', (_message.Message,), dict( - - CampaignBudgetParameters = _reflection.GeneratedProtocolMessageType('CampaignBudgetParameters', (_message.Message,), dict( - DESCRIPTOR = _APPLYRECOMMENDATIONOPERATION_CAMPAIGNBUDGETPARAMETERS, - __module__ = 'google.ads.googleads_v1.proto.services.recommendation_service_pb2' - , - __doc__ = """Parameters to use when applying a campaign budget recommendation. - - - Attributes: - new_budget_amount_micros: - New budget amount to set for target budget resource. This is a - required field. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.ApplyRecommendationOperation.CampaignBudgetParameters) - )) - , - - TextAdParameters = _reflection.GeneratedProtocolMessageType('TextAdParameters', (_message.Message,), dict( - DESCRIPTOR = _APPLYRECOMMENDATIONOPERATION_TEXTADPARAMETERS, - __module__ = 'google.ads.googleads_v1.proto.services.recommendation_service_pb2' - , - __doc__ = """Parameters to use when applying a text ad recommendation. - - - Attributes: - ad: - New ad to add to recommended ad group. All necessary fields - need to be set in this message. This is a required field. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.ApplyRecommendationOperation.TextAdParameters) - )) - , - - KeywordParameters = _reflection.GeneratedProtocolMessageType('KeywordParameters', (_message.Message,), dict( - DESCRIPTOR = _APPLYRECOMMENDATIONOPERATION_KEYWORDPARAMETERS, - __module__ = 'google.ads.googleads_v1.proto.services.recommendation_service_pb2' - , - __doc__ = """Parameters to use when applying keyword recommendation. - - - Attributes: - ad_group: - The ad group resource to add keyword to. This is a required - field. - match_type: - The match type of the keyword. This is a required field. - cpc_bid_micros: - Optional, CPC bid to set for the keyword. If not set, keyword - will use bid based on bidding strategy used by target ad - group. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.ApplyRecommendationOperation.KeywordParameters) - )) - , - - TargetCpaOptInParameters = _reflection.GeneratedProtocolMessageType('TargetCpaOptInParameters', (_message.Message,), dict( - DESCRIPTOR = _APPLYRECOMMENDATIONOPERATION_TARGETCPAOPTINPARAMETERS, - __module__ = 'google.ads.googleads_v1.proto.services.recommendation_service_pb2' - , - __doc__ = """Parameters to use when applying Target CPA recommendation. - - - Attributes: - target_cpa_micros: - Average CPA to use for Target CPA bidding strategy. This is a - required field. - new_campaign_budget_amount_micros: - Optional, budget amount to set for the campaign. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.ApplyRecommendationOperation.TargetCpaOptInParameters) - )) - , - - CalloutExtensionParameters = _reflection.GeneratedProtocolMessageType('CalloutExtensionParameters', (_message.Message,), dict( - DESCRIPTOR = _APPLYRECOMMENDATIONOPERATION_CALLOUTEXTENSIONPARAMETERS, - __module__ = 'google.ads.googleads_v1.proto.services.recommendation_service_pb2' - , - __doc__ = """Parameters to use when applying callout extension recommendation. - - - Attributes: - callout_extensions: - Callout extensions to be added. This is a required field. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.ApplyRecommendationOperation.CalloutExtensionParameters) - )) - , - - CallExtensionParameters = _reflection.GeneratedProtocolMessageType('CallExtensionParameters', (_message.Message,), dict( - DESCRIPTOR = _APPLYRECOMMENDATIONOPERATION_CALLEXTENSIONPARAMETERS, - __module__ = 'google.ads.googleads_v1.proto.services.recommendation_service_pb2' - , - __doc__ = """Parameters to use when applying call extension recommendation. - - - Attributes: - call_extensions: - Call extensions to be added. This is a required field. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.ApplyRecommendationOperation.CallExtensionParameters) - )) - , - - SitelinkExtensionParameters = _reflection.GeneratedProtocolMessageType('SitelinkExtensionParameters', (_message.Message,), dict( - DESCRIPTOR = _APPLYRECOMMENDATIONOPERATION_SITELINKEXTENSIONPARAMETERS, - __module__ = 'google.ads.googleads_v1.proto.services.recommendation_service_pb2' - , - __doc__ = """Parameters to use when applying sitelink extension recommendation. - - - Attributes: - sitelink_extensions: - Sitelink extensions to be added. This is a required field. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.ApplyRecommendationOperation.SitelinkExtensionParameters) - )) - , - - MoveUnusedBudgetParameters = _reflection.GeneratedProtocolMessageType('MoveUnusedBudgetParameters', (_message.Message,), dict( - DESCRIPTOR = _APPLYRECOMMENDATIONOPERATION_MOVEUNUSEDBUDGETPARAMETERS, - __module__ = 'google.ads.googleads_v1.proto.services.recommendation_service_pb2' - , - __doc__ = """Parameters to use when applying move unused budget recommendation. - - - Attributes: - budget_micros_to_move: - Budget amount to move from excess budget to constrained - budget. This is a required field. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.ApplyRecommendationOperation.MoveUnusedBudgetParameters) - )) - , - DESCRIPTOR = _APPLYRECOMMENDATIONOPERATION, - __module__ = 'google.ads.googleads_v1.proto.services.recommendation_service_pb2' - , - __doc__ = """Information about the operation to apply a recommendation and any - parameters to customize it. - - - Attributes: - resource_name: - The resource name of the recommendation to apply. - apply_parameters: - Parameters to use when applying the recommendation. - campaign_budget: - Optional parameters to use when applying a campaign budget - recommendation. - text_ad: - Optional parameters to use when applying a text ad - recommendation. - keyword: - Optional parameters to use when applying keyword - recommendation. - target_cpa_opt_in: - Optional parameters to use when applying target CPA opt-in - recommendation. - callout_extension: - Parameters to use when applying callout extension - recommendation. - call_extension: - Parameters to use when applying call extension recommendation. - sitelink_extension: - Parameters to use when applying sitelink extension - recommendation. - move_unused_budget: - Parameters to use when applying move unused budget - recommendation. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.ApplyRecommendationOperation) - )) -_sym_db.RegisterMessage(ApplyRecommendationOperation) -_sym_db.RegisterMessage(ApplyRecommendationOperation.CampaignBudgetParameters) -_sym_db.RegisterMessage(ApplyRecommendationOperation.TextAdParameters) -_sym_db.RegisterMessage(ApplyRecommendationOperation.KeywordParameters) -_sym_db.RegisterMessage(ApplyRecommendationOperation.TargetCpaOptInParameters) -_sym_db.RegisterMessage(ApplyRecommendationOperation.CalloutExtensionParameters) -_sym_db.RegisterMessage(ApplyRecommendationOperation.CallExtensionParameters) -_sym_db.RegisterMessage(ApplyRecommendationOperation.SitelinkExtensionParameters) -_sym_db.RegisterMessage(ApplyRecommendationOperation.MoveUnusedBudgetParameters) - -ApplyRecommendationResponse = _reflection.GeneratedProtocolMessageType('ApplyRecommendationResponse', (_message.Message,), dict( - DESCRIPTOR = _APPLYRECOMMENDATIONRESPONSE, - __module__ = 'google.ads.googleads_v1.proto.services.recommendation_service_pb2' - , - __doc__ = """Response message for - [RecommendationService.ApplyRecommendation][google.ads.googleads.v1.services.RecommendationService.ApplyRecommendation]. - - - Attributes: - results: - Results of operations to apply recommendations. - partial_failure_error: - Errors that pertain to operation failures in the partial - failure mode. Returned only when partial\_failure = true and - all errors occur inside the operations. If any errors occur - outside the operations (e.g. auth errors) we return the RPC - level error. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.ApplyRecommendationResponse) - )) -_sym_db.RegisterMessage(ApplyRecommendationResponse) - -ApplyRecommendationResult = _reflection.GeneratedProtocolMessageType('ApplyRecommendationResult', (_message.Message,), dict( - DESCRIPTOR = _APPLYRECOMMENDATIONRESULT, - __module__ = 'google.ads.googleads_v1.proto.services.recommendation_service_pb2' - , - __doc__ = """The result of applying a recommendation. - - - Attributes: - resource_name: - Returned for successful applies. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.ApplyRecommendationResult) - )) -_sym_db.RegisterMessage(ApplyRecommendationResult) - -DismissRecommendationRequest = _reflection.GeneratedProtocolMessageType('DismissRecommendationRequest', (_message.Message,), dict( - - DismissRecommendationOperation = _reflection.GeneratedProtocolMessageType('DismissRecommendationOperation', (_message.Message,), dict( - DESCRIPTOR = _DISMISSRECOMMENDATIONREQUEST_DISMISSRECOMMENDATIONOPERATION, - __module__ = 'google.ads.googleads_v1.proto.services.recommendation_service_pb2' - , - __doc__ = """Operation to dismiss a single recommendation identified by - resource\_name. - - - Attributes: - resource_name: - The resource name of the recommendation to dismiss. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.DismissRecommendationRequest.DismissRecommendationOperation) - )) - , - DESCRIPTOR = _DISMISSRECOMMENDATIONREQUEST, - __module__ = 'google.ads.googleads_v1.proto.services.recommendation_service_pb2' - , - __doc__ = """Request message for - [RecommendationService.DismissRecommendation][google.ads.googleads.v1.services.RecommendationService.DismissRecommendation]. - - - Attributes: - customer_id: - The ID of the customer with the recommendation. - operations: - The list of operations to dismiss recommendations. If - partial\_failure=false all recommendations should be of the - same type There is a limit of 100 operations per request. - partial_failure: - If true, successful operations will be carried out and invalid - operations will return errors. If false, operations will be - carried in a single transaction if and only if they are all - valid. Default is false. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.DismissRecommendationRequest) - )) -_sym_db.RegisterMessage(DismissRecommendationRequest) -_sym_db.RegisterMessage(DismissRecommendationRequest.DismissRecommendationOperation) - -DismissRecommendationResponse = _reflection.GeneratedProtocolMessageType('DismissRecommendationResponse', (_message.Message,), dict( - - DismissRecommendationResult = _reflection.GeneratedProtocolMessageType('DismissRecommendationResult', (_message.Message,), dict( - DESCRIPTOR = _DISMISSRECOMMENDATIONRESPONSE_DISMISSRECOMMENDATIONRESULT, - __module__ = 'google.ads.googleads_v1.proto.services.recommendation_service_pb2' - , - __doc__ = """The result of dismissing a recommendation. - - - Attributes: - resource_name: - Returned for successful dismissals. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.DismissRecommendationResponse.DismissRecommendationResult) - )) - , - DESCRIPTOR = _DISMISSRECOMMENDATIONRESPONSE, - __module__ = 'google.ads.googleads_v1.proto.services.recommendation_service_pb2' - , - __doc__ = """Response message for - [RecommendationService.DismissRecommendation][google.ads.googleads.v1.services.RecommendationService.DismissRecommendation]. - - - Attributes: - results: - Results of operations to dismiss recommendations. - partial_failure_error: - Errors that pertain to operation failures in the partial - failure mode. Returned only when partial\_failure = true and - all errors occur inside the operations. If any errors occur - outside the operations (e.g. auth errors) we return the RPC - level error. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.DismissRecommendationResponse) - )) -_sym_db.RegisterMessage(DismissRecommendationResponse) -_sym_db.RegisterMessage(DismissRecommendationResponse.DismissRecommendationResult) - - -DESCRIPTOR._options = None - -_RECOMMENDATIONSERVICE = _descriptor.ServiceDescriptor( - name='RecommendationService', - full_name='google.ads.googleads.v1.services.RecommendationService', - file=DESCRIPTOR, - index=0, - serialized_options=None, - serialized_start=3272, - serialized_end=3921, - methods=[ - _descriptor.MethodDescriptor( - name='GetRecommendation', - full_name='google.ads.googleads.v1.services.RecommendationService.GetRecommendation', - index=0, - containing_service=None, - input_type=_GETRECOMMENDATIONREQUEST, - output_type=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_recommendation__pb2._RECOMMENDATION, - serialized_options=_b('\202\323\344\223\0023\0221/v1/{resource_name=customers/*/recommendations/*}'), - ), - _descriptor.MethodDescriptor( - name='ApplyRecommendation', - full_name='google.ads.googleads.v1.services.RecommendationService.ApplyRecommendation', - index=1, - containing_service=None, - input_type=_APPLYRECOMMENDATIONREQUEST, - output_type=_APPLYRECOMMENDATIONRESPONSE, - serialized_options=_b('\202\323\344\223\0028\"3/v1/customers/{customer_id=*}/recommendations:apply:\001*'), - ), - _descriptor.MethodDescriptor( - name='DismissRecommendation', - full_name='google.ads.googleads.v1.services.RecommendationService.DismissRecommendation', - index=2, - containing_service=None, - input_type=_DISMISSRECOMMENDATIONREQUEST, - output_type=_DISMISSRECOMMENDATIONRESPONSE, - serialized_options=_b('\202\323\344\223\002:\"5/v1/customers/{customer_id=*}/recommendations:dismiss:\001*'), - ), -]) -_sym_db.RegisterServiceDescriptor(_RECOMMENDATIONSERVICE) - -DESCRIPTOR.services_by_name['RecommendationService'] = _RECOMMENDATIONSERVICE - -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/services/recommendation_service_pb2_grpc.py b/google/ads/google_ads/v1/proto/services/recommendation_service_pb2_grpc.py deleted file mode 100644 index a461e1a67..000000000 --- a/google/ads/google_ads/v1/proto/services/recommendation_service_pb2_grpc.py +++ /dev/null @@ -1,85 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -import grpc - -from google.ads.google_ads.v1.proto.resources import recommendation_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_recommendation__pb2 -from google.ads.google_ads.v1.proto.services import recommendation_service_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_recommendation__service__pb2 - - -class RecommendationServiceStub(object): - """Proto file describing the Recommendation service. - - Service to manage recommendations. - """ - - def __init__(self, channel): - """Constructor. - - Args: - channel: A grpc.Channel. - """ - self.GetRecommendation = channel.unary_unary( - '/google.ads.googleads.v1.services.RecommendationService/GetRecommendation', - request_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_recommendation__service__pb2.GetRecommendationRequest.SerializeToString, - response_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_recommendation__pb2.Recommendation.FromString, - ) - self.ApplyRecommendation = channel.unary_unary( - '/google.ads.googleads.v1.services.RecommendationService/ApplyRecommendation', - request_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_recommendation__service__pb2.ApplyRecommendationRequest.SerializeToString, - response_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_recommendation__service__pb2.ApplyRecommendationResponse.FromString, - ) - self.DismissRecommendation = channel.unary_unary( - '/google.ads.googleads.v1.services.RecommendationService/DismissRecommendation', - request_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_recommendation__service__pb2.DismissRecommendationRequest.SerializeToString, - response_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_recommendation__service__pb2.DismissRecommendationResponse.FromString, - ) - - -class RecommendationServiceServicer(object): - """Proto file describing the Recommendation service. - - Service to manage recommendations. - """ - - def GetRecommendation(self, request, context): - """Returns the requested recommendation in full detail. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ApplyRecommendation(self, request, context): - """Applies given recommendations with corresponding apply parameters. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def DismissRecommendation(self, request, context): - """Dismisses given recommendations. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - -def add_RecommendationServiceServicer_to_server(servicer, server): - rpc_method_handlers = { - 'GetRecommendation': grpc.unary_unary_rpc_method_handler( - servicer.GetRecommendation, - request_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_recommendation__service__pb2.GetRecommendationRequest.FromString, - response_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_recommendation__pb2.Recommendation.SerializeToString, - ), - 'ApplyRecommendation': grpc.unary_unary_rpc_method_handler( - servicer.ApplyRecommendation, - request_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_recommendation__service__pb2.ApplyRecommendationRequest.FromString, - response_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_recommendation__service__pb2.ApplyRecommendationResponse.SerializeToString, - ), - 'DismissRecommendation': grpc.unary_unary_rpc_method_handler( - servicer.DismissRecommendation, - request_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_recommendation__service__pb2.DismissRecommendationRequest.FromString, - response_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_recommendation__service__pb2.DismissRecommendationResponse.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'google.ads.googleads.v1.services.RecommendationService', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) diff --git a/google/ads/google_ads/v1/proto/services/remarketing_action_service_pb2.py b/google/ads/google_ads/v1/proto/services/remarketing_action_service_pb2.py deleted file mode 100644 index 0afe27750..000000000 --- a/google/ads/google_ads/v1/proto/services/remarketing_action_service_pb2.py +++ /dev/null @@ -1,392 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/services/remarketing_action_service.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.ads.google_ads.v1.proto.resources import remarketing_action_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_remarketing__action__pb2 -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 -from google.protobuf import field_mask_pb2 as google_dot_protobuf_dot_field__mask__pb2 -from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 -from google.rpc import status_pb2 as google_dot_rpc_dot_status__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/services/remarketing_action_service.proto', - package='google.ads.googleads.v1.services', - syntax='proto3', - serialized_options=_b('\n$com.google.ads.googleads.v1.servicesB\035RemarketingActionServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v1/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V1.Services\312\002 Google\\Ads\\GoogleAds\\V1\\Services\352\002$Google::Ads::GoogleAds::V1::Services'), - serialized_pb=_b('\nGgoogle/ads/googleads_v1/proto/services/remarketing_action_service.proto\x12 google.ads.googleads.v1.services\x1a@google/ads/googleads_v1/proto/resources/remarketing_action.proto\x1a\x1cgoogle/api/annotations.proto\x1a google/protobuf/field_mask.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x17google/rpc/status.proto\"4\n\x1bGetRemarketingActionRequest\x12\x15\n\rresource_name\x18\x01 \x01(\t\"\xb8\x01\n\x1fMutateRemarketingActionsRequest\x12\x13\n\x0b\x63ustomer_id\x18\x01 \x01(\t\x12P\n\noperations\x18\x02 \x03(\x0b\x32<.google.ads.googleads.v1.services.RemarketingActionOperation\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\"\xea\x01\n\x1aRemarketingActionOperation\x12/\n\x0bupdate_mask\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12\x46\n\x06\x63reate\x18\x01 \x01(\x0b\x32\x34.google.ads.googleads.v1.resources.RemarketingActionH\x00\x12\x46\n\x06update\x18\x02 \x01(\x0b\x32\x34.google.ads.googleads.v1.resources.RemarketingActionH\x00\x42\x0b\n\toperation\"\xa7\x01\n MutateRemarketingActionsResponse\x12\x31\n\x15partial_failure_error\x18\x03 \x01(\x0b\x32\x12.google.rpc.Status\x12P\n\x07results\x18\x02 \x03(\x0b\x32?.google.ads.googleads.v1.services.MutateRemarketingActionResult\"6\n\x1dMutateRemarketingActionResult\x12\x15\n\rresource_name\x18\x01 \x01(\t2\xce\x03\n\x18RemarketingActionService\x12\xc9\x01\n\x14GetRemarketingAction\x12=.google.ads.googleads.v1.services.GetRemarketingActionRequest\x1a\x34.google.ads.googleads.v1.resources.RemarketingAction\"<\x82\xd3\xe4\x93\x02\x36\x12\x34/v1/{resource_name=customers/*/remarketingActions/*}\x12\xe5\x01\n\x18MutateRemarketingActions\x12\x41.google.ads.googleads.v1.services.MutateRemarketingActionsRequest\x1a\x42.google.ads.googleads.v1.services.MutateRemarketingActionsResponse\"B\x82\xd3\xe4\x93\x02<\"7/v1/customers/{customer_id=*}/remarketingActions:mutate:\x01*B\x84\x02\n$com.google.ads.googleads.v1.servicesB\x1dRemarketingActionServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v1/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V1.Services\xca\x02 Google\\Ads\\GoogleAds\\V1\\Services\xea\x02$Google::Ads::GoogleAds::V1::Servicesb\x06proto3') - , - dependencies=[google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_remarketing__action__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_protobuf_dot_field__mask__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_rpc_dot_status__pb2.DESCRIPTOR,]) - - - - -_GETREMARKETINGACTIONREQUEST = _descriptor.Descriptor( - name='GetRemarketingActionRequest', - full_name='google.ads.googleads.v1.services.GetRemarketingActionRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.services.GetRemarketingActionRequest.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=296, - serialized_end=348, -) - - -_MUTATEREMARKETINGACTIONSREQUEST = _descriptor.Descriptor( - name='MutateRemarketingActionsRequest', - full_name='google.ads.googleads.v1.services.MutateRemarketingActionsRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='customer_id', full_name='google.ads.googleads.v1.services.MutateRemarketingActionsRequest.customer_id', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='operations', full_name='google.ads.googleads.v1.services.MutateRemarketingActionsRequest.operations', index=1, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='partial_failure', full_name='google.ads.googleads.v1.services.MutateRemarketingActionsRequest.partial_failure', index=2, - number=3, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='validate_only', full_name='google.ads.googleads.v1.services.MutateRemarketingActionsRequest.validate_only', index=3, - number=4, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=351, - serialized_end=535, -) - - -_REMARKETINGACTIONOPERATION = _descriptor.Descriptor( - name='RemarketingActionOperation', - full_name='google.ads.googleads.v1.services.RemarketingActionOperation', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='update_mask', full_name='google.ads.googleads.v1.services.RemarketingActionOperation.update_mask', index=0, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='create', full_name='google.ads.googleads.v1.services.RemarketingActionOperation.create', index=1, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='update', full_name='google.ads.googleads.v1.services.RemarketingActionOperation.update', index=2, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='operation', full_name='google.ads.googleads.v1.services.RemarketingActionOperation.operation', - index=0, containing_type=None, fields=[]), - ], - serialized_start=538, - serialized_end=772, -) - - -_MUTATEREMARKETINGACTIONSRESPONSE = _descriptor.Descriptor( - name='MutateRemarketingActionsResponse', - full_name='google.ads.googleads.v1.services.MutateRemarketingActionsResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='partial_failure_error', full_name='google.ads.googleads.v1.services.MutateRemarketingActionsResponse.partial_failure_error', index=0, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='results', full_name='google.ads.googleads.v1.services.MutateRemarketingActionsResponse.results', index=1, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=775, - serialized_end=942, -) - - -_MUTATEREMARKETINGACTIONRESULT = _descriptor.Descriptor( - name='MutateRemarketingActionResult', - full_name='google.ads.googleads.v1.services.MutateRemarketingActionResult', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.services.MutateRemarketingActionResult.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=944, - serialized_end=998, -) - -_MUTATEREMARKETINGACTIONSREQUEST.fields_by_name['operations'].message_type = _REMARKETINGACTIONOPERATION -_REMARKETINGACTIONOPERATION.fields_by_name['update_mask'].message_type = google_dot_protobuf_dot_field__mask__pb2._FIELDMASK -_REMARKETINGACTIONOPERATION.fields_by_name['create'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_remarketing__action__pb2._REMARKETINGACTION -_REMARKETINGACTIONOPERATION.fields_by_name['update'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_remarketing__action__pb2._REMARKETINGACTION -_REMARKETINGACTIONOPERATION.oneofs_by_name['operation'].fields.append( - _REMARKETINGACTIONOPERATION.fields_by_name['create']) -_REMARKETINGACTIONOPERATION.fields_by_name['create'].containing_oneof = _REMARKETINGACTIONOPERATION.oneofs_by_name['operation'] -_REMARKETINGACTIONOPERATION.oneofs_by_name['operation'].fields.append( - _REMARKETINGACTIONOPERATION.fields_by_name['update']) -_REMARKETINGACTIONOPERATION.fields_by_name['update'].containing_oneof = _REMARKETINGACTIONOPERATION.oneofs_by_name['operation'] -_MUTATEREMARKETINGACTIONSRESPONSE.fields_by_name['partial_failure_error'].message_type = google_dot_rpc_dot_status__pb2._STATUS -_MUTATEREMARKETINGACTIONSRESPONSE.fields_by_name['results'].message_type = _MUTATEREMARKETINGACTIONRESULT -DESCRIPTOR.message_types_by_name['GetRemarketingActionRequest'] = _GETREMARKETINGACTIONREQUEST -DESCRIPTOR.message_types_by_name['MutateRemarketingActionsRequest'] = _MUTATEREMARKETINGACTIONSREQUEST -DESCRIPTOR.message_types_by_name['RemarketingActionOperation'] = _REMARKETINGACTIONOPERATION -DESCRIPTOR.message_types_by_name['MutateRemarketingActionsResponse'] = _MUTATEREMARKETINGACTIONSRESPONSE -DESCRIPTOR.message_types_by_name['MutateRemarketingActionResult'] = _MUTATEREMARKETINGACTIONRESULT -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -GetRemarketingActionRequest = _reflection.GeneratedProtocolMessageType('GetRemarketingActionRequest', (_message.Message,), dict( - DESCRIPTOR = _GETREMARKETINGACTIONREQUEST, - __module__ = 'google.ads.googleads_v1.proto.services.remarketing_action_service_pb2' - , - __doc__ = """Request message for - [RemarketingActionService.GetRemarketingAction][google.ads.googleads.v1.services.RemarketingActionService.GetRemarketingAction]. - - - Attributes: - resource_name: - The resource name of the remarketing action to fetch. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.GetRemarketingActionRequest) - )) -_sym_db.RegisterMessage(GetRemarketingActionRequest) - -MutateRemarketingActionsRequest = _reflection.GeneratedProtocolMessageType('MutateRemarketingActionsRequest', (_message.Message,), dict( - DESCRIPTOR = _MUTATEREMARKETINGACTIONSREQUEST, - __module__ = 'google.ads.googleads_v1.proto.services.remarketing_action_service_pb2' - , - __doc__ = """Request message for - [RemarketingActionService.MutateRemarketingActions][google.ads.googleads.v1.services.RemarketingActionService.MutateRemarketingActions]. - - - Attributes: - customer_id: - The ID of the customer whose remarketing actions are being - modified. - operations: - The list of operations to perform on individual remarketing - actions. - partial_failure: - If true, successful operations will be carried out and invalid - operations will return errors. If false, all operations will - be carried out in one transaction if and only if they are all - valid. Default is false. - validate_only: - If true, the request is validated but not executed. Only - errors are returned, not results. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.MutateRemarketingActionsRequest) - )) -_sym_db.RegisterMessage(MutateRemarketingActionsRequest) - -RemarketingActionOperation = _reflection.GeneratedProtocolMessageType('RemarketingActionOperation', (_message.Message,), dict( - DESCRIPTOR = _REMARKETINGACTIONOPERATION, - __module__ = 'google.ads.googleads_v1.proto.services.remarketing_action_service_pb2' - , - __doc__ = """A single operation (create, update) on a remarketing action. - - - Attributes: - update_mask: - FieldMask that determines which resource fields are modified - in an update. - operation: - The mutate operation. - create: - Create operation: No resource name is expected for the new - remarketing action. - update: - Update operation: The remarketing action is expected to have a - valid resource name. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.RemarketingActionOperation) - )) -_sym_db.RegisterMessage(RemarketingActionOperation) - -MutateRemarketingActionsResponse = _reflection.GeneratedProtocolMessageType('MutateRemarketingActionsResponse', (_message.Message,), dict( - DESCRIPTOR = _MUTATEREMARKETINGACTIONSRESPONSE, - __module__ = 'google.ads.googleads_v1.proto.services.remarketing_action_service_pb2' - , - __doc__ = """Response message for remarketing action mutate. - - - Attributes: - partial_failure_error: - Errors that pertain to operation failures in the partial - failure mode. Returned only when partial\_failure = true and - all errors occur inside the operations. If any errors occur - outside the operations (e.g. auth errors), we return an RPC - level error. - results: - All results for the mutate. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.MutateRemarketingActionsResponse) - )) -_sym_db.RegisterMessage(MutateRemarketingActionsResponse) - -MutateRemarketingActionResult = _reflection.GeneratedProtocolMessageType('MutateRemarketingActionResult', (_message.Message,), dict( - DESCRIPTOR = _MUTATEREMARKETINGACTIONRESULT, - __module__ = 'google.ads.googleads_v1.proto.services.remarketing_action_service_pb2' - , - __doc__ = """The result for the remarketing action mutate. - - - Attributes: - resource_name: - Returned for successful operations. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.MutateRemarketingActionResult) - )) -_sym_db.RegisterMessage(MutateRemarketingActionResult) - - -DESCRIPTOR._options = None - -_REMARKETINGACTIONSERVICE = _descriptor.ServiceDescriptor( - name='RemarketingActionService', - full_name='google.ads.googleads.v1.services.RemarketingActionService', - file=DESCRIPTOR, - index=0, - serialized_options=None, - serialized_start=1001, - serialized_end=1463, - methods=[ - _descriptor.MethodDescriptor( - name='GetRemarketingAction', - full_name='google.ads.googleads.v1.services.RemarketingActionService.GetRemarketingAction', - index=0, - containing_service=None, - input_type=_GETREMARKETINGACTIONREQUEST, - output_type=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_remarketing__action__pb2._REMARKETINGACTION, - serialized_options=_b('\202\323\344\223\0026\0224/v1/{resource_name=customers/*/remarketingActions/*}'), - ), - _descriptor.MethodDescriptor( - name='MutateRemarketingActions', - full_name='google.ads.googleads.v1.services.RemarketingActionService.MutateRemarketingActions', - index=1, - containing_service=None, - input_type=_MUTATEREMARKETINGACTIONSREQUEST, - output_type=_MUTATEREMARKETINGACTIONSRESPONSE, - serialized_options=_b('\202\323\344\223\002<\"7/v1/customers/{customer_id=*}/remarketingActions:mutate:\001*'), - ), -]) -_sym_db.RegisterServiceDescriptor(_REMARKETINGACTIONSERVICE) - -DESCRIPTOR.services_by_name['RemarketingActionService'] = _REMARKETINGACTIONSERVICE - -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/services/remarketing_action_service_pb2_grpc.py b/google/ads/google_ads/v1/proto/services/remarketing_action_service_pb2_grpc.py deleted file mode 100644 index 0a2fe0d78..000000000 --- a/google/ads/google_ads/v1/proto/services/remarketing_action_service_pb2_grpc.py +++ /dev/null @@ -1,68 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -import grpc - -from google.ads.google_ads.v1.proto.resources import remarketing_action_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_remarketing__action__pb2 -from google.ads.google_ads.v1.proto.services import remarketing_action_service_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_remarketing__action__service__pb2 - - -class RemarketingActionServiceStub(object): - """Proto file describing the Remarketing Action service. - - Service to manage remarketing actions. - """ - - def __init__(self, channel): - """Constructor. - - Args: - channel: A grpc.Channel. - """ - self.GetRemarketingAction = channel.unary_unary( - '/google.ads.googleads.v1.services.RemarketingActionService/GetRemarketingAction', - request_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_remarketing__action__service__pb2.GetRemarketingActionRequest.SerializeToString, - response_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_remarketing__action__pb2.RemarketingAction.FromString, - ) - self.MutateRemarketingActions = channel.unary_unary( - '/google.ads.googleads.v1.services.RemarketingActionService/MutateRemarketingActions', - request_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_remarketing__action__service__pb2.MutateRemarketingActionsRequest.SerializeToString, - response_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_remarketing__action__service__pb2.MutateRemarketingActionsResponse.FromString, - ) - - -class RemarketingActionServiceServicer(object): - """Proto file describing the Remarketing Action service. - - Service to manage remarketing actions. - """ - - def GetRemarketingAction(self, request, context): - """Returns the requested remarketing action in full detail. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def MutateRemarketingActions(self, request, context): - """Creates or updates remarketing actions. Operation statuses are returned. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - -def add_RemarketingActionServiceServicer_to_server(servicer, server): - rpc_method_handlers = { - 'GetRemarketingAction': grpc.unary_unary_rpc_method_handler( - servicer.GetRemarketingAction, - request_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_remarketing__action__service__pb2.GetRemarketingActionRequest.FromString, - response_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_remarketing__action__pb2.RemarketingAction.SerializeToString, - ), - 'MutateRemarketingActions': grpc.unary_unary_rpc_method_handler( - servicer.MutateRemarketingActions, - request_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_remarketing__action__service__pb2.MutateRemarketingActionsRequest.FromString, - response_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_remarketing__action__service__pb2.MutateRemarketingActionsResponse.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'google.ads.googleads.v1.services.RemarketingActionService', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) diff --git a/google/ads/google_ads/v1/proto/services/search_term_view_service_pb2.py b/google/ads/google_ads/v1/proto/services/search_term_view_service_pb2.py deleted file mode 100644 index 86b3c128f..000000000 --- a/google/ads/google_ads/v1/proto/services/search_term_view_service_pb2.py +++ /dev/null @@ -1,107 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/services/search_term_view_service.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.ads.google_ads.v1.proto.resources import search_term_view_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_search__term__view__pb2 -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/services/search_term_view_service.proto', - package='google.ads.googleads.v1.services', - syntax='proto3', - serialized_options=_b('\n$com.google.ads.googleads.v1.servicesB\032SearchTermViewServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v1/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V1.Services\312\002 Google\\Ads\\GoogleAds\\V1\\Services\352\002$Google::Ads::GoogleAds::V1::Services'), - serialized_pb=_b('\nEgoogle/ads/googleads_v1/proto/services/search_term_view_service.proto\x12 google.ads.googleads.v1.services\x1a>google/ads/googleads_v1/proto/resources/search_term_view.proto\x1a\x1cgoogle/api/annotations.proto\"1\n\x18GetSearchTermViewRequest\x12\x15\n\rresource_name\x18\x01 \x01(\t2\xd7\x01\n\x15SearchTermViewService\x12\xbd\x01\n\x11GetSearchTermView\x12:.google.ads.googleads.v1.services.GetSearchTermViewRequest\x1a\x31.google.ads.googleads.v1.resources.SearchTermView\"9\x82\xd3\xe4\x93\x02\x33\x12\x31/v1/{resource_name=customers/*/searchTermViews/*}B\x81\x02\n$com.google.ads.googleads.v1.servicesB\x1aSearchTermViewServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v1/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V1.Services\xca\x02 Google\\Ads\\GoogleAds\\V1\\Services\xea\x02$Google::Ads::GoogleAds::V1::Servicesb\x06proto3') - , - dependencies=[google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_search__term__view__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - - -_GETSEARCHTERMVIEWREQUEST = _descriptor.Descriptor( - name='GetSearchTermViewRequest', - full_name='google.ads.googleads.v1.services.GetSearchTermViewRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.services.GetSearchTermViewRequest.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=201, - serialized_end=250, -) - -DESCRIPTOR.message_types_by_name['GetSearchTermViewRequest'] = _GETSEARCHTERMVIEWREQUEST -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -GetSearchTermViewRequest = _reflection.GeneratedProtocolMessageType('GetSearchTermViewRequest', (_message.Message,), dict( - DESCRIPTOR = _GETSEARCHTERMVIEWREQUEST, - __module__ = 'google.ads.googleads_v1.proto.services.search_term_view_service_pb2' - , - __doc__ = """Request message for - [SearchTermViewService.GetSearchTermView][google.ads.googleads.v1.services.SearchTermViewService.GetSearchTermView]. - - - Attributes: - resource_name: - The resource name of the search term view to fetch. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.GetSearchTermViewRequest) - )) -_sym_db.RegisterMessage(GetSearchTermViewRequest) - - -DESCRIPTOR._options = None - -_SEARCHTERMVIEWSERVICE = _descriptor.ServiceDescriptor( - name='SearchTermViewService', - full_name='google.ads.googleads.v1.services.SearchTermViewService', - file=DESCRIPTOR, - index=0, - serialized_options=None, - serialized_start=253, - serialized_end=468, - methods=[ - _descriptor.MethodDescriptor( - name='GetSearchTermView', - full_name='google.ads.googleads.v1.services.SearchTermViewService.GetSearchTermView', - index=0, - containing_service=None, - input_type=_GETSEARCHTERMVIEWREQUEST, - output_type=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_search__term__view__pb2._SEARCHTERMVIEW, - serialized_options=_b('\202\323\344\223\0023\0221/v1/{resource_name=customers/*/searchTermViews/*}'), - ), -]) -_sym_db.RegisterServiceDescriptor(_SEARCHTERMVIEWSERVICE) - -DESCRIPTOR.services_by_name['SearchTermViewService'] = _SEARCHTERMVIEWSERVICE - -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/services/search_term_view_service_pb2_grpc.py b/google/ads/google_ads/v1/proto/services/search_term_view_service_pb2_grpc.py deleted file mode 100644 index 2c7e63b3f..000000000 --- a/google/ads/google_ads/v1/proto/services/search_term_view_service_pb2_grpc.py +++ /dev/null @@ -1,51 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -import grpc - -from google.ads.google_ads.v1.proto.resources import search_term_view_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_search__term__view__pb2 -from google.ads.google_ads.v1.proto.services import search_term_view_service_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_search__term__view__service__pb2 - - -class SearchTermViewServiceStub(object): - """Proto file describing the Search Term View service. - - Service to manage search term views. - """ - - def __init__(self, channel): - """Constructor. - - Args: - channel: A grpc.Channel. - """ - self.GetSearchTermView = channel.unary_unary( - '/google.ads.googleads.v1.services.SearchTermViewService/GetSearchTermView', - request_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_search__term__view__service__pb2.GetSearchTermViewRequest.SerializeToString, - response_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_search__term__view__pb2.SearchTermView.FromString, - ) - - -class SearchTermViewServiceServicer(object): - """Proto file describing the Search Term View service. - - Service to manage search term views. - """ - - def GetSearchTermView(self, request, context): - """Returns the attributes of the requested search term view. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - -def add_SearchTermViewServiceServicer_to_server(servicer, server): - rpc_method_handlers = { - 'GetSearchTermView': grpc.unary_unary_rpc_method_handler( - servicer.GetSearchTermView, - request_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_search__term__view__service__pb2.GetSearchTermViewRequest.FromString, - response_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_search__term__view__pb2.SearchTermView.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'google.ads.googleads.v1.services.SearchTermViewService', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) diff --git a/google/ads/google_ads/v1/proto/services/shared_criterion_service_pb2.py b/google/ads/google_ads/v1/proto/services/shared_criterion_service_pb2.py deleted file mode 100644 index a43bba567..000000000 --- a/google/ads/google_ads/v1/proto/services/shared_criterion_service_pb2.py +++ /dev/null @@ -1,380 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/services/shared_criterion_service.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.ads.google_ads.v1.proto.resources import shared_criterion_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_shared__criterion__pb2 -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 -from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 -from google.rpc import status_pb2 as google_dot_rpc_dot_status__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/services/shared_criterion_service.proto', - package='google.ads.googleads.v1.services', - syntax='proto3', - serialized_options=_b('\n$com.google.ads.googleads.v1.servicesB\033SharedCriterionServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v1/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V1.Services\312\002 Google\\Ads\\GoogleAds\\V1\\Services\352\002$Google::Ads::GoogleAds::V1::Services'), - serialized_pb=_b('\nEgoogle/ads/googleads_v1/proto/services/shared_criterion_service.proto\x12 google.ads.googleads.v1.services\x1a>google/ads/googleads_v1/proto/resources/shared_criterion.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x17google/rpc/status.proto\"2\n\x19GetSharedCriterionRequest\x12\x15\n\rresource_name\x18\x01 \x01(\t\"\xb2\x01\n\x1bMutateSharedCriteriaRequest\x12\x13\n\x0b\x63ustomer_id\x18\x01 \x01(\t\x12N\n\noperations\x18\x02 \x03(\x0b\x32:.google.ads.googleads.v1.services.SharedCriterionOperation\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\"\x7f\n\x18SharedCriterionOperation\x12\x44\n\x06\x63reate\x18\x01 \x01(\x0b\x32\x32.google.ads.googleads.v1.resources.SharedCriterionH\x00\x12\x10\n\x06remove\x18\x03 \x01(\tH\x00\x42\x0b\n\toperation\"\xa1\x01\n\x1cMutateSharedCriteriaResponse\x12\x31\n\x15partial_failure_error\x18\x03 \x01(\x0b\x32\x12.google.rpc.Status\x12N\n\x07results\x18\x02 \x03(\x0b\x32=.google.ads.googleads.v1.services.MutateSharedCriterionResult\"4\n\x1bMutateSharedCriterionResult\x12\x15\n\rresource_name\x18\x01 \x01(\t2\xb2\x03\n\x16SharedCriterionService\x12\xbf\x01\n\x12GetSharedCriterion\x12;.google.ads.googleads.v1.services.GetSharedCriterionRequest\x1a\x32.google.ads.googleads.v1.resources.SharedCriterion\"8\x82\xd3\xe4\x93\x02\x32\x12\x30/v1/{resource_name=customers/*/sharedCriteria/*}\x12\xd5\x01\n\x14MutateSharedCriteria\x12=.google.ads.googleads.v1.services.MutateSharedCriteriaRequest\x1a>.google.ads.googleads.v1.services.MutateSharedCriteriaResponse\">\x82\xd3\xe4\x93\x02\x38\"3/v1/customers/{customer_id=*}/sharedCriteria:mutate:\x01*B\x82\x02\n$com.google.ads.googleads.v1.servicesB\x1bSharedCriterionServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v1/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V1.Services\xca\x02 Google\\Ads\\GoogleAds\\V1\\Services\xea\x02$Google::Ads::GoogleAds::V1::Servicesb\x06proto3') - , - dependencies=[google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_shared__criterion__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_rpc_dot_status__pb2.DESCRIPTOR,]) - - - - -_GETSHAREDCRITERIONREQUEST = _descriptor.Descriptor( - name='GetSharedCriterionRequest', - full_name='google.ads.googleads.v1.services.GetSharedCriterionRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.services.GetSharedCriterionRequest.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=258, - serialized_end=308, -) - - -_MUTATESHAREDCRITERIAREQUEST = _descriptor.Descriptor( - name='MutateSharedCriteriaRequest', - full_name='google.ads.googleads.v1.services.MutateSharedCriteriaRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='customer_id', full_name='google.ads.googleads.v1.services.MutateSharedCriteriaRequest.customer_id', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='operations', full_name='google.ads.googleads.v1.services.MutateSharedCriteriaRequest.operations', index=1, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='partial_failure', full_name='google.ads.googleads.v1.services.MutateSharedCriteriaRequest.partial_failure', index=2, - number=3, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='validate_only', full_name='google.ads.googleads.v1.services.MutateSharedCriteriaRequest.validate_only', index=3, - number=4, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=311, - serialized_end=489, -) - - -_SHAREDCRITERIONOPERATION = _descriptor.Descriptor( - name='SharedCriterionOperation', - full_name='google.ads.googleads.v1.services.SharedCriterionOperation', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='create', full_name='google.ads.googleads.v1.services.SharedCriterionOperation.create', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='remove', full_name='google.ads.googleads.v1.services.SharedCriterionOperation.remove', index=1, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='operation', full_name='google.ads.googleads.v1.services.SharedCriterionOperation.operation', - index=0, containing_type=None, fields=[]), - ], - serialized_start=491, - serialized_end=618, -) - - -_MUTATESHAREDCRITERIARESPONSE = _descriptor.Descriptor( - name='MutateSharedCriteriaResponse', - full_name='google.ads.googleads.v1.services.MutateSharedCriteriaResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='partial_failure_error', full_name='google.ads.googleads.v1.services.MutateSharedCriteriaResponse.partial_failure_error', index=0, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='results', full_name='google.ads.googleads.v1.services.MutateSharedCriteriaResponse.results', index=1, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=621, - serialized_end=782, -) - - -_MUTATESHAREDCRITERIONRESULT = _descriptor.Descriptor( - name='MutateSharedCriterionResult', - full_name='google.ads.googleads.v1.services.MutateSharedCriterionResult', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.services.MutateSharedCriterionResult.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=784, - serialized_end=836, -) - -_MUTATESHAREDCRITERIAREQUEST.fields_by_name['operations'].message_type = _SHAREDCRITERIONOPERATION -_SHAREDCRITERIONOPERATION.fields_by_name['create'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_shared__criterion__pb2._SHAREDCRITERION -_SHAREDCRITERIONOPERATION.oneofs_by_name['operation'].fields.append( - _SHAREDCRITERIONOPERATION.fields_by_name['create']) -_SHAREDCRITERIONOPERATION.fields_by_name['create'].containing_oneof = _SHAREDCRITERIONOPERATION.oneofs_by_name['operation'] -_SHAREDCRITERIONOPERATION.oneofs_by_name['operation'].fields.append( - _SHAREDCRITERIONOPERATION.fields_by_name['remove']) -_SHAREDCRITERIONOPERATION.fields_by_name['remove'].containing_oneof = _SHAREDCRITERIONOPERATION.oneofs_by_name['operation'] -_MUTATESHAREDCRITERIARESPONSE.fields_by_name['partial_failure_error'].message_type = google_dot_rpc_dot_status__pb2._STATUS -_MUTATESHAREDCRITERIARESPONSE.fields_by_name['results'].message_type = _MUTATESHAREDCRITERIONRESULT -DESCRIPTOR.message_types_by_name['GetSharedCriterionRequest'] = _GETSHAREDCRITERIONREQUEST -DESCRIPTOR.message_types_by_name['MutateSharedCriteriaRequest'] = _MUTATESHAREDCRITERIAREQUEST -DESCRIPTOR.message_types_by_name['SharedCriterionOperation'] = _SHAREDCRITERIONOPERATION -DESCRIPTOR.message_types_by_name['MutateSharedCriteriaResponse'] = _MUTATESHAREDCRITERIARESPONSE -DESCRIPTOR.message_types_by_name['MutateSharedCriterionResult'] = _MUTATESHAREDCRITERIONRESULT -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -GetSharedCriterionRequest = _reflection.GeneratedProtocolMessageType('GetSharedCriterionRequest', (_message.Message,), dict( - DESCRIPTOR = _GETSHAREDCRITERIONREQUEST, - __module__ = 'google.ads.googleads_v1.proto.services.shared_criterion_service_pb2' - , - __doc__ = """Request message for - [SharedCriterionService.GetSharedCriterion][google.ads.googleads.v1.services.SharedCriterionService.GetSharedCriterion]. - - - Attributes: - resource_name: - The resource name of the shared criterion to fetch. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.GetSharedCriterionRequest) - )) -_sym_db.RegisterMessage(GetSharedCriterionRequest) - -MutateSharedCriteriaRequest = _reflection.GeneratedProtocolMessageType('MutateSharedCriteriaRequest', (_message.Message,), dict( - DESCRIPTOR = _MUTATESHAREDCRITERIAREQUEST, - __module__ = 'google.ads.googleads_v1.proto.services.shared_criterion_service_pb2' - , - __doc__ = """Request message for - [SharedCriterionService.MutateSharedCriteria][google.ads.googleads.v1.services.SharedCriterionService.MutateSharedCriteria]. - - - Attributes: - customer_id: - The ID of the customer whose shared criteria are being - modified. - operations: - The list of operations to perform on individual shared - criteria. - partial_failure: - If true, successful operations will be carried out and invalid - operations will return errors. If false, all operations will - be carried out in one transaction if and only if they are all - valid. Default is false. - validate_only: - If true, the request is validated but not executed. Only - errors are returned, not results. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.MutateSharedCriteriaRequest) - )) -_sym_db.RegisterMessage(MutateSharedCriteriaRequest) - -SharedCriterionOperation = _reflection.GeneratedProtocolMessageType('SharedCriterionOperation', (_message.Message,), dict( - DESCRIPTOR = _SHAREDCRITERIONOPERATION, - __module__ = 'google.ads.googleads_v1.proto.services.shared_criterion_service_pb2' - , - __doc__ = """A single operation (create, remove) on an shared criterion. - - - Attributes: - operation: - The mutate operation. - create: - Create operation: No resource name is expected for the new - shared criterion. - remove: - Remove operation: A resource name for the removed shared - criterion is expected, in this format: ``customers/{customer_ - id}/sharedCriteria/{shared_set_id}~{criterion_id}`` - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.SharedCriterionOperation) - )) -_sym_db.RegisterMessage(SharedCriterionOperation) - -MutateSharedCriteriaResponse = _reflection.GeneratedProtocolMessageType('MutateSharedCriteriaResponse', (_message.Message,), dict( - DESCRIPTOR = _MUTATESHAREDCRITERIARESPONSE, - __module__ = 'google.ads.googleads_v1.proto.services.shared_criterion_service_pb2' - , - __doc__ = """Response message for a shared criterion mutate. - - - Attributes: - partial_failure_error: - Errors that pertain to operation failures in the partial - failure mode. Returned only when partial\_failure = true and - all errors occur inside the operations. If any errors occur - outside the operations (e.g. auth errors), we return an RPC - level error. - results: - All results for the mutate. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.MutateSharedCriteriaResponse) - )) -_sym_db.RegisterMessage(MutateSharedCriteriaResponse) - -MutateSharedCriterionResult = _reflection.GeneratedProtocolMessageType('MutateSharedCriterionResult', (_message.Message,), dict( - DESCRIPTOR = _MUTATESHAREDCRITERIONRESULT, - __module__ = 'google.ads.googleads_v1.proto.services.shared_criterion_service_pb2' - , - __doc__ = """The result for the shared criterion mutate. - - - Attributes: - resource_name: - Returned for successful operations. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.MutateSharedCriterionResult) - )) -_sym_db.RegisterMessage(MutateSharedCriterionResult) - - -DESCRIPTOR._options = None - -_SHAREDCRITERIONSERVICE = _descriptor.ServiceDescriptor( - name='SharedCriterionService', - full_name='google.ads.googleads.v1.services.SharedCriterionService', - file=DESCRIPTOR, - index=0, - serialized_options=None, - serialized_start=839, - serialized_end=1273, - methods=[ - _descriptor.MethodDescriptor( - name='GetSharedCriterion', - full_name='google.ads.googleads.v1.services.SharedCriterionService.GetSharedCriterion', - index=0, - containing_service=None, - input_type=_GETSHAREDCRITERIONREQUEST, - output_type=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_shared__criterion__pb2._SHAREDCRITERION, - serialized_options=_b('\202\323\344\223\0022\0220/v1/{resource_name=customers/*/sharedCriteria/*}'), - ), - _descriptor.MethodDescriptor( - name='MutateSharedCriteria', - full_name='google.ads.googleads.v1.services.SharedCriterionService.MutateSharedCriteria', - index=1, - containing_service=None, - input_type=_MUTATESHAREDCRITERIAREQUEST, - output_type=_MUTATESHAREDCRITERIARESPONSE, - serialized_options=_b('\202\323\344\223\0028\"3/v1/customers/{customer_id=*}/sharedCriteria:mutate:\001*'), - ), -]) -_sym_db.RegisterServiceDescriptor(_SHAREDCRITERIONSERVICE) - -DESCRIPTOR.services_by_name['SharedCriterionService'] = _SHAREDCRITERIONSERVICE - -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/services/shared_criterion_service_pb2_grpc.py b/google/ads/google_ads/v1/proto/services/shared_criterion_service_pb2_grpc.py deleted file mode 100644 index 45f638d97..000000000 --- a/google/ads/google_ads/v1/proto/services/shared_criterion_service_pb2_grpc.py +++ /dev/null @@ -1,68 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -import grpc - -from google.ads.google_ads.v1.proto.resources import shared_criterion_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_shared__criterion__pb2 -from google.ads.google_ads.v1.proto.services import shared_criterion_service_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_shared__criterion__service__pb2 - - -class SharedCriterionServiceStub(object): - """Proto file describing the Shared Criterion service. - - Service to manage shared criteria. - """ - - def __init__(self, channel): - """Constructor. - - Args: - channel: A grpc.Channel. - """ - self.GetSharedCriterion = channel.unary_unary( - '/google.ads.googleads.v1.services.SharedCriterionService/GetSharedCriterion', - request_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_shared__criterion__service__pb2.GetSharedCriterionRequest.SerializeToString, - response_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_shared__criterion__pb2.SharedCriterion.FromString, - ) - self.MutateSharedCriteria = channel.unary_unary( - '/google.ads.googleads.v1.services.SharedCriterionService/MutateSharedCriteria', - request_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_shared__criterion__service__pb2.MutateSharedCriteriaRequest.SerializeToString, - response_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_shared__criterion__service__pb2.MutateSharedCriteriaResponse.FromString, - ) - - -class SharedCriterionServiceServicer(object): - """Proto file describing the Shared Criterion service. - - Service to manage shared criteria. - """ - - def GetSharedCriterion(self, request, context): - """Returns the requested shared criterion in full detail. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def MutateSharedCriteria(self, request, context): - """Creates or removes shared criteria. Operation statuses are returned. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - -def add_SharedCriterionServiceServicer_to_server(servicer, server): - rpc_method_handlers = { - 'GetSharedCriterion': grpc.unary_unary_rpc_method_handler( - servicer.GetSharedCriterion, - request_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_shared__criterion__service__pb2.GetSharedCriterionRequest.FromString, - response_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_shared__criterion__pb2.SharedCriterion.SerializeToString, - ), - 'MutateSharedCriteria': grpc.unary_unary_rpc_method_handler( - servicer.MutateSharedCriteria, - request_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_shared__criterion__service__pb2.MutateSharedCriteriaRequest.FromString, - response_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_shared__criterion__service__pb2.MutateSharedCriteriaResponse.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'google.ads.googleads.v1.services.SharedCriterionService', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) diff --git a/google/ads/google_ads/v1/proto/services/shared_set_service_pb2.py b/google/ads/google_ads/v1/proto/services/shared_set_service_pb2.py deleted file mode 100644 index 3233aafe9..000000000 --- a/google/ads/google_ads/v1/proto/services/shared_set_service_pb2.py +++ /dev/null @@ -1,404 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/services/shared_set_service.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.ads.google_ads.v1.proto.resources import shared_set_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_shared__set__pb2 -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 -from google.protobuf import field_mask_pb2 as google_dot_protobuf_dot_field__mask__pb2 -from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 -from google.rpc import status_pb2 as google_dot_rpc_dot_status__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/services/shared_set_service.proto', - package='google.ads.googleads.v1.services', - syntax='proto3', - serialized_options=_b('\n$com.google.ads.googleads.v1.servicesB\025SharedSetServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v1/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V1.Services\312\002 Google\\Ads\\GoogleAds\\V1\\Services\352\002$Google::Ads::GoogleAds::V1::Services'), - serialized_pb=_b('\n?google/ads/googleads_v1/proto/services/shared_set_service.proto\x12 google.ads.googleads.v1.services\x1a\x38google/ads/googleads_v1/proto/resources/shared_set.proto\x1a\x1cgoogle/api/annotations.proto\x1a google/protobuf/field_mask.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x17google/rpc/status.proto\",\n\x13GetSharedSetRequest\x12\x15\n\rresource_name\x18\x01 \x01(\t\"\xa8\x01\n\x17MutateSharedSetsRequest\x12\x13\n\x0b\x63ustomer_id\x18\x01 \x01(\t\x12H\n\noperations\x18\x02 \x03(\x0b\x32\x34.google.ads.googleads.v1.services.SharedSetOperation\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\"\xe4\x01\n\x12SharedSetOperation\x12/\n\x0bupdate_mask\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12>\n\x06\x63reate\x18\x01 \x01(\x0b\x32,.google.ads.googleads.v1.resources.SharedSetH\x00\x12>\n\x06update\x18\x02 \x01(\x0b\x32,.google.ads.googleads.v1.resources.SharedSetH\x00\x12\x10\n\x06remove\x18\x03 \x01(\tH\x00\x42\x0b\n\toperation\"\x97\x01\n\x18MutateSharedSetsResponse\x12\x31\n\x15partial_failure_error\x18\x03 \x01(\x0b\x32\x12.google.rpc.Status\x12H\n\x07results\x18\x02 \x03(\x0b\x32\x37.google.ads.googleads.v1.services.MutateSharedSetResult\".\n\x15MutateSharedSetResult\x12\x15\n\rresource_name\x18\x01 \x01(\t2\x86\x03\n\x10SharedSetService\x12\xa9\x01\n\x0cGetSharedSet\x12\x35.google.ads.googleads.v1.services.GetSharedSetRequest\x1a,.google.ads.googleads.v1.resources.SharedSet\"4\x82\xd3\xe4\x93\x02.\x12,/v1/{resource_name=customers/*/sharedSets/*}\x12\xc5\x01\n\x10MutateSharedSets\x12\x39.google.ads.googleads.v1.services.MutateSharedSetsRequest\x1a:.google.ads.googleads.v1.services.MutateSharedSetsResponse\":\x82\xd3\xe4\x93\x02\x34\"//v1/customers/{customer_id=*}/sharedSets:mutate:\x01*B\xfc\x01\n$com.google.ads.googleads.v1.servicesB\x15SharedSetServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v1/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V1.Services\xca\x02 Google\\Ads\\GoogleAds\\V1\\Services\xea\x02$Google::Ads::GoogleAds::V1::Servicesb\x06proto3') - , - dependencies=[google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_shared__set__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_protobuf_dot_field__mask__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_rpc_dot_status__pb2.DESCRIPTOR,]) - - - - -_GETSHAREDSETREQUEST = _descriptor.Descriptor( - name='GetSharedSetRequest', - full_name='google.ads.googleads.v1.services.GetSharedSetRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.services.GetSharedSetRequest.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=280, - serialized_end=324, -) - - -_MUTATESHAREDSETSREQUEST = _descriptor.Descriptor( - name='MutateSharedSetsRequest', - full_name='google.ads.googleads.v1.services.MutateSharedSetsRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='customer_id', full_name='google.ads.googleads.v1.services.MutateSharedSetsRequest.customer_id', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='operations', full_name='google.ads.googleads.v1.services.MutateSharedSetsRequest.operations', index=1, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='partial_failure', full_name='google.ads.googleads.v1.services.MutateSharedSetsRequest.partial_failure', index=2, - number=3, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='validate_only', full_name='google.ads.googleads.v1.services.MutateSharedSetsRequest.validate_only', index=3, - number=4, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=327, - serialized_end=495, -) - - -_SHAREDSETOPERATION = _descriptor.Descriptor( - name='SharedSetOperation', - full_name='google.ads.googleads.v1.services.SharedSetOperation', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='update_mask', full_name='google.ads.googleads.v1.services.SharedSetOperation.update_mask', index=0, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='create', full_name='google.ads.googleads.v1.services.SharedSetOperation.create', index=1, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='update', full_name='google.ads.googleads.v1.services.SharedSetOperation.update', index=2, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='remove', full_name='google.ads.googleads.v1.services.SharedSetOperation.remove', index=3, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='operation', full_name='google.ads.googleads.v1.services.SharedSetOperation.operation', - index=0, containing_type=None, fields=[]), - ], - serialized_start=498, - serialized_end=726, -) - - -_MUTATESHAREDSETSRESPONSE = _descriptor.Descriptor( - name='MutateSharedSetsResponse', - full_name='google.ads.googleads.v1.services.MutateSharedSetsResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='partial_failure_error', full_name='google.ads.googleads.v1.services.MutateSharedSetsResponse.partial_failure_error', index=0, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='results', full_name='google.ads.googleads.v1.services.MutateSharedSetsResponse.results', index=1, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=729, - serialized_end=880, -) - - -_MUTATESHAREDSETRESULT = _descriptor.Descriptor( - name='MutateSharedSetResult', - full_name='google.ads.googleads.v1.services.MutateSharedSetResult', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.services.MutateSharedSetResult.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=882, - serialized_end=928, -) - -_MUTATESHAREDSETSREQUEST.fields_by_name['operations'].message_type = _SHAREDSETOPERATION -_SHAREDSETOPERATION.fields_by_name['update_mask'].message_type = google_dot_protobuf_dot_field__mask__pb2._FIELDMASK -_SHAREDSETOPERATION.fields_by_name['create'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_shared__set__pb2._SHAREDSET -_SHAREDSETOPERATION.fields_by_name['update'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_shared__set__pb2._SHAREDSET -_SHAREDSETOPERATION.oneofs_by_name['operation'].fields.append( - _SHAREDSETOPERATION.fields_by_name['create']) -_SHAREDSETOPERATION.fields_by_name['create'].containing_oneof = _SHAREDSETOPERATION.oneofs_by_name['operation'] -_SHAREDSETOPERATION.oneofs_by_name['operation'].fields.append( - _SHAREDSETOPERATION.fields_by_name['update']) -_SHAREDSETOPERATION.fields_by_name['update'].containing_oneof = _SHAREDSETOPERATION.oneofs_by_name['operation'] -_SHAREDSETOPERATION.oneofs_by_name['operation'].fields.append( - _SHAREDSETOPERATION.fields_by_name['remove']) -_SHAREDSETOPERATION.fields_by_name['remove'].containing_oneof = _SHAREDSETOPERATION.oneofs_by_name['operation'] -_MUTATESHAREDSETSRESPONSE.fields_by_name['partial_failure_error'].message_type = google_dot_rpc_dot_status__pb2._STATUS -_MUTATESHAREDSETSRESPONSE.fields_by_name['results'].message_type = _MUTATESHAREDSETRESULT -DESCRIPTOR.message_types_by_name['GetSharedSetRequest'] = _GETSHAREDSETREQUEST -DESCRIPTOR.message_types_by_name['MutateSharedSetsRequest'] = _MUTATESHAREDSETSREQUEST -DESCRIPTOR.message_types_by_name['SharedSetOperation'] = _SHAREDSETOPERATION -DESCRIPTOR.message_types_by_name['MutateSharedSetsResponse'] = _MUTATESHAREDSETSRESPONSE -DESCRIPTOR.message_types_by_name['MutateSharedSetResult'] = _MUTATESHAREDSETRESULT -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -GetSharedSetRequest = _reflection.GeneratedProtocolMessageType('GetSharedSetRequest', (_message.Message,), dict( - DESCRIPTOR = _GETSHAREDSETREQUEST, - __module__ = 'google.ads.googleads_v1.proto.services.shared_set_service_pb2' - , - __doc__ = """Request message for - [SharedSetService.GetSharedSet][google.ads.googleads.v1.services.SharedSetService.GetSharedSet]. - - - Attributes: - resource_name: - The resource name of the shared set to fetch. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.GetSharedSetRequest) - )) -_sym_db.RegisterMessage(GetSharedSetRequest) - -MutateSharedSetsRequest = _reflection.GeneratedProtocolMessageType('MutateSharedSetsRequest', (_message.Message,), dict( - DESCRIPTOR = _MUTATESHAREDSETSREQUEST, - __module__ = 'google.ads.googleads_v1.proto.services.shared_set_service_pb2' - , - __doc__ = """Request message for - [SharedSetService.MutateSharedSets][google.ads.googleads.v1.services.SharedSetService.MutateSharedSets]. - - - Attributes: - customer_id: - The ID of the customer whose shared sets are being modified. - operations: - The list of operations to perform on individual shared sets. - partial_failure: - If true, successful operations will be carried out and invalid - operations will return errors. If false, all operations will - be carried out in one transaction if and only if they are all - valid. Default is false. - validate_only: - If true, the request is validated but not executed. Only - errors are returned, not results. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.MutateSharedSetsRequest) - )) -_sym_db.RegisterMessage(MutateSharedSetsRequest) - -SharedSetOperation = _reflection.GeneratedProtocolMessageType('SharedSetOperation', (_message.Message,), dict( - DESCRIPTOR = _SHAREDSETOPERATION, - __module__ = 'google.ads.googleads_v1.proto.services.shared_set_service_pb2' - , - __doc__ = """A single operation (create, update, remove) on an shared set. - - - Attributes: - update_mask: - FieldMask that determines which resource fields are modified - in an update. - operation: - The mutate operation. - create: - Create operation: No resource name is expected for the new - shared set. - update: - Update operation: The shared set is expected to have a valid - resource name. - remove: - Remove operation: A resource name for the removed shared set - is expected, in this format: - ``customers/{customer_id}/sharedSets/{shared_set_id}`` - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.SharedSetOperation) - )) -_sym_db.RegisterMessage(SharedSetOperation) - -MutateSharedSetsResponse = _reflection.GeneratedProtocolMessageType('MutateSharedSetsResponse', (_message.Message,), dict( - DESCRIPTOR = _MUTATESHAREDSETSRESPONSE, - __module__ = 'google.ads.googleads_v1.proto.services.shared_set_service_pb2' - , - __doc__ = """Response message for a shared set mutate. - - - Attributes: - partial_failure_error: - Errors that pertain to operation failures in the partial - failure mode. Returned only when partial\_failure = true and - all errors occur inside the operations. If any errors occur - outside the operations (e.g. auth errors), we return an RPC - level error. - results: - All results for the mutate. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.MutateSharedSetsResponse) - )) -_sym_db.RegisterMessage(MutateSharedSetsResponse) - -MutateSharedSetResult = _reflection.GeneratedProtocolMessageType('MutateSharedSetResult', (_message.Message,), dict( - DESCRIPTOR = _MUTATESHAREDSETRESULT, - __module__ = 'google.ads.googleads_v1.proto.services.shared_set_service_pb2' - , - __doc__ = """The result for the shared set mutate. - - - Attributes: - resource_name: - Returned for successful operations. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.MutateSharedSetResult) - )) -_sym_db.RegisterMessage(MutateSharedSetResult) - - -DESCRIPTOR._options = None - -_SHAREDSETSERVICE = _descriptor.ServiceDescriptor( - name='SharedSetService', - full_name='google.ads.googleads.v1.services.SharedSetService', - file=DESCRIPTOR, - index=0, - serialized_options=None, - serialized_start=931, - serialized_end=1321, - methods=[ - _descriptor.MethodDescriptor( - name='GetSharedSet', - full_name='google.ads.googleads.v1.services.SharedSetService.GetSharedSet', - index=0, - containing_service=None, - input_type=_GETSHAREDSETREQUEST, - output_type=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_shared__set__pb2._SHAREDSET, - serialized_options=_b('\202\323\344\223\002.\022,/v1/{resource_name=customers/*/sharedSets/*}'), - ), - _descriptor.MethodDescriptor( - name='MutateSharedSets', - full_name='google.ads.googleads.v1.services.SharedSetService.MutateSharedSets', - index=1, - containing_service=None, - input_type=_MUTATESHAREDSETSREQUEST, - output_type=_MUTATESHAREDSETSRESPONSE, - serialized_options=_b('\202\323\344\223\0024\"//v1/customers/{customer_id=*}/sharedSets:mutate:\001*'), - ), -]) -_sym_db.RegisterServiceDescriptor(_SHAREDSETSERVICE) - -DESCRIPTOR.services_by_name['SharedSetService'] = _SHAREDSETSERVICE - -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/services/shared_set_service_pb2_grpc.py b/google/ads/google_ads/v1/proto/services/shared_set_service_pb2_grpc.py deleted file mode 100644 index 926598a1e..000000000 --- a/google/ads/google_ads/v1/proto/services/shared_set_service_pb2_grpc.py +++ /dev/null @@ -1,68 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -import grpc - -from google.ads.google_ads.v1.proto.resources import shared_set_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_shared__set__pb2 -from google.ads.google_ads.v1.proto.services import shared_set_service_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_shared__set__service__pb2 - - -class SharedSetServiceStub(object): - """Proto file describing the Shared Set service. - - Service to manage shared sets. - """ - - def __init__(self, channel): - """Constructor. - - Args: - channel: A grpc.Channel. - """ - self.GetSharedSet = channel.unary_unary( - '/google.ads.googleads.v1.services.SharedSetService/GetSharedSet', - request_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_shared__set__service__pb2.GetSharedSetRequest.SerializeToString, - response_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_shared__set__pb2.SharedSet.FromString, - ) - self.MutateSharedSets = channel.unary_unary( - '/google.ads.googleads.v1.services.SharedSetService/MutateSharedSets', - request_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_shared__set__service__pb2.MutateSharedSetsRequest.SerializeToString, - response_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_shared__set__service__pb2.MutateSharedSetsResponse.FromString, - ) - - -class SharedSetServiceServicer(object): - """Proto file describing the Shared Set service. - - Service to manage shared sets. - """ - - def GetSharedSet(self, request, context): - """Returns the requested shared set in full detail. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def MutateSharedSets(self, request, context): - """Creates, updates, or removes shared sets. Operation statuses are returned. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - -def add_SharedSetServiceServicer_to_server(servicer, server): - rpc_method_handlers = { - 'GetSharedSet': grpc.unary_unary_rpc_method_handler( - servicer.GetSharedSet, - request_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_shared__set__service__pb2.GetSharedSetRequest.FromString, - response_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_shared__set__pb2.SharedSet.SerializeToString, - ), - 'MutateSharedSets': grpc.unary_unary_rpc_method_handler( - servicer.MutateSharedSets, - request_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_shared__set__service__pb2.MutateSharedSetsRequest.FromString, - response_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_shared__set__service__pb2.MutateSharedSetsResponse.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'google.ads.googleads.v1.services.SharedSetService', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) diff --git a/google/ads/google_ads/v1/proto/services/shopping_performance_view_service_pb2.py b/google/ads/google_ads/v1/proto/services/shopping_performance_view_service_pb2.py deleted file mode 100644 index 1ca0a000d..000000000 --- a/google/ads/google_ads/v1/proto/services/shopping_performance_view_service_pb2.py +++ /dev/null @@ -1,107 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/services/shopping_performance_view_service.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.ads.google_ads.v1.proto.resources import shopping_performance_view_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_shopping__performance__view__pb2 -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/services/shopping_performance_view_service.proto', - package='google.ads.googleads.v1.services', - syntax='proto3', - serialized_options=_b('\n$com.google.ads.googleads.v1.servicesB#ShoppingPerformanceViewServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v1/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V1.Services\312\002 Google\\Ads\\GoogleAds\\V1\\Services\352\002$Google::Ads::GoogleAds::V1::Services'), - serialized_pb=_b('\nNgoogle/ads/googleads_v1/proto/services/shopping_performance_view_service.proto\x12 google.ads.googleads.v1.services\x1aGgoogle/ads/googleads_v1/proto/resources/shopping_performance_view.proto\x1a\x1cgoogle/api/annotations.proto\":\n!GetShoppingPerformanceViewRequest\x12\x15\n\rresource_name\x18\x01 \x01(\t2\x81\x02\n\x1eShoppingPerformanceViewService\x12\xde\x01\n\x1aGetShoppingPerformanceView\x12\x43.google.ads.googleads.v1.services.GetShoppingPerformanceViewRequest\x1a:.google.ads.googleads.v1.resources.ShoppingPerformanceView\"?\x82\xd3\xe4\x93\x02\x39\x12\x37/v1/{resource_name=customers/*/shoppingPerformanceView}B\x8a\x02\n$com.google.ads.googleads.v1.servicesB#ShoppingPerformanceViewServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v1/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V1.Services\xca\x02 Google\\Ads\\GoogleAds\\V1\\Services\xea\x02$Google::Ads::GoogleAds::V1::Servicesb\x06proto3') - , - dependencies=[google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_shopping__performance__view__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - - -_GETSHOPPINGPERFORMANCEVIEWREQUEST = _descriptor.Descriptor( - name='GetShoppingPerformanceViewRequest', - full_name='google.ads.googleads.v1.services.GetShoppingPerformanceViewRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.services.GetShoppingPerformanceViewRequest.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=219, - serialized_end=277, -) - -DESCRIPTOR.message_types_by_name['GetShoppingPerformanceViewRequest'] = _GETSHOPPINGPERFORMANCEVIEWREQUEST -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -GetShoppingPerformanceViewRequest = _reflection.GeneratedProtocolMessageType('GetShoppingPerformanceViewRequest', (_message.Message,), dict( - DESCRIPTOR = _GETSHOPPINGPERFORMANCEVIEWREQUEST, - __module__ = 'google.ads.googleads_v1.proto.services.shopping_performance_view_service_pb2' - , - __doc__ = """Request message for - [ShoppingPerformanceViewService.GetShoppingPerformanceView][google.ads.googleads.v1.services.ShoppingPerformanceViewService.GetShoppingPerformanceView]. - - - Attributes: - resource_name: - The resource name of the Shopping performance view to fetch. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.GetShoppingPerformanceViewRequest) - )) -_sym_db.RegisterMessage(GetShoppingPerformanceViewRequest) - - -DESCRIPTOR._options = None - -_SHOPPINGPERFORMANCEVIEWSERVICE = _descriptor.ServiceDescriptor( - name='ShoppingPerformanceViewService', - full_name='google.ads.googleads.v1.services.ShoppingPerformanceViewService', - file=DESCRIPTOR, - index=0, - serialized_options=None, - serialized_start=280, - serialized_end=537, - methods=[ - _descriptor.MethodDescriptor( - name='GetShoppingPerformanceView', - full_name='google.ads.googleads.v1.services.ShoppingPerformanceViewService.GetShoppingPerformanceView', - index=0, - containing_service=None, - input_type=_GETSHOPPINGPERFORMANCEVIEWREQUEST, - output_type=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_shopping__performance__view__pb2._SHOPPINGPERFORMANCEVIEW, - serialized_options=_b('\202\323\344\223\0029\0227/v1/{resource_name=customers/*/shoppingPerformanceView}'), - ), -]) -_sym_db.RegisterServiceDescriptor(_SHOPPINGPERFORMANCEVIEWSERVICE) - -DESCRIPTOR.services_by_name['ShoppingPerformanceViewService'] = _SHOPPINGPERFORMANCEVIEWSERVICE - -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/services/shopping_performance_view_service_pb2_grpc.py b/google/ads/google_ads/v1/proto/services/shopping_performance_view_service_pb2_grpc.py deleted file mode 100644 index e6a2c72ba..000000000 --- a/google/ads/google_ads/v1/proto/services/shopping_performance_view_service_pb2_grpc.py +++ /dev/null @@ -1,51 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -import grpc - -from google.ads.google_ads.v1.proto.resources import shopping_performance_view_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_shopping__performance__view__pb2 -from google.ads.google_ads.v1.proto.services import shopping_performance_view_service_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_shopping__performance__view__service__pb2 - - -class ShoppingPerformanceViewServiceStub(object): - """Proto file describing the ShoppingPerformanceView service. - - Service to fetch Shopping performance views. - """ - - def __init__(self, channel): - """Constructor. - - Args: - channel: A grpc.Channel. - """ - self.GetShoppingPerformanceView = channel.unary_unary( - '/google.ads.googleads.v1.services.ShoppingPerformanceViewService/GetShoppingPerformanceView', - request_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_shopping__performance__view__service__pb2.GetShoppingPerformanceViewRequest.SerializeToString, - response_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_shopping__performance__view__pb2.ShoppingPerformanceView.FromString, - ) - - -class ShoppingPerformanceViewServiceServicer(object): - """Proto file describing the ShoppingPerformanceView service. - - Service to fetch Shopping performance views. - """ - - def GetShoppingPerformanceView(self, request, context): - """Returns the requested Shopping performance view in full detail. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - -def add_ShoppingPerformanceViewServiceServicer_to_server(servicer, server): - rpc_method_handlers = { - 'GetShoppingPerformanceView': grpc.unary_unary_rpc_method_handler( - servicer.GetShoppingPerformanceView, - request_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_shopping__performance__view__service__pb2.GetShoppingPerformanceViewRequest.FromString, - response_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_shopping__performance__view__pb2.ShoppingPerformanceView.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'google.ads.googleads.v1.services.ShoppingPerformanceViewService', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) diff --git a/google/ads/google_ads/v1/proto/services/topic_constant_service_pb2.py b/google/ads/google_ads/v1/proto/services/topic_constant_service_pb2.py deleted file mode 100644 index 71b17cc7c..000000000 --- a/google/ads/google_ads/v1/proto/services/topic_constant_service_pb2.py +++ /dev/null @@ -1,107 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/services/topic_constant_service.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.ads.google_ads.v1.proto.resources import topic_constant_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_topic__constant__pb2 -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/services/topic_constant_service.proto', - package='google.ads.googleads.v1.services', - syntax='proto3', - serialized_options=_b('\n$com.google.ads.googleads.v1.servicesB\031TopicConstantServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v1/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V1.Services\312\002 Google\\Ads\\GoogleAds\\V1\\Services\352\002$Google::Ads::GoogleAds::V1::Services'), - serialized_pb=_b('\nCgoogle/ads/googleads_v1/proto/services/topic_constant_service.proto\x12 google.ads.googleads.v1.services\x1agoogle/ads/googleads_v1/proto/services/user_list_service.proto\x12 google.ads.googleads.v1.services\x1a\x37google/ads/googleads_v1/proto/resources/user_list.proto\x1a\x1cgoogle/api/annotations.proto\x1a google/protobuf/field_mask.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x17google/rpc/status.proto\"+\n\x12GetUserListRequest\x12\x15\n\rresource_name\x18\x01 \x01(\t\"\xa6\x01\n\x16MutateUserListsRequest\x12\x13\n\x0b\x63ustomer_id\x18\x01 \x01(\t\x12G\n\noperations\x18\x02 \x03(\x0b\x32\x33.google.ads.googleads.v1.services.UserListOperation\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\"\xe1\x01\n\x11UserListOperation\x12/\n\x0bupdate_mask\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12=\n\x06\x63reate\x18\x01 \x01(\x0b\x32+.google.ads.googleads.v1.resources.UserListH\x00\x12=\n\x06update\x18\x02 \x01(\x0b\x32+.google.ads.googleads.v1.resources.UserListH\x00\x12\x10\n\x06remove\x18\x03 \x01(\tH\x00\x42\x0b\n\toperation\"\x95\x01\n\x17MutateUserListsResponse\x12\x31\n\x15partial_failure_error\x18\x03 \x01(\x0b\x32\x12.google.rpc.Status\x12G\n\x07results\x18\x02 \x03(\x0b\x32\x36.google.ads.googleads.v1.services.MutateUserListResult\"-\n\x14MutateUserListResult\x12\x15\n\rresource_name\x18\x01 \x01(\t2\xfd\x02\n\x0fUserListService\x12\xa5\x01\n\x0bGetUserList\x12\x34.google.ads.googleads.v1.services.GetUserListRequest\x1a+.google.ads.googleads.v1.resources.UserList\"3\x82\xd3\xe4\x93\x02-\x12+/v1/{resource_name=customers/*/userLists/*}\x12\xc1\x01\n\x0fMutateUserLists\x12\x38.google.ads.googleads.v1.services.MutateUserListsRequest\x1a\x39.google.ads.googleads.v1.services.MutateUserListsResponse\"9\x82\xd3\xe4\x93\x02\x33\"./v1/customers/{customer_id=*}/userLists:mutate:\x01*B\xfb\x01\n$com.google.ads.googleads.v1.servicesB\x14UserListServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v1/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V1.Services\xca\x02 Google\\Ads\\GoogleAds\\V1\\Services\xea\x02$Google::Ads::GoogleAds::V1::Servicesb\x06proto3') - , - dependencies=[google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_user__list__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_protobuf_dot_field__mask__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_rpc_dot_status__pb2.DESCRIPTOR,]) - - - - -_GETUSERLISTREQUEST = _descriptor.Descriptor( - name='GetUserListRequest', - full_name='google.ads.googleads.v1.services.GetUserListRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.services.GetUserListRequest.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=278, - serialized_end=321, -) - - -_MUTATEUSERLISTSREQUEST = _descriptor.Descriptor( - name='MutateUserListsRequest', - full_name='google.ads.googleads.v1.services.MutateUserListsRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='customer_id', full_name='google.ads.googleads.v1.services.MutateUserListsRequest.customer_id', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='operations', full_name='google.ads.googleads.v1.services.MutateUserListsRequest.operations', index=1, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='partial_failure', full_name='google.ads.googleads.v1.services.MutateUserListsRequest.partial_failure', index=2, - number=3, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='validate_only', full_name='google.ads.googleads.v1.services.MutateUserListsRequest.validate_only', index=3, - number=4, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=324, - serialized_end=490, -) - - -_USERLISTOPERATION = _descriptor.Descriptor( - name='UserListOperation', - full_name='google.ads.googleads.v1.services.UserListOperation', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='update_mask', full_name='google.ads.googleads.v1.services.UserListOperation.update_mask', index=0, - number=4, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='create', full_name='google.ads.googleads.v1.services.UserListOperation.create', index=1, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='update', full_name='google.ads.googleads.v1.services.UserListOperation.update', index=2, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='remove', full_name='google.ads.googleads.v1.services.UserListOperation.remove', index=3, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='operation', full_name='google.ads.googleads.v1.services.UserListOperation.operation', - index=0, containing_type=None, fields=[]), - ], - serialized_start=493, - serialized_end=718, -) - - -_MUTATEUSERLISTSRESPONSE = _descriptor.Descriptor( - name='MutateUserListsResponse', - full_name='google.ads.googleads.v1.services.MutateUserListsResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='partial_failure_error', full_name='google.ads.googleads.v1.services.MutateUserListsResponse.partial_failure_error', index=0, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='results', full_name='google.ads.googleads.v1.services.MutateUserListsResponse.results', index=1, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=721, - serialized_end=870, -) - - -_MUTATEUSERLISTRESULT = _descriptor.Descriptor( - name='MutateUserListResult', - full_name='google.ads.googleads.v1.services.MutateUserListResult', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.services.MutateUserListResult.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=872, - serialized_end=917, -) - -_MUTATEUSERLISTSREQUEST.fields_by_name['operations'].message_type = _USERLISTOPERATION -_USERLISTOPERATION.fields_by_name['update_mask'].message_type = google_dot_protobuf_dot_field__mask__pb2._FIELDMASK -_USERLISTOPERATION.fields_by_name['create'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_user__list__pb2._USERLIST -_USERLISTOPERATION.fields_by_name['update'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_user__list__pb2._USERLIST -_USERLISTOPERATION.oneofs_by_name['operation'].fields.append( - _USERLISTOPERATION.fields_by_name['create']) -_USERLISTOPERATION.fields_by_name['create'].containing_oneof = _USERLISTOPERATION.oneofs_by_name['operation'] -_USERLISTOPERATION.oneofs_by_name['operation'].fields.append( - _USERLISTOPERATION.fields_by_name['update']) -_USERLISTOPERATION.fields_by_name['update'].containing_oneof = _USERLISTOPERATION.oneofs_by_name['operation'] -_USERLISTOPERATION.oneofs_by_name['operation'].fields.append( - _USERLISTOPERATION.fields_by_name['remove']) -_USERLISTOPERATION.fields_by_name['remove'].containing_oneof = _USERLISTOPERATION.oneofs_by_name['operation'] -_MUTATEUSERLISTSRESPONSE.fields_by_name['partial_failure_error'].message_type = google_dot_rpc_dot_status__pb2._STATUS -_MUTATEUSERLISTSRESPONSE.fields_by_name['results'].message_type = _MUTATEUSERLISTRESULT -DESCRIPTOR.message_types_by_name['GetUserListRequest'] = _GETUSERLISTREQUEST -DESCRIPTOR.message_types_by_name['MutateUserListsRequest'] = _MUTATEUSERLISTSREQUEST -DESCRIPTOR.message_types_by_name['UserListOperation'] = _USERLISTOPERATION -DESCRIPTOR.message_types_by_name['MutateUserListsResponse'] = _MUTATEUSERLISTSRESPONSE -DESCRIPTOR.message_types_by_name['MutateUserListResult'] = _MUTATEUSERLISTRESULT -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -GetUserListRequest = _reflection.GeneratedProtocolMessageType('GetUserListRequest', (_message.Message,), dict( - DESCRIPTOR = _GETUSERLISTREQUEST, - __module__ = 'google.ads.googleads_v1.proto.services.user_list_service_pb2' - , - __doc__ = """Request message for - [UserListService.GetUserList][google.ads.googleads.v1.services.UserListService.GetUserList]. - - - Attributes: - resource_name: - The resource name of the user list to fetch. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.GetUserListRequest) - )) -_sym_db.RegisterMessage(GetUserListRequest) - -MutateUserListsRequest = _reflection.GeneratedProtocolMessageType('MutateUserListsRequest', (_message.Message,), dict( - DESCRIPTOR = _MUTATEUSERLISTSREQUEST, - __module__ = 'google.ads.googleads_v1.proto.services.user_list_service_pb2' - , - __doc__ = """Request message for - [UserListService.MutateUserLists][google.ads.googleads.v1.services.UserListService.MutateUserLists]. - - - Attributes: - customer_id: - The ID of the customer whose user lists are being modified. - operations: - The list of operations to perform on individual user lists. - partial_failure: - If true, successful operations will be carried out and invalid - operations will return errors. If false, all operations will - be carried out in one transaction if and only if they are all - valid. Default is false. - validate_only: - If true, the request is validated but not executed. Only - errors are returned, not results. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.MutateUserListsRequest) - )) -_sym_db.RegisterMessage(MutateUserListsRequest) - -UserListOperation = _reflection.GeneratedProtocolMessageType('UserListOperation', (_message.Message,), dict( - DESCRIPTOR = _USERLISTOPERATION, - __module__ = 'google.ads.googleads_v1.proto.services.user_list_service_pb2' - , - __doc__ = """A single operation (create, update) on a user list. - - - Attributes: - update_mask: - FieldMask that determines which resource fields are modified - in an update. - operation: - The mutate operation. - create: - Create operation: No resource name is expected for the new - user list. - update: - Update operation: The user list is expected to have a valid - resource name. - remove: - Remove operation: A resource name for the removed user list is - expected, in this format: - ``customers/{customer_id}/userLists/{user_list_id}`` - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.UserListOperation) - )) -_sym_db.RegisterMessage(UserListOperation) - -MutateUserListsResponse = _reflection.GeneratedProtocolMessageType('MutateUserListsResponse', (_message.Message,), dict( - DESCRIPTOR = _MUTATEUSERLISTSRESPONSE, - __module__ = 'google.ads.googleads_v1.proto.services.user_list_service_pb2' - , - __doc__ = """Response message for user list mutate. - - - Attributes: - partial_failure_error: - Errors that pertain to operation failures in the partial - failure mode. Returned only when partial\_failure = true and - all errors occur inside the operations. If any errors occur - outside the operations (e.g. auth errors), we return an RPC - level error. - results: - All results for the mutate. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.MutateUserListsResponse) - )) -_sym_db.RegisterMessage(MutateUserListsResponse) - -MutateUserListResult = _reflection.GeneratedProtocolMessageType('MutateUserListResult', (_message.Message,), dict( - DESCRIPTOR = _MUTATEUSERLISTRESULT, - __module__ = 'google.ads.googleads_v1.proto.services.user_list_service_pb2' - , - __doc__ = """The result for the user list mutate. - - - Attributes: - resource_name: - Returned for successful operations. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.MutateUserListResult) - )) -_sym_db.RegisterMessage(MutateUserListResult) - - -DESCRIPTOR._options = None - -_USERLISTSERVICE = _descriptor.ServiceDescriptor( - name='UserListService', - full_name='google.ads.googleads.v1.services.UserListService', - file=DESCRIPTOR, - index=0, - serialized_options=None, - serialized_start=920, - serialized_end=1301, - methods=[ - _descriptor.MethodDescriptor( - name='GetUserList', - full_name='google.ads.googleads.v1.services.UserListService.GetUserList', - index=0, - containing_service=None, - input_type=_GETUSERLISTREQUEST, - output_type=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_user__list__pb2._USERLIST, - serialized_options=_b('\202\323\344\223\002-\022+/v1/{resource_name=customers/*/userLists/*}'), - ), - _descriptor.MethodDescriptor( - name='MutateUserLists', - full_name='google.ads.googleads.v1.services.UserListService.MutateUserLists', - index=1, - containing_service=None, - input_type=_MUTATEUSERLISTSREQUEST, - output_type=_MUTATEUSERLISTSRESPONSE, - serialized_options=_b('\202\323\344\223\0023\"./v1/customers/{customer_id=*}/userLists:mutate:\001*'), - ), -]) -_sym_db.RegisterServiceDescriptor(_USERLISTSERVICE) - -DESCRIPTOR.services_by_name['UserListService'] = _USERLISTSERVICE - -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/services/user_list_service_pb2_grpc.py b/google/ads/google_ads/v1/proto/services/user_list_service_pb2_grpc.py deleted file mode 100644 index a13d30897..000000000 --- a/google/ads/google_ads/v1/proto/services/user_list_service_pb2_grpc.py +++ /dev/null @@ -1,68 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -import grpc - -from google.ads.google_ads.v1.proto.resources import user_list_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_user__list__pb2 -from google.ads.google_ads.v1.proto.services import user_list_service_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_user__list__service__pb2 - - -class UserListServiceStub(object): - """Proto file describing the User List service. - - Service to manage user lists. - """ - - def __init__(self, channel): - """Constructor. - - Args: - channel: A grpc.Channel. - """ - self.GetUserList = channel.unary_unary( - '/google.ads.googleads.v1.services.UserListService/GetUserList', - request_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_user__list__service__pb2.GetUserListRequest.SerializeToString, - response_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_user__list__pb2.UserList.FromString, - ) - self.MutateUserLists = channel.unary_unary( - '/google.ads.googleads.v1.services.UserListService/MutateUserLists', - request_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_user__list__service__pb2.MutateUserListsRequest.SerializeToString, - response_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_user__list__service__pb2.MutateUserListsResponse.FromString, - ) - - -class UserListServiceServicer(object): - """Proto file describing the User List service. - - Service to manage user lists. - """ - - def GetUserList(self, request, context): - """Returns the requested user list. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def MutateUserLists(self, request, context): - """Creates or updates user lists. Operation statuses are returned. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - -def add_UserListServiceServicer_to_server(servicer, server): - rpc_method_handlers = { - 'GetUserList': grpc.unary_unary_rpc_method_handler( - servicer.GetUserList, - request_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_user__list__service__pb2.GetUserListRequest.FromString, - response_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_user__list__pb2.UserList.SerializeToString, - ), - 'MutateUserLists': grpc.unary_unary_rpc_method_handler( - servicer.MutateUserLists, - request_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_user__list__service__pb2.MutateUserListsRequest.FromString, - response_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_user__list__service__pb2.MutateUserListsResponse.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'google.ads.googleads.v1.services.UserListService', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) diff --git a/google/ads/google_ads/v1/proto/services/video_service_pb2.py b/google/ads/google_ads/v1/proto/services/video_service_pb2.py deleted file mode 100644 index dc11ce2ec..000000000 --- a/google/ads/google_ads/v1/proto/services/video_service_pb2.py +++ /dev/null @@ -1,107 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/services/video_service.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.ads.google_ads.v1.proto.resources import video_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_video__pb2 -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/services/video_service.proto', - package='google.ads.googleads.v1.services', - syntax='proto3', - serialized_options=_b('\n$com.google.ads.googleads.v1.servicesB\021VideoServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v1/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V1.Services\312\002 Google\\Ads\\GoogleAds\\V1\\Services\352\002$Google::Ads::GoogleAds::V1::Services'), - serialized_pb=_b('\n:google/ads/googleads_v1/proto/services/video_service.proto\x12 google.ads.googleads.v1.services\x1a\x33google/ads/googleads_v1/proto/resources/video.proto\x1a\x1cgoogle/api/annotations.proto\"(\n\x0fGetVideoRequest\x12\x15\n\rresource_name\x18\x01 \x01(\t2\xaa\x01\n\x0cVideoService\x12\x99\x01\n\x08GetVideo\x12\x31.google.ads.googleads.v1.services.GetVideoRequest\x1a(.google.ads.googleads.v1.resources.Video\"0\x82\xd3\xe4\x93\x02*\x12(/v1/{resource_name=customers/*/videos/*}B\xf8\x01\n$com.google.ads.googleads.v1.servicesB\x11VideoServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v1/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V1.Services\xca\x02 Google\\Ads\\GoogleAds\\V1\\Services\xea\x02$Google::Ads::GoogleAds::V1::Servicesb\x06proto3') - , - dependencies=[google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_video__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) - - - - -_GETVIDEOREQUEST = _descriptor.Descriptor( - name='GetVideoRequest', - full_name='google.ads.googleads.v1.services.GetVideoRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='resource_name', full_name='google.ads.googleads.v1.services.GetVideoRequest.resource_name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=179, - serialized_end=219, -) - -DESCRIPTOR.message_types_by_name['GetVideoRequest'] = _GETVIDEOREQUEST -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -GetVideoRequest = _reflection.GeneratedProtocolMessageType('GetVideoRequest', (_message.Message,), dict( - DESCRIPTOR = _GETVIDEOREQUEST, - __module__ = 'google.ads.googleads_v1.proto.services.video_service_pb2' - , - __doc__ = """Request message for - [VideoService.GetVideo][google.ads.googleads.v1.services.VideoService.GetVideo]. - - - Attributes: - resource_name: - The resource name of the video to fetch. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.GetVideoRequest) - )) -_sym_db.RegisterMessage(GetVideoRequest) - - -DESCRIPTOR._options = None - -_VIDEOSERVICE = _descriptor.ServiceDescriptor( - name='VideoService', - full_name='google.ads.googleads.v1.services.VideoService', - file=DESCRIPTOR, - index=0, - serialized_options=None, - serialized_start=222, - serialized_end=392, - methods=[ - _descriptor.MethodDescriptor( - name='GetVideo', - full_name='google.ads.googleads.v1.services.VideoService.GetVideo', - index=0, - containing_service=None, - input_type=_GETVIDEOREQUEST, - output_type=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_video__pb2._VIDEO, - serialized_options=_b('\202\323\344\223\002*\022(/v1/{resource_name=customers/*/videos/*}'), - ), -]) -_sym_db.RegisterServiceDescriptor(_VIDEOSERVICE) - -DESCRIPTOR.services_by_name['VideoService'] = _VIDEOSERVICE - -# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/services/video_service_pb2_grpc.py b/google/ads/google_ads/v1/proto/services/video_service_pb2_grpc.py deleted file mode 100644 index 59e5fef4a..000000000 --- a/google/ads/google_ads/v1/proto/services/video_service_pb2_grpc.py +++ /dev/null @@ -1,51 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -import grpc - -from google.ads.google_ads.v1.proto.resources import video_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_video__pb2 -from google.ads.google_ads.v1.proto.services import video_service_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_video__service__pb2 - - -class VideoServiceStub(object): - """Proto file describing the Video service. - - Service to manage videos. - """ - - def __init__(self, channel): - """Constructor. - - Args: - channel: A grpc.Channel. - """ - self.GetVideo = channel.unary_unary( - '/google.ads.googleads.v1.services.VideoService/GetVideo', - request_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_video__service__pb2.GetVideoRequest.SerializeToString, - response_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_video__pb2.Video.FromString, - ) - - -class VideoServiceServicer(object): - """Proto file describing the Video service. - - Service to manage videos. - """ - - def GetVideo(self, request, context): - """Returns the requested video in full detail. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - -def add_VideoServiceServicer_to_server(servicer, server): - rpc_method_handlers = { - 'GetVideo': grpc.unary_unary_rpc_method_handler( - servicer.GetVideo, - request_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_video__service__pb2.GetVideoRequest.FromString, - response_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_video__pb2.Video.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'google.ads.googleads.v1.services.VideoService', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) diff --git a/google/ads/google_ads/v1/services/account_budget_proposal_service_client.py b/google/ads/google_ads/v1/services/account_budget_proposal_service_client.py deleted file mode 100644 index 7dc861bf6..000000000 --- a/google/ads/google_ads/v1/services/account_budget_proposal_service_client.py +++ /dev/null @@ -1,290 +0,0 @@ -# -*- coding: utf-8 -*- -# -# 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. -"""Accesses the google.ads.googleads.v1.services AccountBudgetProposalService API.""" - -import pkg_resources -import warnings - -from google.oauth2 import service_account -import google.api_core.gapic_v1.client_info -import google.api_core.gapic_v1.config -import google.api_core.gapic_v1.method -import google.api_core.grpc_helpers -import google.api_core.path_template - -from google.ads.google_ads.v1.services import account_budget_proposal_service_client_config -from google.ads.google_ads.v1.services.transports import account_budget_proposal_service_grpc_transport -from google.ads.google_ads.v1.proto.services import account_budget_proposal_service_pb2 - -_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( - 'google-ads', ).version - - -class AccountBudgetProposalServiceClient(object): - """ - A service for managing account-level budgets via proposals. - - A proposal is a request to create a new budget or make changes to an - existing one. - - Reads for account-level budgets managed by these proposals will be - supported in a future version. Please use BudgetOrderService until then: - https://developers.google.com/adwords/api/docs/guides/budget-order - - Mutates: - The CREATE operation creates a new proposal. - UPDATE operations aren't supported. - The REMOVE operation cancels a pending proposal. - """ - - SERVICE_ADDRESS = 'googleads.googleapis.com:443' - """The default address of the service.""" - - # The name of the interface for this client. This is the key used to - # find the method configuration in the client_config dictionary. - _INTERFACE_NAME = 'google.ads.googleads.v1.services.AccountBudgetProposalService' - - @classmethod - def from_service_account_file(cls, filename, *args, **kwargs): - """Creates an instance of this client using the provided credentials - file. - - Args: - filename (str): The path to the service account private key json - file. - args: Additional arguments to pass to the constructor. - kwargs: Additional arguments to pass to the constructor. - - Returns: - AccountBudgetProposalServiceClient: The constructed client. - """ - credentials = service_account.Credentials.from_service_account_file( - filename) - kwargs['credentials'] = credentials - return cls(*args, **kwargs) - - from_service_account_json = from_service_account_file - - @classmethod - def account_budget_proposal_path(cls, customer, account_budget_proposal): - """Return a fully-qualified account_budget_proposal string.""" - return google.api_core.path_template.expand( - 'customers/{customer}/accountBudgetProposals/{account_budget_proposal}', - customer=customer, - account_budget_proposal=account_budget_proposal, - ) - - def __init__(self, - transport=None, - channel=None, - credentials=None, - client_config=None, - client_info=None): - """Constructor. - - Args: - transport (Union[~.AccountBudgetProposalServiceGrpcTransport, - Callable[[~.Credentials, type], ~.AccountBudgetProposalServiceGrpcTransport]): A transport - instance, responsible for actually making the API calls. - The default transport uses the gRPC protocol. - This argument may also be a callable which returns a - transport instance. Callables will be sent the credentials - as the first argument and the default transport class as - the second argument. - channel (grpc.Channel): DEPRECATED. A ``Channel`` instance - through which to make calls. This argument is mutually exclusive - with ``credentials``; providing both will raise an exception. - credentials (google.auth.credentials.Credentials): The - authorization credentials to attach to requests. These - credentials identify this application to the service. If none - are specified, the client will attempt to ascertain the - credentials from the environment. - This argument is mutually exclusive with providing a - transport instance to ``transport``; doing so will raise - an exception. - client_config (dict): DEPRECATED. A dictionary of call options for - each method. If not specified, the default configuration is used. - client_info (google.api_core.gapic_v1.client_info.ClientInfo): - The client info used to send a user-agent string along with - API requests. If ``None``, then default info will be used. - Generally, you only need to set this if you're developing - your own client library. - """ - # Raise deprecation warnings for things we want to go away. - if client_config is not None: - warnings.warn( - 'The `client_config` argument is deprecated.', - PendingDeprecationWarning, - stacklevel=2) - else: - client_config = account_budget_proposal_service_client_config.config - - if channel: - warnings.warn( - 'The `channel` argument is deprecated; use ' - '`transport` instead.', - PendingDeprecationWarning, - stacklevel=2) - - # Instantiate the transport. - # The transport is responsible for handling serialization and - # deserialization and actually sending data to the service. - if transport: - if callable(transport): - self.transport = transport( - credentials=credentials, - default_class=account_budget_proposal_service_grpc_transport - .AccountBudgetProposalServiceGrpcTransport, - ) - else: - if credentials: - raise ValueError( - 'Received both a transport instance and ' - 'credentials; these are mutually exclusive.') - self.transport = transport - else: - self.transport = account_budget_proposal_service_grpc_transport.AccountBudgetProposalServiceGrpcTransport( - address=self.SERVICE_ADDRESS, - channel=channel, - credentials=credentials, - ) - - if client_info is None: - client_info = google.api_core.gapic_v1.client_info.ClientInfo( - gapic_version=_GAPIC_LIBRARY_VERSION, ) - else: - client_info.gapic_version = _GAPIC_LIBRARY_VERSION - self._client_info = client_info - - # Parse out the default settings for retry and timeout for each RPC - # from the client configuration. - # (Ordinarily, these are the defaults specified in the `*_config.py` - # file next to this one.) - self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( - client_config['interfaces'][self._INTERFACE_NAME], ) - - # Save a dictionary of cached API call functions. - # These are the actual callables which invoke the proper - # transport methods, wrapped with `wrap_method` to add retry, - # timeout, and the like. - self._inner_api_calls = {} - - # Service calls - def get_account_budget_proposal( - self, - resource_name, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): - """ - Returns an account-level budget proposal in full detail. - - Args: - resource_name (str): The resource name of the account-level budget proposal to fetch. - retry (Optional[google.api_core.retry.Retry]): A retry object used - to retry requests. If ``None`` is specified, requests will not - be retried. - timeout (Optional[float]): The amount of time, in seconds, to wait - for the request to complete. Note that if ``retry`` is - specified, the timeout applies to each individual attempt. - metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata - that is provided to the method. - - Returns: - A :class:`~google.ads.googleads_v1.types.AccountBudgetProposal` instance. - - Raises: - google.api_core.exceptions.GoogleAPICallError: If the request - failed for any reason. - google.api_core.exceptions.RetryError: If the request failed due - to a retryable error and retry attempts failed. - ValueError: If the parameters are invalid. - """ - # Wrap the transport method to add retry and timeout logic. - if 'get_account_budget_proposal' not in self._inner_api_calls: - self._inner_api_calls[ - 'get_account_budget_proposal'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.get_account_budget_proposal, - default_retry=self. - _method_configs['GetAccountBudgetProposal'].retry, - default_timeout=self. - _method_configs['GetAccountBudgetProposal'].timeout, - client_info=self._client_info, - ) - - request = account_budget_proposal_service_pb2.GetAccountBudgetProposalRequest( - resource_name=resource_name, ) - return self._inner_api_calls['get_account_budget_proposal']( - request, retry=retry, timeout=timeout, metadata=metadata) - - def mutate_account_budget_proposal( - self, - customer_id, - operation_, - validate_only=None, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): - """ - Creates, updates, or removes account budget proposals. Operation statuses - are returned. - - Args: - customer_id (str): The ID of the customer. - operation_ (Union[dict, ~google.ads.googleads_v1.types.AccountBudgetProposalOperation]): The operation to perform on an individual account-level budget proposal. - - If a dict is provided, it must be of the same form as the protobuf - message :class:`~google.ads.googleads_v1.types.AccountBudgetProposalOperation` - validate_only (bool): If true, the request is validated but not executed. Only errors are - returned, not results. - retry (Optional[google.api_core.retry.Retry]): A retry object used - to retry requests. If ``None`` is specified, requests will not - be retried. - timeout (Optional[float]): The amount of time, in seconds, to wait - for the request to complete. Note that if ``retry`` is - specified, the timeout applies to each individual attempt. - metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata - that is provided to the method. - - Returns: - A :class:`~google.ads.googleads_v1.types.MutateAccountBudgetProposalResponse` instance. - - Raises: - google.api_core.exceptions.GoogleAPICallError: If the request - failed for any reason. - google.api_core.exceptions.RetryError: If the request failed due - to a retryable error and retry attempts failed. - ValueError: If the parameters are invalid. - """ - # Wrap the transport method to add retry and timeout logic. - if 'mutate_account_budget_proposal' not in self._inner_api_calls: - self._inner_api_calls[ - 'mutate_account_budget_proposal'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.mutate_account_budget_proposal, - default_retry=self. - _method_configs['MutateAccountBudgetProposal'].retry, - default_timeout=self. - _method_configs['MutateAccountBudgetProposal'].timeout, - client_info=self._client_info, - ) - - request = account_budget_proposal_service_pb2.MutateAccountBudgetProposalRequest( - customer_id=customer_id, - operation=operation_, - validate_only=validate_only, - ) - return self._inner_api_calls['mutate_account_budget_proposal']( - request, retry=retry, timeout=timeout, metadata=metadata) diff --git a/google/ads/google_ads/v1/services/account_budget_proposal_service_client_config.py b/google/ads/google_ads/v1/services/account_budget_proposal_service_client_config.py deleted file mode 100644 index 048cc1933..000000000 --- a/google/ads/google_ads/v1/services/account_budget_proposal_service_client_config.py +++ /dev/null @@ -1,33 +0,0 @@ -config = { - "interfaces": { - "google.ads.googleads.v1.services.AccountBudgetProposalService": { - "retry_codes": { - "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], - "non_idempotent": [] - }, - "retry_params": { - "default": { - "initial_retry_delay_millis": 5000, - "retry_delay_multiplier": 1.3, - "max_retry_delay_millis": 60000, - "initial_rpc_timeout_millis": 3600000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 3600000, - "total_timeout_millis": 3600000 - } - }, - "methods": { - "GetAccountBudgetProposal": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default" - }, - "MutateAccountBudgetProposal": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default" - } - } - } - } -} diff --git a/google/ads/google_ads/v1/services/account_budget_service_client_config.py b/google/ads/google_ads/v1/services/account_budget_service_client_config.py deleted file mode 100644 index 8f501e631..000000000 --- a/google/ads/google_ads/v1/services/account_budget_service_client_config.py +++ /dev/null @@ -1,28 +0,0 @@ -config = { - "interfaces": { - "google.ads.googleads.v1.services.AccountBudgetService": { - "retry_codes": { - "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], - "non_idempotent": [] - }, - "retry_params": { - "default": { - "initial_retry_delay_millis": 5000, - "retry_delay_multiplier": 1.3, - "max_retry_delay_millis": 60000, - "initial_rpc_timeout_millis": 3600000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 3600000, - "total_timeout_millis": 3600000 - } - }, - "methods": { - "GetAccountBudget": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default" - } - } - } - } -} diff --git a/google/ads/google_ads/v1/services/ad_group_ad_label_service_client.py b/google/ads/google_ads/v1/services/ad_group_ad_label_service_client.py deleted file mode 100644 index 7c563cdd2..000000000 --- a/google/ads/google_ads/v1/services/ad_group_ad_label_service_client.py +++ /dev/null @@ -1,281 +0,0 @@ -# -*- coding: utf-8 -*- -# -# 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. -"""Accesses the google.ads.googleads.v1.services AdGroupAdLabelService API.""" - -import pkg_resources -import warnings - -from google.oauth2 import service_account -import google.api_core.gapic_v1.client_info -import google.api_core.gapic_v1.config -import google.api_core.gapic_v1.method -import google.api_core.grpc_helpers -import google.api_core.path_template - -from google.ads.google_ads.v1.services import ad_group_ad_label_service_client_config -from google.ads.google_ads.v1.services.transports import ad_group_ad_label_service_grpc_transport -from google.ads.google_ads.v1.proto.services import ad_group_ad_label_service_pb2 - -_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( - 'google-ads', ).version - - -class AdGroupAdLabelServiceClient(object): - """Service to manage labels on ad group ads.""" - - SERVICE_ADDRESS = 'googleads.googleapis.com:443' - """The default address of the service.""" - - # The name of the interface for this client. This is the key used to - # find the method configuration in the client_config dictionary. - _INTERFACE_NAME = 'google.ads.googleads.v1.services.AdGroupAdLabelService' - - @classmethod - def from_service_account_file(cls, filename, *args, **kwargs): - """Creates an instance of this client using the provided credentials - file. - - Args: - filename (str): The path to the service account private key json - file. - args: Additional arguments to pass to the constructor. - kwargs: Additional arguments to pass to the constructor. - - Returns: - AdGroupAdLabelServiceClient: The constructed client. - """ - credentials = service_account.Credentials.from_service_account_file( - filename) - kwargs['credentials'] = credentials - return cls(*args, **kwargs) - - from_service_account_json = from_service_account_file - - @classmethod - def ad_group_ad_label_path(cls, customer, ad_group_ad_label): - """Return a fully-qualified ad_group_ad_label string.""" - return google.api_core.path_template.expand( - 'customers/{customer}/adGroupAdLabels/{ad_group_ad_label}', - customer=customer, - ad_group_ad_label=ad_group_ad_label, - ) - - def __init__(self, - transport=None, - channel=None, - credentials=None, - client_config=None, - client_info=None): - """Constructor. - - Args: - transport (Union[~.AdGroupAdLabelServiceGrpcTransport, - Callable[[~.Credentials, type], ~.AdGroupAdLabelServiceGrpcTransport]): A transport - instance, responsible for actually making the API calls. - The default transport uses the gRPC protocol. - This argument may also be a callable which returns a - transport instance. Callables will be sent the credentials - as the first argument and the default transport class as - the second argument. - channel (grpc.Channel): DEPRECATED. A ``Channel`` instance - through which to make calls. This argument is mutually exclusive - with ``credentials``; providing both will raise an exception. - credentials (google.auth.credentials.Credentials): The - authorization credentials to attach to requests. These - credentials identify this application to the service. If none - are specified, the client will attempt to ascertain the - credentials from the environment. - This argument is mutually exclusive with providing a - transport instance to ``transport``; doing so will raise - an exception. - client_config (dict): DEPRECATED. A dictionary of call options for - each method. If not specified, the default configuration is used. - client_info (google.api_core.gapic_v1.client_info.ClientInfo): - The client info used to send a user-agent string along with - API requests. If ``None``, then default info will be used. - Generally, you only need to set this if you're developing - your own client library. - """ - # Raise deprecation warnings for things we want to go away. - if client_config is not None: - warnings.warn( - 'The `client_config` argument is deprecated.', - PendingDeprecationWarning, - stacklevel=2) - else: - client_config = ad_group_ad_label_service_client_config.config - - if channel: - warnings.warn( - 'The `channel` argument is deprecated; use ' - '`transport` instead.', - PendingDeprecationWarning, - stacklevel=2) - - # Instantiate the transport. - # The transport is responsible for handling serialization and - # deserialization and actually sending data to the service. - if transport: - if callable(transport): - self.transport = transport( - credentials=credentials, - default_class=ad_group_ad_label_service_grpc_transport. - AdGroupAdLabelServiceGrpcTransport, - ) - else: - if credentials: - raise ValueError( - 'Received both a transport instance and ' - 'credentials; these are mutually exclusive.') - self.transport = transport - else: - self.transport = ad_group_ad_label_service_grpc_transport.AdGroupAdLabelServiceGrpcTransport( - address=self.SERVICE_ADDRESS, - channel=channel, - credentials=credentials, - ) - - if client_info is None: - client_info = google.api_core.gapic_v1.client_info.ClientInfo( - gapic_version=_GAPIC_LIBRARY_VERSION, ) - else: - client_info.gapic_version = _GAPIC_LIBRARY_VERSION - self._client_info = client_info - - # Parse out the default settings for retry and timeout for each RPC - # from the client configuration. - # (Ordinarily, these are the defaults specified in the `*_config.py` - # file next to this one.) - self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( - client_config['interfaces'][self._INTERFACE_NAME], ) - - # Save a dictionary of cached API call functions. - # These are the actual callables which invoke the proper - # transport methods, wrapped with `wrap_method` to add retry, - # timeout, and the like. - self._inner_api_calls = {} - - # Service calls - def get_ad_group_ad_label(self, - resource_name, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): - """ - Returns the requested ad group ad label in full detail. - - Args: - resource_name (str): The resource name of the ad group ad label to fetch. - retry (Optional[google.api_core.retry.Retry]): A retry object used - to retry requests. If ``None`` is specified, requests will not - be retried. - timeout (Optional[float]): The amount of time, in seconds, to wait - for the request to complete. Note that if ``retry`` is - specified, the timeout applies to each individual attempt. - metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata - that is provided to the method. - - Returns: - A :class:`~google.ads.googleads_v1.types.AdGroupAdLabel` instance. - - Raises: - google.api_core.exceptions.GoogleAPICallError: If the request - failed for any reason. - google.api_core.exceptions.RetryError: If the request failed due - to a retryable error and retry attempts failed. - ValueError: If the parameters are invalid. - """ - # Wrap the transport method to add retry and timeout logic. - if 'get_ad_group_ad_label' not in self._inner_api_calls: - self._inner_api_calls[ - 'get_ad_group_ad_label'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.get_ad_group_ad_label, - default_retry=self._method_configs['GetAdGroupAdLabel']. - retry, - default_timeout=self._method_configs['GetAdGroupAdLabel']. - timeout, - client_info=self._client_info, - ) - - request = ad_group_ad_label_service_pb2.GetAdGroupAdLabelRequest( - resource_name=resource_name, ) - return self._inner_api_calls['get_ad_group_ad_label']( - request, retry=retry, timeout=timeout, metadata=metadata) - - def mutate_ad_group_ad_labels( - self, - customer_id, - operations, - partial_failure=None, - validate_only=None, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): - """ - Creates and removes ad group ad labels. - Operation statuses are returned. - - Args: - customer_id (str): ID of the customer whose ad group ad labels are being modified. - operations (list[Union[dict, ~google.ads.googleads_v1.types.AdGroupAdLabelOperation]]): The list of operations to perform on ad group ad labels. - - If a dict is provided, it must be of the same form as the protobuf - message :class:`~google.ads.googleads_v1.types.AdGroupAdLabelOperation` - partial_failure (bool): If true, successful operations will be carried out and invalid - operations will return errors. If false, all operations will be carried - out in one transaction if and only if they are all valid. - Default is false. - validate_only (bool): If true, the request is validated but not executed. Only errors are - returned, not results. - retry (Optional[google.api_core.retry.Retry]): A retry object used - to retry requests. If ``None`` is specified, requests will not - be retried. - timeout (Optional[float]): The amount of time, in seconds, to wait - for the request to complete. Note that if ``retry`` is - specified, the timeout applies to each individual attempt. - metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata - that is provided to the method. - - Returns: - A :class:`~google.ads.googleads_v1.types.MutateAdGroupAdLabelsResponse` instance. - - Raises: - google.api_core.exceptions.GoogleAPICallError: If the request - failed for any reason. - google.api_core.exceptions.RetryError: If the request failed due - to a retryable error and retry attempts failed. - ValueError: If the parameters are invalid. - """ - # Wrap the transport method to add retry and timeout logic. - if 'mutate_ad_group_ad_labels' not in self._inner_api_calls: - self._inner_api_calls[ - 'mutate_ad_group_ad_labels'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.mutate_ad_group_ad_labels, - default_retry=self. - _method_configs['MutateAdGroupAdLabels'].retry, - default_timeout=self. - _method_configs['MutateAdGroupAdLabels'].timeout, - client_info=self._client_info, - ) - - request = ad_group_ad_label_service_pb2.MutateAdGroupAdLabelsRequest( - customer_id=customer_id, - operations=operations, - partial_failure=partial_failure, - validate_only=validate_only, - ) - return self._inner_api_calls['mutate_ad_group_ad_labels']( - request, retry=retry, timeout=timeout, metadata=metadata) diff --git a/google/ads/google_ads/v1/services/ad_group_ad_label_service_client_config.py b/google/ads/google_ads/v1/services/ad_group_ad_label_service_client_config.py deleted file mode 100644 index 6bf674782..000000000 --- a/google/ads/google_ads/v1/services/ad_group_ad_label_service_client_config.py +++ /dev/null @@ -1,33 +0,0 @@ -config = { - "interfaces": { - "google.ads.googleads.v1.services.AdGroupAdLabelService": { - "retry_codes": { - "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], - "non_idempotent": [] - }, - "retry_params": { - "default": { - "initial_retry_delay_millis": 5000, - "retry_delay_multiplier": 1.3, - "max_retry_delay_millis": 60000, - "initial_rpc_timeout_millis": 3600000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 3600000, - "total_timeout_millis": 3600000 - } - }, - "methods": { - "GetAdGroupAdLabel": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default" - }, - "MutateAdGroupAdLabels": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default" - } - } - } - } -} diff --git a/google/ads/google_ads/v1/services/ad_group_ad_service_client.py b/google/ads/google_ads/v1/services/ad_group_ad_service_client.py deleted file mode 100644 index 3607e8a09..000000000 --- a/google/ads/google_ads/v1/services/ad_group_ad_service_client.py +++ /dev/null @@ -1,278 +0,0 @@ -# -*- coding: utf-8 -*- -# -# 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. -"""Accesses the google.ads.googleads.v1.services AdGroupAdService API.""" - -import pkg_resources -import warnings - -from google.oauth2 import service_account -import google.api_core.gapic_v1.client_info -import google.api_core.gapic_v1.config -import google.api_core.gapic_v1.method -import google.api_core.grpc_helpers -import google.api_core.path_template - -from google.ads.google_ads.v1.services import ad_group_ad_service_client_config -from google.ads.google_ads.v1.services.transports import ad_group_ad_service_grpc_transport -from google.ads.google_ads.v1.proto.services import ad_group_ad_service_pb2 - -_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( - 'google-ads', ).version - - -class AdGroupAdServiceClient(object): - """Service to manage ads in an ad group.""" - - SERVICE_ADDRESS = 'googleads.googleapis.com:443' - """The default address of the service.""" - - # The name of the interface for this client. This is the key used to - # find the method configuration in the client_config dictionary. - _INTERFACE_NAME = 'google.ads.googleads.v1.services.AdGroupAdService' - - @classmethod - def from_service_account_file(cls, filename, *args, **kwargs): - """Creates an instance of this client using the provided credentials - file. - - Args: - filename (str): The path to the service account private key json - file. - args: Additional arguments to pass to the constructor. - kwargs: Additional arguments to pass to the constructor. - - Returns: - AdGroupAdServiceClient: The constructed client. - """ - credentials = service_account.Credentials.from_service_account_file( - filename) - kwargs['credentials'] = credentials - return cls(*args, **kwargs) - - from_service_account_json = from_service_account_file - - @classmethod - def ad_group_ad_path(cls, customer, ad_group_ad): - """Return a fully-qualified ad_group_ad string.""" - return google.api_core.path_template.expand( - 'customers/{customer}/adGroupAds/{ad_group_ad}', - customer=customer, - ad_group_ad=ad_group_ad, - ) - - def __init__(self, - transport=None, - channel=None, - credentials=None, - client_config=None, - client_info=None): - """Constructor. - - Args: - transport (Union[~.AdGroupAdServiceGrpcTransport, - Callable[[~.Credentials, type], ~.AdGroupAdServiceGrpcTransport]): A transport - instance, responsible for actually making the API calls. - The default transport uses the gRPC protocol. - This argument may also be a callable which returns a - transport instance. Callables will be sent the credentials - as the first argument and the default transport class as - the second argument. - channel (grpc.Channel): DEPRECATED. A ``Channel`` instance - through which to make calls. This argument is mutually exclusive - with ``credentials``; providing both will raise an exception. - credentials (google.auth.credentials.Credentials): The - authorization credentials to attach to requests. These - credentials identify this application to the service. If none - are specified, the client will attempt to ascertain the - credentials from the environment. - This argument is mutually exclusive with providing a - transport instance to ``transport``; doing so will raise - an exception. - client_config (dict): DEPRECATED. A dictionary of call options for - each method. If not specified, the default configuration is used. - client_info (google.api_core.gapic_v1.client_info.ClientInfo): - The client info used to send a user-agent string along with - API requests. If ``None``, then default info will be used. - Generally, you only need to set this if you're developing - your own client library. - """ - # Raise deprecation warnings for things we want to go away. - if client_config is not None: - warnings.warn( - 'The `client_config` argument is deprecated.', - PendingDeprecationWarning, - stacklevel=2) - else: - client_config = ad_group_ad_service_client_config.config - - if channel: - warnings.warn( - 'The `channel` argument is deprecated; use ' - '`transport` instead.', - PendingDeprecationWarning, - stacklevel=2) - - # Instantiate the transport. - # The transport is responsible for handling serialization and - # deserialization and actually sending data to the service. - if transport: - if callable(transport): - self.transport = transport( - credentials=credentials, - default_class=ad_group_ad_service_grpc_transport. - AdGroupAdServiceGrpcTransport, - ) - else: - if credentials: - raise ValueError( - 'Received both a transport instance and ' - 'credentials; these are mutually exclusive.') - self.transport = transport - else: - self.transport = ad_group_ad_service_grpc_transport.AdGroupAdServiceGrpcTransport( - address=self.SERVICE_ADDRESS, - channel=channel, - credentials=credentials, - ) - - if client_info is None: - client_info = google.api_core.gapic_v1.client_info.ClientInfo( - gapic_version=_GAPIC_LIBRARY_VERSION, ) - else: - client_info.gapic_version = _GAPIC_LIBRARY_VERSION - self._client_info = client_info - - # Parse out the default settings for retry and timeout for each RPC - # from the client configuration. - # (Ordinarily, these are the defaults specified in the `*_config.py` - # file next to this one.) - self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( - client_config['interfaces'][self._INTERFACE_NAME], ) - - # Save a dictionary of cached API call functions. - # These are the actual callables which invoke the proper - # transport methods, wrapped with `wrap_method` to add retry, - # timeout, and the like. - self._inner_api_calls = {} - - # Service calls - def get_ad_group_ad(self, - resource_name, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): - """ - Returns the requested ad in full detail. - - Args: - resource_name (str): The resource name of the ad to fetch. - retry (Optional[google.api_core.retry.Retry]): A retry object used - to retry requests. If ``None`` is specified, requests will not - be retried. - timeout (Optional[float]): The amount of time, in seconds, to wait - for the request to complete. Note that if ``retry`` is - specified, the timeout applies to each individual attempt. - metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata - that is provided to the method. - - Returns: - A :class:`~google.ads.googleads_v1.types.AdGroupAd` instance. - - Raises: - google.api_core.exceptions.GoogleAPICallError: If the request - failed for any reason. - google.api_core.exceptions.RetryError: If the request failed due - to a retryable error and retry attempts failed. - ValueError: If the parameters are invalid. - """ - # Wrap the transport method to add retry and timeout logic. - if 'get_ad_group_ad' not in self._inner_api_calls: - self._inner_api_calls[ - 'get_ad_group_ad'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.get_ad_group_ad, - default_retry=self._method_configs['GetAdGroupAd'].retry, - default_timeout=self._method_configs['GetAdGroupAd']. - timeout, - client_info=self._client_info, - ) - - request = ad_group_ad_service_pb2.GetAdGroupAdRequest( - resource_name=resource_name, ) - return self._inner_api_calls['get_ad_group_ad']( - request, retry=retry, timeout=timeout, metadata=metadata) - - def mutate_ad_group_ads(self, - customer_id, - operations, - partial_failure=None, - validate_only=None, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): - """ - Creates, updates, or removes ads. Operation statuses are returned. - - Args: - customer_id (str): The ID of the customer whose ads are being modified. - operations (list[Union[dict, ~google.ads.googleads_v1.types.AdGroupAdOperation]]): The list of operations to perform on individual ads. - - If a dict is provided, it must be of the same form as the protobuf - message :class:`~google.ads.googleads_v1.types.AdGroupAdOperation` - partial_failure (bool): If true, successful operations will be carried out and invalid - operations will return errors. If false, all operations will be carried - out in one transaction if and only if they are all valid. - Default is false. - validate_only (bool): If true, the request is validated but not executed. Only errors are - returned, not results. - retry (Optional[google.api_core.retry.Retry]): A retry object used - to retry requests. If ``None`` is specified, requests will not - be retried. - timeout (Optional[float]): The amount of time, in seconds, to wait - for the request to complete. Note that if ``retry`` is - specified, the timeout applies to each individual attempt. - metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata - that is provided to the method. - - Returns: - A :class:`~google.ads.googleads_v1.types.MutateAdGroupAdsResponse` instance. - - Raises: - google.api_core.exceptions.GoogleAPICallError: If the request - failed for any reason. - google.api_core.exceptions.RetryError: If the request failed due - to a retryable error and retry attempts failed. - ValueError: If the parameters are invalid. - """ - # Wrap the transport method to add retry and timeout logic. - if 'mutate_ad_group_ads' not in self._inner_api_calls: - self._inner_api_calls[ - 'mutate_ad_group_ads'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.mutate_ad_group_ads, - default_retry=self._method_configs['MutateAdGroupAds']. - retry, - default_timeout=self._method_configs['MutateAdGroupAds']. - timeout, - client_info=self._client_info, - ) - - request = ad_group_ad_service_pb2.MutateAdGroupAdsRequest( - customer_id=customer_id, - operations=operations, - partial_failure=partial_failure, - validate_only=validate_only, - ) - return self._inner_api_calls['mutate_ad_group_ads']( - request, retry=retry, timeout=timeout, metadata=metadata) diff --git a/google/ads/google_ads/v1/services/ad_group_ad_service_client_config.py b/google/ads/google_ads/v1/services/ad_group_ad_service_client_config.py deleted file mode 100644 index 03102e40d..000000000 --- a/google/ads/google_ads/v1/services/ad_group_ad_service_client_config.py +++ /dev/null @@ -1,33 +0,0 @@ -config = { - "interfaces": { - "google.ads.googleads.v1.services.AdGroupAdService": { - "retry_codes": { - "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], - "non_idempotent": [] - }, - "retry_params": { - "default": { - "initial_retry_delay_millis": 5000, - "retry_delay_multiplier": 1.3, - "max_retry_delay_millis": 60000, - "initial_rpc_timeout_millis": 3600000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 3600000, - "total_timeout_millis": 3600000 - } - }, - "methods": { - "GetAdGroupAd": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default" - }, - "MutateAdGroupAds": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default" - } - } - } - } -} diff --git a/google/ads/google_ads/v1/services/ad_group_audience_view_service_client_config.py b/google/ads/google_ads/v1/services/ad_group_audience_view_service_client_config.py deleted file mode 100644 index b2a8ac87d..000000000 --- a/google/ads/google_ads/v1/services/ad_group_audience_view_service_client_config.py +++ /dev/null @@ -1,28 +0,0 @@ -config = { - "interfaces": { - "google.ads.googleads.v1.services.AdGroupAudienceViewService": { - "retry_codes": { - "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], - "non_idempotent": [] - }, - "retry_params": { - "default": { - "initial_retry_delay_millis": 5000, - "retry_delay_multiplier": 1.3, - "max_retry_delay_millis": 60000, - "initial_rpc_timeout_millis": 3600000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 3600000, - "total_timeout_millis": 3600000 - } - }, - "methods": { - "GetAdGroupAudienceView": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default" - } - } - } - } -} diff --git a/google/ads/google_ads/v1/services/ad_group_bid_modifier_service_client_config.py b/google/ads/google_ads/v1/services/ad_group_bid_modifier_service_client_config.py deleted file mode 100644 index 248e6db4b..000000000 --- a/google/ads/google_ads/v1/services/ad_group_bid_modifier_service_client_config.py +++ /dev/null @@ -1,33 +0,0 @@ -config = { - "interfaces": { - "google.ads.googleads.v1.services.AdGroupBidModifierService": { - "retry_codes": { - "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], - "non_idempotent": [] - }, - "retry_params": { - "default": { - "initial_retry_delay_millis": 5000, - "retry_delay_multiplier": 1.3, - "max_retry_delay_millis": 60000, - "initial_rpc_timeout_millis": 3600000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 3600000, - "total_timeout_millis": 3600000 - } - }, - "methods": { - "GetAdGroupBidModifier": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default" - }, - "MutateAdGroupBidModifiers": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default" - } - } - } - } -} diff --git a/google/ads/google_ads/v1/services/ad_group_criterion_label_service_client_config.py b/google/ads/google_ads/v1/services/ad_group_criterion_label_service_client_config.py deleted file mode 100644 index 53489c427..000000000 --- a/google/ads/google_ads/v1/services/ad_group_criterion_label_service_client_config.py +++ /dev/null @@ -1,33 +0,0 @@ -config = { - "interfaces": { - "google.ads.googleads.v1.services.AdGroupCriterionLabelService": { - "retry_codes": { - "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], - "non_idempotent": [] - }, - "retry_params": { - "default": { - "initial_retry_delay_millis": 5000, - "retry_delay_multiplier": 1.3, - "max_retry_delay_millis": 60000, - "initial_rpc_timeout_millis": 3600000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 3600000, - "total_timeout_millis": 3600000 - } - }, - "methods": { - "GetAdGroupCriterionLabel": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default" - }, - "MutateAdGroupCriterionLabels": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default" - } - } - } - } -} diff --git a/google/ads/google_ads/v1/services/ad_group_criterion_service_client.py b/google/ads/google_ads/v1/services/ad_group_criterion_service_client.py deleted file mode 100644 index cd28c4b29..000000000 --- a/google/ads/google_ads/v1/services/ad_group_criterion_service_client.py +++ /dev/null @@ -1,280 +0,0 @@ -# -*- coding: utf-8 -*- -# -# 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. -"""Accesses the google.ads.googleads.v1.services AdGroupCriterionService API.""" - -import pkg_resources -import warnings - -from google.oauth2 import service_account -import google.api_core.gapic_v1.client_info -import google.api_core.gapic_v1.config -import google.api_core.gapic_v1.method -import google.api_core.grpc_helpers -import google.api_core.path_template - -from google.ads.google_ads.v1.services import ad_group_criterion_service_client_config -from google.ads.google_ads.v1.services.transports import ad_group_criterion_service_grpc_transport -from google.ads.google_ads.v1.proto.services import ad_group_criterion_service_pb2 - -_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( - 'google-ads', ).version - - -class AdGroupCriterionServiceClient(object): - """Service to manage ad group criteria.""" - - SERVICE_ADDRESS = 'googleads.googleapis.com:443' - """The default address of the service.""" - - # The name of the interface for this client. This is the key used to - # find the method configuration in the client_config dictionary. - _INTERFACE_NAME = 'google.ads.googleads.v1.services.AdGroupCriterionService' - - @classmethod - def from_service_account_file(cls, filename, *args, **kwargs): - """Creates an instance of this client using the provided credentials - file. - - Args: - filename (str): The path to the service account private key json - file. - args: Additional arguments to pass to the constructor. - kwargs: Additional arguments to pass to the constructor. - - Returns: - AdGroupCriterionServiceClient: The constructed client. - """ - credentials = service_account.Credentials.from_service_account_file( - filename) - kwargs['credentials'] = credentials - return cls(*args, **kwargs) - - from_service_account_json = from_service_account_file - - @classmethod - def ad_group_criteria_path(cls, customer, ad_group_criteria): - """Return a fully-qualified ad_group_criteria string.""" - return google.api_core.path_template.expand( - 'customers/{customer}/adGroupCriteria/{ad_group_criteria}', - customer=customer, - ad_group_criteria=ad_group_criteria, - ) - - def __init__(self, - transport=None, - channel=None, - credentials=None, - client_config=None, - client_info=None): - """Constructor. - - Args: - transport (Union[~.AdGroupCriterionServiceGrpcTransport, - Callable[[~.Credentials, type], ~.AdGroupCriterionServiceGrpcTransport]): A transport - instance, responsible for actually making the API calls. - The default transport uses the gRPC protocol. - This argument may also be a callable which returns a - transport instance. Callables will be sent the credentials - as the first argument and the default transport class as - the second argument. - channel (grpc.Channel): DEPRECATED. A ``Channel`` instance - through which to make calls. This argument is mutually exclusive - with ``credentials``; providing both will raise an exception. - credentials (google.auth.credentials.Credentials): The - authorization credentials to attach to requests. These - credentials identify this application to the service. If none - are specified, the client will attempt to ascertain the - credentials from the environment. - This argument is mutually exclusive with providing a - transport instance to ``transport``; doing so will raise - an exception. - client_config (dict): DEPRECATED. A dictionary of call options for - each method. If not specified, the default configuration is used. - client_info (google.api_core.gapic_v1.client_info.ClientInfo): - The client info used to send a user-agent string along with - API requests. If ``None``, then default info will be used. - Generally, you only need to set this if you're developing - your own client library. - """ - # Raise deprecation warnings for things we want to go away. - if client_config is not None: - warnings.warn( - 'The `client_config` argument is deprecated.', - PendingDeprecationWarning, - stacklevel=2) - else: - client_config = ad_group_criterion_service_client_config.config - - if channel: - warnings.warn( - 'The `channel` argument is deprecated; use ' - '`transport` instead.', - PendingDeprecationWarning, - stacklevel=2) - - # Instantiate the transport. - # The transport is responsible for handling serialization and - # deserialization and actually sending data to the service. - if transport: - if callable(transport): - self.transport = transport( - credentials=credentials, - default_class=ad_group_criterion_service_grpc_transport. - AdGroupCriterionServiceGrpcTransport, - ) - else: - if credentials: - raise ValueError( - 'Received both a transport instance and ' - 'credentials; these are mutually exclusive.') - self.transport = transport - else: - self.transport = ad_group_criterion_service_grpc_transport.AdGroupCriterionServiceGrpcTransport( - address=self.SERVICE_ADDRESS, - channel=channel, - credentials=credentials, - ) - - if client_info is None: - client_info = google.api_core.gapic_v1.client_info.ClientInfo( - gapic_version=_GAPIC_LIBRARY_VERSION, ) - else: - client_info.gapic_version = _GAPIC_LIBRARY_VERSION - self._client_info = client_info - - # Parse out the default settings for retry and timeout for each RPC - # from the client configuration. - # (Ordinarily, these are the defaults specified in the `*_config.py` - # file next to this one.) - self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( - client_config['interfaces'][self._INTERFACE_NAME], ) - - # Save a dictionary of cached API call functions. - # These are the actual callables which invoke the proper - # transport methods, wrapped with `wrap_method` to add retry, - # timeout, and the like. - self._inner_api_calls = {} - - # Service calls - def get_ad_group_criterion(self, - resource_name, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): - """ - Returns the requested criterion in full detail. - - Args: - resource_name (str): The resource name of the criterion to fetch. - retry (Optional[google.api_core.retry.Retry]): A retry object used - to retry requests. If ``None`` is specified, requests will not - be retried. - timeout (Optional[float]): The amount of time, in seconds, to wait - for the request to complete. Note that if ``retry`` is - specified, the timeout applies to each individual attempt. - metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata - that is provided to the method. - - Returns: - A :class:`~google.ads.googleads_v1.types.AdGroupCriterion` instance. - - Raises: - google.api_core.exceptions.GoogleAPICallError: If the request - failed for any reason. - google.api_core.exceptions.RetryError: If the request failed due - to a retryable error and retry attempts failed. - ValueError: If the parameters are invalid. - """ - # Wrap the transport method to add retry and timeout logic. - if 'get_ad_group_criterion' not in self._inner_api_calls: - self._inner_api_calls[ - 'get_ad_group_criterion'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.get_ad_group_criterion, - default_retry=self._method_configs['GetAdGroupCriterion']. - retry, - default_timeout=self. - _method_configs['GetAdGroupCriterion'].timeout, - client_info=self._client_info, - ) - - request = ad_group_criterion_service_pb2.GetAdGroupCriterionRequest( - resource_name=resource_name, ) - return self._inner_api_calls['get_ad_group_criterion']( - request, retry=retry, timeout=timeout, metadata=metadata) - - def mutate_ad_group_criteria( - self, - customer_id, - operations, - partial_failure=None, - validate_only=None, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): - """ - Creates, updates, or removes criteria. Operation statuses are returned. - - Args: - customer_id (str): ID of the customer whose criteria are being modified. - operations (list[Union[dict, ~google.ads.googleads_v1.types.AdGroupCriterionOperation]]): The list of operations to perform on individual criteria. - - If a dict is provided, it must be of the same form as the protobuf - message :class:`~google.ads.googleads_v1.types.AdGroupCriterionOperation` - partial_failure (bool): If true, successful operations will be carried out and invalid - operations will return errors. If false, all operations will be carried - out in one transaction if and only if they are all valid. - Default is false. - validate_only (bool): If true, the request is validated but not executed. Only errors are - returned, not results. - retry (Optional[google.api_core.retry.Retry]): A retry object used - to retry requests. If ``None`` is specified, requests will not - be retried. - timeout (Optional[float]): The amount of time, in seconds, to wait - for the request to complete. Note that if ``retry`` is - specified, the timeout applies to each individual attempt. - metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata - that is provided to the method. - - Returns: - A :class:`~google.ads.googleads_v1.types.MutateAdGroupCriteriaResponse` instance. - - Raises: - google.api_core.exceptions.GoogleAPICallError: If the request - failed for any reason. - google.api_core.exceptions.RetryError: If the request failed due - to a retryable error and retry attempts failed. - ValueError: If the parameters are invalid. - """ - # Wrap the transport method to add retry and timeout logic. - if 'mutate_ad_group_criteria' not in self._inner_api_calls: - self._inner_api_calls[ - 'mutate_ad_group_criteria'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.mutate_ad_group_criteria, - default_retry=self. - _method_configs['MutateAdGroupCriteria'].retry, - default_timeout=self. - _method_configs['MutateAdGroupCriteria'].timeout, - client_info=self._client_info, - ) - - request = ad_group_criterion_service_pb2.MutateAdGroupCriteriaRequest( - customer_id=customer_id, - operations=operations, - partial_failure=partial_failure, - validate_only=validate_only, - ) - return self._inner_api_calls['mutate_ad_group_criteria']( - request, retry=retry, timeout=timeout, metadata=metadata) diff --git a/google/ads/google_ads/v1/services/ad_group_criterion_service_client_config.py b/google/ads/google_ads/v1/services/ad_group_criterion_service_client_config.py deleted file mode 100644 index abb369222..000000000 --- a/google/ads/google_ads/v1/services/ad_group_criterion_service_client_config.py +++ /dev/null @@ -1,33 +0,0 @@ -config = { - "interfaces": { - "google.ads.googleads.v1.services.AdGroupCriterionService": { - "retry_codes": { - "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], - "non_idempotent": [] - }, - "retry_params": { - "default": { - "initial_retry_delay_millis": 5000, - "retry_delay_multiplier": 1.3, - "max_retry_delay_millis": 60000, - "initial_rpc_timeout_millis": 3600000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 3600000, - "total_timeout_millis": 3600000 - } - }, - "methods": { - "GetAdGroupCriterion": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default" - }, - "MutateAdGroupCriteria": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default" - } - } - } - } -} diff --git a/google/ads/google_ads/v1/services/ad_group_criterion_simulation_service_client_config.py b/google/ads/google_ads/v1/services/ad_group_criterion_simulation_service_client_config.py deleted file mode 100644 index e787e5e63..000000000 --- a/google/ads/google_ads/v1/services/ad_group_criterion_simulation_service_client_config.py +++ /dev/null @@ -1,28 +0,0 @@ -config = { - "interfaces": { - "google.ads.googleads.v1.services.AdGroupCriterionSimulationService": { - "retry_codes": { - "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], - "non_idempotent": [] - }, - "retry_params": { - "default": { - "initial_retry_delay_millis": 5000, - "retry_delay_multiplier": 1.3, - "max_retry_delay_millis": 60000, - "initial_rpc_timeout_millis": 3600000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 3600000, - "total_timeout_millis": 3600000 - } - }, - "methods": { - "GetAdGroupCriterionSimulation": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default" - } - } - } - } -} diff --git a/google/ads/google_ads/v1/services/ad_group_extension_setting_service_client.py b/google/ads/google_ads/v1/services/ad_group_extension_setting_service_client.py deleted file mode 100644 index c3004473c..000000000 --- a/google/ads/google_ads/v1/services/ad_group_extension_setting_service_client.py +++ /dev/null @@ -1,286 +0,0 @@ -# -*- coding: utf-8 -*- -# -# 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. -"""Accesses the google.ads.googleads.v1.services AdGroupExtensionSettingService API.""" - -import pkg_resources -import warnings - -from google.oauth2 import service_account -import google.api_core.gapic_v1.client_info -import google.api_core.gapic_v1.config -import google.api_core.gapic_v1.method -import google.api_core.grpc_helpers -import google.api_core.path_template - -from google.ads.google_ads.v1.services import ad_group_extension_setting_service_client_config -from google.ads.google_ads.v1.services.transports import ad_group_extension_setting_service_grpc_transport -from google.ads.google_ads.v1.proto.services import ad_group_extension_setting_service_pb2 - -_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( - 'google-ads', ).version - - -class AdGroupExtensionSettingServiceClient(object): - """Service to manage ad group extension settings.""" - - SERVICE_ADDRESS = 'googleads.googleapis.com:443' - """The default address of the service.""" - - # The name of the interface for this client. This is the key used to - # find the method configuration in the client_config dictionary. - _INTERFACE_NAME = 'google.ads.googleads.v1.services.AdGroupExtensionSettingService' - - @classmethod - def from_service_account_file(cls, filename, *args, **kwargs): - """Creates an instance of this client using the provided credentials - file. - - Args: - filename (str): The path to the service account private key json - file. - args: Additional arguments to pass to the constructor. - kwargs: Additional arguments to pass to the constructor. - - Returns: - AdGroupExtensionSettingServiceClient: The constructed client. - """ - credentials = service_account.Credentials.from_service_account_file( - filename) - kwargs['credentials'] = credentials - return cls(*args, **kwargs) - - from_service_account_json = from_service_account_file - - @classmethod - def ad_group_extension_setting_path(cls, customer, - ad_group_extension_setting): - """Return a fully-qualified ad_group_extension_setting string.""" - return google.api_core.path_template.expand( - 'customers/{customer}/adGroupExtensionSettings/{ad_group_extension_setting}', - customer=customer, - ad_group_extension_setting=ad_group_extension_setting, - ) - - def __init__(self, - transport=None, - channel=None, - credentials=None, - client_config=None, - client_info=None): - """Constructor. - - Args: - transport (Union[~.AdGroupExtensionSettingServiceGrpcTransport, - Callable[[~.Credentials, type], ~.AdGroupExtensionSettingServiceGrpcTransport]): A transport - instance, responsible for actually making the API calls. - The default transport uses the gRPC protocol. - This argument may also be a callable which returns a - transport instance. Callables will be sent the credentials - as the first argument and the default transport class as - the second argument. - channel (grpc.Channel): DEPRECATED. A ``Channel`` instance - through which to make calls. This argument is mutually exclusive - with ``credentials``; providing both will raise an exception. - credentials (google.auth.credentials.Credentials): The - authorization credentials to attach to requests. These - credentials identify this application to the service. If none - are specified, the client will attempt to ascertain the - credentials from the environment. - This argument is mutually exclusive with providing a - transport instance to ``transport``; doing so will raise - an exception. - client_config (dict): DEPRECATED. A dictionary of call options for - each method. If not specified, the default configuration is used. - client_info (google.api_core.gapic_v1.client_info.ClientInfo): - The client info used to send a user-agent string along with - API requests. If ``None``, then default info will be used. - Generally, you only need to set this if you're developing - your own client library. - """ - # Raise deprecation warnings for things we want to go away. - if client_config is not None: - warnings.warn( - 'The `client_config` argument is deprecated.', - PendingDeprecationWarning, - stacklevel=2) - else: - client_config = ad_group_extension_setting_service_client_config.config - - if channel: - warnings.warn( - 'The `channel` argument is deprecated; use ' - '`transport` instead.', - PendingDeprecationWarning, - stacklevel=2) - - # Instantiate the transport. - # The transport is responsible for handling serialization and - # deserialization and actually sending data to the service. - if transport: - if callable(transport): - self.transport = transport( - credentials=credentials, - default_class= - ad_group_extension_setting_service_grpc_transport. - AdGroupExtensionSettingServiceGrpcTransport, - ) - else: - if credentials: - raise ValueError( - 'Received both a transport instance and ' - 'credentials; these are mutually exclusive.') - self.transport = transport - else: - self.transport = ad_group_extension_setting_service_grpc_transport.AdGroupExtensionSettingServiceGrpcTransport( - address=self.SERVICE_ADDRESS, - channel=channel, - credentials=credentials, - ) - - if client_info is None: - client_info = google.api_core.gapic_v1.client_info.ClientInfo( - gapic_version=_GAPIC_LIBRARY_VERSION, ) - else: - client_info.gapic_version = _GAPIC_LIBRARY_VERSION - self._client_info = client_info - - # Parse out the default settings for retry and timeout for each RPC - # from the client configuration. - # (Ordinarily, these are the defaults specified in the `*_config.py` - # file next to this one.) - self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( - client_config['interfaces'][self._INTERFACE_NAME], ) - - # Save a dictionary of cached API call functions. - # These are the actual callables which invoke the proper - # transport methods, wrapped with `wrap_method` to add retry, - # timeout, and the like. - self._inner_api_calls = {} - - # Service calls - def get_ad_group_extension_setting( - self, - resource_name, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): - """ - Returns the requested ad group extension setting in full detail. - - Args: - resource_name (str): The resource name of the ad group extension setting to fetch. - retry (Optional[google.api_core.retry.Retry]): A retry object used - to retry requests. If ``None`` is specified, requests will not - be retried. - timeout (Optional[float]): The amount of time, in seconds, to wait - for the request to complete. Note that if ``retry`` is - specified, the timeout applies to each individual attempt. - metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata - that is provided to the method. - - Returns: - A :class:`~google.ads.googleads_v1.types.AdGroupExtensionSetting` instance. - - Raises: - google.api_core.exceptions.GoogleAPICallError: If the request - failed for any reason. - google.api_core.exceptions.RetryError: If the request failed due - to a retryable error and retry attempts failed. - ValueError: If the parameters are invalid. - """ - # Wrap the transport method to add retry and timeout logic. - if 'get_ad_group_extension_setting' not in self._inner_api_calls: - self._inner_api_calls[ - 'get_ad_group_extension_setting'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.get_ad_group_extension_setting, - default_retry=self. - _method_configs['GetAdGroupExtensionSetting'].retry, - default_timeout=self. - _method_configs['GetAdGroupExtensionSetting'].timeout, - client_info=self._client_info, - ) - - request = ad_group_extension_setting_service_pb2.GetAdGroupExtensionSettingRequest( - resource_name=resource_name, ) - return self._inner_api_calls['get_ad_group_extension_setting']( - request, retry=retry, timeout=timeout, metadata=metadata) - - def mutate_ad_group_extension_settings( - self, - customer_id, - operations, - partial_failure=None, - validate_only=None, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): - """ - Creates, updates, or removes ad group extension settings. Operation - statuses are returned. - - Args: - customer_id (str): The ID of the customer whose ad group extension settings are being - modified. - operations (list[Union[dict, ~google.ads.googleads_v1.types.AdGroupExtensionSettingOperation]]): The list of operations to perform on individual ad group extension - settings. - - If a dict is provided, it must be of the same form as the protobuf - message :class:`~google.ads.googleads_v1.types.AdGroupExtensionSettingOperation` - partial_failure (bool): If true, successful operations will be carried out and invalid - operations will return errors. If false, all operations will be carried - out in one transaction if and only if they are all valid. - Default is false. - validate_only (bool): If true, the request is validated but not executed. Only errors are - returned, not results. - retry (Optional[google.api_core.retry.Retry]): A retry object used - to retry requests. If ``None`` is specified, requests will not - be retried. - timeout (Optional[float]): The amount of time, in seconds, to wait - for the request to complete. Note that if ``retry`` is - specified, the timeout applies to each individual attempt. - metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata - that is provided to the method. - - Returns: - A :class:`~google.ads.googleads_v1.types.MutateAdGroupExtensionSettingsResponse` instance. - - Raises: - google.api_core.exceptions.GoogleAPICallError: If the request - failed for any reason. - google.api_core.exceptions.RetryError: If the request failed due - to a retryable error and retry attempts failed. - ValueError: If the parameters are invalid. - """ - # Wrap the transport method to add retry and timeout logic. - if 'mutate_ad_group_extension_settings' not in self._inner_api_calls: - self._inner_api_calls[ - 'mutate_ad_group_extension_settings'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.mutate_ad_group_extension_settings, - default_retry=self. - _method_configs['MutateAdGroupExtensionSettings'].retry, - default_timeout=self. - _method_configs['MutateAdGroupExtensionSettings'].timeout, - client_info=self._client_info, - ) - - request = ad_group_extension_setting_service_pb2.MutateAdGroupExtensionSettingsRequest( - customer_id=customer_id, - operations=operations, - partial_failure=partial_failure, - validate_only=validate_only, - ) - return self._inner_api_calls['mutate_ad_group_extension_settings']( - request, retry=retry, timeout=timeout, metadata=metadata) diff --git a/google/ads/google_ads/v1/services/ad_group_extension_setting_service_client_config.py b/google/ads/google_ads/v1/services/ad_group_extension_setting_service_client_config.py deleted file mode 100644 index a134cbad1..000000000 --- a/google/ads/google_ads/v1/services/ad_group_extension_setting_service_client_config.py +++ /dev/null @@ -1,33 +0,0 @@ -config = { - "interfaces": { - "google.ads.googleads.v1.services.AdGroupExtensionSettingService": { - "retry_codes": { - "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], - "non_idempotent": [] - }, - "retry_params": { - "default": { - "initial_retry_delay_millis": 5000, - "retry_delay_multiplier": 1.3, - "max_retry_delay_millis": 60000, - "initial_rpc_timeout_millis": 3600000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 3600000, - "total_timeout_millis": 3600000 - } - }, - "methods": { - "GetAdGroupExtensionSetting": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default" - }, - "MutateAdGroupExtensionSettings": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default" - } - } - } - } -} diff --git a/google/ads/google_ads/v1/services/ad_group_feed_service_client.py b/google/ads/google_ads/v1/services/ad_group_feed_service_client.py deleted file mode 100644 index c8c51a24d..000000000 --- a/google/ads/google_ads/v1/services/ad_group_feed_service_client.py +++ /dev/null @@ -1,279 +0,0 @@ -# -*- coding: utf-8 -*- -# -# 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. -"""Accesses the google.ads.googleads.v1.services AdGroupFeedService API.""" - -import pkg_resources -import warnings - -from google.oauth2 import service_account -import google.api_core.gapic_v1.client_info -import google.api_core.gapic_v1.config -import google.api_core.gapic_v1.method -import google.api_core.grpc_helpers -import google.api_core.path_template - -from google.ads.google_ads.v1.services import ad_group_feed_service_client_config -from google.ads.google_ads.v1.services.transports import ad_group_feed_service_grpc_transport -from google.ads.google_ads.v1.proto.services import ad_group_feed_service_pb2 - -_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( - 'google-ads', ).version - - -class AdGroupFeedServiceClient(object): - """Service to manage ad group feeds.""" - - SERVICE_ADDRESS = 'googleads.googleapis.com:443' - """The default address of the service.""" - - # The name of the interface for this client. This is the key used to - # find the method configuration in the client_config dictionary. - _INTERFACE_NAME = 'google.ads.googleads.v1.services.AdGroupFeedService' - - @classmethod - def from_service_account_file(cls, filename, *args, **kwargs): - """Creates an instance of this client using the provided credentials - file. - - Args: - filename (str): The path to the service account private key json - file. - args: Additional arguments to pass to the constructor. - kwargs: Additional arguments to pass to the constructor. - - Returns: - AdGroupFeedServiceClient: The constructed client. - """ - credentials = service_account.Credentials.from_service_account_file( - filename) - kwargs['credentials'] = credentials - return cls(*args, **kwargs) - - from_service_account_json = from_service_account_file - - @classmethod - def ad_group_feed_path(cls, customer, ad_group_feed): - """Return a fully-qualified ad_group_feed string.""" - return google.api_core.path_template.expand( - 'customers/{customer}/adGroupFeeds/{ad_group_feed}', - customer=customer, - ad_group_feed=ad_group_feed, - ) - - def __init__(self, - transport=None, - channel=None, - credentials=None, - client_config=None, - client_info=None): - """Constructor. - - Args: - transport (Union[~.AdGroupFeedServiceGrpcTransport, - Callable[[~.Credentials, type], ~.AdGroupFeedServiceGrpcTransport]): A transport - instance, responsible for actually making the API calls. - The default transport uses the gRPC protocol. - This argument may also be a callable which returns a - transport instance. Callables will be sent the credentials - as the first argument and the default transport class as - the second argument. - channel (grpc.Channel): DEPRECATED. A ``Channel`` instance - through which to make calls. This argument is mutually exclusive - with ``credentials``; providing both will raise an exception. - credentials (google.auth.credentials.Credentials): The - authorization credentials to attach to requests. These - credentials identify this application to the service. If none - are specified, the client will attempt to ascertain the - credentials from the environment. - This argument is mutually exclusive with providing a - transport instance to ``transport``; doing so will raise - an exception. - client_config (dict): DEPRECATED. A dictionary of call options for - each method. If not specified, the default configuration is used. - client_info (google.api_core.gapic_v1.client_info.ClientInfo): - The client info used to send a user-agent string along with - API requests. If ``None``, then default info will be used. - Generally, you only need to set this if you're developing - your own client library. - """ - # Raise deprecation warnings for things we want to go away. - if client_config is not None: - warnings.warn( - 'The `client_config` argument is deprecated.', - PendingDeprecationWarning, - stacklevel=2) - else: - client_config = ad_group_feed_service_client_config.config - - if channel: - warnings.warn( - 'The `channel` argument is deprecated; use ' - '`transport` instead.', - PendingDeprecationWarning, - stacklevel=2) - - # Instantiate the transport. - # The transport is responsible for handling serialization and - # deserialization and actually sending data to the service. - if transport: - if callable(transport): - self.transport = transport( - credentials=credentials, - default_class=ad_group_feed_service_grpc_transport. - AdGroupFeedServiceGrpcTransport, - ) - else: - if credentials: - raise ValueError( - 'Received both a transport instance and ' - 'credentials; these are mutually exclusive.') - self.transport = transport - else: - self.transport = ad_group_feed_service_grpc_transport.AdGroupFeedServiceGrpcTransport( - address=self.SERVICE_ADDRESS, - channel=channel, - credentials=credentials, - ) - - if client_info is None: - client_info = google.api_core.gapic_v1.client_info.ClientInfo( - gapic_version=_GAPIC_LIBRARY_VERSION, ) - else: - client_info.gapic_version = _GAPIC_LIBRARY_VERSION - self._client_info = client_info - - # Parse out the default settings for retry and timeout for each RPC - # from the client configuration. - # (Ordinarily, these are the defaults specified in the `*_config.py` - # file next to this one.) - self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( - client_config['interfaces'][self._INTERFACE_NAME], ) - - # Save a dictionary of cached API call functions. - # These are the actual callables which invoke the proper - # transport methods, wrapped with `wrap_method` to add retry, - # timeout, and the like. - self._inner_api_calls = {} - - # Service calls - def get_ad_group_feed(self, - resource_name, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): - """ - Returns the requested ad group feed in full detail. - - Args: - resource_name (str): The resource name of the ad group feed to fetch. - retry (Optional[google.api_core.retry.Retry]): A retry object used - to retry requests. If ``None`` is specified, requests will not - be retried. - timeout (Optional[float]): The amount of time, in seconds, to wait - for the request to complete. Note that if ``retry`` is - specified, the timeout applies to each individual attempt. - metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata - that is provided to the method. - - Returns: - A :class:`~google.ads.googleads_v1.types.AdGroupFeed` instance. - - Raises: - google.api_core.exceptions.GoogleAPICallError: If the request - failed for any reason. - google.api_core.exceptions.RetryError: If the request failed due - to a retryable error and retry attempts failed. - ValueError: If the parameters are invalid. - """ - # Wrap the transport method to add retry and timeout logic. - if 'get_ad_group_feed' not in self._inner_api_calls: - self._inner_api_calls[ - 'get_ad_group_feed'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.get_ad_group_feed, - default_retry=self._method_configs['GetAdGroupFeed'].retry, - default_timeout=self._method_configs['GetAdGroupFeed']. - timeout, - client_info=self._client_info, - ) - - request = ad_group_feed_service_pb2.GetAdGroupFeedRequest( - resource_name=resource_name, ) - return self._inner_api_calls['get_ad_group_feed']( - request, retry=retry, timeout=timeout, metadata=metadata) - - def mutate_ad_group_feeds(self, - customer_id, - operations, - partial_failure=None, - validate_only=None, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): - """ - Creates, updates, or removes ad group feeds. Operation statuses are - returned. - - Args: - customer_id (str): The ID of the customer whose ad group feeds are being modified. - operations (list[Union[dict, ~google.ads.googleads_v1.types.AdGroupFeedOperation]]): The list of operations to perform on individual ad group feeds. - - If a dict is provided, it must be of the same form as the protobuf - message :class:`~google.ads.googleads_v1.types.AdGroupFeedOperation` - partial_failure (bool): If true, successful operations will be carried out and invalid - operations will return errors. If false, all operations will be carried - out in one transaction if and only if they are all valid. - Default is false. - validate_only (bool): If true, the request is validated but not executed. Only errors are - returned, not results. - retry (Optional[google.api_core.retry.Retry]): A retry object used - to retry requests. If ``None`` is specified, requests will not - be retried. - timeout (Optional[float]): The amount of time, in seconds, to wait - for the request to complete. Note that if ``retry`` is - specified, the timeout applies to each individual attempt. - metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata - that is provided to the method. - - Returns: - A :class:`~google.ads.googleads_v1.types.MutateAdGroupFeedsResponse` instance. - - Raises: - google.api_core.exceptions.GoogleAPICallError: If the request - failed for any reason. - google.api_core.exceptions.RetryError: If the request failed due - to a retryable error and retry attempts failed. - ValueError: If the parameters are invalid. - """ - # Wrap the transport method to add retry and timeout logic. - if 'mutate_ad_group_feeds' not in self._inner_api_calls: - self._inner_api_calls[ - 'mutate_ad_group_feeds'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.mutate_ad_group_feeds, - default_retry=self._method_configs['MutateAdGroupFeeds']. - retry, - default_timeout=self._method_configs['MutateAdGroupFeeds']. - timeout, - client_info=self._client_info, - ) - - request = ad_group_feed_service_pb2.MutateAdGroupFeedsRequest( - customer_id=customer_id, - operations=operations, - partial_failure=partial_failure, - validate_only=validate_only, - ) - return self._inner_api_calls['mutate_ad_group_feeds']( - request, retry=retry, timeout=timeout, metadata=metadata) diff --git a/google/ads/google_ads/v1/services/ad_group_feed_service_client_config.py b/google/ads/google_ads/v1/services/ad_group_feed_service_client_config.py deleted file mode 100644 index c4602cc3c..000000000 --- a/google/ads/google_ads/v1/services/ad_group_feed_service_client_config.py +++ /dev/null @@ -1,33 +0,0 @@ -config = { - "interfaces": { - "google.ads.googleads.v1.services.AdGroupFeedService": { - "retry_codes": { - "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], - "non_idempotent": [] - }, - "retry_params": { - "default": { - "initial_retry_delay_millis": 5000, - "retry_delay_multiplier": 1.3, - "max_retry_delay_millis": 60000, - "initial_rpc_timeout_millis": 3600000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 3600000, - "total_timeout_millis": 3600000 - } - }, - "methods": { - "GetAdGroupFeed": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default" - }, - "MutateAdGroupFeeds": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default" - } - } - } - } -} diff --git a/google/ads/google_ads/v1/services/ad_group_label_service_client.py b/google/ads/google_ads/v1/services/ad_group_label_service_client.py deleted file mode 100644 index f2893b71c..000000000 --- a/google/ads/google_ads/v1/services/ad_group_label_service_client.py +++ /dev/null @@ -1,280 +0,0 @@ -# -*- coding: utf-8 -*- -# -# 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. -"""Accesses the google.ads.googleads.v1.services AdGroupLabelService API.""" - -import pkg_resources -import warnings - -from google.oauth2 import service_account -import google.api_core.gapic_v1.client_info -import google.api_core.gapic_v1.config -import google.api_core.gapic_v1.method -import google.api_core.grpc_helpers -import google.api_core.path_template - -from google.ads.google_ads.v1.services import ad_group_label_service_client_config -from google.ads.google_ads.v1.services.transports import ad_group_label_service_grpc_transport -from google.ads.google_ads.v1.proto.services import ad_group_label_service_pb2 - -_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( - 'google-ads', ).version - - -class AdGroupLabelServiceClient(object): - """Service to manage labels on ad groups.""" - - SERVICE_ADDRESS = 'googleads.googleapis.com:443' - """The default address of the service.""" - - # The name of the interface for this client. This is the key used to - # find the method configuration in the client_config dictionary. - _INTERFACE_NAME = 'google.ads.googleads.v1.services.AdGroupLabelService' - - @classmethod - def from_service_account_file(cls, filename, *args, **kwargs): - """Creates an instance of this client using the provided credentials - file. - - Args: - filename (str): The path to the service account private key json - file. - args: Additional arguments to pass to the constructor. - kwargs: Additional arguments to pass to the constructor. - - Returns: - AdGroupLabelServiceClient: The constructed client. - """ - credentials = service_account.Credentials.from_service_account_file( - filename) - kwargs['credentials'] = credentials - return cls(*args, **kwargs) - - from_service_account_json = from_service_account_file - - @classmethod - def ad_group_label_path(cls, customer, ad_group_label): - """Return a fully-qualified ad_group_label string.""" - return google.api_core.path_template.expand( - 'customers/{customer}/adGroupLabels/{ad_group_label}', - customer=customer, - ad_group_label=ad_group_label, - ) - - def __init__(self, - transport=None, - channel=None, - credentials=None, - client_config=None, - client_info=None): - """Constructor. - - Args: - transport (Union[~.AdGroupLabelServiceGrpcTransport, - Callable[[~.Credentials, type], ~.AdGroupLabelServiceGrpcTransport]): A transport - instance, responsible for actually making the API calls. - The default transport uses the gRPC protocol. - This argument may also be a callable which returns a - transport instance. Callables will be sent the credentials - as the first argument and the default transport class as - the second argument. - channel (grpc.Channel): DEPRECATED. A ``Channel`` instance - through which to make calls. This argument is mutually exclusive - with ``credentials``; providing both will raise an exception. - credentials (google.auth.credentials.Credentials): The - authorization credentials to attach to requests. These - credentials identify this application to the service. If none - are specified, the client will attempt to ascertain the - credentials from the environment. - This argument is mutually exclusive with providing a - transport instance to ``transport``; doing so will raise - an exception. - client_config (dict): DEPRECATED. A dictionary of call options for - each method. If not specified, the default configuration is used. - client_info (google.api_core.gapic_v1.client_info.ClientInfo): - The client info used to send a user-agent string along with - API requests. If ``None``, then default info will be used. - Generally, you only need to set this if you're developing - your own client library. - """ - # Raise deprecation warnings for things we want to go away. - if client_config is not None: - warnings.warn( - 'The `client_config` argument is deprecated.', - PendingDeprecationWarning, - stacklevel=2) - else: - client_config = ad_group_label_service_client_config.config - - if channel: - warnings.warn( - 'The `channel` argument is deprecated; use ' - '`transport` instead.', - PendingDeprecationWarning, - stacklevel=2) - - # Instantiate the transport. - # The transport is responsible for handling serialization and - # deserialization and actually sending data to the service. - if transport: - if callable(transport): - self.transport = transport( - credentials=credentials, - default_class=ad_group_label_service_grpc_transport. - AdGroupLabelServiceGrpcTransport, - ) - else: - if credentials: - raise ValueError( - 'Received both a transport instance and ' - 'credentials; these are mutually exclusive.') - self.transport = transport - else: - self.transport = ad_group_label_service_grpc_transport.AdGroupLabelServiceGrpcTransport( - address=self.SERVICE_ADDRESS, - channel=channel, - credentials=credentials, - ) - - if client_info is None: - client_info = google.api_core.gapic_v1.client_info.ClientInfo( - gapic_version=_GAPIC_LIBRARY_VERSION, ) - else: - client_info.gapic_version = _GAPIC_LIBRARY_VERSION - self._client_info = client_info - - # Parse out the default settings for retry and timeout for each RPC - # from the client configuration. - # (Ordinarily, these are the defaults specified in the `*_config.py` - # file next to this one.) - self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( - client_config['interfaces'][self._INTERFACE_NAME], ) - - # Save a dictionary of cached API call functions. - # These are the actual callables which invoke the proper - # transport methods, wrapped with `wrap_method` to add retry, - # timeout, and the like. - self._inner_api_calls = {} - - # Service calls - def get_ad_group_label(self, - resource_name, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): - """ - Returns the requested ad group label in full detail. - - Args: - resource_name (str): The resource name of the ad group label to fetch. - retry (Optional[google.api_core.retry.Retry]): A retry object used - to retry requests. If ``None`` is specified, requests will not - be retried. - timeout (Optional[float]): The amount of time, in seconds, to wait - for the request to complete. Note that if ``retry`` is - specified, the timeout applies to each individual attempt. - metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata - that is provided to the method. - - Returns: - A :class:`~google.ads.googleads_v1.types.AdGroupLabel` instance. - - Raises: - google.api_core.exceptions.GoogleAPICallError: If the request - failed for any reason. - google.api_core.exceptions.RetryError: If the request failed due - to a retryable error and retry attempts failed. - ValueError: If the parameters are invalid. - """ - # Wrap the transport method to add retry and timeout logic. - if 'get_ad_group_label' not in self._inner_api_calls: - self._inner_api_calls[ - 'get_ad_group_label'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.get_ad_group_label, - default_retry=self._method_configs['GetAdGroupLabel']. - retry, - default_timeout=self._method_configs['GetAdGroupLabel']. - timeout, - client_info=self._client_info, - ) - - request = ad_group_label_service_pb2.GetAdGroupLabelRequest( - resource_name=resource_name, ) - return self._inner_api_calls['get_ad_group_label']( - request, retry=retry, timeout=timeout, metadata=metadata) - - def mutate_ad_group_labels(self, - customer_id, - operations, - partial_failure=None, - validate_only=None, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): - """ - Creates and removes ad group labels. - Operation statuses are returned. - - Args: - customer_id (str): ID of the customer whose ad group labels are being modified. - operations (list[Union[dict, ~google.ads.googleads_v1.types.AdGroupLabelOperation]]): The list of operations to perform on ad group labels. - - If a dict is provided, it must be of the same form as the protobuf - message :class:`~google.ads.googleads_v1.types.AdGroupLabelOperation` - partial_failure (bool): If true, successful operations will be carried out and invalid - operations will return errors. If false, all operations will be carried - out in one transaction if and only if they are all valid. - Default is false. - validate_only (bool): If true, the request is validated but not executed. Only errors are - returned, not results. - retry (Optional[google.api_core.retry.Retry]): A retry object used - to retry requests. If ``None`` is specified, requests will not - be retried. - timeout (Optional[float]): The amount of time, in seconds, to wait - for the request to complete. Note that if ``retry`` is - specified, the timeout applies to each individual attempt. - metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata - that is provided to the method. - - Returns: - A :class:`~google.ads.googleads_v1.types.MutateAdGroupLabelsResponse` instance. - - Raises: - google.api_core.exceptions.GoogleAPICallError: If the request - failed for any reason. - google.api_core.exceptions.RetryError: If the request failed due - to a retryable error and retry attempts failed. - ValueError: If the parameters are invalid. - """ - # Wrap the transport method to add retry and timeout logic. - if 'mutate_ad_group_labels' not in self._inner_api_calls: - self._inner_api_calls[ - 'mutate_ad_group_labels'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.mutate_ad_group_labels, - default_retry=self._method_configs['MutateAdGroupLabels']. - retry, - default_timeout=self. - _method_configs['MutateAdGroupLabels'].timeout, - client_info=self._client_info, - ) - - request = ad_group_label_service_pb2.MutateAdGroupLabelsRequest( - customer_id=customer_id, - operations=operations, - partial_failure=partial_failure, - validate_only=validate_only, - ) - return self._inner_api_calls['mutate_ad_group_labels']( - request, retry=retry, timeout=timeout, metadata=metadata) diff --git a/google/ads/google_ads/v1/services/ad_group_label_service_client_config.py b/google/ads/google_ads/v1/services/ad_group_label_service_client_config.py deleted file mode 100644 index 47fe69611..000000000 --- a/google/ads/google_ads/v1/services/ad_group_label_service_client_config.py +++ /dev/null @@ -1,33 +0,0 @@ -config = { - "interfaces": { - "google.ads.googleads.v1.services.AdGroupLabelService": { - "retry_codes": { - "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], - "non_idempotent": [] - }, - "retry_params": { - "default": { - "initial_retry_delay_millis": 5000, - "retry_delay_multiplier": 1.3, - "max_retry_delay_millis": 60000, - "initial_rpc_timeout_millis": 3600000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 3600000, - "total_timeout_millis": 3600000 - } - }, - "methods": { - "GetAdGroupLabel": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default" - }, - "MutateAdGroupLabels": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default" - } - } - } - } -} diff --git a/google/ads/google_ads/v1/services/ad_group_service_client.py b/google/ads/google_ads/v1/services/ad_group_service_client.py deleted file mode 100644 index 81ad3a0b0..000000000 --- a/google/ads/google_ads/v1/services/ad_group_service_client.py +++ /dev/null @@ -1,276 +0,0 @@ -# -*- coding: utf-8 -*- -# -# 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. -"""Accesses the google.ads.googleads.v1.services AdGroupService API.""" - -import pkg_resources -import warnings - -from google.oauth2 import service_account -import google.api_core.gapic_v1.client_info -import google.api_core.gapic_v1.config -import google.api_core.gapic_v1.method -import google.api_core.grpc_helpers -import google.api_core.path_template - -from google.ads.google_ads.v1.services import ad_group_service_client_config -from google.ads.google_ads.v1.services.transports import ad_group_service_grpc_transport -from google.ads.google_ads.v1.proto.services import ad_group_service_pb2 - -_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( - 'google-ads', ).version - - -class AdGroupServiceClient(object): - """Service to manage ad groups.""" - - SERVICE_ADDRESS = 'googleads.googleapis.com:443' - """The default address of the service.""" - - # The name of the interface for this client. This is the key used to - # find the method configuration in the client_config dictionary. - _INTERFACE_NAME = 'google.ads.googleads.v1.services.AdGroupService' - - @classmethod - def from_service_account_file(cls, filename, *args, **kwargs): - """Creates an instance of this client using the provided credentials - file. - - Args: - filename (str): The path to the service account private key json - file. - args: Additional arguments to pass to the constructor. - kwargs: Additional arguments to pass to the constructor. - - Returns: - AdGroupServiceClient: The constructed client. - """ - credentials = service_account.Credentials.from_service_account_file( - filename) - kwargs['credentials'] = credentials - return cls(*args, **kwargs) - - from_service_account_json = from_service_account_file - - @classmethod - def ad_group_path(cls, customer, ad_group): - """Return a fully-qualified ad_group string.""" - return google.api_core.path_template.expand( - 'customers/{customer}/adGroups/{ad_group}', - customer=customer, - ad_group=ad_group, - ) - - def __init__(self, - transport=None, - channel=None, - credentials=None, - client_config=None, - client_info=None): - """Constructor. - - Args: - transport (Union[~.AdGroupServiceGrpcTransport, - Callable[[~.Credentials, type], ~.AdGroupServiceGrpcTransport]): A transport - instance, responsible for actually making the API calls. - The default transport uses the gRPC protocol. - This argument may also be a callable which returns a - transport instance. Callables will be sent the credentials - as the first argument and the default transport class as - the second argument. - channel (grpc.Channel): DEPRECATED. A ``Channel`` instance - through which to make calls. This argument is mutually exclusive - with ``credentials``; providing both will raise an exception. - credentials (google.auth.credentials.Credentials): The - authorization credentials to attach to requests. These - credentials identify this application to the service. If none - are specified, the client will attempt to ascertain the - credentials from the environment. - This argument is mutually exclusive with providing a - transport instance to ``transport``; doing so will raise - an exception. - client_config (dict): DEPRECATED. A dictionary of call options for - each method. If not specified, the default configuration is used. - client_info (google.api_core.gapic_v1.client_info.ClientInfo): - The client info used to send a user-agent string along with - API requests. If ``None``, then default info will be used. - Generally, you only need to set this if you're developing - your own client library. - """ - # Raise deprecation warnings for things we want to go away. - if client_config is not None: - warnings.warn( - 'The `client_config` argument is deprecated.', - PendingDeprecationWarning, - stacklevel=2) - else: - client_config = ad_group_service_client_config.config - - if channel: - warnings.warn( - 'The `channel` argument is deprecated; use ' - '`transport` instead.', - PendingDeprecationWarning, - stacklevel=2) - - # Instantiate the transport. - # The transport is responsible for handling serialization and - # deserialization and actually sending data to the service. - if transport: - if callable(transport): - self.transport = transport( - credentials=credentials, - default_class=ad_group_service_grpc_transport. - AdGroupServiceGrpcTransport, - ) - else: - if credentials: - raise ValueError( - 'Received both a transport instance and ' - 'credentials; these are mutually exclusive.') - self.transport = transport - else: - self.transport = ad_group_service_grpc_transport.AdGroupServiceGrpcTransport( - address=self.SERVICE_ADDRESS, - channel=channel, - credentials=credentials, - ) - - if client_info is None: - client_info = google.api_core.gapic_v1.client_info.ClientInfo( - gapic_version=_GAPIC_LIBRARY_VERSION, ) - else: - client_info.gapic_version = _GAPIC_LIBRARY_VERSION - self._client_info = client_info - - # Parse out the default settings for retry and timeout for each RPC - # from the client configuration. - # (Ordinarily, these are the defaults specified in the `*_config.py` - # file next to this one.) - self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( - client_config['interfaces'][self._INTERFACE_NAME], ) - - # Save a dictionary of cached API call functions. - # These are the actual callables which invoke the proper - # transport methods, wrapped with `wrap_method` to add retry, - # timeout, and the like. - self._inner_api_calls = {} - - # Service calls - def get_ad_group(self, - resource_name, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): - """ - Returns the requested ad group in full detail. - - Args: - resource_name (str): The resource name of the ad group to fetch. - retry (Optional[google.api_core.retry.Retry]): A retry object used - to retry requests. If ``None`` is specified, requests will not - be retried. - timeout (Optional[float]): The amount of time, in seconds, to wait - for the request to complete. Note that if ``retry`` is - specified, the timeout applies to each individual attempt. - metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata - that is provided to the method. - - Returns: - A :class:`~google.ads.googleads_v1.types.AdGroup` instance. - - Raises: - google.api_core.exceptions.GoogleAPICallError: If the request - failed for any reason. - google.api_core.exceptions.RetryError: If the request failed due - to a retryable error and retry attempts failed. - ValueError: If the parameters are invalid. - """ - # Wrap the transport method to add retry and timeout logic. - if 'get_ad_group' not in self._inner_api_calls: - self._inner_api_calls[ - 'get_ad_group'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.get_ad_group, - default_retry=self._method_configs['GetAdGroup'].retry, - default_timeout=self._method_configs['GetAdGroup'].timeout, - client_info=self._client_info, - ) - - request = ad_group_service_pb2.GetAdGroupRequest( - resource_name=resource_name, ) - return self._inner_api_calls['get_ad_group']( - request, retry=retry, timeout=timeout, metadata=metadata) - - def mutate_ad_groups(self, - customer_id, - operations, - partial_failure=None, - validate_only=None, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): - """ - Creates, updates, or removes ad groups. Operation statuses are returned. - - Args: - customer_id (str): The ID of the customer whose ad groups are being modified. - operations (list[Union[dict, ~google.ads.googleads_v1.types.AdGroupOperation]]): The list of operations to perform on individual ad groups. - - If a dict is provided, it must be of the same form as the protobuf - message :class:`~google.ads.googleads_v1.types.AdGroupOperation` - partial_failure (bool): If true, successful operations will be carried out and invalid - operations will return errors. If false, all operations will be carried - out in one transaction if and only if they are all valid. - Default is false. - validate_only (bool): If true, the request is validated but not executed. Only errors are - returned, not results. - retry (Optional[google.api_core.retry.Retry]): A retry object used - to retry requests. If ``None`` is specified, requests will not - be retried. - timeout (Optional[float]): The amount of time, in seconds, to wait - for the request to complete. Note that if ``retry`` is - specified, the timeout applies to each individual attempt. - metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata - that is provided to the method. - - Returns: - A :class:`~google.ads.googleads_v1.types.MutateAdGroupsResponse` instance. - - Raises: - google.api_core.exceptions.GoogleAPICallError: If the request - failed for any reason. - google.api_core.exceptions.RetryError: If the request failed due - to a retryable error and retry attempts failed. - ValueError: If the parameters are invalid. - """ - # Wrap the transport method to add retry and timeout logic. - if 'mutate_ad_groups' not in self._inner_api_calls: - self._inner_api_calls[ - 'mutate_ad_groups'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.mutate_ad_groups, - default_retry=self._method_configs['MutateAdGroups'].retry, - default_timeout=self._method_configs['MutateAdGroups']. - timeout, - client_info=self._client_info, - ) - - request = ad_group_service_pb2.MutateAdGroupsRequest( - customer_id=customer_id, - operations=operations, - partial_failure=partial_failure, - validate_only=validate_only, - ) - return self._inner_api_calls['mutate_ad_groups']( - request, retry=retry, timeout=timeout, metadata=metadata) diff --git a/google/ads/google_ads/v1/services/ad_group_service_client_config.py b/google/ads/google_ads/v1/services/ad_group_service_client_config.py deleted file mode 100644 index d61e57f4b..000000000 --- a/google/ads/google_ads/v1/services/ad_group_service_client_config.py +++ /dev/null @@ -1,33 +0,0 @@ -config = { - "interfaces": { - "google.ads.googleads.v1.services.AdGroupService": { - "retry_codes": { - "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], - "non_idempotent": [] - }, - "retry_params": { - "default": { - "initial_retry_delay_millis": 5000, - "retry_delay_multiplier": 1.3, - "max_retry_delay_millis": 60000, - "initial_rpc_timeout_millis": 3600000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 3600000, - "total_timeout_millis": 3600000 - } - }, - "methods": { - "GetAdGroup": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default" - }, - "MutateAdGroups": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default" - } - } - } - } -} diff --git a/google/ads/google_ads/v1/services/ad_group_simulation_service_client_config.py b/google/ads/google_ads/v1/services/ad_group_simulation_service_client_config.py deleted file mode 100644 index daa2a287a..000000000 --- a/google/ads/google_ads/v1/services/ad_group_simulation_service_client_config.py +++ /dev/null @@ -1,28 +0,0 @@ -config = { - "interfaces": { - "google.ads.googleads.v1.services.AdGroupSimulationService": { - "retry_codes": { - "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], - "non_idempotent": [] - }, - "retry_params": { - "default": { - "initial_retry_delay_millis": 5000, - "retry_delay_multiplier": 1.3, - "max_retry_delay_millis": 60000, - "initial_rpc_timeout_millis": 3600000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 3600000, - "total_timeout_millis": 3600000 - } - }, - "methods": { - "GetAdGroupSimulation": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default" - } - } - } - } -} diff --git a/google/ads/google_ads/v1/services/ad_parameter_service_client.py b/google/ads/google_ads/v1/services/ad_parameter_service_client.py deleted file mode 100644 index 43c6db122..000000000 --- a/google/ads/google_ads/v1/services/ad_parameter_service_client.py +++ /dev/null @@ -1,279 +0,0 @@ -# -*- coding: utf-8 -*- -# -# 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. -"""Accesses the google.ads.googleads.v1.services AdParameterService API.""" - -import pkg_resources -import warnings - -from google.oauth2 import service_account -import google.api_core.gapic_v1.client_info -import google.api_core.gapic_v1.config -import google.api_core.gapic_v1.method -import google.api_core.grpc_helpers -import google.api_core.path_template - -from google.ads.google_ads.v1.services import ad_parameter_service_client_config -from google.ads.google_ads.v1.services.transports import ad_parameter_service_grpc_transport -from google.ads.google_ads.v1.proto.services import ad_parameter_service_pb2 - -_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( - 'google-ads', ).version - - -class AdParameterServiceClient(object): - """Service to manage ad parameters.""" - - SERVICE_ADDRESS = 'googleads.googleapis.com:443' - """The default address of the service.""" - - # The name of the interface for this client. This is the key used to - # find the method configuration in the client_config dictionary. - _INTERFACE_NAME = 'google.ads.googleads.v1.services.AdParameterService' - - @classmethod - def from_service_account_file(cls, filename, *args, **kwargs): - """Creates an instance of this client using the provided credentials - file. - - Args: - filename (str): The path to the service account private key json - file. - args: Additional arguments to pass to the constructor. - kwargs: Additional arguments to pass to the constructor. - - Returns: - AdParameterServiceClient: The constructed client. - """ - credentials = service_account.Credentials.from_service_account_file( - filename) - kwargs['credentials'] = credentials - return cls(*args, **kwargs) - - from_service_account_json = from_service_account_file - - @classmethod - def ad_parameter_path(cls, customer, ad_parameter): - """Return a fully-qualified ad_parameter string.""" - return google.api_core.path_template.expand( - 'customers/{customer}/adParameters/{ad_parameter}', - customer=customer, - ad_parameter=ad_parameter, - ) - - def __init__(self, - transport=None, - channel=None, - credentials=None, - client_config=None, - client_info=None): - """Constructor. - - Args: - transport (Union[~.AdParameterServiceGrpcTransport, - Callable[[~.Credentials, type], ~.AdParameterServiceGrpcTransport]): A transport - instance, responsible for actually making the API calls. - The default transport uses the gRPC protocol. - This argument may also be a callable which returns a - transport instance. Callables will be sent the credentials - as the first argument and the default transport class as - the second argument. - channel (grpc.Channel): DEPRECATED. A ``Channel`` instance - through which to make calls. This argument is mutually exclusive - with ``credentials``; providing both will raise an exception. - credentials (google.auth.credentials.Credentials): The - authorization credentials to attach to requests. These - credentials identify this application to the service. If none - are specified, the client will attempt to ascertain the - credentials from the environment. - This argument is mutually exclusive with providing a - transport instance to ``transport``; doing so will raise - an exception. - client_config (dict): DEPRECATED. A dictionary of call options for - each method. If not specified, the default configuration is used. - client_info (google.api_core.gapic_v1.client_info.ClientInfo): - The client info used to send a user-agent string along with - API requests. If ``None``, then default info will be used. - Generally, you only need to set this if you're developing - your own client library. - """ - # Raise deprecation warnings for things we want to go away. - if client_config is not None: - warnings.warn( - 'The `client_config` argument is deprecated.', - PendingDeprecationWarning, - stacklevel=2) - else: - client_config = ad_parameter_service_client_config.config - - if channel: - warnings.warn( - 'The `channel` argument is deprecated; use ' - '`transport` instead.', - PendingDeprecationWarning, - stacklevel=2) - - # Instantiate the transport. - # The transport is responsible for handling serialization and - # deserialization and actually sending data to the service. - if transport: - if callable(transport): - self.transport = transport( - credentials=credentials, - default_class=ad_parameter_service_grpc_transport. - AdParameterServiceGrpcTransport, - ) - else: - if credentials: - raise ValueError( - 'Received both a transport instance and ' - 'credentials; these are mutually exclusive.') - self.transport = transport - else: - self.transport = ad_parameter_service_grpc_transport.AdParameterServiceGrpcTransport( - address=self.SERVICE_ADDRESS, - channel=channel, - credentials=credentials, - ) - - if client_info is None: - client_info = google.api_core.gapic_v1.client_info.ClientInfo( - gapic_version=_GAPIC_LIBRARY_VERSION, ) - else: - client_info.gapic_version = _GAPIC_LIBRARY_VERSION - self._client_info = client_info - - # Parse out the default settings for retry and timeout for each RPC - # from the client configuration. - # (Ordinarily, these are the defaults specified in the `*_config.py` - # file next to this one.) - self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( - client_config['interfaces'][self._INTERFACE_NAME], ) - - # Save a dictionary of cached API call functions. - # These are the actual callables which invoke the proper - # transport methods, wrapped with `wrap_method` to add retry, - # timeout, and the like. - self._inner_api_calls = {} - - # Service calls - def get_ad_parameter(self, - resource_name, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): - """ - Returns the requested ad parameter in full detail. - - Args: - resource_name (str): The resource name of the ad parameter to fetch. - retry (Optional[google.api_core.retry.Retry]): A retry object used - to retry requests. If ``None`` is specified, requests will not - be retried. - timeout (Optional[float]): The amount of time, in seconds, to wait - for the request to complete. Note that if ``retry`` is - specified, the timeout applies to each individual attempt. - metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata - that is provided to the method. - - Returns: - A :class:`~google.ads.googleads_v1.types.AdParameter` instance. - - Raises: - google.api_core.exceptions.GoogleAPICallError: If the request - failed for any reason. - google.api_core.exceptions.RetryError: If the request failed due - to a retryable error and retry attempts failed. - ValueError: If the parameters are invalid. - """ - # Wrap the transport method to add retry and timeout logic. - if 'get_ad_parameter' not in self._inner_api_calls: - self._inner_api_calls[ - 'get_ad_parameter'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.get_ad_parameter, - default_retry=self._method_configs['GetAdParameter'].retry, - default_timeout=self._method_configs['GetAdParameter']. - timeout, - client_info=self._client_info, - ) - - request = ad_parameter_service_pb2.GetAdParameterRequest( - resource_name=resource_name, ) - return self._inner_api_calls['get_ad_parameter']( - request, retry=retry, timeout=timeout, metadata=metadata) - - def mutate_ad_parameters(self, - customer_id, - operations, - partial_failure=None, - validate_only=None, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): - """ - Creates, updates, or removes ad parameters. Operation statuses are - returned. - - Args: - customer_id (str): The ID of the customer whose ad parameters are being modified. - operations (list[Union[dict, ~google.ads.googleads_v1.types.AdParameterOperation]]): The list of operations to perform on individual ad parameters. - - If a dict is provided, it must be of the same form as the protobuf - message :class:`~google.ads.googleads_v1.types.AdParameterOperation` - partial_failure (bool): If true, successful operations will be carried out and invalid - operations will return errors. If false, all operations will be carried - out in one transaction if and only if they are all valid. - Default is false. - validate_only (bool): If true, the request is validated but not executed. Only errors are - returned, not results. - retry (Optional[google.api_core.retry.Retry]): A retry object used - to retry requests. If ``None`` is specified, requests will not - be retried. - timeout (Optional[float]): The amount of time, in seconds, to wait - for the request to complete. Note that if ``retry`` is - specified, the timeout applies to each individual attempt. - metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata - that is provided to the method. - - Returns: - A :class:`~google.ads.googleads_v1.types.MutateAdParametersResponse` instance. - - Raises: - google.api_core.exceptions.GoogleAPICallError: If the request - failed for any reason. - google.api_core.exceptions.RetryError: If the request failed due - to a retryable error and retry attempts failed. - ValueError: If the parameters are invalid. - """ - # Wrap the transport method to add retry and timeout logic. - if 'mutate_ad_parameters' not in self._inner_api_calls: - self._inner_api_calls[ - 'mutate_ad_parameters'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.mutate_ad_parameters, - default_retry=self._method_configs['MutateAdParameters']. - retry, - default_timeout=self._method_configs['MutateAdParameters']. - timeout, - client_info=self._client_info, - ) - - request = ad_parameter_service_pb2.MutateAdParametersRequest( - customer_id=customer_id, - operations=operations, - partial_failure=partial_failure, - validate_only=validate_only, - ) - return self._inner_api_calls['mutate_ad_parameters']( - request, retry=retry, timeout=timeout, metadata=metadata) diff --git a/google/ads/google_ads/v1/services/ad_parameter_service_client_config.py b/google/ads/google_ads/v1/services/ad_parameter_service_client_config.py deleted file mode 100644 index eeae651c8..000000000 --- a/google/ads/google_ads/v1/services/ad_parameter_service_client_config.py +++ /dev/null @@ -1,33 +0,0 @@ -config = { - "interfaces": { - "google.ads.googleads.v1.services.AdParameterService": { - "retry_codes": { - "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], - "non_idempotent": [] - }, - "retry_params": { - "default": { - "initial_retry_delay_millis": 5000, - "retry_delay_multiplier": 1.3, - "max_retry_delay_millis": 60000, - "initial_rpc_timeout_millis": 3600000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 3600000, - "total_timeout_millis": 3600000 - } - }, - "methods": { - "GetAdParameter": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default" - }, - "MutateAdParameters": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default" - } - } - } - } -} diff --git a/google/ads/google_ads/v1/services/ad_schedule_view_service_client_config.py b/google/ads/google_ads/v1/services/ad_schedule_view_service_client_config.py deleted file mode 100644 index d8f86db9b..000000000 --- a/google/ads/google_ads/v1/services/ad_schedule_view_service_client_config.py +++ /dev/null @@ -1,28 +0,0 @@ -config = { - "interfaces": { - "google.ads.googleads.v1.services.AdScheduleViewService": { - "retry_codes": { - "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], - "non_idempotent": [] - }, - "retry_params": { - "default": { - "initial_retry_delay_millis": 5000, - "retry_delay_multiplier": 1.3, - "max_retry_delay_millis": 60000, - "initial_rpc_timeout_millis": 3600000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 3600000, - "total_timeout_millis": 3600000 - } - }, - "methods": { - "GetAdScheduleView": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default" - } - } - } - } -} diff --git a/google/ads/google_ads/v1/services/age_range_view_service_client_config.py b/google/ads/google_ads/v1/services/age_range_view_service_client_config.py deleted file mode 100644 index 11551dba3..000000000 --- a/google/ads/google_ads/v1/services/age_range_view_service_client_config.py +++ /dev/null @@ -1,28 +0,0 @@ -config = { - "interfaces": { - "google.ads.googleads.v1.services.AgeRangeViewService": { - "retry_codes": { - "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], - "non_idempotent": [] - }, - "retry_params": { - "default": { - "initial_retry_delay_millis": 5000, - "retry_delay_multiplier": 1.3, - "max_retry_delay_millis": 60000, - "initial_rpc_timeout_millis": 3600000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 3600000, - "total_timeout_millis": 3600000 - } - }, - "methods": { - "GetAgeRangeView": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default" - } - } - } - } -} diff --git a/google/ads/google_ads/v1/services/asset_service_client.py b/google/ads/google_ads/v1/services/asset_service_client.py deleted file mode 100644 index 21103719e..000000000 --- a/google/ads/google_ads/v1/services/asset_service_client.py +++ /dev/null @@ -1,270 +0,0 @@ -# -*- coding: utf-8 -*- -# -# 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. -"""Accesses the google.ads.googleads.v1.services AssetService API.""" - -import pkg_resources -import warnings - -from google.oauth2 import service_account -import google.api_core.gapic_v1.client_info -import google.api_core.gapic_v1.config -import google.api_core.gapic_v1.method -import google.api_core.grpc_helpers -import google.api_core.path_template - -from google.ads.google_ads.v1.services import asset_service_client_config -from google.ads.google_ads.v1.services.transports import asset_service_grpc_transport -from google.ads.google_ads.v1.proto.services import asset_service_pb2 - -_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( - 'google-ads', ).version - - -class AssetServiceClient(object): - """ - Service to manage assets. Asset types can be created with AssetService are - YoutubeVideoAsset, MediaBundleAsset and ImageAsset. TextAsset should be - created with Ad inline. - """ - - SERVICE_ADDRESS = 'googleads.googleapis.com:443' - """The default address of the service.""" - - # The name of the interface for this client. This is the key used to - # find the method configuration in the client_config dictionary. - _INTERFACE_NAME = 'google.ads.googleads.v1.services.AssetService' - - @classmethod - def from_service_account_file(cls, filename, *args, **kwargs): - """Creates an instance of this client using the provided credentials - file. - - Args: - filename (str): The path to the service account private key json - file. - args: Additional arguments to pass to the constructor. - kwargs: Additional arguments to pass to the constructor. - - Returns: - AssetServiceClient: The constructed client. - """ - credentials = service_account.Credentials.from_service_account_file( - filename) - kwargs['credentials'] = credentials - return cls(*args, **kwargs) - - from_service_account_json = from_service_account_file - - @classmethod - def asset_path(cls, customer, asset): - """Return a fully-qualified asset string.""" - return google.api_core.path_template.expand( - 'customers/{customer}/assets/{asset}', - customer=customer, - asset=asset, - ) - - def __init__(self, - transport=None, - channel=None, - credentials=None, - client_config=None, - client_info=None): - """Constructor. - - Args: - transport (Union[~.AssetServiceGrpcTransport, - Callable[[~.Credentials, type], ~.AssetServiceGrpcTransport]): A transport - instance, responsible for actually making the API calls. - The default transport uses the gRPC protocol. - This argument may also be a callable which returns a - transport instance. Callables will be sent the credentials - as the first argument and the default transport class as - the second argument. - channel (grpc.Channel): DEPRECATED. A ``Channel`` instance - through which to make calls. This argument is mutually exclusive - with ``credentials``; providing both will raise an exception. - credentials (google.auth.credentials.Credentials): The - authorization credentials to attach to requests. These - credentials identify this application to the service. If none - are specified, the client will attempt to ascertain the - credentials from the environment. - This argument is mutually exclusive with providing a - transport instance to ``transport``; doing so will raise - an exception. - client_config (dict): DEPRECATED. A dictionary of call options for - each method. If not specified, the default configuration is used. - client_info (google.api_core.gapic_v1.client_info.ClientInfo): - The client info used to send a user-agent string along with - API requests. If ``None``, then default info will be used. - Generally, you only need to set this if you're developing - your own client library. - """ - # Raise deprecation warnings for things we want to go away. - if client_config is not None: - warnings.warn( - 'The `client_config` argument is deprecated.', - PendingDeprecationWarning, - stacklevel=2) - else: - client_config = asset_service_client_config.config - - if channel: - warnings.warn( - 'The `channel` argument is deprecated; use ' - '`transport` instead.', - PendingDeprecationWarning, - stacklevel=2) - - # Instantiate the transport. - # The transport is responsible for handling serialization and - # deserialization and actually sending data to the service. - if transport: - if callable(transport): - self.transport = transport( - credentials=credentials, - default_class=asset_service_grpc_transport. - AssetServiceGrpcTransport, - ) - else: - if credentials: - raise ValueError( - 'Received both a transport instance and ' - 'credentials; these are mutually exclusive.') - self.transport = transport - else: - self.transport = asset_service_grpc_transport.AssetServiceGrpcTransport( - address=self.SERVICE_ADDRESS, - channel=channel, - credentials=credentials, - ) - - if client_info is None: - client_info = google.api_core.gapic_v1.client_info.ClientInfo( - gapic_version=_GAPIC_LIBRARY_VERSION, ) - else: - client_info.gapic_version = _GAPIC_LIBRARY_VERSION - self._client_info = client_info - - # Parse out the default settings for retry and timeout for each RPC - # from the client configuration. - # (Ordinarily, these are the defaults specified in the `*_config.py` - # file next to this one.) - self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( - client_config['interfaces'][self._INTERFACE_NAME], ) - - # Save a dictionary of cached API call functions. - # These are the actual callables which invoke the proper - # transport methods, wrapped with `wrap_method` to add retry, - # timeout, and the like. - self._inner_api_calls = {} - - # Service calls - def get_asset(self, - resource_name, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): - """ - Returns the requested asset in full detail. - - Args: - resource_name (str): The resource name of the asset to fetch. - retry (Optional[google.api_core.retry.Retry]): A retry object used - to retry requests. If ``None`` is specified, requests will not - be retried. - timeout (Optional[float]): The amount of time, in seconds, to wait - for the request to complete. Note that if ``retry`` is - specified, the timeout applies to each individual attempt. - metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata - that is provided to the method. - - Returns: - A :class:`~google.ads.googleads_v1.types.Asset` instance. - - Raises: - google.api_core.exceptions.GoogleAPICallError: If the request - failed for any reason. - google.api_core.exceptions.RetryError: If the request failed due - to a retryable error and retry attempts failed. - ValueError: If the parameters are invalid. - """ - # Wrap the transport method to add retry and timeout logic. - if 'get_asset' not in self._inner_api_calls: - self._inner_api_calls[ - 'get_asset'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.get_asset, - default_retry=self._method_configs['GetAsset'].retry, - default_timeout=self._method_configs['GetAsset'].timeout, - client_info=self._client_info, - ) - - request = asset_service_pb2.GetAssetRequest( - resource_name=resource_name, ) - return self._inner_api_calls['get_asset']( - request, retry=retry, timeout=timeout, metadata=metadata) - - def mutate_assets(self, - customer_id, - operations, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): - """ - Creates assets. Operation statuses are returned. - - Args: - customer_id (str): The ID of the customer whose assets are being modified. - operations (list[Union[dict, ~google.ads.googleads_v1.types.AssetOperation]]): The list of operations to perform on individual assets. - - If a dict is provided, it must be of the same form as the protobuf - message :class:`~google.ads.googleads_v1.types.AssetOperation` - retry (Optional[google.api_core.retry.Retry]): A retry object used - to retry requests. If ``None`` is specified, requests will not - be retried. - timeout (Optional[float]): The amount of time, in seconds, to wait - for the request to complete. Note that if ``retry`` is - specified, the timeout applies to each individual attempt. - metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata - that is provided to the method. - - Returns: - A :class:`~google.ads.googleads_v1.types.MutateAssetsResponse` instance. - - Raises: - google.api_core.exceptions.GoogleAPICallError: If the request - failed for any reason. - google.api_core.exceptions.RetryError: If the request failed due - to a retryable error and retry attempts failed. - ValueError: If the parameters are invalid. - """ - # Wrap the transport method to add retry and timeout logic. - if 'mutate_assets' not in self._inner_api_calls: - self._inner_api_calls[ - 'mutate_assets'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.mutate_assets, - default_retry=self._method_configs['MutateAssets'].retry, - default_timeout=self._method_configs['MutateAssets']. - timeout, - client_info=self._client_info, - ) - - request = asset_service_pb2.MutateAssetsRequest( - customer_id=customer_id, - operations=operations, - ) - return self._inner_api_calls['mutate_assets']( - request, retry=retry, timeout=timeout, metadata=metadata) diff --git a/google/ads/google_ads/v1/services/asset_service_client_config.py b/google/ads/google_ads/v1/services/asset_service_client_config.py deleted file mode 100644 index d504a06f7..000000000 --- a/google/ads/google_ads/v1/services/asset_service_client_config.py +++ /dev/null @@ -1,33 +0,0 @@ -config = { - "interfaces": { - "google.ads.googleads.v1.services.AssetService": { - "retry_codes": { - "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], - "non_idempotent": [] - }, - "retry_params": { - "default": { - "initial_retry_delay_millis": 5000, - "retry_delay_multiplier": 1.3, - "max_retry_delay_millis": 60000, - "initial_rpc_timeout_millis": 3600000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 3600000, - "total_timeout_millis": 3600000 - } - }, - "methods": { - "GetAsset": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default" - }, - "MutateAssets": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default" - } - } - } - } -} diff --git a/google/ads/google_ads/v1/services/bidding_strategy_service_client.py b/google/ads/google_ads/v1/services/bidding_strategy_service_client.py deleted file mode 100644 index 2eb8fb9da..000000000 --- a/google/ads/google_ads/v1/services/bidding_strategy_service_client.py +++ /dev/null @@ -1,281 +0,0 @@ -# -*- coding: utf-8 -*- -# -# 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. -"""Accesses the google.ads.googleads.v1.services BiddingStrategyService API.""" - -import pkg_resources -import warnings - -from google.oauth2 import service_account -import google.api_core.gapic_v1.client_info -import google.api_core.gapic_v1.config -import google.api_core.gapic_v1.method -import google.api_core.grpc_helpers -import google.api_core.path_template - -from google.ads.google_ads.v1.services import bidding_strategy_service_client_config -from google.ads.google_ads.v1.services.transports import bidding_strategy_service_grpc_transport -from google.ads.google_ads.v1.proto.services import bidding_strategy_service_pb2 - -_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( - 'google-ads', ).version - - -class BiddingStrategyServiceClient(object): - """Service to manage bidding strategies.""" - - SERVICE_ADDRESS = 'googleads.googleapis.com:443' - """The default address of the service.""" - - # The name of the interface for this client. This is the key used to - # find the method configuration in the client_config dictionary. - _INTERFACE_NAME = 'google.ads.googleads.v1.services.BiddingStrategyService' - - @classmethod - def from_service_account_file(cls, filename, *args, **kwargs): - """Creates an instance of this client using the provided credentials - file. - - Args: - filename (str): The path to the service account private key json - file. - args: Additional arguments to pass to the constructor. - kwargs: Additional arguments to pass to the constructor. - - Returns: - BiddingStrategyServiceClient: The constructed client. - """ - credentials = service_account.Credentials.from_service_account_file( - filename) - kwargs['credentials'] = credentials - return cls(*args, **kwargs) - - from_service_account_json = from_service_account_file - - @classmethod - def bidding_strategy_path(cls, customer, bidding_strategy): - """Return a fully-qualified bidding_strategy string.""" - return google.api_core.path_template.expand( - 'customers/{customer}/biddingStrategies/{bidding_strategy}', - customer=customer, - bidding_strategy=bidding_strategy, - ) - - def __init__(self, - transport=None, - channel=None, - credentials=None, - client_config=None, - client_info=None): - """Constructor. - - Args: - transport (Union[~.BiddingStrategyServiceGrpcTransport, - Callable[[~.Credentials, type], ~.BiddingStrategyServiceGrpcTransport]): A transport - instance, responsible for actually making the API calls. - The default transport uses the gRPC protocol. - This argument may also be a callable which returns a - transport instance. Callables will be sent the credentials - as the first argument and the default transport class as - the second argument. - channel (grpc.Channel): DEPRECATED. A ``Channel`` instance - through which to make calls. This argument is mutually exclusive - with ``credentials``; providing both will raise an exception. - credentials (google.auth.credentials.Credentials): The - authorization credentials to attach to requests. These - credentials identify this application to the service. If none - are specified, the client will attempt to ascertain the - credentials from the environment. - This argument is mutually exclusive with providing a - transport instance to ``transport``; doing so will raise - an exception. - client_config (dict): DEPRECATED. A dictionary of call options for - each method. If not specified, the default configuration is used. - client_info (google.api_core.gapic_v1.client_info.ClientInfo): - The client info used to send a user-agent string along with - API requests. If ``None``, then default info will be used. - Generally, you only need to set this if you're developing - your own client library. - """ - # Raise deprecation warnings for things we want to go away. - if client_config is not None: - warnings.warn( - 'The `client_config` argument is deprecated.', - PendingDeprecationWarning, - stacklevel=2) - else: - client_config = bidding_strategy_service_client_config.config - - if channel: - warnings.warn( - 'The `channel` argument is deprecated; use ' - '`transport` instead.', - PendingDeprecationWarning, - stacklevel=2) - - # Instantiate the transport. - # The transport is responsible for handling serialization and - # deserialization and actually sending data to the service. - if transport: - if callable(transport): - self.transport = transport( - credentials=credentials, - default_class=bidding_strategy_service_grpc_transport. - BiddingStrategyServiceGrpcTransport, - ) - else: - if credentials: - raise ValueError( - 'Received both a transport instance and ' - 'credentials; these are mutually exclusive.') - self.transport = transport - else: - self.transport = bidding_strategy_service_grpc_transport.BiddingStrategyServiceGrpcTransport( - address=self.SERVICE_ADDRESS, - channel=channel, - credentials=credentials, - ) - - if client_info is None: - client_info = google.api_core.gapic_v1.client_info.ClientInfo( - gapic_version=_GAPIC_LIBRARY_VERSION, ) - else: - client_info.gapic_version = _GAPIC_LIBRARY_VERSION - self._client_info = client_info - - # Parse out the default settings for retry and timeout for each RPC - # from the client configuration. - # (Ordinarily, these are the defaults specified in the `*_config.py` - # file next to this one.) - self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( - client_config['interfaces'][self._INTERFACE_NAME], ) - - # Save a dictionary of cached API call functions. - # These are the actual callables which invoke the proper - # transport methods, wrapped with `wrap_method` to add retry, - # timeout, and the like. - self._inner_api_calls = {} - - # Service calls - def get_bidding_strategy(self, - resource_name, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): - """ - Returns the requested bidding strategy in full detail. - - Args: - resource_name (str): The resource name of the bidding strategy to fetch. - retry (Optional[google.api_core.retry.Retry]): A retry object used - to retry requests. If ``None`` is specified, requests will not - be retried. - timeout (Optional[float]): The amount of time, in seconds, to wait - for the request to complete. Note that if ``retry`` is - specified, the timeout applies to each individual attempt. - metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata - that is provided to the method. - - Returns: - A :class:`~google.ads.googleads_v1.types.BiddingStrategy` instance. - - Raises: - google.api_core.exceptions.GoogleAPICallError: If the request - failed for any reason. - google.api_core.exceptions.RetryError: If the request failed due - to a retryable error and retry attempts failed. - ValueError: If the parameters are invalid. - """ - # Wrap the transport method to add retry and timeout logic. - if 'get_bidding_strategy' not in self._inner_api_calls: - self._inner_api_calls[ - 'get_bidding_strategy'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.get_bidding_strategy, - default_retry=self._method_configs['GetBiddingStrategy']. - retry, - default_timeout=self._method_configs['GetBiddingStrategy']. - timeout, - client_info=self._client_info, - ) - - request = bidding_strategy_service_pb2.GetBiddingStrategyRequest( - resource_name=resource_name, ) - return self._inner_api_calls['get_bidding_strategy']( - request, retry=retry, timeout=timeout, metadata=metadata) - - def mutate_bidding_strategies( - self, - customer_id, - operations, - partial_failure=None, - validate_only=None, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): - """ - Creates, updates, or removes bidding strategies. Operation statuses are - returned. - - Args: - customer_id (str): The ID of the customer whose bidding strategies are being modified. - operations (list[Union[dict, ~google.ads.googleads_v1.types.BiddingStrategyOperation]]): The list of operations to perform on individual bidding strategies. - - If a dict is provided, it must be of the same form as the protobuf - message :class:`~google.ads.googleads_v1.types.BiddingStrategyOperation` - partial_failure (bool): If true, successful operations will be carried out and invalid - operations will return errors. If false, all operations will be carried - out in one transaction if and only if they are all valid. - Default is false. - validate_only (bool): If true, the request is validated but not executed. Only errors are - returned, not results. - retry (Optional[google.api_core.retry.Retry]): A retry object used - to retry requests. If ``None`` is specified, requests will not - be retried. - timeout (Optional[float]): The amount of time, in seconds, to wait - for the request to complete. Note that if ``retry`` is - specified, the timeout applies to each individual attempt. - metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata - that is provided to the method. - - Returns: - A :class:`~google.ads.googleads_v1.types.MutateBiddingStrategiesResponse` instance. - - Raises: - google.api_core.exceptions.GoogleAPICallError: If the request - failed for any reason. - google.api_core.exceptions.RetryError: If the request failed due - to a retryable error and retry attempts failed. - ValueError: If the parameters are invalid. - """ - # Wrap the transport method to add retry and timeout logic. - if 'mutate_bidding_strategies' not in self._inner_api_calls: - self._inner_api_calls[ - 'mutate_bidding_strategies'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.mutate_bidding_strategies, - default_retry=self. - _method_configs['MutateBiddingStrategies'].retry, - default_timeout=self. - _method_configs['MutateBiddingStrategies'].timeout, - client_info=self._client_info, - ) - - request = bidding_strategy_service_pb2.MutateBiddingStrategiesRequest( - customer_id=customer_id, - operations=operations, - partial_failure=partial_failure, - validate_only=validate_only, - ) - return self._inner_api_calls['mutate_bidding_strategies']( - request, retry=retry, timeout=timeout, metadata=metadata) diff --git a/google/ads/google_ads/v1/services/bidding_strategy_service_client_config.py b/google/ads/google_ads/v1/services/bidding_strategy_service_client_config.py deleted file mode 100644 index bbf7354e3..000000000 --- a/google/ads/google_ads/v1/services/bidding_strategy_service_client_config.py +++ /dev/null @@ -1,33 +0,0 @@ -config = { - "interfaces": { - "google.ads.googleads.v1.services.BiddingStrategyService": { - "retry_codes": { - "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], - "non_idempotent": [] - }, - "retry_params": { - "default": { - "initial_retry_delay_millis": 5000, - "retry_delay_multiplier": 1.3, - "max_retry_delay_millis": 60000, - "initial_rpc_timeout_millis": 3600000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 3600000, - "total_timeout_millis": 3600000 - } - }, - "methods": { - "GetBiddingStrategy": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default" - }, - "MutateBiddingStrategies": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default" - } - } - } - } -} diff --git a/google/ads/google_ads/v1/services/billing_setup_service_client.py b/google/ads/google_ads/v1/services/billing_setup_service_client.py deleted file mode 100644 index 74e12e3c1..000000000 --- a/google/ads/google_ads/v1/services/billing_setup_service_client.py +++ /dev/null @@ -1,279 +0,0 @@ -# -*- coding: utf-8 -*- -# -# 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. -"""Accesses the google.ads.googleads.v1.services BillingSetupService API.""" - -import pkg_resources -import warnings - -from google.oauth2 import service_account -import google.api_core.gapic_v1.client_info -import google.api_core.gapic_v1.config -import google.api_core.gapic_v1.method -import google.api_core.grpc_helpers -import google.api_core.path_template - -from google.ads.google_ads.v1.services import billing_setup_service_client_config -from google.ads.google_ads.v1.services.transports import billing_setup_service_grpc_transport -from google.ads.google_ads.v1.proto.services import billing_setup_service_pb2 - -_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( - 'google-ads', ).version - - -class BillingSetupServiceClient(object): - """ - A service for designating the business entity responsible for accrued costs. - - A billing setup is associated with a Payments account. Billing-related - activity for all billing setups associated with a particular Payments account - will appear on a single invoice generated monthly. - - Mutates: - The REMOVE operation cancels a pending billing setup. - The CREATE operation creates a new billing setup. - """ - - SERVICE_ADDRESS = 'googleads.googleapis.com:443' - """The default address of the service.""" - - # The name of the interface for this client. This is the key used to - # find the method configuration in the client_config dictionary. - _INTERFACE_NAME = 'google.ads.googleads.v1.services.BillingSetupService' - - @classmethod - def from_service_account_file(cls, filename, *args, **kwargs): - """Creates an instance of this client using the provided credentials - file. - - Args: - filename (str): The path to the service account private key json - file. - args: Additional arguments to pass to the constructor. - kwargs: Additional arguments to pass to the constructor. - - Returns: - BillingSetupServiceClient: The constructed client. - """ - credentials = service_account.Credentials.from_service_account_file( - filename) - kwargs['credentials'] = credentials - return cls(*args, **kwargs) - - from_service_account_json = from_service_account_file - - @classmethod - def billing_setup_path(cls, customer, billing_setup): - """Return a fully-qualified billing_setup string.""" - return google.api_core.path_template.expand( - 'customers/{customer}/billingSetups/{billing_setup}', - customer=customer, - billing_setup=billing_setup, - ) - - def __init__(self, - transport=None, - channel=None, - credentials=None, - client_config=None, - client_info=None): - """Constructor. - - Args: - transport (Union[~.BillingSetupServiceGrpcTransport, - Callable[[~.Credentials, type], ~.BillingSetupServiceGrpcTransport]): A transport - instance, responsible for actually making the API calls. - The default transport uses the gRPC protocol. - This argument may also be a callable which returns a - transport instance. Callables will be sent the credentials - as the first argument and the default transport class as - the second argument. - channel (grpc.Channel): DEPRECATED. A ``Channel`` instance - through which to make calls. This argument is mutually exclusive - with ``credentials``; providing both will raise an exception. - credentials (google.auth.credentials.Credentials): The - authorization credentials to attach to requests. These - credentials identify this application to the service. If none - are specified, the client will attempt to ascertain the - credentials from the environment. - This argument is mutually exclusive with providing a - transport instance to ``transport``; doing so will raise - an exception. - client_config (dict): DEPRECATED. A dictionary of call options for - each method. If not specified, the default configuration is used. - client_info (google.api_core.gapic_v1.client_info.ClientInfo): - The client info used to send a user-agent string along with - API requests. If ``None``, then default info will be used. - Generally, you only need to set this if you're developing - your own client library. - """ - # Raise deprecation warnings for things we want to go away. - if client_config is not None: - warnings.warn( - 'The `client_config` argument is deprecated.', - PendingDeprecationWarning, - stacklevel=2) - else: - client_config = billing_setup_service_client_config.config - - if channel: - warnings.warn( - 'The `channel` argument is deprecated; use ' - '`transport` instead.', - PendingDeprecationWarning, - stacklevel=2) - - # Instantiate the transport. - # The transport is responsible for handling serialization and - # deserialization and actually sending data to the service. - if transport: - if callable(transport): - self.transport = transport( - credentials=credentials, - default_class=billing_setup_service_grpc_transport. - BillingSetupServiceGrpcTransport, - ) - else: - if credentials: - raise ValueError( - 'Received both a transport instance and ' - 'credentials; these are mutually exclusive.') - self.transport = transport - else: - self.transport = billing_setup_service_grpc_transport.BillingSetupServiceGrpcTransport( - address=self.SERVICE_ADDRESS, - channel=channel, - credentials=credentials, - ) - - if client_info is None: - client_info = google.api_core.gapic_v1.client_info.ClientInfo( - gapic_version=_GAPIC_LIBRARY_VERSION, ) - else: - client_info.gapic_version = _GAPIC_LIBRARY_VERSION - self._client_info = client_info - - # Parse out the default settings for retry and timeout for each RPC - # from the client configuration. - # (Ordinarily, these are the defaults specified in the `*_config.py` - # file next to this one.) - self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( - client_config['interfaces'][self._INTERFACE_NAME], ) - - # Save a dictionary of cached API call functions. - # These are the actual callables which invoke the proper - # transport methods, wrapped with `wrap_method` to add retry, - # timeout, and the like. - self._inner_api_calls = {} - - # Service calls - def get_billing_setup(self, - resource_name, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): - """ - Returns a billing setup. - - Args: - resource_name (str): The resource name of the billing setup to fetch. - retry (Optional[google.api_core.retry.Retry]): A retry object used - to retry requests. If ``None`` is specified, requests will not - be retried. - timeout (Optional[float]): The amount of time, in seconds, to wait - for the request to complete. Note that if ``retry`` is - specified, the timeout applies to each individual attempt. - metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata - that is provided to the method. - - Returns: - A :class:`~google.ads.googleads_v1.types.BillingSetup` instance. - - Raises: - google.api_core.exceptions.GoogleAPICallError: If the request - failed for any reason. - google.api_core.exceptions.RetryError: If the request failed due - to a retryable error and retry attempts failed. - ValueError: If the parameters are invalid. - """ - # Wrap the transport method to add retry and timeout logic. - if 'get_billing_setup' not in self._inner_api_calls: - self._inner_api_calls[ - 'get_billing_setup'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.get_billing_setup, - default_retry=self._method_configs['GetBillingSetup']. - retry, - default_timeout=self._method_configs['GetBillingSetup']. - timeout, - client_info=self._client_info, - ) - - request = billing_setup_service_pb2.GetBillingSetupRequest( - resource_name=resource_name, ) - return self._inner_api_calls['get_billing_setup']( - request, retry=retry, timeout=timeout, metadata=metadata) - - def mutate_billing_setup(self, - customer_id, - operation_, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): - """ - Creates a billing setup, or cancels an existing billing setup. - - Args: - customer_id (str): Id of the customer to apply the billing setup mutate operation to. - operation_ (Union[dict, ~google.ads.googleads_v1.types.BillingSetupOperation]): The operation to perform. - - If a dict is provided, it must be of the same form as the protobuf - message :class:`~google.ads.googleads_v1.types.BillingSetupOperation` - retry (Optional[google.api_core.retry.Retry]): A retry object used - to retry requests. If ``None`` is specified, requests will not - be retried. - timeout (Optional[float]): The amount of time, in seconds, to wait - for the request to complete. Note that if ``retry`` is - specified, the timeout applies to each individual attempt. - metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata - that is provided to the method. - - Returns: - A :class:`~google.ads.googleads_v1.types.MutateBillingSetupResponse` instance. - - Raises: - google.api_core.exceptions.GoogleAPICallError: If the request - failed for any reason. - google.api_core.exceptions.RetryError: If the request failed due - to a retryable error and retry attempts failed. - ValueError: If the parameters are invalid. - """ - # Wrap the transport method to add retry and timeout logic. - if 'mutate_billing_setup' not in self._inner_api_calls: - self._inner_api_calls[ - 'mutate_billing_setup'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.mutate_billing_setup, - default_retry=self._method_configs['MutateBillingSetup']. - retry, - default_timeout=self._method_configs['MutateBillingSetup']. - timeout, - client_info=self._client_info, - ) - - request = billing_setup_service_pb2.MutateBillingSetupRequest( - customer_id=customer_id, - operation=operation_, - ) - return self._inner_api_calls['mutate_billing_setup']( - request, retry=retry, timeout=timeout, metadata=metadata) diff --git a/google/ads/google_ads/v1/services/billing_setup_service_client_config.py b/google/ads/google_ads/v1/services/billing_setup_service_client_config.py deleted file mode 100644 index a8dfc531d..000000000 --- a/google/ads/google_ads/v1/services/billing_setup_service_client_config.py +++ /dev/null @@ -1,33 +0,0 @@ -config = { - "interfaces": { - "google.ads.googleads.v1.services.BillingSetupService": { - "retry_codes": { - "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], - "non_idempotent": [] - }, - "retry_params": { - "default": { - "initial_retry_delay_millis": 5000, - "retry_delay_multiplier": 1.3, - "max_retry_delay_millis": 60000, - "initial_rpc_timeout_millis": 3600000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 3600000, - "total_timeout_millis": 3600000 - } - }, - "methods": { - "GetBillingSetup": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default" - }, - "MutateBillingSetup": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default" - } - } - } - } -} diff --git a/google/ads/google_ads/v1/services/campaign_audience_view_service_client_config.py b/google/ads/google_ads/v1/services/campaign_audience_view_service_client_config.py deleted file mode 100644 index 1916435b5..000000000 --- a/google/ads/google_ads/v1/services/campaign_audience_view_service_client_config.py +++ /dev/null @@ -1,28 +0,0 @@ -config = { - "interfaces": { - "google.ads.googleads.v1.services.CampaignAudienceViewService": { - "retry_codes": { - "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], - "non_idempotent": [] - }, - "retry_params": { - "default": { - "initial_retry_delay_millis": 5000, - "retry_delay_multiplier": 1.3, - "max_retry_delay_millis": 60000, - "initial_rpc_timeout_millis": 3600000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 3600000, - "total_timeout_millis": 3600000 - } - }, - "methods": { - "GetCampaignAudienceView": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default" - } - } - } - } -} diff --git a/google/ads/google_ads/v1/services/campaign_bid_modifier_service_client_config.py b/google/ads/google_ads/v1/services/campaign_bid_modifier_service_client_config.py deleted file mode 100644 index acb2b175a..000000000 --- a/google/ads/google_ads/v1/services/campaign_bid_modifier_service_client_config.py +++ /dev/null @@ -1,33 +0,0 @@ -config = { - "interfaces": { - "google.ads.googleads.v1.services.CampaignBidModifierService": { - "retry_codes": { - "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], - "non_idempotent": [] - }, - "retry_params": { - "default": { - "initial_retry_delay_millis": 5000, - "retry_delay_multiplier": 1.3, - "max_retry_delay_millis": 60000, - "initial_rpc_timeout_millis": 3600000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 3600000, - "total_timeout_millis": 3600000 - } - }, - "methods": { - "GetCampaignBidModifier": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default" - }, - "MutateCampaignBidModifiers": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default" - } - } - } - } -} diff --git a/google/ads/google_ads/v1/services/campaign_budget_service_client.py b/google/ads/google_ads/v1/services/campaign_budget_service_client.py deleted file mode 100644 index 252d67b2d..000000000 --- a/google/ads/google_ads/v1/services/campaign_budget_service_client.py +++ /dev/null @@ -1,281 +0,0 @@ -# -*- coding: utf-8 -*- -# -# 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. -"""Accesses the google.ads.googleads.v1.services CampaignBudgetService API.""" - -import pkg_resources -import warnings - -from google.oauth2 import service_account -import google.api_core.gapic_v1.client_info -import google.api_core.gapic_v1.config -import google.api_core.gapic_v1.method -import google.api_core.grpc_helpers -import google.api_core.path_template - -from google.ads.google_ads.v1.services import campaign_budget_service_client_config -from google.ads.google_ads.v1.services.transports import campaign_budget_service_grpc_transport -from google.ads.google_ads.v1.proto.services import campaign_budget_service_pb2 - -_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( - 'google-ads', ).version - - -class CampaignBudgetServiceClient(object): - """Service to manage campaign budgets.""" - - SERVICE_ADDRESS = 'googleads.googleapis.com:443' - """The default address of the service.""" - - # The name of the interface for this client. This is the key used to - # find the method configuration in the client_config dictionary. - _INTERFACE_NAME = 'google.ads.googleads.v1.services.CampaignBudgetService' - - @classmethod - def from_service_account_file(cls, filename, *args, **kwargs): - """Creates an instance of this client using the provided credentials - file. - - Args: - filename (str): The path to the service account private key json - file. - args: Additional arguments to pass to the constructor. - kwargs: Additional arguments to pass to the constructor. - - Returns: - CampaignBudgetServiceClient: The constructed client. - """ - credentials = service_account.Credentials.from_service_account_file( - filename) - kwargs['credentials'] = credentials - return cls(*args, **kwargs) - - from_service_account_json = from_service_account_file - - @classmethod - def campaign_budget_path(cls, customer, campaign_budget): - """Return a fully-qualified campaign_budget string.""" - return google.api_core.path_template.expand( - 'customers/{customer}/campaignBudgets/{campaign_budget}', - customer=customer, - campaign_budget=campaign_budget, - ) - - def __init__(self, - transport=None, - channel=None, - credentials=None, - client_config=None, - client_info=None): - """Constructor. - - Args: - transport (Union[~.CampaignBudgetServiceGrpcTransport, - Callable[[~.Credentials, type], ~.CampaignBudgetServiceGrpcTransport]): A transport - instance, responsible for actually making the API calls. - The default transport uses the gRPC protocol. - This argument may also be a callable which returns a - transport instance. Callables will be sent the credentials - as the first argument and the default transport class as - the second argument. - channel (grpc.Channel): DEPRECATED. A ``Channel`` instance - through which to make calls. This argument is mutually exclusive - with ``credentials``; providing both will raise an exception. - credentials (google.auth.credentials.Credentials): The - authorization credentials to attach to requests. These - credentials identify this application to the service. If none - are specified, the client will attempt to ascertain the - credentials from the environment. - This argument is mutually exclusive with providing a - transport instance to ``transport``; doing so will raise - an exception. - client_config (dict): DEPRECATED. A dictionary of call options for - each method. If not specified, the default configuration is used. - client_info (google.api_core.gapic_v1.client_info.ClientInfo): - The client info used to send a user-agent string along with - API requests. If ``None``, then default info will be used. - Generally, you only need to set this if you're developing - your own client library. - """ - # Raise deprecation warnings for things we want to go away. - if client_config is not None: - warnings.warn( - 'The `client_config` argument is deprecated.', - PendingDeprecationWarning, - stacklevel=2) - else: - client_config = campaign_budget_service_client_config.config - - if channel: - warnings.warn( - 'The `channel` argument is deprecated; use ' - '`transport` instead.', - PendingDeprecationWarning, - stacklevel=2) - - # Instantiate the transport. - # The transport is responsible for handling serialization and - # deserialization and actually sending data to the service. - if transport: - if callable(transport): - self.transport = transport( - credentials=credentials, - default_class=campaign_budget_service_grpc_transport. - CampaignBudgetServiceGrpcTransport, - ) - else: - if credentials: - raise ValueError( - 'Received both a transport instance and ' - 'credentials; these are mutually exclusive.') - self.transport = transport - else: - self.transport = campaign_budget_service_grpc_transport.CampaignBudgetServiceGrpcTransport( - address=self.SERVICE_ADDRESS, - channel=channel, - credentials=credentials, - ) - - if client_info is None: - client_info = google.api_core.gapic_v1.client_info.ClientInfo( - gapic_version=_GAPIC_LIBRARY_VERSION, ) - else: - client_info.gapic_version = _GAPIC_LIBRARY_VERSION - self._client_info = client_info - - # Parse out the default settings for retry and timeout for each RPC - # from the client configuration. - # (Ordinarily, these are the defaults specified in the `*_config.py` - # file next to this one.) - self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( - client_config['interfaces'][self._INTERFACE_NAME], ) - - # Save a dictionary of cached API call functions. - # These are the actual callables which invoke the proper - # transport methods, wrapped with `wrap_method` to add retry, - # timeout, and the like. - self._inner_api_calls = {} - - # Service calls - def get_campaign_budget(self, - resource_name, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): - """ - Returns the requested Campaign Budget in full detail. - - Args: - resource_name (str): The resource name of the campaign budget to fetch. - retry (Optional[google.api_core.retry.Retry]): A retry object used - to retry requests. If ``None`` is specified, requests will not - be retried. - timeout (Optional[float]): The amount of time, in seconds, to wait - for the request to complete. Note that if ``retry`` is - specified, the timeout applies to each individual attempt. - metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata - that is provided to the method. - - Returns: - A :class:`~google.ads.googleads_v1.types.CampaignBudget` instance. - - Raises: - google.api_core.exceptions.GoogleAPICallError: If the request - failed for any reason. - google.api_core.exceptions.RetryError: If the request failed due - to a retryable error and retry attempts failed. - ValueError: If the parameters are invalid. - """ - # Wrap the transport method to add retry and timeout logic. - if 'get_campaign_budget' not in self._inner_api_calls: - self._inner_api_calls[ - 'get_campaign_budget'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.get_campaign_budget, - default_retry=self._method_configs['GetCampaignBudget']. - retry, - default_timeout=self._method_configs['GetCampaignBudget']. - timeout, - client_info=self._client_info, - ) - - request = campaign_budget_service_pb2.GetCampaignBudgetRequest( - resource_name=resource_name, ) - return self._inner_api_calls['get_campaign_budget']( - request, retry=retry, timeout=timeout, metadata=metadata) - - def mutate_campaign_budgets( - self, - customer_id, - operations, - partial_failure=None, - validate_only=None, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): - """ - Creates, updates, or removes campaign budgets. Operation statuses are - returned. - - Args: - customer_id (str): The ID of the customer whose campaign budgets are being modified. - operations (list[Union[dict, ~google.ads.googleads_v1.types.CampaignBudgetOperation]]): The list of operations to perform on individual campaign budgets. - - If a dict is provided, it must be of the same form as the protobuf - message :class:`~google.ads.googleads_v1.types.CampaignBudgetOperation` - partial_failure (bool): If true, successful operations will be carried out and invalid - operations will return errors. If false, all operations will be carried - out in one transaction if and only if they are all valid. - Default is false. - validate_only (bool): If true, the request is validated but not executed. Only errors are - returned, not results. - retry (Optional[google.api_core.retry.Retry]): A retry object used - to retry requests. If ``None`` is specified, requests will not - be retried. - timeout (Optional[float]): The amount of time, in seconds, to wait - for the request to complete. Note that if ``retry`` is - specified, the timeout applies to each individual attempt. - metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata - that is provided to the method. - - Returns: - A :class:`~google.ads.googleads_v1.types.MutateCampaignBudgetsResponse` instance. - - Raises: - google.api_core.exceptions.GoogleAPICallError: If the request - failed for any reason. - google.api_core.exceptions.RetryError: If the request failed due - to a retryable error and retry attempts failed. - ValueError: If the parameters are invalid. - """ - # Wrap the transport method to add retry and timeout logic. - if 'mutate_campaign_budgets' not in self._inner_api_calls: - self._inner_api_calls[ - 'mutate_campaign_budgets'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.mutate_campaign_budgets, - default_retry=self. - _method_configs['MutateCampaignBudgets'].retry, - default_timeout=self. - _method_configs['MutateCampaignBudgets'].timeout, - client_info=self._client_info, - ) - - request = campaign_budget_service_pb2.MutateCampaignBudgetsRequest( - customer_id=customer_id, - operations=operations, - partial_failure=partial_failure, - validate_only=validate_only, - ) - return self._inner_api_calls['mutate_campaign_budgets']( - request, retry=retry, timeout=timeout, metadata=metadata) diff --git a/google/ads/google_ads/v1/services/campaign_budget_service_client_config.py b/google/ads/google_ads/v1/services/campaign_budget_service_client_config.py deleted file mode 100644 index c342bb044..000000000 --- a/google/ads/google_ads/v1/services/campaign_budget_service_client_config.py +++ /dev/null @@ -1,33 +0,0 @@ -config = { - "interfaces": { - "google.ads.googleads.v1.services.CampaignBudgetService": { - "retry_codes": { - "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], - "non_idempotent": [] - }, - "retry_params": { - "default": { - "initial_retry_delay_millis": 5000, - "retry_delay_multiplier": 1.3, - "max_retry_delay_millis": 60000, - "initial_rpc_timeout_millis": 3600000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 3600000, - "total_timeout_millis": 3600000 - } - }, - "methods": { - "GetCampaignBudget": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default" - }, - "MutateCampaignBudgets": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default" - } - } - } - } -} diff --git a/google/ads/google_ads/v1/services/campaign_criterion_service_client.py b/google/ads/google_ads/v1/services/campaign_criterion_service_client.py deleted file mode 100644 index 50c88cd5b..000000000 --- a/google/ads/google_ads/v1/services/campaign_criterion_service_client.py +++ /dev/null @@ -1,280 +0,0 @@ -# -*- coding: utf-8 -*- -# -# 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. -"""Accesses the google.ads.googleads.v1.services CampaignCriterionService API.""" - -import pkg_resources -import warnings - -from google.oauth2 import service_account -import google.api_core.gapic_v1.client_info -import google.api_core.gapic_v1.config -import google.api_core.gapic_v1.method -import google.api_core.grpc_helpers -import google.api_core.path_template - -from google.ads.google_ads.v1.services import campaign_criterion_service_client_config -from google.ads.google_ads.v1.services.transports import campaign_criterion_service_grpc_transport -from google.ads.google_ads.v1.proto.services import campaign_criterion_service_pb2 - -_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( - 'google-ads', ).version - - -class CampaignCriterionServiceClient(object): - """Service to manage campaign criteria.""" - - SERVICE_ADDRESS = 'googleads.googleapis.com:443' - """The default address of the service.""" - - # The name of the interface for this client. This is the key used to - # find the method configuration in the client_config dictionary. - _INTERFACE_NAME = 'google.ads.googleads.v1.services.CampaignCriterionService' - - @classmethod - def from_service_account_file(cls, filename, *args, **kwargs): - """Creates an instance of this client using the provided credentials - file. - - Args: - filename (str): The path to the service account private key json - file. - args: Additional arguments to pass to the constructor. - kwargs: Additional arguments to pass to the constructor. - - Returns: - CampaignCriterionServiceClient: The constructed client. - """ - credentials = service_account.Credentials.from_service_account_file( - filename) - kwargs['credentials'] = credentials - return cls(*args, **kwargs) - - from_service_account_json = from_service_account_file - - @classmethod - def campaign_criteria_path(cls, customer, campaign_criteria): - """Return a fully-qualified campaign_criteria string.""" - return google.api_core.path_template.expand( - 'customers/{customer}/campaignCriteria/{campaign_criteria}', - customer=customer, - campaign_criteria=campaign_criteria, - ) - - def __init__(self, - transport=None, - channel=None, - credentials=None, - client_config=None, - client_info=None): - """Constructor. - - Args: - transport (Union[~.CampaignCriterionServiceGrpcTransport, - Callable[[~.Credentials, type], ~.CampaignCriterionServiceGrpcTransport]): A transport - instance, responsible for actually making the API calls. - The default transport uses the gRPC protocol. - This argument may also be a callable which returns a - transport instance. Callables will be sent the credentials - as the first argument and the default transport class as - the second argument. - channel (grpc.Channel): DEPRECATED. A ``Channel`` instance - through which to make calls. This argument is mutually exclusive - with ``credentials``; providing both will raise an exception. - credentials (google.auth.credentials.Credentials): The - authorization credentials to attach to requests. These - credentials identify this application to the service. If none - are specified, the client will attempt to ascertain the - credentials from the environment. - This argument is mutually exclusive with providing a - transport instance to ``transport``; doing so will raise - an exception. - client_config (dict): DEPRECATED. A dictionary of call options for - each method. If not specified, the default configuration is used. - client_info (google.api_core.gapic_v1.client_info.ClientInfo): - The client info used to send a user-agent string along with - API requests. If ``None``, then default info will be used. - Generally, you only need to set this if you're developing - your own client library. - """ - # Raise deprecation warnings for things we want to go away. - if client_config is not None: - warnings.warn( - 'The `client_config` argument is deprecated.', - PendingDeprecationWarning, - stacklevel=2) - else: - client_config = campaign_criterion_service_client_config.config - - if channel: - warnings.warn( - 'The `channel` argument is deprecated; use ' - '`transport` instead.', - PendingDeprecationWarning, - stacklevel=2) - - # Instantiate the transport. - # The transport is responsible for handling serialization and - # deserialization and actually sending data to the service. - if transport: - if callable(transport): - self.transport = transport( - credentials=credentials, - default_class=campaign_criterion_service_grpc_transport. - CampaignCriterionServiceGrpcTransport, - ) - else: - if credentials: - raise ValueError( - 'Received both a transport instance and ' - 'credentials; these are mutually exclusive.') - self.transport = transport - else: - self.transport = campaign_criterion_service_grpc_transport.CampaignCriterionServiceGrpcTransport( - address=self.SERVICE_ADDRESS, - channel=channel, - credentials=credentials, - ) - - if client_info is None: - client_info = google.api_core.gapic_v1.client_info.ClientInfo( - gapic_version=_GAPIC_LIBRARY_VERSION, ) - else: - client_info.gapic_version = _GAPIC_LIBRARY_VERSION - self._client_info = client_info - - # Parse out the default settings for retry and timeout for each RPC - # from the client configuration. - # (Ordinarily, these are the defaults specified in the `*_config.py` - # file next to this one.) - self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( - client_config['interfaces'][self._INTERFACE_NAME], ) - - # Save a dictionary of cached API call functions. - # These are the actual callables which invoke the proper - # transport methods, wrapped with `wrap_method` to add retry, - # timeout, and the like. - self._inner_api_calls = {} - - # Service calls - def get_campaign_criterion(self, - resource_name, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): - """ - Returns the requested criterion in full detail. - - Args: - resource_name (str): The resource name of the criterion to fetch. - retry (Optional[google.api_core.retry.Retry]): A retry object used - to retry requests. If ``None`` is specified, requests will not - be retried. - timeout (Optional[float]): The amount of time, in seconds, to wait - for the request to complete. Note that if ``retry`` is - specified, the timeout applies to each individual attempt. - metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata - that is provided to the method. - - Returns: - A :class:`~google.ads.googleads_v1.types.CampaignCriterion` instance. - - Raises: - google.api_core.exceptions.GoogleAPICallError: If the request - failed for any reason. - google.api_core.exceptions.RetryError: If the request failed due - to a retryable error and retry attempts failed. - ValueError: If the parameters are invalid. - """ - # Wrap the transport method to add retry and timeout logic. - if 'get_campaign_criterion' not in self._inner_api_calls: - self._inner_api_calls[ - 'get_campaign_criterion'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.get_campaign_criterion, - default_retry=self._method_configs['GetCampaignCriterion']. - retry, - default_timeout=self. - _method_configs['GetCampaignCriterion'].timeout, - client_info=self._client_info, - ) - - request = campaign_criterion_service_pb2.GetCampaignCriterionRequest( - resource_name=resource_name, ) - return self._inner_api_calls['get_campaign_criterion']( - request, retry=retry, timeout=timeout, metadata=metadata) - - def mutate_campaign_criteria( - self, - customer_id, - operations, - partial_failure=None, - validate_only=None, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): - """ - Creates, updates, or removes criteria. Operation statuses are returned. - - Args: - customer_id (str): The ID of the customer whose criteria are being modified. - operations (list[Union[dict, ~google.ads.googleads_v1.types.CampaignCriterionOperation]]): The list of operations to perform on individual criteria. - - If a dict is provided, it must be of the same form as the protobuf - message :class:`~google.ads.googleads_v1.types.CampaignCriterionOperation` - partial_failure (bool): If true, successful operations will be carried out and invalid - operations will return errors. If false, all operations will be carried - out in one transaction if and only if they are all valid. - Default is false. - validate_only (bool): If true, the request is validated but not executed. Only errors are - returned, not results. - retry (Optional[google.api_core.retry.Retry]): A retry object used - to retry requests. If ``None`` is specified, requests will not - be retried. - timeout (Optional[float]): The amount of time, in seconds, to wait - for the request to complete. Note that if ``retry`` is - specified, the timeout applies to each individual attempt. - metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata - that is provided to the method. - - Returns: - A :class:`~google.ads.googleads_v1.types.MutateCampaignCriteriaResponse` instance. - - Raises: - google.api_core.exceptions.GoogleAPICallError: If the request - failed for any reason. - google.api_core.exceptions.RetryError: If the request failed due - to a retryable error and retry attempts failed. - ValueError: If the parameters are invalid. - """ - # Wrap the transport method to add retry and timeout logic. - if 'mutate_campaign_criteria' not in self._inner_api_calls: - self._inner_api_calls[ - 'mutate_campaign_criteria'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.mutate_campaign_criteria, - default_retry=self. - _method_configs['MutateCampaignCriteria'].retry, - default_timeout=self. - _method_configs['MutateCampaignCriteria'].timeout, - client_info=self._client_info, - ) - - request = campaign_criterion_service_pb2.MutateCampaignCriteriaRequest( - customer_id=customer_id, - operations=operations, - partial_failure=partial_failure, - validate_only=validate_only, - ) - return self._inner_api_calls['mutate_campaign_criteria']( - request, retry=retry, timeout=timeout, metadata=metadata) diff --git a/google/ads/google_ads/v1/services/campaign_criterion_service_client_config.py b/google/ads/google_ads/v1/services/campaign_criterion_service_client_config.py deleted file mode 100644 index 8738528fc..000000000 --- a/google/ads/google_ads/v1/services/campaign_criterion_service_client_config.py +++ /dev/null @@ -1,33 +0,0 @@ -config = { - "interfaces": { - "google.ads.googleads.v1.services.CampaignCriterionService": { - "retry_codes": { - "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], - "non_idempotent": [] - }, - "retry_params": { - "default": { - "initial_retry_delay_millis": 5000, - "retry_delay_multiplier": 1.3, - "max_retry_delay_millis": 60000, - "initial_rpc_timeout_millis": 3600000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 3600000, - "total_timeout_millis": 3600000 - } - }, - "methods": { - "GetCampaignCriterion": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default" - }, - "MutateCampaignCriteria": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default" - } - } - } - } -} diff --git a/google/ads/google_ads/v1/services/campaign_criterion_simulation_service_client_config.py b/google/ads/google_ads/v1/services/campaign_criterion_simulation_service_client_config.py deleted file mode 100644 index 98acc852d..000000000 --- a/google/ads/google_ads/v1/services/campaign_criterion_simulation_service_client_config.py +++ /dev/null @@ -1,29 +0,0 @@ -config = { - "interfaces": { - "google.ads.googleads.v1.services.CampaignCriterionSimulationService": - { - "retry_codes": { - "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], - "non_idempotent": [] - }, - "retry_params": { - "default": { - "initial_retry_delay_millis": 5000, - "retry_delay_multiplier": 1.3, - "max_retry_delay_millis": 60000, - "initial_rpc_timeout_millis": 3600000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 3600000, - "total_timeout_millis": 3600000 - } - }, - "methods": { - "GetCampaignCriterionSimulation": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default" - } - } - } - } -} diff --git a/google/ads/google_ads/v1/services/campaign_draft_service_client.py b/google/ads/google_ads/v1/services/campaign_draft_service_client.py deleted file mode 100644 index 54cf3409f..000000000 --- a/google/ads/google_ads/v1/services/campaign_draft_service_client.py +++ /dev/null @@ -1,416 +0,0 @@ -# -*- coding: utf-8 -*- -# -# 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. -"""Accesses the google.ads.googleads.v1.services CampaignDraftService API.""" - -import functools -import pkg_resources -import warnings - -from google.oauth2 import service_account -import google.api_core.gapic_v1.client_info -import google.api_core.gapic_v1.config -import google.api_core.gapic_v1.method -import google.api_core.grpc_helpers -import google.api_core.operation -import google.api_core.operations_v1 -import google.api_core.page_iterator -import google.api_core.path_template - -from google.ads.google_ads.v1.services import campaign_draft_service_client_config -from google.ads.google_ads.v1.services.transports import campaign_draft_service_grpc_transport -from google.ads.google_ads.v1.proto.services import campaign_draft_service_pb2 -from google.protobuf import empty_pb2 - -_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( - 'google-ads', ).version - - -class CampaignDraftServiceClient(object): - """Service to manage campaign drafts.""" - - SERVICE_ADDRESS = 'googleads.googleapis.com:443' - """The default address of the service.""" - - # The name of the interface for this client. This is the key used to - # find the method configuration in the client_config dictionary. - _INTERFACE_NAME = 'google.ads.googleads.v1.services.CampaignDraftService' - - @classmethod - def from_service_account_file(cls, filename, *args, **kwargs): - """Creates an instance of this client using the provided credentials - file. - - Args: - filename (str): The path to the service account private key json - file. - args: Additional arguments to pass to the constructor. - kwargs: Additional arguments to pass to the constructor. - - Returns: - CampaignDraftServiceClient: The constructed client. - """ - credentials = service_account.Credentials.from_service_account_file( - filename) - kwargs['credentials'] = credentials - return cls(*args, **kwargs) - - from_service_account_json = from_service_account_file - - @classmethod - def campaign_draft_path(cls, customer, campaign_draft): - """Return a fully-qualified campaign_draft string.""" - return google.api_core.path_template.expand( - 'customers/{customer}/campaignDrafts/{campaign_draft}', - customer=customer, - campaign_draft=campaign_draft, - ) - - def __init__(self, - transport=None, - channel=None, - credentials=None, - client_config=None, - client_info=None): - """Constructor. - - Args: - transport (Union[~.CampaignDraftServiceGrpcTransport, - Callable[[~.Credentials, type], ~.CampaignDraftServiceGrpcTransport]): A transport - instance, responsible for actually making the API calls. - The default transport uses the gRPC protocol. - This argument may also be a callable which returns a - transport instance. Callables will be sent the credentials - as the first argument and the default transport class as - the second argument. - channel (grpc.Channel): DEPRECATED. A ``Channel`` instance - through which to make calls. This argument is mutually exclusive - with ``credentials``; providing both will raise an exception. - credentials (google.auth.credentials.Credentials): The - authorization credentials to attach to requests. These - credentials identify this application to the service. If none - are specified, the client will attempt to ascertain the - credentials from the environment. - This argument is mutually exclusive with providing a - transport instance to ``transport``; doing so will raise - an exception. - client_config (dict): DEPRECATED. A dictionary of call options for - each method. If not specified, the default configuration is used. - client_info (google.api_core.gapic_v1.client_info.ClientInfo): - The client info used to send a user-agent string along with - API requests. If ``None``, then default info will be used. - Generally, you only need to set this if you're developing - your own client library. - """ - # Raise deprecation warnings for things we want to go away. - if client_config is not None: - warnings.warn( - 'The `client_config` argument is deprecated.', - PendingDeprecationWarning, - stacklevel=2) - else: - client_config = campaign_draft_service_client_config.config - - if channel: - warnings.warn( - 'The `channel` argument is deprecated; use ' - '`transport` instead.', - PendingDeprecationWarning, - stacklevel=2) - - # Instantiate the transport. - # The transport is responsible for handling serialization and - # deserialization and actually sending data to the service. - if transport: - if callable(transport): - self.transport = transport( - credentials=credentials, - default_class=campaign_draft_service_grpc_transport. - CampaignDraftServiceGrpcTransport, - ) - else: - if credentials: - raise ValueError( - 'Received both a transport instance and ' - 'credentials; these are mutually exclusive.') - self.transport = transport - else: - self.transport = campaign_draft_service_grpc_transport.CampaignDraftServiceGrpcTransport( - address=self.SERVICE_ADDRESS, - channel=channel, - credentials=credentials, - ) - - if client_info is None: - client_info = google.api_core.gapic_v1.client_info.ClientInfo( - gapic_version=_GAPIC_LIBRARY_VERSION, ) - else: - client_info.gapic_version = _GAPIC_LIBRARY_VERSION - self._client_info = client_info - - # Parse out the default settings for retry and timeout for each RPC - # from the client configuration. - # (Ordinarily, these are the defaults specified in the `*_config.py` - # file next to this one.) - self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( - client_config['interfaces'][self._INTERFACE_NAME], ) - - # Save a dictionary of cached API call functions. - # These are the actual callables which invoke the proper - # transport methods, wrapped with `wrap_method` to add retry, - # timeout, and the like. - self._inner_api_calls = {} - - # Service calls - def get_campaign_draft(self, - resource_name, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): - """ - Returns the requested campaign draft in full detail. - - Args: - resource_name (str): The resource name of the campaign draft to fetch. - retry (Optional[google.api_core.retry.Retry]): A retry object used - to retry requests. If ``None`` is specified, requests will not - be retried. - timeout (Optional[float]): The amount of time, in seconds, to wait - for the request to complete. Note that if ``retry`` is - specified, the timeout applies to each individual attempt. - metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata - that is provided to the method. - - Returns: - A :class:`~google.ads.googleads_v1.types.CampaignDraft` instance. - - Raises: - google.api_core.exceptions.GoogleAPICallError: If the request - failed for any reason. - google.api_core.exceptions.RetryError: If the request failed due - to a retryable error and retry attempts failed. - ValueError: If the parameters are invalid. - """ - # Wrap the transport method to add retry and timeout logic. - if 'get_campaign_draft' not in self._inner_api_calls: - self._inner_api_calls[ - 'get_campaign_draft'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.get_campaign_draft, - default_retry=self._method_configs['GetCampaignDraft']. - retry, - default_timeout=self._method_configs['GetCampaignDraft']. - timeout, - client_info=self._client_info, - ) - - request = campaign_draft_service_pb2.GetCampaignDraftRequest( - resource_name=resource_name, ) - return self._inner_api_calls['get_campaign_draft']( - request, retry=retry, timeout=timeout, metadata=metadata) - - def mutate_campaign_drafts(self, - customer_id, - operations, - partial_failure=None, - validate_only=None, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): - """ - Creates, updates, or removes campaign drafts. Operation statuses are - returned. - - Args: - customer_id (str): The ID of the customer whose campaign drafts are being modified. - operations (list[Union[dict, ~google.ads.googleads_v1.types.CampaignDraftOperation]]): The list of operations to perform on individual campaign drafts. - - If a dict is provided, it must be of the same form as the protobuf - message :class:`~google.ads.googleads_v1.types.CampaignDraftOperation` - partial_failure (bool): If true, successful operations will be carried out and invalid - operations will return errors. If false, all operations will be carried - out in one transaction if and only if they are all valid. - Default is false. - validate_only (bool): If true, the request is validated but not executed. Only errors are - returned, not results. - retry (Optional[google.api_core.retry.Retry]): A retry object used - to retry requests. If ``None`` is specified, requests will not - be retried. - timeout (Optional[float]): The amount of time, in seconds, to wait - for the request to complete. Note that if ``retry`` is - specified, the timeout applies to each individual attempt. - metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata - that is provided to the method. - - Returns: - A :class:`~google.ads.googleads_v1.types.MutateCampaignDraftsResponse` instance. - - Raises: - google.api_core.exceptions.GoogleAPICallError: If the request - failed for any reason. - google.api_core.exceptions.RetryError: If the request failed due - to a retryable error and retry attempts failed. - ValueError: If the parameters are invalid. - """ - # Wrap the transport method to add retry and timeout logic. - if 'mutate_campaign_drafts' not in self._inner_api_calls: - self._inner_api_calls[ - 'mutate_campaign_drafts'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.mutate_campaign_drafts, - default_retry=self._method_configs['MutateCampaignDrafts']. - retry, - default_timeout=self. - _method_configs['MutateCampaignDrafts'].timeout, - client_info=self._client_info, - ) - - request = campaign_draft_service_pb2.MutateCampaignDraftsRequest( - customer_id=customer_id, - operations=operations, - partial_failure=partial_failure, - validate_only=validate_only, - ) - return self._inner_api_calls['mutate_campaign_drafts']( - request, retry=retry, timeout=timeout, metadata=metadata) - - def promote_campaign_draft(self, - campaign_draft, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): - """ - Promotes the changes in a draft back to the base campaign. - - This method returns a Long Running Operation (LRO) indicating if the - Promote is done. Use [Operations.GetOperation] to poll the LRO until it - is done. Only a done status is returned in the response. See the status - in the Campaign Draft resource to determine if the promotion was - successful. If the LRO failed, use - ``CampaignDraftService.ListCampaignDraftAsyncErrors`` to view the list - of error reasons. - - Args: - campaign_draft (str): The resource name of the campaign draft to promote. - retry (Optional[google.api_core.retry.Retry]): A retry object used - to retry requests. If ``None`` is specified, requests will not - be retried. - timeout (Optional[float]): The amount of time, in seconds, to wait - for the request to complete. Note that if ``retry`` is - specified, the timeout applies to each individual attempt. - metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata - that is provided to the method. - - Returns: - A :class:`~google.ads.googleads_v1.types._OperationFuture` instance. - - Raises: - google.api_core.exceptions.GoogleAPICallError: If the request - failed for any reason. - google.api_core.exceptions.RetryError: If the request failed due - to a retryable error and retry attempts failed. - ValueError: If the parameters are invalid. - """ - # Wrap the transport method to add retry and timeout logic. - if 'promote_campaign_draft' not in self._inner_api_calls: - self._inner_api_calls[ - 'promote_campaign_draft'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.promote_campaign_draft, - default_retry=self._method_configs['PromoteCampaignDraft']. - retry, - default_timeout=self. - _method_configs['PromoteCampaignDraft'].timeout, - client_info=self._client_info, - ) - - request = campaign_draft_service_pb2.PromoteCampaignDraftRequest( - campaign_draft=campaign_draft, ) - operation = self._inner_api_calls['promote_campaign_draft']( - request, retry=retry, timeout=timeout, metadata=metadata) - return google.api_core.operation.from_gapic( - operation, - self.transport._operations_client, - empty_pb2.Empty, - metadata_type=empty_pb2.Empty, - ) - - def list_campaign_draft_async_errors( - self, - resource_name, - page_size=None, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): - """ - Returns all errors that occurred during CampaignDraft promote. Throws an - error if called before campaign draft is promoted. - Supports standard list paging. - - Args: - resource_name (str): The name of the campaign draft from which to retrieve the async errors. - page_size (int): The maximum number of resources contained in the - underlying API response. If page streaming is performed per- - resource, this parameter does not affect the return value. If page - streaming is performed per-page, this determines the maximum number - of resources in a page. - retry (Optional[google.api_core.retry.Retry]): A retry object used - to retry requests. If ``None`` is specified, requests will not - be retried. - timeout (Optional[float]): The amount of time, in seconds, to wait - for the request to complete. Note that if ``retry`` is - specified, the timeout applies to each individual attempt. - metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata - that is provided to the method. - - Returns: - A :class:`~google.gax.PageIterator` instance. By default, this - is an iterable of :class:`~google.ads.googleads_v1.types.Status` instances. - This object can also be configured to iterate over the pages - of the response through the `options` parameter. - - Raises: - google.api_core.exceptions.GoogleAPICallError: If the request - failed for any reason. - google.api_core.exceptions.RetryError: If the request failed due - to a retryable error and retry attempts failed. - ValueError: If the parameters are invalid. - """ - # Wrap the transport method to add retry and timeout logic. - if 'list_campaign_draft_async_errors' not in self._inner_api_calls: - self._inner_api_calls[ - 'list_campaign_draft_async_errors'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.list_campaign_draft_async_errors, - default_retry=self. - _method_configs['ListCampaignDraftAsyncErrors'].retry, - default_timeout=self. - _method_configs['ListCampaignDraftAsyncErrors'].timeout, - client_info=self._client_info, - ) - - request = campaign_draft_service_pb2.ListCampaignDraftAsyncErrorsRequest( - resource_name=resource_name, - page_size=page_size, - ) - iterator = google.api_core.page_iterator.GRPCIterator( - client=None, - method=functools.partial( - self._inner_api_calls['list_campaign_draft_async_errors'], - retry=retry, - timeout=timeout, - metadata=metadata), - request=request, - items_field='errors', - request_token_field='page_token', - response_token_field='next_page_token', - ) - return iterator diff --git a/google/ads/google_ads/v1/services/campaign_draft_service_client_config.py b/google/ads/google_ads/v1/services/campaign_draft_service_client_config.py deleted file mode 100644 index 065c9c86f..000000000 --- a/google/ads/google_ads/v1/services/campaign_draft_service_client_config.py +++ /dev/null @@ -1,43 +0,0 @@ -config = { - "interfaces": { - "google.ads.googleads.v1.services.CampaignDraftService": { - "retry_codes": { - "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], - "non_idempotent": [] - }, - "retry_params": { - "default": { - "initial_retry_delay_millis": 5000, - "retry_delay_multiplier": 1.3, - "max_retry_delay_millis": 60000, - "initial_rpc_timeout_millis": 3600000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 3600000, - "total_timeout_millis": 3600000 - } - }, - "methods": { - "GetCampaignDraft": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default" - }, - "MutateCampaignDrafts": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default" - }, - "PromoteCampaignDraft": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default" - }, - "ListCampaignDraftAsyncErrors": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default" - } - } - } - } -} diff --git a/google/ads/google_ads/v1/services/campaign_experiment_service_client.py b/google/ads/google_ads/v1/services/campaign_experiment_service_client.py deleted file mode 100644 index 15547c9b1..000000000 --- a/google/ads/google_ads/v1/services/campaign_experiment_service_client.py +++ /dev/null @@ -1,600 +0,0 @@ -# -*- coding: utf-8 -*- -# -# 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. -"""Accesses the google.ads.googleads.v1.services CampaignExperimentService API.""" - -import functools -import pkg_resources -import warnings - -from google.oauth2 import service_account -import google.api_core.gapic_v1.client_info -import google.api_core.gapic_v1.config -import google.api_core.gapic_v1.method -import google.api_core.grpc_helpers -import google.api_core.operation -import google.api_core.operations_v1 -import google.api_core.page_iterator -import google.api_core.path_template - -from google.ads.google_ads.v1.services import campaign_experiment_service_client_config -from google.ads.google_ads.v1.services.transports import campaign_experiment_service_grpc_transport -from google.ads.google_ads.v1.proto.services import campaign_experiment_service_pb2 -from google.protobuf import empty_pb2 - -_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( - 'google-ads', ).version - - -class CampaignExperimentServiceClient(object): - """ - CampaignExperimentService manages the life cycle of campaign experiments. - It is used to create new experiments from drafts, modify experiment - properties, promote changes in an experiment back to its base campaign, - graduate experiments into new stand-alone campaigns, and to remove an - experiment. - - An experiment consists of two variants or arms - the base campaign and the - experiment campaign, directing a fixed share of traffic to each arm. - A campaign experiment is created from a draft of changes to the base campaign - and will be a snapshot of changes in the draft at the time of creation. - """ - - SERVICE_ADDRESS = 'googleads.googleapis.com:443' - """The default address of the service.""" - - # The name of the interface for this client. This is the key used to - # find the method configuration in the client_config dictionary. - _INTERFACE_NAME = 'google.ads.googleads.v1.services.CampaignExperimentService' - - @classmethod - def from_service_account_file(cls, filename, *args, **kwargs): - """Creates an instance of this client using the provided credentials - file. - - Args: - filename (str): The path to the service account private key json - file. - args: Additional arguments to pass to the constructor. - kwargs: Additional arguments to pass to the constructor. - - Returns: - CampaignExperimentServiceClient: The constructed client. - """ - credentials = service_account.Credentials.from_service_account_file( - filename) - kwargs['credentials'] = credentials - return cls(*args, **kwargs) - - from_service_account_json = from_service_account_file - - @classmethod - def campaign_experiment_path(cls, customer, campaign_experiment): - """Return a fully-qualified campaign_experiment string.""" - return google.api_core.path_template.expand( - 'customers/{customer}/campaignExperiments/{campaign_experiment}', - customer=customer, - campaign_experiment=campaign_experiment, - ) - - def __init__(self, - transport=None, - channel=None, - credentials=None, - client_config=None, - client_info=None): - """Constructor. - - Args: - transport (Union[~.CampaignExperimentServiceGrpcTransport, - Callable[[~.Credentials, type], ~.CampaignExperimentServiceGrpcTransport]): A transport - instance, responsible for actually making the API calls. - The default transport uses the gRPC protocol. - This argument may also be a callable which returns a - transport instance. Callables will be sent the credentials - as the first argument and the default transport class as - the second argument. - channel (grpc.Channel): DEPRECATED. A ``Channel`` instance - through which to make calls. This argument is mutually exclusive - with ``credentials``; providing both will raise an exception. - credentials (google.auth.credentials.Credentials): The - authorization credentials to attach to requests. These - credentials identify this application to the service. If none - are specified, the client will attempt to ascertain the - credentials from the environment. - This argument is mutually exclusive with providing a - transport instance to ``transport``; doing so will raise - an exception. - client_config (dict): DEPRECATED. A dictionary of call options for - each method. If not specified, the default configuration is used. - client_info (google.api_core.gapic_v1.client_info.ClientInfo): - The client info used to send a user-agent string along with - API requests. If ``None``, then default info will be used. - Generally, you only need to set this if you're developing - your own client library. - """ - # Raise deprecation warnings for things we want to go away. - if client_config is not None: - warnings.warn( - 'The `client_config` argument is deprecated.', - PendingDeprecationWarning, - stacklevel=2) - else: - client_config = campaign_experiment_service_client_config.config - - if channel: - warnings.warn( - 'The `channel` argument is deprecated; use ' - '`transport` instead.', - PendingDeprecationWarning, - stacklevel=2) - - # Instantiate the transport. - # The transport is responsible for handling serialization and - # deserialization and actually sending data to the service. - if transport: - if callable(transport): - self.transport = transport( - credentials=credentials, - default_class=campaign_experiment_service_grpc_transport. - CampaignExperimentServiceGrpcTransport, - ) - else: - if credentials: - raise ValueError( - 'Received both a transport instance and ' - 'credentials; these are mutually exclusive.') - self.transport = transport - else: - self.transport = campaign_experiment_service_grpc_transport.CampaignExperimentServiceGrpcTransport( - address=self.SERVICE_ADDRESS, - channel=channel, - credentials=credentials, - ) - - if client_info is None: - client_info = google.api_core.gapic_v1.client_info.ClientInfo( - gapic_version=_GAPIC_LIBRARY_VERSION, ) - else: - client_info.gapic_version = _GAPIC_LIBRARY_VERSION - self._client_info = client_info - - # Parse out the default settings for retry and timeout for each RPC - # from the client configuration. - # (Ordinarily, these are the defaults specified in the `*_config.py` - # file next to this one.) - self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( - client_config['interfaces'][self._INTERFACE_NAME], ) - - # Save a dictionary of cached API call functions. - # These are the actual callables which invoke the proper - # transport methods, wrapped with `wrap_method` to add retry, - # timeout, and the like. - self._inner_api_calls = {} - - # Service calls - def get_campaign_experiment( - self, - resource_name, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): - """ - Returns the requested campaign experiment in full detail. - - Args: - resource_name (str): The resource name of the campaign experiment to fetch. - retry (Optional[google.api_core.retry.Retry]): A retry object used - to retry requests. If ``None`` is specified, requests will not - be retried. - timeout (Optional[float]): The amount of time, in seconds, to wait - for the request to complete. Note that if ``retry`` is - specified, the timeout applies to each individual attempt. - metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata - that is provided to the method. - - Returns: - A :class:`~google.ads.googleads_v1.types.CampaignExperiment` instance. - - Raises: - google.api_core.exceptions.GoogleAPICallError: If the request - failed for any reason. - google.api_core.exceptions.RetryError: If the request failed due - to a retryable error and retry attempts failed. - ValueError: If the parameters are invalid. - """ - # Wrap the transport method to add retry and timeout logic. - if 'get_campaign_experiment' not in self._inner_api_calls: - self._inner_api_calls[ - 'get_campaign_experiment'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.get_campaign_experiment, - default_retry=self. - _method_configs['GetCampaignExperiment'].retry, - default_timeout=self. - _method_configs['GetCampaignExperiment'].timeout, - client_info=self._client_info, - ) - - request = campaign_experiment_service_pb2.GetCampaignExperimentRequest( - resource_name=resource_name, ) - return self._inner_api_calls['get_campaign_experiment']( - request, retry=retry, timeout=timeout, metadata=metadata) - - def create_campaign_experiment( - self, - customer_id, - campaign_experiment, - validate_only=None, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): - """ - Creates a campaign experiment based on a campaign draft. The draft campaign - will be forked into a real campaign (called the experiment campaign) that - will begin serving ads if successfully created. - - The campaign experiment is created immediately with status INITIALIZING. - This method return a long running operation that tracks the forking of the - draft campaign. If the forking fails, a list of errors can be retrieved - using the ListCampaignExperimentAsyncErrors method. The operation's - metadata will be a StringValue containing the resource name of the created - campaign experiment. - - Args: - customer_id (str): The ID of the customer whose campaign experiment is being created. - campaign_experiment (Union[dict, ~google.ads.googleads_v1.types.CampaignExperiment]): The campaign experiment to be created. - - If a dict is provided, it must be of the same form as the protobuf - message :class:`~google.ads.googleads_v1.types.CampaignExperiment` - validate_only (bool): If true, the request is validated but not executed. Only errors are - returned, not results. - retry (Optional[google.api_core.retry.Retry]): A retry object used - to retry requests. If ``None`` is specified, requests will not - be retried. - timeout (Optional[float]): The amount of time, in seconds, to wait - for the request to complete. Note that if ``retry`` is - specified, the timeout applies to each individual attempt. - metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata - that is provided to the method. - - Returns: - A :class:`~google.ads.googleads_v1.types._OperationFuture` instance. - - Raises: - google.api_core.exceptions.GoogleAPICallError: If the request - failed for any reason. - google.api_core.exceptions.RetryError: If the request failed due - to a retryable error and retry attempts failed. - ValueError: If the parameters are invalid. - """ - # Wrap the transport method to add retry and timeout logic. - if 'create_campaign_experiment' not in self._inner_api_calls: - self._inner_api_calls[ - 'create_campaign_experiment'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.create_campaign_experiment, - default_retry=self. - _method_configs['CreateCampaignExperiment'].retry, - default_timeout=self. - _method_configs['CreateCampaignExperiment'].timeout, - client_info=self._client_info, - ) - - request = campaign_experiment_service_pb2.CreateCampaignExperimentRequest( - customer_id=customer_id, - campaign_experiment=campaign_experiment, - validate_only=validate_only, - ) - operation = self._inner_api_calls['create_campaign_experiment']( - request, retry=retry, timeout=timeout, metadata=metadata) - return google.api_core.operation.from_gapic( - operation, - self.transport._operations_client, - empty_pb2.Empty, - metadata_type=campaign_experiment_service_pb2. - CreateCampaignExperimentMetadata, - ) - - def mutate_campaign_experiments( - self, - customer_id, - operations, - partial_failure=None, - validate_only=None, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): - """ - Updates campaign experiments. Operation statuses are returned. - - Args: - customer_id (str): The ID of the customer whose campaign experiments are being modified. - operations (list[Union[dict, ~google.ads.googleads_v1.types.CampaignExperimentOperation]]): The list of operations to perform on individual campaign experiments. - - If a dict is provided, it must be of the same form as the protobuf - message :class:`~google.ads.googleads_v1.types.CampaignExperimentOperation` - partial_failure (bool): If true, successful operations will be carried out and invalid - operations will return errors. If false, all operations will be carried - out in one transaction if and only if they are all valid. - Default is false. - validate_only (bool): If true, the request is validated but not executed. Only errors are - returned, not results. - retry (Optional[google.api_core.retry.Retry]): A retry object used - to retry requests. If ``None`` is specified, requests will not - be retried. - timeout (Optional[float]): The amount of time, in seconds, to wait - for the request to complete. Note that if ``retry`` is - specified, the timeout applies to each individual attempt. - metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata - that is provided to the method. - - Returns: - A :class:`~google.ads.googleads_v1.types.MutateCampaignExperimentsResponse` instance. - - Raises: - google.api_core.exceptions.GoogleAPICallError: If the request - failed for any reason. - google.api_core.exceptions.RetryError: If the request failed due - to a retryable error and retry attempts failed. - ValueError: If the parameters are invalid. - """ - # Wrap the transport method to add retry and timeout logic. - if 'mutate_campaign_experiments' not in self._inner_api_calls: - self._inner_api_calls[ - 'mutate_campaign_experiments'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.mutate_campaign_experiments, - default_retry=self. - _method_configs['MutateCampaignExperiments'].retry, - default_timeout=self. - _method_configs['MutateCampaignExperiments'].timeout, - client_info=self._client_info, - ) - - request = campaign_experiment_service_pb2.MutateCampaignExperimentsRequest( - customer_id=customer_id, - operations=operations, - partial_failure=partial_failure, - validate_only=validate_only, - ) - return self._inner_api_calls['mutate_campaign_experiments']( - request, retry=retry, timeout=timeout, metadata=metadata) - - def graduate_campaign_experiment( - self, - campaign_experiment, - campaign_budget, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): - """ - Graduates a campaign experiment to a full campaign. The base and experiment - campaigns will start running independently with their own budgets. - - Args: - campaign_experiment (str): The resource name of the campaign experiment to graduate. - campaign_budget (str): Resource name of the budget to attach to the campaign graduated from the - experiment. - retry (Optional[google.api_core.retry.Retry]): A retry object used - to retry requests. If ``None`` is specified, requests will not - be retried. - timeout (Optional[float]): The amount of time, in seconds, to wait - for the request to complete. Note that if ``retry`` is - specified, the timeout applies to each individual attempt. - metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata - that is provided to the method. - - Returns: - A :class:`~google.ads.googleads_v1.types.GraduateCampaignExperimentResponse` instance. - - Raises: - google.api_core.exceptions.GoogleAPICallError: If the request - failed for any reason. - google.api_core.exceptions.RetryError: If the request failed due - to a retryable error and retry attempts failed. - ValueError: If the parameters are invalid. - """ - # Wrap the transport method to add retry and timeout logic. - if 'graduate_campaign_experiment' not in self._inner_api_calls: - self._inner_api_calls[ - 'graduate_campaign_experiment'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.graduate_campaign_experiment, - default_retry=self. - _method_configs['GraduateCampaignExperiment'].retry, - default_timeout=self. - _method_configs['GraduateCampaignExperiment'].timeout, - client_info=self._client_info, - ) - - request = campaign_experiment_service_pb2.GraduateCampaignExperimentRequest( - campaign_experiment=campaign_experiment, - campaign_budget=campaign_budget, - ) - return self._inner_api_calls['graduate_campaign_experiment']( - request, retry=retry, timeout=timeout, metadata=metadata) - - def promote_campaign_experiment( - self, - campaign_experiment, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): - """ - Promotes the changes in a experiment campaign back to the base campaign. - - The campaign experiment is updated immediately with status PROMOTING. - This method return a long running operation that tracks the promoting of - the experiment campaign. If the promoting fails, a list of errors can be - retrieved using the ListCampaignExperimentAsyncErrors method. - - Args: - campaign_experiment (str): The resource name of the campaign experiment to promote. - retry (Optional[google.api_core.retry.Retry]): A retry object used - to retry requests. If ``None`` is specified, requests will not - be retried. - timeout (Optional[float]): The amount of time, in seconds, to wait - for the request to complete. Note that if ``retry`` is - specified, the timeout applies to each individual attempt. - metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata - that is provided to the method. - - Returns: - A :class:`~google.ads.googleads_v1.types._OperationFuture` instance. - - Raises: - google.api_core.exceptions.GoogleAPICallError: If the request - failed for any reason. - google.api_core.exceptions.RetryError: If the request failed due - to a retryable error and retry attempts failed. - ValueError: If the parameters are invalid. - """ - # Wrap the transport method to add retry and timeout logic. - if 'promote_campaign_experiment' not in self._inner_api_calls: - self._inner_api_calls[ - 'promote_campaign_experiment'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.promote_campaign_experiment, - default_retry=self. - _method_configs['PromoteCampaignExperiment'].retry, - default_timeout=self. - _method_configs['PromoteCampaignExperiment'].timeout, - client_info=self._client_info, - ) - - request = campaign_experiment_service_pb2.PromoteCampaignExperimentRequest( - campaign_experiment=campaign_experiment, ) - operation = self._inner_api_calls['promote_campaign_experiment']( - request, retry=retry, timeout=timeout, metadata=metadata) - return google.api_core.operation.from_gapic( - operation, - self.transport._operations_client, - empty_pb2.Empty, - metadata_type=empty_pb2.Empty, - ) - - def end_campaign_experiment( - self, - campaign_experiment, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): - """ - Immediately ends a campaign experiment, changing the experiment's scheduled - end date and without waiting for end of day. End date is updated to be the - time of the request. - - Args: - campaign_experiment (str): The resource name of the campaign experiment to end. - retry (Optional[google.api_core.retry.Retry]): A retry object used - to retry requests. If ``None`` is specified, requests will not - be retried. - timeout (Optional[float]): The amount of time, in seconds, to wait - for the request to complete. Note that if ``retry`` is - specified, the timeout applies to each individual attempt. - metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata - that is provided to the method. - - Raises: - google.api_core.exceptions.GoogleAPICallError: If the request - failed for any reason. - google.api_core.exceptions.RetryError: If the request failed due - to a retryable error and retry attempts failed. - ValueError: If the parameters are invalid. - """ - # Wrap the transport method to add retry and timeout logic. - if 'end_campaign_experiment' not in self._inner_api_calls: - self._inner_api_calls[ - 'end_campaign_experiment'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.end_campaign_experiment, - default_retry=self. - _method_configs['EndCampaignExperiment'].retry, - default_timeout=self. - _method_configs['EndCampaignExperiment'].timeout, - client_info=self._client_info, - ) - - request = campaign_experiment_service_pb2.EndCampaignExperimentRequest( - campaign_experiment=campaign_experiment, ) - self._inner_api_calls['end_campaign_experiment']( - request, retry=retry, timeout=timeout, metadata=metadata) - - def list_campaign_experiment_async_errors( - self, - resource_name, - page_size=None, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): - """ - Returns all errors that occurred during CampaignExperiment create or - promote (whichever occurred last). - Supports standard list paging. - - Args: - resource_name (str): The name of the campaign experiment from which to retrieve the async - errors. - page_size (int): The maximum number of resources contained in the - underlying API response. If page streaming is performed per- - resource, this parameter does not affect the return value. If page - streaming is performed per-page, this determines the maximum number - of resources in a page. - retry (Optional[google.api_core.retry.Retry]): A retry object used - to retry requests. If ``None`` is specified, requests will not - be retried. - timeout (Optional[float]): The amount of time, in seconds, to wait - for the request to complete. Note that if ``retry`` is - specified, the timeout applies to each individual attempt. - metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata - that is provided to the method. - - Returns: - A :class:`~google.gax.PageIterator` instance. By default, this - is an iterable of :class:`~google.ads.googleads_v1.types.Status` instances. - This object can also be configured to iterate over the pages - of the response through the `options` parameter. - - Raises: - google.api_core.exceptions.GoogleAPICallError: If the request - failed for any reason. - google.api_core.exceptions.RetryError: If the request failed due - to a retryable error and retry attempts failed. - ValueError: If the parameters are invalid. - """ - # Wrap the transport method to add retry and timeout logic. - if 'list_campaign_experiment_async_errors' not in self._inner_api_calls: - self._inner_api_calls[ - 'list_campaign_experiment_async_errors'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.list_campaign_experiment_async_errors, - default_retry=self. - _method_configs['ListCampaignExperimentAsyncErrors'].retry, - default_timeout=self._method_configs[ - 'ListCampaignExperimentAsyncErrors'].timeout, - client_info=self._client_info, - ) - - request = campaign_experiment_service_pb2.ListCampaignExperimentAsyncErrorsRequest( - resource_name=resource_name, - page_size=page_size, - ) - iterator = google.api_core.page_iterator.GRPCIterator( - client=None, - method=functools.partial( - self._inner_api_calls['list_campaign_experiment_async_errors'], - retry=retry, - timeout=timeout, - metadata=metadata), - request=request, - items_field='errors', - request_token_field='page_token', - response_token_field='next_page_token', - ) - return iterator diff --git a/google/ads/google_ads/v1/services/campaign_experiment_service_client_config.py b/google/ads/google_ads/v1/services/campaign_experiment_service_client_config.py deleted file mode 100644 index 50ed52d30..000000000 --- a/google/ads/google_ads/v1/services/campaign_experiment_service_client_config.py +++ /dev/null @@ -1,58 +0,0 @@ -config = { - "interfaces": { - "google.ads.googleads.v1.services.CampaignExperimentService": { - "retry_codes": { - "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], - "non_idempotent": [] - }, - "retry_params": { - "default": { - "initial_retry_delay_millis": 5000, - "retry_delay_multiplier": 1.3, - "max_retry_delay_millis": 60000, - "initial_rpc_timeout_millis": 3600000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 3600000, - "total_timeout_millis": 3600000 - } - }, - "methods": { - "GetCampaignExperiment": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default" - }, - "CreateCampaignExperiment": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default" - }, - "MutateCampaignExperiments": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default" - }, - "GraduateCampaignExperiment": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default" - }, - "PromoteCampaignExperiment": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default" - }, - "EndCampaignExperiment": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default" - }, - "ListCampaignExperimentAsyncErrors": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default" - } - } - } - } -} diff --git a/google/ads/google_ads/v1/services/campaign_extension_setting_service_client.py b/google/ads/google_ads/v1/services/campaign_extension_setting_service_client.py deleted file mode 100644 index aefd3d86b..000000000 --- a/google/ads/google_ads/v1/services/campaign_extension_setting_service_client.py +++ /dev/null @@ -1,286 +0,0 @@ -# -*- coding: utf-8 -*- -# -# 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. -"""Accesses the google.ads.googleads.v1.services CampaignExtensionSettingService API.""" - -import pkg_resources -import warnings - -from google.oauth2 import service_account -import google.api_core.gapic_v1.client_info -import google.api_core.gapic_v1.config -import google.api_core.gapic_v1.method -import google.api_core.grpc_helpers -import google.api_core.path_template - -from google.ads.google_ads.v1.services import campaign_extension_setting_service_client_config -from google.ads.google_ads.v1.services.transports import campaign_extension_setting_service_grpc_transport -from google.ads.google_ads.v1.proto.services import campaign_extension_setting_service_pb2 - -_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( - 'google-ads', ).version - - -class CampaignExtensionSettingServiceClient(object): - """Service to manage campaign extension settings.""" - - SERVICE_ADDRESS = 'googleads.googleapis.com:443' - """The default address of the service.""" - - # The name of the interface for this client. This is the key used to - # find the method configuration in the client_config dictionary. - _INTERFACE_NAME = 'google.ads.googleads.v1.services.CampaignExtensionSettingService' - - @classmethod - def from_service_account_file(cls, filename, *args, **kwargs): - """Creates an instance of this client using the provided credentials - file. - - Args: - filename (str): The path to the service account private key json - file. - args: Additional arguments to pass to the constructor. - kwargs: Additional arguments to pass to the constructor. - - Returns: - CampaignExtensionSettingServiceClient: The constructed client. - """ - credentials = service_account.Credentials.from_service_account_file( - filename) - kwargs['credentials'] = credentials - return cls(*args, **kwargs) - - from_service_account_json = from_service_account_file - - @classmethod - def campaign_extension_setting_path(cls, customer, - campaign_extension_setting): - """Return a fully-qualified campaign_extension_setting string.""" - return google.api_core.path_template.expand( - 'customers/{customer}/campaignExtensionSettings/{campaign_extension_setting}', - customer=customer, - campaign_extension_setting=campaign_extension_setting, - ) - - def __init__(self, - transport=None, - channel=None, - credentials=None, - client_config=None, - client_info=None): - """Constructor. - - Args: - transport (Union[~.CampaignExtensionSettingServiceGrpcTransport, - Callable[[~.Credentials, type], ~.CampaignExtensionSettingServiceGrpcTransport]): A transport - instance, responsible for actually making the API calls. - The default transport uses the gRPC protocol. - This argument may also be a callable which returns a - transport instance. Callables will be sent the credentials - as the first argument and the default transport class as - the second argument. - channel (grpc.Channel): DEPRECATED. A ``Channel`` instance - through which to make calls. This argument is mutually exclusive - with ``credentials``; providing both will raise an exception. - credentials (google.auth.credentials.Credentials): The - authorization credentials to attach to requests. These - credentials identify this application to the service. If none - are specified, the client will attempt to ascertain the - credentials from the environment. - This argument is mutually exclusive with providing a - transport instance to ``transport``; doing so will raise - an exception. - client_config (dict): DEPRECATED. A dictionary of call options for - each method. If not specified, the default configuration is used. - client_info (google.api_core.gapic_v1.client_info.ClientInfo): - The client info used to send a user-agent string along with - API requests. If ``None``, then default info will be used. - Generally, you only need to set this if you're developing - your own client library. - """ - # Raise deprecation warnings for things we want to go away. - if client_config is not None: - warnings.warn( - 'The `client_config` argument is deprecated.', - PendingDeprecationWarning, - stacklevel=2) - else: - client_config = campaign_extension_setting_service_client_config.config - - if channel: - warnings.warn( - 'The `channel` argument is deprecated; use ' - '`transport` instead.', - PendingDeprecationWarning, - stacklevel=2) - - # Instantiate the transport. - # The transport is responsible for handling serialization and - # deserialization and actually sending data to the service. - if transport: - if callable(transport): - self.transport = transport( - credentials=credentials, - default_class= - campaign_extension_setting_service_grpc_transport. - CampaignExtensionSettingServiceGrpcTransport, - ) - else: - if credentials: - raise ValueError( - 'Received both a transport instance and ' - 'credentials; these are mutually exclusive.') - self.transport = transport - else: - self.transport = campaign_extension_setting_service_grpc_transport.CampaignExtensionSettingServiceGrpcTransport( - address=self.SERVICE_ADDRESS, - channel=channel, - credentials=credentials, - ) - - if client_info is None: - client_info = google.api_core.gapic_v1.client_info.ClientInfo( - gapic_version=_GAPIC_LIBRARY_VERSION, ) - else: - client_info.gapic_version = _GAPIC_LIBRARY_VERSION - self._client_info = client_info - - # Parse out the default settings for retry and timeout for each RPC - # from the client configuration. - # (Ordinarily, these are the defaults specified in the `*_config.py` - # file next to this one.) - self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( - client_config['interfaces'][self._INTERFACE_NAME], ) - - # Save a dictionary of cached API call functions. - # These are the actual callables which invoke the proper - # transport methods, wrapped with `wrap_method` to add retry, - # timeout, and the like. - self._inner_api_calls = {} - - # Service calls - def get_campaign_extension_setting( - self, - resource_name, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): - """ - Returns the requested campaign extension setting in full detail. - - Args: - resource_name (str): The resource name of the campaign extension setting to fetch. - retry (Optional[google.api_core.retry.Retry]): A retry object used - to retry requests. If ``None`` is specified, requests will not - be retried. - timeout (Optional[float]): The amount of time, in seconds, to wait - for the request to complete. Note that if ``retry`` is - specified, the timeout applies to each individual attempt. - metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata - that is provided to the method. - - Returns: - A :class:`~google.ads.googleads_v1.types.CampaignExtensionSetting` instance. - - Raises: - google.api_core.exceptions.GoogleAPICallError: If the request - failed for any reason. - google.api_core.exceptions.RetryError: If the request failed due - to a retryable error and retry attempts failed. - ValueError: If the parameters are invalid. - """ - # Wrap the transport method to add retry and timeout logic. - if 'get_campaign_extension_setting' not in self._inner_api_calls: - self._inner_api_calls[ - 'get_campaign_extension_setting'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.get_campaign_extension_setting, - default_retry=self. - _method_configs['GetCampaignExtensionSetting'].retry, - default_timeout=self. - _method_configs['GetCampaignExtensionSetting'].timeout, - client_info=self._client_info, - ) - - request = campaign_extension_setting_service_pb2.GetCampaignExtensionSettingRequest( - resource_name=resource_name, ) - return self._inner_api_calls['get_campaign_extension_setting']( - request, retry=retry, timeout=timeout, metadata=metadata) - - def mutate_campaign_extension_settings( - self, - customer_id, - operations, - partial_failure=None, - validate_only=None, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): - """ - Creates, updates, or removes campaign extension settings. Operation - statuses are returned. - - Args: - customer_id (str): The ID of the customer whose campaign extension settings are being - modified. - operations (list[Union[dict, ~google.ads.googleads_v1.types.CampaignExtensionSettingOperation]]): The list of operations to perform on individual campaign extension - settings. - - If a dict is provided, it must be of the same form as the protobuf - message :class:`~google.ads.googleads_v1.types.CampaignExtensionSettingOperation` - partial_failure (bool): If true, successful operations will be carried out and invalid - operations will return errors. If false, all operations will be carried - out in one transaction if and only if they are all valid. - Default is false. - validate_only (bool): If true, the request is validated but not executed. Only errors are - returned, not results. - retry (Optional[google.api_core.retry.Retry]): A retry object used - to retry requests. If ``None`` is specified, requests will not - be retried. - timeout (Optional[float]): The amount of time, in seconds, to wait - for the request to complete. Note that if ``retry`` is - specified, the timeout applies to each individual attempt. - metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata - that is provided to the method. - - Returns: - A :class:`~google.ads.googleads_v1.types.MutateCampaignExtensionSettingsResponse` instance. - - Raises: - google.api_core.exceptions.GoogleAPICallError: If the request - failed for any reason. - google.api_core.exceptions.RetryError: If the request failed due - to a retryable error and retry attempts failed. - ValueError: If the parameters are invalid. - """ - # Wrap the transport method to add retry and timeout logic. - if 'mutate_campaign_extension_settings' not in self._inner_api_calls: - self._inner_api_calls[ - 'mutate_campaign_extension_settings'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.mutate_campaign_extension_settings, - default_retry=self. - _method_configs['MutateCampaignExtensionSettings'].retry, - default_timeout=self. - _method_configs['MutateCampaignExtensionSettings'].timeout, - client_info=self._client_info, - ) - - request = campaign_extension_setting_service_pb2.MutateCampaignExtensionSettingsRequest( - customer_id=customer_id, - operations=operations, - partial_failure=partial_failure, - validate_only=validate_only, - ) - return self._inner_api_calls['mutate_campaign_extension_settings']( - request, retry=retry, timeout=timeout, metadata=metadata) diff --git a/google/ads/google_ads/v1/services/campaign_extension_setting_service_client_config.py b/google/ads/google_ads/v1/services/campaign_extension_setting_service_client_config.py deleted file mode 100644 index 863ac7f1f..000000000 --- a/google/ads/google_ads/v1/services/campaign_extension_setting_service_client_config.py +++ /dev/null @@ -1,33 +0,0 @@ -config = { - "interfaces": { - "google.ads.googleads.v1.services.CampaignExtensionSettingService": { - "retry_codes": { - "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], - "non_idempotent": [] - }, - "retry_params": { - "default": { - "initial_retry_delay_millis": 5000, - "retry_delay_multiplier": 1.3, - "max_retry_delay_millis": 60000, - "initial_rpc_timeout_millis": 3600000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 3600000, - "total_timeout_millis": 3600000 - } - }, - "methods": { - "GetCampaignExtensionSetting": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default" - }, - "MutateCampaignExtensionSettings": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default" - } - } - } - } -} diff --git a/google/ads/google_ads/v1/services/campaign_feed_service_client.py b/google/ads/google_ads/v1/services/campaign_feed_service_client.py deleted file mode 100644 index f53778d6c..000000000 --- a/google/ads/google_ads/v1/services/campaign_feed_service_client.py +++ /dev/null @@ -1,280 +0,0 @@ -# -*- coding: utf-8 -*- -# -# 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. -"""Accesses the google.ads.googleads.v1.services CampaignFeedService API.""" - -import pkg_resources -import warnings - -from google.oauth2 import service_account -import google.api_core.gapic_v1.client_info -import google.api_core.gapic_v1.config -import google.api_core.gapic_v1.method -import google.api_core.grpc_helpers -import google.api_core.path_template - -from google.ads.google_ads.v1.services import campaign_feed_service_client_config -from google.ads.google_ads.v1.services.transports import campaign_feed_service_grpc_transport -from google.ads.google_ads.v1.proto.services import campaign_feed_service_pb2 - -_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( - 'google-ads', ).version - - -class CampaignFeedServiceClient(object): - """Service to manage campaign feeds.""" - - SERVICE_ADDRESS = 'googleads.googleapis.com:443' - """The default address of the service.""" - - # The name of the interface for this client. This is the key used to - # find the method configuration in the client_config dictionary. - _INTERFACE_NAME = 'google.ads.googleads.v1.services.CampaignFeedService' - - @classmethod - def from_service_account_file(cls, filename, *args, **kwargs): - """Creates an instance of this client using the provided credentials - file. - - Args: - filename (str): The path to the service account private key json - file. - args: Additional arguments to pass to the constructor. - kwargs: Additional arguments to pass to the constructor. - - Returns: - CampaignFeedServiceClient: The constructed client. - """ - credentials = service_account.Credentials.from_service_account_file( - filename) - kwargs['credentials'] = credentials - return cls(*args, **kwargs) - - from_service_account_json = from_service_account_file - - @classmethod - def campaign_feed_path(cls, customer, campaign_feed): - """Return a fully-qualified campaign_feed string.""" - return google.api_core.path_template.expand( - 'customers/{customer}/campaignFeeds/{campaign_feed}', - customer=customer, - campaign_feed=campaign_feed, - ) - - def __init__(self, - transport=None, - channel=None, - credentials=None, - client_config=None, - client_info=None): - """Constructor. - - Args: - transport (Union[~.CampaignFeedServiceGrpcTransport, - Callable[[~.Credentials, type], ~.CampaignFeedServiceGrpcTransport]): A transport - instance, responsible for actually making the API calls. - The default transport uses the gRPC protocol. - This argument may also be a callable which returns a - transport instance. Callables will be sent the credentials - as the first argument and the default transport class as - the second argument. - channel (grpc.Channel): DEPRECATED. A ``Channel`` instance - through which to make calls. This argument is mutually exclusive - with ``credentials``; providing both will raise an exception. - credentials (google.auth.credentials.Credentials): The - authorization credentials to attach to requests. These - credentials identify this application to the service. If none - are specified, the client will attempt to ascertain the - credentials from the environment. - This argument is mutually exclusive with providing a - transport instance to ``transport``; doing so will raise - an exception. - client_config (dict): DEPRECATED. A dictionary of call options for - each method. If not specified, the default configuration is used. - client_info (google.api_core.gapic_v1.client_info.ClientInfo): - The client info used to send a user-agent string along with - API requests. If ``None``, then default info will be used. - Generally, you only need to set this if you're developing - your own client library. - """ - # Raise deprecation warnings for things we want to go away. - if client_config is not None: - warnings.warn( - 'The `client_config` argument is deprecated.', - PendingDeprecationWarning, - stacklevel=2) - else: - client_config = campaign_feed_service_client_config.config - - if channel: - warnings.warn( - 'The `channel` argument is deprecated; use ' - '`transport` instead.', - PendingDeprecationWarning, - stacklevel=2) - - # Instantiate the transport. - # The transport is responsible for handling serialization and - # deserialization and actually sending data to the service. - if transport: - if callable(transport): - self.transport = transport( - credentials=credentials, - default_class=campaign_feed_service_grpc_transport. - CampaignFeedServiceGrpcTransport, - ) - else: - if credentials: - raise ValueError( - 'Received both a transport instance and ' - 'credentials; these are mutually exclusive.') - self.transport = transport - else: - self.transport = campaign_feed_service_grpc_transport.CampaignFeedServiceGrpcTransport( - address=self.SERVICE_ADDRESS, - channel=channel, - credentials=credentials, - ) - - if client_info is None: - client_info = google.api_core.gapic_v1.client_info.ClientInfo( - gapic_version=_GAPIC_LIBRARY_VERSION, ) - else: - client_info.gapic_version = _GAPIC_LIBRARY_VERSION - self._client_info = client_info - - # Parse out the default settings for retry and timeout for each RPC - # from the client configuration. - # (Ordinarily, these are the defaults specified in the `*_config.py` - # file next to this one.) - self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( - client_config['interfaces'][self._INTERFACE_NAME], ) - - # Save a dictionary of cached API call functions. - # These are the actual callables which invoke the proper - # transport methods, wrapped with `wrap_method` to add retry, - # timeout, and the like. - self._inner_api_calls = {} - - # Service calls - def get_campaign_feed(self, - resource_name, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): - """ - Returns the requested campaign feed in full detail. - - Args: - resource_name (str): The resource name of the campaign feed to fetch. - retry (Optional[google.api_core.retry.Retry]): A retry object used - to retry requests. If ``None`` is specified, requests will not - be retried. - timeout (Optional[float]): The amount of time, in seconds, to wait - for the request to complete. Note that if ``retry`` is - specified, the timeout applies to each individual attempt. - metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata - that is provided to the method. - - Returns: - A :class:`~google.ads.googleads_v1.types.CampaignFeed` instance. - - Raises: - google.api_core.exceptions.GoogleAPICallError: If the request - failed for any reason. - google.api_core.exceptions.RetryError: If the request failed due - to a retryable error and retry attempts failed. - ValueError: If the parameters are invalid. - """ - # Wrap the transport method to add retry and timeout logic. - if 'get_campaign_feed' not in self._inner_api_calls: - self._inner_api_calls[ - 'get_campaign_feed'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.get_campaign_feed, - default_retry=self._method_configs['GetCampaignFeed']. - retry, - default_timeout=self._method_configs['GetCampaignFeed']. - timeout, - client_info=self._client_info, - ) - - request = campaign_feed_service_pb2.GetCampaignFeedRequest( - resource_name=resource_name, ) - return self._inner_api_calls['get_campaign_feed']( - request, retry=retry, timeout=timeout, metadata=metadata) - - def mutate_campaign_feeds(self, - customer_id, - operations, - partial_failure=None, - validate_only=None, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): - """ - Creates, updates, or removes campaign feeds. Operation statuses are - returned. - - Args: - customer_id (str): The ID of the customer whose campaign feeds are being modified. - operations (list[Union[dict, ~google.ads.googleads_v1.types.CampaignFeedOperation]]): The list of operations to perform on individual campaign feeds. - - If a dict is provided, it must be of the same form as the protobuf - message :class:`~google.ads.googleads_v1.types.CampaignFeedOperation` - partial_failure (bool): If true, successful operations will be carried out and invalid - operations will return errors. If false, all operations will be carried - out in one transaction if and only if they are all valid. - Default is false. - validate_only (bool): If true, the request is validated but not executed. Only errors are - returned, not results. - retry (Optional[google.api_core.retry.Retry]): A retry object used - to retry requests. If ``None`` is specified, requests will not - be retried. - timeout (Optional[float]): The amount of time, in seconds, to wait - for the request to complete. Note that if ``retry`` is - specified, the timeout applies to each individual attempt. - metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata - that is provided to the method. - - Returns: - A :class:`~google.ads.googleads_v1.types.MutateCampaignFeedsResponse` instance. - - Raises: - google.api_core.exceptions.GoogleAPICallError: If the request - failed for any reason. - google.api_core.exceptions.RetryError: If the request failed due - to a retryable error and retry attempts failed. - ValueError: If the parameters are invalid. - """ - # Wrap the transport method to add retry and timeout logic. - if 'mutate_campaign_feeds' not in self._inner_api_calls: - self._inner_api_calls[ - 'mutate_campaign_feeds'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.mutate_campaign_feeds, - default_retry=self._method_configs['MutateCampaignFeeds']. - retry, - default_timeout=self. - _method_configs['MutateCampaignFeeds'].timeout, - client_info=self._client_info, - ) - - request = campaign_feed_service_pb2.MutateCampaignFeedsRequest( - customer_id=customer_id, - operations=operations, - partial_failure=partial_failure, - validate_only=validate_only, - ) - return self._inner_api_calls['mutate_campaign_feeds']( - request, retry=retry, timeout=timeout, metadata=metadata) diff --git a/google/ads/google_ads/v1/services/campaign_feed_service_client_config.py b/google/ads/google_ads/v1/services/campaign_feed_service_client_config.py deleted file mode 100644 index c8d796fa7..000000000 --- a/google/ads/google_ads/v1/services/campaign_feed_service_client_config.py +++ /dev/null @@ -1,33 +0,0 @@ -config = { - "interfaces": { - "google.ads.googleads.v1.services.CampaignFeedService": { - "retry_codes": { - "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], - "non_idempotent": [] - }, - "retry_params": { - "default": { - "initial_retry_delay_millis": 5000, - "retry_delay_multiplier": 1.3, - "max_retry_delay_millis": 60000, - "initial_rpc_timeout_millis": 3600000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 3600000, - "total_timeout_millis": 3600000 - } - }, - "methods": { - "GetCampaignFeed": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default" - }, - "MutateCampaignFeeds": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default" - } - } - } - } -} diff --git a/google/ads/google_ads/v1/services/campaign_label_service_client.py b/google/ads/google_ads/v1/services/campaign_label_service_client.py deleted file mode 100644 index 013912e99..000000000 --- a/google/ads/google_ads/v1/services/campaign_label_service_client.py +++ /dev/null @@ -1,280 +0,0 @@ -# -*- coding: utf-8 -*- -# -# 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. -"""Accesses the google.ads.googleads.v1.services CampaignLabelService API.""" - -import pkg_resources -import warnings - -from google.oauth2 import service_account -import google.api_core.gapic_v1.client_info -import google.api_core.gapic_v1.config -import google.api_core.gapic_v1.method -import google.api_core.grpc_helpers -import google.api_core.path_template - -from google.ads.google_ads.v1.services import campaign_label_service_client_config -from google.ads.google_ads.v1.services.transports import campaign_label_service_grpc_transport -from google.ads.google_ads.v1.proto.services import campaign_label_service_pb2 - -_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( - 'google-ads', ).version - - -class CampaignLabelServiceClient(object): - """Service to manage labels on campaigns.""" - - SERVICE_ADDRESS = 'googleads.googleapis.com:443' - """The default address of the service.""" - - # The name of the interface for this client. This is the key used to - # find the method configuration in the client_config dictionary. - _INTERFACE_NAME = 'google.ads.googleads.v1.services.CampaignLabelService' - - @classmethod - def from_service_account_file(cls, filename, *args, **kwargs): - """Creates an instance of this client using the provided credentials - file. - - Args: - filename (str): The path to the service account private key json - file. - args: Additional arguments to pass to the constructor. - kwargs: Additional arguments to pass to the constructor. - - Returns: - CampaignLabelServiceClient: The constructed client. - """ - credentials = service_account.Credentials.from_service_account_file( - filename) - kwargs['credentials'] = credentials - return cls(*args, **kwargs) - - from_service_account_json = from_service_account_file - - @classmethod - def campaign_label_path(cls, customer, campaign_label): - """Return a fully-qualified campaign_label string.""" - return google.api_core.path_template.expand( - 'customers/{customer}/campaignLabels/{campaign_label}', - customer=customer, - campaign_label=campaign_label, - ) - - def __init__(self, - transport=None, - channel=None, - credentials=None, - client_config=None, - client_info=None): - """Constructor. - - Args: - transport (Union[~.CampaignLabelServiceGrpcTransport, - Callable[[~.Credentials, type], ~.CampaignLabelServiceGrpcTransport]): A transport - instance, responsible for actually making the API calls. - The default transport uses the gRPC protocol. - This argument may also be a callable which returns a - transport instance. Callables will be sent the credentials - as the first argument and the default transport class as - the second argument. - channel (grpc.Channel): DEPRECATED. A ``Channel`` instance - through which to make calls. This argument is mutually exclusive - with ``credentials``; providing both will raise an exception. - credentials (google.auth.credentials.Credentials): The - authorization credentials to attach to requests. These - credentials identify this application to the service. If none - are specified, the client will attempt to ascertain the - credentials from the environment. - This argument is mutually exclusive with providing a - transport instance to ``transport``; doing so will raise - an exception. - client_config (dict): DEPRECATED. A dictionary of call options for - each method. If not specified, the default configuration is used. - client_info (google.api_core.gapic_v1.client_info.ClientInfo): - The client info used to send a user-agent string along with - API requests. If ``None``, then default info will be used. - Generally, you only need to set this if you're developing - your own client library. - """ - # Raise deprecation warnings for things we want to go away. - if client_config is not None: - warnings.warn( - 'The `client_config` argument is deprecated.', - PendingDeprecationWarning, - stacklevel=2) - else: - client_config = campaign_label_service_client_config.config - - if channel: - warnings.warn( - 'The `channel` argument is deprecated; use ' - '`transport` instead.', - PendingDeprecationWarning, - stacklevel=2) - - # Instantiate the transport. - # The transport is responsible for handling serialization and - # deserialization and actually sending data to the service. - if transport: - if callable(transport): - self.transport = transport( - credentials=credentials, - default_class=campaign_label_service_grpc_transport. - CampaignLabelServiceGrpcTransport, - ) - else: - if credentials: - raise ValueError( - 'Received both a transport instance and ' - 'credentials; these are mutually exclusive.') - self.transport = transport - else: - self.transport = campaign_label_service_grpc_transport.CampaignLabelServiceGrpcTransport( - address=self.SERVICE_ADDRESS, - channel=channel, - credentials=credentials, - ) - - if client_info is None: - client_info = google.api_core.gapic_v1.client_info.ClientInfo( - gapic_version=_GAPIC_LIBRARY_VERSION, ) - else: - client_info.gapic_version = _GAPIC_LIBRARY_VERSION - self._client_info = client_info - - # Parse out the default settings for retry and timeout for each RPC - # from the client configuration. - # (Ordinarily, these are the defaults specified in the `*_config.py` - # file next to this one.) - self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( - client_config['interfaces'][self._INTERFACE_NAME], ) - - # Save a dictionary of cached API call functions. - # These are the actual callables which invoke the proper - # transport methods, wrapped with `wrap_method` to add retry, - # timeout, and the like. - self._inner_api_calls = {} - - # Service calls - def get_campaign_label(self, - resource_name, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): - """ - Returns the requested campaign-label relationship in full detail. - - Args: - resource_name (str): The resource name of the campaign-label relationship to fetch. - retry (Optional[google.api_core.retry.Retry]): A retry object used - to retry requests. If ``None`` is specified, requests will not - be retried. - timeout (Optional[float]): The amount of time, in seconds, to wait - for the request to complete. Note that if ``retry`` is - specified, the timeout applies to each individual attempt. - metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata - that is provided to the method. - - Returns: - A :class:`~google.ads.googleads_v1.types.CampaignLabel` instance. - - Raises: - google.api_core.exceptions.GoogleAPICallError: If the request - failed for any reason. - google.api_core.exceptions.RetryError: If the request failed due - to a retryable error and retry attempts failed. - ValueError: If the parameters are invalid. - """ - # Wrap the transport method to add retry and timeout logic. - if 'get_campaign_label' not in self._inner_api_calls: - self._inner_api_calls[ - 'get_campaign_label'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.get_campaign_label, - default_retry=self._method_configs['GetCampaignLabel']. - retry, - default_timeout=self._method_configs['GetCampaignLabel']. - timeout, - client_info=self._client_info, - ) - - request = campaign_label_service_pb2.GetCampaignLabelRequest( - resource_name=resource_name, ) - return self._inner_api_calls['get_campaign_label']( - request, retry=retry, timeout=timeout, metadata=metadata) - - def mutate_campaign_labels(self, - customer_id, - operations, - partial_failure=None, - validate_only=None, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): - """ - Creates and removes campaign-label relationships. - Operation statuses are returned. - - Args: - customer_id (str): ID of the customer whose campaign-label relationships are being modified. - operations (list[Union[dict, ~google.ads.googleads_v1.types.CampaignLabelOperation]]): The list of operations to perform on campaign-label relationships. - - If a dict is provided, it must be of the same form as the protobuf - message :class:`~google.ads.googleads_v1.types.CampaignLabelOperation` - partial_failure (bool): If true, successful operations will be carried out and invalid - operations will return errors. If false, all operations will be carried - out in one transaction if and only if they are all valid. - Default is false. - validate_only (bool): If true, the request is validated but not executed. Only errors are - returned, not results. - retry (Optional[google.api_core.retry.Retry]): A retry object used - to retry requests. If ``None`` is specified, requests will not - be retried. - timeout (Optional[float]): The amount of time, in seconds, to wait - for the request to complete. Note that if ``retry`` is - specified, the timeout applies to each individual attempt. - metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata - that is provided to the method. - - Returns: - A :class:`~google.ads.googleads_v1.types.MutateCampaignLabelsResponse` instance. - - Raises: - google.api_core.exceptions.GoogleAPICallError: If the request - failed for any reason. - google.api_core.exceptions.RetryError: If the request failed due - to a retryable error and retry attempts failed. - ValueError: If the parameters are invalid. - """ - # Wrap the transport method to add retry and timeout logic. - if 'mutate_campaign_labels' not in self._inner_api_calls: - self._inner_api_calls[ - 'mutate_campaign_labels'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.mutate_campaign_labels, - default_retry=self._method_configs['MutateCampaignLabels']. - retry, - default_timeout=self. - _method_configs['MutateCampaignLabels'].timeout, - client_info=self._client_info, - ) - - request = campaign_label_service_pb2.MutateCampaignLabelsRequest( - customer_id=customer_id, - operations=operations, - partial_failure=partial_failure, - validate_only=validate_only, - ) - return self._inner_api_calls['mutate_campaign_labels']( - request, retry=retry, timeout=timeout, metadata=metadata) diff --git a/google/ads/google_ads/v1/services/campaign_label_service_client_config.py b/google/ads/google_ads/v1/services/campaign_label_service_client_config.py deleted file mode 100644 index 06640ff0d..000000000 --- a/google/ads/google_ads/v1/services/campaign_label_service_client_config.py +++ /dev/null @@ -1,33 +0,0 @@ -config = { - "interfaces": { - "google.ads.googleads.v1.services.CampaignLabelService": { - "retry_codes": { - "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], - "non_idempotent": [] - }, - "retry_params": { - "default": { - "initial_retry_delay_millis": 5000, - "retry_delay_multiplier": 1.3, - "max_retry_delay_millis": 60000, - "initial_rpc_timeout_millis": 3600000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 3600000, - "total_timeout_millis": 3600000 - } - }, - "methods": { - "GetCampaignLabel": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default" - }, - "MutateCampaignLabels": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default" - } - } - } - } -} diff --git a/google/ads/google_ads/v1/services/campaign_service_client.py b/google/ads/google_ads/v1/services/campaign_service_client.py deleted file mode 100644 index 7752ea6f7..000000000 --- a/google/ads/google_ads/v1/services/campaign_service_client.py +++ /dev/null @@ -1,278 +0,0 @@ -# -*- coding: utf-8 -*- -# -# 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. -"""Accesses the google.ads.googleads.v1.services CampaignService API.""" - -import pkg_resources -import warnings - -from google.oauth2 import service_account -import google.api_core.gapic_v1.client_info -import google.api_core.gapic_v1.config -import google.api_core.gapic_v1.method -import google.api_core.grpc_helpers -import google.api_core.path_template - -from google.ads.google_ads.v1.services import campaign_service_client_config -from google.ads.google_ads.v1.services.transports import campaign_service_grpc_transport -from google.ads.google_ads.v1.proto.services import campaign_service_pb2 - -_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( - 'google-ads', ).version - - -class CampaignServiceClient(object): - """Service to manage campaigns.""" - - SERVICE_ADDRESS = 'googleads.googleapis.com:443' - """The default address of the service.""" - - # The name of the interface for this client. This is the key used to - # find the method configuration in the client_config dictionary. - _INTERFACE_NAME = 'google.ads.googleads.v1.services.CampaignService' - - @classmethod - def from_service_account_file(cls, filename, *args, **kwargs): - """Creates an instance of this client using the provided credentials - file. - - Args: - filename (str): The path to the service account private key json - file. - args: Additional arguments to pass to the constructor. - kwargs: Additional arguments to pass to the constructor. - - Returns: - CampaignServiceClient: The constructed client. - """ - credentials = service_account.Credentials.from_service_account_file( - filename) - kwargs['credentials'] = credentials - return cls(*args, **kwargs) - - from_service_account_json = from_service_account_file - - @classmethod - def campaign_path(cls, customer, campaign): - """Return a fully-qualified campaign string.""" - return google.api_core.path_template.expand( - 'customers/{customer}/campaigns/{campaign}', - customer=customer, - campaign=campaign, - ) - - def __init__(self, - transport=None, - channel=None, - credentials=None, - client_config=None, - client_info=None): - """Constructor. - - Args: - transport (Union[~.CampaignServiceGrpcTransport, - Callable[[~.Credentials, type], ~.CampaignServiceGrpcTransport]): A transport - instance, responsible for actually making the API calls. - The default transport uses the gRPC protocol. - This argument may also be a callable which returns a - transport instance. Callables will be sent the credentials - as the first argument and the default transport class as - the second argument. - channel (grpc.Channel): DEPRECATED. A ``Channel`` instance - through which to make calls. This argument is mutually exclusive - with ``credentials``; providing both will raise an exception. - credentials (google.auth.credentials.Credentials): The - authorization credentials to attach to requests. These - credentials identify this application to the service. If none - are specified, the client will attempt to ascertain the - credentials from the environment. - This argument is mutually exclusive with providing a - transport instance to ``transport``; doing so will raise - an exception. - client_config (dict): DEPRECATED. A dictionary of call options for - each method. If not specified, the default configuration is used. - client_info (google.api_core.gapic_v1.client_info.ClientInfo): - The client info used to send a user-agent string along with - API requests. If ``None``, then default info will be used. - Generally, you only need to set this if you're developing - your own client library. - """ - # Raise deprecation warnings for things we want to go away. - if client_config is not None: - warnings.warn( - 'The `client_config` argument is deprecated.', - PendingDeprecationWarning, - stacklevel=2) - else: - client_config = campaign_service_client_config.config - - if channel: - warnings.warn( - 'The `channel` argument is deprecated; use ' - '`transport` instead.', - PendingDeprecationWarning, - stacklevel=2) - - # Instantiate the transport. - # The transport is responsible for handling serialization and - # deserialization and actually sending data to the service. - if transport: - if callable(transport): - self.transport = transport( - credentials=credentials, - default_class=campaign_service_grpc_transport. - CampaignServiceGrpcTransport, - ) - else: - if credentials: - raise ValueError( - 'Received both a transport instance and ' - 'credentials; these are mutually exclusive.') - self.transport = transport - else: - self.transport = campaign_service_grpc_transport.CampaignServiceGrpcTransport( - address=self.SERVICE_ADDRESS, - channel=channel, - credentials=credentials, - ) - - if client_info is None: - client_info = google.api_core.gapic_v1.client_info.ClientInfo( - gapic_version=_GAPIC_LIBRARY_VERSION, ) - else: - client_info.gapic_version = _GAPIC_LIBRARY_VERSION - self._client_info = client_info - - # Parse out the default settings for retry and timeout for each RPC - # from the client configuration. - # (Ordinarily, these are the defaults specified in the `*_config.py` - # file next to this one.) - self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( - client_config['interfaces'][self._INTERFACE_NAME], ) - - # Save a dictionary of cached API call functions. - # These are the actual callables which invoke the proper - # transport methods, wrapped with `wrap_method` to add retry, - # timeout, and the like. - self._inner_api_calls = {} - - # Service calls - def get_campaign(self, - resource_name, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): - """ - Returns the requested campaign in full detail. - - Args: - resource_name (str): The resource name of the campaign to fetch. - retry (Optional[google.api_core.retry.Retry]): A retry object used - to retry requests. If ``None`` is specified, requests will not - be retried. - timeout (Optional[float]): The amount of time, in seconds, to wait - for the request to complete. Note that if ``retry`` is - specified, the timeout applies to each individual attempt. - metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata - that is provided to the method. - - Returns: - A :class:`~google.ads.googleads_v1.types.Campaign` instance. - - Raises: - google.api_core.exceptions.GoogleAPICallError: If the request - failed for any reason. - google.api_core.exceptions.RetryError: If the request failed due - to a retryable error and retry attempts failed. - ValueError: If the parameters are invalid. - """ - # Wrap the transport method to add retry and timeout logic. - if 'get_campaign' not in self._inner_api_calls: - self._inner_api_calls[ - 'get_campaign'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.get_campaign, - default_retry=self._method_configs['GetCampaign'].retry, - default_timeout=self._method_configs['GetCampaign']. - timeout, - client_info=self._client_info, - ) - - request = campaign_service_pb2.GetCampaignRequest( - resource_name=resource_name, ) - return self._inner_api_calls['get_campaign']( - request, retry=retry, timeout=timeout, metadata=metadata) - - def mutate_campaigns(self, - customer_id, - operations, - partial_failure=None, - validate_only=None, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): - """ - Creates, updates, or removes campaigns. Operation statuses are returned. - - Args: - customer_id (str): The ID of the customer whose campaigns are being modified. - operations (list[Union[dict, ~google.ads.googleads_v1.types.CampaignOperation]]): The list of operations to perform on individual campaigns. - - If a dict is provided, it must be of the same form as the protobuf - message :class:`~google.ads.googleads_v1.types.CampaignOperation` - partial_failure (bool): If true, successful operations will be carried out and invalid - operations will return errors. If false, all operations will be carried - out in one transaction if and only if they are all valid. - Default is false. - validate_only (bool): If true, the request is validated but not executed. Only errors are - returned, not results. - retry (Optional[google.api_core.retry.Retry]): A retry object used - to retry requests. If ``None`` is specified, requests will not - be retried. - timeout (Optional[float]): The amount of time, in seconds, to wait - for the request to complete. Note that if ``retry`` is - specified, the timeout applies to each individual attempt. - metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata - that is provided to the method. - - Returns: - A :class:`~google.ads.googleads_v1.types.MutateCampaignsResponse` instance. - - Raises: - google.api_core.exceptions.GoogleAPICallError: If the request - failed for any reason. - google.api_core.exceptions.RetryError: If the request failed due - to a retryable error and retry attempts failed. - ValueError: If the parameters are invalid. - """ - # Wrap the transport method to add retry and timeout logic. - if 'mutate_campaigns' not in self._inner_api_calls: - self._inner_api_calls[ - 'mutate_campaigns'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.mutate_campaigns, - default_retry=self._method_configs['MutateCampaigns']. - retry, - default_timeout=self._method_configs['MutateCampaigns']. - timeout, - client_info=self._client_info, - ) - - request = campaign_service_pb2.MutateCampaignsRequest( - customer_id=customer_id, - operations=operations, - partial_failure=partial_failure, - validate_only=validate_only, - ) - return self._inner_api_calls['mutate_campaigns']( - request, retry=retry, timeout=timeout, metadata=metadata) diff --git a/google/ads/google_ads/v1/services/campaign_service_client_config.py b/google/ads/google_ads/v1/services/campaign_service_client_config.py deleted file mode 100644 index 748002dda..000000000 --- a/google/ads/google_ads/v1/services/campaign_service_client_config.py +++ /dev/null @@ -1,33 +0,0 @@ -config = { - "interfaces": { - "google.ads.googleads.v1.services.CampaignService": { - "retry_codes": { - "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], - "non_idempotent": [] - }, - "retry_params": { - "default": { - "initial_retry_delay_millis": 5000, - "retry_delay_multiplier": 1.3, - "max_retry_delay_millis": 60000, - "initial_rpc_timeout_millis": 3600000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 3600000, - "total_timeout_millis": 3600000 - } - }, - "methods": { - "GetCampaign": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default" - }, - "MutateCampaigns": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default" - } - } - } - } -} diff --git a/google/ads/google_ads/v1/services/campaign_shared_set_service_client_config.py b/google/ads/google_ads/v1/services/campaign_shared_set_service_client_config.py deleted file mode 100644 index 42687ca4d..000000000 --- a/google/ads/google_ads/v1/services/campaign_shared_set_service_client_config.py +++ /dev/null @@ -1,33 +0,0 @@ -config = { - "interfaces": { - "google.ads.googleads.v1.services.CampaignSharedSetService": { - "retry_codes": { - "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], - "non_idempotent": [] - }, - "retry_params": { - "default": { - "initial_retry_delay_millis": 5000, - "retry_delay_multiplier": 1.3, - "max_retry_delay_millis": 60000, - "initial_rpc_timeout_millis": 3600000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 3600000, - "total_timeout_millis": 3600000 - } - }, - "methods": { - "GetCampaignSharedSet": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default" - }, - "MutateCampaignSharedSets": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default" - } - } - } - } -} diff --git a/google/ads/google_ads/v1/services/carrier_constant_service_client_config.py b/google/ads/google_ads/v1/services/carrier_constant_service_client_config.py deleted file mode 100644 index 857fdb85f..000000000 --- a/google/ads/google_ads/v1/services/carrier_constant_service_client_config.py +++ /dev/null @@ -1,28 +0,0 @@ -config = { - "interfaces": { - "google.ads.googleads.v1.services.CarrierConstantService": { - "retry_codes": { - "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], - "non_idempotent": [] - }, - "retry_params": { - "default": { - "initial_retry_delay_millis": 5000, - "retry_delay_multiplier": 1.3, - "max_retry_delay_millis": 60000, - "initial_rpc_timeout_millis": 3600000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 3600000, - "total_timeout_millis": 3600000 - } - }, - "methods": { - "GetCarrierConstant": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default" - } - } - } - } -} diff --git a/google/ads/google_ads/v1/services/change_status_service_client_config.py b/google/ads/google_ads/v1/services/change_status_service_client_config.py deleted file mode 100644 index b71c31323..000000000 --- a/google/ads/google_ads/v1/services/change_status_service_client_config.py +++ /dev/null @@ -1,28 +0,0 @@ -config = { - "interfaces": { - "google.ads.googleads.v1.services.ChangeStatusService": { - "retry_codes": { - "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], - "non_idempotent": [] - }, - "retry_params": { - "default": { - "initial_retry_delay_millis": 5000, - "retry_delay_multiplier": 1.3, - "max_retry_delay_millis": 60000, - "initial_rpc_timeout_millis": 3600000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 3600000, - "total_timeout_millis": 3600000 - } - }, - "methods": { - "GetChangeStatus": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default" - } - } - } - } -} diff --git a/google/ads/google_ads/v1/services/click_view_service_client_config.py b/google/ads/google_ads/v1/services/click_view_service_client_config.py deleted file mode 100644 index babfe4cb9..000000000 --- a/google/ads/google_ads/v1/services/click_view_service_client_config.py +++ /dev/null @@ -1,28 +0,0 @@ -config = { - "interfaces": { - "google.ads.googleads.v1.services.ClickViewService": { - "retry_codes": { - "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], - "non_idempotent": [] - }, - "retry_params": { - "default": { - "initial_retry_delay_millis": 5000, - "retry_delay_multiplier": 1.3, - "max_retry_delay_millis": 60000, - "initial_rpc_timeout_millis": 3600000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 3600000, - "total_timeout_millis": 3600000 - } - }, - "methods": { - "GetClickView": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default" - } - } - } - } -} diff --git a/google/ads/google_ads/v1/services/conversion_action_service_client.py b/google/ads/google_ads/v1/services/conversion_action_service_client.py deleted file mode 100644 index c1aaa0ac8..000000000 --- a/google/ads/google_ads/v1/services/conversion_action_service_client.py +++ /dev/null @@ -1,281 +0,0 @@ -# -*- coding: utf-8 -*- -# -# 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. -"""Accesses the google.ads.googleads.v1.services ConversionActionService API.""" - -import pkg_resources -import warnings - -from google.oauth2 import service_account -import google.api_core.gapic_v1.client_info -import google.api_core.gapic_v1.config -import google.api_core.gapic_v1.method -import google.api_core.grpc_helpers -import google.api_core.path_template - -from google.ads.google_ads.v1.services import conversion_action_service_client_config -from google.ads.google_ads.v1.services.transports import conversion_action_service_grpc_transport -from google.ads.google_ads.v1.proto.services import conversion_action_service_pb2 - -_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( - 'google-ads', ).version - - -class ConversionActionServiceClient(object): - """Service to manage conversion actions.""" - - SERVICE_ADDRESS = 'googleads.googleapis.com:443' - """The default address of the service.""" - - # The name of the interface for this client. This is the key used to - # find the method configuration in the client_config dictionary. - _INTERFACE_NAME = 'google.ads.googleads.v1.services.ConversionActionService' - - @classmethod - def from_service_account_file(cls, filename, *args, **kwargs): - """Creates an instance of this client using the provided credentials - file. - - Args: - filename (str): The path to the service account private key json - file. - args: Additional arguments to pass to the constructor. - kwargs: Additional arguments to pass to the constructor. - - Returns: - ConversionActionServiceClient: The constructed client. - """ - credentials = service_account.Credentials.from_service_account_file( - filename) - kwargs['credentials'] = credentials - return cls(*args, **kwargs) - - from_service_account_json = from_service_account_file - - @classmethod - def conversion_action_path(cls, customer, conversion_action): - """Return a fully-qualified conversion_action string.""" - return google.api_core.path_template.expand( - 'customers/{customer}/conversionActions/{conversion_action}', - customer=customer, - conversion_action=conversion_action, - ) - - def __init__(self, - transport=None, - channel=None, - credentials=None, - client_config=None, - client_info=None): - """Constructor. - - Args: - transport (Union[~.ConversionActionServiceGrpcTransport, - Callable[[~.Credentials, type], ~.ConversionActionServiceGrpcTransport]): A transport - instance, responsible for actually making the API calls. - The default transport uses the gRPC protocol. - This argument may also be a callable which returns a - transport instance. Callables will be sent the credentials - as the first argument and the default transport class as - the second argument. - channel (grpc.Channel): DEPRECATED. A ``Channel`` instance - through which to make calls. This argument is mutually exclusive - with ``credentials``; providing both will raise an exception. - credentials (google.auth.credentials.Credentials): The - authorization credentials to attach to requests. These - credentials identify this application to the service. If none - are specified, the client will attempt to ascertain the - credentials from the environment. - This argument is mutually exclusive with providing a - transport instance to ``transport``; doing so will raise - an exception. - client_config (dict): DEPRECATED. A dictionary of call options for - each method. If not specified, the default configuration is used. - client_info (google.api_core.gapic_v1.client_info.ClientInfo): - The client info used to send a user-agent string along with - API requests. If ``None``, then default info will be used. - Generally, you only need to set this if you're developing - your own client library. - """ - # Raise deprecation warnings for things we want to go away. - if client_config is not None: - warnings.warn( - 'The `client_config` argument is deprecated.', - PendingDeprecationWarning, - stacklevel=2) - else: - client_config = conversion_action_service_client_config.config - - if channel: - warnings.warn( - 'The `channel` argument is deprecated; use ' - '`transport` instead.', - PendingDeprecationWarning, - stacklevel=2) - - # Instantiate the transport. - # The transport is responsible for handling serialization and - # deserialization and actually sending data to the service. - if transport: - if callable(transport): - self.transport = transport( - credentials=credentials, - default_class=conversion_action_service_grpc_transport. - ConversionActionServiceGrpcTransport, - ) - else: - if credentials: - raise ValueError( - 'Received both a transport instance and ' - 'credentials; these are mutually exclusive.') - self.transport = transport - else: - self.transport = conversion_action_service_grpc_transport.ConversionActionServiceGrpcTransport( - address=self.SERVICE_ADDRESS, - channel=channel, - credentials=credentials, - ) - - if client_info is None: - client_info = google.api_core.gapic_v1.client_info.ClientInfo( - gapic_version=_GAPIC_LIBRARY_VERSION, ) - else: - client_info.gapic_version = _GAPIC_LIBRARY_VERSION - self._client_info = client_info - - # Parse out the default settings for retry and timeout for each RPC - # from the client configuration. - # (Ordinarily, these are the defaults specified in the `*_config.py` - # file next to this one.) - self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( - client_config['interfaces'][self._INTERFACE_NAME], ) - - # Save a dictionary of cached API call functions. - # These are the actual callables which invoke the proper - # transport methods, wrapped with `wrap_method` to add retry, - # timeout, and the like. - self._inner_api_calls = {} - - # Service calls - def get_conversion_action(self, - resource_name, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): - """ - Returns the requested conversion action. - - Args: - resource_name (str): The resource name of the conversion action to fetch. - retry (Optional[google.api_core.retry.Retry]): A retry object used - to retry requests. If ``None`` is specified, requests will not - be retried. - timeout (Optional[float]): The amount of time, in seconds, to wait - for the request to complete. Note that if ``retry`` is - specified, the timeout applies to each individual attempt. - metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata - that is provided to the method. - - Returns: - A :class:`~google.ads.googleads_v1.types.ConversionAction` instance. - - Raises: - google.api_core.exceptions.GoogleAPICallError: If the request - failed for any reason. - google.api_core.exceptions.RetryError: If the request failed due - to a retryable error and retry attempts failed. - ValueError: If the parameters are invalid. - """ - # Wrap the transport method to add retry and timeout logic. - if 'get_conversion_action' not in self._inner_api_calls: - self._inner_api_calls[ - 'get_conversion_action'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.get_conversion_action, - default_retry=self._method_configs['GetConversionAction']. - retry, - default_timeout=self. - _method_configs['GetConversionAction'].timeout, - client_info=self._client_info, - ) - - request = conversion_action_service_pb2.GetConversionActionRequest( - resource_name=resource_name, ) - return self._inner_api_calls['get_conversion_action']( - request, retry=retry, timeout=timeout, metadata=metadata) - - def mutate_conversion_actions( - self, - customer_id, - operations, - partial_failure=None, - validate_only=None, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): - """ - Creates, updates or removes conversion actions. Operation statuses are - returned. - - Args: - customer_id (str): The ID of the customer whose conversion actions are being modified. - operations (list[Union[dict, ~google.ads.googleads_v1.types.ConversionActionOperation]]): The list of operations to perform on individual conversion actions. - - If a dict is provided, it must be of the same form as the protobuf - message :class:`~google.ads.googleads_v1.types.ConversionActionOperation` - partial_failure (bool): If true, successful operations will be carried out and invalid - operations will return errors. If false, all operations will be carried - out in one transaction if and only if they are all valid. - Default is false. - validate_only (bool): If true, the request is validated but not executed. Only errors are - returned, not results. - retry (Optional[google.api_core.retry.Retry]): A retry object used - to retry requests. If ``None`` is specified, requests will not - be retried. - timeout (Optional[float]): The amount of time, in seconds, to wait - for the request to complete. Note that if ``retry`` is - specified, the timeout applies to each individual attempt. - metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata - that is provided to the method. - - Returns: - A :class:`~google.ads.googleads_v1.types.MutateConversionActionsResponse` instance. - - Raises: - google.api_core.exceptions.GoogleAPICallError: If the request - failed for any reason. - google.api_core.exceptions.RetryError: If the request failed due - to a retryable error and retry attempts failed. - ValueError: If the parameters are invalid. - """ - # Wrap the transport method to add retry and timeout logic. - if 'mutate_conversion_actions' not in self._inner_api_calls: - self._inner_api_calls[ - 'mutate_conversion_actions'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.mutate_conversion_actions, - default_retry=self. - _method_configs['MutateConversionActions'].retry, - default_timeout=self. - _method_configs['MutateConversionActions'].timeout, - client_info=self._client_info, - ) - - request = conversion_action_service_pb2.MutateConversionActionsRequest( - customer_id=customer_id, - operations=operations, - partial_failure=partial_failure, - validate_only=validate_only, - ) - return self._inner_api_calls['mutate_conversion_actions']( - request, retry=retry, timeout=timeout, metadata=metadata) diff --git a/google/ads/google_ads/v1/services/conversion_action_service_client_config.py b/google/ads/google_ads/v1/services/conversion_action_service_client_config.py deleted file mode 100644 index b3aed10ac..000000000 --- a/google/ads/google_ads/v1/services/conversion_action_service_client_config.py +++ /dev/null @@ -1,33 +0,0 @@ -config = { - "interfaces": { - "google.ads.googleads.v1.services.ConversionActionService": { - "retry_codes": { - "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], - "non_idempotent": [] - }, - "retry_params": { - "default": { - "initial_retry_delay_millis": 5000, - "retry_delay_multiplier": 1.3, - "max_retry_delay_millis": 60000, - "initial_rpc_timeout_millis": 3600000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 3600000, - "total_timeout_millis": 3600000 - } - }, - "methods": { - "GetConversionAction": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default" - }, - "MutateConversionActions": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default" - } - } - } - } -} diff --git a/google/ads/google_ads/v1/services/conversion_adjustment_upload_service_client_config.py b/google/ads/google_ads/v1/services/conversion_adjustment_upload_service_client_config.py deleted file mode 100644 index d471c9729..000000000 --- a/google/ads/google_ads/v1/services/conversion_adjustment_upload_service_client_config.py +++ /dev/null @@ -1,28 +0,0 @@ -config = { - "interfaces": { - "google.ads.googleads.v1.services.ConversionAdjustmentUploadService": { - "retry_codes": { - "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], - "non_idempotent": [] - }, - "retry_params": { - "default": { - "initial_retry_delay_millis": 5000, - "retry_delay_multiplier": 1.3, - "max_retry_delay_millis": 60000, - "initial_rpc_timeout_millis": 3600000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 3600000, - "total_timeout_millis": 3600000 - } - }, - "methods": { - "UploadConversionAdjustments": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default" - } - } - } - } -} diff --git a/google/ads/google_ads/v1/services/conversion_upload_service_client.py b/google/ads/google_ads/v1/services/conversion_upload_service_client.py deleted file mode 100644 index 25a86f684..000000000 --- a/google/ads/google_ads/v1/services/conversion_upload_service_client.py +++ /dev/null @@ -1,288 +0,0 @@ -# -*- coding: utf-8 -*- -# -# 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. -"""Accesses the google.ads.googleads.v1.services ConversionUploadService API.""" - -import pkg_resources -import warnings - -from google.oauth2 import service_account -import google.api_core.gapic_v1.client_info -import google.api_core.gapic_v1.config -import google.api_core.gapic_v1.method -import google.api_core.grpc_helpers - -from google.ads.google_ads.v1.services import conversion_upload_service_client_config -from google.ads.google_ads.v1.services.transports import conversion_upload_service_grpc_transport -from google.ads.google_ads.v1.proto.services import conversion_upload_service_pb2 - -_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( - 'google-ads', ).version - - -class ConversionUploadServiceClient(object): - """Service to upload conversions.""" - - SERVICE_ADDRESS = 'googleads.googleapis.com:443' - """The default address of the service.""" - - # The name of the interface for this client. This is the key used to - # find the method configuration in the client_config dictionary. - _INTERFACE_NAME = 'google.ads.googleads.v1.services.ConversionUploadService' - - @classmethod - def from_service_account_file(cls, filename, *args, **kwargs): - """Creates an instance of this client using the provided credentials - file. - - Args: - filename (str): The path to the service account private key json - file. - args: Additional arguments to pass to the constructor. - kwargs: Additional arguments to pass to the constructor. - - Returns: - ConversionUploadServiceClient: The constructed client. - """ - credentials = service_account.Credentials.from_service_account_file( - filename) - kwargs['credentials'] = credentials - return cls(*args, **kwargs) - - from_service_account_json = from_service_account_file - - def __init__(self, - transport=None, - channel=None, - credentials=None, - client_config=None, - client_info=None): - """Constructor. - - Args: - transport (Union[~.ConversionUploadServiceGrpcTransport, - Callable[[~.Credentials, type], ~.ConversionUploadServiceGrpcTransport]): A transport - instance, responsible for actually making the API calls. - The default transport uses the gRPC protocol. - This argument may also be a callable which returns a - transport instance. Callables will be sent the credentials - as the first argument and the default transport class as - the second argument. - channel (grpc.Channel): DEPRECATED. A ``Channel`` instance - through which to make calls. This argument is mutually exclusive - with ``credentials``; providing both will raise an exception. - credentials (google.auth.credentials.Credentials): The - authorization credentials to attach to requests. These - credentials identify this application to the service. If none - are specified, the client will attempt to ascertain the - credentials from the environment. - This argument is mutually exclusive with providing a - transport instance to ``transport``; doing so will raise - an exception. - client_config (dict): DEPRECATED. A dictionary of call options for - each method. If not specified, the default configuration is used. - client_info (google.api_core.gapic_v1.client_info.ClientInfo): - The client info used to send a user-agent string along with - API requests. If ``None``, then default info will be used. - Generally, you only need to set this if you're developing - your own client library. - """ - # Raise deprecation warnings for things we want to go away. - if client_config is not None: - warnings.warn( - 'The `client_config` argument is deprecated.', - PendingDeprecationWarning, - stacklevel=2) - else: - client_config = conversion_upload_service_client_config.config - - if channel: - warnings.warn( - 'The `channel` argument is deprecated; use ' - '`transport` instead.', - PendingDeprecationWarning, - stacklevel=2) - - # Instantiate the transport. - # The transport is responsible for handling serialization and - # deserialization and actually sending data to the service. - if transport: - if callable(transport): - self.transport = transport( - credentials=credentials, - default_class=conversion_upload_service_grpc_transport. - ConversionUploadServiceGrpcTransport, - ) - else: - if credentials: - raise ValueError( - 'Received both a transport instance and ' - 'credentials; these are mutually exclusive.') - self.transport = transport - else: - self.transport = conversion_upload_service_grpc_transport.ConversionUploadServiceGrpcTransport( - address=self.SERVICE_ADDRESS, - channel=channel, - credentials=credentials, - ) - - if client_info is None: - client_info = google.api_core.gapic_v1.client_info.ClientInfo( - gapic_version=_GAPIC_LIBRARY_VERSION, ) - else: - client_info.gapic_version = _GAPIC_LIBRARY_VERSION - self._client_info = client_info - - # Parse out the default settings for retry and timeout for each RPC - # from the client configuration. - # (Ordinarily, these are the defaults specified in the `*_config.py` - # file next to this one.) - self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( - client_config['interfaces'][self._INTERFACE_NAME], ) - - # Save a dictionary of cached API call functions. - # These are the actual callables which invoke the proper - # transport methods, wrapped with `wrap_method` to add retry, - # timeout, and the like. - self._inner_api_calls = {} - - # Service calls - def upload_click_conversions( - self, - customer_id, - conversions, - partial_failure=None, - validate_only=None, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): - """ - Processes the given click conversions. - - Args: - customer_id (str): The ID of the customer performing the upload. - conversions (list[Union[dict, ~google.ads.googleads_v1.types.ClickConversion]]): The conversions that are being uploaded. - - If a dict is provided, it must be of the same form as the protobuf - message :class:`~google.ads.googleads_v1.types.ClickConversion` - partial_failure (bool): If true, successful operations will be carried out and invalid - operations will return errors. If false, all operations will be carried - out in one transaction if and only if they are all valid. - This should always be set to true. - validate_only (bool): If true, the request is validated but not executed. Only errors are - returned, not results. - retry (Optional[google.api_core.retry.Retry]): A retry object used - to retry requests. If ``None`` is specified, requests will not - be retried. - timeout (Optional[float]): The amount of time, in seconds, to wait - for the request to complete. Note that if ``retry`` is - specified, the timeout applies to each individual attempt. - metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata - that is provided to the method. - - Returns: - A :class:`~google.ads.googleads_v1.types.UploadClickConversionsResponse` instance. - - Raises: - google.api_core.exceptions.GoogleAPICallError: If the request - failed for any reason. - google.api_core.exceptions.RetryError: If the request failed due - to a retryable error and retry attempts failed. - ValueError: If the parameters are invalid. - """ - # Wrap the transport method to add retry and timeout logic. - if 'upload_click_conversions' not in self._inner_api_calls: - self._inner_api_calls[ - 'upload_click_conversions'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.upload_click_conversions, - default_retry=self. - _method_configs['UploadClickConversions'].retry, - default_timeout=self. - _method_configs['UploadClickConversions'].timeout, - client_info=self._client_info, - ) - - request = conversion_upload_service_pb2.UploadClickConversionsRequest( - customer_id=customer_id, - conversions=conversions, - partial_failure=partial_failure, - validate_only=validate_only, - ) - return self._inner_api_calls['upload_click_conversions']( - request, retry=retry, timeout=timeout, metadata=metadata) - - def upload_call_conversions( - self, - customer_id, - conversions, - partial_failure=None, - validate_only=None, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): - """ - Processes the given call conversions. - - Args: - customer_id (str): The ID of the customer performing the upload. - conversions (list[Union[dict, ~google.ads.googleads_v1.types.CallConversion]]): The conversions that are being uploaded. - - If a dict is provided, it must be of the same form as the protobuf - message :class:`~google.ads.googleads_v1.types.CallConversion` - partial_failure (bool): If true, successful operations will be carried out and invalid - operations will return errors. If false, all operations will be carried - out in one transaction if and only if they are all valid. - This should always be set to true. - validate_only (bool): If true, the request is validated but not executed. Only errors are - returned, not results. - retry (Optional[google.api_core.retry.Retry]): A retry object used - to retry requests. If ``None`` is specified, requests will not - be retried. - timeout (Optional[float]): The amount of time, in seconds, to wait - for the request to complete. Note that if ``retry`` is - specified, the timeout applies to each individual attempt. - metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata - that is provided to the method. - - Returns: - A :class:`~google.ads.googleads_v1.types.UploadCallConversionsResponse` instance. - - Raises: - google.api_core.exceptions.GoogleAPICallError: If the request - failed for any reason. - google.api_core.exceptions.RetryError: If the request failed due - to a retryable error and retry attempts failed. - ValueError: If the parameters are invalid. - """ - # Wrap the transport method to add retry and timeout logic. - if 'upload_call_conversions' not in self._inner_api_calls: - self._inner_api_calls[ - 'upload_call_conversions'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.upload_call_conversions, - default_retry=self. - _method_configs['UploadCallConversions'].retry, - default_timeout=self. - _method_configs['UploadCallConversions'].timeout, - client_info=self._client_info, - ) - - request = conversion_upload_service_pb2.UploadCallConversionsRequest( - customer_id=customer_id, - conversions=conversions, - partial_failure=partial_failure, - validate_only=validate_only, - ) - return self._inner_api_calls['upload_call_conversions']( - request, retry=retry, timeout=timeout, metadata=metadata) diff --git a/google/ads/google_ads/v1/services/conversion_upload_service_client_config.py b/google/ads/google_ads/v1/services/conversion_upload_service_client_config.py deleted file mode 100644 index 6ac03280e..000000000 --- a/google/ads/google_ads/v1/services/conversion_upload_service_client_config.py +++ /dev/null @@ -1,33 +0,0 @@ -config = { - "interfaces": { - "google.ads.googleads.v1.services.ConversionUploadService": { - "retry_codes": { - "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], - "non_idempotent": [] - }, - "retry_params": { - "default": { - "initial_retry_delay_millis": 5000, - "retry_delay_multiplier": 1.3, - "max_retry_delay_millis": 60000, - "initial_rpc_timeout_millis": 3600000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 3600000, - "total_timeout_millis": 3600000 - } - }, - "methods": { - "UploadClickConversions": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default" - }, - "UploadCallConversions": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default" - } - } - } - } -} diff --git a/google/ads/google_ads/v1/services/custom_interest_service_client.py b/google/ads/google_ads/v1/services/custom_interest_service_client.py deleted file mode 100644 index 7895b8ed4..000000000 --- a/google/ads/google_ads/v1/services/custom_interest_service_client.py +++ /dev/null @@ -1,274 +0,0 @@ -# -*- coding: utf-8 -*- -# -# 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. -"""Accesses the google.ads.googleads.v1.services CustomInterestService API.""" - -import pkg_resources -import warnings - -from google.oauth2 import service_account -import google.api_core.gapic_v1.client_info -import google.api_core.gapic_v1.config -import google.api_core.gapic_v1.method -import google.api_core.grpc_helpers -import google.api_core.path_template - -from google.ads.google_ads.v1.services import custom_interest_service_client_config -from google.ads.google_ads.v1.services.transports import custom_interest_service_grpc_transport -from google.ads.google_ads.v1.proto.services import custom_interest_service_pb2 - -_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( - 'google-ads', ).version - - -class CustomInterestServiceClient(object): - """Service to manage custom interests.""" - - SERVICE_ADDRESS = 'googleads.googleapis.com:443' - """The default address of the service.""" - - # The name of the interface for this client. This is the key used to - # find the method configuration in the client_config dictionary. - _INTERFACE_NAME = 'google.ads.googleads.v1.services.CustomInterestService' - - @classmethod - def from_service_account_file(cls, filename, *args, **kwargs): - """Creates an instance of this client using the provided credentials - file. - - Args: - filename (str): The path to the service account private key json - file. - args: Additional arguments to pass to the constructor. - kwargs: Additional arguments to pass to the constructor. - - Returns: - CustomInterestServiceClient: The constructed client. - """ - credentials = service_account.Credentials.from_service_account_file( - filename) - kwargs['credentials'] = credentials - return cls(*args, **kwargs) - - from_service_account_json = from_service_account_file - - @classmethod - def custom_interest_path(cls, customer, custom_interest): - """Return a fully-qualified custom_interest string.""" - return google.api_core.path_template.expand( - 'customers/{customer}/customInterests/{custom_interest}', - customer=customer, - custom_interest=custom_interest, - ) - - def __init__(self, - transport=None, - channel=None, - credentials=None, - client_config=None, - client_info=None): - """Constructor. - - Args: - transport (Union[~.CustomInterestServiceGrpcTransport, - Callable[[~.Credentials, type], ~.CustomInterestServiceGrpcTransport]): A transport - instance, responsible for actually making the API calls. - The default transport uses the gRPC protocol. - This argument may also be a callable which returns a - transport instance. Callables will be sent the credentials - as the first argument and the default transport class as - the second argument. - channel (grpc.Channel): DEPRECATED. A ``Channel`` instance - through which to make calls. This argument is mutually exclusive - with ``credentials``; providing both will raise an exception. - credentials (google.auth.credentials.Credentials): The - authorization credentials to attach to requests. These - credentials identify this application to the service. If none - are specified, the client will attempt to ascertain the - credentials from the environment. - This argument is mutually exclusive with providing a - transport instance to ``transport``; doing so will raise - an exception. - client_config (dict): DEPRECATED. A dictionary of call options for - each method. If not specified, the default configuration is used. - client_info (google.api_core.gapic_v1.client_info.ClientInfo): - The client info used to send a user-agent string along with - API requests. If ``None``, then default info will be used. - Generally, you only need to set this if you're developing - your own client library. - """ - # Raise deprecation warnings for things we want to go away. - if client_config is not None: - warnings.warn( - 'The `client_config` argument is deprecated.', - PendingDeprecationWarning, - stacklevel=2) - else: - client_config = custom_interest_service_client_config.config - - if channel: - warnings.warn( - 'The `channel` argument is deprecated; use ' - '`transport` instead.', - PendingDeprecationWarning, - stacklevel=2) - - # Instantiate the transport. - # The transport is responsible for handling serialization and - # deserialization and actually sending data to the service. - if transport: - if callable(transport): - self.transport = transport( - credentials=credentials, - default_class=custom_interest_service_grpc_transport. - CustomInterestServiceGrpcTransport, - ) - else: - if credentials: - raise ValueError( - 'Received both a transport instance and ' - 'credentials; these are mutually exclusive.') - self.transport = transport - else: - self.transport = custom_interest_service_grpc_transport.CustomInterestServiceGrpcTransport( - address=self.SERVICE_ADDRESS, - channel=channel, - credentials=credentials, - ) - - if client_info is None: - client_info = google.api_core.gapic_v1.client_info.ClientInfo( - gapic_version=_GAPIC_LIBRARY_VERSION, ) - else: - client_info.gapic_version = _GAPIC_LIBRARY_VERSION - self._client_info = client_info - - # Parse out the default settings for retry and timeout for each RPC - # from the client configuration. - # (Ordinarily, these are the defaults specified in the `*_config.py` - # file next to this one.) - self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( - client_config['interfaces'][self._INTERFACE_NAME], ) - - # Save a dictionary of cached API call functions. - # These are the actual callables which invoke the proper - # transport methods, wrapped with `wrap_method` to add retry, - # timeout, and the like. - self._inner_api_calls = {} - - # Service calls - def get_custom_interest(self, - resource_name, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): - """ - Returns the requested custom interest in full detail. - - Args: - resource_name (str): The resource name of the custom interest to fetch. - retry (Optional[google.api_core.retry.Retry]): A retry object used - to retry requests. If ``None`` is specified, requests will not - be retried. - timeout (Optional[float]): The amount of time, in seconds, to wait - for the request to complete. Note that if ``retry`` is - specified, the timeout applies to each individual attempt. - metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata - that is provided to the method. - - Returns: - A :class:`~google.ads.googleads_v1.types.CustomInterest` instance. - - Raises: - google.api_core.exceptions.GoogleAPICallError: If the request - failed for any reason. - google.api_core.exceptions.RetryError: If the request failed due - to a retryable error and retry attempts failed. - ValueError: If the parameters are invalid. - """ - # Wrap the transport method to add retry and timeout logic. - if 'get_custom_interest' not in self._inner_api_calls: - self._inner_api_calls[ - 'get_custom_interest'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.get_custom_interest, - default_retry=self._method_configs['GetCustomInterest']. - retry, - default_timeout=self._method_configs['GetCustomInterest']. - timeout, - client_info=self._client_info, - ) - - request = custom_interest_service_pb2.GetCustomInterestRequest( - resource_name=resource_name, ) - return self._inner_api_calls['get_custom_interest']( - request, retry=retry, timeout=timeout, metadata=metadata) - - def mutate_custom_interests( - self, - customer_id, - operations, - validate_only=None, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): - """ - Creates or updates custom interests. Operation statuses are returned. - - Args: - customer_id (str): The ID of the customer whose custom interests are being modified. - operations (list[Union[dict, ~google.ads.googleads_v1.types.CustomInterestOperation]]): The list of operations to perform on individual custom interests. - - If a dict is provided, it must be of the same form as the protobuf - message :class:`~google.ads.googleads_v1.types.CustomInterestOperation` - validate_only (bool): If true, the request is validated but not executed. Only errors are - returned, not results. - retry (Optional[google.api_core.retry.Retry]): A retry object used - to retry requests. If ``None`` is specified, requests will not - be retried. - timeout (Optional[float]): The amount of time, in seconds, to wait - for the request to complete. Note that if ``retry`` is - specified, the timeout applies to each individual attempt. - metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata - that is provided to the method. - - Returns: - A :class:`~google.ads.googleads_v1.types.MutateCustomInterestsResponse` instance. - - Raises: - google.api_core.exceptions.GoogleAPICallError: If the request - failed for any reason. - google.api_core.exceptions.RetryError: If the request failed due - to a retryable error and retry attempts failed. - ValueError: If the parameters are invalid. - """ - # Wrap the transport method to add retry and timeout logic. - if 'mutate_custom_interests' not in self._inner_api_calls: - self._inner_api_calls[ - 'mutate_custom_interests'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.mutate_custom_interests, - default_retry=self. - _method_configs['MutateCustomInterests'].retry, - default_timeout=self. - _method_configs['MutateCustomInterests'].timeout, - client_info=self._client_info, - ) - - request = custom_interest_service_pb2.MutateCustomInterestsRequest( - customer_id=customer_id, - operations=operations, - validate_only=validate_only, - ) - return self._inner_api_calls['mutate_custom_interests']( - request, retry=retry, timeout=timeout, metadata=metadata) diff --git a/google/ads/google_ads/v1/services/custom_interest_service_client_config.py b/google/ads/google_ads/v1/services/custom_interest_service_client_config.py deleted file mode 100644 index 983851b00..000000000 --- a/google/ads/google_ads/v1/services/custom_interest_service_client_config.py +++ /dev/null @@ -1,33 +0,0 @@ -config = { - "interfaces": { - "google.ads.googleads.v1.services.CustomInterestService": { - "retry_codes": { - "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], - "non_idempotent": [] - }, - "retry_params": { - "default": { - "initial_retry_delay_millis": 5000, - "retry_delay_multiplier": 1.3, - "max_retry_delay_millis": 60000, - "initial_rpc_timeout_millis": 3600000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 3600000, - "total_timeout_millis": 3600000 - } - }, - "methods": { - "GetCustomInterest": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default" - }, - "MutateCustomInterests": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default" - } - } - } - } -} diff --git a/google/ads/google_ads/v1/services/customer_client_link_service_client.py b/google/ads/google_ads/v1/services/customer_client_link_service_client.py deleted file mode 100644 index 7bb5d0d8b..000000000 --- a/google/ads/google_ads/v1/services/customer_client_link_service_client.py +++ /dev/null @@ -1,271 +0,0 @@ -# -*- coding: utf-8 -*- -# -# 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. -"""Accesses the google.ads.googleads.v1.services CustomerClientLinkService API.""" - -import pkg_resources -import warnings - -from google.oauth2 import service_account -import google.api_core.gapic_v1.client_info -import google.api_core.gapic_v1.config -import google.api_core.gapic_v1.method -import google.api_core.grpc_helpers -import google.api_core.path_template - -from google.ads.google_ads.v1.services import customer_client_link_service_client_config -from google.ads.google_ads.v1.services.transports import customer_client_link_service_grpc_transport -from google.ads.google_ads.v1.proto.services import customer_client_link_service_pb2 - -_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( - 'google-ads', ).version - - -class CustomerClientLinkServiceClient(object): - """Service to manage customer client links.""" - - SERVICE_ADDRESS = 'googleads.googleapis.com:443' - """The default address of the service.""" - - # The name of the interface for this client. This is the key used to - # find the method configuration in the client_config dictionary. - _INTERFACE_NAME = 'google.ads.googleads.v1.services.CustomerClientLinkService' - - @classmethod - def from_service_account_file(cls, filename, *args, **kwargs): - """Creates an instance of this client using the provided credentials - file. - - Args: - filename (str): The path to the service account private key json - file. - args: Additional arguments to pass to the constructor. - kwargs: Additional arguments to pass to the constructor. - - Returns: - CustomerClientLinkServiceClient: The constructed client. - """ - credentials = service_account.Credentials.from_service_account_file( - filename) - kwargs['credentials'] = credentials - return cls(*args, **kwargs) - - from_service_account_json = from_service_account_file - - @classmethod - def customer_client_link_path(cls, customer, customer_client_link): - """Return a fully-qualified customer_client_link string.""" - return google.api_core.path_template.expand( - 'customers/{customer}/customerClientLinks/{customer_client_link}', - customer=customer, - customer_client_link=customer_client_link, - ) - - def __init__(self, - transport=None, - channel=None, - credentials=None, - client_config=None, - client_info=None): - """Constructor. - - Args: - transport (Union[~.CustomerClientLinkServiceGrpcTransport, - Callable[[~.Credentials, type], ~.CustomerClientLinkServiceGrpcTransport]): A transport - instance, responsible for actually making the API calls. - The default transport uses the gRPC protocol. - This argument may also be a callable which returns a - transport instance. Callables will be sent the credentials - as the first argument and the default transport class as - the second argument. - channel (grpc.Channel): DEPRECATED. A ``Channel`` instance - through which to make calls. This argument is mutually exclusive - with ``credentials``; providing both will raise an exception. - credentials (google.auth.credentials.Credentials): The - authorization credentials to attach to requests. These - credentials identify this application to the service. If none - are specified, the client will attempt to ascertain the - credentials from the environment. - This argument is mutually exclusive with providing a - transport instance to ``transport``; doing so will raise - an exception. - client_config (dict): DEPRECATED. A dictionary of call options for - each method. If not specified, the default configuration is used. - client_info (google.api_core.gapic_v1.client_info.ClientInfo): - The client info used to send a user-agent string along with - API requests. If ``None``, then default info will be used. - Generally, you only need to set this if you're developing - your own client library. - """ - # Raise deprecation warnings for things we want to go away. - if client_config is not None: - warnings.warn( - 'The `client_config` argument is deprecated.', - PendingDeprecationWarning, - stacklevel=2) - else: - client_config = customer_client_link_service_client_config.config - - if channel: - warnings.warn( - 'The `channel` argument is deprecated; use ' - '`transport` instead.', - PendingDeprecationWarning, - stacklevel=2) - - # Instantiate the transport. - # The transport is responsible for handling serialization and - # deserialization and actually sending data to the service. - if transport: - if callable(transport): - self.transport = transport( - credentials=credentials, - default_class=customer_client_link_service_grpc_transport. - CustomerClientLinkServiceGrpcTransport, - ) - else: - if credentials: - raise ValueError( - 'Received both a transport instance and ' - 'credentials; these are mutually exclusive.') - self.transport = transport - else: - self.transport = customer_client_link_service_grpc_transport.CustomerClientLinkServiceGrpcTransport( - address=self.SERVICE_ADDRESS, - channel=channel, - credentials=credentials, - ) - - if client_info is None: - client_info = google.api_core.gapic_v1.client_info.ClientInfo( - gapic_version=_GAPIC_LIBRARY_VERSION, ) - else: - client_info.gapic_version = _GAPIC_LIBRARY_VERSION - self._client_info = client_info - - # Parse out the default settings for retry and timeout for each RPC - # from the client configuration. - # (Ordinarily, these are the defaults specified in the `*_config.py` - # file next to this one.) - self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( - client_config['interfaces'][self._INTERFACE_NAME], ) - - # Save a dictionary of cached API call functions. - # These are the actual callables which invoke the proper - # transport methods, wrapped with `wrap_method` to add retry, - # timeout, and the like. - self._inner_api_calls = {} - - # Service calls - def get_customer_client_link( - self, - resource_name, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): - """ - Returns the requested CustomerClientLink in full detail. - - Args: - resource_name (str): The resource name of the customer client link to fetch. - retry (Optional[google.api_core.retry.Retry]): A retry object used - to retry requests. If ``None`` is specified, requests will not - be retried. - timeout (Optional[float]): The amount of time, in seconds, to wait - for the request to complete. Note that if ``retry`` is - specified, the timeout applies to each individual attempt. - metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata - that is provided to the method. - - Returns: - A :class:`~google.ads.googleads_v1.types.CustomerClientLink` instance. - - Raises: - google.api_core.exceptions.GoogleAPICallError: If the request - failed for any reason. - google.api_core.exceptions.RetryError: If the request failed due - to a retryable error and retry attempts failed. - ValueError: If the parameters are invalid. - """ - # Wrap the transport method to add retry and timeout logic. - if 'get_customer_client_link' not in self._inner_api_calls: - self._inner_api_calls[ - 'get_customer_client_link'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.get_customer_client_link, - default_retry=self. - _method_configs['GetCustomerClientLink'].retry, - default_timeout=self. - _method_configs['GetCustomerClientLink'].timeout, - client_info=self._client_info, - ) - - request = customer_client_link_service_pb2.GetCustomerClientLinkRequest( - resource_name=resource_name, ) - return self._inner_api_calls['get_customer_client_link']( - request, retry=retry, timeout=timeout, metadata=metadata) - - def mutate_customer_client_link( - self, - customer_id, - operation_, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): - """ - Creates or updates a customer client link. Operation statuses are returned. - - Args: - customer_id (str): The ID of the customer whose customer link are being modified. - operation_ (Union[dict, ~google.ads.googleads_v1.types.CustomerClientLinkOperation]): The operation to perform on the individual CustomerClientLink. - - If a dict is provided, it must be of the same form as the protobuf - message :class:`~google.ads.googleads_v1.types.CustomerClientLinkOperation` - retry (Optional[google.api_core.retry.Retry]): A retry object used - to retry requests. If ``None`` is specified, requests will not - be retried. - timeout (Optional[float]): The amount of time, in seconds, to wait - for the request to complete. Note that if ``retry`` is - specified, the timeout applies to each individual attempt. - metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata - that is provided to the method. - - Returns: - A :class:`~google.ads.googleads_v1.types.MutateCustomerClientLinkResponse` instance. - - Raises: - google.api_core.exceptions.GoogleAPICallError: If the request - failed for any reason. - google.api_core.exceptions.RetryError: If the request failed due - to a retryable error and retry attempts failed. - ValueError: If the parameters are invalid. - """ - # Wrap the transport method to add retry and timeout logic. - if 'mutate_customer_client_link' not in self._inner_api_calls: - self._inner_api_calls[ - 'mutate_customer_client_link'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.mutate_customer_client_link, - default_retry=self. - _method_configs['MutateCustomerClientLink'].retry, - default_timeout=self. - _method_configs['MutateCustomerClientLink'].timeout, - client_info=self._client_info, - ) - - request = customer_client_link_service_pb2.MutateCustomerClientLinkRequest( - customer_id=customer_id, - operation=operation_, - ) - return self._inner_api_calls['mutate_customer_client_link']( - request, retry=retry, timeout=timeout, metadata=metadata) diff --git a/google/ads/google_ads/v1/services/customer_client_link_service_client_config.py b/google/ads/google_ads/v1/services/customer_client_link_service_client_config.py deleted file mode 100644 index 30eac9b97..000000000 --- a/google/ads/google_ads/v1/services/customer_client_link_service_client_config.py +++ /dev/null @@ -1,33 +0,0 @@ -config = { - "interfaces": { - "google.ads.googleads.v1.services.CustomerClientLinkService": { - "retry_codes": { - "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], - "non_idempotent": [] - }, - "retry_params": { - "default": { - "initial_retry_delay_millis": 5000, - "retry_delay_multiplier": 1.3, - "max_retry_delay_millis": 60000, - "initial_rpc_timeout_millis": 3600000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 3600000, - "total_timeout_millis": 3600000 - } - }, - "methods": { - "GetCustomerClientLink": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default" - }, - "MutateCustomerClientLink": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default" - } - } - } - } -} diff --git a/google/ads/google_ads/v1/services/customer_client_service_client_config.py b/google/ads/google_ads/v1/services/customer_client_service_client_config.py deleted file mode 100644 index 6f893be01..000000000 --- a/google/ads/google_ads/v1/services/customer_client_service_client_config.py +++ /dev/null @@ -1,28 +0,0 @@ -config = { - "interfaces": { - "google.ads.googleads.v1.services.CustomerClientService": { - "retry_codes": { - "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], - "non_idempotent": [] - }, - "retry_params": { - "default": { - "initial_retry_delay_millis": 5000, - "retry_delay_multiplier": 1.3, - "max_retry_delay_millis": 60000, - "initial_rpc_timeout_millis": 3600000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 3600000, - "total_timeout_millis": 3600000 - } - }, - "methods": { - "GetCustomerClient": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default" - } - } - } - } -} diff --git a/google/ads/google_ads/v1/services/customer_extension_setting_service_client.py b/google/ads/google_ads/v1/services/customer_extension_setting_service_client.py deleted file mode 100644 index 4a76e09e6..000000000 --- a/google/ads/google_ads/v1/services/customer_extension_setting_service_client.py +++ /dev/null @@ -1,286 +0,0 @@ -# -*- coding: utf-8 -*- -# -# 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. -"""Accesses the google.ads.googleads.v1.services CustomerExtensionSettingService API.""" - -import pkg_resources -import warnings - -from google.oauth2 import service_account -import google.api_core.gapic_v1.client_info -import google.api_core.gapic_v1.config -import google.api_core.gapic_v1.method -import google.api_core.grpc_helpers -import google.api_core.path_template - -from google.ads.google_ads.v1.services import customer_extension_setting_service_client_config -from google.ads.google_ads.v1.services.transports import customer_extension_setting_service_grpc_transport -from google.ads.google_ads.v1.proto.services import customer_extension_setting_service_pb2 - -_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( - 'google-ads', ).version - - -class CustomerExtensionSettingServiceClient(object): - """Service to manage customer extension settings.""" - - SERVICE_ADDRESS = 'googleads.googleapis.com:443' - """The default address of the service.""" - - # The name of the interface for this client. This is the key used to - # find the method configuration in the client_config dictionary. - _INTERFACE_NAME = 'google.ads.googleads.v1.services.CustomerExtensionSettingService' - - @classmethod - def from_service_account_file(cls, filename, *args, **kwargs): - """Creates an instance of this client using the provided credentials - file. - - Args: - filename (str): The path to the service account private key json - file. - args: Additional arguments to pass to the constructor. - kwargs: Additional arguments to pass to the constructor. - - Returns: - CustomerExtensionSettingServiceClient: The constructed client. - """ - credentials = service_account.Credentials.from_service_account_file( - filename) - kwargs['credentials'] = credentials - return cls(*args, **kwargs) - - from_service_account_json = from_service_account_file - - @classmethod - def customer_extension_setting_path(cls, customer, - customer_extension_setting): - """Return a fully-qualified customer_extension_setting string.""" - return google.api_core.path_template.expand( - 'customers/{customer}/customerExtensionSettings/{customer_extension_setting}', - customer=customer, - customer_extension_setting=customer_extension_setting, - ) - - def __init__(self, - transport=None, - channel=None, - credentials=None, - client_config=None, - client_info=None): - """Constructor. - - Args: - transport (Union[~.CustomerExtensionSettingServiceGrpcTransport, - Callable[[~.Credentials, type], ~.CustomerExtensionSettingServiceGrpcTransport]): A transport - instance, responsible for actually making the API calls. - The default transport uses the gRPC protocol. - This argument may also be a callable which returns a - transport instance. Callables will be sent the credentials - as the first argument and the default transport class as - the second argument. - channel (grpc.Channel): DEPRECATED. A ``Channel`` instance - through which to make calls. This argument is mutually exclusive - with ``credentials``; providing both will raise an exception. - credentials (google.auth.credentials.Credentials): The - authorization credentials to attach to requests. These - credentials identify this application to the service. If none - are specified, the client will attempt to ascertain the - credentials from the environment. - This argument is mutually exclusive with providing a - transport instance to ``transport``; doing so will raise - an exception. - client_config (dict): DEPRECATED. A dictionary of call options for - each method. If not specified, the default configuration is used. - client_info (google.api_core.gapic_v1.client_info.ClientInfo): - The client info used to send a user-agent string along with - API requests. If ``None``, then default info will be used. - Generally, you only need to set this if you're developing - your own client library. - """ - # Raise deprecation warnings for things we want to go away. - if client_config is not None: - warnings.warn( - 'The `client_config` argument is deprecated.', - PendingDeprecationWarning, - stacklevel=2) - else: - client_config = customer_extension_setting_service_client_config.config - - if channel: - warnings.warn( - 'The `channel` argument is deprecated; use ' - '`transport` instead.', - PendingDeprecationWarning, - stacklevel=2) - - # Instantiate the transport. - # The transport is responsible for handling serialization and - # deserialization and actually sending data to the service. - if transport: - if callable(transport): - self.transport = transport( - credentials=credentials, - default_class= - customer_extension_setting_service_grpc_transport. - CustomerExtensionSettingServiceGrpcTransport, - ) - else: - if credentials: - raise ValueError( - 'Received both a transport instance and ' - 'credentials; these are mutually exclusive.') - self.transport = transport - else: - self.transport = customer_extension_setting_service_grpc_transport.CustomerExtensionSettingServiceGrpcTransport( - address=self.SERVICE_ADDRESS, - channel=channel, - credentials=credentials, - ) - - if client_info is None: - client_info = google.api_core.gapic_v1.client_info.ClientInfo( - gapic_version=_GAPIC_LIBRARY_VERSION, ) - else: - client_info.gapic_version = _GAPIC_LIBRARY_VERSION - self._client_info = client_info - - # Parse out the default settings for retry and timeout for each RPC - # from the client configuration. - # (Ordinarily, these are the defaults specified in the `*_config.py` - # file next to this one.) - self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( - client_config['interfaces'][self._INTERFACE_NAME], ) - - # Save a dictionary of cached API call functions. - # These are the actual callables which invoke the proper - # transport methods, wrapped with `wrap_method` to add retry, - # timeout, and the like. - self._inner_api_calls = {} - - # Service calls - def get_customer_extension_setting( - self, - resource_name, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): - """ - Returns the requested customer extension setting in full detail. - - Args: - resource_name (str): The resource name of the customer extension setting to fetch. - retry (Optional[google.api_core.retry.Retry]): A retry object used - to retry requests. If ``None`` is specified, requests will not - be retried. - timeout (Optional[float]): The amount of time, in seconds, to wait - for the request to complete. Note that if ``retry`` is - specified, the timeout applies to each individual attempt. - metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata - that is provided to the method. - - Returns: - A :class:`~google.ads.googleads_v1.types.CustomerExtensionSetting` instance. - - Raises: - google.api_core.exceptions.GoogleAPICallError: If the request - failed for any reason. - google.api_core.exceptions.RetryError: If the request failed due - to a retryable error and retry attempts failed. - ValueError: If the parameters are invalid. - """ - # Wrap the transport method to add retry and timeout logic. - if 'get_customer_extension_setting' not in self._inner_api_calls: - self._inner_api_calls[ - 'get_customer_extension_setting'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.get_customer_extension_setting, - default_retry=self. - _method_configs['GetCustomerExtensionSetting'].retry, - default_timeout=self. - _method_configs['GetCustomerExtensionSetting'].timeout, - client_info=self._client_info, - ) - - request = customer_extension_setting_service_pb2.GetCustomerExtensionSettingRequest( - resource_name=resource_name, ) - return self._inner_api_calls['get_customer_extension_setting']( - request, retry=retry, timeout=timeout, metadata=metadata) - - def mutate_customer_extension_settings( - self, - customer_id, - operations, - partial_failure=None, - validate_only=None, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): - """ - Creates, updates, or removes customer extension settings. Operation - statuses are returned. - - Args: - customer_id (str): The ID of the customer whose customer extension settings are being - modified. - operations (list[Union[dict, ~google.ads.googleads_v1.types.CustomerExtensionSettingOperation]]): The list of operations to perform on individual customer extension - settings. - - If a dict is provided, it must be of the same form as the protobuf - message :class:`~google.ads.googleads_v1.types.CustomerExtensionSettingOperation` - partial_failure (bool): If true, successful operations will be carried out and invalid - operations will return errors. If false, all operations will be carried - out in one transaction if and only if they are all valid. - Default is false. - validate_only (bool): If true, the request is validated but not executed. Only errors are - returned, not results. - retry (Optional[google.api_core.retry.Retry]): A retry object used - to retry requests. If ``None`` is specified, requests will not - be retried. - timeout (Optional[float]): The amount of time, in seconds, to wait - for the request to complete. Note that if ``retry`` is - specified, the timeout applies to each individual attempt. - metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata - that is provided to the method. - - Returns: - A :class:`~google.ads.googleads_v1.types.MutateCustomerExtensionSettingsResponse` instance. - - Raises: - google.api_core.exceptions.GoogleAPICallError: If the request - failed for any reason. - google.api_core.exceptions.RetryError: If the request failed due - to a retryable error and retry attempts failed. - ValueError: If the parameters are invalid. - """ - # Wrap the transport method to add retry and timeout logic. - if 'mutate_customer_extension_settings' not in self._inner_api_calls: - self._inner_api_calls[ - 'mutate_customer_extension_settings'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.mutate_customer_extension_settings, - default_retry=self. - _method_configs['MutateCustomerExtensionSettings'].retry, - default_timeout=self. - _method_configs['MutateCustomerExtensionSettings'].timeout, - client_info=self._client_info, - ) - - request = customer_extension_setting_service_pb2.MutateCustomerExtensionSettingsRequest( - customer_id=customer_id, - operations=operations, - partial_failure=partial_failure, - validate_only=validate_only, - ) - return self._inner_api_calls['mutate_customer_extension_settings']( - request, retry=retry, timeout=timeout, metadata=metadata) diff --git a/google/ads/google_ads/v1/services/customer_extension_setting_service_client_config.py b/google/ads/google_ads/v1/services/customer_extension_setting_service_client_config.py deleted file mode 100644 index 2cf25d66b..000000000 --- a/google/ads/google_ads/v1/services/customer_extension_setting_service_client_config.py +++ /dev/null @@ -1,33 +0,0 @@ -config = { - "interfaces": { - "google.ads.googleads.v1.services.CustomerExtensionSettingService": { - "retry_codes": { - "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], - "non_idempotent": [] - }, - "retry_params": { - "default": { - "initial_retry_delay_millis": 5000, - "retry_delay_multiplier": 1.3, - "max_retry_delay_millis": 60000, - "initial_rpc_timeout_millis": 3600000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 3600000, - "total_timeout_millis": 3600000 - } - }, - "methods": { - "GetCustomerExtensionSetting": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default" - }, - "MutateCustomerExtensionSettings": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default" - } - } - } - } -} diff --git a/google/ads/google_ads/v1/services/customer_feed_service_client.py b/google/ads/google_ads/v1/services/customer_feed_service_client.py deleted file mode 100644 index 6e8bb1300..000000000 --- a/google/ads/google_ads/v1/services/customer_feed_service_client.py +++ /dev/null @@ -1,280 +0,0 @@ -# -*- coding: utf-8 -*- -# -# 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. -"""Accesses the google.ads.googleads.v1.services CustomerFeedService API.""" - -import pkg_resources -import warnings - -from google.oauth2 import service_account -import google.api_core.gapic_v1.client_info -import google.api_core.gapic_v1.config -import google.api_core.gapic_v1.method -import google.api_core.grpc_helpers -import google.api_core.path_template - -from google.ads.google_ads.v1.services import customer_feed_service_client_config -from google.ads.google_ads.v1.services.transports import customer_feed_service_grpc_transport -from google.ads.google_ads.v1.proto.services import customer_feed_service_pb2 - -_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( - 'google-ads', ).version - - -class CustomerFeedServiceClient(object): - """Service to manage customer feeds.""" - - SERVICE_ADDRESS = 'googleads.googleapis.com:443' - """The default address of the service.""" - - # The name of the interface for this client. This is the key used to - # find the method configuration in the client_config dictionary. - _INTERFACE_NAME = 'google.ads.googleads.v1.services.CustomerFeedService' - - @classmethod - def from_service_account_file(cls, filename, *args, **kwargs): - """Creates an instance of this client using the provided credentials - file. - - Args: - filename (str): The path to the service account private key json - file. - args: Additional arguments to pass to the constructor. - kwargs: Additional arguments to pass to the constructor. - - Returns: - CustomerFeedServiceClient: The constructed client. - """ - credentials = service_account.Credentials.from_service_account_file( - filename) - kwargs['credentials'] = credentials - return cls(*args, **kwargs) - - from_service_account_json = from_service_account_file - - @classmethod - def customer_feed_path(cls, customer, customer_feed): - """Return a fully-qualified customer_feed string.""" - return google.api_core.path_template.expand( - 'customers/{customer}/customerFeeds/{customer_feed}', - customer=customer, - customer_feed=customer_feed, - ) - - def __init__(self, - transport=None, - channel=None, - credentials=None, - client_config=None, - client_info=None): - """Constructor. - - Args: - transport (Union[~.CustomerFeedServiceGrpcTransport, - Callable[[~.Credentials, type], ~.CustomerFeedServiceGrpcTransport]): A transport - instance, responsible for actually making the API calls. - The default transport uses the gRPC protocol. - This argument may also be a callable which returns a - transport instance. Callables will be sent the credentials - as the first argument and the default transport class as - the second argument. - channel (grpc.Channel): DEPRECATED. A ``Channel`` instance - through which to make calls. This argument is mutually exclusive - with ``credentials``; providing both will raise an exception. - credentials (google.auth.credentials.Credentials): The - authorization credentials to attach to requests. These - credentials identify this application to the service. If none - are specified, the client will attempt to ascertain the - credentials from the environment. - This argument is mutually exclusive with providing a - transport instance to ``transport``; doing so will raise - an exception. - client_config (dict): DEPRECATED. A dictionary of call options for - each method. If not specified, the default configuration is used. - client_info (google.api_core.gapic_v1.client_info.ClientInfo): - The client info used to send a user-agent string along with - API requests. If ``None``, then default info will be used. - Generally, you only need to set this if you're developing - your own client library. - """ - # Raise deprecation warnings for things we want to go away. - if client_config is not None: - warnings.warn( - 'The `client_config` argument is deprecated.', - PendingDeprecationWarning, - stacklevel=2) - else: - client_config = customer_feed_service_client_config.config - - if channel: - warnings.warn( - 'The `channel` argument is deprecated; use ' - '`transport` instead.', - PendingDeprecationWarning, - stacklevel=2) - - # Instantiate the transport. - # The transport is responsible for handling serialization and - # deserialization and actually sending data to the service. - if transport: - if callable(transport): - self.transport = transport( - credentials=credentials, - default_class=customer_feed_service_grpc_transport. - CustomerFeedServiceGrpcTransport, - ) - else: - if credentials: - raise ValueError( - 'Received both a transport instance and ' - 'credentials; these are mutually exclusive.') - self.transport = transport - else: - self.transport = customer_feed_service_grpc_transport.CustomerFeedServiceGrpcTransport( - address=self.SERVICE_ADDRESS, - channel=channel, - credentials=credentials, - ) - - if client_info is None: - client_info = google.api_core.gapic_v1.client_info.ClientInfo( - gapic_version=_GAPIC_LIBRARY_VERSION, ) - else: - client_info.gapic_version = _GAPIC_LIBRARY_VERSION - self._client_info = client_info - - # Parse out the default settings for retry and timeout for each RPC - # from the client configuration. - # (Ordinarily, these are the defaults specified in the `*_config.py` - # file next to this one.) - self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( - client_config['interfaces'][self._INTERFACE_NAME], ) - - # Save a dictionary of cached API call functions. - # These are the actual callables which invoke the proper - # transport methods, wrapped with `wrap_method` to add retry, - # timeout, and the like. - self._inner_api_calls = {} - - # Service calls - def get_customer_feed(self, - resource_name, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): - """ - Returns the requested customer feed in full detail. - - Args: - resource_name (str): The resource name of the customer feed to fetch. - retry (Optional[google.api_core.retry.Retry]): A retry object used - to retry requests. If ``None`` is specified, requests will not - be retried. - timeout (Optional[float]): The amount of time, in seconds, to wait - for the request to complete. Note that if ``retry`` is - specified, the timeout applies to each individual attempt. - metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata - that is provided to the method. - - Returns: - A :class:`~google.ads.googleads_v1.types.CustomerFeed` instance. - - Raises: - google.api_core.exceptions.GoogleAPICallError: If the request - failed for any reason. - google.api_core.exceptions.RetryError: If the request failed due - to a retryable error and retry attempts failed. - ValueError: If the parameters are invalid. - """ - # Wrap the transport method to add retry and timeout logic. - if 'get_customer_feed' not in self._inner_api_calls: - self._inner_api_calls[ - 'get_customer_feed'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.get_customer_feed, - default_retry=self._method_configs['GetCustomerFeed']. - retry, - default_timeout=self._method_configs['GetCustomerFeed']. - timeout, - client_info=self._client_info, - ) - - request = customer_feed_service_pb2.GetCustomerFeedRequest( - resource_name=resource_name, ) - return self._inner_api_calls['get_customer_feed']( - request, retry=retry, timeout=timeout, metadata=metadata) - - def mutate_customer_feeds(self, - customer_id, - operations, - partial_failure=None, - validate_only=None, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): - """ - Creates, updates, or removes customer feeds. Operation statuses are - returned. - - Args: - customer_id (str): The ID of the customer whose customer feeds are being modified. - operations (list[Union[dict, ~google.ads.googleads_v1.types.CustomerFeedOperation]]): The list of operations to perform on individual customer feeds. - - If a dict is provided, it must be of the same form as the protobuf - message :class:`~google.ads.googleads_v1.types.CustomerFeedOperation` - partial_failure (bool): If true, successful operations will be carried out and invalid - operations will return errors. If false, all operations will be carried - out in one transaction if and only if they are all valid. - Default is false. - validate_only (bool): If true, the request is validated but not executed. Only errors are - returned, not results. - retry (Optional[google.api_core.retry.Retry]): A retry object used - to retry requests. If ``None`` is specified, requests will not - be retried. - timeout (Optional[float]): The amount of time, in seconds, to wait - for the request to complete. Note that if ``retry`` is - specified, the timeout applies to each individual attempt. - metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata - that is provided to the method. - - Returns: - A :class:`~google.ads.googleads_v1.types.MutateCustomerFeedsResponse` instance. - - Raises: - google.api_core.exceptions.GoogleAPICallError: If the request - failed for any reason. - google.api_core.exceptions.RetryError: If the request failed due - to a retryable error and retry attempts failed. - ValueError: If the parameters are invalid. - """ - # Wrap the transport method to add retry and timeout logic. - if 'mutate_customer_feeds' not in self._inner_api_calls: - self._inner_api_calls[ - 'mutate_customer_feeds'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.mutate_customer_feeds, - default_retry=self._method_configs['MutateCustomerFeeds']. - retry, - default_timeout=self. - _method_configs['MutateCustomerFeeds'].timeout, - client_info=self._client_info, - ) - - request = customer_feed_service_pb2.MutateCustomerFeedsRequest( - customer_id=customer_id, - operations=operations, - partial_failure=partial_failure, - validate_only=validate_only, - ) - return self._inner_api_calls['mutate_customer_feeds']( - request, retry=retry, timeout=timeout, metadata=metadata) diff --git a/google/ads/google_ads/v1/services/customer_feed_service_client_config.py b/google/ads/google_ads/v1/services/customer_feed_service_client_config.py deleted file mode 100644 index 790105aad..000000000 --- a/google/ads/google_ads/v1/services/customer_feed_service_client_config.py +++ /dev/null @@ -1,33 +0,0 @@ -config = { - "interfaces": { - "google.ads.googleads.v1.services.CustomerFeedService": { - "retry_codes": { - "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], - "non_idempotent": [] - }, - "retry_params": { - "default": { - "initial_retry_delay_millis": 5000, - "retry_delay_multiplier": 1.3, - "max_retry_delay_millis": 60000, - "initial_rpc_timeout_millis": 3600000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 3600000, - "total_timeout_millis": 3600000 - } - }, - "methods": { - "GetCustomerFeed": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default" - }, - "MutateCustomerFeeds": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default" - } - } - } - } -} diff --git a/google/ads/google_ads/v1/services/customer_label_service_client.py b/google/ads/google_ads/v1/services/customer_label_service_client.py deleted file mode 100644 index dd2ef7d4d..000000000 --- a/google/ads/google_ads/v1/services/customer_label_service_client.py +++ /dev/null @@ -1,280 +0,0 @@ -# -*- coding: utf-8 -*- -# -# 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. -"""Accesses the google.ads.googleads.v1.services CustomerLabelService API.""" - -import pkg_resources -import warnings - -from google.oauth2 import service_account -import google.api_core.gapic_v1.client_info -import google.api_core.gapic_v1.config -import google.api_core.gapic_v1.method -import google.api_core.grpc_helpers -import google.api_core.path_template - -from google.ads.google_ads.v1.services import customer_label_service_client_config -from google.ads.google_ads.v1.services.transports import customer_label_service_grpc_transport -from google.ads.google_ads.v1.proto.services import customer_label_service_pb2 - -_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( - 'google-ads', ).version - - -class CustomerLabelServiceClient(object): - """Service to manage labels on customers.""" - - SERVICE_ADDRESS = 'googleads.googleapis.com:443' - """The default address of the service.""" - - # The name of the interface for this client. This is the key used to - # find the method configuration in the client_config dictionary. - _INTERFACE_NAME = 'google.ads.googleads.v1.services.CustomerLabelService' - - @classmethod - def from_service_account_file(cls, filename, *args, **kwargs): - """Creates an instance of this client using the provided credentials - file. - - Args: - filename (str): The path to the service account private key json - file. - args: Additional arguments to pass to the constructor. - kwargs: Additional arguments to pass to the constructor. - - Returns: - CustomerLabelServiceClient: The constructed client. - """ - credentials = service_account.Credentials.from_service_account_file( - filename) - kwargs['credentials'] = credentials - return cls(*args, **kwargs) - - from_service_account_json = from_service_account_file - - @classmethod - def customer_label_path(cls, customer, customer_label): - """Return a fully-qualified customer_label string.""" - return google.api_core.path_template.expand( - 'customers/{customer}/customerLabels/{customer_label}', - customer=customer, - customer_label=customer_label, - ) - - def __init__(self, - transport=None, - channel=None, - credentials=None, - client_config=None, - client_info=None): - """Constructor. - - Args: - transport (Union[~.CustomerLabelServiceGrpcTransport, - Callable[[~.Credentials, type], ~.CustomerLabelServiceGrpcTransport]): A transport - instance, responsible for actually making the API calls. - The default transport uses the gRPC protocol. - This argument may also be a callable which returns a - transport instance. Callables will be sent the credentials - as the first argument and the default transport class as - the second argument. - channel (grpc.Channel): DEPRECATED. A ``Channel`` instance - through which to make calls. This argument is mutually exclusive - with ``credentials``; providing both will raise an exception. - credentials (google.auth.credentials.Credentials): The - authorization credentials to attach to requests. These - credentials identify this application to the service. If none - are specified, the client will attempt to ascertain the - credentials from the environment. - This argument is mutually exclusive with providing a - transport instance to ``transport``; doing so will raise - an exception. - client_config (dict): DEPRECATED. A dictionary of call options for - each method. If not specified, the default configuration is used. - client_info (google.api_core.gapic_v1.client_info.ClientInfo): - The client info used to send a user-agent string along with - API requests. If ``None``, then default info will be used. - Generally, you only need to set this if you're developing - your own client library. - """ - # Raise deprecation warnings for things we want to go away. - if client_config is not None: - warnings.warn( - 'The `client_config` argument is deprecated.', - PendingDeprecationWarning, - stacklevel=2) - else: - client_config = customer_label_service_client_config.config - - if channel: - warnings.warn( - 'The `channel` argument is deprecated; use ' - '`transport` instead.', - PendingDeprecationWarning, - stacklevel=2) - - # Instantiate the transport. - # The transport is responsible for handling serialization and - # deserialization and actually sending data to the service. - if transport: - if callable(transport): - self.transport = transport( - credentials=credentials, - default_class=customer_label_service_grpc_transport. - CustomerLabelServiceGrpcTransport, - ) - else: - if credentials: - raise ValueError( - 'Received both a transport instance and ' - 'credentials; these are mutually exclusive.') - self.transport = transport - else: - self.transport = customer_label_service_grpc_transport.CustomerLabelServiceGrpcTransport( - address=self.SERVICE_ADDRESS, - channel=channel, - credentials=credentials, - ) - - if client_info is None: - client_info = google.api_core.gapic_v1.client_info.ClientInfo( - gapic_version=_GAPIC_LIBRARY_VERSION, ) - else: - client_info.gapic_version = _GAPIC_LIBRARY_VERSION - self._client_info = client_info - - # Parse out the default settings for retry and timeout for each RPC - # from the client configuration. - # (Ordinarily, these are the defaults specified in the `*_config.py` - # file next to this one.) - self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( - client_config['interfaces'][self._INTERFACE_NAME], ) - - # Save a dictionary of cached API call functions. - # These are the actual callables which invoke the proper - # transport methods, wrapped with `wrap_method` to add retry, - # timeout, and the like. - self._inner_api_calls = {} - - # Service calls - def get_customer_label(self, - resource_name, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): - """ - Returns the requested customer-label relationship in full detail. - - Args: - resource_name (str): The resource name of the customer-label relationship to fetch. - retry (Optional[google.api_core.retry.Retry]): A retry object used - to retry requests. If ``None`` is specified, requests will not - be retried. - timeout (Optional[float]): The amount of time, in seconds, to wait - for the request to complete. Note that if ``retry`` is - specified, the timeout applies to each individual attempt. - metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata - that is provided to the method. - - Returns: - A :class:`~google.ads.googleads_v1.types.CustomerLabel` instance. - - Raises: - google.api_core.exceptions.GoogleAPICallError: If the request - failed for any reason. - google.api_core.exceptions.RetryError: If the request failed due - to a retryable error and retry attempts failed. - ValueError: If the parameters are invalid. - """ - # Wrap the transport method to add retry and timeout logic. - if 'get_customer_label' not in self._inner_api_calls: - self._inner_api_calls[ - 'get_customer_label'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.get_customer_label, - default_retry=self._method_configs['GetCustomerLabel']. - retry, - default_timeout=self._method_configs['GetCustomerLabel']. - timeout, - client_info=self._client_info, - ) - - request = customer_label_service_pb2.GetCustomerLabelRequest( - resource_name=resource_name, ) - return self._inner_api_calls['get_customer_label']( - request, retry=retry, timeout=timeout, metadata=metadata) - - def mutate_customer_labels(self, - customer_id, - operations, - partial_failure=None, - validate_only=None, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): - """ - Creates and removes customer-label relationships. - Operation statuses are returned. - - Args: - customer_id (str): ID of the customer whose customer-label relationships are being modified. - operations (list[Union[dict, ~google.ads.googleads_v1.types.CustomerLabelOperation]]): The list of operations to perform on customer-label relationships. - - If a dict is provided, it must be of the same form as the protobuf - message :class:`~google.ads.googleads_v1.types.CustomerLabelOperation` - partial_failure (bool): If true, successful operations will be carried out and invalid - operations will return errors. If false, all operations will be carried - out in one transaction if and only if they are all valid. - Default is false. - validate_only (bool): If true, the request is validated but not executed. Only errors are - returned, not results. - retry (Optional[google.api_core.retry.Retry]): A retry object used - to retry requests. If ``None`` is specified, requests will not - be retried. - timeout (Optional[float]): The amount of time, in seconds, to wait - for the request to complete. Note that if ``retry`` is - specified, the timeout applies to each individual attempt. - metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata - that is provided to the method. - - Returns: - A :class:`~google.ads.googleads_v1.types.MutateCustomerLabelsResponse` instance. - - Raises: - google.api_core.exceptions.GoogleAPICallError: If the request - failed for any reason. - google.api_core.exceptions.RetryError: If the request failed due - to a retryable error and retry attempts failed. - ValueError: If the parameters are invalid. - """ - # Wrap the transport method to add retry and timeout logic. - if 'mutate_customer_labels' not in self._inner_api_calls: - self._inner_api_calls[ - 'mutate_customer_labels'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.mutate_customer_labels, - default_retry=self._method_configs['MutateCustomerLabels']. - retry, - default_timeout=self. - _method_configs['MutateCustomerLabels'].timeout, - client_info=self._client_info, - ) - - request = customer_label_service_pb2.MutateCustomerLabelsRequest( - customer_id=customer_id, - operations=operations, - partial_failure=partial_failure, - validate_only=validate_only, - ) - return self._inner_api_calls['mutate_customer_labels']( - request, retry=retry, timeout=timeout, metadata=metadata) diff --git a/google/ads/google_ads/v1/services/customer_label_service_client_config.py b/google/ads/google_ads/v1/services/customer_label_service_client_config.py deleted file mode 100644 index 0a2efbc1f..000000000 --- a/google/ads/google_ads/v1/services/customer_label_service_client_config.py +++ /dev/null @@ -1,33 +0,0 @@ -config = { - "interfaces": { - "google.ads.googleads.v1.services.CustomerLabelService": { - "retry_codes": { - "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], - "non_idempotent": [] - }, - "retry_params": { - "default": { - "initial_retry_delay_millis": 5000, - "retry_delay_multiplier": 1.3, - "max_retry_delay_millis": 60000, - "initial_rpc_timeout_millis": 3600000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 3600000, - "total_timeout_millis": 3600000 - } - }, - "methods": { - "GetCustomerLabel": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default" - }, - "MutateCustomerLabels": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default" - } - } - } - } -} diff --git a/google/ads/google_ads/v1/services/customer_manager_link_service_client.py b/google/ads/google_ads/v1/services/customer_manager_link_service_client.py deleted file mode 100644 index 68b7ee088..000000000 --- a/google/ads/google_ads/v1/services/customer_manager_link_service_client.py +++ /dev/null @@ -1,271 +0,0 @@ -# -*- coding: utf-8 -*- -# -# 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. -"""Accesses the google.ads.googleads.v1.services CustomerManagerLinkService API.""" - -import pkg_resources -import warnings - -from google.oauth2 import service_account -import google.api_core.gapic_v1.client_info -import google.api_core.gapic_v1.config -import google.api_core.gapic_v1.method -import google.api_core.grpc_helpers -import google.api_core.path_template - -from google.ads.google_ads.v1.services import customer_manager_link_service_client_config -from google.ads.google_ads.v1.services.transports import customer_manager_link_service_grpc_transport -from google.ads.google_ads.v1.proto.services import customer_manager_link_service_pb2 - -_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( - 'google-ads', ).version - - -class CustomerManagerLinkServiceClient(object): - """Service to manage customer-manager links.""" - - SERVICE_ADDRESS = 'googleads.googleapis.com:443' - """The default address of the service.""" - - # The name of the interface for this client. This is the key used to - # find the method configuration in the client_config dictionary. - _INTERFACE_NAME = 'google.ads.googleads.v1.services.CustomerManagerLinkService' - - @classmethod - def from_service_account_file(cls, filename, *args, **kwargs): - """Creates an instance of this client using the provided credentials - file. - - Args: - filename (str): The path to the service account private key json - file. - args: Additional arguments to pass to the constructor. - kwargs: Additional arguments to pass to the constructor. - - Returns: - CustomerManagerLinkServiceClient: The constructed client. - """ - credentials = service_account.Credentials.from_service_account_file( - filename) - kwargs['credentials'] = credentials - return cls(*args, **kwargs) - - from_service_account_json = from_service_account_file - - @classmethod - def customer_manager_link_path(cls, customer, customer_manager_link): - """Return a fully-qualified customer_manager_link string.""" - return google.api_core.path_template.expand( - 'customers/{customer}/customerManagerLinks/{customer_manager_link}', - customer=customer, - customer_manager_link=customer_manager_link, - ) - - def __init__(self, - transport=None, - channel=None, - credentials=None, - client_config=None, - client_info=None): - """Constructor. - - Args: - transport (Union[~.CustomerManagerLinkServiceGrpcTransport, - Callable[[~.Credentials, type], ~.CustomerManagerLinkServiceGrpcTransport]): A transport - instance, responsible for actually making the API calls. - The default transport uses the gRPC protocol. - This argument may also be a callable which returns a - transport instance. Callables will be sent the credentials - as the first argument and the default transport class as - the second argument. - channel (grpc.Channel): DEPRECATED. A ``Channel`` instance - through which to make calls. This argument is mutually exclusive - with ``credentials``; providing both will raise an exception. - credentials (google.auth.credentials.Credentials): The - authorization credentials to attach to requests. These - credentials identify this application to the service. If none - are specified, the client will attempt to ascertain the - credentials from the environment. - This argument is mutually exclusive with providing a - transport instance to ``transport``; doing so will raise - an exception. - client_config (dict): DEPRECATED. A dictionary of call options for - each method. If not specified, the default configuration is used. - client_info (google.api_core.gapic_v1.client_info.ClientInfo): - The client info used to send a user-agent string along with - API requests. If ``None``, then default info will be used. - Generally, you only need to set this if you're developing - your own client library. - """ - # Raise deprecation warnings for things we want to go away. - if client_config is not None: - warnings.warn( - 'The `client_config` argument is deprecated.', - PendingDeprecationWarning, - stacklevel=2) - else: - client_config = customer_manager_link_service_client_config.config - - if channel: - warnings.warn( - 'The `channel` argument is deprecated; use ' - '`transport` instead.', - PendingDeprecationWarning, - stacklevel=2) - - # Instantiate the transport. - # The transport is responsible for handling serialization and - # deserialization and actually sending data to the service. - if transport: - if callable(transport): - self.transport = transport( - credentials=credentials, - default_class=customer_manager_link_service_grpc_transport. - CustomerManagerLinkServiceGrpcTransport, - ) - else: - if credentials: - raise ValueError( - 'Received both a transport instance and ' - 'credentials; these are mutually exclusive.') - self.transport = transport - else: - self.transport = customer_manager_link_service_grpc_transport.CustomerManagerLinkServiceGrpcTransport( - address=self.SERVICE_ADDRESS, - channel=channel, - credentials=credentials, - ) - - if client_info is None: - client_info = google.api_core.gapic_v1.client_info.ClientInfo( - gapic_version=_GAPIC_LIBRARY_VERSION, ) - else: - client_info.gapic_version = _GAPIC_LIBRARY_VERSION - self._client_info = client_info - - # Parse out the default settings for retry and timeout for each RPC - # from the client configuration. - # (Ordinarily, these are the defaults specified in the `*_config.py` - # file next to this one.) - self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( - client_config['interfaces'][self._INTERFACE_NAME], ) - - # Save a dictionary of cached API call functions. - # These are the actual callables which invoke the proper - # transport methods, wrapped with `wrap_method` to add retry, - # timeout, and the like. - self._inner_api_calls = {} - - # Service calls - def get_customer_manager_link( - self, - resource_name, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): - """ - Returns the requested CustomerManagerLink in full detail. - - Args: - resource_name (str): The resource name of the CustomerManagerLink to fetch. - retry (Optional[google.api_core.retry.Retry]): A retry object used - to retry requests. If ``None`` is specified, requests will not - be retried. - timeout (Optional[float]): The amount of time, in seconds, to wait - for the request to complete. Note that if ``retry`` is - specified, the timeout applies to each individual attempt. - metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata - that is provided to the method. - - Returns: - A :class:`~google.ads.googleads_v1.types.CustomerManagerLink` instance. - - Raises: - google.api_core.exceptions.GoogleAPICallError: If the request - failed for any reason. - google.api_core.exceptions.RetryError: If the request failed due - to a retryable error and retry attempts failed. - ValueError: If the parameters are invalid. - """ - # Wrap the transport method to add retry and timeout logic. - if 'get_customer_manager_link' not in self._inner_api_calls: - self._inner_api_calls[ - 'get_customer_manager_link'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.get_customer_manager_link, - default_retry=self. - _method_configs['GetCustomerManagerLink'].retry, - default_timeout=self. - _method_configs['GetCustomerManagerLink'].timeout, - client_info=self._client_info, - ) - - request = customer_manager_link_service_pb2.GetCustomerManagerLinkRequest( - resource_name=resource_name, ) - return self._inner_api_calls['get_customer_manager_link']( - request, retry=retry, timeout=timeout, metadata=metadata) - - def mutate_customer_manager_link( - self, - customer_id, - operations, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): - """ - Creates or updates customer manager links. Operation statuses are returned. - - Args: - customer_id (str): The ID of the customer whose customer manager links are being modified. - operations (list[Union[dict, ~google.ads.googleads_v1.types.CustomerManagerLinkOperation]]): The list of operations to perform on individual customer manager links. - - If a dict is provided, it must be of the same form as the protobuf - message :class:`~google.ads.googleads_v1.types.CustomerManagerLinkOperation` - retry (Optional[google.api_core.retry.Retry]): A retry object used - to retry requests. If ``None`` is specified, requests will not - be retried. - timeout (Optional[float]): The amount of time, in seconds, to wait - for the request to complete. Note that if ``retry`` is - specified, the timeout applies to each individual attempt. - metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata - that is provided to the method. - - Returns: - A :class:`~google.ads.googleads_v1.types.MutateCustomerManagerLinkResponse` instance. - - Raises: - google.api_core.exceptions.GoogleAPICallError: If the request - failed for any reason. - google.api_core.exceptions.RetryError: If the request failed due - to a retryable error and retry attempts failed. - ValueError: If the parameters are invalid. - """ - # Wrap the transport method to add retry and timeout logic. - if 'mutate_customer_manager_link' not in self._inner_api_calls: - self._inner_api_calls[ - 'mutate_customer_manager_link'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.mutate_customer_manager_link, - default_retry=self. - _method_configs['MutateCustomerManagerLink'].retry, - default_timeout=self. - _method_configs['MutateCustomerManagerLink'].timeout, - client_info=self._client_info, - ) - - request = customer_manager_link_service_pb2.MutateCustomerManagerLinkRequest( - customer_id=customer_id, - operations=operations, - ) - return self._inner_api_calls['mutate_customer_manager_link']( - request, retry=retry, timeout=timeout, metadata=metadata) diff --git a/google/ads/google_ads/v1/services/customer_manager_link_service_client_config.py b/google/ads/google_ads/v1/services/customer_manager_link_service_client_config.py deleted file mode 100644 index f2c61c723..000000000 --- a/google/ads/google_ads/v1/services/customer_manager_link_service_client_config.py +++ /dev/null @@ -1,33 +0,0 @@ -config = { - "interfaces": { - "google.ads.googleads.v1.services.CustomerManagerLinkService": { - "retry_codes": { - "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], - "non_idempotent": [] - }, - "retry_params": { - "default": { - "initial_retry_delay_millis": 5000, - "retry_delay_multiplier": 1.3, - "max_retry_delay_millis": 60000, - "initial_rpc_timeout_millis": 3600000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 3600000, - "total_timeout_millis": 3600000 - } - }, - "methods": { - "GetCustomerManagerLink": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default" - }, - "MutateCustomerManagerLink": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default" - } - } - } - } -} diff --git a/google/ads/google_ads/v1/services/customer_negative_criterion_service_client.py b/google/ads/google_ads/v1/services/customer_negative_criterion_service_client.py deleted file mode 100644 index cfd68b774..000000000 --- a/google/ads/google_ads/v1/services/customer_negative_criterion_service_client.py +++ /dev/null @@ -1,283 +0,0 @@ -# -*- coding: utf-8 -*- -# -# 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. -"""Accesses the google.ads.googleads.v1.services CustomerNegativeCriterionService API.""" - -import pkg_resources -import warnings - -from google.oauth2 import service_account -import google.api_core.gapic_v1.client_info -import google.api_core.gapic_v1.config -import google.api_core.gapic_v1.method -import google.api_core.grpc_helpers -import google.api_core.path_template - -from google.ads.google_ads.v1.services import customer_negative_criterion_service_client_config -from google.ads.google_ads.v1.services.transports import customer_negative_criterion_service_grpc_transport -from google.ads.google_ads.v1.proto.services import customer_negative_criterion_service_pb2 - -_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( - 'google-ads', ).version - - -class CustomerNegativeCriterionServiceClient(object): - """Service to manage customer negative criteria.""" - - SERVICE_ADDRESS = 'googleads.googleapis.com:443' - """The default address of the service.""" - - # The name of the interface for this client. This is the key used to - # find the method configuration in the client_config dictionary. - _INTERFACE_NAME = 'google.ads.googleads.v1.services.CustomerNegativeCriterionService' - - @classmethod - def from_service_account_file(cls, filename, *args, **kwargs): - """Creates an instance of this client using the provided credentials - file. - - Args: - filename (str): The path to the service account private key json - file. - args: Additional arguments to pass to the constructor. - kwargs: Additional arguments to pass to the constructor. - - Returns: - CustomerNegativeCriterionServiceClient: The constructed client. - """ - credentials = service_account.Credentials.from_service_account_file( - filename) - kwargs['credentials'] = credentials - return cls(*args, **kwargs) - - from_service_account_json = from_service_account_file - - @classmethod - def customer_negative_criteria_path(cls, customer, - customer_negative_criteria): - """Return a fully-qualified customer_negative_criteria string.""" - return google.api_core.path_template.expand( - 'customers/{customer}/customerNegativeCriteria/{customer_negative_criteria}', - customer=customer, - customer_negative_criteria=customer_negative_criteria, - ) - - def __init__(self, - transport=None, - channel=None, - credentials=None, - client_config=None, - client_info=None): - """Constructor. - - Args: - transport (Union[~.CustomerNegativeCriterionServiceGrpcTransport, - Callable[[~.Credentials, type], ~.CustomerNegativeCriterionServiceGrpcTransport]): A transport - instance, responsible for actually making the API calls. - The default transport uses the gRPC protocol. - This argument may also be a callable which returns a - transport instance. Callables will be sent the credentials - as the first argument and the default transport class as - the second argument. - channel (grpc.Channel): DEPRECATED. A ``Channel`` instance - through which to make calls. This argument is mutually exclusive - with ``credentials``; providing both will raise an exception. - credentials (google.auth.credentials.Credentials): The - authorization credentials to attach to requests. These - credentials identify this application to the service. If none - are specified, the client will attempt to ascertain the - credentials from the environment. - This argument is mutually exclusive with providing a - transport instance to ``transport``; doing so will raise - an exception. - client_config (dict): DEPRECATED. A dictionary of call options for - each method. If not specified, the default configuration is used. - client_info (google.api_core.gapic_v1.client_info.ClientInfo): - The client info used to send a user-agent string along with - API requests. If ``None``, then default info will be used. - Generally, you only need to set this if you're developing - your own client library. - """ - # Raise deprecation warnings for things we want to go away. - if client_config is not None: - warnings.warn( - 'The `client_config` argument is deprecated.', - PendingDeprecationWarning, - stacklevel=2) - else: - client_config = customer_negative_criterion_service_client_config.config - - if channel: - warnings.warn( - 'The `channel` argument is deprecated; use ' - '`transport` instead.', - PendingDeprecationWarning, - stacklevel=2) - - # Instantiate the transport. - # The transport is responsible for handling serialization and - # deserialization and actually sending data to the service. - if transport: - if callable(transport): - self.transport = transport( - credentials=credentials, - default_class= - customer_negative_criterion_service_grpc_transport. - CustomerNegativeCriterionServiceGrpcTransport, - ) - else: - if credentials: - raise ValueError( - 'Received both a transport instance and ' - 'credentials; these are mutually exclusive.') - self.transport = transport - else: - self.transport = customer_negative_criterion_service_grpc_transport.CustomerNegativeCriterionServiceGrpcTransport( - address=self.SERVICE_ADDRESS, - channel=channel, - credentials=credentials, - ) - - if client_info is None: - client_info = google.api_core.gapic_v1.client_info.ClientInfo( - gapic_version=_GAPIC_LIBRARY_VERSION, ) - else: - client_info.gapic_version = _GAPIC_LIBRARY_VERSION - self._client_info = client_info - - # Parse out the default settings for retry and timeout for each RPC - # from the client configuration. - # (Ordinarily, these are the defaults specified in the `*_config.py` - # file next to this one.) - self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( - client_config['interfaces'][self._INTERFACE_NAME], ) - - # Save a dictionary of cached API call functions. - # These are the actual callables which invoke the proper - # transport methods, wrapped with `wrap_method` to add retry, - # timeout, and the like. - self._inner_api_calls = {} - - # Service calls - def get_customer_negative_criterion( - self, - resource_name, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): - """ - Returns the requested criterion in full detail. - - Args: - resource_name (str): The resource name of the criterion to fetch. - retry (Optional[google.api_core.retry.Retry]): A retry object used - to retry requests. If ``None`` is specified, requests will not - be retried. - timeout (Optional[float]): The amount of time, in seconds, to wait - for the request to complete. Note that if ``retry`` is - specified, the timeout applies to each individual attempt. - metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata - that is provided to the method. - - Returns: - A :class:`~google.ads.googleads_v1.types.CustomerNegativeCriterion` instance. - - Raises: - google.api_core.exceptions.GoogleAPICallError: If the request - failed for any reason. - google.api_core.exceptions.RetryError: If the request failed due - to a retryable error and retry attempts failed. - ValueError: If the parameters are invalid. - """ - # Wrap the transport method to add retry and timeout logic. - if 'get_customer_negative_criterion' not in self._inner_api_calls: - self._inner_api_calls[ - 'get_customer_negative_criterion'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.get_customer_negative_criterion, - default_retry=self. - _method_configs['GetCustomerNegativeCriterion'].retry, - default_timeout=self. - _method_configs['GetCustomerNegativeCriterion'].timeout, - client_info=self._client_info, - ) - - request = customer_negative_criterion_service_pb2.GetCustomerNegativeCriterionRequest( - resource_name=resource_name, ) - return self._inner_api_calls['get_customer_negative_criterion']( - request, retry=retry, timeout=timeout, metadata=metadata) - - def mutate_customer_negative_criteria( - self, - customer_id, - operations, - partial_failure=None, - validate_only=None, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): - """ - Creates or removes criteria. Operation statuses are returned. - - Args: - customer_id (str): The ID of the customer whose criteria are being modified. - operations (list[Union[dict, ~google.ads.googleads_v1.types.CustomerNegativeCriterionOperation]]): The list of operations to perform on individual criteria. - - If a dict is provided, it must be of the same form as the protobuf - message :class:`~google.ads.googleads_v1.types.CustomerNegativeCriterionOperation` - partial_failure (bool): If true, successful operations will be carried out and invalid - operations will return errors. If false, all operations will be carried - out in one transaction if and only if they are all valid. - Default is false. - validate_only (bool): If true, the request is validated but not executed. Only errors are - returned, not results. - retry (Optional[google.api_core.retry.Retry]): A retry object used - to retry requests. If ``None`` is specified, requests will not - be retried. - timeout (Optional[float]): The amount of time, in seconds, to wait - for the request to complete. Note that if ``retry`` is - specified, the timeout applies to each individual attempt. - metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata - that is provided to the method. - - Returns: - A :class:`~google.ads.googleads_v1.types.MutateCustomerNegativeCriteriaResponse` instance. - - Raises: - google.api_core.exceptions.GoogleAPICallError: If the request - failed for any reason. - google.api_core.exceptions.RetryError: If the request failed due - to a retryable error and retry attempts failed. - ValueError: If the parameters are invalid. - """ - # Wrap the transport method to add retry and timeout logic. - if 'mutate_customer_negative_criteria' not in self._inner_api_calls: - self._inner_api_calls[ - 'mutate_customer_negative_criteria'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.mutate_customer_negative_criteria, - default_retry=self. - _method_configs['MutateCustomerNegativeCriteria'].retry, - default_timeout=self. - _method_configs['MutateCustomerNegativeCriteria'].timeout, - client_info=self._client_info, - ) - - request = customer_negative_criterion_service_pb2.MutateCustomerNegativeCriteriaRequest( - customer_id=customer_id, - operations=operations, - partial_failure=partial_failure, - validate_only=validate_only, - ) - return self._inner_api_calls['mutate_customer_negative_criteria']( - request, retry=retry, timeout=timeout, metadata=metadata) diff --git a/google/ads/google_ads/v1/services/customer_negative_criterion_service_client_config.py b/google/ads/google_ads/v1/services/customer_negative_criterion_service_client_config.py deleted file mode 100644 index 095a2b98e..000000000 --- a/google/ads/google_ads/v1/services/customer_negative_criterion_service_client_config.py +++ /dev/null @@ -1,33 +0,0 @@ -config = { - "interfaces": { - "google.ads.googleads.v1.services.CustomerNegativeCriterionService": { - "retry_codes": { - "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], - "non_idempotent": [] - }, - "retry_params": { - "default": { - "initial_retry_delay_millis": 5000, - "retry_delay_multiplier": 1.3, - "max_retry_delay_millis": 60000, - "initial_rpc_timeout_millis": 3600000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 3600000, - "total_timeout_millis": 3600000 - } - }, - "methods": { - "GetCustomerNegativeCriterion": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default" - }, - "MutateCustomerNegativeCriteria": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default" - } - } - } - } -} diff --git a/google/ads/google_ads/v1/services/customer_service_client.py b/google/ads/google_ads/v1/services/customer_service_client.py deleted file mode 100644 index 5e5a72c11..000000000 --- a/google/ads/google_ads/v1/services/customer_service_client.py +++ /dev/null @@ -1,368 +0,0 @@ -# -*- coding: utf-8 -*- -# -# 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. -"""Accesses the google.ads.googleads.v1.services CustomerService API.""" - -import pkg_resources -import warnings - -from google.oauth2 import service_account -import google.api_core.gapic_v1.client_info -import google.api_core.gapic_v1.config -import google.api_core.gapic_v1.method -import google.api_core.grpc_helpers -import google.api_core.path_template - -from google.ads.google_ads.v1.services import customer_service_client_config -from google.ads.google_ads.v1.services.transports import customer_service_grpc_transport -from google.ads.google_ads.v1.proto.services import customer_service_pb2 - -_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( - 'google-ads', ).version - - -class CustomerServiceClient(object): - """Service to manage customers.""" - - SERVICE_ADDRESS = 'googleads.googleapis.com:443' - """The default address of the service.""" - - # The name of the interface for this client. This is the key used to - # find the method configuration in the client_config dictionary. - _INTERFACE_NAME = 'google.ads.googleads.v1.services.CustomerService' - - @classmethod - def from_service_account_file(cls, filename, *args, **kwargs): - """Creates an instance of this client using the provided credentials - file. - - Args: - filename (str): The path to the service account private key json - file. - args: Additional arguments to pass to the constructor. - kwargs: Additional arguments to pass to the constructor. - - Returns: - CustomerServiceClient: The constructed client. - """ - credentials = service_account.Credentials.from_service_account_file( - filename) - kwargs['credentials'] = credentials - return cls(*args, **kwargs) - - from_service_account_json = from_service_account_file - - @classmethod - def customer_path(cls, customer): - """Return a fully-qualified customer string.""" - return google.api_core.path_template.expand( - 'customers/{customer}', - customer=customer, - ) - - def __init__(self, - transport=None, - channel=None, - credentials=None, - client_config=None, - client_info=None): - """Constructor. - - Args: - transport (Union[~.CustomerServiceGrpcTransport, - Callable[[~.Credentials, type], ~.CustomerServiceGrpcTransport]): A transport - instance, responsible for actually making the API calls. - The default transport uses the gRPC protocol. - This argument may also be a callable which returns a - transport instance. Callables will be sent the credentials - as the first argument and the default transport class as - the second argument. - channel (grpc.Channel): DEPRECATED. A ``Channel`` instance - through which to make calls. This argument is mutually exclusive - with ``credentials``; providing both will raise an exception. - credentials (google.auth.credentials.Credentials): The - authorization credentials to attach to requests. These - credentials identify this application to the service. If none - are specified, the client will attempt to ascertain the - credentials from the environment. - This argument is mutually exclusive with providing a - transport instance to ``transport``; doing so will raise - an exception. - client_config (dict): DEPRECATED. A dictionary of call options for - each method. If not specified, the default configuration is used. - client_info (google.api_core.gapic_v1.client_info.ClientInfo): - The client info used to send a user-agent string along with - API requests. If ``None``, then default info will be used. - Generally, you only need to set this if you're developing - your own client library. - """ - # Raise deprecation warnings for things we want to go away. - if client_config is not None: - warnings.warn( - 'The `client_config` argument is deprecated.', - PendingDeprecationWarning, - stacklevel=2) - else: - client_config = customer_service_client_config.config - - if channel: - warnings.warn( - 'The `channel` argument is deprecated; use ' - '`transport` instead.', - PendingDeprecationWarning, - stacklevel=2) - - # Instantiate the transport. - # The transport is responsible for handling serialization and - # deserialization and actually sending data to the service. - if transport: - if callable(transport): - self.transport = transport( - credentials=credentials, - default_class=customer_service_grpc_transport. - CustomerServiceGrpcTransport, - ) - else: - if credentials: - raise ValueError( - 'Received both a transport instance and ' - 'credentials; these are mutually exclusive.') - self.transport = transport - else: - self.transport = customer_service_grpc_transport.CustomerServiceGrpcTransport( - address=self.SERVICE_ADDRESS, - channel=channel, - credentials=credentials, - ) - - if client_info is None: - client_info = google.api_core.gapic_v1.client_info.ClientInfo( - gapic_version=_GAPIC_LIBRARY_VERSION, ) - else: - client_info.gapic_version = _GAPIC_LIBRARY_VERSION - self._client_info = client_info - - # Parse out the default settings for retry and timeout for each RPC - # from the client configuration. - # (Ordinarily, these are the defaults specified in the `*_config.py` - # file next to this one.) - self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( - client_config['interfaces'][self._INTERFACE_NAME], ) - - # Save a dictionary of cached API call functions. - # These are the actual callables which invoke the proper - # transport methods, wrapped with `wrap_method` to add retry, - # timeout, and the like. - self._inner_api_calls = {} - - # Service calls - def get_customer(self, - resource_name, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): - """ - Returns the requested customer in full detail. - - Args: - resource_name (str): The resource name of the customer to fetch. - retry (Optional[google.api_core.retry.Retry]): A retry object used - to retry requests. If ``None`` is specified, requests will not - be retried. - timeout (Optional[float]): The amount of time, in seconds, to wait - for the request to complete. Note that if ``retry`` is - specified, the timeout applies to each individual attempt. - metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata - that is provided to the method. - - Returns: - A :class:`~google.ads.googleads_v1.types.Customer` instance. - - Raises: - google.api_core.exceptions.GoogleAPICallError: If the request - failed for any reason. - google.api_core.exceptions.RetryError: If the request failed due - to a retryable error and retry attempts failed. - ValueError: If the parameters are invalid. - """ - # Wrap the transport method to add retry and timeout logic. - if 'get_customer' not in self._inner_api_calls: - self._inner_api_calls[ - 'get_customer'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.get_customer, - default_retry=self._method_configs['GetCustomer'].retry, - default_timeout=self._method_configs['GetCustomer']. - timeout, - client_info=self._client_info, - ) - - request = customer_service_pb2.GetCustomerRequest( - resource_name=resource_name, ) - return self._inner_api_calls['get_customer']( - request, retry=retry, timeout=timeout, metadata=metadata) - - def mutate_customer(self, - customer_id, - operation_, - validate_only=None, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): - """ - Updates a customer. Operation statuses are returned. - - Args: - customer_id (str): The ID of the customer being modified. - operation_ (Union[dict, ~google.ads.googleads_v1.types.CustomerOperation]): The operation to perform on the customer - - If a dict is provided, it must be of the same form as the protobuf - message :class:`~google.ads.googleads_v1.types.CustomerOperation` - validate_only (bool): If true, the request is validated but not executed. Only errors are - returned, not results. - retry (Optional[google.api_core.retry.Retry]): A retry object used - to retry requests. If ``None`` is specified, requests will not - be retried. - timeout (Optional[float]): The amount of time, in seconds, to wait - for the request to complete. Note that if ``retry`` is - specified, the timeout applies to each individual attempt. - metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata - that is provided to the method. - - Returns: - A :class:`~google.ads.googleads_v1.types.MutateCustomerResponse` instance. - - Raises: - google.api_core.exceptions.GoogleAPICallError: If the request - failed for any reason. - google.api_core.exceptions.RetryError: If the request failed due - to a retryable error and retry attempts failed. - ValueError: If the parameters are invalid. - """ - # Wrap the transport method to add retry and timeout logic. - if 'mutate_customer' not in self._inner_api_calls: - self._inner_api_calls[ - 'mutate_customer'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.mutate_customer, - default_retry=self._method_configs['MutateCustomer'].retry, - default_timeout=self._method_configs['MutateCustomer']. - timeout, - client_info=self._client_info, - ) - - request = customer_service_pb2.MutateCustomerRequest( - customer_id=customer_id, - operation=operation_, - validate_only=validate_only, - ) - return self._inner_api_calls['mutate_customer']( - request, retry=retry, timeout=timeout, metadata=metadata) - - def list_accessible_customers( - self, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): - """ - Returns resource names of customers directly accessible by the - user authenticating the call. - - Args: - retry (Optional[google.api_core.retry.Retry]): A retry object used - to retry requests. If ``None`` is specified, requests will not - be retried. - timeout (Optional[float]): The amount of time, in seconds, to wait - for the request to complete. Note that if ``retry`` is - specified, the timeout applies to each individual attempt. - metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata - that is provided to the method. - - Returns: - A :class:`~google.ads.googleads_v1.types.ListAccessibleCustomersResponse` instance. - - Raises: - google.api_core.exceptions.GoogleAPICallError: If the request - failed for any reason. - google.api_core.exceptions.RetryError: If the request failed due - to a retryable error and retry attempts failed. - """ - # Wrap the transport method to add retry and timeout logic. - if 'list_accessible_customers' not in self._inner_api_calls: - self._inner_api_calls[ - 'list_accessible_customers'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.list_accessible_customers, - default_retry=self. - _method_configs['ListAccessibleCustomers'].retry, - default_timeout=self. - _method_configs['ListAccessibleCustomers'].timeout, - client_info=self._client_info, - ) - - request = customer_service_pb2.ListAccessibleCustomersRequest() - return self._inner_api_calls['list_accessible_customers']( - request, retry=retry, timeout=timeout, metadata=metadata) - - def create_customer_client(self, - customer_id, - customer_client, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): - """ - Creates a new client under manager. The new client customer is returned. - - Args: - customer_id (str): The ID of the Manager under whom client customer is being created. - customer_client (Union[dict, ~google.ads.googleads_v1.types.Customer]): The new client customer to create. The resource name on this customer - will be ignored. - - If a dict is provided, it must be of the same form as the protobuf - message :class:`~google.ads.googleads_v1.types.Customer` - retry (Optional[google.api_core.retry.Retry]): A retry object used - to retry requests. If ``None`` is specified, requests will not - be retried. - timeout (Optional[float]): The amount of time, in seconds, to wait - for the request to complete. Note that if ``retry`` is - specified, the timeout applies to each individual attempt. - metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata - that is provided to the method. - - Returns: - A :class:`~google.ads.googleads_v1.types.CreateCustomerClientResponse` instance. - - Raises: - google.api_core.exceptions.GoogleAPICallError: If the request - failed for any reason. - google.api_core.exceptions.RetryError: If the request failed due - to a retryable error and retry attempts failed. - ValueError: If the parameters are invalid. - """ - # Wrap the transport method to add retry and timeout logic. - if 'create_customer_client' not in self._inner_api_calls: - self._inner_api_calls[ - 'create_customer_client'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.create_customer_client, - default_retry=self._method_configs['CreateCustomerClient']. - retry, - default_timeout=self. - _method_configs['CreateCustomerClient'].timeout, - client_info=self._client_info, - ) - - request = customer_service_pb2.CreateCustomerClientRequest( - customer_id=customer_id, - customer_client=customer_client, - ) - return self._inner_api_calls['create_customer_client']( - request, retry=retry, timeout=timeout, metadata=metadata) diff --git a/google/ads/google_ads/v1/services/customer_service_client_config.py b/google/ads/google_ads/v1/services/customer_service_client_config.py deleted file mode 100644 index ad6d2c80f..000000000 --- a/google/ads/google_ads/v1/services/customer_service_client_config.py +++ /dev/null @@ -1,43 +0,0 @@ -config = { - "interfaces": { - "google.ads.googleads.v1.services.CustomerService": { - "retry_codes": { - "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], - "non_idempotent": [] - }, - "retry_params": { - "default": { - "initial_retry_delay_millis": 5000, - "retry_delay_multiplier": 1.3, - "max_retry_delay_millis": 60000, - "initial_rpc_timeout_millis": 3600000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 3600000, - "total_timeout_millis": 3600000 - } - }, - "methods": { - "GetCustomer": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default" - }, - "MutateCustomer": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default" - }, - "ListAccessibleCustomers": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default" - }, - "CreateCustomerClient": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default" - } - } - } - } -} diff --git a/google/ads/google_ads/v1/services/detail_placement_view_service_client_config.py b/google/ads/google_ads/v1/services/detail_placement_view_service_client_config.py deleted file mode 100644 index 2b10b750e..000000000 --- a/google/ads/google_ads/v1/services/detail_placement_view_service_client_config.py +++ /dev/null @@ -1,28 +0,0 @@ -config = { - "interfaces": { - "google.ads.googleads.v1.services.DetailPlacementViewService": { - "retry_codes": { - "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], - "non_idempotent": [] - }, - "retry_params": { - "default": { - "initial_retry_delay_millis": 5000, - "retry_delay_multiplier": 1.3, - "max_retry_delay_millis": 60000, - "initial_rpc_timeout_millis": 3600000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 3600000, - "total_timeout_millis": 3600000 - } - }, - "methods": { - "GetDetailPlacementView": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default" - } - } - } - } -} diff --git a/google/ads/google_ads/v1/services/display_keyword_view_service_client_config.py b/google/ads/google_ads/v1/services/display_keyword_view_service_client_config.py deleted file mode 100644 index 430d03bfc..000000000 --- a/google/ads/google_ads/v1/services/display_keyword_view_service_client_config.py +++ /dev/null @@ -1,28 +0,0 @@ -config = { - "interfaces": { - "google.ads.googleads.v1.services.DisplayKeywordViewService": { - "retry_codes": { - "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], - "non_idempotent": [] - }, - "retry_params": { - "default": { - "initial_retry_delay_millis": 5000, - "retry_delay_multiplier": 1.3, - "max_retry_delay_millis": 60000, - "initial_rpc_timeout_millis": 3600000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 3600000, - "total_timeout_millis": 3600000 - } - }, - "methods": { - "GetDisplayKeywordView": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default" - } - } - } - } -} diff --git a/google/ads/google_ads/v1/services/domain_category_service_client_config.py b/google/ads/google_ads/v1/services/domain_category_service_client_config.py deleted file mode 100644 index bdb816c5e..000000000 --- a/google/ads/google_ads/v1/services/domain_category_service_client_config.py +++ /dev/null @@ -1,28 +0,0 @@ -config = { - "interfaces": { - "google.ads.googleads.v1.services.DomainCategoryService": { - "retry_codes": { - "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], - "non_idempotent": [] - }, - "retry_params": { - "default": { - "initial_retry_delay_millis": 5000, - "retry_delay_multiplier": 1.3, - "max_retry_delay_millis": 60000, - "initial_rpc_timeout_millis": 3600000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 3600000, - "total_timeout_millis": 3600000 - } - }, - "methods": { - "GetDomainCategory": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default" - } - } - } - } -} diff --git a/google/ads/google_ads/v1/services/dynamic_search_ads_search_term_view_service_client_config.py b/google/ads/google_ads/v1/services/dynamic_search_ads_search_term_view_service_client_config.py deleted file mode 100644 index 3941f2c38..000000000 --- a/google/ads/google_ads/v1/services/dynamic_search_ads_search_term_view_service_client_config.py +++ /dev/null @@ -1,29 +0,0 @@ -config = { - "interfaces": { - "google.ads.googleads.v1.services.DynamicSearchAdsSearchTermViewService": - { - "retry_codes": { - "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], - "non_idempotent": [] - }, - "retry_params": { - "default": { - "initial_retry_delay_millis": 5000, - "retry_delay_multiplier": 1.3, - "max_retry_delay_millis": 60000, - "initial_rpc_timeout_millis": 3600000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 3600000, - "total_timeout_millis": 3600000 - } - }, - "methods": { - "GetDynamicSearchAdsSearchTermView": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default" - } - } - } - } -} diff --git a/google/ads/google_ads/v1/services/expanded_landing_page_view_service_client_config.py b/google/ads/google_ads/v1/services/expanded_landing_page_view_service_client_config.py deleted file mode 100644 index 4575cf75a..000000000 --- a/google/ads/google_ads/v1/services/expanded_landing_page_view_service_client_config.py +++ /dev/null @@ -1,28 +0,0 @@ -config = { - "interfaces": { - "google.ads.googleads.v1.services.ExpandedLandingPageViewService": { - "retry_codes": { - "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], - "non_idempotent": [] - }, - "retry_params": { - "default": { - "initial_retry_delay_millis": 5000, - "retry_delay_multiplier": 1.3, - "max_retry_delay_millis": 60000, - "initial_rpc_timeout_millis": 3600000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 3600000, - "total_timeout_millis": 3600000 - } - }, - "methods": { - "GetExpandedLandingPageView": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default" - } - } - } - } -} diff --git a/google/ads/google_ads/v1/services/extension_feed_item_service_client.py b/google/ads/google_ads/v1/services/extension_feed_item_service_client.py deleted file mode 100644 index 55b4d0d1a..000000000 --- a/google/ads/google_ads/v1/services/extension_feed_item_service_client.py +++ /dev/null @@ -1,277 +0,0 @@ -# -*- coding: utf-8 -*- -# -# 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. -"""Accesses the google.ads.googleads.v1.services ExtensionFeedItemService API.""" - -import pkg_resources -import warnings - -from google.oauth2 import service_account -import google.api_core.gapic_v1.client_info -import google.api_core.gapic_v1.config -import google.api_core.gapic_v1.method -import google.api_core.grpc_helpers -import google.api_core.path_template - -from google.ads.google_ads.v1.services import extension_feed_item_service_client_config -from google.ads.google_ads.v1.services.transports import extension_feed_item_service_grpc_transport -from google.ads.google_ads.v1.proto.services import extension_feed_item_service_pb2 - -_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( - 'google-ads', ).version - - -class ExtensionFeedItemServiceClient(object): - """Service to manage extension feed items.""" - - SERVICE_ADDRESS = 'googleads.googleapis.com:443' - """The default address of the service.""" - - # The name of the interface for this client. This is the key used to - # find the method configuration in the client_config dictionary. - _INTERFACE_NAME = 'google.ads.googleads.v1.services.ExtensionFeedItemService' - - @classmethod - def from_service_account_file(cls, filename, *args, **kwargs): - """Creates an instance of this client using the provided credentials - file. - - Args: - filename (str): The path to the service account private key json - file. - args: Additional arguments to pass to the constructor. - kwargs: Additional arguments to pass to the constructor. - - Returns: - ExtensionFeedItemServiceClient: The constructed client. - """ - credentials = service_account.Credentials.from_service_account_file( - filename) - kwargs['credentials'] = credentials - return cls(*args, **kwargs) - - from_service_account_json = from_service_account_file - - @classmethod - def extension_feed_item_path(cls, customer, extension_feed_item): - """Return a fully-qualified extension_feed_item string.""" - return google.api_core.path_template.expand( - 'customers/{customer}/extensionFeedItems/{extension_feed_item}', - customer=customer, - extension_feed_item=extension_feed_item, - ) - - def __init__(self, - transport=None, - channel=None, - credentials=None, - client_config=None, - client_info=None): - """Constructor. - - Args: - transport (Union[~.ExtensionFeedItemServiceGrpcTransport, - Callable[[~.Credentials, type], ~.ExtensionFeedItemServiceGrpcTransport]): A transport - instance, responsible for actually making the API calls. - The default transport uses the gRPC protocol. - This argument may also be a callable which returns a - transport instance. Callables will be sent the credentials - as the first argument and the default transport class as - the second argument. - channel (grpc.Channel): DEPRECATED. A ``Channel`` instance - through which to make calls. This argument is mutually exclusive - with ``credentials``; providing both will raise an exception. - credentials (google.auth.credentials.Credentials): The - authorization credentials to attach to requests. These - credentials identify this application to the service. If none - are specified, the client will attempt to ascertain the - credentials from the environment. - This argument is mutually exclusive with providing a - transport instance to ``transport``; doing so will raise - an exception. - client_config (dict): DEPRECATED. A dictionary of call options for - each method. If not specified, the default configuration is used. - client_info (google.api_core.gapic_v1.client_info.ClientInfo): - The client info used to send a user-agent string along with - API requests. If ``None``, then default info will be used. - Generally, you only need to set this if you're developing - your own client library. - """ - # Raise deprecation warnings for things we want to go away. - if client_config is not None: - warnings.warn( - 'The `client_config` argument is deprecated.', - PendingDeprecationWarning, - stacklevel=2) - else: - client_config = extension_feed_item_service_client_config.config - - if channel: - warnings.warn( - 'The `channel` argument is deprecated; use ' - '`transport` instead.', - PendingDeprecationWarning, - stacklevel=2) - - # Instantiate the transport. - # The transport is responsible for handling serialization and - # deserialization and actually sending data to the service. - if transport: - if callable(transport): - self.transport = transport( - credentials=credentials, - default_class=extension_feed_item_service_grpc_transport. - ExtensionFeedItemServiceGrpcTransport, - ) - else: - if credentials: - raise ValueError( - 'Received both a transport instance and ' - 'credentials; these are mutually exclusive.') - self.transport = transport - else: - self.transport = extension_feed_item_service_grpc_transport.ExtensionFeedItemServiceGrpcTransport( - address=self.SERVICE_ADDRESS, - channel=channel, - credentials=credentials, - ) - - if client_info is None: - client_info = google.api_core.gapic_v1.client_info.ClientInfo( - gapic_version=_GAPIC_LIBRARY_VERSION, ) - else: - client_info.gapic_version = _GAPIC_LIBRARY_VERSION - self._client_info = client_info - - # Parse out the default settings for retry and timeout for each RPC - # from the client configuration. - # (Ordinarily, these are the defaults specified in the `*_config.py` - # file next to this one.) - self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( - client_config['interfaces'][self._INTERFACE_NAME], ) - - # Save a dictionary of cached API call functions. - # These are the actual callables which invoke the proper - # transport methods, wrapped with `wrap_method` to add retry, - # timeout, and the like. - self._inner_api_calls = {} - - # Service calls - def get_extension_feed_item( - self, - resource_name, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): - """ - Returns the requested extension feed item in full detail. - - Args: - resource_name (str): The resource name of the extension feed item to fetch. - retry (Optional[google.api_core.retry.Retry]): A retry object used - to retry requests. If ``None`` is specified, requests will not - be retried. - timeout (Optional[float]): The amount of time, in seconds, to wait - for the request to complete. Note that if ``retry`` is - specified, the timeout applies to each individual attempt. - metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata - that is provided to the method. - - Returns: - A :class:`~google.ads.googleads_v1.types.ExtensionFeedItem` instance. - - Raises: - google.api_core.exceptions.GoogleAPICallError: If the request - failed for any reason. - google.api_core.exceptions.RetryError: If the request failed due - to a retryable error and retry attempts failed. - ValueError: If the parameters are invalid. - """ - # Wrap the transport method to add retry and timeout logic. - if 'get_extension_feed_item' not in self._inner_api_calls: - self._inner_api_calls[ - 'get_extension_feed_item'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.get_extension_feed_item, - default_retry=self._method_configs['GetExtensionFeedItem']. - retry, - default_timeout=self. - _method_configs['GetExtensionFeedItem'].timeout, - client_info=self._client_info, - ) - - request = extension_feed_item_service_pb2.GetExtensionFeedItemRequest( - resource_name=resource_name, ) - return self._inner_api_calls['get_extension_feed_item']( - request, retry=retry, timeout=timeout, metadata=metadata) - - def mutate_extension_feed_items( - self, - customer_id, - operations, - validate_only=None, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): - """ - Creates, updates, or removes extension feed items. Operation - statuses are returned. - - Args: - customer_id (str): The ID of the customer whose extension feed items are being - modified. - operations (list[Union[dict, ~google.ads.googleads_v1.types.ExtensionFeedItemOperation]]): The list of operations to perform on individual extension feed items. - - If a dict is provided, it must be of the same form as the protobuf - message :class:`~google.ads.googleads_v1.types.ExtensionFeedItemOperation` - validate_only (bool): If true, the request is validated but not executed. Only errors are - returned, not results. - retry (Optional[google.api_core.retry.Retry]): A retry object used - to retry requests. If ``None`` is specified, requests will not - be retried. - timeout (Optional[float]): The amount of time, in seconds, to wait - for the request to complete. Note that if ``retry`` is - specified, the timeout applies to each individual attempt. - metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata - that is provided to the method. - - Returns: - A :class:`~google.ads.googleads_v1.types.MutateExtensionFeedItemsResponse` instance. - - Raises: - google.api_core.exceptions.GoogleAPICallError: If the request - failed for any reason. - google.api_core.exceptions.RetryError: If the request failed due - to a retryable error and retry attempts failed. - ValueError: If the parameters are invalid. - """ - # Wrap the transport method to add retry and timeout logic. - if 'mutate_extension_feed_items' not in self._inner_api_calls: - self._inner_api_calls[ - 'mutate_extension_feed_items'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.mutate_extension_feed_items, - default_retry=self. - _method_configs['MutateExtensionFeedItems'].retry, - default_timeout=self. - _method_configs['MutateExtensionFeedItems'].timeout, - client_info=self._client_info, - ) - - request = extension_feed_item_service_pb2.MutateExtensionFeedItemsRequest( - customer_id=customer_id, - operations=operations, - validate_only=validate_only, - ) - return self._inner_api_calls['mutate_extension_feed_items']( - request, retry=retry, timeout=timeout, metadata=metadata) diff --git a/google/ads/google_ads/v1/services/extension_feed_item_service_client_config.py b/google/ads/google_ads/v1/services/extension_feed_item_service_client_config.py deleted file mode 100644 index 0d708f20c..000000000 --- a/google/ads/google_ads/v1/services/extension_feed_item_service_client_config.py +++ /dev/null @@ -1,33 +0,0 @@ -config = { - "interfaces": { - "google.ads.googleads.v1.services.ExtensionFeedItemService": { - "retry_codes": { - "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], - "non_idempotent": [] - }, - "retry_params": { - "default": { - "initial_retry_delay_millis": 5000, - "retry_delay_multiplier": 1.3, - "max_retry_delay_millis": 60000, - "initial_rpc_timeout_millis": 3600000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 3600000, - "total_timeout_millis": 3600000 - } - }, - "methods": { - "GetExtensionFeedItem": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default" - }, - "MutateExtensionFeedItems": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default" - } - } - } - } -} diff --git a/google/ads/google_ads/v1/services/feed_item_service_client.py b/google/ads/google_ads/v1/services/feed_item_service_client.py deleted file mode 100644 index 5311ec2a6..000000000 --- a/google/ads/google_ads/v1/services/feed_item_service_client.py +++ /dev/null @@ -1,279 +0,0 @@ -# -*- coding: utf-8 -*- -# -# 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. -"""Accesses the google.ads.googleads.v1.services FeedItemService API.""" - -import pkg_resources -import warnings - -from google.oauth2 import service_account -import google.api_core.gapic_v1.client_info -import google.api_core.gapic_v1.config -import google.api_core.gapic_v1.method -import google.api_core.grpc_helpers -import google.api_core.path_template - -from google.ads.google_ads.v1.services import feed_item_service_client_config -from google.ads.google_ads.v1.services.transports import feed_item_service_grpc_transport -from google.ads.google_ads.v1.proto.services import feed_item_service_pb2 - -_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( - 'google-ads', ).version - - -class FeedItemServiceClient(object): - """Service to manage feed items.""" - - SERVICE_ADDRESS = 'googleads.googleapis.com:443' - """The default address of the service.""" - - # The name of the interface for this client. This is the key used to - # find the method configuration in the client_config dictionary. - _INTERFACE_NAME = 'google.ads.googleads.v1.services.FeedItemService' - - @classmethod - def from_service_account_file(cls, filename, *args, **kwargs): - """Creates an instance of this client using the provided credentials - file. - - Args: - filename (str): The path to the service account private key json - file. - args: Additional arguments to pass to the constructor. - kwargs: Additional arguments to pass to the constructor. - - Returns: - FeedItemServiceClient: The constructed client. - """ - credentials = service_account.Credentials.from_service_account_file( - filename) - kwargs['credentials'] = credentials - return cls(*args, **kwargs) - - from_service_account_json = from_service_account_file - - @classmethod - def feed_item_path(cls, customer, feed_item): - """Return a fully-qualified feed_item string.""" - return google.api_core.path_template.expand( - 'customers/{customer}/feedItems/{feed_item}', - customer=customer, - feed_item=feed_item, - ) - - def __init__(self, - transport=None, - channel=None, - credentials=None, - client_config=None, - client_info=None): - """Constructor. - - Args: - transport (Union[~.FeedItemServiceGrpcTransport, - Callable[[~.Credentials, type], ~.FeedItemServiceGrpcTransport]): A transport - instance, responsible for actually making the API calls. - The default transport uses the gRPC protocol. - This argument may also be a callable which returns a - transport instance. Callables will be sent the credentials - as the first argument and the default transport class as - the second argument. - channel (grpc.Channel): DEPRECATED. A ``Channel`` instance - through which to make calls. This argument is mutually exclusive - with ``credentials``; providing both will raise an exception. - credentials (google.auth.credentials.Credentials): The - authorization credentials to attach to requests. These - credentials identify this application to the service. If none - are specified, the client will attempt to ascertain the - credentials from the environment. - This argument is mutually exclusive with providing a - transport instance to ``transport``; doing so will raise - an exception. - client_config (dict): DEPRECATED. A dictionary of call options for - each method. If not specified, the default configuration is used. - client_info (google.api_core.gapic_v1.client_info.ClientInfo): - The client info used to send a user-agent string along with - API requests. If ``None``, then default info will be used. - Generally, you only need to set this if you're developing - your own client library. - """ - # Raise deprecation warnings for things we want to go away. - if client_config is not None: - warnings.warn( - 'The `client_config` argument is deprecated.', - PendingDeprecationWarning, - stacklevel=2) - else: - client_config = feed_item_service_client_config.config - - if channel: - warnings.warn( - 'The `channel` argument is deprecated; use ' - '`transport` instead.', - PendingDeprecationWarning, - stacklevel=2) - - # Instantiate the transport. - # The transport is responsible for handling serialization and - # deserialization and actually sending data to the service. - if transport: - if callable(transport): - self.transport = transport( - credentials=credentials, - default_class=feed_item_service_grpc_transport. - FeedItemServiceGrpcTransport, - ) - else: - if credentials: - raise ValueError( - 'Received both a transport instance and ' - 'credentials; these are mutually exclusive.') - self.transport = transport - else: - self.transport = feed_item_service_grpc_transport.FeedItemServiceGrpcTransport( - address=self.SERVICE_ADDRESS, - channel=channel, - credentials=credentials, - ) - - if client_info is None: - client_info = google.api_core.gapic_v1.client_info.ClientInfo( - gapic_version=_GAPIC_LIBRARY_VERSION, ) - else: - client_info.gapic_version = _GAPIC_LIBRARY_VERSION - self._client_info = client_info - - # Parse out the default settings for retry and timeout for each RPC - # from the client configuration. - # (Ordinarily, these are the defaults specified in the `*_config.py` - # file next to this one.) - self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( - client_config['interfaces'][self._INTERFACE_NAME], ) - - # Save a dictionary of cached API call functions. - # These are the actual callables which invoke the proper - # transport methods, wrapped with `wrap_method` to add retry, - # timeout, and the like. - self._inner_api_calls = {} - - # Service calls - def get_feed_item(self, - resource_name, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): - """ - Returns the requested feed item in full detail. - - Args: - resource_name (str): The resource name of the feed item to fetch. - retry (Optional[google.api_core.retry.Retry]): A retry object used - to retry requests. If ``None`` is specified, requests will not - be retried. - timeout (Optional[float]): The amount of time, in seconds, to wait - for the request to complete. Note that if ``retry`` is - specified, the timeout applies to each individual attempt. - metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata - that is provided to the method. - - Returns: - A :class:`~google.ads.googleads_v1.types.FeedItem` instance. - - Raises: - google.api_core.exceptions.GoogleAPICallError: If the request - failed for any reason. - google.api_core.exceptions.RetryError: If the request failed due - to a retryable error and retry attempts failed. - ValueError: If the parameters are invalid. - """ - # Wrap the transport method to add retry and timeout logic. - if 'get_feed_item' not in self._inner_api_calls: - self._inner_api_calls[ - 'get_feed_item'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.get_feed_item, - default_retry=self._method_configs['GetFeedItem'].retry, - default_timeout=self._method_configs['GetFeedItem']. - timeout, - client_info=self._client_info, - ) - - request = feed_item_service_pb2.GetFeedItemRequest( - resource_name=resource_name, ) - return self._inner_api_calls['get_feed_item']( - request, retry=retry, timeout=timeout, metadata=metadata) - - def mutate_feed_items(self, - customer_id, - operations, - partial_failure=None, - validate_only=None, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): - """ - Creates, updates, or removes feed items. Operation statuses are - returned. - - Args: - customer_id (str): The ID of the customer whose feed items are being modified. - operations (list[Union[dict, ~google.ads.googleads_v1.types.FeedItemOperation]]): The list of operations to perform on individual feed items. - - If a dict is provided, it must be of the same form as the protobuf - message :class:`~google.ads.googleads_v1.types.FeedItemOperation` - partial_failure (bool): If true, successful operations will be carried out and invalid - operations will return errors. If false, all operations will be carried - out in one transaction if and only if they are all valid. - Default is false. - validate_only (bool): If true, the request is validated but not executed. Only errors are - returned, not results. - retry (Optional[google.api_core.retry.Retry]): A retry object used - to retry requests. If ``None`` is specified, requests will not - be retried. - timeout (Optional[float]): The amount of time, in seconds, to wait - for the request to complete. Note that if ``retry`` is - specified, the timeout applies to each individual attempt. - metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata - that is provided to the method. - - Returns: - A :class:`~google.ads.googleads_v1.types.MutateFeedItemsResponse` instance. - - Raises: - google.api_core.exceptions.GoogleAPICallError: If the request - failed for any reason. - google.api_core.exceptions.RetryError: If the request failed due - to a retryable error and retry attempts failed. - ValueError: If the parameters are invalid. - """ - # Wrap the transport method to add retry and timeout logic. - if 'mutate_feed_items' not in self._inner_api_calls: - self._inner_api_calls[ - 'mutate_feed_items'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.mutate_feed_items, - default_retry=self._method_configs['MutateFeedItems']. - retry, - default_timeout=self._method_configs['MutateFeedItems']. - timeout, - client_info=self._client_info, - ) - - request = feed_item_service_pb2.MutateFeedItemsRequest( - customer_id=customer_id, - operations=operations, - partial_failure=partial_failure, - validate_only=validate_only, - ) - return self._inner_api_calls['mutate_feed_items']( - request, retry=retry, timeout=timeout, metadata=metadata) diff --git a/google/ads/google_ads/v1/services/feed_item_service_client_config.py b/google/ads/google_ads/v1/services/feed_item_service_client_config.py deleted file mode 100644 index 7fba595a7..000000000 --- a/google/ads/google_ads/v1/services/feed_item_service_client_config.py +++ /dev/null @@ -1,33 +0,0 @@ -config = { - "interfaces": { - "google.ads.googleads.v1.services.FeedItemService": { - "retry_codes": { - "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], - "non_idempotent": [] - }, - "retry_params": { - "default": { - "initial_retry_delay_millis": 5000, - "retry_delay_multiplier": 1.3, - "max_retry_delay_millis": 60000, - "initial_rpc_timeout_millis": 3600000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 3600000, - "total_timeout_millis": 3600000 - } - }, - "methods": { - "GetFeedItem": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default" - }, - "MutateFeedItems": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default" - } - } - } - } -} diff --git a/google/ads/google_ads/v1/services/feed_item_target_service_client.py b/google/ads/google_ads/v1/services/feed_item_target_service_client.py deleted file mode 100644 index cf6eb21ae..000000000 --- a/google/ads/google_ads/v1/services/feed_item_target_service_client.py +++ /dev/null @@ -1,270 +0,0 @@ -# -*- coding: utf-8 -*- -# -# 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. -"""Accesses the google.ads.googleads.v1.services FeedItemTargetService API.""" - -import pkg_resources -import warnings - -from google.oauth2 import service_account -import google.api_core.gapic_v1.client_info -import google.api_core.gapic_v1.config -import google.api_core.gapic_v1.method -import google.api_core.grpc_helpers -import google.api_core.path_template - -from google.ads.google_ads.v1.services import feed_item_target_service_client_config -from google.ads.google_ads.v1.services.transports import feed_item_target_service_grpc_transport -from google.ads.google_ads.v1.proto.services import feed_item_target_service_pb2 - -_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( - 'google-ads', ).version - - -class FeedItemTargetServiceClient(object): - """Service to manage feed item targets.""" - - SERVICE_ADDRESS = 'googleads.googleapis.com:443' - """The default address of the service.""" - - # The name of the interface for this client. This is the key used to - # find the method configuration in the client_config dictionary. - _INTERFACE_NAME = 'google.ads.googleads.v1.services.FeedItemTargetService' - - @classmethod - def from_service_account_file(cls, filename, *args, **kwargs): - """Creates an instance of this client using the provided credentials - file. - - Args: - filename (str): The path to the service account private key json - file. - args: Additional arguments to pass to the constructor. - kwargs: Additional arguments to pass to the constructor. - - Returns: - FeedItemTargetServiceClient: The constructed client. - """ - credentials = service_account.Credentials.from_service_account_file( - filename) - kwargs['credentials'] = credentials - return cls(*args, **kwargs) - - from_service_account_json = from_service_account_file - - @classmethod - def feed_item_target_path(cls, customer, feed_item_target): - """Return a fully-qualified feed_item_target string.""" - return google.api_core.path_template.expand( - 'customers/{customer}/feedItemTargets/{feed_item_target}', - customer=customer, - feed_item_target=feed_item_target, - ) - - def __init__(self, - transport=None, - channel=None, - credentials=None, - client_config=None, - client_info=None): - """Constructor. - - Args: - transport (Union[~.FeedItemTargetServiceGrpcTransport, - Callable[[~.Credentials, type], ~.FeedItemTargetServiceGrpcTransport]): A transport - instance, responsible for actually making the API calls. - The default transport uses the gRPC protocol. - This argument may also be a callable which returns a - transport instance. Callables will be sent the credentials - as the first argument and the default transport class as - the second argument. - channel (grpc.Channel): DEPRECATED. A ``Channel`` instance - through which to make calls. This argument is mutually exclusive - with ``credentials``; providing both will raise an exception. - credentials (google.auth.credentials.Credentials): The - authorization credentials to attach to requests. These - credentials identify this application to the service. If none - are specified, the client will attempt to ascertain the - credentials from the environment. - This argument is mutually exclusive with providing a - transport instance to ``transport``; doing so will raise - an exception. - client_config (dict): DEPRECATED. A dictionary of call options for - each method. If not specified, the default configuration is used. - client_info (google.api_core.gapic_v1.client_info.ClientInfo): - The client info used to send a user-agent string along with - API requests. If ``None``, then default info will be used. - Generally, you only need to set this if you're developing - your own client library. - """ - # Raise deprecation warnings for things we want to go away. - if client_config is not None: - warnings.warn( - 'The `client_config` argument is deprecated.', - PendingDeprecationWarning, - stacklevel=2) - else: - client_config = feed_item_target_service_client_config.config - - if channel: - warnings.warn( - 'The `channel` argument is deprecated; use ' - '`transport` instead.', - PendingDeprecationWarning, - stacklevel=2) - - # Instantiate the transport. - # The transport is responsible for handling serialization and - # deserialization and actually sending data to the service. - if transport: - if callable(transport): - self.transport = transport( - credentials=credentials, - default_class=feed_item_target_service_grpc_transport. - FeedItemTargetServiceGrpcTransport, - ) - else: - if credentials: - raise ValueError( - 'Received both a transport instance and ' - 'credentials; these are mutually exclusive.') - self.transport = transport - else: - self.transport = feed_item_target_service_grpc_transport.FeedItemTargetServiceGrpcTransport( - address=self.SERVICE_ADDRESS, - channel=channel, - credentials=credentials, - ) - - if client_info is None: - client_info = google.api_core.gapic_v1.client_info.ClientInfo( - gapic_version=_GAPIC_LIBRARY_VERSION, ) - else: - client_info.gapic_version = _GAPIC_LIBRARY_VERSION - self._client_info = client_info - - # Parse out the default settings for retry and timeout for each RPC - # from the client configuration. - # (Ordinarily, these are the defaults specified in the `*_config.py` - # file next to this one.) - self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( - client_config['interfaces'][self._INTERFACE_NAME], ) - - # Save a dictionary of cached API call functions. - # These are the actual callables which invoke the proper - # transport methods, wrapped with `wrap_method` to add retry, - # timeout, and the like. - self._inner_api_calls = {} - - # Service calls - def get_feed_item_target(self, - resource_name, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): - """ - Returns the requested feed item targets in full detail. - - Args: - resource_name (str): The resource name of the feed item targets to fetch. - retry (Optional[google.api_core.retry.Retry]): A retry object used - to retry requests. If ``None`` is specified, requests will not - be retried. - timeout (Optional[float]): The amount of time, in seconds, to wait - for the request to complete. Note that if ``retry`` is - specified, the timeout applies to each individual attempt. - metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata - that is provided to the method. - - Returns: - A :class:`~google.ads.googleads_v1.types.FeedItemTarget` instance. - - Raises: - google.api_core.exceptions.GoogleAPICallError: If the request - failed for any reason. - google.api_core.exceptions.RetryError: If the request failed due - to a retryable error and retry attempts failed. - ValueError: If the parameters are invalid. - """ - # Wrap the transport method to add retry and timeout logic. - if 'get_feed_item_target' not in self._inner_api_calls: - self._inner_api_calls[ - 'get_feed_item_target'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.get_feed_item_target, - default_retry=self._method_configs['GetFeedItemTarget']. - retry, - default_timeout=self._method_configs['GetFeedItemTarget']. - timeout, - client_info=self._client_info, - ) - - request = feed_item_target_service_pb2.GetFeedItemTargetRequest( - resource_name=resource_name, ) - return self._inner_api_calls['get_feed_item_target']( - request, retry=retry, timeout=timeout, metadata=metadata) - - def mutate_feed_item_targets( - self, - customer_id, - operations, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): - """ - Creates or removes feed item targets. Operation statuses are returned. - - Args: - customer_id (str): The ID of the customer whose feed item targets are being modified. - operations (list[Union[dict, ~google.ads.googleads_v1.types.FeedItemTargetOperation]]): The list of operations to perform on individual feed item targets. - - If a dict is provided, it must be of the same form as the protobuf - message :class:`~google.ads.googleads_v1.types.FeedItemTargetOperation` - retry (Optional[google.api_core.retry.Retry]): A retry object used - to retry requests. If ``None`` is specified, requests will not - be retried. - timeout (Optional[float]): The amount of time, in seconds, to wait - for the request to complete. Note that if ``retry`` is - specified, the timeout applies to each individual attempt. - metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata - that is provided to the method. - - Returns: - A :class:`~google.ads.googleads_v1.types.MutateFeedItemTargetsResponse` instance. - - Raises: - google.api_core.exceptions.GoogleAPICallError: If the request - failed for any reason. - google.api_core.exceptions.RetryError: If the request failed due - to a retryable error and retry attempts failed. - ValueError: If the parameters are invalid. - """ - # Wrap the transport method to add retry and timeout logic. - if 'mutate_feed_item_targets' not in self._inner_api_calls: - self._inner_api_calls[ - 'mutate_feed_item_targets'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.mutate_feed_item_targets, - default_retry=self. - _method_configs['MutateFeedItemTargets'].retry, - default_timeout=self. - _method_configs['MutateFeedItemTargets'].timeout, - client_info=self._client_info, - ) - - request = feed_item_target_service_pb2.MutateFeedItemTargetsRequest( - customer_id=customer_id, - operations=operations, - ) - return self._inner_api_calls['mutate_feed_item_targets']( - request, retry=retry, timeout=timeout, metadata=metadata) diff --git a/google/ads/google_ads/v1/services/feed_item_target_service_client_config.py b/google/ads/google_ads/v1/services/feed_item_target_service_client_config.py deleted file mode 100644 index 12874ddf2..000000000 --- a/google/ads/google_ads/v1/services/feed_item_target_service_client_config.py +++ /dev/null @@ -1,33 +0,0 @@ -config = { - "interfaces": { - "google.ads.googleads.v1.services.FeedItemTargetService": { - "retry_codes": { - "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], - "non_idempotent": [] - }, - "retry_params": { - "default": { - "initial_retry_delay_millis": 5000, - "retry_delay_multiplier": 1.3, - "max_retry_delay_millis": 60000, - "initial_rpc_timeout_millis": 3600000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 3600000, - "total_timeout_millis": 3600000 - } - }, - "methods": { - "GetFeedItemTarget": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default" - }, - "MutateFeedItemTargets": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default" - } - } - } - } -} diff --git a/google/ads/google_ads/v1/services/feed_mapping_service_client.py b/google/ads/google_ads/v1/services/feed_mapping_service_client.py deleted file mode 100644 index db167566a..000000000 --- a/google/ads/google_ads/v1/services/feed_mapping_service_client.py +++ /dev/null @@ -1,279 +0,0 @@ -# -*- coding: utf-8 -*- -# -# 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. -"""Accesses the google.ads.googleads.v1.services FeedMappingService API.""" - -import pkg_resources -import warnings - -from google.oauth2 import service_account -import google.api_core.gapic_v1.client_info -import google.api_core.gapic_v1.config -import google.api_core.gapic_v1.method -import google.api_core.grpc_helpers -import google.api_core.path_template - -from google.ads.google_ads.v1.services import feed_mapping_service_client_config -from google.ads.google_ads.v1.services.transports import feed_mapping_service_grpc_transport -from google.ads.google_ads.v1.proto.services import feed_mapping_service_pb2 - -_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( - 'google-ads', ).version - - -class FeedMappingServiceClient(object): - """Service to manage feed mappings.""" - - SERVICE_ADDRESS = 'googleads.googleapis.com:443' - """The default address of the service.""" - - # The name of the interface for this client. This is the key used to - # find the method configuration in the client_config dictionary. - _INTERFACE_NAME = 'google.ads.googleads.v1.services.FeedMappingService' - - @classmethod - def from_service_account_file(cls, filename, *args, **kwargs): - """Creates an instance of this client using the provided credentials - file. - - Args: - filename (str): The path to the service account private key json - file. - args: Additional arguments to pass to the constructor. - kwargs: Additional arguments to pass to the constructor. - - Returns: - FeedMappingServiceClient: The constructed client. - """ - credentials = service_account.Credentials.from_service_account_file( - filename) - kwargs['credentials'] = credentials - return cls(*args, **kwargs) - - from_service_account_json = from_service_account_file - - @classmethod - def feed_mapping_path(cls, customer, feed_mapping): - """Return a fully-qualified feed_mapping string.""" - return google.api_core.path_template.expand( - 'customers/{customer}/feedMappings/{feed_mapping}', - customer=customer, - feed_mapping=feed_mapping, - ) - - def __init__(self, - transport=None, - channel=None, - credentials=None, - client_config=None, - client_info=None): - """Constructor. - - Args: - transport (Union[~.FeedMappingServiceGrpcTransport, - Callable[[~.Credentials, type], ~.FeedMappingServiceGrpcTransport]): A transport - instance, responsible for actually making the API calls. - The default transport uses the gRPC protocol. - This argument may also be a callable which returns a - transport instance. Callables will be sent the credentials - as the first argument and the default transport class as - the second argument. - channel (grpc.Channel): DEPRECATED. A ``Channel`` instance - through which to make calls. This argument is mutually exclusive - with ``credentials``; providing both will raise an exception. - credentials (google.auth.credentials.Credentials): The - authorization credentials to attach to requests. These - credentials identify this application to the service. If none - are specified, the client will attempt to ascertain the - credentials from the environment. - This argument is mutually exclusive with providing a - transport instance to ``transport``; doing so will raise - an exception. - client_config (dict): DEPRECATED. A dictionary of call options for - each method. If not specified, the default configuration is used. - client_info (google.api_core.gapic_v1.client_info.ClientInfo): - The client info used to send a user-agent string along with - API requests. If ``None``, then default info will be used. - Generally, you only need to set this if you're developing - your own client library. - """ - # Raise deprecation warnings for things we want to go away. - if client_config is not None: - warnings.warn( - 'The `client_config` argument is deprecated.', - PendingDeprecationWarning, - stacklevel=2) - else: - client_config = feed_mapping_service_client_config.config - - if channel: - warnings.warn( - 'The `channel` argument is deprecated; use ' - '`transport` instead.', - PendingDeprecationWarning, - stacklevel=2) - - # Instantiate the transport. - # The transport is responsible for handling serialization and - # deserialization and actually sending data to the service. - if transport: - if callable(transport): - self.transport = transport( - credentials=credentials, - default_class=feed_mapping_service_grpc_transport. - FeedMappingServiceGrpcTransport, - ) - else: - if credentials: - raise ValueError( - 'Received both a transport instance and ' - 'credentials; these are mutually exclusive.') - self.transport = transport - else: - self.transport = feed_mapping_service_grpc_transport.FeedMappingServiceGrpcTransport( - address=self.SERVICE_ADDRESS, - channel=channel, - credentials=credentials, - ) - - if client_info is None: - client_info = google.api_core.gapic_v1.client_info.ClientInfo( - gapic_version=_GAPIC_LIBRARY_VERSION, ) - else: - client_info.gapic_version = _GAPIC_LIBRARY_VERSION - self._client_info = client_info - - # Parse out the default settings for retry and timeout for each RPC - # from the client configuration. - # (Ordinarily, these are the defaults specified in the `*_config.py` - # file next to this one.) - self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( - client_config['interfaces'][self._INTERFACE_NAME], ) - - # Save a dictionary of cached API call functions. - # These are the actual callables which invoke the proper - # transport methods, wrapped with `wrap_method` to add retry, - # timeout, and the like. - self._inner_api_calls = {} - - # Service calls - def get_feed_mapping(self, - resource_name, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): - """ - Returns the requested feed mapping in full detail. - - Args: - resource_name (str): The resource name of the feed mapping to fetch. - retry (Optional[google.api_core.retry.Retry]): A retry object used - to retry requests. If ``None`` is specified, requests will not - be retried. - timeout (Optional[float]): The amount of time, in seconds, to wait - for the request to complete. Note that if ``retry`` is - specified, the timeout applies to each individual attempt. - metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata - that is provided to the method. - - Returns: - A :class:`~google.ads.googleads_v1.types.FeedMapping` instance. - - Raises: - google.api_core.exceptions.GoogleAPICallError: If the request - failed for any reason. - google.api_core.exceptions.RetryError: If the request failed due - to a retryable error and retry attempts failed. - ValueError: If the parameters are invalid. - """ - # Wrap the transport method to add retry and timeout logic. - if 'get_feed_mapping' not in self._inner_api_calls: - self._inner_api_calls[ - 'get_feed_mapping'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.get_feed_mapping, - default_retry=self._method_configs['GetFeedMapping'].retry, - default_timeout=self._method_configs['GetFeedMapping']. - timeout, - client_info=self._client_info, - ) - - request = feed_mapping_service_pb2.GetFeedMappingRequest( - resource_name=resource_name, ) - return self._inner_api_calls['get_feed_mapping']( - request, retry=retry, timeout=timeout, metadata=metadata) - - def mutate_feed_mappings(self, - customer_id, - operations, - partial_failure=None, - validate_only=None, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): - """ - Creates or removes feed mappings. Operation statuses are - returned. - - Args: - customer_id (str): The ID of the customer whose feed mappings are being modified. - operations (list[Union[dict, ~google.ads.googleads_v1.types.FeedMappingOperation]]): The list of operations to perform on individual feed mappings. - - If a dict is provided, it must be of the same form as the protobuf - message :class:`~google.ads.googleads_v1.types.FeedMappingOperation` - partial_failure (bool): If true, successful operations will be carried out and invalid - operations will return errors. If false, all operations will be carried - out in one transaction if and only if they are all valid. - Default is false. - validate_only (bool): If true, the request is validated but not executed. Only errors are - returned, not results. - retry (Optional[google.api_core.retry.Retry]): A retry object used - to retry requests. If ``None`` is specified, requests will not - be retried. - timeout (Optional[float]): The amount of time, in seconds, to wait - for the request to complete. Note that if ``retry`` is - specified, the timeout applies to each individual attempt. - metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata - that is provided to the method. - - Returns: - A :class:`~google.ads.googleads_v1.types.MutateFeedMappingsResponse` instance. - - Raises: - google.api_core.exceptions.GoogleAPICallError: If the request - failed for any reason. - google.api_core.exceptions.RetryError: If the request failed due - to a retryable error and retry attempts failed. - ValueError: If the parameters are invalid. - """ - # Wrap the transport method to add retry and timeout logic. - if 'mutate_feed_mappings' not in self._inner_api_calls: - self._inner_api_calls[ - 'mutate_feed_mappings'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.mutate_feed_mappings, - default_retry=self._method_configs['MutateFeedMappings']. - retry, - default_timeout=self._method_configs['MutateFeedMappings']. - timeout, - client_info=self._client_info, - ) - - request = feed_mapping_service_pb2.MutateFeedMappingsRequest( - customer_id=customer_id, - operations=operations, - partial_failure=partial_failure, - validate_only=validate_only, - ) - return self._inner_api_calls['mutate_feed_mappings']( - request, retry=retry, timeout=timeout, metadata=metadata) diff --git a/google/ads/google_ads/v1/services/feed_mapping_service_client_config.py b/google/ads/google_ads/v1/services/feed_mapping_service_client_config.py deleted file mode 100644 index cca95e2dc..000000000 --- a/google/ads/google_ads/v1/services/feed_mapping_service_client_config.py +++ /dev/null @@ -1,33 +0,0 @@ -config = { - "interfaces": { - "google.ads.googleads.v1.services.FeedMappingService": { - "retry_codes": { - "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], - "non_idempotent": [] - }, - "retry_params": { - "default": { - "initial_retry_delay_millis": 5000, - "retry_delay_multiplier": 1.3, - "max_retry_delay_millis": 60000, - "initial_rpc_timeout_millis": 3600000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 3600000, - "total_timeout_millis": 3600000 - } - }, - "methods": { - "GetFeedMapping": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default" - }, - "MutateFeedMappings": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default" - } - } - } - } -} diff --git a/google/ads/google_ads/v1/services/feed_placeholder_view_service_client_config.py b/google/ads/google_ads/v1/services/feed_placeholder_view_service_client_config.py deleted file mode 100644 index dda018bdf..000000000 --- a/google/ads/google_ads/v1/services/feed_placeholder_view_service_client_config.py +++ /dev/null @@ -1,28 +0,0 @@ -config = { - "interfaces": { - "google.ads.googleads.v1.services.FeedPlaceholderViewService": { - "retry_codes": { - "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], - "non_idempotent": [] - }, - "retry_params": { - "default": { - "initial_retry_delay_millis": 5000, - "retry_delay_multiplier": 1.3, - "max_retry_delay_millis": 60000, - "initial_rpc_timeout_millis": 3600000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 3600000, - "total_timeout_millis": 3600000 - } - }, - "methods": { - "GetFeedPlaceholderView": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default" - } - } - } - } -} diff --git a/google/ads/google_ads/v1/services/feed_service_client.py b/google/ads/google_ads/v1/services/feed_service_client.py deleted file mode 100644 index 154b57591..000000000 --- a/google/ads/google_ads/v1/services/feed_service_client.py +++ /dev/null @@ -1,277 +0,0 @@ -# -*- coding: utf-8 -*- -# -# 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. -"""Accesses the google.ads.googleads.v1.services FeedService API.""" - -import pkg_resources -import warnings - -from google.oauth2 import service_account -import google.api_core.gapic_v1.client_info -import google.api_core.gapic_v1.config -import google.api_core.gapic_v1.method -import google.api_core.grpc_helpers -import google.api_core.path_template - -from google.ads.google_ads.v1.services import feed_service_client_config -from google.ads.google_ads.v1.services.transports import feed_service_grpc_transport -from google.ads.google_ads.v1.proto.services import feed_service_pb2 - -_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( - 'google-ads', ).version - - -class FeedServiceClient(object): - """Service to manage feeds.""" - - SERVICE_ADDRESS = 'googleads.googleapis.com:443' - """The default address of the service.""" - - # The name of the interface for this client. This is the key used to - # find the method configuration in the client_config dictionary. - _INTERFACE_NAME = 'google.ads.googleads.v1.services.FeedService' - - @classmethod - def from_service_account_file(cls, filename, *args, **kwargs): - """Creates an instance of this client using the provided credentials - file. - - Args: - filename (str): The path to the service account private key json - file. - args: Additional arguments to pass to the constructor. - kwargs: Additional arguments to pass to the constructor. - - Returns: - FeedServiceClient: The constructed client. - """ - credentials = service_account.Credentials.from_service_account_file( - filename) - kwargs['credentials'] = credentials - return cls(*args, **kwargs) - - from_service_account_json = from_service_account_file - - @classmethod - def feed_path(cls, customer, feed): - """Return a fully-qualified feed string.""" - return google.api_core.path_template.expand( - 'customers/{customer}/feeds/{feed}', - customer=customer, - feed=feed, - ) - - def __init__(self, - transport=None, - channel=None, - credentials=None, - client_config=None, - client_info=None): - """Constructor. - - Args: - transport (Union[~.FeedServiceGrpcTransport, - Callable[[~.Credentials, type], ~.FeedServiceGrpcTransport]): A transport - instance, responsible for actually making the API calls. - The default transport uses the gRPC protocol. - This argument may also be a callable which returns a - transport instance. Callables will be sent the credentials - as the first argument and the default transport class as - the second argument. - channel (grpc.Channel): DEPRECATED. A ``Channel`` instance - through which to make calls. This argument is mutually exclusive - with ``credentials``; providing both will raise an exception. - credentials (google.auth.credentials.Credentials): The - authorization credentials to attach to requests. These - credentials identify this application to the service. If none - are specified, the client will attempt to ascertain the - credentials from the environment. - This argument is mutually exclusive with providing a - transport instance to ``transport``; doing so will raise - an exception. - client_config (dict): DEPRECATED. A dictionary of call options for - each method. If not specified, the default configuration is used. - client_info (google.api_core.gapic_v1.client_info.ClientInfo): - The client info used to send a user-agent string along with - API requests. If ``None``, then default info will be used. - Generally, you only need to set this if you're developing - your own client library. - """ - # Raise deprecation warnings for things we want to go away. - if client_config is not None: - warnings.warn( - 'The `client_config` argument is deprecated.', - PendingDeprecationWarning, - stacklevel=2) - else: - client_config = feed_service_client_config.config - - if channel: - warnings.warn( - 'The `channel` argument is deprecated; use ' - '`transport` instead.', - PendingDeprecationWarning, - stacklevel=2) - - # Instantiate the transport. - # The transport is responsible for handling serialization and - # deserialization and actually sending data to the service. - if transport: - if callable(transport): - self.transport = transport( - credentials=credentials, - default_class=feed_service_grpc_transport. - FeedServiceGrpcTransport, - ) - else: - if credentials: - raise ValueError( - 'Received both a transport instance and ' - 'credentials; these are mutually exclusive.') - self.transport = transport - else: - self.transport = feed_service_grpc_transport.FeedServiceGrpcTransport( - address=self.SERVICE_ADDRESS, - channel=channel, - credentials=credentials, - ) - - if client_info is None: - client_info = google.api_core.gapic_v1.client_info.ClientInfo( - gapic_version=_GAPIC_LIBRARY_VERSION, ) - else: - client_info.gapic_version = _GAPIC_LIBRARY_VERSION - self._client_info = client_info - - # Parse out the default settings for retry and timeout for each RPC - # from the client configuration. - # (Ordinarily, these are the defaults specified in the `*_config.py` - # file next to this one.) - self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( - client_config['interfaces'][self._INTERFACE_NAME], ) - - # Save a dictionary of cached API call functions. - # These are the actual callables which invoke the proper - # transport methods, wrapped with `wrap_method` to add retry, - # timeout, and the like. - self._inner_api_calls = {} - - # Service calls - def get_feed(self, - resource_name, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): - """ - Returns the requested feed in full detail. - - Args: - resource_name (str): The resource name of the feed to fetch. - retry (Optional[google.api_core.retry.Retry]): A retry object used - to retry requests. If ``None`` is specified, requests will not - be retried. - timeout (Optional[float]): The amount of time, in seconds, to wait - for the request to complete. Note that if ``retry`` is - specified, the timeout applies to each individual attempt. - metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata - that is provided to the method. - - Returns: - A :class:`~google.ads.googleads_v1.types.Feed` instance. - - Raises: - google.api_core.exceptions.GoogleAPICallError: If the request - failed for any reason. - google.api_core.exceptions.RetryError: If the request failed due - to a retryable error and retry attempts failed. - ValueError: If the parameters are invalid. - """ - # Wrap the transport method to add retry and timeout logic. - if 'get_feed' not in self._inner_api_calls: - self._inner_api_calls[ - 'get_feed'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.get_feed, - default_retry=self._method_configs['GetFeed'].retry, - default_timeout=self._method_configs['GetFeed'].timeout, - client_info=self._client_info, - ) - - request = feed_service_pb2.GetFeedRequest( - resource_name=resource_name, ) - return self._inner_api_calls['get_feed']( - request, retry=retry, timeout=timeout, metadata=metadata) - - def mutate_feeds(self, - customer_id, - operations, - partial_failure=None, - validate_only=None, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): - """ - Creates, updates, or removes feeds. Operation statuses are - returned. - - Args: - customer_id (str): The ID of the customer whose feeds are being modified. - operations (list[Union[dict, ~google.ads.googleads_v1.types.FeedOperation]]): The list of operations to perform on individual feeds. - - If a dict is provided, it must be of the same form as the protobuf - message :class:`~google.ads.googleads_v1.types.FeedOperation` - partial_failure (bool): If true, successful operations will be carried out and invalid - operations will return errors. If false, all operations will be carried - out in one transaction if and only if they are all valid. - Default is false. - validate_only (bool): If true, the request is validated but not executed. Only errors are - returned, not results. - retry (Optional[google.api_core.retry.Retry]): A retry object used - to retry requests. If ``None`` is specified, requests will not - be retried. - timeout (Optional[float]): The amount of time, in seconds, to wait - for the request to complete. Note that if ``retry`` is - specified, the timeout applies to each individual attempt. - metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata - that is provided to the method. - - Returns: - A :class:`~google.ads.googleads_v1.types.MutateFeedsResponse` instance. - - Raises: - google.api_core.exceptions.GoogleAPICallError: If the request - failed for any reason. - google.api_core.exceptions.RetryError: If the request failed due - to a retryable error and retry attempts failed. - ValueError: If the parameters are invalid. - """ - # Wrap the transport method to add retry and timeout logic. - if 'mutate_feeds' not in self._inner_api_calls: - self._inner_api_calls[ - 'mutate_feeds'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.mutate_feeds, - default_retry=self._method_configs['MutateFeeds'].retry, - default_timeout=self._method_configs['MutateFeeds']. - timeout, - client_info=self._client_info, - ) - - request = feed_service_pb2.MutateFeedsRequest( - customer_id=customer_id, - operations=operations, - partial_failure=partial_failure, - validate_only=validate_only, - ) - return self._inner_api_calls['mutate_feeds']( - request, retry=retry, timeout=timeout, metadata=metadata) diff --git a/google/ads/google_ads/v1/services/feed_service_client_config.py b/google/ads/google_ads/v1/services/feed_service_client_config.py deleted file mode 100644 index 3c70aae1c..000000000 --- a/google/ads/google_ads/v1/services/feed_service_client_config.py +++ /dev/null @@ -1,33 +0,0 @@ -config = { - "interfaces": { - "google.ads.googleads.v1.services.FeedService": { - "retry_codes": { - "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], - "non_idempotent": [] - }, - "retry_params": { - "default": { - "initial_retry_delay_millis": 5000, - "retry_delay_multiplier": 1.3, - "max_retry_delay_millis": 60000, - "initial_rpc_timeout_millis": 3600000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 3600000, - "total_timeout_millis": 3600000 - } - }, - "methods": { - "GetFeed": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default" - }, - "MutateFeeds": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default" - } - } - } - } -} diff --git a/google/ads/google_ads/v1/services/gender_view_service_client_config.py b/google/ads/google_ads/v1/services/gender_view_service_client_config.py deleted file mode 100644 index 10b909c1e..000000000 --- a/google/ads/google_ads/v1/services/gender_view_service_client_config.py +++ /dev/null @@ -1,28 +0,0 @@ -config = { - "interfaces": { - "google.ads.googleads.v1.services.GenderViewService": { - "retry_codes": { - "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], - "non_idempotent": [] - }, - "retry_params": { - "default": { - "initial_retry_delay_millis": 5000, - "retry_delay_multiplier": 1.3, - "max_retry_delay_millis": 60000, - "initial_rpc_timeout_millis": 3600000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 3600000, - "total_timeout_millis": 3600000 - } - }, - "methods": { - "GetGenderView": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default" - } - } - } - } -} diff --git a/google/ads/google_ads/v1/services/geo_target_constant_service_client_config.py b/google/ads/google_ads/v1/services/geo_target_constant_service_client_config.py deleted file mode 100644 index 627f232d4..000000000 --- a/google/ads/google_ads/v1/services/geo_target_constant_service_client_config.py +++ /dev/null @@ -1,33 +0,0 @@ -config = { - "interfaces": { - "google.ads.googleads.v1.services.GeoTargetConstantService": { - "retry_codes": { - "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], - "non_idempotent": [] - }, - "retry_params": { - "default": { - "initial_retry_delay_millis": 5000, - "retry_delay_multiplier": 1.3, - "max_retry_delay_millis": 60000, - "initial_rpc_timeout_millis": 3600000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 3600000, - "total_timeout_millis": 3600000 - } - }, - "methods": { - "GetGeoTargetConstant": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default" - }, - "SuggestGeoTargetConstants": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default" - } - } - } - } -} diff --git a/google/ads/google_ads/v1/services/geographic_view_service_client_config.py b/google/ads/google_ads/v1/services/geographic_view_service_client_config.py deleted file mode 100644 index cadf246c0..000000000 --- a/google/ads/google_ads/v1/services/geographic_view_service_client_config.py +++ /dev/null @@ -1,28 +0,0 @@ -config = { - "interfaces": { - "google.ads.googleads.v1.services.GeographicViewService": { - "retry_codes": { - "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], - "non_idempotent": [] - }, - "retry_params": { - "default": { - "initial_retry_delay_millis": 5000, - "retry_delay_multiplier": 1.3, - "max_retry_delay_millis": 60000, - "initial_rpc_timeout_millis": 3600000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 3600000, - "total_timeout_millis": 3600000 - } - }, - "methods": { - "GetGeographicView": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default" - } - } - } - } -} diff --git a/google/ads/google_ads/v1/services/google_ads_field_service_client_config.py b/google/ads/google_ads/v1/services/google_ads_field_service_client_config.py deleted file mode 100644 index 30a66bac0..000000000 --- a/google/ads/google_ads/v1/services/google_ads_field_service_client_config.py +++ /dev/null @@ -1,33 +0,0 @@ -config = { - "interfaces": { - "google.ads.googleads.v1.services.GoogleAdsFieldService": { - "retry_codes": { - "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], - "non_idempotent": [] - }, - "retry_params": { - "default": { - "initial_retry_delay_millis": 5000, - "retry_delay_multiplier": 1.3, - "max_retry_delay_millis": 60000, - "initial_rpc_timeout_millis": 3600000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 3600000, - "total_timeout_millis": 3600000 - } - }, - "methods": { - "GetGoogleAdsField": { - "timeout_millis": 600000, - "retry_codes_name": "idempotent", - "retry_params_name": "default" - }, - "SearchGoogleAdsFields": { - "timeout_millis": 600000, - "retry_codes_name": "idempotent", - "retry_params_name": "default" - } - } - } - } -} diff --git a/google/ads/google_ads/v1/services/google_ads_service_client.py b/google/ads/google_ads/v1/services/google_ads_service_client.py deleted file mode 100644 index 30d4ff1b1..000000000 --- a/google/ads/google_ads/v1/services/google_ads_service_client.py +++ /dev/null @@ -1,341 +0,0 @@ -# -*- coding: utf-8 -*- -# -# 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. -"""Accesses the google.ads.googleads.v1.services GoogleAdsService API.""" - -import functools -import pkg_resources -import warnings - -from google.oauth2 import service_account -import google.api_core.gapic_v1.client_info -import google.api_core.gapic_v1.config -import google.api_core.gapic_v1.method -import google.api_core.grpc_helpers -import google.api_core.page_iterator - -from google.ads.google_ads.v1.services import google_ads_service_client_config -from google.ads.google_ads.v1.services.transports import google_ads_service_grpc_transport -from google.ads.google_ads.v1.proto.services import google_ads_service_pb2 - -_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( - 'google-ads', ).version - - -class GoogleAdsServiceClient(object): - """Service to fetch data and metrics across resources.""" - - SERVICE_ADDRESS = 'googleads.googleapis.com:443' - """The default address of the service.""" - - # The name of the interface for this client. This is the key used to - # find the method configuration in the client_config dictionary. - _INTERFACE_NAME = 'google.ads.googleads.v1.services.GoogleAdsService' - - @classmethod - def from_service_account_file(cls, filename, *args, **kwargs): - """Creates an instance of this client using the provided credentials - file. - - Args: - filename (str): The path to the service account private key json - file. - args: Additional arguments to pass to the constructor. - kwargs: Additional arguments to pass to the constructor. - - Returns: - GoogleAdsServiceClient: The constructed client. - """ - credentials = service_account.Credentials.from_service_account_file( - filename) - kwargs['credentials'] = credentials - return cls(*args, **kwargs) - - from_service_account_json = from_service_account_file - - def __init__(self, - transport=None, - channel=None, - credentials=None, - client_config=None, - client_info=None): - """Constructor. - - Args: - transport (Union[~.GoogleAdsServiceGrpcTransport, - Callable[[~.Credentials, type], ~.GoogleAdsServiceGrpcTransport]): A transport - instance, responsible for actually making the API calls. - The default transport uses the gRPC protocol. - This argument may also be a callable which returns a - transport instance. Callables will be sent the credentials - as the first argument and the default transport class as - the second argument. - channel (grpc.Channel): DEPRECATED. A ``Channel`` instance - through which to make calls. This argument is mutually exclusive - with ``credentials``; providing both will raise an exception. - credentials (google.auth.credentials.Credentials): The - authorization credentials to attach to requests. These - credentials identify this application to the service. If none - are specified, the client will attempt to ascertain the - credentials from the environment. - This argument is mutually exclusive with providing a - transport instance to ``transport``; doing so will raise - an exception. - client_config (dict): DEPRECATED. A dictionary of call options for - each method. If not specified, the default configuration is used. - client_info (google.api_core.gapic_v1.client_info.ClientInfo): - The client info used to send a user-agent string along with - API requests. If ``None``, then default info will be used. - Generally, you only need to set this if you're developing - your own client library. - """ - # Raise deprecation warnings for things we want to go away. - if client_config is not None: - warnings.warn( - 'The `client_config` argument is deprecated.', - PendingDeprecationWarning, - stacklevel=2) - else: - client_config = google_ads_service_client_config.config - - if channel: - warnings.warn( - 'The `channel` argument is deprecated; use ' - '`transport` instead.', - PendingDeprecationWarning, - stacklevel=2) - - # Instantiate the transport. - # The transport is responsible for handling serialization and - # deserialization and actually sending data to the service. - if transport: - if callable(transport): - self.transport = transport( - credentials=credentials, - default_class=google_ads_service_grpc_transport. - GoogleAdsServiceGrpcTransport, - ) - else: - if credentials: - raise ValueError( - 'Received both a transport instance and ' - 'credentials; these are mutually exclusive.') - self.transport = transport - else: - self.transport = google_ads_service_grpc_transport.GoogleAdsServiceGrpcTransport( - address=self.SERVICE_ADDRESS, - channel=channel, - credentials=credentials, - ) - - if client_info is None: - client_info = google.api_core.gapic_v1.client_info.ClientInfo( - gapic_version=_GAPIC_LIBRARY_VERSION, ) - else: - client_info.gapic_version = _GAPIC_LIBRARY_VERSION - self._client_info = client_info - - # Parse out the default settings for retry and timeout for each RPC - # from the client configuration. - # (Ordinarily, these are the defaults specified in the `*_config.py` - # file next to this one.) - self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( - client_config['interfaces'][self._INTERFACE_NAME], ) - - # Save a dictionary of cached API call functions. - # These are the actual callables which invoke the proper - # transport methods, wrapped with `wrap_method` to add retry, - # timeout, and the like. - self._inner_api_calls = {} - - # Service calls - def search(self, - customer_id, - query, - page_size=None, - validate_only=None, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): - """ - Returns all rows that match the search query. - - Args: - customer_id (str): The ID of the customer being queried. - query (str): The query string. - page_size (int): The maximum number of resources contained in the - underlying API response. If page streaming is performed per- - resource, this parameter does not affect the return value. If page - streaming is performed per-page, this determines the maximum number - of resources in a page. - validate_only (bool): If true, the request is validated but not executed. - retry (Optional[google.api_core.retry.Retry]): A retry object used - to retry requests. If ``None`` is specified, requests will not - be retried. - timeout (Optional[float]): The amount of time, in seconds, to wait - for the request to complete. Note that if ``retry`` is - specified, the timeout applies to each individual attempt. - metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata - that is provided to the method. - - Returns: - A :class:`~google.gax.PageIterator` instance. By default, this - is an iterable of :class:`~google.ads.googleads_v1.types.GoogleAdsRow` instances. - This object can also be configured to iterate over the pages - of the response through the `options` parameter. - - Raises: - google.api_core.exceptions.GoogleAPICallError: If the request - failed for any reason. - google.api_core.exceptions.RetryError: If the request failed due - to a retryable error and retry attempts failed. - ValueError: If the parameters are invalid. - """ - # Wrap the transport method to add retry and timeout logic. - if 'search' not in self._inner_api_calls: - self._inner_api_calls[ - 'search'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.search, - default_retry=self._method_configs['Search'].retry, - default_timeout=self._method_configs['Search'].timeout, - client_info=self._client_info, - ) - - request = google_ads_service_pb2.SearchGoogleAdsRequest( - customer_id=customer_id, - query=query, - page_size=page_size, - validate_only=validate_only, - ) - iterator = google.api_core.page_iterator.GRPCIterator( - client=None, - method=functools.partial( - self._inner_api_calls['search'], - retry=retry, - timeout=timeout, - metadata=metadata), - request=request, - items_field='results', - request_token_field='page_token', - response_token_field='next_page_token', - ) - return iterator - - def mutate(self, - customer_id, - mutate_operations, - partial_failure=None, - validate_only=None, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): - """ - Creates, updates, or removes resources. This method supports atomic - transactions with multiple types of resources. For example, you can - atomically create a campaign and a campaign budget, or perform up to - thousands of mutates atomically. - - This method is essentially a wrapper around a series of mutate methods. - The only features it offers over calling those methods directly are: - - Atomic transactions - Temp resource names (described below) - Somewhat - reduced latency over making a series of mutate calls. - - Note: Only resources that support atomic transactions are included, so - this method can't replace all calls to individual services. - - ## Atomic Transaction Benefits - - Atomicity makes error handling much easier. If you're making a series of - changes and one fails, it can leave your account in an inconsistent - state. With atomicity, you either reach the desired state directly, or - the request fails and you can retry. - - ## Temp Resource Names - - Temp resource names are a special type of resource name used to create a - resource and reference that resource in the same request. For example, - if a campaign budget is created with 'resource\_name' equal to - 'customers/123/campaignBudgets/-1', that resource name can be reused in - the 'Campaign.budget' field in the same request. That way, the two - resources are created and linked atomically. - - To create a temp resource name, put a negative number in the part of the - name that the server would normally allocate. - - Note: - Resources must be created with a temp name before the name can - be reused. For example, the previous CampaignBudget+Campaign example - would fail if the mutate order was reversed. - Temp names are not - remembered across requests. - There's no limit to the number of temp - names in a request. - Each temp name must use a unique negative number, - even if the resource types differ. - - ## Latency - - It's important to group mutates by resource type or the request may time - out and fail. Latency is roughly equal to a series of calls to - individual mutate methods, where each change in resource type is a new - call. For example, mutating 10 campaigns then 10 ad groups is like 2 - calls, while mutating 1 campaign, 1 ad group, 1 campaign, 1 ad group is - like 4 calls. - - Args: - customer_id (str): The ID of the customer whose resources are being modified. - mutate_operations (list[Union[dict, ~google.ads.googleads_v1.types.MutateOperation]]): The list of operations to perform on individual resources. - - If a dict is provided, it must be of the same form as the protobuf - message :class:`~google.ads.googleads_v1.types.MutateOperation` - partial_failure (bool): If true, successful operations will be carried out and invalid - operations will return errors. If false, all operations will be carried - out in one transaction if and only if they are all valid. - Default is false. - validate_only (bool): If true, the request is validated but not executed. Only errors are - returned, not results. - retry (Optional[google.api_core.retry.Retry]): A retry object used - to retry requests. If ``None`` is specified, requests will not - be retried. - timeout (Optional[float]): The amount of time, in seconds, to wait - for the request to complete. Note that if ``retry`` is - specified, the timeout applies to each individual attempt. - metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata - that is provided to the method. - - Returns: - A :class:`~google.ads.googleads_v1.types.MutateGoogleAdsResponse` instance. - - Raises: - google.api_core.exceptions.GoogleAPICallError: If the request - failed for any reason. - google.api_core.exceptions.RetryError: If the request failed due - to a retryable error and retry attempts failed. - ValueError: If the parameters are invalid. - """ - # Wrap the transport method to add retry and timeout logic. - if 'mutate' not in self._inner_api_calls: - self._inner_api_calls[ - 'mutate'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.mutate, - default_retry=self._method_configs['Mutate'].retry, - default_timeout=self._method_configs['Mutate'].timeout, - client_info=self._client_info, - ) - - request = google_ads_service_pb2.MutateGoogleAdsRequest( - customer_id=customer_id, - mutate_operations=mutate_operations, - partial_failure=partial_failure, - validate_only=validate_only, - ) - return self._inner_api_calls['mutate']( - request, retry=retry, timeout=timeout, metadata=metadata) diff --git a/google/ads/google_ads/v1/services/google_ads_service_client_config.py b/google/ads/google_ads/v1/services/google_ads_service_client_config.py deleted file mode 100644 index 2338001ae..000000000 --- a/google/ads/google_ads/v1/services/google_ads_service_client_config.py +++ /dev/null @@ -1,33 +0,0 @@ -config = { - "interfaces": { - "google.ads.googleads.v1.services.GoogleAdsService": { - "retry_codes": { - "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], - "non_idempotent": [] - }, - "retry_params": { - "default": { - "initial_retry_delay_millis": 5000, - "retry_delay_multiplier": 1.3, - "max_retry_delay_millis": 60000, - "initial_rpc_timeout_millis": 3600000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 3600000, - "total_timeout_millis": 3600000 - } - }, - "methods": { - "Search": { - "timeout_millis": 3600000, - "retry_codes_name": "idempotent", - "retry_params_name": "default" - }, - "Mutate": { - "timeout_millis": 600000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default" - } - } - } - } -} diff --git a/google/ads/google_ads/v1/services/group_placement_view_service_client_config.py b/google/ads/google_ads/v1/services/group_placement_view_service_client_config.py deleted file mode 100644 index 3e41961f9..000000000 --- a/google/ads/google_ads/v1/services/group_placement_view_service_client_config.py +++ /dev/null @@ -1,28 +0,0 @@ -config = { - "interfaces": { - "google.ads.googleads.v1.services.GroupPlacementViewService": { - "retry_codes": { - "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], - "non_idempotent": [] - }, - "retry_params": { - "default": { - "initial_retry_delay_millis": 5000, - "retry_delay_multiplier": 1.3, - "max_retry_delay_millis": 60000, - "initial_rpc_timeout_millis": 3600000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 3600000, - "total_timeout_millis": 3600000 - } - }, - "methods": { - "GetGroupPlacementView": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default" - } - } - } - } -} diff --git a/google/ads/google_ads/v1/services/hotel_group_view_service_client_config.py b/google/ads/google_ads/v1/services/hotel_group_view_service_client_config.py deleted file mode 100644 index 832e52a3e..000000000 --- a/google/ads/google_ads/v1/services/hotel_group_view_service_client_config.py +++ /dev/null @@ -1,28 +0,0 @@ -config = { - "interfaces": { - "google.ads.googleads.v1.services.HotelGroupViewService": { - "retry_codes": { - "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], - "non_idempotent": [] - }, - "retry_params": { - "default": { - "initial_retry_delay_millis": 5000, - "retry_delay_multiplier": 1.3, - "max_retry_delay_millis": 60000, - "initial_rpc_timeout_millis": 3600000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 3600000, - "total_timeout_millis": 3600000 - } - }, - "methods": { - "GetHotelGroupView": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default" - } - } - } - } -} diff --git a/google/ads/google_ads/v1/services/hotel_performance_view_service_client_config.py b/google/ads/google_ads/v1/services/hotel_performance_view_service_client_config.py deleted file mode 100644 index 1a2128e60..000000000 --- a/google/ads/google_ads/v1/services/hotel_performance_view_service_client_config.py +++ /dev/null @@ -1,28 +0,0 @@ -config = { - "interfaces": { - "google.ads.googleads.v1.services.HotelPerformanceViewService": { - "retry_codes": { - "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], - "non_idempotent": [] - }, - "retry_params": { - "default": { - "initial_retry_delay_millis": 5000, - "retry_delay_multiplier": 1.3, - "max_retry_delay_millis": 60000, - "initial_rpc_timeout_millis": 3600000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 3600000, - "total_timeout_millis": 3600000 - } - }, - "methods": { - "GetHotelPerformanceView": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default" - } - } - } - } -} diff --git a/google/ads/google_ads/v1/services/keyword_plan_ad_group_service_client_config.py b/google/ads/google_ads/v1/services/keyword_plan_ad_group_service_client_config.py deleted file mode 100644 index be60b2a37..000000000 --- a/google/ads/google_ads/v1/services/keyword_plan_ad_group_service_client_config.py +++ /dev/null @@ -1,33 +0,0 @@ -config = { - "interfaces": { - "google.ads.googleads.v1.services.KeywordPlanAdGroupService": { - "retry_codes": { - "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], - "non_idempotent": [] - }, - "retry_params": { - "default": { - "initial_retry_delay_millis": 5000, - "retry_delay_multiplier": 1.3, - "max_retry_delay_millis": 60000, - "initial_rpc_timeout_millis": 3600000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 3600000, - "total_timeout_millis": 3600000 - } - }, - "methods": { - "GetKeywordPlanAdGroup": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default" - }, - "MutateKeywordPlanAdGroups": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default" - } - } - } - } -} diff --git a/google/ads/google_ads/v1/services/keyword_plan_campaign_service_client_config.py b/google/ads/google_ads/v1/services/keyword_plan_campaign_service_client_config.py deleted file mode 100644 index 4369ccef7..000000000 --- a/google/ads/google_ads/v1/services/keyword_plan_campaign_service_client_config.py +++ /dev/null @@ -1,33 +0,0 @@ -config = { - "interfaces": { - "google.ads.googleads.v1.services.KeywordPlanCampaignService": { - "retry_codes": { - "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], - "non_idempotent": [] - }, - "retry_params": { - "default": { - "initial_retry_delay_millis": 5000, - "retry_delay_multiplier": 1.3, - "max_retry_delay_millis": 60000, - "initial_rpc_timeout_millis": 3600000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 3600000, - "total_timeout_millis": 3600000 - } - }, - "methods": { - "GetKeywordPlanCampaign": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default" - }, - "MutateKeywordPlanCampaigns": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default" - } - } - } - } -} diff --git a/google/ads/google_ads/v1/services/keyword_plan_idea_service_client.py b/google/ads/google_ads/v1/services/keyword_plan_idea_service_client.py deleted file mode 100644 index adf711d0b..000000000 --- a/google/ads/google_ads/v1/services/keyword_plan_idea_service_client.py +++ /dev/null @@ -1,252 +0,0 @@ -# -*- coding: utf-8 -*- -# -# 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. -"""Accesses the google.ads.googleads.v1.services KeywordPlanIdeaService API.""" - -import pkg_resources -import warnings - -from google.oauth2 import service_account -import google.api_core.gapic_v1.client_info -import google.api_core.gapic_v1.config -import google.api_core.gapic_v1.method -import google.api_core.grpc_helpers -import google.api_core.protobuf_helpers - -from google.ads.google_ads.v1.services import keyword_plan_idea_service_client_config -from google.ads.google_ads.v1.services.transports import keyword_plan_idea_service_grpc_transport -from google.ads.google_ads.v1.proto.services import keyword_plan_idea_service_pb2 - -_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( - 'google-ads', ).version - - -class KeywordPlanIdeaServiceClient(object): - """Service to generate keyword ideas.""" - - SERVICE_ADDRESS = 'googleads.googleapis.com:443' - """The default address of the service.""" - - # The name of the interface for this client. This is the key used to - # find the method configuration in the client_config dictionary. - _INTERFACE_NAME = 'google.ads.googleads.v1.services.KeywordPlanIdeaService' - - @classmethod - def from_service_account_file(cls, filename, *args, **kwargs): - """Creates an instance of this client using the provided credentials - file. - - Args: - filename (str): The path to the service account private key json - file. - args: Additional arguments to pass to the constructor. - kwargs: Additional arguments to pass to the constructor. - - Returns: - KeywordPlanIdeaServiceClient: The constructed client. - """ - credentials = service_account.Credentials.from_service_account_file( - filename) - kwargs['credentials'] = credentials - return cls(*args, **kwargs) - - from_service_account_json = from_service_account_file - - def __init__(self, - transport=None, - channel=None, - credentials=None, - client_config=None, - client_info=None): - """Constructor. - - Args: - transport (Union[~.KeywordPlanIdeaServiceGrpcTransport, - Callable[[~.Credentials, type], ~.KeywordPlanIdeaServiceGrpcTransport]): A transport - instance, responsible for actually making the API calls. - The default transport uses the gRPC protocol. - This argument may also be a callable which returns a - transport instance. Callables will be sent the credentials - as the first argument and the default transport class as - the second argument. - channel (grpc.Channel): DEPRECATED. A ``Channel`` instance - through which to make calls. This argument is mutually exclusive - with ``credentials``; providing both will raise an exception. - credentials (google.auth.credentials.Credentials): The - authorization credentials to attach to requests. These - credentials identify this application to the service. If none - are specified, the client will attempt to ascertain the - credentials from the environment. - This argument is mutually exclusive with providing a - transport instance to ``transport``; doing so will raise - an exception. - client_config (dict): DEPRECATED. A dictionary of call options for - each method. If not specified, the default configuration is used. - client_info (google.api_core.gapic_v1.client_info.ClientInfo): - The client info used to send a user-agent string along with - API requests. If ``None``, then default info will be used. - Generally, you only need to set this if you're developing - your own client library. - """ - # Raise deprecation warnings for things we want to go away. - if client_config is not None: - warnings.warn( - 'The `client_config` argument is deprecated.', - PendingDeprecationWarning, - stacklevel=2) - else: - client_config = keyword_plan_idea_service_client_config.config - - if channel: - warnings.warn( - 'The `channel` argument is deprecated; use ' - '`transport` instead.', - PendingDeprecationWarning, - stacklevel=2) - - # Instantiate the transport. - # The transport is responsible for handling serialization and - # deserialization and actually sending data to the service. - if transport: - if callable(transport): - self.transport = transport( - credentials=credentials, - default_class=keyword_plan_idea_service_grpc_transport. - KeywordPlanIdeaServiceGrpcTransport, - ) - else: - if credentials: - raise ValueError( - 'Received both a transport instance and ' - 'credentials; these are mutually exclusive.') - self.transport = transport - else: - self.transport = keyword_plan_idea_service_grpc_transport.KeywordPlanIdeaServiceGrpcTransport( - address=self.SERVICE_ADDRESS, - channel=channel, - credentials=credentials, - ) - - if client_info is None: - client_info = google.api_core.gapic_v1.client_info.ClientInfo( - gapic_version=_GAPIC_LIBRARY_VERSION, ) - else: - client_info.gapic_version = _GAPIC_LIBRARY_VERSION - self._client_info = client_info - - # Parse out the default settings for retry and timeout for each RPC - # from the client configuration. - # (Ordinarily, these are the defaults specified in the `*_config.py` - # file next to this one.) - self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( - client_config['interfaces'][self._INTERFACE_NAME], ) - - # Save a dictionary of cached API call functions. - # These are the actual callables which invoke the proper - # transport methods, wrapped with `wrap_method` to add retry, - # timeout, and the like. - self._inner_api_calls = {} - - # Service calls - def generate_keyword_ideas(self, - customer_id, - language, - geo_target_constants, - keyword_plan_network, - keyword_and_url_seed=None, - keyword_seed=None, - url_seed=None, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): - """ - Returns a list of keyword ideas. - - Args: - customer_id (str): The ID of the customer with the recommendation. - language (Union[dict, ~google.ads.googleads_v1.types.StringValue]): The resource name of the language to target. - Required - - If a dict is provided, it must be of the same form as the protobuf - message :class:`~google.ads.googleads_v1.types.StringValue` - geo_target_constants (list[Union[dict, ~google.ads.googleads_v1.types.StringValue]]): The resource names of the location to target. - Max 10 - - If a dict is provided, it must be of the same form as the protobuf - message :class:`~google.ads.googleads_v1.types.StringValue` - keyword_plan_network (~google.ads.googleads_v1.types.KeywordPlanNetwork): Targeting network. - keyword_and_url_seed (Union[dict, ~google.ads.googleads_v1.types.KeywordAndUrlSeed]): A Keyword and a specific Url to generate ideas from - e.g. cars, www.example.com/cars. - - If a dict is provided, it must be of the same form as the protobuf - message :class:`~google.ads.googleads_v1.types.KeywordAndUrlSeed` - keyword_seed (Union[dict, ~google.ads.googleads_v1.types.KeywordSeed]): A Keyword or phrase to generate ideas from, e.g. cars. - - If a dict is provided, it must be of the same form as the protobuf - message :class:`~google.ads.googleads_v1.types.KeywordSeed` - url_seed (Union[dict, ~google.ads.googleads_v1.types.UrlSeed]): A specific url to generate ideas from, e.g. www.example.com/cars. - - If a dict is provided, it must be of the same form as the protobuf - message :class:`~google.ads.googleads_v1.types.UrlSeed` - retry (Optional[google.api_core.retry.Retry]): A retry object used - to retry requests. If ``None`` is specified, requests will not - be retried. - timeout (Optional[float]): The amount of time, in seconds, to wait - for the request to complete. Note that if ``retry`` is - specified, the timeout applies to each individual attempt. - metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata - that is provided to the method. - - Returns: - A :class:`~google.ads.googleads_v1.types.GenerateKeywordIdeaResponse` instance. - - Raises: - google.api_core.exceptions.GoogleAPICallError: If the request - failed for any reason. - google.api_core.exceptions.RetryError: If the request failed due - to a retryable error and retry attempts failed. - ValueError: If the parameters are invalid. - """ - # Wrap the transport method to add retry and timeout logic. - if 'generate_keyword_ideas' not in self._inner_api_calls: - self._inner_api_calls[ - 'generate_keyword_ideas'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.generate_keyword_ideas, - default_retry=self._method_configs['GenerateKeywordIdeas']. - retry, - default_timeout=self. - _method_configs['GenerateKeywordIdeas'].timeout, - client_info=self._client_info, - ) - - # Sanity check: We have some fields which are mutually exclusive; - # raise ValueError if more than one is sent. - google.api_core.protobuf_helpers.check_oneof( - keyword_and_url_seed=keyword_and_url_seed, - keyword_seed=keyword_seed, - url_seed=url_seed, - ) - - request = keyword_plan_idea_service_pb2.GenerateKeywordIdeasRequest( - customer_id=customer_id, - language=language, - geo_target_constants=geo_target_constants, - keyword_plan_network=keyword_plan_network, - keyword_and_url_seed=keyword_and_url_seed, - keyword_seed=keyword_seed, - url_seed=url_seed, - ) - return self._inner_api_calls['generate_keyword_ideas']( - request, retry=retry, timeout=timeout, metadata=metadata) diff --git a/google/ads/google_ads/v1/services/keyword_plan_idea_service_client_config.py b/google/ads/google_ads/v1/services/keyword_plan_idea_service_client_config.py deleted file mode 100644 index 9063bc17b..000000000 --- a/google/ads/google_ads/v1/services/keyword_plan_idea_service_client_config.py +++ /dev/null @@ -1,28 +0,0 @@ -config = { - "interfaces": { - "google.ads.googleads.v1.services.KeywordPlanIdeaService": { - "retry_codes": { - "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], - "non_idempotent": [] - }, - "retry_params": { - "default": { - "initial_retry_delay_millis": 5000, - "retry_delay_multiplier": 1.3, - "max_retry_delay_millis": 60000, - "initial_rpc_timeout_millis": 3600000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 3600000, - "total_timeout_millis": 3600000 - } - }, - "methods": { - "GenerateKeywordIdeas": { - "timeout_millis": 600000, - "retry_codes_name": "idempotent", - "retry_params_name": "default" - } - } - } - } -} diff --git a/google/ads/google_ads/v1/services/keyword_plan_keyword_service_client.py b/google/ads/google_ads/v1/services/keyword_plan_keyword_service_client.py deleted file mode 100644 index ea7d62c74..000000000 --- a/google/ads/google_ads/v1/services/keyword_plan_keyword_service_client.py +++ /dev/null @@ -1,282 +0,0 @@ -# -*- coding: utf-8 -*- -# -# 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. -"""Accesses the google.ads.googleads.v1.services KeywordPlanKeywordService API.""" - -import pkg_resources -import warnings - -from google.oauth2 import service_account -import google.api_core.gapic_v1.client_info -import google.api_core.gapic_v1.config -import google.api_core.gapic_v1.method -import google.api_core.grpc_helpers -import google.api_core.path_template - -from google.ads.google_ads.v1.services import keyword_plan_keyword_service_client_config -from google.ads.google_ads.v1.services.transports import keyword_plan_keyword_service_grpc_transport -from google.ads.google_ads.v1.proto.services import keyword_plan_keyword_service_pb2 - -_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( - 'google-ads', ).version - - -class KeywordPlanKeywordServiceClient(object): - """Service to manage Keyword Plan ad group keywords.""" - - SERVICE_ADDRESS = 'googleads.googleapis.com:443' - """The default address of the service.""" - - # The name of the interface for this client. This is the key used to - # find the method configuration in the client_config dictionary. - _INTERFACE_NAME = 'google.ads.googleads.v1.services.KeywordPlanKeywordService' - - @classmethod - def from_service_account_file(cls, filename, *args, **kwargs): - """Creates an instance of this client using the provided credentials - file. - - Args: - filename (str): The path to the service account private key json - file. - args: Additional arguments to pass to the constructor. - kwargs: Additional arguments to pass to the constructor. - - Returns: - KeywordPlanKeywordServiceClient: The constructed client. - """ - credentials = service_account.Credentials.from_service_account_file( - filename) - kwargs['credentials'] = credentials - return cls(*args, **kwargs) - - from_service_account_json = from_service_account_file - - @classmethod - def keyword_plan_keyword_path(cls, customer, keyword_plan_keyword): - """Return a fully-qualified keyword_plan_keyword string.""" - return google.api_core.path_template.expand( - 'customers/{customer}/keywordPlanKeywords/{keyword_plan_keyword}', - customer=customer, - keyword_plan_keyword=keyword_plan_keyword, - ) - - def __init__(self, - transport=None, - channel=None, - credentials=None, - client_config=None, - client_info=None): - """Constructor. - - Args: - transport (Union[~.KeywordPlanKeywordServiceGrpcTransport, - Callable[[~.Credentials, type], ~.KeywordPlanKeywordServiceGrpcTransport]): A transport - instance, responsible for actually making the API calls. - The default transport uses the gRPC protocol. - This argument may also be a callable which returns a - transport instance. Callables will be sent the credentials - as the first argument and the default transport class as - the second argument. - channel (grpc.Channel): DEPRECATED. A ``Channel`` instance - through which to make calls. This argument is mutually exclusive - with ``credentials``; providing both will raise an exception. - credentials (google.auth.credentials.Credentials): The - authorization credentials to attach to requests. These - credentials identify this application to the service. If none - are specified, the client will attempt to ascertain the - credentials from the environment. - This argument is mutually exclusive with providing a - transport instance to ``transport``; doing so will raise - an exception. - client_config (dict): DEPRECATED. A dictionary of call options for - each method. If not specified, the default configuration is used. - client_info (google.api_core.gapic_v1.client_info.ClientInfo): - The client info used to send a user-agent string along with - API requests. If ``None``, then default info will be used. - Generally, you only need to set this if you're developing - your own client library. - """ - # Raise deprecation warnings for things we want to go away. - if client_config is not None: - warnings.warn( - 'The `client_config` argument is deprecated.', - PendingDeprecationWarning, - stacklevel=2) - else: - client_config = keyword_plan_keyword_service_client_config.config - - if channel: - warnings.warn( - 'The `channel` argument is deprecated; use ' - '`transport` instead.', - PendingDeprecationWarning, - stacklevel=2) - - # Instantiate the transport. - # The transport is responsible for handling serialization and - # deserialization and actually sending data to the service. - if transport: - if callable(transport): - self.transport = transport( - credentials=credentials, - default_class=keyword_plan_keyword_service_grpc_transport. - KeywordPlanKeywordServiceGrpcTransport, - ) - else: - if credentials: - raise ValueError( - 'Received both a transport instance and ' - 'credentials; these are mutually exclusive.') - self.transport = transport - else: - self.transport = keyword_plan_keyword_service_grpc_transport.KeywordPlanKeywordServiceGrpcTransport( - address=self.SERVICE_ADDRESS, - channel=channel, - credentials=credentials, - ) - - if client_info is None: - client_info = google.api_core.gapic_v1.client_info.ClientInfo( - gapic_version=_GAPIC_LIBRARY_VERSION, ) - else: - client_info.gapic_version = _GAPIC_LIBRARY_VERSION - self._client_info = client_info - - # Parse out the default settings for retry and timeout for each RPC - # from the client configuration. - # (Ordinarily, these are the defaults specified in the `*_config.py` - # file next to this one.) - self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( - client_config['interfaces'][self._INTERFACE_NAME], ) - - # Save a dictionary of cached API call functions. - # These are the actual callables which invoke the proper - # transport methods, wrapped with `wrap_method` to add retry, - # timeout, and the like. - self._inner_api_calls = {} - - # Service calls - def get_keyword_plan_keyword( - self, - resource_name, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): - """ - Returns the requested Keyword Plan keyword in full detail. - - Args: - resource_name (str): The resource name of the ad group keyword to fetch. - retry (Optional[google.api_core.retry.Retry]): A retry object used - to retry requests. If ``None`` is specified, requests will not - be retried. - timeout (Optional[float]): The amount of time, in seconds, to wait - for the request to complete. Note that if ``retry`` is - specified, the timeout applies to each individual attempt. - metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata - that is provided to the method. - - Returns: - A :class:`~google.ads.googleads_v1.types.KeywordPlanKeyword` instance. - - Raises: - google.api_core.exceptions.GoogleAPICallError: If the request - failed for any reason. - google.api_core.exceptions.RetryError: If the request failed due - to a retryable error and retry attempts failed. - ValueError: If the parameters are invalid. - """ - # Wrap the transport method to add retry and timeout logic. - if 'get_keyword_plan_keyword' not in self._inner_api_calls: - self._inner_api_calls[ - 'get_keyword_plan_keyword'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.get_keyword_plan_keyword, - default_retry=self. - _method_configs['GetKeywordPlanKeyword'].retry, - default_timeout=self. - _method_configs['GetKeywordPlanKeyword'].timeout, - client_info=self._client_info, - ) - - request = keyword_plan_keyword_service_pb2.GetKeywordPlanKeywordRequest( - resource_name=resource_name, ) - return self._inner_api_calls['get_keyword_plan_keyword']( - request, retry=retry, timeout=timeout, metadata=metadata) - - def mutate_keyword_plan_keywords( - self, - customer_id, - operations, - partial_failure=None, - validate_only=None, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): - """ - Creates, updates, or removes Keyword Plan keywords. Operation statuses are - returned. - - Args: - customer_id (str): The ID of the customer whose Keyword Plan keywords are being modified. - operations (list[Union[dict, ~google.ads.googleads_v1.types.KeywordPlanKeywordOperation]]): The list of operations to perform on individual Keyword Plan keywords. - - If a dict is provided, it must be of the same form as the protobuf - message :class:`~google.ads.googleads_v1.types.KeywordPlanKeywordOperation` - partial_failure (bool): If true, successful operations will be carried out and invalid - operations will return errors. If false, all operations will be carried - out in one transaction if and only if they are all valid. - Default is false. - validate_only (bool): If true, the request is validated but not executed. Only errors are - returned, not results. - retry (Optional[google.api_core.retry.Retry]): A retry object used - to retry requests. If ``None`` is specified, requests will not - be retried. - timeout (Optional[float]): The amount of time, in seconds, to wait - for the request to complete. Note that if ``retry`` is - specified, the timeout applies to each individual attempt. - metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata - that is provided to the method. - - Returns: - A :class:`~google.ads.googleads_v1.types.MutateKeywordPlanKeywordsResponse` instance. - - Raises: - google.api_core.exceptions.GoogleAPICallError: If the request - failed for any reason. - google.api_core.exceptions.RetryError: If the request failed due - to a retryable error and retry attempts failed. - ValueError: If the parameters are invalid. - """ - # Wrap the transport method to add retry and timeout logic. - if 'mutate_keyword_plan_keywords' not in self._inner_api_calls: - self._inner_api_calls[ - 'mutate_keyword_plan_keywords'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.mutate_keyword_plan_keywords, - default_retry=self. - _method_configs['MutateKeywordPlanKeywords'].retry, - default_timeout=self. - _method_configs['MutateKeywordPlanKeywords'].timeout, - client_info=self._client_info, - ) - - request = keyword_plan_keyword_service_pb2.MutateKeywordPlanKeywordsRequest( - customer_id=customer_id, - operations=operations, - partial_failure=partial_failure, - validate_only=validate_only, - ) - return self._inner_api_calls['mutate_keyword_plan_keywords']( - request, retry=retry, timeout=timeout, metadata=metadata) diff --git a/google/ads/google_ads/v1/services/keyword_plan_keyword_service_client_config.py b/google/ads/google_ads/v1/services/keyword_plan_keyword_service_client_config.py deleted file mode 100644 index 0f4945a75..000000000 --- a/google/ads/google_ads/v1/services/keyword_plan_keyword_service_client_config.py +++ /dev/null @@ -1,33 +0,0 @@ -config = { - "interfaces": { - "google.ads.googleads.v1.services.KeywordPlanKeywordService": { - "retry_codes": { - "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], - "non_idempotent": [] - }, - "retry_params": { - "default": { - "initial_retry_delay_millis": 5000, - "retry_delay_multiplier": 1.3, - "max_retry_delay_millis": 60000, - "initial_rpc_timeout_millis": 3600000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 3600000, - "total_timeout_millis": 3600000 - } - }, - "methods": { - "GetKeywordPlanKeyword": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default" - }, - "MutateKeywordPlanKeywords": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default" - } - } - } - } -} diff --git a/google/ads/google_ads/v1/services/keyword_plan_negative_keyword_service_client.py b/google/ads/google_ads/v1/services/keyword_plan_negative_keyword_service_client.py deleted file mode 100644 index a78759491..000000000 --- a/google/ads/google_ads/v1/services/keyword_plan_negative_keyword_service_client.py +++ /dev/null @@ -1,285 +0,0 @@ -# -*- coding: utf-8 -*- -# -# 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. -"""Accesses the google.ads.googleads.v1.services KeywordPlanNegativeKeywordService API.""" - -import pkg_resources -import warnings - -from google.oauth2 import service_account -import google.api_core.gapic_v1.client_info -import google.api_core.gapic_v1.config -import google.api_core.gapic_v1.method -import google.api_core.grpc_helpers -import google.api_core.path_template - -from google.ads.google_ads.v1.services import keyword_plan_negative_keyword_service_client_config -from google.ads.google_ads.v1.services.transports import keyword_plan_negative_keyword_service_grpc_transport -from google.ads.google_ads.v1.proto.services import keyword_plan_negative_keyword_service_pb2 - -_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( - 'google-ads', ).version - - -class KeywordPlanNegativeKeywordServiceClient(object): - """Service to manage Keyword Plan negative keywords.""" - - SERVICE_ADDRESS = 'googleads.googleapis.com:443' - """The default address of the service.""" - - # The name of the interface for this client. This is the key used to - # find the method configuration in the client_config dictionary. - _INTERFACE_NAME = 'google.ads.googleads.v1.services.KeywordPlanNegativeKeywordService' - - @classmethod - def from_service_account_file(cls, filename, *args, **kwargs): - """Creates an instance of this client using the provided credentials - file. - - Args: - filename (str): The path to the service account private key json - file. - args: Additional arguments to pass to the constructor. - kwargs: Additional arguments to pass to the constructor. - - Returns: - KeywordPlanNegativeKeywordServiceClient: The constructed client. - """ - credentials = service_account.Credentials.from_service_account_file( - filename) - kwargs['credentials'] = credentials - return cls(*args, **kwargs) - - from_service_account_json = from_service_account_file - - @classmethod - def keyword_plan_negative_keyword_path(cls, customer, - keyword_plan_negative_keyword): - """Return a fully-qualified keyword_plan_negative_keyword string.""" - return google.api_core.path_template.expand( - 'customers/{customer}/keywordPlanNegativeKeywords/{keyword_plan_negative_keyword}', - customer=customer, - keyword_plan_negative_keyword=keyword_plan_negative_keyword, - ) - - def __init__(self, - transport=None, - channel=None, - credentials=None, - client_config=None, - client_info=None): - """Constructor. - - Args: - transport (Union[~.KeywordPlanNegativeKeywordServiceGrpcTransport, - Callable[[~.Credentials, type], ~.KeywordPlanNegativeKeywordServiceGrpcTransport]): A transport - instance, responsible for actually making the API calls. - The default transport uses the gRPC protocol. - This argument may also be a callable which returns a - transport instance. Callables will be sent the credentials - as the first argument and the default transport class as - the second argument. - channel (grpc.Channel): DEPRECATED. A ``Channel`` instance - through which to make calls. This argument is mutually exclusive - with ``credentials``; providing both will raise an exception. - credentials (google.auth.credentials.Credentials): The - authorization credentials to attach to requests. These - credentials identify this application to the service. If none - are specified, the client will attempt to ascertain the - credentials from the environment. - This argument is mutually exclusive with providing a - transport instance to ``transport``; doing so will raise - an exception. - client_config (dict): DEPRECATED. A dictionary of call options for - each method. If not specified, the default configuration is used. - client_info (google.api_core.gapic_v1.client_info.ClientInfo): - The client info used to send a user-agent string along with - API requests. If ``None``, then default info will be used. - Generally, you only need to set this if you're developing - your own client library. - """ - # Raise deprecation warnings for things we want to go away. - if client_config is not None: - warnings.warn( - 'The `client_config` argument is deprecated.', - PendingDeprecationWarning, - stacklevel=2) - else: - client_config = keyword_plan_negative_keyword_service_client_config.config - - if channel: - warnings.warn( - 'The `channel` argument is deprecated; use ' - '`transport` instead.', - PendingDeprecationWarning, - stacklevel=2) - - # Instantiate the transport. - # The transport is responsible for handling serialization and - # deserialization and actually sending data to the service. - if transport: - if callable(transport): - self.transport = transport( - credentials=credentials, - default_class= - keyword_plan_negative_keyword_service_grpc_transport. - KeywordPlanNegativeKeywordServiceGrpcTransport, - ) - else: - if credentials: - raise ValueError( - 'Received both a transport instance and ' - 'credentials; these are mutually exclusive.') - self.transport = transport - else: - self.transport = keyword_plan_negative_keyword_service_grpc_transport.KeywordPlanNegativeKeywordServiceGrpcTransport( - address=self.SERVICE_ADDRESS, - channel=channel, - credentials=credentials, - ) - - if client_info is None: - client_info = google.api_core.gapic_v1.client_info.ClientInfo( - gapic_version=_GAPIC_LIBRARY_VERSION, ) - else: - client_info.gapic_version = _GAPIC_LIBRARY_VERSION - self._client_info = client_info - - # Parse out the default settings for retry and timeout for each RPC - # from the client configuration. - # (Ordinarily, these are the defaults specified in the `*_config.py` - # file next to this one.) - self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( - client_config['interfaces'][self._INTERFACE_NAME], ) - - # Save a dictionary of cached API call functions. - # These are the actual callables which invoke the proper - # transport methods, wrapped with `wrap_method` to add retry, - # timeout, and the like. - self._inner_api_calls = {} - - # Service calls - def get_keyword_plan_negative_keyword( - self, - resource_name, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): - """ - Returns the requested plan in full detail. - - Args: - resource_name (str): The resource name of the plan to fetch. - retry (Optional[google.api_core.retry.Retry]): A retry object used - to retry requests. If ``None`` is specified, requests will not - be retried. - timeout (Optional[float]): The amount of time, in seconds, to wait - for the request to complete. Note that if ``retry`` is - specified, the timeout applies to each individual attempt. - metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata - that is provided to the method. - - Returns: - A :class:`~google.ads.googleads_v1.types.KeywordPlanNegativeKeyword` instance. - - Raises: - google.api_core.exceptions.GoogleAPICallError: If the request - failed for any reason. - google.api_core.exceptions.RetryError: If the request failed due - to a retryable error and retry attempts failed. - ValueError: If the parameters are invalid. - """ - # Wrap the transport method to add retry and timeout logic. - if 'get_keyword_plan_negative_keyword' not in self._inner_api_calls: - self._inner_api_calls[ - 'get_keyword_plan_negative_keyword'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.get_keyword_plan_negative_keyword, - default_retry=self. - _method_configs['GetKeywordPlanNegativeKeyword'].retry, - default_timeout=self. - _method_configs['GetKeywordPlanNegativeKeyword'].timeout, - client_info=self._client_info, - ) - - request = keyword_plan_negative_keyword_service_pb2.GetKeywordPlanNegativeKeywordRequest( - resource_name=resource_name, ) - return self._inner_api_calls['get_keyword_plan_negative_keyword']( - request, retry=retry, timeout=timeout, metadata=metadata) - - def mutate_keyword_plan_negative_keywords( - self, - customer_id, - operations, - partial_failure=None, - validate_only=None, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): - """ - Creates, updates, or removes Keyword Plan negative keywords. Operation - statuses are returned. - - Args: - customer_id (str): The ID of the customer whose negative keywords are being modified. - operations (list[Union[dict, ~google.ads.googleads_v1.types.KeywordPlanNegativeKeywordOperation]]): The list of operations to perform on individual Keyword Plan negative - keywords. - - If a dict is provided, it must be of the same form as the protobuf - message :class:`~google.ads.googleads_v1.types.KeywordPlanNegativeKeywordOperation` - partial_failure (bool): If true, successful operations will be carried out and invalid - operations will return errors. If false, all operations will be carried - out in one transaction if and only if they are all valid. - Default is false. - validate_only (bool): If true, the request is validated but not executed. Only errors are - returned, not results. - retry (Optional[google.api_core.retry.Retry]): A retry object used - to retry requests. If ``None`` is specified, requests will not - be retried. - timeout (Optional[float]): The amount of time, in seconds, to wait - for the request to complete. Note that if ``retry`` is - specified, the timeout applies to each individual attempt. - metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata - that is provided to the method. - - Returns: - A :class:`~google.ads.googleads_v1.types.MutateKeywordPlanNegativeKeywordsResponse` instance. - - Raises: - google.api_core.exceptions.GoogleAPICallError: If the request - failed for any reason. - google.api_core.exceptions.RetryError: If the request failed due - to a retryable error and retry attempts failed. - ValueError: If the parameters are invalid. - """ - # Wrap the transport method to add retry and timeout logic. - if 'mutate_keyword_plan_negative_keywords' not in self._inner_api_calls: - self._inner_api_calls[ - 'mutate_keyword_plan_negative_keywords'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.mutate_keyword_plan_negative_keywords, - default_retry=self. - _method_configs['MutateKeywordPlanNegativeKeywords'].retry, - default_timeout=self._method_configs[ - 'MutateKeywordPlanNegativeKeywords'].timeout, - client_info=self._client_info, - ) - - request = keyword_plan_negative_keyword_service_pb2.MutateKeywordPlanNegativeKeywordsRequest( - customer_id=customer_id, - operations=operations, - partial_failure=partial_failure, - validate_only=validate_only, - ) - return self._inner_api_calls['mutate_keyword_plan_negative_keywords']( - request, retry=retry, timeout=timeout, metadata=metadata) diff --git a/google/ads/google_ads/v1/services/keyword_plan_negative_keyword_service_client_config.py b/google/ads/google_ads/v1/services/keyword_plan_negative_keyword_service_client_config.py deleted file mode 100644 index aa4ffe2ef..000000000 --- a/google/ads/google_ads/v1/services/keyword_plan_negative_keyword_service_client_config.py +++ /dev/null @@ -1,33 +0,0 @@ -config = { - "interfaces": { - "google.ads.googleads.v1.services.KeywordPlanNegativeKeywordService": { - "retry_codes": { - "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], - "non_idempotent": [] - }, - "retry_params": { - "default": { - "initial_retry_delay_millis": 5000, - "retry_delay_multiplier": 1.3, - "max_retry_delay_millis": 60000, - "initial_rpc_timeout_millis": 3600000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 3600000, - "total_timeout_millis": 3600000 - } - }, - "methods": { - "GetKeywordPlanNegativeKeyword": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default" - }, - "MutateKeywordPlanNegativeKeywords": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default" - } - } - } - } -} diff --git a/google/ads/google_ads/v1/services/keyword_plan_service_client.py b/google/ads/google_ads/v1/services/keyword_plan_service_client.py deleted file mode 100644 index 52b0b1992..000000000 --- a/google/ads/google_ads/v1/services/keyword_plan_service_client.py +++ /dev/null @@ -1,374 +0,0 @@ -# -*- coding: utf-8 -*- -# -# 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. -"""Accesses the google.ads.googleads.v1.services KeywordPlanService API.""" - -import pkg_resources -import warnings - -from google.oauth2 import service_account -import google.api_core.gapic_v1.client_info -import google.api_core.gapic_v1.config -import google.api_core.gapic_v1.method -import google.api_core.grpc_helpers -import google.api_core.path_template - -from google.ads.google_ads.v1.services import keyword_plan_service_client_config -from google.ads.google_ads.v1.services.transports import keyword_plan_service_grpc_transport -from google.ads.google_ads.v1.proto.services import keyword_plan_service_pb2 - -_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( - 'google-ads', ).version - - -class KeywordPlanServiceClient(object): - """Service to manage keyword plans.""" - - SERVICE_ADDRESS = 'googleads.googleapis.com:443' - """The default address of the service.""" - - # The name of the interface for this client. This is the key used to - # find the method configuration in the client_config dictionary. - _INTERFACE_NAME = 'google.ads.googleads.v1.services.KeywordPlanService' - - @classmethod - def from_service_account_file(cls, filename, *args, **kwargs): - """Creates an instance of this client using the provided credentials - file. - - Args: - filename (str): The path to the service account private key json - file. - args: Additional arguments to pass to the constructor. - kwargs: Additional arguments to pass to the constructor. - - Returns: - KeywordPlanServiceClient: The constructed client. - """ - credentials = service_account.Credentials.from_service_account_file( - filename) - kwargs['credentials'] = credentials - return cls(*args, **kwargs) - - from_service_account_json = from_service_account_file - - @classmethod - def keyword_plan_path(cls, customer, keyword_plan): - """Return a fully-qualified keyword_plan string.""" - return google.api_core.path_template.expand( - 'customers/{customer}/keywordPlans/{keyword_plan}', - customer=customer, - keyword_plan=keyword_plan, - ) - - def __init__(self, - transport=None, - channel=None, - credentials=None, - client_config=None, - client_info=None): - """Constructor. - - Args: - transport (Union[~.KeywordPlanServiceGrpcTransport, - Callable[[~.Credentials, type], ~.KeywordPlanServiceGrpcTransport]): A transport - instance, responsible for actually making the API calls. - The default transport uses the gRPC protocol. - This argument may also be a callable which returns a - transport instance. Callables will be sent the credentials - as the first argument and the default transport class as - the second argument. - channel (grpc.Channel): DEPRECATED. A ``Channel`` instance - through which to make calls. This argument is mutually exclusive - with ``credentials``; providing both will raise an exception. - credentials (google.auth.credentials.Credentials): The - authorization credentials to attach to requests. These - credentials identify this application to the service. If none - are specified, the client will attempt to ascertain the - credentials from the environment. - This argument is mutually exclusive with providing a - transport instance to ``transport``; doing so will raise - an exception. - client_config (dict): DEPRECATED. A dictionary of call options for - each method. If not specified, the default configuration is used. - client_info (google.api_core.gapic_v1.client_info.ClientInfo): - The client info used to send a user-agent string along with - API requests. If ``None``, then default info will be used. - Generally, you only need to set this if you're developing - your own client library. - """ - # Raise deprecation warnings for things we want to go away. - if client_config is not None: - warnings.warn( - 'The `client_config` argument is deprecated.', - PendingDeprecationWarning, - stacklevel=2) - else: - client_config = keyword_plan_service_client_config.config - - if channel: - warnings.warn( - 'The `channel` argument is deprecated; use ' - '`transport` instead.', - PendingDeprecationWarning, - stacklevel=2) - - # Instantiate the transport. - # The transport is responsible for handling serialization and - # deserialization and actually sending data to the service. - if transport: - if callable(transport): - self.transport = transport( - credentials=credentials, - default_class=keyword_plan_service_grpc_transport. - KeywordPlanServiceGrpcTransport, - ) - else: - if credentials: - raise ValueError( - 'Received both a transport instance and ' - 'credentials; these are mutually exclusive.') - self.transport = transport - else: - self.transport = keyword_plan_service_grpc_transport.KeywordPlanServiceGrpcTransport( - address=self.SERVICE_ADDRESS, - channel=channel, - credentials=credentials, - ) - - if client_info is None: - client_info = google.api_core.gapic_v1.client_info.ClientInfo( - gapic_version=_GAPIC_LIBRARY_VERSION, ) - else: - client_info.gapic_version = _GAPIC_LIBRARY_VERSION - self._client_info = client_info - - # Parse out the default settings for retry and timeout for each RPC - # from the client configuration. - # (Ordinarily, these are the defaults specified in the `*_config.py` - # file next to this one.) - self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( - client_config['interfaces'][self._INTERFACE_NAME], ) - - # Save a dictionary of cached API call functions. - # These are the actual callables which invoke the proper - # transport methods, wrapped with `wrap_method` to add retry, - # timeout, and the like. - self._inner_api_calls = {} - - # Service calls - def get_keyword_plan(self, - resource_name, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): - """ - Returns the requested plan in full detail. - - Args: - resource_name (str): The resource name of the plan to fetch. - retry (Optional[google.api_core.retry.Retry]): A retry object used - to retry requests. If ``None`` is specified, requests will not - be retried. - timeout (Optional[float]): The amount of time, in seconds, to wait - for the request to complete. Note that if ``retry`` is - specified, the timeout applies to each individual attempt. - metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata - that is provided to the method. - - Returns: - A :class:`~google.ads.googleads_v1.types.KeywordPlan` instance. - - Raises: - google.api_core.exceptions.GoogleAPICallError: If the request - failed for any reason. - google.api_core.exceptions.RetryError: If the request failed due - to a retryable error and retry attempts failed. - ValueError: If the parameters are invalid. - """ - # Wrap the transport method to add retry and timeout logic. - if 'get_keyword_plan' not in self._inner_api_calls: - self._inner_api_calls[ - 'get_keyword_plan'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.get_keyword_plan, - default_retry=self._method_configs['GetKeywordPlan'].retry, - default_timeout=self._method_configs['GetKeywordPlan']. - timeout, - client_info=self._client_info, - ) - - request = keyword_plan_service_pb2.GetKeywordPlanRequest( - resource_name=resource_name, ) - return self._inner_api_calls['get_keyword_plan']( - request, retry=retry, timeout=timeout, metadata=metadata) - - def mutate_keyword_plans(self, - customer_id, - operations, - partial_failure=None, - validate_only=None, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): - """ - Creates, updates, or removes keyword plans. Operation statuses are - returned. - - Args: - customer_id (str): The ID of the customer whose keyword plans are being modified. - operations (list[Union[dict, ~google.ads.googleads_v1.types.KeywordPlanOperation]]): The list of operations to perform on individual keyword plans. - - If a dict is provided, it must be of the same form as the protobuf - message :class:`~google.ads.googleads_v1.types.KeywordPlanOperation` - partial_failure (bool): If true, successful operations will be carried out and invalid - operations will return errors. If false, all operations will be carried - out in one transaction if and only if they are all valid. - Default is false. - validate_only (bool): If true, the request is validated but not executed. Only errors are - returned, not results. - retry (Optional[google.api_core.retry.Retry]): A retry object used - to retry requests. If ``None`` is specified, requests will not - be retried. - timeout (Optional[float]): The amount of time, in seconds, to wait - for the request to complete. Note that if ``retry`` is - specified, the timeout applies to each individual attempt. - metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata - that is provided to the method. - - Returns: - A :class:`~google.ads.googleads_v1.types.MutateKeywordPlansResponse` instance. - - Raises: - google.api_core.exceptions.GoogleAPICallError: If the request - failed for any reason. - google.api_core.exceptions.RetryError: If the request failed due - to a retryable error and retry attempts failed. - ValueError: If the parameters are invalid. - """ - # Wrap the transport method to add retry and timeout logic. - if 'mutate_keyword_plans' not in self._inner_api_calls: - self._inner_api_calls[ - 'mutate_keyword_plans'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.mutate_keyword_plans, - default_retry=self._method_configs['MutateKeywordPlans']. - retry, - default_timeout=self._method_configs['MutateKeywordPlans']. - timeout, - client_info=self._client_info, - ) - - request = keyword_plan_service_pb2.MutateKeywordPlansRequest( - customer_id=customer_id, - operations=operations, - partial_failure=partial_failure, - validate_only=validate_only, - ) - return self._inner_api_calls['mutate_keyword_plans']( - request, retry=retry, timeout=timeout, metadata=metadata) - - def generate_forecast_metrics( - self, - keyword_plan, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): - """ - Returns the requested Keyword Plan forecasts. - - Args: - keyword_plan (str): The resource name of the keyword plan to be forecasted. - retry (Optional[google.api_core.retry.Retry]): A retry object used - to retry requests. If ``None`` is specified, requests will not - be retried. - timeout (Optional[float]): The amount of time, in seconds, to wait - for the request to complete. Note that if ``retry`` is - specified, the timeout applies to each individual attempt. - metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata - that is provided to the method. - - Returns: - A :class:`~google.ads.googleads_v1.types.GenerateForecastMetricsResponse` instance. - - Raises: - google.api_core.exceptions.GoogleAPICallError: If the request - failed for any reason. - google.api_core.exceptions.RetryError: If the request failed due - to a retryable error and retry attempts failed. - ValueError: If the parameters are invalid. - """ - # Wrap the transport method to add retry and timeout logic. - if 'generate_forecast_metrics' not in self._inner_api_calls: - self._inner_api_calls[ - 'generate_forecast_metrics'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.generate_forecast_metrics, - default_retry=self. - _method_configs['GenerateForecastMetrics'].retry, - default_timeout=self. - _method_configs['GenerateForecastMetrics'].timeout, - client_info=self._client_info, - ) - - request = keyword_plan_service_pb2.GenerateForecastMetricsRequest( - keyword_plan=keyword_plan, ) - return self._inner_api_calls['generate_forecast_metrics']( - request, retry=retry, timeout=timeout, metadata=metadata) - - def generate_historical_metrics( - self, - keyword_plan, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): - """ - Returns the requested Keyword Plan historical metrics. - - Args: - keyword_plan (str): The resource name of the keyword plan of which historical metrics are - requested. - retry (Optional[google.api_core.retry.Retry]): A retry object used - to retry requests. If ``None`` is specified, requests will not - be retried. - timeout (Optional[float]): The amount of time, in seconds, to wait - for the request to complete. Note that if ``retry`` is - specified, the timeout applies to each individual attempt. - metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata - that is provided to the method. - - Returns: - A :class:`~google.ads.googleads_v1.types.GenerateHistoricalMetricsResponse` instance. - - Raises: - google.api_core.exceptions.GoogleAPICallError: If the request - failed for any reason. - google.api_core.exceptions.RetryError: If the request failed due - to a retryable error and retry attempts failed. - ValueError: If the parameters are invalid. - """ - # Wrap the transport method to add retry and timeout logic. - if 'generate_historical_metrics' not in self._inner_api_calls: - self._inner_api_calls[ - 'generate_historical_metrics'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.generate_historical_metrics, - default_retry=self. - _method_configs['GenerateHistoricalMetrics'].retry, - default_timeout=self. - _method_configs['GenerateHistoricalMetrics'].timeout, - client_info=self._client_info, - ) - - request = keyword_plan_service_pb2.GenerateHistoricalMetricsRequest( - keyword_plan=keyword_plan, ) - return self._inner_api_calls['generate_historical_metrics']( - request, retry=retry, timeout=timeout, metadata=metadata) diff --git a/google/ads/google_ads/v1/services/keyword_plan_service_client_config.py b/google/ads/google_ads/v1/services/keyword_plan_service_client_config.py deleted file mode 100644 index c9a5737a0..000000000 --- a/google/ads/google_ads/v1/services/keyword_plan_service_client_config.py +++ /dev/null @@ -1,43 +0,0 @@ -config = { - "interfaces": { - "google.ads.googleads.v1.services.KeywordPlanService": { - "retry_codes": { - "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], - "non_idempotent": [] - }, - "retry_params": { - "default": { - "initial_retry_delay_millis": 5000, - "retry_delay_multiplier": 1.3, - "max_retry_delay_millis": 60000, - "initial_rpc_timeout_millis": 3600000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 3600000, - "total_timeout_millis": 3600000 - } - }, - "methods": { - "GetKeywordPlan": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default" - }, - "MutateKeywordPlans": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default" - }, - "GenerateForecastMetrics": { - "timeout_millis": 600000, - "retry_codes_name": "idempotent", - "retry_params_name": "default" - }, - "GenerateHistoricalMetrics": { - "timeout_millis": 600000, - "retry_codes_name": "idempotent", - "retry_params_name": "default" - } - } - } - } -} diff --git a/google/ads/google_ads/v1/services/keyword_view_service_client_config.py b/google/ads/google_ads/v1/services/keyword_view_service_client_config.py deleted file mode 100644 index 3d1db2165..000000000 --- a/google/ads/google_ads/v1/services/keyword_view_service_client_config.py +++ /dev/null @@ -1,28 +0,0 @@ -config = { - "interfaces": { - "google.ads.googleads.v1.services.KeywordViewService": { - "retry_codes": { - "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], - "non_idempotent": [] - }, - "retry_params": { - "default": { - "initial_retry_delay_millis": 5000, - "retry_delay_multiplier": 1.3, - "max_retry_delay_millis": 60000, - "initial_rpc_timeout_millis": 3600000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 3600000, - "total_timeout_millis": 3600000 - } - }, - "methods": { - "GetKeywordView": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default" - } - } - } - } -} diff --git a/google/ads/google_ads/v1/services/label_service_client.py b/google/ads/google_ads/v1/services/label_service_client.py deleted file mode 100644 index 807fa5f3b..000000000 --- a/google/ads/google_ads/v1/services/label_service_client.py +++ /dev/null @@ -1,276 +0,0 @@ -# -*- coding: utf-8 -*- -# -# 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. -"""Accesses the google.ads.googleads.v1.services LabelService API.""" - -import pkg_resources -import warnings - -from google.oauth2 import service_account -import google.api_core.gapic_v1.client_info -import google.api_core.gapic_v1.config -import google.api_core.gapic_v1.method -import google.api_core.grpc_helpers -import google.api_core.path_template - -from google.ads.google_ads.v1.services import label_service_client_config -from google.ads.google_ads.v1.services.transports import label_service_grpc_transport -from google.ads.google_ads.v1.proto.services import label_service_pb2 - -_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( - 'google-ads', ).version - - -class LabelServiceClient(object): - """Service to manage labels.""" - - SERVICE_ADDRESS = 'googleads.googleapis.com:443' - """The default address of the service.""" - - # The name of the interface for this client. This is the key used to - # find the method configuration in the client_config dictionary. - _INTERFACE_NAME = 'google.ads.googleads.v1.services.LabelService' - - @classmethod - def from_service_account_file(cls, filename, *args, **kwargs): - """Creates an instance of this client using the provided credentials - file. - - Args: - filename (str): The path to the service account private key json - file. - args: Additional arguments to pass to the constructor. - kwargs: Additional arguments to pass to the constructor. - - Returns: - LabelServiceClient: The constructed client. - """ - credentials = service_account.Credentials.from_service_account_file( - filename) - kwargs['credentials'] = credentials - return cls(*args, **kwargs) - - from_service_account_json = from_service_account_file - - @classmethod - def label_path(cls, customer, label): - """Return a fully-qualified label string.""" - return google.api_core.path_template.expand( - 'customers/{customer}/labels/{label}', - customer=customer, - label=label, - ) - - def __init__(self, - transport=None, - channel=None, - credentials=None, - client_config=None, - client_info=None): - """Constructor. - - Args: - transport (Union[~.LabelServiceGrpcTransport, - Callable[[~.Credentials, type], ~.LabelServiceGrpcTransport]): A transport - instance, responsible for actually making the API calls. - The default transport uses the gRPC protocol. - This argument may also be a callable which returns a - transport instance. Callables will be sent the credentials - as the first argument and the default transport class as - the second argument. - channel (grpc.Channel): DEPRECATED. A ``Channel`` instance - through which to make calls. This argument is mutually exclusive - with ``credentials``; providing both will raise an exception. - credentials (google.auth.credentials.Credentials): The - authorization credentials to attach to requests. These - credentials identify this application to the service. If none - are specified, the client will attempt to ascertain the - credentials from the environment. - This argument is mutually exclusive with providing a - transport instance to ``transport``; doing so will raise - an exception. - client_config (dict): DEPRECATED. A dictionary of call options for - each method. If not specified, the default configuration is used. - client_info (google.api_core.gapic_v1.client_info.ClientInfo): - The client info used to send a user-agent string along with - API requests. If ``None``, then default info will be used. - Generally, you only need to set this if you're developing - your own client library. - """ - # Raise deprecation warnings for things we want to go away. - if client_config is not None: - warnings.warn( - 'The `client_config` argument is deprecated.', - PendingDeprecationWarning, - stacklevel=2) - else: - client_config = label_service_client_config.config - - if channel: - warnings.warn( - 'The `channel` argument is deprecated; use ' - '`transport` instead.', - PendingDeprecationWarning, - stacklevel=2) - - # Instantiate the transport. - # The transport is responsible for handling serialization and - # deserialization and actually sending data to the service. - if transport: - if callable(transport): - self.transport = transport( - credentials=credentials, - default_class=label_service_grpc_transport. - LabelServiceGrpcTransport, - ) - else: - if credentials: - raise ValueError( - 'Received both a transport instance and ' - 'credentials; these are mutually exclusive.') - self.transport = transport - else: - self.transport = label_service_grpc_transport.LabelServiceGrpcTransport( - address=self.SERVICE_ADDRESS, - channel=channel, - credentials=credentials, - ) - - if client_info is None: - client_info = google.api_core.gapic_v1.client_info.ClientInfo( - gapic_version=_GAPIC_LIBRARY_VERSION, ) - else: - client_info.gapic_version = _GAPIC_LIBRARY_VERSION - self._client_info = client_info - - # Parse out the default settings for retry and timeout for each RPC - # from the client configuration. - # (Ordinarily, these are the defaults specified in the `*_config.py` - # file next to this one.) - self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( - client_config['interfaces'][self._INTERFACE_NAME], ) - - # Save a dictionary of cached API call functions. - # These are the actual callables which invoke the proper - # transport methods, wrapped with `wrap_method` to add retry, - # timeout, and the like. - self._inner_api_calls = {} - - # Service calls - def get_label(self, - resource_name, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): - """ - Returns the requested label in full detail. - - Args: - resource_name (str): The resource name of the label to fetch. - retry (Optional[google.api_core.retry.Retry]): A retry object used - to retry requests. If ``None`` is specified, requests will not - be retried. - timeout (Optional[float]): The amount of time, in seconds, to wait - for the request to complete. Note that if ``retry`` is - specified, the timeout applies to each individual attempt. - metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata - that is provided to the method. - - Returns: - A :class:`~google.ads.googleads_v1.types.Label` instance. - - Raises: - google.api_core.exceptions.GoogleAPICallError: If the request - failed for any reason. - google.api_core.exceptions.RetryError: If the request failed due - to a retryable error and retry attempts failed. - ValueError: If the parameters are invalid. - """ - # Wrap the transport method to add retry and timeout logic. - if 'get_label' not in self._inner_api_calls: - self._inner_api_calls[ - 'get_label'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.get_label, - default_retry=self._method_configs['GetLabel'].retry, - default_timeout=self._method_configs['GetLabel'].timeout, - client_info=self._client_info, - ) - - request = label_service_pb2.GetLabelRequest( - resource_name=resource_name, ) - return self._inner_api_calls['get_label']( - request, retry=retry, timeout=timeout, metadata=metadata) - - def mutate_labels(self, - customer_id, - operations, - partial_failure=None, - validate_only=None, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): - """ - Creates, updates, or removes labels. Operation statuses are returned. - - Args: - customer_id (str): ID of the customer whose labels are being modified. - operations (list[Union[dict, ~google.ads.googleads_v1.types.LabelOperation]]): The list of operations to perform on labels. - - If a dict is provided, it must be of the same form as the protobuf - message :class:`~google.ads.googleads_v1.types.LabelOperation` - partial_failure (bool): If true, successful operations will be carried out and invalid - operations will return errors. If false, all operations will be carried - out in one transaction if and only if they are all valid. - Default is false. - validate_only (bool): If true, the request is validated but not executed. Only errors are - returned, not results. - retry (Optional[google.api_core.retry.Retry]): A retry object used - to retry requests. If ``None`` is specified, requests will not - be retried. - timeout (Optional[float]): The amount of time, in seconds, to wait - for the request to complete. Note that if ``retry`` is - specified, the timeout applies to each individual attempt. - metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata - that is provided to the method. - - Returns: - A :class:`~google.ads.googleads_v1.types.MutateLabelsResponse` instance. - - Raises: - google.api_core.exceptions.GoogleAPICallError: If the request - failed for any reason. - google.api_core.exceptions.RetryError: If the request failed due - to a retryable error and retry attempts failed. - ValueError: If the parameters are invalid. - """ - # Wrap the transport method to add retry and timeout logic. - if 'mutate_labels' not in self._inner_api_calls: - self._inner_api_calls[ - 'mutate_labels'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.mutate_labels, - default_retry=self._method_configs['MutateLabels'].retry, - default_timeout=self._method_configs['MutateLabels']. - timeout, - client_info=self._client_info, - ) - - request = label_service_pb2.MutateLabelsRequest( - customer_id=customer_id, - operations=operations, - partial_failure=partial_failure, - validate_only=validate_only, - ) - return self._inner_api_calls['mutate_labels']( - request, retry=retry, timeout=timeout, metadata=metadata) diff --git a/google/ads/google_ads/v1/services/label_service_client_config.py b/google/ads/google_ads/v1/services/label_service_client_config.py deleted file mode 100644 index f20aac5c6..000000000 --- a/google/ads/google_ads/v1/services/label_service_client_config.py +++ /dev/null @@ -1,33 +0,0 @@ -config = { - "interfaces": { - "google.ads.googleads.v1.services.LabelService": { - "retry_codes": { - "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], - "non_idempotent": [] - }, - "retry_params": { - "default": { - "initial_retry_delay_millis": 5000, - "retry_delay_multiplier": 1.3, - "max_retry_delay_millis": 60000, - "initial_rpc_timeout_millis": 3600000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 3600000, - "total_timeout_millis": 3600000 - } - }, - "methods": { - "GetLabel": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default" - }, - "MutateLabels": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default" - } - } - } - } -} diff --git a/google/ads/google_ads/v1/services/landing_page_view_service_client_config.py b/google/ads/google_ads/v1/services/landing_page_view_service_client_config.py deleted file mode 100644 index cb5078fb2..000000000 --- a/google/ads/google_ads/v1/services/landing_page_view_service_client_config.py +++ /dev/null @@ -1,28 +0,0 @@ -config = { - "interfaces": { - "google.ads.googleads.v1.services.LandingPageViewService": { - "retry_codes": { - "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], - "non_idempotent": [] - }, - "retry_params": { - "default": { - "initial_retry_delay_millis": 5000, - "retry_delay_multiplier": 1.3, - "max_retry_delay_millis": 60000, - "initial_rpc_timeout_millis": 3600000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 3600000, - "total_timeout_millis": 3600000 - } - }, - "methods": { - "GetLandingPageView": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default" - } - } - } - } -} diff --git a/google/ads/google_ads/v1/services/language_constant_service_client_config.py b/google/ads/google_ads/v1/services/language_constant_service_client_config.py deleted file mode 100644 index 33db59f75..000000000 --- a/google/ads/google_ads/v1/services/language_constant_service_client_config.py +++ /dev/null @@ -1,28 +0,0 @@ -config = { - "interfaces": { - "google.ads.googleads.v1.services.LanguageConstantService": { - "retry_codes": { - "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], - "non_idempotent": [] - }, - "retry_params": { - "default": { - "initial_retry_delay_millis": 5000, - "retry_delay_multiplier": 1.3, - "max_retry_delay_millis": 60000, - "initial_rpc_timeout_millis": 3600000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 3600000, - "total_timeout_millis": 3600000 - } - }, - "methods": { - "GetLanguageConstant": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default" - } - } - } - } -} diff --git a/google/ads/google_ads/v1/services/location_view_service_client_config.py b/google/ads/google_ads/v1/services/location_view_service_client_config.py deleted file mode 100644 index 7888ae21c..000000000 --- a/google/ads/google_ads/v1/services/location_view_service_client_config.py +++ /dev/null @@ -1,28 +0,0 @@ -config = { - "interfaces": { - "google.ads.googleads.v1.services.LocationViewService": { - "retry_codes": { - "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], - "non_idempotent": [] - }, - "retry_params": { - "default": { - "initial_retry_delay_millis": 5000, - "retry_delay_multiplier": 1.3, - "max_retry_delay_millis": 60000, - "initial_rpc_timeout_millis": 3600000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 3600000, - "total_timeout_millis": 3600000 - } - }, - "methods": { - "GetLocationView": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default" - } - } - } - } -} diff --git a/google/ads/google_ads/v1/services/managed_placement_view_service_client_config.py b/google/ads/google_ads/v1/services/managed_placement_view_service_client_config.py deleted file mode 100644 index e2cc34d90..000000000 --- a/google/ads/google_ads/v1/services/managed_placement_view_service_client_config.py +++ /dev/null @@ -1,28 +0,0 @@ -config = { - "interfaces": { - "google.ads.googleads.v1.services.ManagedPlacementViewService": { - "retry_codes": { - "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], - "non_idempotent": [] - }, - "retry_params": { - "default": { - "initial_retry_delay_millis": 5000, - "retry_delay_multiplier": 1.3, - "max_retry_delay_millis": 60000, - "initial_rpc_timeout_millis": 3600000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 3600000, - "total_timeout_millis": 3600000 - } - }, - "methods": { - "GetManagedPlacementView": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default" - } - } - } - } -} diff --git a/google/ads/google_ads/v1/services/media_file_service_client.py b/google/ads/google_ads/v1/services/media_file_service_client.py deleted file mode 100644 index 52d497d72..000000000 --- a/google/ads/google_ads/v1/services/media_file_service_client.py +++ /dev/null @@ -1,278 +0,0 @@ -# -*- coding: utf-8 -*- -# -# 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. -"""Accesses the google.ads.googleads.v1.services MediaFileService API.""" - -import pkg_resources -import warnings - -from google.oauth2 import service_account -import google.api_core.gapic_v1.client_info -import google.api_core.gapic_v1.config -import google.api_core.gapic_v1.method -import google.api_core.grpc_helpers -import google.api_core.path_template - -from google.ads.google_ads.v1.services import media_file_service_client_config -from google.ads.google_ads.v1.services.transports import media_file_service_grpc_transport -from google.ads.google_ads.v1.proto.services import media_file_service_pb2 - -_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( - 'google-ads', ).version - - -class MediaFileServiceClient(object): - """Service to manage media files.""" - - SERVICE_ADDRESS = 'googleads.googleapis.com:443' - """The default address of the service.""" - - # The name of the interface for this client. This is the key used to - # find the method configuration in the client_config dictionary. - _INTERFACE_NAME = 'google.ads.googleads.v1.services.MediaFileService' - - @classmethod - def from_service_account_file(cls, filename, *args, **kwargs): - """Creates an instance of this client using the provided credentials - file. - - Args: - filename (str): The path to the service account private key json - file. - args: Additional arguments to pass to the constructor. - kwargs: Additional arguments to pass to the constructor. - - Returns: - MediaFileServiceClient: The constructed client. - """ - credentials = service_account.Credentials.from_service_account_file( - filename) - kwargs['credentials'] = credentials - return cls(*args, **kwargs) - - from_service_account_json = from_service_account_file - - @classmethod - def media_file_path(cls, customer, media_file): - """Return a fully-qualified media_file string.""" - return google.api_core.path_template.expand( - 'customers/{customer}/mediaFiles/{media_file}', - customer=customer, - media_file=media_file, - ) - - def __init__(self, - transport=None, - channel=None, - credentials=None, - client_config=None, - client_info=None): - """Constructor. - - Args: - transport (Union[~.MediaFileServiceGrpcTransport, - Callable[[~.Credentials, type], ~.MediaFileServiceGrpcTransport]): A transport - instance, responsible for actually making the API calls. - The default transport uses the gRPC protocol. - This argument may also be a callable which returns a - transport instance. Callables will be sent the credentials - as the first argument and the default transport class as - the second argument. - channel (grpc.Channel): DEPRECATED. A ``Channel`` instance - through which to make calls. This argument is mutually exclusive - with ``credentials``; providing both will raise an exception. - credentials (google.auth.credentials.Credentials): The - authorization credentials to attach to requests. These - credentials identify this application to the service. If none - are specified, the client will attempt to ascertain the - credentials from the environment. - This argument is mutually exclusive with providing a - transport instance to ``transport``; doing so will raise - an exception. - client_config (dict): DEPRECATED. A dictionary of call options for - each method. If not specified, the default configuration is used. - client_info (google.api_core.gapic_v1.client_info.ClientInfo): - The client info used to send a user-agent string along with - API requests. If ``None``, then default info will be used. - Generally, you only need to set this if you're developing - your own client library. - """ - # Raise deprecation warnings for things we want to go away. - if client_config is not None: - warnings.warn( - 'The `client_config` argument is deprecated.', - PendingDeprecationWarning, - stacklevel=2) - else: - client_config = media_file_service_client_config.config - - if channel: - warnings.warn( - 'The `channel` argument is deprecated; use ' - '`transport` instead.', - PendingDeprecationWarning, - stacklevel=2) - - # Instantiate the transport. - # The transport is responsible for handling serialization and - # deserialization and actually sending data to the service. - if transport: - if callable(transport): - self.transport = transport( - credentials=credentials, - default_class=media_file_service_grpc_transport. - MediaFileServiceGrpcTransport, - ) - else: - if credentials: - raise ValueError( - 'Received both a transport instance and ' - 'credentials; these are mutually exclusive.') - self.transport = transport - else: - self.transport = media_file_service_grpc_transport.MediaFileServiceGrpcTransport( - address=self.SERVICE_ADDRESS, - channel=channel, - credentials=credentials, - ) - - if client_info is None: - client_info = google.api_core.gapic_v1.client_info.ClientInfo( - gapic_version=_GAPIC_LIBRARY_VERSION, ) - else: - client_info.gapic_version = _GAPIC_LIBRARY_VERSION - self._client_info = client_info - - # Parse out the default settings for retry and timeout for each RPC - # from the client configuration. - # (Ordinarily, these are the defaults specified in the `*_config.py` - # file next to this one.) - self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( - client_config['interfaces'][self._INTERFACE_NAME], ) - - # Save a dictionary of cached API call functions. - # These are the actual callables which invoke the proper - # transport methods, wrapped with `wrap_method` to add retry, - # timeout, and the like. - self._inner_api_calls = {} - - # Service calls - def get_media_file(self, - resource_name, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): - """ - Returns the requested media file in full detail. - - Args: - resource_name (str): The resource name of the media file to fetch. - retry (Optional[google.api_core.retry.Retry]): A retry object used - to retry requests. If ``None`` is specified, requests will not - be retried. - timeout (Optional[float]): The amount of time, in seconds, to wait - for the request to complete. Note that if ``retry`` is - specified, the timeout applies to each individual attempt. - metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata - that is provided to the method. - - Returns: - A :class:`~google.ads.googleads_v1.types.MediaFile` instance. - - Raises: - google.api_core.exceptions.GoogleAPICallError: If the request - failed for any reason. - google.api_core.exceptions.RetryError: If the request failed due - to a retryable error and retry attempts failed. - ValueError: If the parameters are invalid. - """ - # Wrap the transport method to add retry and timeout logic. - if 'get_media_file' not in self._inner_api_calls: - self._inner_api_calls[ - 'get_media_file'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.get_media_file, - default_retry=self._method_configs['GetMediaFile'].retry, - default_timeout=self._method_configs['GetMediaFile']. - timeout, - client_info=self._client_info, - ) - - request = media_file_service_pb2.GetMediaFileRequest( - resource_name=resource_name, ) - return self._inner_api_calls['get_media_file']( - request, retry=retry, timeout=timeout, metadata=metadata) - - def mutate_media_files(self, - customer_id, - operations, - partial_failure=None, - validate_only=None, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): - """ - Creates media files. Operation statuses are returned. - - Args: - customer_id (str): The ID of the customer whose media files are being modified. - operations (list[Union[dict, ~google.ads.googleads_v1.types.MediaFileOperation]]): The list of operations to perform on individual media file. - - If a dict is provided, it must be of the same form as the protobuf - message :class:`~google.ads.googleads_v1.types.MediaFileOperation` - partial_failure (bool): If true, successful operations will be carried out and invalid - operations will return errors. If false, all operations will be carried - out in one transaction if and only if they are all valid. - Default is false. - validate_only (bool): If true, the request is validated but not executed. Only errors are - returned, not results. - retry (Optional[google.api_core.retry.Retry]): A retry object used - to retry requests. If ``None`` is specified, requests will not - be retried. - timeout (Optional[float]): The amount of time, in seconds, to wait - for the request to complete. Note that if ``retry`` is - specified, the timeout applies to each individual attempt. - metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata - that is provided to the method. - - Returns: - A :class:`~google.ads.googleads_v1.types.MutateMediaFilesResponse` instance. - - Raises: - google.api_core.exceptions.GoogleAPICallError: If the request - failed for any reason. - google.api_core.exceptions.RetryError: If the request failed due - to a retryable error and retry attempts failed. - ValueError: If the parameters are invalid. - """ - # Wrap the transport method to add retry and timeout logic. - if 'mutate_media_files' not in self._inner_api_calls: - self._inner_api_calls[ - 'mutate_media_files'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.mutate_media_files, - default_retry=self._method_configs['MutateMediaFiles']. - retry, - default_timeout=self._method_configs['MutateMediaFiles']. - timeout, - client_info=self._client_info, - ) - - request = media_file_service_pb2.MutateMediaFilesRequest( - customer_id=customer_id, - operations=operations, - partial_failure=partial_failure, - validate_only=validate_only, - ) - return self._inner_api_calls['mutate_media_files']( - request, retry=retry, timeout=timeout, metadata=metadata) diff --git a/google/ads/google_ads/v1/services/media_file_service_client_config.py b/google/ads/google_ads/v1/services/media_file_service_client_config.py deleted file mode 100644 index fb5b9b44a..000000000 --- a/google/ads/google_ads/v1/services/media_file_service_client_config.py +++ /dev/null @@ -1,33 +0,0 @@ -config = { - "interfaces": { - "google.ads.googleads.v1.services.MediaFileService": { - "retry_codes": { - "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], - "non_idempotent": [] - }, - "retry_params": { - "default": { - "initial_retry_delay_millis": 5000, - "retry_delay_multiplier": 1.3, - "max_retry_delay_millis": 60000, - "initial_rpc_timeout_millis": 3600000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 3600000, - "total_timeout_millis": 3600000 - } - }, - "methods": { - "GetMediaFile": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default" - }, - "MutateMediaFiles": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default" - } - } - } - } -} diff --git a/google/ads/google_ads/v1/services/merchant_center_link_service_client.py b/google/ads/google_ads/v1/services/merchant_center_link_service_client.py deleted file mode 100644 index 2d69b667d..000000000 --- a/google/ads/google_ads/v1/services/merchant_center_link_service_client.py +++ /dev/null @@ -1,322 +0,0 @@ -# -*- coding: utf-8 -*- -# -# 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. -"""Accesses the google.ads.googleads.v1.services MerchantCenterLinkService API.""" - -import pkg_resources -import warnings - -from google.oauth2 import service_account -import google.api_core.gapic_v1.client_info -import google.api_core.gapic_v1.config -import google.api_core.gapic_v1.method -import google.api_core.grpc_helpers -import google.api_core.path_template - -from google.ads.google_ads.v1.services import merchant_center_link_service_client_config -from google.ads.google_ads.v1.services.transports import merchant_center_link_service_grpc_transport -from google.ads.google_ads.v1.proto.services import merchant_center_link_service_pb2 - -_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( - 'google-ads', ).version - - -class MerchantCenterLinkServiceClient(object): - """ - This service allows management of links between Google Ads and Google - Merchant Center. - """ - - SERVICE_ADDRESS = 'googleads.googleapis.com:443' - """The default address of the service.""" - - # The name of the interface for this client. This is the key used to - # find the method configuration in the client_config dictionary. - _INTERFACE_NAME = 'google.ads.googleads.v1.services.MerchantCenterLinkService' - - @classmethod - def from_service_account_file(cls, filename, *args, **kwargs): - """Creates an instance of this client using the provided credentials - file. - - Args: - filename (str): The path to the service account private key json - file. - args: Additional arguments to pass to the constructor. - kwargs: Additional arguments to pass to the constructor. - - Returns: - MerchantCenterLinkServiceClient: The constructed client. - """ - credentials = service_account.Credentials.from_service_account_file( - filename) - kwargs['credentials'] = credentials - return cls(*args, **kwargs) - - from_service_account_json = from_service_account_file - - @classmethod - def merchant_center_link_path(cls, customer, merchant_center_link): - """Return a fully-qualified merchant_center_link string.""" - return google.api_core.path_template.expand( - 'customers/{customer}/merchantCenterLinks/{merchant_center_link}', - customer=customer, - merchant_center_link=merchant_center_link, - ) - - def __init__(self, - transport=None, - channel=None, - credentials=None, - client_config=None, - client_info=None): - """Constructor. - - Args: - transport (Union[~.MerchantCenterLinkServiceGrpcTransport, - Callable[[~.Credentials, type], ~.MerchantCenterLinkServiceGrpcTransport]): A transport - instance, responsible for actually making the API calls. - The default transport uses the gRPC protocol. - This argument may also be a callable which returns a - transport instance. Callables will be sent the credentials - as the first argument and the default transport class as - the second argument. - channel (grpc.Channel): DEPRECATED. A ``Channel`` instance - through which to make calls. This argument is mutually exclusive - with ``credentials``; providing both will raise an exception. - credentials (google.auth.credentials.Credentials): The - authorization credentials to attach to requests. These - credentials identify this application to the service. If none - are specified, the client will attempt to ascertain the - credentials from the environment. - This argument is mutually exclusive with providing a - transport instance to ``transport``; doing so will raise - an exception. - client_config (dict): DEPRECATED. A dictionary of call options for - each method. If not specified, the default configuration is used. - client_info (google.api_core.gapic_v1.client_info.ClientInfo): - The client info used to send a user-agent string along with - API requests. If ``None``, then default info will be used. - Generally, you only need to set this if you're developing - your own client library. - """ - # Raise deprecation warnings for things we want to go away. - if client_config is not None: - warnings.warn( - 'The `client_config` argument is deprecated.', - PendingDeprecationWarning, - stacklevel=2) - else: - client_config = merchant_center_link_service_client_config.config - - if channel: - warnings.warn( - 'The `channel` argument is deprecated; use ' - '`transport` instead.', - PendingDeprecationWarning, - stacklevel=2) - - # Instantiate the transport. - # The transport is responsible for handling serialization and - # deserialization and actually sending data to the service. - if transport: - if callable(transport): - self.transport = transport( - credentials=credentials, - default_class=merchant_center_link_service_grpc_transport. - MerchantCenterLinkServiceGrpcTransport, - ) - else: - if credentials: - raise ValueError( - 'Received both a transport instance and ' - 'credentials; these are mutually exclusive.') - self.transport = transport - else: - self.transport = merchant_center_link_service_grpc_transport.MerchantCenterLinkServiceGrpcTransport( - address=self.SERVICE_ADDRESS, - channel=channel, - credentials=credentials, - ) - - if client_info is None: - client_info = google.api_core.gapic_v1.client_info.ClientInfo( - gapic_version=_GAPIC_LIBRARY_VERSION, ) - else: - client_info.gapic_version = _GAPIC_LIBRARY_VERSION - self._client_info = client_info - - # Parse out the default settings for retry and timeout for each RPC - # from the client configuration. - # (Ordinarily, these are the defaults specified in the `*_config.py` - # file next to this one.) - self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( - client_config['interfaces'][self._INTERFACE_NAME], ) - - # Save a dictionary of cached API call functions. - # These are the actual callables which invoke the proper - # transport methods, wrapped with `wrap_method` to add retry, - # timeout, and the like. - self._inner_api_calls = {} - - # Service calls - def list_merchant_center_links( - self, - customer_id, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): - """ - Returns Merchant Center links available tor this customer. - - Args: - customer_id (str): The ID of the customer onto which to apply the Merchant Center link list - operation. - retry (Optional[google.api_core.retry.Retry]): A retry object used - to retry requests. If ``None`` is specified, requests will not - be retried. - timeout (Optional[float]): The amount of time, in seconds, to wait - for the request to complete. Note that if ``retry`` is - specified, the timeout applies to each individual attempt. - metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata - that is provided to the method. - - Returns: - A :class:`~google.ads.googleads_v1.types.ListMerchantCenterLinksResponse` instance. - - Raises: - google.api_core.exceptions.GoogleAPICallError: If the request - failed for any reason. - google.api_core.exceptions.RetryError: If the request failed due - to a retryable error and retry attempts failed. - ValueError: If the parameters are invalid. - """ - # Wrap the transport method to add retry and timeout logic. - if 'list_merchant_center_links' not in self._inner_api_calls: - self._inner_api_calls[ - 'list_merchant_center_links'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.list_merchant_center_links, - default_retry=self. - _method_configs['ListMerchantCenterLinks'].retry, - default_timeout=self. - _method_configs['ListMerchantCenterLinks'].timeout, - client_info=self._client_info, - ) - - request = merchant_center_link_service_pb2.ListMerchantCenterLinksRequest( - customer_id=customer_id, ) - return self._inner_api_calls['list_merchant_center_links']( - request, retry=retry, timeout=timeout, metadata=metadata) - - def get_merchant_center_link( - self, - resource_name, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): - """ - Returns the Merchant Center link in full detail. - - Args: - resource_name (str): Resource name of the Merchant Center link. - retry (Optional[google.api_core.retry.Retry]): A retry object used - to retry requests. If ``None`` is specified, requests will not - be retried. - timeout (Optional[float]): The amount of time, in seconds, to wait - for the request to complete. Note that if ``retry`` is - specified, the timeout applies to each individual attempt. - metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata - that is provided to the method. - - Returns: - A :class:`~google.ads.googleads_v1.types.MerchantCenterLink` instance. - - Raises: - google.api_core.exceptions.GoogleAPICallError: If the request - failed for any reason. - google.api_core.exceptions.RetryError: If the request failed due - to a retryable error and retry attempts failed. - ValueError: If the parameters are invalid. - """ - # Wrap the transport method to add retry and timeout logic. - if 'get_merchant_center_link' not in self._inner_api_calls: - self._inner_api_calls[ - 'get_merchant_center_link'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.get_merchant_center_link, - default_retry=self. - _method_configs['GetMerchantCenterLink'].retry, - default_timeout=self. - _method_configs['GetMerchantCenterLink'].timeout, - client_info=self._client_info, - ) - - request = merchant_center_link_service_pb2.GetMerchantCenterLinkRequest( - resource_name=resource_name, ) - return self._inner_api_calls['get_merchant_center_link']( - request, retry=retry, timeout=timeout, metadata=metadata) - - def mutate_merchant_center_link( - self, - customer_id, - operation_, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): - """ - Updates status or removes a Merchant Center link. - - Args: - customer_id (str): The ID of the customer being modified. - operation_ (Union[dict, ~google.ads.googleads_v1.types.MerchantCenterLinkOperation]): The operation to perform on the link - - If a dict is provided, it must be of the same form as the protobuf - message :class:`~google.ads.googleads_v1.types.MerchantCenterLinkOperation` - retry (Optional[google.api_core.retry.Retry]): A retry object used - to retry requests. If ``None`` is specified, requests will not - be retried. - timeout (Optional[float]): The amount of time, in seconds, to wait - for the request to complete. Note that if ``retry`` is - specified, the timeout applies to each individual attempt. - metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata - that is provided to the method. - - Returns: - A :class:`~google.ads.googleads_v1.types.MutateMerchantCenterLinkResponse` instance. - - Raises: - google.api_core.exceptions.GoogleAPICallError: If the request - failed for any reason. - google.api_core.exceptions.RetryError: If the request failed due - to a retryable error and retry attempts failed. - ValueError: If the parameters are invalid. - """ - # Wrap the transport method to add retry and timeout logic. - if 'mutate_merchant_center_link' not in self._inner_api_calls: - self._inner_api_calls[ - 'mutate_merchant_center_link'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.mutate_merchant_center_link, - default_retry=self. - _method_configs['MutateMerchantCenterLink'].retry, - default_timeout=self. - _method_configs['MutateMerchantCenterLink'].timeout, - client_info=self._client_info, - ) - - request = merchant_center_link_service_pb2.MutateMerchantCenterLinkRequest( - customer_id=customer_id, - operation=operation_, - ) - return self._inner_api_calls['mutate_merchant_center_link']( - request, retry=retry, timeout=timeout, metadata=metadata) diff --git a/google/ads/google_ads/v1/services/merchant_center_link_service_client_config.py b/google/ads/google_ads/v1/services/merchant_center_link_service_client_config.py deleted file mode 100644 index 0a2dab237..000000000 --- a/google/ads/google_ads/v1/services/merchant_center_link_service_client_config.py +++ /dev/null @@ -1,38 +0,0 @@ -config = { - "interfaces": { - "google.ads.googleads.v1.services.MerchantCenterLinkService": { - "retry_codes": { - "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], - "non_idempotent": [] - }, - "retry_params": { - "default": { - "initial_retry_delay_millis": 5000, - "retry_delay_multiplier": 1.3, - "max_retry_delay_millis": 60000, - "initial_rpc_timeout_millis": 3600000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 3600000, - "total_timeout_millis": 3600000 - } - }, - "methods": { - "ListMerchantCenterLinks": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default" - }, - "GetMerchantCenterLink": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default" - }, - "MutateMerchantCenterLink": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default" - } - } - } - } -} diff --git a/google/ads/google_ads/v1/services/mobile_app_category_constant_service_client_config.py b/google/ads/google_ads/v1/services/mobile_app_category_constant_service_client_config.py deleted file mode 100644 index 279179851..000000000 --- a/google/ads/google_ads/v1/services/mobile_app_category_constant_service_client_config.py +++ /dev/null @@ -1,28 +0,0 @@ -config = { - "interfaces": { - "google.ads.googleads.v1.services.MobileAppCategoryConstantService": { - "retry_codes": { - "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], - "non_idempotent": [] - }, - "retry_params": { - "default": { - "initial_retry_delay_millis": 5000, - "retry_delay_multiplier": 1.3, - "max_retry_delay_millis": 60000, - "initial_rpc_timeout_millis": 3600000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 3600000, - "total_timeout_millis": 3600000 - } - }, - "methods": { - "GetMobileAppCategoryConstant": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default" - } - } - } - } -} diff --git a/google/ads/google_ads/v1/services/mobile_device_constant_service_client_config.py b/google/ads/google_ads/v1/services/mobile_device_constant_service_client_config.py deleted file mode 100644 index 88b519eff..000000000 --- a/google/ads/google_ads/v1/services/mobile_device_constant_service_client_config.py +++ /dev/null @@ -1,28 +0,0 @@ -config = { - "interfaces": { - "google.ads.googleads.v1.services.MobileDeviceConstantService": { - "retry_codes": { - "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], - "non_idempotent": [] - }, - "retry_params": { - "default": { - "initial_retry_delay_millis": 5000, - "retry_delay_multiplier": 1.3, - "max_retry_delay_millis": 60000, - "initial_rpc_timeout_millis": 3600000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 3600000, - "total_timeout_millis": 3600000 - } - }, - "methods": { - "GetMobileDeviceConstant": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default" - } - } - } - } -} diff --git a/google/ads/google_ads/v1/services/mutate_job_service_client.py b/google/ads/google_ads/v1/services/mutate_job_service_client.py deleted file mode 100644 index 544e983ee..000000000 --- a/google/ads/google_ads/v1/services/mutate_job_service_client.py +++ /dev/null @@ -1,462 +0,0 @@ -# -*- coding: utf-8 -*- -# -# 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. -"""Accesses the google.ads.googleads.v1.services MutateJobService API.""" - -import functools -import pkg_resources -import warnings - -from google.oauth2 import service_account -import google.api_core.gapic_v1.client_info -import google.api_core.gapic_v1.config -import google.api_core.gapic_v1.method -import google.api_core.grpc_helpers -import google.api_core.operation -import google.api_core.operations_v1 -import google.api_core.page_iterator -import google.api_core.path_template - -from google.ads.google_ads.v1.services import mutate_job_service_client_config -from google.ads.google_ads.v1.services.transports import mutate_job_service_grpc_transport -from google.ads.google_ads.v1.proto.resources import mutate_job_pb2 -from google.ads.google_ads.v1.proto.services import mutate_job_service_pb2 -from google.protobuf import empty_pb2 - -_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( - 'google-ads', ).version - - -class MutateJobServiceClient(object): - """Service to manage mutate jobs.""" - - SERVICE_ADDRESS = 'googleads.googleapis.com:443' - """The default address of the service.""" - - # The name of the interface for this client. This is the key used to - # find the method configuration in the client_config dictionary. - _INTERFACE_NAME = 'google.ads.googleads.v1.services.MutateJobService' - - @classmethod - def from_service_account_file(cls, filename, *args, **kwargs): - """Creates an instance of this client using the provided credentials - file. - - Args: - filename (str): The path to the service account private key json - file. - args: Additional arguments to pass to the constructor. - kwargs: Additional arguments to pass to the constructor. - - Returns: - MutateJobServiceClient: The constructed client. - """ - credentials = service_account.Credentials.from_service_account_file( - filename) - kwargs['credentials'] = credentials - return cls(*args, **kwargs) - - from_service_account_json = from_service_account_file - - @classmethod - def mutate_job_path(cls, customer, mutate_job): - """Return a fully-qualified mutate_job string.""" - return google.api_core.path_template.expand( - 'customers/{customer}/mutateJobs/{mutate_job}', - customer=customer, - mutate_job=mutate_job, - ) - - def __init__(self, - transport=None, - channel=None, - credentials=None, - client_config=None, - client_info=None): - """Constructor. - - Args: - transport (Union[~.MutateJobServiceGrpcTransport, - Callable[[~.Credentials, type], ~.MutateJobServiceGrpcTransport]): A transport - instance, responsible for actually making the API calls. - The default transport uses the gRPC protocol. - This argument may also be a callable which returns a - transport instance. Callables will be sent the credentials - as the first argument and the default transport class as - the second argument. - channel (grpc.Channel): DEPRECATED. A ``Channel`` instance - through which to make calls. This argument is mutually exclusive - with ``credentials``; providing both will raise an exception. - credentials (google.auth.credentials.Credentials): The - authorization credentials to attach to requests. These - credentials identify this application to the service. If none - are specified, the client will attempt to ascertain the - credentials from the environment. - This argument is mutually exclusive with providing a - transport instance to ``transport``; doing so will raise - an exception. - client_config (dict): DEPRECATED. A dictionary of call options for - each method. If not specified, the default configuration is used. - client_info (google.api_core.gapic_v1.client_info.ClientInfo): - The client info used to send a user-agent string along with - API requests. If ``None``, then default info will be used. - Generally, you only need to set this if you're developing - your own client library. - """ - # Raise deprecation warnings for things we want to go away. - if client_config is not None: - warnings.warn( - 'The `client_config` argument is deprecated.', - PendingDeprecationWarning, - stacklevel=2) - else: - client_config = mutate_job_service_client_config.config - - if channel: - warnings.warn( - 'The `channel` argument is deprecated; use ' - '`transport` instead.', - PendingDeprecationWarning, - stacklevel=2) - - # Instantiate the transport. - # The transport is responsible for handling serialization and - # deserialization and actually sending data to the service. - if transport: - if callable(transport): - self.transport = transport( - credentials=credentials, - default_class=mutate_job_service_grpc_transport. - MutateJobServiceGrpcTransport, - ) - else: - if credentials: - raise ValueError( - 'Received both a transport instance and ' - 'credentials; these are mutually exclusive.') - self.transport = transport - else: - self.transport = mutate_job_service_grpc_transport.MutateJobServiceGrpcTransport( - address=self.SERVICE_ADDRESS, - channel=channel, - credentials=credentials, - ) - - if client_info is None: - client_info = google.api_core.gapic_v1.client_info.ClientInfo( - gapic_version=_GAPIC_LIBRARY_VERSION, ) - else: - client_info.gapic_version = _GAPIC_LIBRARY_VERSION - self._client_info = client_info - - # Parse out the default settings for retry and timeout for each RPC - # from the client configuration. - # (Ordinarily, these are the defaults specified in the `*_config.py` - # file next to this one.) - self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( - client_config['interfaces'][self._INTERFACE_NAME], ) - - # Save a dictionary of cached API call functions. - # These are the actual callables which invoke the proper - # transport methods, wrapped with `wrap_method` to add retry, - # timeout, and the like. - self._inner_api_calls = {} - - # Service calls - def create_mutate_job(self, - customer_id, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): - """ - Creates a mutate job. - - Args: - customer_id (str): The ID of the customer for which to create a mutate job. - retry (Optional[google.api_core.retry.Retry]): A retry object used - to retry requests. If ``None`` is specified, requests will not - be retried. - timeout (Optional[float]): The amount of time, in seconds, to wait - for the request to complete. Note that if ``retry`` is - specified, the timeout applies to each individual attempt. - metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata - that is provided to the method. - - Returns: - A :class:`~google.ads.googleads_v1.types.CreateMutateJobResponse` instance. - - Raises: - google.api_core.exceptions.GoogleAPICallError: If the request - failed for any reason. - google.api_core.exceptions.RetryError: If the request failed due - to a retryable error and retry attempts failed. - ValueError: If the parameters are invalid. - """ - # Wrap the transport method to add retry and timeout logic. - if 'create_mutate_job' not in self._inner_api_calls: - self._inner_api_calls[ - 'create_mutate_job'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.create_mutate_job, - default_retry=self._method_configs['CreateMutateJob']. - retry, - default_timeout=self._method_configs['CreateMutateJob']. - timeout, - client_info=self._client_info, - ) - - request = mutate_job_service_pb2.CreateMutateJobRequest( - customer_id=customer_id, ) - return self._inner_api_calls['create_mutate_job']( - request, retry=retry, timeout=timeout, metadata=metadata) - - def get_mutate_job(self, - resource_name, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): - """ - Returns the mutate job. - - Args: - resource_name (str): The resource name of the MutateJob to get. - retry (Optional[google.api_core.retry.Retry]): A retry object used - to retry requests. If ``None`` is specified, requests will not - be retried. - timeout (Optional[float]): The amount of time, in seconds, to wait - for the request to complete. Note that if ``retry`` is - specified, the timeout applies to each individual attempt. - metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata - that is provided to the method. - - Returns: - A :class:`~google.ads.googleads_v1.types.MutateJob` instance. - - Raises: - google.api_core.exceptions.GoogleAPICallError: If the request - failed for any reason. - google.api_core.exceptions.RetryError: If the request failed due - to a retryable error and retry attempts failed. - ValueError: If the parameters are invalid. - """ - # Wrap the transport method to add retry and timeout logic. - if 'get_mutate_job' not in self._inner_api_calls: - self._inner_api_calls[ - 'get_mutate_job'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.get_mutate_job, - default_retry=self._method_configs['GetMutateJob'].retry, - default_timeout=self._method_configs['GetMutateJob']. - timeout, - client_info=self._client_info, - ) - - request = mutate_job_service_pb2.GetMutateJobRequest( - resource_name=resource_name, ) - return self._inner_api_calls['get_mutate_job']( - request, retry=retry, timeout=timeout, metadata=metadata) - - def list_mutate_job_results( - self, - resource_name, - page_size=None, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): - """ - Returns the results of the mutate job. The job must be done. - Supports standard list paging. - - Args: - resource_name (str): The resource name of the MutateJob whose results are being listed. - page_size (int): The maximum number of resources contained in the - underlying API response. If page streaming is performed per- - resource, this parameter does not affect the return value. If page - streaming is performed per-page, this determines the maximum number - of resources in a page. - retry (Optional[google.api_core.retry.Retry]): A retry object used - to retry requests. If ``None`` is specified, requests will not - be retried. - timeout (Optional[float]): The amount of time, in seconds, to wait - for the request to complete. Note that if ``retry`` is - specified, the timeout applies to each individual attempt. - metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata - that is provided to the method. - - Returns: - A :class:`~google.gax.PageIterator` instance. By default, this - is an iterable of :class:`~google.ads.googleads_v1.types.MutateJobResult` instances. - This object can also be configured to iterate over the pages - of the response through the `options` parameter. - - Raises: - google.api_core.exceptions.GoogleAPICallError: If the request - failed for any reason. - google.api_core.exceptions.RetryError: If the request failed due - to a retryable error and retry attempts failed. - ValueError: If the parameters are invalid. - """ - # Wrap the transport method to add retry and timeout logic. - if 'list_mutate_job_results' not in self._inner_api_calls: - self._inner_api_calls[ - 'list_mutate_job_results'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.list_mutate_job_results, - default_retry=self._method_configs['ListMutateJobResults']. - retry, - default_timeout=self. - _method_configs['ListMutateJobResults'].timeout, - client_info=self._client_info, - ) - - request = mutate_job_service_pb2.ListMutateJobResultsRequest( - resource_name=resource_name, - page_size=page_size, - ) - iterator = google.api_core.page_iterator.GRPCIterator( - client=None, - method=functools.partial( - self._inner_api_calls['list_mutate_job_results'], - retry=retry, - timeout=timeout, - metadata=metadata), - request=request, - items_field='results', - request_token_field='page_token', - response_token_field='next_page_token', - ) - return iterator - - def run_mutate_job(self, - resource_name, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): - """ - Runs the mutate job. - - The Operation.metadata field type is MutateJobMetadata. When finished, the - long running operation will not contain errors or a response. Instead, use - ListMutateJobResults to get the results of the job. - - Args: - resource_name (str): The resource name of the MutateJob to run. - retry (Optional[google.api_core.retry.Retry]): A retry object used - to retry requests. If ``None`` is specified, requests will not - be retried. - timeout (Optional[float]): The amount of time, in seconds, to wait - for the request to complete. Note that if ``retry`` is - specified, the timeout applies to each individual attempt. - metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata - that is provided to the method. - - Returns: - A :class:`~google.ads.googleads_v1.types._OperationFuture` instance. - - Raises: - google.api_core.exceptions.GoogleAPICallError: If the request - failed for any reason. - google.api_core.exceptions.RetryError: If the request failed due - to a retryable error and retry attempts failed. - ValueError: If the parameters are invalid. - """ - # Wrap the transport method to add retry and timeout logic. - if 'run_mutate_job' not in self._inner_api_calls: - self._inner_api_calls[ - 'run_mutate_job'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.run_mutate_job, - default_retry=self._method_configs['RunMutateJob'].retry, - default_timeout=self._method_configs['RunMutateJob']. - timeout, - client_info=self._client_info, - ) - - request = mutate_job_service_pb2.RunMutateJobRequest( - resource_name=resource_name, ) - operation = self._inner_api_calls['run_mutate_job']( - request, retry=retry, timeout=timeout, metadata=metadata) - return google.api_core.operation.from_gapic( - operation, - self.transport._operations_client, - empty_pb2.Empty, - metadata_type=mutate_job_pb2.MutateJob.MutateJobMetadata, - ) - - def add_mutate_job_operations( - self, - resource_name, - sequence_token, - mutate_operations, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): - """ - Add operations to the mutate job. - - Args: - resource_name (str): The resource name of the MutateJob. - sequence_token (str): A token used to enforce sequencing. - - The first AddMutateJobOperations request for a MutateJob should not set - sequence\_token. Subsequent requests must set sequence\_token to the - value of next\_sequence\_token received in the previous - AddMutateJobOperations response. - mutate_operations (list[Union[dict, ~google.ads.googleads_v1.types.MutateOperation]]): The list of mutates being added. - - Operations can use negative integers as temp ids to signify dependencies - between entities created in this MutateJob. For example, a customer with - id = 1234 can create a campaign and an ad group in that same campaign by - creating a campaign in the first operation with the resource name - explicitly set to "customers/1234/campaigns/-1", and creating an ad group - in the second operation with the campaign field also set to - "customers/1234/campaigns/-1". - - If a dict is provided, it must be of the same form as the protobuf - message :class:`~google.ads.googleads_v1.types.MutateOperation` - retry (Optional[google.api_core.retry.Retry]): A retry object used - to retry requests. If ``None`` is specified, requests will not - be retried. - timeout (Optional[float]): The amount of time, in seconds, to wait - for the request to complete. Note that if ``retry`` is - specified, the timeout applies to each individual attempt. - metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata - that is provided to the method. - - Returns: - A :class:`~google.ads.googleads_v1.types.AddMutateJobOperationsResponse` instance. - - Raises: - google.api_core.exceptions.GoogleAPICallError: If the request - failed for any reason. - google.api_core.exceptions.RetryError: If the request failed due - to a retryable error and retry attempts failed. - ValueError: If the parameters are invalid. - """ - # Wrap the transport method to add retry and timeout logic. - if 'add_mutate_job_operations' not in self._inner_api_calls: - self._inner_api_calls[ - 'add_mutate_job_operations'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.add_mutate_job_operations, - default_retry=self. - _method_configs['AddMutateJobOperations'].retry, - default_timeout=self. - _method_configs['AddMutateJobOperations'].timeout, - client_info=self._client_info, - ) - - request = mutate_job_service_pb2.AddMutateJobOperationsRequest( - resource_name=resource_name, - sequence_token=sequence_token, - mutate_operations=mutate_operations, - ) - return self._inner_api_calls['add_mutate_job_operations']( - request, retry=retry, timeout=timeout, metadata=metadata) diff --git a/google/ads/google_ads/v1/services/mutate_job_service_client_config.py b/google/ads/google_ads/v1/services/mutate_job_service_client_config.py deleted file mode 100644 index 18a26a97b..000000000 --- a/google/ads/google_ads/v1/services/mutate_job_service_client_config.py +++ /dev/null @@ -1,48 +0,0 @@ -config = { - "interfaces": { - "google.ads.googleads.v1.services.MutateJobService": { - "retry_codes": { - "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], - "non_idempotent": [] - }, - "retry_params": { - "default": { - "initial_retry_delay_millis": 5000, - "retry_delay_multiplier": 1.3, - "max_retry_delay_millis": 60000, - "initial_rpc_timeout_millis": 3600000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 3600000, - "total_timeout_millis": 3600000 - } - }, - "methods": { - "CreateMutateJob": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default" - }, - "GetMutateJob": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default" - }, - "ListMutateJobResults": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default" - }, - "RunMutateJob": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default" - }, - "AddMutateJobOperations": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default" - } - } - } - } -} diff --git a/google/ads/google_ads/v1/services/operating_system_version_constant_service_client_config.py b/google/ads/google_ads/v1/services/operating_system_version_constant_service_client_config.py deleted file mode 100644 index d3e0d9fe1..000000000 --- a/google/ads/google_ads/v1/services/operating_system_version_constant_service_client_config.py +++ /dev/null @@ -1,29 +0,0 @@ -config = { - "interfaces": { - "google.ads.googleads.v1.services.OperatingSystemVersionConstantService": - { - "retry_codes": { - "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], - "non_idempotent": [] - }, - "retry_params": { - "default": { - "initial_retry_delay_millis": 5000, - "retry_delay_multiplier": 1.3, - "max_retry_delay_millis": 60000, - "initial_rpc_timeout_millis": 3600000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 3600000, - "total_timeout_millis": 3600000 - } - }, - "methods": { - "GetOperatingSystemVersionConstant": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default" - } - } - } - } -} diff --git a/google/ads/google_ads/v1/services/paid_organic_search_term_view_service_client_config.py b/google/ads/google_ads/v1/services/paid_organic_search_term_view_service_client_config.py deleted file mode 100644 index e08d87ec3..000000000 --- a/google/ads/google_ads/v1/services/paid_organic_search_term_view_service_client_config.py +++ /dev/null @@ -1,28 +0,0 @@ -config = { - "interfaces": { - "google.ads.googleads.v1.services.PaidOrganicSearchTermViewService": { - "retry_codes": { - "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], - "non_idempotent": [] - }, - "retry_params": { - "default": { - "initial_retry_delay_millis": 5000, - "retry_delay_multiplier": 1.3, - "max_retry_delay_millis": 60000, - "initial_rpc_timeout_millis": 3600000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 3600000, - "total_timeout_millis": 3600000 - } - }, - "methods": { - "GetPaidOrganicSearchTermView": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default" - } - } - } - } -} diff --git a/google/ads/google_ads/v1/services/parental_status_view_service_client_config.py b/google/ads/google_ads/v1/services/parental_status_view_service_client_config.py deleted file mode 100644 index 26c097240..000000000 --- a/google/ads/google_ads/v1/services/parental_status_view_service_client_config.py +++ /dev/null @@ -1,28 +0,0 @@ -config = { - "interfaces": { - "google.ads.googleads.v1.services.ParentalStatusViewService": { - "retry_codes": { - "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], - "non_idempotent": [] - }, - "retry_params": { - "default": { - "initial_retry_delay_millis": 5000, - "retry_delay_multiplier": 1.3, - "max_retry_delay_millis": 60000, - "initial_rpc_timeout_millis": 3600000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 3600000, - "total_timeout_millis": 3600000 - } - }, - "methods": { - "GetParentalStatusView": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default" - } - } - } - } -} diff --git a/google/ads/google_ads/v1/services/payments_account_service_client.py b/google/ads/google_ads/v1/services/payments_account_service_client.py deleted file mode 100644 index 5f630c573..000000000 --- a/google/ads/google_ads/v1/services/payments_account_service_client.py +++ /dev/null @@ -1,211 +0,0 @@ -# -*- coding: utf-8 -*- -# -# 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. -"""Accesses the google.ads.googleads.v1.services PaymentsAccountService API.""" - -import pkg_resources -import warnings - -from google.oauth2 import service_account -import google.api_core.gapic_v1.client_info -import google.api_core.gapic_v1.config -import google.api_core.gapic_v1.method -import google.api_core.grpc_helpers - -from google.ads.google_ads.v1.services import payments_account_service_client_config -from google.ads.google_ads.v1.services.transports import payments_account_service_grpc_transport -from google.ads.google_ads.v1.proto.services import payments_account_service_pb2 - -_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( - 'google-ads', ).version - - -class PaymentsAccountServiceClient(object): - """ - Service to provide Payments accounts that can be used to set up consolidated - billing. - """ - - SERVICE_ADDRESS = 'googleads.googleapis.com:443' - """The default address of the service.""" - - # The name of the interface for this client. This is the key used to - # find the method configuration in the client_config dictionary. - _INTERFACE_NAME = 'google.ads.googleads.v1.services.PaymentsAccountService' - - @classmethod - def from_service_account_file(cls, filename, *args, **kwargs): - """Creates an instance of this client using the provided credentials - file. - - Args: - filename (str): The path to the service account private key json - file. - args: Additional arguments to pass to the constructor. - kwargs: Additional arguments to pass to the constructor. - - Returns: - PaymentsAccountServiceClient: The constructed client. - """ - credentials = service_account.Credentials.from_service_account_file( - filename) - kwargs['credentials'] = credentials - return cls(*args, **kwargs) - - from_service_account_json = from_service_account_file - - def __init__(self, - transport=None, - channel=None, - credentials=None, - client_config=None, - client_info=None): - """Constructor. - - Args: - transport (Union[~.PaymentsAccountServiceGrpcTransport, - Callable[[~.Credentials, type], ~.PaymentsAccountServiceGrpcTransport]): A transport - instance, responsible for actually making the API calls. - The default transport uses the gRPC protocol. - This argument may also be a callable which returns a - transport instance. Callables will be sent the credentials - as the first argument and the default transport class as - the second argument. - channel (grpc.Channel): DEPRECATED. A ``Channel`` instance - through which to make calls. This argument is mutually exclusive - with ``credentials``; providing both will raise an exception. - credentials (google.auth.credentials.Credentials): The - authorization credentials to attach to requests. These - credentials identify this application to the service. If none - are specified, the client will attempt to ascertain the - credentials from the environment. - This argument is mutually exclusive with providing a - transport instance to ``transport``; doing so will raise - an exception. - client_config (dict): DEPRECATED. A dictionary of call options for - each method. If not specified, the default configuration is used. - client_info (google.api_core.gapic_v1.client_info.ClientInfo): - The client info used to send a user-agent string along with - API requests. If ``None``, then default info will be used. - Generally, you only need to set this if you're developing - your own client library. - """ - # Raise deprecation warnings for things we want to go away. - if client_config is not None: - warnings.warn( - 'The `client_config` argument is deprecated.', - PendingDeprecationWarning, - stacklevel=2) - else: - client_config = payments_account_service_client_config.config - - if channel: - warnings.warn( - 'The `channel` argument is deprecated; use ' - '`transport` instead.', - PendingDeprecationWarning, - stacklevel=2) - - # Instantiate the transport. - # The transport is responsible for handling serialization and - # deserialization and actually sending data to the service. - if transport: - if callable(transport): - self.transport = transport( - credentials=credentials, - default_class=payments_account_service_grpc_transport. - PaymentsAccountServiceGrpcTransport, - ) - else: - if credentials: - raise ValueError( - 'Received both a transport instance and ' - 'credentials; these are mutually exclusive.') - self.transport = transport - else: - self.transport = payments_account_service_grpc_transport.PaymentsAccountServiceGrpcTransport( - address=self.SERVICE_ADDRESS, - channel=channel, - credentials=credentials, - ) - - if client_info is None: - client_info = google.api_core.gapic_v1.client_info.ClientInfo( - gapic_version=_GAPIC_LIBRARY_VERSION, ) - else: - client_info.gapic_version = _GAPIC_LIBRARY_VERSION - self._client_info = client_info - - # Parse out the default settings for retry and timeout for each RPC - # from the client configuration. - # (Ordinarily, these are the defaults specified in the `*_config.py` - # file next to this one.) - self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( - client_config['interfaces'][self._INTERFACE_NAME], ) - - # Save a dictionary of cached API call functions. - # These are the actual callables which invoke the proper - # transport methods, wrapped with `wrap_method` to add retry, - # timeout, and the like. - self._inner_api_calls = {} - - # Service calls - def list_payments_accounts(self, - customer_id, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): - """ - Returns all Payments accounts associated with all managers - between the login customer ID and specified serving customer in the - hierarchy, inclusive. - - Args: - customer_id (str): The ID of the customer to apply the PaymentsAccount list operation to. - retry (Optional[google.api_core.retry.Retry]): A retry object used - to retry requests. If ``None`` is specified, requests will not - be retried. - timeout (Optional[float]): The amount of time, in seconds, to wait - for the request to complete. Note that if ``retry`` is - specified, the timeout applies to each individual attempt. - metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata - that is provided to the method. - - Returns: - A :class:`~google.ads.googleads_v1.types.ListPaymentsAccountsResponse` instance. - - Raises: - google.api_core.exceptions.GoogleAPICallError: If the request - failed for any reason. - google.api_core.exceptions.RetryError: If the request failed due - to a retryable error and retry attempts failed. - ValueError: If the parameters are invalid. - """ - # Wrap the transport method to add retry and timeout logic. - if 'list_payments_accounts' not in self._inner_api_calls: - self._inner_api_calls[ - 'list_payments_accounts'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.list_payments_accounts, - default_retry=self._method_configs['ListPaymentsAccounts']. - retry, - default_timeout=self. - _method_configs['ListPaymentsAccounts'].timeout, - client_info=self._client_info, - ) - - request = payments_account_service_pb2.ListPaymentsAccountsRequest( - customer_id=customer_id, ) - return self._inner_api_calls['list_payments_accounts']( - request, retry=retry, timeout=timeout, metadata=metadata) diff --git a/google/ads/google_ads/v1/services/payments_account_service_client_config.py b/google/ads/google_ads/v1/services/payments_account_service_client_config.py deleted file mode 100644 index fd8e3399a..000000000 --- a/google/ads/google_ads/v1/services/payments_account_service_client_config.py +++ /dev/null @@ -1,28 +0,0 @@ -config = { - "interfaces": { - "google.ads.googleads.v1.services.PaymentsAccountService": { - "retry_codes": { - "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], - "non_idempotent": [] - }, - "retry_params": { - "default": { - "initial_retry_delay_millis": 5000, - "retry_delay_multiplier": 1.3, - "max_retry_delay_millis": 60000, - "initial_rpc_timeout_millis": 3600000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 3600000, - "total_timeout_millis": 3600000 - } - }, - "methods": { - "ListPaymentsAccounts": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default" - } - } - } - } -} diff --git a/google/ads/google_ads/v1/services/product_bidding_category_constant_service_client_config.py b/google/ads/google_ads/v1/services/product_bidding_category_constant_service_client_config.py deleted file mode 100644 index b1b6e3384..000000000 --- a/google/ads/google_ads/v1/services/product_bidding_category_constant_service_client_config.py +++ /dev/null @@ -1,29 +0,0 @@ -config = { - "interfaces": { - "google.ads.googleads.v1.services.ProductBiddingCategoryConstantService": - { - "retry_codes": { - "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], - "non_idempotent": [] - }, - "retry_params": { - "default": { - "initial_retry_delay_millis": 5000, - "retry_delay_multiplier": 1.3, - "max_retry_delay_millis": 60000, - "initial_rpc_timeout_millis": 3600000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 3600000, - "total_timeout_millis": 3600000 - } - }, - "methods": { - "GetProductBiddingCategoryConstant": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default" - } - } - } - } -} diff --git a/google/ads/google_ads/v1/services/product_group_view_service_client_config.py b/google/ads/google_ads/v1/services/product_group_view_service_client_config.py deleted file mode 100644 index c058917c6..000000000 --- a/google/ads/google_ads/v1/services/product_group_view_service_client_config.py +++ /dev/null @@ -1,28 +0,0 @@ -config = { - "interfaces": { - "google.ads.googleads.v1.services.ProductGroupViewService": { - "retry_codes": { - "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], - "non_idempotent": [] - }, - "retry_params": { - "default": { - "initial_retry_delay_millis": 5000, - "retry_delay_multiplier": 1.3, - "max_retry_delay_millis": 60000, - "initial_rpc_timeout_millis": 3600000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 3600000, - "total_timeout_millis": 3600000 - } - }, - "methods": { - "GetProductGroupView": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default" - } - } - } - } -} diff --git a/google/ads/google_ads/v1/services/recommendation_service_client.py b/google/ads/google_ads/v1/services/recommendation_service_client.py deleted file mode 100644 index 3ce9bba63..000000000 --- a/google/ads/google_ads/v1/services/recommendation_service_client.py +++ /dev/null @@ -1,338 +0,0 @@ -# -*- coding: utf-8 -*- -# -# 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. -"""Accesses the google.ads.googleads.v1.services RecommendationService API.""" - -import pkg_resources -import warnings - -from google.oauth2 import service_account -import google.api_core.gapic_v1.client_info -import google.api_core.gapic_v1.config -import google.api_core.gapic_v1.method -import google.api_core.grpc_helpers -import google.api_core.path_template - -from google.ads.google_ads.v1.services import recommendation_service_client_config -from google.ads.google_ads.v1.services.transports import recommendation_service_grpc_transport -from google.ads.google_ads.v1.proto.services import recommendation_service_pb2 - -_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( - 'google-ads', ).version - - -class RecommendationServiceClient(object): - """Service to manage recommendations.""" - - SERVICE_ADDRESS = 'googleads.googleapis.com:443' - """The default address of the service.""" - - # The name of the interface for this client. This is the key used to - # find the method configuration in the client_config dictionary. - _INTERFACE_NAME = 'google.ads.googleads.v1.services.RecommendationService' - - @classmethod - def from_service_account_file(cls, filename, *args, **kwargs): - """Creates an instance of this client using the provided credentials - file. - - Args: - filename (str): The path to the service account private key json - file. - args: Additional arguments to pass to the constructor. - kwargs: Additional arguments to pass to the constructor. - - Returns: - RecommendationServiceClient: The constructed client. - """ - credentials = service_account.Credentials.from_service_account_file( - filename) - kwargs['credentials'] = credentials - return cls(*args, **kwargs) - - from_service_account_json = from_service_account_file - - @classmethod - def recommendation_path(cls, customer, recommendation): - """Return a fully-qualified recommendation string.""" - return google.api_core.path_template.expand( - 'customers/{customer}/recommendations/{recommendation}', - customer=customer, - recommendation=recommendation, - ) - - def __init__(self, - transport=None, - channel=None, - credentials=None, - client_config=None, - client_info=None): - """Constructor. - - Args: - transport (Union[~.RecommendationServiceGrpcTransport, - Callable[[~.Credentials, type], ~.RecommendationServiceGrpcTransport]): A transport - instance, responsible for actually making the API calls. - The default transport uses the gRPC protocol. - This argument may also be a callable which returns a - transport instance. Callables will be sent the credentials - as the first argument and the default transport class as - the second argument. - channel (grpc.Channel): DEPRECATED. A ``Channel`` instance - through which to make calls. This argument is mutually exclusive - with ``credentials``; providing both will raise an exception. - credentials (google.auth.credentials.Credentials): The - authorization credentials to attach to requests. These - credentials identify this application to the service. If none - are specified, the client will attempt to ascertain the - credentials from the environment. - This argument is mutually exclusive with providing a - transport instance to ``transport``; doing so will raise - an exception. - client_config (dict): DEPRECATED. A dictionary of call options for - each method. If not specified, the default configuration is used. - client_info (google.api_core.gapic_v1.client_info.ClientInfo): - The client info used to send a user-agent string along with - API requests. If ``None``, then default info will be used. - Generally, you only need to set this if you're developing - your own client library. - """ - # Raise deprecation warnings for things we want to go away. - if client_config is not None: - warnings.warn( - 'The `client_config` argument is deprecated.', - PendingDeprecationWarning, - stacklevel=2) - else: - client_config = recommendation_service_client_config.config - - if channel: - warnings.warn( - 'The `channel` argument is deprecated; use ' - '`transport` instead.', - PendingDeprecationWarning, - stacklevel=2) - - # Instantiate the transport. - # The transport is responsible for handling serialization and - # deserialization and actually sending data to the service. - if transport: - if callable(transport): - self.transport = transport( - credentials=credentials, - default_class=recommendation_service_grpc_transport. - RecommendationServiceGrpcTransport, - ) - else: - if credentials: - raise ValueError( - 'Received both a transport instance and ' - 'credentials; these are mutually exclusive.') - self.transport = transport - else: - self.transport = recommendation_service_grpc_transport.RecommendationServiceGrpcTransport( - address=self.SERVICE_ADDRESS, - channel=channel, - credentials=credentials, - ) - - if client_info is None: - client_info = google.api_core.gapic_v1.client_info.ClientInfo( - gapic_version=_GAPIC_LIBRARY_VERSION, ) - else: - client_info.gapic_version = _GAPIC_LIBRARY_VERSION - self._client_info = client_info - - # Parse out the default settings for retry and timeout for each RPC - # from the client configuration. - # (Ordinarily, these are the defaults specified in the `*_config.py` - # file next to this one.) - self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( - client_config['interfaces'][self._INTERFACE_NAME], ) - - # Save a dictionary of cached API call functions. - # These are the actual callables which invoke the proper - # transport methods, wrapped with `wrap_method` to add retry, - # timeout, and the like. - self._inner_api_calls = {} - - # Service calls - def get_recommendation(self, - resource_name, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): - """ - Returns the requested recommendation in full detail. - - Args: - resource_name (str): The resource name of the recommendation to fetch. - retry (Optional[google.api_core.retry.Retry]): A retry object used - to retry requests. If ``None`` is specified, requests will not - be retried. - timeout (Optional[float]): The amount of time, in seconds, to wait - for the request to complete. Note that if ``retry`` is - specified, the timeout applies to each individual attempt. - metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata - that is provided to the method. - - Returns: - A :class:`~google.ads.googleads_v1.types.Recommendation` instance. - - Raises: - google.api_core.exceptions.GoogleAPICallError: If the request - failed for any reason. - google.api_core.exceptions.RetryError: If the request failed due - to a retryable error and retry attempts failed. - ValueError: If the parameters are invalid. - """ - # Wrap the transport method to add retry and timeout logic. - if 'get_recommendation' not in self._inner_api_calls: - self._inner_api_calls[ - 'get_recommendation'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.get_recommendation, - default_retry=self._method_configs['GetRecommendation']. - retry, - default_timeout=self._method_configs['GetRecommendation']. - timeout, - client_info=self._client_info, - ) - - request = recommendation_service_pb2.GetRecommendationRequest( - resource_name=resource_name, ) - return self._inner_api_calls['get_recommendation']( - request, retry=retry, timeout=timeout, metadata=metadata) - - def apply_recommendation(self, - customer_id, - operations, - partial_failure=None, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): - """ - Applies given recommendations with corresponding apply parameters. - - Args: - customer_id (str): The ID of the customer with the recommendation. - operations (list[Union[dict, ~google.ads.googleads_v1.types.ApplyRecommendationOperation]]): The list of operations to apply recommendations. If - partial\_failure=false all recommendations should be of the same type - There is a limit of 100 operations per request. - - If a dict is provided, it must be of the same form as the protobuf - message :class:`~google.ads.googleads_v1.types.ApplyRecommendationOperation` - partial_failure (bool): If true, successful operations will be carried out and invalid - operations will return errors. If false, operations will be carried - out as a transaction if and only if they are all valid. - Default is false. - retry (Optional[google.api_core.retry.Retry]): A retry object used - to retry requests. If ``None`` is specified, requests will not - be retried. - timeout (Optional[float]): The amount of time, in seconds, to wait - for the request to complete. Note that if ``retry`` is - specified, the timeout applies to each individual attempt. - metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata - that is provided to the method. - - Returns: - A :class:`~google.ads.googleads_v1.types.ApplyRecommendationResponse` instance. - - Raises: - google.api_core.exceptions.GoogleAPICallError: If the request - failed for any reason. - google.api_core.exceptions.RetryError: If the request failed due - to a retryable error and retry attempts failed. - ValueError: If the parameters are invalid. - """ - # Wrap the transport method to add retry and timeout logic. - if 'apply_recommendation' not in self._inner_api_calls: - self._inner_api_calls[ - 'apply_recommendation'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.apply_recommendation, - default_retry=self._method_configs['ApplyRecommendation']. - retry, - default_timeout=self. - _method_configs['ApplyRecommendation'].timeout, - client_info=self._client_info, - ) - - request = recommendation_service_pb2.ApplyRecommendationRequest( - customer_id=customer_id, - operations=operations, - partial_failure=partial_failure, - ) - return self._inner_api_calls['apply_recommendation']( - request, retry=retry, timeout=timeout, metadata=metadata) - - def dismiss_recommendation(self, - customer_id, - operations, - partial_failure=None, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): - """ - Dismisses given recommendations. - - Args: - customer_id (str): The ID of the customer with the recommendation. - operations (list[Union[dict, ~google.ads.googleads_v1.types.DismissRecommendationOperation]]): The list of operations to dismiss recommendations. If - partial\_failure=false all recommendations should be of the same type - There is a limit of 100 operations per request. - - If a dict is provided, it must be of the same form as the protobuf - message :class:`~google.ads.googleads_v1.types.DismissRecommendationOperation` - partial_failure (bool): If true, successful operations will be carried out and invalid - operations will return errors. If false, operations will be carried in a - single transaction if and only if they are all valid. - Default is false. - retry (Optional[google.api_core.retry.Retry]): A retry object used - to retry requests. If ``None`` is specified, requests will not - be retried. - timeout (Optional[float]): The amount of time, in seconds, to wait - for the request to complete. Note that if ``retry`` is - specified, the timeout applies to each individual attempt. - metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata - that is provided to the method. - - Returns: - A :class:`~google.ads.googleads_v1.types.DismissRecommendationResponse` instance. - - Raises: - google.api_core.exceptions.GoogleAPICallError: If the request - failed for any reason. - google.api_core.exceptions.RetryError: If the request failed due - to a retryable error and retry attempts failed. - ValueError: If the parameters are invalid. - """ - # Wrap the transport method to add retry and timeout logic. - if 'dismiss_recommendation' not in self._inner_api_calls: - self._inner_api_calls[ - 'dismiss_recommendation'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.dismiss_recommendation, - default_retry=self. - _method_configs['DismissRecommendation'].retry, - default_timeout=self. - _method_configs['DismissRecommendation'].timeout, - client_info=self._client_info, - ) - - request = recommendation_service_pb2.DismissRecommendationRequest( - customer_id=customer_id, - operations=operations, - partial_failure=partial_failure, - ) - return self._inner_api_calls['dismiss_recommendation']( - request, retry=retry, timeout=timeout, metadata=metadata) diff --git a/google/ads/google_ads/v1/services/recommendation_service_client_config.py b/google/ads/google_ads/v1/services/recommendation_service_client_config.py deleted file mode 100644 index cba6be1b1..000000000 --- a/google/ads/google_ads/v1/services/recommendation_service_client_config.py +++ /dev/null @@ -1,38 +0,0 @@ -config = { - "interfaces": { - "google.ads.googleads.v1.services.RecommendationService": { - "retry_codes": { - "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], - "non_idempotent": [] - }, - "retry_params": { - "default": { - "initial_retry_delay_millis": 5000, - "retry_delay_multiplier": 1.3, - "max_retry_delay_millis": 60000, - "initial_rpc_timeout_millis": 3600000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 3600000, - "total_timeout_millis": 3600000 - } - }, - "methods": { - "GetRecommendation": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default" - }, - "ApplyRecommendation": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default" - }, - "DismissRecommendation": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default" - } - } - } - } -} diff --git a/google/ads/google_ads/v1/services/remarketing_action_service_client.py b/google/ads/google_ads/v1/services/remarketing_action_service_client.py deleted file mode 100644 index cf1a8474c..000000000 --- a/google/ads/google_ads/v1/services/remarketing_action_service_client.py +++ /dev/null @@ -1,280 +0,0 @@ -# -*- coding: utf-8 -*- -# -# 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. -"""Accesses the google.ads.googleads.v1.services RemarketingActionService API.""" - -import pkg_resources -import warnings - -from google.oauth2 import service_account -import google.api_core.gapic_v1.client_info -import google.api_core.gapic_v1.config -import google.api_core.gapic_v1.method -import google.api_core.grpc_helpers -import google.api_core.path_template - -from google.ads.google_ads.v1.services import remarketing_action_service_client_config -from google.ads.google_ads.v1.services.transports import remarketing_action_service_grpc_transport -from google.ads.google_ads.v1.proto.services import remarketing_action_service_pb2 - -_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( - 'google-ads', ).version - - -class RemarketingActionServiceClient(object): - """Service to manage remarketing actions.""" - - SERVICE_ADDRESS = 'googleads.googleapis.com:443' - """The default address of the service.""" - - # The name of the interface for this client. This is the key used to - # find the method configuration in the client_config dictionary. - _INTERFACE_NAME = 'google.ads.googleads.v1.services.RemarketingActionService' - - @classmethod - def from_service_account_file(cls, filename, *args, **kwargs): - """Creates an instance of this client using the provided credentials - file. - - Args: - filename (str): The path to the service account private key json - file. - args: Additional arguments to pass to the constructor. - kwargs: Additional arguments to pass to the constructor. - - Returns: - RemarketingActionServiceClient: The constructed client. - """ - credentials = service_account.Credentials.from_service_account_file( - filename) - kwargs['credentials'] = credentials - return cls(*args, **kwargs) - - from_service_account_json = from_service_account_file - - @classmethod - def remarketing_action_path(cls, customer, remarketing_action): - """Return a fully-qualified remarketing_action string.""" - return google.api_core.path_template.expand( - 'customers/{customer}/remarketingActions/{remarketing_action}', - customer=customer, - remarketing_action=remarketing_action, - ) - - def __init__(self, - transport=None, - channel=None, - credentials=None, - client_config=None, - client_info=None): - """Constructor. - - Args: - transport (Union[~.RemarketingActionServiceGrpcTransport, - Callable[[~.Credentials, type], ~.RemarketingActionServiceGrpcTransport]): A transport - instance, responsible for actually making the API calls. - The default transport uses the gRPC protocol. - This argument may also be a callable which returns a - transport instance. Callables will be sent the credentials - as the first argument and the default transport class as - the second argument. - channel (grpc.Channel): DEPRECATED. A ``Channel`` instance - through which to make calls. This argument is mutually exclusive - with ``credentials``; providing both will raise an exception. - credentials (google.auth.credentials.Credentials): The - authorization credentials to attach to requests. These - credentials identify this application to the service. If none - are specified, the client will attempt to ascertain the - credentials from the environment. - This argument is mutually exclusive with providing a - transport instance to ``transport``; doing so will raise - an exception. - client_config (dict): DEPRECATED. A dictionary of call options for - each method. If not specified, the default configuration is used. - client_info (google.api_core.gapic_v1.client_info.ClientInfo): - The client info used to send a user-agent string along with - API requests. If ``None``, then default info will be used. - Generally, you only need to set this if you're developing - your own client library. - """ - # Raise deprecation warnings for things we want to go away. - if client_config is not None: - warnings.warn( - 'The `client_config` argument is deprecated.', - PendingDeprecationWarning, - stacklevel=2) - else: - client_config = remarketing_action_service_client_config.config - - if channel: - warnings.warn( - 'The `channel` argument is deprecated; use ' - '`transport` instead.', - PendingDeprecationWarning, - stacklevel=2) - - # Instantiate the transport. - # The transport is responsible for handling serialization and - # deserialization and actually sending data to the service. - if transport: - if callable(transport): - self.transport = transport( - credentials=credentials, - default_class=remarketing_action_service_grpc_transport. - RemarketingActionServiceGrpcTransport, - ) - else: - if credentials: - raise ValueError( - 'Received both a transport instance and ' - 'credentials; these are mutually exclusive.') - self.transport = transport - else: - self.transport = remarketing_action_service_grpc_transport.RemarketingActionServiceGrpcTransport( - address=self.SERVICE_ADDRESS, - channel=channel, - credentials=credentials, - ) - - if client_info is None: - client_info = google.api_core.gapic_v1.client_info.ClientInfo( - gapic_version=_GAPIC_LIBRARY_VERSION, ) - else: - client_info.gapic_version = _GAPIC_LIBRARY_VERSION - self._client_info = client_info - - # Parse out the default settings for retry and timeout for each RPC - # from the client configuration. - # (Ordinarily, these are the defaults specified in the `*_config.py` - # file next to this one.) - self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( - client_config['interfaces'][self._INTERFACE_NAME], ) - - # Save a dictionary of cached API call functions. - # These are the actual callables which invoke the proper - # transport methods, wrapped with `wrap_method` to add retry, - # timeout, and the like. - self._inner_api_calls = {} - - # Service calls - def get_remarketing_action(self, - resource_name, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): - """ - Returns the requested remarketing action in full detail. - - Args: - resource_name (str): The resource name of the remarketing action to fetch. - retry (Optional[google.api_core.retry.Retry]): A retry object used - to retry requests. If ``None`` is specified, requests will not - be retried. - timeout (Optional[float]): The amount of time, in seconds, to wait - for the request to complete. Note that if ``retry`` is - specified, the timeout applies to each individual attempt. - metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata - that is provided to the method. - - Returns: - A :class:`~google.ads.googleads_v1.types.RemarketingAction` instance. - - Raises: - google.api_core.exceptions.GoogleAPICallError: If the request - failed for any reason. - google.api_core.exceptions.RetryError: If the request failed due - to a retryable error and retry attempts failed. - ValueError: If the parameters are invalid. - """ - # Wrap the transport method to add retry and timeout logic. - if 'get_remarketing_action' not in self._inner_api_calls: - self._inner_api_calls[ - 'get_remarketing_action'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.get_remarketing_action, - default_retry=self._method_configs['GetRemarketingAction']. - retry, - default_timeout=self. - _method_configs['GetRemarketingAction'].timeout, - client_info=self._client_info, - ) - - request = remarketing_action_service_pb2.GetRemarketingActionRequest( - resource_name=resource_name, ) - return self._inner_api_calls['get_remarketing_action']( - request, retry=retry, timeout=timeout, metadata=metadata) - - def mutate_remarketing_actions( - self, - customer_id, - operations, - partial_failure=None, - validate_only=None, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): - """ - Creates or updates remarketing actions. Operation statuses are returned. - - Args: - customer_id (str): The ID of the customer whose remarketing actions are being modified. - operations (list[Union[dict, ~google.ads.googleads_v1.types.RemarketingActionOperation]]): The list of operations to perform on individual remarketing actions. - - If a dict is provided, it must be of the same form as the protobuf - message :class:`~google.ads.googleads_v1.types.RemarketingActionOperation` - partial_failure (bool): If true, successful operations will be carried out and invalid - operations will return errors. If false, all operations will be carried - out in one transaction if and only if they are all valid. - Default is false. - validate_only (bool): If true, the request is validated but not executed. Only errors are - returned, not results. - retry (Optional[google.api_core.retry.Retry]): A retry object used - to retry requests. If ``None`` is specified, requests will not - be retried. - timeout (Optional[float]): The amount of time, in seconds, to wait - for the request to complete. Note that if ``retry`` is - specified, the timeout applies to each individual attempt. - metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata - that is provided to the method. - - Returns: - A :class:`~google.ads.googleads_v1.types.MutateRemarketingActionsResponse` instance. - - Raises: - google.api_core.exceptions.GoogleAPICallError: If the request - failed for any reason. - google.api_core.exceptions.RetryError: If the request failed due - to a retryable error and retry attempts failed. - ValueError: If the parameters are invalid. - """ - # Wrap the transport method to add retry and timeout logic. - if 'mutate_remarketing_actions' not in self._inner_api_calls: - self._inner_api_calls[ - 'mutate_remarketing_actions'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.mutate_remarketing_actions, - default_retry=self. - _method_configs['MutateRemarketingActions'].retry, - default_timeout=self. - _method_configs['MutateRemarketingActions'].timeout, - client_info=self._client_info, - ) - - request = remarketing_action_service_pb2.MutateRemarketingActionsRequest( - customer_id=customer_id, - operations=operations, - partial_failure=partial_failure, - validate_only=validate_only, - ) - return self._inner_api_calls['mutate_remarketing_actions']( - request, retry=retry, timeout=timeout, metadata=metadata) diff --git a/google/ads/google_ads/v1/services/remarketing_action_service_client_config.py b/google/ads/google_ads/v1/services/remarketing_action_service_client_config.py deleted file mode 100644 index 61dc8bfe4..000000000 --- a/google/ads/google_ads/v1/services/remarketing_action_service_client_config.py +++ /dev/null @@ -1,33 +0,0 @@ -config = { - "interfaces": { - "google.ads.googleads.v1.services.RemarketingActionService": { - "retry_codes": { - "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], - "non_idempotent": [] - }, - "retry_params": { - "default": { - "initial_retry_delay_millis": 5000, - "retry_delay_multiplier": 1.3, - "max_retry_delay_millis": 60000, - "initial_rpc_timeout_millis": 3600000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 3600000, - "total_timeout_millis": 3600000 - } - }, - "methods": { - "GetRemarketingAction": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default" - }, - "MutateRemarketingActions": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default" - } - } - } - } -} diff --git a/google/ads/google_ads/v1/services/search_term_view_service_client_config.py b/google/ads/google_ads/v1/services/search_term_view_service_client_config.py deleted file mode 100644 index d68beca5d..000000000 --- a/google/ads/google_ads/v1/services/search_term_view_service_client_config.py +++ /dev/null @@ -1,28 +0,0 @@ -config = { - "interfaces": { - "google.ads.googleads.v1.services.SearchTermViewService": { - "retry_codes": { - "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], - "non_idempotent": [] - }, - "retry_params": { - "default": { - "initial_retry_delay_millis": 5000, - "retry_delay_multiplier": 1.3, - "max_retry_delay_millis": 60000, - "initial_rpc_timeout_millis": 3600000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 3600000, - "total_timeout_millis": 3600000 - } - }, - "methods": { - "GetSearchTermView": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default" - } - } - } - } -} diff --git a/google/ads/google_ads/v1/services/shared_criterion_service_client.py b/google/ads/google_ads/v1/services/shared_criterion_service_client.py deleted file mode 100644 index 4eaba0d7e..000000000 --- a/google/ads/google_ads/v1/services/shared_criterion_service_client.py +++ /dev/null @@ -1,279 +0,0 @@ -# -*- coding: utf-8 -*- -# -# 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. -"""Accesses the google.ads.googleads.v1.services SharedCriterionService API.""" - -import pkg_resources -import warnings - -from google.oauth2 import service_account -import google.api_core.gapic_v1.client_info -import google.api_core.gapic_v1.config -import google.api_core.gapic_v1.method -import google.api_core.grpc_helpers -import google.api_core.path_template - -from google.ads.google_ads.v1.services import shared_criterion_service_client_config -from google.ads.google_ads.v1.services.transports import shared_criterion_service_grpc_transport -from google.ads.google_ads.v1.proto.services import shared_criterion_service_pb2 - -_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( - 'google-ads', ).version - - -class SharedCriterionServiceClient(object): - """Service to manage shared criteria.""" - - SERVICE_ADDRESS = 'googleads.googleapis.com:443' - """The default address of the service.""" - - # The name of the interface for this client. This is the key used to - # find the method configuration in the client_config dictionary. - _INTERFACE_NAME = 'google.ads.googleads.v1.services.SharedCriterionService' - - @classmethod - def from_service_account_file(cls, filename, *args, **kwargs): - """Creates an instance of this client using the provided credentials - file. - - Args: - filename (str): The path to the service account private key json - file. - args: Additional arguments to pass to the constructor. - kwargs: Additional arguments to pass to the constructor. - - Returns: - SharedCriterionServiceClient: The constructed client. - """ - credentials = service_account.Credentials.from_service_account_file( - filename) - kwargs['credentials'] = credentials - return cls(*args, **kwargs) - - from_service_account_json = from_service_account_file - - @classmethod - def shared_criteria_path(cls, customer, shared_criteria): - """Return a fully-qualified shared_criteria string.""" - return google.api_core.path_template.expand( - 'customers/{customer}/sharedCriteria/{shared_criteria}', - customer=customer, - shared_criteria=shared_criteria, - ) - - def __init__(self, - transport=None, - channel=None, - credentials=None, - client_config=None, - client_info=None): - """Constructor. - - Args: - transport (Union[~.SharedCriterionServiceGrpcTransport, - Callable[[~.Credentials, type], ~.SharedCriterionServiceGrpcTransport]): A transport - instance, responsible for actually making the API calls. - The default transport uses the gRPC protocol. - This argument may also be a callable which returns a - transport instance. Callables will be sent the credentials - as the first argument and the default transport class as - the second argument. - channel (grpc.Channel): DEPRECATED. A ``Channel`` instance - through which to make calls. This argument is mutually exclusive - with ``credentials``; providing both will raise an exception. - credentials (google.auth.credentials.Credentials): The - authorization credentials to attach to requests. These - credentials identify this application to the service. If none - are specified, the client will attempt to ascertain the - credentials from the environment. - This argument is mutually exclusive with providing a - transport instance to ``transport``; doing so will raise - an exception. - client_config (dict): DEPRECATED. A dictionary of call options for - each method. If not specified, the default configuration is used. - client_info (google.api_core.gapic_v1.client_info.ClientInfo): - The client info used to send a user-agent string along with - API requests. If ``None``, then default info will be used. - Generally, you only need to set this if you're developing - your own client library. - """ - # Raise deprecation warnings for things we want to go away. - if client_config is not None: - warnings.warn( - 'The `client_config` argument is deprecated.', - PendingDeprecationWarning, - stacklevel=2) - else: - client_config = shared_criterion_service_client_config.config - - if channel: - warnings.warn( - 'The `channel` argument is deprecated; use ' - '`transport` instead.', - PendingDeprecationWarning, - stacklevel=2) - - # Instantiate the transport. - # The transport is responsible for handling serialization and - # deserialization and actually sending data to the service. - if transport: - if callable(transport): - self.transport = transport( - credentials=credentials, - default_class=shared_criterion_service_grpc_transport. - SharedCriterionServiceGrpcTransport, - ) - else: - if credentials: - raise ValueError( - 'Received both a transport instance and ' - 'credentials; these are mutually exclusive.') - self.transport = transport - else: - self.transport = shared_criterion_service_grpc_transport.SharedCriterionServiceGrpcTransport( - address=self.SERVICE_ADDRESS, - channel=channel, - credentials=credentials, - ) - - if client_info is None: - client_info = google.api_core.gapic_v1.client_info.ClientInfo( - gapic_version=_GAPIC_LIBRARY_VERSION, ) - else: - client_info.gapic_version = _GAPIC_LIBRARY_VERSION - self._client_info = client_info - - # Parse out the default settings for retry and timeout for each RPC - # from the client configuration. - # (Ordinarily, these are the defaults specified in the `*_config.py` - # file next to this one.) - self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( - client_config['interfaces'][self._INTERFACE_NAME], ) - - # Save a dictionary of cached API call functions. - # These are the actual callables which invoke the proper - # transport methods, wrapped with `wrap_method` to add retry, - # timeout, and the like. - self._inner_api_calls = {} - - # Service calls - def get_shared_criterion(self, - resource_name, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): - """ - Returns the requested shared criterion in full detail. - - Args: - resource_name (str): The resource name of the shared criterion to fetch. - retry (Optional[google.api_core.retry.Retry]): A retry object used - to retry requests. If ``None`` is specified, requests will not - be retried. - timeout (Optional[float]): The amount of time, in seconds, to wait - for the request to complete. Note that if ``retry`` is - specified, the timeout applies to each individual attempt. - metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata - that is provided to the method. - - Returns: - A :class:`~google.ads.googleads_v1.types.SharedCriterion` instance. - - Raises: - google.api_core.exceptions.GoogleAPICallError: If the request - failed for any reason. - google.api_core.exceptions.RetryError: If the request failed due - to a retryable error and retry attempts failed. - ValueError: If the parameters are invalid. - """ - # Wrap the transport method to add retry and timeout logic. - if 'get_shared_criterion' not in self._inner_api_calls: - self._inner_api_calls[ - 'get_shared_criterion'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.get_shared_criterion, - default_retry=self._method_configs['GetSharedCriterion']. - retry, - default_timeout=self._method_configs['GetSharedCriterion']. - timeout, - client_info=self._client_info, - ) - - request = shared_criterion_service_pb2.GetSharedCriterionRequest( - resource_name=resource_name, ) - return self._inner_api_calls['get_shared_criterion']( - request, retry=retry, timeout=timeout, metadata=metadata) - - def mutate_shared_criteria(self, - customer_id, - operations, - partial_failure=None, - validate_only=None, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): - """ - Creates or removes shared criteria. Operation statuses are returned. - - Args: - customer_id (str): The ID of the customer whose shared criteria are being modified. - operations (list[Union[dict, ~google.ads.googleads_v1.types.SharedCriterionOperation]]): The list of operations to perform on individual shared criteria. - - If a dict is provided, it must be of the same form as the protobuf - message :class:`~google.ads.googleads_v1.types.SharedCriterionOperation` - partial_failure (bool): If true, successful operations will be carried out and invalid - operations will return errors. If false, all operations will be carried - out in one transaction if and only if they are all valid. - Default is false. - validate_only (bool): If true, the request is validated but not executed. Only errors are - returned, not results. - retry (Optional[google.api_core.retry.Retry]): A retry object used - to retry requests. If ``None`` is specified, requests will not - be retried. - timeout (Optional[float]): The amount of time, in seconds, to wait - for the request to complete. Note that if ``retry`` is - specified, the timeout applies to each individual attempt. - metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata - that is provided to the method. - - Returns: - A :class:`~google.ads.googleads_v1.types.MutateSharedCriteriaResponse` instance. - - Raises: - google.api_core.exceptions.GoogleAPICallError: If the request - failed for any reason. - google.api_core.exceptions.RetryError: If the request failed due - to a retryable error and retry attempts failed. - ValueError: If the parameters are invalid. - """ - # Wrap the transport method to add retry and timeout logic. - if 'mutate_shared_criteria' not in self._inner_api_calls: - self._inner_api_calls[ - 'mutate_shared_criteria'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.mutate_shared_criteria, - default_retry=self._method_configs['MutateSharedCriteria']. - retry, - default_timeout=self. - _method_configs['MutateSharedCriteria'].timeout, - client_info=self._client_info, - ) - - request = shared_criterion_service_pb2.MutateSharedCriteriaRequest( - customer_id=customer_id, - operations=operations, - partial_failure=partial_failure, - validate_only=validate_only, - ) - return self._inner_api_calls['mutate_shared_criteria']( - request, retry=retry, timeout=timeout, metadata=metadata) diff --git a/google/ads/google_ads/v1/services/shared_criterion_service_client_config.py b/google/ads/google_ads/v1/services/shared_criterion_service_client_config.py deleted file mode 100644 index 0af555c6a..000000000 --- a/google/ads/google_ads/v1/services/shared_criterion_service_client_config.py +++ /dev/null @@ -1,33 +0,0 @@ -config = { - "interfaces": { - "google.ads.googleads.v1.services.SharedCriterionService": { - "retry_codes": { - "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], - "non_idempotent": [] - }, - "retry_params": { - "default": { - "initial_retry_delay_millis": 5000, - "retry_delay_multiplier": 1.3, - "max_retry_delay_millis": 60000, - "initial_rpc_timeout_millis": 3600000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 3600000, - "total_timeout_millis": 3600000 - } - }, - "methods": { - "GetSharedCriterion": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default" - }, - "MutateSharedCriteria": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default" - } - } - } - } -} diff --git a/google/ads/google_ads/v1/services/shared_set_service_client.py b/google/ads/google_ads/v1/services/shared_set_service_client.py deleted file mode 100644 index 261aac54a..000000000 --- a/google/ads/google_ads/v1/services/shared_set_service_client.py +++ /dev/null @@ -1,278 +0,0 @@ -# -*- coding: utf-8 -*- -# -# 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. -"""Accesses the google.ads.googleads.v1.services SharedSetService API.""" - -import pkg_resources -import warnings - -from google.oauth2 import service_account -import google.api_core.gapic_v1.client_info -import google.api_core.gapic_v1.config -import google.api_core.gapic_v1.method -import google.api_core.grpc_helpers -import google.api_core.path_template - -from google.ads.google_ads.v1.services import shared_set_service_client_config -from google.ads.google_ads.v1.services.transports import shared_set_service_grpc_transport -from google.ads.google_ads.v1.proto.services import shared_set_service_pb2 - -_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( - 'google-ads', ).version - - -class SharedSetServiceClient(object): - """Service to manage shared sets.""" - - SERVICE_ADDRESS = 'googleads.googleapis.com:443' - """The default address of the service.""" - - # The name of the interface for this client. This is the key used to - # find the method configuration in the client_config dictionary. - _INTERFACE_NAME = 'google.ads.googleads.v1.services.SharedSetService' - - @classmethod - def from_service_account_file(cls, filename, *args, **kwargs): - """Creates an instance of this client using the provided credentials - file. - - Args: - filename (str): The path to the service account private key json - file. - args: Additional arguments to pass to the constructor. - kwargs: Additional arguments to pass to the constructor. - - Returns: - SharedSetServiceClient: The constructed client. - """ - credentials = service_account.Credentials.from_service_account_file( - filename) - kwargs['credentials'] = credentials - return cls(*args, **kwargs) - - from_service_account_json = from_service_account_file - - @classmethod - def shared_set_path(cls, customer, shared_set): - """Return a fully-qualified shared_set string.""" - return google.api_core.path_template.expand( - 'customers/{customer}/sharedSets/{shared_set}', - customer=customer, - shared_set=shared_set, - ) - - def __init__(self, - transport=None, - channel=None, - credentials=None, - client_config=None, - client_info=None): - """Constructor. - - Args: - transport (Union[~.SharedSetServiceGrpcTransport, - Callable[[~.Credentials, type], ~.SharedSetServiceGrpcTransport]): A transport - instance, responsible for actually making the API calls. - The default transport uses the gRPC protocol. - This argument may also be a callable which returns a - transport instance. Callables will be sent the credentials - as the first argument and the default transport class as - the second argument. - channel (grpc.Channel): DEPRECATED. A ``Channel`` instance - through which to make calls. This argument is mutually exclusive - with ``credentials``; providing both will raise an exception. - credentials (google.auth.credentials.Credentials): The - authorization credentials to attach to requests. These - credentials identify this application to the service. If none - are specified, the client will attempt to ascertain the - credentials from the environment. - This argument is mutually exclusive with providing a - transport instance to ``transport``; doing so will raise - an exception. - client_config (dict): DEPRECATED. A dictionary of call options for - each method. If not specified, the default configuration is used. - client_info (google.api_core.gapic_v1.client_info.ClientInfo): - The client info used to send a user-agent string along with - API requests. If ``None``, then default info will be used. - Generally, you only need to set this if you're developing - your own client library. - """ - # Raise deprecation warnings for things we want to go away. - if client_config is not None: - warnings.warn( - 'The `client_config` argument is deprecated.', - PendingDeprecationWarning, - stacklevel=2) - else: - client_config = shared_set_service_client_config.config - - if channel: - warnings.warn( - 'The `channel` argument is deprecated; use ' - '`transport` instead.', - PendingDeprecationWarning, - stacklevel=2) - - # Instantiate the transport. - # The transport is responsible for handling serialization and - # deserialization and actually sending data to the service. - if transport: - if callable(transport): - self.transport = transport( - credentials=credentials, - default_class=shared_set_service_grpc_transport. - SharedSetServiceGrpcTransport, - ) - else: - if credentials: - raise ValueError( - 'Received both a transport instance and ' - 'credentials; these are mutually exclusive.') - self.transport = transport - else: - self.transport = shared_set_service_grpc_transport.SharedSetServiceGrpcTransport( - address=self.SERVICE_ADDRESS, - channel=channel, - credentials=credentials, - ) - - if client_info is None: - client_info = google.api_core.gapic_v1.client_info.ClientInfo( - gapic_version=_GAPIC_LIBRARY_VERSION, ) - else: - client_info.gapic_version = _GAPIC_LIBRARY_VERSION - self._client_info = client_info - - # Parse out the default settings for retry and timeout for each RPC - # from the client configuration. - # (Ordinarily, these are the defaults specified in the `*_config.py` - # file next to this one.) - self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( - client_config['interfaces'][self._INTERFACE_NAME], ) - - # Save a dictionary of cached API call functions. - # These are the actual callables which invoke the proper - # transport methods, wrapped with `wrap_method` to add retry, - # timeout, and the like. - self._inner_api_calls = {} - - # Service calls - def get_shared_set(self, - resource_name, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): - """ - Returns the requested shared set in full detail. - - Args: - resource_name (str): The resource name of the shared set to fetch. - retry (Optional[google.api_core.retry.Retry]): A retry object used - to retry requests. If ``None`` is specified, requests will not - be retried. - timeout (Optional[float]): The amount of time, in seconds, to wait - for the request to complete. Note that if ``retry`` is - specified, the timeout applies to each individual attempt. - metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata - that is provided to the method. - - Returns: - A :class:`~google.ads.googleads_v1.types.SharedSet` instance. - - Raises: - google.api_core.exceptions.GoogleAPICallError: If the request - failed for any reason. - google.api_core.exceptions.RetryError: If the request failed due - to a retryable error and retry attempts failed. - ValueError: If the parameters are invalid. - """ - # Wrap the transport method to add retry and timeout logic. - if 'get_shared_set' not in self._inner_api_calls: - self._inner_api_calls[ - 'get_shared_set'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.get_shared_set, - default_retry=self._method_configs['GetSharedSet'].retry, - default_timeout=self._method_configs['GetSharedSet']. - timeout, - client_info=self._client_info, - ) - - request = shared_set_service_pb2.GetSharedSetRequest( - resource_name=resource_name, ) - return self._inner_api_calls['get_shared_set']( - request, retry=retry, timeout=timeout, metadata=metadata) - - def mutate_shared_sets(self, - customer_id, - operations, - partial_failure=None, - validate_only=None, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): - """ - Creates, updates, or removes shared sets. Operation statuses are returned. - - Args: - customer_id (str): The ID of the customer whose shared sets are being modified. - operations (list[Union[dict, ~google.ads.googleads_v1.types.SharedSetOperation]]): The list of operations to perform on individual shared sets. - - If a dict is provided, it must be of the same form as the protobuf - message :class:`~google.ads.googleads_v1.types.SharedSetOperation` - partial_failure (bool): If true, successful operations will be carried out and invalid - operations will return errors. If false, all operations will be carried - out in one transaction if and only if they are all valid. - Default is false. - validate_only (bool): If true, the request is validated but not executed. Only errors are - returned, not results. - retry (Optional[google.api_core.retry.Retry]): A retry object used - to retry requests. If ``None`` is specified, requests will not - be retried. - timeout (Optional[float]): The amount of time, in seconds, to wait - for the request to complete. Note that if ``retry`` is - specified, the timeout applies to each individual attempt. - metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata - that is provided to the method. - - Returns: - A :class:`~google.ads.googleads_v1.types.MutateSharedSetsResponse` instance. - - Raises: - google.api_core.exceptions.GoogleAPICallError: If the request - failed for any reason. - google.api_core.exceptions.RetryError: If the request failed due - to a retryable error and retry attempts failed. - ValueError: If the parameters are invalid. - """ - # Wrap the transport method to add retry and timeout logic. - if 'mutate_shared_sets' not in self._inner_api_calls: - self._inner_api_calls[ - 'mutate_shared_sets'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.mutate_shared_sets, - default_retry=self._method_configs['MutateSharedSets']. - retry, - default_timeout=self._method_configs['MutateSharedSets']. - timeout, - client_info=self._client_info, - ) - - request = shared_set_service_pb2.MutateSharedSetsRequest( - customer_id=customer_id, - operations=operations, - partial_failure=partial_failure, - validate_only=validate_only, - ) - return self._inner_api_calls['mutate_shared_sets']( - request, retry=retry, timeout=timeout, metadata=metadata) diff --git a/google/ads/google_ads/v1/services/shared_set_service_client_config.py b/google/ads/google_ads/v1/services/shared_set_service_client_config.py deleted file mode 100644 index 63a2b3ff3..000000000 --- a/google/ads/google_ads/v1/services/shared_set_service_client_config.py +++ /dev/null @@ -1,33 +0,0 @@ -config = { - "interfaces": { - "google.ads.googleads.v1.services.SharedSetService": { - "retry_codes": { - "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], - "non_idempotent": [] - }, - "retry_params": { - "default": { - "initial_retry_delay_millis": 5000, - "retry_delay_multiplier": 1.3, - "max_retry_delay_millis": 60000, - "initial_rpc_timeout_millis": 3600000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 3600000, - "total_timeout_millis": 3600000 - } - }, - "methods": { - "GetSharedSet": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default" - }, - "MutateSharedSets": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default" - } - } - } - } -} diff --git a/google/ads/google_ads/v1/services/shopping_performance_view_service_client_config.py b/google/ads/google_ads/v1/services/shopping_performance_view_service_client_config.py deleted file mode 100644 index b2a572230..000000000 --- a/google/ads/google_ads/v1/services/shopping_performance_view_service_client_config.py +++ /dev/null @@ -1,28 +0,0 @@ -config = { - "interfaces": { - "google.ads.googleads.v1.services.ShoppingPerformanceViewService": { - "retry_codes": { - "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], - "non_idempotent": [] - }, - "retry_params": { - "default": { - "initial_retry_delay_millis": 5000, - "retry_delay_multiplier": 1.3, - "max_retry_delay_millis": 60000, - "initial_rpc_timeout_millis": 3600000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 3600000, - "total_timeout_millis": 3600000 - } - }, - "methods": { - "GetShoppingPerformanceView": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default" - } - } - } - } -} diff --git a/google/ads/google_ads/v1/services/topic_constant_service_client_config.py b/google/ads/google_ads/v1/services/topic_constant_service_client_config.py deleted file mode 100644 index 978313666..000000000 --- a/google/ads/google_ads/v1/services/topic_constant_service_client_config.py +++ /dev/null @@ -1,28 +0,0 @@ -config = { - "interfaces": { - "google.ads.googleads.v1.services.TopicConstantService": { - "retry_codes": { - "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], - "non_idempotent": [] - }, - "retry_params": { - "default": { - "initial_retry_delay_millis": 5000, - "retry_delay_multiplier": 1.3, - "max_retry_delay_millis": 60000, - "initial_rpc_timeout_millis": 3600000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 3600000, - "total_timeout_millis": 3600000 - } - }, - "methods": { - "GetTopicConstant": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default" - } - } - } - } -} diff --git a/google/ads/google_ads/v1/services/topic_view_service_client_config.py b/google/ads/google_ads/v1/services/topic_view_service_client_config.py deleted file mode 100644 index ec78784a5..000000000 --- a/google/ads/google_ads/v1/services/topic_view_service_client_config.py +++ /dev/null @@ -1,28 +0,0 @@ -config = { - "interfaces": { - "google.ads.googleads.v1.services.TopicViewService": { - "retry_codes": { - "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], - "non_idempotent": [] - }, - "retry_params": { - "default": { - "initial_retry_delay_millis": 5000, - "retry_delay_multiplier": 1.3, - "max_retry_delay_millis": 60000, - "initial_rpc_timeout_millis": 3600000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 3600000, - "total_timeout_millis": 3600000 - } - }, - "methods": { - "GetTopicView": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default" - } - } - } - } -} diff --git a/google/ads/google_ads/v1/services/transports/keyword_plan_keyword_service_grpc_transport.py b/google/ads/google_ads/v1/services/transports/keyword_plan_keyword_service_grpc_transport.py deleted file mode 100644 index 1987afc31..000000000 --- a/google/ads/google_ads/v1/services/transports/keyword_plan_keyword_service_grpc_transport.py +++ /dev/null @@ -1,138 +0,0 @@ -# -*- coding: utf-8 -*- -# -# 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. - -import google.api_core.grpc_helpers - -from google.ads.google_ads.v1.proto.services import keyword_plan_keyword_service_pb2_grpc - - -class KeywordPlanKeywordServiceGrpcTransport(object): - """gRPC transport class providing stubs for - google.ads.googleads.v1.services KeywordPlanKeywordService API. - - The transport provides access to the raw gRPC stubs, - which can be used to take advantage of advanced - features of gRPC. - """ - # The scopes needed to make gRPC calls to all of the methods defined - # in this service. - _OAUTH_SCOPES = () - - def __init__(self, - channel=None, - credentials=None, - address='googleads.googleapis.com:443'): - """Instantiate the transport class. - - Args: - channel (grpc.Channel): A ``Channel`` instance through - which to make calls. This argument is mutually exclusive - with ``credentials``; providing both will raise an exception. - credentials (google.auth.credentials.Credentials): The - authorization credentials to attach to requests. These - credentials identify this application to the service. If none - are specified, the client will attempt to ascertain the - credentials from the environment. - address (str): The address where the service is hosted. - """ - # If both `channel` and `credentials` are specified, raise an - # exception (channels come with credentials baked in already). - if channel is not None and credentials is not None: - raise ValueError( - 'The `channel` and `credentials` arguments are mutually ' - 'exclusive.', ) - - # Create the channel. - if channel is None: - channel = self.create_channel( - address=address, - credentials=credentials, - ) - - self._channel = channel - - # gRPC uses objects called "stubs" that are bound to the - # channel and provide a basic method for each RPC. - self._stubs = { - 'keyword_plan_keyword_service_stub': keyword_plan_keyword_service_pb2_grpc.KeywordPlanKeywordServiceStub(channel), - } - - - @classmethod - def create_channel( - cls, - address='googleads.googleapis.com:443', - credentials=None, - **kwargs): - """Create and return a gRPC channel object. - - Args: - address (str): The host for the channel to use. - credentials (~.Credentials): The - authorization credentials to attach to requests. These - credentials identify this application to the service. If - none are specified, the client will attempt to ascertain - the credentials from the environment. - kwargs (dict): Keyword arguments, which are passed to the - channel creation. - - Returns: - grpc.Channel: A gRPC channel object. - """ - return google.api_core.grpc_helpers.create_channel( - address, - credentials=credentials, - scopes=cls._OAUTH_SCOPES, - **kwargs - ) - - @property - def channel(self): - """The gRPC channel used by the transport. - - Returns: - grpc.Channel: A gRPC channel object. - """ - return self._channel - - @property - def get_keyword_plan_keyword(self): - """Return the gRPC stub for :meth:`KeywordPlanKeywordServiceClient.get_keyword_plan_keyword`. - - Returns the requested Keyword Plan keyword in full detail. - - Returns: - Callable: A callable which accepts the appropriate - deserialized request object and returns a - deserialized response object. - """ - return self._stubs[ - 'keyword_plan_keyword_service_stub'].GetKeywordPlanKeyword - - @property - def mutate_keyword_plan_keywords(self): - """Return the gRPC stub for :meth:`KeywordPlanKeywordServiceClient.mutate_keyword_plan_keywords`. - - Creates, updates, or removes Keyword Plan keywords. Operation statuses are - returned. - - Returns: - Callable: A callable which accepts the appropriate - deserialized request object and returns a - deserialized response object. - """ - return self._stubs[ - 'keyword_plan_keyword_service_stub'].MutateKeywordPlanKeywords diff --git a/google/ads/google_ads/v1/services/transports/keyword_plan_negative_keyword_service_grpc_transport.py b/google/ads/google_ads/v1/services/transports/keyword_plan_negative_keyword_service_grpc_transport.py deleted file mode 100644 index 4cfbfd6bc..000000000 --- a/google/ads/google_ads/v1/services/transports/keyword_plan_negative_keyword_service_grpc_transport.py +++ /dev/null @@ -1,138 +0,0 @@ -# -*- coding: utf-8 -*- -# -# 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. - -import google.api_core.grpc_helpers - -from google.ads.google_ads.v1.proto.services import keyword_plan_negative_keyword_service_pb2_grpc - - -class KeywordPlanNegativeKeywordServiceGrpcTransport(object): - """gRPC transport class providing stubs for - google.ads.googleads.v1.services KeywordPlanNegativeKeywordService API. - - The transport provides access to the raw gRPC stubs, - which can be used to take advantage of advanced - features of gRPC. - """ - # The scopes needed to make gRPC calls to all of the methods defined - # in this service. - _OAUTH_SCOPES = () - - def __init__(self, - channel=None, - credentials=None, - address='googleads.googleapis.com:443'): - """Instantiate the transport class. - - Args: - channel (grpc.Channel): A ``Channel`` instance through - which to make calls. This argument is mutually exclusive - with ``credentials``; providing both will raise an exception. - credentials (google.auth.credentials.Credentials): The - authorization credentials to attach to requests. These - credentials identify this application to the service. If none - are specified, the client will attempt to ascertain the - credentials from the environment. - address (str): The address where the service is hosted. - """ - # If both `channel` and `credentials` are specified, raise an - # exception (channels come with credentials baked in already). - if channel is not None and credentials is not None: - raise ValueError( - 'The `channel` and `credentials` arguments are mutually ' - 'exclusive.', ) - - # Create the channel. - if channel is None: - channel = self.create_channel( - address=address, - credentials=credentials, - ) - - self._channel = channel - - # gRPC uses objects called "stubs" that are bound to the - # channel and provide a basic method for each RPC. - self._stubs = { - 'keyword_plan_negative_keyword_service_stub': keyword_plan_negative_keyword_service_pb2_grpc.KeywordPlanNegativeKeywordServiceStub(channel), - } - - - @classmethod - def create_channel( - cls, - address='googleads.googleapis.com:443', - credentials=None, - **kwargs): - """Create and return a gRPC channel object. - - Args: - address (str): The host for the channel to use. - credentials (~.Credentials): The - authorization credentials to attach to requests. These - credentials identify this application to the service. If - none are specified, the client will attempt to ascertain - the credentials from the environment. - kwargs (dict): Keyword arguments, which are passed to the - channel creation. - - Returns: - grpc.Channel: A gRPC channel object. - """ - return google.api_core.grpc_helpers.create_channel( - address, - credentials=credentials, - scopes=cls._OAUTH_SCOPES, - **kwargs - ) - - @property - def channel(self): - """The gRPC channel used by the transport. - - Returns: - grpc.Channel: A gRPC channel object. - """ - return self._channel - - @property - def get_keyword_plan_negative_keyword(self): - """Return the gRPC stub for :meth:`KeywordPlanNegativeKeywordServiceClient.get_keyword_plan_negative_keyword`. - - Returns the requested plan in full detail. - - Returns: - Callable: A callable which accepts the appropriate - deserialized request object and returns a - deserialized response object. - """ - return self._stubs[ - 'keyword_plan_negative_keyword_service_stub'].GetKeywordPlanNegativeKeyword - - @property - def mutate_keyword_plan_negative_keywords(self): - """Return the gRPC stub for :meth:`KeywordPlanNegativeKeywordServiceClient.mutate_keyword_plan_negative_keywords`. - - Creates, updates, or removes Keyword Plan negative keywords. Operation - statuses are returned. - - Returns: - Callable: A callable which accepts the appropriate - deserialized request object and returns a - deserialized response object. - """ - return self._stubs[ - 'keyword_plan_negative_keyword_service_stub'].MutateKeywordPlanNegativeKeywords diff --git a/google/ads/google_ads/v1/services/transports/mutate_job_service_grpc_transport.py b/google/ads/google_ads/v1/services/transports/mutate_job_service_grpc_transport.py deleted file mode 100644 index 494f091f2..000000000 --- a/google/ads/google_ads/v1/services/transports/mutate_job_service_grpc_transport.py +++ /dev/null @@ -1,184 +0,0 @@ -# -*- coding: utf-8 -*- -# -# 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. - -import google.api_core.grpc_helpers -import google.api_core.operations_v1 - -from google.ads.google_ads.v1.proto.services import mutate_job_service_pb2_grpc - - -class MutateJobServiceGrpcTransport(object): - """gRPC transport class providing stubs for - google.ads.googleads.v1.services MutateJobService API. - - The transport provides access to the raw gRPC stubs, - which can be used to take advantage of advanced - features of gRPC. - """ - # The scopes needed to make gRPC calls to all of the methods defined - # in this service. - _OAUTH_SCOPES = () - - def __init__(self, - channel=None, - credentials=None, - address='googleads.googleapis.com:443'): - """Instantiate the transport class. - - Args: - channel (grpc.Channel): A ``Channel`` instance through - which to make calls. This argument is mutually exclusive - with ``credentials``; providing both will raise an exception. - credentials (google.auth.credentials.Credentials): The - authorization credentials to attach to requests. These - credentials identify this application to the service. If none - are specified, the client will attempt to ascertain the - credentials from the environment. - address (str): The address where the service is hosted. - """ - # If both `channel` and `credentials` are specified, raise an - # exception (channels come with credentials baked in already). - if channel is not None and credentials is not None: - raise ValueError( - 'The `channel` and `credentials` arguments are mutually ' - 'exclusive.', ) - - # Create the channel. - if channel is None: - channel = self.create_channel( - address=address, - credentials=credentials, - ) - - self._channel = channel - - # gRPC uses objects called "stubs" that are bound to the - # channel and provide a basic method for each RPC. - self._stubs = { - 'mutate_job_service_stub': mutate_job_service_pb2_grpc.MutateJobServiceStub(channel), - } - - # Because this API includes a method that returns a - # long-running operation (proto: google.longrunning.Operation), - # instantiate an LRO client. - self._operations_client = google.api_core.operations_v1.OperationsClient(channel) - - @classmethod - def create_channel( - cls, - address='googleads.googleapis.com:443', - credentials=None, - **kwargs): - """Create and return a gRPC channel object. - - Args: - address (str): The host for the channel to use. - credentials (~.Credentials): The - authorization credentials to attach to requests. These - credentials identify this application to the service. If - none are specified, the client will attempt to ascertain - the credentials from the environment. - kwargs (dict): Keyword arguments, which are passed to the - channel creation. - - Returns: - grpc.Channel: A gRPC channel object. - """ - return google.api_core.grpc_helpers.create_channel( - address, - credentials=credentials, - scopes=cls._OAUTH_SCOPES, - **kwargs - ) - - @property - def channel(self): - """The gRPC channel used by the transport. - - Returns: - grpc.Channel: A gRPC channel object. - """ - return self._channel - - @property - def create_mutate_job(self): - """Return the gRPC stub for :meth:`MutateJobServiceClient.create_mutate_job`. - - Creates a mutate job. - - Returns: - Callable: A callable which accepts the appropriate - deserialized request object and returns a - deserialized response object. - """ - return self._stubs['mutate_job_service_stub'].CreateMutateJob - - @property - def get_mutate_job(self): - """Return the gRPC stub for :meth:`MutateJobServiceClient.get_mutate_job`. - - Returns the mutate job. - - Returns: - Callable: A callable which accepts the appropriate - deserialized request object and returns a - deserialized response object. - """ - return self._stubs['mutate_job_service_stub'].GetMutateJob - - @property - def list_mutate_job_results(self): - """Return the gRPC stub for :meth:`MutateJobServiceClient.list_mutate_job_results`. - - Returns the results of the mutate job. The job must be done. - Supports standard list paging. - - Returns: - Callable: A callable which accepts the appropriate - deserialized request object and returns a - deserialized response object. - """ - return self._stubs['mutate_job_service_stub'].ListMutateJobResults - - @property - def run_mutate_job(self): - """Return the gRPC stub for :meth:`MutateJobServiceClient.run_mutate_job`. - - Runs the mutate job. - - The Operation.metadata field type is MutateJobMetadata. When finished, the - long running operation will not contain errors or a response. Instead, use - ListMutateJobResults to get the results of the job. - - Returns: - Callable: A callable which accepts the appropriate - deserialized request object and returns a - deserialized response object. - """ - return self._stubs['mutate_job_service_stub'].RunMutateJob - - @property - def add_mutate_job_operations(self): - """Return the gRPC stub for :meth:`MutateJobServiceClient.add_mutate_job_operations`. - - Add operations to the mutate job. - - Returns: - Callable: A callable which accepts the appropriate - deserialized request object and returns a - deserialized response object. - """ - return self._stubs['mutate_job_service_stub'].AddMutateJobOperations diff --git a/google/ads/google_ads/v1/services/user_interest_service_client_config.py b/google/ads/google_ads/v1/services/user_interest_service_client_config.py deleted file mode 100644 index f197567ea..000000000 --- a/google/ads/google_ads/v1/services/user_interest_service_client_config.py +++ /dev/null @@ -1,28 +0,0 @@ -config = { - "interfaces": { - "google.ads.googleads.v1.services.UserInterestService": { - "retry_codes": { - "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], - "non_idempotent": [] - }, - "retry_params": { - "default": { - "initial_retry_delay_millis": 5000, - "retry_delay_multiplier": 1.3, - "max_retry_delay_millis": 60000, - "initial_rpc_timeout_millis": 3600000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 3600000, - "total_timeout_millis": 3600000 - } - }, - "methods": { - "GetUserInterest": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default" - } - } - } - } -} diff --git a/google/ads/google_ads/v1/services/user_list_service_client.py b/google/ads/google_ads/v1/services/user_list_service_client.py deleted file mode 100644 index 94a0848be..000000000 --- a/google/ads/google_ads/v1/services/user_list_service_client.py +++ /dev/null @@ -1,278 +0,0 @@ -# -*- coding: utf-8 -*- -# -# 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. -"""Accesses the google.ads.googleads.v1.services UserListService API.""" - -import pkg_resources -import warnings - -from google.oauth2 import service_account -import google.api_core.gapic_v1.client_info -import google.api_core.gapic_v1.config -import google.api_core.gapic_v1.method -import google.api_core.grpc_helpers -import google.api_core.path_template - -from google.ads.google_ads.v1.services import user_list_service_client_config -from google.ads.google_ads.v1.services.transports import user_list_service_grpc_transport -from google.ads.google_ads.v1.proto.services import user_list_service_pb2 - -_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( - 'google-ads', ).version - - -class UserListServiceClient(object): - """Service to manage user lists.""" - - SERVICE_ADDRESS = 'googleads.googleapis.com:443' - """The default address of the service.""" - - # The name of the interface for this client. This is the key used to - # find the method configuration in the client_config dictionary. - _INTERFACE_NAME = 'google.ads.googleads.v1.services.UserListService' - - @classmethod - def from_service_account_file(cls, filename, *args, **kwargs): - """Creates an instance of this client using the provided credentials - file. - - Args: - filename (str): The path to the service account private key json - file. - args: Additional arguments to pass to the constructor. - kwargs: Additional arguments to pass to the constructor. - - Returns: - UserListServiceClient: The constructed client. - """ - credentials = service_account.Credentials.from_service_account_file( - filename) - kwargs['credentials'] = credentials - return cls(*args, **kwargs) - - from_service_account_json = from_service_account_file - - @classmethod - def user_list_path(cls, customer, user_list): - """Return a fully-qualified user_list string.""" - return google.api_core.path_template.expand( - 'customers/{customer}/userLists/{user_list}', - customer=customer, - user_list=user_list, - ) - - def __init__(self, - transport=None, - channel=None, - credentials=None, - client_config=None, - client_info=None): - """Constructor. - - Args: - transport (Union[~.UserListServiceGrpcTransport, - Callable[[~.Credentials, type], ~.UserListServiceGrpcTransport]): A transport - instance, responsible for actually making the API calls. - The default transport uses the gRPC protocol. - This argument may also be a callable which returns a - transport instance. Callables will be sent the credentials - as the first argument and the default transport class as - the second argument. - channel (grpc.Channel): DEPRECATED. A ``Channel`` instance - through which to make calls. This argument is mutually exclusive - with ``credentials``; providing both will raise an exception. - credentials (google.auth.credentials.Credentials): The - authorization credentials to attach to requests. These - credentials identify this application to the service. If none - are specified, the client will attempt to ascertain the - credentials from the environment. - This argument is mutually exclusive with providing a - transport instance to ``transport``; doing so will raise - an exception. - client_config (dict): DEPRECATED. A dictionary of call options for - each method. If not specified, the default configuration is used. - client_info (google.api_core.gapic_v1.client_info.ClientInfo): - The client info used to send a user-agent string along with - API requests. If ``None``, then default info will be used. - Generally, you only need to set this if you're developing - your own client library. - """ - # Raise deprecation warnings for things we want to go away. - if client_config is not None: - warnings.warn( - 'The `client_config` argument is deprecated.', - PendingDeprecationWarning, - stacklevel=2) - else: - client_config = user_list_service_client_config.config - - if channel: - warnings.warn( - 'The `channel` argument is deprecated; use ' - '`transport` instead.', - PendingDeprecationWarning, - stacklevel=2) - - # Instantiate the transport. - # The transport is responsible for handling serialization and - # deserialization and actually sending data to the service. - if transport: - if callable(transport): - self.transport = transport( - credentials=credentials, - default_class=user_list_service_grpc_transport. - UserListServiceGrpcTransport, - ) - else: - if credentials: - raise ValueError( - 'Received both a transport instance and ' - 'credentials; these are mutually exclusive.') - self.transport = transport - else: - self.transport = user_list_service_grpc_transport.UserListServiceGrpcTransport( - address=self.SERVICE_ADDRESS, - channel=channel, - credentials=credentials, - ) - - if client_info is None: - client_info = google.api_core.gapic_v1.client_info.ClientInfo( - gapic_version=_GAPIC_LIBRARY_VERSION, ) - else: - client_info.gapic_version = _GAPIC_LIBRARY_VERSION - self._client_info = client_info - - # Parse out the default settings for retry and timeout for each RPC - # from the client configuration. - # (Ordinarily, these are the defaults specified in the `*_config.py` - # file next to this one.) - self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( - client_config['interfaces'][self._INTERFACE_NAME], ) - - # Save a dictionary of cached API call functions. - # These are the actual callables which invoke the proper - # transport methods, wrapped with `wrap_method` to add retry, - # timeout, and the like. - self._inner_api_calls = {} - - # Service calls - def get_user_list(self, - resource_name, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): - """ - Returns the requested user list. - - Args: - resource_name (str): The resource name of the user list to fetch. - retry (Optional[google.api_core.retry.Retry]): A retry object used - to retry requests. If ``None`` is specified, requests will not - be retried. - timeout (Optional[float]): The amount of time, in seconds, to wait - for the request to complete. Note that if ``retry`` is - specified, the timeout applies to each individual attempt. - metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata - that is provided to the method. - - Returns: - A :class:`~google.ads.googleads_v1.types.UserList` instance. - - Raises: - google.api_core.exceptions.GoogleAPICallError: If the request - failed for any reason. - google.api_core.exceptions.RetryError: If the request failed due - to a retryable error and retry attempts failed. - ValueError: If the parameters are invalid. - """ - # Wrap the transport method to add retry and timeout logic. - if 'get_user_list' not in self._inner_api_calls: - self._inner_api_calls[ - 'get_user_list'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.get_user_list, - default_retry=self._method_configs['GetUserList'].retry, - default_timeout=self._method_configs['GetUserList']. - timeout, - client_info=self._client_info, - ) - - request = user_list_service_pb2.GetUserListRequest( - resource_name=resource_name, ) - return self._inner_api_calls['get_user_list']( - request, retry=retry, timeout=timeout, metadata=metadata) - - def mutate_user_lists(self, - customer_id, - operations, - partial_failure=None, - validate_only=None, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): - """ - Creates or updates user lists. Operation statuses are returned. - - Args: - customer_id (str): The ID of the customer whose user lists are being modified. - operations (list[Union[dict, ~google.ads.googleads_v1.types.UserListOperation]]): The list of operations to perform on individual user lists. - - If a dict is provided, it must be of the same form as the protobuf - message :class:`~google.ads.googleads_v1.types.UserListOperation` - partial_failure (bool): If true, successful operations will be carried out and invalid - operations will return errors. If false, all operations will be carried - out in one transaction if and only if they are all valid. - Default is false. - validate_only (bool): If true, the request is validated but not executed. Only errors are - returned, not results. - retry (Optional[google.api_core.retry.Retry]): A retry object used - to retry requests. If ``None`` is specified, requests will not - be retried. - timeout (Optional[float]): The amount of time, in seconds, to wait - for the request to complete. Note that if ``retry`` is - specified, the timeout applies to each individual attempt. - metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata - that is provided to the method. - - Returns: - A :class:`~google.ads.googleads_v1.types.MutateUserListsResponse` instance. - - Raises: - google.api_core.exceptions.GoogleAPICallError: If the request - failed for any reason. - google.api_core.exceptions.RetryError: If the request failed due - to a retryable error and retry attempts failed. - ValueError: If the parameters are invalid. - """ - # Wrap the transport method to add retry and timeout logic. - if 'mutate_user_lists' not in self._inner_api_calls: - self._inner_api_calls[ - 'mutate_user_lists'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.mutate_user_lists, - default_retry=self._method_configs['MutateUserLists']. - retry, - default_timeout=self._method_configs['MutateUserLists']. - timeout, - client_info=self._client_info, - ) - - request = user_list_service_pb2.MutateUserListsRequest( - customer_id=customer_id, - operations=operations, - partial_failure=partial_failure, - validate_only=validate_only, - ) - return self._inner_api_calls['mutate_user_lists']( - request, retry=retry, timeout=timeout, metadata=metadata) diff --git a/google/ads/google_ads/v1/services/user_list_service_client_config.py b/google/ads/google_ads/v1/services/user_list_service_client_config.py deleted file mode 100644 index 2a99b1687..000000000 --- a/google/ads/google_ads/v1/services/user_list_service_client_config.py +++ /dev/null @@ -1,33 +0,0 @@ -config = { - "interfaces": { - "google.ads.googleads.v1.services.UserListService": { - "retry_codes": { - "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], - "non_idempotent": [] - }, - "retry_params": { - "default": { - "initial_retry_delay_millis": 5000, - "retry_delay_multiplier": 1.3, - "max_retry_delay_millis": 60000, - "initial_rpc_timeout_millis": 3600000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 3600000, - "total_timeout_millis": 3600000 - } - }, - "methods": { - "GetUserList": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default" - }, - "MutateUserLists": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", - "retry_params_name": "default" - } - } - } - } -} diff --git a/google/ads/google_ads/v1/services/video_service_client_config.py b/google/ads/google_ads/v1/services/video_service_client_config.py deleted file mode 100644 index b8f0ab0e8..000000000 --- a/google/ads/google_ads/v1/services/video_service_client_config.py +++ /dev/null @@ -1,28 +0,0 @@ -config = { - "interfaces": { - "google.ads.googleads.v1.services.VideoService": { - "retry_codes": { - "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], - "non_idempotent": [] - }, - "retry_params": { - "default": { - "initial_retry_delay_millis": 5000, - "retry_delay_multiplier": 1.3, - "max_retry_delay_millis": 60000, - "initial_rpc_timeout_millis": 3600000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 3600000, - "total_timeout_millis": 3600000 - } - }, - "methods": { - "GetVideo": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", - "retry_params_name": "default" - } - } - } - } -} diff --git a/google/ads/google_ads/v1/types.py b/google/ads/google_ads/v1/types.py deleted file mode 100644 index e0d801a98..000000000 --- a/google/ads/google_ads/v1/types.py +++ /dev/null @@ -1,1110 +0,0 @@ -# -*- coding: utf-8 -*- -# -# 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. - -import sys - -from google.api_core.protobuf_helpers import get_messages - -from google.ads.google_ads.v1.proto.common import ad_asset_pb2 -from google.ads.google_ads.v1.proto.common import ad_type_infos_pb2 -from google.ads.google_ads.v1.proto.common import asset_types_pb2 -from google.ads.google_ads.v1.proto.common import bidding_pb2 -from google.ads.google_ads.v1.proto.common import click_location_pb2 -from google.ads.google_ads.v1.proto.common import criteria_pb2 -from google.ads.google_ads.v1.proto.common import criterion_category_availability_pb2 -from google.ads.google_ads.v1.proto.common import custom_parameter_pb2 -from google.ads.google_ads.v1.proto.common import dates_pb2 -from google.ads.google_ads.v1.proto.common import explorer_auto_optimizer_setting_pb2 -from google.ads.google_ads.v1.proto.common import extensions_pb2 -from google.ads.google_ads.v1.proto.common import feed_common_pb2 -from google.ads.google_ads.v1.proto.common import final_app_url_pb2 -from google.ads.google_ads.v1.proto.common import frequency_cap_pb2 -from google.ads.google_ads.v1.proto.common import keyword_plan_common_pb2 -from google.ads.google_ads.v1.proto.common import matching_function_pb2 -from google.ads.google_ads.v1.proto.common import metrics_pb2 -from google.ads.google_ads.v1.proto.common import policy_pb2 -from google.ads.google_ads.v1.proto.common import real_time_bidding_setting_pb2 -from google.ads.google_ads.v1.proto.common import segments_pb2 -from google.ads.google_ads.v1.proto.common import simulation_pb2 -from google.ads.google_ads.v1.proto.common import tag_snippet_pb2 -from google.ads.google_ads.v1.proto.common import targeting_setting_pb2 -from google.ads.google_ads.v1.proto.common import text_label_pb2 -from google.ads.google_ads.v1.proto.common import url_collection_pb2 -from google.ads.google_ads.v1.proto.common import user_lists_pb2 -from google.ads.google_ads.v1.proto.common import value_pb2 -from google.ads.google_ads.v1.proto.enums import access_reason_pb2 -from google.ads.google_ads.v1.proto.enums import account_budget_proposal_status_pb2 -from google.ads.google_ads.v1.proto.enums import account_budget_proposal_type_pb2 -from google.ads.google_ads.v1.proto.enums import account_budget_status_pb2 -from google.ads.google_ads.v1.proto.enums import ad_customizer_placeholder_field_pb2 -from google.ads.google_ads.v1.proto.enums import ad_group_ad_rotation_mode_pb2 -from google.ads.google_ads.v1.proto.enums import ad_group_ad_status_pb2 -from google.ads.google_ads.v1.proto.enums import ad_group_criterion_approval_status_pb2 -from google.ads.google_ads.v1.proto.enums import ad_group_criterion_status_pb2 -from google.ads.google_ads.v1.proto.enums import ad_group_status_pb2 -from google.ads.google_ads.v1.proto.enums import ad_group_type_pb2 -from google.ads.google_ads.v1.proto.enums import ad_network_type_pb2 -from google.ads.google_ads.v1.proto.enums import ad_serving_optimization_status_pb2 -from google.ads.google_ads.v1.proto.enums import ad_strength_pb2 -from google.ads.google_ads.v1.proto.enums import ad_type_pb2 -from google.ads.google_ads.v1.proto.enums import advertising_channel_sub_type_pb2 -from google.ads.google_ads.v1.proto.enums import advertising_channel_type_pb2 -from google.ads.google_ads.v1.proto.enums import affiliate_location_feed_relationship_type_pb2 -from google.ads.google_ads.v1.proto.enums import affiliate_location_placeholder_field_pb2 -from google.ads.google_ads.v1.proto.enums import age_range_type_pb2 -from google.ads.google_ads.v1.proto.enums import app_campaign_app_store_pb2 -from google.ads.google_ads.v1.proto.enums import app_campaign_bidding_strategy_goal_type_pb2 -from google.ads.google_ads.v1.proto.enums import app_payment_model_type_pb2 -from google.ads.google_ads.v1.proto.enums import app_placeholder_field_pb2 -from google.ads.google_ads.v1.proto.enums import app_store_pb2 -from google.ads.google_ads.v1.proto.enums import app_url_operating_system_type_pb2 -from google.ads.google_ads.v1.proto.enums import asset_type_pb2 -from google.ads.google_ads.v1.proto.enums import attribution_model_pb2 -from google.ads.google_ads.v1.proto.enums import bid_modifier_source_pb2 -from google.ads.google_ads.v1.proto.enums import bidding_source_pb2 -from google.ads.google_ads.v1.proto.enums import bidding_strategy_status_pb2 -from google.ads.google_ads.v1.proto.enums import bidding_strategy_type_pb2 -from google.ads.google_ads.v1.proto.enums import billing_setup_status_pb2 -from google.ads.google_ads.v1.proto.enums import brand_safety_suitability_pb2 -from google.ads.google_ads.v1.proto.enums import budget_delivery_method_pb2 -from google.ads.google_ads.v1.proto.enums import budget_period_pb2 -from google.ads.google_ads.v1.proto.enums import budget_status_pb2 -from google.ads.google_ads.v1.proto.enums import budget_type_pb2 -from google.ads.google_ads.v1.proto.enums import call_conversion_reporting_state_pb2 -from google.ads.google_ads.v1.proto.enums import call_placeholder_field_pb2 -from google.ads.google_ads.v1.proto.enums import callout_placeholder_field_pb2 -from google.ads.google_ads.v1.proto.enums import campaign_criterion_status_pb2 -from google.ads.google_ads.v1.proto.enums import campaign_draft_status_pb2 -from google.ads.google_ads.v1.proto.enums import campaign_experiment_status_pb2 -from google.ads.google_ads.v1.proto.enums import campaign_experiment_traffic_split_type_pb2 -from google.ads.google_ads.v1.proto.enums import campaign_experiment_type_pb2 -from google.ads.google_ads.v1.proto.enums import campaign_serving_status_pb2 -from google.ads.google_ads.v1.proto.enums import campaign_shared_set_status_pb2 -from google.ads.google_ads.v1.proto.enums import campaign_status_pb2 -from google.ads.google_ads.v1.proto.enums import change_status_operation_pb2 -from google.ads.google_ads.v1.proto.enums import change_status_resource_type_pb2 -from google.ads.google_ads.v1.proto.enums import click_type_pb2 -from google.ads.google_ads.v1.proto.enums import content_label_type_pb2 -from google.ads.google_ads.v1.proto.enums import conversion_action_category_pb2 -from google.ads.google_ads.v1.proto.enums import conversion_action_counting_type_pb2 -from google.ads.google_ads.v1.proto.enums import conversion_action_status_pb2 -from google.ads.google_ads.v1.proto.enums import conversion_action_type_pb2 -from google.ads.google_ads.v1.proto.enums import conversion_adjustment_type_pb2 -from google.ads.google_ads.v1.proto.enums import conversion_attribution_event_type_pb2 -from google.ads.google_ads.v1.proto.enums import conversion_lag_bucket_pb2 -from google.ads.google_ads.v1.proto.enums import conversion_or_adjustment_lag_bucket_pb2 -from google.ads.google_ads.v1.proto.enums import criterion_category_channel_availability_mode_pb2 -from google.ads.google_ads.v1.proto.enums import criterion_category_locale_availability_mode_pb2 -from google.ads.google_ads.v1.proto.enums import criterion_system_serving_status_pb2 -from google.ads.google_ads.v1.proto.enums import criterion_type_pb2 -from google.ads.google_ads.v1.proto.enums import custom_interest_member_type_pb2 -from google.ads.google_ads.v1.proto.enums import custom_interest_status_pb2 -from google.ads.google_ads.v1.proto.enums import custom_interest_type_pb2 -from google.ads.google_ads.v1.proto.enums import custom_placeholder_field_pb2 -from google.ads.google_ads.v1.proto.enums import customer_match_upload_key_type_pb2 -from google.ads.google_ads.v1.proto.enums import customer_pay_per_conversion_eligibility_failure_reason_pb2 -from google.ads.google_ads.v1.proto.enums import data_driven_model_status_pb2 -from google.ads.google_ads.v1.proto.enums import day_of_week_pb2 -from google.ads.google_ads.v1.proto.enums import device_pb2 -from google.ads.google_ads.v1.proto.enums import display_ad_format_setting_pb2 -from google.ads.google_ads.v1.proto.enums import display_upload_product_type_pb2 -from google.ads.google_ads.v1.proto.enums import dsa_page_feed_criterion_field_pb2 -from google.ads.google_ads.v1.proto.enums import education_placeholder_field_pb2 -from google.ads.google_ads.v1.proto.enums import extension_setting_device_pb2 -from google.ads.google_ads.v1.proto.enums import extension_type_pb2 -from google.ads.google_ads.v1.proto.enums import external_conversion_source_pb2 -from google.ads.google_ads.v1.proto.enums import feed_attribute_type_pb2 -from google.ads.google_ads.v1.proto.enums import feed_item_quality_approval_status_pb2 -from google.ads.google_ads.v1.proto.enums import feed_item_quality_disapproval_reason_pb2 -from google.ads.google_ads.v1.proto.enums import feed_item_status_pb2 -from google.ads.google_ads.v1.proto.enums import feed_item_target_device_pb2 -from google.ads.google_ads.v1.proto.enums import feed_item_target_type_pb2 -from google.ads.google_ads.v1.proto.enums import feed_item_validation_status_pb2 -from google.ads.google_ads.v1.proto.enums import feed_link_status_pb2 -from google.ads.google_ads.v1.proto.enums import feed_mapping_criterion_type_pb2 -from google.ads.google_ads.v1.proto.enums import feed_mapping_status_pb2 -from google.ads.google_ads.v1.proto.enums import feed_origin_pb2 -from google.ads.google_ads.v1.proto.enums import feed_status_pb2 -from google.ads.google_ads.v1.proto.enums import flight_placeholder_field_pb2 -from google.ads.google_ads.v1.proto.enums import frequency_cap_event_type_pb2 -from google.ads.google_ads.v1.proto.enums import frequency_cap_level_pb2 -from google.ads.google_ads.v1.proto.enums import frequency_cap_time_unit_pb2 -from google.ads.google_ads.v1.proto.enums import gender_type_pb2 -from google.ads.google_ads.v1.proto.enums import geo_target_constant_status_pb2 -from google.ads.google_ads.v1.proto.enums import geo_targeting_restriction_pb2 -from google.ads.google_ads.v1.proto.enums import geo_targeting_type_pb2 -from google.ads.google_ads.v1.proto.enums import google_ads_field_category_pb2 -from google.ads.google_ads.v1.proto.enums import google_ads_field_data_type_pb2 -from google.ads.google_ads.v1.proto.enums import hotel_date_selection_type_pb2 -from google.ads.google_ads.v1.proto.enums import hotel_placeholder_field_pb2 -from google.ads.google_ads.v1.proto.enums import hotel_rate_type_pb2 -from google.ads.google_ads.v1.proto.enums import income_range_type_pb2 -from google.ads.google_ads.v1.proto.enums import interaction_event_type_pb2 -from google.ads.google_ads.v1.proto.enums import interaction_type_pb2 -from google.ads.google_ads.v1.proto.enums import job_placeholder_field_pb2 -from google.ads.google_ads.v1.proto.enums import keyword_match_type_pb2 -from google.ads.google_ads.v1.proto.enums import keyword_plan_competition_level_pb2 -from google.ads.google_ads.v1.proto.enums import keyword_plan_forecast_interval_pb2 -from google.ads.google_ads.v1.proto.enums import keyword_plan_network_pb2 -from google.ads.google_ads.v1.proto.enums import label_status_pb2 -from google.ads.google_ads.v1.proto.enums import legacy_app_install_ad_app_store_pb2 -from google.ads.google_ads.v1.proto.enums import listing_custom_attribute_index_pb2 -from google.ads.google_ads.v1.proto.enums import listing_group_type_pb2 -from google.ads.google_ads.v1.proto.enums import local_placeholder_field_pb2 -from google.ads.google_ads.v1.proto.enums import location_extension_targeting_criterion_field_pb2 -from google.ads.google_ads.v1.proto.enums import location_group_radius_units_pb2 -from google.ads.google_ads.v1.proto.enums import location_placeholder_field_pb2 -from google.ads.google_ads.v1.proto.enums import manager_link_status_pb2 -from google.ads.google_ads.v1.proto.enums import matching_function_context_type_pb2 -from google.ads.google_ads.v1.proto.enums import matching_function_operator_pb2 -from google.ads.google_ads.v1.proto.enums import media_type_pb2 -from google.ads.google_ads.v1.proto.enums import merchant_center_link_status_pb2 -from google.ads.google_ads.v1.proto.enums import message_placeholder_field_pb2 -from google.ads.google_ads.v1.proto.enums import mime_type_pb2 -from google.ads.google_ads.v1.proto.enums import minute_of_hour_pb2 -from google.ads.google_ads.v1.proto.enums import mobile_device_type_pb2 -from google.ads.google_ads.v1.proto.enums import month_of_year_pb2 -from google.ads.google_ads.v1.proto.enums import mutate_job_status_pb2 -from google.ads.google_ads.v1.proto.enums import negative_geo_target_type_pb2 -from google.ads.google_ads.v1.proto.enums import operating_system_version_operator_type_pb2 -from google.ads.google_ads.v1.proto.enums import page_one_promoted_strategy_goal_pb2 -from google.ads.google_ads.v1.proto.enums import parental_status_type_pb2 -from google.ads.google_ads.v1.proto.enums import payment_mode_pb2 -from google.ads.google_ads.v1.proto.enums import placeholder_type_pb2 -from google.ads.google_ads.v1.proto.enums import placement_type_pb2 -from google.ads.google_ads.v1.proto.enums import policy_approval_status_pb2 -from google.ads.google_ads.v1.proto.enums import policy_review_status_pb2 -from google.ads.google_ads.v1.proto.enums import policy_topic_entry_type_pb2 -from google.ads.google_ads.v1.proto.enums import policy_topic_evidence_destination_mismatch_url_type_pb2 -from google.ads.google_ads.v1.proto.enums import policy_topic_evidence_destination_not_working_device_pb2 -from google.ads.google_ads.v1.proto.enums import positive_geo_target_type_pb2 -from google.ads.google_ads.v1.proto.enums import preferred_content_type_pb2 -from google.ads.google_ads.v1.proto.enums import price_extension_price_qualifier_pb2 -from google.ads.google_ads.v1.proto.enums import price_extension_price_unit_pb2 -from google.ads.google_ads.v1.proto.enums import price_extension_type_pb2 -from google.ads.google_ads.v1.proto.enums import price_placeholder_field_pb2 -from google.ads.google_ads.v1.proto.enums import product_bidding_category_level_pb2 -from google.ads.google_ads.v1.proto.enums import product_bidding_category_status_pb2 -from google.ads.google_ads.v1.proto.enums import product_channel_exclusivity_pb2 -from google.ads.google_ads.v1.proto.enums import product_channel_pb2 -from google.ads.google_ads.v1.proto.enums import product_condition_pb2 -from google.ads.google_ads.v1.proto.enums import product_type_level_pb2 -from google.ads.google_ads.v1.proto.enums import promotion_extension_discount_modifier_pb2 -from google.ads.google_ads.v1.proto.enums import promotion_extension_occasion_pb2 -from google.ads.google_ads.v1.proto.enums import promotion_placeholder_field_pb2 -from google.ads.google_ads.v1.proto.enums import proximity_radius_units_pb2 -from google.ads.google_ads.v1.proto.enums import quality_score_bucket_pb2 -from google.ads.google_ads.v1.proto.enums import real_estate_placeholder_field_pb2 -from google.ads.google_ads.v1.proto.enums import recommendation_type_pb2 -from google.ads.google_ads.v1.proto.enums import search_engine_results_page_type_pb2 -from google.ads.google_ads.v1.proto.enums import search_term_match_type_pb2 -from google.ads.google_ads.v1.proto.enums import search_term_targeting_status_pb2 -from google.ads.google_ads.v1.proto.enums import served_asset_field_type_pb2 -from google.ads.google_ads.v1.proto.enums import shared_set_status_pb2 -from google.ads.google_ads.v1.proto.enums import shared_set_type_pb2 -from google.ads.google_ads.v1.proto.enums import simulation_modification_method_pb2 -from google.ads.google_ads.v1.proto.enums import simulation_type_pb2 -from google.ads.google_ads.v1.proto.enums import sitelink_placeholder_field_pb2 -from google.ads.google_ads.v1.proto.enums import slot_pb2 -from google.ads.google_ads.v1.proto.enums import spending_limit_type_pb2 -from google.ads.google_ads.v1.proto.enums import structured_snippet_placeholder_field_pb2 -from google.ads.google_ads.v1.proto.enums import system_managed_entity_source_pb2 -from google.ads.google_ads.v1.proto.enums import target_cpa_opt_in_recommendation_goal_pb2 -from google.ads.google_ads.v1.proto.enums import target_impression_share_location_pb2 -from google.ads.google_ads.v1.proto.enums import targeting_dimension_pb2 -from google.ads.google_ads.v1.proto.enums import time_type_pb2 -from google.ads.google_ads.v1.proto.enums import tracking_code_page_format_pb2 -from google.ads.google_ads.v1.proto.enums import tracking_code_type_pb2 -from google.ads.google_ads.v1.proto.enums import travel_placeholder_field_pb2 -from google.ads.google_ads.v1.proto.enums import user_interest_taxonomy_type_pb2 -from google.ads.google_ads.v1.proto.enums import user_list_access_status_pb2 -from google.ads.google_ads.v1.proto.enums import user_list_closing_reason_pb2 -from google.ads.google_ads.v1.proto.enums import user_list_combined_rule_operator_pb2 -from google.ads.google_ads.v1.proto.enums import user_list_crm_data_source_type_pb2 -from google.ads.google_ads.v1.proto.enums import user_list_date_rule_item_operator_pb2 -from google.ads.google_ads.v1.proto.enums import user_list_logical_rule_operator_pb2 -from google.ads.google_ads.v1.proto.enums import user_list_membership_status_pb2 -from google.ads.google_ads.v1.proto.enums import user_list_number_rule_item_operator_pb2 -from google.ads.google_ads.v1.proto.enums import user_list_prepopulation_status_pb2 -from google.ads.google_ads.v1.proto.enums import user_list_rule_type_pb2 -from google.ads.google_ads.v1.proto.enums import user_list_size_range_pb2 -from google.ads.google_ads.v1.proto.enums import user_list_string_rule_item_operator_pb2 -from google.ads.google_ads.v1.proto.enums import user_list_type_pb2 -from google.ads.google_ads.v1.proto.enums import vanity_pharma_display_url_mode_pb2 -from google.ads.google_ads.v1.proto.enums import vanity_pharma_text_pb2 -from google.ads.google_ads.v1.proto.enums import webpage_condition_operand_pb2 -from google.ads.google_ads.v1.proto.enums import webpage_condition_operator_pb2 -from google.ads.google_ads.v1.proto.errors import account_budget_proposal_error_pb2 -from google.ads.google_ads.v1.proto.errors import ad_customizer_error_pb2 -from google.ads.google_ads.v1.proto.errors import ad_error_pb2 -from google.ads.google_ads.v1.proto.errors import ad_group_ad_error_pb2 -from google.ads.google_ads.v1.proto.errors import ad_group_bid_modifier_error_pb2 -from google.ads.google_ads.v1.proto.errors import ad_group_criterion_error_pb2 -from google.ads.google_ads.v1.proto.errors import ad_group_error_pb2 -from google.ads.google_ads.v1.proto.errors import ad_group_feed_error_pb2 -from google.ads.google_ads.v1.proto.errors import ad_parameter_error_pb2 -from google.ads.google_ads.v1.proto.errors import ad_sharing_error_pb2 -from google.ads.google_ads.v1.proto.errors import adx_error_pb2 -from google.ads.google_ads.v1.proto.errors import asset_error_pb2 -from google.ads.google_ads.v1.proto.errors import authentication_error_pb2 -from google.ads.google_ads.v1.proto.errors import authorization_error_pb2 -from google.ads.google_ads.v1.proto.errors import bidding_error_pb2 -from google.ads.google_ads.v1.proto.errors import bidding_strategy_error_pb2 -from google.ads.google_ads.v1.proto.errors import billing_setup_error_pb2 -from google.ads.google_ads.v1.proto.errors import campaign_budget_error_pb2 -from google.ads.google_ads.v1.proto.errors import campaign_criterion_error_pb2 -from google.ads.google_ads.v1.proto.errors import campaign_draft_error_pb2 -from google.ads.google_ads.v1.proto.errors import campaign_error_pb2 -from google.ads.google_ads.v1.proto.errors import campaign_experiment_error_pb2 -from google.ads.google_ads.v1.proto.errors import campaign_feed_error_pb2 -from google.ads.google_ads.v1.proto.errors import campaign_shared_set_error_pb2 -from google.ads.google_ads.v1.proto.errors import change_status_error_pb2 -from google.ads.google_ads.v1.proto.errors import collection_size_error_pb2 -from google.ads.google_ads.v1.proto.errors import context_error_pb2 -from google.ads.google_ads.v1.proto.errors import conversion_action_error_pb2 -from google.ads.google_ads.v1.proto.errors import conversion_adjustment_upload_error_pb2 -from google.ads.google_ads.v1.proto.errors import conversion_upload_error_pb2 -from google.ads.google_ads.v1.proto.errors import country_code_error_pb2 -from google.ads.google_ads.v1.proto.errors import criterion_error_pb2 -from google.ads.google_ads.v1.proto.errors import custom_interest_error_pb2 -from google.ads.google_ads.v1.proto.errors import customer_client_link_error_pb2 -from google.ads.google_ads.v1.proto.errors import customer_error_pb2 -from google.ads.google_ads.v1.proto.errors import customer_feed_error_pb2 -from google.ads.google_ads.v1.proto.errors import customer_manager_link_error_pb2 -from google.ads.google_ads.v1.proto.errors import database_error_pb2 -from google.ads.google_ads.v1.proto.errors import date_error_pb2 -from google.ads.google_ads.v1.proto.errors import date_range_error_pb2 -from google.ads.google_ads.v1.proto.errors import distinct_error_pb2 -from google.ads.google_ads.v1.proto.errors import enum_error_pb2 -from google.ads.google_ads.v1.proto.errors import errors_pb2 -from google.ads.google_ads.v1.proto.errors import extension_feed_item_error_pb2 -from google.ads.google_ads.v1.proto.errors import extension_setting_error_pb2 -from google.ads.google_ads.v1.proto.errors import feed_attribute_reference_error_pb2 -from google.ads.google_ads.v1.proto.errors import feed_error_pb2 -from google.ads.google_ads.v1.proto.errors import feed_item_error_pb2 -from google.ads.google_ads.v1.proto.errors import feed_item_target_error_pb2 -from google.ads.google_ads.v1.proto.errors import feed_item_validation_error_pb2 -from google.ads.google_ads.v1.proto.errors import feed_mapping_error_pb2 -from google.ads.google_ads.v1.proto.errors import field_error_pb2 -from google.ads.google_ads.v1.proto.errors import field_mask_error_pb2 -from google.ads.google_ads.v1.proto.errors import function_error_pb2 -from google.ads.google_ads.v1.proto.errors import function_parsing_error_pb2 -from google.ads.google_ads.v1.proto.errors import geo_target_constant_suggestion_error_pb2 -from google.ads.google_ads.v1.proto.errors import header_error_pb2 -from google.ads.google_ads.v1.proto.errors import id_error_pb2 -from google.ads.google_ads.v1.proto.errors import image_error_pb2 -from google.ads.google_ads.v1.proto.errors import internal_error_pb2 -from google.ads.google_ads.v1.proto.errors import keyword_plan_ad_group_error_pb2 -from google.ads.google_ads.v1.proto.errors import keyword_plan_campaign_error_pb2 -from google.ads.google_ads.v1.proto.errors import keyword_plan_error_pb2 -from google.ads.google_ads.v1.proto.errors import keyword_plan_idea_error_pb2 -from google.ads.google_ads.v1.proto.errors import keyword_plan_keyword_error_pb2 -from google.ads.google_ads.v1.proto.errors import keyword_plan_negative_keyword_error_pb2 -from google.ads.google_ads.v1.proto.errors import label_error_pb2 -from google.ads.google_ads.v1.proto.errors import language_code_error_pb2 -from google.ads.google_ads.v1.proto.errors import list_operation_error_pb2 -from google.ads.google_ads.v1.proto.errors import manager_link_error_pb2 -from google.ads.google_ads.v1.proto.errors import media_bundle_error_pb2 -from google.ads.google_ads.v1.proto.errors import media_file_error_pb2 -from google.ads.google_ads.v1.proto.errors import media_upload_error_pb2 -from google.ads.google_ads.v1.proto.errors import multiplier_error_pb2 -from google.ads.google_ads.v1.proto.errors import mutate_error_pb2 -from google.ads.google_ads.v1.proto.errors import mutate_job_error_pb2 -from google.ads.google_ads.v1.proto.errors import new_resource_creation_error_pb2 -from google.ads.google_ads.v1.proto.errors import not_empty_error_pb2 -from google.ads.google_ads.v1.proto.errors import not_whitelisted_error_pb2 -from google.ads.google_ads.v1.proto.errors import null_error_pb2 -from google.ads.google_ads.v1.proto.errors import operation_access_denied_error_pb2 -from google.ads.google_ads.v1.proto.errors import operator_error_pb2 -from google.ads.google_ads.v1.proto.errors import partial_failure_error_pb2 -from google.ads.google_ads.v1.proto.errors import policy_finding_error_pb2 -from google.ads.google_ads.v1.proto.errors import policy_validation_parameter_error_pb2 -from google.ads.google_ads.v1.proto.errors import policy_violation_error_pb2 -from google.ads.google_ads.v1.proto.errors import query_error_pb2 -from google.ads.google_ads.v1.proto.errors import quota_error_pb2 -from google.ads.google_ads.v1.proto.errors import range_error_pb2 -from google.ads.google_ads.v1.proto.errors import recommendation_error_pb2 -from google.ads.google_ads.v1.proto.errors import region_code_error_pb2 -from google.ads.google_ads.v1.proto.errors import request_error_pb2 -from google.ads.google_ads.v1.proto.errors import resource_access_denied_error_pb2 -from google.ads.google_ads.v1.proto.errors import resource_count_limit_exceeded_error_pb2 -from google.ads.google_ads.v1.proto.errors import setting_error_pb2 -from google.ads.google_ads.v1.proto.errors import shared_criterion_error_pb2 -from google.ads.google_ads.v1.proto.errors import shared_set_error_pb2 -from google.ads.google_ads.v1.proto.errors import size_limit_error_pb2 -from google.ads.google_ads.v1.proto.errors import string_format_error_pb2 -from google.ads.google_ads.v1.proto.errors import string_length_error_pb2 -from google.ads.google_ads.v1.proto.errors import url_field_error_pb2 -from google.ads.google_ads.v1.proto.errors import user_list_error_pb2 -from google.ads.google_ads.v1.proto.errors import youtube_video_registration_error_pb2 -from google.ads.google_ads.v1.proto.resources import account_budget_pb2 -from google.ads.google_ads.v1.proto.resources import account_budget_proposal_pb2 -from google.ads.google_ads.v1.proto.resources import ad_group_ad_label_pb2 -from google.ads.google_ads.v1.proto.resources import ad_group_ad_pb2 -from google.ads.google_ads.v1.proto.resources import ad_group_audience_view_pb2 -from google.ads.google_ads.v1.proto.resources import ad_group_bid_modifier_pb2 -from google.ads.google_ads.v1.proto.resources import ad_group_criterion_label_pb2 -from google.ads.google_ads.v1.proto.resources import ad_group_criterion_pb2 -from google.ads.google_ads.v1.proto.resources import ad_group_criterion_simulation_pb2 -from google.ads.google_ads.v1.proto.resources import ad_group_extension_setting_pb2 -from google.ads.google_ads.v1.proto.resources import ad_group_feed_pb2 -from google.ads.google_ads.v1.proto.resources import ad_group_label_pb2 -from google.ads.google_ads.v1.proto.resources import ad_group_pb2 -from google.ads.google_ads.v1.proto.resources import ad_group_simulation_pb2 -from google.ads.google_ads.v1.proto.resources import ad_parameter_pb2 -from google.ads.google_ads.v1.proto.resources import ad_pb2 -from google.ads.google_ads.v1.proto.resources import ad_schedule_view_pb2 -from google.ads.google_ads.v1.proto.resources import age_range_view_pb2 -from google.ads.google_ads.v1.proto.resources import asset_pb2 -from google.ads.google_ads.v1.proto.resources import bidding_strategy_pb2 -from google.ads.google_ads.v1.proto.resources import billing_setup_pb2 -from google.ads.google_ads.v1.proto.resources import campaign_audience_view_pb2 -from google.ads.google_ads.v1.proto.resources import campaign_bid_modifier_pb2 -from google.ads.google_ads.v1.proto.resources import campaign_budget_pb2 -from google.ads.google_ads.v1.proto.resources import campaign_criterion_pb2 -from google.ads.google_ads.v1.proto.resources import campaign_criterion_simulation_pb2 -from google.ads.google_ads.v1.proto.resources import campaign_draft_pb2 -from google.ads.google_ads.v1.proto.resources import campaign_experiment_pb2 -from google.ads.google_ads.v1.proto.resources import campaign_extension_setting_pb2 -from google.ads.google_ads.v1.proto.resources import campaign_feed_pb2 -from google.ads.google_ads.v1.proto.resources import campaign_label_pb2 -from google.ads.google_ads.v1.proto.resources import campaign_pb2 -from google.ads.google_ads.v1.proto.resources import campaign_shared_set_pb2 -from google.ads.google_ads.v1.proto.resources import carrier_constant_pb2 -from google.ads.google_ads.v1.proto.resources import change_status_pb2 -from google.ads.google_ads.v1.proto.resources import click_view_pb2 -from google.ads.google_ads.v1.proto.resources import conversion_action_pb2 -from google.ads.google_ads.v1.proto.resources import custom_interest_pb2 -from google.ads.google_ads.v1.proto.resources import customer_client_link_pb2 -from google.ads.google_ads.v1.proto.resources import customer_client_pb2 -from google.ads.google_ads.v1.proto.resources import customer_extension_setting_pb2 -from google.ads.google_ads.v1.proto.resources import customer_feed_pb2 -from google.ads.google_ads.v1.proto.resources import customer_label_pb2 -from google.ads.google_ads.v1.proto.resources import customer_manager_link_pb2 -from google.ads.google_ads.v1.proto.resources import customer_negative_criterion_pb2 -from google.ads.google_ads.v1.proto.resources import customer_pb2 -from google.ads.google_ads.v1.proto.resources import detail_placement_view_pb2 -from google.ads.google_ads.v1.proto.resources import display_keyword_view_pb2 -from google.ads.google_ads.v1.proto.resources import domain_category_pb2 -from google.ads.google_ads.v1.proto.resources import dynamic_search_ads_search_term_view_pb2 -from google.ads.google_ads.v1.proto.resources import expanded_landing_page_view_pb2 -from google.ads.google_ads.v1.proto.resources import extension_feed_item_pb2 -from google.ads.google_ads.v1.proto.resources import feed_item_pb2 -from google.ads.google_ads.v1.proto.resources import feed_item_target_pb2 -from google.ads.google_ads.v1.proto.resources import feed_mapping_pb2 -from google.ads.google_ads.v1.proto.resources import feed_pb2 -from google.ads.google_ads.v1.proto.resources import feed_placeholder_view_pb2 -from google.ads.google_ads.v1.proto.resources import gender_view_pb2 -from google.ads.google_ads.v1.proto.resources import geo_target_constant_pb2 -from google.ads.google_ads.v1.proto.resources import geographic_view_pb2 -from google.ads.google_ads.v1.proto.resources import google_ads_field_pb2 -from google.ads.google_ads.v1.proto.resources import group_placement_view_pb2 -from google.ads.google_ads.v1.proto.resources import hotel_group_view_pb2 -from google.ads.google_ads.v1.proto.resources import hotel_performance_view_pb2 -from google.ads.google_ads.v1.proto.resources import keyword_plan_ad_group_pb2 -from google.ads.google_ads.v1.proto.resources import keyword_plan_campaign_pb2 -from google.ads.google_ads.v1.proto.resources import keyword_plan_keyword_pb2 -from google.ads.google_ads.v1.proto.resources import keyword_plan_negative_keyword_pb2 -from google.ads.google_ads.v1.proto.resources import keyword_plan_pb2 -from google.ads.google_ads.v1.proto.resources import keyword_view_pb2 -from google.ads.google_ads.v1.proto.resources import label_pb2 -from google.ads.google_ads.v1.proto.resources import landing_page_view_pb2 -from google.ads.google_ads.v1.proto.resources import language_constant_pb2 -from google.ads.google_ads.v1.proto.resources import location_view_pb2 -from google.ads.google_ads.v1.proto.resources import managed_placement_view_pb2 -from google.ads.google_ads.v1.proto.resources import media_file_pb2 -from google.ads.google_ads.v1.proto.resources import merchant_center_link_pb2 -from google.ads.google_ads.v1.proto.resources import mobile_app_category_constant_pb2 -from google.ads.google_ads.v1.proto.resources import mobile_device_constant_pb2 -from google.ads.google_ads.v1.proto.resources import mutate_job_pb2 -from google.ads.google_ads.v1.proto.resources import operating_system_version_constant_pb2 -from google.ads.google_ads.v1.proto.resources import paid_organic_search_term_view_pb2 -from google.ads.google_ads.v1.proto.resources import parental_status_view_pb2 -from google.ads.google_ads.v1.proto.resources import payments_account_pb2 -from google.ads.google_ads.v1.proto.resources import product_bidding_category_constant_pb2 -from google.ads.google_ads.v1.proto.resources import product_group_view_pb2 -from google.ads.google_ads.v1.proto.resources import recommendation_pb2 -from google.ads.google_ads.v1.proto.resources import remarketing_action_pb2 -from google.ads.google_ads.v1.proto.resources import search_term_view_pb2 -from google.ads.google_ads.v1.proto.resources import shared_criterion_pb2 -from google.ads.google_ads.v1.proto.resources import shared_set_pb2 -from google.ads.google_ads.v1.proto.resources import shopping_performance_view_pb2 -from google.ads.google_ads.v1.proto.resources import topic_constant_pb2 -from google.ads.google_ads.v1.proto.resources import topic_view_pb2 -from google.ads.google_ads.v1.proto.resources import user_interest_pb2 -from google.ads.google_ads.v1.proto.resources import user_list_pb2 -from google.ads.google_ads.v1.proto.resources import video_pb2 -from google.ads.google_ads.v1.proto.services import account_budget_proposal_service_pb2 -from google.ads.google_ads.v1.proto.services import account_budget_service_pb2 -from google.ads.google_ads.v1.proto.services import ad_group_ad_label_service_pb2 -from google.ads.google_ads.v1.proto.services import ad_group_ad_service_pb2 -from google.ads.google_ads.v1.proto.services import ad_group_audience_view_service_pb2 -from google.ads.google_ads.v1.proto.services import ad_group_bid_modifier_service_pb2 -from google.ads.google_ads.v1.proto.services import ad_group_criterion_label_service_pb2 -from google.ads.google_ads.v1.proto.services import ad_group_criterion_service_pb2 -from google.ads.google_ads.v1.proto.services import ad_group_criterion_simulation_service_pb2 -from google.ads.google_ads.v1.proto.services import ad_group_extension_setting_service_pb2 -from google.ads.google_ads.v1.proto.services import ad_group_feed_service_pb2 -from google.ads.google_ads.v1.proto.services import ad_group_label_service_pb2 -from google.ads.google_ads.v1.proto.services import ad_group_service_pb2 -from google.ads.google_ads.v1.proto.services import ad_group_simulation_service_pb2 -from google.ads.google_ads.v1.proto.services import ad_parameter_service_pb2 -from google.ads.google_ads.v1.proto.services import ad_schedule_view_service_pb2 -from google.ads.google_ads.v1.proto.services import age_range_view_service_pb2 -from google.ads.google_ads.v1.proto.services import asset_service_pb2 -from google.ads.google_ads.v1.proto.services import bidding_strategy_service_pb2 -from google.ads.google_ads.v1.proto.services import billing_setup_service_pb2 -from google.ads.google_ads.v1.proto.services import campaign_audience_view_service_pb2 -from google.ads.google_ads.v1.proto.services import campaign_bid_modifier_service_pb2 -from google.ads.google_ads.v1.proto.services import campaign_budget_service_pb2 -from google.ads.google_ads.v1.proto.services import campaign_criterion_service_pb2 -from google.ads.google_ads.v1.proto.services import campaign_criterion_simulation_service_pb2 -from google.ads.google_ads.v1.proto.services import campaign_draft_service_pb2 -from google.ads.google_ads.v1.proto.services import campaign_experiment_service_pb2 -from google.ads.google_ads.v1.proto.services import campaign_extension_setting_service_pb2 -from google.ads.google_ads.v1.proto.services import campaign_feed_service_pb2 -from google.ads.google_ads.v1.proto.services import campaign_label_service_pb2 -from google.ads.google_ads.v1.proto.services import campaign_service_pb2 -from google.ads.google_ads.v1.proto.services import campaign_shared_set_service_pb2 -from google.ads.google_ads.v1.proto.services import carrier_constant_service_pb2 -from google.ads.google_ads.v1.proto.services import change_status_service_pb2 -from google.ads.google_ads.v1.proto.services import click_view_service_pb2 -from google.ads.google_ads.v1.proto.services import conversion_action_service_pb2 -from google.ads.google_ads.v1.proto.services import conversion_adjustment_upload_service_pb2 -from google.ads.google_ads.v1.proto.services import conversion_upload_service_pb2 -from google.ads.google_ads.v1.proto.services import custom_interest_service_pb2 -from google.ads.google_ads.v1.proto.services import customer_client_link_service_pb2 -from google.ads.google_ads.v1.proto.services import customer_client_service_pb2 -from google.ads.google_ads.v1.proto.services import customer_extension_setting_service_pb2 -from google.ads.google_ads.v1.proto.services import customer_feed_service_pb2 -from google.ads.google_ads.v1.proto.services import customer_label_service_pb2 -from google.ads.google_ads.v1.proto.services import customer_manager_link_service_pb2 -from google.ads.google_ads.v1.proto.services import customer_negative_criterion_service_pb2 -from google.ads.google_ads.v1.proto.services import customer_service_pb2 -from google.ads.google_ads.v1.proto.services import detail_placement_view_service_pb2 -from google.ads.google_ads.v1.proto.services import display_keyword_view_service_pb2 -from google.ads.google_ads.v1.proto.services import domain_category_service_pb2 -from google.ads.google_ads.v1.proto.services import dynamic_search_ads_search_term_view_service_pb2 -from google.ads.google_ads.v1.proto.services import expanded_landing_page_view_service_pb2 -from google.ads.google_ads.v1.proto.services import extension_feed_item_service_pb2 -from google.ads.google_ads.v1.proto.services import feed_item_service_pb2 -from google.ads.google_ads.v1.proto.services import feed_item_target_service_pb2 -from google.ads.google_ads.v1.proto.services import feed_mapping_service_pb2 -from google.ads.google_ads.v1.proto.services import feed_placeholder_view_service_pb2 -from google.ads.google_ads.v1.proto.services import feed_service_pb2 -from google.ads.google_ads.v1.proto.services import gender_view_service_pb2 -from google.ads.google_ads.v1.proto.services import geo_target_constant_service_pb2 -from google.ads.google_ads.v1.proto.services import geographic_view_service_pb2 -from google.ads.google_ads.v1.proto.services import google_ads_field_service_pb2 -from google.ads.google_ads.v1.proto.services import google_ads_service_pb2 -from google.ads.google_ads.v1.proto.services import group_placement_view_service_pb2 -from google.ads.google_ads.v1.proto.services import hotel_group_view_service_pb2 -from google.ads.google_ads.v1.proto.services import hotel_performance_view_service_pb2 -from google.ads.google_ads.v1.proto.services import keyword_plan_ad_group_service_pb2 -from google.ads.google_ads.v1.proto.services import keyword_plan_campaign_service_pb2 -from google.ads.google_ads.v1.proto.services import keyword_plan_idea_service_pb2 -from google.ads.google_ads.v1.proto.services import keyword_plan_keyword_service_pb2 -from google.ads.google_ads.v1.proto.services import keyword_plan_negative_keyword_service_pb2 -from google.ads.google_ads.v1.proto.services import keyword_plan_service_pb2 -from google.ads.google_ads.v1.proto.services import keyword_view_service_pb2 -from google.ads.google_ads.v1.proto.services import label_service_pb2 -from google.ads.google_ads.v1.proto.services import landing_page_view_service_pb2 -from google.ads.google_ads.v1.proto.services import language_constant_service_pb2 -from google.ads.google_ads.v1.proto.services import location_view_service_pb2 -from google.ads.google_ads.v1.proto.services import managed_placement_view_service_pb2 -from google.ads.google_ads.v1.proto.services import media_file_service_pb2 -from google.ads.google_ads.v1.proto.services import merchant_center_link_service_pb2 -from google.ads.google_ads.v1.proto.services import mobile_app_category_constant_service_pb2 -from google.ads.google_ads.v1.proto.services import mobile_device_constant_service_pb2 -from google.ads.google_ads.v1.proto.services import mutate_job_service_pb2 -from google.ads.google_ads.v1.proto.services import operating_system_version_constant_service_pb2 -from google.ads.google_ads.v1.proto.services import paid_organic_search_term_view_service_pb2 -from google.ads.google_ads.v1.proto.services import parental_status_view_service_pb2 -from google.ads.google_ads.v1.proto.services import payments_account_service_pb2 -from google.ads.google_ads.v1.proto.services import product_bidding_category_constant_service_pb2 -from google.ads.google_ads.v1.proto.services import product_group_view_service_pb2 -from google.ads.google_ads.v1.proto.services import recommendation_service_pb2 -from google.ads.google_ads.v1.proto.services import remarketing_action_service_pb2 -from google.ads.google_ads.v1.proto.services import search_term_view_service_pb2 -from google.ads.google_ads.v1.proto.services import shared_criterion_service_pb2 -from google.ads.google_ads.v1.proto.services import shared_set_service_pb2 -from google.ads.google_ads.v1.proto.services import shopping_performance_view_service_pb2 -from google.ads.google_ads.v1.proto.services import topic_constant_service_pb2 -from google.ads.google_ads.v1.proto.services import topic_view_service_pb2 -from google.ads.google_ads.v1.proto.services import user_interest_service_pb2 -from google.ads.google_ads.v1.proto.services import user_list_service_pb2 -from google.ads.google_ads.v1.proto.services import video_service_pb2 -from google.longrunning import operations_pb2 -from google.protobuf import any_pb2 -from google.protobuf import empty_pb2 -from google.protobuf import field_mask_pb2 -from google.protobuf import wrappers_pb2 -from google.rpc import status_pb2 - -_shared_modules = [ - ad_asset_pb2, - ad_type_infos_pb2, - asset_types_pb2, - bidding_pb2, - click_location_pb2, - criteria_pb2, - criterion_category_availability_pb2, - custom_parameter_pb2, - dates_pb2, - explorer_auto_optimizer_setting_pb2, - extensions_pb2, - feed_common_pb2, - final_app_url_pb2, - frequency_cap_pb2, - keyword_plan_common_pb2, - matching_function_pb2, - metrics_pb2, - policy_pb2, - real_time_bidding_setting_pb2, - segments_pb2, - simulation_pb2, - tag_snippet_pb2, - targeting_setting_pb2, - text_label_pb2, - url_collection_pb2, - user_lists_pb2, - value_pb2, - access_reason_pb2, - account_budget_proposal_status_pb2, - account_budget_proposal_type_pb2, - account_budget_status_pb2, - ad_customizer_placeholder_field_pb2, - ad_group_ad_rotation_mode_pb2, - ad_group_ad_status_pb2, - ad_group_criterion_approval_status_pb2, - ad_group_criterion_status_pb2, - ad_group_status_pb2, - ad_group_type_pb2, - ad_network_type_pb2, - ad_serving_optimization_status_pb2, - ad_strength_pb2, - ad_type_pb2, - advertising_channel_sub_type_pb2, - advertising_channel_type_pb2, - affiliate_location_feed_relationship_type_pb2, - affiliate_location_placeholder_field_pb2, - age_range_type_pb2, - app_campaign_app_store_pb2, - app_campaign_bidding_strategy_goal_type_pb2, - app_payment_model_type_pb2, - app_placeholder_field_pb2, - app_store_pb2, - app_url_operating_system_type_pb2, - asset_type_pb2, - attribution_model_pb2, - bid_modifier_source_pb2, - bidding_source_pb2, - bidding_strategy_status_pb2, - bidding_strategy_type_pb2, - billing_setup_status_pb2, - brand_safety_suitability_pb2, - budget_delivery_method_pb2, - budget_period_pb2, - budget_status_pb2, - budget_type_pb2, - call_conversion_reporting_state_pb2, - call_placeholder_field_pb2, - callout_placeholder_field_pb2, - campaign_criterion_status_pb2, - campaign_draft_status_pb2, - campaign_experiment_status_pb2, - campaign_experiment_traffic_split_type_pb2, - campaign_experiment_type_pb2, - campaign_serving_status_pb2, - campaign_shared_set_status_pb2, - campaign_status_pb2, - change_status_operation_pb2, - change_status_resource_type_pb2, - click_type_pb2, - content_label_type_pb2, - conversion_action_category_pb2, - conversion_action_counting_type_pb2, - conversion_action_status_pb2, - conversion_action_type_pb2, - conversion_adjustment_type_pb2, - conversion_attribution_event_type_pb2, - conversion_lag_bucket_pb2, - conversion_or_adjustment_lag_bucket_pb2, - criterion_category_channel_availability_mode_pb2, - criterion_category_locale_availability_mode_pb2, - criterion_system_serving_status_pb2, - criterion_type_pb2, - custom_interest_member_type_pb2, - custom_interest_status_pb2, - custom_interest_type_pb2, - custom_placeholder_field_pb2, - customer_match_upload_key_type_pb2, - customer_pay_per_conversion_eligibility_failure_reason_pb2, - data_driven_model_status_pb2, - day_of_week_pb2, - device_pb2, - display_ad_format_setting_pb2, - display_upload_product_type_pb2, - dsa_page_feed_criterion_field_pb2, - education_placeholder_field_pb2, - extension_setting_device_pb2, - extension_type_pb2, - external_conversion_source_pb2, - feed_attribute_type_pb2, - feed_item_quality_approval_status_pb2, - feed_item_quality_disapproval_reason_pb2, - feed_item_status_pb2, - feed_item_target_device_pb2, - feed_item_target_type_pb2, - feed_item_validation_status_pb2, - feed_link_status_pb2, - feed_mapping_criterion_type_pb2, - feed_mapping_status_pb2, - feed_origin_pb2, - feed_status_pb2, - flight_placeholder_field_pb2, - frequency_cap_event_type_pb2, - frequency_cap_level_pb2, - frequency_cap_time_unit_pb2, - gender_type_pb2, - geo_target_constant_status_pb2, - geo_targeting_restriction_pb2, - geo_targeting_type_pb2, - google_ads_field_category_pb2, - google_ads_field_data_type_pb2, - hotel_date_selection_type_pb2, - hotel_placeholder_field_pb2, - hotel_rate_type_pb2, - income_range_type_pb2, - interaction_event_type_pb2, - interaction_type_pb2, - job_placeholder_field_pb2, - keyword_match_type_pb2, - keyword_plan_competition_level_pb2, - keyword_plan_forecast_interval_pb2, - keyword_plan_network_pb2, - label_status_pb2, - legacy_app_install_ad_app_store_pb2, - listing_custom_attribute_index_pb2, - listing_group_type_pb2, - local_placeholder_field_pb2, - location_extension_targeting_criterion_field_pb2, - location_group_radius_units_pb2, - location_placeholder_field_pb2, - manager_link_status_pb2, - matching_function_context_type_pb2, - matching_function_operator_pb2, - media_type_pb2, - merchant_center_link_status_pb2, - message_placeholder_field_pb2, - mime_type_pb2, - minute_of_hour_pb2, - mobile_device_type_pb2, - month_of_year_pb2, - mutate_job_status_pb2, - negative_geo_target_type_pb2, - operating_system_version_operator_type_pb2, - page_one_promoted_strategy_goal_pb2, - parental_status_type_pb2, - payment_mode_pb2, - placeholder_type_pb2, - placement_type_pb2, - policy_approval_status_pb2, - policy_review_status_pb2, - policy_topic_entry_type_pb2, - policy_topic_evidence_destination_mismatch_url_type_pb2, - policy_topic_evidence_destination_not_working_device_pb2, - positive_geo_target_type_pb2, - preferred_content_type_pb2, - price_extension_price_qualifier_pb2, - price_extension_price_unit_pb2, - price_extension_type_pb2, - price_placeholder_field_pb2, - product_bidding_category_level_pb2, - product_bidding_category_status_pb2, - product_channel_exclusivity_pb2, - product_channel_pb2, - product_condition_pb2, - product_type_level_pb2, - promotion_extension_discount_modifier_pb2, - promotion_extension_occasion_pb2, - promotion_placeholder_field_pb2, - proximity_radius_units_pb2, - quality_score_bucket_pb2, - real_estate_placeholder_field_pb2, - recommendation_type_pb2, - search_engine_results_page_type_pb2, - search_term_match_type_pb2, - search_term_targeting_status_pb2, - served_asset_field_type_pb2, - shared_set_status_pb2, - shared_set_type_pb2, - simulation_modification_method_pb2, - simulation_type_pb2, - sitelink_placeholder_field_pb2, - slot_pb2, - spending_limit_type_pb2, - structured_snippet_placeholder_field_pb2, - system_managed_entity_source_pb2, - target_cpa_opt_in_recommendation_goal_pb2, - target_impression_share_location_pb2, - targeting_dimension_pb2, - time_type_pb2, - tracking_code_page_format_pb2, - tracking_code_type_pb2, - travel_placeholder_field_pb2, - user_interest_taxonomy_type_pb2, - user_list_access_status_pb2, - user_list_closing_reason_pb2, - user_list_combined_rule_operator_pb2, - user_list_crm_data_source_type_pb2, - user_list_date_rule_item_operator_pb2, - user_list_logical_rule_operator_pb2, - user_list_membership_status_pb2, - user_list_number_rule_item_operator_pb2, - user_list_prepopulation_status_pb2, - user_list_rule_type_pb2, - user_list_size_range_pb2, - user_list_string_rule_item_operator_pb2, - user_list_type_pb2, - vanity_pharma_display_url_mode_pb2, - vanity_pharma_text_pb2, - webpage_condition_operand_pb2, - webpage_condition_operator_pb2, - account_budget_proposal_error_pb2, - ad_customizer_error_pb2, - ad_error_pb2, - ad_group_ad_error_pb2, - ad_group_bid_modifier_error_pb2, - ad_group_criterion_error_pb2, - ad_group_error_pb2, - ad_group_feed_error_pb2, - ad_parameter_error_pb2, - ad_sharing_error_pb2, - adx_error_pb2, - asset_error_pb2, - authentication_error_pb2, - authorization_error_pb2, - bidding_error_pb2, - bidding_strategy_error_pb2, - billing_setup_error_pb2, - campaign_budget_error_pb2, - campaign_criterion_error_pb2, - campaign_draft_error_pb2, - campaign_error_pb2, - campaign_experiment_error_pb2, - campaign_feed_error_pb2, - campaign_shared_set_error_pb2, - change_status_error_pb2, - collection_size_error_pb2, - context_error_pb2, - conversion_action_error_pb2, - conversion_adjustment_upload_error_pb2, - conversion_upload_error_pb2, - country_code_error_pb2, - criterion_error_pb2, - custom_interest_error_pb2, - customer_client_link_error_pb2, - customer_error_pb2, - customer_feed_error_pb2, - customer_manager_link_error_pb2, - database_error_pb2, - date_error_pb2, - date_range_error_pb2, - distinct_error_pb2, - enum_error_pb2, - errors_pb2, - extension_feed_item_error_pb2, - extension_setting_error_pb2, - feed_attribute_reference_error_pb2, - feed_error_pb2, - feed_item_error_pb2, - feed_item_target_error_pb2, - feed_item_validation_error_pb2, - feed_mapping_error_pb2, - field_error_pb2, - field_mask_error_pb2, - function_error_pb2, - function_parsing_error_pb2, - geo_target_constant_suggestion_error_pb2, - header_error_pb2, - id_error_pb2, - image_error_pb2, - internal_error_pb2, - keyword_plan_ad_group_error_pb2, - keyword_plan_campaign_error_pb2, - keyword_plan_error_pb2, - keyword_plan_idea_error_pb2, - keyword_plan_keyword_error_pb2, - keyword_plan_negative_keyword_error_pb2, - label_error_pb2, - language_code_error_pb2, - list_operation_error_pb2, - manager_link_error_pb2, - media_bundle_error_pb2, - media_file_error_pb2, - media_upload_error_pb2, - multiplier_error_pb2, - mutate_error_pb2, - mutate_job_error_pb2, - new_resource_creation_error_pb2, - not_empty_error_pb2, - not_whitelisted_error_pb2, - null_error_pb2, - operation_access_denied_error_pb2, - operator_error_pb2, - partial_failure_error_pb2, - policy_finding_error_pb2, - policy_validation_parameter_error_pb2, - policy_violation_error_pb2, - query_error_pb2, - quota_error_pb2, - range_error_pb2, - recommendation_error_pb2, - region_code_error_pb2, - request_error_pb2, - resource_access_denied_error_pb2, - resource_count_limit_exceeded_error_pb2, - setting_error_pb2, - shared_criterion_error_pb2, - shared_set_error_pb2, - size_limit_error_pb2, - string_format_error_pb2, - string_length_error_pb2, - url_field_error_pb2, - user_list_error_pb2, - youtube_video_registration_error_pb2, - account_budget_pb2, - account_budget_proposal_pb2, - ad_group_ad_label_pb2, - ad_group_ad_pb2, - ad_group_audience_view_pb2, - ad_group_bid_modifier_pb2, - ad_group_criterion_label_pb2, - ad_group_criterion_pb2, - ad_group_criterion_simulation_pb2, - ad_group_extension_setting_pb2, - ad_group_feed_pb2, - ad_group_label_pb2, - ad_group_pb2, - ad_group_simulation_pb2, - ad_parameter_pb2, - ad_pb2, - ad_schedule_view_pb2, - age_range_view_pb2, - asset_pb2, - bidding_strategy_pb2, - billing_setup_pb2, - campaign_audience_view_pb2, - campaign_bid_modifier_pb2, - campaign_budget_pb2, - campaign_criterion_pb2, - campaign_criterion_simulation_pb2, - campaign_draft_pb2, - campaign_experiment_pb2, - campaign_extension_setting_pb2, - campaign_feed_pb2, - campaign_label_pb2, - campaign_pb2, - campaign_shared_set_pb2, - carrier_constant_pb2, - change_status_pb2, - click_view_pb2, - conversion_action_pb2, - custom_interest_pb2, - customer_client_link_pb2, - customer_client_pb2, - customer_extension_setting_pb2, - customer_feed_pb2, - customer_label_pb2, - customer_manager_link_pb2, - customer_negative_criterion_pb2, - customer_pb2, - detail_placement_view_pb2, - display_keyword_view_pb2, - domain_category_pb2, - dynamic_search_ads_search_term_view_pb2, - expanded_landing_page_view_pb2, - extension_feed_item_pb2, - feed_item_pb2, - feed_item_target_pb2, - feed_mapping_pb2, - feed_pb2, - feed_placeholder_view_pb2, - gender_view_pb2, - geo_target_constant_pb2, - geographic_view_pb2, - google_ads_field_pb2, - group_placement_view_pb2, - hotel_group_view_pb2, - hotel_performance_view_pb2, - keyword_plan_ad_group_pb2, - keyword_plan_campaign_pb2, - keyword_plan_keyword_pb2, - keyword_plan_negative_keyword_pb2, - keyword_plan_pb2, - keyword_view_pb2, - label_pb2, - landing_page_view_pb2, - language_constant_pb2, - location_view_pb2, - managed_placement_view_pb2, - media_file_pb2, - merchant_center_link_pb2, - mobile_app_category_constant_pb2, - mobile_device_constant_pb2, - mutate_job_pb2, - operating_system_version_constant_pb2, - paid_organic_search_term_view_pb2, - parental_status_view_pb2, - payments_account_pb2, - product_bidding_category_constant_pb2, - product_group_view_pb2, - recommendation_pb2, - remarketing_action_pb2, - search_term_view_pb2, - shared_criterion_pb2, - shared_set_pb2, - shopping_performance_view_pb2, - topic_constant_pb2, - topic_view_pb2, - user_interest_pb2, - user_list_pb2, - video_pb2, - operations_pb2, - any_pb2, - empty_pb2, - field_mask_pb2, - wrappers_pb2, - status_pb2, -] - -_local_modules = [ - account_budget_proposal_service_pb2, - account_budget_service_pb2, - ad_group_ad_label_service_pb2, - ad_group_ad_service_pb2, - ad_group_audience_view_service_pb2, - ad_group_bid_modifier_service_pb2, - ad_group_criterion_label_service_pb2, - ad_group_criterion_service_pb2, - ad_group_criterion_simulation_service_pb2, - ad_group_extension_setting_service_pb2, - ad_group_feed_service_pb2, - ad_group_label_service_pb2, - ad_group_service_pb2, - ad_group_simulation_service_pb2, - ad_parameter_service_pb2, - ad_schedule_view_service_pb2, - age_range_view_service_pb2, - asset_service_pb2, - bidding_strategy_service_pb2, - billing_setup_service_pb2, - campaign_audience_view_service_pb2, - campaign_bid_modifier_service_pb2, - campaign_budget_service_pb2, - campaign_criterion_service_pb2, - campaign_criterion_simulation_service_pb2, - campaign_draft_service_pb2, - campaign_experiment_service_pb2, - campaign_extension_setting_service_pb2, - campaign_feed_service_pb2, - campaign_label_service_pb2, - campaign_service_pb2, - campaign_shared_set_service_pb2, - carrier_constant_service_pb2, - change_status_service_pb2, - click_view_service_pb2, - conversion_action_service_pb2, - conversion_adjustment_upload_service_pb2, - conversion_upload_service_pb2, - custom_interest_service_pb2, - customer_client_link_service_pb2, - customer_client_service_pb2, - customer_extension_setting_service_pb2, - customer_feed_service_pb2, - customer_label_service_pb2, - customer_manager_link_service_pb2, - customer_negative_criterion_service_pb2, - customer_service_pb2, - detail_placement_view_service_pb2, - display_keyword_view_service_pb2, - domain_category_service_pb2, - dynamic_search_ads_search_term_view_service_pb2, - expanded_landing_page_view_service_pb2, - extension_feed_item_service_pb2, - feed_item_service_pb2, - feed_item_target_service_pb2, - feed_mapping_service_pb2, - feed_placeholder_view_service_pb2, - feed_service_pb2, - gender_view_service_pb2, - geo_target_constant_service_pb2, - geographic_view_service_pb2, - google_ads_field_service_pb2, - google_ads_service_pb2, - group_placement_view_service_pb2, - hotel_group_view_service_pb2, - hotel_performance_view_service_pb2, - keyword_plan_ad_group_service_pb2, - keyword_plan_campaign_service_pb2, - keyword_plan_idea_service_pb2, - keyword_plan_keyword_service_pb2, - keyword_plan_negative_keyword_service_pb2, - keyword_plan_service_pb2, - keyword_view_service_pb2, - label_service_pb2, - landing_page_view_service_pb2, - language_constant_service_pb2, - location_view_service_pb2, - managed_placement_view_service_pb2, - media_file_service_pb2, - merchant_center_link_service_pb2, - mobile_app_category_constant_service_pb2, - mobile_device_constant_service_pb2, - mutate_job_service_pb2, - operating_system_version_constant_service_pb2, - paid_organic_search_term_view_service_pb2, - parental_status_view_service_pb2, - payments_account_service_pb2, - product_bidding_category_constant_service_pb2, - product_group_view_service_pb2, - recommendation_service_pb2, - remarketing_action_service_pb2, - search_term_view_service_pb2, - shared_criterion_service_pb2, - shared_set_service_pb2, - shopping_performance_view_service_pb2, - topic_constant_service_pb2, - topic_view_service_pb2, - user_interest_service_pb2, - user_list_service_pb2, - video_service_pb2, -] - -names = [] - -for module in _shared_modules: - for name, message in get_messages(module).items(): - setattr(sys.modules[__name__], name, message) - names.append(name) -for module in _local_modules: - for name, message in get_messages(module).items(): - message.__module__ = 'google.ads.googleads_v1.types' - setattr(sys.modules[__name__], name, message) - names.append(name) - -__all__ = tuple(sorted(names)) diff --git a/google/ads/google_ads/v4/__init__.py b/google/ads/google_ads/v4/__init__.py new file mode 100644 index 000000000..e61558448 --- /dev/null +++ b/google/ads/google_ads/v4/__init__.py @@ -0,0 +1,296 @@ +# Copyright 2020 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. + + +import importlib +import sys + +from google.ads.google_ads import util + + +if sys.version_info < (3, 7): + raise ImportError('This module requires Python 3.7 or later.') + + +_lazy_name_to_package_map = dict( + account_budget_proposal_service_client='google.ads.google_ads.v4.services', + account_budget_service_client='google.ads.google_ads.v4.services', + account_link_service_client='google.ads.google_ads.v4.services', + ad_group_ad_asset_view_service_client='google.ads.google_ads.v4.services', + ad_group_ad_label_service_client='google.ads.google_ads.v4.services', + ad_group_ad_service_client='google.ads.google_ads.v4.services', + ad_group_audience_view_service_client='google.ads.google_ads.v4.services', + ad_group_bid_modifier_service_client='google.ads.google_ads.v4.services', + ad_group_criterion_label_service_client='google.ads.google_ads.v4.services', + ad_group_criterion_service_client='google.ads.google_ads.v4.services', + ad_group_criterion_simulation_service_client='google.ads.google_ads.v4.services', + ad_group_extension_setting_service_client='google.ads.google_ads.v4.services', + ad_group_feed_service_client='google.ads.google_ads.v4.services', + ad_group_label_service_client='google.ads.google_ads.v4.services', + ad_group_service_client='google.ads.google_ads.v4.services', + ad_group_simulation_service_client='google.ads.google_ads.v4.services', + ad_parameter_service_client='google.ads.google_ads.v4.services', + ad_schedule_view_service_client='google.ads.google_ads.v4.services', + ad_service_client='google.ads.google_ads.v4.services', + age_range_view_service_client='google.ads.google_ads.v4.services', + asset_service_client='google.ads.google_ads.v4.services', + batch_job_service_client='google.ads.google_ads.v4.services', + bidding_strategy_service_client='google.ads.google_ads.v4.services', + billing_setup_service_client='google.ads.google_ads.v4.services', + campaign_audience_view_service_client='google.ads.google_ads.v4.services', + campaign_bid_modifier_service_client='google.ads.google_ads.v4.services', + campaign_budget_service_client='google.ads.google_ads.v4.services', + campaign_criterion_service_client='google.ads.google_ads.v4.services', + campaign_criterion_simulation_service_client='google.ads.google_ads.v4.services', + campaign_draft_service_client='google.ads.google_ads.v4.services', + campaign_experiment_service_client='google.ads.google_ads.v4.services', + campaign_extension_setting_service_client='google.ads.google_ads.v4.services', + campaign_feed_service_client='google.ads.google_ads.v4.services', + campaign_label_service_client='google.ads.google_ads.v4.services', + campaign_service_client='google.ads.google_ads.v4.services', + campaign_shared_set_service_client='google.ads.google_ads.v4.services', + carrier_constant_service_client='google.ads.google_ads.v4.services', + change_status_service_client='google.ads.google_ads.v4.services', + click_view_service_client='google.ads.google_ads.v4.services', + conversion_action_service_client='google.ads.google_ads.v4.services', + conversion_adjustment_upload_service_client='google.ads.google_ads.v4.services', + conversion_upload_service_client='google.ads.google_ads.v4.services', + currency_constant_service_client='google.ads.google_ads.v4.services', + custom_interest_service_client='google.ads.google_ads.v4.services', + customer_client_link_service_client='google.ads.google_ads.v4.services', + customer_client_service_client='google.ads.google_ads.v4.services', + customer_extension_setting_service_client='google.ads.google_ads.v4.services', + customer_feed_service_client='google.ads.google_ads.v4.services', + customer_label_service_client='google.ads.google_ads.v4.services', + customer_manager_link_service_client='google.ads.google_ads.v4.services', + customer_negative_criterion_service_client='google.ads.google_ads.v4.services', + customer_service_client='google.ads.google_ads.v4.services', + detail_placement_view_service_client='google.ads.google_ads.v4.services', + display_keyword_view_service_client='google.ads.google_ads.v4.services', + distance_view_service_client='google.ads.google_ads.v4.services', + domain_category_service_client='google.ads.google_ads.v4.services', + dynamic_search_ads_search_term_view_service_client='google.ads.google_ads.v4.services', + expanded_landing_page_view_service_client='google.ads.google_ads.v4.services', + extension_feed_item_service_client='google.ads.google_ads.v4.services', + feed_item_service_client='google.ads.google_ads.v4.services', + feed_item_target_service_client='google.ads.google_ads.v4.services', + feed_mapping_service_client='google.ads.google_ads.v4.services', + feed_placeholder_view_service_client='google.ads.google_ads.v4.services', + feed_service_client='google.ads.google_ads.v4.services', + gender_view_service_client='google.ads.google_ads.v4.services', + geo_target_constant_service_client='google.ads.google_ads.v4.services', + geographic_view_service_client='google.ads.google_ads.v4.services', + google_ads_field_service_client='google.ads.google_ads.v4.services', + google_ads_service_client='google.ads.google_ads.v4.services', + group_placement_view_service_client='google.ads.google_ads.v4.services', + hotel_group_view_service_client='google.ads.google_ads.v4.services', + hotel_performance_view_service_client='google.ads.google_ads.v4.services', + income_range_view_service_client='google.ads.google_ads.v4.services', + invoice_service_client='google.ads.google_ads.v4.services', + keyword_plan_ad_group_keyword_service_client='google.ads.google_ads.v4.services', + keyword_plan_ad_group_service_client='google.ads.google_ads.v4.services', + keyword_plan_campaign_keyword_service_client='google.ads.google_ads.v4.services', + keyword_plan_campaign_service_client='google.ads.google_ads.v4.services', + keyword_plan_idea_service_client='google.ads.google_ads.v4.services', + keyword_plan_service_client='google.ads.google_ads.v4.services', + keyword_view_service_client='google.ads.google_ads.v4.services', + label_service_client='google.ads.google_ads.v4.services', + landing_page_view_service_client='google.ads.google_ads.v4.services', + language_constant_service_client='google.ads.google_ads.v4.services', + location_view_service_client='google.ads.google_ads.v4.services', + managed_placement_view_service_client='google.ads.google_ads.v4.services', + media_file_service_client='google.ads.google_ads.v4.services', + merchant_center_link_service_client='google.ads.google_ads.v4.services', + mobile_app_category_constant_service_client='google.ads.google_ads.v4.services', + mobile_device_constant_service_client='google.ads.google_ads.v4.services', + offline_user_data_job_service_client='google.ads.google_ads.v4.services', + operating_system_version_constant_service_client='google.ads.google_ads.v4.services', + paid_organic_search_term_view_service_client='google.ads.google_ads.v4.services', + parental_status_view_service_client='google.ads.google_ads.v4.services', + payments_account_service_client='google.ads.google_ads.v4.services', + product_bidding_category_constant_service_client='google.ads.google_ads.v4.services', + product_group_view_service_client='google.ads.google_ads.v4.services', + reach_plan_service_client='google.ads.google_ads.v4.services', + recommendation_service_client='google.ads.google_ads.v4.services', + remarketing_action_service_client='google.ads.google_ads.v4.services', + search_term_view_service_client='google.ads.google_ads.v4.services', + shared_criterion_service_client='google.ads.google_ads.v4.services', + shared_set_service_client='google.ads.google_ads.v4.services', + shopping_performance_view_service_client='google.ads.google_ads.v4.services', + third_party_app_analytics_link_service_client='google.ads.google_ads.v4.services', + topic_constant_service_client='google.ads.google_ads.v4.services', + topic_view_service_client='google.ads.google_ads.v4.services', + user_data_service_client='google.ads.google_ads.v4.services', + user_interest_service_client='google.ads.google_ads.v4.services', + user_list_service_client='google.ads.google_ads.v4.services', + user_location_view_service_client='google.ads.google_ads.v4.services', + video_service_client='google.ads.google_ads.v4.services', + account_budget_proposal_service_grpc_transport='google.ads.google_ads.v4.services.transports', + account_budget_service_grpc_transport='google.ads.google_ads.v4.services.transports', + account_link_service_grpc_transport='google.ads.google_ads.v4.services.transports', + ad_group_ad_asset_view_service_grpc_transport='google.ads.google_ads.v4.services.transports', + ad_group_ad_label_service_grpc_transport='google.ads.google_ads.v4.services.transports', + ad_group_ad_service_grpc_transport='google.ads.google_ads.v4.services.transports', + ad_group_audience_view_service_grpc_transport='google.ads.google_ads.v4.services.transports', + ad_group_bid_modifier_service_grpc_transport='google.ads.google_ads.v4.services.transports', + ad_group_criterion_label_service_grpc_transport='google.ads.google_ads.v4.services.transports', + ad_group_criterion_service_grpc_transport='google.ads.google_ads.v4.services.transports', + ad_group_criterion_simulation_service_grpc_transport='google.ads.google_ads.v4.services.transports', + ad_group_extension_setting_service_grpc_transport='google.ads.google_ads.v4.services.transports', + ad_group_feed_service_grpc_transport='google.ads.google_ads.v4.services.transports', + ad_group_label_service_grpc_transport='google.ads.google_ads.v4.services.transports', + ad_group_service_grpc_transport='google.ads.google_ads.v4.services.transports', + ad_group_simulation_service_grpc_transport='google.ads.google_ads.v4.services.transports', + ad_parameter_service_grpc_transport='google.ads.google_ads.v4.services.transports', + ad_schedule_view_service_grpc_transport='google.ads.google_ads.v4.services.transports', + ad_service_grpc_transport='google.ads.google_ads.v4.services.transports', + age_range_view_service_grpc_transport='google.ads.google_ads.v4.services.transports', + asset_service_grpc_transport='google.ads.google_ads.v4.services.transports', + batch_job_service_grpc_transport='google.ads.google_ads.v4.services.transports', + bidding_strategy_service_grpc_transport='google.ads.google_ads.v4.services.transports', + billing_setup_service_grpc_transport='google.ads.google_ads.v4.services.transports', + campaign_audience_view_service_grpc_transport='google.ads.google_ads.v4.services.transports', + campaign_bid_modifier_service_grpc_transport='google.ads.google_ads.v4.services.transports', + campaign_budget_service_grpc_transport='google.ads.google_ads.v4.services.transports', + campaign_criterion_service_grpc_transport='google.ads.google_ads.v4.services.transports', + campaign_criterion_simulation_service_grpc_transport='google.ads.google_ads.v4.services.transports', + campaign_draft_service_grpc_transport='google.ads.google_ads.v4.services.transports', + campaign_experiment_service_grpc_transport='google.ads.google_ads.v4.services.transports', + campaign_extension_setting_service_grpc_transport='google.ads.google_ads.v4.services.transports', + campaign_feed_service_grpc_transport='google.ads.google_ads.v4.services.transports', + campaign_label_service_grpc_transport='google.ads.google_ads.v4.services.transports', + campaign_service_grpc_transport='google.ads.google_ads.v4.services.transports', + campaign_shared_set_service_grpc_transport='google.ads.google_ads.v4.services.transports', + carrier_constant_service_grpc_transport='google.ads.google_ads.v4.services.transports', + change_status_service_grpc_transport='google.ads.google_ads.v4.services.transports', + click_view_service_grpc_transport='google.ads.google_ads.v4.services.transports', + conversion_action_service_grpc_transport='google.ads.google_ads.v4.services.transports', + conversion_adjustment_upload_service_grpc_transport='google.ads.google_ads.v4.services.transports', + conversion_upload_service_grpc_transport='google.ads.google_ads.v4.services.transports', + currency_constant_service_grpc_transport='google.ads.google_ads.v4.services.transports', + custom_interest_service_grpc_transport='google.ads.google_ads.v4.services.transports', + customer_client_link_service_grpc_transport='google.ads.google_ads.v4.services.transports', + customer_client_service_grpc_transport='google.ads.google_ads.v4.services.transports', + customer_extension_setting_service_grpc_transport='google.ads.google_ads.v4.services.transports', + customer_feed_service_grpc_transport='google.ads.google_ads.v4.services.transports', + customer_label_service_grpc_transport='google.ads.google_ads.v4.services.transports', + customer_manager_link_service_grpc_transport='google.ads.google_ads.v4.services.transports', + customer_negative_criterion_service_grpc_transport='google.ads.google_ads.v4.services.transports', + customer_service_grpc_transport='google.ads.google_ads.v4.services.transports', + detail_placement_view_service_grpc_transport='google.ads.google_ads.v4.services.transports', + display_keyword_view_service_grpc_transport='google.ads.google_ads.v4.services.transports', + distance_view_service_grpc_transport='google.ads.google_ads.v4.services.transports', + domain_category_service_grpc_transport='google.ads.google_ads.v4.services.transports', + dynamic_search_ads_search_term_view_service_grpc_transport='google.ads.google_ads.v4.services.transports', + expanded_landing_page_view_service_grpc_transport='google.ads.google_ads.v4.services.transports', + extension_feed_item_service_grpc_transport='google.ads.google_ads.v4.services.transports', + feed_item_service_grpc_transport='google.ads.google_ads.v4.services.transports', + feed_item_target_service_grpc_transport='google.ads.google_ads.v4.services.transports', + feed_mapping_service_grpc_transport='google.ads.google_ads.v4.services.transports', + feed_placeholder_view_service_grpc_transport='google.ads.google_ads.v4.services.transports', + feed_service_grpc_transport='google.ads.google_ads.v4.services.transports', + gender_view_service_grpc_transport='google.ads.google_ads.v4.services.transports', + geo_target_constant_service_grpc_transport='google.ads.google_ads.v4.services.transports', + geographic_view_service_grpc_transport='google.ads.google_ads.v4.services.transports', + google_ads_field_service_grpc_transport='google.ads.google_ads.v4.services.transports', + google_ads_service_grpc_transport='google.ads.google_ads.v4.services.transports', + group_placement_view_service_grpc_transport='google.ads.google_ads.v4.services.transports', + hotel_group_view_service_grpc_transport='google.ads.google_ads.v4.services.transports', + hotel_performance_view_service_grpc_transport='google.ads.google_ads.v4.services.transports', + income_range_view_service_grpc_transport='google.ads.google_ads.v4.services.transports', + invoice_service_grpc_transport='google.ads.google_ads.v4.services.transports', + keyword_plan_ad_group_keyword_service_grpc_transport='google.ads.google_ads.v4.services.transports', + keyword_plan_ad_group_service_grpc_transport='google.ads.google_ads.v4.services.transports', + keyword_plan_campaign_keyword_service_grpc_transport='google.ads.google_ads.v4.services.transports', + keyword_plan_campaign_service_grpc_transport='google.ads.google_ads.v4.services.transports', + keyword_plan_idea_service_grpc_transport='google.ads.google_ads.v4.services.transports', + keyword_plan_service_grpc_transport='google.ads.google_ads.v4.services.transports', + keyword_view_service_grpc_transport='google.ads.google_ads.v4.services.transports', + label_service_grpc_transport='google.ads.google_ads.v4.services.transports', + landing_page_view_service_grpc_transport='google.ads.google_ads.v4.services.transports', + language_constant_service_grpc_transport='google.ads.google_ads.v4.services.transports', + location_view_service_grpc_transport='google.ads.google_ads.v4.services.transports', + managed_placement_view_service_grpc_transport='google.ads.google_ads.v4.services.transports', + media_file_service_grpc_transport='google.ads.google_ads.v4.services.transports', + merchant_center_link_service_grpc_transport='google.ads.google_ads.v4.services.transports', + mobile_app_category_constant_service_grpc_transport='google.ads.google_ads.v4.services.transports', + mobile_device_constant_service_grpc_transport='google.ads.google_ads.v4.services.transports', + offline_user_data_job_service_grpc_transport='google.ads.google_ads.v4.services.transports', + operating_system_version_constant_service_grpc_transport='google.ads.google_ads.v4.services.transports', + paid_organic_search_term_view_service_grpc_transport='google.ads.google_ads.v4.services.transports', + parental_status_view_service_grpc_transport='google.ads.google_ads.v4.services.transports', + payments_account_service_grpc_transport='google.ads.google_ads.v4.services.transports', + product_bidding_category_constant_service_grpc_transport='google.ads.google_ads.v4.services.transports', + product_group_view_service_grpc_transport='google.ads.google_ads.v4.services.transports', + reach_plan_service_grpc_transport='google.ads.google_ads.v4.services.transports', + recommendation_service_grpc_transport='google.ads.google_ads.v4.services.transports', + remarketing_action_service_grpc_transport='google.ads.google_ads.v4.services.transports', + search_term_view_service_grpc_transport='google.ads.google_ads.v4.services.transports', + shared_criterion_service_grpc_transport='google.ads.google_ads.v4.services.transports', + shared_set_service_grpc_transport='google.ads.google_ads.v4.services.transports', + shopping_performance_view_service_grpc_transport='google.ads.google_ads.v4.services.transports', + third_party_app_analytics_link_service_grpc_transport='google.ads.google_ads.v4.services.transports', + topic_constant_service_grpc_transport='google.ads.google_ads.v4.services.transports', + topic_view_service_grpc_transport='google.ads.google_ads.v4.services.transports', + user_data_service_grpc_transport='google.ads.google_ads.v4.services.transports', + user_interest_service_grpc_transport='google.ads.google_ads.v4.services.transports', + user_list_service_grpc_transport='google.ads.google_ads.v4.services.transports', + user_location_view_service_grpc_transport='google.ads.google_ads.v4.services.transports', + video_service_grpc_transport='google.ads.google_ads.v4.services.transports', +) + + +# Background on how this behaves: https://www.python.org/dev/peps/pep-0562/ +def __getattr__(name): # Requires Python >= 3.7 + """Lazily perform imports and class definitions on first demand.""" + if name == '__all__': + converted = (util.convert_snake_case_to_upper_case(key) for + key in _lazy_name_to_package_map) + all_names = sorted(converted) + globals()['__all__'] = all_names + return all_names + elif name.endswith('Transport'): + module = __getattr__(util.convert_upper_case_to_snake_case(name)) + sub_mod_class = getattr(module, name) + klass = type(name, (sub_mod_class,), {'__doc__': sub_mod_class.__doc__}) + globals()[name] = klass + return klass + elif name.endswith('ServiceClient'): + module = __getattr__(util.convert_upper_case_to_snake_case(name)) + enums = __getattr__('enums') + sub_mod_class = getattr(module, name) + klass = type(name, (sub_mod_class,), + {'__doc__': sub_mod_class.__doc__, 'enums': enums}) + globals()[name] = klass + return klass + elif name == 'enums': + path = 'google.ads.google_ads.v4.services.enums' + module = importlib.import_module(path) + globals()[name] = module + return module + elif name == 'types': + path = 'google.ads.google_ads.v4.types' + module = importlib.import_module(path) + globals()[name] = module + return module + elif name in _lazy_name_to_package_map: + module = importlib.import_module(f'{_lazy_name_to_package_map[name]}.{name}') + globals()[name] = module + return module + else: + raise AttributeError(f'unknown sub-module {name!r}.') + + +def __dir__(): + return globals().get('__all__') or __getattr__('__all__') diff --git a/google/ads/google_ads/v1/proto/__init__.py b/google/ads/google_ads/v4/proto/__init__.py similarity index 100% rename from google/ads/google_ads/v1/proto/__init__.py rename to google/ads/google_ads/v4/proto/__init__.py diff --git a/google/ads/google_ads/v1/proto/common/__init__.py b/google/ads/google_ads/v4/proto/common/__init__.py similarity index 100% rename from google/ads/google_ads/v1/proto/common/__init__.py rename to google/ads/google_ads/v4/proto/common/__init__.py diff --git a/google/ads/google_ads/v1/proto/common/ad_asset_pb2.py b/google/ads/google_ads/v4/proto/common/ad_asset_pb2.py similarity index 76% rename from google/ads/google_ads/v1/proto/common/ad_asset_pb2.py rename to google/ads/google_ads/v4/proto/common/ad_asset_pb2.py index da539d8c2..f9b5a189c 100644 --- a/google/ads/google_ads/v1/proto/common/ad_asset_pb2.py +++ b/google/ads/google_ads/v4/proto/common/ad_asset_pb2.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/common/ad_asset.proto +# source: google/ads/googleads_v4/proto/common/ad_asset.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) @@ -13,39 +13,39 @@ _sym_db = _symbol_database.Default() -from google.ads.google_ads.v1.proto.enums import served_asset_field_type_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_served__asset__field__type__pb2 +from google.ads.google_ads.v4.proto.enums import served_asset_field_type_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_served__asset__field__type__pb2 from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/common/ad_asset.proto', - package='google.ads.googleads.v1.common', + name='google/ads/googleads_v4/proto/common/ad_asset.proto', + package='google.ads.googleads.v4.common', syntax='proto3', - serialized_options=_b('\n\"com.google.ads.googleads.v1.commonB\014AdAssetProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/common;common\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V1.Common\312\002\036Google\\Ads\\GoogleAds\\V1\\Common\352\002\"Google::Ads::GoogleAds::V1::Common'), - serialized_pb=_b('\n3google/ads/googleads_v1/proto/common/ad_asset.proto\x12\x1egoogle.ads.googleads.v1.common\x1a\x41google/ads/googleads_v1/proto/enums/served_asset_field_type.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1cgoogle/api/annotations.proto\"\x9d\x01\n\x0b\x41\x64TextAsset\x12*\n\x04text\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x62\n\x0cpinned_field\x18\x02 \x01(\x0e\x32L.google.ads.googleads.v1.enums.ServedAssetFieldTypeEnum.ServedAssetFieldType\";\n\x0c\x41\x64ImageAsset\x12+\n\x05\x61sset\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\";\n\x0c\x41\x64VideoAsset\x12+\n\x05\x61sset\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\"A\n\x12\x41\x64MediaBundleAsset\x12+\n\x05\x61sset\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValueB\xe7\x01\n\"com.google.ads.googleads.v1.commonB\x0c\x41\x64\x41ssetProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/common;common\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V1.Common\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V1\\Common\xea\x02\"Google::Ads::GoogleAds::V1::Commonb\x06proto3') + serialized_options=_b('\n\"com.google.ads.googleads.v4.commonB\014AdAssetProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/common;common\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V4.Common\312\002\036Google\\Ads\\GoogleAds\\V4\\Common\352\002\"Google::Ads::GoogleAds::V4::Common'), + serialized_pb=_b('\n3google/ads/googleads_v4/proto/common/ad_asset.proto\x12\x1egoogle.ads.googleads.v4.common\x1a\x41google/ads/googleads_v4/proto/enums/served_asset_field_type.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1cgoogle/api/annotations.proto\"\x9d\x01\n\x0b\x41\x64TextAsset\x12*\n\x04text\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x62\n\x0cpinned_field\x18\x02 \x01(\x0e\x32L.google.ads.googleads.v4.enums.ServedAssetFieldTypeEnum.ServedAssetFieldType\";\n\x0c\x41\x64ImageAsset\x12+\n\x05\x61sset\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\";\n\x0c\x41\x64VideoAsset\x12+\n\x05\x61sset\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\"A\n\x12\x41\x64MediaBundleAsset\x12+\n\x05\x61sset\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValueB\xe7\x01\n\"com.google.ads.googleads.v4.commonB\x0c\x41\x64\x41ssetProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/common;common\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V4.Common\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V4\\Common\xea\x02\"Google::Ads::GoogleAds::V4::Commonb\x06proto3') , - dependencies=[google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_served__asset__field__type__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + dependencies=[google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_served__asset__field__type__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) _ADTEXTASSET = _descriptor.Descriptor( name='AdTextAsset', - full_name='google.ads.googleads.v1.common.AdTextAsset', + full_name='google.ads.googleads.v4.common.AdTextAsset', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='text', full_name='google.ads.googleads.v1.common.AdTextAsset.text', index=0, + name='text', full_name='google.ads.googleads.v4.common.AdTextAsset.text', index=0, number=1, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='pinned_field', full_name='google.ads.googleads.v1.common.AdTextAsset.pinned_field', index=1, + name='pinned_field', full_name='google.ads.googleads.v4.common.AdTextAsset.pinned_field', index=1, number=2, type=14, cpp_type=8, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, @@ -70,13 +70,13 @@ _ADIMAGEASSET = _descriptor.Descriptor( name='AdImageAsset', - full_name='google.ads.googleads.v1.common.AdImageAsset', + full_name='google.ads.googleads.v4.common.AdImageAsset', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='asset', full_name='google.ads.googleads.v1.common.AdImageAsset.asset', index=0, + name='asset', full_name='google.ads.googleads.v4.common.AdImageAsset.asset', index=0, number=1, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, @@ -101,13 +101,13 @@ _ADVIDEOASSET = _descriptor.Descriptor( name='AdVideoAsset', - full_name='google.ads.googleads.v1.common.AdVideoAsset', + full_name='google.ads.googleads.v4.common.AdVideoAsset', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='asset', full_name='google.ads.googleads.v1.common.AdVideoAsset.asset', index=0, + name='asset', full_name='google.ads.googleads.v4.common.AdVideoAsset.asset', index=0, number=1, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, @@ -132,13 +132,13 @@ _ADMEDIABUNDLEASSET = _descriptor.Descriptor( name='AdMediaBundleAsset', - full_name='google.ads.googleads.v1.common.AdMediaBundleAsset', + full_name='google.ads.googleads.v4.common.AdMediaBundleAsset', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='asset', full_name='google.ads.googleads.v1.common.AdMediaBundleAsset.asset', index=0, + name='asset', full_name='google.ads.googleads.v4.common.AdMediaBundleAsset.asset', index=0, number=1, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, @@ -161,7 +161,7 @@ ) _ADTEXTASSET.fields_by_name['text'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_ADTEXTASSET.fields_by_name['pinned_field'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_served__asset__field__type__pb2._SERVEDASSETFIELDTYPEENUM_SERVEDASSETFIELDTYPE +_ADTEXTASSET.fields_by_name['pinned_field'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_served__asset__field__type__pb2._SERVEDASSETFIELDTYPEENUM_SERVEDASSETFIELDTYPE _ADIMAGEASSET.fields_by_name['asset'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE _ADVIDEOASSET.fields_by_name['asset'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE _ADMEDIABUNDLEASSET.fields_by_name['asset'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE @@ -173,7 +173,7 @@ AdTextAsset = _reflection.GeneratedProtocolMessageType('AdTextAsset', (_message.Message,), dict( DESCRIPTOR = _ADTEXTASSET, - __module__ = 'google.ads.googleads_v1.proto.common.ad_asset_pb2' + __module__ = 'google.ads.googleads_v4.proto.common.ad_asset_pb2' , __doc__ = """A text asset used inside an ad. @@ -188,13 +188,13 @@ different field will not serve in a field where some other asset has been pinned. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.AdTextAsset) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.common.AdTextAsset) )) _sym_db.RegisterMessage(AdTextAsset) AdImageAsset = _reflection.GeneratedProtocolMessageType('AdImageAsset', (_message.Message,), dict( DESCRIPTOR = _ADIMAGEASSET, - __module__ = 'google.ads.googleads_v1.proto.common.ad_asset_pb2' + __module__ = 'google.ads.googleads_v4.proto.common.ad_asset_pb2' , __doc__ = """An image asset used inside an ad. @@ -203,13 +203,13 @@ asset: The Asset resource name of this image. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.AdImageAsset) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.common.AdImageAsset) )) _sym_db.RegisterMessage(AdImageAsset) AdVideoAsset = _reflection.GeneratedProtocolMessageType('AdVideoAsset', (_message.Message,), dict( DESCRIPTOR = _ADVIDEOASSET, - __module__ = 'google.ads.googleads_v1.proto.common.ad_asset_pb2' + __module__ = 'google.ads.googleads_v4.proto.common.ad_asset_pb2' , __doc__ = """A video asset used inside an ad. @@ -218,13 +218,13 @@ asset: The Asset resource name of this video. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.AdVideoAsset) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.common.AdVideoAsset) )) _sym_db.RegisterMessage(AdVideoAsset) AdMediaBundleAsset = _reflection.GeneratedProtocolMessageType('AdMediaBundleAsset', (_message.Message,), dict( DESCRIPTOR = _ADMEDIABUNDLEASSET, - __module__ = 'google.ads.googleads_v1.proto.common.ad_asset_pb2' + __module__ = 'google.ads.googleads_v4.proto.common.ad_asset_pb2' , __doc__ = """A media bundle asset used inside an ad. @@ -233,7 +233,7 @@ asset: The Asset resource name of this media bundle. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.AdMediaBundleAsset) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.common.AdMediaBundleAsset) )) _sym_db.RegisterMessage(AdMediaBundleAsset) diff --git a/google/ads/google_ads/v1/proto/common/ad_asset_pb2_grpc.py b/google/ads/google_ads/v4/proto/common/ad_asset_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/common/ad_asset_pb2_grpc.py rename to google/ads/google_ads/v4/proto/common/ad_asset_pb2_grpc.py diff --git a/google/ads/google_ads/v4/proto/common/ad_type_infos_pb2.py b/google/ads/google_ads/v4/proto/common/ad_type_infos_pb2.py new file mode 100644 index 000000000..cfd3b0f23 --- /dev/null +++ b/google/ads/google_ads/v4/proto/common/ad_type_infos_pb2.py @@ -0,0 +1,2583 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/common/ad_type_infos.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.ads.google_ads.v4.proto.common import ad_asset_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_ad__asset__pb2 +from google.ads.google_ads.v4.proto.enums import call_conversion_reporting_state_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_call__conversion__reporting__state__pb2 +from google.ads.google_ads.v4.proto.enums import display_ad_format_setting_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_display__ad__format__setting__pb2 +from google.ads.google_ads.v4.proto.enums import display_upload_product_type_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_display__upload__product__type__pb2 +from google.ads.google_ads.v4.proto.enums import legacy_app_install_ad_app_store_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_legacy__app__install__ad__app__store__pb2 +from google.ads.google_ads.v4.proto.enums import mime_type_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_mime__type__pb2 +from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/common/ad_type_infos.proto', + package='google.ads.googleads.v4.common', + syntax='proto3', + serialized_options=_b('\n\"com.google.ads.googleads.v4.commonB\020AdTypeInfosProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/common;common\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V4.Common\312\002\036Google\\Ads\\GoogleAds\\V4\\Common\352\002\"Google::Ads::GoogleAds::V4::Common'), + serialized_pb=_b('\n8google/ads/googleads_v4/proto/common/ad_type_infos.proto\x12\x1egoogle.ads.googleads.v4.common\x1a\x33google/ads/googleads_v4/proto/common/ad_asset.proto\x1aIgoogle/ads/googleads_v4/proto/enums/call_conversion_reporting_state.proto\x1a\x43google/ads/googleads_v4/proto/enums/display_ad_format_setting.proto\x1a\x45google/ads/googleads_v4/proto/enums/display_upload_product_type.proto\x1aIgoogle/ads/googleads_v4/proto/enums/legacy_app_install_ad_app_store.proto\x1a\x33google/ads/googleads_v4/proto/enums/mime_type.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1cgoogle/api/annotations.proto\"\xa4\x01\n\nTextAdInfo\x12.\n\x08headline\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x32\n\x0c\x64\x65scription1\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x32\n\x0c\x64\x65scription2\x18\x03 \x01(\x0b\x32\x1c.google.protobuf.StringValue\"\xf7\x02\n\x12\x45xpandedTextAdInfo\x12\x34\n\x0eheadline_part1\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x34\n\x0eheadline_part2\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x34\n\x0eheadline_part3\x18\x06 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x31\n\x0b\x64\x65scription\x18\x03 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x32\n\x0c\x64\x65scription2\x18\x07 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12+\n\x05path1\x18\x04 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12+\n\x05path2\x18\x05 \x01(\x0b\x32\x1c.google.protobuf.StringValue\"\xe7\x05\n\x0e\x43\x61llOnlyAdInfo\x12\x32\n\x0c\x63ountry_code\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x32\n\x0cphone_number\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x33\n\rbusiness_name\x18\x03 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12/\n\theadline1\x18\x0b \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12/\n\theadline2\x18\x0c \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x32\n\x0c\x64\x65scription1\x18\x04 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x32\n\x0c\x64\x65scription2\x18\x05 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x30\n\x0c\x63\x61ll_tracked\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.BoolValue\x12;\n\x17\x64isable_call_conversion\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.BoolValue\x12\x43\n\x1dphone_number_verification_url\x18\x08 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x37\n\x11\x63onversion_action\x18\t \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x80\x01\n\x1a\x63onversion_reporting_state\x18\n \x01(\x0e\x32\\.google.ads.googleads.v4.enums.CallConversionReportingStateEnum.CallConversionReportingState\"\x84\x01\n\x1b\x45xpandedDynamicSearchAdInfo\x12\x31\n\x0b\x64\x65scription\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x32\n\x0c\x64\x65scription2\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValue\"\r\n\x0bHotelAdInfo\"\x15\n\x13ShoppingSmartAdInfo\"\x17\n\x15ShoppingProductAdInfo\"Q\n\x1fShoppingComparisonListingAdInfo\x12.\n\x08headline\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\"\xa9\x04\n\x0bGmailAdInfo\x12;\n\x06teaser\x18\x01 \x01(\x0b\x32+.google.ads.googleads.v4.common.GmailTeaser\x12\x32\n\x0cheader_image\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x35\n\x0fmarketing_image\x18\x03 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12>\n\x18marketing_image_headline\x18\x04 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x41\n\x1bmarketing_image_description\x18\x05 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x63\n&marketing_image_display_call_to_action\x18\x06 \x01(\x0b\x32\x33.google.ads.googleads.v4.common.DisplayCallToAction\x12\x44\n\x0eproduct_images\x18\x07 \x03(\x0b\x32,.google.ads.googleads.v4.common.ProductImage\x12\x44\n\x0eproduct_videos\x18\x08 \x03(\x0b\x32,.google.ads.googleads.v4.common.ProductVideo\"\xd7\x01\n\x0bGmailTeaser\x12.\n\x08headline\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x31\n\x0b\x64\x65scription\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x33\n\rbusiness_name\x18\x03 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x30\n\nlogo_image\x18\x04 \x01(\x0b\x32\x1c.google.protobuf.StringValue\"\xac\x01\n\x13\x44isplayCallToAction\x12*\n\x04text\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x30\n\ntext_color\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x37\n\x11url_collection_id\x18\x03 \x01(\x0b\x32\x1c.google.protobuf.StringValue\"\xcb\x01\n\x0cProductImage\x12\x33\n\rproduct_image\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x31\n\x0b\x64\x65scription\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12S\n\x16\x64isplay_call_to_action\x18\x03 \x01(\x0b\x32\x33.google.ads.googleads.v4.common.DisplayCallToAction\"C\n\x0cProductVideo\x12\x33\n\rproduct_video\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\"\xf1\x04\n\x0bImageAdInfo\x12\x30\n\x0bpixel_width\x18\x04 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x31\n\x0cpixel_height\x18\x05 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12/\n\timage_url\x18\x06 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x38\n\x13preview_pixel_width\x18\x07 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x39\n\x14preview_pixel_height\x18\x08 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x37\n\x11preview_image_url\x18\t \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12G\n\tmime_type\x18\n \x01(\x0e\x32\x34.google.ads.googleads.v4.enums.MimeTypeEnum.MimeType\x12*\n\x04name\x18\x0b \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x32\n\nmedia_file\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValueH\x00\x12+\n\x04\x64\x61ta\x18\x02 \x01(\x0b\x32\x1b.google.protobuf.BytesValueH\x00\x12?\n\x18\x61\x64_id_to_copy_image_from\x18\x03 \x01(\x0b\x32\x1b.google.protobuf.Int64ValueH\x00\x42\x07\n\x05image\"S\n\x19VideoBumperInStreamAdInfo\x12\x36\n\x10\x63ompanion_banner\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\"Y\n\x1fVideoNonSkippableInStreamAdInfo\x12\x36\n\x10\x63ompanion_banner\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\"\xc7\x01\n\x1bVideoTrueViewInStreamAdInfo\x12\x39\n\x13\x61\x63tion_button_label\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x35\n\x0f\x61\x63tion_headline\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x36\n\x10\x63ompanion_banner\x18\x03 \x01(\x0b\x32\x1c.google.protobuf.StringValue\"y\n\x14VideoOutstreamAdInfo\x12.\n\x08headline\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x31\n\x0b\x64\x65scription\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValue\"\xb6\x01\n\x1cVideoTrueViewDiscoveryAdInfo\x12.\n\x08headline\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x32\n\x0c\x64\x65scription1\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x32\n\x0c\x64\x65scription2\x18\x03 \x01(\x0b\x32\x1c.google.protobuf.StringValue\"\xe1\x03\n\x0bVideoAdInfo\x12\x30\n\nmedia_file\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12P\n\tin_stream\x18\x02 \x01(\x0b\x32;.google.ads.googleads.v4.common.VideoTrueViewInStreamAdInfoH\x00\x12K\n\x06\x62umper\x18\x03 \x01(\x0b\x32\x39.google.ads.googleads.v4.common.VideoBumperInStreamAdInfoH\x00\x12J\n\nout_stream\x18\x04 \x01(\x0b\x32\x34.google.ads.googleads.v4.common.VideoOutstreamAdInfoH\x00\x12X\n\rnon_skippable\x18\x05 \x01(\x0b\x32?.google.ads.googleads.v4.common.VideoNonSkippableInStreamAdInfoH\x00\x12Q\n\tdiscovery\x18\x06 \x01(\x0b\x32<.google.ads.googleads.v4.common.VideoTrueViewDiscoveryAdInfoH\x00\x42\x08\n\x06\x66ormat\"\xf5\x01\n\x16ResponsiveSearchAdInfo\x12>\n\theadlines\x18\x01 \x03(\x0b\x32+.google.ads.googleads.v4.common.AdTextAsset\x12\x41\n\x0c\x64\x65scriptions\x18\x02 \x03(\x0b\x32+.google.ads.googleads.v4.common.AdTextAsset\x12+\n\x05path1\x18\x03 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12+\n\x05path2\x18\x04 \x01(\x0b\x32\x1c.google.protobuf.StringValue\"\xfd\x06\n\x1dLegacyResponsiveDisplayAdInfo\x12\x34\n\x0eshort_headline\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x33\n\rlong_headline\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x31\n\x0b\x64\x65scription\x18\x03 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x33\n\rbusiness_name\x18\x04 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x38\n\x14\x61llow_flexible_color\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.BoolValue\x12\x32\n\x0c\x61\x63\x63\x65nt_color\x18\x06 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x30\n\nmain_color\x18\x07 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x39\n\x13\x63\x61ll_to_action_text\x18\x08 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x30\n\nlogo_image\x18\t \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x37\n\x11square_logo_image\x18\n \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x35\n\x0fmarketing_image\x18\x0b \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12<\n\x16square_marketing_image\x18\x0c \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12h\n\x0e\x66ormat_setting\x18\r \x01(\x0e\x32P.google.ads.googleads.v4.enums.DisplayAdFormatSettingEnum.DisplayAdFormatSetting\x12\x32\n\x0cprice_prefix\x18\x0e \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x30\n\npromo_text\x18\x0f \x01(\x0b\x32\x1c.google.protobuf.StringValue\"\xab\x03\n\tAppAdInfo\x12\x46\n\x11mandatory_ad_text\x18\x01 \x01(\x0b\x32+.google.ads.googleads.v4.common.AdTextAsset\x12>\n\theadlines\x18\x02 \x03(\x0b\x32+.google.ads.googleads.v4.common.AdTextAsset\x12\x41\n\x0c\x64\x65scriptions\x18\x03 \x03(\x0b\x32+.google.ads.googleads.v4.common.AdTextAsset\x12<\n\x06images\x18\x04 \x03(\x0b\x32,.google.ads.googleads.v4.common.AdImageAsset\x12\x44\n\x0eyoutube_videos\x18\x05 \x03(\x0b\x32,.google.ads.googleads.v4.common.AdVideoAsset\x12O\n\x13html5_media_bundles\x18\x06 \x03(\x0b\x32\x32.google.ads.googleads.v4.common.AdMediaBundleAsset\"\x94\x02\n\x13\x41ppEngagementAdInfo\x12>\n\theadlines\x18\x01 \x03(\x0b\x32+.google.ads.googleads.v4.common.AdTextAsset\x12\x41\n\x0c\x64\x65scriptions\x18\x02 \x03(\x0b\x32+.google.ads.googleads.v4.common.AdTextAsset\x12<\n\x06images\x18\x03 \x03(\x0b\x32,.google.ads.googleads.v4.common.AdImageAsset\x12<\n\x06videos\x18\x04 \x03(\x0b\x32,.google.ads.googleads.v4.common.AdVideoAsset\"\xcb\x02\n\x16LegacyAppInstallAdInfo\x12,\n\x06\x61pp_id\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12k\n\tapp_store\x18\x02 \x01(\x0e\x32X.google.ads.googleads.v4.enums.LegacyAppInstallAdAppStoreEnum.LegacyAppInstallAdAppStore\x12.\n\x08headline\x18\x03 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x32\n\x0c\x64\x65scription1\x18\x04 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x32\n\x0c\x64\x65scription2\x18\x05 \x01(\x0b\x32\x1c.google.protobuf.StringValue\"\xaa\x08\n\x17ResponsiveDisplayAdInfo\x12\x46\n\x10marketing_images\x18\x01 \x03(\x0b\x32,.google.ads.googleads.v4.common.AdImageAsset\x12M\n\x17square_marketing_images\x18\x02 \x03(\x0b\x32,.google.ads.googleads.v4.common.AdImageAsset\x12\x41\n\x0blogo_images\x18\x03 \x03(\x0b\x32,.google.ads.googleads.v4.common.AdImageAsset\x12H\n\x12square_logo_images\x18\x04 \x03(\x0b\x32,.google.ads.googleads.v4.common.AdImageAsset\x12>\n\theadlines\x18\x05 \x03(\x0b\x32+.google.ads.googleads.v4.common.AdTextAsset\x12\x42\n\rlong_headline\x18\x06 \x01(\x0b\x32+.google.ads.googleads.v4.common.AdTextAsset\x12\x41\n\x0c\x64\x65scriptions\x18\x07 \x03(\x0b\x32+.google.ads.googleads.v4.common.AdTextAsset\x12\x44\n\x0eyoutube_videos\x18\x08 \x03(\x0b\x32,.google.ads.googleads.v4.common.AdVideoAsset\x12\x33\n\rbusiness_name\x18\t \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x30\n\nmain_color\x18\n \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x32\n\x0c\x61\x63\x63\x65nt_color\x18\x0b \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x38\n\x14\x61llow_flexible_color\x18\x0c \x01(\x0b\x32\x1a.google.protobuf.BoolValue\x12\x39\n\x13\x63\x61ll_to_action_text\x18\r \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x32\n\x0cprice_prefix\x18\x0e \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x30\n\npromo_text\x18\x0f \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12h\n\x0e\x66ormat_setting\x18\x10 \x01(\x0e\x32P.google.ads.googleads.v4.enums.DisplayAdFormatSettingEnum.DisplayAdFormatSetting\"\xf9\x03\n\x0bLocalAdInfo\x12>\n\theadlines\x18\x01 \x03(\x0b\x32+.google.ads.googleads.v4.common.AdTextAsset\x12\x41\n\x0c\x64\x65scriptions\x18\x02 \x03(\x0b\x32+.google.ads.googleads.v4.common.AdTextAsset\x12\x44\n\x0f\x63\x61ll_to_actions\x18\x03 \x03(\x0b\x32+.google.ads.googleads.v4.common.AdTextAsset\x12\x46\n\x10marketing_images\x18\x04 \x03(\x0b\x32,.google.ads.googleads.v4.common.AdImageAsset\x12\x41\n\x0blogo_images\x18\x05 \x03(\x0b\x32,.google.ads.googleads.v4.common.AdImageAsset\x12<\n\x06videos\x18\x06 \x03(\x0b\x32,.google.ads.googleads.v4.common.AdVideoAsset\x12+\n\x05path1\x18\x07 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12+\n\x05path2\x18\x08 \x01(\x0b\x32\x1c.google.protobuf.StringValue\"\xeb\x01\n\x13\x44isplayUploadAdInfo\x12y\n\x1b\x64isplay_upload_product_type\x18\x01 \x01(\x0e\x32T.google.ads.googleads.v4.enums.DisplayUploadProductTypeEnum.DisplayUploadProductType\x12J\n\x0cmedia_bundle\x18\x02 \x01(\x0b\x32\x32.google.ads.googleads.v4.common.AdMediaBundleAssetH\x00\x42\r\n\x0bmedia_assetB\xeb\x01\n\"com.google.ads.googleads.v4.commonB\x10\x41\x64TypeInfosProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/common;common\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V4.Common\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V4\\Common\xea\x02\"Google::Ads::GoogleAds::V4::Commonb\x06proto3') + , + dependencies=[google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_ad__asset__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_call__conversion__reporting__state__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_display__ad__format__setting__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_display__upload__product__type__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_legacy__app__install__ad__app__store__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_mime__type__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + + +_TEXTADINFO = _descriptor.Descriptor( + name='TextAdInfo', + full_name='google.ads.googleads.v4.common.TextAdInfo', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='headline', full_name='google.ads.googleads.v4.common.TextAdInfo.headline', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='description1', full_name='google.ads.googleads.v4.common.TextAdInfo.description1', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='description2', full_name='google.ads.googleads.v4.common.TextAdInfo.description2', index=2, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=551, + serialized_end=715, +) + + +_EXPANDEDTEXTADINFO = _descriptor.Descriptor( + name='ExpandedTextAdInfo', + full_name='google.ads.googleads.v4.common.ExpandedTextAdInfo', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='headline_part1', full_name='google.ads.googleads.v4.common.ExpandedTextAdInfo.headline_part1', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='headline_part2', full_name='google.ads.googleads.v4.common.ExpandedTextAdInfo.headline_part2', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='headline_part3', full_name='google.ads.googleads.v4.common.ExpandedTextAdInfo.headline_part3', index=2, + number=6, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='description', full_name='google.ads.googleads.v4.common.ExpandedTextAdInfo.description', index=3, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='description2', full_name='google.ads.googleads.v4.common.ExpandedTextAdInfo.description2', index=4, + number=7, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='path1', full_name='google.ads.googleads.v4.common.ExpandedTextAdInfo.path1', index=5, + number=4, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='path2', full_name='google.ads.googleads.v4.common.ExpandedTextAdInfo.path2', index=6, + number=5, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=718, + serialized_end=1093, +) + + +_CALLONLYADINFO = _descriptor.Descriptor( + name='CallOnlyAdInfo', + full_name='google.ads.googleads.v4.common.CallOnlyAdInfo', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='country_code', full_name='google.ads.googleads.v4.common.CallOnlyAdInfo.country_code', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='phone_number', full_name='google.ads.googleads.v4.common.CallOnlyAdInfo.phone_number', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='business_name', full_name='google.ads.googleads.v4.common.CallOnlyAdInfo.business_name', index=2, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='headline1', full_name='google.ads.googleads.v4.common.CallOnlyAdInfo.headline1', index=3, + number=11, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='headline2', full_name='google.ads.googleads.v4.common.CallOnlyAdInfo.headline2', index=4, + number=12, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='description1', full_name='google.ads.googleads.v4.common.CallOnlyAdInfo.description1', index=5, + number=4, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='description2', full_name='google.ads.googleads.v4.common.CallOnlyAdInfo.description2', index=6, + number=5, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='call_tracked', full_name='google.ads.googleads.v4.common.CallOnlyAdInfo.call_tracked', index=7, + number=6, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='disable_call_conversion', full_name='google.ads.googleads.v4.common.CallOnlyAdInfo.disable_call_conversion', index=8, + number=7, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='phone_number_verification_url', full_name='google.ads.googleads.v4.common.CallOnlyAdInfo.phone_number_verification_url', index=9, + number=8, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='conversion_action', full_name='google.ads.googleads.v4.common.CallOnlyAdInfo.conversion_action', index=10, + number=9, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='conversion_reporting_state', full_name='google.ads.googleads.v4.common.CallOnlyAdInfo.conversion_reporting_state', index=11, + number=10, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1096, + serialized_end=1839, +) + + +_EXPANDEDDYNAMICSEARCHADINFO = _descriptor.Descriptor( + name='ExpandedDynamicSearchAdInfo', + full_name='google.ads.googleads.v4.common.ExpandedDynamicSearchAdInfo', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='description', full_name='google.ads.googleads.v4.common.ExpandedDynamicSearchAdInfo.description', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='description2', full_name='google.ads.googleads.v4.common.ExpandedDynamicSearchAdInfo.description2', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1842, + serialized_end=1974, +) + + +_HOTELADINFO = _descriptor.Descriptor( + name='HotelAdInfo', + full_name='google.ads.googleads.v4.common.HotelAdInfo', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1976, + serialized_end=1989, +) + + +_SHOPPINGSMARTADINFO = _descriptor.Descriptor( + name='ShoppingSmartAdInfo', + full_name='google.ads.googleads.v4.common.ShoppingSmartAdInfo', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1991, + serialized_end=2012, +) + + +_SHOPPINGPRODUCTADINFO = _descriptor.Descriptor( + name='ShoppingProductAdInfo', + full_name='google.ads.googleads.v4.common.ShoppingProductAdInfo', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=2014, + serialized_end=2037, +) + + +_SHOPPINGCOMPARISONLISTINGADINFO = _descriptor.Descriptor( + name='ShoppingComparisonListingAdInfo', + full_name='google.ads.googleads.v4.common.ShoppingComparisonListingAdInfo', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='headline', full_name='google.ads.googleads.v4.common.ShoppingComparisonListingAdInfo.headline', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=2039, + serialized_end=2120, +) + + +_GMAILADINFO = _descriptor.Descriptor( + name='GmailAdInfo', + full_name='google.ads.googleads.v4.common.GmailAdInfo', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='teaser', full_name='google.ads.googleads.v4.common.GmailAdInfo.teaser', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='header_image', full_name='google.ads.googleads.v4.common.GmailAdInfo.header_image', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='marketing_image', full_name='google.ads.googleads.v4.common.GmailAdInfo.marketing_image', index=2, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='marketing_image_headline', full_name='google.ads.googleads.v4.common.GmailAdInfo.marketing_image_headline', index=3, + number=4, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='marketing_image_description', full_name='google.ads.googleads.v4.common.GmailAdInfo.marketing_image_description', index=4, + number=5, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='marketing_image_display_call_to_action', full_name='google.ads.googleads.v4.common.GmailAdInfo.marketing_image_display_call_to_action', index=5, + number=6, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='product_images', full_name='google.ads.googleads.v4.common.GmailAdInfo.product_images', index=6, + number=7, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='product_videos', full_name='google.ads.googleads.v4.common.GmailAdInfo.product_videos', index=7, + number=8, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=2123, + serialized_end=2676, +) + + +_GMAILTEASER = _descriptor.Descriptor( + name='GmailTeaser', + full_name='google.ads.googleads.v4.common.GmailTeaser', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='headline', full_name='google.ads.googleads.v4.common.GmailTeaser.headline', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='description', full_name='google.ads.googleads.v4.common.GmailTeaser.description', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='business_name', full_name='google.ads.googleads.v4.common.GmailTeaser.business_name', index=2, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='logo_image', full_name='google.ads.googleads.v4.common.GmailTeaser.logo_image', index=3, + number=4, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=2679, + serialized_end=2894, +) + + +_DISPLAYCALLTOACTION = _descriptor.Descriptor( + name='DisplayCallToAction', + full_name='google.ads.googleads.v4.common.DisplayCallToAction', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='text', full_name='google.ads.googleads.v4.common.DisplayCallToAction.text', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='text_color', full_name='google.ads.googleads.v4.common.DisplayCallToAction.text_color', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='url_collection_id', full_name='google.ads.googleads.v4.common.DisplayCallToAction.url_collection_id', index=2, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=2897, + serialized_end=3069, +) + + +_PRODUCTIMAGE = _descriptor.Descriptor( + name='ProductImage', + full_name='google.ads.googleads.v4.common.ProductImage', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='product_image', full_name='google.ads.googleads.v4.common.ProductImage.product_image', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='description', full_name='google.ads.googleads.v4.common.ProductImage.description', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='display_call_to_action', full_name='google.ads.googleads.v4.common.ProductImage.display_call_to_action', index=2, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=3072, + serialized_end=3275, +) + + +_PRODUCTVIDEO = _descriptor.Descriptor( + name='ProductVideo', + full_name='google.ads.googleads.v4.common.ProductVideo', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='product_video', full_name='google.ads.googleads.v4.common.ProductVideo.product_video', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=3277, + serialized_end=3344, +) + + +_IMAGEADINFO = _descriptor.Descriptor( + name='ImageAdInfo', + full_name='google.ads.googleads.v4.common.ImageAdInfo', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='pixel_width', full_name='google.ads.googleads.v4.common.ImageAdInfo.pixel_width', index=0, + number=4, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='pixel_height', full_name='google.ads.googleads.v4.common.ImageAdInfo.pixel_height', index=1, + number=5, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='image_url', full_name='google.ads.googleads.v4.common.ImageAdInfo.image_url', index=2, + number=6, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='preview_pixel_width', full_name='google.ads.googleads.v4.common.ImageAdInfo.preview_pixel_width', index=3, + number=7, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='preview_pixel_height', full_name='google.ads.googleads.v4.common.ImageAdInfo.preview_pixel_height', index=4, + number=8, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='preview_image_url', full_name='google.ads.googleads.v4.common.ImageAdInfo.preview_image_url', index=5, + number=9, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='mime_type', full_name='google.ads.googleads.v4.common.ImageAdInfo.mime_type', index=6, + number=10, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='name', full_name='google.ads.googleads.v4.common.ImageAdInfo.name', index=7, + number=11, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='media_file', full_name='google.ads.googleads.v4.common.ImageAdInfo.media_file', index=8, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='data', full_name='google.ads.googleads.v4.common.ImageAdInfo.data', index=9, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='ad_id_to_copy_image_from', full_name='google.ads.googleads.v4.common.ImageAdInfo.ad_id_to_copy_image_from', index=10, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name='image', full_name='google.ads.googleads.v4.common.ImageAdInfo.image', + index=0, containing_type=None, fields=[]), + ], + serialized_start=3347, + serialized_end=3972, +) + + +_VIDEOBUMPERINSTREAMADINFO = _descriptor.Descriptor( + name='VideoBumperInStreamAdInfo', + full_name='google.ads.googleads.v4.common.VideoBumperInStreamAdInfo', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='companion_banner', full_name='google.ads.googleads.v4.common.VideoBumperInStreamAdInfo.companion_banner', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=3974, + serialized_end=4057, +) + + +_VIDEONONSKIPPABLEINSTREAMADINFO = _descriptor.Descriptor( + name='VideoNonSkippableInStreamAdInfo', + full_name='google.ads.googleads.v4.common.VideoNonSkippableInStreamAdInfo', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='companion_banner', full_name='google.ads.googleads.v4.common.VideoNonSkippableInStreamAdInfo.companion_banner', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=4059, + serialized_end=4148, +) + + +_VIDEOTRUEVIEWINSTREAMADINFO = _descriptor.Descriptor( + name='VideoTrueViewInStreamAdInfo', + full_name='google.ads.googleads.v4.common.VideoTrueViewInStreamAdInfo', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='action_button_label', full_name='google.ads.googleads.v4.common.VideoTrueViewInStreamAdInfo.action_button_label', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='action_headline', full_name='google.ads.googleads.v4.common.VideoTrueViewInStreamAdInfo.action_headline', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='companion_banner', full_name='google.ads.googleads.v4.common.VideoTrueViewInStreamAdInfo.companion_banner', index=2, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=4151, + serialized_end=4350, +) + + +_VIDEOOUTSTREAMADINFO = _descriptor.Descriptor( + name='VideoOutstreamAdInfo', + full_name='google.ads.googleads.v4.common.VideoOutstreamAdInfo', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='headline', full_name='google.ads.googleads.v4.common.VideoOutstreamAdInfo.headline', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='description', full_name='google.ads.googleads.v4.common.VideoOutstreamAdInfo.description', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=4352, + serialized_end=4473, +) + + +_VIDEOTRUEVIEWDISCOVERYADINFO = _descriptor.Descriptor( + name='VideoTrueViewDiscoveryAdInfo', + full_name='google.ads.googleads.v4.common.VideoTrueViewDiscoveryAdInfo', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='headline', full_name='google.ads.googleads.v4.common.VideoTrueViewDiscoveryAdInfo.headline', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='description1', full_name='google.ads.googleads.v4.common.VideoTrueViewDiscoveryAdInfo.description1', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='description2', full_name='google.ads.googleads.v4.common.VideoTrueViewDiscoveryAdInfo.description2', index=2, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=4476, + serialized_end=4658, +) + + +_VIDEOADINFO = _descriptor.Descriptor( + name='VideoAdInfo', + full_name='google.ads.googleads.v4.common.VideoAdInfo', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='media_file', full_name='google.ads.googleads.v4.common.VideoAdInfo.media_file', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='in_stream', full_name='google.ads.googleads.v4.common.VideoAdInfo.in_stream', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='bumper', full_name='google.ads.googleads.v4.common.VideoAdInfo.bumper', index=2, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='out_stream', full_name='google.ads.googleads.v4.common.VideoAdInfo.out_stream', index=3, + number=4, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='non_skippable', full_name='google.ads.googleads.v4.common.VideoAdInfo.non_skippable', index=4, + number=5, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='discovery', full_name='google.ads.googleads.v4.common.VideoAdInfo.discovery', index=5, + number=6, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name='format', full_name='google.ads.googleads.v4.common.VideoAdInfo.format', + index=0, containing_type=None, fields=[]), + ], + serialized_start=4661, + serialized_end=5142, +) + + +_RESPONSIVESEARCHADINFO = _descriptor.Descriptor( + name='ResponsiveSearchAdInfo', + full_name='google.ads.googleads.v4.common.ResponsiveSearchAdInfo', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='headlines', full_name='google.ads.googleads.v4.common.ResponsiveSearchAdInfo.headlines', index=0, + number=1, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='descriptions', full_name='google.ads.googleads.v4.common.ResponsiveSearchAdInfo.descriptions', index=1, + number=2, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='path1', full_name='google.ads.googleads.v4.common.ResponsiveSearchAdInfo.path1', index=2, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='path2', full_name='google.ads.googleads.v4.common.ResponsiveSearchAdInfo.path2', index=3, + number=4, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=5145, + serialized_end=5390, +) + + +_LEGACYRESPONSIVEDISPLAYADINFO = _descriptor.Descriptor( + name='LegacyResponsiveDisplayAdInfo', + full_name='google.ads.googleads.v4.common.LegacyResponsiveDisplayAdInfo', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='short_headline', full_name='google.ads.googleads.v4.common.LegacyResponsiveDisplayAdInfo.short_headline', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='long_headline', full_name='google.ads.googleads.v4.common.LegacyResponsiveDisplayAdInfo.long_headline', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='description', full_name='google.ads.googleads.v4.common.LegacyResponsiveDisplayAdInfo.description', index=2, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='business_name', full_name='google.ads.googleads.v4.common.LegacyResponsiveDisplayAdInfo.business_name', index=3, + number=4, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='allow_flexible_color', full_name='google.ads.googleads.v4.common.LegacyResponsiveDisplayAdInfo.allow_flexible_color', index=4, + number=5, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='accent_color', full_name='google.ads.googleads.v4.common.LegacyResponsiveDisplayAdInfo.accent_color', index=5, + number=6, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='main_color', full_name='google.ads.googleads.v4.common.LegacyResponsiveDisplayAdInfo.main_color', index=6, + number=7, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='call_to_action_text', full_name='google.ads.googleads.v4.common.LegacyResponsiveDisplayAdInfo.call_to_action_text', index=7, + number=8, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='logo_image', full_name='google.ads.googleads.v4.common.LegacyResponsiveDisplayAdInfo.logo_image', index=8, + number=9, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='square_logo_image', full_name='google.ads.googleads.v4.common.LegacyResponsiveDisplayAdInfo.square_logo_image', index=9, + number=10, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='marketing_image', full_name='google.ads.googleads.v4.common.LegacyResponsiveDisplayAdInfo.marketing_image', index=10, + number=11, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='square_marketing_image', full_name='google.ads.googleads.v4.common.LegacyResponsiveDisplayAdInfo.square_marketing_image', index=11, + number=12, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='format_setting', full_name='google.ads.googleads.v4.common.LegacyResponsiveDisplayAdInfo.format_setting', index=12, + number=13, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='price_prefix', full_name='google.ads.googleads.v4.common.LegacyResponsiveDisplayAdInfo.price_prefix', index=13, + number=14, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='promo_text', full_name='google.ads.googleads.v4.common.LegacyResponsiveDisplayAdInfo.promo_text', index=14, + number=15, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=5393, + serialized_end=6286, +) + + +_APPADINFO = _descriptor.Descriptor( + name='AppAdInfo', + full_name='google.ads.googleads.v4.common.AppAdInfo', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='mandatory_ad_text', full_name='google.ads.googleads.v4.common.AppAdInfo.mandatory_ad_text', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='headlines', full_name='google.ads.googleads.v4.common.AppAdInfo.headlines', index=1, + number=2, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='descriptions', full_name='google.ads.googleads.v4.common.AppAdInfo.descriptions', index=2, + number=3, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='images', full_name='google.ads.googleads.v4.common.AppAdInfo.images', index=3, + number=4, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='youtube_videos', full_name='google.ads.googleads.v4.common.AppAdInfo.youtube_videos', index=4, + number=5, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='html5_media_bundles', full_name='google.ads.googleads.v4.common.AppAdInfo.html5_media_bundles', index=5, + number=6, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=6289, + serialized_end=6716, +) + + +_APPENGAGEMENTADINFO = _descriptor.Descriptor( + name='AppEngagementAdInfo', + full_name='google.ads.googleads.v4.common.AppEngagementAdInfo', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='headlines', full_name='google.ads.googleads.v4.common.AppEngagementAdInfo.headlines', index=0, + number=1, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='descriptions', full_name='google.ads.googleads.v4.common.AppEngagementAdInfo.descriptions', index=1, + number=2, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='images', full_name='google.ads.googleads.v4.common.AppEngagementAdInfo.images', index=2, + number=3, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='videos', full_name='google.ads.googleads.v4.common.AppEngagementAdInfo.videos', index=3, + number=4, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=6719, + serialized_end=6995, +) + + +_LEGACYAPPINSTALLADINFO = _descriptor.Descriptor( + name='LegacyAppInstallAdInfo', + full_name='google.ads.googleads.v4.common.LegacyAppInstallAdInfo', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='app_id', full_name='google.ads.googleads.v4.common.LegacyAppInstallAdInfo.app_id', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='app_store', full_name='google.ads.googleads.v4.common.LegacyAppInstallAdInfo.app_store', index=1, + number=2, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='headline', full_name='google.ads.googleads.v4.common.LegacyAppInstallAdInfo.headline', index=2, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='description1', full_name='google.ads.googleads.v4.common.LegacyAppInstallAdInfo.description1', index=3, + number=4, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='description2', full_name='google.ads.googleads.v4.common.LegacyAppInstallAdInfo.description2', index=4, + number=5, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=6998, + serialized_end=7329, +) + + +_RESPONSIVEDISPLAYADINFO = _descriptor.Descriptor( + name='ResponsiveDisplayAdInfo', + full_name='google.ads.googleads.v4.common.ResponsiveDisplayAdInfo', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='marketing_images', full_name='google.ads.googleads.v4.common.ResponsiveDisplayAdInfo.marketing_images', index=0, + number=1, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='square_marketing_images', full_name='google.ads.googleads.v4.common.ResponsiveDisplayAdInfo.square_marketing_images', index=1, + number=2, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='logo_images', full_name='google.ads.googleads.v4.common.ResponsiveDisplayAdInfo.logo_images', index=2, + number=3, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='square_logo_images', full_name='google.ads.googleads.v4.common.ResponsiveDisplayAdInfo.square_logo_images', index=3, + number=4, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='headlines', full_name='google.ads.googleads.v4.common.ResponsiveDisplayAdInfo.headlines', index=4, + number=5, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='long_headline', full_name='google.ads.googleads.v4.common.ResponsiveDisplayAdInfo.long_headline', index=5, + number=6, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='descriptions', full_name='google.ads.googleads.v4.common.ResponsiveDisplayAdInfo.descriptions', index=6, + number=7, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='youtube_videos', full_name='google.ads.googleads.v4.common.ResponsiveDisplayAdInfo.youtube_videos', index=7, + number=8, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='business_name', full_name='google.ads.googleads.v4.common.ResponsiveDisplayAdInfo.business_name', index=8, + number=9, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='main_color', full_name='google.ads.googleads.v4.common.ResponsiveDisplayAdInfo.main_color', index=9, + number=10, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='accent_color', full_name='google.ads.googleads.v4.common.ResponsiveDisplayAdInfo.accent_color', index=10, + number=11, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='allow_flexible_color', full_name='google.ads.googleads.v4.common.ResponsiveDisplayAdInfo.allow_flexible_color', index=11, + number=12, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='call_to_action_text', full_name='google.ads.googleads.v4.common.ResponsiveDisplayAdInfo.call_to_action_text', index=12, + number=13, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='price_prefix', full_name='google.ads.googleads.v4.common.ResponsiveDisplayAdInfo.price_prefix', index=13, + number=14, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='promo_text', full_name='google.ads.googleads.v4.common.ResponsiveDisplayAdInfo.promo_text', index=14, + number=15, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='format_setting', full_name='google.ads.googleads.v4.common.ResponsiveDisplayAdInfo.format_setting', index=15, + number=16, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=7332, + serialized_end=8398, +) + + +_LOCALADINFO = _descriptor.Descriptor( + name='LocalAdInfo', + full_name='google.ads.googleads.v4.common.LocalAdInfo', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='headlines', full_name='google.ads.googleads.v4.common.LocalAdInfo.headlines', index=0, + number=1, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='descriptions', full_name='google.ads.googleads.v4.common.LocalAdInfo.descriptions', index=1, + number=2, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='call_to_actions', full_name='google.ads.googleads.v4.common.LocalAdInfo.call_to_actions', index=2, + number=3, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='marketing_images', full_name='google.ads.googleads.v4.common.LocalAdInfo.marketing_images', index=3, + number=4, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='logo_images', full_name='google.ads.googleads.v4.common.LocalAdInfo.logo_images', index=4, + number=5, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='videos', full_name='google.ads.googleads.v4.common.LocalAdInfo.videos', index=5, + number=6, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='path1', full_name='google.ads.googleads.v4.common.LocalAdInfo.path1', index=6, + number=7, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='path2', full_name='google.ads.googleads.v4.common.LocalAdInfo.path2', index=7, + number=8, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=8401, + serialized_end=8906, +) + + +_DISPLAYUPLOADADINFO = _descriptor.Descriptor( + name='DisplayUploadAdInfo', + full_name='google.ads.googleads.v4.common.DisplayUploadAdInfo', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='display_upload_product_type', full_name='google.ads.googleads.v4.common.DisplayUploadAdInfo.display_upload_product_type', index=0, + number=1, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='media_bundle', full_name='google.ads.googleads.v4.common.DisplayUploadAdInfo.media_bundle', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name='media_asset', full_name='google.ads.googleads.v4.common.DisplayUploadAdInfo.media_asset', + index=0, containing_type=None, fields=[]), + ], + serialized_start=8909, + serialized_end=9144, +) + +_TEXTADINFO.fields_by_name['headline'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_TEXTADINFO.fields_by_name['description1'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_TEXTADINFO.fields_by_name['description2'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_EXPANDEDTEXTADINFO.fields_by_name['headline_part1'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_EXPANDEDTEXTADINFO.fields_by_name['headline_part2'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_EXPANDEDTEXTADINFO.fields_by_name['headline_part3'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_EXPANDEDTEXTADINFO.fields_by_name['description'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_EXPANDEDTEXTADINFO.fields_by_name['description2'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_EXPANDEDTEXTADINFO.fields_by_name['path1'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_EXPANDEDTEXTADINFO.fields_by_name['path2'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_CALLONLYADINFO.fields_by_name['country_code'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_CALLONLYADINFO.fields_by_name['phone_number'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_CALLONLYADINFO.fields_by_name['business_name'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_CALLONLYADINFO.fields_by_name['headline1'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_CALLONLYADINFO.fields_by_name['headline2'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_CALLONLYADINFO.fields_by_name['description1'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_CALLONLYADINFO.fields_by_name['description2'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_CALLONLYADINFO.fields_by_name['call_tracked'].message_type = google_dot_protobuf_dot_wrappers__pb2._BOOLVALUE +_CALLONLYADINFO.fields_by_name['disable_call_conversion'].message_type = google_dot_protobuf_dot_wrappers__pb2._BOOLVALUE +_CALLONLYADINFO.fields_by_name['phone_number_verification_url'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_CALLONLYADINFO.fields_by_name['conversion_action'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_CALLONLYADINFO.fields_by_name['conversion_reporting_state'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_call__conversion__reporting__state__pb2._CALLCONVERSIONREPORTINGSTATEENUM_CALLCONVERSIONREPORTINGSTATE +_EXPANDEDDYNAMICSEARCHADINFO.fields_by_name['description'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_EXPANDEDDYNAMICSEARCHADINFO.fields_by_name['description2'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_SHOPPINGCOMPARISONLISTINGADINFO.fields_by_name['headline'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_GMAILADINFO.fields_by_name['teaser'].message_type = _GMAILTEASER +_GMAILADINFO.fields_by_name['header_image'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_GMAILADINFO.fields_by_name['marketing_image'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_GMAILADINFO.fields_by_name['marketing_image_headline'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_GMAILADINFO.fields_by_name['marketing_image_description'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_GMAILADINFO.fields_by_name['marketing_image_display_call_to_action'].message_type = _DISPLAYCALLTOACTION +_GMAILADINFO.fields_by_name['product_images'].message_type = _PRODUCTIMAGE +_GMAILADINFO.fields_by_name['product_videos'].message_type = _PRODUCTVIDEO +_GMAILTEASER.fields_by_name['headline'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_GMAILTEASER.fields_by_name['description'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_GMAILTEASER.fields_by_name['business_name'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_GMAILTEASER.fields_by_name['logo_image'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_DISPLAYCALLTOACTION.fields_by_name['text'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_DISPLAYCALLTOACTION.fields_by_name['text_color'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_DISPLAYCALLTOACTION.fields_by_name['url_collection_id'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_PRODUCTIMAGE.fields_by_name['product_image'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_PRODUCTIMAGE.fields_by_name['description'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_PRODUCTIMAGE.fields_by_name['display_call_to_action'].message_type = _DISPLAYCALLTOACTION +_PRODUCTVIDEO.fields_by_name['product_video'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_IMAGEADINFO.fields_by_name['pixel_width'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_IMAGEADINFO.fields_by_name['pixel_height'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_IMAGEADINFO.fields_by_name['image_url'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_IMAGEADINFO.fields_by_name['preview_pixel_width'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_IMAGEADINFO.fields_by_name['preview_pixel_height'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_IMAGEADINFO.fields_by_name['preview_image_url'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_IMAGEADINFO.fields_by_name['mime_type'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_mime__type__pb2._MIMETYPEENUM_MIMETYPE +_IMAGEADINFO.fields_by_name['name'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_IMAGEADINFO.fields_by_name['media_file'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_IMAGEADINFO.fields_by_name['data'].message_type = google_dot_protobuf_dot_wrappers__pb2._BYTESVALUE +_IMAGEADINFO.fields_by_name['ad_id_to_copy_image_from'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_IMAGEADINFO.oneofs_by_name['image'].fields.append( + _IMAGEADINFO.fields_by_name['media_file']) +_IMAGEADINFO.fields_by_name['media_file'].containing_oneof = _IMAGEADINFO.oneofs_by_name['image'] +_IMAGEADINFO.oneofs_by_name['image'].fields.append( + _IMAGEADINFO.fields_by_name['data']) +_IMAGEADINFO.fields_by_name['data'].containing_oneof = _IMAGEADINFO.oneofs_by_name['image'] +_IMAGEADINFO.oneofs_by_name['image'].fields.append( + _IMAGEADINFO.fields_by_name['ad_id_to_copy_image_from']) +_IMAGEADINFO.fields_by_name['ad_id_to_copy_image_from'].containing_oneof = _IMAGEADINFO.oneofs_by_name['image'] +_VIDEOBUMPERINSTREAMADINFO.fields_by_name['companion_banner'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_VIDEONONSKIPPABLEINSTREAMADINFO.fields_by_name['companion_banner'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_VIDEOTRUEVIEWINSTREAMADINFO.fields_by_name['action_button_label'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_VIDEOTRUEVIEWINSTREAMADINFO.fields_by_name['action_headline'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_VIDEOTRUEVIEWINSTREAMADINFO.fields_by_name['companion_banner'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_VIDEOOUTSTREAMADINFO.fields_by_name['headline'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_VIDEOOUTSTREAMADINFO.fields_by_name['description'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_VIDEOTRUEVIEWDISCOVERYADINFO.fields_by_name['headline'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_VIDEOTRUEVIEWDISCOVERYADINFO.fields_by_name['description1'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_VIDEOTRUEVIEWDISCOVERYADINFO.fields_by_name['description2'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_VIDEOADINFO.fields_by_name['media_file'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_VIDEOADINFO.fields_by_name['in_stream'].message_type = _VIDEOTRUEVIEWINSTREAMADINFO +_VIDEOADINFO.fields_by_name['bumper'].message_type = _VIDEOBUMPERINSTREAMADINFO +_VIDEOADINFO.fields_by_name['out_stream'].message_type = _VIDEOOUTSTREAMADINFO +_VIDEOADINFO.fields_by_name['non_skippable'].message_type = _VIDEONONSKIPPABLEINSTREAMADINFO +_VIDEOADINFO.fields_by_name['discovery'].message_type = _VIDEOTRUEVIEWDISCOVERYADINFO +_VIDEOADINFO.oneofs_by_name['format'].fields.append( + _VIDEOADINFO.fields_by_name['in_stream']) +_VIDEOADINFO.fields_by_name['in_stream'].containing_oneof = _VIDEOADINFO.oneofs_by_name['format'] +_VIDEOADINFO.oneofs_by_name['format'].fields.append( + _VIDEOADINFO.fields_by_name['bumper']) +_VIDEOADINFO.fields_by_name['bumper'].containing_oneof = _VIDEOADINFO.oneofs_by_name['format'] +_VIDEOADINFO.oneofs_by_name['format'].fields.append( + _VIDEOADINFO.fields_by_name['out_stream']) +_VIDEOADINFO.fields_by_name['out_stream'].containing_oneof = _VIDEOADINFO.oneofs_by_name['format'] +_VIDEOADINFO.oneofs_by_name['format'].fields.append( + _VIDEOADINFO.fields_by_name['non_skippable']) +_VIDEOADINFO.fields_by_name['non_skippable'].containing_oneof = _VIDEOADINFO.oneofs_by_name['format'] +_VIDEOADINFO.oneofs_by_name['format'].fields.append( + _VIDEOADINFO.fields_by_name['discovery']) +_VIDEOADINFO.fields_by_name['discovery'].containing_oneof = _VIDEOADINFO.oneofs_by_name['format'] +_RESPONSIVESEARCHADINFO.fields_by_name['headlines'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_ad__asset__pb2._ADTEXTASSET +_RESPONSIVESEARCHADINFO.fields_by_name['descriptions'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_ad__asset__pb2._ADTEXTASSET +_RESPONSIVESEARCHADINFO.fields_by_name['path1'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_RESPONSIVESEARCHADINFO.fields_by_name['path2'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_LEGACYRESPONSIVEDISPLAYADINFO.fields_by_name['short_headline'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_LEGACYRESPONSIVEDISPLAYADINFO.fields_by_name['long_headline'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_LEGACYRESPONSIVEDISPLAYADINFO.fields_by_name['description'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_LEGACYRESPONSIVEDISPLAYADINFO.fields_by_name['business_name'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_LEGACYRESPONSIVEDISPLAYADINFO.fields_by_name['allow_flexible_color'].message_type = google_dot_protobuf_dot_wrappers__pb2._BOOLVALUE +_LEGACYRESPONSIVEDISPLAYADINFO.fields_by_name['accent_color'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_LEGACYRESPONSIVEDISPLAYADINFO.fields_by_name['main_color'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_LEGACYRESPONSIVEDISPLAYADINFO.fields_by_name['call_to_action_text'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_LEGACYRESPONSIVEDISPLAYADINFO.fields_by_name['logo_image'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_LEGACYRESPONSIVEDISPLAYADINFO.fields_by_name['square_logo_image'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_LEGACYRESPONSIVEDISPLAYADINFO.fields_by_name['marketing_image'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_LEGACYRESPONSIVEDISPLAYADINFO.fields_by_name['square_marketing_image'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_LEGACYRESPONSIVEDISPLAYADINFO.fields_by_name['format_setting'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_display__ad__format__setting__pb2._DISPLAYADFORMATSETTINGENUM_DISPLAYADFORMATSETTING +_LEGACYRESPONSIVEDISPLAYADINFO.fields_by_name['price_prefix'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_LEGACYRESPONSIVEDISPLAYADINFO.fields_by_name['promo_text'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_APPADINFO.fields_by_name['mandatory_ad_text'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_ad__asset__pb2._ADTEXTASSET +_APPADINFO.fields_by_name['headlines'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_ad__asset__pb2._ADTEXTASSET +_APPADINFO.fields_by_name['descriptions'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_ad__asset__pb2._ADTEXTASSET +_APPADINFO.fields_by_name['images'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_ad__asset__pb2._ADIMAGEASSET +_APPADINFO.fields_by_name['youtube_videos'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_ad__asset__pb2._ADVIDEOASSET +_APPADINFO.fields_by_name['html5_media_bundles'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_ad__asset__pb2._ADMEDIABUNDLEASSET +_APPENGAGEMENTADINFO.fields_by_name['headlines'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_ad__asset__pb2._ADTEXTASSET +_APPENGAGEMENTADINFO.fields_by_name['descriptions'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_ad__asset__pb2._ADTEXTASSET +_APPENGAGEMENTADINFO.fields_by_name['images'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_ad__asset__pb2._ADIMAGEASSET +_APPENGAGEMENTADINFO.fields_by_name['videos'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_ad__asset__pb2._ADVIDEOASSET +_LEGACYAPPINSTALLADINFO.fields_by_name['app_id'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_LEGACYAPPINSTALLADINFO.fields_by_name['app_store'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_legacy__app__install__ad__app__store__pb2._LEGACYAPPINSTALLADAPPSTOREENUM_LEGACYAPPINSTALLADAPPSTORE +_LEGACYAPPINSTALLADINFO.fields_by_name['headline'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_LEGACYAPPINSTALLADINFO.fields_by_name['description1'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_LEGACYAPPINSTALLADINFO.fields_by_name['description2'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_RESPONSIVEDISPLAYADINFO.fields_by_name['marketing_images'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_ad__asset__pb2._ADIMAGEASSET +_RESPONSIVEDISPLAYADINFO.fields_by_name['square_marketing_images'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_ad__asset__pb2._ADIMAGEASSET +_RESPONSIVEDISPLAYADINFO.fields_by_name['logo_images'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_ad__asset__pb2._ADIMAGEASSET +_RESPONSIVEDISPLAYADINFO.fields_by_name['square_logo_images'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_ad__asset__pb2._ADIMAGEASSET +_RESPONSIVEDISPLAYADINFO.fields_by_name['headlines'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_ad__asset__pb2._ADTEXTASSET +_RESPONSIVEDISPLAYADINFO.fields_by_name['long_headline'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_ad__asset__pb2._ADTEXTASSET +_RESPONSIVEDISPLAYADINFO.fields_by_name['descriptions'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_ad__asset__pb2._ADTEXTASSET +_RESPONSIVEDISPLAYADINFO.fields_by_name['youtube_videos'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_ad__asset__pb2._ADVIDEOASSET +_RESPONSIVEDISPLAYADINFO.fields_by_name['business_name'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_RESPONSIVEDISPLAYADINFO.fields_by_name['main_color'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_RESPONSIVEDISPLAYADINFO.fields_by_name['accent_color'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_RESPONSIVEDISPLAYADINFO.fields_by_name['allow_flexible_color'].message_type = google_dot_protobuf_dot_wrappers__pb2._BOOLVALUE +_RESPONSIVEDISPLAYADINFO.fields_by_name['call_to_action_text'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_RESPONSIVEDISPLAYADINFO.fields_by_name['price_prefix'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_RESPONSIVEDISPLAYADINFO.fields_by_name['promo_text'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_RESPONSIVEDISPLAYADINFO.fields_by_name['format_setting'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_display__ad__format__setting__pb2._DISPLAYADFORMATSETTINGENUM_DISPLAYADFORMATSETTING +_LOCALADINFO.fields_by_name['headlines'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_ad__asset__pb2._ADTEXTASSET +_LOCALADINFO.fields_by_name['descriptions'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_ad__asset__pb2._ADTEXTASSET +_LOCALADINFO.fields_by_name['call_to_actions'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_ad__asset__pb2._ADTEXTASSET +_LOCALADINFO.fields_by_name['marketing_images'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_ad__asset__pb2._ADIMAGEASSET +_LOCALADINFO.fields_by_name['logo_images'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_ad__asset__pb2._ADIMAGEASSET +_LOCALADINFO.fields_by_name['videos'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_ad__asset__pb2._ADVIDEOASSET +_LOCALADINFO.fields_by_name['path1'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_LOCALADINFO.fields_by_name['path2'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_DISPLAYUPLOADADINFO.fields_by_name['display_upload_product_type'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_display__upload__product__type__pb2._DISPLAYUPLOADPRODUCTTYPEENUM_DISPLAYUPLOADPRODUCTTYPE +_DISPLAYUPLOADADINFO.fields_by_name['media_bundle'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_ad__asset__pb2._ADMEDIABUNDLEASSET +_DISPLAYUPLOADADINFO.oneofs_by_name['media_asset'].fields.append( + _DISPLAYUPLOADADINFO.fields_by_name['media_bundle']) +_DISPLAYUPLOADADINFO.fields_by_name['media_bundle'].containing_oneof = _DISPLAYUPLOADADINFO.oneofs_by_name['media_asset'] +DESCRIPTOR.message_types_by_name['TextAdInfo'] = _TEXTADINFO +DESCRIPTOR.message_types_by_name['ExpandedTextAdInfo'] = _EXPANDEDTEXTADINFO +DESCRIPTOR.message_types_by_name['CallOnlyAdInfo'] = _CALLONLYADINFO +DESCRIPTOR.message_types_by_name['ExpandedDynamicSearchAdInfo'] = _EXPANDEDDYNAMICSEARCHADINFO +DESCRIPTOR.message_types_by_name['HotelAdInfo'] = _HOTELADINFO +DESCRIPTOR.message_types_by_name['ShoppingSmartAdInfo'] = _SHOPPINGSMARTADINFO +DESCRIPTOR.message_types_by_name['ShoppingProductAdInfo'] = _SHOPPINGPRODUCTADINFO +DESCRIPTOR.message_types_by_name['ShoppingComparisonListingAdInfo'] = _SHOPPINGCOMPARISONLISTINGADINFO +DESCRIPTOR.message_types_by_name['GmailAdInfo'] = _GMAILADINFO +DESCRIPTOR.message_types_by_name['GmailTeaser'] = _GMAILTEASER +DESCRIPTOR.message_types_by_name['DisplayCallToAction'] = _DISPLAYCALLTOACTION +DESCRIPTOR.message_types_by_name['ProductImage'] = _PRODUCTIMAGE +DESCRIPTOR.message_types_by_name['ProductVideo'] = _PRODUCTVIDEO +DESCRIPTOR.message_types_by_name['ImageAdInfo'] = _IMAGEADINFO +DESCRIPTOR.message_types_by_name['VideoBumperInStreamAdInfo'] = _VIDEOBUMPERINSTREAMADINFO +DESCRIPTOR.message_types_by_name['VideoNonSkippableInStreamAdInfo'] = _VIDEONONSKIPPABLEINSTREAMADINFO +DESCRIPTOR.message_types_by_name['VideoTrueViewInStreamAdInfo'] = _VIDEOTRUEVIEWINSTREAMADINFO +DESCRIPTOR.message_types_by_name['VideoOutstreamAdInfo'] = _VIDEOOUTSTREAMADINFO +DESCRIPTOR.message_types_by_name['VideoTrueViewDiscoveryAdInfo'] = _VIDEOTRUEVIEWDISCOVERYADINFO +DESCRIPTOR.message_types_by_name['VideoAdInfo'] = _VIDEOADINFO +DESCRIPTOR.message_types_by_name['ResponsiveSearchAdInfo'] = _RESPONSIVESEARCHADINFO +DESCRIPTOR.message_types_by_name['LegacyResponsiveDisplayAdInfo'] = _LEGACYRESPONSIVEDISPLAYADINFO +DESCRIPTOR.message_types_by_name['AppAdInfo'] = _APPADINFO +DESCRIPTOR.message_types_by_name['AppEngagementAdInfo'] = _APPENGAGEMENTADINFO +DESCRIPTOR.message_types_by_name['LegacyAppInstallAdInfo'] = _LEGACYAPPINSTALLADINFO +DESCRIPTOR.message_types_by_name['ResponsiveDisplayAdInfo'] = _RESPONSIVEDISPLAYADINFO +DESCRIPTOR.message_types_by_name['LocalAdInfo'] = _LOCALADINFO +DESCRIPTOR.message_types_by_name['DisplayUploadAdInfo'] = _DISPLAYUPLOADADINFO +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +TextAdInfo = _reflection.GeneratedProtocolMessageType('TextAdInfo', (_message.Message,), dict( + DESCRIPTOR = _TEXTADINFO, + __module__ = 'google.ads.googleads_v4.proto.common.ad_type_infos_pb2' + , + __doc__ = """A text ad. + + + Attributes: + headline: + The headline of the ad. + description1: + The first line of the ad's description. + description2: + The second line of the ad's description. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.common.TextAdInfo) + )) +_sym_db.RegisterMessage(TextAdInfo) + +ExpandedTextAdInfo = _reflection.GeneratedProtocolMessageType('ExpandedTextAdInfo', (_message.Message,), dict( + DESCRIPTOR = _EXPANDEDTEXTADINFO, + __module__ = 'google.ads.googleads_v4.proto.common.ad_type_infos_pb2' + , + __doc__ = """An expanded text ad. + + + Attributes: + headline_part1: + The first part of the ad's headline. + headline_part2: + The second part of the ad's headline. + headline_part3: + The third part of the ad's headline. + description: + The description of the ad. + description2: + The second description of the ad. + path1: + The text that can appear alongside the ad's displayed URL. + path2: + Additional text that can appear alongside the ad's displayed + URL. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.common.ExpandedTextAdInfo) + )) +_sym_db.RegisterMessage(ExpandedTextAdInfo) + +CallOnlyAdInfo = _reflection.GeneratedProtocolMessageType('CallOnlyAdInfo', (_message.Message,), dict( + DESCRIPTOR = _CALLONLYADINFO, + __module__ = 'google.ads.googleads_v4.proto.common.ad_type_infos_pb2' + , + __doc__ = """A call-only ad. + + + Attributes: + country_code: + The country code in the ad. + phone_number: + The phone number in the ad. + business_name: + The business name in the ad. + headline1: + First headline in the ad. + headline2: + Second headline in the ad. + description1: + The first line of the ad's description. + description2: + The second line of the ad's description. + call_tracked: + Whether to enable call tracking for the creative. Enabling + call tracking also enables call conversions. + disable_call_conversion: + Whether to disable call conversion for the creative. If set to + ``true``, disables call conversions even when ``call_tracked`` + is ``true``. If ``call_tracked`` is ``false``, this field is + ignored. + phone_number_verification_url: + The URL to be used for phone number verification. + conversion_action: + The conversion action to attribute a call conversion to. If + not set a default conversion action is used. This field only + has effect if call\_tracked is set to true. Otherwise this + field is ignored. + conversion_reporting_state: + The call conversion behavior of this call only ad. It can use + its own call conversion setting, inherit the account level + setting, or be disabled. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.common.CallOnlyAdInfo) + )) +_sym_db.RegisterMessage(CallOnlyAdInfo) + +ExpandedDynamicSearchAdInfo = _reflection.GeneratedProtocolMessageType('ExpandedDynamicSearchAdInfo', (_message.Message,), dict( + DESCRIPTOR = _EXPANDEDDYNAMICSEARCHADINFO, + __module__ = 'google.ads.googleads_v4.proto.common.ad_type_infos_pb2' + , + __doc__ = """An expanded dynamic search ad. + + + Attributes: + description: + The description of the ad. + description2: + The second description of the ad. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.common.ExpandedDynamicSearchAdInfo) + )) +_sym_db.RegisterMessage(ExpandedDynamicSearchAdInfo) + +HotelAdInfo = _reflection.GeneratedProtocolMessageType('HotelAdInfo', (_message.Message,), dict( + DESCRIPTOR = _HOTELADINFO, + __module__ = 'google.ads.googleads_v4.proto.common.ad_type_infos_pb2' + , + __doc__ = """A hotel ad. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.common.HotelAdInfo) + )) +_sym_db.RegisterMessage(HotelAdInfo) + +ShoppingSmartAdInfo = _reflection.GeneratedProtocolMessageType('ShoppingSmartAdInfo', (_message.Message,), dict( + DESCRIPTOR = _SHOPPINGSMARTADINFO, + __module__ = 'google.ads.googleads_v4.proto.common.ad_type_infos_pb2' + , + __doc__ = """A Smart Shopping ad. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.common.ShoppingSmartAdInfo) + )) +_sym_db.RegisterMessage(ShoppingSmartAdInfo) + +ShoppingProductAdInfo = _reflection.GeneratedProtocolMessageType('ShoppingProductAdInfo', (_message.Message,), dict( + DESCRIPTOR = _SHOPPINGPRODUCTADINFO, + __module__ = 'google.ads.googleads_v4.proto.common.ad_type_infos_pb2' + , + __doc__ = """A standard Shopping ad. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.common.ShoppingProductAdInfo) + )) +_sym_db.RegisterMessage(ShoppingProductAdInfo) + +ShoppingComparisonListingAdInfo = _reflection.GeneratedProtocolMessageType('ShoppingComparisonListingAdInfo', (_message.Message,), dict( + DESCRIPTOR = _SHOPPINGCOMPARISONLISTINGADINFO, + __module__ = 'google.ads.googleads_v4.proto.common.ad_type_infos_pb2' + , + __doc__ = """A Shopping Comparison Listing ad. + + + Attributes: + headline: + Headline of the ad. This field is required. Allowed length is + between 25 and 45 characters. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.common.ShoppingComparisonListingAdInfo) + )) +_sym_db.RegisterMessage(ShoppingComparisonListingAdInfo) + +GmailAdInfo = _reflection.GeneratedProtocolMessageType('GmailAdInfo', (_message.Message,), dict( + DESCRIPTOR = _GMAILADINFO, + __module__ = 'google.ads.googleads_v4.proto.common.ad_type_infos_pb2' + , + __doc__ = """A Gmail ad. + + + Attributes: + teaser: + The Gmail teaser. + header_image: + The MediaFile resource name of the header image. Valid image + types are GIF, JPEG and PNG. The minimum size is 300x100 + pixels and the aspect ratio must be between 3:1 and 5:1 + (+-1%). + marketing_image: + The MediaFile resource name of the marketing image. Valid + image types are GIF, JPEG and PNG. The image must either be + landscape with a minimum size of 600x314 pixels and aspect + ratio of 600:314 (+-1%) or square with a minimum size of + 300x300 pixels and aspect ratio of 1:1 (+-1%) + marketing_image_headline: + Headline of the marketing image. + marketing_image_description: + Description of the marketing image. + marketing_image_display_call_to_action: + Display-call-to-action of the marketing image. + product_images: + Product images. Up to 15 images are supported. + product_videos: + Product videos. Up to 7 videos are supported. At least one + product video or a marketing image must be specified. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.common.GmailAdInfo) + )) +_sym_db.RegisterMessage(GmailAdInfo) + +GmailTeaser = _reflection.GeneratedProtocolMessageType('GmailTeaser', (_message.Message,), dict( + DESCRIPTOR = _GMAILTEASER, + __module__ = 'google.ads.googleads_v4.proto.common.ad_type_infos_pb2' + , + __doc__ = """Gmail teaser data. The teaser is a small header that acts as an + invitation to view the rest of the ad (the body). + + + Attributes: + headline: + Headline of the teaser. + description: + Description of the teaser. + business_name: + Business name of the advertiser. + logo_image: + The MediaFile resource name of the logo image. Valid image + types are GIF, JPEG and PNG. The minimum size is 144x144 + pixels and the aspect ratio must be 1:1 (+-1%). + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.common.GmailTeaser) + )) +_sym_db.RegisterMessage(GmailTeaser) + +DisplayCallToAction = _reflection.GeneratedProtocolMessageType('DisplayCallToAction', (_message.Message,), dict( + DESCRIPTOR = _DISPLAYCALLTOACTION, + __module__ = 'google.ads.googleads_v4.proto.common.ad_type_infos_pb2' + , + __doc__ = """Data for display call to action. The call to action is a piece of the ad + that prompts the user to do something. Like clicking a link or making a + phone call. + + + Attributes: + text: + Text for the display-call-to-action. + text_color: + Text color for the display-call-to-action in hexadecimal, e.g. + #ffffff for white. + url_collection_id: + Identifies the url collection in the ad.url\_collections + field. If not set the url defaults to final\_url. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.common.DisplayCallToAction) + )) +_sym_db.RegisterMessage(DisplayCallToAction) + +ProductImage = _reflection.GeneratedProtocolMessageType('ProductImage', (_message.Message,), dict( + DESCRIPTOR = _PRODUCTIMAGE, + __module__ = 'google.ads.googleads_v4.proto.common.ad_type_infos_pb2' + , + __doc__ = """Product image specific data. + + + Attributes: + product_image: + The MediaFile resource name of the product image. Valid image + types are GIF, JPEG and PNG. The minimum size is 300x300 + pixels and the aspect ratio must be 1:1 (+-1%). + description: + Description of the product. + display_call_to_action: + Display-call-to-action of the product image. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.common.ProductImage) + )) +_sym_db.RegisterMessage(ProductImage) + +ProductVideo = _reflection.GeneratedProtocolMessageType('ProductVideo', (_message.Message,), dict( + DESCRIPTOR = _PRODUCTVIDEO, + __module__ = 'google.ads.googleads_v4.proto.common.ad_type_infos_pb2' + , + __doc__ = """Product video specific data. + + + Attributes: + product_video: + The MediaFile resource name of a video which must be hosted on + YouTube. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.common.ProductVideo) + )) +_sym_db.RegisterMessage(ProductVideo) + +ImageAdInfo = _reflection.GeneratedProtocolMessageType('ImageAdInfo', (_message.Message,), dict( + DESCRIPTOR = _IMAGEADINFO, + __module__ = 'google.ads.googleads_v4.proto.common.ad_type_infos_pb2' + , + __doc__ = """An image ad. + + + Attributes: + pixel_width: + Width in pixels of the full size image. + pixel_height: + Height in pixels of the full size image. + image_url: + URL of the full size image. + preview_pixel_width: + Width in pixels of the preview size image. + preview_pixel_height: + Height in pixels of the preview size image. + preview_image_url: + URL of the preview size image. + mime_type: + The mime type of the image. + name: + The name of the image. If the image was created from a + MediaFile, this is the MediaFile's name. If the image was + created from bytes, this is empty. + image: + The image to create the ImageAd from. This can be specified in + one of two ways. 1. An existing MediaFile resource. 2. The raw + image data as bytes. + media_file: + The MediaFile resource to use for the image. + data: + Raw image data as bytes. + ad_id_to_copy_image_from: + An ad ID to copy the image from. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.common.ImageAdInfo) + )) +_sym_db.RegisterMessage(ImageAdInfo) + +VideoBumperInStreamAdInfo = _reflection.GeneratedProtocolMessageType('VideoBumperInStreamAdInfo', (_message.Message,), dict( + DESCRIPTOR = _VIDEOBUMPERINSTREAMADINFO, + __module__ = 'google.ads.googleads_v4.proto.common.ad_type_infos_pb2' + , + __doc__ = """Representation of video bumper in-stream ad format (very short in-stream + non-skippable video ad). + + + Attributes: + companion_banner: + The MediaFile resource name of the companion banner used with + the ad. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.common.VideoBumperInStreamAdInfo) + )) +_sym_db.RegisterMessage(VideoBumperInStreamAdInfo) + +VideoNonSkippableInStreamAdInfo = _reflection.GeneratedProtocolMessageType('VideoNonSkippableInStreamAdInfo', (_message.Message,), dict( + DESCRIPTOR = _VIDEONONSKIPPABLEINSTREAMADINFO, + __module__ = 'google.ads.googleads_v4.proto.common.ad_type_infos_pb2' + , + __doc__ = """Representation of video non-skippable in-stream ad format (15 second + in-stream non-skippable video ad). + + + Attributes: + companion_banner: + The MediaFile resource name of the companion banner used with + the ad. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.common.VideoNonSkippableInStreamAdInfo) + )) +_sym_db.RegisterMessage(VideoNonSkippableInStreamAdInfo) + +VideoTrueViewInStreamAdInfo = _reflection.GeneratedProtocolMessageType('VideoTrueViewInStreamAdInfo', (_message.Message,), dict( + DESCRIPTOR = _VIDEOTRUEVIEWINSTREAMADINFO, + __module__ = 'google.ads.googleads_v4.proto.common.ad_type_infos_pb2' + , + __doc__ = """Representation of video TrueView in-stream ad format (ad shown during + video playback, often at beginning, which displays a skip button a few + seconds into the video). + + + Attributes: + action_button_label: + Label on the CTA (call-to-action) button taking the user to + the video ad's final URL. Required for TrueView for action + campaigns, optional otherwise. + action_headline: + Additional text displayed with the CTA (call-to-action) button + to give context and encourage clicking on the button. + companion_banner: + The MediaFile resource name of the companion banner used with + the ad. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.common.VideoTrueViewInStreamAdInfo) + )) +_sym_db.RegisterMessage(VideoTrueViewInStreamAdInfo) + +VideoOutstreamAdInfo = _reflection.GeneratedProtocolMessageType('VideoOutstreamAdInfo', (_message.Message,), dict( + DESCRIPTOR = _VIDEOOUTSTREAMADINFO, + __module__ = 'google.ads.googleads_v4.proto.common.ad_type_infos_pb2' + , + __doc__ = """Representation of video out-stream ad format (ad shown alongside a feed + with automatic playback, without sound). + + + Attributes: + headline: + The headline of the ad. + description: + The description line. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.common.VideoOutstreamAdInfo) + )) +_sym_db.RegisterMessage(VideoOutstreamAdInfo) + +VideoTrueViewDiscoveryAdInfo = _reflection.GeneratedProtocolMessageType('VideoTrueViewDiscoveryAdInfo', (_message.Message,), dict( + DESCRIPTOR = _VIDEOTRUEVIEWDISCOVERYADINFO, + __module__ = 'google.ads.googleads_v4.proto.common.ad_type_infos_pb2' + , + __doc__ = """Representation of video TrueView discovery ad format. + + + Attributes: + headline: + The headline of the ad. + description1: + First text line for a TrueView video discovery ad. + description2: + Second text line for a TrueView video discovery ad. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.common.VideoTrueViewDiscoveryAdInfo) + )) +_sym_db.RegisterMessage(VideoTrueViewDiscoveryAdInfo) + +VideoAdInfo = _reflection.GeneratedProtocolMessageType('VideoAdInfo', (_message.Message,), dict( + DESCRIPTOR = _VIDEOADINFO, + __module__ = 'google.ads.googleads_v4.proto.common.ad_type_infos_pb2' + , + __doc__ = """A video ad. + + + Attributes: + media_file: + The MediaFile resource to use for the video. + format: + Format-specific schema for the different video formats. + in_stream: + Video TrueView in-stream ad format. + bumper: + Video bumper in-stream ad format. + out_stream: + Video out-stream ad format. + non_skippable: + Video non-skippable in-stream ad format. + discovery: + Video TrueView discovery ad format. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.common.VideoAdInfo) + )) +_sym_db.RegisterMessage(VideoAdInfo) + +ResponsiveSearchAdInfo = _reflection.GeneratedProtocolMessageType('ResponsiveSearchAdInfo', (_message.Message,), dict( + DESCRIPTOR = _RESPONSIVESEARCHADINFO, + __module__ = 'google.ads.googleads_v4.proto.common.ad_type_infos_pb2' + , + __doc__ = """A responsive search ad. + + Responsive search ads let you create an ad that adapts to show more + text, and more relevant messages, to your customers. Enter multiple + headlines and descriptions when creating a responsive search ad, and + over time, Google Ads will automatically test different combinations and + learn which combinations perform best. By adapting your ad's content to + more closely match potential customers' search terms, responsive search + ads may improve your campaign's performance. + + More information at https://support.google.com/google-ads/answer/7684791 + + + Attributes: + headlines: + List of text assets for headlines. When the ad serves the + headlines will be selected from this list. + descriptions: + List of text assets for descriptions. When the ad serves the + descriptions will be selected from this list. + path1: + First part of text that may appear appended to the url + displayed in the ad. + path2: + Second part of text that may appear appended to the url + displayed in the ad. This field can only be set when path1 is + also set. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.common.ResponsiveSearchAdInfo) + )) +_sym_db.RegisterMessage(ResponsiveSearchAdInfo) + +LegacyResponsiveDisplayAdInfo = _reflection.GeneratedProtocolMessageType('LegacyResponsiveDisplayAdInfo', (_message.Message,), dict( + DESCRIPTOR = _LEGACYRESPONSIVEDISPLAYADINFO, + __module__ = 'google.ads.googleads_v4.proto.common.ad_type_infos_pb2' + , + __doc__ = """A legacy responsive display ad. Ads of this type are labeled 'Responsive + ads' in the Google Ads UI. + + + Attributes: + short_headline: + The short version of the ad's headline. + long_headline: + The long version of the ad's headline. + description: + The description of the ad. + business_name: + The business name in the ad. + allow_flexible_color: + Advertiser's consent to allow flexible color. When true, the + ad may be served with different color if necessary. When + false, the ad will be served with the specified colors or a + neutral color. The default value is true. Must be true if + main\_color and accent\_color are not set. + accent_color: + The accent color of the ad in hexadecimal, e.g. #ffffff for + white. If one of main\_color and accent\_color is set, the + other is required as well. + main_color: + The main color of the ad in hexadecimal, e.g. #ffffff for + white. If one of main\_color and accent\_color is set, the + other is required as well. + call_to_action_text: + The call-to-action text for the ad. + logo_image: + The MediaFile resource name of the logo image used in the ad. + square_logo_image: + The MediaFile resource name of the square logo image used in + the ad. + marketing_image: + The MediaFile resource name of the marketing image used in the + ad. + square_marketing_image: + The MediaFile resource name of the square marketing image used + in the ad. + format_setting: + Specifies which format the ad will be served in. Default is + ALL\_FORMATS. + price_prefix: + Prefix before price. E.g. 'as low as'. + promo_text: + Promotion text used for dyanmic formats of responsive ads. For + example 'Free two-day shipping'. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.common.LegacyResponsiveDisplayAdInfo) + )) +_sym_db.RegisterMessage(LegacyResponsiveDisplayAdInfo) + +AppAdInfo = _reflection.GeneratedProtocolMessageType('AppAdInfo', (_message.Message,), dict( + DESCRIPTOR = _APPADINFO, + __module__ = 'google.ads.googleads_v4.proto.common.ad_type_infos_pb2' + , + __doc__ = """An app ad. + + + Attributes: + mandatory_ad_text: + An optional text asset that, if specified, must always be + displayed when the ad is served. + headlines: + List of text assets for headlines. When the ad serves the + headlines will be selected from this list. + descriptions: + List of text assets for descriptions. When the ad serves the + descriptions will be selected from this list. + images: + List of image assets that may be displayed with the ad. + youtube_videos: + List of YouTube video assets that may be displayed with the + ad. + html5_media_bundles: + List of media bundle assets that may be used with the ad. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.common.AppAdInfo) + )) +_sym_db.RegisterMessage(AppAdInfo) + +AppEngagementAdInfo = _reflection.GeneratedProtocolMessageType('AppEngagementAdInfo', (_message.Message,), dict( + DESCRIPTOR = _APPENGAGEMENTADINFO, + __module__ = 'google.ads.googleads_v4.proto.common.ad_type_infos_pb2' + , + __doc__ = """App engagement ads allow you to write text encouraging a specific action + in the app, like checking in, making a purchase, or booking a flight. + They allow you to send users to a specific part of your app where they + can find what they're looking for easier and faster. + + + Attributes: + headlines: + List of text assets for headlines. When the ad serves the + headlines will be selected from this list. + descriptions: + List of text assets for descriptions. When the ad serves the + descriptions will be selected from this list. + images: + List of image assets that may be displayed with the ad. + videos: + List of video assets that may be displayed with the ad. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.common.AppEngagementAdInfo) + )) +_sym_db.RegisterMessage(AppEngagementAdInfo) + +LegacyAppInstallAdInfo = _reflection.GeneratedProtocolMessageType('LegacyAppInstallAdInfo', (_message.Message,), dict( + DESCRIPTOR = _LEGACYAPPINSTALLADINFO, + __module__ = 'google.ads.googleads_v4.proto.common.ad_type_infos_pb2' + , + __doc__ = """A legacy app install ad that only can be used by a few select customers. + + + Attributes: + app_id: + The id of the mobile app. + app_store: + The app store the mobile app is available in. + headline: + The headline of the ad. + description1: + The first description line of the ad. + description2: + The second description line of the ad. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.common.LegacyAppInstallAdInfo) + )) +_sym_db.RegisterMessage(LegacyAppInstallAdInfo) + +ResponsiveDisplayAdInfo = _reflection.GeneratedProtocolMessageType('ResponsiveDisplayAdInfo', (_message.Message,), dict( + DESCRIPTOR = _RESPONSIVEDISPLAYADINFO, + __module__ = 'google.ads.googleads_v4.proto.common.ad_type_infos_pb2' + , + __doc__ = """A responsive display ad. + + + Attributes: + marketing_images: + Marketing images to be used in the ad. Valid image types are + GIF, JPEG, and PNG. The minimum size is 600x314 and the aspect + ratio must be 1.91:1 (+-1%). At least one marketing\_image is + required. Combined with square\_marketing\_images the maximum + is 15. + square_marketing_images: + Square marketing images to be used in the ad. Valid image + types are GIF, JPEG, and PNG. The minimum size is 300x300 and + the aspect ratio must be 1:1 (+-1%). At least one square + marketing\_image is required. Combined with marketing\_images + the maximum is 15. + logo_images: + Logo images to be used in the ad. Valid image types are GIF, + JPEG, and PNG. The minimum size is 512x128 and the aspect + ratio must be 4:1 (+-1%). Combined with square\_logo\_images + the maximum is 5. + square_logo_images: + Square logo images 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%). Combined with square\_logo\_images + the maximum is 5. + headlines: + Short format headlines for the ad. The maximum length is 30 + characters. At least 1 and max 5 headlines can be specified. + long_headline: + A required long format headline. The maximum length is 90 + characters. + descriptions: + Descriptive texts for the ad. The maximum length is 90 + characters. At least 1 and max 5 headlines can be specified. + youtube_videos: + Optional YouTube videos for the ad. A maximum of 5 videos can + be specified. + business_name: + The advertiser/brand name. Maximum display width is 25. + main_color: + The main color of the ad in hexadecimal, e.g. #ffffff for + white. If one of main\_color and accent\_color is set, the + other is required as well. + accent_color: + The accent color of the ad in hexadecimal, e.g. #ffffff for + white. If one of main\_color and accent\_color is set, the + other is required as well. + allow_flexible_color: + Advertiser's consent to allow flexible color. When true, the + ad may be served with different color if necessary. When + false, the ad will be served with the specified colors or a + neutral color. The default value is true. Must be true if + main\_color and accent\_color are not set. + call_to_action_text: + The call-to-action text for the ad. Maximum display width is + 30. + price_prefix: + Prefix before price. E.g. 'as low as'. + promo_text: + Promotion text used for dyanmic formats of responsive ads. For + example 'Free two-day shipping'. + format_setting: + Specifies which format the ad will be served in. Default is + ALL\_FORMATS. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.common.ResponsiveDisplayAdInfo) + )) +_sym_db.RegisterMessage(ResponsiveDisplayAdInfo) + +LocalAdInfo = _reflection.GeneratedProtocolMessageType('LocalAdInfo', (_message.Message,), dict( + DESCRIPTOR = _LOCALADINFO, + __module__ = 'google.ads.googleads_v4.proto.common.ad_type_infos_pb2' + , + __doc__ = """A local ad. + + + Attributes: + headlines: + List of text assets for headlines. When the ad serves the + headlines will be selected from this list. At least 1 and at + most 5 headlines must be specified. + descriptions: + List of text assets for descriptions. When the ad serves the + descriptions will be selected from this list. At least 1 and + at most 5 descriptions must be specified. + call_to_actions: + List of text assets for call-to-actions. When the ad serves + the call-to-actions will be selected from this list. Call-to- + actions are optional and at most 5 can be specified. + marketing_images: + List of marketing image assets that may be displayed with the + ad. The images must be 314x600 pixels or 320x320 pixels. At + least 1 and at most 20 image assets must be specified. + logo_images: + List of logo image assets that may be displayed with the ad. + The images must be 128x128 pixels and not larger than 120KB. + At least 1 and at most 5 image assets must be specified. + videos: + List of YouTube video assets that may be displayed with the + ad. Videos are optional and at most 20 can be specified. + path1: + First part of optional text that may appear appended to the + url displayed in the ad. + path2: + Second part of optional text that may appear appended to the + url displayed in the ad. This field can only be set when path1 + is also set. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.common.LocalAdInfo) + )) +_sym_db.RegisterMessage(LocalAdInfo) + +DisplayUploadAdInfo = _reflection.GeneratedProtocolMessageType('DisplayUploadAdInfo', (_message.Message,), dict( + DESCRIPTOR = _DISPLAYUPLOADADINFO, + __module__ = 'google.ads.googleads_v4.proto.common.ad_type_infos_pb2' + , + __doc__ = """A generic type of display ad. The exact ad format is controlled by the + display\_upload\_product\_type field, which determines what kinds of + data need to be included with the ad. + + + Attributes: + display_upload_product_type: + The product type of this ad. See comments on the enum for + details. + media_asset: + The asset data that makes up the ad. + media_bundle: + A media bundle asset to be used in the ad. For information + about the media bundle for HTML5\_UPLOAD\_AD see + https://support.google.com/google-ads/answer/1722096 Media + bundles that are part of dynamic product types use a special + format that needs to be created through the Google Web + Designer. See + https://support.google.com/webdesigner/answer/7543898 for more + information. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.common.DisplayUploadAdInfo) + )) +_sym_db.RegisterMessage(DisplayUploadAdInfo) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/common/ad_type_infos_pb2_grpc.py b/google/ads/google_ads/v4/proto/common/ad_type_infos_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/common/ad_type_infos_pb2_grpc.py rename to google/ads/google_ads/v4/proto/common/ad_type_infos_pb2_grpc.py diff --git a/google/ads/google_ads/v4/proto/common/asset_types_pb2.py b/google/ads/google_ads/v4/proto/common/asset_types_pb2.py new file mode 100644 index 000000000..cf57fda3e --- /dev/null +++ b/google/ads/google_ads/v4/proto/common/asset_types_pb2.py @@ -0,0 +1,368 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/common/asset_types.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.ads.google_ads.v4.proto.enums import mime_type_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_mime__type__pb2 +from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/common/asset_types.proto', + package='google.ads.googleads.v4.common', + syntax='proto3', + serialized_options=_b('\n\"com.google.ads.googleads.v4.commonB\017AssetTypesProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/common;common\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V4.Common\312\002\036Google\\Ads\\GoogleAds\\V4\\Common\352\002\"Google::Ads::GoogleAds::V4::Common'), + serialized_pb=_b('\n6google/ads/googleads_v4/proto/common/asset_types.proto\x12\x1egoogle.ads.googleads.v4.common\x1a\x33google/ads/googleads_v4/proto/enums/mime_type.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1cgoogle/api/annotations.proto\"K\n\x11YoutubeVideoAsset\x12\x36\n\x10youtube_video_id\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\"=\n\x10MediaBundleAsset\x12)\n\x04\x64\x61ta\x18\x01 \x01(\x0b\x32\x1b.google.protobuf.BytesValue\"\xf3\x01\n\nImageAsset\x12)\n\x04\x64\x61ta\x18\x01 \x01(\x0b\x32\x1b.google.protobuf.BytesValue\x12.\n\tfile_size\x18\x02 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12G\n\tmime_type\x18\x03 \x01(\x0e\x32\x34.google.ads.googleads.v4.enums.MimeTypeEnum.MimeType\x12\x41\n\tfull_size\x18\x04 \x01(\x0b\x32..google.ads.googleads.v4.common.ImageDimension\"\xa2\x01\n\x0eImageDimension\x12\x32\n\rheight_pixels\x18\x01 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x31\n\x0cwidth_pixels\x18\x02 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12)\n\x03url\x18\x03 \x01(\x0b\x32\x1c.google.protobuf.StringValue\"7\n\tTextAsset\x12*\n\x04text\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\"\x13\n\x11\x42ookOnGoogleAssetB\xea\x01\n\"com.google.ads.googleads.v4.commonB\x0f\x41ssetTypesProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/common;common\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V4.Common\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V4\\Common\xea\x02\"Google::Ads::GoogleAds::V4::Commonb\x06proto3') + , + dependencies=[google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_mime__type__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + + +_YOUTUBEVIDEOASSET = _descriptor.Descriptor( + name='YoutubeVideoAsset', + full_name='google.ads.googleads.v4.common.YoutubeVideoAsset', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='youtube_video_id', full_name='google.ads.googleads.v4.common.YoutubeVideoAsset.youtube_video_id', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=205, + serialized_end=280, +) + + +_MEDIABUNDLEASSET = _descriptor.Descriptor( + name='MediaBundleAsset', + full_name='google.ads.googleads.v4.common.MediaBundleAsset', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='data', full_name='google.ads.googleads.v4.common.MediaBundleAsset.data', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=282, + serialized_end=343, +) + + +_IMAGEASSET = _descriptor.Descriptor( + name='ImageAsset', + full_name='google.ads.googleads.v4.common.ImageAsset', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='data', full_name='google.ads.googleads.v4.common.ImageAsset.data', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='file_size', full_name='google.ads.googleads.v4.common.ImageAsset.file_size', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='mime_type', full_name='google.ads.googleads.v4.common.ImageAsset.mime_type', index=2, + number=3, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='full_size', full_name='google.ads.googleads.v4.common.ImageAsset.full_size', index=3, + number=4, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=346, + serialized_end=589, +) + + +_IMAGEDIMENSION = _descriptor.Descriptor( + name='ImageDimension', + full_name='google.ads.googleads.v4.common.ImageDimension', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='height_pixels', full_name='google.ads.googleads.v4.common.ImageDimension.height_pixels', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='width_pixels', full_name='google.ads.googleads.v4.common.ImageDimension.width_pixels', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='url', full_name='google.ads.googleads.v4.common.ImageDimension.url', index=2, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=592, + serialized_end=754, +) + + +_TEXTASSET = _descriptor.Descriptor( + name='TextAsset', + full_name='google.ads.googleads.v4.common.TextAsset', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='text', full_name='google.ads.googleads.v4.common.TextAsset.text', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=756, + serialized_end=811, +) + + +_BOOKONGOOGLEASSET = _descriptor.Descriptor( + name='BookOnGoogleAsset', + full_name='google.ads.googleads.v4.common.BookOnGoogleAsset', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=813, + serialized_end=832, +) + +_YOUTUBEVIDEOASSET.fields_by_name['youtube_video_id'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_MEDIABUNDLEASSET.fields_by_name['data'].message_type = google_dot_protobuf_dot_wrappers__pb2._BYTESVALUE +_IMAGEASSET.fields_by_name['data'].message_type = google_dot_protobuf_dot_wrappers__pb2._BYTESVALUE +_IMAGEASSET.fields_by_name['file_size'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_IMAGEASSET.fields_by_name['mime_type'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_mime__type__pb2._MIMETYPEENUM_MIMETYPE +_IMAGEASSET.fields_by_name['full_size'].message_type = _IMAGEDIMENSION +_IMAGEDIMENSION.fields_by_name['height_pixels'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_IMAGEDIMENSION.fields_by_name['width_pixels'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_IMAGEDIMENSION.fields_by_name['url'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_TEXTASSET.fields_by_name['text'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +DESCRIPTOR.message_types_by_name['YoutubeVideoAsset'] = _YOUTUBEVIDEOASSET +DESCRIPTOR.message_types_by_name['MediaBundleAsset'] = _MEDIABUNDLEASSET +DESCRIPTOR.message_types_by_name['ImageAsset'] = _IMAGEASSET +DESCRIPTOR.message_types_by_name['ImageDimension'] = _IMAGEDIMENSION +DESCRIPTOR.message_types_by_name['TextAsset'] = _TEXTASSET +DESCRIPTOR.message_types_by_name['BookOnGoogleAsset'] = _BOOKONGOOGLEASSET +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +YoutubeVideoAsset = _reflection.GeneratedProtocolMessageType('YoutubeVideoAsset', (_message.Message,), dict( + DESCRIPTOR = _YOUTUBEVIDEOASSET, + __module__ = 'google.ads.googleads_v4.proto.common.asset_types_pb2' + , + __doc__ = """A YouTube asset. + + + Attributes: + youtube_video_id: + YouTube video id. This is the 11 character string value used + in the YouTube video URL. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.common.YoutubeVideoAsset) + )) +_sym_db.RegisterMessage(YoutubeVideoAsset) + +MediaBundleAsset = _reflection.GeneratedProtocolMessageType('MediaBundleAsset', (_message.Message,), dict( + DESCRIPTOR = _MEDIABUNDLEASSET, + __module__ = 'google.ads.googleads_v4.proto.common.asset_types_pb2' + , + __doc__ = """A MediaBundle asset. + + + Attributes: + data: + Media bundle (ZIP file) asset data. The format of the uploaded + ZIP file depends on the ad field where it will be used. For + more information on the format, see the documentation of the + ad field where you plan on using the MediaBundleAsset. This + field is mutate only. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.common.MediaBundleAsset) + )) +_sym_db.RegisterMessage(MediaBundleAsset) + +ImageAsset = _reflection.GeneratedProtocolMessageType('ImageAsset', (_message.Message,), dict( + DESCRIPTOR = _IMAGEASSET, + __module__ = 'google.ads.googleads_v4.proto.common.asset_types_pb2' + , + __doc__ = """An Image asset. + + + Attributes: + data: + The raw bytes data of an image. This field is mutate only. + file_size: + File size of the image asset in bytes. + mime_type: + MIME type of the image asset. + full_size: + Metadata for this image at its original size. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.common.ImageAsset) + )) +_sym_db.RegisterMessage(ImageAsset) + +ImageDimension = _reflection.GeneratedProtocolMessageType('ImageDimension', (_message.Message,), dict( + DESCRIPTOR = _IMAGEDIMENSION, + __module__ = 'google.ads.googleads_v4.proto.common.asset_types_pb2' + , + __doc__ = """Metadata for an image at a certain size, either original or resized. + + + Attributes: + height_pixels: + Height of the image. + width_pixels: + Width of the image. + url: + A URL that returns the image with this height and width. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.common.ImageDimension) + )) +_sym_db.RegisterMessage(ImageDimension) + +TextAsset = _reflection.GeneratedProtocolMessageType('TextAsset', (_message.Message,), dict( + DESCRIPTOR = _TEXTASSET, + __module__ = 'google.ads.googleads_v4.proto.common.asset_types_pb2' + , + __doc__ = """A Text asset. + + + Attributes: + text: + Text content of the text asset. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.common.TextAsset) + )) +_sym_db.RegisterMessage(TextAsset) + +BookOnGoogleAsset = _reflection.GeneratedProtocolMessageType('BookOnGoogleAsset', (_message.Message,), dict( + DESCRIPTOR = _BOOKONGOOGLEASSET, + __module__ = 'google.ads.googleads_v4.proto.common.asset_types_pb2' + , + __doc__ = """A Book on Google asset. Used to redirect user to book through Google. + Book on Google will change the redirect url to book directly through + Google. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.common.BookOnGoogleAsset) + )) +_sym_db.RegisterMessage(BookOnGoogleAsset) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/common/asset_types_pb2_grpc.py b/google/ads/google_ads/v4/proto/common/asset_types_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/common/asset_types_pb2_grpc.py rename to google/ads/google_ads/v4/proto/common/asset_types_pb2_grpc.py diff --git a/google/ads/google_ads/v4/proto/common/bidding_pb2.py b/google/ads/google_ads/v4/proto/common/bidding_pb2.py new file mode 100644 index 000000000..87047ca53 --- /dev/null +++ b/google/ads/google_ads/v4/proto/common/bidding_pb2.py @@ -0,0 +1,720 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/common/bidding.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.ads.google_ads.v4.proto.enums import target_impression_share_location_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_target__impression__share__location__pb2 +from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/common/bidding.proto', + package='google.ads.googleads.v4.common', + syntax='proto3', + serialized_options=_b('\n\"com.google.ads.googleads.v4.commonB\014BiddingProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/common;common\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V4.Common\312\002\036Google\\Ads\\GoogleAds\\V4\\Common\352\002\"Google::Ads::GoogleAds::V4::Common'), + serialized_pb=_b('\n2google/ads/googleads_v4/proto/common/bidding.proto\x12\x1egoogle.ads.googleads.v4.common\x1aJgoogle/ads/googleads_v4/proto/enums/target_impression_share_location.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1cgoogle/api/annotations.proto\"I\n\nCommission\x12;\n\x16\x63ommission_rate_micros\x18\x01 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\"\r\n\x0b\x45nhancedCpc\"E\n\tManualCpc\x12\x38\n\x14\x65nhanced_cpc_enabled\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.BoolValue\"\x0b\n\tManualCpm\"\x0b\n\tManualCpv\"\x15\n\x13MaximizeConversions\"L\n\x17MaximizeConversionValue\x12\x31\n\x0btarget_roas\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\"\xbb\x01\n\tTargetCpa\x12\x36\n\x11target_cpa_micros\x18\x01 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12;\n\x16\x63pc_bid_ceiling_micros\x18\x02 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x39\n\x14\x63pc_bid_floor_micros\x18\x03 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\"\x0b\n\tTargetCpm\"\x85\x02\n\x15TargetImpressionShare\x12p\n\x08location\x18\x01 \x01(\x0e\x32^.google.ads.googleads.v4.enums.TargetImpressionShareLocationEnum.TargetImpressionShareLocation\x12=\n\x18location_fraction_micros\x18\x02 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12;\n\x16\x63pc_bid_ceiling_micros\x18\x03 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\"\xb7\x01\n\nTargetRoas\x12\x31\n\x0btarget_roas\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12;\n\x16\x63pc_bid_ceiling_micros\x18\x02 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x39\n\x14\x63pc_bid_floor_micros\x18\x03 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\"\x84\x01\n\x0bTargetSpend\x12\x38\n\x13target_spend_micros\x18\x01 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12;\n\x16\x63pc_bid_ceiling_micros\x18\x02 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\"\x83\x01\n\nPercentCpc\x12;\n\x16\x63pc_bid_ceiling_micros\x18\x01 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x38\n\x14\x65nhanced_cpc_enabled\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.BoolValueB\xe7\x01\n\"com.google.ads.googleads.v4.commonB\x0c\x42iddingProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/common;common\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V4.Common\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V4\\Common\xea\x02\"Google::Ads::GoogleAds::V4::Commonb\x06proto3') + , + dependencies=[google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_target__impression__share__location__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + + +_COMMISSION = _descriptor.Descriptor( + name='Commission', + full_name='google.ads.googleads.v4.common.Commission', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='commission_rate_micros', full_name='google.ads.googleads.v4.common.Commission.commission_rate_micros', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=224, + serialized_end=297, +) + + +_ENHANCEDCPC = _descriptor.Descriptor( + name='EnhancedCpc', + full_name='google.ads.googleads.v4.common.EnhancedCpc', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=299, + serialized_end=312, +) + + +_MANUALCPC = _descriptor.Descriptor( + name='ManualCpc', + full_name='google.ads.googleads.v4.common.ManualCpc', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='enhanced_cpc_enabled', full_name='google.ads.googleads.v4.common.ManualCpc.enhanced_cpc_enabled', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=314, + serialized_end=383, +) + + +_MANUALCPM = _descriptor.Descriptor( + name='ManualCpm', + full_name='google.ads.googleads.v4.common.ManualCpm', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=385, + serialized_end=396, +) + + +_MANUALCPV = _descriptor.Descriptor( + name='ManualCpv', + full_name='google.ads.googleads.v4.common.ManualCpv', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=398, + serialized_end=409, +) + + +_MAXIMIZECONVERSIONS = _descriptor.Descriptor( + name='MaximizeConversions', + full_name='google.ads.googleads.v4.common.MaximizeConversions', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=411, + serialized_end=432, +) + + +_MAXIMIZECONVERSIONVALUE = _descriptor.Descriptor( + name='MaximizeConversionValue', + full_name='google.ads.googleads.v4.common.MaximizeConversionValue', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='target_roas', full_name='google.ads.googleads.v4.common.MaximizeConversionValue.target_roas', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=434, + serialized_end=510, +) + + +_TARGETCPA = _descriptor.Descriptor( + name='TargetCpa', + full_name='google.ads.googleads.v4.common.TargetCpa', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='target_cpa_micros', full_name='google.ads.googleads.v4.common.TargetCpa.target_cpa_micros', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='cpc_bid_ceiling_micros', full_name='google.ads.googleads.v4.common.TargetCpa.cpc_bid_ceiling_micros', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='cpc_bid_floor_micros', full_name='google.ads.googleads.v4.common.TargetCpa.cpc_bid_floor_micros', index=2, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=513, + serialized_end=700, +) + + +_TARGETCPM = _descriptor.Descriptor( + name='TargetCpm', + full_name='google.ads.googleads.v4.common.TargetCpm', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=702, + serialized_end=713, +) + + +_TARGETIMPRESSIONSHARE = _descriptor.Descriptor( + name='TargetImpressionShare', + full_name='google.ads.googleads.v4.common.TargetImpressionShare', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='location', full_name='google.ads.googleads.v4.common.TargetImpressionShare.location', index=0, + number=1, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='location_fraction_micros', full_name='google.ads.googleads.v4.common.TargetImpressionShare.location_fraction_micros', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='cpc_bid_ceiling_micros', full_name='google.ads.googleads.v4.common.TargetImpressionShare.cpc_bid_ceiling_micros', index=2, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=716, + serialized_end=977, +) + + +_TARGETROAS = _descriptor.Descriptor( + name='TargetRoas', + full_name='google.ads.googleads.v4.common.TargetRoas', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='target_roas', full_name='google.ads.googleads.v4.common.TargetRoas.target_roas', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='cpc_bid_ceiling_micros', full_name='google.ads.googleads.v4.common.TargetRoas.cpc_bid_ceiling_micros', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='cpc_bid_floor_micros', full_name='google.ads.googleads.v4.common.TargetRoas.cpc_bid_floor_micros', index=2, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=980, + serialized_end=1163, +) + + +_TARGETSPEND = _descriptor.Descriptor( + name='TargetSpend', + full_name='google.ads.googleads.v4.common.TargetSpend', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='target_spend_micros', full_name='google.ads.googleads.v4.common.TargetSpend.target_spend_micros', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='cpc_bid_ceiling_micros', full_name='google.ads.googleads.v4.common.TargetSpend.cpc_bid_ceiling_micros', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1166, + serialized_end=1298, +) + + +_PERCENTCPC = _descriptor.Descriptor( + name='PercentCpc', + full_name='google.ads.googleads.v4.common.PercentCpc', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='cpc_bid_ceiling_micros', full_name='google.ads.googleads.v4.common.PercentCpc.cpc_bid_ceiling_micros', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='enhanced_cpc_enabled', full_name='google.ads.googleads.v4.common.PercentCpc.enhanced_cpc_enabled', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1301, + serialized_end=1432, +) + +_COMMISSION.fields_by_name['commission_rate_micros'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_MANUALCPC.fields_by_name['enhanced_cpc_enabled'].message_type = google_dot_protobuf_dot_wrappers__pb2._BOOLVALUE +_MAXIMIZECONVERSIONVALUE.fields_by_name['target_roas'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE +_TARGETCPA.fields_by_name['target_cpa_micros'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_TARGETCPA.fields_by_name['cpc_bid_ceiling_micros'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_TARGETCPA.fields_by_name['cpc_bid_floor_micros'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_TARGETIMPRESSIONSHARE.fields_by_name['location'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_target__impression__share__location__pb2._TARGETIMPRESSIONSHARELOCATIONENUM_TARGETIMPRESSIONSHARELOCATION +_TARGETIMPRESSIONSHARE.fields_by_name['location_fraction_micros'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_TARGETIMPRESSIONSHARE.fields_by_name['cpc_bid_ceiling_micros'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_TARGETROAS.fields_by_name['target_roas'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE +_TARGETROAS.fields_by_name['cpc_bid_ceiling_micros'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_TARGETROAS.fields_by_name['cpc_bid_floor_micros'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_TARGETSPEND.fields_by_name['target_spend_micros'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_TARGETSPEND.fields_by_name['cpc_bid_ceiling_micros'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_PERCENTCPC.fields_by_name['cpc_bid_ceiling_micros'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_PERCENTCPC.fields_by_name['enhanced_cpc_enabled'].message_type = google_dot_protobuf_dot_wrappers__pb2._BOOLVALUE +DESCRIPTOR.message_types_by_name['Commission'] = _COMMISSION +DESCRIPTOR.message_types_by_name['EnhancedCpc'] = _ENHANCEDCPC +DESCRIPTOR.message_types_by_name['ManualCpc'] = _MANUALCPC +DESCRIPTOR.message_types_by_name['ManualCpm'] = _MANUALCPM +DESCRIPTOR.message_types_by_name['ManualCpv'] = _MANUALCPV +DESCRIPTOR.message_types_by_name['MaximizeConversions'] = _MAXIMIZECONVERSIONS +DESCRIPTOR.message_types_by_name['MaximizeConversionValue'] = _MAXIMIZECONVERSIONVALUE +DESCRIPTOR.message_types_by_name['TargetCpa'] = _TARGETCPA +DESCRIPTOR.message_types_by_name['TargetCpm'] = _TARGETCPM +DESCRIPTOR.message_types_by_name['TargetImpressionShare'] = _TARGETIMPRESSIONSHARE +DESCRIPTOR.message_types_by_name['TargetRoas'] = _TARGETROAS +DESCRIPTOR.message_types_by_name['TargetSpend'] = _TARGETSPEND +DESCRIPTOR.message_types_by_name['PercentCpc'] = _PERCENTCPC +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +Commission = _reflection.GeneratedProtocolMessageType('Commission', (_message.Message,), dict( + DESCRIPTOR = _COMMISSION, + __module__ = 'google.ads.googleads_v4.proto.common.bidding_pb2' + , + __doc__ = """Commission is an automatic bidding strategy in which the advertiser pays + a certain portion of the conversion value. + + + Attributes: + commission_rate_micros: + Commission rate defines the portion of the conversion value + that the advertiser will be billed. A commission rate of x + should be passed into this field as (x \* 1,000,000). For + example, 106,000 represents a commission rate of 0.106 + (10.6%). + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.common.Commission) + )) +_sym_db.RegisterMessage(Commission) + +EnhancedCpc = _reflection.GeneratedProtocolMessageType('EnhancedCpc', (_message.Message,), dict( + DESCRIPTOR = _ENHANCEDCPC, + __module__ = 'google.ads.googleads_v4.proto.common.bidding_pb2' + , + __doc__ = """An automated bidding strategy that raises bids for clicks that seem more + likely to lead to a conversion and lowers them for clicks where they + seem less likely. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.common.EnhancedCpc) + )) +_sym_db.RegisterMessage(EnhancedCpc) + +ManualCpc = _reflection.GeneratedProtocolMessageType('ManualCpc', (_message.Message,), dict( + DESCRIPTOR = _MANUALCPC, + __module__ = 'google.ads.googleads_v4.proto.common.bidding_pb2' + , + __doc__ = """Manual click-based bidding where user pays per click. + + + Attributes: + enhanced_cpc_enabled: + Whether bids are to be enhanced based on conversion optimizer + data. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.common.ManualCpc) + )) +_sym_db.RegisterMessage(ManualCpc) + +ManualCpm = _reflection.GeneratedProtocolMessageType('ManualCpm', (_message.Message,), dict( + DESCRIPTOR = _MANUALCPM, + __module__ = 'google.ads.googleads_v4.proto.common.bidding_pb2' + , + __doc__ = """Manual impression-based bidding where user pays per thousand + impressions. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.common.ManualCpm) + )) +_sym_db.RegisterMessage(ManualCpm) + +ManualCpv = _reflection.GeneratedProtocolMessageType('ManualCpv', (_message.Message,), dict( + DESCRIPTOR = _MANUALCPV, + __module__ = 'google.ads.googleads_v4.proto.common.bidding_pb2' + , + __doc__ = """View based bidding where user pays per video view. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.common.ManualCpv) + )) +_sym_db.RegisterMessage(ManualCpv) + +MaximizeConversions = _reflection.GeneratedProtocolMessageType('MaximizeConversions', (_message.Message,), dict( + DESCRIPTOR = _MAXIMIZECONVERSIONS, + __module__ = 'google.ads.googleads_v4.proto.common.bidding_pb2' + , + __doc__ = """An automated bidding strategy that sets bids to help get the most + conversions for your campaign while spending your budget. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.common.MaximizeConversions) + )) +_sym_db.RegisterMessage(MaximizeConversions) + +MaximizeConversionValue = _reflection.GeneratedProtocolMessageType('MaximizeConversionValue', (_message.Message,), dict( + DESCRIPTOR = _MAXIMIZECONVERSIONVALUE, + __module__ = 'google.ads.googleads_v4.proto.common.bidding_pb2' + , + __doc__ = """An automated bidding strategy which tries to maximize conversion value + given a daily budget. + + + Attributes: + target_roas: + The target return on ad spend (ROAS) option. If set, the bid + strategy will maximize revenue while averaging the target + return on ad spend. If the target ROAS is high, the bid + strategy may not be able to spend the full budget. If the + target ROAS is not set, the bid strategy will aim to achieve + the highest possible ROAS for the budget. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.common.MaximizeConversionValue) + )) +_sym_db.RegisterMessage(MaximizeConversionValue) + +TargetCpa = _reflection.GeneratedProtocolMessageType('TargetCpa', (_message.Message,), dict( + DESCRIPTOR = _TARGETCPA, + __module__ = 'google.ads.googleads_v4.proto.common.bidding_pb2' + , + __doc__ = """An automated bid strategy that sets bids to help get as many conversions + as possible at the target cost-per-acquisition (CPA) you set. + + + Attributes: + target_cpa_micros: + Average CPA target. This target should be greater than or + equal to minimum billable unit based on the currency for the + account. + cpc_bid_ceiling_micros: + Maximum bid limit that can be set by the bid strategy. The + limit applies to all keywords managed by the strategy. + cpc_bid_floor_micros: + Minimum bid limit that can be set by the bid strategy. The + limit applies to all keywords managed by the strategy. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.common.TargetCpa) + )) +_sym_db.RegisterMessage(TargetCpa) + +TargetCpm = _reflection.GeneratedProtocolMessageType('TargetCpm', (_message.Message,), dict( + DESCRIPTOR = _TARGETCPM, + __module__ = 'google.ads.googleads_v4.proto.common.bidding_pb2' + , + __doc__ = """Target CPM (cost per thousand impressions) is an automated bidding + strategy that sets bids to optimize performance given the target CPM you + set. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.common.TargetCpm) + )) +_sym_db.RegisterMessage(TargetCpm) + +TargetImpressionShare = _reflection.GeneratedProtocolMessageType('TargetImpressionShare', (_message.Message,), dict( + DESCRIPTOR = _TARGETIMPRESSIONSHARE, + __module__ = 'google.ads.googleads_v4.proto.common.bidding_pb2' + , + __doc__ = """An automated bidding strategy that sets bids so that a certain + percentage of search ads are shown at the top of the first page (or + other targeted location). + + + Attributes: + location: + The targeted location on the search results page. + location_fraction_micros: + The desired fraction of ads to be shown in the targeted + location in micros. E.g. 1% equals 10,000. + cpc_bid_ceiling_micros: + The highest CPC bid the automated bidding system is permitted + to specify. This is a required field entered by the advertiser + that sets the ceiling and specified in local micros. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.common.TargetImpressionShare) + )) +_sym_db.RegisterMessage(TargetImpressionShare) + +TargetRoas = _reflection.GeneratedProtocolMessageType('TargetRoas', (_message.Message,), dict( + DESCRIPTOR = _TARGETROAS, + __module__ = 'google.ads.googleads_v4.proto.common.bidding_pb2' + , + __doc__ = """An automated bidding strategy that helps you maximize revenue while + averaging a specific target return on ad spend (ROAS). + + + Attributes: + target_roas: + Required. The desired revenue (based on conversion data) per + unit of spend. Value must be between 0.01 and 1000.0, + inclusive. + cpc_bid_ceiling_micros: + Maximum bid limit that can be set by the bid strategy. The + limit applies to all keywords managed by the strategy. + cpc_bid_floor_micros: + Minimum bid limit that can be set by the bid strategy. The + limit applies to all keywords managed by the strategy. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.common.TargetRoas) + )) +_sym_db.RegisterMessage(TargetRoas) + +TargetSpend = _reflection.GeneratedProtocolMessageType('TargetSpend', (_message.Message,), dict( + DESCRIPTOR = _TARGETSPEND, + __module__ = 'google.ads.googleads_v4.proto.common.bidding_pb2' + , + __doc__ = """An automated bid strategy that sets your bids to help get as many clicks + as possible within your budget. + + + Attributes: + target_spend_micros: + The spend target under which to maximize clicks. A TargetSpend + bidder will attempt to spend the smaller of this value or the + natural throttling spend amount. If not specified, the budget + is used as the spend target. + cpc_bid_ceiling_micros: + Maximum bid limit that can be set by the bid strategy. The + limit applies to all keywords managed by the strategy. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.common.TargetSpend) + )) +_sym_db.RegisterMessage(TargetSpend) + +PercentCpc = _reflection.GeneratedProtocolMessageType('PercentCpc', (_message.Message,), dict( + DESCRIPTOR = _PERCENTCPC, + __module__ = 'google.ads.googleads_v4.proto.common.bidding_pb2' + , + __doc__ = """A bidding strategy where bids are a fraction of the advertised price for + some good or service. + + + Attributes: + cpc_bid_ceiling_micros: + Maximum bid limit that can be set by the bid strategy. This is + an optional field entered by the advertiser and specified in + local micros. Note: A zero value is interpreted in the same + way as having bid\_ceiling undefined. + enhanced_cpc_enabled: + Adjusts the bid for each auction upward or downward, depending + on the likelihood of a conversion. Individual bids may exceed + cpc\_bid\_ceiling\_micros, but the average bid amount for a + campaign should not. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.common.PercentCpc) + )) +_sym_db.RegisterMessage(PercentCpc) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/common/bidding_pb2_grpc.py b/google/ads/google_ads/v4/proto/common/bidding_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/common/bidding_pb2_grpc.py rename to google/ads/google_ads/v4/proto/common/bidding_pb2_grpc.py diff --git a/google/ads/google_ads/v1/proto/common/click_location_pb2.py b/google/ads/google_ads/v4/proto/common/click_location_pb2.py similarity index 78% rename from google/ads/google_ads/v1/proto/common/click_location_pb2.py rename to google/ads/google_ads/v4/proto/common/click_location_pb2.py index d6e6f9666..988cb4f44 100644 --- a/google/ads/google_ads/v1/proto/common/click_location_pb2.py +++ b/google/ads/google_ads/v4/proto/common/click_location_pb2.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/common/click_location.proto +# source: google/ads/googleads_v4/proto/common/click_location.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) @@ -18,11 +18,11 @@ DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/common/click_location.proto', - package='google.ads.googleads.v1.common', + name='google/ads/googleads_v4/proto/common/click_location.proto', + package='google.ads.googleads.v4.common', syntax='proto3', - serialized_options=_b('\n\"com.google.ads.googleads.v1.commonB\022ClickLocationProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/common;common\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V1.Common\312\002\036Google\\Ads\\GoogleAds\\V1\\Common\352\002\"Google::Ads::GoogleAds::V1::Common'), - serialized_pb=_b('\n9google/ads/googleads_v1/proto/common/click_location.proto\x12\x1egoogle.ads.googleads.v1.common\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1cgoogle/api/annotations.proto\"\xfa\x01\n\rClickLocation\x12*\n\x04\x63ity\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12-\n\x07\x63ountry\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12+\n\x05metro\x18\x03 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x33\n\rmost_specific\x18\x04 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12,\n\x06region\x18\x05 \x01(\x0b\x32\x1c.google.protobuf.StringValueB\xed\x01\n\"com.google.ads.googleads.v1.commonB\x12\x43lickLocationProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/common;common\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V1.Common\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V1\\Common\xea\x02\"Google::Ads::GoogleAds::V1::Commonb\x06proto3') + serialized_options=_b('\n\"com.google.ads.googleads.v4.commonB\022ClickLocationProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/common;common\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V4.Common\312\002\036Google\\Ads\\GoogleAds\\V4\\Common\352\002\"Google::Ads::GoogleAds::V4::Common'), + serialized_pb=_b('\n9google/ads/googleads_v4/proto/common/click_location.proto\x12\x1egoogle.ads.googleads.v4.common\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1cgoogle/api/annotations.proto\"\xfa\x01\n\rClickLocation\x12*\n\x04\x63ity\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12-\n\x07\x63ountry\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12+\n\x05metro\x18\x03 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x33\n\rmost_specific\x18\x04 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12,\n\x06region\x18\x05 \x01(\x0b\x32\x1c.google.protobuf.StringValueB\xed\x01\n\"com.google.ads.googleads.v4.commonB\x12\x43lickLocationProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/common;common\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V4.Common\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V4\\Common\xea\x02\"Google::Ads::GoogleAds::V4::Commonb\x06proto3') , dependencies=[google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) @@ -31,41 +31,41 @@ _CLICKLOCATION = _descriptor.Descriptor( name='ClickLocation', - full_name='google.ads.googleads.v1.common.ClickLocation', + full_name='google.ads.googleads.v4.common.ClickLocation', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='city', full_name='google.ads.googleads.v1.common.ClickLocation.city', index=0, + name='city', full_name='google.ads.googleads.v4.common.ClickLocation.city', index=0, number=1, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='country', full_name='google.ads.googleads.v1.common.ClickLocation.country', index=1, + name='country', full_name='google.ads.googleads.v4.common.ClickLocation.country', index=1, number=2, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='metro', full_name='google.ads.googleads.v1.common.ClickLocation.metro', index=2, + name='metro', full_name='google.ads.googleads.v4.common.ClickLocation.metro', index=2, number=3, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='most_specific', full_name='google.ads.googleads.v1.common.ClickLocation.most_specific', index=3, + name='most_specific', full_name='google.ads.googleads.v4.common.ClickLocation.most_specific', index=3, number=4, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='region', full_name='google.ads.googleads.v1.common.ClickLocation.region', index=4, + name='region', full_name='google.ads.googleads.v4.common.ClickLocation.region', index=4, number=5, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, @@ -97,7 +97,7 @@ ClickLocation = _reflection.GeneratedProtocolMessageType('ClickLocation', (_message.Message,), dict( DESCRIPTOR = _CLICKLOCATION, - __module__ = 'google.ads.googleads_v1.proto.common.click_location_pb2' + __module__ = 'google.ads.googleads_v4.proto.common.click_location_pb2' , __doc__ = """Location criteria associated with a click. @@ -115,7 +115,7 @@ region: The region location criterion associated with the impression. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.ClickLocation) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.common.ClickLocation) )) _sym_db.RegisterMessage(ClickLocation) diff --git a/google/ads/google_ads/v1/proto/common/click_location_pb2_grpc.py b/google/ads/google_ads/v4/proto/common/click_location_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/common/click_location_pb2_grpc.py rename to google/ads/google_ads/v4/proto/common/click_location_pb2_grpc.py diff --git a/google/ads/google_ads/v1/proto/common/criteria_pb2.py b/google/ads/google_ads/v4/proto/common/criteria_pb2.py similarity index 75% rename from google/ads/google_ads/v1/proto/common/criteria_pb2.py rename to google/ads/google_ads/v4/proto/common/criteria_pb2.py index 4ec014893..676f43f96 100644 --- a/google/ads/google_ads/v1/proto/common/criteria_pb2.py +++ b/google/ads/google_ads/v4/proto/common/criteria_pb2.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/common/criteria.proto +# source: google/ads/googleads_v4/proto/common/criteria.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) @@ -13,62 +13,62 @@ _sym_db = _symbol_database.Default() -from google.ads.google_ads.v1.proto.enums import age_range_type_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_age__range__type__pb2 -from google.ads.google_ads.v1.proto.enums import app_payment_model_type_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_app__payment__model__type__pb2 -from google.ads.google_ads.v1.proto.enums import content_label_type_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_content__label__type__pb2 -from google.ads.google_ads.v1.proto.enums import day_of_week_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_day__of__week__pb2 -from google.ads.google_ads.v1.proto.enums import device_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_device__pb2 -from google.ads.google_ads.v1.proto.enums import gender_type_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_gender__type__pb2 -from google.ads.google_ads.v1.proto.enums import hotel_date_selection_type_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_hotel__date__selection__type__pb2 -from google.ads.google_ads.v1.proto.enums import income_range_type_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_income__range__type__pb2 -from google.ads.google_ads.v1.proto.enums import interaction_type_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_interaction__type__pb2 -from google.ads.google_ads.v1.proto.enums import keyword_match_type_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_keyword__match__type__pb2 -from google.ads.google_ads.v1.proto.enums import listing_custom_attribute_index_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_listing__custom__attribute__index__pb2 -from google.ads.google_ads.v1.proto.enums import listing_group_type_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_listing__group__type__pb2 -from google.ads.google_ads.v1.proto.enums import location_group_radius_units_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_location__group__radius__units__pb2 -from google.ads.google_ads.v1.proto.enums import minute_of_hour_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_minute__of__hour__pb2 -from google.ads.google_ads.v1.proto.enums import parental_status_type_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_parental__status__type__pb2 -from google.ads.google_ads.v1.proto.enums import preferred_content_type_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_preferred__content__type__pb2 -from google.ads.google_ads.v1.proto.enums import product_bidding_category_level_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_product__bidding__category__level__pb2 -from google.ads.google_ads.v1.proto.enums import product_channel_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_product__channel__pb2 -from google.ads.google_ads.v1.proto.enums import product_channel_exclusivity_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_product__channel__exclusivity__pb2 -from google.ads.google_ads.v1.proto.enums import product_condition_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_product__condition__pb2 -from google.ads.google_ads.v1.proto.enums import product_type_level_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_product__type__level__pb2 -from google.ads.google_ads.v1.proto.enums import proximity_radius_units_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_proximity__radius__units__pb2 -from google.ads.google_ads.v1.proto.enums import webpage_condition_operand_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_webpage__condition__operand__pb2 -from google.ads.google_ads.v1.proto.enums import webpage_condition_operator_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_webpage__condition__operator__pb2 +from google.ads.google_ads.v4.proto.enums import age_range_type_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_age__range__type__pb2 +from google.ads.google_ads.v4.proto.enums import app_payment_model_type_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_app__payment__model__type__pb2 +from google.ads.google_ads.v4.proto.enums import content_label_type_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_content__label__type__pb2 +from google.ads.google_ads.v4.proto.enums import day_of_week_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_day__of__week__pb2 +from google.ads.google_ads.v4.proto.enums import device_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_device__pb2 +from google.ads.google_ads.v4.proto.enums import gender_type_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_gender__type__pb2 +from google.ads.google_ads.v4.proto.enums import hotel_date_selection_type_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_hotel__date__selection__type__pb2 +from google.ads.google_ads.v4.proto.enums import income_range_type_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_income__range__type__pb2 +from google.ads.google_ads.v4.proto.enums import interaction_type_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_interaction__type__pb2 +from google.ads.google_ads.v4.proto.enums import keyword_match_type_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_keyword__match__type__pb2 +from google.ads.google_ads.v4.proto.enums import listing_group_type_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_listing__group__type__pb2 +from google.ads.google_ads.v4.proto.enums import location_group_radius_units_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_location__group__radius__units__pb2 +from google.ads.google_ads.v4.proto.enums import minute_of_hour_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_minute__of__hour__pb2 +from google.ads.google_ads.v4.proto.enums import parental_status_type_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_parental__status__type__pb2 +from google.ads.google_ads.v4.proto.enums import preferred_content_type_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_preferred__content__type__pb2 +from google.ads.google_ads.v4.proto.enums import product_bidding_category_level_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_product__bidding__category__level__pb2 +from google.ads.google_ads.v4.proto.enums import product_channel_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_product__channel__pb2 +from google.ads.google_ads.v4.proto.enums import product_channel_exclusivity_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_product__channel__exclusivity__pb2 +from google.ads.google_ads.v4.proto.enums import product_condition_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_product__condition__pb2 +from google.ads.google_ads.v4.proto.enums import product_custom_attribute_index_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_product__custom__attribute__index__pb2 +from google.ads.google_ads.v4.proto.enums import product_type_level_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_product__type__level__pb2 +from google.ads.google_ads.v4.proto.enums import proximity_radius_units_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_proximity__radius__units__pb2 +from google.ads.google_ads.v4.proto.enums import webpage_condition_operand_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_webpage__condition__operand__pb2 +from google.ads.google_ads.v4.proto.enums import webpage_condition_operator_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_webpage__condition__operator__pb2 from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/common/criteria.proto', - package='google.ads.googleads.v1.common', + name='google/ads/googleads_v4/proto/common/criteria.proto', + package='google.ads.googleads.v4.common', syntax='proto3', - serialized_options=_b('\n\"com.google.ads.googleads.v1.commonB\rCriteriaProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/common;common\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V1.Common\312\002\036Google\\Ads\\GoogleAds\\V1\\Common\352\002\"Google::Ads::GoogleAds::V1::Common'), - serialized_pb=_b('\n3google/ads/googleads_v1/proto/common/criteria.proto\x12\x1egoogle.ads.googleads.v1.common\x1a\x38google/ads/googleads_v1/proto/enums/age_range_type.proto\x1a@google/ads/googleads_v1/proto/enums/app_payment_model_type.proto\x1agoogle/ads/googleads_v1/proto/enums/parental_status_type.proto\x1a@google/ads/googleads_v1/proto/enums/preferred_content_type.proto\x1aHgoogle/ads/googleads_v1/proto/enums/product_bidding_category_level.proto\x1a\x39google/ads/googleads_v1/proto/enums/product_channel.proto\x1a\x45google/ads/googleads_v1/proto/enums/product_channel_exclusivity.proto\x1a;google/ads/googleads_v1/proto/enums/product_condition.proto\x1a\n\x04type\x18\x01 \x01(\x0e\x32\x30.google.ads.googleads.v1.enums.DeviceEnum.Device\"r\n\x14PreferredContentInfo\x12Z\n\x04type\x18\x02 \x01(\x0e\x32L.google.ads.googleads.v1.enums.PreferredContentTypeEnum.PreferredContentType\"\xf1\x01\n\x10ListingGroupInfo\x12R\n\x04type\x18\x01 \x01(\x0e\x32\x44.google.ads.googleads.v1.enums.ListingGroupTypeEnum.ListingGroupType\x12H\n\ncase_value\x18\x02 \x01(\x0b\x32\x34.google.ads.googleads.v1.common.ListingDimensionInfo\x12?\n\x19parent_ad_group_criterion\x18\x03 \x01(\x0b\x32\x1c.google.protobuf.StringValue\"\\\n\x10ListingScopeInfo\x12H\n\ndimensions\x18\x02 \x03(\x0b\x32\x34.google.ads.googleads.v1.common.ListingDimensionInfo\"\x9b\t\n\x14ListingDimensionInfo\x12I\n\rlisting_brand\x18\x01 \x01(\x0b\x32\x30.google.ads.googleads.v1.common.ListingBrandInfoH\x00\x12?\n\x08hotel_id\x18\x02 \x01(\x0b\x32+.google.ads.googleads.v1.common.HotelIdInfoH\x00\x12\x45\n\x0bhotel_class\x18\x03 \x01(\x0b\x32..google.ads.googleads.v1.common.HotelClassInfoH\x00\x12V\n\x14hotel_country_region\x18\x04 \x01(\x0b\x32\x36.google.ads.googleads.v1.common.HotelCountryRegionInfoH\x00\x12\x45\n\x0bhotel_state\x18\x05 \x01(\x0b\x32..google.ads.googleads.v1.common.HotelStateInfoH\x00\x12\x43\n\nhotel_city\x18\x06 \x01(\x0b\x32-.google.ads.googleads.v1.common.HotelCityInfoH\x00\x12^\n\x18listing_custom_attribute\x18\x07 \x01(\x0b\x32:.google.ads.googleads.v1.common.ListingCustomAttributeInfoH\x00\x12^\n\x18product_bidding_category\x18\r \x01(\x0b\x32:.google.ads.googleads.v1.common.ProductBiddingCategoryInfoH\x00\x12M\n\x0fproduct_channel\x18\x08 \x01(\x0b\x32\x32.google.ads.googleads.v1.common.ProductChannelInfoH\x00\x12\x64\n\x1bproduct_channel_exclusivity\x18\t \x01(\x0b\x32=.google.ads.googleads.v1.common.ProductChannelExclusivityInfoH\x00\x12Q\n\x11product_condition\x18\n \x01(\x0b\x32\x34.google.ads.googleads.v1.common.ProductConditionInfoH\x00\x12L\n\x0fproduct_item_id\x18\x0b \x01(\x0b\x32\x31.google.ads.googleads.v1.common.ProductItemIdInfoH\x00\x12G\n\x0cproduct_type\x18\x0c \x01(\x0b\x32/.google.ads.googleads.v1.common.ProductTypeInfoH\x00\x12`\n\x19unknown_listing_dimension\x18\x0e \x01(\x0b\x32;.google.ads.googleads.v1.common.UnknownListingDimensionInfoH\x00\x42\x0b\n\tdimension\"?\n\x10ListingBrandInfo\x12+\n\x05value\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\":\n\x0bHotelIdInfo\x12+\n\x05value\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\"<\n\x0eHotelClassInfo\x12*\n\x05value\x18\x01 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\"X\n\x16HotelCountryRegionInfo\x12>\n\x18\x63ountry_region_criterion\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\"G\n\x0eHotelStateInfo\x12\x35\n\x0fstate_criterion\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\"E\n\rHotelCityInfo\x12\x34\n\x0e\x63ity_criterion\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\"\xb4\x01\n\x1aListingCustomAttributeInfo\x12+\n\x05value\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12i\n\x05index\x18\x02 \x01(\x0e\x32Z.google.ads.googleads.v1.enums.ListingCustomAttributeIndexEnum.ListingCustomAttributeIndex\"\xe4\x01\n\x1aProductBiddingCategoryInfo\x12\'\n\x02id\x18\x01 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x32\n\x0c\x63ountry_code\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12i\n\x05level\x18\x03 \x01(\x0e\x32Z.google.ads.googleads.v1.enums.ProductBiddingCategoryLevelEnum.ProductBiddingCategoryLevel\"g\n\x12ProductChannelInfo\x12Q\n\x07\x63hannel\x18\x01 \x01(\x0e\x32@.google.ads.googleads.v1.enums.ProductChannelEnum.ProductChannel\"\x94\x01\n\x1dProductChannelExclusivityInfo\x12s\n\x13\x63hannel_exclusivity\x18\x01 \x01(\x0e\x32V.google.ads.googleads.v1.enums.ProductChannelExclusivityEnum.ProductChannelExclusivity\"o\n\x14ProductConditionInfo\x12W\n\tcondition\x18\x01 \x01(\x0e\x32\x44.google.ads.googleads.v1.enums.ProductConditionEnum.ProductCondition\"@\n\x11ProductItemIdInfo\x12+\n\x05value\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\"\x93\x01\n\x0fProductTypeInfo\x12+\n\x05value\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12S\n\x05level\x18\x02 \x01(\x0e\x32\x44.google.ads.googleads.v1.enums.ProductTypeLevelEnum.ProductTypeLevel\"\x1d\n\x1bUnknownListingDimensionInfo\"|\n\x1aHotelDateSelectionTypeInfo\x12^\n\x04type\x18\x01 \x01(\x0e\x32P.google.ads.googleads.v1.enums.HotelDateSelectionTypeEnum.HotelDateSelectionType\"}\n\x1dHotelAdvanceBookingWindowInfo\x12-\n\x08min_days\x18\x01 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12-\n\x08max_days\x18\x02 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\"y\n\x15HotelLengthOfStayInfo\x12/\n\nmin_nights\x18\x01 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12/\n\nmax_nights\x18\x02 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\"b\n\x13HotelCheckInDayInfo\x12K\n\x0b\x64\x61y_of_week\x18\x01 \x01(\x0e\x32\x36.google.ads.googleads.v1.enums.DayOfWeekEnum.DayOfWeek\"g\n\x13InteractionTypeInfo\x12P\n\x04type\x18\x01 \x01(\x0e\x32\x42.google.ads.googleads.v1.enums.InteractionTypeEnum.InteractionType\"\xe3\x02\n\x0e\x41\x64ScheduleInfo\x12R\n\x0cstart_minute\x18\x01 \x01(\x0e\x32<.google.ads.googleads.v1.enums.MinuteOfHourEnum.MinuteOfHour\x12P\n\nend_minute\x18\x02 \x01(\x0e\x32<.google.ads.googleads.v1.enums.MinuteOfHourEnum.MinuteOfHour\x12/\n\nstart_hour\x18\x03 \x01(\x0b\x32\x1b.google.protobuf.Int32Value\x12-\n\x08\x65nd_hour\x18\x04 \x01(\x0b\x32\x1b.google.protobuf.Int32Value\x12K\n\x0b\x64\x61y_of_week\x18\x05 \x01(\x0e\x32\x36.google.ads.googleads.v1.enums.DayOfWeekEnum.DayOfWeek\"Z\n\x0c\x41geRangeInfo\x12J\n\x04type\x18\x01 \x01(\x0e\x32<.google.ads.googleads.v1.enums.AgeRangeTypeEnum.AgeRangeType\"T\n\nGenderInfo\x12\x46\n\x04type\x18\x01 \x01(\x0e\x32\x38.google.ads.googleads.v1.enums.GenderTypeEnum.GenderType\"c\n\x0fIncomeRangeInfo\x12P\n\x04type\x18\x01 \x01(\x0e\x32\x42.google.ads.googleads.v1.enums.IncomeRangeTypeEnum.IncomeRangeType\"l\n\x12ParentalStatusInfo\x12V\n\x04type\x18\x01 \x01(\x0e\x32H.google.ads.googleads.v1.enums.ParentalStatusTypeEnum.ParentalStatusType\"B\n\x10YouTubeVideoInfo\x12.\n\x08video_id\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\"F\n\x12YouTubeChannelInfo\x12\x30\n\nchannel_id\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\"?\n\x0cUserListInfo\x12/\n\tuser_list\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\"\xa0\x02\n\rProximityInfo\x12?\n\tgeo_point\x18\x01 \x01(\x0b\x32,.google.ads.googleads.v1.common.GeoPointInfo\x12,\n\x06radius\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12\x62\n\x0cradius_units\x18\x03 \x01(\x0e\x32L.google.ads.googleads.v1.enums.ProximityRadiusUnitsEnum.ProximityRadiusUnits\x12<\n\x07\x61\x64\x64ress\x18\x04 \x01(\x0b\x32+.google.ads.googleads.v1.common.AddressInfo\"\x8f\x01\n\x0cGeoPointInfo\x12?\n\x1alongitude_in_micro_degrees\x18\x01 \x01(\x0b\x32\x1b.google.protobuf.Int32Value\x12>\n\x19latitude_in_micro_degrees\x18\x02 \x01(\x0b\x32\x1b.google.protobuf.Int32Value\"\xfc\x02\n\x0b\x41\x64\x64ressInfo\x12\x31\n\x0bpostal_code\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x33\n\rprovince_code\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x32\n\x0c\x63ountry_code\x18\x03 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x33\n\rprovince_name\x18\x04 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x34\n\x0estreet_address\x18\x05 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x35\n\x0fstreet_address2\x18\x06 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12/\n\tcity_name\x18\x07 \x01(\x0b\x32\x1c.google.protobuf.StringValue\"m\n\tTopicInfo\x12\x34\n\x0etopic_constant\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12*\n\x04path\x18\x02 \x03(\x0b\x32\x1c.google.protobuf.StringValue\"G\n\x0cLanguageInfo\x12\x37\n\x11language_constant\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\"?\n\x0bIpBlockInfo\x12\x30\n\nip_address\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\"f\n\x10\x43ontentLabelInfo\x12R\n\x04type\x18\x01 \x01(\x0e\x32\x44.google.ads.googleads.v1.enums.ContentLabelTypeEnum.ContentLabelType\"E\n\x0b\x43\x61rrierInfo\x12\x36\n\x10\x63\x61rrier_constant\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\"P\n\x10UserInterestInfo\x12<\n\x16user_interest_category\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\"\x8d\x01\n\x0bWebpageInfo\x12\x34\n\x0e\x63riterion_name\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12H\n\nconditions\x18\x02 \x03(\x0b\x32\x34.google.ads.googleads.v1.common.WebpageConditionInfo\"\x93\x02\n\x14WebpageConditionInfo\x12\x63\n\x07operand\x18\x01 \x01(\x0e\x32R.google.ads.googleads.v1.enums.WebpageConditionOperandEnum.WebpageConditionOperand\x12\x66\n\x08operator\x18\x02 \x01(\x0e\x32T.google.ads.googleads.v1.enums.WebpageConditionOperatorEnum.WebpageConditionOperator\x12.\n\x08\x61rgument\x18\x03 \x01(\x0b\x32\x1c.google.protobuf.StringValue\"e\n\x1aOperatingSystemVersionInfo\x12G\n!operating_system_version_constant\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\"o\n\x13\x41ppPaymentModelInfo\x12X\n\x04type\x18\x01 \x01(\x0e\x32J.google.ads.googleads.v1.enums.AppPaymentModelTypeEnum.AppPaymentModelType\"P\n\x10MobileDeviceInfo\x12<\n\x16mobile_device_constant\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\"K\n\x12\x43ustomAffinityInfo\x12\x35\n\x0f\x63ustom_affinity\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\"G\n\x10\x43ustomIntentInfo\x12\x33\n\rcustom_intent\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\"\x94\x02\n\x11LocationGroupInfo\x12*\n\x04\x66\x65\x65\x64\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12:\n\x14geo_target_constants\x18\x02 \x03(\x0b\x32\x1c.google.protobuf.StringValue\x12+\n\x06radius\x18\x03 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12j\n\x0cradius_units\x18\x04 \x01(\x0e\x32T.google.ads.googleads.v1.enums.LocationGroupRadiusUnitsEnum.LocationGroupRadiusUnitsB\xe8\x01\n\"com.google.ads.googleads.v1.commonB\rCriteriaProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/common;common\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V1.Common\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V1\\Common\xea\x02\"Google::Ads::GoogleAds::V1::Commonb\x06proto3') + serialized_options=_b('\n\"com.google.ads.googleads.v4.commonB\rCriteriaProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/common;common\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V4.Common\312\002\036Google\\Ads\\GoogleAds\\V4\\Common\352\002\"Google::Ads::GoogleAds::V4::Common'), + serialized_pb=_b('\n3google/ads/googleads_v4/proto/common/criteria.proto\x12\x1egoogle.ads.googleads.v4.common\x1a\x38google/ads/googleads_v4/proto/enums/age_range_type.proto\x1a@google/ads/googleads_v4/proto/enums/app_payment_model_type.proto\x1agoogle/ads/googleads_v4/proto/enums/parental_status_type.proto\x1a@google/ads/googleads_v4/proto/enums/preferred_content_type.proto\x1aHgoogle/ads/googleads_v4/proto/enums/product_bidding_category_level.proto\x1a\x39google/ads/googleads_v4/proto/enums/product_channel.proto\x1a\x45google/ads/googleads_v4/proto/enums/product_channel_exclusivity.proto\x1a;google/ads/googleads_v4/proto/enums/product_condition.proto\x1aHgoogle/ads/googleads_v4/proto/enums/product_custom_attribute_index.proto\x1a\n\x04type\x18\x01 \x01(\x0e\x32\x30.google.ads.googleads.v4.enums.DeviceEnum.Device\"r\n\x14PreferredContentInfo\x12Z\n\x04type\x18\x02 \x01(\x0e\x32L.google.ads.googleads.v4.enums.PreferredContentTypeEnum.PreferredContentType\"\xf1\x01\n\x10ListingGroupInfo\x12R\n\x04type\x18\x01 \x01(\x0e\x32\x44.google.ads.googleads.v4.enums.ListingGroupTypeEnum.ListingGroupType\x12H\n\ncase_value\x18\x02 \x01(\x0b\x32\x34.google.ads.googleads.v4.common.ListingDimensionInfo\x12?\n\x19parent_ad_group_criterion\x18\x03 \x01(\x0b\x32\x1c.google.protobuf.StringValue\"\\\n\x10ListingScopeInfo\x12H\n\ndimensions\x18\x02 \x03(\x0b\x32\x34.google.ads.googleads.v4.common.ListingDimensionInfo\"\x9b\t\n\x14ListingDimensionInfo\x12?\n\x08hotel_id\x18\x02 \x01(\x0b\x32+.google.ads.googleads.v4.common.HotelIdInfoH\x00\x12\x45\n\x0bhotel_class\x18\x03 \x01(\x0b\x32..google.ads.googleads.v4.common.HotelClassInfoH\x00\x12V\n\x14hotel_country_region\x18\x04 \x01(\x0b\x32\x36.google.ads.googleads.v4.common.HotelCountryRegionInfoH\x00\x12\x45\n\x0bhotel_state\x18\x05 \x01(\x0b\x32..google.ads.googleads.v4.common.HotelStateInfoH\x00\x12\x43\n\nhotel_city\x18\x06 \x01(\x0b\x32-.google.ads.googleads.v4.common.HotelCityInfoH\x00\x12^\n\x18product_bidding_category\x18\r \x01(\x0b\x32:.google.ads.googleads.v4.common.ProductBiddingCategoryInfoH\x00\x12I\n\rproduct_brand\x18\x0f \x01(\x0b\x32\x30.google.ads.googleads.v4.common.ProductBrandInfoH\x00\x12M\n\x0fproduct_channel\x18\x08 \x01(\x0b\x32\x32.google.ads.googleads.v4.common.ProductChannelInfoH\x00\x12\x64\n\x1bproduct_channel_exclusivity\x18\t \x01(\x0b\x32=.google.ads.googleads.v4.common.ProductChannelExclusivityInfoH\x00\x12Q\n\x11product_condition\x18\n \x01(\x0b\x32\x34.google.ads.googleads.v4.common.ProductConditionInfoH\x00\x12^\n\x18product_custom_attribute\x18\x10 \x01(\x0b\x32:.google.ads.googleads.v4.common.ProductCustomAttributeInfoH\x00\x12L\n\x0fproduct_item_id\x18\x0b \x01(\x0b\x32\x31.google.ads.googleads.v4.common.ProductItemIdInfoH\x00\x12G\n\x0cproduct_type\x18\x0c \x01(\x0b\x32/.google.ads.googleads.v4.common.ProductTypeInfoH\x00\x12`\n\x19unknown_listing_dimension\x18\x0e \x01(\x0b\x32;.google.ads.googleads.v4.common.UnknownListingDimensionInfoH\x00\x42\x0b\n\tdimension\":\n\x0bHotelIdInfo\x12+\n\x05value\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\"<\n\x0eHotelClassInfo\x12*\n\x05value\x18\x01 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\"X\n\x16HotelCountryRegionInfo\x12>\n\x18\x63ountry_region_criterion\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\"G\n\x0eHotelStateInfo\x12\x35\n\x0fstate_criterion\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\"E\n\rHotelCityInfo\x12\x34\n\x0e\x63ity_criterion\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\"\xe4\x01\n\x1aProductBiddingCategoryInfo\x12\'\n\x02id\x18\x01 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x32\n\x0c\x63ountry_code\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12i\n\x05level\x18\x03 \x01(\x0e\x32Z.google.ads.googleads.v4.enums.ProductBiddingCategoryLevelEnum.ProductBiddingCategoryLevel\"?\n\x10ProductBrandInfo\x12+\n\x05value\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\"g\n\x12ProductChannelInfo\x12Q\n\x07\x63hannel\x18\x01 \x01(\x0e\x32@.google.ads.googleads.v4.enums.ProductChannelEnum.ProductChannel\"\x94\x01\n\x1dProductChannelExclusivityInfo\x12s\n\x13\x63hannel_exclusivity\x18\x01 \x01(\x0e\x32V.google.ads.googleads.v4.enums.ProductChannelExclusivityEnum.ProductChannelExclusivity\"o\n\x14ProductConditionInfo\x12W\n\tcondition\x18\x01 \x01(\x0e\x32\x44.google.ads.googleads.v4.enums.ProductConditionEnum.ProductCondition\"\xb4\x01\n\x1aProductCustomAttributeInfo\x12+\n\x05value\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12i\n\x05index\x18\x02 \x01(\x0e\x32Z.google.ads.googleads.v4.enums.ProductCustomAttributeIndexEnum.ProductCustomAttributeIndex\"@\n\x11ProductItemIdInfo\x12+\n\x05value\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\"\x93\x01\n\x0fProductTypeInfo\x12+\n\x05value\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12S\n\x05level\x18\x02 \x01(\x0e\x32\x44.google.ads.googleads.v4.enums.ProductTypeLevelEnum.ProductTypeLevel\"\x1d\n\x1bUnknownListingDimensionInfo\"|\n\x1aHotelDateSelectionTypeInfo\x12^\n\x04type\x18\x01 \x01(\x0e\x32P.google.ads.googleads.v4.enums.HotelDateSelectionTypeEnum.HotelDateSelectionType\"}\n\x1dHotelAdvanceBookingWindowInfo\x12-\n\x08min_days\x18\x01 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12-\n\x08max_days\x18\x02 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\"y\n\x15HotelLengthOfStayInfo\x12/\n\nmin_nights\x18\x01 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12/\n\nmax_nights\x18\x02 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\"b\n\x13HotelCheckInDayInfo\x12K\n\x0b\x64\x61y_of_week\x18\x01 \x01(\x0e\x32\x36.google.ads.googleads.v4.enums.DayOfWeekEnum.DayOfWeek\"g\n\x13InteractionTypeInfo\x12P\n\x04type\x18\x01 \x01(\x0e\x32\x42.google.ads.googleads.v4.enums.InteractionTypeEnum.InteractionType\"\xe3\x02\n\x0e\x41\x64ScheduleInfo\x12R\n\x0cstart_minute\x18\x01 \x01(\x0e\x32<.google.ads.googleads.v4.enums.MinuteOfHourEnum.MinuteOfHour\x12P\n\nend_minute\x18\x02 \x01(\x0e\x32<.google.ads.googleads.v4.enums.MinuteOfHourEnum.MinuteOfHour\x12/\n\nstart_hour\x18\x03 \x01(\x0b\x32\x1b.google.protobuf.Int32Value\x12-\n\x08\x65nd_hour\x18\x04 \x01(\x0b\x32\x1b.google.protobuf.Int32Value\x12K\n\x0b\x64\x61y_of_week\x18\x05 \x01(\x0e\x32\x36.google.ads.googleads.v4.enums.DayOfWeekEnum.DayOfWeek\"Z\n\x0c\x41geRangeInfo\x12J\n\x04type\x18\x01 \x01(\x0e\x32<.google.ads.googleads.v4.enums.AgeRangeTypeEnum.AgeRangeType\"T\n\nGenderInfo\x12\x46\n\x04type\x18\x01 \x01(\x0e\x32\x38.google.ads.googleads.v4.enums.GenderTypeEnum.GenderType\"c\n\x0fIncomeRangeInfo\x12P\n\x04type\x18\x01 \x01(\x0e\x32\x42.google.ads.googleads.v4.enums.IncomeRangeTypeEnum.IncomeRangeType\"l\n\x12ParentalStatusInfo\x12V\n\x04type\x18\x01 \x01(\x0e\x32H.google.ads.googleads.v4.enums.ParentalStatusTypeEnum.ParentalStatusType\"B\n\x10YouTubeVideoInfo\x12.\n\x08video_id\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\"F\n\x12YouTubeChannelInfo\x12\x30\n\nchannel_id\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\"?\n\x0cUserListInfo\x12/\n\tuser_list\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\"\xa0\x02\n\rProximityInfo\x12?\n\tgeo_point\x18\x01 \x01(\x0b\x32,.google.ads.googleads.v4.common.GeoPointInfo\x12,\n\x06radius\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12\x62\n\x0cradius_units\x18\x03 \x01(\x0e\x32L.google.ads.googleads.v4.enums.ProximityRadiusUnitsEnum.ProximityRadiusUnits\x12<\n\x07\x61\x64\x64ress\x18\x04 \x01(\x0b\x32+.google.ads.googleads.v4.common.AddressInfo\"\x8f\x01\n\x0cGeoPointInfo\x12?\n\x1alongitude_in_micro_degrees\x18\x01 \x01(\x0b\x32\x1b.google.protobuf.Int32Value\x12>\n\x19latitude_in_micro_degrees\x18\x02 \x01(\x0b\x32\x1b.google.protobuf.Int32Value\"\xfc\x02\n\x0b\x41\x64\x64ressInfo\x12\x31\n\x0bpostal_code\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x33\n\rprovince_code\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x32\n\x0c\x63ountry_code\x18\x03 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x33\n\rprovince_name\x18\x04 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x34\n\x0estreet_address\x18\x05 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x35\n\x0fstreet_address2\x18\x06 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12/\n\tcity_name\x18\x07 \x01(\x0b\x32\x1c.google.protobuf.StringValue\"m\n\tTopicInfo\x12\x34\n\x0etopic_constant\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12*\n\x04path\x18\x02 \x03(\x0b\x32\x1c.google.protobuf.StringValue\"G\n\x0cLanguageInfo\x12\x37\n\x11language_constant\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\"?\n\x0bIpBlockInfo\x12\x30\n\nip_address\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\"f\n\x10\x43ontentLabelInfo\x12R\n\x04type\x18\x01 \x01(\x0e\x32\x44.google.ads.googleads.v4.enums.ContentLabelTypeEnum.ContentLabelType\"E\n\x0b\x43\x61rrierInfo\x12\x36\n\x10\x63\x61rrier_constant\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\"P\n\x10UserInterestInfo\x12<\n\x16user_interest_category\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\"\x8d\x01\n\x0bWebpageInfo\x12\x34\n\x0e\x63riterion_name\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12H\n\nconditions\x18\x02 \x03(\x0b\x32\x34.google.ads.googleads.v4.common.WebpageConditionInfo\"\x93\x02\n\x14WebpageConditionInfo\x12\x63\n\x07operand\x18\x01 \x01(\x0e\x32R.google.ads.googleads.v4.enums.WebpageConditionOperandEnum.WebpageConditionOperand\x12\x66\n\x08operator\x18\x02 \x01(\x0e\x32T.google.ads.googleads.v4.enums.WebpageConditionOperatorEnum.WebpageConditionOperator\x12.\n\x08\x61rgument\x18\x03 \x01(\x0b\x32\x1c.google.protobuf.StringValue\"e\n\x1aOperatingSystemVersionInfo\x12G\n!operating_system_version_constant\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\"o\n\x13\x41ppPaymentModelInfo\x12X\n\x04type\x18\x01 \x01(\x0e\x32J.google.ads.googleads.v4.enums.AppPaymentModelTypeEnum.AppPaymentModelType\"P\n\x10MobileDeviceInfo\x12<\n\x16mobile_device_constant\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\"K\n\x12\x43ustomAffinityInfo\x12\x35\n\x0f\x63ustom_affinity\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\"G\n\x10\x43ustomIntentInfo\x12\x33\n\rcustom_intent\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\"\x94\x02\n\x11LocationGroupInfo\x12*\n\x04\x66\x65\x65\x64\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12:\n\x14geo_target_constants\x18\x02 \x03(\x0b\x32\x1c.google.protobuf.StringValue\x12+\n\x06radius\x18\x03 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12j\n\x0cradius_units\x18\x04 \x01(\x0e\x32T.google.ads.googleads.v4.enums.LocationGroupRadiusUnitsEnum.LocationGroupRadiusUnitsB\xe8\x01\n\"com.google.ads.googleads.v4.commonB\rCriteriaProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/common;common\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V4.Common\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V4\\Common\xea\x02\"Google::Ads::GoogleAds::V4::Commonb\x06proto3') , - dependencies=[google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_age__range__type__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_app__payment__model__type__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_content__label__type__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_day__of__week__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_device__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_gender__type__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_hotel__date__selection__type__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_income__range__type__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_interaction__type__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_keyword__match__type__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_listing__custom__attribute__index__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_listing__group__type__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_location__group__radius__units__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_minute__of__hour__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_parental__status__type__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_preferred__content__type__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_product__bidding__category__level__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_product__channel__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_product__channel__exclusivity__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_product__condition__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_product__type__level__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_proximity__radius__units__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_webpage__condition__operand__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_webpage__condition__operator__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + dependencies=[google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_age__range__type__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_app__payment__model__type__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_content__label__type__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_day__of__week__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_device__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_gender__type__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_hotel__date__selection__type__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_income__range__type__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_interaction__type__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_keyword__match__type__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_listing__group__type__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_location__group__radius__units__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_minute__of__hour__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_parental__status__type__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_preferred__content__type__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_product__bidding__category__level__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_product__channel__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_product__channel__exclusivity__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_product__condition__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_product__custom__attribute__index__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_product__type__level__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_proximity__radius__units__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_webpage__condition__operand__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_webpage__condition__operator__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) _KEYWORDINFO = _descriptor.Descriptor( name='KeywordInfo', - full_name='google.ads.googleads.v1.common.KeywordInfo', + full_name='google.ads.googleads.v4.common.KeywordInfo', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='text', full_name='google.ads.googleads.v1.common.KeywordInfo.text', index=0, + name='text', full_name='google.ads.googleads.v4.common.KeywordInfo.text', index=0, number=1, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='match_type', full_name='google.ads.googleads.v1.common.KeywordInfo.match_type', index=1, + name='match_type', full_name='google.ads.googleads.v4.common.KeywordInfo.match_type', index=1, number=2, type=14, cpp_type=8, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, @@ -93,13 +93,13 @@ _PLACEMENTINFO = _descriptor.Descriptor( name='PlacementInfo', - full_name='google.ads.googleads.v1.common.PlacementInfo', + full_name='google.ads.googleads.v4.common.PlacementInfo', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='url', full_name='google.ads.googleads.v1.common.PlacementInfo.url', index=0, + name='url', full_name='google.ads.googleads.v4.common.PlacementInfo.url', index=0, number=1, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, @@ -124,13 +124,13 @@ _MOBILEAPPCATEGORYINFO = _descriptor.Descriptor( name='MobileAppCategoryInfo', - full_name='google.ads.googleads.v1.common.MobileAppCategoryInfo', + full_name='google.ads.googleads.v4.common.MobileAppCategoryInfo', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='mobile_app_category_constant', full_name='google.ads.googleads.v1.common.MobileAppCategoryInfo.mobile_app_category_constant', index=0, + name='mobile_app_category_constant', full_name='google.ads.googleads.v4.common.MobileAppCategoryInfo.mobile_app_category_constant', index=0, number=1, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, @@ -155,20 +155,20 @@ _MOBILEAPPLICATIONINFO = _descriptor.Descriptor( name='MobileApplicationInfo', - full_name='google.ads.googleads.v1.common.MobileApplicationInfo', + full_name='google.ads.googleads.v4.common.MobileApplicationInfo', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='app_id', full_name='google.ads.googleads.v1.common.MobileApplicationInfo.app_id', index=0, + name='app_id', full_name='google.ads.googleads.v4.common.MobileApplicationInfo.app_id', index=0, number=2, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='name', full_name='google.ads.googleads.v1.common.MobileApplicationInfo.name', index=1, + name='name', full_name='google.ads.googleads.v4.common.MobileApplicationInfo.name', index=1, number=3, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, @@ -193,13 +193,13 @@ _LOCATIONINFO = _descriptor.Descriptor( name='LocationInfo', - full_name='google.ads.googleads.v1.common.LocationInfo', + full_name='google.ads.googleads.v4.common.LocationInfo', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='geo_target_constant', full_name='google.ads.googleads.v1.common.LocationInfo.geo_target_constant', index=0, + name='geo_target_constant', full_name='google.ads.googleads.v4.common.LocationInfo.geo_target_constant', index=0, number=1, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, @@ -224,13 +224,13 @@ _DEVICEINFO = _descriptor.Descriptor( name='DeviceInfo', - full_name='google.ads.googleads.v1.common.DeviceInfo', + full_name='google.ads.googleads.v4.common.DeviceInfo', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='type', full_name='google.ads.googleads.v1.common.DeviceInfo.type', index=0, + name='type', full_name='google.ads.googleads.v4.common.DeviceInfo.type', index=0, number=1, type=14, cpp_type=8, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, @@ -255,13 +255,13 @@ _PREFERREDCONTENTINFO = _descriptor.Descriptor( name='PreferredContentInfo', - full_name='google.ads.googleads.v1.common.PreferredContentInfo', + full_name='google.ads.googleads.v4.common.PreferredContentInfo', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='type', full_name='google.ads.googleads.v1.common.PreferredContentInfo.type', index=0, + name='type', full_name='google.ads.googleads.v4.common.PreferredContentInfo.type', index=0, number=2, type=14, cpp_type=8, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, @@ -286,27 +286,27 @@ _LISTINGGROUPINFO = _descriptor.Descriptor( name='ListingGroupInfo', - full_name='google.ads.googleads.v1.common.ListingGroupInfo', + full_name='google.ads.googleads.v4.common.ListingGroupInfo', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='type', full_name='google.ads.googleads.v1.common.ListingGroupInfo.type', index=0, + name='type', full_name='google.ads.googleads.v4.common.ListingGroupInfo.type', index=0, number=1, type=14, cpp_type=8, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='case_value', full_name='google.ads.googleads.v1.common.ListingGroupInfo.case_value', index=1, + name='case_value', full_name='google.ads.googleads.v4.common.ListingGroupInfo.case_value', index=1, number=2, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='parent_ad_group_criterion', full_name='google.ads.googleads.v1.common.ListingGroupInfo.parent_ad_group_criterion', index=2, + name='parent_ad_group_criterion', full_name='google.ads.googleads.v4.common.ListingGroupInfo.parent_ad_group_criterion', index=2, number=3, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, @@ -331,13 +331,13 @@ _LISTINGSCOPEINFO = _descriptor.Descriptor( name='ListingScopeInfo', - full_name='google.ads.googleads.v1.common.ListingScopeInfo', + full_name='google.ads.googleads.v4.common.ListingScopeInfo', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='dimensions', full_name='google.ads.googleads.v1.common.ListingScopeInfo.dimensions', index=0, + name='dimensions', full_name='google.ads.googleads.v4.common.ListingScopeInfo.dimensions', index=0, number=2, type=11, cpp_type=10, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, @@ -362,104 +362,104 @@ _LISTINGDIMENSIONINFO = _descriptor.Descriptor( name='ListingDimensionInfo', - full_name='google.ads.googleads.v1.common.ListingDimensionInfo', + full_name='google.ads.googleads.v4.common.ListingDimensionInfo', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='listing_brand', full_name='google.ads.googleads.v1.common.ListingDimensionInfo.listing_brand', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='hotel_id', full_name='google.ads.googleads.v1.common.ListingDimensionInfo.hotel_id', index=1, + name='hotel_id', full_name='google.ads.googleads.v4.common.ListingDimensionInfo.hotel_id', index=0, number=2, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='hotel_class', full_name='google.ads.googleads.v1.common.ListingDimensionInfo.hotel_class', index=2, + name='hotel_class', full_name='google.ads.googleads.v4.common.ListingDimensionInfo.hotel_class', index=1, number=3, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='hotel_country_region', full_name='google.ads.googleads.v1.common.ListingDimensionInfo.hotel_country_region', index=3, + name='hotel_country_region', full_name='google.ads.googleads.v4.common.ListingDimensionInfo.hotel_country_region', index=2, number=4, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='hotel_state', full_name='google.ads.googleads.v1.common.ListingDimensionInfo.hotel_state', index=4, + name='hotel_state', full_name='google.ads.googleads.v4.common.ListingDimensionInfo.hotel_state', index=3, number=5, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='hotel_city', full_name='google.ads.googleads.v1.common.ListingDimensionInfo.hotel_city', index=5, + name='hotel_city', full_name='google.ads.googleads.v4.common.ListingDimensionInfo.hotel_city', index=4, number=6, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='listing_custom_attribute', full_name='google.ads.googleads.v1.common.ListingDimensionInfo.listing_custom_attribute', index=6, - number=7, type=11, cpp_type=10, label=1, + name='product_bidding_category', full_name='google.ads.googleads.v4.common.ListingDimensionInfo.product_bidding_category', index=5, + number=13, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='product_bidding_category', full_name='google.ads.googleads.v1.common.ListingDimensionInfo.product_bidding_category', index=7, - number=13, type=11, cpp_type=10, label=1, + name='product_brand', full_name='google.ads.googleads.v4.common.ListingDimensionInfo.product_brand', index=6, + number=15, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='product_channel', full_name='google.ads.googleads.v1.common.ListingDimensionInfo.product_channel', index=8, + name='product_channel', full_name='google.ads.googleads.v4.common.ListingDimensionInfo.product_channel', index=7, number=8, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='product_channel_exclusivity', full_name='google.ads.googleads.v1.common.ListingDimensionInfo.product_channel_exclusivity', index=9, + name='product_channel_exclusivity', full_name='google.ads.googleads.v4.common.ListingDimensionInfo.product_channel_exclusivity', index=8, number=9, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='product_condition', full_name='google.ads.googleads.v1.common.ListingDimensionInfo.product_condition', index=10, + name='product_condition', full_name='google.ads.googleads.v4.common.ListingDimensionInfo.product_condition', index=9, number=10, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='product_item_id', full_name='google.ads.googleads.v1.common.ListingDimensionInfo.product_item_id', index=11, + name='product_custom_attribute', full_name='google.ads.googleads.v4.common.ListingDimensionInfo.product_custom_attribute', index=10, + number=16, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='product_item_id', full_name='google.ads.googleads.v4.common.ListingDimensionInfo.product_item_id', index=11, number=11, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='product_type', full_name='google.ads.googleads.v1.common.ListingDimensionInfo.product_type', index=12, + name='product_type', full_name='google.ads.googleads.v4.common.ListingDimensionInfo.product_type', index=12, number=12, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='unknown_listing_dimension', full_name='google.ads.googleads.v1.common.ListingDimensionInfo.unknown_listing_dimension', index=13, + name='unknown_listing_dimension', full_name='google.ads.googleads.v4.common.ListingDimensionInfo.unknown_listing_dimension', index=13, number=14, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, @@ -477,7 +477,7 @@ extension_ranges=[], oneofs=[ _descriptor.OneofDescriptor( - name='dimension', full_name='google.ads.googleads.v1.common.ListingDimensionInfo.dimension', + name='dimension', full_name='google.ads.googleads.v4.common.ListingDimensionInfo.dimension', index=0, containing_type=None, fields=[]), ], serialized_start=2700, @@ -485,15 +485,15 @@ ) -_LISTINGBRANDINFO = _descriptor.Descriptor( - name='ListingBrandInfo', - full_name='google.ads.googleads.v1.common.ListingBrandInfo', +_HOTELIDINFO = _descriptor.Descriptor( + name='HotelIdInfo', + full_name='google.ads.googleads.v4.common.HotelIdInfo', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='value', full_name='google.ads.googleads.v1.common.ListingBrandInfo.value', index=0, + name='value', full_name='google.ads.googleads.v4.common.HotelIdInfo.value', index=0, number=1, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, @@ -512,19 +512,19 @@ oneofs=[ ], serialized_start=3881, - serialized_end=3944, + serialized_end=3939, ) -_HOTELIDINFO = _descriptor.Descriptor( - name='HotelIdInfo', - full_name='google.ads.googleads.v1.common.HotelIdInfo', +_HOTELCLASSINFO = _descriptor.Descriptor( + name='HotelClassInfo', + full_name='google.ads.googleads.v4.common.HotelClassInfo', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='value', full_name='google.ads.googleads.v1.common.HotelIdInfo.value', index=0, + name='value', full_name='google.ads.googleads.v4.common.HotelClassInfo.value', index=0, number=1, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, @@ -542,20 +542,20 @@ extension_ranges=[], oneofs=[ ], - serialized_start=3946, - serialized_end=4004, + serialized_start=3941, + serialized_end=4001, ) -_HOTELCLASSINFO = _descriptor.Descriptor( - name='HotelClassInfo', - full_name='google.ads.googleads.v1.common.HotelClassInfo', +_HOTELCOUNTRYREGIONINFO = _descriptor.Descriptor( + name='HotelCountryRegionInfo', + full_name='google.ads.googleads.v4.common.HotelCountryRegionInfo', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='value', full_name='google.ads.googleads.v1.common.HotelClassInfo.value', index=0, + name='country_region_criterion', full_name='google.ads.googleads.v4.common.HotelCountryRegionInfo.country_region_criterion', index=0, number=1, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, @@ -573,20 +573,20 @@ extension_ranges=[], oneofs=[ ], - serialized_start=4006, - serialized_end=4066, + serialized_start=4003, + serialized_end=4091, ) -_HOTELCOUNTRYREGIONINFO = _descriptor.Descriptor( - name='HotelCountryRegionInfo', - full_name='google.ads.googleads.v1.common.HotelCountryRegionInfo', +_HOTELSTATEINFO = _descriptor.Descriptor( + name='HotelStateInfo', + full_name='google.ads.googleads.v4.common.HotelStateInfo', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='country_region_criterion', full_name='google.ads.googleads.v1.common.HotelCountryRegionInfo.country_region_criterion', index=0, + name='state_criterion', full_name='google.ads.googleads.v4.common.HotelStateInfo.state_criterion', index=0, number=1, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, @@ -604,20 +604,20 @@ extension_ranges=[], oneofs=[ ], - serialized_start=4068, - serialized_end=4156, + serialized_start=4093, + serialized_end=4164, ) -_HOTELSTATEINFO = _descriptor.Descriptor( - name='HotelStateInfo', - full_name='google.ads.googleads.v1.common.HotelStateInfo', +_HOTELCITYINFO = _descriptor.Descriptor( + name='HotelCityInfo', + full_name='google.ads.googleads.v4.common.HotelCityInfo', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='state_criterion', full_name='google.ads.googleads.v1.common.HotelStateInfo.state_criterion', index=0, + name='city_criterion', full_name='google.ads.googleads.v4.common.HotelCityInfo.city_criterion', index=0, number=1, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, @@ -635,25 +635,39 @@ extension_ranges=[], oneofs=[ ], - serialized_start=4158, - serialized_end=4229, + serialized_start=4166, + serialized_end=4235, ) -_HOTELCITYINFO = _descriptor.Descriptor( - name='HotelCityInfo', - full_name='google.ads.googleads.v1.common.HotelCityInfo', +_PRODUCTBIDDINGCATEGORYINFO = _descriptor.Descriptor( + name='ProductBiddingCategoryInfo', + full_name='google.ads.googleads.v4.common.ProductBiddingCategoryInfo', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='city_criterion', full_name='google.ads.googleads.v1.common.HotelCityInfo.city_criterion', index=0, + name='id', full_name='google.ads.googleads.v4.common.ProductBiddingCategoryInfo.id', index=0, number=1, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='country_code', full_name='google.ads.googleads.v4.common.ProductBiddingCategoryInfo.country_code', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='level', full_name='google.ads.googleads.v4.common.ProductBiddingCategoryInfo.level', index=2, + number=3, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), ], extensions=[ ], @@ -666,32 +680,25 @@ extension_ranges=[], oneofs=[ ], - serialized_start=4231, - serialized_end=4300, + serialized_start=4238, + serialized_end=4466, ) -_LISTINGCUSTOMATTRIBUTEINFO = _descriptor.Descriptor( - name='ListingCustomAttributeInfo', - full_name='google.ads.googleads.v1.common.ListingCustomAttributeInfo', +_PRODUCTBRANDINFO = _descriptor.Descriptor( + name='ProductBrandInfo', + full_name='google.ads.googleads.v4.common.ProductBrandInfo', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='value', full_name='google.ads.googleads.v1.common.ListingCustomAttributeInfo.value', index=0, + name='value', full_name='google.ads.googleads.v4.common.ProductBrandInfo.value', index=0, number=1, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='index', full_name='google.ads.googleads.v1.common.ListingCustomAttributeInfo.index', index=1, - number=2, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), ], extensions=[ ], @@ -704,35 +711,21 @@ extension_ranges=[], oneofs=[ ], - serialized_start=4303, - serialized_end=4483, + serialized_start=4468, + serialized_end=4531, ) -_PRODUCTBIDDINGCATEGORYINFO = _descriptor.Descriptor( - name='ProductBiddingCategoryInfo', - full_name='google.ads.googleads.v1.common.ProductBiddingCategoryInfo', +_PRODUCTCHANNELINFO = _descriptor.Descriptor( + name='ProductChannelInfo', + full_name='google.ads.googleads.v4.common.ProductChannelInfo', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='id', full_name='google.ads.googleads.v1.common.ProductBiddingCategoryInfo.id', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='country_code', full_name='google.ads.googleads.v1.common.ProductBiddingCategoryInfo.country_code', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='level', full_name='google.ads.googleads.v1.common.ProductBiddingCategoryInfo.level', index=2, - number=3, type=14, cpp_type=8, label=1, + name='channel', full_name='google.ads.googleads.v4.common.ProductChannelInfo.channel', index=0, + number=1, type=14, cpp_type=8, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, @@ -749,20 +742,20 @@ extension_ranges=[], oneofs=[ ], - serialized_start=4486, - serialized_end=4714, + serialized_start=4533, + serialized_end=4636, ) -_PRODUCTCHANNELINFO = _descriptor.Descriptor( - name='ProductChannelInfo', - full_name='google.ads.googleads.v1.common.ProductChannelInfo', +_PRODUCTCHANNELEXCLUSIVITYINFO = _descriptor.Descriptor( + name='ProductChannelExclusivityInfo', + full_name='google.ads.googleads.v4.common.ProductChannelExclusivityInfo', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='channel', full_name='google.ads.googleads.v1.common.ProductChannelInfo.channel', index=0, + name='channel_exclusivity', full_name='google.ads.googleads.v4.common.ProductChannelExclusivityInfo.channel_exclusivity', index=0, number=1, type=14, cpp_type=8, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, @@ -780,20 +773,20 @@ extension_ranges=[], oneofs=[ ], - serialized_start=4716, - serialized_end=4819, + serialized_start=4639, + serialized_end=4787, ) -_PRODUCTCHANNELEXCLUSIVITYINFO = _descriptor.Descriptor( - name='ProductChannelExclusivityInfo', - full_name='google.ads.googleads.v1.common.ProductChannelExclusivityInfo', +_PRODUCTCONDITIONINFO = _descriptor.Descriptor( + name='ProductConditionInfo', + full_name='google.ads.googleads.v4.common.ProductConditionInfo', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='channel_exclusivity', full_name='google.ads.googleads.v1.common.ProductChannelExclusivityInfo.channel_exclusivity', index=0, + name='condition', full_name='google.ads.googleads.v4.common.ProductConditionInfo.condition', index=0, number=1, type=14, cpp_type=8, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, @@ -811,21 +804,28 @@ extension_ranges=[], oneofs=[ ], - serialized_start=4822, - serialized_end=4970, + serialized_start=4789, + serialized_end=4900, ) -_PRODUCTCONDITIONINFO = _descriptor.Descriptor( - name='ProductConditionInfo', - full_name='google.ads.googleads.v1.common.ProductConditionInfo', +_PRODUCTCUSTOMATTRIBUTEINFO = _descriptor.Descriptor( + name='ProductCustomAttributeInfo', + full_name='google.ads.googleads.v4.common.ProductCustomAttributeInfo', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='condition', full_name='google.ads.googleads.v1.common.ProductConditionInfo.condition', index=0, - number=1, type=14, cpp_type=8, label=1, + name='value', full_name='google.ads.googleads.v4.common.ProductCustomAttributeInfo.value', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='index', full_name='google.ads.googleads.v4.common.ProductCustomAttributeInfo.index', index=1, + number=2, type=14, cpp_type=8, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, @@ -842,20 +842,20 @@ extension_ranges=[], oneofs=[ ], - serialized_start=4972, + serialized_start=4903, serialized_end=5083, ) _PRODUCTITEMIDINFO = _descriptor.Descriptor( name='ProductItemIdInfo', - full_name='google.ads.googleads.v1.common.ProductItemIdInfo', + full_name='google.ads.googleads.v4.common.ProductItemIdInfo', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='value', full_name='google.ads.googleads.v1.common.ProductItemIdInfo.value', index=0, + name='value', full_name='google.ads.googleads.v4.common.ProductItemIdInfo.value', index=0, number=1, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, @@ -880,20 +880,20 @@ _PRODUCTTYPEINFO = _descriptor.Descriptor( name='ProductTypeInfo', - full_name='google.ads.googleads.v1.common.ProductTypeInfo', + full_name='google.ads.googleads.v4.common.ProductTypeInfo', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='value', full_name='google.ads.googleads.v1.common.ProductTypeInfo.value', index=0, + name='value', full_name='google.ads.googleads.v4.common.ProductTypeInfo.value', index=0, number=1, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='level', full_name='google.ads.googleads.v1.common.ProductTypeInfo.level', index=1, + name='level', full_name='google.ads.googleads.v4.common.ProductTypeInfo.level', index=1, number=2, type=14, cpp_type=8, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, @@ -918,7 +918,7 @@ _UNKNOWNLISTINGDIMENSIONINFO = _descriptor.Descriptor( name='UnknownListingDimensionInfo', - full_name='google.ads.googleads.v1.common.UnknownListingDimensionInfo', + full_name='google.ads.googleads.v4.common.UnknownListingDimensionInfo', filename=None, file=DESCRIPTOR, containing_type=None, @@ -942,13 +942,13 @@ _HOTELDATESELECTIONTYPEINFO = _descriptor.Descriptor( name='HotelDateSelectionTypeInfo', - full_name='google.ads.googleads.v1.common.HotelDateSelectionTypeInfo', + full_name='google.ads.googleads.v4.common.HotelDateSelectionTypeInfo', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='type', full_name='google.ads.googleads.v1.common.HotelDateSelectionTypeInfo.type', index=0, + name='type', full_name='google.ads.googleads.v4.common.HotelDateSelectionTypeInfo.type', index=0, number=1, type=14, cpp_type=8, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, @@ -973,20 +973,20 @@ _HOTELADVANCEBOOKINGWINDOWINFO = _descriptor.Descriptor( name='HotelAdvanceBookingWindowInfo', - full_name='google.ads.googleads.v1.common.HotelAdvanceBookingWindowInfo', + full_name='google.ads.googleads.v4.common.HotelAdvanceBookingWindowInfo', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='min_days', full_name='google.ads.googleads.v1.common.HotelAdvanceBookingWindowInfo.min_days', index=0, + name='min_days', full_name='google.ads.googleads.v4.common.HotelAdvanceBookingWindowInfo.min_days', index=0, number=1, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='max_days', full_name='google.ads.googleads.v1.common.HotelAdvanceBookingWindowInfo.max_days', index=1, + name='max_days', full_name='google.ads.googleads.v4.common.HotelAdvanceBookingWindowInfo.max_days', index=1, number=2, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, @@ -1011,20 +1011,20 @@ _HOTELLENGTHOFSTAYINFO = _descriptor.Descriptor( name='HotelLengthOfStayInfo', - full_name='google.ads.googleads.v1.common.HotelLengthOfStayInfo', + full_name='google.ads.googleads.v4.common.HotelLengthOfStayInfo', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='min_nights', full_name='google.ads.googleads.v1.common.HotelLengthOfStayInfo.min_nights', index=0, + name='min_nights', full_name='google.ads.googleads.v4.common.HotelLengthOfStayInfo.min_nights', index=0, number=1, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='max_nights', full_name='google.ads.googleads.v1.common.HotelLengthOfStayInfo.max_nights', index=1, + name='max_nights', full_name='google.ads.googleads.v4.common.HotelLengthOfStayInfo.max_nights', index=1, number=2, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, @@ -1049,13 +1049,13 @@ _HOTELCHECKINDAYINFO = _descriptor.Descriptor( name='HotelCheckInDayInfo', - full_name='google.ads.googleads.v1.common.HotelCheckInDayInfo', + full_name='google.ads.googleads.v4.common.HotelCheckInDayInfo', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='day_of_week', full_name='google.ads.googleads.v1.common.HotelCheckInDayInfo.day_of_week', index=0, + name='day_of_week', full_name='google.ads.googleads.v4.common.HotelCheckInDayInfo.day_of_week', index=0, number=1, type=14, cpp_type=8, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, @@ -1080,13 +1080,13 @@ _INTERACTIONTYPEINFO = _descriptor.Descriptor( name='InteractionTypeInfo', - full_name='google.ads.googleads.v1.common.InteractionTypeInfo', + full_name='google.ads.googleads.v4.common.InteractionTypeInfo', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='type', full_name='google.ads.googleads.v1.common.InteractionTypeInfo.type', index=0, + name='type', full_name='google.ads.googleads.v4.common.InteractionTypeInfo.type', index=0, number=1, type=14, cpp_type=8, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, @@ -1111,41 +1111,41 @@ _ADSCHEDULEINFO = _descriptor.Descriptor( name='AdScheduleInfo', - full_name='google.ads.googleads.v1.common.AdScheduleInfo', + full_name='google.ads.googleads.v4.common.AdScheduleInfo', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='start_minute', full_name='google.ads.googleads.v1.common.AdScheduleInfo.start_minute', index=0, + name='start_minute', full_name='google.ads.googleads.v4.common.AdScheduleInfo.start_minute', index=0, number=1, type=14, cpp_type=8, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='end_minute', full_name='google.ads.googleads.v1.common.AdScheduleInfo.end_minute', index=1, + name='end_minute', full_name='google.ads.googleads.v4.common.AdScheduleInfo.end_minute', index=1, number=2, type=14, cpp_type=8, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='start_hour', full_name='google.ads.googleads.v1.common.AdScheduleInfo.start_hour', index=2, + name='start_hour', full_name='google.ads.googleads.v4.common.AdScheduleInfo.start_hour', index=2, number=3, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='end_hour', full_name='google.ads.googleads.v1.common.AdScheduleInfo.end_hour', index=3, + name='end_hour', full_name='google.ads.googleads.v4.common.AdScheduleInfo.end_hour', index=3, number=4, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='day_of_week', full_name='google.ads.googleads.v1.common.AdScheduleInfo.day_of_week', index=4, + name='day_of_week', full_name='google.ads.googleads.v4.common.AdScheduleInfo.day_of_week', index=4, number=5, type=14, cpp_type=8, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, @@ -1170,13 +1170,13 @@ _AGERANGEINFO = _descriptor.Descriptor( name='AgeRangeInfo', - full_name='google.ads.googleads.v1.common.AgeRangeInfo', + full_name='google.ads.googleads.v4.common.AgeRangeInfo', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='type', full_name='google.ads.googleads.v1.common.AgeRangeInfo.type', index=0, + name='type', full_name='google.ads.googleads.v4.common.AgeRangeInfo.type', index=0, number=1, type=14, cpp_type=8, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, @@ -1201,13 +1201,13 @@ _GENDERINFO = _descriptor.Descriptor( name='GenderInfo', - full_name='google.ads.googleads.v1.common.GenderInfo', + full_name='google.ads.googleads.v4.common.GenderInfo', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='type', full_name='google.ads.googleads.v1.common.GenderInfo.type', index=0, + name='type', full_name='google.ads.googleads.v4.common.GenderInfo.type', index=0, number=1, type=14, cpp_type=8, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, @@ -1232,13 +1232,13 @@ _INCOMERANGEINFO = _descriptor.Descriptor( name='IncomeRangeInfo', - full_name='google.ads.googleads.v1.common.IncomeRangeInfo', + full_name='google.ads.googleads.v4.common.IncomeRangeInfo', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='type', full_name='google.ads.googleads.v1.common.IncomeRangeInfo.type', index=0, + name='type', full_name='google.ads.googleads.v4.common.IncomeRangeInfo.type', index=0, number=1, type=14, cpp_type=8, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, @@ -1263,13 +1263,13 @@ _PARENTALSTATUSINFO = _descriptor.Descriptor( name='ParentalStatusInfo', - full_name='google.ads.googleads.v1.common.ParentalStatusInfo', + full_name='google.ads.googleads.v4.common.ParentalStatusInfo', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='type', full_name='google.ads.googleads.v1.common.ParentalStatusInfo.type', index=0, + name='type', full_name='google.ads.googleads.v4.common.ParentalStatusInfo.type', index=0, number=1, type=14, cpp_type=8, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, @@ -1294,13 +1294,13 @@ _YOUTUBEVIDEOINFO = _descriptor.Descriptor( name='YouTubeVideoInfo', - full_name='google.ads.googleads.v1.common.YouTubeVideoInfo', + full_name='google.ads.googleads.v4.common.YouTubeVideoInfo', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='video_id', full_name='google.ads.googleads.v1.common.YouTubeVideoInfo.video_id', index=0, + name='video_id', full_name='google.ads.googleads.v4.common.YouTubeVideoInfo.video_id', index=0, number=1, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, @@ -1325,13 +1325,13 @@ _YOUTUBECHANNELINFO = _descriptor.Descriptor( name='YouTubeChannelInfo', - full_name='google.ads.googleads.v1.common.YouTubeChannelInfo', + full_name='google.ads.googleads.v4.common.YouTubeChannelInfo', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='channel_id', full_name='google.ads.googleads.v1.common.YouTubeChannelInfo.channel_id', index=0, + name='channel_id', full_name='google.ads.googleads.v4.common.YouTubeChannelInfo.channel_id', index=0, number=1, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, @@ -1356,13 +1356,13 @@ _USERLISTINFO = _descriptor.Descriptor( name='UserListInfo', - full_name='google.ads.googleads.v1.common.UserListInfo', + full_name='google.ads.googleads.v4.common.UserListInfo', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='user_list', full_name='google.ads.googleads.v1.common.UserListInfo.user_list', index=0, + name='user_list', full_name='google.ads.googleads.v4.common.UserListInfo.user_list', index=0, number=1, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, @@ -1387,34 +1387,34 @@ _PROXIMITYINFO = _descriptor.Descriptor( name='ProximityInfo', - full_name='google.ads.googleads.v1.common.ProximityInfo', + full_name='google.ads.googleads.v4.common.ProximityInfo', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='geo_point', full_name='google.ads.googleads.v1.common.ProximityInfo.geo_point', index=0, + name='geo_point', full_name='google.ads.googleads.v4.common.ProximityInfo.geo_point', index=0, number=1, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='radius', full_name='google.ads.googleads.v1.common.ProximityInfo.radius', index=1, + name='radius', full_name='google.ads.googleads.v4.common.ProximityInfo.radius', index=1, number=2, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='radius_units', full_name='google.ads.googleads.v1.common.ProximityInfo.radius_units', index=2, + name='radius_units', full_name='google.ads.googleads.v4.common.ProximityInfo.radius_units', index=2, number=3, type=14, cpp_type=8, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='address', full_name='google.ads.googleads.v1.common.ProximityInfo.address', index=3, + name='address', full_name='google.ads.googleads.v4.common.ProximityInfo.address', index=3, number=4, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, @@ -1439,20 +1439,20 @@ _GEOPOINTINFO = _descriptor.Descriptor( name='GeoPointInfo', - full_name='google.ads.googleads.v1.common.GeoPointInfo', + full_name='google.ads.googleads.v4.common.GeoPointInfo', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='longitude_in_micro_degrees', full_name='google.ads.googleads.v1.common.GeoPointInfo.longitude_in_micro_degrees', index=0, + name='longitude_in_micro_degrees', full_name='google.ads.googleads.v4.common.GeoPointInfo.longitude_in_micro_degrees', index=0, number=1, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='latitude_in_micro_degrees', full_name='google.ads.googleads.v1.common.GeoPointInfo.latitude_in_micro_degrees', index=1, + name='latitude_in_micro_degrees', full_name='google.ads.googleads.v4.common.GeoPointInfo.latitude_in_micro_degrees', index=1, number=2, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, @@ -1477,55 +1477,55 @@ _ADDRESSINFO = _descriptor.Descriptor( name='AddressInfo', - full_name='google.ads.googleads.v1.common.AddressInfo', + full_name='google.ads.googleads.v4.common.AddressInfo', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='postal_code', full_name='google.ads.googleads.v1.common.AddressInfo.postal_code', index=0, + name='postal_code', full_name='google.ads.googleads.v4.common.AddressInfo.postal_code', index=0, number=1, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='province_code', full_name='google.ads.googleads.v1.common.AddressInfo.province_code', index=1, + name='province_code', full_name='google.ads.googleads.v4.common.AddressInfo.province_code', index=1, number=2, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='country_code', full_name='google.ads.googleads.v1.common.AddressInfo.country_code', index=2, + name='country_code', full_name='google.ads.googleads.v4.common.AddressInfo.country_code', index=2, number=3, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='province_name', full_name='google.ads.googleads.v1.common.AddressInfo.province_name', index=3, + name='province_name', full_name='google.ads.googleads.v4.common.AddressInfo.province_name', index=3, number=4, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='street_address', full_name='google.ads.googleads.v1.common.AddressInfo.street_address', index=4, + name='street_address', full_name='google.ads.googleads.v4.common.AddressInfo.street_address', index=4, number=5, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='street_address2', full_name='google.ads.googleads.v1.common.AddressInfo.street_address2', index=5, + name='street_address2', full_name='google.ads.googleads.v4.common.AddressInfo.street_address2', index=5, number=6, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='city_name', full_name='google.ads.googleads.v1.common.AddressInfo.city_name', index=6, + name='city_name', full_name='google.ads.googleads.v4.common.AddressInfo.city_name', index=6, number=7, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, @@ -1550,20 +1550,20 @@ _TOPICINFO = _descriptor.Descriptor( name='TopicInfo', - full_name='google.ads.googleads.v1.common.TopicInfo', + full_name='google.ads.googleads.v4.common.TopicInfo', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='topic_constant', full_name='google.ads.googleads.v1.common.TopicInfo.topic_constant', index=0, + name='topic_constant', full_name='google.ads.googleads.v4.common.TopicInfo.topic_constant', index=0, number=1, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='path', full_name='google.ads.googleads.v1.common.TopicInfo.path', index=1, + name='path', full_name='google.ads.googleads.v4.common.TopicInfo.path', index=1, number=2, type=11, cpp_type=10, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, @@ -1588,13 +1588,13 @@ _LANGUAGEINFO = _descriptor.Descriptor( name='LanguageInfo', - full_name='google.ads.googleads.v1.common.LanguageInfo', + full_name='google.ads.googleads.v4.common.LanguageInfo', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='language_constant', full_name='google.ads.googleads.v1.common.LanguageInfo.language_constant', index=0, + name='language_constant', full_name='google.ads.googleads.v4.common.LanguageInfo.language_constant', index=0, number=1, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, @@ -1619,13 +1619,13 @@ _IPBLOCKINFO = _descriptor.Descriptor( name='IpBlockInfo', - full_name='google.ads.googleads.v1.common.IpBlockInfo', + full_name='google.ads.googleads.v4.common.IpBlockInfo', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='ip_address', full_name='google.ads.googleads.v1.common.IpBlockInfo.ip_address', index=0, + name='ip_address', full_name='google.ads.googleads.v4.common.IpBlockInfo.ip_address', index=0, number=1, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, @@ -1650,13 +1650,13 @@ _CONTENTLABELINFO = _descriptor.Descriptor( name='ContentLabelInfo', - full_name='google.ads.googleads.v1.common.ContentLabelInfo', + full_name='google.ads.googleads.v4.common.ContentLabelInfo', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='type', full_name='google.ads.googleads.v1.common.ContentLabelInfo.type', index=0, + name='type', full_name='google.ads.googleads.v4.common.ContentLabelInfo.type', index=0, number=1, type=14, cpp_type=8, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, @@ -1681,13 +1681,13 @@ _CARRIERINFO = _descriptor.Descriptor( name='CarrierInfo', - full_name='google.ads.googleads.v1.common.CarrierInfo', + full_name='google.ads.googleads.v4.common.CarrierInfo', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='carrier_constant', full_name='google.ads.googleads.v1.common.CarrierInfo.carrier_constant', index=0, + name='carrier_constant', full_name='google.ads.googleads.v4.common.CarrierInfo.carrier_constant', index=0, number=1, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, @@ -1712,13 +1712,13 @@ _USERINTERESTINFO = _descriptor.Descriptor( name='UserInterestInfo', - full_name='google.ads.googleads.v1.common.UserInterestInfo', + full_name='google.ads.googleads.v4.common.UserInterestInfo', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='user_interest_category', full_name='google.ads.googleads.v1.common.UserInterestInfo.user_interest_category', index=0, + name='user_interest_category', full_name='google.ads.googleads.v4.common.UserInterestInfo.user_interest_category', index=0, number=1, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, @@ -1743,20 +1743,20 @@ _WEBPAGEINFO = _descriptor.Descriptor( name='WebpageInfo', - full_name='google.ads.googleads.v1.common.WebpageInfo', + full_name='google.ads.googleads.v4.common.WebpageInfo', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='criterion_name', full_name='google.ads.googleads.v1.common.WebpageInfo.criterion_name', index=0, + name='criterion_name', full_name='google.ads.googleads.v4.common.WebpageInfo.criterion_name', index=0, number=1, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='conditions', full_name='google.ads.googleads.v1.common.WebpageInfo.conditions', index=1, + name='conditions', full_name='google.ads.googleads.v4.common.WebpageInfo.conditions', index=1, number=2, type=11, cpp_type=10, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, @@ -1781,27 +1781,27 @@ _WEBPAGECONDITIONINFO = _descriptor.Descriptor( name='WebpageConditionInfo', - full_name='google.ads.googleads.v1.common.WebpageConditionInfo', + full_name='google.ads.googleads.v4.common.WebpageConditionInfo', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='operand', full_name='google.ads.googleads.v1.common.WebpageConditionInfo.operand', index=0, + name='operand', full_name='google.ads.googleads.v4.common.WebpageConditionInfo.operand', index=0, number=1, type=14, cpp_type=8, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='operator', full_name='google.ads.googleads.v1.common.WebpageConditionInfo.operator', index=1, + name='operator', full_name='google.ads.googleads.v4.common.WebpageConditionInfo.operator', index=1, number=2, type=14, cpp_type=8, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='argument', full_name='google.ads.googleads.v1.common.WebpageConditionInfo.argument', index=2, + name='argument', full_name='google.ads.googleads.v4.common.WebpageConditionInfo.argument', index=2, number=3, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, @@ -1826,13 +1826,13 @@ _OPERATINGSYSTEMVERSIONINFO = _descriptor.Descriptor( name='OperatingSystemVersionInfo', - full_name='google.ads.googleads.v1.common.OperatingSystemVersionInfo', + full_name='google.ads.googleads.v4.common.OperatingSystemVersionInfo', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='operating_system_version_constant', full_name='google.ads.googleads.v1.common.OperatingSystemVersionInfo.operating_system_version_constant', index=0, + name='operating_system_version_constant', full_name='google.ads.googleads.v4.common.OperatingSystemVersionInfo.operating_system_version_constant', index=0, number=1, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, @@ -1857,13 +1857,13 @@ _APPPAYMENTMODELINFO = _descriptor.Descriptor( name='AppPaymentModelInfo', - full_name='google.ads.googleads.v1.common.AppPaymentModelInfo', + full_name='google.ads.googleads.v4.common.AppPaymentModelInfo', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='type', full_name='google.ads.googleads.v1.common.AppPaymentModelInfo.type', index=0, + name='type', full_name='google.ads.googleads.v4.common.AppPaymentModelInfo.type', index=0, number=1, type=14, cpp_type=8, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, @@ -1888,13 +1888,13 @@ _MOBILEDEVICEINFO = _descriptor.Descriptor( name='MobileDeviceInfo', - full_name='google.ads.googleads.v1.common.MobileDeviceInfo', + full_name='google.ads.googleads.v4.common.MobileDeviceInfo', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='mobile_device_constant', full_name='google.ads.googleads.v1.common.MobileDeviceInfo.mobile_device_constant', index=0, + name='mobile_device_constant', full_name='google.ads.googleads.v4.common.MobileDeviceInfo.mobile_device_constant', index=0, number=1, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, @@ -1919,13 +1919,13 @@ _CUSTOMAFFINITYINFO = _descriptor.Descriptor( name='CustomAffinityInfo', - full_name='google.ads.googleads.v1.common.CustomAffinityInfo', + full_name='google.ads.googleads.v4.common.CustomAffinityInfo', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='custom_affinity', full_name='google.ads.googleads.v1.common.CustomAffinityInfo.custom_affinity', index=0, + name='custom_affinity', full_name='google.ads.googleads.v4.common.CustomAffinityInfo.custom_affinity', index=0, number=1, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, @@ -1950,13 +1950,13 @@ _CUSTOMINTENTINFO = _descriptor.Descriptor( name='CustomIntentInfo', - full_name='google.ads.googleads.v1.common.CustomIntentInfo', + full_name='google.ads.googleads.v4.common.CustomIntentInfo', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='custom_intent', full_name='google.ads.googleads.v1.common.CustomIntentInfo.custom_intent', index=0, + name='custom_intent', full_name='google.ads.googleads.v4.common.CustomIntentInfo.custom_intent', index=0, number=1, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, @@ -1981,34 +1981,34 @@ _LOCATIONGROUPINFO = _descriptor.Descriptor( name='LocationGroupInfo', - full_name='google.ads.googleads.v1.common.LocationGroupInfo', + full_name='google.ads.googleads.v4.common.LocationGroupInfo', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='feed', full_name='google.ads.googleads.v1.common.LocationGroupInfo.feed', index=0, + name='feed', full_name='google.ads.googleads.v4.common.LocationGroupInfo.feed', index=0, number=1, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='geo_target_constants', full_name='google.ads.googleads.v1.common.LocationGroupInfo.geo_target_constants', index=1, + name='geo_target_constants', full_name='google.ads.googleads.v4.common.LocationGroupInfo.geo_target_constants', index=1, number=2, type=11, cpp_type=10, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='radius', full_name='google.ads.googleads.v1.common.LocationGroupInfo.radius', index=2, + name='radius', full_name='google.ads.googleads.v4.common.LocationGroupInfo.radius', index=2, number=3, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='radius_units', full_name='google.ads.googleads.v1.common.LocationGroupInfo.radius_units', index=3, + name='radius_units', full_name='google.ads.googleads.v4.common.LocationGroupInfo.radius_units', index=3, number=4, type=14, cpp_type=8, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, @@ -2031,35 +2031,32 @@ ) _KEYWORDINFO.fields_by_name['text'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_KEYWORDINFO.fields_by_name['match_type'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_keyword__match__type__pb2._KEYWORDMATCHTYPEENUM_KEYWORDMATCHTYPE +_KEYWORDINFO.fields_by_name['match_type'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_keyword__match__type__pb2._KEYWORDMATCHTYPEENUM_KEYWORDMATCHTYPE _PLACEMENTINFO.fields_by_name['url'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE _MOBILEAPPCATEGORYINFO.fields_by_name['mobile_app_category_constant'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE _MOBILEAPPLICATIONINFO.fields_by_name['app_id'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE _MOBILEAPPLICATIONINFO.fields_by_name['name'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE _LOCATIONINFO.fields_by_name['geo_target_constant'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_DEVICEINFO.fields_by_name['type'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_device__pb2._DEVICEENUM_DEVICE -_PREFERREDCONTENTINFO.fields_by_name['type'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_preferred__content__type__pb2._PREFERREDCONTENTTYPEENUM_PREFERREDCONTENTTYPE -_LISTINGGROUPINFO.fields_by_name['type'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_listing__group__type__pb2._LISTINGGROUPTYPEENUM_LISTINGGROUPTYPE +_DEVICEINFO.fields_by_name['type'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_device__pb2._DEVICEENUM_DEVICE +_PREFERREDCONTENTINFO.fields_by_name['type'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_preferred__content__type__pb2._PREFERREDCONTENTTYPEENUM_PREFERREDCONTENTTYPE +_LISTINGGROUPINFO.fields_by_name['type'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_listing__group__type__pb2._LISTINGGROUPTYPEENUM_LISTINGGROUPTYPE _LISTINGGROUPINFO.fields_by_name['case_value'].message_type = _LISTINGDIMENSIONINFO _LISTINGGROUPINFO.fields_by_name['parent_ad_group_criterion'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE _LISTINGSCOPEINFO.fields_by_name['dimensions'].message_type = _LISTINGDIMENSIONINFO -_LISTINGDIMENSIONINFO.fields_by_name['listing_brand'].message_type = _LISTINGBRANDINFO _LISTINGDIMENSIONINFO.fields_by_name['hotel_id'].message_type = _HOTELIDINFO _LISTINGDIMENSIONINFO.fields_by_name['hotel_class'].message_type = _HOTELCLASSINFO _LISTINGDIMENSIONINFO.fields_by_name['hotel_country_region'].message_type = _HOTELCOUNTRYREGIONINFO _LISTINGDIMENSIONINFO.fields_by_name['hotel_state'].message_type = _HOTELSTATEINFO _LISTINGDIMENSIONINFO.fields_by_name['hotel_city'].message_type = _HOTELCITYINFO -_LISTINGDIMENSIONINFO.fields_by_name['listing_custom_attribute'].message_type = _LISTINGCUSTOMATTRIBUTEINFO _LISTINGDIMENSIONINFO.fields_by_name['product_bidding_category'].message_type = _PRODUCTBIDDINGCATEGORYINFO +_LISTINGDIMENSIONINFO.fields_by_name['product_brand'].message_type = _PRODUCTBRANDINFO _LISTINGDIMENSIONINFO.fields_by_name['product_channel'].message_type = _PRODUCTCHANNELINFO _LISTINGDIMENSIONINFO.fields_by_name['product_channel_exclusivity'].message_type = _PRODUCTCHANNELEXCLUSIVITYINFO _LISTINGDIMENSIONINFO.fields_by_name['product_condition'].message_type = _PRODUCTCONDITIONINFO +_LISTINGDIMENSIONINFO.fields_by_name['product_custom_attribute'].message_type = _PRODUCTCUSTOMATTRIBUTEINFO _LISTINGDIMENSIONINFO.fields_by_name['product_item_id'].message_type = _PRODUCTITEMIDINFO _LISTINGDIMENSIONINFO.fields_by_name['product_type'].message_type = _PRODUCTTYPEINFO _LISTINGDIMENSIONINFO.fields_by_name['unknown_listing_dimension'].message_type = _UNKNOWNLISTINGDIMENSIONINFO -_LISTINGDIMENSIONINFO.oneofs_by_name['dimension'].fields.append( - _LISTINGDIMENSIONINFO.fields_by_name['listing_brand']) -_LISTINGDIMENSIONINFO.fields_by_name['listing_brand'].containing_oneof = _LISTINGDIMENSIONINFO.oneofs_by_name['dimension'] _LISTINGDIMENSIONINFO.oneofs_by_name['dimension'].fields.append( _LISTINGDIMENSIONINFO.fields_by_name['hotel_id']) _LISTINGDIMENSIONINFO.fields_by_name['hotel_id'].containing_oneof = _LISTINGDIMENSIONINFO.oneofs_by_name['dimension'] @@ -2075,12 +2072,12 @@ _LISTINGDIMENSIONINFO.oneofs_by_name['dimension'].fields.append( _LISTINGDIMENSIONINFO.fields_by_name['hotel_city']) _LISTINGDIMENSIONINFO.fields_by_name['hotel_city'].containing_oneof = _LISTINGDIMENSIONINFO.oneofs_by_name['dimension'] -_LISTINGDIMENSIONINFO.oneofs_by_name['dimension'].fields.append( - _LISTINGDIMENSIONINFO.fields_by_name['listing_custom_attribute']) -_LISTINGDIMENSIONINFO.fields_by_name['listing_custom_attribute'].containing_oneof = _LISTINGDIMENSIONINFO.oneofs_by_name['dimension'] _LISTINGDIMENSIONINFO.oneofs_by_name['dimension'].fields.append( _LISTINGDIMENSIONINFO.fields_by_name['product_bidding_category']) _LISTINGDIMENSIONINFO.fields_by_name['product_bidding_category'].containing_oneof = _LISTINGDIMENSIONINFO.oneofs_by_name['dimension'] +_LISTINGDIMENSIONINFO.oneofs_by_name['dimension'].fields.append( + _LISTINGDIMENSIONINFO.fields_by_name['product_brand']) +_LISTINGDIMENSIONINFO.fields_by_name['product_brand'].containing_oneof = _LISTINGDIMENSIONINFO.oneofs_by_name['dimension'] _LISTINGDIMENSIONINFO.oneofs_by_name['dimension'].fields.append( _LISTINGDIMENSIONINFO.fields_by_name['product_channel']) _LISTINGDIMENSIONINFO.fields_by_name['product_channel'].containing_oneof = _LISTINGDIMENSIONINFO.oneofs_by_name['dimension'] @@ -2090,6 +2087,9 @@ _LISTINGDIMENSIONINFO.oneofs_by_name['dimension'].fields.append( _LISTINGDIMENSIONINFO.fields_by_name['product_condition']) _LISTINGDIMENSIONINFO.fields_by_name['product_condition'].containing_oneof = _LISTINGDIMENSIONINFO.oneofs_by_name['dimension'] +_LISTINGDIMENSIONINFO.oneofs_by_name['dimension'].fields.append( + _LISTINGDIMENSIONINFO.fields_by_name['product_custom_attribute']) +_LISTINGDIMENSIONINFO.fields_by_name['product_custom_attribute'].containing_oneof = _LISTINGDIMENSIONINFO.oneofs_by_name['dimension'] _LISTINGDIMENSIONINFO.oneofs_by_name['dimension'].fields.append( _LISTINGDIMENSIONINFO.fields_by_name['product_item_id']) _LISTINGDIMENSIONINFO.fields_by_name['product_item_id'].containing_oneof = _LISTINGDIMENSIONINFO.oneofs_by_name['dimension'] @@ -2099,45 +2099,45 @@ _LISTINGDIMENSIONINFO.oneofs_by_name['dimension'].fields.append( _LISTINGDIMENSIONINFO.fields_by_name['unknown_listing_dimension']) _LISTINGDIMENSIONINFO.fields_by_name['unknown_listing_dimension'].containing_oneof = _LISTINGDIMENSIONINFO.oneofs_by_name['dimension'] -_LISTINGBRANDINFO.fields_by_name['value'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE _HOTELIDINFO.fields_by_name['value'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE _HOTELCLASSINFO.fields_by_name['value'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE _HOTELCOUNTRYREGIONINFO.fields_by_name['country_region_criterion'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE _HOTELSTATEINFO.fields_by_name['state_criterion'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE _HOTELCITYINFO.fields_by_name['city_criterion'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_LISTINGCUSTOMATTRIBUTEINFO.fields_by_name['value'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_LISTINGCUSTOMATTRIBUTEINFO.fields_by_name['index'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_listing__custom__attribute__index__pb2._LISTINGCUSTOMATTRIBUTEINDEXENUM_LISTINGCUSTOMATTRIBUTEINDEX _PRODUCTBIDDINGCATEGORYINFO.fields_by_name['id'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE _PRODUCTBIDDINGCATEGORYINFO.fields_by_name['country_code'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_PRODUCTBIDDINGCATEGORYINFO.fields_by_name['level'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_product__bidding__category__level__pb2._PRODUCTBIDDINGCATEGORYLEVELENUM_PRODUCTBIDDINGCATEGORYLEVEL -_PRODUCTCHANNELINFO.fields_by_name['channel'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_product__channel__pb2._PRODUCTCHANNELENUM_PRODUCTCHANNEL -_PRODUCTCHANNELEXCLUSIVITYINFO.fields_by_name['channel_exclusivity'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_product__channel__exclusivity__pb2._PRODUCTCHANNELEXCLUSIVITYENUM_PRODUCTCHANNELEXCLUSIVITY -_PRODUCTCONDITIONINFO.fields_by_name['condition'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_product__condition__pb2._PRODUCTCONDITIONENUM_PRODUCTCONDITION +_PRODUCTBIDDINGCATEGORYINFO.fields_by_name['level'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_product__bidding__category__level__pb2._PRODUCTBIDDINGCATEGORYLEVELENUM_PRODUCTBIDDINGCATEGORYLEVEL +_PRODUCTBRANDINFO.fields_by_name['value'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_PRODUCTCHANNELINFO.fields_by_name['channel'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_product__channel__pb2._PRODUCTCHANNELENUM_PRODUCTCHANNEL +_PRODUCTCHANNELEXCLUSIVITYINFO.fields_by_name['channel_exclusivity'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_product__channel__exclusivity__pb2._PRODUCTCHANNELEXCLUSIVITYENUM_PRODUCTCHANNELEXCLUSIVITY +_PRODUCTCONDITIONINFO.fields_by_name['condition'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_product__condition__pb2._PRODUCTCONDITIONENUM_PRODUCTCONDITION +_PRODUCTCUSTOMATTRIBUTEINFO.fields_by_name['value'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_PRODUCTCUSTOMATTRIBUTEINFO.fields_by_name['index'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_product__custom__attribute__index__pb2._PRODUCTCUSTOMATTRIBUTEINDEXENUM_PRODUCTCUSTOMATTRIBUTEINDEX _PRODUCTITEMIDINFO.fields_by_name['value'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE _PRODUCTTYPEINFO.fields_by_name['value'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_PRODUCTTYPEINFO.fields_by_name['level'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_product__type__level__pb2._PRODUCTTYPELEVELENUM_PRODUCTTYPELEVEL -_HOTELDATESELECTIONTYPEINFO.fields_by_name['type'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_hotel__date__selection__type__pb2._HOTELDATESELECTIONTYPEENUM_HOTELDATESELECTIONTYPE +_PRODUCTTYPEINFO.fields_by_name['level'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_product__type__level__pb2._PRODUCTTYPELEVELENUM_PRODUCTTYPELEVEL +_HOTELDATESELECTIONTYPEINFO.fields_by_name['type'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_hotel__date__selection__type__pb2._HOTELDATESELECTIONTYPEENUM_HOTELDATESELECTIONTYPE _HOTELADVANCEBOOKINGWINDOWINFO.fields_by_name['min_days'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE _HOTELADVANCEBOOKINGWINDOWINFO.fields_by_name['max_days'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE _HOTELLENGTHOFSTAYINFO.fields_by_name['min_nights'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE _HOTELLENGTHOFSTAYINFO.fields_by_name['max_nights'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -_HOTELCHECKINDAYINFO.fields_by_name['day_of_week'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_day__of__week__pb2._DAYOFWEEKENUM_DAYOFWEEK -_INTERACTIONTYPEINFO.fields_by_name['type'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_interaction__type__pb2._INTERACTIONTYPEENUM_INTERACTIONTYPE -_ADSCHEDULEINFO.fields_by_name['start_minute'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_minute__of__hour__pb2._MINUTEOFHOURENUM_MINUTEOFHOUR -_ADSCHEDULEINFO.fields_by_name['end_minute'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_minute__of__hour__pb2._MINUTEOFHOURENUM_MINUTEOFHOUR +_HOTELCHECKINDAYINFO.fields_by_name['day_of_week'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_day__of__week__pb2._DAYOFWEEKENUM_DAYOFWEEK +_INTERACTIONTYPEINFO.fields_by_name['type'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_interaction__type__pb2._INTERACTIONTYPEENUM_INTERACTIONTYPE +_ADSCHEDULEINFO.fields_by_name['start_minute'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_minute__of__hour__pb2._MINUTEOFHOURENUM_MINUTEOFHOUR +_ADSCHEDULEINFO.fields_by_name['end_minute'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_minute__of__hour__pb2._MINUTEOFHOURENUM_MINUTEOFHOUR _ADSCHEDULEINFO.fields_by_name['start_hour'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT32VALUE _ADSCHEDULEINFO.fields_by_name['end_hour'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT32VALUE -_ADSCHEDULEINFO.fields_by_name['day_of_week'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_day__of__week__pb2._DAYOFWEEKENUM_DAYOFWEEK -_AGERANGEINFO.fields_by_name['type'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_age__range__type__pb2._AGERANGETYPEENUM_AGERANGETYPE -_GENDERINFO.fields_by_name['type'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_gender__type__pb2._GENDERTYPEENUM_GENDERTYPE -_INCOMERANGEINFO.fields_by_name['type'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_income__range__type__pb2._INCOMERANGETYPEENUM_INCOMERANGETYPE -_PARENTALSTATUSINFO.fields_by_name['type'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_parental__status__type__pb2._PARENTALSTATUSTYPEENUM_PARENTALSTATUSTYPE +_ADSCHEDULEINFO.fields_by_name['day_of_week'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_day__of__week__pb2._DAYOFWEEKENUM_DAYOFWEEK +_AGERANGEINFO.fields_by_name['type'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_age__range__type__pb2._AGERANGETYPEENUM_AGERANGETYPE +_GENDERINFO.fields_by_name['type'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_gender__type__pb2._GENDERTYPEENUM_GENDERTYPE +_INCOMERANGEINFO.fields_by_name['type'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_income__range__type__pb2._INCOMERANGETYPEENUM_INCOMERANGETYPE +_PARENTALSTATUSINFO.fields_by_name['type'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_parental__status__type__pb2._PARENTALSTATUSTYPEENUM_PARENTALSTATUSTYPE _YOUTUBEVIDEOINFO.fields_by_name['video_id'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE _YOUTUBECHANNELINFO.fields_by_name['channel_id'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE _USERLISTINFO.fields_by_name['user_list'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE _PROXIMITYINFO.fields_by_name['geo_point'].message_type = _GEOPOINTINFO _PROXIMITYINFO.fields_by_name['radius'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE -_PROXIMITYINFO.fields_by_name['radius_units'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_proximity__radius__units__pb2._PROXIMITYRADIUSUNITSENUM_PROXIMITYRADIUSUNITS +_PROXIMITYINFO.fields_by_name['radius_units'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_proximity__radius__units__pb2._PROXIMITYRADIUSUNITSENUM_PROXIMITYRADIUSUNITS _PROXIMITYINFO.fields_by_name['address'].message_type = _ADDRESSINFO _GEOPOINTINFO.fields_by_name['longitude_in_micro_degrees'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT32VALUE _GEOPOINTINFO.fields_by_name['latitude_in_micro_degrees'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT32VALUE @@ -2152,23 +2152,23 @@ _TOPICINFO.fields_by_name['path'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE _LANGUAGEINFO.fields_by_name['language_constant'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE _IPBLOCKINFO.fields_by_name['ip_address'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_CONTENTLABELINFO.fields_by_name['type'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_content__label__type__pb2._CONTENTLABELTYPEENUM_CONTENTLABELTYPE +_CONTENTLABELINFO.fields_by_name['type'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_content__label__type__pb2._CONTENTLABELTYPEENUM_CONTENTLABELTYPE _CARRIERINFO.fields_by_name['carrier_constant'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE _USERINTERESTINFO.fields_by_name['user_interest_category'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE _WEBPAGEINFO.fields_by_name['criterion_name'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE _WEBPAGEINFO.fields_by_name['conditions'].message_type = _WEBPAGECONDITIONINFO -_WEBPAGECONDITIONINFO.fields_by_name['operand'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_webpage__condition__operand__pb2._WEBPAGECONDITIONOPERANDENUM_WEBPAGECONDITIONOPERAND -_WEBPAGECONDITIONINFO.fields_by_name['operator'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_webpage__condition__operator__pb2._WEBPAGECONDITIONOPERATORENUM_WEBPAGECONDITIONOPERATOR +_WEBPAGECONDITIONINFO.fields_by_name['operand'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_webpage__condition__operand__pb2._WEBPAGECONDITIONOPERANDENUM_WEBPAGECONDITIONOPERAND +_WEBPAGECONDITIONINFO.fields_by_name['operator'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_webpage__condition__operator__pb2._WEBPAGECONDITIONOPERATORENUM_WEBPAGECONDITIONOPERATOR _WEBPAGECONDITIONINFO.fields_by_name['argument'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE _OPERATINGSYSTEMVERSIONINFO.fields_by_name['operating_system_version_constant'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_APPPAYMENTMODELINFO.fields_by_name['type'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_app__payment__model__type__pb2._APPPAYMENTMODELTYPEENUM_APPPAYMENTMODELTYPE +_APPPAYMENTMODELINFO.fields_by_name['type'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_app__payment__model__type__pb2._APPPAYMENTMODELTYPEENUM_APPPAYMENTMODELTYPE _MOBILEDEVICEINFO.fields_by_name['mobile_device_constant'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE _CUSTOMAFFINITYINFO.fields_by_name['custom_affinity'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE _CUSTOMINTENTINFO.fields_by_name['custom_intent'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE _LOCATIONGROUPINFO.fields_by_name['feed'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE _LOCATIONGROUPINFO.fields_by_name['geo_target_constants'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE _LOCATIONGROUPINFO.fields_by_name['radius'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -_LOCATIONGROUPINFO.fields_by_name['radius_units'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_location__group__radius__units__pb2._LOCATIONGROUPRADIUSUNITSENUM_LOCATIONGROUPRADIUSUNITS +_LOCATIONGROUPINFO.fields_by_name['radius_units'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_location__group__radius__units__pb2._LOCATIONGROUPRADIUSUNITSENUM_LOCATIONGROUPRADIUSUNITS DESCRIPTOR.message_types_by_name['KeywordInfo'] = _KEYWORDINFO DESCRIPTOR.message_types_by_name['PlacementInfo'] = _PLACEMENTINFO DESCRIPTOR.message_types_by_name['MobileAppCategoryInfo'] = _MOBILEAPPCATEGORYINFO @@ -2179,17 +2179,17 @@ DESCRIPTOR.message_types_by_name['ListingGroupInfo'] = _LISTINGGROUPINFO DESCRIPTOR.message_types_by_name['ListingScopeInfo'] = _LISTINGSCOPEINFO DESCRIPTOR.message_types_by_name['ListingDimensionInfo'] = _LISTINGDIMENSIONINFO -DESCRIPTOR.message_types_by_name['ListingBrandInfo'] = _LISTINGBRANDINFO DESCRIPTOR.message_types_by_name['HotelIdInfo'] = _HOTELIDINFO DESCRIPTOR.message_types_by_name['HotelClassInfo'] = _HOTELCLASSINFO DESCRIPTOR.message_types_by_name['HotelCountryRegionInfo'] = _HOTELCOUNTRYREGIONINFO DESCRIPTOR.message_types_by_name['HotelStateInfo'] = _HOTELSTATEINFO DESCRIPTOR.message_types_by_name['HotelCityInfo'] = _HOTELCITYINFO -DESCRIPTOR.message_types_by_name['ListingCustomAttributeInfo'] = _LISTINGCUSTOMATTRIBUTEINFO DESCRIPTOR.message_types_by_name['ProductBiddingCategoryInfo'] = _PRODUCTBIDDINGCATEGORYINFO +DESCRIPTOR.message_types_by_name['ProductBrandInfo'] = _PRODUCTBRANDINFO DESCRIPTOR.message_types_by_name['ProductChannelInfo'] = _PRODUCTCHANNELINFO DESCRIPTOR.message_types_by_name['ProductChannelExclusivityInfo'] = _PRODUCTCHANNELEXCLUSIVITYINFO DESCRIPTOR.message_types_by_name['ProductConditionInfo'] = _PRODUCTCONDITIONINFO +DESCRIPTOR.message_types_by_name['ProductCustomAttributeInfo'] = _PRODUCTCUSTOMATTRIBUTEINFO DESCRIPTOR.message_types_by_name['ProductItemIdInfo'] = _PRODUCTITEMIDINFO DESCRIPTOR.message_types_by_name['ProductTypeInfo'] = _PRODUCTTYPEINFO DESCRIPTOR.message_types_by_name['UnknownListingDimensionInfo'] = _UNKNOWNLISTINGDIMENSIONINFO @@ -2227,7 +2227,7 @@ KeywordInfo = _reflection.GeneratedProtocolMessageType('KeywordInfo', (_message.Message,), dict( DESCRIPTOR = _KEYWORDINFO, - __module__ = 'google.ads.googleads_v1.proto.common.criteria_pb2' + __module__ = 'google.ads.googleads_v4.proto.common.criteria_pb2' , __doc__ = """A keyword criterion. @@ -2238,13 +2238,13 @@ match_type: The match type of the keyword. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.KeywordInfo) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.common.KeywordInfo) )) _sym_db.RegisterMessage(KeywordInfo) PlacementInfo = _reflection.GeneratedProtocolMessageType('PlacementInfo', (_message.Message,), dict( DESCRIPTOR = _PLACEMENTINFO, - __module__ = 'google.ads.googleads_v1.proto.common.criteria_pb2' + __module__ = 'google.ads.googleads_v4.proto.common.criteria_pb2' , __doc__ = """A placement criterion. This can be used to modify bids for sites when targeting the content network. @@ -2254,13 +2254,13 @@ url: URL of the placement. For example, "http://www.domain.com". """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.PlacementInfo) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.common.PlacementInfo) )) _sym_db.RegisterMessage(PlacementInfo) MobileAppCategoryInfo = _reflection.GeneratedProtocolMessageType('MobileAppCategoryInfo', (_message.Message,), dict( DESCRIPTOR = _MOBILEAPPCATEGORYINFO, - __module__ = 'google.ads.googleads_v1.proto.common.criteria_pb2' + __module__ = 'google.ads.googleads_v4.proto.common.criteria_pb2' , __doc__ = """A mobile app category criterion. @@ -2269,13 +2269,13 @@ mobile_app_category_constant: The mobile app category constant resource name. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.MobileAppCategoryInfo) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.common.MobileAppCategoryInfo) )) _sym_db.RegisterMessage(MobileAppCategoryInfo) MobileApplicationInfo = _reflection.GeneratedProtocolMessageType('MobileApplicationInfo', (_message.Message,), dict( DESCRIPTOR = _MOBILEAPPLICATIONINFO, - __module__ = 'google.ads.googleads_v1.proto.common.criteria_pb2' + __module__ = 'google.ads.googleads_v4.proto.common.criteria_pb2' , __doc__ = """A mobile application criterion. @@ -2290,24 +2290,25 @@ native to the corresponding platform. For iOS, this native identifier is the 9 digit string that appears at the end of an App Store URL (e.g., "476943146" for "Flood-It! 2" whose App - Store link is http://itunes.apple.com/us/app/flood- - it!-2/id476943146). For Android, this native identifier is the - application's package name (e.g., "com.labpixies.colordrips" - for "Color Drips" given Google Play link https://play.google.c - om/store/apps/details?id=com.labpixies.colordrips). A well - formed app id for Google Ads API would thus be "1-476943146" - for iOS and "2-com.labpixies.colordrips" for Android. This - field is required and must be set in CREATE operations. + Store link is "http://itunes.apple.com/us/app/flood- + it!-2/id476943146"). For Android, this native identifier is + the application's package name (e.g., + "com.labpixies.colordrips" for "Color Drips" given Google Play + link "https://play.google.com/store/apps/details?id=com.labpix + ies.colordrips"). A well formed app id for Google Ads API + would thus be "1-476943146" for iOS and + "2-com.labpixies.colordrips" for Android. This field is + required and must be set in CREATE operations. name: Name of this mobile application. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.MobileApplicationInfo) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.common.MobileApplicationInfo) )) _sym_db.RegisterMessage(MobileApplicationInfo) LocationInfo = _reflection.GeneratedProtocolMessageType('LocationInfo', (_message.Message,), dict( DESCRIPTOR = _LOCATIONINFO, - __module__ = 'google.ads.googleads_v1.proto.common.criteria_pb2' + __module__ = 'google.ads.googleads_v4.proto.common.criteria_pb2' , __doc__ = """A location criterion. @@ -2316,13 +2317,13 @@ geo_target_constant: The geo target constant resource name. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.LocationInfo) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.common.LocationInfo) )) _sym_db.RegisterMessage(LocationInfo) DeviceInfo = _reflection.GeneratedProtocolMessageType('DeviceInfo', (_message.Message,), dict( DESCRIPTOR = _DEVICEINFO, - __module__ = 'google.ads.googleads_v1.proto.common.criteria_pb2' + __module__ = 'google.ads.googleads_v4.proto.common.criteria_pb2' , __doc__ = """A device criterion. @@ -2331,13 +2332,13 @@ type: Type of the device. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.DeviceInfo) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.common.DeviceInfo) )) _sym_db.RegisterMessage(DeviceInfo) PreferredContentInfo = _reflection.GeneratedProtocolMessageType('PreferredContentInfo', (_message.Message,), dict( DESCRIPTOR = _PREFERREDCONTENTINFO, - __module__ = 'google.ads.googleads_v1.proto.common.criteria_pb2' + __module__ = 'google.ads.googleads_v4.proto.common.criteria_pb2' , __doc__ = """A preferred content criterion. @@ -2346,13 +2347,13 @@ type: Type of the preferred content. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.PreferredContentInfo) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.common.PreferredContentInfo) )) _sym_db.RegisterMessage(PreferredContentInfo) ListingGroupInfo = _reflection.GeneratedProtocolMessageType('ListingGroupInfo', (_message.Message,), dict( DESCRIPTOR = _LISTINGGROUPINFO, - __module__ = 'google.ads.googleads_v1.proto.common.criteria_pb2' + __module__ = 'google.ads.googleads_v4.proto.common.criteria_pb2' , __doc__ = """A listing group criterion. @@ -2367,13 +2368,13 @@ Resource name of ad group criterion which is the parent listing group subdivision. Null for the root group. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.ListingGroupInfo) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.common.ListingGroupInfo) )) _sym_db.RegisterMessage(ListingGroupInfo) ListingScopeInfo = _reflection.GeneratedProtocolMessageType('ListingScopeInfo', (_message.Message,), dict( DESCRIPTOR = _LISTINGSCOPEINFO, - __module__ = 'google.ads.googleads_v1.proto.common.criteria_pb2' + __module__ = 'google.ads.googleads_v4.proto.common.criteria_pb2' , __doc__ = """A listing scope criterion. @@ -2382,13 +2383,13 @@ dimensions: Scope of the campaign criterion. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.ListingScopeInfo) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.common.ListingScopeInfo) )) _sym_db.RegisterMessage(ListingScopeInfo) ListingDimensionInfo = _reflection.GeneratedProtocolMessageType('ListingDimensionInfo', (_message.Message,), dict( DESCRIPTOR = _LISTINGDIMENSIONINFO, - __module__ = 'google.ads.googleads_v1.proto.common.criteria_pb2' + __module__ = 'google.ads.googleads_v4.proto.common.criteria_pb2' , __doc__ = """Listing dimensions for listing group criterion. @@ -2396,8 +2397,6 @@ Attributes: dimension: Dimension of one of the types below is always present. - listing_brand: - Brand of the listing. hotel_id: Advertiser-specific hotel ID. hotel_class: @@ -2408,16 +2407,18 @@ State the hotel is located in. hotel_city: City the hotel is located in. - listing_custom_attribute: - Listing custom attribute. product_bidding_category: Bidding category of a product offer. + product_brand: + Brand of a product offer. product_channel: Locality of a product offer. product_channel_exclusivity: Availability of a product offer. product_condition: Condition of a product offer. + product_custom_attribute: + Custom attribute of a product offer. product_item_id: Item id of a product offer. product_type: @@ -2425,28 +2426,13 @@ unknown_listing_dimension: Unknown dimension. Set when no other listing dimension is set. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.ListingDimensionInfo) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.common.ListingDimensionInfo) )) _sym_db.RegisterMessage(ListingDimensionInfo) -ListingBrandInfo = _reflection.GeneratedProtocolMessageType('ListingBrandInfo', (_message.Message,), dict( - DESCRIPTOR = _LISTINGBRANDINFO, - __module__ = 'google.ads.googleads_v1.proto.common.criteria_pb2' - , - __doc__ = """Brand of the listing. - - - Attributes: - value: - String value of the listing brand. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.ListingBrandInfo) - )) -_sym_db.RegisterMessage(ListingBrandInfo) - HotelIdInfo = _reflection.GeneratedProtocolMessageType('HotelIdInfo', (_message.Message,), dict( DESCRIPTOR = _HOTELIDINFO, - __module__ = 'google.ads.googleads_v1.proto.common.criteria_pb2' + __module__ = 'google.ads.googleads_v4.proto.common.criteria_pb2' , __doc__ = """Advertiser-specific hotel ID. @@ -2455,13 +2441,13 @@ value: String value of the hotel ID. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.HotelIdInfo) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.common.HotelIdInfo) )) _sym_db.RegisterMessage(HotelIdInfo) HotelClassInfo = _reflection.GeneratedProtocolMessageType('HotelClassInfo', (_message.Message,), dict( DESCRIPTOR = _HOTELCLASSINFO, - __module__ = 'google.ads.googleads_v1.proto.common.criteria_pb2' + __module__ = 'google.ads.googleads_v4.proto.common.criteria_pb2' , __doc__ = """Class of the hotel as a number of stars 1 to 5. @@ -2470,13 +2456,13 @@ value: Long value of the hotel class. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.HotelClassInfo) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.common.HotelClassInfo) )) _sym_db.RegisterMessage(HotelClassInfo) HotelCountryRegionInfo = _reflection.GeneratedProtocolMessageType('HotelCountryRegionInfo', (_message.Message,), dict( DESCRIPTOR = _HOTELCOUNTRYREGIONINFO, - __module__ = 'google.ads.googleads_v1.proto.common.criteria_pb2' + __module__ = 'google.ads.googleads_v4.proto.common.criteria_pb2' , __doc__ = """Country or Region the hotel is located in. @@ -2485,13 +2471,13 @@ country_region_criterion: The Geo Target Constant resource name. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.HotelCountryRegionInfo) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.common.HotelCountryRegionInfo) )) _sym_db.RegisterMessage(HotelCountryRegionInfo) HotelStateInfo = _reflection.GeneratedProtocolMessageType('HotelStateInfo', (_message.Message,), dict( DESCRIPTOR = _HOTELSTATEINFO, - __module__ = 'google.ads.googleads_v1.proto.common.criteria_pb2' + __module__ = 'google.ads.googleads_v4.proto.common.criteria_pb2' , __doc__ = """State the hotel is located in. @@ -2500,13 +2486,13 @@ state_criterion: The Geo Target Constant resource name. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.HotelStateInfo) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.common.HotelStateInfo) )) _sym_db.RegisterMessage(HotelStateInfo) HotelCityInfo = _reflection.GeneratedProtocolMessageType('HotelCityInfo', (_message.Message,), dict( DESCRIPTOR = _HOTELCITYINFO, - __module__ = 'google.ads.googleads_v1.proto.common.criteria_pb2' + __module__ = 'google.ads.googleads_v4.proto.common.criteria_pb2' , __doc__ = """City the hotel is located in. @@ -2515,30 +2501,13 @@ city_criterion: The Geo Target Constant resource name. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.HotelCityInfo) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.common.HotelCityInfo) )) _sym_db.RegisterMessage(HotelCityInfo) -ListingCustomAttributeInfo = _reflection.GeneratedProtocolMessageType('ListingCustomAttributeInfo', (_message.Message,), dict( - DESCRIPTOR = _LISTINGCUSTOMATTRIBUTEINFO, - __module__ = 'google.ads.googleads_v1.proto.common.criteria_pb2' - , - __doc__ = """Listing custom attribute. - - - Attributes: - value: - String value of the listing custom attribute. - index: - Indicates the index of the custom attribute. - """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.ListingCustomAttributeInfo) - )) -_sym_db.RegisterMessage(ListingCustomAttributeInfo) - ProductBiddingCategoryInfo = _reflection.GeneratedProtocolMessageType('ProductBiddingCategoryInfo', (_message.Message,), dict( DESCRIPTOR = _PRODUCTBIDDINGCATEGORYINFO, - __module__ = 'google.ads.googleads_v1.proto.common.criteria_pb2' + __module__ = 'google.ads.googleads_v4.proto.common.criteria_pb2' , __doc__ = """Bidding category of a product offer. @@ -2547,7 +2516,7 @@ id: ID of the product bidding category. This ID is equivalent to the google\_product\_category ID as described in this article: - https://support.google.com/merchants/answer/6324436. + https://support.google.com/merchants/answer/6324436 country_code: Two-letter upper-case country code of the product bidding category. It must match the @@ -2555,13 +2524,28 @@ level: Level of the product bidding category. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.ProductBiddingCategoryInfo) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.common.ProductBiddingCategoryInfo) )) _sym_db.RegisterMessage(ProductBiddingCategoryInfo) +ProductBrandInfo = _reflection.GeneratedProtocolMessageType('ProductBrandInfo', (_message.Message,), dict( + DESCRIPTOR = _PRODUCTBRANDINFO, + __module__ = 'google.ads.googleads_v4.proto.common.criteria_pb2' + , + __doc__ = """Brand of the product. + + + Attributes: + value: + String value of the product brand. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.common.ProductBrandInfo) + )) +_sym_db.RegisterMessage(ProductBrandInfo) + ProductChannelInfo = _reflection.GeneratedProtocolMessageType('ProductChannelInfo', (_message.Message,), dict( DESCRIPTOR = _PRODUCTCHANNELINFO, - __module__ = 'google.ads.googleads_v1.proto.common.criteria_pb2' + __module__ = 'google.ads.googleads_v4.proto.common.criteria_pb2' , __doc__ = """Locality of a product offer. @@ -2570,13 +2554,13 @@ channel: Value of the locality. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.ProductChannelInfo) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.common.ProductChannelInfo) )) _sym_db.RegisterMessage(ProductChannelInfo) ProductChannelExclusivityInfo = _reflection.GeneratedProtocolMessageType('ProductChannelExclusivityInfo', (_message.Message,), dict( DESCRIPTOR = _PRODUCTCHANNELEXCLUSIVITYINFO, - __module__ = 'google.ads.googleads_v1.proto.common.criteria_pb2' + __module__ = 'google.ads.googleads_v4.proto.common.criteria_pb2' , __doc__ = """Availability of a product offer. @@ -2585,13 +2569,13 @@ channel_exclusivity: Value of the availability. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.ProductChannelExclusivityInfo) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.common.ProductChannelExclusivityInfo) )) _sym_db.RegisterMessage(ProductChannelExclusivityInfo) ProductConditionInfo = _reflection.GeneratedProtocolMessageType('ProductConditionInfo', (_message.Message,), dict( DESCRIPTOR = _PRODUCTCONDITIONINFO, - __module__ = 'google.ads.googleads_v1.proto.common.criteria_pb2' + __module__ = 'google.ads.googleads_v4.proto.common.criteria_pb2' , __doc__ = """Condition of a product offer. @@ -2600,13 +2584,30 @@ condition: Value of the condition. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.ProductConditionInfo) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.common.ProductConditionInfo) )) _sym_db.RegisterMessage(ProductConditionInfo) +ProductCustomAttributeInfo = _reflection.GeneratedProtocolMessageType('ProductCustomAttributeInfo', (_message.Message,), dict( + DESCRIPTOR = _PRODUCTCUSTOMATTRIBUTEINFO, + __module__ = 'google.ads.googleads_v4.proto.common.criteria_pb2' + , + __doc__ = """Custom attribute of a product offer. + + + Attributes: + value: + String value of the product custom attribute. + index: + Indicates the index of the custom attribute. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.common.ProductCustomAttributeInfo) + )) +_sym_db.RegisterMessage(ProductCustomAttributeInfo) + ProductItemIdInfo = _reflection.GeneratedProtocolMessageType('ProductItemIdInfo', (_message.Message,), dict( DESCRIPTOR = _PRODUCTITEMIDINFO, - __module__ = 'google.ads.googleads_v1.proto.common.criteria_pb2' + __module__ = 'google.ads.googleads_v4.proto.common.criteria_pb2' , __doc__ = """Item id of a product offer. @@ -2615,13 +2616,13 @@ value: Value of the id. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.ProductItemIdInfo) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.common.ProductItemIdInfo) )) _sym_db.RegisterMessage(ProductItemIdInfo) ProductTypeInfo = _reflection.GeneratedProtocolMessageType('ProductTypeInfo', (_message.Message,), dict( DESCRIPTOR = _PRODUCTTYPEINFO, - __module__ = 'google.ads.googleads_v1.proto.common.criteria_pb2' + __module__ = 'google.ads.googleads_v4.proto.common.criteria_pb2' , __doc__ = """Type of a product offer. @@ -2632,23 +2633,23 @@ level: Level of the type. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.ProductTypeInfo) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.common.ProductTypeInfo) )) _sym_db.RegisterMessage(ProductTypeInfo) UnknownListingDimensionInfo = _reflection.GeneratedProtocolMessageType('UnknownListingDimensionInfo', (_message.Message,), dict( DESCRIPTOR = _UNKNOWNLISTINGDIMENSIONINFO, - __module__ = 'google.ads.googleads_v1.proto.common.criteria_pb2' + __module__ = 'google.ads.googleads_v4.proto.common.criteria_pb2' , __doc__ = """Unknown listing dimension. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.UnknownListingDimensionInfo) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.common.UnknownListingDimensionInfo) )) _sym_db.RegisterMessage(UnknownListingDimensionInfo) HotelDateSelectionTypeInfo = _reflection.GeneratedProtocolMessageType('HotelDateSelectionTypeInfo', (_message.Message,), dict( DESCRIPTOR = _HOTELDATESELECTIONTYPEINFO, - __module__ = 'google.ads.googleads_v1.proto.common.criteria_pb2' + __module__ = 'google.ads.googleads_v4.proto.common.criteria_pb2' , __doc__ = """Criterion for hotel date selection (default dates vs. user selected). @@ -2657,13 +2658,13 @@ type: Type of the hotel date selection """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.HotelDateSelectionTypeInfo) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.common.HotelDateSelectionTypeInfo) )) _sym_db.RegisterMessage(HotelDateSelectionTypeInfo) HotelAdvanceBookingWindowInfo = _reflection.GeneratedProtocolMessageType('HotelAdvanceBookingWindowInfo', (_message.Message,), dict( DESCRIPTOR = _HOTELADVANCEBOOKINGWINDOWINFO, - __module__ = 'google.ads.googleads_v1.proto.common.criteria_pb2' + __module__ = 'google.ads.googleads_v4.proto.common.criteria_pb2' , __doc__ = """Criterion for number of days prior to the stay the booking is being made. @@ -2675,13 +2676,13 @@ max_days: High end of the number of days prior to the stay. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.HotelAdvanceBookingWindowInfo) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.common.HotelAdvanceBookingWindowInfo) )) _sym_db.RegisterMessage(HotelAdvanceBookingWindowInfo) HotelLengthOfStayInfo = _reflection.GeneratedProtocolMessageType('HotelLengthOfStayInfo', (_message.Message,), dict( DESCRIPTOR = _HOTELLENGTHOFSTAYINFO, - __module__ = 'google.ads.googleads_v1.proto.common.criteria_pb2' + __module__ = 'google.ads.googleads_v4.proto.common.criteria_pb2' , __doc__ = """Criterion for length of hotel stay in nights. @@ -2692,13 +2693,13 @@ max_nights: High end of the number of nights in the stay. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.HotelLengthOfStayInfo) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.common.HotelLengthOfStayInfo) )) _sym_db.RegisterMessage(HotelLengthOfStayInfo) HotelCheckInDayInfo = _reflection.GeneratedProtocolMessageType('HotelCheckInDayInfo', (_message.Message,), dict( DESCRIPTOR = _HOTELCHECKINDAYINFO, - __module__ = 'google.ads.googleads_v1.proto.common.criteria_pb2' + __module__ = 'google.ads.googleads_v4.proto.common.criteria_pb2' , __doc__ = """Criterion for day of the week the booking is for. @@ -2707,13 +2708,13 @@ day_of_week: The day of the week. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.HotelCheckInDayInfo) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.common.HotelCheckInDayInfo) )) _sym_db.RegisterMessage(HotelCheckInDayInfo) InteractionTypeInfo = _reflection.GeneratedProtocolMessageType('InteractionTypeInfo', (_message.Message,), dict( DESCRIPTOR = _INTERACTIONTYPEINFO, - __module__ = 'google.ads.googleads_v1.proto.common.criteria_pb2' + __module__ = 'google.ads.googleads_v4.proto.common.criteria_pb2' , __doc__ = """Criterion for Interaction Type. @@ -2722,13 +2723,13 @@ type: The interaction type. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.InteractionTypeInfo) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.common.InteractionTypeInfo) )) _sym_db.RegisterMessage(InteractionTypeInfo) AdScheduleInfo = _reflection.GeneratedProtocolMessageType('AdScheduleInfo', (_message.Message,), dict( DESCRIPTOR = _ADSCHEDULEINFO, - __module__ = 'google.ads.googleads_v1.proto.common.criteria_pb2' + __module__ = 'google.ads.googleads_v4.proto.common.criteria_pb2' , __doc__ = """Represents an AdSchedule criterion. @@ -2762,13 +2763,13 @@ required for CREATE operations and is prohibited on UPDATE operations. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.AdScheduleInfo) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.common.AdScheduleInfo) )) _sym_db.RegisterMessage(AdScheduleInfo) AgeRangeInfo = _reflection.GeneratedProtocolMessageType('AgeRangeInfo', (_message.Message,), dict( DESCRIPTOR = _AGERANGEINFO, - __module__ = 'google.ads.googleads_v1.proto.common.criteria_pb2' + __module__ = 'google.ads.googleads_v4.proto.common.criteria_pb2' , __doc__ = """An age range criterion. @@ -2777,13 +2778,13 @@ type: Type of the age range. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.AgeRangeInfo) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.common.AgeRangeInfo) )) _sym_db.RegisterMessage(AgeRangeInfo) GenderInfo = _reflection.GeneratedProtocolMessageType('GenderInfo', (_message.Message,), dict( DESCRIPTOR = _GENDERINFO, - __module__ = 'google.ads.googleads_v1.proto.common.criteria_pb2' + __module__ = 'google.ads.googleads_v4.proto.common.criteria_pb2' , __doc__ = """A gender criterion. @@ -2792,13 +2793,13 @@ type: Type of the gender. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.GenderInfo) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.common.GenderInfo) )) _sym_db.RegisterMessage(GenderInfo) IncomeRangeInfo = _reflection.GeneratedProtocolMessageType('IncomeRangeInfo', (_message.Message,), dict( DESCRIPTOR = _INCOMERANGEINFO, - __module__ = 'google.ads.googleads_v1.proto.common.criteria_pb2' + __module__ = 'google.ads.googleads_v4.proto.common.criteria_pb2' , __doc__ = """An income range criterion. @@ -2807,13 +2808,13 @@ type: Type of the income range. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.IncomeRangeInfo) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.common.IncomeRangeInfo) )) _sym_db.RegisterMessage(IncomeRangeInfo) ParentalStatusInfo = _reflection.GeneratedProtocolMessageType('ParentalStatusInfo', (_message.Message,), dict( DESCRIPTOR = _PARENTALSTATUSINFO, - __module__ = 'google.ads.googleads_v1.proto.common.criteria_pb2' + __module__ = 'google.ads.googleads_v4.proto.common.criteria_pb2' , __doc__ = """A parental status criterion. @@ -2822,13 +2823,13 @@ type: Type of the parental status. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.ParentalStatusInfo) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.common.ParentalStatusInfo) )) _sym_db.RegisterMessage(ParentalStatusInfo) YouTubeVideoInfo = _reflection.GeneratedProtocolMessageType('YouTubeVideoInfo', (_message.Message,), dict( DESCRIPTOR = _YOUTUBEVIDEOINFO, - __module__ = 'google.ads.googleads_v1.proto.common.criteria_pb2' + __module__ = 'google.ads.googleads_v4.proto.common.criteria_pb2' , __doc__ = """A YouTube Video criterion. @@ -2837,13 +2838,13 @@ video_id: YouTube video id as it appears on the YouTube watch page. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.YouTubeVideoInfo) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.common.YouTubeVideoInfo) )) _sym_db.RegisterMessage(YouTubeVideoInfo) YouTubeChannelInfo = _reflection.GeneratedProtocolMessageType('YouTubeChannelInfo', (_message.Message,), dict( DESCRIPTOR = _YOUTUBECHANNELINFO, - __module__ = 'google.ads.googleads_v1.proto.common.criteria_pb2' + __module__ = 'google.ads.googleads_v4.proto.common.criteria_pb2' , __doc__ = """A YouTube Channel criterion. @@ -2853,13 +2854,13 @@ The YouTube uploader channel id or the channel code of a YouTube channel. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.YouTubeChannelInfo) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.common.YouTubeChannelInfo) )) _sym_db.RegisterMessage(YouTubeChannelInfo) UserListInfo = _reflection.GeneratedProtocolMessageType('UserListInfo', (_message.Message,), dict( DESCRIPTOR = _USERLISTINFO, - __module__ = 'google.ads.googleads_v1.proto.common.criteria_pb2' + __module__ = 'google.ads.googleads_v4.proto.common.criteria_pb2' , __doc__ = """A User List criterion. Represents a user list that is defined by the advertiser to be targeted. @@ -2869,13 +2870,13 @@ user_list: The User List resource name. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.UserListInfo) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.common.UserListInfo) )) _sym_db.RegisterMessage(UserListInfo) ProximityInfo = _reflection.GeneratedProtocolMessageType('ProximityInfo', (_message.Message,), dict( DESCRIPTOR = _PROXIMITYINFO, - __module__ = 'google.ads.googleads_v1.proto.common.criteria_pb2' + __module__ = 'google.ads.googleads_v4.proto.common.criteria_pb2' , __doc__ = """A Proximity criterion. The geo point and radius determine what geographical area is included. The address is a description of the geo @@ -2897,13 +2898,13 @@ address: Full address. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.ProximityInfo) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.common.ProximityInfo) )) _sym_db.RegisterMessage(ProximityInfo) GeoPointInfo = _reflection.GeneratedProtocolMessageType('GeoPointInfo', (_message.Message,), dict( DESCRIPTOR = _GEOPOINTINFO, - __module__ = 'google.ads.googleads_v1.proto.common.criteria_pb2' + __module__ = 'google.ads.googleads_v4.proto.common.criteria_pb2' , __doc__ = """Geo point for proximity criterion. @@ -2914,13 +2915,13 @@ latitude_in_micro_degrees: Micro degrees for the latitude. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.GeoPointInfo) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.common.GeoPointInfo) )) _sym_db.RegisterMessage(GeoPointInfo) AddressInfo = _reflection.GeneratedProtocolMessageType('AddressInfo', (_message.Message,), dict( DESCRIPTOR = _ADDRESSINFO, - __module__ = 'google.ads.googleads_v1.proto.common.criteria_pb2' + __module__ = 'google.ads.googleads_v4.proto.common.criteria_pb2' , __doc__ = """Address for proximity criterion. @@ -2943,13 +2944,13 @@ city_name: Name of the city. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.AddressInfo) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.common.AddressInfo) )) _sym_db.RegisterMessage(AddressInfo) TopicInfo = _reflection.GeneratedProtocolMessageType('TopicInfo', (_message.Message,), dict( DESCRIPTOR = _TOPICINFO, - __module__ = 'google.ads.googleads_v1.proto.common.criteria_pb2' + __module__ = 'google.ads.googleads_v4.proto.common.criteria_pb2' , __doc__ = """A topic criterion. Use topics to target or exclude placements in the Google Display Network based on the category into which the placement @@ -2965,13 +2966,13 @@ "Pets & Animals", "Pets", "Dogs" represents the "Pets & Animals/Pets/Dogs" category. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.TopicInfo) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.common.TopicInfo) )) _sym_db.RegisterMessage(TopicInfo) LanguageInfo = _reflection.GeneratedProtocolMessageType('LanguageInfo', (_message.Message,), dict( DESCRIPTOR = _LANGUAGEINFO, - __module__ = 'google.ads.googleads_v1.proto.common.criteria_pb2' + __module__ = 'google.ads.googleads_v4.proto.common.criteria_pb2' , __doc__ = """A language criterion. @@ -2980,13 +2981,13 @@ language_constant: The language constant resource name. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.LanguageInfo) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.common.LanguageInfo) )) _sym_db.RegisterMessage(LanguageInfo) IpBlockInfo = _reflection.GeneratedProtocolMessageType('IpBlockInfo', (_message.Message,), dict( DESCRIPTOR = _IPBLOCKINFO, - __module__ = 'google.ads.googleads_v1.proto.common.criteria_pb2' + __module__ = 'google.ads.googleads_v4.proto.common.criteria_pb2' , __doc__ = """An IpBlock criterion used for IP exclusions. We allow: - IPv4 and IPv6 addresses - individual addresses (192.168.0.1) - masks for individual @@ -2997,13 +2998,13 @@ ip_address: The IP address of this IP block. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.IpBlockInfo) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.common.IpBlockInfo) )) _sym_db.RegisterMessage(IpBlockInfo) ContentLabelInfo = _reflection.GeneratedProtocolMessageType('ContentLabelInfo', (_message.Message,), dict( DESCRIPTOR = _CONTENTLABELINFO, - __module__ = 'google.ads.googleads_v1.proto.common.criteria_pb2' + __module__ = 'google.ads.googleads_v4.proto.common.criteria_pb2' , __doc__ = """Content Label for category exclusion. @@ -3012,13 +3013,13 @@ type: Content label type, required for CREATE operations. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.ContentLabelInfo) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.common.ContentLabelInfo) )) _sym_db.RegisterMessage(ContentLabelInfo) CarrierInfo = _reflection.GeneratedProtocolMessageType('CarrierInfo', (_message.Message,), dict( DESCRIPTOR = _CARRIERINFO, - __module__ = 'google.ads.googleads_v1.proto.common.criteria_pb2' + __module__ = 'google.ads.googleads_v4.proto.common.criteria_pb2' , __doc__ = """Represents a Carrier Criterion. @@ -3027,13 +3028,13 @@ carrier_constant: The Carrier constant resource name. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.CarrierInfo) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.common.CarrierInfo) )) _sym_db.RegisterMessage(CarrierInfo) UserInterestInfo = _reflection.GeneratedProtocolMessageType('UserInterestInfo', (_message.Message,), dict( DESCRIPTOR = _USERINTERESTINFO, - __module__ = 'google.ads.googleads_v1.proto.common.criteria_pb2' + __module__ = 'google.ads.googleads_v4.proto.common.criteria_pb2' , __doc__ = """Represents a particular interest-based topic to be targeted. @@ -3042,13 +3043,13 @@ user_interest_category: The UserInterest resource name. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.UserInterestInfo) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.common.UserInterestInfo) )) _sym_db.RegisterMessage(UserInterestInfo) WebpageInfo = _reflection.GeneratedProtocolMessageType('WebpageInfo', (_message.Message,), dict( DESCRIPTOR = _WEBPAGEINFO, - __module__ = 'google.ads.googleads_v1.proto.common.criteria_pb2' + __module__ = 'google.ads.googleads_v4.proto.common.criteria_pb2' , __doc__ = """Represents a criterion for targeting webpages of an advertiser's website. @@ -3067,13 +3068,13 @@ evaluated for targeting. This field is required for CREATE operations and is prohibited on UPDATE operations. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.WebpageInfo) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.common.WebpageInfo) )) _sym_db.RegisterMessage(WebpageInfo) WebpageConditionInfo = _reflection.GeneratedProtocolMessageType('WebpageConditionInfo', (_message.Message,), dict( DESCRIPTOR = _WEBPAGECONDITIONINFO, - __module__ = 'google.ads.googleads_v1.proto.common.criteria_pb2' + __module__ = 'google.ads.googleads_v4.proto.common.criteria_pb2' , __doc__ = """Logical expression for targeting webpages of an advertiser's website. @@ -3086,13 +3087,13 @@ argument: Argument of webpage targeting condition. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.WebpageConditionInfo) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.common.WebpageConditionInfo) )) _sym_db.RegisterMessage(WebpageConditionInfo) OperatingSystemVersionInfo = _reflection.GeneratedProtocolMessageType('OperatingSystemVersionInfo', (_message.Message,), dict( DESCRIPTOR = _OPERATINGSYSTEMVERSIONINFO, - __module__ = 'google.ads.googleads_v1.proto.common.criteria_pb2' + __module__ = 'google.ads.googleads_v4.proto.common.criteria_pb2' , __doc__ = """Represents an operating system version to be targeted. @@ -3101,13 +3102,13 @@ operating_system_version_constant: The operating system version constant resource name. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.OperatingSystemVersionInfo) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.common.OperatingSystemVersionInfo) )) _sym_db.RegisterMessage(OperatingSystemVersionInfo) AppPaymentModelInfo = _reflection.GeneratedProtocolMessageType('AppPaymentModelInfo', (_message.Message,), dict( DESCRIPTOR = _APPPAYMENTMODELINFO, - __module__ = 'google.ads.googleads_v1.proto.common.criteria_pb2' + __module__ = 'google.ads.googleads_v4.proto.common.criteria_pb2' , __doc__ = """An app payment model criterion. @@ -3116,13 +3117,13 @@ type: Type of the app payment model. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.AppPaymentModelInfo) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.common.AppPaymentModelInfo) )) _sym_db.RegisterMessage(AppPaymentModelInfo) MobileDeviceInfo = _reflection.GeneratedProtocolMessageType('MobileDeviceInfo', (_message.Message,), dict( DESCRIPTOR = _MOBILEDEVICEINFO, - __module__ = 'google.ads.googleads_v1.proto.common.criteria_pb2' + __module__ = 'google.ads.googleads_v4.proto.common.criteria_pb2' , __doc__ = """A mobile device criterion. @@ -3131,13 +3132,13 @@ mobile_device_constant: The mobile device constant resource name. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.MobileDeviceInfo) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.common.MobileDeviceInfo) )) _sym_db.RegisterMessage(MobileDeviceInfo) CustomAffinityInfo = _reflection.GeneratedProtocolMessageType('CustomAffinityInfo', (_message.Message,), dict( DESCRIPTOR = _CUSTOMAFFINITYINFO, - __module__ = 'google.ads.googleads_v1.proto.common.criteria_pb2' + __module__ = 'google.ads.googleads_v4.proto.common.criteria_pb2' , __doc__ = """A custom affinity criterion. A criterion of this type is only targetable. @@ -3147,13 +3148,13 @@ custom_affinity: The CustomInterest resource name. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.CustomAffinityInfo) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.common.CustomAffinityInfo) )) _sym_db.RegisterMessage(CustomAffinityInfo) CustomIntentInfo = _reflection.GeneratedProtocolMessageType('CustomIntentInfo', (_message.Message,), dict( DESCRIPTOR = _CUSTOMINTENTINFO, - __module__ = 'google.ads.googleads_v1.proto.common.criteria_pb2' + __module__ = 'google.ads.googleads_v4.proto.common.criteria_pb2' , __doc__ = """A custom intent criterion. A criterion of this type is only targetable. @@ -3162,13 +3163,13 @@ custom_intent: The CustomInterest resource name. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.CustomIntentInfo) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.common.CustomIntentInfo) )) _sym_db.RegisterMessage(CustomIntentInfo) LocationGroupInfo = _reflection.GeneratedProtocolMessageType('LocationGroupInfo', (_message.Message,), dict( DESCRIPTOR = _LOCATIONGROUPINFO, - __module__ = 'google.ads.googleads_v1.proto.common.criteria_pb2' + __module__ = 'google.ads.googleads_v4.proto.common.criteria_pb2' , __doc__ = """A radius around a list of locations specified via a feed. @@ -3189,7 +3190,7 @@ Unit of the radius, miles and meters supported currently. This is required and must be set in CREATE operations. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.LocationGroupInfo) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.common.LocationGroupInfo) )) _sym_db.RegisterMessage(LocationGroupInfo) diff --git a/google/ads/google_ads/v1/proto/common/criteria_pb2_grpc.py b/google/ads/google_ads/v4/proto/common/criteria_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/common/criteria_pb2_grpc.py rename to google/ads/google_ads/v4/proto/common/criteria_pb2_grpc.py diff --git a/google/ads/google_ads/v1/proto/common/criterion_category_availability_pb2.py b/google/ads/google_ads/v4/proto/common/criterion_category_availability_pb2.py similarity index 76% rename from google/ads/google_ads/v1/proto/common/criterion_category_availability_pb2.py rename to google/ads/google_ads/v4/proto/common/criterion_category_availability_pb2.py index 1c33c9ee2..eedcf5a26 100644 --- a/google/ads/google_ads/v1/proto/common/criterion_category_availability_pb2.py +++ b/google/ads/google_ads/v4/proto/common/criterion_category_availability_pb2.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/common/criterion_category_availability.proto +# source: google/ads/googleads_v4/proto/common/criterion_category_availability.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) @@ -13,42 +13,42 @@ _sym_db = _symbol_database.Default() -from google.ads.google_ads.v1.proto.enums import advertising_channel_sub_type_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_advertising__channel__sub__type__pb2 -from google.ads.google_ads.v1.proto.enums import advertising_channel_type_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_advertising__channel__type__pb2 -from google.ads.google_ads.v1.proto.enums import criterion_category_channel_availability_mode_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_criterion__category__channel__availability__mode__pb2 -from google.ads.google_ads.v1.proto.enums import criterion_category_locale_availability_mode_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_criterion__category__locale__availability__mode__pb2 +from google.ads.google_ads.v4.proto.enums import advertising_channel_sub_type_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_advertising__channel__sub__type__pb2 +from google.ads.google_ads.v4.proto.enums import advertising_channel_type_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_advertising__channel__type__pb2 +from google.ads.google_ads.v4.proto.enums import criterion_category_channel_availability_mode_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_criterion__category__channel__availability__mode__pb2 +from google.ads.google_ads.v4.proto.enums import criterion_category_locale_availability_mode_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_criterion__category__locale__availability__mode__pb2 from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/common/criterion_category_availability.proto', - package='google.ads.googleads.v1.common', + name='google/ads/googleads_v4/proto/common/criterion_category_availability.proto', + package='google.ads.googleads.v4.common', syntax='proto3', - serialized_options=_b('\n\"com.google.ads.googleads.v1.commonB\"CriterionCategoryAvailabilityProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/common;common\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V1.Common\312\002\036Google\\Ads\\GoogleAds\\V1\\Common\352\002\"Google::Ads::GoogleAds::V1::Common'), - serialized_pb=_b('\nJgoogle/ads/googleads_v1/proto/common/criterion_category_availability.proto\x12\x1egoogle.ads.googleads.v1.common\x1a\x46google/ads/googleads_v1/proto/enums/advertising_channel_sub_type.proto\x1a\x42google/ads/googleads_v1/proto/enums/advertising_channel_type.proto\x1aVgoogle/ads/googleads_v1/proto/enums/criterion_category_channel_availability_mode.proto\x1aUgoogle/ads/googleads_v1/proto/enums/criterion_category_locale_availability_mode.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1cgoogle/api/annotations.proto\"\xcb\x01\n\x1d\x43riterionCategoryAvailability\x12U\n\x07\x63hannel\x18\x01 \x01(\x0b\x32\x44.google.ads.googleads.v1.common.CriterionCategoryChannelAvailability\x12S\n\x06locale\x18\x02 \x03(\x0b\x32\x43.google.ads.googleads.v1.common.CriterionCategoryLocaleAvailability\"\xf0\x03\n$CriterionCategoryChannelAvailability\x12\x8f\x01\n\x11\x61vailability_mode\x18\x01 \x01(\x0e\x32t.google.ads.googleads.v1.enums.CriterionCategoryChannelAvailabilityModeEnum.CriterionCategoryChannelAvailabilityMode\x12r\n\x18\x61\x64vertising_channel_type\x18\x02 \x01(\x0e\x32P.google.ads.googleads.v1.enums.AdvertisingChannelTypeEnum.AdvertisingChannelType\x12|\n\x1c\x61\x64vertising_channel_sub_type\x18\x03 \x03(\x0e\x32V.google.ads.googleads.v1.enums.AdvertisingChannelSubTypeEnum.AdvertisingChannelSubType\x12\x44\n include_default_channel_sub_type\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.BoolValue\"\x9e\x02\n#CriterionCategoryLocaleAvailability\x12\x8d\x01\n\x11\x61vailability_mode\x18\x01 \x01(\x0e\x32r.google.ads.googleads.v1.enums.CriterionCategoryLocaleAvailabilityModeEnum.CriterionCategoryLocaleAvailabilityMode\x12\x32\n\x0c\x63ountry_code\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x33\n\rlanguage_code\x18\x03 \x01(\x0b\x32\x1c.google.protobuf.StringValueB\xfd\x01\n\"com.google.ads.googleads.v1.commonB\"CriterionCategoryAvailabilityProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/common;common\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V1.Common\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V1\\Common\xea\x02\"Google::Ads::GoogleAds::V1::Commonb\x06proto3') + serialized_options=_b('\n\"com.google.ads.googleads.v4.commonB\"CriterionCategoryAvailabilityProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/common;common\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V4.Common\312\002\036Google\\Ads\\GoogleAds\\V4\\Common\352\002\"Google::Ads::GoogleAds::V4::Common'), + serialized_pb=_b('\nJgoogle/ads/googleads_v4/proto/common/criterion_category_availability.proto\x12\x1egoogle.ads.googleads.v4.common\x1a\x46google/ads/googleads_v4/proto/enums/advertising_channel_sub_type.proto\x1a\x42google/ads/googleads_v4/proto/enums/advertising_channel_type.proto\x1aVgoogle/ads/googleads_v4/proto/enums/criterion_category_channel_availability_mode.proto\x1aUgoogle/ads/googleads_v4/proto/enums/criterion_category_locale_availability_mode.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1cgoogle/api/annotations.proto\"\xcb\x01\n\x1d\x43riterionCategoryAvailability\x12U\n\x07\x63hannel\x18\x01 \x01(\x0b\x32\x44.google.ads.googleads.v4.common.CriterionCategoryChannelAvailability\x12S\n\x06locale\x18\x02 \x03(\x0b\x32\x43.google.ads.googleads.v4.common.CriterionCategoryLocaleAvailability\"\xf0\x03\n$CriterionCategoryChannelAvailability\x12\x8f\x01\n\x11\x61vailability_mode\x18\x01 \x01(\x0e\x32t.google.ads.googleads.v4.enums.CriterionCategoryChannelAvailabilityModeEnum.CriterionCategoryChannelAvailabilityMode\x12r\n\x18\x61\x64vertising_channel_type\x18\x02 \x01(\x0e\x32P.google.ads.googleads.v4.enums.AdvertisingChannelTypeEnum.AdvertisingChannelType\x12|\n\x1c\x61\x64vertising_channel_sub_type\x18\x03 \x03(\x0e\x32V.google.ads.googleads.v4.enums.AdvertisingChannelSubTypeEnum.AdvertisingChannelSubType\x12\x44\n include_default_channel_sub_type\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.BoolValue\"\x9e\x02\n#CriterionCategoryLocaleAvailability\x12\x8d\x01\n\x11\x61vailability_mode\x18\x01 \x01(\x0e\x32r.google.ads.googleads.v4.enums.CriterionCategoryLocaleAvailabilityModeEnum.CriterionCategoryLocaleAvailabilityMode\x12\x32\n\x0c\x63ountry_code\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x33\n\rlanguage_code\x18\x03 \x01(\x0b\x32\x1c.google.protobuf.StringValueB\xfd\x01\n\"com.google.ads.googleads.v4.commonB\"CriterionCategoryAvailabilityProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/common;common\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V4.Common\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V4\\Common\xea\x02\"Google::Ads::GoogleAds::V4::Commonb\x06proto3') , - dependencies=[google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_advertising__channel__sub__type__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_advertising__channel__type__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_criterion__category__channel__availability__mode__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_criterion__category__locale__availability__mode__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + dependencies=[google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_advertising__channel__sub__type__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_advertising__channel__type__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_criterion__category__channel__availability__mode__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_criterion__category__locale__availability__mode__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) _CRITERIONCATEGORYAVAILABILITY = _descriptor.Descriptor( name='CriterionCategoryAvailability', - full_name='google.ads.googleads.v1.common.CriterionCategoryAvailability', + full_name='google.ads.googleads.v4.common.CriterionCategoryAvailability', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='channel', full_name='google.ads.googleads.v1.common.CriterionCategoryAvailability.channel', index=0, + name='channel', full_name='google.ads.googleads.v4.common.CriterionCategoryAvailability.channel', index=0, number=1, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='locale', full_name='google.ads.googleads.v1.common.CriterionCategoryAvailability.locale', index=1, + name='locale', full_name='google.ads.googleads.v4.common.CriterionCategoryAvailability.locale', index=1, number=2, type=11, cpp_type=10, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, @@ -73,34 +73,34 @@ _CRITERIONCATEGORYCHANNELAVAILABILITY = _descriptor.Descriptor( name='CriterionCategoryChannelAvailability', - full_name='google.ads.googleads.v1.common.CriterionCategoryChannelAvailability', + full_name='google.ads.googleads.v4.common.CriterionCategoryChannelAvailability', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='availability_mode', full_name='google.ads.googleads.v1.common.CriterionCategoryChannelAvailability.availability_mode', index=0, + name='availability_mode', full_name='google.ads.googleads.v4.common.CriterionCategoryChannelAvailability.availability_mode', index=0, number=1, type=14, cpp_type=8, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='advertising_channel_type', full_name='google.ads.googleads.v1.common.CriterionCategoryChannelAvailability.advertising_channel_type', index=1, + name='advertising_channel_type', full_name='google.ads.googleads.v4.common.CriterionCategoryChannelAvailability.advertising_channel_type', index=1, number=2, type=14, cpp_type=8, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='advertising_channel_sub_type', full_name='google.ads.googleads.v1.common.CriterionCategoryChannelAvailability.advertising_channel_sub_type', index=2, + name='advertising_channel_sub_type', full_name='google.ads.googleads.v4.common.CriterionCategoryChannelAvailability.advertising_channel_sub_type', index=2, number=3, type=14, cpp_type=8, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='include_default_channel_sub_type', full_name='google.ads.googleads.v1.common.CriterionCategoryChannelAvailability.include_default_channel_sub_type', index=3, + name='include_default_channel_sub_type', full_name='google.ads.googleads.v4.common.CriterionCategoryChannelAvailability.include_default_channel_sub_type', index=3, number=4, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, @@ -125,27 +125,27 @@ _CRITERIONCATEGORYLOCALEAVAILABILITY = _descriptor.Descriptor( name='CriterionCategoryLocaleAvailability', - full_name='google.ads.googleads.v1.common.CriterionCategoryLocaleAvailability', + full_name='google.ads.googleads.v4.common.CriterionCategoryLocaleAvailability', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='availability_mode', full_name='google.ads.googleads.v1.common.CriterionCategoryLocaleAvailability.availability_mode', index=0, + name='availability_mode', full_name='google.ads.googleads.v4.common.CriterionCategoryLocaleAvailability.availability_mode', index=0, number=1, type=14, cpp_type=8, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='country_code', full_name='google.ads.googleads.v1.common.CriterionCategoryLocaleAvailability.country_code', index=1, + name='country_code', full_name='google.ads.googleads.v4.common.CriterionCategoryLocaleAvailability.country_code', index=1, number=2, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='language_code', full_name='google.ads.googleads.v1.common.CriterionCategoryLocaleAvailability.language_code', index=2, + name='language_code', full_name='google.ads.googleads.v4.common.CriterionCategoryLocaleAvailability.language_code', index=2, number=3, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, @@ -169,11 +169,11 @@ _CRITERIONCATEGORYAVAILABILITY.fields_by_name['channel'].message_type = _CRITERIONCATEGORYCHANNELAVAILABILITY _CRITERIONCATEGORYAVAILABILITY.fields_by_name['locale'].message_type = _CRITERIONCATEGORYLOCALEAVAILABILITY -_CRITERIONCATEGORYCHANNELAVAILABILITY.fields_by_name['availability_mode'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_criterion__category__channel__availability__mode__pb2._CRITERIONCATEGORYCHANNELAVAILABILITYMODEENUM_CRITERIONCATEGORYCHANNELAVAILABILITYMODE -_CRITERIONCATEGORYCHANNELAVAILABILITY.fields_by_name['advertising_channel_type'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_advertising__channel__type__pb2._ADVERTISINGCHANNELTYPEENUM_ADVERTISINGCHANNELTYPE -_CRITERIONCATEGORYCHANNELAVAILABILITY.fields_by_name['advertising_channel_sub_type'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_advertising__channel__sub__type__pb2._ADVERTISINGCHANNELSUBTYPEENUM_ADVERTISINGCHANNELSUBTYPE +_CRITERIONCATEGORYCHANNELAVAILABILITY.fields_by_name['availability_mode'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_criterion__category__channel__availability__mode__pb2._CRITERIONCATEGORYCHANNELAVAILABILITYMODEENUM_CRITERIONCATEGORYCHANNELAVAILABILITYMODE +_CRITERIONCATEGORYCHANNELAVAILABILITY.fields_by_name['advertising_channel_type'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_advertising__channel__type__pb2._ADVERTISINGCHANNELTYPEENUM_ADVERTISINGCHANNELTYPE +_CRITERIONCATEGORYCHANNELAVAILABILITY.fields_by_name['advertising_channel_sub_type'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_advertising__channel__sub__type__pb2._ADVERTISINGCHANNELSUBTYPEENUM_ADVERTISINGCHANNELSUBTYPE _CRITERIONCATEGORYCHANNELAVAILABILITY.fields_by_name['include_default_channel_sub_type'].message_type = google_dot_protobuf_dot_wrappers__pb2._BOOLVALUE -_CRITERIONCATEGORYLOCALEAVAILABILITY.fields_by_name['availability_mode'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_criterion__category__locale__availability__mode__pb2._CRITERIONCATEGORYLOCALEAVAILABILITYMODEENUM_CRITERIONCATEGORYLOCALEAVAILABILITYMODE +_CRITERIONCATEGORYLOCALEAVAILABILITY.fields_by_name['availability_mode'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_criterion__category__locale__availability__mode__pb2._CRITERIONCATEGORYLOCALEAVAILABILITYMODEENUM_CRITERIONCATEGORYLOCALEAVAILABILITYMODE _CRITERIONCATEGORYLOCALEAVAILABILITY.fields_by_name['country_code'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE _CRITERIONCATEGORYLOCALEAVAILABILITY.fields_by_name['language_code'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE DESCRIPTOR.message_types_by_name['CriterionCategoryAvailability'] = _CRITERIONCATEGORYAVAILABILITY @@ -183,7 +183,7 @@ CriterionCategoryAvailability = _reflection.GeneratedProtocolMessageType('CriterionCategoryAvailability', (_message.Message,), dict( DESCRIPTOR = _CRITERIONCATEGORYAVAILABILITY, - __module__ = 'google.ads.googleads_v1.proto.common.criterion_category_availability_pb2' + __module__ = 'google.ads.googleads_v4.proto.common.criterion_category_availability_pb2' , __doc__ = """Information of category availability, per advertising channel. @@ -194,13 +194,13 @@ locale: Locales that are available to the category for the channel. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.CriterionCategoryAvailability) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.common.CriterionCategoryAvailability) )) _sym_db.RegisterMessage(CriterionCategoryAvailability) CriterionCategoryChannelAvailability = _reflection.GeneratedProtocolMessageType('CriterionCategoryChannelAvailability', (_message.Message,), dict( DESCRIPTOR = _CRITERIONCATEGORYCHANNELAVAILABILITY, - __module__ = 'google.ads.googleads_v1.proto.common.criterion_category_availability_pb2' + __module__ = 'google.ads.googleads_v4.proto.common.criterion_category_availability_pb2' , __doc__ = """Information of advertising channel type and subtypes a category is available in. @@ -227,13 +227,13 @@ the default display campaign where channel sub type is not set is not included in this availability configuration. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.CriterionCategoryChannelAvailability) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.common.CriterionCategoryChannelAvailability) )) _sym_db.RegisterMessage(CriterionCategoryChannelAvailability) CriterionCategoryLocaleAvailability = _reflection.GeneratedProtocolMessageType('CriterionCategoryLocaleAvailability', (_message.Message,), dict( DESCRIPTOR = _CRITERIONCATEGORYLOCALEAVAILABILITY, - __module__ = 'google.ads.googleads_v1.proto.common.criterion_category_availability_pb2' + __module__ = 'google.ads.googleads_v4.proto.common.criterion_category_availability_pb2' , __doc__ = """Information about which locales a category is available in. @@ -250,7 +250,7 @@ language_code: Code of the language. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.CriterionCategoryLocaleAvailability) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.common.CriterionCategoryLocaleAvailability) )) _sym_db.RegisterMessage(CriterionCategoryLocaleAvailability) diff --git a/google/ads/google_ads/v1/proto/common/criterion_category_availability_pb2_grpc.py b/google/ads/google_ads/v4/proto/common/criterion_category_availability_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/common/criterion_category_availability_pb2_grpc.py rename to google/ads/google_ads/v4/proto/common/criterion_category_availability_pb2_grpc.py diff --git a/google/ads/google_ads/v4/proto/common/custom_parameter_pb2.py b/google/ads/google_ads/v4/proto/common/custom_parameter_pb2.py new file mode 100644 index 000000000..e5404ba5e --- /dev/null +++ b/google/ads/google_ads/v4/proto/common/custom_parameter_pb2.py @@ -0,0 +1,94 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/common/custom_parameter.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/common/custom_parameter.proto', + package='google.ads.googleads.v4.common', + syntax='proto3', + serialized_options=_b('\n\"com.google.ads.googleads.v4.commonB\024CustomParameterProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/common;common\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V4.Common\312\002\036Google\\Ads\\GoogleAds\\V4\\Common\352\002\"Google::Ads::GoogleAds::V4::Common'), + serialized_pb=_b('\n;google/ads/googleads_v4/proto/common/custom_parameter.proto\x12\x1egoogle.ads.googleads.v4.common\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1cgoogle/api/annotations.proto\"i\n\x0f\x43ustomParameter\x12)\n\x03key\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12+\n\x05value\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValueB\xef\x01\n\"com.google.ads.googleads.v4.commonB\x14\x43ustomParameterProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/common;common\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V4.Common\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V4\\Common\xea\x02\"Google::Ads::GoogleAds::V4::Commonb\x06proto3') + , + dependencies=[google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + + +_CUSTOMPARAMETER = _descriptor.Descriptor( + name='CustomParameter', + full_name='google.ads.googleads.v4.common.CustomParameter', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='key', full_name='google.ads.googleads.v4.common.CustomParameter.key', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='value', full_name='google.ads.googleads.v4.common.CustomParameter.value', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=157, + serialized_end=262, +) + +_CUSTOMPARAMETER.fields_by_name['key'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_CUSTOMPARAMETER.fields_by_name['value'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +DESCRIPTOR.message_types_by_name['CustomParameter'] = _CUSTOMPARAMETER +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +CustomParameter = _reflection.GeneratedProtocolMessageType('CustomParameter', (_message.Message,), dict( + DESCRIPTOR = _CUSTOMPARAMETER, + __module__ = 'google.ads.googleads_v4.proto.common.custom_parameter_pb2' + , + __doc__ = """A mapping that can be used by custom parameter tags in a + ``tracking_url_template``, ``final_urls``, or ``mobile_final_urls``. + + + Attributes: + key: + The key matching the parameter tag name. + value: + The value to be substituted. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.common.CustomParameter) + )) +_sym_db.RegisterMessage(CustomParameter) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/common/custom_parameter_pb2_grpc.py b/google/ads/google_ads/v4/proto/common/custom_parameter_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/common/custom_parameter_pb2_grpc.py rename to google/ads/google_ads/v4/proto/common/custom_parameter_pb2_grpc.py diff --git a/google/ads/google_ads/v4/proto/common/dates_pb2.py b/google/ads/google_ads/v4/proto/common/dates_pb2.py new file mode 100644 index 000000000..e619ad6cb --- /dev/null +++ b/google/ads/google_ads/v4/proto/common/dates_pb2.py @@ -0,0 +1,93 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/common/dates.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/common/dates.proto', + package='google.ads.googleads.v4.common', + syntax='proto3', + serialized_options=_b('\n\"com.google.ads.googleads.v4.commonB\nDatesProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/common;common\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V4.Common\312\002\036Google\\Ads\\GoogleAds\\V4\\Common\352\002\"Google::Ads::GoogleAds::V4::Common'), + serialized_pb=_b('\n0google/ads/googleads_v4/proto/common/dates.proto\x12\x1egoogle.ads.googleads.v4.common\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1cgoogle/api/annotations.proto\"m\n\tDateRange\x12\x30\n\nstart_date\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12.\n\x08\x65nd_date\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValueB\xe5\x01\n\"com.google.ads.googleads.v4.commonB\nDatesProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/common;common\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V4.Common\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V4\\Common\xea\x02\"Google::Ads::GoogleAds::V4::Commonb\x06proto3') + , + dependencies=[google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + + +_DATERANGE = _descriptor.Descriptor( + name='DateRange', + full_name='google.ads.googleads.v4.common.DateRange', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='start_date', full_name='google.ads.googleads.v4.common.DateRange.start_date', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='end_date', full_name='google.ads.googleads.v4.common.DateRange.end_date', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=146, + serialized_end=255, +) + +_DATERANGE.fields_by_name['start_date'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_DATERANGE.fields_by_name['end_date'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +DESCRIPTOR.message_types_by_name['DateRange'] = _DATERANGE +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +DateRange = _reflection.GeneratedProtocolMessageType('DateRange', (_message.Message,), dict( + DESCRIPTOR = _DATERANGE, + __module__ = 'google.ads.googleads_v4.proto.common.dates_pb2' + , + __doc__ = """A date range. + + + Attributes: + start_date: + The start date, in yyyy-mm-dd format. This date is inclusive. + end_date: + The end date, in yyyy-mm-dd format. This date is inclusive. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.common.DateRange) + )) +_sym_db.RegisterMessage(DateRange) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/common/dates_pb2_grpc.py b/google/ads/google_ads/v4/proto/common/dates_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/common/dates_pb2_grpc.py rename to google/ads/google_ads/v4/proto/common/dates_pb2_grpc.py diff --git a/google/ads/google_ads/v4/proto/common/explorer_auto_optimizer_setting_pb2.py b/google/ads/google_ads/v4/proto/common/explorer_auto_optimizer_setting_pb2.py new file mode 100644 index 000000000..d0e3ab92a --- /dev/null +++ b/google/ads/google_ads/v4/proto/common/explorer_auto_optimizer_setting_pb2.py @@ -0,0 +1,85 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/common/explorer_auto_optimizer_setting.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/common/explorer_auto_optimizer_setting.proto', + package='google.ads.googleads.v4.common', + syntax='proto3', + serialized_options=_b('\n\"com.google.ads.googleads.v4.commonB!ExplorerAutoOptimizerSettingProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/common;common\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V4.Common\312\002\036Google\\Ads\\GoogleAds\\V4\\Common\352\002\"Google::Ads::GoogleAds::V4::Common'), + serialized_pb=_b('\nJgoogle/ads/googleads_v4/proto/common/explorer_auto_optimizer_setting.proto\x12\x1egoogle.ads.googleads.v4.common\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1cgoogle/api/annotations.proto\"J\n\x1c\x45xplorerAutoOptimizerSetting\x12*\n\x06opt_in\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.BoolValueB\xfc\x01\n\"com.google.ads.googleads.v4.commonB!ExplorerAutoOptimizerSettingProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/common;common\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V4.Common\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V4\\Common\xea\x02\"Google::Ads::GoogleAds::V4::Commonb\x06proto3') + , + dependencies=[google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + + +_EXPLORERAUTOOPTIMIZERSETTING = _descriptor.Descriptor( + name='ExplorerAutoOptimizerSetting', + full_name='google.ads.googleads.v4.common.ExplorerAutoOptimizerSetting', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='opt_in', full_name='google.ads.googleads.v4.common.ExplorerAutoOptimizerSetting.opt_in', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=172, + serialized_end=246, +) + +_EXPLORERAUTOOPTIMIZERSETTING.fields_by_name['opt_in'].message_type = google_dot_protobuf_dot_wrappers__pb2._BOOLVALUE +DESCRIPTOR.message_types_by_name['ExplorerAutoOptimizerSetting'] = _EXPLORERAUTOOPTIMIZERSETTING +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +ExplorerAutoOptimizerSetting = _reflection.GeneratedProtocolMessageType('ExplorerAutoOptimizerSetting', (_message.Message,), dict( + DESCRIPTOR = _EXPLORERAUTOOPTIMIZERSETTING, + __module__ = 'google.ads.googleads_v4.proto.common.explorer_auto_optimizer_setting_pb2' + , + __doc__ = """Settings for the Display Campaign Optimizer, initially named "Explorer". + Learn more about `automatic + targeting `__. + + + Attributes: + opt_in: + Indicates whether the optimizer is turned on. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.common.ExplorerAutoOptimizerSetting) + )) +_sym_db.RegisterMessage(ExplorerAutoOptimizerSetting) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/common/explorer_auto_optimizer_setting_pb2_grpc.py b/google/ads/google_ads/v4/proto/common/explorer_auto_optimizer_setting_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/common/explorer_auto_optimizer_setting_pb2_grpc.py rename to google/ads/google_ads/v4/proto/common/explorer_auto_optimizer_setting_pb2_grpc.py diff --git a/google/ads/google_ads/v1/proto/common/extensions_pb2.py b/google/ads/google_ads/v4/proto/common/extensions_pb2.py similarity index 80% rename from google/ads/google_ads/v1/proto/common/extensions_pb2.py rename to google/ads/google_ads/v4/proto/common/extensions_pb2.py index ac2b75df1..c29c21cb2 100644 --- a/google/ads/google_ads/v1/proto/common/extensions_pb2.py +++ b/google/ads/google_ads/v4/proto/common/extensions_pb2.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/common/extensions.proto +# source: google/ads/googleads_v4/proto/common/extensions.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) @@ -13,89 +13,89 @@ _sym_db = _symbol_database.Default() -from google.ads.google_ads.v1.proto.common import custom_parameter_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_custom__parameter__pb2 -from google.ads.google_ads.v1.proto.common import feed_common_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_feed__common__pb2 -from google.ads.google_ads.v1.proto.enums import app_store_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_app__store__pb2 -from google.ads.google_ads.v1.proto.enums import call_conversion_reporting_state_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_call__conversion__reporting__state__pb2 -from google.ads.google_ads.v1.proto.enums import price_extension_price_qualifier_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_price__extension__price__qualifier__pb2 -from google.ads.google_ads.v1.proto.enums import price_extension_price_unit_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_price__extension__price__unit__pb2 -from google.ads.google_ads.v1.proto.enums import price_extension_type_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_price__extension__type__pb2 -from google.ads.google_ads.v1.proto.enums import promotion_extension_discount_modifier_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_promotion__extension__discount__modifier__pb2 -from google.ads.google_ads.v1.proto.enums import promotion_extension_occasion_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_promotion__extension__occasion__pb2 +from google.ads.google_ads.v4.proto.common import custom_parameter_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_custom__parameter__pb2 +from google.ads.google_ads.v4.proto.common import feed_common_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_feed__common__pb2 +from google.ads.google_ads.v4.proto.enums import app_store_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_app__store__pb2 +from google.ads.google_ads.v4.proto.enums import call_conversion_reporting_state_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_call__conversion__reporting__state__pb2 +from google.ads.google_ads.v4.proto.enums import price_extension_price_qualifier_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_price__extension__price__qualifier__pb2 +from google.ads.google_ads.v4.proto.enums import price_extension_price_unit_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_price__extension__price__unit__pb2 +from google.ads.google_ads.v4.proto.enums import price_extension_type_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_price__extension__type__pb2 +from google.ads.google_ads.v4.proto.enums import promotion_extension_discount_modifier_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_promotion__extension__discount__modifier__pb2 +from google.ads.google_ads.v4.proto.enums import promotion_extension_occasion_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_promotion__extension__occasion__pb2 from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/common/extensions.proto', - package='google.ads.googleads.v1.common', + name='google/ads/googleads_v4/proto/common/extensions.proto', + package='google.ads.googleads.v4.common', syntax='proto3', - serialized_options=_b('\n\"com.google.ads.googleads.v1.commonB\017ExtensionsProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/common;common\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V1.Common\312\002\036Google\\Ads\\GoogleAds\\V1\\Common\352\002\"Google::Ads::GoogleAds::V1::Common'), - serialized_pb=_b('\n5google/ads/googleads_v1/proto/common/extensions.proto\x12\x1egoogle.ads.googleads.v1.common\x1a;google/ads/googleads_v1/proto/common/custom_parameter.proto\x1a\x36google/ads/googleads_v1/proto/common/feed_common.proto\x1a\x33google/ads/googleads_v1/proto/enums/app_store.proto\x1aIgoogle/ads/googleads_v1/proto/enums/call_conversion_reporting_state.proto\x1aIgoogle/ads/googleads_v1/proto/enums/price_extension_price_qualifier.proto\x1a\x44google/ads/googleads_v1/proto/enums/price_extension_price_unit.proto\x1a>google/ads/googleads_v1/proto/enums/price_extension_type.proto\x1aOgoogle/ads/googleads_v1/proto/enums/promotion_extension_discount_modifier.proto\x1a\x46google/ads/googleads_v1/proto/enums/promotion_extension_occasion.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1cgoogle/api/annotations.proto\"\xe5\x03\n\x0b\x41ppFeedItem\x12/\n\tlink_text\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12,\n\x06\x61pp_id\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12G\n\tapp_store\x18\x03 \x01(\x0e\x32\x34.google.ads.googleads.v1.enums.AppStoreEnum.AppStore\x12\x30\n\nfinal_urls\x18\x04 \x03(\x0b\x32\x1c.google.protobuf.StringValue\x12\x37\n\x11\x66inal_mobile_urls\x18\x05 \x03(\x0b\x32\x1c.google.protobuf.StringValue\x12;\n\x15tracking_url_template\x18\x06 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12N\n\x15url_custom_parameters\x18\x07 \x03(\x0b\x32/.google.ads.googleads.v1.common.CustomParameter\x12\x36\n\x10\x66inal_url_suffix\x18\x08 \x01(\x0b\x32\x1c.google.protobuf.StringValue\"\xbe\x03\n\x0c\x43\x61llFeedItem\x12\x32\n\x0cphone_number\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x32\n\x0c\x63ountry_code\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x39\n\x15\x63\x61ll_tracking_enabled\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.BoolValue\x12<\n\x16\x63\x61ll_conversion_action\x18\x04 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x45\n!call_conversion_tracking_disabled\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.BoolValue\x12\x85\x01\n\x1f\x63\x61ll_conversion_reporting_state\x18\x06 \x01(\x0e\x32\\.google.ads.googleads.v1.enums.CallConversionReportingStateEnum.CallConversionReportingState\"E\n\x0f\x43\x61lloutFeedItem\x12\x32\n\x0c\x63\x61llout_text\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\"\xaa\x03\n\x10LocationFeedItem\x12\x33\n\rbusiness_name\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x34\n\x0e\x61\x64\x64ress_line_1\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x34\n\x0e\x61\x64\x64ress_line_2\x18\x03 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12*\n\x04\x63ity\x18\x04 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12.\n\x08province\x18\x05 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x31\n\x0bpostal_code\x18\x06 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x32\n\x0c\x63ountry_code\x18\x07 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x32\n\x0cphone_number\x18\x08 \x01(\x0b\x32\x1c.google.protobuf.StringValue\"\x94\x04\n\x19\x41\x66\x66iliateLocationFeedItem\x12\x33\n\rbusiness_name\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x34\n\x0e\x61\x64\x64ress_line_1\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x34\n\x0e\x61\x64\x64ress_line_2\x18\x03 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12*\n\x04\x63ity\x18\x04 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12.\n\x08province\x18\x05 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x31\n\x0bpostal_code\x18\x06 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x32\n\x0c\x63ountry_code\x18\x07 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x32\n\x0cphone_number\x18\x08 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12-\n\x08\x63hain_id\x18\t \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x30\n\nchain_name\x18\n \x01(\x0b\x32\x1c.google.protobuf.StringValue\"\x94\x02\n\x13TextMessageFeedItem\x12\x33\n\rbusiness_name\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x32\n\x0c\x63ountry_code\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x32\n\x0cphone_number\x18\x03 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12*\n\x04text\x18\x04 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x34\n\x0e\x65xtension_text\x18\x05 \x01(\x0b\x32\x1c.google.protobuf.StringValue\"\xcd\x03\n\rPriceFeedItem\x12V\n\x04type\x18\x01 \x01(\x0e\x32H.google.ads.googleads.v1.enums.PriceExtensionTypeEnum.PriceExtensionType\x12u\n\x0fprice_qualifier\x18\x02 \x01(\x0e\x32\\.google.ads.googleads.v1.enums.PriceExtensionPriceQualifierEnum.PriceExtensionPriceQualifier\x12;\n\x15tracking_url_template\x18\x03 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x33\n\rlanguage_code\x18\x04 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x43\n\x0fprice_offerings\x18\x05 \x03(\x0b\x32*.google.ads.googleads.v1.common.PriceOffer\x12\x36\n\x10\x66inal_url_suffix\x18\x06 \x01(\x0b\x32\x1c.google.protobuf.StringValue\"\xf0\x02\n\nPriceOffer\x12,\n\x06header\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x31\n\x0b\x64\x65scription\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x34\n\x05price\x18\x03 \x01(\x0b\x32%.google.ads.googleads.v1.common.Money\x12`\n\x04unit\x18\x04 \x01(\x0e\x32R.google.ads.googleads.v1.enums.PriceExtensionPriceUnitEnum.PriceExtensionPriceUnit\x12\x30\n\nfinal_urls\x18\x05 \x03(\x0b\x32\x1c.google.protobuf.StringValue\x12\x37\n\x11\x66inal_mobile_urls\x18\x06 \x03(\x0b\x32\x1c.google.protobuf.StringValue\"\xb2\x08\n\x11PromotionFeedItem\x12\x36\n\x10promotion_target\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x83\x01\n\x11\x64iscount_modifier\x18\x02 \x01(\x0e\x32h.google.ads.googleads.v1.enums.PromotionExtensionDiscountModifierEnum.PromotionExtensionDiscountModifier\x12:\n\x14promotion_start_date\x18\x07 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x38\n\x12promotion_end_date\x18\x08 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12j\n\x08occasion\x18\t \x01(\x0e\x32X.google.ads.googleads.v1.enums.PromotionExtensionOccasionEnum.PromotionExtensionOccasion\x12\x30\n\nfinal_urls\x18\n \x03(\x0b\x32\x1c.google.protobuf.StringValue\x12\x37\n\x11\x66inal_mobile_urls\x18\x0b \x03(\x0b\x32\x1c.google.protobuf.StringValue\x12;\n\x15tracking_url_template\x18\x0c \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12N\n\x15url_custom_parameters\x18\r \x03(\x0b\x32/.google.ads.googleads.v1.common.CustomParameter\x12\x36\n\x10\x66inal_url_suffix\x18\x0e \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x33\n\rlanguage_code\x18\x0f \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x32\n\x0bpercent_off\x18\x03 \x01(\x0b\x32\x1b.google.protobuf.Int64ValueH\x00\x12\x41\n\x10money_amount_off\x18\x04 \x01(\x0b\x32%.google.ads.googleads.v1.common.MoneyH\x00\x12\x36\n\x0epromotion_code\x18\x05 \x01(\x0b\x32\x1c.google.protobuf.StringValueH\x01\x12\x43\n\x12orders_over_amount\x18\x06 \x01(\x0b\x32%.google.ads.googleads.v1.common.MoneyH\x01\x42\x0f\n\rdiscount_typeB\x13\n\x11promotion_trigger\"w\n\x19StructuredSnippetFeedItem\x12,\n\x06header\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12,\n\x06values\x18\x02 \x03(\x0b\x32\x1c.google.protobuf.StringValue\"\xcd\x03\n\x10SitelinkFeedItem\x12/\n\tlink_text\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12+\n\x05line1\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12+\n\x05line2\x18\x03 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x30\n\nfinal_urls\x18\x04 \x03(\x0b\x32\x1c.google.protobuf.StringValue\x12\x37\n\x11\x66inal_mobile_urls\x18\x05 \x03(\x0b\x32\x1c.google.protobuf.StringValue\x12;\n\x15tracking_url_template\x18\x06 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12N\n\x15url_custom_parameters\x18\x07 \x03(\x0b\x32/.google.ads.googleads.v1.common.CustomParameter\x12\x36\n\x10\x66inal_url_suffix\x18\x08 \x01(\x0b\x32\x1c.google.protobuf.StringValueB\xea\x01\n\"com.google.ads.googleads.v1.commonB\x0f\x45xtensionsProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/common;common\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V1.Common\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V1\\Common\xea\x02\"Google::Ads::GoogleAds::V1::Commonb\x06proto3') + serialized_options=_b('\n\"com.google.ads.googleads.v4.commonB\017ExtensionsProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/common;common\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V4.Common\312\002\036Google\\Ads\\GoogleAds\\V4\\Common\352\002\"Google::Ads::GoogleAds::V4::Common'), + serialized_pb=_b('\n5google/ads/googleads_v4/proto/common/extensions.proto\x12\x1egoogle.ads.googleads.v4.common\x1a;google/ads/googleads_v4/proto/common/custom_parameter.proto\x1a\x36google/ads/googleads_v4/proto/common/feed_common.proto\x1a\x33google/ads/googleads_v4/proto/enums/app_store.proto\x1aIgoogle/ads/googleads_v4/proto/enums/call_conversion_reporting_state.proto\x1aIgoogle/ads/googleads_v4/proto/enums/price_extension_price_qualifier.proto\x1a\x44google/ads/googleads_v4/proto/enums/price_extension_price_unit.proto\x1a>google/ads/googleads_v4/proto/enums/price_extension_type.proto\x1aOgoogle/ads/googleads_v4/proto/enums/promotion_extension_discount_modifier.proto\x1a\x46google/ads/googleads_v4/proto/enums/promotion_extension_occasion.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1cgoogle/api/annotations.proto\"\xe5\x03\n\x0b\x41ppFeedItem\x12/\n\tlink_text\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12,\n\x06\x61pp_id\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12G\n\tapp_store\x18\x03 \x01(\x0e\x32\x34.google.ads.googleads.v4.enums.AppStoreEnum.AppStore\x12\x30\n\nfinal_urls\x18\x04 \x03(\x0b\x32\x1c.google.protobuf.StringValue\x12\x37\n\x11\x66inal_mobile_urls\x18\x05 \x03(\x0b\x32\x1c.google.protobuf.StringValue\x12;\n\x15tracking_url_template\x18\x06 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12N\n\x15url_custom_parameters\x18\x07 \x03(\x0b\x32/.google.ads.googleads.v4.common.CustomParameter\x12\x36\n\x10\x66inal_url_suffix\x18\x08 \x01(\x0b\x32\x1c.google.protobuf.StringValue\"\xbe\x03\n\x0c\x43\x61llFeedItem\x12\x32\n\x0cphone_number\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x32\n\x0c\x63ountry_code\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x39\n\x15\x63\x61ll_tracking_enabled\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.BoolValue\x12<\n\x16\x63\x61ll_conversion_action\x18\x04 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x45\n!call_conversion_tracking_disabled\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.BoolValue\x12\x85\x01\n\x1f\x63\x61ll_conversion_reporting_state\x18\x06 \x01(\x0e\x32\\.google.ads.googleads.v4.enums.CallConversionReportingStateEnum.CallConversionReportingState\"E\n\x0f\x43\x61lloutFeedItem\x12\x32\n\x0c\x63\x61llout_text\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\"\xaa\x03\n\x10LocationFeedItem\x12\x33\n\rbusiness_name\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x34\n\x0e\x61\x64\x64ress_line_1\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x34\n\x0e\x61\x64\x64ress_line_2\x18\x03 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12*\n\x04\x63ity\x18\x04 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12.\n\x08province\x18\x05 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x31\n\x0bpostal_code\x18\x06 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x32\n\x0c\x63ountry_code\x18\x07 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x32\n\x0cphone_number\x18\x08 \x01(\x0b\x32\x1c.google.protobuf.StringValue\"\x94\x04\n\x19\x41\x66\x66iliateLocationFeedItem\x12\x33\n\rbusiness_name\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x34\n\x0e\x61\x64\x64ress_line_1\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x34\n\x0e\x61\x64\x64ress_line_2\x18\x03 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12*\n\x04\x63ity\x18\x04 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12.\n\x08province\x18\x05 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x31\n\x0bpostal_code\x18\x06 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x32\n\x0c\x63ountry_code\x18\x07 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x32\n\x0cphone_number\x18\x08 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12-\n\x08\x63hain_id\x18\t \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x30\n\nchain_name\x18\n \x01(\x0b\x32\x1c.google.protobuf.StringValue\"\x94\x02\n\x13TextMessageFeedItem\x12\x33\n\rbusiness_name\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x32\n\x0c\x63ountry_code\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x32\n\x0cphone_number\x18\x03 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12*\n\x04text\x18\x04 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x34\n\x0e\x65xtension_text\x18\x05 \x01(\x0b\x32\x1c.google.protobuf.StringValue\"\xcd\x03\n\rPriceFeedItem\x12V\n\x04type\x18\x01 \x01(\x0e\x32H.google.ads.googleads.v4.enums.PriceExtensionTypeEnum.PriceExtensionType\x12u\n\x0fprice_qualifier\x18\x02 \x01(\x0e\x32\\.google.ads.googleads.v4.enums.PriceExtensionPriceQualifierEnum.PriceExtensionPriceQualifier\x12;\n\x15tracking_url_template\x18\x03 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x33\n\rlanguage_code\x18\x04 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x43\n\x0fprice_offerings\x18\x05 \x03(\x0b\x32*.google.ads.googleads.v4.common.PriceOffer\x12\x36\n\x10\x66inal_url_suffix\x18\x06 \x01(\x0b\x32\x1c.google.protobuf.StringValue\"\xf0\x02\n\nPriceOffer\x12,\n\x06header\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x31\n\x0b\x64\x65scription\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x34\n\x05price\x18\x03 \x01(\x0b\x32%.google.ads.googleads.v4.common.Money\x12`\n\x04unit\x18\x04 \x01(\x0e\x32R.google.ads.googleads.v4.enums.PriceExtensionPriceUnitEnum.PriceExtensionPriceUnit\x12\x30\n\nfinal_urls\x18\x05 \x03(\x0b\x32\x1c.google.protobuf.StringValue\x12\x37\n\x11\x66inal_mobile_urls\x18\x06 \x03(\x0b\x32\x1c.google.protobuf.StringValue\"\xb2\x08\n\x11PromotionFeedItem\x12\x36\n\x10promotion_target\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x83\x01\n\x11\x64iscount_modifier\x18\x02 \x01(\x0e\x32h.google.ads.googleads.v4.enums.PromotionExtensionDiscountModifierEnum.PromotionExtensionDiscountModifier\x12:\n\x14promotion_start_date\x18\x07 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x38\n\x12promotion_end_date\x18\x08 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12j\n\x08occasion\x18\t \x01(\x0e\x32X.google.ads.googleads.v4.enums.PromotionExtensionOccasionEnum.PromotionExtensionOccasion\x12\x30\n\nfinal_urls\x18\n \x03(\x0b\x32\x1c.google.protobuf.StringValue\x12\x37\n\x11\x66inal_mobile_urls\x18\x0b \x03(\x0b\x32\x1c.google.protobuf.StringValue\x12;\n\x15tracking_url_template\x18\x0c \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12N\n\x15url_custom_parameters\x18\r \x03(\x0b\x32/.google.ads.googleads.v4.common.CustomParameter\x12\x36\n\x10\x66inal_url_suffix\x18\x0e \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x33\n\rlanguage_code\x18\x0f \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x32\n\x0bpercent_off\x18\x03 \x01(\x0b\x32\x1b.google.protobuf.Int64ValueH\x00\x12\x41\n\x10money_amount_off\x18\x04 \x01(\x0b\x32%.google.ads.googleads.v4.common.MoneyH\x00\x12\x36\n\x0epromotion_code\x18\x05 \x01(\x0b\x32\x1c.google.protobuf.StringValueH\x01\x12\x43\n\x12orders_over_amount\x18\x06 \x01(\x0b\x32%.google.ads.googleads.v4.common.MoneyH\x01\x42\x0f\n\rdiscount_typeB\x13\n\x11promotion_trigger\"w\n\x19StructuredSnippetFeedItem\x12,\n\x06header\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12,\n\x06values\x18\x02 \x03(\x0b\x32\x1c.google.protobuf.StringValue\"\xcd\x03\n\x10SitelinkFeedItem\x12/\n\tlink_text\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12+\n\x05line1\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12+\n\x05line2\x18\x03 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x30\n\nfinal_urls\x18\x04 \x03(\x0b\x32\x1c.google.protobuf.StringValue\x12\x37\n\x11\x66inal_mobile_urls\x18\x05 \x03(\x0b\x32\x1c.google.protobuf.StringValue\x12;\n\x15tracking_url_template\x18\x06 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12N\n\x15url_custom_parameters\x18\x07 \x03(\x0b\x32/.google.ads.googleads.v4.common.CustomParameter\x12\x36\n\x10\x66inal_url_suffix\x18\x08 \x01(\x0b\x32\x1c.google.protobuf.StringValue\"w\n\x14HotelCalloutFeedItem\x12*\n\x04text\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x33\n\rlanguage_code\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValueB\xea\x01\n\"com.google.ads.googleads.v4.commonB\x0f\x45xtensionsProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/common;common\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V4.Common\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V4\\Common\xea\x02\"Google::Ads::GoogleAds::V4::Commonb\x06proto3') , - dependencies=[google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_custom__parameter__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_feed__common__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_app__store__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_call__conversion__reporting__state__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_price__extension__price__qualifier__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_price__extension__price__unit__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_price__extension__type__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_promotion__extension__discount__modifier__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_promotion__extension__occasion__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + dependencies=[google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_custom__parameter__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_feed__common__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_app__store__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_call__conversion__reporting__state__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_price__extension__price__qualifier__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_price__extension__price__unit__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_price__extension__type__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_promotion__extension__discount__modifier__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_promotion__extension__occasion__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) _APPFEEDITEM = _descriptor.Descriptor( name='AppFeedItem', - full_name='google.ads.googleads.v1.common.AppFeedItem', + full_name='google.ads.googleads.v4.common.AppFeedItem', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='link_text', full_name='google.ads.googleads.v1.common.AppFeedItem.link_text', index=0, + name='link_text', full_name='google.ads.googleads.v4.common.AppFeedItem.link_text', index=0, number=1, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='app_id', full_name='google.ads.googleads.v1.common.AppFeedItem.app_id', index=1, + name='app_id', full_name='google.ads.googleads.v4.common.AppFeedItem.app_id', index=1, number=2, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='app_store', full_name='google.ads.googleads.v1.common.AppFeedItem.app_store', index=2, + name='app_store', full_name='google.ads.googleads.v4.common.AppFeedItem.app_store', index=2, number=3, type=14, cpp_type=8, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='final_urls', full_name='google.ads.googleads.v1.common.AppFeedItem.final_urls', index=3, + name='final_urls', full_name='google.ads.googleads.v4.common.AppFeedItem.final_urls', index=3, number=4, type=11, cpp_type=10, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='final_mobile_urls', full_name='google.ads.googleads.v1.common.AppFeedItem.final_mobile_urls', index=4, + name='final_mobile_urls', full_name='google.ads.googleads.v4.common.AppFeedItem.final_mobile_urls', index=4, number=5, type=11, cpp_type=10, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='tracking_url_template', full_name='google.ads.googleads.v1.common.AppFeedItem.tracking_url_template', index=5, + name='tracking_url_template', full_name='google.ads.googleads.v4.common.AppFeedItem.tracking_url_template', index=5, number=6, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='url_custom_parameters', full_name='google.ads.googleads.v1.common.AppFeedItem.url_custom_parameters', index=6, + name='url_custom_parameters', full_name='google.ads.googleads.v4.common.AppFeedItem.url_custom_parameters', index=6, number=7, type=11, cpp_type=10, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='final_url_suffix', full_name='google.ads.googleads.v1.common.AppFeedItem.final_url_suffix', index=7, + name='final_url_suffix', full_name='google.ads.googleads.v4.common.AppFeedItem.final_url_suffix', index=7, number=8, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, @@ -120,48 +120,48 @@ _CALLFEEDITEM = _descriptor.Descriptor( name='CallFeedItem', - full_name='google.ads.googleads.v1.common.CallFeedItem', + full_name='google.ads.googleads.v4.common.CallFeedItem', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='phone_number', full_name='google.ads.googleads.v1.common.CallFeedItem.phone_number', index=0, + name='phone_number', full_name='google.ads.googleads.v4.common.CallFeedItem.phone_number', index=0, number=1, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='country_code', full_name='google.ads.googleads.v1.common.CallFeedItem.country_code', index=1, + name='country_code', full_name='google.ads.googleads.v4.common.CallFeedItem.country_code', index=1, number=2, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='call_tracking_enabled', full_name='google.ads.googleads.v1.common.CallFeedItem.call_tracking_enabled', index=2, + name='call_tracking_enabled', full_name='google.ads.googleads.v4.common.CallFeedItem.call_tracking_enabled', index=2, number=3, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='call_conversion_action', full_name='google.ads.googleads.v1.common.CallFeedItem.call_conversion_action', index=3, + name='call_conversion_action', full_name='google.ads.googleads.v4.common.CallFeedItem.call_conversion_action', index=3, number=4, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='call_conversion_tracking_disabled', full_name='google.ads.googleads.v1.common.CallFeedItem.call_conversion_tracking_disabled', index=4, + name='call_conversion_tracking_disabled', full_name='google.ads.googleads.v4.common.CallFeedItem.call_conversion_tracking_disabled', index=4, number=5, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='call_conversion_reporting_state', full_name='google.ads.googleads.v1.common.CallFeedItem.call_conversion_reporting_state', index=5, + name='call_conversion_reporting_state', full_name='google.ads.googleads.v4.common.CallFeedItem.call_conversion_reporting_state', index=5, number=6, type=14, cpp_type=8, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, @@ -186,13 +186,13 @@ _CALLOUTFEEDITEM = _descriptor.Descriptor( name='CalloutFeedItem', - full_name='google.ads.googleads.v1.common.CalloutFeedItem', + full_name='google.ads.googleads.v4.common.CalloutFeedItem', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='callout_text', full_name='google.ads.googleads.v1.common.CalloutFeedItem.callout_text', index=0, + name='callout_text', full_name='google.ads.googleads.v4.common.CalloutFeedItem.callout_text', index=0, number=1, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, @@ -217,62 +217,62 @@ _LOCATIONFEEDITEM = _descriptor.Descriptor( name='LocationFeedItem', - full_name='google.ads.googleads.v1.common.LocationFeedItem', + full_name='google.ads.googleads.v4.common.LocationFeedItem', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='business_name', full_name='google.ads.googleads.v1.common.LocationFeedItem.business_name', index=0, + name='business_name', full_name='google.ads.googleads.v4.common.LocationFeedItem.business_name', index=0, number=1, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='address_line_1', full_name='google.ads.googleads.v1.common.LocationFeedItem.address_line_1', index=1, + name='address_line_1', full_name='google.ads.googleads.v4.common.LocationFeedItem.address_line_1', index=1, number=2, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='address_line_2', full_name='google.ads.googleads.v1.common.LocationFeedItem.address_line_2', index=2, + name='address_line_2', full_name='google.ads.googleads.v4.common.LocationFeedItem.address_line_2', index=2, number=3, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='city', full_name='google.ads.googleads.v1.common.LocationFeedItem.city', index=3, + name='city', full_name='google.ads.googleads.v4.common.LocationFeedItem.city', index=3, number=4, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='province', full_name='google.ads.googleads.v1.common.LocationFeedItem.province', index=4, + name='province', full_name='google.ads.googleads.v4.common.LocationFeedItem.province', index=4, number=5, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='postal_code', full_name='google.ads.googleads.v1.common.LocationFeedItem.postal_code', index=5, + name='postal_code', full_name='google.ads.googleads.v4.common.LocationFeedItem.postal_code', index=5, number=6, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='country_code', full_name='google.ads.googleads.v1.common.LocationFeedItem.country_code', index=6, + name='country_code', full_name='google.ads.googleads.v4.common.LocationFeedItem.country_code', index=6, number=7, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='phone_number', full_name='google.ads.googleads.v1.common.LocationFeedItem.phone_number', index=7, + name='phone_number', full_name='google.ads.googleads.v4.common.LocationFeedItem.phone_number', index=7, number=8, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, @@ -297,76 +297,76 @@ _AFFILIATELOCATIONFEEDITEM = _descriptor.Descriptor( name='AffiliateLocationFeedItem', - full_name='google.ads.googleads.v1.common.AffiliateLocationFeedItem', + full_name='google.ads.googleads.v4.common.AffiliateLocationFeedItem', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='business_name', full_name='google.ads.googleads.v1.common.AffiliateLocationFeedItem.business_name', index=0, + name='business_name', full_name='google.ads.googleads.v4.common.AffiliateLocationFeedItem.business_name', index=0, number=1, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='address_line_1', full_name='google.ads.googleads.v1.common.AffiliateLocationFeedItem.address_line_1', index=1, + name='address_line_1', full_name='google.ads.googleads.v4.common.AffiliateLocationFeedItem.address_line_1', index=1, number=2, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='address_line_2', full_name='google.ads.googleads.v1.common.AffiliateLocationFeedItem.address_line_2', index=2, + name='address_line_2', full_name='google.ads.googleads.v4.common.AffiliateLocationFeedItem.address_line_2', index=2, number=3, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='city', full_name='google.ads.googleads.v1.common.AffiliateLocationFeedItem.city', index=3, + name='city', full_name='google.ads.googleads.v4.common.AffiliateLocationFeedItem.city', index=3, number=4, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='province', full_name='google.ads.googleads.v1.common.AffiliateLocationFeedItem.province', index=4, + name='province', full_name='google.ads.googleads.v4.common.AffiliateLocationFeedItem.province', index=4, number=5, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='postal_code', full_name='google.ads.googleads.v1.common.AffiliateLocationFeedItem.postal_code', index=5, + name='postal_code', full_name='google.ads.googleads.v4.common.AffiliateLocationFeedItem.postal_code', index=5, number=6, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='country_code', full_name='google.ads.googleads.v1.common.AffiliateLocationFeedItem.country_code', index=6, + name='country_code', full_name='google.ads.googleads.v4.common.AffiliateLocationFeedItem.country_code', index=6, number=7, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='phone_number', full_name='google.ads.googleads.v1.common.AffiliateLocationFeedItem.phone_number', index=7, + name='phone_number', full_name='google.ads.googleads.v4.common.AffiliateLocationFeedItem.phone_number', index=7, number=8, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='chain_id', full_name='google.ads.googleads.v1.common.AffiliateLocationFeedItem.chain_id', index=8, + name='chain_id', full_name='google.ads.googleads.v4.common.AffiliateLocationFeedItem.chain_id', index=8, number=9, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='chain_name', full_name='google.ads.googleads.v1.common.AffiliateLocationFeedItem.chain_name', index=9, + name='chain_name', full_name='google.ads.googleads.v4.common.AffiliateLocationFeedItem.chain_name', index=9, number=10, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, @@ -391,41 +391,41 @@ _TEXTMESSAGEFEEDITEM = _descriptor.Descriptor( name='TextMessageFeedItem', - full_name='google.ads.googleads.v1.common.TextMessageFeedItem', + full_name='google.ads.googleads.v4.common.TextMessageFeedItem', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='business_name', full_name='google.ads.googleads.v1.common.TextMessageFeedItem.business_name', index=0, + name='business_name', full_name='google.ads.googleads.v4.common.TextMessageFeedItem.business_name', index=0, number=1, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='country_code', full_name='google.ads.googleads.v1.common.TextMessageFeedItem.country_code', index=1, + name='country_code', full_name='google.ads.googleads.v4.common.TextMessageFeedItem.country_code', index=1, number=2, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='phone_number', full_name='google.ads.googleads.v1.common.TextMessageFeedItem.phone_number', index=2, + name='phone_number', full_name='google.ads.googleads.v4.common.TextMessageFeedItem.phone_number', index=2, number=3, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='text', full_name='google.ads.googleads.v1.common.TextMessageFeedItem.text', index=3, + name='text', full_name='google.ads.googleads.v4.common.TextMessageFeedItem.text', index=3, number=4, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='extension_text', full_name='google.ads.googleads.v1.common.TextMessageFeedItem.extension_text', index=4, + name='extension_text', full_name='google.ads.googleads.v4.common.TextMessageFeedItem.extension_text', index=4, number=5, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, @@ -450,48 +450,48 @@ _PRICEFEEDITEM = _descriptor.Descriptor( name='PriceFeedItem', - full_name='google.ads.googleads.v1.common.PriceFeedItem', + full_name='google.ads.googleads.v4.common.PriceFeedItem', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='type', full_name='google.ads.googleads.v1.common.PriceFeedItem.type', index=0, + name='type', full_name='google.ads.googleads.v4.common.PriceFeedItem.type', index=0, number=1, type=14, cpp_type=8, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='price_qualifier', full_name='google.ads.googleads.v1.common.PriceFeedItem.price_qualifier', index=1, + name='price_qualifier', full_name='google.ads.googleads.v4.common.PriceFeedItem.price_qualifier', index=1, number=2, type=14, cpp_type=8, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='tracking_url_template', full_name='google.ads.googleads.v1.common.PriceFeedItem.tracking_url_template', index=2, + name='tracking_url_template', full_name='google.ads.googleads.v4.common.PriceFeedItem.tracking_url_template', index=2, number=3, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='language_code', full_name='google.ads.googleads.v1.common.PriceFeedItem.language_code', index=3, + name='language_code', full_name='google.ads.googleads.v4.common.PriceFeedItem.language_code', index=3, number=4, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='price_offerings', full_name='google.ads.googleads.v1.common.PriceFeedItem.price_offerings', index=4, + name='price_offerings', full_name='google.ads.googleads.v4.common.PriceFeedItem.price_offerings', index=4, number=5, type=11, cpp_type=10, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='final_url_suffix', full_name='google.ads.googleads.v1.common.PriceFeedItem.final_url_suffix', index=5, + name='final_url_suffix', full_name='google.ads.googleads.v4.common.PriceFeedItem.final_url_suffix', index=5, number=6, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, @@ -516,48 +516,48 @@ _PRICEOFFER = _descriptor.Descriptor( name='PriceOffer', - full_name='google.ads.googleads.v1.common.PriceOffer', + full_name='google.ads.googleads.v4.common.PriceOffer', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='header', full_name='google.ads.googleads.v1.common.PriceOffer.header', index=0, + name='header', full_name='google.ads.googleads.v4.common.PriceOffer.header', index=0, number=1, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='description', full_name='google.ads.googleads.v1.common.PriceOffer.description', index=1, + name='description', full_name='google.ads.googleads.v4.common.PriceOffer.description', index=1, number=2, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='price', full_name='google.ads.googleads.v1.common.PriceOffer.price', index=2, + name='price', full_name='google.ads.googleads.v4.common.PriceOffer.price', index=2, number=3, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='unit', full_name='google.ads.googleads.v1.common.PriceOffer.unit', index=3, + name='unit', full_name='google.ads.googleads.v4.common.PriceOffer.unit', index=3, number=4, type=14, cpp_type=8, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='final_urls', full_name='google.ads.googleads.v1.common.PriceOffer.final_urls', index=4, + name='final_urls', full_name='google.ads.googleads.v4.common.PriceOffer.final_urls', index=4, number=5, type=11, cpp_type=10, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='final_mobile_urls', full_name='google.ads.googleads.v1.common.PriceOffer.final_mobile_urls', index=5, + name='final_mobile_urls', full_name='google.ads.googleads.v4.common.PriceOffer.final_mobile_urls', index=5, number=6, type=11, cpp_type=10, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, @@ -582,111 +582,111 @@ _PROMOTIONFEEDITEM = _descriptor.Descriptor( name='PromotionFeedItem', - full_name='google.ads.googleads.v1.common.PromotionFeedItem', + full_name='google.ads.googleads.v4.common.PromotionFeedItem', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='promotion_target', full_name='google.ads.googleads.v1.common.PromotionFeedItem.promotion_target', index=0, + name='promotion_target', full_name='google.ads.googleads.v4.common.PromotionFeedItem.promotion_target', index=0, number=1, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='discount_modifier', full_name='google.ads.googleads.v1.common.PromotionFeedItem.discount_modifier', index=1, + name='discount_modifier', full_name='google.ads.googleads.v4.common.PromotionFeedItem.discount_modifier', index=1, number=2, type=14, cpp_type=8, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='promotion_start_date', full_name='google.ads.googleads.v1.common.PromotionFeedItem.promotion_start_date', index=2, + name='promotion_start_date', full_name='google.ads.googleads.v4.common.PromotionFeedItem.promotion_start_date', index=2, number=7, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='promotion_end_date', full_name='google.ads.googleads.v1.common.PromotionFeedItem.promotion_end_date', index=3, + name='promotion_end_date', full_name='google.ads.googleads.v4.common.PromotionFeedItem.promotion_end_date', index=3, number=8, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='occasion', full_name='google.ads.googleads.v1.common.PromotionFeedItem.occasion', index=4, + name='occasion', full_name='google.ads.googleads.v4.common.PromotionFeedItem.occasion', index=4, number=9, type=14, cpp_type=8, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='final_urls', full_name='google.ads.googleads.v1.common.PromotionFeedItem.final_urls', index=5, + name='final_urls', full_name='google.ads.googleads.v4.common.PromotionFeedItem.final_urls', index=5, number=10, type=11, cpp_type=10, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='final_mobile_urls', full_name='google.ads.googleads.v1.common.PromotionFeedItem.final_mobile_urls', index=6, + name='final_mobile_urls', full_name='google.ads.googleads.v4.common.PromotionFeedItem.final_mobile_urls', index=6, number=11, type=11, cpp_type=10, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='tracking_url_template', full_name='google.ads.googleads.v1.common.PromotionFeedItem.tracking_url_template', index=7, + name='tracking_url_template', full_name='google.ads.googleads.v4.common.PromotionFeedItem.tracking_url_template', index=7, number=12, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='url_custom_parameters', full_name='google.ads.googleads.v1.common.PromotionFeedItem.url_custom_parameters', index=8, + name='url_custom_parameters', full_name='google.ads.googleads.v4.common.PromotionFeedItem.url_custom_parameters', index=8, number=13, type=11, cpp_type=10, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='final_url_suffix', full_name='google.ads.googleads.v1.common.PromotionFeedItem.final_url_suffix', index=9, + name='final_url_suffix', full_name='google.ads.googleads.v4.common.PromotionFeedItem.final_url_suffix', index=9, number=14, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='language_code', full_name='google.ads.googleads.v1.common.PromotionFeedItem.language_code', index=10, + name='language_code', full_name='google.ads.googleads.v4.common.PromotionFeedItem.language_code', index=10, number=15, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='percent_off', full_name='google.ads.googleads.v1.common.PromotionFeedItem.percent_off', index=11, + name='percent_off', full_name='google.ads.googleads.v4.common.PromotionFeedItem.percent_off', index=11, number=3, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='money_amount_off', full_name='google.ads.googleads.v1.common.PromotionFeedItem.money_amount_off', index=12, + name='money_amount_off', full_name='google.ads.googleads.v4.common.PromotionFeedItem.money_amount_off', index=12, number=4, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='promotion_code', full_name='google.ads.googleads.v1.common.PromotionFeedItem.promotion_code', index=13, + name='promotion_code', full_name='google.ads.googleads.v4.common.PromotionFeedItem.promotion_code', index=13, number=5, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='orders_over_amount', full_name='google.ads.googleads.v1.common.PromotionFeedItem.orders_over_amount', index=14, + name='orders_over_amount', full_name='google.ads.googleads.v4.common.PromotionFeedItem.orders_over_amount', index=14, number=6, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, @@ -704,10 +704,10 @@ extension_ranges=[], oneofs=[ _descriptor.OneofDescriptor( - name='discount_type', full_name='google.ads.googleads.v1.common.PromotionFeedItem.discount_type', + name='discount_type', full_name='google.ads.googleads.v4.common.PromotionFeedItem.discount_type', index=0, containing_type=None, fields=[]), _descriptor.OneofDescriptor( - name='promotion_trigger', full_name='google.ads.googleads.v1.common.PromotionFeedItem.promotion_trigger', + name='promotion_trigger', full_name='google.ads.googleads.v4.common.PromotionFeedItem.promotion_trigger', index=1, containing_type=None, fields=[]), ], serialized_start=3845, @@ -717,20 +717,20 @@ _STRUCTUREDSNIPPETFEEDITEM = _descriptor.Descriptor( name='StructuredSnippetFeedItem', - full_name='google.ads.googleads.v1.common.StructuredSnippetFeedItem', + full_name='google.ads.googleads.v4.common.StructuredSnippetFeedItem', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='header', full_name='google.ads.googleads.v1.common.StructuredSnippetFeedItem.header', index=0, + name='header', full_name='google.ads.googleads.v4.common.StructuredSnippetFeedItem.header', index=0, number=1, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='values', full_name='google.ads.googleads.v1.common.StructuredSnippetFeedItem.values', index=1, + name='values', full_name='google.ads.googleads.v4.common.StructuredSnippetFeedItem.values', index=1, number=2, type=11, cpp_type=10, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, @@ -755,62 +755,62 @@ _SITELINKFEEDITEM = _descriptor.Descriptor( name='SitelinkFeedItem', - full_name='google.ads.googleads.v1.common.SitelinkFeedItem', + full_name='google.ads.googleads.v4.common.SitelinkFeedItem', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='link_text', full_name='google.ads.googleads.v1.common.SitelinkFeedItem.link_text', index=0, + name='link_text', full_name='google.ads.googleads.v4.common.SitelinkFeedItem.link_text', index=0, number=1, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='line1', full_name='google.ads.googleads.v1.common.SitelinkFeedItem.line1', index=1, + name='line1', full_name='google.ads.googleads.v4.common.SitelinkFeedItem.line1', index=1, number=2, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='line2', full_name='google.ads.googleads.v1.common.SitelinkFeedItem.line2', index=2, + name='line2', full_name='google.ads.googleads.v4.common.SitelinkFeedItem.line2', index=2, number=3, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='final_urls', full_name='google.ads.googleads.v1.common.SitelinkFeedItem.final_urls', index=3, + name='final_urls', full_name='google.ads.googleads.v4.common.SitelinkFeedItem.final_urls', index=3, number=4, type=11, cpp_type=10, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='final_mobile_urls', full_name='google.ads.googleads.v1.common.SitelinkFeedItem.final_mobile_urls', index=4, + name='final_mobile_urls', full_name='google.ads.googleads.v4.common.SitelinkFeedItem.final_mobile_urls', index=4, number=5, type=11, cpp_type=10, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='tracking_url_template', full_name='google.ads.googleads.v1.common.SitelinkFeedItem.tracking_url_template', index=5, + name='tracking_url_template', full_name='google.ads.googleads.v4.common.SitelinkFeedItem.tracking_url_template', index=5, number=6, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='url_custom_parameters', full_name='google.ads.googleads.v1.common.SitelinkFeedItem.url_custom_parameters', index=6, + name='url_custom_parameters', full_name='google.ads.googleads.v4.common.SitelinkFeedItem.url_custom_parameters', index=6, number=7, type=11, cpp_type=10, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='final_url_suffix', full_name='google.ads.googleads.v1.common.SitelinkFeedItem.final_url_suffix', index=7, + name='final_url_suffix', full_name='google.ads.googleads.v4.common.SitelinkFeedItem.final_url_suffix', index=7, number=8, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, @@ -832,20 +832,58 @@ serialized_end=5504, ) + +_HOTELCALLOUTFEEDITEM = _descriptor.Descriptor( + name='HotelCalloutFeedItem', + full_name='google.ads.googleads.v4.common.HotelCalloutFeedItem', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='text', full_name='google.ads.googleads.v4.common.HotelCalloutFeedItem.text', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='language_code', full_name='google.ads.googleads.v4.common.HotelCalloutFeedItem.language_code', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=5506, + serialized_end=5625, +) + _APPFEEDITEM.fields_by_name['link_text'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE _APPFEEDITEM.fields_by_name['app_id'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_APPFEEDITEM.fields_by_name['app_store'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_app__store__pb2._APPSTOREENUM_APPSTORE +_APPFEEDITEM.fields_by_name['app_store'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_app__store__pb2._APPSTOREENUM_APPSTORE _APPFEEDITEM.fields_by_name['final_urls'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE _APPFEEDITEM.fields_by_name['final_mobile_urls'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE _APPFEEDITEM.fields_by_name['tracking_url_template'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_APPFEEDITEM.fields_by_name['url_custom_parameters'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_custom__parameter__pb2._CUSTOMPARAMETER +_APPFEEDITEM.fields_by_name['url_custom_parameters'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_custom__parameter__pb2._CUSTOMPARAMETER _APPFEEDITEM.fields_by_name['final_url_suffix'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE _CALLFEEDITEM.fields_by_name['phone_number'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE _CALLFEEDITEM.fields_by_name['country_code'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE _CALLFEEDITEM.fields_by_name['call_tracking_enabled'].message_type = google_dot_protobuf_dot_wrappers__pb2._BOOLVALUE _CALLFEEDITEM.fields_by_name['call_conversion_action'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE _CALLFEEDITEM.fields_by_name['call_conversion_tracking_disabled'].message_type = google_dot_protobuf_dot_wrappers__pb2._BOOLVALUE -_CALLFEEDITEM.fields_by_name['call_conversion_reporting_state'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_call__conversion__reporting__state__pb2._CALLCONVERSIONREPORTINGSTATEENUM_CALLCONVERSIONREPORTINGSTATE +_CALLFEEDITEM.fields_by_name['call_conversion_reporting_state'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_call__conversion__reporting__state__pb2._CALLCONVERSIONREPORTINGSTATEENUM_CALLCONVERSIONREPORTINGSTATE _CALLOUTFEEDITEM.fields_by_name['callout_text'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE _LOCATIONFEEDITEM.fields_by_name['business_name'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE _LOCATIONFEEDITEM.fields_by_name['address_line_1'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE @@ -870,33 +908,33 @@ _TEXTMESSAGEFEEDITEM.fields_by_name['phone_number'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE _TEXTMESSAGEFEEDITEM.fields_by_name['text'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE _TEXTMESSAGEFEEDITEM.fields_by_name['extension_text'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_PRICEFEEDITEM.fields_by_name['type'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_price__extension__type__pb2._PRICEEXTENSIONTYPEENUM_PRICEEXTENSIONTYPE -_PRICEFEEDITEM.fields_by_name['price_qualifier'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_price__extension__price__qualifier__pb2._PRICEEXTENSIONPRICEQUALIFIERENUM_PRICEEXTENSIONPRICEQUALIFIER +_PRICEFEEDITEM.fields_by_name['type'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_price__extension__type__pb2._PRICEEXTENSIONTYPEENUM_PRICEEXTENSIONTYPE +_PRICEFEEDITEM.fields_by_name['price_qualifier'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_price__extension__price__qualifier__pb2._PRICEEXTENSIONPRICEQUALIFIERENUM_PRICEEXTENSIONPRICEQUALIFIER _PRICEFEEDITEM.fields_by_name['tracking_url_template'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE _PRICEFEEDITEM.fields_by_name['language_code'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE _PRICEFEEDITEM.fields_by_name['price_offerings'].message_type = _PRICEOFFER _PRICEFEEDITEM.fields_by_name['final_url_suffix'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE _PRICEOFFER.fields_by_name['header'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE _PRICEOFFER.fields_by_name['description'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_PRICEOFFER.fields_by_name['price'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_feed__common__pb2._MONEY -_PRICEOFFER.fields_by_name['unit'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_price__extension__price__unit__pb2._PRICEEXTENSIONPRICEUNITENUM_PRICEEXTENSIONPRICEUNIT +_PRICEOFFER.fields_by_name['price'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_feed__common__pb2._MONEY +_PRICEOFFER.fields_by_name['unit'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_price__extension__price__unit__pb2._PRICEEXTENSIONPRICEUNITENUM_PRICEEXTENSIONPRICEUNIT _PRICEOFFER.fields_by_name['final_urls'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE _PRICEOFFER.fields_by_name['final_mobile_urls'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE _PROMOTIONFEEDITEM.fields_by_name['promotion_target'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_PROMOTIONFEEDITEM.fields_by_name['discount_modifier'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_promotion__extension__discount__modifier__pb2._PROMOTIONEXTENSIONDISCOUNTMODIFIERENUM_PROMOTIONEXTENSIONDISCOUNTMODIFIER +_PROMOTIONFEEDITEM.fields_by_name['discount_modifier'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_promotion__extension__discount__modifier__pb2._PROMOTIONEXTENSIONDISCOUNTMODIFIERENUM_PROMOTIONEXTENSIONDISCOUNTMODIFIER _PROMOTIONFEEDITEM.fields_by_name['promotion_start_date'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE _PROMOTIONFEEDITEM.fields_by_name['promotion_end_date'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_PROMOTIONFEEDITEM.fields_by_name['occasion'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_promotion__extension__occasion__pb2._PROMOTIONEXTENSIONOCCASIONENUM_PROMOTIONEXTENSIONOCCASION +_PROMOTIONFEEDITEM.fields_by_name['occasion'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_promotion__extension__occasion__pb2._PROMOTIONEXTENSIONOCCASIONENUM_PROMOTIONEXTENSIONOCCASION _PROMOTIONFEEDITEM.fields_by_name['final_urls'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE _PROMOTIONFEEDITEM.fields_by_name['final_mobile_urls'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE _PROMOTIONFEEDITEM.fields_by_name['tracking_url_template'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_PROMOTIONFEEDITEM.fields_by_name['url_custom_parameters'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_custom__parameter__pb2._CUSTOMPARAMETER +_PROMOTIONFEEDITEM.fields_by_name['url_custom_parameters'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_custom__parameter__pb2._CUSTOMPARAMETER _PROMOTIONFEEDITEM.fields_by_name['final_url_suffix'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE _PROMOTIONFEEDITEM.fields_by_name['language_code'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE _PROMOTIONFEEDITEM.fields_by_name['percent_off'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -_PROMOTIONFEEDITEM.fields_by_name['money_amount_off'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_feed__common__pb2._MONEY +_PROMOTIONFEEDITEM.fields_by_name['money_amount_off'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_feed__common__pb2._MONEY _PROMOTIONFEEDITEM.fields_by_name['promotion_code'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_PROMOTIONFEEDITEM.fields_by_name['orders_over_amount'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_feed__common__pb2._MONEY +_PROMOTIONFEEDITEM.fields_by_name['orders_over_amount'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_feed__common__pb2._MONEY _PROMOTIONFEEDITEM.oneofs_by_name['discount_type'].fields.append( _PROMOTIONFEEDITEM.fields_by_name['percent_off']) _PROMOTIONFEEDITEM.fields_by_name['percent_off'].containing_oneof = _PROMOTIONFEEDITEM.oneofs_by_name['discount_type'] @@ -917,8 +955,10 @@ _SITELINKFEEDITEM.fields_by_name['final_urls'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE _SITELINKFEEDITEM.fields_by_name['final_mobile_urls'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE _SITELINKFEEDITEM.fields_by_name['tracking_url_template'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_SITELINKFEEDITEM.fields_by_name['url_custom_parameters'].message_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_common_dot_custom__parameter__pb2._CUSTOMPARAMETER +_SITELINKFEEDITEM.fields_by_name['url_custom_parameters'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_custom__parameter__pb2._CUSTOMPARAMETER _SITELINKFEEDITEM.fields_by_name['final_url_suffix'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_HOTELCALLOUTFEEDITEM.fields_by_name['text'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_HOTELCALLOUTFEEDITEM.fields_by_name['language_code'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE DESCRIPTOR.message_types_by_name['AppFeedItem'] = _APPFEEDITEM DESCRIPTOR.message_types_by_name['CallFeedItem'] = _CALLFEEDITEM DESCRIPTOR.message_types_by_name['CalloutFeedItem'] = _CALLOUTFEEDITEM @@ -930,11 +970,12 @@ DESCRIPTOR.message_types_by_name['PromotionFeedItem'] = _PROMOTIONFEEDITEM DESCRIPTOR.message_types_by_name['StructuredSnippetFeedItem'] = _STRUCTUREDSNIPPETFEEDITEM DESCRIPTOR.message_types_by_name['SitelinkFeedItem'] = _SITELINKFEEDITEM +DESCRIPTOR.message_types_by_name['HotelCalloutFeedItem'] = _HOTELCALLOUTFEEDITEM _sym_db.RegisterFileDescriptor(DESCRIPTOR) AppFeedItem = _reflection.GeneratedProtocolMessageType('AppFeedItem', (_message.Message,), dict( DESCRIPTOR = _APPFEEDITEM, - __module__ = 'google.ads.googleads_v1.proto.common.extensions_pb2' + __module__ = 'google.ads.googleads_v4.proto.common.extensions_pb2' , __doc__ = """Represents an App extension. @@ -967,13 +1008,13 @@ URL template for appending params to landing page URLs served with parallel tracking. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.AppFeedItem) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.common.AppFeedItem) )) _sym_db.RegisterMessage(AppFeedItem) CallFeedItem = _reflection.GeneratedProtocolMessageType('CallFeedItem', (_message.Message,), dict( DESCRIPTOR = _CALLFEEDITEM, - __module__ = 'google.ads.googleads_v1.proto.common.extensions_pb2' + __module__ = 'google.ads.googleads_v4.proto.common.extensions_pb2' , __doc__ = """Represents a Call extension. @@ -1002,13 +1043,13 @@ own call conversion setting (or just have call conversion disabled), or following the account level setting. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.CallFeedItem) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.common.CallFeedItem) )) _sym_db.RegisterMessage(CallFeedItem) CalloutFeedItem = _reflection.GeneratedProtocolMessageType('CalloutFeedItem', (_message.Message,), dict( DESCRIPTOR = _CALLOUTFEEDITEM, - __module__ = 'google.ads.googleads_v1.proto.common.extensions_pb2' + __module__ = 'google.ads.googleads_v4.proto.common.extensions_pb2' , __doc__ = """Represents a callout extension. @@ -1018,13 +1059,13 @@ The callout text. The length of this string should be between 1 and 25, inclusive. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.CalloutFeedItem) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.common.CalloutFeedItem) )) _sym_db.RegisterMessage(CalloutFeedItem) LocationFeedItem = _reflection.GeneratedProtocolMessageType('LocationFeedItem', (_message.Message,), dict( DESCRIPTOR = _LOCATIONFEEDITEM, - __module__ = 'google.ads.googleads_v1.proto.common.extensions_pb2' + __module__ = 'google.ads.googleads_v4.proto.common.extensions_pb2' , __doc__ = """Represents a location extension. @@ -1047,13 +1088,13 @@ phone_number: Phone number of the business. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.LocationFeedItem) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.common.LocationFeedItem) )) _sym_db.RegisterMessage(LocationFeedItem) AffiliateLocationFeedItem = _reflection.GeneratedProtocolMessageType('AffiliateLocationFeedItem', (_message.Message,), dict( DESCRIPTOR = _AFFILIATELOCATIONFEEDITEM, - __module__ = 'google.ads.googleads_v1.proto.common.extensions_pb2' + __module__ = 'google.ads.googleads_v4.proto.common.extensions_pb2' , __doc__ = """Represents an affiliate location extension. @@ -1081,13 +1122,13 @@ chain_name: Name of chain. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.AffiliateLocationFeedItem) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.common.AffiliateLocationFeedItem) )) _sym_db.RegisterMessage(AffiliateLocationFeedItem) TextMessageFeedItem = _reflection.GeneratedProtocolMessageType('TextMessageFeedItem', (_message.Message,), dict( DESCRIPTOR = _TEXTMESSAGEFEEDITEM, - __module__ = 'google.ads.googleads_v1.proto.common.extensions_pb2' + __module__ = 'google.ads.googleads_v4.proto.common.extensions_pb2' , __doc__ = """An extension that users can click on to send a text message to the advertiser. @@ -1108,13 +1149,13 @@ extension_text: The message text populated in the messaging app. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.TextMessageFeedItem) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.common.TextMessageFeedItem) )) _sym_db.RegisterMessage(TextMessageFeedItem) PriceFeedItem = _reflection.GeneratedProtocolMessageType('PriceFeedItem', (_message.Message,), dict( DESCRIPTOR = _PRICEFEEDITEM, - __module__ = 'google.ads.googleads_v1.proto.common.extensions_pb2' + __module__ = 'google.ads.googleads_v4.proto.common.extensions_pb2' , __doc__ = """Represents a Price extension. @@ -1134,13 +1175,13 @@ URL template for appending params to landing page URLs served with parallel tracking. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.PriceFeedItem) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.common.PriceFeedItem) )) _sym_db.RegisterMessage(PriceFeedItem) PriceOffer = _reflection.GeneratedProtocolMessageType('PriceOffer', (_message.Message,), dict( DESCRIPTOR = _PRICEOFFER, - __module__ = 'google.ads.googleads_v1.proto.common.extensions_pb2' + __module__ = 'google.ads.googleads_v4.proto.common.extensions_pb2' , __doc__ = """Represents one price offer in a price extension. @@ -1161,13 +1202,13 @@ A list of possible final mobile URLs after all cross domain redirects. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.PriceOffer) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.common.PriceOffer) )) _sym_db.RegisterMessage(PriceOffer) PromotionFeedItem = _reflection.GeneratedProtocolMessageType('PromotionFeedItem', (_message.Message,), dict( DESCRIPTOR = _PROMOTIONFEEDITEM, - __module__ = 'google.ads.googleads_v1.proto.common.extensions_pb2' + __module__ = 'google.ads.googleads_v4.proto.common.extensions_pb2' , __doc__ = """Represents a Promotion extension. @@ -1223,13 +1264,13 @@ The amount the total order needs to be for the user to be eligible for the promotion. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.PromotionFeedItem) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.common.PromotionFeedItem) )) _sym_db.RegisterMessage(PromotionFeedItem) StructuredSnippetFeedItem = _reflection.GeneratedProtocolMessageType('StructuredSnippetFeedItem', (_message.Message,), dict( DESCRIPTOR = _STRUCTUREDSNIPPETFEEDITEM, - __module__ = 'google.ads.googleads_v1.proto.common.extensions_pb2' + __module__ = 'google.ads.googleads_v4.proto.common.extensions_pb2' , __doc__ = """Represents a structured snippet extension. @@ -1241,13 +1282,13 @@ The values in the snippet. The maximum size of this collection is 10. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.StructuredSnippetFeedItem) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.common.StructuredSnippetFeedItem) )) _sym_db.RegisterMessage(StructuredSnippetFeedItem) SitelinkFeedItem = _reflection.GeneratedProtocolMessageType('SitelinkFeedItem', (_message.Message,), dict( DESCRIPTOR = _SITELINKFEEDITEM, - __module__ = 'google.ads.googleads_v1.proto.common.extensions_pb2' + __module__ = 'google.ads.googleads_v4.proto.common.extensions_pb2' , __doc__ = """Represents a sitelink extension. @@ -1280,10 +1321,29 @@ Final URL suffix to be appended to landing page URLs served with parallel tracking. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.SitelinkFeedItem) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.common.SitelinkFeedItem) )) _sym_db.RegisterMessage(SitelinkFeedItem) +HotelCalloutFeedItem = _reflection.GeneratedProtocolMessageType('HotelCalloutFeedItem', (_message.Message,), dict( + DESCRIPTOR = _HOTELCALLOUTFEEDITEM, + __module__ = 'google.ads.googleads_v4.proto.common.extensions_pb2' + , + __doc__ = """Represents a hotel callout extension. + + + Attributes: + text: + The callout text. The length of this string should be between + 1 and 25, inclusive. + language_code: + The language of the hotel callout text. IETF BCP 47 compliant + language code. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.common.HotelCalloutFeedItem) + )) +_sym_db.RegisterMessage(HotelCalloutFeedItem) + DESCRIPTOR._options = None # @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/common/extensions_pb2_grpc.py b/google/ads/google_ads/v4/proto/common/extensions_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/common/extensions_pb2_grpc.py rename to google/ads/google_ads/v4/proto/common/extensions_pb2_grpc.py diff --git a/google/ads/google_ads/v4/proto/common/feed_common_pb2.py b/google/ads/google_ads/v4/proto/common/feed_common_pb2.py new file mode 100644 index 000000000..17dff12fe --- /dev/null +++ b/google/ads/google_ads/v4/proto/common/feed_common_pb2.py @@ -0,0 +1,93 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/common/feed_common.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/common/feed_common.proto', + package='google.ads.googleads.v4.common', + syntax='proto3', + serialized_options=_b('\n\"com.google.ads.googleads.v4.commonB\017FeedCommonProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/common;common\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V4.Common\312\002\036Google\\Ads\\GoogleAds\\V4\\Common\352\002\"Google::Ads::GoogleAds::V4::Common'), + serialized_pb=_b('\n6google/ads/googleads_v4/proto/common/feed_common.proto\x12\x1egoogle.ads.googleads.v4.common\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1cgoogle/api/annotations.proto\"p\n\x05Money\x12\x33\n\rcurrency_code\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x32\n\ramount_micros\x18\x02 \x01(\x0b\x32\x1b.google.protobuf.Int64ValueB\xea\x01\n\"com.google.ads.googleads.v4.commonB\x0f\x46\x65\x65\x64\x43ommonProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/common;common\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V4.Common\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V4\\Common\xea\x02\"Google::Ads::GoogleAds::V4::Commonb\x06proto3') + , + dependencies=[google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + + +_MONEY = _descriptor.Descriptor( + name='Money', + full_name='google.ads.googleads.v4.common.Money', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='currency_code', full_name='google.ads.googleads.v4.common.Money.currency_code', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='amount_micros', full_name='google.ads.googleads.v4.common.Money.amount_micros', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=152, + serialized_end=264, +) + +_MONEY.fields_by_name['currency_code'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_MONEY.fields_by_name['amount_micros'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +DESCRIPTOR.message_types_by_name['Money'] = _MONEY +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +Money = _reflection.GeneratedProtocolMessageType('Money', (_message.Message,), dict( + DESCRIPTOR = _MONEY, + __module__ = 'google.ads.googleads_v4.proto.common.feed_common_pb2' + , + __doc__ = """Represents a price in a particular currency. + + + Attributes: + currency_code: + Three-character ISO 4217 currency code. + amount_micros: + Amount in micros. One million is equivalent to one unit. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.common.Money) + )) +_sym_db.RegisterMessage(Money) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/common/feed_common_pb2_grpc.py b/google/ads/google_ads/v4/proto/common/feed_common_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/common/feed_common_pb2_grpc.py rename to google/ads/google_ads/v4/proto/common/feed_common_pb2_grpc.py diff --git a/google/ads/google_ads/v4/proto/common/final_app_url_pb2.py b/google/ads/google_ads/v4/proto/common/final_app_url_pb2.py new file mode 100644 index 000000000..29a2d7053 --- /dev/null +++ b/google/ads/google_ads/v4/proto/common/final_app_url_pb2.py @@ -0,0 +1,100 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/common/final_app_url.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.ads.google_ads.v4.proto.enums import app_url_operating_system_type_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_app__url__operating__system__type__pb2 +from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/common/final_app_url.proto', + package='google.ads.googleads.v4.common', + syntax='proto3', + serialized_options=_b('\n\"com.google.ads.googleads.v4.commonB\020FinalAppUrlProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/common;common\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V4.Common\312\002\036Google\\Ads\\GoogleAds\\V4\\Common\352\002\"Google::Ads::GoogleAds::V4::Common'), + serialized_pb=_b('\n8google/ads/googleads_v4/proto/common/final_app_url.proto\x12\x1egoogle.ads.googleads.v4.common\x1aGgoogle/ads/googleads_v4/proto/enums/app_url_operating_system_type.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1cgoogle/api/annotations.proto\"\xa1\x01\n\x0b\x46inalAppUrl\x12g\n\x07os_type\x18\x01 \x01(\x0e\x32V.google.ads.googleads.v4.enums.AppUrlOperatingSystemTypeEnum.AppUrlOperatingSystemType\x12)\n\x03url\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValueB\xeb\x01\n\"com.google.ads.googleads.v4.commonB\x10\x46inalAppUrlProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/common;common\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V4.Common\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V4\\Common\xea\x02\"Google::Ads::GoogleAds::V4::Commonb\x06proto3') + , + dependencies=[google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_app__url__operating__system__type__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + + +_FINALAPPURL = _descriptor.Descriptor( + name='FinalAppUrl', + full_name='google.ads.googleads.v4.common.FinalAppUrl', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='os_type', full_name='google.ads.googleads.v4.common.FinalAppUrl.os_type', index=0, + number=1, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='url', full_name='google.ads.googleads.v4.common.FinalAppUrl.url', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=228, + serialized_end=389, +) + +_FINALAPPURL.fields_by_name['os_type'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_app__url__operating__system__type__pb2._APPURLOPERATINGSYSTEMTYPEENUM_APPURLOPERATINGSYSTEMTYPE +_FINALAPPURL.fields_by_name['url'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +DESCRIPTOR.message_types_by_name['FinalAppUrl'] = _FINALAPPURL +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +FinalAppUrl = _reflection.GeneratedProtocolMessageType('FinalAppUrl', (_message.Message,), dict( + DESCRIPTOR = _FINALAPPURL, + __module__ = 'google.ads.googleads_v4.proto.common.final_app_url_pb2' + , + __doc__ = """A URL for deep linking into an app for the given operating system. + + + Attributes: + os_type: + The operating system targeted by this URL. Required. + url: + The app deep link URL. Deep links specify a location in an app + that corresponds to the content you'd like to show, and should + be of the form {scheme}://{host\_path} The scheme identifies + which app to open. For your app, you can use a custom scheme + that starts with the app's name. The host and path specify the + unique location in the app where your content exists. Example: + "exampleapp://productid\_1234". Required. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.common.FinalAppUrl) + )) +_sym_db.RegisterMessage(FinalAppUrl) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/common/final_app_url_pb2_grpc.py b/google/ads/google_ads/v4/proto/common/final_app_url_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/common/final_app_url_pb2_grpc.py rename to google/ads/google_ads/v4/proto/common/final_app_url_pb2_grpc.py diff --git a/google/ads/google_ads/v4/proto/common/frequency_cap_pb2.py b/google/ads/google_ads/v4/proto/common/frequency_cap_pb2.py new file mode 100644 index 000000000..c469697cf --- /dev/null +++ b/google/ads/google_ads/v4/proto/common/frequency_cap_pb2.py @@ -0,0 +1,180 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/common/frequency_cap.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.ads.google_ads.v4.proto.enums import frequency_cap_event_type_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_frequency__cap__event__type__pb2 +from google.ads.google_ads.v4.proto.enums import frequency_cap_level_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_frequency__cap__level__pb2 +from google.ads.google_ads.v4.proto.enums import frequency_cap_time_unit_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_frequency__cap__time__unit__pb2 +from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/common/frequency_cap.proto', + package='google.ads.googleads.v4.common', + syntax='proto3', + serialized_options=_b('\n\"com.google.ads.googleads.v4.commonB\021FrequencyCapProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/common;common\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V4.Common\312\002\036Google\\Ads\\GoogleAds\\V4\\Common\352\002\"Google::Ads::GoogleAds::V4::Common'), + serialized_pb=_b('\n8google/ads/googleads_v4/proto/common/frequency_cap.proto\x12\x1egoogle.ads.googleads.v4.common\x1a\x42google/ads/googleads_v4/proto/enums/frequency_cap_event_type.proto\x1a=google/ads/googleads_v4/proto/enums/frequency_cap_level.proto\x1a\x41google/ads/googleads_v4/proto/enums/frequency_cap_time_unit.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1cgoogle/api/annotations.proto\"{\n\x11\x46requencyCapEntry\x12<\n\x03key\x18\x01 \x01(\x0b\x32/.google.ads.googleads.v4.common.FrequencyCapKey\x12(\n\x03\x63\x61p\x18\x02 \x01(\x0b\x32\x1b.google.protobuf.Int32Value\"\xdf\x02\n\x0f\x46requencyCapKey\x12U\n\x05level\x18\x01 \x01(\x0e\x32\x46.google.ads.googleads.v4.enums.FrequencyCapLevelEnum.FrequencyCapLevel\x12\x62\n\nevent_type\x18\x03 \x01(\x0e\x32N.google.ads.googleads.v4.enums.FrequencyCapEventTypeEnum.FrequencyCapEventType\x12_\n\ttime_unit\x18\x02 \x01(\x0e\x32L.google.ads.googleads.v4.enums.FrequencyCapTimeUnitEnum.FrequencyCapTimeUnit\x12\x30\n\x0btime_length\x18\x04 \x01(\x0b\x32\x1b.google.protobuf.Int32ValueB\xec\x01\n\"com.google.ads.googleads.v4.commonB\x11\x46requencyCapProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/common;common\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V4.Common\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V4\\Common\xea\x02\"Google::Ads::GoogleAds::V4::Commonb\x06proto3') + , + dependencies=[google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_frequency__cap__event__type__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_frequency__cap__level__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_frequency__cap__time__unit__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + + +_FREQUENCYCAPENTRY = _descriptor.Descriptor( + name='FrequencyCapEntry', + full_name='google.ads.googleads.v4.common.FrequencyCapEntry', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='key', full_name='google.ads.googleads.v4.common.FrequencyCapEntry.key', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='cap', full_name='google.ads.googleads.v4.common.FrequencyCapEntry.cap', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=352, + serialized_end=475, +) + + +_FREQUENCYCAPKEY = _descriptor.Descriptor( + name='FrequencyCapKey', + full_name='google.ads.googleads.v4.common.FrequencyCapKey', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='level', full_name='google.ads.googleads.v4.common.FrequencyCapKey.level', index=0, + number=1, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='event_type', full_name='google.ads.googleads.v4.common.FrequencyCapKey.event_type', index=1, + number=3, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='time_unit', full_name='google.ads.googleads.v4.common.FrequencyCapKey.time_unit', index=2, + number=2, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='time_length', full_name='google.ads.googleads.v4.common.FrequencyCapKey.time_length', index=3, + number=4, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=478, + serialized_end=829, +) + +_FREQUENCYCAPENTRY.fields_by_name['key'].message_type = _FREQUENCYCAPKEY +_FREQUENCYCAPENTRY.fields_by_name['cap'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT32VALUE +_FREQUENCYCAPKEY.fields_by_name['level'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_frequency__cap__level__pb2._FREQUENCYCAPLEVELENUM_FREQUENCYCAPLEVEL +_FREQUENCYCAPKEY.fields_by_name['event_type'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_frequency__cap__event__type__pb2._FREQUENCYCAPEVENTTYPEENUM_FREQUENCYCAPEVENTTYPE +_FREQUENCYCAPKEY.fields_by_name['time_unit'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_frequency__cap__time__unit__pb2._FREQUENCYCAPTIMEUNITENUM_FREQUENCYCAPTIMEUNIT +_FREQUENCYCAPKEY.fields_by_name['time_length'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT32VALUE +DESCRIPTOR.message_types_by_name['FrequencyCapEntry'] = _FREQUENCYCAPENTRY +DESCRIPTOR.message_types_by_name['FrequencyCapKey'] = _FREQUENCYCAPKEY +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +FrequencyCapEntry = _reflection.GeneratedProtocolMessageType('FrequencyCapEntry', (_message.Message,), dict( + DESCRIPTOR = _FREQUENCYCAPENTRY, + __module__ = 'google.ads.googleads_v4.proto.common.frequency_cap_pb2' + , + __doc__ = """A rule specifying the maximum number of times an ad (or some set of ads) + can be shown to a user over a particular time period. + + + Attributes: + key: + The key of a particular frequency cap. There can be no more + than one frequency cap with the same key. + cap: + Maximum number of events allowed during the time range by this + cap. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.common.FrequencyCapEntry) + )) +_sym_db.RegisterMessage(FrequencyCapEntry) + +FrequencyCapKey = _reflection.GeneratedProtocolMessageType('FrequencyCapKey', (_message.Message,), dict( + DESCRIPTOR = _FREQUENCYCAPKEY, + __module__ = 'google.ads.googleads_v4.proto.common.frequency_cap_pb2' + , + __doc__ = """A group of fields used as keys for a frequency cap. There can be no more + than one frequency cap with the same key. + + + Attributes: + level: + The level on which the cap is to be applied (e.g. ad group ad, + ad group). The cap is applied to all the entities of this + level. + event_type: + The type of event that the cap applies to (e.g. impression). + time_unit: + Unit of time the cap is defined at (e.g. day, week). + time_length: + Number of time units the cap lasts. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.common.FrequencyCapKey) + )) +_sym_db.RegisterMessage(FrequencyCapKey) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/common/frequency_cap_pb2_grpc.py b/google/ads/google_ads/v4/proto/common/frequency_cap_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/common/frequency_cap_pb2_grpc.py rename to google/ads/google_ads/v4/proto/common/frequency_cap_pb2_grpc.py diff --git a/google/ads/google_ads/v4/proto/common/keyword_plan_common_pb2.py b/google/ads/google_ads/v4/proto/common/keyword_plan_common_pb2.py new file mode 100644 index 000000000..2853669fd --- /dev/null +++ b/google/ads/google_ads/v4/proto/common/keyword_plan_common_pb2.py @@ -0,0 +1,214 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/common/keyword_plan_common.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.ads.google_ads.v4.proto.enums import keyword_plan_competition_level_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_keyword__plan__competition__level__pb2 +from google.ads.google_ads.v4.proto.enums import month_of_year_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_month__of__year__pb2 +from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/common/keyword_plan_common.proto', + package='google.ads.googleads.v4.common', + syntax='proto3', + serialized_options=_b('\n\"com.google.ads.googleads.v4.commonB\026KeywordPlanCommonProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/common;common\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V4.Common\312\002\036Google\\Ads\\GoogleAds\\V4\\Common\352\002\"Google::Ads::GoogleAds::V4::Common'), + serialized_pb=_b('\n>google/ads/googleads_v4/proto/common/keyword_plan_common.proto\x12\x1egoogle.ads.googleads.v4.common\x1aHgoogle/ads/googleads_v4/proto/enums/keyword_plan_competition_level.proto\x1a\x37google/ads/googleads_v4/proto/enums/month_of_year.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1cgoogle/api/annotations.proto\"\xda\x03\n\x1cKeywordPlanHistoricalMetrics\x12\x39\n\x14\x61vg_monthly_searches\x18\x01 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12S\n\x16monthly_search_volumes\x18\x06 \x03(\x0b\x32\x33.google.ads.googleads.v4.common.MonthlySearchVolume\x12o\n\x0b\x63ompetition\x18\x02 \x01(\x0e\x32Z.google.ads.googleads.v4.enums.KeywordPlanCompetitionLevelEnum.KeywordPlanCompetitionLevel\x12\x36\n\x11\x63ompetition_index\x18\x03 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12?\n\x1alow_top_of_page_bid_micros\x18\x04 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12@\n\x1bhigh_top_of_page_bid_micros\x18\x05 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\"\xc2\x01\n\x13MonthlySearchVolume\x12)\n\x04year\x18\x01 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12I\n\x05month\x18\x02 \x01(\x0e\x32:.google.ads.googleads.v4.enums.MonthOfYearEnum.MonthOfYear\x12\x35\n\x10monthly_searches\x18\x03 \x01(\x0b\x32\x1b.google.protobuf.Int64ValueB\xf1\x01\n\"com.google.ads.googleads.v4.commonB\x16KeywordPlanCommonProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/common;common\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V4.Common\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V4\\Common\xea\x02\"Google::Ads::GoogleAds::V4::Commonb\x06proto3') + , + dependencies=[google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_keyword__plan__competition__level__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_month__of__year__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + + +_KEYWORDPLANHISTORICALMETRICS = _descriptor.Descriptor( + name='KeywordPlanHistoricalMetrics', + full_name='google.ads.googleads.v4.common.KeywordPlanHistoricalMetrics', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='avg_monthly_searches', full_name='google.ads.googleads.v4.common.KeywordPlanHistoricalMetrics.avg_monthly_searches', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='monthly_search_volumes', full_name='google.ads.googleads.v4.common.KeywordPlanHistoricalMetrics.monthly_search_volumes', index=1, + number=6, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='competition', full_name='google.ads.googleads.v4.common.KeywordPlanHistoricalMetrics.competition', index=2, + number=2, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='competition_index', full_name='google.ads.googleads.v4.common.KeywordPlanHistoricalMetrics.competition_index', index=3, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='low_top_of_page_bid_micros', full_name='google.ads.googleads.v4.common.KeywordPlanHistoricalMetrics.low_top_of_page_bid_micros', index=4, + number=4, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='high_top_of_page_bid_micros', full_name='google.ads.googleads.v4.common.KeywordPlanHistoricalMetrics.high_top_of_page_bid_micros', index=5, + number=5, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=292, + serialized_end=766, +) + + +_MONTHLYSEARCHVOLUME = _descriptor.Descriptor( + name='MonthlySearchVolume', + full_name='google.ads.googleads.v4.common.MonthlySearchVolume', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='year', full_name='google.ads.googleads.v4.common.MonthlySearchVolume.year', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='month', full_name='google.ads.googleads.v4.common.MonthlySearchVolume.month', index=1, + number=2, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='monthly_searches', full_name='google.ads.googleads.v4.common.MonthlySearchVolume.monthly_searches', index=2, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=769, + serialized_end=963, +) + +_KEYWORDPLANHISTORICALMETRICS.fields_by_name['avg_monthly_searches'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_KEYWORDPLANHISTORICALMETRICS.fields_by_name['monthly_search_volumes'].message_type = _MONTHLYSEARCHVOLUME +_KEYWORDPLANHISTORICALMETRICS.fields_by_name['competition'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_keyword__plan__competition__level__pb2._KEYWORDPLANCOMPETITIONLEVELENUM_KEYWORDPLANCOMPETITIONLEVEL +_KEYWORDPLANHISTORICALMETRICS.fields_by_name['competition_index'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_KEYWORDPLANHISTORICALMETRICS.fields_by_name['low_top_of_page_bid_micros'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_KEYWORDPLANHISTORICALMETRICS.fields_by_name['high_top_of_page_bid_micros'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_MONTHLYSEARCHVOLUME.fields_by_name['year'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_MONTHLYSEARCHVOLUME.fields_by_name['month'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_month__of__year__pb2._MONTHOFYEARENUM_MONTHOFYEAR +_MONTHLYSEARCHVOLUME.fields_by_name['monthly_searches'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +DESCRIPTOR.message_types_by_name['KeywordPlanHistoricalMetrics'] = _KEYWORDPLANHISTORICALMETRICS +DESCRIPTOR.message_types_by_name['MonthlySearchVolume'] = _MONTHLYSEARCHVOLUME +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +KeywordPlanHistoricalMetrics = _reflection.GeneratedProtocolMessageType('KeywordPlanHistoricalMetrics', (_message.Message,), dict( + DESCRIPTOR = _KEYWORDPLANHISTORICALMETRICS, + __module__ = 'google.ads.googleads_v4.proto.common.keyword_plan_common_pb2' + , + __doc__ = """Historical metrics specific to the targeting options selected. Targeting + options include geographies, network, etc. Refer to + https://support.google.com/google-ads/answer/3022575 for more details. + + + Attributes: + avg_monthly_searches: + Approximate number of monthly searches on this query averaged + for the past 12 months. + monthly_search_volumes: + Approximate number of searches on this query for the past + twelve months. + competition: + The competition level for the query. + competition_index: + The competition index for the query in the range [0, 100]. + 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, null is returned. + low_top_of_page_bid_micros: + Top of page bid low range (20th percentile) in micros for the + keyword. + high_top_of_page_bid_micros: + Top of page bid high range (80th percentile) in micros for the + keyword. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.common.KeywordPlanHistoricalMetrics) + )) +_sym_db.RegisterMessage(KeywordPlanHistoricalMetrics) + +MonthlySearchVolume = _reflection.GeneratedProtocolMessageType('MonthlySearchVolume', (_message.Message,), dict( + DESCRIPTOR = _MONTHLYSEARCHVOLUME, + __module__ = 'google.ads.googleads_v4.proto.common.keyword_plan_common_pb2' + , + __doc__ = """Monthly search volume. + + + Attributes: + year: + The year of the search volume (e.g. 2020). + month: + The month of the search volume. + monthly_searches: + Approximate number of searches for the month. A null value + indicates the search volume is unavailable for that month. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.common.MonthlySearchVolume) + )) +_sym_db.RegisterMessage(MonthlySearchVolume) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/common/keyword_plan_common_pb2_grpc.py b/google/ads/google_ads/v4/proto/common/keyword_plan_common_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/common/keyword_plan_common_pb2_grpc.py rename to google/ads/google_ads/v4/proto/common/keyword_plan_common_pb2_grpc.py diff --git a/google/ads/google_ads/v1/proto/common/matching_function_pb2.py b/google/ads/google_ads/v4/proto/common/matching_function_pb2.py similarity index 79% rename from google/ads/google_ads/v1/proto/common/matching_function_pb2.py rename to google/ads/google_ads/v4/proto/common/matching_function_pb2.py index acc32a4cd..471e2adf7 100644 --- a/google/ads/google_ads/v1/proto/common/matching_function_pb2.py +++ b/google/ads/google_ads/v4/proto/common/matching_function_pb2.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/common/matching_function.proto +# source: google/ads/googleads_v4/proto/common/matching_function.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) @@ -13,54 +13,54 @@ _sym_db = _symbol_database.Default() -from google.ads.google_ads.v1.proto.enums import matching_function_context_type_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_matching__function__context__type__pb2 -from google.ads.google_ads.v1.proto.enums import matching_function_operator_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_matching__function__operator__pb2 +from google.ads.google_ads.v4.proto.enums import matching_function_context_type_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_matching__function__context__type__pb2 +from google.ads.google_ads.v4.proto.enums import matching_function_operator_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_matching__function__operator__pb2 from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/common/matching_function.proto', - package='google.ads.googleads.v1.common', + name='google/ads/googleads_v4/proto/common/matching_function.proto', + package='google.ads.googleads.v4.common', syntax='proto3', - serialized_options=_b('\n\"com.google.ads.googleads.v1.commonB\025MatchingFunctionProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/common;common\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V1.Common\312\002\036Google\\Ads\\GoogleAds\\V1\\Common\352\002\"Google::Ads::GoogleAds::V1::Common'), - serialized_pb=_b('\n\n\rleft_operands\x18\x02 \x03(\x0b\x32\'.google.ads.googleads.v1.common.Operand\x12?\n\x0eright_operands\x18\x03 \x03(\x0b\x32\'.google.ads.googleads.v1.common.Operand\"\xfe\x07\n\x07Operand\x12S\n\x10\x63onstant_operand\x18\x01 \x01(\x0b\x32\x37.google.ads.googleads.v1.common.Operand.ConstantOperandH\x00\x12^\n\x16\x66\x65\x65\x64_attribute_operand\x18\x02 \x01(\x0b\x32<.google.ads.googleads.v1.common.Operand.FeedAttributeOperandH\x00\x12S\n\x10\x66unction_operand\x18\x03 \x01(\x0b\x32\x37.google.ads.googleads.v1.common.Operand.FunctionOperandH\x00\x12`\n\x17request_context_operand\x18\x04 \x01(\x0b\x32=.google.ads.googleads.v1.common.Operand.RequestContextOperandH\x00\x1a\xff\x01\n\x0f\x43onstantOperand\x12\x34\n\x0cstring_value\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValueH\x00\x12\x31\n\nlong_value\x18\x02 \x01(\x0b\x32\x1b.google.protobuf.Int64ValueH\x00\x12\x33\n\rboolean_value\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.BoolValueH\x00\x12\x34\n\x0c\x64ouble_value\x18\x04 \x01(\x0b\x32\x1c.google.protobuf.DoubleValueH\x00\x42\x18\n\x16\x63onstant_operand_value\x1a|\n\x14\x46\x65\x65\x64\x41ttributeOperand\x12,\n\x07\x66\x65\x65\x64_id\x18\x01 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x36\n\x11\x66\x65\x65\x64_attribute_id\x18\x02 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x1a^\n\x0f\x46unctionOperand\x12K\n\x11matching_function\x18\x01 \x01(\x0b\x32\x30.google.ads.googleads.v1.common.MatchingFunction\x1a\x89\x01\n\x15RequestContextOperand\x12p\n\x0c\x63ontext_type\x18\x01 \x01(\x0e\x32Z.google.ads.googleads.v1.enums.MatchingFunctionContextTypeEnum.MatchingFunctionContextTypeB\x1b\n\x19\x66unction_argument_operandB\xf0\x01\n\"com.google.ads.googleads.v1.commonB\x15MatchingFunctionProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/common;common\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V1.Common\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V1\\Common\xea\x02\"Google::Ads::GoogleAds::V1::Commonb\x06proto3') + serialized_options=_b('\n\"com.google.ads.googleads.v4.commonB\025MatchingFunctionProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/common;common\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V4.Common\312\002\036Google\\Ads\\GoogleAds\\V4\\Common\352\002\"Google::Ads::GoogleAds::V4::Common'), + serialized_pb=_b('\n\n\rleft_operands\x18\x02 \x03(\x0b\x32\'.google.ads.googleads.v4.common.Operand\x12?\n\x0eright_operands\x18\x03 \x03(\x0b\x32\'.google.ads.googleads.v4.common.Operand\"\xfe\x07\n\x07Operand\x12S\n\x10\x63onstant_operand\x18\x01 \x01(\x0b\x32\x37.google.ads.googleads.v4.common.Operand.ConstantOperandH\x00\x12^\n\x16\x66\x65\x65\x64_attribute_operand\x18\x02 \x01(\x0b\x32<.google.ads.googleads.v4.common.Operand.FeedAttributeOperandH\x00\x12S\n\x10\x66unction_operand\x18\x03 \x01(\x0b\x32\x37.google.ads.googleads.v4.common.Operand.FunctionOperandH\x00\x12`\n\x17request_context_operand\x18\x04 \x01(\x0b\x32=.google.ads.googleads.v4.common.Operand.RequestContextOperandH\x00\x1a\xff\x01\n\x0f\x43onstantOperand\x12\x34\n\x0cstring_value\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValueH\x00\x12\x31\n\nlong_value\x18\x02 \x01(\x0b\x32\x1b.google.protobuf.Int64ValueH\x00\x12\x33\n\rboolean_value\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.BoolValueH\x00\x12\x34\n\x0c\x64ouble_value\x18\x04 \x01(\x0b\x32\x1c.google.protobuf.DoubleValueH\x00\x42\x18\n\x16\x63onstant_operand_value\x1a|\n\x14\x46\x65\x65\x64\x41ttributeOperand\x12,\n\x07\x66\x65\x65\x64_id\x18\x01 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x36\n\x11\x66\x65\x65\x64_attribute_id\x18\x02 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x1a^\n\x0f\x46unctionOperand\x12K\n\x11matching_function\x18\x01 \x01(\x0b\x32\x30.google.ads.googleads.v4.common.MatchingFunction\x1a\x89\x01\n\x15RequestContextOperand\x12p\n\x0c\x63ontext_type\x18\x01 \x01(\x0e\x32Z.google.ads.googleads.v4.enums.MatchingFunctionContextTypeEnum.MatchingFunctionContextTypeB\x1b\n\x19\x66unction_argument_operandB\xf0\x01\n\"com.google.ads.googleads.v4.commonB\x15MatchingFunctionProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/common;common\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V4.Common\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V4\\Common\xea\x02\"Google::Ads::GoogleAds::V4::Commonb\x06proto3') , - dependencies=[google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_matching__function__context__type__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_matching__function__operator__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + dependencies=[google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_matching__function__context__type__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_matching__function__operator__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) _MATCHINGFUNCTION = _descriptor.Descriptor( name='MatchingFunction', - full_name='google.ads.googleads.v1.common.MatchingFunction', + full_name='google.ads.googleads.v4.common.MatchingFunction', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='function_string', full_name='google.ads.googleads.v1.common.MatchingFunction.function_string', index=0, + name='function_string', full_name='google.ads.googleads.v4.common.MatchingFunction.function_string', index=0, number=1, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='operator', full_name='google.ads.googleads.v1.common.MatchingFunction.operator', index=1, + name='operator', full_name='google.ads.googleads.v4.common.MatchingFunction.operator', index=1, number=4, type=14, cpp_type=8, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='left_operands', full_name='google.ads.googleads.v1.common.MatchingFunction.left_operands', index=2, + name='left_operands', full_name='google.ads.googleads.v4.common.MatchingFunction.left_operands', index=2, number=2, type=11, cpp_type=10, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='right_operands', full_name='google.ads.googleads.v1.common.MatchingFunction.right_operands', index=3, + name='right_operands', full_name='google.ads.googleads.v4.common.MatchingFunction.right_operands', index=3, number=3, type=11, cpp_type=10, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, @@ -85,34 +85,34 @@ _OPERAND_CONSTANTOPERAND = _descriptor.Descriptor( name='ConstantOperand', - full_name='google.ads.googleads.v1.common.Operand.ConstantOperand', + full_name='google.ads.googleads.v4.common.Operand.ConstantOperand', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='string_value', full_name='google.ads.googleads.v1.common.Operand.ConstantOperand.string_value', index=0, + name='string_value', full_name='google.ads.googleads.v4.common.Operand.ConstantOperand.string_value', index=0, number=1, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='long_value', full_name='google.ads.googleads.v1.common.Operand.ConstantOperand.long_value', index=1, + name='long_value', full_name='google.ads.googleads.v4.common.Operand.ConstantOperand.long_value', index=1, number=2, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='boolean_value', full_name='google.ads.googleads.v1.common.Operand.ConstantOperand.boolean_value', index=2, + name='boolean_value', full_name='google.ads.googleads.v4.common.Operand.ConstantOperand.boolean_value', index=2, number=3, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='double_value', full_name='google.ads.googleads.v1.common.Operand.ConstantOperand.double_value', index=3, + name='double_value', full_name='google.ads.googleads.v4.common.Operand.ConstantOperand.double_value', index=3, number=4, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, @@ -130,7 +130,7 @@ extension_ranges=[], oneofs=[ _descriptor.OneofDescriptor( - name='constant_operand_value', full_name='google.ads.googleads.v1.common.Operand.ConstantOperand.constant_operand_value', + name='constant_operand_value', full_name='google.ads.googleads.v4.common.Operand.ConstantOperand.constant_operand_value', index=0, containing_type=None, fields=[]), ], serialized_start=988, @@ -139,20 +139,20 @@ _OPERAND_FEEDATTRIBUTEOPERAND = _descriptor.Descriptor( name='FeedAttributeOperand', - full_name='google.ads.googleads.v1.common.Operand.FeedAttributeOperand', + full_name='google.ads.googleads.v4.common.Operand.FeedAttributeOperand', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='feed_id', full_name='google.ads.googleads.v1.common.Operand.FeedAttributeOperand.feed_id', index=0, + name='feed_id', full_name='google.ads.googleads.v4.common.Operand.FeedAttributeOperand.feed_id', index=0, number=1, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='feed_attribute_id', full_name='google.ads.googleads.v1.common.Operand.FeedAttributeOperand.feed_attribute_id', index=1, + name='feed_attribute_id', full_name='google.ads.googleads.v4.common.Operand.FeedAttributeOperand.feed_attribute_id', index=1, number=2, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, @@ -176,13 +176,13 @@ _OPERAND_FUNCTIONOPERAND = _descriptor.Descriptor( name='FunctionOperand', - full_name='google.ads.googleads.v1.common.Operand.FunctionOperand', + full_name='google.ads.googleads.v4.common.Operand.FunctionOperand', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='matching_function', full_name='google.ads.googleads.v1.common.Operand.FunctionOperand.matching_function', index=0, + name='matching_function', full_name='google.ads.googleads.v4.common.Operand.FunctionOperand.matching_function', index=0, number=1, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, @@ -206,13 +206,13 @@ _OPERAND_REQUESTCONTEXTOPERAND = _descriptor.Descriptor( name='RequestContextOperand', - full_name='google.ads.googleads.v1.common.Operand.RequestContextOperand', + full_name='google.ads.googleads.v4.common.Operand.RequestContextOperand', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='context_type', full_name='google.ads.googleads.v1.common.Operand.RequestContextOperand.context_type', index=0, + name='context_type', full_name='google.ads.googleads.v4.common.Operand.RequestContextOperand.context_type', index=0, number=1, type=14, cpp_type=8, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, @@ -236,34 +236,34 @@ _OPERAND = _descriptor.Descriptor( name='Operand', - full_name='google.ads.googleads.v1.common.Operand', + full_name='google.ads.googleads.v4.common.Operand', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='constant_operand', full_name='google.ads.googleads.v1.common.Operand.constant_operand', index=0, + name='constant_operand', full_name='google.ads.googleads.v4.common.Operand.constant_operand', index=0, number=1, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='feed_attribute_operand', full_name='google.ads.googleads.v1.common.Operand.feed_attribute_operand', index=1, + name='feed_attribute_operand', full_name='google.ads.googleads.v4.common.Operand.feed_attribute_operand', index=1, number=2, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='function_operand', full_name='google.ads.googleads.v1.common.Operand.function_operand', index=2, + name='function_operand', full_name='google.ads.googleads.v4.common.Operand.function_operand', index=2, number=3, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='request_context_operand', full_name='google.ads.googleads.v1.common.Operand.request_context_operand', index=3, + name='request_context_operand', full_name='google.ads.googleads.v4.common.Operand.request_context_operand', index=3, number=4, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, @@ -281,7 +281,7 @@ extension_ranges=[], oneofs=[ _descriptor.OneofDescriptor( - name='function_argument_operand', full_name='google.ads.googleads.v1.common.Operand.function_argument_operand', + name='function_argument_operand', full_name='google.ads.googleads.v4.common.Operand.function_argument_operand', index=0, containing_type=None, fields=[]), ], serialized_start=612, @@ -289,7 +289,7 @@ ) _MATCHINGFUNCTION.fields_by_name['function_string'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_MATCHINGFUNCTION.fields_by_name['operator'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_matching__function__operator__pb2._MATCHINGFUNCTIONOPERATORENUM_MATCHINGFUNCTIONOPERATOR +_MATCHINGFUNCTION.fields_by_name['operator'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_matching__function__operator__pb2._MATCHINGFUNCTIONOPERATORENUM_MATCHINGFUNCTIONOPERATOR _MATCHINGFUNCTION.fields_by_name['left_operands'].message_type = _OPERAND _MATCHINGFUNCTION.fields_by_name['right_operands'].message_type = _OPERAND _OPERAND_CONSTANTOPERAND.fields_by_name['string_value'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE @@ -314,7 +314,7 @@ _OPERAND_FEEDATTRIBUTEOPERAND.containing_type = _OPERAND _OPERAND_FUNCTIONOPERAND.fields_by_name['matching_function'].message_type = _MATCHINGFUNCTION _OPERAND_FUNCTIONOPERAND.containing_type = _OPERAND -_OPERAND_REQUESTCONTEXTOPERAND.fields_by_name['context_type'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_matching__function__context__type__pb2._MATCHINGFUNCTIONCONTEXTTYPEENUM_MATCHINGFUNCTIONCONTEXTTYPE +_OPERAND_REQUESTCONTEXTOPERAND.fields_by_name['context_type'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_matching__function__context__type__pb2._MATCHINGFUNCTIONCONTEXTTYPEENUM_MATCHINGFUNCTIONCONTEXTTYPE _OPERAND_REQUESTCONTEXTOPERAND.containing_type = _OPERAND _OPERAND.fields_by_name['constant_operand'].message_type = _OPERAND_CONSTANTOPERAND _OPERAND.fields_by_name['feed_attribute_operand'].message_type = _OPERAND_FEEDATTRIBUTEOPERAND @@ -338,7 +338,7 @@ MatchingFunction = _reflection.GeneratedProtocolMessageType('MatchingFunction', (_message.Message,), dict( DESCRIPTOR = _MATCHINGFUNCTION, - __module__ = 'google.ads.googleads_v1.proto.common.matching_function_pb2' + __module__ = 'google.ads.googleads_v4.proto.common.matching_function_pb2' , __doc__ = """Matching function associated with a CustomerFeed, CampaignFeed, or AdGroupFeed. The matching function is used to filter the set of feed @@ -347,18 +347,19 @@ Attributes: function_string: - String representation of the Function. Examples: 1) - IDENTITY(true) or IDENTITY(false). All or none feed items - serve. 2) EQUALS(CONTEXT.DEVICE,"Mobile") 3) - IN(FEED\_ITEM\_ID,{1000001,1000002,1000003}) 4) + String representation of the Function. Examples: 1. + IDENTITY(true) or IDENTITY(false). All or no feed items + served. 2. EQUALS(CONTEXT.DEVICE,"Mobile") 3. + IN(FEED\_ITEM\_ID,{1000001,1000002,1000003}) 4. CONTAINS\_ANY(FeedAttribute[12345678,0],{"Mars cruise","Venus - cruise"}) 5) AND(IN(FEED\_ITEM\_ID,{10001,10002}),EQUALS(CONTE - XT.DEVICE,"Mobile")) See https: - //developers.google.com/adwords/api/docs/guides/feed-matching- - functions Note that because multiple strings may represent - the same underlying function (whitespace and single versus - double quotation marks, for example), the value returned may - not be identical to the string sent in a mutate request. + cruise"}) 5. AND(IN(FEED\_ITEM\_ID,{10001,10002}),EQUALS(CONTE + XT.DEVICE,"Mobile")) For more details, visit + https://developers.google.com/adwords/api/docs/guides/feed- + matching-functions Note that because multiple strings may + represent the same underlying function (whitespace and single + versus double quotation marks, for example), the value + returned may not be identical to the string sent in a mutate + request. operator: Operator for a function. left_operands: @@ -368,7 +369,7 @@ right_operands: The operands on the right hand side of the equation. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.MatchingFunction) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.common.MatchingFunction) )) _sym_db.RegisterMessage(MatchingFunction) @@ -376,7 +377,7 @@ ConstantOperand = _reflection.GeneratedProtocolMessageType('ConstantOperand', (_message.Message,), dict( DESCRIPTOR = _OPERAND_CONSTANTOPERAND, - __module__ = 'google.ads.googleads_v1.proto.common.matching_function_pb2' + __module__ = 'google.ads.googleads_v4.proto.common.matching_function_pb2' , __doc__ = """A constant operand in a matching function. @@ -393,13 +394,13 @@ double_value: Double value of the operand if it is a double type. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.Operand.ConstantOperand) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.common.Operand.ConstantOperand) )) , FeedAttributeOperand = _reflection.GeneratedProtocolMessageType('FeedAttributeOperand', (_message.Message,), dict( DESCRIPTOR = _OPERAND_FEEDATTRIBUTEOPERAND, - __module__ = 'google.ads.googleads_v1.proto.common.matching_function_pb2' + __module__ = 'google.ads.googleads_v4.proto.common.matching_function_pb2' , __doc__ = """A feed attribute operand in a matching function. Used to represent a feed attribute in feed. @@ -411,13 +412,13 @@ feed_attribute_id: Id of the referenced feed attribute. Required. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.Operand.FeedAttributeOperand) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.common.Operand.FeedAttributeOperand) )) , FunctionOperand = _reflection.GeneratedProtocolMessageType('FunctionOperand', (_message.Message,), dict( DESCRIPTOR = _OPERAND_FUNCTIONOPERAND, - __module__ = 'google.ads.googleads_v1.proto.common.matching_function_pb2' + __module__ = 'google.ads.googleads_v4.proto.common.matching_function_pb2' , __doc__ = """A function operand in a matching function. Used to represent nested functions. @@ -427,13 +428,13 @@ matching_function: The matching function held in this operand. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.Operand.FunctionOperand) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.common.Operand.FunctionOperand) )) , RequestContextOperand = _reflection.GeneratedProtocolMessageType('RequestContextOperand', (_message.Message,), dict( DESCRIPTOR = _OPERAND_REQUESTCONTEXTOPERAND, - __module__ = 'google.ads.googleads_v1.proto.common.matching_function_pb2' + __module__ = 'google.ads.googleads_v4.proto.common.matching_function_pb2' , __doc__ = """An operand in a function referring to a value in the request context. @@ -442,11 +443,11 @@ context_type: Type of value to be referred in the request context. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.Operand.RequestContextOperand) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.common.Operand.RequestContextOperand) )) , DESCRIPTOR = _OPERAND, - __module__ = 'google.ads.googleads_v1.proto.common.matching_function_pb2' + __module__ = 'google.ads.googleads_v4.proto.common.matching_function_pb2' , __doc__ = """An operand in a matching function. @@ -466,7 +467,7 @@ An operand in a function referring to a value in the request context. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.Operand) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.common.Operand) )) _sym_db.RegisterMessage(Operand) _sym_db.RegisterMessage(Operand.ConstantOperand) diff --git a/google/ads/google_ads/v1/proto/common/matching_function_pb2_grpc.py b/google/ads/google_ads/v4/proto/common/matching_function_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/common/matching_function_pb2_grpc.py rename to google/ads/google_ads/v4/proto/common/matching_function_pb2_grpc.py diff --git a/google/ads/google_ads/v4/proto/common/metrics_pb2.py b/google/ads/google_ads/v4/proto/common/metrics_pb2.py new file mode 100644 index 000000000..7131a2391 --- /dev/null +++ b/google/ads/google_ads/v4/proto/common/metrics_pb2.py @@ -0,0 +1,1429 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/common/metrics.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.ads.google_ads.v4.proto.enums import interaction_event_type_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_interaction__event__type__pb2 +from google.ads.google_ads.v4.proto.enums import quality_score_bucket_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_quality__score__bucket__pb2 +from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/common/metrics.proto', + package='google.ads.googleads.v4.common', + syntax='proto3', + serialized_options=_b('\n\"com.google.ads.googleads.v4.commonB\014MetricsProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/common;common\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V4.Common\312\002\036Google\\Ads\\GoogleAds\\V4\\Common\352\002\"Google::Ads::GoogleAds::V4::Common'), + serialized_pb=_b('\n2google/ads/googleads_v4/proto/common/metrics.proto\x12\x1egoogle.ads.googleads.v4.common\x1a@google/ads/googleads_v4/proto/enums/interaction_event_type.proto\x1a>google/ads/googleads_v4/proto/enums/quality_score_bucket.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1cgoogle/api/annotations.proto\"\xbf:\n\x07Metrics\x12H\n\"absolute_top_impression_percentage\x18_ \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12\x35\n\x0f\x61\x63tive_view_cpm\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12\x35\n\x0f\x61\x63tive_view_ctr\x18O \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12<\n\x17\x61\x63tive_view_impressions\x18\x02 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12?\n\x19\x61\x63tive_view_measurability\x18` \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12G\n\"active_view_measurable_cost_micros\x18\x03 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12G\n\"active_view_measurable_impressions\x18\x04 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12=\n\x17\x61\x63tive_view_viewability\x18\x61 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12L\n&all_conversions_from_interactions_rate\x18\x41 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12;\n\x15\x61ll_conversions_value\x18\x42 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12\x35\n\x0f\x61ll_conversions\x18\x07 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12\x44\n\x1e\x61ll_conversions_value_per_cost\x18> \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12H\n\"all_conversions_from_click_to_call\x18v \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12\x45\n\x1f\x61ll_conversions_from_directions\x18w \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12]\n7all_conversions_from_interactions_value_per_interaction\x18\x43 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12?\n\x19\x61ll_conversions_from_menu\x18x \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12@\n\x1a\x61ll_conversions_from_order\x18y \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12K\n%all_conversions_from_other_engagement\x18z \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12\x46\n all_conversions_from_store_visit\x18{ \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12H\n\"all_conversions_from_store_website\x18| \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12\x32\n\x0c\x61verage_cost\x18\x08 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12\x31\n\x0b\x61verage_cpc\x18\t \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12\x31\n\x0b\x61verage_cpe\x18\x62 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12\x31\n\x0b\x61verage_cpm\x18\n \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12\x31\n\x0b\x61verage_cpv\x18\x0b \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12\x38\n\x12\x61verage_page_views\x18\x63 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12:\n\x14\x61verage_time_on_site\x18T \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12?\n\x19\x62\x65nchmark_average_max_cpc\x18\x0e \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12\x33\n\rbenchmark_ctr\x18M \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12\x31\n\x0b\x62ounce_rate\x18\x0f \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12+\n\x06\x63licks\x18\x13 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x34\n\x0f\x63ombined_clicks\x18s \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12?\n\x19\x63ombined_clicks_per_query\x18t \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12\x35\n\x10\x63ombined_queries\x18u \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12J\n$content_budget_lost_impression_share\x18\x14 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12>\n\x18\x63ontent_impression_share\x18\x15 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12P\n*conversion_last_received_request_date_time\x18I \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x45\n\x1f\x63onversion_last_conversion_date\x18J \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12H\n\"content_rank_lost_impression_share\x18\x16 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12H\n\"conversions_from_interactions_rate\x18\x45 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12\x37\n\x11\x63onversions_value\x18\x46 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12@\n\x1a\x63onversions_value_per_cost\x18G \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12Y\n3conversions_from_interactions_value_per_interaction\x18H \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12\x31\n\x0b\x63onversions\x18\x19 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12\x30\n\x0b\x63ost_micros\x18\x1a \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12>\n\x18\x63ost_per_all_conversions\x18\x44 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12\x39\n\x13\x63ost_per_conversion\x18\x1c \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12R\n,cost_per_current_model_attributed_conversion\x18j \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12>\n\x18\x63ross_device_conversions\x18\x1d \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12)\n\x03\x63tr\x18\x1e \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12J\n$current_model_attributed_conversions\x18\x65 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12\x61\n;current_model_attributed_conversions_from_interactions_rate\x18\x66 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12r\nLcurrent_model_attributed_conversions_from_interactions_value_per_interaction\x18g \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12P\n*current_model_attributed_conversions_value\x18h \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12Y\n3current_model_attributed_conversions_value_per_cost\x18i \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12\x35\n\x0f\x65ngagement_rate\x18\x1f \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12\x30\n\x0b\x65ngagements\x18 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x45\n\x1fhotel_average_lead_value_micros\x18K \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12H\n!hotel_price_difference_percentage\x18\x81\x01 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12@\n\x1ahotel_eligible_impressions\x18\x82\x01 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12s\n!historical_creative_quality_score\x18P \x01(\x0e\x32H.google.ads.googleads.v4.enums.QualityScoreBucketEnum.QualityScoreBucket\x12w\n%historical_landing_page_quality_score\x18Q \x01(\x0e\x32H.google.ads.googleads.v4.enums.QualityScoreBucketEnum.QualityScoreBucket\x12=\n\x18historical_quality_score\x18R \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12q\n\x1fhistorical_search_predicted_ctr\x18S \x01(\x0e\x32H.google.ads.googleads.v4.enums.QualityScoreBucketEnum.QualityScoreBucket\x12\x33\n\x0egmail_forwards\x18U \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x30\n\x0bgmail_saves\x18V \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12;\n\x16gmail_secondary_clicks\x18W \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x41\n\x1cimpressions_from_store_reach\x18} \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x30\n\x0bimpressions\x18% \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x36\n\x10interaction_rate\x18& \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12\x31\n\x0cinteractions\x18\' \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12m\n\x17interaction_event_types\x18\x64 \x03(\x0e\x32L.google.ads.googleads.v4.enums.InteractionEventTypeEnum.InteractionEventType\x12\x38\n\x12invalid_click_rate\x18( \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12\x33\n\x0einvalid_clicks\x18) \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x32\n\rmessage_chats\x18~ \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x38\n\x13message_impressions\x18\x7f \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x38\n\x11message_chat_rate\x18\x80\x01 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12G\n!mobile_friendly_clicks_percentage\x18m \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12\x33\n\x0eorganic_clicks\x18n \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12>\n\x18organic_clicks_per_query\x18o \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12\x38\n\x13organic_impressions\x18p \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x43\n\x1dorganic_impressions_per_query\x18q \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12\x34\n\x0forganic_queries\x18r \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12:\n\x14percent_new_visitors\x18* \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12\x30\n\x0bphone_calls\x18+ \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x36\n\x11phone_impressions\x18, \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x38\n\x12phone_through_rate\x18- \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12\x32\n\x0crelative_ctr\x18. \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12J\n$search_absolute_top_impression_share\x18N \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12V\n0search_budget_lost_absolute_top_impression_share\x18X \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12I\n#search_budget_lost_impression_share\x18/ \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12M\n\'search_budget_lost_top_impression_share\x18Y \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12\x38\n\x12search_click_share\x18\x30 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12I\n#search_exact_match_impression_share\x18\x31 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12=\n\x17search_impression_share\x18\x32 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12T\n.search_rank_lost_absolute_top_impression_share\x18Z \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12G\n!search_rank_lost_impression_share\x18\x33 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12K\n%search_rank_lost_top_impression_share\x18[ \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12\x41\n\x1bsearch_top_impression_share\x18\\ \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12\x30\n\x0bspeed_score\x18k \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12?\n\x19top_impression_percentage\x18] \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12V\n0valid_accelerated_mobile_pages_clicks_percentage\x18l \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12?\n\x19value_per_all_conversions\x18\x34 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12:\n\x14value_per_conversion\x18\x35 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12S\n-value_per_current_model_attributed_conversion\x18^ \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12=\n\x17video_quartile_100_rate\x18\x36 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12<\n\x16video_quartile_25_rate\x18\x37 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12<\n\x16video_quartile_50_rate\x18\x38 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12<\n\x16video_quartile_75_rate\x18\x39 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12\x35\n\x0fvideo_view_rate\x18: \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12\x30\n\x0bvideo_views\x18; \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12=\n\x18view_through_conversions\x18< \x01(\x0b\x32\x1b.google.protobuf.Int64ValueB\xe7\x01\n\"com.google.ads.googleads.v4.commonB\x0cMetricsProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/common;common\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V4.Common\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V4\\Common\xea\x02\"Google::Ads::GoogleAds::V4::Commonb\x06proto3') + , + dependencies=[google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_interaction__event__type__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_quality__score__bucket__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + + +_METRICS = _descriptor.Descriptor( + name='Metrics', + full_name='google.ads.googleads.v4.common.Metrics', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='absolute_top_impression_percentage', full_name='google.ads.googleads.v4.common.Metrics.absolute_top_impression_percentage', index=0, + number=95, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='active_view_cpm', full_name='google.ads.googleads.v4.common.Metrics.active_view_cpm', index=1, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='active_view_ctr', full_name='google.ads.googleads.v4.common.Metrics.active_view_ctr', index=2, + number=79, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='active_view_impressions', full_name='google.ads.googleads.v4.common.Metrics.active_view_impressions', index=3, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='active_view_measurability', full_name='google.ads.googleads.v4.common.Metrics.active_view_measurability', index=4, + number=96, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='active_view_measurable_cost_micros', full_name='google.ads.googleads.v4.common.Metrics.active_view_measurable_cost_micros', index=5, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='active_view_measurable_impressions', full_name='google.ads.googleads.v4.common.Metrics.active_view_measurable_impressions', index=6, + number=4, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='active_view_viewability', full_name='google.ads.googleads.v4.common.Metrics.active_view_viewability', index=7, + number=97, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='all_conversions_from_interactions_rate', full_name='google.ads.googleads.v4.common.Metrics.all_conversions_from_interactions_rate', index=8, + number=65, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='all_conversions_value', full_name='google.ads.googleads.v4.common.Metrics.all_conversions_value', index=9, + number=66, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='all_conversions', full_name='google.ads.googleads.v4.common.Metrics.all_conversions', index=10, + number=7, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='all_conversions_value_per_cost', full_name='google.ads.googleads.v4.common.Metrics.all_conversions_value_per_cost', index=11, + number=62, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='all_conversions_from_click_to_call', full_name='google.ads.googleads.v4.common.Metrics.all_conversions_from_click_to_call', index=12, + number=118, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='all_conversions_from_directions', full_name='google.ads.googleads.v4.common.Metrics.all_conversions_from_directions', index=13, + number=119, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='all_conversions_from_interactions_value_per_interaction', full_name='google.ads.googleads.v4.common.Metrics.all_conversions_from_interactions_value_per_interaction', index=14, + number=67, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='all_conversions_from_menu', full_name='google.ads.googleads.v4.common.Metrics.all_conversions_from_menu', index=15, + number=120, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='all_conversions_from_order', full_name='google.ads.googleads.v4.common.Metrics.all_conversions_from_order', index=16, + number=121, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='all_conversions_from_other_engagement', full_name='google.ads.googleads.v4.common.Metrics.all_conversions_from_other_engagement', index=17, + number=122, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='all_conversions_from_store_visit', full_name='google.ads.googleads.v4.common.Metrics.all_conversions_from_store_visit', index=18, + number=123, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='all_conversions_from_store_website', full_name='google.ads.googleads.v4.common.Metrics.all_conversions_from_store_website', index=19, + number=124, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='average_cost', full_name='google.ads.googleads.v4.common.Metrics.average_cost', index=20, + number=8, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='average_cpc', full_name='google.ads.googleads.v4.common.Metrics.average_cpc', index=21, + number=9, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='average_cpe', full_name='google.ads.googleads.v4.common.Metrics.average_cpe', index=22, + number=98, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='average_cpm', full_name='google.ads.googleads.v4.common.Metrics.average_cpm', index=23, + number=10, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='average_cpv', full_name='google.ads.googleads.v4.common.Metrics.average_cpv', index=24, + number=11, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='average_page_views', full_name='google.ads.googleads.v4.common.Metrics.average_page_views', index=25, + number=99, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='average_time_on_site', full_name='google.ads.googleads.v4.common.Metrics.average_time_on_site', index=26, + number=84, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='benchmark_average_max_cpc', full_name='google.ads.googleads.v4.common.Metrics.benchmark_average_max_cpc', index=27, + number=14, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='benchmark_ctr', full_name='google.ads.googleads.v4.common.Metrics.benchmark_ctr', index=28, + number=77, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='bounce_rate', full_name='google.ads.googleads.v4.common.Metrics.bounce_rate', index=29, + number=15, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='clicks', full_name='google.ads.googleads.v4.common.Metrics.clicks', index=30, + number=19, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='combined_clicks', full_name='google.ads.googleads.v4.common.Metrics.combined_clicks', index=31, + number=115, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='combined_clicks_per_query', full_name='google.ads.googleads.v4.common.Metrics.combined_clicks_per_query', index=32, + number=116, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='combined_queries', full_name='google.ads.googleads.v4.common.Metrics.combined_queries', index=33, + number=117, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='content_budget_lost_impression_share', full_name='google.ads.googleads.v4.common.Metrics.content_budget_lost_impression_share', index=34, + number=20, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='content_impression_share', full_name='google.ads.googleads.v4.common.Metrics.content_impression_share', index=35, + number=21, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='conversion_last_received_request_date_time', full_name='google.ads.googleads.v4.common.Metrics.conversion_last_received_request_date_time', index=36, + number=73, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='conversion_last_conversion_date', full_name='google.ads.googleads.v4.common.Metrics.conversion_last_conversion_date', index=37, + number=74, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='content_rank_lost_impression_share', full_name='google.ads.googleads.v4.common.Metrics.content_rank_lost_impression_share', index=38, + number=22, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='conversions_from_interactions_rate', full_name='google.ads.googleads.v4.common.Metrics.conversions_from_interactions_rate', index=39, + number=69, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='conversions_value', full_name='google.ads.googleads.v4.common.Metrics.conversions_value', index=40, + number=70, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='conversions_value_per_cost', full_name='google.ads.googleads.v4.common.Metrics.conversions_value_per_cost', index=41, + number=71, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='conversions_from_interactions_value_per_interaction', full_name='google.ads.googleads.v4.common.Metrics.conversions_from_interactions_value_per_interaction', index=42, + number=72, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='conversions', full_name='google.ads.googleads.v4.common.Metrics.conversions', index=43, + number=25, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='cost_micros', full_name='google.ads.googleads.v4.common.Metrics.cost_micros', index=44, + number=26, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='cost_per_all_conversions', full_name='google.ads.googleads.v4.common.Metrics.cost_per_all_conversions', index=45, + number=68, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='cost_per_conversion', full_name='google.ads.googleads.v4.common.Metrics.cost_per_conversion', index=46, + number=28, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='cost_per_current_model_attributed_conversion', full_name='google.ads.googleads.v4.common.Metrics.cost_per_current_model_attributed_conversion', index=47, + number=106, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='cross_device_conversions', full_name='google.ads.googleads.v4.common.Metrics.cross_device_conversions', index=48, + number=29, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='ctr', full_name='google.ads.googleads.v4.common.Metrics.ctr', index=49, + number=30, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='current_model_attributed_conversions', full_name='google.ads.googleads.v4.common.Metrics.current_model_attributed_conversions', index=50, + number=101, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='current_model_attributed_conversions_from_interactions_rate', full_name='google.ads.googleads.v4.common.Metrics.current_model_attributed_conversions_from_interactions_rate', index=51, + number=102, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='current_model_attributed_conversions_from_interactions_value_per_interaction', full_name='google.ads.googleads.v4.common.Metrics.current_model_attributed_conversions_from_interactions_value_per_interaction', index=52, + number=103, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='current_model_attributed_conversions_value', full_name='google.ads.googleads.v4.common.Metrics.current_model_attributed_conversions_value', index=53, + number=104, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='current_model_attributed_conversions_value_per_cost', full_name='google.ads.googleads.v4.common.Metrics.current_model_attributed_conversions_value_per_cost', index=54, + number=105, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='engagement_rate', full_name='google.ads.googleads.v4.common.Metrics.engagement_rate', index=55, + number=31, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='engagements', full_name='google.ads.googleads.v4.common.Metrics.engagements', index=56, + number=32, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='hotel_average_lead_value_micros', full_name='google.ads.googleads.v4.common.Metrics.hotel_average_lead_value_micros', index=57, + number=75, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='hotel_price_difference_percentage', full_name='google.ads.googleads.v4.common.Metrics.hotel_price_difference_percentage', index=58, + number=129, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='hotel_eligible_impressions', full_name='google.ads.googleads.v4.common.Metrics.hotel_eligible_impressions', index=59, + number=130, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='historical_creative_quality_score', full_name='google.ads.googleads.v4.common.Metrics.historical_creative_quality_score', index=60, + number=80, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='historical_landing_page_quality_score', full_name='google.ads.googleads.v4.common.Metrics.historical_landing_page_quality_score', index=61, + number=81, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='historical_quality_score', full_name='google.ads.googleads.v4.common.Metrics.historical_quality_score', index=62, + number=82, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='historical_search_predicted_ctr', full_name='google.ads.googleads.v4.common.Metrics.historical_search_predicted_ctr', index=63, + number=83, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='gmail_forwards', full_name='google.ads.googleads.v4.common.Metrics.gmail_forwards', index=64, + number=85, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='gmail_saves', full_name='google.ads.googleads.v4.common.Metrics.gmail_saves', index=65, + number=86, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='gmail_secondary_clicks', full_name='google.ads.googleads.v4.common.Metrics.gmail_secondary_clicks', index=66, + number=87, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='impressions_from_store_reach', full_name='google.ads.googleads.v4.common.Metrics.impressions_from_store_reach', index=67, + number=125, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='impressions', full_name='google.ads.googleads.v4.common.Metrics.impressions', index=68, + number=37, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='interaction_rate', full_name='google.ads.googleads.v4.common.Metrics.interaction_rate', index=69, + number=38, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='interactions', full_name='google.ads.googleads.v4.common.Metrics.interactions', index=70, + number=39, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='interaction_event_types', full_name='google.ads.googleads.v4.common.Metrics.interaction_event_types', index=71, + number=100, type=14, cpp_type=8, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='invalid_click_rate', full_name='google.ads.googleads.v4.common.Metrics.invalid_click_rate', index=72, + number=40, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='invalid_clicks', full_name='google.ads.googleads.v4.common.Metrics.invalid_clicks', index=73, + number=41, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='message_chats', full_name='google.ads.googleads.v4.common.Metrics.message_chats', index=74, + number=126, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='message_impressions', full_name='google.ads.googleads.v4.common.Metrics.message_impressions', index=75, + number=127, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='message_chat_rate', full_name='google.ads.googleads.v4.common.Metrics.message_chat_rate', index=76, + number=128, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='mobile_friendly_clicks_percentage', full_name='google.ads.googleads.v4.common.Metrics.mobile_friendly_clicks_percentage', index=77, + number=109, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='organic_clicks', full_name='google.ads.googleads.v4.common.Metrics.organic_clicks', index=78, + number=110, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='organic_clicks_per_query', full_name='google.ads.googleads.v4.common.Metrics.organic_clicks_per_query', index=79, + number=111, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='organic_impressions', full_name='google.ads.googleads.v4.common.Metrics.organic_impressions', index=80, + number=112, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='organic_impressions_per_query', full_name='google.ads.googleads.v4.common.Metrics.organic_impressions_per_query', index=81, + number=113, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='organic_queries', full_name='google.ads.googleads.v4.common.Metrics.organic_queries', index=82, + number=114, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='percent_new_visitors', full_name='google.ads.googleads.v4.common.Metrics.percent_new_visitors', index=83, + number=42, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='phone_calls', full_name='google.ads.googleads.v4.common.Metrics.phone_calls', index=84, + number=43, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='phone_impressions', full_name='google.ads.googleads.v4.common.Metrics.phone_impressions', index=85, + number=44, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='phone_through_rate', full_name='google.ads.googleads.v4.common.Metrics.phone_through_rate', index=86, + number=45, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='relative_ctr', full_name='google.ads.googleads.v4.common.Metrics.relative_ctr', index=87, + number=46, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='search_absolute_top_impression_share', full_name='google.ads.googleads.v4.common.Metrics.search_absolute_top_impression_share', index=88, + number=78, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='search_budget_lost_absolute_top_impression_share', full_name='google.ads.googleads.v4.common.Metrics.search_budget_lost_absolute_top_impression_share', index=89, + number=88, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='search_budget_lost_impression_share', full_name='google.ads.googleads.v4.common.Metrics.search_budget_lost_impression_share', index=90, + number=47, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='search_budget_lost_top_impression_share', full_name='google.ads.googleads.v4.common.Metrics.search_budget_lost_top_impression_share', index=91, + number=89, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='search_click_share', full_name='google.ads.googleads.v4.common.Metrics.search_click_share', index=92, + number=48, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='search_exact_match_impression_share', full_name='google.ads.googleads.v4.common.Metrics.search_exact_match_impression_share', index=93, + number=49, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='search_impression_share', full_name='google.ads.googleads.v4.common.Metrics.search_impression_share', index=94, + number=50, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='search_rank_lost_absolute_top_impression_share', full_name='google.ads.googleads.v4.common.Metrics.search_rank_lost_absolute_top_impression_share', index=95, + number=90, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='search_rank_lost_impression_share', full_name='google.ads.googleads.v4.common.Metrics.search_rank_lost_impression_share', index=96, + number=51, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='search_rank_lost_top_impression_share', full_name='google.ads.googleads.v4.common.Metrics.search_rank_lost_top_impression_share', index=97, + number=91, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='search_top_impression_share', full_name='google.ads.googleads.v4.common.Metrics.search_top_impression_share', index=98, + number=92, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='speed_score', full_name='google.ads.googleads.v4.common.Metrics.speed_score', index=99, + number=107, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='top_impression_percentage', full_name='google.ads.googleads.v4.common.Metrics.top_impression_percentage', index=100, + number=93, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='valid_accelerated_mobile_pages_clicks_percentage', full_name='google.ads.googleads.v4.common.Metrics.valid_accelerated_mobile_pages_clicks_percentage', index=101, + number=108, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='value_per_all_conversions', full_name='google.ads.googleads.v4.common.Metrics.value_per_all_conversions', index=102, + number=52, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='value_per_conversion', full_name='google.ads.googleads.v4.common.Metrics.value_per_conversion', index=103, + number=53, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='value_per_current_model_attributed_conversion', full_name='google.ads.googleads.v4.common.Metrics.value_per_current_model_attributed_conversion', index=104, + number=94, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='video_quartile_100_rate', full_name='google.ads.googleads.v4.common.Metrics.video_quartile_100_rate', index=105, + number=54, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='video_quartile_25_rate', full_name='google.ads.googleads.v4.common.Metrics.video_quartile_25_rate', index=106, + number=55, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='video_quartile_50_rate', full_name='google.ads.googleads.v4.common.Metrics.video_quartile_50_rate', index=107, + number=56, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='video_quartile_75_rate', full_name='google.ads.googleads.v4.common.Metrics.video_quartile_75_rate', index=108, + number=57, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='video_view_rate', full_name='google.ads.googleads.v4.common.Metrics.video_view_rate', index=109, + number=58, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='video_views', full_name='google.ads.googleads.v4.common.Metrics.video_views', index=110, + number=59, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='view_through_conversions', full_name='google.ads.googleads.v4.common.Metrics.view_through_conversions', index=111, + number=60, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=279, + serialized_end=7766, +) + +_METRICS.fields_by_name['absolute_top_impression_percentage'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE +_METRICS.fields_by_name['active_view_cpm'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE +_METRICS.fields_by_name['active_view_ctr'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE +_METRICS.fields_by_name['active_view_impressions'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_METRICS.fields_by_name['active_view_measurability'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE +_METRICS.fields_by_name['active_view_measurable_cost_micros'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_METRICS.fields_by_name['active_view_measurable_impressions'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_METRICS.fields_by_name['active_view_viewability'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE +_METRICS.fields_by_name['all_conversions_from_interactions_rate'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE +_METRICS.fields_by_name['all_conversions_value'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE +_METRICS.fields_by_name['all_conversions'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE +_METRICS.fields_by_name['all_conversions_value_per_cost'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE +_METRICS.fields_by_name['all_conversions_from_click_to_call'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE +_METRICS.fields_by_name['all_conversions_from_directions'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE +_METRICS.fields_by_name['all_conversions_from_interactions_value_per_interaction'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE +_METRICS.fields_by_name['all_conversions_from_menu'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE +_METRICS.fields_by_name['all_conversions_from_order'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE +_METRICS.fields_by_name['all_conversions_from_other_engagement'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE +_METRICS.fields_by_name['all_conversions_from_store_visit'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE +_METRICS.fields_by_name['all_conversions_from_store_website'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE +_METRICS.fields_by_name['average_cost'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE +_METRICS.fields_by_name['average_cpc'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE +_METRICS.fields_by_name['average_cpe'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE +_METRICS.fields_by_name['average_cpm'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE +_METRICS.fields_by_name['average_cpv'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE +_METRICS.fields_by_name['average_page_views'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE +_METRICS.fields_by_name['average_time_on_site'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE +_METRICS.fields_by_name['benchmark_average_max_cpc'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE +_METRICS.fields_by_name['benchmark_ctr'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE +_METRICS.fields_by_name['bounce_rate'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE +_METRICS.fields_by_name['clicks'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_METRICS.fields_by_name['combined_clicks'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_METRICS.fields_by_name['combined_clicks_per_query'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE +_METRICS.fields_by_name['combined_queries'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_METRICS.fields_by_name['content_budget_lost_impression_share'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE +_METRICS.fields_by_name['content_impression_share'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE +_METRICS.fields_by_name['conversion_last_received_request_date_time'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_METRICS.fields_by_name['conversion_last_conversion_date'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_METRICS.fields_by_name['content_rank_lost_impression_share'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE +_METRICS.fields_by_name['conversions_from_interactions_rate'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE +_METRICS.fields_by_name['conversions_value'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE +_METRICS.fields_by_name['conversions_value_per_cost'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE +_METRICS.fields_by_name['conversions_from_interactions_value_per_interaction'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE +_METRICS.fields_by_name['conversions'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE +_METRICS.fields_by_name['cost_micros'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_METRICS.fields_by_name['cost_per_all_conversions'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE +_METRICS.fields_by_name['cost_per_conversion'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE +_METRICS.fields_by_name['cost_per_current_model_attributed_conversion'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE +_METRICS.fields_by_name['cross_device_conversions'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE +_METRICS.fields_by_name['ctr'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE +_METRICS.fields_by_name['current_model_attributed_conversions'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE +_METRICS.fields_by_name['current_model_attributed_conversions_from_interactions_rate'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE +_METRICS.fields_by_name['current_model_attributed_conversions_from_interactions_value_per_interaction'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE +_METRICS.fields_by_name['current_model_attributed_conversions_value'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE +_METRICS.fields_by_name['current_model_attributed_conversions_value_per_cost'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE +_METRICS.fields_by_name['engagement_rate'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE +_METRICS.fields_by_name['engagements'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_METRICS.fields_by_name['hotel_average_lead_value_micros'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE +_METRICS.fields_by_name['hotel_price_difference_percentage'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE +_METRICS.fields_by_name['hotel_eligible_impressions'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_METRICS.fields_by_name['historical_creative_quality_score'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_quality__score__bucket__pb2._QUALITYSCOREBUCKETENUM_QUALITYSCOREBUCKET +_METRICS.fields_by_name['historical_landing_page_quality_score'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_quality__score__bucket__pb2._QUALITYSCOREBUCKETENUM_QUALITYSCOREBUCKET +_METRICS.fields_by_name['historical_quality_score'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_METRICS.fields_by_name['historical_search_predicted_ctr'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_quality__score__bucket__pb2._QUALITYSCOREBUCKETENUM_QUALITYSCOREBUCKET +_METRICS.fields_by_name['gmail_forwards'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_METRICS.fields_by_name['gmail_saves'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_METRICS.fields_by_name['gmail_secondary_clicks'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_METRICS.fields_by_name['impressions_from_store_reach'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_METRICS.fields_by_name['impressions'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_METRICS.fields_by_name['interaction_rate'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE +_METRICS.fields_by_name['interactions'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_METRICS.fields_by_name['interaction_event_types'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_interaction__event__type__pb2._INTERACTIONEVENTTYPEENUM_INTERACTIONEVENTTYPE +_METRICS.fields_by_name['invalid_click_rate'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE +_METRICS.fields_by_name['invalid_clicks'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_METRICS.fields_by_name['message_chats'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_METRICS.fields_by_name['message_impressions'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_METRICS.fields_by_name['message_chat_rate'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE +_METRICS.fields_by_name['mobile_friendly_clicks_percentage'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE +_METRICS.fields_by_name['organic_clicks'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_METRICS.fields_by_name['organic_clicks_per_query'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE +_METRICS.fields_by_name['organic_impressions'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_METRICS.fields_by_name['organic_impressions_per_query'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE +_METRICS.fields_by_name['organic_queries'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_METRICS.fields_by_name['percent_new_visitors'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE +_METRICS.fields_by_name['phone_calls'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_METRICS.fields_by_name['phone_impressions'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_METRICS.fields_by_name['phone_through_rate'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE +_METRICS.fields_by_name['relative_ctr'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE +_METRICS.fields_by_name['search_absolute_top_impression_share'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE +_METRICS.fields_by_name['search_budget_lost_absolute_top_impression_share'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE +_METRICS.fields_by_name['search_budget_lost_impression_share'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE +_METRICS.fields_by_name['search_budget_lost_top_impression_share'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE +_METRICS.fields_by_name['search_click_share'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE +_METRICS.fields_by_name['search_exact_match_impression_share'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE +_METRICS.fields_by_name['search_impression_share'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE +_METRICS.fields_by_name['search_rank_lost_absolute_top_impression_share'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE +_METRICS.fields_by_name['search_rank_lost_impression_share'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE +_METRICS.fields_by_name['search_rank_lost_top_impression_share'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE +_METRICS.fields_by_name['search_top_impression_share'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE +_METRICS.fields_by_name['speed_score'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_METRICS.fields_by_name['top_impression_percentage'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE +_METRICS.fields_by_name['valid_accelerated_mobile_pages_clicks_percentage'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE +_METRICS.fields_by_name['value_per_all_conversions'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE +_METRICS.fields_by_name['value_per_conversion'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE +_METRICS.fields_by_name['value_per_current_model_attributed_conversion'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE +_METRICS.fields_by_name['video_quartile_100_rate'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE +_METRICS.fields_by_name['video_quartile_25_rate'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE +_METRICS.fields_by_name['video_quartile_50_rate'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE +_METRICS.fields_by_name['video_quartile_75_rate'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE +_METRICS.fields_by_name['video_view_rate'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE +_METRICS.fields_by_name['video_views'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_METRICS.fields_by_name['view_through_conversions'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +DESCRIPTOR.message_types_by_name['Metrics'] = _METRICS +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +Metrics = _reflection.GeneratedProtocolMessageType('Metrics', (_message.Message,), dict( + DESCRIPTOR = _METRICS, + __module__ = 'google.ads.googleads_v4.proto.common.metrics_pb2' + , + __doc__ = """Metrics data. + + + Attributes: + absolute_top_impression_percentage: + The percent of your ad impressions that are shown as the very + first ad above the organic search results. + active_view_cpm: + Average cost of viewable impressions + (``active_view_impressions``). + active_view_ctr: + Active view measurable clicks divided by active view viewable + impressions. This metric is reported only for display network. + active_view_impressions: + A measurement of how often your ad has become viewable on a + Display Network site. + active_view_measurability: + The ratio of impressions that could be measured by Active View + over the number of served impressions. + active_view_measurable_cost_micros: + The cost of the impressions you received that were measurable + by Active View. + active_view_measurable_impressions: + The number of times your ads are appearing on placements in + positions where they can be seen. + active_view_viewability: + The percentage of time when your ad appeared on an Active View + enabled site (measurable impressions) and was viewable + (viewable impressions). + all_conversions_from_interactions_rate: + All conversions from interactions (as oppose to view through + conversions) divided by the number of ad interactions. + all_conversions_value: + The value of all conversions. + all_conversions: + The total number of conversions. This includes all conversions + regardless of the value of include\_in\_conversions\_metric. + all_conversions_value_per_cost: + The value of all conversions divided by the total cost of ad + interactions (such as clicks for text ads or views for video + ads). + all_conversions_from_click_to_call: + The number of times people clicked the "Call" button to call a + store during or after clicking an ad. This number doesn't + include whether or not calls were connected, or the duration + of any calls. This metric applies to feed items only. + all_conversions_from_directions: + The number of times people clicked a "Get directions" button + to navigate to a store after clicking an ad. This metric + applies to feed items only. + all_conversions_from_interactions_value_per_interaction: + The value of all conversions from interactions divided by the + total number of interactions. + all_conversions_from_menu: + The number of times people clicked a link to view a store's + menu after clicking an ad. This metric applies to feed items + only. + all_conversions_from_order: + The number of times people placed an order at a store after + clicking an ad. This metric applies to feed items only. + all_conversions_from_other_engagement: + The number of other conversions (for example, posting a review + or saving a location for a store) that occurred after people + clicked an ad. This metric applies to feed items only. + all_conversions_from_store_visit: + Estimated number of times people visited a store after + clicking an ad. This metric applies to feed items only. + all_conversions_from_store_website: + The number of times that people were taken to a store's URL + after clicking an ad. This metric applies to feed items only. + average_cost: + The average amount you pay per interaction. This amount is the + total cost of your ads divided by the total number of + interactions. + average_cpc: + The total cost of all clicks divided by the total number of + clicks received. + average_cpe: + The average amount that you've been charged for an ad + engagement. This amount is the total cost of all ad + engagements divided by the total number of ad engagements. + average_cpm: + Average cost-per-thousand impressions (CPM). + average_cpv: + The average amount you pay each time someone views your ad. + The average CPV is defined by the total cost of all ad views + divided by the number of views. + average_page_views: + Average number of pages viewed per session. + average_time_on_site: + Total duration of all sessions (in seconds) / number of + sessions. Imported from Google Analytics. + benchmark_average_max_cpc: + An indication of how other advertisers are bidding on similar + products. + benchmark_ctr: + An indication on how other advertisers' Shopping ads for + similar products are performing based on how often people who + see their ad click on it. + bounce_rate: + Percentage of clicks where the user only visited a single page + on your site. Imported from Google Analytics. + clicks: + The number of clicks. + combined_clicks: + The number of times your ad or your site's listing in the + unpaid results was clicked. See the help page at + https://support.google.com/google-ads/answer/3097241 for + details. + combined_clicks_per_query: + The number of times your ad or your site's listing in the + unpaid results was clicked (combined\_clicks) divided by + combined\_queries. See the help page at + https://support.google.com/google-ads/answer/3097241 for + details. + combined_queries: + The number of searches that returned pages from your site in + the unpaid results or showed one of your text ads. See the + help page at https://support.google.com/google- + ads/answer/3097241 for details. + content_budget_lost_impression_share: + The estimated percent of times that your ad was eligible to + show on the Display Network but didn't because your budget was + too low. Note: Content budget lost impression share is + reported in the range of 0 to 0.9. Any value above 0.9 is + reported as 0.9001. + content_impression_share: + The impressions you've received on the Display Network divided + by the estimated number of impressions you were eligible to + receive. Note: Content impression share is reported in the + range of 0.1 to 1. Any value below 0.1 is reported as 0.0999. + conversion_last_received_request_date_time: + The last date/time a conversion tag for this conversion action + successfully fired and was seen by Google Ads. This firing + event may not have been the result of an attributable + conversion (e.g. because the tag was fired from a browser that + did not previously click an ad from an appropriate + advertiser). The date/time is in the customer's time zone. + conversion_last_conversion_date: + The date of the most recent conversion for this conversion + action. The date is in the customer's time zone. + content_rank_lost_impression_share: + The estimated percentage of impressions on the Display Network + that your ads didn't receive due to poor Ad Rank. Note: + Content rank lost impression share is reported in the range of + 0 to 0.9. Any value above 0.9 is reported as 0.9001. + conversions_from_interactions_rate: + Conversions from interactions divided by the number of ad + interactions (such as clicks for text ads or views for video + ads). This only includes conversion actions which + include\_in\_conversions\_metric attribute is set to true. If + you use conversion-based bidding, your bid strategies will + optimize for these conversions. + conversions_value: + The value of conversions. This only includes conversion + actions which include\_in\_conversions\_metric attribute is + set to true. If you use conversion-based bidding, your bid + strategies will optimize for these conversions. + conversions_value_per_cost: + The value of conversions divided by the cost of ad + interactions. This only includes conversion actions which + include\_in\_conversions\_metric attribute is set to true. If + you use conversion-based bidding, your bid strategies will + optimize for these conversions. + conversions_from_interactions_value_per_interaction: + The value of conversions from interactions divided by the + number of ad interactions. This only includes conversion + actions which include\_in\_conversions\_metric attribute is + set to true. If you use conversion-based bidding, your bid + strategies will optimize for these conversions. + conversions: + The number of conversions. This only includes conversion + actions which include\_in\_conversions\_metric attribute is + set to true. If you use conversion-based bidding, your bid + strategies will optimize for these conversions. + cost_micros: + The sum of your cost-per-click (CPC) and cost-per-thousand + impressions (CPM) costs during this period. + cost_per_all_conversions: + The cost of ad interactions divided by all conversions. + cost_per_conversion: + The cost of ad interactions divided by conversions. This only + includes conversion actions which + include\_in\_conversions\_metric attribute is set to true. If + you use conversion-based bidding, your bid strategies will + optimize for these conversions. + cost_per_current_model_attributed_conversion: + The cost of ad interactions divided by current model + attributed conversions. This only includes conversion actions + which include\_in\_conversions\_metric attribute is set to + true. If you use conversion-based bidding, your bid strategies + will optimize for these conversions. + cross_device_conversions: + Conversions from when a customer clicks on a Google Ads ad on + one device, then converts on a different device or browser. + Cross-device conversions are already included in + all\_conversions. + ctr: + The number of clicks your ad receives (Clicks) divided by the + number of times your ad is shown (Impressions). + current_model_attributed_conversions: + Shows how your historic conversions data would look under the + attribution model you've currently selected. This only + includes conversion actions which + include\_in\_conversions\_metric attribute is set to true. If + you use conversion-based bidding, your bid strategies will + optimize for these conversions. + current_model_attributed_conversions_from_interactions_rate: + Current model attributed conversions from interactions divided + by the number of ad interactions (such as clicks for text ads + or views for video ads). This only includes conversion actions + which include\_in\_conversions\_metric attribute is set to + true. If you use conversion-based bidding, your bid strategies + will optimize for these conversions. + current_model_attributed_conversions_from_interactions_value_per_interaction: + The value of current model attributed conversions from + interactions divided by the number of ad interactions. This + only includes conversion actions which + include\_in\_conversions\_metric attribute is set to true. If + you use conversion-based bidding, your bid strategies will + optimize for these conversions. + current_model_attributed_conversions_value: + The value of current model attributed conversions. This only + includes conversion actions which + include\_in\_conversions\_metric attribute is set to true. If + you use conversion-based bidding, your bid strategies will + optimize for these conversions. + current_model_attributed_conversions_value_per_cost: + The value of current model attributed conversions divided by + the cost of ad interactions. This only includes conversion + actions which include\_in\_conversions\_metric attribute is + set to true. If you use conversion-based bidding, your bid + strategies will optimize for these conversions. + engagement_rate: + How often people engage with your ad after it's shown to them. + This is the number of ad expansions divided by the number of + times your ad is shown. + engagements: + The number of engagements. An engagement occurs when a viewer + expands your Lightbox ad. Also, in the future, other ad types + may support engagement metrics. + hotel_average_lead_value_micros: + Average lead value based on clicks. + hotel_price_difference_percentage: + The average price difference between the price offered by + reporting hotel advertiser and the cheapest price offered by + the competing advertiser. + hotel_eligible_impressions: + The number of impressions that hotel partners could have had + given their feed performance. + historical_creative_quality_score: + The creative historical quality score. + historical_landing_page_quality_score: + The quality of historical landing page experience. + historical_quality_score: + The historical quality score. + historical_search_predicted_ctr: + The historical search predicted click through rate (CTR). + gmail_forwards: + The number of times the ad was forwarded to someone else as a + message. + gmail_saves: + The number of times someone has saved your Gmail ad to their + inbox as a message. + gmail_secondary_clicks: + The number of clicks to the landing page on the expanded state + of Gmail ads. + impressions_from_store_reach: + The number of times a store's location-based ad was shown. + This metric applies to feed items only. + impressions: + Count of how often your ad has appeared on a search results + page or website on the Google Network. + interaction_rate: + How often people interact with your ad after it is shown to + them. This is the number of interactions divided by the number + of times your ad is shown. + interactions: + The number of interactions. An interaction is the main user + action associated with an ad format-clicks for text and + shopping ads, views for video ads, and so on. + interaction_event_types: + The types of payable and free interactions. + invalid_click_rate: + The percentage of clicks filtered out of your total number of + clicks (filtered + non-filtered clicks) during the reporting + period. + invalid_clicks: + Number of clicks Google considers illegitimate and doesn't + charge you for. + message_chats: + Number of message chats initiated for Click To Message + impressions that were message tracking eligible. + message_impressions: + Number of Click To Message impressions that were message + tracking eligible. + message_chat_rate: + Number of message chats initiated (message\_chats) divided by + the number of message impressions (message\_impressions). Rate + at which a user initiates a message chat from an ad impression + with a messaging option and message tracking enabled. Note + that this rate can be more than 1.0 for a given message + impression. + mobile_friendly_clicks_percentage: + The percentage of mobile clicks that go to a mobile-friendly + page. + organic_clicks: + The number of times someone clicked your site's listing in the + unpaid results for a particular query. See the help page at + https://support.google.com/google-ads/answer/3097241 for + details. + organic_clicks_per_query: + The number of times someone clicked your site's listing in the + unpaid results (organic\_clicks) divided by the total number + of searches that returned pages from your site + (organic\_queries). See the help page at + https://support.google.com/google-ads/answer/3097241 for + details. + organic_impressions: + The number of listings for your site in the unpaid search + results. See the help page at + https://support.google.com/google-ads/answer/3097241 for + details. + organic_impressions_per_query: + The number of times a page from your site was listed in the + unpaid search results (organic\_impressions) divided by the + number of searches returning your site's listing in the unpaid + results (organic\_queries). See the help page at + https://support.google.com/google-ads/answer/3097241 for + details. + organic_queries: + The total number of searches that returned your site's listing + in the unpaid results. See the help page at + https://support.google.com/google-ads/answer/3097241 for + details. + percent_new_visitors: + Percentage of first-time sessions (from people who had never + visited your site before). Imported from Google Analytics. + phone_calls: + Number of offline phone calls. + phone_impressions: + Number of offline phone impressions. + phone_through_rate: + Number of phone calls received (phone\_calls) divided by the + number of times your phone number is shown + (phone\_impressions). + relative_ctr: + Your clickthrough rate (Ctr) divided by the average + clickthrough rate of all advertisers on the websites that show + your ads. Measures how your ads perform on Display Network + sites compared to other ads on the same sites. + search_absolute_top_impression_share: + The percentage of the customer's Shopping or Search ad + impressions that are shown in the most prominent Shopping + position. See https://support.google.com/google- + ads/answer/7501826 for details. Any value below 0.1 is + reported as 0.0999. + search_budget_lost_absolute_top_impression_share: + The number estimating how often your ad wasn't the very first + ad above the organic search results due to a low budget. Note: + Search budget lost absolute top impression share is reported + in the range of 0 to 0.9. Any value above 0.9 is reported as + 0.9001. + search_budget_lost_impression_share: + The estimated percent of times that your ad was eligible to + show on the Search Network but didn't because your budget was + too low. Note: Search budget lost impression share is reported + in the range of 0 to 0.9. Any value above 0.9 is reported as + 0.9001. + search_budget_lost_top_impression_share: + The number estimating how often your ad didn't show anywhere + above the organic search results due to a low budget. Note: + Search budget lost top impression share is reported in the + range of 0 to 0.9. Any value above 0.9 is reported as 0.9001. + search_click_share: + The number of clicks you've received on the Search Network + divided by the estimated number of clicks you were eligible to + receive. Note: Search click share is reported in the range of + 0.1 to 1. Any value below 0.1 is reported as 0.0999. + search_exact_match_impression_share: + The impressions you've received divided by the estimated + number of impressions you were eligible to receive on the + Search Network for search terms that matched your keywords + exactly (or were close variants of your keyword), regardless + of your keyword match types. Note: Search exact match + impression share is reported in the range of 0.1 to 1. Any + value below 0.1 is reported as 0.0999. + search_impression_share: + The impressions you've received on the Search Network divided + by the estimated number of impressions you were eligible to + receive. Note: Search impression share is reported in the + range of 0.1 to 1. Any value below 0.1 is reported as 0.0999. + search_rank_lost_absolute_top_impression_share: + The number estimating how often your ad wasn't the very first + ad above the organic search results due to poor Ad Rank. Note: + Search rank lost absolute top impression share is reported in + the range of 0 to 0.9. Any value above 0.9 is reported as + 0.9001. + search_rank_lost_impression_share: + The estimated percentage of impressions on the Search Network + that your ads didn't receive due to poor Ad Rank. Note: Search + rank lost impression share is reported in the range of 0 to + 0.9. Any value above 0.9 is reported as 0.9001. + search_rank_lost_top_impression_share: + The number estimating how often your ad didn't show anywhere + above the organic search results due to poor Ad Rank. Note: + Search rank lost top impression share is reported in the range + of 0 to 0.9. Any value above 0.9 is reported as 0.9001. + search_top_impression_share: + The impressions you've received in the top location (anywhere + above the organic search results) compared to the estimated + number of impressions you were eligible to receive in the top + location. Note: Search top impression share is reported in the + range of 0.1 to 1. Any value below 0.1 is reported as 0.0999. + speed_score: + A measure of how quickly your page loads after clicks on your + mobile ads. The score is a range from 1 to 10, 10 being the + fastest. + top_impression_percentage: + The percent of your ad impressions that are shown anywhere + above the organic search results. + valid_accelerated_mobile_pages_clicks_percentage: + The percentage of ad clicks to Accelerated Mobile Pages (AMP) + landing pages that reach a valid AMP page. + value_per_all_conversions: + The value of all conversions divided by the number of all + conversions. + value_per_conversion: + The value of conversions divided by the number of conversions. + This only includes conversion actions which + include\_in\_conversions\_metric attribute is set to true. If + you use conversion-based bidding, your bid strategies will + optimize for these conversions. + value_per_current_model_attributed_conversion: + The value of current model attributed conversions divided by + the number of the conversions. This only includes conversion + actions which include\_in\_conversions\_metric attribute is + set to true. If you use conversion-based bidding, your bid + strategies will optimize for these conversions. + video_quartile_100_rate: + Percentage of impressions where the viewer watched all of your + video. + video_quartile_25_rate: + Percentage of impressions where the viewer watched 25% of your + video. + video_quartile_50_rate: + Percentage of impressions where the viewer watched 50% of your + video. + video_quartile_75_rate: + Percentage of impressions where the viewer watched 75% of your + video. + video_view_rate: + The number of views your TrueView video ad receives divided by + its number of impressions, including thumbnail impressions for + TrueView in-display ads. + video_views: + The number of times your video ads were viewed. + view_through_conversions: + The total number of view-through conversions. These happen + when a customer sees an image or rich media ad, then later + completes a conversion on your site without interacting with + (e.g., clicking on) another ad. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.common.Metrics) + )) +_sym_db.RegisterMessage(Metrics) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/common/metrics_pb2_grpc.py b/google/ads/google_ads/v4/proto/common/metrics_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/common/metrics_pb2_grpc.py rename to google/ads/google_ads/v4/proto/common/metrics_pb2_grpc.py diff --git a/google/ads/google_ads/v4/proto/common/offline_user_data_pb2.py b/google/ads/google_ads/v4/proto/common/offline_user_data_pb2.py new file mode 100644 index 000000000..75f27b5cc --- /dev/null +++ b/google/ads/google_ads/v4/proto/common/offline_user_data_pb2.py @@ -0,0 +1,718 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/common/offline_user_data.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/common/offline_user_data.proto', + package='google.ads.googleads.v4.common', + syntax='proto3', + serialized_options=_b('\n\"com.google.ads.googleads.v4.commonB\024OfflineUserDataProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/common;common\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V4.Common\312\002\036Google\\Ads\\GoogleAds\\V4\\Common\352\002\"Google::Ads::GoogleAds::V4::Common'), + serialized_pb=_b('\n.google.ads.googleads.v4.enums.AdNetworkTypeEnum.AdNetworkType\x12J\n\nclick_type\x18\x1a \x01(\x0e\x32\x36.google.ads.googleads.v4.enums.ClickTypeEnum.ClickType\x12\x37\n\x11\x63onversion_action\x18\x34 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12x\n\x1a\x63onversion_action_category\x18\x35 \x01(\x0e\x32T.google.ads.googleads.v4.enums.ConversionActionCategoryEnum.ConversionActionCategory\x12<\n\x16\x63onversion_action_name\x18\x36 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x39\n\x15\x63onversion_adjustment\x18\x1b \x01(\x0b\x32\x1a.google.protobuf.BoolValue\x12\x8b\x01\n!conversion_attribution_event_type\x18\x02 \x01(\x0e\x32`.google.ads.googleads.v4.enums.ConversionAttributionEventTypeEnum.ConversionAttributionEventType\x12i\n\x15\x63onversion_lag_bucket\x18\x32 \x01(\x0e\x32J.google.ads.googleads.v4.enums.ConversionLagBucketEnum.ConversionLagBucket\x12\x8f\x01\n#conversion_or_adjustment_lag_bucket\x18\x33 \x01(\x0e\x32\x62.google.ads.googleads.v4.enums.ConversionOrAdjustmentLagBucketEnum.ConversionOrAdjustmentLagBucket\x12*\n\x04\x64\x61te\x18\x04 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12K\n\x0b\x64\x61y_of_week\x18\x05 \x01(\x0e\x32\x36.google.ads.googleads.v4.enums.DayOfWeekEnum.DayOfWeek\x12@\n\x06\x64\x65vice\x18\x01 \x01(\x0e\x32\x30.google.ads.googleads.v4.enums.DeviceEnum.Device\x12x\n\x1a\x65xternal_conversion_source\x18\x37 \x01(\x0e\x32T.google.ads.googleads.v4.enums.ExternalConversionSourceEnum.ExternalConversionSource\x12\x38\n\x12geo_target_airport\x18\x41 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x37\n\x11geo_target_canton\x18L \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x35\n\x0fgeo_target_city\x18> \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x38\n\x12geo_target_country\x18M \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x37\n\x11geo_target_county\x18\x44 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x39\n\x13geo_target_district\x18\x45 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x36\n\x10geo_target_metro\x18? \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12G\n!geo_target_most_specific_location\x18H \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12<\n\x16geo_target_postal_code\x18G \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x39\n\x13geo_target_province\x18K \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x37\n\x11geo_target_region\x18@ \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x36\n\x10geo_target_state\x18\x43 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12>\n\x19hotel_booking_window_days\x18\x06 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x34\n\x0fhotel_center_id\x18\x07 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x39\n\x13hotel_check_in_date\x18\x08 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12Z\n\x1ahotel_check_in_day_of_week\x18\t \x01(\x0e\x32\x36.google.ads.googleads.v4.enums.DayOfWeekEnum.DayOfWeek\x12\x30\n\nhotel_city\x18\n \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x30\n\x0bhotel_class\x18\x0b \x01(\x0b\x32\x1b.google.protobuf.Int32Value\x12\x33\n\rhotel_country\x18\x0c \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12s\n\x19hotel_date_selection_type\x18\r \x01(\x0e\x32P.google.ads.googleads.v4.enums.HotelDateSelectionTypeEnum.HotelDateSelectionType\x12\x39\n\x14hotel_length_of_stay\x18\x0e \x01(\x0b\x32\x1b.google.protobuf.Int32Value\x12\x38\n\x12hotel_rate_rule_id\x18I \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12W\n\x0fhotel_rate_type\x18J \x01(\x0e\x32>.google.ads.googleads.v4.enums.HotelRateTypeEnum.HotelRateType\x12`\n\x12hotel_price_bucket\x18N \x01(\x0e\x32\x44.google.ads.googleads.v4.enums.HotelPriceBucketEnum.HotelPriceBucket\x12\x31\n\x0bhotel_state\x18\x0f \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12)\n\x04hour\x18\x10 \x01(\x0b\x32\x1b.google.protobuf.Int32Value\x12\x41\n\x1dinteraction_on_this_extension\x18\x31 \x01(\x0b\x32\x1a.google.protobuf.BoolValue\x12\x38\n\x07keyword\x18= \x01(\x0b\x32\'.google.ads.googleads.v4.common.Keyword\x12+\n\x05month\x18\x11 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12Q\n\rmonth_of_year\x18\x12 \x01(\x0e\x32:.google.ads.googleads.v4.enums.MonthOfYearEnum.MonthOfYear\x12\x36\n\x10partner_hotel_id\x18\x13 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\\\n\x10placeholder_type\x18\x14 \x01(\x0e\x32\x42.google.ads.googleads.v4.enums.PlaceholderTypeEnum.PlaceholderType\x12;\n\x15product_aggregator_id\x18\x1c \x01(\x0b\x32\x1c.google.protobuf.UInt64Value\x12\x45\n\x1fproduct_bidding_category_level1\x18\x38 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x45\n\x1fproduct_bidding_category_level2\x18\x39 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x45\n\x1fproduct_bidding_category_level3\x18: \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x45\n\x1fproduct_bidding_category_level4\x18; \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x45\n\x1fproduct_bidding_category_level5\x18< \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x33\n\rproduct_brand\x18\x1d \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12Y\n\x0fproduct_channel\x18\x1e \x01(\x0e\x32@.google.ads.googleads.v4.enums.ProductChannelEnum.ProductChannel\x12{\n\x1bproduct_channel_exclusivity\x18\x1f \x01(\x0e\x32V.google.ads.googleads.v4.enums.ProductChannelExclusivityEnum.ProductChannelExclusivity\x12_\n\x11product_condition\x18 \x01(\x0e\x32\x44.google.ads.googleads.v4.enums.ProductConditionEnum.ProductCondition\x12\x35\n\x0fproduct_country\x18! \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12?\n\x19product_custom_attribute0\x18\" \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12?\n\x19product_custom_attribute1\x18# \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12?\n\x19product_custom_attribute2\x18$ \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12?\n\x19product_custom_attribute3\x18% \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12?\n\x19product_custom_attribute4\x18& \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x35\n\x0fproduct_item_id\x18\' \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x36\n\x10product_language\x18( \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x39\n\x13product_merchant_id\x18) \x01(\x0b\x32\x1c.google.protobuf.UInt64Value\x12\x36\n\x10product_store_id\x18* \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x33\n\rproduct_title\x18+ \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x35\n\x0fproduct_type_l1\x18, \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x35\n\x0fproduct_type_l2\x18- \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x35\n\x0fproduct_type_l3\x18. \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x35\n\x0fproduct_type_l4\x18/ \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x35\n\x0fproduct_type_l5\x18\x30 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12-\n\x07quarter\x18\x15 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x83\x01\n\x1fsearch_engine_results_page_type\x18\x46 \x01(\x0e\x32Z.google.ads.googleads.v4.enums.SearchEngineResultsPageTypeEnum.SearchEngineResultsPageType\x12j\n\x16search_term_match_type\x18\x16 \x01(\x0e\x32J.google.ads.googleads.v4.enums.SearchTermMatchTypeEnum.SearchTermMatchType\x12:\n\x04slot\x18\x17 \x01(\x0e\x32,.google.ads.googleads.v4.enums.SlotEnum.Slot\x12-\n\x07webpage\x18\x42 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12*\n\x04week\x18\x18 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12)\n\x04year\x18\x19 \x01(\x0b\x32\x1b.google.protobuf.Int32Value\"~\n\x07Keyword\x12\x38\n\x12\x61\x64_group_criterion\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x39\n\x04info\x18\x02 \x01(\x0b\x32+.google.ads.googleads.v4.common.KeywordInfoB\xe8\x01\n\"com.google.ads.googleads.v4.commonB\rSegmentsProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/common;common\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V4.Common\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V4\\Common\xea\x02\"Google::Ads::GoogleAds::V4::Commonb\x06proto3') + , + dependencies=[google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_criteria__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_ad__network__type__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_click__type__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_conversion__action__category__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_conversion__attribution__event__type__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_conversion__lag__bucket__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_conversion__or__adjustment__lag__bucket__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_day__of__week__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_device__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_external__conversion__source__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_hotel__date__selection__type__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_hotel__price__bucket__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_hotel__rate__type__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_month__of__year__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_placeholder__type__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_product__channel__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_product__channel__exclusivity__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_product__condition__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_search__engine__results__page__type__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_search__term__match__type__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_slot__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + + +_SEGMENTS = _descriptor.Descriptor( + name='Segments', + full_name='google.ads.googleads.v4.common.Segments', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='ad_network_type', full_name='google.ads.googleads.v4.common.Segments.ad_network_type', index=0, + number=3, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='click_type', full_name='google.ads.googleads.v4.common.Segments.click_type', index=1, + number=26, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='conversion_action', full_name='google.ads.googleads.v4.common.Segments.conversion_action', index=2, + number=52, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='conversion_action_category', full_name='google.ads.googleads.v4.common.Segments.conversion_action_category', index=3, + number=53, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='conversion_action_name', full_name='google.ads.googleads.v4.common.Segments.conversion_action_name', index=4, + number=54, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='conversion_adjustment', full_name='google.ads.googleads.v4.common.Segments.conversion_adjustment', index=5, + number=27, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='conversion_attribution_event_type', full_name='google.ads.googleads.v4.common.Segments.conversion_attribution_event_type', index=6, + number=2, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='conversion_lag_bucket', full_name='google.ads.googleads.v4.common.Segments.conversion_lag_bucket', index=7, + number=50, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='conversion_or_adjustment_lag_bucket', full_name='google.ads.googleads.v4.common.Segments.conversion_or_adjustment_lag_bucket', index=8, + number=51, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='date', full_name='google.ads.googleads.v4.common.Segments.date', index=9, + number=4, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='day_of_week', full_name='google.ads.googleads.v4.common.Segments.day_of_week', index=10, + number=5, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='device', full_name='google.ads.googleads.v4.common.Segments.device', index=11, + number=1, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='external_conversion_source', full_name='google.ads.googleads.v4.common.Segments.external_conversion_source', index=12, + number=55, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='geo_target_airport', full_name='google.ads.googleads.v4.common.Segments.geo_target_airport', index=13, + number=65, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='geo_target_canton', full_name='google.ads.googleads.v4.common.Segments.geo_target_canton', index=14, + number=76, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='geo_target_city', full_name='google.ads.googleads.v4.common.Segments.geo_target_city', index=15, + number=62, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='geo_target_country', full_name='google.ads.googleads.v4.common.Segments.geo_target_country', index=16, + number=77, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='geo_target_county', full_name='google.ads.googleads.v4.common.Segments.geo_target_county', index=17, + number=68, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='geo_target_district', full_name='google.ads.googleads.v4.common.Segments.geo_target_district', index=18, + number=69, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='geo_target_metro', full_name='google.ads.googleads.v4.common.Segments.geo_target_metro', index=19, + number=63, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='geo_target_most_specific_location', full_name='google.ads.googleads.v4.common.Segments.geo_target_most_specific_location', index=20, + number=72, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='geo_target_postal_code', full_name='google.ads.googleads.v4.common.Segments.geo_target_postal_code', index=21, + number=71, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='geo_target_province', full_name='google.ads.googleads.v4.common.Segments.geo_target_province', index=22, + number=75, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='geo_target_region', full_name='google.ads.googleads.v4.common.Segments.geo_target_region', index=23, + number=64, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='geo_target_state', full_name='google.ads.googleads.v4.common.Segments.geo_target_state', index=24, + number=67, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='hotel_booking_window_days', full_name='google.ads.googleads.v4.common.Segments.hotel_booking_window_days', index=25, + number=6, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='hotel_center_id', full_name='google.ads.googleads.v4.common.Segments.hotel_center_id', index=26, + number=7, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='hotel_check_in_date', full_name='google.ads.googleads.v4.common.Segments.hotel_check_in_date', index=27, + number=8, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='hotel_check_in_day_of_week', full_name='google.ads.googleads.v4.common.Segments.hotel_check_in_day_of_week', index=28, + number=9, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='hotel_city', full_name='google.ads.googleads.v4.common.Segments.hotel_city', index=29, + number=10, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='hotel_class', full_name='google.ads.googleads.v4.common.Segments.hotel_class', index=30, + number=11, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='hotel_country', full_name='google.ads.googleads.v4.common.Segments.hotel_country', index=31, + number=12, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='hotel_date_selection_type', full_name='google.ads.googleads.v4.common.Segments.hotel_date_selection_type', index=32, + number=13, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='hotel_length_of_stay', full_name='google.ads.googleads.v4.common.Segments.hotel_length_of_stay', index=33, + number=14, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='hotel_rate_rule_id', full_name='google.ads.googleads.v4.common.Segments.hotel_rate_rule_id', index=34, + number=73, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='hotel_rate_type', full_name='google.ads.googleads.v4.common.Segments.hotel_rate_type', index=35, + number=74, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='hotel_price_bucket', full_name='google.ads.googleads.v4.common.Segments.hotel_price_bucket', index=36, + number=78, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='hotel_state', full_name='google.ads.googleads.v4.common.Segments.hotel_state', index=37, + number=15, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='hour', full_name='google.ads.googleads.v4.common.Segments.hour', index=38, + number=16, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='interaction_on_this_extension', full_name='google.ads.googleads.v4.common.Segments.interaction_on_this_extension', index=39, + number=49, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='keyword', full_name='google.ads.googleads.v4.common.Segments.keyword', index=40, + number=61, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='month', full_name='google.ads.googleads.v4.common.Segments.month', index=41, + number=17, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='month_of_year', full_name='google.ads.googleads.v4.common.Segments.month_of_year', index=42, + number=18, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='partner_hotel_id', full_name='google.ads.googleads.v4.common.Segments.partner_hotel_id', index=43, + number=19, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='placeholder_type', full_name='google.ads.googleads.v4.common.Segments.placeholder_type', index=44, + number=20, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='product_aggregator_id', full_name='google.ads.googleads.v4.common.Segments.product_aggregator_id', index=45, + number=28, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='product_bidding_category_level1', full_name='google.ads.googleads.v4.common.Segments.product_bidding_category_level1', index=46, + number=56, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='product_bidding_category_level2', full_name='google.ads.googleads.v4.common.Segments.product_bidding_category_level2', index=47, + number=57, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='product_bidding_category_level3', full_name='google.ads.googleads.v4.common.Segments.product_bidding_category_level3', index=48, + number=58, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='product_bidding_category_level4', full_name='google.ads.googleads.v4.common.Segments.product_bidding_category_level4', index=49, + number=59, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='product_bidding_category_level5', full_name='google.ads.googleads.v4.common.Segments.product_bidding_category_level5', index=50, + number=60, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='product_brand', full_name='google.ads.googleads.v4.common.Segments.product_brand', index=51, + number=29, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='product_channel', full_name='google.ads.googleads.v4.common.Segments.product_channel', index=52, + number=30, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='product_channel_exclusivity', full_name='google.ads.googleads.v4.common.Segments.product_channel_exclusivity', index=53, + number=31, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='product_condition', full_name='google.ads.googleads.v4.common.Segments.product_condition', index=54, + number=32, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='product_country', full_name='google.ads.googleads.v4.common.Segments.product_country', index=55, + number=33, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='product_custom_attribute0', full_name='google.ads.googleads.v4.common.Segments.product_custom_attribute0', index=56, + number=34, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='product_custom_attribute1', full_name='google.ads.googleads.v4.common.Segments.product_custom_attribute1', index=57, + number=35, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='product_custom_attribute2', full_name='google.ads.googleads.v4.common.Segments.product_custom_attribute2', index=58, + number=36, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='product_custom_attribute3', full_name='google.ads.googleads.v4.common.Segments.product_custom_attribute3', index=59, + number=37, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='product_custom_attribute4', full_name='google.ads.googleads.v4.common.Segments.product_custom_attribute4', index=60, + number=38, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='product_item_id', full_name='google.ads.googleads.v4.common.Segments.product_item_id', index=61, + number=39, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='product_language', full_name='google.ads.googleads.v4.common.Segments.product_language', index=62, + number=40, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='product_merchant_id', full_name='google.ads.googleads.v4.common.Segments.product_merchant_id', index=63, + number=41, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='product_store_id', full_name='google.ads.googleads.v4.common.Segments.product_store_id', index=64, + number=42, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='product_title', full_name='google.ads.googleads.v4.common.Segments.product_title', index=65, + number=43, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='product_type_l1', full_name='google.ads.googleads.v4.common.Segments.product_type_l1', index=66, + number=44, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='product_type_l2', full_name='google.ads.googleads.v4.common.Segments.product_type_l2', index=67, + number=45, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='product_type_l3', full_name='google.ads.googleads.v4.common.Segments.product_type_l3', index=68, + number=46, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='product_type_l4', full_name='google.ads.googleads.v4.common.Segments.product_type_l4', index=69, + number=47, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='product_type_l5', full_name='google.ads.googleads.v4.common.Segments.product_type_l5', index=70, + number=48, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='quarter', full_name='google.ads.googleads.v4.common.Segments.quarter', index=71, + number=21, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='search_engine_results_page_type', full_name='google.ads.googleads.v4.common.Segments.search_engine_results_page_type', index=72, + number=70, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='search_term_match_type', full_name='google.ads.googleads.v4.common.Segments.search_term_match_type', index=73, + number=22, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='slot', full_name='google.ads.googleads.v4.common.Segments.slot', index=74, + number=23, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='webpage', full_name='google.ads.googleads.v4.common.Segments.webpage', index=75, + number=66, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='week', full_name='google.ads.googleads.v4.common.Segments.week', index=76, + number=24, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='year', full_name='google.ads.googleads.v4.common.Segments.year', index=77, + number=25, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1469, + serialized_end=6894, +) + + +_KEYWORD = _descriptor.Descriptor( + name='Keyword', + full_name='google.ads.googleads.v4.common.Keyword', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='ad_group_criterion', full_name='google.ads.googleads.v4.common.Keyword.ad_group_criterion', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='info', full_name='google.ads.googleads.v4.common.Keyword.info', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=6896, + serialized_end=7022, +) + +_SEGMENTS.fields_by_name['ad_network_type'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_ad__network__type__pb2._ADNETWORKTYPEENUM_ADNETWORKTYPE +_SEGMENTS.fields_by_name['click_type'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_click__type__pb2._CLICKTYPEENUM_CLICKTYPE +_SEGMENTS.fields_by_name['conversion_action'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_SEGMENTS.fields_by_name['conversion_action_category'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_conversion__action__category__pb2._CONVERSIONACTIONCATEGORYENUM_CONVERSIONACTIONCATEGORY +_SEGMENTS.fields_by_name['conversion_action_name'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_SEGMENTS.fields_by_name['conversion_adjustment'].message_type = google_dot_protobuf_dot_wrappers__pb2._BOOLVALUE +_SEGMENTS.fields_by_name['conversion_attribution_event_type'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_conversion__attribution__event__type__pb2._CONVERSIONATTRIBUTIONEVENTTYPEENUM_CONVERSIONATTRIBUTIONEVENTTYPE +_SEGMENTS.fields_by_name['conversion_lag_bucket'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_conversion__lag__bucket__pb2._CONVERSIONLAGBUCKETENUM_CONVERSIONLAGBUCKET +_SEGMENTS.fields_by_name['conversion_or_adjustment_lag_bucket'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_conversion__or__adjustment__lag__bucket__pb2._CONVERSIONORADJUSTMENTLAGBUCKETENUM_CONVERSIONORADJUSTMENTLAGBUCKET +_SEGMENTS.fields_by_name['date'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_SEGMENTS.fields_by_name['day_of_week'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_day__of__week__pb2._DAYOFWEEKENUM_DAYOFWEEK +_SEGMENTS.fields_by_name['device'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_device__pb2._DEVICEENUM_DEVICE +_SEGMENTS.fields_by_name['external_conversion_source'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_external__conversion__source__pb2._EXTERNALCONVERSIONSOURCEENUM_EXTERNALCONVERSIONSOURCE +_SEGMENTS.fields_by_name['geo_target_airport'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_SEGMENTS.fields_by_name['geo_target_canton'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_SEGMENTS.fields_by_name['geo_target_city'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_SEGMENTS.fields_by_name['geo_target_country'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_SEGMENTS.fields_by_name['geo_target_county'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_SEGMENTS.fields_by_name['geo_target_district'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_SEGMENTS.fields_by_name['geo_target_metro'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_SEGMENTS.fields_by_name['geo_target_most_specific_location'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_SEGMENTS.fields_by_name['geo_target_postal_code'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_SEGMENTS.fields_by_name['geo_target_province'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_SEGMENTS.fields_by_name['geo_target_region'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_SEGMENTS.fields_by_name['geo_target_state'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_SEGMENTS.fields_by_name['hotel_booking_window_days'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_SEGMENTS.fields_by_name['hotel_center_id'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_SEGMENTS.fields_by_name['hotel_check_in_date'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_SEGMENTS.fields_by_name['hotel_check_in_day_of_week'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_day__of__week__pb2._DAYOFWEEKENUM_DAYOFWEEK +_SEGMENTS.fields_by_name['hotel_city'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_SEGMENTS.fields_by_name['hotel_class'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT32VALUE +_SEGMENTS.fields_by_name['hotel_country'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_SEGMENTS.fields_by_name['hotel_date_selection_type'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_hotel__date__selection__type__pb2._HOTELDATESELECTIONTYPEENUM_HOTELDATESELECTIONTYPE +_SEGMENTS.fields_by_name['hotel_length_of_stay'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT32VALUE +_SEGMENTS.fields_by_name['hotel_rate_rule_id'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_SEGMENTS.fields_by_name['hotel_rate_type'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_hotel__rate__type__pb2._HOTELRATETYPEENUM_HOTELRATETYPE +_SEGMENTS.fields_by_name['hotel_price_bucket'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_hotel__price__bucket__pb2._HOTELPRICEBUCKETENUM_HOTELPRICEBUCKET +_SEGMENTS.fields_by_name['hotel_state'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_SEGMENTS.fields_by_name['hour'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT32VALUE +_SEGMENTS.fields_by_name['interaction_on_this_extension'].message_type = google_dot_protobuf_dot_wrappers__pb2._BOOLVALUE +_SEGMENTS.fields_by_name['keyword'].message_type = _KEYWORD +_SEGMENTS.fields_by_name['month'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_SEGMENTS.fields_by_name['month_of_year'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_month__of__year__pb2._MONTHOFYEARENUM_MONTHOFYEAR +_SEGMENTS.fields_by_name['partner_hotel_id'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_SEGMENTS.fields_by_name['placeholder_type'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_placeholder__type__pb2._PLACEHOLDERTYPEENUM_PLACEHOLDERTYPE +_SEGMENTS.fields_by_name['product_aggregator_id'].message_type = google_dot_protobuf_dot_wrappers__pb2._UINT64VALUE +_SEGMENTS.fields_by_name['product_bidding_category_level1'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_SEGMENTS.fields_by_name['product_bidding_category_level2'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_SEGMENTS.fields_by_name['product_bidding_category_level3'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_SEGMENTS.fields_by_name['product_bidding_category_level4'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_SEGMENTS.fields_by_name['product_bidding_category_level5'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_SEGMENTS.fields_by_name['product_brand'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_SEGMENTS.fields_by_name['product_channel'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_product__channel__pb2._PRODUCTCHANNELENUM_PRODUCTCHANNEL +_SEGMENTS.fields_by_name['product_channel_exclusivity'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_product__channel__exclusivity__pb2._PRODUCTCHANNELEXCLUSIVITYENUM_PRODUCTCHANNELEXCLUSIVITY +_SEGMENTS.fields_by_name['product_condition'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_product__condition__pb2._PRODUCTCONDITIONENUM_PRODUCTCONDITION +_SEGMENTS.fields_by_name['product_country'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_SEGMENTS.fields_by_name['product_custom_attribute0'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_SEGMENTS.fields_by_name['product_custom_attribute1'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_SEGMENTS.fields_by_name['product_custom_attribute2'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_SEGMENTS.fields_by_name['product_custom_attribute3'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_SEGMENTS.fields_by_name['product_custom_attribute4'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_SEGMENTS.fields_by_name['product_item_id'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_SEGMENTS.fields_by_name['product_language'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_SEGMENTS.fields_by_name['product_merchant_id'].message_type = google_dot_protobuf_dot_wrappers__pb2._UINT64VALUE +_SEGMENTS.fields_by_name['product_store_id'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_SEGMENTS.fields_by_name['product_title'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_SEGMENTS.fields_by_name['product_type_l1'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_SEGMENTS.fields_by_name['product_type_l2'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_SEGMENTS.fields_by_name['product_type_l3'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_SEGMENTS.fields_by_name['product_type_l4'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_SEGMENTS.fields_by_name['product_type_l5'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_SEGMENTS.fields_by_name['quarter'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_SEGMENTS.fields_by_name['search_engine_results_page_type'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_search__engine__results__page__type__pb2._SEARCHENGINERESULTSPAGETYPEENUM_SEARCHENGINERESULTSPAGETYPE +_SEGMENTS.fields_by_name['search_term_match_type'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_search__term__match__type__pb2._SEARCHTERMMATCHTYPEENUM_SEARCHTERMMATCHTYPE +_SEGMENTS.fields_by_name['slot'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_slot__pb2._SLOTENUM_SLOT +_SEGMENTS.fields_by_name['webpage'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_SEGMENTS.fields_by_name['week'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_SEGMENTS.fields_by_name['year'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT32VALUE +_KEYWORD.fields_by_name['ad_group_criterion'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_KEYWORD.fields_by_name['info'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_criteria__pb2._KEYWORDINFO +DESCRIPTOR.message_types_by_name['Segments'] = _SEGMENTS +DESCRIPTOR.message_types_by_name['Keyword'] = _KEYWORD +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +Segments = _reflection.GeneratedProtocolMessageType('Segments', (_message.Message,), dict( + DESCRIPTOR = _SEGMENTS, + __module__ = 'google.ads.googleads_v4.proto.common.segments_pb2' + , + __doc__ = """Segment only fields. + + + Attributes: + ad_network_type: + Ad network type. + click_type: + Click type. + conversion_action: + Resource name of the conversion action. + conversion_action_category: + Conversion action category. + conversion_action_name: + Conversion action name. + conversion_adjustment: + This segments your conversion columns by the original + conversion and conversion value vs. the delta if conversions + were adjusted. False row has the data as originally stated; + While true row has the delta between data now and the data as + originally stated. Summing the two together results post- + adjustment data. + conversion_attribution_event_type: + Conversion attribution event type. + conversion_lag_bucket: + An enum value representing the number of days between the + impression and the conversion. + conversion_or_adjustment_lag_bucket: + An enum value representing the number of days between the + impression and the conversion or between the impression and + adjustments to the conversion. + date: + Date to which metrics apply. yyyy-MM-dd format, e.g., + 2018-04-17. + day_of_week: + Day of the week, e.g., MONDAY. + device: + Device to which metrics apply. + external_conversion_source: + External conversion source. + geo_target_airport: + Resource name of the geo target constant that represents an + airport. + geo_target_canton: + Resource name of the geo target constant that represents a + canton. + geo_target_city: + Resource name of the geo target constant that represents a + city. + geo_target_country: + Resource name of the geo target constant that represents a + country. + geo_target_county: + Resource name of the geo target constant that represents a + county. + geo_target_district: + Resource name of the geo target constant that represents a + district. + geo_target_metro: + Resource name of the geo target constant that represents a + metro. + geo_target_most_specific_location: + Resource name of the geo target constant that represents the + most specific location. + geo_target_postal_code: + Resource name of the geo target constant that represents a + postal code. + geo_target_province: + Resource name of the geo target constant that represents a + province. + geo_target_region: + Resource name of the geo target constant that represents a + region. + geo_target_state: + Resource name of the geo target constant that represents a + state. + hotel_booking_window_days: + Hotel booking window in days. + hotel_center_id: + Hotel center ID. + hotel_check_in_date: + Hotel check-in date. Formatted as yyyy-MM-dd. + hotel_check_in_day_of_week: + Hotel check-in day of week. + hotel_city: + Hotel city. + hotel_class: + Hotel class. + hotel_country: + Hotel country. + hotel_date_selection_type: + Hotel date selection type. + hotel_length_of_stay: + Hotel length of stay. + hotel_rate_rule_id: + Hotel rate rule ID. + hotel_rate_type: + Hotel rate type. + hotel_price_bucket: + Hotel price bucket. + hotel_state: + Hotel state. + hour: + Hour of day as a number between 0 and 23, inclusive. + interaction_on_this_extension: + Only used with feed item metrics. Indicates whether the + interaction metrics occurred on the feed item itself or a + different extension or ad unit. + keyword: + Keyword criterion. + month: + Month as represented by the date of the first day of a month. + Formatted as yyyy-MM-dd. + month_of_year: + Month of the year, e.g., January. + partner_hotel_id: + Partner hotel ID. + placeholder_type: + Placeholder type. This is only used with feed item metrics. + product_aggregator_id: + Aggregator ID of the product. + product_bidding_category_level1: + Bidding category (level 1) of the product. + product_bidding_category_level2: + Bidding category (level 2) of the product. + product_bidding_category_level3: + Bidding category (level 3) of the product. + product_bidding_category_level4: + Bidding category (level 4) of the product. + product_bidding_category_level5: + Bidding category (level 5) of the product. + product_brand: + Brand of the product. + product_channel: + Channel of the product. + product_channel_exclusivity: + Channel exclusivity of the product. + product_condition: + Condition of the product. + product_country: + Resource name of the geo target constant for the country of + sale of the product. + product_custom_attribute0: + Custom attribute 0 of the product. + product_custom_attribute1: + Custom attribute 1 of the product. + product_custom_attribute2: + Custom attribute 2 of the product. + product_custom_attribute3: + Custom attribute 3 of the product. + product_custom_attribute4: + Custom attribute 4 of the product. + product_item_id: + Item ID of the product. + product_language: + Resource name of the language constant for the language of the + product. + product_merchant_id: + Merchant ID of the product. + product_store_id: + Store ID of the product. + product_title: + Title of the product. + product_type_l1: + Type (level 1) of the product. + product_type_l2: + Type (level 2) of the product. + product_type_l3: + Type (level 3) of the product. + product_type_l4: + Type (level 4) of the product. + product_type_l5: + Type (level 5) of the product. + quarter: + Quarter as represented by the date of the first day of a + quarter. Uses the calendar year for quarters, e.g., the second + quarter of 2018 starts on 2018-04-01. Formatted as yyyy-MM-dd. + search_engine_results_page_type: + Type of the search engine results page. + search_term_match_type: + Match type of the keyword that triggered the ad, including + variants. + slot: + Position of the ad. + webpage: + Resource name of the ad group criterion that represents + webpage criterion. + week: + Week as defined as Monday through Sunday, and represented by + the date of Monday. Formatted as yyyy-MM-dd. + year: + Year, formatted as yyyy. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.common.Segments) + )) +_sym_db.RegisterMessage(Segments) + +Keyword = _reflection.GeneratedProtocolMessageType('Keyword', (_message.Message,), dict( + DESCRIPTOR = _KEYWORD, + __module__ = 'google.ads.googleads_v4.proto.common.segments_pb2' + , + __doc__ = """A Keyword criterion segment. + + + Attributes: + ad_group_criterion: + The AdGroupCriterion resource name. + info: + Keyword info. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.common.Keyword) + )) +_sym_db.RegisterMessage(Keyword) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/common/simulation_pb2_grpc.py b/google/ads/google_ads/v4/proto/common/segments_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/common/simulation_pb2_grpc.py rename to google/ads/google_ads/v4/proto/common/segments_pb2_grpc.py diff --git a/google/ads/google_ads/v4/proto/common/simulation_pb2.py b/google/ads/google_ads/v4/proto/common/simulation_pb2.py new file mode 100644 index 000000000..dd588b385 --- /dev/null +++ b/google/ads/google_ads/v4/proto/common/simulation_pb2.py @@ -0,0 +1,871 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/common/simulation.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/common/simulation.proto', + package='google.ads.googleads.v4.common', + syntax='proto3', + serialized_options=_b('\n\"com.google.ads.googleads.v4.commonB\017SimulationProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/common;common\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V4.Common\312\002\036Google\\Ads\\GoogleAds\\V4\\Common\352\002\"Google::Ads::GoogleAds::V4::Common'), + serialized_pb=_b('\n5google/ads/googleads_v4/proto/common/simulation.proto\x12\x1egoogle.ads.googleads.v4.common\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1cgoogle/api/annotations.proto\"l\n\x1e\x42idModifierSimulationPointList\x12J\n\x06points\x18\x01 \x03(\x0b\x32:.google.ads.googleads.v4.common.BidModifierSimulationPoint\"b\n\x19\x43pcBidSimulationPointList\x12\x45\n\x06points\x18\x01 \x03(\x0b\x32\x35.google.ads.googleads.v4.common.CpcBidSimulationPoint\"b\n\x19\x43pvBidSimulationPointList\x12\x45\n\x06points\x18\x01 \x03(\x0b\x32\x35.google.ads.googleads.v4.common.CpvBidSimulationPoint\"h\n\x1cTargetCpaSimulationPointList\x12H\n\x06points\x18\x01 \x03(\x0b\x32\x38.google.ads.googleads.v4.common.TargetCpaSimulationPoint\"j\n\x1dTargetRoasSimulationPointList\x12I\n\x06points\x18\x01 \x03(\x0b\x32\x39.google.ads.googleads.v4.common.TargetRoasSimulationPoint\"\xd2\x06\n\x1a\x42idModifierSimulationPoint\x12\x32\n\x0c\x62id_modifier\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12:\n\x14\x62iddable_conversions\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12@\n\x1a\x62iddable_conversions_value\x18\x03 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12+\n\x06\x63licks\x18\x04 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x30\n\x0b\x63ost_micros\x18\x05 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x30\n\x0bimpressions\x18\x06 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x39\n\x14top_slot_impressions\x18\x07 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x41\n\x1bparent_biddable_conversions\x18\x08 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12G\n!parent_biddable_conversions_value\x18\t \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12\x32\n\rparent_clicks\x18\n \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x37\n\x12parent_cost_micros\x18\x0b \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x37\n\x12parent_impressions\x18\x0c \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12@\n\x1bparent_top_slot_impressions\x18\r \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x42\n\x1dparent_required_budget_micros\x18\x0e \x01(\x0b\x32\x1b.google.protobuf.Int64Value\"\x96\x03\n\x15\x43pcBidSimulationPoint\x12\x33\n\x0e\x63pc_bid_micros\x18\x01 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12:\n\x14\x62iddable_conversions\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12@\n\x1a\x62iddable_conversions_value\x18\x03 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12+\n\x06\x63licks\x18\x04 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x30\n\x0b\x63ost_micros\x18\x05 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x30\n\x0bimpressions\x18\x06 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x39\n\x14top_slot_impressions\x18\x07 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\"\xdc\x01\n\x15\x43pvBidSimulationPoint\x12\x33\n\x0e\x63pv_bid_micros\x18\x01 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x30\n\x0b\x63ost_micros\x18\x02 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x30\n\x0bimpressions\x18\x03 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12*\n\x05views\x18\x04 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\"\x9c\x03\n\x18TargetCpaSimulationPoint\x12\x36\n\x11target_cpa_micros\x18\x01 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12:\n\x14\x62iddable_conversions\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12@\n\x1a\x62iddable_conversions_value\x18\x03 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12+\n\x06\x63licks\x18\x04 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x30\n\x0b\x63ost_micros\x18\x05 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x30\n\x0bimpressions\x18\x06 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x39\n\x14top_slot_impressions\x18\x07 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\"\x98\x03\n\x19TargetRoasSimulationPoint\x12\x31\n\x0btarget_roas\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12:\n\x14\x62iddable_conversions\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12@\n\x1a\x62iddable_conversions_value\x18\x03 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12+\n\x06\x63licks\x18\x04 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x30\n\x0b\x63ost_micros\x18\x05 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x30\n\x0bimpressions\x18\x06 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x39\n\x14top_slot_impressions\x18\x07 \x01(\x0b\x32\x1b.google.protobuf.Int64ValueB\xea\x01\n\"com.google.ads.googleads.v4.commonB\x0fSimulationProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/common;common\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V4.Common\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V4\\Common\xea\x02\"Google::Ads::GoogleAds::V4::Commonb\x06proto3') + , + dependencies=[google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + + +_BIDMODIFIERSIMULATIONPOINTLIST = _descriptor.Descriptor( + name='BidModifierSimulationPointList', + full_name='google.ads.googleads.v4.common.BidModifierSimulationPointList', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='points', full_name='google.ads.googleads.v4.common.BidModifierSimulationPointList.points', index=0, + number=1, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=151, + serialized_end=259, +) + + +_CPCBIDSIMULATIONPOINTLIST = _descriptor.Descriptor( + name='CpcBidSimulationPointList', + full_name='google.ads.googleads.v4.common.CpcBidSimulationPointList', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='points', full_name='google.ads.googleads.v4.common.CpcBidSimulationPointList.points', index=0, + number=1, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=261, + serialized_end=359, +) + + +_CPVBIDSIMULATIONPOINTLIST = _descriptor.Descriptor( + name='CpvBidSimulationPointList', + full_name='google.ads.googleads.v4.common.CpvBidSimulationPointList', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='points', full_name='google.ads.googleads.v4.common.CpvBidSimulationPointList.points', index=0, + number=1, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=361, + serialized_end=459, +) + + +_TARGETCPASIMULATIONPOINTLIST = _descriptor.Descriptor( + name='TargetCpaSimulationPointList', + full_name='google.ads.googleads.v4.common.TargetCpaSimulationPointList', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='points', full_name='google.ads.googleads.v4.common.TargetCpaSimulationPointList.points', index=0, + number=1, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=461, + serialized_end=565, +) + + +_TARGETROASSIMULATIONPOINTLIST = _descriptor.Descriptor( + name='TargetRoasSimulationPointList', + full_name='google.ads.googleads.v4.common.TargetRoasSimulationPointList', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='points', full_name='google.ads.googleads.v4.common.TargetRoasSimulationPointList.points', index=0, + number=1, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=567, + serialized_end=673, +) + + +_BIDMODIFIERSIMULATIONPOINT = _descriptor.Descriptor( + name='BidModifierSimulationPoint', + full_name='google.ads.googleads.v4.common.BidModifierSimulationPoint', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='bid_modifier', full_name='google.ads.googleads.v4.common.BidModifierSimulationPoint.bid_modifier', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='biddable_conversions', full_name='google.ads.googleads.v4.common.BidModifierSimulationPoint.biddable_conversions', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='biddable_conversions_value', full_name='google.ads.googleads.v4.common.BidModifierSimulationPoint.biddable_conversions_value', index=2, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='clicks', full_name='google.ads.googleads.v4.common.BidModifierSimulationPoint.clicks', index=3, + number=4, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='cost_micros', full_name='google.ads.googleads.v4.common.BidModifierSimulationPoint.cost_micros', index=4, + number=5, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='impressions', full_name='google.ads.googleads.v4.common.BidModifierSimulationPoint.impressions', index=5, + number=6, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='top_slot_impressions', full_name='google.ads.googleads.v4.common.BidModifierSimulationPoint.top_slot_impressions', index=6, + number=7, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='parent_biddable_conversions', full_name='google.ads.googleads.v4.common.BidModifierSimulationPoint.parent_biddable_conversions', index=7, + number=8, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='parent_biddable_conversions_value', full_name='google.ads.googleads.v4.common.BidModifierSimulationPoint.parent_biddable_conversions_value', index=8, + number=9, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='parent_clicks', full_name='google.ads.googleads.v4.common.BidModifierSimulationPoint.parent_clicks', index=9, + number=10, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='parent_cost_micros', full_name='google.ads.googleads.v4.common.BidModifierSimulationPoint.parent_cost_micros', index=10, + number=11, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='parent_impressions', full_name='google.ads.googleads.v4.common.BidModifierSimulationPoint.parent_impressions', index=11, + number=12, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='parent_top_slot_impressions', full_name='google.ads.googleads.v4.common.BidModifierSimulationPoint.parent_top_slot_impressions', index=12, + number=13, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='parent_required_budget_micros', full_name='google.ads.googleads.v4.common.BidModifierSimulationPoint.parent_required_budget_micros', index=13, + number=14, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=676, + serialized_end=1526, +) + + +_CPCBIDSIMULATIONPOINT = _descriptor.Descriptor( + name='CpcBidSimulationPoint', + full_name='google.ads.googleads.v4.common.CpcBidSimulationPoint', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='cpc_bid_micros', full_name='google.ads.googleads.v4.common.CpcBidSimulationPoint.cpc_bid_micros', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='biddable_conversions', full_name='google.ads.googleads.v4.common.CpcBidSimulationPoint.biddable_conversions', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='biddable_conversions_value', full_name='google.ads.googleads.v4.common.CpcBidSimulationPoint.biddable_conversions_value', index=2, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='clicks', full_name='google.ads.googleads.v4.common.CpcBidSimulationPoint.clicks', index=3, + number=4, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='cost_micros', full_name='google.ads.googleads.v4.common.CpcBidSimulationPoint.cost_micros', index=4, + number=5, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='impressions', full_name='google.ads.googleads.v4.common.CpcBidSimulationPoint.impressions', index=5, + number=6, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='top_slot_impressions', full_name='google.ads.googleads.v4.common.CpcBidSimulationPoint.top_slot_impressions', index=6, + number=7, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1529, + serialized_end=1935, +) + + +_CPVBIDSIMULATIONPOINT = _descriptor.Descriptor( + name='CpvBidSimulationPoint', + full_name='google.ads.googleads.v4.common.CpvBidSimulationPoint', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='cpv_bid_micros', full_name='google.ads.googleads.v4.common.CpvBidSimulationPoint.cpv_bid_micros', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='cost_micros', full_name='google.ads.googleads.v4.common.CpvBidSimulationPoint.cost_micros', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='impressions', full_name='google.ads.googleads.v4.common.CpvBidSimulationPoint.impressions', index=2, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='views', full_name='google.ads.googleads.v4.common.CpvBidSimulationPoint.views', index=3, + number=4, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1938, + serialized_end=2158, +) + + +_TARGETCPASIMULATIONPOINT = _descriptor.Descriptor( + name='TargetCpaSimulationPoint', + full_name='google.ads.googleads.v4.common.TargetCpaSimulationPoint', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='target_cpa_micros', full_name='google.ads.googleads.v4.common.TargetCpaSimulationPoint.target_cpa_micros', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='biddable_conversions', full_name='google.ads.googleads.v4.common.TargetCpaSimulationPoint.biddable_conversions', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='biddable_conversions_value', full_name='google.ads.googleads.v4.common.TargetCpaSimulationPoint.biddable_conversions_value', index=2, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='clicks', full_name='google.ads.googleads.v4.common.TargetCpaSimulationPoint.clicks', index=3, + number=4, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='cost_micros', full_name='google.ads.googleads.v4.common.TargetCpaSimulationPoint.cost_micros', index=4, + number=5, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='impressions', full_name='google.ads.googleads.v4.common.TargetCpaSimulationPoint.impressions', index=5, + number=6, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='top_slot_impressions', full_name='google.ads.googleads.v4.common.TargetCpaSimulationPoint.top_slot_impressions', index=6, + number=7, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=2161, + serialized_end=2573, +) + + +_TARGETROASSIMULATIONPOINT = _descriptor.Descriptor( + name='TargetRoasSimulationPoint', + full_name='google.ads.googleads.v4.common.TargetRoasSimulationPoint', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='target_roas', full_name='google.ads.googleads.v4.common.TargetRoasSimulationPoint.target_roas', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='biddable_conversions', full_name='google.ads.googleads.v4.common.TargetRoasSimulationPoint.biddable_conversions', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='biddable_conversions_value', full_name='google.ads.googleads.v4.common.TargetRoasSimulationPoint.biddable_conversions_value', index=2, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='clicks', full_name='google.ads.googleads.v4.common.TargetRoasSimulationPoint.clicks', index=3, + number=4, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='cost_micros', full_name='google.ads.googleads.v4.common.TargetRoasSimulationPoint.cost_micros', index=4, + number=5, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='impressions', full_name='google.ads.googleads.v4.common.TargetRoasSimulationPoint.impressions', index=5, + number=6, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='top_slot_impressions', full_name='google.ads.googleads.v4.common.TargetRoasSimulationPoint.top_slot_impressions', index=6, + number=7, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=2576, + serialized_end=2984, +) + +_BIDMODIFIERSIMULATIONPOINTLIST.fields_by_name['points'].message_type = _BIDMODIFIERSIMULATIONPOINT +_CPCBIDSIMULATIONPOINTLIST.fields_by_name['points'].message_type = _CPCBIDSIMULATIONPOINT +_CPVBIDSIMULATIONPOINTLIST.fields_by_name['points'].message_type = _CPVBIDSIMULATIONPOINT +_TARGETCPASIMULATIONPOINTLIST.fields_by_name['points'].message_type = _TARGETCPASIMULATIONPOINT +_TARGETROASSIMULATIONPOINTLIST.fields_by_name['points'].message_type = _TARGETROASSIMULATIONPOINT +_BIDMODIFIERSIMULATIONPOINT.fields_by_name['bid_modifier'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE +_BIDMODIFIERSIMULATIONPOINT.fields_by_name['biddable_conversions'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE +_BIDMODIFIERSIMULATIONPOINT.fields_by_name['biddable_conversions_value'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE +_BIDMODIFIERSIMULATIONPOINT.fields_by_name['clicks'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_BIDMODIFIERSIMULATIONPOINT.fields_by_name['cost_micros'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_BIDMODIFIERSIMULATIONPOINT.fields_by_name['impressions'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_BIDMODIFIERSIMULATIONPOINT.fields_by_name['top_slot_impressions'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_BIDMODIFIERSIMULATIONPOINT.fields_by_name['parent_biddable_conversions'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE +_BIDMODIFIERSIMULATIONPOINT.fields_by_name['parent_biddable_conversions_value'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE +_BIDMODIFIERSIMULATIONPOINT.fields_by_name['parent_clicks'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_BIDMODIFIERSIMULATIONPOINT.fields_by_name['parent_cost_micros'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_BIDMODIFIERSIMULATIONPOINT.fields_by_name['parent_impressions'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_BIDMODIFIERSIMULATIONPOINT.fields_by_name['parent_top_slot_impressions'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_BIDMODIFIERSIMULATIONPOINT.fields_by_name['parent_required_budget_micros'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_CPCBIDSIMULATIONPOINT.fields_by_name['cpc_bid_micros'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_CPCBIDSIMULATIONPOINT.fields_by_name['biddable_conversions'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE +_CPCBIDSIMULATIONPOINT.fields_by_name['biddable_conversions_value'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE +_CPCBIDSIMULATIONPOINT.fields_by_name['clicks'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_CPCBIDSIMULATIONPOINT.fields_by_name['cost_micros'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_CPCBIDSIMULATIONPOINT.fields_by_name['impressions'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_CPCBIDSIMULATIONPOINT.fields_by_name['top_slot_impressions'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_CPVBIDSIMULATIONPOINT.fields_by_name['cpv_bid_micros'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_CPVBIDSIMULATIONPOINT.fields_by_name['cost_micros'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_CPVBIDSIMULATIONPOINT.fields_by_name['impressions'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_CPVBIDSIMULATIONPOINT.fields_by_name['views'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_TARGETCPASIMULATIONPOINT.fields_by_name['target_cpa_micros'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_TARGETCPASIMULATIONPOINT.fields_by_name['biddable_conversions'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE +_TARGETCPASIMULATIONPOINT.fields_by_name['biddable_conversions_value'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE +_TARGETCPASIMULATIONPOINT.fields_by_name['clicks'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_TARGETCPASIMULATIONPOINT.fields_by_name['cost_micros'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_TARGETCPASIMULATIONPOINT.fields_by_name['impressions'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_TARGETCPASIMULATIONPOINT.fields_by_name['top_slot_impressions'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_TARGETROASSIMULATIONPOINT.fields_by_name['target_roas'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE +_TARGETROASSIMULATIONPOINT.fields_by_name['biddable_conversions'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE +_TARGETROASSIMULATIONPOINT.fields_by_name['biddable_conversions_value'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE +_TARGETROASSIMULATIONPOINT.fields_by_name['clicks'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_TARGETROASSIMULATIONPOINT.fields_by_name['cost_micros'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_TARGETROASSIMULATIONPOINT.fields_by_name['impressions'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_TARGETROASSIMULATIONPOINT.fields_by_name['top_slot_impressions'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +DESCRIPTOR.message_types_by_name['BidModifierSimulationPointList'] = _BIDMODIFIERSIMULATIONPOINTLIST +DESCRIPTOR.message_types_by_name['CpcBidSimulationPointList'] = _CPCBIDSIMULATIONPOINTLIST +DESCRIPTOR.message_types_by_name['CpvBidSimulationPointList'] = _CPVBIDSIMULATIONPOINTLIST +DESCRIPTOR.message_types_by_name['TargetCpaSimulationPointList'] = _TARGETCPASIMULATIONPOINTLIST +DESCRIPTOR.message_types_by_name['TargetRoasSimulationPointList'] = _TARGETROASSIMULATIONPOINTLIST +DESCRIPTOR.message_types_by_name['BidModifierSimulationPoint'] = _BIDMODIFIERSIMULATIONPOINT +DESCRIPTOR.message_types_by_name['CpcBidSimulationPoint'] = _CPCBIDSIMULATIONPOINT +DESCRIPTOR.message_types_by_name['CpvBidSimulationPoint'] = _CPVBIDSIMULATIONPOINT +DESCRIPTOR.message_types_by_name['TargetCpaSimulationPoint'] = _TARGETCPASIMULATIONPOINT +DESCRIPTOR.message_types_by_name['TargetRoasSimulationPoint'] = _TARGETROASSIMULATIONPOINT +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +BidModifierSimulationPointList = _reflection.GeneratedProtocolMessageType('BidModifierSimulationPointList', (_message.Message,), dict( + DESCRIPTOR = _BIDMODIFIERSIMULATIONPOINTLIST, + __module__ = 'google.ads.googleads_v4.proto.common.simulation_pb2' + , + __doc__ = """A container for simulation points for simulations of type BID\_MODIFIER. + + + Attributes: + points: + Projected metrics for a series of bid modifier amounts. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.common.BidModifierSimulationPointList) + )) +_sym_db.RegisterMessage(BidModifierSimulationPointList) + +CpcBidSimulationPointList = _reflection.GeneratedProtocolMessageType('CpcBidSimulationPointList', (_message.Message,), dict( + DESCRIPTOR = _CPCBIDSIMULATIONPOINTLIST, + __module__ = 'google.ads.googleads_v4.proto.common.simulation_pb2' + , + __doc__ = """A container for simulation points for simulations of type CPC\_BID. + + + Attributes: + points: + Projected metrics for a series of CPC bid amounts. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.common.CpcBidSimulationPointList) + )) +_sym_db.RegisterMessage(CpcBidSimulationPointList) + +CpvBidSimulationPointList = _reflection.GeneratedProtocolMessageType('CpvBidSimulationPointList', (_message.Message,), dict( + DESCRIPTOR = _CPVBIDSIMULATIONPOINTLIST, + __module__ = 'google.ads.googleads_v4.proto.common.simulation_pb2' + , + __doc__ = """A container for simulation points for simulations of type CPV\_BID. + + + Attributes: + points: + Projected metrics for a series of CPV bid amounts. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.common.CpvBidSimulationPointList) + )) +_sym_db.RegisterMessage(CpvBidSimulationPointList) + +TargetCpaSimulationPointList = _reflection.GeneratedProtocolMessageType('TargetCpaSimulationPointList', (_message.Message,), dict( + DESCRIPTOR = _TARGETCPASIMULATIONPOINTLIST, + __module__ = 'google.ads.googleads_v4.proto.common.simulation_pb2' + , + __doc__ = """A container for simulation points for simulations of type TARGET\_CPA. + + + Attributes: + points: + Projected metrics for a series of target CPA amounts. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.common.TargetCpaSimulationPointList) + )) +_sym_db.RegisterMessage(TargetCpaSimulationPointList) + +TargetRoasSimulationPointList = _reflection.GeneratedProtocolMessageType('TargetRoasSimulationPointList', (_message.Message,), dict( + DESCRIPTOR = _TARGETROASSIMULATIONPOINTLIST, + __module__ = 'google.ads.googleads_v4.proto.common.simulation_pb2' + , + __doc__ = """A container for simulation points for simulations of type TARGET\_ROAS. + + + Attributes: + points: + Projected metrics for a series of target ROAS amounts. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.common.TargetRoasSimulationPointList) + )) +_sym_db.RegisterMessage(TargetRoasSimulationPointList) + +BidModifierSimulationPoint = _reflection.GeneratedProtocolMessageType('BidModifierSimulationPoint', (_message.Message,), dict( + DESCRIPTOR = _BIDMODIFIERSIMULATIONPOINT, + __module__ = 'google.ads.googleads_v4.proto.common.simulation_pb2' + , + __doc__ = """Projected metrics for a specific bid modifier amount. + + + Attributes: + bid_modifier: + The simulated bid modifier upon which projected metrics are + based. + biddable_conversions: + Projected number of biddable conversions. Only search + advertising channel type supports this field. + biddable_conversions_value: + Projected total value of biddable conversions. Only search + advertising channel type supports this field. + clicks: + Projected number of clicks. + cost_micros: + Projected cost in micros. + impressions: + Projected number of impressions. + top_slot_impressions: + Projected number of top slot impressions. Only search + advertising channel type supports this field. + parent_biddable_conversions: + Projected number of biddable conversions for the parent + resource. Only search advertising channel type supports this + field. + parent_biddable_conversions_value: + Projected total value of biddable conversions for the parent + resource. Only search advertising channel type supports this + field. + parent_clicks: + Projected number of clicks for the parent resource. + parent_cost_micros: + Projected cost in micros for the parent resource. + parent_impressions: + Projected number of impressions for the parent resource. + parent_top_slot_impressions: + Projected number of top slot impressions for the parent + resource. Only search advertising channel type supports this + field. + parent_required_budget_micros: + Projected minimum daily budget that must be available to the + parent resource to realize this simulation. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.common.BidModifierSimulationPoint) + )) +_sym_db.RegisterMessage(BidModifierSimulationPoint) + +CpcBidSimulationPoint = _reflection.GeneratedProtocolMessageType('CpcBidSimulationPoint', (_message.Message,), dict( + DESCRIPTOR = _CPCBIDSIMULATIONPOINT, + __module__ = 'google.ads.googleads_v4.proto.common.simulation_pb2' + , + __doc__ = """Projected metrics for a specific CPC bid amount. + + + Attributes: + cpc_bid_micros: + The simulated CPC bid upon which projected metrics are based. + biddable_conversions: + Projected number of biddable conversions. + biddable_conversions_value: + Projected total value of biddable conversions. + clicks: + Projected number of clicks. + cost_micros: + Projected cost in micros. + impressions: + Projected number of impressions. + top_slot_impressions: + Projected number of top slot impressions. Only search + advertising channel type supports this field. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.common.CpcBidSimulationPoint) + )) +_sym_db.RegisterMessage(CpcBidSimulationPoint) + +CpvBidSimulationPoint = _reflection.GeneratedProtocolMessageType('CpvBidSimulationPoint', (_message.Message,), dict( + DESCRIPTOR = _CPVBIDSIMULATIONPOINT, + __module__ = 'google.ads.googleads_v4.proto.common.simulation_pb2' + , + __doc__ = """Projected metrics for a specific CPV bid amount. + + + Attributes: + cpv_bid_micros: + The simulated CPV bid upon which projected metrics are based. + cost_micros: + Projected cost in micros. + impressions: + Projected number of impressions. + views: + Projected number of views. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.common.CpvBidSimulationPoint) + )) +_sym_db.RegisterMessage(CpvBidSimulationPoint) + +TargetCpaSimulationPoint = _reflection.GeneratedProtocolMessageType('TargetCpaSimulationPoint', (_message.Message,), dict( + DESCRIPTOR = _TARGETCPASIMULATIONPOINT, + __module__ = 'google.ads.googleads_v4.proto.common.simulation_pb2' + , + __doc__ = """Projected metrics for a specific target CPA amount. + + + Attributes: + target_cpa_micros: + The simulated target CPA upon which projected metrics are + based. + biddable_conversions: + Projected number of biddable conversions. + biddable_conversions_value: + Projected total value of biddable conversions. + clicks: + Projected number of clicks. + cost_micros: + Projected cost in micros. + impressions: + Projected number of impressions. + top_slot_impressions: + Projected number of top slot impressions. Only search + advertising channel type supports this field. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.common.TargetCpaSimulationPoint) + )) +_sym_db.RegisterMessage(TargetCpaSimulationPoint) + +TargetRoasSimulationPoint = _reflection.GeneratedProtocolMessageType('TargetRoasSimulationPoint', (_message.Message,), dict( + DESCRIPTOR = _TARGETROASSIMULATIONPOINT, + __module__ = 'google.ads.googleads_v4.proto.common.simulation_pb2' + , + __doc__ = """Projected metrics for a specific target ROAS amount. + + + Attributes: + target_roas: + The simulated target ROAS upon which projected metrics are + based. + biddable_conversions: + Projected number of biddable conversions. + biddable_conversions_value: + Projected total value of biddable conversions. + clicks: + Projected number of clicks. + cost_micros: + Projected cost in micros. + impressions: + Projected number of impressions. + top_slot_impressions: + Projected number of top slot impressions. Only Search + advertising channel type supports this field. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.common.TargetRoasSimulationPoint) + )) +_sym_db.RegisterMessage(TargetRoasSimulationPoint) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/common/tag_snippet_pb2_grpc.py b/google/ads/google_ads/v4/proto/common/simulation_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/common/tag_snippet_pb2_grpc.py rename to google/ads/google_ads/v4/proto/common/simulation_pb2_grpc.py diff --git a/google/ads/google_ads/v4/proto/common/tag_snippet_pb2.py b/google/ads/google_ads/v4/proto/common/tag_snippet_pb2.py new file mode 100644 index 000000000..704aba092 --- /dev/null +++ b/google/ads/google_ads/v4/proto/common/tag_snippet_pb2.py @@ -0,0 +1,119 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/common/tag_snippet.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.ads.google_ads.v4.proto.enums import tracking_code_page_format_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_tracking__code__page__format__pb2 +from google.ads.google_ads.v4.proto.enums import tracking_code_type_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_tracking__code__type__pb2 +from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/common/tag_snippet.proto', + package='google.ads.googleads.v4.common', + syntax='proto3', + serialized_options=_b('\n\"com.google.ads.googleads.v4.commonB\017TagSnippetProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/common;common\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V4.Common\312\002\036Google\\Ads\\GoogleAds\\V4\\Common\352\002\"Google::Ads::GoogleAds::V4::Common'), + serialized_pb=_b('\n6google/ads/googleads_v4/proto/common/tag_snippet.proto\x12\x1egoogle.ads.googleads.v4.common\x1a\x43google/ads/googleads_v4/proto/enums/tracking_code_page_format.proto\x1a\n\x04rule\x18\x01 \x01(\x0b\x32\x30.google.ads.googleads.v1.common.UserListRuleInfo\x12\x30\n\nstart_date\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12.\n\x08\x65nd_date\x18\x03 \x01(\x0b\x32\x1c.google.protobuf.StringValue\"\\\n\x1a\x45xpressionRuleUserListInfo\x12>\n\x04rule\x18\x01 \x01(\x0b\x32\x30.google.ads.googleads.v1.common.UserListRuleInfo\"\xcd\x03\n\x15RuleBasedUserListInfo\x12x\n\x14prepopulation_status\x18\x01 \x01(\x0e\x32Z.google.ads.googleads.v1.enums.UserListPrepopulationStatusEnum.UserListPrepopulationStatus\x12[\n\x17\x63ombined_rule_user_list\x18\x02 \x01(\x0b\x32\x38.google.ads.googleads.v1.common.CombinedRuleUserListInfoH\x00\x12\x64\n\x1c\x64\x61te_specific_rule_user_list\x18\x03 \x01(\x0b\x32<.google.ads.googleads.v1.common.DateSpecificRuleUserListInfoH\x00\x12_\n\x19\x65xpression_rule_user_list\x18\x04 \x01(\x0b\x32:.google.ads.googleads.v1.common.ExpressionRuleUserListInfoH\x00\x42\x16\n\x14rule_based_user_list\"]\n\x13LogicalUserListInfo\x12\x46\n\x05rules\x18\x01 \x03(\x0b\x32\x37.google.ads.googleads.v1.common.UserListLogicalRuleInfo\"\xda\x01\n\x17UserListLogicalRuleInfo\x12l\n\x08operator\x18\x01 \x01(\x0e\x32Z.google.ads.googleads.v1.enums.UserListLogicalRuleOperatorEnum.UserListLogicalRuleOperator\x12Q\n\rrule_operands\x18\x02 \x03(\x0b\x32:.google.ads.googleads.v1.common.LogicalUserListOperandInfo\"M\n\x1aLogicalUserListOperandInfo\x12/\n\tuser_list\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\"X\n\x11\x42\x61sicUserListInfo\x12\x43\n\x07\x61\x63tions\x18\x01 \x03(\x0b\x32\x32.google.ads.googleads.v1.common.UserListActionInfo\"\x9f\x01\n\x12UserListActionInfo\x12\x39\n\x11\x63onversion_action\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValueH\x00\x12:\n\x12remarketing_action\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValueH\x00\x42\x12\n\x10user_list_actionB\xe9\x01\n\"com.google.ads.googleads.v1.commonB\x0eUserListsProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/common;common\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V1.Common\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V1\\Common\xea\x02\"Google::Ads::GoogleAds::V1::Commonb\x06proto3') + serialized_options=_b('\n\"com.google.ads.googleads.v4.commonB\016UserListsProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/common;common\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V4.Common\312\002\036Google\\Ads\\GoogleAds\\V4\\Common\352\002\"Google::Ads::GoogleAds::V4::Common'), + serialized_pb=_b('\n5google/ads/googleads_v4/proto/common/user_lists.proto\x12\x1egoogle.ads.googleads.v4.common\x1aHgoogle/ads/googleads_v4/proto/enums/customer_match_upload_key_type.proto\x1aJgoogle/ads/googleads_v4/proto/enums/user_list_combined_rule_operator.proto\x1aHgoogle/ads/googleads_v4/proto/enums/user_list_crm_data_source_type.proto\x1aKgoogle/ads/googleads_v4/proto/enums/user_list_date_rule_item_operator.proto\x1aIgoogle/ads/googleads_v4/proto/enums/user_list_logical_rule_operator.proto\x1aMgoogle/ads/googleads_v4/proto/enums/user_list_number_rule_item_operator.proto\x1aHgoogle/ads/googleads_v4/proto/enums/user_list_prepopulation_status.proto\x1a=google/ads/googleads_v4/proto/enums/user_list_rule_type.proto\x1aMgoogle/ads/googleads_v4/proto/enums/user_list_string_rule_item_operator.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1cgoogle/api/annotations.proto\"K\n\x13SimilarUserListInfo\x12\x34\n\x0eseed_user_list\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\"\xa9\x02\n\x14\x43rmBasedUserListInfo\x12,\n\x06\x61pp_id\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12q\n\x0fupload_key_type\x18\x02 \x01(\x0e\x32X.google.ads.googleads.v4.enums.CustomerMatchUploadKeyTypeEnum.CustomerMatchUploadKeyType\x12p\n\x10\x64\x61ta_source_type\x18\x03 \x01(\x0e\x32V.google.ads.googleads.v4.enums.UserListCrmDataSourceTypeEnum.UserListCrmDataSourceType\"\xc0\x01\n\x10UserListRuleInfo\x12W\n\trule_type\x18\x01 \x01(\x0e\x32\x44.google.ads.googleads.v4.enums.UserListRuleTypeEnum.UserListRuleType\x12S\n\x10rule_item_groups\x18\x02 \x03(\x0b\x32\x39.google.ads.googleads.v4.common.UserListRuleItemGroupInfo\"e\n\x19UserListRuleItemGroupInfo\x12H\n\nrule_items\x18\x01 \x03(\x0b\x32\x34.google.ads.googleads.v4.common.UserListRuleItemInfo\"\xd3\x02\n\x14UserListRuleItemInfo\x12*\n\x04name\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12V\n\x10number_rule_item\x18\x02 \x01(\x0b\x32:.google.ads.googleads.v4.common.UserListNumberRuleItemInfoH\x00\x12V\n\x10string_rule_item\x18\x03 \x01(\x0b\x32:.google.ads.googleads.v4.common.UserListStringRuleItemInfoH\x00\x12R\n\x0e\x64\x61te_rule_item\x18\x04 \x01(\x0b\x32\x38.google.ads.googleads.v4.common.UserListDateRuleItemInfoH\x00\x42\x0b\n\trule_item\"\xec\x01\n\x18UserListDateRuleItemInfo\x12n\n\x08operator\x18\x01 \x01(\x0e\x32\\.google.ads.googleads.v4.enums.UserListDateRuleItemOperatorEnum.UserListDateRuleItemOperator\x12+\n\x05value\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x33\n\x0eoffset_in_days\x18\x03 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\"\xbd\x01\n\x1aUserListNumberRuleItemInfo\x12r\n\x08operator\x18\x01 \x01(\x0e\x32`.google.ads.googleads.v4.enums.UserListNumberRuleItemOperatorEnum.UserListNumberRuleItemOperator\x12+\n\x05value\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\"\xbd\x01\n\x1aUserListStringRuleItemInfo\x12r\n\x08operator\x18\x01 \x01(\x0e\x32`.google.ads.googleads.v4.enums.UserListStringRuleItemOperatorEnum.UserListStringRuleItemOperator\x12+\n\x05value\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValue\"\xa0\x02\n\x18\x43ombinedRuleUserListInfo\x12\x46\n\x0cleft_operand\x18\x01 \x01(\x0b\x32\x30.google.ads.googleads.v4.common.UserListRuleInfo\x12G\n\rright_operand\x18\x02 \x01(\x0b\x32\x30.google.ads.googleads.v4.common.UserListRuleInfo\x12s\n\rrule_operator\x18\x03 \x01(\x0e\x32\\.google.ads.googleads.v4.enums.UserListCombinedRuleOperatorEnum.UserListCombinedRuleOperator\"\xc0\x01\n\x1c\x44\x61teSpecificRuleUserListInfo\x12>\n\x04rule\x18\x01 \x01(\x0b\x32\x30.google.ads.googleads.v4.common.UserListRuleInfo\x12\x30\n\nstart_date\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12.\n\x08\x65nd_date\x18\x03 \x01(\x0b\x32\x1c.google.protobuf.StringValue\"\\\n\x1a\x45xpressionRuleUserListInfo\x12>\n\x04rule\x18\x01 \x01(\x0b\x32\x30.google.ads.googleads.v4.common.UserListRuleInfo\"\xcd\x03\n\x15RuleBasedUserListInfo\x12x\n\x14prepopulation_status\x18\x01 \x01(\x0e\x32Z.google.ads.googleads.v4.enums.UserListPrepopulationStatusEnum.UserListPrepopulationStatus\x12[\n\x17\x63ombined_rule_user_list\x18\x02 \x01(\x0b\x32\x38.google.ads.googleads.v4.common.CombinedRuleUserListInfoH\x00\x12\x64\n\x1c\x64\x61te_specific_rule_user_list\x18\x03 \x01(\x0b\x32<.google.ads.googleads.v4.common.DateSpecificRuleUserListInfoH\x00\x12_\n\x19\x65xpression_rule_user_list\x18\x04 \x01(\x0b\x32:.google.ads.googleads.v4.common.ExpressionRuleUserListInfoH\x00\x42\x16\n\x14rule_based_user_list\"]\n\x13LogicalUserListInfo\x12\x46\n\x05rules\x18\x01 \x03(\x0b\x32\x37.google.ads.googleads.v4.common.UserListLogicalRuleInfo\"\xda\x01\n\x17UserListLogicalRuleInfo\x12l\n\x08operator\x18\x01 \x01(\x0e\x32Z.google.ads.googleads.v4.enums.UserListLogicalRuleOperatorEnum.UserListLogicalRuleOperator\x12Q\n\rrule_operands\x18\x02 \x03(\x0b\x32:.google.ads.googleads.v4.common.LogicalUserListOperandInfo\"M\n\x1aLogicalUserListOperandInfo\x12/\n\tuser_list\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\"X\n\x11\x42\x61sicUserListInfo\x12\x43\n\x07\x61\x63tions\x18\x01 \x03(\x0b\x32\x32.google.ads.googleads.v4.common.UserListActionInfo\"\x9f\x01\n\x12UserListActionInfo\x12\x39\n\x11\x63onversion_action\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValueH\x00\x12:\n\x12remarketing_action\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValueH\x00\x42\x12\n\x10user_list_actionB\xe9\x01\n\"com.google.ads.googleads.v4.commonB\x0eUserListsProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/common;common\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V4.Common\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V4\\Common\xea\x02\"Google::Ads::GoogleAds::V4::Commonb\x06proto3') , - dependencies=[google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_customer__match__upload__key__type__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_user__list__combined__rule__operator__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_user__list__crm__data__source__type__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_user__list__date__rule__item__operator__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_user__list__logical__rule__operator__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_user__list__number__rule__item__operator__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_user__list__prepopulation__status__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_user__list__rule__type__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_user__list__string__rule__item__operator__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + dependencies=[google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_customer__match__upload__key__type__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_user__list__combined__rule__operator__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_user__list__crm__data__source__type__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_user__list__date__rule__item__operator__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_user__list__logical__rule__operator__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_user__list__number__rule__item__operator__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_user__list__prepopulation__status__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_user__list__rule__type__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_user__list__string__rule__item__operator__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) _SIMILARUSERLISTINFO = _descriptor.Descriptor( name='SimilarUserListInfo', - full_name='google.ads.googleads.v1.common.SimilarUserListInfo', + full_name='google.ads.googleads.v4.common.SimilarUserListInfo', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='seed_user_list', full_name='google.ads.googleads.v1.common.SimilarUserListInfo.seed_user_list', index=0, + name='seed_user_list', full_name='google.ads.googleads.v4.common.SimilarUserListInfo.seed_user_list', index=0, number=1, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, @@ -71,27 +71,27 @@ _CRMBASEDUSERLISTINFO = _descriptor.Descriptor( name='CrmBasedUserListInfo', - full_name='google.ads.googleads.v1.common.CrmBasedUserListInfo', + full_name='google.ads.googleads.v4.common.CrmBasedUserListInfo', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='app_id', full_name='google.ads.googleads.v1.common.CrmBasedUserListInfo.app_id', index=0, + name='app_id', full_name='google.ads.googleads.v4.common.CrmBasedUserListInfo.app_id', index=0, number=1, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='upload_key_type', full_name='google.ads.googleads.v1.common.CrmBasedUserListInfo.upload_key_type', index=1, + name='upload_key_type', full_name='google.ads.googleads.v4.common.CrmBasedUserListInfo.upload_key_type', index=1, number=2, type=14, cpp_type=8, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='data_source_type', full_name='google.ads.googleads.v1.common.CrmBasedUserListInfo.data_source_type', index=2, + name='data_source_type', full_name='google.ads.googleads.v4.common.CrmBasedUserListInfo.data_source_type', index=2, number=3, type=14, cpp_type=8, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, @@ -116,20 +116,20 @@ _USERLISTRULEINFO = _descriptor.Descriptor( name='UserListRuleInfo', - full_name='google.ads.googleads.v1.common.UserListRuleInfo', + full_name='google.ads.googleads.v4.common.UserListRuleInfo', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='rule_type', full_name='google.ads.googleads.v1.common.UserListRuleInfo.rule_type', index=0, + name='rule_type', full_name='google.ads.googleads.v4.common.UserListRuleInfo.rule_type', index=0, number=1, type=14, cpp_type=8, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='rule_item_groups', full_name='google.ads.googleads.v1.common.UserListRuleInfo.rule_item_groups', index=1, + name='rule_item_groups', full_name='google.ads.googleads.v4.common.UserListRuleInfo.rule_item_groups', index=1, number=2, type=11, cpp_type=10, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, @@ -154,13 +154,13 @@ _USERLISTRULEITEMGROUPINFO = _descriptor.Descriptor( name='UserListRuleItemGroupInfo', - full_name='google.ads.googleads.v1.common.UserListRuleItemGroupInfo', + full_name='google.ads.googleads.v4.common.UserListRuleItemGroupInfo', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='rule_items', full_name='google.ads.googleads.v1.common.UserListRuleItemGroupInfo.rule_items', index=0, + name='rule_items', full_name='google.ads.googleads.v4.common.UserListRuleItemGroupInfo.rule_items', index=0, number=1, type=11, cpp_type=10, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, @@ -185,34 +185,34 @@ _USERLISTRULEITEMINFO = _descriptor.Descriptor( name='UserListRuleItemInfo', - full_name='google.ads.googleads.v1.common.UserListRuleItemInfo', + full_name='google.ads.googleads.v4.common.UserListRuleItemInfo', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='name', full_name='google.ads.googleads.v1.common.UserListRuleItemInfo.name', index=0, + name='name', full_name='google.ads.googleads.v4.common.UserListRuleItemInfo.name', index=0, number=1, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='number_rule_item', full_name='google.ads.googleads.v1.common.UserListRuleItemInfo.number_rule_item', index=1, + name='number_rule_item', full_name='google.ads.googleads.v4.common.UserListRuleItemInfo.number_rule_item', index=1, number=2, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='string_rule_item', full_name='google.ads.googleads.v1.common.UserListRuleItemInfo.string_rule_item', index=2, + name='string_rule_item', full_name='google.ads.googleads.v4.common.UserListRuleItemInfo.string_rule_item', index=2, number=3, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='date_rule_item', full_name='google.ads.googleads.v1.common.UserListRuleItemInfo.date_rule_item', index=3, + name='date_rule_item', full_name='google.ads.googleads.v4.common.UserListRuleItemInfo.date_rule_item', index=3, number=4, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, @@ -230,7 +230,7 @@ extension_ranges=[], oneofs=[ _descriptor.OneofDescriptor( - name='rule_item', full_name='google.ads.googleads.v1.common.UserListRuleItemInfo.rule_item', + name='rule_item', full_name='google.ads.googleads.v4.common.UserListRuleItemInfo.rule_item', index=0, containing_type=None, fields=[]), ], serialized_start=1498, @@ -240,27 +240,27 @@ _USERLISTDATERULEITEMINFO = _descriptor.Descriptor( name='UserListDateRuleItemInfo', - full_name='google.ads.googleads.v1.common.UserListDateRuleItemInfo', + full_name='google.ads.googleads.v4.common.UserListDateRuleItemInfo', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='operator', full_name='google.ads.googleads.v1.common.UserListDateRuleItemInfo.operator', index=0, + name='operator', full_name='google.ads.googleads.v4.common.UserListDateRuleItemInfo.operator', index=0, number=1, type=14, cpp_type=8, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='value', full_name='google.ads.googleads.v1.common.UserListDateRuleItemInfo.value', index=1, + name='value', full_name='google.ads.googleads.v4.common.UserListDateRuleItemInfo.value', index=1, number=2, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='offset_in_days', full_name='google.ads.googleads.v1.common.UserListDateRuleItemInfo.offset_in_days', index=2, + name='offset_in_days', full_name='google.ads.googleads.v4.common.UserListDateRuleItemInfo.offset_in_days', index=2, number=3, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, @@ -285,20 +285,20 @@ _USERLISTNUMBERRULEITEMINFO = _descriptor.Descriptor( name='UserListNumberRuleItemInfo', - full_name='google.ads.googleads.v1.common.UserListNumberRuleItemInfo', + full_name='google.ads.googleads.v4.common.UserListNumberRuleItemInfo', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='operator', full_name='google.ads.googleads.v1.common.UserListNumberRuleItemInfo.operator', index=0, + name='operator', full_name='google.ads.googleads.v4.common.UserListNumberRuleItemInfo.operator', index=0, number=1, type=14, cpp_type=8, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='value', full_name='google.ads.googleads.v1.common.UserListNumberRuleItemInfo.value', index=1, + name='value', full_name='google.ads.googleads.v4.common.UserListNumberRuleItemInfo.value', index=1, number=2, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, @@ -323,20 +323,20 @@ _USERLISTSTRINGRULEITEMINFO = _descriptor.Descriptor( name='UserListStringRuleItemInfo', - full_name='google.ads.googleads.v1.common.UserListStringRuleItemInfo', + full_name='google.ads.googleads.v4.common.UserListStringRuleItemInfo', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='operator', full_name='google.ads.googleads.v1.common.UserListStringRuleItemInfo.operator', index=0, + name='operator', full_name='google.ads.googleads.v4.common.UserListStringRuleItemInfo.operator', index=0, number=1, type=14, cpp_type=8, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='value', full_name='google.ads.googleads.v1.common.UserListStringRuleItemInfo.value', index=1, + name='value', full_name='google.ads.googleads.v4.common.UserListStringRuleItemInfo.value', index=1, number=2, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, @@ -361,27 +361,27 @@ _COMBINEDRULEUSERLISTINFO = _descriptor.Descriptor( name='CombinedRuleUserListInfo', - full_name='google.ads.googleads.v1.common.CombinedRuleUserListInfo', + full_name='google.ads.googleads.v4.common.CombinedRuleUserListInfo', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='left_operand', full_name='google.ads.googleads.v1.common.CombinedRuleUserListInfo.left_operand', index=0, + name='left_operand', full_name='google.ads.googleads.v4.common.CombinedRuleUserListInfo.left_operand', index=0, number=1, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='right_operand', full_name='google.ads.googleads.v1.common.CombinedRuleUserListInfo.right_operand', index=1, + name='right_operand', full_name='google.ads.googleads.v4.common.CombinedRuleUserListInfo.right_operand', index=1, number=2, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='rule_operator', full_name='google.ads.googleads.v1.common.CombinedRuleUserListInfo.rule_operator', index=2, + name='rule_operator', full_name='google.ads.googleads.v4.common.CombinedRuleUserListInfo.rule_operator', index=2, number=3, type=14, cpp_type=8, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, @@ -406,27 +406,27 @@ _DATESPECIFICRULEUSERLISTINFO = _descriptor.Descriptor( name='DateSpecificRuleUserListInfo', - full_name='google.ads.googleads.v1.common.DateSpecificRuleUserListInfo', + full_name='google.ads.googleads.v4.common.DateSpecificRuleUserListInfo', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='rule', full_name='google.ads.googleads.v1.common.DateSpecificRuleUserListInfo.rule', index=0, + name='rule', full_name='google.ads.googleads.v4.common.DateSpecificRuleUserListInfo.rule', index=0, number=1, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='start_date', full_name='google.ads.googleads.v1.common.DateSpecificRuleUserListInfo.start_date', index=1, + name='start_date', full_name='google.ads.googleads.v4.common.DateSpecificRuleUserListInfo.start_date', index=1, number=2, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='end_date', full_name='google.ads.googleads.v1.common.DateSpecificRuleUserListInfo.end_date', index=2, + name='end_date', full_name='google.ads.googleads.v4.common.DateSpecificRuleUserListInfo.end_date', index=2, number=3, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, @@ -451,13 +451,13 @@ _EXPRESSIONRULEUSERLISTINFO = _descriptor.Descriptor( name='ExpressionRuleUserListInfo', - full_name='google.ads.googleads.v1.common.ExpressionRuleUserListInfo', + full_name='google.ads.googleads.v4.common.ExpressionRuleUserListInfo', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='rule', full_name='google.ads.googleads.v1.common.ExpressionRuleUserListInfo.rule', index=0, + name='rule', full_name='google.ads.googleads.v4.common.ExpressionRuleUserListInfo.rule', index=0, number=1, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, @@ -482,34 +482,34 @@ _RULEBASEDUSERLISTINFO = _descriptor.Descriptor( name='RuleBasedUserListInfo', - full_name='google.ads.googleads.v1.common.RuleBasedUserListInfo', + full_name='google.ads.googleads.v4.common.RuleBasedUserListInfo', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='prepopulation_status', full_name='google.ads.googleads.v1.common.RuleBasedUserListInfo.prepopulation_status', index=0, + name='prepopulation_status', full_name='google.ads.googleads.v4.common.RuleBasedUserListInfo.prepopulation_status', index=0, number=1, type=14, cpp_type=8, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='combined_rule_user_list', full_name='google.ads.googleads.v1.common.RuleBasedUserListInfo.combined_rule_user_list', index=1, + name='combined_rule_user_list', full_name='google.ads.googleads.v4.common.RuleBasedUserListInfo.combined_rule_user_list', index=1, number=2, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='date_specific_rule_user_list', full_name='google.ads.googleads.v1.common.RuleBasedUserListInfo.date_specific_rule_user_list', index=2, + name='date_specific_rule_user_list', full_name='google.ads.googleads.v4.common.RuleBasedUserListInfo.date_specific_rule_user_list', index=2, number=3, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='expression_rule_user_list', full_name='google.ads.googleads.v1.common.RuleBasedUserListInfo.expression_rule_user_list', index=3, + name='expression_rule_user_list', full_name='google.ads.googleads.v4.common.RuleBasedUserListInfo.expression_rule_user_list', index=3, number=4, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, @@ -527,7 +527,7 @@ extension_ranges=[], oneofs=[ _descriptor.OneofDescriptor( - name='rule_based_user_list', full_name='google.ads.googleads.v1.common.RuleBasedUserListInfo.rule_based_user_list', + name='rule_based_user_list', full_name='google.ads.googleads.v4.common.RuleBasedUserListInfo.rule_based_user_list', index=0, containing_type=None, fields=[]), ], serialized_start=3043, @@ -537,13 +537,13 @@ _LOGICALUSERLISTINFO = _descriptor.Descriptor( name='LogicalUserListInfo', - full_name='google.ads.googleads.v1.common.LogicalUserListInfo', + full_name='google.ads.googleads.v4.common.LogicalUserListInfo', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='rules', full_name='google.ads.googleads.v1.common.LogicalUserListInfo.rules', index=0, + name='rules', full_name='google.ads.googleads.v4.common.LogicalUserListInfo.rules', index=0, number=1, type=11, cpp_type=10, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, @@ -568,20 +568,20 @@ _USERLISTLOGICALRULEINFO = _descriptor.Descriptor( name='UserListLogicalRuleInfo', - full_name='google.ads.googleads.v1.common.UserListLogicalRuleInfo', + full_name='google.ads.googleads.v4.common.UserListLogicalRuleInfo', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='operator', full_name='google.ads.googleads.v1.common.UserListLogicalRuleInfo.operator', index=0, + name='operator', full_name='google.ads.googleads.v4.common.UserListLogicalRuleInfo.operator', index=0, number=1, type=14, cpp_type=8, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='rule_operands', full_name='google.ads.googleads.v1.common.UserListLogicalRuleInfo.rule_operands', index=1, + name='rule_operands', full_name='google.ads.googleads.v4.common.UserListLogicalRuleInfo.rule_operands', index=1, number=2, type=11, cpp_type=10, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, @@ -606,13 +606,13 @@ _LOGICALUSERLISTOPERANDINFO = _descriptor.Descriptor( name='LogicalUserListOperandInfo', - full_name='google.ads.googleads.v1.common.LogicalUserListOperandInfo', + full_name='google.ads.googleads.v4.common.LogicalUserListOperandInfo', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='user_list', full_name='google.ads.googleads.v1.common.LogicalUserListOperandInfo.user_list', index=0, + name='user_list', full_name='google.ads.googleads.v4.common.LogicalUserListOperandInfo.user_list', index=0, number=1, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, @@ -637,13 +637,13 @@ _BASICUSERLISTINFO = _descriptor.Descriptor( name='BasicUserListInfo', - full_name='google.ads.googleads.v1.common.BasicUserListInfo', + full_name='google.ads.googleads.v4.common.BasicUserListInfo', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='actions', full_name='google.ads.googleads.v1.common.BasicUserListInfo.actions', index=0, + name='actions', full_name='google.ads.googleads.v4.common.BasicUserListInfo.actions', index=0, number=1, type=11, cpp_type=10, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, @@ -668,20 +668,20 @@ _USERLISTACTIONINFO = _descriptor.Descriptor( name='UserListActionInfo', - full_name='google.ads.googleads.v1.common.UserListActionInfo', + full_name='google.ads.googleads.v4.common.UserListActionInfo', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='conversion_action', full_name='google.ads.googleads.v1.common.UserListActionInfo.conversion_action', index=0, + name='conversion_action', full_name='google.ads.googleads.v4.common.UserListActionInfo.conversion_action', index=0, number=1, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='remarketing_action', full_name='google.ads.googleads.v1.common.UserListActionInfo.remarketing_action', index=1, + name='remarketing_action', full_name='google.ads.googleads.v4.common.UserListActionInfo.remarketing_action', index=1, number=2, type=11, cpp_type=10, label=1, has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, @@ -699,7 +699,7 @@ extension_ranges=[], oneofs=[ _descriptor.OneofDescriptor( - name='user_list_action', full_name='google.ads.googleads.v1.common.UserListActionInfo.user_list_action', + name='user_list_action', full_name='google.ads.googleads.v4.common.UserListActionInfo.user_list_action', index=0, containing_type=None, fields=[]), ], serialized_start=3992, @@ -708,9 +708,9 @@ _SIMILARUSERLISTINFO.fields_by_name['seed_user_list'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE _CRMBASEDUSERLISTINFO.fields_by_name['app_id'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE -_CRMBASEDUSERLISTINFO.fields_by_name['upload_key_type'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_customer__match__upload__key__type__pb2._CUSTOMERMATCHUPLOADKEYTYPEENUM_CUSTOMERMATCHUPLOADKEYTYPE -_CRMBASEDUSERLISTINFO.fields_by_name['data_source_type'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_user__list__crm__data__source__type__pb2._USERLISTCRMDATASOURCETYPEENUM_USERLISTCRMDATASOURCETYPE -_USERLISTRULEINFO.fields_by_name['rule_type'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_user__list__rule__type__pb2._USERLISTRULETYPEENUM_USERLISTRULETYPE +_CRMBASEDUSERLISTINFO.fields_by_name['upload_key_type'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_customer__match__upload__key__type__pb2._CUSTOMERMATCHUPLOADKEYTYPEENUM_CUSTOMERMATCHUPLOADKEYTYPE +_CRMBASEDUSERLISTINFO.fields_by_name['data_source_type'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_user__list__crm__data__source__type__pb2._USERLISTCRMDATASOURCETYPEENUM_USERLISTCRMDATASOURCETYPE +_USERLISTRULEINFO.fields_by_name['rule_type'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_user__list__rule__type__pb2._USERLISTRULETYPEENUM_USERLISTRULETYPE _USERLISTRULEINFO.fields_by_name['rule_item_groups'].message_type = _USERLISTRULEITEMGROUPINFO _USERLISTRULEITEMGROUPINFO.fields_by_name['rule_items'].message_type = _USERLISTRULEITEMINFO _USERLISTRULEITEMINFO.fields_by_name['name'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE @@ -726,21 +726,21 @@ _USERLISTRULEITEMINFO.oneofs_by_name['rule_item'].fields.append( _USERLISTRULEITEMINFO.fields_by_name['date_rule_item']) _USERLISTRULEITEMINFO.fields_by_name['date_rule_item'].containing_oneof = _USERLISTRULEITEMINFO.oneofs_by_name['rule_item'] -_USERLISTDATERULEITEMINFO.fields_by_name['operator'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_user__list__date__rule__item__operator__pb2._USERLISTDATERULEITEMOPERATORENUM_USERLISTDATERULEITEMOPERATOR +_USERLISTDATERULEITEMINFO.fields_by_name['operator'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_user__list__date__rule__item__operator__pb2._USERLISTDATERULEITEMOPERATORENUM_USERLISTDATERULEITEMOPERATOR _USERLISTDATERULEITEMINFO.fields_by_name['value'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE _USERLISTDATERULEITEMINFO.fields_by_name['offset_in_days'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE -_USERLISTNUMBERRULEITEMINFO.fields_by_name['operator'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_user__list__number__rule__item__operator__pb2._USERLISTNUMBERRULEITEMOPERATORENUM_USERLISTNUMBERRULEITEMOPERATOR +_USERLISTNUMBERRULEITEMINFO.fields_by_name['operator'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_user__list__number__rule__item__operator__pb2._USERLISTNUMBERRULEITEMOPERATORENUM_USERLISTNUMBERRULEITEMOPERATOR _USERLISTNUMBERRULEITEMINFO.fields_by_name['value'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE -_USERLISTSTRINGRULEITEMINFO.fields_by_name['operator'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_user__list__string__rule__item__operator__pb2._USERLISTSTRINGRULEITEMOPERATORENUM_USERLISTSTRINGRULEITEMOPERATOR +_USERLISTSTRINGRULEITEMINFO.fields_by_name['operator'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_user__list__string__rule__item__operator__pb2._USERLISTSTRINGRULEITEMOPERATORENUM_USERLISTSTRINGRULEITEMOPERATOR _USERLISTSTRINGRULEITEMINFO.fields_by_name['value'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE _COMBINEDRULEUSERLISTINFO.fields_by_name['left_operand'].message_type = _USERLISTRULEINFO _COMBINEDRULEUSERLISTINFO.fields_by_name['right_operand'].message_type = _USERLISTRULEINFO -_COMBINEDRULEUSERLISTINFO.fields_by_name['rule_operator'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_user__list__combined__rule__operator__pb2._USERLISTCOMBINEDRULEOPERATORENUM_USERLISTCOMBINEDRULEOPERATOR +_COMBINEDRULEUSERLISTINFO.fields_by_name['rule_operator'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_user__list__combined__rule__operator__pb2._USERLISTCOMBINEDRULEOPERATORENUM_USERLISTCOMBINEDRULEOPERATOR _DATESPECIFICRULEUSERLISTINFO.fields_by_name['rule'].message_type = _USERLISTRULEINFO _DATESPECIFICRULEUSERLISTINFO.fields_by_name['start_date'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE _DATESPECIFICRULEUSERLISTINFO.fields_by_name['end_date'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE _EXPRESSIONRULEUSERLISTINFO.fields_by_name['rule'].message_type = _USERLISTRULEINFO -_RULEBASEDUSERLISTINFO.fields_by_name['prepopulation_status'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_user__list__prepopulation__status__pb2._USERLISTPREPOPULATIONSTATUSENUM_USERLISTPREPOPULATIONSTATUS +_RULEBASEDUSERLISTINFO.fields_by_name['prepopulation_status'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_user__list__prepopulation__status__pb2._USERLISTPREPOPULATIONSTATUSENUM_USERLISTPREPOPULATIONSTATUS _RULEBASEDUSERLISTINFO.fields_by_name['combined_rule_user_list'].message_type = _COMBINEDRULEUSERLISTINFO _RULEBASEDUSERLISTINFO.fields_by_name['date_specific_rule_user_list'].message_type = _DATESPECIFICRULEUSERLISTINFO _RULEBASEDUSERLISTINFO.fields_by_name['expression_rule_user_list'].message_type = _EXPRESSIONRULEUSERLISTINFO @@ -754,7 +754,7 @@ _RULEBASEDUSERLISTINFO.fields_by_name['expression_rule_user_list']) _RULEBASEDUSERLISTINFO.fields_by_name['expression_rule_user_list'].containing_oneof = _RULEBASEDUSERLISTINFO.oneofs_by_name['rule_based_user_list'] _LOGICALUSERLISTINFO.fields_by_name['rules'].message_type = _USERLISTLOGICALRULEINFO -_USERLISTLOGICALRULEINFO.fields_by_name['operator'].enum_type = google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_user__list__logical__rule__operator__pb2._USERLISTLOGICALRULEOPERATORENUM_USERLISTLOGICALRULEOPERATOR +_USERLISTLOGICALRULEINFO.fields_by_name['operator'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_user__list__logical__rule__operator__pb2._USERLISTLOGICALRULEOPERATORENUM_USERLISTLOGICALRULEOPERATOR _USERLISTLOGICALRULEINFO.fields_by_name['rule_operands'].message_type = _LOGICALUSERLISTOPERANDINFO _LOGICALUSERLISTOPERANDINFO.fields_by_name['user_list'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE _BASICUSERLISTINFO.fields_by_name['actions'].message_type = _USERLISTACTIONINFO @@ -787,7 +787,7 @@ SimilarUserListInfo = _reflection.GeneratedProtocolMessageType('SimilarUserListInfo', (_message.Message,), dict( DESCRIPTOR = _SIMILARUSERLISTINFO, - __module__ = 'google.ads.googleads_v1.proto.common.user_lists_pb2' + __module__ = 'google.ads.googleads_v4.proto.common.user_lists_pb2' , __doc__ = """SimilarUserList is a list of users which are similar to users from another UserList. These lists are read-only and automatically created by @@ -798,13 +798,13 @@ seed_user_list: Seed UserList from which this list is derived. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.SimilarUserListInfo) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.common.SimilarUserListInfo) )) _sym_db.RegisterMessage(SimilarUserListInfo) CrmBasedUserListInfo = _reflection.GeneratedProtocolMessageType('CrmBasedUserListInfo', (_message.Message,), dict( DESCRIPTOR = _CRMBASEDUSERLISTINFO, - __module__ = 'google.ads.googleads_v1.proto.common.user_lists_pb2' + __module__ = 'google.ads.googleads_v4.proto.common.user_lists_pb2' , __doc__ = """UserList of CRM users provided by the advertiser. @@ -831,13 +831,13 @@ whitelisted customers can create third-party sourced CRM lists. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.CrmBasedUserListInfo) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.common.CrmBasedUserListInfo) )) _sym_db.RegisterMessage(CrmBasedUserListInfo) UserListRuleInfo = _reflection.GeneratedProtocolMessageType('UserListRuleInfo', (_message.Message,), dict( DESCRIPTOR = _USERLISTRULEINFO, - __module__ = 'google.ads.googleads_v1.proto.common.user_lists_pb2' + __module__ = 'google.ads.googleads_v4.proto.common.user_lists_pb2' , __doc__ = """A client defined rule based on custom parameters sent by web sites or uploaded by the advertiser. @@ -855,13 +855,13 @@ List of rule item groups that defines this rule. Rule item groups are grouped together based on rule\_type. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.UserListRuleInfo) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.common.UserListRuleInfo) )) _sym_db.RegisterMessage(UserListRuleInfo) UserListRuleItemGroupInfo = _reflection.GeneratedProtocolMessageType('UserListRuleItemGroupInfo', (_message.Message,), dict( DESCRIPTOR = _USERLISTRULEITEMGROUPINFO, - __module__ = 'google.ads.googleads_v1.proto.common.user_lists_pb2' + __module__ = 'google.ads.googleads_v4.proto.common.user_lists_pb2' , __doc__ = """A group of rule items. @@ -870,15 +870,15 @@ rule_items: Rule items that will be grouped together based on rule\_type. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.UserListRuleItemGroupInfo) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.common.UserListRuleItemGroupInfo) )) _sym_db.RegisterMessage(UserListRuleItemGroupInfo) UserListRuleItemInfo = _reflection.GeneratedProtocolMessageType('UserListRuleItemInfo', (_message.Message,), dict( DESCRIPTOR = _USERLISTRULEITEMINFO, - __module__ = 'google.ads.googleads_v1.proto.common.user_lists_pb2' + __module__ = 'google.ads.googleads_v4.proto.common.user_lists_pb2' , - __doc__ = """An atomic rule fragment. + __doc__ = """An atomic rule item. Attributes: @@ -892,23 +892,23 @@ 'ref\_url\_\_'). This field must be populated when creating a new rule item. rule_item: - An atomic rule fragment. + An atomic rule item. number_rule_item: - An atomic rule fragment composed of a number operation. + An atomic rule item composed of a number operation. string_rule_item: - An atomic rule fragment composed of a string operation. + An atomic rule item composed of a string operation. date_rule_item: - An atomic rule fragment composed of a date operation. + An atomic rule item composed of a date operation. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.UserListRuleItemInfo) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.common.UserListRuleItemInfo) )) _sym_db.RegisterMessage(UserListRuleItemInfo) UserListDateRuleItemInfo = _reflection.GeneratedProtocolMessageType('UserListDateRuleItemInfo', (_message.Message,), dict( DESCRIPTOR = _USERLISTDATERULEITEMINFO, - __module__ = 'google.ads.googleads_v1.proto.common.user_lists_pb2' + __module__ = 'google.ads.googleads_v4.proto.common.user_lists_pb2' , - __doc__ = """A rule item composed of date operation. + __doc__ = """A rule item composed of a date operation. Attributes: @@ -924,15 +924,15 @@ number of days offset from now. The value field will override this field when both are present. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.UserListDateRuleItemInfo) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.common.UserListDateRuleItemInfo) )) _sym_db.RegisterMessage(UserListDateRuleItemInfo) UserListNumberRuleItemInfo = _reflection.GeneratedProtocolMessageType('UserListNumberRuleItemInfo', (_message.Message,), dict( DESCRIPTOR = _USERLISTNUMBERRULEITEMINFO, - __module__ = 'google.ads.googleads_v1.proto.common.user_lists_pb2' + __module__ = 'google.ads.googleads_v4.proto.common.user_lists_pb2' , - __doc__ = """A rule item composed of number operation. + __doc__ = """A rule item composed of a number operation. Attributes: @@ -944,15 +944,15 @@ required and must be populated when creating a new number rule item. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.UserListNumberRuleItemInfo) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.common.UserListNumberRuleItemInfo) )) _sym_db.RegisterMessage(UserListNumberRuleItemInfo) UserListStringRuleItemInfo = _reflection.GeneratedProtocolMessageType('UserListStringRuleItemInfo', (_message.Message,), dict( DESCRIPTOR = _USERLISTSTRINGRULEITEMINFO, - __module__ = 'google.ads.googleads_v1.proto.common.user_lists_pb2' + __module__ = 'google.ads.googleads_v4.proto.common.user_lists_pb2' , - __doc__ = """A rule item fragment composed of date operation. + __doc__ = """A rule item composed of a string operation. Attributes: @@ -966,13 +966,13 @@ required and must be populated when creating a new string rule item. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.UserListStringRuleItemInfo) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.common.UserListStringRuleItemInfo) )) _sym_db.RegisterMessage(UserListStringRuleItemInfo) CombinedRuleUserListInfo = _reflection.GeneratedProtocolMessageType('CombinedRuleUserListInfo', (_message.Message,), dict( DESCRIPTOR = _COMBINEDRULEUSERLISTINFO, - __module__ = 'google.ads.googleads_v1.proto.common.user_lists_pb2' + __module__ = 'google.ads.googleads_v4.proto.common.user_lists_pb2' , __doc__ = """User lists defined by combining two rules, left operand and right operand. There are two operators: AND where left operand and right @@ -993,13 +993,13 @@ Operator to connect the two operands. Required for creating a combined rule user list. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.CombinedRuleUserListInfo) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.common.CombinedRuleUserListInfo) )) _sym_db.RegisterMessage(CombinedRuleUserListInfo) DateSpecificRuleUserListInfo = _reflection.GeneratedProtocolMessageType('DateSpecificRuleUserListInfo', (_message.Message,), dict( DESCRIPTOR = _DATESPECIFICRULEUSERLISTINFO, - __module__ = 'google.ads.googleads_v1.proto.common.user_lists_pb2' + __module__ = 'google.ads.googleads_v4.proto.common.user_lists_pb2' , __doc__ = """Visitors of a page during specific dates. @@ -1019,13 +1019,13 @@ be YYYY-MM-DD. Required for creating a data specific rule user list. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.DateSpecificRuleUserListInfo) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.common.DateSpecificRuleUserListInfo) )) _sym_db.RegisterMessage(DateSpecificRuleUserListInfo) ExpressionRuleUserListInfo = _reflection.GeneratedProtocolMessageType('ExpressionRuleUserListInfo', (_message.Message,), dict( DESCRIPTOR = _EXPRESSIONRULEUSERLISTINFO, - __module__ = 'google.ads.googleads_v1.proto.common.user_lists_pb2' + __module__ = 'google.ads.googleads_v4.proto.common.user_lists_pb2' , __doc__ = """Visitors of a page. The page visit is defined by one boolean rule expression. @@ -1039,13 +1039,13 @@ ANDed together for evaluation based on rule.rule\_type. Required for creating an expression rule user list. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.ExpressionRuleUserListInfo) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.common.ExpressionRuleUserListInfo) )) _sym_db.RegisterMessage(ExpressionRuleUserListInfo) RuleBasedUserListInfo = _reflection.GeneratedProtocolMessageType('RuleBasedUserListInfo', (_message.Message,), dict( DESCRIPTOR = _RULEBASEDUSERLISTINFO, - __module__ = 'google.ads.googleads_v1.proto.common.user_lists_pb2' + __module__ = 'google.ads.googleads_v4.proto.common.user_lists_pb2' , __doc__ = """Representation of a userlist that is generated by a rule. @@ -1078,13 +1078,13 @@ Visitors of a page. The page visit is defined by one boolean rule expression. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.RuleBasedUserListInfo) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.common.RuleBasedUserListInfo) )) _sym_db.RegisterMessage(RuleBasedUserListInfo) LogicalUserListInfo = _reflection.GeneratedProtocolMessageType('LogicalUserListInfo', (_message.Message,), dict( DESCRIPTOR = _LOGICALUSERLISTINFO, - __module__ = 'google.ads.googleads_v1.proto.common.user_lists_pb2' + __module__ = 'google.ads.googleads_v4.proto.common.user_lists_pb2' , __doc__ = """Represents a user list that is a custom combination of user lists. @@ -1096,13 +1096,13 @@ user lists. All the rules are ANDed when they are evaluated. Required for creating a logical user list. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.LogicalUserListInfo) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.common.LogicalUserListInfo) )) _sym_db.RegisterMessage(LogicalUserListInfo) UserListLogicalRuleInfo = _reflection.GeneratedProtocolMessageType('UserListLogicalRuleInfo', (_message.Message,), dict( DESCRIPTOR = _USERLISTLOGICALRULEINFO, - __module__ = 'google.ads.googleads_v1.proto.common.user_lists_pb2' + __module__ = 'google.ads.googleads_v4.proto.common.user_lists_pb2' , __doc__ = """A user list logical rule. A rule has a logical operator (and/or/not) and a list of user lists as operands. @@ -1114,13 +1114,13 @@ rule_operands: The list of operands of the rule. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.UserListLogicalRuleInfo) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.common.UserListLogicalRuleInfo) )) _sym_db.RegisterMessage(UserListLogicalRuleInfo) LogicalUserListOperandInfo = _reflection.GeneratedProtocolMessageType('LogicalUserListOperandInfo', (_message.Message,), dict( DESCRIPTOR = _LOGICALUSERLISTOPERANDINFO, - __module__ = 'google.ads.googleads_v1.proto.common.user_lists_pb2' + __module__ = 'google.ads.googleads_v4.proto.common.user_lists_pb2' , __doc__ = """Operand of logical user list that consists of a user list. @@ -1129,13 +1129,13 @@ user_list: Resource name of a user list as an operand. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.LogicalUserListOperandInfo) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.common.LogicalUserListOperandInfo) )) _sym_db.RegisterMessage(LogicalUserListOperandInfo) BasicUserListInfo = _reflection.GeneratedProtocolMessageType('BasicUserListInfo', (_message.Message,), dict( DESCRIPTOR = _BASICUSERLISTINFO, - __module__ = 'google.ads.googleads_v1.proto.common.user_lists_pb2' + __module__ = 'google.ads.googleads_v4.proto.common.user_lists_pb2' , __doc__ = """User list targeting as a collection of conversions or remarketing actions. @@ -1145,13 +1145,13 @@ actions: Actions associated with this user list. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.BasicUserListInfo) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.common.BasicUserListInfo) )) _sym_db.RegisterMessage(BasicUserListInfo) UserListActionInfo = _reflection.GeneratedProtocolMessageType('UserListActionInfo', (_message.Message,), dict( DESCRIPTOR = _USERLISTACTIONINFO, - __module__ = 'google.ads.googleads_v1.proto.common.user_lists_pb2' + __module__ = 'google.ads.googleads_v4.proto.common.user_lists_pb2' , __doc__ = """Represents an action type used for building remarketing user lists. @@ -1164,7 +1164,7 @@ remarketing_action: A remarketing action. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.UserListActionInfo) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.common.UserListActionInfo) )) _sym_db.RegisterMessage(UserListActionInfo) diff --git a/google/ads/google_ads/v1/proto/common/value_pb2_grpc.py b/google/ads/google_ads/v4/proto/common/user_lists_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/common/value_pb2_grpc.py rename to google/ads/google_ads/v4/proto/common/user_lists_pb2_grpc.py diff --git a/google/ads/google_ads/v1/proto/common/value_pb2.py b/google/ads/google_ads/v4/proto/common/value_pb2.py similarity index 77% rename from google/ads/google_ads/v1/proto/common/value_pb2.py rename to google/ads/google_ads/v4/proto/common/value_pb2.py index 94249ea59..1a6074743 100644 --- a/google/ads/google_ads/v1/proto/common/value_pb2.py +++ b/google/ads/google_ads/v4/proto/common/value_pb2.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/common/value.proto +# source: google/ads/googleads_v4/proto/common/value.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) @@ -17,11 +17,11 @@ DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/common/value.proto', - package='google.ads.googleads.v1.common', + name='google/ads/googleads_v4/proto/common/value.proto', + package='google.ads.googleads.v4.common', syntax='proto3', - serialized_options=_b('\n\"com.google.ads.googleads.v1.commonB\nValueProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/common;common\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V1.Common\312\002\036Google\\Ads\\GoogleAds\\V1\\Common\352\002\"Google::Ads::GoogleAds::V1::Common'), - serialized_pb=_b('\n0google/ads/googleads_v1/proto/common/value.proto\x12\x1egoogle.ads.googleads.v1.common\x1a\x1cgoogle/api/annotations.proto\"\x87\x01\n\x05Value\x12\x17\n\rboolean_value\x18\x01 \x01(\x08H\x00\x12\x15\n\x0bint64_value\x18\x02 \x01(\x03H\x00\x12\x15\n\x0b\x66loat_value\x18\x03 \x01(\x02H\x00\x12\x16\n\x0c\x64ouble_value\x18\x04 \x01(\x01H\x00\x12\x16\n\x0cstring_value\x18\x05 \x01(\tH\x00\x42\x07\n\x05valueB\xe5\x01\n\"com.google.ads.googleads.v1.commonB\nValueProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/common;common\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V1.Common\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V1\\Common\xea\x02\"Google::Ads::GoogleAds::V1::Commonb\x06proto3') + serialized_options=_b('\n\"com.google.ads.googleads.v4.commonB\nValueProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/common;common\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V4.Common\312\002\036Google\\Ads\\GoogleAds\\V4\\Common\352\002\"Google::Ads::GoogleAds::V4::Common'), + serialized_pb=_b('\n0google/ads/googleads_v4/proto/common/value.proto\x12\x1egoogle.ads.googleads.v4.common\x1a\x1cgoogle/api/annotations.proto\"\x87\x01\n\x05Value\x12\x17\n\rboolean_value\x18\x01 \x01(\x08H\x00\x12\x15\n\x0bint64_value\x18\x02 \x01(\x03H\x00\x12\x15\n\x0b\x66loat_value\x18\x03 \x01(\x02H\x00\x12\x16\n\x0c\x64ouble_value\x18\x04 \x01(\x01H\x00\x12\x16\n\x0cstring_value\x18\x05 \x01(\tH\x00\x42\x07\n\x05valueB\xe5\x01\n\"com.google.ads.googleads.v4.commonB\nValueProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/common;common\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V4.Common\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V4\\Common\xea\x02\"Google::Ads::GoogleAds::V4::Commonb\x06proto3') , dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) @@ -30,41 +30,41 @@ _VALUE = _descriptor.Descriptor( name='Value', - full_name='google.ads.googleads.v1.common.Value', + full_name='google.ads.googleads.v4.common.Value', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='boolean_value', full_name='google.ads.googleads.v1.common.Value.boolean_value', index=0, + name='boolean_value', full_name='google.ads.googleads.v4.common.Value.boolean_value', index=0, number=1, type=8, cpp_type=7, label=1, has_default_value=False, default_value=False, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='int64_value', full_name='google.ads.googleads.v1.common.Value.int64_value', index=1, + name='int64_value', full_name='google.ads.googleads.v4.common.Value.int64_value', index=1, number=2, type=3, cpp_type=2, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='float_value', full_name='google.ads.googleads.v1.common.Value.float_value', index=2, + name='float_value', full_name='google.ads.googleads.v4.common.Value.float_value', index=2, number=3, type=2, cpp_type=6, label=1, has_default_value=False, default_value=float(0), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='double_value', full_name='google.ads.googleads.v1.common.Value.double_value', index=3, + name='double_value', full_name='google.ads.googleads.v4.common.Value.double_value', index=3, number=4, type=1, cpp_type=5, label=1, has_default_value=False, default_value=float(0), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='string_value', full_name='google.ads.googleads.v1.common.Value.string_value', index=4, + name='string_value', full_name='google.ads.googleads.v4.common.Value.string_value', index=4, number=5, type=9, cpp_type=9, label=1, has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, @@ -82,7 +82,7 @@ extension_ranges=[], oneofs=[ _descriptor.OneofDescriptor( - name='value', full_name='google.ads.googleads.v1.common.Value.value', + name='value', full_name='google.ads.googleads.v4.common.Value.value', index=0, containing_type=None, fields=[]), ], serialized_start=115, @@ -109,7 +109,7 @@ Value = _reflection.GeneratedProtocolMessageType('Value', (_message.Message,), dict( DESCRIPTOR = _VALUE, - __module__ = 'google.ads.googleads_v1.proto.common.value_pb2' + __module__ = 'google.ads.googleads_v4.proto.common.value_pb2' , __doc__ = """A generic data container. @@ -128,7 +128,7 @@ string_value: A string. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.Value) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.common.Value) )) _sym_db.RegisterMessage(Value) diff --git a/google/ads/google_ads/v1/proto/enums/access_reason_pb2_grpc.py b/google/ads/google_ads/v4/proto/common/value_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/enums/access_reason_pb2_grpc.py rename to google/ads/google_ads/v4/proto/common/value_pb2_grpc.py diff --git a/google/ads/google_ads/v1/proto/enums/__init__.py b/google/ads/google_ads/v4/proto/enums/__init__.py similarity index 100% rename from google/ads/google_ads/v1/proto/enums/__init__.py rename to google/ads/google_ads/v4/proto/enums/__init__.py diff --git a/google/ads/google_ads/v4/proto/enums/access_reason_pb2.py b/google/ads/google_ads/v4/proto/enums/access_reason_pb2.py new file mode 100644 index 000000000..07f600047 --- /dev/null +++ b/google/ads/google_ads/v4/proto/enums/access_reason_pb2.py @@ -0,0 +1,113 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/enums/access_reason.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/enums/access_reason.proto', + package='google.ads.googleads.v4.enums', + syntax='proto3', + serialized_options=_b('\n!com.google.ads.googleads.v4.enumsB\021AccessReasonProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V4.Enums\312\002\035Google\\Ads\\GoogleAds\\V4\\Enums\352\002!Google::Ads::GoogleAds::V4::Enums'), + serialized_pb=_b('\n7google/ads/googleads_v4/proto/enums/access_reason.proto\x12\x1dgoogle.ads.googleads.v4.enums\x1a\x1cgoogle/api/annotations.proto\"\x85\x01\n\x10\x41\x63\x63\x65ssReasonEnum\"q\n\x0c\x41\x63\x63\x65ssReason\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\t\n\x05OWNED\x10\x02\x12\n\n\x06SHARED\x10\x03\x12\x0c\n\x08LICENSED\x10\x04\x12\x0e\n\nSUBSCRIBED\x10\x05\x12\x0e\n\nAFFILIATED\x10\x06\x42\xe6\x01\n!com.google.ads.googleads.v4.enumsB\x11\x41\x63\x63\x65ssReasonProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V4.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V4\\Enums\xea\x02!Google::Ads::GoogleAds::V4::Enumsb\x06proto3') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_ACCESSREASONENUM_ACCESSREASON = _descriptor.EnumDescriptor( + name='AccessReason', + full_name='google.ads.googleads.v4.enums.AccessReasonEnum.AccessReason', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='UNSPECIFIED', index=0, number=0, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='UNKNOWN', index=1, number=1, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='OWNED', index=2, number=2, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='SHARED', index=3, number=3, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='LICENSED', index=4, number=4, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='SUBSCRIBED', index=5, number=5, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='AFFILIATED', index=6, number=6, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=141, + serialized_end=254, +) +_sym_db.RegisterEnumDescriptor(_ACCESSREASONENUM_ACCESSREASON) + + +_ACCESSREASONENUM = _descriptor.Descriptor( + name='AccessReasonEnum', + full_name='google.ads.googleads.v4.enums.AccessReasonEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _ACCESSREASONENUM_ACCESSREASON, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=121, + serialized_end=254, +) + +_ACCESSREASONENUM_ACCESSREASON.containing_type = _ACCESSREASONENUM +DESCRIPTOR.message_types_by_name['AccessReasonEnum'] = _ACCESSREASONENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +AccessReasonEnum = _reflection.GeneratedProtocolMessageType('AccessReasonEnum', (_message.Message,), dict( + DESCRIPTOR = _ACCESSREASONENUM, + __module__ = 'google.ads.googleads_v4.proto.enums.access_reason_pb2' + , + __doc__ = """Indicates the way the resource such as user list is related to a user. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.enums.AccessReasonEnum) + )) +_sym_db.RegisterMessage(AccessReasonEnum) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/enums/account_budget_proposal_status_pb2_grpc.py b/google/ads/google_ads/v4/proto/enums/access_reason_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/enums/account_budget_proposal_status_pb2_grpc.py rename to google/ads/google_ads/v4/proto/enums/access_reason_pb2_grpc.py diff --git a/google/ads/google_ads/v4/proto/enums/access_role_pb2.py b/google/ads/google_ads/v4/proto/enums/access_role_pb2.py new file mode 100644 index 000000000..4eb3cb4f5 --- /dev/null +++ b/google/ads/google_ads/v4/proto/enums/access_role_pb2.py @@ -0,0 +1,105 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/enums/access_role.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/enums/access_role.proto', + package='google.ads.googleads.v4.enums', + syntax='proto3', + serialized_options=_b('\n!com.google.ads.googleads.v4.enumsB\017AccessRoleProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V4.Enums\312\002\035Google\\Ads\\GoogleAds\\V4\\Enums\352\002!Google::Ads::GoogleAds::V4::Enums'), + serialized_pb=_b('\n5google/ads/googleads_v4/proto/enums/access_role.proto\x12\x1dgoogle.ads.googleads.v4.enums\x1a\x1cgoogle/api/annotations.proto\"d\n\x0e\x41\x63\x63\x65ssRoleEnum\"R\n\nAccessRole\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\t\n\x05\x41\x44MIN\x10\x02\x12\x0c\n\x08STANDARD\x10\x03\x12\r\n\tREAD_ONLY\x10\x04\x42\xe4\x01\n!com.google.ads.googleads.v4.enumsB\x0f\x41\x63\x63\x65ssRoleProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V4.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V4\\Enums\xea\x02!Google::Ads::GoogleAds::V4::Enumsb\x06proto3') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_ACCESSROLEENUM_ACCESSROLE = _descriptor.EnumDescriptor( + name='AccessRole', + full_name='google.ads.googleads.v4.enums.AccessRoleEnum.AccessRole', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='UNSPECIFIED', index=0, number=0, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='UNKNOWN', index=1, number=1, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='ADMIN', index=2, number=2, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='STANDARD', index=3, number=3, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='READ_ONLY', index=4, number=4, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=136, + serialized_end=218, +) +_sym_db.RegisterEnumDescriptor(_ACCESSROLEENUM_ACCESSROLE) + + +_ACCESSROLEENUM = _descriptor.Descriptor( + name='AccessRoleEnum', + full_name='google.ads.googleads.v4.enums.AccessRoleEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _ACCESSROLEENUM_ACCESSROLE, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=118, + serialized_end=218, +) + +_ACCESSROLEENUM_ACCESSROLE.containing_type = _ACCESSROLEENUM +DESCRIPTOR.message_types_by_name['AccessRoleEnum'] = _ACCESSROLEENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +AccessRoleEnum = _reflection.GeneratedProtocolMessageType('AccessRoleEnum', (_message.Message,), dict( + DESCRIPTOR = _ACCESSROLEENUM, + __module__ = 'google.ads.googleads_v4.proto.enums.access_role_pb2' + , + __doc__ = """Container for enum describing possible access role for user. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.enums.AccessRoleEnum) + )) +_sym_db.RegisterMessage(AccessRoleEnum) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/enums/account_budget_proposal_type_pb2_grpc.py b/google/ads/google_ads/v4/proto/enums/access_role_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/enums/account_budget_proposal_type_pb2_grpc.py rename to google/ads/google_ads/v4/proto/enums/access_role_pb2_grpc.py diff --git a/google/ads/google_ads/v1/proto/enums/account_budget_proposal_status_pb2.py b/google/ads/google_ads/v4/proto/enums/account_budget_proposal_status_pb2.py similarity index 77% rename from google/ads/google_ads/v1/proto/enums/account_budget_proposal_status_pb2.py rename to google/ads/google_ads/v4/proto/enums/account_budget_proposal_status_pb2.py index 9c22d61c1..cf29994b9 100644 --- a/google/ads/google_ads/v1/proto/enums/account_budget_proposal_status_pb2.py +++ b/google/ads/google_ads/v4/proto/enums/account_budget_proposal_status_pb2.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/enums/account_budget_proposal_status.proto +# source: google/ads/googleads_v4/proto/enums/account_budget_proposal_status.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) @@ -17,11 +17,11 @@ DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/enums/account_budget_proposal_status.proto', - package='google.ads.googleads.v1.enums', + name='google/ads/googleads_v4/proto/enums/account_budget_proposal_status.proto', + package='google.ads.googleads.v4.enums', syntax='proto3', - serialized_options=_b('\n!com.google.ads.googleads.v1.enumsB AccountBudgetProposalStatusProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v1/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V1.Enums\312\002\035Google\\Ads\\GoogleAds\\V1\\Enums\352\002!Google::Ads::GoogleAds::V1::Enums'), - serialized_pb=_b('\nHgoogle/ads/googleads_v1/proto/enums/account_budget_proposal_status.proto\x12\x1dgoogle.ads.googleads.v1.enums\x1a\x1cgoogle/api/annotations.proto\"\xaa\x01\n\x1f\x41\x63\x63ountBudgetProposalStatusEnum\"\x86\x01\n\x1b\x41\x63\x63ountBudgetProposalStatus\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0b\n\x07PENDING\x10\x02\x12\x11\n\rAPPROVED_HELD\x10\x03\x12\x0c\n\x08\x41PPROVED\x10\x04\x12\r\n\tCANCELLED\x10\x05\x12\x0c\n\x08REJECTED\x10\x06\x42\xf5\x01\n!com.google.ads.googleads.v1.enumsB AccountBudgetProposalStatusProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v1/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V1.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V1\\Enums\xea\x02!Google::Ads::GoogleAds::V1::Enumsb\x06proto3') + serialized_options=_b('\n!com.google.ads.googleads.v4.enumsB AccountBudgetProposalStatusProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V4.Enums\312\002\035Google\\Ads\\GoogleAds\\V4\\Enums\352\002!Google::Ads::GoogleAds::V4::Enums'), + serialized_pb=_b('\nHgoogle/ads/googleads_v4/proto/enums/account_budget_proposal_status.proto\x12\x1dgoogle.ads.googleads.v4.enums\x1a\x1cgoogle/api/annotations.proto\"\xaa\x01\n\x1f\x41\x63\x63ountBudgetProposalStatusEnum\"\x86\x01\n\x1b\x41\x63\x63ountBudgetProposalStatus\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0b\n\x07PENDING\x10\x02\x12\x11\n\rAPPROVED_HELD\x10\x03\x12\x0c\n\x08\x41PPROVED\x10\x04\x12\r\n\tCANCELLED\x10\x05\x12\x0c\n\x08REJECTED\x10\x06\x42\xf5\x01\n!com.google.ads.googleads.v4.enumsB AccountBudgetProposalStatusProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V4.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V4\\Enums\xea\x02!Google::Ads::GoogleAds::V4::Enumsb\x06proto3') , dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) @@ -29,7 +29,7 @@ _ACCOUNTBUDGETPROPOSALSTATUSENUM_ACCOUNTBUDGETPROPOSALSTATUS = _descriptor.EnumDescriptor( name='AccountBudgetProposalStatus', - full_name='google.ads.googleads.v1.enums.AccountBudgetProposalStatusEnum.AccountBudgetProposalStatus', + full_name='google.ads.googleads.v4.enums.AccountBudgetProposalStatusEnum.AccountBudgetProposalStatus', filename=None, file=DESCRIPTOR, values=[ @@ -72,7 +72,7 @@ _ACCOUNTBUDGETPROPOSALSTATUSENUM = _descriptor.Descriptor( name='AccountBudgetProposalStatusEnum', - full_name='google.ads.googleads.v1.enums.AccountBudgetProposalStatusEnum', + full_name='google.ads.googleads.v4.enums.AccountBudgetProposalStatusEnum', filename=None, file=DESCRIPTOR, containing_type=None, @@ -100,11 +100,11 @@ AccountBudgetProposalStatusEnum = _reflection.GeneratedProtocolMessageType('AccountBudgetProposalStatusEnum', (_message.Message,), dict( DESCRIPTOR = _ACCOUNTBUDGETPROPOSALSTATUSENUM, - __module__ = 'google.ads.googleads_v1.proto.enums.account_budget_proposal_status_pb2' + __module__ = 'google.ads.googleads_v4.proto.enums.account_budget_proposal_status_pb2' , __doc__ = """Message describing AccountBudgetProposal statuses. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.enums.AccountBudgetProposalStatusEnum) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.enums.AccountBudgetProposalStatusEnum) )) _sym_db.RegisterMessage(AccountBudgetProposalStatusEnum) diff --git a/google/ads/google_ads/v1/proto/enums/account_budget_status_pb2_grpc.py b/google/ads/google_ads/v4/proto/enums/account_budget_proposal_status_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/enums/account_budget_status_pb2_grpc.py rename to google/ads/google_ads/v4/proto/enums/account_budget_proposal_status_pb2_grpc.py diff --git a/google/ads/google_ads/v1/proto/enums/account_budget_proposal_type_pb2.py b/google/ads/google_ads/v4/proto/enums/account_budget_proposal_type_pb2.py similarity index 76% rename from google/ads/google_ads/v1/proto/enums/account_budget_proposal_type_pb2.py rename to google/ads/google_ads/v4/proto/enums/account_budget_proposal_type_pb2.py index 3a7d44ea0..70845509a 100644 --- a/google/ads/google_ads/v1/proto/enums/account_budget_proposal_type_pb2.py +++ b/google/ads/google_ads/v4/proto/enums/account_budget_proposal_type_pb2.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/enums/account_budget_proposal_type.proto +# source: google/ads/googleads_v4/proto/enums/account_budget_proposal_type.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) @@ -17,11 +17,11 @@ DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/enums/account_budget_proposal_type.proto', - package='google.ads.googleads.v1.enums', + name='google/ads/googleads_v4/proto/enums/account_budget_proposal_type.proto', + package='google.ads.googleads.v4.enums', syntax='proto3', - serialized_options=_b('\n!com.google.ads.googleads.v1.enumsB\036AccountBudgetProposalTypeProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v1/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V1.Enums\312\002\035Google\\Ads\\GoogleAds\\V1\\Enums\352\002!Google::Ads::GoogleAds::V1::Enums'), - serialized_pb=_b('\nFgoogle/ads/googleads_v1/proto/enums/account_budget_proposal_type.proto\x12\x1dgoogle.ads.googleads.v1.enums\x1a\x1cgoogle/api/annotations.proto\"\x87\x01\n\x1d\x41\x63\x63ountBudgetProposalTypeEnum\"f\n\x19\x41\x63\x63ountBudgetProposalType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\n\n\x06\x43REATE\x10\x02\x12\n\n\x06UPDATE\x10\x03\x12\x07\n\x03\x45ND\x10\x04\x12\n\n\x06REMOVE\x10\x05\x42\xf3\x01\n!com.google.ads.googleads.v1.enumsB\x1e\x41\x63\x63ountBudgetProposalTypeProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v1/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V1.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V1\\Enums\xea\x02!Google::Ads::GoogleAds::V1::Enumsb\x06proto3') + serialized_options=_b('\n!com.google.ads.googleads.v4.enumsB\036AccountBudgetProposalTypeProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V4.Enums\312\002\035Google\\Ads\\GoogleAds\\V4\\Enums\352\002!Google::Ads::GoogleAds::V4::Enums'), + serialized_pb=_b('\nFgoogle/ads/googleads_v4/proto/enums/account_budget_proposal_type.proto\x12\x1dgoogle.ads.googleads.v4.enums\x1a\x1cgoogle/api/annotations.proto\"\x87\x01\n\x1d\x41\x63\x63ountBudgetProposalTypeEnum\"f\n\x19\x41\x63\x63ountBudgetProposalType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\n\n\x06\x43REATE\x10\x02\x12\n\n\x06UPDATE\x10\x03\x12\x07\n\x03\x45ND\x10\x04\x12\n\n\x06REMOVE\x10\x05\x42\xf3\x01\n!com.google.ads.googleads.v4.enumsB\x1e\x41\x63\x63ountBudgetProposalTypeProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V4.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V4\\Enums\xea\x02!Google::Ads::GoogleAds::V4::Enumsb\x06proto3') , dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) @@ -29,7 +29,7 @@ _ACCOUNTBUDGETPROPOSALTYPEENUM_ACCOUNTBUDGETPROPOSALTYPE = _descriptor.EnumDescriptor( name='AccountBudgetProposalType', - full_name='google.ads.googleads.v1.enums.AccountBudgetProposalTypeEnum.AccountBudgetProposalType', + full_name='google.ads.googleads.v4.enums.AccountBudgetProposalTypeEnum.AccountBudgetProposalType', filename=None, file=DESCRIPTOR, values=[ @@ -68,7 +68,7 @@ _ACCOUNTBUDGETPROPOSALTYPEENUM = _descriptor.Descriptor( name='AccountBudgetProposalTypeEnum', - full_name='google.ads.googleads.v1.enums.AccountBudgetProposalTypeEnum', + full_name='google.ads.googleads.v4.enums.AccountBudgetProposalTypeEnum', filename=None, file=DESCRIPTOR, containing_type=None, @@ -96,11 +96,11 @@ AccountBudgetProposalTypeEnum = _reflection.GeneratedProtocolMessageType('AccountBudgetProposalTypeEnum', (_message.Message,), dict( DESCRIPTOR = _ACCOUNTBUDGETPROPOSALTYPEENUM, - __module__ = 'google.ads.googleads_v1.proto.enums.account_budget_proposal_type_pb2' + __module__ = 'google.ads.googleads_v4.proto.enums.account_budget_proposal_type_pb2' , __doc__ = """Message describing AccountBudgetProposal types. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.enums.AccountBudgetProposalTypeEnum) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.enums.AccountBudgetProposalTypeEnum) )) _sym_db.RegisterMessage(AccountBudgetProposalTypeEnum) diff --git a/google/ads/google_ads/v1/proto/enums/ad_customizer_placeholder_field_pb2_grpc.py b/google/ads/google_ads/v4/proto/enums/account_budget_proposal_type_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/enums/ad_customizer_placeholder_field_pb2_grpc.py rename to google/ads/google_ads/v4/proto/enums/account_budget_proposal_type_pb2_grpc.py diff --git a/google/ads/google_ads/v4/proto/enums/account_budget_status_pb2.py b/google/ads/google_ads/v4/proto/enums/account_budget_status_pb2.py new file mode 100644 index 000000000..4819b91fc --- /dev/null +++ b/google/ads/google_ads/v4/proto/enums/account_budget_status_pb2.py @@ -0,0 +1,105 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/enums/account_budget_status.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/enums/account_budget_status.proto', + package='google.ads.googleads.v4.enums', + syntax='proto3', + serialized_options=_b('\n!com.google.ads.googleads.v4.enumsB\030AccountBudgetStatusProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V4.Enums\312\002\035Google\\Ads\\GoogleAds\\V4\\Enums\352\002!Google::Ads::GoogleAds::V4::Enums'), + serialized_pb=_b('\n?google/ads/googleads_v4/proto/enums/account_budget_status.proto\x12\x1dgoogle.ads.googleads.v4.enums\x1a\x1cgoogle/api/annotations.proto\"x\n\x17\x41\x63\x63ountBudgetStatusEnum\"]\n\x13\x41\x63\x63ountBudgetStatus\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0b\n\x07PENDING\x10\x02\x12\x0c\n\x08\x41PPROVED\x10\x03\x12\r\n\tCANCELLED\x10\x04\x42\xed\x01\n!com.google.ads.googleads.v4.enumsB\x18\x41\x63\x63ountBudgetStatusProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V4.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V4\\Enums\xea\x02!Google::Ads::GoogleAds::V4::Enumsb\x06proto3') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_ACCOUNTBUDGETSTATUSENUM_ACCOUNTBUDGETSTATUS = _descriptor.EnumDescriptor( + name='AccountBudgetStatus', + full_name='google.ads.googleads.v4.enums.AccountBudgetStatusEnum.AccountBudgetStatus', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='UNSPECIFIED', index=0, number=0, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='UNKNOWN', index=1, number=1, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='PENDING', index=2, number=2, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='APPROVED', index=3, number=3, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CANCELLED', index=4, number=4, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=155, + serialized_end=248, +) +_sym_db.RegisterEnumDescriptor(_ACCOUNTBUDGETSTATUSENUM_ACCOUNTBUDGETSTATUS) + + +_ACCOUNTBUDGETSTATUSENUM = _descriptor.Descriptor( + name='AccountBudgetStatusEnum', + full_name='google.ads.googleads.v4.enums.AccountBudgetStatusEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _ACCOUNTBUDGETSTATUSENUM_ACCOUNTBUDGETSTATUS, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=128, + serialized_end=248, +) + +_ACCOUNTBUDGETSTATUSENUM_ACCOUNTBUDGETSTATUS.containing_type = _ACCOUNTBUDGETSTATUSENUM +DESCRIPTOR.message_types_by_name['AccountBudgetStatusEnum'] = _ACCOUNTBUDGETSTATUSENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +AccountBudgetStatusEnum = _reflection.GeneratedProtocolMessageType('AccountBudgetStatusEnum', (_message.Message,), dict( + DESCRIPTOR = _ACCOUNTBUDGETSTATUSENUM, + __module__ = 'google.ads.googleads_v4.proto.enums.account_budget_status_pb2' + , + __doc__ = """Message describing AccountBudget statuses. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.enums.AccountBudgetStatusEnum) + )) +_sym_db.RegisterMessage(AccountBudgetStatusEnum) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/enums/ad_group_ad_rotation_mode_pb2_grpc.py b/google/ads/google_ads/v4/proto/enums/account_budget_status_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/enums/ad_group_ad_rotation_mode_pb2_grpc.py rename to google/ads/google_ads/v4/proto/enums/account_budget_status_pb2_grpc.py diff --git a/google/ads/google_ads/v4/proto/enums/account_link_status_pb2.py b/google/ads/google_ads/v4/proto/enums/account_link_status_pb2.py new file mode 100644 index 000000000..ec31011cb --- /dev/null +++ b/google/ads/google_ads/v4/proto/enums/account_link_status_pb2.py @@ -0,0 +1,101 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/enums/account_link_status.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/enums/account_link_status.proto', + package='google.ads.googleads.v4.enums', + syntax='proto3', + serialized_options=_b('\n!com.google.ads.googleads.v4.enumsB\026AccountLinkStatusProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V4.Enums\312\002\035Google\\Ads\\GoogleAds\\V4\\Enums\352\002!Google::Ads::GoogleAds::V4::Enums'), + serialized_pb=_b('\n=google/ads/googleads_v4/proto/enums/account_link_status.proto\x12\x1dgoogle.ads.googleads.v4.enums\x1a\x1cgoogle/api/annotations.proto\"d\n\x15\x41\x63\x63ountLinkStatusEnum\"K\n\x11\x41\x63\x63ountLinkStatus\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0b\n\x07\x45NABLED\x10\x02\x12\x0b\n\x07REMOVED\x10\x03\x42\xeb\x01\n!com.google.ads.googleads.v4.enumsB\x16\x41\x63\x63ountLinkStatusProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V4.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V4\\Enums\xea\x02!Google::Ads::GoogleAds::V4::Enumsb\x06proto3') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_ACCOUNTLINKSTATUSENUM_ACCOUNTLINKSTATUS = _descriptor.EnumDescriptor( + name='AccountLinkStatus', + full_name='google.ads.googleads.v4.enums.AccountLinkStatusEnum.AccountLinkStatus', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='UNSPECIFIED', index=0, number=0, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='UNKNOWN', index=1, number=1, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='ENABLED', index=2, number=2, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='REMOVED', index=3, number=3, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=151, + serialized_end=226, +) +_sym_db.RegisterEnumDescriptor(_ACCOUNTLINKSTATUSENUM_ACCOUNTLINKSTATUS) + + +_ACCOUNTLINKSTATUSENUM = _descriptor.Descriptor( + name='AccountLinkStatusEnum', + full_name='google.ads.googleads.v4.enums.AccountLinkStatusEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _ACCOUNTLINKSTATUSENUM_ACCOUNTLINKSTATUS, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=126, + serialized_end=226, +) + +_ACCOUNTLINKSTATUSENUM_ACCOUNTLINKSTATUS.containing_type = _ACCOUNTLINKSTATUSENUM +DESCRIPTOR.message_types_by_name['AccountLinkStatusEnum'] = _ACCOUNTLINKSTATUSENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +AccountLinkStatusEnum = _reflection.GeneratedProtocolMessageType('AccountLinkStatusEnum', (_message.Message,), dict( + DESCRIPTOR = _ACCOUNTLINKSTATUSENUM, + __module__ = 'google.ads.googleads_v4.proto.enums.account_link_status_pb2' + , + __doc__ = """Container for enum describing possible statuses of an account link. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.enums.AccountLinkStatusEnum) + )) +_sym_db.RegisterMessage(AccountLinkStatusEnum) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/enums/ad_group_ad_status_pb2_grpc.py b/google/ads/google_ads/v4/proto/enums/account_link_status_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/enums/ad_group_ad_status_pb2_grpc.py rename to google/ads/google_ads/v4/proto/enums/account_link_status_pb2_grpc.py diff --git a/google/ads/google_ads/v1/proto/enums/ad_customizer_placeholder_field_pb2.py b/google/ads/google_ads/v4/proto/enums/ad_customizer_placeholder_field_pb2.py similarity index 77% rename from google/ads/google_ads/v1/proto/enums/ad_customizer_placeholder_field_pb2.py rename to google/ads/google_ads/v4/proto/enums/ad_customizer_placeholder_field_pb2.py index 5da84e08e..c60c41c4c 100644 --- a/google/ads/google_ads/v1/proto/enums/ad_customizer_placeholder_field_pb2.py +++ b/google/ads/google_ads/v4/proto/enums/ad_customizer_placeholder_field_pb2.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/enums/ad_customizer_placeholder_field.proto +# source: google/ads/googleads_v4/proto/enums/ad_customizer_placeholder_field.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) @@ -17,11 +17,11 @@ DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/enums/ad_customizer_placeholder_field.proto', - package='google.ads.googleads.v1.enums', + name='google/ads/googleads_v4/proto/enums/ad_customizer_placeholder_field.proto', + package='google.ads.googleads.v4.enums', syntax='proto3', - serialized_options=_b('\n!com.google.ads.googleads.v1.enumsB!AdCustomizerPlaceholderFieldProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v1/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V1.Enums\312\002\035Google\\Ads\\GoogleAds\\V1\\Enums\352\002!Google::Ads::GoogleAds::V1::Enums'), - serialized_pb=_b('\nIgoogle/ads/googleads_v1/proto/enums/ad_customizer_placeholder_field.proto\x12\x1dgoogle.ads.googleads.v1.enums\x1a\x1cgoogle/api/annotations.proto\"\x8e\x01\n AdCustomizerPlaceholderFieldEnum\"j\n\x1c\x41\x64\x43ustomizerPlaceholderField\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0b\n\x07INTEGER\x10\x02\x12\t\n\x05PRICE\x10\x03\x12\x08\n\x04\x44\x41TE\x10\x04\x12\n\n\x06STRING\x10\x05\x42\xf6\x01\n!com.google.ads.googleads.v1.enumsB!AdCustomizerPlaceholderFieldProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v1/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V1.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V1\\Enums\xea\x02!Google::Ads::GoogleAds::V1::Enumsb\x06proto3') + serialized_options=_b('\n!com.google.ads.googleads.v4.enumsB!AdCustomizerPlaceholderFieldProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V4.Enums\312\002\035Google\\Ads\\GoogleAds\\V4\\Enums\352\002!Google::Ads::GoogleAds::V4::Enums'), + serialized_pb=_b('\nIgoogle/ads/googleads_v4/proto/enums/ad_customizer_placeholder_field.proto\x12\x1dgoogle.ads.googleads.v4.enums\x1a\x1cgoogle/api/annotations.proto\"\x8e\x01\n AdCustomizerPlaceholderFieldEnum\"j\n\x1c\x41\x64\x43ustomizerPlaceholderField\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0b\n\x07INTEGER\x10\x02\x12\t\n\x05PRICE\x10\x03\x12\x08\n\x04\x44\x41TE\x10\x04\x12\n\n\x06STRING\x10\x05\x42\xf6\x01\n!com.google.ads.googleads.v4.enumsB!AdCustomizerPlaceholderFieldProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V4.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V4\\Enums\xea\x02!Google::Ads::GoogleAds::V4::Enumsb\x06proto3') , dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) @@ -29,7 +29,7 @@ _ADCUSTOMIZERPLACEHOLDERFIELDENUM_ADCUSTOMIZERPLACEHOLDERFIELD = _descriptor.EnumDescriptor( name='AdCustomizerPlaceholderField', - full_name='google.ads.googleads.v1.enums.AdCustomizerPlaceholderFieldEnum.AdCustomizerPlaceholderField', + full_name='google.ads.googleads.v4.enums.AdCustomizerPlaceholderFieldEnum.AdCustomizerPlaceholderField', filename=None, file=DESCRIPTOR, values=[ @@ -68,7 +68,7 @@ _ADCUSTOMIZERPLACEHOLDERFIELDENUM = _descriptor.Descriptor( name='AdCustomizerPlaceholderFieldEnum', - full_name='google.ads.googleads.v1.enums.AdCustomizerPlaceholderFieldEnum', + full_name='google.ads.googleads.v4.enums.AdCustomizerPlaceholderFieldEnum', filename=None, file=DESCRIPTOR, containing_type=None, @@ -96,11 +96,11 @@ AdCustomizerPlaceholderFieldEnum = _reflection.GeneratedProtocolMessageType('AdCustomizerPlaceholderFieldEnum', (_message.Message,), dict( DESCRIPTOR = _ADCUSTOMIZERPLACEHOLDERFIELDENUM, - __module__ = 'google.ads.googleads_v1.proto.enums.ad_customizer_placeholder_field_pb2' + __module__ = 'google.ads.googleads_v4.proto.enums.ad_customizer_placeholder_field_pb2' , __doc__ = """Values for Ad Customizer placeholder fields. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.enums.AdCustomizerPlaceholderFieldEnum) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.enums.AdCustomizerPlaceholderFieldEnum) )) _sym_db.RegisterMessage(AdCustomizerPlaceholderFieldEnum) diff --git a/google/ads/google_ads/v1/proto/enums/ad_group_criterion_approval_status_pb2_grpc.py b/google/ads/google_ads/v4/proto/enums/ad_customizer_placeholder_field_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/enums/ad_group_criterion_approval_status_pb2_grpc.py rename to google/ads/google_ads/v4/proto/enums/ad_customizer_placeholder_field_pb2_grpc.py diff --git a/google/ads/google_ads/v1/proto/enums/ad_group_ad_rotation_mode_pb2.py b/google/ads/google_ads/v4/proto/enums/ad_group_ad_rotation_mode_pb2.py similarity index 75% rename from google/ads/google_ads/v1/proto/enums/ad_group_ad_rotation_mode_pb2.py rename to google/ads/google_ads/v4/proto/enums/ad_group_ad_rotation_mode_pb2.py index 67044d13e..15320c8b2 100644 --- a/google/ads/google_ads/v1/proto/enums/ad_group_ad_rotation_mode_pb2.py +++ b/google/ads/google_ads/v4/proto/enums/ad_group_ad_rotation_mode_pb2.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/enums/ad_group_ad_rotation_mode.proto +# source: google/ads/googleads_v4/proto/enums/ad_group_ad_rotation_mode.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) @@ -17,11 +17,11 @@ DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/enums/ad_group_ad_rotation_mode.proto', - package='google.ads.googleads.v1.enums', + name='google/ads/googleads_v4/proto/enums/ad_group_ad_rotation_mode.proto', + package='google.ads.googleads.v4.enums', syntax='proto3', - serialized_options=_b('\n!com.google.ads.googleads.v1.enumsB\032AdGroupAdRotationModeProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v1/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V1.Enums\312\002\035Google\\Ads\\GoogleAds\\V1\\Enums\352\002!Google::Ads::GoogleAds::V1::Enums'), - serialized_pb=_b('\nCgoogle/ads/googleads_v1/proto/enums/ad_group_ad_rotation_mode.proto\x12\x1dgoogle.ads.googleads.v1.enums\x1a\x1cgoogle/api/annotations.proto\"t\n\x19\x41\x64GroupAdRotationModeEnum\"W\n\x15\x41\x64GroupAdRotationMode\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0c\n\x08OPTIMIZE\x10\x02\x12\x12\n\x0eROTATE_FOREVER\x10\x03\x42\xef\x01\n!com.google.ads.googleads.v1.enumsB\x1a\x41\x64GroupAdRotationModeProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v1/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V1.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V1\\Enums\xea\x02!Google::Ads::GoogleAds::V1::Enumsb\x06proto3') + serialized_options=_b('\n!com.google.ads.googleads.v4.enumsB\032AdGroupAdRotationModeProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V4.Enums\312\002\035Google\\Ads\\GoogleAds\\V4\\Enums\352\002!Google::Ads::GoogleAds::V4::Enums'), + serialized_pb=_b('\nCgoogle/ads/googleads_v4/proto/enums/ad_group_ad_rotation_mode.proto\x12\x1dgoogle.ads.googleads.v4.enums\x1a\x1cgoogle/api/annotations.proto\"t\n\x19\x41\x64GroupAdRotationModeEnum\"W\n\x15\x41\x64GroupAdRotationMode\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0c\n\x08OPTIMIZE\x10\x02\x12\x12\n\x0eROTATE_FOREVER\x10\x03\x42\xef\x01\n!com.google.ads.googleads.v4.enumsB\x1a\x41\x64GroupAdRotationModeProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V4.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V4\\Enums\xea\x02!Google::Ads::GoogleAds::V4::Enumsb\x06proto3') , dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) @@ -29,7 +29,7 @@ _ADGROUPADROTATIONMODEENUM_ADGROUPADROTATIONMODE = _descriptor.EnumDescriptor( name='AdGroupAdRotationMode', - full_name='google.ads.googleads.v1.enums.AdGroupAdRotationModeEnum.AdGroupAdRotationMode', + full_name='google.ads.googleads.v4.enums.AdGroupAdRotationModeEnum.AdGroupAdRotationMode', filename=None, file=DESCRIPTOR, values=[ @@ -60,7 +60,7 @@ _ADGROUPADROTATIONMODEENUM = _descriptor.Descriptor( name='AdGroupAdRotationModeEnum', - full_name='google.ads.googleads.v1.enums.AdGroupAdRotationModeEnum', + full_name='google.ads.googleads.v4.enums.AdGroupAdRotationModeEnum', filename=None, file=DESCRIPTOR, containing_type=None, @@ -88,12 +88,12 @@ AdGroupAdRotationModeEnum = _reflection.GeneratedProtocolMessageType('AdGroupAdRotationModeEnum', (_message.Message,), dict( DESCRIPTOR = _ADGROUPADROTATIONMODEENUM, - __module__ = 'google.ads.googleads_v1.proto.enums.ad_group_ad_rotation_mode_pb2' + __module__ = 'google.ads.googleads_v4.proto.enums.ad_group_ad_rotation_mode_pb2' , __doc__ = """Container for enum describing possible ad rotation modes of ads within an ad group. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.enums.AdGroupAdRotationModeEnum) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.enums.AdGroupAdRotationModeEnum) )) _sym_db.RegisterMessage(AdGroupAdRotationModeEnum) diff --git a/google/ads/google_ads/v1/proto/enums/ad_group_criterion_status_pb2_grpc.py b/google/ads/google_ads/v4/proto/enums/ad_group_ad_rotation_mode_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/enums/ad_group_criterion_status_pb2_grpc.py rename to google/ads/google_ads/v4/proto/enums/ad_group_ad_rotation_mode_pb2_grpc.py diff --git a/google/ads/google_ads/v4/proto/enums/ad_group_ad_status_pb2.py b/google/ads/google_ads/v4/proto/enums/ad_group_ad_status_pb2.py new file mode 100644 index 000000000..71d700c0e --- /dev/null +++ b/google/ads/google_ads/v4/proto/enums/ad_group_ad_status_pb2.py @@ -0,0 +1,105 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/enums/ad_group_ad_status.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/enums/ad_group_ad_status.proto', + package='google.ads.googleads.v4.enums', + syntax='proto3', + serialized_options=_b('\n!com.google.ads.googleads.v4.enumsB\024AdGroupAdStatusProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V4.Enums\312\002\035Google\\Ads\\GoogleAds\\V4\\Enums\352\002!Google::Ads::GoogleAds::V4::Enums'), + serialized_pb=_b('\ngoogle/ads/googleads_v1/proto/enums/billing_setup_status.proto\x12\x1dgoogle.ads.googleads.v1.enums\x1a\x1cgoogle/api/annotations.proto\"\x89\x01\n\x16\x42illingSetupStatusEnum\"o\n\x12\x42illingSetupStatus\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0b\n\x07PENDING\x10\x02\x12\x11\n\rAPPROVED_HELD\x10\x03\x12\x0c\n\x08\x41PPROVED\x10\x04\x12\r\n\tCANCELLED\x10\x05\x42\xec\x01\n!com.google.ads.googleads.v1.enumsB\x17\x42illingSetupStatusProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v1/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V1.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V1\\Enums\xea\x02!Google::Ads::GoogleAds::V1::Enumsb\x06proto3') + serialized_options=_b('\n!com.google.ads.googleads.v4.enumsB\027BillingSetupStatusProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V4.Enums\312\002\035Google\\Ads\\GoogleAds\\V4\\Enums\352\002!Google::Ads::GoogleAds::V4::Enums'), + serialized_pb=_b('\n>google/ads/googleads_v4/proto/enums/billing_setup_status.proto\x12\x1dgoogle.ads.googleads.v4.enums\x1a\x1cgoogle/api/annotations.proto\"\x89\x01\n\x16\x42illingSetupStatusEnum\"o\n\x12\x42illingSetupStatus\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0b\n\x07PENDING\x10\x02\x12\x11\n\rAPPROVED_HELD\x10\x03\x12\x0c\n\x08\x41PPROVED\x10\x04\x12\r\n\tCANCELLED\x10\x05\x42\xec\x01\n!com.google.ads.googleads.v4.enumsB\x17\x42illingSetupStatusProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V4.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V4\\Enums\xea\x02!Google::Ads::GoogleAds::V4::Enumsb\x06proto3') , dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) @@ -29,7 +29,7 @@ _BILLINGSETUPSTATUSENUM_BILLINGSETUPSTATUS = _descriptor.EnumDescriptor( name='BillingSetupStatus', - full_name='google.ads.googleads.v1.enums.BillingSetupStatusEnum.BillingSetupStatus', + full_name='google.ads.googleads.v4.enums.BillingSetupStatusEnum.BillingSetupStatus', filename=None, file=DESCRIPTOR, values=[ @@ -68,7 +68,7 @@ _BILLINGSETUPSTATUSENUM = _descriptor.Descriptor( name='BillingSetupStatusEnum', - full_name='google.ads.googleads.v1.enums.BillingSetupStatusEnum', + full_name='google.ads.googleads.v4.enums.BillingSetupStatusEnum', filename=None, file=DESCRIPTOR, containing_type=None, @@ -96,11 +96,11 @@ BillingSetupStatusEnum = _reflection.GeneratedProtocolMessageType('BillingSetupStatusEnum', (_message.Message,), dict( DESCRIPTOR = _BILLINGSETUPSTATUSENUM, - __module__ = 'google.ads.googleads_v1.proto.enums.billing_setup_status_pb2' + __module__ = 'google.ads.googleads_v4.proto.enums.billing_setup_status_pb2' , __doc__ = """Message describing BillingSetup statuses. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.enums.BillingSetupStatusEnum) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.enums.BillingSetupStatusEnum) )) _sym_db.RegisterMessage(BillingSetupStatusEnum) diff --git a/google/ads/google_ads/v1/proto/enums/call_conversion_reporting_state_pb2_grpc.py b/google/ads/google_ads/v4/proto/enums/billing_setup_status_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/enums/call_conversion_reporting_state_pb2_grpc.py rename to google/ads/google_ads/v4/proto/enums/billing_setup_status_pb2_grpc.py diff --git a/google/ads/google_ads/v4/proto/enums/brand_safety_suitability_pb2.py b/google/ads/google_ads/v4/proto/enums/brand_safety_suitability_pb2.py new file mode 100644 index 000000000..d3de2922c --- /dev/null +++ b/google/ads/google_ads/v4/proto/enums/brand_safety_suitability_pb2.py @@ -0,0 +1,105 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/enums/brand_safety_suitability.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/enums/brand_safety_suitability.proto', + package='google.ads.googleads.v4.enums', + syntax='proto3', + serialized_options=_b('\n!com.google.ads.googleads.v4.enumsB\033BrandSafetySuitabilityProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V4.Enums\312\002\035Google\\Ads\\GoogleAds\\V4\\Enums\352\002!Google::Ads::GoogleAds::V4::Enums'), + serialized_pb=_b('\nBgoogle/ads/googleads_v4/proto/enums/brand_safety_suitability.proto\x12\x1dgoogle.ads.googleads.v4.enums\x1a\x1cgoogle/api/annotations.proto\"\x9b\x01\n\x1a\x42randSafetySuitabilityEnum\"}\n\x16\x42randSafetySuitability\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x16\n\x12\x45XPANDED_INVENTORY\x10\x02\x12\x16\n\x12STANDARD_INVENTORY\x10\x03\x12\x15\n\x11LIMITED_INVENTORY\x10\x04\x42\xf0\x01\n!com.google.ads.googleads.v4.enumsB\x1b\x42randSafetySuitabilityProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V4.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V4\\Enums\xea\x02!Google::Ads::GoogleAds::V4::Enumsb\x06proto3') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_BRANDSAFETYSUITABILITYENUM_BRANDSAFETYSUITABILITY = _descriptor.EnumDescriptor( + name='BrandSafetySuitability', + full_name='google.ads.googleads.v4.enums.BrandSafetySuitabilityEnum.BrandSafetySuitability', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='UNSPECIFIED', index=0, number=0, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='UNKNOWN', index=1, number=1, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='EXPANDED_INVENTORY', index=2, number=2, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='STANDARD_INVENTORY', index=3, number=3, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='LIMITED_INVENTORY', index=4, number=4, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=162, + serialized_end=287, +) +_sym_db.RegisterEnumDescriptor(_BRANDSAFETYSUITABILITYENUM_BRANDSAFETYSUITABILITY) + + +_BRANDSAFETYSUITABILITYENUM = _descriptor.Descriptor( + name='BrandSafetySuitabilityEnum', + full_name='google.ads.googleads.v4.enums.BrandSafetySuitabilityEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _BRANDSAFETYSUITABILITYENUM_BRANDSAFETYSUITABILITY, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=132, + serialized_end=287, +) + +_BRANDSAFETYSUITABILITYENUM_BRANDSAFETYSUITABILITY.containing_type = _BRANDSAFETYSUITABILITYENUM +DESCRIPTOR.message_types_by_name['BrandSafetySuitabilityEnum'] = _BRANDSAFETYSUITABILITYENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +BrandSafetySuitabilityEnum = _reflection.GeneratedProtocolMessageType('BrandSafetySuitabilityEnum', (_message.Message,), dict( + DESCRIPTOR = _BRANDSAFETYSUITABILITYENUM, + __module__ = 'google.ads.googleads_v4.proto.enums.brand_safety_suitability_pb2' + , + __doc__ = """Container for enum with 3-Tier brand safety suitability control. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.enums.BrandSafetySuitabilityEnum) + )) +_sym_db.RegisterMessage(BrandSafetySuitabilityEnum) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/enums/call_placeholder_field_pb2_grpc.py b/google/ads/google_ads/v4/proto/enums/brand_safety_suitability_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/enums/call_placeholder_field_pb2_grpc.py rename to google/ads/google_ads/v4/proto/enums/brand_safety_suitability_pb2_grpc.py diff --git a/google/ads/google_ads/v4/proto/enums/budget_delivery_method_pb2.py b/google/ads/google_ads/v4/proto/enums/budget_delivery_method_pb2.py new file mode 100644 index 000000000..e20c26e79 --- /dev/null +++ b/google/ads/google_ads/v4/proto/enums/budget_delivery_method_pb2.py @@ -0,0 +1,102 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/enums/budget_delivery_method.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/enums/budget_delivery_method.proto', + package='google.ads.googleads.v4.enums', + syntax='proto3', + serialized_options=_b('\n!com.google.ads.googleads.v4.enumsB\031BudgetDeliveryMethodProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V4.Enums\312\002\035Google\\Ads\\GoogleAds\\V4\\Enums\352\002!Google::Ads::GoogleAds::V4::Enums'), + serialized_pb=_b('\n@google/ads/googleads_v4/proto/enums/budget_delivery_method.proto\x12\x1dgoogle.ads.googleads.v4.enums\x1a\x1cgoogle/api/annotations.proto\"o\n\x18\x42udgetDeliveryMethodEnum\"S\n\x14\x42udgetDeliveryMethod\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0c\n\x08STANDARD\x10\x02\x12\x0f\n\x0b\x41\x43\x43\x45LERATED\x10\x03\x42\xee\x01\n!com.google.ads.googleads.v4.enumsB\x19\x42udgetDeliveryMethodProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V4.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V4\\Enums\xea\x02!Google::Ads::GoogleAds::V4::Enumsb\x06proto3') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_BUDGETDELIVERYMETHODENUM_BUDGETDELIVERYMETHOD = _descriptor.EnumDescriptor( + name='BudgetDeliveryMethod', + full_name='google.ads.googleads.v4.enums.BudgetDeliveryMethodEnum.BudgetDeliveryMethod', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='UNSPECIFIED', index=0, number=0, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='UNKNOWN', index=1, number=1, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='STANDARD', index=2, number=2, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='ACCELERATED', index=3, number=3, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=157, + serialized_end=240, +) +_sym_db.RegisterEnumDescriptor(_BUDGETDELIVERYMETHODENUM_BUDGETDELIVERYMETHOD) + + +_BUDGETDELIVERYMETHODENUM = _descriptor.Descriptor( + name='BudgetDeliveryMethodEnum', + full_name='google.ads.googleads.v4.enums.BudgetDeliveryMethodEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _BUDGETDELIVERYMETHODENUM_BUDGETDELIVERYMETHOD, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=129, + serialized_end=240, +) + +_BUDGETDELIVERYMETHODENUM_BUDGETDELIVERYMETHOD.containing_type = _BUDGETDELIVERYMETHODENUM +DESCRIPTOR.message_types_by_name['BudgetDeliveryMethodEnum'] = _BUDGETDELIVERYMETHODENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +BudgetDeliveryMethodEnum = _reflection.GeneratedProtocolMessageType('BudgetDeliveryMethodEnum', (_message.Message,), dict( + DESCRIPTOR = _BUDGETDELIVERYMETHODENUM, + __module__ = 'google.ads.googleads_v4.proto.enums.budget_delivery_method_pb2' + , + __doc__ = """Message describing Budget delivery methods. A delivery method determines + the rate at which the Budget is spent. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.enums.BudgetDeliveryMethodEnum) + )) +_sym_db.RegisterMessage(BudgetDeliveryMethodEnum) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/enums/callout_placeholder_field_pb2_grpc.py b/google/ads/google_ads/v4/proto/enums/budget_delivery_method_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/enums/callout_placeholder_field_pb2_grpc.py rename to google/ads/google_ads/v4/proto/enums/budget_delivery_method_pb2_grpc.py diff --git a/google/ads/google_ads/v4/proto/enums/budget_period_pb2.py b/google/ads/google_ads/v4/proto/enums/budget_period_pb2.py new file mode 100644 index 000000000..33e143171 --- /dev/null +++ b/google/ads/google_ads/v4/proto/enums/budget_period_pb2.py @@ -0,0 +1,97 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/enums/budget_period.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/enums/budget_period.proto', + package='google.ads.googleads.v4.enums', + syntax='proto3', + serialized_options=_b('\n!com.google.ads.googleads.v4.enumsB\021BudgetPeriodProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V4.Enums\312\002\035Google\\Ads\\GoogleAds\\V4\\Enums\352\002!Google::Ads::GoogleAds::V4::Enums'), + serialized_pb=_b('\n7google/ads/googleads_v4/proto/enums/budget_period.proto\x12\x1dgoogle.ads.googleads.v4.enums\x1a\x1cgoogle/api/annotations.proto\"K\n\x10\x42udgetPeriodEnum\"7\n\x0c\x42udgetPeriod\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\t\n\x05\x44\x41ILY\x10\x02\x42\xe6\x01\n!com.google.ads.googleads.v4.enumsB\x11\x42udgetPeriodProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V4.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V4\\Enums\xea\x02!Google::Ads::GoogleAds::V4::Enumsb\x06proto3') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_BUDGETPERIODENUM_BUDGETPERIOD = _descriptor.EnumDescriptor( + name='BudgetPeriod', + full_name='google.ads.googleads.v4.enums.BudgetPeriodEnum.BudgetPeriod', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='UNSPECIFIED', index=0, number=0, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='UNKNOWN', index=1, number=1, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='DAILY', index=2, number=2, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=140, + serialized_end=195, +) +_sym_db.RegisterEnumDescriptor(_BUDGETPERIODENUM_BUDGETPERIOD) + + +_BUDGETPERIODENUM = _descriptor.Descriptor( + name='BudgetPeriodEnum', + full_name='google.ads.googleads.v4.enums.BudgetPeriodEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _BUDGETPERIODENUM_BUDGETPERIOD, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=120, + serialized_end=195, +) + +_BUDGETPERIODENUM_BUDGETPERIOD.containing_type = _BUDGETPERIODENUM +DESCRIPTOR.message_types_by_name['BudgetPeriodEnum'] = _BUDGETPERIODENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +BudgetPeriodEnum = _reflection.GeneratedProtocolMessageType('BudgetPeriodEnum', (_message.Message,), dict( + DESCRIPTOR = _BUDGETPERIODENUM, + __module__ = 'google.ads.googleads_v4.proto.enums.budget_period_pb2' + , + __doc__ = """Message describing Budget period. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.enums.BudgetPeriodEnum) + )) +_sym_db.RegisterMessage(BudgetPeriodEnum) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/enums/campaign_criterion_status_pb2_grpc.py b/google/ads/google_ads/v4/proto/enums/budget_period_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/enums/campaign_criterion_status_pb2_grpc.py rename to google/ads/google_ads/v4/proto/enums/budget_period_pb2_grpc.py diff --git a/google/ads/google_ads/v4/proto/enums/budget_status_pb2.py b/google/ads/google_ads/v4/proto/enums/budget_status_pb2.py new file mode 100644 index 000000000..2ca101099 --- /dev/null +++ b/google/ads/google_ads/v4/proto/enums/budget_status_pb2.py @@ -0,0 +1,101 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/enums/budget_status.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/enums/budget_status.proto', + package='google.ads.googleads.v4.enums', + syntax='proto3', + serialized_options=_b('\n!com.google.ads.googleads.v4.enumsB\021BudgetStatusProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V4.Enums\312\002\035Google\\Ads\\GoogleAds\\V4\\Enums\352\002!Google::Ads::GoogleAds::V4::Enums'), + serialized_pb=_b('\n7google/ads/googleads_v4/proto/enums/budget_status.proto\x12\x1dgoogle.ads.googleads.v4.enums\x1a\x1cgoogle/api/annotations.proto\"Z\n\x10\x42udgetStatusEnum\"F\n\x0c\x42udgetStatus\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0b\n\x07\x45NABLED\x10\x02\x12\x0b\n\x07REMOVED\x10\x03\x42\xe6\x01\n!com.google.ads.googleads.v4.enumsB\x11\x42udgetStatusProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V4.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V4\\Enums\xea\x02!Google::Ads::GoogleAds::V4::Enumsb\x06proto3') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_BUDGETSTATUSENUM_BUDGETSTATUS = _descriptor.EnumDescriptor( + name='BudgetStatus', + full_name='google.ads.googleads.v4.enums.BudgetStatusEnum.BudgetStatus', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='UNSPECIFIED', index=0, number=0, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='UNKNOWN', index=1, number=1, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='ENABLED', index=2, number=2, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='REMOVED', index=3, number=3, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=140, + serialized_end=210, +) +_sym_db.RegisterEnumDescriptor(_BUDGETSTATUSENUM_BUDGETSTATUS) + + +_BUDGETSTATUSENUM = _descriptor.Descriptor( + name='BudgetStatusEnum', + full_name='google.ads.googleads.v4.enums.BudgetStatusEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _BUDGETSTATUSENUM_BUDGETSTATUS, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=120, + serialized_end=210, +) + +_BUDGETSTATUSENUM_BUDGETSTATUS.containing_type = _BUDGETSTATUSENUM +DESCRIPTOR.message_types_by_name['BudgetStatusEnum'] = _BUDGETSTATUSENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +BudgetStatusEnum = _reflection.GeneratedProtocolMessageType('BudgetStatusEnum', (_message.Message,), dict( + DESCRIPTOR = _BUDGETSTATUSENUM, + __module__ = 'google.ads.googleads_v4.proto.enums.budget_status_pb2' + , + __doc__ = """Message describing a Budget status + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.enums.BudgetStatusEnum) + )) +_sym_db.RegisterMessage(BudgetStatusEnum) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/enums/campaign_draft_status_pb2_grpc.py b/google/ads/google_ads/v4/proto/enums/budget_status_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/enums/campaign_draft_status_pb2_grpc.py rename to google/ads/google_ads/v4/proto/enums/budget_status_pb2_grpc.py diff --git a/google/ads/google_ads/v4/proto/enums/budget_type_pb2.py b/google/ads/google_ads/v4/proto/enums/budget_type_pb2.py new file mode 100644 index 000000000..d1fc18f6d --- /dev/null +++ b/google/ads/google_ads/v4/proto/enums/budget_type_pb2.py @@ -0,0 +1,105 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/enums/budget_type.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/enums/budget_type.proto', + package='google.ads.googleads.v4.enums', + syntax='proto3', + serialized_options=_b('\n!com.google.ads.googleads.v4.enumsB\017BudgetTypeProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V4.Enums\312\002\035Google\\Ads\\GoogleAds\\V4\\Enums\352\002!Google::Ads::GoogleAds::V4::Enums'), + serialized_pb=_b('\n5google/ads/googleads_v4/proto/enums/budget_type.proto\x12\x1dgoogle.ads.googleads.v4.enums\x1a\x1cgoogle/api/annotations.proto\"s\n\x0e\x42udgetTypeEnum\"a\n\nBudgetType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0c\n\x08STANDARD\x10\x02\x12\x18\n\x14HOTEL_ADS_COMMISSION\x10\x03\x12\r\n\tFIXED_CPA\x10\x04\x42\xe4\x01\n!com.google.ads.googleads.v4.enumsB\x0f\x42udgetTypeProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V4.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V4\\Enums\xea\x02!Google::Ads::GoogleAds::V4::Enumsb\x06proto3') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_BUDGETTYPEENUM_BUDGETTYPE = _descriptor.EnumDescriptor( + name='BudgetType', + full_name='google.ads.googleads.v4.enums.BudgetTypeEnum.BudgetType', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='UNSPECIFIED', index=0, number=0, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='UNKNOWN', index=1, number=1, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='STANDARD', index=2, number=2, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='HOTEL_ADS_COMMISSION', index=3, number=3, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='FIXED_CPA', index=4, number=4, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=136, + serialized_end=233, +) +_sym_db.RegisterEnumDescriptor(_BUDGETTYPEENUM_BUDGETTYPE) + + +_BUDGETTYPEENUM = _descriptor.Descriptor( + name='BudgetTypeEnum', + full_name='google.ads.googleads.v4.enums.BudgetTypeEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _BUDGETTYPEENUM_BUDGETTYPE, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=118, + serialized_end=233, +) + +_BUDGETTYPEENUM_BUDGETTYPE.containing_type = _BUDGETTYPEENUM +DESCRIPTOR.message_types_by_name['BudgetTypeEnum'] = _BUDGETTYPEENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +BudgetTypeEnum = _reflection.GeneratedProtocolMessageType('BudgetTypeEnum', (_message.Message,), dict( + DESCRIPTOR = _BUDGETTYPEENUM, + __module__ = 'google.ads.googleads_v4.proto.enums.budget_type_pb2' + , + __doc__ = """Describes Budget types. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.enums.BudgetTypeEnum) + )) +_sym_db.RegisterMessage(BudgetTypeEnum) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/enums/campaign_experiment_status_pb2_grpc.py b/google/ads/google_ads/v4/proto/enums/budget_type_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/enums/campaign_experiment_status_pb2_grpc.py rename to google/ads/google_ads/v4/proto/enums/budget_type_pb2_grpc.py diff --git a/google/ads/google_ads/v1/proto/enums/call_conversion_reporting_state_pb2.py b/google/ads/google_ads/v4/proto/enums/call_conversion_reporting_state_pb2.py similarity index 76% rename from google/ads/google_ads/v1/proto/enums/call_conversion_reporting_state_pb2.py rename to google/ads/google_ads/v4/proto/enums/call_conversion_reporting_state_pb2.py index e2a8a92b9..4b19e98c8 100644 --- a/google/ads/google_ads/v1/proto/enums/call_conversion_reporting_state_pb2.py +++ b/google/ads/google_ads/v4/proto/enums/call_conversion_reporting_state_pb2.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/enums/call_conversion_reporting_state.proto +# source: google/ads/googleads_v4/proto/enums/call_conversion_reporting_state.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) @@ -17,11 +17,11 @@ DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/enums/call_conversion_reporting_state.proto', - package='google.ads.googleads.v1.enums', + name='google/ads/googleads_v4/proto/enums/call_conversion_reporting_state.proto', + package='google.ads.googleads.v4.enums', syntax='proto3', - serialized_options=_b('\n!com.google.ads.googleads.v1.enumsB!CallConversionReportingStateProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v1/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V1.Enums\312\002\035Google\\Ads\\GoogleAds\\V1\\Enums\352\002!Google::Ads::GoogleAds::V1::Enums'), - serialized_pb=_b('\nIgoogle/ads/googleads_v1/proto/enums/call_conversion_reporting_state.proto\x12\x1dgoogle.ads.googleads.v1.enums\x1a\x1cgoogle/api/annotations.proto\"\xcc\x01\n CallConversionReportingStateEnum\"\xa7\x01\n\x1c\x43\x61llConversionReportingState\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0c\n\x08\x44ISABLED\x10\x02\x12,\n(USE_ACCOUNT_LEVEL_CALL_CONVERSION_ACTION\x10\x03\x12-\n)USE_RESOURCE_LEVEL_CALL_CONVERSION_ACTION\x10\x04\x42\xf6\x01\n!com.google.ads.googleads.v1.enumsB!CallConversionReportingStateProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v1/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V1.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V1\\Enums\xea\x02!Google::Ads::GoogleAds::V1::Enumsb\x06proto3') + serialized_options=_b('\n!com.google.ads.googleads.v4.enumsB!CallConversionReportingStateProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V4.Enums\312\002\035Google\\Ads\\GoogleAds\\V4\\Enums\352\002!Google::Ads::GoogleAds::V4::Enums'), + serialized_pb=_b('\nIgoogle/ads/googleads_v4/proto/enums/call_conversion_reporting_state.proto\x12\x1dgoogle.ads.googleads.v4.enums\x1a\x1cgoogle/api/annotations.proto\"\xcc\x01\n CallConversionReportingStateEnum\"\xa7\x01\n\x1c\x43\x61llConversionReportingState\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0c\n\x08\x44ISABLED\x10\x02\x12,\n(USE_ACCOUNT_LEVEL_CALL_CONVERSION_ACTION\x10\x03\x12-\n)USE_RESOURCE_LEVEL_CALL_CONVERSION_ACTION\x10\x04\x42\xf6\x01\n!com.google.ads.googleads.v4.enumsB!CallConversionReportingStateProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V4.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V4\\Enums\xea\x02!Google::Ads::GoogleAds::V4::Enumsb\x06proto3') , dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) @@ -29,7 +29,7 @@ _CALLCONVERSIONREPORTINGSTATEENUM_CALLCONVERSIONREPORTINGSTATE = _descriptor.EnumDescriptor( name='CallConversionReportingState', - full_name='google.ads.googleads.v1.enums.CallConversionReportingStateEnum.CallConversionReportingState', + full_name='google.ads.googleads.v4.enums.CallConversionReportingStateEnum.CallConversionReportingState', filename=None, file=DESCRIPTOR, values=[ @@ -64,7 +64,7 @@ _CALLCONVERSIONREPORTINGSTATEENUM = _descriptor.Descriptor( name='CallConversionReportingStateEnum', - full_name='google.ads.googleads.v1.enums.CallConversionReportingStateEnum', + full_name='google.ads.googleads.v4.enums.CallConversionReportingStateEnum', filename=None, file=DESCRIPTOR, containing_type=None, @@ -92,12 +92,12 @@ CallConversionReportingStateEnum = _reflection.GeneratedProtocolMessageType('CallConversionReportingStateEnum', (_message.Message,), dict( DESCRIPTOR = _CALLCONVERSIONREPORTINGSTATEENUM, - __module__ = 'google.ads.googleads_v1.proto.enums.call_conversion_reporting_state_pb2' + __module__ = 'google.ads.googleads_v4.proto.enums.call_conversion_reporting_state_pb2' , __doc__ = """Container for enum describing possible data types for call conversion reporting state. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.enums.CallConversionReportingStateEnum) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.enums.CallConversionReportingStateEnum) )) _sym_db.RegisterMessage(CallConversionReportingStateEnum) diff --git a/google/ads/google_ads/v1/proto/enums/campaign_experiment_traffic_split_type_pb2_grpc.py b/google/ads/google_ads/v4/proto/enums/call_conversion_reporting_state_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/enums/campaign_experiment_traffic_split_type_pb2_grpc.py rename to google/ads/google_ads/v4/proto/enums/call_conversion_reporting_state_pb2_grpc.py diff --git a/google/ads/google_ads/v1/proto/enums/call_placeholder_field_pb2.py b/google/ads/google_ads/v4/proto/enums/call_placeholder_field_pb2.py similarity index 77% rename from google/ads/google_ads/v1/proto/enums/call_placeholder_field_pb2.py rename to google/ads/google_ads/v4/proto/enums/call_placeholder_field_pb2.py index 05c9774ee..ba61ee812 100644 --- a/google/ads/google_ads/v1/proto/enums/call_placeholder_field_pb2.py +++ b/google/ads/google_ads/v4/proto/enums/call_placeholder_field_pb2.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/enums/call_placeholder_field.proto +# source: google/ads/googleads_v4/proto/enums/call_placeholder_field.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) @@ -17,11 +17,11 @@ DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/enums/call_placeholder_field.proto', - package='google.ads.googleads.v1.enums', + name='google/ads/googleads_v4/proto/enums/call_placeholder_field.proto', + package='google.ads.googleads.v4.enums', syntax='proto3', - serialized_options=_b('\n!com.google.ads.googleads.v1.enumsB\031CallPlaceholderFieldProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v1/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V1.Enums\312\002\035Google\\Ads\\GoogleAds\\V1\\Enums\352\002!Google::Ads::GoogleAds::V1::Enums'), - serialized_pb=_b('\n@google/ads/googleads_v1/proto/enums/call_placeholder_field.proto\x12\x1dgoogle.ads.googleads.v1.enums\x1a\x1cgoogle/api/annotations.proto\"\xba\x01\n\x18\x43\x61llPlaceholderFieldEnum\"\x9d\x01\n\x14\x43\x61llPlaceholderField\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x10\n\x0cPHONE_NUMBER\x10\x02\x12\x10\n\x0c\x43OUNTRY_CODE\x10\x03\x12\x0b\n\x07TRACKED\x10\x04\x12\x16\n\x12\x43ONVERSION_TYPE_ID\x10\x05\x12\x1e\n\x1a\x43ONVERSION_REPORTING_STATE\x10\x06\x42\xee\x01\n!com.google.ads.googleads.v1.enumsB\x19\x43\x61llPlaceholderFieldProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v1/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V1.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V1\\Enums\xea\x02!Google::Ads::GoogleAds::V1::Enumsb\x06proto3') + serialized_options=_b('\n!com.google.ads.googleads.v4.enumsB\031CallPlaceholderFieldProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V4.Enums\312\002\035Google\\Ads\\GoogleAds\\V4\\Enums\352\002!Google::Ads::GoogleAds::V4::Enums'), + serialized_pb=_b('\n@google/ads/googleads_v4/proto/enums/call_placeholder_field.proto\x12\x1dgoogle.ads.googleads.v4.enums\x1a\x1cgoogle/api/annotations.proto\"\xba\x01\n\x18\x43\x61llPlaceholderFieldEnum\"\x9d\x01\n\x14\x43\x61llPlaceholderField\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x10\n\x0cPHONE_NUMBER\x10\x02\x12\x10\n\x0c\x43OUNTRY_CODE\x10\x03\x12\x0b\n\x07TRACKED\x10\x04\x12\x16\n\x12\x43ONVERSION_TYPE_ID\x10\x05\x12\x1e\n\x1a\x43ONVERSION_REPORTING_STATE\x10\x06\x42\xee\x01\n!com.google.ads.googleads.v4.enumsB\x19\x43\x61llPlaceholderFieldProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V4.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V4\\Enums\xea\x02!Google::Ads::GoogleAds::V4::Enumsb\x06proto3') , dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) @@ -29,7 +29,7 @@ _CALLPLACEHOLDERFIELDENUM_CALLPLACEHOLDERFIELD = _descriptor.EnumDescriptor( name='CallPlaceholderField', - full_name='google.ads.googleads.v1.enums.CallPlaceholderFieldEnum.CallPlaceholderField', + full_name='google.ads.googleads.v4.enums.CallPlaceholderFieldEnum.CallPlaceholderField', filename=None, file=DESCRIPTOR, values=[ @@ -72,7 +72,7 @@ _CALLPLACEHOLDERFIELDENUM = _descriptor.Descriptor( name='CallPlaceholderFieldEnum', - full_name='google.ads.googleads.v1.enums.CallPlaceholderFieldEnum', + full_name='google.ads.googleads.v4.enums.CallPlaceholderFieldEnum', filename=None, file=DESCRIPTOR, containing_type=None, @@ -100,11 +100,11 @@ CallPlaceholderFieldEnum = _reflection.GeneratedProtocolMessageType('CallPlaceholderFieldEnum', (_message.Message,), dict( DESCRIPTOR = _CALLPLACEHOLDERFIELDENUM, - __module__ = 'google.ads.googleads_v1.proto.enums.call_placeholder_field_pb2' + __module__ = 'google.ads.googleads_v4.proto.enums.call_placeholder_field_pb2' , __doc__ = """Values for Call placeholder fields. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.enums.CallPlaceholderFieldEnum) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.enums.CallPlaceholderFieldEnum) )) _sym_db.RegisterMessage(CallPlaceholderFieldEnum) diff --git a/google/ads/google_ads/v1/proto/enums/campaign_experiment_type_pb2_grpc.py b/google/ads/google_ads/v4/proto/enums/call_placeholder_field_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/enums/campaign_experiment_type_pb2_grpc.py rename to google/ads/google_ads/v4/proto/enums/call_placeholder_field_pb2_grpc.py diff --git a/google/ads/google_ads/v4/proto/enums/callout_placeholder_field_pb2.py b/google/ads/google_ads/v4/proto/enums/callout_placeholder_field_pb2.py new file mode 100644 index 000000000..227634926 --- /dev/null +++ b/google/ads/google_ads/v4/proto/enums/callout_placeholder_field_pb2.py @@ -0,0 +1,97 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/enums/callout_placeholder_field.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/enums/callout_placeholder_field.proto', + package='google.ads.googleads.v4.enums', + syntax='proto3', + serialized_options=_b('\n!com.google.ads.googleads.v4.enumsB\034CalloutPlaceholderFieldProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V4.Enums\312\002\035Google\\Ads\\GoogleAds\\V4\\Enums\352\002!Google::Ads::GoogleAds::V4::Enums'), + serialized_pb=_b('\nCgoogle/ads/googleads_v4/proto/enums/callout_placeholder_field.proto\x12\x1dgoogle.ads.googleads.v4.enums\x1a\x1cgoogle/api/annotations.proto\"h\n\x1b\x43\x61lloutPlaceholderFieldEnum\"I\n\x17\x43\x61lloutPlaceholderField\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x10\n\x0c\x43\x41LLOUT_TEXT\x10\x02\x42\xf1\x01\n!com.google.ads.googleads.v4.enumsB\x1c\x43\x61lloutPlaceholderFieldProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V4.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V4\\Enums\xea\x02!Google::Ads::GoogleAds::V4::Enumsb\x06proto3') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_CALLOUTPLACEHOLDERFIELDENUM_CALLOUTPLACEHOLDERFIELD = _descriptor.EnumDescriptor( + name='CalloutPlaceholderField', + full_name='google.ads.googleads.v4.enums.CalloutPlaceholderFieldEnum.CalloutPlaceholderField', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='UNSPECIFIED', index=0, number=0, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='UNKNOWN', index=1, number=1, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CALLOUT_TEXT', index=2, number=2, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=163, + serialized_end=236, +) +_sym_db.RegisterEnumDescriptor(_CALLOUTPLACEHOLDERFIELDENUM_CALLOUTPLACEHOLDERFIELD) + + +_CALLOUTPLACEHOLDERFIELDENUM = _descriptor.Descriptor( + name='CalloutPlaceholderFieldEnum', + full_name='google.ads.googleads.v4.enums.CalloutPlaceholderFieldEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _CALLOUTPLACEHOLDERFIELDENUM_CALLOUTPLACEHOLDERFIELD, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=132, + serialized_end=236, +) + +_CALLOUTPLACEHOLDERFIELDENUM_CALLOUTPLACEHOLDERFIELD.containing_type = _CALLOUTPLACEHOLDERFIELDENUM +DESCRIPTOR.message_types_by_name['CalloutPlaceholderFieldEnum'] = _CALLOUTPLACEHOLDERFIELDENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +CalloutPlaceholderFieldEnum = _reflection.GeneratedProtocolMessageType('CalloutPlaceholderFieldEnum', (_message.Message,), dict( + DESCRIPTOR = _CALLOUTPLACEHOLDERFIELDENUM, + __module__ = 'google.ads.googleads_v4.proto.enums.callout_placeholder_field_pb2' + , + __doc__ = """Values for Callout placeholder fields. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.enums.CalloutPlaceholderFieldEnum) + )) +_sym_db.RegisterMessage(CalloutPlaceholderFieldEnum) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/enums/campaign_serving_status_pb2_grpc.py b/google/ads/google_ads/v4/proto/enums/callout_placeholder_field_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/enums/campaign_serving_status_pb2_grpc.py rename to google/ads/google_ads/v4/proto/enums/callout_placeholder_field_pb2_grpc.py diff --git a/google/ads/google_ads/v1/proto/enums/campaign_criterion_status_pb2.py b/google/ads/google_ads/v4/proto/enums/campaign_criterion_status_pb2.py similarity index 75% rename from google/ads/google_ads/v1/proto/enums/campaign_criterion_status_pb2.py rename to google/ads/google_ads/v4/proto/enums/campaign_criterion_status_pb2.py index 075438e35..a9c9b5a13 100644 --- a/google/ads/google_ads/v1/proto/enums/campaign_criterion_status_pb2.py +++ b/google/ads/google_ads/v4/proto/enums/campaign_criterion_status_pb2.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/enums/campaign_criterion_status.proto +# source: google/ads/googleads_v4/proto/enums/campaign_criterion_status.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) @@ -17,11 +17,11 @@ DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/enums/campaign_criterion_status.proto', - package='google.ads.googleads.v1.enums', + name='google/ads/googleads_v4/proto/enums/campaign_criterion_status.proto', + package='google.ads.googleads.v4.enums', syntax='proto3', - serialized_options=_b('\n!com.google.ads.googleads.v1.enumsB\034CampaignCriterionStatusProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v1/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V1.Enums\312\002\035Google\\Ads\\GoogleAds\\V1\\Enums\352\002!Google::Ads::GoogleAds::V1::Enums'), - serialized_pb=_b('\nCgoogle/ads/googleads_v1/proto/enums/campaign_criterion_status.proto\x12\x1dgoogle.ads.googleads.v1.enums\x1a\x1cgoogle/api/annotations.proto\"|\n\x1b\x43\x61mpaignCriterionStatusEnum\"]\n\x17\x43\x61mpaignCriterionStatus\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0b\n\x07\x45NABLED\x10\x02\x12\n\n\x06PAUSED\x10\x03\x12\x0b\n\x07REMOVED\x10\x04\x42\xf1\x01\n!com.google.ads.googleads.v1.enumsB\x1c\x43\x61mpaignCriterionStatusProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v1/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V1.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V1\\Enums\xea\x02!Google::Ads::GoogleAds::V1::Enumsb\x06proto3') + serialized_options=_b('\n!com.google.ads.googleads.v4.enumsB\034CampaignCriterionStatusProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V4.Enums\312\002\035Google\\Ads\\GoogleAds\\V4\\Enums\352\002!Google::Ads::GoogleAds::V4::Enums'), + serialized_pb=_b('\nCgoogle/ads/googleads_v4/proto/enums/campaign_criterion_status.proto\x12\x1dgoogle.ads.googleads.v4.enums\x1a\x1cgoogle/api/annotations.proto\"|\n\x1b\x43\x61mpaignCriterionStatusEnum\"]\n\x17\x43\x61mpaignCriterionStatus\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0b\n\x07\x45NABLED\x10\x02\x12\n\n\x06PAUSED\x10\x03\x12\x0b\n\x07REMOVED\x10\x04\x42\xf1\x01\n!com.google.ads.googleads.v4.enumsB\x1c\x43\x61mpaignCriterionStatusProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V4.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V4\\Enums\xea\x02!Google::Ads::GoogleAds::V4::Enumsb\x06proto3') , dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) @@ -29,7 +29,7 @@ _CAMPAIGNCRITERIONSTATUSENUM_CAMPAIGNCRITERIONSTATUS = _descriptor.EnumDescriptor( name='CampaignCriterionStatus', - full_name='google.ads.googleads.v1.enums.CampaignCriterionStatusEnum.CampaignCriterionStatus', + full_name='google.ads.googleads.v4.enums.CampaignCriterionStatusEnum.CampaignCriterionStatus', filename=None, file=DESCRIPTOR, values=[ @@ -64,7 +64,7 @@ _CAMPAIGNCRITERIONSTATUSENUM = _descriptor.Descriptor( name='CampaignCriterionStatusEnum', - full_name='google.ads.googleads.v1.enums.CampaignCriterionStatusEnum', + full_name='google.ads.googleads.v4.enums.CampaignCriterionStatusEnum', filename=None, file=DESCRIPTOR, containing_type=None, @@ -92,11 +92,11 @@ CampaignCriterionStatusEnum = _reflection.GeneratedProtocolMessageType('CampaignCriterionStatusEnum', (_message.Message,), dict( DESCRIPTOR = _CAMPAIGNCRITERIONSTATUSENUM, - __module__ = 'google.ads.googleads_v1.proto.enums.campaign_criterion_status_pb2' + __module__ = 'google.ads.googleads_v4.proto.enums.campaign_criterion_status_pb2' , __doc__ = """Message describing CampaignCriterion statuses. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.enums.CampaignCriterionStatusEnum) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.enums.CampaignCriterionStatusEnum) )) _sym_db.RegisterMessage(CampaignCriterionStatusEnum) diff --git a/google/ads/google_ads/v1/proto/enums/campaign_shared_set_status_pb2_grpc.py b/google/ads/google_ads/v4/proto/enums/campaign_criterion_status_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/enums/campaign_shared_set_status_pb2_grpc.py rename to google/ads/google_ads/v4/proto/enums/campaign_criterion_status_pb2_grpc.py diff --git a/google/ads/google_ads/v1/proto/enums/campaign_draft_status_pb2.py b/google/ads/google_ads/v4/proto/enums/campaign_draft_status_pb2.py similarity index 76% rename from google/ads/google_ads/v1/proto/enums/campaign_draft_status_pb2.py rename to google/ads/google_ads/v4/proto/enums/campaign_draft_status_pb2.py index cc4e1738a..b92d82fa8 100644 --- a/google/ads/google_ads/v1/proto/enums/campaign_draft_status_pb2.py +++ b/google/ads/google_ads/v4/proto/enums/campaign_draft_status_pb2.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/enums/campaign_draft_status.proto +# source: google/ads/googleads_v4/proto/enums/campaign_draft_status.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) @@ -17,11 +17,11 @@ DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/enums/campaign_draft_status.proto', - package='google.ads.googleads.v1.enums', + name='google/ads/googleads_v4/proto/enums/campaign_draft_status.proto', + package='google.ads.googleads.v4.enums', syntax='proto3', - serialized_options=_b('\n!com.google.ads.googleads.v1.enumsB\030CampaignDraftStatusProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v1/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V1.Enums\312\002\035Google\\Ads\\GoogleAds\\V1\\Enums\352\002!Google::Ads::GoogleAds::V1::Enums'), - serialized_pb=_b('\n?google/ads/googleads_v1/proto/enums/campaign_draft_status.proto\x12\x1dgoogle.ads.googleads.v1.enums\x1a\x1cgoogle/api/annotations.proto\"\x9a\x01\n\x17\x43\x61mpaignDraftStatusEnum\"\x7f\n\x13\x43\x61mpaignDraftStatus\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0c\n\x08PROPOSED\x10\x02\x12\x0b\n\x07REMOVED\x10\x03\x12\r\n\tPROMOTING\x10\x05\x12\x0c\n\x08PROMOTED\x10\x04\x12\x12\n\x0ePROMOTE_FAILED\x10\x06\x42\xed\x01\n!com.google.ads.googleads.v1.enumsB\x18\x43\x61mpaignDraftStatusProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v1/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V1.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V1\\Enums\xea\x02!Google::Ads::GoogleAds::V1::Enumsb\x06proto3') + serialized_options=_b('\n!com.google.ads.googleads.v4.enumsB\030CampaignDraftStatusProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V4.Enums\312\002\035Google\\Ads\\GoogleAds\\V4\\Enums\352\002!Google::Ads::GoogleAds::V4::Enums'), + serialized_pb=_b('\n?google/ads/googleads_v4/proto/enums/campaign_draft_status.proto\x12\x1dgoogle.ads.googleads.v4.enums\x1a\x1cgoogle/api/annotations.proto\"\x9a\x01\n\x17\x43\x61mpaignDraftStatusEnum\"\x7f\n\x13\x43\x61mpaignDraftStatus\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0c\n\x08PROPOSED\x10\x02\x12\x0b\n\x07REMOVED\x10\x03\x12\r\n\tPROMOTING\x10\x05\x12\x0c\n\x08PROMOTED\x10\x04\x12\x12\n\x0ePROMOTE_FAILED\x10\x06\x42\xed\x01\n!com.google.ads.googleads.v4.enumsB\x18\x43\x61mpaignDraftStatusProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V4.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V4\\Enums\xea\x02!Google::Ads::GoogleAds::V4::Enumsb\x06proto3') , dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) @@ -29,7 +29,7 @@ _CAMPAIGNDRAFTSTATUSENUM_CAMPAIGNDRAFTSTATUS = _descriptor.EnumDescriptor( name='CampaignDraftStatus', - full_name='google.ads.googleads.v1.enums.CampaignDraftStatusEnum.CampaignDraftStatus', + full_name='google.ads.googleads.v4.enums.CampaignDraftStatusEnum.CampaignDraftStatus', filename=None, file=DESCRIPTOR, values=[ @@ -72,7 +72,7 @@ _CAMPAIGNDRAFTSTATUSENUM = _descriptor.Descriptor( name='CampaignDraftStatusEnum', - full_name='google.ads.googleads.v1.enums.CampaignDraftStatusEnum', + full_name='google.ads.googleads.v4.enums.CampaignDraftStatusEnum', filename=None, file=DESCRIPTOR, containing_type=None, @@ -100,11 +100,11 @@ CampaignDraftStatusEnum = _reflection.GeneratedProtocolMessageType('CampaignDraftStatusEnum', (_message.Message,), dict( DESCRIPTOR = _CAMPAIGNDRAFTSTATUSENUM, - __module__ = 'google.ads.googleads_v1.proto.enums.campaign_draft_status_pb2' + __module__ = 'google.ads.googleads_v4.proto.enums.campaign_draft_status_pb2' , __doc__ = """Container for enum describing possible statuses of a campaign draft. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.enums.CampaignDraftStatusEnum) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.enums.CampaignDraftStatusEnum) )) _sym_db.RegisterMessage(CampaignDraftStatusEnum) diff --git a/google/ads/google_ads/v1/proto/enums/campaign_status_pb2_grpc.py b/google/ads/google_ads/v4/proto/enums/campaign_draft_status_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/enums/campaign_status_pb2_grpc.py rename to google/ads/google_ads/v4/proto/enums/campaign_draft_status_pb2_grpc.py diff --git a/google/ads/google_ads/v1/proto/enums/campaign_experiment_status_pb2.py b/google/ads/google_ads/v4/proto/enums/campaign_experiment_status_pb2.py similarity index 79% rename from google/ads/google_ads/v1/proto/enums/campaign_experiment_status_pb2.py rename to google/ads/google_ads/v4/proto/enums/campaign_experiment_status_pb2.py index 02df9e843..2503ae613 100644 --- a/google/ads/google_ads/v1/proto/enums/campaign_experiment_status_pb2.py +++ b/google/ads/google_ads/v4/proto/enums/campaign_experiment_status_pb2.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/enums/campaign_experiment_status.proto +# source: google/ads/googleads_v4/proto/enums/campaign_experiment_status.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) @@ -17,11 +17,11 @@ DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/enums/campaign_experiment_status.proto', - package='google.ads.googleads.v1.enums', + name='google/ads/googleads_v4/proto/enums/campaign_experiment_status.proto', + package='google.ads.googleads.v4.enums', syntax='proto3', - serialized_options=_b('\n!com.google.ads.googleads.v1.enumsB\035CampaignExperimentStatusProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v1/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V1.Enums\312\002\035Google\\Ads\\GoogleAds\\V1\\Enums\352\002!Google::Ads::GoogleAds::V1::Enums'), - serialized_pb=_b('\nDgoogle/ads/googleads_v1/proto/enums/campaign_experiment_status.proto\x12\x1dgoogle.ads.googleads.v1.enums\x1a\x1cgoogle/api/annotations.proto\"\xf6\x01\n\x1c\x43\x61mpaignExperimentStatusEnum\"\xd5\x01\n\x18\x43\x61mpaignExperimentStatus\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x10\n\x0cINITIALIZING\x10\x02\x12\x19\n\x15INITIALIZATION_FAILED\x10\x08\x12\x0b\n\x07\x45NABLED\x10\x03\x12\r\n\tGRADUATED\x10\x04\x12\x0b\n\x07REMOVED\x10\x05\x12\r\n\tPROMOTING\x10\x06\x12\x14\n\x10PROMOTION_FAILED\x10\t\x12\x0c\n\x08PROMOTED\x10\x07\x12\x12\n\x0e\x45NDED_MANUALLY\x10\nB\xf2\x01\n!com.google.ads.googleads.v1.enumsB\x1d\x43\x61mpaignExperimentStatusProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v1/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V1.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V1\\Enums\xea\x02!Google::Ads::GoogleAds::V1::Enumsb\x06proto3') + serialized_options=_b('\n!com.google.ads.googleads.v4.enumsB\035CampaignExperimentStatusProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V4.Enums\312\002\035Google\\Ads\\GoogleAds\\V4\\Enums\352\002!Google::Ads::GoogleAds::V4::Enums'), + serialized_pb=_b('\nDgoogle/ads/googleads_v4/proto/enums/campaign_experiment_status.proto\x12\x1dgoogle.ads.googleads.v4.enums\x1a\x1cgoogle/api/annotations.proto\"\xf6\x01\n\x1c\x43\x61mpaignExperimentStatusEnum\"\xd5\x01\n\x18\x43\x61mpaignExperimentStatus\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x10\n\x0cINITIALIZING\x10\x02\x12\x19\n\x15INITIALIZATION_FAILED\x10\x08\x12\x0b\n\x07\x45NABLED\x10\x03\x12\r\n\tGRADUATED\x10\x04\x12\x0b\n\x07REMOVED\x10\x05\x12\r\n\tPROMOTING\x10\x06\x12\x14\n\x10PROMOTION_FAILED\x10\t\x12\x0c\n\x08PROMOTED\x10\x07\x12\x12\n\x0e\x45NDED_MANUALLY\x10\nB\xf2\x01\n!com.google.ads.googleads.v4.enumsB\x1d\x43\x61mpaignExperimentStatusProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V4.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V4\\Enums\xea\x02!Google::Ads::GoogleAds::V4::Enumsb\x06proto3') , dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) @@ -29,7 +29,7 @@ _CAMPAIGNEXPERIMENTSTATUSENUM_CAMPAIGNEXPERIMENTSTATUS = _descriptor.EnumDescriptor( name='CampaignExperimentStatus', - full_name='google.ads.googleads.v1.enums.CampaignExperimentStatusEnum.CampaignExperimentStatus', + full_name='google.ads.googleads.v4.enums.CampaignExperimentStatusEnum.CampaignExperimentStatus', filename=None, file=DESCRIPTOR, values=[ @@ -88,7 +88,7 @@ _CAMPAIGNEXPERIMENTSTATUSENUM = _descriptor.Descriptor( name='CampaignExperimentStatusEnum', - full_name='google.ads.googleads.v1.enums.CampaignExperimentStatusEnum', + full_name='google.ads.googleads.v4.enums.CampaignExperimentStatusEnum', filename=None, file=DESCRIPTOR, containing_type=None, @@ -116,12 +116,12 @@ CampaignExperimentStatusEnum = _reflection.GeneratedProtocolMessageType('CampaignExperimentStatusEnum', (_message.Message,), dict( DESCRIPTOR = _CAMPAIGNEXPERIMENTSTATUSENUM, - __module__ = 'google.ads.googleads_v1.proto.enums.campaign_experiment_status_pb2' + __module__ = 'google.ads.googleads_v4.proto.enums.campaign_experiment_status_pb2' , __doc__ = """Container for enum describing possible statuses of a campaign experiment. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.enums.CampaignExperimentStatusEnum) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.enums.CampaignExperimentStatusEnum) )) _sym_db.RegisterMessage(CampaignExperimentStatusEnum) diff --git a/google/ads/google_ads/v1/proto/enums/change_status_operation_pb2_grpc.py b/google/ads/google_ads/v4/proto/enums/campaign_experiment_status_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/enums/change_status_operation_pb2_grpc.py rename to google/ads/google_ads/v4/proto/enums/campaign_experiment_status_pb2_grpc.py diff --git a/google/ads/google_ads/v1/proto/enums/campaign_experiment_traffic_split_type_pb2.py b/google/ads/google_ads/v4/proto/enums/campaign_experiment_traffic_split_type_pb2.py similarity index 76% rename from google/ads/google_ads/v1/proto/enums/campaign_experiment_traffic_split_type_pb2.py rename to google/ads/google_ads/v4/proto/enums/campaign_experiment_traffic_split_type_pb2.py index 75687840c..900c0d3c5 100644 --- a/google/ads/google_ads/v1/proto/enums/campaign_experiment_traffic_split_type_pb2.py +++ b/google/ads/google_ads/v4/proto/enums/campaign_experiment_traffic_split_type_pb2.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/enums/campaign_experiment_traffic_split_type.proto +# source: google/ads/googleads_v4/proto/enums/campaign_experiment_traffic_split_type.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) @@ -17,11 +17,11 @@ DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/enums/campaign_experiment_traffic_split_type.proto', - package='google.ads.googleads.v1.enums', + name='google/ads/googleads_v4/proto/enums/campaign_experiment_traffic_split_type.proto', + package='google.ads.googleads.v4.enums', syntax='proto3', - serialized_options=_b('\n!com.google.ads.googleads.v1.enumsB\'CampaignExperimentTrafficSplitTypeProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v1/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V1.Enums\312\002\035Google\\Ads\\GoogleAds\\V1\\Enums\352\002!Google::Ads::GoogleAds::V1::Enums'), - serialized_pb=_b('\nPgoogle/ads/googleads_v1/proto/enums/campaign_experiment_traffic_split_type.proto\x12\x1dgoogle.ads.googleads.v1.enums\x1a\x1cgoogle/api/annotations.proto\"\x8a\x01\n&CampaignExperimentTrafficSplitTypeEnum\"`\n\"CampaignExperimentTrafficSplitType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x10\n\x0cRANDOM_QUERY\x10\x02\x12\n\n\x06\x43OOKIE\x10\x03\x42\xfc\x01\n!com.google.ads.googleads.v1.enumsB\'CampaignExperimentTrafficSplitTypeProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v1/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V1.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V1\\Enums\xea\x02!Google::Ads::GoogleAds::V1::Enumsb\x06proto3') + serialized_options=_b('\n!com.google.ads.googleads.v4.enumsB\'CampaignExperimentTrafficSplitTypeProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V4.Enums\312\002\035Google\\Ads\\GoogleAds\\V4\\Enums\352\002!Google::Ads::GoogleAds::V4::Enums'), + serialized_pb=_b('\nPgoogle/ads/googleads_v4/proto/enums/campaign_experiment_traffic_split_type.proto\x12\x1dgoogle.ads.googleads.v4.enums\x1a\x1cgoogle/api/annotations.proto\"\x8a\x01\n&CampaignExperimentTrafficSplitTypeEnum\"`\n\"CampaignExperimentTrafficSplitType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x10\n\x0cRANDOM_QUERY\x10\x02\x12\n\n\x06\x43OOKIE\x10\x03\x42\xfc\x01\n!com.google.ads.googleads.v4.enumsB\'CampaignExperimentTrafficSplitTypeProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V4.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V4\\Enums\xea\x02!Google::Ads::GoogleAds::V4::Enumsb\x06proto3') , dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) @@ -29,7 +29,7 @@ _CAMPAIGNEXPERIMENTTRAFFICSPLITTYPEENUM_CAMPAIGNEXPERIMENTTRAFFICSPLITTYPE = _descriptor.EnumDescriptor( name='CampaignExperimentTrafficSplitType', - full_name='google.ads.googleads.v1.enums.CampaignExperimentTrafficSplitTypeEnum.CampaignExperimentTrafficSplitType', + full_name='google.ads.googleads.v4.enums.CampaignExperimentTrafficSplitTypeEnum.CampaignExperimentTrafficSplitType', filename=None, file=DESCRIPTOR, values=[ @@ -60,7 +60,7 @@ _CAMPAIGNEXPERIMENTTRAFFICSPLITTYPEENUM = _descriptor.Descriptor( name='CampaignExperimentTrafficSplitTypeEnum', - full_name='google.ads.googleads.v1.enums.CampaignExperimentTrafficSplitTypeEnum', + full_name='google.ads.googleads.v4.enums.CampaignExperimentTrafficSplitTypeEnum', filename=None, file=DESCRIPTOR, containing_type=None, @@ -88,11 +88,11 @@ CampaignExperimentTrafficSplitTypeEnum = _reflection.GeneratedProtocolMessageType('CampaignExperimentTrafficSplitTypeEnum', (_message.Message,), dict( DESCRIPTOR = _CAMPAIGNEXPERIMENTTRAFFICSPLITTYPEENUM, - __module__ = 'google.ads.googleads_v1.proto.enums.campaign_experiment_traffic_split_type_pb2' + __module__ = 'google.ads.googleads_v4.proto.enums.campaign_experiment_traffic_split_type_pb2' , __doc__ = """Container for enum describing campaign experiment traffic split type. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.enums.CampaignExperimentTrafficSplitTypeEnum) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.enums.CampaignExperimentTrafficSplitTypeEnum) )) _sym_db.RegisterMessage(CampaignExperimentTrafficSplitTypeEnum) diff --git a/google/ads/google_ads/v1/proto/enums/change_status_resource_type_pb2_grpc.py b/google/ads/google_ads/v4/proto/enums/campaign_experiment_traffic_split_type_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/enums/change_status_resource_type_pb2_grpc.py rename to google/ads/google_ads/v4/proto/enums/campaign_experiment_traffic_split_type_pb2_grpc.py diff --git a/google/ads/google_ads/v1/proto/enums/campaign_experiment_type_pb2.py b/google/ads/google_ads/v4/proto/enums/campaign_experiment_type_pb2.py similarity index 75% rename from google/ads/google_ads/v1/proto/enums/campaign_experiment_type_pb2.py rename to google/ads/google_ads/v4/proto/enums/campaign_experiment_type_pb2.py index 31ebe1422..e438908a3 100644 --- a/google/ads/google_ads/v1/proto/enums/campaign_experiment_type_pb2.py +++ b/google/ads/google_ads/v4/proto/enums/campaign_experiment_type_pb2.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/enums/campaign_experiment_type.proto +# source: google/ads/googleads_v4/proto/enums/campaign_experiment_type.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) @@ -17,11 +17,11 @@ DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/enums/campaign_experiment_type.proto', - package='google.ads.googleads.v1.enums', + name='google/ads/googleads_v4/proto/enums/campaign_experiment_type.proto', + package='google.ads.googleads.v4.enums', syntax='proto3', - serialized_options=_b('\n!com.google.ads.googleads.v1.enumsB\033CampaignExperimentTypeProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v1/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V1.Enums\312\002\035Google\\Ads\\GoogleAds\\V1\\Enums\352\002!Google::Ads::GoogleAds::V1::Enums'), - serialized_pb=_b('\nBgoogle/ads/googleads_v1/proto/enums/campaign_experiment_type.proto\x12\x1dgoogle.ads.googleads.v1.enums\x1a\x1cgoogle/api/annotations.proto\"y\n\x1a\x43\x61mpaignExperimentTypeEnum\"[\n\x16\x43\x61mpaignExperimentType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x08\n\x04\x42\x41SE\x10\x02\x12\t\n\x05\x44RAFT\x10\x03\x12\x0e\n\nEXPERIMENT\x10\x04\x42\xf0\x01\n!com.google.ads.googleads.v1.enumsB\x1b\x43\x61mpaignExperimentTypeProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v1/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V1.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V1\\Enums\xea\x02!Google::Ads::GoogleAds::V1::Enumsb\x06proto3') + serialized_options=_b('\n!com.google.ads.googleads.v4.enumsB\033CampaignExperimentTypeProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V4.Enums\312\002\035Google\\Ads\\GoogleAds\\V4\\Enums\352\002!Google::Ads::GoogleAds::V4::Enums'), + serialized_pb=_b('\nBgoogle/ads/googleads_v4/proto/enums/campaign_experiment_type.proto\x12\x1dgoogle.ads.googleads.v4.enums\x1a\x1cgoogle/api/annotations.proto\"y\n\x1a\x43\x61mpaignExperimentTypeEnum\"[\n\x16\x43\x61mpaignExperimentType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x08\n\x04\x42\x41SE\x10\x02\x12\t\n\x05\x44RAFT\x10\x03\x12\x0e\n\nEXPERIMENT\x10\x04\x42\xf0\x01\n!com.google.ads.googleads.v4.enumsB\x1b\x43\x61mpaignExperimentTypeProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V4.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V4\\Enums\xea\x02!Google::Ads::GoogleAds::V4::Enumsb\x06proto3') , dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) @@ -29,7 +29,7 @@ _CAMPAIGNEXPERIMENTTYPEENUM_CAMPAIGNEXPERIMENTTYPE = _descriptor.EnumDescriptor( name='CampaignExperimentType', - full_name='google.ads.googleads.v1.enums.CampaignExperimentTypeEnum.CampaignExperimentType', + full_name='google.ads.googleads.v4.enums.CampaignExperimentTypeEnum.CampaignExperimentType', filename=None, file=DESCRIPTOR, values=[ @@ -64,7 +64,7 @@ _CAMPAIGNEXPERIMENTTYPEENUM = _descriptor.Descriptor( name='CampaignExperimentTypeEnum', - full_name='google.ads.googleads.v1.enums.CampaignExperimentTypeEnum', + full_name='google.ads.googleads.v4.enums.CampaignExperimentTypeEnum', filename=None, file=DESCRIPTOR, containing_type=None, @@ -92,11 +92,11 @@ CampaignExperimentTypeEnum = _reflection.GeneratedProtocolMessageType('CampaignExperimentTypeEnum', (_message.Message,), dict( DESCRIPTOR = _CAMPAIGNEXPERIMENTTYPEENUM, - __module__ = 'google.ads.googleads_v1.proto.enums.campaign_experiment_type_pb2' + __module__ = 'google.ads.googleads_v4.proto.enums.campaign_experiment_type_pb2' , __doc__ = """Container for enum describing campaign experiment type. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.enums.CampaignExperimentTypeEnum) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.enums.CampaignExperimentTypeEnum) )) _sym_db.RegisterMessage(CampaignExperimentTypeEnum) diff --git a/google/ads/google_ads/v1/proto/enums/click_type_pb2_grpc.py b/google/ads/google_ads/v4/proto/enums/campaign_experiment_type_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/enums/click_type_pb2_grpc.py rename to google/ads/google_ads/v4/proto/enums/campaign_experiment_type_pb2_grpc.py diff --git a/google/ads/google_ads/v1/proto/enums/campaign_serving_status_pb2.py b/google/ads/google_ads/v4/proto/enums/campaign_serving_status_pb2.py similarity index 76% rename from google/ads/google_ads/v1/proto/enums/campaign_serving_status_pb2.py rename to google/ads/google_ads/v4/proto/enums/campaign_serving_status_pb2.py index e4ce8ffb6..b48adcb6d 100644 --- a/google/ads/google_ads/v1/proto/enums/campaign_serving_status_pb2.py +++ b/google/ads/google_ads/v4/proto/enums/campaign_serving_status_pb2.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/enums/campaign_serving_status.proto +# source: google/ads/googleads_v4/proto/enums/campaign_serving_status.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) @@ -17,11 +17,11 @@ DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/enums/campaign_serving_status.proto', - package='google.ads.googleads.v1.enums', + name='google/ads/googleads_v4/proto/enums/campaign_serving_status.proto', + package='google.ads.googleads.v4.enums', syntax='proto3', - serialized_options=_b('\n!com.google.ads.googleads.v1.enumsB\032CampaignServingStatusProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v1/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V1.Enums\312\002\035Google\\Ads\\GoogleAds\\V1\\Enums\352\002!Google::Ads::GoogleAds::V1::Enums'), - serialized_pb=_b('\nAgoogle/ads/googleads_v1/proto/enums/campaign_serving_status.proto\x12\x1dgoogle.ads.googleads.v1.enums\x1a\x1cgoogle/api/annotations.proto\"\x90\x01\n\x19\x43\x61mpaignServingStatusEnum\"s\n\x15\x43\x61mpaignServingStatus\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0b\n\x07SERVING\x10\x02\x12\x08\n\x04NONE\x10\x03\x12\t\n\x05\x45NDED\x10\x04\x12\x0b\n\x07PENDING\x10\x05\x12\r\n\tSUSPENDED\x10\x06\x42\xef\x01\n!com.google.ads.googleads.v1.enumsB\x1a\x43\x61mpaignServingStatusProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v1/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V1.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V1\\Enums\xea\x02!Google::Ads::GoogleAds::V1::Enumsb\x06proto3') + serialized_options=_b('\n!com.google.ads.googleads.v4.enumsB\032CampaignServingStatusProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V4.Enums\312\002\035Google\\Ads\\GoogleAds\\V4\\Enums\352\002!Google::Ads::GoogleAds::V4::Enums'), + serialized_pb=_b('\nAgoogle/ads/googleads_v4/proto/enums/campaign_serving_status.proto\x12\x1dgoogle.ads.googleads.v4.enums\x1a\x1cgoogle/api/annotations.proto\"\x90\x01\n\x19\x43\x61mpaignServingStatusEnum\"s\n\x15\x43\x61mpaignServingStatus\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0b\n\x07SERVING\x10\x02\x12\x08\n\x04NONE\x10\x03\x12\t\n\x05\x45NDED\x10\x04\x12\x0b\n\x07PENDING\x10\x05\x12\r\n\tSUSPENDED\x10\x06\x42\xef\x01\n!com.google.ads.googleads.v4.enumsB\x1a\x43\x61mpaignServingStatusProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V4.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V4\\Enums\xea\x02!Google::Ads::GoogleAds::V4::Enumsb\x06proto3') , dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) @@ -29,7 +29,7 @@ _CAMPAIGNSERVINGSTATUSENUM_CAMPAIGNSERVINGSTATUS = _descriptor.EnumDescriptor( name='CampaignServingStatus', - full_name='google.ads.googleads.v1.enums.CampaignServingStatusEnum.CampaignServingStatus', + full_name='google.ads.googleads.v4.enums.CampaignServingStatusEnum.CampaignServingStatus', filename=None, file=DESCRIPTOR, values=[ @@ -72,7 +72,7 @@ _CAMPAIGNSERVINGSTATUSENUM = _descriptor.Descriptor( name='CampaignServingStatusEnum', - full_name='google.ads.googleads.v1.enums.CampaignServingStatusEnum', + full_name='google.ads.googleads.v4.enums.CampaignServingStatusEnum', filename=None, file=DESCRIPTOR, containing_type=None, @@ -100,11 +100,11 @@ CampaignServingStatusEnum = _reflection.GeneratedProtocolMessageType('CampaignServingStatusEnum', (_message.Message,), dict( DESCRIPTOR = _CAMPAIGNSERVINGSTATUSENUM, - __module__ = 'google.ads.googleads_v1.proto.enums.campaign_serving_status_pb2' + __module__ = 'google.ads.googleads_v4.proto.enums.campaign_serving_status_pb2' , __doc__ = """Message describing Campaign serving statuses. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.enums.CampaignServingStatusEnum) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.enums.CampaignServingStatusEnum) )) _sym_db.RegisterMessage(CampaignServingStatusEnum) diff --git a/google/ads/google_ads/v1/proto/enums/content_label_type_pb2_grpc.py b/google/ads/google_ads/v4/proto/enums/campaign_serving_status_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/enums/content_label_type_pb2_grpc.py rename to google/ads/google_ads/v4/proto/enums/campaign_serving_status_pb2_grpc.py diff --git a/google/ads/google_ads/v1/proto/enums/campaign_shared_set_status_pb2.py b/google/ads/google_ads/v4/proto/enums/campaign_shared_set_status_pb2.py similarity index 75% rename from google/ads/google_ads/v1/proto/enums/campaign_shared_set_status_pb2.py rename to google/ads/google_ads/v4/proto/enums/campaign_shared_set_status_pb2.py index 3bf85f110..bd5cfba40 100644 --- a/google/ads/google_ads/v1/proto/enums/campaign_shared_set_status_pb2.py +++ b/google/ads/google_ads/v4/proto/enums/campaign_shared_set_status_pb2.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/enums/campaign_shared_set_status.proto +# source: google/ads/googleads_v4/proto/enums/campaign_shared_set_status.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) @@ -17,11 +17,11 @@ DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/enums/campaign_shared_set_status.proto', - package='google.ads.googleads.v1.enums', + name='google/ads/googleads_v4/proto/enums/campaign_shared_set_status.proto', + package='google.ads.googleads.v4.enums', syntax='proto3', - serialized_options=_b('\n!com.google.ads.googleads.v1.enumsB\034CampaignSharedSetStatusProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v1/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V1.Enums\312\002\035Google\\Ads\\GoogleAds\\V1\\Enums\352\002!Google::Ads::GoogleAds::V1::Enums'), - serialized_pb=_b('\nDgoogle/ads/googleads_v1/proto/enums/campaign_shared_set_status.proto\x12\x1dgoogle.ads.googleads.v1.enums\x1a\x1cgoogle/api/annotations.proto\"p\n\x1b\x43\x61mpaignSharedSetStatusEnum\"Q\n\x17\x43\x61mpaignSharedSetStatus\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0b\n\x07\x45NABLED\x10\x02\x12\x0b\n\x07REMOVED\x10\x03\x42\xf1\x01\n!com.google.ads.googleads.v1.enumsB\x1c\x43\x61mpaignSharedSetStatusProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v1/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V1.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V1\\Enums\xea\x02!Google::Ads::GoogleAds::V1::Enumsb\x06proto3') + serialized_options=_b('\n!com.google.ads.googleads.v4.enumsB\034CampaignSharedSetStatusProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V4.Enums\312\002\035Google\\Ads\\GoogleAds\\V4\\Enums\352\002!Google::Ads::GoogleAds::V4::Enums'), + serialized_pb=_b('\nDgoogle/ads/googleads_v4/proto/enums/campaign_shared_set_status.proto\x12\x1dgoogle.ads.googleads.v4.enums\x1a\x1cgoogle/api/annotations.proto\"p\n\x1b\x43\x61mpaignSharedSetStatusEnum\"Q\n\x17\x43\x61mpaignSharedSetStatus\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0b\n\x07\x45NABLED\x10\x02\x12\x0b\n\x07REMOVED\x10\x03\x42\xf1\x01\n!com.google.ads.googleads.v4.enumsB\x1c\x43\x61mpaignSharedSetStatusProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V4.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V4\\Enums\xea\x02!Google::Ads::GoogleAds::V4::Enumsb\x06proto3') , dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) @@ -29,7 +29,7 @@ _CAMPAIGNSHAREDSETSTATUSENUM_CAMPAIGNSHAREDSETSTATUS = _descriptor.EnumDescriptor( name='CampaignSharedSetStatus', - full_name='google.ads.googleads.v1.enums.CampaignSharedSetStatusEnum.CampaignSharedSetStatus', + full_name='google.ads.googleads.v4.enums.CampaignSharedSetStatusEnum.CampaignSharedSetStatus', filename=None, file=DESCRIPTOR, values=[ @@ -60,7 +60,7 @@ _CAMPAIGNSHAREDSETSTATUSENUM = _descriptor.Descriptor( name='CampaignSharedSetStatusEnum', - full_name='google.ads.googleads.v1.enums.CampaignSharedSetStatusEnum', + full_name='google.ads.googleads.v4.enums.CampaignSharedSetStatusEnum', filename=None, file=DESCRIPTOR, containing_type=None, @@ -88,11 +88,11 @@ CampaignSharedSetStatusEnum = _reflection.GeneratedProtocolMessageType('CampaignSharedSetStatusEnum', (_message.Message,), dict( DESCRIPTOR = _CAMPAIGNSHAREDSETSTATUSENUM, - __module__ = 'google.ads.googleads_v1.proto.enums.campaign_shared_set_status_pb2' + __module__ = 'google.ads.googleads_v4.proto.enums.campaign_shared_set_status_pb2' , __doc__ = """Container for enum describing types of campaign shared set statuses. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.enums.CampaignSharedSetStatusEnum) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.enums.CampaignSharedSetStatusEnum) )) _sym_db.RegisterMessage(CampaignSharedSetStatusEnum) diff --git a/google/ads/google_ads/v1/proto/enums/conversion_action_category_pb2_grpc.py b/google/ads/google_ads/v4/proto/enums/campaign_shared_set_status_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/enums/conversion_action_category_pb2_grpc.py rename to google/ads/google_ads/v4/proto/enums/campaign_shared_set_status_pb2_grpc.py diff --git a/google/ads/google_ads/v4/proto/enums/campaign_status_pb2.py b/google/ads/google_ads/v4/proto/enums/campaign_status_pb2.py new file mode 100644 index 000000000..fc81e842f --- /dev/null +++ b/google/ads/google_ads/v4/proto/enums/campaign_status_pb2.py @@ -0,0 +1,105 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/enums/campaign_status.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/enums/campaign_status.proto', + package='google.ads.googleads.v4.enums', + syntax='proto3', + serialized_options=_b('\n!com.google.ads.googleads.v4.enumsB\023CampaignStatusProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V4.Enums\312\002\035Google\\Ads\\GoogleAds\\V4\\Enums\352\002!Google::Ads::GoogleAds::V4::Enums'), + serialized_pb=_b('\n9google/ads/googleads_v4/proto/enums/campaign_status.proto\x12\x1dgoogle.ads.googleads.v4.enums\x1a\x1cgoogle/api/annotations.proto\"j\n\x12\x43\x61mpaignStatusEnum\"T\n\x0e\x43\x61mpaignStatus\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0b\n\x07\x45NABLED\x10\x02\x12\n\n\x06PAUSED\x10\x03\x12\x0b\n\x07REMOVED\x10\x04\x42\xe8\x01\n!com.google.ads.googleads.v4.enumsB\x13\x43\x61mpaignStatusProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V4.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V4\\Enums\xea\x02!Google::Ads::GoogleAds::V4::Enumsb\x06proto3') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_CAMPAIGNSTATUSENUM_CAMPAIGNSTATUS = _descriptor.EnumDescriptor( + name='CampaignStatus', + full_name='google.ads.googleads.v4.enums.CampaignStatusEnum.CampaignStatus', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='UNSPECIFIED', index=0, number=0, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='UNKNOWN', index=1, number=1, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='ENABLED', index=2, number=2, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='PAUSED', index=3, number=3, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='REMOVED', index=4, number=4, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=144, + serialized_end=228, +) +_sym_db.RegisterEnumDescriptor(_CAMPAIGNSTATUSENUM_CAMPAIGNSTATUS) + + +_CAMPAIGNSTATUSENUM = _descriptor.Descriptor( + name='CampaignStatusEnum', + full_name='google.ads.googleads.v4.enums.CampaignStatusEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _CAMPAIGNSTATUSENUM_CAMPAIGNSTATUS, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=122, + serialized_end=228, +) + +_CAMPAIGNSTATUSENUM_CAMPAIGNSTATUS.containing_type = _CAMPAIGNSTATUSENUM +DESCRIPTOR.message_types_by_name['CampaignStatusEnum'] = _CAMPAIGNSTATUSENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +CampaignStatusEnum = _reflection.GeneratedProtocolMessageType('CampaignStatusEnum', (_message.Message,), dict( + DESCRIPTOR = _CAMPAIGNSTATUSENUM, + __module__ = 'google.ads.googleads_v4.proto.enums.campaign_status_pb2' + , + __doc__ = """Container for enum describing possible statuses of a campaign. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.enums.CampaignStatusEnum) + )) +_sym_db.RegisterMessage(CampaignStatusEnum) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/enums/conversion_action_counting_type_pb2_grpc.py b/google/ads/google_ads/v4/proto/enums/campaign_status_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/enums/conversion_action_counting_type_pb2_grpc.py rename to google/ads/google_ads/v4/proto/enums/campaign_status_pb2_grpc.py diff --git a/google/ads/google_ads/v1/proto/enums/change_status_operation_pb2.py b/google/ads/google_ads/v4/proto/enums/change_status_operation_pb2.py similarity index 75% rename from google/ads/google_ads/v1/proto/enums/change_status_operation_pb2.py rename to google/ads/google_ads/v4/proto/enums/change_status_operation_pb2.py index ea7a85d80..ace7d2494 100644 --- a/google/ads/google_ads/v1/proto/enums/change_status_operation_pb2.py +++ b/google/ads/google_ads/v4/proto/enums/change_status_operation_pb2.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/enums/change_status_operation.proto +# source: google/ads/googleads_v4/proto/enums/change_status_operation.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) @@ -17,11 +17,11 @@ DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/enums/change_status_operation.proto', - package='google.ads.googleads.v1.enums', + name='google/ads/googleads_v4/proto/enums/change_status_operation.proto', + package='google.ads.googleads.v4.enums', syntax='proto3', - serialized_options=_b('\n!com.google.ads.googleads.v1.enumsB\032ChangeStatusOperationProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v1/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V1.Enums\312\002\035Google\\Ads\\GoogleAds\\V1\\Enums\352\002!Google::Ads::GoogleAds::V1::Enums'), - serialized_pb=_b('\nAgoogle/ads/googleads_v1/proto/enums/change_status_operation.proto\x12\x1dgoogle.ads.googleads.v1.enums\x1a\x1cgoogle/api/annotations.proto\"w\n\x19\x43hangeStatusOperationEnum\"Z\n\x15\x43hangeStatusOperation\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\t\n\x05\x41\x44\x44\x45\x44\x10\x02\x12\x0b\n\x07\x43HANGED\x10\x03\x12\x0b\n\x07REMOVED\x10\x04\x42\xef\x01\n!com.google.ads.googleads.v1.enumsB\x1a\x43hangeStatusOperationProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v1/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V1.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V1\\Enums\xea\x02!Google::Ads::GoogleAds::V1::Enumsb\x06proto3') + serialized_options=_b('\n!com.google.ads.googleads.v4.enumsB\032ChangeStatusOperationProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V4.Enums\312\002\035Google\\Ads\\GoogleAds\\V4\\Enums\352\002!Google::Ads::GoogleAds::V4::Enums'), + serialized_pb=_b('\nAgoogle/ads/googleads_v4/proto/enums/change_status_operation.proto\x12\x1dgoogle.ads.googleads.v4.enums\x1a\x1cgoogle/api/annotations.proto\"w\n\x19\x43hangeStatusOperationEnum\"Z\n\x15\x43hangeStatusOperation\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\t\n\x05\x41\x44\x44\x45\x44\x10\x02\x12\x0b\n\x07\x43HANGED\x10\x03\x12\x0b\n\x07REMOVED\x10\x04\x42\xef\x01\n!com.google.ads.googleads.v4.enumsB\x1a\x43hangeStatusOperationProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V4.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V4\\Enums\xea\x02!Google::Ads::GoogleAds::V4::Enumsb\x06proto3') , dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) @@ -29,7 +29,7 @@ _CHANGESTATUSOPERATIONENUM_CHANGESTATUSOPERATION = _descriptor.EnumDescriptor( name='ChangeStatusOperation', - full_name='google.ads.googleads.v1.enums.ChangeStatusOperationEnum.ChangeStatusOperation', + full_name='google.ads.googleads.v4.enums.ChangeStatusOperationEnum.ChangeStatusOperation', filename=None, file=DESCRIPTOR, values=[ @@ -64,7 +64,7 @@ _CHANGESTATUSOPERATIONENUM = _descriptor.Descriptor( name='ChangeStatusOperationEnum', - full_name='google.ads.googleads.v1.enums.ChangeStatusOperationEnum', + full_name='google.ads.googleads.v4.enums.ChangeStatusOperationEnum', filename=None, file=DESCRIPTOR, containing_type=None, @@ -92,11 +92,11 @@ ChangeStatusOperationEnum = _reflection.GeneratedProtocolMessageType('ChangeStatusOperationEnum', (_message.Message,), dict( DESCRIPTOR = _CHANGESTATUSOPERATIONENUM, - __module__ = 'google.ads.googleads_v1.proto.enums.change_status_operation_pb2' + __module__ = 'google.ads.googleads_v4.proto.enums.change_status_operation_pb2' , __doc__ = """Container for enum describing operations for the ChangeStatus resource. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.enums.ChangeStatusOperationEnum) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.enums.ChangeStatusOperationEnum) )) _sym_db.RegisterMessage(ChangeStatusOperationEnum) diff --git a/google/ads/google_ads/v1/proto/enums/conversion_action_status_pb2_grpc.py b/google/ads/google_ads/v4/proto/enums/change_status_operation_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/enums/conversion_action_status_pb2_grpc.py rename to google/ads/google_ads/v4/proto/enums/change_status_operation_pb2_grpc.py diff --git a/google/ads/google_ads/v1/proto/enums/change_status_resource_type_pb2.py b/google/ads/google_ads/v4/proto/enums/change_status_resource_type_pb2.py similarity index 81% rename from google/ads/google_ads/v1/proto/enums/change_status_resource_type_pb2.py rename to google/ads/google_ads/v4/proto/enums/change_status_resource_type_pb2.py index 816086929..f71817047 100644 --- a/google/ads/google_ads/v1/proto/enums/change_status_resource_type_pb2.py +++ b/google/ads/google_ads/v4/proto/enums/change_status_resource_type_pb2.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/enums/change_status_resource_type.proto +# source: google/ads/googleads_v4/proto/enums/change_status_resource_type.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) @@ -17,11 +17,11 @@ DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/enums/change_status_resource_type.proto', - package='google.ads.googleads.v1.enums', + name='google/ads/googleads_v4/proto/enums/change_status_resource_type.proto', + package='google.ads.googleads.v4.enums', syntax='proto3', - serialized_options=_b('\n!com.google.ads.googleads.v1.enumsB\035ChangeStatusResourceTypeProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v1/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V1.Enums\312\002\035Google\\Ads\\GoogleAds\\V1\\Enums\352\002!Google::Ads::GoogleAds::V1::Enums'), - serialized_pb=_b('\nEgoogle/ads/googleads_v1/proto/enums/change_status_resource_type.proto\x12\x1dgoogle.ads.googleads.v1.enums\x1a\x1cgoogle/api/annotations.proto\"\x90\x02\n\x1c\x43hangeStatusResourceTypeEnum\"\xef\x01\n\x18\x43hangeStatusResourceType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0c\n\x08\x41\x44_GROUP\x10\x03\x12\x0f\n\x0b\x41\x44_GROUP_AD\x10\x04\x12\x16\n\x12\x41\x44_GROUP_CRITERION\x10\x05\x12\x0c\n\x08\x43\x41MPAIGN\x10\x06\x12\x16\n\x12\x43\x41MPAIGN_CRITERION\x10\x07\x12\x08\n\x04\x46\x45\x45\x44\x10\t\x12\r\n\tFEED_ITEM\x10\n\x12\x11\n\rAD_GROUP_FEED\x10\x0b\x12\x11\n\rCAMPAIGN_FEED\x10\x0c\x12\x19\n\x15\x41\x44_GROUP_BID_MODIFIER\x10\rB\xf2\x01\n!com.google.ads.googleads.v1.enumsB\x1d\x43hangeStatusResourceTypeProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v1/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V1.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V1\\Enums\xea\x02!Google::Ads::GoogleAds::V1::Enumsb\x06proto3') + serialized_options=_b('\n!com.google.ads.googleads.v4.enumsB\035ChangeStatusResourceTypeProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V4.Enums\312\002\035Google\\Ads\\GoogleAds\\V4\\Enums\352\002!Google::Ads::GoogleAds::V4::Enums'), + serialized_pb=_b('\nEgoogle/ads/googleads_v4/proto/enums/change_status_resource_type.proto\x12\x1dgoogle.ads.googleads.v4.enums\x1a\x1cgoogle/api/annotations.proto\"\x90\x02\n\x1c\x43hangeStatusResourceTypeEnum\"\xef\x01\n\x18\x43hangeStatusResourceType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0c\n\x08\x41\x44_GROUP\x10\x03\x12\x0f\n\x0b\x41\x44_GROUP_AD\x10\x04\x12\x16\n\x12\x41\x44_GROUP_CRITERION\x10\x05\x12\x0c\n\x08\x43\x41MPAIGN\x10\x06\x12\x16\n\x12\x43\x41MPAIGN_CRITERION\x10\x07\x12\x08\n\x04\x46\x45\x45\x44\x10\t\x12\r\n\tFEED_ITEM\x10\n\x12\x11\n\rAD_GROUP_FEED\x10\x0b\x12\x11\n\rCAMPAIGN_FEED\x10\x0c\x12\x19\n\x15\x41\x44_GROUP_BID_MODIFIER\x10\rB\xf2\x01\n!com.google.ads.googleads.v4.enumsB\x1d\x43hangeStatusResourceTypeProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V4.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V4\\Enums\xea\x02!Google::Ads::GoogleAds::V4::Enumsb\x06proto3') , dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) @@ -29,7 +29,7 @@ _CHANGESTATUSRESOURCETYPEENUM_CHANGESTATUSRESOURCETYPE = _descriptor.EnumDescriptor( name='ChangeStatusResourceType', - full_name='google.ads.googleads.v1.enums.ChangeStatusResourceTypeEnum.ChangeStatusResourceType', + full_name='google.ads.googleads.v4.enums.ChangeStatusResourceTypeEnum.ChangeStatusResourceType', filename=None, file=DESCRIPTOR, values=[ @@ -92,7 +92,7 @@ _CHANGESTATUSRESOURCETYPEENUM = _descriptor.Descriptor( name='ChangeStatusResourceTypeEnum', - full_name='google.ads.googleads.v1.enums.ChangeStatusResourceTypeEnum', + full_name='google.ads.googleads.v4.enums.ChangeStatusResourceTypeEnum', filename=None, file=DESCRIPTOR, containing_type=None, @@ -120,12 +120,12 @@ ChangeStatusResourceTypeEnum = _reflection.GeneratedProtocolMessageType('ChangeStatusResourceTypeEnum', (_message.Message,), dict( DESCRIPTOR = _CHANGESTATUSRESOURCETYPEENUM, - __module__ = 'google.ads.googleads_v1.proto.enums.change_status_resource_type_pb2' + __module__ = 'google.ads.googleads_v4.proto.enums.change_status_resource_type_pb2' , __doc__ = """Container for enum describing supported resource types for the ChangeStatus resource. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.enums.ChangeStatusResourceTypeEnum) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.enums.ChangeStatusResourceTypeEnum) )) _sym_db.RegisterMessage(ChangeStatusResourceTypeEnum) diff --git a/google/ads/google_ads/v1/proto/enums/conversion_action_type_pb2_grpc.py b/google/ads/google_ads/v4/proto/enums/change_status_resource_type_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/enums/conversion_action_type_pb2_grpc.py rename to google/ads/google_ads/v4/proto/enums/change_status_resource_type_pb2_grpc.py diff --git a/google/ads/google_ads/v1/proto/enums/click_type_pb2.py b/google/ads/google_ads/v4/proto/enums/click_type_pb2.py similarity index 92% rename from google/ads/google_ads/v1/proto/enums/click_type_pb2.py rename to google/ads/google_ads/v4/proto/enums/click_type_pb2.py index dde198b98..d54586c3e 100644 --- a/google/ads/google_ads/v1/proto/enums/click_type_pb2.py +++ b/google/ads/google_ads/v4/proto/enums/click_type_pb2.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/enums/click_type.proto +# source: google/ads/googleads_v4/proto/enums/click_type.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) @@ -17,11 +17,11 @@ DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/enums/click_type.proto', - package='google.ads.googleads.v1.enums', + name='google/ads/googleads_v4/proto/enums/click_type.proto', + package='google.ads.googleads.v4.enums', syntax='proto3', - serialized_options=_b('\n!com.google.ads.googleads.v1.enumsB\016ClickTypeProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v1/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V1.Enums\312\002\035Google\\Ads\\GoogleAds\\V1\\Enums\352\002!Google::Ads::GoogleAds::V1::Enums'), - serialized_pb=_b('\n4google/ads/googleads_v1/proto/enums/click_type.proto\x12\x1dgoogle.ads.googleads.v1.enums\x1a\x1cgoogle/api/annotations.proto\"\xa6\x0c\n\rClickTypeEnum\"\x94\x0c\n\tClickType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x10\n\x0c\x41PP_DEEPLINK\x10\x02\x12\x0f\n\x0b\x42READCRUMBS\x10\x03\x12\x12\n\x0e\x42ROADBAND_PLAN\x10\x04\x12\x11\n\rCALL_TRACKING\x10\x05\x12\t\n\x05\x43\x41LLS\x10\x06\x12\x1a\n\x16\x43LICK_ON_ENGAGEMENT_AD\x10\x07\x12\x12\n\x0eGET_DIRECTIONS\x10\x08\x12\x16\n\x12LOCATION_EXPANSION\x10\t\x12\x18\n\x14LOCATION_FORMAT_CALL\x10\n\x12\x1e\n\x1aLOCATION_FORMAT_DIRECTIONS\x10\x0b\x12\x19\n\x15LOCATION_FORMAT_IMAGE\x10\x0c\x12 \n\x1cLOCATION_FORMAT_LANDING_PAGE\x10\r\x12\x17\n\x13LOCATION_FORMAT_MAP\x10\x0e\x12\x1e\n\x1aLOCATION_FORMAT_STORE_INFO\x10\x0f\x12\x18\n\x14LOCATION_FORMAT_TEXT\x10\x10\x12\x18\n\x14MOBILE_CALL_TRACKING\x10\x11\x12\x10\n\x0cOFFER_PRINTS\x10\x12\x12\t\n\x05OTHER\x10\x13\x12\x1c\n\x18PRODUCT_EXTENSION_CLICKS\x10\x14\x12\x1d\n\x19PRODUCT_LISTING_AD_CLICKS\x10\x15\x12\r\n\tSITELINKS\x10\x16\x12\x11\n\rSTORE_LOCATOR\x10\x17\x12\x0e\n\nURL_CLICKS\x10\x19\x12\x1a\n\x16VIDEO_APP_STORE_CLICKS\x10\x1a\x12\x1f\n\x1bVIDEO_CALL_TO_ACTION_CLICKS\x10\x1b\x12%\n!VIDEO_CARD_ACTION_HEADLINE_CLICKS\x10\x1c\x12\x18\n\x14VIDEO_END_CAP_CLICKS\x10\x1d\x12\x18\n\x14VIDEO_WEBSITE_CLICKS\x10\x1e\x12\x14\n\x10VISUAL_SITELINKS\x10\x1f\x12\x11\n\rWIRELESS_PLAN\x10 \x12\x1c\n\x18PRODUCT_LISTING_AD_LOCAL\x10!\x12)\n%PRODUCT_LISTING_AD_MULTICHANNEL_LOCAL\x10\"\x12*\n&PRODUCT_LISTING_AD_MULTICHANNEL_ONLINE\x10#\x12\x1e\n\x1aPRODUCT_LISTING_ADS_COUPON\x10$\x12#\n\x1fPRODUCT_LISTING_AD_TRANSACTABLE\x10%\x12\x1b\n\x17PRODUCT_AD_APP_DEEPLINK\x10&\x12\x1d\n\x19SHOWCASE_AD_CATEGORY_LINK\x10\'\x12%\n!SHOWCASE_AD_LOCAL_STOREFRONT_LINK\x10(\x12#\n\x1fSHOWCASE_AD_ONLINE_PRODUCT_LINK\x10*\x12\"\n\x1eSHOWCASE_AD_LOCAL_PRODUCT_LINK\x10+\x12\x17\n\x13PROMOTION_EXTENSION\x10,\x12!\n\x1dSWIPEABLE_GALLERY_AD_HEADLINE\x10-\x12\x1f\n\x1bSWIPEABLE_GALLERY_AD_SWIPES\x10.\x12!\n\x1dSWIPEABLE_GALLERY_AD_SEE_MORE\x10/\x12%\n!SWIPEABLE_GALLERY_AD_SITELINK_ONE\x10\x30\x12%\n!SWIPEABLE_GALLERY_AD_SITELINK_TWO\x10\x31\x12\'\n#SWIPEABLE_GALLERY_AD_SITELINK_THREE\x10\x32\x12&\n\"SWIPEABLE_GALLERY_AD_SITELINK_FOUR\x10\x33\x12&\n\"SWIPEABLE_GALLERY_AD_SITELINK_FIVE\x10\x34\x12\x0f\n\x0bHOTEL_PRICE\x10\x35\x12\x13\n\x0fPRICE_EXTENSION\x10\x36\x12\'\n#HOTEL_BOOK_ON_GOOGLE_ROOM_SELECTION\x10\x37\x12\x1f\n\x1bSHOPPING_COMPARISON_LISTING\x10\x38\x42\xe3\x01\n!com.google.ads.googleads.v1.enumsB\x0e\x43lickTypeProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v1/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V1.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V1\\Enums\xea\x02!Google::Ads::GoogleAds::V1::Enumsb\x06proto3') + serialized_options=_b('\n!com.google.ads.googleads.v4.enumsB\016ClickTypeProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V4.Enums\312\002\035Google\\Ads\\GoogleAds\\V4\\Enums\352\002!Google::Ads::GoogleAds::V4::Enums'), + serialized_pb=_b('\n4google/ads/googleads_v4/proto/enums/click_type.proto\x12\x1dgoogle.ads.googleads.v4.enums\x1a\x1cgoogle/api/annotations.proto\"\xa6\x0c\n\rClickTypeEnum\"\x94\x0c\n\tClickType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x10\n\x0c\x41PP_DEEPLINK\x10\x02\x12\x0f\n\x0b\x42READCRUMBS\x10\x03\x12\x12\n\x0e\x42ROADBAND_PLAN\x10\x04\x12\x11\n\rCALL_TRACKING\x10\x05\x12\t\n\x05\x43\x41LLS\x10\x06\x12\x1a\n\x16\x43LICK_ON_ENGAGEMENT_AD\x10\x07\x12\x12\n\x0eGET_DIRECTIONS\x10\x08\x12\x16\n\x12LOCATION_EXPANSION\x10\t\x12\x18\n\x14LOCATION_FORMAT_CALL\x10\n\x12\x1e\n\x1aLOCATION_FORMAT_DIRECTIONS\x10\x0b\x12\x19\n\x15LOCATION_FORMAT_IMAGE\x10\x0c\x12 \n\x1cLOCATION_FORMAT_LANDING_PAGE\x10\r\x12\x17\n\x13LOCATION_FORMAT_MAP\x10\x0e\x12\x1e\n\x1aLOCATION_FORMAT_STORE_INFO\x10\x0f\x12\x18\n\x14LOCATION_FORMAT_TEXT\x10\x10\x12\x18\n\x14MOBILE_CALL_TRACKING\x10\x11\x12\x10\n\x0cOFFER_PRINTS\x10\x12\x12\t\n\x05OTHER\x10\x13\x12\x1c\n\x18PRODUCT_EXTENSION_CLICKS\x10\x14\x12\x1d\n\x19PRODUCT_LISTING_AD_CLICKS\x10\x15\x12\r\n\tSITELINKS\x10\x16\x12\x11\n\rSTORE_LOCATOR\x10\x17\x12\x0e\n\nURL_CLICKS\x10\x19\x12\x1a\n\x16VIDEO_APP_STORE_CLICKS\x10\x1a\x12\x1f\n\x1bVIDEO_CALL_TO_ACTION_CLICKS\x10\x1b\x12%\n!VIDEO_CARD_ACTION_HEADLINE_CLICKS\x10\x1c\x12\x18\n\x14VIDEO_END_CAP_CLICKS\x10\x1d\x12\x18\n\x14VIDEO_WEBSITE_CLICKS\x10\x1e\x12\x14\n\x10VISUAL_SITELINKS\x10\x1f\x12\x11\n\rWIRELESS_PLAN\x10 \x12\x1c\n\x18PRODUCT_LISTING_AD_LOCAL\x10!\x12)\n%PRODUCT_LISTING_AD_MULTICHANNEL_LOCAL\x10\"\x12*\n&PRODUCT_LISTING_AD_MULTICHANNEL_ONLINE\x10#\x12\x1e\n\x1aPRODUCT_LISTING_ADS_COUPON\x10$\x12#\n\x1fPRODUCT_LISTING_AD_TRANSACTABLE\x10%\x12\x1b\n\x17PRODUCT_AD_APP_DEEPLINK\x10&\x12\x1d\n\x19SHOWCASE_AD_CATEGORY_LINK\x10\'\x12%\n!SHOWCASE_AD_LOCAL_STOREFRONT_LINK\x10(\x12#\n\x1fSHOWCASE_AD_ONLINE_PRODUCT_LINK\x10*\x12\"\n\x1eSHOWCASE_AD_LOCAL_PRODUCT_LINK\x10+\x12\x17\n\x13PROMOTION_EXTENSION\x10,\x12!\n\x1dSWIPEABLE_GALLERY_AD_HEADLINE\x10-\x12\x1f\n\x1bSWIPEABLE_GALLERY_AD_SWIPES\x10.\x12!\n\x1dSWIPEABLE_GALLERY_AD_SEE_MORE\x10/\x12%\n!SWIPEABLE_GALLERY_AD_SITELINK_ONE\x10\x30\x12%\n!SWIPEABLE_GALLERY_AD_SITELINK_TWO\x10\x31\x12\'\n#SWIPEABLE_GALLERY_AD_SITELINK_THREE\x10\x32\x12&\n\"SWIPEABLE_GALLERY_AD_SITELINK_FOUR\x10\x33\x12&\n\"SWIPEABLE_GALLERY_AD_SITELINK_FIVE\x10\x34\x12\x0f\n\x0bHOTEL_PRICE\x10\x35\x12\x13\n\x0fPRICE_EXTENSION\x10\x36\x12\'\n#HOTEL_BOOK_ON_GOOGLE_ROOM_SELECTION\x10\x37\x12\x1f\n\x1bSHOPPING_COMPARISON_LISTING\x10\x38\x42\xe3\x01\n!com.google.ads.googleads.v4.enumsB\x0e\x43lickTypeProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V4.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V4\\Enums\xea\x02!Google::Ads::GoogleAds::V4::Enumsb\x06proto3') , dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) @@ -29,7 +29,7 @@ _CLICKTYPEENUM_CLICKTYPE = _descriptor.EnumDescriptor( name='ClickType', - full_name='google.ads.googleads.v1.enums.ClickTypeEnum.ClickType', + full_name='google.ads.googleads.v4.enums.ClickTypeEnum.ClickType', filename=None, file=DESCRIPTOR, values=[ @@ -264,7 +264,7 @@ _CLICKTYPEENUM = _descriptor.Descriptor( name='ClickTypeEnum', - full_name='google.ads.googleads.v1.enums.ClickTypeEnum', + full_name='google.ads.googleads.v4.enums.ClickTypeEnum', filename=None, file=DESCRIPTOR, containing_type=None, @@ -292,11 +292,11 @@ ClickTypeEnum = _reflection.GeneratedProtocolMessageType('ClickTypeEnum', (_message.Message,), dict( DESCRIPTOR = _CLICKTYPEENUM, - __module__ = 'google.ads.googleads_v1.proto.enums.click_type_pb2' + __module__ = 'google.ads.googleads_v4.proto.enums.click_type_pb2' , __doc__ = """Container for enumeration of Google Ads click types. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.enums.ClickTypeEnum) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.enums.ClickTypeEnum) )) _sym_db.RegisterMessage(ClickTypeEnum) diff --git a/google/ads/google_ads/v1/proto/enums/conversion_adjustment_type_pb2_grpc.py b/google/ads/google_ads/v4/proto/enums/click_type_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/enums/conversion_adjustment_type_pb2_grpc.py rename to google/ads/google_ads/v4/proto/enums/click_type_pb2_grpc.py diff --git a/google/ads/google_ads/v4/proto/enums/content_label_type_pb2.py b/google/ads/google_ads/v4/proto/enums/content_label_type_pb2.py new file mode 100644 index 000000000..fad40dbc4 --- /dev/null +++ b/google/ads/google_ads/v4/proto/enums/content_label_type_pb2.py @@ -0,0 +1,153 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/enums/content_label_type.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/enums/content_label_type.proto', + package='google.ads.googleads.v4.enums', + syntax='proto3', + serialized_options=_b('\n!com.google.ads.googleads.v4.enumsB\025ContentLabelTypeProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V4.Enums\312\002\035Google\\Ads\\GoogleAds\\V4\\Enums\352\002!Google::Ads::GoogleAds::V4::Enums'), + serialized_pb=_b('\ngoogle/ads/googleads_v4/proto/enums/custom_interest_type.proto\x12\x1dgoogle.ads.googleads.v4.enums\x1a\x1cgoogle/api/annotations.proto\"t\n\x16\x43ustomInterestTypeEnum\"Z\n\x12\x43ustomInterestType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x13\n\x0f\x43USTOM_AFFINITY\x10\x02\x12\x11\n\rCUSTOM_INTENT\x10\x03\x42\xec\x01\n!com.google.ads.googleads.v4.enumsB\x17\x43ustomInterestTypeProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V4.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V4\\Enums\xea\x02!Google::Ads::GoogleAds::V4::Enumsb\x06proto3') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_CUSTOMINTERESTTYPEENUM_CUSTOMINTERESTTYPE = _descriptor.EnumDescriptor( + name='CustomInterestType', + full_name='google.ads.googleads.v4.enums.CustomInterestTypeEnum.CustomInterestType', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='UNSPECIFIED', index=0, number=0, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='UNKNOWN', index=1, number=1, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CUSTOM_AFFINITY', index=2, number=2, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CUSTOM_INTENT', index=3, number=3, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=153, + serialized_end=243, +) +_sym_db.RegisterEnumDescriptor(_CUSTOMINTERESTTYPEENUM_CUSTOMINTERESTTYPE) + + +_CUSTOMINTERESTTYPEENUM = _descriptor.Descriptor( + name='CustomInterestTypeEnum', + full_name='google.ads.googleads.v4.enums.CustomInterestTypeEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _CUSTOMINTERESTTYPEENUM_CUSTOMINTERESTTYPE, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=127, + serialized_end=243, +) + +_CUSTOMINTERESTTYPEENUM_CUSTOMINTERESTTYPE.containing_type = _CUSTOMINTERESTTYPEENUM +DESCRIPTOR.message_types_by_name['CustomInterestTypeEnum'] = _CUSTOMINTERESTTYPEENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +CustomInterestTypeEnum = _reflection.GeneratedProtocolMessageType('CustomInterestTypeEnum', (_message.Message,), dict( + DESCRIPTOR = _CUSTOMINTERESTTYPEENUM, + __module__ = 'google.ads.googleads_v4.proto.enums.custom_interest_type_pb2' + , + __doc__ = """The types of custom interest. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.enums.CustomInterestTypeEnum) + )) +_sym_db.RegisterMessage(CustomInterestTypeEnum) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/enums/device_pb2_grpc.py b/google/ads/google_ads/v4/proto/enums/custom_interest_type_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/enums/device_pb2_grpc.py rename to google/ads/google_ads/v4/proto/enums/custom_interest_type_pb2_grpc.py diff --git a/google/ads/google_ads/v1/proto/enums/custom_placeholder_field_pb2.py b/google/ads/google_ads/v4/proto/enums/custom_placeholder_field_pb2.py similarity index 85% rename from google/ads/google_ads/v1/proto/enums/custom_placeholder_field_pb2.py rename to google/ads/google_ads/v4/proto/enums/custom_placeholder_field_pb2.py index 47591b4da..b976a2044 100644 --- a/google/ads/google_ads/v1/proto/enums/custom_placeholder_field_pb2.py +++ b/google/ads/google_ads/v4/proto/enums/custom_placeholder_field_pb2.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/enums/custom_placeholder_field.proto +# source: google/ads/googleads_v4/proto/enums/custom_placeholder_field.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) @@ -17,11 +17,11 @@ DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/enums/custom_placeholder_field.proto', - package='google.ads.googleads.v1.enums', + name='google/ads/googleads_v4/proto/enums/custom_placeholder_field.proto', + package='google.ads.googleads.v4.enums', syntax='proto3', - serialized_options=_b('\n!com.google.ads.googleads.v1.enumsB\033CustomPlaceholderFieldProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v1/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V1.Enums\312\002\035Google\\Ads\\GoogleAds\\V1\\Enums\352\002!Google::Ads::GoogleAds::V1::Enums'), - serialized_pb=_b('\nBgoogle/ads/googleads_v1/proto/enums/custom_placeholder_field.proto\x12\x1dgoogle.ads.googleads.v1.enums\x1a\x1cgoogle/api/annotations.proto\"\xbe\x03\n\x1a\x43ustomPlaceholderFieldEnum\"\x9f\x03\n\x16\x43ustomPlaceholderField\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x06\n\x02ID\x10\x02\x12\x07\n\x03ID2\x10\x03\x12\x0e\n\nITEM_TITLE\x10\x04\x12\x11\n\rITEM_SUBTITLE\x10\x05\x12\x14\n\x10ITEM_DESCRIPTION\x10\x06\x12\x10\n\x0cITEM_ADDRESS\x10\x07\x12\t\n\x05PRICE\x10\x08\x12\x13\n\x0f\x46ORMATTED_PRICE\x10\t\x12\x0e\n\nSALE_PRICE\x10\n\x12\x18\n\x14\x46ORMATTED_SALE_PRICE\x10\x0b\x12\r\n\tIMAGE_URL\x10\x0c\x12\x11\n\rITEM_CATEGORY\x10\r\x12\x0e\n\nFINAL_URLS\x10\x0e\x12\x15\n\x11\x46INAL_MOBILE_URLS\x10\x0f\x12\x10\n\x0cTRACKING_URL\x10\x10\x12\x17\n\x13\x43ONTEXTUAL_KEYWORDS\x10\x11\x12\x14\n\x10\x41NDROID_APP_LINK\x10\x12\x12\x0f\n\x0bSIMILAR_IDS\x10\x13\x12\x10\n\x0cIOS_APP_LINK\x10\x14\x12\x14\n\x10IOS_APP_STORE_ID\x10\x15\x42\xf0\x01\n!com.google.ads.googleads.v1.enumsB\x1b\x43ustomPlaceholderFieldProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v1/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V1.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V1\\Enums\xea\x02!Google::Ads::GoogleAds::V1::Enumsb\x06proto3') + serialized_options=_b('\n!com.google.ads.googleads.v4.enumsB\033CustomPlaceholderFieldProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V4.Enums\312\002\035Google\\Ads\\GoogleAds\\V4\\Enums\352\002!Google::Ads::GoogleAds::V4::Enums'), + serialized_pb=_b('\nBgoogle/ads/googleads_v4/proto/enums/custom_placeholder_field.proto\x12\x1dgoogle.ads.googleads.v4.enums\x1a\x1cgoogle/api/annotations.proto\"\xbe\x03\n\x1a\x43ustomPlaceholderFieldEnum\"\x9f\x03\n\x16\x43ustomPlaceholderField\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x06\n\x02ID\x10\x02\x12\x07\n\x03ID2\x10\x03\x12\x0e\n\nITEM_TITLE\x10\x04\x12\x11\n\rITEM_SUBTITLE\x10\x05\x12\x14\n\x10ITEM_DESCRIPTION\x10\x06\x12\x10\n\x0cITEM_ADDRESS\x10\x07\x12\t\n\x05PRICE\x10\x08\x12\x13\n\x0f\x46ORMATTED_PRICE\x10\t\x12\x0e\n\nSALE_PRICE\x10\n\x12\x18\n\x14\x46ORMATTED_SALE_PRICE\x10\x0b\x12\r\n\tIMAGE_URL\x10\x0c\x12\x11\n\rITEM_CATEGORY\x10\r\x12\x0e\n\nFINAL_URLS\x10\x0e\x12\x15\n\x11\x46INAL_MOBILE_URLS\x10\x0f\x12\x10\n\x0cTRACKING_URL\x10\x10\x12\x17\n\x13\x43ONTEXTUAL_KEYWORDS\x10\x11\x12\x14\n\x10\x41NDROID_APP_LINK\x10\x12\x12\x0f\n\x0bSIMILAR_IDS\x10\x13\x12\x10\n\x0cIOS_APP_LINK\x10\x14\x12\x14\n\x10IOS_APP_STORE_ID\x10\x15\x42\xf0\x01\n!com.google.ads.googleads.v4.enumsB\x1b\x43ustomPlaceholderFieldProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V4.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V4\\Enums\xea\x02!Google::Ads::GoogleAds::V4::Enumsb\x06proto3') , dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) @@ -29,7 +29,7 @@ _CUSTOMPLACEHOLDERFIELDENUM_CUSTOMPLACEHOLDERFIELD = _descriptor.EnumDescriptor( name='CustomPlaceholderField', - full_name='google.ads.googleads.v1.enums.CustomPlaceholderFieldEnum.CustomPlaceholderField', + full_name='google.ads.googleads.v4.enums.CustomPlaceholderFieldEnum.CustomPlaceholderField', filename=None, file=DESCRIPTOR, values=[ @@ -132,7 +132,7 @@ _CUSTOMPLACEHOLDERFIELDENUM = _descriptor.Descriptor( name='CustomPlaceholderFieldEnum', - full_name='google.ads.googleads.v1.enums.CustomPlaceholderFieldEnum', + full_name='google.ads.googleads.v4.enums.CustomPlaceholderFieldEnum', filename=None, file=DESCRIPTOR, containing_type=None, @@ -160,13 +160,13 @@ CustomPlaceholderFieldEnum = _reflection.GeneratedProtocolMessageType('CustomPlaceholderFieldEnum', (_message.Message,), dict( DESCRIPTOR = _CUSTOMPLACEHOLDERFIELDENUM, - __module__ = 'google.ads.googleads_v1.proto.enums.custom_placeholder_field_pb2' + __module__ = 'google.ads.googleads_v4.proto.enums.custom_placeholder_field_pb2' , __doc__ = """Values for Custom placeholder fields. For more information about dynamic remarketing feeds, see https://support.google.com/google-ads/answer/6053288. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.enums.CustomPlaceholderFieldEnum) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.enums.CustomPlaceholderFieldEnum) )) _sym_db.RegisterMessage(CustomPlaceholderFieldEnum) diff --git a/google/ads/google_ads/v1/proto/enums/display_ad_format_setting_pb2_grpc.py b/google/ads/google_ads/v4/proto/enums/custom_placeholder_field_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/enums/display_ad_format_setting_pb2_grpc.py rename to google/ads/google_ads/v4/proto/enums/custom_placeholder_field_pb2_grpc.py diff --git a/google/ads/google_ads/v1/proto/enums/customer_match_upload_key_type_pb2.py b/google/ads/google_ads/v4/proto/enums/customer_match_upload_key_type_pb2.py similarity index 75% rename from google/ads/google_ads/v1/proto/enums/customer_match_upload_key_type_pb2.py rename to google/ads/google_ads/v4/proto/enums/customer_match_upload_key_type_pb2.py index da09114fa..9aa868895 100644 --- a/google/ads/google_ads/v1/proto/enums/customer_match_upload_key_type_pb2.py +++ b/google/ads/google_ads/v4/proto/enums/customer_match_upload_key_type_pb2.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/enums/customer_match_upload_key_type.proto +# source: google/ads/googleads_v4/proto/enums/customer_match_upload_key_type.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) @@ -17,11 +17,11 @@ DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/enums/customer_match_upload_key_type.proto', - package='google.ads.googleads.v1.enums', + name='google/ads/googleads_v4/proto/enums/customer_match_upload_key_type.proto', + package='google.ads.googleads.v4.enums', syntax='proto3', - serialized_options=_b('\n!com.google.ads.googleads.v1.enumsB\037CustomerMatchUploadKeyTypeProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v1/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V1.Enums\312\002\035Google\\Ads\\GoogleAds\\V1\\Enums\352\002!Google::Ads::GoogleAds::V1::Enums'), - serialized_pb=_b('\nHgoogle/ads/googleads_v1/proto/enums/customer_match_upload_key_type.proto\x12\x1dgoogle.ads.googleads.v1.enums\x1a\x1cgoogle/api/annotations.proto\"\x95\x01\n\x1e\x43ustomerMatchUploadKeyTypeEnum\"s\n\x1a\x43ustomerMatchUploadKeyType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x10\n\x0c\x43ONTACT_INFO\x10\x02\x12\n\n\x06\x43RM_ID\x10\x03\x12\x19\n\x15MOBILE_ADVERTISING_ID\x10\x04\x42\xf4\x01\n!com.google.ads.googleads.v1.enumsB\x1f\x43ustomerMatchUploadKeyTypeProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v1/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V1.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V1\\Enums\xea\x02!Google::Ads::GoogleAds::V1::Enumsb\x06proto3') + serialized_options=_b('\n!com.google.ads.googleads.v4.enumsB\037CustomerMatchUploadKeyTypeProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V4.Enums\312\002\035Google\\Ads\\GoogleAds\\V4\\Enums\352\002!Google::Ads::GoogleAds::V4::Enums'), + serialized_pb=_b('\nHgoogle/ads/googleads_v4/proto/enums/customer_match_upload_key_type.proto\x12\x1dgoogle.ads.googleads.v4.enums\x1a\x1cgoogle/api/annotations.proto\"\x95\x01\n\x1e\x43ustomerMatchUploadKeyTypeEnum\"s\n\x1a\x43ustomerMatchUploadKeyType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x10\n\x0c\x43ONTACT_INFO\x10\x02\x12\n\n\x06\x43RM_ID\x10\x03\x12\x19\n\x15MOBILE_ADVERTISING_ID\x10\x04\x42\xf4\x01\n!com.google.ads.googleads.v4.enumsB\x1f\x43ustomerMatchUploadKeyTypeProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V4.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V4\\Enums\xea\x02!Google::Ads::GoogleAds::V4::Enumsb\x06proto3') , dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) @@ -29,7 +29,7 @@ _CUSTOMERMATCHUPLOADKEYTYPEENUM_CUSTOMERMATCHUPLOADKEYTYPE = _descriptor.EnumDescriptor( name='CustomerMatchUploadKeyType', - full_name='google.ads.googleads.v1.enums.CustomerMatchUploadKeyTypeEnum.CustomerMatchUploadKeyType', + full_name='google.ads.googleads.v4.enums.CustomerMatchUploadKeyTypeEnum.CustomerMatchUploadKeyType', filename=None, file=DESCRIPTOR, values=[ @@ -64,7 +64,7 @@ _CUSTOMERMATCHUPLOADKEYTYPEENUM = _descriptor.Descriptor( name='CustomerMatchUploadKeyTypeEnum', - full_name='google.ads.googleads.v1.enums.CustomerMatchUploadKeyTypeEnum', + full_name='google.ads.googleads.v4.enums.CustomerMatchUploadKeyTypeEnum', filename=None, file=DESCRIPTOR, containing_type=None, @@ -92,11 +92,11 @@ CustomerMatchUploadKeyTypeEnum = _reflection.GeneratedProtocolMessageType('CustomerMatchUploadKeyTypeEnum', (_message.Message,), dict( DESCRIPTOR = _CUSTOMERMATCHUPLOADKEYTYPEENUM, - __module__ = 'google.ads.googleads_v1.proto.enums.customer_match_upload_key_type_pb2' + __module__ = 'google.ads.googleads_v4.proto.enums.customer_match_upload_key_type_pb2' , __doc__ = """Indicates what type of data are the user list's members matched from. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.enums.CustomerMatchUploadKeyTypeEnum) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.enums.CustomerMatchUploadKeyTypeEnum) )) _sym_db.RegisterMessage(CustomerMatchUploadKeyTypeEnum) diff --git a/google/ads/google_ads/v1/proto/enums/display_upload_product_type_pb2_grpc.py b/google/ads/google_ads/v4/proto/enums/customer_match_upload_key_type_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/enums/display_upload_product_type_pb2_grpc.py rename to google/ads/google_ads/v4/proto/enums/customer_match_upload_key_type_pb2_grpc.py diff --git a/google/ads/google_ads/v1/proto/enums/customer_pay_per_conversion_eligibility_failure_reason_pb2.py b/google/ads/google_ads/v4/proto/enums/customer_pay_per_conversion_eligibility_failure_reason_pb2.py similarity index 81% rename from google/ads/google_ads/v1/proto/enums/customer_pay_per_conversion_eligibility_failure_reason_pb2.py rename to google/ads/google_ads/v4/proto/enums/customer_pay_per_conversion_eligibility_failure_reason_pb2.py index 67f3f9b44..07453fa68 100644 --- a/google/ads/google_ads/v1/proto/enums/customer_pay_per_conversion_eligibility_failure_reason_pb2.py +++ b/google/ads/google_ads/v4/proto/enums/customer_pay_per_conversion_eligibility_failure_reason_pb2.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/enums/customer_pay_per_conversion_eligibility_failure_reason.proto +# source: google/ads/googleads_v4/proto/enums/customer_pay_per_conversion_eligibility_failure_reason.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) @@ -17,11 +17,11 @@ DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/enums/customer_pay_per_conversion_eligibility_failure_reason.proto', - package='google.ads.googleads.v1.enums', + name='google/ads/googleads_v4/proto/enums/customer_pay_per_conversion_eligibility_failure_reason.proto', + package='google.ads.googleads.v4.enums', syntax='proto3', - serialized_options=_b('\n!com.google.ads.googleads.v1.enumsB5CustomerPayPerConversionEligibilityFailureReasonProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v1/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V1.Enums\312\002\035Google\\Ads\\GoogleAds\\V1\\Enums\352\002!Google::Ads::GoogleAds::V1::Enums'), - serialized_pb=_b('\n`google/ads/googleads_v1/proto/enums/customer_pay_per_conversion_eligibility_failure_reason.proto\x12\x1dgoogle.ads.googleads.v1.enums\x1a\x1cgoogle/api/annotations.proto\"\xd1\x02\n4CustomerPayPerConversionEligibilityFailureReasonEnum\"\x98\x02\n0CustomerPayPerConversionEligibilityFailureReason\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x1a\n\x16NOT_ENOUGH_CONVERSIONS\x10\x02\x12\x1b\n\x17\x43ONVERSION_LAG_TOO_HIGH\x10\x03\x12#\n\x1fHAS_CAMPAIGN_WITH_SHARED_BUDGET\x10\x04\x12 \n\x1cHAS_UPLOAD_CLICKS_CONVERSION\x10\x05\x12 \n\x1c\x41VERAGE_DAILY_SPEND_TOO_HIGH\x10\x06\x12\x19\n\x15\x41NALYSIS_NOT_COMPLETE\x10\x07\x12\t\n\x05OTHER\x10\x08\x42\x8a\x02\n!com.google.ads.googleads.v1.enumsB5CustomerPayPerConversionEligibilityFailureReasonProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v1/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V1.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V1\\Enums\xea\x02!Google::Ads::GoogleAds::V1::Enumsb\x06proto3') + serialized_options=_b('\n!com.google.ads.googleads.v4.enumsB5CustomerPayPerConversionEligibilityFailureReasonProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V4.Enums\312\002\035Google\\Ads\\GoogleAds\\V4\\Enums\352\002!Google::Ads::GoogleAds::V4::Enums'), + serialized_pb=_b('\n`google/ads/googleads_v4/proto/enums/customer_pay_per_conversion_eligibility_failure_reason.proto\x12\x1dgoogle.ads.googleads.v4.enums\x1a\x1cgoogle/api/annotations.proto\"\xd1\x02\n4CustomerPayPerConversionEligibilityFailureReasonEnum\"\x98\x02\n0CustomerPayPerConversionEligibilityFailureReason\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x1a\n\x16NOT_ENOUGH_CONVERSIONS\x10\x02\x12\x1b\n\x17\x43ONVERSION_LAG_TOO_HIGH\x10\x03\x12#\n\x1fHAS_CAMPAIGN_WITH_SHARED_BUDGET\x10\x04\x12 \n\x1cHAS_UPLOAD_CLICKS_CONVERSION\x10\x05\x12 \n\x1c\x41VERAGE_DAILY_SPEND_TOO_HIGH\x10\x06\x12\x19\n\x15\x41NALYSIS_NOT_COMPLETE\x10\x07\x12\t\n\x05OTHER\x10\x08\x42\x8a\x02\n!com.google.ads.googleads.v4.enumsB5CustomerPayPerConversionEligibilityFailureReasonProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V4.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V4\\Enums\xea\x02!Google::Ads::GoogleAds::V4::Enumsb\x06proto3') , dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) @@ -29,7 +29,7 @@ _CUSTOMERPAYPERCONVERSIONELIGIBILITYFAILUREREASONENUM_CUSTOMERPAYPERCONVERSIONELIGIBILITYFAILUREREASON = _descriptor.EnumDescriptor( name='CustomerPayPerConversionEligibilityFailureReason', - full_name='google.ads.googleads.v1.enums.CustomerPayPerConversionEligibilityFailureReasonEnum.CustomerPayPerConversionEligibilityFailureReason', + full_name='google.ads.googleads.v4.enums.CustomerPayPerConversionEligibilityFailureReasonEnum.CustomerPayPerConversionEligibilityFailureReason', filename=None, file=DESCRIPTOR, values=[ @@ -80,7 +80,7 @@ _CUSTOMERPAYPERCONVERSIONELIGIBILITYFAILUREREASONENUM = _descriptor.Descriptor( name='CustomerPayPerConversionEligibilityFailureReasonEnum', - full_name='google.ads.googleads.v1.enums.CustomerPayPerConversionEligibilityFailureReasonEnum', + full_name='google.ads.googleads.v4.enums.CustomerPayPerConversionEligibilityFailureReasonEnum', filename=None, file=DESCRIPTOR, containing_type=None, @@ -108,12 +108,12 @@ CustomerPayPerConversionEligibilityFailureReasonEnum = _reflection.GeneratedProtocolMessageType('CustomerPayPerConversionEligibilityFailureReasonEnum', (_message.Message,), dict( DESCRIPTOR = _CUSTOMERPAYPERCONVERSIONELIGIBILITYFAILUREREASONENUM, - __module__ = 'google.ads.googleads_v1.proto.enums.customer_pay_per_conversion_eligibility_failure_reason_pb2' + __module__ = 'google.ads.googleads_v4.proto.enums.customer_pay_per_conversion_eligibility_failure_reason_pb2' , __doc__ = """Container for enum describing reasons why a customer is not eligible to use PaymentMode.CONVERSIONS. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.enums.CustomerPayPerConversionEligibilityFailureReasonEnum) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.enums.CustomerPayPerConversionEligibilityFailureReasonEnum) )) _sym_db.RegisterMessage(CustomerPayPerConversionEligibilityFailureReasonEnum) diff --git a/google/ads/google_ads/v1/proto/enums/dsa_page_feed_criterion_field_pb2_grpc.py b/google/ads/google_ads/v4/proto/enums/customer_pay_per_conversion_eligibility_failure_reason_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/enums/dsa_page_feed_criterion_field_pb2_grpc.py rename to google/ads/google_ads/v4/proto/enums/customer_pay_per_conversion_eligibility_failure_reason_pb2_grpc.py diff --git a/google/ads/google_ads/v1/proto/enums/data_driven_model_status_pb2.py b/google/ads/google_ads/v4/proto/enums/data_driven_model_status_pb2.py similarity index 75% rename from google/ads/google_ads/v1/proto/enums/data_driven_model_status_pb2.py rename to google/ads/google_ads/v4/proto/enums/data_driven_model_status_pb2.py index 33c35a72c..2b4dbea93 100644 --- a/google/ads/google_ads/v1/proto/enums/data_driven_model_status_pb2.py +++ b/google/ads/google_ads/v4/proto/enums/data_driven_model_status_pb2.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/enums/data_driven_model_status.proto +# source: google/ads/googleads_v4/proto/enums/data_driven_model_status.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) @@ -17,11 +17,11 @@ DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/enums/data_driven_model_status.proto', - package='google.ads.googleads.v1.enums', + name='google/ads/googleads_v4/proto/enums/data_driven_model_status.proto', + package='google.ads.googleads.v4.enums', syntax='proto3', - serialized_options=_b('\n!com.google.ads.googleads.v1.enumsB\032DataDrivenModelStatusProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v1/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V1.Enums\312\002\035Google\\Ads\\GoogleAds\\V1\\Enums\352\002!Google::Ads::GoogleAds::V1::Enums'), - serialized_pb=_b('\nBgoogle/ads/googleads_v1/proto/enums/data_driven_model_status.proto\x12\x1dgoogle.ads.googleads.v1.enums\x1a\x1cgoogle/api/annotations.proto\"\x8e\x01\n\x19\x44\x61taDrivenModelStatusEnum\"q\n\x15\x44\x61taDrivenModelStatus\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\r\n\tAVAILABLE\x10\x02\x12\t\n\x05STALE\x10\x03\x12\x0b\n\x07\x45XPIRED\x10\x04\x12\x13\n\x0fNEVER_GENERATED\x10\x05\x42\xef\x01\n!com.google.ads.googleads.v1.enumsB\x1a\x44\x61taDrivenModelStatusProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v1/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V1.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V1\\Enums\xea\x02!Google::Ads::GoogleAds::V1::Enumsb\x06proto3') + serialized_options=_b('\n!com.google.ads.googleads.v4.enumsB\032DataDrivenModelStatusProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V4.Enums\312\002\035Google\\Ads\\GoogleAds\\V4\\Enums\352\002!Google::Ads::GoogleAds::V4::Enums'), + serialized_pb=_b('\nBgoogle/ads/googleads_v4/proto/enums/data_driven_model_status.proto\x12\x1dgoogle.ads.googleads.v4.enums\x1a\x1cgoogle/api/annotations.proto\"\x8e\x01\n\x19\x44\x61taDrivenModelStatusEnum\"q\n\x15\x44\x61taDrivenModelStatus\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\r\n\tAVAILABLE\x10\x02\x12\t\n\x05STALE\x10\x03\x12\x0b\n\x07\x45XPIRED\x10\x04\x12\x13\n\x0fNEVER_GENERATED\x10\x05\x42\xef\x01\n!com.google.ads.googleads.v4.enumsB\x1a\x44\x61taDrivenModelStatusProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V4.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V4\\Enums\xea\x02!Google::Ads::GoogleAds::V4::Enumsb\x06proto3') , dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) @@ -29,7 +29,7 @@ _DATADRIVENMODELSTATUSENUM_DATADRIVENMODELSTATUS = _descriptor.EnumDescriptor( name='DataDrivenModelStatus', - full_name='google.ads.googleads.v1.enums.DataDrivenModelStatusEnum.DataDrivenModelStatus', + full_name='google.ads.googleads.v4.enums.DataDrivenModelStatusEnum.DataDrivenModelStatus', filename=None, file=DESCRIPTOR, values=[ @@ -68,7 +68,7 @@ _DATADRIVENMODELSTATUSENUM = _descriptor.Descriptor( name='DataDrivenModelStatusEnum', - full_name='google.ads.googleads.v1.enums.DataDrivenModelStatusEnum', + full_name='google.ads.googleads.v4.enums.DataDrivenModelStatusEnum', filename=None, file=DESCRIPTOR, containing_type=None, @@ -96,11 +96,11 @@ DataDrivenModelStatusEnum = _reflection.GeneratedProtocolMessageType('DataDrivenModelStatusEnum', (_message.Message,), dict( DESCRIPTOR = _DATADRIVENMODELSTATUSENUM, - __module__ = 'google.ads.googleads_v1.proto.enums.data_driven_model_status_pb2' + __module__ = 'google.ads.googleads_v4.proto.enums.data_driven_model_status_pb2' , __doc__ = """Container for enum indicating data driven model status. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.enums.DataDrivenModelStatusEnum) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.enums.DataDrivenModelStatusEnum) )) _sym_db.RegisterMessage(DataDrivenModelStatusEnum) diff --git a/google/ads/google_ads/v1/proto/enums/education_placeholder_field_pb2_grpc.py b/google/ads/google_ads/v4/proto/enums/data_driven_model_status_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/enums/education_placeholder_field_pb2_grpc.py rename to google/ads/google_ads/v4/proto/enums/data_driven_model_status_pb2_grpc.py diff --git a/google/ads/google_ads/v1/proto/enums/day_of_week_pb2.py b/google/ads/google_ads/v4/proto/enums/day_of_week_pb2.py similarity index 77% rename from google/ads/google_ads/v1/proto/enums/day_of_week_pb2.py rename to google/ads/google_ads/v4/proto/enums/day_of_week_pb2.py index ad55de3c1..e8bd67c23 100644 --- a/google/ads/google_ads/v1/proto/enums/day_of_week_pb2.py +++ b/google/ads/google_ads/v4/proto/enums/day_of_week_pb2.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/enums/day_of_week.proto +# source: google/ads/googleads_v4/proto/enums/day_of_week.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) @@ -17,11 +17,11 @@ DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/enums/day_of_week.proto', - package='google.ads.googleads.v1.enums', + name='google/ads/googleads_v4/proto/enums/day_of_week.proto', + package='google.ads.googleads.v4.enums', syntax='proto3', - serialized_options=_b('\n!com.google.ads.googleads.v1.enumsB\016DayOfWeekProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v1/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V1.Enums\312\002\035Google\\Ads\\GoogleAds\\V1\\Enums\352\002!Google::Ads::GoogleAds::V1::Enums'), - serialized_pb=_b('\n5google/ads/googleads_v1/proto/enums/day_of_week.proto\x12\x1dgoogle.ads.googleads.v1.enums\x1a\x1cgoogle/api/annotations.proto\"\x97\x01\n\rDayOfWeekEnum\"\x85\x01\n\tDayOfWeek\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\n\n\x06MONDAY\x10\x02\x12\x0b\n\x07TUESDAY\x10\x03\x12\r\n\tWEDNESDAY\x10\x04\x12\x0c\n\x08THURSDAY\x10\x05\x12\n\n\x06\x46RIDAY\x10\x06\x12\x0c\n\x08SATURDAY\x10\x07\x12\n\n\x06SUNDAY\x10\x08\x42\xe3\x01\n!com.google.ads.googleads.v1.enumsB\x0e\x44\x61yOfWeekProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v1/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V1.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V1\\Enums\xea\x02!Google::Ads::GoogleAds::V1::Enumsb\x06proto3') + serialized_options=_b('\n!com.google.ads.googleads.v4.enumsB\016DayOfWeekProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V4.Enums\312\002\035Google\\Ads\\GoogleAds\\V4\\Enums\352\002!Google::Ads::GoogleAds::V4::Enums'), + serialized_pb=_b('\n5google/ads/googleads_v4/proto/enums/day_of_week.proto\x12\x1dgoogle.ads.googleads.v4.enums\x1a\x1cgoogle/api/annotations.proto\"\x97\x01\n\rDayOfWeekEnum\"\x85\x01\n\tDayOfWeek\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\n\n\x06MONDAY\x10\x02\x12\x0b\n\x07TUESDAY\x10\x03\x12\r\n\tWEDNESDAY\x10\x04\x12\x0c\n\x08THURSDAY\x10\x05\x12\n\n\x06\x46RIDAY\x10\x06\x12\x0c\n\x08SATURDAY\x10\x07\x12\n\n\x06SUNDAY\x10\x08\x42\xe3\x01\n!com.google.ads.googleads.v4.enumsB\x0e\x44\x61yOfWeekProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V4.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V4\\Enums\xea\x02!Google::Ads::GoogleAds::V4::Enumsb\x06proto3') , dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) @@ -29,7 +29,7 @@ _DAYOFWEEKENUM_DAYOFWEEK = _descriptor.EnumDescriptor( name='DayOfWeek', - full_name='google.ads.googleads.v1.enums.DayOfWeekEnum.DayOfWeek', + full_name='google.ads.googleads.v4.enums.DayOfWeekEnum.DayOfWeek', filename=None, file=DESCRIPTOR, values=[ @@ -80,7 +80,7 @@ _DAYOFWEEKENUM = _descriptor.Descriptor( name='DayOfWeekEnum', - full_name='google.ads.googleads.v1.enums.DayOfWeekEnum', + full_name='google.ads.googleads.v4.enums.DayOfWeekEnum', filename=None, file=DESCRIPTOR, containing_type=None, @@ -108,11 +108,11 @@ DayOfWeekEnum = _reflection.GeneratedProtocolMessageType('DayOfWeekEnum', (_message.Message,), dict( DESCRIPTOR = _DAYOFWEEKENUM, - __module__ = 'google.ads.googleads_v1.proto.enums.day_of_week_pb2' + __module__ = 'google.ads.googleads_v4.proto.enums.day_of_week_pb2' , __doc__ = """Container for enumeration of days of the week, e.g., "Monday". """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.enums.DayOfWeekEnum) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.enums.DayOfWeekEnum) )) _sym_db.RegisterMessage(DayOfWeekEnum) diff --git a/google/ads/google_ads/v1/proto/enums/extension_setting_device_pb2_grpc.py b/google/ads/google_ads/v4/proto/enums/day_of_week_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/enums/extension_setting_device_pb2_grpc.py rename to google/ads/google_ads/v4/proto/enums/day_of_week_pb2_grpc.py diff --git a/google/ads/google_ads/v1/proto/enums/device_pb2.py b/google/ads/google_ads/v4/proto/enums/device_pb2.py similarity index 75% rename from google/ads/google_ads/v1/proto/enums/device_pb2.py rename to google/ads/google_ads/v4/proto/enums/device_pb2.py index 0aacb9100..5ee2d5127 100644 --- a/google/ads/google_ads/v1/proto/enums/device_pb2.py +++ b/google/ads/google_ads/v4/proto/enums/device_pb2.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/enums/device.proto +# source: google/ads/googleads_v4/proto/enums/device.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) @@ -17,11 +17,11 @@ DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/enums/device.proto', - package='google.ads.googleads.v1.enums', + name='google/ads/googleads_v4/proto/enums/device.proto', + package='google.ads.googleads.v4.enums', syntax='proto3', - serialized_options=_b('\n!com.google.ads.googleads.v1.enumsB\013DeviceProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v1/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V1.Enums\312\002\035Google\\Ads\\GoogleAds\\V1\\Enums\352\002!Google::Ads::GoogleAds::V1::Enums'), - serialized_pb=_b('\n0google/ads/googleads_v1/proto/enums/device.proto\x12\x1dgoogle.ads.googleads.v1.enums\x1a\x1cgoogle/api/annotations.proto\"v\n\nDeviceEnum\"h\n\x06\x44\x65vice\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\n\n\x06MOBILE\x10\x02\x12\n\n\x06TABLET\x10\x03\x12\x0b\n\x07\x44\x45SKTOP\x10\x04\x12\x10\n\x0c\x43ONNECTED_TV\x10\x06\x12\t\n\x05OTHER\x10\x05\x42\xe0\x01\n!com.google.ads.googleads.v1.enumsB\x0b\x44\x65viceProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v1/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V1.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V1\\Enums\xea\x02!Google::Ads::GoogleAds::V1::Enumsb\x06proto3') + serialized_options=_b('\n!com.google.ads.googleads.v4.enumsB\013DeviceProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V4.Enums\312\002\035Google\\Ads\\GoogleAds\\V4\\Enums\352\002!Google::Ads::GoogleAds::V4::Enums'), + serialized_pb=_b('\n0google/ads/googleads_v4/proto/enums/device.proto\x12\x1dgoogle.ads.googleads.v4.enums\x1a\x1cgoogle/api/annotations.proto\"v\n\nDeviceEnum\"h\n\x06\x44\x65vice\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\n\n\x06MOBILE\x10\x02\x12\n\n\x06TABLET\x10\x03\x12\x0b\n\x07\x44\x45SKTOP\x10\x04\x12\x10\n\x0c\x43ONNECTED_TV\x10\x06\x12\t\n\x05OTHER\x10\x05\x42\xe0\x01\n!com.google.ads.googleads.v4.enumsB\x0b\x44\x65viceProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V4.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V4\\Enums\xea\x02!Google::Ads::GoogleAds::V4::Enumsb\x06proto3') , dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) @@ -29,7 +29,7 @@ _DEVICEENUM_DEVICE = _descriptor.EnumDescriptor( name='Device', - full_name='google.ads.googleads.v1.enums.DeviceEnum.Device', + full_name='google.ads.googleads.v4.enums.DeviceEnum.Device', filename=None, file=DESCRIPTOR, values=[ @@ -72,7 +72,7 @@ _DEVICEENUM = _descriptor.Descriptor( name='DeviceEnum', - full_name='google.ads.googleads.v1.enums.DeviceEnum', + full_name='google.ads.googleads.v4.enums.DeviceEnum', filename=None, file=DESCRIPTOR, containing_type=None, @@ -100,11 +100,11 @@ DeviceEnum = _reflection.GeneratedProtocolMessageType('DeviceEnum', (_message.Message,), dict( DESCRIPTOR = _DEVICEENUM, - __module__ = 'google.ads.googleads_v1.proto.enums.device_pb2' + __module__ = 'google.ads.googleads_v4.proto.enums.device_pb2' , __doc__ = """Container for enumeration of Google Ads devices available for targeting. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.enums.DeviceEnum) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.enums.DeviceEnum) )) _sym_db.RegisterMessage(DeviceEnum) diff --git a/google/ads/google_ads/v1/proto/enums/extension_type_pb2_grpc.py b/google/ads/google_ads/v4/proto/enums/device_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/enums/extension_type_pb2_grpc.py rename to google/ads/google_ads/v4/proto/enums/device_pb2_grpc.py diff --git a/google/ads/google_ads/v1/proto/enums/display_ad_format_setting_pb2.py b/google/ads/google_ads/v4/proto/enums/display_ad_format_setting_pb2.py similarity index 75% rename from google/ads/google_ads/v1/proto/enums/display_ad_format_setting_pb2.py rename to google/ads/google_ads/v4/proto/enums/display_ad_format_setting_pb2.py index b240236ff..3e076738c 100644 --- a/google/ads/google_ads/v1/proto/enums/display_ad_format_setting_pb2.py +++ b/google/ads/google_ads/v4/proto/enums/display_ad_format_setting_pb2.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/enums/display_ad_format_setting.proto +# source: google/ads/googleads_v4/proto/enums/display_ad_format_setting.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) @@ -17,11 +17,11 @@ DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/enums/display_ad_format_setting.proto', - package='google.ads.googleads.v1.enums', + name='google/ads/googleads_v4/proto/enums/display_ad_format_setting.proto', + package='google.ads.googleads.v4.enums', syntax='proto3', - serialized_options=_b('\n!com.google.ads.googleads.v1.enumsB\033DisplayAdFormatSettingProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v1/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V1.Enums\312\002\035Google\\Ads\\GoogleAds\\V1\\Enums\352\002!Google::Ads::GoogleAds::V1::Enums'), - serialized_pb=_b('\nCgoogle/ads/googleads_v1/proto/enums/display_ad_format_setting.proto\x12\x1dgoogle.ads.googleads.v1.enums\x1a\x1cgoogle/api/annotations.proto\"\x81\x01\n\x1a\x44isplayAdFormatSettingEnum\"c\n\x16\x44isplayAdFormatSetting\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0f\n\x0b\x41LL_FORMATS\x10\x02\x12\x0e\n\nNON_NATIVE\x10\x03\x12\n\n\x06NATIVE\x10\x04\x42\xf0\x01\n!com.google.ads.googleads.v1.enumsB\x1b\x44isplayAdFormatSettingProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v1/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V1.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V1\\Enums\xea\x02!Google::Ads::GoogleAds::V1::Enumsb\x06proto3') + serialized_options=_b('\n!com.google.ads.googleads.v4.enumsB\033DisplayAdFormatSettingProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V4.Enums\312\002\035Google\\Ads\\GoogleAds\\V4\\Enums\352\002!Google::Ads::GoogleAds::V4::Enums'), + serialized_pb=_b('\nCgoogle/ads/googleads_v4/proto/enums/display_ad_format_setting.proto\x12\x1dgoogle.ads.googleads.v4.enums\x1a\x1cgoogle/api/annotations.proto\"\x81\x01\n\x1a\x44isplayAdFormatSettingEnum\"c\n\x16\x44isplayAdFormatSetting\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0f\n\x0b\x41LL_FORMATS\x10\x02\x12\x0e\n\nNON_NATIVE\x10\x03\x12\n\n\x06NATIVE\x10\x04\x42\xf0\x01\n!com.google.ads.googleads.v4.enumsB\x1b\x44isplayAdFormatSettingProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V4.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V4\\Enums\xea\x02!Google::Ads::GoogleAds::V4::Enumsb\x06proto3') , dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) @@ -29,7 +29,7 @@ _DISPLAYADFORMATSETTINGENUM_DISPLAYADFORMATSETTING = _descriptor.EnumDescriptor( name='DisplayAdFormatSetting', - full_name='google.ads.googleads.v1.enums.DisplayAdFormatSettingEnum.DisplayAdFormatSetting', + full_name='google.ads.googleads.v4.enums.DisplayAdFormatSettingEnum.DisplayAdFormatSetting', filename=None, file=DESCRIPTOR, values=[ @@ -64,7 +64,7 @@ _DISPLAYADFORMATSETTINGENUM = _descriptor.Descriptor( name='DisplayAdFormatSettingEnum', - full_name='google.ads.googleads.v1.enums.DisplayAdFormatSettingEnum', + full_name='google.ads.googleads.v4.enums.DisplayAdFormatSettingEnum', filename=None, file=DESCRIPTOR, containing_type=None, @@ -92,11 +92,11 @@ DisplayAdFormatSettingEnum = _reflection.GeneratedProtocolMessageType('DisplayAdFormatSettingEnum', (_message.Message,), dict( DESCRIPTOR = _DISPLAYADFORMATSETTINGENUM, - __module__ = 'google.ads.googleads_v1.proto.enums.display_ad_format_setting_pb2' + __module__ = 'google.ads.googleads_v4.proto.enums.display_ad_format_setting_pb2' , __doc__ = """Container for display ad format settings. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.enums.DisplayAdFormatSettingEnum) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.enums.DisplayAdFormatSettingEnum) )) _sym_db.RegisterMessage(DisplayAdFormatSettingEnum) diff --git a/google/ads/google_ads/v1/proto/enums/external_conversion_source_pb2_grpc.py b/google/ads/google_ads/v4/proto/enums/display_ad_format_setting_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/enums/external_conversion_source_pb2_grpc.py rename to google/ads/google_ads/v4/proto/enums/display_ad_format_setting_pb2_grpc.py diff --git a/google/ads/google_ads/v1/proto/enums/display_upload_product_type_pb2.py b/google/ads/google_ads/v4/proto/enums/display_upload_product_type_pb2.py similarity index 82% rename from google/ads/google_ads/v1/proto/enums/display_upload_product_type_pb2.py rename to google/ads/google_ads/v4/proto/enums/display_upload_product_type_pb2.py index ba73bb05b..188f57946 100644 --- a/google/ads/google_ads/v1/proto/enums/display_upload_product_type_pb2.py +++ b/google/ads/google_ads/v4/proto/enums/display_upload_product_type_pb2.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/enums/display_upload_product_type.proto +# source: google/ads/googleads_v4/proto/enums/display_upload_product_type.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) @@ -17,11 +17,11 @@ DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/enums/display_upload_product_type.proto', - package='google.ads.googleads.v1.enums', + name='google/ads/googleads_v4/proto/enums/display_upload_product_type.proto', + package='google.ads.googleads.v4.enums', syntax='proto3', - serialized_options=_b('\n!com.google.ads.googleads.v1.enumsB\035DisplayUploadProductTypeProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v1/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V1.Enums\312\002\035Google\\Ads\\GoogleAds\\V1\\Enums\352\002!Google::Ads::GoogleAds::V1::Enums'), - serialized_pb=_b('\nEgoogle/ads/googleads_v1/proto/enums/display_upload_product_type.proto\x12\x1dgoogle.ads.googleads.v1.enums\x1a\x1cgoogle/api/annotations.proto\"\xfc\x02\n\x1c\x44isplayUploadProductTypeEnum\"\xdb\x02\n\x18\x44isplayUploadProductType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x13\n\x0fHTML5_UPLOAD_AD\x10\x02\x12\x1e\n\x1a\x44YNAMIC_HTML5_EDUCATION_AD\x10\x03\x12\x1b\n\x17\x44YNAMIC_HTML5_FLIGHT_AD\x10\x04\x12!\n\x1d\x44YNAMIC_HTML5_HOTEL_RENTAL_AD\x10\x05\x12\x18\n\x14\x44YNAMIC_HTML5_JOB_AD\x10\x06\x12\x1a\n\x16\x44YNAMIC_HTML5_LOCAL_AD\x10\x07\x12 \n\x1c\x44YNAMIC_HTML5_REAL_ESTATE_AD\x10\x08\x12\x1b\n\x17\x44YNAMIC_HTML5_CUSTOM_AD\x10\t\x12\x1b\n\x17\x44YNAMIC_HTML5_TRAVEL_AD\x10\n\x12\x1a\n\x16\x44YNAMIC_HTML5_HOTEL_AD\x10\x0b\x42\xf2\x01\n!com.google.ads.googleads.v1.enumsB\x1d\x44isplayUploadProductTypeProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v1/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V1.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V1\\Enums\xea\x02!Google::Ads::GoogleAds::V1::Enumsb\x06proto3') + serialized_options=_b('\n!com.google.ads.googleads.v4.enumsB\035DisplayUploadProductTypeProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V4.Enums\312\002\035Google\\Ads\\GoogleAds\\V4\\Enums\352\002!Google::Ads::GoogleAds::V4::Enums'), + serialized_pb=_b('\nEgoogle/ads/googleads_v4/proto/enums/display_upload_product_type.proto\x12\x1dgoogle.ads.googleads.v4.enums\x1a\x1cgoogle/api/annotations.proto\"\xfc\x02\n\x1c\x44isplayUploadProductTypeEnum\"\xdb\x02\n\x18\x44isplayUploadProductType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x13\n\x0fHTML5_UPLOAD_AD\x10\x02\x12\x1e\n\x1a\x44YNAMIC_HTML5_EDUCATION_AD\x10\x03\x12\x1b\n\x17\x44YNAMIC_HTML5_FLIGHT_AD\x10\x04\x12!\n\x1d\x44YNAMIC_HTML5_HOTEL_RENTAL_AD\x10\x05\x12\x18\n\x14\x44YNAMIC_HTML5_JOB_AD\x10\x06\x12\x1a\n\x16\x44YNAMIC_HTML5_LOCAL_AD\x10\x07\x12 \n\x1c\x44YNAMIC_HTML5_REAL_ESTATE_AD\x10\x08\x12\x1b\n\x17\x44YNAMIC_HTML5_CUSTOM_AD\x10\t\x12\x1b\n\x17\x44YNAMIC_HTML5_TRAVEL_AD\x10\n\x12\x1a\n\x16\x44YNAMIC_HTML5_HOTEL_AD\x10\x0b\x42\xf2\x01\n!com.google.ads.googleads.v4.enumsB\x1d\x44isplayUploadProductTypeProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V4.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V4\\Enums\xea\x02!Google::Ads::GoogleAds::V4::Enumsb\x06proto3') , dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) @@ -29,7 +29,7 @@ _DISPLAYUPLOADPRODUCTTYPEENUM_DISPLAYUPLOADPRODUCTTYPE = _descriptor.EnumDescriptor( name='DisplayUploadProductType', - full_name='google.ads.googleads.v1.enums.DisplayUploadProductTypeEnum.DisplayUploadProductType', + full_name='google.ads.googleads.v4.enums.DisplayUploadProductTypeEnum.DisplayUploadProductType', filename=None, file=DESCRIPTOR, values=[ @@ -92,7 +92,7 @@ _DISPLAYUPLOADPRODUCTTYPEENUM = _descriptor.Descriptor( name='DisplayUploadProductTypeEnum', - full_name='google.ads.googleads.v1.enums.DisplayUploadProductTypeEnum', + full_name='google.ads.googleads.v4.enums.DisplayUploadProductTypeEnum', filename=None, file=DESCRIPTOR, containing_type=None, @@ -120,7 +120,7 @@ DisplayUploadProductTypeEnum = _reflection.GeneratedProtocolMessageType('DisplayUploadProductTypeEnum', (_message.Message,), dict( DESCRIPTOR = _DISPLAYUPLOADPRODUCTTYPEENUM, - __module__ = 'google.ads.googleads_v1.proto.enums.display_upload_product_type_pb2' + __module__ = 'google.ads.googleads_v4.proto.enums.display_upload_product_type_pb2' , __doc__ = """Container for display upload product types. Product types that have the word "DYNAMIC" in them must be associated with a campaign that has a @@ -129,7 +129,7 @@ dynamic remarketing. Other product types are regarded as "static" and do not have this requirement. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.enums.DisplayUploadProductTypeEnum) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.enums.DisplayUploadProductTypeEnum) )) _sym_db.RegisterMessage(DisplayUploadProductTypeEnum) diff --git a/google/ads/google_ads/v1/proto/enums/feed_attribute_type_pb2_grpc.py b/google/ads/google_ads/v4/proto/enums/display_upload_product_type_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/enums/feed_attribute_type_pb2_grpc.py rename to google/ads/google_ads/v4/proto/enums/display_upload_product_type_pb2_grpc.py diff --git a/google/ads/google_ads/v4/proto/enums/distance_bucket_pb2.py b/google/ads/google_ads/v4/proto/enums/distance_bucket_pb2.py new file mode 100644 index 000000000..30c39e045 --- /dev/null +++ b/google/ads/google_ads/v4/proto/enums/distance_bucket_pb2.py @@ -0,0 +1,202 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/enums/distance_bucket.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/enums/distance_bucket.proto', + package='google.ads.googleads.v4.enums', + syntax='proto3', + serialized_options=_b('\n!com.google.ads.googleads.v4.enumsB\023DistanceBucketProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V4.Enums\312\002\035Google\\Ads\\GoogleAds\\V4\\Enums\352\002!Google::Ads::GoogleAds::V4::Enums'), + serialized_pb=_b('\n9google/ads/googleads_v4/proto/enums/distance_bucket.proto\x12\x1dgoogle.ads.googleads.v4.enums\x1a\x1cgoogle/api/annotations.proto\"\xad\x04\n\x12\x44istanceBucketEnum\"\x96\x04\n\x0e\x44istanceBucket\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0f\n\x0bWITHIN_700M\x10\x02\x12\x0e\n\nWITHIN_1KM\x10\x03\x12\x0e\n\nWITHIN_5KM\x10\x04\x12\x0f\n\x0bWITHIN_10KM\x10\x05\x12\x0f\n\x0bWITHIN_15KM\x10\x06\x12\x0f\n\x0bWITHIN_20KM\x10\x07\x12\x0f\n\x0bWITHIN_25KM\x10\x08\x12\x0f\n\x0bWITHIN_30KM\x10\t\x12\x0f\n\x0bWITHIN_35KM\x10\n\x12\x0f\n\x0bWITHIN_40KM\x10\x0b\x12\x0f\n\x0bWITHIN_45KM\x10\x0c\x12\x0f\n\x0bWITHIN_50KM\x10\r\x12\x0f\n\x0bWITHIN_55KM\x10\x0e\x12\x0f\n\x0bWITHIN_60KM\x10\x0f\x12\x0f\n\x0bWITHIN_65KM\x10\x10\x12\x0f\n\x0b\x42\x45YOND_65KM\x10\x11\x12\x13\n\x0fWITHIN_0_7MILES\x10\x12\x12\x10\n\x0cWITHIN_1MILE\x10\x13\x12\x11\n\rWITHIN_5MILES\x10\x14\x12\x12\n\x0eWITHIN_10MILES\x10\x15\x12\x12\n\x0eWITHIN_15MILES\x10\x16\x12\x12\n\x0eWITHIN_20MILES\x10\x17\x12\x12\n\x0eWITHIN_25MILES\x10\x18\x12\x12\n\x0eWITHIN_30MILES\x10\x19\x12\x12\n\x0eWITHIN_35MILES\x10\x1a\x12\x12\n\x0eWITHIN_40MILES\x10\x1b\x12\x12\n\x0e\x42\x45YOND_40MILES\x10\x1c\x42\xe8\x01\n!com.google.ads.googleads.v4.enumsB\x13\x44istanceBucketProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V4.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V4\\Enums\xea\x02!Google::Ads::GoogleAds::V4::Enumsb\x06proto3') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_DISTANCEBUCKETENUM_DISTANCEBUCKET = _descriptor.EnumDescriptor( + name='DistanceBucket', + full_name='google.ads.googleads.v4.enums.DistanceBucketEnum.DistanceBucket', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='UNSPECIFIED', index=0, number=0, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='UNKNOWN', index=1, number=1, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='WITHIN_700M', index=2, number=2, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='WITHIN_1KM', index=3, number=3, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='WITHIN_5KM', index=4, number=4, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='WITHIN_10KM', index=5, number=5, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='WITHIN_15KM', index=6, number=6, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='WITHIN_20KM', index=7, number=7, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='WITHIN_25KM', index=8, number=8, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='WITHIN_30KM', index=9, number=9, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='WITHIN_35KM', index=10, number=10, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='WITHIN_40KM', index=11, number=11, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='WITHIN_45KM', index=12, number=12, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='WITHIN_50KM', index=13, number=13, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='WITHIN_55KM', index=14, number=14, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='WITHIN_60KM', index=15, number=15, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='WITHIN_65KM', index=16, number=16, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='BEYOND_65KM', index=17, number=17, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='WITHIN_0_7MILES', index=18, number=18, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='WITHIN_1MILE', index=19, number=19, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='WITHIN_5MILES', index=20, number=20, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='WITHIN_10MILES', index=21, number=21, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='WITHIN_15MILES', index=22, number=22, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='WITHIN_20MILES', index=23, number=23, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='WITHIN_25MILES', index=24, number=24, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='WITHIN_30MILES', index=25, number=25, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='WITHIN_35MILES', index=26, number=26, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='WITHIN_40MILES', index=27, number=27, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='BEYOND_40MILES', index=28, number=28, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=146, + serialized_end=680, +) +_sym_db.RegisterEnumDescriptor(_DISTANCEBUCKETENUM_DISTANCEBUCKET) + + +_DISTANCEBUCKETENUM = _descriptor.Descriptor( + name='DistanceBucketEnum', + full_name='google.ads.googleads.v4.enums.DistanceBucketEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _DISTANCEBUCKETENUM_DISTANCEBUCKET, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=123, + serialized_end=680, +) + +_DISTANCEBUCKETENUM_DISTANCEBUCKET.containing_type = _DISTANCEBUCKETENUM +DESCRIPTOR.message_types_by_name['DistanceBucketEnum'] = _DISTANCEBUCKETENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +DistanceBucketEnum = _reflection.GeneratedProtocolMessageType('DistanceBucketEnum', (_message.Message,), dict( + DESCRIPTOR = _DISTANCEBUCKETENUM, + __module__ = 'google.ads.googleads_v4.proto.enums.distance_bucket_pb2' + , + __doc__ = """Container for distance buckets of a user’s distance from an advertiser’s + location extension. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.enums.DistanceBucketEnum) + )) +_sym_db.RegisterMessage(DistanceBucketEnum) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/enums/feed_item_quality_approval_status_pb2_grpc.py b/google/ads/google_ads/v4/proto/enums/distance_bucket_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/enums/feed_item_quality_approval_status_pb2_grpc.py rename to google/ads/google_ads/v4/proto/enums/distance_bucket_pb2_grpc.py diff --git a/google/ads/google_ads/v4/proto/enums/dsa_page_feed_criterion_field_pb2.py b/google/ads/google_ads/v4/proto/enums/dsa_page_feed_criterion_field_pb2.py new file mode 100644 index 000000000..e0f79a228 --- /dev/null +++ b/google/ads/google_ads/v4/proto/enums/dsa_page_feed_criterion_field_pb2.py @@ -0,0 +1,101 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/enums/dsa_page_feed_criterion_field.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/enums/dsa_page_feed_criterion_field.proto', + package='google.ads.googleads.v4.enums', + syntax='proto3', + serialized_options=_b('\n!com.google.ads.googleads.v4.enumsB\036DsaPageFeedCriterionFieldProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V4.Enums\312\002\035Google\\Ads\\GoogleAds\\V4\\Enums\352\002!Google::Ads::GoogleAds::V4::Enums'), + serialized_pb=_b('\nGgoogle/ads/googleads_v4/proto/enums/dsa_page_feed_criterion_field.proto\x12\x1dgoogle.ads.googleads.v4.enums\x1a\x1cgoogle/api/annotations.proto\"s\n\x1d\x44saPageFeedCriterionFieldEnum\"R\n\x19\x44saPageFeedCriterionField\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0c\n\x08PAGE_URL\x10\x02\x12\t\n\x05LABEL\x10\x03\x42\xf3\x01\n!com.google.ads.googleads.v4.enumsB\x1e\x44saPageFeedCriterionFieldProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V4.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V4\\Enums\xea\x02!Google::Ads::GoogleAds::V4::Enumsb\x06proto3') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_DSAPAGEFEEDCRITERIONFIELDENUM_DSAPAGEFEEDCRITERIONFIELD = _descriptor.EnumDescriptor( + name='DsaPageFeedCriterionField', + full_name='google.ads.googleads.v4.enums.DsaPageFeedCriterionFieldEnum.DsaPageFeedCriterionField', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='UNSPECIFIED', index=0, number=0, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='UNKNOWN', index=1, number=1, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='PAGE_URL', index=2, number=2, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='LABEL', index=3, number=3, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=169, + serialized_end=251, +) +_sym_db.RegisterEnumDescriptor(_DSAPAGEFEEDCRITERIONFIELDENUM_DSAPAGEFEEDCRITERIONFIELD) + + +_DSAPAGEFEEDCRITERIONFIELDENUM = _descriptor.Descriptor( + name='DsaPageFeedCriterionFieldEnum', + full_name='google.ads.googleads.v4.enums.DsaPageFeedCriterionFieldEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _DSAPAGEFEEDCRITERIONFIELDENUM_DSAPAGEFEEDCRITERIONFIELD, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=136, + serialized_end=251, +) + +_DSAPAGEFEEDCRITERIONFIELDENUM_DSAPAGEFEEDCRITERIONFIELD.containing_type = _DSAPAGEFEEDCRITERIONFIELDENUM +DESCRIPTOR.message_types_by_name['DsaPageFeedCriterionFieldEnum'] = _DSAPAGEFEEDCRITERIONFIELDENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +DsaPageFeedCriterionFieldEnum = _reflection.GeneratedProtocolMessageType('DsaPageFeedCriterionFieldEnum', (_message.Message,), dict( + DESCRIPTOR = _DSAPAGEFEEDCRITERIONFIELDENUM, + __module__ = 'google.ads.googleads_v4.proto.enums.dsa_page_feed_criterion_field_pb2' + , + __doc__ = """Values for Dynamic Search Ad Page Feed criterion fields. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.enums.DsaPageFeedCriterionFieldEnum) + )) +_sym_db.RegisterMessage(DsaPageFeedCriterionFieldEnum) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/enums/feed_item_quality_disapproval_reason_pb2_grpc.py b/google/ads/google_ads/v4/proto/enums/dsa_page_feed_criterion_field_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/enums/feed_item_quality_disapproval_reason_pb2_grpc.py rename to google/ads/google_ads/v4/proto/enums/dsa_page_feed_criterion_field_pb2_grpc.py diff --git a/google/ads/google_ads/v1/proto/enums/education_placeholder_field_pb2.py b/google/ads/google_ads/v4/proto/enums/education_placeholder_field_pb2.py similarity index 84% rename from google/ads/google_ads/v1/proto/enums/education_placeholder_field_pb2.py rename to google/ads/google_ads/v4/proto/enums/education_placeholder_field_pb2.py index a108bca2f..dc893a322 100644 --- a/google/ads/google_ads/v1/proto/enums/education_placeholder_field_pb2.py +++ b/google/ads/google_ads/v4/proto/enums/education_placeholder_field_pb2.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/enums/education_placeholder_field.proto +# source: google/ads/googleads_v4/proto/enums/education_placeholder_field.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) @@ -17,11 +17,11 @@ DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/enums/education_placeholder_field.proto', - package='google.ads.googleads.v1.enums', + name='google/ads/googleads_v4/proto/enums/education_placeholder_field.proto', + package='google.ads.googleads.v4.enums', syntax='proto3', - serialized_options=_b('\n!com.google.ads.googleads.v1.enumsB\036EducationPlaceholderFieldProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v1/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V1.Enums\312\002\035Google\\Ads\\GoogleAds\\V1\\Enums\352\002!Google::Ads::GoogleAds::V1::Enums'), - serialized_pb=_b('\nEgoogle/ads/googleads_v1/proto/enums/education_placeholder_field.proto\x12\x1dgoogle.ads.googleads.v1.enums\x1a\x1cgoogle/api/annotations.proto\"\xbf\x03\n\x1d\x45\x64ucationPlaceholderFieldEnum\"\x9d\x03\n\x19\x45\x64ucationPlaceholderField\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0e\n\nPROGRAM_ID\x10\x02\x12\x0f\n\x0bLOCATION_ID\x10\x03\x12\x10\n\x0cPROGRAM_NAME\x10\x04\x12\x11\n\rAREA_OF_STUDY\x10\x05\x12\x17\n\x13PROGRAM_DESCRIPTION\x10\x06\x12\x0f\n\x0bSCHOOL_NAME\x10\x07\x12\x0b\n\x07\x41\x44\x44RESS\x10\x08\x12\x17\n\x13THUMBNAIL_IMAGE_URL\x10\t\x12#\n\x1f\x41LTERNATIVE_THUMBNAIL_IMAGE_URL\x10\n\x12\x0e\n\nFINAL_URLS\x10\x0b\x12\x15\n\x11\x46INAL_MOBILE_URLS\x10\x0c\x12\x10\n\x0cTRACKING_URL\x10\r\x12\x17\n\x13\x43ONTEXTUAL_KEYWORDS\x10\x0e\x12\x14\n\x10\x41NDROID_APP_LINK\x10\x0f\x12\x17\n\x13SIMILAR_PROGRAM_IDS\x10\x10\x12\x10\n\x0cIOS_APP_LINK\x10\x11\x12\x14\n\x10IOS_APP_STORE_ID\x10\x12\x42\xf3\x01\n!com.google.ads.googleads.v1.enumsB\x1e\x45\x64ucationPlaceholderFieldProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v1/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V1.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V1\\Enums\xea\x02!Google::Ads::GoogleAds::V1::Enumsb\x06proto3') + serialized_options=_b('\n!com.google.ads.googleads.v4.enumsB\036EducationPlaceholderFieldProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V4.Enums\312\002\035Google\\Ads\\GoogleAds\\V4\\Enums\352\002!Google::Ads::GoogleAds::V4::Enums'), + serialized_pb=_b('\nEgoogle/ads/googleads_v4/proto/enums/education_placeholder_field.proto\x12\x1dgoogle.ads.googleads.v4.enums\x1a\x1cgoogle/api/annotations.proto\"\xbf\x03\n\x1d\x45\x64ucationPlaceholderFieldEnum\"\x9d\x03\n\x19\x45\x64ucationPlaceholderField\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0e\n\nPROGRAM_ID\x10\x02\x12\x0f\n\x0bLOCATION_ID\x10\x03\x12\x10\n\x0cPROGRAM_NAME\x10\x04\x12\x11\n\rAREA_OF_STUDY\x10\x05\x12\x17\n\x13PROGRAM_DESCRIPTION\x10\x06\x12\x0f\n\x0bSCHOOL_NAME\x10\x07\x12\x0b\n\x07\x41\x44\x44RESS\x10\x08\x12\x17\n\x13THUMBNAIL_IMAGE_URL\x10\t\x12#\n\x1f\x41LTERNATIVE_THUMBNAIL_IMAGE_URL\x10\n\x12\x0e\n\nFINAL_URLS\x10\x0b\x12\x15\n\x11\x46INAL_MOBILE_URLS\x10\x0c\x12\x10\n\x0cTRACKING_URL\x10\r\x12\x17\n\x13\x43ONTEXTUAL_KEYWORDS\x10\x0e\x12\x14\n\x10\x41NDROID_APP_LINK\x10\x0f\x12\x17\n\x13SIMILAR_PROGRAM_IDS\x10\x10\x12\x10\n\x0cIOS_APP_LINK\x10\x11\x12\x14\n\x10IOS_APP_STORE_ID\x10\x12\x42\xf3\x01\n!com.google.ads.googleads.v4.enumsB\x1e\x45\x64ucationPlaceholderFieldProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V4.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V4\\Enums\xea\x02!Google::Ads::GoogleAds::V4::Enumsb\x06proto3') , dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) @@ -29,7 +29,7 @@ _EDUCATIONPLACEHOLDERFIELDENUM_EDUCATIONPLACEHOLDERFIELD = _descriptor.EnumDescriptor( name='EducationPlaceholderField', - full_name='google.ads.googleads.v1.enums.EducationPlaceholderFieldEnum.EducationPlaceholderField', + full_name='google.ads.googleads.v4.enums.EducationPlaceholderFieldEnum.EducationPlaceholderField', filename=None, file=DESCRIPTOR, values=[ @@ -120,7 +120,7 @@ _EDUCATIONPLACEHOLDERFIELDENUM = _descriptor.Descriptor( name='EducationPlaceholderFieldEnum', - full_name='google.ads.googleads.v1.enums.EducationPlaceholderFieldEnum', + full_name='google.ads.googleads.v4.enums.EducationPlaceholderFieldEnum', filename=None, file=DESCRIPTOR, containing_type=None, @@ -148,13 +148,13 @@ EducationPlaceholderFieldEnum = _reflection.GeneratedProtocolMessageType('EducationPlaceholderFieldEnum', (_message.Message,), dict( DESCRIPTOR = _EDUCATIONPLACEHOLDERFIELDENUM, - __module__ = 'google.ads.googleads_v1.proto.enums.education_placeholder_field_pb2' + __module__ = 'google.ads.googleads_v4.proto.enums.education_placeholder_field_pb2' , __doc__ = """Values for Education placeholder fields. For more information about dynamic remarketing feeds, see https://support.google.com/google-ads/answer/6053288. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.enums.EducationPlaceholderFieldEnum) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.enums.EducationPlaceholderFieldEnum) )) _sym_db.RegisterMessage(EducationPlaceholderFieldEnum) diff --git a/google/ads/google_ads/v1/proto/enums/feed_item_status_pb2_grpc.py b/google/ads/google_ads/v4/proto/enums/education_placeholder_field_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/enums/feed_item_status_pb2_grpc.py rename to google/ads/google_ads/v4/proto/enums/education_placeholder_field_pb2_grpc.py diff --git a/google/ads/google_ads/v4/proto/enums/extension_setting_device_pb2.py b/google/ads/google_ads/v4/proto/enums/extension_setting_device_pb2.py new file mode 100644 index 000000000..3c17adfdb --- /dev/null +++ b/google/ads/google_ads/v4/proto/enums/extension_setting_device_pb2.py @@ -0,0 +1,101 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/enums/extension_setting_device.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/enums/extension_setting_device.proto', + package='google.ads.googleads.v4.enums', + syntax='proto3', + serialized_options=_b('\n!com.google.ads.googleads.v4.enumsB\033ExtensionSettingDeviceProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V4.Enums\312\002\035Google\\Ads\\GoogleAds\\V4\\Enums\352\002!Google::Ads::GoogleAds::V4::Enums'), + serialized_pb=_b('\nBgoogle/ads/googleads_v4/proto/enums/extension_setting_device.proto\x12\x1dgoogle.ads.googleads.v4.enums\x1a\x1cgoogle/api/annotations.proto\"m\n\x1a\x45xtensionSettingDeviceEnum\"O\n\x16\x45xtensionSettingDevice\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\n\n\x06MOBILE\x10\x02\x12\x0b\n\x07\x44\x45SKTOP\x10\x03\x42\xf0\x01\n!com.google.ads.googleads.v4.enumsB\x1b\x45xtensionSettingDeviceProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V4.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V4\\Enums\xea\x02!Google::Ads::GoogleAds::V4::Enumsb\x06proto3') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_EXTENSIONSETTINGDEVICEENUM_EXTENSIONSETTINGDEVICE = _descriptor.EnumDescriptor( + name='ExtensionSettingDevice', + full_name='google.ads.googleads.v4.enums.ExtensionSettingDeviceEnum.ExtensionSettingDevice', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='UNSPECIFIED', index=0, number=0, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='UNKNOWN', index=1, number=1, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='MOBILE', index=2, number=2, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='DESKTOP', index=3, number=3, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=161, + serialized_end=240, +) +_sym_db.RegisterEnumDescriptor(_EXTENSIONSETTINGDEVICEENUM_EXTENSIONSETTINGDEVICE) + + +_EXTENSIONSETTINGDEVICEENUM = _descriptor.Descriptor( + name='ExtensionSettingDeviceEnum', + full_name='google.ads.googleads.v4.enums.ExtensionSettingDeviceEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _EXTENSIONSETTINGDEVICEENUM_EXTENSIONSETTINGDEVICE, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=131, + serialized_end=240, +) + +_EXTENSIONSETTINGDEVICEENUM_EXTENSIONSETTINGDEVICE.containing_type = _EXTENSIONSETTINGDEVICEENUM +DESCRIPTOR.message_types_by_name['ExtensionSettingDeviceEnum'] = _EXTENSIONSETTINGDEVICEENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +ExtensionSettingDeviceEnum = _reflection.GeneratedProtocolMessageType('ExtensionSettingDeviceEnum', (_message.Message,), dict( + DESCRIPTOR = _EXTENSIONSETTINGDEVICEENUM, + __module__ = 'google.ads.googleads_v4.proto.enums.extension_setting_device_pb2' + , + __doc__ = """Container for enum describing extension setting device types. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.enums.ExtensionSettingDeviceEnum) + )) +_sym_db.RegisterMessage(ExtensionSettingDeviceEnum) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/enums/feed_item_target_device_pb2_grpc.py b/google/ads/google_ads/v4/proto/enums/extension_setting_device_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/enums/feed_item_target_device_pb2_grpc.py rename to google/ads/google_ads/v4/proto/enums/extension_setting_device_pb2_grpc.py diff --git a/google/ads/google_ads/v4/proto/enums/extension_type_pb2.py b/google/ads/google_ads/v4/proto/enums/extension_type_pb2.py new file mode 100644 index 000000000..cc8be99df --- /dev/null +++ b/google/ads/google_ads/v4/proto/enums/extension_type_pb2.py @@ -0,0 +1,142 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/enums/extension_type.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/enums/extension_type.proto', + package='google.ads.googleads.v4.enums', + syntax='proto3', + serialized_options=_b('\n!com.google.ads.googleads.v4.enumsB\022ExtensionTypeProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V4.Enums\312\002\035Google\\Ads\\GoogleAds\\V4\\Enums\352\002!Google::Ads::GoogleAds::V4::Enums'), + serialized_pb=_b('\n8google/ads/googleads_v4/proto/enums/extension_type.proto\x12\x1dgoogle.ads.googleads.v4.enums\x1a\x1cgoogle/api/annotations.proto\"\xf3\x01\n\x11\x45xtensionTypeEnum\"\xdd\x01\n\rExtensionType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x08\n\x04NONE\x10\x02\x12\x07\n\x03\x41PP\x10\x03\x12\x08\n\x04\x43\x41LL\x10\x04\x12\x0b\n\x07\x43\x41LLOUT\x10\x05\x12\x0b\n\x07MESSAGE\x10\x06\x12\t\n\x05PRICE\x10\x07\x12\r\n\tPROMOTION\x10\x08\x12\x0c\n\x08SITELINK\x10\n\x12\x16\n\x12STRUCTURED_SNIPPET\x10\x0b\x12\x0c\n\x08LOCATION\x10\x0c\x12\x16\n\x12\x41\x46\x46ILIATE_LOCATION\x10\r\x12\x11\n\rHOTEL_CALLOUT\x10\x0f\x42\xe7\x01\n!com.google.ads.googleads.v4.enumsB\x12\x45xtensionTypeProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V4.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V4\\Enums\xea\x02!Google::Ads::GoogleAds::V4::Enumsb\x06proto3') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_EXTENSIONTYPEENUM_EXTENSIONTYPE = _descriptor.EnumDescriptor( + name='ExtensionType', + full_name='google.ads.googleads.v4.enums.ExtensionTypeEnum.ExtensionType', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='UNSPECIFIED', index=0, number=0, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='UNKNOWN', index=1, number=1, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='NONE', index=2, number=2, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='APP', index=3, number=3, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CALL', index=4, number=4, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CALLOUT', index=5, number=5, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='MESSAGE', index=6, number=6, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='PRICE', index=7, number=7, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='PROMOTION', index=8, number=8, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='SITELINK', index=9, number=10, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='STRUCTURED_SNIPPET', index=10, number=11, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='LOCATION', index=11, number=12, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='AFFILIATE_LOCATION', index=12, number=13, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='HOTEL_CALLOUT', index=13, number=15, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=144, + serialized_end=365, +) +_sym_db.RegisterEnumDescriptor(_EXTENSIONTYPEENUM_EXTENSIONTYPE) + + +_EXTENSIONTYPEENUM = _descriptor.Descriptor( + name='ExtensionTypeEnum', + full_name='google.ads.googleads.v4.enums.ExtensionTypeEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _EXTENSIONTYPEENUM_EXTENSIONTYPE, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=122, + serialized_end=365, +) + +_EXTENSIONTYPEENUM_EXTENSIONTYPE.containing_type = _EXTENSIONTYPEENUM +DESCRIPTOR.message_types_by_name['ExtensionTypeEnum'] = _EXTENSIONTYPEENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +ExtensionTypeEnum = _reflection.GeneratedProtocolMessageType('ExtensionTypeEnum', (_message.Message,), dict( + DESCRIPTOR = _EXTENSIONTYPEENUM, + __module__ = 'google.ads.googleads_v4.proto.enums.extension_type_pb2' + , + __doc__ = """Container for enum describing possible data types for an extension in an + extension setting. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.enums.ExtensionTypeEnum) + )) +_sym_db.RegisterMessage(ExtensionTypeEnum) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/enums/feed_item_target_type_pb2_grpc.py b/google/ads/google_ads/v4/proto/enums/extension_type_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/enums/feed_item_target_type_pb2_grpc.py rename to google/ads/google_ads/v4/proto/enums/extension_type_pb2_grpc.py diff --git a/google/ads/google_ads/v1/proto/enums/external_conversion_source_pb2.py b/google/ads/google_ads/v4/proto/enums/external_conversion_source_pb2.py similarity index 79% rename from google/ads/google_ads/v1/proto/enums/external_conversion_source_pb2.py rename to google/ads/google_ads/v4/proto/enums/external_conversion_source_pb2.py index 8a6670701..896b47cfc 100644 --- a/google/ads/google_ads/v1/proto/enums/external_conversion_source_pb2.py +++ b/google/ads/google_ads/v4/proto/enums/external_conversion_source_pb2.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/enums/external_conversion_source.proto +# source: google/ads/googleads_v4/proto/enums/external_conversion_source.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) @@ -17,11 +17,11 @@ DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/enums/external_conversion_source.proto', - package='google.ads.googleads.v1.enums', + name='google/ads/googleads_v4/proto/enums/external_conversion_source.proto', + package='google.ads.googleads.v4.enums', syntax='proto3', - serialized_options=_b('\n!com.google.ads.googleads.v1.enumsB\035ExternalConversionSourceProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v1/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V1.Enums\312\002\035Google\\Ads\\GoogleAds\\V1\\Enums\352\002!Google::Ads::GoogleAds::V1::Enums'), - serialized_pb=_b('\nDgoogle/ads/googleads_v1/proto/enums/external_conversion_source.proto\x12\x1dgoogle.ads.googleads.v1.enums\x1a\x1cgoogle/api/annotations.proto\"\x80\x04\n\x1c\x45xternalConversionSourceEnum\"\xdf\x03\n\x18\x45xternalConversionSource\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0b\n\x07WEBPAGE\x10\x02\x12\r\n\tANALYTICS\x10\x03\x12\n\n\x06UPLOAD\x10\x04\x12\x13\n\x0f\x41\x44_CALL_METRICS\x10\x05\x12\x18\n\x14WEBSITE_CALL_METRICS\x10\x06\x12\x10\n\x0cSTORE_VISITS\x10\x07\x12\x12\n\x0e\x41NDROID_IN_APP\x10\x08\x12\x0e\n\nIOS_IN_APP\x10\t\x12\x12\n\x0eIOS_FIRST_OPEN\x10\n\x12\x13\n\x0f\x41PP_UNSPECIFIED\x10\x0b\x12\x16\n\x12\x41NDROID_FIRST_OPEN\x10\x0c\x12\x10\n\x0cUPLOAD_CALLS\x10\r\x12\x0c\n\x08\x46IREBASE\x10\x0e\x12\x11\n\rCLICK_TO_CALL\x10\x0f\x12\x0e\n\nSALESFORCE\x10\x10\x12\x13\n\x0fSTORE_SALES_CRM\x10\x11\x12\x1f\n\x1bSTORE_SALES_PAYMENT_NETWORK\x10\x12\x12\x0f\n\x0bGOOGLE_PLAY\x10\x13\x12\x1d\n\x19THIRD_PARTY_APP_ANALYTICS\x10\x14\x12\x16\n\x12GOOGLE_ATTRIBUTION\x10\x15\x12\x16\n\x12STORE_SALES_DIRECT\x10\x16\x42\xf2\x01\n!com.google.ads.googleads.v1.enumsB\x1d\x45xternalConversionSourceProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v1/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V1.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V1\\Enums\xea\x02!Google::Ads::GoogleAds::V1::Enumsb\x06proto3') + serialized_options=_b('\n!com.google.ads.googleads.v4.enumsB\035ExternalConversionSourceProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V4.Enums\312\002\035Google\\Ads\\GoogleAds\\V4\\Enums\352\002!Google::Ads::GoogleAds::V4::Enums'), + serialized_pb=_b('\nDgoogle/ads/googleads_v4/proto/enums/external_conversion_source.proto\x12\x1dgoogle.ads.googleads.v4.enums\x1a\x1cgoogle/api/annotations.proto\"\x98\x04\n\x1c\x45xternalConversionSourceEnum\"\xf7\x03\n\x18\x45xternalConversionSource\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0b\n\x07WEBPAGE\x10\x02\x12\r\n\tANALYTICS\x10\x03\x12\n\n\x06UPLOAD\x10\x04\x12\x13\n\x0f\x41\x44_CALL_METRICS\x10\x05\x12\x18\n\x14WEBSITE_CALL_METRICS\x10\x06\x12\x10\n\x0cSTORE_VISITS\x10\x07\x12\x12\n\x0e\x41NDROID_IN_APP\x10\x08\x12\x0e\n\nIOS_IN_APP\x10\t\x12\x12\n\x0eIOS_FIRST_OPEN\x10\n\x12\x13\n\x0f\x41PP_UNSPECIFIED\x10\x0b\x12\x16\n\x12\x41NDROID_FIRST_OPEN\x10\x0c\x12\x10\n\x0cUPLOAD_CALLS\x10\r\x12\x0c\n\x08\x46IREBASE\x10\x0e\x12\x11\n\rCLICK_TO_CALL\x10\x0f\x12\x0e\n\nSALESFORCE\x10\x10\x12\x13\n\x0fSTORE_SALES_CRM\x10\x11\x12\x1f\n\x1bSTORE_SALES_PAYMENT_NETWORK\x10\x12\x12\x0f\n\x0bGOOGLE_PLAY\x10\x13\x12\x1d\n\x19THIRD_PARTY_APP_ANALYTICS\x10\x14\x12\x16\n\x12GOOGLE_ATTRIBUTION\x10\x15\x12\x1d\n\x19STORE_SALES_DIRECT_UPLOAD\x10\x17\x12\x0f\n\x0bSTORE_SALES\x10\x18\x42\xf2\x01\n!com.google.ads.googleads.v4.enumsB\x1d\x45xternalConversionSourceProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V4.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V4\\Enums\xea\x02!Google::Ads::GoogleAds::V4::Enumsb\x06proto3') , dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) @@ -29,7 +29,7 @@ _EXTERNALCONVERSIONSOURCEENUM_EXTERNALCONVERSIONSOURCE = _descriptor.EnumDescriptor( name='ExternalConversionSource', - full_name='google.ads.googleads.v1.enums.ExternalConversionSourceEnum.ExternalConversionSource', + full_name='google.ads.googleads.v4.enums.ExternalConversionSourceEnum.ExternalConversionSource', filename=None, file=DESCRIPTOR, values=[ @@ -122,21 +122,25 @@ serialized_options=None, type=None), _descriptor.EnumValueDescriptor( - name='STORE_SALES_DIRECT', index=22, number=22, + name='STORE_SALES_DIRECT_UPLOAD', index=22, number=23, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='STORE_SALES', index=23, number=24, serialized_options=None, type=None), ], containing_type=None, serialized_options=None, serialized_start=167, - serialized_end=646, + serialized_end=670, ) _sym_db.RegisterEnumDescriptor(_EXTERNALCONVERSIONSOURCEENUM_EXTERNALCONVERSIONSOURCE) _EXTERNALCONVERSIONSOURCEENUM = _descriptor.Descriptor( name='ExternalConversionSourceEnum', - full_name='google.ads.googleads.v1.enums.ExternalConversionSourceEnum', + full_name='google.ads.googleads.v4.enums.ExternalConversionSourceEnum', filename=None, file=DESCRIPTOR, containing_type=None, @@ -155,7 +159,7 @@ oneofs=[ ], serialized_start=134, - serialized_end=646, + serialized_end=670, ) _EXTERNALCONVERSIONSOURCEENUM_EXTERNALCONVERSIONSOURCE.containing_type = _EXTERNALCONVERSIONSOURCEENUM @@ -164,12 +168,12 @@ ExternalConversionSourceEnum = _reflection.GeneratedProtocolMessageType('ExternalConversionSourceEnum', (_message.Message,), dict( DESCRIPTOR = _EXTERNALCONVERSIONSOURCEENUM, - __module__ = 'google.ads.googleads_v1.proto.enums.external_conversion_source_pb2' + __module__ = 'google.ads.googleads_v4.proto.enums.external_conversion_source_pb2' , __doc__ = """Container for enum describing the external conversion source that is associated with a ConversionAction. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.enums.ExternalConversionSourceEnum) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.enums.ExternalConversionSourceEnum) )) _sym_db.RegisterMessage(ExternalConversionSourceEnum) diff --git a/google/ads/google_ads/v1/proto/enums/feed_item_validation_status_pb2_grpc.py b/google/ads/google_ads/v4/proto/enums/external_conversion_source_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/enums/feed_item_validation_status_pb2_grpc.py rename to google/ads/google_ads/v4/proto/enums/external_conversion_source_pb2_grpc.py diff --git a/google/ads/google_ads/v1/proto/enums/feed_attribute_type_pb2.py b/google/ads/google_ads/v4/proto/enums/feed_attribute_type_pb2.py similarity index 81% rename from google/ads/google_ads/v1/proto/enums/feed_attribute_type_pb2.py rename to google/ads/google_ads/v4/proto/enums/feed_attribute_type_pb2.py index 4f0367859..4ff0c2e0c 100644 --- a/google/ads/google_ads/v1/proto/enums/feed_attribute_type_pb2.py +++ b/google/ads/google_ads/v4/proto/enums/feed_attribute_type_pb2.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/enums/feed_attribute_type.proto +# source: google/ads/googleads_v4/proto/enums/feed_attribute_type.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) @@ -17,11 +17,11 @@ DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/enums/feed_attribute_type.proto', - package='google.ads.googleads.v1.enums', + name='google/ads/googleads_v4/proto/enums/feed_attribute_type.proto', + package='google.ads.googleads.v4.enums', syntax='proto3', - serialized_options=_b('\n!com.google.ads.googleads.v1.enumsB\026FeedAttributeTypeProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v1/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V1.Enums\312\002\035Google\\Ads\\GoogleAds\\V1\\Enums\352\002!Google::Ads::GoogleAds::V1::Enums'), - serialized_pb=_b('\n=google/ads/googleads_v1/proto/enums/feed_attribute_type.proto\x12\x1dgoogle.ads.googleads.v1.enums\x1a\x1cgoogle/api/annotations.proto\"\x84\x02\n\x15\x46\x65\x65\x64\x41ttributeTypeEnum\"\xea\x01\n\x11\x46\x65\x65\x64\x41ttributeType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\t\n\x05INT64\x10\x02\x12\n\n\x06\x44OUBLE\x10\x03\x12\n\n\x06STRING\x10\x04\x12\x0b\n\x07\x42OOLEAN\x10\x05\x12\x07\n\x03URL\x10\x06\x12\r\n\tDATE_TIME\x10\x07\x12\x0e\n\nINT64_LIST\x10\x08\x12\x0f\n\x0b\x44OUBLE_LIST\x10\t\x12\x0f\n\x0bSTRING_LIST\x10\n\x12\x10\n\x0c\x42OOLEAN_LIST\x10\x0b\x12\x0c\n\x08URL_LIST\x10\x0c\x12\x12\n\x0e\x44\x41TE_TIME_LIST\x10\r\x12\t\n\x05PRICE\x10\x0e\x42\xeb\x01\n!com.google.ads.googleads.v1.enumsB\x16\x46\x65\x65\x64\x41ttributeTypeProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v1/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V1.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V1\\Enums\xea\x02!Google::Ads::GoogleAds::V1::Enumsb\x06proto3') + serialized_options=_b('\n!com.google.ads.googleads.v4.enumsB\026FeedAttributeTypeProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V4.Enums\312\002\035Google\\Ads\\GoogleAds\\V4\\Enums\352\002!Google::Ads::GoogleAds::V4::Enums'), + serialized_pb=_b('\n=google/ads/googleads_v4/proto/enums/feed_attribute_type.proto\x12\x1dgoogle.ads.googleads.v4.enums\x1a\x1cgoogle/api/annotations.proto\"\x84\x02\n\x15\x46\x65\x65\x64\x41ttributeTypeEnum\"\xea\x01\n\x11\x46\x65\x65\x64\x41ttributeType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\t\n\x05INT64\x10\x02\x12\n\n\x06\x44OUBLE\x10\x03\x12\n\n\x06STRING\x10\x04\x12\x0b\n\x07\x42OOLEAN\x10\x05\x12\x07\n\x03URL\x10\x06\x12\r\n\tDATE_TIME\x10\x07\x12\x0e\n\nINT64_LIST\x10\x08\x12\x0f\n\x0b\x44OUBLE_LIST\x10\t\x12\x0f\n\x0bSTRING_LIST\x10\n\x12\x10\n\x0c\x42OOLEAN_LIST\x10\x0b\x12\x0c\n\x08URL_LIST\x10\x0c\x12\x12\n\x0e\x44\x41TE_TIME_LIST\x10\r\x12\t\n\x05PRICE\x10\x0e\x42\xeb\x01\n!com.google.ads.googleads.v4.enumsB\x16\x46\x65\x65\x64\x41ttributeTypeProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V4.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V4\\Enums\xea\x02!Google::Ads::GoogleAds::V4::Enumsb\x06proto3') , dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) @@ -29,7 +29,7 @@ _FEEDATTRIBUTETYPEENUM_FEEDATTRIBUTETYPE = _descriptor.EnumDescriptor( name='FeedAttributeType', - full_name='google.ads.googleads.v1.enums.FeedAttributeTypeEnum.FeedAttributeType', + full_name='google.ads.googleads.v4.enums.FeedAttributeTypeEnum.FeedAttributeType', filename=None, file=DESCRIPTOR, values=[ @@ -104,7 +104,7 @@ _FEEDATTRIBUTETYPEENUM = _descriptor.Descriptor( name='FeedAttributeTypeEnum', - full_name='google.ads.googleads.v1.enums.FeedAttributeTypeEnum', + full_name='google.ads.googleads.v4.enums.FeedAttributeTypeEnum', filename=None, file=DESCRIPTOR, containing_type=None, @@ -132,11 +132,11 @@ FeedAttributeTypeEnum = _reflection.GeneratedProtocolMessageType('FeedAttributeTypeEnum', (_message.Message,), dict( DESCRIPTOR = _FEEDATTRIBUTETYPEENUM, - __module__ = 'google.ads.googleads_v1.proto.enums.feed_attribute_type_pb2' + __module__ = 'google.ads.googleads_v4.proto.enums.feed_attribute_type_pb2' , __doc__ = """Container for enum describing possible data types for a feed attribute. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.enums.FeedAttributeTypeEnum) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.enums.FeedAttributeTypeEnum) )) _sym_db.RegisterMessage(FeedAttributeTypeEnum) diff --git a/google/ads/google_ads/v1/proto/enums/feed_link_status_pb2_grpc.py b/google/ads/google_ads/v4/proto/enums/feed_attribute_type_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/enums/feed_link_status_pb2_grpc.py rename to google/ads/google_ads/v4/proto/enums/feed_attribute_type_pb2_grpc.py diff --git a/google/ads/google_ads/v1/proto/enums/feed_item_quality_approval_status_pb2.py b/google/ads/google_ads/v4/proto/enums/feed_item_quality_approval_status_pb2.py similarity index 75% rename from google/ads/google_ads/v1/proto/enums/feed_item_quality_approval_status_pb2.py rename to google/ads/google_ads/v4/proto/enums/feed_item_quality_approval_status_pb2.py index 06a3453d7..9c5acc392 100644 --- a/google/ads/google_ads/v1/proto/enums/feed_item_quality_approval_status_pb2.py +++ b/google/ads/google_ads/v4/proto/enums/feed_item_quality_approval_status_pb2.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/enums/feed_item_quality_approval_status.proto +# source: google/ads/googleads_v4/proto/enums/feed_item_quality_approval_status.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) @@ -17,11 +17,11 @@ DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/enums/feed_item_quality_approval_status.proto', - package='google.ads.googleads.v1.enums', + name='google/ads/googleads_v4/proto/enums/feed_item_quality_approval_status.proto', + package='google.ads.googleads.v4.enums', syntax='proto3', - serialized_options=_b('\n!com.google.ads.googleads.v1.enumsB\"FeedItemQualityApprovalStatusProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v1/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V1.Enums\312\002\035Google\\Ads\\GoogleAds\\V1\\Enums\352\002!Google::Ads::GoogleAds::V1::Enums'), - serialized_pb=_b('\nKgoogle/ads/googleads_v1/proto/enums/feed_item_quality_approval_status.proto\x12\x1dgoogle.ads.googleads.v1.enums\x1a\x1cgoogle/api/annotations.proto\"\x81\x01\n!FeedItemQualityApprovalStatusEnum\"\\\n\x1d\x46\x65\x65\x64ItemQualityApprovalStatus\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0c\n\x08\x41PPROVED\x10\x02\x12\x0f\n\x0b\x44ISAPPROVED\x10\x03\x42\xf7\x01\n!com.google.ads.googleads.v1.enumsB\"FeedItemQualityApprovalStatusProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v1/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V1.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V1\\Enums\xea\x02!Google::Ads::GoogleAds::V1::Enumsb\x06proto3') + serialized_options=_b('\n!com.google.ads.googleads.v4.enumsB\"FeedItemQualityApprovalStatusProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V4.Enums\312\002\035Google\\Ads\\GoogleAds\\V4\\Enums\352\002!Google::Ads::GoogleAds::V4::Enums'), + serialized_pb=_b('\nKgoogle/ads/googleads_v4/proto/enums/feed_item_quality_approval_status.proto\x12\x1dgoogle.ads.googleads.v4.enums\x1a\x1cgoogle/api/annotations.proto\"\x81\x01\n!FeedItemQualityApprovalStatusEnum\"\\\n\x1d\x46\x65\x65\x64ItemQualityApprovalStatus\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0c\n\x08\x41PPROVED\x10\x02\x12\x0f\n\x0b\x44ISAPPROVED\x10\x03\x42\xf7\x01\n!com.google.ads.googleads.v4.enumsB\"FeedItemQualityApprovalStatusProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V4.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V4\\Enums\xea\x02!Google::Ads::GoogleAds::V4::Enumsb\x06proto3') , dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) @@ -29,7 +29,7 @@ _FEEDITEMQUALITYAPPROVALSTATUSENUM_FEEDITEMQUALITYAPPROVALSTATUS = _descriptor.EnumDescriptor( name='FeedItemQualityApprovalStatus', - full_name='google.ads.googleads.v1.enums.FeedItemQualityApprovalStatusEnum.FeedItemQualityApprovalStatus', + full_name='google.ads.googleads.v4.enums.FeedItemQualityApprovalStatusEnum.FeedItemQualityApprovalStatus', filename=None, file=DESCRIPTOR, values=[ @@ -60,7 +60,7 @@ _FEEDITEMQUALITYAPPROVALSTATUSENUM = _descriptor.Descriptor( name='FeedItemQualityApprovalStatusEnum', - full_name='google.ads.googleads.v1.enums.FeedItemQualityApprovalStatusEnum', + full_name='google.ads.googleads.v4.enums.FeedItemQualityApprovalStatusEnum', filename=None, file=DESCRIPTOR, containing_type=None, @@ -88,12 +88,12 @@ FeedItemQualityApprovalStatusEnum = _reflection.GeneratedProtocolMessageType('FeedItemQualityApprovalStatusEnum', (_message.Message,), dict( DESCRIPTOR = _FEEDITEMQUALITYAPPROVALSTATUSENUM, - __module__ = 'google.ads.googleads_v1.proto.enums.feed_item_quality_approval_status_pb2' + __module__ = 'google.ads.googleads_v4.proto.enums.feed_item_quality_approval_status_pb2' , __doc__ = """Container for enum describing possible quality evaluation approval statuses of a feed item. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.enums.FeedItemQualityApprovalStatusEnum) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.enums.FeedItemQualityApprovalStatusEnum) )) _sym_db.RegisterMessage(FeedItemQualityApprovalStatusEnum) diff --git a/google/ads/google_ads/v1/proto/enums/feed_mapping_criterion_type_pb2_grpc.py b/google/ads/google_ads/v4/proto/enums/feed_item_quality_approval_status_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/enums/feed_mapping_criterion_type_pb2_grpc.py rename to google/ads/google_ads/v4/proto/enums/feed_item_quality_approval_status_pb2_grpc.py diff --git a/google/ads/google_ads/v1/proto/enums/feed_item_quality_disapproval_reason_pb2.py b/google/ads/google_ads/v4/proto/enums/feed_item_quality_disapproval_reason_pb2.py similarity index 86% rename from google/ads/google_ads/v1/proto/enums/feed_item_quality_disapproval_reason_pb2.py rename to google/ads/google_ads/v4/proto/enums/feed_item_quality_disapproval_reason_pb2.py index 5b63d41ba..0baf8014e 100644 --- a/google/ads/google_ads/v1/proto/enums/feed_item_quality_disapproval_reason_pb2.py +++ b/google/ads/google_ads/v4/proto/enums/feed_item_quality_disapproval_reason_pb2.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/enums/feed_item_quality_disapproval_reason.proto +# source: google/ads/googleads_v4/proto/enums/feed_item_quality_disapproval_reason.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) @@ -17,11 +17,11 @@ DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/enums/feed_item_quality_disapproval_reason.proto', - package='google.ads.googleads.v1.enums', + name='google/ads/googleads_v4/proto/enums/feed_item_quality_disapproval_reason.proto', + package='google.ads.googleads.v4.enums', syntax='proto3', - serialized_options=_b('\n!com.google.ads.googleads.v1.enumsB%FeedItemQualityDisapprovalReasonProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v1/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V1.Enums\312\002\035Google\\Ads\\GoogleAds\\V1\\Enums\352\002!Google::Ads::GoogleAds::V1::Enums'), - serialized_pb=_b('\nNgoogle/ads/googleads_v1/proto/enums/feed_item_quality_disapproval_reason.proto\x12\x1dgoogle.ads.googleads.v1.enums\x1a\x1cgoogle/api/annotations.proto\"\xe0\x06\n$FeedItemQualityDisapprovalReasonEnum\"\xb7\x06\n FeedItemQualityDisapprovalReason\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\"\n\x1ePRICE_TABLE_REPETITIVE_HEADERS\x10\x02\x12&\n\"PRICE_TABLE_REPETITIVE_DESCRIPTION\x10\x03\x12!\n\x1dPRICE_TABLE_INCONSISTENT_ROWS\x10\x04\x12*\n&PRICE_DESCRIPTION_HAS_PRICE_QUALIFIERS\x10\x05\x12\x1e\n\x1aPRICE_UNSUPPORTED_LANGUAGE\x10\x06\x12.\n*PRICE_TABLE_ROW_HEADER_TABLE_TYPE_MISMATCH\x10\x07\x12/\n+PRICE_TABLE_ROW_HEADER_HAS_PROMOTIONAL_TEXT\x10\x08\x12,\n(PRICE_TABLE_ROW_DESCRIPTION_NOT_RELEVANT\x10\t\x12\x34\n0PRICE_TABLE_ROW_DESCRIPTION_HAS_PROMOTIONAL_TEXT\x10\n\x12\x31\n-PRICE_TABLE_ROW_HEADER_DESCRIPTION_REPETITIVE\x10\x0b\x12\x1e\n\x1aPRICE_TABLE_ROW_UNRATEABLE\x10\x0c\x12!\n\x1dPRICE_TABLE_ROW_PRICE_INVALID\x10\r\x12\x1f\n\x1bPRICE_TABLE_ROW_URL_INVALID\x10\x0e\x12)\n%PRICE_HEADER_OR_DESCRIPTION_HAS_PRICE\x10\x0f\x12.\n*STRUCTURED_SNIPPETS_HEADER_POLICY_VIOLATED\x10\x10\x12\'\n#STRUCTURED_SNIPPETS_REPEATED_VALUES\x10\x11\x12,\n(STRUCTURED_SNIPPETS_EDITORIAL_GUIDELINES\x10\x12\x12,\n(STRUCTURED_SNIPPETS_HAS_PROMOTIONAL_TEXT\x10\x13\x42\xfa\x01\n!com.google.ads.googleads.v1.enumsB%FeedItemQualityDisapprovalReasonProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v1/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V1.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V1\\Enums\xea\x02!Google::Ads::GoogleAds::V1::Enumsb\x06proto3') + serialized_options=_b('\n!com.google.ads.googleads.v4.enumsB%FeedItemQualityDisapprovalReasonProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V4.Enums\312\002\035Google\\Ads\\GoogleAds\\V4\\Enums\352\002!Google::Ads::GoogleAds::V4::Enums'), + serialized_pb=_b('\nNgoogle/ads/googleads_v4/proto/enums/feed_item_quality_disapproval_reason.proto\x12\x1dgoogle.ads.googleads.v4.enums\x1a\x1cgoogle/api/annotations.proto\"\xe0\x06\n$FeedItemQualityDisapprovalReasonEnum\"\xb7\x06\n FeedItemQualityDisapprovalReason\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\"\n\x1ePRICE_TABLE_REPETITIVE_HEADERS\x10\x02\x12&\n\"PRICE_TABLE_REPETITIVE_DESCRIPTION\x10\x03\x12!\n\x1dPRICE_TABLE_INCONSISTENT_ROWS\x10\x04\x12*\n&PRICE_DESCRIPTION_HAS_PRICE_QUALIFIERS\x10\x05\x12\x1e\n\x1aPRICE_UNSUPPORTED_LANGUAGE\x10\x06\x12.\n*PRICE_TABLE_ROW_HEADER_TABLE_TYPE_MISMATCH\x10\x07\x12/\n+PRICE_TABLE_ROW_HEADER_HAS_PROMOTIONAL_TEXT\x10\x08\x12,\n(PRICE_TABLE_ROW_DESCRIPTION_NOT_RELEVANT\x10\t\x12\x34\n0PRICE_TABLE_ROW_DESCRIPTION_HAS_PROMOTIONAL_TEXT\x10\n\x12\x31\n-PRICE_TABLE_ROW_HEADER_DESCRIPTION_REPETITIVE\x10\x0b\x12\x1e\n\x1aPRICE_TABLE_ROW_UNRATEABLE\x10\x0c\x12!\n\x1dPRICE_TABLE_ROW_PRICE_INVALID\x10\r\x12\x1f\n\x1bPRICE_TABLE_ROW_URL_INVALID\x10\x0e\x12)\n%PRICE_HEADER_OR_DESCRIPTION_HAS_PRICE\x10\x0f\x12.\n*STRUCTURED_SNIPPETS_HEADER_POLICY_VIOLATED\x10\x10\x12\'\n#STRUCTURED_SNIPPETS_REPEATED_VALUES\x10\x11\x12,\n(STRUCTURED_SNIPPETS_EDITORIAL_GUIDELINES\x10\x12\x12,\n(STRUCTURED_SNIPPETS_HAS_PROMOTIONAL_TEXT\x10\x13\x42\xfa\x01\n!com.google.ads.googleads.v4.enumsB%FeedItemQualityDisapprovalReasonProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V4.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V4\\Enums\xea\x02!Google::Ads::GoogleAds::V4::Enumsb\x06proto3') , dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) @@ -29,7 +29,7 @@ _FEEDITEMQUALITYDISAPPROVALREASONENUM_FEEDITEMQUALITYDISAPPROVALREASON = _descriptor.EnumDescriptor( name='FeedItemQualityDisapprovalReason', - full_name='google.ads.googleads.v1.enums.FeedItemQualityDisapprovalReasonEnum.FeedItemQualityDisapprovalReason', + full_name='google.ads.googleads.v4.enums.FeedItemQualityDisapprovalReasonEnum.FeedItemQualityDisapprovalReason', filename=None, file=DESCRIPTOR, values=[ @@ -124,7 +124,7 @@ _FEEDITEMQUALITYDISAPPROVALREASONENUM = _descriptor.Descriptor( name='FeedItemQualityDisapprovalReasonEnum', - full_name='google.ads.googleads.v1.enums.FeedItemQualityDisapprovalReasonEnum', + full_name='google.ads.googleads.v4.enums.FeedItemQualityDisapprovalReasonEnum', filename=None, file=DESCRIPTOR, containing_type=None, @@ -152,12 +152,12 @@ FeedItemQualityDisapprovalReasonEnum = _reflection.GeneratedProtocolMessageType('FeedItemQualityDisapprovalReasonEnum', (_message.Message,), dict( DESCRIPTOR = _FEEDITEMQUALITYDISAPPROVALREASONENUM, - __module__ = 'google.ads.googleads_v1.proto.enums.feed_item_quality_disapproval_reason_pb2' + __module__ = 'google.ads.googleads_v4.proto.enums.feed_item_quality_disapproval_reason_pb2' , __doc__ = """Container for enum describing possible quality evaluation disapproval reasons of a feed item. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.enums.FeedItemQualityDisapprovalReasonEnum) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.enums.FeedItemQualityDisapprovalReasonEnum) )) _sym_db.RegisterMessage(FeedItemQualityDisapprovalReasonEnum) diff --git a/google/ads/google_ads/v1/proto/enums/feed_mapping_status_pb2_grpc.py b/google/ads/google_ads/v4/proto/enums/feed_item_quality_disapproval_reason_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/enums/feed_mapping_status_pb2_grpc.py rename to google/ads/google_ads/v4/proto/enums/feed_item_quality_disapproval_reason_pb2_grpc.py diff --git a/google/ads/google_ads/v4/proto/enums/feed_item_status_pb2.py b/google/ads/google_ads/v4/proto/enums/feed_item_status_pb2.py new file mode 100644 index 000000000..297475cbe --- /dev/null +++ b/google/ads/google_ads/v4/proto/enums/feed_item_status_pb2.py @@ -0,0 +1,101 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/enums/feed_item_status.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/enums/feed_item_status.proto', + package='google.ads.googleads.v4.enums', + syntax='proto3', + serialized_options=_b('\n!com.google.ads.googleads.v4.enumsB\023FeedItemStatusProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V4.Enums\312\002\035Google\\Ads\\GoogleAds\\V4\\Enums\352\002!Google::Ads::GoogleAds::V4::Enums'), + serialized_pb=_b('\n:google/ads/googleads_v4/proto/enums/feed_item_status.proto\x12\x1dgoogle.ads.googleads.v4.enums\x1a\x1cgoogle/api/annotations.proto\"^\n\x12\x46\x65\x65\x64ItemStatusEnum\"H\n\x0e\x46\x65\x65\x64ItemStatus\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0b\n\x07\x45NABLED\x10\x02\x12\x0b\n\x07REMOVED\x10\x03\x42\xe8\x01\n!com.google.ads.googleads.v4.enumsB\x13\x46\x65\x65\x64ItemStatusProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V4.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V4\\Enums\xea\x02!Google::Ads::GoogleAds::V4::Enumsb\x06proto3') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_FEEDITEMSTATUSENUM_FEEDITEMSTATUS = _descriptor.EnumDescriptor( + name='FeedItemStatus', + full_name='google.ads.googleads.v4.enums.FeedItemStatusEnum.FeedItemStatus', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='UNSPECIFIED', index=0, number=0, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='UNKNOWN', index=1, number=1, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='ENABLED', index=2, number=2, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='REMOVED', index=3, number=3, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=145, + serialized_end=217, +) +_sym_db.RegisterEnumDescriptor(_FEEDITEMSTATUSENUM_FEEDITEMSTATUS) + + +_FEEDITEMSTATUSENUM = _descriptor.Descriptor( + name='FeedItemStatusEnum', + full_name='google.ads.googleads.v4.enums.FeedItemStatusEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _FEEDITEMSTATUSENUM_FEEDITEMSTATUS, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=123, + serialized_end=217, +) + +_FEEDITEMSTATUSENUM_FEEDITEMSTATUS.containing_type = _FEEDITEMSTATUSENUM +DESCRIPTOR.message_types_by_name['FeedItemStatusEnum'] = _FEEDITEMSTATUSENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +FeedItemStatusEnum = _reflection.GeneratedProtocolMessageType('FeedItemStatusEnum', (_message.Message,), dict( + DESCRIPTOR = _FEEDITEMSTATUSENUM, + __module__ = 'google.ads.googleads_v4.proto.enums.feed_item_status_pb2' + , + __doc__ = """Container for enum describing possible statuses of a feed item. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.enums.FeedItemStatusEnum) + )) +_sym_db.RegisterMessage(FeedItemStatusEnum) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/enums/feed_origin_pb2_grpc.py b/google/ads/google_ads/v4/proto/enums/feed_item_status_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/enums/feed_origin_pb2_grpc.py rename to google/ads/google_ads/v4/proto/enums/feed_item_status_pb2_grpc.py diff --git a/google/ads/google_ads/v4/proto/enums/feed_item_target_device_pb2.py b/google/ads/google_ads/v4/proto/enums/feed_item_target_device_pb2.py new file mode 100644 index 000000000..613f8a0bb --- /dev/null +++ b/google/ads/google_ads/v4/proto/enums/feed_item_target_device_pb2.py @@ -0,0 +1,98 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/enums/feed_item_target_device.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/enums/feed_item_target_device.proto', + package='google.ads.googleads.v4.enums', + syntax='proto3', + serialized_options=_b('\n!com.google.ads.googleads.v4.enumsB\031FeedItemTargetDeviceProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V4.Enums\312\002\035Google\\Ads\\GoogleAds\\V4\\Enums\352\002!Google::Ads::GoogleAds::V4::Enums'), + serialized_pb=_b('\nAgoogle/ads/googleads_v4/proto/enums/feed_item_target_device.proto\x12\x1dgoogle.ads.googleads.v4.enums\x1a\x1cgoogle/api/annotations.proto\"\\\n\x18\x46\x65\x65\x64ItemTargetDeviceEnum\"@\n\x14\x46\x65\x65\x64ItemTargetDevice\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\n\n\x06MOBILE\x10\x02\x42\xee\x01\n!com.google.ads.googleads.v4.enumsB\x19\x46\x65\x65\x64ItemTargetDeviceProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V4.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V4\\Enums\xea\x02!Google::Ads::GoogleAds::V4::Enumsb\x06proto3') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_FEEDITEMTARGETDEVICEENUM_FEEDITEMTARGETDEVICE = _descriptor.EnumDescriptor( + name='FeedItemTargetDevice', + full_name='google.ads.googleads.v4.enums.FeedItemTargetDeviceEnum.FeedItemTargetDevice', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='UNSPECIFIED', index=0, number=0, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='UNKNOWN', index=1, number=1, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='MOBILE', index=2, number=2, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=158, + serialized_end=222, +) +_sym_db.RegisterEnumDescriptor(_FEEDITEMTARGETDEVICEENUM_FEEDITEMTARGETDEVICE) + + +_FEEDITEMTARGETDEVICEENUM = _descriptor.Descriptor( + name='FeedItemTargetDeviceEnum', + full_name='google.ads.googleads.v4.enums.FeedItemTargetDeviceEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _FEEDITEMTARGETDEVICEENUM_FEEDITEMTARGETDEVICE, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=130, + serialized_end=222, +) + +_FEEDITEMTARGETDEVICEENUM_FEEDITEMTARGETDEVICE.containing_type = _FEEDITEMTARGETDEVICEENUM +DESCRIPTOR.message_types_by_name['FeedItemTargetDeviceEnum'] = _FEEDITEMTARGETDEVICEENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +FeedItemTargetDeviceEnum = _reflection.GeneratedProtocolMessageType('FeedItemTargetDeviceEnum', (_message.Message,), dict( + DESCRIPTOR = _FEEDITEMTARGETDEVICEENUM, + __module__ = 'google.ads.googleads_v4.proto.enums.feed_item_target_device_pb2' + , + __doc__ = """Container for enum describing possible data types for a feed item target + device. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.enums.FeedItemTargetDeviceEnum) + )) +_sym_db.RegisterMessage(FeedItemTargetDeviceEnum) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/enums/feed_status_pb2_grpc.py b/google/ads/google_ads/v4/proto/enums/feed_item_target_device_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/enums/feed_status_pb2_grpc.py rename to google/ads/google_ads/v4/proto/enums/feed_item_target_device_pb2_grpc.py diff --git a/google/ads/google_ads/v4/proto/enums/feed_item_target_status_pb2.py b/google/ads/google_ads/v4/proto/enums/feed_item_target_status_pb2.py new file mode 100644 index 000000000..9443400d1 --- /dev/null +++ b/google/ads/google_ads/v4/proto/enums/feed_item_target_status_pb2.py @@ -0,0 +1,101 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/enums/feed_item_target_status.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/enums/feed_item_target_status.proto', + package='google.ads.googleads.v4.enums', + syntax='proto3', + serialized_options=_b('\n!com.google.ads.googleads.v4.enumsB\031FeedItemTargetStatusProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V4.Enums\312\002\035Google\\Ads\\GoogleAds\\V4\\Enums\352\002!Google::Ads::GoogleAds::V4::Enums'), + serialized_pb=_b('\nAgoogle/ads/googleads_v4/proto/enums/feed_item_target_status.proto\x12\x1dgoogle.ads.googleads.v4.enums\x1a\x1cgoogle/api/annotations.proto\"j\n\x18\x46\x65\x65\x64ItemTargetStatusEnum\"N\n\x14\x46\x65\x65\x64ItemTargetStatus\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0b\n\x07\x45NABLED\x10\x02\x12\x0b\n\x07REMOVED\x10\x03\x42\xee\x01\n!com.google.ads.googleads.v4.enumsB\x19\x46\x65\x65\x64ItemTargetStatusProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V4.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V4\\Enums\xea\x02!Google::Ads::GoogleAds::V4::Enumsb\x06proto3') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_FEEDITEMTARGETSTATUSENUM_FEEDITEMTARGETSTATUS = _descriptor.EnumDescriptor( + name='FeedItemTargetStatus', + full_name='google.ads.googleads.v4.enums.FeedItemTargetStatusEnum.FeedItemTargetStatus', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='UNSPECIFIED', index=0, number=0, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='UNKNOWN', index=1, number=1, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='ENABLED', index=2, number=2, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='REMOVED', index=3, number=3, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=158, + serialized_end=236, +) +_sym_db.RegisterEnumDescriptor(_FEEDITEMTARGETSTATUSENUM_FEEDITEMTARGETSTATUS) + + +_FEEDITEMTARGETSTATUSENUM = _descriptor.Descriptor( + name='FeedItemTargetStatusEnum', + full_name='google.ads.googleads.v4.enums.FeedItemTargetStatusEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _FEEDITEMTARGETSTATUSENUM_FEEDITEMTARGETSTATUS, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=130, + serialized_end=236, +) + +_FEEDITEMTARGETSTATUSENUM_FEEDITEMTARGETSTATUS.containing_type = _FEEDITEMTARGETSTATUSENUM +DESCRIPTOR.message_types_by_name['FeedItemTargetStatusEnum'] = _FEEDITEMTARGETSTATUSENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +FeedItemTargetStatusEnum = _reflection.GeneratedProtocolMessageType('FeedItemTargetStatusEnum', (_message.Message,), dict( + DESCRIPTOR = _FEEDITEMTARGETSTATUSENUM, + __module__ = 'google.ads.googleads_v4.proto.enums.feed_item_target_status_pb2' + , + __doc__ = """Container for enum describing possible statuses of a feed item target. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.enums.FeedItemTargetStatusEnum) + )) +_sym_db.RegisterMessage(FeedItemTargetStatusEnum) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/enums/flight_placeholder_field_pb2_grpc.py b/google/ads/google_ads/v4/proto/enums/feed_item_target_status_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/enums/flight_placeholder_field_pb2_grpc.py rename to google/ads/google_ads/v4/proto/enums/feed_item_target_status_pb2_grpc.py diff --git a/google/ads/google_ads/v4/proto/enums/feed_item_target_type_pb2.py b/google/ads/google_ads/v4/proto/enums/feed_item_target_type_pb2.py new file mode 100644 index 000000000..06f6b2edf --- /dev/null +++ b/google/ads/google_ads/v4/proto/enums/feed_item_target_type_pb2.py @@ -0,0 +1,105 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/enums/feed_item_target_type.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/enums/feed_item_target_type.proto', + package='google.ads.googleads.v4.enums', + syntax='proto3', + serialized_options=_b('\n!com.google.ads.googleads.v4.enumsB\027FeedItemTargetTypeProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V4.Enums\312\002\035Google\\Ads\\GoogleAds\\V4\\Enums\352\002!Google::Ads::GoogleAds::V4::Enums'), + serialized_pb=_b('\n?google/ads/googleads_v4/proto/enums/feed_item_target_type.proto\x12\x1dgoogle.ads.googleads.v4.enums\x1a\x1cgoogle/api/annotations.proto\"w\n\x16\x46\x65\x65\x64ItemTargetTypeEnum\"]\n\x12\x46\x65\x65\x64ItemTargetType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0c\n\x08\x43\x41MPAIGN\x10\x02\x12\x0c\n\x08\x41\x44_GROUP\x10\x03\x12\r\n\tCRITERION\x10\x04\x42\xec\x01\n!com.google.ads.googleads.v4.enumsB\x17\x46\x65\x65\x64ItemTargetTypeProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V4.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V4\\Enums\xea\x02!Google::Ads::GoogleAds::V4::Enumsb\x06proto3') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_FEEDITEMTARGETTYPEENUM_FEEDITEMTARGETTYPE = _descriptor.EnumDescriptor( + name='FeedItemTargetType', + full_name='google.ads.googleads.v4.enums.FeedItemTargetTypeEnum.FeedItemTargetType', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='UNSPECIFIED', index=0, number=0, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='UNKNOWN', index=1, number=1, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CAMPAIGN', index=2, number=2, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='AD_GROUP', index=3, number=3, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CRITERION', index=4, number=4, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=154, + serialized_end=247, +) +_sym_db.RegisterEnumDescriptor(_FEEDITEMTARGETTYPEENUM_FEEDITEMTARGETTYPE) + + +_FEEDITEMTARGETTYPEENUM = _descriptor.Descriptor( + name='FeedItemTargetTypeEnum', + full_name='google.ads.googleads.v4.enums.FeedItemTargetTypeEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _FEEDITEMTARGETTYPEENUM_FEEDITEMTARGETTYPE, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=128, + serialized_end=247, +) + +_FEEDITEMTARGETTYPEENUM_FEEDITEMTARGETTYPE.containing_type = _FEEDITEMTARGETTYPEENUM +DESCRIPTOR.message_types_by_name['FeedItemTargetTypeEnum'] = _FEEDITEMTARGETTYPEENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +FeedItemTargetTypeEnum = _reflection.GeneratedProtocolMessageType('FeedItemTargetTypeEnum', (_message.Message,), dict( + DESCRIPTOR = _FEEDITEMTARGETTYPEENUM, + __module__ = 'google.ads.googleads_v4.proto.enums.feed_item_target_type_pb2' + , + __doc__ = """Container for enum describing possible types of a feed item target. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.enums.FeedItemTargetTypeEnum) + )) +_sym_db.RegisterMessage(FeedItemTargetTypeEnum) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/enums/frequency_cap_event_type_pb2_grpc.py b/google/ads/google_ads/v4/proto/enums/feed_item_target_type_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/enums/frequency_cap_event_type_pb2_grpc.py rename to google/ads/google_ads/v4/proto/enums/feed_item_target_type_pb2_grpc.py diff --git a/google/ads/google_ads/v1/proto/enums/feed_item_validation_status_pb2.py b/google/ads/google_ads/v4/proto/enums/feed_item_validation_status_pb2.py similarity index 75% rename from google/ads/google_ads/v1/proto/enums/feed_item_validation_status_pb2.py rename to google/ads/google_ads/v4/proto/enums/feed_item_validation_status_pb2.py index 0e1210118..5851661ea 100644 --- a/google/ads/google_ads/v1/proto/enums/feed_item_validation_status_pb2.py +++ b/google/ads/google_ads/v4/proto/enums/feed_item_validation_status_pb2.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/enums/feed_item_validation_status.proto +# source: google/ads/googleads_v4/proto/enums/feed_item_validation_status.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) @@ -17,11 +17,11 @@ DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/enums/feed_item_validation_status.proto', - package='google.ads.googleads.v1.enums', + name='google/ads/googleads_v4/proto/enums/feed_item_validation_status.proto', + package='google.ads.googleads.v4.enums', syntax='proto3', - serialized_options=_b('\n!com.google.ads.googleads.v1.enumsB\035FeedItemValidationStatusProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v1/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V1.Enums\312\002\035Google\\Ads\\GoogleAds\\V1\\Enums\352\002!Google::Ads::GoogleAds::V1::Enums'), - serialized_pb=_b('\nEgoogle/ads/googleads_v1/proto/enums/feed_item_validation_status.proto\x12\x1dgoogle.ads.googleads.v1.enums\x1a\x1cgoogle/api/annotations.proto\"}\n\x1c\x46\x65\x65\x64ItemValidationStatusEnum\"]\n\x18\x46\x65\x65\x64ItemValidationStatus\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0b\n\x07PENDING\x10\x02\x12\x0b\n\x07INVALID\x10\x03\x12\t\n\x05VALID\x10\x04\x42\xf2\x01\n!com.google.ads.googleads.v1.enumsB\x1d\x46\x65\x65\x64ItemValidationStatusProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v1/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V1.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V1\\Enums\xea\x02!Google::Ads::GoogleAds::V1::Enumsb\x06proto3') + serialized_options=_b('\n!com.google.ads.googleads.v4.enumsB\035FeedItemValidationStatusProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V4.Enums\312\002\035Google\\Ads\\GoogleAds\\V4\\Enums\352\002!Google::Ads::GoogleAds::V4::Enums'), + serialized_pb=_b('\nEgoogle/ads/googleads_v4/proto/enums/feed_item_validation_status.proto\x12\x1dgoogle.ads.googleads.v4.enums\x1a\x1cgoogle/api/annotations.proto\"}\n\x1c\x46\x65\x65\x64ItemValidationStatusEnum\"]\n\x18\x46\x65\x65\x64ItemValidationStatus\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0b\n\x07PENDING\x10\x02\x12\x0b\n\x07INVALID\x10\x03\x12\t\n\x05VALID\x10\x04\x42\xf2\x01\n!com.google.ads.googleads.v4.enumsB\x1d\x46\x65\x65\x64ItemValidationStatusProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V4.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V4\\Enums\xea\x02!Google::Ads::GoogleAds::V4::Enumsb\x06proto3') , dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) @@ -29,7 +29,7 @@ _FEEDITEMVALIDATIONSTATUSENUM_FEEDITEMVALIDATIONSTATUS = _descriptor.EnumDescriptor( name='FeedItemValidationStatus', - full_name='google.ads.googleads.v1.enums.FeedItemValidationStatusEnum.FeedItemValidationStatus', + full_name='google.ads.googleads.v4.enums.FeedItemValidationStatusEnum.FeedItemValidationStatus', filename=None, file=DESCRIPTOR, values=[ @@ -64,7 +64,7 @@ _FEEDITEMVALIDATIONSTATUSENUM = _descriptor.Descriptor( name='FeedItemValidationStatusEnum', - full_name='google.ads.googleads.v1.enums.FeedItemValidationStatusEnum', + full_name='google.ads.googleads.v4.enums.FeedItemValidationStatusEnum', filename=None, file=DESCRIPTOR, containing_type=None, @@ -92,12 +92,12 @@ FeedItemValidationStatusEnum = _reflection.GeneratedProtocolMessageType('FeedItemValidationStatusEnum', (_message.Message,), dict( DESCRIPTOR = _FEEDITEMVALIDATIONSTATUSENUM, - __module__ = 'google.ads.googleads_v1.proto.enums.feed_item_validation_status_pb2' + __module__ = 'google.ads.googleads_v4.proto.enums.feed_item_validation_status_pb2' , __doc__ = """Container for enum describing possible validation statuses of a feed item. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.enums.FeedItemValidationStatusEnum) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.enums.FeedItemValidationStatusEnum) )) _sym_db.RegisterMessage(FeedItemValidationStatusEnum) diff --git a/google/ads/google_ads/v1/proto/enums/frequency_cap_level_pb2_grpc.py b/google/ads/google_ads/v4/proto/enums/feed_item_validation_status_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/enums/frequency_cap_level_pb2_grpc.py rename to google/ads/google_ads/v4/proto/enums/feed_item_validation_status_pb2_grpc.py diff --git a/google/ads/google_ads/v4/proto/enums/feed_link_status_pb2.py b/google/ads/google_ads/v4/proto/enums/feed_link_status_pb2.py new file mode 100644 index 000000000..e404ab5d3 --- /dev/null +++ b/google/ads/google_ads/v4/proto/enums/feed_link_status_pb2.py @@ -0,0 +1,101 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/enums/feed_link_status.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/enums/feed_link_status.proto', + package='google.ads.googleads.v4.enums', + syntax='proto3', + serialized_options=_b('\n!com.google.ads.googleads.v4.enumsB\023FeedLinkStatusProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V4.Enums\312\002\035Google\\Ads\\GoogleAds\\V4\\Enums\352\002!Google::Ads::GoogleAds::V4::Enums'), + serialized_pb=_b('\n:google/ads/googleads_v4/proto/enums/feed_link_status.proto\x12\x1dgoogle.ads.googleads.v4.enums\x1a\x1cgoogle/api/annotations.proto\"^\n\x12\x46\x65\x65\x64LinkStatusEnum\"H\n\x0e\x46\x65\x65\x64LinkStatus\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0b\n\x07\x45NABLED\x10\x02\x12\x0b\n\x07REMOVED\x10\x03\x42\xe8\x01\n!com.google.ads.googleads.v4.enumsB\x13\x46\x65\x65\x64LinkStatusProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V4.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V4\\Enums\xea\x02!Google::Ads::GoogleAds::V4::Enumsb\x06proto3') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_FEEDLINKSTATUSENUM_FEEDLINKSTATUS = _descriptor.EnumDescriptor( + name='FeedLinkStatus', + full_name='google.ads.googleads.v4.enums.FeedLinkStatusEnum.FeedLinkStatus', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='UNSPECIFIED', index=0, number=0, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='UNKNOWN', index=1, number=1, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='ENABLED', index=2, number=2, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='REMOVED', index=3, number=3, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=145, + serialized_end=217, +) +_sym_db.RegisterEnumDescriptor(_FEEDLINKSTATUSENUM_FEEDLINKSTATUS) + + +_FEEDLINKSTATUSENUM = _descriptor.Descriptor( + name='FeedLinkStatusEnum', + full_name='google.ads.googleads.v4.enums.FeedLinkStatusEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _FEEDLINKSTATUSENUM_FEEDLINKSTATUS, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=123, + serialized_end=217, +) + +_FEEDLINKSTATUSENUM_FEEDLINKSTATUS.containing_type = _FEEDLINKSTATUSENUM +DESCRIPTOR.message_types_by_name['FeedLinkStatusEnum'] = _FEEDLINKSTATUSENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +FeedLinkStatusEnum = _reflection.GeneratedProtocolMessageType('FeedLinkStatusEnum', (_message.Message,), dict( + DESCRIPTOR = _FEEDLINKSTATUSENUM, + __module__ = 'google.ads.googleads_v4.proto.enums.feed_link_status_pb2' + , + __doc__ = """Container for an enum describing possible statuses of a feed link. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.enums.FeedLinkStatusEnum) + )) +_sym_db.RegisterMessage(FeedLinkStatusEnum) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/enums/frequency_cap_time_unit_pb2_grpc.py b/google/ads/google_ads/v4/proto/enums/feed_link_status_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/enums/frequency_cap_time_unit_pb2_grpc.py rename to google/ads/google_ads/v4/proto/enums/feed_link_status_pb2_grpc.py diff --git a/google/ads/google_ads/v4/proto/enums/feed_mapping_criterion_type_pb2.py b/google/ads/google_ads/v4/proto/enums/feed_mapping_criterion_type_pb2.py new file mode 100644 index 000000000..c1a1f3231 --- /dev/null +++ b/google/ads/google_ads/v4/proto/enums/feed_mapping_criterion_type_pb2.py @@ -0,0 +1,102 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/enums/feed_mapping_criterion_type.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/enums/feed_mapping_criterion_type.proto', + package='google.ads.googleads.v4.enums', + syntax='proto3', + serialized_options=_b('\n!com.google.ads.googleads.v4.enumsB\035FeedMappingCriterionTypeProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V4.Enums\312\002\035Google\\Ads\\GoogleAds\\V4\\Enums\352\002!Google::Ads::GoogleAds::V4::Enums'), + serialized_pb=_b('\nEgoogle/ads/googleads_v4/proto/enums/feed_mapping_criterion_type.proto\x12\x1dgoogle.ads.googleads.v4.enums\x1a\x1cgoogle/api/annotations.proto\"\x8d\x01\n\x1c\x46\x65\x65\x64MappingCriterionTypeEnum\"m\n\x18\x46\x65\x65\x64MappingCriterionType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12 \n\x1cLOCATION_EXTENSION_TARGETING\x10\x04\x12\x11\n\rDSA_PAGE_FEED\x10\x03\x42\xf2\x01\n!com.google.ads.googleads.v4.enumsB\x1d\x46\x65\x65\x64MappingCriterionTypeProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V4.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V4\\Enums\xea\x02!Google::Ads::GoogleAds::V4::Enumsb\x06proto3') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_FEEDMAPPINGCRITERIONTYPEENUM_FEEDMAPPINGCRITERIONTYPE = _descriptor.EnumDescriptor( + name='FeedMappingCriterionType', + full_name='google.ads.googleads.v4.enums.FeedMappingCriterionTypeEnum.FeedMappingCriterionType', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='UNSPECIFIED', index=0, number=0, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='UNKNOWN', index=1, number=1, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='LOCATION_EXTENSION_TARGETING', index=2, number=4, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='DSA_PAGE_FEED', index=3, number=3, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=167, + serialized_end=276, +) +_sym_db.RegisterEnumDescriptor(_FEEDMAPPINGCRITERIONTYPEENUM_FEEDMAPPINGCRITERIONTYPE) + + +_FEEDMAPPINGCRITERIONTYPEENUM = _descriptor.Descriptor( + name='FeedMappingCriterionTypeEnum', + full_name='google.ads.googleads.v4.enums.FeedMappingCriterionTypeEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _FEEDMAPPINGCRITERIONTYPEENUM_FEEDMAPPINGCRITERIONTYPE, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=135, + serialized_end=276, +) + +_FEEDMAPPINGCRITERIONTYPEENUM_FEEDMAPPINGCRITERIONTYPE.containing_type = _FEEDMAPPINGCRITERIONTYPEENUM +DESCRIPTOR.message_types_by_name['FeedMappingCriterionTypeEnum'] = _FEEDMAPPINGCRITERIONTYPEENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +FeedMappingCriterionTypeEnum = _reflection.GeneratedProtocolMessageType('FeedMappingCriterionTypeEnum', (_message.Message,), dict( + DESCRIPTOR = _FEEDMAPPINGCRITERIONTYPEENUM, + __module__ = 'google.ads.googleads_v4.proto.enums.feed_mapping_criterion_type_pb2' + , + __doc__ = """Container for enum describing possible criterion types for a feed + mapping. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.enums.FeedMappingCriterionTypeEnum) + )) +_sym_db.RegisterMessage(FeedMappingCriterionTypeEnum) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/enums/gender_type_pb2_grpc.py b/google/ads/google_ads/v4/proto/enums/feed_mapping_criterion_type_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/enums/gender_type_pb2_grpc.py rename to google/ads/google_ads/v4/proto/enums/feed_mapping_criterion_type_pb2_grpc.py diff --git a/google/ads/google_ads/v4/proto/enums/feed_mapping_status_pb2.py b/google/ads/google_ads/v4/proto/enums/feed_mapping_status_pb2.py new file mode 100644 index 000000000..782d2d706 --- /dev/null +++ b/google/ads/google_ads/v4/proto/enums/feed_mapping_status_pb2.py @@ -0,0 +1,101 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/enums/feed_mapping_status.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/enums/feed_mapping_status.proto', + package='google.ads.googleads.v4.enums', + syntax='proto3', + serialized_options=_b('\n!com.google.ads.googleads.v4.enumsB\026FeedMappingStatusProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V4.Enums\312\002\035Google\\Ads\\GoogleAds\\V4\\Enums\352\002!Google::Ads::GoogleAds::V4::Enums'), + serialized_pb=_b('\n=google/ads/googleads_v4/proto/enums/feed_mapping_status.proto\x12\x1dgoogle.ads.googleads.v4.enums\x1a\x1cgoogle/api/annotations.proto\"d\n\x15\x46\x65\x65\x64MappingStatusEnum\"K\n\x11\x46\x65\x65\x64MappingStatus\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0b\n\x07\x45NABLED\x10\x02\x12\x0b\n\x07REMOVED\x10\x03\x42\xeb\x01\n!com.google.ads.googleads.v4.enumsB\x16\x46\x65\x65\x64MappingStatusProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V4.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V4\\Enums\xea\x02!Google::Ads::GoogleAds::V4::Enumsb\x06proto3') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_FEEDMAPPINGSTATUSENUM_FEEDMAPPINGSTATUS = _descriptor.EnumDescriptor( + name='FeedMappingStatus', + full_name='google.ads.googleads.v4.enums.FeedMappingStatusEnum.FeedMappingStatus', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='UNSPECIFIED', index=0, number=0, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='UNKNOWN', index=1, number=1, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='ENABLED', index=2, number=2, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='REMOVED', index=3, number=3, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=151, + serialized_end=226, +) +_sym_db.RegisterEnumDescriptor(_FEEDMAPPINGSTATUSENUM_FEEDMAPPINGSTATUS) + + +_FEEDMAPPINGSTATUSENUM = _descriptor.Descriptor( + name='FeedMappingStatusEnum', + full_name='google.ads.googleads.v4.enums.FeedMappingStatusEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _FEEDMAPPINGSTATUSENUM_FEEDMAPPINGSTATUS, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=126, + serialized_end=226, +) + +_FEEDMAPPINGSTATUSENUM_FEEDMAPPINGSTATUS.containing_type = _FEEDMAPPINGSTATUSENUM +DESCRIPTOR.message_types_by_name['FeedMappingStatusEnum'] = _FEEDMAPPINGSTATUSENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +FeedMappingStatusEnum = _reflection.GeneratedProtocolMessageType('FeedMappingStatusEnum', (_message.Message,), dict( + DESCRIPTOR = _FEEDMAPPINGSTATUSENUM, + __module__ = 'google.ads.googleads_v4.proto.enums.feed_mapping_status_pb2' + , + __doc__ = """Container for enum describing possible statuses of a feed mapping. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.enums.FeedMappingStatusEnum) + )) +_sym_db.RegisterMessage(FeedMappingStatusEnum) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/enums/geo_target_constant_status_pb2_grpc.py b/google/ads/google_ads/v4/proto/enums/feed_mapping_status_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/enums/geo_target_constant_status_pb2_grpc.py rename to google/ads/google_ads/v4/proto/enums/feed_mapping_status_pb2_grpc.py diff --git a/google/ads/google_ads/v4/proto/enums/feed_origin_pb2.py b/google/ads/google_ads/v4/proto/enums/feed_origin_pb2.py new file mode 100644 index 000000000..65cf5079d --- /dev/null +++ b/google/ads/google_ads/v4/proto/enums/feed_origin_pb2.py @@ -0,0 +1,101 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/enums/feed_origin.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/enums/feed_origin.proto', + package='google.ads.googleads.v4.enums', + syntax='proto3', + serialized_options=_b('\n!com.google.ads.googleads.v4.enumsB\017FeedOriginProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V4.Enums\312\002\035Google\\Ads\\GoogleAds\\V4\\Enums\352\002!Google::Ads::GoogleAds::V4::Enums'), + serialized_pb=_b('\n5google/ads/googleads_v4/proto/enums/feed_origin.proto\x12\x1dgoogle.ads.googleads.v4.enums\x1a\x1cgoogle/api/annotations.proto\"R\n\x0e\x46\x65\x65\x64OriginEnum\"@\n\nFeedOrigin\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x08\n\x04USER\x10\x02\x12\n\n\x06GOOGLE\x10\x03\x42\xe4\x01\n!com.google.ads.googleads.v4.enumsB\x0f\x46\x65\x65\x64OriginProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V4.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V4\\Enums\xea\x02!Google::Ads::GoogleAds::V4::Enumsb\x06proto3') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_FEEDORIGINENUM_FEEDORIGIN = _descriptor.EnumDescriptor( + name='FeedOrigin', + full_name='google.ads.googleads.v4.enums.FeedOriginEnum.FeedOrigin', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='UNSPECIFIED', index=0, number=0, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='UNKNOWN', index=1, number=1, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='USER', index=2, number=2, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='GOOGLE', index=3, number=3, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=136, + serialized_end=200, +) +_sym_db.RegisterEnumDescriptor(_FEEDORIGINENUM_FEEDORIGIN) + + +_FEEDORIGINENUM = _descriptor.Descriptor( + name='FeedOriginEnum', + full_name='google.ads.googleads.v4.enums.FeedOriginEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _FEEDORIGINENUM_FEEDORIGIN, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=118, + serialized_end=200, +) + +_FEEDORIGINENUM_FEEDORIGIN.containing_type = _FEEDORIGINENUM +DESCRIPTOR.message_types_by_name['FeedOriginEnum'] = _FEEDORIGINENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +FeedOriginEnum = _reflection.GeneratedProtocolMessageType('FeedOriginEnum', (_message.Message,), dict( + DESCRIPTOR = _FEEDORIGINENUM, + __module__ = 'google.ads.googleads_v4.proto.enums.feed_origin_pb2' + , + __doc__ = """Container for enum describing possible values for a feed origin. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.enums.FeedOriginEnum) + )) +_sym_db.RegisterMessage(FeedOriginEnum) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/enums/geo_targeting_restriction_pb2_grpc.py b/google/ads/google_ads/v4/proto/enums/feed_origin_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/enums/geo_targeting_restriction_pb2_grpc.py rename to google/ads/google_ads/v4/proto/enums/feed_origin_pb2_grpc.py diff --git a/google/ads/google_ads/v4/proto/enums/feed_status_pb2.py b/google/ads/google_ads/v4/proto/enums/feed_status_pb2.py new file mode 100644 index 000000000..e9d9e4d6c --- /dev/null +++ b/google/ads/google_ads/v4/proto/enums/feed_status_pb2.py @@ -0,0 +1,101 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/enums/feed_status.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/enums/feed_status.proto', + package='google.ads.googleads.v4.enums', + syntax='proto3', + serialized_options=_b('\n!com.google.ads.googleads.v4.enumsB\017FeedStatusProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V4.Enums\312\002\035Google\\Ads\\GoogleAds\\V4\\Enums\352\002!Google::Ads::GoogleAds::V4::Enums'), + serialized_pb=_b('\n5google/ads/googleads_v4/proto/enums/feed_status.proto\x12\x1dgoogle.ads.googleads.v4.enums\x1a\x1cgoogle/api/annotations.proto\"V\n\x0e\x46\x65\x65\x64StatusEnum\"D\n\nFeedStatus\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0b\n\x07\x45NABLED\x10\x02\x12\x0b\n\x07REMOVED\x10\x03\x42\xe4\x01\n!com.google.ads.googleads.v4.enumsB\x0f\x46\x65\x65\x64StatusProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V4.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V4\\Enums\xea\x02!Google::Ads::GoogleAds::V4::Enumsb\x06proto3') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_FEEDSTATUSENUM_FEEDSTATUS = _descriptor.EnumDescriptor( + name='FeedStatus', + full_name='google.ads.googleads.v4.enums.FeedStatusEnum.FeedStatus', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='UNSPECIFIED', index=0, number=0, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='UNKNOWN', index=1, number=1, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='ENABLED', index=2, number=2, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='REMOVED', index=3, number=3, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=136, + serialized_end=204, +) +_sym_db.RegisterEnumDescriptor(_FEEDSTATUSENUM_FEEDSTATUS) + + +_FEEDSTATUSENUM = _descriptor.Descriptor( + name='FeedStatusEnum', + full_name='google.ads.googleads.v4.enums.FeedStatusEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _FEEDSTATUSENUM_FEEDSTATUS, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=118, + serialized_end=204, +) + +_FEEDSTATUSENUM_FEEDSTATUS.containing_type = _FEEDSTATUSENUM +DESCRIPTOR.message_types_by_name['FeedStatusEnum'] = _FEEDSTATUSENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +FeedStatusEnum = _reflection.GeneratedProtocolMessageType('FeedStatusEnum', (_message.Message,), dict( + DESCRIPTOR = _FEEDSTATUSENUM, + __module__ = 'google.ads.googleads_v4.proto.enums.feed_status_pb2' + , + __doc__ = """Container for enum describing possible statuses of a feed. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.enums.FeedStatusEnum) + )) +_sym_db.RegisterMessage(FeedStatusEnum) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/enums/geo_targeting_type_pb2_grpc.py b/google/ads/google_ads/v4/proto/enums/feed_status_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/enums/geo_targeting_type_pb2_grpc.py rename to google/ads/google_ads/v4/proto/enums/feed_status_pb2_grpc.py diff --git a/google/ads/google_ads/v1/proto/enums/flight_placeholder_field_pb2.py b/google/ads/google_ads/v4/proto/enums/flight_placeholder_field_pb2.py similarity index 84% rename from google/ads/google_ads/v1/proto/enums/flight_placeholder_field_pb2.py rename to google/ads/google_ads/v4/proto/enums/flight_placeholder_field_pb2.py index 105cbda09..2c219f26b 100644 --- a/google/ads/google_ads/v1/proto/enums/flight_placeholder_field_pb2.py +++ b/google/ads/google_ads/v4/proto/enums/flight_placeholder_field_pb2.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/enums/flight_placeholder_field.proto +# source: google/ads/googleads_v4/proto/enums/flight_placeholder_field.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) @@ -17,11 +17,11 @@ DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/enums/flight_placeholder_field.proto', - package='google.ads.googleads.v1.enums', + name='google/ads/googleads_v4/proto/enums/flight_placeholder_field.proto', + package='google.ads.googleads.v4.enums', syntax='proto3', - serialized_options=_b('\n!com.google.ads.googleads.v1.enumsB\034FlightsPlaceholderFieldProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v1/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V1.Enums\312\002\035Google\\Ads\\GoogleAds\\V1\\Enums\352\002!Google::Ads::GoogleAds::V1::Enums'), - serialized_pb=_b('\nBgoogle/ads/googleads_v1/proto/enums/flight_placeholder_field.proto\x12\x1dgoogle.ads.googleads.v1.enums\x1a\x1cgoogle/api/annotations.proto\"\xb2\x03\n\x1a\x46lightPlaceholderFieldEnum\"\x93\x03\n\x16\x46lightPlaceholderField\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x12\n\x0e\x44\x45STINATION_ID\x10\x02\x12\r\n\tORIGIN_ID\x10\x03\x12\x16\n\x12\x46LIGHT_DESCRIPTION\x10\x04\x12\x0f\n\x0bORIGIN_NAME\x10\x05\x12\x14\n\x10\x44\x45STINATION_NAME\x10\x06\x12\x10\n\x0c\x46LIGHT_PRICE\x10\x07\x12\x13\n\x0f\x46ORMATTED_PRICE\x10\x08\x12\x15\n\x11\x46LIGHT_SALE_PRICE\x10\t\x12\x18\n\x14\x46ORMATTED_SALE_PRICE\x10\n\x12\r\n\tIMAGE_URL\x10\x0b\x12\x0e\n\nFINAL_URLS\x10\x0c\x12\x15\n\x11\x46INAL_MOBILE_URLS\x10\r\x12\x10\n\x0cTRACKING_URL\x10\x0e\x12\x14\n\x10\x41NDROID_APP_LINK\x10\x0f\x12\x1b\n\x17SIMILAR_DESTINATION_IDS\x10\x10\x12\x10\n\x0cIOS_APP_LINK\x10\x11\x12\x14\n\x10IOS_APP_STORE_ID\x10\x12\x42\xf1\x01\n!com.google.ads.googleads.v1.enumsB\x1c\x46lightsPlaceholderFieldProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v1/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V1.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V1\\Enums\xea\x02!Google::Ads::GoogleAds::V1::Enumsb\x06proto3') + serialized_options=_b('\n!com.google.ads.googleads.v4.enumsB\034FlightsPlaceholderFieldProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V4.Enums\312\002\035Google\\Ads\\GoogleAds\\V4\\Enums\352\002!Google::Ads::GoogleAds::V4::Enums'), + serialized_pb=_b('\nBgoogle/ads/googleads_v4/proto/enums/flight_placeholder_field.proto\x12\x1dgoogle.ads.googleads.v4.enums\x1a\x1cgoogle/api/annotations.proto\"\xb2\x03\n\x1a\x46lightPlaceholderFieldEnum\"\x93\x03\n\x16\x46lightPlaceholderField\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x12\n\x0e\x44\x45STINATION_ID\x10\x02\x12\r\n\tORIGIN_ID\x10\x03\x12\x16\n\x12\x46LIGHT_DESCRIPTION\x10\x04\x12\x0f\n\x0bORIGIN_NAME\x10\x05\x12\x14\n\x10\x44\x45STINATION_NAME\x10\x06\x12\x10\n\x0c\x46LIGHT_PRICE\x10\x07\x12\x13\n\x0f\x46ORMATTED_PRICE\x10\x08\x12\x15\n\x11\x46LIGHT_SALE_PRICE\x10\t\x12\x18\n\x14\x46ORMATTED_SALE_PRICE\x10\n\x12\r\n\tIMAGE_URL\x10\x0b\x12\x0e\n\nFINAL_URLS\x10\x0c\x12\x15\n\x11\x46INAL_MOBILE_URLS\x10\r\x12\x10\n\x0cTRACKING_URL\x10\x0e\x12\x14\n\x10\x41NDROID_APP_LINK\x10\x0f\x12\x1b\n\x17SIMILAR_DESTINATION_IDS\x10\x10\x12\x10\n\x0cIOS_APP_LINK\x10\x11\x12\x14\n\x10IOS_APP_STORE_ID\x10\x12\x42\xf1\x01\n!com.google.ads.googleads.v4.enumsB\x1c\x46lightsPlaceholderFieldProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V4.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V4\\Enums\xea\x02!Google::Ads::GoogleAds::V4::Enumsb\x06proto3') , dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) @@ -29,7 +29,7 @@ _FLIGHTPLACEHOLDERFIELDENUM_FLIGHTPLACEHOLDERFIELD = _descriptor.EnumDescriptor( name='FlightPlaceholderField', - full_name='google.ads.googleads.v1.enums.FlightPlaceholderFieldEnum.FlightPlaceholderField', + full_name='google.ads.googleads.v4.enums.FlightPlaceholderFieldEnum.FlightPlaceholderField', filename=None, file=DESCRIPTOR, values=[ @@ -120,7 +120,7 @@ _FLIGHTPLACEHOLDERFIELDENUM = _descriptor.Descriptor( name='FlightPlaceholderFieldEnum', - full_name='google.ads.googleads.v1.enums.FlightPlaceholderFieldEnum', + full_name='google.ads.googleads.v4.enums.FlightPlaceholderFieldEnum', filename=None, file=DESCRIPTOR, containing_type=None, @@ -148,13 +148,13 @@ FlightPlaceholderFieldEnum = _reflection.GeneratedProtocolMessageType('FlightPlaceholderFieldEnum', (_message.Message,), dict( DESCRIPTOR = _FLIGHTPLACEHOLDERFIELDENUM, - __module__ = 'google.ads.googleads_v1.proto.enums.flight_placeholder_field_pb2' + __module__ = 'google.ads.googleads_v4.proto.enums.flight_placeholder_field_pb2' , __doc__ = """Values for Flight placeholder fields. For more information about dynamic remarketing feeds, see https://support.google.com/google-ads/answer/6053288. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.enums.FlightPlaceholderFieldEnum) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.enums.FlightPlaceholderFieldEnum) )) _sym_db.RegisterMessage(FlightPlaceholderFieldEnum) diff --git a/google/ads/google_ads/v1/proto/enums/google_ads_field_category_pb2_grpc.py b/google/ads/google_ads/v4/proto/enums/flight_placeholder_field_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/enums/google_ads_field_category_pb2_grpc.py rename to google/ads/google_ads/v4/proto/enums/flight_placeholder_field_pb2_grpc.py diff --git a/google/ads/google_ads/v4/proto/enums/frequency_cap_event_type_pb2.py b/google/ads/google_ads/v4/proto/enums/frequency_cap_event_type_pb2.py new file mode 100644 index 000000000..9b056ac00 --- /dev/null +++ b/google/ads/google_ads/v4/proto/enums/frequency_cap_event_type_pb2.py @@ -0,0 +1,101 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/enums/frequency_cap_event_type.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/enums/frequency_cap_event_type.proto', + package='google.ads.googleads.v4.enums', + syntax='proto3', + serialized_options=_b('\n!com.google.ads.googleads.v4.enumsB\032FrequencyCapEventTypeProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V4.Enums\312\002\035Google\\Ads\\GoogleAds\\V4\\Enums\352\002!Google::Ads::GoogleAds::V4::Enums'), + serialized_pb=_b('\nBgoogle/ads/googleads_v4/proto/enums/frequency_cap_event_type.proto\x12\x1dgoogle.ads.googleads.v4.enums\x1a\x1cgoogle/api/annotations.proto\"r\n\x19\x46requencyCapEventTypeEnum\"U\n\x15\x46requencyCapEventType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0e\n\nIMPRESSION\x10\x02\x12\x0e\n\nVIDEO_VIEW\x10\x03\x42\xef\x01\n!com.google.ads.googleads.v4.enumsB\x1a\x46requencyCapEventTypeProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V4.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V4\\Enums\xea\x02!Google::Ads::GoogleAds::V4::Enumsb\x06proto3') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_FREQUENCYCAPEVENTTYPEENUM_FREQUENCYCAPEVENTTYPE = _descriptor.EnumDescriptor( + name='FrequencyCapEventType', + full_name='google.ads.googleads.v4.enums.FrequencyCapEventTypeEnum.FrequencyCapEventType', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='UNSPECIFIED', index=0, number=0, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='UNKNOWN', index=1, number=1, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='IMPRESSION', index=2, number=2, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='VIDEO_VIEW', index=3, number=3, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=160, + serialized_end=245, +) +_sym_db.RegisterEnumDescriptor(_FREQUENCYCAPEVENTTYPEENUM_FREQUENCYCAPEVENTTYPE) + + +_FREQUENCYCAPEVENTTYPEENUM = _descriptor.Descriptor( + name='FrequencyCapEventTypeEnum', + full_name='google.ads.googleads.v4.enums.FrequencyCapEventTypeEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _FREQUENCYCAPEVENTTYPEENUM_FREQUENCYCAPEVENTTYPE, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=131, + serialized_end=245, +) + +_FREQUENCYCAPEVENTTYPEENUM_FREQUENCYCAPEVENTTYPE.containing_type = _FREQUENCYCAPEVENTTYPEENUM +DESCRIPTOR.message_types_by_name['FrequencyCapEventTypeEnum'] = _FREQUENCYCAPEVENTTYPEENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +FrequencyCapEventTypeEnum = _reflection.GeneratedProtocolMessageType('FrequencyCapEventTypeEnum', (_message.Message,), dict( + DESCRIPTOR = _FREQUENCYCAPEVENTTYPEENUM, + __module__ = 'google.ads.googleads_v4.proto.enums.frequency_cap_event_type_pb2' + , + __doc__ = """Container for enum describing the type of event that the cap applies to. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.enums.FrequencyCapEventTypeEnum) + )) +_sym_db.RegisterMessage(FrequencyCapEventTypeEnum) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/enums/google_ads_field_data_type_pb2_grpc.py b/google/ads/google_ads/v4/proto/enums/frequency_cap_event_type_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/enums/google_ads_field_data_type_pb2_grpc.py rename to google/ads/google_ads/v4/proto/enums/frequency_cap_event_type_pb2_grpc.py diff --git a/google/ads/google_ads/v4/proto/enums/frequency_cap_level_pb2.py b/google/ads/google_ads/v4/proto/enums/frequency_cap_level_pb2.py new file mode 100644 index 000000000..b23ebba97 --- /dev/null +++ b/google/ads/google_ads/v4/proto/enums/frequency_cap_level_pb2.py @@ -0,0 +1,106 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/enums/frequency_cap_level.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/enums/frequency_cap_level.proto', + package='google.ads.googleads.v4.enums', + syntax='proto3', + serialized_options=_b('\n!com.google.ads.googleads.v4.enumsB\026FrequencyCapLevelProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V4.Enums\312\002\035Google\\Ads\\GoogleAds\\V4\\Enums\352\002!Google::Ads::GoogleAds::V4::Enums'), + serialized_pb=_b('\n=google/ads/googleads_v4/proto/enums/frequency_cap_level.proto\x12\x1dgoogle.ads.googleads.v4.enums\x1a\x1cgoogle/api/annotations.proto\"w\n\x15\x46requencyCapLevelEnum\"^\n\x11\x46requencyCapLevel\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0f\n\x0b\x41\x44_GROUP_AD\x10\x02\x12\x0c\n\x08\x41\x44_GROUP\x10\x03\x12\x0c\n\x08\x43\x41MPAIGN\x10\x04\x42\xeb\x01\n!com.google.ads.googleads.v4.enumsB\x16\x46requencyCapLevelProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V4.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V4\\Enums\xea\x02!Google::Ads::GoogleAds::V4::Enumsb\x06proto3') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_FREQUENCYCAPLEVELENUM_FREQUENCYCAPLEVEL = _descriptor.EnumDescriptor( + name='FrequencyCapLevel', + full_name='google.ads.googleads.v4.enums.FrequencyCapLevelEnum.FrequencyCapLevel', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='UNSPECIFIED', index=0, number=0, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='UNKNOWN', index=1, number=1, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='AD_GROUP_AD', index=2, number=2, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='AD_GROUP', index=3, number=3, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CAMPAIGN', index=4, number=4, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=151, + serialized_end=245, +) +_sym_db.RegisterEnumDescriptor(_FREQUENCYCAPLEVELENUM_FREQUENCYCAPLEVEL) + + +_FREQUENCYCAPLEVELENUM = _descriptor.Descriptor( + name='FrequencyCapLevelEnum', + full_name='google.ads.googleads.v4.enums.FrequencyCapLevelEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _FREQUENCYCAPLEVELENUM_FREQUENCYCAPLEVEL, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=126, + serialized_end=245, +) + +_FREQUENCYCAPLEVELENUM_FREQUENCYCAPLEVEL.containing_type = _FREQUENCYCAPLEVELENUM +DESCRIPTOR.message_types_by_name['FrequencyCapLevelEnum'] = _FREQUENCYCAPLEVELENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +FrequencyCapLevelEnum = _reflection.GeneratedProtocolMessageType('FrequencyCapLevelEnum', (_message.Message,), dict( + DESCRIPTOR = _FREQUENCYCAPLEVELENUM, + __module__ = 'google.ads.googleads_v4.proto.enums.frequency_cap_level_pb2' + , + __doc__ = """Container for enum describing the level on which the cap is to be + applied. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.enums.FrequencyCapLevelEnum) + )) +_sym_db.RegisterMessage(FrequencyCapLevelEnum) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/enums/hotel_date_selection_type_pb2_grpc.py b/google/ads/google_ads/v4/proto/enums/frequency_cap_level_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/enums/hotel_date_selection_type_pb2_grpc.py rename to google/ads/google_ads/v4/proto/enums/frequency_cap_level_pb2_grpc.py diff --git a/google/ads/google_ads/v1/proto/enums/frequency_cap_time_unit_pb2.py b/google/ads/google_ads/v4/proto/enums/frequency_cap_time_unit_pb2.py similarity index 75% rename from google/ads/google_ads/v1/proto/enums/frequency_cap_time_unit_pb2.py rename to google/ads/google_ads/v4/proto/enums/frequency_cap_time_unit_pb2.py index e3842f42b..7e507af0c 100644 --- a/google/ads/google_ads/v1/proto/enums/frequency_cap_time_unit_pb2.py +++ b/google/ads/google_ads/v4/proto/enums/frequency_cap_time_unit_pb2.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/enums/frequency_cap_time_unit.proto +# source: google/ads/googleads_v4/proto/enums/frequency_cap_time_unit.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) @@ -17,11 +17,11 @@ DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/enums/frequency_cap_time_unit.proto', - package='google.ads.googleads.v1.enums', + name='google/ads/googleads_v4/proto/enums/frequency_cap_time_unit.proto', + package='google.ads.googleads.v4.enums', syntax='proto3', - serialized_options=_b('\n!com.google.ads.googleads.v1.enumsB\031FrequencyCapTimeUnitProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v1/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V1.Enums\312\002\035Google\\Ads\\GoogleAds\\V1\\Enums\352\002!Google::Ads::GoogleAds::V1::Enums'), - serialized_pb=_b('\nAgoogle/ads/googleads_v1/proto/enums/frequency_cap_time_unit.proto\x12\x1dgoogle.ads.googleads.v1.enums\x1a\x1cgoogle/api/annotations.proto\"n\n\x18\x46requencyCapTimeUnitEnum\"R\n\x14\x46requencyCapTimeUnit\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x07\n\x03\x44\x41Y\x10\x02\x12\x08\n\x04WEEK\x10\x03\x12\t\n\x05MONTH\x10\x04\x42\xee\x01\n!com.google.ads.googleads.v1.enumsB\x19\x46requencyCapTimeUnitProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v1/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V1.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V1\\Enums\xea\x02!Google::Ads::GoogleAds::V1::Enumsb\x06proto3') + serialized_options=_b('\n!com.google.ads.googleads.v4.enumsB\031FrequencyCapTimeUnitProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V4.Enums\312\002\035Google\\Ads\\GoogleAds\\V4\\Enums\352\002!Google::Ads::GoogleAds::V4::Enums'), + serialized_pb=_b('\nAgoogle/ads/googleads_v4/proto/enums/frequency_cap_time_unit.proto\x12\x1dgoogle.ads.googleads.v4.enums\x1a\x1cgoogle/api/annotations.proto\"n\n\x18\x46requencyCapTimeUnitEnum\"R\n\x14\x46requencyCapTimeUnit\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x07\n\x03\x44\x41Y\x10\x02\x12\x08\n\x04WEEK\x10\x03\x12\t\n\x05MONTH\x10\x04\x42\xee\x01\n!com.google.ads.googleads.v4.enumsB\x19\x46requencyCapTimeUnitProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V4.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V4\\Enums\xea\x02!Google::Ads::GoogleAds::V4::Enumsb\x06proto3') , dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) @@ -29,7 +29,7 @@ _FREQUENCYCAPTIMEUNITENUM_FREQUENCYCAPTIMEUNIT = _descriptor.EnumDescriptor( name='FrequencyCapTimeUnit', - full_name='google.ads.googleads.v1.enums.FrequencyCapTimeUnitEnum.FrequencyCapTimeUnit', + full_name='google.ads.googleads.v4.enums.FrequencyCapTimeUnitEnum.FrequencyCapTimeUnit', filename=None, file=DESCRIPTOR, values=[ @@ -64,7 +64,7 @@ _FREQUENCYCAPTIMEUNITENUM = _descriptor.Descriptor( name='FrequencyCapTimeUnitEnum', - full_name='google.ads.googleads.v1.enums.FrequencyCapTimeUnitEnum', + full_name='google.ads.googleads.v4.enums.FrequencyCapTimeUnitEnum', filename=None, file=DESCRIPTOR, containing_type=None, @@ -92,11 +92,11 @@ FrequencyCapTimeUnitEnum = _reflection.GeneratedProtocolMessageType('FrequencyCapTimeUnitEnum', (_message.Message,), dict( DESCRIPTOR = _FREQUENCYCAPTIMEUNITENUM, - __module__ = 'google.ads.googleads_v1.proto.enums.frequency_cap_time_unit_pb2' + __module__ = 'google.ads.googleads_v4.proto.enums.frequency_cap_time_unit_pb2' , __doc__ = """Container for enum describing the unit of time the cap is defined at. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.enums.FrequencyCapTimeUnitEnum) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.enums.FrequencyCapTimeUnitEnum) )) _sym_db.RegisterMessage(FrequencyCapTimeUnitEnum) diff --git a/google/ads/google_ads/v1/proto/enums/hotel_placeholder_field_pb2_grpc.py b/google/ads/google_ads/v4/proto/enums/frequency_cap_time_unit_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/enums/hotel_placeholder_field_pb2_grpc.py rename to google/ads/google_ads/v4/proto/enums/frequency_cap_time_unit_pb2_grpc.py diff --git a/google/ads/google_ads/v4/proto/enums/gender_type_pb2.py b/google/ads/google_ads/v4/proto/enums/gender_type_pb2.py new file mode 100644 index 000000000..706690817 --- /dev/null +++ b/google/ads/google_ads/v4/proto/enums/gender_type_pb2.py @@ -0,0 +1,105 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/enums/gender_type.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/enums/gender_type.proto', + package='google.ads.googleads.v4.enums', + syntax='proto3', + serialized_options=_b('\n!com.google.ads.googleads.v4.enumsB\017GenderTypeProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V4.Enums\312\002\035Google\\Ads\\GoogleAds\\V4\\Enums\352\002!Google::Ads::GoogleAds::V4::Enums'), + serialized_pb=_b('\n5google/ads/googleads_v4/proto/enums/gender_type.proto\x12\x1dgoogle.ads.googleads.v4.enums\x1a\x1cgoogle/api/annotations.proto\"d\n\x0eGenderTypeEnum\"R\n\nGenderType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x08\n\x04MALE\x10\n\x12\n\n\x06\x46\x45MALE\x10\x0b\x12\x10\n\x0cUNDETERMINED\x10\x14\x42\xe4\x01\n!com.google.ads.googleads.v4.enumsB\x0fGenderTypeProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V4.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V4\\Enums\xea\x02!Google::Ads::GoogleAds::V4::Enumsb\x06proto3') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_GENDERTYPEENUM_GENDERTYPE = _descriptor.EnumDescriptor( + name='GenderType', + full_name='google.ads.googleads.v4.enums.GenderTypeEnum.GenderType', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='UNSPECIFIED', index=0, number=0, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='UNKNOWN', index=1, number=1, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='MALE', index=2, number=10, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='FEMALE', index=3, number=11, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='UNDETERMINED', index=4, number=20, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=136, + serialized_end=218, +) +_sym_db.RegisterEnumDescriptor(_GENDERTYPEENUM_GENDERTYPE) + + +_GENDERTYPEENUM = _descriptor.Descriptor( + name='GenderTypeEnum', + full_name='google.ads.googleads.v4.enums.GenderTypeEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _GENDERTYPEENUM_GENDERTYPE, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=118, + serialized_end=218, +) + +_GENDERTYPEENUM_GENDERTYPE.containing_type = _GENDERTYPEENUM +DESCRIPTOR.message_types_by_name['GenderTypeEnum'] = _GENDERTYPEENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +GenderTypeEnum = _reflection.GeneratedProtocolMessageType('GenderTypeEnum', (_message.Message,), dict( + DESCRIPTOR = _GENDERTYPEENUM, + __module__ = 'google.ads.googleads_v4.proto.enums.gender_type_pb2' + , + __doc__ = """Container for enum describing the type of demographic genders. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.enums.GenderTypeEnum) + )) +_sym_db.RegisterMessage(GenderTypeEnum) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/enums/hotel_rate_type_pb2_grpc.py b/google/ads/google_ads/v4/proto/enums/gender_type_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/enums/hotel_rate_type_pb2_grpc.py rename to google/ads/google_ads/v4/proto/enums/gender_type_pb2_grpc.py diff --git a/google/ads/google_ads/v4/proto/enums/geo_target_constant_status_pb2.py b/google/ads/google_ads/v4/proto/enums/geo_target_constant_status_pb2.py new file mode 100644 index 000000000..cc84eef26 --- /dev/null +++ b/google/ads/google_ads/v4/proto/enums/geo_target_constant_status_pb2.py @@ -0,0 +1,101 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/enums/geo_target_constant_status.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/enums/geo_target_constant_status.proto', + package='google.ads.googleads.v4.enums', + syntax='proto3', + serialized_options=_b('\n!com.google.ads.googleads.v4.enumsB\034GeoTargetConstantStatusProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V4.Enums\312\002\035Google\\Ads\\GoogleAds\\V4\\Enums\352\002!Google::Ads::GoogleAds::V4::Enums'), + serialized_pb=_b('\nDgoogle/ads/googleads_v4/proto/enums/geo_target_constant_status.proto\x12\x1dgoogle.ads.googleads.v4.enums\x1a\x1cgoogle/api/annotations.proto\"x\n\x1bGeoTargetConstantStatusEnum\"Y\n\x17GeoTargetConstantStatus\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0b\n\x07\x45NABLED\x10\x02\x12\x13\n\x0fREMOVAL_PLANNED\x10\x03\x42\xf1\x01\n!com.google.ads.googleads.v4.enumsB\x1cGeoTargetConstantStatusProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V4.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V4\\Enums\xea\x02!Google::Ads::GoogleAds::V4::Enumsb\x06proto3') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_GEOTARGETCONSTANTSTATUSENUM_GEOTARGETCONSTANTSTATUS = _descriptor.EnumDescriptor( + name='GeoTargetConstantStatus', + full_name='google.ads.googleads.v4.enums.GeoTargetConstantStatusEnum.GeoTargetConstantStatus', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='UNSPECIFIED', index=0, number=0, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='UNKNOWN', index=1, number=1, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='ENABLED', index=2, number=2, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='REMOVAL_PLANNED', index=3, number=3, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=164, + serialized_end=253, +) +_sym_db.RegisterEnumDescriptor(_GEOTARGETCONSTANTSTATUSENUM_GEOTARGETCONSTANTSTATUS) + + +_GEOTARGETCONSTANTSTATUSENUM = _descriptor.Descriptor( + name='GeoTargetConstantStatusEnum', + full_name='google.ads.googleads.v4.enums.GeoTargetConstantStatusEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _GEOTARGETCONSTANTSTATUSENUM_GEOTARGETCONSTANTSTATUS, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=133, + serialized_end=253, +) + +_GEOTARGETCONSTANTSTATUSENUM_GEOTARGETCONSTANTSTATUS.containing_type = _GEOTARGETCONSTANTSTATUSENUM +DESCRIPTOR.message_types_by_name['GeoTargetConstantStatusEnum'] = _GEOTARGETCONSTANTSTATUSENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +GeoTargetConstantStatusEnum = _reflection.GeneratedProtocolMessageType('GeoTargetConstantStatusEnum', (_message.Message,), dict( + DESCRIPTOR = _GEOTARGETCONSTANTSTATUSENUM, + __module__ = 'google.ads.googleads_v4.proto.enums.geo_target_constant_status_pb2' + , + __doc__ = """Container for describing the status of a geo target constant. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.enums.GeoTargetConstantStatusEnum) + )) +_sym_db.RegisterMessage(GeoTargetConstantStatusEnum) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/enums/income_range_type_pb2_grpc.py b/google/ads/google_ads/v4/proto/enums/geo_target_constant_status_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/enums/income_range_type_pb2_grpc.py rename to google/ads/google_ads/v4/proto/enums/geo_target_constant_status_pb2_grpc.py diff --git a/google/ads/google_ads/v4/proto/enums/geo_targeting_restriction_pb2.py b/google/ads/google_ads/v4/proto/enums/geo_targeting_restriction_pb2.py new file mode 100644 index 000000000..1c63df0d3 --- /dev/null +++ b/google/ads/google_ads/v4/proto/enums/geo_targeting_restriction_pb2.py @@ -0,0 +1,97 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/enums/geo_targeting_restriction.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/enums/geo_targeting_restriction.proto', + package='google.ads.googleads.v4.enums', + syntax='proto3', + serialized_options=_b('\n!com.google.ads.googleads.v4.enumsB\034GeoTargetingRestrictionProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V4.Enums\312\002\035Google\\Ads\\GoogleAds\\V4\\Enums\352\002!Google::Ads::GoogleAds::V4::Enums'), + serialized_pb=_b('\nCgoogle/ads/googleads_v4/proto/enums/geo_targeting_restriction.proto\x12\x1dgoogle.ads.googleads.v4.enums\x1a\x1cgoogle/api/annotations.proto\"p\n\x1bGeoTargetingRestrictionEnum\"Q\n\x17GeoTargetingRestriction\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x18\n\x14LOCATION_OF_PRESENCE\x10\x02\x42\xf1\x01\n!com.google.ads.googleads.v4.enumsB\x1cGeoTargetingRestrictionProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V4.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V4\\Enums\xea\x02!Google::Ads::GoogleAds::V4::Enumsb\x06proto3') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_GEOTARGETINGRESTRICTIONENUM_GEOTARGETINGRESTRICTION = _descriptor.EnumDescriptor( + name='GeoTargetingRestriction', + full_name='google.ads.googleads.v4.enums.GeoTargetingRestrictionEnum.GeoTargetingRestriction', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='UNSPECIFIED', index=0, number=0, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='UNKNOWN', index=1, number=1, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='LOCATION_OF_PRESENCE', index=2, number=2, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=163, + serialized_end=244, +) +_sym_db.RegisterEnumDescriptor(_GEOTARGETINGRESTRICTIONENUM_GEOTARGETINGRESTRICTION) + + +_GEOTARGETINGRESTRICTIONENUM = _descriptor.Descriptor( + name='GeoTargetingRestrictionEnum', + full_name='google.ads.googleads.v4.enums.GeoTargetingRestrictionEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _GEOTARGETINGRESTRICTIONENUM_GEOTARGETINGRESTRICTION, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=132, + serialized_end=244, +) + +_GEOTARGETINGRESTRICTIONENUM_GEOTARGETINGRESTRICTION.containing_type = _GEOTARGETINGRESTRICTIONENUM +DESCRIPTOR.message_types_by_name['GeoTargetingRestrictionEnum'] = _GEOTARGETINGRESTRICTIONENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +GeoTargetingRestrictionEnum = _reflection.GeneratedProtocolMessageType('GeoTargetingRestrictionEnum', (_message.Message,), dict( + DESCRIPTOR = _GEOTARGETINGRESTRICTIONENUM, + __module__ = 'google.ads.googleads_v4.proto.enums.geo_targeting_restriction_pb2' + , + __doc__ = """Message describing feed item geo targeting restriction. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.enums.GeoTargetingRestrictionEnum) + )) +_sym_db.RegisterMessage(GeoTargetingRestrictionEnum) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/enums/interaction_event_type_pb2_grpc.py b/google/ads/google_ads/v4/proto/enums/geo_targeting_restriction_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/enums/interaction_event_type_pb2_grpc.py rename to google/ads/google_ads/v4/proto/enums/geo_targeting_restriction_pb2_grpc.py diff --git a/google/ads/google_ads/v4/proto/enums/geo_targeting_type_pb2.py b/google/ads/google_ads/v4/proto/enums/geo_targeting_type_pb2.py new file mode 100644 index 000000000..034ff26fd --- /dev/null +++ b/google/ads/google_ads/v4/proto/enums/geo_targeting_type_pb2.py @@ -0,0 +1,101 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/enums/geo_targeting_type.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/enums/geo_targeting_type.proto', + package='google.ads.googleads.v4.enums', + syntax='proto3', + serialized_options=_b('\n!com.google.ads.googleads.v4.enumsB\025GeoTargetingTypeProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V4.Enums\312\002\035Google\\Ads\\GoogleAds\\V4\\Enums\352\002!Google::Ads::GoogleAds::V4::Enums'), + serialized_pb=_b('\nB\xe9\x01\n!com.google.ads.googleads.v4.enumsB\x14InteractionTypeProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V4.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V4\\Enums\xea\x02!Google::Ads::GoogleAds::V4::Enumsb\x06proto3') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_INTERACTIONTYPEENUM_INTERACTIONTYPE = _descriptor.EnumDescriptor( + name='InteractionType', + full_name='google.ads.googleads.v4.enums.InteractionTypeEnum.InteractionType', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='UNSPECIFIED', index=0, number=0, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='UNKNOWN', index=1, number=1, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CALLS', index=2, number=8000, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=146, + serialized_end=205, +) +_sym_db.RegisterEnumDescriptor(_INTERACTIONTYPEENUM_INTERACTIONTYPE) + + +_INTERACTIONTYPEENUM = _descriptor.Descriptor( + name='InteractionTypeEnum', + full_name='google.ads.googleads.v4.enums.InteractionTypeEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _INTERACTIONTYPEENUM_INTERACTIONTYPE, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=123, + serialized_end=205, +) + +_INTERACTIONTYPEENUM_INTERACTIONTYPE.containing_type = _INTERACTIONTYPEENUM +DESCRIPTOR.message_types_by_name['InteractionTypeEnum'] = _INTERACTIONTYPEENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +InteractionTypeEnum = _reflection.GeneratedProtocolMessageType('InteractionTypeEnum', (_message.Message,), dict( + DESCRIPTOR = _INTERACTIONTYPEENUM, + __module__ = 'google.ads.googleads_v4.proto.enums.interaction_type_pb2' + , + __doc__ = """Container for enum describing possible interaction types. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.enums.InteractionTypeEnum) + )) +_sym_db.RegisterMessage(InteractionTypeEnum) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/enums/listing_group_type_pb2_grpc.py b/google/ads/google_ads/v4/proto/enums/interaction_type_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/enums/listing_group_type_pb2_grpc.py rename to google/ads/google_ads/v4/proto/enums/interaction_type_pb2_grpc.py diff --git a/google/ads/google_ads/v4/proto/enums/invoice_type_pb2.py b/google/ads/google_ads/v4/proto/enums/invoice_type_pb2.py new file mode 100644 index 000000000..fadf588a5 --- /dev/null +++ b/google/ads/google_ads/v4/proto/enums/invoice_type_pb2.py @@ -0,0 +1,101 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/enums/invoice_type.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/enums/invoice_type.proto', + package='google.ads.googleads.v4.enums', + syntax='proto3', + serialized_options=_b('\n!com.google.ads.googleads.v4.enumsB\020InvoiceTypeProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V4.Enums\312\002\035Google\\Ads\\GoogleAds\\V4\\Enums\352\002!Google::Ads::GoogleAds::V4::Enums'), + serialized_pb=_b('\n6google/ads/googleads_v4/proto/enums/invoice_type.proto\x12\x1dgoogle.ads.googleads.v4.enums\x1a\x1cgoogle/api/annotations.proto\"\\\n\x0fInvoiceTypeEnum\"I\n\x0bInvoiceType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0f\n\x0b\x43REDIT_MEMO\x10\x02\x12\x0b\n\x07INVOICE\x10\x03\x42\xe5\x01\n!com.google.ads.googleads.v4.enumsB\x10InvoiceTypeProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V4.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V4\\Enums\xea\x02!Google::Ads::GoogleAds::V4::Enumsb\x06proto3') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_INVOICETYPEENUM_INVOICETYPE = _descriptor.EnumDescriptor( + name='InvoiceType', + full_name='google.ads.googleads.v4.enums.InvoiceTypeEnum.InvoiceType', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='UNSPECIFIED', index=0, number=0, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='UNKNOWN', index=1, number=1, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CREDIT_MEMO', index=2, number=2, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVOICE', index=3, number=3, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=138, + serialized_end=211, +) +_sym_db.RegisterEnumDescriptor(_INVOICETYPEENUM_INVOICETYPE) + + +_INVOICETYPEENUM = _descriptor.Descriptor( + name='InvoiceTypeEnum', + full_name='google.ads.googleads.v4.enums.InvoiceTypeEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _INVOICETYPEENUM_INVOICETYPE, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=119, + serialized_end=211, +) + +_INVOICETYPEENUM_INVOICETYPE.containing_type = _INVOICETYPEENUM +DESCRIPTOR.message_types_by_name['InvoiceTypeEnum'] = _INVOICETYPEENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +InvoiceTypeEnum = _reflection.GeneratedProtocolMessageType('InvoiceTypeEnum', (_message.Message,), dict( + DESCRIPTOR = _INVOICETYPEENUM, + __module__ = 'google.ads.googleads_v4.proto.enums.invoice_type_pb2' + , + __doc__ = """Container for enum describing the type of invoices. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.enums.InvoiceTypeEnum) + )) +_sym_db.RegisterMessage(InvoiceTypeEnum) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/enums/local_placeholder_field_pb2_grpc.py b/google/ads/google_ads/v4/proto/enums/invoice_type_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/enums/local_placeholder_field_pb2_grpc.py rename to google/ads/google_ads/v4/proto/enums/invoice_type_pb2_grpc.py diff --git a/google/ads/google_ads/v1/proto/enums/job_placeholder_field_pb2.py b/google/ads/google_ads/v4/proto/enums/job_placeholder_field_pb2.py similarity index 83% rename from google/ads/google_ads/v1/proto/enums/job_placeholder_field_pb2.py rename to google/ads/google_ads/v4/proto/enums/job_placeholder_field_pb2.py index 56ae8b233..3ca8844f7 100644 --- a/google/ads/google_ads/v1/proto/enums/job_placeholder_field_pb2.py +++ b/google/ads/google_ads/v4/proto/enums/job_placeholder_field_pb2.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/enums/job_placeholder_field.proto +# source: google/ads/googleads_v4/proto/enums/job_placeholder_field.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) @@ -17,11 +17,11 @@ DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/enums/job_placeholder_field.proto', - package='google.ads.googleads.v1.enums', + name='google/ads/googleads_v4/proto/enums/job_placeholder_field.proto', + package='google.ads.googleads.v4.enums', syntax='proto3', - serialized_options=_b('\n!com.google.ads.googleads.v1.enumsB\031JobsPlaceholderFieldProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v1/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V1.Enums\312\002\035Google\\Ads\\GoogleAds\\V1\\Enums\352\002!Google::Ads::GoogleAds::V1::Enums'), - serialized_pb=_b('\n?google/ads/googleads_v1/proto/enums/job_placeholder_field.proto\x12\x1dgoogle.ads.googleads.v1.enums\x1a\x1cgoogle/api/annotations.proto\"\xf1\x02\n\x17JobPlaceholderFieldEnum\"\xd5\x02\n\x13JobPlaceholderField\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\n\n\x06JOB_ID\x10\x02\x12\x0f\n\x0bLOCATION_ID\x10\x03\x12\t\n\x05TITLE\x10\x04\x12\x0c\n\x08SUBTITLE\x10\x05\x12\x0f\n\x0b\x44\x45SCRIPTION\x10\x06\x12\r\n\tIMAGE_URL\x10\x07\x12\x0c\n\x08\x43\x41TEGORY\x10\x08\x12\x17\n\x13\x43ONTEXTUAL_KEYWORDS\x10\t\x12\x0b\n\x07\x41\x44\x44RESS\x10\n\x12\n\n\x06SALARY\x10\x0b\x12\x0e\n\nFINAL_URLS\x10\x0c\x12\x15\n\x11\x46INAL_MOBILE_URLS\x10\x0e\x12\x10\n\x0cTRACKING_URL\x10\x0f\x12\x14\n\x10\x41NDROID_APP_LINK\x10\x10\x12\x13\n\x0fSIMILAR_JOB_IDS\x10\x11\x12\x10\n\x0cIOS_APP_LINK\x10\x12\x12\x14\n\x10IOS_APP_STORE_ID\x10\x13\x42\xee\x01\n!com.google.ads.googleads.v1.enumsB\x19JobsPlaceholderFieldProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v1/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V1.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V1\\Enums\xea\x02!Google::Ads::GoogleAds::V1::Enumsb\x06proto3') + serialized_options=_b('\n!com.google.ads.googleads.v4.enumsB\031JobsPlaceholderFieldProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V4.Enums\312\002\035Google\\Ads\\GoogleAds\\V4\\Enums\352\002!Google::Ads::GoogleAds::V4::Enums'), + serialized_pb=_b('\n?google/ads/googleads_v4/proto/enums/job_placeholder_field.proto\x12\x1dgoogle.ads.googleads.v4.enums\x1a\x1cgoogle/api/annotations.proto\"\xf1\x02\n\x17JobPlaceholderFieldEnum\"\xd5\x02\n\x13JobPlaceholderField\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\n\n\x06JOB_ID\x10\x02\x12\x0f\n\x0bLOCATION_ID\x10\x03\x12\t\n\x05TITLE\x10\x04\x12\x0c\n\x08SUBTITLE\x10\x05\x12\x0f\n\x0b\x44\x45SCRIPTION\x10\x06\x12\r\n\tIMAGE_URL\x10\x07\x12\x0c\n\x08\x43\x41TEGORY\x10\x08\x12\x17\n\x13\x43ONTEXTUAL_KEYWORDS\x10\t\x12\x0b\n\x07\x41\x44\x44RESS\x10\n\x12\n\n\x06SALARY\x10\x0b\x12\x0e\n\nFINAL_URLS\x10\x0c\x12\x15\n\x11\x46INAL_MOBILE_URLS\x10\x0e\x12\x10\n\x0cTRACKING_URL\x10\x0f\x12\x14\n\x10\x41NDROID_APP_LINK\x10\x10\x12\x13\n\x0fSIMILAR_JOB_IDS\x10\x11\x12\x10\n\x0cIOS_APP_LINK\x10\x12\x12\x14\n\x10IOS_APP_STORE_ID\x10\x13\x42\xee\x01\n!com.google.ads.googleads.v4.enumsB\x19JobsPlaceholderFieldProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V4.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V4\\Enums\xea\x02!Google::Ads::GoogleAds::V4::Enumsb\x06proto3') , dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) @@ -29,7 +29,7 @@ _JOBPLACEHOLDERFIELDENUM_JOBPLACEHOLDERFIELD = _descriptor.EnumDescriptor( name='JobPlaceholderField', - full_name='google.ads.googleads.v1.enums.JobPlaceholderFieldEnum.JobPlaceholderField', + full_name='google.ads.googleads.v4.enums.JobPlaceholderFieldEnum.JobPlaceholderField', filename=None, file=DESCRIPTOR, values=[ @@ -120,7 +120,7 @@ _JOBPLACEHOLDERFIELDENUM = _descriptor.Descriptor( name='JobPlaceholderFieldEnum', - full_name='google.ads.googleads.v1.enums.JobPlaceholderFieldEnum', + full_name='google.ads.googleads.v4.enums.JobPlaceholderFieldEnum', filename=None, file=DESCRIPTOR, containing_type=None, @@ -148,13 +148,13 @@ JobPlaceholderFieldEnum = _reflection.GeneratedProtocolMessageType('JobPlaceholderFieldEnum', (_message.Message,), dict( DESCRIPTOR = _JOBPLACEHOLDERFIELDENUM, - __module__ = 'google.ads.googleads_v1.proto.enums.job_placeholder_field_pb2' + __module__ = 'google.ads.googleads_v4.proto.enums.job_placeholder_field_pb2' , __doc__ = """Values for Job placeholder fields. For more information about dynamic remarketing feeds, see https://support.google.com/google-ads/answer/6053288. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.enums.JobPlaceholderFieldEnum) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.enums.JobPlaceholderFieldEnum) )) _sym_db.RegisterMessage(JobPlaceholderFieldEnum) diff --git a/google/ads/google_ads/v1/proto/enums/location_extension_targeting_criterion_field_pb2_grpc.py b/google/ads/google_ads/v4/proto/enums/job_placeholder_field_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/enums/location_extension_targeting_criterion_field_pb2_grpc.py rename to google/ads/google_ads/v4/proto/enums/job_placeholder_field_pb2_grpc.py diff --git a/google/ads/google_ads/v4/proto/enums/keyword_match_type_pb2.py b/google/ads/google_ads/v4/proto/enums/keyword_match_type_pb2.py new file mode 100644 index 000000000..2d6e64607 --- /dev/null +++ b/google/ads/google_ads/v4/proto/enums/keyword_match_type_pb2.py @@ -0,0 +1,105 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/enums/keyword_match_type.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/enums/keyword_match_type.proto', + package='google.ads.googleads.v4.enums', + syntax='proto3', + serialized_options=_b('\n!com.google.ads.googleads.v4.enumsB\025KeywordMatchTypeProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V4.Enums\312\002\035Google\\Ads\\GoogleAds\\V4\\Enums\352\002!Google::Ads::GoogleAds::V4::Enums'), + serialized_pb=_b('\ngoogle/ads/googleads_v4/proto/enums/keyword_plan_network.proto\x12\x1dgoogle.ads.googleads.v4.enums\x1a\x1cgoogle/api/annotations.proto\"\x7f\n\x16KeywordPlanNetworkEnum\"e\n\x12KeywordPlanNetwork\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x11\n\rGOOGLE_SEARCH\x10\x02\x12\x1e\n\x1aGOOGLE_SEARCH_AND_PARTNERS\x10\x03\x42\xec\x01\n!com.google.ads.googleads.v4.enumsB\x17KeywordPlanNetworkProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V4.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V4\\Enums\xea\x02!Google::Ads::GoogleAds::V4::Enumsb\x06proto3') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_KEYWORDPLANNETWORKENUM_KEYWORDPLANNETWORK = _descriptor.EnumDescriptor( + name='KeywordPlanNetwork', + full_name='google.ads.googleads.v4.enums.KeywordPlanNetworkEnum.KeywordPlanNetwork', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='UNSPECIFIED', index=0, number=0, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='UNKNOWN', index=1, number=1, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='GOOGLE_SEARCH', index=2, number=2, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='GOOGLE_SEARCH_AND_PARTNERS', index=3, number=3, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=153, + serialized_end=254, +) +_sym_db.RegisterEnumDescriptor(_KEYWORDPLANNETWORKENUM_KEYWORDPLANNETWORK) + + +_KEYWORDPLANNETWORKENUM = _descriptor.Descriptor( + name='KeywordPlanNetworkEnum', + full_name='google.ads.googleads.v4.enums.KeywordPlanNetworkEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _KEYWORDPLANNETWORKENUM_KEYWORDPLANNETWORK, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=127, + serialized_end=254, +) + +_KEYWORDPLANNETWORKENUM_KEYWORDPLANNETWORK.containing_type = _KEYWORDPLANNETWORKENUM +DESCRIPTOR.message_types_by_name['KeywordPlanNetworkEnum'] = _KEYWORDPLANNETWORKENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +KeywordPlanNetworkEnum = _reflection.GeneratedProtocolMessageType('KeywordPlanNetworkEnum', (_message.Message,), dict( + DESCRIPTOR = _KEYWORDPLANNETWORKENUM, + __module__ = 'google.ads.googleads_v4.proto.enums.keyword_plan_network_pb2' + , + __doc__ = """Container for enumeration of keyword plan forecastable network types. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.enums.KeywordPlanNetworkEnum) + )) +_sym_db.RegisterMessage(KeywordPlanNetworkEnum) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/enums/matching_function_context_type_pb2_grpc.py b/google/ads/google_ads/v4/proto/enums/keyword_plan_network_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/enums/matching_function_context_type_pb2_grpc.py rename to google/ads/google_ads/v4/proto/enums/keyword_plan_network_pb2_grpc.py diff --git a/google/ads/google_ads/v4/proto/enums/label_status_pb2.py b/google/ads/google_ads/v4/proto/enums/label_status_pb2.py new file mode 100644 index 000000000..87e1e9711 --- /dev/null +++ b/google/ads/google_ads/v4/proto/enums/label_status_pb2.py @@ -0,0 +1,101 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/enums/label_status.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/enums/label_status.proto', + package='google.ads.googleads.v4.enums', + syntax='proto3', + serialized_options=_b('\n!com.google.ads.googleads.v4.enumsB\020LabelStatusProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V4.Enums\312\002\035Google\\Ads\\GoogleAds\\V4\\Enums\352\002!Google::Ads::GoogleAds::V4::Enums'), + serialized_pb=_b('\n6google/ads/googleads_v4/proto/enums/label_status.proto\x12\x1dgoogle.ads.googleads.v4.enums\x1a\x1cgoogle/api/annotations.proto\"X\n\x0fLabelStatusEnum\"E\n\x0bLabelStatus\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0b\n\x07\x45NABLED\x10\x02\x12\x0b\n\x07REMOVED\x10\x03\x42\xe5\x01\n!com.google.ads.googleads.v4.enumsB\x10LabelStatusProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V4.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V4\\Enums\xea\x02!Google::Ads::GoogleAds::V4::Enumsb\x06proto3') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_LABELSTATUSENUM_LABELSTATUS = _descriptor.EnumDescriptor( + name='LabelStatus', + full_name='google.ads.googleads.v4.enums.LabelStatusEnum.LabelStatus', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='UNSPECIFIED', index=0, number=0, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='UNKNOWN', index=1, number=1, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='ENABLED', index=2, number=2, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='REMOVED', index=3, number=3, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=138, + serialized_end=207, +) +_sym_db.RegisterEnumDescriptor(_LABELSTATUSENUM_LABELSTATUS) + + +_LABELSTATUSENUM = _descriptor.Descriptor( + name='LabelStatusEnum', + full_name='google.ads.googleads.v4.enums.LabelStatusEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _LABELSTATUSENUM_LABELSTATUS, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=119, + serialized_end=207, +) + +_LABELSTATUSENUM_LABELSTATUS.containing_type = _LABELSTATUSENUM +DESCRIPTOR.message_types_by_name['LabelStatusEnum'] = _LABELSTATUSENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +LabelStatusEnum = _reflection.GeneratedProtocolMessageType('LabelStatusEnum', (_message.Message,), dict( + DESCRIPTOR = _LABELSTATUSENUM, + __module__ = 'google.ads.googleads_v4.proto.enums.label_status_pb2' + , + __doc__ = """Container for enum describing possible status of a label. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.enums.LabelStatusEnum) + )) +_sym_db.RegisterMessage(LabelStatusEnum) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/enums/matching_function_operator_pb2_grpc.py b/google/ads/google_ads/v4/proto/enums/label_status_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/enums/matching_function_operator_pb2_grpc.py rename to google/ads/google_ads/v4/proto/enums/label_status_pb2_grpc.py diff --git a/google/ads/google_ads/v1/proto/enums/legacy_app_install_ad_app_store_pb2.py b/google/ads/google_ads/v4/proto/enums/legacy_app_install_ad_app_store_pb2.py similarity index 78% rename from google/ads/google_ads/v1/proto/enums/legacy_app_install_ad_app_store_pb2.py rename to google/ads/google_ads/v4/proto/enums/legacy_app_install_ad_app_store_pb2.py index f04fe180f..857131e07 100644 --- a/google/ads/google_ads/v1/proto/enums/legacy_app_install_ad_app_store_pb2.py +++ b/google/ads/google_ads/v4/proto/enums/legacy_app_install_ad_app_store_pb2.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/enums/legacy_app_install_ad_app_store.proto +# source: google/ads/googleads_v4/proto/enums/legacy_app_install_ad_app_store.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) @@ -17,11 +17,11 @@ DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/enums/legacy_app_install_ad_app_store.proto', - package='google.ads.googleads.v1.enums', + name='google/ads/googleads_v4/proto/enums/legacy_app_install_ad_app_store.proto', + package='google.ads.googleads.v4.enums', syntax='proto3', - serialized_options=_b('\n!com.google.ads.googleads.v1.enumsB\037LegacyAppInstallAdAppStoreProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v1/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V1.Enums\312\002\035Google\\Ads\\GoogleAds\\V1\\Enums\352\002!Google::Ads::GoogleAds::V1::Enums'), - serialized_pb=_b('\nIgoogle/ads/googleads_v1/proto/enums/legacy_app_install_ad_app_store.proto\x12\x1dgoogle.ads.googleads.v1.enums\x1a\x1cgoogle/api/annotations.proto\"\xc1\x01\n\x1eLegacyAppInstallAdAppStoreEnum\"\x9e\x01\n\x1aLegacyAppInstallAdAppStore\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x13\n\x0f\x41PPLE_APP_STORE\x10\x02\x12\x0f\n\x0bGOOGLE_PLAY\x10\x03\x12\x11\n\rWINDOWS_STORE\x10\x04\x12\x17\n\x13WINDOWS_PHONE_STORE\x10\x05\x12\x10\n\x0c\x43N_APP_STORE\x10\x06\x42\xf4\x01\n!com.google.ads.googleads.v1.enumsB\x1fLegacyAppInstallAdAppStoreProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v1/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V1.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V1\\Enums\xea\x02!Google::Ads::GoogleAds::V1::Enumsb\x06proto3') + serialized_options=_b('\n!com.google.ads.googleads.v4.enumsB\037LegacyAppInstallAdAppStoreProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V4.Enums\312\002\035Google\\Ads\\GoogleAds\\V4\\Enums\352\002!Google::Ads::GoogleAds::V4::Enums'), + serialized_pb=_b('\nIgoogle/ads/googleads_v4/proto/enums/legacy_app_install_ad_app_store.proto\x12\x1dgoogle.ads.googleads.v4.enums\x1a\x1cgoogle/api/annotations.proto\"\xc1\x01\n\x1eLegacyAppInstallAdAppStoreEnum\"\x9e\x01\n\x1aLegacyAppInstallAdAppStore\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x13\n\x0f\x41PPLE_APP_STORE\x10\x02\x12\x0f\n\x0bGOOGLE_PLAY\x10\x03\x12\x11\n\rWINDOWS_STORE\x10\x04\x12\x17\n\x13WINDOWS_PHONE_STORE\x10\x05\x12\x10\n\x0c\x43N_APP_STORE\x10\x06\x42\xf4\x01\n!com.google.ads.googleads.v4.enumsB\x1fLegacyAppInstallAdAppStoreProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V4.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V4\\Enums\xea\x02!Google::Ads::GoogleAds::V4::Enumsb\x06proto3') , dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) @@ -29,7 +29,7 @@ _LEGACYAPPINSTALLADAPPSTOREENUM_LEGACYAPPINSTALLADAPPSTORE = _descriptor.EnumDescriptor( name='LegacyAppInstallAdAppStore', - full_name='google.ads.googleads.v1.enums.LegacyAppInstallAdAppStoreEnum.LegacyAppInstallAdAppStore', + full_name='google.ads.googleads.v4.enums.LegacyAppInstallAdAppStoreEnum.LegacyAppInstallAdAppStore', filename=None, file=DESCRIPTOR, values=[ @@ -72,7 +72,7 @@ _LEGACYAPPINSTALLADAPPSTOREENUM = _descriptor.Descriptor( name='LegacyAppInstallAdAppStoreEnum', - full_name='google.ads.googleads.v1.enums.LegacyAppInstallAdAppStoreEnum', + full_name='google.ads.googleads.v4.enums.LegacyAppInstallAdAppStoreEnum', filename=None, file=DESCRIPTOR, containing_type=None, @@ -100,11 +100,11 @@ LegacyAppInstallAdAppStoreEnum = _reflection.GeneratedProtocolMessageType('LegacyAppInstallAdAppStoreEnum', (_message.Message,), dict( DESCRIPTOR = _LEGACYAPPINSTALLADAPPSTOREENUM, - __module__ = 'google.ads.googleads_v1.proto.enums.legacy_app_install_ad_app_store_pb2' + __module__ = 'google.ads.googleads_v4.proto.enums.legacy_app_install_ad_app_store_pb2' , __doc__ = """Container for enum describing app store type in a legacy app install ad. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.enums.LegacyAppInstallAdAppStoreEnum) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.enums.LegacyAppInstallAdAppStoreEnum) )) _sym_db.RegisterMessage(LegacyAppInstallAdAppStoreEnum) diff --git a/google/ads/google_ads/v1/proto/enums/media_type_pb2_grpc.py b/google/ads/google_ads/v4/proto/enums/legacy_app_install_ad_app_store_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/enums/media_type_pb2_grpc.py rename to google/ads/google_ads/v4/proto/enums/legacy_app_install_ad_app_store_pb2_grpc.py diff --git a/google/ads/google_ads/v4/proto/enums/linked_account_type_pb2.py b/google/ads/google_ads/v4/proto/enums/linked_account_type_pb2.py new file mode 100644 index 000000000..5e2bc7618 --- /dev/null +++ b/google/ads/google_ads/v4/proto/enums/linked_account_type_pb2.py @@ -0,0 +1,97 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/enums/linked_account_type.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/enums/linked_account_type.proto', + package='google.ads.googleads.v4.enums', + syntax='proto3', + serialized_options=_b('\n!com.google.ads.googleads.v4.enumsB\026LinkedAccountTypeProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V4.Enums\312\002\035Google\\Ads\\GoogleAds\\V4\\Enums\352\002!Google::Ads::GoogleAds::V4::Enums'), + serialized_pb=_b('\n=google/ads/googleads_v4/proto/enums/linked_account_type.proto\x12\x1dgoogle.ads.googleads.v4.enums\x1a\x1cgoogle/api/annotations.proto\"i\n\x15LinkedAccountTypeEnum\"P\n\x11LinkedAccountType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x1d\n\x19THIRD_PARTY_APP_ANALYTICS\x10\x02\x42\xeb\x01\n!com.google.ads.googleads.v4.enumsB\x16LinkedAccountTypeProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V4.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V4\\Enums\xea\x02!Google::Ads::GoogleAds::V4::Enumsb\x06proto3') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_LINKEDACCOUNTTYPEENUM_LINKEDACCOUNTTYPE = _descriptor.EnumDescriptor( + name='LinkedAccountType', + full_name='google.ads.googleads.v4.enums.LinkedAccountTypeEnum.LinkedAccountType', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='UNSPECIFIED', index=0, number=0, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='UNKNOWN', index=1, number=1, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='THIRD_PARTY_APP_ANALYTICS', index=2, number=2, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=151, + serialized_end=231, +) +_sym_db.RegisterEnumDescriptor(_LINKEDACCOUNTTYPEENUM_LINKEDACCOUNTTYPE) + + +_LINKEDACCOUNTTYPEENUM = _descriptor.Descriptor( + name='LinkedAccountTypeEnum', + full_name='google.ads.googleads.v4.enums.LinkedAccountTypeEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _LINKEDACCOUNTTYPEENUM_LINKEDACCOUNTTYPE, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=126, + serialized_end=231, +) + +_LINKEDACCOUNTTYPEENUM_LINKEDACCOUNTTYPE.containing_type = _LINKEDACCOUNTTYPEENUM +DESCRIPTOR.message_types_by_name['LinkedAccountTypeEnum'] = _LINKEDACCOUNTTYPEENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +LinkedAccountTypeEnum = _reflection.GeneratedProtocolMessageType('LinkedAccountTypeEnum', (_message.Message,), dict( + DESCRIPTOR = _LINKEDACCOUNTTYPEENUM, + __module__ = 'google.ads.googleads_v4.proto.enums.linked_account_type_pb2' + , + __doc__ = """Container for enum describing different types of Linked accounts. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.enums.LinkedAccountTypeEnum) + )) +_sym_db.RegisterMessage(LinkedAccountTypeEnum) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/enums/merchant_center_link_status_pb2_grpc.py b/google/ads/google_ads/v4/proto/enums/linked_account_type_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/enums/merchant_center_link_status_pb2_grpc.py rename to google/ads/google_ads/v4/proto/enums/linked_account_type_pb2_grpc.py diff --git a/google/ads/google_ads/v4/proto/enums/listing_group_type_pb2.py b/google/ads/google_ads/v4/proto/enums/listing_group_type_pb2.py new file mode 100644 index 000000000..91254edce --- /dev/null +++ b/google/ads/google_ads/v4/proto/enums/listing_group_type_pb2.py @@ -0,0 +1,101 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/enums/listing_group_type.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/enums/listing_group_type.proto', + package='google.ads.googleads.v4.enums', + syntax='proto3', + serialized_options=_b('\n!com.google.ads.googleads.v4.enumsB\025ListingGroupTypeProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V4.Enums\312\002\035Google\\Ads\\GoogleAds\\V4\\Enums\352\002!Google::Ads::GoogleAds::V4::Enums'), + serialized_pb=_b('\ngoogle/ads/googleads_v4/proto/enums/location_source_type.proto\x12\x1dgoogle.ads.googleads.v4.enums\x1a\x1cgoogle/api/annotations.proto\"s\n\x16LocationSourceTypeEnum\"Y\n\x12LocationSourceType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x16\n\x12GOOGLE_MY_BUSINESS\x10\x02\x12\r\n\tAFFILIATE\x10\x03\x42\xec\x01\n!com.google.ads.googleads.v4.enumsB\x17LocationSourceTypeProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V4.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V4\\Enums\xea\x02!Google::Ads::GoogleAds::V4::Enumsb\x06proto3') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_LOCATIONSOURCETYPEENUM_LOCATIONSOURCETYPE = _descriptor.EnumDescriptor( + name='LocationSourceType', + full_name='google.ads.googleads.v4.enums.LocationSourceTypeEnum.LocationSourceType', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='UNSPECIFIED', index=0, number=0, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='UNKNOWN', index=1, number=1, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='GOOGLE_MY_BUSINESS', index=2, number=2, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='AFFILIATE', index=3, number=3, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=153, + serialized_end=242, +) +_sym_db.RegisterEnumDescriptor(_LOCATIONSOURCETYPEENUM_LOCATIONSOURCETYPE) + + +_LOCATIONSOURCETYPEENUM = _descriptor.Descriptor( + name='LocationSourceTypeEnum', + full_name='google.ads.googleads.v4.enums.LocationSourceTypeEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _LOCATIONSOURCETYPEENUM_LOCATIONSOURCETYPE, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=127, + serialized_end=242, +) + +_LOCATIONSOURCETYPEENUM_LOCATIONSOURCETYPE.containing_type = _LOCATIONSOURCETYPEENUM +DESCRIPTOR.message_types_by_name['LocationSourceTypeEnum'] = _LOCATIONSOURCETYPEENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +LocationSourceTypeEnum = _reflection.GeneratedProtocolMessageType('LocationSourceTypeEnum', (_message.Message,), dict( + DESCRIPTOR = _LOCATIONSOURCETYPEENUM, + __module__ = 'google.ads.googleads_v4.proto.enums.location_source_type_pb2' + , + __doc__ = """Used to distinguish the location source type. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.enums.LocationSourceTypeEnum) + )) +_sym_db.RegisterMessage(LocationSourceTypeEnum) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/enums/mutate_job_status_pb2_grpc.py b/google/ads/google_ads/v4/proto/enums/location_source_type_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/enums/mutate_job_status_pb2_grpc.py rename to google/ads/google_ads/v4/proto/enums/location_source_type_pb2_grpc.py diff --git a/google/ads/google_ads/v1/proto/enums/manager_link_status_pb2.py b/google/ads/google_ads/v4/proto/enums/manager_link_status_pb2.py similarity index 75% rename from google/ads/google_ads/v1/proto/enums/manager_link_status_pb2.py rename to google/ads/google_ads/v4/proto/enums/manager_link_status_pb2.py index 489d8db24..0d5a46aaf 100644 --- a/google/ads/google_ads/v1/proto/enums/manager_link_status_pb2.py +++ b/google/ads/google_ads/v4/proto/enums/manager_link_status_pb2.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/enums/manager_link_status.proto +# source: google/ads/googleads_v4/proto/enums/manager_link_status.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) @@ -17,11 +17,11 @@ DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/enums/manager_link_status.proto', - package='google.ads.googleads.v1.enums', + name='google/ads/googleads_v4/proto/enums/manager_link_status.proto', + package='google.ads.googleads.v4.enums', syntax='proto3', - serialized_options=_b('\n!com.google.ads.googleads.v1.enumsB\026ManagerLinkStatusProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v1/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V1.Enums\312\002\035Google\\Ads\\GoogleAds\\V1\\Enums\352\002!Google::Ads::GoogleAds::V1::Enums'), - serialized_pb=_b('\n=google/ads/googleads_v1/proto/enums/manager_link_status.proto\x12\x1dgoogle.ads.googleads.v1.enums\x1a\x1cgoogle/api/annotations.proto\"\x8c\x01\n\x15ManagerLinkStatusEnum\"s\n\x11ManagerLinkStatus\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\n\n\x06\x41\x43TIVE\x10\x02\x12\x0c\n\x08INACTIVE\x10\x03\x12\x0b\n\x07PENDING\x10\x04\x12\x0b\n\x07REFUSED\x10\x05\x12\x0c\n\x08\x43\x41NCELED\x10\x06\x42\xeb\x01\n!com.google.ads.googleads.v1.enumsB\x16ManagerLinkStatusProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v1/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V1.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V1\\Enums\xea\x02!Google::Ads::GoogleAds::V1::Enumsb\x06proto3') + serialized_options=_b('\n!com.google.ads.googleads.v4.enumsB\026ManagerLinkStatusProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V4.Enums\312\002\035Google\\Ads\\GoogleAds\\V4\\Enums\352\002!Google::Ads::GoogleAds::V4::Enums'), + serialized_pb=_b('\n=google/ads/googleads_v4/proto/enums/manager_link_status.proto\x12\x1dgoogle.ads.googleads.v4.enums\x1a\x1cgoogle/api/annotations.proto\"\x8c\x01\n\x15ManagerLinkStatusEnum\"s\n\x11ManagerLinkStatus\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\n\n\x06\x41\x43TIVE\x10\x02\x12\x0c\n\x08INACTIVE\x10\x03\x12\x0b\n\x07PENDING\x10\x04\x12\x0b\n\x07REFUSED\x10\x05\x12\x0c\n\x08\x43\x41NCELED\x10\x06\x42\xeb\x01\n!com.google.ads.googleads.v4.enumsB\x16ManagerLinkStatusProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V4.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V4\\Enums\xea\x02!Google::Ads::GoogleAds::V4::Enumsb\x06proto3') , dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) @@ -29,7 +29,7 @@ _MANAGERLINKSTATUSENUM_MANAGERLINKSTATUS = _descriptor.EnumDescriptor( name='ManagerLinkStatus', - full_name='google.ads.googleads.v1.enums.ManagerLinkStatusEnum.ManagerLinkStatus', + full_name='google.ads.googleads.v4.enums.ManagerLinkStatusEnum.ManagerLinkStatus', filename=None, file=DESCRIPTOR, values=[ @@ -72,7 +72,7 @@ _MANAGERLINKSTATUSENUM = _descriptor.Descriptor( name='ManagerLinkStatusEnum', - full_name='google.ads.googleads.v1.enums.ManagerLinkStatusEnum', + full_name='google.ads.googleads.v4.enums.ManagerLinkStatusEnum', filename=None, file=DESCRIPTOR, containing_type=None, @@ -100,12 +100,12 @@ ManagerLinkStatusEnum = _reflection.GeneratedProtocolMessageType('ManagerLinkStatusEnum', (_message.Message,), dict( DESCRIPTOR = _MANAGERLINKSTATUSENUM, - __module__ = 'google.ads.googleads_v1.proto.enums.manager_link_status_pb2' + __module__ = 'google.ads.googleads_v4.proto.enums.manager_link_status_pb2' , __doc__ = """Container for enum describing possible status of a manager and client link. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.enums.ManagerLinkStatusEnum) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.enums.ManagerLinkStatusEnum) )) _sym_db.RegisterMessage(ManagerLinkStatusEnum) diff --git a/google/ads/google_ads/v1/proto/enums/negative_geo_target_type_pb2_grpc.py b/google/ads/google_ads/v4/proto/enums/manager_link_status_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/enums/negative_geo_target_type_pb2_grpc.py rename to google/ads/google_ads/v4/proto/enums/manager_link_status_pb2_grpc.py diff --git a/google/ads/google_ads/v1/proto/enums/matching_function_context_type_pb2.py b/google/ads/google_ads/v4/proto/enums/matching_function_context_type_pb2.py similarity index 75% rename from google/ads/google_ads/v1/proto/enums/matching_function_context_type_pb2.py rename to google/ads/google_ads/v4/proto/enums/matching_function_context_type_pb2.py index 5fcaff670..8fbc987ea 100644 --- a/google/ads/google_ads/v1/proto/enums/matching_function_context_type_pb2.py +++ b/google/ads/google_ads/v4/proto/enums/matching_function_context_type_pb2.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/enums/matching_function_context_type.proto +# source: google/ads/googleads_v4/proto/enums/matching_function_context_type.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) @@ -17,11 +17,11 @@ DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/enums/matching_function_context_type.proto', - package='google.ads.googleads.v1.enums', + name='google/ads/googleads_v4/proto/enums/matching_function_context_type.proto', + package='google.ads.googleads.v4.enums', syntax='proto3', - serialized_options=_b('\n!com.google.ads.googleads.v1.enumsB MatchingFunctionContextTypeProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v1/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V1.Enums\312\002\035Google\\Ads\\GoogleAds\\V1\\Enums\352\002!Google::Ads::GoogleAds::V1::Enums'), - serialized_pb=_b('\nHgoogle/ads/googleads_v1/proto/enums/matching_function_context_type.proto\x12\x1dgoogle.ads.googleads.v1.enums\x1a\x1cgoogle/api/annotations.proto\"\x81\x01\n\x1fMatchingFunctionContextTypeEnum\"^\n\x1bMatchingFunctionContextType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x10\n\x0c\x46\x45\x45\x44_ITEM_ID\x10\x02\x12\x0f\n\x0b\x44\x45VICE_NAME\x10\x03\x42\xf5\x01\n!com.google.ads.googleads.v1.enumsB MatchingFunctionContextTypeProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v1/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V1.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V1\\Enums\xea\x02!Google::Ads::GoogleAds::V1::Enumsb\x06proto3') + serialized_options=_b('\n!com.google.ads.googleads.v4.enumsB MatchingFunctionContextTypeProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V4.Enums\312\002\035Google\\Ads\\GoogleAds\\V4\\Enums\352\002!Google::Ads::GoogleAds::V4::Enums'), + serialized_pb=_b('\nHgoogle/ads/googleads_v4/proto/enums/matching_function_context_type.proto\x12\x1dgoogle.ads.googleads.v4.enums\x1a\x1cgoogle/api/annotations.proto\"\x81\x01\n\x1fMatchingFunctionContextTypeEnum\"^\n\x1bMatchingFunctionContextType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x10\n\x0c\x46\x45\x45\x44_ITEM_ID\x10\x02\x12\x0f\n\x0b\x44\x45VICE_NAME\x10\x03\x42\xf5\x01\n!com.google.ads.googleads.v4.enumsB MatchingFunctionContextTypeProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V4.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V4\\Enums\xea\x02!Google::Ads::GoogleAds::V4::Enumsb\x06proto3') , dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) @@ -29,7 +29,7 @@ _MATCHINGFUNCTIONCONTEXTTYPEENUM_MATCHINGFUNCTIONCONTEXTTYPE = _descriptor.EnumDescriptor( name='MatchingFunctionContextType', - full_name='google.ads.googleads.v1.enums.MatchingFunctionContextTypeEnum.MatchingFunctionContextType', + full_name='google.ads.googleads.v4.enums.MatchingFunctionContextTypeEnum.MatchingFunctionContextType', filename=None, file=DESCRIPTOR, values=[ @@ -60,7 +60,7 @@ _MATCHINGFUNCTIONCONTEXTTYPEENUM = _descriptor.Descriptor( name='MatchingFunctionContextTypeEnum', - full_name='google.ads.googleads.v1.enums.MatchingFunctionContextTypeEnum', + full_name='google.ads.googleads.v4.enums.MatchingFunctionContextTypeEnum', filename=None, file=DESCRIPTOR, containing_type=None, @@ -88,11 +88,11 @@ MatchingFunctionContextTypeEnum = _reflection.GeneratedProtocolMessageType('MatchingFunctionContextTypeEnum', (_message.Message,), dict( DESCRIPTOR = _MATCHINGFUNCTIONCONTEXTTYPEENUM, - __module__ = 'google.ads.googleads_v1.proto.enums.matching_function_context_type_pb2' + __module__ = 'google.ads.googleads_v4.proto.enums.matching_function_context_type_pb2' , __doc__ = """Container for context types for an operand in a matching function. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.enums.MatchingFunctionContextTypeEnum) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.enums.MatchingFunctionContextTypeEnum) )) _sym_db.RegisterMessage(MatchingFunctionContextTypeEnum) diff --git a/google/ads/google_ads/v1/proto/enums/operating_system_version_operator_type_pb2_grpc.py b/google/ads/google_ads/v4/proto/enums/matching_function_context_type_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/enums/operating_system_version_operator_type_pb2_grpc.py rename to google/ads/google_ads/v4/proto/enums/matching_function_context_type_pb2_grpc.py diff --git a/google/ads/google_ads/v1/proto/enums/matching_function_operator_pb2.py b/google/ads/google_ads/v4/proto/enums/matching_function_operator_pb2.py similarity index 77% rename from google/ads/google_ads/v1/proto/enums/matching_function_operator_pb2.py rename to google/ads/google_ads/v4/proto/enums/matching_function_operator_pb2.py index 77a43f3fe..dd0c83706 100644 --- a/google/ads/google_ads/v1/proto/enums/matching_function_operator_pb2.py +++ b/google/ads/google_ads/v4/proto/enums/matching_function_operator_pb2.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/enums/matching_function_operator.proto +# source: google/ads/googleads_v4/proto/enums/matching_function_operator.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) @@ -17,11 +17,11 @@ DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/enums/matching_function_operator.proto', - package='google.ads.googleads.v1.enums', + name='google/ads/googleads_v4/proto/enums/matching_function_operator.proto', + package='google.ads.googleads.v4.enums', syntax='proto3', - serialized_options=_b('\n!com.google.ads.googleads.v1.enumsB\035MatchingFunctionOperatorProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v1/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V1.Enums\312\002\035Google\\Ads\\GoogleAds\\V1\\Enums\352\002!Google::Ads::GoogleAds::V1::Enums'), - serialized_pb=_b('\nDgoogle/ads/googleads_v1/proto/enums/matching_function_operator.proto\x12\x1dgoogle.ads.googleads.v1.enums\x1a\x1cgoogle/api/annotations.proto\"\x95\x01\n\x1cMatchingFunctionOperatorEnum\"u\n\x18MatchingFunctionOperator\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x06\n\x02IN\x10\x02\x12\x0c\n\x08IDENTITY\x10\x03\x12\n\n\x06\x45QUALS\x10\x04\x12\x07\n\x03\x41ND\x10\x05\x12\x10\n\x0c\x43ONTAINS_ANY\x10\x06\x42\xf2\x01\n!com.google.ads.googleads.v1.enumsB\x1dMatchingFunctionOperatorProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v1/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V1.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V1\\Enums\xea\x02!Google::Ads::GoogleAds::V1::Enumsb\x06proto3') + serialized_options=_b('\n!com.google.ads.googleads.v4.enumsB\035MatchingFunctionOperatorProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V4.Enums\312\002\035Google\\Ads\\GoogleAds\\V4\\Enums\352\002!Google::Ads::GoogleAds::V4::Enums'), + serialized_pb=_b('\nDgoogle/ads/googleads_v4/proto/enums/matching_function_operator.proto\x12\x1dgoogle.ads.googleads.v4.enums\x1a\x1cgoogle/api/annotations.proto\"\x95\x01\n\x1cMatchingFunctionOperatorEnum\"u\n\x18MatchingFunctionOperator\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x06\n\x02IN\x10\x02\x12\x0c\n\x08IDENTITY\x10\x03\x12\n\n\x06\x45QUALS\x10\x04\x12\x07\n\x03\x41ND\x10\x05\x12\x10\n\x0c\x43ONTAINS_ANY\x10\x06\x42\xf2\x01\n!com.google.ads.googleads.v4.enumsB\x1dMatchingFunctionOperatorProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V4.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V4\\Enums\xea\x02!Google::Ads::GoogleAds::V4::Enumsb\x06proto3') , dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) @@ -29,7 +29,7 @@ _MATCHINGFUNCTIONOPERATORENUM_MATCHINGFUNCTIONOPERATOR = _descriptor.EnumDescriptor( name='MatchingFunctionOperator', - full_name='google.ads.googleads.v1.enums.MatchingFunctionOperatorEnum.MatchingFunctionOperator', + full_name='google.ads.googleads.v4.enums.MatchingFunctionOperatorEnum.MatchingFunctionOperator', filename=None, file=DESCRIPTOR, values=[ @@ -72,7 +72,7 @@ _MATCHINGFUNCTIONOPERATORENUM = _descriptor.Descriptor( name='MatchingFunctionOperatorEnum', - full_name='google.ads.googleads.v1.enums.MatchingFunctionOperatorEnum', + full_name='google.ads.googleads.v4.enums.MatchingFunctionOperatorEnum', filename=None, file=DESCRIPTOR, containing_type=None, @@ -100,11 +100,11 @@ MatchingFunctionOperatorEnum = _reflection.GeneratedProtocolMessageType('MatchingFunctionOperatorEnum', (_message.Message,), dict( DESCRIPTOR = _MATCHINGFUNCTIONOPERATORENUM, - __module__ = 'google.ads.googleads_v1.proto.enums.matching_function_operator_pb2' + __module__ = 'google.ads.googleads_v4.proto.enums.matching_function_operator_pb2' , __doc__ = """Container for enum describing matching function operator. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.enums.MatchingFunctionOperatorEnum) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.enums.MatchingFunctionOperatorEnum) )) _sym_db.RegisterMessage(MatchingFunctionOperatorEnum) diff --git a/google/ads/google_ads/v1/proto/enums/page_one_promoted_strategy_goal_pb2_grpc.py b/google/ads/google_ads/v4/proto/enums/matching_function_operator_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/enums/page_one_promoted_strategy_goal_pb2_grpc.py rename to google/ads/google_ads/v4/proto/enums/matching_function_operator_pb2_grpc.py diff --git a/google/ads/google_ads/v1/proto/enums/media_type_pb2.py b/google/ads/google_ads/v4/proto/enums/media_type_pb2.py similarity index 76% rename from google/ads/google_ads/v1/proto/enums/media_type_pb2.py rename to google/ads/google_ads/v4/proto/enums/media_type_pb2.py index 2d7840eff..4b5cf4629 100644 --- a/google/ads/google_ads/v1/proto/enums/media_type_pb2.py +++ b/google/ads/google_ads/v4/proto/enums/media_type_pb2.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/enums/media_type.proto +# source: google/ads/googleads_v4/proto/enums/media_type.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) @@ -17,11 +17,11 @@ DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/enums/media_type.proto', - package='google.ads.googleads.v1.enums', + name='google/ads/googleads_v4/proto/enums/media_type.proto', + package='google.ads.googleads.v4.enums', syntax='proto3', - serialized_options=_b('\n!com.google.ads.googleads.v1.enumsB\016MediaTypeProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v1/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V1.Enums\312\002\035Google\\Ads\\GoogleAds\\V1\\Enums\352\002!Google::Ads::GoogleAds::V1::Enums'), - serialized_pb=_b('\n4google/ads/googleads_v1/proto/enums/media_type.proto\x12\x1dgoogle.ads.googleads.v1.enums\x1a\x1cgoogle/api/annotations.proto\"\x8a\x01\n\rMediaTypeEnum\"y\n\tMediaType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\t\n\x05IMAGE\x10\x02\x12\x08\n\x04ICON\x10\x03\x12\x10\n\x0cMEDIA_BUNDLE\x10\x04\x12\t\n\x05\x41UDIO\x10\x05\x12\t\n\x05VIDEO\x10\x06\x12\x11\n\rDYNAMIC_IMAGE\x10\x07\x42\xe3\x01\n!com.google.ads.googleads.v1.enumsB\x0eMediaTypeProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v1/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V1.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V1\\Enums\xea\x02!Google::Ads::GoogleAds::V1::Enumsb\x06proto3') + serialized_options=_b('\n!com.google.ads.googleads.v4.enumsB\016MediaTypeProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V4.Enums\312\002\035Google\\Ads\\GoogleAds\\V4\\Enums\352\002!Google::Ads::GoogleAds::V4::Enums'), + serialized_pb=_b('\n4google/ads/googleads_v4/proto/enums/media_type.proto\x12\x1dgoogle.ads.googleads.v4.enums\x1a\x1cgoogle/api/annotations.proto\"\x8a\x01\n\rMediaTypeEnum\"y\n\tMediaType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\t\n\x05IMAGE\x10\x02\x12\x08\n\x04ICON\x10\x03\x12\x10\n\x0cMEDIA_BUNDLE\x10\x04\x12\t\n\x05\x41UDIO\x10\x05\x12\t\n\x05VIDEO\x10\x06\x12\x11\n\rDYNAMIC_IMAGE\x10\x07\x42\xe3\x01\n!com.google.ads.googleads.v4.enumsB\x0eMediaTypeProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V4.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V4\\Enums\xea\x02!Google::Ads::GoogleAds::V4::Enumsb\x06proto3') , dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) @@ -29,7 +29,7 @@ _MEDIATYPEENUM_MEDIATYPE = _descriptor.EnumDescriptor( name='MediaType', - full_name='google.ads.googleads.v1.enums.MediaTypeEnum.MediaType', + full_name='google.ads.googleads.v4.enums.MediaTypeEnum.MediaType', filename=None, file=DESCRIPTOR, values=[ @@ -76,7 +76,7 @@ _MEDIATYPEENUM = _descriptor.Descriptor( name='MediaTypeEnum', - full_name='google.ads.googleads.v1.enums.MediaTypeEnum', + full_name='google.ads.googleads.v4.enums.MediaTypeEnum', filename=None, file=DESCRIPTOR, containing_type=None, @@ -104,11 +104,11 @@ MediaTypeEnum = _reflection.GeneratedProtocolMessageType('MediaTypeEnum', (_message.Message,), dict( DESCRIPTOR = _MEDIATYPEENUM, - __module__ = 'google.ads.googleads_v1.proto.enums.media_type_pb2' + __module__ = 'google.ads.googleads_v4.proto.enums.media_type_pb2' , __doc__ = """Container for enum describing the types of media. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.enums.MediaTypeEnum) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.enums.MediaTypeEnum) )) _sym_db.RegisterMessage(MediaTypeEnum) diff --git a/google/ads/google_ads/v1/proto/enums/parental_status_type_pb2_grpc.py b/google/ads/google_ads/v4/proto/enums/media_type_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/enums/parental_status_type_pb2_grpc.py rename to google/ads/google_ads/v4/proto/enums/media_type_pb2_grpc.py diff --git a/google/ads/google_ads/v4/proto/enums/merchant_center_link_status_pb2.py b/google/ads/google_ads/v4/proto/enums/merchant_center_link_status_pb2.py new file mode 100644 index 000000000..b81ed2c38 --- /dev/null +++ b/google/ads/google_ads/v4/proto/enums/merchant_center_link_status_pb2.py @@ -0,0 +1,102 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/enums/merchant_center_link_status.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/enums/merchant_center_link_status.proto', + package='google.ads.googleads.v4.enums', + syntax='proto3', + serialized_options=_b('\n!com.google.ads.googleads.v4.enumsB\035MerchantCenterLinkStatusProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V4.Enums\312\002\035Google\\Ads\\GoogleAds\\V4\\Enums\352\002!Google::Ads::GoogleAds::V4::Enums'), + serialized_pb=_b('\nEgoogle/ads/googleads_v4/proto/enums/merchant_center_link_status.proto\x12\x1dgoogle.ads.googleads.v4.enums\x1a\x1cgoogle/api/annotations.proto\"r\n\x1cMerchantCenterLinkStatusEnum\"R\n\x18MerchantCenterLinkStatus\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0b\n\x07\x45NABLED\x10\x02\x12\x0b\n\x07PENDING\x10\x03\x42\xf2\x01\n!com.google.ads.googleads.v4.enumsB\x1dMerchantCenterLinkStatusProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V4.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V4\\Enums\xea\x02!Google::Ads::GoogleAds::V4::Enumsb\x06proto3') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_MERCHANTCENTERLINKSTATUSENUM_MERCHANTCENTERLINKSTATUS = _descriptor.EnumDescriptor( + name='MerchantCenterLinkStatus', + full_name='google.ads.googleads.v4.enums.MerchantCenterLinkStatusEnum.MerchantCenterLinkStatus', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='UNSPECIFIED', index=0, number=0, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='UNKNOWN', index=1, number=1, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='ENABLED', index=2, number=2, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='PENDING', index=3, number=3, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=166, + serialized_end=248, +) +_sym_db.RegisterEnumDescriptor(_MERCHANTCENTERLINKSTATUSENUM_MERCHANTCENTERLINKSTATUS) + + +_MERCHANTCENTERLINKSTATUSENUM = _descriptor.Descriptor( + name='MerchantCenterLinkStatusEnum', + full_name='google.ads.googleads.v4.enums.MerchantCenterLinkStatusEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _MERCHANTCENTERLINKSTATUSENUM_MERCHANTCENTERLINKSTATUS, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=134, + serialized_end=248, +) + +_MERCHANTCENTERLINKSTATUSENUM_MERCHANTCENTERLINKSTATUS.containing_type = _MERCHANTCENTERLINKSTATUSENUM +DESCRIPTOR.message_types_by_name['MerchantCenterLinkStatusEnum'] = _MERCHANTCENTERLINKSTATUSENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +MerchantCenterLinkStatusEnum = _reflection.GeneratedProtocolMessageType('MerchantCenterLinkStatusEnum', (_message.Message,), dict( + DESCRIPTOR = _MERCHANTCENTERLINKSTATUSENUM, + __module__ = 'google.ads.googleads_v4.proto.enums.merchant_center_link_status_pb2' + , + __doc__ = """Container for enum describing possible statuses of a Google Merchant + Center link. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.enums.MerchantCenterLinkStatusEnum) + )) +_sym_db.RegisterMessage(MerchantCenterLinkStatusEnum) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/enums/payment_mode_pb2_grpc.py b/google/ads/google_ads/v4/proto/enums/merchant_center_link_status_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/enums/payment_mode_pb2_grpc.py rename to google/ads/google_ads/v4/proto/enums/merchant_center_link_status_pb2_grpc.py diff --git a/google/ads/google_ads/v1/proto/enums/message_placeholder_field_pb2.py b/google/ads/google_ads/v4/proto/enums/message_placeholder_field_pb2.py similarity index 76% rename from google/ads/google_ads/v1/proto/enums/message_placeholder_field_pb2.py rename to google/ads/google_ads/v4/proto/enums/message_placeholder_field_pb2.py index 5ebfb462f..22b01796b 100644 --- a/google/ads/google_ads/v1/proto/enums/message_placeholder_field_pb2.py +++ b/google/ads/google_ads/v4/proto/enums/message_placeholder_field_pb2.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/enums/message_placeholder_field.proto +# source: google/ads/googleads_v4/proto/enums/message_placeholder_field.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) @@ -17,11 +17,11 @@ DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/enums/message_placeholder_field.proto', - package='google.ads.googleads.v1.enums', + name='google/ads/googleads_v4/proto/enums/message_placeholder_field.proto', + package='google.ads.googleads.v4.enums', syntax='proto3', - serialized_options=_b('\n!com.google.ads.googleads.v1.enumsB\034MessagePlaceholderFieldProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v1/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V1.Enums\312\002\035Google\\Ads\\GoogleAds\\V1\\Enums\352\002!Google::Ads::GoogleAds::V1::Enums'), - serialized_pb=_b('\nCgoogle/ads/googleads_v1/proto/enums/message_placeholder_field.proto\x12\x1dgoogle.ads.googleads.v1.enums\x1a\x1cgoogle/api/annotations.proto\"\xbc\x01\n\x1bMessagePlaceholderFieldEnum\"\x9c\x01\n\x17MessagePlaceholderField\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x11\n\rBUSINESS_NAME\x10\x02\x12\x10\n\x0c\x43OUNTRY_CODE\x10\x03\x12\x10\n\x0cPHONE_NUMBER\x10\x04\x12\x1a\n\x16MESSAGE_EXTENSION_TEXT\x10\x05\x12\x10\n\x0cMESSAGE_TEXT\x10\x06\x42\xf1\x01\n!com.google.ads.googleads.v1.enumsB\x1cMessagePlaceholderFieldProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v1/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V1.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V1\\Enums\xea\x02!Google::Ads::GoogleAds::V1::Enumsb\x06proto3') + serialized_options=_b('\n!com.google.ads.googleads.v4.enumsB\034MessagePlaceholderFieldProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V4.Enums\312\002\035Google\\Ads\\GoogleAds\\V4\\Enums\352\002!Google::Ads::GoogleAds::V4::Enums'), + serialized_pb=_b('\nCgoogle/ads/googleads_v4/proto/enums/message_placeholder_field.proto\x12\x1dgoogle.ads.googleads.v4.enums\x1a\x1cgoogle/api/annotations.proto\"\xbc\x01\n\x1bMessagePlaceholderFieldEnum\"\x9c\x01\n\x17MessagePlaceholderField\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x11\n\rBUSINESS_NAME\x10\x02\x12\x10\n\x0c\x43OUNTRY_CODE\x10\x03\x12\x10\n\x0cPHONE_NUMBER\x10\x04\x12\x1a\n\x16MESSAGE_EXTENSION_TEXT\x10\x05\x12\x10\n\x0cMESSAGE_TEXT\x10\x06\x42\xf1\x01\n!com.google.ads.googleads.v4.enumsB\x1cMessagePlaceholderFieldProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V4.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V4\\Enums\xea\x02!Google::Ads::GoogleAds::V4::Enumsb\x06proto3') , dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) @@ -29,7 +29,7 @@ _MESSAGEPLACEHOLDERFIELDENUM_MESSAGEPLACEHOLDERFIELD = _descriptor.EnumDescriptor( name='MessagePlaceholderField', - full_name='google.ads.googleads.v1.enums.MessagePlaceholderFieldEnum.MessagePlaceholderField', + full_name='google.ads.googleads.v4.enums.MessagePlaceholderFieldEnum.MessagePlaceholderField', filename=None, file=DESCRIPTOR, values=[ @@ -72,7 +72,7 @@ _MESSAGEPLACEHOLDERFIELDENUM = _descriptor.Descriptor( name='MessagePlaceholderFieldEnum', - full_name='google.ads.googleads.v1.enums.MessagePlaceholderFieldEnum', + full_name='google.ads.googleads.v4.enums.MessagePlaceholderFieldEnum', filename=None, file=DESCRIPTOR, containing_type=None, @@ -100,11 +100,11 @@ MessagePlaceholderFieldEnum = _reflection.GeneratedProtocolMessageType('MessagePlaceholderFieldEnum', (_message.Message,), dict( DESCRIPTOR = _MESSAGEPLACEHOLDERFIELDENUM, - __module__ = 'google.ads.googleads_v1.proto.enums.message_placeholder_field_pb2' + __module__ = 'google.ads.googleads_v4.proto.enums.message_placeholder_field_pb2' , __doc__ = """Values for Message placeholder fields. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.enums.MessagePlaceholderFieldEnum) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.enums.MessagePlaceholderFieldEnum) )) _sym_db.RegisterMessage(MessagePlaceholderFieldEnum) diff --git a/google/ads/google_ads/v1/proto/enums/placeholder_type_pb2_grpc.py b/google/ads/google_ads/v4/proto/enums/message_placeholder_field_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/enums/placeholder_type_pb2_grpc.py rename to google/ads/google_ads/v4/proto/enums/message_placeholder_field_pb2_grpc.py diff --git a/google/ads/google_ads/v1/proto/enums/mime_type_pb2.py b/google/ads/google_ads/v4/proto/enums/mime_type_pb2.py similarity index 80% rename from google/ads/google_ads/v1/proto/enums/mime_type_pb2.py rename to google/ads/google_ads/v4/proto/enums/mime_type_pb2.py index 304b3de15..8dec0e202 100644 --- a/google/ads/google_ads/v1/proto/enums/mime_type_pb2.py +++ b/google/ads/google_ads/v4/proto/enums/mime_type_pb2.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/enums/mime_type.proto +# source: google/ads/googleads_v4/proto/enums/mime_type.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) @@ -17,11 +17,11 @@ DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/enums/mime_type.proto', - package='google.ads.googleads.v1.enums', + name='google/ads/googleads_v4/proto/enums/mime_type.proto', + package='google.ads.googleads.v4.enums', syntax='proto3', - serialized_options=_b('\n!com.google.ads.googleads.v1.enumsB\rMimeTypeProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v1/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V1.Enums\312\002\035Google\\Ads\\GoogleAds\\V1\\Enums\352\002!Google::Ads::GoogleAds::V1::Enums'), - serialized_pb=_b('\n3google/ads/googleads_v1/proto/enums/mime_type.proto\x12\x1dgoogle.ads.googleads.v1.enums\x1a\x1cgoogle/api/annotations.proto\"\xdc\x01\n\x0cMimeTypeEnum\"\xcb\x01\n\x08MimeType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0e\n\nIMAGE_JPEG\x10\x02\x12\r\n\tIMAGE_GIF\x10\x03\x12\r\n\tIMAGE_PNG\x10\x04\x12\t\n\x05\x46LASH\x10\x05\x12\r\n\tTEXT_HTML\x10\x06\x12\x07\n\x03PDF\x10\x07\x12\n\n\x06MSWORD\x10\x08\x12\x0b\n\x07MSEXCEL\x10\t\x12\x07\n\x03RTF\x10\n\x12\r\n\tAUDIO_WAV\x10\x0b\x12\r\n\tAUDIO_MP3\x10\x0c\x12\x10\n\x0cHTML5_AD_ZIP\x10\rB\xe2\x01\n!com.google.ads.googleads.v1.enumsB\rMimeTypeProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v1/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V1.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V1\\Enums\xea\x02!Google::Ads::GoogleAds::V1::Enumsb\x06proto3') + serialized_options=_b('\n!com.google.ads.googleads.v4.enumsB\rMimeTypeProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V4.Enums\312\002\035Google\\Ads\\GoogleAds\\V4\\Enums\352\002!Google::Ads::GoogleAds::V4::Enums'), + serialized_pb=_b('\n3google/ads/googleads_v4/proto/enums/mime_type.proto\x12\x1dgoogle.ads.googleads.v4.enums\x1a\x1cgoogle/api/annotations.proto\"\xdc\x01\n\x0cMimeTypeEnum\"\xcb\x01\n\x08MimeType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0e\n\nIMAGE_JPEG\x10\x02\x12\r\n\tIMAGE_GIF\x10\x03\x12\r\n\tIMAGE_PNG\x10\x04\x12\t\n\x05\x46LASH\x10\x05\x12\r\n\tTEXT_HTML\x10\x06\x12\x07\n\x03PDF\x10\x07\x12\n\n\x06MSWORD\x10\x08\x12\x0b\n\x07MSEXCEL\x10\t\x12\x07\n\x03RTF\x10\n\x12\r\n\tAUDIO_WAV\x10\x0b\x12\r\n\tAUDIO_MP3\x10\x0c\x12\x10\n\x0cHTML5_AD_ZIP\x10\rB\xe2\x01\n!com.google.ads.googleads.v4.enumsB\rMimeTypeProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V4.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V4\\Enums\xea\x02!Google::Ads::GoogleAds::V4::Enumsb\x06proto3') , dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) @@ -29,7 +29,7 @@ _MIMETYPEENUM_MIMETYPE = _descriptor.EnumDescriptor( name='MimeType', - full_name='google.ads.googleads.v1.enums.MimeTypeEnum.MimeType', + full_name='google.ads.googleads.v4.enums.MimeTypeEnum.MimeType', filename=None, file=DESCRIPTOR, values=[ @@ -100,7 +100,7 @@ _MIMETYPEENUM = _descriptor.Descriptor( name='MimeTypeEnum', - full_name='google.ads.googleads.v1.enums.MimeTypeEnum', + full_name='google.ads.googleads.v4.enums.MimeTypeEnum', filename=None, file=DESCRIPTOR, containing_type=None, @@ -128,11 +128,11 @@ MimeTypeEnum = _reflection.GeneratedProtocolMessageType('MimeTypeEnum', (_message.Message,), dict( DESCRIPTOR = _MIMETYPEENUM, - __module__ = 'google.ads.googleads_v1.proto.enums.mime_type_pb2' + __module__ = 'google.ads.googleads_v4.proto.enums.mime_type_pb2' , __doc__ = """Container for enum describing the mime types. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.enums.MimeTypeEnum) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.enums.MimeTypeEnum) )) _sym_db.RegisterMessage(MimeTypeEnum) diff --git a/google/ads/google_ads/v1/proto/enums/placement_type_pb2_grpc.py b/google/ads/google_ads/v4/proto/enums/mime_type_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/enums/placement_type_pb2_grpc.py rename to google/ads/google_ads/v4/proto/enums/mime_type_pb2_grpc.py diff --git a/google/ads/google_ads/v4/proto/enums/minute_of_hour_pb2.py b/google/ads/google_ads/v4/proto/enums/minute_of_hour_pb2.py new file mode 100644 index 000000000..60260aece --- /dev/null +++ b/google/ads/google_ads/v4/proto/enums/minute_of_hour_pb2.py @@ -0,0 +1,109 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/enums/minute_of_hour.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/enums/minute_of_hour.proto', + package='google.ads.googleads.v4.enums', + syntax='proto3', + serialized_options=_b('\n!com.google.ads.googleads.v4.enumsB\021MinuteOfHourProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V4.Enums\312\002\035Google\\Ads\\GoogleAds\\V4\\Enums\352\002!Google::Ads::GoogleAds::V4::Enums'), + serialized_pb=_b('\n8google/ads/googleads_v4/proto/enums/minute_of_hour.proto\x12\x1dgoogle.ads.googleads.v4.enums\x1a\x1cgoogle/api/annotations.proto\"s\n\x10MinuteOfHourEnum\"_\n\x0cMinuteOfHour\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x08\n\x04ZERO\x10\x02\x12\x0b\n\x07\x46IFTEEN\x10\x03\x12\n\n\x06THIRTY\x10\x04\x12\x0e\n\nFORTY_FIVE\x10\x05\x42\xe6\x01\n!com.google.ads.googleads.v4.enumsB\x11MinuteOfHourProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V4.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V4\\Enums\xea\x02!Google::Ads::GoogleAds::V4::Enumsb\x06proto3') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_MINUTEOFHOURENUM_MINUTEOFHOUR = _descriptor.EnumDescriptor( + name='MinuteOfHour', + full_name='google.ads.googleads.v4.enums.MinuteOfHourEnum.MinuteOfHour', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='UNSPECIFIED', index=0, number=0, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='UNKNOWN', index=1, number=1, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='ZERO', index=2, number=2, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='FIFTEEN', index=3, number=3, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='THIRTY', index=4, number=4, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='FORTY_FIVE', index=5, number=5, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=141, + serialized_end=236, +) +_sym_db.RegisterEnumDescriptor(_MINUTEOFHOURENUM_MINUTEOFHOUR) + + +_MINUTEOFHOURENUM = _descriptor.Descriptor( + name='MinuteOfHourEnum', + full_name='google.ads.googleads.v4.enums.MinuteOfHourEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _MINUTEOFHOURENUM_MINUTEOFHOUR, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=121, + serialized_end=236, +) + +_MINUTEOFHOURENUM_MINUTEOFHOUR.containing_type = _MINUTEOFHOURENUM +DESCRIPTOR.message_types_by_name['MinuteOfHourEnum'] = _MINUTEOFHOURENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +MinuteOfHourEnum = _reflection.GeneratedProtocolMessageType('MinuteOfHourEnum', (_message.Message,), dict( + DESCRIPTOR = _MINUTEOFHOURENUM, + __module__ = 'google.ads.googleads_v4.proto.enums.minute_of_hour_pb2' + , + __doc__ = """Container for enumeration of quarter-hours. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.enums.MinuteOfHourEnum) + )) +_sym_db.RegisterMessage(MinuteOfHourEnum) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/enums/policy_approval_status_pb2_grpc.py b/google/ads/google_ads/v4/proto/enums/minute_of_hour_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/enums/policy_approval_status_pb2_grpc.py rename to google/ads/google_ads/v4/proto/enums/minute_of_hour_pb2_grpc.py diff --git a/google/ads/google_ads/v4/proto/enums/mobile_app_vendor_pb2.py b/google/ads/google_ads/v4/proto/enums/mobile_app_vendor_pb2.py new file mode 100644 index 000000000..f72130ecd --- /dev/null +++ b/google/ads/google_ads/v4/proto/enums/mobile_app_vendor_pb2.py @@ -0,0 +1,101 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/enums/mobile_app_vendor.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/enums/mobile_app_vendor.proto', + package='google.ads.googleads.v4.enums', + syntax='proto3', + serialized_options=_b('\n!com.google.ads.googleads.v4.enumsB\024MobileAppVendorProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V4.Enums\312\002\035Google\\Ads\\GoogleAds\\V4\\Enums\352\002!Google::Ads::GoogleAds::V4::Enums'), + serialized_pb=_b('\n;google/ads/googleads_v4/proto/enums/mobile_app_vendor.proto\x12\x1dgoogle.ads.googleads.v4.enums\x1a\x1cgoogle/api/annotations.proto\"q\n\x13MobileAppVendorEnum\"Z\n\x0fMobileAppVendor\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x13\n\x0f\x41PPLE_APP_STORE\x10\x02\x12\x14\n\x10GOOGLE_APP_STORE\x10\x03\x42\xe9\x01\n!com.google.ads.googleads.v4.enumsB\x14MobileAppVendorProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V4.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V4\\Enums\xea\x02!Google::Ads::GoogleAds::V4::Enumsb\x06proto3') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_MOBILEAPPVENDORENUM_MOBILEAPPVENDOR = _descriptor.EnumDescriptor( + name='MobileAppVendor', + full_name='google.ads.googleads.v4.enums.MobileAppVendorEnum.MobileAppVendor', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='UNSPECIFIED', index=0, number=0, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='UNKNOWN', index=1, number=1, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='APPLE_APP_STORE', index=2, number=2, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='GOOGLE_APP_STORE', index=3, number=3, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=147, + serialized_end=237, +) +_sym_db.RegisterEnumDescriptor(_MOBILEAPPVENDORENUM_MOBILEAPPVENDOR) + + +_MOBILEAPPVENDORENUM = _descriptor.Descriptor( + name='MobileAppVendorEnum', + full_name='google.ads.googleads.v4.enums.MobileAppVendorEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _MOBILEAPPVENDORENUM_MOBILEAPPVENDOR, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=124, + serialized_end=237, +) + +_MOBILEAPPVENDORENUM_MOBILEAPPVENDOR.containing_type = _MOBILEAPPVENDORENUM +DESCRIPTOR.message_types_by_name['MobileAppVendorEnum'] = _MOBILEAPPVENDORENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +MobileAppVendorEnum = _reflection.GeneratedProtocolMessageType('MobileAppVendorEnum', (_message.Message,), dict( + DESCRIPTOR = _MOBILEAPPVENDORENUM, + __module__ = 'google.ads.googleads_v4.proto.enums.mobile_app_vendor_pb2' + , + __doc__ = """Container for enum describing different types of mobile app vendors. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.enums.MobileAppVendorEnum) + )) +_sym_db.RegisterMessage(MobileAppVendorEnum) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/enums/policy_review_status_pb2_grpc.py b/google/ads/google_ads/v4/proto/enums/mobile_app_vendor_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/enums/policy_review_status_pb2_grpc.py rename to google/ads/google_ads/v4/proto/enums/mobile_app_vendor_pb2_grpc.py diff --git a/google/ads/google_ads/v4/proto/enums/mobile_device_type_pb2.py b/google/ads/google_ads/v4/proto/enums/mobile_device_type_pb2.py new file mode 100644 index 000000000..02b2207ee --- /dev/null +++ b/google/ads/google_ads/v4/proto/enums/mobile_device_type_pb2.py @@ -0,0 +1,101 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/enums/mobile_device_type.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/enums/mobile_device_type.proto', + package='google.ads.googleads.v4.enums', + syntax='proto3', + serialized_options=_b('\n!com.google.ads.googleads.v4.enumsB\025MobileDeviceTypeProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V4.Enums\312\002\035Google\\Ads\\GoogleAds\\V4\\Enums\352\002!Google::Ads::GoogleAds::V4::Enums'), + serialized_pb=_b('\ngoogle/ads/googleads_v1/proto/enums/parental_status_type.proto\x12\x1dgoogle.ads.googleads.v1.enums\x1a\x1cgoogle/api/annotations.proto\"\x7f\n\x16ParentalStatusTypeEnum\"e\n\x12ParentalStatusType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0b\n\x06PARENT\x10\xac\x02\x12\x11\n\x0cNOT_A_PARENT\x10\xad\x02\x12\x11\n\x0cUNDETERMINED\x10\xae\x02\x42\xec\x01\n!com.google.ads.googleads.v1.enumsB\x17ParentalStatusTypeProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v1/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V1.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V1\\Enums\xea\x02!Google::Ads::GoogleAds::V1::Enumsb\x06proto3') + serialized_options=_b('\n!com.google.ads.googleads.v4.enumsB\027ParentalStatusTypeProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V4.Enums\312\002\035Google\\Ads\\GoogleAds\\V4\\Enums\352\002!Google::Ads::GoogleAds::V4::Enums'), + serialized_pb=_b('\n>google/ads/googleads_v4/proto/enums/parental_status_type.proto\x12\x1dgoogle.ads.googleads.v4.enums\x1a\x1cgoogle/api/annotations.proto\"\x7f\n\x16ParentalStatusTypeEnum\"e\n\x12ParentalStatusType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0b\n\x06PARENT\x10\xac\x02\x12\x11\n\x0cNOT_A_PARENT\x10\xad\x02\x12\x11\n\x0cUNDETERMINED\x10\xae\x02\x42\xec\x01\n!com.google.ads.googleads.v4.enumsB\x17ParentalStatusTypeProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V4.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V4\\Enums\xea\x02!Google::Ads::GoogleAds::V4::Enumsb\x06proto3') , dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) @@ -29,7 +29,7 @@ _PARENTALSTATUSTYPEENUM_PARENTALSTATUSTYPE = _descriptor.EnumDescriptor( name='ParentalStatusType', - full_name='google.ads.googleads.v1.enums.ParentalStatusTypeEnum.ParentalStatusType', + full_name='google.ads.googleads.v4.enums.ParentalStatusTypeEnum.ParentalStatusType', filename=None, file=DESCRIPTOR, values=[ @@ -64,7 +64,7 @@ _PARENTALSTATUSTYPEENUM = _descriptor.Descriptor( name='ParentalStatusTypeEnum', - full_name='google.ads.googleads.v1.enums.ParentalStatusTypeEnum', + full_name='google.ads.googleads.v4.enums.ParentalStatusTypeEnum', filename=None, file=DESCRIPTOR, containing_type=None, @@ -92,11 +92,11 @@ ParentalStatusTypeEnum = _reflection.GeneratedProtocolMessageType('ParentalStatusTypeEnum', (_message.Message,), dict( DESCRIPTOR = _PARENTALSTATUSTYPEENUM, - __module__ = 'google.ads.googleads_v1.proto.enums.parental_status_type_pb2' + __module__ = 'google.ads.googleads_v4.proto.enums.parental_status_type_pb2' , __doc__ = """Container for enum describing the type of demographic parental statuses. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.enums.ParentalStatusTypeEnum) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.enums.ParentalStatusTypeEnum) )) _sym_db.RegisterMessage(ParentalStatusTypeEnum) diff --git a/google/ads/google_ads/v1/proto/enums/product_bidding_category_level_pb2_grpc.py b/google/ads/google_ads/v4/proto/enums/parental_status_type_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/enums/product_bidding_category_level_pb2_grpc.py rename to google/ads/google_ads/v4/proto/enums/parental_status_type_pb2_grpc.py diff --git a/google/ads/google_ads/v4/proto/enums/payment_mode_pb2.py b/google/ads/google_ads/v4/proto/enums/payment_mode_pb2.py new file mode 100644 index 000000000..fda55fa02 --- /dev/null +++ b/google/ads/google_ads/v4/proto/enums/payment_mode_pb2.py @@ -0,0 +1,109 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/enums/payment_mode.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/enums/payment_mode.proto', + package='google.ads.googleads.v4.enums', + syntax='proto3', + serialized_options=_b('\n!com.google.ads.googleads.v4.enumsB\020PaymentModeProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V4.Enums\312\002\035Google\\Ads\\GoogleAds\\V4\\Enums\352\002!Google::Ads::GoogleAds::V4::Enums'), + serialized_pb=_b('\n6google/ads/googleads_v4/proto/enums/payment_mode.proto\x12\x1dgoogle.ads.googleads.v4.enums\x1a\x1cgoogle/api/annotations.proto\"\x81\x01\n\x0fPaymentModeEnum\"n\n\x0bPaymentMode\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\n\n\x06\x43LICKS\x10\x04\x12\x14\n\x10\x43ONVERSION_VALUE\x10\x05\x12\x0f\n\x0b\x43ONVERSIONS\x10\x06\x12\x0e\n\nGUEST_STAY\x10\x07\x42\xe5\x01\n!com.google.ads.googleads.v4.enumsB\x10PaymentModeProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V4.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V4\\Enums\xea\x02!Google::Ads::GoogleAds::V4::Enumsb\x06proto3') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_PAYMENTMODEENUM_PAYMENTMODE = _descriptor.EnumDescriptor( + name='PaymentMode', + full_name='google.ads.googleads.v4.enums.PaymentModeEnum.PaymentMode', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='UNSPECIFIED', index=0, number=0, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='UNKNOWN', index=1, number=1, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CLICKS', index=2, number=4, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CONVERSION_VALUE', index=3, number=5, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CONVERSIONS', index=4, number=6, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='GUEST_STAY', index=5, number=7, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=139, + serialized_end=249, +) +_sym_db.RegisterEnumDescriptor(_PAYMENTMODEENUM_PAYMENTMODE) + + +_PAYMENTMODEENUM = _descriptor.Descriptor( + name='PaymentModeEnum', + full_name='google.ads.googleads.v4.enums.PaymentModeEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _PAYMENTMODEENUM_PAYMENTMODE, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=120, + serialized_end=249, +) + +_PAYMENTMODEENUM_PAYMENTMODE.containing_type = _PAYMENTMODEENUM +DESCRIPTOR.message_types_by_name['PaymentModeEnum'] = _PAYMENTMODEENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +PaymentModeEnum = _reflection.GeneratedProtocolMessageType('PaymentModeEnum', (_message.Message,), dict( + DESCRIPTOR = _PAYMENTMODEENUM, + __module__ = 'google.ads.googleads_v4.proto.enums.payment_mode_pb2' + , + __doc__ = """Container for enum describing possible payment modes. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.enums.PaymentModeEnum) + )) +_sym_db.RegisterMessage(PaymentModeEnum) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/enums/product_bidding_category_status_pb2_grpc.py b/google/ads/google_ads/v4/proto/enums/payment_mode_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/enums/product_bidding_category_status_pb2_grpc.py rename to google/ads/google_ads/v4/proto/enums/payment_mode_pb2_grpc.py diff --git a/google/ads/google_ads/v1/proto/enums/placeholder_type_pb2.py b/google/ads/google_ads/v4/proto/enums/placeholder_type_pb2.py similarity index 84% rename from google/ads/google_ads/v1/proto/enums/placeholder_type_pb2.py rename to google/ads/google_ads/v4/proto/enums/placeholder_type_pb2.py index 87eb23e6b..6410df266 100644 --- a/google/ads/google_ads/v1/proto/enums/placeholder_type_pb2.py +++ b/google/ads/google_ads/v4/proto/enums/placeholder_type_pb2.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/enums/placeholder_type.proto +# source: google/ads/googleads_v4/proto/enums/placeholder_type.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) @@ -17,11 +17,11 @@ DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/enums/placeholder_type.proto', - package='google.ads.googleads.v1.enums', + name='google/ads/googleads_v4/proto/enums/placeholder_type.proto', + package='google.ads.googleads.v4.enums', syntax='proto3', - serialized_options=_b('\n!com.google.ads.googleads.v1.enumsB\024PlaceholderTypeProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v1/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V1.Enums\312\002\035Google\\Ads\\GoogleAds\\V1\\Enums\352\002!Google::Ads::GoogleAds::V1::Enums'), - serialized_pb=_b('\n:google/ads/googleads_v1/proto/enums/placeholder_type.proto\x12\x1dgoogle.ads.googleads.v1.enums\x1a\x1cgoogle/api/annotations.proto\"\x90\x03\n\x13PlaceholderTypeEnum\"\xf8\x02\n\x0fPlaceholderType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0c\n\x08SITELINK\x10\x02\x12\x08\n\x04\x43\x41LL\x10\x03\x12\x07\n\x03\x41PP\x10\x04\x12\x0c\n\x08LOCATION\x10\x05\x12\x16\n\x12\x41\x46\x46ILIATE_LOCATION\x10\x06\x12\x0b\n\x07\x43\x41LLOUT\x10\x07\x12\x16\n\x12STRUCTURED_SNIPPET\x10\x08\x12\x0b\n\x07MESSAGE\x10\t\x12\t\n\x05PRICE\x10\n\x12\r\n\tPROMOTION\x10\x0b\x12\x11\n\rAD_CUSTOMIZER\x10\x0c\x12\x15\n\x11\x44YNAMIC_EDUCATION\x10\r\x12\x12\n\x0e\x44YNAMIC_FLIGHT\x10\x0e\x12\x12\n\x0e\x44YNAMIC_CUSTOM\x10\x0f\x12\x11\n\rDYNAMIC_HOTEL\x10\x10\x12\x17\n\x13\x44YNAMIC_REAL_ESTATE\x10\x11\x12\x12\n\x0e\x44YNAMIC_TRAVEL\x10\x12\x12\x11\n\rDYNAMIC_LOCAL\x10\x13\x12\x0f\n\x0b\x44YNAMIC_JOB\x10\x14\x42\xe9\x01\n!com.google.ads.googleads.v1.enumsB\x14PlaceholderTypeProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v1/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V1.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V1\\Enums\xea\x02!Google::Ads::GoogleAds::V1::Enumsb\x06proto3') + serialized_options=_b('\n!com.google.ads.googleads.v4.enumsB\024PlaceholderTypeProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V4.Enums\312\002\035Google\\Ads\\GoogleAds\\V4\\Enums\352\002!Google::Ads::GoogleAds::V4::Enums'), + serialized_pb=_b('\n:google/ads/googleads_v4/proto/enums/placeholder_type.proto\x12\x1dgoogle.ads.googleads.v4.enums\x1a\x1cgoogle/api/annotations.proto\"\x90\x03\n\x13PlaceholderTypeEnum\"\xf8\x02\n\x0fPlaceholderType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0c\n\x08SITELINK\x10\x02\x12\x08\n\x04\x43\x41LL\x10\x03\x12\x07\n\x03\x41PP\x10\x04\x12\x0c\n\x08LOCATION\x10\x05\x12\x16\n\x12\x41\x46\x46ILIATE_LOCATION\x10\x06\x12\x0b\n\x07\x43\x41LLOUT\x10\x07\x12\x16\n\x12STRUCTURED_SNIPPET\x10\x08\x12\x0b\n\x07MESSAGE\x10\t\x12\t\n\x05PRICE\x10\n\x12\r\n\tPROMOTION\x10\x0b\x12\x11\n\rAD_CUSTOMIZER\x10\x0c\x12\x15\n\x11\x44YNAMIC_EDUCATION\x10\r\x12\x12\n\x0e\x44YNAMIC_FLIGHT\x10\x0e\x12\x12\n\x0e\x44YNAMIC_CUSTOM\x10\x0f\x12\x11\n\rDYNAMIC_HOTEL\x10\x10\x12\x17\n\x13\x44YNAMIC_REAL_ESTATE\x10\x11\x12\x12\n\x0e\x44YNAMIC_TRAVEL\x10\x12\x12\x11\n\rDYNAMIC_LOCAL\x10\x13\x12\x0f\n\x0b\x44YNAMIC_JOB\x10\x14\x42\xe9\x01\n!com.google.ads.googleads.v4.enumsB\x14PlaceholderTypeProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V4.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V4\\Enums\xea\x02!Google::Ads::GoogleAds::V4::Enumsb\x06proto3') , dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) @@ -29,7 +29,7 @@ _PLACEHOLDERTYPEENUM_PLACEHOLDERTYPE = _descriptor.EnumDescriptor( name='PlaceholderType', - full_name='google.ads.googleads.v1.enums.PlaceholderTypeEnum.PlaceholderType', + full_name='google.ads.googleads.v4.enums.PlaceholderTypeEnum.PlaceholderType', filename=None, file=DESCRIPTOR, values=[ @@ -128,7 +128,7 @@ _PLACEHOLDERTYPEENUM = _descriptor.Descriptor( name='PlaceholderTypeEnum', - full_name='google.ads.googleads.v1.enums.PlaceholderTypeEnum', + full_name='google.ads.googleads.v4.enums.PlaceholderTypeEnum', filename=None, file=DESCRIPTOR, containing_type=None, @@ -156,12 +156,12 @@ PlaceholderTypeEnum = _reflection.GeneratedProtocolMessageType('PlaceholderTypeEnum', (_message.Message,), dict( DESCRIPTOR = _PLACEHOLDERTYPEENUM, - __module__ = 'google.ads.googleads_v1.proto.enums.placeholder_type_pb2' + __module__ = 'google.ads.googleads_v4.proto.enums.placeholder_type_pb2' , __doc__ = """Container for enum describing possible placeholder types for a feed mapping. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.enums.PlaceholderTypeEnum) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.enums.PlaceholderTypeEnum) )) _sym_db.RegisterMessage(PlaceholderTypeEnum) diff --git a/google/ads/google_ads/v1/proto/enums/product_channel_exclusivity_pb2_grpc.py b/google/ads/google_ads/v4/proto/enums/placeholder_type_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/enums/product_channel_exclusivity_pb2_grpc.py rename to google/ads/google_ads/v4/proto/enums/placeholder_type_pb2_grpc.py diff --git a/google/ads/google_ads/v1/proto/enums/placement_type_pb2.py b/google/ads/google_ads/v4/proto/enums/placement_type_pb2.py similarity index 76% rename from google/ads/google_ads/v1/proto/enums/placement_type_pb2.py rename to google/ads/google_ads/v4/proto/enums/placement_type_pb2.py index 05e74ffd4..ef14db887 100644 --- a/google/ads/google_ads/v1/proto/enums/placement_type_pb2.py +++ b/google/ads/google_ads/v4/proto/enums/placement_type_pb2.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/enums/placement_type.proto +# source: google/ads/googleads_v4/proto/enums/placement_type.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) @@ -17,11 +17,11 @@ DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/enums/placement_type.proto', - package='google.ads.googleads.v1.enums', + name='google/ads/googleads_v4/proto/enums/placement_type.proto', + package='google.ads.googleads.v4.enums', syntax='proto3', - serialized_options=_b('\n!com.google.ads.googleads.v1.enumsB\022PlacementTypeProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v1/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V1.Enums\312\002\035Google\\Ads\\GoogleAds\\V1\\Enums\352\002!Google::Ads::GoogleAds::V1::Enums'), - serialized_pb=_b('\n8google/ads/googleads_v1/proto/enums/placement_type.proto\x12\x1dgoogle.ads.googleads.v1.enums\x1a\x1cgoogle/api/annotations.proto\"\xa9\x01\n\x11PlacementTypeEnum\"\x93\x01\n\rPlacementType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0b\n\x07WEBSITE\x10\x02\x12\x17\n\x13MOBILE_APP_CATEGORY\x10\x03\x12\x16\n\x12MOBILE_APPLICATION\x10\x04\x12\x11\n\rYOUTUBE_VIDEO\x10\x05\x12\x13\n\x0fYOUTUBE_CHANNEL\x10\x06\x42\xe7\x01\n!com.google.ads.googleads.v1.enumsB\x12PlacementTypeProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v1/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V1.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V1\\Enums\xea\x02!Google::Ads::GoogleAds::V1::Enumsb\x06proto3') + serialized_options=_b('\n!com.google.ads.googleads.v4.enumsB\022PlacementTypeProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V4.Enums\312\002\035Google\\Ads\\GoogleAds\\V4\\Enums\352\002!Google::Ads::GoogleAds::V4::Enums'), + serialized_pb=_b('\n8google/ads/googleads_v4/proto/enums/placement_type.proto\x12\x1dgoogle.ads.googleads.v4.enums\x1a\x1cgoogle/api/annotations.proto\"\xa9\x01\n\x11PlacementTypeEnum\"\x93\x01\n\rPlacementType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0b\n\x07WEBSITE\x10\x02\x12\x17\n\x13MOBILE_APP_CATEGORY\x10\x03\x12\x16\n\x12MOBILE_APPLICATION\x10\x04\x12\x11\n\rYOUTUBE_VIDEO\x10\x05\x12\x13\n\x0fYOUTUBE_CHANNEL\x10\x06\x42\xe7\x01\n!com.google.ads.googleads.v4.enumsB\x12PlacementTypeProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V4.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V4\\Enums\xea\x02!Google::Ads::GoogleAds::V4::Enumsb\x06proto3') , dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) @@ -29,7 +29,7 @@ _PLACEMENTTYPEENUM_PLACEMENTTYPE = _descriptor.EnumDescriptor( name='PlacementType', - full_name='google.ads.googleads.v1.enums.PlacementTypeEnum.PlacementType', + full_name='google.ads.googleads.v4.enums.PlacementTypeEnum.PlacementType', filename=None, file=DESCRIPTOR, values=[ @@ -72,7 +72,7 @@ _PLACEMENTTYPEENUM = _descriptor.Descriptor( name='PlacementTypeEnum', - full_name='google.ads.googleads.v1.enums.PlacementTypeEnum', + full_name='google.ads.googleads.v4.enums.PlacementTypeEnum', filename=None, file=DESCRIPTOR, containing_type=None, @@ -100,11 +100,11 @@ PlacementTypeEnum = _reflection.GeneratedProtocolMessageType('PlacementTypeEnum', (_message.Message,), dict( DESCRIPTOR = _PLACEMENTTYPEENUM, - __module__ = 'google.ads.googleads_v1.proto.enums.placement_type_pb2' + __module__ = 'google.ads.googleads_v4.proto.enums.placement_type_pb2' , __doc__ = """Container for enum describing possible placement types. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.enums.PlacementTypeEnum) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.enums.PlacementTypeEnum) )) _sym_db.RegisterMessage(PlacementTypeEnum) diff --git a/google/ads/google_ads/v1/proto/enums/product_channel_pb2_grpc.py b/google/ads/google_ads/v4/proto/enums/placement_type_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/enums/product_channel_pb2_grpc.py rename to google/ads/google_ads/v4/proto/enums/placement_type_pb2_grpc.py diff --git a/google/ads/google_ads/v1/proto/enums/policy_approval_status_pb2.py b/google/ads/google_ads/v4/proto/enums/policy_approval_status_pb2.py similarity index 76% rename from google/ads/google_ads/v1/proto/enums/policy_approval_status_pb2.py rename to google/ads/google_ads/v4/proto/enums/policy_approval_status_pb2.py index 0a49ac5f6..33bf9619b 100644 --- a/google/ads/google_ads/v1/proto/enums/policy_approval_status_pb2.py +++ b/google/ads/google_ads/v4/proto/enums/policy_approval_status_pb2.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/enums/policy_approval_status.proto +# source: google/ads/googleads_v4/proto/enums/policy_approval_status.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) @@ -17,11 +17,11 @@ DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/enums/policy_approval_status.proto', - package='google.ads.googleads.v1.enums', + name='google/ads/googleads_v4/proto/enums/policy_approval_status.proto', + package='google.ads.googleads.v4.enums', syntax='proto3', - serialized_options=_b('\n!com.google.ads.googleads.v1.enumsB\031PolicyApprovalStatusProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v1/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V1.Enums\312\002\035Google\\Ads\\GoogleAds\\V1\\Enums\352\002!Google::Ads::GoogleAds::V1::Enums'), - serialized_pb=_b('\n@google/ads/googleads_v1/proto/enums/policy_approval_status.proto\x12\x1dgoogle.ads.googleads.v1.enums\x1a\x1cgoogle/api/annotations.proto\"\xa1\x01\n\x18PolicyApprovalStatusEnum\"\x84\x01\n\x14PolicyApprovalStatus\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0f\n\x0b\x44ISAPPROVED\x10\x02\x12\x14\n\x10\x41PPROVED_LIMITED\x10\x03\x12\x0c\n\x08\x41PPROVED\x10\x04\x12\x19\n\x15\x41REA_OF_INTEREST_ONLY\x10\x05\x42\xee\x01\n!com.google.ads.googleads.v1.enumsB\x19PolicyApprovalStatusProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v1/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V1.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V1\\Enums\xea\x02!Google::Ads::GoogleAds::V1::Enumsb\x06proto3') + serialized_options=_b('\n!com.google.ads.googleads.v4.enumsB\031PolicyApprovalStatusProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V4.Enums\312\002\035Google\\Ads\\GoogleAds\\V4\\Enums\352\002!Google::Ads::GoogleAds::V4::Enums'), + serialized_pb=_b('\n@google/ads/googleads_v4/proto/enums/policy_approval_status.proto\x12\x1dgoogle.ads.googleads.v4.enums\x1a\x1cgoogle/api/annotations.proto\"\xa1\x01\n\x18PolicyApprovalStatusEnum\"\x84\x01\n\x14PolicyApprovalStatus\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0f\n\x0b\x44ISAPPROVED\x10\x02\x12\x14\n\x10\x41PPROVED_LIMITED\x10\x03\x12\x0c\n\x08\x41PPROVED\x10\x04\x12\x19\n\x15\x41REA_OF_INTEREST_ONLY\x10\x05\x42\xee\x01\n!com.google.ads.googleads.v4.enumsB\x19PolicyApprovalStatusProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V4.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V4\\Enums\xea\x02!Google::Ads::GoogleAds::V4::Enumsb\x06proto3') , dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) @@ -29,7 +29,7 @@ _POLICYAPPROVALSTATUSENUM_POLICYAPPROVALSTATUS = _descriptor.EnumDescriptor( name='PolicyApprovalStatus', - full_name='google.ads.googleads.v1.enums.PolicyApprovalStatusEnum.PolicyApprovalStatus', + full_name='google.ads.googleads.v4.enums.PolicyApprovalStatusEnum.PolicyApprovalStatus', filename=None, file=DESCRIPTOR, values=[ @@ -68,7 +68,7 @@ _POLICYAPPROVALSTATUSENUM = _descriptor.Descriptor( name='PolicyApprovalStatusEnum', - full_name='google.ads.googleads.v1.enums.PolicyApprovalStatusEnum', + full_name='google.ads.googleads.v4.enums.PolicyApprovalStatusEnum', filename=None, file=DESCRIPTOR, containing_type=None, @@ -96,11 +96,11 @@ PolicyApprovalStatusEnum = _reflection.GeneratedProtocolMessageType('PolicyApprovalStatusEnum', (_message.Message,), dict( DESCRIPTOR = _POLICYAPPROVALSTATUSENUM, - __module__ = 'google.ads.googleads_v1.proto.enums.policy_approval_status_pb2' + __module__ = 'google.ads.googleads_v4.proto.enums.policy_approval_status_pb2' , __doc__ = """Container for enum describing possible policy approval statuses. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.enums.PolicyApprovalStatusEnum) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.enums.PolicyApprovalStatusEnum) )) _sym_db.RegisterMessage(PolicyApprovalStatusEnum) diff --git a/google/ads/google_ads/v1/proto/enums/product_condition_pb2_grpc.py b/google/ads/google_ads/v4/proto/enums/policy_approval_status_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/enums/product_condition_pb2_grpc.py rename to google/ads/google_ads/v4/proto/enums/policy_approval_status_pb2_grpc.py diff --git a/google/ads/google_ads/v4/proto/enums/policy_review_status_pb2.py b/google/ads/google_ads/v4/proto/enums/policy_review_status_pb2.py new file mode 100644 index 000000000..21d44bc10 --- /dev/null +++ b/google/ads/google_ads/v4/proto/enums/policy_review_status_pb2.py @@ -0,0 +1,109 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/enums/policy_review_status.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/enums/policy_review_status.proto', + package='google.ads.googleads.v4.enums', + syntax='proto3', + serialized_options=_b('\n!com.google.ads.googleads.v4.enumsB\027PolicyReviewStatusProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V4.Enums\312\002\035Google\\Ads\\GoogleAds\\V4\\Enums\352\002!Google::Ads::GoogleAds::V4::Enums'), + serialized_pb=_b('\n>google/ads/googleads_v4/proto/enums/policy_review_status.proto\x12\x1dgoogle.ads.googleads.v4.enums\x1a\x1cgoogle/api/annotations.proto\"\x9d\x01\n\x16PolicyReviewStatusEnum\"\x82\x01\n\x12PolicyReviewStatus\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x16\n\x12REVIEW_IN_PROGRESS\x10\x02\x12\x0c\n\x08REVIEWED\x10\x03\x12\x10\n\x0cUNDER_APPEAL\x10\x04\x12\x16\n\x12\x45LIGIBLE_MAY_SERVE\x10\x05\x42\xec\x01\n!com.google.ads.googleads.v4.enumsB\x17PolicyReviewStatusProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V4.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V4\\Enums\xea\x02!Google::Ads::GoogleAds::V4::Enumsb\x06proto3') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_POLICYREVIEWSTATUSENUM_POLICYREVIEWSTATUS = _descriptor.EnumDescriptor( + name='PolicyReviewStatus', + full_name='google.ads.googleads.v4.enums.PolicyReviewStatusEnum.PolicyReviewStatus', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='UNSPECIFIED', index=0, number=0, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='UNKNOWN', index=1, number=1, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='REVIEW_IN_PROGRESS', index=2, number=2, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='REVIEWED', index=3, number=3, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='UNDER_APPEAL', index=4, number=4, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='ELIGIBLE_MAY_SERVE', index=5, number=5, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=155, + serialized_end=285, +) +_sym_db.RegisterEnumDescriptor(_POLICYREVIEWSTATUSENUM_POLICYREVIEWSTATUS) + + +_POLICYREVIEWSTATUSENUM = _descriptor.Descriptor( + name='PolicyReviewStatusEnum', + full_name='google.ads.googleads.v4.enums.PolicyReviewStatusEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _POLICYREVIEWSTATUSENUM_POLICYREVIEWSTATUS, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=128, + serialized_end=285, +) + +_POLICYREVIEWSTATUSENUM_POLICYREVIEWSTATUS.containing_type = _POLICYREVIEWSTATUSENUM +DESCRIPTOR.message_types_by_name['PolicyReviewStatusEnum'] = _POLICYREVIEWSTATUSENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +PolicyReviewStatusEnum = _reflection.GeneratedProtocolMessageType('PolicyReviewStatusEnum', (_message.Message,), dict( + DESCRIPTOR = _POLICYREVIEWSTATUSENUM, + __module__ = 'google.ads.googleads_v4.proto.enums.policy_review_status_pb2' + , + __doc__ = """Container for enum describing possible policy review statuses. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.enums.PolicyReviewStatusEnum) + )) +_sym_db.RegisterMessage(PolicyReviewStatusEnum) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/enums/product_type_level_pb2_grpc.py b/google/ads/google_ads/v4/proto/enums/policy_review_status_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/enums/product_type_level_pb2_grpc.py rename to google/ads/google_ads/v4/proto/enums/policy_review_status_pb2_grpc.py diff --git a/google/ads/google_ads/v1/proto/enums/policy_topic_entry_type_pb2.py b/google/ads/google_ads/v4/proto/enums/policy_topic_entry_type_pb2.py similarity index 78% rename from google/ads/google_ads/v1/proto/enums/policy_topic_entry_type_pb2.py rename to google/ads/google_ads/v4/proto/enums/policy_topic_entry_type_pb2.py index 26d2e0545..dca4dd4a2 100644 --- a/google/ads/google_ads/v1/proto/enums/policy_topic_entry_type_pb2.py +++ b/google/ads/google_ads/v4/proto/enums/policy_topic_entry_type_pb2.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/enums/policy_topic_entry_type.proto +# source: google/ads/googleads_v4/proto/enums/policy_topic_entry_type.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) @@ -17,11 +17,11 @@ DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/enums/policy_topic_entry_type.proto', - package='google.ads.googleads.v1.enums', + name='google/ads/googleads_v4/proto/enums/policy_topic_entry_type.proto', + package='google.ads.googleads.v4.enums', syntax='proto3', - serialized_options=_b('\n!com.google.ads.googleads.v1.enumsB\031PolicyTopicEntryTypeProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v1/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V1.Enums\312\002\035Google\\Ads\\GoogleAds\\V1\\Enums\352\002!Google::Ads::GoogleAds::V1::Enums'), - serialized_pb=_b('\nAgoogle/ads/googleads_v1/proto/enums/policy_topic_entry_type.proto\x12\x1dgoogle.ads.googleads.v1.enums\x1a\x1cgoogle/api/annotations.proto\"\xbd\x01\n\x18PolicyTopicEntryTypeEnum\"\xa0\x01\n\x14PolicyTopicEntryType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0e\n\nPROHIBITED\x10\x02\x12\x0b\n\x07LIMITED\x10\x04\x12\x11\n\rFULLY_LIMITED\x10\x08\x12\x0f\n\x0b\x44\x45SCRIPTIVE\x10\x05\x12\x0e\n\nBROADENING\x10\x06\x12\x19\n\x15\x41REA_OF_INTEREST_ONLY\x10\x07\x42\xee\x01\n!com.google.ads.googleads.v1.enumsB\x19PolicyTopicEntryTypeProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v1/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V1.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V1\\Enums\xea\x02!Google::Ads::GoogleAds::V1::Enumsb\x06proto3') + serialized_options=_b('\n!com.google.ads.googleads.v4.enumsB\031PolicyTopicEntryTypeProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V4.Enums\312\002\035Google\\Ads\\GoogleAds\\V4\\Enums\352\002!Google::Ads::GoogleAds::V4::Enums'), + serialized_pb=_b('\nAgoogle/ads/googleads_v4/proto/enums/policy_topic_entry_type.proto\x12\x1dgoogle.ads.googleads.v4.enums\x1a\x1cgoogle/api/annotations.proto\"\xbd\x01\n\x18PolicyTopicEntryTypeEnum\"\xa0\x01\n\x14PolicyTopicEntryType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0e\n\nPROHIBITED\x10\x02\x12\x0b\n\x07LIMITED\x10\x04\x12\x11\n\rFULLY_LIMITED\x10\x08\x12\x0f\n\x0b\x44\x45SCRIPTIVE\x10\x05\x12\x0e\n\nBROADENING\x10\x06\x12\x19\n\x15\x41REA_OF_INTEREST_ONLY\x10\x07\x42\xee\x01\n!com.google.ads.googleads.v4.enumsB\x19PolicyTopicEntryTypeProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V4.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V4\\Enums\xea\x02!Google::Ads::GoogleAds::V4::Enumsb\x06proto3') , dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) @@ -29,7 +29,7 @@ _POLICYTOPICENTRYTYPEENUM_POLICYTOPICENTRYTYPE = _descriptor.EnumDescriptor( name='PolicyTopicEntryType', - full_name='google.ads.googleads.v1.enums.PolicyTopicEntryTypeEnum.PolicyTopicEntryType', + full_name='google.ads.googleads.v4.enums.PolicyTopicEntryTypeEnum.PolicyTopicEntryType', filename=None, file=DESCRIPTOR, values=[ @@ -76,7 +76,7 @@ _POLICYTOPICENTRYTYPEENUM = _descriptor.Descriptor( name='PolicyTopicEntryTypeEnum', - full_name='google.ads.googleads.v1.enums.PolicyTopicEntryTypeEnum', + full_name='google.ads.googleads.v4.enums.PolicyTopicEntryTypeEnum', filename=None, file=DESCRIPTOR, containing_type=None, @@ -104,11 +104,11 @@ PolicyTopicEntryTypeEnum = _reflection.GeneratedProtocolMessageType('PolicyTopicEntryTypeEnum', (_message.Message,), dict( DESCRIPTOR = _POLICYTOPICENTRYTYPEENUM, - __module__ = 'google.ads.googleads_v1.proto.enums.policy_topic_entry_type_pb2' + __module__ = 'google.ads.googleads_v4.proto.enums.policy_topic_entry_type_pb2' , __doc__ = """Container for enum describing possible policy topic entry types. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.enums.PolicyTopicEntryTypeEnum) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.enums.PolicyTopicEntryTypeEnum) )) _sym_db.RegisterMessage(PolicyTopicEntryTypeEnum) diff --git a/google/ads/google_ads/v1/proto/enums/promotion_extension_discount_modifier_pb2_grpc.py b/google/ads/google_ads/v4/proto/enums/policy_topic_entry_type_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/enums/promotion_extension_discount_modifier_pb2_grpc.py rename to google/ads/google_ads/v4/proto/enums/policy_topic_entry_type_pb2_grpc.py diff --git a/google/ads/google_ads/v1/proto/enums/policy_topic_evidence_destination_mismatch_url_type_pb2.py b/google/ads/google_ads/v4/proto/enums/policy_topic_evidence_destination_mismatch_url_type_pb2.py similarity index 80% rename from google/ads/google_ads/v1/proto/enums/policy_topic_evidence_destination_mismatch_url_type_pb2.py rename to google/ads/google_ads/v4/proto/enums/policy_topic_evidence_destination_mismatch_url_type_pb2.py index 49ae5f873..200b1d474 100644 --- a/google/ads/google_ads/v1/proto/enums/policy_topic_evidence_destination_mismatch_url_type_pb2.py +++ b/google/ads/google_ads/v4/proto/enums/policy_topic_evidence_destination_mismatch_url_type_pb2.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/enums/policy_topic_evidence_destination_mismatch_url_type.proto +# source: google/ads/googleads_v4/proto/enums/policy_topic_evidence_destination_mismatch_url_type.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) @@ -17,11 +17,11 @@ DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/enums/policy_topic_evidence_destination_mismatch_url_type.proto', - package='google.ads.googleads.v1.enums', + name='google/ads/googleads_v4/proto/enums/policy_topic_evidence_destination_mismatch_url_type.proto', + package='google.ads.googleads.v4.enums', syntax='proto3', - serialized_options=_b('\n!com.google.ads.googleads.v1.enumsB2PolicyTopicEvidenceDestinationMismatchUrlTypeProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v1/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V1.Enums\312\002\035Google\\Ads\\GoogleAds\\V1\\Enums\352\002!Google::Ads::GoogleAds::V1::Enums'), - serialized_pb=_b('\n]google/ads/googleads_v1/proto/enums/policy_topic_evidence_destination_mismatch_url_type.proto\x12\x1dgoogle.ads.googleads.v1.enums\x1a\x1cgoogle/api/annotations.proto\"\xe4\x01\n1PolicyTopicEvidenceDestinationMismatchUrlTypeEnum\"\xae\x01\n-PolicyTopicEvidenceDestinationMismatchUrlType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0f\n\x0b\x44ISPLAY_URL\x10\x02\x12\r\n\tFINAL_URL\x10\x03\x12\x14\n\x10\x46INAL_MOBILE_URL\x10\x04\x12\x10\n\x0cTRACKING_URL\x10\x05\x12\x17\n\x13MOBILE_TRACKING_URL\x10\x06\x42\x87\x02\n!com.google.ads.googleads.v1.enumsB2PolicyTopicEvidenceDestinationMismatchUrlTypeProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v1/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V1.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V1\\Enums\xea\x02!Google::Ads::GoogleAds::V1::Enumsb\x06proto3') + serialized_options=_b('\n!com.google.ads.googleads.v4.enumsB2PolicyTopicEvidenceDestinationMismatchUrlTypeProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V4.Enums\312\002\035Google\\Ads\\GoogleAds\\V4\\Enums\352\002!Google::Ads::GoogleAds::V4::Enums'), + serialized_pb=_b('\n]google/ads/googleads_v4/proto/enums/policy_topic_evidence_destination_mismatch_url_type.proto\x12\x1dgoogle.ads.googleads.v4.enums\x1a\x1cgoogle/api/annotations.proto\"\xe4\x01\n1PolicyTopicEvidenceDestinationMismatchUrlTypeEnum\"\xae\x01\n-PolicyTopicEvidenceDestinationMismatchUrlType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0f\n\x0b\x44ISPLAY_URL\x10\x02\x12\r\n\tFINAL_URL\x10\x03\x12\x14\n\x10\x46INAL_MOBILE_URL\x10\x04\x12\x10\n\x0cTRACKING_URL\x10\x05\x12\x17\n\x13MOBILE_TRACKING_URL\x10\x06\x42\x87\x02\n!com.google.ads.googleads.v4.enumsB2PolicyTopicEvidenceDestinationMismatchUrlTypeProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V4.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V4\\Enums\xea\x02!Google::Ads::GoogleAds::V4::Enumsb\x06proto3') , dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) @@ -29,7 +29,7 @@ _POLICYTOPICEVIDENCEDESTINATIONMISMATCHURLTYPEENUM_POLICYTOPICEVIDENCEDESTINATIONMISMATCHURLTYPE = _descriptor.EnumDescriptor( name='PolicyTopicEvidenceDestinationMismatchUrlType', - full_name='google.ads.googleads.v1.enums.PolicyTopicEvidenceDestinationMismatchUrlTypeEnum.PolicyTopicEvidenceDestinationMismatchUrlType', + full_name='google.ads.googleads.v4.enums.PolicyTopicEvidenceDestinationMismatchUrlTypeEnum.PolicyTopicEvidenceDestinationMismatchUrlType', filename=None, file=DESCRIPTOR, values=[ @@ -72,7 +72,7 @@ _POLICYTOPICEVIDENCEDESTINATIONMISMATCHURLTYPEENUM = _descriptor.Descriptor( name='PolicyTopicEvidenceDestinationMismatchUrlTypeEnum', - full_name='google.ads.googleads.v1.enums.PolicyTopicEvidenceDestinationMismatchUrlTypeEnum', + full_name='google.ads.googleads.v4.enums.PolicyTopicEvidenceDestinationMismatchUrlTypeEnum', filename=None, file=DESCRIPTOR, containing_type=None, @@ -100,12 +100,12 @@ PolicyTopicEvidenceDestinationMismatchUrlTypeEnum = _reflection.GeneratedProtocolMessageType('PolicyTopicEvidenceDestinationMismatchUrlTypeEnum', (_message.Message,), dict( DESCRIPTOR = _POLICYTOPICEVIDENCEDESTINATIONMISMATCHURLTYPEENUM, - __module__ = 'google.ads.googleads_v1.proto.enums.policy_topic_evidence_destination_mismatch_url_type_pb2' + __module__ = 'google.ads.googleads_v4.proto.enums.policy_topic_evidence_destination_mismatch_url_type_pb2' , __doc__ = """Container for enum describing possible policy topic evidence destination mismatch url types. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.enums.PolicyTopicEvidenceDestinationMismatchUrlTypeEnum) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.enums.PolicyTopicEvidenceDestinationMismatchUrlTypeEnum) )) _sym_db.RegisterMessage(PolicyTopicEvidenceDestinationMismatchUrlTypeEnum) diff --git a/google/ads/google_ads/v1/proto/enums/promotion_extension_occasion_pb2_grpc.py b/google/ads/google_ads/v4/proto/enums/policy_topic_evidence_destination_mismatch_url_type_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/enums/promotion_extension_occasion_pb2_grpc.py rename to google/ads/google_ads/v4/proto/enums/policy_topic_evidence_destination_mismatch_url_type_pb2_grpc.py diff --git a/google/ads/google_ads/v1/proto/enums/policy_topic_evidence_destination_not_working_device_pb2.py b/google/ads/google_ads/v4/proto/enums/policy_topic_evidence_destination_not_working_device_pb2.py similarity index 78% rename from google/ads/google_ads/v1/proto/enums/policy_topic_evidence_destination_not_working_device_pb2.py rename to google/ads/google_ads/v4/proto/enums/policy_topic_evidence_destination_not_working_device_pb2.py index 4ef58779e..935851eb3 100644 --- a/google/ads/google_ads/v1/proto/enums/policy_topic_evidence_destination_not_working_device_pb2.py +++ b/google/ads/google_ads/v4/proto/enums/policy_topic_evidence_destination_not_working_device_pb2.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/enums/policy_topic_evidence_destination_not_working_device.proto +# source: google/ads/googleads_v4/proto/enums/policy_topic_evidence_destination_not_working_device.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) @@ -17,11 +17,11 @@ DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/enums/policy_topic_evidence_destination_not_working_device.proto', - package='google.ads.googleads.v1.enums', + name='google/ads/googleads_v4/proto/enums/policy_topic_evidence_destination_not_working_device.proto', + package='google.ads.googleads.v4.enums', syntax='proto3', - serialized_options=_b('\n!com.google.ads.googleads.v1.enumsB3PolicyTopicEvidenceDestinationNotWorkingDeviceProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v1/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V1.Enums\312\002\035Google\\Ads\\GoogleAds\\V1\\Enums\352\002!Google::Ads::GoogleAds::V1::Enums'), - serialized_pb=_b('\n^google/ads/googleads_v1/proto/enums/policy_topic_evidence_destination_not_working_device.proto\x12\x1dgoogle.ads.googleads.v1.enums\x1a\x1cgoogle/api/annotations.proto\"\xa7\x01\n2PolicyTopicEvidenceDestinationNotWorkingDeviceEnum\"q\n.PolicyTopicEvidenceDestinationNotWorkingDevice\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0b\n\x07\x44\x45SKTOP\x10\x02\x12\x0b\n\x07\x41NDROID\x10\x03\x12\x07\n\x03IOS\x10\x04\x42\x88\x02\n!com.google.ads.googleads.v1.enumsB3PolicyTopicEvidenceDestinationNotWorkingDeviceProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v1/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V1.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V1\\Enums\xea\x02!Google::Ads::GoogleAds::V1::Enumsb\x06proto3') + serialized_options=_b('\n!com.google.ads.googleads.v4.enumsB3PolicyTopicEvidenceDestinationNotWorkingDeviceProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V4.Enums\312\002\035Google\\Ads\\GoogleAds\\V4\\Enums\352\002!Google::Ads::GoogleAds::V4::Enums'), + serialized_pb=_b('\n^google/ads/googleads_v4/proto/enums/policy_topic_evidence_destination_not_working_device.proto\x12\x1dgoogle.ads.googleads.v4.enums\x1a\x1cgoogle/api/annotations.proto\"\xa7\x01\n2PolicyTopicEvidenceDestinationNotWorkingDeviceEnum\"q\n.PolicyTopicEvidenceDestinationNotWorkingDevice\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0b\n\x07\x44\x45SKTOP\x10\x02\x12\x0b\n\x07\x41NDROID\x10\x03\x12\x07\n\x03IOS\x10\x04\x42\x88\x02\n!com.google.ads.googleads.v4.enumsB3PolicyTopicEvidenceDestinationNotWorkingDeviceProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V4.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V4\\Enums\xea\x02!Google::Ads::GoogleAds::V4::Enumsb\x06proto3') , dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) @@ -29,7 +29,7 @@ _POLICYTOPICEVIDENCEDESTINATIONNOTWORKINGDEVICEENUM_POLICYTOPICEVIDENCEDESTINATIONNOTWORKINGDEVICE = _descriptor.EnumDescriptor( name='PolicyTopicEvidenceDestinationNotWorkingDevice', - full_name='google.ads.googleads.v1.enums.PolicyTopicEvidenceDestinationNotWorkingDeviceEnum.PolicyTopicEvidenceDestinationNotWorkingDevice', + full_name='google.ads.googleads.v4.enums.PolicyTopicEvidenceDestinationNotWorkingDeviceEnum.PolicyTopicEvidenceDestinationNotWorkingDevice', filename=None, file=DESCRIPTOR, values=[ @@ -64,7 +64,7 @@ _POLICYTOPICEVIDENCEDESTINATIONNOTWORKINGDEVICEENUM = _descriptor.Descriptor( name='PolicyTopicEvidenceDestinationNotWorkingDeviceEnum', - full_name='google.ads.googleads.v1.enums.PolicyTopicEvidenceDestinationNotWorkingDeviceEnum', + full_name='google.ads.googleads.v4.enums.PolicyTopicEvidenceDestinationNotWorkingDeviceEnum', filename=None, file=DESCRIPTOR, containing_type=None, @@ -92,12 +92,12 @@ PolicyTopicEvidenceDestinationNotWorkingDeviceEnum = _reflection.GeneratedProtocolMessageType('PolicyTopicEvidenceDestinationNotWorkingDeviceEnum', (_message.Message,), dict( DESCRIPTOR = _POLICYTOPICEVIDENCEDESTINATIONNOTWORKINGDEVICEENUM, - __module__ = 'google.ads.googleads_v1.proto.enums.policy_topic_evidence_destination_not_working_device_pb2' + __module__ = 'google.ads.googleads_v4.proto.enums.policy_topic_evidence_destination_not_working_device_pb2' , __doc__ = """Container for enum describing possible policy topic evidence destination not working devices. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.enums.PolicyTopicEvidenceDestinationNotWorkingDeviceEnum) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.enums.PolicyTopicEvidenceDestinationNotWorkingDeviceEnum) )) _sym_db.RegisterMessage(PolicyTopicEvidenceDestinationNotWorkingDeviceEnum) diff --git a/google/ads/google_ads/v1/proto/enums/promotion_placeholder_field_pb2_grpc.py b/google/ads/google_ads/v4/proto/enums/policy_topic_evidence_destination_not_working_device_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/enums/promotion_placeholder_field_pb2_grpc.py rename to google/ads/google_ads/v4/proto/enums/policy_topic_evidence_destination_not_working_device_pb2_grpc.py diff --git a/google/ads/google_ads/v4/proto/enums/policy_topic_evidence_destination_not_working_dns_error_type_pb2.py b/google/ads/google_ads/v4/proto/enums/policy_topic_evidence_destination_not_working_dns_error_type_pb2.py new file mode 100644 index 000000000..2f557da1a --- /dev/null +++ b/google/ads/google_ads/v4/proto/enums/policy_topic_evidence_destination_not_working_dns_error_type_pb2.py @@ -0,0 +1,102 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/enums/policy_topic_evidence_destination_not_working_dns_error_type.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/enums/policy_topic_evidence_destination_not_working_dns_error_type.proto', + package='google.ads.googleads.v4.enums', + syntax='proto3', + serialized_options=_b('\n!com.google.ads.googleads.v4.enumsB9PolicyTopicEvidenceDestinationNotWorkingDnsErrorTypeProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V4.Enums\312\002\035Google\\Ads\\GoogleAds\\V4\\Enums\352\002!Google::Ads::GoogleAds::V4::Enums'), + serialized_pb=_b('\nfgoogle/ads/googleads_v4/proto/enums/policy_topic_evidence_destination_not_working_dns_error_type.proto\x12\x1dgoogle.ads.googleads.v4.enums\x1a\x1cgoogle/api/annotations.proto\"\xc7\x01\n8PolicyTopicEvidenceDestinationNotWorkingDnsErrorTypeEnum\"\x8a\x01\n4PolicyTopicEvidenceDestinationNotWorkingDnsErrorType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x16\n\x12HOSTNAME_NOT_FOUND\x10\x02\x12\x1c\n\x18GOOGLE_CRAWLER_DNS_ISSUE\x10\x03\x42\x8e\x02\n!com.google.ads.googleads.v4.enumsB9PolicyTopicEvidenceDestinationNotWorkingDnsErrorTypeProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V4.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V4\\Enums\xea\x02!Google::Ads::GoogleAds::V4::Enumsb\x06proto3') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_POLICYTOPICEVIDENCEDESTINATIONNOTWORKINGDNSERRORTYPEENUM_POLICYTOPICEVIDENCEDESTINATIONNOTWORKINGDNSERRORTYPE = _descriptor.EnumDescriptor( + name='PolicyTopicEvidenceDestinationNotWorkingDnsErrorType', + full_name='google.ads.googleads.v4.enums.PolicyTopicEvidenceDestinationNotWorkingDnsErrorTypeEnum.PolicyTopicEvidenceDestinationNotWorkingDnsErrorType', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='UNSPECIFIED', index=0, number=0, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='UNKNOWN', index=1, number=1, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='HOSTNAME_NOT_FOUND', index=2, number=2, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='GOOGLE_CRAWLER_DNS_ISSUE', index=3, number=3, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=229, + serialized_end=367, +) +_sym_db.RegisterEnumDescriptor(_POLICYTOPICEVIDENCEDESTINATIONNOTWORKINGDNSERRORTYPEENUM_POLICYTOPICEVIDENCEDESTINATIONNOTWORKINGDNSERRORTYPE) + + +_POLICYTOPICEVIDENCEDESTINATIONNOTWORKINGDNSERRORTYPEENUM = _descriptor.Descriptor( + name='PolicyTopicEvidenceDestinationNotWorkingDnsErrorTypeEnum', + full_name='google.ads.googleads.v4.enums.PolicyTopicEvidenceDestinationNotWorkingDnsErrorTypeEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _POLICYTOPICEVIDENCEDESTINATIONNOTWORKINGDNSERRORTYPEENUM_POLICYTOPICEVIDENCEDESTINATIONNOTWORKINGDNSERRORTYPE, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=168, + serialized_end=367, +) + +_POLICYTOPICEVIDENCEDESTINATIONNOTWORKINGDNSERRORTYPEENUM_POLICYTOPICEVIDENCEDESTINATIONNOTWORKINGDNSERRORTYPE.containing_type = _POLICYTOPICEVIDENCEDESTINATIONNOTWORKINGDNSERRORTYPEENUM +DESCRIPTOR.message_types_by_name['PolicyTopicEvidenceDestinationNotWorkingDnsErrorTypeEnum'] = _POLICYTOPICEVIDENCEDESTINATIONNOTWORKINGDNSERRORTYPEENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +PolicyTopicEvidenceDestinationNotWorkingDnsErrorTypeEnum = _reflection.GeneratedProtocolMessageType('PolicyTopicEvidenceDestinationNotWorkingDnsErrorTypeEnum', (_message.Message,), dict( + DESCRIPTOR = _POLICYTOPICEVIDENCEDESTINATIONNOTWORKINGDNSERRORTYPEENUM, + __module__ = 'google.ads.googleads_v4.proto.enums.policy_topic_evidence_destination_not_working_dns_error_type_pb2' + , + __doc__ = """Container for enum describing possible policy topic evidence destination + not working DNS error types. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.enums.PolicyTopicEvidenceDestinationNotWorkingDnsErrorTypeEnum) + )) +_sym_db.RegisterMessage(PolicyTopicEvidenceDestinationNotWorkingDnsErrorTypeEnum) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/enums/proximity_radius_units_pb2_grpc.py b/google/ads/google_ads/v4/proto/enums/policy_topic_evidence_destination_not_working_dns_error_type_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/enums/proximity_radius_units_pb2_grpc.py rename to google/ads/google_ads/v4/proto/enums/policy_topic_evidence_destination_not_working_dns_error_type_pb2_grpc.py diff --git a/google/ads/google_ads/v4/proto/enums/positive_geo_target_type_pb2.py b/google/ads/google_ads/v4/proto/enums/positive_geo_target_type_pb2.py new file mode 100644 index 000000000..238328546 --- /dev/null +++ b/google/ads/google_ads/v4/proto/enums/positive_geo_target_type_pb2.py @@ -0,0 +1,105 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/enums/positive_geo_target_type.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/enums/positive_geo_target_type.proto', + package='google.ads.googleads.v4.enums', + syntax='proto3', + serialized_options=_b('\n!com.google.ads.googleads.v4.enumsB\032PositiveGeoTargetTypeProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V4.Enums\312\002\035Google\\Ads\\GoogleAds\\V4\\Enums\352\002!Google::Ads::GoogleAds::V4::Enums'), + serialized_pb=_b('\nBgoogle/ads/googleads_v4/proto/enums/positive_geo_target_type.proto\x12\x1dgoogle.ads.googleads.v4.enums\x1a\x1cgoogle/api/annotations.proto\"\x8f\x01\n\x19PositiveGeoTargetTypeEnum\"r\n\x15PositiveGeoTargetType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x18\n\x14PRESENCE_OR_INTEREST\x10\x05\x12\x13\n\x0fSEARCH_INTEREST\x10\x06\x12\x0c\n\x08PRESENCE\x10\x07\x42\xef\x01\n!com.google.ads.googleads.v4.enumsB\x1aPositiveGeoTargetTypeProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V4.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V4\\Enums\xea\x02!Google::Ads::GoogleAds::V4::Enumsb\x06proto3') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_POSITIVEGEOTARGETTYPEENUM_POSITIVEGEOTARGETTYPE = _descriptor.EnumDescriptor( + name='PositiveGeoTargetType', + full_name='google.ads.googleads.v4.enums.PositiveGeoTargetTypeEnum.PositiveGeoTargetType', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='UNSPECIFIED', index=0, number=0, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='UNKNOWN', index=1, number=1, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='PRESENCE_OR_INTEREST', index=2, number=5, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='SEARCH_INTEREST', index=3, number=6, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='PRESENCE', index=4, number=7, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=161, + serialized_end=275, +) +_sym_db.RegisterEnumDescriptor(_POSITIVEGEOTARGETTYPEENUM_POSITIVEGEOTARGETTYPE) + + +_POSITIVEGEOTARGETTYPEENUM = _descriptor.Descriptor( + name='PositiveGeoTargetTypeEnum', + full_name='google.ads.googleads.v4.enums.PositiveGeoTargetTypeEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _POSITIVEGEOTARGETTYPEENUM_POSITIVEGEOTARGETTYPE, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=132, + serialized_end=275, +) + +_POSITIVEGEOTARGETTYPEENUM_POSITIVEGEOTARGETTYPE.containing_type = _POSITIVEGEOTARGETTYPEENUM +DESCRIPTOR.message_types_by_name['PositiveGeoTargetTypeEnum'] = _POSITIVEGEOTARGETTYPEENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +PositiveGeoTargetTypeEnum = _reflection.GeneratedProtocolMessageType('PositiveGeoTargetTypeEnum', (_message.Message,), dict( + DESCRIPTOR = _POSITIVEGEOTARGETTYPEENUM, + __module__ = 'google.ads.googleads_v4.proto.enums.positive_geo_target_type_pb2' + , + __doc__ = """Container for enum describing possible positive geo target types. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.enums.PositiveGeoTargetTypeEnum) + )) +_sym_db.RegisterMessage(PositiveGeoTargetTypeEnum) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/enums/quality_score_bucket_pb2_grpc.py b/google/ads/google_ads/v4/proto/enums/positive_geo_target_type_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/enums/quality_score_bucket_pb2_grpc.py rename to google/ads/google_ads/v4/proto/enums/positive_geo_target_type_pb2_grpc.py diff --git a/google/ads/google_ads/v4/proto/enums/preferred_content_type_pb2.py b/google/ads/google_ads/v4/proto/enums/preferred_content_type_pb2.py new file mode 100644 index 000000000..30c8d77a5 --- /dev/null +++ b/google/ads/google_ads/v4/proto/enums/preferred_content_type_pb2.py @@ -0,0 +1,97 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/enums/preferred_content_type.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/enums/preferred_content_type.proto', + package='google.ads.googleads.v4.enums', + syntax='proto3', + serialized_options=_b('\n!com.google.ads.googleads.v4.enumsB\031PreferredContentTypeProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V4.Enums\312\002\035Google\\Ads\\GoogleAds\\V4\\Enums\352\002!Google::Ads::GoogleAds::V4::Enums'), + serialized_pb=_b('\n@google/ads/googleads_v4/proto/enums/preferred_content_type.proto\x12\x1dgoogle.ads.googleads.v4.enums\x1a\x1cgoogle/api/annotations.proto\"j\n\x18PreferredContentTypeEnum\"N\n\x14PreferredContentType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x18\n\x13YOUTUBE_TOP_CONTENT\x10\x90\x03\x42\xee\x01\n!com.google.ads.googleads.v4.enumsB\x19PreferredContentTypeProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V4.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V4\\Enums\xea\x02!Google::Ads::GoogleAds::V4::Enumsb\x06proto3') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_PREFERREDCONTENTTYPEENUM_PREFERREDCONTENTTYPE = _descriptor.EnumDescriptor( + name='PreferredContentType', + full_name='google.ads.googleads.v4.enums.PreferredContentTypeEnum.PreferredContentType', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='UNSPECIFIED', index=0, number=0, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='UNKNOWN', index=1, number=1, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='YOUTUBE_TOP_CONTENT', index=2, number=400, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=157, + serialized_end=235, +) +_sym_db.RegisterEnumDescriptor(_PREFERREDCONTENTTYPEENUM_PREFERREDCONTENTTYPE) + + +_PREFERREDCONTENTTYPEENUM = _descriptor.Descriptor( + name='PreferredContentTypeEnum', + full_name='google.ads.googleads.v4.enums.PreferredContentTypeEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _PREFERREDCONTENTTYPEENUM_PREFERREDCONTENTTYPE, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=129, + serialized_end=235, +) + +_PREFERREDCONTENTTYPEENUM_PREFERREDCONTENTTYPE.containing_type = _PREFERREDCONTENTTYPEENUM +DESCRIPTOR.message_types_by_name['PreferredContentTypeEnum'] = _PREFERREDCONTENTTYPEENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +PreferredContentTypeEnum = _reflection.GeneratedProtocolMessageType('PreferredContentTypeEnum', (_message.Message,), dict( + DESCRIPTOR = _PREFERREDCONTENTTYPEENUM, + __module__ = 'google.ads.googleads_v4.proto.enums.preferred_content_type_pb2' + , + __doc__ = """Container for enumeration of preferred content criterion type. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.enums.PreferredContentTypeEnum) + )) +_sym_db.RegisterMessage(PreferredContentTypeEnum) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/enums/real_estate_placeholder_field_pb2_grpc.py b/google/ads/google_ads/v4/proto/enums/preferred_content_type_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/enums/real_estate_placeholder_field_pb2_grpc.py rename to google/ads/google_ads/v4/proto/enums/preferred_content_type_pb2_grpc.py diff --git a/google/ads/google_ads/v1/proto/enums/price_extension_price_qualifier_pb2.py b/google/ads/google_ads/v4/proto/enums/price_extension_price_qualifier_pb2.py similarity index 76% rename from google/ads/google_ads/v1/proto/enums/price_extension_price_qualifier_pb2.py rename to google/ads/google_ads/v4/proto/enums/price_extension_price_qualifier_pb2.py index d80075e28..25899c5ae 100644 --- a/google/ads/google_ads/v1/proto/enums/price_extension_price_qualifier_pb2.py +++ b/google/ads/google_ads/v4/proto/enums/price_extension_price_qualifier_pb2.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/enums/price_extension_price_qualifier.proto +# source: google/ads/googleads_v4/proto/enums/price_extension_price_qualifier.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) @@ -17,11 +17,11 @@ DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/enums/price_extension_price_qualifier.proto', - package='google.ads.googleads.v1.enums', + name='google/ads/googleads_v4/proto/enums/price_extension_price_qualifier.proto', + package='google.ads.googleads.v4.enums', syntax='proto3', - serialized_options=_b('\n!com.google.ads.googleads.v1.enumsB!PriceExtensionPriceQualifierProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v1/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V1.Enums\312\002\035Google\\Ads\\GoogleAds\\V1\\Enums\352\002!Google::Ads::GoogleAds::V1::Enums'), - serialized_pb=_b('\nIgoogle/ads/googleads_v1/proto/enums/price_extension_price_qualifier.proto\x12\x1dgoogle.ads.googleads.v1.enums\x1a\x1cgoogle/api/annotations.proto\"\x82\x01\n PriceExtensionPriceQualifierEnum\"^\n\x1cPriceExtensionPriceQualifier\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x08\n\x04\x46ROM\x10\x02\x12\t\n\x05UP_TO\x10\x03\x12\x0b\n\x07\x41VERAGE\x10\x04\x42\xf6\x01\n!com.google.ads.googleads.v1.enumsB!PriceExtensionPriceQualifierProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v1/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V1.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V1\\Enums\xea\x02!Google::Ads::GoogleAds::V1::Enumsb\x06proto3') + serialized_options=_b('\n!com.google.ads.googleads.v4.enumsB!PriceExtensionPriceQualifierProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V4.Enums\312\002\035Google\\Ads\\GoogleAds\\V4\\Enums\352\002!Google::Ads::GoogleAds::V4::Enums'), + serialized_pb=_b('\nIgoogle/ads/googleads_v4/proto/enums/price_extension_price_qualifier.proto\x12\x1dgoogle.ads.googleads.v4.enums\x1a\x1cgoogle/api/annotations.proto\"\x82\x01\n PriceExtensionPriceQualifierEnum\"^\n\x1cPriceExtensionPriceQualifier\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x08\n\x04\x46ROM\x10\x02\x12\t\n\x05UP_TO\x10\x03\x12\x0b\n\x07\x41VERAGE\x10\x04\x42\xf6\x01\n!com.google.ads.googleads.v4.enumsB!PriceExtensionPriceQualifierProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V4.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V4\\Enums\xea\x02!Google::Ads::GoogleAds::V4::Enumsb\x06proto3') , dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) @@ -29,7 +29,7 @@ _PRICEEXTENSIONPRICEQUALIFIERENUM_PRICEEXTENSIONPRICEQUALIFIER = _descriptor.EnumDescriptor( name='PriceExtensionPriceQualifier', - full_name='google.ads.googleads.v1.enums.PriceExtensionPriceQualifierEnum.PriceExtensionPriceQualifier', + full_name='google.ads.googleads.v4.enums.PriceExtensionPriceQualifierEnum.PriceExtensionPriceQualifier', filename=None, file=DESCRIPTOR, values=[ @@ -64,7 +64,7 @@ _PRICEEXTENSIONPRICEQUALIFIERENUM = _descriptor.Descriptor( name='PriceExtensionPriceQualifierEnum', - full_name='google.ads.googleads.v1.enums.PriceExtensionPriceQualifierEnum', + full_name='google.ads.googleads.v4.enums.PriceExtensionPriceQualifierEnum', filename=None, file=DESCRIPTOR, containing_type=None, @@ -92,11 +92,11 @@ PriceExtensionPriceQualifierEnum = _reflection.GeneratedProtocolMessageType('PriceExtensionPriceQualifierEnum', (_message.Message,), dict( DESCRIPTOR = _PRICEEXTENSIONPRICEQUALIFIERENUM, - __module__ = 'google.ads.googleads_v1.proto.enums.price_extension_price_qualifier_pb2' + __module__ = 'google.ads.googleads_v4.proto.enums.price_extension_price_qualifier_pb2' , __doc__ = """Container for enum describing a price extension price qualifier. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.enums.PriceExtensionPriceQualifierEnum) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.enums.PriceExtensionPriceQualifierEnum) )) _sym_db.RegisterMessage(PriceExtensionPriceQualifierEnum) diff --git a/google/ads/google_ads/v1/proto/enums/recommendation_type_pb2_grpc.py b/google/ads/google_ads/v4/proto/enums/price_extension_price_qualifier_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/enums/recommendation_type_pb2_grpc.py rename to google/ads/google_ads/v4/proto/enums/price_extension_price_qualifier_pb2_grpc.py diff --git a/google/ads/google_ads/v1/proto/enums/price_extension_price_unit_pb2.py b/google/ads/google_ads/v4/proto/enums/price_extension_price_unit_pb2.py similarity index 77% rename from google/ads/google_ads/v1/proto/enums/price_extension_price_unit_pb2.py rename to google/ads/google_ads/v4/proto/enums/price_extension_price_unit_pb2.py index 4eafa3f89..9f0f3f328 100644 --- a/google/ads/google_ads/v1/proto/enums/price_extension_price_unit_pb2.py +++ b/google/ads/google_ads/v4/proto/enums/price_extension_price_unit_pb2.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/enums/price_extension_price_unit.proto +# source: google/ads/googleads_v4/proto/enums/price_extension_price_unit.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) @@ -17,11 +17,11 @@ DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/enums/price_extension_price_unit.proto', - package='google.ads.googleads.v1.enums', + name='google/ads/googleads_v4/proto/enums/price_extension_price_unit.proto', + package='google.ads.googleads.v4.enums', syntax='proto3', - serialized_options=_b('\n!com.google.ads.googleads.v1.enumsB\034PriceExtensionPriceUnitProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v1/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V1.Enums\312\002\035Google\\Ads\\GoogleAds\\V1\\Enums\352\002!Google::Ads::GoogleAds::V1::Enums'), - serialized_pb=_b('\nDgoogle/ads/googleads_v1/proto/enums/price_extension_price_unit.proto\x12\x1dgoogle.ads.googleads.v1.enums\x1a\x1cgoogle/api/annotations.proto\"\xac\x01\n\x1bPriceExtensionPriceUnitEnum\"\x8c\x01\n\x17PriceExtensionPriceUnit\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0c\n\x08PER_HOUR\x10\x02\x12\x0b\n\x07PER_DAY\x10\x03\x12\x0c\n\x08PER_WEEK\x10\x04\x12\r\n\tPER_MONTH\x10\x05\x12\x0c\n\x08PER_YEAR\x10\x06\x12\r\n\tPER_NIGHT\x10\x07\x42\xf1\x01\n!com.google.ads.googleads.v1.enumsB\x1cPriceExtensionPriceUnitProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v1/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V1.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V1\\Enums\xea\x02!Google::Ads::GoogleAds::V1::Enumsb\x06proto3') + serialized_options=_b('\n!com.google.ads.googleads.v4.enumsB\034PriceExtensionPriceUnitProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V4.Enums\312\002\035Google\\Ads\\GoogleAds\\V4\\Enums\352\002!Google::Ads::GoogleAds::V4::Enums'), + serialized_pb=_b('\nDgoogle/ads/googleads_v4/proto/enums/price_extension_price_unit.proto\x12\x1dgoogle.ads.googleads.v4.enums\x1a\x1cgoogle/api/annotations.proto\"\xac\x01\n\x1bPriceExtensionPriceUnitEnum\"\x8c\x01\n\x17PriceExtensionPriceUnit\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0c\n\x08PER_HOUR\x10\x02\x12\x0b\n\x07PER_DAY\x10\x03\x12\x0c\n\x08PER_WEEK\x10\x04\x12\r\n\tPER_MONTH\x10\x05\x12\x0c\n\x08PER_YEAR\x10\x06\x12\r\n\tPER_NIGHT\x10\x07\x42\xf1\x01\n!com.google.ads.googleads.v4.enumsB\x1cPriceExtensionPriceUnitProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V4.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V4\\Enums\xea\x02!Google::Ads::GoogleAds::V4::Enumsb\x06proto3') , dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) @@ -29,7 +29,7 @@ _PRICEEXTENSIONPRICEUNITENUM_PRICEEXTENSIONPRICEUNIT = _descriptor.EnumDescriptor( name='PriceExtensionPriceUnit', - full_name='google.ads.googleads.v1.enums.PriceExtensionPriceUnitEnum.PriceExtensionPriceUnit', + full_name='google.ads.googleads.v4.enums.PriceExtensionPriceUnitEnum.PriceExtensionPriceUnit', filename=None, file=DESCRIPTOR, values=[ @@ -76,7 +76,7 @@ _PRICEEXTENSIONPRICEUNITENUM = _descriptor.Descriptor( name='PriceExtensionPriceUnitEnum', - full_name='google.ads.googleads.v1.enums.PriceExtensionPriceUnitEnum', + full_name='google.ads.googleads.v4.enums.PriceExtensionPriceUnitEnum', filename=None, file=DESCRIPTOR, containing_type=None, @@ -104,11 +104,11 @@ PriceExtensionPriceUnitEnum = _reflection.GeneratedProtocolMessageType('PriceExtensionPriceUnitEnum', (_message.Message,), dict( DESCRIPTOR = _PRICEEXTENSIONPRICEUNITENUM, - __module__ = 'google.ads.googleads_v1.proto.enums.price_extension_price_unit_pb2' + __module__ = 'google.ads.googleads_v4.proto.enums.price_extension_price_unit_pb2' , __doc__ = """Container for enum describing price extension price unit. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.enums.PriceExtensionPriceUnitEnum) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.enums.PriceExtensionPriceUnitEnum) )) _sym_db.RegisterMessage(PriceExtensionPriceUnitEnum) diff --git a/google/ads/google_ads/v1/proto/enums/search_engine_results_page_type_pb2_grpc.py b/google/ads/google_ads/v4/proto/enums/price_extension_price_unit_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/enums/search_engine_results_page_type_pb2_grpc.py rename to google/ads/google_ads/v4/proto/enums/price_extension_price_unit_pb2_grpc.py diff --git a/google/ads/google_ads/v1/proto/enums/price_extension_type_pb2.py b/google/ads/google_ads/v4/proto/enums/price_extension_type_pb2.py similarity index 79% rename from google/ads/google_ads/v1/proto/enums/price_extension_type_pb2.py rename to google/ads/google_ads/v4/proto/enums/price_extension_type_pb2.py index d68fc2e76..50c24a77f 100644 --- a/google/ads/google_ads/v1/proto/enums/price_extension_type_pb2.py +++ b/google/ads/google_ads/v4/proto/enums/price_extension_type_pb2.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/enums/price_extension_type.proto +# source: google/ads/googleads_v4/proto/enums/price_extension_type.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) @@ -17,11 +17,11 @@ DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/enums/price_extension_type.proto', - package='google.ads.googleads.v1.enums', + name='google/ads/googleads_v4/proto/enums/price_extension_type.proto', + package='google.ads.googleads.v4.enums', syntax='proto3', - serialized_options=_b('\n!com.google.ads.googleads.v1.enumsB\027PriceExtensionTypeProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v1/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V1.Enums\312\002\035Google\\Ads\\GoogleAds\\V1\\Enums\352\002!Google::Ads::GoogleAds::V1::Enums'), - serialized_pb=_b('\n>google/ads/googleads_v1/proto/enums/price_extension_type.proto\x12\x1dgoogle.ads.googleads.v1.enums\x1a\x1cgoogle/api/annotations.proto\"\xeb\x01\n\x16PriceExtensionTypeEnum\"\xd0\x01\n\x12PriceExtensionType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\n\n\x06\x42RANDS\x10\x02\x12\n\n\x06\x45VENTS\x10\x03\x12\r\n\tLOCATIONS\x10\x04\x12\x11\n\rNEIGHBORHOODS\x10\x05\x12\x16\n\x12PRODUCT_CATEGORIES\x10\x06\x12\x11\n\rPRODUCT_TIERS\x10\x07\x12\x0c\n\x08SERVICES\x10\x08\x12\x16\n\x12SERVICE_CATEGORIES\x10\t\x12\x11\n\rSERVICE_TIERS\x10\nB\xec\x01\n!com.google.ads.googleads.v1.enumsB\x17PriceExtensionTypeProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v1/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V1.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V1\\Enums\xea\x02!Google::Ads::GoogleAds::V1::Enumsb\x06proto3') + serialized_options=_b('\n!com.google.ads.googleads.v4.enumsB\027PriceExtensionTypeProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V4.Enums\312\002\035Google\\Ads\\GoogleAds\\V4\\Enums\352\002!Google::Ads::GoogleAds::V4::Enums'), + serialized_pb=_b('\n>google/ads/googleads_v4/proto/enums/price_extension_type.proto\x12\x1dgoogle.ads.googleads.v4.enums\x1a\x1cgoogle/api/annotations.proto\"\xeb\x01\n\x16PriceExtensionTypeEnum\"\xd0\x01\n\x12PriceExtensionType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\n\n\x06\x42RANDS\x10\x02\x12\n\n\x06\x45VENTS\x10\x03\x12\r\n\tLOCATIONS\x10\x04\x12\x11\n\rNEIGHBORHOODS\x10\x05\x12\x16\n\x12PRODUCT_CATEGORIES\x10\x06\x12\x11\n\rPRODUCT_TIERS\x10\x07\x12\x0c\n\x08SERVICES\x10\x08\x12\x16\n\x12SERVICE_CATEGORIES\x10\t\x12\x11\n\rSERVICE_TIERS\x10\nB\xec\x01\n!com.google.ads.googleads.v4.enumsB\x17PriceExtensionTypeProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V4.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V4\\Enums\xea\x02!Google::Ads::GoogleAds::V4::Enumsb\x06proto3') , dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) @@ -29,7 +29,7 @@ _PRICEEXTENSIONTYPEENUM_PRICEEXTENSIONTYPE = _descriptor.EnumDescriptor( name='PriceExtensionType', - full_name='google.ads.googleads.v1.enums.PriceExtensionTypeEnum.PriceExtensionType', + full_name='google.ads.googleads.v4.enums.PriceExtensionTypeEnum.PriceExtensionType', filename=None, file=DESCRIPTOR, values=[ @@ -88,7 +88,7 @@ _PRICEEXTENSIONTYPEENUM = _descriptor.Descriptor( name='PriceExtensionTypeEnum', - full_name='google.ads.googleads.v1.enums.PriceExtensionTypeEnum', + full_name='google.ads.googleads.v4.enums.PriceExtensionTypeEnum', filename=None, file=DESCRIPTOR, containing_type=None, @@ -116,11 +116,11 @@ PriceExtensionTypeEnum = _reflection.GeneratedProtocolMessageType('PriceExtensionTypeEnum', (_message.Message,), dict( DESCRIPTOR = _PRICEEXTENSIONTYPEENUM, - __module__ = 'google.ads.googleads_v1.proto.enums.price_extension_type_pb2' + __module__ = 'google.ads.googleads_v4.proto.enums.price_extension_type_pb2' , __doc__ = """Container for enum describing types for a price extension. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.enums.PriceExtensionTypeEnum) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.enums.PriceExtensionTypeEnum) )) _sym_db.RegisterMessage(PriceExtensionTypeEnum) diff --git a/google/ads/google_ads/v1/proto/enums/search_term_match_type_pb2_grpc.py b/google/ads/google_ads/v4/proto/enums/price_extension_type_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/enums/search_term_match_type_pb2_grpc.py rename to google/ads/google_ads/v4/proto/enums/price_extension_type_pb2_grpc.py diff --git a/google/ads/google_ads/v1/proto/enums/price_placeholder_field_pb2.py b/google/ads/google_ads/v4/proto/enums/price_placeholder_field_pb2.py similarity index 92% rename from google/ads/google_ads/v1/proto/enums/price_placeholder_field_pb2.py rename to google/ads/google_ads/v4/proto/enums/price_placeholder_field_pb2.py index c37480ec7..ce32169d7 100644 --- a/google/ads/google_ads/v1/proto/enums/price_placeholder_field_pb2.py +++ b/google/ads/google_ads/v4/proto/enums/price_placeholder_field_pb2.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/enums/price_placeholder_field.proto +# source: google/ads/googleads_v4/proto/enums/price_placeholder_field.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) @@ -17,11 +17,11 @@ DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/enums/price_placeholder_field.proto', - package='google.ads.googleads.v1.enums', + name='google/ads/googleads_v4/proto/enums/price_placeholder_field.proto', + package='google.ads.googleads.v4.enums', syntax='proto3', - serialized_options=_b('\n!com.google.ads.googleads.v1.enumsB\032PricePlaceholderFieldProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v1/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V1.Enums\312\002\035Google\\Ads\\GoogleAds\\V1\\Enums\352\002!Google::Ads::GoogleAds::V1::Enums'), - serialized_pb=_b('\nAgoogle/ads/googleads_v1/proto/enums/price_placeholder_field.proto\x12\x1dgoogle.ads.googleads.v1.enums\x1a\x1cgoogle/api/annotations.proto\"\xef\t\n\x19PricePlaceholderFieldEnum\"\xd1\t\n\x15PricePlaceholderField\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x08\n\x04TYPE\x10\x02\x12\x13\n\x0fPRICE_QUALIFIER\x10\x03\x12\x15\n\x11TRACKING_TEMPLATE\x10\x04\x12\x0c\n\x08LANGUAGE\x10\x05\x12\x14\n\x10\x46INAL_URL_SUFFIX\x10\x06\x12\x11\n\rITEM_1_HEADER\x10\x64\x12\x16\n\x12ITEM_1_DESCRIPTION\x10\x65\x12\x10\n\x0cITEM_1_PRICE\x10\x66\x12\x0f\n\x0bITEM_1_UNIT\x10g\x12\x15\n\x11ITEM_1_FINAL_URLS\x10h\x12\x1c\n\x18ITEM_1_FINAL_MOBILE_URLS\x10i\x12\x12\n\rITEM_2_HEADER\x10\xc8\x01\x12\x17\n\x12ITEM_2_DESCRIPTION\x10\xc9\x01\x12\x11\n\x0cITEM_2_PRICE\x10\xca\x01\x12\x10\n\x0bITEM_2_UNIT\x10\xcb\x01\x12\x16\n\x11ITEM_2_FINAL_URLS\x10\xcc\x01\x12\x1d\n\x18ITEM_2_FINAL_MOBILE_URLS\x10\xcd\x01\x12\x12\n\rITEM_3_HEADER\x10\xac\x02\x12\x17\n\x12ITEM_3_DESCRIPTION\x10\xad\x02\x12\x11\n\x0cITEM_3_PRICE\x10\xae\x02\x12\x10\n\x0bITEM_3_UNIT\x10\xaf\x02\x12\x16\n\x11ITEM_3_FINAL_URLS\x10\xb0\x02\x12\x1d\n\x18ITEM_3_FINAL_MOBILE_URLS\x10\xb1\x02\x12\x12\n\rITEM_4_HEADER\x10\x90\x03\x12\x17\n\x12ITEM_4_DESCRIPTION\x10\x91\x03\x12\x11\n\x0cITEM_4_PRICE\x10\x92\x03\x12\x10\n\x0bITEM_4_UNIT\x10\x93\x03\x12\x16\n\x11ITEM_4_FINAL_URLS\x10\x94\x03\x12\x1d\n\x18ITEM_4_FINAL_MOBILE_URLS\x10\x95\x03\x12\x12\n\rITEM_5_HEADER\x10\xf4\x03\x12\x17\n\x12ITEM_5_DESCRIPTION\x10\xf5\x03\x12\x11\n\x0cITEM_5_PRICE\x10\xf6\x03\x12\x10\n\x0bITEM_5_UNIT\x10\xf7\x03\x12\x16\n\x11ITEM_5_FINAL_URLS\x10\xf8\x03\x12\x1d\n\x18ITEM_5_FINAL_MOBILE_URLS\x10\xf9\x03\x12\x12\n\rITEM_6_HEADER\x10\xd8\x04\x12\x17\n\x12ITEM_6_DESCRIPTION\x10\xd9\x04\x12\x11\n\x0cITEM_6_PRICE\x10\xda\x04\x12\x10\n\x0bITEM_6_UNIT\x10\xdb\x04\x12\x16\n\x11ITEM_6_FINAL_URLS\x10\xdc\x04\x12\x1d\n\x18ITEM_6_FINAL_MOBILE_URLS\x10\xdd\x04\x12\x12\n\rITEM_7_HEADER\x10\xbc\x05\x12\x17\n\x12ITEM_7_DESCRIPTION\x10\xbd\x05\x12\x11\n\x0cITEM_7_PRICE\x10\xbe\x05\x12\x10\n\x0bITEM_7_UNIT\x10\xbf\x05\x12\x16\n\x11ITEM_7_FINAL_URLS\x10\xc0\x05\x12\x1d\n\x18ITEM_7_FINAL_MOBILE_URLS\x10\xc1\x05\x12\x12\n\rITEM_8_HEADER\x10\xa0\x06\x12\x17\n\x12ITEM_8_DESCRIPTION\x10\xa1\x06\x12\x11\n\x0cITEM_8_PRICE\x10\xa2\x06\x12\x10\n\x0bITEM_8_UNIT\x10\xa3\x06\x12\x16\n\x11ITEM_8_FINAL_URLS\x10\xa4\x06\x12\x1d\n\x18ITEM_8_FINAL_MOBILE_URLS\x10\xa5\x06\x42\xef\x01\n!com.google.ads.googleads.v1.enumsB\x1aPricePlaceholderFieldProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v1/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V1.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V1\\Enums\xea\x02!Google::Ads::GoogleAds::V1::Enumsb\x06proto3') + serialized_options=_b('\n!com.google.ads.googleads.v4.enumsB\032PricePlaceholderFieldProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V4.Enums\312\002\035Google\\Ads\\GoogleAds\\V4\\Enums\352\002!Google::Ads::GoogleAds::V4::Enums'), + serialized_pb=_b('\nAgoogle/ads/googleads_v4/proto/enums/price_placeholder_field.proto\x12\x1dgoogle.ads.googleads.v4.enums\x1a\x1cgoogle/api/annotations.proto\"\xef\t\n\x19PricePlaceholderFieldEnum\"\xd1\t\n\x15PricePlaceholderField\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x08\n\x04TYPE\x10\x02\x12\x13\n\x0fPRICE_QUALIFIER\x10\x03\x12\x15\n\x11TRACKING_TEMPLATE\x10\x04\x12\x0c\n\x08LANGUAGE\x10\x05\x12\x14\n\x10\x46INAL_URL_SUFFIX\x10\x06\x12\x11\n\rITEM_1_HEADER\x10\x64\x12\x16\n\x12ITEM_1_DESCRIPTION\x10\x65\x12\x10\n\x0cITEM_1_PRICE\x10\x66\x12\x0f\n\x0bITEM_1_UNIT\x10g\x12\x15\n\x11ITEM_1_FINAL_URLS\x10h\x12\x1c\n\x18ITEM_1_FINAL_MOBILE_URLS\x10i\x12\x12\n\rITEM_2_HEADER\x10\xc8\x01\x12\x17\n\x12ITEM_2_DESCRIPTION\x10\xc9\x01\x12\x11\n\x0cITEM_2_PRICE\x10\xca\x01\x12\x10\n\x0bITEM_2_UNIT\x10\xcb\x01\x12\x16\n\x11ITEM_2_FINAL_URLS\x10\xcc\x01\x12\x1d\n\x18ITEM_2_FINAL_MOBILE_URLS\x10\xcd\x01\x12\x12\n\rITEM_3_HEADER\x10\xac\x02\x12\x17\n\x12ITEM_3_DESCRIPTION\x10\xad\x02\x12\x11\n\x0cITEM_3_PRICE\x10\xae\x02\x12\x10\n\x0bITEM_3_UNIT\x10\xaf\x02\x12\x16\n\x11ITEM_3_FINAL_URLS\x10\xb0\x02\x12\x1d\n\x18ITEM_3_FINAL_MOBILE_URLS\x10\xb1\x02\x12\x12\n\rITEM_4_HEADER\x10\x90\x03\x12\x17\n\x12ITEM_4_DESCRIPTION\x10\x91\x03\x12\x11\n\x0cITEM_4_PRICE\x10\x92\x03\x12\x10\n\x0bITEM_4_UNIT\x10\x93\x03\x12\x16\n\x11ITEM_4_FINAL_URLS\x10\x94\x03\x12\x1d\n\x18ITEM_4_FINAL_MOBILE_URLS\x10\x95\x03\x12\x12\n\rITEM_5_HEADER\x10\xf4\x03\x12\x17\n\x12ITEM_5_DESCRIPTION\x10\xf5\x03\x12\x11\n\x0cITEM_5_PRICE\x10\xf6\x03\x12\x10\n\x0bITEM_5_UNIT\x10\xf7\x03\x12\x16\n\x11ITEM_5_FINAL_URLS\x10\xf8\x03\x12\x1d\n\x18ITEM_5_FINAL_MOBILE_URLS\x10\xf9\x03\x12\x12\n\rITEM_6_HEADER\x10\xd8\x04\x12\x17\n\x12ITEM_6_DESCRIPTION\x10\xd9\x04\x12\x11\n\x0cITEM_6_PRICE\x10\xda\x04\x12\x10\n\x0bITEM_6_UNIT\x10\xdb\x04\x12\x16\n\x11ITEM_6_FINAL_URLS\x10\xdc\x04\x12\x1d\n\x18ITEM_6_FINAL_MOBILE_URLS\x10\xdd\x04\x12\x12\n\rITEM_7_HEADER\x10\xbc\x05\x12\x17\n\x12ITEM_7_DESCRIPTION\x10\xbd\x05\x12\x11\n\x0cITEM_7_PRICE\x10\xbe\x05\x12\x10\n\x0bITEM_7_UNIT\x10\xbf\x05\x12\x16\n\x11ITEM_7_FINAL_URLS\x10\xc0\x05\x12\x1d\n\x18ITEM_7_FINAL_MOBILE_URLS\x10\xc1\x05\x12\x12\n\rITEM_8_HEADER\x10\xa0\x06\x12\x17\n\x12ITEM_8_DESCRIPTION\x10\xa1\x06\x12\x11\n\x0cITEM_8_PRICE\x10\xa2\x06\x12\x10\n\x0bITEM_8_UNIT\x10\xa3\x06\x12\x16\n\x11ITEM_8_FINAL_URLS\x10\xa4\x06\x12\x1d\n\x18ITEM_8_FINAL_MOBILE_URLS\x10\xa5\x06\x42\xef\x01\n!com.google.ads.googleads.v4.enumsB\x1aPricePlaceholderFieldProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V4.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V4\\Enums\xea\x02!Google::Ads::GoogleAds::V4::Enumsb\x06proto3') , dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) @@ -29,7 +29,7 @@ _PRICEPLACEHOLDERFIELDENUM_PRICEPLACEHOLDERFIELD = _descriptor.EnumDescriptor( name='PricePlaceholderField', - full_name='google.ads.googleads.v1.enums.PricePlaceholderFieldEnum.PricePlaceholderField', + full_name='google.ads.googleads.v4.enums.PricePlaceholderFieldEnum.PricePlaceholderField', filename=None, file=DESCRIPTOR, values=[ @@ -264,7 +264,7 @@ _PRICEPLACEHOLDERFIELDENUM = _descriptor.Descriptor( name='PricePlaceholderFieldEnum', - full_name='google.ads.googleads.v1.enums.PricePlaceholderFieldEnum', + full_name='google.ads.googleads.v4.enums.PricePlaceholderFieldEnum', filename=None, file=DESCRIPTOR, containing_type=None, @@ -292,11 +292,11 @@ PricePlaceholderFieldEnum = _reflection.GeneratedProtocolMessageType('PricePlaceholderFieldEnum', (_message.Message,), dict( DESCRIPTOR = _PRICEPLACEHOLDERFIELDENUM, - __module__ = 'google.ads.googleads_v1.proto.enums.price_placeholder_field_pb2' + __module__ = 'google.ads.googleads_v4.proto.enums.price_placeholder_field_pb2' , __doc__ = """Values for Price placeholder fields. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.enums.PricePlaceholderFieldEnum) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.enums.PricePlaceholderFieldEnum) )) _sym_db.RegisterMessage(PricePlaceholderFieldEnum) diff --git a/google/ads/google_ads/v1/proto/enums/search_term_targeting_status_pb2_grpc.py b/google/ads/google_ads/v4/proto/enums/price_placeholder_field_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/enums/search_term_targeting_status_pb2_grpc.py rename to google/ads/google_ads/v4/proto/enums/price_placeholder_field_pb2_grpc.py diff --git a/google/ads/google_ads/v1/proto/enums/product_bidding_category_level_pb2.py b/google/ads/google_ads/v4/proto/enums/product_bidding_category_level_pb2.py similarity index 77% rename from google/ads/google_ads/v1/proto/enums/product_bidding_category_level_pb2.py rename to google/ads/google_ads/v4/proto/enums/product_bidding_category_level_pb2.py index e27bdfa70..7cea1d3e3 100644 --- a/google/ads/google_ads/v1/proto/enums/product_bidding_category_level_pb2.py +++ b/google/ads/google_ads/v4/proto/enums/product_bidding_category_level_pb2.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/enums/product_bidding_category_level.proto +# source: google/ads/googleads_v4/proto/enums/product_bidding_category_level.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) @@ -17,11 +17,11 @@ DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/enums/product_bidding_category_level.proto', - package='google.ads.googleads.v1.enums', + name='google/ads/googleads_v4/proto/enums/product_bidding_category_level.proto', + package='google.ads.googleads.v4.enums', syntax='proto3', - serialized_options=_b('\n!com.google.ads.googleads.v1.enumsB ProductBiddingCategoryLevelProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v1/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V1.Enums\312\002\035Google\\Ads\\GoogleAds\\V1\\Enums\352\002!Google::Ads::GoogleAds::V1::Enums'), - serialized_pb=_b('\nHgoogle/ads/googleads_v1/proto/enums/product_bidding_category_level.proto\x12\x1dgoogle.ads.googleads.v1.enums\x1a\x1cgoogle/api/annotations.proto\"\x9a\x01\n\x1fProductBiddingCategoryLevelEnum\"w\n\x1bProductBiddingCategoryLevel\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\n\n\x06LEVEL1\x10\x02\x12\n\n\x06LEVEL2\x10\x03\x12\n\n\x06LEVEL3\x10\x04\x12\n\n\x06LEVEL4\x10\x05\x12\n\n\x06LEVEL5\x10\x06\x42\xf5\x01\n!com.google.ads.googleads.v1.enumsB ProductBiddingCategoryLevelProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v1/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V1.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V1\\Enums\xea\x02!Google::Ads::GoogleAds::V1::Enumsb\x06proto3') + serialized_options=_b('\n!com.google.ads.googleads.v4.enumsB ProductBiddingCategoryLevelProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V4.Enums\312\002\035Google\\Ads\\GoogleAds\\V4\\Enums\352\002!Google::Ads::GoogleAds::V4::Enums'), + serialized_pb=_b('\nHgoogle/ads/googleads_v4/proto/enums/product_bidding_category_level.proto\x12\x1dgoogle.ads.googleads.v4.enums\x1a\x1cgoogle/api/annotations.proto\"\x9a\x01\n\x1fProductBiddingCategoryLevelEnum\"w\n\x1bProductBiddingCategoryLevel\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\n\n\x06LEVEL1\x10\x02\x12\n\n\x06LEVEL2\x10\x03\x12\n\n\x06LEVEL3\x10\x04\x12\n\n\x06LEVEL4\x10\x05\x12\n\n\x06LEVEL5\x10\x06\x42\xf5\x01\n!com.google.ads.googleads.v4.enumsB ProductBiddingCategoryLevelProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V4.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V4\\Enums\xea\x02!Google::Ads::GoogleAds::V4::Enumsb\x06proto3') , dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) @@ -29,7 +29,7 @@ _PRODUCTBIDDINGCATEGORYLEVELENUM_PRODUCTBIDDINGCATEGORYLEVEL = _descriptor.EnumDescriptor( name='ProductBiddingCategoryLevel', - full_name='google.ads.googleads.v1.enums.ProductBiddingCategoryLevelEnum.ProductBiddingCategoryLevel', + full_name='google.ads.googleads.v4.enums.ProductBiddingCategoryLevelEnum.ProductBiddingCategoryLevel', filename=None, file=DESCRIPTOR, values=[ @@ -72,7 +72,7 @@ _PRODUCTBIDDINGCATEGORYLEVELENUM = _descriptor.Descriptor( name='ProductBiddingCategoryLevelEnum', - full_name='google.ads.googleads.v1.enums.ProductBiddingCategoryLevelEnum', + full_name='google.ads.googleads.v4.enums.ProductBiddingCategoryLevelEnum', filename=None, file=DESCRIPTOR, containing_type=None, @@ -100,11 +100,11 @@ ProductBiddingCategoryLevelEnum = _reflection.GeneratedProtocolMessageType('ProductBiddingCategoryLevelEnum', (_message.Message,), dict( DESCRIPTOR = _PRODUCTBIDDINGCATEGORYLEVELENUM, - __module__ = 'google.ads.googleads_v1.proto.enums.product_bidding_category_level_pb2' + __module__ = 'google.ads.googleads_v4.proto.enums.product_bidding_category_level_pb2' , __doc__ = """Level of a product bidding category. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.enums.ProductBiddingCategoryLevelEnum) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.enums.ProductBiddingCategoryLevelEnum) )) _sym_db.RegisterMessage(ProductBiddingCategoryLevelEnum) diff --git a/google/ads/google_ads/v1/proto/enums/served_asset_field_type_pb2_grpc.py b/google/ads/google_ads/v4/proto/enums/product_bidding_category_level_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/enums/served_asset_field_type_pb2_grpc.py rename to google/ads/google_ads/v4/proto/enums/product_bidding_category_level_pb2_grpc.py diff --git a/google/ads/google_ads/v4/proto/enums/product_bidding_category_status_pb2.py b/google/ads/google_ads/v4/proto/enums/product_bidding_category_status_pb2.py new file mode 100644 index 000000000..8b9719434 --- /dev/null +++ b/google/ads/google_ads/v4/proto/enums/product_bidding_category_status_pb2.py @@ -0,0 +1,101 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/enums/product_bidding_category_status.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/enums/product_bidding_category_status.proto', + package='google.ads.googleads.v4.enums', + syntax='proto3', + serialized_options=_b('\n!com.google.ads.googleads.v4.enumsB!ProductBiddingCategoryStatusProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V4.Enums\312\002\035Google\\Ads\\GoogleAds\\V4\\Enums\352\002!Google::Ads::GoogleAds::V4::Enums'), + serialized_pb=_b('\nIgoogle/ads/googleads_v4/proto/enums/product_bidding_category_status.proto\x12\x1dgoogle.ads.googleads.v4.enums\x1a\x1cgoogle/api/annotations.proto\"z\n ProductBiddingCategoryStatusEnum\"V\n\x1cProductBiddingCategoryStatus\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\n\n\x06\x41\x43TIVE\x10\x02\x12\x0c\n\x08OBSOLETE\x10\x03\x42\xf6\x01\n!com.google.ads.googleads.v4.enumsB!ProductBiddingCategoryStatusProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V4.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V4\\Enums\xea\x02!Google::Ads::GoogleAds::V4::Enumsb\x06proto3') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_PRODUCTBIDDINGCATEGORYSTATUSENUM_PRODUCTBIDDINGCATEGORYSTATUS = _descriptor.EnumDescriptor( + name='ProductBiddingCategoryStatus', + full_name='google.ads.googleads.v4.enums.ProductBiddingCategoryStatusEnum.ProductBiddingCategoryStatus', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='UNSPECIFIED', index=0, number=0, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='UNKNOWN', index=1, number=1, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='ACTIVE', index=2, number=2, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='OBSOLETE', index=3, number=3, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=174, + serialized_end=260, +) +_sym_db.RegisterEnumDescriptor(_PRODUCTBIDDINGCATEGORYSTATUSENUM_PRODUCTBIDDINGCATEGORYSTATUS) + + +_PRODUCTBIDDINGCATEGORYSTATUSENUM = _descriptor.Descriptor( + name='ProductBiddingCategoryStatusEnum', + full_name='google.ads.googleads.v4.enums.ProductBiddingCategoryStatusEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _PRODUCTBIDDINGCATEGORYSTATUSENUM_PRODUCTBIDDINGCATEGORYSTATUS, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=138, + serialized_end=260, +) + +_PRODUCTBIDDINGCATEGORYSTATUSENUM_PRODUCTBIDDINGCATEGORYSTATUS.containing_type = _PRODUCTBIDDINGCATEGORYSTATUSENUM +DESCRIPTOR.message_types_by_name['ProductBiddingCategoryStatusEnum'] = _PRODUCTBIDDINGCATEGORYSTATUSENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +ProductBiddingCategoryStatusEnum = _reflection.GeneratedProtocolMessageType('ProductBiddingCategoryStatusEnum', (_message.Message,), dict( + DESCRIPTOR = _PRODUCTBIDDINGCATEGORYSTATUSENUM, + __module__ = 'google.ads.googleads_v4.proto.enums.product_bidding_category_status_pb2' + , + __doc__ = """Status of the product bidding category. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.enums.ProductBiddingCategoryStatusEnum) + )) +_sym_db.RegisterMessage(ProductBiddingCategoryStatusEnum) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/enums/shared_set_status_pb2_grpc.py b/google/ads/google_ads/v4/proto/enums/product_bidding_category_status_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/enums/shared_set_status_pb2_grpc.py rename to google/ads/google_ads/v4/proto/enums/product_bidding_category_status_pb2_grpc.py diff --git a/google/ads/google_ads/v1/proto/enums/product_channel_exclusivity_pb2.py b/google/ads/google_ads/v4/proto/enums/product_channel_exclusivity_pb2.py similarity index 75% rename from google/ads/google_ads/v1/proto/enums/product_channel_exclusivity_pb2.py rename to google/ads/google_ads/v4/proto/enums/product_channel_exclusivity_pb2.py index 39806942a..06e90b46d 100644 --- a/google/ads/google_ads/v1/proto/enums/product_channel_exclusivity_pb2.py +++ b/google/ads/google_ads/v4/proto/enums/product_channel_exclusivity_pb2.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/enums/product_channel_exclusivity.proto +# source: google/ads/googleads_v4/proto/enums/product_channel_exclusivity.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) @@ -17,11 +17,11 @@ DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/enums/product_channel_exclusivity.proto', - package='google.ads.googleads.v1.enums', + name='google/ads/googleads_v4/proto/enums/product_channel_exclusivity.proto', + package='google.ads.googleads.v4.enums', syntax='proto3', - serialized_options=_b('\n!com.google.ads.googleads.v1.enumsB\036ProductChannelExclusivityProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v1/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V1.Enums\312\002\035Google\\Ads\\GoogleAds\\V1\\Enums\352\002!Google::Ads::GoogleAds::V1::Enums'), - serialized_pb=_b('\nEgoogle/ads/googleads_v1/proto/enums/product_channel_exclusivity.proto\x12\x1dgoogle.ads.googleads.v1.enums\x1a\x1cgoogle/api/annotations.proto\"\x81\x01\n\x1dProductChannelExclusivityEnum\"`\n\x19ProductChannelExclusivity\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x12\n\x0eSINGLE_CHANNEL\x10\x02\x12\x11\n\rMULTI_CHANNEL\x10\x03\x42\xf3\x01\n!com.google.ads.googleads.v1.enumsB\x1eProductChannelExclusivityProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v1/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V1.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V1\\Enums\xea\x02!Google::Ads::GoogleAds::V1::Enumsb\x06proto3') + serialized_options=_b('\n!com.google.ads.googleads.v4.enumsB\036ProductChannelExclusivityProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V4.Enums\312\002\035Google\\Ads\\GoogleAds\\V4\\Enums\352\002!Google::Ads::GoogleAds::V4::Enums'), + serialized_pb=_b('\nEgoogle/ads/googleads_v4/proto/enums/product_channel_exclusivity.proto\x12\x1dgoogle.ads.googleads.v4.enums\x1a\x1cgoogle/api/annotations.proto\"\x81\x01\n\x1dProductChannelExclusivityEnum\"`\n\x19ProductChannelExclusivity\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x12\n\x0eSINGLE_CHANNEL\x10\x02\x12\x11\n\rMULTI_CHANNEL\x10\x03\x42\xf3\x01\n!com.google.ads.googleads.v4.enumsB\x1eProductChannelExclusivityProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V4.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V4\\Enums\xea\x02!Google::Ads::GoogleAds::V4::Enumsb\x06proto3') , dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) @@ -29,7 +29,7 @@ _PRODUCTCHANNELEXCLUSIVITYENUM_PRODUCTCHANNELEXCLUSIVITY = _descriptor.EnumDescriptor( name='ProductChannelExclusivity', - full_name='google.ads.googleads.v1.enums.ProductChannelExclusivityEnum.ProductChannelExclusivity', + full_name='google.ads.googleads.v4.enums.ProductChannelExclusivityEnum.ProductChannelExclusivity', filename=None, file=DESCRIPTOR, values=[ @@ -60,7 +60,7 @@ _PRODUCTCHANNELEXCLUSIVITYENUM = _descriptor.Descriptor( name='ProductChannelExclusivityEnum', - full_name='google.ads.googleads.v1.enums.ProductChannelExclusivityEnum', + full_name='google.ads.googleads.v4.enums.ProductChannelExclusivityEnum', filename=None, file=DESCRIPTOR, containing_type=None, @@ -88,11 +88,11 @@ ProductChannelExclusivityEnum = _reflection.GeneratedProtocolMessageType('ProductChannelExclusivityEnum', (_message.Message,), dict( DESCRIPTOR = _PRODUCTCHANNELEXCLUSIVITYENUM, - __module__ = 'google.ads.googleads_v1.proto.enums.product_channel_exclusivity_pb2' + __module__ = 'google.ads.googleads_v4.proto.enums.product_channel_exclusivity_pb2' , __doc__ = """Availability of a product offer. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.enums.ProductChannelExclusivityEnum) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.enums.ProductChannelExclusivityEnum) )) _sym_db.RegisterMessage(ProductChannelExclusivityEnum) diff --git a/google/ads/google_ads/v1/proto/enums/shared_set_type_pb2_grpc.py b/google/ads/google_ads/v4/proto/enums/product_channel_exclusivity_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/enums/shared_set_type_pb2_grpc.py rename to google/ads/google_ads/v4/proto/enums/product_channel_exclusivity_pb2_grpc.py diff --git a/google/ads/google_ads/v4/proto/enums/product_channel_pb2.py b/google/ads/google_ads/v4/proto/enums/product_channel_pb2.py new file mode 100644 index 000000000..eb5fcc20c --- /dev/null +++ b/google/ads/google_ads/v4/proto/enums/product_channel_pb2.py @@ -0,0 +1,101 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/enums/product_channel.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/enums/product_channel.proto', + package='google.ads.googleads.v4.enums', + syntax='proto3', + serialized_options=_b('\n!com.google.ads.googleads.v4.enumsB\023ProductChannelProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V4.Enums\312\002\035Google\\Ads\\GoogleAds\\V4\\Enums\352\002!Google::Ads::GoogleAds::V4::Enums'), + serialized_pb=_b('\n9google/ads/googleads_v4/proto/enums/product_channel.proto\x12\x1dgoogle.ads.googleads.v4.enums\x1a\x1cgoogle/api/annotations.proto\"[\n\x12ProductChannelEnum\"E\n\x0eProductChannel\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\n\n\x06ONLINE\x10\x02\x12\t\n\x05LOCAL\x10\x03\x42\xe8\x01\n!com.google.ads.googleads.v4.enumsB\x13ProductChannelProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V4.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V4\\Enums\xea\x02!Google::Ads::GoogleAds::V4::Enumsb\x06proto3') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_PRODUCTCHANNELENUM_PRODUCTCHANNEL = _descriptor.EnumDescriptor( + name='ProductChannel', + full_name='google.ads.googleads.v4.enums.ProductChannelEnum.ProductChannel', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='UNSPECIFIED', index=0, number=0, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='UNKNOWN', index=1, number=1, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='ONLINE', index=2, number=2, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='LOCAL', index=3, number=3, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=144, + serialized_end=213, +) +_sym_db.RegisterEnumDescriptor(_PRODUCTCHANNELENUM_PRODUCTCHANNEL) + + +_PRODUCTCHANNELENUM = _descriptor.Descriptor( + name='ProductChannelEnum', + full_name='google.ads.googleads.v4.enums.ProductChannelEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _PRODUCTCHANNELENUM_PRODUCTCHANNEL, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=122, + serialized_end=213, +) + +_PRODUCTCHANNELENUM_PRODUCTCHANNEL.containing_type = _PRODUCTCHANNELENUM +DESCRIPTOR.message_types_by_name['ProductChannelEnum'] = _PRODUCTCHANNELENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +ProductChannelEnum = _reflection.GeneratedProtocolMessageType('ProductChannelEnum', (_message.Message,), dict( + DESCRIPTOR = _PRODUCTCHANNELENUM, + __module__ = 'google.ads.googleads_v4.proto.enums.product_channel_pb2' + , + __doc__ = """Locality of a product offer. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.enums.ProductChannelEnum) + )) +_sym_db.RegisterMessage(ProductChannelEnum) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/enums/simulation_modification_method_pb2_grpc.py b/google/ads/google_ads/v4/proto/enums/product_channel_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/enums/simulation_modification_method_pb2_grpc.py rename to google/ads/google_ads/v4/proto/enums/product_channel_pb2_grpc.py diff --git a/google/ads/google_ads/v4/proto/enums/product_condition_pb2.py b/google/ads/google_ads/v4/proto/enums/product_condition_pb2.py new file mode 100644 index 000000000..dadda5ae0 --- /dev/null +++ b/google/ads/google_ads/v4/proto/enums/product_condition_pb2.py @@ -0,0 +1,105 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/enums/product_condition.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/enums/product_condition.proto', + package='google.ads.googleads.v4.enums', + syntax='proto3', + serialized_options=_b('\n!com.google.ads.googleads.v4.enumsB\025ProductConditionProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V4.Enums\312\002\035Google\\Ads\\GoogleAds\\V4\\Enums\352\002!Google::Ads::GoogleAds::V4::Enums'), + serialized_pb=_b('\n;google/ads/googleads_v4/proto/enums/product_condition.proto\x12\x1dgoogle.ads.googleads.v4.enums\x1a\x1cgoogle/api/annotations.proto\"l\n\x14ProductConditionEnum\"T\n\x10ProductCondition\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x07\n\x03NEW\x10\x03\x12\x0f\n\x0bREFURBISHED\x10\x04\x12\x08\n\x04USED\x10\x05\x42\xea\x01\n!com.google.ads.googleads.v4.enumsB\x15ProductConditionProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V4.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V4\\Enums\xea\x02!Google::Ads::GoogleAds::V4::Enumsb\x06proto3') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_PRODUCTCONDITIONENUM_PRODUCTCONDITION = _descriptor.EnumDescriptor( + name='ProductCondition', + full_name='google.ads.googleads.v4.enums.ProductConditionEnum.ProductCondition', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='UNSPECIFIED', index=0, number=0, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='UNKNOWN', index=1, number=1, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='NEW', index=2, number=3, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='REFURBISHED', index=3, number=4, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='USED', index=4, number=5, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=148, + serialized_end=232, +) +_sym_db.RegisterEnumDescriptor(_PRODUCTCONDITIONENUM_PRODUCTCONDITION) + + +_PRODUCTCONDITIONENUM = _descriptor.Descriptor( + name='ProductConditionEnum', + full_name='google.ads.googleads.v4.enums.ProductConditionEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _PRODUCTCONDITIONENUM_PRODUCTCONDITION, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=124, + serialized_end=232, +) + +_PRODUCTCONDITIONENUM_PRODUCTCONDITION.containing_type = _PRODUCTCONDITIONENUM +DESCRIPTOR.message_types_by_name['ProductConditionEnum'] = _PRODUCTCONDITIONENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +ProductConditionEnum = _reflection.GeneratedProtocolMessageType('ProductConditionEnum', (_message.Message,), dict( + DESCRIPTOR = _PRODUCTCONDITIONENUM, + __module__ = 'google.ads.googleads_v4.proto.enums.product_condition_pb2' + , + __doc__ = """Condition of a product offer. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.enums.ProductConditionEnum) + )) +_sym_db.RegisterMessage(ProductConditionEnum) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/enums/simulation_type_pb2_grpc.py b/google/ads/google_ads/v4/proto/enums/product_condition_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/enums/simulation_type_pb2_grpc.py rename to google/ads/google_ads/v4/proto/enums/product_condition_pb2_grpc.py diff --git a/google/ads/google_ads/v4/proto/enums/product_custom_attribute_index_pb2.py b/google/ads/google_ads/v4/proto/enums/product_custom_attribute_index_pb2.py new file mode 100644 index 000000000..4c82fce46 --- /dev/null +++ b/google/ads/google_ads/v4/proto/enums/product_custom_attribute_index_pb2.py @@ -0,0 +1,113 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/enums/product_custom_attribute_index.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/enums/product_custom_attribute_index.proto', + package='google.ads.googleads.v4.enums', + syntax='proto3', + serialized_options=_b('\n!com.google.ads.googleads.v4.enumsB ProductCustomAttributeIndexProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V4.Enums\312\002\035Google\\Ads\\GoogleAds\\V4\\Enums\352\002!Google::Ads::GoogleAds::V4::Enums'), + serialized_pb=_b('\nHgoogle/ads/googleads_v4/proto/enums/product_custom_attribute_index.proto\x12\x1dgoogle.ads.googleads.v4.enums\x1a\x1cgoogle/api/annotations.proto\"\x9a\x01\n\x1fProductCustomAttributeIndexEnum\"w\n\x1bProductCustomAttributeIndex\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\n\n\x06INDEX0\x10\x07\x12\n\n\x06INDEX1\x10\x08\x12\n\n\x06INDEX2\x10\t\x12\n\n\x06INDEX3\x10\n\x12\n\n\x06INDEX4\x10\x0b\x42\xf5\x01\n!com.google.ads.googleads.v4.enumsB ProductCustomAttributeIndexProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V4.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V4\\Enums\xea\x02!Google::Ads::GoogleAds::V4::Enumsb\x06proto3') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_PRODUCTCUSTOMATTRIBUTEINDEXENUM_PRODUCTCUSTOMATTRIBUTEINDEX = _descriptor.EnumDescriptor( + name='ProductCustomAttributeIndex', + full_name='google.ads.googleads.v4.enums.ProductCustomAttributeIndexEnum.ProductCustomAttributeIndex', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='UNSPECIFIED', index=0, number=0, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='UNKNOWN', index=1, number=1, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INDEX0', index=2, number=7, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INDEX1', index=3, number=8, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INDEX2', index=4, number=9, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INDEX3', index=5, number=10, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INDEX4', index=6, number=11, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=173, + serialized_end=292, +) +_sym_db.RegisterEnumDescriptor(_PRODUCTCUSTOMATTRIBUTEINDEXENUM_PRODUCTCUSTOMATTRIBUTEINDEX) + + +_PRODUCTCUSTOMATTRIBUTEINDEXENUM = _descriptor.Descriptor( + name='ProductCustomAttributeIndexEnum', + full_name='google.ads.googleads.v4.enums.ProductCustomAttributeIndexEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _PRODUCTCUSTOMATTRIBUTEINDEXENUM_PRODUCTCUSTOMATTRIBUTEINDEX, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=138, + serialized_end=292, +) + +_PRODUCTCUSTOMATTRIBUTEINDEXENUM_PRODUCTCUSTOMATTRIBUTEINDEX.containing_type = _PRODUCTCUSTOMATTRIBUTEINDEXENUM +DESCRIPTOR.message_types_by_name['ProductCustomAttributeIndexEnum'] = _PRODUCTCUSTOMATTRIBUTEINDEXENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +ProductCustomAttributeIndexEnum = _reflection.GeneratedProtocolMessageType('ProductCustomAttributeIndexEnum', (_message.Message,), dict( + DESCRIPTOR = _PRODUCTCUSTOMATTRIBUTEINDEXENUM, + __module__ = 'google.ads.googleads_v4.proto.enums.product_custom_attribute_index_pb2' + , + __doc__ = """Container for enum describing the index of the product custom attribute. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.enums.ProductCustomAttributeIndexEnum) + )) +_sym_db.RegisterMessage(ProductCustomAttributeIndexEnum) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/enums/sitelink_placeholder_field_pb2_grpc.py b/google/ads/google_ads/v4/proto/enums/product_custom_attribute_index_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/enums/sitelink_placeholder_field_pb2_grpc.py rename to google/ads/google_ads/v4/proto/enums/product_custom_attribute_index_pb2_grpc.py diff --git a/google/ads/google_ads/v1/proto/enums/product_type_level_pb2.py b/google/ads/google_ads/v4/proto/enums/product_type_level_pb2.py similarity index 75% rename from google/ads/google_ads/v1/proto/enums/product_type_level_pb2.py rename to google/ads/google_ads/v4/proto/enums/product_type_level_pb2.py index 5520738ec..96a01d2d5 100644 --- a/google/ads/google_ads/v1/proto/enums/product_type_level_pb2.py +++ b/google/ads/google_ads/v4/proto/enums/product_type_level_pb2.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/enums/product_type_level.proto +# source: google/ads/googleads_v4/proto/enums/product_type_level.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) @@ -17,11 +17,11 @@ DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/enums/product_type_level.proto', - package='google.ads.googleads.v1.enums', + name='google/ads/googleads_v4/proto/enums/product_type_level.proto', + package='google.ads.googleads.v4.enums', syntax='proto3', - serialized_options=_b('\n!com.google.ads.googleads.v1.enumsB\025ProductTypeLevelProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v1/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V1.Enums\312\002\035Google\\Ads\\GoogleAds\\V1\\Enums\352\002!Google::Ads::GoogleAds::V1::Enums'), - serialized_pb=_b('\ngoogle/ads/googleads_v1/proto/enums/quality_score_bucket.proto\x12\x1dgoogle.ads.googleads.v1.enums\x1a\x1cgoogle/api/annotations.proto\"\x7f\n\x16QualityScoreBucketEnum\"e\n\x12QualityScoreBucket\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x11\n\rBELOW_AVERAGE\x10\x02\x12\x0b\n\x07\x41VERAGE\x10\x03\x12\x11\n\rABOVE_AVERAGE\x10\x04\x42\xec\x01\n!com.google.ads.googleads.v1.enumsB\x17QualityScoreBucketProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v1/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V1.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V1\\Enums\xea\x02!Google::Ads::GoogleAds::V1::Enumsb\x06proto3') + serialized_options=_b('\n!com.google.ads.googleads.v4.enumsB\027QualityScoreBucketProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V4.Enums\312\002\035Google\\Ads\\GoogleAds\\V4\\Enums\352\002!Google::Ads::GoogleAds::V4::Enums'), + serialized_pb=_b('\n>google/ads/googleads_v4/proto/enums/quality_score_bucket.proto\x12\x1dgoogle.ads.googleads.v4.enums\x1a\x1cgoogle/api/annotations.proto\"\x7f\n\x16QualityScoreBucketEnum\"e\n\x12QualityScoreBucket\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x11\n\rBELOW_AVERAGE\x10\x02\x12\x0b\n\x07\x41VERAGE\x10\x03\x12\x11\n\rABOVE_AVERAGE\x10\x04\x42\xec\x01\n!com.google.ads.googleads.v4.enumsB\x17QualityScoreBucketProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V4.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V4\\Enums\xea\x02!Google::Ads::GoogleAds::V4::Enumsb\x06proto3') , dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) @@ -29,7 +29,7 @@ _QUALITYSCOREBUCKETENUM_QUALITYSCOREBUCKET = _descriptor.EnumDescriptor( name='QualityScoreBucket', - full_name='google.ads.googleads.v1.enums.QualityScoreBucketEnum.QualityScoreBucket', + full_name='google.ads.googleads.v4.enums.QualityScoreBucketEnum.QualityScoreBucket', filename=None, file=DESCRIPTOR, values=[ @@ -64,7 +64,7 @@ _QUALITYSCOREBUCKETENUM = _descriptor.Descriptor( name='QualityScoreBucketEnum', - full_name='google.ads.googleads.v1.enums.QualityScoreBucketEnum', + full_name='google.ads.googleads.v4.enums.QualityScoreBucketEnum', filename=None, file=DESCRIPTOR, containing_type=None, @@ -92,11 +92,11 @@ QualityScoreBucketEnum = _reflection.GeneratedProtocolMessageType('QualityScoreBucketEnum', (_message.Message,), dict( DESCRIPTOR = _QUALITYSCOREBUCKETENUM, - __module__ = 'google.ads.googleads_v1.proto.enums.quality_score_bucket_pb2' + __module__ = 'google.ads.googleads_v4.proto.enums.quality_score_bucket_pb2' , __doc__ = """The relative performance compared to other advertisers. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.enums.QualityScoreBucketEnum) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.enums.QualityScoreBucketEnum) )) _sym_db.RegisterMessage(QualityScoreBucketEnum) diff --git a/google/ads/google_ads/v1/proto/enums/target_impression_share_location_pb2_grpc.py b/google/ads/google_ads/v4/proto/enums/quality_score_bucket_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/enums/target_impression_share_location_pb2_grpc.py rename to google/ads/google_ads/v4/proto/enums/quality_score_bucket_pb2_grpc.py diff --git a/google/ads/google_ads/v4/proto/enums/reach_plan_ad_length_pb2.py b/google/ads/google_ads/v4/proto/enums/reach_plan_ad_length_pb2.py new file mode 100644 index 000000000..4a3e21bec --- /dev/null +++ b/google/ads/google_ads/v4/proto/enums/reach_plan_ad_length_pb2.py @@ -0,0 +1,105 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/enums/reach_plan_ad_length.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/enums/reach_plan_ad_length.proto', + package='google.ads.googleads.v4.enums', + syntax='proto3', + serialized_options=_b('\n!com.google.ads.googleads.v4.enumsB\026ReachPlanAdLengthProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V4.Enums\312\002\035Google\\Ads\\GoogleAds\\V4\\Enums\352\002!Google::Ads::GoogleAds::V4::Enums'), + serialized_pb=_b('\n>google/ads/googleads_v4/proto/enums/reach_plan_ad_length.proto\x12\x1dgoogle.ads.googleads.v4.enums\x1a\x1cgoogle/api/annotations.proto\"\x96\x01\n\x15ReachPlanAdLengthEnum\"}\n\x11ReachPlanAdLength\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0f\n\x0bSIX_SECONDS\x10\x02\x12\x1d\n\x19\x46IFTEEN_OR_TWENTY_SECONDS\x10\x03\x12\x1a\n\x16TWENTY_SECONDS_OR_MORE\x10\x04\x42\xeb\x01\n!com.google.ads.googleads.v4.enumsB\x16ReachPlanAdLengthProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V4.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V4\\Enums\xea\x02!Google::Ads::GoogleAds::V4::Enumsb\x06proto3') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_REACHPLANADLENGTHENUM_REACHPLANADLENGTH = _descriptor.EnumDescriptor( + name='ReachPlanAdLength', + full_name='google.ads.googleads.v4.enums.ReachPlanAdLengthEnum.ReachPlanAdLength', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='UNSPECIFIED', index=0, number=0, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='UNKNOWN', index=1, number=1, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='SIX_SECONDS', index=2, number=2, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='FIFTEEN_OR_TWENTY_SECONDS', index=3, number=3, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='TWENTY_SECONDS_OR_MORE', index=4, number=4, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=153, + serialized_end=278, +) +_sym_db.RegisterEnumDescriptor(_REACHPLANADLENGTHENUM_REACHPLANADLENGTH) + + +_REACHPLANADLENGTHENUM = _descriptor.Descriptor( + name='ReachPlanAdLengthEnum', + full_name='google.ads.googleads.v4.enums.ReachPlanAdLengthEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _REACHPLANADLENGTHENUM_REACHPLANADLENGTH, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=128, + serialized_end=278, +) + +_REACHPLANADLENGTHENUM_REACHPLANADLENGTH.containing_type = _REACHPLANADLENGTHENUM +DESCRIPTOR.message_types_by_name['ReachPlanAdLengthEnum'] = _REACHPLANADLENGTHENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +ReachPlanAdLengthEnum = _reflection.GeneratedProtocolMessageType('ReachPlanAdLengthEnum', (_message.Message,), dict( + DESCRIPTOR = _REACHPLANADLENGTHENUM, + __module__ = 'google.ads.googleads_v4.proto.enums.reach_plan_ad_length_pb2' + , + __doc__ = """Message describing length of a plannable video ad. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.enums.ReachPlanAdLengthEnum) + )) +_sym_db.RegisterMessage(ReachPlanAdLengthEnum) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/enums/targeting_dimension_pb2_grpc.py b/google/ads/google_ads/v4/proto/enums/reach_plan_ad_length_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/enums/targeting_dimension_pb2_grpc.py rename to google/ads/google_ads/v4/proto/enums/reach_plan_ad_length_pb2_grpc.py diff --git a/google/ads/google_ads/v4/proto/enums/reach_plan_age_range_pb2.py b/google/ads/google_ads/v4/proto/enums/reach_plan_age_range_pb2.py new file mode 100644 index 000000000..232b04f1d --- /dev/null +++ b/google/ads/google_ads/v4/proto/enums/reach_plan_age_range_pb2.py @@ -0,0 +1,197 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/enums/reach_plan_age_range.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/enums/reach_plan_age_range.proto', + package='google.ads.googleads.v4.enums', + syntax='proto3', + serialized_options=_b('\n!com.google.ads.googleads.v4.enumsB\026ReachPlanAgeRangeProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V4.Enums\312\002\035Google\\Ads\\GoogleAds\\V4\\Enums\352\002!Google::Ads::GoogleAds::V4::Enums'), + serialized_pb=_b('\n>google/ads/googleads_v4/proto/enums/reach_plan_age_range.proto\x12\x1dgoogle.ads.googleads.v4.enums\x1a\x1cgoogle/api/annotations.proto\"\x8b\x05\n\x15ReachPlanAgeRangeEnum\"\xf1\x04\n\x11ReachPlanAgeRange\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x15\n\x0f\x41GE_RANGE_18_24\x10\xd9\xd9\x1e\x12\x13\n\x0f\x41GE_RANGE_18_34\x10\x02\x12\x13\n\x0f\x41GE_RANGE_18_44\x10\x03\x12\x13\n\x0f\x41GE_RANGE_18_49\x10\x04\x12\x13\n\x0f\x41GE_RANGE_18_54\x10\x05\x12\x13\n\x0f\x41GE_RANGE_18_64\x10\x06\x12\x16\n\x12\x41GE_RANGE_18_65_UP\x10\x07\x12\x13\n\x0f\x41GE_RANGE_21_34\x10\x08\x12\x15\n\x0f\x41GE_RANGE_25_34\x10\xda\xd9\x1e\x12\x13\n\x0f\x41GE_RANGE_25_44\x10\t\x12\x13\n\x0f\x41GE_RANGE_25_49\x10\n\x12\x13\n\x0f\x41GE_RANGE_25_54\x10\x0b\x12\x13\n\x0f\x41GE_RANGE_25_64\x10\x0c\x12\x16\n\x12\x41GE_RANGE_25_65_UP\x10\r\x12\x15\n\x0f\x41GE_RANGE_35_44\x10\xdb\xd9\x1e\x12\x13\n\x0f\x41GE_RANGE_35_49\x10\x0e\x12\x13\n\x0f\x41GE_RANGE_35_54\x10\x0f\x12\x13\n\x0f\x41GE_RANGE_35_64\x10\x10\x12\x16\n\x12\x41GE_RANGE_35_65_UP\x10\x11\x12\x15\n\x0f\x41GE_RANGE_45_54\x10\xdc\xd9\x1e\x12\x13\n\x0f\x41GE_RANGE_45_64\x10\x12\x12\x16\n\x12\x41GE_RANGE_45_65_UP\x10\x13\x12\x16\n\x12\x41GE_RANGE_50_65_UP\x10\x14\x12\x15\n\x0f\x41GE_RANGE_55_64\x10\xdd\xd9\x1e\x12\x16\n\x12\x41GE_RANGE_55_65_UP\x10\x15\x12\x15\n\x0f\x41GE_RANGE_65_UP\x10\xde\xd9\x1e\x42\xeb\x01\n!com.google.ads.googleads.v4.enumsB\x16ReachPlanAgeRangeProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V4.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V4\\Enums\xea\x02!Google::Ads::GoogleAds::V4::Enumsb\x06proto3') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_REACHPLANAGERANGEENUM_REACHPLANAGERANGE = _descriptor.EnumDescriptor( + name='ReachPlanAgeRange', + full_name='google.ads.googleads.v4.enums.ReachPlanAgeRangeEnum.ReachPlanAgeRange', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='UNSPECIFIED', index=0, number=0, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='UNKNOWN', index=1, number=1, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='AGE_RANGE_18_24', index=2, number=503001, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='AGE_RANGE_18_34', index=3, number=2, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='AGE_RANGE_18_44', index=4, number=3, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='AGE_RANGE_18_49', index=5, number=4, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='AGE_RANGE_18_54', index=6, number=5, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='AGE_RANGE_18_64', index=7, number=6, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='AGE_RANGE_18_65_UP', index=8, number=7, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='AGE_RANGE_21_34', index=9, number=8, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='AGE_RANGE_25_34', index=10, number=503002, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='AGE_RANGE_25_44', index=11, number=9, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='AGE_RANGE_25_49', index=12, number=10, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='AGE_RANGE_25_54', index=13, number=11, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='AGE_RANGE_25_64', index=14, number=12, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='AGE_RANGE_25_65_UP', index=15, number=13, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='AGE_RANGE_35_44', index=16, number=503003, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='AGE_RANGE_35_49', index=17, number=14, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='AGE_RANGE_35_54', index=18, number=15, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='AGE_RANGE_35_64', index=19, number=16, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='AGE_RANGE_35_65_UP', index=20, number=17, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='AGE_RANGE_45_54', index=21, number=503004, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='AGE_RANGE_45_64', index=22, number=18, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='AGE_RANGE_45_65_UP', index=23, number=19, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='AGE_RANGE_50_65_UP', index=24, number=20, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='AGE_RANGE_55_64', index=25, number=503005, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='AGE_RANGE_55_65_UP', index=26, number=21, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='AGE_RANGE_65_UP', index=27, number=503006, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=154, + serialized_end=779, +) +_sym_db.RegisterEnumDescriptor(_REACHPLANAGERANGEENUM_REACHPLANAGERANGE) + + +_REACHPLANAGERANGEENUM = _descriptor.Descriptor( + name='ReachPlanAgeRangeEnum', + full_name='google.ads.googleads.v4.enums.ReachPlanAgeRangeEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _REACHPLANAGERANGEENUM_REACHPLANAGERANGE, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=128, + serialized_end=779, +) + +_REACHPLANAGERANGEENUM_REACHPLANAGERANGE.containing_type = _REACHPLANAGERANGEENUM +DESCRIPTOR.message_types_by_name['ReachPlanAgeRangeEnum'] = _REACHPLANAGERANGEENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +ReachPlanAgeRangeEnum = _reflection.GeneratedProtocolMessageType('ReachPlanAgeRangeEnum', (_message.Message,), dict( + DESCRIPTOR = _REACHPLANAGERANGEENUM, + __module__ = 'google.ads.googleads_v4.proto.enums.reach_plan_age_range_pb2' + , + __doc__ = """Message describing plannable age ranges. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.enums.ReachPlanAgeRangeEnum) + )) +_sym_db.RegisterMessage(ReachPlanAgeRangeEnum) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/enums/time_type_pb2_grpc.py b/google/ads/google_ads/v4/proto/enums/reach_plan_age_range_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/enums/time_type_pb2_grpc.py rename to google/ads/google_ads/v4/proto/enums/reach_plan_age_range_pb2_grpc.py diff --git a/google/ads/google_ads/v4/proto/enums/reach_plan_network_pb2.py b/google/ads/google_ads/v4/proto/enums/reach_plan_network_pb2.py new file mode 100644 index 000000000..8a3e16b42 --- /dev/null +++ b/google/ads/google_ads/v4/proto/enums/reach_plan_network_pb2.py @@ -0,0 +1,105 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/enums/reach_plan_network.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/enums/reach_plan_network.proto', + package='google.ads.googleads.v4.enums', + syntax='proto3', + serialized_options=_b('\n!com.google.ads.googleads.v4.enumsB\025ReachPlanNetworkProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V4.Enums\312\002\035Google\\Ads\\GoogleAds\\V4\\Enums\352\002!Google::Ads::GoogleAds::V4::Enums'), + serialized_pb=_b('\n\n\x08TimeType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x07\n\x03NOW\x10\x02\x12\x0b\n\x07\x46OREVER\x10\x03\x42\xe2\x01\n!com.google.ads.googleads.v4.enumsB\rTimeTypeProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V4.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V4\\Enums\xea\x02!Google::Ads::GoogleAds::V4::Enumsb\x06proto3') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_TIMETYPEENUM_TIMETYPE = _descriptor.EnumDescriptor( + name='TimeType', + full_name='google.ads.googleads.v4.enums.TimeTypeEnum.TimeType', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='UNSPECIFIED', index=0, number=0, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='UNKNOWN', index=1, number=1, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='NOW', index=2, number=2, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='FOREVER', index=3, number=3, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=132, + serialized_end=194, +) +_sym_db.RegisterEnumDescriptor(_TIMETYPEENUM_TIMETYPE) + + +_TIMETYPEENUM = _descriptor.Descriptor( + name='TimeTypeEnum', + full_name='google.ads.googleads.v4.enums.TimeTypeEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _TIMETYPEENUM_TIMETYPE, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=116, + serialized_end=194, +) + +_TIMETYPEENUM_TIMETYPE.containing_type = _TIMETYPEENUM +DESCRIPTOR.message_types_by_name['TimeTypeEnum'] = _TIMETYPEENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +TimeTypeEnum = _reflection.GeneratedProtocolMessageType('TimeTypeEnum', (_message.Message,), dict( + DESCRIPTOR = _TIMETYPEENUM, + __module__ = 'google.ads.googleads_v4.proto.enums.time_type_pb2' + , + __doc__ = """Message describing time types. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.enums.TimeTypeEnum) + )) +_sym_db.RegisterMessage(TimeTypeEnum) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/enums/webpage_condition_operator_pb2_grpc.py b/google/ads/google_ads/v4/proto/enums/time_type_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/enums/webpage_condition_operator_pb2_grpc.py rename to google/ads/google_ads/v4/proto/enums/time_type_pb2_grpc.py diff --git a/google/ads/google_ads/v4/proto/enums/tracking_code_page_format_pb2.py b/google/ads/google_ads/v4/proto/enums/tracking_code_page_format_pb2.py new file mode 100644 index 000000000..749c0ff63 --- /dev/null +++ b/google/ads/google_ads/v4/proto/enums/tracking_code_page_format_pb2.py @@ -0,0 +1,102 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/enums/tracking_code_page_format.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/enums/tracking_code_page_format.proto', + package='google.ads.googleads.v4.enums', + syntax='proto3', + serialized_options=_b('\n!com.google.ads.googleads.v4.enumsB\033TrackingCodePageFormatProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V4.Enums\312\002\035Google\\Ads\\GoogleAds\\V4\\Enums\352\002!Google::Ads::GoogleAds::V4::Enums'), + serialized_pb=_b('\nCgoogle/ads/googleads_v4/proto/enums/tracking_code_page_format.proto\x12\x1dgoogle.ads.googleads.v4.enums\x1a\x1cgoogle/api/annotations.proto\"g\n\x1aTrackingCodePageFormatEnum\"I\n\x16TrackingCodePageFormat\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x08\n\x04HTML\x10\x02\x12\x07\n\x03\x41MP\x10\x03\x42\xf0\x01\n!com.google.ads.googleads.v4.enumsB\x1bTrackingCodePageFormatProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V4.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V4\\Enums\xea\x02!Google::Ads::GoogleAds::V4::Enumsb\x06proto3') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_TRACKINGCODEPAGEFORMATENUM_TRACKINGCODEPAGEFORMAT = _descriptor.EnumDescriptor( + name='TrackingCodePageFormat', + full_name='google.ads.googleads.v4.enums.TrackingCodePageFormatEnum.TrackingCodePageFormat', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='UNSPECIFIED', index=0, number=0, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='UNKNOWN', index=1, number=1, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='HTML', index=2, number=2, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='AMP', index=3, number=3, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=162, + serialized_end=235, +) +_sym_db.RegisterEnumDescriptor(_TRACKINGCODEPAGEFORMATENUM_TRACKINGCODEPAGEFORMAT) + + +_TRACKINGCODEPAGEFORMATENUM = _descriptor.Descriptor( + name='TrackingCodePageFormatEnum', + full_name='google.ads.googleads.v4.enums.TrackingCodePageFormatEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _TRACKINGCODEPAGEFORMATENUM_TRACKINGCODEPAGEFORMAT, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=132, + serialized_end=235, +) + +_TRACKINGCODEPAGEFORMATENUM_TRACKINGCODEPAGEFORMAT.containing_type = _TRACKINGCODEPAGEFORMATENUM +DESCRIPTOR.message_types_by_name['TrackingCodePageFormatEnum'] = _TRACKINGCODEPAGEFORMATENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +TrackingCodePageFormatEnum = _reflection.GeneratedProtocolMessageType('TrackingCodePageFormatEnum', (_message.Message,), dict( + DESCRIPTOR = _TRACKINGCODEPAGEFORMATENUM, + __module__ = 'google.ads.googleads_v4.proto.enums.tracking_code_page_format_pb2' + , + __doc__ = """Container for enum describing the format of the web page where the + tracking tag and snippet will be installed. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.enums.TrackingCodePageFormatEnum) + )) +_sym_db.RegisterMessage(TrackingCodePageFormatEnum) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/errors/account_budget_proposal_error_pb2_grpc.py b/google/ads/google_ads/v4/proto/enums/tracking_code_page_format_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/errors/account_budget_proposal_error_pb2_grpc.py rename to google/ads/google_ads/v4/proto/enums/tracking_code_page_format_pb2_grpc.py diff --git a/google/ads/google_ads/v4/proto/enums/tracking_code_type_pb2.py b/google/ads/google_ads/v4/proto/enums/tracking_code_type_pb2.py new file mode 100644 index 000000000..15df8ae5d --- /dev/null +++ b/google/ads/google_ads/v4/proto/enums/tracking_code_type_pb2.py @@ -0,0 +1,110 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/enums/tracking_code_type.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/enums/tracking_code_type.proto', + package='google.ads.googleads.v4.enums', + syntax='proto3', + serialized_options=_b('\n!com.google.ads.googleads.v4.enumsB\025TrackingCodeTypeProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V4.Enums\312\002\035Google\\Ads\\GoogleAds\\V4\\Enums\352\002!Google::Ads::GoogleAds::V4::Enums'), + serialized_pb=_b('\ngoogle/ads/googleads_v1/proto/enums/user_list_size_range.proto\x12\x1dgoogle.ads.googleads.v1.enums\x1a\x1cgoogle/api/annotations.proto\"\x94\x05\n\x15UserListSizeRangeEnum\"\xfa\x04\n\x11UserListSizeRange\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x1a\n\x16LESS_THAN_FIVE_HUNDRED\x10\x02\x12\x1a\n\x16LESS_THAN_ONE_THOUSAND\x10\x03\x12 \n\x1cONE_THOUSAND_TO_TEN_THOUSAND\x10\x04\x12\"\n\x1eTEN_THOUSAND_TO_FIFTY_THOUSAND\x10\x05\x12*\n&FIFTY_THOUSAND_TO_ONE_HUNDRED_THOUSAND\x10\x06\x12\x32\n.ONE_HUNDRED_THOUSAND_TO_THREE_HUNDRED_THOUSAND\x10\x07\x12\x33\n/THREE_HUNDRED_THOUSAND_TO_FIVE_HUNDRED_THOUSAND\x10\x08\x12(\n$FIVE_HUNDRED_THOUSAND_TO_ONE_MILLION\x10\t\x12\x1e\n\x1aONE_MILLION_TO_TWO_MILLION\x10\n\x12 \n\x1cTWO_MILLION_TO_THREE_MILLION\x10\x0b\x12!\n\x1dTHREE_MILLION_TO_FIVE_MILLION\x10\x0c\x12\x1f\n\x1b\x46IVE_MILLION_TO_TEN_MILLION\x10\r\x12!\n\x1dTEN_MILLION_TO_TWENTY_MILLION\x10\x0e\x12$\n TWENTY_MILLION_TO_THIRTY_MILLION\x10\x0f\x12#\n\x1fTHIRTY_MILLION_TO_FIFTY_MILLION\x10\x10\x12\x16\n\x12OVER_FIFTY_MILLION\x10\x11\x42\xeb\x01\n!com.google.ads.googleads.v1.enumsB\x16UserListSizeRangeProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v1/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V1.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V1\\Enums\xea\x02!Google::Ads::GoogleAds::V1::Enumsb\x06proto3') + serialized_options=_b('\n!com.google.ads.googleads.v4.enumsB\026UserListSizeRangeProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V4.Enums\312\002\035Google\\Ads\\GoogleAds\\V4\\Enums\352\002!Google::Ads::GoogleAds::V4::Enums'), + serialized_pb=_b('\n>google/ads/googleads_v4/proto/enums/user_list_size_range.proto\x12\x1dgoogle.ads.googleads.v4.enums\x1a\x1cgoogle/api/annotations.proto\"\x94\x05\n\x15UserListSizeRangeEnum\"\xfa\x04\n\x11UserListSizeRange\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x1a\n\x16LESS_THAN_FIVE_HUNDRED\x10\x02\x12\x1a\n\x16LESS_THAN_ONE_THOUSAND\x10\x03\x12 \n\x1cONE_THOUSAND_TO_TEN_THOUSAND\x10\x04\x12\"\n\x1eTEN_THOUSAND_TO_FIFTY_THOUSAND\x10\x05\x12*\n&FIFTY_THOUSAND_TO_ONE_HUNDRED_THOUSAND\x10\x06\x12\x32\n.ONE_HUNDRED_THOUSAND_TO_THREE_HUNDRED_THOUSAND\x10\x07\x12\x33\n/THREE_HUNDRED_THOUSAND_TO_FIVE_HUNDRED_THOUSAND\x10\x08\x12(\n$FIVE_HUNDRED_THOUSAND_TO_ONE_MILLION\x10\t\x12\x1e\n\x1aONE_MILLION_TO_TWO_MILLION\x10\n\x12 \n\x1cTWO_MILLION_TO_THREE_MILLION\x10\x0b\x12!\n\x1dTHREE_MILLION_TO_FIVE_MILLION\x10\x0c\x12\x1f\n\x1b\x46IVE_MILLION_TO_TEN_MILLION\x10\r\x12!\n\x1dTEN_MILLION_TO_TWENTY_MILLION\x10\x0e\x12$\n TWENTY_MILLION_TO_THIRTY_MILLION\x10\x0f\x12#\n\x1fTHIRTY_MILLION_TO_FIFTY_MILLION\x10\x10\x12\x16\n\x12OVER_FIFTY_MILLION\x10\x11\x42\xeb\x01\n!com.google.ads.googleads.v4.enumsB\x16UserListSizeRangeProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V4.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V4\\Enums\xea\x02!Google::Ads::GoogleAds::V4::Enumsb\x06proto3') , dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) @@ -29,7 +29,7 @@ _USERLISTSIZERANGEENUM_USERLISTSIZERANGE = _descriptor.EnumDescriptor( name='UserListSizeRange', - full_name='google.ads.googleads.v1.enums.UserListSizeRangeEnum.UserListSizeRange', + full_name='google.ads.googleads.v4.enums.UserListSizeRangeEnum.UserListSizeRange', filename=None, file=DESCRIPTOR, values=[ @@ -116,7 +116,7 @@ _USERLISTSIZERANGEENUM = _descriptor.Descriptor( name='UserListSizeRangeEnum', - full_name='google.ads.googleads.v1.enums.UserListSizeRangeEnum', + full_name='google.ads.googleads.v4.enums.UserListSizeRangeEnum', filename=None, file=DESCRIPTOR, containing_type=None, @@ -144,11 +144,11 @@ UserListSizeRangeEnum = _reflection.GeneratedProtocolMessageType('UserListSizeRangeEnum', (_message.Message,), dict( DESCRIPTOR = _USERLISTSIZERANGEENUM, - __module__ = 'google.ads.googleads_v1.proto.enums.user_list_size_range_pb2' + __module__ = 'google.ads.googleads_v4.proto.enums.user_list_size_range_pb2' , __doc__ = """Size range in terms of number of users of a UserList. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.enums.UserListSizeRangeEnum) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.enums.UserListSizeRangeEnum) )) _sym_db.RegisterMessage(UserListSizeRangeEnum) diff --git a/google/ads/google_ads/v1/proto/errors/bidding_error_pb2_grpc.py b/google/ads/google_ads/v4/proto/enums/user_list_size_range_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/errors/bidding_error_pb2_grpc.py rename to google/ads/google_ads/v4/proto/enums/user_list_size_range_pb2_grpc.py diff --git a/google/ads/google_ads/v1/proto/enums/user_list_string_rule_item_operator_pb2.py b/google/ads/google_ads/v4/proto/enums/user_list_string_rule_item_operator_pb2.py similarity index 80% rename from google/ads/google_ads/v1/proto/enums/user_list_string_rule_item_operator_pb2.py rename to google/ads/google_ads/v4/proto/enums/user_list_string_rule_item_operator_pb2.py index 0d517b44d..e3df679f8 100644 --- a/google/ads/google_ads/v1/proto/enums/user_list_string_rule_item_operator_pb2.py +++ b/google/ads/google_ads/v4/proto/enums/user_list_string_rule_item_operator_pb2.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/enums/user_list_string_rule_item_operator.proto +# source: google/ads/googleads_v4/proto/enums/user_list_string_rule_item_operator.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) @@ -17,11 +17,11 @@ DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/enums/user_list_string_rule_item_operator.proto', - package='google.ads.googleads.v1.enums', + name='google/ads/googleads_v4/proto/enums/user_list_string_rule_item_operator.proto', + package='google.ads.googleads.v4.enums', syntax='proto3', - serialized_options=_b('\n!com.google.ads.googleads.v1.enumsB#UserListStringRuleItemOperatorProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v1/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V1.Enums\312\002\035Google\\Ads\\GoogleAds\\V1\\Enums\352\002!Google::Ads::GoogleAds::V1::Enums'), - serialized_pb=_b('\nMgoogle/ads/googleads_v1/proto/enums/user_list_string_rule_item_operator.proto\x12\x1dgoogle.ads.googleads.v1.enums\x1a\x1cgoogle/api/annotations.proto\"\xe9\x01\n\"UserListStringRuleItemOperatorEnum\"\xc2\x01\n\x1eUserListStringRuleItemOperator\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0c\n\x08\x43ONTAINS\x10\x02\x12\n\n\x06\x45QUALS\x10\x03\x12\x0f\n\x0bSTARTS_WITH\x10\x04\x12\r\n\tENDS_WITH\x10\x05\x12\x0e\n\nNOT_EQUALS\x10\x06\x12\x10\n\x0cNOT_CONTAINS\x10\x07\x12\x13\n\x0fNOT_STARTS_WITH\x10\x08\x12\x11\n\rNOT_ENDS_WITH\x10\tB\xf8\x01\n!com.google.ads.googleads.v1.enumsB#UserListStringRuleItemOperatorProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v1/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V1.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V1\\Enums\xea\x02!Google::Ads::GoogleAds::V1::Enumsb\x06proto3') + serialized_options=_b('\n!com.google.ads.googleads.v4.enumsB#UserListStringRuleItemOperatorProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V4.Enums\312\002\035Google\\Ads\\GoogleAds\\V4\\Enums\352\002!Google::Ads::GoogleAds::V4::Enums'), + serialized_pb=_b('\nMgoogle/ads/googleads_v4/proto/enums/user_list_string_rule_item_operator.proto\x12\x1dgoogle.ads.googleads.v4.enums\x1a\x1cgoogle/api/annotations.proto\"\xe9\x01\n\"UserListStringRuleItemOperatorEnum\"\xc2\x01\n\x1eUserListStringRuleItemOperator\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0c\n\x08\x43ONTAINS\x10\x02\x12\n\n\x06\x45QUALS\x10\x03\x12\x0f\n\x0bSTARTS_WITH\x10\x04\x12\r\n\tENDS_WITH\x10\x05\x12\x0e\n\nNOT_EQUALS\x10\x06\x12\x10\n\x0cNOT_CONTAINS\x10\x07\x12\x13\n\x0fNOT_STARTS_WITH\x10\x08\x12\x11\n\rNOT_ENDS_WITH\x10\tB\xf8\x01\n!com.google.ads.googleads.v4.enumsB#UserListStringRuleItemOperatorProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V4.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V4\\Enums\xea\x02!Google::Ads::GoogleAds::V4::Enumsb\x06proto3') , dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) @@ -29,7 +29,7 @@ _USERLISTSTRINGRULEITEMOPERATORENUM_USERLISTSTRINGRULEITEMOPERATOR = _descriptor.EnumDescriptor( name='UserListStringRuleItemOperator', - full_name='google.ads.googleads.v1.enums.UserListStringRuleItemOperatorEnum.UserListStringRuleItemOperator', + full_name='google.ads.googleads.v4.enums.UserListStringRuleItemOperatorEnum.UserListStringRuleItemOperator', filename=None, file=DESCRIPTOR, values=[ @@ -84,7 +84,7 @@ _USERLISTSTRINGRULEITEMOPERATORENUM = _descriptor.Descriptor( name='UserListStringRuleItemOperatorEnum', - full_name='google.ads.googleads.v1.enums.UserListStringRuleItemOperatorEnum', + full_name='google.ads.googleads.v4.enums.UserListStringRuleItemOperatorEnum', filename=None, file=DESCRIPTOR, containing_type=None, @@ -112,11 +112,11 @@ UserListStringRuleItemOperatorEnum = _reflection.GeneratedProtocolMessageType('UserListStringRuleItemOperatorEnum', (_message.Message,), dict( DESCRIPTOR = _USERLISTSTRINGRULEITEMOPERATORENUM, - __module__ = 'google.ads.googleads_v1.proto.enums.user_list_string_rule_item_operator_pb2' + __module__ = 'google.ads.googleads_v4.proto.enums.user_list_string_rule_item_operator_pb2' , __doc__ = """Supported rule operator for string type. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.enums.UserListStringRuleItemOperatorEnum) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.enums.UserListStringRuleItemOperatorEnum) )) _sym_db.RegisterMessage(UserListStringRuleItemOperatorEnum) diff --git a/google/ads/google_ads/v1/proto/errors/bidding_strategy_error_pb2_grpc.py b/google/ads/google_ads/v4/proto/enums/user_list_string_rule_item_operator_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/errors/bidding_strategy_error_pb2_grpc.py rename to google/ads/google_ads/v4/proto/enums/user_list_string_rule_item_operator_pb2_grpc.py diff --git a/google/ads/google_ads/v1/proto/enums/user_list_type_pb2.py b/google/ads/google_ads/v4/proto/enums/user_list_type_pb2.py similarity index 76% rename from google/ads/google_ads/v1/proto/enums/user_list_type_pb2.py rename to google/ads/google_ads/v4/proto/enums/user_list_type_pb2.py index 584fa41f6..c11b5a031 100644 --- a/google/ads/google_ads/v1/proto/enums/user_list_type_pb2.py +++ b/google/ads/google_ads/v4/proto/enums/user_list_type_pb2.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/enums/user_list_type.proto +# source: google/ads/googleads_v4/proto/enums/user_list_type.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) @@ -17,11 +17,11 @@ DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/enums/user_list_type.proto', - package='google.ads.googleads.v1.enums', + name='google/ads/googleads_v4/proto/enums/user_list_type.proto', + package='google.ads.googleads.v4.enums', syntax='proto3', - serialized_options=_b('\n!com.google.ads.googleads.v1.enumsB\021UserListTypeProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v1/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V1.Enums\312\002\035Google\\Ads\\GoogleAds\\V1\\Enums\352\002!Google::Ads::GoogleAds::V1::Enums'), - serialized_pb=_b('\n8google/ads/googleads_v1/proto/enums/user_list_type.proto\x12\x1dgoogle.ads.googleads.v1.enums\x1a\x1cgoogle/api/annotations.proto\"\xa5\x01\n\x10UserListTypeEnum\"\x90\x01\n\x0cUserListType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0f\n\x0bREMARKETING\x10\x02\x12\x0b\n\x07LOGICAL\x10\x03\x12\x18\n\x14\x45XTERNAL_REMARKETING\x10\x04\x12\x0e\n\nRULE_BASED\x10\x05\x12\x0b\n\x07SIMILAR\x10\x06\x12\r\n\tCRM_BASED\x10\x07\x42\xe6\x01\n!com.google.ads.googleads.v1.enumsB\x11UserListTypeProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v1/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V1.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V1\\Enums\xea\x02!Google::Ads::GoogleAds::V1::Enumsb\x06proto3') + serialized_options=_b('\n!com.google.ads.googleads.v4.enumsB\021UserListTypeProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V4.Enums\312\002\035Google\\Ads\\GoogleAds\\V4\\Enums\352\002!Google::Ads::GoogleAds::V4::Enums'), + serialized_pb=_b('\n8google/ads/googleads_v4/proto/enums/user_list_type.proto\x12\x1dgoogle.ads.googleads.v4.enums\x1a\x1cgoogle/api/annotations.proto\"\xa5\x01\n\x10UserListTypeEnum\"\x90\x01\n\x0cUserListType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0f\n\x0bREMARKETING\x10\x02\x12\x0b\n\x07LOGICAL\x10\x03\x12\x18\n\x14\x45XTERNAL_REMARKETING\x10\x04\x12\x0e\n\nRULE_BASED\x10\x05\x12\x0b\n\x07SIMILAR\x10\x06\x12\r\n\tCRM_BASED\x10\x07\x42\xe6\x01\n!com.google.ads.googleads.v4.enumsB\x11UserListTypeProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V4.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V4\\Enums\xea\x02!Google::Ads::GoogleAds::V4::Enumsb\x06proto3') , dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) @@ -29,7 +29,7 @@ _USERLISTTYPEENUM_USERLISTTYPE = _descriptor.EnumDescriptor( name='UserListType', - full_name='google.ads.googleads.v1.enums.UserListTypeEnum.UserListType', + full_name='google.ads.googleads.v4.enums.UserListTypeEnum.UserListType', filename=None, file=DESCRIPTOR, values=[ @@ -76,7 +76,7 @@ _USERLISTTYPEENUM = _descriptor.Descriptor( name='UserListTypeEnum', - full_name='google.ads.googleads.v1.enums.UserListTypeEnum', + full_name='google.ads.googleads.v4.enums.UserListTypeEnum', filename=None, file=DESCRIPTOR, containing_type=None, @@ -104,11 +104,11 @@ UserListTypeEnum = _reflection.GeneratedProtocolMessageType('UserListTypeEnum', (_message.Message,), dict( DESCRIPTOR = _USERLISTTYPEENUM, - __module__ = 'google.ads.googleads_v1.proto.enums.user_list_type_pb2' + __module__ = 'google.ads.googleads_v4.proto.enums.user_list_type_pb2' , __doc__ = """The user list types. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.enums.UserListTypeEnum) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.enums.UserListTypeEnum) )) _sym_db.RegisterMessage(UserListTypeEnum) diff --git a/google/ads/google_ads/v1/proto/errors/billing_setup_error_pb2_grpc.py b/google/ads/google_ads/v4/proto/enums/user_list_type_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/errors/billing_setup_error_pb2_grpc.py rename to google/ads/google_ads/v4/proto/enums/user_list_type_pb2_grpc.py diff --git a/google/ads/google_ads/v1/proto/enums/vanity_pharma_display_url_mode_pb2.py b/google/ads/google_ads/v4/proto/enums/vanity_pharma_display_url_mode_pb2.py similarity index 75% rename from google/ads/google_ads/v1/proto/enums/vanity_pharma_display_url_mode_pb2.py rename to google/ads/google_ads/v4/proto/enums/vanity_pharma_display_url_mode_pb2.py index 7c1f1a652..4c6819722 100644 --- a/google/ads/google_ads/v1/proto/enums/vanity_pharma_display_url_mode_pb2.py +++ b/google/ads/google_ads/v4/proto/enums/vanity_pharma_display_url_mode_pb2.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/enums/vanity_pharma_display_url_mode.proto +# source: google/ads/googleads_v4/proto/enums/vanity_pharma_display_url_mode.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) @@ -17,11 +17,11 @@ DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/enums/vanity_pharma_display_url_mode.proto', - package='google.ads.googleads.v1.enums', + name='google/ads/googleads_v4/proto/enums/vanity_pharma_display_url_mode.proto', + package='google.ads.googleads.v4.enums', syntax='proto3', - serialized_options=_b('\n!com.google.ads.googleads.v1.enumsB\037VanityPharmaDisplayUrlModeProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v1/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V1.Enums\312\002\035Google\\Ads\\GoogleAds\\V1\\Enums\352\002!Google::Ads::GoogleAds::V1::Enums'), - serialized_pb=_b('\nHgoogle/ads/googleads_v1/proto/enums/vanity_pharma_display_url_mode.proto\x12\x1dgoogle.ads.googleads.v1.enums\x1a\x1cgoogle/api/annotations.proto\"\x93\x01\n\x1eVanityPharmaDisplayUrlModeEnum\"q\n\x1aVanityPharmaDisplayUrlMode\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x1c\n\x18MANUFACTURER_WEBSITE_URL\x10\x02\x12\x17\n\x13WEBSITE_DESCRIPTION\x10\x03\x42\xf4\x01\n!com.google.ads.googleads.v1.enumsB\x1fVanityPharmaDisplayUrlModeProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v1/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V1.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V1\\Enums\xea\x02!Google::Ads::GoogleAds::V1::Enumsb\x06proto3') + serialized_options=_b('\n!com.google.ads.googleads.v4.enumsB\037VanityPharmaDisplayUrlModeProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V4.Enums\312\002\035Google\\Ads\\GoogleAds\\V4\\Enums\352\002!Google::Ads::GoogleAds::V4::Enums'), + serialized_pb=_b('\nHgoogle/ads/googleads_v4/proto/enums/vanity_pharma_display_url_mode.proto\x12\x1dgoogle.ads.googleads.v4.enums\x1a\x1cgoogle/api/annotations.proto\"\x93\x01\n\x1eVanityPharmaDisplayUrlModeEnum\"q\n\x1aVanityPharmaDisplayUrlMode\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x1c\n\x18MANUFACTURER_WEBSITE_URL\x10\x02\x12\x17\n\x13WEBSITE_DESCRIPTION\x10\x03\x42\xf4\x01\n!com.google.ads.googleads.v4.enumsB\x1fVanityPharmaDisplayUrlModeProtoP\x01ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v4/enums;enums\xa2\x02\x03GAA\xaa\x02\x1dGoogle.Ads.GoogleAds.V4.Enums\xca\x02\x1dGoogle\\Ads\\GoogleAds\\V4\\Enums\xea\x02!Google::Ads::GoogleAds::V4::Enumsb\x06proto3') , dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) @@ -29,7 +29,7 @@ _VANITYPHARMADISPLAYURLMODEENUM_VANITYPHARMADISPLAYURLMODE = _descriptor.EnumDescriptor( name='VanityPharmaDisplayUrlMode', - full_name='google.ads.googleads.v1.enums.VanityPharmaDisplayUrlModeEnum.VanityPharmaDisplayUrlMode', + full_name='google.ads.googleads.v4.enums.VanityPharmaDisplayUrlModeEnum.VanityPharmaDisplayUrlMode', filename=None, file=DESCRIPTOR, values=[ @@ -60,7 +60,7 @@ _VANITYPHARMADISPLAYURLMODEENUM = _descriptor.Descriptor( name='VanityPharmaDisplayUrlModeEnum', - full_name='google.ads.googleads.v1.enums.VanityPharmaDisplayUrlModeEnum', + full_name='google.ads.googleads.v4.enums.VanityPharmaDisplayUrlModeEnum', filename=None, file=DESCRIPTOR, containing_type=None, @@ -88,11 +88,11 @@ VanityPharmaDisplayUrlModeEnum = _reflection.GeneratedProtocolMessageType('VanityPharmaDisplayUrlModeEnum', (_message.Message,), dict( DESCRIPTOR = _VANITYPHARMADISPLAYURLMODEENUM, - __module__ = 'google.ads.googleads_v1.proto.enums.vanity_pharma_display_url_mode_pb2' + __module__ = 'google.ads.googleads_v4.proto.enums.vanity_pharma_display_url_mode_pb2' , __doc__ = """The display mode for vanity pharma URLs. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.enums.VanityPharmaDisplayUrlModeEnum) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.enums.VanityPharmaDisplayUrlModeEnum) )) _sym_db.RegisterMessage(VanityPharmaDisplayUrlModeEnum) diff --git a/google/ads/google_ads/v1/proto/errors/campaign_budget_error_pb2_grpc.py b/google/ads/google_ads/v4/proto/enums/vanity_pharma_display_url_mode_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/errors/campaign_budget_error_pb2_grpc.py rename to google/ads/google_ads/v4/proto/enums/vanity_pharma_display_url_mode_pb2_grpc.py diff --git a/google/ads/google_ads/v1/proto/enums/vanity_pharma_text_pb2.py b/google/ads/google_ads/v4/proto/enums/vanity_pharma_text_pb2.py similarity index 82% rename from google/ads/google_ads/v1/proto/enums/vanity_pharma_text_pb2.py rename to google/ads/google_ads/v4/proto/enums/vanity_pharma_text_pb2.py index 8b13d8898..4a6a65b4a 100644 --- a/google/ads/google_ads/v1/proto/enums/vanity_pharma_text_pb2.py +++ b/google/ads/google_ads/v4/proto/enums/vanity_pharma_text_pb2.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/enums/vanity_pharma_text.proto +# source: google/ads/googleads_v4/proto/enums/vanity_pharma_text.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) @@ -17,11 +17,11 @@ DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/enums/vanity_pharma_text.proto', - package='google.ads.googleads.v1.enums', + name='google/ads/googleads_v4/proto/enums/vanity_pharma_text.proto', + package='google.ads.googleads.v4.enums', syntax='proto3', - serialized_options=_b('\n!com.google.ads.googleads.v1.enumsB\025VanityPharmaTextProtoP\001ZBgoogle.golang.org/genproto/googleapis/ads/googleads/v1/enums;enums\242\002\003GAA\252\002\035Google.Ads.GoogleAds.V1.Enums\312\002\035Google\\Ads\\GoogleAds\\V1\\Enums\352\002!Google::Ads::GoogleAds::V1::Enums'), - serialized_pb=_b('\ngoogle/ads/googleads_v1/proto/errors/ad_customizer_error.proto\x12\x1egoogle.ads.googleads.v1.errors\x1a\x1cgoogle/api/annotations.proto\"\xe8\x01\n\x15\x41\x64\x43ustomizerErrorEnum\"\xce\x01\n\x11\x41\x64\x43ustomizerError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12!\n\x1d\x43OUNTDOWN_INVALID_DATE_FORMAT\x10\x02\x12\x1a\n\x16\x43OUNTDOWN_DATE_IN_PAST\x10\x03\x12\x1c\n\x18\x43OUNTDOWN_INVALID_LOCALE\x10\x04\x12\'\n#COUNTDOWN_INVALID_START_DAYS_BEFORE\x10\x05\x12\x15\n\x11UNKNOWN_USER_LIST\x10\x06\x42\xf1\x01\n\"com.google.ads.googleads.v1.errorsB\x16\x41\x64\x43ustomizerErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V1.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V1\\Errors\xea\x02\"Google::Ads::GoogleAds::V1::Errorsb\x06proto3') + serialized_options=_b('\n\"com.google.ads.googleads.v4.errorsB\026AdCustomizerErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V4.Errors\312\002\036Google\\Ads\\GoogleAds\\V4\\Errors\352\002\"Google::Ads::GoogleAds::V4::Errors'), + serialized_pb=_b('\n>google/ads/googleads_v4/proto/errors/ad_customizer_error.proto\x12\x1egoogle.ads.googleads.v4.errors\x1a\x1cgoogle/api/annotations.proto\"\xe8\x01\n\x15\x41\x64\x43ustomizerErrorEnum\"\xce\x01\n\x11\x41\x64\x43ustomizerError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12!\n\x1d\x43OUNTDOWN_INVALID_DATE_FORMAT\x10\x02\x12\x1a\n\x16\x43OUNTDOWN_DATE_IN_PAST\x10\x03\x12\x1c\n\x18\x43OUNTDOWN_INVALID_LOCALE\x10\x04\x12\'\n#COUNTDOWN_INVALID_START_DAYS_BEFORE\x10\x05\x12\x15\n\x11UNKNOWN_USER_LIST\x10\x06\x42\xf1\x01\n\"com.google.ads.googleads.v4.errorsB\x16\x41\x64\x43ustomizerErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V4.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V4\\Errors\xea\x02\"Google::Ads::GoogleAds::V4::Errorsb\x06proto3') , dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) @@ -29,7 +29,7 @@ _ADCUSTOMIZERERRORENUM_ADCUSTOMIZERERROR = _descriptor.EnumDescriptor( name='AdCustomizerError', - full_name='google.ads.googleads.v1.errors.AdCustomizerErrorEnum.AdCustomizerError', + full_name='google.ads.googleads.v4.errors.AdCustomizerErrorEnum.AdCustomizerError', filename=None, file=DESCRIPTOR, values=[ @@ -72,7 +72,7 @@ _ADCUSTOMIZERERRORENUM = _descriptor.Descriptor( name='AdCustomizerErrorEnum', - full_name='google.ads.googleads.v1.errors.AdCustomizerErrorEnum', + full_name='google.ads.googleads.v4.errors.AdCustomizerErrorEnum', filename=None, file=DESCRIPTOR, containing_type=None, @@ -100,11 +100,11 @@ AdCustomizerErrorEnum = _reflection.GeneratedProtocolMessageType('AdCustomizerErrorEnum', (_message.Message,), dict( DESCRIPTOR = _ADCUSTOMIZERERRORENUM, - __module__ = 'google.ads.googleads_v1.proto.errors.ad_customizer_error_pb2' + __module__ = 'google.ads.googleads_v4.proto.errors.ad_customizer_error_pb2' , __doc__ = """Container for enum describing possible ad customizer errors. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.errors.AdCustomizerErrorEnum) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.errors.AdCustomizerErrorEnum) )) _sym_db.RegisterMessage(AdCustomizerErrorEnum) diff --git a/google/ads/google_ads/v1/proto/errors/change_status_error_pb2_grpc.py b/google/ads/google_ads/v4/proto/errors/ad_customizer_error_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/errors/change_status_error_pb2_grpc.py rename to google/ads/google_ads/v4/proto/errors/ad_customizer_error_pb2_grpc.py diff --git a/google/ads/google_ads/v1/proto/errors/ad_error_pb2.py b/google/ads/google_ads/v4/proto/errors/ad_error_pb2.py similarity index 85% rename from google/ads/google_ads/v1/proto/errors/ad_error_pb2.py rename to google/ads/google_ads/v4/proto/errors/ad_error_pb2.py index 56751d676..881806b76 100644 --- a/google/ads/google_ads/v1/proto/errors/ad_error_pb2.py +++ b/google/ads/google_ads/v4/proto/errors/ad_error_pb2.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/errors/ad_error.proto +# source: google/ads/googleads_v4/proto/errors/ad_error.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) @@ -17,11 +17,11 @@ DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/errors/ad_error.proto', - package='google.ads.googleads.v1.errors', + name='google/ads/googleads_v4/proto/errors/ad_error.proto', + package='google.ads.googleads.v4.errors', syntax='proto3', - serialized_options=_b('\n\"com.google.ads.googleads.v1.errorsB\014AdErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V1.Errors\312\002\036Google\\Ads\\GoogleAds\\V1\\Errors\352\002\"Google::Ads::GoogleAds::V1::Errors'), - serialized_pb=_b('\n3google/ads/googleads_v1/proto/errors/ad_error.proto\x12\x1egoogle.ads.googleads.v1.errors\x1a\x1cgoogle/api/annotations.proto\"\xf0 \n\x0b\x41\x64\x45rrorEnum\"\xe0 \n\x07\x41\x64\x45rror\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12,\n(AD_CUSTOMIZERS_NOT_SUPPORTED_FOR_AD_TYPE\x10\x02\x12\x1a\n\x16\x41PPROXIMATELY_TOO_LONG\x10\x03\x12\x1b\n\x17\x41PPROXIMATELY_TOO_SHORT\x10\x04\x12\x0f\n\x0b\x42\x41\x44_SNIPPET\x10\x05\x12\x14\n\x10\x43\x41NNOT_MODIFY_AD\x10\x06\x12\'\n#CANNOT_SET_BUSINESS_NAME_IF_URL_SET\x10\x07\x12\x14\n\x10\x43\x41NNOT_SET_FIELD\x10\x08\x12*\n&CANNOT_SET_FIELD_WITH_ORIGIN_AD_ID_SET\x10\t\x12/\n+CANNOT_SET_FIELD_WITH_AD_ID_SET_FOR_SHARING\x10\n\x12)\n%CANNOT_SET_ALLOW_FLEXIBLE_COLOR_FALSE\x10\x0b\x12\x37\n3CANNOT_SET_COLOR_CONTROL_WHEN_NATIVE_FORMAT_SETTING\x10\x0c\x12\x12\n\x0e\x43\x41NNOT_SET_URL\x10\r\x12!\n\x1d\x43\x41NNOT_SET_WITHOUT_FINAL_URLS\x10\x0e\x12\x1e\n\x1a\x43\x41NNOT_SET_WITH_FINAL_URLS\x10\x0f\x12\x1c\n\x18\x43\x41NNOT_SET_WITH_URL_DATA\x10\x11\x12\'\n#CANNOT_USE_AD_SUBCLASS_FOR_OPERATOR\x10\x12\x12#\n\x1f\x43USTOMER_NOT_APPROVED_MOBILEADS\x10\x13\x12(\n$CUSTOMER_NOT_APPROVED_THIRDPARTY_ADS\x10\x14\x12\x31\n-CUSTOMER_NOT_APPROVED_THIRDPARTY_REDIRECT_ADS\x10\x15\x12\x19\n\x15\x43USTOMER_NOT_ELIGIBLE\x10\x16\x12\x31\n-CUSTOMER_NOT_ELIGIBLE_FOR_UPDATING_BEACON_URL\x10\x17\x12\x1e\n\x1a\x44IMENSION_ALREADY_IN_UNION\x10\x18\x12\x19\n\x15\x44IMENSION_MUST_BE_SET\x10\x19\x12\x1a\n\x16\x44IMENSION_NOT_IN_UNION\x10\x1a\x12#\n\x1f\x44ISPLAY_URL_CANNOT_BE_SPECIFIED\x10\x1b\x12 \n\x1c\x44OMESTIC_PHONE_NUMBER_FORMAT\x10\x1c\x12\x1a\n\x16\x45MERGENCY_PHONE_NUMBER\x10\x1d\x12\x0f\n\x0b\x45MPTY_FIELD\x10\x1e\x12\x30\n,FEED_ATTRIBUTE_MUST_HAVE_MAPPING_FOR_TYPE_ID\x10\x1f\x12(\n$FEED_ATTRIBUTE_MAPPING_TYPE_MISMATCH\x10 \x12!\n\x1dILLEGAL_AD_CUSTOMIZER_TAG_USE\x10!\x12\x13\n\x0fILLEGAL_TAG_USE\x10\"\x12\x1b\n\x17INCONSISTENT_DIMENSIONS\x10#\x12)\n%INCONSISTENT_STATUS_IN_TEMPLATE_UNION\x10$\x12\x14\n\x10INCORRECT_LENGTH\x10%\x12\x1a\n\x16INELIGIBLE_FOR_UPGRADE\x10&\x12&\n\"INVALID_AD_ADDRESS_CAMPAIGN_TARGET\x10\'\x12\x13\n\x0fINVALID_AD_TYPE\x10(\x12\'\n#INVALID_ATTRIBUTES_FOR_MOBILE_IMAGE\x10)\x12&\n\"INVALID_ATTRIBUTES_FOR_MOBILE_TEXT\x10*\x12\x1f\n\x1bINVALID_CALL_TO_ACTION_TEXT\x10+\x12\x1d\n\x19INVALID_CHARACTER_FOR_URL\x10,\x12\x18\n\x14INVALID_COUNTRY_CODE\x10-\x12*\n&INVALID_EXPANDED_DYNAMIC_SEARCH_AD_TAG\x10/\x12\x11\n\rINVALID_INPUT\x10\x30\x12\x1b\n\x17INVALID_MARKUP_LANGUAGE\x10\x31\x12\x1a\n\x16INVALID_MOBILE_CARRIER\x10\x32\x12!\n\x1dINVALID_MOBILE_CARRIER_TARGET\x10\x33\x12\x1e\n\x1aINVALID_NUMBER_OF_ELEMENTS\x10\x34\x12\x1f\n\x1bINVALID_PHONE_NUMBER_FORMAT\x10\x35\x12\x31\n-INVALID_RICH_MEDIA_CERTIFIED_VENDOR_FORMAT_ID\x10\x36\x12\x19\n\x15INVALID_TEMPLATE_DATA\x10\x37\x12\'\n#INVALID_TEMPLATE_ELEMENT_FIELD_TYPE\x10\x38\x12\x17\n\x13INVALID_TEMPLATE_ID\x10\x39\x12\x11\n\rLINE_TOO_WIDE\x10:\x12!\n\x1dMISSING_AD_CUSTOMIZER_MAPPING\x10;\x12\x1d\n\x19MISSING_ADDRESS_COMPONENT\x10<\x12\x1e\n\x1aMISSING_ADVERTISEMENT_NAME\x10=\x12\x19\n\x15MISSING_BUSINESS_NAME\x10>\x12\x18\n\x14MISSING_DESCRIPTION1\x10?\x12\x18\n\x14MISSING_DESCRIPTION2\x10@\x12\x1f\n\x1bMISSING_DESTINATION_URL_TAG\x10\x41\x12 \n\x1cMISSING_LANDING_PAGE_URL_TAG\x10\x42\x12\x15\n\x11MISSING_DIMENSION\x10\x43\x12\x17\n\x13MISSING_DISPLAY_URL\x10\x44\x12\x14\n\x10MISSING_HEADLINE\x10\x45\x12\x12\n\x0eMISSING_HEIGHT\x10\x46\x12\x11\n\rMISSING_IMAGE\x10G\x12-\n)MISSING_MARKETING_IMAGE_OR_PRODUCT_VIDEOS\x10H\x12\x1c\n\x18MISSING_MARKUP_LANGUAGES\x10I\x12\x1a\n\x16MISSING_MOBILE_CARRIER\x10J\x12\x11\n\rMISSING_PHONE\x10K\x12$\n MISSING_REQUIRED_TEMPLATE_FIELDS\x10L\x12 \n\x1cMISSING_TEMPLATE_FIELD_VALUE\x10M\x12\x10\n\x0cMISSING_TEXT\x10N\x12\x17\n\x13MISSING_VISIBLE_URL\x10O\x12\x11\n\rMISSING_WIDTH\x10P\x12\'\n#MULTIPLE_DISTINCT_FEEDS_UNSUPPORTED\x10Q\x12$\n MUST_USE_TEMP_AD_UNION_ID_ON_ADD\x10R\x12\x0c\n\x08TOO_LONG\x10S\x12\r\n\tTOO_SHORT\x10T\x12\"\n\x1eUNION_DIMENSIONS_CANNOT_CHANGE\x10U\x12\x1d\n\x19UNKNOWN_ADDRESS_COMPONENT\x10V\x12\x16\n\x12UNKNOWN_FIELD_NAME\x10W\x12\x17\n\x13UNKNOWN_UNIQUE_NAME\x10X\x12\x1a\n\x16UNSUPPORTED_DIMENSIONS\x10Y\x12\x16\n\x12URL_INVALID_SCHEME\x10Z\x12 \n\x1cURL_INVALID_TOP_LEVEL_DOMAIN\x10[\x12\x11\n\rURL_MALFORMED\x10\\\x12\x0f\n\x0bURL_NO_HOST\x10]\x12\x16\n\x12URL_NOT_EQUIVALENT\x10^\x12\x1a\n\x16URL_HOST_NAME_TOO_LONG\x10_\x12\x11\n\rURL_NO_SCHEME\x10`\x12\x1b\n\x17URL_NO_TOP_LEVEL_DOMAIN\x10\x61\x12\x18\n\x14URL_PATH_NOT_ALLOWED\x10\x62\x12\x18\n\x14URL_PORT_NOT_ALLOWED\x10\x63\x12\x19\n\x15URL_QUERY_NOT_ALLOWED\x10\x64\x12\x34\n0URL_SCHEME_BEFORE_EXPANDED_DYNAMIC_SEARCH_AD_TAG\x10\x66\x12)\n%USER_DOES_NOT_HAVE_ACCESS_TO_TEMPLATE\x10g\x12$\n INCONSISTENT_EXPANDABLE_SETTINGS\x10h\x12\x12\n\x0eINVALID_FORMAT\x10i\x12\x16\n\x12INVALID_FIELD_TEXT\x10j\x12\x17\n\x13\x45LEMENT_NOT_PRESENT\x10k\x12\x0f\n\x0bIMAGE_ERROR\x10l\x12\x16\n\x12VALUE_NOT_IN_RANGE\x10m\x12\x15\n\x11\x46IELD_NOT_PRESENT\x10n\x12\x18\n\x14\x41\x44\x44RESS_NOT_COMPLETE\x10o\x12\x13\n\x0f\x41\x44\x44RESS_INVALID\x10p\x12\x19\n\x15VIDEO_RETRIEVAL_ERROR\x10q\x12\x0f\n\x0b\x41UDIO_ERROR\x10r\x12\x1f\n\x1bINVALID_YOUTUBE_DISPLAY_URL\x10s\x12\x1b\n\x17TOO_MANY_PRODUCT_IMAGES\x10t\x12\x1b\n\x17TOO_MANY_PRODUCT_VIDEOS\x10u\x12.\n*INCOMPATIBLE_AD_TYPE_AND_DEVICE_PREFERENCE\x10v\x12*\n&CALLTRACKING_NOT_SUPPORTED_FOR_COUNTRY\x10w\x12-\n)CARRIER_SPECIFIC_SHORT_NUMBER_NOT_ALLOWED\x10x\x12\x1a\n\x16\x44ISALLOWED_NUMBER_TYPE\x10y\x12*\n&PHONE_NUMBER_NOT_SUPPORTED_FOR_COUNTRY\x10z\x12<\n8PHONE_NUMBER_NOT_SUPPORTED_WITH_CALLTRACKING_FOR_COUNTRY\x10{\x12#\n\x1fPREMIUM_RATE_NUMBER_NOT_ALLOWED\x10|\x12#\n\x1fVANITY_PHONE_NUMBER_NOT_ALLOWED\x10}\x12#\n\x1fINVALID_CALL_CONVERSION_TYPE_ID\x10~\x12=\n9CANNOT_DISABLE_CALL_CONVERSION_AND_SET_CONVERSION_TYPE_ID\x10\x7f\x12#\n\x1e\x43\x41NNOT_SET_PATH2_WITHOUT_PATH1\x10\x80\x01\x12\x33\n.MISSING_DYNAMIC_SEARCH_ADS_SETTING_DOMAIN_NAME\x10\x81\x01\x12\'\n\"INCOMPATIBLE_WITH_RESTRICTION_TYPE\x10\x82\x01\x12\x31\n,CUSTOMER_CONSENT_FOR_CALL_RECORDING_REQUIRED\x10\x83\x01\x12\"\n\x1dMISSING_IMAGE_OR_MEDIA_BUNDLE\x10\x84\x01\x12\x30\n+PRODUCT_TYPE_NOT_SUPPORTED_IN_THIS_CAMPAIGN\x10\x85\x01\x42\xe7\x01\n\"com.google.ads.googleads.v1.errorsB\x0c\x41\x64\x45rrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V1.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V1\\Errors\xea\x02\"Google::Ads::GoogleAds::V1::Errorsb\x06proto3') + serialized_options=_b('\n\"com.google.ads.googleads.v4.errorsB\014AdErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V4.Errors\312\002\036Google\\Ads\\GoogleAds\\V4\\Errors\352\002\"Google::Ads::GoogleAds::V4::Errors'), + serialized_pb=_b('\n3google/ads/googleads_v4/proto/errors/ad_error.proto\x12\x1egoogle.ads.googleads.v4.errors\x1a\x1cgoogle/api/annotations.proto\"\xed%\n\x0b\x41\x64\x45rrorEnum\"\xdd%\n\x07\x41\x64\x45rror\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12,\n(AD_CUSTOMIZERS_NOT_SUPPORTED_FOR_AD_TYPE\x10\x02\x12\x1a\n\x16\x41PPROXIMATELY_TOO_LONG\x10\x03\x12\x1b\n\x17\x41PPROXIMATELY_TOO_SHORT\x10\x04\x12\x0f\n\x0b\x42\x41\x44_SNIPPET\x10\x05\x12\x14\n\x10\x43\x41NNOT_MODIFY_AD\x10\x06\x12\'\n#CANNOT_SET_BUSINESS_NAME_IF_URL_SET\x10\x07\x12\x14\n\x10\x43\x41NNOT_SET_FIELD\x10\x08\x12*\n&CANNOT_SET_FIELD_WITH_ORIGIN_AD_ID_SET\x10\t\x12/\n+CANNOT_SET_FIELD_WITH_AD_ID_SET_FOR_SHARING\x10\n\x12)\n%CANNOT_SET_ALLOW_FLEXIBLE_COLOR_FALSE\x10\x0b\x12\x37\n3CANNOT_SET_COLOR_CONTROL_WHEN_NATIVE_FORMAT_SETTING\x10\x0c\x12\x12\n\x0e\x43\x41NNOT_SET_URL\x10\r\x12!\n\x1d\x43\x41NNOT_SET_WITHOUT_FINAL_URLS\x10\x0e\x12\x1e\n\x1a\x43\x41NNOT_SET_WITH_FINAL_URLS\x10\x0f\x12\x1c\n\x18\x43\x41NNOT_SET_WITH_URL_DATA\x10\x11\x12\'\n#CANNOT_USE_AD_SUBCLASS_FOR_OPERATOR\x10\x12\x12#\n\x1f\x43USTOMER_NOT_APPROVED_MOBILEADS\x10\x13\x12(\n$CUSTOMER_NOT_APPROVED_THIRDPARTY_ADS\x10\x14\x12\x31\n-CUSTOMER_NOT_APPROVED_THIRDPARTY_REDIRECT_ADS\x10\x15\x12\x19\n\x15\x43USTOMER_NOT_ELIGIBLE\x10\x16\x12\x31\n-CUSTOMER_NOT_ELIGIBLE_FOR_UPDATING_BEACON_URL\x10\x17\x12\x1e\n\x1a\x44IMENSION_ALREADY_IN_UNION\x10\x18\x12\x19\n\x15\x44IMENSION_MUST_BE_SET\x10\x19\x12\x1a\n\x16\x44IMENSION_NOT_IN_UNION\x10\x1a\x12#\n\x1f\x44ISPLAY_URL_CANNOT_BE_SPECIFIED\x10\x1b\x12 \n\x1c\x44OMESTIC_PHONE_NUMBER_FORMAT\x10\x1c\x12\x1a\n\x16\x45MERGENCY_PHONE_NUMBER\x10\x1d\x12\x0f\n\x0b\x45MPTY_FIELD\x10\x1e\x12\x30\n,FEED_ATTRIBUTE_MUST_HAVE_MAPPING_FOR_TYPE_ID\x10\x1f\x12(\n$FEED_ATTRIBUTE_MAPPING_TYPE_MISMATCH\x10 \x12!\n\x1dILLEGAL_AD_CUSTOMIZER_TAG_USE\x10!\x12\x13\n\x0fILLEGAL_TAG_USE\x10\"\x12\x1b\n\x17INCONSISTENT_DIMENSIONS\x10#\x12)\n%INCONSISTENT_STATUS_IN_TEMPLATE_UNION\x10$\x12\x14\n\x10INCORRECT_LENGTH\x10%\x12\x1a\n\x16INELIGIBLE_FOR_UPGRADE\x10&\x12&\n\"INVALID_AD_ADDRESS_CAMPAIGN_TARGET\x10\'\x12\x13\n\x0fINVALID_AD_TYPE\x10(\x12\'\n#INVALID_ATTRIBUTES_FOR_MOBILE_IMAGE\x10)\x12&\n\"INVALID_ATTRIBUTES_FOR_MOBILE_TEXT\x10*\x12\x1f\n\x1bINVALID_CALL_TO_ACTION_TEXT\x10+\x12\x1d\n\x19INVALID_CHARACTER_FOR_URL\x10,\x12\x18\n\x14INVALID_COUNTRY_CODE\x10-\x12*\n&INVALID_EXPANDED_DYNAMIC_SEARCH_AD_TAG\x10/\x12\x11\n\rINVALID_INPUT\x10\x30\x12\x1b\n\x17INVALID_MARKUP_LANGUAGE\x10\x31\x12\x1a\n\x16INVALID_MOBILE_CARRIER\x10\x32\x12!\n\x1dINVALID_MOBILE_CARRIER_TARGET\x10\x33\x12\x1e\n\x1aINVALID_NUMBER_OF_ELEMENTS\x10\x34\x12\x1f\n\x1bINVALID_PHONE_NUMBER_FORMAT\x10\x35\x12\x31\n-INVALID_RICH_MEDIA_CERTIFIED_VENDOR_FORMAT_ID\x10\x36\x12\x19\n\x15INVALID_TEMPLATE_DATA\x10\x37\x12\'\n#INVALID_TEMPLATE_ELEMENT_FIELD_TYPE\x10\x38\x12\x17\n\x13INVALID_TEMPLATE_ID\x10\x39\x12\x11\n\rLINE_TOO_WIDE\x10:\x12!\n\x1dMISSING_AD_CUSTOMIZER_MAPPING\x10;\x12\x1d\n\x19MISSING_ADDRESS_COMPONENT\x10<\x12\x1e\n\x1aMISSING_ADVERTISEMENT_NAME\x10=\x12\x19\n\x15MISSING_BUSINESS_NAME\x10>\x12\x18\n\x14MISSING_DESCRIPTION1\x10?\x12\x18\n\x14MISSING_DESCRIPTION2\x10@\x12\x1f\n\x1bMISSING_DESTINATION_URL_TAG\x10\x41\x12 \n\x1cMISSING_LANDING_PAGE_URL_TAG\x10\x42\x12\x15\n\x11MISSING_DIMENSION\x10\x43\x12\x17\n\x13MISSING_DISPLAY_URL\x10\x44\x12\x14\n\x10MISSING_HEADLINE\x10\x45\x12\x12\n\x0eMISSING_HEIGHT\x10\x46\x12\x11\n\rMISSING_IMAGE\x10G\x12-\n)MISSING_MARKETING_IMAGE_OR_PRODUCT_VIDEOS\x10H\x12\x1c\n\x18MISSING_MARKUP_LANGUAGES\x10I\x12\x1a\n\x16MISSING_MOBILE_CARRIER\x10J\x12\x11\n\rMISSING_PHONE\x10K\x12$\n MISSING_REQUIRED_TEMPLATE_FIELDS\x10L\x12 \n\x1cMISSING_TEMPLATE_FIELD_VALUE\x10M\x12\x10\n\x0cMISSING_TEXT\x10N\x12\x17\n\x13MISSING_VISIBLE_URL\x10O\x12\x11\n\rMISSING_WIDTH\x10P\x12\'\n#MULTIPLE_DISTINCT_FEEDS_UNSUPPORTED\x10Q\x12$\n MUST_USE_TEMP_AD_UNION_ID_ON_ADD\x10R\x12\x0c\n\x08TOO_LONG\x10S\x12\r\n\tTOO_SHORT\x10T\x12\"\n\x1eUNION_DIMENSIONS_CANNOT_CHANGE\x10U\x12\x1d\n\x19UNKNOWN_ADDRESS_COMPONENT\x10V\x12\x16\n\x12UNKNOWN_FIELD_NAME\x10W\x12\x17\n\x13UNKNOWN_UNIQUE_NAME\x10X\x12\x1a\n\x16UNSUPPORTED_DIMENSIONS\x10Y\x12\x16\n\x12URL_INVALID_SCHEME\x10Z\x12 \n\x1cURL_INVALID_TOP_LEVEL_DOMAIN\x10[\x12\x11\n\rURL_MALFORMED\x10\\\x12\x0f\n\x0bURL_NO_HOST\x10]\x12\x16\n\x12URL_NOT_EQUIVALENT\x10^\x12\x1a\n\x16URL_HOST_NAME_TOO_LONG\x10_\x12\x11\n\rURL_NO_SCHEME\x10`\x12\x1b\n\x17URL_NO_TOP_LEVEL_DOMAIN\x10\x61\x12\x18\n\x14URL_PATH_NOT_ALLOWED\x10\x62\x12\x18\n\x14URL_PORT_NOT_ALLOWED\x10\x63\x12\x19\n\x15URL_QUERY_NOT_ALLOWED\x10\x64\x12\x34\n0URL_SCHEME_BEFORE_EXPANDED_DYNAMIC_SEARCH_AD_TAG\x10\x66\x12)\n%USER_DOES_NOT_HAVE_ACCESS_TO_TEMPLATE\x10g\x12$\n INCONSISTENT_EXPANDABLE_SETTINGS\x10h\x12\x12\n\x0eINVALID_FORMAT\x10i\x12\x16\n\x12INVALID_FIELD_TEXT\x10j\x12\x17\n\x13\x45LEMENT_NOT_PRESENT\x10k\x12\x0f\n\x0bIMAGE_ERROR\x10l\x12\x16\n\x12VALUE_NOT_IN_RANGE\x10m\x12\x15\n\x11\x46IELD_NOT_PRESENT\x10n\x12\x18\n\x14\x41\x44\x44RESS_NOT_COMPLETE\x10o\x12\x13\n\x0f\x41\x44\x44RESS_INVALID\x10p\x12\x19\n\x15VIDEO_RETRIEVAL_ERROR\x10q\x12\x0f\n\x0b\x41UDIO_ERROR\x10r\x12\x1f\n\x1bINVALID_YOUTUBE_DISPLAY_URL\x10s\x12\x1b\n\x17TOO_MANY_PRODUCT_IMAGES\x10t\x12\x1b\n\x17TOO_MANY_PRODUCT_VIDEOS\x10u\x12.\n*INCOMPATIBLE_AD_TYPE_AND_DEVICE_PREFERENCE\x10v\x12*\n&CALLTRACKING_NOT_SUPPORTED_FOR_COUNTRY\x10w\x12-\n)CARRIER_SPECIFIC_SHORT_NUMBER_NOT_ALLOWED\x10x\x12\x1a\n\x16\x44ISALLOWED_NUMBER_TYPE\x10y\x12*\n&PHONE_NUMBER_NOT_SUPPORTED_FOR_COUNTRY\x10z\x12<\n8PHONE_NUMBER_NOT_SUPPORTED_WITH_CALLTRACKING_FOR_COUNTRY\x10{\x12#\n\x1fPREMIUM_RATE_NUMBER_NOT_ALLOWED\x10|\x12#\n\x1fVANITY_PHONE_NUMBER_NOT_ALLOWED\x10}\x12#\n\x1fINVALID_CALL_CONVERSION_TYPE_ID\x10~\x12=\n9CANNOT_DISABLE_CALL_CONVERSION_AND_SET_CONVERSION_TYPE_ID\x10\x7f\x12#\n\x1e\x43\x41NNOT_SET_PATH2_WITHOUT_PATH1\x10\x80\x01\x12\x33\n.MISSING_DYNAMIC_SEARCH_ADS_SETTING_DOMAIN_NAME\x10\x81\x01\x12\'\n\"INCOMPATIBLE_WITH_RESTRICTION_TYPE\x10\x82\x01\x12\x31\n,CUSTOMER_CONSENT_FOR_CALL_RECORDING_REQUIRED\x10\x83\x01\x12\"\n\x1dMISSING_IMAGE_OR_MEDIA_BUNDLE\x10\x84\x01\x12\x30\n+PRODUCT_TYPE_NOT_SUPPORTED_IN_THIS_CAMPAIGN\x10\x85\x01\x12\x30\n+PLACEHOLDER_CANNOT_HAVE_EMPTY_DEFAULT_VALUE\x10\x86\x01\x12=\n8PLACEHOLDER_COUNTDOWN_FUNCTION_CANNOT_HAVE_DEFAULT_VALUE\x10\x87\x01\x12&\n!PLACEHOLDER_DEFAULT_VALUE_MISSING\x10\x88\x01\x12)\n$UNEXPECTED_PLACEHOLDER_DEFAULT_VALUE\x10\x89\x01\x12\'\n\"AD_CUSTOMIZERS_MAY_NOT_BE_ADJACENT\x10\x8a\x01\x12,\n\'UPDATING_AD_WITH_NO_ENABLED_ASSOCIATION\x10\x8b\x01\x12\x1c\n\x17TOO_MANY_AD_CUSTOMIZERS\x10\x8d\x01\x12!\n\x1cINVALID_AD_CUSTOMIZER_FORMAT\x10\x8e\x01\x12 \n\x1bNESTED_AD_CUSTOMIZER_SYNTAX\x10\x8f\x01\x12%\n UNSUPPORTED_AD_CUSTOMIZER_SYNTAX\x10\x90\x01\x12(\n#UNPAIRED_BRACE_IN_AD_CUSTOMIZER_TAG\x10\x91\x01\x12,\n\'MORE_THAN_ONE_COUNTDOWN_TAG_TYPE_EXISTS\x10\x92\x01\x12*\n%DATE_TIME_IN_COUNTDOWN_TAG_IS_INVALID\x10\x93\x01\x12\'\n\"DATE_TIME_IN_COUNTDOWN_TAG_IS_PAST\x10\x94\x01\x12)\n$UNRECOGNIZED_AD_CUSTOMIZER_TAG_FOUND\x10\x95\x01\x42\xe7\x01\n\"com.google.ads.googleads.v4.errorsB\x0c\x41\x64\x45rrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V4.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V4\\Errors\xea\x02\"Google::Ads::GoogleAds::V4::Errorsb\x06proto3') , dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) @@ -29,7 +29,7 @@ _ADERRORENUM_ADERROR = _descriptor.EnumDescriptor( name='AdError', - full_name='google.ads.googleads.v1.errors.AdErrorEnum.AdError', + full_name='google.ads.googleads.v4.errors.AdErrorEnum.AdError', filename=None, file=DESCRIPTOR, values=[ @@ -557,18 +557,78 @@ name='PRODUCT_TYPE_NOT_SUPPORTED_IN_THIS_CAMPAIGN', index=130, number=133, serialized_options=None, type=None), + _descriptor.EnumValueDescriptor( + name='PLACEHOLDER_CANNOT_HAVE_EMPTY_DEFAULT_VALUE', index=131, number=134, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='PLACEHOLDER_COUNTDOWN_FUNCTION_CANNOT_HAVE_DEFAULT_VALUE', index=132, number=135, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='PLACEHOLDER_DEFAULT_VALUE_MISSING', index=133, number=136, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='UNEXPECTED_PLACEHOLDER_DEFAULT_VALUE', index=134, number=137, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='AD_CUSTOMIZERS_MAY_NOT_BE_ADJACENT', index=135, number=138, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='UPDATING_AD_WITH_NO_ENABLED_ASSOCIATION', index=136, number=139, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='TOO_MANY_AD_CUSTOMIZERS', index=137, number=141, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_AD_CUSTOMIZER_FORMAT', index=138, number=142, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='NESTED_AD_CUSTOMIZER_SYNTAX', index=139, number=143, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='UNSUPPORTED_AD_CUSTOMIZER_SYNTAX', index=140, number=144, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='UNPAIRED_BRACE_IN_AD_CUSTOMIZER_TAG', index=141, number=145, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='MORE_THAN_ONE_COUNTDOWN_TAG_TYPE_EXISTS', index=142, number=146, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='DATE_TIME_IN_COUNTDOWN_TAG_IS_INVALID', index=143, number=147, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='DATE_TIME_IN_COUNTDOWN_TAG_IS_PAST', index=144, number=148, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='UNRECOGNIZED_AD_CUSTOMIZER_TAG_FOUND', index=145, number=149, + serialized_options=None, + type=None), ], containing_type=None, serialized_options=None, serialized_start=134, - serialized_end=4326, + serialized_end=4963, ) _sym_db.RegisterEnumDescriptor(_ADERRORENUM_ADERROR) _ADERRORENUM = _descriptor.Descriptor( name='AdErrorEnum', - full_name='google.ads.googleads.v1.errors.AdErrorEnum', + full_name='google.ads.googleads.v4.errors.AdErrorEnum', filename=None, file=DESCRIPTOR, containing_type=None, @@ -587,7 +647,7 @@ oneofs=[ ], serialized_start=118, - serialized_end=4326, + serialized_end=4963, ) _ADERRORENUM_ADERROR.containing_type = _ADERRORENUM @@ -596,11 +656,11 @@ AdErrorEnum = _reflection.GeneratedProtocolMessageType('AdErrorEnum', (_message.Message,), dict( DESCRIPTOR = _ADERRORENUM, - __module__ = 'google.ads.googleads_v1.proto.errors.ad_error_pb2' + __module__ = 'google.ads.googleads_v4.proto.errors.ad_error_pb2' , __doc__ = """Container for enum describing possible ad errors. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.errors.AdErrorEnum) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.errors.AdErrorEnum) )) _sym_db.RegisterMessage(AdErrorEnum) diff --git a/google/ads/google_ads/v1/proto/errors/collection_size_error_pb2_grpc.py b/google/ads/google_ads/v4/proto/errors/ad_error_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/errors/collection_size_error_pb2_grpc.py rename to google/ads/google_ads/v4/proto/errors/ad_error_pb2_grpc.py diff --git a/google/ads/google_ads/v4/proto/errors/ad_group_ad_error_pb2.py b/google/ads/google_ads/v4/proto/errors/ad_group_ad_error_pb2.py new file mode 100644 index 000000000..df05625d3 --- /dev/null +++ b/google/ads/google_ads/v4/proto/errors/ad_group_ad_error_pb2.py @@ -0,0 +1,133 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/errors/ad_group_ad_error.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/errors/ad_group_ad_error.proto', + package='google.ads.googleads.v4.errors', + syntax='proto3', + serialized_options=_b('\n\"com.google.ads.googleads.v4.errorsB\023AdGroupAdErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V4.Errors\312\002\036Google\\Ads\\GoogleAds\\V4\\Errors\352\002\"Google::Ads::GoogleAds::V4::Errors'), + serialized_pb=_b('\nCANNOT_ADD_ADGROUP_OF_TYPE_DSA_TO_CAMPAIGN_WITHOUT_DSA_SETTING\x10\x0e\x42\xec\x01\n\"com.google.ads.googleads.v1.errorsB\x11\x41\x64GroupErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V1.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V1\\Errors\xea\x02\"Google::Ads::GoogleAds::V1::Errorsb\x06proto3') + serialized_options=_b('\n\"com.google.ads.googleads.v4.errorsB\021AdGroupErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V4.Errors\312\002\036Google\\Ads\\GoogleAds\\V4\\Errors\352\002\"Google::Ads::GoogleAds::V4::Errors'), + serialized_pb=_b('\n9google/ads/googleads_v4/proto/errors/ad_group_error.proto\x12\x1egoogle.ads.googleads.v4.errors\x1a\x1cgoogle/api/annotations.proto\"\xd9\x04\n\x10\x41\x64GroupErrorEnum\"\xc4\x04\n\x0c\x41\x64GroupError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x1a\n\x16\x44UPLICATE_ADGROUP_NAME\x10\x02\x12\x18\n\x14INVALID_ADGROUP_NAME\x10\x03\x12%\n!ADVERTISER_NOT_ON_CONTENT_NETWORK\x10\x05\x12\x0f\n\x0b\x42ID_TOO_BIG\x10\x06\x12*\n&BID_TYPE_AND_BIDDING_STRATEGY_MISMATCH\x10\x07\x12\x18\n\x14MISSING_ADGROUP_NAME\x10\x08\x12 \n\x1c\x41\x44GROUP_LABEL_DOES_NOT_EXIST\x10\t\x12 \n\x1c\x41\x44GROUP_LABEL_ALREADY_EXISTS\x10\n\x12,\n(INVALID_CONTENT_BID_CRITERION_TYPE_GROUP\x10\x0b\x12\x38\n4AD_GROUP_TYPE_NOT_VALID_FOR_ADVERTISING_CHANNEL_TYPE\x10\x0c\x12\x39\n5ADGROUP_TYPE_NOT_SUPPORTED_FOR_CAMPAIGN_SALES_COUNTRY\x10\r\x12\x42\n>CANNOT_ADD_ADGROUP_OF_TYPE_DSA_TO_CAMPAIGN_WITHOUT_DSA_SETTING\x10\x0e\x12\x37\n3PROMOTED_HOTEL_AD_GROUPS_NOT_AVAILABLE_FOR_CUSTOMER\x10\x0f\x42\xec\x01\n\"com.google.ads.googleads.v4.errorsB\x11\x41\x64GroupErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V4.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V4\\Errors\xea\x02\"Google::Ads::GoogleAds::V4::Errorsb\x06proto3') , dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) @@ -29,7 +29,7 @@ _ADGROUPERRORENUM_ADGROUPERROR = _descriptor.EnumDescriptor( name='AdGroupError', - full_name='google.ads.googleads.v1.errors.AdGroupErrorEnum.AdGroupError', + full_name='google.ads.googleads.v4.errors.AdGroupErrorEnum.AdGroupError', filename=None, file=DESCRIPTOR, values=[ @@ -89,18 +89,22 @@ name='CANNOT_ADD_ADGROUP_OF_TYPE_DSA_TO_CAMPAIGN_WITHOUT_DSA_SETTING', index=13, number=14, serialized_options=None, type=None), + _descriptor.EnumValueDescriptor( + name='PROMOTED_HOTEL_AD_GROUPS_NOT_AVAILABLE_FOR_CUSTOMER', index=14, number=15, + serialized_options=None, + type=None), ], containing_type=None, serialized_options=None, serialized_start=145, - serialized_end=668, + serialized_end=725, ) _sym_db.RegisterEnumDescriptor(_ADGROUPERRORENUM_ADGROUPERROR) _ADGROUPERRORENUM = _descriptor.Descriptor( name='AdGroupErrorEnum', - full_name='google.ads.googleads.v1.errors.AdGroupErrorEnum', + full_name='google.ads.googleads.v4.errors.AdGroupErrorEnum', filename=None, file=DESCRIPTOR, containing_type=None, @@ -119,7 +123,7 @@ oneofs=[ ], serialized_start=124, - serialized_end=668, + serialized_end=725, ) _ADGROUPERRORENUM_ADGROUPERROR.containing_type = _ADGROUPERRORENUM @@ -128,11 +132,11 @@ AdGroupErrorEnum = _reflection.GeneratedProtocolMessageType('AdGroupErrorEnum', (_message.Message,), dict( DESCRIPTOR = _ADGROUPERRORENUM, - __module__ = 'google.ads.googleads_v1.proto.errors.ad_group_error_pb2' + __module__ = 'google.ads.googleads_v4.proto.errors.ad_group_error_pb2' , __doc__ = """Container for enum describing possible ad group errors. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.errors.AdGroupErrorEnum) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.errors.AdGroupErrorEnum) )) _sym_db.RegisterMessage(AdGroupErrorEnum) diff --git a/google/ads/google_ads/v1/proto/errors/conversion_upload_error_pb2_grpc.py b/google/ads/google_ads/v4/proto/errors/ad_group_error_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/errors/conversion_upload_error_pb2_grpc.py rename to google/ads/google_ads/v4/proto/errors/ad_group_error_pb2_grpc.py diff --git a/google/ads/google_ads/v1/proto/errors/ad_group_feed_error_pb2.py b/google/ads/google_ads/v4/proto/errors/ad_group_feed_error_pb2.py similarity index 78% rename from google/ads/google_ads/v1/proto/errors/ad_group_feed_error_pb2.py rename to google/ads/google_ads/v4/proto/errors/ad_group_feed_error_pb2.py index 536bb5e83..49fe72ff7 100644 --- a/google/ads/google_ads/v1/proto/errors/ad_group_feed_error_pb2.py +++ b/google/ads/google_ads/v4/proto/errors/ad_group_feed_error_pb2.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/errors/ad_group_feed_error.proto +# source: google/ads/googleads_v4/proto/errors/ad_group_feed_error.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) @@ -17,11 +17,11 @@ DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/errors/ad_group_feed_error.proto', - package='google.ads.googleads.v1.errors', + name='google/ads/googleads_v4/proto/errors/ad_group_feed_error.proto', + package='google.ads.googleads.v4.errors', syntax='proto3', - serialized_options=_b('\n\"com.google.ads.googleads.v1.errorsB\025AdGroupFeedErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V1.Errors\312\002\036Google\\Ads\\GoogleAds\\V1\\Errors\352\002\"Google::Ads::GoogleAds::V1::Errors'), - serialized_pb=_b('\n>google/ads/googleads_v1/proto/errors/ad_group_feed_error.proto\x12\x1egoogle.ads.googleads.v1.errors\x1a\x1cgoogle/api/annotations.proto\"\xdc\x02\n\x14\x41\x64GroupFeedErrorEnum\"\xc3\x02\n\x10\x41\x64GroupFeedError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12,\n(FEED_ALREADY_EXISTS_FOR_PLACEHOLDER_TYPE\x10\x02\x12\"\n\x1e\x43\x41NNOT_CREATE_FOR_REMOVED_FEED\x10\x03\x12\x1f\n\x1b\x41\x44GROUP_FEED_ALREADY_EXISTS\x10\x04\x12*\n&CANNOT_OPERATE_ON_REMOVED_ADGROUP_FEED\x10\x05\x12\x1c\n\x18INVALID_PLACEHOLDER_TYPE\x10\x06\x12,\n(MISSING_FEEDMAPPING_FOR_PLACEHOLDER_TYPE\x10\x07\x12&\n\"NO_EXISTING_LOCATION_CUSTOMER_FEED\x10\x08\x42\xf0\x01\n\"com.google.ads.googleads.v1.errorsB\x15\x41\x64GroupFeedErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V1.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V1\\Errors\xea\x02\"Google::Ads::GoogleAds::V1::Errorsb\x06proto3') + serialized_options=_b('\n\"com.google.ads.googleads.v4.errorsB\025AdGroupFeedErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V4.Errors\312\002\036Google\\Ads\\GoogleAds\\V4\\Errors\352\002\"Google::Ads::GoogleAds::V4::Errors'), + serialized_pb=_b('\n>google/ads/googleads_v4/proto/errors/ad_group_feed_error.proto\x12\x1egoogle.ads.googleads.v4.errors\x1a\x1cgoogle/api/annotations.proto\"\xdc\x02\n\x14\x41\x64GroupFeedErrorEnum\"\xc3\x02\n\x10\x41\x64GroupFeedError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12,\n(FEED_ALREADY_EXISTS_FOR_PLACEHOLDER_TYPE\x10\x02\x12\"\n\x1e\x43\x41NNOT_CREATE_FOR_REMOVED_FEED\x10\x03\x12\x1f\n\x1b\x41\x44GROUP_FEED_ALREADY_EXISTS\x10\x04\x12*\n&CANNOT_OPERATE_ON_REMOVED_ADGROUP_FEED\x10\x05\x12\x1c\n\x18INVALID_PLACEHOLDER_TYPE\x10\x06\x12,\n(MISSING_FEEDMAPPING_FOR_PLACEHOLDER_TYPE\x10\x07\x12&\n\"NO_EXISTING_LOCATION_CUSTOMER_FEED\x10\x08\x42\xf0\x01\n\"com.google.ads.googleads.v4.errorsB\x15\x41\x64GroupFeedErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V4.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V4\\Errors\xea\x02\"Google::Ads::GoogleAds::V4::Errorsb\x06proto3') , dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) @@ -29,7 +29,7 @@ _ADGROUPFEEDERRORENUM_ADGROUPFEEDERROR = _descriptor.EnumDescriptor( name='AdGroupFeedError', - full_name='google.ads.googleads.v1.errors.AdGroupFeedErrorEnum.AdGroupFeedError', + full_name='google.ads.googleads.v4.errors.AdGroupFeedErrorEnum.AdGroupFeedError', filename=None, file=DESCRIPTOR, values=[ @@ -80,7 +80,7 @@ _ADGROUPFEEDERRORENUM = _descriptor.Descriptor( name='AdGroupFeedErrorEnum', - full_name='google.ads.googleads.v1.errors.AdGroupFeedErrorEnum', + full_name='google.ads.googleads.v4.errors.AdGroupFeedErrorEnum', filename=None, file=DESCRIPTOR, containing_type=None, @@ -108,11 +108,11 @@ AdGroupFeedErrorEnum = _reflection.GeneratedProtocolMessageType('AdGroupFeedErrorEnum', (_message.Message,), dict( DESCRIPTOR = _ADGROUPFEEDERRORENUM, - __module__ = 'google.ads.googleads_v1.proto.errors.ad_group_feed_error_pb2' + __module__ = 'google.ads.googleads_v4.proto.errors.ad_group_feed_error_pb2' , __doc__ = """Container for enum describing possible ad group feed errors. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.errors.AdGroupFeedErrorEnum) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.errors.AdGroupFeedErrorEnum) )) _sym_db.RegisterMessage(AdGroupFeedErrorEnum) diff --git a/google/ads/google_ads/v1/proto/errors/country_code_error_pb2_grpc.py b/google/ads/google_ads/v4/proto/errors/ad_group_feed_error_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/errors/country_code_error_pb2_grpc.py rename to google/ads/google_ads/v4/proto/errors/ad_group_feed_error_pb2_grpc.py diff --git a/google/ads/google_ads/v4/proto/errors/ad_parameter_error_pb2.py b/google/ads/google_ads/v4/proto/errors/ad_parameter_error_pb2.py new file mode 100644 index 000000000..6b6894ac0 --- /dev/null +++ b/google/ads/google_ads/v4/proto/errors/ad_parameter_error_pb2.py @@ -0,0 +1,101 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/errors/ad_parameter_error.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/errors/ad_parameter_error.proto', + package='google.ads.googleads.v4.errors', + syntax='proto3', + serialized_options=_b('\n\"com.google.ads.googleads.v4.errorsB\025AdParameterErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V4.Errors\312\002\036Google\\Ads\\GoogleAds\\V4\\Errors\352\002\"Google::Ads::GoogleAds::V4::Errors'), + serialized_pb=_b('\n=google/ads/googleads_v4/proto/errors/ad_parameter_error.proto\x12\x1egoogle.ads.googleads.v4.errors\x1a\x1cgoogle/api/annotations.proto\"\x93\x01\n\x14\x41\x64ParameterErrorEnum\"{\n\x10\x41\x64ParameterError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12&\n\"AD_GROUP_CRITERION_MUST_BE_KEYWORD\x10\x02\x12!\n\x1dINVALID_INSERTION_TEXT_FORMAT\x10\x03\x42\xf0\x01\n\"com.google.ads.googleads.v4.errorsB\x15\x41\x64ParameterErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V4.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V4\\Errors\xea\x02\"Google::Ads::GoogleAds::V4::Errorsb\x06proto3') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_ADPARAMETERERRORENUM_ADPARAMETERERROR = _descriptor.EnumDescriptor( + name='AdParameterError', + full_name='google.ads.googleads.v4.errors.AdParameterErrorEnum.AdParameterError', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='UNSPECIFIED', index=0, number=0, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='UNKNOWN', index=1, number=1, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='AD_GROUP_CRITERION_MUST_BE_KEYWORD', index=2, number=2, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_INSERTION_TEXT_FORMAT', index=3, number=3, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=152, + serialized_end=275, +) +_sym_db.RegisterEnumDescriptor(_ADPARAMETERERRORENUM_ADPARAMETERERROR) + + +_ADPARAMETERERRORENUM = _descriptor.Descriptor( + name='AdParameterErrorEnum', + full_name='google.ads.googleads.v4.errors.AdParameterErrorEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _ADPARAMETERERRORENUM_ADPARAMETERERROR, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=128, + serialized_end=275, +) + +_ADPARAMETERERRORENUM_ADPARAMETERERROR.containing_type = _ADPARAMETERERRORENUM +DESCRIPTOR.message_types_by_name['AdParameterErrorEnum'] = _ADPARAMETERERRORENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +AdParameterErrorEnum = _reflection.GeneratedProtocolMessageType('AdParameterErrorEnum', (_message.Message,), dict( + DESCRIPTOR = _ADPARAMETERERRORENUM, + __module__ = 'google.ads.googleads_v4.proto.errors.ad_parameter_error_pb2' + , + __doc__ = """Container for enum describing possible ad parameter errors. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.errors.AdParameterErrorEnum) + )) +_sym_db.RegisterMessage(AdParameterErrorEnum) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/errors/criterion_error_pb2_grpc.py b/google/ads/google_ads/v4/proto/errors/ad_parameter_error_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/errors/criterion_error_pb2_grpc.py rename to google/ads/google_ads/v4/proto/errors/ad_parameter_error_pb2_grpc.py diff --git a/google/ads/google_ads/v4/proto/errors/ad_sharing_error_pb2.py b/google/ads/google_ads/v4/proto/errors/ad_sharing_error_pb2.py new file mode 100644 index 000000000..8b5f9959d --- /dev/null +++ b/google/ads/google_ads/v4/proto/errors/ad_sharing_error_pb2.py @@ -0,0 +1,105 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/errors/ad_sharing_error.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/errors/ad_sharing_error.proto', + package='google.ads.googleads.v4.errors', + syntax='proto3', + serialized_options=_b('\n\"com.google.ads.googleads.v4.errorsB\023AdSharingErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V4.Errors\312\002\036Google\\Ads\\GoogleAds\\V4\\Errors\352\002\"Google::Ads::GoogleAds::V4::Errors'), + serialized_pb=_b('\n;google/ads/googleads_v4/proto/errors/ad_sharing_error.proto\x12\x1egoogle.ads.googleads.v4.errors\x1a\x1cgoogle/api/annotations.proto\"\xa9\x01\n\x12\x41\x64SharingErrorEnum\"\x92\x01\n\x0e\x41\x64SharingError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12 \n\x1c\x41\x44_GROUP_ALREADY_CONTAINS_AD\x10\x02\x12\"\n\x1eINCOMPATIBLE_AD_UNDER_AD_GROUP\x10\x03\x12\x1c\n\x18\x43\x41NNOT_SHARE_INACTIVE_AD\x10\x04\x42\xee\x01\n\"com.google.ads.googleads.v4.errorsB\x13\x41\x64SharingErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V4.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V4\\Errors\xea\x02\"Google::Ads::GoogleAds::V4::Errorsb\x06proto3') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_ADSHARINGERRORENUM_ADSHARINGERROR = _descriptor.EnumDescriptor( + name='AdSharingError', + full_name='google.ads.googleads.v4.errors.AdSharingErrorEnum.AdSharingError', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='UNSPECIFIED', index=0, number=0, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='UNKNOWN', index=1, number=1, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='AD_GROUP_ALREADY_CONTAINS_AD', index=2, number=2, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INCOMPATIBLE_AD_UNDER_AD_GROUP', index=3, number=3, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CANNOT_SHARE_INACTIVE_AD', index=4, number=4, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=149, + serialized_end=295, +) +_sym_db.RegisterEnumDescriptor(_ADSHARINGERRORENUM_ADSHARINGERROR) + + +_ADSHARINGERRORENUM = _descriptor.Descriptor( + name='AdSharingErrorEnum', + full_name='google.ads.googleads.v4.errors.AdSharingErrorEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _ADSHARINGERRORENUM_ADSHARINGERROR, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=126, + serialized_end=295, +) + +_ADSHARINGERRORENUM_ADSHARINGERROR.containing_type = _ADSHARINGERRORENUM +DESCRIPTOR.message_types_by_name['AdSharingErrorEnum'] = _ADSHARINGERRORENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +AdSharingErrorEnum = _reflection.GeneratedProtocolMessageType('AdSharingErrorEnum', (_message.Message,), dict( + DESCRIPTOR = _ADSHARINGERRORENUM, + __module__ = 'google.ads.googleads_v4.proto.errors.ad_sharing_error_pb2' + , + __doc__ = """Container for enum describing possible ad sharing errors. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.errors.AdSharingErrorEnum) + )) +_sym_db.RegisterMessage(AdSharingErrorEnum) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/errors/custom_interest_error_pb2_grpc.py b/google/ads/google_ads/v4/proto/errors/ad_sharing_error_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/errors/custom_interest_error_pb2_grpc.py rename to google/ads/google_ads/v4/proto/errors/ad_sharing_error_pb2_grpc.py diff --git a/google/ads/google_ads/v4/proto/errors/adx_error_pb2.py b/google/ads/google_ads/v4/proto/errors/adx_error_pb2.py new file mode 100644 index 000000000..fdc1bf194 --- /dev/null +++ b/google/ads/google_ads/v4/proto/errors/adx_error_pb2.py @@ -0,0 +1,97 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/errors/adx_error.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/errors/adx_error.proto', + package='google.ads.googleads.v4.errors', + syntax='proto3', + serialized_options=_b('\n\"com.google.ads.googleads.v4.errorsB\rAdxErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V4.Errors\312\002\036Google\\Ads\\GoogleAds\\V4\\Errors\352\002\"Google::Ads::GoogleAds::V4::Errors'), + serialized_pb=_b('\n4google/ads/googleads_v4/proto/errors/adx_error.proto\x12\x1egoogle.ads.googleads.v4.errors\x1a\x1cgoogle/api/annotations.proto\"Q\n\x0c\x41\x64xErrorEnum\"A\n\x08\x41\x64xError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x17\n\x13UNSUPPORTED_FEATURE\x10\x02\x42\xe8\x01\n\"com.google.ads.googleads.v4.errorsB\rAdxErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V4.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V4\\Errors\xea\x02\"Google::Ads::GoogleAds::V4::Errorsb\x06proto3') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_ADXERRORENUM_ADXERROR = _descriptor.EnumDescriptor( + name='AdxError', + full_name='google.ads.googleads.v4.errors.AdxErrorEnum.AdxError', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='UNSPECIFIED', index=0, number=0, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='UNKNOWN', index=1, number=1, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='UNSUPPORTED_FEATURE', index=2, number=2, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=134, + serialized_end=199, +) +_sym_db.RegisterEnumDescriptor(_ADXERRORENUM_ADXERROR) + + +_ADXERRORENUM = _descriptor.Descriptor( + name='AdxErrorEnum', + full_name='google.ads.googleads.v4.errors.AdxErrorEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _ADXERRORENUM_ADXERROR, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=118, + serialized_end=199, +) + +_ADXERRORENUM_ADXERROR.containing_type = _ADXERRORENUM +DESCRIPTOR.message_types_by_name['AdxErrorEnum'] = _ADXERRORENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +AdxErrorEnum = _reflection.GeneratedProtocolMessageType('AdxErrorEnum', (_message.Message,), dict( + DESCRIPTOR = _ADXERRORENUM, + __module__ = 'google.ads.googleads_v4.proto.errors.adx_error_pb2' + , + __doc__ = """Container for enum describing possible adx errors. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.errors.AdxErrorEnum) + )) +_sym_db.RegisterMessage(AdxErrorEnum) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/errors/customer_client_link_error_pb2_grpc.py b/google/ads/google_ads/v4/proto/errors/adx_error_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/errors/customer_client_link_error_pb2_grpc.py rename to google/ads/google_ads/v4/proto/errors/adx_error_pb2_grpc.py diff --git a/google/ads/google_ads/v1/proto/errors/asset_error_pb2.py b/google/ads/google_ads/v4/proto/errors/asset_error_pb2.py similarity index 76% rename from google/ads/google_ads/v1/proto/errors/asset_error_pb2.py rename to google/ads/google_ads/v4/proto/errors/asset_error_pb2.py index 5a5b2ef11..30f278ab2 100644 --- a/google/ads/google_ads/v1/proto/errors/asset_error_pb2.py +++ b/google/ads/google_ads/v4/proto/errors/asset_error_pb2.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/errors/asset_error.proto +# source: google/ads/googleads_v4/proto/errors/asset_error.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) @@ -17,11 +17,11 @@ DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/errors/asset_error.proto', - package='google.ads.googleads.v1.errors', + name='google/ads/googleads_v4/proto/errors/asset_error.proto', + package='google.ads.googleads.v4.errors', syntax='proto3', - serialized_options=_b('\n\"com.google.ads.googleads.v1.errorsB\017AssetErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V1.Errors\312\002\036Google\\Ads\\GoogleAds\\V1\\Errors\352\002\"Google::Ads::GoogleAds::V1::Errors'), - serialized_pb=_b('\n6google/ads/googleads_v1/proto/errors/asset_error.proto\x12\x1egoogle.ads.googleads.v1.errors\x1a\x1cgoogle/api/annotations.proto\"\xd2\x01\n\x0e\x41ssetErrorEnum\"\xbf\x01\n\nAssetError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12+\n\'CUSTOMER_NOT_WHITELISTED_FOR_ASSET_TYPE\x10\x02\x12\x13\n\x0f\x44UPLICATE_ASSET\x10\x03\x12\x18\n\x14\x44UPLICATE_ASSET_NAME\x10\x04\x12\x19\n\x15\x41SSET_DATA_IS_MISSING\x10\x05\x12\x1c\n\x18\x43\x41NNOT_MODIFY_ASSET_NAME\x10\x06\x42\xea\x01\n\"com.google.ads.googleads.v1.errorsB\x0f\x41ssetErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V1.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V1\\Errors\xea\x02\"Google::Ads::GoogleAds::V1::Errorsb\x06proto3') + serialized_options=_b('\n\"com.google.ads.googleads.v4.errorsB\017AssetErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V4.Errors\312\002\036Google\\Ads\\GoogleAds\\V4\\Errors\352\002\"Google::Ads::GoogleAds::V4::Errors'), + serialized_pb=_b('\n6google/ads/googleads_v4/proto/errors/asset_error.proto\x12\x1egoogle.ads.googleads.v4.errors\x1a\x1cgoogle/api/annotations.proto\"\xd2\x01\n\x0e\x41ssetErrorEnum\"\xbf\x01\n\nAssetError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12+\n\'CUSTOMER_NOT_WHITELISTED_FOR_ASSET_TYPE\x10\x02\x12\x13\n\x0f\x44UPLICATE_ASSET\x10\x03\x12\x18\n\x14\x44UPLICATE_ASSET_NAME\x10\x04\x12\x19\n\x15\x41SSET_DATA_IS_MISSING\x10\x05\x12\x1c\n\x18\x43\x41NNOT_MODIFY_ASSET_NAME\x10\x06\x42\xea\x01\n\"com.google.ads.googleads.v4.errorsB\x0f\x41ssetErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V4.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V4\\Errors\xea\x02\"Google::Ads::GoogleAds::V4::Errorsb\x06proto3') , dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) @@ -29,7 +29,7 @@ _ASSETERRORENUM_ASSETERROR = _descriptor.EnumDescriptor( name='AssetError', - full_name='google.ads.googleads.v1.errors.AssetErrorEnum.AssetError', + full_name='google.ads.googleads.v4.errors.AssetErrorEnum.AssetError', filename=None, file=DESCRIPTOR, values=[ @@ -72,7 +72,7 @@ _ASSETERRORENUM = _descriptor.Descriptor( name='AssetErrorEnum', - full_name='google.ads.googleads.v1.errors.AssetErrorEnum', + full_name='google.ads.googleads.v4.errors.AssetErrorEnum', filename=None, file=DESCRIPTOR, containing_type=None, @@ -100,11 +100,11 @@ AssetErrorEnum = _reflection.GeneratedProtocolMessageType('AssetErrorEnum', (_message.Message,), dict( DESCRIPTOR = _ASSETERRORENUM, - __module__ = 'google.ads.googleads_v1.proto.errors.asset_error_pb2' + __module__ = 'google.ads.googleads_v4.proto.errors.asset_error_pb2' , __doc__ = """Container for enum describing possible asset errors. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.errors.AssetErrorEnum) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.errors.AssetErrorEnum) )) _sym_db.RegisterMessage(AssetErrorEnum) diff --git a/google/ads/google_ads/v1/proto/errors/customer_error_pb2_grpc.py b/google/ads/google_ads/v4/proto/errors/asset_error_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/errors/customer_error_pb2_grpc.py rename to google/ads/google_ads/v4/proto/errors/asset_error_pb2_grpc.py diff --git a/google/ads/google_ads/v4/proto/errors/asset_link_error_pb2.py b/google/ads/google_ads/v4/proto/errors/asset_link_error_pb2.py new file mode 100644 index 000000000..82f0d8bc8 --- /dev/null +++ b/google/ads/google_ads/v4/proto/errors/asset_link_error_pb2.py @@ -0,0 +1,97 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/errors/asset_link_error.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/errors/asset_link_error.proto', + package='google.ads.googleads.v4.errors', + syntax='proto3', + serialized_options=_b('\n\"com.google.ads.googleads.v4.errorsB\023AssetLinkErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V4.Errors\312\002\036Google\\Ads\\GoogleAds\\V4\\Errors\352\002\"Google::Ads::GoogleAds::V4::Errors'), + serialized_pb=_b('\n;google/ads/googleads_v4/proto/errors/asset_link_error.proto\x12\x1egoogle.ads.googleads.v4.errors\x1a\x1cgoogle/api/annotations.proto\"]\n\x12\x41ssetLinkErrorEnum\"G\n\x0e\x41ssetLinkError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x17\n\x13PINNING_UNSUPPORTED\x10\x02\x42\xee\x01\n\"com.google.ads.googleads.v4.errorsB\x13\x41ssetLinkErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V4.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V4\\Errors\xea\x02\"Google::Ads::GoogleAds::V4::Errorsb\x06proto3') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_ASSETLINKERRORENUM_ASSETLINKERROR = _descriptor.EnumDescriptor( + name='AssetLinkError', + full_name='google.ads.googleads.v4.errors.AssetLinkErrorEnum.AssetLinkError', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='UNSPECIFIED', index=0, number=0, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='UNKNOWN', index=1, number=1, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='PINNING_UNSUPPORTED', index=2, number=2, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=147, + serialized_end=218, +) +_sym_db.RegisterEnumDescriptor(_ASSETLINKERRORENUM_ASSETLINKERROR) + + +_ASSETLINKERRORENUM = _descriptor.Descriptor( + name='AssetLinkErrorEnum', + full_name='google.ads.googleads.v4.errors.AssetLinkErrorEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _ASSETLINKERRORENUM_ASSETLINKERROR, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=125, + serialized_end=218, +) + +_ASSETLINKERRORENUM_ASSETLINKERROR.containing_type = _ASSETLINKERRORENUM +DESCRIPTOR.message_types_by_name['AssetLinkErrorEnum'] = _ASSETLINKERRORENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +AssetLinkErrorEnum = _reflection.GeneratedProtocolMessageType('AssetLinkErrorEnum', (_message.Message,), dict( + DESCRIPTOR = _ASSETLINKERRORENUM, + __module__ = 'google.ads.googleads_v4.proto.errors.asset_link_error_pb2' + , + __doc__ = """Container for enum describing possible asset link errors. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.errors.AssetLinkErrorEnum) + )) +_sym_db.RegisterMessage(AssetLinkErrorEnum) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/errors/customer_feed_error_pb2_grpc.py b/google/ads/google_ads/v4/proto/errors/asset_link_error_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/errors/customer_feed_error_pb2_grpc.py rename to google/ads/google_ads/v4/proto/errors/asset_link_error_pb2_grpc.py diff --git a/google/ads/google_ads/v1/proto/errors/authentication_error_pb2.py b/google/ads/google_ads/v4/proto/errors/authentication_error_pb2.py similarity index 85% rename from google/ads/google_ads/v1/proto/errors/authentication_error_pb2.py rename to google/ads/google_ads/v4/proto/errors/authentication_error_pb2.py index f628ac4d9..94824a73e 100644 --- a/google/ads/google_ads/v1/proto/errors/authentication_error_pb2.py +++ b/google/ads/google_ads/v4/proto/errors/authentication_error_pb2.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/errors/authentication_error.proto +# source: google/ads/googleads_v4/proto/errors/authentication_error.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) @@ -17,11 +17,11 @@ DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/errors/authentication_error.proto', - package='google.ads.googleads.v1.errors', + name='google/ads/googleads_v4/proto/errors/authentication_error.proto', + package='google.ads.googleads.v4.errors', syntax='proto3', - serialized_options=_b('\n\"com.google.ads.googleads.v1.errorsB\030AuthenticationErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V1.Errors\312\002\036Google\\Ads\\GoogleAds\\V1\\Errors\352\002\"Google::Ads::GoogleAds::V1::Errors'), - serialized_pb=_b('\n?google/ads/googleads_v1/proto/errors/authentication_error.proto\x12\x1egoogle.ads.googleads.v1.errors\x1a\x1cgoogle/api/annotations.proto\"\xe8\x04\n\x17\x41uthenticationErrorEnum\"\xcc\x04\n\x13\x41uthenticationError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x18\n\x14\x41UTHENTICATION_ERROR\x10\x02\x12\x1e\n\x1a\x43LIENT_CUSTOMER_ID_INVALID\x10\x05\x12\x16\n\x12\x43USTOMER_NOT_FOUND\x10\x08\x12\x1a\n\x16GOOGLE_ACCOUNT_DELETED\x10\t\x12!\n\x1dGOOGLE_ACCOUNT_COOKIE_INVALID\x10\n\x12(\n$GOOGLE_ACCOUNT_AUTHENTICATION_FAILED\x10\x19\x12-\n)GOOGLE_ACCOUNT_USER_AND_ADS_USER_MISMATCH\x10\x0c\x12\x19\n\x15LOGIN_COOKIE_REQUIRED\x10\r\x12\x10\n\x0cNOT_ADS_USER\x10\x0e\x12\x17\n\x13OAUTH_TOKEN_INVALID\x10\x0f\x12\x17\n\x13OAUTH_TOKEN_EXPIRED\x10\x10\x12\x18\n\x14OAUTH_TOKEN_DISABLED\x10\x11\x12\x17\n\x13OAUTH_TOKEN_REVOKED\x10\x12\x12\x1e\n\x1aOAUTH_TOKEN_HEADER_INVALID\x10\x13\x12\x18\n\x14LOGIN_COOKIE_INVALID\x10\x14\x12\x13\n\x0fUSER_ID_INVALID\x10\x16\x12&\n\"TWO_STEP_VERIFICATION_NOT_ENROLLED\x10\x17\x12$\n ADVANCED_PROTECTION_NOT_ENROLLED\x10\x18\x42\xf3\x01\n\"com.google.ads.googleads.v1.errorsB\x18\x41uthenticationErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V1.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V1\\Errors\xea\x02\"Google::Ads::GoogleAds::V1::Errorsb\x06proto3') + serialized_options=_b('\n\"com.google.ads.googleads.v4.errorsB\030AuthenticationErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V4.Errors\312\002\036Google\\Ads\\GoogleAds\\V4\\Errors\352\002\"Google::Ads::GoogleAds::V4::Errors'), + serialized_pb=_b('\n?google/ads/googleads_v4/proto/errors/authentication_error.proto\x12\x1egoogle.ads.googleads.v4.errors\x1a\x1cgoogle/api/annotations.proto\"\xe8\x04\n\x17\x41uthenticationErrorEnum\"\xcc\x04\n\x13\x41uthenticationError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x18\n\x14\x41UTHENTICATION_ERROR\x10\x02\x12\x1e\n\x1a\x43LIENT_CUSTOMER_ID_INVALID\x10\x05\x12\x16\n\x12\x43USTOMER_NOT_FOUND\x10\x08\x12\x1a\n\x16GOOGLE_ACCOUNT_DELETED\x10\t\x12!\n\x1dGOOGLE_ACCOUNT_COOKIE_INVALID\x10\n\x12(\n$GOOGLE_ACCOUNT_AUTHENTICATION_FAILED\x10\x19\x12-\n)GOOGLE_ACCOUNT_USER_AND_ADS_USER_MISMATCH\x10\x0c\x12\x19\n\x15LOGIN_COOKIE_REQUIRED\x10\r\x12\x10\n\x0cNOT_ADS_USER\x10\x0e\x12\x17\n\x13OAUTH_TOKEN_INVALID\x10\x0f\x12\x17\n\x13OAUTH_TOKEN_EXPIRED\x10\x10\x12\x18\n\x14OAUTH_TOKEN_DISABLED\x10\x11\x12\x17\n\x13OAUTH_TOKEN_REVOKED\x10\x12\x12\x1e\n\x1aOAUTH_TOKEN_HEADER_INVALID\x10\x13\x12\x18\n\x14LOGIN_COOKIE_INVALID\x10\x14\x12\x13\n\x0fUSER_ID_INVALID\x10\x16\x12&\n\"TWO_STEP_VERIFICATION_NOT_ENROLLED\x10\x17\x12$\n ADVANCED_PROTECTION_NOT_ENROLLED\x10\x18\x42\xf3\x01\n\"com.google.ads.googleads.v4.errorsB\x18\x41uthenticationErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V4.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V4\\Errors\xea\x02\"Google::Ads::GoogleAds::V4::Errorsb\x06proto3') , dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) @@ -29,7 +29,7 @@ _AUTHENTICATIONERRORENUM_AUTHENTICATIONERROR = _descriptor.EnumDescriptor( name='AuthenticationError', - full_name='google.ads.googleads.v1.errors.AuthenticationErrorEnum.AuthenticationError', + full_name='google.ads.googleads.v4.errors.AuthenticationErrorEnum.AuthenticationError', filename=None, file=DESCRIPTOR, values=[ @@ -124,7 +124,7 @@ _AUTHENTICATIONERRORENUM = _descriptor.Descriptor( name='AuthenticationErrorEnum', - full_name='google.ads.googleads.v1.errors.AuthenticationErrorEnum', + full_name='google.ads.googleads.v4.errors.AuthenticationErrorEnum', filename=None, file=DESCRIPTOR, containing_type=None, @@ -152,11 +152,11 @@ AuthenticationErrorEnum = _reflection.GeneratedProtocolMessageType('AuthenticationErrorEnum', (_message.Message,), dict( DESCRIPTOR = _AUTHENTICATIONERRORENUM, - __module__ = 'google.ads.googleads_v1.proto.errors.authentication_error_pb2' + __module__ = 'google.ads.googleads_v4.proto.errors.authentication_error_pb2' , __doc__ = """Container for enum describing possible authentication errors. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.errors.AuthenticationErrorEnum) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.errors.AuthenticationErrorEnum) )) _sym_db.RegisterMessage(AuthenticationErrorEnum) diff --git a/google/ads/google_ads/v1/proto/errors/customer_manager_link_error_pb2_grpc.py b/google/ads/google_ads/v4/proto/errors/authentication_error_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/errors/customer_manager_link_error_pb2_grpc.py rename to google/ads/google_ads/v4/proto/errors/authentication_error_pb2_grpc.py diff --git a/google/ads/google_ads/v4/proto/errors/authorization_error_pb2.py b/google/ads/google_ads/v4/proto/errors/authorization_error_pb2.py new file mode 100644 index 000000000..a1eba8aff --- /dev/null +++ b/google/ads/google_ads/v4/proto/errors/authorization_error_pb2.py @@ -0,0 +1,141 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/errors/authorization_error.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/errors/authorization_error.proto', + package='google.ads.googleads.v4.errors', + syntax='proto3', + serialized_options=_b('\n\"com.google.ads.googleads.v4.errorsB\027AuthorizationErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V4.Errors\312\002\036Google\\Ads\\GoogleAds\\V4\\Errors\352\002\"Google::Ads::GoogleAds::V4::Errors'), + serialized_pb=_b('\n>google/ads/googleads_v4/proto/errors/authorization_error.proto\x12\x1egoogle.ads.googleads.v4.errors\x1a\x1cgoogle/api/annotations.proto\"\xb5\x03\n\x16\x41uthorizationErrorEnum\"\x9a\x03\n\x12\x41uthorizationError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x1a\n\x16USER_PERMISSION_DENIED\x10\x02\x12#\n\x1f\x44\x45VELOPER_TOKEN_NOT_WHITELISTED\x10\x03\x12\x1e\n\x1a\x44\x45VELOPER_TOKEN_PROHIBITED\x10\x04\x12\x14\n\x10PROJECT_DISABLED\x10\x05\x12\x17\n\x13\x41UTHORIZATION_ERROR\x10\x06\x12\x18\n\x14\x41\x43TION_NOT_PERMITTED\x10\x07\x12\x15\n\x11INCOMPLETE_SIGNUP\x10\x08\x12\x18\n\x14\x43USTOMER_NOT_ENABLED\x10\x18\x12\x0f\n\x0bMISSING_TOS\x10\t\x12 \n\x1c\x44\x45VELOPER_TOKEN_NOT_APPROVED\x10\n\x12=\n9INVALID_LOGIN_CUSTOMER_ID_SERVING_CUSTOMER_ID_COMBINATION\x10\x0b\x12\x19\n\x15SERVICE_ACCESS_DENIED\x10\x0c\x42\xf2\x01\n\"com.google.ads.googleads.v4.errorsB\x17\x41uthorizationErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V4.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V4\\Errors\xea\x02\"Google::Ads::GoogleAds::V4::Errorsb\x06proto3') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_AUTHORIZATIONERRORENUM_AUTHORIZATIONERROR = _descriptor.EnumDescriptor( + name='AuthorizationError', + full_name='google.ads.googleads.v4.errors.AuthorizationErrorEnum.AuthorizationError', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='UNSPECIFIED', index=0, number=0, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='UNKNOWN', index=1, number=1, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='USER_PERMISSION_DENIED', index=2, number=2, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='DEVELOPER_TOKEN_NOT_WHITELISTED', index=3, number=3, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='DEVELOPER_TOKEN_PROHIBITED', index=4, number=4, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='PROJECT_DISABLED', index=5, number=5, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='AUTHORIZATION_ERROR', index=6, number=6, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='ACTION_NOT_PERMITTED', index=7, number=7, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INCOMPLETE_SIGNUP', index=8, number=8, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CUSTOMER_NOT_ENABLED', index=9, number=24, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='MISSING_TOS', index=10, number=9, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='DEVELOPER_TOKEN_NOT_APPROVED', index=11, number=10, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_LOGIN_CUSTOMER_ID_SERVING_CUSTOMER_ID_COMBINATION', index=12, number=11, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='SERVICE_ACCESS_DENIED', index=13, number=12, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=156, + serialized_end=566, +) +_sym_db.RegisterEnumDescriptor(_AUTHORIZATIONERRORENUM_AUTHORIZATIONERROR) + + +_AUTHORIZATIONERRORENUM = _descriptor.Descriptor( + name='AuthorizationErrorEnum', + full_name='google.ads.googleads.v4.errors.AuthorizationErrorEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _AUTHORIZATIONERRORENUM_AUTHORIZATIONERROR, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=129, + serialized_end=566, +) + +_AUTHORIZATIONERRORENUM_AUTHORIZATIONERROR.containing_type = _AUTHORIZATIONERRORENUM +DESCRIPTOR.message_types_by_name['AuthorizationErrorEnum'] = _AUTHORIZATIONERRORENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +AuthorizationErrorEnum = _reflection.GeneratedProtocolMessageType('AuthorizationErrorEnum', (_message.Message,), dict( + DESCRIPTOR = _AUTHORIZATIONERRORENUM, + __module__ = 'google.ads.googleads_v4.proto.errors.authorization_error_pb2' + , + __doc__ = """Container for enum describing possible authorization errors. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.errors.AuthorizationErrorEnum) + )) +_sym_db.RegisterMessage(AuthorizationErrorEnum) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/errors/database_error_pb2_grpc.py b/google/ads/google_ads/v4/proto/errors/authorization_error_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/errors/database_error_pb2_grpc.py rename to google/ads/google_ads/v4/proto/errors/authorization_error_pb2_grpc.py diff --git a/google/ads/google_ads/v4/proto/errors/batch_job_error_pb2.py b/google/ads/google_ads/v4/proto/errors/batch_job_error_pb2.py new file mode 100644 index 000000000..29bcf97ce --- /dev/null +++ b/google/ads/google_ads/v4/proto/errors/batch_job_error_pb2.py @@ -0,0 +1,117 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/errors/batch_job_error.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/errors/batch_job_error.proto', + package='google.ads.googleads.v4.errors', + syntax='proto3', + serialized_options=_b('\n\"com.google.ads.googleads.v4.errorsB\022BatchJobErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V4.Errors\312\002\036Google\\Ads\\GoogleAds\\V4\\Errors\352\002\"Google::Ads::GoogleAds::V4::Errors'), + serialized_pb=_b('\n:google/ads/googleads_v4/proto/errors/batch_job_error.proto\x12\x1egoogle.ads.googleads.v4.errors\x1a\x1cgoogle/api/annotations.proto\"\xf4\x01\n\x11\x42\x61tchJobErrorEnum\"\xde\x01\n\rBatchJobError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12.\n*CANNOT_MODIFY_JOB_AFTER_JOB_STARTS_RUNNING\x10\x02\x12\x14\n\x10\x45MPTY_OPERATIONS\x10\x03\x12\x1a\n\x16INVALID_SEQUENCE_TOKEN\x10\x04\x12\x15\n\x11RESULTS_NOT_READY\x10\x05\x12\x15\n\x11INVALID_PAGE_SIZE\x10\x06\x12\x1f\n\x1b\x43\x41N_ONLY_REMOVE_PENDING_JOB\x10\x07\x42\xed\x01\n\"com.google.ads.googleads.v4.errorsB\x12\x42\x61tchJobErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V4.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V4\\Errors\xea\x02\"Google::Ads::GoogleAds::V4::Errorsb\x06proto3') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_BATCHJOBERRORENUM_BATCHJOBERROR = _descriptor.EnumDescriptor( + name='BatchJobError', + full_name='google.ads.googleads.v4.errors.BatchJobErrorEnum.BatchJobError', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='UNSPECIFIED', index=0, number=0, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='UNKNOWN', index=1, number=1, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CANNOT_MODIFY_JOB_AFTER_JOB_STARTS_RUNNING', index=2, number=2, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='EMPTY_OPERATIONS', index=3, number=3, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_SEQUENCE_TOKEN', index=4, number=4, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='RESULTS_NOT_READY', index=5, number=5, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_PAGE_SIZE', index=6, number=6, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CAN_ONLY_REMOVE_PENDING_JOB', index=7, number=7, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=147, + serialized_end=369, +) +_sym_db.RegisterEnumDescriptor(_BATCHJOBERRORENUM_BATCHJOBERROR) + + +_BATCHJOBERRORENUM = _descriptor.Descriptor( + name='BatchJobErrorEnum', + full_name='google.ads.googleads.v4.errors.BatchJobErrorEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _BATCHJOBERRORENUM_BATCHJOBERROR, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=125, + serialized_end=369, +) + +_BATCHJOBERRORENUM_BATCHJOBERROR.containing_type = _BATCHJOBERRORENUM +DESCRIPTOR.message_types_by_name['BatchJobErrorEnum'] = _BATCHJOBERRORENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +BatchJobErrorEnum = _reflection.GeneratedProtocolMessageType('BatchJobErrorEnum', (_message.Message,), dict( + DESCRIPTOR = _BATCHJOBERRORENUM, + __module__ = 'google.ads.googleads_v4.proto.errors.batch_job_error_pb2' + , + __doc__ = """Container for enum describing possible batch job errors. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.errors.BatchJobErrorEnum) + )) +_sym_db.RegisterMessage(BatchJobErrorEnum) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/errors/date_error_pb2_grpc.py b/google/ads/google_ads/v4/proto/errors/batch_job_error_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/errors/date_error_pb2_grpc.py rename to google/ads/google_ads/v4/proto/errors/batch_job_error_pb2_grpc.py diff --git a/google/ads/google_ads/v1/proto/errors/bidding_error_pb2.py b/google/ads/google_ads/v4/proto/errors/bidding_error_pb2.py similarity index 82% rename from google/ads/google_ads/v1/proto/errors/bidding_error_pb2.py rename to google/ads/google_ads/v4/proto/errors/bidding_error_pb2.py index 32acb25c8..a69bce2d9 100644 --- a/google/ads/google_ads/v1/proto/errors/bidding_error_pb2.py +++ b/google/ads/google_ads/v4/proto/errors/bidding_error_pb2.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/errors/bidding_error.proto +# source: google/ads/googleads_v4/proto/errors/bidding_error.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) @@ -17,11 +17,11 @@ DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/errors/bidding_error.proto', - package='google.ads.googleads.v1.errors', + name='google/ads/googleads_v4/proto/errors/bidding_error.proto', + package='google.ads.googleads.v4.errors', syntax='proto3', - serialized_options=_b('\n\"com.google.ads.googleads.v1.errorsB\021BiddingErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V1.Errors\312\002\036Google\\Ads\\GoogleAds\\V1\\Errors\352\002\"Google::Ads::GoogleAds::V1::Errors'), - serialized_pb=_b('\n8google/ads/googleads_v1/proto/errors/bidding_error.proto\x12\x1egoogle.ads.googleads.v1.errors\x1a\x1cgoogle/api/annotations.proto\"\xb3\x08\n\x10\x42iddingErrorEnum\"\x9e\x08\n\x0c\x42iddingError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12+\n\'BIDDING_STRATEGY_TRANSITION_NOT_ALLOWED\x10\x02\x12.\n*CANNOT_ATTACH_BIDDING_STRATEGY_TO_CAMPAIGN\x10\x07\x12+\n\'INVALID_ANONYMOUS_BIDDING_STRATEGY_TYPE\x10\n\x12!\n\x1dINVALID_BIDDING_STRATEGY_TYPE\x10\x0e\x12\x0f\n\x0bINVALID_BID\x10\x11\x12\x33\n/BIDDING_STRATEGY_NOT_AVAILABLE_FOR_ACCOUNT_TYPE\x10\x12\x12#\n\x1f\x43ONVERSION_TRACKING_NOT_ENABLED\x10\x13\x12\x1a\n\x16NOT_ENOUGH_CONVERSIONS\x10\x14\x12\x30\n,CANNOT_CREATE_CAMPAIGN_WITH_BIDDING_STRATEGY\x10\x15\x12O\nKCANNOT_TARGET_CONTENT_NETWORK_ONLY_WITH_CAMPAIGN_LEVEL_POP_BIDDING_STRATEGY\x10\x17\x12\x33\n/BIDDING_STRATEGY_NOT_SUPPORTED_WITH_AD_SCHEDULE\x10\x18\x12\x31\n-PAY_PER_CONVERSION_NOT_AVAILABLE_FOR_CUSTOMER\x10\x19\x12\x32\n.PAY_PER_CONVERSION_NOT_ALLOWED_WITH_TARGET_CPA\x10\x1a\x12:\n6BIDDING_STRATEGY_NOT_ALLOWED_FOR_SEARCH_ONLY_CAMPAIGNS\x10\x1b\x12;\n7BIDDING_STRATEGY_NOT_SUPPORTED_IN_DRAFTS_OR_EXPERIMENTS\x10\x1c\x12I\nEBIDDING_STRATEGY_TYPE_DOES_NOT_SUPPORT_PRODUCT_TYPE_ADGROUP_CRITERION\x10\x1d\x12\x11\n\rBID_TOO_SMALL\x10\x1e\x12\x0f\n\x0b\x42ID_TOO_BIG\x10\x1f\x12\"\n\x1e\x42ID_TOO_MANY_FRACTIONAL_DIGITS\x10 \x12\x17\n\x13INVALID_DOMAIN_NAME\x10!\x12$\n NOT_COMPATIBLE_WITH_PAYMENT_MODE\x10\"\x12#\n\x1fNOT_COMPATIBLE_WITH_BUDGET_TYPE\x10#\x12-\n)NOT_COMPATIBLE_WITH_BIDDING_STRATEGY_TYPE\x10$B\xec\x01\n\"com.google.ads.googleads.v1.errorsB\x11\x42iddingErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V1.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V1\\Errors\xea\x02\"Google::Ads::GoogleAds::V1::Errorsb\x06proto3') + serialized_options=_b('\n\"com.google.ads.googleads.v4.errorsB\021BiddingErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V4.Errors\312\002\036Google\\Ads\\GoogleAds\\V4\\Errors\352\002\"Google::Ads::GoogleAds::V4::Errors'), + serialized_pb=_b('\n8google/ads/googleads_v4/proto/errors/bidding_error.proto\x12\x1egoogle.ads.googleads.v4.errors\x1a\x1cgoogle/api/annotations.proto\"\xee\x08\n\x10\x42iddingErrorEnum\"\xd9\x08\n\x0c\x42iddingError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12+\n\'BIDDING_STRATEGY_TRANSITION_NOT_ALLOWED\x10\x02\x12.\n*CANNOT_ATTACH_BIDDING_STRATEGY_TO_CAMPAIGN\x10\x07\x12+\n\'INVALID_ANONYMOUS_BIDDING_STRATEGY_TYPE\x10\n\x12!\n\x1dINVALID_BIDDING_STRATEGY_TYPE\x10\x0e\x12\x0f\n\x0bINVALID_BID\x10\x11\x12\x33\n/BIDDING_STRATEGY_NOT_AVAILABLE_FOR_ACCOUNT_TYPE\x10\x12\x12#\n\x1f\x43ONVERSION_TRACKING_NOT_ENABLED\x10\x13\x12\x1a\n\x16NOT_ENOUGH_CONVERSIONS\x10\x14\x12\x30\n,CANNOT_CREATE_CAMPAIGN_WITH_BIDDING_STRATEGY\x10\x15\x12O\nKCANNOT_TARGET_CONTENT_NETWORK_ONLY_WITH_CAMPAIGN_LEVEL_POP_BIDDING_STRATEGY\x10\x17\x12\x33\n/BIDDING_STRATEGY_NOT_SUPPORTED_WITH_AD_SCHEDULE\x10\x18\x12\x31\n-PAY_PER_CONVERSION_NOT_AVAILABLE_FOR_CUSTOMER\x10\x19\x12\x32\n.PAY_PER_CONVERSION_NOT_ALLOWED_WITH_TARGET_CPA\x10\x1a\x12:\n6BIDDING_STRATEGY_NOT_ALLOWED_FOR_SEARCH_ONLY_CAMPAIGNS\x10\x1b\x12;\n7BIDDING_STRATEGY_NOT_SUPPORTED_IN_DRAFTS_OR_EXPERIMENTS\x10\x1c\x12I\nEBIDDING_STRATEGY_TYPE_DOES_NOT_SUPPORT_PRODUCT_TYPE_ADGROUP_CRITERION\x10\x1d\x12\x11\n\rBID_TOO_SMALL\x10\x1e\x12\x0f\n\x0b\x42ID_TOO_BIG\x10\x1f\x12\"\n\x1e\x42ID_TOO_MANY_FRACTIONAL_DIGITS\x10 \x12\x17\n\x13INVALID_DOMAIN_NAME\x10!\x12$\n NOT_COMPATIBLE_WITH_PAYMENT_MODE\x10\"\x12#\n\x1fNOT_COMPATIBLE_WITH_BUDGET_TYPE\x10#\x12-\n)NOT_COMPATIBLE_WITH_BIDDING_STRATEGY_TYPE\x10$\x12\x39\n5BIDDING_STRATEGY_TYPE_INCOMPATIBLE_WITH_SHARED_BUDGET\x10%B\xec\x01\n\"com.google.ads.googleads.v4.errorsB\x11\x42iddingErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V4.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V4\\Errors\xea\x02\"Google::Ads::GoogleAds::V4::Errorsb\x06proto3') , dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) @@ -29,7 +29,7 @@ _BIDDINGERRORENUM_BIDDINGERROR = _descriptor.EnumDescriptor( name='BiddingError', - full_name='google.ads.googleads.v1.errors.BiddingErrorEnum.BiddingError', + full_name='google.ads.googleads.v4.errors.BiddingErrorEnum.BiddingError', filename=None, file=DESCRIPTOR, values=[ @@ -133,18 +133,22 @@ name='NOT_COMPATIBLE_WITH_BIDDING_STRATEGY_TYPE', index=24, number=36, serialized_options=None, type=None), + _descriptor.EnumValueDescriptor( + name='BIDDING_STRATEGY_TYPE_INCOMPATIBLE_WITH_SHARED_BUDGET', index=25, number=37, + serialized_options=None, + type=None), ], containing_type=None, serialized_options=None, serialized_start=144, - serialized_end=1198, + serialized_end=1257, ) _sym_db.RegisterEnumDescriptor(_BIDDINGERRORENUM_BIDDINGERROR) _BIDDINGERRORENUM = _descriptor.Descriptor( name='BiddingErrorEnum', - full_name='google.ads.googleads.v1.errors.BiddingErrorEnum', + full_name='google.ads.googleads.v4.errors.BiddingErrorEnum', filename=None, file=DESCRIPTOR, containing_type=None, @@ -163,7 +167,7 @@ oneofs=[ ], serialized_start=123, - serialized_end=1198, + serialized_end=1257, ) _BIDDINGERRORENUM_BIDDINGERROR.containing_type = _BIDDINGERRORENUM @@ -172,11 +176,11 @@ BiddingErrorEnum = _reflection.GeneratedProtocolMessageType('BiddingErrorEnum', (_message.Message,), dict( DESCRIPTOR = _BIDDINGERRORENUM, - __module__ = 'google.ads.googleads_v1.proto.errors.bidding_error_pb2' + __module__ = 'google.ads.googleads_v4.proto.errors.bidding_error_pb2' , __doc__ = """Container for enum describing possible bidding errors. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.errors.BiddingErrorEnum) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.errors.BiddingErrorEnum) )) _sym_db.RegisterMessage(BiddingErrorEnum) diff --git a/google/ads/google_ads/v1/proto/errors/date_range_error_pb2_grpc.py b/google/ads/google_ads/v4/proto/errors/bidding_error_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/errors/date_range_error_pb2_grpc.py rename to google/ads/google_ads/v4/proto/errors/bidding_error_pb2_grpc.py diff --git a/google/ads/google_ads/v1/proto/errors/bidding_strategy_error_pb2.py b/google/ads/google_ads/v4/proto/errors/bidding_strategy_error_pb2.py similarity index 77% rename from google/ads/google_ads/v1/proto/errors/bidding_strategy_error_pb2.py rename to google/ads/google_ads/v4/proto/errors/bidding_strategy_error_pb2.py index 06a48cb15..fa5d587b0 100644 --- a/google/ads/google_ads/v1/proto/errors/bidding_strategy_error_pb2.py +++ b/google/ads/google_ads/v4/proto/errors/bidding_strategy_error_pb2.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/errors/bidding_strategy_error.proto +# source: google/ads/googleads_v4/proto/errors/bidding_strategy_error.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) @@ -17,11 +17,11 @@ DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/errors/bidding_strategy_error.proto', - package='google.ads.googleads.v1.errors', + name='google/ads/googleads_v4/proto/errors/bidding_strategy_error.proto', + package='google.ads.googleads.v4.errors', syntax='proto3', - serialized_options=_b('\n\"com.google.ads.googleads.v1.errorsB\031BiddingStrategyErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V1.Errors\312\002\036Google\\Ads\\GoogleAds\\V1\\Errors\352\002\"Google::Ads::GoogleAds::V1::Errors'), - serialized_pb=_b('\nAgoogle/ads/googleads_v1/proto/errors/bidding_strategy_error.proto\x12\x1egoogle.ads.googleads.v1.errors\x1a\x1cgoogle/api/annotations.proto\"\x9b\x02\n\x18\x42iddingStrategyErrorEnum\"\xfe\x01\n\x14\x42iddingStrategyError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x12\n\x0e\x44UPLICATE_NAME\x10\x02\x12\'\n#CANNOT_CHANGE_BIDDING_STRATEGY_TYPE\x10\x03\x12%\n!CANNOT_REMOVE_ASSOCIATED_STRATEGY\x10\x04\x12\"\n\x1e\x42IDDING_STRATEGY_NOT_SUPPORTED\x10\x05\x12@\ngoogle/ads/googleads_v1/proto/errors/billing_setup_error.proto\x12\x1egoogle.ads.googleads.v1.errors\x1a\x1cgoogle/api/annotations.proto\"\xfb\x04\n\x15\x42illingSetupErrorEnum\"\xe1\x04\n\x11\x42illingSetupError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\'\n#CANNOT_USE_EXISTING_AND_NEW_ACCOUNT\x10\x02\x12\'\n#CANNOT_REMOVE_STARTED_BILLING_SETUP\x10\x03\x12\x32\n.CANNOT_CHANGE_BILLING_TO_SAME_PAYMENTS_ACCOUNT\x10\x04\x12\x33\n/BILLING_SETUP_NOT_PERMITTED_FOR_CUSTOMER_STATUS\x10\x05\x12\x1c\n\x18INVALID_PAYMENTS_ACCOUNT\x10\x06\x12\x35\n1BILLING_SETUP_NOT_PERMITTED_FOR_CUSTOMER_CATEGORY\x10\x07\x12\x1b\n\x17INVALID_START_TIME_TYPE\x10\x08\x12#\n\x1fTHIRD_PARTY_ALREADY_HAS_BILLING\x10\t\x12\x1d\n\x19\x42ILLING_SETUP_IN_PROGRESS\x10\n\x12\x18\n\x14NO_SIGNUP_PERMISSION\x10\x0b\x12!\n\x1d\x43HANGE_OF_BILL_TO_IN_PROGRESS\x10\x0c\x12\x1e\n\x1aPAYMENTS_PROFILE_NOT_FOUND\x10\r\x12\x1e\n\x1aPAYMENTS_ACCOUNT_NOT_FOUND\x10\x0e\x12\x1f\n\x1bPAYMENTS_PROFILE_INELIGIBLE\x10\x0f\x12\x1f\n\x1bPAYMENTS_ACCOUNT_INELIGIBLE\x10\x10\x42\xf1\x01\n\"com.google.ads.googleads.v1.errorsB\x16\x42illingSetupErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V1.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V1\\Errors\xea\x02\"Google::Ads::GoogleAds::V1::Errorsb\x06proto3') + serialized_options=_b('\n\"com.google.ads.googleads.v4.errorsB\026BillingSetupErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V4.Errors\312\002\036Google\\Ads\\GoogleAds\\V4\\Errors\352\002\"Google::Ads::GoogleAds::V4::Errors'), + serialized_pb=_b('\n>google/ads/googleads_v4/proto/errors/billing_setup_error.proto\x12\x1egoogle.ads.googleads.v4.errors\x1a\x1cgoogle/api/annotations.proto\"\xd9\x05\n\x15\x42illingSetupErrorEnum\"\xbf\x05\n\x11\x42illingSetupError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\'\n#CANNOT_USE_EXISTING_AND_NEW_ACCOUNT\x10\x02\x12\'\n#CANNOT_REMOVE_STARTED_BILLING_SETUP\x10\x03\x12\x32\n.CANNOT_CHANGE_BILLING_TO_SAME_PAYMENTS_ACCOUNT\x10\x04\x12\x33\n/BILLING_SETUP_NOT_PERMITTED_FOR_CUSTOMER_STATUS\x10\x05\x12\x1c\n\x18INVALID_PAYMENTS_ACCOUNT\x10\x06\x12\x35\n1BILLING_SETUP_NOT_PERMITTED_FOR_CUSTOMER_CATEGORY\x10\x07\x12\x1b\n\x17INVALID_START_TIME_TYPE\x10\x08\x12#\n\x1fTHIRD_PARTY_ALREADY_HAS_BILLING\x10\t\x12\x1d\n\x19\x42ILLING_SETUP_IN_PROGRESS\x10\n\x12\x18\n\x14NO_SIGNUP_PERMISSION\x10\x0b\x12!\n\x1d\x43HANGE_OF_BILL_TO_IN_PROGRESS\x10\x0c\x12\x1e\n\x1aPAYMENTS_PROFILE_NOT_FOUND\x10\r\x12\x1e\n\x1aPAYMENTS_ACCOUNT_NOT_FOUND\x10\x0e\x12\x1f\n\x1bPAYMENTS_PROFILE_INELIGIBLE\x10\x0f\x12\x1f\n\x1bPAYMENTS_ACCOUNT_INELIGIBLE\x10\x10\x12$\n CUSTOMER_NEEDS_INTERNAL_APPROVAL\x10\x11\x12\x36\n2PAYMENTS_ACCOUNT_INELIGIBLE_CURRENCY_CODE_MISMATCH\x10\x13\x42\xf1\x01\n\"com.google.ads.googleads.v4.errorsB\x16\x42illingSetupErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V4.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V4\\Errors\xea\x02\"Google::Ads::GoogleAds::V4::Errorsb\x06proto3') , dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) @@ -29,7 +29,7 @@ _BILLINGSETUPERRORENUM_BILLINGSETUPERROR = _descriptor.EnumDescriptor( name='BillingSetupError', - full_name='google.ads.googleads.v1.errors.BillingSetupErrorEnum.BillingSetupError', + full_name='google.ads.googleads.v4.errors.BillingSetupErrorEnum.BillingSetupError', filename=None, file=DESCRIPTOR, values=[ @@ -101,18 +101,26 @@ name='PAYMENTS_ACCOUNT_INELIGIBLE', index=16, number=16, serialized_options=None, type=None), + _descriptor.EnumValueDescriptor( + name='CUSTOMER_NEEDS_INTERNAL_APPROVAL', index=17, number=17, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='PAYMENTS_ACCOUNT_INELIGIBLE_CURRENCY_CODE_MISMATCH', index=18, number=19, + serialized_options=None, + type=None), ], containing_type=None, serialized_options=None, serialized_start=155, - serialized_end=764, + serialized_end=858, ) _sym_db.RegisterEnumDescriptor(_BILLINGSETUPERRORENUM_BILLINGSETUPERROR) _BILLINGSETUPERRORENUM = _descriptor.Descriptor( name='BillingSetupErrorEnum', - full_name='google.ads.googleads.v1.errors.BillingSetupErrorEnum', + full_name='google.ads.googleads.v4.errors.BillingSetupErrorEnum', filename=None, file=DESCRIPTOR, containing_type=None, @@ -131,7 +139,7 @@ oneofs=[ ], serialized_start=129, - serialized_end=764, + serialized_end=858, ) _BILLINGSETUPERRORENUM_BILLINGSETUPERROR.containing_type = _BILLINGSETUPERRORENUM @@ -140,11 +148,11 @@ BillingSetupErrorEnum = _reflection.GeneratedProtocolMessageType('BillingSetupErrorEnum', (_message.Message,), dict( DESCRIPTOR = _BILLINGSETUPERRORENUM, - __module__ = 'google.ads.googleads_v1.proto.errors.billing_setup_error_pb2' + __module__ = 'google.ads.googleads_v4.proto.errors.billing_setup_error_pb2' , __doc__ = """Container for enum describing possible billing setup errors. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.errors.BillingSetupErrorEnum) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.errors.BillingSetupErrorEnum) )) _sym_db.RegisterMessage(BillingSetupErrorEnum) diff --git a/google/ads/google_ads/v1/proto/errors/enum_error_pb2_grpc.py b/google/ads/google_ads/v4/proto/errors/billing_setup_error_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/errors/enum_error_pb2_grpc.py rename to google/ads/google_ads/v4/proto/errors/billing_setup_error_pb2_grpc.py diff --git a/google/ads/google_ads/v1/proto/errors/campaign_budget_error_pb2.py b/google/ads/google_ads/v4/proto/errors/campaign_budget_error_pb2.py similarity index 78% rename from google/ads/google_ads/v1/proto/errors/campaign_budget_error_pb2.py rename to google/ads/google_ads/v4/proto/errors/campaign_budget_error_pb2.py index b639917a7..30ca9d043 100644 --- a/google/ads/google_ads/v1/proto/errors/campaign_budget_error_pb2.py +++ b/google/ads/google_ads/v4/proto/errors/campaign_budget_error_pb2.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/errors/campaign_budget_error.proto +# source: google/ads/googleads_v4/proto/errors/campaign_budget_error.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) @@ -17,11 +17,11 @@ DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/errors/campaign_budget_error.proto', - package='google.ads.googleads.v1.errors', + name='google/ads/googleads_v4/proto/errors/campaign_budget_error.proto', + package='google.ads.googleads.v4.errors', syntax='proto3', - serialized_options=_b('\n\"com.google.ads.googleads.v1.errorsB\030CampaignBudgetErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V1.Errors\312\002\036Google\\Ads\\GoogleAds\\V1\\Errors\352\002\"Google::Ads::GoogleAds::V1::Errors'), - serialized_pb=_b('\n@google/ads/googleads_v1/proto/errors/campaign_budget_error.proto\x12\x1egoogle.ads.googleads.v1.errors\x1a\x1cgoogle/api/annotations.proto\"\xe0\x05\n\x17\x43\x61mpaignBudgetErrorEnum\"\xc4\x05\n\x13\x43\x61mpaignBudgetError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12$\n CAMPAIGN_BUDGET_CANNOT_BE_SHARED\x10\x11\x12\x1b\n\x17\x43\x41MPAIGN_BUDGET_REMOVED\x10\x02\x12\x1a\n\x16\x43\x41MPAIGN_BUDGET_IN_USE\x10\x03\x12(\n$CAMPAIGN_BUDGET_PERIOD_NOT_AVAILABLE\x10\x04\x12<\n8CANNOT_MODIFY_FIELD_OF_IMPLICITLY_SHARED_CAMPAIGN_BUDGET\x10\x06\x12\x36\n2CANNOT_UPDATE_CAMPAIGN_BUDGET_TO_IMPLICITLY_SHARED\x10\x07\x12\x43\n?CANNOT_UPDATE_CAMPAIGN_BUDGET_TO_EXPLICITLY_SHARED_WITHOUT_NAME\x10\x08\x12\x36\n2CANNOT_UPDATE_CAMPAIGN_BUDGET_TO_EXPLICITLY_SHARED\x10\t\x12H\nDCANNOT_USE_IMPLICITLY_SHARED_CAMPAIGN_BUDGET_WITH_MULTIPLE_CAMPAIGNS\x10\n\x12\x12\n\x0e\x44UPLICATE_NAME\x10\x0b\x12\"\n\x1eMONEY_AMOUNT_IN_WRONG_CURRENCY\x10\x0c\x12/\n+MONEY_AMOUNT_LESS_THAN_CURRENCY_MINIMUM_CPC\x10\r\x12\x1a\n\x16MONEY_AMOUNT_TOO_LARGE\x10\x0e\x12\x19\n\x15NEGATIVE_MONEY_AMOUNT\x10\x0f\x12)\n%NON_MULTIPLE_OF_MINIMUM_CURRENCY_UNIT\x10\x10\x42\xf3\x01\n\"com.google.ads.googleads.v1.errorsB\x18\x43\x61mpaignBudgetErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V1.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V1\\Errors\xea\x02\"Google::Ads::GoogleAds::V1::Errorsb\x06proto3') + serialized_options=_b('\n\"com.google.ads.googleads.v4.errorsB\030CampaignBudgetErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V4.Errors\312\002\036Google\\Ads\\GoogleAds\\V4\\Errors\352\002\"Google::Ads::GoogleAds::V4::Errors'), + serialized_pb=_b('\n@google/ads/googleads_v4/proto/errors/campaign_budget_error.proto\x12\x1egoogle.ads.googleads.v4.errors\x1a\x1cgoogle/api/annotations.proto\"\x9f\x06\n\x17\x43\x61mpaignBudgetErrorEnum\"\x83\x06\n\x13\x43\x61mpaignBudgetError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12$\n CAMPAIGN_BUDGET_CANNOT_BE_SHARED\x10\x11\x12\x1b\n\x17\x43\x41MPAIGN_BUDGET_REMOVED\x10\x02\x12\x1a\n\x16\x43\x41MPAIGN_BUDGET_IN_USE\x10\x03\x12(\n$CAMPAIGN_BUDGET_PERIOD_NOT_AVAILABLE\x10\x04\x12<\n8CANNOT_MODIFY_FIELD_OF_IMPLICITLY_SHARED_CAMPAIGN_BUDGET\x10\x06\x12\x36\n2CANNOT_UPDATE_CAMPAIGN_BUDGET_TO_IMPLICITLY_SHARED\x10\x07\x12\x43\n?CANNOT_UPDATE_CAMPAIGN_BUDGET_TO_EXPLICITLY_SHARED_WITHOUT_NAME\x10\x08\x12\x36\n2CANNOT_UPDATE_CAMPAIGN_BUDGET_TO_EXPLICITLY_SHARED\x10\t\x12H\nDCANNOT_USE_IMPLICITLY_SHARED_CAMPAIGN_BUDGET_WITH_MULTIPLE_CAMPAIGNS\x10\n\x12\x12\n\x0e\x44UPLICATE_NAME\x10\x0b\x12\"\n\x1eMONEY_AMOUNT_IN_WRONG_CURRENCY\x10\x0c\x12/\n+MONEY_AMOUNT_LESS_THAN_CURRENCY_MINIMUM_CPC\x10\r\x12\x1a\n\x16MONEY_AMOUNT_TOO_LARGE\x10\x0e\x12\x19\n\x15NEGATIVE_MONEY_AMOUNT\x10\x0f\x12)\n%NON_MULTIPLE_OF_MINIMUM_CURRENCY_UNIT\x10\x10\x12=\n9TOTAL_BUDGET_AMOUNT_MUST_BE_UNSET_FOR_BUDGET_PERIOD_DAILY\x10\x12\x42\xf3\x01\n\"com.google.ads.googleads.v4.errorsB\x18\x43\x61mpaignBudgetErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V4.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V4\\Errors\xea\x02\"Google::Ads::GoogleAds::V4::Errorsb\x06proto3') , dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) @@ -29,7 +29,7 @@ _CAMPAIGNBUDGETERRORENUM_CAMPAIGNBUDGETERROR = _descriptor.EnumDescriptor( name='CampaignBudgetError', - full_name='google.ads.googleads.v1.errors.CampaignBudgetErrorEnum.CampaignBudgetError', + full_name='google.ads.googleads.v4.errors.CampaignBudgetErrorEnum.CampaignBudgetError', filename=None, file=DESCRIPTOR, values=[ @@ -101,18 +101,22 @@ name='NON_MULTIPLE_OF_MINIMUM_CURRENCY_UNIT', index=16, number=16, serialized_options=None, type=None), + _descriptor.EnumValueDescriptor( + name='TOTAL_BUDGET_AMOUNT_MUST_BE_UNSET_FOR_BUDGET_PERIOD_DAILY', index=17, number=18, + serialized_options=None, + type=None), ], containing_type=None, serialized_options=None, serialized_start=159, - serialized_end=867, + serialized_end=930, ) _sym_db.RegisterEnumDescriptor(_CAMPAIGNBUDGETERRORENUM_CAMPAIGNBUDGETERROR) _CAMPAIGNBUDGETERRORENUM = _descriptor.Descriptor( name='CampaignBudgetErrorEnum', - full_name='google.ads.googleads.v1.errors.CampaignBudgetErrorEnum', + full_name='google.ads.googleads.v4.errors.CampaignBudgetErrorEnum', filename=None, file=DESCRIPTOR, containing_type=None, @@ -131,7 +135,7 @@ oneofs=[ ], serialized_start=131, - serialized_end=867, + serialized_end=930, ) _CAMPAIGNBUDGETERRORENUM_CAMPAIGNBUDGETERROR.containing_type = _CAMPAIGNBUDGETERRORENUM @@ -140,11 +144,11 @@ CampaignBudgetErrorEnum = _reflection.GeneratedProtocolMessageType('CampaignBudgetErrorEnum', (_message.Message,), dict( DESCRIPTOR = _CAMPAIGNBUDGETERRORENUM, - __module__ = 'google.ads.googleads_v1.proto.errors.campaign_budget_error_pb2' + __module__ = 'google.ads.googleads_v4.proto.errors.campaign_budget_error_pb2' , __doc__ = """Container for enum describing possible campaign budget errors. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.errors.CampaignBudgetErrorEnum) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.errors.CampaignBudgetErrorEnum) )) _sym_db.RegisterMessage(CampaignBudgetErrorEnum) diff --git a/google/ads/google_ads/v1/proto/errors/errors_pb2_grpc.py b/google/ads/google_ads/v4/proto/errors/campaign_budget_error_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/errors/errors_pb2_grpc.py rename to google/ads/google_ads/v4/proto/errors/campaign_budget_error_pb2_grpc.py diff --git a/google/ads/google_ads/v1/proto/errors/campaign_criterion_error_pb2.py b/google/ads/google_ads/v4/proto/errors/campaign_criterion_error_pb2.py similarity index 82% rename from google/ads/google_ads/v1/proto/errors/campaign_criterion_error_pb2.py rename to google/ads/google_ads/v4/proto/errors/campaign_criterion_error_pb2.py index ceac0878a..82605585d 100644 --- a/google/ads/google_ads/v1/proto/errors/campaign_criterion_error_pb2.py +++ b/google/ads/google_ads/v4/proto/errors/campaign_criterion_error_pb2.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/errors/campaign_criterion_error.proto +# source: google/ads/googleads_v4/proto/errors/campaign_criterion_error.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) @@ -17,11 +17,11 @@ DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/errors/campaign_criterion_error.proto', - package='google.ads.googleads.v1.errors', + name='google/ads/googleads_v4/proto/errors/campaign_criterion_error.proto', + package='google.ads.googleads.v4.errors', syntax='proto3', - serialized_options=_b('\n\"com.google.ads.googleads.v1.errorsB\033CampaignCriterionErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V1.Errors\312\002\036Google\\Ads\\GoogleAds\\V1\\Errors\352\002\"Google::Ads::GoogleAds::V1::Errors'), - serialized_pb=_b('\nCgoogle/ads/googleads_v1/proto/errors/campaign_criterion_error.proto\x12\x1egoogle.ads.googleads.v1.errors\x1a\x1cgoogle/api/annotations.proto\"\xf5\x03\n\x1a\x43\x61mpaignCriterionErrorEnum\"\xd6\x03\n\x16\x43\x61mpaignCriterionError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x1a\n\x16\x43ONCRETE_TYPE_REQUIRED\x10\x02\x12\x19\n\x15INVALID_PLACEMENT_URL\x10\x03\x12 \n\x1c\x43\x41NNOT_EXCLUDE_CRITERIA_TYPE\x10\x04\x12\'\n#CANNOT_SET_STATUS_FOR_CRITERIA_TYPE\x10\x05\x12+\n\'CANNOT_SET_STATUS_FOR_EXCLUDED_CRITERIA\x10\x06\x12\x1d\n\x19\x43\x41NNOT_TARGET_AND_EXCLUDE\x10\x07\x12\x17\n\x13TOO_MANY_OPERATIONS\x10\x08\x12-\n)OPERATOR_NOT_SUPPORTED_FOR_CRITERION_TYPE\x10\t\x12\x43\n?SHOPPING_CAMPAIGN_SALES_COUNTRY_NOT_SUPPORTED_FOR_SALES_CHANNEL\x10\n\x12\x1d\n\x19\x43\x41NNOT_ADD_EXISTING_FIELD\x10\x0b\x12$\n CANNOT_UPDATE_NEGATIVE_CRITERION\x10\x0c\x42\xf6\x01\n\"com.google.ads.googleads.v1.errorsB\x1b\x43\x61mpaignCriterionErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V1.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V1\\Errors\xea\x02\"Google::Ads::GoogleAds::V1::Errorsb\x06proto3') + serialized_options=_b('\n\"com.google.ads.googleads.v4.errorsB\033CampaignCriterionErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V4.Errors\312\002\036Google\\Ads\\GoogleAds\\V4\\Errors\352\002\"Google::Ads::GoogleAds::V4::Errors'), + serialized_pb=_b('\nCgoogle/ads/googleads_v4/proto/errors/campaign_criterion_error.proto\x12\x1egoogle.ads.googleads.v4.errors\x1a\x1cgoogle/api/annotations.proto\"\xf5\x03\n\x1a\x43\x61mpaignCriterionErrorEnum\"\xd6\x03\n\x16\x43\x61mpaignCriterionError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x1a\n\x16\x43ONCRETE_TYPE_REQUIRED\x10\x02\x12\x19\n\x15INVALID_PLACEMENT_URL\x10\x03\x12 \n\x1c\x43\x41NNOT_EXCLUDE_CRITERIA_TYPE\x10\x04\x12\'\n#CANNOT_SET_STATUS_FOR_CRITERIA_TYPE\x10\x05\x12+\n\'CANNOT_SET_STATUS_FOR_EXCLUDED_CRITERIA\x10\x06\x12\x1d\n\x19\x43\x41NNOT_TARGET_AND_EXCLUDE\x10\x07\x12\x17\n\x13TOO_MANY_OPERATIONS\x10\x08\x12-\n)OPERATOR_NOT_SUPPORTED_FOR_CRITERION_TYPE\x10\t\x12\x43\n?SHOPPING_CAMPAIGN_SALES_COUNTRY_NOT_SUPPORTED_FOR_SALES_CHANNEL\x10\n\x12\x1d\n\x19\x43\x41NNOT_ADD_EXISTING_FIELD\x10\x0b\x12$\n CANNOT_UPDATE_NEGATIVE_CRITERION\x10\x0c\x42\xf6\x01\n\"com.google.ads.googleads.v4.errorsB\x1b\x43\x61mpaignCriterionErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V4.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V4\\Errors\xea\x02\"Google::Ads::GoogleAds::V4::Errorsb\x06proto3') , dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) @@ -29,7 +29,7 @@ _CAMPAIGNCRITERIONERRORENUM_CAMPAIGNCRITERIONERROR = _descriptor.EnumDescriptor( name='CampaignCriterionError', - full_name='google.ads.googleads.v1.errors.CampaignCriterionErrorEnum.CampaignCriterionError', + full_name='google.ads.googleads.v4.errors.CampaignCriterionErrorEnum.CampaignCriterionError', filename=None, file=DESCRIPTOR, values=[ @@ -96,7 +96,7 @@ _CAMPAIGNCRITERIONERRORENUM = _descriptor.Descriptor( name='CampaignCriterionErrorEnum', - full_name='google.ads.googleads.v1.errors.CampaignCriterionErrorEnum', + full_name='google.ads.googleads.v4.errors.CampaignCriterionErrorEnum', filename=None, file=DESCRIPTOR, containing_type=None, @@ -124,11 +124,11 @@ CampaignCriterionErrorEnum = _reflection.GeneratedProtocolMessageType('CampaignCriterionErrorEnum', (_message.Message,), dict( DESCRIPTOR = _CAMPAIGNCRITERIONERRORENUM, - __module__ = 'google.ads.googleads_v1.proto.errors.campaign_criterion_error_pb2' + __module__ = 'google.ads.googleads_v4.proto.errors.campaign_criterion_error_pb2' , __doc__ = """Container for enum describing possible campaign criterion errors. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.errors.CampaignCriterionErrorEnum) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.errors.CampaignCriterionErrorEnum) )) _sym_db.RegisterMessage(CampaignCriterionErrorEnum) diff --git a/google/ads/google_ads/v1/proto/errors/extension_feed_item_error_pb2_grpc.py b/google/ads/google_ads/v4/proto/errors/campaign_criterion_error_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/errors/extension_feed_item_error_pb2_grpc.py rename to google/ads/google_ads/v4/proto/errors/campaign_criterion_error_pb2_grpc.py diff --git a/google/ads/google_ads/v1/proto/errors/campaign_draft_error_pb2.py b/google/ads/google_ads/v4/proto/errors/campaign_draft_error_pb2.py similarity index 81% rename from google/ads/google_ads/v1/proto/errors/campaign_draft_error_pb2.py rename to google/ads/google_ads/v4/proto/errors/campaign_draft_error_pb2.py index 48a2bd9ea..eb4f79ce6 100644 --- a/google/ads/google_ads/v1/proto/errors/campaign_draft_error_pb2.py +++ b/google/ads/google_ads/v4/proto/errors/campaign_draft_error_pb2.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/errors/campaign_draft_error.proto +# source: google/ads/googleads_v4/proto/errors/campaign_draft_error.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) @@ -17,11 +17,11 @@ DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/errors/campaign_draft_error.proto', - package='google.ads.googleads.v1.errors', + name='google/ads/googleads_v4/proto/errors/campaign_draft_error.proto', + package='google.ads.googleads.v4.errors', syntax='proto3', - serialized_options=_b('\n\"com.google.ads.googleads.v1.errorsB\027CampaignDraftErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V1.Errors\312\002\036Google\\Ads\\GoogleAds\\V1\\Errors\352\002\"Google::Ads::GoogleAds::V1::Errors'), - serialized_pb=_b('\n?google/ads/googleads_v1/proto/errors/campaign_draft_error.proto\x12\x1egoogle.ads.googleads.v1.errors\x1a\x1cgoogle/api/annotations.proto\"\xc8\x03\n\x16\x43\x61mpaignDraftErrorEnum\"\xad\x03\n\x12\x43\x61mpaignDraftError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x18\n\x14\x44UPLICATE_DRAFT_NAME\x10\x02\x12*\n&INVALID_STATUS_TRANSITION_FROM_REMOVED\x10\x03\x12+\n\'INVALID_STATUS_TRANSITION_FROM_PROMOTED\x10\x04\x12\x31\n-INVALID_STATUS_TRANSITION_FROM_PROMOTE_FAILED\x10\x05\x12 \n\x1c\x43USTOMER_CANNOT_CREATE_DRAFT\x10\x06\x12 \n\x1c\x43\x41MPAIGN_CANNOT_CREATE_DRAFT\x10\x07\x12\x18\n\x14INVALID_DRAFT_CHANGE\x10\x08\x12\x1d\n\x19INVALID_STATUS_TRANSITION\x10\t\x12-\n)MAX_NUMBER_OF_DRAFTS_PER_CAMPAIGN_REACHED\x10\n\x12\'\n#LIST_ERRORS_FOR_PROMOTED_DRAFT_ONLY\x10\x0b\x42\xf2\x01\n\"com.google.ads.googleads.v1.errorsB\x17\x43\x61mpaignDraftErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V1.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V1\\Errors\xea\x02\"Google::Ads::GoogleAds::V1::Errorsb\x06proto3') + serialized_options=_b('\n\"com.google.ads.googleads.v4.errorsB\027CampaignDraftErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V4.Errors\312\002\036Google\\Ads\\GoogleAds\\V4\\Errors\352\002\"Google::Ads::GoogleAds::V4::Errors'), + serialized_pb=_b('\n?google/ads/googleads_v4/proto/errors/campaign_draft_error.proto\x12\x1egoogle.ads.googleads.v4.errors\x1a\x1cgoogle/api/annotations.proto\"\xc8\x03\n\x16\x43\x61mpaignDraftErrorEnum\"\xad\x03\n\x12\x43\x61mpaignDraftError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x18\n\x14\x44UPLICATE_DRAFT_NAME\x10\x02\x12*\n&INVALID_STATUS_TRANSITION_FROM_REMOVED\x10\x03\x12+\n\'INVALID_STATUS_TRANSITION_FROM_PROMOTED\x10\x04\x12\x31\n-INVALID_STATUS_TRANSITION_FROM_PROMOTE_FAILED\x10\x05\x12 \n\x1c\x43USTOMER_CANNOT_CREATE_DRAFT\x10\x06\x12 \n\x1c\x43\x41MPAIGN_CANNOT_CREATE_DRAFT\x10\x07\x12\x18\n\x14INVALID_DRAFT_CHANGE\x10\x08\x12\x1d\n\x19INVALID_STATUS_TRANSITION\x10\t\x12-\n)MAX_NUMBER_OF_DRAFTS_PER_CAMPAIGN_REACHED\x10\n\x12\'\n#LIST_ERRORS_FOR_PROMOTED_DRAFT_ONLY\x10\x0b\x42\xf2\x01\n\"com.google.ads.googleads.v4.errorsB\x17\x43\x61mpaignDraftErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V4.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V4\\Errors\xea\x02\"Google::Ads::GoogleAds::V4::Errorsb\x06proto3') , dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) @@ -29,7 +29,7 @@ _CAMPAIGNDRAFTERRORENUM_CAMPAIGNDRAFTERROR = _descriptor.EnumDescriptor( name='CampaignDraftError', - full_name='google.ads.googleads.v1.errors.CampaignDraftErrorEnum.CampaignDraftError', + full_name='google.ads.googleads.v4.errors.CampaignDraftErrorEnum.CampaignDraftError', filename=None, file=DESCRIPTOR, values=[ @@ -92,7 +92,7 @@ _CAMPAIGNDRAFTERRORENUM = _descriptor.Descriptor( name='CampaignDraftErrorEnum', - full_name='google.ads.googleads.v1.errors.CampaignDraftErrorEnum', + full_name='google.ads.googleads.v4.errors.CampaignDraftErrorEnum', filename=None, file=DESCRIPTOR, containing_type=None, @@ -120,11 +120,11 @@ CampaignDraftErrorEnum = _reflection.GeneratedProtocolMessageType('CampaignDraftErrorEnum', (_message.Message,), dict( DESCRIPTOR = _CAMPAIGNDRAFTERRORENUM, - __module__ = 'google.ads.googleads_v1.proto.errors.campaign_draft_error_pb2' + __module__ = 'google.ads.googleads_v4.proto.errors.campaign_draft_error_pb2' , __doc__ = """Container for enum describing possible campaign draft errors. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.errors.CampaignDraftErrorEnum) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.errors.CampaignDraftErrorEnum) )) _sym_db.RegisterMessage(CampaignDraftErrorEnum) diff --git a/google/ads/google_ads/v1/proto/errors/extension_setting_error_pb2_grpc.py b/google/ads/google_ads/v4/proto/errors/campaign_draft_error_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/errors/extension_setting_error_pb2_grpc.py rename to google/ads/google_ads/v4/proto/errors/campaign_draft_error_pb2_grpc.py diff --git a/google/ads/google_ads/v1/proto/errors/campaign_error_pb2.py b/google/ads/google_ads/v4/proto/errors/campaign_error_pb2.py similarity index 75% rename from google/ads/google_ads/v1/proto/errors/campaign_error_pb2.py rename to google/ads/google_ads/v4/proto/errors/campaign_error_pb2.py index 0bd622ad8..4170ecc4f 100644 --- a/google/ads/google_ads/v1/proto/errors/campaign_error_pb2.py +++ b/google/ads/google_ads/v4/proto/errors/campaign_error_pb2.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/errors/campaign_error.proto +# source: google/ads/googleads_v4/proto/errors/campaign_error.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) @@ -17,11 +17,11 @@ DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/errors/campaign_error.proto', - package='google.ads.googleads.v1.errors', + name='google/ads/googleads_v4/proto/errors/campaign_error.proto', + package='google.ads.googleads.v4.errors', syntax='proto3', - serialized_options=_b('\n\"com.google.ads.googleads.v1.errorsB\022CampaignErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V1.Errors\312\002\036Google\\Ads\\GoogleAds\\V1\\Errors\352\002\"Google::Ads::GoogleAds::V1::Errors'), - serialized_pb=_b('\n9google/ads/googleads_v1/proto/errors/campaign_error.proto\x12\x1egoogle.ads.googleads.v1.errors\x1a\x1cgoogle/api/annotations.proto\"\x99\r\n\x11\x43\x61mpaignErrorEnum\"\x83\r\n\rCampaignError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12!\n\x1d\x43\x41NNOT_TARGET_CONTENT_NETWORK\x10\x03\x12 \n\x1c\x43\x41NNOT_TARGET_SEARCH_NETWORK\x10\x04\x12\x36\n2CANNOT_TARGET_SEARCH_NETWORK_WITHOUT_GOOGLE_SEARCH\x10\x05\x12\x30\n,CANNOT_TARGET_GOOGLE_SEARCH_FOR_CPM_CAMPAIGN\x10\x06\x12-\n)CAMPAIGN_MUST_TARGET_AT_LEAST_ONE_NETWORK\x10\x07\x12(\n$CANNOT_TARGET_PARTNER_SEARCH_NETWORK\x10\x08\x12K\nGCANNOT_TARGET_CONTENT_NETWORK_ONLY_WITH_CRITERIA_LEVEL_BIDDING_STRATEGY\x10\t\x12\x36\n2CAMPAIGN_DURATION_MUST_CONTAIN_ALL_RUNNABLE_TRIALS\x10\n\x12$\n CANNOT_MODIFY_FOR_TRIAL_CAMPAIGN\x10\x0b\x12\x1b\n\x17\x44UPLICATE_CAMPAIGN_NAME\x10\x0c\x12\x1f\n\x1bINCOMPATIBLE_CAMPAIGN_FIELD\x10\r\x12\x19\n\x15INVALID_CAMPAIGN_NAME\x10\x0e\x12*\n&INVALID_AD_SERVING_OPTIMIZATION_STATUS\x10\x0f\x12\x18\n\x14INVALID_TRACKING_URL\x10\x10\x12>\n:CANNOT_SET_BOTH_TRACKING_URL_TEMPLATE_AND_TRACKING_SETTING\x10\x11\x12 \n\x1cMAX_IMPRESSIONS_NOT_IN_RANGE\x10\x12\x12\x1b\n\x17TIME_UNIT_NOT_SUPPORTED\x10\x13\x12\x31\n-INVALID_OPERATION_IF_SERVING_STATUS_HAS_ENDED\x10\x14\x12\x1b\n\x17\x42UDGET_CANNOT_BE_SHARED\x10\x15\x12%\n!CAMPAIGN_CANNOT_USE_SHARED_BUDGET\x10\x16\x12\x30\n,CANNOT_CHANGE_BUDGET_ON_CAMPAIGN_WITH_TRIALS\x10\x17\x12!\n\x1d\x43\x41MPAIGN_LABEL_DOES_NOT_EXIST\x10\x18\x12!\n\x1d\x43\x41MPAIGN_LABEL_ALREADY_EXISTS\x10\x19\x12\x1c\n\x18MISSING_SHOPPING_SETTING\x10\x1a\x12\"\n\x1eINVALID_SHOPPING_SALES_COUNTRY\x10\x1b\x12*\n&MISSING_UNIVERSAL_APP_CAMPAIGN_SETTING\x10\x1e\x12;\n7ADVERTISING_CHANNEL_TYPE_NOT_AVAILABLE_FOR_ACCOUNT_TYPE\x10\x1f\x12(\n$INVALID_ADVERTISING_CHANNEL_SUB_TYPE\x10 \x12,\n(AT_LEAST_ONE_CONVERSION_MUST_BE_SELECTED\x10!\x12\x1f\n\x1b\x43\x41NNOT_SET_AD_ROTATION_MODE\x10\"\x12/\n+CANNOT_MODIFY_START_DATE_IF_ALREADY_STARTED\x10#\x12\x1b\n\x17\x43\x41NNOT_SET_DATE_TO_PAST\x10$\x12\x1f\n\x1bMISSING_HOTEL_CUSTOMER_LINK\x10%\x12\x1f\n\x1bINVALID_HOTEL_CUSTOMER_LINK\x10&\x12\x19\n\x15MISSING_HOTEL_SETTING\x10\'\x12\x42\n>CANNOT_USE_SHARED_CAMPAIGN_BUDGET_WHILE_PART_OF_CAMPAIGN_GROUP\x10(\x12\x11\n\rAPP_NOT_FOUND\x10)\x12\x39\n5SHOPPING_ENABLE_LOCAL_NOT_SUPPORTED_FOR_CAMPAIGN_TYPE\x10*\x12\x33\n/MERCHANT_NOT_ALLOWED_FOR_COMPARISON_LISTING_ADS\x10+B\xed\x01\n\"com.google.ads.googleads.v1.errorsB\x12\x43\x61mpaignErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V1.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V1\\Errors\xea\x02\"Google::Ads::GoogleAds::V1::Errorsb\x06proto3') + serialized_options=_b('\n\"com.google.ads.googleads.v4.errorsB\022CampaignErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V4.Errors\312\002\036Google\\Ads\\GoogleAds\\V4\\Errors\352\002\"Google::Ads::GoogleAds::V4::Errors'), + serialized_pb=_b('\n9google/ads/googleads_v4/proto/errors/campaign_error.proto\x12\x1egoogle.ads.googleads.v4.errors\x1a\x1cgoogle/api/annotations.proto\"\xae\r\n\x11\x43\x61mpaignErrorEnum\"\x98\r\n\rCampaignError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12!\n\x1d\x43\x41NNOT_TARGET_CONTENT_NETWORK\x10\x03\x12 \n\x1c\x43\x41NNOT_TARGET_SEARCH_NETWORK\x10\x04\x12\x36\n2CANNOT_TARGET_SEARCH_NETWORK_WITHOUT_GOOGLE_SEARCH\x10\x05\x12\x30\n,CANNOT_TARGET_GOOGLE_SEARCH_FOR_CPM_CAMPAIGN\x10\x06\x12-\n)CAMPAIGN_MUST_TARGET_AT_LEAST_ONE_NETWORK\x10\x07\x12(\n$CANNOT_TARGET_PARTNER_SEARCH_NETWORK\x10\x08\x12K\nGCANNOT_TARGET_CONTENT_NETWORK_ONLY_WITH_CRITERIA_LEVEL_BIDDING_STRATEGY\x10\t\x12\x36\n2CAMPAIGN_DURATION_MUST_CONTAIN_ALL_RUNNABLE_TRIALS\x10\n\x12$\n CANNOT_MODIFY_FOR_TRIAL_CAMPAIGN\x10\x0b\x12\x1b\n\x17\x44UPLICATE_CAMPAIGN_NAME\x10\x0c\x12\x1f\n\x1bINCOMPATIBLE_CAMPAIGN_FIELD\x10\r\x12\x19\n\x15INVALID_CAMPAIGN_NAME\x10\x0e\x12*\n&INVALID_AD_SERVING_OPTIMIZATION_STATUS\x10\x0f\x12\x18\n\x14INVALID_TRACKING_URL\x10\x10\x12>\n:CANNOT_SET_BOTH_TRACKING_URL_TEMPLATE_AND_TRACKING_SETTING\x10\x11\x12 \n\x1cMAX_IMPRESSIONS_NOT_IN_RANGE\x10\x12\x12\x1b\n\x17TIME_UNIT_NOT_SUPPORTED\x10\x13\x12\x31\n-INVALID_OPERATION_IF_SERVING_STATUS_HAS_ENDED\x10\x14\x12\x1b\n\x17\x42UDGET_CANNOT_BE_SHARED\x10\x15\x12%\n!CAMPAIGN_CANNOT_USE_SHARED_BUDGET\x10\x16\x12\x30\n,CANNOT_CHANGE_BUDGET_ON_CAMPAIGN_WITH_TRIALS\x10\x17\x12!\n\x1d\x43\x41MPAIGN_LABEL_DOES_NOT_EXIST\x10\x18\x12!\n\x1d\x43\x41MPAIGN_LABEL_ALREADY_EXISTS\x10\x19\x12\x1c\n\x18MISSING_SHOPPING_SETTING\x10\x1a\x12\"\n\x1eINVALID_SHOPPING_SALES_COUNTRY\x10\x1b\x12;\n7ADVERTISING_CHANNEL_TYPE_NOT_AVAILABLE_FOR_ACCOUNT_TYPE\x10\x1f\x12(\n$INVALID_ADVERTISING_CHANNEL_SUB_TYPE\x10 \x12,\n(AT_LEAST_ONE_CONVERSION_MUST_BE_SELECTED\x10!\x12\x1f\n\x1b\x43\x41NNOT_SET_AD_ROTATION_MODE\x10\"\x12/\n+CANNOT_MODIFY_START_DATE_IF_ALREADY_STARTED\x10#\x12\x1b\n\x17\x43\x41NNOT_SET_DATE_TO_PAST\x10$\x12\x1f\n\x1bMISSING_HOTEL_CUSTOMER_LINK\x10%\x12\x1f\n\x1bINVALID_HOTEL_CUSTOMER_LINK\x10&\x12\x19\n\x15MISSING_HOTEL_SETTING\x10\'\x12\x42\n>CANNOT_USE_SHARED_CAMPAIGN_BUDGET_WHILE_PART_OF_CAMPAIGN_GROUP\x10(\x12\x11\n\rAPP_NOT_FOUND\x10)\x12\x39\n5SHOPPING_ENABLE_LOCAL_NOT_SUPPORTED_FOR_CAMPAIGN_TYPE\x10*\x12\x33\n/MERCHANT_NOT_ALLOWED_FOR_COMPARISON_LISTING_ADS\x10+\x12#\n\x1fINSUFFICIENT_APP_INSTALLS_COUNT\x10,\x12\x1a\n\x16SENSITIVE_CATEGORY_APP\x10-B\xed\x01\n\"com.google.ads.googleads.v4.errorsB\x12\x43\x61mpaignErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V4.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V4\\Errors\xea\x02\"Google::Ads::GoogleAds::V4::Errorsb\x06proto3') , dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) @@ -29,7 +29,7 @@ _CAMPAIGNERRORENUM_CAMPAIGNERROR = _descriptor.EnumDescriptor( name='CampaignError', - full_name='google.ads.googleads.v1.errors.CampaignErrorEnum.CampaignError', + full_name='google.ads.googleads.v4.errors.CampaignErrorEnum.CampaignError', filename=None, file=DESCRIPTOR, values=[ @@ -142,73 +142,77 @@ serialized_options=None, type=None), _descriptor.EnumValueDescriptor( - name='MISSING_UNIVERSAL_APP_CAMPAIGN_SETTING', index=27, number=30, + name='ADVERTISING_CHANNEL_TYPE_NOT_AVAILABLE_FOR_ACCOUNT_TYPE', index=27, number=31, serialized_options=None, type=None), _descriptor.EnumValueDescriptor( - name='ADVERTISING_CHANNEL_TYPE_NOT_AVAILABLE_FOR_ACCOUNT_TYPE', index=28, number=31, + name='INVALID_ADVERTISING_CHANNEL_SUB_TYPE', index=28, number=32, serialized_options=None, type=None), _descriptor.EnumValueDescriptor( - name='INVALID_ADVERTISING_CHANNEL_SUB_TYPE', index=29, number=32, + name='AT_LEAST_ONE_CONVERSION_MUST_BE_SELECTED', index=29, number=33, serialized_options=None, type=None), _descriptor.EnumValueDescriptor( - name='AT_LEAST_ONE_CONVERSION_MUST_BE_SELECTED', index=30, number=33, + name='CANNOT_SET_AD_ROTATION_MODE', index=30, number=34, serialized_options=None, type=None), _descriptor.EnumValueDescriptor( - name='CANNOT_SET_AD_ROTATION_MODE', index=31, number=34, + name='CANNOT_MODIFY_START_DATE_IF_ALREADY_STARTED', index=31, number=35, serialized_options=None, type=None), _descriptor.EnumValueDescriptor( - name='CANNOT_MODIFY_START_DATE_IF_ALREADY_STARTED', index=32, number=35, + name='CANNOT_SET_DATE_TO_PAST', index=32, number=36, serialized_options=None, type=None), _descriptor.EnumValueDescriptor( - name='CANNOT_SET_DATE_TO_PAST', index=33, number=36, + name='MISSING_HOTEL_CUSTOMER_LINK', index=33, number=37, serialized_options=None, type=None), _descriptor.EnumValueDescriptor( - name='MISSING_HOTEL_CUSTOMER_LINK', index=34, number=37, + name='INVALID_HOTEL_CUSTOMER_LINK', index=34, number=38, serialized_options=None, type=None), _descriptor.EnumValueDescriptor( - name='INVALID_HOTEL_CUSTOMER_LINK', index=35, number=38, + name='MISSING_HOTEL_SETTING', index=35, number=39, serialized_options=None, type=None), _descriptor.EnumValueDescriptor( - name='MISSING_HOTEL_SETTING', index=36, number=39, + name='CANNOT_USE_SHARED_CAMPAIGN_BUDGET_WHILE_PART_OF_CAMPAIGN_GROUP', index=36, number=40, serialized_options=None, type=None), _descriptor.EnumValueDescriptor( - name='CANNOT_USE_SHARED_CAMPAIGN_BUDGET_WHILE_PART_OF_CAMPAIGN_GROUP', index=37, number=40, + name='APP_NOT_FOUND', index=37, number=41, serialized_options=None, type=None), _descriptor.EnumValueDescriptor( - name='APP_NOT_FOUND', index=38, number=41, + name='SHOPPING_ENABLE_LOCAL_NOT_SUPPORTED_FOR_CAMPAIGN_TYPE', index=38, number=42, serialized_options=None, type=None), _descriptor.EnumValueDescriptor( - name='SHOPPING_ENABLE_LOCAL_NOT_SUPPORTED_FOR_CAMPAIGN_TYPE', index=39, number=42, + name='MERCHANT_NOT_ALLOWED_FOR_COMPARISON_LISTING_ADS', index=39, number=43, serialized_options=None, type=None), _descriptor.EnumValueDescriptor( - name='MERCHANT_NOT_ALLOWED_FOR_COMPARISON_LISTING_ADS', index=40, number=43, + name='INSUFFICIENT_APP_INSTALLS_COUNT', index=40, number=44, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='SENSITIVE_CATEGORY_APP', index=41, number=45, serialized_options=None, type=None), ], containing_type=None, serialized_options=None, serialized_start=146, - serialized_end=1813, + serialized_end=1834, ) _sym_db.RegisterEnumDescriptor(_CAMPAIGNERRORENUM_CAMPAIGNERROR) _CAMPAIGNERRORENUM = _descriptor.Descriptor( name='CampaignErrorEnum', - full_name='google.ads.googleads.v1.errors.CampaignErrorEnum', + full_name='google.ads.googleads.v4.errors.CampaignErrorEnum', filename=None, file=DESCRIPTOR, containing_type=None, @@ -227,7 +231,7 @@ oneofs=[ ], serialized_start=124, - serialized_end=1813, + serialized_end=1834, ) _CAMPAIGNERRORENUM_CAMPAIGNERROR.containing_type = _CAMPAIGNERRORENUM @@ -236,11 +240,11 @@ CampaignErrorEnum = _reflection.GeneratedProtocolMessageType('CampaignErrorEnum', (_message.Message,), dict( DESCRIPTOR = _CAMPAIGNERRORENUM, - __module__ = 'google.ads.googleads_v1.proto.errors.campaign_error_pb2' + __module__ = 'google.ads.googleads_v4.proto.errors.campaign_error_pb2' , __doc__ = """Container for enum describing possible campaign errors. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.errors.CampaignErrorEnum) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.errors.CampaignErrorEnum) )) _sym_db.RegisterMessage(CampaignErrorEnum) diff --git a/google/ads/google_ads/v1/proto/errors/feed_attribute_reference_error_pb2_grpc.py b/google/ads/google_ads/v4/proto/errors/campaign_error_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/errors/feed_attribute_reference_error_pb2_grpc.py rename to google/ads/google_ads/v4/proto/errors/campaign_error_pb2_grpc.py diff --git a/google/ads/google_ads/v1/proto/errors/campaign_experiment_error_pb2.py b/google/ads/google_ads/v4/proto/errors/campaign_experiment_error_pb2.py similarity index 81% rename from google/ads/google_ads/v1/proto/errors/campaign_experiment_error_pb2.py rename to google/ads/google_ads/v4/proto/errors/campaign_experiment_error_pb2.py index 89826718d..7bfa6e0b6 100644 --- a/google/ads/google_ads/v1/proto/errors/campaign_experiment_error_pb2.py +++ b/google/ads/google_ads/v4/proto/errors/campaign_experiment_error_pb2.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/errors/campaign_experiment_error.proto +# source: google/ads/googleads_v4/proto/errors/campaign_experiment_error.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) @@ -17,11 +17,11 @@ DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/errors/campaign_experiment_error.proto', - package='google.ads.googleads.v1.errors', + name='google/ads/googleads_v4/proto/errors/campaign_experiment_error.proto', + package='google.ads.googleads.v4.errors', syntax='proto3', - serialized_options=_b('\n\"com.google.ads.googleads.v1.errorsB\034CampaignExperimentErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V1.Errors\312\002\036Google\\Ads\\GoogleAds\\V1\\Errors\352\002\"Google::Ads::GoogleAds::V1::Errors'), - serialized_pb=_b('\nDgoogle/ads/googleads_v1/proto/errors/campaign_experiment_error.proto\x12\x1egoogle.ads.googleads.v1.errors\x1a\x1cgoogle/api/annotations.proto\"\x80\x04\n\x1b\x43\x61mpaignExperimentErrorEnum\"\xe0\x03\n\x17\x43\x61mpaignExperimentError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x12\n\x0e\x44UPLICATE_NAME\x10\x02\x12\x16\n\x12INVALID_TRANSITION\x10\x03\x12/\n+CANNOT_CREATE_EXPERIMENT_WITH_SHARED_BUDGET\x10\x04\x12\x36\n2CANNOT_CREATE_EXPERIMENT_FOR_REMOVED_BASE_CAMPAIGN\x10\x05\x12\x33\n/CANNOT_CREATE_EXPERIMENT_FOR_NON_PROPOSED_DRAFT\x10\x06\x12%\n!CUSTOMER_CANNOT_CREATE_EXPERIMENT\x10\x07\x12%\n!CAMPAIGN_CANNOT_CREATE_EXPERIMENT\x10\x08\x12)\n%EXPERIMENT_DURATIONS_MUST_NOT_OVERLAP\x10\t\x12\x38\n4EXPERIMENT_DURATION_MUST_BE_WITHIN_CAMPAIGN_DURATION\x10\n\x12*\n&CANNOT_MUTATE_EXPERIMENT_DUE_TO_STATUS\x10\x0b\x42\xf7\x01\n\"com.google.ads.googleads.v1.errorsB\x1c\x43\x61mpaignExperimentErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V1.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V1\\Errors\xea\x02\"Google::Ads::GoogleAds::V1::Errorsb\x06proto3') + serialized_options=_b('\n\"com.google.ads.googleads.v4.errorsB\034CampaignExperimentErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V4.Errors\312\002\036Google\\Ads\\GoogleAds\\V4\\Errors\352\002\"Google::Ads::GoogleAds::V4::Errors'), + serialized_pb=_b('\nDgoogle/ads/googleads_v4/proto/errors/campaign_experiment_error.proto\x12\x1egoogle.ads.googleads.v4.errors\x1a\x1cgoogle/api/annotations.proto\"\x80\x04\n\x1b\x43\x61mpaignExperimentErrorEnum\"\xe0\x03\n\x17\x43\x61mpaignExperimentError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x12\n\x0e\x44UPLICATE_NAME\x10\x02\x12\x16\n\x12INVALID_TRANSITION\x10\x03\x12/\n+CANNOT_CREATE_EXPERIMENT_WITH_SHARED_BUDGET\x10\x04\x12\x36\n2CANNOT_CREATE_EXPERIMENT_FOR_REMOVED_BASE_CAMPAIGN\x10\x05\x12\x33\n/CANNOT_CREATE_EXPERIMENT_FOR_NON_PROPOSED_DRAFT\x10\x06\x12%\n!CUSTOMER_CANNOT_CREATE_EXPERIMENT\x10\x07\x12%\n!CAMPAIGN_CANNOT_CREATE_EXPERIMENT\x10\x08\x12)\n%EXPERIMENT_DURATIONS_MUST_NOT_OVERLAP\x10\t\x12\x38\n4EXPERIMENT_DURATION_MUST_BE_WITHIN_CAMPAIGN_DURATION\x10\n\x12*\n&CANNOT_MUTATE_EXPERIMENT_DUE_TO_STATUS\x10\x0b\x42\xf7\x01\n\"com.google.ads.googleads.v4.errorsB\x1c\x43\x61mpaignExperimentErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V4.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V4\\Errors\xea\x02\"Google::Ads::GoogleAds::V4::Errorsb\x06proto3') , dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) @@ -29,7 +29,7 @@ _CAMPAIGNEXPERIMENTERRORENUM_CAMPAIGNEXPERIMENTERROR = _descriptor.EnumDescriptor( name='CampaignExperimentError', - full_name='google.ads.googleads.v1.errors.CampaignExperimentErrorEnum.CampaignExperimentError', + full_name='google.ads.googleads.v4.errors.CampaignExperimentErrorEnum.CampaignExperimentError', filename=None, file=DESCRIPTOR, values=[ @@ -92,7 +92,7 @@ _CAMPAIGNEXPERIMENTERRORENUM = _descriptor.Descriptor( name='CampaignExperimentErrorEnum', - full_name='google.ads.googleads.v1.errors.CampaignExperimentErrorEnum', + full_name='google.ads.googleads.v4.errors.CampaignExperimentErrorEnum', filename=None, file=DESCRIPTOR, containing_type=None, @@ -120,11 +120,11 @@ CampaignExperimentErrorEnum = _reflection.GeneratedProtocolMessageType('CampaignExperimentErrorEnum', (_message.Message,), dict( DESCRIPTOR = _CAMPAIGNEXPERIMENTERRORENUM, - __module__ = 'google.ads.googleads_v1.proto.errors.campaign_experiment_error_pb2' + __module__ = 'google.ads.googleads_v4.proto.errors.campaign_experiment_error_pb2' , __doc__ = """Container for enum describing possible campaign experiment errors. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.errors.CampaignExperimentErrorEnum) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.errors.CampaignExperimentErrorEnum) )) _sym_db.RegisterMessage(CampaignExperimentErrorEnum) diff --git a/google/ads/google_ads/v1/proto/errors/feed_error_pb2_grpc.py b/google/ads/google_ads/v4/proto/errors/campaign_experiment_error_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/errors/feed_error_pb2_grpc.py rename to google/ads/google_ads/v4/proto/errors/campaign_experiment_error_pb2_grpc.py diff --git a/google/ads/google_ads/v4/proto/errors/campaign_feed_error_pb2.py b/google/ads/google_ads/v4/proto/errors/campaign_feed_error_pb2.py new file mode 100644 index 000000000..a2ec3f2a2 --- /dev/null +++ b/google/ads/google_ads/v4/proto/errors/campaign_feed_error_pb2.py @@ -0,0 +1,121 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/errors/campaign_feed_error.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/errors/campaign_feed_error.proto', + package='google.ads.googleads.v4.errors', + syntax='proto3', + serialized_options=_b('\n\"com.google.ads.googleads.v4.errorsB\026CampaignFeedErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V4.Errors\312\002\036Google\\Ads\\GoogleAds\\V4\\Errors\352\002\"Google::Ads::GoogleAds::V4::Errors'), + serialized_pb=_b('\n>google/ads/googleads_v4/proto/errors/campaign_feed_error.proto\x12\x1egoogle.ads.googleads.v4.errors\x1a\x1cgoogle/api/annotations.proto\"\xec\x02\n\x15\x43\x61mpaignFeedErrorEnum\"\xd2\x02\n\x11\x43\x61mpaignFeedError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12,\n(FEED_ALREADY_EXISTS_FOR_PLACEHOLDER_TYPE\x10\x02\x12\"\n\x1e\x43\x41NNOT_CREATE_FOR_REMOVED_FEED\x10\x04\x12\x30\n,CANNOT_CREATE_ALREADY_EXISTING_CAMPAIGN_FEED\x10\x05\x12\'\n#CANNOT_MODIFY_REMOVED_CAMPAIGN_FEED\x10\x06\x12\x1c\n\x18INVALID_PLACEHOLDER_TYPE\x10\x07\x12,\n(MISSING_FEEDMAPPING_FOR_PLACEHOLDER_TYPE\x10\x08\x12&\n\"NO_EXISTING_LOCATION_CUSTOMER_FEED\x10\tB\xf1\x01\n\"com.google.ads.googleads.v4.errorsB\x16\x43\x61mpaignFeedErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V4.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V4\\Errors\xea\x02\"Google::Ads::GoogleAds::V4::Errorsb\x06proto3') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_CAMPAIGNFEEDERRORENUM_CAMPAIGNFEEDERROR = _descriptor.EnumDescriptor( + name='CampaignFeedError', + full_name='google.ads.googleads.v4.errors.CampaignFeedErrorEnum.CampaignFeedError', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='UNSPECIFIED', index=0, number=0, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='UNKNOWN', index=1, number=1, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='FEED_ALREADY_EXISTS_FOR_PLACEHOLDER_TYPE', index=2, number=2, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CANNOT_CREATE_FOR_REMOVED_FEED', index=3, number=4, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CANNOT_CREATE_ALREADY_EXISTING_CAMPAIGN_FEED', index=4, number=5, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CANNOT_MODIFY_REMOVED_CAMPAIGN_FEED', index=5, number=6, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_PLACEHOLDER_TYPE', index=6, number=7, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='MISSING_FEEDMAPPING_FOR_PLACEHOLDER_TYPE', index=7, number=8, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='NO_EXISTING_LOCATION_CUSTOMER_FEED', index=8, number=9, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=155, + serialized_end=493, +) +_sym_db.RegisterEnumDescriptor(_CAMPAIGNFEEDERRORENUM_CAMPAIGNFEEDERROR) + + +_CAMPAIGNFEEDERRORENUM = _descriptor.Descriptor( + name='CampaignFeedErrorEnum', + full_name='google.ads.googleads.v4.errors.CampaignFeedErrorEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _CAMPAIGNFEEDERRORENUM_CAMPAIGNFEEDERROR, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=129, + serialized_end=493, +) + +_CAMPAIGNFEEDERRORENUM_CAMPAIGNFEEDERROR.containing_type = _CAMPAIGNFEEDERRORENUM +DESCRIPTOR.message_types_by_name['CampaignFeedErrorEnum'] = _CAMPAIGNFEEDERRORENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +CampaignFeedErrorEnum = _reflection.GeneratedProtocolMessageType('CampaignFeedErrorEnum', (_message.Message,), dict( + DESCRIPTOR = _CAMPAIGNFEEDERRORENUM, + __module__ = 'google.ads.googleads_v4.proto.errors.campaign_feed_error_pb2' + , + __doc__ = """Container for enum describing possible campaign feed errors. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.errors.CampaignFeedErrorEnum) + )) +_sym_db.RegisterMessage(CampaignFeedErrorEnum) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/errors/feed_item_error_pb2_grpc.py b/google/ads/google_ads/v4/proto/errors/campaign_feed_error_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/errors/feed_item_error_pb2_grpc.py rename to google/ads/google_ads/v4/proto/errors/campaign_feed_error_pb2_grpc.py diff --git a/google/ads/google_ads/v4/proto/errors/campaign_shared_set_error_pb2.py b/google/ads/google_ads/v4/proto/errors/campaign_shared_set_error_pb2.py new file mode 100644 index 000000000..aff5cf70f --- /dev/null +++ b/google/ads/google_ads/v4/proto/errors/campaign_shared_set_error_pb2.py @@ -0,0 +1,97 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/errors/campaign_shared_set_error.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/errors/campaign_shared_set_error.proto', + package='google.ads.googleads.v4.errors', + syntax='proto3', + serialized_options=_b('\n\"com.google.ads.googleads.v4.errorsB\033CampaignSharedSetErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V4.Errors\312\002\036Google\\Ads\\GoogleAds\\V4\\Errors\352\002\"Google::Ads::GoogleAds::V4::Errors'), + serialized_pb=_b('\nDgoogle/ads/googleads_v4/proto/errors/campaign_shared_set_error.proto\x12\x1egoogle.ads.googleads.v4.errors\x1a\x1cgoogle/api/annotations.proto\"r\n\x1a\x43\x61mpaignSharedSetErrorEnum\"T\n\x16\x43\x61mpaignSharedSetError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x1c\n\x18SHARED_SET_ACCESS_DENIED\x10\x02\x42\xf6\x01\n\"com.google.ads.googleads.v4.errorsB\x1b\x43\x61mpaignSharedSetErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V4.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V4\\Errors\xea\x02\"Google::Ads::GoogleAds::V4::Errorsb\x06proto3') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_CAMPAIGNSHAREDSETERRORENUM_CAMPAIGNSHAREDSETERROR = _descriptor.EnumDescriptor( + name='CampaignSharedSetError', + full_name='google.ads.googleads.v4.errors.CampaignSharedSetErrorEnum.CampaignSharedSetError', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='UNSPECIFIED', index=0, number=0, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='UNKNOWN', index=1, number=1, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='SHARED_SET_ACCESS_DENIED', index=2, number=2, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=164, + serialized_end=248, +) +_sym_db.RegisterEnumDescriptor(_CAMPAIGNSHAREDSETERRORENUM_CAMPAIGNSHAREDSETERROR) + + +_CAMPAIGNSHAREDSETERRORENUM = _descriptor.Descriptor( + name='CampaignSharedSetErrorEnum', + full_name='google.ads.googleads.v4.errors.CampaignSharedSetErrorEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _CAMPAIGNSHAREDSETERRORENUM_CAMPAIGNSHAREDSETERROR, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=134, + serialized_end=248, +) + +_CAMPAIGNSHAREDSETERRORENUM_CAMPAIGNSHAREDSETERROR.containing_type = _CAMPAIGNSHAREDSETERRORENUM +DESCRIPTOR.message_types_by_name['CampaignSharedSetErrorEnum'] = _CAMPAIGNSHAREDSETERRORENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +CampaignSharedSetErrorEnum = _reflection.GeneratedProtocolMessageType('CampaignSharedSetErrorEnum', (_message.Message,), dict( + DESCRIPTOR = _CAMPAIGNSHAREDSETERRORENUM, + __module__ = 'google.ads.googleads_v4.proto.errors.campaign_shared_set_error_pb2' + , + __doc__ = """Container for enum describing possible campaign shared set errors. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.errors.CampaignSharedSetErrorEnum) + )) +_sym_db.RegisterMessage(CampaignSharedSetErrorEnum) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/errors/feed_item_target_error_pb2_grpc.py b/google/ads/google_ads/v4/proto/errors/campaign_shared_set_error_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/errors/feed_item_target_error_pb2_grpc.py rename to google/ads/google_ads/v4/proto/errors/campaign_shared_set_error_pb2_grpc.py diff --git a/google/ads/google_ads/v4/proto/errors/change_status_error_pb2.py b/google/ads/google_ads/v4/proto/errors/change_status_error_pb2.py new file mode 100644 index 000000000..d77a5191a --- /dev/null +++ b/google/ads/google_ads/v4/proto/errors/change_status_error_pb2.py @@ -0,0 +1,97 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/errors/change_status_error.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/errors/change_status_error.proto', + package='google.ads.googleads.v4.errors', + syntax='proto3', + serialized_options=_b('\n\"com.google.ads.googleads.v4.errorsB\026ChangeStatusErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V4.Errors\312\002\036Google\\Ads\\GoogleAds\\V4\\Errors\352\002\"Google::Ads::GoogleAds::V4::Errors'), + serialized_pb=_b('\n>google/ads/googleads_v4/proto/errors/change_status_error.proto\x12\x1egoogle.ads.googleads.v4.errors\x1a\x1cgoogle/api/annotations.proto\"b\n\x15\x43hangeStatusErrorEnum\"I\n\x11\x43hangeStatusError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x16\n\x12START_DATE_TOO_OLD\x10\x03\x42\xf1\x01\n\"com.google.ads.googleads.v4.errorsB\x16\x43hangeStatusErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V4.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V4\\Errors\xea\x02\"Google::Ads::GoogleAds::V4::Errorsb\x06proto3') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_CHANGESTATUSERRORENUM_CHANGESTATUSERROR = _descriptor.EnumDescriptor( + name='ChangeStatusError', + full_name='google.ads.googleads.v4.errors.ChangeStatusErrorEnum.ChangeStatusError', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='UNSPECIFIED', index=0, number=0, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='UNKNOWN', index=1, number=1, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='START_DATE_TOO_OLD', index=2, number=3, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=153, + serialized_end=226, +) +_sym_db.RegisterEnumDescriptor(_CHANGESTATUSERRORENUM_CHANGESTATUSERROR) + + +_CHANGESTATUSERRORENUM = _descriptor.Descriptor( + name='ChangeStatusErrorEnum', + full_name='google.ads.googleads.v4.errors.ChangeStatusErrorEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _CHANGESTATUSERRORENUM_CHANGESTATUSERROR, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=128, + serialized_end=226, +) + +_CHANGESTATUSERRORENUM_CHANGESTATUSERROR.containing_type = _CHANGESTATUSERRORENUM +DESCRIPTOR.message_types_by_name['ChangeStatusErrorEnum'] = _CHANGESTATUSERRORENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +ChangeStatusErrorEnum = _reflection.GeneratedProtocolMessageType('ChangeStatusErrorEnum', (_message.Message,), dict( + DESCRIPTOR = _CHANGESTATUSERRORENUM, + __module__ = 'google.ads.googleads_v4.proto.errors.change_status_error_pb2' + , + __doc__ = """Container for enum describing possible change status errors. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.errors.ChangeStatusErrorEnum) + )) +_sym_db.RegisterMessage(ChangeStatusErrorEnum) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/errors/feed_item_validation_error_pb2_grpc.py b/google/ads/google_ads/v4/proto/errors/change_status_error_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/errors/feed_item_validation_error_pb2_grpc.py rename to google/ads/google_ads/v4/proto/errors/change_status_error_pb2_grpc.py diff --git a/google/ads/google_ads/v4/proto/errors/collection_size_error_pb2.py b/google/ads/google_ads/v4/proto/errors/collection_size_error_pb2.py new file mode 100644 index 000000000..e80d19701 --- /dev/null +++ b/google/ads/google_ads/v4/proto/errors/collection_size_error_pb2.py @@ -0,0 +1,101 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/errors/collection_size_error.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/errors/collection_size_error.proto', + package='google.ads.googleads.v4.errors', + syntax='proto3', + serialized_options=_b('\n\"com.google.ads.googleads.v4.errorsB\030CollectionSizeErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V4.Errors\312\002\036Google\\Ads\\GoogleAds\\V4\\Errors\352\002\"Google::Ads::GoogleAds::V4::Errors'), + serialized_pb=_b('\n@google/ads/googleads_v4/proto/errors/collection_size_error.proto\x12\x1egoogle.ads.googleads.v4.errors\x1a\x1cgoogle/api/annotations.proto\"i\n\x17\x43ollectionSizeErrorEnum\"N\n\x13\x43ollectionSizeError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0b\n\x07TOO_FEW\x10\x02\x12\x0c\n\x08TOO_MANY\x10\x03\x42\xf3\x01\n\"com.google.ads.googleads.v4.errorsB\x18\x43ollectionSizeErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V4.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V4\\Errors\xea\x02\"Google::Ads::GoogleAds::V4::Errorsb\x06proto3') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_COLLECTIONSIZEERRORENUM_COLLECTIONSIZEERROR = _descriptor.EnumDescriptor( + name='CollectionSizeError', + full_name='google.ads.googleads.v4.errors.CollectionSizeErrorEnum.CollectionSizeError', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='UNSPECIFIED', index=0, number=0, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='UNKNOWN', index=1, number=1, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='TOO_FEW', index=2, number=2, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='TOO_MANY', index=3, number=3, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=157, + serialized_end=235, +) +_sym_db.RegisterEnumDescriptor(_COLLECTIONSIZEERRORENUM_COLLECTIONSIZEERROR) + + +_COLLECTIONSIZEERRORENUM = _descriptor.Descriptor( + name='CollectionSizeErrorEnum', + full_name='google.ads.googleads.v4.errors.CollectionSizeErrorEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _COLLECTIONSIZEERRORENUM_COLLECTIONSIZEERROR, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=130, + serialized_end=235, +) + +_COLLECTIONSIZEERRORENUM_COLLECTIONSIZEERROR.containing_type = _COLLECTIONSIZEERRORENUM +DESCRIPTOR.message_types_by_name['CollectionSizeErrorEnum'] = _COLLECTIONSIZEERRORENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +CollectionSizeErrorEnum = _reflection.GeneratedProtocolMessageType('CollectionSizeErrorEnum', (_message.Message,), dict( + DESCRIPTOR = _COLLECTIONSIZEERRORENUM, + __module__ = 'google.ads.googleads_v4.proto.errors.collection_size_error_pb2' + , + __doc__ = """Container for enum describing possible collection size errors. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.errors.CollectionSizeErrorEnum) + )) +_sym_db.RegisterMessage(CollectionSizeErrorEnum) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/errors/feed_mapping_error_pb2_grpc.py b/google/ads/google_ads/v4/proto/errors/collection_size_error_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/errors/feed_mapping_error_pb2_grpc.py rename to google/ads/google_ads/v4/proto/errors/collection_size_error_pb2_grpc.py diff --git a/google/ads/google_ads/v4/proto/errors/context_error_pb2.py b/google/ads/google_ads/v4/proto/errors/context_error_pb2.py new file mode 100644 index 000000000..e65e456d9 --- /dev/null +++ b/google/ads/google_ads/v4/proto/errors/context_error_pb2.py @@ -0,0 +1,101 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/errors/context_error.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/errors/context_error.proto', + package='google.ads.googleads.v4.errors', + syntax='proto3', + serialized_options=_b('\n\"com.google.ads.googleads.v4.errorsB\021ContextErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V4.Errors\312\002\036Google\\Ads\\GoogleAds\\V4\\Errors\352\002\"Google::Ads::GoogleAds::V4::Errors'), + serialized_pb=_b('\n8google/ads/googleads_v4/proto/errors/context_error.proto\x12\x1egoogle.ads.googleads.v4.errors\x1a\x1cgoogle/api/annotations.proto\"\x9c\x01\n\x10\x43ontextErrorEnum\"\x87\x01\n\x0c\x43ontextError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\'\n#OPERATION_NOT_PERMITTED_FOR_CONTEXT\x10\x02\x12\x30\n,OPERATION_NOT_PERMITTED_FOR_REMOVED_RESOURCE\x10\x03\x42\xec\x01\n\"com.google.ads.googleads.v4.errorsB\x11\x43ontextErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V4.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V4\\Errors\xea\x02\"Google::Ads::GoogleAds::V4::Errorsb\x06proto3') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_CONTEXTERRORENUM_CONTEXTERROR = _descriptor.EnumDescriptor( + name='ContextError', + full_name='google.ads.googleads.v4.errors.ContextErrorEnum.ContextError', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='UNSPECIFIED', index=0, number=0, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='UNKNOWN', index=1, number=1, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='OPERATION_NOT_PERMITTED_FOR_CONTEXT', index=2, number=2, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='OPERATION_NOT_PERMITTED_FOR_REMOVED_RESOURCE', index=3, number=3, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=144, + serialized_end=279, +) +_sym_db.RegisterEnumDescriptor(_CONTEXTERRORENUM_CONTEXTERROR) + + +_CONTEXTERRORENUM = _descriptor.Descriptor( + name='ContextErrorEnum', + full_name='google.ads.googleads.v4.errors.ContextErrorEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _CONTEXTERRORENUM_CONTEXTERROR, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=123, + serialized_end=279, +) + +_CONTEXTERRORENUM_CONTEXTERROR.containing_type = _CONTEXTERRORENUM +DESCRIPTOR.message_types_by_name['ContextErrorEnum'] = _CONTEXTERRORENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +ContextErrorEnum = _reflection.GeneratedProtocolMessageType('ContextErrorEnum', (_message.Message,), dict( + DESCRIPTOR = _CONTEXTERRORENUM, + __module__ = 'google.ads.googleads_v4.proto.errors.context_error_pb2' + , + __doc__ = """Container for enum describing possible context errors. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.errors.ContextErrorEnum) + )) +_sym_db.RegisterMessage(ContextErrorEnum) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/errors/field_error_pb2_grpc.py b/google/ads/google_ads/v4/proto/errors/context_error_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/errors/field_error_pb2_grpc.py rename to google/ads/google_ads/v4/proto/errors/context_error_pb2_grpc.py diff --git a/google/ads/google_ads/v4/proto/errors/conversion_action_error_pb2.py b/google/ads/google_ads/v4/proto/errors/conversion_action_error_pb2.py new file mode 100644 index 000000000..cedca2364 --- /dev/null +++ b/google/ads/google_ads/v4/proto/errors/conversion_action_error_pb2.py @@ -0,0 +1,129 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/errors/conversion_action_error.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/errors/conversion_action_error.proto', + package='google.ads.googleads.v4.errors', + syntax='proto3', + serialized_options=_b('\n\"com.google.ads.googleads.v4.errorsB\032ConversionActionErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V4.Errors\312\002\036Google\\Ads\\GoogleAds\\V4\\Errors\352\002\"Google::Ads::GoogleAds::V4::Errors'), + serialized_pb=_b('\nBgoogle/ads/googleads_v4/proto/errors/conversion_action_error.proto\x12\x1egoogle.ads.googleads.v4.errors\x1a\x1cgoogle/api/annotations.proto\"\x8b\x03\n\x19\x43onversionActionErrorEnum\"\xed\x02\n\x15\x43onversionActionError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x12\n\x0e\x44UPLICATE_NAME\x10\x02\x12\x14\n\x10\x44UPLICATE_APP_ID\x10\x03\x12\x37\n3TWO_CONVERSION_ACTIONS_BIDDING_ON_SAME_APP_DOWNLOAD\x10\x04\x12\x31\n-BIDDING_ON_SAME_APP_DOWNLOAD_AS_GLOBAL_ACTION\x10\x05\x12)\n%DATA_DRIVEN_MODEL_WAS_NEVER_GENERATED\x10\x06\x12\x1d\n\x19\x44\x41TA_DRIVEN_MODEL_EXPIRED\x10\x07\x12\x1b\n\x17\x44\x41TA_DRIVEN_MODEL_STALE\x10\x08\x12\x1d\n\x19\x44\x41TA_DRIVEN_MODEL_UNKNOWN\x10\t\x12\x1a\n\x16\x43REATION_NOT_SUPPORTED\x10\nB\xf5\x01\n\"com.google.ads.googleads.v4.errorsB\x1a\x43onversionActionErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V4.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V4\\Errors\xea\x02\"Google::Ads::GoogleAds::V4::Errorsb\x06proto3') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_CONVERSIONACTIONERRORENUM_CONVERSIONACTIONERROR = _descriptor.EnumDescriptor( + name='ConversionActionError', + full_name='google.ads.googleads.v4.errors.ConversionActionErrorEnum.ConversionActionError', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='UNSPECIFIED', index=0, number=0, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='UNKNOWN', index=1, number=1, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='DUPLICATE_NAME', index=2, number=2, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='DUPLICATE_APP_ID', index=3, number=3, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='TWO_CONVERSION_ACTIONS_BIDDING_ON_SAME_APP_DOWNLOAD', index=4, number=4, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='BIDDING_ON_SAME_APP_DOWNLOAD_AS_GLOBAL_ACTION', index=5, number=5, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='DATA_DRIVEN_MODEL_WAS_NEVER_GENERATED', index=6, number=6, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='DATA_DRIVEN_MODEL_EXPIRED', index=7, number=7, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='DATA_DRIVEN_MODEL_STALE', index=8, number=8, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='DATA_DRIVEN_MODEL_UNKNOWN', index=9, number=9, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CREATION_NOT_SUPPORTED', index=10, number=10, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=163, + serialized_end=528, +) +_sym_db.RegisterEnumDescriptor(_CONVERSIONACTIONERRORENUM_CONVERSIONACTIONERROR) + + +_CONVERSIONACTIONERRORENUM = _descriptor.Descriptor( + name='ConversionActionErrorEnum', + full_name='google.ads.googleads.v4.errors.ConversionActionErrorEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _CONVERSIONACTIONERRORENUM_CONVERSIONACTIONERROR, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=133, + serialized_end=528, +) + +_CONVERSIONACTIONERRORENUM_CONVERSIONACTIONERROR.containing_type = _CONVERSIONACTIONERRORENUM +DESCRIPTOR.message_types_by_name['ConversionActionErrorEnum'] = _CONVERSIONACTIONERRORENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +ConversionActionErrorEnum = _reflection.GeneratedProtocolMessageType('ConversionActionErrorEnum', (_message.Message,), dict( + DESCRIPTOR = _CONVERSIONACTIONERRORENUM, + __module__ = 'google.ads.googleads_v4.proto.errors.conversion_action_error_pb2' + , + __doc__ = """Container for enum describing possible conversion action errors. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.errors.ConversionActionErrorEnum) + )) +_sym_db.RegisterMessage(ConversionActionErrorEnum) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/errors/field_mask_error_pb2_grpc.py b/google/ads/google_ads/v4/proto/errors/conversion_action_error_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/errors/field_mask_error_pb2_grpc.py rename to google/ads/google_ads/v4/proto/errors/conversion_action_error_pb2_grpc.py diff --git a/google/ads/google_ads/v4/proto/errors/conversion_adjustment_upload_error_pb2.py b/google/ads/google_ads/v4/proto/errors/conversion_adjustment_upload_error_pb2.py new file mode 100644 index 000000000..df3a5fe8c --- /dev/null +++ b/google/ads/google_ads/v4/proto/errors/conversion_adjustment_upload_error_pb2.py @@ -0,0 +1,138 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/errors/conversion_adjustment_upload_error.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/errors/conversion_adjustment_upload_error.proto', + package='google.ads.googleads.v4.errors', + syntax='proto3', + serialized_options=_b('\n\"com.google.ads.googleads.v4.errorsB$ConversionAdjustmentUploadErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V4.Errors\312\002\036Google\\Ads\\GoogleAds\\V4\\Errors\352\002\"Google::Ads::GoogleAds::V4::Errors'), + serialized_pb=_b('\nMgoogle/ads/googleads_v4/proto/errors/conversion_adjustment_upload_error.proto\x12\x1egoogle.ads.googleads.v4.errors\x1a\x1cgoogle/api/annotations.proto\"\xed\x03\n#ConversionAdjustmentUploadErrorEnum\"\xc5\x03\n\x1f\x43onversionAdjustmentUploadError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12 \n\x1cTOO_RECENT_CONVERSION_ACTION\x10\x02\x12\x1d\n\x19INVALID_CONVERSION_ACTION\x10\x03\x12 \n\x1c\x43ONVERSION_ALREADY_RETRACTED\x10\x04\x12\x18\n\x14\x43ONVERSION_NOT_FOUND\x10\x05\x12\x16\n\x12\x43ONVERSION_EXPIRED\x10\x06\x12\"\n\x1e\x41\x44JUSTMENT_PRECEDES_CONVERSION\x10\x07\x12!\n\x1dMORE_RECENT_RESTATEMENT_FOUND\x10\x08\x12\x19\n\x15TOO_RECENT_CONVERSION\x10\t\x12N\nJCANNOT_RESTATE_CONVERSION_ACTION_THAT_ALWAYS_USES_DEFAULT_CONVERSION_VALUE\x10\n\x12#\n\x1fTOO_MANY_ADJUSTMENTS_IN_REQUEST\x10\x0b\x12\x18\n\x14TOO_MANY_ADJUSTMENTS\x10\x0c\x42\xff\x01\n\"com.google.ads.googleads.v4.errorsB$ConversionAdjustmentUploadErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V4.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V4\\Errors\xea\x02\"Google::Ads::GoogleAds::V4::Errorsb\x06proto3') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_CONVERSIONADJUSTMENTUPLOADERRORENUM_CONVERSIONADJUSTMENTUPLOADERROR = _descriptor.EnumDescriptor( + name='ConversionAdjustmentUploadError', + full_name='google.ads.googleads.v4.errors.ConversionAdjustmentUploadErrorEnum.ConversionAdjustmentUploadError', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='UNSPECIFIED', index=0, number=0, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='UNKNOWN', index=1, number=1, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='TOO_RECENT_CONVERSION_ACTION', index=2, number=2, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_CONVERSION_ACTION', index=3, number=3, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CONVERSION_ALREADY_RETRACTED', index=4, number=4, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CONVERSION_NOT_FOUND', index=5, number=5, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CONVERSION_EXPIRED', index=6, number=6, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='ADJUSTMENT_PRECEDES_CONVERSION', index=7, number=7, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='MORE_RECENT_RESTATEMENT_FOUND', index=8, number=8, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='TOO_RECENT_CONVERSION', index=9, number=9, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CANNOT_RESTATE_CONVERSION_ACTION_THAT_ALWAYS_USES_DEFAULT_CONVERSION_VALUE', index=10, number=10, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='TOO_MANY_ADJUSTMENTS_IN_REQUEST', index=11, number=11, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='TOO_MANY_ADJUSTMENTS', index=12, number=12, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=184, + serialized_end=637, +) +_sym_db.RegisterEnumDescriptor(_CONVERSIONADJUSTMENTUPLOADERRORENUM_CONVERSIONADJUSTMENTUPLOADERROR) + + +_CONVERSIONADJUSTMENTUPLOADERRORENUM = _descriptor.Descriptor( + name='ConversionAdjustmentUploadErrorEnum', + full_name='google.ads.googleads.v4.errors.ConversionAdjustmentUploadErrorEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _CONVERSIONADJUSTMENTUPLOADERRORENUM_CONVERSIONADJUSTMENTUPLOADERROR, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=144, + serialized_end=637, +) + +_CONVERSIONADJUSTMENTUPLOADERRORENUM_CONVERSIONADJUSTMENTUPLOADERROR.containing_type = _CONVERSIONADJUSTMENTUPLOADERRORENUM +DESCRIPTOR.message_types_by_name['ConversionAdjustmentUploadErrorEnum'] = _CONVERSIONADJUSTMENTUPLOADERRORENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +ConversionAdjustmentUploadErrorEnum = _reflection.GeneratedProtocolMessageType('ConversionAdjustmentUploadErrorEnum', (_message.Message,), dict( + DESCRIPTOR = _CONVERSIONADJUSTMENTUPLOADERRORENUM, + __module__ = 'google.ads.googleads_v4.proto.errors.conversion_adjustment_upload_error_pb2' + , + __doc__ = """Container for enum describing possible conversion adjustment upload + errors. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.errors.ConversionAdjustmentUploadErrorEnum) + )) +_sym_db.RegisterMessage(ConversionAdjustmentUploadErrorEnum) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/errors/function_error_pb2_grpc.py b/google/ads/google_ads/v4/proto/errors/conversion_adjustment_upload_error_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/errors/function_error_pb2_grpc.py rename to google/ads/google_ads/v4/proto/errors/conversion_adjustment_upload_error_pb2_grpc.py diff --git a/google/ads/google_ads/v1/proto/errors/conversion_upload_error_pb2.py b/google/ads/google_ads/v4/proto/errors/conversion_upload_error_pb2.py similarity index 86% rename from google/ads/google_ads/v1/proto/errors/conversion_upload_error_pb2.py rename to google/ads/google_ads/v4/proto/errors/conversion_upload_error_pb2.py index b7ff82d32..372e797fe 100644 --- a/google/ads/google_ads/v1/proto/errors/conversion_upload_error_pb2.py +++ b/google/ads/google_ads/v4/proto/errors/conversion_upload_error_pb2.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/errors/conversion_upload_error.proto +# source: google/ads/googleads_v4/proto/errors/conversion_upload_error.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) @@ -17,11 +17,11 @@ DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/errors/conversion_upload_error.proto', - package='google.ads.googleads.v1.errors', + name='google/ads/googleads_v4/proto/errors/conversion_upload_error.proto', + package='google.ads.googleads.v4.errors', syntax='proto3', - serialized_options=_b('\n\"com.google.ads.googleads.v1.errorsB\032ConversionUploadErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V1.Errors\312\002\036Google\\Ads\\GoogleAds\\V1\\Errors\352\002\"Google::Ads::GoogleAds::V1::Errors'), - serialized_pb=_b('\nBgoogle/ads/googleads_v1/proto/errors/conversion_upload_error.proto\x12\x1egoogle.ads.googleads.v1.errors\x1a\x1cgoogle/api/annotations.proto\"\xd4\x06\n\x19\x43onversionUploadErrorEnum\"\xb6\x06\n\x15\x43onversionUploadError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12#\n\x1fTOO_MANY_CONVERSIONS_IN_REQUEST\x10\x02\x12\x15\n\x11UNPARSEABLE_GCLID\x10\x03\x12\x1d\n\x19\x43ONVERSION_PRECEDES_GCLID\x10\x04\x12\x11\n\rEXPIRED_GCLID\x10\x05\x12\x14\n\x10TOO_RECENT_GCLID\x10\x06\x12\x13\n\x0fGCLID_NOT_FOUND\x10\x07\x12\x19\n\x15UNAUTHORIZED_CUSTOMER\x10\x08\x12\x1d\n\x19INVALID_CONVERSION_ACTION\x10\t\x12 \n\x1cTOO_RECENT_CONVERSION_ACTION\x10\n\x12\x36\n2CONVERSION_TRACKING_NOT_ENABLED_AT_IMPRESSION_TIME\x10\x0b\x12Q\nMEXTERNAL_ATTRIBUTION_DATA_SET_FOR_NON_EXTERNALLY_ATTRIBUTED_CONVERSION_ACTION\x10\x0c\x12Q\nMEXTERNAL_ATTRIBUTION_DATA_NOT_SET_FOR_EXTERNALLY_ATTRIBUTED_CONVERSION_ACTION\x10\r\x12\x46\nBORDER_ID_NOT_PERMITTED_FOR_EXTERNALLY_ATTRIBUTED_CONVERSION_ACTION\x10\x0e\x12\x1b\n\x17ORDER_ID_ALREADY_IN_USE\x10\x0f\x12\x16\n\x12\x44UPLICATE_ORDER_ID\x10\x10\x12\x13\n\x0fTOO_RECENT_CALL\x10\x11\x12\x10\n\x0c\x45XPIRED_CALL\x10\x12\x12\x12\n\x0e\x43\x41LL_NOT_FOUND\x10\x13\x12\x1c\n\x18\x43ONVERSION_PRECEDES_CALL\x10\x14\x12\x30\n,CONVERSION_TRACKING_NOT_ENABLED_AT_CALL_TIME\x10\x15\x12$\n UNPARSEABLE_CALLERS_PHONE_NUMBER\x10\x16\x42\xf5\x01\n\"com.google.ads.googleads.v1.errorsB\x1a\x43onversionUploadErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V1.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V1\\Errors\xea\x02\"Google::Ads::GoogleAds::V1::Errorsb\x06proto3') + serialized_options=_b('\n\"com.google.ads.googleads.v4.errorsB\032ConversionUploadErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V4.Errors\312\002\036Google\\Ads\\GoogleAds\\V4\\Errors\352\002\"Google::Ads::GoogleAds::V4::Errors'), + serialized_pb=_b('\nBgoogle/ads/googleads_v4/proto/errors/conversion_upload_error.proto\x12\x1egoogle.ads.googleads.v4.errors\x1a\x1cgoogle/api/annotations.proto\"\xd4\x06\n\x19\x43onversionUploadErrorEnum\"\xb6\x06\n\x15\x43onversionUploadError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12#\n\x1fTOO_MANY_CONVERSIONS_IN_REQUEST\x10\x02\x12\x15\n\x11UNPARSEABLE_GCLID\x10\x03\x12\x1d\n\x19\x43ONVERSION_PRECEDES_GCLID\x10\x04\x12\x11\n\rEXPIRED_GCLID\x10\x05\x12\x14\n\x10TOO_RECENT_GCLID\x10\x06\x12\x13\n\x0fGCLID_NOT_FOUND\x10\x07\x12\x19\n\x15UNAUTHORIZED_CUSTOMER\x10\x08\x12\x1d\n\x19INVALID_CONVERSION_ACTION\x10\t\x12 \n\x1cTOO_RECENT_CONVERSION_ACTION\x10\n\x12\x36\n2CONVERSION_TRACKING_NOT_ENABLED_AT_IMPRESSION_TIME\x10\x0b\x12Q\nMEXTERNAL_ATTRIBUTION_DATA_SET_FOR_NON_EXTERNALLY_ATTRIBUTED_CONVERSION_ACTION\x10\x0c\x12Q\nMEXTERNAL_ATTRIBUTION_DATA_NOT_SET_FOR_EXTERNALLY_ATTRIBUTED_CONVERSION_ACTION\x10\r\x12\x46\nBORDER_ID_NOT_PERMITTED_FOR_EXTERNALLY_ATTRIBUTED_CONVERSION_ACTION\x10\x0e\x12\x1b\n\x17ORDER_ID_ALREADY_IN_USE\x10\x0f\x12\x16\n\x12\x44UPLICATE_ORDER_ID\x10\x10\x12\x13\n\x0fTOO_RECENT_CALL\x10\x11\x12\x10\n\x0c\x45XPIRED_CALL\x10\x12\x12\x12\n\x0e\x43\x41LL_NOT_FOUND\x10\x13\x12\x1c\n\x18\x43ONVERSION_PRECEDES_CALL\x10\x14\x12\x30\n,CONVERSION_TRACKING_NOT_ENABLED_AT_CALL_TIME\x10\x15\x12$\n UNPARSEABLE_CALLERS_PHONE_NUMBER\x10\x16\x42\xf5\x01\n\"com.google.ads.googleads.v4.errorsB\x1a\x43onversionUploadErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V4.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V4\\Errors\xea\x02\"Google::Ads::GoogleAds::V4::Errorsb\x06proto3') , dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) @@ -29,7 +29,7 @@ _CONVERSIONUPLOADERRORENUM_CONVERSIONUPLOADERROR = _descriptor.EnumDescriptor( name='ConversionUploadError', - full_name='google.ads.googleads.v1.errors.ConversionUploadErrorEnum.ConversionUploadError', + full_name='google.ads.googleads.v4.errors.ConversionUploadErrorEnum.ConversionUploadError', filename=None, file=DESCRIPTOR, values=[ @@ -136,7 +136,7 @@ _CONVERSIONUPLOADERRORENUM = _descriptor.Descriptor( name='ConversionUploadErrorEnum', - full_name='google.ads.googleads.v1.errors.ConversionUploadErrorEnum', + full_name='google.ads.googleads.v4.errors.ConversionUploadErrorEnum', filename=None, file=DESCRIPTOR, containing_type=None, @@ -164,11 +164,11 @@ ConversionUploadErrorEnum = _reflection.GeneratedProtocolMessageType('ConversionUploadErrorEnum', (_message.Message,), dict( DESCRIPTOR = _CONVERSIONUPLOADERRORENUM, - __module__ = 'google.ads.googleads_v1.proto.errors.conversion_upload_error_pb2' + __module__ = 'google.ads.googleads_v4.proto.errors.conversion_upload_error_pb2' , __doc__ = """Container for enum describing possible conversion upload errors. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.errors.ConversionUploadErrorEnum) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.errors.ConversionUploadErrorEnum) )) _sym_db.RegisterMessage(ConversionUploadErrorEnum) diff --git a/google/ads/google_ads/v1/proto/errors/function_parsing_error_pb2_grpc.py b/google/ads/google_ads/v4/proto/errors/conversion_upload_error_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/errors/function_parsing_error_pb2_grpc.py rename to google/ads/google_ads/v4/proto/errors/conversion_upload_error_pb2_grpc.py diff --git a/google/ads/google_ads/v4/proto/errors/country_code_error_pb2.py b/google/ads/google_ads/v4/proto/errors/country_code_error_pb2.py new file mode 100644 index 000000000..eeef070da --- /dev/null +++ b/google/ads/google_ads/v4/proto/errors/country_code_error_pb2.py @@ -0,0 +1,97 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/errors/country_code_error.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/errors/country_code_error.proto', + package='google.ads.googleads.v4.errors', + syntax='proto3', + serialized_options=_b('\n\"com.google.ads.googleads.v4.errorsB\025CountryCodeErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V4.Errors\312\002\036Google\\Ads\\GoogleAds\\V4\\Errors\352\002\"Google::Ads::GoogleAds::V4::Errors'), + serialized_pb=_b('\n=google/ads/googleads_v4/proto/errors/country_code_error.proto\x12\x1egoogle.ads.googleads.v4.errors\x1a\x1cgoogle/api/annotations.proto\"b\n\x14\x43ountryCodeErrorEnum\"J\n\x10\x43ountryCodeError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x18\n\x14INVALID_COUNTRY_CODE\x10\x02\x42\xf0\x01\n\"com.google.ads.googleads.v4.errorsB\x15\x43ountryCodeErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V4.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V4\\Errors\xea\x02\"Google::Ads::GoogleAds::V4::Errorsb\x06proto3') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_COUNTRYCODEERRORENUM_COUNTRYCODEERROR = _descriptor.EnumDescriptor( + name='CountryCodeError', + full_name='google.ads.googleads.v4.errors.CountryCodeErrorEnum.CountryCodeError', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='UNSPECIFIED', index=0, number=0, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='UNKNOWN', index=1, number=1, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_COUNTRY_CODE', index=2, number=2, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=151, + serialized_end=225, +) +_sym_db.RegisterEnumDescriptor(_COUNTRYCODEERRORENUM_COUNTRYCODEERROR) + + +_COUNTRYCODEERRORENUM = _descriptor.Descriptor( + name='CountryCodeErrorEnum', + full_name='google.ads.googleads.v4.errors.CountryCodeErrorEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _COUNTRYCODEERRORENUM_COUNTRYCODEERROR, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=127, + serialized_end=225, +) + +_COUNTRYCODEERRORENUM_COUNTRYCODEERROR.containing_type = _COUNTRYCODEERRORENUM +DESCRIPTOR.message_types_by_name['CountryCodeErrorEnum'] = _COUNTRYCODEERRORENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +CountryCodeErrorEnum = _reflection.GeneratedProtocolMessageType('CountryCodeErrorEnum', (_message.Message,), dict( + DESCRIPTOR = _COUNTRYCODEERRORENUM, + __module__ = 'google.ads.googleads_v4.proto.errors.country_code_error_pb2' + , + __doc__ = """Container for enum describing country code errors. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.errors.CountryCodeErrorEnum) + )) +_sym_db.RegisterMessage(CountryCodeErrorEnum) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/errors/geo_target_constant_suggestion_error_pb2_grpc.py b/google/ads/google_ads/v4/proto/errors/country_code_error_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/errors/geo_target_constant_suggestion_error_pb2_grpc.py rename to google/ads/google_ads/v4/proto/errors/country_code_error_pb2_grpc.py diff --git a/google/ads/google_ads/v4/proto/errors/criterion_error_pb2.py b/google/ads/google_ads/v4/proto/errors/criterion_error_pb2.py new file mode 100644 index 000000000..bb1217b0b --- /dev/null +++ b/google/ads/google_ads/v4/proto/errors/criterion_error_pb2.py @@ -0,0 +1,537 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/errors/criterion_error.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/errors/criterion_error.proto', + package='google.ads.googleads.v4.errors', + syntax='proto3', + serialized_options=_b('\n\"com.google.ads.googleads.v4.errorsB\023CriterionErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V4.Errors\312\002\036Google\\Ads\\GoogleAds\\V4\\Errors\352\002\"Google::Ads::GoogleAds::V4::Errors'), + serialized_pb=_b('\n:google/ads/googleads_v4/proto/errors/criterion_error.proto\x12\x1egoogle.ads.googleads.v4.errors\x1a\x1cgoogle/api/annotations.proto\"\x92\"\n\x12\x43riterionErrorEnum\"\xfb!\n\x0e\x43riterionError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x1a\n\x16\x43ONCRETE_TYPE_REQUIRED\x10\x02\x12\x1d\n\x19INVALID_EXCLUDED_CATEGORY\x10\x03\x12\x18\n\x14INVALID_KEYWORD_TEXT\x10\x04\x12\x19\n\x15KEYWORD_TEXT_TOO_LONG\x10\x05\x12\x1e\n\x1aKEYWORD_HAS_TOO_MANY_WORDS\x10\x06\x12\x1d\n\x19KEYWORD_HAS_INVALID_CHARS\x10\x07\x12\x19\n\x15INVALID_PLACEMENT_URL\x10\x08\x12\x15\n\x11INVALID_USER_LIST\x10\t\x12\x19\n\x15INVALID_USER_INTEREST\x10\n\x12$\n INVALID_FORMAT_FOR_PLACEMENT_URL\x10\x0b\x12\x1d\n\x19PLACEMENT_URL_IS_TOO_LONG\x10\x0c\x12\"\n\x1ePLACEMENT_URL_HAS_ILLEGAL_CHAR\x10\r\x12,\n(PLACEMENT_URL_HAS_MULTIPLE_SITES_IN_LINE\x10\x0e\x12\x39\n5PLACEMENT_IS_NOT_AVAILABLE_FOR_TARGETING_OR_EXCLUSION\x10\x0f\x12\x16\n\x12INVALID_TOPIC_PATH\x10\x10\x12\x1e\n\x1aINVALID_YOUTUBE_CHANNEL_ID\x10\x11\x12\x1c\n\x18INVALID_YOUTUBE_VIDEO_ID\x10\x12\x12\'\n#YOUTUBE_VERTICAL_CHANNEL_DEPRECATED\x10\x13\x12*\n&YOUTUBE_DEMOGRAPHIC_CHANNEL_DEPRECATED\x10\x14\x12\x1b\n\x17YOUTUBE_URL_UNSUPPORTED\x10\x15\x12 \n\x1c\x43\x41NNOT_EXCLUDE_CRITERIA_TYPE\x10\x16\x12\x1c\n\x18\x43\x41NNOT_ADD_CRITERIA_TYPE\x10\x17\x12$\n CANNOT_EXCLUDE_SIMILAR_USER_LIST\x10\x1a\x12\x1f\n\x1b\x43\x41NNOT_ADD_CLOSED_USER_LIST\x10\x1b\x12:\n6CANNOT_ADD_DISPLAY_ONLY_LISTS_TO_SEARCH_ONLY_CAMPAIGNS\x10\x1c\x12\x35\n1CANNOT_ADD_DISPLAY_ONLY_LISTS_TO_SEARCH_CAMPAIGNS\x10\x1d\x12\x37\n3CANNOT_ADD_DISPLAY_ONLY_LISTS_TO_SHOPPING_CAMPAIGNS\x10\x1e\x12\x31\n-CANNOT_ADD_USER_INTERESTS_TO_SEARCH_CAMPAIGNS\x10\x1f\x12\x39\n5CANNOT_SET_BIDS_ON_CRITERION_TYPE_IN_SEARCH_CAMPAIGNS\x10 \x12\x37\n3CANNOT_ADD_URLS_TO_CRITERION_TYPE_FOR_CAMPAIGN_TYPE\x10!\x12\x1b\n\x17INVALID_CUSTOM_AFFINITY\x10`\x12\x19\n\x15INVALID_CUSTOM_INTENT\x10\x61\x12\x16\n\x12INVALID_IP_ADDRESS\x10\"\x12\x15\n\x11INVALID_IP_FORMAT\x10#\x12\x16\n\x12INVALID_MOBILE_APP\x10$\x12\x1f\n\x1bINVALID_MOBILE_APP_CATEGORY\x10%\x12\x18\n\x14INVALID_CRITERION_ID\x10&\x12\x1b\n\x17\x43\x41NNOT_TARGET_CRITERION\x10\'\x12$\n CANNOT_TARGET_OBSOLETE_CRITERION\x10(\x12\"\n\x1e\x43RITERION_ID_AND_TYPE_MISMATCH\x10)\x12\x1c\n\x18INVALID_PROXIMITY_RADIUS\x10*\x12\"\n\x1eINVALID_PROXIMITY_RADIUS_UNITS\x10+\x12 \n\x1cINVALID_STREETADDRESS_LENGTH\x10,\x12\x1b\n\x17INVALID_CITYNAME_LENGTH\x10-\x12\x1d\n\x19INVALID_REGIONCODE_LENGTH\x10.\x12\x1d\n\x19INVALID_REGIONNAME_LENGTH\x10/\x12\x1d\n\x19INVALID_POSTALCODE_LENGTH\x10\x30\x12\x18\n\x14INVALID_COUNTRY_CODE\x10\x31\x12\x14\n\x10INVALID_LATITUDE\x10\x32\x12\x15\n\x11INVALID_LONGITUDE\x10\x33\x12\x36\n2PROXIMITY_GEOPOINT_AND_ADDRESS_BOTH_CANNOT_BE_NULL\x10\x34\x12\x1d\n\x19INVALID_PROXIMITY_ADDRESS\x10\x35\x12\x1c\n\x18INVALID_USER_DOMAIN_NAME\x10\x36\x12 \n\x1c\x43RITERION_PARAMETER_TOO_LONG\x10\x37\x12&\n\"AD_SCHEDULE_TIME_INTERVALS_OVERLAP\x10\x38\x12\x32\n.AD_SCHEDULE_INTERVAL_CANNOT_SPAN_MULTIPLE_DAYS\x10\x39\x12%\n!AD_SCHEDULE_INVALID_TIME_INTERVAL\x10:\x12\x30\n,AD_SCHEDULE_EXCEEDED_INTERVALS_PER_DAY_LIMIT\x10;\x12/\n+AD_SCHEDULE_CRITERION_ID_MISMATCHING_FIELDS\x10<\x12$\n CANNOT_BID_MODIFY_CRITERION_TYPE\x10=\x12\x32\n.CANNOT_BID_MODIFY_CRITERION_CAMPAIGN_OPTED_OUT\x10>\x12(\n$CANNOT_BID_MODIFY_NEGATIVE_CRITERION\x10?\x12\x1f\n\x1b\x42ID_MODIFIER_ALREADY_EXISTS\x10@\x12\x17\n\x13\x46\x45\x45\x44_ID_NOT_ALLOWED\x10\x41\x12(\n$ACCOUNT_INELIGIBLE_FOR_CRITERIA_TYPE\x10\x42\x12.\n*CRITERIA_TYPE_INVALID_FOR_BIDDING_STRATEGY\x10\x43\x12\x1c\n\x18\x43\x41NNOT_EXCLUDE_CRITERION\x10\x44\x12\x1b\n\x17\x43\x41NNOT_REMOVE_CRITERION\x10\x45\x12$\n INVALID_PRODUCT_BIDDING_CATEGORY\x10L\x12\x1c\n\x18MISSING_SHOPPING_SETTING\x10M\x12\x1d\n\x19INVALID_MATCHING_FUNCTION\x10N\x12\x1f\n\x1bLOCATION_FILTER_NOT_ALLOWED\x10O\x12$\n INVALID_FEED_FOR_LOCATION_FILTER\x10\x62\x12\x1b\n\x17LOCATION_FILTER_INVALID\x10P\x12\x32\n.CANNOT_ATTACH_CRITERIA_AT_CAMPAIGN_AND_ADGROUP\x10Q\x12\x39\n5HOTEL_LENGTH_OF_STAY_OVERLAPS_WITH_EXISTING_CRITERION\x10R\x12\x41\n=HOTEL_ADVANCE_BOOKING_WINDOW_OVERLAPS_WITH_EXISTING_CRITERION\x10S\x12.\n*FIELD_INCOMPATIBLE_WITH_NEGATIVE_TARGETING\x10T\x12\x1d\n\x19INVALID_WEBPAGE_CONDITION\x10U\x12!\n\x1dINVALID_WEBPAGE_CONDITION_URL\x10V\x12)\n%WEBPAGE_CONDITION_URL_CANNOT_BE_EMPTY\x10W\x12.\n*WEBPAGE_CONDITION_URL_UNSUPPORTED_PROTOCOL\x10X\x12.\n*WEBPAGE_CONDITION_URL_CANNOT_BE_IP_ADDRESS\x10Y\x12\x45\nAWEBPAGE_CONDITION_URL_DOMAIN_NOT_CONSISTENT_WITH_CAMPAIGN_SETTING\x10Z\x12\x31\n-WEBPAGE_CONDITION_URL_CANNOT_BE_PUBLIC_SUFFIX\x10[\x12/\n+WEBPAGE_CONDITION_URL_INVALID_PUBLIC_SUFFIX\x10\\\x12\x39\n5WEBPAGE_CONDITION_URL_VALUE_TRACK_VALUE_NOT_SUPPORTED\x10]\x12<\n8WEBPAGE_CRITERION_URL_EQUALS_CAN_HAVE_ONLY_ONE_CONDITION\x10^\x12\x37\n3WEBPAGE_CRITERION_NOT_SUPPORTED_ON_NON_DSA_AD_GROUP\x10_\x12\x37\n3CANNOT_TARGET_USER_LIST_FOR_SMART_DISPLAY_CAMPAIGNS\x10\x63\x12*\n&LISTING_SCOPE_TOO_MANY_DIMENSION_TYPES\x10\x64\x12\'\n#LISTING_SCOPE_TOO_MANY_IN_OPERATORS\x10\x65\x12+\n\'LISTING_SCOPE_IN_OPERATOR_NOT_SUPPORTED\x10\x66\x12$\n DUPLICATE_LISTING_DIMENSION_TYPE\x10g\x12%\n!DUPLICATE_LISTING_DIMENSION_VALUE\x10h\x12\x30\n,CANNOT_SET_BIDS_ON_LISTING_GROUP_SUBDIVISION\x10i\x12#\n\x1fINVALID_LISTING_GROUP_HIERARCHY\x10j\x12+\n\'LISTING_GROUP_UNIT_CANNOT_HAVE_CHILDREN\x10k\x12\x32\n.LISTING_GROUP_SUBDIVISION_REQUIRES_OTHERS_CASE\x10l\x12:\n6LISTING_GROUP_REQUIRES_SAME_DIMENSION_TYPE_AS_SIBLINGS\x10m\x12 \n\x1cLISTING_GROUP_ALREADY_EXISTS\x10n\x12 \n\x1cLISTING_GROUP_DOES_NOT_EXIST\x10o\x12#\n\x1fLISTING_GROUP_CANNOT_BE_REMOVED\x10p\x12\x1e\n\x1aINVALID_LISTING_GROUP_TYPE\x10q\x12*\n&LISTING_GROUP_ADD_MAY_ONLY_USE_TEMP_ID\x10r\x12\x1a\n\x16LISTING_SCOPE_TOO_LONG\x10s\x12%\n!LISTING_SCOPE_TOO_MANY_DIMENSIONS\x10t\x12\x1a\n\x16LISTING_GROUP_TOO_LONG\x10u\x12\x1f\n\x1bLISTING_GROUP_TREE_TOO_DEEP\x10v\x12\x1d\n\x19INVALID_LISTING_DIMENSION\x10w\x12\"\n\x1eINVALID_LISTING_DIMENSION_TYPE\x10xB\xee\x01\n\"com.google.ads.googleads.v4.errorsB\x13\x43riterionErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V4.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V4\\Errors\xea\x02\"Google::Ads::GoogleAds::V4::Errorsb\x06proto3') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_CRITERIONERRORENUM_CRITERIONERROR = _descriptor.EnumDescriptor( + name='CriterionError', + full_name='google.ads.googleads.v4.errors.CriterionErrorEnum.CriterionError', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='UNSPECIFIED', index=0, number=0, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='UNKNOWN', index=1, number=1, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CONCRETE_TYPE_REQUIRED', index=2, number=2, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_EXCLUDED_CATEGORY', index=3, number=3, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_KEYWORD_TEXT', index=4, number=4, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='KEYWORD_TEXT_TOO_LONG', index=5, number=5, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='KEYWORD_HAS_TOO_MANY_WORDS', index=6, number=6, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='KEYWORD_HAS_INVALID_CHARS', index=7, number=7, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_PLACEMENT_URL', index=8, number=8, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_USER_LIST', index=9, number=9, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_USER_INTEREST', index=10, number=10, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_FORMAT_FOR_PLACEMENT_URL', index=11, number=11, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='PLACEMENT_URL_IS_TOO_LONG', index=12, number=12, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='PLACEMENT_URL_HAS_ILLEGAL_CHAR', index=13, number=13, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='PLACEMENT_URL_HAS_MULTIPLE_SITES_IN_LINE', index=14, number=14, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='PLACEMENT_IS_NOT_AVAILABLE_FOR_TARGETING_OR_EXCLUSION', index=15, number=15, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_TOPIC_PATH', index=16, number=16, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_YOUTUBE_CHANNEL_ID', index=17, number=17, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_YOUTUBE_VIDEO_ID', index=18, number=18, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='YOUTUBE_VERTICAL_CHANNEL_DEPRECATED', index=19, number=19, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='YOUTUBE_DEMOGRAPHIC_CHANNEL_DEPRECATED', index=20, number=20, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='YOUTUBE_URL_UNSUPPORTED', index=21, number=21, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CANNOT_EXCLUDE_CRITERIA_TYPE', index=22, number=22, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CANNOT_ADD_CRITERIA_TYPE', index=23, number=23, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CANNOT_EXCLUDE_SIMILAR_USER_LIST', index=24, number=26, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CANNOT_ADD_CLOSED_USER_LIST', index=25, number=27, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CANNOT_ADD_DISPLAY_ONLY_LISTS_TO_SEARCH_ONLY_CAMPAIGNS', index=26, number=28, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CANNOT_ADD_DISPLAY_ONLY_LISTS_TO_SEARCH_CAMPAIGNS', index=27, number=29, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CANNOT_ADD_DISPLAY_ONLY_LISTS_TO_SHOPPING_CAMPAIGNS', index=28, number=30, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CANNOT_ADD_USER_INTERESTS_TO_SEARCH_CAMPAIGNS', index=29, number=31, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CANNOT_SET_BIDS_ON_CRITERION_TYPE_IN_SEARCH_CAMPAIGNS', index=30, number=32, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CANNOT_ADD_URLS_TO_CRITERION_TYPE_FOR_CAMPAIGN_TYPE', index=31, number=33, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_CUSTOM_AFFINITY', index=32, number=96, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_CUSTOM_INTENT', index=33, number=97, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_IP_ADDRESS', index=34, number=34, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_IP_FORMAT', index=35, number=35, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_MOBILE_APP', index=36, number=36, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_MOBILE_APP_CATEGORY', index=37, number=37, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_CRITERION_ID', index=38, number=38, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CANNOT_TARGET_CRITERION', index=39, number=39, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CANNOT_TARGET_OBSOLETE_CRITERION', index=40, number=40, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CRITERION_ID_AND_TYPE_MISMATCH', index=41, number=41, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_PROXIMITY_RADIUS', index=42, number=42, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_PROXIMITY_RADIUS_UNITS', index=43, number=43, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_STREETADDRESS_LENGTH', index=44, number=44, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_CITYNAME_LENGTH', index=45, number=45, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_REGIONCODE_LENGTH', index=46, number=46, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_REGIONNAME_LENGTH', index=47, number=47, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_POSTALCODE_LENGTH', index=48, number=48, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_COUNTRY_CODE', index=49, number=49, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_LATITUDE', index=50, number=50, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_LONGITUDE', index=51, number=51, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='PROXIMITY_GEOPOINT_AND_ADDRESS_BOTH_CANNOT_BE_NULL', index=52, number=52, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_PROXIMITY_ADDRESS', index=53, number=53, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_USER_DOMAIN_NAME', index=54, number=54, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CRITERION_PARAMETER_TOO_LONG', index=55, number=55, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='AD_SCHEDULE_TIME_INTERVALS_OVERLAP', index=56, number=56, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='AD_SCHEDULE_INTERVAL_CANNOT_SPAN_MULTIPLE_DAYS', index=57, number=57, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='AD_SCHEDULE_INVALID_TIME_INTERVAL', index=58, number=58, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='AD_SCHEDULE_EXCEEDED_INTERVALS_PER_DAY_LIMIT', index=59, number=59, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='AD_SCHEDULE_CRITERION_ID_MISMATCHING_FIELDS', index=60, number=60, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CANNOT_BID_MODIFY_CRITERION_TYPE', index=61, number=61, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CANNOT_BID_MODIFY_CRITERION_CAMPAIGN_OPTED_OUT', index=62, number=62, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CANNOT_BID_MODIFY_NEGATIVE_CRITERION', index=63, number=63, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='BID_MODIFIER_ALREADY_EXISTS', index=64, number=64, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='FEED_ID_NOT_ALLOWED', index=65, number=65, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='ACCOUNT_INELIGIBLE_FOR_CRITERIA_TYPE', index=66, number=66, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CRITERIA_TYPE_INVALID_FOR_BIDDING_STRATEGY', index=67, number=67, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CANNOT_EXCLUDE_CRITERION', index=68, number=68, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CANNOT_REMOVE_CRITERION', index=69, number=69, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_PRODUCT_BIDDING_CATEGORY', index=70, number=76, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='MISSING_SHOPPING_SETTING', index=71, number=77, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_MATCHING_FUNCTION', index=72, number=78, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='LOCATION_FILTER_NOT_ALLOWED', index=73, number=79, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_FEED_FOR_LOCATION_FILTER', index=74, number=98, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='LOCATION_FILTER_INVALID', index=75, number=80, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CANNOT_ATTACH_CRITERIA_AT_CAMPAIGN_AND_ADGROUP', index=76, number=81, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='HOTEL_LENGTH_OF_STAY_OVERLAPS_WITH_EXISTING_CRITERION', index=77, number=82, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='HOTEL_ADVANCE_BOOKING_WINDOW_OVERLAPS_WITH_EXISTING_CRITERION', index=78, number=83, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='FIELD_INCOMPATIBLE_WITH_NEGATIVE_TARGETING', index=79, number=84, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_WEBPAGE_CONDITION', index=80, number=85, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_WEBPAGE_CONDITION_URL', index=81, number=86, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='WEBPAGE_CONDITION_URL_CANNOT_BE_EMPTY', index=82, number=87, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='WEBPAGE_CONDITION_URL_UNSUPPORTED_PROTOCOL', index=83, number=88, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='WEBPAGE_CONDITION_URL_CANNOT_BE_IP_ADDRESS', index=84, number=89, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='WEBPAGE_CONDITION_URL_DOMAIN_NOT_CONSISTENT_WITH_CAMPAIGN_SETTING', index=85, number=90, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='WEBPAGE_CONDITION_URL_CANNOT_BE_PUBLIC_SUFFIX', index=86, number=91, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='WEBPAGE_CONDITION_URL_INVALID_PUBLIC_SUFFIX', index=87, number=92, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='WEBPAGE_CONDITION_URL_VALUE_TRACK_VALUE_NOT_SUPPORTED', index=88, number=93, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='WEBPAGE_CRITERION_URL_EQUALS_CAN_HAVE_ONLY_ONE_CONDITION', index=89, number=94, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='WEBPAGE_CRITERION_NOT_SUPPORTED_ON_NON_DSA_AD_GROUP', index=90, number=95, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CANNOT_TARGET_USER_LIST_FOR_SMART_DISPLAY_CAMPAIGNS', index=91, number=99, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='LISTING_SCOPE_TOO_MANY_DIMENSION_TYPES', index=92, number=100, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='LISTING_SCOPE_TOO_MANY_IN_OPERATORS', index=93, number=101, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='LISTING_SCOPE_IN_OPERATOR_NOT_SUPPORTED', index=94, number=102, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='DUPLICATE_LISTING_DIMENSION_TYPE', index=95, number=103, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='DUPLICATE_LISTING_DIMENSION_VALUE', index=96, number=104, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CANNOT_SET_BIDS_ON_LISTING_GROUP_SUBDIVISION', index=97, number=105, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_LISTING_GROUP_HIERARCHY', index=98, number=106, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='LISTING_GROUP_UNIT_CANNOT_HAVE_CHILDREN', index=99, number=107, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='LISTING_GROUP_SUBDIVISION_REQUIRES_OTHERS_CASE', index=100, number=108, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='LISTING_GROUP_REQUIRES_SAME_DIMENSION_TYPE_AS_SIBLINGS', index=101, number=109, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='LISTING_GROUP_ALREADY_EXISTS', index=102, number=110, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='LISTING_GROUP_DOES_NOT_EXIST', index=103, number=111, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='LISTING_GROUP_CANNOT_BE_REMOVED', index=104, number=112, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_LISTING_GROUP_TYPE', index=105, number=113, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='LISTING_GROUP_ADD_MAY_ONLY_USE_TEMP_ID', index=106, number=114, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='LISTING_SCOPE_TOO_LONG', index=107, number=115, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='LISTING_SCOPE_TOO_MANY_DIMENSIONS', index=108, number=116, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='LISTING_GROUP_TOO_LONG', index=109, number=117, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='LISTING_GROUP_TREE_TOO_DEEP', index=110, number=118, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_LISTING_DIMENSION', index=111, number=119, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_LISTING_DIMENSION_TYPE', index=112, number=120, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=148, + serialized_end=4495, +) +_sym_db.RegisterEnumDescriptor(_CRITERIONERRORENUM_CRITERIONERROR) + + +_CRITERIONERRORENUM = _descriptor.Descriptor( + name='CriterionErrorEnum', + full_name='google.ads.googleads.v4.errors.CriterionErrorEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _CRITERIONERRORENUM_CRITERIONERROR, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=125, + serialized_end=4495, +) + +_CRITERIONERRORENUM_CRITERIONERROR.containing_type = _CRITERIONERRORENUM +DESCRIPTOR.message_types_by_name['CriterionErrorEnum'] = _CRITERIONERRORENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +CriterionErrorEnum = _reflection.GeneratedProtocolMessageType('CriterionErrorEnum', (_message.Message,), dict( + DESCRIPTOR = _CRITERIONERRORENUM, + __module__ = 'google.ads.googleads_v4.proto.errors.criterion_error_pb2' + , + __doc__ = """Container for enum describing possible criterion errors. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.errors.CriterionErrorEnum) + )) +_sym_db.RegisterMessage(CriterionErrorEnum) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/errors/header_error_pb2_grpc.py b/google/ads/google_ads/v4/proto/errors/criterion_error_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/errors/header_error_pb2_grpc.py rename to google/ads/google_ads/v4/proto/errors/criterion_error_pb2_grpc.py diff --git a/google/ads/google_ads/v4/proto/errors/currency_code_error_pb2.py b/google/ads/google_ads/v4/proto/errors/currency_code_error_pb2.py new file mode 100644 index 000000000..e0644b3c5 --- /dev/null +++ b/google/ads/google_ads/v4/proto/errors/currency_code_error_pb2.py @@ -0,0 +1,97 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/errors/currency_code_error.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/errors/currency_code_error.proto', + package='google.ads.googleads.v4.errors', + syntax='proto3', + serialized_options=_b('\n\"com.google.ads.googleads.v4.errorsB\026CurrencyCodeErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V4.Errors\312\002\036Google\\Ads\\GoogleAds\\V4\\Errors\352\002\"Google::Ads::GoogleAds::V4::Errors'), + serialized_pb=_b('\n>google/ads/googleads_v4/proto/errors/currency_code_error.proto\x12\x1egoogle.ads.googleads.v4.errors\x1a\x1cgoogle/api/annotations.proto\"[\n\x15\x43urrencyCodeErrorEnum\"B\n\x11\x43urrencyCodeError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0f\n\x0bUNSUPPORTED\x10\x02\x42\xf1\x01\n\"com.google.ads.googleads.v4.errorsB\x16\x43urrencyCodeErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V4.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V4\\Errors\xea\x02\"Google::Ads::GoogleAds::V4::Errorsb\x06proto3') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_CURRENCYCODEERRORENUM_CURRENCYCODEERROR = _descriptor.EnumDescriptor( + name='CurrencyCodeError', + full_name='google.ads.googleads.v4.errors.CurrencyCodeErrorEnum.CurrencyCodeError', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='UNSPECIFIED', index=0, number=0, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='UNKNOWN', index=1, number=1, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='UNSUPPORTED', index=2, number=2, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=153, + serialized_end=219, +) +_sym_db.RegisterEnumDescriptor(_CURRENCYCODEERRORENUM_CURRENCYCODEERROR) + + +_CURRENCYCODEERRORENUM = _descriptor.Descriptor( + name='CurrencyCodeErrorEnum', + full_name='google.ads.googleads.v4.errors.CurrencyCodeErrorEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _CURRENCYCODEERRORENUM_CURRENCYCODEERROR, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=128, + serialized_end=219, +) + +_CURRENCYCODEERRORENUM_CURRENCYCODEERROR.containing_type = _CURRENCYCODEERRORENUM +DESCRIPTOR.message_types_by_name['CurrencyCodeErrorEnum'] = _CURRENCYCODEERRORENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +CurrencyCodeErrorEnum = _reflection.GeneratedProtocolMessageType('CurrencyCodeErrorEnum', (_message.Message,), dict( + DESCRIPTOR = _CURRENCYCODEERRORENUM, + __module__ = 'google.ads.googleads_v4.proto.errors.currency_code_error_pb2' + , + __doc__ = """Container for enum describing possible currency code errors. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.errors.CurrencyCodeErrorEnum) + )) +_sym_db.RegisterMessage(CurrencyCodeErrorEnum) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/errors/id_error_pb2_grpc.py b/google/ads/google_ads/v4/proto/errors/currency_code_error_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/errors/id_error_pb2_grpc.py rename to google/ads/google_ads/v4/proto/errors/currency_code_error_pb2_grpc.py diff --git a/google/ads/google_ads/v1/proto/errors/custom_interest_error_pb2.py b/google/ads/google_ads/v4/proto/errors/custom_interest_error_pb2.py similarity index 78% rename from google/ads/google_ads/v1/proto/errors/custom_interest_error_pb2.py rename to google/ads/google_ads/v4/proto/errors/custom_interest_error_pb2.py index 56a9d5164..4d182238b 100644 --- a/google/ads/google_ads/v1/proto/errors/custom_interest_error_pb2.py +++ b/google/ads/google_ads/v4/proto/errors/custom_interest_error_pb2.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/errors/custom_interest_error.proto +# source: google/ads/googleads_v4/proto/errors/custom_interest_error.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) @@ -17,11 +17,11 @@ DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/errors/custom_interest_error.proto', - package='google.ads.googleads.v1.errors', + name='google/ads/googleads_v4/proto/errors/custom_interest_error.proto', + package='google.ads.googleads.v4.errors', syntax='proto3', - serialized_options=_b('\n\"com.google.ads.googleads.v1.errorsB\030CustomInterestErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V1.Errors\312\002\036Google\\Ads\\GoogleAds\\V1\\Errors\352\002\"Google::Ads::GoogleAds::V1::Errors'), - serialized_pb=_b('\n@google/ads/googleads_v1/proto/errors/custom_interest_error.proto\x12\x1egoogle.ads.googleads.v1.errors\x1a\x1cgoogle/api/annotations.proto\"\xd9\x02\n\x17\x43ustomInterestErrorEnum\"\xbd\x02\n\x13\x43ustomInterestError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x15\n\x11NAME_ALREADY_USED\x10\x02\x12\x46\nBCUSTOM_INTEREST_MEMBER_ID_AND_TYPE_PARAMETER_NOT_PRESENT_IN_REMOVE\x10\x03\x12 \n\x1cTYPE_AND_PARAMETER_NOT_FOUND\x10\x04\x12&\n\"TYPE_AND_PARAMETER_ALREADY_EXISTED\x10\x05\x12\'\n#INVALID_CUSTOM_INTEREST_MEMBER_TYPE\x10\x06\x12\x1e\n\x1a\x43\x41NNOT_REMOVE_WHILE_IN_USE\x10\x07\x12\x16\n\x12\x43\x41NNOT_CHANGE_TYPE\x10\x08\x42\xf3\x01\n\"com.google.ads.googleads.v1.errorsB\x18\x43ustomInterestErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V1.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V1\\Errors\xea\x02\"Google::Ads::GoogleAds::V1::Errorsb\x06proto3') + serialized_options=_b('\n\"com.google.ads.googleads.v4.errorsB\030CustomInterestErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V4.Errors\312\002\036Google\\Ads\\GoogleAds\\V4\\Errors\352\002\"Google::Ads::GoogleAds::V4::Errors'), + serialized_pb=_b('\n@google/ads/googleads_v4/proto/errors/custom_interest_error.proto\x12\x1egoogle.ads.googleads.v4.errors\x1a\x1cgoogle/api/annotations.proto\"\xd9\x02\n\x17\x43ustomInterestErrorEnum\"\xbd\x02\n\x13\x43ustomInterestError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x15\n\x11NAME_ALREADY_USED\x10\x02\x12\x46\nBCUSTOM_INTEREST_MEMBER_ID_AND_TYPE_PARAMETER_NOT_PRESENT_IN_REMOVE\x10\x03\x12 \n\x1cTYPE_AND_PARAMETER_NOT_FOUND\x10\x04\x12&\n\"TYPE_AND_PARAMETER_ALREADY_EXISTED\x10\x05\x12\'\n#INVALID_CUSTOM_INTEREST_MEMBER_TYPE\x10\x06\x12\x1e\n\x1a\x43\x41NNOT_REMOVE_WHILE_IN_USE\x10\x07\x12\x16\n\x12\x43\x41NNOT_CHANGE_TYPE\x10\x08\x42\xf3\x01\n\"com.google.ads.googleads.v4.errorsB\x18\x43ustomInterestErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V4.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V4\\Errors\xea\x02\"Google::Ads::GoogleAds::V4::Errorsb\x06proto3') , dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) @@ -29,7 +29,7 @@ _CUSTOMINTERESTERRORENUM_CUSTOMINTERESTERROR = _descriptor.EnumDescriptor( name='CustomInterestError', - full_name='google.ads.googleads.v1.errors.CustomInterestErrorEnum.CustomInterestError', + full_name='google.ads.googleads.v4.errors.CustomInterestErrorEnum.CustomInterestError', filename=None, file=DESCRIPTOR, values=[ @@ -80,7 +80,7 @@ _CUSTOMINTERESTERRORENUM = _descriptor.Descriptor( name='CustomInterestErrorEnum', - full_name='google.ads.googleads.v1.errors.CustomInterestErrorEnum', + full_name='google.ads.googleads.v4.errors.CustomInterestErrorEnum', filename=None, file=DESCRIPTOR, containing_type=None, @@ -108,11 +108,11 @@ CustomInterestErrorEnum = _reflection.GeneratedProtocolMessageType('CustomInterestErrorEnum', (_message.Message,), dict( DESCRIPTOR = _CUSTOMINTERESTERRORENUM, - __module__ = 'google.ads.googleads_v1.proto.errors.custom_interest_error_pb2' + __module__ = 'google.ads.googleads_v4.proto.errors.custom_interest_error_pb2' , __doc__ = """Container for enum describing possible custom interest errors. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.errors.CustomInterestErrorEnum) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.errors.CustomInterestErrorEnum) )) _sym_db.RegisterMessage(CustomInterestErrorEnum) diff --git a/google/ads/google_ads/v1/proto/errors/image_error_pb2_grpc.py b/google/ads/google_ads/v4/proto/errors/custom_interest_error_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/errors/image_error_pb2_grpc.py rename to google/ads/google_ads/v4/proto/errors/custom_interest_error_pb2_grpc.py diff --git a/google/ads/google_ads/v4/proto/errors/customer_client_link_error_pb2.py b/google/ads/google_ads/v4/proto/errors/customer_client_link_error_pb2.py new file mode 100644 index 000000000..8b823a940 --- /dev/null +++ b/google/ads/google_ads/v4/proto/errors/customer_client_link_error_pb2.py @@ -0,0 +1,125 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/errors/customer_client_link_error.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/errors/customer_client_link_error.proto', + package='google.ads.googleads.v4.errors', + syntax='proto3', + serialized_options=_b('\n\"com.google.ads.googleads.v4.errorsB\034CustomerClientLinkErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V4.Errors\312\002\036Google\\Ads\\GoogleAds\\V4\\Errors\352\002\"Google::Ads::GoogleAds::V4::Errors'), + serialized_pb=_b('\nEgoogle/ads/googleads_v4/proto/errors/customer_client_link_error.proto\x12\x1egoogle.ads.googleads.v4.errors\x1a\x1cgoogle/api/annotations.proto\"\x8f\x03\n\x1b\x43ustomerClientLinkErrorEnum\"\xef\x02\n\x17\x43ustomerClientLinkError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12*\n&CLIENT_ALREADY_INVITED_BY_THIS_MANAGER\x10\x02\x12\'\n#CLIENT_ALREADY_MANAGED_IN_HIERARCHY\x10\x03\x12\x1b\n\x17\x43YCLIC_LINK_NOT_ALLOWED\x10\x04\x12\"\n\x1e\x43USTOMER_HAS_TOO_MANY_ACCOUNTS\x10\x05\x12#\n\x1f\x43LIENT_HAS_TOO_MANY_INVITATIONS\x10\x06\x12*\n&CANNOT_HIDE_OR_UNHIDE_MANAGER_ACCOUNTS\x10\x07\x12-\n)CUSTOMER_HAS_TOO_MANY_ACCOUNTS_AT_MANAGER\x10\x08\x12 \n\x1c\x43LIENT_HAS_TOO_MANY_MANAGERS\x10\tB\xf7\x01\n\"com.google.ads.googleads.v4.errorsB\x1c\x43ustomerClientLinkErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V4.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V4\\Errors\xea\x02\"Google::Ads::GoogleAds::V4::Errorsb\x06proto3') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_CUSTOMERCLIENTLINKERRORENUM_CUSTOMERCLIENTLINKERROR = _descriptor.EnumDescriptor( + name='CustomerClientLinkError', + full_name='google.ads.googleads.v4.errors.CustomerClientLinkErrorEnum.CustomerClientLinkError', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='UNSPECIFIED', index=0, number=0, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='UNKNOWN', index=1, number=1, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CLIENT_ALREADY_INVITED_BY_THIS_MANAGER', index=2, number=2, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CLIENT_ALREADY_MANAGED_IN_HIERARCHY', index=3, number=3, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CYCLIC_LINK_NOT_ALLOWED', index=4, number=4, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CUSTOMER_HAS_TOO_MANY_ACCOUNTS', index=5, number=5, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CLIENT_HAS_TOO_MANY_INVITATIONS', index=6, number=6, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CANNOT_HIDE_OR_UNHIDE_MANAGER_ACCOUNTS', index=7, number=7, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CUSTOMER_HAS_TOO_MANY_ACCOUNTS_AT_MANAGER', index=8, number=8, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CLIENT_HAS_TOO_MANY_MANAGERS', index=9, number=9, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=168, + serialized_end=535, +) +_sym_db.RegisterEnumDescriptor(_CUSTOMERCLIENTLINKERRORENUM_CUSTOMERCLIENTLINKERROR) + + +_CUSTOMERCLIENTLINKERRORENUM = _descriptor.Descriptor( + name='CustomerClientLinkErrorEnum', + full_name='google.ads.googleads.v4.errors.CustomerClientLinkErrorEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _CUSTOMERCLIENTLINKERRORENUM_CUSTOMERCLIENTLINKERROR, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=136, + serialized_end=535, +) + +_CUSTOMERCLIENTLINKERRORENUM_CUSTOMERCLIENTLINKERROR.containing_type = _CUSTOMERCLIENTLINKERRORENUM +DESCRIPTOR.message_types_by_name['CustomerClientLinkErrorEnum'] = _CUSTOMERCLIENTLINKERRORENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +CustomerClientLinkErrorEnum = _reflection.GeneratedProtocolMessageType('CustomerClientLinkErrorEnum', (_message.Message,), dict( + DESCRIPTOR = _CUSTOMERCLIENTLINKERRORENUM, + __module__ = 'google.ads.googleads_v4.proto.errors.customer_client_link_error_pb2' + , + __doc__ = """Container for enum describing possible CustomeClientLink errors. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.errors.CustomerClientLinkErrorEnum) + )) +_sym_db.RegisterMessage(CustomerClientLinkErrorEnum) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/errors/internal_error_pb2_grpc.py b/google/ads/google_ads/v4/proto/errors/customer_client_link_error_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/errors/internal_error_pb2_grpc.py rename to google/ads/google_ads/v4/proto/errors/customer_client_link_error_pb2_grpc.py diff --git a/google/ads/google_ads/v4/proto/errors/customer_error_pb2.py b/google/ads/google_ads/v4/proto/errors/customer_error_pb2.py new file mode 100644 index 000000000..081d85ff3 --- /dev/null +++ b/google/ads/google_ads/v4/proto/errors/customer_error_pb2.py @@ -0,0 +1,101 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/errors/customer_error.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/errors/customer_error.proto', + package='google.ads.googleads.v4.errors', + syntax='proto3', + serialized_options=_b('\n\"com.google.ads.googleads.v4.errorsB\022CustomerErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V4.Errors\312\002\036Google\\Ads\\GoogleAds\\V4\\Errors\352\002\"Google::Ads::GoogleAds::V4::Errors'), + serialized_pb=_b('\n9google/ads/googleads_v4/proto/errors/customer_error.proto\x12\x1egoogle.ads.googleads.v4.errors\x1a\x1cgoogle/api/annotations.proto\"x\n\x11\x43ustomerErrorEnum\"c\n\rCustomerError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x1c\n\x18STATUS_CHANGE_DISALLOWED\x10\x02\x12\x16\n\x12\x41\x43\x43OUNT_NOT_SET_UP\x10\x03\x42\xed\x01\n\"com.google.ads.googleads.v4.errorsB\x12\x43ustomerErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V4.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V4\\Errors\xea\x02\"Google::Ads::GoogleAds::V4::Errorsb\x06proto3') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_CUSTOMERERRORENUM_CUSTOMERERROR = _descriptor.EnumDescriptor( + name='CustomerError', + full_name='google.ads.googleads.v4.errors.CustomerErrorEnum.CustomerError', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='UNSPECIFIED', index=0, number=0, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='UNKNOWN', index=1, number=1, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='STATUS_CHANGE_DISALLOWED', index=2, number=2, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='ACCOUNT_NOT_SET_UP', index=3, number=3, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=144, + serialized_end=243, +) +_sym_db.RegisterEnumDescriptor(_CUSTOMERERRORENUM_CUSTOMERERROR) + + +_CUSTOMERERRORENUM = _descriptor.Descriptor( + name='CustomerErrorEnum', + full_name='google.ads.googleads.v4.errors.CustomerErrorEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _CUSTOMERERRORENUM_CUSTOMERERROR, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=123, + serialized_end=243, +) + +_CUSTOMERERRORENUM_CUSTOMERERROR.containing_type = _CUSTOMERERRORENUM +DESCRIPTOR.message_types_by_name['CustomerErrorEnum'] = _CUSTOMERERRORENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +CustomerErrorEnum = _reflection.GeneratedProtocolMessageType('CustomerErrorEnum', (_message.Message,), dict( + DESCRIPTOR = _CUSTOMERERRORENUM, + __module__ = 'google.ads.googleads_v4.proto.errors.customer_error_pb2' + , + __doc__ = """Container for enum describing possible customer errors. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.errors.CustomerErrorEnum) + )) +_sym_db.RegisterMessage(CustomerErrorEnum) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/errors/keyword_plan_ad_group_error_pb2_grpc.py b/google/ads/google_ads/v4/proto/errors/customer_error_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/errors/keyword_plan_ad_group_error_pb2_grpc.py rename to google/ads/google_ads/v4/proto/errors/customer_error_pb2_grpc.py diff --git a/google/ads/google_ads/v1/proto/errors/customer_feed_error_pb2.py b/google/ads/google_ads/v4/proto/errors/customer_feed_error_pb2.py similarity index 78% rename from google/ads/google_ads/v1/proto/errors/customer_feed_error_pb2.py rename to google/ads/google_ads/v4/proto/errors/customer_feed_error_pb2.py index 334188a13..1a0d4e352 100644 --- a/google/ads/google_ads/v1/proto/errors/customer_feed_error_pb2.py +++ b/google/ads/google_ads/v4/proto/errors/customer_feed_error_pb2.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/errors/customer_feed_error.proto +# source: google/ads/googleads_v4/proto/errors/customer_feed_error.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) @@ -17,11 +17,11 @@ DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/errors/customer_feed_error.proto', - package='google.ads.googleads.v1.errors', + name='google/ads/googleads_v4/proto/errors/customer_feed_error.proto', + package='google.ads.googleads.v4.errors', syntax='proto3', - serialized_options=_b('\n\"com.google.ads.googleads.v1.errorsB\026CustomerFeedErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V1.Errors\312\002\036Google\\Ads\\GoogleAds\\V1\\Errors\352\002\"Google::Ads::GoogleAds::V1::Errors'), - serialized_pb=_b('\n>google/ads/googleads_v1/proto/errors/customer_feed_error.proto\x12\x1egoogle.ads.googleads.v1.errors\x1a\x1cgoogle/api/annotations.proto\"\xf7\x02\n\x15\x43ustomerFeedErrorEnum\"\xdd\x02\n\x11\x43ustomerFeedError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12,\n(FEED_ALREADY_EXISTS_FOR_PLACEHOLDER_TYPE\x10\x02\x12\"\n\x1e\x43\x41NNOT_CREATE_FOR_REMOVED_FEED\x10\x03\x12\x30\n,CANNOT_CREATE_ALREADY_EXISTING_CUSTOMER_FEED\x10\x04\x12\'\n#CANNOT_MODIFY_REMOVED_CUSTOMER_FEED\x10\x05\x12\x1c\n\x18INVALID_PLACEHOLDER_TYPE\x10\x06\x12,\n(MISSING_FEEDMAPPING_FOR_PLACEHOLDER_TYPE\x10\x07\x12\x31\n-PLACEHOLDER_TYPE_NOT_ALLOWED_ON_CUSTOMER_FEED\x10\x08\x42\xf1\x01\n\"com.google.ads.googleads.v1.errorsB\x16\x43ustomerFeedErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V1.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V1\\Errors\xea\x02\"Google::Ads::GoogleAds::V1::Errorsb\x06proto3') + serialized_options=_b('\n\"com.google.ads.googleads.v4.errorsB\026CustomerFeedErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V4.Errors\312\002\036Google\\Ads\\GoogleAds\\V4\\Errors\352\002\"Google::Ads::GoogleAds::V4::Errors'), + serialized_pb=_b('\n>google/ads/googleads_v4/proto/errors/customer_feed_error.proto\x12\x1egoogle.ads.googleads.v4.errors\x1a\x1cgoogle/api/annotations.proto\"\xf7\x02\n\x15\x43ustomerFeedErrorEnum\"\xdd\x02\n\x11\x43ustomerFeedError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12,\n(FEED_ALREADY_EXISTS_FOR_PLACEHOLDER_TYPE\x10\x02\x12\"\n\x1e\x43\x41NNOT_CREATE_FOR_REMOVED_FEED\x10\x03\x12\x30\n,CANNOT_CREATE_ALREADY_EXISTING_CUSTOMER_FEED\x10\x04\x12\'\n#CANNOT_MODIFY_REMOVED_CUSTOMER_FEED\x10\x05\x12\x1c\n\x18INVALID_PLACEHOLDER_TYPE\x10\x06\x12,\n(MISSING_FEEDMAPPING_FOR_PLACEHOLDER_TYPE\x10\x07\x12\x31\n-PLACEHOLDER_TYPE_NOT_ALLOWED_ON_CUSTOMER_FEED\x10\x08\x42\xf1\x01\n\"com.google.ads.googleads.v4.errorsB\x16\x43ustomerFeedErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V4.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V4\\Errors\xea\x02\"Google::Ads::GoogleAds::V4::Errorsb\x06proto3') , dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) @@ -29,7 +29,7 @@ _CUSTOMERFEEDERRORENUM_CUSTOMERFEEDERROR = _descriptor.EnumDescriptor( name='CustomerFeedError', - full_name='google.ads.googleads.v1.errors.CustomerFeedErrorEnum.CustomerFeedError', + full_name='google.ads.googleads.v4.errors.CustomerFeedErrorEnum.CustomerFeedError', filename=None, file=DESCRIPTOR, values=[ @@ -80,7 +80,7 @@ _CUSTOMERFEEDERRORENUM = _descriptor.Descriptor( name='CustomerFeedErrorEnum', - full_name='google.ads.googleads.v1.errors.CustomerFeedErrorEnum', + full_name='google.ads.googleads.v4.errors.CustomerFeedErrorEnum', filename=None, file=DESCRIPTOR, containing_type=None, @@ -108,11 +108,11 @@ CustomerFeedErrorEnum = _reflection.GeneratedProtocolMessageType('CustomerFeedErrorEnum', (_message.Message,), dict( DESCRIPTOR = _CUSTOMERFEEDERRORENUM, - __module__ = 'google.ads.googleads_v1.proto.errors.customer_feed_error_pb2' + __module__ = 'google.ads.googleads_v4.proto.errors.customer_feed_error_pb2' , __doc__ = """Container for enum describing possible customer feed errors. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.errors.CustomerFeedErrorEnum) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.errors.CustomerFeedErrorEnum) )) _sym_db.RegisterMessage(CustomerFeedErrorEnum) diff --git a/google/ads/google_ads/v1/proto/errors/keyword_plan_campaign_error_pb2_grpc.py b/google/ads/google_ads/v4/proto/errors/customer_feed_error_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/errors/keyword_plan_campaign_error_pb2_grpc.py rename to google/ads/google_ads/v4/proto/errors/customer_feed_error_pb2_grpc.py diff --git a/google/ads/google_ads/v4/proto/errors/customer_manager_link_error_pb2.py b/google/ads/google_ads/v4/proto/errors/customer_manager_link_error_pb2.py new file mode 100644 index 000000000..ffbbf525a --- /dev/null +++ b/google/ads/google_ads/v4/proto/errors/customer_manager_link_error_pb2.py @@ -0,0 +1,129 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/errors/customer_manager_link_error.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/errors/customer_manager_link_error.proto', + package='google.ads.googleads.v4.errors', + syntax='proto3', + serialized_options=_b('\n\"com.google.ads.googleads.v4.errorsB\035CustomerManagerLinkErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V4.Errors\312\002\036Google\\Ads\\GoogleAds\\V4\\Errors\352\002\"Google::Ads::GoogleAds::V4::Errors'), + serialized_pb=_b('\nFgoogle/ads/googleads_v4/proto/errors/customer_manager_link_error.proto\x12\x1egoogle.ads.googleads.v4.errors\x1a\x1cgoogle/api/annotations.proto\"\xd0\x03\n\x1c\x43ustomerManagerLinkErrorEnum\"\xaf\x03\n\x18\x43ustomerManagerLinkError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x15\n\x11NO_PENDING_INVITE\x10\x02\x12\'\n#SAME_CLIENT_MORE_THAN_ONCE_PER_CALL\x10\x03\x12-\n)MANAGER_HAS_MAX_NUMBER_OF_LINKED_ACCOUNTS\x10\x04\x12-\n)CANNOT_UNLINK_ACCOUNT_WITHOUT_ACTIVE_USER\x10\x05\x12+\n\'CANNOT_REMOVE_LAST_CLIENT_ACCOUNT_OWNER\x10\x06\x12+\n\'CANNOT_CHANGE_ROLE_BY_NON_ACCOUNT_OWNER\x10\x07\x12\x32\n.CANNOT_CHANGE_ROLE_FOR_NON_ACTIVE_LINK_ACCOUNT\x10\x08\x12\x19\n\x15\x44UPLICATE_CHILD_FOUND\x10\t\x12.\n*TEST_ACCOUNT_LINKS_TOO_MANY_CHILD_ACCOUNTS\x10\nB\xf8\x01\n\"com.google.ads.googleads.v4.errorsB\x1d\x43ustomerManagerLinkErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V4.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V4\\Errors\xea\x02\"Google::Ads::GoogleAds::V4::Errorsb\x06proto3') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_CUSTOMERMANAGERLINKERRORENUM_CUSTOMERMANAGERLINKERROR = _descriptor.EnumDescriptor( + name='CustomerManagerLinkError', + full_name='google.ads.googleads.v4.errors.CustomerManagerLinkErrorEnum.CustomerManagerLinkError', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='UNSPECIFIED', index=0, number=0, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='UNKNOWN', index=1, number=1, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='NO_PENDING_INVITE', index=2, number=2, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='SAME_CLIENT_MORE_THAN_ONCE_PER_CALL', index=3, number=3, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='MANAGER_HAS_MAX_NUMBER_OF_LINKED_ACCOUNTS', index=4, number=4, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CANNOT_UNLINK_ACCOUNT_WITHOUT_ACTIVE_USER', index=5, number=5, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CANNOT_REMOVE_LAST_CLIENT_ACCOUNT_OWNER', index=6, number=6, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CANNOT_CHANGE_ROLE_BY_NON_ACCOUNT_OWNER', index=7, number=7, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CANNOT_CHANGE_ROLE_FOR_NON_ACTIVE_LINK_ACCOUNT', index=8, number=8, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='DUPLICATE_CHILD_FOUND', index=9, number=9, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='TEST_ACCOUNT_LINKS_TOO_MANY_CHILD_ACCOUNTS', index=10, number=10, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=170, + serialized_end=601, +) +_sym_db.RegisterEnumDescriptor(_CUSTOMERMANAGERLINKERRORENUM_CUSTOMERMANAGERLINKERROR) + + +_CUSTOMERMANAGERLINKERRORENUM = _descriptor.Descriptor( + name='CustomerManagerLinkErrorEnum', + full_name='google.ads.googleads.v4.errors.CustomerManagerLinkErrorEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _CUSTOMERMANAGERLINKERRORENUM_CUSTOMERMANAGERLINKERROR, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=137, + serialized_end=601, +) + +_CUSTOMERMANAGERLINKERRORENUM_CUSTOMERMANAGERLINKERROR.containing_type = _CUSTOMERMANAGERLINKERRORENUM +DESCRIPTOR.message_types_by_name['CustomerManagerLinkErrorEnum'] = _CUSTOMERMANAGERLINKERRORENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +CustomerManagerLinkErrorEnum = _reflection.GeneratedProtocolMessageType('CustomerManagerLinkErrorEnum', (_message.Message,), dict( + DESCRIPTOR = _CUSTOMERMANAGERLINKERRORENUM, + __module__ = 'google.ads.googleads_v4.proto.errors.customer_manager_link_error_pb2' + , + __doc__ = """Container for enum describing possible CustomerManagerLink errors. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.errors.CustomerManagerLinkErrorEnum) + )) +_sym_db.RegisterMessage(CustomerManagerLinkErrorEnum) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/errors/keyword_plan_error_pb2_grpc.py b/google/ads/google_ads/v4/proto/errors/customer_manager_link_error_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/errors/keyword_plan_error_pb2_grpc.py rename to google/ads/google_ads/v4/proto/errors/customer_manager_link_error_pb2_grpc.py diff --git a/google/ads/google_ads/v4/proto/errors/database_error_pb2.py b/google/ads/google_ads/v4/proto/errors/database_error_pb2.py new file mode 100644 index 000000000..1d3da5fd1 --- /dev/null +++ b/google/ads/google_ads/v4/proto/errors/database_error_pb2.py @@ -0,0 +1,105 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/errors/database_error.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/errors/database_error.proto', + package='google.ads.googleads.v4.errors', + syntax='proto3', + serialized_options=_b('\n\"com.google.ads.googleads.v4.errorsB\022DatabaseErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V4.Errors\312\002\036Google\\Ads\\GoogleAds\\V4\\Errors\352\002\"Google::Ads::GoogleAds::V4::Errors'), + serialized_pb=_b('\n9google/ads/googleads_v4/proto/errors/database_error.proto\x12\x1egoogle.ads.googleads.v4.errors\x1a\x1cgoogle/api/annotations.proto\"\x96\x01\n\x11\x44\x61tabaseErrorEnum\"\x80\x01\n\rDatabaseError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x1b\n\x17\x43ONCURRENT_MODIFICATION\x10\x02\x12\x1d\n\x19\x44\x41TA_CONSTRAINT_VIOLATION\x10\x03\x12\x15\n\x11REQUEST_TOO_LARGE\x10\x04\x42\xed\x01\n\"com.google.ads.googleads.v4.errorsB\x12\x44\x61tabaseErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V4.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V4\\Errors\xea\x02\"Google::Ads::GoogleAds::V4::Errorsb\x06proto3') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_DATABASEERRORENUM_DATABASEERROR = _descriptor.EnumDescriptor( + name='DatabaseError', + full_name='google.ads.googleads.v4.errors.DatabaseErrorEnum.DatabaseError', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='UNSPECIFIED', index=0, number=0, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='UNKNOWN', index=1, number=1, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CONCURRENT_MODIFICATION', index=2, number=2, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='DATA_CONSTRAINT_VIOLATION', index=3, number=3, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='REQUEST_TOO_LARGE', index=4, number=4, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=146, + serialized_end=274, +) +_sym_db.RegisterEnumDescriptor(_DATABASEERRORENUM_DATABASEERROR) + + +_DATABASEERRORENUM = _descriptor.Descriptor( + name='DatabaseErrorEnum', + full_name='google.ads.googleads.v4.errors.DatabaseErrorEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _DATABASEERRORENUM_DATABASEERROR, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=124, + serialized_end=274, +) + +_DATABASEERRORENUM_DATABASEERROR.containing_type = _DATABASEERRORENUM +DESCRIPTOR.message_types_by_name['DatabaseErrorEnum'] = _DATABASEERRORENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +DatabaseErrorEnum = _reflection.GeneratedProtocolMessageType('DatabaseErrorEnum', (_message.Message,), dict( + DESCRIPTOR = _DATABASEERRORENUM, + __module__ = 'google.ads.googleads_v4.proto.errors.database_error_pb2' + , + __doc__ = """Container for enum describing possible database errors. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.errors.DatabaseErrorEnum) + )) +_sym_db.RegisterMessage(DatabaseErrorEnum) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/errors/keyword_plan_idea_error_pb2_grpc.py b/google/ads/google_ads/v4/proto/errors/database_error_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/errors/keyword_plan_idea_error_pb2_grpc.py rename to google/ads/google_ads/v4/proto/errors/database_error_pb2_grpc.py diff --git a/google/ads/google_ads/v1/proto/errors/date_error_pb2.py b/google/ads/google_ads/v4/proto/errors/date_error_pb2.py similarity index 80% rename from google/ads/google_ads/v1/proto/errors/date_error_pb2.py rename to google/ads/google_ads/v4/proto/errors/date_error_pb2.py index 8dbe4b3da..742fd69f0 100644 --- a/google/ads/google_ads/v1/proto/errors/date_error_pb2.py +++ b/google/ads/google_ads/v4/proto/errors/date_error_pb2.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/errors/date_error.proto +# source: google/ads/googleads_v4/proto/errors/date_error.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) @@ -17,11 +17,11 @@ DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/errors/date_error.proto', - package='google.ads.googleads.v1.errors', + name='google/ads/googleads_v4/proto/errors/date_error.proto', + package='google.ads.googleads.v4.errors', syntax='proto3', - serialized_options=_b('\n\"com.google.ads.googleads.v1.errorsB\016DateErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V1.Errors\312\002\036Google\\Ads\\GoogleAds\\V1\\Errors\352\002\"Google::Ads::GoogleAds::V1::Errors'), - serialized_pb=_b('\n5google/ads/googleads_v1/proto/errors/date_error.proto\x12\x1egoogle.ads.googleads.v1.errors\x1a\x1cgoogle/api/annotations.proto\"\xbf\x03\n\rDateErrorEnum\"\xad\x03\n\tDateError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12 \n\x1cINVALID_FIELD_VALUES_IN_DATE\x10\x02\x12%\n!INVALID_FIELD_VALUES_IN_DATE_TIME\x10\x03\x12\x17\n\x13INVALID_STRING_DATE\x10\x04\x12#\n\x1fINVALID_STRING_DATE_TIME_MICROS\x10\x06\x12$\n INVALID_STRING_DATE_TIME_SECONDS\x10\x0b\x12\x30\n,INVALID_STRING_DATE_TIME_SECONDS_WITH_OFFSET\x10\x0c\x12\x1d\n\x19\x45\x41RLIER_THAN_MINIMUM_DATE\x10\x07\x12\x1b\n\x17LATER_THAN_MAXIMUM_DATE\x10\x08\x12\x33\n/DATE_RANGE_MINIMUM_DATE_LATER_THAN_MAXIMUM_DATE\x10\t\x12\x32\n.DATE_RANGE_MINIMUM_AND_MAXIMUM_DATES_BOTH_NULL\x10\nB\xe9\x01\n\"com.google.ads.googleads.v1.errorsB\x0e\x44\x61teErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V1.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V1\\Errors\xea\x02\"Google::Ads::GoogleAds::V1::Errorsb\x06proto3') + serialized_options=_b('\n\"com.google.ads.googleads.v4.errorsB\016DateErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V4.Errors\312\002\036Google\\Ads\\GoogleAds\\V4\\Errors\352\002\"Google::Ads::GoogleAds::V4::Errors'), + serialized_pb=_b('\n5google/ads/googleads_v4/proto/errors/date_error.proto\x12\x1egoogle.ads.googleads.v4.errors\x1a\x1cgoogle/api/annotations.proto\"\xbf\x03\n\rDateErrorEnum\"\xad\x03\n\tDateError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12 \n\x1cINVALID_FIELD_VALUES_IN_DATE\x10\x02\x12%\n!INVALID_FIELD_VALUES_IN_DATE_TIME\x10\x03\x12\x17\n\x13INVALID_STRING_DATE\x10\x04\x12#\n\x1fINVALID_STRING_DATE_TIME_MICROS\x10\x06\x12$\n INVALID_STRING_DATE_TIME_SECONDS\x10\x0b\x12\x30\n,INVALID_STRING_DATE_TIME_SECONDS_WITH_OFFSET\x10\x0c\x12\x1d\n\x19\x45\x41RLIER_THAN_MINIMUM_DATE\x10\x07\x12\x1b\n\x17LATER_THAN_MAXIMUM_DATE\x10\x08\x12\x33\n/DATE_RANGE_MINIMUM_DATE_LATER_THAN_MAXIMUM_DATE\x10\t\x12\x32\n.DATE_RANGE_MINIMUM_AND_MAXIMUM_DATES_BOTH_NULL\x10\nB\xe9\x01\n\"com.google.ads.googleads.v4.errorsB\x0e\x44\x61teErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V4.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V4\\Errors\xea\x02\"Google::Ads::GoogleAds::V4::Errorsb\x06proto3') , dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) @@ -29,7 +29,7 @@ _DATEERRORENUM_DATEERROR = _descriptor.EnumDescriptor( name='DateError', - full_name='google.ads.googleads.v1.errors.DateErrorEnum.DateError', + full_name='google.ads.googleads.v4.errors.DateErrorEnum.DateError', filename=None, file=DESCRIPTOR, values=[ @@ -92,7 +92,7 @@ _DATEERRORENUM = _descriptor.Descriptor( name='DateErrorEnum', - full_name='google.ads.googleads.v1.errors.DateErrorEnum', + full_name='google.ads.googleads.v4.errors.DateErrorEnum', filename=None, file=DESCRIPTOR, containing_type=None, @@ -120,11 +120,11 @@ DateErrorEnum = _reflection.GeneratedProtocolMessageType('DateErrorEnum', (_message.Message,), dict( DESCRIPTOR = _DATEERRORENUM, - __module__ = 'google.ads.googleads_v1.proto.errors.date_error_pb2' + __module__ = 'google.ads.googleads_v4.proto.errors.date_error_pb2' , __doc__ = """Container for enum describing possible date errors. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.errors.DateErrorEnum) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.errors.DateErrorEnum) )) _sym_db.RegisterMessage(DateErrorEnum) diff --git a/google/ads/google_ads/v1/proto/errors/keyword_plan_keyword_error_pb2_grpc.py b/google/ads/google_ads/v4/proto/errors/date_error_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/errors/keyword_plan_keyword_error_pb2_grpc.py rename to google/ads/google_ads/v4/proto/errors/date_error_pb2_grpc.py diff --git a/google/ads/google_ads/v1/proto/errors/date_range_error_pb2.py b/google/ads/google_ads/v4/proto/errors/date_range_error_pb2.py similarity index 76% rename from google/ads/google_ads/v1/proto/errors/date_range_error_pb2.py rename to google/ads/google_ads/v4/proto/errors/date_range_error_pb2.py index 953b1d129..3077173fe 100644 --- a/google/ads/google_ads/v1/proto/errors/date_range_error_pb2.py +++ b/google/ads/google_ads/v4/proto/errors/date_range_error_pb2.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/errors/date_range_error.proto +# source: google/ads/googleads_v4/proto/errors/date_range_error.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) @@ -17,11 +17,11 @@ DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/errors/date_range_error.proto', - package='google.ads.googleads.v1.errors', + name='google/ads/googleads_v4/proto/errors/date_range_error.proto', + package='google.ads.googleads.v4.errors', syntax='proto3', - serialized_options=_b('\n\"com.google.ads.googleads.v1.errorsB\023DateRangeErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V1.Errors\312\002\036Google\\Ads\\GoogleAds\\V1\\Errors\352\002\"Google::Ads::GoogleAds::V1::Errors'), - serialized_pb=_b('\n;google/ads/googleads_v1/proto/errors/date_range_error.proto\x12\x1egoogle.ads.googleads.v1.errors\x1a\x1cgoogle/api/annotations.proto\"\xe6\x01\n\x12\x44\x61teRangeErrorEnum\"\xcf\x01\n\x0e\x44\x61teRangeError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x10\n\x0cINVALID_DATE\x10\x02\x12\x1d\n\x19START_DATE_AFTER_END_DATE\x10\x03\x12\x1b\n\x17\x43\x41NNOT_SET_DATE_TO_PAST\x10\x04\x12 \n\x1c\x41\x46TER_MAXIMUM_ALLOWABLE_DATE\x10\x05\x12/\n+CANNOT_MODIFY_START_DATE_IF_ALREADY_STARTED\x10\x06\x42\xee\x01\n\"com.google.ads.googleads.v1.errorsB\x13\x44\x61teRangeErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V1.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V1\\Errors\xea\x02\"Google::Ads::GoogleAds::V1::Errorsb\x06proto3') + serialized_options=_b('\n\"com.google.ads.googleads.v4.errorsB\023DateRangeErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V4.Errors\312\002\036Google\\Ads\\GoogleAds\\V4\\Errors\352\002\"Google::Ads::GoogleAds::V4::Errors'), + serialized_pb=_b('\n;google/ads/googleads_v4/proto/errors/date_range_error.proto\x12\x1egoogle.ads.googleads.v4.errors\x1a\x1cgoogle/api/annotations.proto\"\xe6\x01\n\x12\x44\x61teRangeErrorEnum\"\xcf\x01\n\x0e\x44\x61teRangeError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x10\n\x0cINVALID_DATE\x10\x02\x12\x1d\n\x19START_DATE_AFTER_END_DATE\x10\x03\x12\x1b\n\x17\x43\x41NNOT_SET_DATE_TO_PAST\x10\x04\x12 \n\x1c\x41\x46TER_MAXIMUM_ALLOWABLE_DATE\x10\x05\x12/\n+CANNOT_MODIFY_START_DATE_IF_ALREADY_STARTED\x10\x06\x42\xee\x01\n\"com.google.ads.googleads.v4.errorsB\x13\x44\x61teRangeErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V4.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V4\\Errors\xea\x02\"Google::Ads::GoogleAds::V4::Errorsb\x06proto3') , dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) @@ -29,7 +29,7 @@ _DATERANGEERRORENUM_DATERANGEERROR = _descriptor.EnumDescriptor( name='DateRangeError', - full_name='google.ads.googleads.v1.errors.DateRangeErrorEnum.DateRangeError', + full_name='google.ads.googleads.v4.errors.DateRangeErrorEnum.DateRangeError', filename=None, file=DESCRIPTOR, values=[ @@ -72,7 +72,7 @@ _DATERANGEERRORENUM = _descriptor.Descriptor( name='DateRangeErrorEnum', - full_name='google.ads.googleads.v1.errors.DateRangeErrorEnum', + full_name='google.ads.googleads.v4.errors.DateRangeErrorEnum', filename=None, file=DESCRIPTOR, containing_type=None, @@ -100,11 +100,11 @@ DateRangeErrorEnum = _reflection.GeneratedProtocolMessageType('DateRangeErrorEnum', (_message.Message,), dict( DESCRIPTOR = _DATERANGEERRORENUM, - __module__ = 'google.ads.googleads_v1.proto.errors.date_range_error_pb2' + __module__ = 'google.ads.googleads_v4.proto.errors.date_range_error_pb2' , __doc__ = """Container for enum describing possible date range errors. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.errors.DateRangeErrorEnum) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.errors.DateRangeErrorEnum) )) _sym_db.RegisterMessage(DateRangeErrorEnum) diff --git a/google/ads/google_ads/v1/proto/errors/keyword_plan_negative_keyword_error_pb2_grpc.py b/google/ads/google_ads/v4/proto/errors/date_range_error_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/errors/keyword_plan_negative_keyword_error_pb2_grpc.py rename to google/ads/google_ads/v4/proto/errors/date_range_error_pb2_grpc.py diff --git a/google/ads/google_ads/v4/proto/errors/distinct_error_pb2.py b/google/ads/google_ads/v4/proto/errors/distinct_error_pb2.py new file mode 100644 index 000000000..8d444584e --- /dev/null +++ b/google/ads/google_ads/v4/proto/errors/distinct_error_pb2.py @@ -0,0 +1,101 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/errors/distinct_error.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/errors/distinct_error.proto', + package='google.ads.googleads.v4.errors', + syntax='proto3', + serialized_options=_b('\n\"com.google.ads.googleads.v4.errorsB\022DistinctErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V4.Errors\312\002\036Google\\Ads\\GoogleAds\\V4\\Errors\352\002\"Google::Ads::GoogleAds::V4::Errors'), + serialized_pb=_b('\n9google/ads/googleads_v4/proto/errors/distinct_error.proto\x12\x1egoogle.ads.googleads.v4.errors\x1a\x1cgoogle/api/annotations.proto\"m\n\x11\x44istinctErrorEnum\"X\n\rDistinctError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x15\n\x11\x44UPLICATE_ELEMENT\x10\x02\x12\x12\n\x0e\x44UPLICATE_TYPE\x10\x03\x42\xed\x01\n\"com.google.ads.googleads.v4.errorsB\x12\x44istinctErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V4.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V4\\Errors\xea\x02\"Google::Ads::GoogleAds::V4::Errorsb\x06proto3') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_DISTINCTERRORENUM_DISTINCTERROR = _descriptor.EnumDescriptor( + name='DistinctError', + full_name='google.ads.googleads.v4.errors.DistinctErrorEnum.DistinctError', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='UNSPECIFIED', index=0, number=0, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='UNKNOWN', index=1, number=1, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='DUPLICATE_ELEMENT', index=2, number=2, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='DUPLICATE_TYPE', index=3, number=3, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=144, + serialized_end=232, +) +_sym_db.RegisterEnumDescriptor(_DISTINCTERRORENUM_DISTINCTERROR) + + +_DISTINCTERRORENUM = _descriptor.Descriptor( + name='DistinctErrorEnum', + full_name='google.ads.googleads.v4.errors.DistinctErrorEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _DISTINCTERRORENUM_DISTINCTERROR, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=123, + serialized_end=232, +) + +_DISTINCTERRORENUM_DISTINCTERROR.containing_type = _DISTINCTERRORENUM +DESCRIPTOR.message_types_by_name['DistinctErrorEnum'] = _DISTINCTERRORENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +DistinctErrorEnum = _reflection.GeneratedProtocolMessageType('DistinctErrorEnum', (_message.Message,), dict( + DESCRIPTOR = _DISTINCTERRORENUM, + __module__ = 'google.ads.googleads_v4.proto.errors.distinct_error_pb2' + , + __doc__ = """Container for enum describing possible distinct errors. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.errors.DistinctErrorEnum) + )) +_sym_db.RegisterMessage(DistinctErrorEnum) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/errors/label_error_pb2_grpc.py b/google/ads/google_ads/v4/proto/errors/distinct_error_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/errors/label_error_pb2_grpc.py rename to google/ads/google_ads/v4/proto/errors/distinct_error_pb2_grpc.py diff --git a/google/ads/google_ads/v4/proto/errors/enum_error_pb2.py b/google/ads/google_ads/v4/proto/errors/enum_error_pb2.py new file mode 100644 index 000000000..443f7eef3 --- /dev/null +++ b/google/ads/google_ads/v4/proto/errors/enum_error_pb2.py @@ -0,0 +1,97 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/errors/enum_error.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/errors/enum_error.proto', + package='google.ads.googleads.v4.errors', + syntax='proto3', + serialized_options=_b('\n\"com.google.ads.googleads.v4.errorsB\016EnumErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V4.Errors\312\002\036Google\\Ads\\GoogleAds\\V4\\Errors\352\002\"Google::Ads::GoogleAds::V4::Errors'), + serialized_pb=_b('\n5google/ads/googleads_v4/proto/errors/enum_error.proto\x12\x1egoogle.ads.googleads.v4.errors\x1a\x1cgoogle/api/annotations.proto\"X\n\rEnumErrorEnum\"G\n\tEnumError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x1c\n\x18\x45NUM_VALUE_NOT_PERMITTED\x10\x03\x42\xe9\x01\n\"com.google.ads.googleads.v4.errorsB\x0e\x45numErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V4.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V4\\Errors\xea\x02\"Google::Ads::GoogleAds::V4::Errorsb\x06proto3') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_ENUMERRORENUM_ENUMERROR = _descriptor.EnumDescriptor( + name='EnumError', + full_name='google.ads.googleads.v4.errors.EnumErrorEnum.EnumError', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='UNSPECIFIED', index=0, number=0, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='UNKNOWN', index=1, number=1, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='ENUM_VALUE_NOT_PERMITTED', index=2, number=3, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=136, + serialized_end=207, +) +_sym_db.RegisterEnumDescriptor(_ENUMERRORENUM_ENUMERROR) + + +_ENUMERRORENUM = _descriptor.Descriptor( + name='EnumErrorEnum', + full_name='google.ads.googleads.v4.errors.EnumErrorEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _ENUMERRORENUM_ENUMERROR, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=119, + serialized_end=207, +) + +_ENUMERRORENUM_ENUMERROR.containing_type = _ENUMERRORENUM +DESCRIPTOR.message_types_by_name['EnumErrorEnum'] = _ENUMERRORENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +EnumErrorEnum = _reflection.GeneratedProtocolMessageType('EnumErrorEnum', (_message.Message,), dict( + DESCRIPTOR = _ENUMERRORENUM, + __module__ = 'google.ads.googleads_v4.proto.errors.enum_error_pb2' + , + __doc__ = """Container for enum describing possible enum errors. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.errors.EnumErrorEnum) + )) +_sym_db.RegisterMessage(EnumErrorEnum) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/errors/language_code_error_pb2_grpc.py b/google/ads/google_ads/v4/proto/errors/enum_error_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/errors/language_code_error_pb2_grpc.py rename to google/ads/google_ads/v4/proto/errors/enum_error_pb2_grpc.py diff --git a/google/ads/google_ads/v4/proto/errors/errors_pb2.py b/google/ads/google_ads/v4/proto/errors/errors_pb2.py new file mode 100644 index 000000000..cec04c24f --- /dev/null +++ b/google/ads/google_ads/v4/proto/errors/errors_pb2.py @@ -0,0 +1,2076 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/errors/errors.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.ads.google_ads.v4.proto.common import policy_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_policy__pb2 +from google.ads.google_ads.v4.proto.common import value_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_value__pb2 +from google.ads.google_ads.v4.proto.errors import access_invitation_error_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_access__invitation__error__pb2 +from google.ads.google_ads.v4.proto.errors import account_budget_proposal_error_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_account__budget__proposal__error__pb2 +from google.ads.google_ads.v4.proto.errors import ad_customizer_error_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_ad__customizer__error__pb2 +from google.ads.google_ads.v4.proto.errors import ad_error_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_ad__error__pb2 +from google.ads.google_ads.v4.proto.errors import ad_group_ad_error_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_ad__group__ad__error__pb2 +from google.ads.google_ads.v4.proto.errors import ad_group_bid_modifier_error_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_ad__group__bid__modifier__error__pb2 +from google.ads.google_ads.v4.proto.errors import ad_group_criterion_error_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_ad__group__criterion__error__pb2 +from google.ads.google_ads.v4.proto.errors import ad_group_error_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_ad__group__error__pb2 +from google.ads.google_ads.v4.proto.errors import ad_group_feed_error_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_ad__group__feed__error__pb2 +from google.ads.google_ads.v4.proto.errors import ad_parameter_error_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_ad__parameter__error__pb2 +from google.ads.google_ads.v4.proto.errors import ad_sharing_error_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_ad__sharing__error__pb2 +from google.ads.google_ads.v4.proto.errors import adx_error_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_adx__error__pb2 +from google.ads.google_ads.v4.proto.errors import asset_error_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_asset__error__pb2 +from google.ads.google_ads.v4.proto.errors import asset_link_error_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_asset__link__error__pb2 +from google.ads.google_ads.v4.proto.errors import authentication_error_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_authentication__error__pb2 +from google.ads.google_ads.v4.proto.errors import authorization_error_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_authorization__error__pb2 +from google.ads.google_ads.v4.proto.errors import batch_job_error_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_batch__job__error__pb2 +from google.ads.google_ads.v4.proto.errors import bidding_error_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_bidding__error__pb2 +from google.ads.google_ads.v4.proto.errors import bidding_strategy_error_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_bidding__strategy__error__pb2 +from google.ads.google_ads.v4.proto.errors import billing_setup_error_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_billing__setup__error__pb2 +from google.ads.google_ads.v4.proto.errors import campaign_budget_error_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_campaign__budget__error__pb2 +from google.ads.google_ads.v4.proto.errors import campaign_criterion_error_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_campaign__criterion__error__pb2 +from google.ads.google_ads.v4.proto.errors import campaign_draft_error_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_campaign__draft__error__pb2 +from google.ads.google_ads.v4.proto.errors import campaign_error_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_campaign__error__pb2 +from google.ads.google_ads.v4.proto.errors import campaign_experiment_error_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_campaign__experiment__error__pb2 +from google.ads.google_ads.v4.proto.errors import campaign_feed_error_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_campaign__feed__error__pb2 +from google.ads.google_ads.v4.proto.errors import campaign_shared_set_error_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_campaign__shared__set__error__pb2 +from google.ads.google_ads.v4.proto.errors import change_status_error_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_change__status__error__pb2 +from google.ads.google_ads.v4.proto.errors import collection_size_error_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_collection__size__error__pb2 +from google.ads.google_ads.v4.proto.errors import context_error_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_context__error__pb2 +from google.ads.google_ads.v4.proto.errors import conversion_action_error_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_conversion__action__error__pb2 +from google.ads.google_ads.v4.proto.errors import conversion_adjustment_upload_error_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_conversion__adjustment__upload__error__pb2 +from google.ads.google_ads.v4.proto.errors import conversion_upload_error_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_conversion__upload__error__pb2 +from google.ads.google_ads.v4.proto.errors import country_code_error_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_country__code__error__pb2 +from google.ads.google_ads.v4.proto.errors import criterion_error_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_criterion__error__pb2 +from google.ads.google_ads.v4.proto.errors import currency_code_error_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_currency__code__error__pb2 +from google.ads.google_ads.v4.proto.errors import custom_interest_error_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_custom__interest__error__pb2 +from google.ads.google_ads.v4.proto.errors import customer_client_link_error_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_customer__client__link__error__pb2 +from google.ads.google_ads.v4.proto.errors import customer_error_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_customer__error__pb2 +from google.ads.google_ads.v4.proto.errors import customer_feed_error_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_customer__feed__error__pb2 +from google.ads.google_ads.v4.proto.errors import customer_manager_link_error_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_customer__manager__link__error__pb2 +from google.ads.google_ads.v4.proto.errors import database_error_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_database__error__pb2 +from google.ads.google_ads.v4.proto.errors import date_error_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_date__error__pb2 +from google.ads.google_ads.v4.proto.errors import date_range_error_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_date__range__error__pb2 +from google.ads.google_ads.v4.proto.errors import distinct_error_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_distinct__error__pb2 +from google.ads.google_ads.v4.proto.errors import enum_error_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_enum__error__pb2 +from google.ads.google_ads.v4.proto.errors import extension_feed_item_error_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_extension__feed__item__error__pb2 +from google.ads.google_ads.v4.proto.errors import extension_setting_error_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_extension__setting__error__pb2 +from google.ads.google_ads.v4.proto.errors import feed_attribute_reference_error_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_feed__attribute__reference__error__pb2 +from google.ads.google_ads.v4.proto.errors import feed_error_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_feed__error__pb2 +from google.ads.google_ads.v4.proto.errors import feed_item_error_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_feed__item__error__pb2 +from google.ads.google_ads.v4.proto.errors import feed_item_target_error_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_feed__item__target__error__pb2 +from google.ads.google_ads.v4.proto.errors import feed_item_validation_error_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_feed__item__validation__error__pb2 +from google.ads.google_ads.v4.proto.errors import feed_mapping_error_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_feed__mapping__error__pb2 +from google.ads.google_ads.v4.proto.errors import field_error_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_field__error__pb2 +from google.ads.google_ads.v4.proto.errors import field_mask_error_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_field__mask__error__pb2 +from google.ads.google_ads.v4.proto.errors import function_error_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_function__error__pb2 +from google.ads.google_ads.v4.proto.errors import function_parsing_error_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_function__parsing__error__pb2 +from google.ads.google_ads.v4.proto.errors import geo_target_constant_suggestion_error_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_geo__target__constant__suggestion__error__pb2 +from google.ads.google_ads.v4.proto.errors import header_error_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_header__error__pb2 +from google.ads.google_ads.v4.proto.errors import id_error_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_id__error__pb2 +from google.ads.google_ads.v4.proto.errors import image_error_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_image__error__pb2 +from google.ads.google_ads.v4.proto.errors import internal_error_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_internal__error__pb2 +from google.ads.google_ads.v4.proto.errors import invoice_error_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_invoice__error__pb2 +from google.ads.google_ads.v4.proto.errors import keyword_plan_ad_group_error_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_keyword__plan__ad__group__error__pb2 +from google.ads.google_ads.v4.proto.errors import keyword_plan_ad_group_keyword_error_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_keyword__plan__ad__group__keyword__error__pb2 +from google.ads.google_ads.v4.proto.errors import keyword_plan_campaign_error_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_keyword__plan__campaign__error__pb2 +from google.ads.google_ads.v4.proto.errors import keyword_plan_campaign_keyword_error_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_keyword__plan__campaign__keyword__error__pb2 +from google.ads.google_ads.v4.proto.errors import keyword_plan_error_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_keyword__plan__error__pb2 +from google.ads.google_ads.v4.proto.errors import keyword_plan_idea_error_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_keyword__plan__idea__error__pb2 +from google.ads.google_ads.v4.proto.errors import label_error_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_label__error__pb2 +from google.ads.google_ads.v4.proto.errors import language_code_error_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_language__code__error__pb2 +from google.ads.google_ads.v4.proto.errors import list_operation_error_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_list__operation__error__pb2 +from google.ads.google_ads.v4.proto.errors import manager_link_error_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_manager__link__error__pb2 +from google.ads.google_ads.v4.proto.errors import media_bundle_error_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_media__bundle__error__pb2 +from google.ads.google_ads.v4.proto.errors import media_file_error_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_media__file__error__pb2 +from google.ads.google_ads.v4.proto.errors import media_upload_error_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_media__upload__error__pb2 +from google.ads.google_ads.v4.proto.errors import multiplier_error_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_multiplier__error__pb2 +from google.ads.google_ads.v4.proto.errors import mutate_error_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_mutate__error__pb2 +from google.ads.google_ads.v4.proto.errors import new_resource_creation_error_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_new__resource__creation__error__pb2 +from google.ads.google_ads.v4.proto.errors import not_empty_error_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_not__empty__error__pb2 +from google.ads.google_ads.v4.proto.errors import not_whitelisted_error_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_not__whitelisted__error__pb2 +from google.ads.google_ads.v4.proto.errors import null_error_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_null__error__pb2 +from google.ads.google_ads.v4.proto.errors import offline_user_data_job_error_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_offline__user__data__job__error__pb2 +from google.ads.google_ads.v4.proto.errors import operation_access_denied_error_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_operation__access__denied__error__pb2 +from google.ads.google_ads.v4.proto.errors import operator_error_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_operator__error__pb2 +from google.ads.google_ads.v4.proto.errors import partial_failure_error_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_partial__failure__error__pb2 +from google.ads.google_ads.v4.proto.errors import payments_account_error_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_payments__account__error__pb2 +from google.ads.google_ads.v4.proto.errors import policy_finding_error_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_policy__finding__error__pb2 +from google.ads.google_ads.v4.proto.errors import policy_validation_parameter_error_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_policy__validation__parameter__error__pb2 +from google.ads.google_ads.v4.proto.errors import policy_violation_error_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_policy__violation__error__pb2 +from google.ads.google_ads.v4.proto.errors import query_error_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_query__error__pb2 +from google.ads.google_ads.v4.proto.errors import quota_error_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_quota__error__pb2 +from google.ads.google_ads.v4.proto.errors import range_error_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_range__error__pb2 +from google.ads.google_ads.v4.proto.errors import reach_plan_error_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_reach__plan__error__pb2 +from google.ads.google_ads.v4.proto.errors import recommendation_error_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_recommendation__error__pb2 +from google.ads.google_ads.v4.proto.errors import region_code_error_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_region__code__error__pb2 +from google.ads.google_ads.v4.proto.errors import request_error_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_request__error__pb2 +from google.ads.google_ads.v4.proto.errors import resource_access_denied_error_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_resource__access__denied__error__pb2 +from google.ads.google_ads.v4.proto.errors import resource_count_limit_exceeded_error_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_resource__count__limit__exceeded__error__pb2 +from google.ads.google_ads.v4.proto.errors import setting_error_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_setting__error__pb2 +from google.ads.google_ads.v4.proto.errors import shared_criterion_error_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_shared__criterion__error__pb2 +from google.ads.google_ads.v4.proto.errors import shared_set_error_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_shared__set__error__pb2 +from google.ads.google_ads.v4.proto.errors import size_limit_error_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_size__limit__error__pb2 +from google.ads.google_ads.v4.proto.errors import string_format_error_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_string__format__error__pb2 +from google.ads.google_ads.v4.proto.errors import string_length_error_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_string__length__error__pb2 +from google.ads.google_ads.v4.proto.errors import time_zone_error_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_time__zone__error__pb2 +from google.ads.google_ads.v4.proto.errors import url_field_error_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_url__field__error__pb2 +from google.ads.google_ads.v4.proto.errors import user_data_error_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_user__data__error__pb2 +from google.ads.google_ads.v4.proto.errors import user_list_error_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_user__list__error__pb2 +from google.ads.google_ads.v4.proto.errors import youtube_video_registration_error_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_youtube__video__registration__error__pb2 +from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/errors/errors.proto', + package='google.ads.googleads.v4.errors', + syntax='proto3', + serialized_options=_b('\n\"com.google.ads.googleads.v4.errorsB\013ErrorsProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V4.Errors\312\002\036Google\\Ads\\GoogleAds\\V4\\Errors\352\002\"Google::Ads::GoogleAds::V4::Errors'), + serialized_pb=_b('\n1google/ads/googleads_v4/proto/errors/errors.proto\x12\x1egoogle.ads.googleads.v4.errors\x1a\x31google/ads/googleads_v4/proto/common/policy.proto\x1a\x30google/ads/googleads_v4/proto/common/value.proto\x1a\x42google/ads/googleads_v4/proto/errors/access_invitation_error.proto\x1aHgoogle/ads/googleads_v4/proto/errors/account_budget_proposal_error.proto\x1a>google/ads/googleads_v4/proto/errors/ad_customizer_error.proto\x1a\x33google/ads/googleads_v4/proto/errors/ad_error.proto\x1agoogle/ads/googleads_v4/proto/errors/ad_group_feed_error.proto\x1a=google/ads/googleads_v4/proto/errors/ad_parameter_error.proto\x1a;google/ads/googleads_v4/proto/errors/ad_sharing_error.proto\x1a\x34google/ads/googleads_v4/proto/errors/adx_error.proto\x1a\x36google/ads/googleads_v4/proto/errors/asset_error.proto\x1a;google/ads/googleads_v4/proto/errors/asset_link_error.proto\x1a?google/ads/googleads_v4/proto/errors/authentication_error.proto\x1a>google/ads/googleads_v4/proto/errors/authorization_error.proto\x1a:google/ads/googleads_v4/proto/errors/batch_job_error.proto\x1a\x38google/ads/googleads_v4/proto/errors/bidding_error.proto\x1a\x41google/ads/googleads_v4/proto/errors/bidding_strategy_error.proto\x1a>google/ads/googleads_v4/proto/errors/billing_setup_error.proto\x1a@google/ads/googleads_v4/proto/errors/campaign_budget_error.proto\x1a\x43google/ads/googleads_v4/proto/errors/campaign_criterion_error.proto\x1a?google/ads/googleads_v4/proto/errors/campaign_draft_error.proto\x1a\x39google/ads/googleads_v4/proto/errors/campaign_error.proto\x1a\x44google/ads/googleads_v4/proto/errors/campaign_experiment_error.proto\x1a>google/ads/googleads_v4/proto/errors/campaign_feed_error.proto\x1a\x44google/ads/googleads_v4/proto/errors/campaign_shared_set_error.proto\x1a>google/ads/googleads_v4/proto/errors/change_status_error.proto\x1a@google/ads/googleads_v4/proto/errors/collection_size_error.proto\x1a\x38google/ads/googleads_v4/proto/errors/context_error.proto\x1a\x42google/ads/googleads_v4/proto/errors/conversion_action_error.proto\x1aMgoogle/ads/googleads_v4/proto/errors/conversion_adjustment_upload_error.proto\x1a\x42google/ads/googleads_v4/proto/errors/conversion_upload_error.proto\x1a=google/ads/googleads_v4/proto/errors/country_code_error.proto\x1a:google/ads/googleads_v4/proto/errors/criterion_error.proto\x1a>google/ads/googleads_v4/proto/errors/currency_code_error.proto\x1a@google/ads/googleads_v4/proto/errors/custom_interest_error.proto\x1a\x45google/ads/googleads_v4/proto/errors/customer_client_link_error.proto\x1a\x39google/ads/googleads_v4/proto/errors/customer_error.proto\x1a>google/ads/googleads_v4/proto/errors/customer_feed_error.proto\x1a\x46google/ads/googleads_v4/proto/errors/customer_manager_link_error.proto\x1a\x39google/ads/googleads_v4/proto/errors/database_error.proto\x1a\x35google/ads/googleads_v4/proto/errors/date_error.proto\x1a;google/ads/googleads_v4/proto/errors/date_range_error.proto\x1a\x39google/ads/googleads_v4/proto/errors/distinct_error.proto\x1a\x35google/ads/googleads_v4/proto/errors/enum_error.proto\x1a\x44google/ads/googleads_v4/proto/errors/extension_feed_item_error.proto\x1a\x42google/ads/googleads_v4/proto/errors/extension_setting_error.proto\x1aIgoogle/ads/googleads_v4/proto/errors/feed_attribute_reference_error.proto\x1a\x35google/ads/googleads_v4/proto/errors/feed_error.proto\x1a:google/ads/googleads_v4/proto/errors/feed_item_error.proto\x1a\x41google/ads/googleads_v4/proto/errors/feed_item_target_error.proto\x1a\x45google/ads/googleads_v4/proto/errors/feed_item_validation_error.proto\x1a=google/ads/googleads_v4/proto/errors/feed_mapping_error.proto\x1a\x36google/ads/googleads_v4/proto/errors/field_error.proto\x1a;google/ads/googleads_v4/proto/errors/field_mask_error.proto\x1a\x39google/ads/googleads_v4/proto/errors/function_error.proto\x1a\x41google/ads/googleads_v4/proto/errors/function_parsing_error.proto\x1aOgoogle/ads/googleads_v4/proto/errors/geo_target_constant_suggestion_error.proto\x1a\x37google/ads/googleads_v4/proto/errors/header_error.proto\x1a\x33google/ads/googleads_v4/proto/errors/id_error.proto\x1a\x36google/ads/googleads_v4/proto/errors/image_error.proto\x1a\x39google/ads/googleads_v4/proto/errors/internal_error.proto\x1a\x38google/ads/googleads_v4/proto/errors/invoice_error.proto\x1a\x46google/ads/googleads_v4/proto/errors/keyword_plan_ad_group_error.proto\x1aNgoogle/ads/googleads_v4/proto/errors/keyword_plan_ad_group_keyword_error.proto\x1a\x46google/ads/googleads_v4/proto/errors/keyword_plan_campaign_error.proto\x1aNgoogle/ads/googleads_v4/proto/errors/keyword_plan_campaign_keyword_error.proto\x1a=google/ads/googleads_v4/proto/errors/keyword_plan_error.proto\x1a\x42google/ads/googleads_v4/proto/errors/keyword_plan_idea_error.proto\x1a\x36google/ads/googleads_v4/proto/errors/label_error.proto\x1a>google/ads/googleads_v4/proto/errors/language_code_error.proto\x1a?google/ads/googleads_v4/proto/errors/list_operation_error.proto\x1a=google/ads/googleads_v4/proto/errors/manager_link_error.proto\x1a=google/ads/googleads_v4/proto/errors/media_bundle_error.proto\x1a;google/ads/googleads_v4/proto/errors/media_file_error.proto\x1a=google/ads/googleads_v4/proto/errors/media_upload_error.proto\x1a;google/ads/googleads_v4/proto/errors/multiplier_error.proto\x1a\x37google/ads/googleads_v4/proto/errors/mutate_error.proto\x1a\x46google/ads/googleads_v4/proto/errors/new_resource_creation_error.proto\x1a:google/ads/googleads_v4/proto/errors/not_empty_error.proto\x1a@google/ads/googleads_v4/proto/errors/not_whitelisted_error.proto\x1a\x35google/ads/googleads_v4/proto/errors/null_error.proto\x1a\x46google/ads/googleads_v4/proto/errors/offline_user_data_job_error.proto\x1aHgoogle/ads/googleads_v4/proto/errors/operation_access_denied_error.proto\x1a\x39google/ads/googleads_v4/proto/errors/operator_error.proto\x1a@google/ads/googleads_v4/proto/errors/partial_failure_error.proto\x1a\x41google/ads/googleads_v4/proto/errors/payments_account_error.proto\x1a?google/ads/googleads_v4/proto/errors/policy_finding_error.proto\x1aLgoogle/ads/googleads_v4/proto/errors/policy_validation_parameter_error.proto\x1a\x41google/ads/googleads_v4/proto/errors/policy_violation_error.proto\x1a\x36google/ads/googleads_v4/proto/errors/query_error.proto\x1a\x36google/ads/googleads_v4/proto/errors/quota_error.proto\x1a\x36google/ads/googleads_v4/proto/errors/range_error.proto\x1a;google/ads/googleads_v4/proto/errors/reach_plan_error.proto\x1a?google/ads/googleads_v4/proto/errors/recommendation_error.proto\x1agoogle/ads/googleads_v4/proto/errors/string_format_error.proto\x1a>google/ads/googleads_v4/proto/errors/string_length_error.proto\x1a:google/ads/googleads_v4/proto/errors/time_zone_error.proto\x1a:google/ads/googleads_v4/proto/errors/url_field_error.proto\x1a:google/ads/googleads_v4/proto/errors/user_data_error.proto\x1a:google/ads/googleads_v4/proto/errors/user_list_error.proto\x1aKgoogle/ads/googleads_v4/proto/errors/youtube_video_registration_error.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1cgoogle/api/annotations.proto\"R\n\x10GoogleAdsFailure\x12>\n\x06\x65rrors\x18\x01 \x03(\x0b\x32..google.ads.googleads.v4.errors.GoogleAdsError\"\x98\x02\n\x0eGoogleAdsError\x12=\n\nerror_code\x18\x01 \x01(\x0b\x32).google.ads.googleads.v4.errors.ErrorCode\x12\x0f\n\x07message\x18\x02 \x01(\t\x12\x36\n\x07trigger\x18\x03 \x01(\x0b\x32%.google.ads.googleads.v4.common.Value\x12?\n\x08location\x18\x04 \x01(\x0b\x32-.google.ads.googleads.v4.errors.ErrorLocation\x12=\n\x07\x64\x65tails\x18\x05 \x01(\x0b\x32,.google.ads.googleads.v4.errors.ErrorDetails\"\xe3Z\n\tErrorCode\x12V\n\rrequest_error\x18\x01 \x01(\x0e\x32=.google.ads.googleads.v4.errors.RequestErrorEnum.RequestErrorH\x00\x12o\n\x16\x62idding_strategy_error\x18\x02 \x01(\x0e\x32M.google.ads.googleads.v4.errors.BiddingStrategyErrorEnum.BiddingStrategyErrorH\x00\x12Z\n\x0furl_field_error\x18\x03 \x01(\x0e\x32?.google.ads.googleads.v4.errors.UrlFieldErrorEnum.UrlFieldErrorH\x00\x12i\n\x14list_operation_error\x18\x04 \x01(\x0e\x32I.google.ads.googleads.v4.errors.ListOperationErrorEnum.ListOperationErrorH\x00\x12P\n\x0bquery_error\x18\x05 \x01(\x0e\x32\x39.google.ads.googleads.v4.errors.QueryErrorEnum.QueryErrorH\x00\x12S\n\x0cmutate_error\x18\x07 \x01(\x0e\x32;.google.ads.googleads.v4.errors.MutateErrorEnum.MutateErrorH\x00\x12]\n\x10\x66ield_mask_error\x18\x08 \x01(\x0e\x32\x41.google.ads.googleads.v4.errors.FieldMaskErrorEnum.FieldMaskErrorH\x00\x12h\n\x13\x61uthorization_error\x18\t \x01(\x0e\x32I.google.ads.googleads.v4.errors.AuthorizationErrorEnum.AuthorizationErrorH\x00\x12Y\n\x0einternal_error\x18\n \x01(\x0e\x32?.google.ads.googleads.v4.errors.InternalErrorEnum.InternalErrorH\x00\x12P\n\x0bquota_error\x18\x0b \x01(\x0e\x32\x39.google.ads.googleads.v4.errors.QuotaErrorEnum.QuotaErrorH\x00\x12G\n\x08\x61\x64_error\x18\x0c \x01(\x0e\x32\x33.google.ads.googleads.v4.errors.AdErrorEnum.AdErrorH\x00\x12W\n\x0e\x61\x64_group_error\x18\r \x01(\x0e\x32=.google.ads.googleads.v4.errors.AdGroupErrorEnum.AdGroupErrorH\x00\x12l\n\x15\x63\x61mpaign_budget_error\x18\x0e \x01(\x0e\x32K.google.ads.googleads.v4.errors.CampaignBudgetErrorEnum.CampaignBudgetErrorH\x00\x12Y\n\x0e\x63\x61mpaign_error\x18\x0f \x01(\x0e\x32?.google.ads.googleads.v4.errors.CampaignErrorEnum.CampaignErrorH\x00\x12k\n\x14\x61uthentication_error\x18\x11 \x01(\x0e\x32K.google.ads.googleads.v4.errors.AuthenticationErrorEnum.AuthenticationErrorH\x00\x12s\n\x18\x61\x64_group_criterion_error\x18\x12 \x01(\x0e\x32O.google.ads.googleads.v4.errors.AdGroupCriterionErrorEnum.AdGroupCriterionErrorH\x00\x12\x66\n\x13\x61\x64_customizer_error\x18\x13 \x01(\x0e\x32G.google.ads.googleads.v4.errors.AdCustomizerErrorEnum.AdCustomizerErrorH\x00\x12^\n\x11\x61\x64_group_ad_error\x18\x15 \x01(\x0e\x32\x41.google.ads.googleads.v4.errors.AdGroupAdErrorEnum.AdGroupAdErrorH\x00\x12]\n\x10\x61\x64_sharing_error\x18\x18 \x01(\x0e\x32\x41.google.ads.googleads.v4.errors.AdSharingErrorEnum.AdSharingErrorH\x00\x12J\n\tadx_error\x18\x19 \x01(\x0e\x32\x35.google.ads.googleads.v4.errors.AdxErrorEnum.AdxErrorH\x00\x12P\n\x0b\x61sset_error\x18k \x01(\x0e\x32\x39.google.ads.googleads.v4.errors.AssetErrorEnum.AssetErrorH\x00\x12V\n\rbidding_error\x18\x1a \x01(\x0e\x32=.google.ads.googleads.v4.errors.BiddingErrorEnum.BiddingErrorH\x00\x12u\n\x18\x63\x61mpaign_criterion_error\x18\x1d \x01(\x0e\x32Q.google.ads.googleads.v4.errors.CampaignCriterionErrorEnum.CampaignCriterionErrorH\x00\x12l\n\x15\x63ollection_size_error\x18\x1f \x01(\x0e\x32K.google.ads.googleads.v4.errors.CollectionSizeErrorEnum.CollectionSizeErrorH\x00\x12\x63\n\x12\x63ountry_code_error\x18m \x01(\x0e\x32\x45.google.ads.googleads.v4.errors.CountryCodeErrorEnum.CountryCodeErrorH\x00\x12\\\n\x0f\x63riterion_error\x18 \x01(\x0e\x32\x41.google.ads.googleads.v4.errors.CriterionErrorEnum.CriterionErrorH\x00\x12Y\n\x0e\x63ustomer_error\x18Z \x01(\x0e\x32?.google.ads.googleads.v4.errors.CustomerErrorEnum.CustomerErrorH\x00\x12M\n\ndate_error\x18! \x01(\x0e\x32\x37.google.ads.googleads.v4.errors.DateErrorEnum.DateErrorH\x00\x12]\n\x10\x64\x61te_range_error\x18\" \x01(\x0e\x32\x41.google.ads.googleads.v4.errors.DateRangeErrorEnum.DateRangeErrorH\x00\x12Y\n\x0e\x64istinct_error\x18# \x01(\x0e\x32?.google.ads.googleads.v4.errors.DistinctErrorEnum.DistinctErrorH\x00\x12\x85\x01\n\x1e\x66\x65\x65\x64_attribute_reference_error\x18$ \x01(\x0e\x32[.google.ads.googleads.v4.errors.FeedAttributeReferenceErrorEnum.FeedAttributeReferenceErrorH\x00\x12Y\n\x0e\x66unction_error\x18% \x01(\x0e\x32?.google.ads.googleads.v4.errors.FunctionErrorEnum.FunctionErrorH\x00\x12o\n\x16\x66unction_parsing_error\x18& \x01(\x0e\x32M.google.ads.googleads.v4.errors.FunctionParsingErrorEnum.FunctionParsingErrorH\x00\x12G\n\x08id_error\x18\' \x01(\x0e\x32\x33.google.ads.googleads.v4.errors.IdErrorEnum.IdErrorH\x00\x12P\n\x0bimage_error\x18( \x01(\x0e\x32\x39.google.ads.googleads.v4.errors.ImageErrorEnum.ImageErrorH\x00\x12\x66\n\x13language_code_error\x18n \x01(\x0e\x32G.google.ads.googleads.v4.errors.LanguageCodeErrorEnum.LanguageCodeErrorH\x00\x12\x63\n\x12media_bundle_error\x18* \x01(\x0e\x32\x45.google.ads.googleads.v4.errors.MediaBundleErrorEnum.MediaBundleErrorH\x00\x12\x63\n\x12media_upload_error\x18t \x01(\x0e\x32\x45.google.ads.googleads.v4.errors.MediaUploadErrorEnum.MediaUploadErrorH\x00\x12]\n\x10media_file_error\x18V \x01(\x0e\x32\x41.google.ads.googleads.v4.errors.MediaFileErrorEnum.MediaFileErrorH\x00\x12_\n\x10multiplier_error\x18, \x01(\x0e\x32\x43.google.ads.googleads.v4.errors.MultiplierErrorEnum.MultiplierErrorH\x00\x12|\n\x1bnew_resource_creation_error\x18- \x01(\x0e\x32U.google.ads.googleads.v4.errors.NewResourceCreationErrorEnum.NewResourceCreationErrorH\x00\x12Z\n\x0fnot_empty_error\x18. \x01(\x0e\x32?.google.ads.googleads.v4.errors.NotEmptyErrorEnum.NotEmptyErrorH\x00\x12M\n\nnull_error\x18/ \x01(\x0e\x32\x37.google.ads.googleads.v4.errors.NullErrorEnum.NullErrorH\x00\x12Y\n\x0eoperator_error\x18\x30 \x01(\x0e\x32?.google.ads.googleads.v4.errors.OperatorErrorEnum.OperatorErrorH\x00\x12P\n\x0brange_error\x18\x31 \x01(\x0e\x32\x39.google.ads.googleads.v4.errors.RangeErrorEnum.RangeErrorH\x00\x12k\n\x14recommendation_error\x18: \x01(\x0e\x32K.google.ads.googleads.v4.errors.RecommendationErrorEnum.RecommendationErrorH\x00\x12`\n\x11region_code_error\x18\x33 \x01(\x0e\x32\x43.google.ads.googleads.v4.errors.RegionCodeErrorEnum.RegionCodeErrorH\x00\x12V\n\rsetting_error\x18\x34 \x01(\x0e\x32=.google.ads.googleads.v4.errors.SettingErrorEnum.SettingErrorH\x00\x12\x66\n\x13string_format_error\x18\x35 \x01(\x0e\x32G.google.ads.googleads.v4.errors.StringFormatErrorEnum.StringFormatErrorH\x00\x12\x66\n\x13string_length_error\x18\x36 \x01(\x0e\x32G.google.ads.googleads.v4.errors.StringLengthErrorEnum.StringLengthErrorH\x00\x12\x82\x01\n\x1doperation_access_denied_error\x18\x37 \x01(\x0e\x32Y.google.ads.googleads.v4.errors.OperationAccessDeniedErrorEnum.OperationAccessDeniedErrorH\x00\x12\x7f\n\x1cresource_access_denied_error\x18\x38 \x01(\x0e\x32W.google.ads.googleads.v4.errors.ResourceAccessDeniedErrorEnum.ResourceAccessDeniedErrorH\x00\x12\x92\x01\n#resource_count_limit_exceeded_error\x18\x39 \x01(\x0e\x32\x63.google.ads.googleads.v4.errors.ResourceCountLimitExceededErrorEnum.ResourceCountLimitExceededErrorH\x00\x12\x8b\x01\n youtube_video_registration_error\x18u \x01(\x0e\x32_.google.ads.googleads.v4.errors.YoutubeVideoRegistrationErrorEnum.YoutubeVideoRegistrationErrorH\x00\x12z\n\x1b\x61\x64_group_bid_modifier_error\x18; \x01(\x0e\x32S.google.ads.googleads.v4.errors.AdGroupBidModifierErrorEnum.AdGroupBidModifierErrorH\x00\x12V\n\rcontext_error\x18< \x01(\x0e\x32=.google.ads.googleads.v4.errors.ContextErrorEnum.ContextErrorH\x00\x12P\n\x0b\x66ield_error\x18= \x01(\x0e\x32\x39.google.ads.googleads.v4.errors.FieldErrorEnum.FieldErrorH\x00\x12]\n\x10shared_set_error\x18> \x01(\x0e\x32\x41.google.ads.googleads.v4.errors.SharedSetErrorEnum.SharedSetErrorH\x00\x12o\n\x16shared_criterion_error\x18? \x01(\x0e\x32M.google.ads.googleads.v4.errors.SharedCriterionErrorEnum.SharedCriterionErrorH\x00\x12v\n\x19\x63\x61mpaign_shared_set_error\x18@ \x01(\x0e\x32Q.google.ads.googleads.v4.errors.CampaignSharedSetErrorEnum.CampaignSharedSetErrorH\x00\x12r\n\x17\x63onversion_action_error\x18\x41 \x01(\x0e\x32O.google.ads.googleads.v4.errors.ConversionActionErrorEnum.ConversionActionErrorH\x00\x12\x91\x01\n\"conversion_adjustment_upload_error\x18s \x01(\x0e\x32\x63.google.ads.googleads.v4.errors.ConversionAdjustmentUploadErrorEnum.ConversionAdjustmentUploadErrorH\x00\x12r\n\x17\x63onversion_upload_error\x18o \x01(\x0e\x32O.google.ads.googleads.v4.errors.ConversionUploadErrorEnum.ConversionUploadErrorH\x00\x12S\n\x0cheader_error\x18\x42 \x01(\x0e\x32;.google.ads.googleads.v4.errors.HeaderErrorEnum.HeaderErrorH\x00\x12Y\n\x0e\x64\x61tabase_error\x18\x43 \x01(\x0e\x32?.google.ads.googleads.v4.errors.DatabaseErrorEnum.DatabaseErrorH\x00\x12i\n\x14policy_finding_error\x18\x44 \x01(\x0e\x32I.google.ads.googleads.v4.errors.PolicyFindingErrorEnum.PolicyFindingErrorH\x00\x12M\n\nenum_error\x18\x46 \x01(\x0e\x32\x37.google.ads.googleads.v4.errors.EnumErrorEnum.EnumErrorH\x00\x12\x63\n\x12keyword_plan_error\x18G \x01(\x0e\x32\x45.google.ads.googleads.v4.errors.KeywordPlanErrorEnum.KeywordPlanErrorH\x00\x12|\n\x1bkeyword_plan_campaign_error\x18H \x01(\x0e\x32U.google.ads.googleads.v4.errors.KeywordPlanCampaignErrorEnum.KeywordPlanCampaignErrorH\x00\x12\x93\x01\n#keyword_plan_campaign_keyword_error\x18\x84\x01 \x01(\x0e\x32\x63.google.ads.googleads.v4.errors.KeywordPlanCampaignKeywordErrorEnum.KeywordPlanCampaignKeywordErrorH\x00\x12z\n\x1bkeyword_plan_ad_group_error\x18J \x01(\x0e\x32S.google.ads.googleads.v4.errors.KeywordPlanAdGroupErrorEnum.KeywordPlanAdGroupErrorH\x00\x12\x91\x01\n#keyword_plan_ad_group_keyword_error\x18\x85\x01 \x01(\x0e\x32\x61.google.ads.googleads.v4.errors.KeywordPlanAdGroupKeywordErrorEnum.KeywordPlanAdGroupKeywordErrorH\x00\x12p\n\x17keyword_plan_idea_error\x18L \x01(\x0e\x32M.google.ads.googleads.v4.errors.KeywordPlanIdeaErrorEnum.KeywordPlanIdeaErrorH\x00\x12\x82\x01\n\x1d\x61\x63\x63ount_budget_proposal_error\x18M \x01(\x0e\x32Y.google.ads.googleads.v4.errors.AccountBudgetProposalErrorEnum.AccountBudgetProposalErrorH\x00\x12Z\n\x0fuser_list_error\x18N \x01(\x0e\x32?.google.ads.googleads.v4.errors.UserListErrorEnum.UserListErrorH\x00\x12\x66\n\x13\x63hange_status_error\x18O \x01(\x0e\x32G.google.ads.googleads.v4.errors.ChangeStatusErrorEnum.ChangeStatusErrorH\x00\x12M\n\nfeed_error\x18P \x01(\x0e\x32\x37.google.ads.googleads.v4.errors.FeedErrorEnum.FeedErrorH\x00\x12\x95\x01\n$geo_target_constant_suggestion_error\x18Q \x01(\x0e\x32\x65.google.ads.googleads.v4.errors.GeoTargetConstantSuggestionErrorEnum.GeoTargetConstantSuggestionErrorH\x00\x12i\n\x14\x63\x61mpaign_draft_error\x18R \x01(\x0e\x32I.google.ads.googleads.v4.errors.CampaignDraftErrorEnum.CampaignDraftErrorH\x00\x12Z\n\x0f\x66\x65\x65\x64_item_error\x18S \x01(\x0e\x32?.google.ads.googleads.v4.errors.FeedItemErrorEnum.FeedItemErrorH\x00\x12P\n\x0blabel_error\x18T \x01(\x0e\x32\x39.google.ads.googleads.v4.errors.LabelErrorEnum.LabelErrorH\x00\x12\x66\n\x13\x62illing_setup_error\x18W \x01(\x0e\x32G.google.ads.googleads.v4.errors.BillingSetupErrorEnum.BillingSetupErrorH\x00\x12y\n\x1a\x63ustomer_client_link_error\x18X \x01(\x0e\x32S.google.ads.googleads.v4.errors.CustomerClientLinkErrorEnum.CustomerClientLinkErrorH\x00\x12|\n\x1b\x63ustomer_manager_link_error\x18[ \x01(\x0e\x32U.google.ads.googleads.v4.errors.CustomerManagerLinkErrorEnum.CustomerManagerLinkErrorH\x00\x12\x63\n\x12\x66\x65\x65\x64_mapping_error\x18\\ \x01(\x0e\x32\x45.google.ads.googleads.v4.errors.FeedMappingErrorEnum.FeedMappingErrorH\x00\x12\x66\n\x13\x63ustomer_feed_error\x18] \x01(\x0e\x32G.google.ads.googleads.v4.errors.CustomerFeedErrorEnum.CustomerFeedErrorH\x00\x12\x64\n\x13\x61\x64_group_feed_error\x18^ \x01(\x0e\x32\x45.google.ads.googleads.v4.errors.AdGroupFeedErrorEnum.AdGroupFeedErrorH\x00\x12\x66\n\x13\x63\x61mpaign_feed_error\x18` \x01(\x0e\x32G.google.ads.googleads.v4.errors.CampaignFeedErrorEnum.CampaignFeedErrorH\x00\x12l\n\x15\x63ustom_interest_error\x18\x61 \x01(\x0e\x32K.google.ads.googleads.v4.errors.CustomInterestErrorEnum.CustomInterestErrorH\x00\x12x\n\x19\x63\x61mpaign_experiment_error\x18\x62 \x01(\x0e\x32S.google.ads.googleads.v4.errors.CampaignExperimentErrorEnum.CampaignExperimentErrorH\x00\x12v\n\x19\x65xtension_feed_item_error\x18\x64 \x01(\x0e\x32Q.google.ads.googleads.v4.errors.ExtensionFeedItemErrorEnum.ExtensionFeedItemErrorH\x00\x12\x63\n\x12\x61\x64_parameter_error\x18\x65 \x01(\x0e\x32\x45.google.ads.googleads.v4.errors.AdParameterErrorEnum.AdParameterErrorH\x00\x12y\n\x1a\x66\x65\x65\x64_item_validation_error\x18\x66 \x01(\x0e\x32S.google.ads.googleads.v4.errors.FeedItemValidationErrorEnum.FeedItemValidationErrorH\x00\x12r\n\x17\x65xtension_setting_error\x18g \x01(\x0e\x32O.google.ads.googleads.v4.errors.ExtensionSettingErrorEnum.ExtensionSettingErrorH\x00\x12m\n\x16\x66\x65\x65\x64_item_target_error\x18h \x01(\x0e\x32K.google.ads.googleads.v4.errors.FeedItemTargetErrorEnum.FeedItemTargetErrorH\x00\x12o\n\x16policy_violation_error\x18i \x01(\x0e\x32M.google.ads.googleads.v4.errors.PolicyViolationErrorEnum.PolicyViolationErrorH\x00\x12l\n\x15partial_failure_error\x18p \x01(\x0e\x32K.google.ads.googleads.v4.errors.PartialFailureErrorEnum.PartialFailureErrorH\x00\x12\x8e\x01\n!policy_validation_parameter_error\x18r \x01(\x0e\x32\x61.google.ads.googleads.v4.errors.PolicyValidationParameterErrorEnum.PolicyValidationParameterErrorH\x00\x12]\n\x10size_limit_error\x18v \x01(\x0e\x32\x41.google.ads.googleads.v4.errors.SizeLimitErrorEnum.SizeLimitErrorH\x00\x12z\n\x1boffline_user_data_job_error\x18w \x01(\x0e\x32S.google.ads.googleads.v4.errors.OfflineUserDataJobErrorEnum.OfflineUserDataJobErrorH\x00\x12l\n\x15not_whitelisted_error\x18x \x01(\x0e\x32K.google.ads.googleads.v4.errors.NotWhitelistedErrorEnum.NotWhitelistedErrorH\x00\x12\x63\n\x12manager_link_error\x18y \x01(\x0e\x32\x45.google.ads.googleads.v4.errors.ManagerLinkErrorEnum.ManagerLinkErrorH\x00\x12\x66\n\x13\x63urrency_code_error\x18z \x01(\x0e\x32G.google.ads.googleads.v4.errors.CurrencyCodeErrorEnum.CurrencyCodeErrorH\x00\x12r\n\x17\x61\x63\x63\x65ss_invitation_error\x18| \x01(\x0e\x32O.google.ads.googleads.v4.errors.AccessInvitationErrorEnum.AccessInvitationErrorH\x00\x12]\n\x10reach_plan_error\x18} \x01(\x0e\x32\x41.google.ads.googleads.v4.errors.ReachPlanErrorEnum.ReachPlanErrorH\x00\x12V\n\rinvoice_error\x18~ \x01(\x0e\x32=.google.ads.googleads.v4.errors.InvoiceErrorEnum.InvoiceErrorH\x00\x12o\n\x16payments_account_error\x18\x7f \x01(\x0e\x32M.google.ads.googleads.v4.errors.PaymentsAccountErrorEnum.PaymentsAccountErrorH\x00\x12[\n\x0ftime_zone_error\x18\x80\x01 \x01(\x0e\x32?.google.ads.googleads.v4.errors.TimeZoneErrorEnum.TimeZoneErrorH\x00\x12^\n\x10\x61sset_link_error\x18\x81\x01 \x01(\x0e\x32\x41.google.ads.googleads.v4.errors.AssetLinkErrorEnum.AssetLinkErrorH\x00\x12[\n\x0fuser_data_error\x18\x82\x01 \x01(\x0e\x32?.google.ads.googleads.v4.errors.UserDataErrorEnum.UserDataErrorH\x00\x12[\n\x0f\x62\x61tch_job_error\x18\x83\x01 \x01(\x0e\x32?.google.ads.googleads.v4.errors.BatchJobErrorEnum.BatchJobErrorH\x00\x42\x0c\n\nerror_code\"\xc0\x01\n\rErrorLocation\x12[\n\x13\x66ield_path_elements\x18\x02 \x03(\x0b\x32>.google.ads.googleads.v4.errors.ErrorLocation.FieldPathElement\x1aR\n\x10\x46ieldPathElement\x12\x12\n\nfield_name\x18\x01 \x01(\t\x12*\n\x05index\x18\x02 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\"\xde\x01\n\x0c\x45rrorDetails\x12\x1e\n\x16unpublished_error_code\x18\x01 \x01(\t\x12X\n\x18policy_violation_details\x18\x02 \x01(\x0b\x32\x36.google.ads.googleads.v4.errors.PolicyViolationDetails\x12T\n\x16policy_finding_details\x18\x03 \x01(\x0b\x32\x34.google.ads.googleads.v4.errors.PolicyFindingDetails\"\xb3\x01\n\x16PolicyViolationDetails\x12#\n\x1b\x65xternal_policy_description\x18\x02 \x01(\t\x12?\n\x03key\x18\x04 \x01(\x0b\x32\x32.google.ads.googleads.v4.common.PolicyViolationKey\x12\x1c\n\x14\x65xternal_policy_name\x18\x05 \x01(\t\x12\x15\n\ris_exemptible\x18\x06 \x01(\x08\"f\n\x14PolicyFindingDetails\x12N\n\x14policy_topic_entries\x18\x01 \x03(\x0b\x32\x30.google.ads.googleads.v4.common.PolicyTopicEntryB\xe6\x01\n\"com.google.ads.googleads.v4.errorsB\x0b\x45rrorsProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V4.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V4\\Errors\xea\x02\"Google::Ads::GoogleAds::V4::Errorsb\x06proto3') + , + dependencies=[google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_policy__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_value__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_access__invitation__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_account__budget__proposal__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_ad__customizer__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_ad__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_ad__group__ad__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_ad__group__bid__modifier__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_ad__group__criterion__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_ad__group__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_ad__group__feed__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_ad__parameter__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_ad__sharing__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_adx__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_asset__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_asset__link__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_authentication__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_authorization__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_batch__job__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_bidding__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_bidding__strategy__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_billing__setup__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_campaign__budget__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_campaign__criterion__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_campaign__draft__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_campaign__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_campaign__experiment__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_campaign__feed__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_campaign__shared__set__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_change__status__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_collection__size__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_context__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_conversion__action__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_conversion__adjustment__upload__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_conversion__upload__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_country__code__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_criterion__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_currency__code__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_custom__interest__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_customer__client__link__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_customer__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_customer__feed__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_customer__manager__link__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_database__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_date__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_date__range__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_distinct__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_enum__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_extension__feed__item__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_extension__setting__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_feed__attribute__reference__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_feed__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_feed__item__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_feed__item__target__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_feed__item__validation__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_feed__mapping__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_field__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_field__mask__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_function__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_function__parsing__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_geo__target__constant__suggestion__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_header__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_id__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_image__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_internal__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_invoice__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_keyword__plan__ad__group__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_keyword__plan__ad__group__keyword__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_keyword__plan__campaign__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_keyword__plan__campaign__keyword__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_keyword__plan__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_keyword__plan__idea__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_label__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_language__code__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_list__operation__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_manager__link__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_media__bundle__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_media__file__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_media__upload__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_multiplier__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_mutate__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_new__resource__creation__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_not__empty__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_not__whitelisted__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_null__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_offline__user__data__job__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_operation__access__denied__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_operator__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_partial__failure__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_payments__account__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_policy__finding__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_policy__validation__parameter__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_policy__violation__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_query__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_quota__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_range__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_reach__plan__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_recommendation__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_region__code__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_request__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_resource__access__denied__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_resource__count__limit__exceeded__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_setting__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_shared__criterion__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_shared__set__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_size__limit__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_string__format__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_string__length__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_time__zone__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_url__field__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_user__data__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_user__list__error__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_youtube__video__registration__error__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + + +_GOOGLEADSFAILURE = _descriptor.Descriptor( + name='GoogleAdsFailure', + full_name='google.ads.googleads.v4.errors.GoogleAdsFailure', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='errors', full_name='google.ads.googleads.v4.errors.GoogleAdsFailure.errors', index=0, + number=1, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=7364, + serialized_end=7446, +) + + +_GOOGLEADSERROR = _descriptor.Descriptor( + name='GoogleAdsError', + full_name='google.ads.googleads.v4.errors.GoogleAdsError', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='error_code', full_name='google.ads.googleads.v4.errors.GoogleAdsError.error_code', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='message', full_name='google.ads.googleads.v4.errors.GoogleAdsError.message', index=1, + number=2, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='trigger', full_name='google.ads.googleads.v4.errors.GoogleAdsError.trigger', index=2, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='location', full_name='google.ads.googleads.v4.errors.GoogleAdsError.location', index=3, + number=4, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='details', full_name='google.ads.googleads.v4.errors.GoogleAdsError.details', index=4, + number=5, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=7449, + serialized_end=7729, +) + + +_ERRORCODE = _descriptor.Descriptor( + name='ErrorCode', + full_name='google.ads.googleads.v4.errors.ErrorCode', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='request_error', full_name='google.ads.googleads.v4.errors.ErrorCode.request_error', index=0, + number=1, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='bidding_strategy_error', full_name='google.ads.googleads.v4.errors.ErrorCode.bidding_strategy_error', index=1, + number=2, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='url_field_error', full_name='google.ads.googleads.v4.errors.ErrorCode.url_field_error', index=2, + number=3, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='list_operation_error', full_name='google.ads.googleads.v4.errors.ErrorCode.list_operation_error', index=3, + number=4, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='query_error', full_name='google.ads.googleads.v4.errors.ErrorCode.query_error', index=4, + number=5, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='mutate_error', full_name='google.ads.googleads.v4.errors.ErrorCode.mutate_error', index=5, + number=7, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='field_mask_error', full_name='google.ads.googleads.v4.errors.ErrorCode.field_mask_error', index=6, + number=8, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='authorization_error', full_name='google.ads.googleads.v4.errors.ErrorCode.authorization_error', index=7, + number=9, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='internal_error', full_name='google.ads.googleads.v4.errors.ErrorCode.internal_error', index=8, + number=10, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='quota_error', full_name='google.ads.googleads.v4.errors.ErrorCode.quota_error', index=9, + number=11, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='ad_error', full_name='google.ads.googleads.v4.errors.ErrorCode.ad_error', index=10, + number=12, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='ad_group_error', full_name='google.ads.googleads.v4.errors.ErrorCode.ad_group_error', index=11, + number=13, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='campaign_budget_error', full_name='google.ads.googleads.v4.errors.ErrorCode.campaign_budget_error', index=12, + number=14, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='campaign_error', full_name='google.ads.googleads.v4.errors.ErrorCode.campaign_error', index=13, + number=15, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='authentication_error', full_name='google.ads.googleads.v4.errors.ErrorCode.authentication_error', index=14, + number=17, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='ad_group_criterion_error', full_name='google.ads.googleads.v4.errors.ErrorCode.ad_group_criterion_error', index=15, + number=18, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='ad_customizer_error', full_name='google.ads.googleads.v4.errors.ErrorCode.ad_customizer_error', index=16, + number=19, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='ad_group_ad_error', full_name='google.ads.googleads.v4.errors.ErrorCode.ad_group_ad_error', index=17, + number=21, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='ad_sharing_error', full_name='google.ads.googleads.v4.errors.ErrorCode.ad_sharing_error', index=18, + number=24, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='adx_error', full_name='google.ads.googleads.v4.errors.ErrorCode.adx_error', index=19, + number=25, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='asset_error', full_name='google.ads.googleads.v4.errors.ErrorCode.asset_error', index=20, + number=107, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='bidding_error', full_name='google.ads.googleads.v4.errors.ErrorCode.bidding_error', index=21, + number=26, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='campaign_criterion_error', full_name='google.ads.googleads.v4.errors.ErrorCode.campaign_criterion_error', index=22, + number=29, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='collection_size_error', full_name='google.ads.googleads.v4.errors.ErrorCode.collection_size_error', index=23, + number=31, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='country_code_error', full_name='google.ads.googleads.v4.errors.ErrorCode.country_code_error', index=24, + number=109, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='criterion_error', full_name='google.ads.googleads.v4.errors.ErrorCode.criterion_error', index=25, + number=32, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='customer_error', full_name='google.ads.googleads.v4.errors.ErrorCode.customer_error', index=26, + number=90, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='date_error', full_name='google.ads.googleads.v4.errors.ErrorCode.date_error', index=27, + number=33, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='date_range_error', full_name='google.ads.googleads.v4.errors.ErrorCode.date_range_error', index=28, + number=34, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='distinct_error', full_name='google.ads.googleads.v4.errors.ErrorCode.distinct_error', index=29, + number=35, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='feed_attribute_reference_error', full_name='google.ads.googleads.v4.errors.ErrorCode.feed_attribute_reference_error', index=30, + number=36, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='function_error', full_name='google.ads.googleads.v4.errors.ErrorCode.function_error', index=31, + number=37, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='function_parsing_error', full_name='google.ads.googleads.v4.errors.ErrorCode.function_parsing_error', index=32, + number=38, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='id_error', full_name='google.ads.googleads.v4.errors.ErrorCode.id_error', index=33, + number=39, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='image_error', full_name='google.ads.googleads.v4.errors.ErrorCode.image_error', index=34, + number=40, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='language_code_error', full_name='google.ads.googleads.v4.errors.ErrorCode.language_code_error', index=35, + number=110, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='media_bundle_error', full_name='google.ads.googleads.v4.errors.ErrorCode.media_bundle_error', index=36, + number=42, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='media_upload_error', full_name='google.ads.googleads.v4.errors.ErrorCode.media_upload_error', index=37, + number=116, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='media_file_error', full_name='google.ads.googleads.v4.errors.ErrorCode.media_file_error', index=38, + number=86, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='multiplier_error', full_name='google.ads.googleads.v4.errors.ErrorCode.multiplier_error', index=39, + number=44, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='new_resource_creation_error', full_name='google.ads.googleads.v4.errors.ErrorCode.new_resource_creation_error', index=40, + number=45, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='not_empty_error', full_name='google.ads.googleads.v4.errors.ErrorCode.not_empty_error', index=41, + number=46, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='null_error', full_name='google.ads.googleads.v4.errors.ErrorCode.null_error', index=42, + number=47, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='operator_error', full_name='google.ads.googleads.v4.errors.ErrorCode.operator_error', index=43, + number=48, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='range_error', full_name='google.ads.googleads.v4.errors.ErrorCode.range_error', index=44, + number=49, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='recommendation_error', full_name='google.ads.googleads.v4.errors.ErrorCode.recommendation_error', index=45, + number=58, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='region_code_error', full_name='google.ads.googleads.v4.errors.ErrorCode.region_code_error', index=46, + number=51, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='setting_error', full_name='google.ads.googleads.v4.errors.ErrorCode.setting_error', index=47, + number=52, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='string_format_error', full_name='google.ads.googleads.v4.errors.ErrorCode.string_format_error', index=48, + number=53, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='string_length_error', full_name='google.ads.googleads.v4.errors.ErrorCode.string_length_error', index=49, + number=54, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='operation_access_denied_error', full_name='google.ads.googleads.v4.errors.ErrorCode.operation_access_denied_error', index=50, + number=55, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='resource_access_denied_error', full_name='google.ads.googleads.v4.errors.ErrorCode.resource_access_denied_error', index=51, + number=56, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='resource_count_limit_exceeded_error', full_name='google.ads.googleads.v4.errors.ErrorCode.resource_count_limit_exceeded_error', index=52, + number=57, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='youtube_video_registration_error', full_name='google.ads.googleads.v4.errors.ErrorCode.youtube_video_registration_error', index=53, + number=117, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='ad_group_bid_modifier_error', full_name='google.ads.googleads.v4.errors.ErrorCode.ad_group_bid_modifier_error', index=54, + number=59, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='context_error', full_name='google.ads.googleads.v4.errors.ErrorCode.context_error', index=55, + number=60, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='field_error', full_name='google.ads.googleads.v4.errors.ErrorCode.field_error', index=56, + number=61, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='shared_set_error', full_name='google.ads.googleads.v4.errors.ErrorCode.shared_set_error', index=57, + number=62, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='shared_criterion_error', full_name='google.ads.googleads.v4.errors.ErrorCode.shared_criterion_error', index=58, + number=63, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='campaign_shared_set_error', full_name='google.ads.googleads.v4.errors.ErrorCode.campaign_shared_set_error', index=59, + number=64, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='conversion_action_error', full_name='google.ads.googleads.v4.errors.ErrorCode.conversion_action_error', index=60, + number=65, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='conversion_adjustment_upload_error', full_name='google.ads.googleads.v4.errors.ErrorCode.conversion_adjustment_upload_error', index=61, + number=115, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='conversion_upload_error', full_name='google.ads.googleads.v4.errors.ErrorCode.conversion_upload_error', index=62, + number=111, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='header_error', full_name='google.ads.googleads.v4.errors.ErrorCode.header_error', index=63, + number=66, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='database_error', full_name='google.ads.googleads.v4.errors.ErrorCode.database_error', index=64, + number=67, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='policy_finding_error', full_name='google.ads.googleads.v4.errors.ErrorCode.policy_finding_error', index=65, + number=68, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='enum_error', full_name='google.ads.googleads.v4.errors.ErrorCode.enum_error', index=66, + number=70, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='keyword_plan_error', full_name='google.ads.googleads.v4.errors.ErrorCode.keyword_plan_error', index=67, + number=71, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='keyword_plan_campaign_error', full_name='google.ads.googleads.v4.errors.ErrorCode.keyword_plan_campaign_error', index=68, + number=72, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='keyword_plan_campaign_keyword_error', full_name='google.ads.googleads.v4.errors.ErrorCode.keyword_plan_campaign_keyword_error', index=69, + number=132, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='keyword_plan_ad_group_error', full_name='google.ads.googleads.v4.errors.ErrorCode.keyword_plan_ad_group_error', index=70, + number=74, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='keyword_plan_ad_group_keyword_error', full_name='google.ads.googleads.v4.errors.ErrorCode.keyword_plan_ad_group_keyword_error', index=71, + number=133, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='keyword_plan_idea_error', full_name='google.ads.googleads.v4.errors.ErrorCode.keyword_plan_idea_error', index=72, + number=76, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='account_budget_proposal_error', full_name='google.ads.googleads.v4.errors.ErrorCode.account_budget_proposal_error', index=73, + number=77, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='user_list_error', full_name='google.ads.googleads.v4.errors.ErrorCode.user_list_error', index=74, + number=78, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='change_status_error', full_name='google.ads.googleads.v4.errors.ErrorCode.change_status_error', index=75, + number=79, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='feed_error', full_name='google.ads.googleads.v4.errors.ErrorCode.feed_error', index=76, + number=80, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='geo_target_constant_suggestion_error', full_name='google.ads.googleads.v4.errors.ErrorCode.geo_target_constant_suggestion_error', index=77, + number=81, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='campaign_draft_error', full_name='google.ads.googleads.v4.errors.ErrorCode.campaign_draft_error', index=78, + number=82, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='feed_item_error', full_name='google.ads.googleads.v4.errors.ErrorCode.feed_item_error', index=79, + number=83, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='label_error', full_name='google.ads.googleads.v4.errors.ErrorCode.label_error', index=80, + number=84, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='billing_setup_error', full_name='google.ads.googleads.v4.errors.ErrorCode.billing_setup_error', index=81, + number=87, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='customer_client_link_error', full_name='google.ads.googleads.v4.errors.ErrorCode.customer_client_link_error', index=82, + number=88, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='customer_manager_link_error', full_name='google.ads.googleads.v4.errors.ErrorCode.customer_manager_link_error', index=83, + number=91, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='feed_mapping_error', full_name='google.ads.googleads.v4.errors.ErrorCode.feed_mapping_error', index=84, + number=92, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='customer_feed_error', full_name='google.ads.googleads.v4.errors.ErrorCode.customer_feed_error', index=85, + number=93, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='ad_group_feed_error', full_name='google.ads.googleads.v4.errors.ErrorCode.ad_group_feed_error', index=86, + number=94, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='campaign_feed_error', full_name='google.ads.googleads.v4.errors.ErrorCode.campaign_feed_error', index=87, + number=96, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='custom_interest_error', full_name='google.ads.googleads.v4.errors.ErrorCode.custom_interest_error', index=88, + number=97, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='campaign_experiment_error', full_name='google.ads.googleads.v4.errors.ErrorCode.campaign_experiment_error', index=89, + number=98, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='extension_feed_item_error', full_name='google.ads.googleads.v4.errors.ErrorCode.extension_feed_item_error', index=90, + number=100, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='ad_parameter_error', full_name='google.ads.googleads.v4.errors.ErrorCode.ad_parameter_error', index=91, + number=101, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='feed_item_validation_error', full_name='google.ads.googleads.v4.errors.ErrorCode.feed_item_validation_error', index=92, + number=102, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='extension_setting_error', full_name='google.ads.googleads.v4.errors.ErrorCode.extension_setting_error', index=93, + number=103, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='feed_item_target_error', full_name='google.ads.googleads.v4.errors.ErrorCode.feed_item_target_error', index=94, + number=104, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='policy_violation_error', full_name='google.ads.googleads.v4.errors.ErrorCode.policy_violation_error', index=95, + number=105, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='partial_failure_error', full_name='google.ads.googleads.v4.errors.ErrorCode.partial_failure_error', index=96, + number=112, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='policy_validation_parameter_error', full_name='google.ads.googleads.v4.errors.ErrorCode.policy_validation_parameter_error', index=97, + number=114, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='size_limit_error', full_name='google.ads.googleads.v4.errors.ErrorCode.size_limit_error', index=98, + number=118, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='offline_user_data_job_error', full_name='google.ads.googleads.v4.errors.ErrorCode.offline_user_data_job_error', index=99, + number=119, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='not_whitelisted_error', full_name='google.ads.googleads.v4.errors.ErrorCode.not_whitelisted_error', index=100, + number=120, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='manager_link_error', full_name='google.ads.googleads.v4.errors.ErrorCode.manager_link_error', index=101, + number=121, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='currency_code_error', full_name='google.ads.googleads.v4.errors.ErrorCode.currency_code_error', index=102, + number=122, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='access_invitation_error', full_name='google.ads.googleads.v4.errors.ErrorCode.access_invitation_error', index=103, + number=124, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='reach_plan_error', full_name='google.ads.googleads.v4.errors.ErrorCode.reach_plan_error', index=104, + number=125, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='invoice_error', full_name='google.ads.googleads.v4.errors.ErrorCode.invoice_error', index=105, + number=126, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='payments_account_error', full_name='google.ads.googleads.v4.errors.ErrorCode.payments_account_error', index=106, + number=127, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='time_zone_error', full_name='google.ads.googleads.v4.errors.ErrorCode.time_zone_error', index=107, + number=128, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='asset_link_error', full_name='google.ads.googleads.v4.errors.ErrorCode.asset_link_error', index=108, + number=129, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='user_data_error', full_name='google.ads.googleads.v4.errors.ErrorCode.user_data_error', index=109, + number=130, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='batch_job_error', full_name='google.ads.googleads.v4.errors.ErrorCode.batch_job_error', index=110, + number=131, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name='error_code', full_name='google.ads.googleads.v4.errors.ErrorCode.error_code', + index=0, containing_type=None, fields=[]), + ], + serialized_start=7732, + serialized_end=19351, +) + + +_ERRORLOCATION_FIELDPATHELEMENT = _descriptor.Descriptor( + name='FieldPathElement', + full_name='google.ads.googleads.v4.errors.ErrorLocation.FieldPathElement', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='field_name', full_name='google.ads.googleads.v4.errors.ErrorLocation.FieldPathElement.field_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='index', full_name='google.ads.googleads.v4.errors.ErrorLocation.FieldPathElement.index', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=19464, + serialized_end=19546, +) + +_ERRORLOCATION = _descriptor.Descriptor( + name='ErrorLocation', + full_name='google.ads.googleads.v4.errors.ErrorLocation', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='field_path_elements', full_name='google.ads.googleads.v4.errors.ErrorLocation.field_path_elements', index=0, + number=2, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[_ERRORLOCATION_FIELDPATHELEMENT, ], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=19354, + serialized_end=19546, +) + + +_ERRORDETAILS = _descriptor.Descriptor( + name='ErrorDetails', + full_name='google.ads.googleads.v4.errors.ErrorDetails', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='unpublished_error_code', full_name='google.ads.googleads.v4.errors.ErrorDetails.unpublished_error_code', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='policy_violation_details', full_name='google.ads.googleads.v4.errors.ErrorDetails.policy_violation_details', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='policy_finding_details', full_name='google.ads.googleads.v4.errors.ErrorDetails.policy_finding_details', index=2, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=19549, + serialized_end=19771, +) + + +_POLICYVIOLATIONDETAILS = _descriptor.Descriptor( + name='PolicyViolationDetails', + full_name='google.ads.googleads.v4.errors.PolicyViolationDetails', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='external_policy_description', full_name='google.ads.googleads.v4.errors.PolicyViolationDetails.external_policy_description', index=0, + number=2, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='key', full_name='google.ads.googleads.v4.errors.PolicyViolationDetails.key', index=1, + number=4, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='external_policy_name', full_name='google.ads.googleads.v4.errors.PolicyViolationDetails.external_policy_name', index=2, + number=5, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='is_exemptible', full_name='google.ads.googleads.v4.errors.PolicyViolationDetails.is_exemptible', index=3, + number=6, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=19774, + serialized_end=19953, +) + + +_POLICYFINDINGDETAILS = _descriptor.Descriptor( + name='PolicyFindingDetails', + full_name='google.ads.googleads.v4.errors.PolicyFindingDetails', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='policy_topic_entries', full_name='google.ads.googleads.v4.errors.PolicyFindingDetails.policy_topic_entries', index=0, + number=1, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=19955, + serialized_end=20057, +) + +_GOOGLEADSFAILURE.fields_by_name['errors'].message_type = _GOOGLEADSERROR +_GOOGLEADSERROR.fields_by_name['error_code'].message_type = _ERRORCODE +_GOOGLEADSERROR.fields_by_name['trigger'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_value__pb2._VALUE +_GOOGLEADSERROR.fields_by_name['location'].message_type = _ERRORLOCATION +_GOOGLEADSERROR.fields_by_name['details'].message_type = _ERRORDETAILS +_ERRORCODE.fields_by_name['request_error'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_request__error__pb2._REQUESTERRORENUM_REQUESTERROR +_ERRORCODE.fields_by_name['bidding_strategy_error'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_bidding__strategy__error__pb2._BIDDINGSTRATEGYERRORENUM_BIDDINGSTRATEGYERROR +_ERRORCODE.fields_by_name['url_field_error'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_url__field__error__pb2._URLFIELDERRORENUM_URLFIELDERROR +_ERRORCODE.fields_by_name['list_operation_error'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_list__operation__error__pb2._LISTOPERATIONERRORENUM_LISTOPERATIONERROR +_ERRORCODE.fields_by_name['query_error'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_query__error__pb2._QUERYERRORENUM_QUERYERROR +_ERRORCODE.fields_by_name['mutate_error'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_mutate__error__pb2._MUTATEERRORENUM_MUTATEERROR +_ERRORCODE.fields_by_name['field_mask_error'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_field__mask__error__pb2._FIELDMASKERRORENUM_FIELDMASKERROR +_ERRORCODE.fields_by_name['authorization_error'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_authorization__error__pb2._AUTHORIZATIONERRORENUM_AUTHORIZATIONERROR +_ERRORCODE.fields_by_name['internal_error'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_internal__error__pb2._INTERNALERRORENUM_INTERNALERROR +_ERRORCODE.fields_by_name['quota_error'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_quota__error__pb2._QUOTAERRORENUM_QUOTAERROR +_ERRORCODE.fields_by_name['ad_error'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_ad__error__pb2._ADERRORENUM_ADERROR +_ERRORCODE.fields_by_name['ad_group_error'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_ad__group__error__pb2._ADGROUPERRORENUM_ADGROUPERROR +_ERRORCODE.fields_by_name['campaign_budget_error'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_campaign__budget__error__pb2._CAMPAIGNBUDGETERRORENUM_CAMPAIGNBUDGETERROR +_ERRORCODE.fields_by_name['campaign_error'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_campaign__error__pb2._CAMPAIGNERRORENUM_CAMPAIGNERROR +_ERRORCODE.fields_by_name['authentication_error'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_authentication__error__pb2._AUTHENTICATIONERRORENUM_AUTHENTICATIONERROR +_ERRORCODE.fields_by_name['ad_group_criterion_error'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_ad__group__criterion__error__pb2._ADGROUPCRITERIONERRORENUM_ADGROUPCRITERIONERROR +_ERRORCODE.fields_by_name['ad_customizer_error'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_ad__customizer__error__pb2._ADCUSTOMIZERERRORENUM_ADCUSTOMIZERERROR +_ERRORCODE.fields_by_name['ad_group_ad_error'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_ad__group__ad__error__pb2._ADGROUPADERRORENUM_ADGROUPADERROR +_ERRORCODE.fields_by_name['ad_sharing_error'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_ad__sharing__error__pb2._ADSHARINGERRORENUM_ADSHARINGERROR +_ERRORCODE.fields_by_name['adx_error'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_adx__error__pb2._ADXERRORENUM_ADXERROR +_ERRORCODE.fields_by_name['asset_error'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_asset__error__pb2._ASSETERRORENUM_ASSETERROR +_ERRORCODE.fields_by_name['bidding_error'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_bidding__error__pb2._BIDDINGERRORENUM_BIDDINGERROR +_ERRORCODE.fields_by_name['campaign_criterion_error'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_campaign__criterion__error__pb2._CAMPAIGNCRITERIONERRORENUM_CAMPAIGNCRITERIONERROR +_ERRORCODE.fields_by_name['collection_size_error'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_collection__size__error__pb2._COLLECTIONSIZEERRORENUM_COLLECTIONSIZEERROR +_ERRORCODE.fields_by_name['country_code_error'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_country__code__error__pb2._COUNTRYCODEERRORENUM_COUNTRYCODEERROR +_ERRORCODE.fields_by_name['criterion_error'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_criterion__error__pb2._CRITERIONERRORENUM_CRITERIONERROR +_ERRORCODE.fields_by_name['customer_error'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_customer__error__pb2._CUSTOMERERRORENUM_CUSTOMERERROR +_ERRORCODE.fields_by_name['date_error'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_date__error__pb2._DATEERRORENUM_DATEERROR +_ERRORCODE.fields_by_name['date_range_error'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_date__range__error__pb2._DATERANGEERRORENUM_DATERANGEERROR +_ERRORCODE.fields_by_name['distinct_error'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_distinct__error__pb2._DISTINCTERRORENUM_DISTINCTERROR +_ERRORCODE.fields_by_name['feed_attribute_reference_error'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_feed__attribute__reference__error__pb2._FEEDATTRIBUTEREFERENCEERRORENUM_FEEDATTRIBUTEREFERENCEERROR +_ERRORCODE.fields_by_name['function_error'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_function__error__pb2._FUNCTIONERRORENUM_FUNCTIONERROR +_ERRORCODE.fields_by_name['function_parsing_error'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_function__parsing__error__pb2._FUNCTIONPARSINGERRORENUM_FUNCTIONPARSINGERROR +_ERRORCODE.fields_by_name['id_error'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_id__error__pb2._IDERRORENUM_IDERROR +_ERRORCODE.fields_by_name['image_error'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_image__error__pb2._IMAGEERRORENUM_IMAGEERROR +_ERRORCODE.fields_by_name['language_code_error'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_language__code__error__pb2._LANGUAGECODEERRORENUM_LANGUAGECODEERROR +_ERRORCODE.fields_by_name['media_bundle_error'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_media__bundle__error__pb2._MEDIABUNDLEERRORENUM_MEDIABUNDLEERROR +_ERRORCODE.fields_by_name['media_upload_error'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_media__upload__error__pb2._MEDIAUPLOADERRORENUM_MEDIAUPLOADERROR +_ERRORCODE.fields_by_name['media_file_error'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_media__file__error__pb2._MEDIAFILEERRORENUM_MEDIAFILEERROR +_ERRORCODE.fields_by_name['multiplier_error'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_multiplier__error__pb2._MULTIPLIERERRORENUM_MULTIPLIERERROR +_ERRORCODE.fields_by_name['new_resource_creation_error'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_new__resource__creation__error__pb2._NEWRESOURCECREATIONERRORENUM_NEWRESOURCECREATIONERROR +_ERRORCODE.fields_by_name['not_empty_error'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_not__empty__error__pb2._NOTEMPTYERRORENUM_NOTEMPTYERROR +_ERRORCODE.fields_by_name['null_error'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_null__error__pb2._NULLERRORENUM_NULLERROR +_ERRORCODE.fields_by_name['operator_error'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_operator__error__pb2._OPERATORERRORENUM_OPERATORERROR +_ERRORCODE.fields_by_name['range_error'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_range__error__pb2._RANGEERRORENUM_RANGEERROR +_ERRORCODE.fields_by_name['recommendation_error'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_recommendation__error__pb2._RECOMMENDATIONERRORENUM_RECOMMENDATIONERROR +_ERRORCODE.fields_by_name['region_code_error'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_region__code__error__pb2._REGIONCODEERRORENUM_REGIONCODEERROR +_ERRORCODE.fields_by_name['setting_error'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_setting__error__pb2._SETTINGERRORENUM_SETTINGERROR +_ERRORCODE.fields_by_name['string_format_error'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_string__format__error__pb2._STRINGFORMATERRORENUM_STRINGFORMATERROR +_ERRORCODE.fields_by_name['string_length_error'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_string__length__error__pb2._STRINGLENGTHERRORENUM_STRINGLENGTHERROR +_ERRORCODE.fields_by_name['operation_access_denied_error'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_operation__access__denied__error__pb2._OPERATIONACCESSDENIEDERRORENUM_OPERATIONACCESSDENIEDERROR +_ERRORCODE.fields_by_name['resource_access_denied_error'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_resource__access__denied__error__pb2._RESOURCEACCESSDENIEDERRORENUM_RESOURCEACCESSDENIEDERROR +_ERRORCODE.fields_by_name['resource_count_limit_exceeded_error'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_resource__count__limit__exceeded__error__pb2._RESOURCECOUNTLIMITEXCEEDEDERRORENUM_RESOURCECOUNTLIMITEXCEEDEDERROR +_ERRORCODE.fields_by_name['youtube_video_registration_error'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_youtube__video__registration__error__pb2._YOUTUBEVIDEOREGISTRATIONERRORENUM_YOUTUBEVIDEOREGISTRATIONERROR +_ERRORCODE.fields_by_name['ad_group_bid_modifier_error'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_ad__group__bid__modifier__error__pb2._ADGROUPBIDMODIFIERERRORENUM_ADGROUPBIDMODIFIERERROR +_ERRORCODE.fields_by_name['context_error'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_context__error__pb2._CONTEXTERRORENUM_CONTEXTERROR +_ERRORCODE.fields_by_name['field_error'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_field__error__pb2._FIELDERRORENUM_FIELDERROR +_ERRORCODE.fields_by_name['shared_set_error'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_shared__set__error__pb2._SHAREDSETERRORENUM_SHAREDSETERROR +_ERRORCODE.fields_by_name['shared_criterion_error'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_shared__criterion__error__pb2._SHAREDCRITERIONERRORENUM_SHAREDCRITERIONERROR +_ERRORCODE.fields_by_name['campaign_shared_set_error'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_campaign__shared__set__error__pb2._CAMPAIGNSHAREDSETERRORENUM_CAMPAIGNSHAREDSETERROR +_ERRORCODE.fields_by_name['conversion_action_error'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_conversion__action__error__pb2._CONVERSIONACTIONERRORENUM_CONVERSIONACTIONERROR +_ERRORCODE.fields_by_name['conversion_adjustment_upload_error'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_conversion__adjustment__upload__error__pb2._CONVERSIONADJUSTMENTUPLOADERRORENUM_CONVERSIONADJUSTMENTUPLOADERROR +_ERRORCODE.fields_by_name['conversion_upload_error'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_conversion__upload__error__pb2._CONVERSIONUPLOADERRORENUM_CONVERSIONUPLOADERROR +_ERRORCODE.fields_by_name['header_error'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_header__error__pb2._HEADERERRORENUM_HEADERERROR +_ERRORCODE.fields_by_name['database_error'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_database__error__pb2._DATABASEERRORENUM_DATABASEERROR +_ERRORCODE.fields_by_name['policy_finding_error'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_policy__finding__error__pb2._POLICYFINDINGERRORENUM_POLICYFINDINGERROR +_ERRORCODE.fields_by_name['enum_error'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_enum__error__pb2._ENUMERRORENUM_ENUMERROR +_ERRORCODE.fields_by_name['keyword_plan_error'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_keyword__plan__error__pb2._KEYWORDPLANERRORENUM_KEYWORDPLANERROR +_ERRORCODE.fields_by_name['keyword_plan_campaign_error'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_keyword__plan__campaign__error__pb2._KEYWORDPLANCAMPAIGNERRORENUM_KEYWORDPLANCAMPAIGNERROR +_ERRORCODE.fields_by_name['keyword_plan_campaign_keyword_error'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_keyword__plan__campaign__keyword__error__pb2._KEYWORDPLANCAMPAIGNKEYWORDERRORENUM_KEYWORDPLANCAMPAIGNKEYWORDERROR +_ERRORCODE.fields_by_name['keyword_plan_ad_group_error'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_keyword__plan__ad__group__error__pb2._KEYWORDPLANADGROUPERRORENUM_KEYWORDPLANADGROUPERROR +_ERRORCODE.fields_by_name['keyword_plan_ad_group_keyword_error'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_keyword__plan__ad__group__keyword__error__pb2._KEYWORDPLANADGROUPKEYWORDERRORENUM_KEYWORDPLANADGROUPKEYWORDERROR +_ERRORCODE.fields_by_name['keyword_plan_idea_error'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_keyword__plan__idea__error__pb2._KEYWORDPLANIDEAERRORENUM_KEYWORDPLANIDEAERROR +_ERRORCODE.fields_by_name['account_budget_proposal_error'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_account__budget__proposal__error__pb2._ACCOUNTBUDGETPROPOSALERRORENUM_ACCOUNTBUDGETPROPOSALERROR +_ERRORCODE.fields_by_name['user_list_error'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_user__list__error__pb2._USERLISTERRORENUM_USERLISTERROR +_ERRORCODE.fields_by_name['change_status_error'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_change__status__error__pb2._CHANGESTATUSERRORENUM_CHANGESTATUSERROR +_ERRORCODE.fields_by_name['feed_error'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_feed__error__pb2._FEEDERRORENUM_FEEDERROR +_ERRORCODE.fields_by_name['geo_target_constant_suggestion_error'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_geo__target__constant__suggestion__error__pb2._GEOTARGETCONSTANTSUGGESTIONERRORENUM_GEOTARGETCONSTANTSUGGESTIONERROR +_ERRORCODE.fields_by_name['campaign_draft_error'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_campaign__draft__error__pb2._CAMPAIGNDRAFTERRORENUM_CAMPAIGNDRAFTERROR +_ERRORCODE.fields_by_name['feed_item_error'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_feed__item__error__pb2._FEEDITEMERRORENUM_FEEDITEMERROR +_ERRORCODE.fields_by_name['label_error'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_label__error__pb2._LABELERRORENUM_LABELERROR +_ERRORCODE.fields_by_name['billing_setup_error'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_billing__setup__error__pb2._BILLINGSETUPERRORENUM_BILLINGSETUPERROR +_ERRORCODE.fields_by_name['customer_client_link_error'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_customer__client__link__error__pb2._CUSTOMERCLIENTLINKERRORENUM_CUSTOMERCLIENTLINKERROR +_ERRORCODE.fields_by_name['customer_manager_link_error'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_customer__manager__link__error__pb2._CUSTOMERMANAGERLINKERRORENUM_CUSTOMERMANAGERLINKERROR +_ERRORCODE.fields_by_name['feed_mapping_error'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_feed__mapping__error__pb2._FEEDMAPPINGERRORENUM_FEEDMAPPINGERROR +_ERRORCODE.fields_by_name['customer_feed_error'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_customer__feed__error__pb2._CUSTOMERFEEDERRORENUM_CUSTOMERFEEDERROR +_ERRORCODE.fields_by_name['ad_group_feed_error'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_ad__group__feed__error__pb2._ADGROUPFEEDERRORENUM_ADGROUPFEEDERROR +_ERRORCODE.fields_by_name['campaign_feed_error'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_campaign__feed__error__pb2._CAMPAIGNFEEDERRORENUM_CAMPAIGNFEEDERROR +_ERRORCODE.fields_by_name['custom_interest_error'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_custom__interest__error__pb2._CUSTOMINTERESTERRORENUM_CUSTOMINTERESTERROR +_ERRORCODE.fields_by_name['campaign_experiment_error'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_campaign__experiment__error__pb2._CAMPAIGNEXPERIMENTERRORENUM_CAMPAIGNEXPERIMENTERROR +_ERRORCODE.fields_by_name['extension_feed_item_error'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_extension__feed__item__error__pb2._EXTENSIONFEEDITEMERRORENUM_EXTENSIONFEEDITEMERROR +_ERRORCODE.fields_by_name['ad_parameter_error'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_ad__parameter__error__pb2._ADPARAMETERERRORENUM_ADPARAMETERERROR +_ERRORCODE.fields_by_name['feed_item_validation_error'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_feed__item__validation__error__pb2._FEEDITEMVALIDATIONERRORENUM_FEEDITEMVALIDATIONERROR +_ERRORCODE.fields_by_name['extension_setting_error'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_extension__setting__error__pb2._EXTENSIONSETTINGERRORENUM_EXTENSIONSETTINGERROR +_ERRORCODE.fields_by_name['feed_item_target_error'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_feed__item__target__error__pb2._FEEDITEMTARGETERRORENUM_FEEDITEMTARGETERROR +_ERRORCODE.fields_by_name['policy_violation_error'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_policy__violation__error__pb2._POLICYVIOLATIONERRORENUM_POLICYVIOLATIONERROR +_ERRORCODE.fields_by_name['partial_failure_error'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_partial__failure__error__pb2._PARTIALFAILUREERRORENUM_PARTIALFAILUREERROR +_ERRORCODE.fields_by_name['policy_validation_parameter_error'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_policy__validation__parameter__error__pb2._POLICYVALIDATIONPARAMETERERRORENUM_POLICYVALIDATIONPARAMETERERROR +_ERRORCODE.fields_by_name['size_limit_error'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_size__limit__error__pb2._SIZELIMITERRORENUM_SIZELIMITERROR +_ERRORCODE.fields_by_name['offline_user_data_job_error'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_offline__user__data__job__error__pb2._OFFLINEUSERDATAJOBERRORENUM_OFFLINEUSERDATAJOBERROR +_ERRORCODE.fields_by_name['not_whitelisted_error'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_not__whitelisted__error__pb2._NOTWHITELISTEDERRORENUM_NOTWHITELISTEDERROR +_ERRORCODE.fields_by_name['manager_link_error'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_manager__link__error__pb2._MANAGERLINKERRORENUM_MANAGERLINKERROR +_ERRORCODE.fields_by_name['currency_code_error'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_currency__code__error__pb2._CURRENCYCODEERRORENUM_CURRENCYCODEERROR +_ERRORCODE.fields_by_name['access_invitation_error'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_access__invitation__error__pb2._ACCESSINVITATIONERRORENUM_ACCESSINVITATIONERROR +_ERRORCODE.fields_by_name['reach_plan_error'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_reach__plan__error__pb2._REACHPLANERRORENUM_REACHPLANERROR +_ERRORCODE.fields_by_name['invoice_error'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_invoice__error__pb2._INVOICEERRORENUM_INVOICEERROR +_ERRORCODE.fields_by_name['payments_account_error'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_payments__account__error__pb2._PAYMENTSACCOUNTERRORENUM_PAYMENTSACCOUNTERROR +_ERRORCODE.fields_by_name['time_zone_error'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_time__zone__error__pb2._TIMEZONEERRORENUM_TIMEZONEERROR +_ERRORCODE.fields_by_name['asset_link_error'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_asset__link__error__pb2._ASSETLINKERRORENUM_ASSETLINKERROR +_ERRORCODE.fields_by_name['user_data_error'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_user__data__error__pb2._USERDATAERRORENUM_USERDATAERROR +_ERRORCODE.fields_by_name['batch_job_error'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_batch__job__error__pb2._BATCHJOBERRORENUM_BATCHJOBERROR +_ERRORCODE.oneofs_by_name['error_code'].fields.append( + _ERRORCODE.fields_by_name['request_error']) +_ERRORCODE.fields_by_name['request_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] +_ERRORCODE.oneofs_by_name['error_code'].fields.append( + _ERRORCODE.fields_by_name['bidding_strategy_error']) +_ERRORCODE.fields_by_name['bidding_strategy_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] +_ERRORCODE.oneofs_by_name['error_code'].fields.append( + _ERRORCODE.fields_by_name['url_field_error']) +_ERRORCODE.fields_by_name['url_field_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] +_ERRORCODE.oneofs_by_name['error_code'].fields.append( + _ERRORCODE.fields_by_name['list_operation_error']) +_ERRORCODE.fields_by_name['list_operation_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] +_ERRORCODE.oneofs_by_name['error_code'].fields.append( + _ERRORCODE.fields_by_name['query_error']) +_ERRORCODE.fields_by_name['query_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] +_ERRORCODE.oneofs_by_name['error_code'].fields.append( + _ERRORCODE.fields_by_name['mutate_error']) +_ERRORCODE.fields_by_name['mutate_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] +_ERRORCODE.oneofs_by_name['error_code'].fields.append( + _ERRORCODE.fields_by_name['field_mask_error']) +_ERRORCODE.fields_by_name['field_mask_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] +_ERRORCODE.oneofs_by_name['error_code'].fields.append( + _ERRORCODE.fields_by_name['authorization_error']) +_ERRORCODE.fields_by_name['authorization_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] +_ERRORCODE.oneofs_by_name['error_code'].fields.append( + _ERRORCODE.fields_by_name['internal_error']) +_ERRORCODE.fields_by_name['internal_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] +_ERRORCODE.oneofs_by_name['error_code'].fields.append( + _ERRORCODE.fields_by_name['quota_error']) +_ERRORCODE.fields_by_name['quota_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] +_ERRORCODE.oneofs_by_name['error_code'].fields.append( + _ERRORCODE.fields_by_name['ad_error']) +_ERRORCODE.fields_by_name['ad_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] +_ERRORCODE.oneofs_by_name['error_code'].fields.append( + _ERRORCODE.fields_by_name['ad_group_error']) +_ERRORCODE.fields_by_name['ad_group_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] +_ERRORCODE.oneofs_by_name['error_code'].fields.append( + _ERRORCODE.fields_by_name['campaign_budget_error']) +_ERRORCODE.fields_by_name['campaign_budget_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] +_ERRORCODE.oneofs_by_name['error_code'].fields.append( + _ERRORCODE.fields_by_name['campaign_error']) +_ERRORCODE.fields_by_name['campaign_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] +_ERRORCODE.oneofs_by_name['error_code'].fields.append( + _ERRORCODE.fields_by_name['authentication_error']) +_ERRORCODE.fields_by_name['authentication_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] +_ERRORCODE.oneofs_by_name['error_code'].fields.append( + _ERRORCODE.fields_by_name['ad_group_criterion_error']) +_ERRORCODE.fields_by_name['ad_group_criterion_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] +_ERRORCODE.oneofs_by_name['error_code'].fields.append( + _ERRORCODE.fields_by_name['ad_customizer_error']) +_ERRORCODE.fields_by_name['ad_customizer_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] +_ERRORCODE.oneofs_by_name['error_code'].fields.append( + _ERRORCODE.fields_by_name['ad_group_ad_error']) +_ERRORCODE.fields_by_name['ad_group_ad_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] +_ERRORCODE.oneofs_by_name['error_code'].fields.append( + _ERRORCODE.fields_by_name['ad_sharing_error']) +_ERRORCODE.fields_by_name['ad_sharing_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] +_ERRORCODE.oneofs_by_name['error_code'].fields.append( + _ERRORCODE.fields_by_name['adx_error']) +_ERRORCODE.fields_by_name['adx_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] +_ERRORCODE.oneofs_by_name['error_code'].fields.append( + _ERRORCODE.fields_by_name['asset_error']) +_ERRORCODE.fields_by_name['asset_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] +_ERRORCODE.oneofs_by_name['error_code'].fields.append( + _ERRORCODE.fields_by_name['bidding_error']) +_ERRORCODE.fields_by_name['bidding_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] +_ERRORCODE.oneofs_by_name['error_code'].fields.append( + _ERRORCODE.fields_by_name['campaign_criterion_error']) +_ERRORCODE.fields_by_name['campaign_criterion_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] +_ERRORCODE.oneofs_by_name['error_code'].fields.append( + _ERRORCODE.fields_by_name['collection_size_error']) +_ERRORCODE.fields_by_name['collection_size_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] +_ERRORCODE.oneofs_by_name['error_code'].fields.append( + _ERRORCODE.fields_by_name['country_code_error']) +_ERRORCODE.fields_by_name['country_code_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] +_ERRORCODE.oneofs_by_name['error_code'].fields.append( + _ERRORCODE.fields_by_name['criterion_error']) +_ERRORCODE.fields_by_name['criterion_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] +_ERRORCODE.oneofs_by_name['error_code'].fields.append( + _ERRORCODE.fields_by_name['customer_error']) +_ERRORCODE.fields_by_name['customer_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] +_ERRORCODE.oneofs_by_name['error_code'].fields.append( + _ERRORCODE.fields_by_name['date_error']) +_ERRORCODE.fields_by_name['date_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] +_ERRORCODE.oneofs_by_name['error_code'].fields.append( + _ERRORCODE.fields_by_name['date_range_error']) +_ERRORCODE.fields_by_name['date_range_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] +_ERRORCODE.oneofs_by_name['error_code'].fields.append( + _ERRORCODE.fields_by_name['distinct_error']) +_ERRORCODE.fields_by_name['distinct_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] +_ERRORCODE.oneofs_by_name['error_code'].fields.append( + _ERRORCODE.fields_by_name['feed_attribute_reference_error']) +_ERRORCODE.fields_by_name['feed_attribute_reference_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] +_ERRORCODE.oneofs_by_name['error_code'].fields.append( + _ERRORCODE.fields_by_name['function_error']) +_ERRORCODE.fields_by_name['function_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] +_ERRORCODE.oneofs_by_name['error_code'].fields.append( + _ERRORCODE.fields_by_name['function_parsing_error']) +_ERRORCODE.fields_by_name['function_parsing_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] +_ERRORCODE.oneofs_by_name['error_code'].fields.append( + _ERRORCODE.fields_by_name['id_error']) +_ERRORCODE.fields_by_name['id_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] +_ERRORCODE.oneofs_by_name['error_code'].fields.append( + _ERRORCODE.fields_by_name['image_error']) +_ERRORCODE.fields_by_name['image_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] +_ERRORCODE.oneofs_by_name['error_code'].fields.append( + _ERRORCODE.fields_by_name['language_code_error']) +_ERRORCODE.fields_by_name['language_code_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] +_ERRORCODE.oneofs_by_name['error_code'].fields.append( + _ERRORCODE.fields_by_name['media_bundle_error']) +_ERRORCODE.fields_by_name['media_bundle_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] +_ERRORCODE.oneofs_by_name['error_code'].fields.append( + _ERRORCODE.fields_by_name['media_upload_error']) +_ERRORCODE.fields_by_name['media_upload_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] +_ERRORCODE.oneofs_by_name['error_code'].fields.append( + _ERRORCODE.fields_by_name['media_file_error']) +_ERRORCODE.fields_by_name['media_file_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] +_ERRORCODE.oneofs_by_name['error_code'].fields.append( + _ERRORCODE.fields_by_name['multiplier_error']) +_ERRORCODE.fields_by_name['multiplier_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] +_ERRORCODE.oneofs_by_name['error_code'].fields.append( + _ERRORCODE.fields_by_name['new_resource_creation_error']) +_ERRORCODE.fields_by_name['new_resource_creation_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] +_ERRORCODE.oneofs_by_name['error_code'].fields.append( + _ERRORCODE.fields_by_name['not_empty_error']) +_ERRORCODE.fields_by_name['not_empty_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] +_ERRORCODE.oneofs_by_name['error_code'].fields.append( + _ERRORCODE.fields_by_name['null_error']) +_ERRORCODE.fields_by_name['null_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] +_ERRORCODE.oneofs_by_name['error_code'].fields.append( + _ERRORCODE.fields_by_name['operator_error']) +_ERRORCODE.fields_by_name['operator_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] +_ERRORCODE.oneofs_by_name['error_code'].fields.append( + _ERRORCODE.fields_by_name['range_error']) +_ERRORCODE.fields_by_name['range_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] +_ERRORCODE.oneofs_by_name['error_code'].fields.append( + _ERRORCODE.fields_by_name['recommendation_error']) +_ERRORCODE.fields_by_name['recommendation_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] +_ERRORCODE.oneofs_by_name['error_code'].fields.append( + _ERRORCODE.fields_by_name['region_code_error']) +_ERRORCODE.fields_by_name['region_code_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] +_ERRORCODE.oneofs_by_name['error_code'].fields.append( + _ERRORCODE.fields_by_name['setting_error']) +_ERRORCODE.fields_by_name['setting_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] +_ERRORCODE.oneofs_by_name['error_code'].fields.append( + _ERRORCODE.fields_by_name['string_format_error']) +_ERRORCODE.fields_by_name['string_format_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] +_ERRORCODE.oneofs_by_name['error_code'].fields.append( + _ERRORCODE.fields_by_name['string_length_error']) +_ERRORCODE.fields_by_name['string_length_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] +_ERRORCODE.oneofs_by_name['error_code'].fields.append( + _ERRORCODE.fields_by_name['operation_access_denied_error']) +_ERRORCODE.fields_by_name['operation_access_denied_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] +_ERRORCODE.oneofs_by_name['error_code'].fields.append( + _ERRORCODE.fields_by_name['resource_access_denied_error']) +_ERRORCODE.fields_by_name['resource_access_denied_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] +_ERRORCODE.oneofs_by_name['error_code'].fields.append( + _ERRORCODE.fields_by_name['resource_count_limit_exceeded_error']) +_ERRORCODE.fields_by_name['resource_count_limit_exceeded_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] +_ERRORCODE.oneofs_by_name['error_code'].fields.append( + _ERRORCODE.fields_by_name['youtube_video_registration_error']) +_ERRORCODE.fields_by_name['youtube_video_registration_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] +_ERRORCODE.oneofs_by_name['error_code'].fields.append( + _ERRORCODE.fields_by_name['ad_group_bid_modifier_error']) +_ERRORCODE.fields_by_name['ad_group_bid_modifier_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] +_ERRORCODE.oneofs_by_name['error_code'].fields.append( + _ERRORCODE.fields_by_name['context_error']) +_ERRORCODE.fields_by_name['context_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] +_ERRORCODE.oneofs_by_name['error_code'].fields.append( + _ERRORCODE.fields_by_name['field_error']) +_ERRORCODE.fields_by_name['field_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] +_ERRORCODE.oneofs_by_name['error_code'].fields.append( + _ERRORCODE.fields_by_name['shared_set_error']) +_ERRORCODE.fields_by_name['shared_set_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] +_ERRORCODE.oneofs_by_name['error_code'].fields.append( + _ERRORCODE.fields_by_name['shared_criterion_error']) +_ERRORCODE.fields_by_name['shared_criterion_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] +_ERRORCODE.oneofs_by_name['error_code'].fields.append( + _ERRORCODE.fields_by_name['campaign_shared_set_error']) +_ERRORCODE.fields_by_name['campaign_shared_set_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] +_ERRORCODE.oneofs_by_name['error_code'].fields.append( + _ERRORCODE.fields_by_name['conversion_action_error']) +_ERRORCODE.fields_by_name['conversion_action_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] +_ERRORCODE.oneofs_by_name['error_code'].fields.append( + _ERRORCODE.fields_by_name['conversion_adjustment_upload_error']) +_ERRORCODE.fields_by_name['conversion_adjustment_upload_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] +_ERRORCODE.oneofs_by_name['error_code'].fields.append( + _ERRORCODE.fields_by_name['conversion_upload_error']) +_ERRORCODE.fields_by_name['conversion_upload_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] +_ERRORCODE.oneofs_by_name['error_code'].fields.append( + _ERRORCODE.fields_by_name['header_error']) +_ERRORCODE.fields_by_name['header_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] +_ERRORCODE.oneofs_by_name['error_code'].fields.append( + _ERRORCODE.fields_by_name['database_error']) +_ERRORCODE.fields_by_name['database_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] +_ERRORCODE.oneofs_by_name['error_code'].fields.append( + _ERRORCODE.fields_by_name['policy_finding_error']) +_ERRORCODE.fields_by_name['policy_finding_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] +_ERRORCODE.oneofs_by_name['error_code'].fields.append( + _ERRORCODE.fields_by_name['enum_error']) +_ERRORCODE.fields_by_name['enum_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] +_ERRORCODE.oneofs_by_name['error_code'].fields.append( + _ERRORCODE.fields_by_name['keyword_plan_error']) +_ERRORCODE.fields_by_name['keyword_plan_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] +_ERRORCODE.oneofs_by_name['error_code'].fields.append( + _ERRORCODE.fields_by_name['keyword_plan_campaign_error']) +_ERRORCODE.fields_by_name['keyword_plan_campaign_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] +_ERRORCODE.oneofs_by_name['error_code'].fields.append( + _ERRORCODE.fields_by_name['keyword_plan_campaign_keyword_error']) +_ERRORCODE.fields_by_name['keyword_plan_campaign_keyword_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] +_ERRORCODE.oneofs_by_name['error_code'].fields.append( + _ERRORCODE.fields_by_name['keyword_plan_ad_group_error']) +_ERRORCODE.fields_by_name['keyword_plan_ad_group_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] +_ERRORCODE.oneofs_by_name['error_code'].fields.append( + _ERRORCODE.fields_by_name['keyword_plan_ad_group_keyword_error']) +_ERRORCODE.fields_by_name['keyword_plan_ad_group_keyword_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] +_ERRORCODE.oneofs_by_name['error_code'].fields.append( + _ERRORCODE.fields_by_name['keyword_plan_idea_error']) +_ERRORCODE.fields_by_name['keyword_plan_idea_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] +_ERRORCODE.oneofs_by_name['error_code'].fields.append( + _ERRORCODE.fields_by_name['account_budget_proposal_error']) +_ERRORCODE.fields_by_name['account_budget_proposal_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] +_ERRORCODE.oneofs_by_name['error_code'].fields.append( + _ERRORCODE.fields_by_name['user_list_error']) +_ERRORCODE.fields_by_name['user_list_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] +_ERRORCODE.oneofs_by_name['error_code'].fields.append( + _ERRORCODE.fields_by_name['change_status_error']) +_ERRORCODE.fields_by_name['change_status_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] +_ERRORCODE.oneofs_by_name['error_code'].fields.append( + _ERRORCODE.fields_by_name['feed_error']) +_ERRORCODE.fields_by_name['feed_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] +_ERRORCODE.oneofs_by_name['error_code'].fields.append( + _ERRORCODE.fields_by_name['geo_target_constant_suggestion_error']) +_ERRORCODE.fields_by_name['geo_target_constant_suggestion_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] +_ERRORCODE.oneofs_by_name['error_code'].fields.append( + _ERRORCODE.fields_by_name['campaign_draft_error']) +_ERRORCODE.fields_by_name['campaign_draft_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] +_ERRORCODE.oneofs_by_name['error_code'].fields.append( + _ERRORCODE.fields_by_name['feed_item_error']) +_ERRORCODE.fields_by_name['feed_item_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] +_ERRORCODE.oneofs_by_name['error_code'].fields.append( + _ERRORCODE.fields_by_name['label_error']) +_ERRORCODE.fields_by_name['label_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] +_ERRORCODE.oneofs_by_name['error_code'].fields.append( + _ERRORCODE.fields_by_name['billing_setup_error']) +_ERRORCODE.fields_by_name['billing_setup_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] +_ERRORCODE.oneofs_by_name['error_code'].fields.append( + _ERRORCODE.fields_by_name['customer_client_link_error']) +_ERRORCODE.fields_by_name['customer_client_link_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] +_ERRORCODE.oneofs_by_name['error_code'].fields.append( + _ERRORCODE.fields_by_name['customer_manager_link_error']) +_ERRORCODE.fields_by_name['customer_manager_link_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] +_ERRORCODE.oneofs_by_name['error_code'].fields.append( + _ERRORCODE.fields_by_name['feed_mapping_error']) +_ERRORCODE.fields_by_name['feed_mapping_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] +_ERRORCODE.oneofs_by_name['error_code'].fields.append( + _ERRORCODE.fields_by_name['customer_feed_error']) +_ERRORCODE.fields_by_name['customer_feed_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] +_ERRORCODE.oneofs_by_name['error_code'].fields.append( + _ERRORCODE.fields_by_name['ad_group_feed_error']) +_ERRORCODE.fields_by_name['ad_group_feed_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] +_ERRORCODE.oneofs_by_name['error_code'].fields.append( + _ERRORCODE.fields_by_name['campaign_feed_error']) +_ERRORCODE.fields_by_name['campaign_feed_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] +_ERRORCODE.oneofs_by_name['error_code'].fields.append( + _ERRORCODE.fields_by_name['custom_interest_error']) +_ERRORCODE.fields_by_name['custom_interest_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] +_ERRORCODE.oneofs_by_name['error_code'].fields.append( + _ERRORCODE.fields_by_name['campaign_experiment_error']) +_ERRORCODE.fields_by_name['campaign_experiment_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] +_ERRORCODE.oneofs_by_name['error_code'].fields.append( + _ERRORCODE.fields_by_name['extension_feed_item_error']) +_ERRORCODE.fields_by_name['extension_feed_item_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] +_ERRORCODE.oneofs_by_name['error_code'].fields.append( + _ERRORCODE.fields_by_name['ad_parameter_error']) +_ERRORCODE.fields_by_name['ad_parameter_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] +_ERRORCODE.oneofs_by_name['error_code'].fields.append( + _ERRORCODE.fields_by_name['feed_item_validation_error']) +_ERRORCODE.fields_by_name['feed_item_validation_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] +_ERRORCODE.oneofs_by_name['error_code'].fields.append( + _ERRORCODE.fields_by_name['extension_setting_error']) +_ERRORCODE.fields_by_name['extension_setting_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] +_ERRORCODE.oneofs_by_name['error_code'].fields.append( + _ERRORCODE.fields_by_name['feed_item_target_error']) +_ERRORCODE.fields_by_name['feed_item_target_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] +_ERRORCODE.oneofs_by_name['error_code'].fields.append( + _ERRORCODE.fields_by_name['policy_violation_error']) +_ERRORCODE.fields_by_name['policy_violation_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] +_ERRORCODE.oneofs_by_name['error_code'].fields.append( + _ERRORCODE.fields_by_name['partial_failure_error']) +_ERRORCODE.fields_by_name['partial_failure_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] +_ERRORCODE.oneofs_by_name['error_code'].fields.append( + _ERRORCODE.fields_by_name['policy_validation_parameter_error']) +_ERRORCODE.fields_by_name['policy_validation_parameter_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] +_ERRORCODE.oneofs_by_name['error_code'].fields.append( + _ERRORCODE.fields_by_name['size_limit_error']) +_ERRORCODE.fields_by_name['size_limit_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] +_ERRORCODE.oneofs_by_name['error_code'].fields.append( + _ERRORCODE.fields_by_name['offline_user_data_job_error']) +_ERRORCODE.fields_by_name['offline_user_data_job_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] +_ERRORCODE.oneofs_by_name['error_code'].fields.append( + _ERRORCODE.fields_by_name['not_whitelisted_error']) +_ERRORCODE.fields_by_name['not_whitelisted_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] +_ERRORCODE.oneofs_by_name['error_code'].fields.append( + _ERRORCODE.fields_by_name['manager_link_error']) +_ERRORCODE.fields_by_name['manager_link_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] +_ERRORCODE.oneofs_by_name['error_code'].fields.append( + _ERRORCODE.fields_by_name['currency_code_error']) +_ERRORCODE.fields_by_name['currency_code_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] +_ERRORCODE.oneofs_by_name['error_code'].fields.append( + _ERRORCODE.fields_by_name['access_invitation_error']) +_ERRORCODE.fields_by_name['access_invitation_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] +_ERRORCODE.oneofs_by_name['error_code'].fields.append( + _ERRORCODE.fields_by_name['reach_plan_error']) +_ERRORCODE.fields_by_name['reach_plan_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] +_ERRORCODE.oneofs_by_name['error_code'].fields.append( + _ERRORCODE.fields_by_name['invoice_error']) +_ERRORCODE.fields_by_name['invoice_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] +_ERRORCODE.oneofs_by_name['error_code'].fields.append( + _ERRORCODE.fields_by_name['payments_account_error']) +_ERRORCODE.fields_by_name['payments_account_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] +_ERRORCODE.oneofs_by_name['error_code'].fields.append( + _ERRORCODE.fields_by_name['time_zone_error']) +_ERRORCODE.fields_by_name['time_zone_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] +_ERRORCODE.oneofs_by_name['error_code'].fields.append( + _ERRORCODE.fields_by_name['asset_link_error']) +_ERRORCODE.fields_by_name['asset_link_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] +_ERRORCODE.oneofs_by_name['error_code'].fields.append( + _ERRORCODE.fields_by_name['user_data_error']) +_ERRORCODE.fields_by_name['user_data_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] +_ERRORCODE.oneofs_by_name['error_code'].fields.append( + _ERRORCODE.fields_by_name['batch_job_error']) +_ERRORCODE.fields_by_name['batch_job_error'].containing_oneof = _ERRORCODE.oneofs_by_name['error_code'] +_ERRORLOCATION_FIELDPATHELEMENT.fields_by_name['index'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_ERRORLOCATION_FIELDPATHELEMENT.containing_type = _ERRORLOCATION +_ERRORLOCATION.fields_by_name['field_path_elements'].message_type = _ERRORLOCATION_FIELDPATHELEMENT +_ERRORDETAILS.fields_by_name['policy_violation_details'].message_type = _POLICYVIOLATIONDETAILS +_ERRORDETAILS.fields_by_name['policy_finding_details'].message_type = _POLICYFINDINGDETAILS +_POLICYVIOLATIONDETAILS.fields_by_name['key'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_policy__pb2._POLICYVIOLATIONKEY +_POLICYFINDINGDETAILS.fields_by_name['policy_topic_entries'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_policy__pb2._POLICYTOPICENTRY +DESCRIPTOR.message_types_by_name['GoogleAdsFailure'] = _GOOGLEADSFAILURE +DESCRIPTOR.message_types_by_name['GoogleAdsError'] = _GOOGLEADSERROR +DESCRIPTOR.message_types_by_name['ErrorCode'] = _ERRORCODE +DESCRIPTOR.message_types_by_name['ErrorLocation'] = _ERRORLOCATION +DESCRIPTOR.message_types_by_name['ErrorDetails'] = _ERRORDETAILS +DESCRIPTOR.message_types_by_name['PolicyViolationDetails'] = _POLICYVIOLATIONDETAILS +DESCRIPTOR.message_types_by_name['PolicyFindingDetails'] = _POLICYFINDINGDETAILS +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +GoogleAdsFailure = _reflection.GeneratedProtocolMessageType('GoogleAdsFailure', (_message.Message,), dict( + DESCRIPTOR = _GOOGLEADSFAILURE, + __module__ = 'google.ads.googleads_v4.proto.errors.errors_pb2' + , + __doc__ = """Describes how a GoogleAds API call failed. It's returned inside + google.rpc.Status.details when a call fails. + + + Attributes: + errors: + The list of errors that occurred. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.errors.GoogleAdsFailure) + )) +_sym_db.RegisterMessage(GoogleAdsFailure) + +GoogleAdsError = _reflection.GeneratedProtocolMessageType('GoogleAdsError', (_message.Message,), dict( + DESCRIPTOR = _GOOGLEADSERROR, + __module__ = 'google.ads.googleads_v4.proto.errors.errors_pb2' + , + __doc__ = """GoogleAds-specific error. + + + Attributes: + error_code: + An enum value that indicates which error occurred. + message: + A human-readable description of the error. + trigger: + The value that triggered the error. + location: + Describes the part of the request proto that caused the error. + details: + Additional error details, which are returned by certain error + codes. Most error codes do not include details. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.errors.GoogleAdsError) + )) +_sym_db.RegisterMessage(GoogleAdsError) + +ErrorCode = _reflection.GeneratedProtocolMessageType('ErrorCode', (_message.Message,), dict( + DESCRIPTOR = _ERRORCODE, + __module__ = 'google.ads.googleads_v4.proto.errors.errors_pb2' + , + __doc__ = """The error reason represented by type and enum. + + + Attributes: + error_code: + The list of error enums + request_error: + An error caused by the request + bidding_strategy_error: + An error with a Bidding Strategy mutate. + url_field_error: + An error with a URL field mutate. + list_operation_error: + An error with a list operation. + query_error: + An error with an AWQL query + mutate_error: + An error with a mutate + field_mask_error: + An error with a field mask + authorization_error: + An error encountered when trying to authorize a user. + internal_error: + An unexpected server-side error. + quota_error: + An error with the amonut of quota remaining. + ad_error: + An error with an Ad Group Ad mutate. + ad_group_error: + An error with an Ad Group mutate. + campaign_budget_error: + An error with a Campaign Budget mutate. + campaign_error: + An error with a Campaign mutate. + authentication_error: + Indicates failure to properly authenticate user. + ad_group_criterion_error: + Indicates failure to properly authenticate user. + ad_customizer_error: + The reasons for the ad customizer error + ad_group_ad_error: + The reasons for the ad group ad error + ad_sharing_error: + The reasons for the ad sharing error + adx_error: + The reasons for the adx error + asset_error: + The reasons for the asset error + bidding_error: + The reasons for the bidding errors + campaign_criterion_error: + The reasons for the campaign criterion error + collection_size_error: + The reasons for the collection size error + country_code_error: + The reasons for the country code error + criterion_error: + The reasons for the criterion error + customer_error: + The reasons for the customer error + date_error: + The reasons for the date error + date_range_error: + The reasons for the date range error + distinct_error: + The reasons for the distinct error + feed_attribute_reference_error: + The reasons for the feed attribute reference error + function_error: + The reasons for the function error + function_parsing_error: + The reasons for the function parsing error + id_error: + The reasons for the id error + image_error: + The reasons for the image error + language_code_error: + The reasons for the language code error + media_bundle_error: + The reasons for the media bundle error + media_upload_error: + The reasons for media uploading errors. + media_file_error: + The reasons for the media file error + multiplier_error: + The reasons for the multiplier error + new_resource_creation_error: + The reasons for the new resource creation error + not_empty_error: + The reasons for the not empty error + null_error: + The reasons for the null error + operator_error: + The reasons for the operator error + range_error: + The reasons for the range error + recommendation_error: + The reasons for error in applying a recommendation + region_code_error: + The reasons for the region code error + setting_error: + The reasons for the setting error + string_format_error: + The reasons for the string format error + string_length_error: + The reasons for the string length error + operation_access_denied_error: + The reasons for the operation access denied error + resource_access_denied_error: + The reasons for the resource access denied error + resource_count_limit_exceeded_error: + The reasons for the resource count limit exceeded error + youtube_video_registration_error: + The reasons for YouTube video registration errors. + ad_group_bid_modifier_error: + The reasons for the ad group bid modifier error + context_error: + The reasons for the context error + field_error: + The reasons for the field error + shared_set_error: + The reasons for the shared set error + shared_criterion_error: + The reasons for the shared criterion error + campaign_shared_set_error: + The reasons for the campaign shared set error + conversion_action_error: + The reasons for the conversion action error + conversion_adjustment_upload_error: + The reasons for the conversion adjustment upload error + conversion_upload_error: + The reasons for the conversion upload error + header_error: + The reasons for the header error. + database_error: + The reasons for the database error. + policy_finding_error: + The reasons for the policy finding error. + enum_error: + The reason for enum error. + keyword_plan_error: + The reason for keyword plan error. + keyword_plan_campaign_error: + The reason for keyword plan campaign error. + keyword_plan_campaign_keyword_error: + The reason for keyword plan campaign keyword error. + keyword_plan_ad_group_error: + The reason for keyword plan ad group error. + keyword_plan_ad_group_keyword_error: + The reason for keyword plan ad group keyword error. + keyword_plan_idea_error: + The reason for keyword idea error. + account_budget_proposal_error: + The reasons for account budget proposal errors. + user_list_error: + The reasons for the user list error + change_status_error: + The reasons for the change status error + feed_error: + The reasons for the feed error + geo_target_constant_suggestion_error: + The reasons for the geo target constant suggestion error. + campaign_draft_error: + The reasons for the campaign draft error + feed_item_error: + The reasons for the feed item error + label_error: + The reason for the label error. + billing_setup_error: + The reasons for the billing setup error + customer_client_link_error: + The reasons for the customer client link error + customer_manager_link_error: + The reasons for the customer manager link error + feed_mapping_error: + The reasons for the feed mapping error + customer_feed_error: + The reasons for the customer feed error + ad_group_feed_error: + The reasons for the ad group feed error + campaign_feed_error: + The reasons for the campaign feed error + custom_interest_error: + The reasons for the custom interest error + campaign_experiment_error: + The reasons for the campaign experiment error + extension_feed_item_error: + The reasons for the extension feed item error + ad_parameter_error: + The reasons for the ad parameter error + feed_item_validation_error: + The reasons for the feed item validation error + extension_setting_error: + The reasons for the extension setting error + feed_item_target_error: + The reasons for the feed item target error + policy_violation_error: + The reasons for the policy violation error + partial_failure_error: + The reasons for the mutate job error + policy_validation_parameter_error: + The reasons for the policy validation parameter error + size_limit_error: + The reasons for the size limit error + offline_user_data_job_error: + The reasons for the offline user data job error. + not_whitelisted_error: + The reasons for the not whitelisted error + manager_link_error: + The reasons for the manager link error + currency_code_error: + The reasons for the currency code error + access_invitation_error: + The reasons for the access invitation error + reach_plan_error: + The reasons for the reach plan error + invoice_error: + The reasons for the invoice error + payments_account_error: + The reasons for errors in payments accounts service + time_zone_error: + The reasons for the time zone error + asset_link_error: + The reasons for the asset link error + user_data_error: + The reasons for the user data error. + batch_job_error: + The reasons for the batch job error + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.errors.ErrorCode) + )) +_sym_db.RegisterMessage(ErrorCode) + +ErrorLocation = _reflection.GeneratedProtocolMessageType('ErrorLocation', (_message.Message,), dict( + + FieldPathElement = _reflection.GeneratedProtocolMessageType('FieldPathElement', (_message.Message,), dict( + DESCRIPTOR = _ERRORLOCATION_FIELDPATHELEMENT, + __module__ = 'google.ads.googleads_v4.proto.errors.errors_pb2' + , + __doc__ = """A part of a field path. + + + Attributes: + field_name: + The name of a field or a oneof + index: + If field\_name is a repeated field, this is the element that + failed + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.errors.ErrorLocation.FieldPathElement) + )) + , + DESCRIPTOR = _ERRORLOCATION, + __module__ = 'google.ads.googleads_v4.proto.errors.errors_pb2' + , + __doc__ = """Describes the part of the request proto that caused the error. + + + Attributes: + field_path_elements: + A field path that indicates which field was invalid in the + request. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.errors.ErrorLocation) + )) +_sym_db.RegisterMessage(ErrorLocation) +_sym_db.RegisterMessage(ErrorLocation.FieldPathElement) + +ErrorDetails = _reflection.GeneratedProtocolMessageType('ErrorDetails', (_message.Message,), dict( + DESCRIPTOR = _ERRORDETAILS, + __module__ = 'google.ads.googleads_v4.proto.errors.errors_pb2' + , + __doc__ = """Additional error details. + + + Attributes: + unpublished_error_code: + The error code that should have been returned, but wasn't. + This is used when the error code is not published in the + client specified version. + policy_violation_details: + Describes an ad policy violation. + policy_finding_details: + Describes policy violation findings. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.errors.ErrorDetails) + )) +_sym_db.RegisterMessage(ErrorDetails) + +PolicyViolationDetails = _reflection.GeneratedProtocolMessageType('PolicyViolationDetails', (_message.Message,), dict( + DESCRIPTOR = _POLICYVIOLATIONDETAILS, + __module__ = 'google.ads.googleads_v4.proto.errors.errors_pb2' + , + __doc__ = """Error returned as part of a mutate response. This error indicates single + policy violation by some text in one of the fields. + + + Attributes: + external_policy_description: + Human readable description of policy violation. + key: + Unique identifier for this violation. If policy is exemptible, + this key may be used to request exemption. + external_policy_name: + Human readable name of the policy. + is_exemptible: + Whether user can file an exemption request for this violation. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.errors.PolicyViolationDetails) + )) +_sym_db.RegisterMessage(PolicyViolationDetails) + +PolicyFindingDetails = _reflection.GeneratedProtocolMessageType('PolicyFindingDetails', (_message.Message,), dict( + DESCRIPTOR = _POLICYFINDINGDETAILS, + __module__ = 'google.ads.googleads_v4.proto.errors.errors_pb2' + , + __doc__ = """Error returned as part of a mutate response. This error indicates one or + more policy findings in the fields of a resource. + + + Attributes: + policy_topic_entries: + The list of policy topics for the resource. Contains the + PROHIBITED or FULLY\_LIMITED policy topic entries that + prevented the resource from being saved (among any other + entries the resource may also have). + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.errors.PolicyFindingDetails) + )) +_sym_db.RegisterMessage(PolicyFindingDetails) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/errors/list_operation_error_pb2_grpc.py b/google/ads/google_ads/v4/proto/errors/errors_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/errors/list_operation_error_pb2_grpc.py rename to google/ads/google_ads/v4/proto/errors/errors_pb2_grpc.py diff --git a/google/ads/google_ads/v1/proto/errors/extension_feed_item_error_pb2.py b/google/ads/google_ads/v4/proto/errors/extension_feed_item_error_pb2.py similarity index 86% rename from google/ads/google_ads/v1/proto/errors/extension_feed_item_error_pb2.py rename to google/ads/google_ads/v4/proto/errors/extension_feed_item_error_pb2.py index 3fefcaa3b..cca667277 100644 --- a/google/ads/google_ads/v1/proto/errors/extension_feed_item_error_pb2.py +++ b/google/ads/google_ads/v4/proto/errors/extension_feed_item_error_pb2.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/errors/extension_feed_item_error.proto +# source: google/ads/googleads_v4/proto/errors/extension_feed_item_error.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) @@ -17,11 +17,11 @@ DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/errors/extension_feed_item_error.proto', - package='google.ads.googleads.v1.errors', + name='google/ads/googleads_v4/proto/errors/extension_feed_item_error.proto', + package='google.ads.googleads.v4.errors', syntax='proto3', - serialized_options=_b('\n\"com.google.ads.googleads.v1.errorsB\033ExtensionFeedItemErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V1.Errors\312\002\036Google\\Ads\\GoogleAds\\V1\\Errors\352\002\"Google::Ads::GoogleAds::V1::Errors'), - serialized_pb=_b('\nDgoogle/ads/googleads_v1/proto/errors/extension_feed_item_error.proto\x12\x1egoogle.ads.googleads.v1.errors\x1a\x1cgoogle/api/annotations.proto\"\xad\r\n\x1a\x45xtensionFeedItemErrorEnum\"\x8e\r\n\x16\x45xtensionFeedItemError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x16\n\x12VALUE_OUT_OF_RANGE\x10\x02\x12\x15\n\x11URL_LIST_TOO_LONG\x10\x03\x12\x32\n.CANNOT_HAVE_RESTRICTION_ON_EMPTY_GEO_TARGETING\x10\x04\x12\x1e\n\x1a\x43\x41NNOT_SET_WITH_FINAL_URLS\x10\x05\x12!\n\x1d\x43\x41NNOT_SET_WITHOUT_FINAL_URLS\x10\x06\x12\x18\n\x14INVALID_PHONE_NUMBER\x10\x07\x12*\n&PHONE_NUMBER_NOT_SUPPORTED_FOR_COUNTRY\x10\x08\x12-\n)CARRIER_SPECIFIC_SHORT_NUMBER_NOT_ALLOWED\x10\t\x12#\n\x1fPREMIUM_RATE_NUMBER_NOT_ALLOWED\x10\n\x12\x1a\n\x16\x44ISALLOWED_NUMBER_TYPE\x10\x0b\x12(\n$INVALID_DOMESTIC_PHONE_NUMBER_FORMAT\x10\x0c\x12#\n\x1fVANITY_PHONE_NUMBER_NOT_ALLOWED\x10\r\x12\"\n\x1eINVALID_CALL_CONVERSION_ACTION\x10\x0e\x12-\n)CUSTOMER_NOT_WHITELISTED_FOR_CALLTRACKING\x10\x0f\x12*\n&CALLTRACKING_NOT_SUPPORTED_FOR_COUNTRY\x10\x10\x12\x30\n,CUSTOMER_CONSENT_FOR_CALL_RECORDING_REQUIRED\x10\x11\x12\x12\n\x0eINVALID_APP_ID\x10\x12\x12&\n\"QUOTES_IN_REVIEW_EXTENSION_SNIPPET\x10\x13\x12\'\n#HYPHENS_IN_REVIEW_EXTENSION_SNIPPET\x10\x14\x12&\n\"REVIEW_EXTENSION_SOURCE_INELIGIBLE\x10\x15\x12(\n$SOURCE_NAME_IN_REVIEW_EXTENSION_TEXT\x10\x16\x12\x1f\n\x1bINCONSISTENT_CURRENCY_CODES\x10\x17\x12*\n&PRICE_EXTENSION_HAS_DUPLICATED_HEADERS\x10\x18\x12\x34\n0PRICE_ITEM_HAS_DUPLICATED_HEADER_AND_DESCRIPTION\x10\x19\x12%\n!PRICE_EXTENSION_HAS_TOO_FEW_ITEMS\x10\x1a\x12&\n\"PRICE_EXTENSION_HAS_TOO_MANY_ITEMS\x10\x1b\x12\x15\n\x11UNSUPPORTED_VALUE\x10\x1c\x12*\n&UNSUPPORTED_VALUE_IN_SELECTED_LANGUAGE\x10\x1d\x12\x1d\n\x19INVALID_DEVICE_PREFERENCE\x10\x1e\x12\x18\n\x14INVALID_SCHEDULE_END\x10\x1f\x12*\n&DATE_TIME_MUST_BE_IN_ACCOUNT_TIME_ZONE\x10 \x12\x1b\n\x17INVALID_SNIPPETS_HEADER\x10!\x12\'\n#CANNOT_OPERATE_ON_REMOVED_FEED_ITEM\x10\"\x12<\n8PHONE_NUMBER_NOT_SUPPORTED_WITH_CALLTRACKING_FOR_COUNTRY\x10#\x12(\n$CONFLICTING_CALL_CONVERSION_SETTINGS\x10$\x12\x1b\n\x17\x45XTENSION_TYPE_MISMATCH\x10%\x12\x1e\n\x1a\x45XTENSION_SUBTYPE_REQUIRED\x10&\x12\x1e\n\x1a\x45XTENSION_TYPE_UNSUPPORTED\x10\'\x12\x31\n-CANNOT_OPERATE_ON_FEED_WITH_MULTIPLE_MAPPINGS\x10(\x12.\n*CANNOT_OPERATE_ON_FEED_WITH_KEY_ATTRIBUTES\x10)\x12\x18\n\x14INVALID_PRICE_FORMAT\x10*\x12\x1a\n\x16PROMOTION_INVALID_TIME\x10+\x12%\n!TOO_MANY_DECIMAL_PLACES_SPECIFIED\x10,B\xf6\x01\n\"com.google.ads.googleads.v1.errorsB\x1b\x45xtensionFeedItemErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V1.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V1\\Errors\xea\x02\"Google::Ads::GoogleAds::V1::Errorsb\x06proto3') + serialized_options=_b('\n\"com.google.ads.googleads.v4.errorsB\033ExtensionFeedItemErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V4.Errors\312\002\036Google\\Ads\\GoogleAds\\V4\\Errors\352\002\"Google::Ads::GoogleAds::V4::Errors'), + serialized_pb=_b('\nDgoogle/ads/googleads_v4/proto/errors/extension_feed_item_error.proto\x12\x1egoogle.ads.googleads.v4.errors\x1a\x1cgoogle/api/annotations.proto\"\xf5\r\n\x1a\x45xtensionFeedItemErrorEnum\"\xd6\r\n\x16\x45xtensionFeedItemError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x16\n\x12VALUE_OUT_OF_RANGE\x10\x02\x12\x15\n\x11URL_LIST_TOO_LONG\x10\x03\x12\x32\n.CANNOT_HAVE_RESTRICTION_ON_EMPTY_GEO_TARGETING\x10\x04\x12\x1e\n\x1a\x43\x41NNOT_SET_WITH_FINAL_URLS\x10\x05\x12!\n\x1d\x43\x41NNOT_SET_WITHOUT_FINAL_URLS\x10\x06\x12\x18\n\x14INVALID_PHONE_NUMBER\x10\x07\x12*\n&PHONE_NUMBER_NOT_SUPPORTED_FOR_COUNTRY\x10\x08\x12-\n)CARRIER_SPECIFIC_SHORT_NUMBER_NOT_ALLOWED\x10\t\x12#\n\x1fPREMIUM_RATE_NUMBER_NOT_ALLOWED\x10\n\x12\x1a\n\x16\x44ISALLOWED_NUMBER_TYPE\x10\x0b\x12(\n$INVALID_DOMESTIC_PHONE_NUMBER_FORMAT\x10\x0c\x12#\n\x1fVANITY_PHONE_NUMBER_NOT_ALLOWED\x10\r\x12\"\n\x1eINVALID_CALL_CONVERSION_ACTION\x10\x0e\x12-\n)CUSTOMER_NOT_WHITELISTED_FOR_CALLTRACKING\x10\x0f\x12*\n&CALLTRACKING_NOT_SUPPORTED_FOR_COUNTRY\x10\x10\x12\x30\n,CUSTOMER_CONSENT_FOR_CALL_RECORDING_REQUIRED\x10\x11\x12\x12\n\x0eINVALID_APP_ID\x10\x12\x12&\n\"QUOTES_IN_REVIEW_EXTENSION_SNIPPET\x10\x13\x12\'\n#HYPHENS_IN_REVIEW_EXTENSION_SNIPPET\x10\x14\x12&\n\"REVIEW_EXTENSION_SOURCE_INELIGIBLE\x10\x15\x12(\n$SOURCE_NAME_IN_REVIEW_EXTENSION_TEXT\x10\x16\x12\x1f\n\x1bINCONSISTENT_CURRENCY_CODES\x10\x17\x12*\n&PRICE_EXTENSION_HAS_DUPLICATED_HEADERS\x10\x18\x12\x34\n0PRICE_ITEM_HAS_DUPLICATED_HEADER_AND_DESCRIPTION\x10\x19\x12%\n!PRICE_EXTENSION_HAS_TOO_FEW_ITEMS\x10\x1a\x12&\n\"PRICE_EXTENSION_HAS_TOO_MANY_ITEMS\x10\x1b\x12\x15\n\x11UNSUPPORTED_VALUE\x10\x1c\x12*\n&UNSUPPORTED_VALUE_IN_SELECTED_LANGUAGE\x10\x1d\x12\x1d\n\x19INVALID_DEVICE_PREFERENCE\x10\x1e\x12\x18\n\x14INVALID_SCHEDULE_END\x10\x1f\x12*\n&DATE_TIME_MUST_BE_IN_ACCOUNT_TIME_ZONE\x10 \x12\x1b\n\x17INVALID_SNIPPETS_HEADER\x10!\x12\'\n#CANNOT_OPERATE_ON_REMOVED_FEED_ITEM\x10\"\x12<\n8PHONE_NUMBER_NOT_SUPPORTED_WITH_CALLTRACKING_FOR_COUNTRY\x10#\x12(\n$CONFLICTING_CALL_CONVERSION_SETTINGS\x10$\x12\x1b\n\x17\x45XTENSION_TYPE_MISMATCH\x10%\x12\x1e\n\x1a\x45XTENSION_SUBTYPE_REQUIRED\x10&\x12\x1e\n\x1a\x45XTENSION_TYPE_UNSUPPORTED\x10\'\x12\x31\n-CANNOT_OPERATE_ON_FEED_WITH_MULTIPLE_MAPPINGS\x10(\x12.\n*CANNOT_OPERATE_ON_FEED_WITH_KEY_ATTRIBUTES\x10)\x12\x18\n\x14INVALID_PRICE_FORMAT\x10*\x12\x1a\n\x16PROMOTION_INVALID_TIME\x10+\x12%\n!TOO_MANY_DECIMAL_PLACES_SPECIFIED\x10,\x12$\n CONCRETE_EXTENSION_TYPE_REQUIRED\x10-\x12 \n\x1cSCHEDULE_END_NOT_AFTER_START\x10.B\xf6\x01\n\"com.google.ads.googleads.v4.errorsB\x1b\x45xtensionFeedItemErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V4.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V4\\Errors\xea\x02\"Google::Ads::GoogleAds::V4::Errorsb\x06proto3') , dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) @@ -29,7 +29,7 @@ _EXTENSIONFEEDITEMERRORENUM_EXTENSIONFEEDITEMERROR = _descriptor.EnumDescriptor( name='ExtensionFeedItemError', - full_name='google.ads.googleads.v1.errors.ExtensionFeedItemErrorEnum.ExtensionFeedItemError', + full_name='google.ads.googleads.v4.errors.ExtensionFeedItemErrorEnum.ExtensionFeedItemError', filename=None, file=DESCRIPTOR, values=[ @@ -213,18 +213,26 @@ name='TOO_MANY_DECIMAL_PLACES_SPECIFIED', index=44, number=44, serialized_options=None, type=None), + _descriptor.EnumValueDescriptor( + name='CONCRETE_EXTENSION_TYPE_REQUIRED', index=45, number=45, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='SCHEDULE_END_NOT_AFTER_START', index=46, number=46, + serialized_options=None, + type=None), ], containing_type=None, serialized_options=None, serialized_start=166, - serialized_end=1844, + serialized_end=1916, ) _sym_db.RegisterEnumDescriptor(_EXTENSIONFEEDITEMERRORENUM_EXTENSIONFEEDITEMERROR) _EXTENSIONFEEDITEMERRORENUM = _descriptor.Descriptor( name='ExtensionFeedItemErrorEnum', - full_name='google.ads.googleads.v1.errors.ExtensionFeedItemErrorEnum', + full_name='google.ads.googleads.v4.errors.ExtensionFeedItemErrorEnum', filename=None, file=DESCRIPTOR, containing_type=None, @@ -243,7 +251,7 @@ oneofs=[ ], serialized_start=135, - serialized_end=1844, + serialized_end=1916, ) _EXTENSIONFEEDITEMERRORENUM_EXTENSIONFEEDITEMERROR.containing_type = _EXTENSIONFEEDITEMERRORENUM @@ -252,11 +260,11 @@ ExtensionFeedItemErrorEnum = _reflection.GeneratedProtocolMessageType('ExtensionFeedItemErrorEnum', (_message.Message,), dict( DESCRIPTOR = _EXTENSIONFEEDITEMERRORENUM, - __module__ = 'google.ads.googleads_v1.proto.errors.extension_feed_item_error_pb2' + __module__ = 'google.ads.googleads_v4.proto.errors.extension_feed_item_error_pb2' , __doc__ = """Container for enum describing possible extension feed item error. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.errors.ExtensionFeedItemErrorEnum) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.errors.ExtensionFeedItemErrorEnum) )) _sym_db.RegisterMessage(ExtensionFeedItemErrorEnum) diff --git a/google/ads/google_ads/v1/proto/errors/manager_link_error_pb2_grpc.py b/google/ads/google_ads/v4/proto/errors/extension_feed_item_error_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/errors/manager_link_error_pb2_grpc.py rename to google/ads/google_ads/v4/proto/errors/extension_feed_item_error_pb2_grpc.py diff --git a/google/ads/google_ads/v1/proto/errors/extension_setting_error_pb2.py b/google/ads/google_ads/v4/proto/errors/extension_setting_error_pb2.py similarity index 93% rename from google/ads/google_ads/v1/proto/errors/extension_setting_error_pb2.py rename to google/ads/google_ads/v4/proto/errors/extension_setting_error_pb2.py index a45f5464d..be7216100 100644 --- a/google/ads/google_ads/v1/proto/errors/extension_setting_error_pb2.py +++ b/google/ads/google_ads/v4/proto/errors/extension_setting_error_pb2.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/errors/extension_setting_error.proto +# source: google/ads/googleads_v4/proto/errors/extension_setting_error.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) @@ -17,11 +17,11 @@ DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/errors/extension_setting_error.proto', - package='google.ads.googleads.v1.errors', + name='google/ads/googleads_v4/proto/errors/extension_setting_error.proto', + package='google.ads.googleads.v4.errors', syntax='proto3', - serialized_options=_b('\n\"com.google.ads.googleads.v1.errorsB\032ExtensionSettingErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V1.Errors\312\002\036Google\\Ads\\GoogleAds\\V1\\Errors\352\002\"Google::Ads::GoogleAds::V1::Errors'), - serialized_pb=_b('\nBgoogle/ads/googleads_v1/proto/errors/extension_setting_error.proto\x12\x1egoogle.ads.googleads.v1.errors\x1a\x1cgoogle/api/annotations.proto\"\x98\x14\n\x19\x45xtensionSettingErrorEnum\"\xfa\x13\n\x15\x45xtensionSettingError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x17\n\x13\x45XTENSIONS_REQUIRED\x10\x02\x12%\n!FEED_TYPE_EXTENSION_TYPE_MISMATCH\x10\x03\x12\x15\n\x11INVALID_FEED_TYPE\x10\x04\x12\x34\n0INVALID_FEED_TYPE_FOR_CUSTOMER_EXTENSION_SETTING\x10\x05\x12%\n!CANNOT_CHANGE_FEED_ITEM_ON_CREATE\x10\x06\x12)\n%CANNOT_UPDATE_NEWLY_CREATED_EXTENSION\x10\x07\x12\x33\n/NO_EXISTING_AD_GROUP_EXTENSION_SETTING_FOR_TYPE\x10\x08\x12\x33\n/NO_EXISTING_CAMPAIGN_EXTENSION_SETTING_FOR_TYPE\x10\t\x12\x33\n/NO_EXISTING_CUSTOMER_EXTENSION_SETTING_FOR_TYPE\x10\n\x12-\n)AD_GROUP_EXTENSION_SETTING_ALREADY_EXISTS\x10\x0b\x12-\n)CAMPAIGN_EXTENSION_SETTING_ALREADY_EXISTS\x10\x0c\x12-\n)CUSTOMER_EXTENSION_SETTING_ALREADY_EXISTS\x10\r\x12\x35\n1AD_GROUP_FEED_ALREADY_EXISTS_FOR_PLACEHOLDER_TYPE\x10\x0e\x12\x35\n1CAMPAIGN_FEED_ALREADY_EXISTS_FOR_PLACEHOLDER_TYPE\x10\x0f\x12\x35\n1CUSTOMER_FEED_ALREADY_EXISTS_FOR_PLACEHOLDER_TYPE\x10\x10\x12\x16\n\x12VALUE_OUT_OF_RANGE\x10\x11\x12$\n CANNOT_SET_FIELD_WITH_FINAL_URLS\x10\x12\x12\x16\n\x12\x46INAL_URLS_NOT_SET\x10\x13\x12\x18\n\x14INVALID_PHONE_NUMBER\x10\x14\x12*\n&PHONE_NUMBER_NOT_SUPPORTED_FOR_COUNTRY\x10\x15\x12-\n)CARRIER_SPECIFIC_SHORT_NUMBER_NOT_ALLOWED\x10\x16\x12#\n\x1fPREMIUM_RATE_NUMBER_NOT_ALLOWED\x10\x17\x12\x1a\n\x16\x44ISALLOWED_NUMBER_TYPE\x10\x18\x12(\n$INVALID_DOMESTIC_PHONE_NUMBER_FORMAT\x10\x19\x12#\n\x1fVANITY_PHONE_NUMBER_NOT_ALLOWED\x10\x1a\x12\x18\n\x14INVALID_COUNTRY_CODE\x10\x1b\x12#\n\x1fINVALID_CALL_CONVERSION_TYPE_ID\x10\x1c\x12-\n)CUSTOMER_NOT_WHITELISTED_FOR_CALLTRACKING\x10\x1d\x12*\n&CALLTRACKING_NOT_SUPPORTED_FOR_COUNTRY\x10\x1e\x12\x12\n\x0eINVALID_APP_ID\x10\x1f\x12&\n\"QUOTES_IN_REVIEW_EXTENSION_SNIPPET\x10 \x12\'\n#HYPHENS_IN_REVIEW_EXTENSION_SNIPPET\x10!\x12(\n$REVIEW_EXTENSION_SOURCE_NOT_ELIGIBLE\x10\"\x12(\n$SOURCE_NAME_IN_REVIEW_EXTENSION_TEXT\x10#\x12\x11\n\rMISSING_FIELD\x10$\x12\x1f\n\x1bINCONSISTENT_CURRENCY_CODES\x10%\x12*\n&PRICE_EXTENSION_HAS_DUPLICATED_HEADERS\x10&\x12\x34\n0PRICE_ITEM_HAS_DUPLICATED_HEADER_AND_DESCRIPTION\x10\'\x12%\n!PRICE_EXTENSION_HAS_TOO_FEW_ITEMS\x10(\x12&\n\"PRICE_EXTENSION_HAS_TOO_MANY_ITEMS\x10)\x12\x15\n\x11UNSUPPORTED_VALUE\x10*\x12\x1d\n\x19INVALID_DEVICE_PREFERENCE\x10+\x12\x18\n\x14INVALID_SCHEDULE_END\x10-\x12*\n&DATE_TIME_MUST_BE_IN_ACCOUNT_TIME_ZONE\x10/\x12%\n!OVERLAPPING_SCHEDULES_NOT_ALLOWED\x10\x30\x12 \n\x1cSCHEDULE_END_NOT_AFTER_START\x10\x31\x12\x1e\n\x1aTOO_MANY_SCHEDULES_PER_DAY\x10\x32\x12&\n\"DUPLICATE_EXTENSION_FEED_ITEM_EDIT\x10\x33\x12\x1b\n\x17INVALID_SNIPPETS_HEADER\x10\x34\x12<\n8PHONE_NUMBER_NOT_SUPPORTED_WITH_CALLTRACKING_FOR_COUNTRY\x10\x35\x12\x1f\n\x1b\x43\x41MPAIGN_TARGETING_MISMATCH\x10\x36\x12\"\n\x1e\x43\x41NNOT_OPERATE_ON_REMOVED_FEED\x10\x37\x12\x1b\n\x17\x45XTENSION_TYPE_REQUIRED\x10\x38\x12-\n)INCOMPATIBLE_UNDERLYING_MATCHING_FUNCTION\x10\x39\x12\x1d\n\x19START_DATE_AFTER_END_DATE\x10:\x12\x18\n\x14INVALID_PRICE_FORMAT\x10;\x12\x1a\n\x16PROMOTION_INVALID_TIME\x10<\x12<\n8PROMOTION_CANNOT_SET_PERCENT_DISCOUNT_AND_MONEY_DISCOUNT\x10=\x12>\n:PROMOTION_CANNOT_SET_PROMOTION_CODE_AND_ORDERS_OVER_AMOUNT\x10>\x12%\n!TOO_MANY_DECIMAL_PLACES_SPECIFIED\x10?\x12\x19\n\x15INVALID_LANGUAGE_CODE\x10@\x12\x18\n\x14UNSUPPORTED_LANGUAGE\x10\x41\x12\x30\n,CUSTOMER_CONSENT_FOR_CALL_RECORDING_REQUIRED\x10\x42\x12&\n\"EXTENSION_SETTING_UPDATE_IS_A_NOOP\x10\x43\x42\xf5\x01\n\"com.google.ads.googleads.v1.errorsB\x1a\x45xtensionSettingErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V1.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V1\\Errors\xea\x02\"Google::Ads::GoogleAds::V1::Errorsb\x06proto3') + serialized_options=_b('\n\"com.google.ads.googleads.v4.errorsB\032ExtensionSettingErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V4.Errors\312\002\036Google\\Ads\\GoogleAds\\V4\\Errors\352\002\"Google::Ads::GoogleAds::V4::Errors'), + serialized_pb=_b('\nBgoogle/ads/googleads_v4/proto/errors/extension_setting_error.proto\x12\x1egoogle.ads.googleads.v4.errors\x1a\x1cgoogle/api/annotations.proto\"\x98\x14\n\x19\x45xtensionSettingErrorEnum\"\xfa\x13\n\x15\x45xtensionSettingError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x17\n\x13\x45XTENSIONS_REQUIRED\x10\x02\x12%\n!FEED_TYPE_EXTENSION_TYPE_MISMATCH\x10\x03\x12\x15\n\x11INVALID_FEED_TYPE\x10\x04\x12\x34\n0INVALID_FEED_TYPE_FOR_CUSTOMER_EXTENSION_SETTING\x10\x05\x12%\n!CANNOT_CHANGE_FEED_ITEM_ON_CREATE\x10\x06\x12)\n%CANNOT_UPDATE_NEWLY_CREATED_EXTENSION\x10\x07\x12\x33\n/NO_EXISTING_AD_GROUP_EXTENSION_SETTING_FOR_TYPE\x10\x08\x12\x33\n/NO_EXISTING_CAMPAIGN_EXTENSION_SETTING_FOR_TYPE\x10\t\x12\x33\n/NO_EXISTING_CUSTOMER_EXTENSION_SETTING_FOR_TYPE\x10\n\x12-\n)AD_GROUP_EXTENSION_SETTING_ALREADY_EXISTS\x10\x0b\x12-\n)CAMPAIGN_EXTENSION_SETTING_ALREADY_EXISTS\x10\x0c\x12-\n)CUSTOMER_EXTENSION_SETTING_ALREADY_EXISTS\x10\r\x12\x35\n1AD_GROUP_FEED_ALREADY_EXISTS_FOR_PLACEHOLDER_TYPE\x10\x0e\x12\x35\n1CAMPAIGN_FEED_ALREADY_EXISTS_FOR_PLACEHOLDER_TYPE\x10\x0f\x12\x35\n1CUSTOMER_FEED_ALREADY_EXISTS_FOR_PLACEHOLDER_TYPE\x10\x10\x12\x16\n\x12VALUE_OUT_OF_RANGE\x10\x11\x12$\n CANNOT_SET_FIELD_WITH_FINAL_URLS\x10\x12\x12\x16\n\x12\x46INAL_URLS_NOT_SET\x10\x13\x12\x18\n\x14INVALID_PHONE_NUMBER\x10\x14\x12*\n&PHONE_NUMBER_NOT_SUPPORTED_FOR_COUNTRY\x10\x15\x12-\n)CARRIER_SPECIFIC_SHORT_NUMBER_NOT_ALLOWED\x10\x16\x12#\n\x1fPREMIUM_RATE_NUMBER_NOT_ALLOWED\x10\x17\x12\x1a\n\x16\x44ISALLOWED_NUMBER_TYPE\x10\x18\x12(\n$INVALID_DOMESTIC_PHONE_NUMBER_FORMAT\x10\x19\x12#\n\x1fVANITY_PHONE_NUMBER_NOT_ALLOWED\x10\x1a\x12\x18\n\x14INVALID_COUNTRY_CODE\x10\x1b\x12#\n\x1fINVALID_CALL_CONVERSION_TYPE_ID\x10\x1c\x12-\n)CUSTOMER_NOT_WHITELISTED_FOR_CALLTRACKING\x10\x1d\x12*\n&CALLTRACKING_NOT_SUPPORTED_FOR_COUNTRY\x10\x1e\x12\x12\n\x0eINVALID_APP_ID\x10\x1f\x12&\n\"QUOTES_IN_REVIEW_EXTENSION_SNIPPET\x10 \x12\'\n#HYPHENS_IN_REVIEW_EXTENSION_SNIPPET\x10!\x12(\n$REVIEW_EXTENSION_SOURCE_NOT_ELIGIBLE\x10\"\x12(\n$SOURCE_NAME_IN_REVIEW_EXTENSION_TEXT\x10#\x12\x11\n\rMISSING_FIELD\x10$\x12\x1f\n\x1bINCONSISTENT_CURRENCY_CODES\x10%\x12*\n&PRICE_EXTENSION_HAS_DUPLICATED_HEADERS\x10&\x12\x34\n0PRICE_ITEM_HAS_DUPLICATED_HEADER_AND_DESCRIPTION\x10\'\x12%\n!PRICE_EXTENSION_HAS_TOO_FEW_ITEMS\x10(\x12&\n\"PRICE_EXTENSION_HAS_TOO_MANY_ITEMS\x10)\x12\x15\n\x11UNSUPPORTED_VALUE\x10*\x12\x1d\n\x19INVALID_DEVICE_PREFERENCE\x10+\x12\x18\n\x14INVALID_SCHEDULE_END\x10-\x12*\n&DATE_TIME_MUST_BE_IN_ACCOUNT_TIME_ZONE\x10/\x12%\n!OVERLAPPING_SCHEDULES_NOT_ALLOWED\x10\x30\x12 \n\x1cSCHEDULE_END_NOT_AFTER_START\x10\x31\x12\x1e\n\x1aTOO_MANY_SCHEDULES_PER_DAY\x10\x32\x12&\n\"DUPLICATE_EXTENSION_FEED_ITEM_EDIT\x10\x33\x12\x1b\n\x17INVALID_SNIPPETS_HEADER\x10\x34\x12<\n8PHONE_NUMBER_NOT_SUPPORTED_WITH_CALLTRACKING_FOR_COUNTRY\x10\x35\x12\x1f\n\x1b\x43\x41MPAIGN_TARGETING_MISMATCH\x10\x36\x12\"\n\x1e\x43\x41NNOT_OPERATE_ON_REMOVED_FEED\x10\x37\x12\x1b\n\x17\x45XTENSION_TYPE_REQUIRED\x10\x38\x12-\n)INCOMPATIBLE_UNDERLYING_MATCHING_FUNCTION\x10\x39\x12\x1d\n\x19START_DATE_AFTER_END_DATE\x10:\x12\x18\n\x14INVALID_PRICE_FORMAT\x10;\x12\x1a\n\x16PROMOTION_INVALID_TIME\x10<\x12<\n8PROMOTION_CANNOT_SET_PERCENT_DISCOUNT_AND_MONEY_DISCOUNT\x10=\x12>\n:PROMOTION_CANNOT_SET_PROMOTION_CODE_AND_ORDERS_OVER_AMOUNT\x10>\x12%\n!TOO_MANY_DECIMAL_PLACES_SPECIFIED\x10?\x12\x19\n\x15INVALID_LANGUAGE_CODE\x10@\x12\x18\n\x14UNSUPPORTED_LANGUAGE\x10\x41\x12\x30\n,CUSTOMER_CONSENT_FOR_CALL_RECORDING_REQUIRED\x10\x42\x12&\n\"EXTENSION_SETTING_UPDATE_IS_A_NOOP\x10\x43\x42\xf5\x01\n\"com.google.ads.googleads.v4.errorsB\x1a\x45xtensionSettingErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V4.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V4\\Errors\xea\x02\"Google::Ads::GoogleAds::V4::Errorsb\x06proto3') , dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) @@ -29,7 +29,7 @@ _EXTENSIONSETTINGERRORENUM_EXTENSIONSETTINGERROR = _descriptor.EnumDescriptor( name='ExtensionSettingError', - full_name='google.ads.googleads.v1.errors.ExtensionSettingErrorEnum.ExtensionSettingError', + full_name='google.ads.googleads.v4.errors.ExtensionSettingErrorEnum.ExtensionSettingError', filename=None, file=DESCRIPTOR, values=[ @@ -308,7 +308,7 @@ _EXTENSIONSETTINGERRORENUM = _descriptor.Descriptor( name='ExtensionSettingErrorEnum', - full_name='google.ads.googleads.v1.errors.ExtensionSettingErrorEnum', + full_name='google.ads.googleads.v4.errors.ExtensionSettingErrorEnum', filename=None, file=DESCRIPTOR, containing_type=None, @@ -336,11 +336,11 @@ ExtensionSettingErrorEnum = _reflection.GeneratedProtocolMessageType('ExtensionSettingErrorEnum', (_message.Message,), dict( DESCRIPTOR = _EXTENSIONSETTINGERRORENUM, - __module__ = 'google.ads.googleads_v1.proto.errors.extension_setting_error_pb2' + __module__ = 'google.ads.googleads_v4.proto.errors.extension_setting_error_pb2' , __doc__ = """Container for enum describing validation errors of extension settings. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.errors.ExtensionSettingErrorEnum) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.errors.ExtensionSettingErrorEnum) )) _sym_db.RegisterMessage(ExtensionSettingErrorEnum) diff --git a/google/ads/google_ads/v1/proto/errors/media_bundle_error_pb2_grpc.py b/google/ads/google_ads/v4/proto/errors/extension_setting_error_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/errors/media_bundle_error_pb2_grpc.py rename to google/ads/google_ads/v4/proto/errors/extension_setting_error_pb2_grpc.py diff --git a/google/ads/google_ads/v1/proto/errors/feed_attribute_reference_error_pb2.py b/google/ads/google_ads/v4/proto/errors/feed_attribute_reference_error_pb2.py similarity index 75% rename from google/ads/google_ads/v1/proto/errors/feed_attribute_reference_error_pb2.py rename to google/ads/google_ads/v4/proto/errors/feed_attribute_reference_error_pb2.py index 85920c1f6..86cb282f2 100644 --- a/google/ads/google_ads/v1/proto/errors/feed_attribute_reference_error_pb2.py +++ b/google/ads/google_ads/v4/proto/errors/feed_attribute_reference_error_pb2.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/errors/feed_attribute_reference_error.proto +# source: google/ads/googleads_v4/proto/errors/feed_attribute_reference_error.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) @@ -17,11 +17,11 @@ DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/errors/feed_attribute_reference_error.proto', - package='google.ads.googleads.v1.errors', + name='google/ads/googleads_v4/proto/errors/feed_attribute_reference_error.proto', + package='google.ads.googleads.v4.errors', syntax='proto3', - serialized_options=_b('\n\"com.google.ads.googleads.v1.errorsB FeedAttributeReferenceErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V1.Errors\312\002\036Google\\Ads\\GoogleAds\\V1\\Errors\352\002\"Google::Ads::GoogleAds::V1::Errors'), - serialized_pb=_b('\nIgoogle/ads/googleads_v1/proto/errors/feed_attribute_reference_error.proto\x12\x1egoogle.ads.googleads.v1.errors\x1a\x1cgoogle/api/annotations.proto\"\xba\x01\n\x1f\x46\x65\x65\x64\x41ttributeReferenceErrorEnum\"\x96\x01\n\x1b\x46\x65\x65\x64\x41ttributeReferenceError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12!\n\x1d\x43\x41NNOT_REFERENCE_REMOVED_FEED\x10\x02\x12\x15\n\x11INVALID_FEED_NAME\x10\x03\x12\x1f\n\x1bINVALID_FEED_ATTRIBUTE_NAME\x10\x04\x42\xfb\x01\n\"com.google.ads.googleads.v1.errorsB FeedAttributeReferenceErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V1.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V1\\Errors\xea\x02\"Google::Ads::GoogleAds::V1::Errorsb\x06proto3') + serialized_options=_b('\n\"com.google.ads.googleads.v4.errorsB FeedAttributeReferenceErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V4.Errors\312\002\036Google\\Ads\\GoogleAds\\V4\\Errors\352\002\"Google::Ads::GoogleAds::V4::Errors'), + serialized_pb=_b('\nIgoogle/ads/googleads_v4/proto/errors/feed_attribute_reference_error.proto\x12\x1egoogle.ads.googleads.v4.errors\x1a\x1cgoogle/api/annotations.proto\"\xba\x01\n\x1f\x46\x65\x65\x64\x41ttributeReferenceErrorEnum\"\x96\x01\n\x1b\x46\x65\x65\x64\x41ttributeReferenceError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12!\n\x1d\x43\x41NNOT_REFERENCE_REMOVED_FEED\x10\x02\x12\x15\n\x11INVALID_FEED_NAME\x10\x03\x12\x1f\n\x1bINVALID_FEED_ATTRIBUTE_NAME\x10\x04\x42\xfb\x01\n\"com.google.ads.googleads.v4.errorsB FeedAttributeReferenceErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V4.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V4\\Errors\xea\x02\"Google::Ads::GoogleAds::V4::Errorsb\x06proto3') , dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) @@ -29,7 +29,7 @@ _FEEDATTRIBUTEREFERENCEERRORENUM_FEEDATTRIBUTEREFERENCEERROR = _descriptor.EnumDescriptor( name='FeedAttributeReferenceError', - full_name='google.ads.googleads.v1.errors.FeedAttributeReferenceErrorEnum.FeedAttributeReferenceError', + full_name='google.ads.googleads.v4.errors.FeedAttributeReferenceErrorEnum.FeedAttributeReferenceError', filename=None, file=DESCRIPTOR, values=[ @@ -64,7 +64,7 @@ _FEEDATTRIBUTEREFERENCEERRORENUM = _descriptor.Descriptor( name='FeedAttributeReferenceErrorEnum', - full_name='google.ads.googleads.v1.errors.FeedAttributeReferenceErrorEnum', + full_name='google.ads.googleads.v4.errors.FeedAttributeReferenceErrorEnum', filename=None, file=DESCRIPTOR, containing_type=None, @@ -92,11 +92,11 @@ FeedAttributeReferenceErrorEnum = _reflection.GeneratedProtocolMessageType('FeedAttributeReferenceErrorEnum', (_message.Message,), dict( DESCRIPTOR = _FEEDATTRIBUTEREFERENCEERRORENUM, - __module__ = 'google.ads.googleads_v1.proto.errors.feed_attribute_reference_error_pb2' + __module__ = 'google.ads.googleads_v4.proto.errors.feed_attribute_reference_error_pb2' , __doc__ = """Container for enum describing possible feed attribute reference errors. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.errors.FeedAttributeReferenceErrorEnum) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.errors.FeedAttributeReferenceErrorEnum) )) _sym_db.RegisterMessage(FeedAttributeReferenceErrorEnum) diff --git a/google/ads/google_ads/v1/proto/errors/media_file_error_pb2_grpc.py b/google/ads/google_ads/v4/proto/errors/feed_attribute_reference_error_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/errors/media_file_error_pb2_grpc.py rename to google/ads/google_ads/v4/proto/errors/feed_attribute_reference_error_pb2_grpc.py diff --git a/google/ads/google_ads/v1/proto/errors/feed_error_pb2.py b/google/ads/google_ads/v4/proto/errors/feed_error_pb2.py similarity index 78% rename from google/ads/google_ads/v1/proto/errors/feed_error_pb2.py rename to google/ads/google_ads/v4/proto/errors/feed_error_pb2.py index 718d5da1b..eee612495 100644 --- a/google/ads/google_ads/v1/proto/errors/feed_error_pb2.py +++ b/google/ads/google_ads/v4/proto/errors/feed_error_pb2.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/errors/feed_error.proto +# source: google/ads/googleads_v4/proto/errors/feed_error.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) @@ -17,11 +17,11 @@ DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/errors/feed_error.proto', - package='google.ads.googleads.v1.errors', + name='google/ads/googleads_v4/proto/errors/feed_error.proto', + package='google.ads.googleads.v4.errors', syntax='proto3', - serialized_options=_b('\n\"com.google.ads.googleads.v1.errorsB\016FeedErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V1.Errors\312\002\036Google\\Ads\\GoogleAds\\V1\\Errors\352\002\"Google::Ads::GoogleAds::V1::Errors'), - serialized_pb=_b('\n5google/ads/googleads_v1/proto/errors/feed_error.proto\x12\x1egoogle.ads.googleads.v1.errors\x1a\x1cgoogle/api/annotations.proto\"\xf9\x05\n\rFeedErrorEnum\"\xe7\x05\n\tFeedError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x1e\n\x1a\x41TTRIBUTE_NAMES_NOT_UNIQUE\x10\x02\x12/\n+ATTRIBUTES_DO_NOT_MATCH_EXISTING_ATTRIBUTES\x10\x03\x12.\n*CANNOT_SPECIFY_USER_ORIGIN_FOR_SYSTEM_FEED\x10\x04\x12\x34\n0CANNOT_SPECIFY_GOOGLE_ORIGIN_FOR_NON_SYSTEM_FEED\x10\x05\x12\x32\n.CANNOT_SPECIFY_FEED_ATTRIBUTES_FOR_SYSTEM_FEED\x10\x06\x12\x34\n0CANNOT_UPDATE_FEED_ATTRIBUTES_WITH_ORIGIN_GOOGLE\x10\x07\x12\x10\n\x0c\x46\x45\x45\x44_REMOVED\x10\x08\x12\x18\n\x14INVALID_ORIGIN_VALUE\x10\t\x12\x1b\n\x17\x46\x45\x45\x44_ORIGIN_IS_NOT_USER\x10\n\x12 \n\x1cINVALID_AUTH_TOKEN_FOR_EMAIL\x10\x0b\x12\x11\n\rINVALID_EMAIL\x10\x0c\x12\x17\n\x13\x44UPLICATE_FEED_NAME\x10\r\x12\x15\n\x11INVALID_FEED_NAME\x10\x0e\x12\x16\n\x12MISSING_OAUTH_INFO\x10\x0f\x12.\n*NEW_ATTRIBUTE_CANNOT_BE_PART_OF_UNIQUE_KEY\x10\x10\x12\x17\n\x13TOO_MANY_ATTRIBUTES\x10\x11\x12\x1c\n\x18INVALID_BUSINESS_ACCOUNT\x10\x12\x12\x33\n/BUSINESS_ACCOUNT_CANNOT_ACCESS_LOCATION_ACCOUNT\x10\x13\x12\x1e\n\x1aINVALID_AFFILIATE_CHAIN_ID\x10\x14\x12\x19\n\x15\x44UPLICATE_SYSTEM_FEED\x10\x15\x42\xe9\x01\n\"com.google.ads.googleads.v1.errorsB\x0e\x46\x65\x65\x64\x45rrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V1.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V1\\Errors\xea\x02\"Google::Ads::GoogleAds::V1::Errorsb\x06proto3') + serialized_options=_b('\n\"com.google.ads.googleads.v4.errorsB\016FeedErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V4.Errors\312\002\036Google\\Ads\\GoogleAds\\V4\\Errors\352\002\"Google::Ads::GoogleAds::V4::Errors'), + serialized_pb=_b('\n5google/ads/googleads_v4/proto/errors/feed_error.proto\x12\x1egoogle.ads.googleads.v4.errors\x1a\x1cgoogle/api/annotations.proto\"\xc6\x06\n\rFeedErrorEnum\"\xb4\x06\n\tFeedError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x1e\n\x1a\x41TTRIBUTE_NAMES_NOT_UNIQUE\x10\x02\x12/\n+ATTRIBUTES_DO_NOT_MATCH_EXISTING_ATTRIBUTES\x10\x03\x12.\n*CANNOT_SPECIFY_USER_ORIGIN_FOR_SYSTEM_FEED\x10\x04\x12\x34\n0CANNOT_SPECIFY_GOOGLE_ORIGIN_FOR_NON_SYSTEM_FEED\x10\x05\x12\x32\n.CANNOT_SPECIFY_FEED_ATTRIBUTES_FOR_SYSTEM_FEED\x10\x06\x12\x34\n0CANNOT_UPDATE_FEED_ATTRIBUTES_WITH_ORIGIN_GOOGLE\x10\x07\x12\x10\n\x0c\x46\x45\x45\x44_REMOVED\x10\x08\x12\x18\n\x14INVALID_ORIGIN_VALUE\x10\t\x12\x1b\n\x17\x46\x45\x45\x44_ORIGIN_IS_NOT_USER\x10\n\x12 \n\x1cINVALID_AUTH_TOKEN_FOR_EMAIL\x10\x0b\x12\x11\n\rINVALID_EMAIL\x10\x0c\x12\x17\n\x13\x44UPLICATE_FEED_NAME\x10\r\x12\x15\n\x11INVALID_FEED_NAME\x10\x0e\x12\x16\n\x12MISSING_OAUTH_INFO\x10\x0f\x12.\n*NEW_ATTRIBUTE_CANNOT_BE_PART_OF_UNIQUE_KEY\x10\x10\x12\x17\n\x13TOO_MANY_ATTRIBUTES\x10\x11\x12\x1c\n\x18INVALID_BUSINESS_ACCOUNT\x10\x12\x12\x33\n/BUSINESS_ACCOUNT_CANNOT_ACCESS_LOCATION_ACCOUNT\x10\x13\x12\x1e\n\x1aINVALID_AFFILIATE_CHAIN_ID\x10\x14\x12\x19\n\x15\x44UPLICATE_SYSTEM_FEED\x10\x15\x12\x14\n\x10GMB_ACCESS_ERROR\x10\x16\x12\x35\n1CANNOT_HAVE_LOCATION_AND_AFFILIATE_LOCATION_FEEDS\x10\x17\x42\xe9\x01\n\"com.google.ads.googleads.v4.errorsB\x0e\x46\x65\x65\x64\x45rrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V4.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V4\\Errors\xea\x02\"Google::Ads::GoogleAds::V4::Errorsb\x06proto3') , dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) @@ -29,7 +29,7 @@ _FEEDERRORENUM_FEEDERROR = _descriptor.EnumDescriptor( name='FeedError', - full_name='google.ads.googleads.v1.errors.FeedErrorEnum.FeedError', + full_name='google.ads.googleads.v4.errors.FeedErrorEnum.FeedError', filename=None, file=DESCRIPTOR, values=[ @@ -121,18 +121,26 @@ name='DUPLICATE_SYSTEM_FEED', index=21, number=21, serialized_options=None, type=None), + _descriptor.EnumValueDescriptor( + name='GMB_ACCESS_ERROR', index=22, number=22, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CANNOT_HAVE_LOCATION_AND_AFFILIATE_LOCATION_FEEDS', index=23, number=23, + serialized_options=None, + type=None), ], containing_type=None, serialized_options=None, serialized_start=138, - serialized_end=881, + serialized_end=958, ) _sym_db.RegisterEnumDescriptor(_FEEDERRORENUM_FEEDERROR) _FEEDERRORENUM = _descriptor.Descriptor( name='FeedErrorEnum', - full_name='google.ads.googleads.v1.errors.FeedErrorEnum', + full_name='google.ads.googleads.v4.errors.FeedErrorEnum', filename=None, file=DESCRIPTOR, containing_type=None, @@ -151,7 +159,7 @@ oneofs=[ ], serialized_start=120, - serialized_end=881, + serialized_end=958, ) _FEEDERRORENUM_FEEDERROR.containing_type = _FEEDERRORENUM @@ -160,11 +168,11 @@ FeedErrorEnum = _reflection.GeneratedProtocolMessageType('FeedErrorEnum', (_message.Message,), dict( DESCRIPTOR = _FEEDERRORENUM, - __module__ = 'google.ads.googleads_v1.proto.errors.feed_error_pb2' + __module__ = 'google.ads.googleads_v4.proto.errors.feed_error_pb2' , __doc__ = """Container for enum describing possible feed errors. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.errors.FeedErrorEnum) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.errors.FeedErrorEnum) )) _sym_db.RegisterMessage(FeedErrorEnum) diff --git a/google/ads/google_ads/v1/proto/errors/media_upload_error_pb2_grpc.py b/google/ads/google_ads/v4/proto/errors/feed_error_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/errors/media_upload_error_pb2_grpc.py rename to google/ads/google_ads/v4/proto/errors/feed_error_pb2_grpc.py diff --git a/google/ads/google_ads/v1/proto/errors/feed_item_error_pb2.py b/google/ads/google_ads/v4/proto/errors/feed_item_error_pb2.py similarity index 80% rename from google/ads/google_ads/v1/proto/errors/feed_item_error_pb2.py rename to google/ads/google_ads/v4/proto/errors/feed_item_error_pb2.py index 4255a9395..e9821a8d3 100644 --- a/google/ads/google_ads/v1/proto/errors/feed_item_error_pb2.py +++ b/google/ads/google_ads/v4/proto/errors/feed_item_error_pb2.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/errors/feed_item_error.proto +# source: google/ads/googleads_v4/proto/errors/feed_item_error.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) @@ -17,11 +17,11 @@ DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/errors/feed_item_error.proto', - package='google.ads.googleads.v1.errors', + name='google/ads/googleads_v4/proto/errors/feed_item_error.proto', + package='google.ads.googleads.v4.errors', syntax='proto3', - serialized_options=_b('\n\"com.google.ads.googleads.v1.errorsB\022FeedItemErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V1.Errors\312\002\036Google\\Ads\\GoogleAds\\V1\\Errors\352\002\"Google::Ads::GoogleAds::V1::Errors'), - serialized_pb=_b('\n:google/ads/googleads_v1/proto/errors/feed_item_error.proto\x12\x1egoogle.ads.googleads.v1.errors\x1a\x1cgoogle/api/annotations.proto\"\x87\x03\n\x11\x46\x65\x65\x64ItemErrorEnum\"\xf1\x02\n\rFeedItemError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12.\n*CANNOT_CONVERT_ATTRIBUTE_VALUE_FROM_STRING\x10\x02\x12\'\n#CANNOT_OPERATE_ON_REMOVED_FEED_ITEM\x10\x03\x12*\n&DATE_TIME_MUST_BE_IN_ACCOUNT_TIME_ZONE\x10\x04\x12\x1c\n\x18KEY_ATTRIBUTES_NOT_FOUND\x10\x05\x12\x0f\n\x0bINVALID_URL\x10\x06\x12\x1a\n\x16MISSING_KEY_ATTRIBUTES\x10\x07\x12\x1d\n\x19KEY_ATTRIBUTES_NOT_UNIQUE\x10\x08\x12%\n!CANNOT_MODIFY_KEY_ATTRIBUTE_VALUE\x10\t\x12,\n(SIZE_TOO_LARGE_FOR_MULTI_VALUE_ATTRIBUTE\x10\nB\xed\x01\n\"com.google.ads.googleads.v1.errorsB\x12\x46\x65\x65\x64ItemErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V1.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V1\\Errors\xea\x02\"Google::Ads::GoogleAds::V1::Errorsb\x06proto3') + serialized_options=_b('\n\"com.google.ads.googleads.v4.errorsB\022FeedItemErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V4.Errors\312\002\036Google\\Ads\\GoogleAds\\V4\\Errors\352\002\"Google::Ads::GoogleAds::V4::Errors'), + serialized_pb=_b('\n:google/ads/googleads_v4/proto/errors/feed_item_error.proto\x12\x1egoogle.ads.googleads.v4.errors\x1a\x1cgoogle/api/annotations.proto\"\x87\x03\n\x11\x46\x65\x65\x64ItemErrorEnum\"\xf1\x02\n\rFeedItemError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12.\n*CANNOT_CONVERT_ATTRIBUTE_VALUE_FROM_STRING\x10\x02\x12\'\n#CANNOT_OPERATE_ON_REMOVED_FEED_ITEM\x10\x03\x12*\n&DATE_TIME_MUST_BE_IN_ACCOUNT_TIME_ZONE\x10\x04\x12\x1c\n\x18KEY_ATTRIBUTES_NOT_FOUND\x10\x05\x12\x0f\n\x0bINVALID_URL\x10\x06\x12\x1a\n\x16MISSING_KEY_ATTRIBUTES\x10\x07\x12\x1d\n\x19KEY_ATTRIBUTES_NOT_UNIQUE\x10\x08\x12%\n!CANNOT_MODIFY_KEY_ATTRIBUTE_VALUE\x10\t\x12,\n(SIZE_TOO_LARGE_FOR_MULTI_VALUE_ATTRIBUTE\x10\nB\xed\x01\n\"com.google.ads.googleads.v4.errorsB\x12\x46\x65\x65\x64ItemErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V4.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V4\\Errors\xea\x02\"Google::Ads::GoogleAds::V4::Errorsb\x06proto3') , dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) @@ -29,7 +29,7 @@ _FEEDITEMERRORENUM_FEEDITEMERROR = _descriptor.EnumDescriptor( name='FeedItemError', - full_name='google.ads.googleads.v1.errors.FeedItemErrorEnum.FeedItemError', + full_name='google.ads.googleads.v4.errors.FeedItemErrorEnum.FeedItemError', filename=None, file=DESCRIPTOR, values=[ @@ -88,7 +88,7 @@ _FEEDITEMERRORENUM = _descriptor.Descriptor( name='FeedItemErrorEnum', - full_name='google.ads.googleads.v1.errors.FeedItemErrorEnum', + full_name='google.ads.googleads.v4.errors.FeedItemErrorEnum', filename=None, file=DESCRIPTOR, containing_type=None, @@ -116,11 +116,11 @@ FeedItemErrorEnum = _reflection.GeneratedProtocolMessageType('FeedItemErrorEnum', (_message.Message,), dict( DESCRIPTOR = _FEEDITEMERRORENUM, - __module__ = 'google.ads.googleads_v1.proto.errors.feed_item_error_pb2' + __module__ = 'google.ads.googleads_v4.proto.errors.feed_item_error_pb2' , __doc__ = """Container for enum describing possible feed item errors. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.errors.FeedItemErrorEnum) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.errors.FeedItemErrorEnum) )) _sym_db.RegisterMessage(FeedItemErrorEnum) diff --git a/google/ads/google_ads/v1/proto/errors/multiplier_error_pb2_grpc.py b/google/ads/google_ads/v4/proto/errors/feed_item_error_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/errors/multiplier_error_pb2_grpc.py rename to google/ads/google_ads/v4/proto/errors/feed_item_error_pb2_grpc.py diff --git a/google/ads/google_ads/v4/proto/errors/feed_item_target_error_pb2.py b/google/ads/google_ads/v4/proto/errors/feed_item_target_error_pb2.py new file mode 100644 index 000000000..8ec631b60 --- /dev/null +++ b/google/ads/google_ads/v4/proto/errors/feed_item_target_error_pb2.py @@ -0,0 +1,125 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/errors/feed_item_target_error.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/errors/feed_item_target_error.proto', + package='google.ads.googleads.v4.errors', + syntax='proto3', + serialized_options=_b('\n\"com.google.ads.googleads.v4.errorsB\030FeedItemTargetErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V4.Errors\312\002\036Google\\Ads\\GoogleAds\\V4\\Errors\352\002\"Google::Ads::GoogleAds::V4::Errors'), + serialized_pb=_b('\nAgoogle/ads/googleads_v4/proto/errors/feed_item_target_error.proto\x12\x1egoogle.ads.googleads.v4.errors\x1a\x1cgoogle/api/annotations.proto\"\xfc\x02\n\x17\x46\x65\x65\x64ItemTargetErrorEnum\"\xe0\x02\n\x13\x46\x65\x65\x64ItemTargetError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12#\n\x1fMUST_SET_TARGET_ONEOF_ON_CREATE\x10\x02\x12#\n\x1f\x46\x45\x45\x44_ITEM_TARGET_ALREADY_EXISTS\x10\x03\x12&\n\"FEED_ITEM_SCHEDULES_CANNOT_OVERLAP\x10\x04\x12(\n$TARGET_LIMIT_EXCEEDED_FOR_GIVEN_TYPE\x10\x05\x12\x1e\n\x1aTOO_MANY_SCHEDULES_PER_DAY\x10\x06\x12=\n9CANNOT_HAVE_ENABLED_CAMPAIGN_AND_ENABLED_AD_GROUP_TARGETS\x10\x07\x12\x19\n\x15\x44UPLICATE_AD_SCHEDULE\x10\x08\x12\x15\n\x11\x44UPLICATE_KEYWORD\x10\tB\xf3\x01\n\"com.google.ads.googleads.v4.errorsB\x18\x46\x65\x65\x64ItemTargetErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V4.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V4\\Errors\xea\x02\"Google::Ads::GoogleAds::V4::Errorsb\x06proto3') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_FEEDITEMTARGETERRORENUM_FEEDITEMTARGETERROR = _descriptor.EnumDescriptor( + name='FeedItemTargetError', + full_name='google.ads.googleads.v4.errors.FeedItemTargetErrorEnum.FeedItemTargetError', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='UNSPECIFIED', index=0, number=0, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='UNKNOWN', index=1, number=1, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='MUST_SET_TARGET_ONEOF_ON_CREATE', index=2, number=2, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='FEED_ITEM_TARGET_ALREADY_EXISTS', index=3, number=3, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='FEED_ITEM_SCHEDULES_CANNOT_OVERLAP', index=4, number=4, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='TARGET_LIMIT_EXCEEDED_FOR_GIVEN_TYPE', index=5, number=5, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='TOO_MANY_SCHEDULES_PER_DAY', index=6, number=6, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CANNOT_HAVE_ENABLED_CAMPAIGN_AND_ENABLED_AD_GROUP_TARGETS', index=7, number=7, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='DUPLICATE_AD_SCHEDULE', index=8, number=8, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='DUPLICATE_KEYWORD', index=9, number=9, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=160, + serialized_end=512, +) +_sym_db.RegisterEnumDescriptor(_FEEDITEMTARGETERRORENUM_FEEDITEMTARGETERROR) + + +_FEEDITEMTARGETERRORENUM = _descriptor.Descriptor( + name='FeedItemTargetErrorEnum', + full_name='google.ads.googleads.v4.errors.FeedItemTargetErrorEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _FEEDITEMTARGETERRORENUM_FEEDITEMTARGETERROR, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=132, + serialized_end=512, +) + +_FEEDITEMTARGETERRORENUM_FEEDITEMTARGETERROR.containing_type = _FEEDITEMTARGETERRORENUM +DESCRIPTOR.message_types_by_name['FeedItemTargetErrorEnum'] = _FEEDITEMTARGETERRORENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +FeedItemTargetErrorEnum = _reflection.GeneratedProtocolMessageType('FeedItemTargetErrorEnum', (_message.Message,), dict( + DESCRIPTOR = _FEEDITEMTARGETERRORENUM, + __module__ = 'google.ads.googleads_v4.proto.errors.feed_item_target_error_pb2' + , + __doc__ = """Container for enum describing possible feed item target errors. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.errors.FeedItemTargetErrorEnum) + )) +_sym_db.RegisterMessage(FeedItemTargetErrorEnum) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/errors/mutate_error_pb2_grpc.py b/google/ads/google_ads/v4/proto/errors/feed_item_target_error_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/errors/mutate_error_pb2_grpc.py rename to google/ads/google_ads/v4/proto/errors/feed_item_target_error_pb2_grpc.py diff --git a/google/ads/google_ads/v1/proto/errors/feed_item_validation_error_pb2.py b/google/ads/google_ads/v4/proto/errors/feed_item_validation_error_pb2.py similarity index 92% rename from google/ads/google_ads/v1/proto/errors/feed_item_validation_error_pb2.py rename to google/ads/google_ads/v4/proto/errors/feed_item_validation_error_pb2.py index 2ae76cd35..1f400f31a 100644 --- a/google/ads/google_ads/v1/proto/errors/feed_item_validation_error_pb2.py +++ b/google/ads/google_ads/v4/proto/errors/feed_item_validation_error_pb2.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/errors/feed_item_validation_error.proto +# source: google/ads/googleads_v4/proto/errors/feed_item_validation_error.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) @@ -17,11 +17,11 @@ DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/errors/feed_item_validation_error.proto', - package='google.ads.googleads.v1.errors', + name='google/ads/googleads_v4/proto/errors/feed_item_validation_error.proto', + package='google.ads.googleads.v4.errors', syntax='proto3', - serialized_options=_b('\n\"com.google.ads.googleads.v1.errorsB\034FeedItemValidationErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V1.Errors\312\002\036Google\\Ads\\GoogleAds\\V1\\Errors\352\002\"Google::Ads::GoogleAds::V1::Errors'), - serialized_pb=_b('\nEgoogle/ads/googleads_v1/proto/errors/feed_item_validation_error.proto\x12\x1egoogle.ads.googleads.v1.errors\x1a\x1cgoogle/api/annotations.proto\"\xb4\x19\n\x1b\x46\x65\x65\x64ItemValidationErrorEnum\"\x94\x19\n\x17\x46\x65\x65\x64ItemValidationError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x14\n\x10STRING_TOO_SHORT\x10\x02\x12\x13\n\x0fSTRING_TOO_LONG\x10\x03\x12\x17\n\x13VALUE_NOT_SPECIFIED\x10\x04\x12(\n$INVALID_DOMESTIC_PHONE_NUMBER_FORMAT\x10\x05\x12\x18\n\x14INVALID_PHONE_NUMBER\x10\x06\x12*\n&PHONE_NUMBER_NOT_SUPPORTED_FOR_COUNTRY\x10\x07\x12#\n\x1fPREMIUM_RATE_NUMBER_NOT_ALLOWED\x10\x08\x12\x1a\n\x16\x44ISALLOWED_NUMBER_TYPE\x10\t\x12\x16\n\x12VALUE_OUT_OF_RANGE\x10\n\x12*\n&CALLTRACKING_NOT_SUPPORTED_FOR_COUNTRY\x10\x0b\x12-\n)CUSTOMER_NOT_WHITELISTED_FOR_CALLTRACKING\x10\x0c\x12\x18\n\x14INVALID_COUNTRY_CODE\x10\r\x12\x12\n\x0eINVALID_APP_ID\x10\x0e\x12!\n\x1dMISSING_ATTRIBUTES_FOR_FIELDS\x10\x0f\x12\x13\n\x0fINVALID_TYPE_ID\x10\x10\x12\x19\n\x15INVALID_EMAIL_ADDRESS\x10\x11\x12\x15\n\x11INVALID_HTTPS_URL\x10\x12\x12\x1c\n\x18MISSING_DELIVERY_ADDRESS\x10\x13\x12\x1d\n\x19START_DATE_AFTER_END_DATE\x10\x14\x12 \n\x1cMISSING_FEED_ITEM_START_TIME\x10\x15\x12\x1e\n\x1aMISSING_FEED_ITEM_END_TIME\x10\x16\x12\x18\n\x14MISSING_FEED_ITEM_ID\x10\x17\x12#\n\x1fVANITY_PHONE_NUMBER_NOT_ALLOWED\x10\x18\x12$\n INVALID_REVIEW_EXTENSION_SNIPPET\x10\x19\x12\x19\n\x15INVALID_NUMBER_FORMAT\x10\x1a\x12\x17\n\x13INVALID_DATE_FORMAT\x10\x1b\x12\x18\n\x14INVALID_PRICE_FORMAT\x10\x1c\x12\x1d\n\x19UNKNOWN_PLACEHOLDER_FIELD\x10\x1d\x12.\n*MISSING_ENHANCED_SITELINK_DESCRIPTION_LINE\x10\x1e\x12&\n\"REVIEW_EXTENSION_SOURCE_INELIGIBLE\x10\x1f\x12\'\n#HYPHENS_IN_REVIEW_EXTENSION_SNIPPET\x10 \x12-\n)DOUBLE_QUOTES_IN_REVIEW_EXTENSION_SNIPPET\x10!\x12&\n\"QUOTES_IN_REVIEW_EXTENSION_SNIPPET\x10\"\x12\x1f\n\x1bINVALID_FORM_ENCODED_PARAMS\x10#\x12\x1e\n\x1aINVALID_URL_PARAMETER_NAME\x10$\x12\x17\n\x13NO_GEOCODING_RESULT\x10%\x12(\n$SOURCE_NAME_IN_REVIEW_EXTENSION_TEXT\x10&\x12-\n)CARRIER_SPECIFIC_SHORT_NUMBER_NOT_ALLOWED\x10\'\x12 \n\x1cINVALID_PLACEHOLDER_FIELD_ID\x10(\x12\x13\n\x0fINVALID_URL_TAG\x10)\x12\x11\n\rLIST_TOO_LONG\x10*\x12\"\n\x1eINVALID_ATTRIBUTES_COMBINATION\x10+\x12\x14\n\x10\x44UPLICATE_VALUES\x10,\x12%\n!INVALID_CALL_CONVERSION_ACTION_ID\x10-\x12!\n\x1d\x43\x41NNOT_SET_WITHOUT_FINAL_URLS\x10.\x12$\n APP_ID_DOESNT_EXIST_IN_APP_STORE\x10/\x12\x15\n\x11INVALID_FINAL_URL\x10\x30\x12\x18\n\x14INVALID_TRACKING_URL\x10\x31\x12*\n&INVALID_FINAL_URL_FOR_APP_DOWNLOAD_URL\x10\x32\x12\x12\n\x0eLIST_TOO_SHORT\x10\x33\x12\x17\n\x13INVALID_USER_ACTION\x10\x34\x12\x15\n\x11INVALID_TYPE_NAME\x10\x35\x12\x1f\n\x1bINVALID_EVENT_CHANGE_STATUS\x10\x36\x12\x1b\n\x17INVALID_SNIPPETS_HEADER\x10\x37\x12\x1c\n\x18INVALID_ANDROID_APP_LINK\x10\x38\x12;\n7NUMBER_TYPE_WITH_CALLTRACKING_NOT_SUPPORTED_FOR_COUNTRY\x10\x39\x12\x1a\n\x16RESERVED_KEYWORD_OTHER\x10:\x12\x1b\n\x17\x44UPLICATE_OPTION_LABELS\x10;\x12\x1d\n\x19\x44UPLICATE_OPTION_PREFILLS\x10<\x12\x18\n\x14UNEQUAL_LIST_LENGTHS\x10=\x12\x1f\n\x1bINCONSISTENT_CURRENCY_CODES\x10>\x12*\n&PRICE_EXTENSION_HAS_DUPLICATED_HEADERS\x10?\x12.\n*ITEM_HAS_DUPLICATED_HEADER_AND_DESCRIPTION\x10@\x12%\n!PRICE_EXTENSION_HAS_TOO_FEW_ITEMS\x10\x41\x12\x15\n\x11UNSUPPORTED_VALUE\x10\x42\x12\x1c\n\x18INVALID_FINAL_MOBILE_URL\x10\x43\x12%\n!INVALID_KEYWORDLESS_AD_RULE_LABEL\x10\x44\x12\'\n#VALUE_TRACK_PARAMETER_NOT_SUPPORTED\x10\x45\x12*\n&UNSUPPORTED_VALUE_IN_SELECTED_LANGUAGE\x10\x46\x12\x18\n\x14INVALID_IOS_APP_LINK\x10G\x12,\n(MISSING_IOS_APP_LINK_OR_IOS_APP_STORE_ID\x10H\x12\x1a\n\x16PROMOTION_INVALID_TIME\x10I\x12\x39\n5PROMOTION_CANNOT_SET_PERCENT_OFF_AND_MONEY_AMOUNT_OFF\x10J\x12>\n:PROMOTION_CANNOT_SET_PROMOTION_CODE_AND_ORDERS_OVER_AMOUNT\x10K\x12%\n!TOO_MANY_DECIMAL_PLACES_SPECIFIED\x10L\x12\x1e\n\x1a\x41\x44_CUSTOMIZERS_NOT_ALLOWED\x10M\x12\x19\n\x15INVALID_LANGUAGE_CODE\x10N\x12\x18\n\x14UNSUPPORTED_LANGUAGE\x10O\x12\x1b\n\x17IF_FUNCTION_NOT_ALLOWED\x10P\x12\x1c\n\x18INVALID_FINAL_URL_SUFFIX\x10Q\x12#\n\x1fINVALID_TAG_IN_FINAL_URL_SUFFIX\x10R\x12#\n\x1fINVALID_FINAL_URL_SUFFIX_FORMAT\x10S\x12\x30\n,CUSTOMER_CONSENT_FOR_CALL_RECORDING_REQUIRED\x10T\x12\'\n#ONLY_ONE_DELIVERY_OPTION_IS_ALLOWED\x10U\x12\x1d\n\x19NO_DELIVERY_OPTION_IS_SET\x10V\x12&\n\"INVALID_CONVERSION_REPORTING_STATE\x10W\x12\x14\n\x10IMAGE_SIZE_WRONG\x10X\x12+\n\'EMAIL_DELIVERY_NOT_AVAILABLE_IN_COUNTRY\x10Y\x12\'\n#AUTO_REPLY_NOT_AVAILABLE_IN_COUNTRY\x10Z\x12\x1a\n\x16INVALID_LATITUDE_VALUE\x10[\x12\x1b\n\x17INVALID_LONGITUDE_VALUE\x10\\\x12\x13\n\x0fTOO_MANY_LABELS\x10]\x12\x15\n\x11INVALID_IMAGE_URL\x10^\x12\x1a\n\x16MISSING_LATITUDE_VALUE\x10_\x12\x1b\n\x17MISSING_LONGITUDE_VALUE\x10`B\xf7\x01\n\"com.google.ads.googleads.v1.errorsB\x1c\x46\x65\x65\x64ItemValidationErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V1.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V1\\Errors\xea\x02\"Google::Ads::GoogleAds::V1::Errorsb\x06proto3') + serialized_options=_b('\n\"com.google.ads.googleads.v4.errorsB\034FeedItemValidationErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V4.Errors\312\002\036Google\\Ads\\GoogleAds\\V4\\Errors\352\002\"Google::Ads::GoogleAds::V4::Errors'), + serialized_pb=_b('\nEgoogle/ads/googleads_v4/proto/errors/feed_item_validation_error.proto\x12\x1egoogle.ads.googleads.v4.errors\x1a\x1cgoogle/api/annotations.proto\"\xe7\x19\n\x1b\x46\x65\x65\x64ItemValidationErrorEnum\"\xc7\x19\n\x17\x46\x65\x65\x64ItemValidationError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x14\n\x10STRING_TOO_SHORT\x10\x02\x12\x13\n\x0fSTRING_TOO_LONG\x10\x03\x12\x17\n\x13VALUE_NOT_SPECIFIED\x10\x04\x12(\n$INVALID_DOMESTIC_PHONE_NUMBER_FORMAT\x10\x05\x12\x18\n\x14INVALID_PHONE_NUMBER\x10\x06\x12*\n&PHONE_NUMBER_NOT_SUPPORTED_FOR_COUNTRY\x10\x07\x12#\n\x1fPREMIUM_RATE_NUMBER_NOT_ALLOWED\x10\x08\x12\x1a\n\x16\x44ISALLOWED_NUMBER_TYPE\x10\t\x12\x16\n\x12VALUE_OUT_OF_RANGE\x10\n\x12*\n&CALLTRACKING_NOT_SUPPORTED_FOR_COUNTRY\x10\x0b\x12-\n)CUSTOMER_NOT_WHITELISTED_FOR_CALLTRACKING\x10\x0c\x12\x18\n\x14INVALID_COUNTRY_CODE\x10\r\x12\x12\n\x0eINVALID_APP_ID\x10\x0e\x12!\n\x1dMISSING_ATTRIBUTES_FOR_FIELDS\x10\x0f\x12\x13\n\x0fINVALID_TYPE_ID\x10\x10\x12\x19\n\x15INVALID_EMAIL_ADDRESS\x10\x11\x12\x15\n\x11INVALID_HTTPS_URL\x10\x12\x12\x1c\n\x18MISSING_DELIVERY_ADDRESS\x10\x13\x12\x1d\n\x19START_DATE_AFTER_END_DATE\x10\x14\x12 \n\x1cMISSING_FEED_ITEM_START_TIME\x10\x15\x12\x1e\n\x1aMISSING_FEED_ITEM_END_TIME\x10\x16\x12\x18\n\x14MISSING_FEED_ITEM_ID\x10\x17\x12#\n\x1fVANITY_PHONE_NUMBER_NOT_ALLOWED\x10\x18\x12$\n INVALID_REVIEW_EXTENSION_SNIPPET\x10\x19\x12\x19\n\x15INVALID_NUMBER_FORMAT\x10\x1a\x12\x17\n\x13INVALID_DATE_FORMAT\x10\x1b\x12\x18\n\x14INVALID_PRICE_FORMAT\x10\x1c\x12\x1d\n\x19UNKNOWN_PLACEHOLDER_FIELD\x10\x1d\x12.\n*MISSING_ENHANCED_SITELINK_DESCRIPTION_LINE\x10\x1e\x12&\n\"REVIEW_EXTENSION_SOURCE_INELIGIBLE\x10\x1f\x12\'\n#HYPHENS_IN_REVIEW_EXTENSION_SNIPPET\x10 \x12-\n)DOUBLE_QUOTES_IN_REVIEW_EXTENSION_SNIPPET\x10!\x12&\n\"QUOTES_IN_REVIEW_EXTENSION_SNIPPET\x10\"\x12\x1f\n\x1bINVALID_FORM_ENCODED_PARAMS\x10#\x12\x1e\n\x1aINVALID_URL_PARAMETER_NAME\x10$\x12\x17\n\x13NO_GEOCODING_RESULT\x10%\x12(\n$SOURCE_NAME_IN_REVIEW_EXTENSION_TEXT\x10&\x12-\n)CARRIER_SPECIFIC_SHORT_NUMBER_NOT_ALLOWED\x10\'\x12 \n\x1cINVALID_PLACEHOLDER_FIELD_ID\x10(\x12\x13\n\x0fINVALID_URL_TAG\x10)\x12\x11\n\rLIST_TOO_LONG\x10*\x12\"\n\x1eINVALID_ATTRIBUTES_COMBINATION\x10+\x12\x14\n\x10\x44UPLICATE_VALUES\x10,\x12%\n!INVALID_CALL_CONVERSION_ACTION_ID\x10-\x12!\n\x1d\x43\x41NNOT_SET_WITHOUT_FINAL_URLS\x10.\x12$\n APP_ID_DOESNT_EXIST_IN_APP_STORE\x10/\x12\x15\n\x11INVALID_FINAL_URL\x10\x30\x12\x18\n\x14INVALID_TRACKING_URL\x10\x31\x12*\n&INVALID_FINAL_URL_FOR_APP_DOWNLOAD_URL\x10\x32\x12\x12\n\x0eLIST_TOO_SHORT\x10\x33\x12\x17\n\x13INVALID_USER_ACTION\x10\x34\x12\x15\n\x11INVALID_TYPE_NAME\x10\x35\x12\x1f\n\x1bINVALID_EVENT_CHANGE_STATUS\x10\x36\x12\x1b\n\x17INVALID_SNIPPETS_HEADER\x10\x37\x12\x1c\n\x18INVALID_ANDROID_APP_LINK\x10\x38\x12;\n7NUMBER_TYPE_WITH_CALLTRACKING_NOT_SUPPORTED_FOR_COUNTRY\x10\x39\x12\x1a\n\x16RESERVED_KEYWORD_OTHER\x10:\x12\x1b\n\x17\x44UPLICATE_OPTION_LABELS\x10;\x12\x1d\n\x19\x44UPLICATE_OPTION_PREFILLS\x10<\x12\x18\n\x14UNEQUAL_LIST_LENGTHS\x10=\x12\x1f\n\x1bINCONSISTENT_CURRENCY_CODES\x10>\x12*\n&PRICE_EXTENSION_HAS_DUPLICATED_HEADERS\x10?\x12.\n*ITEM_HAS_DUPLICATED_HEADER_AND_DESCRIPTION\x10@\x12%\n!PRICE_EXTENSION_HAS_TOO_FEW_ITEMS\x10\x41\x12\x15\n\x11UNSUPPORTED_VALUE\x10\x42\x12\x1c\n\x18INVALID_FINAL_MOBILE_URL\x10\x43\x12%\n!INVALID_KEYWORDLESS_AD_RULE_LABEL\x10\x44\x12\'\n#VALUE_TRACK_PARAMETER_NOT_SUPPORTED\x10\x45\x12*\n&UNSUPPORTED_VALUE_IN_SELECTED_LANGUAGE\x10\x46\x12\x18\n\x14INVALID_IOS_APP_LINK\x10G\x12,\n(MISSING_IOS_APP_LINK_OR_IOS_APP_STORE_ID\x10H\x12\x1a\n\x16PROMOTION_INVALID_TIME\x10I\x12\x39\n5PROMOTION_CANNOT_SET_PERCENT_OFF_AND_MONEY_AMOUNT_OFF\x10J\x12>\n:PROMOTION_CANNOT_SET_PROMOTION_CODE_AND_ORDERS_OVER_AMOUNT\x10K\x12%\n!TOO_MANY_DECIMAL_PLACES_SPECIFIED\x10L\x12\x1e\n\x1a\x41\x44_CUSTOMIZERS_NOT_ALLOWED\x10M\x12\x19\n\x15INVALID_LANGUAGE_CODE\x10N\x12\x18\n\x14UNSUPPORTED_LANGUAGE\x10O\x12\x1b\n\x17IF_FUNCTION_NOT_ALLOWED\x10P\x12\x1c\n\x18INVALID_FINAL_URL_SUFFIX\x10Q\x12#\n\x1fINVALID_TAG_IN_FINAL_URL_SUFFIX\x10R\x12#\n\x1fINVALID_FINAL_URL_SUFFIX_FORMAT\x10S\x12\x30\n,CUSTOMER_CONSENT_FOR_CALL_RECORDING_REQUIRED\x10T\x12\'\n#ONLY_ONE_DELIVERY_OPTION_IS_ALLOWED\x10U\x12\x1d\n\x19NO_DELIVERY_OPTION_IS_SET\x10V\x12&\n\"INVALID_CONVERSION_REPORTING_STATE\x10W\x12\x14\n\x10IMAGE_SIZE_WRONG\x10X\x12+\n\'EMAIL_DELIVERY_NOT_AVAILABLE_IN_COUNTRY\x10Y\x12\'\n#AUTO_REPLY_NOT_AVAILABLE_IN_COUNTRY\x10Z\x12\x1a\n\x16INVALID_LATITUDE_VALUE\x10[\x12\x1b\n\x17INVALID_LONGITUDE_VALUE\x10\\\x12\x13\n\x0fTOO_MANY_LABELS\x10]\x12\x15\n\x11INVALID_IMAGE_URL\x10^\x12\x1a\n\x16MISSING_LATITUDE_VALUE\x10_\x12\x1b\n\x17MISSING_LONGITUDE_VALUE\x10`\x12\x15\n\x11\x41\x44\x44RESS_NOT_FOUND\x10\x61\x12\x1a\n\x16\x41\x44\x44RESS_NOT_TARGETABLE\x10\x62\x42\xf7\x01\n\"com.google.ads.googleads.v4.errorsB\x1c\x46\x65\x65\x64ItemValidationErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V4.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V4\\Errors\xea\x02\"Google::Ads::GoogleAds::V4::Errorsb\x06proto3') , dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) @@ -29,7 +29,7 @@ _FEEDITEMVALIDATIONERRORENUM_FEEDITEMVALIDATIONERROR = _descriptor.EnumDescriptor( name='FeedItemValidationError', - full_name='google.ads.googleads.v1.errors.FeedItemValidationErrorEnum.FeedItemValidationError', + full_name='google.ads.googleads.v4.errors.FeedItemValidationErrorEnum.FeedItemValidationError', filename=None, file=DESCRIPTOR, values=[ @@ -421,18 +421,26 @@ name='MISSING_LONGITUDE_VALUE', index=96, number=96, serialized_options=None, type=None), + _descriptor.EnumValueDescriptor( + name='ADDRESS_NOT_FOUND', index=97, number=97, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='ADDRESS_NOT_TARGETABLE', index=98, number=98, + serialized_options=None, + type=None), ], containing_type=None, serialized_options=None, serialized_start=168, - serialized_end=3388, + serialized_end=3439, ) _sym_db.RegisterEnumDescriptor(_FEEDITEMVALIDATIONERRORENUM_FEEDITEMVALIDATIONERROR) _FEEDITEMVALIDATIONERRORENUM = _descriptor.Descriptor( name='FeedItemValidationErrorEnum', - full_name='google.ads.googleads.v1.errors.FeedItemValidationErrorEnum', + full_name='google.ads.googleads.v4.errors.FeedItemValidationErrorEnum', filename=None, file=DESCRIPTOR, containing_type=None, @@ -451,7 +459,7 @@ oneofs=[ ], serialized_start=136, - serialized_end=3388, + serialized_end=3439, ) _FEEDITEMVALIDATIONERRORENUM_FEEDITEMVALIDATIONERROR.containing_type = _FEEDITEMVALIDATIONERRORENUM @@ -460,11 +468,11 @@ FeedItemValidationErrorEnum = _reflection.GeneratedProtocolMessageType('FeedItemValidationErrorEnum', (_message.Message,), dict( DESCRIPTOR = _FEEDITEMVALIDATIONERRORENUM, - __module__ = 'google.ads.googleads_v1.proto.errors.feed_item_validation_error_pb2' + __module__ = 'google.ads.googleads_v4.proto.errors.feed_item_validation_error_pb2' , __doc__ = """Container for enum describing possible validation errors of a feed item. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.errors.FeedItemValidationErrorEnum) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.errors.FeedItemValidationErrorEnum) )) _sym_db.RegisterMessage(FeedItemValidationErrorEnum) diff --git a/google/ads/google_ads/v1/proto/errors/mutate_job_error_pb2_grpc.py b/google/ads/google_ads/v4/proto/errors/feed_item_validation_error_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/errors/mutate_job_error_pb2_grpc.py rename to google/ads/google_ads/v4/proto/errors/feed_item_validation_error_pb2_grpc.py diff --git a/google/ads/google_ads/v1/proto/errors/feed_mapping_error_pb2.py b/google/ads/google_ads/v4/proto/errors/feed_mapping_error_pb2.py similarity index 78% rename from google/ads/google_ads/v1/proto/errors/feed_mapping_error_pb2.py rename to google/ads/google_ads/v4/proto/errors/feed_mapping_error_pb2.py index 295cdf10c..03801ef55 100644 --- a/google/ads/google_ads/v1/proto/errors/feed_mapping_error_pb2.py +++ b/google/ads/google_ads/v4/proto/errors/feed_mapping_error_pb2.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/errors/feed_mapping_error.proto +# source: google/ads/googleads_v4/proto/errors/feed_mapping_error.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) @@ -17,11 +17,11 @@ DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/errors/feed_mapping_error.proto', - package='google.ads.googleads.v1.errors', + name='google/ads/googleads_v4/proto/errors/feed_mapping_error.proto', + package='google.ads.googleads.v4.errors', syntax='proto3', - serialized_options=_b('\n\"com.google.ads.googleads.v1.errorsB\025FeedMappingErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V1.Errors\312\002\036Google\\Ads\\GoogleAds\\V1\\Errors\352\002\"Google::Ads::GoogleAds::V1::Errors'), - serialized_pb=_b('\n=google/ads/googleads_v1/proto/errors/feed_mapping_error.proto\x12\x1egoogle.ads.googleads.v1.errors\x1a\x1cgoogle/api/annotations.proto\"\xe7\x05\n\x14\x46\x65\x65\x64MappingErrorEnum\"\xce\x05\n\x10\x46\x65\x65\x64MappingError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x1d\n\x19INVALID_PLACEHOLDER_FIELD\x10\x02\x12\x1b\n\x17INVALID_CRITERION_FIELD\x10\x03\x12\x1c\n\x18INVALID_PLACEHOLDER_TYPE\x10\x04\x12\x1a\n\x16INVALID_CRITERION_TYPE\x10\x05\x12\x1f\n\x1bNO_ATTRIBUTE_FIELD_MAPPINGS\x10\x07\x12 \n\x1c\x46\x45\x45\x44_ATTRIBUTE_TYPE_MISMATCH\x10\x08\x12\x38\n4CANNOT_OPERATE_ON_MAPPINGS_FOR_SYSTEM_GENERATED_FEED\x10\t\x12*\n&MULTIPLE_MAPPINGS_FOR_PLACEHOLDER_TYPE\x10\n\x12(\n$MULTIPLE_MAPPINGS_FOR_CRITERION_TYPE\x10\x0b\x12+\n\'MULTIPLE_MAPPINGS_FOR_PLACEHOLDER_FIELD\x10\x0c\x12)\n%MULTIPLE_MAPPINGS_FOR_CRITERION_FIELD\x10\r\x12\'\n#UNEXPECTED_ATTRIBUTE_FIELD_MAPPINGS\x10\x0e\x12.\n*LOCATION_PLACEHOLDER_ONLY_FOR_PLACES_FEEDS\x10\x0f\x12)\n%CANNOT_MODIFY_MAPPINGS_FOR_TYPED_FEED\x10\x10\x12:\n6INVALID_PLACEHOLDER_TYPE_FOR_NON_SYSTEM_GENERATED_FEED\x10\x11\x12;\n7INVALID_PLACEHOLDER_TYPE_FOR_SYSTEM_GENERATED_FEED_TYPE\x10\x12\x42\xf0\x01\n\"com.google.ads.googleads.v1.errorsB\x15\x46\x65\x65\x64MappingErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V1.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V1\\Errors\xea\x02\"Google::Ads::GoogleAds::V1::Errorsb\x06proto3') + serialized_options=_b('\n\"com.google.ads.googleads.v4.errorsB\025FeedMappingErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V4.Errors\312\002\036Google\\Ads\\GoogleAds\\V4\\Errors\352\002\"Google::Ads::GoogleAds::V4::Errors'), + serialized_pb=_b('\n=google/ads/googleads_v4/proto/errors/feed_mapping_error.proto\x12\x1egoogle.ads.googleads.v4.errors\x1a\x1cgoogle/api/annotations.proto\"\x92\x06\n\x14\x46\x65\x65\x64MappingErrorEnum\"\xf9\x05\n\x10\x46\x65\x65\x64MappingError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x1d\n\x19INVALID_PLACEHOLDER_FIELD\x10\x02\x12\x1b\n\x17INVALID_CRITERION_FIELD\x10\x03\x12\x1c\n\x18INVALID_PLACEHOLDER_TYPE\x10\x04\x12\x1a\n\x16INVALID_CRITERION_TYPE\x10\x05\x12\x1f\n\x1bNO_ATTRIBUTE_FIELD_MAPPINGS\x10\x07\x12 \n\x1c\x46\x45\x45\x44_ATTRIBUTE_TYPE_MISMATCH\x10\x08\x12\x38\n4CANNOT_OPERATE_ON_MAPPINGS_FOR_SYSTEM_GENERATED_FEED\x10\t\x12*\n&MULTIPLE_MAPPINGS_FOR_PLACEHOLDER_TYPE\x10\n\x12(\n$MULTIPLE_MAPPINGS_FOR_CRITERION_TYPE\x10\x0b\x12+\n\'MULTIPLE_MAPPINGS_FOR_PLACEHOLDER_FIELD\x10\x0c\x12)\n%MULTIPLE_MAPPINGS_FOR_CRITERION_FIELD\x10\r\x12\'\n#UNEXPECTED_ATTRIBUTE_FIELD_MAPPINGS\x10\x0e\x12.\n*LOCATION_PLACEHOLDER_ONLY_FOR_PLACES_FEEDS\x10\x0f\x12)\n%CANNOT_MODIFY_MAPPINGS_FOR_TYPED_FEED\x10\x10\x12:\n6INVALID_PLACEHOLDER_TYPE_FOR_NON_SYSTEM_GENERATED_FEED\x10\x11\x12;\n7INVALID_PLACEHOLDER_TYPE_FOR_SYSTEM_GENERATED_FEED_TYPE\x10\x12\x12)\n%ATTRIBUTE_FIELD_MAPPING_MISSING_FIELD\x10\x13\x42\xf0\x01\n\"com.google.ads.googleads.v4.errorsB\x15\x46\x65\x65\x64MappingErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V4.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V4\\Errors\xea\x02\"Google::Ads::GoogleAds::V4::Errorsb\x06proto3') , dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) @@ -29,7 +29,7 @@ _FEEDMAPPINGERRORENUM_FEEDMAPPINGERROR = _descriptor.EnumDescriptor( name='FeedMappingError', - full_name='google.ads.googleads.v1.errors.FeedMappingErrorEnum.FeedMappingError', + full_name='google.ads.googleads.v4.errors.FeedMappingErrorEnum.FeedMappingError', filename=None, file=DESCRIPTOR, values=[ @@ -105,18 +105,22 @@ name='INVALID_PLACEHOLDER_TYPE_FOR_SYSTEM_GENERATED_FEED_TYPE', index=17, number=18, serialized_options=None, type=None), + _descriptor.EnumValueDescriptor( + name='ATTRIBUTE_FIELD_MAPPING_MISSING_FIELD', index=18, number=19, + serialized_options=None, + type=None), ], containing_type=None, serialized_options=None, serialized_start=153, - serialized_end=871, + serialized_end=914, ) _sym_db.RegisterEnumDescriptor(_FEEDMAPPINGERRORENUM_FEEDMAPPINGERROR) _FEEDMAPPINGERRORENUM = _descriptor.Descriptor( name='FeedMappingErrorEnum', - full_name='google.ads.googleads.v1.errors.FeedMappingErrorEnum', + full_name='google.ads.googleads.v4.errors.FeedMappingErrorEnum', filename=None, file=DESCRIPTOR, containing_type=None, @@ -135,7 +139,7 @@ oneofs=[ ], serialized_start=128, - serialized_end=871, + serialized_end=914, ) _FEEDMAPPINGERRORENUM_FEEDMAPPINGERROR.containing_type = _FEEDMAPPINGERRORENUM @@ -144,11 +148,11 @@ FeedMappingErrorEnum = _reflection.GeneratedProtocolMessageType('FeedMappingErrorEnum', (_message.Message,), dict( DESCRIPTOR = _FEEDMAPPINGERRORENUM, - __module__ = 'google.ads.googleads_v1.proto.errors.feed_mapping_error_pb2' + __module__ = 'google.ads.googleads_v4.proto.errors.feed_mapping_error_pb2' , __doc__ = """Container for enum describing possible feed item errors. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.errors.FeedMappingErrorEnum) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.errors.FeedMappingErrorEnum) )) _sym_db.RegisterMessage(FeedMappingErrorEnum) diff --git a/google/ads/google_ads/v1/proto/errors/new_resource_creation_error_pb2_grpc.py b/google/ads/google_ads/v4/proto/errors/feed_mapping_error_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/errors/new_resource_creation_error_pb2_grpc.py rename to google/ads/google_ads/v4/proto/errors/feed_mapping_error_pb2_grpc.py diff --git a/google/ads/google_ads/v1/proto/errors/field_error_pb2.py b/google/ads/google_ads/v4/proto/errors/field_error_pb2.py similarity index 77% rename from google/ads/google_ads/v1/proto/errors/field_error_pb2.py rename to google/ads/google_ads/v4/proto/errors/field_error_pb2.py index cd78f187b..ed4e95ade 100644 --- a/google/ads/google_ads/v1/proto/errors/field_error_pb2.py +++ b/google/ads/google_ads/v4/proto/errors/field_error_pb2.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/errors/field_error.proto +# source: google/ads/googleads_v4/proto/errors/field_error.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) @@ -17,11 +17,11 @@ DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/errors/field_error.proto', - package='google.ads.googleads.v1.errors', + name='google/ads/googleads_v4/proto/errors/field_error.proto', + package='google.ads.googleads.v4.errors', syntax='proto3', - serialized_options=_b('\n\"com.google.ads.googleads.v1.errorsB\017FieldErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V1.Errors\312\002\036Google\\Ads\\GoogleAds\\V1\\Errors\352\002\"Google::Ads::GoogleAds::V1::Errors'), - serialized_pb=_b('\n6google/ads/googleads_v1/proto/errors/field_error.proto\x12\x1egoogle.ads.googleads.v1.errors\x1a\x1cgoogle/api/annotations.proto\"\xdc\x01\n\x0e\x46ieldErrorEnum\"\xc9\x01\n\nFieldError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0c\n\x08REQUIRED\x10\x02\x12\x13\n\x0fIMMUTABLE_FIELD\x10\x03\x12\x11\n\rINVALID_VALUE\x10\x04\x12\x17\n\x13VALUE_MUST_BE_UNSET\x10\x05\x12\x1a\n\x16REQUIRED_NONEMPTY_LIST\x10\x06\x12\x1b\n\x17\x46IELD_CANNOT_BE_CLEARED\x10\x07\x12\x15\n\x11\x42LACKLISTED_VALUE\x10\x08\x42\xea\x01\n\"com.google.ads.googleads.v1.errorsB\x0f\x46ieldErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V1.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V1\\Errors\xea\x02\"Google::Ads::GoogleAds::V1::Errorsb\x06proto3') + serialized_options=_b('\n\"com.google.ads.googleads.v4.errorsB\017FieldErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V4.Errors\312\002\036Google\\Ads\\GoogleAds\\V4\\Errors\352\002\"Google::Ads::GoogleAds::V4::Errors'), + serialized_pb=_b('\n6google/ads/googleads_v4/proto/errors/field_error.proto\x12\x1egoogle.ads.googleads.v4.errors\x1a\x1cgoogle/api/annotations.proto\"\xdc\x01\n\x0e\x46ieldErrorEnum\"\xc9\x01\n\nFieldError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0c\n\x08REQUIRED\x10\x02\x12\x13\n\x0fIMMUTABLE_FIELD\x10\x03\x12\x11\n\rINVALID_VALUE\x10\x04\x12\x17\n\x13VALUE_MUST_BE_UNSET\x10\x05\x12\x1a\n\x16REQUIRED_NONEMPTY_LIST\x10\x06\x12\x1b\n\x17\x46IELD_CANNOT_BE_CLEARED\x10\x07\x12\x15\n\x11\x42LACKLISTED_VALUE\x10\x08\x42\xea\x01\n\"com.google.ads.googleads.v4.errorsB\x0f\x46ieldErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V4.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V4\\Errors\xea\x02\"Google::Ads::GoogleAds::V4::Errorsb\x06proto3') , dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) @@ -29,7 +29,7 @@ _FIELDERRORENUM_FIELDERROR = _descriptor.EnumDescriptor( name='FieldError', - full_name='google.ads.googleads.v1.errors.FieldErrorEnum.FieldError', + full_name='google.ads.googleads.v4.errors.FieldErrorEnum.FieldError', filename=None, file=DESCRIPTOR, values=[ @@ -80,7 +80,7 @@ _FIELDERRORENUM = _descriptor.Descriptor( name='FieldErrorEnum', - full_name='google.ads.googleads.v1.errors.FieldErrorEnum', + full_name='google.ads.googleads.v4.errors.FieldErrorEnum', filename=None, file=DESCRIPTOR, containing_type=None, @@ -108,11 +108,11 @@ FieldErrorEnum = _reflection.GeneratedProtocolMessageType('FieldErrorEnum', (_message.Message,), dict( DESCRIPTOR = _FIELDERRORENUM, - __module__ = 'google.ads.googleads_v1.proto.errors.field_error_pb2' + __module__ = 'google.ads.googleads_v4.proto.errors.field_error_pb2' , __doc__ = """Container for enum describing possible field errors. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.errors.FieldErrorEnum) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.errors.FieldErrorEnum) )) _sym_db.RegisterMessage(FieldErrorEnum) diff --git a/google/ads/google_ads/v1/proto/errors/not_empty_error_pb2_grpc.py b/google/ads/google_ads/v4/proto/errors/field_error_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/errors/not_empty_error_pb2_grpc.py rename to google/ads/google_ads/v4/proto/errors/field_error_pb2_grpc.py diff --git a/google/ads/google_ads/v1/proto/errors/field_mask_error_pb2.py b/google/ads/google_ads/v4/proto/errors/field_mask_error_pb2.py similarity index 75% rename from google/ads/google_ads/v1/proto/errors/field_mask_error_pb2.py rename to google/ads/google_ads/v4/proto/errors/field_mask_error_pb2.py index f9fac8866..1b4e19db0 100644 --- a/google/ads/google_ads/v1/proto/errors/field_mask_error_pb2.py +++ b/google/ads/google_ads/v4/proto/errors/field_mask_error_pb2.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/errors/field_mask_error.proto +# source: google/ads/googleads_v4/proto/errors/field_mask_error.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) @@ -17,11 +17,11 @@ DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/errors/field_mask_error.proto', - package='google.ads.googleads.v1.errors', + name='google/ads/googleads_v4/proto/errors/field_mask_error.proto', + package='google.ads.googleads.v4.errors', syntax='proto3', - serialized_options=_b('\n\"com.google.ads.googleads.v1.errorsB\023FieldMaskErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V1.Errors\312\002\036Google\\Ads\\GoogleAds\\V1\\Errors\352\002\"Google::Ads::GoogleAds::V1::Errors'), - serialized_pb=_b('\n;google/ads/googleads_v1/proto/errors/field_mask_error.proto\x12\x1egoogle.ads.googleads.v1.errors\x1a\x1cgoogle/api/annotations.proto\"\xa7\x01\n\x12\x46ieldMaskErrorEnum\"\x90\x01\n\x0e\x46ieldMaskError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x16\n\x12\x46IELD_MASK_MISSING\x10\x05\x12\x1a\n\x16\x46IELD_MASK_NOT_ALLOWED\x10\x04\x12\x13\n\x0f\x46IELD_NOT_FOUND\x10\x02\x12\x17\n\x13\x46IELD_HAS_SUBFIELDS\x10\x03\x42\xee\x01\n\"com.google.ads.googleads.v1.errorsB\x13\x46ieldMaskErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V1.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V1\\Errors\xea\x02\"Google::Ads::GoogleAds::V1::Errorsb\x06proto3') + serialized_options=_b('\n\"com.google.ads.googleads.v4.errorsB\023FieldMaskErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V4.Errors\312\002\036Google\\Ads\\GoogleAds\\V4\\Errors\352\002\"Google::Ads::GoogleAds::V4::Errors'), + serialized_pb=_b('\n;google/ads/googleads_v4/proto/errors/field_mask_error.proto\x12\x1egoogle.ads.googleads.v4.errors\x1a\x1cgoogle/api/annotations.proto\"\xa7\x01\n\x12\x46ieldMaskErrorEnum\"\x90\x01\n\x0e\x46ieldMaskError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x16\n\x12\x46IELD_MASK_MISSING\x10\x05\x12\x1a\n\x16\x46IELD_MASK_NOT_ALLOWED\x10\x04\x12\x13\n\x0f\x46IELD_NOT_FOUND\x10\x02\x12\x17\n\x13\x46IELD_HAS_SUBFIELDS\x10\x03\x42\xee\x01\n\"com.google.ads.googleads.v4.errorsB\x13\x46ieldMaskErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V4.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V4\\Errors\xea\x02\"Google::Ads::GoogleAds::V4::Errorsb\x06proto3') , dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) @@ -29,7 +29,7 @@ _FIELDMASKERRORENUM_FIELDMASKERROR = _descriptor.EnumDescriptor( name='FieldMaskError', - full_name='google.ads.googleads.v1.errors.FieldMaskErrorEnum.FieldMaskError', + full_name='google.ads.googleads.v4.errors.FieldMaskErrorEnum.FieldMaskError', filename=None, file=DESCRIPTOR, values=[ @@ -68,7 +68,7 @@ _FIELDMASKERRORENUM = _descriptor.Descriptor( name='FieldMaskErrorEnum', - full_name='google.ads.googleads.v1.errors.FieldMaskErrorEnum', + full_name='google.ads.googleads.v4.errors.FieldMaskErrorEnum', filename=None, file=DESCRIPTOR, containing_type=None, @@ -96,11 +96,11 @@ FieldMaskErrorEnum = _reflection.GeneratedProtocolMessageType('FieldMaskErrorEnum', (_message.Message,), dict( DESCRIPTOR = _FIELDMASKERRORENUM, - __module__ = 'google.ads.googleads_v1.proto.errors.field_mask_error_pb2' + __module__ = 'google.ads.googleads_v4.proto.errors.field_mask_error_pb2' , __doc__ = """Container for enum describing possible field mask errors. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.errors.FieldMaskErrorEnum) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.errors.FieldMaskErrorEnum) )) _sym_db.RegisterMessage(FieldMaskErrorEnum) diff --git a/google/ads/google_ads/v1/proto/errors/not_whitelisted_error_pb2_grpc.py b/google/ads/google_ads/v4/proto/errors/field_mask_error_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/errors/not_whitelisted_error_pb2_grpc.py rename to google/ads/google_ads/v4/proto/errors/field_mask_error_pb2_grpc.py diff --git a/google/ads/google_ads/v1/proto/errors/function_error_pb2.py b/google/ads/google_ads/v4/proto/errors/function_error_pb2.py similarity index 83% rename from google/ads/google_ads/v1/proto/errors/function_error_pb2.py rename to google/ads/google_ads/v4/proto/errors/function_error_pb2.py index 465048da6..f34cf6347 100644 --- a/google/ads/google_ads/v1/proto/errors/function_error_pb2.py +++ b/google/ads/google_ads/v4/proto/errors/function_error_pb2.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/errors/function_error.proto +# source: google/ads/googleads_v4/proto/errors/function_error.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) @@ -17,11 +17,11 @@ DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/errors/function_error.proto', - package='google.ads.googleads.v1.errors', + name='google/ads/googleads_v4/proto/errors/function_error.proto', + package='google.ads.googleads.v4.errors', syntax='proto3', - serialized_options=_b('\n\"com.google.ads.googleads.v1.errorsB\022FunctionErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V1.Errors\312\002\036Google\\Ads\\GoogleAds\\V1\\Errors\352\002\"Google::Ads::GoogleAds::V1::Errors'), - serialized_pb=_b('\n9google/ads/googleads_v1/proto/errors/function_error.proto\x12\x1egoogle.ads.googleads.v1.errors\x1a\x1cgoogle/api/annotations.proto\"\xc1\x04\n\x11\x46unctionErrorEnum\"\xab\x04\n\rFunctionError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x1b\n\x17INVALID_FUNCTION_FORMAT\x10\x02\x12\x16\n\x12\x44\x41TA_TYPE_MISMATCH\x10\x03\x12 \n\x1cINVALID_CONJUNCTION_OPERANDS\x10\x04\x12\x1e\n\x1aINVALID_NUMBER_OF_OPERANDS\x10\x05\x12\x18\n\x14INVALID_OPERAND_TYPE\x10\x06\x12\x14\n\x10INVALID_OPERATOR\x10\x07\x12 \n\x1cINVALID_REQUEST_CONTEXT_TYPE\x10\x08\x12)\n%INVALID_FUNCTION_FOR_CALL_PLACEHOLDER\x10\t\x12$\n INVALID_FUNCTION_FOR_PLACEHOLDER\x10\n\x12\x13\n\x0fINVALID_OPERAND\x10\x0b\x12\"\n\x1eMISSING_CONSTANT_OPERAND_VALUE\x10\x0c\x12\"\n\x1eINVALID_CONSTANT_OPERAND_VALUE\x10\r\x12\x13\n\x0fINVALID_NESTING\x10\x0e\x12#\n\x1fMULTIPLE_FEED_IDS_NOT_SUPPORTED\x10\x0f\x12/\n+INVALID_FUNCTION_FOR_FEED_WITH_FIXED_SCHEMA\x10\x10\x12\x1a\n\x16INVALID_ATTRIBUTE_NAME\x10\x11\x42\xed\x01\n\"com.google.ads.googleads.v1.errorsB\x12\x46unctionErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V1.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V1\\Errors\xea\x02\"Google::Ads::GoogleAds::V1::Errorsb\x06proto3') + serialized_options=_b('\n\"com.google.ads.googleads.v4.errorsB\022FunctionErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V4.Errors\312\002\036Google\\Ads\\GoogleAds\\V4\\Errors\352\002\"Google::Ads::GoogleAds::V4::Errors'), + serialized_pb=_b('\n9google/ads/googleads_v4/proto/errors/function_error.proto\x12\x1egoogle.ads.googleads.v4.errors\x1a\x1cgoogle/api/annotations.proto\"\xc1\x04\n\x11\x46unctionErrorEnum\"\xab\x04\n\rFunctionError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x1b\n\x17INVALID_FUNCTION_FORMAT\x10\x02\x12\x16\n\x12\x44\x41TA_TYPE_MISMATCH\x10\x03\x12 \n\x1cINVALID_CONJUNCTION_OPERANDS\x10\x04\x12\x1e\n\x1aINVALID_NUMBER_OF_OPERANDS\x10\x05\x12\x18\n\x14INVALID_OPERAND_TYPE\x10\x06\x12\x14\n\x10INVALID_OPERATOR\x10\x07\x12 \n\x1cINVALID_REQUEST_CONTEXT_TYPE\x10\x08\x12)\n%INVALID_FUNCTION_FOR_CALL_PLACEHOLDER\x10\t\x12$\n INVALID_FUNCTION_FOR_PLACEHOLDER\x10\n\x12\x13\n\x0fINVALID_OPERAND\x10\x0b\x12\"\n\x1eMISSING_CONSTANT_OPERAND_VALUE\x10\x0c\x12\"\n\x1eINVALID_CONSTANT_OPERAND_VALUE\x10\r\x12\x13\n\x0fINVALID_NESTING\x10\x0e\x12#\n\x1fMULTIPLE_FEED_IDS_NOT_SUPPORTED\x10\x0f\x12/\n+INVALID_FUNCTION_FOR_FEED_WITH_FIXED_SCHEMA\x10\x10\x12\x1a\n\x16INVALID_ATTRIBUTE_NAME\x10\x11\x42\xed\x01\n\"com.google.ads.googleads.v4.errorsB\x12\x46unctionErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V4.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V4\\Errors\xea\x02\"Google::Ads::GoogleAds::V4::Errorsb\x06proto3') , dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) @@ -29,7 +29,7 @@ _FUNCTIONERRORENUM_FUNCTIONERROR = _descriptor.EnumDescriptor( name='FunctionError', - full_name='google.ads.googleads.v1.errors.FunctionErrorEnum.FunctionError', + full_name='google.ads.googleads.v4.errors.FunctionErrorEnum.FunctionError', filename=None, file=DESCRIPTOR, values=[ @@ -116,7 +116,7 @@ _FUNCTIONERRORENUM = _descriptor.Descriptor( name='FunctionErrorEnum', - full_name='google.ads.googleads.v1.errors.FunctionErrorEnum', + full_name='google.ads.googleads.v4.errors.FunctionErrorEnum', filename=None, file=DESCRIPTOR, containing_type=None, @@ -144,11 +144,11 @@ FunctionErrorEnum = _reflection.GeneratedProtocolMessageType('FunctionErrorEnum', (_message.Message,), dict( DESCRIPTOR = _FUNCTIONERRORENUM, - __module__ = 'google.ads.googleads_v1.proto.errors.function_error_pb2' + __module__ = 'google.ads.googleads_v4.proto.errors.function_error_pb2' , __doc__ = """Container for enum describing possible function errors. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.errors.FunctionErrorEnum) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.errors.FunctionErrorEnum) )) _sym_db.RegisterMessage(FunctionErrorEnum) diff --git a/google/ads/google_ads/v1/proto/errors/null_error_pb2_grpc.py b/google/ads/google_ads/v4/proto/errors/function_error_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/errors/null_error_pb2_grpc.py rename to google/ads/google_ads/v4/proto/errors/function_error_pb2_grpc.py diff --git a/google/ads/google_ads/v1/proto/errors/function_parsing_error_pb2.py b/google/ads/google_ads/v4/proto/errors/function_parsing_error_pb2.py similarity index 81% rename from google/ads/google_ads/v1/proto/errors/function_parsing_error_pb2.py rename to google/ads/google_ads/v4/proto/errors/function_parsing_error_pb2.py index 5abbb1eb8..0aaa2a262 100644 --- a/google/ads/google_ads/v1/proto/errors/function_parsing_error_pb2.py +++ b/google/ads/google_ads/v4/proto/errors/function_parsing_error_pb2.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/errors/function_parsing_error.proto +# source: google/ads/googleads_v4/proto/errors/function_parsing_error.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) @@ -17,11 +17,11 @@ DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/errors/function_parsing_error.proto', - package='google.ads.googleads.v1.errors', + name='google/ads/googleads_v4/proto/errors/function_parsing_error.proto', + package='google.ads.googleads.v4.errors', syntax='proto3', - serialized_options=_b('\n\"com.google.ads.googleads.v1.errorsB\031FunctionParsingErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V1.Errors\312\002\036Google\\Ads\\GoogleAds\\V1\\Errors\352\002\"Google::Ads::GoogleAds::V1::Errors'), - serialized_pb=_b('\nAgoogle/ads/googleads_v1/proto/errors/function_parsing_error.proto\x12\x1egoogle.ads.googleads.v1.errors\x1a\x1cgoogle/api/annotations.proto\"\x82\x03\n\x18\x46unctionParsingErrorEnum\"\xe5\x02\n\x14\x46unctionParsingError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x11\n\rNO_MORE_INPUT\x10\x02\x12\x16\n\x12\x45XPECTED_CHARACTER\x10\x03\x12\x18\n\x14UNEXPECTED_SEPARATOR\x10\x04\x12\x1a\n\x16UNMATCHED_LEFT_BRACKET\x10\x05\x12\x1b\n\x17UNMATCHED_RIGHT_BRACKET\x10\x06\x12\x1d\n\x19TOO_MANY_NESTED_FUNCTIONS\x10\x07\x12\x1e\n\x1aMISSING_RIGHT_HAND_OPERAND\x10\x08\x12\x19\n\x15INVALID_OPERATOR_NAME\x10\t\x12/\n+FEED_ATTRIBUTE_OPERAND_ARGUMENT_NOT_INTEGER\x10\n\x12\x0f\n\x0bNO_OPERANDS\x10\x0b\x12\x15\n\x11TOO_MANY_OPERANDS\x10\x0c\x42\xf4\x01\n\"com.google.ads.googleads.v1.errorsB\x19\x46unctionParsingErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V1.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V1\\Errors\xea\x02\"Google::Ads::GoogleAds::V1::Errorsb\x06proto3') + serialized_options=_b('\n\"com.google.ads.googleads.v4.errorsB\031FunctionParsingErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V4.Errors\312\002\036Google\\Ads\\GoogleAds\\V4\\Errors\352\002\"Google::Ads::GoogleAds::V4::Errors'), + serialized_pb=_b('\nAgoogle/ads/googleads_v4/proto/errors/function_parsing_error.proto\x12\x1egoogle.ads.googleads.v4.errors\x1a\x1cgoogle/api/annotations.proto\"\x82\x03\n\x18\x46unctionParsingErrorEnum\"\xe5\x02\n\x14\x46unctionParsingError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x11\n\rNO_MORE_INPUT\x10\x02\x12\x16\n\x12\x45XPECTED_CHARACTER\x10\x03\x12\x18\n\x14UNEXPECTED_SEPARATOR\x10\x04\x12\x1a\n\x16UNMATCHED_LEFT_BRACKET\x10\x05\x12\x1b\n\x17UNMATCHED_RIGHT_BRACKET\x10\x06\x12\x1d\n\x19TOO_MANY_NESTED_FUNCTIONS\x10\x07\x12\x1e\n\x1aMISSING_RIGHT_HAND_OPERAND\x10\x08\x12\x19\n\x15INVALID_OPERATOR_NAME\x10\t\x12/\n+FEED_ATTRIBUTE_OPERAND_ARGUMENT_NOT_INTEGER\x10\n\x12\x0f\n\x0bNO_OPERANDS\x10\x0b\x12\x15\n\x11TOO_MANY_OPERANDS\x10\x0c\x42\xf4\x01\n\"com.google.ads.googleads.v4.errorsB\x19\x46unctionParsingErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V4.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V4\\Errors\xea\x02\"Google::Ads::GoogleAds::V4::Errorsb\x06proto3') , dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) @@ -29,7 +29,7 @@ _FUNCTIONPARSINGERRORENUM_FUNCTIONPARSINGERROR = _descriptor.EnumDescriptor( name='FunctionParsingError', - full_name='google.ads.googleads.v1.errors.FunctionParsingErrorEnum.FunctionParsingError', + full_name='google.ads.googleads.v4.errors.FunctionParsingErrorEnum.FunctionParsingError', filename=None, file=DESCRIPTOR, values=[ @@ -96,7 +96,7 @@ _FUNCTIONPARSINGERRORENUM = _descriptor.Descriptor( name='FunctionParsingErrorEnum', - full_name='google.ads.googleads.v1.errors.FunctionParsingErrorEnum', + full_name='google.ads.googleads.v4.errors.FunctionParsingErrorEnum', filename=None, file=DESCRIPTOR, containing_type=None, @@ -124,11 +124,11 @@ FunctionParsingErrorEnum = _reflection.GeneratedProtocolMessageType('FunctionParsingErrorEnum', (_message.Message,), dict( DESCRIPTOR = _FUNCTIONPARSINGERRORENUM, - __module__ = 'google.ads.googleads_v1.proto.errors.function_parsing_error_pb2' + __module__ = 'google.ads.googleads_v4.proto.errors.function_parsing_error_pb2' , __doc__ = """Container for enum describing possible function parsing errors. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.errors.FunctionParsingErrorEnum) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.errors.FunctionParsingErrorEnum) )) _sym_db.RegisterMessage(FunctionParsingErrorEnum) diff --git a/google/ads/google_ads/v1/proto/errors/operation_access_denied_error_pb2_grpc.py b/google/ads/google_ads/v4/proto/errors/function_parsing_error_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/errors/operation_access_denied_error_pb2_grpc.py rename to google/ads/google_ads/v4/proto/errors/function_parsing_error_pb2_grpc.py diff --git a/google/ads/google_ads/v1/proto/errors/geo_target_constant_suggestion_error_pb2.py b/google/ads/google_ads/v4/proto/errors/geo_target_constant_suggestion_error_pb2.py similarity index 78% rename from google/ads/google_ads/v1/proto/errors/geo_target_constant_suggestion_error_pb2.py rename to google/ads/google_ads/v4/proto/errors/geo_target_constant_suggestion_error_pb2.py index 2dd2ea6d9..03719e413 100644 --- a/google/ads/google_ads/v1/proto/errors/geo_target_constant_suggestion_error_pb2.py +++ b/google/ads/google_ads/v4/proto/errors/geo_target_constant_suggestion_error_pb2.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/errors/geo_target_constant_suggestion_error.proto +# source: google/ads/googleads_v4/proto/errors/geo_target_constant_suggestion_error.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) @@ -17,11 +17,11 @@ DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/errors/geo_target_constant_suggestion_error.proto', - package='google.ads.googleads.v1.errors', + name='google/ads/googleads_v4/proto/errors/geo_target_constant_suggestion_error.proto', + package='google.ads.googleads.v4.errors', syntax='proto3', - serialized_options=_b('\n\"com.google.ads.googleads.v1.errorsB%GeoTargetConstantSuggestionErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V1.Errors\312\002\036Google\\Ads\\GoogleAds\\V1\\Errors\352\002\"Google::Ads::GoogleAds::V1::Errors'), - serialized_pb=_b('\nOgoogle/ads/googleads_v1/proto/errors/geo_target_constant_suggestion_error.proto\x12\x1egoogle.ads.googleads.v1.errors\x1a\x1cgoogle/api/annotations.proto\"\xd8\x01\n$GeoTargetConstantSuggestionErrorEnum\"\xaf\x01\n GeoTargetConstantSuggestionError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x1c\n\x18LOCATION_NAME_SIZE_LIMIT\x10\x02\x12\x17\n\x13LOCATION_NAME_LIMIT\x10\x03\x12\x18\n\x14INVALID_COUNTRY_CODE\x10\x04\x12\x1c\n\x18REQUEST_PARAMETERS_UNSET\x10\x05\x42\x80\x02\n\"com.google.ads.googleads.v1.errorsB%GeoTargetConstantSuggestionErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V1.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V1\\Errors\xea\x02\"Google::Ads::GoogleAds::V1::Errorsb\x06proto3') + serialized_options=_b('\n\"com.google.ads.googleads.v4.errorsB%GeoTargetConstantSuggestionErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V4.Errors\312\002\036Google\\Ads\\GoogleAds\\V4\\Errors\352\002\"Google::Ads::GoogleAds::V4::Errors'), + serialized_pb=_b('\nOgoogle/ads/googleads_v4/proto/errors/geo_target_constant_suggestion_error.proto\x12\x1egoogle.ads.googleads.v4.errors\x1a\x1cgoogle/api/annotations.proto\"\xd8\x01\n$GeoTargetConstantSuggestionErrorEnum\"\xaf\x01\n GeoTargetConstantSuggestionError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x1c\n\x18LOCATION_NAME_SIZE_LIMIT\x10\x02\x12\x17\n\x13LOCATION_NAME_LIMIT\x10\x03\x12\x18\n\x14INVALID_COUNTRY_CODE\x10\x04\x12\x1c\n\x18REQUEST_PARAMETERS_UNSET\x10\x05\x42\x80\x02\n\"com.google.ads.googleads.v4.errorsB%GeoTargetConstantSuggestionErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V4.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V4\\Errors\xea\x02\"Google::Ads::GoogleAds::V4::Errorsb\x06proto3') , dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) @@ -29,7 +29,7 @@ _GEOTARGETCONSTANTSUGGESTIONERRORENUM_GEOTARGETCONSTANTSUGGESTIONERROR = _descriptor.EnumDescriptor( name='GeoTargetConstantSuggestionError', - full_name='google.ads.googleads.v1.errors.GeoTargetConstantSuggestionErrorEnum.GeoTargetConstantSuggestionError', + full_name='google.ads.googleads.v4.errors.GeoTargetConstantSuggestionErrorEnum.GeoTargetConstantSuggestionError', filename=None, file=DESCRIPTOR, values=[ @@ -68,7 +68,7 @@ _GEOTARGETCONSTANTSUGGESTIONERRORENUM = _descriptor.Descriptor( name='GeoTargetConstantSuggestionErrorEnum', - full_name='google.ads.googleads.v1.errors.GeoTargetConstantSuggestionErrorEnum', + full_name='google.ads.googleads.v4.errors.GeoTargetConstantSuggestionErrorEnum', filename=None, file=DESCRIPTOR, containing_type=None, @@ -96,12 +96,12 @@ GeoTargetConstantSuggestionErrorEnum = _reflection.GeneratedProtocolMessageType('GeoTargetConstantSuggestionErrorEnum', (_message.Message,), dict( DESCRIPTOR = _GEOTARGETCONSTANTSUGGESTIONERRORENUM, - __module__ = 'google.ads.googleads_v1.proto.errors.geo_target_constant_suggestion_error_pb2' + __module__ = 'google.ads.googleads_v4.proto.errors.geo_target_constant_suggestion_error_pb2' , __doc__ = """Container for enum describing possible geo target constant suggestion errors. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.errors.GeoTargetConstantSuggestionErrorEnum) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.errors.GeoTargetConstantSuggestionErrorEnum) )) _sym_db.RegisterMessage(GeoTargetConstantSuggestionErrorEnum) diff --git a/google/ads/google_ads/v1/proto/errors/operator_error_pb2_grpc.py b/google/ads/google_ads/v4/proto/errors/geo_target_constant_suggestion_error_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/errors/operator_error_pb2_grpc.py rename to google/ads/google_ads/v4/proto/errors/geo_target_constant_suggestion_error_pb2_grpc.py diff --git a/google/ads/google_ads/v4/proto/errors/header_error_pb2.py b/google/ads/google_ads/v4/proto/errors/header_error_pb2.py new file mode 100644 index 000000000..591386bef --- /dev/null +++ b/google/ads/google_ads/v4/proto/errors/header_error_pb2.py @@ -0,0 +1,101 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/errors/header_error.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/errors/header_error.proto', + package='google.ads.googleads.v4.errors', + syntax='proto3', + serialized_options=_b('\n\"com.google.ads.googleads.v4.errorsB\020HeaderErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V4.Errors\312\002\036Google\\Ads\\GoogleAds\\V4\\Errors\352\002\"Google::Ads::GoogleAds::V4::Errors'), + serialized_pb=_b('\n7google/ads/googleads_v4/proto/errors/header_error.proto\x12\x1egoogle.ads.googleads.v4.errors\x1a\x1cgoogle/api/annotations.proto\"}\n\x0fHeaderErrorEnum\"j\n\x0bHeaderError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x1d\n\x19INVALID_LOGIN_CUSTOMER_ID\x10\x03\x12\x1e\n\x1aINVALID_LINKED_CUSTOMER_ID\x10\x07\x42\xeb\x01\n\"com.google.ads.googleads.v4.errorsB\x10HeaderErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V4.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V4\\Errors\xea\x02\"Google::Ads::GoogleAds::V4::Errorsb\x06proto3') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_HEADERERRORENUM_HEADERERROR = _descriptor.EnumDescriptor( + name='HeaderError', + full_name='google.ads.googleads.v4.errors.HeaderErrorEnum.HeaderError', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='UNSPECIFIED', index=0, number=0, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='UNKNOWN', index=1, number=1, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_LOGIN_CUSTOMER_ID', index=2, number=3, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_LINKED_CUSTOMER_ID', index=3, number=7, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=140, + serialized_end=246, +) +_sym_db.RegisterEnumDescriptor(_HEADERERRORENUM_HEADERERROR) + + +_HEADERERRORENUM = _descriptor.Descriptor( + name='HeaderErrorEnum', + full_name='google.ads.googleads.v4.errors.HeaderErrorEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _HEADERERRORENUM_HEADERERROR, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=121, + serialized_end=246, +) + +_HEADERERRORENUM_HEADERERROR.containing_type = _HEADERERRORENUM +DESCRIPTOR.message_types_by_name['HeaderErrorEnum'] = _HEADERERRORENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +HeaderErrorEnum = _reflection.GeneratedProtocolMessageType('HeaderErrorEnum', (_message.Message,), dict( + DESCRIPTOR = _HEADERERRORENUM, + __module__ = 'google.ads.googleads_v4.proto.errors.header_error_pb2' + , + __doc__ = """Container for enum describing possible header errors. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.errors.HeaderErrorEnum) + )) +_sym_db.RegisterMessage(HeaderErrorEnum) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/errors/partial_failure_error_pb2_grpc.py b/google/ads/google_ads/v4/proto/errors/header_error_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/errors/partial_failure_error_pb2_grpc.py rename to google/ads/google_ads/v4/proto/errors/header_error_pb2_grpc.py diff --git a/google/ads/google_ads/v4/proto/errors/id_error_pb2.py b/google/ads/google_ads/v4/proto/errors/id_error_pb2.py new file mode 100644 index 000000000..21769fbb9 --- /dev/null +++ b/google/ads/google_ads/v4/proto/errors/id_error_pb2.py @@ -0,0 +1,97 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/errors/id_error.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/errors/id_error.proto', + package='google.ads.googleads.v4.errors', + syntax='proto3', + serialized_options=_b('\n\"com.google.ads.googleads.v4.errorsB\014IdErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V4.Errors\312\002\036Google\\Ads\\GoogleAds\\V4\\Errors\352\002\"Google::Ads::GoogleAds::V4::Errors'), + serialized_pb=_b('\n3google/ads/googleads_v4/proto/errors/id_error.proto\x12\x1egoogle.ads.googleads.v4.errors\x1a\x1cgoogle/api/annotations.proto\"E\n\x0bIdErrorEnum\"6\n\x07IdError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\r\n\tNOT_FOUND\x10\x02\x42\xe7\x01\n\"com.google.ads.googleads.v4.errorsB\x0cIdErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V4.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V4\\Errors\xea\x02\"Google::Ads::GoogleAds::V4::Errorsb\x06proto3') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_IDERRORENUM_IDERROR = _descriptor.EnumDescriptor( + name='IdError', + full_name='google.ads.googleads.v4.errors.IdErrorEnum.IdError', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='UNSPECIFIED', index=0, number=0, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='UNKNOWN', index=1, number=1, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='NOT_FOUND', index=2, number=2, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=132, + serialized_end=186, +) +_sym_db.RegisterEnumDescriptor(_IDERRORENUM_IDERROR) + + +_IDERRORENUM = _descriptor.Descriptor( + name='IdErrorEnum', + full_name='google.ads.googleads.v4.errors.IdErrorEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _IDERRORENUM_IDERROR, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=117, + serialized_end=186, +) + +_IDERRORENUM_IDERROR.containing_type = _IDERRORENUM +DESCRIPTOR.message_types_by_name['IdErrorEnum'] = _IDERRORENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +IdErrorEnum = _reflection.GeneratedProtocolMessageType('IdErrorEnum', (_message.Message,), dict( + DESCRIPTOR = _IDERRORENUM, + __module__ = 'google.ads.googleads_v4.proto.errors.id_error_pb2' + , + __doc__ = """Container for enum describing possible id errors. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.errors.IdErrorEnum) + )) +_sym_db.RegisterMessage(IdErrorEnum) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/errors/policy_finding_error_pb2_grpc.py b/google/ads/google_ads/v4/proto/errors/id_error_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/errors/policy_finding_error_pb2_grpc.py rename to google/ads/google_ads/v4/proto/errors/id_error_pb2_grpc.py diff --git a/google/ads/google_ads/v1/proto/errors/image_error_pb2.py b/google/ads/google_ads/v4/proto/errors/image_error_pb2.py similarity index 86% rename from google/ads/google_ads/v1/proto/errors/image_error_pb2.py rename to google/ads/google_ads/v4/proto/errors/image_error_pb2.py index 5771ab5d9..7d4ca6306 100644 --- a/google/ads/google_ads/v1/proto/errors/image_error_pb2.py +++ b/google/ads/google_ads/v4/proto/errors/image_error_pb2.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/errors/image_error.proto +# source: google/ads/googleads_v4/proto/errors/image_error.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) @@ -17,11 +17,11 @@ DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/errors/image_error.proto', - package='google.ads.googleads.v1.errors', + name='google/ads/googleads_v4/proto/errors/image_error.proto', + package='google.ads.googleads.v4.errors', syntax='proto3', - serialized_options=_b('\n\"com.google.ads.googleads.v1.errorsB\017ImageErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V1.Errors\312\002\036Google\\Ads\\GoogleAds\\V1\\Errors\352\002\"Google::Ads::GoogleAds::V1::Errors'), - serialized_pb=_b('\n6google/ads/googleads_v1/proto/errors/image_error.proto\x12\x1egoogle.ads.googleads.v1.errors\x1a\x1cgoogle/api/annotations.proto\"\x8a\x08\n\x0eImageErrorEnum\"\xf7\x07\n\nImageError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x11\n\rINVALID_IMAGE\x10\x02\x12\x11\n\rSTORAGE_ERROR\x10\x03\x12\x0f\n\x0b\x42\x41\x44_REQUEST\x10\x04\x12\x13\n\x0fUNEXPECTED_SIZE\x10\x05\x12\x18\n\x14\x41NIMATED_NOT_ALLOWED\x10\x06\x12\x16\n\x12\x41NIMATION_TOO_LONG\x10\x07\x12\x10\n\x0cSERVER_ERROR\x10\x08\x12\x19\n\x15\x43MYK_JPEG_NOT_ALLOWED\x10\t\x12\x15\n\x11\x46LASH_NOT_ALLOWED\x10\n\x12\x1a\n\x16\x46LASH_WITHOUT_CLICKTAG\x10\x0b\x12&\n\"FLASH_ERROR_AFTER_FIXING_CLICK_TAG\x10\x0c\x12\x1a\n\x16\x41NIMATED_VISUAL_EFFECT\x10\r\x12\x0f\n\x0b\x46LASH_ERROR\x10\x0e\x12\x12\n\x0eLAYOUT_PROBLEM\x10\x0f\x12\x1e\n\x1aPROBLEM_READING_IMAGE_FILE\x10\x10\x12\x17\n\x13\x45RROR_STORING_IMAGE\x10\x11\x12\x1c\n\x18\x41SPECT_RATIO_NOT_ALLOWED\x10\x12\x12\x1d\n\x19\x46LASH_HAS_NETWORK_OBJECTS\x10\x13\x12\x1d\n\x19\x46LASH_HAS_NETWORK_METHODS\x10\x14\x12\x11\n\rFLASH_HAS_URL\x10\x15\x12\x1c\n\x18\x46LASH_HAS_MOUSE_TRACKING\x10\x16\x12\x18\n\x14\x46LASH_HAS_RANDOM_NUM\x10\x17\x12\x16\n\x12\x46LASH_SELF_TARGETS\x10\x18\x12\x1b\n\x17\x46LASH_BAD_GETURL_TARGET\x10\x19\x12\x1f\n\x1b\x46LASH_VERSION_NOT_SUPPORTED\x10\x1a\x12&\n\"FLASH_WITHOUT_HARD_CODED_CLICK_URL\x10\x1b\x12\x16\n\x12INVALID_FLASH_FILE\x10\x1c\x12$\n FAILED_TO_FIX_CLICK_TAG_IN_FLASH\x10\x1d\x12$\n FLASH_ACCESSES_NETWORK_RESOURCES\x10\x1e\x12\x1a\n\x16\x46LASH_EXTERNAL_JS_CALL\x10\x1f\x12\x1a\n\x16\x46LASH_EXTERNAL_FS_CALL\x10 \x12\x12\n\x0e\x46ILE_TOO_LARGE\x10!\x12\x18\n\x14IMAGE_DATA_TOO_LARGE\x10\"\x12\x1a\n\x16IMAGE_PROCESSING_ERROR\x10#\x12\x13\n\x0fIMAGE_TOO_SMALL\x10$\x12\x11\n\rINVALID_INPUT\x10%\x12\x18\n\x14PROBLEM_READING_FILE\x10&B\xea\x01\n\"com.google.ads.googleads.v1.errorsB\x0fImageErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V1.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V1\\Errors\xea\x02\"Google::Ads::GoogleAds::V1::Errorsb\x06proto3') + serialized_options=_b('\n\"com.google.ads.googleads.v4.errorsB\017ImageErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V4.Errors\312\002\036Google\\Ads\\GoogleAds\\V4\\Errors\352\002\"Google::Ads::GoogleAds::V4::Errors'), + serialized_pb=_b('\n6google/ads/googleads_v4/proto/errors/image_error.proto\x12\x1egoogle.ads.googleads.v4.errors\x1a\x1cgoogle/api/annotations.proto\"\xaa\x08\n\x0eImageErrorEnum\"\x97\x08\n\nImageError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x11\n\rINVALID_IMAGE\x10\x02\x12\x11\n\rSTORAGE_ERROR\x10\x03\x12\x0f\n\x0b\x42\x41\x44_REQUEST\x10\x04\x12\x13\n\x0fUNEXPECTED_SIZE\x10\x05\x12\x18\n\x14\x41NIMATED_NOT_ALLOWED\x10\x06\x12\x16\n\x12\x41NIMATION_TOO_LONG\x10\x07\x12\x10\n\x0cSERVER_ERROR\x10\x08\x12\x19\n\x15\x43MYK_JPEG_NOT_ALLOWED\x10\t\x12\x15\n\x11\x46LASH_NOT_ALLOWED\x10\n\x12\x1a\n\x16\x46LASH_WITHOUT_CLICKTAG\x10\x0b\x12&\n\"FLASH_ERROR_AFTER_FIXING_CLICK_TAG\x10\x0c\x12\x1a\n\x16\x41NIMATED_VISUAL_EFFECT\x10\r\x12\x0f\n\x0b\x46LASH_ERROR\x10\x0e\x12\x12\n\x0eLAYOUT_PROBLEM\x10\x0f\x12\x1e\n\x1aPROBLEM_READING_IMAGE_FILE\x10\x10\x12\x17\n\x13\x45RROR_STORING_IMAGE\x10\x11\x12\x1c\n\x18\x41SPECT_RATIO_NOT_ALLOWED\x10\x12\x12\x1d\n\x19\x46LASH_HAS_NETWORK_OBJECTS\x10\x13\x12\x1d\n\x19\x46LASH_HAS_NETWORK_METHODS\x10\x14\x12\x11\n\rFLASH_HAS_URL\x10\x15\x12\x1c\n\x18\x46LASH_HAS_MOUSE_TRACKING\x10\x16\x12\x18\n\x14\x46LASH_HAS_RANDOM_NUM\x10\x17\x12\x16\n\x12\x46LASH_SELF_TARGETS\x10\x18\x12\x1b\n\x17\x46LASH_BAD_GETURL_TARGET\x10\x19\x12\x1f\n\x1b\x46LASH_VERSION_NOT_SUPPORTED\x10\x1a\x12&\n\"FLASH_WITHOUT_HARD_CODED_CLICK_URL\x10\x1b\x12\x16\n\x12INVALID_FLASH_FILE\x10\x1c\x12$\n FAILED_TO_FIX_CLICK_TAG_IN_FLASH\x10\x1d\x12$\n FLASH_ACCESSES_NETWORK_RESOURCES\x10\x1e\x12\x1a\n\x16\x46LASH_EXTERNAL_JS_CALL\x10\x1f\x12\x1a\n\x16\x46LASH_EXTERNAL_FS_CALL\x10 \x12\x12\n\x0e\x46ILE_TOO_LARGE\x10!\x12\x18\n\x14IMAGE_DATA_TOO_LARGE\x10\"\x12\x1a\n\x16IMAGE_PROCESSING_ERROR\x10#\x12\x13\n\x0fIMAGE_TOO_SMALL\x10$\x12\x11\n\rINVALID_INPUT\x10%\x12\x18\n\x14PROBLEM_READING_FILE\x10&\x12\x1e\n\x1aIMAGE_CONSTRAINTS_VIOLATED\x10\'B\xea\x01\n\"com.google.ads.googleads.v4.errorsB\x0fImageErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V4.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V4\\Errors\xea\x02\"Google::Ads::GoogleAds::V4::Errorsb\x06proto3') , dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) @@ -29,7 +29,7 @@ _IMAGEERRORENUM_IMAGEERROR = _descriptor.EnumDescriptor( name='ImageError', - full_name='google.ads.googleads.v1.errors.ImageErrorEnum.ImageError', + full_name='google.ads.googleads.v4.errors.ImageErrorEnum.ImageError', filename=None, file=DESCRIPTOR, values=[ @@ -189,18 +189,22 @@ name='PROBLEM_READING_FILE', index=38, number=38, serialized_options=None, type=None), + _descriptor.EnumValueDescriptor( + name='IMAGE_CONSTRAINTS_VIOLATED', index=39, number=39, + serialized_options=None, + type=None), ], containing_type=None, serialized_options=None, serialized_start=140, - serialized_end=1155, + serialized_end=1187, ) _sym_db.RegisterEnumDescriptor(_IMAGEERRORENUM_IMAGEERROR) _IMAGEERRORENUM = _descriptor.Descriptor( name='ImageErrorEnum', - full_name='google.ads.googleads.v1.errors.ImageErrorEnum', + full_name='google.ads.googleads.v4.errors.ImageErrorEnum', filename=None, file=DESCRIPTOR, containing_type=None, @@ -219,7 +223,7 @@ oneofs=[ ], serialized_start=121, - serialized_end=1155, + serialized_end=1187, ) _IMAGEERRORENUM_IMAGEERROR.containing_type = _IMAGEERRORENUM @@ -228,11 +232,11 @@ ImageErrorEnum = _reflection.GeneratedProtocolMessageType('ImageErrorEnum', (_message.Message,), dict( DESCRIPTOR = _IMAGEERRORENUM, - __module__ = 'google.ads.googleads_v1.proto.errors.image_error_pb2' + __module__ = 'google.ads.googleads_v4.proto.errors.image_error_pb2' , __doc__ = """Container for enum describing possible image errors. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.errors.ImageErrorEnum) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.errors.ImageErrorEnum) )) _sym_db.RegisterMessage(ImageErrorEnum) diff --git a/google/ads/google_ads/v1/proto/errors/policy_validation_parameter_error_pb2_grpc.py b/google/ads/google_ads/v4/proto/errors/image_error_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/errors/policy_validation_parameter_error_pb2_grpc.py rename to google/ads/google_ads/v4/proto/errors/image_error_pb2_grpc.py diff --git a/google/ads/google_ads/v4/proto/errors/internal_error_pb2.py b/google/ads/google_ads/v4/proto/errors/internal_error_pb2.py new file mode 100644 index 000000000..1fbb22960 --- /dev/null +++ b/google/ads/google_ads/v4/proto/errors/internal_error_pb2.py @@ -0,0 +1,109 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/errors/internal_error.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/errors/internal_error.proto', + package='google.ads.googleads.v4.errors', + syntax='proto3', + serialized_options=_b('\n\"com.google.ads.googleads.v4.errorsB\022InternalErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V4.Errors\312\002\036Google\\Ads\\GoogleAds\\V4\\Errors\352\002\"Google::Ads::GoogleAds::V4::Errors'), + serialized_pb=_b('\n9google/ads/googleads_v4/proto/errors/internal_error.proto\x12\x1egoogle.ads.googleads.v4.errors\x1a\x1cgoogle/api/annotations.proto\"\xa1\x01\n\x11InternalErrorEnum\"\x8b\x01\n\rInternalError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x12\n\x0eINTERNAL_ERROR\x10\x02\x12\x1c\n\x18\x45RROR_CODE_NOT_PUBLISHED\x10\x03\x12\x13\n\x0fTRANSIENT_ERROR\x10\x04\x12\x15\n\x11\x44\x45\x41\x44LINE_EXCEEDED\x10\x05\x42\xed\x01\n\"com.google.ads.googleads.v4.errorsB\x12InternalErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V4.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V4\\Errors\xea\x02\"Google::Ads::GoogleAds::V4::Errorsb\x06proto3') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_INTERNALERRORENUM_INTERNALERROR = _descriptor.EnumDescriptor( + name='InternalError', + full_name='google.ads.googleads.v4.errors.InternalErrorEnum.InternalError', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='UNSPECIFIED', index=0, number=0, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='UNKNOWN', index=1, number=1, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INTERNAL_ERROR', index=2, number=2, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='ERROR_CODE_NOT_PUBLISHED', index=3, number=3, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='TRANSIENT_ERROR', index=4, number=4, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='DEADLINE_EXCEEDED', index=5, number=5, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=146, + serialized_end=285, +) +_sym_db.RegisterEnumDescriptor(_INTERNALERRORENUM_INTERNALERROR) + + +_INTERNALERRORENUM = _descriptor.Descriptor( + name='InternalErrorEnum', + full_name='google.ads.googleads.v4.errors.InternalErrorEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _INTERNALERRORENUM_INTERNALERROR, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=124, + serialized_end=285, +) + +_INTERNALERRORENUM_INTERNALERROR.containing_type = _INTERNALERRORENUM +DESCRIPTOR.message_types_by_name['InternalErrorEnum'] = _INTERNALERRORENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +InternalErrorEnum = _reflection.GeneratedProtocolMessageType('InternalErrorEnum', (_message.Message,), dict( + DESCRIPTOR = _INTERNALERRORENUM, + __module__ = 'google.ads.googleads_v4.proto.errors.internal_error_pb2' + , + __doc__ = """Container for enum describing possible internal errors. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.errors.InternalErrorEnum) + )) +_sym_db.RegisterMessage(InternalErrorEnum) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/errors/policy_violation_error_pb2_grpc.py b/google/ads/google_ads/v4/proto/errors/internal_error_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/errors/policy_violation_error_pb2_grpc.py rename to google/ads/google_ads/v4/proto/errors/internal_error_pb2_grpc.py diff --git a/google/ads/google_ads/v4/proto/errors/invoice_error_pb2.py b/google/ads/google_ads/v4/proto/errors/invoice_error_pb2.py new file mode 100644 index 000000000..faad1382e --- /dev/null +++ b/google/ads/google_ads/v4/proto/errors/invoice_error_pb2.py @@ -0,0 +1,101 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/errors/invoice_error.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/errors/invoice_error.proto', + package='google.ads.googleads.v4.errors', + syntax='proto3', + serialized_options=_b('\n\"com.google.ads.googleads.v4.errorsB\021InvoiceErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V4.Errors\312\002\036Google\\Ads\\GoogleAds\\V4\\Errors\352\002\"Google::Ads::GoogleAds::V4::Errors'), + serialized_pb=_b('\n8google/ads/googleads_v4/proto/errors/invoice_error.proto\x12\x1egoogle.ads.googleads.v4.errors\x1a\x1cgoogle/api/annotations.proto\"s\n\x10InvoiceErrorEnum\"_\n\x0cInvoiceError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x16\n\x12YEAR_MONTH_TOO_OLD\x10\x02\x12\x19\n\x15NOT_INVOICED_CUSTOMER\x10\x03\x42\xec\x01\n\"com.google.ads.googleads.v4.errorsB\x11InvoiceErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V4.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V4\\Errors\xea\x02\"Google::Ads::GoogleAds::V4::Errorsb\x06proto3') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_INVOICEERRORENUM_INVOICEERROR = _descriptor.EnumDescriptor( + name='InvoiceError', + full_name='google.ads.googleads.v4.errors.InvoiceErrorEnum.InvoiceError', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='UNSPECIFIED', index=0, number=0, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='UNKNOWN', index=1, number=1, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='YEAR_MONTH_TOO_OLD', index=2, number=2, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='NOT_INVOICED_CUSTOMER', index=3, number=3, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=142, + serialized_end=237, +) +_sym_db.RegisterEnumDescriptor(_INVOICEERRORENUM_INVOICEERROR) + + +_INVOICEERRORENUM = _descriptor.Descriptor( + name='InvoiceErrorEnum', + full_name='google.ads.googleads.v4.errors.InvoiceErrorEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _INVOICEERRORENUM_INVOICEERROR, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=122, + serialized_end=237, +) + +_INVOICEERRORENUM_INVOICEERROR.containing_type = _INVOICEERRORENUM +DESCRIPTOR.message_types_by_name['InvoiceErrorEnum'] = _INVOICEERRORENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +InvoiceErrorEnum = _reflection.GeneratedProtocolMessageType('InvoiceErrorEnum', (_message.Message,), dict( + DESCRIPTOR = _INVOICEERRORENUM, + __module__ = 'google.ads.googleads_v4.proto.errors.invoice_error_pb2' + , + __doc__ = """Container for enum describing possible invoice errors. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.errors.InvoiceErrorEnum) + )) +_sym_db.RegisterMessage(InvoiceErrorEnum) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/errors/query_error_pb2_grpc.py b/google/ads/google_ads/v4/proto/errors/invoice_error_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/errors/query_error_pb2_grpc.py rename to google/ads/google_ads/v4/proto/errors/invoice_error_pb2_grpc.py diff --git a/google/ads/google_ads/v1/proto/errors/keyword_plan_ad_group_error_pb2.py b/google/ads/google_ads/v4/proto/errors/keyword_plan_ad_group_error_pb2.py similarity index 75% rename from google/ads/google_ads/v1/proto/errors/keyword_plan_ad_group_error_pb2.py rename to google/ads/google_ads/v4/proto/errors/keyword_plan_ad_group_error_pb2.py index 9f6a9adbd..d0177cbe4 100644 --- a/google/ads/google_ads/v1/proto/errors/keyword_plan_ad_group_error_pb2.py +++ b/google/ads/google_ads/v4/proto/errors/keyword_plan_ad_group_error_pb2.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/errors/keyword_plan_ad_group_error.proto +# source: google/ads/googleads_v4/proto/errors/keyword_plan_ad_group_error.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) @@ -17,11 +17,11 @@ DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/errors/keyword_plan_ad_group_error.proto', - package='google.ads.googleads.v1.errors', + name='google/ads/googleads_v4/proto/errors/keyword_plan_ad_group_error.proto', + package='google.ads.googleads.v4.errors', syntax='proto3', - serialized_options=_b('\n\"com.google.ads.googleads.v1.errorsB\034KeywordPlanAdGroupErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V1.Errors\312\002\036Google\\Ads\\GoogleAds\\V1\\Errors\352\002\"Google::Ads::GoogleAds::V1::Errors'), - serialized_pb=_b('\nFgoogle/ads/googleads_v1/proto/errors/keyword_plan_ad_group_error.proto\x12\x1egoogle.ads.googleads.v1.errors\x1a\x1cgoogle/api/annotations.proto\"|\n\x1bKeywordPlanAdGroupErrorEnum\"]\n\x17KeywordPlanAdGroupError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x10\n\x0cINVALID_NAME\x10\x02\x12\x12\n\x0e\x44UPLICATE_NAME\x10\x03\x42\xf7\x01\n\"com.google.ads.googleads.v1.errorsB\x1cKeywordPlanAdGroupErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V1.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V1\\Errors\xea\x02\"Google::Ads::GoogleAds::V1::Errorsb\x06proto3') + serialized_options=_b('\n\"com.google.ads.googleads.v4.errorsB\034KeywordPlanAdGroupErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V4.Errors\312\002\036Google\\Ads\\GoogleAds\\V4\\Errors\352\002\"Google::Ads::GoogleAds::V4::Errors'), + serialized_pb=_b('\nFgoogle/ads/googleads_v4/proto/errors/keyword_plan_ad_group_error.proto\x12\x1egoogle.ads.googleads.v4.errors\x1a\x1cgoogle/api/annotations.proto\"|\n\x1bKeywordPlanAdGroupErrorEnum\"]\n\x17KeywordPlanAdGroupError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x10\n\x0cINVALID_NAME\x10\x02\x12\x12\n\x0e\x44UPLICATE_NAME\x10\x03\x42\xf7\x01\n\"com.google.ads.googleads.v4.errorsB\x1cKeywordPlanAdGroupErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V4.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V4\\Errors\xea\x02\"Google::Ads::GoogleAds::V4::Errorsb\x06proto3') , dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) @@ -29,7 +29,7 @@ _KEYWORDPLANADGROUPERRORENUM_KEYWORDPLANADGROUPERROR = _descriptor.EnumDescriptor( name='KeywordPlanAdGroupError', - full_name='google.ads.googleads.v1.errors.KeywordPlanAdGroupErrorEnum.KeywordPlanAdGroupError', + full_name='google.ads.googleads.v4.errors.KeywordPlanAdGroupErrorEnum.KeywordPlanAdGroupError', filename=None, file=DESCRIPTOR, values=[ @@ -60,7 +60,7 @@ _KEYWORDPLANADGROUPERRORENUM = _descriptor.Descriptor( name='KeywordPlanAdGroupErrorEnum', - full_name='google.ads.googleads.v1.errors.KeywordPlanAdGroupErrorEnum', + full_name='google.ads.googleads.v4.errors.KeywordPlanAdGroupErrorEnum', filename=None, file=DESCRIPTOR, containing_type=None, @@ -88,12 +88,12 @@ KeywordPlanAdGroupErrorEnum = _reflection.GeneratedProtocolMessageType('KeywordPlanAdGroupErrorEnum', (_message.Message,), dict( DESCRIPTOR = _KEYWORDPLANADGROUPERRORENUM, - __module__ = 'google.ads.googleads_v1.proto.errors.keyword_plan_ad_group_error_pb2' + __module__ = 'google.ads.googleads_v4.proto.errors.keyword_plan_ad_group_error_pb2' , __doc__ = """Container for enum describing possible errors from applying a keyword plan ad group. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.errors.KeywordPlanAdGroupErrorEnum) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.errors.KeywordPlanAdGroupErrorEnum) )) _sym_db.RegisterMessage(KeywordPlanAdGroupErrorEnum) diff --git a/google/ads/google_ads/v1/proto/errors/quota_error_pb2_grpc.py b/google/ads/google_ads/v4/proto/errors/keyword_plan_ad_group_error_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/errors/quota_error_pb2_grpc.py rename to google/ads/google_ads/v4/proto/errors/keyword_plan_ad_group_error_pb2_grpc.py diff --git a/google/ads/google_ads/v4/proto/errors/keyword_plan_ad_group_keyword_error_pb2.py b/google/ads/google_ads/v4/proto/errors/keyword_plan_ad_group_keyword_error_pb2.py new file mode 100644 index 000000000..755af7004 --- /dev/null +++ b/google/ads/google_ads/v4/proto/errors/keyword_plan_ad_group_keyword_error_pb2.py @@ -0,0 +1,122 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/errors/keyword_plan_ad_group_keyword_error.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/errors/keyword_plan_ad_group_keyword_error.proto', + package='google.ads.googleads.v4.errors', + syntax='proto3', + serialized_options=_b('\n\"com.google.ads.googleads.v4.errorsB#KeywordPlanAdGroupKeywordErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V4.Errors\312\002\036Google\\Ads\\GoogleAds\\V4\\Errors\352\002\"Google::Ads::GoogleAds::V4::Errors'), + serialized_pb=_b('\nNgoogle/ads/googleads_v4/proto/errors/keyword_plan_ad_group_keyword_error.proto\x12\x1egoogle.ads.googleads.v4.errors\x1a\x1cgoogle/api/annotations.proto\"\xb2\x02\n\"KeywordPlanAdGroupKeywordErrorEnum\"\x8b\x02\n\x1eKeywordPlanAdGroupKeywordError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x1e\n\x1aINVALID_KEYWORD_MATCH_TYPE\x10\x02\x12\x15\n\x11\x44UPLICATE_KEYWORD\x10\x03\x12\x19\n\x15KEYWORD_TEXT_TOO_LONG\x10\x04\x12\x1d\n\x19KEYWORD_HAS_INVALID_CHARS\x10\x05\x12\x1e\n\x1aKEYWORD_HAS_TOO_MANY_WORDS\x10\x06\x12\x18\n\x14INVALID_KEYWORD_TEXT\x10\x07\x12 \n\x1cNEGATIVE_KEYWORD_HAS_CPC_BID\x10\x08\x42\xfe\x01\n\"com.google.ads.googleads.v4.errorsB#KeywordPlanAdGroupKeywordErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V4.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V4\\Errors\xea\x02\"Google::Ads::GoogleAds::V4::Errorsb\x06proto3') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_KEYWORDPLANADGROUPKEYWORDERRORENUM_KEYWORDPLANADGROUPKEYWORDERROR = _descriptor.EnumDescriptor( + name='KeywordPlanAdGroupKeywordError', + full_name='google.ads.googleads.v4.errors.KeywordPlanAdGroupKeywordErrorEnum.KeywordPlanAdGroupKeywordError', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='UNSPECIFIED', index=0, number=0, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='UNKNOWN', index=1, number=1, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_KEYWORD_MATCH_TYPE', index=2, number=2, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='DUPLICATE_KEYWORD', index=3, number=3, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='KEYWORD_TEXT_TOO_LONG', index=4, number=4, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='KEYWORD_HAS_INVALID_CHARS', index=5, number=5, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='KEYWORD_HAS_TOO_MANY_WORDS', index=6, number=6, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_KEYWORD_TEXT', index=7, number=7, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='NEGATIVE_KEYWORD_HAS_CPC_BID', index=8, number=8, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=184, + serialized_end=451, +) +_sym_db.RegisterEnumDescriptor(_KEYWORDPLANADGROUPKEYWORDERRORENUM_KEYWORDPLANADGROUPKEYWORDERROR) + + +_KEYWORDPLANADGROUPKEYWORDERRORENUM = _descriptor.Descriptor( + name='KeywordPlanAdGroupKeywordErrorEnum', + full_name='google.ads.googleads.v4.errors.KeywordPlanAdGroupKeywordErrorEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _KEYWORDPLANADGROUPKEYWORDERRORENUM_KEYWORDPLANADGROUPKEYWORDERROR, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=145, + serialized_end=451, +) + +_KEYWORDPLANADGROUPKEYWORDERRORENUM_KEYWORDPLANADGROUPKEYWORDERROR.containing_type = _KEYWORDPLANADGROUPKEYWORDERRORENUM +DESCRIPTOR.message_types_by_name['KeywordPlanAdGroupKeywordErrorEnum'] = _KEYWORDPLANADGROUPKEYWORDERRORENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +KeywordPlanAdGroupKeywordErrorEnum = _reflection.GeneratedProtocolMessageType('KeywordPlanAdGroupKeywordErrorEnum', (_message.Message,), dict( + DESCRIPTOR = _KEYWORDPLANADGROUPKEYWORDERRORENUM, + __module__ = 'google.ads.googleads_v4.proto.errors.keyword_plan_ad_group_keyword_error_pb2' + , + __doc__ = """Container for enum describing possible errors from applying an ad group + keyword or a campaign keyword from a keyword plan. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.errors.KeywordPlanAdGroupKeywordErrorEnum) + )) +_sym_db.RegisterMessage(KeywordPlanAdGroupKeywordErrorEnum) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/errors/range_error_pb2_grpc.py b/google/ads/google_ads/v4/proto/errors/keyword_plan_ad_group_keyword_error_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/errors/range_error_pb2_grpc.py rename to google/ads/google_ads/v4/proto/errors/keyword_plan_ad_group_keyword_error_pb2_grpc.py diff --git a/google/ads/google_ads/v4/proto/errors/keyword_plan_campaign_error_pb2.py b/google/ads/google_ads/v4/proto/errors/keyword_plan_campaign_error_pb2.py new file mode 100644 index 000000000..56b0fdc12 --- /dev/null +++ b/google/ads/google_ads/v4/proto/errors/keyword_plan_campaign_error_pb2.py @@ -0,0 +1,118 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/errors/keyword_plan_campaign_error.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/errors/keyword_plan_campaign_error.proto', + package='google.ads.googleads.v4.errors', + syntax='proto3', + serialized_options=_b('\n\"com.google.ads.googleads.v4.errorsB\035KeywordPlanCampaignErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V4.Errors\312\002\036Google\\Ads\\GoogleAds\\V4\\Errors\352\002\"Google::Ads::GoogleAds::V4::Errors'), + serialized_pb=_b('\nFgoogle/ads/googleads_v4/proto/errors/keyword_plan_campaign_error.proto\x12\x1egoogle.ads.googleads.v4.errors\x1a\x1cgoogle/api/annotations.proto\"\xdb\x01\n\x1cKeywordPlanCampaignErrorEnum\"\xba\x01\n\x18KeywordPlanCampaignError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x10\n\x0cINVALID_NAME\x10\x02\x12\x15\n\x11INVALID_LANGUAGES\x10\x03\x12\x10\n\x0cINVALID_GEOS\x10\x04\x12\x12\n\x0e\x44UPLICATE_NAME\x10\x05\x12\x15\n\x11MAX_GEOS_EXCEEDED\x10\x06\x12\x1a\n\x16MAX_LANGUAGES_EXCEEDED\x10\x07\x42\xf8\x01\n\"com.google.ads.googleads.v4.errorsB\x1dKeywordPlanCampaignErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V4.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V4\\Errors\xea\x02\"Google::Ads::GoogleAds::V4::Errorsb\x06proto3') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_KEYWORDPLANCAMPAIGNERRORENUM_KEYWORDPLANCAMPAIGNERROR = _descriptor.EnumDescriptor( + name='KeywordPlanCampaignError', + full_name='google.ads.googleads.v4.errors.KeywordPlanCampaignErrorEnum.KeywordPlanCampaignError', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='UNSPECIFIED', index=0, number=0, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='UNKNOWN', index=1, number=1, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_NAME', index=2, number=2, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_LANGUAGES', index=3, number=3, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_GEOS', index=4, number=4, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='DUPLICATE_NAME', index=5, number=5, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='MAX_GEOS_EXCEEDED', index=6, number=6, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='MAX_LANGUAGES_EXCEEDED', index=7, number=7, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=170, + serialized_end=356, +) +_sym_db.RegisterEnumDescriptor(_KEYWORDPLANCAMPAIGNERRORENUM_KEYWORDPLANCAMPAIGNERROR) + + +_KEYWORDPLANCAMPAIGNERRORENUM = _descriptor.Descriptor( + name='KeywordPlanCampaignErrorEnum', + full_name='google.ads.googleads.v4.errors.KeywordPlanCampaignErrorEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _KEYWORDPLANCAMPAIGNERRORENUM_KEYWORDPLANCAMPAIGNERROR, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=137, + serialized_end=356, +) + +_KEYWORDPLANCAMPAIGNERRORENUM_KEYWORDPLANCAMPAIGNERROR.containing_type = _KEYWORDPLANCAMPAIGNERRORENUM +DESCRIPTOR.message_types_by_name['KeywordPlanCampaignErrorEnum'] = _KEYWORDPLANCAMPAIGNERRORENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +KeywordPlanCampaignErrorEnum = _reflection.GeneratedProtocolMessageType('KeywordPlanCampaignErrorEnum', (_message.Message,), dict( + DESCRIPTOR = _KEYWORDPLANCAMPAIGNERRORENUM, + __module__ = 'google.ads.googleads_v4.proto.errors.keyword_plan_campaign_error_pb2' + , + __doc__ = """Container for enum describing possible errors from applying a keyword + plan campaign. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.errors.KeywordPlanCampaignErrorEnum) + )) +_sym_db.RegisterMessage(KeywordPlanCampaignErrorEnum) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/errors/recommendation_error_pb2_grpc.py b/google/ads/google_ads/v4/proto/errors/keyword_plan_campaign_error_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/errors/recommendation_error_pb2_grpc.py rename to google/ads/google_ads/v4/proto/errors/keyword_plan_campaign_error_pb2_grpc.py diff --git a/google/ads/google_ads/v4/proto/errors/keyword_plan_campaign_keyword_error_pb2.py b/google/ads/google_ads/v4/proto/errors/keyword_plan_campaign_keyword_error_pb2.py new file mode 100644 index 000000000..496c1852e --- /dev/null +++ b/google/ads/google_ads/v4/proto/errors/keyword_plan_campaign_keyword_error_pb2.py @@ -0,0 +1,98 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/errors/keyword_plan_campaign_keyword_error.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/errors/keyword_plan_campaign_keyword_error.proto', + package='google.ads.googleads.v4.errors', + syntax='proto3', + serialized_options=_b('\n\"com.google.ads.googleads.v4.errorsB$KeywordPlanCampaignKeywordErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V4.Errors\312\002\036Google\\Ads\\GoogleAds\\V4\\Errors\352\002\"Google::Ads::GoogleAds::V4::Errors'), + serialized_pb=_b('\nNgoogle/ads/googleads_v4/proto/errors/keyword_plan_campaign_keyword_error.proto\x12\x1egoogle.ads.googleads.v4.errors\x1a\x1cgoogle/api/annotations.proto\"\x88\x01\n#KeywordPlanCampaignKeywordErrorEnum\"a\n\x1fKeywordPlanCampaignKeywordError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12 \n\x1c\x43\x41MPAIGN_KEYWORD_IS_POSITIVE\x10\x08\x42\xff\x01\n\"com.google.ads.googleads.v4.errorsB$KeywordPlanCampaignKeywordErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V4.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V4\\Errors\xea\x02\"Google::Ads::GoogleAds::V4::Errorsb\x06proto3') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_KEYWORDPLANCAMPAIGNKEYWORDERRORENUM_KEYWORDPLANCAMPAIGNKEYWORDERROR = _descriptor.EnumDescriptor( + name='KeywordPlanCampaignKeywordError', + full_name='google.ads.googleads.v4.errors.KeywordPlanCampaignKeywordErrorEnum.KeywordPlanCampaignKeywordError', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='UNSPECIFIED', index=0, number=0, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='UNKNOWN', index=1, number=1, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CAMPAIGN_KEYWORD_IS_POSITIVE', index=2, number=8, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=184, + serialized_end=281, +) +_sym_db.RegisterEnumDescriptor(_KEYWORDPLANCAMPAIGNKEYWORDERRORENUM_KEYWORDPLANCAMPAIGNKEYWORDERROR) + + +_KEYWORDPLANCAMPAIGNKEYWORDERRORENUM = _descriptor.Descriptor( + name='KeywordPlanCampaignKeywordErrorEnum', + full_name='google.ads.googleads.v4.errors.KeywordPlanCampaignKeywordErrorEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _KEYWORDPLANCAMPAIGNKEYWORDERRORENUM_KEYWORDPLANCAMPAIGNKEYWORDERROR, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=145, + serialized_end=281, +) + +_KEYWORDPLANCAMPAIGNKEYWORDERRORENUM_KEYWORDPLANCAMPAIGNKEYWORDERROR.containing_type = _KEYWORDPLANCAMPAIGNKEYWORDERRORENUM +DESCRIPTOR.message_types_by_name['KeywordPlanCampaignKeywordErrorEnum'] = _KEYWORDPLANCAMPAIGNKEYWORDERRORENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +KeywordPlanCampaignKeywordErrorEnum = _reflection.GeneratedProtocolMessageType('KeywordPlanCampaignKeywordErrorEnum', (_message.Message,), dict( + DESCRIPTOR = _KEYWORDPLANCAMPAIGNKEYWORDERRORENUM, + __module__ = 'google.ads.googleads_v4.proto.errors.keyword_plan_campaign_keyword_error_pb2' + , + __doc__ = """Container for enum describing possible errors from applying a keyword + plan campaign keyword. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.errors.KeywordPlanCampaignKeywordErrorEnum) + )) +_sym_db.RegisterMessage(KeywordPlanCampaignKeywordErrorEnum) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/errors/region_code_error_pb2_grpc.py b/google/ads/google_ads/v4/proto/errors/keyword_plan_campaign_keyword_error_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/errors/region_code_error_pb2_grpc.py rename to google/ads/google_ads/v4/proto/errors/keyword_plan_campaign_keyword_error_pb2_grpc.py diff --git a/google/ads/google_ads/v1/proto/errors/keyword_plan_error_pb2.py b/google/ads/google_ads/v4/proto/errors/keyword_plan_error_pb2.py similarity index 83% rename from google/ads/google_ads/v1/proto/errors/keyword_plan_error_pb2.py rename to google/ads/google_ads/v4/proto/errors/keyword_plan_error_pb2.py index 78485ade5..0efc174e2 100644 --- a/google/ads/google_ads/v1/proto/errors/keyword_plan_error_pb2.py +++ b/google/ads/google_ads/v4/proto/errors/keyword_plan_error_pb2.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/errors/keyword_plan_error.proto +# source: google/ads/googleads_v4/proto/errors/keyword_plan_error.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) @@ -17,11 +17,11 @@ DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/errors/keyword_plan_error.proto', - package='google.ads.googleads.v1.errors', + name='google/ads/googleads_v4/proto/errors/keyword_plan_error.proto', + package='google.ads.googleads.v4.errors', syntax='proto3', - serialized_options=_b('\n\"com.google.ads.googleads.v1.errorsB\025KeywordPlanErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V1.Errors\312\002\036Google\\Ads\\GoogleAds\\V1\\Errors\352\002\"Google::Ads::GoogleAds::V1::Errors'), - serialized_pb=_b('\n=google/ads/googleads_v1/proto/errors/keyword_plan_error.proto\x12\x1egoogle.ads.googleads.v1.errors\x1a\x1cgoogle/api/annotations.proto\"\xc8\x03\n\x14KeywordPlanErrorEnum\"\xaf\x03\n\x10KeywordPlanError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x1f\n\x1b\x42ID_MULTIPLIER_OUT_OF_RANGE\x10\x02\x12\x10\n\x0c\x42ID_TOO_HIGH\x10\x03\x12\x0f\n\x0b\x42ID_TOO_LOW\x10\x04\x12\"\n\x1e\x42ID_TOO_MANY_FRACTIONAL_DIGITS\x10\x05\x12\x18\n\x14\x44\x41ILY_BUDGET_TOO_LOW\x10\x06\x12+\n\'DAILY_BUDGET_TOO_MANY_FRACTIONAL_DIGITS\x10\x07\x12\x11\n\rINVALID_VALUE\x10\x08\x12 \n\x1cKEYWORD_PLAN_HAS_NO_KEYWORDS\x10\t\x12\x1c\n\x18KEYWORD_PLAN_NOT_ENABLED\x10\n\x12\x1a\n\x16KEYWORD_PLAN_NOT_FOUND\x10\x0b\x12\x0f\n\x0bMISSING_BID\x10\r\x12\x1b\n\x17MISSING_FORECAST_PERIOD\x10\x0e\x12\x1f\n\x1bINVALID_FORECAST_DATE_RANGE\x10\x0f\x12\x10\n\x0cINVALID_NAME\x10\x10\x42\xf0\x01\n\"com.google.ads.googleads.v1.errorsB\x15KeywordPlanErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V1.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V1\\Errors\xea\x02\"Google::Ads::GoogleAds::V1::Errorsb\x06proto3') + serialized_options=_b('\n\"com.google.ads.googleads.v4.errorsB\025KeywordPlanErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V4.Errors\312\002\036Google\\Ads\\GoogleAds\\V4\\Errors\352\002\"Google::Ads::GoogleAds::V4::Errors'), + serialized_pb=_b('\n=google/ads/googleads_v4/proto/errors/keyword_plan_error.proto\x12\x1egoogle.ads.googleads.v4.errors\x1a\x1cgoogle/api/annotations.proto\"\xc8\x03\n\x14KeywordPlanErrorEnum\"\xaf\x03\n\x10KeywordPlanError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x1f\n\x1b\x42ID_MULTIPLIER_OUT_OF_RANGE\x10\x02\x12\x10\n\x0c\x42ID_TOO_HIGH\x10\x03\x12\x0f\n\x0b\x42ID_TOO_LOW\x10\x04\x12\"\n\x1e\x42ID_TOO_MANY_FRACTIONAL_DIGITS\x10\x05\x12\x18\n\x14\x44\x41ILY_BUDGET_TOO_LOW\x10\x06\x12+\n\'DAILY_BUDGET_TOO_MANY_FRACTIONAL_DIGITS\x10\x07\x12\x11\n\rINVALID_VALUE\x10\x08\x12 \n\x1cKEYWORD_PLAN_HAS_NO_KEYWORDS\x10\t\x12\x1c\n\x18KEYWORD_PLAN_NOT_ENABLED\x10\n\x12\x1a\n\x16KEYWORD_PLAN_NOT_FOUND\x10\x0b\x12\x0f\n\x0bMISSING_BID\x10\r\x12\x1b\n\x17MISSING_FORECAST_PERIOD\x10\x0e\x12\x1f\n\x1bINVALID_FORECAST_DATE_RANGE\x10\x0f\x12\x10\n\x0cINVALID_NAME\x10\x10\x42\xf0\x01\n\"com.google.ads.googleads.v4.errorsB\x15KeywordPlanErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V4.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V4\\Errors\xea\x02\"Google::Ads::GoogleAds::V4::Errorsb\x06proto3') , dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) @@ -29,7 +29,7 @@ _KEYWORDPLANERRORENUM_KEYWORDPLANERROR = _descriptor.EnumDescriptor( name='KeywordPlanError', - full_name='google.ads.googleads.v1.errors.KeywordPlanErrorEnum.KeywordPlanError', + full_name='google.ads.googleads.v4.errors.KeywordPlanErrorEnum.KeywordPlanError', filename=None, file=DESCRIPTOR, values=[ @@ -108,7 +108,7 @@ _KEYWORDPLANERRORENUM = _descriptor.Descriptor( name='KeywordPlanErrorEnum', - full_name='google.ads.googleads.v1.errors.KeywordPlanErrorEnum', + full_name='google.ads.googleads.v4.errors.KeywordPlanErrorEnum', filename=None, file=DESCRIPTOR, containing_type=None, @@ -136,13 +136,13 @@ KeywordPlanErrorEnum = _reflection.GeneratedProtocolMessageType('KeywordPlanErrorEnum', (_message.Message,), dict( DESCRIPTOR = _KEYWORDPLANERRORENUM, - __module__ = 'google.ads.googleads_v1.proto.errors.keyword_plan_error_pb2' + __module__ = 'google.ads.googleads_v4.proto.errors.keyword_plan_error_pb2' , __doc__ = """Container for enum describing possible errors from applying a keyword plan resource (keyword plan, keyword plan campaign, keyword plan ad group or keyword plan keyword) or KeywordPlanService RPC. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.errors.KeywordPlanErrorEnum) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.errors.KeywordPlanErrorEnum) )) _sym_db.RegisterMessage(KeywordPlanErrorEnum) diff --git a/google/ads/google_ads/v1/proto/errors/request_error_pb2_grpc.py b/google/ads/google_ads/v4/proto/errors/keyword_plan_error_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/errors/request_error_pb2_grpc.py rename to google/ads/google_ads/v4/proto/errors/keyword_plan_error_pb2_grpc.py diff --git a/google/ads/google_ads/v4/proto/errors/keyword_plan_idea_error_pb2.py b/google/ads/google_ads/v4/proto/errors/keyword_plan_idea_error_pb2.py new file mode 100644 index 000000000..fb5b4cf2a --- /dev/null +++ b/google/ads/google_ads/v4/proto/errors/keyword_plan_idea_error_pb2.py @@ -0,0 +1,102 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/errors/keyword_plan_idea_error.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/errors/keyword_plan_idea_error.proto', + package='google.ads.googleads.v4.errors', + syntax='proto3', + serialized_options=_b('\n\"com.google.ads.googleads.v4.errorsB\031KeywordPlanIdeaErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V4.Errors\312\002\036Google\\Ads\\GoogleAds\\V4\\Errors\352\002\"Google::Ads::GoogleAds::V4::Errors'), + serialized_pb=_b('\nBgoogle/ads/googleads_v4/proto/errors/keyword_plan_idea_error.proto\x12\x1egoogle.ads.googleads.v4.errors\x1a\x1cgoogle/api/annotations.proto\"x\n\x18KeywordPlanIdeaErrorEnum\"\\\n\x14KeywordPlanIdeaError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x13\n\x0fURL_CRAWL_ERROR\x10\x02\x12\x11\n\rINVALID_VALUE\x10\x03\x42\xf4\x01\n\"com.google.ads.googleads.v4.errorsB\x19KeywordPlanIdeaErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V4.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V4\\Errors\xea\x02\"Google::Ads::GoogleAds::V4::Errorsb\x06proto3') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_KEYWORDPLANIDEAERRORENUM_KEYWORDPLANIDEAERROR = _descriptor.EnumDescriptor( + name='KeywordPlanIdeaError', + full_name='google.ads.googleads.v4.errors.KeywordPlanIdeaErrorEnum.KeywordPlanIdeaError', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='UNSPECIFIED', index=0, number=0, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='UNKNOWN', index=1, number=1, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='URL_CRAWL_ERROR', index=2, number=2, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_VALUE', index=3, number=3, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=160, + serialized_end=252, +) +_sym_db.RegisterEnumDescriptor(_KEYWORDPLANIDEAERRORENUM_KEYWORDPLANIDEAERROR) + + +_KEYWORDPLANIDEAERRORENUM = _descriptor.Descriptor( + name='KeywordPlanIdeaErrorEnum', + full_name='google.ads.googleads.v4.errors.KeywordPlanIdeaErrorEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _KEYWORDPLANIDEAERRORENUM_KEYWORDPLANIDEAERROR, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=132, + serialized_end=252, +) + +_KEYWORDPLANIDEAERRORENUM_KEYWORDPLANIDEAERROR.containing_type = _KEYWORDPLANIDEAERRORENUM +DESCRIPTOR.message_types_by_name['KeywordPlanIdeaErrorEnum'] = _KEYWORDPLANIDEAERRORENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +KeywordPlanIdeaErrorEnum = _reflection.GeneratedProtocolMessageType('KeywordPlanIdeaErrorEnum', (_message.Message,), dict( + DESCRIPTOR = _KEYWORDPLANIDEAERRORENUM, + __module__ = 'google.ads.googleads_v4.proto.errors.keyword_plan_idea_error_pb2' + , + __doc__ = """Container for enum describing possible errors from + KeywordPlanIdeaService. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.errors.KeywordPlanIdeaErrorEnum) + )) +_sym_db.RegisterMessage(KeywordPlanIdeaErrorEnum) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/errors/resource_access_denied_error_pb2_grpc.py b/google/ads/google_ads/v4/proto/errors/keyword_plan_idea_error_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/errors/resource_access_denied_error_pb2_grpc.py rename to google/ads/google_ads/v4/proto/errors/keyword_plan_idea_error_pb2_grpc.py diff --git a/google/ads/google_ads/v1/proto/errors/label_error_pb2.py b/google/ads/google_ads/v4/proto/errors/label_error_pb2.py similarity index 79% rename from google/ads/google_ads/v1/proto/errors/label_error_pb2.py rename to google/ads/google_ads/v4/proto/errors/label_error_pb2.py index 360e30713..a49558ed8 100644 --- a/google/ads/google_ads/v1/proto/errors/label_error_pb2.py +++ b/google/ads/google_ads/v4/proto/errors/label_error_pb2.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/errors/label_error.proto +# source: google/ads/googleads_v4/proto/errors/label_error.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) @@ -17,11 +17,11 @@ DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/errors/label_error.proto', - package='google.ads.googleads.v1.errors', + name='google/ads/googleads_v4/proto/errors/label_error.proto', + package='google.ads.googleads.v4.errors', syntax='proto3', - serialized_options=_b('\n\"com.google.ads.googleads.v1.errorsB\017LabelErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V1.Errors\312\002\036Google\\Ads\\GoogleAds\\V1\\Errors\352\002\"Google::Ads::GoogleAds::V1::Errors'), - serialized_pb=_b('\n6google/ads/googleads_v1/proto/errors/label_error.proto\x12\x1egoogle.ads.googleads.v1.errors\x1a\x1cgoogle/api/annotations.proto\"\x96\x03\n\x0eLabelErrorEnum\"\x83\x03\n\nLabelError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x1f\n\x1b\x43\x41NNOT_APPLY_INACTIVE_LABEL\x10\x02\x12\x35\n1CANNOT_APPLY_LABEL_TO_DISABLED_AD_GROUP_CRITERION\x10\x03\x12\x35\n1CANNOT_APPLY_LABEL_TO_NEGATIVE_AD_GROUP_CRITERION\x10\x04\x12!\n\x1d\x45XCEEDED_LABEL_LIMIT_PER_TYPE\x10\x05\x12&\n\"INVALID_RESOURCE_FOR_MANAGER_LABEL\x10\x06\x12\x12\n\x0e\x44UPLICATE_NAME\x10\x07\x12\x16\n\x12INVALID_LABEL_NAME\x10\x08\x12 \n\x1c\x43\x41NNOT_ATTACH_LABEL_TO_DRAFT\x10\t\x12/\n+CANNOT_ATTACH_NON_MANAGER_LABEL_TO_CUSTOMER\x10\nB\xea\x01\n\"com.google.ads.googleads.v1.errorsB\x0fLabelErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V1.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V1\\Errors\xea\x02\"Google::Ads::GoogleAds::V1::Errorsb\x06proto3') + serialized_options=_b('\n\"com.google.ads.googleads.v4.errorsB\017LabelErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V4.Errors\312\002\036Google\\Ads\\GoogleAds\\V4\\Errors\352\002\"Google::Ads::GoogleAds::V4::Errors'), + serialized_pb=_b('\n6google/ads/googleads_v4/proto/errors/label_error.proto\x12\x1egoogle.ads.googleads.v4.errors\x1a\x1cgoogle/api/annotations.proto\"\x96\x03\n\x0eLabelErrorEnum\"\x83\x03\n\nLabelError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x1f\n\x1b\x43\x41NNOT_APPLY_INACTIVE_LABEL\x10\x02\x12\x35\n1CANNOT_APPLY_LABEL_TO_DISABLED_AD_GROUP_CRITERION\x10\x03\x12\x35\n1CANNOT_APPLY_LABEL_TO_NEGATIVE_AD_GROUP_CRITERION\x10\x04\x12!\n\x1d\x45XCEEDED_LABEL_LIMIT_PER_TYPE\x10\x05\x12&\n\"INVALID_RESOURCE_FOR_MANAGER_LABEL\x10\x06\x12\x12\n\x0e\x44UPLICATE_NAME\x10\x07\x12\x16\n\x12INVALID_LABEL_NAME\x10\x08\x12 \n\x1c\x43\x41NNOT_ATTACH_LABEL_TO_DRAFT\x10\t\x12/\n+CANNOT_ATTACH_NON_MANAGER_LABEL_TO_CUSTOMER\x10\nB\xea\x01\n\"com.google.ads.googleads.v4.errorsB\x0fLabelErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V4.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V4\\Errors\xea\x02\"Google::Ads::GoogleAds::V4::Errorsb\x06proto3') , dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) @@ -29,7 +29,7 @@ _LABELERRORENUM_LABELERROR = _descriptor.EnumDescriptor( name='LabelError', - full_name='google.ads.googleads.v1.errors.LabelErrorEnum.LabelError', + full_name='google.ads.googleads.v4.errors.LabelErrorEnum.LabelError', filename=None, file=DESCRIPTOR, values=[ @@ -88,7 +88,7 @@ _LABELERRORENUM = _descriptor.Descriptor( name='LabelErrorEnum', - full_name='google.ads.googleads.v1.errors.LabelErrorEnum', + full_name='google.ads.googleads.v4.errors.LabelErrorEnum', filename=None, file=DESCRIPTOR, containing_type=None, @@ -116,11 +116,11 @@ LabelErrorEnum = _reflection.GeneratedProtocolMessageType('LabelErrorEnum', (_message.Message,), dict( DESCRIPTOR = _LABELERRORENUM, - __module__ = 'google.ads.googleads_v1.proto.errors.label_error_pb2' + __module__ = 'google.ads.googleads_v4.proto.errors.label_error_pb2' , __doc__ = """Container for enum describing possible label errors. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.errors.LabelErrorEnum) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.errors.LabelErrorEnum) )) _sym_db.RegisterMessage(LabelErrorEnum) diff --git a/google/ads/google_ads/v1/proto/errors/resource_count_limit_exceeded_error_pb2_grpc.py b/google/ads/google_ads/v4/proto/errors/label_error_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/errors/resource_count_limit_exceeded_error_pb2_grpc.py rename to google/ads/google_ads/v4/proto/errors/label_error_pb2_grpc.py diff --git a/google/ads/google_ads/v4/proto/errors/language_code_error_pb2.py b/google/ads/google_ads/v4/proto/errors/language_code_error_pb2.py new file mode 100644 index 000000000..dda1cf890 --- /dev/null +++ b/google/ads/google_ads/v4/proto/errors/language_code_error_pb2.py @@ -0,0 +1,101 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/errors/language_code_error.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/errors/language_code_error.proto', + package='google.ads.googleads.v4.errors', + syntax='proto3', + serialized_options=_b('\n\"com.google.ads.googleads.v4.errorsB\026LanguageCodeErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V4.Errors\312\002\036Google\\Ads\\GoogleAds\\V4\\Errors\352\002\"Google::Ads::GoogleAds::V4::Errors'), + serialized_pb=_b('\n>google/ads/googleads_v4/proto/errors/language_code_error.proto\x12\x1egoogle.ads.googleads.v4.errors\x1a\x1cgoogle/api/annotations.proto\"\x82\x01\n\x15LanguageCodeErrorEnum\"i\n\x11LanguageCodeError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x1b\n\x17LANGUAGE_CODE_NOT_FOUND\x10\x02\x12\x19\n\x15INVALID_LANGUAGE_CODE\x10\x03\x42\xf1\x01\n\"com.google.ads.googleads.v4.errorsB\x16LanguageCodeErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V4.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V4\\Errors\xea\x02\"Google::Ads::GoogleAds::V4::Errorsb\x06proto3') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_LANGUAGECODEERRORENUM_LANGUAGECODEERROR = _descriptor.EnumDescriptor( + name='LanguageCodeError', + full_name='google.ads.googleads.v4.errors.LanguageCodeErrorEnum.LanguageCodeError', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='UNSPECIFIED', index=0, number=0, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='UNKNOWN', index=1, number=1, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='LANGUAGE_CODE_NOT_FOUND', index=2, number=2, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_LANGUAGE_CODE', index=3, number=3, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=154, + serialized_end=259, +) +_sym_db.RegisterEnumDescriptor(_LANGUAGECODEERRORENUM_LANGUAGECODEERROR) + + +_LANGUAGECODEERRORENUM = _descriptor.Descriptor( + name='LanguageCodeErrorEnum', + full_name='google.ads.googleads.v4.errors.LanguageCodeErrorEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _LANGUAGECODEERRORENUM_LANGUAGECODEERROR, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=129, + serialized_end=259, +) + +_LANGUAGECODEERRORENUM_LANGUAGECODEERROR.containing_type = _LANGUAGECODEERRORENUM +DESCRIPTOR.message_types_by_name['LanguageCodeErrorEnum'] = _LANGUAGECODEERRORENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +LanguageCodeErrorEnum = _reflection.GeneratedProtocolMessageType('LanguageCodeErrorEnum', (_message.Message,), dict( + DESCRIPTOR = _LANGUAGECODEERRORENUM, + __module__ = 'google.ads.googleads_v4.proto.errors.language_code_error_pb2' + , + __doc__ = """Container for enum describing language code errors. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.errors.LanguageCodeErrorEnum) + )) +_sym_db.RegisterMessage(LanguageCodeErrorEnum) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/errors/setting_error_pb2_grpc.py b/google/ads/google_ads/v4/proto/errors/language_code_error_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/errors/setting_error_pb2_grpc.py rename to google/ads/google_ads/v4/proto/errors/language_code_error_pb2_grpc.py diff --git a/google/ads/google_ads/v4/proto/errors/list_operation_error_pb2.py b/google/ads/google_ads/v4/proto/errors/list_operation_error_pb2.py new file mode 100644 index 000000000..7d0341166 --- /dev/null +++ b/google/ads/google_ads/v4/proto/errors/list_operation_error_pb2.py @@ -0,0 +1,101 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/errors/list_operation_error.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/errors/list_operation_error.proto', + package='google.ads.googleads.v4.errors', + syntax='proto3', + serialized_options=_b('\n\"com.google.ads.googleads.v4.errorsB\027ListOperationErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V4.Errors\312\002\036Google\\Ads\\GoogleAds\\V4\\Errors\352\002\"Google::Ads::GoogleAds::V4::Errors'), + serialized_pb=_b('\n?google/ads/googleads_v4/proto/errors/list_operation_error.proto\x12\x1egoogle.ads.googleads.v4.errors\x1a\x1cgoogle/api/annotations.proto\"~\n\x16ListOperationErrorEnum\"d\n\x12ListOperationError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x1a\n\x16REQUIRED_FIELD_MISSING\x10\x07\x12\x14\n\x10\x44UPLICATE_VALUES\x10\x08\x42\xf2\x01\n\"com.google.ads.googleads.v4.errorsB\x17ListOperationErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V4.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V4\\Errors\xea\x02\"Google::Ads::GoogleAds::V4::Errorsb\x06proto3') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_LISTOPERATIONERRORENUM_LISTOPERATIONERROR = _descriptor.EnumDescriptor( + name='ListOperationError', + full_name='google.ads.googleads.v4.errors.ListOperationErrorEnum.ListOperationError', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='UNSPECIFIED', index=0, number=0, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='UNKNOWN', index=1, number=1, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='REQUIRED_FIELD_MISSING', index=2, number=7, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='DUPLICATE_VALUES', index=3, number=8, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=155, + serialized_end=255, +) +_sym_db.RegisterEnumDescriptor(_LISTOPERATIONERRORENUM_LISTOPERATIONERROR) + + +_LISTOPERATIONERRORENUM = _descriptor.Descriptor( + name='ListOperationErrorEnum', + full_name='google.ads.googleads.v4.errors.ListOperationErrorEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _LISTOPERATIONERRORENUM_LISTOPERATIONERROR, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=129, + serialized_end=255, +) + +_LISTOPERATIONERRORENUM_LISTOPERATIONERROR.containing_type = _LISTOPERATIONERRORENUM +DESCRIPTOR.message_types_by_name['ListOperationErrorEnum'] = _LISTOPERATIONERRORENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +ListOperationErrorEnum = _reflection.GeneratedProtocolMessageType('ListOperationErrorEnum', (_message.Message,), dict( + DESCRIPTOR = _LISTOPERATIONERRORENUM, + __module__ = 'google.ads.googleads_v4.proto.errors.list_operation_error_pb2' + , + __doc__ = """Container for enum describing possible list operation errors. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.errors.ListOperationErrorEnum) + )) +_sym_db.RegisterMessage(ListOperationErrorEnum) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/errors/shared_criterion_error_pb2_grpc.py b/google/ads/google_ads/v4/proto/errors/list_operation_error_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/errors/shared_criterion_error_pb2_grpc.py rename to google/ads/google_ads/v4/proto/errors/list_operation_error_pb2_grpc.py diff --git a/google/ads/google_ads/v4/proto/errors/manager_link_error_pb2.py b/google/ads/google_ads/v4/proto/errors/manager_link_error_pb2.py new file mode 100644 index 000000000..0b0f5ff27 --- /dev/null +++ b/google/ads/google_ads/v4/proto/errors/manager_link_error_pb2.py @@ -0,0 +1,161 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/errors/manager_link_error.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/errors/manager_link_error.proto', + package='google.ads.googleads.v4.errors', + syntax='proto3', + serialized_options=_b('\n\"com.google.ads.googleads.v4.errorsB\025ManagerLinkErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V4.Errors\312\002\036Google\\Ads\\GoogleAds\\V4\\Errors\352\002\"Google::Ads::GoogleAds::V4::Errors'), + serialized_pb=_b('\n=google/ads/googleads_v4/proto/errors/manager_link_error.proto\x12\x1egoogle.ads.googleads.v4.errors\x1a\x1cgoogle/api/annotations.proto\"\xc5\x04\n\x14ManagerLinkErrorEnum\"\xac\x04\n\x10ManagerLinkError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\'\n#ACCOUNTS_NOT_COMPATIBLE_FOR_LINKING\x10\x02\x12\x15\n\x11TOO_MANY_MANAGERS\x10\x03\x12\x14\n\x10TOO_MANY_INVITES\x10\x04\x12#\n\x1f\x41LREADY_INVITED_BY_THIS_MANAGER\x10\x05\x12#\n\x1f\x41LREADY_MANAGED_BY_THIS_MANAGER\x10\x06\x12 \n\x1c\x41LREADY_MANAGED_IN_HIERARCHY\x10\x07\x12\x19\n\x15\x44UPLICATE_CHILD_FOUND\x10\x08\x12\x1c\n\x18\x43LIENT_HAS_NO_ADMIN_USER\x10\t\x12\x16\n\x12MAX_DEPTH_EXCEEDED\x10\n\x12\x15\n\x11\x43YCLE_NOT_ALLOWED\x10\x0b\x12\x15\n\x11TOO_MANY_ACCOUNTS\x10\x0c\x12 \n\x1cTOO_MANY_ACCOUNTS_AT_MANAGER\x10\r\x12%\n!NON_OWNER_USER_CANNOT_MODIFY_LINK\x10\x0e\x12(\n$SUSPENDED_ACCOUNT_CANNOT_ADD_CLIENTS\x10\x0f\x12\x17\n\x13\x43LIENT_OUTSIDE_TREE\x10\x10\x12\x19\n\x15INVALID_STATUS_CHANGE\x10\x11\x12\x12\n\x0eINVALID_CHANGE\x10\x12\x42\xf0\x01\n\"com.google.ads.googleads.v4.errorsB\x15ManagerLinkErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V4.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V4\\Errors\xea\x02\"Google::Ads::GoogleAds::V4::Errorsb\x06proto3') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_MANAGERLINKERRORENUM_MANAGERLINKERROR = _descriptor.EnumDescriptor( + name='ManagerLinkError', + full_name='google.ads.googleads.v4.errors.ManagerLinkErrorEnum.ManagerLinkError', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='UNSPECIFIED', index=0, number=0, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='UNKNOWN', index=1, number=1, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='ACCOUNTS_NOT_COMPATIBLE_FOR_LINKING', index=2, number=2, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='TOO_MANY_MANAGERS', index=3, number=3, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='TOO_MANY_INVITES', index=4, number=4, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='ALREADY_INVITED_BY_THIS_MANAGER', index=5, number=5, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='ALREADY_MANAGED_BY_THIS_MANAGER', index=6, number=6, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='ALREADY_MANAGED_IN_HIERARCHY', index=7, number=7, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='DUPLICATE_CHILD_FOUND', index=8, number=8, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CLIENT_HAS_NO_ADMIN_USER', index=9, number=9, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='MAX_DEPTH_EXCEEDED', index=10, number=10, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CYCLE_NOT_ALLOWED', index=11, number=11, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='TOO_MANY_ACCOUNTS', index=12, number=12, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='TOO_MANY_ACCOUNTS_AT_MANAGER', index=13, number=13, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='NON_OWNER_USER_CANNOT_MODIFY_LINK', index=14, number=14, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='SUSPENDED_ACCOUNT_CANNOT_ADD_CLIENTS', index=15, number=15, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CLIENT_OUTSIDE_TREE', index=16, number=16, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_STATUS_CHANGE', index=17, number=17, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_CHANGE', index=18, number=18, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=153, + serialized_end=709, +) +_sym_db.RegisterEnumDescriptor(_MANAGERLINKERRORENUM_MANAGERLINKERROR) + + +_MANAGERLINKERRORENUM = _descriptor.Descriptor( + name='ManagerLinkErrorEnum', + full_name='google.ads.googleads.v4.errors.ManagerLinkErrorEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _MANAGERLINKERRORENUM_MANAGERLINKERROR, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=128, + serialized_end=709, +) + +_MANAGERLINKERRORENUM_MANAGERLINKERROR.containing_type = _MANAGERLINKERRORENUM +DESCRIPTOR.message_types_by_name['ManagerLinkErrorEnum'] = _MANAGERLINKERRORENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +ManagerLinkErrorEnum = _reflection.GeneratedProtocolMessageType('ManagerLinkErrorEnum', (_message.Message,), dict( + DESCRIPTOR = _MANAGERLINKERRORENUM, + __module__ = 'google.ads.googleads_v4.proto.errors.manager_link_error_pb2' + , + __doc__ = """Container for enum describing possible ManagerLink errors. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.errors.ManagerLinkErrorEnum) + )) +_sym_db.RegisterMessage(ManagerLinkErrorEnum) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/errors/shared_set_error_pb2_grpc.py b/google/ads/google_ads/v4/proto/errors/manager_link_error_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/errors/shared_set_error_pb2_grpc.py rename to google/ads/google_ads/v4/proto/errors/manager_link_error_pb2_grpc.py diff --git a/google/ads/google_ads/v1/proto/errors/media_bundle_error_pb2.py b/google/ads/google_ads/v4/proto/errors/media_bundle_error_pb2.py similarity index 86% rename from google/ads/google_ads/v1/proto/errors/media_bundle_error_pb2.py rename to google/ads/google_ads/v4/proto/errors/media_bundle_error_pb2.py index 9fe3c88d7..ec394b1c6 100644 --- a/google/ads/google_ads/v1/proto/errors/media_bundle_error_pb2.py +++ b/google/ads/google_ads/v4/proto/errors/media_bundle_error_pb2.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/errors/media_bundle_error.proto +# source: google/ads/googleads_v4/proto/errors/media_bundle_error.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) @@ -17,11 +17,11 @@ DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/errors/media_bundle_error.proto', - package='google.ads.googleads.v1.errors', + name='google/ads/googleads_v4/proto/errors/media_bundle_error.proto', + package='google.ads.googleads.v4.errors', syntax='proto3', - serialized_options=_b('\n\"com.google.ads.googleads.v1.errorsB\025MediaBundleErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V1.Errors\312\002\036Google\\Ads\\GoogleAds\\V1\\Errors\352\002\"Google::Ads::GoogleAds::V1::Errors'), - serialized_pb=_b('\n=google/ads/googleads_v1/proto/errors/media_bundle_error.proto\x12\x1egoogle.ads.googleads.v1.errors\x1a\x1cgoogle/api/annotations.proto\"\xb8\x05\n\x14MediaBundleErrorEnum\"\x9f\x05\n\x10MediaBundleError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0f\n\x0b\x42\x41\x44_REQUEST\x10\x03\x12\"\n\x1e\x44OUBLECLICK_BUNDLE_NOT_ALLOWED\x10\x04\x12\x1c\n\x18\x45XTERNAL_URL_NOT_ALLOWED\x10\x05\x12\x12\n\x0e\x46ILE_TOO_LARGE\x10\x06\x12.\n*GOOGLE_WEB_DESIGNER_ZIP_FILE_NOT_PUBLISHED\x10\x07\x12\x11\n\rINVALID_INPUT\x10\x08\x12\x18\n\x14INVALID_MEDIA_BUNDLE\x10\t\x12\x1e\n\x1aINVALID_MEDIA_BUNDLE_ENTRY\x10\n\x12\x15\n\x11INVALID_MIME_TYPE\x10\x0b\x12\x10\n\x0cINVALID_PATH\x10\x0c\x12\x19\n\x15INVALID_URL_REFERENCE\x10\r\x12\x18\n\x14MEDIA_DATA_TOO_LARGE\x10\x0e\x12&\n\"MISSING_PRIMARY_MEDIA_BUNDLE_ENTRY\x10\x0f\x12\x10\n\x0cSERVER_ERROR\x10\x10\x12\x11\n\rSTORAGE_ERROR\x10\x11\x12\x1d\n\x19SWIFFY_BUNDLE_NOT_ALLOWED\x10\x12\x12\x12\n\x0eTOO_MANY_FILES\x10\x13\x12\x13\n\x0fUNEXPECTED_SIZE\x10\x14\x12/\n+UNSUPPORTED_GOOGLE_WEB_DESIGNER_ENVIRONMENT\x10\x15\x12\x1d\n\x19UNSUPPORTED_HTML5_FEATURE\x10\x16\x12)\n%URL_IN_MEDIA_BUNDLE_NOT_SSL_COMPLIANT\x10\x17\x12\x1b\n\x17\x43USTOM_EXIT_NOT_ALLOWED\x10\x18\x42\xf0\x01\n\"com.google.ads.googleads.v1.errorsB\x15MediaBundleErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V1.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V1\\Errors\xea\x02\"Google::Ads::GoogleAds::V1::Errorsb\x06proto3') + serialized_options=_b('\n\"com.google.ads.googleads.v4.errorsB\025MediaBundleErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V4.Errors\312\002\036Google\\Ads\\GoogleAds\\V4\\Errors\352\002\"Google::Ads::GoogleAds::V4::Errors'), + serialized_pb=_b('\n=google/ads/googleads_v4/proto/errors/media_bundle_error.proto\x12\x1egoogle.ads.googleads.v4.errors\x1a\x1cgoogle/api/annotations.proto\"\xb8\x05\n\x14MediaBundleErrorEnum\"\x9f\x05\n\x10MediaBundleError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0f\n\x0b\x42\x41\x44_REQUEST\x10\x03\x12\"\n\x1e\x44OUBLECLICK_BUNDLE_NOT_ALLOWED\x10\x04\x12\x1c\n\x18\x45XTERNAL_URL_NOT_ALLOWED\x10\x05\x12\x12\n\x0e\x46ILE_TOO_LARGE\x10\x06\x12.\n*GOOGLE_WEB_DESIGNER_ZIP_FILE_NOT_PUBLISHED\x10\x07\x12\x11\n\rINVALID_INPUT\x10\x08\x12\x18\n\x14INVALID_MEDIA_BUNDLE\x10\t\x12\x1e\n\x1aINVALID_MEDIA_BUNDLE_ENTRY\x10\n\x12\x15\n\x11INVALID_MIME_TYPE\x10\x0b\x12\x10\n\x0cINVALID_PATH\x10\x0c\x12\x19\n\x15INVALID_URL_REFERENCE\x10\r\x12\x18\n\x14MEDIA_DATA_TOO_LARGE\x10\x0e\x12&\n\"MISSING_PRIMARY_MEDIA_BUNDLE_ENTRY\x10\x0f\x12\x10\n\x0cSERVER_ERROR\x10\x10\x12\x11\n\rSTORAGE_ERROR\x10\x11\x12\x1d\n\x19SWIFFY_BUNDLE_NOT_ALLOWED\x10\x12\x12\x12\n\x0eTOO_MANY_FILES\x10\x13\x12\x13\n\x0fUNEXPECTED_SIZE\x10\x14\x12/\n+UNSUPPORTED_GOOGLE_WEB_DESIGNER_ENVIRONMENT\x10\x15\x12\x1d\n\x19UNSUPPORTED_HTML5_FEATURE\x10\x16\x12)\n%URL_IN_MEDIA_BUNDLE_NOT_SSL_COMPLIANT\x10\x17\x12\x1b\n\x17\x43USTOM_EXIT_NOT_ALLOWED\x10\x18\x42\xf0\x01\n\"com.google.ads.googleads.v4.errorsB\x15MediaBundleErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V4.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V4\\Errors\xea\x02\"Google::Ads::GoogleAds::V4::Errorsb\x06proto3') , dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) @@ -29,7 +29,7 @@ _MEDIABUNDLEERRORENUM_MEDIABUNDLEERROR = _descriptor.EnumDescriptor( name='MediaBundleError', - full_name='google.ads.googleads.v1.errors.MediaBundleErrorEnum.MediaBundleError', + full_name='google.ads.googleads.v4.errors.MediaBundleErrorEnum.MediaBundleError', filename=None, file=DESCRIPTOR, values=[ @@ -140,7 +140,7 @@ _MEDIABUNDLEERRORENUM = _descriptor.Descriptor( name='MediaBundleErrorEnum', - full_name='google.ads.googleads.v1.errors.MediaBundleErrorEnum', + full_name='google.ads.googleads.v4.errors.MediaBundleErrorEnum', filename=None, file=DESCRIPTOR, containing_type=None, @@ -168,11 +168,11 @@ MediaBundleErrorEnum = _reflection.GeneratedProtocolMessageType('MediaBundleErrorEnum', (_message.Message,), dict( DESCRIPTOR = _MEDIABUNDLEERRORENUM, - __module__ = 'google.ads.googleads_v1.proto.errors.media_bundle_error_pb2' + __module__ = 'google.ads.googleads_v4.proto.errors.media_bundle_error_pb2' , __doc__ = """Container for enum describing possible media bundle errors. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.errors.MediaBundleErrorEnum) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.errors.MediaBundleErrorEnum) )) _sym_db.RegisterMessage(MediaBundleErrorEnum) diff --git a/google/ads/google_ads/v1/proto/errors/size_limit_error_pb2_grpc.py b/google/ads/google_ads/v4/proto/errors/media_bundle_error_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/errors/size_limit_error_pb2_grpc.py rename to google/ads/google_ads/v4/proto/errors/media_bundle_error_pb2_grpc.py diff --git a/google/ads/google_ads/v1/proto/errors/media_file_error_pb2.py b/google/ads/google_ads/v4/proto/errors/media_file_error_pb2.py similarity index 86% rename from google/ads/google_ads/v1/proto/errors/media_file_error_pb2.py rename to google/ads/google_ads/v4/proto/errors/media_file_error_pb2.py index 66f69c8e7..cdc557e93 100644 --- a/google/ads/google_ads/v1/proto/errors/media_file_error_pb2.py +++ b/google/ads/google_ads/v4/proto/errors/media_file_error_pb2.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/errors/media_file_error.proto +# source: google/ads/googleads_v4/proto/errors/media_file_error.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) @@ -17,11 +17,11 @@ DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/errors/media_file_error.proto', - package='google.ads.googleads.v1.errors', + name='google/ads/googleads_v4/proto/errors/media_file_error.proto', + package='google.ads.googleads.v4.errors', syntax='proto3', - serialized_options=_b('\n\"com.google.ads.googleads.v1.errorsB\023MediaFileErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V1.Errors\312\002\036Google\\Ads\\GoogleAds\\V1\\Errors\352\002\"Google::Ads::GoogleAds::V1::Errors'), - serialized_pb=_b('\n;google/ads/googleads_v1/proto/errors/media_file_error.proto\x12\x1egoogle.ads.googleads.v1.errors\x1a\x1cgoogle/api/annotations.proto\"\x97\x06\n\x12MediaFileErrorEnum\"\x80\x06\n\x0eMediaFileError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x1f\n\x1b\x43\x41NNOT_CREATE_STANDARD_ICON\x10\x02\x12\x30\n,CANNOT_SELECT_STANDARD_ICON_WITH_OTHER_TYPES\x10\x03\x12)\n%CANNOT_SPECIFY_MEDIA_FILE_ID_AND_DATA\x10\x04\x12\x13\n\x0f\x44UPLICATE_MEDIA\x10\x05\x12\x0f\n\x0b\x45MPTY_FIELD\x10\x06\x12\'\n#RESOURCE_REFERENCED_IN_MULTIPLE_OPS\x10\x07\x12*\n&FIELD_NOT_SUPPORTED_FOR_MEDIA_SUB_TYPE\x10\x08\x12\x19\n\x15INVALID_MEDIA_FILE_ID\x10\t\x12\x1a\n\x16INVALID_MEDIA_SUB_TYPE\x10\n\x12\x1b\n\x17INVALID_MEDIA_FILE_TYPE\x10\x0b\x12\x15\n\x11INVALID_MIME_TYPE\x10\x0c\x12\x18\n\x14INVALID_REFERENCE_ID\x10\r\x12\x17\n\x13INVALID_YOU_TUBE_ID\x10\x0e\x12!\n\x1dMEDIA_FILE_FAILED_TRANSCODING\x10\x0f\x12\x18\n\x14MEDIA_NOT_TRANSCODED\x10\x10\x12-\n)MEDIA_TYPE_DOES_NOT_MATCH_MEDIA_FILE_TYPE\x10\x11\x12\x17\n\x13NO_FIELDS_SPECIFIED\x10\x12\x12\"\n\x1eNULL_REFERENCE_ID_AND_MEDIA_ID\x10\x13\x12\x0c\n\x08TOO_LONG\x10\x14\x12\x14\n\x10UNSUPPORTED_TYPE\x10\x15\x12 \n\x1cYOU_TUBE_SERVICE_UNAVAILABLE\x10\x16\x12,\n(YOU_TUBE_VIDEO_HAS_NON_POSITIVE_DURATION\x10\x17\x12\x1c\n\x18YOU_TUBE_VIDEO_NOT_FOUND\x10\x18\x42\xee\x01\n\"com.google.ads.googleads.v1.errorsB\x13MediaFileErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V1.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V1\\Errors\xea\x02\"Google::Ads::GoogleAds::V1::Errorsb\x06proto3') + serialized_options=_b('\n\"com.google.ads.googleads.v4.errorsB\023MediaFileErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V4.Errors\312\002\036Google\\Ads\\GoogleAds\\V4\\Errors\352\002\"Google::Ads::GoogleAds::V4::Errors'), + serialized_pb=_b('\n;google/ads/googleads_v4/proto/errors/media_file_error.proto\x12\x1egoogle.ads.googleads.v4.errors\x1a\x1cgoogle/api/annotations.proto\"\x97\x06\n\x12MediaFileErrorEnum\"\x80\x06\n\x0eMediaFileError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x1f\n\x1b\x43\x41NNOT_CREATE_STANDARD_ICON\x10\x02\x12\x30\n,CANNOT_SELECT_STANDARD_ICON_WITH_OTHER_TYPES\x10\x03\x12)\n%CANNOT_SPECIFY_MEDIA_FILE_ID_AND_DATA\x10\x04\x12\x13\n\x0f\x44UPLICATE_MEDIA\x10\x05\x12\x0f\n\x0b\x45MPTY_FIELD\x10\x06\x12\'\n#RESOURCE_REFERENCED_IN_MULTIPLE_OPS\x10\x07\x12*\n&FIELD_NOT_SUPPORTED_FOR_MEDIA_SUB_TYPE\x10\x08\x12\x19\n\x15INVALID_MEDIA_FILE_ID\x10\t\x12\x1a\n\x16INVALID_MEDIA_SUB_TYPE\x10\n\x12\x1b\n\x17INVALID_MEDIA_FILE_TYPE\x10\x0b\x12\x15\n\x11INVALID_MIME_TYPE\x10\x0c\x12\x18\n\x14INVALID_REFERENCE_ID\x10\r\x12\x17\n\x13INVALID_YOU_TUBE_ID\x10\x0e\x12!\n\x1dMEDIA_FILE_FAILED_TRANSCODING\x10\x0f\x12\x18\n\x14MEDIA_NOT_TRANSCODED\x10\x10\x12-\n)MEDIA_TYPE_DOES_NOT_MATCH_MEDIA_FILE_TYPE\x10\x11\x12\x17\n\x13NO_FIELDS_SPECIFIED\x10\x12\x12\"\n\x1eNULL_REFERENCE_ID_AND_MEDIA_ID\x10\x13\x12\x0c\n\x08TOO_LONG\x10\x14\x12\x14\n\x10UNSUPPORTED_TYPE\x10\x15\x12 \n\x1cYOU_TUBE_SERVICE_UNAVAILABLE\x10\x16\x12,\n(YOU_TUBE_VIDEO_HAS_NON_POSITIVE_DURATION\x10\x17\x12\x1c\n\x18YOU_TUBE_VIDEO_NOT_FOUND\x10\x18\x42\xee\x01\n\"com.google.ads.googleads.v4.errorsB\x13MediaFileErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V4.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V4\\Errors\xea\x02\"Google::Ads::GoogleAds::V4::Errorsb\x06proto3') , dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) @@ -29,7 +29,7 @@ _MEDIAFILEERRORENUM_MEDIAFILEERROR = _descriptor.EnumDescriptor( name='MediaFileError', - full_name='google.ads.googleads.v1.errors.MediaFileErrorEnum.MediaFileError', + full_name='google.ads.googleads.v4.errors.MediaFileErrorEnum.MediaFileError', filename=None, file=DESCRIPTOR, values=[ @@ -144,7 +144,7 @@ _MEDIAFILEERRORENUM = _descriptor.Descriptor( name='MediaFileErrorEnum', - full_name='google.ads.googleads.v1.errors.MediaFileErrorEnum', + full_name='google.ads.googleads.v4.errors.MediaFileErrorEnum', filename=None, file=DESCRIPTOR, containing_type=None, @@ -172,11 +172,11 @@ MediaFileErrorEnum = _reflection.GeneratedProtocolMessageType('MediaFileErrorEnum', (_message.Message,), dict( DESCRIPTOR = _MEDIAFILEERRORENUM, - __module__ = 'google.ads.googleads_v1.proto.errors.media_file_error_pb2' + __module__ = 'google.ads.googleads_v4.proto.errors.media_file_error_pb2' , __doc__ = """Container for enum describing possible media file errors. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.errors.MediaFileErrorEnum) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.errors.MediaFileErrorEnum) )) _sym_db.RegisterMessage(MediaFileErrorEnum) diff --git a/google/ads/google_ads/v1/proto/errors/string_format_error_pb2_grpc.py b/google/ads/google_ads/v4/proto/errors/media_file_error_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/errors/string_format_error_pb2_grpc.py rename to google/ads/google_ads/v4/proto/errors/media_file_error_pb2_grpc.py diff --git a/google/ads/google_ads/v4/proto/errors/media_upload_error_pb2.py b/google/ads/google_ads/v4/proto/errors/media_upload_error_pb2.py new file mode 100644 index 000000000..6c66104d9 --- /dev/null +++ b/google/ads/google_ads/v4/proto/errors/media_upload_error_pb2.py @@ -0,0 +1,121 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/errors/media_upload_error.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/errors/media_upload_error.proto', + package='google.ads.googleads.v4.errors', + syntax='proto3', + serialized_options=_b('\n\"com.google.ads.googleads.v4.errorsB\025MediaUploadErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V4.Errors\312\002\036Google\\Ads\\GoogleAds\\V4\\Errors\352\002\"Google::Ads::GoogleAds::V4::Errors'), + serialized_pb=_b('\n=google/ads/googleads_v4/proto/errors/media_upload_error.proto\x12\x1egoogle.ads.googleads.v4.errors\x1a\x1cgoogle/api/annotations.proto\"\x8b\x02\n\x14MediaUploadErrorEnum\"\xf2\x01\n\x10MediaUploadError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x10\n\x0c\x46ILE_TOO_BIG\x10\x02\x12\x15\n\x11UNPARSEABLE_IMAGE\x10\x03\x12\x1e\n\x1a\x41NIMATED_IMAGE_NOT_ALLOWED\x10\x04\x12\x16\n\x12\x46ORMAT_NOT_ALLOWED\x10\x05\x12\x1c\n\x18\x45XTERNAL_URL_NOT_ALLOWED\x10\x06\x12\x19\n\x15INVALID_URL_REFERENCE\x10\x07\x12&\n\"MISSING_PRIMARY_MEDIA_BUNDLE_ENTRY\x10\x08\x42\xf0\x01\n\"com.google.ads.googleads.v4.errorsB\x15MediaUploadErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V4.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V4\\Errors\xea\x02\"Google::Ads::GoogleAds::V4::Errorsb\x06proto3') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_MEDIAUPLOADERRORENUM_MEDIAUPLOADERROR = _descriptor.EnumDescriptor( + name='MediaUploadError', + full_name='google.ads.googleads.v4.errors.MediaUploadErrorEnum.MediaUploadError', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='UNSPECIFIED', index=0, number=0, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='UNKNOWN', index=1, number=1, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='FILE_TOO_BIG', index=2, number=2, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='UNPARSEABLE_IMAGE', index=3, number=3, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='ANIMATED_IMAGE_NOT_ALLOWED', index=4, number=4, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='FORMAT_NOT_ALLOWED', index=5, number=5, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='EXTERNAL_URL_NOT_ALLOWED', index=6, number=6, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_URL_REFERENCE', index=7, number=7, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='MISSING_PRIMARY_MEDIA_BUNDLE_ENTRY', index=8, number=8, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=153, + serialized_end=395, +) +_sym_db.RegisterEnumDescriptor(_MEDIAUPLOADERRORENUM_MEDIAUPLOADERROR) + + +_MEDIAUPLOADERRORENUM = _descriptor.Descriptor( + name='MediaUploadErrorEnum', + full_name='google.ads.googleads.v4.errors.MediaUploadErrorEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _MEDIAUPLOADERRORENUM_MEDIAUPLOADERROR, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=128, + serialized_end=395, +) + +_MEDIAUPLOADERRORENUM_MEDIAUPLOADERROR.containing_type = _MEDIAUPLOADERRORENUM +DESCRIPTOR.message_types_by_name['MediaUploadErrorEnum'] = _MEDIAUPLOADERRORENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +MediaUploadErrorEnum = _reflection.GeneratedProtocolMessageType('MediaUploadErrorEnum', (_message.Message,), dict( + DESCRIPTOR = _MEDIAUPLOADERRORENUM, + __module__ = 'google.ads.googleads_v4.proto.errors.media_upload_error_pb2' + , + __doc__ = """Container for enum describing possible media uploading errors. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.errors.MediaUploadErrorEnum) + )) +_sym_db.RegisterMessage(MediaUploadErrorEnum) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/errors/string_length_error_pb2_grpc.py b/google/ads/google_ads/v4/proto/errors/media_upload_error_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/errors/string_length_error_pb2_grpc.py rename to google/ads/google_ads/v4/proto/errors/media_upload_error_pb2_grpc.py diff --git a/google/ads/google_ads/v1/proto/errors/multiplier_error_pb2.py b/google/ads/google_ads/v4/proto/errors/multiplier_error_pb2.py similarity index 83% rename from google/ads/google_ads/v1/proto/errors/multiplier_error_pb2.py rename to google/ads/google_ads/v4/proto/errors/multiplier_error_pb2.py index 8984968fc..d08e348c1 100644 --- a/google/ads/google_ads/v1/proto/errors/multiplier_error_pb2.py +++ b/google/ads/google_ads/v4/proto/errors/multiplier_error_pb2.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/errors/multiplier_error.proto +# source: google/ads/googleads_v4/proto/errors/multiplier_error.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) @@ -17,11 +17,11 @@ DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/errors/multiplier_error.proto', - package='google.ads.googleads.v1.errors', + name='google/ads/googleads_v4/proto/errors/multiplier_error.proto', + package='google.ads.googleads.v4.errors', syntax='proto3', - serialized_options=_b('\n\"com.google.ads.googleads.v1.errorsB\024MultiplierErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V1.Errors\312\002\036Google\\Ads\\GoogleAds\\V1\\Errors\352\002\"Google::Ads::GoogleAds::V1::Errors'), - serialized_pb=_b('\n;google/ads/googleads_v1/proto/errors/multiplier_error.proto\x12\x1egoogle.ads.googleads.v1.errors\x1a\x1cgoogle/api/annotations.proto\"\xcf\x04\n\x13MultiplierErrorEnum\"\xb7\x04\n\x0fMultiplierError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x17\n\x13MULTIPLIER_TOO_HIGH\x10\x02\x12\x16\n\x12MULTIPLIER_TOO_LOW\x10\x03\x12\x1e\n\x1aTOO_MANY_FRACTIONAL_DIGITS\x10\x04\x12/\n+MULTIPLIER_NOT_ALLOWED_FOR_BIDDING_STRATEGY\x10\x05\x12\x33\n/MULTIPLIER_NOT_ALLOWED_WHEN_BASE_BID_IS_MISSING\x10\x06\x12\x1b\n\x17NO_MULTIPLIER_SPECIFIED\x10\x07\x12\x30\n,MULTIPLIER_CAUSES_BID_TO_EXCEED_DAILY_BUDGET\x10\x08\x12\x32\n.MULTIPLIER_CAUSES_BID_TO_EXCEED_MONTHLY_BUDGET\x10\t\x12\x31\n-MULTIPLIER_CAUSES_BID_TO_EXCEED_CUSTOM_BUDGET\x10\n\x12\x33\n/MULTIPLIER_CAUSES_BID_TO_EXCEED_MAX_ALLOWED_BID\x10\x0b\x12\x31\n-BID_LESS_THAN_MIN_ALLOWED_BID_WITH_MULTIPLIER\x10\x0c\x12\x31\n-MULTIPLIER_AND_BIDDING_STRATEGY_TYPE_MISMATCH\x10\rB\xef\x01\n\"com.google.ads.googleads.v1.errorsB\x14MultiplierErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V1.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V1\\Errors\xea\x02\"Google::Ads::GoogleAds::V1::Errorsb\x06proto3') + serialized_options=_b('\n\"com.google.ads.googleads.v4.errorsB\024MultiplierErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V4.Errors\312\002\036Google\\Ads\\GoogleAds\\V4\\Errors\352\002\"Google::Ads::GoogleAds::V4::Errors'), + serialized_pb=_b('\n;google/ads/googleads_v4/proto/errors/multiplier_error.proto\x12\x1egoogle.ads.googleads.v4.errors\x1a\x1cgoogle/api/annotations.proto\"\xcf\x04\n\x13MultiplierErrorEnum\"\xb7\x04\n\x0fMultiplierError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x17\n\x13MULTIPLIER_TOO_HIGH\x10\x02\x12\x16\n\x12MULTIPLIER_TOO_LOW\x10\x03\x12\x1e\n\x1aTOO_MANY_FRACTIONAL_DIGITS\x10\x04\x12/\n+MULTIPLIER_NOT_ALLOWED_FOR_BIDDING_STRATEGY\x10\x05\x12\x33\n/MULTIPLIER_NOT_ALLOWED_WHEN_BASE_BID_IS_MISSING\x10\x06\x12\x1b\n\x17NO_MULTIPLIER_SPECIFIED\x10\x07\x12\x30\n,MULTIPLIER_CAUSES_BID_TO_EXCEED_DAILY_BUDGET\x10\x08\x12\x32\n.MULTIPLIER_CAUSES_BID_TO_EXCEED_MONTHLY_BUDGET\x10\t\x12\x31\n-MULTIPLIER_CAUSES_BID_TO_EXCEED_CUSTOM_BUDGET\x10\n\x12\x33\n/MULTIPLIER_CAUSES_BID_TO_EXCEED_MAX_ALLOWED_BID\x10\x0b\x12\x31\n-BID_LESS_THAN_MIN_ALLOWED_BID_WITH_MULTIPLIER\x10\x0c\x12\x31\n-MULTIPLIER_AND_BIDDING_STRATEGY_TYPE_MISMATCH\x10\rB\xef\x01\n\"com.google.ads.googleads.v4.errorsB\x14MultiplierErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V4.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V4\\Errors\xea\x02\"Google::Ads::GoogleAds::V4::Errorsb\x06proto3') , dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) @@ -29,7 +29,7 @@ _MULTIPLIERERRORENUM_MULTIPLIERERROR = _descriptor.EnumDescriptor( name='MultiplierError', - full_name='google.ads.googleads.v1.errors.MultiplierErrorEnum.MultiplierError', + full_name='google.ads.googleads.v4.errors.MultiplierErrorEnum.MultiplierError', filename=None, file=DESCRIPTOR, values=[ @@ -100,7 +100,7 @@ _MULTIPLIERERRORENUM = _descriptor.Descriptor( name='MultiplierErrorEnum', - full_name='google.ads.googleads.v1.errors.MultiplierErrorEnum', + full_name='google.ads.googleads.v4.errors.MultiplierErrorEnum', filename=None, file=DESCRIPTOR, containing_type=None, @@ -128,11 +128,11 @@ MultiplierErrorEnum = _reflection.GeneratedProtocolMessageType('MultiplierErrorEnum', (_message.Message,), dict( DESCRIPTOR = _MULTIPLIERERRORENUM, - __module__ = 'google.ads.googleads_v1.proto.errors.multiplier_error_pb2' + __module__ = 'google.ads.googleads_v4.proto.errors.multiplier_error_pb2' , __doc__ = """Container for enum describing possible multiplier errors. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.errors.MultiplierErrorEnum) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.errors.MultiplierErrorEnum) )) _sym_db.RegisterMessage(MultiplierErrorEnum) diff --git a/google/ads/google_ads/v1/proto/errors/url_field_error_pb2_grpc.py b/google/ads/google_ads/v4/proto/errors/multiplier_error_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/errors/url_field_error_pb2_grpc.py rename to google/ads/google_ads/v4/proto/errors/multiplier_error_pb2_grpc.py diff --git a/google/ads/google_ads/v4/proto/errors/mutate_error_pb2.py b/google/ads/google_ads/v4/proto/errors/mutate_error_pb2.py new file mode 100644 index 000000000..ae12d14a1 --- /dev/null +++ b/google/ads/google_ads/v4/proto/errors/mutate_error_pb2.py @@ -0,0 +1,125 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/errors/mutate_error.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/errors/mutate_error.proto', + package='google.ads.googleads.v4.errors', + syntax='proto3', + serialized_options=_b('\n\"com.google.ads.googleads.v4.errorsB\020MutateErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V4.Errors\312\002\036Google\\Ads\\GoogleAds\\V4\\Errors\352\002\"Google::Ads::GoogleAds::V4::Errors'), + serialized_pb=_b('\n7google/ads/googleads_v4/proto/errors/mutate_error.proto\x12\x1egoogle.ads.googleads.v4.errors\x1a\x1cgoogle/api/annotations.proto\"\xb3\x02\n\x0fMutateErrorEnum\"\x9f\x02\n\x0bMutateError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x16\n\x12RESOURCE_NOT_FOUND\x10\x03\x12!\n\x1dID_EXISTS_IN_MULTIPLE_MUTATES\x10\x07\x12\x1d\n\x19INCONSISTENT_FIELD_VALUES\x10\x08\x12\x16\n\x12MUTATE_NOT_ALLOWED\x10\t\x12\x1e\n\x1aRESOURCE_NOT_IN_GOOGLE_ADS\x10\n\x12\x1b\n\x17RESOURCE_ALREADY_EXISTS\x10\x0b\x12+\n\'RESOURCE_DOES_NOT_SUPPORT_VALIDATE_ONLY\x10\x0c\x12\x16\n\x12RESOURCE_READ_ONLY\x10\rB\xeb\x01\n\"com.google.ads.googleads.v4.errorsB\x10MutateErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V4.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V4\\Errors\xea\x02\"Google::Ads::GoogleAds::V4::Errorsb\x06proto3') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_MUTATEERRORENUM_MUTATEERROR = _descriptor.EnumDescriptor( + name='MutateError', + full_name='google.ads.googleads.v4.errors.MutateErrorEnum.MutateError', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='UNSPECIFIED', index=0, number=0, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='UNKNOWN', index=1, number=1, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='RESOURCE_NOT_FOUND', index=2, number=3, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='ID_EXISTS_IN_MULTIPLE_MUTATES', index=3, number=7, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INCONSISTENT_FIELD_VALUES', index=4, number=8, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='MUTATE_NOT_ALLOWED', index=5, number=9, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='RESOURCE_NOT_IN_GOOGLE_ADS', index=6, number=10, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='RESOURCE_ALREADY_EXISTS', index=7, number=11, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='RESOURCE_DOES_NOT_SUPPORT_VALIDATE_ONLY', index=8, number=12, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='RESOURCE_READ_ONLY', index=9, number=13, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=142, + serialized_end=429, +) +_sym_db.RegisterEnumDescriptor(_MUTATEERRORENUM_MUTATEERROR) + + +_MUTATEERRORENUM = _descriptor.Descriptor( + name='MutateErrorEnum', + full_name='google.ads.googleads.v4.errors.MutateErrorEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _MUTATEERRORENUM_MUTATEERROR, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=122, + serialized_end=429, +) + +_MUTATEERRORENUM_MUTATEERROR.containing_type = _MUTATEERRORENUM +DESCRIPTOR.message_types_by_name['MutateErrorEnum'] = _MUTATEERRORENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +MutateErrorEnum = _reflection.GeneratedProtocolMessageType('MutateErrorEnum', (_message.Message,), dict( + DESCRIPTOR = _MUTATEERRORENUM, + __module__ = 'google.ads.googleads_v4.proto.errors.mutate_error_pb2' + , + __doc__ = """Container for enum describing possible mutate errors. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.errors.MutateErrorEnum) + )) +_sym_db.RegisterMessage(MutateErrorEnum) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/errors/user_list_error_pb2_grpc.py b/google/ads/google_ads/v4/proto/errors/mutate_error_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/errors/user_list_error_pb2_grpc.py rename to google/ads/google_ads/v4/proto/errors/mutate_error_pb2_grpc.py diff --git a/google/ads/google_ads/v1/proto/errors/new_resource_creation_error_pb2.py b/google/ads/google_ads/v4/proto/errors/new_resource_creation_error_pb2.py similarity index 76% rename from google/ads/google_ads/v1/proto/errors/new_resource_creation_error_pb2.py rename to google/ads/google_ads/v4/proto/errors/new_resource_creation_error_pb2.py index 375885064..b66c1507d 100644 --- a/google/ads/google_ads/v1/proto/errors/new_resource_creation_error_pb2.py +++ b/google/ads/google_ads/v4/proto/errors/new_resource_creation_error_pb2.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/errors/new_resource_creation_error.proto +# source: google/ads/googleads_v4/proto/errors/new_resource_creation_error.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) @@ -17,11 +17,11 @@ DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/errors/new_resource_creation_error.proto', - package='google.ads.googleads.v1.errors', + name='google/ads/googleads_v4/proto/errors/new_resource_creation_error.proto', + package='google.ads.googleads.v4.errors', syntax='proto3', - serialized_options=_b('\n\"com.google.ads.googleads.v1.errorsB\035NewResourceCreationErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V1.Errors\312\002\036Google\\Ads\\GoogleAds\\V1\\Errors\352\002\"Google::Ads::GoogleAds::V1::Errors'), - serialized_pb=_b('\nFgoogle/ads/googleads_v1/proto/errors/new_resource_creation_error.proto\x12\x1egoogle.ads.googleads.v1.errors\x1a\x1cgoogle/api/annotations.proto\"\xb0\x01\n\x1cNewResourceCreationErrorEnum\"\x8f\x01\n\x18NewResourceCreationError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x1c\n\x18\x43\x41NNOT_SET_ID_FOR_CREATE\x10\x02\x12\x16\n\x12\x44UPLICATE_TEMP_IDS\x10\x03\x12\x1f\n\x1bTEMP_ID_RESOURCE_HAD_ERRORS\x10\x04\x42\xf8\x01\n\"com.google.ads.googleads.v1.errorsB\x1dNewResourceCreationErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V1.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V1\\Errors\xea\x02\"Google::Ads::GoogleAds::V1::Errorsb\x06proto3') + serialized_options=_b('\n\"com.google.ads.googleads.v4.errorsB\035NewResourceCreationErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V4.Errors\312\002\036Google\\Ads\\GoogleAds\\V4\\Errors\352\002\"Google::Ads::GoogleAds::V4::Errors'), + serialized_pb=_b('\nFgoogle/ads/googleads_v4/proto/errors/new_resource_creation_error.proto\x12\x1egoogle.ads.googleads.v4.errors\x1a\x1cgoogle/api/annotations.proto\"\xb0\x01\n\x1cNewResourceCreationErrorEnum\"\x8f\x01\n\x18NewResourceCreationError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x1c\n\x18\x43\x41NNOT_SET_ID_FOR_CREATE\x10\x02\x12\x16\n\x12\x44UPLICATE_TEMP_IDS\x10\x03\x12\x1f\n\x1bTEMP_ID_RESOURCE_HAD_ERRORS\x10\x04\x42\xf8\x01\n\"com.google.ads.googleads.v4.errorsB\x1dNewResourceCreationErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V4.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V4\\Errors\xea\x02\"Google::Ads::GoogleAds::V4::Errorsb\x06proto3') , dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) @@ -29,7 +29,7 @@ _NEWRESOURCECREATIONERRORENUM_NEWRESOURCECREATIONERROR = _descriptor.EnumDescriptor( name='NewResourceCreationError', - full_name='google.ads.googleads.v1.errors.NewResourceCreationErrorEnum.NewResourceCreationError', + full_name='google.ads.googleads.v4.errors.NewResourceCreationErrorEnum.NewResourceCreationError', filename=None, file=DESCRIPTOR, values=[ @@ -64,7 +64,7 @@ _NEWRESOURCECREATIONERRORENUM = _descriptor.Descriptor( name='NewResourceCreationErrorEnum', - full_name='google.ads.googleads.v1.errors.NewResourceCreationErrorEnum', + full_name='google.ads.googleads.v4.errors.NewResourceCreationErrorEnum', filename=None, file=DESCRIPTOR, containing_type=None, @@ -92,11 +92,11 @@ NewResourceCreationErrorEnum = _reflection.GeneratedProtocolMessageType('NewResourceCreationErrorEnum', (_message.Message,), dict( DESCRIPTOR = _NEWRESOURCECREATIONERRORENUM, - __module__ = 'google.ads.googleads_v1.proto.errors.new_resource_creation_error_pb2' + __module__ = 'google.ads.googleads_v4.proto.errors.new_resource_creation_error_pb2' , __doc__ = """Container for enum describing possible new resource creation errors. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.errors.NewResourceCreationErrorEnum) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.errors.NewResourceCreationErrorEnum) )) _sym_db.RegisterMessage(NewResourceCreationErrorEnum) diff --git a/google/ads/google_ads/v1/proto/errors/youtube_video_registration_error_pb2_grpc.py b/google/ads/google_ads/v4/proto/errors/new_resource_creation_error_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/errors/youtube_video_registration_error_pb2_grpc.py rename to google/ads/google_ads/v4/proto/errors/new_resource_creation_error_pb2_grpc.py diff --git a/google/ads/google_ads/v4/proto/errors/not_empty_error_pb2.py b/google/ads/google_ads/v4/proto/errors/not_empty_error_pb2.py new file mode 100644 index 000000000..acefebadc --- /dev/null +++ b/google/ads/google_ads/v4/proto/errors/not_empty_error_pb2.py @@ -0,0 +1,97 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/errors/not_empty_error.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/errors/not_empty_error.proto', + package='google.ads.googleads.v4.errors', + syntax='proto3', + serialized_options=_b('\n\"com.google.ads.googleads.v4.errorsB\022NotEmptyErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V4.Errors\312\002\036Google\\Ads\\GoogleAds\\V4\\Errors\352\002\"Google::Ads::GoogleAds::V4::Errors'), + serialized_pb=_b('\n:google/ads/googleads_v4/proto/errors/not_empty_error.proto\x12\x1egoogle.ads.googleads.v4.errors\x1a\x1cgoogle/api/annotations.proto\"R\n\x11NotEmptyErrorEnum\"=\n\rNotEmptyError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0e\n\nEMPTY_LIST\x10\x02\x42\xed\x01\n\"com.google.ads.googleads.v4.errorsB\x12NotEmptyErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V4.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V4\\Errors\xea\x02\"Google::Ads::GoogleAds::V4::Errorsb\x06proto3') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_NOTEMPTYERRORENUM_NOTEMPTYERROR = _descriptor.EnumDescriptor( + name='NotEmptyError', + full_name='google.ads.googleads.v4.errors.NotEmptyErrorEnum.NotEmptyError', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='UNSPECIFIED', index=0, number=0, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='UNKNOWN', index=1, number=1, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='EMPTY_LIST', index=2, number=2, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=145, + serialized_end=206, +) +_sym_db.RegisterEnumDescriptor(_NOTEMPTYERRORENUM_NOTEMPTYERROR) + + +_NOTEMPTYERRORENUM = _descriptor.Descriptor( + name='NotEmptyErrorEnum', + full_name='google.ads.googleads.v4.errors.NotEmptyErrorEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _NOTEMPTYERRORENUM_NOTEMPTYERROR, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=124, + serialized_end=206, +) + +_NOTEMPTYERRORENUM_NOTEMPTYERROR.containing_type = _NOTEMPTYERRORENUM +DESCRIPTOR.message_types_by_name['NotEmptyErrorEnum'] = _NOTEMPTYERRORENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +NotEmptyErrorEnum = _reflection.GeneratedProtocolMessageType('NotEmptyErrorEnum', (_message.Message,), dict( + DESCRIPTOR = _NOTEMPTYERRORENUM, + __module__ = 'google.ads.googleads_v4.proto.errors.not_empty_error_pb2' + , + __doc__ = """Container for enum describing possible not empty errors. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.errors.NotEmptyErrorEnum) + )) +_sym_db.RegisterMessage(NotEmptyErrorEnum) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/resources/account_budget_pb2_grpc.py b/google/ads/google_ads/v4/proto/errors/not_empty_error_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/resources/account_budget_pb2_grpc.py rename to google/ads/google_ads/v4/proto/errors/not_empty_error_pb2_grpc.py diff --git a/google/ads/google_ads/v4/proto/errors/not_whitelisted_error_pb2.py b/google/ads/google_ads/v4/proto/errors/not_whitelisted_error_pb2.py new file mode 100644 index 000000000..304aa4233 --- /dev/null +++ b/google/ads/google_ads/v4/proto/errors/not_whitelisted_error_pb2.py @@ -0,0 +1,97 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/errors/not_whitelisted_error.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/errors/not_whitelisted_error.proto', + package='google.ads.googleads.v4.errors', + syntax='proto3', + serialized_options=_b('\n\"com.google.ads.googleads.v4.errorsB\030NotWhitelistedErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V4.Errors\312\002\036Google\\Ads\\GoogleAds\\V4\\Errors\352\002\"Google::Ads::GoogleAds::V4::Errors'), + serialized_pb=_b('\n@google/ads/googleads_v4/proto/errors/not_whitelisted_error.proto\x12\x1egoogle.ads.googleads.v4.errors\x1a\x1cgoogle/api/annotations.proto\"}\n\x17NotWhitelistedErrorEnum\"b\n\x13NotWhitelistedError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12-\n)CUSTOMER_NOT_WHITELISTED_FOR_THIS_FEATURE\x10\x02\x42\xf3\x01\n\"com.google.ads.googleads.v4.errorsB\x18NotWhitelistedErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V4.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V4\\Errors\xea\x02\"Google::Ads::GoogleAds::V4::Errorsb\x06proto3') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_NOTWHITELISTEDERRORENUM_NOTWHITELISTEDERROR = _descriptor.EnumDescriptor( + name='NotWhitelistedError', + full_name='google.ads.googleads.v4.errors.NotWhitelistedErrorEnum.NotWhitelistedError', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='UNSPECIFIED', index=0, number=0, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='UNKNOWN', index=1, number=1, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CUSTOMER_NOT_WHITELISTED_FOR_THIS_FEATURE', index=2, number=2, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=157, + serialized_end=255, +) +_sym_db.RegisterEnumDescriptor(_NOTWHITELISTEDERRORENUM_NOTWHITELISTEDERROR) + + +_NOTWHITELISTEDERRORENUM = _descriptor.Descriptor( + name='NotWhitelistedErrorEnum', + full_name='google.ads.googleads.v4.errors.NotWhitelistedErrorEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _NOTWHITELISTEDERRORENUM_NOTWHITELISTEDERROR, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=130, + serialized_end=255, +) + +_NOTWHITELISTEDERRORENUM_NOTWHITELISTEDERROR.containing_type = _NOTWHITELISTEDERRORENUM +DESCRIPTOR.message_types_by_name['NotWhitelistedErrorEnum'] = _NOTWHITELISTEDERRORENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +NotWhitelistedErrorEnum = _reflection.GeneratedProtocolMessageType('NotWhitelistedErrorEnum', (_message.Message,), dict( + DESCRIPTOR = _NOTWHITELISTEDERRORENUM, + __module__ = 'google.ads.googleads_v4.proto.errors.not_whitelisted_error_pb2' + , + __doc__ = """Container for enum describing possible not whitelisted errors. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.errors.NotWhitelistedErrorEnum) + )) +_sym_db.RegisterMessage(NotWhitelistedErrorEnum) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/resources/account_budget_proposal_pb2_grpc.py b/google/ads/google_ads/v4/proto/errors/not_whitelisted_error_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/resources/account_budget_proposal_pb2_grpc.py rename to google/ads/google_ads/v4/proto/errors/not_whitelisted_error_pb2_grpc.py diff --git a/google/ads/google_ads/v4/proto/errors/null_error_pb2.py b/google/ads/google_ads/v4/proto/errors/null_error_pb2.py new file mode 100644 index 000000000..2f534023c --- /dev/null +++ b/google/ads/google_ads/v4/proto/errors/null_error_pb2.py @@ -0,0 +1,97 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/errors/null_error.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/errors/null_error.proto', + package='google.ads.googleads.v4.errors', + syntax='proto3', + serialized_options=_b('\n\"com.google.ads.googleads.v4.errorsB\016NullErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V4.Errors\312\002\036Google\\Ads\\GoogleAds\\V4\\Errors\352\002\"Google::Ads::GoogleAds::V4::Errors'), + serialized_pb=_b('\n5google/ads/googleads_v4/proto/errors/null_error.proto\x12\x1egoogle.ads.googleads.v4.errors\x1a\x1cgoogle/api/annotations.proto\"L\n\rNullErrorEnum\";\n\tNullError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x10\n\x0cNULL_CONTENT\x10\x02\x42\xe9\x01\n\"com.google.ads.googleads.v4.errorsB\x0eNullErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V4.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V4\\Errors\xea\x02\"Google::Ads::GoogleAds::V4::Errorsb\x06proto3') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_NULLERRORENUM_NULLERROR = _descriptor.EnumDescriptor( + name='NullError', + full_name='google.ads.googleads.v4.errors.NullErrorEnum.NullError', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='UNSPECIFIED', index=0, number=0, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='UNKNOWN', index=1, number=1, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='NULL_CONTENT', index=2, number=2, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=136, + serialized_end=195, +) +_sym_db.RegisterEnumDescriptor(_NULLERRORENUM_NULLERROR) + + +_NULLERRORENUM = _descriptor.Descriptor( + name='NullErrorEnum', + full_name='google.ads.googleads.v4.errors.NullErrorEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _NULLERRORENUM_NULLERROR, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=119, + serialized_end=195, +) + +_NULLERRORENUM_NULLERROR.containing_type = _NULLERRORENUM +DESCRIPTOR.message_types_by_name['NullErrorEnum'] = _NULLERRORENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +NullErrorEnum = _reflection.GeneratedProtocolMessageType('NullErrorEnum', (_message.Message,), dict( + DESCRIPTOR = _NULLERRORENUM, + __module__ = 'google.ads.googleads_v4.proto.errors.null_error_pb2' + , + __doc__ = """Container for enum describing possible null errors. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.errors.NullErrorEnum) + )) +_sym_db.RegisterMessage(NullErrorEnum) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/resources/ad_group_ad_label_pb2_grpc.py b/google/ads/google_ads/v4/proto/errors/null_error_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/resources/ad_group_ad_label_pb2_grpc.py rename to google/ads/google_ads/v4/proto/errors/null_error_pb2_grpc.py diff --git a/google/ads/google_ads/v4/proto/errors/offline_user_data_job_error_pb2.py b/google/ads/google_ads/v4/proto/errors/offline_user_data_job_error_pb2.py new file mode 100644 index 000000000..b331acb76 --- /dev/null +++ b/google/ads/google_ads/v4/proto/errors/offline_user_data_job_error_pb2.py @@ -0,0 +1,201 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/errors/offline_user_data_job_error.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/errors/offline_user_data_job_error.proto', + package='google.ads.googleads.v4.errors', + syntax='proto3', + serialized_options=_b('\n\"com.google.ads.googleads.v4.errorsB\034OfflineUserDataJobErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V4.Errors\312\002\036Google\\Ads\\GoogleAds\\V4\\Errors\352\002\"Google::Ads::GoogleAds::V4::Errors'), + serialized_pb=_b('\nFgoogle/ads/googleads_v4/proto/errors/offline_user_data_job_error.proto\x12\x1egoogle.ads.googleads.v4.errors\x1a\x1cgoogle/api/annotations.proto\"\x90\x07\n\x1bOfflineUserDataJobErrorEnum\"\xf0\x06\n\x17OfflineUserDataJobError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x18\n\x14INVALID_USER_LIST_ID\x10\x03\x12\x1a\n\x16INVALID_USER_LIST_TYPE\x10\x04\x12\x1f\n\x1bNOT_WHITELISTED_FOR_USER_ID\x10\x05\x12 \n\x1cINCOMPATIBLE_UPLOAD_KEY_TYPE\x10\x06\x12\x1b\n\x17MISSING_USER_IDENTIFIER\x10\x07\x12\x1c\n\x18INVALID_MOBILE_ID_FORMAT\x10\x08\x12\x1d\n\x19TOO_MANY_USER_IDENTIFIERS\x10\t\x12*\n&NOT_WHITELISTED_FOR_STORE_SALES_DIRECT\x10\n\x12+\n\'NOT_WHITELISTED_FOR_UNIFIED_STORE_SALES\x10\x1c\x12\x16\n\x12INVALID_PARTNER_ID\x10\x0b\x12\x14\n\x10INVALID_ENCODING\x10\x0c\x12\x18\n\x14INVALID_COUNTRY_CODE\x10\r\x12 \n\x1cINCOMPATIBLE_USER_IDENTIFIER\x10\x0e\x12\x1b\n\x17\x46UTURE_TRANSACTION_TIME\x10\x0f\x12\x1d\n\x19INVALID_CONVERSION_ACTION\x10\x10\x12\x1b\n\x17MOBILE_ID_NOT_SUPPORTED\x10\x11\x12\x1b\n\x17INVALID_OPERATION_ORDER\x10\x12\x12\x19\n\x15\x43ONFLICTING_OPERATION\x10\x13\x12%\n!EXTERNAL_UPDATE_ID_ALREADY_EXISTS\x10\x15\x12\x17\n\x13JOB_ALREADY_STARTED\x10\x16\x12\x18\n\x14REMOVE_NOT_SUPPORTED\x10\x17\x12\x1c\n\x18REMOVE_ALL_NOT_SUPPORTED\x10\x18\x12\x19\n\x15INVALID_SHA256_FORMAT\x10\x19\x12\x17\n\x13\x43USTOM_KEY_DISABLED\x10\x1a\x12\x1d\n\x19\x43USTOM_KEY_NOT_PREDEFINED\x10\x1b\x12\x16\n\x12\x43USTOM_KEY_NOT_SET\x10\x1d\x12-\n)CUSTOMER_NOT_ACCEPTED_CUSTOMER_DATA_TERMS\x10\x1e\x42\xf7\x01\n\"com.google.ads.googleads.v4.errorsB\x1cOfflineUserDataJobErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V4.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V4\\Errors\xea\x02\"Google::Ads::GoogleAds::V4::Errorsb\x06proto3') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_OFFLINEUSERDATAJOBERRORENUM_OFFLINEUSERDATAJOBERROR = _descriptor.EnumDescriptor( + name='OfflineUserDataJobError', + full_name='google.ads.googleads.v4.errors.OfflineUserDataJobErrorEnum.OfflineUserDataJobError', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='UNSPECIFIED', index=0, number=0, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='UNKNOWN', index=1, number=1, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_USER_LIST_ID', index=2, number=3, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_USER_LIST_TYPE', index=3, number=4, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='NOT_WHITELISTED_FOR_USER_ID', index=4, number=5, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INCOMPATIBLE_UPLOAD_KEY_TYPE', index=5, number=6, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='MISSING_USER_IDENTIFIER', index=6, number=7, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_MOBILE_ID_FORMAT', index=7, number=8, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='TOO_MANY_USER_IDENTIFIERS', index=8, number=9, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='NOT_WHITELISTED_FOR_STORE_SALES_DIRECT', index=9, number=10, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='NOT_WHITELISTED_FOR_UNIFIED_STORE_SALES', index=10, number=28, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_PARTNER_ID', index=11, number=11, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_ENCODING', index=12, number=12, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_COUNTRY_CODE', index=13, number=13, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INCOMPATIBLE_USER_IDENTIFIER', index=14, number=14, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='FUTURE_TRANSACTION_TIME', index=15, number=15, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_CONVERSION_ACTION', index=16, number=16, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='MOBILE_ID_NOT_SUPPORTED', index=17, number=17, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_OPERATION_ORDER', index=18, number=18, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CONFLICTING_OPERATION', index=19, number=19, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='EXTERNAL_UPDATE_ID_ALREADY_EXISTS', index=20, number=21, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='JOB_ALREADY_STARTED', index=21, number=22, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='REMOVE_NOT_SUPPORTED', index=22, number=23, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='REMOVE_ALL_NOT_SUPPORTED', index=23, number=24, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_SHA256_FORMAT', index=24, number=25, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CUSTOM_KEY_DISABLED', index=25, number=26, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CUSTOM_KEY_NOT_PREDEFINED', index=26, number=27, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CUSTOM_KEY_NOT_SET', index=27, number=29, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CUSTOMER_NOT_ACCEPTED_CUSTOMER_DATA_TERMS', index=28, number=30, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=169, + serialized_end=1049, +) +_sym_db.RegisterEnumDescriptor(_OFFLINEUSERDATAJOBERRORENUM_OFFLINEUSERDATAJOBERROR) + + +_OFFLINEUSERDATAJOBERRORENUM = _descriptor.Descriptor( + name='OfflineUserDataJobErrorEnum', + full_name='google.ads.googleads.v4.errors.OfflineUserDataJobErrorEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _OFFLINEUSERDATAJOBERRORENUM_OFFLINEUSERDATAJOBERROR, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=137, + serialized_end=1049, +) + +_OFFLINEUSERDATAJOBERRORENUM_OFFLINEUSERDATAJOBERROR.containing_type = _OFFLINEUSERDATAJOBERRORENUM +DESCRIPTOR.message_types_by_name['OfflineUserDataJobErrorEnum'] = _OFFLINEUSERDATAJOBERRORENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +OfflineUserDataJobErrorEnum = _reflection.GeneratedProtocolMessageType('OfflineUserDataJobErrorEnum', (_message.Message,), dict( + DESCRIPTOR = _OFFLINEUSERDATAJOBERRORENUM, + __module__ = 'google.ads.googleads_v4.proto.errors.offline_user_data_job_error_pb2' + , + __doc__ = """Container for enum describing possible offline user data job errors. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.errors.OfflineUserDataJobErrorEnum) + )) +_sym_db.RegisterMessage(OfflineUserDataJobErrorEnum) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/resources/ad_group_ad_pb2_grpc.py b/google/ads/google_ads/v4/proto/errors/offline_user_data_job_error_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/resources/ad_group_ad_pb2_grpc.py rename to google/ads/google_ads/v4/proto/errors/offline_user_data_job_error_pb2_grpc.py diff --git a/google/ads/google_ads/v1/proto/errors/operation_access_denied_error_pb2.py b/google/ads/google_ads/v4/proto/errors/operation_access_denied_error_pb2.py similarity index 83% rename from google/ads/google_ads/v1/proto/errors/operation_access_denied_error_pb2.py rename to google/ads/google_ads/v4/proto/errors/operation_access_denied_error_pb2.py index af17a4c4d..136ec9e74 100644 --- a/google/ads/google_ads/v1/proto/errors/operation_access_denied_error_pb2.py +++ b/google/ads/google_ads/v4/proto/errors/operation_access_denied_error_pb2.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/errors/operation_access_denied_error.proto +# source: google/ads/googleads_v4/proto/errors/operation_access_denied_error.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) @@ -17,11 +17,11 @@ DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/errors/operation_access_denied_error.proto', - package='google.ads.googleads.v1.errors', + name='google/ads/googleads_v4/proto/errors/operation_access_denied_error.proto', + package='google.ads.googleads.v4.errors', syntax='proto3', - serialized_options=_b('\n\"com.google.ads.googleads.v1.errorsB\037OperationAccessDeniedErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V1.Errors\312\002\036Google\\Ads\\GoogleAds\\V1\\Errors\352\002\"Google::Ads::GoogleAds::V1::Errors'), - serialized_pb=_b('\nHgoogle/ads/googleads_v1/proto/errors/operation_access_denied_error.proto\x12\x1egoogle.ads.googleads.v1.errors\x1a\x1cgoogle/api/annotations.proto\"\xeb\x03\n\x1eOperationAccessDeniedErrorEnum\"\xc8\x03\n\x1aOperationAccessDeniedError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x18\n\x14\x41\x43TION_NOT_PERMITTED\x10\x02\x12\"\n\x1e\x43REATE_OPERATION_NOT_PERMITTED\x10\x03\x12\"\n\x1eREMOVE_OPERATION_NOT_PERMITTED\x10\x04\x12\"\n\x1eUPDATE_OPERATION_NOT_PERMITTED\x10\x05\x12*\n&MUTATE_ACTION_NOT_PERMITTED_FOR_CLIENT\x10\x06\x12-\n)OPERATION_NOT_PERMITTED_FOR_CAMPAIGN_TYPE\x10\x07\x12#\n\x1f\x43REATE_AS_REMOVED_NOT_PERMITTED\x10\x08\x12\x30\n,OPERATION_NOT_PERMITTED_FOR_REMOVED_RESOURCE\x10\t\x12-\n)OPERATION_NOT_PERMITTED_FOR_AD_GROUP_TYPE\x10\n\x12%\n!MUTATE_NOT_PERMITTED_FOR_CUSTOMER\x10\x0b\x42\xfa\x01\n\"com.google.ads.googleads.v1.errorsB\x1fOperationAccessDeniedErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V1.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V1\\Errors\xea\x02\"Google::Ads::GoogleAds::V1::Errorsb\x06proto3') + serialized_options=_b('\n\"com.google.ads.googleads.v4.errorsB\037OperationAccessDeniedErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V4.Errors\312\002\036Google\\Ads\\GoogleAds\\V4\\Errors\352\002\"Google::Ads::GoogleAds::V4::Errors'), + serialized_pb=_b('\nHgoogle/ads/googleads_v4/proto/errors/operation_access_denied_error.proto\x12\x1egoogle.ads.googleads.v4.errors\x1a\x1cgoogle/api/annotations.proto\"\xeb\x03\n\x1eOperationAccessDeniedErrorEnum\"\xc8\x03\n\x1aOperationAccessDeniedError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x18\n\x14\x41\x43TION_NOT_PERMITTED\x10\x02\x12\"\n\x1e\x43REATE_OPERATION_NOT_PERMITTED\x10\x03\x12\"\n\x1eREMOVE_OPERATION_NOT_PERMITTED\x10\x04\x12\"\n\x1eUPDATE_OPERATION_NOT_PERMITTED\x10\x05\x12*\n&MUTATE_ACTION_NOT_PERMITTED_FOR_CLIENT\x10\x06\x12-\n)OPERATION_NOT_PERMITTED_FOR_CAMPAIGN_TYPE\x10\x07\x12#\n\x1f\x43REATE_AS_REMOVED_NOT_PERMITTED\x10\x08\x12\x30\n,OPERATION_NOT_PERMITTED_FOR_REMOVED_RESOURCE\x10\t\x12-\n)OPERATION_NOT_PERMITTED_FOR_AD_GROUP_TYPE\x10\n\x12%\n!MUTATE_NOT_PERMITTED_FOR_CUSTOMER\x10\x0b\x42\xfa\x01\n\"com.google.ads.googleads.v4.errorsB\x1fOperationAccessDeniedErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V4.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V4\\Errors\xea\x02\"Google::Ads::GoogleAds::V4::Errorsb\x06proto3') , dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) @@ -29,7 +29,7 @@ _OPERATIONACCESSDENIEDERRORENUM_OPERATIONACCESSDENIEDERROR = _descriptor.EnumDescriptor( name='OperationAccessDeniedError', - full_name='google.ads.googleads.v1.errors.OperationAccessDeniedErrorEnum.OperationAccessDeniedError', + full_name='google.ads.googleads.v4.errors.OperationAccessDeniedErrorEnum.OperationAccessDeniedError', filename=None, file=DESCRIPTOR, values=[ @@ -92,7 +92,7 @@ _OPERATIONACCESSDENIEDERRORENUM = _descriptor.Descriptor( name='OperationAccessDeniedErrorEnum', - full_name='google.ads.googleads.v1.errors.OperationAccessDeniedErrorEnum', + full_name='google.ads.googleads.v4.errors.OperationAccessDeniedErrorEnum', filename=None, file=DESCRIPTOR, containing_type=None, @@ -120,11 +120,11 @@ OperationAccessDeniedErrorEnum = _reflection.GeneratedProtocolMessageType('OperationAccessDeniedErrorEnum', (_message.Message,), dict( DESCRIPTOR = _OPERATIONACCESSDENIEDERRORENUM, - __module__ = 'google.ads.googleads_v1.proto.errors.operation_access_denied_error_pb2' + __module__ = 'google.ads.googleads_v4.proto.errors.operation_access_denied_error_pb2' , __doc__ = """Container for enum describing possible operation access denied errors. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.errors.OperationAccessDeniedErrorEnum) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.errors.OperationAccessDeniedErrorEnum) )) _sym_db.RegisterMessage(OperationAccessDeniedErrorEnum) diff --git a/google/ads/google_ads/v1/proto/resources/ad_group_audience_view_pb2_grpc.py b/google/ads/google_ads/v4/proto/errors/operation_access_denied_error_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/resources/ad_group_audience_view_pb2_grpc.py rename to google/ads/google_ads/v4/proto/errors/operation_access_denied_error_pb2_grpc.py diff --git a/google/ads/google_ads/v4/proto/errors/operator_error_pb2.py b/google/ads/google_ads/v4/proto/errors/operator_error_pb2.py new file mode 100644 index 000000000..6f542e734 --- /dev/null +++ b/google/ads/google_ads/v4/proto/errors/operator_error_pb2.py @@ -0,0 +1,97 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/errors/operator_error.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/errors/operator_error.proto', + package='google.ads.googleads.v4.errors', + syntax='proto3', + serialized_options=_b('\n\"com.google.ads.googleads.v4.errorsB\022OperatorErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V4.Errors\312\002\036Google\\Ads\\GoogleAds\\V4\\Errors\352\002\"Google::Ads::GoogleAds::V4::Errors'), + serialized_pb=_b('\n9google/ads/googleads_v4/proto/errors/operator_error.proto\x12\x1egoogle.ads.googleads.v4.errors\x1a\x1cgoogle/api/annotations.proto\"^\n\x11OperatorErrorEnum\"I\n\rOperatorError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x1a\n\x16OPERATOR_NOT_SUPPORTED\x10\x02\x42\xed\x01\n\"com.google.ads.googleads.v4.errorsB\x12OperatorErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V4.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V4\\Errors\xea\x02\"Google::Ads::GoogleAds::V4::Errorsb\x06proto3') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_OPERATORERRORENUM_OPERATORERROR = _descriptor.EnumDescriptor( + name='OperatorError', + full_name='google.ads.googleads.v4.errors.OperatorErrorEnum.OperatorError', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='UNSPECIFIED', index=0, number=0, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='UNKNOWN', index=1, number=1, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='OPERATOR_NOT_SUPPORTED', index=2, number=2, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=144, + serialized_end=217, +) +_sym_db.RegisterEnumDescriptor(_OPERATORERRORENUM_OPERATORERROR) + + +_OPERATORERRORENUM = _descriptor.Descriptor( + name='OperatorErrorEnum', + full_name='google.ads.googleads.v4.errors.OperatorErrorEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _OPERATORERRORENUM_OPERATORERROR, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=123, + serialized_end=217, +) + +_OPERATORERRORENUM_OPERATORERROR.containing_type = _OPERATORERRORENUM +DESCRIPTOR.message_types_by_name['OperatorErrorEnum'] = _OPERATORERRORENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +OperatorErrorEnum = _reflection.GeneratedProtocolMessageType('OperatorErrorEnum', (_message.Message,), dict( + DESCRIPTOR = _OPERATORERRORENUM, + __module__ = 'google.ads.googleads_v4.proto.errors.operator_error_pb2' + , + __doc__ = """Container for enum describing possible operator errors. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.errors.OperatorErrorEnum) + )) +_sym_db.RegisterMessage(OperatorErrorEnum) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/resources/ad_group_bid_modifier_pb2_grpc.py b/google/ads/google_ads/v4/proto/errors/operator_error_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/resources/ad_group_bid_modifier_pb2_grpc.py rename to google/ads/google_ads/v4/proto/errors/operator_error_pb2_grpc.py diff --git a/google/ads/google_ads/v4/proto/errors/partial_failure_error_pb2.py b/google/ads/google_ads/v4/proto/errors/partial_failure_error_pb2.py new file mode 100644 index 000000000..7588edb40 --- /dev/null +++ b/google/ads/google_ads/v4/proto/errors/partial_failure_error_pb2.py @@ -0,0 +1,97 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/errors/partial_failure_error.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/errors/partial_failure_error.proto', + package='google.ads.googleads.v4.errors', + syntax='proto3', + serialized_options=_b('\n\"com.google.ads.googleads.v4.errorsB\030PartialFailureErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V4.Errors\312\002\036Google\\Ads\\GoogleAds\\V4\\Errors\352\002\"Google::Ads::GoogleAds::V4::Errors'), + serialized_pb=_b('\n@google/ads/googleads_v4/proto/errors/partial_failure_error.proto\x12\x1egoogle.ads.googleads.v4.errors\x1a\x1cgoogle/api/annotations.proto\"q\n\x17PartialFailureErrorEnum\"V\n\x13PartialFailureError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12!\n\x1dPARTIAL_FAILURE_MODE_REQUIRED\x10\x02\x42\xf3\x01\n\"com.google.ads.googleads.v4.errorsB\x18PartialFailureErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V4.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V4\\Errors\xea\x02\"Google::Ads::GoogleAds::V4::Errorsb\x06proto3') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_PARTIALFAILUREERRORENUM_PARTIALFAILUREERROR = _descriptor.EnumDescriptor( + name='PartialFailureError', + full_name='google.ads.googleads.v4.errors.PartialFailureErrorEnum.PartialFailureError', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='UNSPECIFIED', index=0, number=0, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='UNKNOWN', index=1, number=1, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='PARTIAL_FAILURE_MODE_REQUIRED', index=2, number=2, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=157, + serialized_end=243, +) +_sym_db.RegisterEnumDescriptor(_PARTIALFAILUREERRORENUM_PARTIALFAILUREERROR) + + +_PARTIALFAILUREERRORENUM = _descriptor.Descriptor( + name='PartialFailureErrorEnum', + full_name='google.ads.googleads.v4.errors.PartialFailureErrorEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _PARTIALFAILUREERRORENUM_PARTIALFAILUREERROR, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=130, + serialized_end=243, +) + +_PARTIALFAILUREERRORENUM_PARTIALFAILUREERROR.containing_type = _PARTIALFAILUREERRORENUM +DESCRIPTOR.message_types_by_name['PartialFailureErrorEnum'] = _PARTIALFAILUREERRORENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +PartialFailureErrorEnum = _reflection.GeneratedProtocolMessageType('PartialFailureErrorEnum', (_message.Message,), dict( + DESCRIPTOR = _PARTIALFAILUREERRORENUM, + __module__ = 'google.ads.googleads_v4.proto.errors.partial_failure_error_pb2' + , + __doc__ = """Container for enum describing possible partial failure errors. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.errors.PartialFailureErrorEnum) + )) +_sym_db.RegisterMessage(PartialFailureErrorEnum) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/resources/ad_group_criterion_label_pb2_grpc.py b/google/ads/google_ads/v4/proto/errors/partial_failure_error_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/resources/ad_group_criterion_label_pb2_grpc.py rename to google/ads/google_ads/v4/proto/errors/partial_failure_error_pb2_grpc.py diff --git a/google/ads/google_ads/v4/proto/errors/payments_account_error_pb2.py b/google/ads/google_ads/v4/proto/errors/payments_account_error_pb2.py new file mode 100644 index 000000000..88dddd54e --- /dev/null +++ b/google/ads/google_ads/v4/proto/errors/payments_account_error_pb2.py @@ -0,0 +1,98 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/errors/payments_account_error.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/errors/payments_account_error.proto', + package='google.ads.googleads.v4.errors', + syntax='proto3', + serialized_options=_b('\n\"com.google.ads.googleads.v4.errorsB\031PaymentsAccountErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V4.Errors\312\002\036Google\\Ads\\GoogleAds\\V4\\Errors\352\002\"Google::Ads::GoogleAds::V4::Errors'), + serialized_pb=_b('\nAgoogle/ads/googleads_v4/proto/errors/payments_account_error.proto\x12\x1egoogle.ads.googleads.v4.errors\x1a\x1cgoogle/api/annotations.proto\"x\n\x18PaymentsAccountErrorEnum\"\\\n\x14PaymentsAccountError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12&\n\"NOT_SUPPORTED_FOR_MANAGER_CUSTOMER\x10\x02\x42\xf4\x01\n\"com.google.ads.googleads.v4.errorsB\x19PaymentsAccountErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V4.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V4\\Errors\xea\x02\"Google::Ads::GoogleAds::V4::Errorsb\x06proto3') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_PAYMENTSACCOUNTERRORENUM_PAYMENTSACCOUNTERROR = _descriptor.EnumDescriptor( + name='PaymentsAccountError', + full_name='google.ads.googleads.v4.errors.PaymentsAccountErrorEnum.PaymentsAccountError', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='UNSPECIFIED', index=0, number=0, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='UNKNOWN', index=1, number=1, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='NOT_SUPPORTED_FOR_MANAGER_CUSTOMER', index=2, number=2, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=159, + serialized_end=251, +) +_sym_db.RegisterEnumDescriptor(_PAYMENTSACCOUNTERRORENUM_PAYMENTSACCOUNTERROR) + + +_PAYMENTSACCOUNTERRORENUM = _descriptor.Descriptor( + name='PaymentsAccountErrorEnum', + full_name='google.ads.googleads.v4.errors.PaymentsAccountErrorEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _PAYMENTSACCOUNTERRORENUM_PAYMENTSACCOUNTERROR, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=131, + serialized_end=251, +) + +_PAYMENTSACCOUNTERRORENUM_PAYMENTSACCOUNTERROR.containing_type = _PAYMENTSACCOUNTERRORENUM +DESCRIPTOR.message_types_by_name['PaymentsAccountErrorEnum'] = _PAYMENTSACCOUNTERRORENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +PaymentsAccountErrorEnum = _reflection.GeneratedProtocolMessageType('PaymentsAccountErrorEnum', (_message.Message,), dict( + DESCRIPTOR = _PAYMENTSACCOUNTERRORENUM, + __module__ = 'google.ads.googleads_v4.proto.errors.payments_account_error_pb2' + , + __doc__ = """Container for enum describing possible errors in payments account + service. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.errors.PaymentsAccountErrorEnum) + )) +_sym_db.RegisterMessage(PaymentsAccountErrorEnum) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/resources/ad_group_criterion_pb2_grpc.py b/google/ads/google_ads/v4/proto/errors/payments_account_error_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/resources/ad_group_criterion_pb2_grpc.py rename to google/ads/google_ads/v4/proto/errors/payments_account_error_pb2_grpc.py diff --git a/google/ads/google_ads/v4/proto/errors/policy_finding_error_pb2.py b/google/ads/google_ads/v4/proto/errors/policy_finding_error_pb2.py new file mode 100644 index 000000000..413e21661 --- /dev/null +++ b/google/ads/google_ads/v4/proto/errors/policy_finding_error_pb2.py @@ -0,0 +1,101 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/errors/policy_finding_error.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/errors/policy_finding_error.proto', + package='google.ads.googleads.v4.errors', + syntax='proto3', + serialized_options=_b('\n\"com.google.ads.googleads.v4.errorsB\027PolicyFindingErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V4.Errors\312\002\036Google\\Ads\\GoogleAds\\V4\\Errors\352\002\"Google::Ads::GoogleAds::V4::Errors'), + serialized_pb=_b('\n?google/ads/googleads_v4/proto/errors/policy_finding_error.proto\x12\x1egoogle.ads.googleads.v4.errors\x1a\x1cgoogle/api/annotations.proto\"|\n\x16PolicyFindingErrorEnum\"b\n\x12PolicyFindingError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x12\n\x0ePOLICY_FINDING\x10\x02\x12\x1a\n\x16POLICY_TOPIC_NOT_FOUND\x10\x03\x42\xf2\x01\n\"com.google.ads.googleads.v4.errorsB\x17PolicyFindingErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V4.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V4\\Errors\xea\x02\"Google::Ads::GoogleAds::V4::Errorsb\x06proto3') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_POLICYFINDINGERRORENUM_POLICYFINDINGERROR = _descriptor.EnumDescriptor( + name='PolicyFindingError', + full_name='google.ads.googleads.v4.errors.PolicyFindingErrorEnum.PolicyFindingError', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='UNSPECIFIED', index=0, number=0, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='UNKNOWN', index=1, number=1, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='POLICY_FINDING', index=2, number=2, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='POLICY_TOPIC_NOT_FOUND', index=3, number=3, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=155, + serialized_end=253, +) +_sym_db.RegisterEnumDescriptor(_POLICYFINDINGERRORENUM_POLICYFINDINGERROR) + + +_POLICYFINDINGERRORENUM = _descriptor.Descriptor( + name='PolicyFindingErrorEnum', + full_name='google.ads.googleads.v4.errors.PolicyFindingErrorEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _POLICYFINDINGERRORENUM_POLICYFINDINGERROR, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=129, + serialized_end=253, +) + +_POLICYFINDINGERRORENUM_POLICYFINDINGERROR.containing_type = _POLICYFINDINGERRORENUM +DESCRIPTOR.message_types_by_name['PolicyFindingErrorEnum'] = _POLICYFINDINGERRORENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +PolicyFindingErrorEnum = _reflection.GeneratedProtocolMessageType('PolicyFindingErrorEnum', (_message.Message,), dict( + DESCRIPTOR = _POLICYFINDINGERRORENUM, + __module__ = 'google.ads.googleads_v4.proto.errors.policy_finding_error_pb2' + , + __doc__ = """Container for enum describing possible policy finding errors. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.errors.PolicyFindingErrorEnum) + )) +_sym_db.RegisterMessage(PolicyFindingErrorEnum) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/resources/ad_group_criterion_simulation_pb2_grpc.py b/google/ads/google_ads/v4/proto/errors/policy_finding_error_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/resources/ad_group_criterion_simulation_pb2_grpc.py rename to google/ads/google_ads/v4/proto/errors/policy_finding_error_pb2_grpc.py diff --git a/google/ads/google_ads/v1/proto/errors/policy_validation_parameter_error_pb2.py b/google/ads/google_ads/v4/proto/errors/policy_validation_parameter_error_pb2.py similarity index 77% rename from google/ads/google_ads/v1/proto/errors/policy_validation_parameter_error_pb2.py rename to google/ads/google_ads/v4/proto/errors/policy_validation_parameter_error_pb2.py index 2cf51b54f..b1b970984 100644 --- a/google/ads/google_ads/v1/proto/errors/policy_validation_parameter_error_pb2.py +++ b/google/ads/google_ads/v4/proto/errors/policy_validation_parameter_error_pb2.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/errors/policy_validation_parameter_error.proto +# source: google/ads/googleads_v4/proto/errors/policy_validation_parameter_error.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) @@ -17,11 +17,11 @@ DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/errors/policy_validation_parameter_error.proto', - package='google.ads.googleads.v1.errors', + name='google/ads/googleads_v4/proto/errors/policy_validation_parameter_error.proto', + package='google.ads.googleads.v4.errors', syntax='proto3', - serialized_options=_b('\n\"com.google.ads.googleads.v1.errorsB#PolicyValidationParameterErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V1.Errors\312\002\036Google\\Ads\\GoogleAds\\V1\\Errors\352\002\"Google::Ads::GoogleAds::V1::Errors'), - serialized_pb=_b('\nLgoogle/ads/googleads_v1/proto/errors/policy_validation_parameter_error.proto\x12\x1egoogle.ads.googleads.v1.errors\x1a\x1cgoogle/api/annotations.proto\"\xa2\x02\n\"PolicyValidationParameterErrorEnum\"\xfb\x01\n\x1ePolicyValidationParameterError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x33\n/UNSUPPORTED_AD_TYPE_FOR_IGNORABLE_POLICY_TOPICS\x10\x02\x12\x38\n4UNSUPPORTED_AD_TYPE_FOR_EXEMPT_POLICY_VIOLATION_KEYS\x10\x03\x12L\nHCANNOT_SET_BOTH_IGNORABLE_POLICY_TOPICS_AND_EXEMPT_POLICY_VIOLATION_KEYS\x10\x04\x42\xfe\x01\n\"com.google.ads.googleads.v1.errorsB#PolicyValidationParameterErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V1.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V1\\Errors\xea\x02\"Google::Ads::GoogleAds::V1::Errorsb\x06proto3') + serialized_options=_b('\n\"com.google.ads.googleads.v4.errorsB#PolicyValidationParameterErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V4.Errors\312\002\036Google\\Ads\\GoogleAds\\V4\\Errors\352\002\"Google::Ads::GoogleAds::V4::Errors'), + serialized_pb=_b('\nLgoogle/ads/googleads_v4/proto/errors/policy_validation_parameter_error.proto\x12\x1egoogle.ads.googleads.v4.errors\x1a\x1cgoogle/api/annotations.proto\"\xa2\x02\n\"PolicyValidationParameterErrorEnum\"\xfb\x01\n\x1ePolicyValidationParameterError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x33\n/UNSUPPORTED_AD_TYPE_FOR_IGNORABLE_POLICY_TOPICS\x10\x02\x12\x38\n4UNSUPPORTED_AD_TYPE_FOR_EXEMPT_POLICY_VIOLATION_KEYS\x10\x03\x12L\nHCANNOT_SET_BOTH_IGNORABLE_POLICY_TOPICS_AND_EXEMPT_POLICY_VIOLATION_KEYS\x10\x04\x42\xfe\x01\n\"com.google.ads.googleads.v4.errorsB#PolicyValidationParameterErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V4.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V4\\Errors\xea\x02\"Google::Ads::GoogleAds::V4::Errorsb\x06proto3') , dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) @@ -29,7 +29,7 @@ _POLICYVALIDATIONPARAMETERERRORENUM_POLICYVALIDATIONPARAMETERERROR = _descriptor.EnumDescriptor( name='PolicyValidationParameterError', - full_name='google.ads.googleads.v1.errors.PolicyValidationParameterErrorEnum.PolicyValidationParameterError', + full_name='google.ads.googleads.v4.errors.PolicyValidationParameterErrorEnum.PolicyValidationParameterError', filename=None, file=DESCRIPTOR, values=[ @@ -64,7 +64,7 @@ _POLICYVALIDATIONPARAMETERERRORENUM = _descriptor.Descriptor( name='PolicyValidationParameterErrorEnum', - full_name='google.ads.googleads.v1.errors.PolicyValidationParameterErrorEnum', + full_name='google.ads.googleads.v4.errors.PolicyValidationParameterErrorEnum', filename=None, file=DESCRIPTOR, containing_type=None, @@ -92,12 +92,12 @@ PolicyValidationParameterErrorEnum = _reflection.GeneratedProtocolMessageType('PolicyValidationParameterErrorEnum', (_message.Message,), dict( DESCRIPTOR = _POLICYVALIDATIONPARAMETERERRORENUM, - __module__ = 'google.ads.googleads_v1.proto.errors.policy_validation_parameter_error_pb2' + __module__ = 'google.ads.googleads_v4.proto.errors.policy_validation_parameter_error_pb2' , __doc__ = """Container for enum describing possible policy validation parameter errors. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.errors.PolicyValidationParameterErrorEnum) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.errors.PolicyValidationParameterErrorEnum) )) _sym_db.RegisterMessage(PolicyValidationParameterErrorEnum) diff --git a/google/ads/google_ads/v1/proto/resources/ad_group_extension_setting_pb2_grpc.py b/google/ads/google_ads/v4/proto/errors/policy_validation_parameter_error_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/resources/ad_group_extension_setting_pb2_grpc.py rename to google/ads/google_ads/v4/proto/errors/policy_validation_parameter_error_pb2_grpc.py diff --git a/google/ads/google_ads/v4/proto/errors/policy_violation_error_pb2.py b/google/ads/google_ads/v4/proto/errors/policy_violation_error_pb2.py new file mode 100644 index 000000000..a59e2da36 --- /dev/null +++ b/google/ads/google_ads/v4/proto/errors/policy_violation_error_pb2.py @@ -0,0 +1,97 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/errors/policy_violation_error.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/errors/policy_violation_error.proto', + package='google.ads.googleads.v4.errors', + syntax='proto3', + serialized_options=_b('\n\"com.google.ads.googleads.v4.errorsB\031PolicyViolationErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V4.Errors\312\002\036Google\\Ads\\GoogleAds\\V4\\Errors\352\002\"Google::Ads::GoogleAds::V4::Errors'), + serialized_pb=_b('\nAgoogle/ads/googleads_v4/proto/errors/policy_violation_error.proto\x12\x1egoogle.ads.googleads.v4.errors\x1a\x1cgoogle/api/annotations.proto\"b\n\x18PolicyViolationErrorEnum\"F\n\x14PolicyViolationError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x10\n\x0cPOLICY_ERROR\x10\x02\x42\xf4\x01\n\"com.google.ads.googleads.v4.errorsB\x19PolicyViolationErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V4.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V4\\Errors\xea\x02\"Google::Ads::GoogleAds::V4::Errorsb\x06proto3') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_POLICYVIOLATIONERRORENUM_POLICYVIOLATIONERROR = _descriptor.EnumDescriptor( + name='PolicyViolationError', + full_name='google.ads.googleads.v4.errors.PolicyViolationErrorEnum.PolicyViolationError', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='UNSPECIFIED', index=0, number=0, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='UNKNOWN', index=1, number=1, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='POLICY_ERROR', index=2, number=2, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=159, + serialized_end=229, +) +_sym_db.RegisterEnumDescriptor(_POLICYVIOLATIONERRORENUM_POLICYVIOLATIONERROR) + + +_POLICYVIOLATIONERRORENUM = _descriptor.Descriptor( + name='PolicyViolationErrorEnum', + full_name='google.ads.googleads.v4.errors.PolicyViolationErrorEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _POLICYVIOLATIONERRORENUM_POLICYVIOLATIONERROR, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=131, + serialized_end=229, +) + +_POLICYVIOLATIONERRORENUM_POLICYVIOLATIONERROR.containing_type = _POLICYVIOLATIONERRORENUM +DESCRIPTOR.message_types_by_name['PolicyViolationErrorEnum'] = _POLICYVIOLATIONERRORENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +PolicyViolationErrorEnum = _reflection.GeneratedProtocolMessageType('PolicyViolationErrorEnum', (_message.Message,), dict( + DESCRIPTOR = _POLICYVIOLATIONERRORENUM, + __module__ = 'google.ads.googleads_v4.proto.errors.policy_violation_error_pb2' + , + __doc__ = """Container for enum describing possible policy violation errors. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.errors.PolicyViolationErrorEnum) + )) +_sym_db.RegisterMessage(PolicyViolationErrorEnum) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/resources/ad_group_feed_pb2_grpc.py b/google/ads/google_ads/v4/proto/errors/policy_violation_error_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/resources/ad_group_feed_pb2_grpc.py rename to google/ads/google_ads/v4/proto/errors/policy_violation_error_pb2_grpc.py diff --git a/google/ads/google_ads/v4/proto/errors/query_error_pb2.py b/google/ads/google_ads/v4/proto/errors/query_error_pb2.py new file mode 100644 index 000000000..cacbbac11 --- /dev/null +++ b/google/ads/google_ads/v4/proto/errors/query_error_pb2.py @@ -0,0 +1,305 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/errors/query_error.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/errors/query_error.proto', + package='google.ads.googleads.v4.errors', + syntax='proto3', + serialized_options=_b('\n\"com.google.ads.googleads.v4.errorsB\017QueryErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V4.Errors\312\002\036Google\\Ads\\GoogleAds\\V4\\Errors\352\002\"Google::Ads::GoogleAds::V4::Errors'), + serialized_pb=_b('\n6google/ads/googleads_v4/proto/errors/query_error.proto\x12\x1egoogle.ads.googleads.v4.errors\x1a\x1cgoogle/api/annotations.proto\"\xd3\r\n\x0eQueryErrorEnum\"\xc0\r\n\nQueryError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0f\n\x0bQUERY_ERROR\x10\x32\x12\x15\n\x11\x42\x41\x44_ENUM_CONSTANT\x10\x12\x12\x17\n\x13\x42\x41\x44_ESCAPE_SEQUENCE\x10\x07\x12\x12\n\x0e\x42\x41\x44_FIELD_NAME\x10\x0c\x12\x13\n\x0f\x42\x41\x44_LIMIT_VALUE\x10\x0f\x12\x0e\n\nBAD_NUMBER\x10\x05\x12\x10\n\x0c\x42\x41\x44_OPERATOR\x10\x03\x12\x16\n\x12\x42\x41\x44_PARAMETER_NAME\x10=\x12\x17\n\x13\x42\x41\x44_PARAMETER_VALUE\x10>\x12$\n BAD_RESOURCE_TYPE_IN_FROM_CLAUSE\x10-\x12\x0e\n\nBAD_SYMBOL\x10\x02\x12\r\n\tBAD_VALUE\x10\x04\x12\x17\n\x13\x44\x41TE_RANGE_TOO_WIDE\x10$\x12\x19\n\x15\x44\x41TE_RANGE_TOO_NARROW\x10<\x12\x10\n\x0c\x45XPECTED_AND\x10\x1e\x12\x0f\n\x0b\x45XPECTED_BY\x10\x0e\x12-\n)EXPECTED_DIMENSION_FIELD_IN_SELECT_CLAUSE\x10%\x12\"\n\x1e\x45XPECTED_FILTERS_ON_DATE_RANGE\x10\x37\x12\x11\n\rEXPECTED_FROM\x10,\x12\x11\n\rEXPECTED_LIST\x10)\x12.\n*EXPECTED_REFERENCED_FIELD_IN_SELECT_CLAUSE\x10\x10\x12\x13\n\x0f\x45XPECTED_SELECT\x10\r\x12\x19\n\x15\x45XPECTED_SINGLE_VALUE\x10*\x12(\n$EXPECTED_VALUE_WITH_BETWEEN_OPERATOR\x10\x1d\x12\x17\n\x13INVALID_DATE_FORMAT\x10&\x12\x18\n\x14INVALID_STRING_VALUE\x10\x39\x12\'\n#INVALID_VALUE_WITH_BETWEEN_OPERATOR\x10\x1a\x12&\n\"INVALID_VALUE_WITH_DURING_OPERATOR\x10\x16\x12$\n INVALID_VALUE_WITH_LIKE_OPERATOR\x10\x38\x12\x1b\n\x17OPERATOR_FIELD_MISMATCH\x10#\x12&\n\"PROHIBITED_EMPTY_LIST_IN_CONDITION\x10\x1c\x12\x1c\n\x18PROHIBITED_ENUM_CONSTANT\x10\x36\x12\x31\n-PROHIBITED_FIELD_COMBINATION_IN_SELECT_CLAUSE\x10\x1f\x12\'\n#PROHIBITED_FIELD_IN_ORDER_BY_CLAUSE\x10(\x12%\n!PROHIBITED_FIELD_IN_SELECT_CLAUSE\x10\x17\x12$\n PROHIBITED_FIELD_IN_WHERE_CLAUSE\x10\x18\x12+\n\'PROHIBITED_RESOURCE_TYPE_IN_FROM_CLAUSE\x10+\x12-\n)PROHIBITED_RESOURCE_TYPE_IN_SELECT_CLAUSE\x10\x30\x12,\n(PROHIBITED_RESOURCE_TYPE_IN_WHERE_CLAUSE\x10:\x12/\n+PROHIBITED_METRIC_IN_SELECT_OR_WHERE_CLAUSE\x10\x31\x12\x30\n,PROHIBITED_SEGMENT_IN_SELECT_OR_WHERE_CLAUSE\x10\x33\x12<\n8PROHIBITED_SEGMENT_WITH_METRIC_IN_SELECT_OR_WHERE_CLAUSE\x10\x35\x12\x17\n\x13LIMIT_VALUE_TOO_LOW\x10\x19\x12 \n\x1cPROHIBITED_NEWLINE_IN_STRING\x10\x08\x12(\n$PROHIBITED_VALUE_COMBINATION_IN_LIST\x10\n\x12\x36\n2PROHIBITED_VALUE_COMBINATION_WITH_BETWEEN_OPERATOR\x10\x15\x12\x19\n\x15STRING_NOT_TERMINATED\x10\x06\x12\x15\n\x11TOO_MANY_SEGMENTS\x10\"\x12\x1b\n\x17UNEXPECTED_END_OF_QUERY\x10\t\x12\x1a\n\x16UNEXPECTED_FROM_CLAUSE\x10/\x12\x16\n\x12UNRECOGNIZED_FIELD\x10 \x12\x14\n\x10UNEXPECTED_INPUT\x10\x0b\x12!\n\x1dREQUESTED_METRICS_FOR_MANAGER\x10;B\xea\x01\n\"com.google.ads.googleads.v4.errorsB\x0fQueryErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V4.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V4\\Errors\xea\x02\"Google::Ads::GoogleAds::V4::Errorsb\x06proto3') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_QUERYERRORENUM_QUERYERROR = _descriptor.EnumDescriptor( + name='QueryError', + full_name='google.ads.googleads.v4.errors.QueryErrorEnum.QueryError', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='UNSPECIFIED', index=0, number=0, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='UNKNOWN', index=1, number=1, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='QUERY_ERROR', index=2, number=50, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='BAD_ENUM_CONSTANT', index=3, number=18, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='BAD_ESCAPE_SEQUENCE', index=4, number=7, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='BAD_FIELD_NAME', index=5, number=12, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='BAD_LIMIT_VALUE', index=6, number=15, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='BAD_NUMBER', index=7, number=5, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='BAD_OPERATOR', index=8, number=3, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='BAD_PARAMETER_NAME', index=9, number=61, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='BAD_PARAMETER_VALUE', index=10, number=62, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='BAD_RESOURCE_TYPE_IN_FROM_CLAUSE', index=11, number=45, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='BAD_SYMBOL', index=12, number=2, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='BAD_VALUE', index=13, number=4, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='DATE_RANGE_TOO_WIDE', index=14, number=36, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='DATE_RANGE_TOO_NARROW', index=15, number=60, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='EXPECTED_AND', index=16, number=30, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='EXPECTED_BY', index=17, number=14, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='EXPECTED_DIMENSION_FIELD_IN_SELECT_CLAUSE', index=18, number=37, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='EXPECTED_FILTERS_ON_DATE_RANGE', index=19, number=55, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='EXPECTED_FROM', index=20, number=44, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='EXPECTED_LIST', index=21, number=41, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='EXPECTED_REFERENCED_FIELD_IN_SELECT_CLAUSE', index=22, number=16, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='EXPECTED_SELECT', index=23, number=13, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='EXPECTED_SINGLE_VALUE', index=24, number=42, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='EXPECTED_VALUE_WITH_BETWEEN_OPERATOR', index=25, number=29, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_DATE_FORMAT', index=26, number=38, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_STRING_VALUE', index=27, number=57, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_VALUE_WITH_BETWEEN_OPERATOR', index=28, number=26, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_VALUE_WITH_DURING_OPERATOR', index=29, number=22, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_VALUE_WITH_LIKE_OPERATOR', index=30, number=56, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='OPERATOR_FIELD_MISMATCH', index=31, number=35, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='PROHIBITED_EMPTY_LIST_IN_CONDITION', index=32, number=28, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='PROHIBITED_ENUM_CONSTANT', index=33, number=54, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='PROHIBITED_FIELD_COMBINATION_IN_SELECT_CLAUSE', index=34, number=31, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='PROHIBITED_FIELD_IN_ORDER_BY_CLAUSE', index=35, number=40, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='PROHIBITED_FIELD_IN_SELECT_CLAUSE', index=36, number=23, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='PROHIBITED_FIELD_IN_WHERE_CLAUSE', index=37, number=24, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='PROHIBITED_RESOURCE_TYPE_IN_FROM_CLAUSE', index=38, number=43, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='PROHIBITED_RESOURCE_TYPE_IN_SELECT_CLAUSE', index=39, number=48, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='PROHIBITED_RESOURCE_TYPE_IN_WHERE_CLAUSE', index=40, number=58, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='PROHIBITED_METRIC_IN_SELECT_OR_WHERE_CLAUSE', index=41, number=49, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='PROHIBITED_SEGMENT_IN_SELECT_OR_WHERE_CLAUSE', index=42, number=51, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='PROHIBITED_SEGMENT_WITH_METRIC_IN_SELECT_OR_WHERE_CLAUSE', index=43, number=53, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='LIMIT_VALUE_TOO_LOW', index=44, number=25, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='PROHIBITED_NEWLINE_IN_STRING', index=45, number=8, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='PROHIBITED_VALUE_COMBINATION_IN_LIST', index=46, number=10, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='PROHIBITED_VALUE_COMBINATION_WITH_BETWEEN_OPERATOR', index=47, number=21, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='STRING_NOT_TERMINATED', index=48, number=6, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='TOO_MANY_SEGMENTS', index=49, number=34, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='UNEXPECTED_END_OF_QUERY', index=50, number=9, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='UNEXPECTED_FROM_CLAUSE', index=51, number=47, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='UNRECOGNIZED_FIELD', index=52, number=32, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='UNEXPECTED_INPUT', index=53, number=11, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='REQUESTED_METRICS_FOR_MANAGER', index=54, number=59, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=140, + serialized_end=1868, +) +_sym_db.RegisterEnumDescriptor(_QUERYERRORENUM_QUERYERROR) + + +_QUERYERRORENUM = _descriptor.Descriptor( + name='QueryErrorEnum', + full_name='google.ads.googleads.v4.errors.QueryErrorEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _QUERYERRORENUM_QUERYERROR, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=121, + serialized_end=1868, +) + +_QUERYERRORENUM_QUERYERROR.containing_type = _QUERYERRORENUM +DESCRIPTOR.message_types_by_name['QueryErrorEnum'] = _QUERYERRORENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +QueryErrorEnum = _reflection.GeneratedProtocolMessageType('QueryErrorEnum', (_message.Message,), dict( + DESCRIPTOR = _QUERYERRORENUM, + __module__ = 'google.ads.googleads_v4.proto.errors.query_error_pb2' + , + __doc__ = """Container for enum describing possible query errors. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.errors.QueryErrorEnum) + )) +_sym_db.RegisterMessage(QueryErrorEnum) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/resources/ad_group_label_pb2_grpc.py b/google/ads/google_ads/v4/proto/errors/query_error_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/resources/ad_group_label_pb2_grpc.py rename to google/ads/google_ads/v4/proto/errors/query_error_pb2_grpc.py diff --git a/google/ads/google_ads/v4/proto/errors/quota_error_pb2.py b/google/ads/google_ads/v4/proto/errors/quota_error_pb2.py new file mode 100644 index 000000000..902e2a80a --- /dev/null +++ b/google/ads/google_ads/v4/proto/errors/quota_error_pb2.py @@ -0,0 +1,105 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/errors/quota_error.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/errors/quota_error.proto', + package='google.ads.googleads.v4.errors', + syntax='proto3', + serialized_options=_b('\n\"com.google.ads.googleads.v4.errorsB\017QuotaErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V4.Errors\312\002\036Google\\Ads\\GoogleAds\\V4\\Errors\352\002\"Google::Ads::GoogleAds::V4::Errors'), + serialized_pb=_b('\n6google/ads/googleads_v4/proto/errors/quota_error.proto\x12\x1egoogle.ads.googleads.v4.errors\x1a\x1cgoogle/api/annotations.proto\"\x8f\x01\n\x0eQuotaErrorEnum\"}\n\nQuotaError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x16\n\x12RESOURCE_EXHAUSTED\x10\x02\x12\x15\n\x11\x41\x43\x43\x45SS_PROHIBITED\x10\x03\x12\"\n\x1eRESOURCE_TEMPORARILY_EXHAUSTED\x10\x04\x42\xea\x01\n\"com.google.ads.googleads.v4.errorsB\x0fQuotaErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V4.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V4\\Errors\xea\x02\"Google::Ads::GoogleAds::V4::Errorsb\x06proto3') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_QUOTAERRORENUM_QUOTAERROR = _descriptor.EnumDescriptor( + name='QuotaError', + full_name='google.ads.googleads.v4.errors.QuotaErrorEnum.QuotaError', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='UNSPECIFIED', index=0, number=0, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='UNKNOWN', index=1, number=1, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='RESOURCE_EXHAUSTED', index=2, number=2, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='ACCESS_PROHIBITED', index=3, number=3, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='RESOURCE_TEMPORARILY_EXHAUSTED', index=4, number=4, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=139, + serialized_end=264, +) +_sym_db.RegisterEnumDescriptor(_QUOTAERRORENUM_QUOTAERROR) + + +_QUOTAERRORENUM = _descriptor.Descriptor( + name='QuotaErrorEnum', + full_name='google.ads.googleads.v4.errors.QuotaErrorEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _QUOTAERRORENUM_QUOTAERROR, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=121, + serialized_end=264, +) + +_QUOTAERRORENUM_QUOTAERROR.containing_type = _QUOTAERRORENUM +DESCRIPTOR.message_types_by_name['QuotaErrorEnum'] = _QUOTAERRORENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +QuotaErrorEnum = _reflection.GeneratedProtocolMessageType('QuotaErrorEnum', (_message.Message,), dict( + DESCRIPTOR = _QUOTAERRORENUM, + __module__ = 'google.ads.googleads_v4.proto.errors.quota_error_pb2' + , + __doc__ = """Container for enum describing possible quota errors. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.errors.QuotaErrorEnum) + )) +_sym_db.RegisterMessage(QuotaErrorEnum) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/resources/ad_group_pb2_grpc.py b/google/ads/google_ads/v4/proto/errors/quota_error_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/resources/ad_group_pb2_grpc.py rename to google/ads/google_ads/v4/proto/errors/quota_error_pb2_grpc.py diff --git a/google/ads/google_ads/v4/proto/errors/range_error_pb2.py b/google/ads/google_ads/v4/proto/errors/range_error_pb2.py new file mode 100644 index 000000000..8de4436d6 --- /dev/null +++ b/google/ads/google_ads/v4/proto/errors/range_error_pb2.py @@ -0,0 +1,101 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/errors/range_error.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/errors/range_error.proto', + package='google.ads.googleads.v4.errors', + syntax='proto3', + serialized_options=_b('\n\"com.google.ads.googleads.v4.errorsB\017RangeErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V4.Errors\312\002\036Google\\Ads\\GoogleAds\\V4\\Errors\352\002\"Google::Ads::GoogleAds::V4::Errors'), + serialized_pb=_b('\n6google/ads/googleads_v4/proto/errors/range_error.proto\x12\x1egoogle.ads.googleads.v4.errors\x1a\x1cgoogle/api/annotations.proto\"W\n\x0eRangeErrorEnum\"E\n\nRangeError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0b\n\x07TOO_LOW\x10\x02\x12\x0c\n\x08TOO_HIGH\x10\x03\x42\xea\x01\n\"com.google.ads.googleads.v4.errorsB\x0fRangeErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V4.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V4\\Errors\xea\x02\"Google::Ads::GoogleAds::V4::Errorsb\x06proto3') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_RANGEERRORENUM_RANGEERROR = _descriptor.EnumDescriptor( + name='RangeError', + full_name='google.ads.googleads.v4.errors.RangeErrorEnum.RangeError', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='UNSPECIFIED', index=0, number=0, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='UNKNOWN', index=1, number=1, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='TOO_LOW', index=2, number=2, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='TOO_HIGH', index=3, number=3, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=138, + serialized_end=207, +) +_sym_db.RegisterEnumDescriptor(_RANGEERRORENUM_RANGEERROR) + + +_RANGEERRORENUM = _descriptor.Descriptor( + name='RangeErrorEnum', + full_name='google.ads.googleads.v4.errors.RangeErrorEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _RANGEERRORENUM_RANGEERROR, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=120, + serialized_end=207, +) + +_RANGEERRORENUM_RANGEERROR.containing_type = _RANGEERRORENUM +DESCRIPTOR.message_types_by_name['RangeErrorEnum'] = _RANGEERRORENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +RangeErrorEnum = _reflection.GeneratedProtocolMessageType('RangeErrorEnum', (_message.Message,), dict( + DESCRIPTOR = _RANGEERRORENUM, + __module__ = 'google.ads.googleads_v4.proto.errors.range_error_pb2' + , + __doc__ = """Container for enum describing possible range errors. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.errors.RangeErrorEnum) + )) +_sym_db.RegisterMessage(RangeErrorEnum) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/resources/ad_group_simulation_pb2_grpc.py b/google/ads/google_ads/v4/proto/errors/range_error_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/resources/ad_group_simulation_pb2_grpc.py rename to google/ads/google_ads/v4/proto/errors/range_error_pb2_grpc.py diff --git a/google/ads/google_ads/v4/proto/errors/reach_plan_error_pb2.py b/google/ads/google_ads/v4/proto/errors/reach_plan_error_pb2.py new file mode 100644 index 000000000..f76b45b99 --- /dev/null +++ b/google/ads/google_ads/v4/proto/errors/reach_plan_error_pb2.py @@ -0,0 +1,94 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/errors/reach_plan_error.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/errors/reach_plan_error.proto', + package='google.ads.googleads.v4.errors', + syntax='proto3', + serialized_options=_b('\n\"com.google.ads.googleads.v4.errorsB\023ReachPlanErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V4.Errors\312\002\036Google\\Ads\\GoogleAds\\V4\\Errors\352\002\"Google::Ads::GoogleAds::V4::Errors'), + serialized_pb=_b('\n;google/ads/googleads_v4/proto/errors/reach_plan_error.proto\x12\x1egoogle.ads.googleads.v4.errors\x1a\x1cgoogle/api/annotations.proto\"D\n\x12ReachPlanErrorEnum\".\n\x0eReachPlanError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x42\xee\x01\n\"com.google.ads.googleads.v4.errorsB\x13ReachPlanErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V4.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V4\\Errors\xea\x02\"Google::Ads::GoogleAds::V4::Errorsb\x06proto3') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_REACHPLANERRORENUM_REACHPLANERROR = _descriptor.EnumDescriptor( + name='ReachPlanError', + full_name='google.ads.googleads.v4.errors.ReachPlanErrorEnum.ReachPlanError', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='UNSPECIFIED', index=0, number=0, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='UNKNOWN', index=1, number=1, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=147, + serialized_end=193, +) +_sym_db.RegisterEnumDescriptor(_REACHPLANERRORENUM_REACHPLANERROR) + + +_REACHPLANERRORENUM = _descriptor.Descriptor( + name='ReachPlanErrorEnum', + full_name='google.ads.googleads.v4.errors.ReachPlanErrorEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _REACHPLANERRORENUM_REACHPLANERROR, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=125, + serialized_end=193, +) + +_REACHPLANERRORENUM_REACHPLANERROR.containing_type = _REACHPLANERRORENUM +DESCRIPTOR.message_types_by_name['ReachPlanErrorEnum'] = _REACHPLANERRORENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +ReachPlanErrorEnum = _reflection.GeneratedProtocolMessageType('ReachPlanErrorEnum', (_message.Message,), dict( + DESCRIPTOR = _REACHPLANERRORENUM, + __module__ = 'google.ads.googleads_v4.proto.errors.reach_plan_error_pb2' + , + __doc__ = """Container for enum describing possible errors returned from the + ReachPlanService. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.errors.ReachPlanErrorEnum) + )) +_sym_db.RegisterMessage(ReachPlanErrorEnum) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/resources/ad_parameter_pb2_grpc.py b/google/ads/google_ads/v4/proto/errors/reach_plan_error_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/resources/ad_parameter_pb2_grpc.py rename to google/ads/google_ads/v4/proto/errors/reach_plan_error_pb2_grpc.py diff --git a/google/ads/google_ads/v1/proto/errors/recommendation_error_pb2.py b/google/ads/google_ads/v4/proto/errors/recommendation_error_pb2.py similarity index 83% rename from google/ads/google_ads/v1/proto/errors/recommendation_error_pb2.py rename to google/ads/google_ads/v4/proto/errors/recommendation_error_pb2.py index 428a0f079..52d38b24c 100644 --- a/google/ads/google_ads/v1/proto/errors/recommendation_error_pb2.py +++ b/google/ads/google_ads/v4/proto/errors/recommendation_error_pb2.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/errors/recommendation_error.proto +# source: google/ads/googleads_v4/proto/errors/recommendation_error.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) @@ -17,11 +17,11 @@ DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/errors/recommendation_error.proto', - package='google.ads.googleads.v1.errors', + name='google/ads/googleads_v4/proto/errors/recommendation_error.proto', + package='google.ads.googleads.v4.errors', syntax='proto3', - serialized_options=_b('\n\"com.google.ads.googleads.v1.errorsB\030RecommendationErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V1.Errors\312\002\036Google\\Ads\\GoogleAds\\V1\\Errors\352\002\"Google::Ads::GoogleAds::V1::Errors'), - serialized_pb=_b('\n?google/ads/googleads_v1/proto/errors/recommendation_error.proto\x12\x1egoogle.ads.googleads.v1.errors\x1a\x1cgoogle/api/annotations.proto\"\xda\x03\n\x17RecommendationErrorEnum\"\xbe\x03\n\x13RecommendationError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x1b\n\x17\x42UDGET_AMOUNT_TOO_SMALL\x10\x02\x12\x1b\n\x17\x42UDGET_AMOUNT_TOO_LARGE\x10\x03\x12\x19\n\x15INVALID_BUDGET_AMOUNT\x10\x04\x12\x10\n\x0cPOLICY_ERROR\x10\x05\x12\x16\n\x12INVALID_BID_AMOUNT\x10\x06\x12\x19\n\x15\x41\x44GROUP_KEYWORD_LIMIT\x10\x07\x12\"\n\x1eRECOMMENDATION_ALREADY_APPLIED\x10\x08\x12\x1e\n\x1aRECOMMENDATION_INVALIDATED\x10\t\x12\x17\n\x13TOO_MANY_OPERATIONS\x10\n\x12\x11\n\rNO_OPERATIONS\x10\x0b\x12!\n\x1d\x44IFFERENT_TYPES_NOT_SUPPORTED\x10\x0c\x12\x1b\n\x17\x44UPLICATE_RESOURCE_NAME\x10\r\x12$\n RECOMMENDATION_ALREADY_DISMISSED\x10\x0e\x12\x19\n\x15INVALID_APPLY_REQUEST\x10\x0f\x42\xf3\x01\n\"com.google.ads.googleads.v1.errorsB\x18RecommendationErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V1.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V1\\Errors\xea\x02\"Google::Ads::GoogleAds::V1::Errorsb\x06proto3') + serialized_options=_b('\n\"com.google.ads.googleads.v4.errorsB\030RecommendationErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V4.Errors\312\002\036Google\\Ads\\GoogleAds\\V4\\Errors\352\002\"Google::Ads::GoogleAds::V4::Errors'), + serialized_pb=_b('\n?google/ads/googleads_v4/proto/errors/recommendation_error.proto\x12\x1egoogle.ads.googleads.v4.errors\x1a\x1cgoogle/api/annotations.proto\"\xda\x03\n\x17RecommendationErrorEnum\"\xbe\x03\n\x13RecommendationError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x1b\n\x17\x42UDGET_AMOUNT_TOO_SMALL\x10\x02\x12\x1b\n\x17\x42UDGET_AMOUNT_TOO_LARGE\x10\x03\x12\x19\n\x15INVALID_BUDGET_AMOUNT\x10\x04\x12\x10\n\x0cPOLICY_ERROR\x10\x05\x12\x16\n\x12INVALID_BID_AMOUNT\x10\x06\x12\x19\n\x15\x41\x44GROUP_KEYWORD_LIMIT\x10\x07\x12\"\n\x1eRECOMMENDATION_ALREADY_APPLIED\x10\x08\x12\x1e\n\x1aRECOMMENDATION_INVALIDATED\x10\t\x12\x17\n\x13TOO_MANY_OPERATIONS\x10\n\x12\x11\n\rNO_OPERATIONS\x10\x0b\x12!\n\x1d\x44IFFERENT_TYPES_NOT_SUPPORTED\x10\x0c\x12\x1b\n\x17\x44UPLICATE_RESOURCE_NAME\x10\r\x12$\n RECOMMENDATION_ALREADY_DISMISSED\x10\x0e\x12\x19\n\x15INVALID_APPLY_REQUEST\x10\x0f\x42\xf3\x01\n\"com.google.ads.googleads.v4.errorsB\x18RecommendationErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V4.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V4\\Errors\xea\x02\"Google::Ads::GoogleAds::V4::Errorsb\x06proto3') , dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) @@ -29,7 +29,7 @@ _RECOMMENDATIONERRORENUM_RECOMMENDATIONERROR = _descriptor.EnumDescriptor( name='RecommendationError', - full_name='google.ads.googleads.v1.errors.RecommendationErrorEnum.RecommendationError', + full_name='google.ads.googleads.v4.errors.RecommendationErrorEnum.RecommendationError', filename=None, file=DESCRIPTOR, values=[ @@ -108,7 +108,7 @@ _RECOMMENDATIONERRORENUM = _descriptor.Descriptor( name='RecommendationErrorEnum', - full_name='google.ads.googleads.v1.errors.RecommendationErrorEnum', + full_name='google.ads.googleads.v4.errors.RecommendationErrorEnum', filename=None, file=DESCRIPTOR, containing_type=None, @@ -136,12 +136,12 @@ RecommendationErrorEnum = _reflection.GeneratedProtocolMessageType('RecommendationErrorEnum', (_message.Message,), dict( DESCRIPTOR = _RECOMMENDATIONERRORENUM, - __module__ = 'google.ads.googleads_v1.proto.errors.recommendation_error_pb2' + __module__ = 'google.ads.googleads_v4.proto.errors.recommendation_error_pb2' , __doc__ = """Container for enum describing possible errors from applying a recommendation. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.errors.RecommendationErrorEnum) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.errors.RecommendationErrorEnum) )) _sym_db.RegisterMessage(RecommendationErrorEnum) diff --git a/google/ads/google_ads/v1/proto/resources/ad_pb2_grpc.py b/google/ads/google_ads/v4/proto/errors/recommendation_error_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/resources/ad_pb2_grpc.py rename to google/ads/google_ads/v4/proto/errors/recommendation_error_pb2_grpc.py diff --git a/google/ads/google_ads/v4/proto/errors/region_code_error_pb2.py b/google/ads/google_ads/v4/proto/errors/region_code_error_pb2.py new file mode 100644 index 000000000..639000c72 --- /dev/null +++ b/google/ads/google_ads/v4/proto/errors/region_code_error_pb2.py @@ -0,0 +1,97 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/errors/region_code_error.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/errors/region_code_error.proto', + package='google.ads.googleads.v4.errors', + syntax='proto3', + serialized_options=_b('\n\"com.google.ads.googleads.v4.errorsB\024RegionCodeErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V4.Errors\312\002\036Google\\Ads\\GoogleAds\\V4\\Errors\352\002\"Google::Ads::GoogleAds::V4::Errors'), + serialized_pb=_b('\n\n:TARGET_ALL_IS_NOT_ALLOWED_FOR_PLACEMENT_IN_SEARCH_CAMPAIGN\x10\x0c\x12.\n*SETTING_VALUE_NOT_COMPATIBLE_WITH_CAMPAIGN\x10\x14\x42\xec\x01\n\"com.google.ads.googleads.v4.errorsB\x11SettingErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V4.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V4\\Errors\xea\x02\"Google::Ads::GoogleAds::V4::Errorsb\x06proto3') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_SETTINGERRORENUM_SETTINGERROR = _descriptor.EnumDescriptor( + name='SettingError', + full_name='google.ads.googleads.v4.errors.SettingErrorEnum.SettingError', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='UNSPECIFIED', index=0, number=0, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='UNKNOWN', index=1, number=1, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='SETTING_TYPE_IS_NOT_AVAILABLE', index=2, number=3, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='SETTING_TYPE_IS_NOT_COMPATIBLE_WITH_CAMPAIGN', index=3, number=4, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='TARGETING_SETTING_CONTAINS_INVALID_CRITERION_TYPE_GROUP', index=4, number=5, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='TARGETING_SETTING_DEMOGRAPHIC_CRITERION_TYPE_GROUPS_MUST_BE_SET_TO_TARGET_ALL', index=5, number=6, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='TARGETING_SETTING_CANNOT_CHANGE_TARGET_ALL_TO_FALSE_FOR_DEMOGRAPHIC_CRITERION_TYPE_GROUP', index=6, number=7, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='DYNAMIC_SEARCH_ADS_SETTING_AT_LEAST_ONE_FEED_ID_MUST_BE_PRESENT', index=7, number=8, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='DYNAMIC_SEARCH_ADS_SETTING_CONTAINS_INVALID_DOMAIN_NAME', index=8, number=9, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='DYNAMIC_SEARCH_ADS_SETTING_CONTAINS_SUBDOMAIN_NAME', index=9, number=10, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='DYNAMIC_SEARCH_ADS_SETTING_CONTAINS_INVALID_LANGUAGE_CODE', index=10, number=11, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='TARGET_ALL_IS_NOT_ALLOWED_FOR_PLACEMENT_IN_SEARCH_CAMPAIGN', index=11, number=12, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='SETTING_VALUE_NOT_COMPATIBLE_WITH_CAMPAIGN', index=12, number=20, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=144, + serialized_end=872, +) +_sym_db.RegisterEnumDescriptor(_SETTINGERRORENUM_SETTINGERROR) + + +_SETTINGERRORENUM = _descriptor.Descriptor( + name='SettingErrorEnum', + full_name='google.ads.googleads.v4.errors.SettingErrorEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _SETTINGERRORENUM_SETTINGERROR, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=123, + serialized_end=872, +) + +_SETTINGERRORENUM_SETTINGERROR.containing_type = _SETTINGERRORENUM +DESCRIPTOR.message_types_by_name['SettingErrorEnum'] = _SETTINGERRORENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +SettingErrorEnum = _reflection.GeneratedProtocolMessageType('SettingErrorEnum', (_message.Message,), dict( + DESCRIPTOR = _SETTINGERRORENUM, + __module__ = 'google.ads.googleads_v4.proto.errors.setting_error_pb2' + , + __doc__ = """Container for enum describing possible setting errors. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.errors.SettingErrorEnum) + )) +_sym_db.RegisterMessage(SettingErrorEnum) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/resources/billing_setup_pb2_grpc.py b/google/ads/google_ads/v4/proto/errors/setting_error_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/resources/billing_setup_pb2_grpc.py rename to google/ads/google_ads/v4/proto/errors/setting_error_pb2_grpc.py diff --git a/google/ads/google_ads/v4/proto/errors/shared_criterion_error_pb2.py b/google/ads/google_ads/v4/proto/errors/shared_criterion_error_pb2.py new file mode 100644 index 000000000..d736bb21f --- /dev/null +++ b/google/ads/google_ads/v4/proto/errors/shared_criterion_error_pb2.py @@ -0,0 +1,97 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/errors/shared_criterion_error.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/errors/shared_criterion_error.proto', + package='google.ads.googleads.v4.errors', + syntax='proto3', + serialized_options=_b('\n\"com.google.ads.googleads.v4.errorsB\031SharedCriterionErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V4.Errors\312\002\036Google\\Ads\\GoogleAds\\V4\\Errors\352\002\"Google::Ads::GoogleAds::V4::Errors'), + serialized_pb=_b('\nAgoogle/ads/googleads_v4/proto/errors/shared_criterion_error.proto\x12\x1egoogle.ads.googleads.v4.errors\x1a\x1cgoogle/api/annotations.proto\"\x84\x01\n\x18SharedCriterionErrorEnum\"h\n\x14SharedCriterionError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x32\n.CRITERION_TYPE_NOT_ALLOWED_FOR_SHARED_SET_TYPE\x10\x02\x42\xf4\x01\n\"com.google.ads.googleads.v4.errorsB\x19SharedCriterionErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V4.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V4\\Errors\xea\x02\"Google::Ads::GoogleAds::V4::Errorsb\x06proto3') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_SHAREDCRITERIONERRORENUM_SHAREDCRITERIONERROR = _descriptor.EnumDescriptor( + name='SharedCriterionError', + full_name='google.ads.googleads.v4.errors.SharedCriterionErrorEnum.SharedCriterionError', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='UNSPECIFIED', index=0, number=0, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='UNKNOWN', index=1, number=1, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CRITERION_TYPE_NOT_ALLOWED_FOR_SHARED_SET_TYPE', index=2, number=2, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=160, + serialized_end=264, +) +_sym_db.RegisterEnumDescriptor(_SHAREDCRITERIONERRORENUM_SHAREDCRITERIONERROR) + + +_SHAREDCRITERIONERRORENUM = _descriptor.Descriptor( + name='SharedCriterionErrorEnum', + full_name='google.ads.googleads.v4.errors.SharedCriterionErrorEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _SHAREDCRITERIONERRORENUM_SHAREDCRITERIONERROR, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=132, + serialized_end=264, +) + +_SHAREDCRITERIONERRORENUM_SHAREDCRITERIONERROR.containing_type = _SHAREDCRITERIONERRORENUM +DESCRIPTOR.message_types_by_name['SharedCriterionErrorEnum'] = _SHAREDCRITERIONERRORENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +SharedCriterionErrorEnum = _reflection.GeneratedProtocolMessageType('SharedCriterionErrorEnum', (_message.Message,), dict( + DESCRIPTOR = _SHAREDCRITERIONERRORENUM, + __module__ = 'google.ads.googleads_v4.proto.errors.shared_criterion_error_pb2' + , + __doc__ = """Container for enum describing possible shared criterion errors. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.errors.SharedCriterionErrorEnum) + )) +_sym_db.RegisterMessage(SharedCriterionErrorEnum) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/resources/campaign_audience_view_pb2_grpc.py b/google/ads/google_ads/v4/proto/errors/shared_criterion_error_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/resources/campaign_audience_view_pb2_grpc.py rename to google/ads/google_ads/v4/proto/errors/shared_criterion_error_pb2_grpc.py diff --git a/google/ads/google_ads/v1/proto/errors/shared_set_error_pb2.py b/google/ads/google_ads/v4/proto/errors/shared_set_error_pb2.py similarity index 75% rename from google/ads/google_ads/v1/proto/errors/shared_set_error_pb2.py rename to google/ads/google_ads/v4/proto/errors/shared_set_error_pb2.py index bee9dba0f..fdb05202a 100644 --- a/google/ads/google_ads/v1/proto/errors/shared_set_error_pb2.py +++ b/google/ads/google_ads/v4/proto/errors/shared_set_error_pb2.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/errors/shared_set_error.proto +# source: google/ads/googleads_v4/proto/errors/shared_set_error.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) @@ -17,11 +17,11 @@ DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/errors/shared_set_error.proto', - package='google.ads.googleads.v1.errors', + name='google/ads/googleads_v4/proto/errors/shared_set_error.proto', + package='google.ads.googleads.v4.errors', syntax='proto3', - serialized_options=_b('\n\"com.google.ads.googleads.v1.errorsB\023SharedSetErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V1.Errors\312\002\036Google\\Ads\\GoogleAds\\V1\\Errors\352\002\"Google::Ads::GoogleAds::V1::Errors'), - serialized_pb=_b('\n;google/ads/googleads_v1/proto/errors/shared_set_error.proto\x12\x1egoogle.ads.googleads.v1.errors\x1a\x1cgoogle/api/annotations.proto\"\xbc\x01\n\x12SharedSetErrorEnum\"\xa5\x01\n\x0eSharedSetError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x32\n.CUSTOMER_CANNOT_CREATE_SHARED_SET_OF_THIS_TYPE\x10\x02\x12\x12\n\x0e\x44UPLICATE_NAME\x10\x03\x12\x16\n\x12SHARED_SET_REMOVED\x10\x04\x12\x15\n\x11SHARED_SET_IN_USE\x10\x05\x42\xee\x01\n\"com.google.ads.googleads.v1.errorsB\x13SharedSetErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V1.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V1\\Errors\xea\x02\"Google::Ads::GoogleAds::V1::Errorsb\x06proto3') + serialized_options=_b('\n\"com.google.ads.googleads.v4.errorsB\023SharedSetErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V4.Errors\312\002\036Google\\Ads\\GoogleAds\\V4\\Errors\352\002\"Google::Ads::GoogleAds::V4::Errors'), + serialized_pb=_b('\n;google/ads/googleads_v4/proto/errors/shared_set_error.proto\x12\x1egoogle.ads.googleads.v4.errors\x1a\x1cgoogle/api/annotations.proto\"\xbc\x01\n\x12SharedSetErrorEnum\"\xa5\x01\n\x0eSharedSetError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x32\n.CUSTOMER_CANNOT_CREATE_SHARED_SET_OF_THIS_TYPE\x10\x02\x12\x12\n\x0e\x44UPLICATE_NAME\x10\x03\x12\x16\n\x12SHARED_SET_REMOVED\x10\x04\x12\x15\n\x11SHARED_SET_IN_USE\x10\x05\x42\xee\x01\n\"com.google.ads.googleads.v4.errorsB\x13SharedSetErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V4.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V4\\Errors\xea\x02\"Google::Ads::GoogleAds::V4::Errorsb\x06proto3') , dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) @@ -29,7 +29,7 @@ _SHAREDSETERRORENUM_SHAREDSETERROR = _descriptor.EnumDescriptor( name='SharedSetError', - full_name='google.ads.googleads.v1.errors.SharedSetErrorEnum.SharedSetError', + full_name='google.ads.googleads.v4.errors.SharedSetErrorEnum.SharedSetError', filename=None, file=DESCRIPTOR, values=[ @@ -68,7 +68,7 @@ _SHAREDSETERRORENUM = _descriptor.Descriptor( name='SharedSetErrorEnum', - full_name='google.ads.googleads.v1.errors.SharedSetErrorEnum', + full_name='google.ads.googleads.v4.errors.SharedSetErrorEnum', filename=None, file=DESCRIPTOR, containing_type=None, @@ -96,11 +96,11 @@ SharedSetErrorEnum = _reflection.GeneratedProtocolMessageType('SharedSetErrorEnum', (_message.Message,), dict( DESCRIPTOR = _SHAREDSETERRORENUM, - __module__ = 'google.ads.googleads_v1.proto.errors.shared_set_error_pb2' + __module__ = 'google.ads.googleads_v4.proto.errors.shared_set_error_pb2' , __doc__ = """Container for enum describing possible shared set errors. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.errors.SharedSetErrorEnum) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.errors.SharedSetErrorEnum) )) _sym_db.RegisterMessage(SharedSetErrorEnum) diff --git a/google/ads/google_ads/v1/proto/resources/campaign_bid_modifier_pb2_grpc.py b/google/ads/google_ads/v4/proto/errors/shared_set_error_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/resources/campaign_bid_modifier_pb2_grpc.py rename to google/ads/google_ads/v4/proto/errors/shared_set_error_pb2_grpc.py diff --git a/google/ads/google_ads/v4/proto/errors/size_limit_error_pb2.py b/google/ads/google_ads/v4/proto/errors/size_limit_error_pb2.py new file mode 100644 index 000000000..607ec51c1 --- /dev/null +++ b/google/ads/google_ads/v4/proto/errors/size_limit_error_pb2.py @@ -0,0 +1,101 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/errors/size_limit_error.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/errors/size_limit_error.proto', + package='google.ads.googleads.v4.errors', + syntax='proto3', + serialized_options=_b('\n\"com.google.ads.googleads.v4.errorsB\023SizeLimitErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V4.Errors\312\002\036Google\\Ads\\GoogleAds\\V4\\Errors\352\002\"Google::Ads::GoogleAds::V4::Errors'), + serialized_pb=_b('\n;google/ads/googleads_v4/proto/errors/size_limit_error.proto\x12\x1egoogle.ads.googleads.v4.errors\x1a\x1cgoogle/api/annotations.proto\"\x87\x01\n\x12SizeLimitErrorEnum\"q\n\x0eSizeLimitError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x1f\n\x1bREQUEST_SIZE_LIMIT_EXCEEDED\x10\x02\x12 \n\x1cRESPONSE_SIZE_LIMIT_EXCEEDED\x10\x03\x42\xee\x01\n\"com.google.ads.googleads.v4.errorsB\x13SizeLimitErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V4.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V4\\Errors\xea\x02\"Google::Ads::GoogleAds::V4::Errorsb\x06proto3') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_SIZELIMITERRORENUM_SIZELIMITERROR = _descriptor.EnumDescriptor( + name='SizeLimitError', + full_name='google.ads.googleads.v4.errors.SizeLimitErrorEnum.SizeLimitError', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='UNSPECIFIED', index=0, number=0, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='UNKNOWN', index=1, number=1, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='REQUEST_SIZE_LIMIT_EXCEEDED', index=2, number=2, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='RESPONSE_SIZE_LIMIT_EXCEEDED', index=3, number=3, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=148, + serialized_end=261, +) +_sym_db.RegisterEnumDescriptor(_SIZELIMITERRORENUM_SIZELIMITERROR) + + +_SIZELIMITERRORENUM = _descriptor.Descriptor( + name='SizeLimitErrorEnum', + full_name='google.ads.googleads.v4.errors.SizeLimitErrorEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _SIZELIMITERRORENUM_SIZELIMITERROR, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=126, + serialized_end=261, +) + +_SIZELIMITERRORENUM_SIZELIMITERROR.containing_type = _SIZELIMITERRORENUM +DESCRIPTOR.message_types_by_name['SizeLimitErrorEnum'] = _SIZELIMITERRORENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +SizeLimitErrorEnum = _reflection.GeneratedProtocolMessageType('SizeLimitErrorEnum', (_message.Message,), dict( + DESCRIPTOR = _SIZELIMITERRORENUM, + __module__ = 'google.ads.googleads_v4.proto.errors.size_limit_error_pb2' + , + __doc__ = """Container for enum describing possible size limit errors. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.errors.SizeLimitErrorEnum) + )) +_sym_db.RegisterMessage(SizeLimitErrorEnum) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/resources/campaign_budget_pb2_grpc.py b/google/ads/google_ads/v4/proto/errors/size_limit_error_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/resources/campaign_budget_pb2_grpc.py rename to google/ads/google_ads/v4/proto/errors/size_limit_error_pb2_grpc.py diff --git a/google/ads/google_ads/v4/proto/errors/string_format_error_pb2.py b/google/ads/google_ads/v4/proto/errors/string_format_error_pb2.py new file mode 100644 index 000000000..2ad7fcbb2 --- /dev/null +++ b/google/ads/google_ads/v4/proto/errors/string_format_error_pb2.py @@ -0,0 +1,101 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/errors/string_format_error.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/errors/string_format_error.proto', + package='google.ads.googleads.v4.errors', + syntax='proto3', + serialized_options=_b('\n\"com.google.ads.googleads.v4.errorsB\026StringFormatErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V4.Errors\312\002\036Google\\Ads\\GoogleAds\\V4\\Errors\352\002\"Google::Ads::GoogleAds::V4::Errors'), + serialized_pb=_b('\n>google/ads/googleads_v4/proto/errors/string_format_error.proto\x12\x1egoogle.ads.googleads.v4.errors\x1a\x1cgoogle/api/annotations.proto\"q\n\x15StringFormatErrorEnum\"X\n\x11StringFormatError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x11\n\rILLEGAL_CHARS\x10\x02\x12\x12\n\x0eINVALID_FORMAT\x10\x03\x42\xf1\x01\n\"com.google.ads.googleads.v4.errorsB\x16StringFormatErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V4.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V4\\Errors\xea\x02\"Google::Ads::GoogleAds::V4::Errorsb\x06proto3') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_STRINGFORMATERRORENUM_STRINGFORMATERROR = _descriptor.EnumDescriptor( + name='StringFormatError', + full_name='google.ads.googleads.v4.errors.StringFormatErrorEnum.StringFormatError', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='UNSPECIFIED', index=0, number=0, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='UNKNOWN', index=1, number=1, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='ILLEGAL_CHARS', index=2, number=2, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_FORMAT', index=3, number=3, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=153, + serialized_end=241, +) +_sym_db.RegisterEnumDescriptor(_STRINGFORMATERRORENUM_STRINGFORMATERROR) + + +_STRINGFORMATERRORENUM = _descriptor.Descriptor( + name='StringFormatErrorEnum', + full_name='google.ads.googleads.v4.errors.StringFormatErrorEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _STRINGFORMATERRORENUM_STRINGFORMATERROR, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=128, + serialized_end=241, +) + +_STRINGFORMATERRORENUM_STRINGFORMATERROR.containing_type = _STRINGFORMATERRORENUM +DESCRIPTOR.message_types_by_name['StringFormatErrorEnum'] = _STRINGFORMATERRORENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +StringFormatErrorEnum = _reflection.GeneratedProtocolMessageType('StringFormatErrorEnum', (_message.Message,), dict( + DESCRIPTOR = _STRINGFORMATERRORENUM, + __module__ = 'google.ads.googleads_v4.proto.errors.string_format_error_pb2' + , + __doc__ = """Container for enum describing possible string format errors. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.errors.StringFormatErrorEnum) + )) +_sym_db.RegisterMessage(StringFormatErrorEnum) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/resources/campaign_criterion_pb2_grpc.py b/google/ads/google_ads/v4/proto/errors/string_format_error_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/resources/campaign_criterion_pb2_grpc.py rename to google/ads/google_ads/v4/proto/errors/string_format_error_pb2_grpc.py diff --git a/google/ads/google_ads/v4/proto/errors/string_length_error_pb2.py b/google/ads/google_ads/v4/proto/errors/string_length_error_pb2.py new file mode 100644 index 000000000..e96925c33 --- /dev/null +++ b/google/ads/google_ads/v4/proto/errors/string_length_error_pb2.py @@ -0,0 +1,105 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/errors/string_length_error.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/errors/string_length_error.proto', + package='google.ads.googleads.v4.errors', + syntax='proto3', + serialized_options=_b('\n\"com.google.ads.googleads.v4.errorsB\026StringLengthErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V4.Errors\312\002\036Google\\Ads\\GoogleAds\\V4\\Errors\352\002\"Google::Ads::GoogleAds::V4::Errors'), + serialized_pb=_b('\n>google/ads/googleads_v4/proto/errors/string_length_error.proto\x12\x1egoogle.ads.googleads.v4.errors\x1a\x1cgoogle/api/annotations.proto\"r\n\x15StringLengthErrorEnum\"Y\n\x11StringLengthError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\t\n\x05\x45MPTY\x10\x04\x12\r\n\tTOO_SHORT\x10\x02\x12\x0c\n\x08TOO_LONG\x10\x03\x42\xf1\x01\n\"com.google.ads.googleads.v4.errorsB\x16StringLengthErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V4.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V4\\Errors\xea\x02\"Google::Ads::GoogleAds::V4::Errorsb\x06proto3') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_STRINGLENGTHERRORENUM_STRINGLENGTHERROR = _descriptor.EnumDescriptor( + name='StringLengthError', + full_name='google.ads.googleads.v4.errors.StringLengthErrorEnum.StringLengthError', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='UNSPECIFIED', index=0, number=0, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='UNKNOWN', index=1, number=1, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='EMPTY', index=2, number=4, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='TOO_SHORT', index=3, number=2, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='TOO_LONG', index=4, number=3, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=153, + serialized_end=242, +) +_sym_db.RegisterEnumDescriptor(_STRINGLENGTHERRORENUM_STRINGLENGTHERROR) + + +_STRINGLENGTHERRORENUM = _descriptor.Descriptor( + name='StringLengthErrorEnum', + full_name='google.ads.googleads.v4.errors.StringLengthErrorEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _STRINGLENGTHERRORENUM_STRINGLENGTHERROR, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=128, + serialized_end=242, +) + +_STRINGLENGTHERRORENUM_STRINGLENGTHERROR.containing_type = _STRINGLENGTHERRORENUM +DESCRIPTOR.message_types_by_name['StringLengthErrorEnum'] = _STRINGLENGTHERRORENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +StringLengthErrorEnum = _reflection.GeneratedProtocolMessageType('StringLengthErrorEnum', (_message.Message,), dict( + DESCRIPTOR = _STRINGLENGTHERRORENUM, + __module__ = 'google.ads.googleads_v4.proto.errors.string_length_error_pb2' + , + __doc__ = """Container for enum describing possible string length errors. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.errors.StringLengthErrorEnum) + )) +_sym_db.RegisterMessage(StringLengthErrorEnum) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/resources/campaign_criterion_simulation_pb2_grpc.py b/google/ads/google_ads/v4/proto/errors/string_length_error_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/resources/campaign_criterion_simulation_pb2_grpc.py rename to google/ads/google_ads/v4/proto/errors/string_length_error_pb2_grpc.py diff --git a/google/ads/google_ads/v4/proto/errors/third_party_app_analytics_link_error_pb2.py b/google/ads/google_ads/v4/proto/errors/third_party_app_analytics_link_error_pb2.py new file mode 100644 index 000000000..e50dc3df5 --- /dev/null +++ b/google/ads/google_ads/v4/proto/errors/third_party_app_analytics_link_error_pb2.py @@ -0,0 +1,34 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/errors/third_party_app_analytics_link_error.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/errors/third_party_app_analytics_link_error.proto', + package='google.ads.googleads.v4.errors', + syntax='proto3', + serialized_options=_b('\n\"com.google.ads.googleads.v4.errorsB$ThirdPartyAppAnalyticsLinkErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V4.Errors\312\002\036Google\\Ads\\GoogleAds\\V4\\Errors\352\002\"Google::Ads::GoogleAds::V4::Errors'), + serialized_pb=_b('\nOgoogle/ads/googleads_v4/proto/errors/third_party_app_analytics_link_error.proto\x12\x1egoogle.ads.googleads.v4.errors\x1a\x1cgoogle/api/annotations.protoB\xff\x01\n\"com.google.ads.googleads.v4.errorsB$ThirdPartyAppAnalyticsLinkErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V4.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V4\\Errors\xea\x02\"Google::Ads::GoogleAds::V4::Errorsb\x06proto3') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/resources/campaign_draft_pb2_grpc.py b/google/ads/google_ads/v4/proto/errors/third_party_app_analytics_link_error_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/resources/campaign_draft_pb2_grpc.py rename to google/ads/google_ads/v4/proto/errors/third_party_app_analytics_link_error_pb2_grpc.py diff --git a/google/ads/google_ads/v4/proto/errors/time_zone_error_pb2.py b/google/ads/google_ads/v4/proto/errors/time_zone_error_pb2.py new file mode 100644 index 000000000..cc5233674 --- /dev/null +++ b/google/ads/google_ads/v4/proto/errors/time_zone_error_pb2.py @@ -0,0 +1,97 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/errors/time_zone_error.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/errors/time_zone_error.proto', + package='google.ads.googleads.v4.errors', + syntax='proto3', + serialized_options=_b('\n\"com.google.ads.googleads.v4.errorsB\022TimeZoneErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V4.Errors\312\002\036Google\\Ads\\GoogleAds\\V4\\Errors\352\002\"Google::Ads::GoogleAds::V4::Errors'), + serialized_pb=_b('\n:google/ads/googleads_v4/proto/errors/time_zone_error.proto\x12\x1egoogle.ads.googleads.v4.errors\x1a\x1cgoogle/api/annotations.proto\"Y\n\x11TimeZoneErrorEnum\"D\n\rTimeZoneError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x15\n\x11INVALID_TIME_ZONE\x10\x05\x42\xed\x01\n\"com.google.ads.googleads.v4.errorsB\x12TimeZoneErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V4.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V4\\Errors\xea\x02\"Google::Ads::GoogleAds::V4::Errorsb\x06proto3') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_TIMEZONEERRORENUM_TIMEZONEERROR = _descriptor.EnumDescriptor( + name='TimeZoneError', + full_name='google.ads.googleads.v4.errors.TimeZoneErrorEnum.TimeZoneError', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='UNSPECIFIED', index=0, number=0, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='UNKNOWN', index=1, number=1, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_TIME_ZONE', index=2, number=5, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=145, + serialized_end=213, +) +_sym_db.RegisterEnumDescriptor(_TIMEZONEERRORENUM_TIMEZONEERROR) + + +_TIMEZONEERRORENUM = _descriptor.Descriptor( + name='TimeZoneErrorEnum', + full_name='google.ads.googleads.v4.errors.TimeZoneErrorEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _TIMEZONEERRORENUM_TIMEZONEERROR, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=124, + serialized_end=213, +) + +_TIMEZONEERRORENUM_TIMEZONEERROR.containing_type = _TIMEZONEERRORENUM +DESCRIPTOR.message_types_by_name['TimeZoneErrorEnum'] = _TIMEZONEERRORENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +TimeZoneErrorEnum = _reflection.GeneratedProtocolMessageType('TimeZoneErrorEnum', (_message.Message,), dict( + DESCRIPTOR = _TIMEZONEERRORENUM, + __module__ = 'google.ads.googleads_v4.proto.errors.time_zone_error_pb2' + , + __doc__ = """Container for enum describing possible time zone errors. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.errors.TimeZoneErrorEnum) + )) +_sym_db.RegisterMessage(TimeZoneErrorEnum) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/resources/campaign_experiment_pb2_grpc.py b/google/ads/google_ads/v4/proto/errors/time_zone_error_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/resources/campaign_experiment_pb2_grpc.py rename to google/ads/google_ads/v4/proto/errors/time_zone_error_pb2_grpc.py diff --git a/google/ads/google_ads/v1/proto/errors/url_field_error_pb2.py b/google/ads/google_ads/v4/proto/errors/url_field_error_pb2.py similarity index 92% rename from google/ads/google_ads/v1/proto/errors/url_field_error_pb2.py rename to google/ads/google_ads/v4/proto/errors/url_field_error_pb2.py index 8c8ee6437..796a31eab 100644 --- a/google/ads/google_ads/v1/proto/errors/url_field_error_pb2.py +++ b/google/ads/google_ads/v4/proto/errors/url_field_error_pb2.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/errors/url_field_error.proto +# source: google/ads/googleads_v4/proto/errors/url_field_error.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) @@ -17,11 +17,11 @@ DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/errors/url_field_error.proto', - package='google.ads.googleads.v1.errors', + name='google/ads/googleads_v4/proto/errors/url_field_error.proto', + package='google.ads.googleads.v4.errors', syntax='proto3', - serialized_options=_b('\n\"com.google.ads.googleads.v1.errorsB\022UrlFieldErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V1.Errors\312\002\036Google\\Ads\\GoogleAds\\V1\\Errors\352\002\"Google::Ads::GoogleAds::V1::Errors'), - serialized_pb=_b('\n:google/ads/googleads_v1/proto/errors/url_field_error.proto\x12\x1egoogle.ads.googleads.v1.errors\x1a\x1cgoogle/api/annotations.proto\"\xb6\x0e\n\x11UrlFieldErrorEnum\"\xa0\x0e\n\rUrlFieldError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12!\n\x1dINVALID_TRACKING_URL_TEMPLATE\x10\x02\x12(\n$INVALID_TAG_IN_TRACKING_URL_TEMPLATE\x10\x03\x12%\n!MISSING_TRACKING_URL_TEMPLATE_TAG\x10\x04\x12-\n)MISSING_PROTOCOL_IN_TRACKING_URL_TEMPLATE\x10\x05\x12-\n)INVALID_PROTOCOL_IN_TRACKING_URL_TEMPLATE\x10\x06\x12#\n\x1fMALFORMED_TRACKING_URL_TEMPLATE\x10\x07\x12)\n%MISSING_HOST_IN_TRACKING_URL_TEMPLATE\x10\x08\x12(\n$INVALID_TLD_IN_TRACKING_URL_TEMPLATE\x10\t\x12.\n*REDUNDANT_NESTED_TRACKING_URL_TEMPLATE_TAG\x10\n\x12\x15\n\x11INVALID_FINAL_URL\x10\x0b\x12\x1c\n\x18INVALID_TAG_IN_FINAL_URL\x10\x0c\x12\"\n\x1eREDUNDANT_NESTED_FINAL_URL_TAG\x10\r\x12!\n\x1dMISSING_PROTOCOL_IN_FINAL_URL\x10\x0e\x12!\n\x1dINVALID_PROTOCOL_IN_FINAL_URL\x10\x0f\x12\x17\n\x13MALFORMED_FINAL_URL\x10\x10\x12\x1d\n\x19MISSING_HOST_IN_FINAL_URL\x10\x11\x12\x1c\n\x18INVALID_TLD_IN_FINAL_URL\x10\x12\x12\x1c\n\x18INVALID_FINAL_MOBILE_URL\x10\x13\x12#\n\x1fINVALID_TAG_IN_FINAL_MOBILE_URL\x10\x14\x12)\n%REDUNDANT_NESTED_FINAL_MOBILE_URL_TAG\x10\x15\x12(\n$MISSING_PROTOCOL_IN_FINAL_MOBILE_URL\x10\x16\x12(\n$INVALID_PROTOCOL_IN_FINAL_MOBILE_URL\x10\x17\x12\x1e\n\x1aMALFORMED_FINAL_MOBILE_URL\x10\x18\x12$\n MISSING_HOST_IN_FINAL_MOBILE_URL\x10\x19\x12#\n\x1fINVALID_TLD_IN_FINAL_MOBILE_URL\x10\x1a\x12\x19\n\x15INVALID_FINAL_APP_URL\x10\x1b\x12 \n\x1cINVALID_TAG_IN_FINAL_APP_URL\x10\x1c\x12&\n\"REDUNDANT_NESTED_FINAL_APP_URL_TAG\x10\x1d\x12 \n\x1cMULTIPLE_APP_URLS_FOR_OSTYPE\x10\x1e\x12\x12\n\x0eINVALID_OSTYPE\x10\x1f\x12 \n\x1cINVALID_PROTOCOL_FOR_APP_URL\x10 \x12\"\n\x1eINVALID_PACKAGE_ID_FOR_APP_URL\x10!\x12-\n)URL_CUSTOM_PARAMETERS_COUNT_EXCEEDS_LIMIT\x10\"\x12\x32\n.INVALID_CHARACTERS_IN_URL_CUSTOM_PARAMETER_KEY\x10\'\x12\x34\n0INVALID_CHARACTERS_IN_URL_CUSTOM_PARAMETER_VALUE\x10(\x12-\n)INVALID_TAG_IN_URL_CUSTOM_PARAMETER_VALUE\x10)\x12-\n)REDUNDANT_NESTED_URL_CUSTOM_PARAMETER_TAG\x10*\x12\x14\n\x10MISSING_PROTOCOL\x10+\x12\x14\n\x10INVALID_PROTOCOL\x10\x34\x12\x0f\n\x0bINVALID_URL\x10,\x12\x1e\n\x1a\x44\x45STINATION_URL_DEPRECATED\x10-\x12\x16\n\x12INVALID_TAG_IN_URL\x10.\x12\x13\n\x0fMISSING_URL_TAG\x10/\x12\x14\n\x10\x44UPLICATE_URL_ID\x10\x30\x12\x12\n\x0eINVALID_URL_ID\x10\x31\x12\x1e\n\x1a\x46INAL_URL_SUFFIX_MALFORMED\x10\x32\x12#\n\x1fINVALID_TAG_IN_FINAL_URL_SUFFIX\x10\x33\x12\x1c\n\x18INVALID_TOP_LEVEL_DOMAIN\x10\x35\x12\x1e\n\x1aMALFORMED_TOP_LEVEL_DOMAIN\x10\x36\x12\x11\n\rMALFORMED_URL\x10\x37\x12\x10\n\x0cMISSING_HOST\x10\x38\x12\x1f\n\x1bNULL_CUSTOM_PARAMETER_VALUE\x10\x39\x42\xed\x01\n\"com.google.ads.googleads.v1.errorsB\x12UrlFieldErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V1.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V1\\Errors\xea\x02\"Google::Ads::GoogleAds::V1::Errorsb\x06proto3') + serialized_options=_b('\n\"com.google.ads.googleads.v4.errorsB\022UrlFieldErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V4.Errors\312\002\036Google\\Ads\\GoogleAds\\V4\\Errors\352\002\"Google::Ads::GoogleAds::V4::Errors'), + serialized_pb=_b('\n:google/ads/googleads_v4/proto/errors/url_field_error.proto\x12\x1egoogle.ads.googleads.v4.errors\x1a\x1cgoogle/api/annotations.proto\"\xb6\x0e\n\x11UrlFieldErrorEnum\"\xa0\x0e\n\rUrlFieldError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12!\n\x1dINVALID_TRACKING_URL_TEMPLATE\x10\x02\x12(\n$INVALID_TAG_IN_TRACKING_URL_TEMPLATE\x10\x03\x12%\n!MISSING_TRACKING_URL_TEMPLATE_TAG\x10\x04\x12-\n)MISSING_PROTOCOL_IN_TRACKING_URL_TEMPLATE\x10\x05\x12-\n)INVALID_PROTOCOL_IN_TRACKING_URL_TEMPLATE\x10\x06\x12#\n\x1fMALFORMED_TRACKING_URL_TEMPLATE\x10\x07\x12)\n%MISSING_HOST_IN_TRACKING_URL_TEMPLATE\x10\x08\x12(\n$INVALID_TLD_IN_TRACKING_URL_TEMPLATE\x10\t\x12.\n*REDUNDANT_NESTED_TRACKING_URL_TEMPLATE_TAG\x10\n\x12\x15\n\x11INVALID_FINAL_URL\x10\x0b\x12\x1c\n\x18INVALID_TAG_IN_FINAL_URL\x10\x0c\x12\"\n\x1eREDUNDANT_NESTED_FINAL_URL_TAG\x10\r\x12!\n\x1dMISSING_PROTOCOL_IN_FINAL_URL\x10\x0e\x12!\n\x1dINVALID_PROTOCOL_IN_FINAL_URL\x10\x0f\x12\x17\n\x13MALFORMED_FINAL_URL\x10\x10\x12\x1d\n\x19MISSING_HOST_IN_FINAL_URL\x10\x11\x12\x1c\n\x18INVALID_TLD_IN_FINAL_URL\x10\x12\x12\x1c\n\x18INVALID_FINAL_MOBILE_URL\x10\x13\x12#\n\x1fINVALID_TAG_IN_FINAL_MOBILE_URL\x10\x14\x12)\n%REDUNDANT_NESTED_FINAL_MOBILE_URL_TAG\x10\x15\x12(\n$MISSING_PROTOCOL_IN_FINAL_MOBILE_URL\x10\x16\x12(\n$INVALID_PROTOCOL_IN_FINAL_MOBILE_URL\x10\x17\x12\x1e\n\x1aMALFORMED_FINAL_MOBILE_URL\x10\x18\x12$\n MISSING_HOST_IN_FINAL_MOBILE_URL\x10\x19\x12#\n\x1fINVALID_TLD_IN_FINAL_MOBILE_URL\x10\x1a\x12\x19\n\x15INVALID_FINAL_APP_URL\x10\x1b\x12 \n\x1cINVALID_TAG_IN_FINAL_APP_URL\x10\x1c\x12&\n\"REDUNDANT_NESTED_FINAL_APP_URL_TAG\x10\x1d\x12 \n\x1cMULTIPLE_APP_URLS_FOR_OSTYPE\x10\x1e\x12\x12\n\x0eINVALID_OSTYPE\x10\x1f\x12 \n\x1cINVALID_PROTOCOL_FOR_APP_URL\x10 \x12\"\n\x1eINVALID_PACKAGE_ID_FOR_APP_URL\x10!\x12-\n)URL_CUSTOM_PARAMETERS_COUNT_EXCEEDS_LIMIT\x10\"\x12\x32\n.INVALID_CHARACTERS_IN_URL_CUSTOM_PARAMETER_KEY\x10\'\x12\x34\n0INVALID_CHARACTERS_IN_URL_CUSTOM_PARAMETER_VALUE\x10(\x12-\n)INVALID_TAG_IN_URL_CUSTOM_PARAMETER_VALUE\x10)\x12-\n)REDUNDANT_NESTED_URL_CUSTOM_PARAMETER_TAG\x10*\x12\x14\n\x10MISSING_PROTOCOL\x10+\x12\x14\n\x10INVALID_PROTOCOL\x10\x34\x12\x0f\n\x0bINVALID_URL\x10,\x12\x1e\n\x1a\x44\x45STINATION_URL_DEPRECATED\x10-\x12\x16\n\x12INVALID_TAG_IN_URL\x10.\x12\x13\n\x0fMISSING_URL_TAG\x10/\x12\x14\n\x10\x44UPLICATE_URL_ID\x10\x30\x12\x12\n\x0eINVALID_URL_ID\x10\x31\x12\x1e\n\x1a\x46INAL_URL_SUFFIX_MALFORMED\x10\x32\x12#\n\x1fINVALID_TAG_IN_FINAL_URL_SUFFIX\x10\x33\x12\x1c\n\x18INVALID_TOP_LEVEL_DOMAIN\x10\x35\x12\x1e\n\x1aMALFORMED_TOP_LEVEL_DOMAIN\x10\x36\x12\x11\n\rMALFORMED_URL\x10\x37\x12\x10\n\x0cMISSING_HOST\x10\x38\x12\x1f\n\x1bNULL_CUSTOM_PARAMETER_VALUE\x10\x39\x42\xed\x01\n\"com.google.ads.googleads.v4.errorsB\x12UrlFieldErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V4.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V4\\Errors\xea\x02\"Google::Ads::GoogleAds::V4::Errorsb\x06proto3') , dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) @@ -29,7 +29,7 @@ _URLFIELDERRORENUM_URLFIELDERROR = _descriptor.EnumDescriptor( name='UrlFieldError', - full_name='google.ads.googleads.v1.errors.UrlFieldErrorEnum.UrlFieldError', + full_name='google.ads.googleads.v4.errors.UrlFieldErrorEnum.UrlFieldError', filename=None, file=DESCRIPTOR, values=[ @@ -260,7 +260,7 @@ _URLFIELDERRORENUM = _descriptor.Descriptor( name='UrlFieldErrorEnum', - full_name='google.ads.googleads.v1.errors.UrlFieldErrorEnum', + full_name='google.ads.googleads.v4.errors.UrlFieldErrorEnum', filename=None, file=DESCRIPTOR, containing_type=None, @@ -288,11 +288,11 @@ UrlFieldErrorEnum = _reflection.GeneratedProtocolMessageType('UrlFieldErrorEnum', (_message.Message,), dict( DESCRIPTOR = _URLFIELDERRORENUM, - __module__ = 'google.ads.googleads_v1.proto.errors.url_field_error_pb2' + __module__ = 'google.ads.googleads_v4.proto.errors.url_field_error_pb2' , __doc__ = """Container for enum describing possible url field errors. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.errors.UrlFieldErrorEnum) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.errors.UrlFieldErrorEnum) )) _sym_db.RegisterMessage(UrlFieldErrorEnum) diff --git a/google/ads/google_ads/v1/proto/resources/campaign_extension_setting_pb2_grpc.py b/google/ads/google_ads/v4/proto/errors/url_field_error_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/resources/campaign_extension_setting_pb2_grpc.py rename to google/ads/google_ads/v4/proto/errors/url_field_error_pb2_grpc.py diff --git a/google/ads/google_ads/v4/proto/errors/user_data_error_pb2.py b/google/ads/google_ads/v4/proto/errors/user_data_error_pb2.py new file mode 100644 index 000000000..cbfec5cb6 --- /dev/null +++ b/google/ads/google_ads/v4/proto/errors/user_data_error_pb2.py @@ -0,0 +1,105 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/errors/user_data_error.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/errors/user_data_error.proto', + package='google.ads.googleads.v4.errors', + syntax='proto3', + serialized_options=_b('\n\"com.google.ads.googleads.v4.errorsB\022UserDataErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V4.Errors\312\002\036Google\\Ads\\GoogleAds\\V4\\Errors\352\002\"Google::Ads::GoogleAds::V4::Errors'), + serialized_pb=_b('\n:google/ads/googleads_v4/proto/errors/user_data_error.proto\x12\x1egoogle.ads.googleads.v4.errors\x1a\x1cgoogle/api/annotations.proto\"\xaf\x01\n\x11UserDataErrorEnum\"\x99\x01\n\rUserDataError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12-\n)OPERATIONS_FOR_CUSTOMER_MATCH_NOT_ALLOWED\x10\x02\x12\x1d\n\x19TOO_MANY_USER_IDENTIFIERS\x10\x03\x12\x1c\n\x18USER_LIST_NOT_APPLICABLE\x10\x04\x42\xed\x01\n\"com.google.ads.googleads.v4.errorsB\x12UserDataErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V4.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V4\\Errors\xea\x02\"Google::Ads::GoogleAds::V4::Errorsb\x06proto3') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_USERDATAERRORENUM_USERDATAERROR = _descriptor.EnumDescriptor( + name='UserDataError', + full_name='google.ads.googleads.v4.errors.UserDataErrorEnum.UserDataError', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='UNSPECIFIED', index=0, number=0, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='UNKNOWN', index=1, number=1, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='OPERATIONS_FOR_CUSTOMER_MATCH_NOT_ALLOWED', index=2, number=2, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='TOO_MANY_USER_IDENTIFIERS', index=3, number=3, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='USER_LIST_NOT_APPLICABLE', index=4, number=4, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=147, + serialized_end=300, +) +_sym_db.RegisterEnumDescriptor(_USERDATAERRORENUM_USERDATAERROR) + + +_USERDATAERRORENUM = _descriptor.Descriptor( + name='UserDataErrorEnum', + full_name='google.ads.googleads.v4.errors.UserDataErrorEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _USERDATAERRORENUM_USERDATAERROR, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=125, + serialized_end=300, +) + +_USERDATAERRORENUM_USERDATAERROR.containing_type = _USERDATAERRORENUM +DESCRIPTOR.message_types_by_name['UserDataErrorEnum'] = _USERDATAERRORENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +UserDataErrorEnum = _reflection.GeneratedProtocolMessageType('UserDataErrorEnum', (_message.Message,), dict( + DESCRIPTOR = _USERDATAERRORENUM, + __module__ = 'google.ads.googleads_v4.proto.errors.user_data_error_pb2' + , + __doc__ = """Container for enum describing possible user data errors. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.errors.UserDataErrorEnum) + )) +_sym_db.RegisterMessage(UserDataErrorEnum) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/resources/campaign_feed_pb2_grpc.py b/google/ads/google_ads/v4/proto/errors/user_data_error_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/resources/campaign_feed_pb2_grpc.py rename to google/ads/google_ads/v4/proto/errors/user_data_error_pb2_grpc.py diff --git a/google/ads/google_ads/v1/proto/errors/user_list_error_pb2.py b/google/ads/google_ads/v4/proto/errors/user_list_error_pb2.py similarity index 87% rename from google/ads/google_ads/v1/proto/errors/user_list_error_pb2.py rename to google/ads/google_ads/v4/proto/errors/user_list_error_pb2.py index 1657c8de2..3af956d20 100644 --- a/google/ads/google_ads/v1/proto/errors/user_list_error_pb2.py +++ b/google/ads/google_ads/v4/proto/errors/user_list_error_pb2.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/ads/googleads_v1/proto/errors/user_list_error.proto +# source: google/ads/googleads_v4/proto/errors/user_list_error.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) @@ -17,11 +17,11 @@ DESCRIPTOR = _descriptor.FileDescriptor( - name='google/ads/googleads_v1/proto/errors/user_list_error.proto', - package='google.ads.googleads.v1.errors', + name='google/ads/googleads_v4/proto/errors/user_list_error.proto', + package='google.ads.googleads.v4.errors', syntax='proto3', - serialized_options=_b('\n\"com.google.ads.googleads.v1.errorsB\022UserListErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V1.Errors\312\002\036Google\\Ads\\GoogleAds\\V1\\Errors\352\002\"Google::Ads::GoogleAds::V1::Errors'), - serialized_pb=_b('\n:google/ads/googleads_v1/proto/errors/user_list_error.proto\x12\x1egoogle.ads.googleads.v1.errors\x1a\x1cgoogle/api/annotations.proto\"\xec\x07\n\x11UserListErrorEnum\"\xd6\x07\n\rUserListError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x37\n3EXTERNAL_REMARKETING_USER_LIST_MUTATE_NOT_SUPPORTED\x10\x02\x12\x1a\n\x16\x43ONCRETE_TYPE_REQUIRED\x10\x03\x12\x1f\n\x1b\x43ONVERSION_TYPE_ID_REQUIRED\x10\x04\x12\x1e\n\x1a\x44UPLICATE_CONVERSION_TYPES\x10\x05\x12\x1b\n\x17INVALID_CONVERSION_TYPE\x10\x06\x12\x17\n\x13INVALID_DESCRIPTION\x10\x07\x12\x10\n\x0cINVALID_NAME\x10\x08\x12\x10\n\x0cINVALID_TYPE\x10\t\x12\x34\n0CAN_NOT_ADD_LOGICAL_LIST_AS_LOGICAL_LIST_OPERAND\x10\n\x12*\n&INVALID_USER_LIST_LOGICAL_RULE_OPERAND\x10\x0b\x12\x15\n\x11NAME_ALREADY_USED\x10\x0c\x12%\n!NEW_CONVERSION_TYPE_NAME_REQUIRED\x10\r\x12%\n!CONVERSION_TYPE_NAME_ALREADY_USED\x10\x0e\x12\x1e\n\x1aOWNERSHIP_REQUIRED_FOR_SET\x10\x0f\x12\"\n\x1eUSER_LIST_MUTATE_NOT_SUPPORTED\x10\x10\x12\x10\n\x0cINVALID_RULE\x10\x11\x12\x16\n\x12INVALID_DATE_RANGE\x10\x1b\x12%\n!CAN_NOT_MUTATE_SENSITIVE_USERLIST\x10\x1c\x12\x1f\n\x1bMAX_NUM_RULEBASED_USERLISTS\x10\x1d\x12\'\n#CANNOT_MODIFY_BILLABLE_RECORD_COUNT\x10\x1e\x12\x12\n\x0e\x41PP_ID_NOT_SET\x10\x1f\x12-\n)USERLIST_NAME_IS_RESERVED_FOR_SYSTEM_LIST\x10 \x12\x36\n2ADVERTISER_NOT_WHITELISTED_FOR_USING_UPLOADED_DATA\x10!\x12\x1e\n\x1aRULE_TYPE_IS_NOT_SUPPORTED\x10\"\x12:\n6CAN_NOT_ADD_A_SIMILAR_USERLIST_AS_LOGICAL_LIST_OPERAND\x10#\x12:\n6CAN_NOT_MIX_CRM_BASED_IN_LOGICAL_LIST_WITH_OTHER_LISTS\x10$B\xed\x01\n\"com.google.ads.googleads.v1.errorsB\x12UserListErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v1/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V1.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V1\\Errors\xea\x02\"Google::Ads::GoogleAds::V1::Errorsb\x06proto3') + serialized_options=_b('\n\"com.google.ads.googleads.v4.errorsB\022UserListErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V4.Errors\312\002\036Google\\Ads\\GoogleAds\\V4\\Errors\352\002\"Google::Ads::GoogleAds::V4::Errors'), + serialized_pb=_b('\n:google/ads/googleads_v4/proto/errors/user_list_error.proto\x12\x1egoogle.ads.googleads.v4.errors\x1a\x1cgoogle/api/annotations.proto\"\xec\x07\n\x11UserListErrorEnum\"\xd6\x07\n\rUserListError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x37\n3EXTERNAL_REMARKETING_USER_LIST_MUTATE_NOT_SUPPORTED\x10\x02\x12\x1a\n\x16\x43ONCRETE_TYPE_REQUIRED\x10\x03\x12\x1f\n\x1b\x43ONVERSION_TYPE_ID_REQUIRED\x10\x04\x12\x1e\n\x1a\x44UPLICATE_CONVERSION_TYPES\x10\x05\x12\x1b\n\x17INVALID_CONVERSION_TYPE\x10\x06\x12\x17\n\x13INVALID_DESCRIPTION\x10\x07\x12\x10\n\x0cINVALID_NAME\x10\x08\x12\x10\n\x0cINVALID_TYPE\x10\t\x12\x34\n0CAN_NOT_ADD_LOGICAL_LIST_AS_LOGICAL_LIST_OPERAND\x10\n\x12*\n&INVALID_USER_LIST_LOGICAL_RULE_OPERAND\x10\x0b\x12\x15\n\x11NAME_ALREADY_USED\x10\x0c\x12%\n!NEW_CONVERSION_TYPE_NAME_REQUIRED\x10\r\x12%\n!CONVERSION_TYPE_NAME_ALREADY_USED\x10\x0e\x12\x1e\n\x1aOWNERSHIP_REQUIRED_FOR_SET\x10\x0f\x12\"\n\x1eUSER_LIST_MUTATE_NOT_SUPPORTED\x10\x10\x12\x10\n\x0cINVALID_RULE\x10\x11\x12\x16\n\x12INVALID_DATE_RANGE\x10\x1b\x12%\n!CAN_NOT_MUTATE_SENSITIVE_USERLIST\x10\x1c\x12\x1f\n\x1bMAX_NUM_RULEBASED_USERLISTS\x10\x1d\x12\'\n#CANNOT_MODIFY_BILLABLE_RECORD_COUNT\x10\x1e\x12\x12\n\x0e\x41PP_ID_NOT_SET\x10\x1f\x12-\n)USERLIST_NAME_IS_RESERVED_FOR_SYSTEM_LIST\x10 \x12\x36\n2ADVERTISER_NOT_WHITELISTED_FOR_USING_UPLOADED_DATA\x10!\x12\x1e\n\x1aRULE_TYPE_IS_NOT_SUPPORTED\x10\"\x12:\n6CAN_NOT_ADD_A_SIMILAR_USERLIST_AS_LOGICAL_LIST_OPERAND\x10#\x12:\n6CAN_NOT_MIX_CRM_BASED_IN_LOGICAL_LIST_WITH_OTHER_LISTS\x10$B\xed\x01\n\"com.google.ads.googleads.v4.errorsB\x12UserListErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V4.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V4\\Errors\xea\x02\"Google::Ads::GoogleAds::V4::Errorsb\x06proto3') , dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) @@ -29,7 +29,7 @@ _USERLISTERRORENUM_USERLISTERROR = _descriptor.EnumDescriptor( name='UserListError', - full_name='google.ads.googleads.v1.errors.UserListErrorEnum.UserListError', + full_name='google.ads.googleads.v4.errors.UserListErrorEnum.UserListError', filename=None, file=DESCRIPTOR, values=[ @@ -156,7 +156,7 @@ _USERLISTERRORENUM = _descriptor.Descriptor( name='UserListErrorEnum', - full_name='google.ads.googleads.v1.errors.UserListErrorEnum', + full_name='google.ads.googleads.v4.errors.UserListErrorEnum', filename=None, file=DESCRIPTOR, containing_type=None, @@ -184,11 +184,11 @@ UserListErrorEnum = _reflection.GeneratedProtocolMessageType('UserListErrorEnum', (_message.Message,), dict( DESCRIPTOR = _USERLISTERRORENUM, - __module__ = 'google.ads.googleads_v1.proto.errors.user_list_error_pb2' + __module__ = 'google.ads.googleads_v4.proto.errors.user_list_error_pb2' , __doc__ = """Container for enum describing possible user list errors. """, - # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.errors.UserListErrorEnum) + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.errors.UserListErrorEnum) )) _sym_db.RegisterMessage(UserListErrorEnum) diff --git a/google/ads/google_ads/v1/proto/resources/campaign_label_pb2_grpc.py b/google/ads/google_ads/v4/proto/errors/user_list_error_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/resources/campaign_label_pb2_grpc.py rename to google/ads/google_ads/v4/proto/errors/user_list_error_pb2_grpc.py diff --git a/google/ads/google_ads/v4/proto/errors/youtube_video_registration_error_pb2.py b/google/ads/google_ads/v4/proto/errors/youtube_video_registration_error_pb2.py new file mode 100644 index 000000000..f58ef2f89 --- /dev/null +++ b/google/ads/google_ads/v4/proto/errors/youtube_video_registration_error_pb2.py @@ -0,0 +1,105 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/errors/youtube_video_registration_error.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/errors/youtube_video_registration_error.proto', + package='google.ads.googleads.v4.errors', + syntax='proto3', + serialized_options=_b('\n\"com.google.ads.googleads.v4.errorsB\"YoutubeVideoRegistrationErrorProtoP\001ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\242\002\003GAA\252\002\036Google.Ads.GoogleAds.V4.Errors\312\002\036Google\\Ads\\GoogleAds\\V4\\Errors\352\002\"Google::Ads::GoogleAds::V4::Errors'), + serialized_pb=_b('\nKgoogle/ads/googleads_v4/proto/errors/youtube_video_registration_error.proto\x12\x1egoogle.ads.googleads.v4.errors\x1a\x1cgoogle/api/annotations.proto\"\xaa\x01\n!YoutubeVideoRegistrationErrorEnum\"\x84\x01\n\x1dYoutubeVideoRegistrationError\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x13\n\x0fVIDEO_NOT_FOUND\x10\x02\x12\x18\n\x14VIDEO_NOT_ACCESSIBLE\x10\x03\x12\x16\n\x12VIDEO_NOT_ELIGIBLE\x10\x04\x42\xfd\x01\n\"com.google.ads.googleads.v4.errorsB\"YoutubeVideoRegistrationErrorProtoP\x01ZDgoogle.golang.org/genproto/googleapis/ads/googleads/v4/errors;errors\xa2\x02\x03GAA\xaa\x02\x1eGoogle.Ads.GoogleAds.V4.Errors\xca\x02\x1eGoogle\\Ads\\GoogleAds\\V4\\Errors\xea\x02\"Google::Ads::GoogleAds::V4::Errorsb\x06proto3') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_YOUTUBEVIDEOREGISTRATIONERRORENUM_YOUTUBEVIDEOREGISTRATIONERROR = _descriptor.EnumDescriptor( + name='YoutubeVideoRegistrationError', + full_name='google.ads.googleads.v4.errors.YoutubeVideoRegistrationErrorEnum.YoutubeVideoRegistrationError', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='UNSPECIFIED', index=0, number=0, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='UNKNOWN', index=1, number=1, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='VIDEO_NOT_FOUND', index=2, number=2, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='VIDEO_NOT_ACCESSIBLE', index=3, number=3, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='VIDEO_NOT_ELIGIBLE', index=4, number=4, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=180, + serialized_end=312, +) +_sym_db.RegisterEnumDescriptor(_YOUTUBEVIDEOREGISTRATIONERRORENUM_YOUTUBEVIDEOREGISTRATIONERROR) + + +_YOUTUBEVIDEOREGISTRATIONERRORENUM = _descriptor.Descriptor( + name='YoutubeVideoRegistrationErrorEnum', + full_name='google.ads.googleads.v4.errors.YoutubeVideoRegistrationErrorEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _YOUTUBEVIDEOREGISTRATIONERRORENUM_YOUTUBEVIDEOREGISTRATIONERROR, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=142, + serialized_end=312, +) + +_YOUTUBEVIDEOREGISTRATIONERRORENUM_YOUTUBEVIDEOREGISTRATIONERROR.containing_type = _YOUTUBEVIDEOREGISTRATIONERRORENUM +DESCRIPTOR.message_types_by_name['YoutubeVideoRegistrationErrorEnum'] = _YOUTUBEVIDEOREGISTRATIONERRORENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +YoutubeVideoRegistrationErrorEnum = _reflection.GeneratedProtocolMessageType('YoutubeVideoRegistrationErrorEnum', (_message.Message,), dict( + DESCRIPTOR = _YOUTUBEVIDEOREGISTRATIONERRORENUM, + __module__ = 'google.ads.googleads_v4.proto.errors.youtube_video_registration_error_pb2' + , + __doc__ = """Container for enum describing YouTube video registration errors. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.errors.YoutubeVideoRegistrationErrorEnum) + )) +_sym_db.RegisterMessage(YoutubeVideoRegistrationErrorEnum) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/resources/campaign_pb2_grpc.py b/google/ads/google_ads/v4/proto/errors/youtube_video_registration_error_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/resources/campaign_pb2_grpc.py rename to google/ads/google_ads/v4/proto/errors/youtube_video_registration_error_pb2_grpc.py diff --git a/google/ads/google_ads/v1/proto/resources/__init__.py b/google/ads/google_ads/v4/proto/resources/__init__.py similarity index 100% rename from google/ads/google_ads/v1/proto/resources/__init__.py rename to google/ads/google_ads/v4/proto/resources/__init__.py diff --git a/google/ads/google_ads/v4/proto/resources/account_budget_pb2.py b/google/ads/google_ads/v4/proto/resources/account_budget_pb2.py new file mode 100644 index 000000000..6b238083d --- /dev/null +++ b/google/ads/google_ads/v4/proto/resources/account_budget_pb2.py @@ -0,0 +1,629 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/resources/account_budget.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.ads.google_ads.v4.proto.enums import account_budget_proposal_type_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_account__budget__proposal__type__pb2 +from google.ads.google_ads.v4.proto.enums import account_budget_status_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_account__budget__status__pb2 +from google.ads.google_ads.v4.proto.enums import spending_limit_type_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_spending__limit__type__pb2 +from google.ads.google_ads.v4.proto.enums import time_type_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_time__type__pb2 +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 +from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/resources/account_budget.proto', + package='google.ads.googleads.v4.resources', + syntax='proto3', + serialized_options=_b('\n%com.google.ads.googleads.v4.resourcesB\022AccountBudgetProtoP\001ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v4/resources;resources\242\002\003GAA\252\002!Google.Ads.GoogleAds.V4.Resources\312\002!Google\\Ads\\GoogleAds\\V4\\Resources\352\002%Google::Ads::GoogleAds::V4::Resources'), + serialized_pb=_b('\n\n\x14\x61mount_served_micros\x18\x13 \x01(\x0b\x32\x1b.google.protobuf.Int64ValueB\x03\xe0\x41\x03\x12@\n\x15purchase_order_number\x18\x14 \x01(\x0b\x32\x1c.google.protobuf.StringValueB\x03\xe0\x41\x03\x12\x30\n\x05notes\x18\x15 \x01(\x0b\x32\x1c.google.protobuf.StringValueB\x03\xe0\x41\x03\x12l\n\x10pending_proposal\x18\x16 \x01(\x0b\x32M.google.ads.googleads.v4.resources.AccountBudget.PendingAccountBudgetProposalB\x03\xe0\x41\x03\x12\x43\n\x16proposed_end_date_time\x18\x08 \x01(\x0b\x32\x1c.google.protobuf.StringValueB\x03\xe0\x41\x03H\x00\x12[\n\x16proposed_end_time_type\x18\t \x01(\x0e\x32\x34.google.ads.googleads.v4.enums.TimeTypeEnum.TimeTypeB\x03\xe0\x41\x03H\x00\x12\x43\n\x16\x61pproved_end_date_time\x18\n \x01(\x0b\x32\x1c.google.protobuf.StringValueB\x03\xe0\x41\x03H\x01\x12[\n\x16\x61pproved_end_time_type\x18\x0b \x01(\x0e\x32\x34.google.ads.googleads.v4.enums.TimeTypeEnum.TimeTypeB\x03\xe0\x41\x03H\x01\x12J\n\x1eproposed_spending_limit_micros\x18\x0c \x01(\x0b\x32\x1b.google.protobuf.Int64ValueB\x03\xe0\x41\x03H\x02\x12s\n\x1cproposed_spending_limit_type\x18\r \x01(\x0e\x32\x46.google.ads.googleads.v4.enums.SpendingLimitTypeEnum.SpendingLimitTypeB\x03\xe0\x41\x03H\x02\x12J\n\x1e\x61pproved_spending_limit_micros\x18\x0e \x01(\x0b\x32\x1b.google.protobuf.Int64ValueB\x03\xe0\x41\x03H\x03\x12s\n\x1c\x61pproved_spending_limit_type\x18\x0f \x01(\x0e\x32\x46.google.ads.googleads.v4.enums.SpendingLimitTypeEnum.SpendingLimitTypeB\x03\xe0\x41\x03H\x03\x12J\n\x1e\x61\x64justed_spending_limit_micros\x18\x10 \x01(\x0b\x32\x1b.google.protobuf.Int64ValueB\x03\xe0\x41\x03H\x04\x12s\n\x1c\x61\x64justed_spending_limit_type\x18\x11 \x01(\x0e\x32\x46.google.ads.googleads.v4.enums.SpendingLimitTypeEnum.SpendingLimitTypeB\x03\xe0\x41\x03H\x04\x1a\x86\x07\n\x1cPendingAccountBudgetProposal\x12u\n\x17\x61\x63\x63ount_budget_proposal\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValueB6\xe0\x41\x03\xfa\x41\x30\n.googleads.googleapis.com/AccountBudgetProposal\x12r\n\rproposal_type\x18\x02 \x01(\x0e\x32V.google.ads.googleads.v4.enums.AccountBudgetProposalTypeEnum.AccountBudgetProposalTypeB\x03\xe0\x41\x03\x12/\n\x04name\x18\x03 \x01(\x0b\x32\x1c.google.protobuf.StringValueB\x03\xe0\x41\x03\x12:\n\x0fstart_date_time\x18\x04 \x01(\x0b\x32\x1c.google.protobuf.StringValueB\x03\xe0\x41\x03\x12@\n\x15purchase_order_number\x18\t \x01(\x0b\x32\x1c.google.protobuf.StringValueB\x03\xe0\x41\x03\x12\x30\n\x05notes\x18\n \x01(\x0b\x32\x1c.google.protobuf.StringValueB\x03\xe0\x41\x03\x12=\n\x12\x63reation_date_time\x18\x0b \x01(\x0b\x32\x1c.google.protobuf.StringValueB\x03\xe0\x41\x03\x12:\n\rend_date_time\x18\x05 \x01(\x0b\x32\x1c.google.protobuf.StringValueB\x03\xe0\x41\x03H\x00\x12R\n\rend_time_type\x18\x06 \x01(\x0e\x32\x34.google.ads.googleads.v4.enums.TimeTypeEnum.TimeTypeB\x03\xe0\x41\x03H\x00\x12\x41\n\x15spending_limit_micros\x18\x07 \x01(\x0b\x32\x1b.google.protobuf.Int64ValueB\x03\xe0\x41\x03H\x01\x12j\n\x13spending_limit_type\x18\x08 \x01(\x0e\x32\x46.google.ads.googleads.v4.enums.SpendingLimitTypeEnum.SpendingLimitTypeB\x03\xe0\x41\x03H\x01\x42\n\n\x08\x65nd_timeB\x10\n\x0espending_limit:a\xea\x41^\n&googleads.googleapis.com/AccountBudget\x12\x34\x63ustomers/{customer}/accountBudgets/{account_budget}B\x13\n\x11proposed_end_timeB\x13\n\x11\x61pproved_end_timeB\x19\n\x17proposed_spending_limitB\x19\n\x17\x61pproved_spending_limitB\x19\n\x17\x61\x64justed_spending_limitB\xff\x01\n%com.google.ads.googleads.v4.resourcesB\x12\x41\x63\x63ountBudgetProtoP\x01ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v4/resources;resources\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V4.Resources\xca\x02!Google\\Ads\\GoogleAds\\V4\\Resources\xea\x02%Google::Ads::GoogleAds::V4::Resourcesb\x06proto3') + , + dependencies=[google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_account__budget__proposal__type__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_account__budget__status__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_spending__limit__type__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_time__type__pb2.DESCRIPTOR,google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_api_dot_resource__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + + +_ACCOUNTBUDGET_PENDINGACCOUNTBUDGETPROPOSAL = _descriptor.Descriptor( + name='PendingAccountBudgetProposal', + full_name='google.ads.googleads.v4.resources.AccountBudget.PendingAccountBudgetProposal', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='account_budget_proposal', full_name='google.ads.googleads.v4.resources.AccountBudget.PendingAccountBudgetProposal.account_budget_proposal', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003\372A0\n.googleads.googleapis.com/AccountBudgetProposal'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='proposal_type', full_name='google.ads.googleads.v4.resources.AccountBudget.PendingAccountBudgetProposal.proposal_type', index=1, + number=2, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='name', full_name='google.ads.googleads.v4.resources.AccountBudget.PendingAccountBudgetProposal.name', index=2, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='start_date_time', full_name='google.ads.googleads.v4.resources.AccountBudget.PendingAccountBudgetProposal.start_date_time', index=3, + number=4, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='purchase_order_number', full_name='google.ads.googleads.v4.resources.AccountBudget.PendingAccountBudgetProposal.purchase_order_number', index=4, + number=9, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='notes', full_name='google.ads.googleads.v4.resources.AccountBudget.PendingAccountBudgetProposal.notes', index=5, + number=10, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='creation_date_time', full_name='google.ads.googleads.v4.resources.AccountBudget.PendingAccountBudgetProposal.creation_date_time', index=6, + number=11, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='end_date_time', full_name='google.ads.googleads.v4.resources.AccountBudget.PendingAccountBudgetProposal.end_date_time', index=7, + number=5, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='end_time_type', full_name='google.ads.googleads.v4.resources.AccountBudget.PendingAccountBudgetProposal.end_time_type', index=8, + number=6, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='spending_limit_micros', full_name='google.ads.googleads.v4.resources.AccountBudget.PendingAccountBudgetProposal.spending_limit_micros', index=9, + number=7, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='spending_limit_type', full_name='google.ads.googleads.v4.resources.AccountBudget.PendingAccountBudgetProposal.spending_limit_type', index=10, + number=8, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name='end_time', full_name='google.ads.googleads.v4.resources.AccountBudget.PendingAccountBudgetProposal.end_time', + index=0, containing_type=None, fields=[]), + _descriptor.OneofDescriptor( + name='spending_limit', full_name='google.ads.googleads.v4.resources.AccountBudget.PendingAccountBudgetProposal.spending_limit', + index=1, containing_type=None, fields=[]), + ], + serialized_start=2255, + serialized_end=3157, +) + +_ACCOUNTBUDGET = _descriptor.Descriptor( + name='AccountBudget', + full_name='google.ads.googleads.v4.resources.AccountBudget', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.resources.AccountBudget.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003\372A(\n&googleads.googleapis.com/AccountBudget'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='id', full_name='google.ads.googleads.v4.resources.AccountBudget.id', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='billing_setup', full_name='google.ads.googleads.v4.resources.AccountBudget.billing_setup', index=2, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003\372A\'\n%googleads.googleapis.com/BillingSetup'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='status', full_name='google.ads.googleads.v4.resources.AccountBudget.status', index=3, + number=4, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='name', full_name='google.ads.googleads.v4.resources.AccountBudget.name', index=4, + number=5, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='proposed_start_date_time', full_name='google.ads.googleads.v4.resources.AccountBudget.proposed_start_date_time', index=5, + number=6, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='approved_start_date_time', full_name='google.ads.googleads.v4.resources.AccountBudget.approved_start_date_time', index=6, + number=7, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='total_adjustments_micros', full_name='google.ads.googleads.v4.resources.AccountBudget.total_adjustments_micros', index=7, + number=18, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='amount_served_micros', full_name='google.ads.googleads.v4.resources.AccountBudget.amount_served_micros', index=8, + number=19, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='purchase_order_number', full_name='google.ads.googleads.v4.resources.AccountBudget.purchase_order_number', index=9, + number=20, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='notes', full_name='google.ads.googleads.v4.resources.AccountBudget.notes', index=10, + number=21, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='pending_proposal', full_name='google.ads.googleads.v4.resources.AccountBudget.pending_proposal', index=11, + number=22, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='proposed_end_date_time', full_name='google.ads.googleads.v4.resources.AccountBudget.proposed_end_date_time', index=12, + number=8, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='proposed_end_time_type', full_name='google.ads.googleads.v4.resources.AccountBudget.proposed_end_time_type', index=13, + number=9, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='approved_end_date_time', full_name='google.ads.googleads.v4.resources.AccountBudget.approved_end_date_time', index=14, + number=10, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='approved_end_time_type', full_name='google.ads.googleads.v4.resources.AccountBudget.approved_end_time_type', index=15, + number=11, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='proposed_spending_limit_micros', full_name='google.ads.googleads.v4.resources.AccountBudget.proposed_spending_limit_micros', index=16, + number=12, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='proposed_spending_limit_type', full_name='google.ads.googleads.v4.resources.AccountBudget.proposed_spending_limit_type', index=17, + number=13, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='approved_spending_limit_micros', full_name='google.ads.googleads.v4.resources.AccountBudget.approved_spending_limit_micros', index=18, + number=14, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='approved_spending_limit_type', full_name='google.ads.googleads.v4.resources.AccountBudget.approved_spending_limit_type', index=19, + number=15, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='adjusted_spending_limit_micros', full_name='google.ads.googleads.v4.resources.AccountBudget.adjusted_spending_limit_micros', index=20, + number=16, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='adjusted_spending_limit_type', full_name='google.ads.googleads.v4.resources.AccountBudget.adjusted_spending_limit_type', index=21, + number=17, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[_ACCOUNTBUDGET_PENDINGACCOUNTBUDGETPROPOSAL, ], + enum_types=[ + ], + serialized_options=_b('\352A^\n&googleads.googleapis.com/AccountBudget\0224customers/{customer}/accountBudgets/{account_budget}'), + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name='proposed_end_time', full_name='google.ads.googleads.v4.resources.AccountBudget.proposed_end_time', + index=0, containing_type=None, fields=[]), + _descriptor.OneofDescriptor( + name='approved_end_time', full_name='google.ads.googleads.v4.resources.AccountBudget.approved_end_time', + index=1, containing_type=None, fields=[]), + _descriptor.OneofDescriptor( + name='proposed_spending_limit', full_name='google.ads.googleads.v4.resources.AccountBudget.proposed_spending_limit', + index=2, containing_type=None, fields=[]), + _descriptor.OneofDescriptor( + name='approved_spending_limit', full_name='google.ads.googleads.v4.resources.AccountBudget.approved_spending_limit', + index=3, containing_type=None, fields=[]), + _descriptor.OneofDescriptor( + name='adjusted_spending_limit', full_name='google.ads.googleads.v4.resources.AccountBudget.adjusted_spending_limit', + index=4, containing_type=None, fields=[]), + ], + serialized_start=475, + serialized_end=3379, +) + +_ACCOUNTBUDGET_PENDINGACCOUNTBUDGETPROPOSAL.fields_by_name['account_budget_proposal'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_ACCOUNTBUDGET_PENDINGACCOUNTBUDGETPROPOSAL.fields_by_name['proposal_type'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_account__budget__proposal__type__pb2._ACCOUNTBUDGETPROPOSALTYPEENUM_ACCOUNTBUDGETPROPOSALTYPE +_ACCOUNTBUDGET_PENDINGACCOUNTBUDGETPROPOSAL.fields_by_name['name'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_ACCOUNTBUDGET_PENDINGACCOUNTBUDGETPROPOSAL.fields_by_name['start_date_time'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_ACCOUNTBUDGET_PENDINGACCOUNTBUDGETPROPOSAL.fields_by_name['purchase_order_number'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_ACCOUNTBUDGET_PENDINGACCOUNTBUDGETPROPOSAL.fields_by_name['notes'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_ACCOUNTBUDGET_PENDINGACCOUNTBUDGETPROPOSAL.fields_by_name['creation_date_time'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_ACCOUNTBUDGET_PENDINGACCOUNTBUDGETPROPOSAL.fields_by_name['end_date_time'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_ACCOUNTBUDGET_PENDINGACCOUNTBUDGETPROPOSAL.fields_by_name['end_time_type'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_time__type__pb2._TIMETYPEENUM_TIMETYPE +_ACCOUNTBUDGET_PENDINGACCOUNTBUDGETPROPOSAL.fields_by_name['spending_limit_micros'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_ACCOUNTBUDGET_PENDINGACCOUNTBUDGETPROPOSAL.fields_by_name['spending_limit_type'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_spending__limit__type__pb2._SPENDINGLIMITTYPEENUM_SPENDINGLIMITTYPE +_ACCOUNTBUDGET_PENDINGACCOUNTBUDGETPROPOSAL.containing_type = _ACCOUNTBUDGET +_ACCOUNTBUDGET_PENDINGACCOUNTBUDGETPROPOSAL.oneofs_by_name['end_time'].fields.append( + _ACCOUNTBUDGET_PENDINGACCOUNTBUDGETPROPOSAL.fields_by_name['end_date_time']) +_ACCOUNTBUDGET_PENDINGACCOUNTBUDGETPROPOSAL.fields_by_name['end_date_time'].containing_oneof = _ACCOUNTBUDGET_PENDINGACCOUNTBUDGETPROPOSAL.oneofs_by_name['end_time'] +_ACCOUNTBUDGET_PENDINGACCOUNTBUDGETPROPOSAL.oneofs_by_name['end_time'].fields.append( + _ACCOUNTBUDGET_PENDINGACCOUNTBUDGETPROPOSAL.fields_by_name['end_time_type']) +_ACCOUNTBUDGET_PENDINGACCOUNTBUDGETPROPOSAL.fields_by_name['end_time_type'].containing_oneof = _ACCOUNTBUDGET_PENDINGACCOUNTBUDGETPROPOSAL.oneofs_by_name['end_time'] +_ACCOUNTBUDGET_PENDINGACCOUNTBUDGETPROPOSAL.oneofs_by_name['spending_limit'].fields.append( + _ACCOUNTBUDGET_PENDINGACCOUNTBUDGETPROPOSAL.fields_by_name['spending_limit_micros']) +_ACCOUNTBUDGET_PENDINGACCOUNTBUDGETPROPOSAL.fields_by_name['spending_limit_micros'].containing_oneof = _ACCOUNTBUDGET_PENDINGACCOUNTBUDGETPROPOSAL.oneofs_by_name['spending_limit'] +_ACCOUNTBUDGET_PENDINGACCOUNTBUDGETPROPOSAL.oneofs_by_name['spending_limit'].fields.append( + _ACCOUNTBUDGET_PENDINGACCOUNTBUDGETPROPOSAL.fields_by_name['spending_limit_type']) +_ACCOUNTBUDGET_PENDINGACCOUNTBUDGETPROPOSAL.fields_by_name['spending_limit_type'].containing_oneof = _ACCOUNTBUDGET_PENDINGACCOUNTBUDGETPROPOSAL.oneofs_by_name['spending_limit'] +_ACCOUNTBUDGET.fields_by_name['id'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_ACCOUNTBUDGET.fields_by_name['billing_setup'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_ACCOUNTBUDGET.fields_by_name['status'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_account__budget__status__pb2._ACCOUNTBUDGETSTATUSENUM_ACCOUNTBUDGETSTATUS +_ACCOUNTBUDGET.fields_by_name['name'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_ACCOUNTBUDGET.fields_by_name['proposed_start_date_time'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_ACCOUNTBUDGET.fields_by_name['approved_start_date_time'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_ACCOUNTBUDGET.fields_by_name['total_adjustments_micros'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_ACCOUNTBUDGET.fields_by_name['amount_served_micros'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_ACCOUNTBUDGET.fields_by_name['purchase_order_number'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_ACCOUNTBUDGET.fields_by_name['notes'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_ACCOUNTBUDGET.fields_by_name['pending_proposal'].message_type = _ACCOUNTBUDGET_PENDINGACCOUNTBUDGETPROPOSAL +_ACCOUNTBUDGET.fields_by_name['proposed_end_date_time'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_ACCOUNTBUDGET.fields_by_name['proposed_end_time_type'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_time__type__pb2._TIMETYPEENUM_TIMETYPE +_ACCOUNTBUDGET.fields_by_name['approved_end_date_time'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_ACCOUNTBUDGET.fields_by_name['approved_end_time_type'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_time__type__pb2._TIMETYPEENUM_TIMETYPE +_ACCOUNTBUDGET.fields_by_name['proposed_spending_limit_micros'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_ACCOUNTBUDGET.fields_by_name['proposed_spending_limit_type'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_spending__limit__type__pb2._SPENDINGLIMITTYPEENUM_SPENDINGLIMITTYPE +_ACCOUNTBUDGET.fields_by_name['approved_spending_limit_micros'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_ACCOUNTBUDGET.fields_by_name['approved_spending_limit_type'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_spending__limit__type__pb2._SPENDINGLIMITTYPEENUM_SPENDINGLIMITTYPE +_ACCOUNTBUDGET.fields_by_name['adjusted_spending_limit_micros'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_ACCOUNTBUDGET.fields_by_name['adjusted_spending_limit_type'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_spending__limit__type__pb2._SPENDINGLIMITTYPEENUM_SPENDINGLIMITTYPE +_ACCOUNTBUDGET.oneofs_by_name['proposed_end_time'].fields.append( + _ACCOUNTBUDGET.fields_by_name['proposed_end_date_time']) +_ACCOUNTBUDGET.fields_by_name['proposed_end_date_time'].containing_oneof = _ACCOUNTBUDGET.oneofs_by_name['proposed_end_time'] +_ACCOUNTBUDGET.oneofs_by_name['proposed_end_time'].fields.append( + _ACCOUNTBUDGET.fields_by_name['proposed_end_time_type']) +_ACCOUNTBUDGET.fields_by_name['proposed_end_time_type'].containing_oneof = _ACCOUNTBUDGET.oneofs_by_name['proposed_end_time'] +_ACCOUNTBUDGET.oneofs_by_name['approved_end_time'].fields.append( + _ACCOUNTBUDGET.fields_by_name['approved_end_date_time']) +_ACCOUNTBUDGET.fields_by_name['approved_end_date_time'].containing_oneof = _ACCOUNTBUDGET.oneofs_by_name['approved_end_time'] +_ACCOUNTBUDGET.oneofs_by_name['approved_end_time'].fields.append( + _ACCOUNTBUDGET.fields_by_name['approved_end_time_type']) +_ACCOUNTBUDGET.fields_by_name['approved_end_time_type'].containing_oneof = _ACCOUNTBUDGET.oneofs_by_name['approved_end_time'] +_ACCOUNTBUDGET.oneofs_by_name['proposed_spending_limit'].fields.append( + _ACCOUNTBUDGET.fields_by_name['proposed_spending_limit_micros']) +_ACCOUNTBUDGET.fields_by_name['proposed_spending_limit_micros'].containing_oneof = _ACCOUNTBUDGET.oneofs_by_name['proposed_spending_limit'] +_ACCOUNTBUDGET.oneofs_by_name['proposed_spending_limit'].fields.append( + _ACCOUNTBUDGET.fields_by_name['proposed_spending_limit_type']) +_ACCOUNTBUDGET.fields_by_name['proposed_spending_limit_type'].containing_oneof = _ACCOUNTBUDGET.oneofs_by_name['proposed_spending_limit'] +_ACCOUNTBUDGET.oneofs_by_name['approved_spending_limit'].fields.append( + _ACCOUNTBUDGET.fields_by_name['approved_spending_limit_micros']) +_ACCOUNTBUDGET.fields_by_name['approved_spending_limit_micros'].containing_oneof = _ACCOUNTBUDGET.oneofs_by_name['approved_spending_limit'] +_ACCOUNTBUDGET.oneofs_by_name['approved_spending_limit'].fields.append( + _ACCOUNTBUDGET.fields_by_name['approved_spending_limit_type']) +_ACCOUNTBUDGET.fields_by_name['approved_spending_limit_type'].containing_oneof = _ACCOUNTBUDGET.oneofs_by_name['approved_spending_limit'] +_ACCOUNTBUDGET.oneofs_by_name['adjusted_spending_limit'].fields.append( + _ACCOUNTBUDGET.fields_by_name['adjusted_spending_limit_micros']) +_ACCOUNTBUDGET.fields_by_name['adjusted_spending_limit_micros'].containing_oneof = _ACCOUNTBUDGET.oneofs_by_name['adjusted_spending_limit'] +_ACCOUNTBUDGET.oneofs_by_name['adjusted_spending_limit'].fields.append( + _ACCOUNTBUDGET.fields_by_name['adjusted_spending_limit_type']) +_ACCOUNTBUDGET.fields_by_name['adjusted_spending_limit_type'].containing_oneof = _ACCOUNTBUDGET.oneofs_by_name['adjusted_spending_limit'] +DESCRIPTOR.message_types_by_name['AccountBudget'] = _ACCOUNTBUDGET +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +AccountBudget = _reflection.GeneratedProtocolMessageType('AccountBudget', (_message.Message,), dict( + + PendingAccountBudgetProposal = _reflection.GeneratedProtocolMessageType('PendingAccountBudgetProposal', (_message.Message,), dict( + DESCRIPTOR = _ACCOUNTBUDGET_PENDINGACCOUNTBUDGETPROPOSAL, + __module__ = 'google.ads.googleads_v4.proto.resources.account_budget_pb2' + , + __doc__ = """A pending proposal associated with the enclosing account-level budget, + if applicable. + + + Attributes: + account_budget_proposal: + Output only. The resource name of the proposal. + AccountBudgetProposal resource names have the form: ``custome + rs/{customer_id}/accountBudgetProposals/{account_budget_propos + al_id}`` + proposal_type: + Output only. The type of this proposal, e.g. END to end the + budget associated with this proposal. + name: + Output only. The name to assign to the account-level budget. + start_date_time: + Output only. The start time in yyyy-MM-dd HH:mm:ss format. + purchase_order_number: + Output only. A purchase order number is a value that helps + users reference this budget in their monthly invoices. + notes: + Output only. Notes associated with this budget. + creation_date_time: + Output only. The time when this account-level budget proposal + was created. Formatted as yyyy-MM-dd HH:mm:ss. + end_time: + The end time of the account-level budget. + end_date_time: + Output only. The end time in yyyy-MM-dd HH:mm:ss format. + end_time_type: + Output only. The end time as a well-defined type, e.g. + FOREVER. + spending_limit: + The spending limit. + spending_limit_micros: + Output only. The spending limit in micros. One million is + equivalent to one unit. + spending_limit_type: + Output only. The spending limit as a well-defined type, e.g. + INFINITE. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.resources.AccountBudget.PendingAccountBudgetProposal) + )) + , + DESCRIPTOR = _ACCOUNTBUDGET, + __module__ = 'google.ads.googleads_v4.proto.resources.account_budget_pb2' + , + __doc__ = """An account-level budget. It contains information about the budget + itself, as well as the most recently approved changes to the budget and + proposed changes that are pending approval. The proposed changes that + are pending approval, if any, are found in 'pending\_proposal'. + Effective details about the budget are found in fields prefixed + 'approved\_', 'adjusted\_' and those without a prefix. Since some + effective details may differ from what the user had originally requested + (e.g. spending limit), these differences are juxtaposed via + 'proposed\_', 'approved\_', and possibly 'adjusted\_' fields. + + This resource is mutated using AccountBudgetProposal and cannot be + mutated directly. A budget may have at most one pending proposal at any + given time. It is read through pending\_proposal. + + Once approved, a budget may be subject to adjustments, such as credit + adjustments. Adjustments create differences between the 'approved' and + 'adjusted' fields, which would otherwise be identical. + + + Attributes: + resource_name: + Output only. The resource name of the account-level budget. + AccountBudget resource names have the form: + ``customers/{customer_id}/accountBudgets/{account_budget_id}`` + id: + Output only. The ID of the account-level budget. + billing_setup: + Output only. The resource name of the billing setup associated + with this account-level budget. BillingSetup resource names + have the form: + ``customers/{customer_id}/billingSetups/{billing_setup_id}`` + status: + Output only. The status of this account-level budget. + name: + Output only. The name of the account-level budget. + proposed_start_date_time: + Output only. The proposed start time of the account-level + budget in yyyy-MM-dd HH:mm:ss format. If a start time type of + NOW was proposed, this is the time of request. + approved_start_date_time: + Output only. The approved start time of the account-level + budget in yyyy-MM-dd HH:mm:ss format. For example, if a new + budget is approved after the proposed start time, the approved + start time is the time of approval. + total_adjustments_micros: + Output only. The total adjustments amount. An example of an + adjustment is courtesy credits. + amount_served_micros: + Output only. The value of Ads that have been served, in + micros. This includes overdelivery costs, in which case a + credit might be automatically applied to the budget (see + total\_adjustments\_micros). + purchase_order_number: + Output only. A purchase order number is a value that helps + users reference this budget in their monthly invoices. + notes: + Output only. Notes associated with the budget. + pending_proposal: + Output only. The pending proposal to modify this budget, if + applicable. + proposed_end_time: + The proposed end time of the account-level budget. + proposed_end_date_time: + Output only. The proposed end time in yyyy-MM-dd HH:mm:ss + format. + proposed_end_time_type: + Output only. The proposed end time as a well-defined type, + e.g. FOREVER. + approved_end_time: + The approved end time of the account-level budget. For + example, if a budget's end time is updated and the proposal is + approved after the proposed end time, the approved end time is + the time of approval. + approved_end_date_time: + Output only. The approved end time in yyyy-MM-dd HH:mm:ss + format. + approved_end_time_type: + Output only. The approved end time as a well-defined type, + e.g. FOREVER. + proposed_spending_limit: + The proposed spending limit. + proposed_spending_limit_micros: + Output only. The proposed spending limit in micros. One + million is equivalent to one unit. + proposed_spending_limit_type: + Output only. The proposed spending limit as a well-defined + type, e.g. INFINITE. + approved_spending_limit: + The approved spending limit. For example, if the amount + already spent by the account exceeds the proposed spending + limit at the time the proposal is approved, the approved + spending limit is set to the amount already spent. + approved_spending_limit_micros: + Output only. The approved spending limit in micros. One + million is equivalent to one unit. This will only be populated + if the proposed spending limit is finite, and will always be + greater than or equal to the proposed spending limit. + approved_spending_limit_type: + Output only. The approved spending limit as a well-defined + type, e.g. INFINITE. This will only be populated if the + approved spending limit is INFINITE. + adjusted_spending_limit: + The spending limit after adjustments have been applied. + Adjustments are stored in total\_adjustments\_micros. This + value has the final say on how much the account is allowed to + spend. + adjusted_spending_limit_micros: + Output only. The adjusted spending limit in micros. One + million is equivalent to one unit. If the approved spending + limit is finite, the adjusted spending limit may vary + depending on the types of adjustments applied to this budget, + if applicable. 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. + adjusted_spending_limit_type: + Output only. The adjusted spending limit as a well-defined + type, e.g. INFINITE. This will only be populated if the + adjusted spending limit is INFINITE, which is guaranteed to be + true if the approved spending limit is INFINITE. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.resources.AccountBudget) + )) +_sym_db.RegisterMessage(AccountBudget) +_sym_db.RegisterMessage(AccountBudget.PendingAccountBudgetProposal) + + +DESCRIPTOR._options = None +_ACCOUNTBUDGET_PENDINGACCOUNTBUDGETPROPOSAL.fields_by_name['account_budget_proposal']._options = None +_ACCOUNTBUDGET_PENDINGACCOUNTBUDGETPROPOSAL.fields_by_name['proposal_type']._options = None +_ACCOUNTBUDGET_PENDINGACCOUNTBUDGETPROPOSAL.fields_by_name['name']._options = None +_ACCOUNTBUDGET_PENDINGACCOUNTBUDGETPROPOSAL.fields_by_name['start_date_time']._options = None +_ACCOUNTBUDGET_PENDINGACCOUNTBUDGETPROPOSAL.fields_by_name['purchase_order_number']._options = None +_ACCOUNTBUDGET_PENDINGACCOUNTBUDGETPROPOSAL.fields_by_name['notes']._options = None +_ACCOUNTBUDGET_PENDINGACCOUNTBUDGETPROPOSAL.fields_by_name['creation_date_time']._options = None +_ACCOUNTBUDGET_PENDINGACCOUNTBUDGETPROPOSAL.fields_by_name['end_date_time']._options = None +_ACCOUNTBUDGET_PENDINGACCOUNTBUDGETPROPOSAL.fields_by_name['end_time_type']._options = None +_ACCOUNTBUDGET_PENDINGACCOUNTBUDGETPROPOSAL.fields_by_name['spending_limit_micros']._options = None +_ACCOUNTBUDGET_PENDINGACCOUNTBUDGETPROPOSAL.fields_by_name['spending_limit_type']._options = None +_ACCOUNTBUDGET.fields_by_name['resource_name']._options = None +_ACCOUNTBUDGET.fields_by_name['id']._options = None +_ACCOUNTBUDGET.fields_by_name['billing_setup']._options = None +_ACCOUNTBUDGET.fields_by_name['status']._options = None +_ACCOUNTBUDGET.fields_by_name['name']._options = None +_ACCOUNTBUDGET.fields_by_name['proposed_start_date_time']._options = None +_ACCOUNTBUDGET.fields_by_name['approved_start_date_time']._options = None +_ACCOUNTBUDGET.fields_by_name['total_adjustments_micros']._options = None +_ACCOUNTBUDGET.fields_by_name['amount_served_micros']._options = None +_ACCOUNTBUDGET.fields_by_name['purchase_order_number']._options = None +_ACCOUNTBUDGET.fields_by_name['notes']._options = None +_ACCOUNTBUDGET.fields_by_name['pending_proposal']._options = None +_ACCOUNTBUDGET.fields_by_name['proposed_end_date_time']._options = None +_ACCOUNTBUDGET.fields_by_name['proposed_end_time_type']._options = None +_ACCOUNTBUDGET.fields_by_name['approved_end_date_time']._options = None +_ACCOUNTBUDGET.fields_by_name['approved_end_time_type']._options = None +_ACCOUNTBUDGET.fields_by_name['proposed_spending_limit_micros']._options = None +_ACCOUNTBUDGET.fields_by_name['proposed_spending_limit_type']._options = None +_ACCOUNTBUDGET.fields_by_name['approved_spending_limit_micros']._options = None +_ACCOUNTBUDGET.fields_by_name['approved_spending_limit_type']._options = None +_ACCOUNTBUDGET.fields_by_name['adjusted_spending_limit_micros']._options = None +_ACCOUNTBUDGET.fields_by_name['adjusted_spending_limit_type']._options = None +_ACCOUNTBUDGET._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/resources/campaign_shared_set_pb2_grpc.py b/google/ads/google_ads/v4/proto/resources/account_budget_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/resources/campaign_shared_set_pb2_grpc.py rename to google/ads/google_ads/v4/proto/resources/account_budget_pb2_grpc.py diff --git a/google/ads/google_ads/v4/proto/resources/account_budget_proposal_pb2.py b/google/ads/google_ads/v4/proto/resources/account_budget_proposal_pb2.py new file mode 100644 index 000000000..b46663da5 --- /dev/null +++ b/google/ads/google_ads/v4/proto/resources/account_budget_proposal_pb2.py @@ -0,0 +1,409 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/resources/account_budget_proposal.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.ads.google_ads.v4.proto.enums import account_budget_proposal_status_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_account__budget__proposal__status__pb2 +from google.ads.google_ads.v4.proto.enums import account_budget_proposal_type_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_account__budget__proposal__type__pb2 +from google.ads.google_ads.v4.proto.enums import spending_limit_type_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_spending__limit__type__pb2 +from google.ads.google_ads.v4.proto.enums import time_type_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_time__type__pb2 +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 +from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/resources/account_budget_proposal.proto', + package='google.ads.googleads.v4.resources', + syntax='proto3', + serialized_options=_b('\n%com.google.ads.googleads.v4.resourcesB\032AccountBudgetProposalProtoP\001ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v4/resources;resources\242\002\003GAA\252\002!Google.Ads.GoogleAds.V4.Resources\312\002!Google\\Ads\\GoogleAds\\V4\\Resources\352\002%Google::Ads::GoogleAds::V4::Resources'), + serialized_pb=_b('\nEgoogle/ads/googleads_v4/proto/resources/account_budget_proposal.proto\x12!google.ads.googleads.v4.resources\x1aHgoogle/ads/googleads_v4/proto/enums/account_budget_proposal_status.proto\x1a\x46google/ads/googleads_v4/proto/enums/account_budget_proposal_type.proto\x1a=google/ads/googleads_v4/proto/enums/spending_limit_type.proto\x1a\x33google/ads/googleads_v4/proto/enums/time_type.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1cgoogle/api/annotations.proto\"\xa5\x10\n\x15\x41\x63\x63ountBudgetProposal\x12M\n\rresource_name\x18\x01 \x01(\tB6\xe0\x41\x05\xfa\x41\x30\n.googleads.googleapis.com/AccountBudgetProposal\x12,\n\x02id\x18\x0e \x01(\x0b\x32\x1b.google.protobuf.Int64ValueB\x03\xe0\x41\x03\x12\x62\n\rbilling_setup\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValueB-\xe0\x41\x05\xfa\x41\'\n%googleads.googleapis.com/BillingSetup\x12\x64\n\x0e\x61\x63\x63ount_budget\x18\x03 \x01(\x0b\x32\x1c.google.protobuf.StringValueB.\xe0\x41\x05\xfa\x41(\n&googleads.googleapis.com/AccountBudget\x12r\n\rproposal_type\x18\x04 \x01(\x0e\x32V.google.ads.googleads.v4.enums.AccountBudgetProposalTypeEnum.AccountBudgetProposalTypeB\x03\xe0\x41\x05\x12o\n\x06status\x18\x0f \x01(\x0e\x32Z.google.ads.googleads.v4.enums.AccountBudgetProposalStatusEnum.AccountBudgetProposalStatusB\x03\xe0\x41\x03\x12\x38\n\rproposed_name\x18\x05 \x01(\x0b\x32\x1c.google.protobuf.StringValueB\x03\xe0\x41\x05\x12\x43\n\x18\x61pproved_start_date_time\x18\x14 \x01(\x0b\x32\x1c.google.protobuf.StringValueB\x03\xe0\x41\x03\x12I\n\x1eproposed_purchase_order_number\x18\x0c \x01(\x0b\x32\x1c.google.protobuf.StringValueB\x03\xe0\x41\x05\x12\x39\n\x0eproposed_notes\x18\r \x01(\x0b\x32\x1c.google.protobuf.StringValueB\x03\xe0\x41\x05\x12=\n\x12\x63reation_date_time\x18\x10 \x01(\x0b\x32\x1c.google.protobuf.StringValueB\x03\xe0\x41\x03\x12=\n\x12\x61pproval_date_time\x18\x11 \x01(\x0b\x32\x1c.google.protobuf.StringValueB\x03\xe0\x41\x03\x12\x45\n\x18proposed_start_date_time\x18\x12 \x01(\x0b\x32\x1c.google.protobuf.StringValueB\x03\xe0\x41\x05H\x00\x12]\n\x18proposed_start_time_type\x18\x07 \x01(\x0e\x32\x34.google.ads.googleads.v4.enums.TimeTypeEnum.TimeTypeB\x03\xe0\x41\x05H\x00\x12\x43\n\x16proposed_end_date_time\x18\x13 \x01(\x0b\x32\x1c.google.protobuf.StringValueB\x03\xe0\x41\x05H\x01\x12[\n\x16proposed_end_time_type\x18\t \x01(\x0e\x32\x34.google.ads.googleads.v4.enums.TimeTypeEnum.TimeTypeB\x03\xe0\x41\x05H\x01\x12\x43\n\x16\x61pproved_end_date_time\x18\x15 \x01(\x0b\x32\x1c.google.protobuf.StringValueB\x03\xe0\x41\x03H\x02\x12[\n\x16\x61pproved_end_time_type\x18\x16 \x01(\x0e\x32\x34.google.ads.googleads.v4.enums.TimeTypeEnum.TimeTypeB\x03\xe0\x41\x03H\x02\x12J\n\x1eproposed_spending_limit_micros\x18\n \x01(\x0b\x32\x1b.google.protobuf.Int64ValueB\x03\xe0\x41\x05H\x03\x12s\n\x1cproposed_spending_limit_type\x18\x0b \x01(\x0e\x32\x46.google.ads.googleads.v4.enums.SpendingLimitTypeEnum.SpendingLimitTypeB\x03\xe0\x41\x05H\x03\x12J\n\x1e\x61pproved_spending_limit_micros\x18\x17 \x01(\x0b\x32\x1b.google.protobuf.Int64ValueB\x03\xe0\x41\x03H\x04\x12s\n\x1c\x61pproved_spending_limit_type\x18\x18 \x01(\x0e\x32\x46.google.ads.googleads.v4.enums.SpendingLimitTypeEnum.SpendingLimitTypeB\x03\xe0\x41\x03H\x04:z\xea\x41w\n.googleads.googleapis.com/AccountBudgetProposal\x12\x45\x63ustomers/{customer}/accountBudgetProposals/{account_budget_proposal}B\x15\n\x13proposed_start_timeB\x13\n\x11proposed_end_timeB\x13\n\x11\x61pproved_end_timeB\x19\n\x17proposed_spending_limitB\x19\n\x17\x61pproved_spending_limitB\x87\x02\n%com.google.ads.googleads.v4.resourcesB\x1a\x41\x63\x63ountBudgetProposalProtoP\x01ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v4/resources;resources\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V4.Resources\xca\x02!Google\\Ads\\GoogleAds\\V4\\Resources\xea\x02%Google::Ads::GoogleAds::V4::Resourcesb\x06proto3') + , + dependencies=[google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_account__budget__proposal__status__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_account__budget__proposal__type__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_spending__limit__type__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_time__type__pb2.DESCRIPTOR,google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_api_dot_resource__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + + +_ACCOUNTBUDGETPROPOSAL = _descriptor.Descriptor( + name='AccountBudgetProposal', + full_name='google.ads.googleads.v4.resources.AccountBudgetProposal', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.resources.AccountBudgetProposal.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005\372A0\n.googleads.googleapis.com/AccountBudgetProposal'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='id', full_name='google.ads.googleads.v4.resources.AccountBudgetProposal.id', index=1, + number=14, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='billing_setup', full_name='google.ads.googleads.v4.resources.AccountBudgetProposal.billing_setup', index=2, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005\372A\'\n%googleads.googleapis.com/BillingSetup'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='account_budget', full_name='google.ads.googleads.v4.resources.AccountBudgetProposal.account_budget', index=3, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005\372A(\n&googleads.googleapis.com/AccountBudget'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='proposal_type', full_name='google.ads.googleads.v4.resources.AccountBudgetProposal.proposal_type', index=4, + number=4, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='status', full_name='google.ads.googleads.v4.resources.AccountBudgetProposal.status', index=5, + number=15, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='proposed_name', full_name='google.ads.googleads.v4.resources.AccountBudgetProposal.proposed_name', index=6, + number=5, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='approved_start_date_time', full_name='google.ads.googleads.v4.resources.AccountBudgetProposal.approved_start_date_time', index=7, + number=20, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='proposed_purchase_order_number', full_name='google.ads.googleads.v4.resources.AccountBudgetProposal.proposed_purchase_order_number', index=8, + number=12, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='proposed_notes', full_name='google.ads.googleads.v4.resources.AccountBudgetProposal.proposed_notes', index=9, + number=13, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='creation_date_time', full_name='google.ads.googleads.v4.resources.AccountBudgetProposal.creation_date_time', index=10, + number=16, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='approval_date_time', full_name='google.ads.googleads.v4.resources.AccountBudgetProposal.approval_date_time', index=11, + number=17, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='proposed_start_date_time', full_name='google.ads.googleads.v4.resources.AccountBudgetProposal.proposed_start_date_time', index=12, + number=18, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='proposed_start_time_type', full_name='google.ads.googleads.v4.resources.AccountBudgetProposal.proposed_start_time_type', index=13, + number=7, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='proposed_end_date_time', full_name='google.ads.googleads.v4.resources.AccountBudgetProposal.proposed_end_date_time', index=14, + number=19, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='proposed_end_time_type', full_name='google.ads.googleads.v4.resources.AccountBudgetProposal.proposed_end_time_type', index=15, + number=9, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='approved_end_date_time', full_name='google.ads.googleads.v4.resources.AccountBudgetProposal.approved_end_date_time', index=16, + number=21, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='approved_end_time_type', full_name='google.ads.googleads.v4.resources.AccountBudgetProposal.approved_end_time_type', index=17, + number=22, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='proposed_spending_limit_micros', full_name='google.ads.googleads.v4.resources.AccountBudgetProposal.proposed_spending_limit_micros', index=18, + number=10, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='proposed_spending_limit_type', full_name='google.ads.googleads.v4.resources.AccountBudgetProposal.proposed_spending_limit_type', index=19, + number=11, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='approved_spending_limit_micros', full_name='google.ads.googleads.v4.resources.AccountBudgetProposal.approved_spending_limit_micros', index=20, + number=23, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='approved_spending_limit_type', full_name='google.ads.googleads.v4.resources.AccountBudgetProposal.approved_spending_limit_type', index=21, + number=24, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=_b('\352Aw\n.googleads.googleapis.com/AccountBudgetProposal\022Ecustomers/{customer}/accountBudgetProposals/{account_budget_proposal}'), + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name='proposed_start_time', full_name='google.ads.googleads.v4.resources.AccountBudgetProposal.proposed_start_time', + index=0, containing_type=None, fields=[]), + _descriptor.OneofDescriptor( + name='proposed_end_time', full_name='google.ads.googleads.v4.resources.AccountBudgetProposal.proposed_end_time', + index=1, containing_type=None, fields=[]), + _descriptor.OneofDescriptor( + name='approved_end_time', full_name='google.ads.googleads.v4.resources.AccountBudgetProposal.approved_end_time', + index=2, containing_type=None, fields=[]), + _descriptor.OneofDescriptor( + name='proposed_spending_limit', full_name='google.ads.googleads.v4.resources.AccountBudgetProposal.proposed_spending_limit', + index=3, containing_type=None, fields=[]), + _descriptor.OneofDescriptor( + name='approved_spending_limit', full_name='google.ads.googleads.v4.resources.AccountBudgetProposal.approved_spending_limit', + index=4, containing_type=None, fields=[]), + ], + serialized_start=493, + serialized_end=2578, +) + +_ACCOUNTBUDGETPROPOSAL.fields_by_name['id'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_ACCOUNTBUDGETPROPOSAL.fields_by_name['billing_setup'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_ACCOUNTBUDGETPROPOSAL.fields_by_name['account_budget'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_ACCOUNTBUDGETPROPOSAL.fields_by_name['proposal_type'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_account__budget__proposal__type__pb2._ACCOUNTBUDGETPROPOSALTYPEENUM_ACCOUNTBUDGETPROPOSALTYPE +_ACCOUNTBUDGETPROPOSAL.fields_by_name['status'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_account__budget__proposal__status__pb2._ACCOUNTBUDGETPROPOSALSTATUSENUM_ACCOUNTBUDGETPROPOSALSTATUS +_ACCOUNTBUDGETPROPOSAL.fields_by_name['proposed_name'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_ACCOUNTBUDGETPROPOSAL.fields_by_name['approved_start_date_time'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_ACCOUNTBUDGETPROPOSAL.fields_by_name['proposed_purchase_order_number'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_ACCOUNTBUDGETPROPOSAL.fields_by_name['proposed_notes'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_ACCOUNTBUDGETPROPOSAL.fields_by_name['creation_date_time'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_ACCOUNTBUDGETPROPOSAL.fields_by_name['approval_date_time'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_ACCOUNTBUDGETPROPOSAL.fields_by_name['proposed_start_date_time'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_ACCOUNTBUDGETPROPOSAL.fields_by_name['proposed_start_time_type'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_time__type__pb2._TIMETYPEENUM_TIMETYPE +_ACCOUNTBUDGETPROPOSAL.fields_by_name['proposed_end_date_time'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_ACCOUNTBUDGETPROPOSAL.fields_by_name['proposed_end_time_type'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_time__type__pb2._TIMETYPEENUM_TIMETYPE +_ACCOUNTBUDGETPROPOSAL.fields_by_name['approved_end_date_time'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_ACCOUNTBUDGETPROPOSAL.fields_by_name['approved_end_time_type'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_time__type__pb2._TIMETYPEENUM_TIMETYPE +_ACCOUNTBUDGETPROPOSAL.fields_by_name['proposed_spending_limit_micros'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_ACCOUNTBUDGETPROPOSAL.fields_by_name['proposed_spending_limit_type'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_spending__limit__type__pb2._SPENDINGLIMITTYPEENUM_SPENDINGLIMITTYPE +_ACCOUNTBUDGETPROPOSAL.fields_by_name['approved_spending_limit_micros'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_ACCOUNTBUDGETPROPOSAL.fields_by_name['approved_spending_limit_type'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_spending__limit__type__pb2._SPENDINGLIMITTYPEENUM_SPENDINGLIMITTYPE +_ACCOUNTBUDGETPROPOSAL.oneofs_by_name['proposed_start_time'].fields.append( + _ACCOUNTBUDGETPROPOSAL.fields_by_name['proposed_start_date_time']) +_ACCOUNTBUDGETPROPOSAL.fields_by_name['proposed_start_date_time'].containing_oneof = _ACCOUNTBUDGETPROPOSAL.oneofs_by_name['proposed_start_time'] +_ACCOUNTBUDGETPROPOSAL.oneofs_by_name['proposed_start_time'].fields.append( + _ACCOUNTBUDGETPROPOSAL.fields_by_name['proposed_start_time_type']) +_ACCOUNTBUDGETPROPOSAL.fields_by_name['proposed_start_time_type'].containing_oneof = _ACCOUNTBUDGETPROPOSAL.oneofs_by_name['proposed_start_time'] +_ACCOUNTBUDGETPROPOSAL.oneofs_by_name['proposed_end_time'].fields.append( + _ACCOUNTBUDGETPROPOSAL.fields_by_name['proposed_end_date_time']) +_ACCOUNTBUDGETPROPOSAL.fields_by_name['proposed_end_date_time'].containing_oneof = _ACCOUNTBUDGETPROPOSAL.oneofs_by_name['proposed_end_time'] +_ACCOUNTBUDGETPROPOSAL.oneofs_by_name['proposed_end_time'].fields.append( + _ACCOUNTBUDGETPROPOSAL.fields_by_name['proposed_end_time_type']) +_ACCOUNTBUDGETPROPOSAL.fields_by_name['proposed_end_time_type'].containing_oneof = _ACCOUNTBUDGETPROPOSAL.oneofs_by_name['proposed_end_time'] +_ACCOUNTBUDGETPROPOSAL.oneofs_by_name['approved_end_time'].fields.append( + _ACCOUNTBUDGETPROPOSAL.fields_by_name['approved_end_date_time']) +_ACCOUNTBUDGETPROPOSAL.fields_by_name['approved_end_date_time'].containing_oneof = _ACCOUNTBUDGETPROPOSAL.oneofs_by_name['approved_end_time'] +_ACCOUNTBUDGETPROPOSAL.oneofs_by_name['approved_end_time'].fields.append( + _ACCOUNTBUDGETPROPOSAL.fields_by_name['approved_end_time_type']) +_ACCOUNTBUDGETPROPOSAL.fields_by_name['approved_end_time_type'].containing_oneof = _ACCOUNTBUDGETPROPOSAL.oneofs_by_name['approved_end_time'] +_ACCOUNTBUDGETPROPOSAL.oneofs_by_name['proposed_spending_limit'].fields.append( + _ACCOUNTBUDGETPROPOSAL.fields_by_name['proposed_spending_limit_micros']) +_ACCOUNTBUDGETPROPOSAL.fields_by_name['proposed_spending_limit_micros'].containing_oneof = _ACCOUNTBUDGETPROPOSAL.oneofs_by_name['proposed_spending_limit'] +_ACCOUNTBUDGETPROPOSAL.oneofs_by_name['proposed_spending_limit'].fields.append( + _ACCOUNTBUDGETPROPOSAL.fields_by_name['proposed_spending_limit_type']) +_ACCOUNTBUDGETPROPOSAL.fields_by_name['proposed_spending_limit_type'].containing_oneof = _ACCOUNTBUDGETPROPOSAL.oneofs_by_name['proposed_spending_limit'] +_ACCOUNTBUDGETPROPOSAL.oneofs_by_name['approved_spending_limit'].fields.append( + _ACCOUNTBUDGETPROPOSAL.fields_by_name['approved_spending_limit_micros']) +_ACCOUNTBUDGETPROPOSAL.fields_by_name['approved_spending_limit_micros'].containing_oneof = _ACCOUNTBUDGETPROPOSAL.oneofs_by_name['approved_spending_limit'] +_ACCOUNTBUDGETPROPOSAL.oneofs_by_name['approved_spending_limit'].fields.append( + _ACCOUNTBUDGETPROPOSAL.fields_by_name['approved_spending_limit_type']) +_ACCOUNTBUDGETPROPOSAL.fields_by_name['approved_spending_limit_type'].containing_oneof = _ACCOUNTBUDGETPROPOSAL.oneofs_by_name['approved_spending_limit'] +DESCRIPTOR.message_types_by_name['AccountBudgetProposal'] = _ACCOUNTBUDGETPROPOSAL +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +AccountBudgetProposal = _reflection.GeneratedProtocolMessageType('AccountBudgetProposal', (_message.Message,), dict( + DESCRIPTOR = _ACCOUNTBUDGETPROPOSAL, + __module__ = 'google.ads.googleads_v4.proto.resources.account_budget_proposal_pb2' + , + __doc__ = """An account-level budget proposal. + + All fields prefixed with 'proposed' may not necessarily be applied + directly. For example, proposed spending limits may be adjusted before + their application. This is true if the 'proposed' field has an + 'approved' counterpart, e.g. spending limits. + + Please note that the proposal type (proposal\_type) changes which fields + are required and which must remain empty. + + + Attributes: + resource_name: + Immutable. The resource name of the proposal. + AccountBudgetProposal resource names have the form: ``custome + rs/{customer_id}/accountBudgetProposals/{account_budget_propos + al_id}`` + id: + Output only. The ID of the proposal. + billing_setup: + Immutable. The resource name of the billing setup associated + with this proposal. + account_budget: + Immutable. The resource name of the account-level budget + associated with this proposal. + proposal_type: + Immutable. The type of this proposal, e.g. END to end the + budget associated with this proposal. + status: + Output only. The status of this proposal. When a new proposal + is created, the status defaults to PENDING. + proposed_name: + Immutable. The name to assign to the account-level budget. + approved_start_date_time: + Output only. The approved start date time in yyyy-mm-dd + hh:mm:ss format. + proposed_purchase_order_number: + Immutable. A purchase order number is a value that enables the + user to help them reference this budget in their monthly + invoices. + proposed_notes: + Immutable. Notes associated with this budget. + creation_date_time: + Output only. The date time when this account-level budget + proposal was created, which is not the same as its approval + date time, if applicable. + approval_date_time: + Output only. The date time when this account-level budget was + approved, if applicable. + proposed_start_time: + The proposed start date time of the account-level budget, + which cannot be in the past. + proposed_start_date_time: + Immutable. The proposed start date time in yyyy-mm-dd hh:mm:ss + format. + proposed_start_time_type: + Immutable. The proposed start date time as a well-defined + type, e.g. NOW. + proposed_end_time: + The proposed end date time of the account-level budget, which + cannot be in the past. + proposed_end_date_time: + Immutable. The proposed end date time in yyyy-mm-dd hh:mm:ss + format. + proposed_end_time_type: + Immutable. The proposed end date time as a well-defined type, + e.g. FOREVER. + approved_end_time: + The approved end date time of the account-level budget. + approved_end_date_time: + Output only. The approved end date time in yyyy-mm-dd hh:mm:ss + format. + approved_end_time_type: + Output only. The approved end date time as a well-defined + type, e.g. FOREVER. + proposed_spending_limit: + The proposed spending limit. + proposed_spending_limit_micros: + Immutable. The proposed spending limit in micros. One million + is equivalent to one unit. + proposed_spending_limit_type: + Immutable. The proposed spending limit as a well-defined type, + e.g. INFINITE. + approved_spending_limit: + The approved spending limit. + approved_spending_limit_micros: + Output only. The approved spending limit in micros. One + million is equivalent to one unit. + approved_spending_limit_type: + Output only. The approved spending limit as a well-defined + type, e.g. INFINITE. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.resources.AccountBudgetProposal) + )) +_sym_db.RegisterMessage(AccountBudgetProposal) + + +DESCRIPTOR._options = None +_ACCOUNTBUDGETPROPOSAL.fields_by_name['resource_name']._options = None +_ACCOUNTBUDGETPROPOSAL.fields_by_name['id']._options = None +_ACCOUNTBUDGETPROPOSAL.fields_by_name['billing_setup']._options = None +_ACCOUNTBUDGETPROPOSAL.fields_by_name['account_budget']._options = None +_ACCOUNTBUDGETPROPOSAL.fields_by_name['proposal_type']._options = None +_ACCOUNTBUDGETPROPOSAL.fields_by_name['status']._options = None +_ACCOUNTBUDGETPROPOSAL.fields_by_name['proposed_name']._options = None +_ACCOUNTBUDGETPROPOSAL.fields_by_name['approved_start_date_time']._options = None +_ACCOUNTBUDGETPROPOSAL.fields_by_name['proposed_purchase_order_number']._options = None +_ACCOUNTBUDGETPROPOSAL.fields_by_name['proposed_notes']._options = None +_ACCOUNTBUDGETPROPOSAL.fields_by_name['creation_date_time']._options = None +_ACCOUNTBUDGETPROPOSAL.fields_by_name['approval_date_time']._options = None +_ACCOUNTBUDGETPROPOSAL.fields_by_name['proposed_start_date_time']._options = None +_ACCOUNTBUDGETPROPOSAL.fields_by_name['proposed_start_time_type']._options = None +_ACCOUNTBUDGETPROPOSAL.fields_by_name['proposed_end_date_time']._options = None +_ACCOUNTBUDGETPROPOSAL.fields_by_name['proposed_end_time_type']._options = None +_ACCOUNTBUDGETPROPOSAL.fields_by_name['approved_end_date_time']._options = None +_ACCOUNTBUDGETPROPOSAL.fields_by_name['approved_end_time_type']._options = None +_ACCOUNTBUDGETPROPOSAL.fields_by_name['proposed_spending_limit_micros']._options = None +_ACCOUNTBUDGETPROPOSAL.fields_by_name['proposed_spending_limit_type']._options = None +_ACCOUNTBUDGETPROPOSAL.fields_by_name['approved_spending_limit_micros']._options = None +_ACCOUNTBUDGETPROPOSAL.fields_by_name['approved_spending_limit_type']._options = None +_ACCOUNTBUDGETPROPOSAL._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/resources/carrier_constant_pb2_grpc.py b/google/ads/google_ads/v4/proto/resources/account_budget_proposal_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/resources/carrier_constant_pb2_grpc.py rename to google/ads/google_ads/v4/proto/resources/account_budget_proposal_pb2_grpc.py diff --git a/google/ads/google_ads/v4/proto/resources/account_link_pb2.py b/google/ads/google_ads/v4/proto/resources/account_link_pb2.py new file mode 100644 index 000000000..6c261de9c --- /dev/null +++ b/google/ads/google_ads/v4/proto/resources/account_link_pb2.py @@ -0,0 +1,230 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/resources/account_link.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.ads.google_ads.v4.proto.enums import account_link_status_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_account__link__status__pb2 +from google.ads.google_ads.v4.proto.enums import linked_account_type_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_linked__account__type__pb2 +from google.ads.google_ads.v4.proto.enums import mobile_app_vendor_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_mobile__app__vendor__pb2 +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 +from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/resources/account_link.proto', + package='google.ads.googleads.v4.resources', + syntax='proto3', + serialized_options=_b('\n%com.google.ads.googleads.v4.resourcesB\020AccountLinkProtoP\001ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v4/resources;resources\242\002\003GAA\252\002!Google.Ads.GoogleAds.V4.Resources\312\002!Google\\Ads\\GoogleAds\\V4\\Resources\352\002%Google::Ads::GoogleAds::V4::Resources'), + serialized_pb=_b('\n:google/ads/googleads_v4/proto/resources/account_link.proto\x12!google.ads.googleads.v4.resources\x1a=google/ads/googleads_v4/proto/enums/account_link_status.proto\x1a=google/ads/googleads_v4/proto/enums/linked_account_type.proto\x1a;google/ads/googleads_v4/proto/enums/mobile_app_vendor.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1cgoogle/api/annotations.proto\"\xa2\x04\n\x0b\x41\x63\x63ountLink\x12\x43\n\rresource_name\x18\x01 \x01(\tB,\xe0\x41\x05\xfa\x41&\n$googleads.googleapis.com/AccountLink\x12\x39\n\x0f\x61\x63\x63ount_link_id\x18\x02 \x01(\x0b\x32\x1b.google.protobuf.Int64ValueB\x03\xe0\x41\x03\x12V\n\x06status\x18\x03 \x01(\x0e\x32\x46.google.ads.googleads.v4.enums.AccountLinkStatusEnum.AccountLinkStatus\x12Y\n\x04type\x18\x04 \x01(\x0e\x32\x46.google.ads.googleads.v4.enums.LinkedAccountTypeEnum.LinkedAccountTypeB\x03\xe0\x41\x03\x12q\n\x19third_party_app_analytics\x18\x05 \x01(\x0b\x32G.google.ads.googleads.v4.resources.ThirdPartyAppAnalyticsLinkIdentifierB\x03\xe0\x41\x05H\x00:[\xea\x41X\n$googleads.googleapis.com/AccountLink\x12\x30\x63ustomers/{customer}/accountLinks/{account_link}B\x10\n\x0elinked_account\"\xfb\x01\n$ThirdPartyAppAnalyticsLinkIdentifier\x12\x43\n\x19\x61pp_analytics_provider_id\x18\x01 \x01(\x0b\x32\x1b.google.protobuf.Int64ValueB\x03\xe0\x41\x05\x12\x31\n\x06\x61pp_id\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValueB\x03\xe0\x41\x05\x12[\n\napp_vendor\x18\x03 \x01(\x0e\x32\x42.google.ads.googleads.v4.enums.MobileAppVendorEnum.MobileAppVendorB\x03\xe0\x41\x05\x42\xfd\x01\n%com.google.ads.googleads.v4.resourcesB\x10\x41\x63\x63ountLinkProtoP\x01ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v4/resources;resources\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V4.Resources\xca\x02!Google\\Ads\\GoogleAds\\V4\\Resources\xea\x02%Google::Ads::GoogleAds::V4::Resourcesb\x06proto3') + , + dependencies=[google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_account__link__status__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_linked__account__type__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_mobile__app__vendor__pb2.DESCRIPTOR,google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_api_dot_resource__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + + +_ACCOUNTLINK = _descriptor.Descriptor( + name='AccountLink', + full_name='google.ads.googleads.v4.resources.AccountLink', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.resources.AccountLink.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005\372A&\n$googleads.googleapis.com/AccountLink'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='account_link_id', full_name='google.ads.googleads.v4.resources.AccountLink.account_link_id', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='status', full_name='google.ads.googleads.v4.resources.AccountLink.status', index=2, + number=3, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='type', full_name='google.ads.googleads.v4.resources.AccountLink.type', index=3, + number=4, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='third_party_app_analytics', full_name='google.ads.googleads.v4.resources.AccountLink.third_party_app_analytics', index=4, + number=5, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=_b('\352AX\n$googleads.googleapis.com/AccountLink\0220customers/{customer}/accountLinks/{account_link}'), + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name='linked_account', full_name='google.ads.googleads.v4.resources.AccountLink.linked_account', + index=0, containing_type=None, fields=[]), + ], + serialized_start=407, + serialized_end=953, +) + + +_THIRDPARTYAPPANALYTICSLINKIDENTIFIER = _descriptor.Descriptor( + name='ThirdPartyAppAnalyticsLinkIdentifier', + full_name='google.ads.googleads.v4.resources.ThirdPartyAppAnalyticsLinkIdentifier', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='app_analytics_provider_id', full_name='google.ads.googleads.v4.resources.ThirdPartyAppAnalyticsLinkIdentifier.app_analytics_provider_id', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='app_id', full_name='google.ads.googleads.v4.resources.ThirdPartyAppAnalyticsLinkIdentifier.app_id', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='app_vendor', full_name='google.ads.googleads.v4.resources.ThirdPartyAppAnalyticsLinkIdentifier.app_vendor', index=2, + number=3, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=956, + serialized_end=1207, +) + +_ACCOUNTLINK.fields_by_name['account_link_id'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_ACCOUNTLINK.fields_by_name['status'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_account__link__status__pb2._ACCOUNTLINKSTATUSENUM_ACCOUNTLINKSTATUS +_ACCOUNTLINK.fields_by_name['type'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_linked__account__type__pb2._LINKEDACCOUNTTYPEENUM_LINKEDACCOUNTTYPE +_ACCOUNTLINK.fields_by_name['third_party_app_analytics'].message_type = _THIRDPARTYAPPANALYTICSLINKIDENTIFIER +_ACCOUNTLINK.oneofs_by_name['linked_account'].fields.append( + _ACCOUNTLINK.fields_by_name['third_party_app_analytics']) +_ACCOUNTLINK.fields_by_name['third_party_app_analytics'].containing_oneof = _ACCOUNTLINK.oneofs_by_name['linked_account'] +_THIRDPARTYAPPANALYTICSLINKIDENTIFIER.fields_by_name['app_analytics_provider_id'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_THIRDPARTYAPPANALYTICSLINKIDENTIFIER.fields_by_name['app_id'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_THIRDPARTYAPPANALYTICSLINKIDENTIFIER.fields_by_name['app_vendor'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_mobile__app__vendor__pb2._MOBILEAPPVENDORENUM_MOBILEAPPVENDOR +DESCRIPTOR.message_types_by_name['AccountLink'] = _ACCOUNTLINK +DESCRIPTOR.message_types_by_name['ThirdPartyAppAnalyticsLinkIdentifier'] = _THIRDPARTYAPPANALYTICSLINKIDENTIFIER +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +AccountLink = _reflection.GeneratedProtocolMessageType('AccountLink', (_message.Message,), dict( + DESCRIPTOR = _ACCOUNTLINK, + __module__ = 'google.ads.googleads_v4.proto.resources.account_link_pb2' + , + __doc__ = """Represents the data sharing connection between a Google Ads account and + another account + + + Attributes: + resource_name: + Immutable. Resource name of the account link. AccountLink + resource names have the form: + ``customers/{customer_id}/accountLinks/{account_link_id}`` + account_link_id: + Output only. The ID of the link. This field is read only. + status: + The status of the link. + type: + Output only. The type of the linked account. + linked_account: + An account linked to this Google Ads account. + third_party_app_analytics: + Immutable. A third party app analytics link. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.resources.AccountLink) + )) +_sym_db.RegisterMessage(AccountLink) + +ThirdPartyAppAnalyticsLinkIdentifier = _reflection.GeneratedProtocolMessageType('ThirdPartyAppAnalyticsLinkIdentifier', (_message.Message,), dict( + DESCRIPTOR = _THIRDPARTYAPPANALYTICSLINKIDENTIFIER, + __module__ = 'google.ads.googleads_v4.proto.resources.account_link_pb2' + , + __doc__ = """The identifiers of a Third Party App Analytics Link. + + + Attributes: + app_analytics_provider_id: + Immutable. The ID of the app analytics provider. This field + should not be empty when creating a new third party app + analytics link. It is unable to be modified after the creation + of the link. + app_id: + Immutable. A string that uniquely identifies a mobile + application from which the data was collected to the Google + Ads API. For iOS, the ID string is the 9 digit string that + appears at the end of an App Store URL (e.g., "422689480" for + "Gmail" whose App Store link is + https://apps.apple.com/us/app/gmail-email-by- + google/id422689480). For Android, the ID string is the + application's package name (e.g., "com.google.android.gm" for + "Gmail" given Google Play link https://play.google.com/store/a + pps/details?id=com.google.android.gm) This field should not be + empty when creating a new third party app analytics link. It + is unable to be modified after the creation of the link. + app_vendor: + Immutable. The vendor of the app. This field should not be + empty when creating a new third party app analytics link. It + is unable to be modified after the creation of the link. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.resources.ThirdPartyAppAnalyticsLinkIdentifier) + )) +_sym_db.RegisterMessage(ThirdPartyAppAnalyticsLinkIdentifier) + + +DESCRIPTOR._options = None +_ACCOUNTLINK.fields_by_name['resource_name']._options = None +_ACCOUNTLINK.fields_by_name['account_link_id']._options = None +_ACCOUNTLINK.fields_by_name['type']._options = None +_ACCOUNTLINK.fields_by_name['third_party_app_analytics']._options = None +_ACCOUNTLINK._options = None +_THIRDPARTYAPPANALYTICSLINKIDENTIFIER.fields_by_name['app_analytics_provider_id']._options = None +_THIRDPARTYAPPANALYTICSLINKIDENTIFIER.fields_by_name['app_id']._options = None +_THIRDPARTYAPPANALYTICSLINKIDENTIFIER.fields_by_name['app_vendor']._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/resources/change_status_pb2_grpc.py b/google/ads/google_ads/v4/proto/resources/account_link_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/resources/change_status_pb2_grpc.py rename to google/ads/google_ads/v4/proto/resources/account_link_pb2_grpc.py diff --git a/google/ads/google_ads/v4/proto/resources/ad_group_ad_asset_view_pb2.py b/google/ads/google_ads/v4/proto/resources/ad_group_ad_asset_view_pb2.py new file mode 100644 index 000000000..015325631 --- /dev/null +++ b/google/ads/google_ads/v4/proto/resources/ad_group_ad_asset_view_pb2.py @@ -0,0 +1,229 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/resources/ad_group_ad_asset_view.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.ads.google_ads.v4.proto.common import policy_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_policy__pb2 +from google.ads.google_ads.v4.proto.enums import asset_field_type_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_asset__field__type__pb2 +from google.ads.google_ads.v4.proto.enums import asset_performance_label_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_asset__performance__label__pb2 +from google.ads.google_ads.v4.proto.enums import policy_approval_status_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_policy__approval__status__pb2 +from google.ads.google_ads.v4.proto.enums import policy_review_status_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_policy__review__status__pb2 +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 +from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/resources/ad_group_ad_asset_view.proto', + package='google.ads.googleads.v4.resources', + syntax='proto3', + serialized_options=_b('\n%com.google.ads.googleads.v4.resourcesB\027AdGroupAdAssetViewProtoP\001ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v4/resources;resources\242\002\003GAA\252\002!Google.Ads.GoogleAds.V4.Resources\312\002!Google\\Ads\\GoogleAds\\V4\\Resources\352\002%Google::Ads::GoogleAds::V4::Resources'), + serialized_pb=_b('\nDgoogle/ads/googleads_v4/proto/resources/ad_group_ad_asset_view.proto\x12!google.ads.googleads.v4.resources\x1a\x31google/ads/googleads_v4/proto/common/policy.proto\x1a:google/ads/googleads_v4/proto/enums/asset_field_type.proto\x1a\x41google/ads/googleads_v4/proto/enums/asset_performance_label.proto\x1a@google/ads/googleads_v4/proto/enums/policy_approval_status.proto\x1a>google/ads/googleads_v4/proto/enums/policy_review_status.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1cgoogle/api/annotations.proto\"\xb1\x05\n\x12\x41\x64GroupAdAssetView\x12J\n\rresource_name\x18\x01 \x01(\tB3\xe0\x41\x03\xfa\x41-\n+googleads.googleapis.com/AdGroupAdAssetView\x12]\n\x0b\x61\x64_group_ad\x18\x05 \x01(\x0b\x32\x1c.google.protobuf.StringValueB*\xe0\x41\x03\xfa\x41$\n\"googleads.googleapis.com/AdGroupAd\x12S\n\x05\x61sset\x18\x06 \x01(\x0b\x32\x1c.google.protobuf.StringValueB&\xe0\x41\x03\xfa\x41 \n\x1egoogleads.googleapis.com/Asset\x12Y\n\nfield_type\x18\x02 \x01(\x0e\x32@.google.ads.googleads.v4.enums.AssetFieldTypeEnum.AssetFieldTypeB\x03\xe0\x41\x03\x12[\n\x0epolicy_summary\x18\x03 \x01(\x0b\x32>.google.ads.googleads.v4.resources.AdGroupAdAssetPolicySummaryB\x03\xe0\x41\x03\x12n\n\x11performance_label\x18\x04 \x01(\x0e\x32N.google.ads.googleads.v4.enums.AssetPerformanceLabelEnum.AssetPerformanceLabelB\x03\xe0\x41\x03:s\xea\x41p\n+googleads.googleapis.com/AdGroupAdAssetView\x12\x41\x63ustomers/{customer}/adGroupAdAssetViews/{ad_group_ad_asset_view}\"\xc4\x02\n\x1b\x41\x64GroupAdAssetPolicySummary\x12S\n\x14policy_topic_entries\x18\x01 \x03(\x0b\x32\x30.google.ads.googleads.v4.common.PolicyTopicEntryB\x03\xe0\x41\x03\x12\x64\n\rreview_status\x18\x02 \x01(\x0e\x32H.google.ads.googleads.v4.enums.PolicyReviewStatusEnum.PolicyReviewStatusB\x03\xe0\x41\x03\x12j\n\x0f\x61pproval_status\x18\x03 \x01(\x0e\x32L.google.ads.googleads.v4.enums.PolicyApprovalStatusEnum.PolicyApprovalStatusB\x03\xe0\x41\x03\x42\x84\x02\n%com.google.ads.googleads.v4.resourcesB\x17\x41\x64GroupAdAssetViewProtoP\x01ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v4/resources;resources\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V4.Resources\xca\x02!Google\\Ads\\GoogleAds\\V4\\Resources\xea\x02%Google::Ads::GoogleAds::V4::Resourcesb\x06proto3') + , + dependencies=[google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_policy__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_asset__field__type__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_asset__performance__label__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_policy__approval__status__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_policy__review__status__pb2.DESCRIPTOR,google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_api_dot_resource__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + + +_ADGROUPADASSETVIEW = _descriptor.Descriptor( + name='AdGroupAdAssetView', + full_name='google.ads.googleads.v4.resources.AdGroupAdAssetView', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.resources.AdGroupAdAssetView.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003\372A-\n+googleads.googleapis.com/AdGroupAdAssetView'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='ad_group_ad', full_name='google.ads.googleads.v4.resources.AdGroupAdAssetView.ad_group_ad', index=1, + number=5, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003\372A$\n\"googleads.googleapis.com/AdGroupAd'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='asset', full_name='google.ads.googleads.v4.resources.AdGroupAdAssetView.asset', index=2, + number=6, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003\372A \n\036googleads.googleapis.com/Asset'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='field_type', full_name='google.ads.googleads.v4.resources.AdGroupAdAssetView.field_type', index=3, + number=2, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='policy_summary', full_name='google.ads.googleads.v4.resources.AdGroupAdAssetView.policy_summary', index=4, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='performance_label', full_name='google.ads.googleads.v4.resources.AdGroupAdAssetView.performance_label', index=5, + number=4, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=_b('\352Ap\n+googleads.googleapis.com/AdGroupAdAssetView\022Acustomers/{customer}/adGroupAdAssetViews/{ad_group_ad_asset_view}'), + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=538, + serialized_end=1227, +) + + +_ADGROUPADASSETPOLICYSUMMARY = _descriptor.Descriptor( + name='AdGroupAdAssetPolicySummary', + full_name='google.ads.googleads.v4.resources.AdGroupAdAssetPolicySummary', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='policy_topic_entries', full_name='google.ads.googleads.v4.resources.AdGroupAdAssetPolicySummary.policy_topic_entries', index=0, + number=1, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='review_status', full_name='google.ads.googleads.v4.resources.AdGroupAdAssetPolicySummary.review_status', index=1, + number=2, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='approval_status', full_name='google.ads.googleads.v4.resources.AdGroupAdAssetPolicySummary.approval_status', index=2, + number=3, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1230, + serialized_end=1554, +) + +_ADGROUPADASSETVIEW.fields_by_name['ad_group_ad'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_ADGROUPADASSETVIEW.fields_by_name['asset'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_ADGROUPADASSETVIEW.fields_by_name['field_type'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_asset__field__type__pb2._ASSETFIELDTYPEENUM_ASSETFIELDTYPE +_ADGROUPADASSETVIEW.fields_by_name['policy_summary'].message_type = _ADGROUPADASSETPOLICYSUMMARY +_ADGROUPADASSETVIEW.fields_by_name['performance_label'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_asset__performance__label__pb2._ASSETPERFORMANCELABELENUM_ASSETPERFORMANCELABEL +_ADGROUPADASSETPOLICYSUMMARY.fields_by_name['policy_topic_entries'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_policy__pb2._POLICYTOPICENTRY +_ADGROUPADASSETPOLICYSUMMARY.fields_by_name['review_status'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_policy__review__status__pb2._POLICYREVIEWSTATUSENUM_POLICYREVIEWSTATUS +_ADGROUPADASSETPOLICYSUMMARY.fields_by_name['approval_status'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_policy__approval__status__pb2._POLICYAPPROVALSTATUSENUM_POLICYAPPROVALSTATUS +DESCRIPTOR.message_types_by_name['AdGroupAdAssetView'] = _ADGROUPADASSETVIEW +DESCRIPTOR.message_types_by_name['AdGroupAdAssetPolicySummary'] = _ADGROUPADASSETPOLICYSUMMARY +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +AdGroupAdAssetView = _reflection.GeneratedProtocolMessageType('AdGroupAdAssetView', (_message.Message,), dict( + DESCRIPTOR = _ADGROUPADASSETVIEW, + __module__ = 'google.ads.googleads_v4.proto.resources.ad_group_ad_asset_view_pb2' + , + __doc__ = """A link between an AdGroupAd and an Asset. + + + Attributes: + resource_name: + Output only. The resource name of the ad group ad asset view. + Ad group ad asset view resource names have the form (Before + V4): ``customers/{customer_id}/adGroupAdAssets/{AdGroupAdAsse + t.ad_group_id}~{AdGroupAdAsset.ad.ad_id}~{AdGroupAdAsset.asset + _id}~{AdGroupAdAsset.field_type}`` Ad group ad asset view + resource names have the form (Beginning from V4): ``customers + /{customer_id}/adGroupAdAssetViews/{AdGroupAdAsset.ad_group_id + }~{AdGroupAdAsset.ad_id}~{AdGroupAdAsset.asset_id}~{AdGroupAdA + sset.field_type}`` + ad_group_ad: + Output only. The ad group ad to which the asset is linked. + asset: + Output only. The asset which is linked to the ad group ad. + field_type: + Output only. Role that the asset takes in the ad. + policy_summary: + Output only. Policy information for the ad group ad asset. + performance_label: + Output only. Performance of an asset linkage. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.resources.AdGroupAdAssetView) + )) +_sym_db.RegisterMessage(AdGroupAdAssetView) + +AdGroupAdAssetPolicySummary = _reflection.GeneratedProtocolMessageType('AdGroupAdAssetPolicySummary', (_message.Message,), dict( + DESCRIPTOR = _ADGROUPADASSETPOLICYSUMMARY, + __module__ = 'google.ads.googleads_v4.proto.resources.ad_group_ad_asset_view_pb2' + , + __doc__ = """Contains policy information for an ad group ad asset. + + + Attributes: + policy_topic_entries: + Output only. The list of policy findings for the ad group ad + asset. + review_status: + Output only. Where in the review process this ad group ad + asset is. + approval_status: + Output only. The overall approval status of this ad group ad + asset, calculated based on the status of its individual policy + topic entries. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.resources.AdGroupAdAssetPolicySummary) + )) +_sym_db.RegisterMessage(AdGroupAdAssetPolicySummary) + + +DESCRIPTOR._options = None +_ADGROUPADASSETVIEW.fields_by_name['resource_name']._options = None +_ADGROUPADASSETVIEW.fields_by_name['ad_group_ad']._options = None +_ADGROUPADASSETVIEW.fields_by_name['asset']._options = None +_ADGROUPADASSETVIEW.fields_by_name['field_type']._options = None +_ADGROUPADASSETVIEW.fields_by_name['policy_summary']._options = None +_ADGROUPADASSETVIEW.fields_by_name['performance_label']._options = None +_ADGROUPADASSETVIEW._options = None +_ADGROUPADASSETPOLICYSUMMARY.fields_by_name['policy_topic_entries']._options = None +_ADGROUPADASSETPOLICYSUMMARY.fields_by_name['review_status']._options = None +_ADGROUPADASSETPOLICYSUMMARY.fields_by_name['approval_status']._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/resources/click_view_pb2_grpc.py b/google/ads/google_ads/v4/proto/resources/ad_group_ad_asset_view_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/resources/click_view_pb2_grpc.py rename to google/ads/google_ads/v4/proto/resources/ad_group_ad_asset_view_pb2_grpc.py diff --git a/google/ads/google_ads/v4/proto/resources/ad_group_ad_label_pb2.py b/google/ads/google_ads/v4/proto/resources/ad_group_ad_label_pb2.py new file mode 100644 index 000000000..77736ebfb --- /dev/null +++ b/google/ads/google_ads/v4/proto/resources/ad_group_ad_label_pb2.py @@ -0,0 +1,110 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/resources/ad_group_ad_label.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 +from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/resources/ad_group_ad_label.proto', + package='google.ads.googleads.v4.resources', + syntax='proto3', + serialized_options=_b('\n%com.google.ads.googleads.v4.resourcesB\023AdGroupAdLabelProtoP\001ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v4/resources;resources\242\002\003GAA\252\002!Google.Ads.GoogleAds.V4.Resources\312\002!Google\\Ads\\GoogleAds\\V4\\Resources\352\002%Google::Ads::GoogleAds::V4::Resources'), + serialized_pb=_b('\n?google/ads/googleads_v4/proto/resources/ad_group_ad_label.proto\x12!google.ads.googleads.v4.resources\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1cgoogle/api/annotations.proto\"\xf4\x02\n\x0e\x41\x64GroupAdLabel\x12\x46\n\rresource_name\x18\x01 \x01(\tB/\xe0\x41\x05\xfa\x41)\n\'googleads.googleapis.com/AdGroupAdLabel\x12]\n\x0b\x61\x64_group_ad\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValueB*\xe0\x41\x05\xfa\x41$\n\"googleads.googleapis.com/AdGroupAd\x12S\n\x05label\x18\x03 \x01(\x0b\x32\x1c.google.protobuf.StringValueB&\xe0\x41\x05\xfa\x41 \n\x1egoogleads.googleapis.com/Label:f\xea\x41\x63\n\'googleads.googleapis.com/AdGroupAdLabel\x12\x38\x63ustomers/{customer}/adGroupAdLabels/{ad_group_ad_label}B\x80\x02\n%com.google.ads.googleads.v4.resourcesB\x13\x41\x64GroupAdLabelProtoP\x01ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v4/resources;resources\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V4.Resources\xca\x02!Google\\Ads\\GoogleAds\\V4\\Resources\xea\x02%Google::Ads::GoogleAds::V4::Resourcesb\x06proto3') + , + dependencies=[google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_api_dot_resource__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + + +_ADGROUPADLABEL = _descriptor.Descriptor( + name='AdGroupAdLabel', + full_name='google.ads.googleads.v4.resources.AdGroupAdLabel', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.resources.AdGroupAdLabel.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005\372A)\n\'googleads.googleapis.com/AdGroupAdLabel'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='ad_group_ad', full_name='google.ads.googleads.v4.resources.AdGroupAdLabel.ad_group_ad', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005\372A$\n\"googleads.googleapis.com/AdGroupAd'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='label', full_name='google.ads.googleads.v4.resources.AdGroupAdLabel.label', index=2, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005\372A \n\036googleads.googleapis.com/Label'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=_b('\352Ac\n\'googleads.googleapis.com/AdGroupAdLabel\0228customers/{customer}/adGroupAdLabels/{ad_group_ad_label}'), + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=225, + serialized_end=597, +) + +_ADGROUPADLABEL.fields_by_name['ad_group_ad'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_ADGROUPADLABEL.fields_by_name['label'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +DESCRIPTOR.message_types_by_name['AdGroupAdLabel'] = _ADGROUPADLABEL +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +AdGroupAdLabel = _reflection.GeneratedProtocolMessageType('AdGroupAdLabel', (_message.Message,), dict( + DESCRIPTOR = _ADGROUPADLABEL, + __module__ = 'google.ads.googleads_v4.proto.resources.ad_group_ad_label_pb2' + , + __doc__ = """A relationship between an ad group ad and a label. + + + Attributes: + resource_name: + Immutable. The resource name of the ad group ad label. Ad + group ad label resource names have the form: ``customers/{cust + omer_id}/adGroupAdLabels/{ad_group_id}~{ad_id}~{label_id}`` + ad_group_ad: + Immutable. The ad group ad to which the label is attached. + label: + Immutable. The label assigned to the ad group ad. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.resources.AdGroupAdLabel) + )) +_sym_db.RegisterMessage(AdGroupAdLabel) + + +DESCRIPTOR._options = None +_ADGROUPADLABEL.fields_by_name['resource_name']._options = None +_ADGROUPADLABEL.fields_by_name['ad_group_ad']._options = None +_ADGROUPADLABEL.fields_by_name['label']._options = None +_ADGROUPADLABEL._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/resources/conversion_action_pb2_grpc.py b/google/ads/google_ads/v4/proto/resources/ad_group_ad_label_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/resources/conversion_action_pb2_grpc.py rename to google/ads/google_ads/v4/proto/resources/ad_group_ad_label_pb2_grpc.py diff --git a/google/ads/google_ads/v4/proto/resources/ad_group_ad_pb2.py b/google/ads/google_ads/v4/proto/resources/ad_group_ad_pb2.py new file mode 100644 index 000000000..a5b93d3bb --- /dev/null +++ b/google/ads/google_ads/v4/proto/resources/ad_group_ad_pb2.py @@ -0,0 +1,221 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/resources/ad_group_ad.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.ads.google_ads.v4.proto.common import policy_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_policy__pb2 +from google.ads.google_ads.v4.proto.enums import ad_group_ad_status_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_ad__group__ad__status__pb2 +from google.ads.google_ads.v4.proto.enums import ad_strength_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_ad__strength__pb2 +from google.ads.google_ads.v4.proto.enums import policy_approval_status_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_policy__approval__status__pb2 +from google.ads.google_ads.v4.proto.enums import policy_review_status_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_policy__review__status__pb2 +from google.ads.google_ads.v4.proto.resources import ad_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_ad__pb2 +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 +from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/resources/ad_group_ad.proto', + package='google.ads.googleads.v4.resources', + syntax='proto3', + serialized_options=_b('\n%com.google.ads.googleads.v4.resourcesB\016AdGroupAdProtoP\001ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v4/resources;resources\242\002\003GAA\252\002!Google.Ads.GoogleAds.V4.Resources\312\002!Google\\Ads\\GoogleAds\\V4\\Resources\352\002%Google::Ads::GoogleAds::V4::Resources'), + serialized_pb=_b('\n9google/ads/googleads_v4/proto/resources/ad_group_ad.proto\x12!google.ads.googleads.v4.resources\x1a\x31google/ads/googleads_v4/proto/common/policy.proto\x1agoogle/ads/googleads_v4/proto/enums/policy_review_status.proto\x1a\x30google/ads/googleads_v4/proto/resources/ad.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1cgoogle/api/annotations.proto\"\xb8\x04\n\tAdGroupAd\x12\x41\n\rresource_name\x18\x01 \x01(\tB*\xe0\x41\x05\xfa\x41$\n\"googleads.googleapis.com/AdGroupAd\x12R\n\x06status\x18\x03 \x01(\x0e\x32\x42.google.ads.googleads.v4.enums.AdGroupAdStatusEnum.AdGroupAdStatus\x12X\n\x08\x61\x64_group\x18\x04 \x01(\x0b\x32\x1c.google.protobuf.StringValueB(\xe0\x41\x05\xfa\x41\"\n googleads.googleapis.com/AdGroup\x12\x36\n\x02\x61\x64\x18\x05 \x01(\x0b\x32%.google.ads.googleads.v4.resources.AdB\x03\xe0\x41\x05\x12V\n\x0epolicy_summary\x18\x06 \x01(\x0b\x32\x39.google.ads.googleads.v4.resources.AdGroupAdPolicySummaryB\x03\xe0\x41\x03\x12R\n\x0b\x61\x64_strength\x18\x07 \x01(\x0e\x32\x38.google.ads.googleads.v4.enums.AdStrengthEnum.AdStrengthB\x03\xe0\x41\x03:V\xea\x41S\n\"googleads.googleapis.com/AdGroupAd\x12-customers/{customer}/adGroupAds/{ad_group_ad}\"\xbf\x02\n\x16\x41\x64GroupAdPolicySummary\x12S\n\x14policy_topic_entries\x18\x01 \x03(\x0b\x32\x30.google.ads.googleads.v4.common.PolicyTopicEntryB\x03\xe0\x41\x03\x12\x64\n\rreview_status\x18\x02 \x01(\x0e\x32H.google.ads.googleads.v4.enums.PolicyReviewStatusEnum.PolicyReviewStatusB\x03\xe0\x41\x03\x12j\n\x0f\x61pproval_status\x18\x03 \x01(\x0e\x32L.google.ads.googleads.v4.enums.PolicyApprovalStatusEnum.PolicyApprovalStatusB\x03\xe0\x41\x03\x42\xfb\x01\n%com.google.ads.googleads.v4.resourcesB\x0e\x41\x64GroupAdProtoP\x01ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v4/resources;resources\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V4.Resources\xca\x02!Google\\Ads\\GoogleAds\\V4\\Resources\xea\x02%Google::Ads::GoogleAds::V4::Resourcesb\x06proto3') + , + dependencies=[google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_policy__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_ad__group__ad__status__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_ad__strength__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_policy__approval__status__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_policy__review__status__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_ad__pb2.DESCRIPTOR,google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_api_dot_resource__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + + +_ADGROUPAD = _descriptor.Descriptor( + name='AdGroupAd', + full_name='google.ads.googleads.v4.resources.AdGroupAd', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.resources.AdGroupAd.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005\372A$\n\"googleads.googleapis.com/AdGroupAd'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='status', full_name='google.ads.googleads.v4.resources.AdGroupAd.status', index=1, + number=3, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='ad_group', full_name='google.ads.googleads.v4.resources.AdGroupAd.ad_group', index=2, + number=4, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005\372A\"\n googleads.googleapis.com/AdGroup'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='ad', full_name='google.ads.googleads.v4.resources.AdGroupAd.ad', index=3, + number=5, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='policy_summary', full_name='google.ads.googleads.v4.resources.AdGroupAd.policy_summary', index=4, + number=6, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='ad_strength', full_name='google.ads.googleads.v4.resources.AdGroupAd.ad_strength', index=5, + number=7, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=_b('\352AS\n\"googleads.googleapis.com/AdGroupAd\022-customers/{customer}/adGroupAds/{ad_group_ad}'), + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=567, + serialized_end=1135, +) + + +_ADGROUPADPOLICYSUMMARY = _descriptor.Descriptor( + name='AdGroupAdPolicySummary', + full_name='google.ads.googleads.v4.resources.AdGroupAdPolicySummary', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='policy_topic_entries', full_name='google.ads.googleads.v4.resources.AdGroupAdPolicySummary.policy_topic_entries', index=0, + number=1, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='review_status', full_name='google.ads.googleads.v4.resources.AdGroupAdPolicySummary.review_status', index=1, + number=2, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='approval_status', full_name='google.ads.googleads.v4.resources.AdGroupAdPolicySummary.approval_status', index=2, + number=3, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1138, + serialized_end=1457, +) + +_ADGROUPAD.fields_by_name['status'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_ad__group__ad__status__pb2._ADGROUPADSTATUSENUM_ADGROUPADSTATUS +_ADGROUPAD.fields_by_name['ad_group'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_ADGROUPAD.fields_by_name['ad'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_ad__pb2._AD +_ADGROUPAD.fields_by_name['policy_summary'].message_type = _ADGROUPADPOLICYSUMMARY +_ADGROUPAD.fields_by_name['ad_strength'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_ad__strength__pb2._ADSTRENGTHENUM_ADSTRENGTH +_ADGROUPADPOLICYSUMMARY.fields_by_name['policy_topic_entries'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_policy__pb2._POLICYTOPICENTRY +_ADGROUPADPOLICYSUMMARY.fields_by_name['review_status'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_policy__review__status__pb2._POLICYREVIEWSTATUSENUM_POLICYREVIEWSTATUS +_ADGROUPADPOLICYSUMMARY.fields_by_name['approval_status'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_policy__approval__status__pb2._POLICYAPPROVALSTATUSENUM_POLICYAPPROVALSTATUS +DESCRIPTOR.message_types_by_name['AdGroupAd'] = _ADGROUPAD +DESCRIPTOR.message_types_by_name['AdGroupAdPolicySummary'] = _ADGROUPADPOLICYSUMMARY +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +AdGroupAd = _reflection.GeneratedProtocolMessageType('AdGroupAd', (_message.Message,), dict( + DESCRIPTOR = _ADGROUPAD, + __module__ = 'google.ads.googleads_v4.proto.resources.ad_group_ad_pb2' + , + __doc__ = """An ad group ad. + + + Attributes: + resource_name: + Immutable. The resource name of the ad. Ad group ad resource + names have the form: + ``customers/{customer_id}/adGroupAds/{ad_group_id}~{ad_id}`` + status: + The status of the ad. + ad_group: + Immutable. The ad group to which the ad belongs. + ad: + Immutable. The ad. + policy_summary: + Output only. Policy information for the ad. + ad_strength: + Output only. Overall ad strength for this ad group ad. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.resources.AdGroupAd) + )) +_sym_db.RegisterMessage(AdGroupAd) + +AdGroupAdPolicySummary = _reflection.GeneratedProtocolMessageType('AdGroupAdPolicySummary', (_message.Message,), dict( + DESCRIPTOR = _ADGROUPADPOLICYSUMMARY, + __module__ = 'google.ads.googleads_v4.proto.resources.ad_group_ad_pb2' + , + __doc__ = """Contains policy information for an ad. + + + Attributes: + policy_topic_entries: + Output only. The list of policy findings for this ad. + review_status: + Output only. Where in the review process this ad is. + approval_status: + Output only. The overall approval status of this ad, + calculated based on the status of its individual policy topic + entries. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.resources.AdGroupAdPolicySummary) + )) +_sym_db.RegisterMessage(AdGroupAdPolicySummary) + + +DESCRIPTOR._options = None +_ADGROUPAD.fields_by_name['resource_name']._options = None +_ADGROUPAD.fields_by_name['ad_group']._options = None +_ADGROUPAD.fields_by_name['ad']._options = None +_ADGROUPAD.fields_by_name['policy_summary']._options = None +_ADGROUPAD.fields_by_name['ad_strength']._options = None +_ADGROUPAD._options = None +_ADGROUPADPOLICYSUMMARY.fields_by_name['policy_topic_entries']._options = None +_ADGROUPADPOLICYSUMMARY.fields_by_name['review_status']._options = None +_ADGROUPADPOLICYSUMMARY.fields_by_name['approval_status']._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/resources/custom_interest_pb2_grpc.py b/google/ads/google_ads/v4/proto/resources/ad_group_ad_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/resources/custom_interest_pb2_grpc.py rename to google/ads/google_ads/v4/proto/resources/ad_group_ad_pb2_grpc.py diff --git a/google/ads/google_ads/v4/proto/resources/ad_group_audience_view_pb2.py b/google/ads/google_ads/v4/proto/resources/ad_group_audience_view_pb2.py new file mode 100644 index 000000000..6c5c29908 --- /dev/null +++ b/google/ads/google_ads/v4/proto/resources/ad_group_audience_view_pb2.py @@ -0,0 +1,91 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/resources/ad_group_audience_view.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/resources/ad_group_audience_view.proto', + package='google.ads.googleads.v4.resources', + syntax='proto3', + serialized_options=_b('\n%com.google.ads.googleads.v4.resourcesB\030AdGroupAudienceViewProtoP\001ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v4/resources;resources\242\002\003GAA\252\002!Google.Ads.GoogleAds.V4.Resources\312\002!Google\\Ads\\GoogleAds\\V4\\Resources\352\002%Google::Ads::GoogleAds::V4::Resources'), + serialized_pb=_b('\nDgoogle/ads/googleads_v4/proto/resources/ad_group_audience_view.proto\x12!google.ads.googleads.v4.resources\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1cgoogle/api/annotations.proto\"\xd9\x01\n\x13\x41\x64GroupAudienceView\x12K\n\rresource_name\x18\x01 \x01(\tB4\xe0\x41\x03\xfa\x41.\n,googleads.googleapis.com/AdGroupAudienceView:u\xea\x41r\n,googleads.googleapis.com/AdGroupAudienceView\x12\x42\x63ustomers/{customer}/adGroupAudienceViews/{ad_group_audience_view}B\x85\x02\n%com.google.ads.googleads.v4.resourcesB\x18\x41\x64GroupAudienceViewProtoP\x01ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v4/resources;resources\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V4.Resources\xca\x02!Google\\Ads\\GoogleAds\\V4\\Resources\xea\x02%Google::Ads::GoogleAds::V4::Resourcesb\x06proto3') + , + dependencies=[google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_api_dot_resource__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + + +_ADGROUPAUDIENCEVIEW = _descriptor.Descriptor( + name='AdGroupAudienceView', + full_name='google.ads.googleads.v4.resources.AdGroupAudienceView', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.resources.AdGroupAudienceView.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003\372A.\n,googleads.googleapis.com/AdGroupAudienceView'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=_b('\352Ar\n,googleads.googleapis.com/AdGroupAudienceView\022Bcustomers/{customer}/adGroupAudienceViews/{ad_group_audience_view}'), + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=198, + serialized_end=415, +) + +DESCRIPTOR.message_types_by_name['AdGroupAudienceView'] = _ADGROUPAUDIENCEVIEW +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +AdGroupAudienceView = _reflection.GeneratedProtocolMessageType('AdGroupAudienceView', (_message.Message,), dict( + DESCRIPTOR = _ADGROUPAUDIENCEVIEW, + __module__ = 'google.ads.googleads_v4.proto.resources.ad_group_audience_view_pb2' + , + __doc__ = """An ad group audience view. Includes performance data from interests and + remarketing lists for Display Network and YouTube Network ads, and + remarketing lists for search ads (RLSA), aggregated at the audience + level. + + + Attributes: + resource_name: + Output only. The resource name of the ad group audience view. + Ad group audience view resource names have the form: ``custom + ers/{customer_id}/adGroupAudienceViews/{ad_group_id}~{criterio + n_id}`` + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.resources.AdGroupAudienceView) + )) +_sym_db.RegisterMessage(AdGroupAudienceView) + + +DESCRIPTOR._options = None +_ADGROUPAUDIENCEVIEW.fields_by_name['resource_name']._options = None +_ADGROUPAUDIENCEVIEW._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/resources/customer_client_link_pb2_grpc.py b/google/ads/google_ads/v4/proto/resources/ad_group_audience_view_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/resources/customer_client_link_pb2_grpc.py rename to google/ads/google_ads/v4/proto/resources/ad_group_audience_view_pb2_grpc.py diff --git a/google/ads/google_ads/v4/proto/resources/ad_group_bid_modifier_pb2.py b/google/ads/google_ads/v4/proto/resources/ad_group_bid_modifier_pb2.py new file mode 100644 index 000000000..0632242ed --- /dev/null +++ b/google/ads/google_ads/v4/proto/resources/ad_group_bid_modifier_pb2.py @@ -0,0 +1,244 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/resources/ad_group_bid_modifier.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.ads.google_ads.v4.proto.common import criteria_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_criteria__pb2 +from google.ads.google_ads.v4.proto.enums import bid_modifier_source_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_bid__modifier__source__pb2 +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 +from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/resources/ad_group_bid_modifier.proto', + package='google.ads.googleads.v4.resources', + syntax='proto3', + serialized_options=_b('\n%com.google.ads.googleads.v4.resourcesB\027AdGroupBidModifierProtoP\001ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v4/resources;resources\242\002\003GAA\252\002!Google.Ads.GoogleAds.V4.Resources\312\002!Google\\Ads\\GoogleAds\\V4\\Resources\352\002%Google::Ads::GoogleAds::V4::Resources'), + serialized_pb=_b('\nCgoogle/ads/googleads_v4/proto/resources/ad_group_bid_modifier.proto\x12!google.ads.googleads.v4.resources\x1a\x33google/ads/googleads_v4/proto/common/criteria.proto\x1a=google/ads/googleads_v4/proto/enums/bid_modifier_source.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1cgoogle/api/annotations.proto\"\x91\t\n\x12\x41\x64GroupBidModifier\x12J\n\rresource_name\x18\x01 \x01(\tB3\xe0\x41\x05\xfa\x41-\n+googleads.googleapis.com/AdGroupBidModifier\x12X\n\x08\x61\x64_group\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValueB(\xe0\x41\x05\xfa\x41\"\n googleads.googleapis.com/AdGroup\x12\x36\n\x0c\x63riterion_id\x18\x03 \x01(\x0b\x32\x1b.google.protobuf.Int64ValueB\x03\xe0\x41\x03\x12\x32\n\x0c\x62id_modifier\x18\x04 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12]\n\rbase_ad_group\x18\t \x01(\x0b\x32\x1c.google.protobuf.StringValueB(\xe0\x41\x03\xfa\x41\"\n googleads.googleapis.com/AdGroup\x12h\n\x13\x62id_modifier_source\x18\n \x01(\x0e\x32\x46.google.ads.googleads.v4.enums.BidModifierSourceEnum.BidModifierSourceB\x03\xe0\x41\x03\x12\x64\n\x19hotel_date_selection_type\x18\x05 \x01(\x0b\x32:.google.ads.googleads.v4.common.HotelDateSelectionTypeInfoB\x03\xe0\x41\x05H\x00\x12j\n\x1chotel_advance_booking_window\x18\x06 \x01(\x0b\x32=.google.ads.googleads.v4.common.HotelAdvanceBookingWindowInfoB\x03\xe0\x41\x05H\x00\x12Z\n\x14hotel_length_of_stay\x18\x07 \x01(\x0b\x32\x35.google.ads.googleads.v4.common.HotelLengthOfStayInfoB\x03\xe0\x41\x05H\x00\x12V\n\x12hotel_check_in_day\x18\x08 \x01(\x0b\x32\x33.google.ads.googleads.v4.common.HotelCheckInDayInfoB\x03\xe0\x41\x05H\x00\x12\x41\n\x06\x64\x65vice\x18\x0b \x01(\x0b\x32*.google.ads.googleads.v4.common.DeviceInfoB\x03\xe0\x41\x05H\x00\x12V\n\x11preferred_content\x18\x0c \x01(\x0b\x32\x34.google.ads.googleads.v4.common.PreferredContentInfoB\x03\xe0\x41\x05H\x00:r\xea\x41o\n+googleads.googleapis.com/AdGroupBidModifier\x12@customers/{customer}/adGroupBidModifiers/{ad_group_bid_modifier}B\x0b\n\tcriterionB\x84\x02\n%com.google.ads.googleads.v4.resourcesB\x17\x41\x64GroupBidModifierProtoP\x01ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v4/resources;resources\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V4.Resources\xca\x02!Google\\Ads\\GoogleAds\\V4\\Resources\xea\x02%Google::Ads::GoogleAds::V4::Resourcesb\x06proto3') + , + dependencies=[google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_criteria__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_bid__modifier__source__pb2.DESCRIPTOR,google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_api_dot_resource__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + + +_ADGROUPBIDMODIFIER = _descriptor.Descriptor( + name='AdGroupBidModifier', + full_name='google.ads.googleads.v4.resources.AdGroupBidModifier', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.resources.AdGroupBidModifier.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005\372A-\n+googleads.googleapis.com/AdGroupBidModifier'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='ad_group', full_name='google.ads.googleads.v4.resources.AdGroupBidModifier.ad_group', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005\372A\"\n googleads.googleapis.com/AdGroup'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='criterion_id', full_name='google.ads.googleads.v4.resources.AdGroupBidModifier.criterion_id', index=2, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='bid_modifier', full_name='google.ads.googleads.v4.resources.AdGroupBidModifier.bid_modifier', index=3, + number=4, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='base_ad_group', full_name='google.ads.googleads.v4.resources.AdGroupBidModifier.base_ad_group', index=4, + number=9, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003\372A\"\n googleads.googleapis.com/AdGroup'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='bid_modifier_source', full_name='google.ads.googleads.v4.resources.AdGroupBidModifier.bid_modifier_source', index=5, + number=10, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='hotel_date_selection_type', full_name='google.ads.googleads.v4.resources.AdGroupBidModifier.hotel_date_selection_type', index=6, + number=5, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='hotel_advance_booking_window', full_name='google.ads.googleads.v4.resources.AdGroupBidModifier.hotel_advance_booking_window', index=7, + number=6, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='hotel_length_of_stay', full_name='google.ads.googleads.v4.resources.AdGroupBidModifier.hotel_length_of_stay', index=8, + number=7, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='hotel_check_in_day', full_name='google.ads.googleads.v4.resources.AdGroupBidModifier.hotel_check_in_day', index=9, + number=8, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='device', full_name='google.ads.googleads.v4.resources.AdGroupBidModifier.device', index=10, + number=11, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='preferred_content', full_name='google.ads.googleads.v4.resources.AdGroupBidModifier.preferred_content', index=11, + number=12, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=_b('\352Ao\n+googleads.googleapis.com/AdGroupBidModifier\022@customers/{customer}/adGroupBidModifiers/{ad_group_bid_modifier}'), + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name='criterion', full_name='google.ads.googleads.v4.resources.AdGroupBidModifier.criterion', + index=0, containing_type=None, fields=[]), + ], + serialized_start=345, + serialized_end=1514, +) + +_ADGROUPBIDMODIFIER.fields_by_name['ad_group'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_ADGROUPBIDMODIFIER.fields_by_name['criterion_id'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_ADGROUPBIDMODIFIER.fields_by_name['bid_modifier'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE +_ADGROUPBIDMODIFIER.fields_by_name['base_ad_group'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_ADGROUPBIDMODIFIER.fields_by_name['bid_modifier_source'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_bid__modifier__source__pb2._BIDMODIFIERSOURCEENUM_BIDMODIFIERSOURCE +_ADGROUPBIDMODIFIER.fields_by_name['hotel_date_selection_type'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_criteria__pb2._HOTELDATESELECTIONTYPEINFO +_ADGROUPBIDMODIFIER.fields_by_name['hotel_advance_booking_window'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_criteria__pb2._HOTELADVANCEBOOKINGWINDOWINFO +_ADGROUPBIDMODIFIER.fields_by_name['hotel_length_of_stay'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_criteria__pb2._HOTELLENGTHOFSTAYINFO +_ADGROUPBIDMODIFIER.fields_by_name['hotel_check_in_day'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_criteria__pb2._HOTELCHECKINDAYINFO +_ADGROUPBIDMODIFIER.fields_by_name['device'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_criteria__pb2._DEVICEINFO +_ADGROUPBIDMODIFIER.fields_by_name['preferred_content'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_criteria__pb2._PREFERREDCONTENTINFO +_ADGROUPBIDMODIFIER.oneofs_by_name['criterion'].fields.append( + _ADGROUPBIDMODIFIER.fields_by_name['hotel_date_selection_type']) +_ADGROUPBIDMODIFIER.fields_by_name['hotel_date_selection_type'].containing_oneof = _ADGROUPBIDMODIFIER.oneofs_by_name['criterion'] +_ADGROUPBIDMODIFIER.oneofs_by_name['criterion'].fields.append( + _ADGROUPBIDMODIFIER.fields_by_name['hotel_advance_booking_window']) +_ADGROUPBIDMODIFIER.fields_by_name['hotel_advance_booking_window'].containing_oneof = _ADGROUPBIDMODIFIER.oneofs_by_name['criterion'] +_ADGROUPBIDMODIFIER.oneofs_by_name['criterion'].fields.append( + _ADGROUPBIDMODIFIER.fields_by_name['hotel_length_of_stay']) +_ADGROUPBIDMODIFIER.fields_by_name['hotel_length_of_stay'].containing_oneof = _ADGROUPBIDMODIFIER.oneofs_by_name['criterion'] +_ADGROUPBIDMODIFIER.oneofs_by_name['criterion'].fields.append( + _ADGROUPBIDMODIFIER.fields_by_name['hotel_check_in_day']) +_ADGROUPBIDMODIFIER.fields_by_name['hotel_check_in_day'].containing_oneof = _ADGROUPBIDMODIFIER.oneofs_by_name['criterion'] +_ADGROUPBIDMODIFIER.oneofs_by_name['criterion'].fields.append( + _ADGROUPBIDMODIFIER.fields_by_name['device']) +_ADGROUPBIDMODIFIER.fields_by_name['device'].containing_oneof = _ADGROUPBIDMODIFIER.oneofs_by_name['criterion'] +_ADGROUPBIDMODIFIER.oneofs_by_name['criterion'].fields.append( + _ADGROUPBIDMODIFIER.fields_by_name['preferred_content']) +_ADGROUPBIDMODIFIER.fields_by_name['preferred_content'].containing_oneof = _ADGROUPBIDMODIFIER.oneofs_by_name['criterion'] +DESCRIPTOR.message_types_by_name['AdGroupBidModifier'] = _ADGROUPBIDMODIFIER +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +AdGroupBidModifier = _reflection.GeneratedProtocolMessageType('AdGroupBidModifier', (_message.Message,), dict( + DESCRIPTOR = _ADGROUPBIDMODIFIER, + __module__ = 'google.ads.googleads_v4.proto.resources.ad_group_bid_modifier_pb2' + , + __doc__ = """Represents an ad group bid modifier. + + + Attributes: + resource_name: + Immutable. The resource name of the ad group bid modifier. Ad + group bid modifier resource names have the form: ``customers/ + {customer_id}/adGroupBidModifiers/{ad_group_id}~{criterion_id} + `` + ad_group: + Immutable. The ad group to which this criterion belongs. + criterion_id: + Output only. The ID of the criterion to bid modify. This + field is ignored for mutates. + bid_modifier: + The modifier for the bid when the criterion matches. The + modifier must be in the range: 0.1 - 10.0. The range is 1.0 - + 6.0 for PreferredContent. Use 0 to opt out of a Device type. + base_ad_group: + Output only. The base ad group from which this draft/trial + adgroup bid modifier was created. If ad\_group is a base ad + group then this field will be equal to ad\_group. If the ad + group was created in the draft or trial and has no + corresponding base ad group, then this field will be null. + This field is readonly. + bid_modifier_source: + Output only. Bid modifier source. + criterion: + The criterion of this ad group bid modifier. + hotel_date_selection_type: + Immutable. Criterion for hotel date selection (default dates + vs. user selected). + hotel_advance_booking_window: + Immutable. Criterion for number of days prior to the stay the + booking is being made. + hotel_length_of_stay: + Immutable. Criterion for length of hotel stay in nights. + hotel_check_in_day: + Immutable. Criterion for day of the week the booking is for. + device: + Immutable. A device criterion. + preferred_content: + Immutable. A preferred content criterion. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.resources.AdGroupBidModifier) + )) +_sym_db.RegisterMessage(AdGroupBidModifier) + + +DESCRIPTOR._options = None +_ADGROUPBIDMODIFIER.fields_by_name['resource_name']._options = None +_ADGROUPBIDMODIFIER.fields_by_name['ad_group']._options = None +_ADGROUPBIDMODIFIER.fields_by_name['criterion_id']._options = None +_ADGROUPBIDMODIFIER.fields_by_name['base_ad_group']._options = None +_ADGROUPBIDMODIFIER.fields_by_name['bid_modifier_source']._options = None +_ADGROUPBIDMODIFIER.fields_by_name['hotel_date_selection_type']._options = None +_ADGROUPBIDMODIFIER.fields_by_name['hotel_advance_booking_window']._options = None +_ADGROUPBIDMODIFIER.fields_by_name['hotel_length_of_stay']._options = None +_ADGROUPBIDMODIFIER.fields_by_name['hotel_check_in_day']._options = None +_ADGROUPBIDMODIFIER.fields_by_name['device']._options = None +_ADGROUPBIDMODIFIER.fields_by_name['preferred_content']._options = None +_ADGROUPBIDMODIFIER._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/resources/customer_client_pb2_grpc.py b/google/ads/google_ads/v4/proto/resources/ad_group_bid_modifier_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/resources/customer_client_pb2_grpc.py rename to google/ads/google_ads/v4/proto/resources/ad_group_bid_modifier_pb2_grpc.py diff --git a/google/ads/google_ads/v4/proto/resources/ad_group_criterion_label_pb2.py b/google/ads/google_ads/v4/proto/resources/ad_group_criterion_label_pb2.py new file mode 100644 index 000000000..6890e9a90 --- /dev/null +++ b/google/ads/google_ads/v4/proto/resources/ad_group_criterion_label_pb2.py @@ -0,0 +1,112 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/resources/ad_group_criterion_label.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 +from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/resources/ad_group_criterion_label.proto', + package='google.ads.googleads.v4.resources', + syntax='proto3', + serialized_options=_b('\n%com.google.ads.googleads.v4.resourcesB\032AdGroupCriterionLabelProtoP\001ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v4/resources;resources\242\002\003GAA\252\002!Google.Ads.GoogleAds.V4.Resources\312\002!Google\\Ads\\GoogleAds\\V4\\Resources\352\002%Google::Ads::GoogleAds::V4::Resources'), + serialized_pb=_b('\nFgoogle/ads/googleads_v4/proto/resources/ad_group_criterion_label.proto\x12!google.ads.googleads.v4.resources\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1cgoogle/api/annotations.proto\"\xa5\x03\n\x15\x41\x64GroupCriterionLabel\x12M\n\rresource_name\x18\x01 \x01(\tB6\xe0\x41\x05\xfa\x41\x30\n.googleads.googleapis.com/AdGroupCriterionLabel\x12k\n\x12\x61\x64_group_criterion\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValueB1\xe0\x41\x05\xfa\x41+\n)googleads.googleapis.com/AdGroupCriterion\x12S\n\x05label\x18\x03 \x01(\x0b\x32\x1c.google.protobuf.StringValueB&\xe0\x41\x05\xfa\x41 \n\x1egoogleads.googleapis.com/Label:{\xea\x41x\n.googleads.googleapis.com/AdGroupCriterionLabel\x12\x46\x63ustomers/{customer}/adGroupCriterionLabels/{ad_group_criterion_label}B\x87\x02\n%com.google.ads.googleads.v4.resourcesB\x1a\x41\x64GroupCriterionLabelProtoP\x01ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v4/resources;resources\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V4.Resources\xca\x02!Google\\Ads\\GoogleAds\\V4\\Resources\xea\x02%Google::Ads::GoogleAds::V4::Resourcesb\x06proto3') + , + dependencies=[google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_api_dot_resource__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + + +_ADGROUPCRITERIONLABEL = _descriptor.Descriptor( + name='AdGroupCriterionLabel', + full_name='google.ads.googleads.v4.resources.AdGroupCriterionLabel', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.resources.AdGroupCriterionLabel.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005\372A0\n.googleads.googleapis.com/AdGroupCriterionLabel'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='ad_group_criterion', full_name='google.ads.googleads.v4.resources.AdGroupCriterionLabel.ad_group_criterion', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005\372A+\n)googleads.googleapis.com/AdGroupCriterion'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='label', full_name='google.ads.googleads.v4.resources.AdGroupCriterionLabel.label', index=2, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005\372A \n\036googleads.googleapis.com/Label'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=_b('\352Ax\n.googleads.googleapis.com/AdGroupCriterionLabel\022Fcustomers/{customer}/adGroupCriterionLabels/{ad_group_criterion_label}'), + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=232, + serialized_end=653, +) + +_ADGROUPCRITERIONLABEL.fields_by_name['ad_group_criterion'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_ADGROUPCRITERIONLABEL.fields_by_name['label'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +DESCRIPTOR.message_types_by_name['AdGroupCriterionLabel'] = _ADGROUPCRITERIONLABEL +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +AdGroupCriterionLabel = _reflection.GeneratedProtocolMessageType('AdGroupCriterionLabel', (_message.Message,), dict( + DESCRIPTOR = _ADGROUPCRITERIONLABEL, + __module__ = 'google.ads.googleads_v4.proto.resources.ad_group_criterion_label_pb2' + , + __doc__ = """A relationship between an ad group criterion and a label. + + + Attributes: + resource_name: + Immutable. The resource name of the ad group criterion label. + Ad group criterion label resource names have the form: ``custo + mers/{customer_id}/adGroupCriterionLabels/{ad_group_id}~{crite + rion_id}~{label_id}`` + ad_group_criterion: + Immutable. The ad group criterion to which the label is + attached. + label: + Immutable. The label assigned to the ad group criterion. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.resources.AdGroupCriterionLabel) + )) +_sym_db.RegisterMessage(AdGroupCriterionLabel) + + +DESCRIPTOR._options = None +_ADGROUPCRITERIONLABEL.fields_by_name['resource_name']._options = None +_ADGROUPCRITERIONLABEL.fields_by_name['ad_group_criterion']._options = None +_ADGROUPCRITERIONLABEL.fields_by_name['label']._options = None +_ADGROUPCRITERIONLABEL._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/resources/customer_extension_setting_pb2_grpc.py b/google/ads/google_ads/v4/proto/resources/ad_group_criterion_label_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/resources/customer_extension_setting_pb2_grpc.py rename to google/ads/google_ads/v4/proto/resources/ad_group_criterion_label_pb2_grpc.py diff --git a/google/ads/google_ads/v4/proto/resources/ad_group_criterion_pb2.py b/google/ads/google_ads/v4/proto/resources/ad_group_criterion_pb2.py new file mode 100644 index 000000000..aad7b52ff --- /dev/null +++ b/google/ads/google_ads/v4/proto/resources/ad_group_criterion_pb2.py @@ -0,0 +1,856 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/resources/ad_group_criterion.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.ads.google_ads.v4.proto.common import criteria_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_criteria__pb2 +from google.ads.google_ads.v4.proto.common import custom_parameter_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_custom__parameter__pb2 +from google.ads.google_ads.v4.proto.enums import ad_group_criterion_approval_status_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_ad__group__criterion__approval__status__pb2 +from google.ads.google_ads.v4.proto.enums import ad_group_criterion_status_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_ad__group__criterion__status__pb2 +from google.ads.google_ads.v4.proto.enums import bidding_source_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_bidding__source__pb2 +from google.ads.google_ads.v4.proto.enums import criterion_system_serving_status_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_criterion__system__serving__status__pb2 +from google.ads.google_ads.v4.proto.enums import criterion_type_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_criterion__type__pb2 +from google.ads.google_ads.v4.proto.enums import quality_score_bucket_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_quality__score__bucket__pb2 +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 +from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/resources/ad_group_criterion.proto', + package='google.ads.googleads.v4.resources', + syntax='proto3', + serialized_options=_b('\n%com.google.ads.googleads.v4.resourcesB\025AdGroupCriterionProtoP\001ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v4/resources;resources\242\002\003GAA\252\002!Google.Ads.GoogleAds.V4.Resources\312\002!Google\\Ads\\GoogleAds\\V4\\Resources\352\002%Google::Ads::GoogleAds::V4::Resources'), + serialized_pb=_b('\n@google/ads/googleads_v4/proto/resources/ad_group_criterion.proto\x12!google.ads.googleads.v4.resources\x1a\x33google/ads/googleads_v4/proto/common/criteria.proto\x1a;google/ads/googleads_v4/proto/common/custom_parameter.proto\x1aLgoogle/ads/googleads_v4/proto/enums/ad_group_criterion_approval_status.proto\x1a\x43google/ads/googleads_v4/proto/enums/ad_group_criterion_status.proto\x1a\x38google/ads/googleads_v4/proto/enums/bidding_source.proto\x1aIgoogle/ads/googleads_v4/proto/enums/criterion_system_serving_status.proto\x1a\x38google/ads/googleads_v4/proto/enums/criterion_type.proto\x1a>google/ads/googleads_v4/proto/enums/quality_score_bucket.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1cgoogle/api/annotations.proto\"\xec#\n\x10\x41\x64GroupCriterion\x12H\n\rresource_name\x18\x01 \x01(\tB1\xe0\x41\x05\xfa\x41+\n)googleads.googleapis.com/AdGroupCriterion\x12\x36\n\x0c\x63riterion_id\x18\x1a \x01(\x0b\x32\x1b.google.protobuf.Int64ValueB\x03\xe0\x41\x03\x12`\n\x06status\x18\x03 \x01(\x0e\x32P.google.ads.googleads.v4.enums.AdGroupCriterionStatusEnum.AdGroupCriterionStatus\x12Z\n\x0cquality_info\x18\x04 \x01(\x0b\x32?.google.ads.googleads.v4.resources.AdGroupCriterion.QualityInfoB\x03\xe0\x41\x03\x12X\n\x08\x61\x64_group\x18\x05 \x01(\x0b\x32\x1c.google.protobuf.StringValueB(\xe0\x41\x05\xfa\x41\"\n googleads.googleapis.com/AdGroup\x12Q\n\x04type\x18\x19 \x01(\x0e\x32>.google.ads.googleads.v4.enums.CriterionTypeEnum.CriterionTypeB\x03\xe0\x41\x03\x12\x31\n\x08negative\x18\x1f \x01(\x0b\x32\x1a.google.protobuf.BoolValueB\x03\xe0\x41\x05\x12\x80\x01\n\x15system_serving_status\x18\x34 \x01(\x0e\x32\\.google.ads.googleads.v4.enums.CriterionSystemServingStatusEnum.CriterionSystemServingStatusB\x03\xe0\x41\x03\x12~\n\x0f\x61pproval_status\x18\x35 \x01(\x0e\x32`.google.ads.googleads.v4.enums.AdGroupCriterionApprovalStatusEnum.AdGroupCriterionApprovalStatusB\x03\xe0\x41\x03\x12>\n\x13\x64isapproval_reasons\x18\x37 \x03(\x0b\x32\x1c.google.protobuf.StringValueB\x03\xe0\x41\x03\x12\x32\n\x0c\x62id_modifier\x18, \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12\x33\n\x0e\x63pc_bid_micros\x18\x10 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x33\n\x0e\x63pm_bid_micros\x18\x11 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x33\n\x0e\x63pv_bid_micros\x18\x18 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12;\n\x16percent_cpc_bid_micros\x18! \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x42\n\x18\x65\x66\x66\x65\x63tive_cpc_bid_micros\x18\x12 \x01(\x0b\x32\x1b.google.protobuf.Int64ValueB\x03\xe0\x41\x03\x12\x42\n\x18\x65\x66\x66\x65\x63tive_cpm_bid_micros\x18\x13 \x01(\x0b\x32\x1b.google.protobuf.Int64ValueB\x03\xe0\x41\x03\x12\x42\n\x18\x65\x66\x66\x65\x63tive_cpv_bid_micros\x18\x14 \x01(\x0b\x32\x1b.google.protobuf.Int64ValueB\x03\xe0\x41\x03\x12J\n effective_percent_cpc_bid_micros\x18\" \x01(\x0b\x32\x1b.google.protobuf.Int64ValueB\x03\xe0\x41\x03\x12\x65\n\x18\x65\x66\x66\x65\x63tive_cpc_bid_source\x18\x15 \x01(\x0e\x32>.google.ads.googleads.v4.enums.BiddingSourceEnum.BiddingSourceB\x03\xe0\x41\x03\x12\x65\n\x18\x65\x66\x66\x65\x63tive_cpm_bid_source\x18\x16 \x01(\x0e\x32>.google.ads.googleads.v4.enums.BiddingSourceEnum.BiddingSourceB\x03\xe0\x41\x03\x12\x65\n\x18\x65\x66\x66\x65\x63tive_cpv_bid_source\x18\x17 \x01(\x0e\x32>.google.ads.googleads.v4.enums.BiddingSourceEnum.BiddingSourceB\x03\xe0\x41\x03\x12m\n effective_percent_cpc_bid_source\x18# \x01(\x0e\x32>.google.ads.googleads.v4.enums.BiddingSourceEnum.BiddingSourceB\x03\xe0\x41\x03\x12\x66\n\x12position_estimates\x18\n \x01(\x0b\x32\x45.google.ads.googleads.v4.resources.AdGroupCriterion.PositionEstimatesB\x03\xe0\x41\x03\x12\x30\n\nfinal_urls\x18\x0b \x03(\x0b\x32\x1c.google.protobuf.StringValue\x12\x37\n\x11\x66inal_mobile_urls\x18\x33 \x03(\x0b\x32\x1c.google.protobuf.StringValue\x12\x36\n\x10\x66inal_url_suffix\x18\x32 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12;\n\x15tracking_url_template\x18\r \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12N\n\x15url_custom_parameters\x18\x0e \x03(\x0b\x32/.google.ads.googleads.v4.common.CustomParameter\x12\x43\n\x07keyword\x18\x1b \x01(\x0b\x32+.google.ads.googleads.v4.common.KeywordInfoB\x03\xe0\x41\x05H\x00\x12G\n\tplacement\x18\x1c \x01(\x0b\x32-.google.ads.googleads.v4.common.PlacementInfoB\x03\xe0\x41\x05H\x00\x12Y\n\x13mobile_app_category\x18\x1d \x01(\x0b\x32\x35.google.ads.googleads.v4.common.MobileAppCategoryInfoB\x03\xe0\x41\x05H\x00\x12X\n\x12mobile_application\x18\x1e \x01(\x0b\x32\x35.google.ads.googleads.v4.common.MobileApplicationInfoB\x03\xe0\x41\x05H\x00\x12N\n\rlisting_group\x18 \x01(\x0b\x32\x30.google.ads.googleads.v4.common.ListingGroupInfoB\x03\xe0\x41\x05H\x00\x12\x46\n\tage_range\x18$ \x01(\x0b\x32,.google.ads.googleads.v4.common.AgeRangeInfoB\x03\xe0\x41\x05H\x00\x12\x41\n\x06gender\x18% \x01(\x0b\x32*.google.ads.googleads.v4.common.GenderInfoB\x03\xe0\x41\x05H\x00\x12L\n\x0cincome_range\x18& \x01(\x0b\x32/.google.ads.googleads.v4.common.IncomeRangeInfoB\x03\xe0\x41\x05H\x00\x12R\n\x0fparental_status\x18\' \x01(\x0b\x32\x32.google.ads.googleads.v4.common.ParentalStatusInfoB\x03\xe0\x41\x05H\x00\x12\x46\n\tuser_list\x18* \x01(\x0b\x32,.google.ads.googleads.v4.common.UserListInfoB\x03\xe0\x41\x05H\x00\x12N\n\ryoutube_video\x18( \x01(\x0b\x32\x30.google.ads.googleads.v4.common.YouTubeVideoInfoB\x03\xe0\x41\x05H\x00\x12R\n\x0fyoutube_channel\x18) \x01(\x0b\x32\x32.google.ads.googleads.v4.common.YouTubeChannelInfoB\x03\xe0\x41\x05H\x00\x12?\n\x05topic\x18+ \x01(\x0b\x32).google.ads.googleads.v4.common.TopicInfoB\x03\xe0\x41\x05H\x00\x12N\n\ruser_interest\x18- \x01(\x0b\x32\x30.google.ads.googleads.v4.common.UserInterestInfoB\x03\xe0\x41\x05H\x00\x12\x43\n\x07webpage\x18. \x01(\x0b\x32+.google.ads.googleads.v4.common.WebpageInfoB\x03\xe0\x41\x05H\x00\x12U\n\x11\x61pp_payment_model\x18/ \x01(\x0b\x32\x33.google.ads.googleads.v4.common.AppPaymentModelInfoB\x03\xe0\x41\x05H\x00\x12R\n\x0f\x63ustom_affinity\x18\x30 \x01(\x0b\x32\x32.google.ads.googleads.v4.common.CustomAffinityInfoB\x03\xe0\x41\x05H\x00\x12N\n\rcustom_intent\x18\x31 \x01(\x0b\x32\x30.google.ads.googleads.v4.common.CustomIntentInfoB\x03\xe0\x41\x05H\x00\x1a\x93\x03\n\x0bQualityInfo\x12\x37\n\rquality_score\x18\x01 \x01(\x0b\x32\x1b.google.protobuf.Int32ValueB\x03\xe0\x41\x03\x12m\n\x16\x63reative_quality_score\x18\x02 \x01(\x0e\x32H.google.ads.googleads.v4.enums.QualityScoreBucketEnum.QualityScoreBucketB\x03\xe0\x41\x03\x12o\n\x18post_click_quality_score\x18\x03 \x01(\x0e\x32H.google.ads.googleads.v4.enums.QualityScoreBucketEnum.QualityScoreBucketB\x03\xe0\x41\x03\x12k\n\x14search_predicted_ctr\x18\x04 \x01(\x0e\x32H.google.ads.googleads.v4.enums.QualityScoreBucketEnum.QualityScoreBucketB\x03\xe0\x41\x03\x1a\x85\x03\n\x11PositionEstimates\x12?\n\x15\x66irst_page_cpc_micros\x18\x01 \x01(\x0b\x32\x1b.google.protobuf.Int64ValueB\x03\xe0\x41\x03\x12\x43\n\x19\x66irst_position_cpc_micros\x18\x02 \x01(\x0b\x32\x1b.google.protobuf.Int64ValueB\x03\xe0\x41\x03\x12@\n\x16top_of_page_cpc_micros\x18\x03 \x01(\x0b\x32\x1b.google.protobuf.Int64ValueB\x03\xe0\x41\x03\x12T\n*estimated_add_clicks_at_first_position_cpc\x18\x04 \x01(\x0b\x32\x1b.google.protobuf.Int64ValueB\x03\xe0\x41\x03\x12R\n(estimated_add_cost_at_first_position_cpc\x18\x05 \x01(\x0b\x32\x1b.google.protobuf.Int64ValueB\x03\xe0\x41\x03:i\xea\x41\x66\n)googleads.googleapis.com/AdGroupCriterion\x12\x39\x63ustomers/{customer}/adGroupCriteria/{ad_group_criterion}B\x0b\n\tcriterionB\x82\x02\n%com.google.ads.googleads.v4.resourcesB\x15\x41\x64GroupCriterionProtoP\x01ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v4/resources;resources\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V4.Resources\xca\x02!Google\\Ads\\GoogleAds\\V4\\Resources\xea\x02%Google::Ads::GoogleAds::V4::Resourcesb\x06proto3') + , + dependencies=[google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_criteria__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_custom__parameter__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_ad__group__criterion__approval__status__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_ad__group__criterion__status__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_bidding__source__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_criterion__system__serving__status__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_criterion__type__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_quality__score__bucket__pb2.DESCRIPTOR,google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_api_dot_resource__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + + +_ADGROUPCRITERION_QUALITYINFO = _descriptor.Descriptor( + name='QualityInfo', + full_name='google.ads.googleads.v4.resources.AdGroupCriterion.QualityInfo', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='quality_score', full_name='google.ads.googleads.v4.resources.AdGroupCriterion.QualityInfo.quality_score', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='creative_quality_score', full_name='google.ads.googleads.v4.resources.AdGroupCriterion.QualityInfo.creative_quality_score', index=1, + number=2, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='post_click_quality_score', full_name='google.ads.googleads.v4.resources.AdGroupCriterion.QualityInfo.post_click_quality_score', index=2, + number=3, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='search_predicted_ctr', full_name='google.ads.googleads.v4.resources.AdGroupCriterion.QualityInfo.search_predicted_ctr', index=3, + number=4, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=4415, + serialized_end=4818, +) + +_ADGROUPCRITERION_POSITIONESTIMATES = _descriptor.Descriptor( + name='PositionEstimates', + full_name='google.ads.googleads.v4.resources.AdGroupCriterion.PositionEstimates', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='first_page_cpc_micros', full_name='google.ads.googleads.v4.resources.AdGroupCriterion.PositionEstimates.first_page_cpc_micros', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='first_position_cpc_micros', full_name='google.ads.googleads.v4.resources.AdGroupCriterion.PositionEstimates.first_position_cpc_micros', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='top_of_page_cpc_micros', full_name='google.ads.googleads.v4.resources.AdGroupCriterion.PositionEstimates.top_of_page_cpc_micros', index=2, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='estimated_add_clicks_at_first_position_cpc', full_name='google.ads.googleads.v4.resources.AdGroupCriterion.PositionEstimates.estimated_add_clicks_at_first_position_cpc', index=3, + number=4, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='estimated_add_cost_at_first_position_cpc', full_name='google.ads.googleads.v4.resources.AdGroupCriterion.PositionEstimates.estimated_add_cost_at_first_position_cpc', index=4, + number=5, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=4821, + serialized_end=5210, +) + +_ADGROUPCRITERION = _descriptor.Descriptor( + name='AdGroupCriterion', + full_name='google.ads.googleads.v4.resources.AdGroupCriterion', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.resources.AdGroupCriterion.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005\372A+\n)googleads.googleapis.com/AdGroupCriterion'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='criterion_id', full_name='google.ads.googleads.v4.resources.AdGroupCriterion.criterion_id', index=1, + number=26, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='status', full_name='google.ads.googleads.v4.resources.AdGroupCriterion.status', index=2, + number=3, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='quality_info', full_name='google.ads.googleads.v4.resources.AdGroupCriterion.quality_info', index=3, + number=4, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='ad_group', full_name='google.ads.googleads.v4.resources.AdGroupCriterion.ad_group', index=4, + number=5, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005\372A\"\n googleads.googleapis.com/AdGroup'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='type', full_name='google.ads.googleads.v4.resources.AdGroupCriterion.type', index=5, + number=25, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='negative', full_name='google.ads.googleads.v4.resources.AdGroupCriterion.negative', index=6, + number=31, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='system_serving_status', full_name='google.ads.googleads.v4.resources.AdGroupCriterion.system_serving_status', index=7, + number=52, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='approval_status', full_name='google.ads.googleads.v4.resources.AdGroupCriterion.approval_status', index=8, + number=53, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='disapproval_reasons', full_name='google.ads.googleads.v4.resources.AdGroupCriterion.disapproval_reasons', index=9, + number=55, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='bid_modifier', full_name='google.ads.googleads.v4.resources.AdGroupCriterion.bid_modifier', index=10, + number=44, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='cpc_bid_micros', full_name='google.ads.googleads.v4.resources.AdGroupCriterion.cpc_bid_micros', index=11, + number=16, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='cpm_bid_micros', full_name='google.ads.googleads.v4.resources.AdGroupCriterion.cpm_bid_micros', index=12, + number=17, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='cpv_bid_micros', full_name='google.ads.googleads.v4.resources.AdGroupCriterion.cpv_bid_micros', index=13, + number=24, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='percent_cpc_bid_micros', full_name='google.ads.googleads.v4.resources.AdGroupCriterion.percent_cpc_bid_micros', index=14, + number=33, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='effective_cpc_bid_micros', full_name='google.ads.googleads.v4.resources.AdGroupCriterion.effective_cpc_bid_micros', index=15, + number=18, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='effective_cpm_bid_micros', full_name='google.ads.googleads.v4.resources.AdGroupCriterion.effective_cpm_bid_micros', index=16, + number=19, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='effective_cpv_bid_micros', full_name='google.ads.googleads.v4.resources.AdGroupCriterion.effective_cpv_bid_micros', index=17, + number=20, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='effective_percent_cpc_bid_micros', full_name='google.ads.googleads.v4.resources.AdGroupCriterion.effective_percent_cpc_bid_micros', index=18, + number=34, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='effective_cpc_bid_source', full_name='google.ads.googleads.v4.resources.AdGroupCriterion.effective_cpc_bid_source', index=19, + number=21, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='effective_cpm_bid_source', full_name='google.ads.googleads.v4.resources.AdGroupCriterion.effective_cpm_bid_source', index=20, + number=22, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='effective_cpv_bid_source', full_name='google.ads.googleads.v4.resources.AdGroupCriterion.effective_cpv_bid_source', index=21, + number=23, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='effective_percent_cpc_bid_source', full_name='google.ads.googleads.v4.resources.AdGroupCriterion.effective_percent_cpc_bid_source', index=22, + number=35, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='position_estimates', full_name='google.ads.googleads.v4.resources.AdGroupCriterion.position_estimates', index=23, + number=10, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='final_urls', full_name='google.ads.googleads.v4.resources.AdGroupCriterion.final_urls', index=24, + number=11, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='final_mobile_urls', full_name='google.ads.googleads.v4.resources.AdGroupCriterion.final_mobile_urls', index=25, + number=51, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='final_url_suffix', full_name='google.ads.googleads.v4.resources.AdGroupCriterion.final_url_suffix', index=26, + number=50, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='tracking_url_template', full_name='google.ads.googleads.v4.resources.AdGroupCriterion.tracking_url_template', index=27, + number=13, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='url_custom_parameters', full_name='google.ads.googleads.v4.resources.AdGroupCriterion.url_custom_parameters', index=28, + number=14, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='keyword', full_name='google.ads.googleads.v4.resources.AdGroupCriterion.keyword', index=29, + number=27, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='placement', full_name='google.ads.googleads.v4.resources.AdGroupCriterion.placement', index=30, + number=28, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='mobile_app_category', full_name='google.ads.googleads.v4.resources.AdGroupCriterion.mobile_app_category', index=31, + number=29, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='mobile_application', full_name='google.ads.googleads.v4.resources.AdGroupCriterion.mobile_application', index=32, + number=30, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='listing_group', full_name='google.ads.googleads.v4.resources.AdGroupCriterion.listing_group', index=33, + number=32, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='age_range', full_name='google.ads.googleads.v4.resources.AdGroupCriterion.age_range', index=34, + number=36, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='gender', full_name='google.ads.googleads.v4.resources.AdGroupCriterion.gender', index=35, + number=37, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='income_range', full_name='google.ads.googleads.v4.resources.AdGroupCriterion.income_range', index=36, + number=38, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='parental_status', full_name='google.ads.googleads.v4.resources.AdGroupCriterion.parental_status', index=37, + number=39, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='user_list', full_name='google.ads.googleads.v4.resources.AdGroupCriterion.user_list', index=38, + number=42, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='youtube_video', full_name='google.ads.googleads.v4.resources.AdGroupCriterion.youtube_video', index=39, + number=40, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='youtube_channel', full_name='google.ads.googleads.v4.resources.AdGroupCriterion.youtube_channel', index=40, + number=41, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='topic', full_name='google.ads.googleads.v4.resources.AdGroupCriterion.topic', index=41, + number=43, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='user_interest', full_name='google.ads.googleads.v4.resources.AdGroupCriterion.user_interest', index=42, + number=45, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='webpage', full_name='google.ads.googleads.v4.resources.AdGroupCriterion.webpage', index=43, + number=46, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='app_payment_model', full_name='google.ads.googleads.v4.resources.AdGroupCriterion.app_payment_model', index=44, + number=47, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='custom_affinity', full_name='google.ads.googleads.v4.resources.AdGroupCriterion.custom_affinity', index=45, + number=48, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='custom_intent', full_name='google.ads.googleads.v4.resources.AdGroupCriterion.custom_intent', index=46, + number=49, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[_ADGROUPCRITERION_QUALITYINFO, _ADGROUPCRITERION_POSITIONESTIMATES, ], + enum_types=[ + ], + serialized_options=_b('\352Af\n)googleads.googleapis.com/AdGroupCriterion\0229customers/{customer}/adGroupCriteria/{ad_group_criterion}'), + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name='criterion', full_name='google.ads.googleads.v4.resources.AdGroupCriterion.criterion', + index=0, containing_type=None, fields=[]), + ], + serialized_start=742, + serialized_end=5330, +) + +_ADGROUPCRITERION_QUALITYINFO.fields_by_name['quality_score'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT32VALUE +_ADGROUPCRITERION_QUALITYINFO.fields_by_name['creative_quality_score'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_quality__score__bucket__pb2._QUALITYSCOREBUCKETENUM_QUALITYSCOREBUCKET +_ADGROUPCRITERION_QUALITYINFO.fields_by_name['post_click_quality_score'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_quality__score__bucket__pb2._QUALITYSCOREBUCKETENUM_QUALITYSCOREBUCKET +_ADGROUPCRITERION_QUALITYINFO.fields_by_name['search_predicted_ctr'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_quality__score__bucket__pb2._QUALITYSCOREBUCKETENUM_QUALITYSCOREBUCKET +_ADGROUPCRITERION_QUALITYINFO.containing_type = _ADGROUPCRITERION +_ADGROUPCRITERION_POSITIONESTIMATES.fields_by_name['first_page_cpc_micros'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_ADGROUPCRITERION_POSITIONESTIMATES.fields_by_name['first_position_cpc_micros'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_ADGROUPCRITERION_POSITIONESTIMATES.fields_by_name['top_of_page_cpc_micros'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_ADGROUPCRITERION_POSITIONESTIMATES.fields_by_name['estimated_add_clicks_at_first_position_cpc'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_ADGROUPCRITERION_POSITIONESTIMATES.fields_by_name['estimated_add_cost_at_first_position_cpc'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_ADGROUPCRITERION_POSITIONESTIMATES.containing_type = _ADGROUPCRITERION +_ADGROUPCRITERION.fields_by_name['criterion_id'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_ADGROUPCRITERION.fields_by_name['status'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_ad__group__criterion__status__pb2._ADGROUPCRITERIONSTATUSENUM_ADGROUPCRITERIONSTATUS +_ADGROUPCRITERION.fields_by_name['quality_info'].message_type = _ADGROUPCRITERION_QUALITYINFO +_ADGROUPCRITERION.fields_by_name['ad_group'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_ADGROUPCRITERION.fields_by_name['type'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_criterion__type__pb2._CRITERIONTYPEENUM_CRITERIONTYPE +_ADGROUPCRITERION.fields_by_name['negative'].message_type = google_dot_protobuf_dot_wrappers__pb2._BOOLVALUE +_ADGROUPCRITERION.fields_by_name['system_serving_status'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_criterion__system__serving__status__pb2._CRITERIONSYSTEMSERVINGSTATUSENUM_CRITERIONSYSTEMSERVINGSTATUS +_ADGROUPCRITERION.fields_by_name['approval_status'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_ad__group__criterion__approval__status__pb2._ADGROUPCRITERIONAPPROVALSTATUSENUM_ADGROUPCRITERIONAPPROVALSTATUS +_ADGROUPCRITERION.fields_by_name['disapproval_reasons'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_ADGROUPCRITERION.fields_by_name['bid_modifier'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE +_ADGROUPCRITERION.fields_by_name['cpc_bid_micros'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_ADGROUPCRITERION.fields_by_name['cpm_bid_micros'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_ADGROUPCRITERION.fields_by_name['cpv_bid_micros'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_ADGROUPCRITERION.fields_by_name['percent_cpc_bid_micros'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_ADGROUPCRITERION.fields_by_name['effective_cpc_bid_micros'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_ADGROUPCRITERION.fields_by_name['effective_cpm_bid_micros'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_ADGROUPCRITERION.fields_by_name['effective_cpv_bid_micros'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_ADGROUPCRITERION.fields_by_name['effective_percent_cpc_bid_micros'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_ADGROUPCRITERION.fields_by_name['effective_cpc_bid_source'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_bidding__source__pb2._BIDDINGSOURCEENUM_BIDDINGSOURCE +_ADGROUPCRITERION.fields_by_name['effective_cpm_bid_source'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_bidding__source__pb2._BIDDINGSOURCEENUM_BIDDINGSOURCE +_ADGROUPCRITERION.fields_by_name['effective_cpv_bid_source'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_bidding__source__pb2._BIDDINGSOURCEENUM_BIDDINGSOURCE +_ADGROUPCRITERION.fields_by_name['effective_percent_cpc_bid_source'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_bidding__source__pb2._BIDDINGSOURCEENUM_BIDDINGSOURCE +_ADGROUPCRITERION.fields_by_name['position_estimates'].message_type = _ADGROUPCRITERION_POSITIONESTIMATES +_ADGROUPCRITERION.fields_by_name['final_urls'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_ADGROUPCRITERION.fields_by_name['final_mobile_urls'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_ADGROUPCRITERION.fields_by_name['final_url_suffix'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_ADGROUPCRITERION.fields_by_name['tracking_url_template'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_ADGROUPCRITERION.fields_by_name['url_custom_parameters'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_custom__parameter__pb2._CUSTOMPARAMETER +_ADGROUPCRITERION.fields_by_name['keyword'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_criteria__pb2._KEYWORDINFO +_ADGROUPCRITERION.fields_by_name['placement'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_criteria__pb2._PLACEMENTINFO +_ADGROUPCRITERION.fields_by_name['mobile_app_category'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_criteria__pb2._MOBILEAPPCATEGORYINFO +_ADGROUPCRITERION.fields_by_name['mobile_application'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_criteria__pb2._MOBILEAPPLICATIONINFO +_ADGROUPCRITERION.fields_by_name['listing_group'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_criteria__pb2._LISTINGGROUPINFO +_ADGROUPCRITERION.fields_by_name['age_range'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_criteria__pb2._AGERANGEINFO +_ADGROUPCRITERION.fields_by_name['gender'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_criteria__pb2._GENDERINFO +_ADGROUPCRITERION.fields_by_name['income_range'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_criteria__pb2._INCOMERANGEINFO +_ADGROUPCRITERION.fields_by_name['parental_status'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_criteria__pb2._PARENTALSTATUSINFO +_ADGROUPCRITERION.fields_by_name['user_list'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_criteria__pb2._USERLISTINFO +_ADGROUPCRITERION.fields_by_name['youtube_video'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_criteria__pb2._YOUTUBEVIDEOINFO +_ADGROUPCRITERION.fields_by_name['youtube_channel'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_criteria__pb2._YOUTUBECHANNELINFO +_ADGROUPCRITERION.fields_by_name['topic'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_criteria__pb2._TOPICINFO +_ADGROUPCRITERION.fields_by_name['user_interest'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_criteria__pb2._USERINTERESTINFO +_ADGROUPCRITERION.fields_by_name['webpage'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_criteria__pb2._WEBPAGEINFO +_ADGROUPCRITERION.fields_by_name['app_payment_model'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_criteria__pb2._APPPAYMENTMODELINFO +_ADGROUPCRITERION.fields_by_name['custom_affinity'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_criteria__pb2._CUSTOMAFFINITYINFO +_ADGROUPCRITERION.fields_by_name['custom_intent'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_criteria__pb2._CUSTOMINTENTINFO +_ADGROUPCRITERION.oneofs_by_name['criterion'].fields.append( + _ADGROUPCRITERION.fields_by_name['keyword']) +_ADGROUPCRITERION.fields_by_name['keyword'].containing_oneof = _ADGROUPCRITERION.oneofs_by_name['criterion'] +_ADGROUPCRITERION.oneofs_by_name['criterion'].fields.append( + _ADGROUPCRITERION.fields_by_name['placement']) +_ADGROUPCRITERION.fields_by_name['placement'].containing_oneof = _ADGROUPCRITERION.oneofs_by_name['criterion'] +_ADGROUPCRITERION.oneofs_by_name['criterion'].fields.append( + _ADGROUPCRITERION.fields_by_name['mobile_app_category']) +_ADGROUPCRITERION.fields_by_name['mobile_app_category'].containing_oneof = _ADGROUPCRITERION.oneofs_by_name['criterion'] +_ADGROUPCRITERION.oneofs_by_name['criterion'].fields.append( + _ADGROUPCRITERION.fields_by_name['mobile_application']) +_ADGROUPCRITERION.fields_by_name['mobile_application'].containing_oneof = _ADGROUPCRITERION.oneofs_by_name['criterion'] +_ADGROUPCRITERION.oneofs_by_name['criterion'].fields.append( + _ADGROUPCRITERION.fields_by_name['listing_group']) +_ADGROUPCRITERION.fields_by_name['listing_group'].containing_oneof = _ADGROUPCRITERION.oneofs_by_name['criterion'] +_ADGROUPCRITERION.oneofs_by_name['criterion'].fields.append( + _ADGROUPCRITERION.fields_by_name['age_range']) +_ADGROUPCRITERION.fields_by_name['age_range'].containing_oneof = _ADGROUPCRITERION.oneofs_by_name['criterion'] +_ADGROUPCRITERION.oneofs_by_name['criterion'].fields.append( + _ADGROUPCRITERION.fields_by_name['gender']) +_ADGROUPCRITERION.fields_by_name['gender'].containing_oneof = _ADGROUPCRITERION.oneofs_by_name['criterion'] +_ADGROUPCRITERION.oneofs_by_name['criterion'].fields.append( + _ADGROUPCRITERION.fields_by_name['income_range']) +_ADGROUPCRITERION.fields_by_name['income_range'].containing_oneof = _ADGROUPCRITERION.oneofs_by_name['criterion'] +_ADGROUPCRITERION.oneofs_by_name['criterion'].fields.append( + _ADGROUPCRITERION.fields_by_name['parental_status']) +_ADGROUPCRITERION.fields_by_name['parental_status'].containing_oneof = _ADGROUPCRITERION.oneofs_by_name['criterion'] +_ADGROUPCRITERION.oneofs_by_name['criterion'].fields.append( + _ADGROUPCRITERION.fields_by_name['user_list']) +_ADGROUPCRITERION.fields_by_name['user_list'].containing_oneof = _ADGROUPCRITERION.oneofs_by_name['criterion'] +_ADGROUPCRITERION.oneofs_by_name['criterion'].fields.append( + _ADGROUPCRITERION.fields_by_name['youtube_video']) +_ADGROUPCRITERION.fields_by_name['youtube_video'].containing_oneof = _ADGROUPCRITERION.oneofs_by_name['criterion'] +_ADGROUPCRITERION.oneofs_by_name['criterion'].fields.append( + _ADGROUPCRITERION.fields_by_name['youtube_channel']) +_ADGROUPCRITERION.fields_by_name['youtube_channel'].containing_oneof = _ADGROUPCRITERION.oneofs_by_name['criterion'] +_ADGROUPCRITERION.oneofs_by_name['criterion'].fields.append( + _ADGROUPCRITERION.fields_by_name['topic']) +_ADGROUPCRITERION.fields_by_name['topic'].containing_oneof = _ADGROUPCRITERION.oneofs_by_name['criterion'] +_ADGROUPCRITERION.oneofs_by_name['criterion'].fields.append( + _ADGROUPCRITERION.fields_by_name['user_interest']) +_ADGROUPCRITERION.fields_by_name['user_interest'].containing_oneof = _ADGROUPCRITERION.oneofs_by_name['criterion'] +_ADGROUPCRITERION.oneofs_by_name['criterion'].fields.append( + _ADGROUPCRITERION.fields_by_name['webpage']) +_ADGROUPCRITERION.fields_by_name['webpage'].containing_oneof = _ADGROUPCRITERION.oneofs_by_name['criterion'] +_ADGROUPCRITERION.oneofs_by_name['criterion'].fields.append( + _ADGROUPCRITERION.fields_by_name['app_payment_model']) +_ADGROUPCRITERION.fields_by_name['app_payment_model'].containing_oneof = _ADGROUPCRITERION.oneofs_by_name['criterion'] +_ADGROUPCRITERION.oneofs_by_name['criterion'].fields.append( + _ADGROUPCRITERION.fields_by_name['custom_affinity']) +_ADGROUPCRITERION.fields_by_name['custom_affinity'].containing_oneof = _ADGROUPCRITERION.oneofs_by_name['criterion'] +_ADGROUPCRITERION.oneofs_by_name['criterion'].fields.append( + _ADGROUPCRITERION.fields_by_name['custom_intent']) +_ADGROUPCRITERION.fields_by_name['custom_intent'].containing_oneof = _ADGROUPCRITERION.oneofs_by_name['criterion'] +DESCRIPTOR.message_types_by_name['AdGroupCriterion'] = _ADGROUPCRITERION +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +AdGroupCriterion = _reflection.GeneratedProtocolMessageType('AdGroupCriterion', (_message.Message,), dict( + + QualityInfo = _reflection.GeneratedProtocolMessageType('QualityInfo', (_message.Message,), dict( + DESCRIPTOR = _ADGROUPCRITERION_QUALITYINFO, + __module__ = 'google.ads.googleads_v4.proto.resources.ad_group_criterion_pb2' + , + __doc__ = """A container for ad group criterion quality information. + + + Attributes: + quality_score: + Output only. The quality score. This field may not be + populated if Google does not have enough information to + determine a value. + creative_quality_score: + Output only. The performance of the ad compared to other + advertisers. + post_click_quality_score: + Output only. The quality score of the landing page. + search_predicted_ctr: + Output only. The click-through rate compared to that of other + advertisers. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.resources.AdGroupCriterion.QualityInfo) + )) + , + + PositionEstimates = _reflection.GeneratedProtocolMessageType('PositionEstimates', (_message.Message,), dict( + DESCRIPTOR = _ADGROUPCRITERION_POSITIONESTIMATES, + __module__ = 'google.ads.googleads_v4.proto.resources.ad_group_criterion_pb2' + , + __doc__ = """Estimates for criterion bids at various positions. + + + Attributes: + first_page_cpc_micros: + Output only. The estimate of the CPC bid required for ad to be + shown on first page of search results. + first_position_cpc_micros: + Output only. The estimate of the CPC bid required for ad to be + displayed in first position, at the top of the first page of + search results. + top_of_page_cpc_micros: + Output only. The estimate of the CPC bid required for ad to be + displayed at the top of the first page of search results. + estimated_add_clicks_at_first_position_cpc: + Output only. Estimate of how many clicks per week you might + get by changing your keyword bid to the value in + first\_position\_cpc\_micros. + estimated_add_cost_at_first_position_cpc: + Output only. Estimate of how your cost per week might change + when changing your keyword bid to the value in + first\_position\_cpc\_micros. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.resources.AdGroupCriterion.PositionEstimates) + )) + , + DESCRIPTOR = _ADGROUPCRITERION, + __module__ = 'google.ads.googleads_v4.proto.resources.ad_group_criterion_pb2' + , + __doc__ = """An ad group criterion. + + + Attributes: + resource_name: + Immutable. The resource name of the ad group criterion. Ad + group criterion resource names have the form: ``customers/{cu + stomer_id}/adGroupCriteria/{ad_group_id}~{criterion_id}`` + criterion_id: + Output only. The ID of the criterion. This field is ignored + for mutates. + status: + The status of the criterion. + quality_info: + Output only. Information regarding the quality of the + criterion. + ad_group: + Immutable. The ad group to which the criterion belongs. + type: + Output only. The type of the criterion. + negative: + Immutable. Whether to target (``false``) or exclude (``true``) + the criterion. This field is immutable. To switch a criterion + from positive to negative, remove then re-add it. + system_serving_status: + Output only. Serving status of the criterion. + approval_status: + Output only. Approval status of the criterion. + disapproval_reasons: + Output only. List of disapproval reasons of 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. + bid_modifier: + The modifier for the bid when the criterion matches. The + modifier must be in the range: 0.1 - 10.0. Most targetable + criteria types support modifiers. + cpc_bid_micros: + The CPC (cost-per-click) bid. + cpm_bid_micros: + The CPM (cost-per-thousand viewable impressions) bid. + cpv_bid_micros: + The CPV (cost-per-view) bid. + percent_cpc_bid_micros: + The CPC bid amount, expressed as a fraction of the advertised + price for some good or service. The valid range for the + fraction is [0,1) and the value stored here is 1,000,000 \* + [fraction]. + effective_cpc_bid_micros: + Output only. The effective CPC (cost-per-click) bid. + effective_cpm_bid_micros: + Output only. The effective CPM (cost-per-thousand viewable + impressions) bid. + effective_cpv_bid_micros: + Output only. The effective CPV (cost-per-view) bid. + effective_percent_cpc_bid_micros: + Output only. The effective Percent CPC bid amount. + effective_cpc_bid_source: + Output only. Source of the effective CPC bid. + effective_cpm_bid_source: + Output only. Source of the effective CPM bid. + effective_cpv_bid_source: + Output only. Source of the effective CPV bid. + effective_percent_cpc_bid_source: + Output only. Source of the effective Percent CPC bid. + position_estimates: + Output only. Estimates for criterion bids at various + positions. + final_urls: + The list of possible final URLs after all cross-domain + redirects for the ad. + final_mobile_urls: + The list of possible final mobile URLs after all cross-domain + redirects. + final_url_suffix: + URL template for appending params to final URL. + tracking_url_template: + The URL template for constructing a tracking URL. + url_custom_parameters: + The list of mappings used to substitute custom parameter tags + in a ``tracking_url_template``, ``final_urls``, or + ``mobile_final_urls``. + criterion: + The ad group criterion. Exactly one must be set. + keyword: + Immutable. Keyword. + placement: + Immutable. Placement. + mobile_app_category: + Immutable. Mobile app category. + mobile_application: + Immutable. Mobile application. + listing_group: + Immutable. Listing group. + age_range: + Immutable. Age range. + gender: + Immutable. Gender. + income_range: + Immutable. Income range. + parental_status: + Immutable. Parental status. + user_list: + Immutable. User List. + youtube_video: + Immutable. YouTube Video. + youtube_channel: + Immutable. YouTube Channel. + topic: + Immutable. Topic. + user_interest: + Immutable. User Interest. + webpage: + Immutable. Webpage + app_payment_model: + Immutable. App Payment Model. + custom_affinity: + Immutable. Custom Affinity. + custom_intent: + Immutable. Custom Intent. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.resources.AdGroupCriterion) + )) +_sym_db.RegisterMessage(AdGroupCriterion) +_sym_db.RegisterMessage(AdGroupCriterion.QualityInfo) +_sym_db.RegisterMessage(AdGroupCriterion.PositionEstimates) + + +DESCRIPTOR._options = None +_ADGROUPCRITERION_QUALITYINFO.fields_by_name['quality_score']._options = None +_ADGROUPCRITERION_QUALITYINFO.fields_by_name['creative_quality_score']._options = None +_ADGROUPCRITERION_QUALITYINFO.fields_by_name['post_click_quality_score']._options = None +_ADGROUPCRITERION_QUALITYINFO.fields_by_name['search_predicted_ctr']._options = None +_ADGROUPCRITERION_POSITIONESTIMATES.fields_by_name['first_page_cpc_micros']._options = None +_ADGROUPCRITERION_POSITIONESTIMATES.fields_by_name['first_position_cpc_micros']._options = None +_ADGROUPCRITERION_POSITIONESTIMATES.fields_by_name['top_of_page_cpc_micros']._options = None +_ADGROUPCRITERION_POSITIONESTIMATES.fields_by_name['estimated_add_clicks_at_first_position_cpc']._options = None +_ADGROUPCRITERION_POSITIONESTIMATES.fields_by_name['estimated_add_cost_at_first_position_cpc']._options = None +_ADGROUPCRITERION.fields_by_name['resource_name']._options = None +_ADGROUPCRITERION.fields_by_name['criterion_id']._options = None +_ADGROUPCRITERION.fields_by_name['quality_info']._options = None +_ADGROUPCRITERION.fields_by_name['ad_group']._options = None +_ADGROUPCRITERION.fields_by_name['type']._options = None +_ADGROUPCRITERION.fields_by_name['negative']._options = None +_ADGROUPCRITERION.fields_by_name['system_serving_status']._options = None +_ADGROUPCRITERION.fields_by_name['approval_status']._options = None +_ADGROUPCRITERION.fields_by_name['disapproval_reasons']._options = None +_ADGROUPCRITERION.fields_by_name['effective_cpc_bid_micros']._options = None +_ADGROUPCRITERION.fields_by_name['effective_cpm_bid_micros']._options = None +_ADGROUPCRITERION.fields_by_name['effective_cpv_bid_micros']._options = None +_ADGROUPCRITERION.fields_by_name['effective_percent_cpc_bid_micros']._options = None +_ADGROUPCRITERION.fields_by_name['effective_cpc_bid_source']._options = None +_ADGROUPCRITERION.fields_by_name['effective_cpm_bid_source']._options = None +_ADGROUPCRITERION.fields_by_name['effective_cpv_bid_source']._options = None +_ADGROUPCRITERION.fields_by_name['effective_percent_cpc_bid_source']._options = None +_ADGROUPCRITERION.fields_by_name['position_estimates']._options = None +_ADGROUPCRITERION.fields_by_name['keyword']._options = None +_ADGROUPCRITERION.fields_by_name['placement']._options = None +_ADGROUPCRITERION.fields_by_name['mobile_app_category']._options = None +_ADGROUPCRITERION.fields_by_name['mobile_application']._options = None +_ADGROUPCRITERION.fields_by_name['listing_group']._options = None +_ADGROUPCRITERION.fields_by_name['age_range']._options = None +_ADGROUPCRITERION.fields_by_name['gender']._options = None +_ADGROUPCRITERION.fields_by_name['income_range']._options = None +_ADGROUPCRITERION.fields_by_name['parental_status']._options = None +_ADGROUPCRITERION.fields_by_name['user_list']._options = None +_ADGROUPCRITERION.fields_by_name['youtube_video']._options = None +_ADGROUPCRITERION.fields_by_name['youtube_channel']._options = None +_ADGROUPCRITERION.fields_by_name['topic']._options = None +_ADGROUPCRITERION.fields_by_name['user_interest']._options = None +_ADGROUPCRITERION.fields_by_name['webpage']._options = None +_ADGROUPCRITERION.fields_by_name['app_payment_model']._options = None +_ADGROUPCRITERION.fields_by_name['custom_affinity']._options = None +_ADGROUPCRITERION.fields_by_name['custom_intent']._options = None +_ADGROUPCRITERION._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/resources/customer_feed_pb2_grpc.py b/google/ads/google_ads/v4/proto/resources/ad_group_criterion_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/resources/customer_feed_pb2_grpc.py rename to google/ads/google_ads/v4/proto/resources/ad_group_criterion_pb2_grpc.py diff --git a/google/ads/google_ads/v4/proto/resources/ad_group_criterion_simulation_pb2.py b/google/ads/google_ads/v4/proto/resources/ad_group_criterion_simulation_pb2.py new file mode 100644 index 000000000..0d8791a65 --- /dev/null +++ b/google/ads/google_ads/v4/proto/resources/ad_group_criterion_simulation_pb2.py @@ -0,0 +1,187 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/resources/ad_group_criterion_simulation.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.ads.google_ads.v4.proto.common import simulation_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_simulation__pb2 +from google.ads.google_ads.v4.proto.enums import simulation_modification_method_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_simulation__modification__method__pb2 +from google.ads.google_ads.v4.proto.enums import simulation_type_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_simulation__type__pb2 +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 +from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/resources/ad_group_criterion_simulation.proto', + package='google.ads.googleads.v4.resources', + syntax='proto3', + serialized_options=_b('\n%com.google.ads.googleads.v4.resourcesB\037AdGroupCriterionSimulationProtoP\001ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v4/resources;resources\242\002\003GAA\252\002!Google.Ads.GoogleAds.V4.Resources\312\002!Google\\Ads\\GoogleAds\\V4\\Resources\352\002%Google::Ads::GoogleAds::V4::Resources'), + serialized_pb=_b('\nKgoogle/ads/googleads_v4/proto/resources/ad_group_criterion_simulation.proto\x12!google.ads.googleads.v4.resources\x1a\x35google/ads/googleads_v4/proto/common/simulation.proto\x1aHgoogle/ads/googleads_v4/proto/enums/simulation_modification_method.proto\x1a\x39google/ads/googleads_v4/proto/enums/simulation_type.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1cgoogle/api/annotations.proto\"\x9a\x06\n\x1a\x41\x64GroupCriterionSimulation\x12R\n\rresource_name\x18\x01 \x01(\tB;\xe0\x41\x03\xfa\x41\x35\n3googleads.googleapis.com/AdGroupCriterionSimulation\x12\x35\n\x0b\x61\x64_group_id\x18\x02 \x01(\x0b\x32\x1b.google.protobuf.Int64ValueB\x03\xe0\x41\x03\x12\x36\n\x0c\x63riterion_id\x18\x03 \x01(\x0b\x32\x1b.google.protobuf.Int64ValueB\x03\xe0\x41\x03\x12S\n\x04type\x18\x04 \x01(\x0e\x32@.google.ads.googleads.v4.enums.SimulationTypeEnum.SimulationTypeB\x03\xe0\x41\x03\x12~\n\x13modification_method\x18\x05 \x01(\x0e\x32\\.google.ads.googleads.v4.enums.SimulationModificationMethodEnum.SimulationModificationMethodB\x03\xe0\x41\x03\x12\x35\n\nstart_date\x18\x06 \x01(\x0b\x32\x1c.google.protobuf.StringValueB\x03\xe0\x41\x03\x12\x33\n\x08\x65nd_date\x18\x07 \x01(\x0b\x32\x1c.google.protobuf.StringValueB\x03\xe0\x41\x03\x12\\\n\x12\x63pc_bid_point_list\x18\x08 \x01(\x0b\x32\x39.google.ads.googleads.v4.common.CpcBidSimulationPointListB\x03\xe0\x41\x03H\x00:\x8b\x01\xea\x41\x87\x01\n3googleads.googleapis.com/AdGroupCriterionSimulation\x12Pcustomers/{customer}/adGroupCriterionSimulations/{ad_group_criterion_simulation}B\x0c\n\npoint_listB\x8c\x02\n%com.google.ads.googleads.v4.resourcesB\x1f\x41\x64GroupCriterionSimulationProtoP\x01ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v4/resources;resources\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V4.Resources\xca\x02!Google\\Ads\\GoogleAds\\V4\\Resources\xea\x02%Google::Ads::GoogleAds::V4::Resourcesb\x06proto3') + , + dependencies=[google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_simulation__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_simulation__modification__method__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_simulation__type__pb2.DESCRIPTOR,google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_api_dot_resource__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + + +_ADGROUPCRITERIONSIMULATION = _descriptor.Descriptor( + name='AdGroupCriterionSimulation', + full_name='google.ads.googleads.v4.resources.AdGroupCriterionSimulation', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.resources.AdGroupCriterionSimulation.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003\372A5\n3googleads.googleapis.com/AdGroupCriterionSimulation'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='ad_group_id', full_name='google.ads.googleads.v4.resources.AdGroupCriterionSimulation.ad_group_id', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='criterion_id', full_name='google.ads.googleads.v4.resources.AdGroupCriterionSimulation.criterion_id', index=2, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='type', full_name='google.ads.googleads.v4.resources.AdGroupCriterionSimulation.type', index=3, + number=4, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='modification_method', full_name='google.ads.googleads.v4.resources.AdGroupCriterionSimulation.modification_method', index=4, + number=5, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='start_date', full_name='google.ads.googleads.v4.resources.AdGroupCriterionSimulation.start_date', index=5, + number=6, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='end_date', full_name='google.ads.googleads.v4.resources.AdGroupCriterionSimulation.end_date', index=6, + number=7, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='cpc_bid_point_list', full_name='google.ads.googleads.v4.resources.AdGroupCriterionSimulation.cpc_bid_point_list', index=7, + number=8, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=_b('\352A\207\001\n3googleads.googleapis.com/AdGroupCriterionSimulation\022Pcustomers/{customer}/adGroupCriterionSimulations/{ad_group_criterion_simulation}'), + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name='point_list', full_name='google.ads.googleads.v4.resources.AdGroupCriterionSimulation.point_list', + index=0, containing_type=None, fields=[]), + ], + serialized_start=425, + serialized_end=1219, +) + +_ADGROUPCRITERIONSIMULATION.fields_by_name['ad_group_id'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_ADGROUPCRITERIONSIMULATION.fields_by_name['criterion_id'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_ADGROUPCRITERIONSIMULATION.fields_by_name['type'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_simulation__type__pb2._SIMULATIONTYPEENUM_SIMULATIONTYPE +_ADGROUPCRITERIONSIMULATION.fields_by_name['modification_method'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_simulation__modification__method__pb2._SIMULATIONMODIFICATIONMETHODENUM_SIMULATIONMODIFICATIONMETHOD +_ADGROUPCRITERIONSIMULATION.fields_by_name['start_date'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_ADGROUPCRITERIONSIMULATION.fields_by_name['end_date'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_ADGROUPCRITERIONSIMULATION.fields_by_name['cpc_bid_point_list'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_simulation__pb2._CPCBIDSIMULATIONPOINTLIST +_ADGROUPCRITERIONSIMULATION.oneofs_by_name['point_list'].fields.append( + _ADGROUPCRITERIONSIMULATION.fields_by_name['cpc_bid_point_list']) +_ADGROUPCRITERIONSIMULATION.fields_by_name['cpc_bid_point_list'].containing_oneof = _ADGROUPCRITERIONSIMULATION.oneofs_by_name['point_list'] +DESCRIPTOR.message_types_by_name['AdGroupCriterionSimulation'] = _ADGROUPCRITERIONSIMULATION +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +AdGroupCriterionSimulation = _reflection.GeneratedProtocolMessageType('AdGroupCriterionSimulation', (_message.Message,), dict( + DESCRIPTOR = _ADGROUPCRITERIONSIMULATION, + __module__ = 'google.ads.googleads_v4.proto.resources.ad_group_criterion_simulation_pb2' + , + __doc__ = """An ad group criterion simulation. Supported combinations of advertising + channel type, criterion type, simulation type, and simulation + modification method are detailed below respectively. + + 1. DISPLAY - KEYWORD - CPC\_BID - UNIFORM + 2. SEARCH - KEYWORD - CPC\_BID - UNIFORM + 3. SHOPPING - LISTING\_GROUP - CPC\_BID - UNIFORM + + + Attributes: + resource_name: + Output only. The resource name of the ad group criterion + simulation. Ad group criterion simulation resource names have + the form: ``customers/{customer_id}/adGroupCriterionSimulatio + ns/{ad_group_id}~{criterion_id}~{type}~{modification_method}~{ + start_date}~{end_date}`` + ad_group_id: + Output only. AdGroup ID of the simulation. + criterion_id: + Output only. Criterion ID of the simulation. + type: + Output only. The field that the simulation modifies. + modification_method: + Output only. How the simulation modifies the field. + start_date: + Output only. First day on which the simulation is based, in + YYYY-MM-DD format. + end_date: + Output only. Last day on which the simulation is based, in + YYYY-MM-DD format. + point_list: + List of simulation points. + cpc_bid_point_list: + Output only. Simulation points if the simulation type is + CPC\_BID. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.resources.AdGroupCriterionSimulation) + )) +_sym_db.RegisterMessage(AdGroupCriterionSimulation) + + +DESCRIPTOR._options = None +_ADGROUPCRITERIONSIMULATION.fields_by_name['resource_name']._options = None +_ADGROUPCRITERIONSIMULATION.fields_by_name['ad_group_id']._options = None +_ADGROUPCRITERIONSIMULATION.fields_by_name['criterion_id']._options = None +_ADGROUPCRITERIONSIMULATION.fields_by_name['type']._options = None +_ADGROUPCRITERIONSIMULATION.fields_by_name['modification_method']._options = None +_ADGROUPCRITERIONSIMULATION.fields_by_name['start_date']._options = None +_ADGROUPCRITERIONSIMULATION.fields_by_name['end_date']._options = None +_ADGROUPCRITERIONSIMULATION.fields_by_name['cpc_bid_point_list']._options = None +_ADGROUPCRITERIONSIMULATION._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/resources/customer_label_pb2_grpc.py b/google/ads/google_ads/v4/proto/resources/ad_group_criterion_simulation_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/resources/customer_label_pb2_grpc.py rename to google/ads/google_ads/v4/proto/resources/ad_group_criterion_simulation_pb2_grpc.py diff --git a/google/ads/google_ads/v4/proto/resources/ad_group_extension_setting_pb2.py b/google/ads/google_ads/v4/proto/resources/ad_group_extension_setting_pb2.py new file mode 100644 index 000000000..e81fc13a9 --- /dev/null +++ b/google/ads/google_ads/v4/proto/resources/ad_group_extension_setting_pb2.py @@ -0,0 +1,140 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/resources/ad_group_extension_setting.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.ads.google_ads.v4.proto.enums import extension_setting_device_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_extension__setting__device__pb2 +from google.ads.google_ads.v4.proto.enums import extension_type_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_extension__type__pb2 +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 +from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/resources/ad_group_extension_setting.proto', + package='google.ads.googleads.v4.resources', + syntax='proto3', + serialized_options=_b('\n%com.google.ads.googleads.v4.resourcesB\034AdGroupExtensionSettingProtoP\001ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v4/resources;resources\242\002\003GAA\252\002!Google.Ads.GoogleAds.V4.Resources\312\002!Google\\Ads\\GoogleAds\\V4\\Resources\352\002%Google::Ads::GoogleAds::V4::Resources'), + serialized_pb=_b('\nHgoogle/ads/googleads_v4/proto/resources/ad_group_extension_setting.proto\x12!google.ads.googleads.v4.resources\x1a\x42google/ads/googleads_v4/proto/enums/extension_setting_device.proto\x1a\x38google/ads/googleads_v4/proto/enums/extension_type.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1cgoogle/api/annotations.proto\"\xf4\x04\n\x17\x41\x64GroupExtensionSetting\x12O\n\rresource_name\x18\x01 \x01(\tB8\xe0\x41\x05\xfa\x41\x32\n0googleads.googleapis.com/AdGroupExtensionSetting\x12[\n\x0e\x65xtension_type\x18\x02 \x01(\x0e\x32>.google.ads.googleads.v4.enums.ExtensionTypeEnum.ExtensionTypeB\x03\xe0\x41\x05\x12X\n\x08\x61\x64_group\x18\x03 \x01(\x0b\x32\x1c.google.protobuf.StringValueB(\xe0\x41\x05\xfa\x41\"\n googleads.googleapis.com/AdGroup\x12k\n\x14\x65xtension_feed_items\x18\x04 \x03(\x0b\x32\x1c.google.protobuf.StringValueB/\xfa\x41,\n*googleads.googleapis.com/ExtensionFeedItem\x12`\n\x06\x64\x65vice\x18\x05 \x01(\x0e\x32P.google.ads.googleads.v4.enums.ExtensionSettingDeviceEnum.ExtensionSettingDevice:\x81\x01\xea\x41~\n0googleads.googleapis.com/AdGroupExtensionSetting\x12Jcustomers/{customer}/adGroupExtensionSettings/{ad_group_extension_setting}B\x89\x02\n%com.google.ads.googleads.v4.resourcesB\x1c\x41\x64GroupExtensionSettingProtoP\x01ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v4/resources;resources\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V4.Resources\xca\x02!Google\\Ads\\GoogleAds\\V4\\Resources\xea\x02%Google::Ads::GoogleAds::V4::Resourcesb\x06proto3') + , + dependencies=[google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_extension__setting__device__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_extension__type__pb2.DESCRIPTOR,google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_api_dot_resource__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + + +_ADGROUPEXTENSIONSETTING = _descriptor.Descriptor( + name='AdGroupExtensionSetting', + full_name='google.ads.googleads.v4.resources.AdGroupExtensionSetting', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.resources.AdGroupExtensionSetting.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005\372A2\n0googleads.googleapis.com/AdGroupExtensionSetting'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='extension_type', full_name='google.ads.googleads.v4.resources.AdGroupExtensionSetting.extension_type', index=1, + number=2, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='ad_group', full_name='google.ads.googleads.v4.resources.AdGroupExtensionSetting.ad_group', index=2, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005\372A\"\n googleads.googleapis.com/AdGroup'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='extension_feed_items', full_name='google.ads.googleads.v4.resources.AdGroupExtensionSetting.extension_feed_items', index=3, + number=4, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\372A,\n*googleads.googleapis.com/ExtensionFeedItem'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='device', full_name='google.ads.googleads.v4.resources.AdGroupExtensionSetting.device', index=4, + number=5, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=_b('\352A~\n0googleads.googleapis.com/AdGroupExtensionSetting\022Jcustomers/{customer}/adGroupExtensionSettings/{ad_group_extension_setting}'), + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=360, + serialized_end=988, +) + +_ADGROUPEXTENSIONSETTING.fields_by_name['extension_type'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_extension__type__pb2._EXTENSIONTYPEENUM_EXTENSIONTYPE +_ADGROUPEXTENSIONSETTING.fields_by_name['ad_group'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_ADGROUPEXTENSIONSETTING.fields_by_name['extension_feed_items'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_ADGROUPEXTENSIONSETTING.fields_by_name['device'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_extension__setting__device__pb2._EXTENSIONSETTINGDEVICEENUM_EXTENSIONSETTINGDEVICE +DESCRIPTOR.message_types_by_name['AdGroupExtensionSetting'] = _ADGROUPEXTENSIONSETTING +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +AdGroupExtensionSetting = _reflection.GeneratedProtocolMessageType('AdGroupExtensionSetting', (_message.Message,), dict( + DESCRIPTOR = _ADGROUPEXTENSIONSETTING, + __module__ = 'google.ads.googleads_v4.proto.resources.ad_group_extension_setting_pb2' + , + __doc__ = """An ad group extension setting. + + + Attributes: + resource_name: + Immutable. The resource name of the ad group extension + setting. AdGroupExtensionSetting resource names have the form: + ``customers/{customer_id}/adGroupExtensionSettings/{ad_group_i + d}~{extension_type}`` + extension_type: + Immutable. The extension type of the ad group extension + setting. + ad_group: + Immutable. The resource name of the ad group. The linked + extension feed items will serve under this ad group. AdGroup + resource names have the form: + ``customers/{customer_id}/adGroups/{ad_group_id}`` + extension_feed_items: + The resource names of the extension feed items to serve under + the ad group. ExtensionFeedItem resource names have the form: + ``customers/{customer_id}/extensionFeedItems/{feed_item_id}`` + device: + The device for which the extensions will serve. Optional. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.resources.AdGroupExtensionSetting) + )) +_sym_db.RegisterMessage(AdGroupExtensionSetting) + + +DESCRIPTOR._options = None +_ADGROUPEXTENSIONSETTING.fields_by_name['resource_name']._options = None +_ADGROUPEXTENSIONSETTING.fields_by_name['extension_type']._options = None +_ADGROUPEXTENSIONSETTING.fields_by_name['ad_group']._options = None +_ADGROUPEXTENSIONSETTING.fields_by_name['extension_feed_items']._options = None +_ADGROUPEXTENSIONSETTING._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/resources/customer_manager_link_pb2_grpc.py b/google/ads/google_ads/v4/proto/resources/ad_group_extension_setting_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/resources/customer_manager_link_pb2_grpc.py rename to google/ads/google_ads/v4/proto/resources/ad_group_extension_setting_pb2_grpc.py diff --git a/google/ads/google_ads/v4/proto/resources/ad_group_feed_pb2.py b/google/ads/google_ads/v4/proto/resources/ad_group_feed_pb2.py new file mode 100644 index 000000000..289404b17 --- /dev/null +++ b/google/ads/google_ads/v4/proto/resources/ad_group_feed_pb2.py @@ -0,0 +1,148 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/resources/ad_group_feed.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.ads.google_ads.v4.proto.common import matching_function_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_matching__function__pb2 +from google.ads.google_ads.v4.proto.enums import feed_link_status_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_feed__link__status__pb2 +from google.ads.google_ads.v4.proto.enums import placeholder_type_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_placeholder__type__pb2 +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 +from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/resources/ad_group_feed.proto', + package='google.ads.googleads.v4.resources', + syntax='proto3', + serialized_options=_b('\n%com.google.ads.googleads.v4.resourcesB\020AdGroupFeedProtoP\001ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v4/resources;resources\242\002\003GAA\252\002!Google.Ads.GoogleAds.V4.Resources\312\002!Google\\Ads\\GoogleAds\\V4\\Resources\352\002%Google::Ads::GoogleAds::V4::Resources'), + serialized_pb=_b('\n;google/ads/googleads_v4/proto/resources/ad_group_feed.proto\x12!google.ads.googleads.v4.resources\x1a.google.ads.googleads.v4.enums.AdGroupStatusEnum.AdGroupStatus\x12M\n\x04type\x18\x0c \x01(\x0e\x32:.google.ads.googleads.v4.enums.AdGroupTypeEnum.AdGroupTypeB\x03\xe0\x41\x05\x12h\n\x10\x61\x64_rotation_mode\x18\x16 \x01(\x0e\x32N.google.ads.googleads.v4.enums.AdGroupAdRotationModeEnum.AdGroupAdRotationMode\x12]\n\rbase_ad_group\x18\x12 \x01(\x0b\x32\x1c.google.protobuf.StringValueB(\xe0\x41\x03\xfa\x41\"\n googleads.googleapis.com/AdGroup\x12;\n\x15tracking_url_template\x18\r \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12N\n\x15url_custom_parameters\x18\x06 \x03(\x0b\x32/.google.ads.googleads.v4.common.CustomParameter\x12Y\n\x08\x63\x61mpaign\x18\n \x01(\x0b\x32\x1c.google.protobuf.StringValueB)\xe0\x41\x05\xfa\x41#\n!googleads.googleapis.com/Campaign\x12\x33\n\x0e\x63pc_bid_micros\x18\x0e \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x33\n\x0e\x63pm_bid_micros\x18\x0f \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x36\n\x11target_cpa_micros\x18\x1b \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x38\n\x0e\x63pv_bid_micros\x18\x11 \x01(\x0b\x32\x1b.google.protobuf.Int64ValueB\x03\xe0\x41\x03\x12\x36\n\x11target_cpm_micros\x18\x1a \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x31\n\x0btarget_roas\x18\x1e \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12;\n\x16percent_cpc_bid_micros\x18\x14 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x65\n\x1f\x65xplorer_auto_optimizer_setting\x18\x15 \x01(\x0b\x32<.google.ads.googleads.v4.common.ExplorerAutoOptimizerSetting\x12n\n\x1c\x64isplay_custom_bid_dimension\x18\x17 \x01(\x0e\x32H.google.ads.googleads.v4.enums.TargetingDimensionEnum.TargetingDimension\x12\x36\n\x10\x66inal_url_suffix\x18\x18 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12K\n\x11targeting_setting\x18\x19 \x01(\x0b\x32\x30.google.ads.googleads.v4.common.TargetingSetting\x12\x45\n\x1b\x65\x66\x66\x65\x63tive_target_cpa_micros\x18\x1c \x01(\x0b\x32\x1b.google.protobuf.Int64ValueB\x03\xe0\x41\x03\x12h\n\x1b\x65\x66\x66\x65\x63tive_target_cpa_source\x18\x1d \x01(\x0e\x32>.google.ads.googleads.v4.enums.BiddingSourceEnum.BiddingSourceB\x03\xe0\x41\x03\x12@\n\x15\x65\x66\x66\x65\x63tive_target_roas\x18\x1f \x01(\x0b\x32\x1c.google.protobuf.DoubleValueB\x03\xe0\x41\x03\x12i\n\x1c\x65\x66\x66\x65\x63tive_target_roas_source\x18 \x01(\x0e\x32>.google.ads.googleads.v4.enums.BiddingSourceEnum.BiddingSourceB\x03\xe0\x41\x03\x12[\n\x06labels\x18! \x03(\x0b\x32\x1c.google.protobuf.StringValueB-\xe0\x41\x03\xfa\x41\'\n%googleads.googleapis.com/AdGroupLabel:O\xea\x41L\n googleads.googleapis.com/AdGroup\x12(customers/{customer}/adGroups/{ad_group}B\xf9\x01\n%com.google.ads.googleads.v4.resourcesB\x0c\x41\x64GroupProtoP\x01ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v4/resources;resources\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V4.Resources\xca\x02!Google\\Ads\\GoogleAds\\V4\\Resources\xea\x02%Google::Ads::GoogleAds::V4::Resourcesb\x06proto3') + , + dependencies=[google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_custom__parameter__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_explorer__auto__optimizer__setting__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_targeting__setting__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_ad__group__ad__rotation__mode__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_ad__group__status__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_ad__group__type__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_bidding__source__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_targeting__dimension__pb2.DESCRIPTOR,google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_api_dot_resource__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + + +_ADGROUP = _descriptor.Descriptor( + name='AdGroup', + full_name='google.ads.googleads.v4.resources.AdGroup', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.resources.AdGroup.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005\372A\"\n googleads.googleapis.com/AdGroup'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='id', full_name='google.ads.googleads.v4.resources.AdGroup.id', index=1, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='name', full_name='google.ads.googleads.v4.resources.AdGroup.name', index=2, + number=4, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='status', full_name='google.ads.googleads.v4.resources.AdGroup.status', index=3, + number=5, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='type', full_name='google.ads.googleads.v4.resources.AdGroup.type', index=4, + number=12, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='ad_rotation_mode', full_name='google.ads.googleads.v4.resources.AdGroup.ad_rotation_mode', index=5, + number=22, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='base_ad_group', full_name='google.ads.googleads.v4.resources.AdGroup.base_ad_group', index=6, + number=18, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003\372A\"\n googleads.googleapis.com/AdGroup'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='tracking_url_template', full_name='google.ads.googleads.v4.resources.AdGroup.tracking_url_template', index=7, + number=13, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='url_custom_parameters', full_name='google.ads.googleads.v4.resources.AdGroup.url_custom_parameters', index=8, + number=6, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='campaign', full_name='google.ads.googleads.v4.resources.AdGroup.campaign', index=9, + number=10, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005\372A#\n!googleads.googleapis.com/Campaign'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='cpc_bid_micros', full_name='google.ads.googleads.v4.resources.AdGroup.cpc_bid_micros', index=10, + number=14, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='cpm_bid_micros', full_name='google.ads.googleads.v4.resources.AdGroup.cpm_bid_micros', index=11, + number=15, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='target_cpa_micros', full_name='google.ads.googleads.v4.resources.AdGroup.target_cpa_micros', index=12, + number=27, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='cpv_bid_micros', full_name='google.ads.googleads.v4.resources.AdGroup.cpv_bid_micros', index=13, + number=17, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='target_cpm_micros', full_name='google.ads.googleads.v4.resources.AdGroup.target_cpm_micros', index=14, + number=26, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='target_roas', full_name='google.ads.googleads.v4.resources.AdGroup.target_roas', index=15, + number=30, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='percent_cpc_bid_micros', full_name='google.ads.googleads.v4.resources.AdGroup.percent_cpc_bid_micros', index=16, + number=20, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='explorer_auto_optimizer_setting', full_name='google.ads.googleads.v4.resources.AdGroup.explorer_auto_optimizer_setting', index=17, + number=21, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='display_custom_bid_dimension', full_name='google.ads.googleads.v4.resources.AdGroup.display_custom_bid_dimension', index=18, + number=23, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='final_url_suffix', full_name='google.ads.googleads.v4.resources.AdGroup.final_url_suffix', index=19, + number=24, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='targeting_setting', full_name='google.ads.googleads.v4.resources.AdGroup.targeting_setting', index=20, + number=25, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='effective_target_cpa_micros', full_name='google.ads.googleads.v4.resources.AdGroup.effective_target_cpa_micros', index=21, + number=28, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='effective_target_cpa_source', full_name='google.ads.googleads.v4.resources.AdGroup.effective_target_cpa_source', index=22, + number=29, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='effective_target_roas', full_name='google.ads.googleads.v4.resources.AdGroup.effective_target_roas', index=23, + number=31, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='effective_target_roas_source', full_name='google.ads.googleads.v4.resources.AdGroup.effective_target_roas_source', index=24, + number=32, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='labels', full_name='google.ads.googleads.v4.resources.AdGroup.labels', index=25, + number=33, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003\372A\'\n%googleads.googleapis.com/AdGroupLabel'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=_b('\352AL\n googleads.googleapis.com/AdGroup\022(customers/{customer}/adGroups/{ad_group}'), + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=721, + serialized_end=2737, +) + +_ADGROUP.fields_by_name['id'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_ADGROUP.fields_by_name['name'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_ADGROUP.fields_by_name['status'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_ad__group__status__pb2._ADGROUPSTATUSENUM_ADGROUPSTATUS +_ADGROUP.fields_by_name['type'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_ad__group__type__pb2._ADGROUPTYPEENUM_ADGROUPTYPE +_ADGROUP.fields_by_name['ad_rotation_mode'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_ad__group__ad__rotation__mode__pb2._ADGROUPADROTATIONMODEENUM_ADGROUPADROTATIONMODE +_ADGROUP.fields_by_name['base_ad_group'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_ADGROUP.fields_by_name['tracking_url_template'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_ADGROUP.fields_by_name['url_custom_parameters'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_custom__parameter__pb2._CUSTOMPARAMETER +_ADGROUP.fields_by_name['campaign'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_ADGROUP.fields_by_name['cpc_bid_micros'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_ADGROUP.fields_by_name['cpm_bid_micros'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_ADGROUP.fields_by_name['target_cpa_micros'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_ADGROUP.fields_by_name['cpv_bid_micros'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_ADGROUP.fields_by_name['target_cpm_micros'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_ADGROUP.fields_by_name['target_roas'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE +_ADGROUP.fields_by_name['percent_cpc_bid_micros'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_ADGROUP.fields_by_name['explorer_auto_optimizer_setting'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_explorer__auto__optimizer__setting__pb2._EXPLORERAUTOOPTIMIZERSETTING +_ADGROUP.fields_by_name['display_custom_bid_dimension'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_targeting__dimension__pb2._TARGETINGDIMENSIONENUM_TARGETINGDIMENSION +_ADGROUP.fields_by_name['final_url_suffix'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_ADGROUP.fields_by_name['targeting_setting'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_targeting__setting__pb2._TARGETINGSETTING +_ADGROUP.fields_by_name['effective_target_cpa_micros'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_ADGROUP.fields_by_name['effective_target_cpa_source'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_bidding__source__pb2._BIDDINGSOURCEENUM_BIDDINGSOURCE +_ADGROUP.fields_by_name['effective_target_roas'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE +_ADGROUP.fields_by_name['effective_target_roas_source'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_bidding__source__pb2._BIDDINGSOURCEENUM_BIDDINGSOURCE +_ADGROUP.fields_by_name['labels'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +DESCRIPTOR.message_types_by_name['AdGroup'] = _ADGROUP +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +AdGroup = _reflection.GeneratedProtocolMessageType('AdGroup', (_message.Message,), dict( + DESCRIPTOR = _ADGROUP, + __module__ = 'google.ads.googleads_v4.proto.resources.ad_group_pb2' + , + __doc__ = """An ad group. + + + Attributes: + resource_name: + Immutable. The resource name of the ad group. Ad group + resource names have the form: + ``customers/{customer_id}/adGroups/{ad_group_id}`` + id: + Output only. The ID of the ad group. + name: + The name of the ad group. This field is required and should + not be empty when creating new ad groups. It must contain + fewer than 255 UTF-8 full-width characters. It must not + contain any null (code point 0x0), NL line feed (code point + 0xA) or carriage return (code point 0xD) characters. + status: + The status of the ad group. + type: + Immutable. The type of the ad group. + ad_rotation_mode: + The ad rotation mode of the ad group. + base_ad_group: + Output only. For draft or experiment ad groups, this field is + the resource name of the base ad group from which this ad + group was created. If a draft or experiment ad group does not + have a base ad group, then this field is null. For base ad + groups, this field equals the ad group resource name. This + field is read-only. + tracking_url_template: + The URL template for constructing a tracking URL. + url_custom_parameters: + The list of mappings used to substitute custom parameter tags + in a ``tracking_url_template``, ``final_urls``, or + ``mobile_final_urls``. + campaign: + Immutable. The campaign to which the ad group belongs. + cpc_bid_micros: + The maximum CPC (cost-per-click) bid. + cpm_bid_micros: + The maximum CPM (cost-per-thousand viewable impressions) bid. + target_cpa_micros: + The target CPA (cost-per-acquisition). + cpv_bid_micros: + Output only. The CPV (cost-per-view) bid. + target_cpm_micros: + Average amount in micros that the advertiser is willing to pay + for every thousand times the ad is shown. + target_roas: + The target ROAS (return-on-ad-spend) override. If the ad + group's campaign bidding strategy is a standard Target ROAS + strategy, then this field overrides the target ROAS specified + in the campaign's bidding strategy. Otherwise, this value is + ignored. + percent_cpc_bid_micros: + The percent cpc bid amount, expressed as a fraction of the + advertised price for some good or service. The valid range for + the fraction is [0,1) and the value stored here is 1,000,000 + \* [fraction]. + explorer_auto_optimizer_setting: + Settings for the Display Campaign Optimizer, initially termed + "Explorer". + display_custom_bid_dimension: + Allows advertisers to specify a targeting dimension on which + to place absolute bids. This is only applicable for campaigns + that target only the display network and not search. + final_url_suffix: + URL template for appending params to Final URL. + targeting_setting: + Setting for targeting related features. + effective_target_cpa_micros: + Output only. The effective target CPA (cost-per-acquisition). + This field is read-only. + effective_target_cpa_source: + Output only. Source of the effective target CPA. This field is + read-only. + effective_target_roas: + Output only. The effective target ROAS (return-on-ad-spend). + This field is read-only. + effective_target_roas_source: + Output only. Source of the effective target ROAS. This field + is read-only. + labels: + Output only. The resource names of labels attached to this ad + group. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.resources.AdGroup) + )) +_sym_db.RegisterMessage(AdGroup) + + +DESCRIPTOR._options = None +_ADGROUP.fields_by_name['resource_name']._options = None +_ADGROUP.fields_by_name['id']._options = None +_ADGROUP.fields_by_name['type']._options = None +_ADGROUP.fields_by_name['base_ad_group']._options = None +_ADGROUP.fields_by_name['campaign']._options = None +_ADGROUP.fields_by_name['cpv_bid_micros']._options = None +_ADGROUP.fields_by_name['effective_target_cpa_micros']._options = None +_ADGROUP.fields_by_name['effective_target_cpa_source']._options = None +_ADGROUP.fields_by_name['effective_target_roas']._options = None +_ADGROUP.fields_by_name['effective_target_roas_source']._options = None +_ADGROUP.fields_by_name['labels']._options = None +_ADGROUP._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/resources/detail_placement_view_pb2_grpc.py b/google/ads/google_ads/v4/proto/resources/ad_group_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/resources/detail_placement_view_pb2_grpc.py rename to google/ads/google_ads/v4/proto/resources/ad_group_pb2_grpc.py diff --git a/google/ads/google_ads/v4/proto/resources/ad_group_simulation_pb2.py b/google/ads/google_ads/v4/proto/resources/ad_group_simulation_pb2.py new file mode 100644 index 000000000..30f223407 --- /dev/null +++ b/google/ads/google_ads/v4/proto/resources/ad_group_simulation_pb2.py @@ -0,0 +1,226 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/resources/ad_group_simulation.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.ads.google_ads.v4.proto.common import simulation_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_simulation__pb2 +from google.ads.google_ads.v4.proto.enums import simulation_modification_method_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_simulation__modification__method__pb2 +from google.ads.google_ads.v4.proto.enums import simulation_type_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_simulation__type__pb2 +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 +from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/resources/ad_group_simulation.proto', + package='google.ads.googleads.v4.resources', + syntax='proto3', + serialized_options=_b('\n%com.google.ads.googleads.v4.resourcesB\026AdGroupSimulationProtoP\001ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v4/resources;resources\242\002\003GAA\252\002!Google.Ads.GoogleAds.V4.Resources\312\002!Google\\Ads\\GoogleAds\\V4\\Resources\352\002%Google::Ads::GoogleAds::V4::Resources'), + serialized_pb=_b('\nAgoogle/ads/googleads_v4/proto/resources/ad_group_simulation.proto\x12!google.ads.googleads.v4.resources\x1a\x35google/ads/googleads_v4/proto/common/simulation.proto\x1aHgoogle/ads/googleads_v4/proto/enums/simulation_modification_method.proto\x1a\x39google/ads/googleads_v4/proto/enums/simulation_type.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1cgoogle/api/annotations.proto\"\xda\x07\n\x11\x41\x64GroupSimulation\x12I\n\rresource_name\x18\x01 \x01(\tB2\xe0\x41\x03\xfa\x41,\n*googleads.googleapis.com/AdGroupSimulation\x12\x35\n\x0b\x61\x64_group_id\x18\x02 \x01(\x0b\x32\x1b.google.protobuf.Int64ValueB\x03\xe0\x41\x03\x12S\n\x04type\x18\x03 \x01(\x0e\x32@.google.ads.googleads.v4.enums.SimulationTypeEnum.SimulationTypeB\x03\xe0\x41\x03\x12~\n\x13modification_method\x18\x04 \x01(\x0e\x32\\.google.ads.googleads.v4.enums.SimulationModificationMethodEnum.SimulationModificationMethodB\x03\xe0\x41\x03\x12\x35\n\nstart_date\x18\x05 \x01(\x0b\x32\x1c.google.protobuf.StringValueB\x03\xe0\x41\x03\x12\x33\n\x08\x65nd_date\x18\x06 \x01(\x0b\x32\x1c.google.protobuf.StringValueB\x03\xe0\x41\x03\x12\\\n\x12\x63pc_bid_point_list\x18\x08 \x01(\x0b\x32\x39.google.ads.googleads.v4.common.CpcBidSimulationPointListB\x03\xe0\x41\x03H\x00\x12\\\n\x12\x63pv_bid_point_list\x18\n \x01(\x0b\x32\x39.google.ads.googleads.v4.common.CpvBidSimulationPointListB\x03\xe0\x41\x03H\x00\x12\x62\n\x15target_cpa_point_list\x18\t \x01(\x0b\x32<.google.ads.googleads.v4.common.TargetCpaSimulationPointListB\x03\xe0\x41\x03H\x00\x12\x64\n\x16target_roas_point_list\x18\x0b \x01(\x0b\x32=.google.ads.googleads.v4.common.TargetRoasSimulationPointListB\x03\xe0\x41\x03H\x00:n\xea\x41k\n*googleads.googleapis.com/AdGroupSimulation\x12=customers/{customer}/adGroupSimulations/{ad_group_simulation}B\x0c\n\npoint_listB\x83\x02\n%com.google.ads.googleads.v4.resourcesB\x16\x41\x64GroupSimulationProtoP\x01ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v4/resources;resources\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V4.Resources\xca\x02!Google\\Ads\\GoogleAds\\V4\\Resources\xea\x02%Google::Ads::GoogleAds::V4::Resourcesb\x06proto3') + , + dependencies=[google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_simulation__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_simulation__modification__method__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_simulation__type__pb2.DESCRIPTOR,google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_api_dot_resource__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + + +_ADGROUPSIMULATION = _descriptor.Descriptor( + name='AdGroupSimulation', + full_name='google.ads.googleads.v4.resources.AdGroupSimulation', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.resources.AdGroupSimulation.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003\372A,\n*googleads.googleapis.com/AdGroupSimulation'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='ad_group_id', full_name='google.ads.googleads.v4.resources.AdGroupSimulation.ad_group_id', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='type', full_name='google.ads.googleads.v4.resources.AdGroupSimulation.type', index=2, + number=3, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='modification_method', full_name='google.ads.googleads.v4.resources.AdGroupSimulation.modification_method', index=3, + number=4, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='start_date', full_name='google.ads.googleads.v4.resources.AdGroupSimulation.start_date', index=4, + number=5, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='end_date', full_name='google.ads.googleads.v4.resources.AdGroupSimulation.end_date', index=5, + number=6, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='cpc_bid_point_list', full_name='google.ads.googleads.v4.resources.AdGroupSimulation.cpc_bid_point_list', index=6, + number=8, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='cpv_bid_point_list', full_name='google.ads.googleads.v4.resources.AdGroupSimulation.cpv_bid_point_list', index=7, + number=10, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='target_cpa_point_list', full_name='google.ads.googleads.v4.resources.AdGroupSimulation.target_cpa_point_list', index=8, + number=9, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='target_roas_point_list', full_name='google.ads.googleads.v4.resources.AdGroupSimulation.target_roas_point_list', index=9, + number=11, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=_b('\352Ak\n*googleads.googleapis.com/AdGroupSimulation\022=customers/{customer}/adGroupSimulations/{ad_group_simulation}'), + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name='point_list', full_name='google.ads.googleads.v4.resources.AdGroupSimulation.point_list', + index=0, containing_type=None, fields=[]), + ], + serialized_start=415, + serialized_end=1401, +) + +_ADGROUPSIMULATION.fields_by_name['ad_group_id'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_ADGROUPSIMULATION.fields_by_name['type'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_simulation__type__pb2._SIMULATIONTYPEENUM_SIMULATIONTYPE +_ADGROUPSIMULATION.fields_by_name['modification_method'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_simulation__modification__method__pb2._SIMULATIONMODIFICATIONMETHODENUM_SIMULATIONMODIFICATIONMETHOD +_ADGROUPSIMULATION.fields_by_name['start_date'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_ADGROUPSIMULATION.fields_by_name['end_date'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_ADGROUPSIMULATION.fields_by_name['cpc_bid_point_list'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_simulation__pb2._CPCBIDSIMULATIONPOINTLIST +_ADGROUPSIMULATION.fields_by_name['cpv_bid_point_list'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_simulation__pb2._CPVBIDSIMULATIONPOINTLIST +_ADGROUPSIMULATION.fields_by_name['target_cpa_point_list'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_simulation__pb2._TARGETCPASIMULATIONPOINTLIST +_ADGROUPSIMULATION.fields_by_name['target_roas_point_list'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_simulation__pb2._TARGETROASSIMULATIONPOINTLIST +_ADGROUPSIMULATION.oneofs_by_name['point_list'].fields.append( + _ADGROUPSIMULATION.fields_by_name['cpc_bid_point_list']) +_ADGROUPSIMULATION.fields_by_name['cpc_bid_point_list'].containing_oneof = _ADGROUPSIMULATION.oneofs_by_name['point_list'] +_ADGROUPSIMULATION.oneofs_by_name['point_list'].fields.append( + _ADGROUPSIMULATION.fields_by_name['cpv_bid_point_list']) +_ADGROUPSIMULATION.fields_by_name['cpv_bid_point_list'].containing_oneof = _ADGROUPSIMULATION.oneofs_by_name['point_list'] +_ADGROUPSIMULATION.oneofs_by_name['point_list'].fields.append( + _ADGROUPSIMULATION.fields_by_name['target_cpa_point_list']) +_ADGROUPSIMULATION.fields_by_name['target_cpa_point_list'].containing_oneof = _ADGROUPSIMULATION.oneofs_by_name['point_list'] +_ADGROUPSIMULATION.oneofs_by_name['point_list'].fields.append( + _ADGROUPSIMULATION.fields_by_name['target_roas_point_list']) +_ADGROUPSIMULATION.fields_by_name['target_roas_point_list'].containing_oneof = _ADGROUPSIMULATION.oneofs_by_name['point_list'] +DESCRIPTOR.message_types_by_name['AdGroupSimulation'] = _ADGROUPSIMULATION +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +AdGroupSimulation = _reflection.GeneratedProtocolMessageType('AdGroupSimulation', (_message.Message,), dict( + DESCRIPTOR = _ADGROUPSIMULATION, + __module__ = 'google.ads.googleads_v4.proto.resources.ad_group_simulation_pb2' + , + __doc__ = """An ad group simulation. Supported combinations of advertising channel + type, simulation type and simulation modification method is detailed + below respectively. + + 1. SEARCH - CPC\_BID - DEFAULT + 2. SEARCH - CPC\_BID - UNIFORM + 3. SEARCH - TARGET\_CPA - UNIFORM + 4. SEARCH - TARGET\_ROAS - UNIFORM + 5. DISPLAY - CPC\_BID - DEFAULT + 6. DISPLAY - CPC\_BID - UNIFORM + 7. DISPLAY - TARGET\_CPA - UNIFORM + 8. VIDEO - CPV\_BID - DEFAULT + 9. VIDEO - CPV\_BID - UNIFORM + + + Attributes: + resource_name: + Output only. The resource name of the ad group simulation. Ad + group simulation resource names have the form: ``customers/{c + ustomer_id}/adGroupSimulations/{ad_group_id}~{type}~{modificat + ion_method}~{start_date}~{end_date}`` + ad_group_id: + Output only. Ad group id of the simulation. + type: + Output only. The field that the simulation modifies. + modification_method: + Output only. How the simulation modifies the field. + start_date: + Output only. First day on which the simulation is based, in + YYYY-MM-DD format. + end_date: + Output only. Last day on which the simulation is based, in + YYYY-MM-DD format + point_list: + List of simulation points. + cpc_bid_point_list: + Output only. Simulation points if the simulation type is + CPC\_BID. + cpv_bid_point_list: + Output only. Simulation points if the simulation type is + CPV\_BID. + target_cpa_point_list: + Output only. Simulation points if the simulation type is + TARGET\_CPA. + target_roas_point_list: + Output only. Simulation points if the simulation type is + TARGET\_ROAS. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.resources.AdGroupSimulation) + )) +_sym_db.RegisterMessage(AdGroupSimulation) + + +DESCRIPTOR._options = None +_ADGROUPSIMULATION.fields_by_name['resource_name']._options = None +_ADGROUPSIMULATION.fields_by_name['ad_group_id']._options = None +_ADGROUPSIMULATION.fields_by_name['type']._options = None +_ADGROUPSIMULATION.fields_by_name['modification_method']._options = None +_ADGROUPSIMULATION.fields_by_name['start_date']._options = None +_ADGROUPSIMULATION.fields_by_name['end_date']._options = None +_ADGROUPSIMULATION.fields_by_name['cpc_bid_point_list']._options = None +_ADGROUPSIMULATION.fields_by_name['cpv_bid_point_list']._options = None +_ADGROUPSIMULATION.fields_by_name['target_cpa_point_list']._options = None +_ADGROUPSIMULATION.fields_by_name['target_roas_point_list']._options = None +_ADGROUPSIMULATION._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/resources/display_keyword_view_pb2_grpc.py b/google/ads/google_ads/v4/proto/resources/ad_group_simulation_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/resources/display_keyword_view_pb2_grpc.py rename to google/ads/google_ads/v4/proto/resources/ad_group_simulation_pb2_grpc.py diff --git a/google/ads/google_ads/v4/proto/resources/ad_parameter_pb2.py b/google/ads/google_ads/v4/proto/resources/ad_parameter_pb2.py new file mode 100644 index 000000000..58c006287 --- /dev/null +++ b/google/ads/google_ads/v4/proto/resources/ad_parameter_pb2.py @@ -0,0 +1,137 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/resources/ad_parameter.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 +from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/resources/ad_parameter.proto', + package='google.ads.googleads.v4.resources', + syntax='proto3', + serialized_options=_b('\n%com.google.ads.googleads.v4.resourcesB\020AdParameterProtoP\001ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v4/resources;resources\242\002\003GAA\252\002!Google.Ads.GoogleAds.V4.Resources\312\002!Google\\Ads\\GoogleAds\\V4\\Resources\352\002%Google::Ads::GoogleAds::V4::Resources'), + serialized_pb=_b('\n:google/ads/googleads_v4/proto/resources/ad_parameter.proto\x12!google.ads.googleads.v4.resources\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1cgoogle/api/annotations.proto\"\x8d\x03\n\x0b\x41\x64Parameter\x12\x43\n\rresource_name\x18\x01 \x01(\tB,\xe0\x41\x05\xfa\x41&\n$googleads.googleapis.com/AdParameter\x12k\n\x12\x61\x64_group_criterion\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValueB1\xe0\x41\x05\xfa\x41+\n)googleads.googleapis.com/AdGroupCriterion\x12\x39\n\x0fparameter_index\x18\x03 \x01(\x0b\x32\x1b.google.protobuf.Int64ValueB\x03\xe0\x41\x05\x12\x34\n\x0einsertion_text\x18\x04 \x01(\x0b\x32\x1c.google.protobuf.StringValue:[\xea\x41X\n$googleads.googleapis.com/AdParameter\x12\x30\x63ustomers/{customer}/adParameters/{ad_parameter}B\xfd\x01\n%com.google.ads.googleads.v4.resourcesB\x10\x41\x64ParameterProtoP\x01ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v4/resources;resources\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V4.Resources\xca\x02!Google\\Ads\\GoogleAds\\V4\\Resources\xea\x02%Google::Ads::GoogleAds::V4::Resourcesb\x06proto3') + , + dependencies=[google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_api_dot_resource__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + + +_ADPARAMETER = _descriptor.Descriptor( + name='AdParameter', + full_name='google.ads.googleads.v4.resources.AdParameter', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.resources.AdParameter.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005\372A&\n$googleads.googleapis.com/AdParameter'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='ad_group_criterion', full_name='google.ads.googleads.v4.resources.AdParameter.ad_group_criterion', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005\372A+\n)googleads.googleapis.com/AdGroupCriterion'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='parameter_index', full_name='google.ads.googleads.v4.resources.AdParameter.parameter_index', index=2, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='insertion_text', full_name='google.ads.googleads.v4.resources.AdParameter.insertion_text', index=3, + number=4, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=_b('\352AX\n$googleads.googleapis.com/AdParameter\0220customers/{customer}/adParameters/{ad_parameter}'), + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=220, + serialized_end=617, +) + +_ADPARAMETER.fields_by_name['ad_group_criterion'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_ADPARAMETER.fields_by_name['parameter_index'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_ADPARAMETER.fields_by_name['insertion_text'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +DESCRIPTOR.message_types_by_name['AdParameter'] = _ADPARAMETER +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +AdParameter = _reflection.GeneratedProtocolMessageType('AdParameter', (_message.Message,), dict( + DESCRIPTOR = _ADPARAMETER, + __module__ = 'google.ads.googleads_v4.proto.resources.ad_parameter_pb2' + , + __doc__ = """An ad parameter that is used to update numeric values (such as prices or + inventory levels) in any text line of an ad (including URLs). There can + be a maximum of two AdParameters per ad group criterion. (One with + parameter\_index = 1 and one with parameter\_index = 2.) In the ad the + parameters are referenced by a placeholder of the form "{param#:value}". + E.g. "{param1:$17}" + + + Attributes: + resource_name: + Immutable. The resource name of the ad parameter. Ad parameter + resource names have the form: ``customers/{customer_id}/adPar + ameters/{ad_group_id}~{criterion_id}~{parameter_index}`` + ad_group_criterion: + Immutable. The ad group criterion that this ad parameter + belongs to. + parameter_index: + Immutable. The unique index of this ad parameter. Must be + either 1 or 2. + insertion_text: + 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. + - Can be prepended or appended with a currency symbol. For + example, $99.99 is valid. - Can be prepended or appended with + a currency 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. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.resources.AdParameter) + )) +_sym_db.RegisterMessage(AdParameter) + + +DESCRIPTOR._options = None +_ADPARAMETER.fields_by_name['resource_name']._options = None +_ADPARAMETER.fields_by_name['ad_group_criterion']._options = None +_ADPARAMETER.fields_by_name['parameter_index']._options = None +_ADPARAMETER._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/resources/domain_category_pb2_grpc.py b/google/ads/google_ads/v4/proto/resources/ad_parameter_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/resources/domain_category_pb2_grpc.py rename to google/ads/google_ads/v4/proto/resources/ad_parameter_pb2_grpc.py diff --git a/google/ads/google_ads/v4/proto/resources/ad_pb2.py b/google/ads/google_ads/v4/proto/resources/ad_pb2.py new file mode 100644 index 000000000..cc600a36b --- /dev/null +++ b/google/ads/google_ads/v4/proto/resources/ad_pb2.py @@ -0,0 +1,521 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/resources/ad.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.ads.google_ads.v4.proto.common import ad_type_infos_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_ad__type__infos__pb2 +from google.ads.google_ads.v4.proto.common import custom_parameter_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_custom__parameter__pb2 +from google.ads.google_ads.v4.proto.common import final_app_url_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_final__app__url__pb2 +from google.ads.google_ads.v4.proto.common import url_collection_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_url__collection__pb2 +from google.ads.google_ads.v4.proto.enums import ad_type_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_ad__type__pb2 +from google.ads.google_ads.v4.proto.enums import device_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_device__pb2 +from google.ads.google_ads.v4.proto.enums import system_managed_entity_source_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_system__managed__entity__source__pb2 +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 +from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/resources/ad.proto', + package='google.ads.googleads.v4.resources', + syntax='proto3', + serialized_options=_b('\n%com.google.ads.googleads.v4.resourcesB\007AdProtoP\001ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v4/resources;resources\242\002\003GAA\252\002!Google.Ads.GoogleAds.V4.Resources\312\002!Google\\Ads\\GoogleAds\\V4\\Resources\352\002%Google::Ads::GoogleAds::V4::Resources'), + serialized_pb=_b('\n0google/ads/googleads_v4/proto/resources/ad.proto\x12!google.ads.googleads.v4.resources\x1a\x38google/ads/googleads_v4/proto/common/ad_type_infos.proto\x1a;google/ads/googleads_v4/proto/common/custom_parameter.proto\x1a\x38google/ads/googleads_v4/proto/common/final_app_url.proto\x1a\x39google/ads/googleads_v4/proto/common/url_collection.proto\x1a\x31google/ads/googleads_v4/proto/enums/ad_type.proto\x1a\x30google/ads/googleads_v4/proto/enums/device.proto\x1a\x46google/ads/googleads_v4/proto/enums/system_managed_entity_source.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1cgoogle/api/annotations.proto\"\xb3\x14\n\x02\x41\x64\x12:\n\rresource_name\x18% \x01(\tB#\xe0\x41\x05\xfa\x41\x1d\n\x1bgoogleads.googleapis.com/Ad\x12,\n\x02id\x18\x01 \x01(\x0b\x32\x1b.google.protobuf.Int64ValueB\x03\xe0\x41\x03\x12\x30\n\nfinal_urls\x18\x02 \x03(\x0b\x32\x1c.google.protobuf.StringValue\x12\x43\n\x0e\x66inal_app_urls\x18# \x03(\x0b\x32+.google.ads.googleads.v4.common.FinalAppUrl\x12\x37\n\x11\x66inal_mobile_urls\x18\x10 \x03(\x0b\x32\x1c.google.protobuf.StringValue\x12;\n\x15tracking_url_template\x18\x0c \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x36\n\x10\x66inal_url_suffix\x18& \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12N\n\x15url_custom_parameters\x18\n \x03(\x0b\x32/.google.ads.googleads.v4.common.CustomParameter\x12\x31\n\x0b\x64isplay_url\x18\x04 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x43\n\x04type\x18\x05 \x01(\x0e\x32\x30.google.ads.googleads.v4.enums.AdTypeEnum.AdTypeB\x03\xe0\x41\x03\x12<\n\x13\x61\x64\x64\x65\x64_by_google_ads\x18\x13 \x01(\x0b\x32\x1a.google.protobuf.BoolValueB\x03\xe0\x41\x03\x12K\n\x11\x64\x65vice_preference\x18\x14 \x01(\x0e\x32\x30.google.ads.googleads.v4.enums.DeviceEnum.Device\x12\x46\n\x0furl_collections\x18\x1a \x03(\x0b\x32-.google.ads.googleads.v4.common.UrlCollection\x12/\n\x04name\x18\x17 \x01(\x0b\x32\x1c.google.protobuf.StringValueB\x03\xe0\x41\x05\x12\x87\x01\n\x1esystem_managed_resource_source\x18\x1b \x01(\x0e\x32Z.google.ads.googleads.v4.enums.SystemManagedResourceSourceEnum.SystemManagedResourceSourceB\x03\xe0\x41\x03\x12\x42\n\x07text_ad\x18\x06 \x01(\x0b\x32*.google.ads.googleads.v4.common.TextAdInfoB\x03\xe0\x41\x05H\x00\x12N\n\x10\x65xpanded_text_ad\x18\x07 \x01(\x0b\x32\x32.google.ads.googleads.v4.common.ExpandedTextAdInfoH\x00\x12\x46\n\x0c\x63\x61ll_only_ad\x18\r \x01(\x0b\x32..google.ads.googleads.v4.common.CallOnlyAdInfoH\x00\x12\x66\n\x1a\x65xpanded_dynamic_search_ad\x18\x0e \x01(\x0b\x32;.google.ads.googleads.v4.common.ExpandedDynamicSearchAdInfoB\x03\xe0\x41\x05H\x00\x12?\n\x08hotel_ad\x18\x0f \x01(\x0b\x32+.google.ads.googleads.v4.common.HotelAdInfoH\x00\x12P\n\x11shopping_smart_ad\x18\x11 \x01(\x0b\x32\x33.google.ads.googleads.v4.common.ShoppingSmartAdInfoH\x00\x12T\n\x13shopping_product_ad\x18\x12 \x01(\x0b\x32\x35.google.ads.googleads.v4.common.ShoppingProductAdInfoH\x00\x12\x44\n\x08gmail_ad\x18\x15 \x01(\x0b\x32+.google.ads.googleads.v4.common.GmailAdInfoB\x03\xe0\x41\x05H\x00\x12\x44\n\x08image_ad\x18\x16 \x01(\x0b\x32+.google.ads.googleads.v4.common.ImageAdInfoB\x03\xe0\x41\x05H\x00\x12?\n\x08video_ad\x18\x18 \x01(\x0b\x32+.google.ads.googleads.v4.common.VideoAdInfoH\x00\x12V\n\x14responsive_search_ad\x18\x19 \x01(\x0b\x32\x36.google.ads.googleads.v4.common.ResponsiveSearchAdInfoH\x00\x12\x65\n\x1clegacy_responsive_display_ad\x18\x1c \x01(\x0b\x32=.google.ads.googleads.v4.common.LegacyResponsiveDisplayAdInfoH\x00\x12;\n\x06\x61pp_ad\x18\x1d \x01(\x0b\x32).google.ads.googleads.v4.common.AppAdInfoH\x00\x12\\\n\x15legacy_app_install_ad\x18\x1e \x01(\x0b\x32\x36.google.ads.googleads.v4.common.LegacyAppInstallAdInfoB\x03\xe0\x41\x05H\x00\x12X\n\x15responsive_display_ad\x18\x1f \x01(\x0b\x32\x37.google.ads.googleads.v4.common.ResponsiveDisplayAdInfoH\x00\x12?\n\x08local_ad\x18 \x01(\x0b\x32+.google.ads.googleads.v4.common.LocalAdInfoH\x00\x12P\n\x11\x64isplay_upload_ad\x18! \x01(\x0b\x32\x33.google.ads.googleads.v4.common.DisplayUploadAdInfoH\x00\x12P\n\x11\x61pp_engagement_ad\x18\" \x01(\x0b\x32\x33.google.ads.googleads.v4.common.AppEngagementAdInfoH\x00\x12i\n\x1eshopping_comparison_listing_ad\x18$ \x01(\x0b\x32?.google.ads.googleads.v4.common.ShoppingComparisonListingAdInfoH\x00:?\xea\x41<\n\x1bgoogleads.googleapis.com/Ad\x12\x1d\x63ustomers/{customer}/ads/{ad}B\t\n\x07\x61\x64_dataB\xf4\x01\n%com.google.ads.googleads.v4.resourcesB\x07\x41\x64ProtoP\x01ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v4/resources;resources\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V4.Resources\xca\x02!Google\\Ads\\GoogleAds\\V4\\Resources\xea\x02%Google::Ads::GoogleAds::V4::Resourcesb\x06proto3') + , + dependencies=[google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_ad__type__infos__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_custom__parameter__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_final__app__url__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_url__collection__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_ad__type__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_device__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_system__managed__entity__source__pb2.DESCRIPTOR,google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_api_dot_resource__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + + +_AD = _descriptor.Descriptor( + name='Ad', + full_name='google.ads.googleads.v4.resources.Ad', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.resources.Ad.resource_name', index=0, + number=37, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005\372A\035\n\033googleads.googleapis.com/Ad'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='id', full_name='google.ads.googleads.v4.resources.Ad.id', index=1, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='final_urls', full_name='google.ads.googleads.v4.resources.Ad.final_urls', index=2, + number=2, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='final_app_urls', full_name='google.ads.googleads.v4.resources.Ad.final_app_urls', index=3, + number=35, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='final_mobile_urls', full_name='google.ads.googleads.v4.resources.Ad.final_mobile_urls', index=4, + number=16, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='tracking_url_template', full_name='google.ads.googleads.v4.resources.Ad.tracking_url_template', index=5, + number=12, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='final_url_suffix', full_name='google.ads.googleads.v4.resources.Ad.final_url_suffix', index=6, + number=38, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='url_custom_parameters', full_name='google.ads.googleads.v4.resources.Ad.url_custom_parameters', index=7, + number=10, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='display_url', full_name='google.ads.googleads.v4.resources.Ad.display_url', index=8, + number=4, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='type', full_name='google.ads.googleads.v4.resources.Ad.type', index=9, + number=5, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='added_by_google_ads', full_name='google.ads.googleads.v4.resources.Ad.added_by_google_ads', index=10, + number=19, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='device_preference', full_name='google.ads.googleads.v4.resources.Ad.device_preference', index=11, + number=20, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='url_collections', full_name='google.ads.googleads.v4.resources.Ad.url_collections', index=12, + number=26, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='name', full_name='google.ads.googleads.v4.resources.Ad.name', index=13, + number=23, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='system_managed_resource_source', full_name='google.ads.googleads.v4.resources.Ad.system_managed_resource_source', index=14, + number=27, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='text_ad', full_name='google.ads.googleads.v4.resources.Ad.text_ad', index=15, + number=6, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='expanded_text_ad', full_name='google.ads.googleads.v4.resources.Ad.expanded_text_ad', index=16, + number=7, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='call_only_ad', full_name='google.ads.googleads.v4.resources.Ad.call_only_ad', index=17, + number=13, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='expanded_dynamic_search_ad', full_name='google.ads.googleads.v4.resources.Ad.expanded_dynamic_search_ad', index=18, + number=14, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='hotel_ad', full_name='google.ads.googleads.v4.resources.Ad.hotel_ad', index=19, + number=15, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='shopping_smart_ad', full_name='google.ads.googleads.v4.resources.Ad.shopping_smart_ad', index=20, + number=17, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='shopping_product_ad', full_name='google.ads.googleads.v4.resources.Ad.shopping_product_ad', index=21, + number=18, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='gmail_ad', full_name='google.ads.googleads.v4.resources.Ad.gmail_ad', index=22, + number=21, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='image_ad', full_name='google.ads.googleads.v4.resources.Ad.image_ad', index=23, + number=22, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='video_ad', full_name='google.ads.googleads.v4.resources.Ad.video_ad', index=24, + number=24, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='responsive_search_ad', full_name='google.ads.googleads.v4.resources.Ad.responsive_search_ad', index=25, + number=25, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='legacy_responsive_display_ad', full_name='google.ads.googleads.v4.resources.Ad.legacy_responsive_display_ad', index=26, + number=28, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='app_ad', full_name='google.ads.googleads.v4.resources.Ad.app_ad', index=27, + number=29, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='legacy_app_install_ad', full_name='google.ads.googleads.v4.resources.Ad.legacy_app_install_ad', index=28, + number=30, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='responsive_display_ad', full_name='google.ads.googleads.v4.resources.Ad.responsive_display_ad', index=29, + number=31, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='local_ad', full_name='google.ads.googleads.v4.resources.Ad.local_ad', index=30, + number=32, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='display_upload_ad', full_name='google.ads.googleads.v4.resources.Ad.display_upload_ad', index=31, + number=33, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='app_engagement_ad', full_name='google.ads.googleads.v4.resources.Ad.app_engagement_ad', index=32, + number=34, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='shopping_comparison_listing_ad', full_name='google.ads.googleads.v4.resources.Ad.shopping_comparison_listing_ad', index=33, + number=36, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=_b('\352A<\n\033googleads.googleapis.com/Ad\022\035customers/{customer}/ads/{ad}'), + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name='ad_data', full_name='google.ads.googleads.v4.resources.Ad.ad_data', + index=0, containing_type=None, fields=[]), + ], + serialized_start=619, + serialized_end=3230, +) + +_AD.fields_by_name['id'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_AD.fields_by_name['final_urls'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_AD.fields_by_name['final_app_urls'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_final__app__url__pb2._FINALAPPURL +_AD.fields_by_name['final_mobile_urls'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_AD.fields_by_name['tracking_url_template'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_AD.fields_by_name['final_url_suffix'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_AD.fields_by_name['url_custom_parameters'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_custom__parameter__pb2._CUSTOMPARAMETER +_AD.fields_by_name['display_url'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_AD.fields_by_name['type'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_ad__type__pb2._ADTYPEENUM_ADTYPE +_AD.fields_by_name['added_by_google_ads'].message_type = google_dot_protobuf_dot_wrappers__pb2._BOOLVALUE +_AD.fields_by_name['device_preference'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_device__pb2._DEVICEENUM_DEVICE +_AD.fields_by_name['url_collections'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_url__collection__pb2._URLCOLLECTION +_AD.fields_by_name['name'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_AD.fields_by_name['system_managed_resource_source'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_system__managed__entity__source__pb2._SYSTEMMANAGEDRESOURCESOURCEENUM_SYSTEMMANAGEDRESOURCESOURCE +_AD.fields_by_name['text_ad'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_ad__type__infos__pb2._TEXTADINFO +_AD.fields_by_name['expanded_text_ad'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_ad__type__infos__pb2._EXPANDEDTEXTADINFO +_AD.fields_by_name['call_only_ad'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_ad__type__infos__pb2._CALLONLYADINFO +_AD.fields_by_name['expanded_dynamic_search_ad'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_ad__type__infos__pb2._EXPANDEDDYNAMICSEARCHADINFO +_AD.fields_by_name['hotel_ad'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_ad__type__infos__pb2._HOTELADINFO +_AD.fields_by_name['shopping_smart_ad'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_ad__type__infos__pb2._SHOPPINGSMARTADINFO +_AD.fields_by_name['shopping_product_ad'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_ad__type__infos__pb2._SHOPPINGPRODUCTADINFO +_AD.fields_by_name['gmail_ad'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_ad__type__infos__pb2._GMAILADINFO +_AD.fields_by_name['image_ad'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_ad__type__infos__pb2._IMAGEADINFO +_AD.fields_by_name['video_ad'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_ad__type__infos__pb2._VIDEOADINFO +_AD.fields_by_name['responsive_search_ad'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_ad__type__infos__pb2._RESPONSIVESEARCHADINFO +_AD.fields_by_name['legacy_responsive_display_ad'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_ad__type__infos__pb2._LEGACYRESPONSIVEDISPLAYADINFO +_AD.fields_by_name['app_ad'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_ad__type__infos__pb2._APPADINFO +_AD.fields_by_name['legacy_app_install_ad'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_ad__type__infos__pb2._LEGACYAPPINSTALLADINFO +_AD.fields_by_name['responsive_display_ad'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_ad__type__infos__pb2._RESPONSIVEDISPLAYADINFO +_AD.fields_by_name['local_ad'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_ad__type__infos__pb2._LOCALADINFO +_AD.fields_by_name['display_upload_ad'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_ad__type__infos__pb2._DISPLAYUPLOADADINFO +_AD.fields_by_name['app_engagement_ad'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_ad__type__infos__pb2._APPENGAGEMENTADINFO +_AD.fields_by_name['shopping_comparison_listing_ad'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_ad__type__infos__pb2._SHOPPINGCOMPARISONLISTINGADINFO +_AD.oneofs_by_name['ad_data'].fields.append( + _AD.fields_by_name['text_ad']) +_AD.fields_by_name['text_ad'].containing_oneof = _AD.oneofs_by_name['ad_data'] +_AD.oneofs_by_name['ad_data'].fields.append( + _AD.fields_by_name['expanded_text_ad']) +_AD.fields_by_name['expanded_text_ad'].containing_oneof = _AD.oneofs_by_name['ad_data'] +_AD.oneofs_by_name['ad_data'].fields.append( + _AD.fields_by_name['call_only_ad']) +_AD.fields_by_name['call_only_ad'].containing_oneof = _AD.oneofs_by_name['ad_data'] +_AD.oneofs_by_name['ad_data'].fields.append( + _AD.fields_by_name['expanded_dynamic_search_ad']) +_AD.fields_by_name['expanded_dynamic_search_ad'].containing_oneof = _AD.oneofs_by_name['ad_data'] +_AD.oneofs_by_name['ad_data'].fields.append( + _AD.fields_by_name['hotel_ad']) +_AD.fields_by_name['hotel_ad'].containing_oneof = _AD.oneofs_by_name['ad_data'] +_AD.oneofs_by_name['ad_data'].fields.append( + _AD.fields_by_name['shopping_smart_ad']) +_AD.fields_by_name['shopping_smart_ad'].containing_oneof = _AD.oneofs_by_name['ad_data'] +_AD.oneofs_by_name['ad_data'].fields.append( + _AD.fields_by_name['shopping_product_ad']) +_AD.fields_by_name['shopping_product_ad'].containing_oneof = _AD.oneofs_by_name['ad_data'] +_AD.oneofs_by_name['ad_data'].fields.append( + _AD.fields_by_name['gmail_ad']) +_AD.fields_by_name['gmail_ad'].containing_oneof = _AD.oneofs_by_name['ad_data'] +_AD.oneofs_by_name['ad_data'].fields.append( + _AD.fields_by_name['image_ad']) +_AD.fields_by_name['image_ad'].containing_oneof = _AD.oneofs_by_name['ad_data'] +_AD.oneofs_by_name['ad_data'].fields.append( + _AD.fields_by_name['video_ad']) +_AD.fields_by_name['video_ad'].containing_oneof = _AD.oneofs_by_name['ad_data'] +_AD.oneofs_by_name['ad_data'].fields.append( + _AD.fields_by_name['responsive_search_ad']) +_AD.fields_by_name['responsive_search_ad'].containing_oneof = _AD.oneofs_by_name['ad_data'] +_AD.oneofs_by_name['ad_data'].fields.append( + _AD.fields_by_name['legacy_responsive_display_ad']) +_AD.fields_by_name['legacy_responsive_display_ad'].containing_oneof = _AD.oneofs_by_name['ad_data'] +_AD.oneofs_by_name['ad_data'].fields.append( + _AD.fields_by_name['app_ad']) +_AD.fields_by_name['app_ad'].containing_oneof = _AD.oneofs_by_name['ad_data'] +_AD.oneofs_by_name['ad_data'].fields.append( + _AD.fields_by_name['legacy_app_install_ad']) +_AD.fields_by_name['legacy_app_install_ad'].containing_oneof = _AD.oneofs_by_name['ad_data'] +_AD.oneofs_by_name['ad_data'].fields.append( + _AD.fields_by_name['responsive_display_ad']) +_AD.fields_by_name['responsive_display_ad'].containing_oneof = _AD.oneofs_by_name['ad_data'] +_AD.oneofs_by_name['ad_data'].fields.append( + _AD.fields_by_name['local_ad']) +_AD.fields_by_name['local_ad'].containing_oneof = _AD.oneofs_by_name['ad_data'] +_AD.oneofs_by_name['ad_data'].fields.append( + _AD.fields_by_name['display_upload_ad']) +_AD.fields_by_name['display_upload_ad'].containing_oneof = _AD.oneofs_by_name['ad_data'] +_AD.oneofs_by_name['ad_data'].fields.append( + _AD.fields_by_name['app_engagement_ad']) +_AD.fields_by_name['app_engagement_ad'].containing_oneof = _AD.oneofs_by_name['ad_data'] +_AD.oneofs_by_name['ad_data'].fields.append( + _AD.fields_by_name['shopping_comparison_listing_ad']) +_AD.fields_by_name['shopping_comparison_listing_ad'].containing_oneof = _AD.oneofs_by_name['ad_data'] +DESCRIPTOR.message_types_by_name['Ad'] = _AD +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +Ad = _reflection.GeneratedProtocolMessageType('Ad', (_message.Message,), dict( + DESCRIPTOR = _AD, + __module__ = 'google.ads.googleads_v4.proto.resources.ad_pb2' + , + __doc__ = """An ad. + + + Attributes: + resource_name: + Immutable. The resource name of the ad. Ad resource names have + the form: ``customers/{customer_id}/ads/{ad_id}`` + id: + Output only. The ID of the ad. + final_urls: + The list of possible final URLs after all cross-domain + redirects for the ad. + final_app_urls: + A list of final app URLs that will be used on mobile if the + user has the specific app installed. + final_mobile_urls: + The list of possible final mobile URLs after all cross-domain + redirects for the ad. + tracking_url_template: + The URL template for constructing a tracking URL. + final_url_suffix: + The suffix to use when constructing a final URL. + url_custom_parameters: + The list of mappings that can be used to substitute custom + parameter tags in a ``tracking_url_template``, ``final_urls``, + or ``mobile_final_urls``. For mutates, please use url custom + parameter operations. + display_url: + The URL that appears in the ad description for some ad + formats. + type: + Output only. The type of ad. + added_by_google_ads: + Output only. Indicates if this ad was automatically added by + Google Ads and not by a user. For example, this could happen + when ads are automatically created as suggestions for new ads + based on knowledge of how existing ads are performing. + device_preference: + The device preference for the ad. You can only specify a + preference for mobile devices. When this preference is set the + ad will be preferred over other ads when being displayed on a + mobile device. The ad can still be displayed on other device + types, e.g. if no other ads are available. If unspecified (no + device preference), all devices are targeted. This is only + supported by some ad types. + url_collections: + Additional URLs for the ad that are tagged with a unique + identifier that can be referenced from other fields in the ad. + name: + Immutable. The name of the ad. This is only used to be able to + identify the ad. It does not need to be unique and does not + affect the served ad. + system_managed_resource_source: + Output only. If this ad is system managed, then this field + will indicate the source. This field is read-only. + ad_data: + Details pertinent to the ad type. Exactly one value must be + set. + text_ad: + Immutable. Details pertaining to a text ad. + expanded_text_ad: + Details pertaining to an expanded text ad. + call_only_ad: + Details pertaining to a call-only ad. + expanded_dynamic_search_ad: + Immutable. Details pertaining to an Expanded Dynamic Search + Ad. This type of ad has its headline, final URLs, and display + URL auto-generated at serving time according to domain name + specific information provided by + ``dynamic_search_ads_setting`` linked at the campaign level. + hotel_ad: + Details pertaining to a hotel ad. + shopping_smart_ad: + Details pertaining to a Smart Shopping ad. + shopping_product_ad: + Details pertaining to a Shopping product ad. + gmail_ad: + Immutable. Details pertaining to a Gmail ad. + image_ad: + Immutable. Details pertaining to an Image ad. + video_ad: + Details pertaining to a Video ad. + responsive_search_ad: + Details pertaining to a responsive search ad. + legacy_responsive_display_ad: + Details pertaining to a legacy responsive display ad. + app_ad: + Details pertaining to an app ad. + legacy_app_install_ad: + Immutable. Details pertaining to a legacy app install ad. + responsive_display_ad: + Details pertaining to a responsive display ad. + local_ad: + Details pertaining to a local ad. + display_upload_ad: + Details pertaining to a display upload ad. + app_engagement_ad: + Details pertaining to an app engagement ad. + shopping_comparison_listing_ad: + Details pertaining to a Shopping Comparison Listing ad. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.resources.Ad) + )) +_sym_db.RegisterMessage(Ad) + + +DESCRIPTOR._options = None +_AD.fields_by_name['resource_name']._options = None +_AD.fields_by_name['id']._options = None +_AD.fields_by_name['type']._options = None +_AD.fields_by_name['added_by_google_ads']._options = None +_AD.fields_by_name['name']._options = None +_AD.fields_by_name['system_managed_resource_source']._options = None +_AD.fields_by_name['text_ad']._options = None +_AD.fields_by_name['expanded_dynamic_search_ad']._options = None +_AD.fields_by_name['gmail_ad']._options = None +_AD.fields_by_name['image_ad']._options = None +_AD.fields_by_name['legacy_app_install_ad']._options = None +_AD._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/resources/dynamic_search_ads_search_term_view_pb2_grpc.py b/google/ads/google_ads/v4/proto/resources/ad_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/resources/dynamic_search_ads_search_term_view_pb2_grpc.py rename to google/ads/google_ads/v4/proto/resources/ad_pb2_grpc.py diff --git a/google/ads/google_ads/v4/proto/resources/ad_schedule_view_pb2.py b/google/ads/google_ads/v4/proto/resources/ad_schedule_view_pb2.py new file mode 100644 index 000000000..d98fe9067 --- /dev/null +++ b/google/ads/google_ads/v4/proto/resources/ad_schedule_view_pb2.py @@ -0,0 +1,88 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/resources/ad_schedule_view.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/resources/ad_schedule_view.proto', + package='google.ads.googleads.v4.resources', + syntax='proto3', + serialized_options=_b('\n%com.google.ads.googleads.v4.resourcesB\023AdScheduleViewProtoP\001ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v4/resources;resources\242\002\003GAA\252\002!Google.Ads.GoogleAds.V4.Resources\312\002!Google\\Ads\\GoogleAds\\V4\\Resources\352\002%Google::Ads::GoogleAds::V4::Resources'), + serialized_pb=_b('\n>google/ads/googleads_v4/proto/resources/ad_schedule_view.proto\x12!google.ads.googleads.v4.resources\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1cgoogle/api/annotations.proto\"\xbf\x01\n\x0e\x41\x64ScheduleView\x12\x46\n\rresource_name\x18\x01 \x01(\tB/\xe0\x41\x03\xfa\x41)\n\'googleads.googleapis.com/AdScheduleView:e\xea\x41\x62\n\'googleads.googleapis.com/AdScheduleView\x12\x37\x63ustomers/{customer}/adScheduleViews/{ad_schedule_view}B\x80\x02\n%com.google.ads.googleads.v4.resourcesB\x13\x41\x64ScheduleViewProtoP\x01ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v4/resources;resources\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V4.Resources\xca\x02!Google\\Ads\\GoogleAds\\V4\\Resources\xea\x02%Google::Ads::GoogleAds::V4::Resourcesb\x06proto3') + , + dependencies=[google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_api_dot_resource__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + + +_ADSCHEDULEVIEW = _descriptor.Descriptor( + name='AdScheduleView', + full_name='google.ads.googleads.v4.resources.AdScheduleView', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.resources.AdScheduleView.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003\372A)\n\'googleads.googleapis.com/AdScheduleView'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=_b('\352Ab\n\'googleads.googleapis.com/AdScheduleView\0227customers/{customer}/adScheduleViews/{ad_schedule_view}'), + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=192, + serialized_end=383, +) + +DESCRIPTOR.message_types_by_name['AdScheduleView'] = _ADSCHEDULEVIEW +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +AdScheduleView = _reflection.GeneratedProtocolMessageType('AdScheduleView', (_message.Message,), dict( + DESCRIPTOR = _ADSCHEDULEVIEW, + __module__ = 'google.ads.googleads_v4.proto.resources.ad_schedule_view_pb2' + , + __doc__ = """An ad schedule view summarizes the performance of campaigns by + AdSchedule criteria. + + + Attributes: + resource_name: + Output only. The resource name of the ad schedule view. + AdSchedule view resource names have the form: ``customers/{cu + stomer_id}/adScheduleViews/{campaign_id}~{criterion_id}`` + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.resources.AdScheduleView) + )) +_sym_db.RegisterMessage(AdScheduleView) + + +DESCRIPTOR._options = None +_ADSCHEDULEVIEW.fields_by_name['resource_name']._options = None +_ADSCHEDULEVIEW._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/resources/expanded_landing_page_view_pb2_grpc.py b/google/ads/google_ads/v4/proto/resources/ad_schedule_view_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/resources/expanded_landing_page_view_pb2_grpc.py rename to google/ads/google_ads/v4/proto/resources/ad_schedule_view_pb2_grpc.py diff --git a/google/ads/google_ads/v4/proto/resources/age_range_view_pb2.py b/google/ads/google_ads/v4/proto/resources/age_range_view_pb2.py new file mode 100644 index 000000000..549fa3a52 --- /dev/null +++ b/google/ads/google_ads/v4/proto/resources/age_range_view_pb2.py @@ -0,0 +1,87 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/resources/age_range_view.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/resources/age_range_view.proto', + package='google.ads.googleads.v4.resources', + syntax='proto3', + serialized_options=_b('\n%com.google.ads.googleads.v4.resourcesB\021AgeRangeViewProtoP\001ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v4/resources;resources\242\002\003GAA\252\002!Google.Ads.GoogleAds.V4.Resources\312\002!Google\\Ads\\GoogleAds\\V4\\Resources\352\002%Google::Ads::GoogleAds::V4::Resources'), + serialized_pb=_b('\ngoogle/ads/googleads_v4/proto/resources/bidding_strategy.proto\x12!google.ads.googleads.v4.resources\x1a\x32google/ads/googleads_v4/proto/common/bidding.proto\x1a\x41google/ads/googleads_v4/proto/enums/bidding_strategy_status.proto\x1a?google/ads/googleads_v4/proto/enums/bidding_strategy_type.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1cgoogle/api/annotations.proto\"\xd4\x07\n\x0f\x42iddingStrategy\x12G\n\rresource_name\x18\x01 \x01(\tB0\xe0\x41\x05\xfa\x41*\n(googleads.googleapis.com/BiddingStrategy\x12,\n\x02id\x18\x03 \x01(\x0b\x32\x1b.google.protobuf.Int64ValueB\x03\xe0\x41\x03\x12*\n\x04name\x18\x04 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x63\n\x06status\x18\x0f \x01(\x0e\x32N.google.ads.googleads.v4.enums.BiddingStrategyStatusEnum.BiddingStrategyStatusB\x03\xe0\x41\x03\x12]\n\x04type\x18\x05 \x01(\x0e\x32J.google.ads.googleads.v4.enums.BiddingStrategyTypeEnum.BiddingStrategyTypeB\x03\xe0\x41\x03\x12\x38\n\x0e\x63\x61mpaign_count\x18\r \x01(\x0b\x32\x1b.google.protobuf.Int64ValueB\x03\xe0\x41\x03\x12\x44\n\x1anon_removed_campaign_count\x18\x0e \x01(\x0b\x32\x1b.google.protobuf.Int64ValueB\x03\xe0\x41\x03\x12\x43\n\x0c\x65nhanced_cpc\x18\x07 \x01(\x0b\x32+.google.ads.googleads.v4.common.EnhancedCpcH\x00\x12?\n\ntarget_cpa\x18\t \x01(\x0b\x32).google.ads.googleads.v4.common.TargetCpaH\x00\x12X\n\x17target_impression_share\x18\x30 \x01(\x0b\x32\x35.google.ads.googleads.v4.common.TargetImpressionShareH\x00\x12\x41\n\x0btarget_roas\x18\x0b \x01(\x0b\x32*.google.ads.googleads.v4.common.TargetRoasH\x00\x12\x43\n\x0ctarget_spend\x18\x0c \x01(\x0b\x32+.google.ads.googleads.v4.common.TargetSpendH\x00:h\xea\x41\x65\n(googleads.googleapis.com/BiddingStrategy\x12\x39\x63ustomers/{customer}/biddingStrategies/{bidding_strategy}B\x08\n\x06schemeB\x81\x02\n%com.google.ads.googleads.v4.resourcesB\x14\x42iddingStrategyProtoP\x01ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v4/resources;resources\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V4.Resources\xca\x02!Google\\Ads\\GoogleAds\\V4\\Resources\xea\x02%Google::Ads::GoogleAds::V4::Resourcesb\x06proto3') + , + dependencies=[google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_bidding__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_bidding__strategy__status__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_bidding__strategy__type__pb2.DESCRIPTOR,google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_api_dot_resource__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + + +_BIDDINGSTRATEGY = _descriptor.Descriptor( + name='BiddingStrategy', + full_name='google.ads.googleads.v4.resources.BiddingStrategy', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.resources.BiddingStrategy.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005\372A*\n(googleads.googleapis.com/BiddingStrategy'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='id', full_name='google.ads.googleads.v4.resources.BiddingStrategy.id', index=1, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='name', full_name='google.ads.googleads.v4.resources.BiddingStrategy.name', index=2, + number=4, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='status', full_name='google.ads.googleads.v4.resources.BiddingStrategy.status', index=3, + number=15, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='type', full_name='google.ads.googleads.v4.resources.BiddingStrategy.type', index=4, + number=5, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='campaign_count', full_name='google.ads.googleads.v4.resources.BiddingStrategy.campaign_count', index=5, + number=13, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='non_removed_campaign_count', full_name='google.ads.googleads.v4.resources.BiddingStrategy.non_removed_campaign_count', index=6, + number=14, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='enhanced_cpc', full_name='google.ads.googleads.v4.resources.BiddingStrategy.enhanced_cpc', index=7, + number=7, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='target_cpa', full_name='google.ads.googleads.v4.resources.BiddingStrategy.target_cpa', index=8, + number=9, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='target_impression_share', full_name='google.ads.googleads.v4.resources.BiddingStrategy.target_impression_share', index=9, + number=48, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='target_roas', full_name='google.ads.googleads.v4.resources.BiddingStrategy.target_roas', index=10, + number=11, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='target_spend', full_name='google.ads.googleads.v4.resources.BiddingStrategy.target_spend', index=11, + number=12, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=_b('\352Ae\n(googleads.googleapis.com/BiddingStrategy\0229customers/{customer}/biddingStrategies/{bidding_strategy}'), + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name='scheme', full_name='google.ads.googleads.v4.resources.BiddingStrategy.scheme', + index=0, containing_type=None, fields=[]), + ], + serialized_start=408, + serialized_end=1388, +) + +_BIDDINGSTRATEGY.fields_by_name['id'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_BIDDINGSTRATEGY.fields_by_name['name'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_BIDDINGSTRATEGY.fields_by_name['status'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_bidding__strategy__status__pb2._BIDDINGSTRATEGYSTATUSENUM_BIDDINGSTRATEGYSTATUS +_BIDDINGSTRATEGY.fields_by_name['type'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_bidding__strategy__type__pb2._BIDDINGSTRATEGYTYPEENUM_BIDDINGSTRATEGYTYPE +_BIDDINGSTRATEGY.fields_by_name['campaign_count'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_BIDDINGSTRATEGY.fields_by_name['non_removed_campaign_count'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_BIDDINGSTRATEGY.fields_by_name['enhanced_cpc'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_bidding__pb2._ENHANCEDCPC +_BIDDINGSTRATEGY.fields_by_name['target_cpa'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_bidding__pb2._TARGETCPA +_BIDDINGSTRATEGY.fields_by_name['target_impression_share'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_bidding__pb2._TARGETIMPRESSIONSHARE +_BIDDINGSTRATEGY.fields_by_name['target_roas'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_bidding__pb2._TARGETROAS +_BIDDINGSTRATEGY.fields_by_name['target_spend'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_bidding__pb2._TARGETSPEND +_BIDDINGSTRATEGY.oneofs_by_name['scheme'].fields.append( + _BIDDINGSTRATEGY.fields_by_name['enhanced_cpc']) +_BIDDINGSTRATEGY.fields_by_name['enhanced_cpc'].containing_oneof = _BIDDINGSTRATEGY.oneofs_by_name['scheme'] +_BIDDINGSTRATEGY.oneofs_by_name['scheme'].fields.append( + _BIDDINGSTRATEGY.fields_by_name['target_cpa']) +_BIDDINGSTRATEGY.fields_by_name['target_cpa'].containing_oneof = _BIDDINGSTRATEGY.oneofs_by_name['scheme'] +_BIDDINGSTRATEGY.oneofs_by_name['scheme'].fields.append( + _BIDDINGSTRATEGY.fields_by_name['target_impression_share']) +_BIDDINGSTRATEGY.fields_by_name['target_impression_share'].containing_oneof = _BIDDINGSTRATEGY.oneofs_by_name['scheme'] +_BIDDINGSTRATEGY.oneofs_by_name['scheme'].fields.append( + _BIDDINGSTRATEGY.fields_by_name['target_roas']) +_BIDDINGSTRATEGY.fields_by_name['target_roas'].containing_oneof = _BIDDINGSTRATEGY.oneofs_by_name['scheme'] +_BIDDINGSTRATEGY.oneofs_by_name['scheme'].fields.append( + _BIDDINGSTRATEGY.fields_by_name['target_spend']) +_BIDDINGSTRATEGY.fields_by_name['target_spend'].containing_oneof = _BIDDINGSTRATEGY.oneofs_by_name['scheme'] +DESCRIPTOR.message_types_by_name['BiddingStrategy'] = _BIDDINGSTRATEGY +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +BiddingStrategy = _reflection.GeneratedProtocolMessageType('BiddingStrategy', (_message.Message,), dict( + DESCRIPTOR = _BIDDINGSTRATEGY, + __module__ = 'google.ads.googleads_v4.proto.resources.bidding_strategy_pb2' + , + __doc__ = """A bidding strategy. + + + Attributes: + resource_name: + Immutable. The resource name of the bidding strategy. Bidding + strategy resource names have the form: ``customers/{customer_ + id}/biddingStrategies/{bidding_strategy_id}`` + id: + Output only. The ID of the bidding strategy. + name: + The name of the bidding strategy. All bidding strategies + within an account must be named distinctly. The length of + this string should be between 1 and 255, inclusive, in UTF-8 + bytes, (trimmed). + status: + Output only. The status of the bidding strategy. This field + is read-only. + type: + Output only. The type of the bidding strategy. Create a + bidding strategy by setting the bidding scheme. This field is + read-only. + campaign_count: + Output only. The number of campaigns attached to this bidding + strategy. This field is read-only. + non_removed_campaign_count: + Output only. The number of non-removed campaigns attached to + this bidding strategy. This field is read-only. + scheme: + The bidding scheme. Only one can be set. + enhanced_cpc: + A bidding strategy that raises bids for clicks that seem more + likely to lead to a conversion and lowers them for clicks + where they seem less likely. + target_cpa: + A bidding strategy that sets bids to help get as many + conversions as possible at the target cost-per-acquisition + (CPA) you set. + target_impression_share: + A bidding strategy that automatically optimizes towards a + desired percentage of impressions. + target_roas: + A bidding strategy that helps you maximize revenue while + averaging a specific target Return On Ad Spend (ROAS). + target_spend: + A bid strategy that sets your bids to help get as many clicks + as possible within your budget. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.resources.BiddingStrategy) + )) +_sym_db.RegisterMessage(BiddingStrategy) + + +DESCRIPTOR._options = None +_BIDDINGSTRATEGY.fields_by_name['resource_name']._options = None +_BIDDINGSTRATEGY.fields_by_name['id']._options = None +_BIDDINGSTRATEGY.fields_by_name['status']._options = None +_BIDDINGSTRATEGY.fields_by_name['type']._options = None +_BIDDINGSTRATEGY.fields_by_name['campaign_count']._options = None +_BIDDINGSTRATEGY.fields_by_name['non_removed_campaign_count']._options = None +_BIDDINGSTRATEGY._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/resources/feed_mapping_pb2_grpc.py b/google/ads/google_ads/v4/proto/resources/bidding_strategy_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/resources/feed_mapping_pb2_grpc.py rename to google/ads/google_ads/v4/proto/resources/bidding_strategy_pb2_grpc.py diff --git a/google/ads/google_ads/v4/proto/resources/billing_setup_pb2.py b/google/ads/google_ads/v4/proto/resources/billing_setup_pb2.py new file mode 100644 index 000000000..4792dcb7a --- /dev/null +++ b/google/ads/google_ads/v4/proto/resources/billing_setup_pb2.py @@ -0,0 +1,325 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/resources/billing_setup.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.ads.google_ads.v4.proto.enums import billing_setup_status_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_billing__setup__status__pb2 +from google.ads.google_ads.v4.proto.enums import time_type_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_time__type__pb2 +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 +from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/resources/billing_setup.proto', + package='google.ads.googleads.v4.resources', + syntax='proto3', + serialized_options=_b('\n%com.google.ads.googleads.v4.resourcesB\021BillingSetupProtoP\001ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v4/resources;resources\242\002\003GAA\252\002!Google.Ads.GoogleAds.V4.Resources\312\002!Google\\Ads\\GoogleAds\\V4\\Resources\352\002%Google::Ads::GoogleAds::V4::Resources'), + serialized_pb=_b('\n;google/ads/googleads_v4/proto/resources/billing_setup.proto\x12!google.ads.googleads.v4.resources\x1a>google/ads/googleads_v4/proto/enums/billing_setup_status.proto\x1a\x33google/ads/googleads_v4/proto/enums/time_type.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1cgoogle/api/annotations.proto\"\xb8\t\n\x0c\x42illingSetup\x12\x44\n\rresource_name\x18\x01 \x01(\tB-\xe0\x41\x05\xfa\x41\'\n%googleads.googleapis.com/BillingSetup\x12,\n\x02id\x18\x02 \x01(\x0b\x32\x1b.google.protobuf.Int64ValueB\x03\xe0\x41\x03\x12]\n\x06status\x18\x03 \x01(\x0e\x32H.google.ads.googleads.v4.enums.BillingSetupStatusEnum.BillingSetupStatusB\x03\xe0\x41\x03\x12h\n\x10payments_account\x18\x0b \x01(\x0b\x32\x1c.google.protobuf.StringValueB0\xe0\x41\x05\xfa\x41*\n(googleads.googleapis.com/PaymentsAccount\x12g\n\x15payments_account_info\x18\x0c \x01(\x0b\x32\x43.google.ads.googleads.v4.resources.BillingSetup.PaymentsAccountInfoB\x03\xe0\x41\x05\x12<\n\x0fstart_date_time\x18\t \x01(\x0b\x32\x1c.google.protobuf.StringValueB\x03\xe0\x41\x05H\x00\x12T\n\x0fstart_time_type\x18\n \x01(\x0e\x32\x34.google.ads.googleads.v4.enums.TimeTypeEnum.TimeTypeB\x03\xe0\x41\x05H\x00\x12:\n\rend_date_time\x18\r \x01(\x0b\x32\x1c.google.protobuf.StringValueB\x03\xe0\x41\x03H\x01\x12R\n\rend_time_type\x18\x0e \x01(\x0e\x32\x34.google.ads.googleads.v4.enums.TimeTypeEnum.TimeTypeB\x03\xe0\x41\x03H\x01\x1a\xe3\x02\n\x13PaymentsAccountInfo\x12>\n\x13payments_account_id\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValueB\x03\xe0\x41\x03\x12@\n\x15payments_account_name\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValueB\x03\xe0\x41\x05\x12>\n\x13payments_profile_id\x18\x03 \x01(\x0b\x32\x1c.google.protobuf.StringValueB\x03\xe0\x41\x05\x12@\n\x15payments_profile_name\x18\x04 \x01(\x0b\x32\x1c.google.protobuf.StringValueB\x03\xe0\x41\x03\x12H\n\x1dsecondary_payments_profile_id\x18\x05 \x01(\x0b\x32\x1c.google.protobuf.StringValueB\x03\xe0\x41\x03:^\xea\x41[\n%googleads.googleapis.com/BillingSetup\x12\x32\x63ustomers/{customer}/billingSetups/{billing_setup}B\x0c\n\nstart_timeB\n\n\x08\x65nd_timeB\xfe\x01\n%com.google.ads.googleads.v4.resourcesB\x11\x42illingSetupProtoP\x01ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v4/resources;resources\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V4.Resources\xca\x02!Google\\Ads\\GoogleAds\\V4\\Resources\xea\x02%Google::Ads::GoogleAds::V4::Resourcesb\x06proto3') + , + dependencies=[google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_billing__setup__status__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_time__type__pb2.DESCRIPTOR,google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_api_dot_resource__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + + +_BILLINGSETUP_PAYMENTSACCOUNTINFO = _descriptor.Descriptor( + name='PaymentsAccountInfo', + full_name='google.ads.googleads.v4.resources.BillingSetup.PaymentsAccountInfo', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='payments_account_id', full_name='google.ads.googleads.v4.resources.BillingSetup.PaymentsAccountInfo.payments_account_id', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='payments_account_name', full_name='google.ads.googleads.v4.resources.BillingSetup.PaymentsAccountInfo.payments_account_name', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='payments_profile_id', full_name='google.ads.googleads.v4.resources.BillingSetup.PaymentsAccountInfo.payments_profile_id', index=2, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='payments_profile_name', full_name='google.ads.googleads.v4.resources.BillingSetup.PaymentsAccountInfo.payments_profile_name', index=3, + number=4, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='secondary_payments_profile_id', full_name='google.ads.googleads.v4.resources.BillingSetup.PaymentsAccountInfo.secondary_payments_profile_id', index=4, + number=5, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1069, + serialized_end=1424, +) + +_BILLINGSETUP = _descriptor.Descriptor( + name='BillingSetup', + full_name='google.ads.googleads.v4.resources.BillingSetup', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.resources.BillingSetup.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005\372A\'\n%googleads.googleapis.com/BillingSetup'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='id', full_name='google.ads.googleads.v4.resources.BillingSetup.id', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='status', full_name='google.ads.googleads.v4.resources.BillingSetup.status', index=2, + number=3, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='payments_account', full_name='google.ads.googleads.v4.resources.BillingSetup.payments_account', index=3, + number=11, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005\372A*\n(googleads.googleapis.com/PaymentsAccount'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='payments_account_info', full_name='google.ads.googleads.v4.resources.BillingSetup.payments_account_info', index=4, + number=12, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='start_date_time', full_name='google.ads.googleads.v4.resources.BillingSetup.start_date_time', index=5, + number=9, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='start_time_type', full_name='google.ads.googleads.v4.resources.BillingSetup.start_time_type', index=6, + number=10, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='end_date_time', full_name='google.ads.googleads.v4.resources.BillingSetup.end_date_time', index=7, + number=13, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='end_time_type', full_name='google.ads.googleads.v4.resources.BillingSetup.end_time_type', index=8, + number=14, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[_BILLINGSETUP_PAYMENTSACCOUNTINFO, ], + enum_types=[ + ], + serialized_options=_b('\352A[\n%googleads.googleapis.com/BillingSetup\0222customers/{customer}/billingSetups/{billing_setup}'), + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name='start_time', full_name='google.ads.googleads.v4.resources.BillingSetup.start_time', + index=0, containing_type=None, fields=[]), + _descriptor.OneofDescriptor( + name='end_time', full_name='google.ads.googleads.v4.resources.BillingSetup.end_time', + index=1, containing_type=None, fields=[]), + ], + serialized_start=338, + serialized_end=1546, +) + +_BILLINGSETUP_PAYMENTSACCOUNTINFO.fields_by_name['payments_account_id'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_BILLINGSETUP_PAYMENTSACCOUNTINFO.fields_by_name['payments_account_name'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_BILLINGSETUP_PAYMENTSACCOUNTINFO.fields_by_name['payments_profile_id'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_BILLINGSETUP_PAYMENTSACCOUNTINFO.fields_by_name['payments_profile_name'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_BILLINGSETUP_PAYMENTSACCOUNTINFO.fields_by_name['secondary_payments_profile_id'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_BILLINGSETUP_PAYMENTSACCOUNTINFO.containing_type = _BILLINGSETUP +_BILLINGSETUP.fields_by_name['id'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_BILLINGSETUP.fields_by_name['status'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_billing__setup__status__pb2._BILLINGSETUPSTATUSENUM_BILLINGSETUPSTATUS +_BILLINGSETUP.fields_by_name['payments_account'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_BILLINGSETUP.fields_by_name['payments_account_info'].message_type = _BILLINGSETUP_PAYMENTSACCOUNTINFO +_BILLINGSETUP.fields_by_name['start_date_time'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_BILLINGSETUP.fields_by_name['start_time_type'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_time__type__pb2._TIMETYPEENUM_TIMETYPE +_BILLINGSETUP.fields_by_name['end_date_time'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_BILLINGSETUP.fields_by_name['end_time_type'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_time__type__pb2._TIMETYPEENUM_TIMETYPE +_BILLINGSETUP.oneofs_by_name['start_time'].fields.append( + _BILLINGSETUP.fields_by_name['start_date_time']) +_BILLINGSETUP.fields_by_name['start_date_time'].containing_oneof = _BILLINGSETUP.oneofs_by_name['start_time'] +_BILLINGSETUP.oneofs_by_name['start_time'].fields.append( + _BILLINGSETUP.fields_by_name['start_time_type']) +_BILLINGSETUP.fields_by_name['start_time_type'].containing_oneof = _BILLINGSETUP.oneofs_by_name['start_time'] +_BILLINGSETUP.oneofs_by_name['end_time'].fields.append( + _BILLINGSETUP.fields_by_name['end_date_time']) +_BILLINGSETUP.fields_by_name['end_date_time'].containing_oneof = _BILLINGSETUP.oneofs_by_name['end_time'] +_BILLINGSETUP.oneofs_by_name['end_time'].fields.append( + _BILLINGSETUP.fields_by_name['end_time_type']) +_BILLINGSETUP.fields_by_name['end_time_type'].containing_oneof = _BILLINGSETUP.oneofs_by_name['end_time'] +DESCRIPTOR.message_types_by_name['BillingSetup'] = _BILLINGSETUP +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +BillingSetup = _reflection.GeneratedProtocolMessageType('BillingSetup', (_message.Message,), dict( + + PaymentsAccountInfo = _reflection.GeneratedProtocolMessageType('PaymentsAccountInfo', (_message.Message,), dict( + DESCRIPTOR = _BILLINGSETUP_PAYMENTSACCOUNTINFO, + __module__ = 'google.ads.googleads_v4.proto.resources.billing_setup_pb2' + , + __doc__ = """Container of payments account information for this billing. + + + Attributes: + payments_account_id: + Output only. A 16 digit id used to identify the payments + account associated with the billing setup. This must be + passed as a string with dashes, e.g. "1234-5678-9012-3456". + payments_account_name: + Immutable. The name of the payments account associated with + the billing setup. This enables the user to specify a + meaningful name for a payments account to aid in reconciling + monthly invoices. This name will be printed in the monthly + invoices. + payments_profile_id: + Immutable. A 12 digit id used to identify the payments profile + associated with the billing setup. This must be passed in as + a string with dashes, e.g. "1234-5678-9012". + payments_profile_name: + Output only. The name of the payments profile associated with + the billing setup. + secondary_payments_profile_id: + Output only. A secondary payments profile id present in + uncommon situations, e.g. when a sequential liability + agreement has been arranged. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.resources.BillingSetup.PaymentsAccountInfo) + )) + , + DESCRIPTOR = _BILLINGSETUP, + __module__ = 'google.ads.googleads_v4.proto.resources.billing_setup_pb2' + , + __doc__ = """A billing setup, which associates a payments account and an advertiser. + A billing setup is specific to one advertiser. + + + Attributes: + resource_name: + Immutable. The resource name of the billing setup. + BillingSetup resource names have the form: + ``customers/{customer_id}/billingSetups/{billing_setup_id}`` + id: + Output only. The ID of the billing setup. + status: + Output only. The status of the billing setup. + payments_account: + Immutable. The resource name of the payments account + associated with this billing setup. Payments resource names + have the form: ``customers/{customer_id}/paymentsAccounts/{pa + yments_account_id}`` When setting up billing, this is used to + signup with an existing payments account (and then + payments\_account\_info should not be set). When getting a + billing setup, this and payments\_account\_info will be + populated. + payments_account_info: + Immutable. The payments account information associated with + this billing setup. When setting up billing, this is used to + signup with a new payments account (and then payments\_account + should not be set). When getting a billing setup, this and + payments\_account will be populated. + start_time: + When creating a new billing setup, this is when the setup + should take effect. NOW is the only acceptable start time if + the customer doesn't have any approved setups. When fetching + an existing billing setup, this is the requested start time. + However, if the setup was approved (see status) after the + requested start time, then this is the approval time. + start_date_time: + Immutable. The start date time in yyyy-MM-dd or yyyy-MM-dd + HH:mm:ss format. Only a future time is allowed. + start_time_type: + Immutable. The start time as a type. Only NOW is allowed. + end_time: + When the billing setup ends / ended. This is either FOREVER or + the start time of the next scheduled billing setup. + end_date_time: + Output only. The end date time in yyyy-MM-dd or yyyy-MM-dd + HH:mm:ss format. + end_time_type: + Output only. The end time as a type. The only possible value + is FOREVER. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.resources.BillingSetup) + )) +_sym_db.RegisterMessage(BillingSetup) +_sym_db.RegisterMessage(BillingSetup.PaymentsAccountInfo) + + +DESCRIPTOR._options = None +_BILLINGSETUP_PAYMENTSACCOUNTINFO.fields_by_name['payments_account_id']._options = None +_BILLINGSETUP_PAYMENTSACCOUNTINFO.fields_by_name['payments_account_name']._options = None +_BILLINGSETUP_PAYMENTSACCOUNTINFO.fields_by_name['payments_profile_id']._options = None +_BILLINGSETUP_PAYMENTSACCOUNTINFO.fields_by_name['payments_profile_name']._options = None +_BILLINGSETUP_PAYMENTSACCOUNTINFO.fields_by_name['secondary_payments_profile_id']._options = None +_BILLINGSETUP.fields_by_name['resource_name']._options = None +_BILLINGSETUP.fields_by_name['id']._options = None +_BILLINGSETUP.fields_by_name['status']._options = None +_BILLINGSETUP.fields_by_name['payments_account']._options = None +_BILLINGSETUP.fields_by_name['payments_account_info']._options = None +_BILLINGSETUP.fields_by_name['start_date_time']._options = None +_BILLINGSETUP.fields_by_name['start_time_type']._options = None +_BILLINGSETUP.fields_by_name['end_date_time']._options = None +_BILLINGSETUP.fields_by_name['end_time_type']._options = None +_BILLINGSETUP._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/resources/feed_pb2_grpc.py b/google/ads/google_ads/v4/proto/resources/billing_setup_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/resources/feed_pb2_grpc.py rename to google/ads/google_ads/v4/proto/resources/billing_setup_pb2_grpc.py diff --git a/google/ads/google_ads/v4/proto/resources/campaign_audience_view_pb2.py b/google/ads/google_ads/v4/proto/resources/campaign_audience_view_pb2.py new file mode 100644 index 000000000..e448683fc --- /dev/null +++ b/google/ads/google_ads/v4/proto/resources/campaign_audience_view_pb2.py @@ -0,0 +1,92 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/resources/campaign_audience_view.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/resources/campaign_audience_view.proto', + package='google.ads.googleads.v4.resources', + syntax='proto3', + serialized_options=_b('\n%com.google.ads.googleads.v4.resourcesB\031CampaignAudienceViewProtoP\001ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v4/resources;resources\242\002\003GAA\252\002!Google.Ads.GoogleAds.V4.Resources\312\002!Google\\Ads\\GoogleAds\\V4\\Resources\352\002%Google::Ads::GoogleAds::V4::Resources'), + serialized_pb=_b('\nDgoogle/ads/googleads_v4/proto/resources/campaign_audience_view.proto\x12!google.ads.googleads.v4.resources\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1cgoogle/api/annotations.proto\"\xdd\x01\n\x14\x43\x61mpaignAudienceView\x12L\n\rresource_name\x18\x01 \x01(\tB5\xe0\x41\x03\xfa\x41/\n-googleads.googleapis.com/CampaignAudienceView:w\xea\x41t\n-googleads.googleapis.com/CampaignAudienceView\x12\x43\x63ustomers/{customer}/campaignAudienceViews/{campaign_audience_view}B\x86\x02\n%com.google.ads.googleads.v4.resourcesB\x19\x43\x61mpaignAudienceViewProtoP\x01ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v4/resources;resources\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V4.Resources\xca\x02!Google\\Ads\\GoogleAds\\V4\\Resources\xea\x02%Google::Ads::GoogleAds::V4::Resourcesb\x06proto3') + , + dependencies=[google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_api_dot_resource__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + + +_CAMPAIGNAUDIENCEVIEW = _descriptor.Descriptor( + name='CampaignAudienceView', + full_name='google.ads.googleads.v4.resources.CampaignAudienceView', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.resources.CampaignAudienceView.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003\372A/\n-googleads.googleapis.com/CampaignAudienceView'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=_b('\352At\n-googleads.googleapis.com/CampaignAudienceView\022Ccustomers/{customer}/campaignAudienceViews/{campaign_audience_view}'), + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=198, + serialized_end=419, +) + +DESCRIPTOR.message_types_by_name['CampaignAudienceView'] = _CAMPAIGNAUDIENCEVIEW +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +CampaignAudienceView = _reflection.GeneratedProtocolMessageType('CampaignAudienceView', (_message.Message,), dict( + DESCRIPTOR = _CAMPAIGNAUDIENCEVIEW, + __module__ = 'google.ads.googleads_v4.proto.resources.campaign_audience_view_pb2' + , + __doc__ = """A campaign audience view. Includes performance data from interests and + remarketing lists for Display Network and YouTube Network ads, and + remarketing lists for search ads (RLSA), aggregated by campaign and + audience criterion. This view only includes audiences attached at the + campaign level. + + + Attributes: + resource_name: + Output only. The resource name of the campaign audience view. + Campaign audience view resource names have the form: ``custom + ers/{customer_id}/campaignAudienceViews/{campaign_id}~{criteri + on_id}`` + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.resources.CampaignAudienceView) + )) +_sym_db.RegisterMessage(CampaignAudienceView) + + +DESCRIPTOR._options = None +_CAMPAIGNAUDIENCEVIEW.fields_by_name['resource_name']._options = None +_CAMPAIGNAUDIENCEVIEW._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/resources/feed_placeholder_view_pb2_grpc.py b/google/ads/google_ads/v4/proto/resources/campaign_audience_view_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/resources/feed_placeholder_view_pb2_grpc.py rename to google/ads/google_ads/v4/proto/resources/campaign_audience_view_pb2_grpc.py diff --git a/google/ads/google_ads/v4/proto/resources/campaign_bid_modifier_pb2.py b/google/ads/google_ads/v4/proto/resources/campaign_bid_modifier_pb2.py new file mode 100644 index 000000000..4711c6da6 --- /dev/null +++ b/google/ads/google_ads/v4/proto/resources/campaign_bid_modifier_pb2.py @@ -0,0 +1,143 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/resources/campaign_bid_modifier.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.ads.google_ads.v4.proto.common import criteria_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_criteria__pb2 +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 +from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/resources/campaign_bid_modifier.proto', + package='google.ads.googleads.v4.resources', + syntax='proto3', + serialized_options=_b('\n%com.google.ads.googleads.v4.resourcesB\030CampaignBidModifierProtoP\001ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v4/resources;resources\242\002\003GAA\252\002!Google.Ads.GoogleAds.V4.Resources\312\002!Google\\Ads\\GoogleAds\\V4\\Resources\352\002%Google::Ads::GoogleAds::V4::Resources'), + serialized_pb=_b('\nCgoogle/ads/googleads_v4/proto/resources/campaign_bid_modifier.proto\x12!google.ads.googleads.v4.resources\x1a\x33google/ads/googleads_v4/proto/common/criteria.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1cgoogle/api/annotations.proto\"\x82\x04\n\x13\x43\x61mpaignBidModifier\x12K\n\rresource_name\x18\x01 \x01(\tB4\xe0\x41\x05\xfa\x41.\n,googleads.googleapis.com/CampaignBidModifier\x12Y\n\x08\x63\x61mpaign\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValueB)\xe0\x41\x03\xfa\x41#\n!googleads.googleapis.com/Campaign\x12\x36\n\x0c\x63riterion_id\x18\x03 \x01(\x0b\x32\x1b.google.protobuf.Int64ValueB\x03\xe0\x41\x03\x12\x32\n\x0c\x62id_modifier\x18\x04 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12T\n\x10interaction_type\x18\x05 \x01(\x0b\x32\x33.google.ads.googleads.v4.common.InteractionTypeInfoB\x03\xe0\x41\x05H\x00:t\xea\x41q\n,googleads.googleapis.com/CampaignBidModifier\x12\x41\x63ustomers/{customer}/campaignBidModifiers/{campaign_bid_modifier}B\x0b\n\tcriterionB\x85\x02\n%com.google.ads.googleads.v4.resourcesB\x18\x43\x61mpaignBidModifierProtoP\x01ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v4/resources;resources\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V4.Resources\xca\x02!Google\\Ads\\GoogleAds\\V4\\Resources\xea\x02%Google::Ads::GoogleAds::V4::Resourcesb\x06proto3') + , + dependencies=[google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_criteria__pb2.DESCRIPTOR,google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_api_dot_resource__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + + +_CAMPAIGNBIDMODIFIER = _descriptor.Descriptor( + name='CampaignBidModifier', + full_name='google.ads.googleads.v4.resources.CampaignBidModifier', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.resources.CampaignBidModifier.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005\372A.\n,googleads.googleapis.com/CampaignBidModifier'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='campaign', full_name='google.ads.googleads.v4.resources.CampaignBidModifier.campaign', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003\372A#\n!googleads.googleapis.com/Campaign'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='criterion_id', full_name='google.ads.googleads.v4.resources.CampaignBidModifier.criterion_id', index=2, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='bid_modifier', full_name='google.ads.googleads.v4.resources.CampaignBidModifier.bid_modifier', index=3, + number=4, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='interaction_type', full_name='google.ads.googleads.v4.resources.CampaignBidModifier.interaction_type', index=4, + number=5, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=_b('\352Aq\n,googleads.googleapis.com/CampaignBidModifier\022Acustomers/{customer}/campaignBidModifiers/{campaign_bid_modifier}'), + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name='criterion', full_name='google.ads.googleads.v4.resources.CampaignBidModifier.criterion', + index=0, containing_type=None, fields=[]), + ], + serialized_start=282, + serialized_end=796, +) + +_CAMPAIGNBIDMODIFIER.fields_by_name['campaign'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_CAMPAIGNBIDMODIFIER.fields_by_name['criterion_id'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_CAMPAIGNBIDMODIFIER.fields_by_name['bid_modifier'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE +_CAMPAIGNBIDMODIFIER.fields_by_name['interaction_type'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_criteria__pb2._INTERACTIONTYPEINFO +_CAMPAIGNBIDMODIFIER.oneofs_by_name['criterion'].fields.append( + _CAMPAIGNBIDMODIFIER.fields_by_name['interaction_type']) +_CAMPAIGNBIDMODIFIER.fields_by_name['interaction_type'].containing_oneof = _CAMPAIGNBIDMODIFIER.oneofs_by_name['criterion'] +DESCRIPTOR.message_types_by_name['CampaignBidModifier'] = _CAMPAIGNBIDMODIFIER +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +CampaignBidModifier = _reflection.GeneratedProtocolMessageType('CampaignBidModifier', (_message.Message,), dict( + DESCRIPTOR = _CAMPAIGNBIDMODIFIER, + __module__ = 'google.ads.googleads_v4.proto.resources.campaign_bid_modifier_pb2' + , + __doc__ = """Represents a bid-modifiable only criterion at the campaign level. + + + Attributes: + resource_name: + Immutable. The resource name of the campaign bid modifier. + Campaign bid modifier resource names have the form: ``custome + rs/{customer_id}/campaignBidModifiers/{campaign_id}~{criterion + _id}`` + campaign: + Output only. The campaign to which this criterion belongs. + criterion_id: + Output only. The ID of the criterion to bid modify. This + field is ignored for mutates. + bid_modifier: + The modifier for the bid when the criterion matches. + criterion: + The criterion of this campaign bid modifier. + interaction_type: + Immutable. Criterion for interaction type. Only supported for + search campaigns. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.resources.CampaignBidModifier) + )) +_sym_db.RegisterMessage(CampaignBidModifier) + + +DESCRIPTOR._options = None +_CAMPAIGNBIDMODIFIER.fields_by_name['resource_name']._options = None +_CAMPAIGNBIDMODIFIER.fields_by_name['campaign']._options = None +_CAMPAIGNBIDMODIFIER.fields_by_name['criterion_id']._options = None +_CAMPAIGNBIDMODIFIER.fields_by_name['interaction_type']._options = None +_CAMPAIGNBIDMODIFIER._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/resources/gender_view_pb2_grpc.py b/google/ads/google_ads/v4/proto/resources/campaign_bid_modifier_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/resources/gender_view_pb2_grpc.py rename to google/ads/google_ads/v4/proto/resources/campaign_bid_modifier_pb2_grpc.py diff --git a/google/ads/google_ads/v4/proto/resources/campaign_budget_pb2.py b/google/ads/google_ads/v4/proto/resources/campaign_budget_pb2.py new file mode 100644 index 000000000..579c91add --- /dev/null +++ b/google/ads/google_ads/v4/proto/resources/campaign_budget_pb2.py @@ -0,0 +1,302 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/resources/campaign_budget.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.ads.google_ads.v4.proto.enums import budget_delivery_method_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_budget__delivery__method__pb2 +from google.ads.google_ads.v4.proto.enums import budget_period_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_budget__period__pb2 +from google.ads.google_ads.v4.proto.enums import budget_status_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_budget__status__pb2 +from google.ads.google_ads.v4.proto.enums import budget_type_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_budget__type__pb2 +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 +from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/resources/campaign_budget.proto', + package='google.ads.googleads.v4.resources', + syntax='proto3', + serialized_options=_b('\n%com.google.ads.googleads.v4.resourcesB\023CampaignBudgetProtoP\001ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v4/resources;resources\242\002\003GAA\252\002!Google.Ads.GoogleAds.V4.Resources\312\002!Google\\Ads\\GoogleAds\\V4\\Resources\352\002%Google::Ads::GoogleAds::V4::Resources'), + serialized_pb=_b('\n=google/ads/googleads_v4/proto/resources/campaign_budget.proto\x12!google.ads.googleads.v4.resources\x1a@google/ads/googleads_v4/proto/enums/budget_delivery_method.proto\x1a\x37google/ads/googleads_v4/proto/enums/budget_period.proto\x1a\x37google/ads/googleads_v4/proto/enums/budget_status.proto\x1a\x35google/ads/googleads_v4/proto/enums/budget_type.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1cgoogle/api/annotations.proto\"\xdd\n\n\x0e\x43\x61mpaignBudget\x12\x46\n\rresource_name\x18\x01 \x01(\tB/\xe0\x41\x05\xfa\x41)\n\'googleads.googleapis.com/CampaignBudget\x12,\n\x02id\x18\x03 \x01(\x0b\x32\x1b.google.protobuf.Int64ValueB\x03\xe0\x41\x03\x12*\n\x04name\x18\x04 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x32\n\ramount_micros\x18\x05 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x38\n\x13total_amount_micros\x18\n \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12Q\n\x06status\x18\x06 \x01(\x0e\x32<.google.ads.googleads.v4.enums.BudgetStatusEnum.BudgetStatusB\x03\xe0\x41\x03\x12\x65\n\x0f\x64\x65livery_method\x18\x07 \x01(\x0e\x32L.google.ads.googleads.v4.enums.BudgetDeliveryMethodEnum.BudgetDeliveryMethod\x12\x35\n\x11\x65xplicitly_shared\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.BoolValue\x12\x39\n\x0freference_count\x18\t \x01(\x0b\x32\x1b.google.protobuf.Int64ValueB\x03\xe0\x41\x03\x12?\n\x16has_recommended_budget\x18\x0b \x01(\x0b\x32\x1a.google.protobuf.BoolValueB\x03\xe0\x41\x03\x12J\n recommended_budget_amount_micros\x18\x0c \x01(\x0b\x32\x1b.google.protobuf.Int64ValueB\x03\xe0\x41\x03\x12Q\n\x06period\x18\r \x01(\x0e\x32<.google.ads.googleads.v4.enums.BudgetPeriodEnum.BudgetPeriodB\x03\xe0\x41\x05\x12[\n1recommended_budget_estimated_change_weekly_clicks\x18\x0e \x01(\x0b\x32\x1b.google.protobuf.Int64ValueB\x03\xe0\x41\x03\x12`\n6recommended_budget_estimated_change_weekly_cost_micros\x18\x0f \x01(\x0b\x32\x1b.google.protobuf.Int64ValueB\x03\xe0\x41\x03\x12\x61\n7recommended_budget_estimated_change_weekly_interactions\x18\x10 \x01(\x0b\x32\x1b.google.protobuf.Int64ValueB\x03\xe0\x41\x03\x12Z\n0recommended_budget_estimated_change_weekly_views\x18\x11 \x01(\x0b\x32\x1b.google.protobuf.Int64ValueB\x03\xe0\x41\x03\x12K\n\x04type\x18\x12 \x01(\x0e\x32\x38.google.ads.googleads.v4.enums.BudgetTypeEnum.BudgetTypeB\x03\xe0\x41\x05:d\xea\x41\x61\n\'googleads.googleapis.com/CampaignBudget\x12\x36\x63ustomers/{customer}/campaignBudgets/{campaign_budget}B\x80\x02\n%com.google.ads.googleads.v4.resourcesB\x13\x43\x61mpaignBudgetProtoP\x01ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v4/resources;resources\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V4.Resources\xca\x02!Google\\Ads\\GoogleAds\\V4\\Resources\xea\x02%Google::Ads::GoogleAds::V4::Resourcesb\x06proto3') + , + dependencies=[google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_budget__delivery__method__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_budget__period__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_budget__status__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_budget__type__pb2.DESCRIPTOR,google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_api_dot_resource__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + + +_CAMPAIGNBUDGET = _descriptor.Descriptor( + name='CampaignBudget', + full_name='google.ads.googleads.v4.resources.CampaignBudget', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.resources.CampaignBudget.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005\372A)\n\'googleads.googleapis.com/CampaignBudget'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='id', full_name='google.ads.googleads.v4.resources.CampaignBudget.id', index=1, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='name', full_name='google.ads.googleads.v4.resources.CampaignBudget.name', index=2, + number=4, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='amount_micros', full_name='google.ads.googleads.v4.resources.CampaignBudget.amount_micros', index=3, + number=5, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='total_amount_micros', full_name='google.ads.googleads.v4.resources.CampaignBudget.total_amount_micros', index=4, + number=10, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='status', full_name='google.ads.googleads.v4.resources.CampaignBudget.status', index=5, + number=6, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='delivery_method', full_name='google.ads.googleads.v4.resources.CampaignBudget.delivery_method', index=6, + number=7, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='explicitly_shared', full_name='google.ads.googleads.v4.resources.CampaignBudget.explicitly_shared', index=7, + number=8, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='reference_count', full_name='google.ads.googleads.v4.resources.CampaignBudget.reference_count', index=8, + number=9, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='has_recommended_budget', full_name='google.ads.googleads.v4.resources.CampaignBudget.has_recommended_budget', index=9, + number=11, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='recommended_budget_amount_micros', full_name='google.ads.googleads.v4.resources.CampaignBudget.recommended_budget_amount_micros', index=10, + number=12, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='period', full_name='google.ads.googleads.v4.resources.CampaignBudget.period', index=11, + number=13, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='recommended_budget_estimated_change_weekly_clicks', full_name='google.ads.googleads.v4.resources.CampaignBudget.recommended_budget_estimated_change_weekly_clicks', index=12, + number=14, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='recommended_budget_estimated_change_weekly_cost_micros', full_name='google.ads.googleads.v4.resources.CampaignBudget.recommended_budget_estimated_change_weekly_cost_micros', index=13, + number=15, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='recommended_budget_estimated_change_weekly_interactions', full_name='google.ads.googleads.v4.resources.CampaignBudget.recommended_budget_estimated_change_weekly_interactions', index=14, + number=16, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='recommended_budget_estimated_change_weekly_views', full_name='google.ads.googleads.v4.resources.CampaignBudget.recommended_budget_estimated_change_weekly_views', index=15, + number=17, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='type', full_name='google.ads.googleads.v4.resources.CampaignBudget.type', index=16, + number=18, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=_b('\352Aa\n\'googleads.googleapis.com/CampaignBudget\0226customers/{customer}/campaignBudgets/{campaign_budget}'), + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=458, + serialized_end=1831, +) + +_CAMPAIGNBUDGET.fields_by_name['id'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_CAMPAIGNBUDGET.fields_by_name['name'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_CAMPAIGNBUDGET.fields_by_name['amount_micros'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_CAMPAIGNBUDGET.fields_by_name['total_amount_micros'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_CAMPAIGNBUDGET.fields_by_name['status'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_budget__status__pb2._BUDGETSTATUSENUM_BUDGETSTATUS +_CAMPAIGNBUDGET.fields_by_name['delivery_method'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_budget__delivery__method__pb2._BUDGETDELIVERYMETHODENUM_BUDGETDELIVERYMETHOD +_CAMPAIGNBUDGET.fields_by_name['explicitly_shared'].message_type = google_dot_protobuf_dot_wrappers__pb2._BOOLVALUE +_CAMPAIGNBUDGET.fields_by_name['reference_count'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_CAMPAIGNBUDGET.fields_by_name['has_recommended_budget'].message_type = google_dot_protobuf_dot_wrappers__pb2._BOOLVALUE +_CAMPAIGNBUDGET.fields_by_name['recommended_budget_amount_micros'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_CAMPAIGNBUDGET.fields_by_name['period'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_budget__period__pb2._BUDGETPERIODENUM_BUDGETPERIOD +_CAMPAIGNBUDGET.fields_by_name['recommended_budget_estimated_change_weekly_clicks'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_CAMPAIGNBUDGET.fields_by_name['recommended_budget_estimated_change_weekly_cost_micros'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_CAMPAIGNBUDGET.fields_by_name['recommended_budget_estimated_change_weekly_interactions'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_CAMPAIGNBUDGET.fields_by_name['recommended_budget_estimated_change_weekly_views'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_CAMPAIGNBUDGET.fields_by_name['type'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_budget__type__pb2._BUDGETTYPEENUM_BUDGETTYPE +DESCRIPTOR.message_types_by_name['CampaignBudget'] = _CAMPAIGNBUDGET +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +CampaignBudget = _reflection.GeneratedProtocolMessageType('CampaignBudget', (_message.Message,), dict( + DESCRIPTOR = _CAMPAIGNBUDGET, + __module__ = 'google.ads.googleads_v4.proto.resources.campaign_budget_pb2' + , + __doc__ = """A campaign budget. + + + Attributes: + resource_name: + Immutable. The resource name of the campaign budget. Campaign + budget resource names have the form: + ``customers/{customer_id}/campaignBudgets/{budget_id}`` + id: + Output only. The ID of the campaign budget. A campaign budget + is created using the CampaignBudgetService create operation + and is assigned a budget ID. A budget ID can be shared across + different campaigns; the system will then allocate the + campaign budget among different campaigns to get optimum + results. + name: + The name of the campaign budget. When creating a campaign + budget through CampaignBudgetService, every explicitly shared + campaign budget must have a non-null, non-empty name. Campaign + budgets that are not explicitly shared derive their name from + the attached campaign's name. The length of this string must + be between 1 and 255, inclusive, in UTF-8 bytes, (trimmed). + amount_micros: + The amount of the budget, in the local currency for the + account. Amount is specified in micros, where one million is + equivalent to one currency unit. Monthly spend is capped at + 30.4 times this amount. + total_amount_micros: + The lifetime amount of the budget, in the local currency for + the account. Amount is specified in micros, where one million + is equivalent to one currency unit. + status: + Output only. The status of this campaign budget. This field is + read-only. + delivery_method: + The delivery method that determines the rate at which the + campaign budget is spent. Defaults to STANDARD if unspecified + in a create operation. + explicitly_shared: + Specifies whether the budget is explicitly shared. Defaults to + true if unspecified in a create operation. If true, the + budget was created with the purpose of sharing across one or + more campaigns. If false, the budget was created with the + intention of only being used with a single campaign. The + budget's name and status will stay in sync with the campaign's + name and status. Attempting to share the budget with a second + campaign will result in an error. A non-shared budget can + become an explicitly shared. The same operation must also + assign the budget a name. A shared campaign budget can never + become non-shared. + reference_count: + Output only. The number of campaigns actively using the + budget. This field is read-only. + has_recommended_budget: + Output only. Indicates whether there is a recommended budget + for this campaign budget. This field is read-only. + recommended_budget_amount_micros: + Output only. The recommended budget amount. If no + recommendation is available, this will be set to the budget + amount. Amount is specified in micros, where one million is + equivalent to one currency unit. This field is read-only. + period: + Immutable. Period over which to spend the budget. Defaults to + DAILY if not specified. + recommended_budget_estimated_change_weekly_clicks: + Output only. The estimated change in weekly clicks if the + recommended budget is applied. This field is read-only. + recommended_budget_estimated_change_weekly_cost_micros: + Output only. The estimated change in weekly cost in micros if + the recommended budget is applied. One million is equivalent + to one currency unit. This field is read-only. + recommended_budget_estimated_change_weekly_interactions: + Output only. The estimated change in weekly interactions if + the recommended budget is applied. This field is read-only. + recommended_budget_estimated_change_weekly_views: + Output only. The estimated change in weekly views if the + recommended budget is applied. This field is read-only. + type: + Immutable. The type of the campaign budget. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.resources.CampaignBudget) + )) +_sym_db.RegisterMessage(CampaignBudget) + + +DESCRIPTOR._options = None +_CAMPAIGNBUDGET.fields_by_name['resource_name']._options = None +_CAMPAIGNBUDGET.fields_by_name['id']._options = None +_CAMPAIGNBUDGET.fields_by_name['status']._options = None +_CAMPAIGNBUDGET.fields_by_name['reference_count']._options = None +_CAMPAIGNBUDGET.fields_by_name['has_recommended_budget']._options = None +_CAMPAIGNBUDGET.fields_by_name['recommended_budget_amount_micros']._options = None +_CAMPAIGNBUDGET.fields_by_name['period']._options = None +_CAMPAIGNBUDGET.fields_by_name['recommended_budget_estimated_change_weekly_clicks']._options = None +_CAMPAIGNBUDGET.fields_by_name['recommended_budget_estimated_change_weekly_cost_micros']._options = None +_CAMPAIGNBUDGET.fields_by_name['recommended_budget_estimated_change_weekly_interactions']._options = None +_CAMPAIGNBUDGET.fields_by_name['recommended_budget_estimated_change_weekly_views']._options = None +_CAMPAIGNBUDGET.fields_by_name['type']._options = None +_CAMPAIGNBUDGET._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/resources/geo_target_constant_pb2_grpc.py b/google/ads/google_ads/v4/proto/resources/campaign_budget_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/resources/geo_target_constant_pb2_grpc.py rename to google/ads/google_ads/v4/proto/resources/campaign_budget_pb2_grpc.py diff --git a/google/ads/google_ads/v4/proto/resources/campaign_criterion_pb2.py b/google/ads/google_ads/v4/proto/resources/campaign_criterion_pb2.py new file mode 100644 index 000000000..da783e03e --- /dev/null +++ b/google/ads/google_ads/v4/proto/resources/campaign_criterion_pb2.py @@ -0,0 +1,543 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/resources/campaign_criterion.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.ads.google_ads.v4.proto.common import criteria_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_criteria__pb2 +from google.ads.google_ads.v4.proto.enums import campaign_criterion_status_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_campaign__criterion__status__pb2 +from google.ads.google_ads.v4.proto.enums import criterion_type_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_criterion__type__pb2 +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 +from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/resources/campaign_criterion.proto', + package='google.ads.googleads.v4.resources', + syntax='proto3', + serialized_options=_b('\n%com.google.ads.googleads.v4.resourcesB\026CampaignCriterionProtoP\001ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v4/resources;resources\242\002\003GAA\252\002!Google.Ads.GoogleAds.V4.Resources\312\002!Google\\Ads\\GoogleAds\\V4\\Resources\352\002%Google::Ads::GoogleAds::V4::Resources'), + serialized_pb=_b('\n@google/ads/googleads_v4/proto/resources/campaign_criterion.proto\x12!google.ads.googleads.v4.resources\x1a\x33google/ads/googleads_v4/proto/common/criteria.proto\x1a\x43google/ads/googleads_v4/proto/enums/campaign_criterion_status.proto\x1a\x38google/ads/googleads_v4/proto/enums/criterion_type.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1cgoogle/api/annotations.proto\"\xa6\x15\n\x11\x43\x61mpaignCriterion\x12I\n\rresource_name\x18\x01 \x01(\tB2\xe0\x41\x05\xfa\x41,\n*googleads.googleapis.com/CampaignCriterion\x12Y\n\x08\x63\x61mpaign\x18\x04 \x01(\x0b\x32\x1c.google.protobuf.StringValueB)\xe0\x41\x05\xfa\x41#\n!googleads.googleapis.com/Campaign\x12\x36\n\x0c\x63riterion_id\x18\x05 \x01(\x0b\x32\x1b.google.protobuf.Int64ValueB\x03\xe0\x41\x03\x12\x31\n\x0c\x62id_modifier\x18\x0e \x01(\x0b\x32\x1b.google.protobuf.FloatValue\x12\x31\n\x08negative\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.BoolValueB\x03\xe0\x41\x05\x12Q\n\x04type\x18\x06 \x01(\x0e\x32>.google.ads.googleads.v4.enums.CriterionTypeEnum.CriterionTypeB\x03\xe0\x41\x03\x12\x62\n\x06status\x18# \x01(\x0e\x32R.google.ads.googleads.v4.enums.CampaignCriterionStatusEnum.CampaignCriterionStatus\x12\x43\n\x07keyword\x18\x08 \x01(\x0b\x32+.google.ads.googleads.v4.common.KeywordInfoB\x03\xe0\x41\x05H\x00\x12G\n\tplacement\x18\t \x01(\x0b\x32-.google.ads.googleads.v4.common.PlacementInfoB\x03\xe0\x41\x05H\x00\x12Y\n\x13mobile_app_category\x18\n \x01(\x0b\x32\x35.google.ads.googleads.v4.common.MobileAppCategoryInfoB\x03\xe0\x41\x05H\x00\x12X\n\x12mobile_application\x18\x0b \x01(\x0b\x32\x35.google.ads.googleads.v4.common.MobileApplicationInfoB\x03\xe0\x41\x05H\x00\x12\x45\n\x08location\x18\x0c \x01(\x0b\x32,.google.ads.googleads.v4.common.LocationInfoB\x03\xe0\x41\x05H\x00\x12\x41\n\x06\x64\x65vice\x18\r \x01(\x0b\x32*.google.ads.googleads.v4.common.DeviceInfoB\x03\xe0\x41\x05H\x00\x12J\n\x0b\x61\x64_schedule\x18\x0f \x01(\x0b\x32..google.ads.googleads.v4.common.AdScheduleInfoB\x03\xe0\x41\x05H\x00\x12\x46\n\tage_range\x18\x10 \x01(\x0b\x32,.google.ads.googleads.v4.common.AgeRangeInfoB\x03\xe0\x41\x05H\x00\x12\x41\n\x06gender\x18\x11 \x01(\x0b\x32*.google.ads.googleads.v4.common.GenderInfoB\x03\xe0\x41\x05H\x00\x12L\n\x0cincome_range\x18\x12 \x01(\x0b\x32/.google.ads.googleads.v4.common.IncomeRangeInfoB\x03\xe0\x41\x05H\x00\x12R\n\x0fparental_status\x18\x13 \x01(\x0b\x32\x32.google.ads.googleads.v4.common.ParentalStatusInfoB\x03\xe0\x41\x05H\x00\x12\x46\n\tuser_list\x18\x16 \x01(\x0b\x32,.google.ads.googleads.v4.common.UserListInfoB\x03\xe0\x41\x05H\x00\x12N\n\ryoutube_video\x18\x14 \x01(\x0b\x32\x30.google.ads.googleads.v4.common.YouTubeVideoInfoB\x03\xe0\x41\x05H\x00\x12R\n\x0fyoutube_channel\x18\x15 \x01(\x0b\x32\x32.google.ads.googleads.v4.common.YouTubeChannelInfoB\x03\xe0\x41\x05H\x00\x12G\n\tproximity\x18\x17 \x01(\x0b\x32-.google.ads.googleads.v4.common.ProximityInfoB\x03\xe0\x41\x05H\x00\x12?\n\x05topic\x18\x18 \x01(\x0b\x32).google.ads.googleads.v4.common.TopicInfoB\x03\xe0\x41\x05H\x00\x12N\n\rlisting_scope\x18\x19 \x01(\x0b\x32\x30.google.ads.googleads.v4.common.ListingScopeInfoB\x03\xe0\x41\x05H\x00\x12\x45\n\x08language\x18\x1a \x01(\x0b\x32,.google.ads.googleads.v4.common.LanguageInfoB\x03\xe0\x41\x05H\x00\x12\x44\n\x08ip_block\x18\x1b \x01(\x0b\x32+.google.ads.googleads.v4.common.IpBlockInfoB\x03\xe0\x41\x05H\x00\x12N\n\rcontent_label\x18\x1c \x01(\x0b\x32\x30.google.ads.googleads.v4.common.ContentLabelInfoB\x03\xe0\x41\x05H\x00\x12\x43\n\x07\x63\x61rrier\x18\x1d \x01(\x0b\x32+.google.ads.googleads.v4.common.CarrierInfoB\x03\xe0\x41\x05H\x00\x12N\n\ruser_interest\x18\x1e \x01(\x0b\x32\x30.google.ads.googleads.v4.common.UserInterestInfoB\x03\xe0\x41\x05H\x00\x12\x43\n\x07webpage\x18\x1f \x01(\x0b\x32+.google.ads.googleads.v4.common.WebpageInfoB\x03\xe0\x41\x05H\x00\x12\x63\n\x18operating_system_version\x18 \x01(\x0b\x32:.google.ads.googleads.v4.common.OperatingSystemVersionInfoB\x03\xe0\x41\x05H\x00\x12N\n\rmobile_device\x18! \x01(\x0b\x32\x30.google.ads.googleads.v4.common.MobileDeviceInfoB\x03\xe0\x41\x05H\x00\x12P\n\x0elocation_group\x18\" \x01(\x0b\x32\x31.google.ads.googleads.v4.common.LocationGroupInfoB\x03\xe0\x41\x05H\x00\x12R\n\x0f\x63ustom_affinity\x18$ \x01(\x0b\x32\x32.google.ads.googleads.v4.common.CustomAffinityInfoB\x03\xe0\x41\x05H\x00:k\xea\x41h\n*googleads.googleapis.com/CampaignCriterion\x12:customers/{customer}/campaignCriteria/{campaign_criterion}B\x0b\n\tcriterionB\x83\x02\n%com.google.ads.googleads.v4.resourcesB\x16\x43\x61mpaignCriterionProtoP\x01ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v4/resources;resources\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V4.Resources\xca\x02!Google\\Ads\\GoogleAds\\V4\\Resources\xea\x02%Google::Ads::GoogleAds::V4::Resourcesb\x06proto3') + , + dependencies=[google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_criteria__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_campaign__criterion__status__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_criterion__type__pb2.DESCRIPTOR,google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_api_dot_resource__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + + +_CAMPAIGNCRITERION = _descriptor.Descriptor( + name='CampaignCriterion', + full_name='google.ads.googleads.v4.resources.CampaignCriterion', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.resources.CampaignCriterion.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005\372A,\n*googleads.googleapis.com/CampaignCriterion'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='campaign', full_name='google.ads.googleads.v4.resources.CampaignCriterion.campaign', index=1, + number=4, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005\372A#\n!googleads.googleapis.com/Campaign'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='criterion_id', full_name='google.ads.googleads.v4.resources.CampaignCriterion.criterion_id', index=2, + number=5, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='bid_modifier', full_name='google.ads.googleads.v4.resources.CampaignCriterion.bid_modifier', index=3, + number=14, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='negative', full_name='google.ads.googleads.v4.resources.CampaignCriterion.negative', index=4, + number=7, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='type', full_name='google.ads.googleads.v4.resources.CampaignCriterion.type', index=5, + number=6, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='status', full_name='google.ads.googleads.v4.resources.CampaignCriterion.status', index=6, + number=35, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='keyword', full_name='google.ads.googleads.v4.resources.CampaignCriterion.keyword', index=7, + number=8, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='placement', full_name='google.ads.googleads.v4.resources.CampaignCriterion.placement', index=8, + number=9, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='mobile_app_category', full_name='google.ads.googleads.v4.resources.CampaignCriterion.mobile_app_category', index=9, + number=10, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='mobile_application', full_name='google.ads.googleads.v4.resources.CampaignCriterion.mobile_application', index=10, + number=11, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='location', full_name='google.ads.googleads.v4.resources.CampaignCriterion.location', index=11, + number=12, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='device', full_name='google.ads.googleads.v4.resources.CampaignCriterion.device', index=12, + number=13, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='ad_schedule', full_name='google.ads.googleads.v4.resources.CampaignCriterion.ad_schedule', index=13, + number=15, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='age_range', full_name='google.ads.googleads.v4.resources.CampaignCriterion.age_range', index=14, + number=16, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='gender', full_name='google.ads.googleads.v4.resources.CampaignCriterion.gender', index=15, + number=17, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='income_range', full_name='google.ads.googleads.v4.resources.CampaignCriterion.income_range', index=16, + number=18, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='parental_status', full_name='google.ads.googleads.v4.resources.CampaignCriterion.parental_status', index=17, + number=19, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='user_list', full_name='google.ads.googleads.v4.resources.CampaignCriterion.user_list', index=18, + number=22, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='youtube_video', full_name='google.ads.googleads.v4.resources.CampaignCriterion.youtube_video', index=19, + number=20, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='youtube_channel', full_name='google.ads.googleads.v4.resources.CampaignCriterion.youtube_channel', index=20, + number=21, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='proximity', full_name='google.ads.googleads.v4.resources.CampaignCriterion.proximity', index=21, + number=23, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='topic', full_name='google.ads.googleads.v4.resources.CampaignCriterion.topic', index=22, + number=24, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='listing_scope', full_name='google.ads.googleads.v4.resources.CampaignCriterion.listing_scope', index=23, + number=25, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='language', full_name='google.ads.googleads.v4.resources.CampaignCriterion.language', index=24, + number=26, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='ip_block', full_name='google.ads.googleads.v4.resources.CampaignCriterion.ip_block', index=25, + number=27, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='content_label', full_name='google.ads.googleads.v4.resources.CampaignCriterion.content_label', index=26, + number=28, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='carrier', full_name='google.ads.googleads.v4.resources.CampaignCriterion.carrier', index=27, + number=29, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='user_interest', full_name='google.ads.googleads.v4.resources.CampaignCriterion.user_interest', index=28, + number=30, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='webpage', full_name='google.ads.googleads.v4.resources.CampaignCriterion.webpage', index=29, + number=31, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='operating_system_version', full_name='google.ads.googleads.v4.resources.CampaignCriterion.operating_system_version', index=30, + number=32, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='mobile_device', full_name='google.ads.googleads.v4.resources.CampaignCriterion.mobile_device', index=31, + number=33, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='location_group', full_name='google.ads.googleads.v4.resources.CampaignCriterion.location_group', index=32, + number=34, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='custom_affinity', full_name='google.ads.googleads.v4.resources.CampaignCriterion.custom_affinity', index=33, + number=36, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=_b('\352Ah\n*googleads.googleapis.com/CampaignCriterion\022:customers/{customer}/campaignCriteria/{campaign_criterion}'), + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name='criterion', full_name='google.ads.googleads.v4.resources.CampaignCriterion.criterion', + index=0, containing_type=None, fields=[]), + ], + serialized_start=406, + serialized_end=3132, +) + +_CAMPAIGNCRITERION.fields_by_name['campaign'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_CAMPAIGNCRITERION.fields_by_name['criterion_id'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_CAMPAIGNCRITERION.fields_by_name['bid_modifier'].message_type = google_dot_protobuf_dot_wrappers__pb2._FLOATVALUE +_CAMPAIGNCRITERION.fields_by_name['negative'].message_type = google_dot_protobuf_dot_wrappers__pb2._BOOLVALUE +_CAMPAIGNCRITERION.fields_by_name['type'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_criterion__type__pb2._CRITERIONTYPEENUM_CRITERIONTYPE +_CAMPAIGNCRITERION.fields_by_name['status'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_campaign__criterion__status__pb2._CAMPAIGNCRITERIONSTATUSENUM_CAMPAIGNCRITERIONSTATUS +_CAMPAIGNCRITERION.fields_by_name['keyword'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_criteria__pb2._KEYWORDINFO +_CAMPAIGNCRITERION.fields_by_name['placement'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_criteria__pb2._PLACEMENTINFO +_CAMPAIGNCRITERION.fields_by_name['mobile_app_category'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_criteria__pb2._MOBILEAPPCATEGORYINFO +_CAMPAIGNCRITERION.fields_by_name['mobile_application'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_criteria__pb2._MOBILEAPPLICATIONINFO +_CAMPAIGNCRITERION.fields_by_name['location'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_criteria__pb2._LOCATIONINFO +_CAMPAIGNCRITERION.fields_by_name['device'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_criteria__pb2._DEVICEINFO +_CAMPAIGNCRITERION.fields_by_name['ad_schedule'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_criteria__pb2._ADSCHEDULEINFO +_CAMPAIGNCRITERION.fields_by_name['age_range'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_criteria__pb2._AGERANGEINFO +_CAMPAIGNCRITERION.fields_by_name['gender'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_criteria__pb2._GENDERINFO +_CAMPAIGNCRITERION.fields_by_name['income_range'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_criteria__pb2._INCOMERANGEINFO +_CAMPAIGNCRITERION.fields_by_name['parental_status'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_criteria__pb2._PARENTALSTATUSINFO +_CAMPAIGNCRITERION.fields_by_name['user_list'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_criteria__pb2._USERLISTINFO +_CAMPAIGNCRITERION.fields_by_name['youtube_video'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_criteria__pb2._YOUTUBEVIDEOINFO +_CAMPAIGNCRITERION.fields_by_name['youtube_channel'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_criteria__pb2._YOUTUBECHANNELINFO +_CAMPAIGNCRITERION.fields_by_name['proximity'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_criteria__pb2._PROXIMITYINFO +_CAMPAIGNCRITERION.fields_by_name['topic'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_criteria__pb2._TOPICINFO +_CAMPAIGNCRITERION.fields_by_name['listing_scope'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_criteria__pb2._LISTINGSCOPEINFO +_CAMPAIGNCRITERION.fields_by_name['language'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_criteria__pb2._LANGUAGEINFO +_CAMPAIGNCRITERION.fields_by_name['ip_block'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_criteria__pb2._IPBLOCKINFO +_CAMPAIGNCRITERION.fields_by_name['content_label'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_criteria__pb2._CONTENTLABELINFO +_CAMPAIGNCRITERION.fields_by_name['carrier'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_criteria__pb2._CARRIERINFO +_CAMPAIGNCRITERION.fields_by_name['user_interest'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_criteria__pb2._USERINTERESTINFO +_CAMPAIGNCRITERION.fields_by_name['webpage'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_criteria__pb2._WEBPAGEINFO +_CAMPAIGNCRITERION.fields_by_name['operating_system_version'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_criteria__pb2._OPERATINGSYSTEMVERSIONINFO +_CAMPAIGNCRITERION.fields_by_name['mobile_device'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_criteria__pb2._MOBILEDEVICEINFO +_CAMPAIGNCRITERION.fields_by_name['location_group'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_criteria__pb2._LOCATIONGROUPINFO +_CAMPAIGNCRITERION.fields_by_name['custom_affinity'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_criteria__pb2._CUSTOMAFFINITYINFO +_CAMPAIGNCRITERION.oneofs_by_name['criterion'].fields.append( + _CAMPAIGNCRITERION.fields_by_name['keyword']) +_CAMPAIGNCRITERION.fields_by_name['keyword'].containing_oneof = _CAMPAIGNCRITERION.oneofs_by_name['criterion'] +_CAMPAIGNCRITERION.oneofs_by_name['criterion'].fields.append( + _CAMPAIGNCRITERION.fields_by_name['placement']) +_CAMPAIGNCRITERION.fields_by_name['placement'].containing_oneof = _CAMPAIGNCRITERION.oneofs_by_name['criterion'] +_CAMPAIGNCRITERION.oneofs_by_name['criterion'].fields.append( + _CAMPAIGNCRITERION.fields_by_name['mobile_app_category']) +_CAMPAIGNCRITERION.fields_by_name['mobile_app_category'].containing_oneof = _CAMPAIGNCRITERION.oneofs_by_name['criterion'] +_CAMPAIGNCRITERION.oneofs_by_name['criterion'].fields.append( + _CAMPAIGNCRITERION.fields_by_name['mobile_application']) +_CAMPAIGNCRITERION.fields_by_name['mobile_application'].containing_oneof = _CAMPAIGNCRITERION.oneofs_by_name['criterion'] +_CAMPAIGNCRITERION.oneofs_by_name['criterion'].fields.append( + _CAMPAIGNCRITERION.fields_by_name['location']) +_CAMPAIGNCRITERION.fields_by_name['location'].containing_oneof = _CAMPAIGNCRITERION.oneofs_by_name['criterion'] +_CAMPAIGNCRITERION.oneofs_by_name['criterion'].fields.append( + _CAMPAIGNCRITERION.fields_by_name['device']) +_CAMPAIGNCRITERION.fields_by_name['device'].containing_oneof = _CAMPAIGNCRITERION.oneofs_by_name['criterion'] +_CAMPAIGNCRITERION.oneofs_by_name['criterion'].fields.append( + _CAMPAIGNCRITERION.fields_by_name['ad_schedule']) +_CAMPAIGNCRITERION.fields_by_name['ad_schedule'].containing_oneof = _CAMPAIGNCRITERION.oneofs_by_name['criterion'] +_CAMPAIGNCRITERION.oneofs_by_name['criterion'].fields.append( + _CAMPAIGNCRITERION.fields_by_name['age_range']) +_CAMPAIGNCRITERION.fields_by_name['age_range'].containing_oneof = _CAMPAIGNCRITERION.oneofs_by_name['criterion'] +_CAMPAIGNCRITERION.oneofs_by_name['criterion'].fields.append( + _CAMPAIGNCRITERION.fields_by_name['gender']) +_CAMPAIGNCRITERION.fields_by_name['gender'].containing_oneof = _CAMPAIGNCRITERION.oneofs_by_name['criterion'] +_CAMPAIGNCRITERION.oneofs_by_name['criterion'].fields.append( + _CAMPAIGNCRITERION.fields_by_name['income_range']) +_CAMPAIGNCRITERION.fields_by_name['income_range'].containing_oneof = _CAMPAIGNCRITERION.oneofs_by_name['criterion'] +_CAMPAIGNCRITERION.oneofs_by_name['criterion'].fields.append( + _CAMPAIGNCRITERION.fields_by_name['parental_status']) +_CAMPAIGNCRITERION.fields_by_name['parental_status'].containing_oneof = _CAMPAIGNCRITERION.oneofs_by_name['criterion'] +_CAMPAIGNCRITERION.oneofs_by_name['criterion'].fields.append( + _CAMPAIGNCRITERION.fields_by_name['user_list']) +_CAMPAIGNCRITERION.fields_by_name['user_list'].containing_oneof = _CAMPAIGNCRITERION.oneofs_by_name['criterion'] +_CAMPAIGNCRITERION.oneofs_by_name['criterion'].fields.append( + _CAMPAIGNCRITERION.fields_by_name['youtube_video']) +_CAMPAIGNCRITERION.fields_by_name['youtube_video'].containing_oneof = _CAMPAIGNCRITERION.oneofs_by_name['criterion'] +_CAMPAIGNCRITERION.oneofs_by_name['criterion'].fields.append( + _CAMPAIGNCRITERION.fields_by_name['youtube_channel']) +_CAMPAIGNCRITERION.fields_by_name['youtube_channel'].containing_oneof = _CAMPAIGNCRITERION.oneofs_by_name['criterion'] +_CAMPAIGNCRITERION.oneofs_by_name['criterion'].fields.append( + _CAMPAIGNCRITERION.fields_by_name['proximity']) +_CAMPAIGNCRITERION.fields_by_name['proximity'].containing_oneof = _CAMPAIGNCRITERION.oneofs_by_name['criterion'] +_CAMPAIGNCRITERION.oneofs_by_name['criterion'].fields.append( + _CAMPAIGNCRITERION.fields_by_name['topic']) +_CAMPAIGNCRITERION.fields_by_name['topic'].containing_oneof = _CAMPAIGNCRITERION.oneofs_by_name['criterion'] +_CAMPAIGNCRITERION.oneofs_by_name['criterion'].fields.append( + _CAMPAIGNCRITERION.fields_by_name['listing_scope']) +_CAMPAIGNCRITERION.fields_by_name['listing_scope'].containing_oneof = _CAMPAIGNCRITERION.oneofs_by_name['criterion'] +_CAMPAIGNCRITERION.oneofs_by_name['criterion'].fields.append( + _CAMPAIGNCRITERION.fields_by_name['language']) +_CAMPAIGNCRITERION.fields_by_name['language'].containing_oneof = _CAMPAIGNCRITERION.oneofs_by_name['criterion'] +_CAMPAIGNCRITERION.oneofs_by_name['criterion'].fields.append( + _CAMPAIGNCRITERION.fields_by_name['ip_block']) +_CAMPAIGNCRITERION.fields_by_name['ip_block'].containing_oneof = _CAMPAIGNCRITERION.oneofs_by_name['criterion'] +_CAMPAIGNCRITERION.oneofs_by_name['criterion'].fields.append( + _CAMPAIGNCRITERION.fields_by_name['content_label']) +_CAMPAIGNCRITERION.fields_by_name['content_label'].containing_oneof = _CAMPAIGNCRITERION.oneofs_by_name['criterion'] +_CAMPAIGNCRITERION.oneofs_by_name['criterion'].fields.append( + _CAMPAIGNCRITERION.fields_by_name['carrier']) +_CAMPAIGNCRITERION.fields_by_name['carrier'].containing_oneof = _CAMPAIGNCRITERION.oneofs_by_name['criterion'] +_CAMPAIGNCRITERION.oneofs_by_name['criterion'].fields.append( + _CAMPAIGNCRITERION.fields_by_name['user_interest']) +_CAMPAIGNCRITERION.fields_by_name['user_interest'].containing_oneof = _CAMPAIGNCRITERION.oneofs_by_name['criterion'] +_CAMPAIGNCRITERION.oneofs_by_name['criterion'].fields.append( + _CAMPAIGNCRITERION.fields_by_name['webpage']) +_CAMPAIGNCRITERION.fields_by_name['webpage'].containing_oneof = _CAMPAIGNCRITERION.oneofs_by_name['criterion'] +_CAMPAIGNCRITERION.oneofs_by_name['criterion'].fields.append( + _CAMPAIGNCRITERION.fields_by_name['operating_system_version']) +_CAMPAIGNCRITERION.fields_by_name['operating_system_version'].containing_oneof = _CAMPAIGNCRITERION.oneofs_by_name['criterion'] +_CAMPAIGNCRITERION.oneofs_by_name['criterion'].fields.append( + _CAMPAIGNCRITERION.fields_by_name['mobile_device']) +_CAMPAIGNCRITERION.fields_by_name['mobile_device'].containing_oneof = _CAMPAIGNCRITERION.oneofs_by_name['criterion'] +_CAMPAIGNCRITERION.oneofs_by_name['criterion'].fields.append( + _CAMPAIGNCRITERION.fields_by_name['location_group']) +_CAMPAIGNCRITERION.fields_by_name['location_group'].containing_oneof = _CAMPAIGNCRITERION.oneofs_by_name['criterion'] +_CAMPAIGNCRITERION.oneofs_by_name['criterion'].fields.append( + _CAMPAIGNCRITERION.fields_by_name['custom_affinity']) +_CAMPAIGNCRITERION.fields_by_name['custom_affinity'].containing_oneof = _CAMPAIGNCRITERION.oneofs_by_name['criterion'] +DESCRIPTOR.message_types_by_name['CampaignCriterion'] = _CAMPAIGNCRITERION +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +CampaignCriterion = _reflection.GeneratedProtocolMessageType('CampaignCriterion', (_message.Message,), dict( + DESCRIPTOR = _CAMPAIGNCRITERION, + __module__ = 'google.ads.googleads_v4.proto.resources.campaign_criterion_pb2' + , + __doc__ = """A campaign criterion. + + + Attributes: + resource_name: + Immutable. The resource name of the campaign criterion. + Campaign criterion resource names have the form: ``customers/ + {customer_id}/campaignCriteria/{campaign_id}~{criterion_id}`` + campaign: + Immutable. The campaign to which the criterion belongs. + criterion_id: + Output only. The ID of the criterion. This field is ignored + during mutate. + bid_modifier: + The modifier for the bids when the criterion matches. The + modifier must be in the range: 0.1 - 10.0. Most targetable + criteria types support modifiers. Use 0 to opt out of a Device + type. + negative: + Immutable. Whether to target (``false``) or exclude (``true``) + the criterion. + type: + Output only. The type of the criterion. + status: + The status of the criterion. + criterion: + The campaign criterion. Exactly one must be set. + keyword: + Immutable. Keyword. + placement: + Immutable. Placement. + mobile_app_category: + Immutable. Mobile app category. + mobile_application: + Immutable. Mobile application. + location: + Immutable. Location. + device: + Immutable. Device. + ad_schedule: + Immutable. Ad Schedule. + age_range: + Immutable. Age range. + gender: + Immutable. Gender. + income_range: + Immutable. Income range. + parental_status: + Immutable. Parental status. + user_list: + Immutable. User List. + youtube_video: + Immutable. YouTube Video. + youtube_channel: + Immutable. YouTube Channel. + proximity: + Immutable. Proximity. + topic: + Immutable. Topic. + listing_scope: + Immutable. Listing scope. + language: + Immutable. Language. + ip_block: + Immutable. IpBlock. + content_label: + Immutable. ContentLabel. + carrier: + Immutable. Carrier. + user_interest: + Immutable. User Interest. + webpage: + Immutable. Webpage. + operating_system_version: + Immutable. Operating system version. + mobile_device: + Immutable. Mobile Device. + location_group: + Immutable. Location Group + custom_affinity: + Immutable. Custom Affinity. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.resources.CampaignCriterion) + )) +_sym_db.RegisterMessage(CampaignCriterion) + + +DESCRIPTOR._options = None +_CAMPAIGNCRITERION.fields_by_name['resource_name']._options = None +_CAMPAIGNCRITERION.fields_by_name['campaign']._options = None +_CAMPAIGNCRITERION.fields_by_name['criterion_id']._options = None +_CAMPAIGNCRITERION.fields_by_name['negative']._options = None +_CAMPAIGNCRITERION.fields_by_name['type']._options = None +_CAMPAIGNCRITERION.fields_by_name['keyword']._options = None +_CAMPAIGNCRITERION.fields_by_name['placement']._options = None +_CAMPAIGNCRITERION.fields_by_name['mobile_app_category']._options = None +_CAMPAIGNCRITERION.fields_by_name['mobile_application']._options = None +_CAMPAIGNCRITERION.fields_by_name['location']._options = None +_CAMPAIGNCRITERION.fields_by_name['device']._options = None +_CAMPAIGNCRITERION.fields_by_name['ad_schedule']._options = None +_CAMPAIGNCRITERION.fields_by_name['age_range']._options = None +_CAMPAIGNCRITERION.fields_by_name['gender']._options = None +_CAMPAIGNCRITERION.fields_by_name['income_range']._options = None +_CAMPAIGNCRITERION.fields_by_name['parental_status']._options = None +_CAMPAIGNCRITERION.fields_by_name['user_list']._options = None +_CAMPAIGNCRITERION.fields_by_name['youtube_video']._options = None +_CAMPAIGNCRITERION.fields_by_name['youtube_channel']._options = None +_CAMPAIGNCRITERION.fields_by_name['proximity']._options = None +_CAMPAIGNCRITERION.fields_by_name['topic']._options = None +_CAMPAIGNCRITERION.fields_by_name['listing_scope']._options = None +_CAMPAIGNCRITERION.fields_by_name['language']._options = None +_CAMPAIGNCRITERION.fields_by_name['ip_block']._options = None +_CAMPAIGNCRITERION.fields_by_name['content_label']._options = None +_CAMPAIGNCRITERION.fields_by_name['carrier']._options = None +_CAMPAIGNCRITERION.fields_by_name['user_interest']._options = None +_CAMPAIGNCRITERION.fields_by_name['webpage']._options = None +_CAMPAIGNCRITERION.fields_by_name['operating_system_version']._options = None +_CAMPAIGNCRITERION.fields_by_name['mobile_device']._options = None +_CAMPAIGNCRITERION.fields_by_name['location_group']._options = None +_CAMPAIGNCRITERION.fields_by_name['custom_affinity']._options = None +_CAMPAIGNCRITERION._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/resources/geographic_view_pb2_grpc.py b/google/ads/google_ads/v4/proto/resources/campaign_criterion_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/resources/geographic_view_pb2_grpc.py rename to google/ads/google_ads/v4/proto/resources/campaign_criterion_pb2_grpc.py diff --git a/google/ads/google_ads/v4/proto/resources/campaign_criterion_simulation_pb2.py b/google/ads/google_ads/v4/proto/resources/campaign_criterion_simulation_pb2.py new file mode 100644 index 000000000..c90095b1e --- /dev/null +++ b/google/ads/google_ads/v4/proto/resources/campaign_criterion_simulation_pb2.py @@ -0,0 +1,187 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/resources/campaign_criterion_simulation.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.ads.google_ads.v4.proto.common import simulation_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_simulation__pb2 +from google.ads.google_ads.v4.proto.enums import simulation_modification_method_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_simulation__modification__method__pb2 +from google.ads.google_ads.v4.proto.enums import simulation_type_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_simulation__type__pb2 +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 +from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/resources/campaign_criterion_simulation.proto', + package='google.ads.googleads.v4.resources', + syntax='proto3', + serialized_options=_b('\n%com.google.ads.googleads.v4.resourcesB CampaignCriterionSimulationProtoP\001ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v4/resources;resources\242\002\003GAA\252\002!Google.Ads.GoogleAds.V4.Resources\312\002!Google\\Ads\\GoogleAds\\V4\\Resources\352\002%Google::Ads::GoogleAds::V4::Resources'), + serialized_pb=_b('\nKgoogle/ads/googleads_v4/proto/resources/campaign_criterion_simulation.proto\x12!google.ads.googleads.v4.resources\x1a\x35google/ads/googleads_v4/proto/common/simulation.proto\x1aHgoogle/ads/googleads_v4/proto/enums/simulation_modification_method.proto\x1a\x39google/ads/googleads_v4/proto/enums/simulation_type.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1cgoogle/api/annotations.proto\"\xa8\x06\n\x1b\x43\x61mpaignCriterionSimulation\x12S\n\rresource_name\x18\x01 \x01(\tB<\xe0\x41\x03\xfa\x41\x36\n4googleads.googleapis.com/CampaignCriterionSimulation\x12\x35\n\x0b\x63\x61mpaign_id\x18\x02 \x01(\x0b\x32\x1b.google.protobuf.Int64ValueB\x03\xe0\x41\x03\x12\x36\n\x0c\x63riterion_id\x18\x03 \x01(\x0b\x32\x1b.google.protobuf.Int64ValueB\x03\xe0\x41\x03\x12S\n\x04type\x18\x04 \x01(\x0e\x32@.google.ads.googleads.v4.enums.SimulationTypeEnum.SimulationTypeB\x03\xe0\x41\x03\x12~\n\x13modification_method\x18\x05 \x01(\x0e\x32\\.google.ads.googleads.v4.enums.SimulationModificationMethodEnum.SimulationModificationMethodB\x03\xe0\x41\x03\x12\x35\n\nstart_date\x18\x06 \x01(\x0b\x32\x1c.google.protobuf.StringValueB\x03\xe0\x41\x03\x12\x33\n\x08\x65nd_date\x18\x07 \x01(\x0b\x32\x1c.google.protobuf.StringValueB\x03\xe0\x41\x03\x12\x66\n\x17\x62id_modifier_point_list\x18\x08 \x01(\x0b\x32>.google.ads.googleads.v4.common.BidModifierSimulationPointListB\x03\xe0\x41\x03H\x00:\x8d\x01\xea\x41\x89\x01\n4googleads.googleapis.com/CampaignCriterionSimulation\x12Qcustomers/{customer}/campaignCriterionSimulations/{campaign_criterion_simulation}B\x0c\n\npoint_listB\x8d\x02\n%com.google.ads.googleads.v4.resourcesB CampaignCriterionSimulationProtoP\x01ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v4/resources;resources\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V4.Resources\xca\x02!Google\\Ads\\GoogleAds\\V4\\Resources\xea\x02%Google::Ads::GoogleAds::V4::Resourcesb\x06proto3') + , + dependencies=[google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_simulation__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_simulation__modification__method__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_simulation__type__pb2.DESCRIPTOR,google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_api_dot_resource__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + + +_CAMPAIGNCRITERIONSIMULATION = _descriptor.Descriptor( + name='CampaignCriterionSimulation', + full_name='google.ads.googleads.v4.resources.CampaignCriterionSimulation', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.resources.CampaignCriterionSimulation.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003\372A6\n4googleads.googleapis.com/CampaignCriterionSimulation'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='campaign_id', full_name='google.ads.googleads.v4.resources.CampaignCriterionSimulation.campaign_id', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='criterion_id', full_name='google.ads.googleads.v4.resources.CampaignCriterionSimulation.criterion_id', index=2, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='type', full_name='google.ads.googleads.v4.resources.CampaignCriterionSimulation.type', index=3, + number=4, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='modification_method', full_name='google.ads.googleads.v4.resources.CampaignCriterionSimulation.modification_method', index=4, + number=5, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='start_date', full_name='google.ads.googleads.v4.resources.CampaignCriterionSimulation.start_date', index=5, + number=6, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='end_date', full_name='google.ads.googleads.v4.resources.CampaignCriterionSimulation.end_date', index=6, + number=7, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='bid_modifier_point_list', full_name='google.ads.googleads.v4.resources.CampaignCriterionSimulation.bid_modifier_point_list', index=7, + number=8, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=_b('\352A\211\001\n4googleads.googleapis.com/CampaignCriterionSimulation\022Qcustomers/{customer}/campaignCriterionSimulations/{campaign_criterion_simulation}'), + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name='point_list', full_name='google.ads.googleads.v4.resources.CampaignCriterionSimulation.point_list', + index=0, containing_type=None, fields=[]), + ], + serialized_start=425, + serialized_end=1233, +) + +_CAMPAIGNCRITERIONSIMULATION.fields_by_name['campaign_id'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_CAMPAIGNCRITERIONSIMULATION.fields_by_name['criterion_id'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_CAMPAIGNCRITERIONSIMULATION.fields_by_name['type'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_simulation__type__pb2._SIMULATIONTYPEENUM_SIMULATIONTYPE +_CAMPAIGNCRITERIONSIMULATION.fields_by_name['modification_method'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_simulation__modification__method__pb2._SIMULATIONMODIFICATIONMETHODENUM_SIMULATIONMODIFICATIONMETHOD +_CAMPAIGNCRITERIONSIMULATION.fields_by_name['start_date'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_CAMPAIGNCRITERIONSIMULATION.fields_by_name['end_date'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_CAMPAIGNCRITERIONSIMULATION.fields_by_name['bid_modifier_point_list'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_simulation__pb2._BIDMODIFIERSIMULATIONPOINTLIST +_CAMPAIGNCRITERIONSIMULATION.oneofs_by_name['point_list'].fields.append( + _CAMPAIGNCRITERIONSIMULATION.fields_by_name['bid_modifier_point_list']) +_CAMPAIGNCRITERIONSIMULATION.fields_by_name['bid_modifier_point_list'].containing_oneof = _CAMPAIGNCRITERIONSIMULATION.oneofs_by_name['point_list'] +DESCRIPTOR.message_types_by_name['CampaignCriterionSimulation'] = _CAMPAIGNCRITERIONSIMULATION +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +CampaignCriterionSimulation = _reflection.GeneratedProtocolMessageType('CampaignCriterionSimulation', (_message.Message,), dict( + DESCRIPTOR = _CAMPAIGNCRITERIONSIMULATION, + __module__ = 'google.ads.googleads_v4.proto.resources.campaign_criterion_simulation_pb2' + , + __doc__ = """A campaign criterion simulation. Supported combinations of advertising + channel type, criterion ids, simulation type and simulation modification + method is detailed below respectively. + + 1. SEARCH - 30000,30001,30002 - BID\_MODIFIER - UNIFORM + 2. SHOPPING - 30000,30001,30002 - BID\_MODIFIER - UNIFORM + 3. DISPLAY - 30001 - BID\_MODIFIER - UNIFORM + + + Attributes: + resource_name: + Output only. The resource name of the campaign criterion + simulation. Campaign criterion simulation resource names have + the form: ``customers/{customer_id}/campaignCriterionSimulati + ons/{campaign_id}~{criterion_id}~{type}~{modification_method}~ + {start_date}~{end_date}`` + campaign_id: + Output only. Campaign ID of the simulation. + criterion_id: + Output only. Criterion ID of the simulation. + type: + Output only. The field that the simulation modifies. + modification_method: + Output only. How the simulation modifies the field. + start_date: + Output only. First day on which the simulation is based, in + YYYY-MM-DD format. + end_date: + Output only. Last day on which the simulation is based, in + YYYY-MM-DD format. + point_list: + List of simulation points. + bid_modifier_point_list: + Output only. Simulation points if the simulation type is + BID\_MODIFIER. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.resources.CampaignCriterionSimulation) + )) +_sym_db.RegisterMessage(CampaignCriterionSimulation) + + +DESCRIPTOR._options = None +_CAMPAIGNCRITERIONSIMULATION.fields_by_name['resource_name']._options = None +_CAMPAIGNCRITERIONSIMULATION.fields_by_name['campaign_id']._options = None +_CAMPAIGNCRITERIONSIMULATION.fields_by_name['criterion_id']._options = None +_CAMPAIGNCRITERIONSIMULATION.fields_by_name['type']._options = None +_CAMPAIGNCRITERIONSIMULATION.fields_by_name['modification_method']._options = None +_CAMPAIGNCRITERIONSIMULATION.fields_by_name['start_date']._options = None +_CAMPAIGNCRITERIONSIMULATION.fields_by_name['end_date']._options = None +_CAMPAIGNCRITERIONSIMULATION.fields_by_name['bid_modifier_point_list']._options = None +_CAMPAIGNCRITERIONSIMULATION._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/resources/google_ads_field_pb2_grpc.py b/google/ads/google_ads/v4/proto/resources/campaign_criterion_simulation_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/resources/google_ads_field_pb2_grpc.py rename to google/ads/google_ads/v4/proto/resources/campaign_criterion_simulation_pb2_grpc.py diff --git a/google/ads/google_ads/v4/proto/resources/campaign_draft_pb2.py b/google/ads/google_ads/v4/proto/resources/campaign_draft_pb2.py new file mode 100644 index 000000000..a941f82fd --- /dev/null +++ b/google/ads/google_ads/v4/proto/resources/campaign_draft_pb2.py @@ -0,0 +1,176 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/resources/campaign_draft.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.ads.google_ads.v4.proto.enums import campaign_draft_status_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_campaign__draft__status__pb2 +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 +from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/resources/campaign_draft.proto', + package='google.ads.googleads.v4.resources', + syntax='proto3', + serialized_options=_b('\n%com.google.ads.googleads.v4.resourcesB\022CampaignDraftProtoP\001ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v4/resources;resources\242\002\003GAA\252\002!Google.Ads.GoogleAds.V4.Resources\312\002!Google\\Ads\\GoogleAds\\V4\\Resources\352\002%Google::Ads::GoogleAds::V4::Resources'), + serialized_pb=_b('\ncustomers/{customer}/campaignExperiments/{campaign_experiment}B\x84\x02\n%com.google.ads.googleads.v4.resourcesB\x17\x43\x61mpaignExperimentProtoP\x01ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v4/resources;resources\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V4.Resources\xca\x02!Google\\Ads\\GoogleAds\\V4\\Resources\xea\x02%Google::Ads::GoogleAds::V4::Resourcesb\x06proto3') + , + dependencies=[google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_campaign__experiment__status__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_campaign__experiment__traffic__split__type__pb2.DESCRIPTOR,google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_api_dot_resource__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + + +_CAMPAIGNEXPERIMENT = _descriptor.Descriptor( + name='CampaignExperiment', + full_name='google.ads.googleads.v4.resources.CampaignExperiment', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.resources.CampaignExperiment.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005\372A-\n+googleads.googleapis.com/CampaignExperiment'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='id', full_name='google.ads.googleads.v4.resources.CampaignExperiment.id', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='campaign_draft', full_name='google.ads.googleads.v4.resources.CampaignExperiment.campaign_draft', index=2, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005\372A(\n&googleads.googleapis.com/CampaignDraft'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='name', full_name='google.ads.googleads.v4.resources.CampaignExperiment.name', index=3, + number=4, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='description', full_name='google.ads.googleads.v4.resources.CampaignExperiment.description', index=4, + number=5, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='traffic_split_percent', full_name='google.ads.googleads.v4.resources.CampaignExperiment.traffic_split_percent', index=5, + number=6, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='traffic_split_type', full_name='google.ads.googleads.v4.resources.CampaignExperiment.traffic_split_type', index=6, + number=7, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='experiment_campaign', full_name='google.ads.googleads.v4.resources.CampaignExperiment.experiment_campaign', index=7, + number=8, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003\372A#\n!googleads.googleapis.com/Campaign'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='status', full_name='google.ads.googleads.v4.resources.CampaignExperiment.status', index=8, + number=9, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='long_running_operation', full_name='google.ads.googleads.v4.resources.CampaignExperiment.long_running_operation', index=9, + number=10, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='start_date', full_name='google.ads.googleads.v4.resources.CampaignExperiment.start_date', index=10, + number=11, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='end_date', full_name='google.ads.googleads.v4.resources.CampaignExperiment.end_date', index=11, + number=12, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=_b('\352Am\n+googleads.googleapis.com/CampaignExperiment\022>customers/{customer}/campaignExperiments/{campaign_experiment}'), + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=379, + serialized_end=1411, +) + +_CAMPAIGNEXPERIMENT.fields_by_name['id'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_CAMPAIGNEXPERIMENT.fields_by_name['campaign_draft'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_CAMPAIGNEXPERIMENT.fields_by_name['name'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_CAMPAIGNEXPERIMENT.fields_by_name['description'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_CAMPAIGNEXPERIMENT.fields_by_name['traffic_split_percent'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_CAMPAIGNEXPERIMENT.fields_by_name['traffic_split_type'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_campaign__experiment__traffic__split__type__pb2._CAMPAIGNEXPERIMENTTRAFFICSPLITTYPEENUM_CAMPAIGNEXPERIMENTTRAFFICSPLITTYPE +_CAMPAIGNEXPERIMENT.fields_by_name['experiment_campaign'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_CAMPAIGNEXPERIMENT.fields_by_name['status'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_campaign__experiment__status__pb2._CAMPAIGNEXPERIMENTSTATUSENUM_CAMPAIGNEXPERIMENTSTATUS +_CAMPAIGNEXPERIMENT.fields_by_name['long_running_operation'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_CAMPAIGNEXPERIMENT.fields_by_name['start_date'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_CAMPAIGNEXPERIMENT.fields_by_name['end_date'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +DESCRIPTOR.message_types_by_name['CampaignExperiment'] = _CAMPAIGNEXPERIMENT +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +CampaignExperiment = _reflection.GeneratedProtocolMessageType('CampaignExperiment', (_message.Message,), dict( + DESCRIPTOR = _CAMPAIGNEXPERIMENT, + __module__ = 'google.ads.googleads_v4.proto.resources.campaign_experiment_pb2' + , + __doc__ = """An A/B experiment that compares the performance of the base campaign + (the control) and a variation of that campaign (the experiment). + + + Attributes: + resource_name: + Immutable. The resource name of the campaign experiment. + Campaign experiment resource names have the form: ``customers + /{customer_id}/campaignExperiments/{campaign_experiment_id}`` + id: + Output only. The ID of the campaign experiment. This field is + read-only. + campaign_draft: + Immutable. The campaign draft with staged changes to the base + campaign. + name: + The name of the campaign experiment. This field is required + when creating new campaign experiments and must not conflict + with the name of another non-removed campaign experiment or + campaign. It must not contain any null (code point 0x0), NL + line feed (code point 0xA) or carriage return (code point 0xD) + characters. + description: + The description of the experiment. + traffic_split_percent: + Immutable. Share of traffic directed to experiment as a + percent (must be between 1 and 99 inclusive. Base campaign + receives the remainder of the traffic (100 - + traffic\_split\_percent). Required for create. + traffic_split_type: + Immutable. Determines the behavior of the traffic split. + experiment_campaign: + Output only. The experiment campaign, as opposed to the base + campaign. + status: + Output only. The status of the campaign experiment. This field + is read-only. + long_running_operation: + Output only. The resource name of the long-running operation + that can be used to poll for completion of experiment create + or promote. The most recent long running operation is + returned. + start_date: + Date when the campaign experiment starts. By default, the + experiment starts now or on the campaign's start date, + whichever is later. If this field is set, then the experiment + starts at the beginning of the specified date in the + customer's time zone. Cannot be changed once the experiment + starts. Format: YYYY-MM-DD Example: 2019-03-14 + end_date: + Date when the campaign experiment ends. By default, the + experiment ends on the campaign's end date. If this field is + set, then the experiment ends at the end of the specified date + in the customer's time zone. Format: YYYY-MM-DD Example: + 2019-04-18 + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.resources.CampaignExperiment) + )) +_sym_db.RegisterMessage(CampaignExperiment) + + +DESCRIPTOR._options = None +_CAMPAIGNEXPERIMENT.fields_by_name['resource_name']._options = None +_CAMPAIGNEXPERIMENT.fields_by_name['id']._options = None +_CAMPAIGNEXPERIMENT.fields_by_name['campaign_draft']._options = None +_CAMPAIGNEXPERIMENT.fields_by_name['traffic_split_percent']._options = None +_CAMPAIGNEXPERIMENT.fields_by_name['traffic_split_type']._options = None +_CAMPAIGNEXPERIMENT.fields_by_name['experiment_campaign']._options = None +_CAMPAIGNEXPERIMENT.fields_by_name['status']._options = None +_CAMPAIGNEXPERIMENT.fields_by_name['long_running_operation']._options = None +_CAMPAIGNEXPERIMENT._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/resources/hotel_group_view_pb2_grpc.py b/google/ads/google_ads/v4/proto/resources/campaign_experiment_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/resources/hotel_group_view_pb2_grpc.py rename to google/ads/google_ads/v4/proto/resources/campaign_experiment_pb2_grpc.py diff --git a/google/ads/google_ads/v4/proto/resources/campaign_extension_setting_pb2.py b/google/ads/google_ads/v4/proto/resources/campaign_extension_setting_pb2.py new file mode 100644 index 000000000..6657f32a3 --- /dev/null +++ b/google/ads/google_ads/v4/proto/resources/campaign_extension_setting_pb2.py @@ -0,0 +1,140 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/resources/campaign_extension_setting.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.ads.google_ads.v4.proto.enums import extension_setting_device_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_extension__setting__device__pb2 +from google.ads.google_ads.v4.proto.enums import extension_type_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_extension__type__pb2 +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 +from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/resources/campaign_extension_setting.proto', + package='google.ads.googleads.v4.resources', + syntax='proto3', + serialized_options=_b('\n%com.google.ads.googleads.v4.resourcesB\035CampaignExtensionSettingProtoP\001ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v4/resources;resources\242\002\003GAA\252\002!Google.Ads.GoogleAds.V4.Resources\312\002!Google\\Ads\\GoogleAds\\V4\\Resources\352\002%Google::Ads::GoogleAds::V4::Resources'), + serialized_pb=_b('\nHgoogle/ads/googleads_v4/proto/resources/campaign_extension_setting.proto\x12!google.ads.googleads.v4.resources\x1a\x42google/ads/googleads_v4/proto/enums/extension_setting_device.proto\x1a\x38google/ads/googleads_v4/proto/enums/extension_type.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1cgoogle/api/annotations.proto\"\xfa\x04\n\x18\x43\x61mpaignExtensionSetting\x12P\n\rresource_name\x18\x01 \x01(\tB9\xe0\x41\x05\xfa\x41\x33\n1googleads.googleapis.com/CampaignExtensionSetting\x12[\n\x0e\x65xtension_type\x18\x02 \x01(\x0e\x32>.google.ads.googleads.v4.enums.ExtensionTypeEnum.ExtensionTypeB\x03\xe0\x41\x05\x12Y\n\x08\x63\x61mpaign\x18\x03 \x01(\x0b\x32\x1c.google.protobuf.StringValueB)\xe0\x41\x05\xfa\x41#\n!googleads.googleapis.com/Campaign\x12k\n\x14\x65xtension_feed_items\x18\x04 \x03(\x0b\x32\x1c.google.protobuf.StringValueB/\xfa\x41,\n*googleads.googleapis.com/ExtensionFeedItem\x12`\n\x06\x64\x65vice\x18\x05 \x01(\x0e\x32P.google.ads.googleads.v4.enums.ExtensionSettingDeviceEnum.ExtensionSettingDevice:\x84\x01\xea\x41\x80\x01\n1googleads.googleapis.com/CampaignExtensionSetting\x12Kcustomers/{customer}/campaignExtensionSettings/{campaign_extension_setting}B\x8a\x02\n%com.google.ads.googleads.v4.resourcesB\x1d\x43\x61mpaignExtensionSettingProtoP\x01ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v4/resources;resources\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V4.Resources\xca\x02!Google\\Ads\\GoogleAds\\V4\\Resources\xea\x02%Google::Ads::GoogleAds::V4::Resourcesb\x06proto3') + , + dependencies=[google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_extension__setting__device__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_extension__type__pb2.DESCRIPTOR,google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_api_dot_resource__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + + +_CAMPAIGNEXTENSIONSETTING = _descriptor.Descriptor( + name='CampaignExtensionSetting', + full_name='google.ads.googleads.v4.resources.CampaignExtensionSetting', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.resources.CampaignExtensionSetting.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005\372A3\n1googleads.googleapis.com/CampaignExtensionSetting'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='extension_type', full_name='google.ads.googleads.v4.resources.CampaignExtensionSetting.extension_type', index=1, + number=2, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='campaign', full_name='google.ads.googleads.v4.resources.CampaignExtensionSetting.campaign', index=2, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005\372A#\n!googleads.googleapis.com/Campaign'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='extension_feed_items', full_name='google.ads.googleads.v4.resources.CampaignExtensionSetting.extension_feed_items', index=3, + number=4, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\372A,\n*googleads.googleapis.com/ExtensionFeedItem'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='device', full_name='google.ads.googleads.v4.resources.CampaignExtensionSetting.device', index=4, + number=5, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=_b('\352A\200\001\n1googleads.googleapis.com/CampaignExtensionSetting\022Kcustomers/{customer}/campaignExtensionSettings/{campaign_extension_setting}'), + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=360, + serialized_end=994, +) + +_CAMPAIGNEXTENSIONSETTING.fields_by_name['extension_type'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_extension__type__pb2._EXTENSIONTYPEENUM_EXTENSIONTYPE +_CAMPAIGNEXTENSIONSETTING.fields_by_name['campaign'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_CAMPAIGNEXTENSIONSETTING.fields_by_name['extension_feed_items'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_CAMPAIGNEXTENSIONSETTING.fields_by_name['device'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_extension__setting__device__pb2._EXTENSIONSETTINGDEVICEENUM_EXTENSIONSETTINGDEVICE +DESCRIPTOR.message_types_by_name['CampaignExtensionSetting'] = _CAMPAIGNEXTENSIONSETTING +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +CampaignExtensionSetting = _reflection.GeneratedProtocolMessageType('CampaignExtensionSetting', (_message.Message,), dict( + DESCRIPTOR = _CAMPAIGNEXTENSIONSETTING, + __module__ = 'google.ads.googleads_v4.proto.resources.campaign_extension_setting_pb2' + , + __doc__ = """A campaign extension setting. + + + Attributes: + resource_name: + Immutable. The resource name of the campaign extension + setting. CampaignExtensionSetting resource names have the + form: ``customers/{customer_id}/campaignExtensionSettings/{ca + mpaign_id}~{extension_type}`` + extension_type: + Immutable. The extension type of the customer extension + setting. + campaign: + Immutable. The resource name of the campaign. The linked + extension feed items will serve under this campaign. Campaign + resource names have the form: + ``customers/{customer_id}/campaigns/{campaign_id}`` + extension_feed_items: + The resource names of the extension feed items to serve under + the campaign. ExtensionFeedItem resource names have the form: + ``customers/{customer_id}/extensionFeedItems/{feed_item_id}`` + device: + The device for which the extensions will serve. Optional. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.resources.CampaignExtensionSetting) + )) +_sym_db.RegisterMessage(CampaignExtensionSetting) + + +DESCRIPTOR._options = None +_CAMPAIGNEXTENSIONSETTING.fields_by_name['resource_name']._options = None +_CAMPAIGNEXTENSIONSETTING.fields_by_name['extension_type']._options = None +_CAMPAIGNEXTENSIONSETTING.fields_by_name['campaign']._options = None +_CAMPAIGNEXTENSIONSETTING.fields_by_name['extension_feed_items']._options = None +_CAMPAIGNEXTENSIONSETTING._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/resources/hotel_performance_view_pb2_grpc.py b/google/ads/google_ads/v4/proto/resources/campaign_extension_setting_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/resources/hotel_performance_view_pb2_grpc.py rename to google/ads/google_ads/v4/proto/resources/campaign_extension_setting_pb2_grpc.py diff --git a/google/ads/google_ads/v4/proto/resources/campaign_feed_pb2.py b/google/ads/google_ads/v4/proto/resources/campaign_feed_pb2.py new file mode 100644 index 000000000..eb8d1eb61 --- /dev/null +++ b/google/ads/google_ads/v4/proto/resources/campaign_feed_pb2.py @@ -0,0 +1,148 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/resources/campaign_feed.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.ads.google_ads.v4.proto.common import matching_function_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_matching__function__pb2 +from google.ads.google_ads.v4.proto.enums import feed_link_status_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_feed__link__status__pb2 +from google.ads.google_ads.v4.proto.enums import placeholder_type_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_placeholder__type__pb2 +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 +from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/resources/campaign_feed.proto', + package='google.ads.googleads.v4.resources', + syntax='proto3', + serialized_options=_b('\n%com.google.ads.googleads.v4.resourcesB\021CampaignFeedProtoP\001ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v4/resources;resources\242\002\003GAA\252\002!Google.Ads.GoogleAds.V4.Resources\312\002!Google\\Ads\\GoogleAds\\V4\\Resources\352\002%Google::Ads::GoogleAds::V4::Resources'), + serialized_pb=_b('\n;google/ads/googleads_v4/proto/resources/campaign_feed.proto\x12!google.ads.googleads.v4.resources\x1agoogle/ads/googleads_v4/proto/enums/location_source_type.proto\x1a\x42google/ads/googleads_v4/proto/enums/negative_geo_target_type.proto\x1a@google/ads/googleads_v4/proto/enums/optimization_goal_type.proto\x1a\x36google/ads/googleads_v4/proto/enums/payment_mode.proto\x1a\x42google/ads/googleads_v4/proto/enums/positive_geo_target_type.proto\x1aHgoogle/ads/googleads_v4/proto/enums/vanity_pharma_display_url_mode.proto\x1a.google.ads.googleads.v4.resources.Campaign.AppCampaignSetting\x12\\\n\x06labels\x18\x35 \x03(\x0b\x32\x1c.google.protobuf.StringValueB.\xe0\x41\x03\xfa\x41(\n&googleads.googleapis.com/CampaignLabel\x12n\n\x0f\x65xperiment_type\x18\x11 \x01(\x0e\x32P.google.ads.googleads.v4.enums.CampaignExperimentTypeEnum.CampaignExperimentTypeB\x03\xe0\x41\x03\x12^\n\rbase_campaign\x18\x1c \x01(\x0b\x32\x1c.google.protobuf.StringValueB)\xe0\x41\x03\xfa\x41#\n!googleads.googleapis.com/Campaign\x12\x63\n\x0f\x63\x61mpaign_budget\x18\x06 \x01(\x0b\x32\x1c.google.protobuf.StringValueB,\xfa\x41)\n\'googleads.googleapis.com/CampaignBudget\x12n\n\x15\x62idding_strategy_type\x18\x16 \x01(\x0e\x32J.google.ads.googleads.v4.enums.BiddingStrategyTypeEnum.BiddingStrategyTypeB\x03\xe0\x41\x03\x12\x30\n\nstart_date\x18\x13 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12.\n\x08\x65nd_date\x18\x14 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x36\n\x10\x66inal_url_suffix\x18& \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12I\n\x0e\x66requency_caps\x18( \x03(\x0b\x32\x31.google.ads.googleads.v4.common.FrequencyCapEntry\x12}\n\x1evideo_brand_safety_suitability\x18* \x01(\x0e\x32P.google.ads.googleads.v4.enums.BrandSafetySuitabilityEnum.BrandSafetySuitabilityB\x03\xe0\x41\x03\x12O\n\rvanity_pharma\x18, \x01(\x0b\x32\x38.google.ads.googleads.v4.resources.Campaign.VanityPharma\x12\x61\n\x16selective_optimization\x18- \x01(\x0b\x32\x41.google.ads.googleads.v4.resources.Campaign.SelectiveOptimization\x12\x66\n\x19optimization_goal_setting\x18\x36 \x01(\x0b\x32\x43.google.ads.googleads.v4.resources.Campaign.OptimizationGoalSetting\x12Z\n\x10tracking_setting\x18. \x01(\x0b\x32;.google.ads.googleads.v4.resources.Campaign.TrackingSettingB\x03\xe0\x41\x03\x12P\n\x0cpayment_mode\x18\x34 \x01(\x0e\x32:.google.ads.googleads.v4.enums.PaymentModeEnum.PaymentMode\x12=\n\x12optimization_score\x18\x37 \x01(\x0b\x32\x1c.google.protobuf.DoubleValueB\x03\xe0\x41\x03\x12g\n\x10\x62idding_strategy\x18\x17 \x01(\x0b\x32\x1c.google.protobuf.StringValueB-\xfa\x41*\n(googleads.googleapis.com/BiddingStrategyH\x00\x12@\n\ncommission\x18\x31 \x01(\x0b\x32*.google.ads.googleads.v4.common.CommissionH\x00\x12?\n\nmanual_cpc\x18\x18 \x01(\x0b\x32).google.ads.googleads.v4.common.ManualCpcH\x00\x12?\n\nmanual_cpm\x18\x19 \x01(\x0b\x32).google.ads.googleads.v4.common.ManualCpmH\x00\x12\x44\n\nmanual_cpv\x18% \x01(\x0b\x32).google.ads.googleads.v4.common.ManualCpvB\x03\xe0\x41\x03H\x00\x12S\n\x14maximize_conversions\x18\x1e \x01(\x0b\x32\x33.google.ads.googleads.v4.common.MaximizeConversionsH\x00\x12\\\n\x19maximize_conversion_value\x18\x1f \x01(\x0b\x32\x37.google.ads.googleads.v4.common.MaximizeConversionValueH\x00\x12?\n\ntarget_cpa\x18\x1a \x01(\x0b\x32).google.ads.googleads.v4.common.TargetCpaH\x00\x12X\n\x17target_impression_share\x18\x30 \x01(\x0b\x32\x35.google.ads.googleads.v4.common.TargetImpressionShareH\x00\x12\x41\n\x0btarget_roas\x18\x1d \x01(\x0b\x32*.google.ads.googleads.v4.common.TargetRoasH\x00\x12\x43\n\x0ctarget_spend\x18\x1b \x01(\x0b\x32+.google.ads.googleads.v4.common.TargetSpendH\x00\x12\x41\n\x0bpercent_cpc\x18\" \x01(\x0b\x32*.google.ads.googleads.v4.common.PercentCpcH\x00\x12?\n\ntarget_cpm\x18) \x01(\x0b\x32).google.ads.googleads.v4.common.TargetCpmH\x00\x1a\x85\x02\n\x0fNetworkSettings\x12\x38\n\x14target_google_search\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.BoolValue\x12\x39\n\x15target_search_network\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.BoolValue\x12:\n\x16target_content_network\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.BoolValue\x12\x41\n\x1dtarget_partner_search_network\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.BoolValue\x1aM\n\x10HotelSettingInfo\x12\x39\n\x0fhotel_center_id\x18\x01 \x01(\x0b\x32\x1b.google.protobuf.Int64ValueB\x03\xe0\x41\x05\x1a~\n\x14LocalCampaignSetting\x12\x66\n\x14location_source_type\x18\x01 \x01(\x0e\x32H.google.ads.googleads.v4.enums.LocationSourceTypeEnum.LocationSourceType\x1a\xba\x02\n\x12\x41ppCampaignSetting\x12\x8c\x01\n\x1a\x62idding_strategy_goal_type\x18\x01 \x01(\x0e\x32h.google.ads.googleads.v4.enums.AppCampaignBiddingStrategyGoalTypeEnum.AppCampaignBiddingStrategyGoalType\x12\x31\n\x06\x61pp_id\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValueB\x03\xe0\x41\x05\x12\x62\n\tapp_store\x18\x03 \x01(\x0e\x32J.google.ads.googleads.v4.enums.AppCampaignAppStoreEnum.AppCampaignAppStoreB\x03\xe0\x41\x05\x1a\x91\x02\n\x17\x44ynamicSearchAdsSetting\x12\x31\n\x0b\x64omain_name\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x33\n\rlanguage_code\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12:\n\x16use_supplied_urls_only\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.BoolValue\x12R\n\x05\x66\x65\x65\x64s\x18\x05 \x03(\x0b\x32\x1c.google.protobuf.StringValueB%\xe0\x41\x03\xfa\x41\x1f\n\x1dgoogleads.googleapis.com/Feed\x1a\x81\x01\n\x15SelectiveOptimization\x12h\n\x12\x63onversion_actions\x18\x01 \x03(\x0b\x32\x1c.google.protobuf.StringValueB.\xfa\x41+\n)googleads.googleapis.com/ConversionAction\x1a\xec\x01\n\x0fShoppingSetting\x12\x35\n\x0bmerchant_id\x18\x01 \x01(\x0b\x32\x1b.google.protobuf.Int64ValueB\x03\xe0\x41\x05\x12\x38\n\rsales_country\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValueB\x03\xe0\x41\x05\x12\x36\n\x11\x63\x61mpaign_priority\x18\x03 \x01(\x0b\x32\x1b.google.protobuf.Int32Value\x12\x30\n\x0c\x65nable_local\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.BoolValue\x1aJ\n\x0fTrackingSetting\x12\x37\n\x0ctracking_url\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValueB\x03\xe0\x41\x03\x1a\xfa\x01\n\x14GeoTargetTypeSetting\x12p\n\x18positive_geo_target_type\x18\x01 \x01(\x0e\x32N.google.ads.googleads.v4.enums.PositiveGeoTargetTypeEnum.PositiveGeoTargetType\x12p\n\x18negative_geo_target_type\x18\x02 \x01(\x0e\x32N.google.ads.googleads.v4.enums.NegativeGeoTargetTypeEnum.NegativeGeoTargetType\x1a\x88\x01\n\x17OptimizationGoalSetting\x12m\n\x17optimization_goal_types\x18\x01 \x03(\x0e\x32L.google.ads.googleads.v4.enums.OptimizationGoalTypeEnum.OptimizationGoalType\x1a\xf3\x01\n\x0cVanityPharma\x12\x80\x01\n\x1evanity_pharma_display_url_mode\x18\x01 \x01(\x0e\x32X.google.ads.googleads.v4.enums.VanityPharmaDisplayUrlModeEnum.VanityPharmaDisplayUrlMode\x12`\n\x12vanity_pharma_text\x18\x02 \x01(\x0e\x32\x44.google.ads.googleads.v4.enums.VanityPharmaTextEnum.VanityPharmaText:Q\xea\x41N\n!googleads.googleapis.com/Campaign\x12)customers/{customer}/campaigns/{campaign}B\x1b\n\x19\x63\x61mpaign_bidding_strategyB\xfa\x01\n%com.google.ads.googleads.v4.resourcesB\rCampaignProtoP\x01ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v4/resources;resources\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V4.Resources\xca\x02!Google\\Ads\\GoogleAds\\V4\\Resources\xea\x02%Google::Ads::GoogleAds::V4::Resourcesb\x06proto3') + , + dependencies=[google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_bidding__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_custom__parameter__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_frequency__cap__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_real__time__bidding__setting__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_targeting__setting__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_ad__serving__optimization__status__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_advertising__channel__sub__type__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_advertising__channel__type__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_app__campaign__app__store__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_app__campaign__bidding__strategy__goal__type__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_bidding__strategy__type__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_brand__safety__suitability__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_campaign__experiment__type__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_campaign__serving__status__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_campaign__status__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_location__source__type__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_negative__geo__target__type__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_optimization__goal__type__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_payment__mode__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_positive__geo__target__type__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_vanity__pharma__display__url__mode__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_vanity__pharma__text__pb2.DESCRIPTOR,google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_api_dot_resource__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + + +_CAMPAIGN_NETWORKSETTINGS = _descriptor.Descriptor( + name='NetworkSettings', + full_name='google.ads.googleads.v4.resources.Campaign.NetworkSettings', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='target_google_search', full_name='google.ads.googleads.v4.resources.Campaign.NetworkSettings.target_google_search', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='target_search_network', full_name='google.ads.googleads.v4.resources.Campaign.NetworkSettings.target_search_network', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='target_content_network', full_name='google.ads.googleads.v4.resources.Campaign.NetworkSettings.target_content_network', index=2, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='target_partner_search_network', full_name='google.ads.googleads.v4.resources.Campaign.NetworkSettings.target_partner_search_network', index=3, + number=4, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=5747, + serialized_end=6008, +) + +_CAMPAIGN_HOTELSETTINGINFO = _descriptor.Descriptor( + name='HotelSettingInfo', + full_name='google.ads.googleads.v4.resources.Campaign.HotelSettingInfo', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='hotel_center_id', full_name='google.ads.googleads.v4.resources.Campaign.HotelSettingInfo.hotel_center_id', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=6010, + serialized_end=6087, +) + +_CAMPAIGN_LOCALCAMPAIGNSETTING = _descriptor.Descriptor( + name='LocalCampaignSetting', + full_name='google.ads.googleads.v4.resources.Campaign.LocalCampaignSetting', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='location_source_type', full_name='google.ads.googleads.v4.resources.Campaign.LocalCampaignSetting.location_source_type', index=0, + number=1, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=6089, + serialized_end=6215, +) + +_CAMPAIGN_APPCAMPAIGNSETTING = _descriptor.Descriptor( + name='AppCampaignSetting', + full_name='google.ads.googleads.v4.resources.Campaign.AppCampaignSetting', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='bidding_strategy_goal_type', full_name='google.ads.googleads.v4.resources.Campaign.AppCampaignSetting.bidding_strategy_goal_type', index=0, + number=1, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='app_id', full_name='google.ads.googleads.v4.resources.Campaign.AppCampaignSetting.app_id', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='app_store', full_name='google.ads.googleads.v4.resources.Campaign.AppCampaignSetting.app_store', index=2, + number=3, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=6218, + serialized_end=6532, +) + +_CAMPAIGN_DYNAMICSEARCHADSSETTING = _descriptor.Descriptor( + name='DynamicSearchAdsSetting', + full_name='google.ads.googleads.v4.resources.Campaign.DynamicSearchAdsSetting', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='domain_name', full_name='google.ads.googleads.v4.resources.Campaign.DynamicSearchAdsSetting.domain_name', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='language_code', full_name='google.ads.googleads.v4.resources.Campaign.DynamicSearchAdsSetting.language_code', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='use_supplied_urls_only', full_name='google.ads.googleads.v4.resources.Campaign.DynamicSearchAdsSetting.use_supplied_urls_only', index=2, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='feeds', full_name='google.ads.googleads.v4.resources.Campaign.DynamicSearchAdsSetting.feeds', index=3, + number=5, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003\372A\037\n\035googleads.googleapis.com/Feed'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=6535, + serialized_end=6808, +) + +_CAMPAIGN_SELECTIVEOPTIMIZATION = _descriptor.Descriptor( + name='SelectiveOptimization', + full_name='google.ads.googleads.v4.resources.Campaign.SelectiveOptimization', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='conversion_actions', full_name='google.ads.googleads.v4.resources.Campaign.SelectiveOptimization.conversion_actions', index=0, + number=1, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\372A+\n)googleads.googleapis.com/ConversionAction'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=6811, + serialized_end=6940, +) + +_CAMPAIGN_SHOPPINGSETTING = _descriptor.Descriptor( + name='ShoppingSetting', + full_name='google.ads.googleads.v4.resources.Campaign.ShoppingSetting', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='merchant_id', full_name='google.ads.googleads.v4.resources.Campaign.ShoppingSetting.merchant_id', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='sales_country', full_name='google.ads.googleads.v4.resources.Campaign.ShoppingSetting.sales_country', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='campaign_priority', full_name='google.ads.googleads.v4.resources.Campaign.ShoppingSetting.campaign_priority', index=2, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='enable_local', full_name='google.ads.googleads.v4.resources.Campaign.ShoppingSetting.enable_local', index=3, + number=4, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=6943, + serialized_end=7179, +) + +_CAMPAIGN_TRACKINGSETTING = _descriptor.Descriptor( + name='TrackingSetting', + full_name='google.ads.googleads.v4.resources.Campaign.TrackingSetting', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='tracking_url', full_name='google.ads.googleads.v4.resources.Campaign.TrackingSetting.tracking_url', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=7181, + serialized_end=7255, +) + +_CAMPAIGN_GEOTARGETTYPESETTING = _descriptor.Descriptor( + name='GeoTargetTypeSetting', + full_name='google.ads.googleads.v4.resources.Campaign.GeoTargetTypeSetting', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='positive_geo_target_type', full_name='google.ads.googleads.v4.resources.Campaign.GeoTargetTypeSetting.positive_geo_target_type', index=0, + number=1, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='negative_geo_target_type', full_name='google.ads.googleads.v4.resources.Campaign.GeoTargetTypeSetting.negative_geo_target_type', index=1, + number=2, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=7258, + serialized_end=7508, +) + +_CAMPAIGN_OPTIMIZATIONGOALSETTING = _descriptor.Descriptor( + name='OptimizationGoalSetting', + full_name='google.ads.googleads.v4.resources.Campaign.OptimizationGoalSetting', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='optimization_goal_types', full_name='google.ads.googleads.v4.resources.Campaign.OptimizationGoalSetting.optimization_goal_types', index=0, + number=1, type=14, cpp_type=8, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=7511, + serialized_end=7647, +) + +_CAMPAIGN_VANITYPHARMA = _descriptor.Descriptor( + name='VanityPharma', + full_name='google.ads.googleads.v4.resources.Campaign.VanityPharma', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='vanity_pharma_display_url_mode', full_name='google.ads.googleads.v4.resources.Campaign.VanityPharma.vanity_pharma_display_url_mode', index=0, + number=1, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='vanity_pharma_text', full_name='google.ads.googleads.v4.resources.Campaign.VanityPharma.vanity_pharma_text', index=1, + number=2, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=7650, + serialized_end=7893, +) + +_CAMPAIGN = _descriptor.Descriptor( + name='Campaign', + full_name='google.ads.googleads.v4.resources.Campaign', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.resources.Campaign.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005\372A#\n!googleads.googleapis.com/Campaign'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='id', full_name='google.ads.googleads.v4.resources.Campaign.id', index=1, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='name', full_name='google.ads.googleads.v4.resources.Campaign.name', index=2, + number=4, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='status', full_name='google.ads.googleads.v4.resources.Campaign.status', index=3, + number=5, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='serving_status', full_name='google.ads.googleads.v4.resources.Campaign.serving_status', index=4, + number=21, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='ad_serving_optimization_status', full_name='google.ads.googleads.v4.resources.Campaign.ad_serving_optimization_status', index=5, + number=8, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='advertising_channel_type', full_name='google.ads.googleads.v4.resources.Campaign.advertising_channel_type', index=6, + number=9, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='advertising_channel_sub_type', full_name='google.ads.googleads.v4.resources.Campaign.advertising_channel_sub_type', index=7, + number=10, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='tracking_url_template', full_name='google.ads.googleads.v4.resources.Campaign.tracking_url_template', index=8, + number=11, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='url_custom_parameters', full_name='google.ads.googleads.v4.resources.Campaign.url_custom_parameters', index=9, + number=12, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='real_time_bidding_setting', full_name='google.ads.googleads.v4.resources.Campaign.real_time_bidding_setting', index=10, + number=39, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='network_settings', full_name='google.ads.googleads.v4.resources.Campaign.network_settings', index=11, + number=14, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='hotel_setting', full_name='google.ads.googleads.v4.resources.Campaign.hotel_setting', index=12, + number=32, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='dynamic_search_ads_setting', full_name='google.ads.googleads.v4.resources.Campaign.dynamic_search_ads_setting', index=13, + number=33, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='shopping_setting', full_name='google.ads.googleads.v4.resources.Campaign.shopping_setting', index=14, + number=36, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='targeting_setting', full_name='google.ads.googleads.v4.resources.Campaign.targeting_setting', index=15, + number=43, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='geo_target_type_setting', full_name='google.ads.googleads.v4.resources.Campaign.geo_target_type_setting', index=16, + number=47, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='local_campaign_setting', full_name='google.ads.googleads.v4.resources.Campaign.local_campaign_setting', index=17, + number=50, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='app_campaign_setting', full_name='google.ads.googleads.v4.resources.Campaign.app_campaign_setting', index=18, + number=51, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='labels', full_name='google.ads.googleads.v4.resources.Campaign.labels', index=19, + number=53, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003\372A(\n&googleads.googleapis.com/CampaignLabel'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='experiment_type', full_name='google.ads.googleads.v4.resources.Campaign.experiment_type', index=20, + number=17, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='base_campaign', full_name='google.ads.googleads.v4.resources.Campaign.base_campaign', index=21, + number=28, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003\372A#\n!googleads.googleapis.com/Campaign'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='campaign_budget', full_name='google.ads.googleads.v4.resources.Campaign.campaign_budget', index=22, + number=6, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\372A)\n\'googleads.googleapis.com/CampaignBudget'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='bidding_strategy_type', full_name='google.ads.googleads.v4.resources.Campaign.bidding_strategy_type', index=23, + number=22, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='start_date', full_name='google.ads.googleads.v4.resources.Campaign.start_date', index=24, + number=19, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='end_date', full_name='google.ads.googleads.v4.resources.Campaign.end_date', index=25, + number=20, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='final_url_suffix', full_name='google.ads.googleads.v4.resources.Campaign.final_url_suffix', index=26, + number=38, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='frequency_caps', full_name='google.ads.googleads.v4.resources.Campaign.frequency_caps', index=27, + number=40, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='video_brand_safety_suitability', full_name='google.ads.googleads.v4.resources.Campaign.video_brand_safety_suitability', index=28, + number=42, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='vanity_pharma', full_name='google.ads.googleads.v4.resources.Campaign.vanity_pharma', index=29, + number=44, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='selective_optimization', full_name='google.ads.googleads.v4.resources.Campaign.selective_optimization', index=30, + number=45, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='optimization_goal_setting', full_name='google.ads.googleads.v4.resources.Campaign.optimization_goal_setting', index=31, + number=54, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='tracking_setting', full_name='google.ads.googleads.v4.resources.Campaign.tracking_setting', index=32, + number=46, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='payment_mode', full_name='google.ads.googleads.v4.resources.Campaign.payment_mode', index=33, + number=52, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='optimization_score', full_name='google.ads.googleads.v4.resources.Campaign.optimization_score', index=34, + number=55, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='bidding_strategy', full_name='google.ads.googleads.v4.resources.Campaign.bidding_strategy', index=35, + number=23, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\372A*\n(googleads.googleapis.com/BiddingStrategy'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='commission', full_name='google.ads.googleads.v4.resources.Campaign.commission', index=36, + number=49, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='manual_cpc', full_name='google.ads.googleads.v4.resources.Campaign.manual_cpc', index=37, + number=24, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='manual_cpm', full_name='google.ads.googleads.v4.resources.Campaign.manual_cpm', index=38, + number=25, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='manual_cpv', full_name='google.ads.googleads.v4.resources.Campaign.manual_cpv', index=39, + number=37, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='maximize_conversions', full_name='google.ads.googleads.v4.resources.Campaign.maximize_conversions', index=40, + number=30, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='maximize_conversion_value', full_name='google.ads.googleads.v4.resources.Campaign.maximize_conversion_value', index=41, + number=31, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='target_cpa', full_name='google.ads.googleads.v4.resources.Campaign.target_cpa', index=42, + number=26, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='target_impression_share', full_name='google.ads.googleads.v4.resources.Campaign.target_impression_share', index=43, + number=48, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='target_roas', full_name='google.ads.googleads.v4.resources.Campaign.target_roas', index=44, + number=29, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='target_spend', full_name='google.ads.googleads.v4.resources.Campaign.target_spend', index=45, + number=27, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='percent_cpc', full_name='google.ads.googleads.v4.resources.Campaign.percent_cpc', index=46, + number=34, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='target_cpm', full_name='google.ads.googleads.v4.resources.Campaign.target_cpm', index=47, + number=41, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[_CAMPAIGN_NETWORKSETTINGS, _CAMPAIGN_HOTELSETTINGINFO, _CAMPAIGN_LOCALCAMPAIGNSETTING, _CAMPAIGN_APPCAMPAIGNSETTING, _CAMPAIGN_DYNAMICSEARCHADSSETTING, _CAMPAIGN_SELECTIVEOPTIMIZATION, _CAMPAIGN_SHOPPINGSETTING, _CAMPAIGN_TRACKINGSETTING, _CAMPAIGN_GEOTARGETTYPESETTING, _CAMPAIGN_OPTIMIZATIONGOALSETTING, _CAMPAIGN_VANITYPHARMA, ], + enum_types=[ + ], + serialized_options=_b('\352AN\n!googleads.googleapis.com/Campaign\022)customers/{customer}/campaigns/{campaign}'), + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name='campaign_bidding_strategy', full_name='google.ads.googleads.v4.resources.Campaign.campaign_bidding_strategy', + index=0, containing_type=None, fields=[]), + ], + serialized_start=1667, + serialized_end=8005, +) + +_CAMPAIGN_NETWORKSETTINGS.fields_by_name['target_google_search'].message_type = google_dot_protobuf_dot_wrappers__pb2._BOOLVALUE +_CAMPAIGN_NETWORKSETTINGS.fields_by_name['target_search_network'].message_type = google_dot_protobuf_dot_wrappers__pb2._BOOLVALUE +_CAMPAIGN_NETWORKSETTINGS.fields_by_name['target_content_network'].message_type = google_dot_protobuf_dot_wrappers__pb2._BOOLVALUE +_CAMPAIGN_NETWORKSETTINGS.fields_by_name['target_partner_search_network'].message_type = google_dot_protobuf_dot_wrappers__pb2._BOOLVALUE +_CAMPAIGN_NETWORKSETTINGS.containing_type = _CAMPAIGN +_CAMPAIGN_HOTELSETTINGINFO.fields_by_name['hotel_center_id'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_CAMPAIGN_HOTELSETTINGINFO.containing_type = _CAMPAIGN +_CAMPAIGN_LOCALCAMPAIGNSETTING.fields_by_name['location_source_type'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_location__source__type__pb2._LOCATIONSOURCETYPEENUM_LOCATIONSOURCETYPE +_CAMPAIGN_LOCALCAMPAIGNSETTING.containing_type = _CAMPAIGN +_CAMPAIGN_APPCAMPAIGNSETTING.fields_by_name['bidding_strategy_goal_type'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_app__campaign__bidding__strategy__goal__type__pb2._APPCAMPAIGNBIDDINGSTRATEGYGOALTYPEENUM_APPCAMPAIGNBIDDINGSTRATEGYGOALTYPE +_CAMPAIGN_APPCAMPAIGNSETTING.fields_by_name['app_id'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_CAMPAIGN_APPCAMPAIGNSETTING.fields_by_name['app_store'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_app__campaign__app__store__pb2._APPCAMPAIGNAPPSTOREENUM_APPCAMPAIGNAPPSTORE +_CAMPAIGN_APPCAMPAIGNSETTING.containing_type = _CAMPAIGN +_CAMPAIGN_DYNAMICSEARCHADSSETTING.fields_by_name['domain_name'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_CAMPAIGN_DYNAMICSEARCHADSSETTING.fields_by_name['language_code'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_CAMPAIGN_DYNAMICSEARCHADSSETTING.fields_by_name['use_supplied_urls_only'].message_type = google_dot_protobuf_dot_wrappers__pb2._BOOLVALUE +_CAMPAIGN_DYNAMICSEARCHADSSETTING.fields_by_name['feeds'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_CAMPAIGN_DYNAMICSEARCHADSSETTING.containing_type = _CAMPAIGN +_CAMPAIGN_SELECTIVEOPTIMIZATION.fields_by_name['conversion_actions'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_CAMPAIGN_SELECTIVEOPTIMIZATION.containing_type = _CAMPAIGN +_CAMPAIGN_SHOPPINGSETTING.fields_by_name['merchant_id'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_CAMPAIGN_SHOPPINGSETTING.fields_by_name['sales_country'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_CAMPAIGN_SHOPPINGSETTING.fields_by_name['campaign_priority'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT32VALUE +_CAMPAIGN_SHOPPINGSETTING.fields_by_name['enable_local'].message_type = google_dot_protobuf_dot_wrappers__pb2._BOOLVALUE +_CAMPAIGN_SHOPPINGSETTING.containing_type = _CAMPAIGN +_CAMPAIGN_TRACKINGSETTING.fields_by_name['tracking_url'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_CAMPAIGN_TRACKINGSETTING.containing_type = _CAMPAIGN +_CAMPAIGN_GEOTARGETTYPESETTING.fields_by_name['positive_geo_target_type'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_positive__geo__target__type__pb2._POSITIVEGEOTARGETTYPEENUM_POSITIVEGEOTARGETTYPE +_CAMPAIGN_GEOTARGETTYPESETTING.fields_by_name['negative_geo_target_type'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_negative__geo__target__type__pb2._NEGATIVEGEOTARGETTYPEENUM_NEGATIVEGEOTARGETTYPE +_CAMPAIGN_GEOTARGETTYPESETTING.containing_type = _CAMPAIGN +_CAMPAIGN_OPTIMIZATIONGOALSETTING.fields_by_name['optimization_goal_types'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_optimization__goal__type__pb2._OPTIMIZATIONGOALTYPEENUM_OPTIMIZATIONGOALTYPE +_CAMPAIGN_OPTIMIZATIONGOALSETTING.containing_type = _CAMPAIGN +_CAMPAIGN_VANITYPHARMA.fields_by_name['vanity_pharma_display_url_mode'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_vanity__pharma__display__url__mode__pb2._VANITYPHARMADISPLAYURLMODEENUM_VANITYPHARMADISPLAYURLMODE +_CAMPAIGN_VANITYPHARMA.fields_by_name['vanity_pharma_text'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_vanity__pharma__text__pb2._VANITYPHARMATEXTENUM_VANITYPHARMATEXT +_CAMPAIGN_VANITYPHARMA.containing_type = _CAMPAIGN +_CAMPAIGN.fields_by_name['id'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_CAMPAIGN.fields_by_name['name'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_CAMPAIGN.fields_by_name['status'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_campaign__status__pb2._CAMPAIGNSTATUSENUM_CAMPAIGNSTATUS +_CAMPAIGN.fields_by_name['serving_status'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_campaign__serving__status__pb2._CAMPAIGNSERVINGSTATUSENUM_CAMPAIGNSERVINGSTATUS +_CAMPAIGN.fields_by_name['ad_serving_optimization_status'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_ad__serving__optimization__status__pb2._ADSERVINGOPTIMIZATIONSTATUSENUM_ADSERVINGOPTIMIZATIONSTATUS +_CAMPAIGN.fields_by_name['advertising_channel_type'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_advertising__channel__type__pb2._ADVERTISINGCHANNELTYPEENUM_ADVERTISINGCHANNELTYPE +_CAMPAIGN.fields_by_name['advertising_channel_sub_type'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_advertising__channel__sub__type__pb2._ADVERTISINGCHANNELSUBTYPEENUM_ADVERTISINGCHANNELSUBTYPE +_CAMPAIGN.fields_by_name['tracking_url_template'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_CAMPAIGN.fields_by_name['url_custom_parameters'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_custom__parameter__pb2._CUSTOMPARAMETER +_CAMPAIGN.fields_by_name['real_time_bidding_setting'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_real__time__bidding__setting__pb2._REALTIMEBIDDINGSETTING +_CAMPAIGN.fields_by_name['network_settings'].message_type = _CAMPAIGN_NETWORKSETTINGS +_CAMPAIGN.fields_by_name['hotel_setting'].message_type = _CAMPAIGN_HOTELSETTINGINFO +_CAMPAIGN.fields_by_name['dynamic_search_ads_setting'].message_type = _CAMPAIGN_DYNAMICSEARCHADSSETTING +_CAMPAIGN.fields_by_name['shopping_setting'].message_type = _CAMPAIGN_SHOPPINGSETTING +_CAMPAIGN.fields_by_name['targeting_setting'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_targeting__setting__pb2._TARGETINGSETTING +_CAMPAIGN.fields_by_name['geo_target_type_setting'].message_type = _CAMPAIGN_GEOTARGETTYPESETTING +_CAMPAIGN.fields_by_name['local_campaign_setting'].message_type = _CAMPAIGN_LOCALCAMPAIGNSETTING +_CAMPAIGN.fields_by_name['app_campaign_setting'].message_type = _CAMPAIGN_APPCAMPAIGNSETTING +_CAMPAIGN.fields_by_name['labels'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_CAMPAIGN.fields_by_name['experiment_type'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_campaign__experiment__type__pb2._CAMPAIGNEXPERIMENTTYPEENUM_CAMPAIGNEXPERIMENTTYPE +_CAMPAIGN.fields_by_name['base_campaign'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_CAMPAIGN.fields_by_name['campaign_budget'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_CAMPAIGN.fields_by_name['bidding_strategy_type'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_bidding__strategy__type__pb2._BIDDINGSTRATEGYTYPEENUM_BIDDINGSTRATEGYTYPE +_CAMPAIGN.fields_by_name['start_date'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_CAMPAIGN.fields_by_name['end_date'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_CAMPAIGN.fields_by_name['final_url_suffix'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_CAMPAIGN.fields_by_name['frequency_caps'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_frequency__cap__pb2._FREQUENCYCAPENTRY +_CAMPAIGN.fields_by_name['video_brand_safety_suitability'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_brand__safety__suitability__pb2._BRANDSAFETYSUITABILITYENUM_BRANDSAFETYSUITABILITY +_CAMPAIGN.fields_by_name['vanity_pharma'].message_type = _CAMPAIGN_VANITYPHARMA +_CAMPAIGN.fields_by_name['selective_optimization'].message_type = _CAMPAIGN_SELECTIVEOPTIMIZATION +_CAMPAIGN.fields_by_name['optimization_goal_setting'].message_type = _CAMPAIGN_OPTIMIZATIONGOALSETTING +_CAMPAIGN.fields_by_name['tracking_setting'].message_type = _CAMPAIGN_TRACKINGSETTING +_CAMPAIGN.fields_by_name['payment_mode'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_payment__mode__pb2._PAYMENTMODEENUM_PAYMENTMODE +_CAMPAIGN.fields_by_name['optimization_score'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE +_CAMPAIGN.fields_by_name['bidding_strategy'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_CAMPAIGN.fields_by_name['commission'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_bidding__pb2._COMMISSION +_CAMPAIGN.fields_by_name['manual_cpc'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_bidding__pb2._MANUALCPC +_CAMPAIGN.fields_by_name['manual_cpm'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_bidding__pb2._MANUALCPM +_CAMPAIGN.fields_by_name['manual_cpv'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_bidding__pb2._MANUALCPV +_CAMPAIGN.fields_by_name['maximize_conversions'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_bidding__pb2._MAXIMIZECONVERSIONS +_CAMPAIGN.fields_by_name['maximize_conversion_value'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_bidding__pb2._MAXIMIZECONVERSIONVALUE +_CAMPAIGN.fields_by_name['target_cpa'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_bidding__pb2._TARGETCPA +_CAMPAIGN.fields_by_name['target_impression_share'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_bidding__pb2._TARGETIMPRESSIONSHARE +_CAMPAIGN.fields_by_name['target_roas'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_bidding__pb2._TARGETROAS +_CAMPAIGN.fields_by_name['target_spend'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_bidding__pb2._TARGETSPEND +_CAMPAIGN.fields_by_name['percent_cpc'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_bidding__pb2._PERCENTCPC +_CAMPAIGN.fields_by_name['target_cpm'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_bidding__pb2._TARGETCPM +_CAMPAIGN.oneofs_by_name['campaign_bidding_strategy'].fields.append( + _CAMPAIGN.fields_by_name['bidding_strategy']) +_CAMPAIGN.fields_by_name['bidding_strategy'].containing_oneof = _CAMPAIGN.oneofs_by_name['campaign_bidding_strategy'] +_CAMPAIGN.oneofs_by_name['campaign_bidding_strategy'].fields.append( + _CAMPAIGN.fields_by_name['commission']) +_CAMPAIGN.fields_by_name['commission'].containing_oneof = _CAMPAIGN.oneofs_by_name['campaign_bidding_strategy'] +_CAMPAIGN.oneofs_by_name['campaign_bidding_strategy'].fields.append( + _CAMPAIGN.fields_by_name['manual_cpc']) +_CAMPAIGN.fields_by_name['manual_cpc'].containing_oneof = _CAMPAIGN.oneofs_by_name['campaign_bidding_strategy'] +_CAMPAIGN.oneofs_by_name['campaign_bidding_strategy'].fields.append( + _CAMPAIGN.fields_by_name['manual_cpm']) +_CAMPAIGN.fields_by_name['manual_cpm'].containing_oneof = _CAMPAIGN.oneofs_by_name['campaign_bidding_strategy'] +_CAMPAIGN.oneofs_by_name['campaign_bidding_strategy'].fields.append( + _CAMPAIGN.fields_by_name['manual_cpv']) +_CAMPAIGN.fields_by_name['manual_cpv'].containing_oneof = _CAMPAIGN.oneofs_by_name['campaign_bidding_strategy'] +_CAMPAIGN.oneofs_by_name['campaign_bidding_strategy'].fields.append( + _CAMPAIGN.fields_by_name['maximize_conversions']) +_CAMPAIGN.fields_by_name['maximize_conversions'].containing_oneof = _CAMPAIGN.oneofs_by_name['campaign_bidding_strategy'] +_CAMPAIGN.oneofs_by_name['campaign_bidding_strategy'].fields.append( + _CAMPAIGN.fields_by_name['maximize_conversion_value']) +_CAMPAIGN.fields_by_name['maximize_conversion_value'].containing_oneof = _CAMPAIGN.oneofs_by_name['campaign_bidding_strategy'] +_CAMPAIGN.oneofs_by_name['campaign_bidding_strategy'].fields.append( + _CAMPAIGN.fields_by_name['target_cpa']) +_CAMPAIGN.fields_by_name['target_cpa'].containing_oneof = _CAMPAIGN.oneofs_by_name['campaign_bidding_strategy'] +_CAMPAIGN.oneofs_by_name['campaign_bidding_strategy'].fields.append( + _CAMPAIGN.fields_by_name['target_impression_share']) +_CAMPAIGN.fields_by_name['target_impression_share'].containing_oneof = _CAMPAIGN.oneofs_by_name['campaign_bidding_strategy'] +_CAMPAIGN.oneofs_by_name['campaign_bidding_strategy'].fields.append( + _CAMPAIGN.fields_by_name['target_roas']) +_CAMPAIGN.fields_by_name['target_roas'].containing_oneof = _CAMPAIGN.oneofs_by_name['campaign_bidding_strategy'] +_CAMPAIGN.oneofs_by_name['campaign_bidding_strategy'].fields.append( + _CAMPAIGN.fields_by_name['target_spend']) +_CAMPAIGN.fields_by_name['target_spend'].containing_oneof = _CAMPAIGN.oneofs_by_name['campaign_bidding_strategy'] +_CAMPAIGN.oneofs_by_name['campaign_bidding_strategy'].fields.append( + _CAMPAIGN.fields_by_name['percent_cpc']) +_CAMPAIGN.fields_by_name['percent_cpc'].containing_oneof = _CAMPAIGN.oneofs_by_name['campaign_bidding_strategy'] +_CAMPAIGN.oneofs_by_name['campaign_bidding_strategy'].fields.append( + _CAMPAIGN.fields_by_name['target_cpm']) +_CAMPAIGN.fields_by_name['target_cpm'].containing_oneof = _CAMPAIGN.oneofs_by_name['campaign_bidding_strategy'] +DESCRIPTOR.message_types_by_name['Campaign'] = _CAMPAIGN +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +Campaign = _reflection.GeneratedProtocolMessageType('Campaign', (_message.Message,), dict( + + NetworkSettings = _reflection.GeneratedProtocolMessageType('NetworkSettings', (_message.Message,), dict( + DESCRIPTOR = _CAMPAIGN_NETWORKSETTINGS, + __module__ = 'google.ads.googleads_v4.proto.resources.campaign_pb2' + , + __doc__ = """The network settings for the campaign. + + + Attributes: + target_google_search: + Whether ads will be served with google.com search results. + target_search_network: + Whether ads will be served on partner sites in the Google + Search Network (requires ``target_google_search`` to also be + ``true``). + target_content_network: + Whether ads will be served on specified placements in the + Google Display Network. Placements are specified using the + Placement criterion. + target_partner_search_network: + Whether ads will be served on the Google Partner Network. This + is available only to some select Google partner accounts. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.resources.Campaign.NetworkSettings) + )) + , + + HotelSettingInfo = _reflection.GeneratedProtocolMessageType('HotelSettingInfo', (_message.Message,), dict( + DESCRIPTOR = _CAMPAIGN_HOTELSETTINGINFO, + __module__ = 'google.ads.googleads_v4.proto.resources.campaign_pb2' + , + __doc__ = """Campaign-level settings for hotel ads. + + + Attributes: + hotel_center_id: + Immutable. The linked Hotel Center account. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.resources.Campaign.HotelSettingInfo) + )) + , + + LocalCampaignSetting = _reflection.GeneratedProtocolMessageType('LocalCampaignSetting', (_message.Message,), dict( + DESCRIPTOR = _CAMPAIGN_LOCALCAMPAIGNSETTING, + __module__ = 'google.ads.googleads_v4.proto.resources.campaign_pb2' + , + __doc__ = """Campaign setting for local campaigns. + + + Attributes: + location_source_type: + The location source type for this local campaign. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.resources.Campaign.LocalCampaignSetting) + )) + , + + AppCampaignSetting = _reflection.GeneratedProtocolMessageType('AppCampaignSetting', (_message.Message,), dict( + DESCRIPTOR = _CAMPAIGN_APPCAMPAIGNSETTING, + __module__ = 'google.ads.googleads_v4.proto.resources.campaign_pb2' + , + __doc__ = """Campaign-level settings for App Campaigns. + + + Attributes: + bidding_strategy_goal_type: + Represents the goal which the bidding strategy of this app + campaign should optimize towards. + app_id: + Immutable. A string that uniquely identifies a mobile + application. + app_store: + Immutable. The application store that distributes this + specific app. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.resources.Campaign.AppCampaignSetting) + )) + , + + DynamicSearchAdsSetting = _reflection.GeneratedProtocolMessageType('DynamicSearchAdsSetting', (_message.Message,), dict( + DESCRIPTOR = _CAMPAIGN_DYNAMICSEARCHADSSETTING, + __module__ = 'google.ads.googleads_v4.proto.resources.campaign_pb2' + , + __doc__ = """The setting for controlling Dynamic Search Ads (DSA). + + + Attributes: + domain_name: + The Internet domain name that this setting represents, e.g., + "google.com" or "www.google.com". + language_code: + The language code specifying the language of the domain, e.g., + "en". + use_supplied_urls_only: + Whether the campaign uses advertiser supplied URLs + exclusively. + feeds: + Output only. The list of page feeds associated with the + campaign. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.resources.Campaign.DynamicSearchAdsSetting) + )) + , + + SelectiveOptimization = _reflection.GeneratedProtocolMessageType('SelectiveOptimization', (_message.Message,), dict( + DESCRIPTOR = _CAMPAIGN_SELECTIVEOPTIMIZATION, + __module__ = 'google.ads.googleads_v4.proto.resources.campaign_pb2' + , + __doc__ = """Selective optimization setting for this campaign, which includes a set + of conversion actions to optimize this campaign towards. + + + Attributes: + conversion_actions: + The selected set of conversion actions for optimizing this + campaign. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.resources.Campaign.SelectiveOptimization) + )) + , + + ShoppingSetting = _reflection.GeneratedProtocolMessageType('ShoppingSetting', (_message.Message,), dict( + DESCRIPTOR = _CAMPAIGN_SHOPPINGSETTING, + __module__ = 'google.ads.googleads_v4.proto.resources.campaign_pb2' + , + __doc__ = """The setting for Shopping campaigns. Defines the universe of products + that can be advertised by the campaign, and how this campaign interacts + with other Shopping campaigns. + + + Attributes: + merchant_id: + Immutable. ID of the Merchant Center account. This field is + required for create operations. This field is immutable for + Shopping campaigns. + sales_country: + Immutable. Sales country of products to include in the + campaign. This field is required for Shopping campaigns. This + field is immutable. This field is optional for non-Shopping + campaigns, but it must be equal to 'ZZ' if set. + campaign_priority: + Priority of the campaign. Campaigns with numerically higher + priorities take precedence over those with lower priorities. + This field is required for Shopping campaigns, with values + between 0 and 2, inclusive. This field is optional for Smart + Shopping campaigns, but must be equal to 3 if set. + enable_local: + Whether to include local products. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.resources.Campaign.ShoppingSetting) + )) + , + + TrackingSetting = _reflection.GeneratedProtocolMessageType('TrackingSetting', (_message.Message,), dict( + DESCRIPTOR = _CAMPAIGN_TRACKINGSETTING, + __module__ = 'google.ads.googleads_v4.proto.resources.campaign_pb2' + , + __doc__ = """Campaign-level settings for tracking information. + + + Attributes: + tracking_url: + Output only. The url used for dynamic tracking. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.resources.Campaign.TrackingSetting) + )) + , + + GeoTargetTypeSetting = _reflection.GeneratedProtocolMessageType('GeoTargetTypeSetting', (_message.Message,), dict( + DESCRIPTOR = _CAMPAIGN_GEOTARGETTYPESETTING, + __module__ = 'google.ads.googleads_v4.proto.resources.campaign_pb2' + , + __doc__ = """Represents a collection of settings related to ads geotargeting. + + + Attributes: + positive_geo_target_type: + The setting used for positive geotargeting in this particular + campaign. + negative_geo_target_type: + The setting used for negative geotargeting in this particular + campaign. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.resources.Campaign.GeoTargetTypeSetting) + )) + , + + OptimizationGoalSetting = _reflection.GeneratedProtocolMessageType('OptimizationGoalSetting', (_message.Message,), dict( + DESCRIPTOR = _CAMPAIGN_OPTIMIZATIONGOALSETTING, + __module__ = 'google.ads.googleads_v4.proto.resources.campaign_pb2' + , + __doc__ = """Optimization goal setting for this campaign, which includes a set of + optimization goal types. + + + Attributes: + optimization_goal_types: + The list of optimization goal types. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.resources.Campaign.OptimizationGoalSetting) + )) + , + + VanityPharma = _reflection.GeneratedProtocolMessageType('VanityPharma', (_message.Message,), dict( + DESCRIPTOR = _CAMPAIGN_VANITYPHARMA, + __module__ = 'google.ads.googleads_v4.proto.resources.campaign_pb2' + , + __doc__ = """Describes how unbranded pharma ads will be displayed. + + + Attributes: + vanity_pharma_display_url_mode: + The display mode for vanity pharma URLs. + vanity_pharma_text: + The text that will be displayed in display URL of the text ad + when website description is the selected display mode for + vanity pharma URLs. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.resources.Campaign.VanityPharma) + )) + , + DESCRIPTOR = _CAMPAIGN, + __module__ = 'google.ads.googleads_v4.proto.resources.campaign_pb2' + , + __doc__ = """A campaign. + + + Attributes: + resource_name: + Immutable. The resource name of the campaign. Campaign + resource names have the form: + ``customers/{customer_id}/campaigns/{campaign_id}`` + id: + Output only. The ID of the campaign. + name: + The name of the campaign. This field is required and should + not be empty when creating new campaigns. It must not contain + any null (code point 0x0), NL line feed (code point 0xA) or + carriage return (code point 0xD) characters. + status: + The status of the campaign. When a new campaign is added, the + status defaults to ENABLED. + serving_status: + Output only. The ad serving status of the campaign. + ad_serving_optimization_status: + The ad serving optimization status of the campaign. + advertising_channel_type: + Immutable. The primary serving target for ads within the + campaign. The targeting options can be refined in + ``network_settings``. This field is required and should not + be empty when creating new campaigns. Can be set only when + creating campaigns. After the campaign is created, the field + can not be changed. + advertising_channel_sub_type: + Immutable. Optional refinement to + ``advertising_channel_type``. Must be a valid sub-type of the + parent channel type. Can be set only when creating campaigns. + After campaign is created, the field can not be changed. + tracking_url_template: + The URL template for constructing a tracking URL. + url_custom_parameters: + The list of mappings used to substitute custom parameter tags + in a ``tracking_url_template``, ``final_urls``, or + ``mobile_final_urls``. + real_time_bidding_setting: + Settings for Real-Time Bidding, a feature only available for + campaigns targeting the Ad Exchange network. + network_settings: + The network settings for the campaign. + hotel_setting: + Immutable. The hotel setting for the campaign. + dynamic_search_ads_setting: + The setting for controlling Dynamic Search Ads (DSA). + shopping_setting: + The setting for controlling Shopping campaigns. + targeting_setting: + Setting for targeting related features. + geo_target_type_setting: + The setting for ads geotargeting. + local_campaign_setting: + The setting for local campaign. + app_campaign_setting: + The setting related to App Campaign. + labels: + Output only. The resource names of labels attached to this + campaign. + experiment_type: + Output only. The type of campaign: normal, draft, or + experiment. + base_campaign: + Output only. The resource name of the base campaign of a draft + or experiment campaign. For base campaigns, this is equal to + ``resource_name``. This field is read-only. + campaign_budget: + The budget of the campaign. + bidding_strategy_type: + Output only. The type of bidding strategy. A bidding strategy + can be created by setting either the bidding scheme to create + a standard bidding strategy or the ``bidding_strategy`` field + to create a portfolio bidding strategy. This field is read- + only. + start_date: + The date when campaign started. This field must not be used in + WHERE clauses. + end_date: + The date when campaign ended. This field must not be used in + WHERE clauses. + final_url_suffix: + Suffix used to append query parameters to landing pages that + are served with parallel tracking. + frequency_caps: + A list that limits how often each user will see this + campaign's ads. + video_brand_safety_suitability: + Output only. 3-Tier Brand Safety setting for the campaign. + vanity_pharma: + Describes how unbranded pharma ads will be displayed. + selective_optimization: + Selective optimization setting for this campaign, which + includes a set of conversion actions to optimize this campaign + towards. + optimization_goal_setting: + Optimization goal setting for this campaign, which includes a + set of optimization goal types. + tracking_setting: + Output only. Campaign-level settings for tracking information. + payment_mode: + Payment mode for the campaign. + optimization_score: + Output only. Optimization score of the campaign. Optimization + score is an estimate of how well a campaign is set to perform. + It ranges from 0% (0.0) to 100% (1.0), with 100% indicating + that the campaign is performing at full potential. See "About + optimization score" at https://support.google.com/google- + ads/answer/9061546. This field is read-only. + campaign_bidding_strategy: + The bidding strategy for the campaign. Must be either + portfolio (created via BiddingStrategy service) or standard, + that is embedded into the campaign. + bidding_strategy: + Portfolio bidding strategy used by campaign. + commission: + Commission is an automatic bidding strategy in which the + advertiser pays a certain portion of the conversion value. + manual_cpc: + Standard Manual CPC bidding strategy. Manual click-based + bidding where user pays per click. + manual_cpm: + Standard Manual CPM bidding strategy. Manual impression-based + bidding where user pays per thousand impressions. + manual_cpv: + Output only. A bidding strategy that pays a configurable + amount per video view. + maximize_conversions: + Standard Maximize Conversions bidding strategy that + automatically maximizes number of conversions given a daily + budget. + maximize_conversion_value: + Standard Maximize Conversion Value bidding strategy that + automatically sets bids to maximize revenue while spending + your budget. + target_cpa: + Standard Target CPA bidding strategy that automatically sets + bids to help get as many conversions as possible at the target + cost-per-acquisition (CPA) you set. + target_impression_share: + Target Impression Share bidding strategy. An automated bidding + strategy that sets bids to achieve a desired percentage of + impressions. + target_roas: + Standard Target ROAS bidding strategy that automatically + maximizes revenue while averaging a specific target return on + ad spend (ROAS). + target_spend: + Standard Target Spend bidding strategy that automatically sets + your bids to help get as many clicks as possible within your + budget. + percent_cpc: + Standard Percent Cpc bidding strategy where bids are a + fraction of the advertised price for some good or service. + target_cpm: + A bidding strategy that automatically optimizes cost per + thousand impressions. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.resources.Campaign) + )) +_sym_db.RegisterMessage(Campaign) +_sym_db.RegisterMessage(Campaign.NetworkSettings) +_sym_db.RegisterMessage(Campaign.HotelSettingInfo) +_sym_db.RegisterMessage(Campaign.LocalCampaignSetting) +_sym_db.RegisterMessage(Campaign.AppCampaignSetting) +_sym_db.RegisterMessage(Campaign.DynamicSearchAdsSetting) +_sym_db.RegisterMessage(Campaign.SelectiveOptimization) +_sym_db.RegisterMessage(Campaign.ShoppingSetting) +_sym_db.RegisterMessage(Campaign.TrackingSetting) +_sym_db.RegisterMessage(Campaign.GeoTargetTypeSetting) +_sym_db.RegisterMessage(Campaign.OptimizationGoalSetting) +_sym_db.RegisterMessage(Campaign.VanityPharma) + + +DESCRIPTOR._options = None +_CAMPAIGN_HOTELSETTINGINFO.fields_by_name['hotel_center_id']._options = None +_CAMPAIGN_APPCAMPAIGNSETTING.fields_by_name['app_id']._options = None +_CAMPAIGN_APPCAMPAIGNSETTING.fields_by_name['app_store']._options = None +_CAMPAIGN_DYNAMICSEARCHADSSETTING.fields_by_name['feeds']._options = None +_CAMPAIGN_SELECTIVEOPTIMIZATION.fields_by_name['conversion_actions']._options = None +_CAMPAIGN_SHOPPINGSETTING.fields_by_name['merchant_id']._options = None +_CAMPAIGN_SHOPPINGSETTING.fields_by_name['sales_country']._options = None +_CAMPAIGN_TRACKINGSETTING.fields_by_name['tracking_url']._options = None +_CAMPAIGN.fields_by_name['resource_name']._options = None +_CAMPAIGN.fields_by_name['id']._options = None +_CAMPAIGN.fields_by_name['serving_status']._options = None +_CAMPAIGN.fields_by_name['advertising_channel_type']._options = None +_CAMPAIGN.fields_by_name['advertising_channel_sub_type']._options = None +_CAMPAIGN.fields_by_name['hotel_setting']._options = None +_CAMPAIGN.fields_by_name['labels']._options = None +_CAMPAIGN.fields_by_name['experiment_type']._options = None +_CAMPAIGN.fields_by_name['base_campaign']._options = None +_CAMPAIGN.fields_by_name['campaign_budget']._options = None +_CAMPAIGN.fields_by_name['bidding_strategy_type']._options = None +_CAMPAIGN.fields_by_name['video_brand_safety_suitability']._options = None +_CAMPAIGN.fields_by_name['tracking_setting']._options = None +_CAMPAIGN.fields_by_name['optimization_score']._options = None +_CAMPAIGN.fields_by_name['bidding_strategy']._options = None +_CAMPAIGN.fields_by_name['manual_cpv']._options = None +_CAMPAIGN._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/resources/keyword_plan_keyword_pb2_grpc.py b/google/ads/google_ads/v4/proto/resources/campaign_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/resources/keyword_plan_keyword_pb2_grpc.py rename to google/ads/google_ads/v4/proto/resources/campaign_pb2_grpc.py diff --git a/google/ads/google_ads/v4/proto/resources/campaign_shared_set_pb2.py b/google/ads/google_ads/v4/proto/resources/campaign_shared_set_pb2.py new file mode 100644 index 000000000..dff4d6d44 --- /dev/null +++ b/google/ads/google_ads/v4/proto/resources/campaign_shared_set_pb2.py @@ -0,0 +1,132 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/resources/campaign_shared_set.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.ads.google_ads.v4.proto.enums import campaign_shared_set_status_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_campaign__shared__set__status__pb2 +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 +from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/resources/campaign_shared_set.proto', + package='google.ads.googleads.v4.resources', + syntax='proto3', + serialized_options=_b('\n%com.google.ads.googleads.v4.resourcesB\026CampaignSharedSetProtoP\001ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v4/resources;resources\242\002\003GAA\252\002!Google.Ads.GoogleAds.V4.Resources\312\002!Google\\Ads\\GoogleAds\\V4\\Resources\352\002%Google::Ads::GoogleAds::V4::Resources'), + serialized_pb=_b('\nAgoogle/ads/googleads_v4/proto/resources/campaign_shared_set.proto\x12!google.ads.googleads.v4.resources\x1a\x44google/ads/googleads_v4/proto/enums/campaign_shared_set_status.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1cgoogle/api/annotations.proto\"\xf0\x03\n\x11\x43\x61mpaignSharedSet\x12I\n\rresource_name\x18\x01 \x01(\tB2\xe0\x41\x05\xfa\x41,\n*googleads.googleapis.com/CampaignSharedSet\x12Y\n\x08\x63\x61mpaign\x18\x03 \x01(\x0b\x32\x1c.google.protobuf.StringValueB)\xe0\x41\x05\xfa\x41#\n!googleads.googleapis.com/Campaign\x12\\\n\nshared_set\x18\x04 \x01(\x0b\x32\x1c.google.protobuf.StringValueB*\xe0\x41\x05\xfa\x41$\n\"googleads.googleapis.com/SharedSet\x12g\n\x06status\x18\x02 \x01(\x0e\x32R.google.ads.googleads.v4.enums.CampaignSharedSetStatusEnum.CampaignSharedSetStatusB\x03\xe0\x41\x03:n\xea\x41k\n*googleads.googleapis.com/CampaignSharedSet\x12=customers/{customer}/campaignSharedSets/{campaign_shared_set}B\x83\x02\n%com.google.ads.googleads.v4.resourcesB\x16\x43\x61mpaignSharedSetProtoP\x01ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v4/resources;resources\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V4.Resources\xca\x02!Google\\Ads\\GoogleAds\\V4\\Resources\xea\x02%Google::Ads::GoogleAds::V4::Resourcesb\x06proto3') + , + dependencies=[google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_campaign__shared__set__status__pb2.DESCRIPTOR,google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_api_dot_resource__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + + +_CAMPAIGNSHAREDSET = _descriptor.Descriptor( + name='CampaignSharedSet', + full_name='google.ads.googleads.v4.resources.CampaignSharedSet', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.resources.CampaignSharedSet.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005\372A,\n*googleads.googleapis.com/CampaignSharedSet'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='campaign', full_name='google.ads.googleads.v4.resources.CampaignSharedSet.campaign', index=1, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005\372A#\n!googleads.googleapis.com/Campaign'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='shared_set', full_name='google.ads.googleads.v4.resources.CampaignSharedSet.shared_set', index=2, + number=4, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005\372A$\n\"googleads.googleapis.com/SharedSet'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='status', full_name='google.ads.googleads.v4.resources.CampaignSharedSet.status', index=3, + number=2, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=_b('\352Ak\n*googleads.googleapis.com/CampaignSharedSet\022=customers/{customer}/campaignSharedSets/{campaign_shared_set}'), + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=297, + serialized_end=793, +) + +_CAMPAIGNSHAREDSET.fields_by_name['campaign'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_CAMPAIGNSHAREDSET.fields_by_name['shared_set'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_CAMPAIGNSHAREDSET.fields_by_name['status'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_campaign__shared__set__status__pb2._CAMPAIGNSHAREDSETSTATUSENUM_CAMPAIGNSHAREDSETSTATUS +DESCRIPTOR.message_types_by_name['CampaignSharedSet'] = _CAMPAIGNSHAREDSET +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +CampaignSharedSet = _reflection.GeneratedProtocolMessageType('CampaignSharedSet', (_message.Message,), dict( + DESCRIPTOR = _CAMPAIGNSHAREDSET, + __module__ = 'google.ads.googleads_v4.proto.resources.campaign_shared_set_pb2' + , + __doc__ = """CampaignSharedSets are used for managing the shared sets associated with + a campaign. + + + Attributes: + resource_name: + Immutable. The resource name of the campaign shared set. + Campaign shared set resource names have the form: ``customers + /{customer_id}/campaignSharedSets/{campaign_id}~{shared_set_id + }`` + campaign: + Immutable. The campaign to which the campaign shared set + belongs. + shared_set: + Immutable. The shared set associated with the campaign. This + may be a negative keyword shared set of another customer. This + customer should be a manager of the other customer, otherwise + the campaign shared set will exist but have no serving effect. + Only negative keyword shared sets can be associated with + Shopping campaigns. Only negative placement shared sets can be + associated with Display mobile app campaigns. + status: + Output only. The status of this campaign shared set. Read + only. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.resources.CampaignSharedSet) + )) +_sym_db.RegisterMessage(CampaignSharedSet) + + +DESCRIPTOR._options = None +_CAMPAIGNSHAREDSET.fields_by_name['resource_name']._options = None +_CAMPAIGNSHAREDSET.fields_by_name['campaign']._options = None +_CAMPAIGNSHAREDSET.fields_by_name['shared_set']._options = None +_CAMPAIGNSHAREDSET.fields_by_name['status']._options = None +_CAMPAIGNSHAREDSET._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/resources/keyword_plan_negative_keyword_pb2_grpc.py b/google/ads/google_ads/v4/proto/resources/campaign_shared_set_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/resources/keyword_plan_negative_keyword_pb2_grpc.py rename to google/ads/google_ads/v4/proto/resources/campaign_shared_set_pb2_grpc.py diff --git a/google/ads/google_ads/v4/proto/resources/carrier_constant_pb2.py b/google/ads/google_ads/v4/proto/resources/carrier_constant_pb2.py new file mode 100644 index 000000000..1e2953f35 --- /dev/null +++ b/google/ads/google_ads/v4/proto/resources/carrier_constant_pb2.py @@ -0,0 +1,122 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/resources/carrier_constant.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 +from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/resources/carrier_constant.proto', + package='google.ads.googleads.v4.resources', + syntax='proto3', + serialized_options=_b('\n%com.google.ads.googleads.v4.resourcesB\024CarrierConstantProtoP\001ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v4/resources;resources\242\002\003GAA\252\002!Google.Ads.GoogleAds.V4.Resources\312\002!Google\\Ads\\GoogleAds\\V4\\Resources\352\002%Google::Ads::GoogleAds::V4::Resources'), + serialized_pb=_b('\n>google/ads/googleads_v4/proto/resources/carrier_constant.proto\x12!google.ads.googleads.v4.resources\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1cgoogle/api/annotations.proto\"\xc6\x02\n\x0f\x43\x61rrierConstant\x12G\n\rresource_name\x18\x01 \x01(\tB0\xe0\x41\x03\xfa\x41*\n(googleads.googleapis.com/CarrierConstant\x12,\n\x02id\x18\x02 \x01(\x0b\x32\x1b.google.protobuf.Int64ValueB\x03\xe0\x41\x03\x12/\n\x04name\x18\x03 \x01(\x0b\x32\x1c.google.protobuf.StringValueB\x03\xe0\x41\x03\x12\x37\n\x0c\x63ountry_code\x18\x04 \x01(\x0b\x32\x1c.google.protobuf.StringValueB\x03\xe0\x41\x03:R\xea\x41O\n(googleads.googleapis.com/CarrierConstant\x12#carrierConstants/{carrier_constant}B\x81\x02\n%com.google.ads.googleads.v4.resourcesB\x14\x43\x61rrierConstantProtoP\x01ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v4/resources;resources\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V4.Resources\xca\x02!Google\\Ads\\GoogleAds\\V4\\Resources\xea\x02%Google::Ads::GoogleAds::V4::Resourcesb\x06proto3') + , + dependencies=[google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_api_dot_resource__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + + +_CARRIERCONSTANT = _descriptor.Descriptor( + name='CarrierConstant', + full_name='google.ads.googleads.v4.resources.CarrierConstant', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.resources.CarrierConstant.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003\372A*\n(googleads.googleapis.com/CarrierConstant'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='id', full_name='google.ads.googleads.v4.resources.CarrierConstant.id', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='name', full_name='google.ads.googleads.v4.resources.CarrierConstant.name', index=2, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='country_code', full_name='google.ads.googleads.v4.resources.CarrierConstant.country_code', index=3, + number=4, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=_b('\352AO\n(googleads.googleapis.com/CarrierConstant\022#carrierConstants/{carrier_constant}'), + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=224, + serialized_end=550, +) + +_CARRIERCONSTANT.fields_by_name['id'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_CARRIERCONSTANT.fields_by_name['name'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_CARRIERCONSTANT.fields_by_name['country_code'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +DESCRIPTOR.message_types_by_name['CarrierConstant'] = _CARRIERCONSTANT +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +CarrierConstant = _reflection.GeneratedProtocolMessageType('CarrierConstant', (_message.Message,), dict( + DESCRIPTOR = _CARRIERCONSTANT, + __module__ = 'google.ads.googleads_v4.proto.resources.carrier_constant_pb2' + , + __doc__ = """A carrier criterion that can be used in campaign targeting. + + + Attributes: + resource_name: + Output only. The resource name of the carrier criterion. + Carrier criterion resource names have the form: + ``carrierConstants/{criterion_id}`` + id: + Output only. The ID of the carrier criterion. + name: + Output only. The full name of the carrier in English. + country_code: + Output only. The country code of the country where the carrier + is located, e.g., "AR", "FR", etc. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.resources.CarrierConstant) + )) +_sym_db.RegisterMessage(CarrierConstant) + + +DESCRIPTOR._options = None +_CARRIERCONSTANT.fields_by_name['resource_name']._options = None +_CARRIERCONSTANT.fields_by_name['id']._options = None +_CARRIERCONSTANT.fields_by_name['name']._options = None +_CARRIERCONSTANT.fields_by_name['country_code']._options = None +_CARRIERCONSTANT._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/resources/keyword_plan_pb2_grpc.py b/google/ads/google_ads/v4/proto/resources/carrier_constant_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/resources/keyword_plan_pb2_grpc.py rename to google/ads/google_ads/v4/proto/resources/carrier_constant_pb2_grpc.py diff --git a/google/ads/google_ads/v4/proto/resources/change_status_pb2.py b/google/ads/google_ads/v4/proto/resources/change_status_pb2.py new file mode 100644 index 000000000..73f9d1e2b --- /dev/null +++ b/google/ads/google_ads/v4/proto/resources/change_status_pb2.py @@ -0,0 +1,236 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/resources/change_status.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.ads.google_ads.v4.proto.enums import change_status_operation_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_change__status__operation__pb2 +from google.ads.google_ads.v4.proto.enums import change_status_resource_type_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_change__status__resource__type__pb2 +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 +from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/resources/change_status.proto', + package='google.ads.googleads.v4.resources', + syntax='proto3', + serialized_options=_b('\n%com.google.ads.googleads.v4.resourcesB\021ChangeStatusProtoP\001ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v4/resources;resources\242\002\003GAA\252\002!Google.Ads.GoogleAds.V4.Resources\312\002!Google\\Ads\\GoogleAds\\V4\\Resources\352\002%Google::Ads::GoogleAds::V4::Resources'), + serialized_pb=_b('\n;google/ads/googleads_v4/proto/resources/change_status.proto\x12!google.ads.googleads.v4.resources\x1a\x41google/ads/googleads_v4/proto/enums/change_status_operation.proto\x1a\x45google/ads/googleads_v4/proto/enums/change_status_resource_type.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1cgoogle/api/annotations.proto\"\xac\x0b\n\x0c\x43hangeStatus\x12\x44\n\rresource_name\x18\x01 \x01(\tB-\xe0\x41\x03\xfa\x41\'\n%googleads.googleapis.com/ChangeStatus\x12@\n\x15last_change_date_time\x18\x03 \x01(\x0b\x32\x1c.google.protobuf.StringValueB\x03\xe0\x41\x03\x12p\n\rresource_type\x18\x04 \x01(\x0e\x32T.google.ads.googleads.v4.enums.ChangeStatusResourceTypeEnum.ChangeStatusResourceTypeB\x03\xe0\x41\x03\x12Y\n\x08\x63\x61mpaign\x18\x05 \x01(\x0b\x32\x1c.google.protobuf.StringValueB)\xe0\x41\x03\xfa\x41#\n!googleads.googleapis.com/Campaign\x12X\n\x08\x61\x64_group\x18\x06 \x01(\x0b\x32\x1c.google.protobuf.StringValueB(\xe0\x41\x03\xfa\x41\"\n googleads.googleapis.com/AdGroup\x12l\n\x0fresource_status\x18\x08 \x01(\x0e\x32N.google.ads.googleads.v4.enums.ChangeStatusOperationEnum.ChangeStatusOperationB\x03\xe0\x41\x03\x12]\n\x0b\x61\x64_group_ad\x18\t \x01(\x0b\x32\x1c.google.protobuf.StringValueB*\xe0\x41\x03\xfa\x41$\n\"googleads.googleapis.com/AdGroupAd\x12k\n\x12\x61\x64_group_criterion\x18\n \x01(\x0b\x32\x1c.google.protobuf.StringValueB1\xe0\x41\x03\xfa\x41+\n)googleads.googleapis.com/AdGroupCriterion\x12l\n\x12\x63\x61mpaign_criterion\x18\x0b \x01(\x0b\x32\x1c.google.protobuf.StringValueB2\xe0\x41\x03\xfa\x41,\n*googleads.googleapis.com/CampaignCriterion\x12Q\n\x04\x66\x65\x65\x64\x18\x0c \x01(\x0b\x32\x1c.google.protobuf.StringValueB%\xe0\x41\x03\xfa\x41\x1f\n\x1dgoogleads.googleapis.com/Feed\x12Z\n\tfeed_item\x18\r \x01(\x0b\x32\x1c.google.protobuf.StringValueB)\xe0\x41\x03\xfa\x41#\n!googleads.googleapis.com/FeedItem\x12\x61\n\rad_group_feed\x18\x0e \x01(\x0b\x32\x1c.google.protobuf.StringValueB,\xe0\x41\x03\xfa\x41&\n$googleads.googleapis.com/AdGroupFeed\x12\x62\n\rcampaign_feed\x18\x0f \x01(\x0b\x32\x1c.google.protobuf.StringValueB-\xe0\x41\x03\xfa\x41\'\n%googleads.googleapis.com/CampaignFeed\x12p\n\x15\x61\x64_group_bid_modifier\x18\x10 \x01(\x0b\x32\x1c.google.protobuf.StringValueB3\xe0\x41\x03\xfa\x41-\n+googleads.googleapis.com/AdGroupBidModifier:]\xea\x41Z\n%googleads.googleapis.com/ChangeStatus\x12\x31\x63ustomers/{customer}/changeStatus/{change_status}B\xfe\x01\n%com.google.ads.googleads.v4.resourcesB\x11\x43hangeStatusProtoP\x01ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v4/resources;resources\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V4.Resources\xca\x02!Google\\Ads\\GoogleAds\\V4\\Resources\xea\x02%Google::Ads::GoogleAds::V4::Resourcesb\x06proto3') + , + dependencies=[google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_change__status__operation__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_change__status__resource__type__pb2.DESCRIPTOR,google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_api_dot_resource__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + + +_CHANGESTATUS = _descriptor.Descriptor( + name='ChangeStatus', + full_name='google.ads.googleads.v4.resources.ChangeStatus', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.resources.ChangeStatus.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003\372A\'\n%googleads.googleapis.com/ChangeStatus'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='last_change_date_time', full_name='google.ads.googleads.v4.resources.ChangeStatus.last_change_date_time', index=1, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='resource_type', full_name='google.ads.googleads.v4.resources.ChangeStatus.resource_type', index=2, + number=4, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='campaign', full_name='google.ads.googleads.v4.resources.ChangeStatus.campaign', index=3, + number=5, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003\372A#\n!googleads.googleapis.com/Campaign'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='ad_group', full_name='google.ads.googleads.v4.resources.ChangeStatus.ad_group', index=4, + number=6, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003\372A\"\n googleads.googleapis.com/AdGroup'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='resource_status', full_name='google.ads.googleads.v4.resources.ChangeStatus.resource_status', index=5, + number=8, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='ad_group_ad', full_name='google.ads.googleads.v4.resources.ChangeStatus.ad_group_ad', index=6, + number=9, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003\372A$\n\"googleads.googleapis.com/AdGroupAd'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='ad_group_criterion', full_name='google.ads.googleads.v4.resources.ChangeStatus.ad_group_criterion', index=7, + number=10, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003\372A+\n)googleads.googleapis.com/AdGroupCriterion'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='campaign_criterion', full_name='google.ads.googleads.v4.resources.ChangeStatus.campaign_criterion', index=8, + number=11, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003\372A,\n*googleads.googleapis.com/CampaignCriterion'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='feed', full_name='google.ads.googleads.v4.resources.ChangeStatus.feed', index=9, + number=12, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003\372A\037\n\035googleads.googleapis.com/Feed'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='feed_item', full_name='google.ads.googleads.v4.resources.ChangeStatus.feed_item', index=10, + number=13, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003\372A#\n!googleads.googleapis.com/FeedItem'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='ad_group_feed', full_name='google.ads.googleads.v4.resources.ChangeStatus.ad_group_feed', index=11, + number=14, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003\372A&\n$googleads.googleapis.com/AdGroupFeed'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='campaign_feed', full_name='google.ads.googleads.v4.resources.ChangeStatus.campaign_feed', index=12, + number=15, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003\372A\'\n%googleads.googleapis.com/CampaignFeed'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='ad_group_bid_modifier', full_name='google.ads.googleads.v4.resources.ChangeStatus.ad_group_bid_modifier', index=13, + number=16, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003\372A-\n+googleads.googleapis.com/AdGroupBidModifier'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=_b('\352AZ\n%googleads.googleapis.com/ChangeStatus\0221customers/{customer}/changeStatus/{change_status}'), + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=359, + serialized_end=1811, +) + +_CHANGESTATUS.fields_by_name['last_change_date_time'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_CHANGESTATUS.fields_by_name['resource_type'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_change__status__resource__type__pb2._CHANGESTATUSRESOURCETYPEENUM_CHANGESTATUSRESOURCETYPE +_CHANGESTATUS.fields_by_name['campaign'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_CHANGESTATUS.fields_by_name['ad_group'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_CHANGESTATUS.fields_by_name['resource_status'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_change__status__operation__pb2._CHANGESTATUSOPERATIONENUM_CHANGESTATUSOPERATION +_CHANGESTATUS.fields_by_name['ad_group_ad'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_CHANGESTATUS.fields_by_name['ad_group_criterion'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_CHANGESTATUS.fields_by_name['campaign_criterion'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_CHANGESTATUS.fields_by_name['feed'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_CHANGESTATUS.fields_by_name['feed_item'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_CHANGESTATUS.fields_by_name['ad_group_feed'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_CHANGESTATUS.fields_by_name['campaign_feed'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_CHANGESTATUS.fields_by_name['ad_group_bid_modifier'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +DESCRIPTOR.message_types_by_name['ChangeStatus'] = _CHANGESTATUS +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +ChangeStatus = _reflection.GeneratedProtocolMessageType('ChangeStatus', (_message.Message,), dict( + DESCRIPTOR = _CHANGESTATUS, + __module__ = 'google.ads.googleads_v4.proto.resources.change_status_pb2' + , + __doc__ = """Describes the status of returned resource. + + + Attributes: + resource_name: + Output only. The resource name of the change status. Change + status resource names have the form: + ``customers/{customer_id}/changeStatus/{change_status_id}`` + last_change_date_time: + Output only. Time at which the most recent change has occurred + on this resource. + resource_type: + Output only. Represents the type of the changed resource. This + dictates what fields will be set. For example, for AD\_GROUP, + campaign and ad\_group fields will be set. + campaign: + Output only. The Campaign affected by this change. + ad_group: + Output only. The AdGroup affected by this change. + resource_status: + Output only. Represents the status of the changed resource. + ad_group_ad: + Output only. The AdGroupAd affected by this change. + ad_group_criterion: + Output only. The AdGroupCriterion affected by this change. + campaign_criterion: + Output only. The CampaignCriterion affected by this change. + feed: + Output only. The Feed affected by this change. + feed_item: + Output only. The FeedItem affected by this change. + ad_group_feed: + Output only. The AdGroupFeed affected by this change. + campaign_feed: + Output only. The CampaignFeed affected by this change. + ad_group_bid_modifier: + Output only. The AdGroupBidModifier affected by this change. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.resources.ChangeStatus) + )) +_sym_db.RegisterMessage(ChangeStatus) + + +DESCRIPTOR._options = None +_CHANGESTATUS.fields_by_name['resource_name']._options = None +_CHANGESTATUS.fields_by_name['last_change_date_time']._options = None +_CHANGESTATUS.fields_by_name['resource_type']._options = None +_CHANGESTATUS.fields_by_name['campaign']._options = None +_CHANGESTATUS.fields_by_name['ad_group']._options = None +_CHANGESTATUS.fields_by_name['resource_status']._options = None +_CHANGESTATUS.fields_by_name['ad_group_ad']._options = None +_CHANGESTATUS.fields_by_name['ad_group_criterion']._options = None +_CHANGESTATUS.fields_by_name['campaign_criterion']._options = None +_CHANGESTATUS.fields_by_name['feed']._options = None +_CHANGESTATUS.fields_by_name['feed_item']._options = None +_CHANGESTATUS.fields_by_name['ad_group_feed']._options = None +_CHANGESTATUS.fields_by_name['campaign_feed']._options = None +_CHANGESTATUS.fields_by_name['ad_group_bid_modifier']._options = None +_CHANGESTATUS._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/resources/keyword_view_pb2_grpc.py b/google/ads/google_ads/v4/proto/resources/change_status_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/resources/keyword_view_pb2_grpc.py rename to google/ads/google_ads/v4/proto/resources/change_status_pb2_grpc.py diff --git a/google/ads/google_ads/v4/proto/resources/click_view_pb2.py b/google/ads/google_ads/v4/proto/resources/click_view_pb2.py new file mode 100644 index 000000000..b4f54d1eb --- /dev/null +++ b/google/ads/google_ads/v4/proto/resources/click_view_pb2.py @@ -0,0 +1,153 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/resources/click_view.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.ads.google_ads.v4.proto.common import click_location_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_click__location__pb2 +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 +from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/resources/click_view.proto', + package='google.ads.googleads.v4.resources', + syntax='proto3', + serialized_options=_b('\n%com.google.ads.googleads.v4.resourcesB\016ClickViewProtoP\001ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v4/resources;resources\242\002\003GAA\252\002!Google.Ads.GoogleAds.V4.Resources\312\002!Google\\Ads\\GoogleAds\\V4\\Resources\352\002%Google::Ads::GoogleAds::V4::Resources'), + serialized_pb=_b('\n8google/ads/googleads_v4/proto/resources/click_view.proto\x12!google.ads.googleads.v4.resources\x1a\x39google/ads/googleads_v4/proto/common/click_location.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1cgoogle/api/annotations.proto\"\x8d\x04\n\tClickView\x12\x41\n\rresource_name\x18\x01 \x01(\tB*\xe0\x41\x03\xfa\x41$\n\"googleads.googleapis.com/ClickView\x12\x30\n\x05gclid\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValueB\x03\xe0\x41\x03\x12L\n\x10\x61rea_of_interest\x18\x03 \x01(\x0b\x32-.google.ads.googleads.v4.common.ClickLocationB\x03\xe0\x41\x03\x12P\n\x14location_of_presence\x18\x04 \x01(\x0b\x32-.google.ads.googleads.v4.common.ClickLocationB\x03\xe0\x41\x03\x12\x35\n\x0bpage_number\x18\x05 \x01(\x0b\x32\x1b.google.protobuf.Int64ValueB\x03\xe0\x41\x03\x12]\n\x0b\x61\x64_group_ad\x18\x07 \x01(\x0b\x32\x1c.google.protobuf.StringValueB*\xe0\x41\x03\xfa\x41$\n\"googleads.googleapis.com/AdGroupAd:U\xea\x41R\n\"googleads.googleapis.com/ClickView\x12,customers/{customer}/clickViews/{click_view}B\xfb\x01\n%com.google.ads.googleads.v4.resourcesB\x0e\x43lickViewProtoP\x01ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v4/resources;resources\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V4.Resources\xca\x02!Google\\Ads\\GoogleAds\\V4\\Resources\xea\x02%Google::Ads::GoogleAds::V4::Resourcesb\x06proto3') + , + dependencies=[google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_click__location__pb2.DESCRIPTOR,google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_api_dot_resource__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + + +_CLICKVIEW = _descriptor.Descriptor( + name='ClickView', + full_name='google.ads.googleads.v4.resources.ClickView', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.resources.ClickView.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003\372A$\n\"googleads.googleapis.com/ClickView'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='gclid', full_name='google.ads.googleads.v4.resources.ClickView.gclid', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='area_of_interest', full_name='google.ads.googleads.v4.resources.ClickView.area_of_interest', index=2, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='location_of_presence', full_name='google.ads.googleads.v4.resources.ClickView.location_of_presence', index=3, + number=4, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='page_number', full_name='google.ads.googleads.v4.resources.ClickView.page_number', index=4, + number=5, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='ad_group_ad', full_name='google.ads.googleads.v4.resources.ClickView.ad_group_ad', index=5, + number=7, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003\372A$\n\"googleads.googleapis.com/AdGroupAd'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=_b('\352AR\n\"googleads.googleapis.com/ClickView\022,customers/{customer}/clickViews/{click_view}'), + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=277, + serialized_end=802, +) + +_CLICKVIEW.fields_by_name['gclid'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_CLICKVIEW.fields_by_name['area_of_interest'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_click__location__pb2._CLICKLOCATION +_CLICKVIEW.fields_by_name['location_of_presence'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_click__location__pb2._CLICKLOCATION +_CLICKVIEW.fields_by_name['page_number'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_CLICKVIEW.fields_by_name['ad_group_ad'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +DESCRIPTOR.message_types_by_name['ClickView'] = _CLICKVIEW +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +ClickView = _reflection.GeneratedProtocolMessageType('ClickView', (_message.Message,), dict( + DESCRIPTOR = _CLICKVIEW, + __module__ = 'google.ads.googleads_v4.proto.resources.click_view_pb2' + , + __doc__ = """A click view with metrics aggregated at each click level, including both + valid and invalid clicks. For non-Search campaigns, metrics.clicks + represents the number of valid and invalid interactions. Queries + including ClickView must have a filter limiting the results to one day + and can be requested for dates back to 90 days before the time of the + request. + + + Attributes: + resource_name: + Output only. The resource name of the click view. Click view + resource names have the form: + ``customers/{customer_id}/clickViews/{date (yyyy-MM- + dd)}~{gclid}`` + gclid: + Output only. The Google Click ID. + area_of_interest: + Output only. The location criteria matching the area of + interest associated with the impression. + location_of_presence: + Output only. The location criteria matching the location of + presence associated with the impression. + page_number: + Output only. Page number in search results where the ad was + shown. + ad_group_ad: + Output only. The associated ad. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.resources.ClickView) + )) +_sym_db.RegisterMessage(ClickView) + + +DESCRIPTOR._options = None +_CLICKVIEW.fields_by_name['resource_name']._options = None +_CLICKVIEW.fields_by_name['gclid']._options = None +_CLICKVIEW.fields_by_name['area_of_interest']._options = None +_CLICKVIEW.fields_by_name['location_of_presence']._options = None +_CLICKVIEW.fields_by_name['page_number']._options = None +_CLICKVIEW.fields_by_name['ad_group_ad']._options = None +_CLICKVIEW._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/resources/label_pb2_grpc.py b/google/ads/google_ads/v4/proto/resources/click_view_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/resources/label_pb2_grpc.py rename to google/ads/google_ads/v4/proto/resources/click_view_pb2_grpc.py diff --git a/google/ads/google_ads/v4/proto/resources/conversion_action_pb2.py b/google/ads/google_ads/v4/proto/resources/conversion_action_pb2.py new file mode 100644 index 000000000..8961f7a5a --- /dev/null +++ b/google/ads/google_ads/v4/proto/resources/conversion_action_pb2.py @@ -0,0 +1,543 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/resources/conversion_action.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.ads.google_ads.v4.proto.common import tag_snippet_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_tag__snippet__pb2 +from google.ads.google_ads.v4.proto.enums import attribution_model_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_attribution__model__pb2 +from google.ads.google_ads.v4.proto.enums import conversion_action_category_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_conversion__action__category__pb2 +from google.ads.google_ads.v4.proto.enums import conversion_action_counting_type_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_conversion__action__counting__type__pb2 +from google.ads.google_ads.v4.proto.enums import conversion_action_status_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_conversion__action__status__pb2 +from google.ads.google_ads.v4.proto.enums import conversion_action_type_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_conversion__action__type__pb2 +from google.ads.google_ads.v4.proto.enums import data_driven_model_status_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_data__driven__model__status__pb2 +from google.ads.google_ads.v4.proto.enums import mobile_app_vendor_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_mobile__app__vendor__pb2 +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 +from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/resources/conversion_action.proto', + package='google.ads.googleads.v4.resources', + syntax='proto3', + serialized_options=_b('\n%com.google.ads.googleads.v4.resourcesB\025ConversionActionProtoP\001ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v4/resources;resources\242\002\003GAA\252\002!Google.Ads.GoogleAds.V4.Resources\312\002!Google\\Ads\\GoogleAds\\V4\\Resources\352\002%Google::Ads::GoogleAds::V4::Resources'), + serialized_pb=_b('\n?google/ads/googleads_v4/proto/resources/conversion_action.proto\x12!google.ads.googleads.v4.resources\x1a\x36google/ads/googleads_v4/proto/common/tag_snippet.proto\x1a;google/ads/googleads_v4/proto/enums/attribution_model.proto\x1a\x44google/ads/googleads_v4/proto/enums/conversion_action_category.proto\x1aIgoogle/ads/googleads_v4/proto/enums/conversion_action_counting_type.proto\x1a\x42google/ads/googleads_v4/proto/enums/conversion_action_status.proto\x1a@google/ads/googleads_v4/proto/enums/conversion_action_type.proto\x1a\x42google/ads/googleads_v4/proto/enums/data_driven_model_status.proto\x1a;google/ads/googleads_v4/proto/enums/mobile_app_vendor.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1cgoogle/api/annotations.proto\"\xb8\x12\n\x10\x43onversionAction\x12H\n\rresource_name\x18\x01 \x01(\tB1\xe0\x41\x05\xfa\x41+\n)googleads.googleapis.com/ConversionAction\x12,\n\x02id\x18\x02 \x01(\x0b\x32\x1b.google.protobuf.Int64ValueB\x03\xe0\x41\x03\x12*\n\x04name\x18\x03 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12`\n\x06status\x18\x04 \x01(\x0e\x32P.google.ads.googleads.v4.enums.ConversionActionStatusEnum.ConversionActionStatus\x12_\n\x04type\x18\x05 \x01(\x0e\x32L.google.ads.googleads.v4.enums.ConversionActionTypeEnum.ConversionActionTypeB\x03\xe0\x41\x05\x12\x66\n\x08\x63\x61tegory\x18\x06 \x01(\x0e\x32T.google.ads.googleads.v4.enums.ConversionActionCategoryEnum.ConversionActionCategory\x12\x39\n\x0eowner_customer\x18\x07 \x01(\x0b\x32\x1c.google.protobuf.StringValueB\x03\xe0\x41\x03\x12\x41\n\x1dinclude_in_conversions_metric\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.BoolValue\x12G\n\"click_through_lookback_window_days\x18\t \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x46\n!view_through_lookback_window_days\x18\n \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12Y\n\x0evalue_settings\x18\x0b \x01(\x0b\x32\x41.google.ads.googleads.v4.resources.ConversionAction.ValueSettings\x12s\n\rcounting_type\x18\x0c \x01(\x0e\x32\\.google.ads.googleads.v4.enums.ConversionActionCountingTypeEnum.ConversionActionCountingType\x12p\n\x1a\x61ttribution_model_settings\x18\r \x01(\x0b\x32L.google.ads.googleads.v4.resources.ConversionAction.AttributionModelSettings\x12\x45\n\x0ctag_snippets\x18\x0e \x03(\x0b\x32*.google.ads.googleads.v4.common.TagSnippetB\x03\xe0\x41\x03\x12@\n\x1bphone_call_duration_seconds\x18\x0f \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12,\n\x06\x61pp_id\x18\x10 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x62\n\x11mobile_app_vendor\x18\x11 \x01(\x0e\x32\x42.google.ads.googleads.v4.enums.MobileAppVendorEnum.MobileAppVendorB\x03\xe0\x41\x03\x12\x64\n\x11\x66irebase_settings\x18\x12 \x01(\x0b\x32\x44.google.ads.googleads.v4.resources.ConversionAction.FirebaseSettingsB\x03\xe0\x41\x03\x12\x83\x01\n\"third_party_app_analytics_settings\x18\x13 \x01(\x0b\x32R.google.ads.googleads.v4.resources.ConversionAction.ThirdPartyAppAnalyticsSettingsB\x03\xe0\x41\x03\x1a\xf2\x01\n\x18\x41ttributionModelSettings\x12_\n\x11\x61ttribution_model\x18\x01 \x01(\x0e\x32\x44.google.ads.googleads.v4.enums.AttributionModelEnum.AttributionModel\x12u\n\x18\x64\x61ta_driven_model_status\x18\x02 \x01(\x0e\x32N.google.ads.googleads.v4.enums.DataDrivenModelStatusEnum.DataDrivenModelStatusB\x03\xe0\x41\x03\x1a\xbf\x01\n\rValueSettings\x12\x33\n\rdefault_value\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12;\n\x15\x64\x65\x66\x61ult_currency_code\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12<\n\x18\x61lways_use_default_value\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.BoolValue\x1aW\n\x1eThirdPartyAppAnalyticsSettings\x12\x35\n\nevent_name\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValueB\x03\xe0\x41\x03\x1a\x80\x01\n\x10\x46irebaseSettings\x12\x35\n\nevent_name\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValueB\x03\xe0\x41\x03\x12\x35\n\nproject_id\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValueB\x03\xe0\x41\x03:j\xea\x41g\n)googleads.googleapis.com/ConversionAction\x12:customers/{customer}/conversionActions/{conversion_action}B\x82\x02\n%com.google.ads.googleads.v4.resourcesB\x15\x43onversionActionProtoP\x01ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v4/resources;resources\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V4.Resources\xca\x02!Google\\Ads\\GoogleAds\\V4\\Resources\xea\x02%Google::Ads::GoogleAds::V4::Resourcesb\x06proto3') + , + dependencies=[google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_tag__snippet__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_attribution__model__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_conversion__action__category__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_conversion__action__counting__type__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_conversion__action__status__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_conversion__action__type__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_data__driven__model__status__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_mobile__app__vendor__pb2.DESCRIPTOR,google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_api_dot_resource__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + + +_CONVERSIONACTION_ATTRIBUTIONMODELSETTINGS = _descriptor.Descriptor( + name='AttributionModelSettings', + full_name='google.ads.googleads.v4.resources.ConversionAction.AttributionModelSettings', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='attribution_model', full_name='google.ads.googleads.v4.resources.ConversionAction.AttributionModelSettings.attribution_model', index=0, + number=1, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='data_driven_model_status', full_name='google.ads.googleads.v4.resources.ConversionAction.AttributionModelSettings.data_driven_model_status', index=1, + number=2, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=2346, + serialized_end=2588, +) + +_CONVERSIONACTION_VALUESETTINGS = _descriptor.Descriptor( + name='ValueSettings', + full_name='google.ads.googleads.v4.resources.ConversionAction.ValueSettings', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='default_value', full_name='google.ads.googleads.v4.resources.ConversionAction.ValueSettings.default_value', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='default_currency_code', full_name='google.ads.googleads.v4.resources.ConversionAction.ValueSettings.default_currency_code', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='always_use_default_value', full_name='google.ads.googleads.v4.resources.ConversionAction.ValueSettings.always_use_default_value', index=2, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=2591, + serialized_end=2782, +) + +_CONVERSIONACTION_THIRDPARTYAPPANALYTICSSETTINGS = _descriptor.Descriptor( + name='ThirdPartyAppAnalyticsSettings', + full_name='google.ads.googleads.v4.resources.ConversionAction.ThirdPartyAppAnalyticsSettings', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='event_name', full_name='google.ads.googleads.v4.resources.ConversionAction.ThirdPartyAppAnalyticsSettings.event_name', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=2784, + serialized_end=2871, +) + +_CONVERSIONACTION_FIREBASESETTINGS = _descriptor.Descriptor( + name='FirebaseSettings', + full_name='google.ads.googleads.v4.resources.ConversionAction.FirebaseSettings', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='event_name', full_name='google.ads.googleads.v4.resources.ConversionAction.FirebaseSettings.event_name', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='project_id', full_name='google.ads.googleads.v4.resources.ConversionAction.FirebaseSettings.project_id', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=2874, + serialized_end=3002, +) + +_CONVERSIONACTION = _descriptor.Descriptor( + name='ConversionAction', + full_name='google.ads.googleads.v4.resources.ConversionAction', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.resources.ConversionAction.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005\372A+\n)googleads.googleapis.com/ConversionAction'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='id', full_name='google.ads.googleads.v4.resources.ConversionAction.id', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='name', full_name='google.ads.googleads.v4.resources.ConversionAction.name', index=2, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='status', full_name='google.ads.googleads.v4.resources.ConversionAction.status', index=3, + number=4, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='type', full_name='google.ads.googleads.v4.resources.ConversionAction.type', index=4, + number=5, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='category', full_name='google.ads.googleads.v4.resources.ConversionAction.category', index=5, + number=6, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='owner_customer', full_name='google.ads.googleads.v4.resources.ConversionAction.owner_customer', index=6, + number=7, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='include_in_conversions_metric', full_name='google.ads.googleads.v4.resources.ConversionAction.include_in_conversions_metric', index=7, + number=8, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='click_through_lookback_window_days', full_name='google.ads.googleads.v4.resources.ConversionAction.click_through_lookback_window_days', index=8, + number=9, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='view_through_lookback_window_days', full_name='google.ads.googleads.v4.resources.ConversionAction.view_through_lookback_window_days', index=9, + number=10, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='value_settings', full_name='google.ads.googleads.v4.resources.ConversionAction.value_settings', index=10, + number=11, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='counting_type', full_name='google.ads.googleads.v4.resources.ConversionAction.counting_type', index=11, + number=12, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='attribution_model_settings', full_name='google.ads.googleads.v4.resources.ConversionAction.attribution_model_settings', index=12, + number=13, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='tag_snippets', full_name='google.ads.googleads.v4.resources.ConversionAction.tag_snippets', index=13, + number=14, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='phone_call_duration_seconds', full_name='google.ads.googleads.v4.resources.ConversionAction.phone_call_duration_seconds', index=14, + number=15, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='app_id', full_name='google.ads.googleads.v4.resources.ConversionAction.app_id', index=15, + number=16, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='mobile_app_vendor', full_name='google.ads.googleads.v4.resources.ConversionAction.mobile_app_vendor', index=16, + number=17, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='firebase_settings', full_name='google.ads.googleads.v4.resources.ConversionAction.firebase_settings', index=17, + number=18, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='third_party_app_analytics_settings', full_name='google.ads.googleads.v4.resources.ConversionAction.third_party_app_analytics_settings', index=18, + number=19, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[_CONVERSIONACTION_ATTRIBUTIONMODELSETTINGS, _CONVERSIONACTION_VALUESETTINGS, _CONVERSIONACTION_THIRDPARTYAPPANALYTICSSETTINGS, _CONVERSIONACTION_FIREBASESETTINGS, ], + enum_types=[ + ], + serialized_options=_b('\352Ag\n)googleads.googleapis.com/ConversionAction\022:customers/{customer}/conversionActions/{conversion_action}'), + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=750, + serialized_end=3110, +) + +_CONVERSIONACTION_ATTRIBUTIONMODELSETTINGS.fields_by_name['attribution_model'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_attribution__model__pb2._ATTRIBUTIONMODELENUM_ATTRIBUTIONMODEL +_CONVERSIONACTION_ATTRIBUTIONMODELSETTINGS.fields_by_name['data_driven_model_status'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_data__driven__model__status__pb2._DATADRIVENMODELSTATUSENUM_DATADRIVENMODELSTATUS +_CONVERSIONACTION_ATTRIBUTIONMODELSETTINGS.containing_type = _CONVERSIONACTION +_CONVERSIONACTION_VALUESETTINGS.fields_by_name['default_value'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE +_CONVERSIONACTION_VALUESETTINGS.fields_by_name['default_currency_code'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_CONVERSIONACTION_VALUESETTINGS.fields_by_name['always_use_default_value'].message_type = google_dot_protobuf_dot_wrappers__pb2._BOOLVALUE +_CONVERSIONACTION_VALUESETTINGS.containing_type = _CONVERSIONACTION +_CONVERSIONACTION_THIRDPARTYAPPANALYTICSSETTINGS.fields_by_name['event_name'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_CONVERSIONACTION_THIRDPARTYAPPANALYTICSSETTINGS.containing_type = _CONVERSIONACTION +_CONVERSIONACTION_FIREBASESETTINGS.fields_by_name['event_name'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_CONVERSIONACTION_FIREBASESETTINGS.fields_by_name['project_id'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_CONVERSIONACTION_FIREBASESETTINGS.containing_type = _CONVERSIONACTION +_CONVERSIONACTION.fields_by_name['id'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_CONVERSIONACTION.fields_by_name['name'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_CONVERSIONACTION.fields_by_name['status'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_conversion__action__status__pb2._CONVERSIONACTIONSTATUSENUM_CONVERSIONACTIONSTATUS +_CONVERSIONACTION.fields_by_name['type'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_conversion__action__type__pb2._CONVERSIONACTIONTYPEENUM_CONVERSIONACTIONTYPE +_CONVERSIONACTION.fields_by_name['category'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_conversion__action__category__pb2._CONVERSIONACTIONCATEGORYENUM_CONVERSIONACTIONCATEGORY +_CONVERSIONACTION.fields_by_name['owner_customer'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_CONVERSIONACTION.fields_by_name['include_in_conversions_metric'].message_type = google_dot_protobuf_dot_wrappers__pb2._BOOLVALUE +_CONVERSIONACTION.fields_by_name['click_through_lookback_window_days'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_CONVERSIONACTION.fields_by_name['view_through_lookback_window_days'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_CONVERSIONACTION.fields_by_name['value_settings'].message_type = _CONVERSIONACTION_VALUESETTINGS +_CONVERSIONACTION.fields_by_name['counting_type'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_conversion__action__counting__type__pb2._CONVERSIONACTIONCOUNTINGTYPEENUM_CONVERSIONACTIONCOUNTINGTYPE +_CONVERSIONACTION.fields_by_name['attribution_model_settings'].message_type = _CONVERSIONACTION_ATTRIBUTIONMODELSETTINGS +_CONVERSIONACTION.fields_by_name['tag_snippets'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_tag__snippet__pb2._TAGSNIPPET +_CONVERSIONACTION.fields_by_name['phone_call_duration_seconds'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_CONVERSIONACTION.fields_by_name['app_id'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_CONVERSIONACTION.fields_by_name['mobile_app_vendor'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_mobile__app__vendor__pb2._MOBILEAPPVENDORENUM_MOBILEAPPVENDOR +_CONVERSIONACTION.fields_by_name['firebase_settings'].message_type = _CONVERSIONACTION_FIREBASESETTINGS +_CONVERSIONACTION.fields_by_name['third_party_app_analytics_settings'].message_type = _CONVERSIONACTION_THIRDPARTYAPPANALYTICSSETTINGS +DESCRIPTOR.message_types_by_name['ConversionAction'] = _CONVERSIONACTION +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +ConversionAction = _reflection.GeneratedProtocolMessageType('ConversionAction', (_message.Message,), dict( + + AttributionModelSettings = _reflection.GeneratedProtocolMessageType('AttributionModelSettings', (_message.Message,), dict( + DESCRIPTOR = _CONVERSIONACTION_ATTRIBUTIONMODELSETTINGS, + __module__ = 'google.ads.googleads_v4.proto.resources.conversion_action_pb2' + , + __doc__ = """Settings related to this conversion action's attribution model. + + + Attributes: + attribution_model: + The attribution model type of this conversion action. + data_driven_model_status: + Output only. The status of the data-driven attribution model + for the conversion action. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.resources.ConversionAction.AttributionModelSettings) + )) + , + + ValueSettings = _reflection.GeneratedProtocolMessageType('ValueSettings', (_message.Message,), dict( + DESCRIPTOR = _CONVERSIONACTION_VALUESETTINGS, + __module__ = 'google.ads.googleads_v4.proto.resources.conversion_action_pb2' + , + __doc__ = """Settings related to the value for conversion events associated with this + conversion action. + + + Attributes: + default_value: + The value to use when conversion events for this conversion + action are sent with an invalid, disallowed or missing value, + or when this conversion action is configured to always use the + default value. + default_currency_code: + The currency code to use when conversion events for this + conversion action are sent with an invalid or missing currency + code, or when this conversion action is configured to always + use the default value. + always_use_default_value: + Controls whether the default value and default currency code + are used in place of the value and currency code specified in + conversion events for this conversion action. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.resources.ConversionAction.ValueSettings) + )) + , + + ThirdPartyAppAnalyticsSettings = _reflection.GeneratedProtocolMessageType('ThirdPartyAppAnalyticsSettings', (_message.Message,), dict( + DESCRIPTOR = _CONVERSIONACTION_THIRDPARTYAPPANALYTICSSETTINGS, + __module__ = 'google.ads.googleads_v4.proto.resources.conversion_action_pb2' + , + __doc__ = """Settings related to a third party app analytics conversion action. + + + Attributes: + event_name: + Output only. The event name of a third-party app analytics + conversion. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.resources.ConversionAction.ThirdPartyAppAnalyticsSettings) + )) + , + + FirebaseSettings = _reflection.GeneratedProtocolMessageType('FirebaseSettings', (_message.Message,), dict( + DESCRIPTOR = _CONVERSIONACTION_FIREBASESETTINGS, + __module__ = 'google.ads.googleads_v4.proto.resources.conversion_action_pb2' + , + __doc__ = """Settings related to a Firebase conversion action. + + + Attributes: + event_name: + Output only. The event name of a Firebase conversion. + project_id: + Output only. The Firebase project ID of the conversion. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.resources.ConversionAction.FirebaseSettings) + )) + , + DESCRIPTOR = _CONVERSIONACTION, + __module__ = 'google.ads.googleads_v4.proto.resources.conversion_action_pb2' + , + __doc__ = """A conversion action. + + + Attributes: + resource_name: + Immutable. The resource name of the conversion action. + Conversion action resource names have the form: ``customers/{ + customer_id}/conversionActions/{conversion_action_id}`` + id: + Output only. The ID of the conversion action. + name: + The name of the conversion action. This field is required and + should not be empty when creating new conversion actions. + status: + The status of this conversion action for conversion event + accrual. + type: + Immutable. The type of this conversion action. + category: + The category of conversions reported for this conversion + action. + owner_customer: + Output only. The resource name of the conversion action owner + customer, or null if this is a system-defined conversion + action. + include_in_conversions_metric: + Whether this conversion action should be included in the + "conversions" metric. + click_through_lookback_window_days: + The maximum number of days that may elapse between an + interaction (e.g., a click) and a conversion event. + view_through_lookback_window_days: + The maximum number of days which may elapse between an + impression and a conversion without an interaction. + value_settings: + Settings related to the value for conversion events associated + with this conversion action. + counting_type: + How to count conversion events for the conversion action. + attribution_model_settings: + Settings related to this conversion action's attribution + model. + tag_snippets: + Output only. The snippets used for tracking conversions. + phone_call_duration_seconds: + The phone call duration in seconds after which a conversion + should be reported for this conversion action. The value must + be between 0 and 10000, inclusive. + app_id: + App ID for an app conversion action. + mobile_app_vendor: + Output only. Mobile app vendor for an app conversion action. + firebase_settings: + Output only. Firebase settings for Firebase conversion types. + third_party_app_analytics_settings: + Output only. Third Party App Analytics settings for third + party conversion types. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.resources.ConversionAction) + )) +_sym_db.RegisterMessage(ConversionAction) +_sym_db.RegisterMessage(ConversionAction.AttributionModelSettings) +_sym_db.RegisterMessage(ConversionAction.ValueSettings) +_sym_db.RegisterMessage(ConversionAction.ThirdPartyAppAnalyticsSettings) +_sym_db.RegisterMessage(ConversionAction.FirebaseSettings) + + +DESCRIPTOR._options = None +_CONVERSIONACTION_ATTRIBUTIONMODELSETTINGS.fields_by_name['data_driven_model_status']._options = None +_CONVERSIONACTION_THIRDPARTYAPPANALYTICSSETTINGS.fields_by_name['event_name']._options = None +_CONVERSIONACTION_FIREBASESETTINGS.fields_by_name['event_name']._options = None +_CONVERSIONACTION_FIREBASESETTINGS.fields_by_name['project_id']._options = None +_CONVERSIONACTION.fields_by_name['resource_name']._options = None +_CONVERSIONACTION.fields_by_name['id']._options = None +_CONVERSIONACTION.fields_by_name['type']._options = None +_CONVERSIONACTION.fields_by_name['owner_customer']._options = None +_CONVERSIONACTION.fields_by_name['tag_snippets']._options = None +_CONVERSIONACTION.fields_by_name['mobile_app_vendor']._options = None +_CONVERSIONACTION.fields_by_name['firebase_settings']._options = None +_CONVERSIONACTION.fields_by_name['third_party_app_analytics_settings']._options = None +_CONVERSIONACTION._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/resources/landing_page_view_pb2_grpc.py b/google/ads/google_ads/v4/proto/resources/conversion_action_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/resources/landing_page_view_pb2_grpc.py rename to google/ads/google_ads/v4/proto/resources/conversion_action_pb2_grpc.py diff --git a/google/ads/google_ads/v4/proto/resources/currency_constant_pb2.py b/google/ads/google_ads/v4/proto/resources/currency_constant_pb2.py new file mode 100644 index 000000000..f36c33860 --- /dev/null +++ b/google/ads/google_ads/v4/proto/resources/currency_constant_pb2.py @@ -0,0 +1,134 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/resources/currency_constant.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 +from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/resources/currency_constant.proto', + package='google.ads.googleads.v4.resources', + syntax='proto3', + serialized_options=_b('\n%com.google.ads.googleads.v4.resourcesB\025CurrencyConstantProtoP\001ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v4/resources;resources\242\002\003GAA\252\002!Google.Ads.GoogleAds.V4.Resources\312\002!Google\\Ads\\GoogleAds\\V4\\Resources\352\002%Google::Ads::GoogleAds::V4::Resources'), + serialized_pb=_b('\n?google/ads/googleads_v4/proto/resources/currency_constant.proto\x12!google.ads.googleads.v4.resources\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1cgoogle/api/annotations.proto\"\x88\x03\n\x10\x43urrencyConstant\x12H\n\rresource_name\x18\x01 \x01(\tB1\xe0\x41\x03\xfa\x41+\n)googleads.googleapis.com/CurrencyConstant\x12/\n\x04\x63ode\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValueB\x03\xe0\x41\x03\x12/\n\x04name\x18\x03 \x01(\x0b\x32\x1c.google.protobuf.StringValueB\x03\xe0\x41\x03\x12\x31\n\x06symbol\x18\x04 \x01(\x0b\x32\x1c.google.protobuf.StringValueB\x03\xe0\x41\x03\x12>\n\x14\x62illable_unit_micros\x18\x05 \x01(\x0b\x32\x1b.google.protobuf.Int64ValueB\x03\xe0\x41\x03:U\xea\x41R\n)googleads.googleapis.com/CurrencyConstant\x12%currencyConstants/{currency_constant}B\x82\x02\n%com.google.ads.googleads.v4.resourcesB\x15\x43urrencyConstantProtoP\x01ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v4/resources;resources\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V4.Resources\xca\x02!Google\\Ads\\GoogleAds\\V4\\Resources\xea\x02%Google::Ads::GoogleAds::V4::Resourcesb\x06proto3') + , + dependencies=[google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_api_dot_resource__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + + +_CURRENCYCONSTANT = _descriptor.Descriptor( + name='CurrencyConstant', + full_name='google.ads.googleads.v4.resources.CurrencyConstant', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.resources.CurrencyConstant.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003\372A+\n)googleads.googleapis.com/CurrencyConstant'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='code', full_name='google.ads.googleads.v4.resources.CurrencyConstant.code', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='name', full_name='google.ads.googleads.v4.resources.CurrencyConstant.name', index=2, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='symbol', full_name='google.ads.googleads.v4.resources.CurrencyConstant.symbol', index=3, + number=4, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='billable_unit_micros', full_name='google.ads.googleads.v4.resources.CurrencyConstant.billable_unit_micros', index=4, + number=5, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=_b('\352AR\n)googleads.googleapis.com/CurrencyConstant\022%currencyConstants/{currency_constant}'), + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=225, + serialized_end=617, +) + +_CURRENCYCONSTANT.fields_by_name['code'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_CURRENCYCONSTANT.fields_by_name['name'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_CURRENCYCONSTANT.fields_by_name['symbol'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_CURRENCYCONSTANT.fields_by_name['billable_unit_micros'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +DESCRIPTOR.message_types_by_name['CurrencyConstant'] = _CURRENCYCONSTANT +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +CurrencyConstant = _reflection.GeneratedProtocolMessageType('CurrencyConstant', (_message.Message,), dict( + DESCRIPTOR = _CURRENCYCONSTANT, + __module__ = 'google.ads.googleads_v4.proto.resources.currency_constant_pb2' + , + __doc__ = """A currency constant. + + + Attributes: + resource_name: + Output only. The resource name of the currency constant. + Currency constant resource names have the form: + ``currencyConstants/{currency_code}`` + code: + Output only. ISO 4217 three-letter currency code, e.g. "USD" + name: + Output only. Full English name of the currency. + symbol: + Output only. Standard symbol for describing this currency, + e.g. '$' for US Dollars. + billable_unit_micros: + Output only. The billable unit for this currency. Billed + amounts should be multiples of this value. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.resources.CurrencyConstant) + )) +_sym_db.RegisterMessage(CurrencyConstant) + + +DESCRIPTOR._options = None +_CURRENCYCONSTANT.fields_by_name['resource_name']._options = None +_CURRENCYCONSTANT.fields_by_name['code']._options = None +_CURRENCYCONSTANT.fields_by_name['name']._options = None +_CURRENCYCONSTANT.fields_by_name['symbol']._options = None +_CURRENCYCONSTANT.fields_by_name['billable_unit_micros']._options = None +_CURRENCYCONSTANT._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/resources/language_constant_pb2_grpc.py b/google/ads/google_ads/v4/proto/resources/currency_constant_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/resources/language_constant_pb2_grpc.py rename to google/ads/google_ads/v4/proto/resources/currency_constant_pb2_grpc.py diff --git a/google/ads/google_ads/v4/proto/resources/custom_interest_pb2.py b/google/ads/google_ads/v4/proto/resources/custom_interest_pb2.py new file mode 100644 index 000000000..6d301df74 --- /dev/null +++ b/google/ads/google_ads/v4/proto/resources/custom_interest_pb2.py @@ -0,0 +1,221 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/resources/custom_interest.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.ads.google_ads.v4.proto.enums import custom_interest_member_type_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_custom__interest__member__type__pb2 +from google.ads.google_ads.v4.proto.enums import custom_interest_status_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_custom__interest__status__pb2 +from google.ads.google_ads.v4.proto.enums import custom_interest_type_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_custom__interest__type__pb2 +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 +from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/resources/custom_interest.proto', + package='google.ads.googleads.v4.resources', + syntax='proto3', + serialized_options=_b('\n%com.google.ads.googleads.v4.resourcesB\023CustomInterestProtoP\001ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v4/resources;resources\242\002\003GAA\252\002!Google.Ads.GoogleAds.V4.Resources\312\002!Google\\Ads\\GoogleAds\\V4\\Resources\352\002%Google::Ads::GoogleAds::V4::Resources'), + serialized_pb=_b('\n=google/ads/googleads_v4/proto/resources/custom_interest.proto\x12!google.ads.googleads.v4.resources\x1a\x45google/ads/googleads_v4/proto/enums/custom_interest_member_type.proto\x1a@google/ads/googleads_v4/proto/enums/custom_interest_status.proto\x1a>google/ads/googleads_v4/proto/enums/custom_interest_type.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1cgoogle/api/annotations.proto\"\xcb\x04\n\x0e\x43ustomInterest\x12\x46\n\rresource_name\x18\x01 \x01(\tB/\xe0\x41\x05\xfa\x41)\n\'googleads.googleapis.com/CustomInterest\x12,\n\x02id\x18\x02 \x01(\x0b\x32\x1b.google.protobuf.Int64ValueB\x03\xe0\x41\x03\x12\\\n\x06status\x18\x03 \x01(\x0e\x32L.google.ads.googleads.v4.enums.CustomInterestStatusEnum.CustomInterestStatus\x12*\n\x04name\x18\x04 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12V\n\x04type\x18\x05 \x01(\x0e\x32H.google.ads.googleads.v4.enums.CustomInterestTypeEnum.CustomInterestType\x12\x31\n\x0b\x64\x65scription\x18\x06 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12H\n\x07members\x18\x07 \x03(\x0b\x32\x37.google.ads.googleads.v4.resources.CustomInterestMember:d\xea\x41\x61\n\'googleads.googleapis.com/CustomInterest\x12\x36\x63ustomers/{customer}/customInterests/{custom_interest}\"\xb2\x01\n\x14\x43ustomInterestMember\x12i\n\x0bmember_type\x18\x01 \x01(\x0e\x32T.google.ads.googleads.v4.enums.CustomInterestMemberTypeEnum.CustomInterestMemberType\x12/\n\tparameter\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValueB\x80\x02\n%com.google.ads.googleads.v4.resourcesB\x13\x43ustomInterestProtoP\x01ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v4/resources;resources\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V4.Resources\xca\x02!Google\\Ads\\GoogleAds\\V4\\Resources\xea\x02%Google::Ads::GoogleAds::V4::Resourcesb\x06proto3') + , + dependencies=[google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_custom__interest__member__type__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_custom__interest__status__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_custom__interest__type__pb2.DESCRIPTOR,google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_api_dot_resource__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + + +_CUSTOMINTEREST = _descriptor.Descriptor( + name='CustomInterest', + full_name='google.ads.googleads.v4.resources.CustomInterest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.resources.CustomInterest.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005\372A)\n\'googleads.googleapis.com/CustomInterest'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='id', full_name='google.ads.googleads.v4.resources.CustomInterest.id', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='status', full_name='google.ads.googleads.v4.resources.CustomInterest.status', index=2, + number=3, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='name', full_name='google.ads.googleads.v4.resources.CustomInterest.name', index=3, + number=4, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='type', full_name='google.ads.googleads.v4.resources.CustomInterest.type', index=4, + number=5, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='description', full_name='google.ads.googleads.v4.resources.CustomInterest.description', index=5, + number=6, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='members', full_name='google.ads.googleads.v4.resources.CustomInterest.members', index=6, + number=7, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=_b('\352Aa\n\'googleads.googleapis.com/CustomInterest\0226customers/{customer}/customInterests/{custom_interest}'), + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=424, + serialized_end=1011, +) + + +_CUSTOMINTERESTMEMBER = _descriptor.Descriptor( + name='CustomInterestMember', + full_name='google.ads.googleads.v4.resources.CustomInterestMember', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='member_type', full_name='google.ads.googleads.v4.resources.CustomInterestMember.member_type', index=0, + number=1, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='parameter', full_name='google.ads.googleads.v4.resources.CustomInterestMember.parameter', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1014, + serialized_end=1192, +) + +_CUSTOMINTEREST.fields_by_name['id'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_CUSTOMINTEREST.fields_by_name['status'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_custom__interest__status__pb2._CUSTOMINTERESTSTATUSENUM_CUSTOMINTERESTSTATUS +_CUSTOMINTEREST.fields_by_name['name'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_CUSTOMINTEREST.fields_by_name['type'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_custom__interest__type__pb2._CUSTOMINTERESTTYPEENUM_CUSTOMINTERESTTYPE +_CUSTOMINTEREST.fields_by_name['description'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_CUSTOMINTEREST.fields_by_name['members'].message_type = _CUSTOMINTERESTMEMBER +_CUSTOMINTERESTMEMBER.fields_by_name['member_type'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_custom__interest__member__type__pb2._CUSTOMINTERESTMEMBERTYPEENUM_CUSTOMINTERESTMEMBERTYPE +_CUSTOMINTERESTMEMBER.fields_by_name['parameter'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +DESCRIPTOR.message_types_by_name['CustomInterest'] = _CUSTOMINTEREST +DESCRIPTOR.message_types_by_name['CustomInterestMember'] = _CUSTOMINTERESTMEMBER +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +CustomInterest = _reflection.GeneratedProtocolMessageType('CustomInterest', (_message.Message,), dict( + DESCRIPTOR = _CUSTOMINTEREST, + __module__ = 'google.ads.googleads_v4.proto.resources.custom_interest_pb2' + , + __doc__ = """A custom interest. This is a list of users by interest. + + + Attributes: + resource_name: + Immutable. The resource name of the custom interest. Custom + interest resource names have the form: ``customers/{customer_ + id}/customInterests/{custom_interest_id}`` + id: + Output only. Id of the custom interest. + status: + Status of this custom interest. Indicates whether the custom + interest is enabled or removed. + name: + Name of the custom interest. It should be unique across the + same custom affinity audience. This field is required for + create operations. + type: + Type of the custom interest, CUSTOM\_AFFINITY or + CUSTOM\_INTENT. By default the type is set to + CUSTOM\_AFFINITY. + description: + Description of this custom interest audience. + members: + List of custom interest members that this custom interest is + composed of. Members can be added during CustomInterest + creation. If members are presented in UPDATE operation, + existing members will be overridden. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.resources.CustomInterest) + )) +_sym_db.RegisterMessage(CustomInterest) + +CustomInterestMember = _reflection.GeneratedProtocolMessageType('CustomInterestMember', (_message.Message,), dict( + DESCRIPTOR = _CUSTOMINTERESTMEMBER, + __module__ = 'google.ads.googleads_v4.proto.resources.custom_interest_pb2' + , + __doc__ = """A member of custom interest audience. A member can be a keyword or url. + It is immutable, that is, it can only be created or removed but not + changed. + + + Attributes: + member_type: + The type of custom interest member, KEYWORD or URL. + parameter: + Keyword text when member\_type is KEYWORD or URL string when + member\_type is URL. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.resources.CustomInterestMember) + )) +_sym_db.RegisterMessage(CustomInterestMember) + + +DESCRIPTOR._options = None +_CUSTOMINTEREST.fields_by_name['resource_name']._options = None +_CUSTOMINTEREST.fields_by_name['id']._options = None +_CUSTOMINTEREST._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/resources/location_view_pb2_grpc.py b/google/ads/google_ads/v4/proto/resources/custom_interest_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/resources/location_view_pb2_grpc.py rename to google/ads/google_ads/v4/proto/resources/custom_interest_pb2_grpc.py diff --git a/google/ads/google_ads/v4/proto/resources/customer_client_link_pb2.py b/google/ads/google_ads/v4/proto/resources/customer_client_link_pb2.py new file mode 100644 index 000000000..d1ef46096 --- /dev/null +++ b/google/ads/google_ads/v4/proto/resources/customer_client_link_pb2.py @@ -0,0 +1,133 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/resources/customer_client_link.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.ads.google_ads.v4.proto.enums import manager_link_status_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_manager__link__status__pb2 +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 +from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/resources/customer_client_link.proto', + package='google.ads.googleads.v4.resources', + syntax='proto3', + serialized_options=_b('\n%com.google.ads.googleads.v4.resourcesB\027CustomerClientLinkProtoP\001ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v4/resources;resources\242\002\003GAA\252\002!Google.Ads.GoogleAds.V4.Resources\312\002!Google\\Ads\\GoogleAds\\V4\\Resources\352\002%Google::Ads::GoogleAds::V4::Resources'), + serialized_pb=_b('\nBgoogle/ads/googleads_v4/proto/resources/customer_client_link.proto\x12!google.ads.googleads.v4.resources\x1a=google/ads/googleads_v4/proto/enums/manager_link_status.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1cgoogle/api/annotations.proto\"\xce\x03\n\x12\x43ustomerClientLink\x12J\n\rresource_name\x18\x01 \x01(\tB3\xe0\x41\x05\xfa\x41-\n+googleads.googleapis.com/CustomerClientLink\x12:\n\x0f\x63lient_customer\x18\x03 \x01(\x0b\x32\x1c.google.protobuf.StringValueB\x03\xe0\x41\x05\x12\x39\n\x0fmanager_link_id\x18\x04 \x01(\x0b\x32\x1b.google.protobuf.Int64ValueB\x03\xe0\x41\x03\x12V\n\x06status\x18\x05 \x01(\x0e\x32\x46.google.ads.googleads.v4.enums.ManagerLinkStatusEnum.ManagerLinkStatus\x12*\n\x06hidden\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.BoolValue:q\xea\x41n\n+googleads.googleapis.com/CustomerClientLink\x12?customers/{customer}/customerClientLinks/{customer_client_link}B\x84\x02\n%com.google.ads.googleads.v4.resourcesB\x17\x43ustomerClientLinkProtoP\x01ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v4/resources;resources\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V4.Resources\xca\x02!Google\\Ads\\GoogleAds\\V4\\Resources\xea\x02%Google::Ads::GoogleAds::V4::Resourcesb\x06proto3') + , + dependencies=[google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_manager__link__status__pb2.DESCRIPTOR,google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_api_dot_resource__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + + +_CUSTOMERCLIENTLINK = _descriptor.Descriptor( + name='CustomerClientLink', + full_name='google.ads.googleads.v4.resources.CustomerClientLink', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.resources.CustomerClientLink.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005\372A-\n+googleads.googleapis.com/CustomerClientLink'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='client_customer', full_name='google.ads.googleads.v4.resources.CustomerClientLink.client_customer', index=1, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='manager_link_id', full_name='google.ads.googleads.v4.resources.CustomerClientLink.manager_link_id', index=2, + number=4, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='status', full_name='google.ads.googleads.v4.resources.CustomerClientLink.status', index=3, + number=5, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='hidden', full_name='google.ads.googleads.v4.resources.CustomerClientLink.hidden', index=4, + number=6, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=_b('\352An\n+googleads.googleapis.com/CustomerClientLink\022?customers/{customer}/customerClientLinks/{customer_client_link}'), + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=291, + serialized_end=753, +) + +_CUSTOMERCLIENTLINK.fields_by_name['client_customer'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_CUSTOMERCLIENTLINK.fields_by_name['manager_link_id'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_CUSTOMERCLIENTLINK.fields_by_name['status'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_manager__link__status__pb2._MANAGERLINKSTATUSENUM_MANAGERLINKSTATUS +_CUSTOMERCLIENTLINK.fields_by_name['hidden'].message_type = google_dot_protobuf_dot_wrappers__pb2._BOOLVALUE +DESCRIPTOR.message_types_by_name['CustomerClientLink'] = _CUSTOMERCLIENTLINK +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +CustomerClientLink = _reflection.GeneratedProtocolMessageType('CustomerClientLink', (_message.Message,), dict( + DESCRIPTOR = _CUSTOMERCLIENTLINK, + __module__ = 'google.ads.googleads_v4.proto.resources.customer_client_link_pb2' + , + __doc__ = """Represents customer client link relationship. + + + Attributes: + resource_name: + Immutable. Name of the resource. CustomerClientLink resource + names have the form: ``customers/{customer_id}/customerClientL + inks/{client_customer_id}~{manager_link_id}`` + client_customer: + Immutable. The client customer linked to this customer. + manager_link_id: + Output only. This is uniquely identifies a customer client + link. Read only. + status: + This is the status of the link between client and manager. + hidden: + The visibility of the link. Users can choose whether or not to + see hidden links in the AdWords UI. Default value is false + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.resources.CustomerClientLink) + )) +_sym_db.RegisterMessage(CustomerClientLink) + + +DESCRIPTOR._options = None +_CUSTOMERCLIENTLINK.fields_by_name['resource_name']._options = None +_CUSTOMERCLIENTLINK.fields_by_name['client_customer']._options = None +_CUSTOMERCLIENTLINK.fields_by_name['manager_link_id']._options = None +_CUSTOMERCLIENTLINK._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/resources/managed_placement_view_pb2_grpc.py b/google/ads/google_ads/v4/proto/resources/customer_client_link_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/resources/managed_placement_view_pb2_grpc.py rename to google/ads/google_ads/v4/proto/resources/customer_client_link_pb2_grpc.py diff --git a/google/ads/google_ads/v4/proto/resources/customer_client_pb2.py b/google/ads/google_ads/v4/proto/resources/customer_client_pb2.py new file mode 100644 index 000000000..86dc2cf09 --- /dev/null +++ b/google/ads/google_ads/v4/proto/resources/customer_client_pb2.py @@ -0,0 +1,197 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/resources/customer_client.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 +from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/resources/customer_client.proto', + package='google.ads.googleads.v4.resources', + syntax='proto3', + serialized_options=_b('\n%com.google.ads.googleads.v4.resourcesB\023CustomerClientProtoP\001ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v4/resources;resources\242\002\003GAA\252\002!Google.Ads.GoogleAds.V4.Resources\312\002!Google\\Ads\\GoogleAds\\V4\\Resources\352\002%Google::Ads::GoogleAds::V4::Resources'), + serialized_pb=_b('\n=google/ads/googleads_v4/proto/resources/customer_client.proto\x12!google.ads.googleads.v4.resources\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1cgoogle/api/annotations.proto\"\xa0\x05\n\x0e\x43ustomerClient\x12\x46\n\rresource_name\x18\x01 \x01(\tB/\xe0\x41\x03\xfa\x41)\n\'googleads.googleapis.com/CustomerClient\x12:\n\x0f\x63lient_customer\x18\x03 \x01(\x0b\x32\x1c.google.protobuf.StringValueB\x03\xe0\x41\x03\x12/\n\x06hidden\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.BoolValueB\x03\xe0\x41\x03\x12/\n\x05level\x18\x05 \x01(\x0b\x32\x1b.google.protobuf.Int64ValueB\x03\xe0\x41\x03\x12\x34\n\ttime_zone\x18\x06 \x01(\x0b\x32\x1c.google.protobuf.StringValueB\x03\xe0\x41\x03\x12\x35\n\x0ctest_account\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.BoolValueB\x03\xe0\x41\x03\x12\x30\n\x07manager\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.BoolValueB\x03\xe0\x41\x03\x12;\n\x10\x64\x65scriptive_name\x18\t \x01(\x0b\x32\x1c.google.protobuf.StringValueB\x03\xe0\x41\x03\x12\x38\n\rcurrency_code\x18\n \x01(\x0b\x32\x1c.google.protobuf.StringValueB\x03\xe0\x41\x03\x12,\n\x02id\x18\x0b \x01(\x0b\x32\x1b.google.protobuf.Int64ValueB\x03\xe0\x41\x03:d\xea\x41\x61\n\'googleads.googleapis.com/CustomerClient\x12\x36\x63ustomers/{customer}/customerClients/{customer_client}B\x80\x02\n%com.google.ads.googleads.v4.resourcesB\x13\x43ustomerClientProtoP\x01ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v4/resources;resources\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V4.Resources\xca\x02!Google\\Ads\\GoogleAds\\V4\\Resources\xea\x02%Google::Ads::GoogleAds::V4::Resourcesb\x06proto3') + , + dependencies=[google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_api_dot_resource__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + + +_CUSTOMERCLIENT = _descriptor.Descriptor( + name='CustomerClient', + full_name='google.ads.googleads.v4.resources.CustomerClient', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.resources.CustomerClient.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003\372A)\n\'googleads.googleapis.com/CustomerClient'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='client_customer', full_name='google.ads.googleads.v4.resources.CustomerClient.client_customer', index=1, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='hidden', full_name='google.ads.googleads.v4.resources.CustomerClient.hidden', index=2, + number=4, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='level', full_name='google.ads.googleads.v4.resources.CustomerClient.level', index=3, + number=5, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='time_zone', full_name='google.ads.googleads.v4.resources.CustomerClient.time_zone', index=4, + number=6, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='test_account', full_name='google.ads.googleads.v4.resources.CustomerClient.test_account', index=5, + number=7, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='manager', full_name='google.ads.googleads.v4.resources.CustomerClient.manager', index=6, + number=8, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='descriptive_name', full_name='google.ads.googleads.v4.resources.CustomerClient.descriptive_name', index=7, + number=9, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='currency_code', full_name='google.ads.googleads.v4.resources.CustomerClient.currency_code', index=8, + number=10, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='id', full_name='google.ads.googleads.v4.resources.CustomerClient.id', index=9, + number=11, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=_b('\352Aa\n\'googleads.googleapis.com/CustomerClient\0226customers/{customer}/customerClients/{customer_client}'), + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=223, + serialized_end=895, +) + +_CUSTOMERCLIENT.fields_by_name['client_customer'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_CUSTOMERCLIENT.fields_by_name['hidden'].message_type = google_dot_protobuf_dot_wrappers__pb2._BOOLVALUE +_CUSTOMERCLIENT.fields_by_name['level'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_CUSTOMERCLIENT.fields_by_name['time_zone'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_CUSTOMERCLIENT.fields_by_name['test_account'].message_type = google_dot_protobuf_dot_wrappers__pb2._BOOLVALUE +_CUSTOMERCLIENT.fields_by_name['manager'].message_type = google_dot_protobuf_dot_wrappers__pb2._BOOLVALUE +_CUSTOMERCLIENT.fields_by_name['descriptive_name'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_CUSTOMERCLIENT.fields_by_name['currency_code'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_CUSTOMERCLIENT.fields_by_name['id'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +DESCRIPTOR.message_types_by_name['CustomerClient'] = _CUSTOMERCLIENT +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +CustomerClient = _reflection.GeneratedProtocolMessageType('CustomerClient', (_message.Message,), dict( + DESCRIPTOR = _CUSTOMERCLIENT, + __module__ = 'google.ads.googleads_v4.proto.resources.customer_client_pb2' + , + __doc__ = """A link between the given customer and a client customer. CustomerClients + only exist for manager customers. All direct and indirect client + customers are included, as well as the manager itself. + + + Attributes: + resource_name: + Output only. The resource name of the customer client. + CustomerClient resource names have the form: ``customers/{cust + omer_id}/customerClients/{client_customer_id}`` + client_customer: + Output only. The resource name of the client-customer which is + linked to the given customer. Read only. + hidden: + Output only. Specifies whether this is a `hidden account + `__. + Read only. + level: + Output only. Distance between given customer and client. For + self link, the level value will be 0. Read only. + time_zone: + Output only. Common Locale Data Repository (CLDR) string + representation of the time zone of the client, e.g. + America/Los\_Angeles. Read only. + test_account: + Output only. Identifies if the client is a test account. Read + only. + manager: + Output only. Identifies if the client is a manager. Read only. + descriptive_name: + Output only. Descriptive name for the client. Read only. + currency_code: + Output only. Currency code (e.g. 'USD', 'EUR') for the client. + Read only. + id: + Output only. The ID of the client customer. Read only. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.resources.CustomerClient) + )) +_sym_db.RegisterMessage(CustomerClient) + + +DESCRIPTOR._options = None +_CUSTOMERCLIENT.fields_by_name['resource_name']._options = None +_CUSTOMERCLIENT.fields_by_name['client_customer']._options = None +_CUSTOMERCLIENT.fields_by_name['hidden']._options = None +_CUSTOMERCLIENT.fields_by_name['level']._options = None +_CUSTOMERCLIENT.fields_by_name['time_zone']._options = None +_CUSTOMERCLIENT.fields_by_name['test_account']._options = None +_CUSTOMERCLIENT.fields_by_name['manager']._options = None +_CUSTOMERCLIENT.fields_by_name['descriptive_name']._options = None +_CUSTOMERCLIENT.fields_by_name['currency_code']._options = None +_CUSTOMERCLIENT.fields_by_name['id']._options = None +_CUSTOMERCLIENT._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/resources/media_file_pb2_grpc.py b/google/ads/google_ads/v4/proto/resources/customer_client_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/resources/media_file_pb2_grpc.py rename to google/ads/google_ads/v4/proto/resources/customer_client_pb2_grpc.py diff --git a/google/ads/google_ads/v4/proto/resources/customer_extension_setting_pb2.py b/google/ads/google_ads/v4/proto/resources/customer_extension_setting_pb2.py new file mode 100644 index 000000000..97694a514 --- /dev/null +++ b/google/ads/google_ads/v4/proto/resources/customer_extension_setting_pb2.py @@ -0,0 +1,126 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/resources/customer_extension_setting.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.ads.google_ads.v4.proto.enums import extension_setting_device_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_extension__setting__device__pb2 +from google.ads.google_ads.v4.proto.enums import extension_type_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_extension__type__pb2 +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 +from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/resources/customer_extension_setting.proto', + package='google.ads.googleads.v4.resources', + syntax='proto3', + serialized_options=_b('\n%com.google.ads.googleads.v4.resourcesB\035CustomerExtensionSettingProtoP\001ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v4/resources;resources\242\002\003GAA\252\002!Google.Ads.GoogleAds.V4.Resources\312\002!Google\\Ads\\GoogleAds\\V4\\Resources\352\002%Google::Ads::GoogleAds::V4::Resources'), + serialized_pb=_b('\nHgoogle/ads/googleads_v4/proto/resources/customer_extension_setting.proto\x12!google.ads.googleads.v4.resources\x1a\x42google/ads/googleads_v4/proto/enums/extension_setting_device.proto\x1a\x38google/ads/googleads_v4/proto/enums/extension_type.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1cgoogle/api/annotations.proto\"\x9f\x04\n\x18\x43ustomerExtensionSetting\x12P\n\rresource_name\x18\x01 \x01(\tB9\xe0\x41\x05\xfa\x41\x33\n1googleads.googleapis.com/CustomerExtensionSetting\x12[\n\x0e\x65xtension_type\x18\x02 \x01(\x0e\x32>.google.ads.googleads.v4.enums.ExtensionTypeEnum.ExtensionTypeB\x03\xe0\x41\x05\x12k\n\x14\x65xtension_feed_items\x18\x03 \x03(\x0b\x32\x1c.google.protobuf.StringValueB/\xfa\x41,\n*googleads.googleapis.com/ExtensionFeedItem\x12`\n\x06\x64\x65vice\x18\x04 \x01(\x0e\x32P.google.ads.googleads.v4.enums.ExtensionSettingDeviceEnum.ExtensionSettingDevice:\x84\x01\xea\x41\x80\x01\n1googleads.googleapis.com/CustomerExtensionSetting\x12Kcustomers/{customer}/customerExtensionSettings/{customer_extension_setting}B\x8a\x02\n%com.google.ads.googleads.v4.resourcesB\x1d\x43ustomerExtensionSettingProtoP\x01ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v4/resources;resources\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V4.Resources\xca\x02!Google\\Ads\\GoogleAds\\V4\\Resources\xea\x02%Google::Ads::GoogleAds::V4::Resourcesb\x06proto3') + , + dependencies=[google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_extension__setting__device__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_extension__type__pb2.DESCRIPTOR,google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_api_dot_resource__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + + +_CUSTOMEREXTENSIONSETTING = _descriptor.Descriptor( + name='CustomerExtensionSetting', + full_name='google.ads.googleads.v4.resources.CustomerExtensionSetting', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.resources.CustomerExtensionSetting.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005\372A3\n1googleads.googleapis.com/CustomerExtensionSetting'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='extension_type', full_name='google.ads.googleads.v4.resources.CustomerExtensionSetting.extension_type', index=1, + number=2, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='extension_feed_items', full_name='google.ads.googleads.v4.resources.CustomerExtensionSetting.extension_feed_items', index=2, + number=3, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\372A,\n*googleads.googleapis.com/ExtensionFeedItem'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='device', full_name='google.ads.googleads.v4.resources.CustomerExtensionSetting.device', index=3, + number=4, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=_b('\352A\200\001\n1googleads.googleapis.com/CustomerExtensionSetting\022Kcustomers/{customer}/customerExtensionSettings/{customer_extension_setting}'), + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=360, + serialized_end=903, +) + +_CUSTOMEREXTENSIONSETTING.fields_by_name['extension_type'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_extension__type__pb2._EXTENSIONTYPEENUM_EXTENSIONTYPE +_CUSTOMEREXTENSIONSETTING.fields_by_name['extension_feed_items'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_CUSTOMEREXTENSIONSETTING.fields_by_name['device'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_extension__setting__device__pb2._EXTENSIONSETTINGDEVICEENUM_EXTENSIONSETTINGDEVICE +DESCRIPTOR.message_types_by_name['CustomerExtensionSetting'] = _CUSTOMEREXTENSIONSETTING +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +CustomerExtensionSetting = _reflection.GeneratedProtocolMessageType('CustomerExtensionSetting', (_message.Message,), dict( + DESCRIPTOR = _CUSTOMEREXTENSIONSETTING, + __module__ = 'google.ads.googleads_v4.proto.resources.customer_extension_setting_pb2' + , + __doc__ = """A customer extension setting. + + + Attributes: + resource_name: + Immutable. The resource name of the customer extension + setting. CustomerExtensionSetting resource names have the + form: ``customers/{customer_id}/customerExtensionSettings/{ex + tension_type}`` + extension_type: + Immutable. The extension type of the customer extension + setting. + extension_feed_items: + The resource names of the extension feed items to serve under + the customer. ExtensionFeedItem resource names have the form: + ``customers/{customer_id}/extensionFeedItems/{feed_item_id}`` + device: + The device for which the extensions will serve. Optional. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.resources.CustomerExtensionSetting) + )) +_sym_db.RegisterMessage(CustomerExtensionSetting) + + +DESCRIPTOR._options = None +_CUSTOMEREXTENSIONSETTING.fields_by_name['resource_name']._options = None +_CUSTOMEREXTENSIONSETTING.fields_by_name['extension_type']._options = None +_CUSTOMEREXTENSIONSETTING.fields_by_name['extension_feed_items']._options = None +_CUSTOMEREXTENSIONSETTING._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/resources/merchant_center_link_pb2_grpc.py b/google/ads/google_ads/v4/proto/resources/customer_extension_setting_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/resources/merchant_center_link_pb2_grpc.py rename to google/ads/google_ads/v4/proto/resources/customer_extension_setting_pb2_grpc.py diff --git a/google/ads/google_ads/v4/proto/resources/customer_feed_pb2.py b/google/ads/google_ads/v4/proto/resources/customer_feed_pb2.py new file mode 100644 index 000000000..14d530d0b --- /dev/null +++ b/google/ads/google_ads/v4/proto/resources/customer_feed_pb2.py @@ -0,0 +1,137 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/resources/customer_feed.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.ads.google_ads.v4.proto.common import matching_function_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_matching__function__pb2 +from google.ads.google_ads.v4.proto.enums import feed_link_status_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_feed__link__status__pb2 +from google.ads.google_ads.v4.proto.enums import placeholder_type_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_placeholder__type__pb2 +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 +from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/resources/customer_feed.proto', + package='google.ads.googleads.v4.resources', + syntax='proto3', + serialized_options=_b('\n%com.google.ads.googleads.v4.resourcesB\021CustomerFeedProtoP\001ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v4/resources;resources\242\002\003GAA\252\002!Google.Ads.GoogleAds.V4.Resources\312\002!Google\\Ads\\GoogleAds\\V4\\Resources\352\002%Google::Ads::GoogleAds::V4::Resources'), + serialized_pb=_b('\n;google/ads/googleads_v4/proto/resources/customer_feed.proto\x12!google.ads.googleads.v4.resources\x1a.google.ads.googleads.v4.enums.CriterionTypeEnum.CriterionTypeB\x03\xe0\x41\x03\x12N\n\rcontent_label\x18\x04 \x01(\x0b\x32\x30.google.ads.googleads.v4.common.ContentLabelInfoB\x03\xe0\x41\x05H\x00\x12X\n\x12mobile_application\x18\x05 \x01(\x0b\x32\x35.google.ads.googleads.v4.common.MobileApplicationInfoB\x03\xe0\x41\x05H\x00\x12Y\n\x13mobile_app_category\x18\x06 \x01(\x0b\x32\x35.google.ads.googleads.v4.common.MobileAppCategoryInfoB\x03\xe0\x41\x05H\x00\x12G\n\tplacement\x18\x07 \x01(\x0b\x32-.google.ads.googleads.v4.common.PlacementInfoB\x03\xe0\x41\x05H\x00\x12N\n\ryoutube_video\x18\x08 \x01(\x0b\x32\x30.google.ads.googleads.v4.common.YouTubeVideoInfoB\x03\xe0\x41\x05H\x00\x12R\n\x0fyoutube_channel\x18\t \x01(\x0b\x32\x32.google.ads.googleads.v4.common.YouTubeChannelInfoB\x03\xe0\x41\x05H\x00:\x85\x01\xea\x41\x81\x01\n2googleads.googleapis.com/CustomerNegativeCriterion\x12Kcustomers/{customer}/customerNegativeCriteria/{customer_negative_criterion}B\x0b\n\tcriterionB\x8b\x02\n%com.google.ads.googleads.v4.resourcesB\x1e\x43ustomerNegativeCriterionProtoP\x01ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v4/resources;resources\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V4.Resources\xca\x02!Google\\Ads\\GoogleAds\\V4\\Resources\xea\x02%Google::Ads::GoogleAds::V4::Resourcesb\x06proto3') + , + dependencies=[google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_criteria__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_criterion__type__pb2.DESCRIPTOR,google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_api_dot_resource__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + + +_CUSTOMERNEGATIVECRITERION = _descriptor.Descriptor( + name='CustomerNegativeCriterion', + full_name='google.ads.googleads.v4.resources.CustomerNegativeCriterion', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.resources.CustomerNegativeCriterion.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005\372A4\n2googleads.googleapis.com/CustomerNegativeCriterion'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='id', full_name='google.ads.googleads.v4.resources.CustomerNegativeCriterion.id', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='type', full_name='google.ads.googleads.v4.resources.CustomerNegativeCriterion.type', index=2, + number=3, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='content_label', full_name='google.ads.googleads.v4.resources.CustomerNegativeCriterion.content_label', index=3, + number=4, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='mobile_application', full_name='google.ads.googleads.v4.resources.CustomerNegativeCriterion.mobile_application', index=4, + number=5, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='mobile_app_category', full_name='google.ads.googleads.v4.resources.CustomerNegativeCriterion.mobile_app_category', index=5, + number=6, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='placement', full_name='google.ads.googleads.v4.resources.CustomerNegativeCriterion.placement', index=6, + number=7, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='youtube_video', full_name='google.ads.googleads.v4.resources.CustomerNegativeCriterion.youtube_video', index=7, + number=8, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='youtube_channel', full_name='google.ads.googleads.v4.resources.CustomerNegativeCriterion.youtube_channel', index=8, + number=9, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=_b('\352A\201\001\n2googleads.googleapis.com/CustomerNegativeCriterion\022Kcustomers/{customer}/customerNegativeCriteria/{customer_negative_criterion}'), + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name='criterion', full_name='google.ads.googleads.v4.resources.CustomerNegativeCriterion.criterion', + index=0, containing_type=None, fields=[]), + ], + serialized_start=346, + serialized_end=1232, +) + +_CUSTOMERNEGATIVECRITERION.fields_by_name['id'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_CUSTOMERNEGATIVECRITERION.fields_by_name['type'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_criterion__type__pb2._CRITERIONTYPEENUM_CRITERIONTYPE +_CUSTOMERNEGATIVECRITERION.fields_by_name['content_label'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_criteria__pb2._CONTENTLABELINFO +_CUSTOMERNEGATIVECRITERION.fields_by_name['mobile_application'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_criteria__pb2._MOBILEAPPLICATIONINFO +_CUSTOMERNEGATIVECRITERION.fields_by_name['mobile_app_category'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_criteria__pb2._MOBILEAPPCATEGORYINFO +_CUSTOMERNEGATIVECRITERION.fields_by_name['placement'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_criteria__pb2._PLACEMENTINFO +_CUSTOMERNEGATIVECRITERION.fields_by_name['youtube_video'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_criteria__pb2._YOUTUBEVIDEOINFO +_CUSTOMERNEGATIVECRITERION.fields_by_name['youtube_channel'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_criteria__pb2._YOUTUBECHANNELINFO +_CUSTOMERNEGATIVECRITERION.oneofs_by_name['criterion'].fields.append( + _CUSTOMERNEGATIVECRITERION.fields_by_name['content_label']) +_CUSTOMERNEGATIVECRITERION.fields_by_name['content_label'].containing_oneof = _CUSTOMERNEGATIVECRITERION.oneofs_by_name['criterion'] +_CUSTOMERNEGATIVECRITERION.oneofs_by_name['criterion'].fields.append( + _CUSTOMERNEGATIVECRITERION.fields_by_name['mobile_application']) +_CUSTOMERNEGATIVECRITERION.fields_by_name['mobile_application'].containing_oneof = _CUSTOMERNEGATIVECRITERION.oneofs_by_name['criterion'] +_CUSTOMERNEGATIVECRITERION.oneofs_by_name['criterion'].fields.append( + _CUSTOMERNEGATIVECRITERION.fields_by_name['mobile_app_category']) +_CUSTOMERNEGATIVECRITERION.fields_by_name['mobile_app_category'].containing_oneof = _CUSTOMERNEGATIVECRITERION.oneofs_by_name['criterion'] +_CUSTOMERNEGATIVECRITERION.oneofs_by_name['criterion'].fields.append( + _CUSTOMERNEGATIVECRITERION.fields_by_name['placement']) +_CUSTOMERNEGATIVECRITERION.fields_by_name['placement'].containing_oneof = _CUSTOMERNEGATIVECRITERION.oneofs_by_name['criterion'] +_CUSTOMERNEGATIVECRITERION.oneofs_by_name['criterion'].fields.append( + _CUSTOMERNEGATIVECRITERION.fields_by_name['youtube_video']) +_CUSTOMERNEGATIVECRITERION.fields_by_name['youtube_video'].containing_oneof = _CUSTOMERNEGATIVECRITERION.oneofs_by_name['criterion'] +_CUSTOMERNEGATIVECRITERION.oneofs_by_name['criterion'].fields.append( + _CUSTOMERNEGATIVECRITERION.fields_by_name['youtube_channel']) +_CUSTOMERNEGATIVECRITERION.fields_by_name['youtube_channel'].containing_oneof = _CUSTOMERNEGATIVECRITERION.oneofs_by_name['criterion'] +DESCRIPTOR.message_types_by_name['CustomerNegativeCriterion'] = _CUSTOMERNEGATIVECRITERION +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +CustomerNegativeCriterion = _reflection.GeneratedProtocolMessageType('CustomerNegativeCriterion', (_message.Message,), dict( + DESCRIPTOR = _CUSTOMERNEGATIVECRITERION, + __module__ = 'google.ads.googleads_v4.proto.resources.customer_negative_criterion_pb2' + , + __doc__ = """A negative criterion for exclusions at the customer level. + + + Attributes: + resource_name: + Immutable. The resource name of the customer negative + criterion. Customer negative criterion resource names have the + form: ``customers/{customer_id}/customerNegativeCriteria/{cri + terion_id}`` + id: + Output only. The ID of the criterion. + type: + Output only. The type of the criterion. + criterion: + The customer negative criterion. Exactly one must be set. + content_label: + Immutable. ContentLabel. + mobile_application: + Immutable. MobileApplication. + mobile_app_category: + Immutable. MobileAppCategory. + placement: + Immutable. Placement. + youtube_video: + Immutable. YouTube Video. + youtube_channel: + Immutable. YouTube Channel. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.resources.CustomerNegativeCriterion) + )) +_sym_db.RegisterMessage(CustomerNegativeCriterion) + + +DESCRIPTOR._options = None +_CUSTOMERNEGATIVECRITERION.fields_by_name['resource_name']._options = None +_CUSTOMERNEGATIVECRITERION.fields_by_name['id']._options = None +_CUSTOMERNEGATIVECRITERION.fields_by_name['type']._options = None +_CUSTOMERNEGATIVECRITERION.fields_by_name['content_label']._options = None +_CUSTOMERNEGATIVECRITERION.fields_by_name['mobile_application']._options = None +_CUSTOMERNEGATIVECRITERION.fields_by_name['mobile_app_category']._options = None +_CUSTOMERNEGATIVECRITERION.fields_by_name['placement']._options = None +_CUSTOMERNEGATIVECRITERION.fields_by_name['youtube_video']._options = None +_CUSTOMERNEGATIVECRITERION.fields_by_name['youtube_channel']._options = None +_CUSTOMERNEGATIVECRITERION._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/resources/operating_system_version_constant_pb2_grpc.py b/google/ads/google_ads/v4/proto/resources/customer_negative_criterion_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/resources/operating_system_version_constant_pb2_grpc.py rename to google/ads/google_ads/v4/proto/resources/customer_negative_criterion_pb2_grpc.py diff --git a/google/ads/google_ads/v4/proto/resources/customer_pb2.py b/google/ads/google_ads/v4/proto/resources/customer_pb2.py new file mode 100644 index 000000000..8aaaf018f --- /dev/null +++ b/google/ads/google_ads/v4/proto/resources/customer_pb2.py @@ -0,0 +1,451 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/resources/customer.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.ads.google_ads.v4.proto.enums import customer_pay_per_conversion_eligibility_failure_reason_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_customer__pay__per__conversion__eligibility__failure__reason__pb2 +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 +from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/resources/customer.proto', + package='google.ads.googleads.v4.resources', + syntax='proto3', + serialized_options=_b('\n%com.google.ads.googleads.v4.resourcesB\rCustomerProtoP\001ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v4/resources;resources\242\002\003GAA\252\002!Google.Ads.GoogleAds.V4.Resources\312\002!Google\\Ads\\GoogleAds\\V4\\Resources\352\002%Google::Ads::GoogleAds::V4::Resources'), + serialized_pb=_b('\n6google/ads/googleads_v4/proto/resources/customer.proto\x12!google.ads.googleads.v4.resources\x1a`google/ads/googleads_v4/proto/enums/customer_pay_per_conversion_eligibility_failure_reason.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1cgoogle/api/annotations.proto\"\xd3\t\n\x08\x43ustomer\x12@\n\rresource_name\x18\x01 \x01(\tB)\xe0\x41\x05\xfa\x41#\n!googleads.googleapis.com/Customer\x12,\n\x02id\x18\x03 \x01(\x0b\x32\x1b.google.protobuf.Int64ValueB\x03\xe0\x41\x03\x12\x36\n\x10\x64\x65scriptive_name\x18\x04 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x38\n\rcurrency_code\x18\x05 \x01(\x0b\x32\x1c.google.protobuf.StringValueB\x03\xe0\x41\x05\x12\x34\n\ttime_zone\x18\x06 \x01(\x0b\x32\x1c.google.protobuf.StringValueB\x03\xe0\x41\x05\x12;\n\x15tracking_url_template\x18\x07 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x36\n\x10\x66inal_url_suffix\x18\x0b \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x38\n\x14\x61uto_tagging_enabled\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.BoolValue\x12;\n\x12has_partners_badge\x18\t \x01(\x0b\x32\x1a.google.protobuf.BoolValueB\x03\xe0\x41\x03\x12\x30\n\x07manager\x18\x0c \x01(\x0b\x32\x1a.google.protobuf.BoolValueB\x03\xe0\x41\x03\x12\x35\n\x0ctest_account\x18\r \x01(\x0b\x32\x1a.google.protobuf.BoolValueB\x03\xe0\x41\x03\x12W\n\x16\x63\x61ll_reporting_setting\x18\n \x01(\x0b\x32\x37.google.ads.googleads.v4.resources.CallReportingSetting\x12\x66\n\x1b\x63onversion_tracking_setting\x18\x0e \x01(\x0b\x32<.google.ads.googleads.v4.resources.ConversionTrackingSettingB\x03\xe0\x41\x03\x12W\n\x13remarketing_setting\x18\x0f \x01(\x0b\x32\x35.google.ads.googleads.v4.resources.RemarketingSettingB\x03\xe0\x41\x03\x12\xc2\x01\n.pay_per_conversion_eligibility_failure_reasons\x18\x10 \x03(\x0e\x32\x84\x01.google.ads.googleads.v4.enums.CustomerPayPerConversionEligibilityFailureReasonEnum.CustomerPayPerConversionEligibilityFailureReasonB\x03\xe0\x41\x03\x12=\n\x12optimization_score\x18\x11 \x01(\x0b\x32\x1c.google.protobuf.DoubleValueB\x03\xe0\x41\x03:<\xea\x41\x39\n!googleads.googleapis.com/Customer\x12\x14\x63ustomers/{customer}\"\x87\x02\n\x14\x43\x61llReportingSetting\x12:\n\x16\x63\x61ll_reporting_enabled\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.BoolValue\x12\x45\n!call_conversion_reporting_enabled\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.BoolValue\x12l\n\x16\x63\x61ll_conversion_action\x18\t \x01(\x0b\x32\x1c.google.protobuf.StringValueB.\xfa\x41+\n)googleads.googleapis.com/ConversionAction\"\xad\x01\n\x19\x43onversionTrackingSetting\x12@\n\x16\x63onversion_tracking_id\x18\x01 \x01(\x0b\x32\x1b.google.protobuf.Int64ValueB\x03\xe0\x41\x03\x12N\n$cross_account_conversion_tracking_id\x18\x02 \x01(\x0b\x32\x1b.google.protobuf.Int64ValueB\x03\xe0\x41\x03\"W\n\x12RemarketingSetting\x12\x41\n\x16google_global_site_tag\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValueB\x03\xe0\x41\x03\x42\xfa\x01\n%com.google.ads.googleads.v4.resourcesB\rCustomerProtoP\x01ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v4/resources;resources\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V4.Resources\xca\x02!Google\\Ads\\GoogleAds\\V4\\Resources\xea\x02%Google::Ads::GoogleAds::V4::Resourcesb\x06proto3') + , + dependencies=[google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_customer__pay__per__conversion__eligibility__failure__reason__pb2.DESCRIPTOR,google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_api_dot_resource__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + + +_CUSTOMER = _descriptor.Descriptor( + name='Customer', + full_name='google.ads.googleads.v4.resources.Customer', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.resources.Customer.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005\372A#\n!googleads.googleapis.com/Customer'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='id', full_name='google.ads.googleads.v4.resources.Customer.id', index=1, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='descriptive_name', full_name='google.ads.googleads.v4.resources.Customer.descriptive_name', index=2, + number=4, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='currency_code', full_name='google.ads.googleads.v4.resources.Customer.currency_code', index=3, + number=5, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='time_zone', full_name='google.ads.googleads.v4.resources.Customer.time_zone', index=4, + number=6, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='tracking_url_template', full_name='google.ads.googleads.v4.resources.Customer.tracking_url_template', index=5, + number=7, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='final_url_suffix', full_name='google.ads.googleads.v4.resources.Customer.final_url_suffix', index=6, + number=11, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='auto_tagging_enabled', full_name='google.ads.googleads.v4.resources.Customer.auto_tagging_enabled', index=7, + number=8, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='has_partners_badge', full_name='google.ads.googleads.v4.resources.Customer.has_partners_badge', index=8, + number=9, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='manager', full_name='google.ads.googleads.v4.resources.Customer.manager', index=9, + number=12, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='test_account', full_name='google.ads.googleads.v4.resources.Customer.test_account', index=10, + number=13, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='call_reporting_setting', full_name='google.ads.googleads.v4.resources.Customer.call_reporting_setting', index=11, + number=10, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='conversion_tracking_setting', full_name='google.ads.googleads.v4.resources.Customer.conversion_tracking_setting', index=12, + number=14, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='remarketing_setting', full_name='google.ads.googleads.v4.resources.Customer.remarketing_setting', index=13, + number=15, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='pay_per_conversion_eligibility_failure_reasons', full_name='google.ads.googleads.v4.resources.Customer.pay_per_conversion_eligibility_failure_reasons', index=14, + number=16, type=14, cpp_type=8, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='optimization_score', full_name='google.ads.googleads.v4.resources.Customer.optimization_score', index=15, + number=17, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=_b('\352A9\n!googleads.googleapis.com/Customer\022\024customers/{customer}'), + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=314, + serialized_end=1549, +) + + +_CALLREPORTINGSETTING = _descriptor.Descriptor( + name='CallReportingSetting', + full_name='google.ads.googleads.v4.resources.CallReportingSetting', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='call_reporting_enabled', full_name='google.ads.googleads.v4.resources.CallReportingSetting.call_reporting_enabled', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='call_conversion_reporting_enabled', full_name='google.ads.googleads.v4.resources.CallReportingSetting.call_conversion_reporting_enabled', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='call_conversion_action', full_name='google.ads.googleads.v4.resources.CallReportingSetting.call_conversion_action', index=2, + number=9, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\372A+\n)googleads.googleapis.com/ConversionAction'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1552, + serialized_end=1815, +) + + +_CONVERSIONTRACKINGSETTING = _descriptor.Descriptor( + name='ConversionTrackingSetting', + full_name='google.ads.googleads.v4.resources.ConversionTrackingSetting', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='conversion_tracking_id', full_name='google.ads.googleads.v4.resources.ConversionTrackingSetting.conversion_tracking_id', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='cross_account_conversion_tracking_id', full_name='google.ads.googleads.v4.resources.ConversionTrackingSetting.cross_account_conversion_tracking_id', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1818, + serialized_end=1991, +) + + +_REMARKETINGSETTING = _descriptor.Descriptor( + name='RemarketingSetting', + full_name='google.ads.googleads.v4.resources.RemarketingSetting', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='google_global_site_tag', full_name='google.ads.googleads.v4.resources.RemarketingSetting.google_global_site_tag', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1993, + serialized_end=2080, +) + +_CUSTOMER.fields_by_name['id'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_CUSTOMER.fields_by_name['descriptive_name'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_CUSTOMER.fields_by_name['currency_code'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_CUSTOMER.fields_by_name['time_zone'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_CUSTOMER.fields_by_name['tracking_url_template'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_CUSTOMER.fields_by_name['final_url_suffix'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_CUSTOMER.fields_by_name['auto_tagging_enabled'].message_type = google_dot_protobuf_dot_wrappers__pb2._BOOLVALUE +_CUSTOMER.fields_by_name['has_partners_badge'].message_type = google_dot_protobuf_dot_wrappers__pb2._BOOLVALUE +_CUSTOMER.fields_by_name['manager'].message_type = google_dot_protobuf_dot_wrappers__pb2._BOOLVALUE +_CUSTOMER.fields_by_name['test_account'].message_type = google_dot_protobuf_dot_wrappers__pb2._BOOLVALUE +_CUSTOMER.fields_by_name['call_reporting_setting'].message_type = _CALLREPORTINGSETTING +_CUSTOMER.fields_by_name['conversion_tracking_setting'].message_type = _CONVERSIONTRACKINGSETTING +_CUSTOMER.fields_by_name['remarketing_setting'].message_type = _REMARKETINGSETTING +_CUSTOMER.fields_by_name['pay_per_conversion_eligibility_failure_reasons'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_customer__pay__per__conversion__eligibility__failure__reason__pb2._CUSTOMERPAYPERCONVERSIONELIGIBILITYFAILUREREASONENUM_CUSTOMERPAYPERCONVERSIONELIGIBILITYFAILUREREASON +_CUSTOMER.fields_by_name['optimization_score'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE +_CALLREPORTINGSETTING.fields_by_name['call_reporting_enabled'].message_type = google_dot_protobuf_dot_wrappers__pb2._BOOLVALUE +_CALLREPORTINGSETTING.fields_by_name['call_conversion_reporting_enabled'].message_type = google_dot_protobuf_dot_wrappers__pb2._BOOLVALUE +_CALLREPORTINGSETTING.fields_by_name['call_conversion_action'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_CONVERSIONTRACKINGSETTING.fields_by_name['conversion_tracking_id'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_CONVERSIONTRACKINGSETTING.fields_by_name['cross_account_conversion_tracking_id'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_REMARKETINGSETTING.fields_by_name['google_global_site_tag'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +DESCRIPTOR.message_types_by_name['Customer'] = _CUSTOMER +DESCRIPTOR.message_types_by_name['CallReportingSetting'] = _CALLREPORTINGSETTING +DESCRIPTOR.message_types_by_name['ConversionTrackingSetting'] = _CONVERSIONTRACKINGSETTING +DESCRIPTOR.message_types_by_name['RemarketingSetting'] = _REMARKETINGSETTING +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +Customer = _reflection.GeneratedProtocolMessageType('Customer', (_message.Message,), dict( + DESCRIPTOR = _CUSTOMER, + __module__ = 'google.ads.googleads_v4.proto.resources.customer_pb2' + , + __doc__ = """A customer. + + + Attributes: + resource_name: + Immutable. The resource name of the customer. Customer + resource names have the form: ``customers/{customer_id}`` + id: + Output only. The ID of the customer. + descriptive_name: + Optional, non-unique descriptive name of the customer. + currency_code: + Immutable. The currency in which the account operates. A + subset of the currency codes from the ISO 4217 standard is + supported. + time_zone: + Immutable. The local timezone ID of the customer. + tracking_url_template: + The URL template for constructing a tracking URL out of + parameters. + final_url_suffix: + The URL template for appending params to the final URL + auto_tagging_enabled: + Whether auto-tagging is enabled for the customer. + has_partners_badge: + Output only. Whether the Customer has a Partners program + badge. If the Customer is not associated with the Partners + program, this will be false. For more information, see + https://support.google.com/partners/answer/3125774. + manager: + Output only. Whether the customer is a manager. + test_account: + Output only. Whether the customer is a test account. + call_reporting_setting: + Call reporting setting for a customer. + conversion_tracking_setting: + Output only. Conversion tracking setting for a customer. + remarketing_setting: + Output only. Remarketing setting for a customer. + pay_per_conversion_eligibility_failure_reasons: + Output only. Reasons why the customer is not eligible to use + PaymentMode.CONVERSIONS. If the list is empty, the customer is + eligible. This field is read-only. + optimization_score: + Output only. Optimization score of the customer. Optimization + score is an estimate of how well a customer's campaigns are + set to perform. It ranges from 0% (0.0) to 100% (1.0). See + "About optimization score" at + https://support.google.com/google-ads/answer/9061546. This + field is read-only. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.resources.Customer) + )) +_sym_db.RegisterMessage(Customer) + +CallReportingSetting = _reflection.GeneratedProtocolMessageType('CallReportingSetting', (_message.Message,), dict( + DESCRIPTOR = _CALLREPORTINGSETTING, + __module__ = 'google.ads.googleads_v4.proto.resources.customer_pb2' + , + __doc__ = """Call reporting setting for a customer. + + + Attributes: + call_reporting_enabled: + Enable reporting of phone call events by redirecting them via + Google System. + call_conversion_reporting_enabled: + Whether to enable call conversion reporting. + call_conversion_action: + Customer-level call conversion action to attribute a call + conversion to. If not set a default conversion action is used. + Only in effect when call\_conversion\_reporting\_enabled is + set to true. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.resources.CallReportingSetting) + )) +_sym_db.RegisterMessage(CallReportingSetting) + +ConversionTrackingSetting = _reflection.GeneratedProtocolMessageType('ConversionTrackingSetting', (_message.Message,), dict( + DESCRIPTOR = _CONVERSIONTRACKINGSETTING, + __module__ = 'google.ads.googleads_v4.proto.resources.customer_pb2' + , + __doc__ = """A collection of customer-wide settings related to Google Ads Conversion + Tracking. + + + Attributes: + conversion_tracking_id: + Output only. The conversion tracking id used for this account. + This id is automatically assigned after any conversion + tracking feature is used. If the customer doesn't use + conversion tracking, this is 0. This field is read-only. + cross_account_conversion_tracking_id: + Output only. The conversion tracking id of the customer's + manager. This is set when the customer is opted into cross + account conversion tracking, and it overrides + conversion\_tracking\_id. This field can only be managed + through the Google Ads UI. This field is read-only. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.resources.ConversionTrackingSetting) + )) +_sym_db.RegisterMessage(ConversionTrackingSetting) + +RemarketingSetting = _reflection.GeneratedProtocolMessageType('RemarketingSetting', (_message.Message,), dict( + DESCRIPTOR = _REMARKETINGSETTING, + __module__ = 'google.ads.googleads_v4.proto.resources.customer_pb2' + , + __doc__ = """Remarketing setting for a customer. + + + Attributes: + google_global_site_tag: + Output only. The Google global site tag. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.resources.RemarketingSetting) + )) +_sym_db.RegisterMessage(RemarketingSetting) + + +DESCRIPTOR._options = None +_CUSTOMER.fields_by_name['resource_name']._options = None +_CUSTOMER.fields_by_name['id']._options = None +_CUSTOMER.fields_by_name['currency_code']._options = None +_CUSTOMER.fields_by_name['time_zone']._options = None +_CUSTOMER.fields_by_name['has_partners_badge']._options = None +_CUSTOMER.fields_by_name['manager']._options = None +_CUSTOMER.fields_by_name['test_account']._options = None +_CUSTOMER.fields_by_name['conversion_tracking_setting']._options = None +_CUSTOMER.fields_by_name['remarketing_setting']._options = None +_CUSTOMER.fields_by_name['pay_per_conversion_eligibility_failure_reasons']._options = None +_CUSTOMER.fields_by_name['optimization_score']._options = None +_CUSTOMER._options = None +_CALLREPORTINGSETTING.fields_by_name['call_conversion_action']._options = None +_CONVERSIONTRACKINGSETTING.fields_by_name['conversion_tracking_id']._options = None +_CONVERSIONTRACKINGSETTING.fields_by_name['cross_account_conversion_tracking_id']._options = None +_REMARKETINGSETTING.fields_by_name['google_global_site_tag']._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/resources/paid_organic_search_term_view_pb2_grpc.py b/google/ads/google_ads/v4/proto/resources/customer_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/resources/paid_organic_search_term_view_pb2_grpc.py rename to google/ads/google_ads/v4/proto/resources/customer_pb2_grpc.py diff --git a/google/ads/google_ads/v4/proto/resources/detail_placement_view_pb2.py b/google/ads/google_ads/v4/proto/resources/detail_placement_view_pb2.py new file mode 100644 index 000000000..7790a8698 --- /dev/null +++ b/google/ads/google_ads/v4/proto/resources/detail_placement_view_pb2.py @@ -0,0 +1,152 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/resources/detail_placement_view.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.ads.google_ads.v4.proto.enums import placement_type_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_placement__type__pb2 +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 +from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/resources/detail_placement_view.proto', + package='google.ads.googleads.v4.resources', + syntax='proto3', + serialized_options=_b('\n%com.google.ads.googleads.v4.resourcesB\030DetailPlacementViewProtoP\001ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v4/resources;resources\242\002\003GAA\252\002!Google.Ads.GoogleAds.V4.Resources\312\002!Google\\Ads\\GoogleAds\\V4\\Resources\352\002%Google::Ads::GoogleAds::V4::Resources'), + serialized_pb=_b('\nCgoogle/ads/googleads_v4/proto/resources/detail_placement_view.proto\x12!google.ads.googleads.v4.resources\x1a\x38google/ads/googleads_v4/proto/enums/placement_type.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1cgoogle/api/annotations.proto\"\xa2\x04\n\x13\x44\x65tailPlacementView\x12K\n\rresource_name\x18\x01 \x01(\tB4\xe0\x41\x03\xfa\x41.\n,googleads.googleapis.com/DetailPlacementView\x12\x34\n\tplacement\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValueB\x03\xe0\x41\x03\x12\x37\n\x0c\x64isplay_name\x18\x03 \x01(\x0b\x32\x1c.google.protobuf.StringValueB\x03\xe0\x41\x03\x12\x45\n\x1agroup_placement_target_url\x18\x04 \x01(\x0b\x32\x1c.google.protobuf.StringValueB\x03\xe0\x41\x03\x12\x35\n\ntarget_url\x18\x05 \x01(\x0b\x32\x1c.google.protobuf.StringValueB\x03\xe0\x41\x03\x12[\n\x0eplacement_type\x18\x06 \x01(\x0e\x32>.google.ads.googleads.v4.enums.PlacementTypeEnum.PlacementTypeB\x03\xe0\x41\x03:t\xea\x41q\n,googleads.googleapis.com/DetailPlacementView\x12\x41\x63ustomers/{customer}/detailPlacementViews/{detail_placement_view}B\x85\x02\n%com.google.ads.googleads.v4.resourcesB\x18\x44\x65tailPlacementViewProtoP\x01ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v4/resources;resources\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V4.Resources\xca\x02!Google\\Ads\\GoogleAds\\V4\\Resources\xea\x02%Google::Ads::GoogleAds::V4::Resourcesb\x06proto3') + , + dependencies=[google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_placement__type__pb2.DESCRIPTOR,google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_api_dot_resource__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + + +_DETAILPLACEMENTVIEW = _descriptor.Descriptor( + name='DetailPlacementView', + full_name='google.ads.googleads.v4.resources.DetailPlacementView', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.resources.DetailPlacementView.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003\372A.\n,googleads.googleapis.com/DetailPlacementView'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='placement', full_name='google.ads.googleads.v4.resources.DetailPlacementView.placement', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='display_name', full_name='google.ads.googleads.v4.resources.DetailPlacementView.display_name', index=2, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='group_placement_target_url', full_name='google.ads.googleads.v4.resources.DetailPlacementView.group_placement_target_url', index=3, + number=4, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='target_url', full_name='google.ads.googleads.v4.resources.DetailPlacementView.target_url', index=4, + number=5, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='placement_type', full_name='google.ads.googleads.v4.resources.DetailPlacementView.placement_type', index=5, + number=6, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=_b('\352Aq\n,googleads.googleapis.com/DetailPlacementView\022Acustomers/{customer}/detailPlacementViews/{detail_placement_view}'), + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=287, + serialized_end=833, +) + +_DETAILPLACEMENTVIEW.fields_by_name['placement'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_DETAILPLACEMENTVIEW.fields_by_name['display_name'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_DETAILPLACEMENTVIEW.fields_by_name['group_placement_target_url'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_DETAILPLACEMENTVIEW.fields_by_name['target_url'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_DETAILPLACEMENTVIEW.fields_by_name['placement_type'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_placement__type__pb2._PLACEMENTTYPEENUM_PLACEMENTTYPE +DESCRIPTOR.message_types_by_name['DetailPlacementView'] = _DETAILPLACEMENTVIEW +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +DetailPlacementView = _reflection.GeneratedProtocolMessageType('DetailPlacementView', (_message.Message,), dict( + DESCRIPTOR = _DETAILPLACEMENTVIEW, + __module__ = 'google.ads.googleads_v4.proto.resources.detail_placement_view_pb2' + , + __doc__ = """A view with metrics aggregated by ad group and URL or YouTube video. + + + Attributes: + resource_name: + Output only. The resource name of the detail placement view. + Detail placement view resource names have the form: ``custome + rs/{customer_id}/detailPlacementViews/{ad_group_id}~{base64_pl + acement}`` + placement: + Output only. The automatic placement string at detail level, + e. g. website URL, mobile application ID, or a YouTube video + ID. + display_name: + Output only. The display name is URL name for websites, + YouTube video name for YouTube videos, and translated mobile + app name for mobile apps. + group_placement_target_url: + Output only. URL of the group placement, e.g. domain, link to + the mobile application in app store, or a YouTube channel URL. + target_url: + Output only. URL of the placement, e.g. website, link to the + mobile application in app store, or a YouTube video URL. + placement_type: + Output only. Type of the placement, e.g. Website, YouTube + Video, and Mobile Application. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.resources.DetailPlacementView) + )) +_sym_db.RegisterMessage(DetailPlacementView) + + +DESCRIPTOR._options = None +_DETAILPLACEMENTVIEW.fields_by_name['resource_name']._options = None +_DETAILPLACEMENTVIEW.fields_by_name['placement']._options = None +_DETAILPLACEMENTVIEW.fields_by_name['display_name']._options = None +_DETAILPLACEMENTVIEW.fields_by_name['group_placement_target_url']._options = None +_DETAILPLACEMENTVIEW.fields_by_name['target_url']._options = None +_DETAILPLACEMENTVIEW.fields_by_name['placement_type']._options = None +_DETAILPLACEMENTVIEW._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/resources/parental_status_view_pb2_grpc.py b/google/ads/google_ads/v4/proto/resources/detail_placement_view_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/resources/parental_status_view_pb2_grpc.py rename to google/ads/google_ads/v4/proto/resources/detail_placement_view_pb2_grpc.py diff --git a/google/ads/google_ads/v4/proto/resources/display_keyword_view_pb2.py b/google/ads/google_ads/v4/proto/resources/display_keyword_view_pb2.py new file mode 100644 index 000000000..b9534203c --- /dev/null +++ b/google/ads/google_ads/v4/proto/resources/display_keyword_view_pb2.py @@ -0,0 +1,88 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/resources/display_keyword_view.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/resources/display_keyword_view.proto', + package='google.ads.googleads.v4.resources', + syntax='proto3', + serialized_options=_b('\n%com.google.ads.googleads.v4.resourcesB\027DisplayKeywordViewProtoP\001ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v4/resources;resources\242\002\003GAA\252\002!Google.Ads.GoogleAds.V4.Resources\312\002!Google\\Ads\\GoogleAds\\V4\\Resources\352\002%Google::Ads::GoogleAds::V4::Resources'), + serialized_pb=_b('\nBgoogle/ads/googleads_v4/proto/resources/display_keyword_view.proto\x12!google.ads.googleads.v4.resources\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1cgoogle/api/annotations.proto\"\xd3\x01\n\x12\x44isplayKeywordView\x12J\n\rresource_name\x18\x01 \x01(\tB3\xe0\x41\x03\xfa\x41-\n+googleads.googleapis.com/DisplayKeywordView:q\xea\x41n\n+googleads.googleapis.com/DisplayKeywordView\x12?customers/{customer}/displayKeywordViews/{display_keyword_view}B\x84\x02\n%com.google.ads.googleads.v4.resourcesB\x17\x44isplayKeywordViewProtoP\x01ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v4/resources;resources\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V4.Resources\xca\x02!Google\\Ads\\GoogleAds\\V4\\Resources\xea\x02%Google::Ads::GoogleAds::V4::Resourcesb\x06proto3') + , + dependencies=[google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_api_dot_resource__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + + +_DISPLAYKEYWORDVIEW = _descriptor.Descriptor( + name='DisplayKeywordView', + full_name='google.ads.googleads.v4.resources.DisplayKeywordView', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.resources.DisplayKeywordView.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003\372A-\n+googleads.googleapis.com/DisplayKeywordView'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=_b('\352An\n+googleads.googleapis.com/DisplayKeywordView\022?customers/{customer}/displayKeywordViews/{display_keyword_view}'), + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=196, + serialized_end=407, +) + +DESCRIPTOR.message_types_by_name['DisplayKeywordView'] = _DISPLAYKEYWORDVIEW +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +DisplayKeywordView = _reflection.GeneratedProtocolMessageType('DisplayKeywordView', (_message.Message,), dict( + DESCRIPTOR = _DISPLAYKEYWORDVIEW, + __module__ = 'google.ads.googleads_v4.proto.resources.display_keyword_view_pb2' + , + __doc__ = """A display keyword view. + + + Attributes: + resource_name: + Output only. The resource name of the display keyword view. + Display Keyword view resource names have the form: ``customer + s/{customer_id}/displayKeywordViews/{ad_group_id}~{criterion_i + d}`` + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.resources.DisplayKeywordView) + )) +_sym_db.RegisterMessage(DisplayKeywordView) + + +DESCRIPTOR._options = None +_DISPLAYKEYWORDVIEW.fields_by_name['resource_name']._options = None +_DISPLAYKEYWORDVIEW._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/resources/payments_account_pb2_grpc.py b/google/ads/google_ads/v4/proto/resources/display_keyword_view_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/resources/payments_account_pb2_grpc.py rename to google/ads/google_ads/v4/proto/resources/display_keyword_view_pb2_grpc.py diff --git a/google/ads/google_ads/v4/proto/resources/distance_view_pb2.py b/google/ads/google_ads/v4/proto/resources/distance_view_pb2.py new file mode 100644 index 000000000..6d3397517 --- /dev/null +++ b/google/ads/google_ads/v4/proto/resources/distance_view_pb2.py @@ -0,0 +1,117 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/resources/distance_view.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.ads.google_ads.v4.proto.enums import distance_bucket_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_distance__bucket__pb2 +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 +from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/resources/distance_view.proto', + package='google.ads.googleads.v4.resources', + syntax='proto3', + serialized_options=_b('\n%com.google.ads.googleads.v4.resourcesB\021DistanceViewProtoP\001ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v4/resources;resources\242\002\003GAA\252\002!Google.Ads.GoogleAds.V4.Resources\312\002!Google\\Ads\\GoogleAds\\V4\\Resources\352\002%Google::Ads::GoogleAds::V4::Resources'), + serialized_pb=_b('\n;google/ads/googleads_v4/proto/resources/distance_view.proto\x12!google.ads.googleads.v4.resources\x1a\x39google/ads/googleads_v4/proto/enums/distance_bucket.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1cgoogle/api/annotations.proto\"\xcc\x02\n\x0c\x44istanceView\x12\x44\n\rresource_name\x18\x01 \x01(\tB-\xe0\x41\x03\xfa\x41\'\n%googleads.googleapis.com/DistanceView\x12^\n\x0f\x64istance_bucket\x18\x02 \x01(\x0e\x32@.google.ads.googleads.v4.enums.DistanceBucketEnum.DistanceBucketB\x03\xe0\x41\x03\x12\x36\n\rmetric_system\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.BoolValueB\x03\xe0\x41\x03:^\xea\x41[\n%googleads.googleapis.com/DistanceView\x12\x32\x63ustomers/{customer}/distanceViews/{distance_view}B\xfe\x01\n%com.google.ads.googleads.v4.resourcesB\x11\x44istanceViewProtoP\x01ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v4/resources;resources\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V4.Resources\xca\x02!Google\\Ads\\GoogleAds\\V4\\Resources\xea\x02%Google::Ads::GoogleAds::V4::Resourcesb\x06proto3') + , + dependencies=[google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_distance__bucket__pb2.DESCRIPTOR,google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_api_dot_resource__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + + +_DISTANCEVIEW = _descriptor.Descriptor( + name='DistanceView', + full_name='google.ads.googleads.v4.resources.DistanceView', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.resources.DistanceView.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003\372A\'\n%googleads.googleapis.com/DistanceView'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='distance_bucket', full_name='google.ads.googleads.v4.resources.DistanceView.distance_bucket', index=1, + number=2, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='metric_system', full_name='google.ads.googleads.v4.resources.DistanceView.metric_system', index=2, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=_b('\352A[\n%googleads.googleapis.com/DistanceView\0222customers/{customer}/distanceViews/{distance_view}'), + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=280, + serialized_end=612, +) + +_DISTANCEVIEW.fields_by_name['distance_bucket'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_distance__bucket__pb2._DISTANCEBUCKETENUM_DISTANCEBUCKET +_DISTANCEVIEW.fields_by_name['metric_system'].message_type = google_dot_protobuf_dot_wrappers__pb2._BOOLVALUE +DESCRIPTOR.message_types_by_name['DistanceView'] = _DISTANCEVIEW +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +DistanceView = _reflection.GeneratedProtocolMessageType('DistanceView', (_message.Message,), dict( + DESCRIPTOR = _DISTANCEVIEW, + __module__ = 'google.ads.googleads_v4.proto.resources.distance_view_pb2' + , + __doc__ = """A distance view with metrics aggregated by the user's distance from an + advertiser's location extensions. Each DistanceBucket includes all + impressions that fall within its distance and a single impression will + contribute to the metrics for all DistanceBuckets that include the + user's distance. + + + Attributes: + resource_name: + Output only. The resource name of the distance view. Distance + view resource names have the form: + ``customers/{customer_id}/distanceViews/1~{distance_bucket}`` + distance_bucket: + Output only. Grouping of user distance from location + extensions. + metric_system: + Output only. True if the DistanceBucket is using the metric + system, false otherwise. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.resources.DistanceView) + )) +_sym_db.RegisterMessage(DistanceView) + + +DESCRIPTOR._options = None +_DISTANCEVIEW.fields_by_name['resource_name']._options = None +_DISTANCEVIEW.fields_by_name['distance_bucket']._options = None +_DISTANCEVIEW.fields_by_name['metric_system']._options = None +_DISTANCEVIEW._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/resources/product_bidding_category_constant_pb2_grpc.py b/google/ads/google_ads/v4/proto/resources/distance_view_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/resources/product_bidding_category_constant_pb2_grpc.py rename to google/ads/google_ads/v4/proto/resources/distance_view_pb2_grpc.py diff --git a/google/ads/google_ads/v4/proto/resources/domain_category_pb2.py b/google/ads/google_ads/v4/proto/resources/domain_category_pb2.py new file mode 100644 index 000000000..e6965fbca --- /dev/null +++ b/google/ads/google_ads/v4/proto/resources/domain_category_pb2.py @@ -0,0 +1,194 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/resources/domain_category.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 +from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/resources/domain_category.proto', + package='google.ads.googleads.v4.resources', + syntax='proto3', + serialized_options=_b('\n%com.google.ads.googleads.v4.resourcesB\023DomainCategoryProtoP\001ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v4/resources;resources\242\002\003GAA\252\002!Google.Ads.GoogleAds.V4.Resources\312\002!Google\\Ads\\GoogleAds\\V4\\Resources\352\002%Google::Ads::GoogleAds::V4::Resources'), + serialized_pb=_b('\n=google/ads/googleads_v4/proto/resources/domain_category.proto\x12!google.ads.googleads.v4.resources\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1cgoogle/api/annotations.proto\"\xb0\x05\n\x0e\x44omainCategory\x12\x46\n\rresource_name\x18\x01 \x01(\tB/\xe0\x41\x03\xfa\x41)\n\'googleads.googleapis.com/DomainCategory\x12Y\n\x08\x63\x61mpaign\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValueB)\xe0\x41\x03\xfa\x41#\n!googleads.googleapis.com/Campaign\x12\x33\n\x08\x63\x61tegory\x18\x03 \x01(\x0b\x32\x1c.google.protobuf.StringValueB\x03\xe0\x41\x03\x12\x38\n\rlanguage_code\x18\x04 \x01(\x0b\x32\x1c.google.protobuf.StringValueB\x03\xe0\x41\x03\x12\x31\n\x06\x64omain\x18\x05 \x01(\x0b\x32\x1c.google.protobuf.StringValueB\x03\xe0\x41\x03\x12<\n\x11\x63overage_fraction\x18\x06 \x01(\x0b\x32\x1c.google.protobuf.DoubleValueB\x03\xe0\x41\x03\x12\x37\n\rcategory_rank\x18\x07 \x01(\x0b\x32\x1b.google.protobuf.Int64ValueB\x03\xe0\x41\x03\x12\x35\n\x0chas_children\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.BoolValueB\x03\xe0\x41\x03\x12\x44\n\x1arecommended_cpc_bid_micros\x18\t \x01(\x0b\x32\x1b.google.protobuf.Int64ValueB\x03\xe0\x41\x03:e\xea\x41\x62\n\'googleads.googleapis.com/DomainCategory\x12\x37\x63ustomers/{customer}/domainCategories/{domain_category}B\x80\x02\n%com.google.ads.googleads.v4.resourcesB\x13\x44omainCategoryProtoP\x01ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v4/resources;resources\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V4.Resources\xca\x02!Google\\Ads\\GoogleAds\\V4\\Resources\xea\x02%Google::Ads::GoogleAds::V4::Resourcesb\x06proto3') + , + dependencies=[google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_api_dot_resource__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + + +_DOMAINCATEGORY = _descriptor.Descriptor( + name='DomainCategory', + full_name='google.ads.googleads.v4.resources.DomainCategory', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.resources.DomainCategory.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003\372A)\n\'googleads.googleapis.com/DomainCategory'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='campaign', full_name='google.ads.googleads.v4.resources.DomainCategory.campaign', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003\372A#\n!googleads.googleapis.com/Campaign'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='category', full_name='google.ads.googleads.v4.resources.DomainCategory.category', index=2, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='language_code', full_name='google.ads.googleads.v4.resources.DomainCategory.language_code', index=3, + number=4, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='domain', full_name='google.ads.googleads.v4.resources.DomainCategory.domain', index=4, + number=5, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='coverage_fraction', full_name='google.ads.googleads.v4.resources.DomainCategory.coverage_fraction', index=5, + number=6, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='category_rank', full_name='google.ads.googleads.v4.resources.DomainCategory.category_rank', index=6, + number=7, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='has_children', full_name='google.ads.googleads.v4.resources.DomainCategory.has_children', index=7, + number=8, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='recommended_cpc_bid_micros', full_name='google.ads.googleads.v4.resources.DomainCategory.recommended_cpc_bid_micros', index=8, + number=9, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=_b('\352Ab\n\'googleads.googleapis.com/DomainCategory\0227customers/{customer}/domainCategories/{domain_category}'), + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=223, + serialized_end=911, +) + +_DOMAINCATEGORY.fields_by_name['campaign'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_DOMAINCATEGORY.fields_by_name['category'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_DOMAINCATEGORY.fields_by_name['language_code'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_DOMAINCATEGORY.fields_by_name['domain'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_DOMAINCATEGORY.fields_by_name['coverage_fraction'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE +_DOMAINCATEGORY.fields_by_name['category_rank'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_DOMAINCATEGORY.fields_by_name['has_children'].message_type = google_dot_protobuf_dot_wrappers__pb2._BOOLVALUE +_DOMAINCATEGORY.fields_by_name['recommended_cpc_bid_micros'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +DESCRIPTOR.message_types_by_name['DomainCategory'] = _DOMAINCATEGORY +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +DomainCategory = _reflection.GeneratedProtocolMessageType('DomainCategory', (_message.Message,), dict( + DESCRIPTOR = _DOMAINCATEGORY, + __module__ = 'google.ads.googleads_v4.proto.resources.domain_category_pb2' + , + __doc__ = """A category generated automatically by crawling a domain. If a campaign + uses the DynamicSearchAdsSetting, then domain categories will be + generated for the domain. The categories can be targeted using + WebpageConditionInfo. See: + https://support.google.com/google-ads/answer/2471185 + + + Attributes: + resource_name: + Output only. The resource name of the domain category. Domain + category resource names have the form: ``customers/{customer_ + id}/domainCategories/{campaign_id}~{category_base64}~{language + _code}`` + campaign: + Output only. The campaign this category is recommended for. + category: + Output only. Recommended category for the website domain. e.g. + if you have a website about electronics, the categories could + be "cameras", "televisions", etc. + language_code: + Output only. The language code specifying the language of the + website. e.g. "en" for English. The language can be specified + in the DynamicSearchAdsSetting required for dynamic search + ads. This is the language of the pages from your website that + you want Google Ads to find, create ads for, and match + searches with. + domain: + Output only. The domain for the website. The domain can be + specified in the DynamicSearchAdsSetting required for dynamic + search ads. + coverage_fraction: + Output only. Fraction of pages on your site that this category + matches. + category_rank: + Output only. The position of this category in the set of + categories. Lower numbers indicate a better match for the + domain. null indicates not recommended. + has_children: + Output only. Indicates whether this category has sub- + categories. + recommended_cpc_bid_micros: + Output only. The recommended cost per click for the category. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.resources.DomainCategory) + )) +_sym_db.RegisterMessage(DomainCategory) + + +DESCRIPTOR._options = None +_DOMAINCATEGORY.fields_by_name['resource_name']._options = None +_DOMAINCATEGORY.fields_by_name['campaign']._options = None +_DOMAINCATEGORY.fields_by_name['category']._options = None +_DOMAINCATEGORY.fields_by_name['language_code']._options = None +_DOMAINCATEGORY.fields_by_name['domain']._options = None +_DOMAINCATEGORY.fields_by_name['coverage_fraction']._options = None +_DOMAINCATEGORY.fields_by_name['category_rank']._options = None +_DOMAINCATEGORY.fields_by_name['has_children']._options = None +_DOMAINCATEGORY.fields_by_name['recommended_cpc_bid_micros']._options = None +_DOMAINCATEGORY._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/resources/product_group_view_pb2_grpc.py b/google/ads/google_ads/v4/proto/resources/domain_category_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/resources/product_group_view_pb2_grpc.py rename to google/ads/google_ads/v4/proto/resources/domain_category_pb2_grpc.py diff --git a/google/ads/google_ads/v4/proto/resources/dynamic_search_ads_search_term_view_pb2.py b/google/ads/google_ads/v4/proto/resources/dynamic_search_ads_search_term_view_pb2.py new file mode 100644 index 000000000..d0d02e2ba --- /dev/null +++ b/google/ads/google_ads/v4/proto/resources/dynamic_search_ads_search_term_view_pb2.py @@ -0,0 +1,173 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/resources/dynamic_search_ads_search_term_view.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 +from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/resources/dynamic_search_ads_search_term_view.proto', + package='google.ads.googleads.v4.resources', + syntax='proto3', + serialized_options=_b('\n%com.google.ads.googleads.v4.resourcesB#DynamicSearchAdsSearchTermViewProtoP\001ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v4/resources;resources\242\002\003GAA\252\002!Google.Ads.GoogleAds.V4.Resources\312\002!Google\\Ads\\GoogleAds\\V4\\Resources\352\002%Google::Ads::GoogleAds::V4::Resources'), + serialized_pb=_b('\nQgoogle/ads/googleads_v4/proto/resources/dynamic_search_ads_search_term_view.proto\x12!google.ads.googleads.v4.resources\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1cgoogle/api/annotations.proto\"\xa8\x05\n\x1e\x44ynamicSearchAdsSearchTermView\x12V\n\rresource_name\x18\x01 \x01(\tB?\xe0\x41\x03\xfa\x41\x39\n7googleads.googleapis.com/DynamicSearchAdsSearchTermView\x12\x36\n\x0bsearch_term\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValueB\x03\xe0\x41\x03\x12\x33\n\x08headline\x18\x03 \x01(\x0b\x32\x1c.google.protobuf.StringValueB\x03\xe0\x41\x03\x12\x37\n\x0clanding_page\x18\x04 \x01(\x0b\x32\x1c.google.protobuf.StringValueB\x03\xe0\x41\x03\x12\x33\n\x08page_url\x18\x05 \x01(\x0b\x32\x1c.google.protobuf.StringValueB\x03\xe0\x41\x03\x12=\n\x14has_negative_keyword\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.BoolValueB\x03\xe0\x41\x03\x12=\n\x14has_matching_keyword\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.BoolValueB\x03\xe0\x41\x03\x12\x39\n\x10has_negative_url\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.BoolValueB\x03\xe0\x41\x03:\x99\x01\xea\x41\x95\x01\n7googleads.googleapis.com/DynamicSearchAdsSearchTermView\x12Zcustomers/{customer}/dynamicSearchAdsSearchTermViews/{dynamic_search_ads_search_term_view}B\x90\x02\n%com.google.ads.googleads.v4.resourcesB#DynamicSearchAdsSearchTermViewProtoP\x01ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v4/resources;resources\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V4.Resources\xca\x02!Google\\Ads\\GoogleAds\\V4\\Resources\xea\x02%Google::Ads::GoogleAds::V4::Resourcesb\x06proto3') + , + dependencies=[google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_api_dot_resource__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + + +_DYNAMICSEARCHADSSEARCHTERMVIEW = _descriptor.Descriptor( + name='DynamicSearchAdsSearchTermView', + full_name='google.ads.googleads.v4.resources.DynamicSearchAdsSearchTermView', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.resources.DynamicSearchAdsSearchTermView.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003\372A9\n7googleads.googleapis.com/DynamicSearchAdsSearchTermView'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='search_term', full_name='google.ads.googleads.v4.resources.DynamicSearchAdsSearchTermView.search_term', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='headline', full_name='google.ads.googleads.v4.resources.DynamicSearchAdsSearchTermView.headline', index=2, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='landing_page', full_name='google.ads.googleads.v4.resources.DynamicSearchAdsSearchTermView.landing_page', index=3, + number=4, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='page_url', full_name='google.ads.googleads.v4.resources.DynamicSearchAdsSearchTermView.page_url', index=4, + number=5, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='has_negative_keyword', full_name='google.ads.googleads.v4.resources.DynamicSearchAdsSearchTermView.has_negative_keyword', index=5, + number=6, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='has_matching_keyword', full_name='google.ads.googleads.v4.resources.DynamicSearchAdsSearchTermView.has_matching_keyword', index=6, + number=7, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='has_negative_url', full_name='google.ads.googleads.v4.resources.DynamicSearchAdsSearchTermView.has_negative_url', index=7, + number=8, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=_b('\352A\225\001\n7googleads.googleapis.com/DynamicSearchAdsSearchTermView\022Zcustomers/{customer}/dynamicSearchAdsSearchTermViews/{dynamic_search_ads_search_term_view}'), + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=243, + serialized_end=923, +) + +_DYNAMICSEARCHADSSEARCHTERMVIEW.fields_by_name['search_term'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_DYNAMICSEARCHADSSEARCHTERMVIEW.fields_by_name['headline'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_DYNAMICSEARCHADSSEARCHTERMVIEW.fields_by_name['landing_page'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_DYNAMICSEARCHADSSEARCHTERMVIEW.fields_by_name['page_url'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_DYNAMICSEARCHADSSEARCHTERMVIEW.fields_by_name['has_negative_keyword'].message_type = google_dot_protobuf_dot_wrappers__pb2._BOOLVALUE +_DYNAMICSEARCHADSSEARCHTERMVIEW.fields_by_name['has_matching_keyword'].message_type = google_dot_protobuf_dot_wrappers__pb2._BOOLVALUE +_DYNAMICSEARCHADSSEARCHTERMVIEW.fields_by_name['has_negative_url'].message_type = google_dot_protobuf_dot_wrappers__pb2._BOOLVALUE +DESCRIPTOR.message_types_by_name['DynamicSearchAdsSearchTermView'] = _DYNAMICSEARCHADSSEARCHTERMVIEW +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +DynamicSearchAdsSearchTermView = _reflection.GeneratedProtocolMessageType('DynamicSearchAdsSearchTermView', (_message.Message,), dict( + DESCRIPTOR = _DYNAMICSEARCHADSSEARCHTERMVIEW, + __module__ = 'google.ads.googleads_v4.proto.resources.dynamic_search_ads_search_term_view_pb2' + , + __doc__ = """A dynamic search ads search term view. + + + Attributes: + resource_name: + Output only. The resource name of the dynamic search ads + search term view. Dynamic search ads search term view resource + names have the form: ``customers/{customer_id}/dynamicSearchA + dsSearchTermViews/{ad_group_id}~{search_term_fp}~{headline_fp} + ~{landing_page_fp}~{page_url_fp}`` + search_term: + Output only. Search term This field is read-only. + headline: + Output only. The dynamically generated headline of the Dynamic + Search Ad. This field is read-only. + landing_page: + Output only. The dynamically selected landing page URL of the + impression. This field is read-only. + page_url: + Output only. The URL of page feed item served for the + impression. This field is read-only. + has_negative_keyword: + Output only. True if query matches a negative keyword. This + field is read-only. + has_matching_keyword: + Output only. True if query is added to targeted keywords. + This field is read-only. + has_negative_url: + Output only. True if query matches a negative url. This field + is read-only. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.resources.DynamicSearchAdsSearchTermView) + )) +_sym_db.RegisterMessage(DynamicSearchAdsSearchTermView) + + +DESCRIPTOR._options = None +_DYNAMICSEARCHADSSEARCHTERMVIEW.fields_by_name['resource_name']._options = None +_DYNAMICSEARCHADSSEARCHTERMVIEW.fields_by_name['search_term']._options = None +_DYNAMICSEARCHADSSEARCHTERMVIEW.fields_by_name['headline']._options = None +_DYNAMICSEARCHADSSEARCHTERMVIEW.fields_by_name['landing_page']._options = None +_DYNAMICSEARCHADSSEARCHTERMVIEW.fields_by_name['page_url']._options = None +_DYNAMICSEARCHADSSEARCHTERMVIEW.fields_by_name['has_negative_keyword']._options = None +_DYNAMICSEARCHADSSEARCHTERMVIEW.fields_by_name['has_matching_keyword']._options = None +_DYNAMICSEARCHADSSEARCHTERMVIEW.fields_by_name['has_negative_url']._options = None +_DYNAMICSEARCHADSSEARCHTERMVIEW._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/resources/recommendation_pb2_grpc.py b/google/ads/google_ads/v4/proto/resources/dynamic_search_ads_search_term_view_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/resources/recommendation_pb2_grpc.py rename to google/ads/google_ads/v4/proto/resources/dynamic_search_ads_search_term_view_pb2_grpc.py diff --git a/google/ads/google_ads/v4/proto/resources/expanded_landing_page_view_pb2.py b/google/ads/google_ads/v4/proto/resources/expanded_landing_page_view_pb2.py new file mode 100644 index 000000000..8ef58e0f5 --- /dev/null +++ b/google/ads/google_ads/v4/proto/resources/expanded_landing_page_view_pb2.py @@ -0,0 +1,101 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/resources/expanded_landing_page_view.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 +from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/resources/expanded_landing_page_view.proto', + package='google.ads.googleads.v4.resources', + syntax='proto3', + serialized_options=_b('\n%com.google.ads.googleads.v4.resourcesB\034ExpandedLandingPageViewProtoP\001ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v4/resources;resources\242\002\003GAA\252\002!Google.Ads.GoogleAds.V4.Resources\312\002!Google\\Ads\\GoogleAds\\V4\\Resources\352\002%Google::Ads::GoogleAds::V4::Resources'), + serialized_pb=_b('\nHgoogle/ads/googleads_v4/proto/resources/expanded_landing_page_view.proto\x12!google.ads.googleads.v4.resources\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1cgoogle/api/annotations.proto\"\xad\x02\n\x17\x45xpandedLandingPageView\x12O\n\rresource_name\x18\x01 \x01(\tB8\xe0\x41\x03\xfa\x41\x32\n0googleads.googleapis.com/ExpandedLandingPageView\x12=\n\x12\x65xpanded_final_url\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValueB\x03\xe0\x41\x03:\x81\x01\xea\x41~\n0googleads.googleapis.com/ExpandedLandingPageView\x12Jcustomers/{customer}/expandedLandingPageViews/{expanded_landing_page_view}B\x89\x02\n%com.google.ads.googleads.v4.resourcesB\x1c\x45xpandedLandingPageViewProtoP\x01ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v4/resources;resources\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V4.Resources\xca\x02!Google\\Ads\\GoogleAds\\V4\\Resources\xea\x02%Google::Ads::GoogleAds::V4::Resourcesb\x06proto3') + , + dependencies=[google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_api_dot_resource__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + + +_EXPANDEDLANDINGPAGEVIEW = _descriptor.Descriptor( + name='ExpandedLandingPageView', + full_name='google.ads.googleads.v4.resources.ExpandedLandingPageView', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.resources.ExpandedLandingPageView.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003\372A2\n0googleads.googleapis.com/ExpandedLandingPageView'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='expanded_final_url', full_name='google.ads.googleads.v4.resources.ExpandedLandingPageView.expanded_final_url', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=_b('\352A~\n0googleads.googleapis.com/ExpandedLandingPageView\022Jcustomers/{customer}/expandedLandingPageViews/{expanded_landing_page_view}'), + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=234, + serialized_end=535, +) + +_EXPANDEDLANDINGPAGEVIEW.fields_by_name['expanded_final_url'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +DESCRIPTOR.message_types_by_name['ExpandedLandingPageView'] = _EXPANDEDLANDINGPAGEVIEW +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +ExpandedLandingPageView = _reflection.GeneratedProtocolMessageType('ExpandedLandingPageView', (_message.Message,), dict( + DESCRIPTOR = _EXPANDEDLANDINGPAGEVIEW, + __module__ = 'google.ads.googleads_v4.proto.resources.expanded_landing_page_view_pb2' + , + __doc__ = """A landing page view with metrics aggregated at the expanded final URL + level. + + + Attributes: + resource_name: + Output only. The resource name of the expanded landing page + view. Expanded landing page view resource names have the form: + ``customers/{customer_id}/expandedLandingPageViews/{expanded_f + inal_url_fingerprint}`` + expanded_final_url: + Output only. The final URL that clicks are directed to. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.resources.ExpandedLandingPageView) + )) +_sym_db.RegisterMessage(ExpandedLandingPageView) + + +DESCRIPTOR._options = None +_EXPANDEDLANDINGPAGEVIEW.fields_by_name['resource_name']._options = None +_EXPANDEDLANDINGPAGEVIEW.fields_by_name['expanded_final_url']._options = None +_EXPANDEDLANDINGPAGEVIEW._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/resources/remarketing_action_pb2_grpc.py b/google/ads/google_ads/v4/proto/resources/expanded_landing_page_view_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/resources/remarketing_action_pb2_grpc.py rename to google/ads/google_ads/v4/proto/resources/expanded_landing_page_view_pb2_grpc.py diff --git a/google/ads/google_ads/v4/proto/resources/extension_feed_item_pb2.py b/google/ads/google_ads/v4/proto/resources/extension_feed_item_pb2.py new file mode 100644 index 000000000..36eb325e2 --- /dev/null +++ b/google/ads/google_ads/v4/proto/resources/extension_feed_item_pb2.py @@ -0,0 +1,384 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/resources/extension_feed_item.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.ads.google_ads.v4.proto.common import criteria_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_criteria__pb2 +from google.ads.google_ads.v4.proto.common import extensions_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_extensions__pb2 +from google.ads.google_ads.v4.proto.enums import extension_type_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_extension__type__pb2 +from google.ads.google_ads.v4.proto.enums import feed_item_status_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_feed__item__status__pb2 +from google.ads.google_ads.v4.proto.enums import feed_item_target_device_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_feed__item__target__device__pb2 +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 +from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/resources/extension_feed_item.proto', + package='google.ads.googleads.v4.resources', + syntax='proto3', + serialized_options=_b('\n%com.google.ads.googleads.v4.resourcesB\026ExtensionFeedItemProtoP\001ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v4/resources;resources\242\002\003GAA\252\002!Google.Ads.GoogleAds.V4.Resources\312\002!Google\\Ads\\GoogleAds\\V4\\Resources\352\002%Google::Ads::GoogleAds::V4::Resources'), + serialized_pb=_b('\nAgoogle/ads/googleads_v4/proto/resources/extension_feed_item.proto\x12!google.ads.googleads.v4.resources\x1a\x33google/ads/googleads_v4/proto/common/criteria.proto\x1a\x35google/ads/googleads_v4/proto/common/extensions.proto\x1a\x38google/ads/googleads_v4/proto/enums/extension_type.proto\x1a:google/ads/googleads_v4/proto/enums/feed_item_status.proto\x1a\x41google/ads/googleads_v4/proto/enums/feed_item_target_device.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1cgoogle/api/annotations.proto\"\x84\x10\n\x11\x45xtensionFeedItem\x12I\n\rresource_name\x18\x01 \x01(\tB2\xe0\x41\x05\xfa\x41,\n*googleads.googleapis.com/ExtensionFeedItem\x12,\n\x02id\x18\x18 \x01(\x0b\x32\x1b.google.protobuf.Int64ValueB\x03\xe0\x41\x03\x12[\n\x0e\x65xtension_type\x18\r \x01(\x0e\x32>.google.ads.googleads.v4.enums.ExtensionTypeEnum.ExtensionTypeB\x03\xe0\x41\x03\x12\x35\n\x0fstart_date_time\x18\x05 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x33\n\rend_date_time\x18\x06 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x44\n\x0c\x61\x64_schedules\x18\x10 \x03(\x0b\x32..google.ads.googleads.v4.common.AdScheduleInfo\x12\\\n\x06\x64\x65vice\x18\x11 \x01(\x0e\x32L.google.ads.googleads.v4.enums.FeedItemTargetDeviceEnum.FeedItemTargetDevice\x12s\n\x1ctargeted_geo_target_constant\x18\x14 \x01(\x0b\x32\x1c.google.protobuf.StringValueB/\xfa\x41,\n*googleads.googleapis.com/GeoTargetConstant\x12\x45\n\x10targeted_keyword\x18\x16 \x01(\x0b\x32+.google.ads.googleads.v4.common.KeywordInfo\x12U\n\x06status\x18\x04 \x01(\x0e\x32@.google.ads.googleads.v4.enums.FeedItemStatusEnum.FeedItemStatusB\x03\xe0\x41\x03\x12N\n\x12sitelink_feed_item\x18\x02 \x01(\x0b\x32\x30.google.ads.googleads.v4.common.SitelinkFeedItemH\x00\x12\x61\n\x1cstructured_snippet_feed_item\x18\x03 \x01(\x0b\x32\x39.google.ads.googleads.v4.common.StructuredSnippetFeedItemH\x00\x12\x44\n\rapp_feed_item\x18\x07 \x01(\x0b\x32+.google.ads.googleads.v4.common.AppFeedItemH\x00\x12\x46\n\x0e\x63\x61ll_feed_item\x18\x08 \x01(\x0b\x32,.google.ads.googleads.v4.common.CallFeedItemH\x00\x12L\n\x11\x63\x61llout_feed_item\x18\t \x01(\x0b\x32/.google.ads.googleads.v4.common.CalloutFeedItemH\x00\x12U\n\x16text_message_feed_item\x18\n \x01(\x0b\x32\x33.google.ads.googleads.v4.common.TextMessageFeedItemH\x00\x12H\n\x0fprice_feed_item\x18\x0b \x01(\x0b\x32-.google.ads.googleads.v4.common.PriceFeedItemH\x00\x12P\n\x13promotion_feed_item\x18\x0c \x01(\x0b\x32\x31.google.ads.googleads.v4.common.PromotionFeedItemH\x00\x12S\n\x12location_feed_item\x18\x0e \x01(\x0b\x32\x30.google.ads.googleads.v4.common.LocationFeedItemB\x03\xe0\x41\x03H\x00\x12\x66\n\x1c\x61\x66\x66iliate_location_feed_item\x18\x0f \x01(\x0b\x32\x39.google.ads.googleads.v4.common.AffiliateLocationFeedItemB\x03\xe0\x41\x03H\x00\x12W\n\x17hotel_callout_feed_item\x18\x17 \x01(\x0b\x32\x34.google.ads.googleads.v4.common.HotelCalloutFeedItemH\x00\x12\x61\n\x11targeted_campaign\x18\x12 \x01(\x0b\x32\x1c.google.protobuf.StringValueB&\xfa\x41#\n!googleads.googleapis.com/CampaignH\x01\x12`\n\x11targeted_ad_group\x18\x13 \x01(\x0b\x32\x1c.google.protobuf.StringValueB%\xfa\x41\"\n googleads.googleapis.com/AdGroupH\x01:n\xea\x41k\n*googleads.googleapis.com/ExtensionFeedItem\x12=customers/{customer}/extensionFeedItems/{extension_feed_item}B\x0b\n\textensionB\x1c\n\x1aserving_resource_targetingB\x83\x02\n%com.google.ads.googleads.v4.resourcesB\x16\x45xtensionFeedItemProtoP\x01ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v4/resources;resources\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V4.Resources\xca\x02!Google\\Ads\\GoogleAds\\V4\\Resources\xea\x02%Google::Ads::GoogleAds::V4::Resourcesb\x06proto3') + , + dependencies=[google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_criteria__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_extensions__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_extension__type__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_feed__item__status__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_feed__item__target__device__pb2.DESCRIPTOR,google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_api_dot_resource__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + + +_EXTENSIONFEEDITEM = _descriptor.Descriptor( + name='ExtensionFeedItem', + full_name='google.ads.googleads.v4.resources.ExtensionFeedItem', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.resources.ExtensionFeedItem.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005\372A,\n*googleads.googleapis.com/ExtensionFeedItem'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='id', full_name='google.ads.googleads.v4.resources.ExtensionFeedItem.id', index=1, + number=24, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='extension_type', full_name='google.ads.googleads.v4.resources.ExtensionFeedItem.extension_type', index=2, + number=13, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='start_date_time', full_name='google.ads.googleads.v4.resources.ExtensionFeedItem.start_date_time', index=3, + number=5, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='end_date_time', full_name='google.ads.googleads.v4.resources.ExtensionFeedItem.end_date_time', index=4, + number=6, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='ad_schedules', full_name='google.ads.googleads.v4.resources.ExtensionFeedItem.ad_schedules', index=5, + number=16, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='device', full_name='google.ads.googleads.v4.resources.ExtensionFeedItem.device', index=6, + number=17, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='targeted_geo_target_constant', full_name='google.ads.googleads.v4.resources.ExtensionFeedItem.targeted_geo_target_constant', index=7, + number=20, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\372A,\n*googleads.googleapis.com/GeoTargetConstant'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='targeted_keyword', full_name='google.ads.googleads.v4.resources.ExtensionFeedItem.targeted_keyword', index=8, + number=22, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='status', full_name='google.ads.googleads.v4.resources.ExtensionFeedItem.status', index=9, + number=4, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='sitelink_feed_item', full_name='google.ads.googleads.v4.resources.ExtensionFeedItem.sitelink_feed_item', index=10, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='structured_snippet_feed_item', full_name='google.ads.googleads.v4.resources.ExtensionFeedItem.structured_snippet_feed_item', index=11, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='app_feed_item', full_name='google.ads.googleads.v4.resources.ExtensionFeedItem.app_feed_item', index=12, + number=7, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='call_feed_item', full_name='google.ads.googleads.v4.resources.ExtensionFeedItem.call_feed_item', index=13, + number=8, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='callout_feed_item', full_name='google.ads.googleads.v4.resources.ExtensionFeedItem.callout_feed_item', index=14, + number=9, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='text_message_feed_item', full_name='google.ads.googleads.v4.resources.ExtensionFeedItem.text_message_feed_item', index=15, + number=10, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='price_feed_item', full_name='google.ads.googleads.v4.resources.ExtensionFeedItem.price_feed_item', index=16, + number=11, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='promotion_feed_item', full_name='google.ads.googleads.v4.resources.ExtensionFeedItem.promotion_feed_item', index=17, + number=12, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='location_feed_item', full_name='google.ads.googleads.v4.resources.ExtensionFeedItem.location_feed_item', index=18, + number=14, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='affiliate_location_feed_item', full_name='google.ads.googleads.v4.resources.ExtensionFeedItem.affiliate_location_feed_item', index=19, + number=15, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='hotel_callout_feed_item', full_name='google.ads.googleads.v4.resources.ExtensionFeedItem.hotel_callout_feed_item', index=20, + number=23, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='targeted_campaign', full_name='google.ads.googleads.v4.resources.ExtensionFeedItem.targeted_campaign', index=21, + number=18, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\372A#\n!googleads.googleapis.com/Campaign'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='targeted_ad_group', full_name='google.ads.googleads.v4.resources.ExtensionFeedItem.targeted_ad_group', index=22, + number=19, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\372A\"\n googleads.googleapis.com/AdGroup'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=_b('\352Ak\n*googleads.googleapis.com/ExtensionFeedItem\022=customers/{customer}/extensionFeedItems/{extension_feed_item}'), + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name='extension', full_name='google.ads.googleads.v4.resources.ExtensionFeedItem.extension', + index=0, containing_type=None, fields=[]), + _descriptor.OneofDescriptor( + name='serving_resource_targeting', full_name='google.ads.googleads.v4.resources.ExtensionFeedItem.serving_resource_targeting', + index=1, containing_type=None, fields=[]), + ], + serialized_start=520, + serialized_end=2572, +) + +_EXTENSIONFEEDITEM.fields_by_name['id'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_EXTENSIONFEEDITEM.fields_by_name['extension_type'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_extension__type__pb2._EXTENSIONTYPEENUM_EXTENSIONTYPE +_EXTENSIONFEEDITEM.fields_by_name['start_date_time'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_EXTENSIONFEEDITEM.fields_by_name['end_date_time'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_EXTENSIONFEEDITEM.fields_by_name['ad_schedules'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_criteria__pb2._ADSCHEDULEINFO +_EXTENSIONFEEDITEM.fields_by_name['device'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_feed__item__target__device__pb2._FEEDITEMTARGETDEVICEENUM_FEEDITEMTARGETDEVICE +_EXTENSIONFEEDITEM.fields_by_name['targeted_geo_target_constant'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_EXTENSIONFEEDITEM.fields_by_name['targeted_keyword'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_criteria__pb2._KEYWORDINFO +_EXTENSIONFEEDITEM.fields_by_name['status'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_feed__item__status__pb2._FEEDITEMSTATUSENUM_FEEDITEMSTATUS +_EXTENSIONFEEDITEM.fields_by_name['sitelink_feed_item'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_extensions__pb2._SITELINKFEEDITEM +_EXTENSIONFEEDITEM.fields_by_name['structured_snippet_feed_item'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_extensions__pb2._STRUCTUREDSNIPPETFEEDITEM +_EXTENSIONFEEDITEM.fields_by_name['app_feed_item'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_extensions__pb2._APPFEEDITEM +_EXTENSIONFEEDITEM.fields_by_name['call_feed_item'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_extensions__pb2._CALLFEEDITEM +_EXTENSIONFEEDITEM.fields_by_name['callout_feed_item'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_extensions__pb2._CALLOUTFEEDITEM +_EXTENSIONFEEDITEM.fields_by_name['text_message_feed_item'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_extensions__pb2._TEXTMESSAGEFEEDITEM +_EXTENSIONFEEDITEM.fields_by_name['price_feed_item'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_extensions__pb2._PRICEFEEDITEM +_EXTENSIONFEEDITEM.fields_by_name['promotion_feed_item'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_extensions__pb2._PROMOTIONFEEDITEM +_EXTENSIONFEEDITEM.fields_by_name['location_feed_item'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_extensions__pb2._LOCATIONFEEDITEM +_EXTENSIONFEEDITEM.fields_by_name['affiliate_location_feed_item'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_extensions__pb2._AFFILIATELOCATIONFEEDITEM +_EXTENSIONFEEDITEM.fields_by_name['hotel_callout_feed_item'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_extensions__pb2._HOTELCALLOUTFEEDITEM +_EXTENSIONFEEDITEM.fields_by_name['targeted_campaign'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_EXTENSIONFEEDITEM.fields_by_name['targeted_ad_group'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_EXTENSIONFEEDITEM.oneofs_by_name['extension'].fields.append( + _EXTENSIONFEEDITEM.fields_by_name['sitelink_feed_item']) +_EXTENSIONFEEDITEM.fields_by_name['sitelink_feed_item'].containing_oneof = _EXTENSIONFEEDITEM.oneofs_by_name['extension'] +_EXTENSIONFEEDITEM.oneofs_by_name['extension'].fields.append( + _EXTENSIONFEEDITEM.fields_by_name['structured_snippet_feed_item']) +_EXTENSIONFEEDITEM.fields_by_name['structured_snippet_feed_item'].containing_oneof = _EXTENSIONFEEDITEM.oneofs_by_name['extension'] +_EXTENSIONFEEDITEM.oneofs_by_name['extension'].fields.append( + _EXTENSIONFEEDITEM.fields_by_name['app_feed_item']) +_EXTENSIONFEEDITEM.fields_by_name['app_feed_item'].containing_oneof = _EXTENSIONFEEDITEM.oneofs_by_name['extension'] +_EXTENSIONFEEDITEM.oneofs_by_name['extension'].fields.append( + _EXTENSIONFEEDITEM.fields_by_name['call_feed_item']) +_EXTENSIONFEEDITEM.fields_by_name['call_feed_item'].containing_oneof = _EXTENSIONFEEDITEM.oneofs_by_name['extension'] +_EXTENSIONFEEDITEM.oneofs_by_name['extension'].fields.append( + _EXTENSIONFEEDITEM.fields_by_name['callout_feed_item']) +_EXTENSIONFEEDITEM.fields_by_name['callout_feed_item'].containing_oneof = _EXTENSIONFEEDITEM.oneofs_by_name['extension'] +_EXTENSIONFEEDITEM.oneofs_by_name['extension'].fields.append( + _EXTENSIONFEEDITEM.fields_by_name['text_message_feed_item']) +_EXTENSIONFEEDITEM.fields_by_name['text_message_feed_item'].containing_oneof = _EXTENSIONFEEDITEM.oneofs_by_name['extension'] +_EXTENSIONFEEDITEM.oneofs_by_name['extension'].fields.append( + _EXTENSIONFEEDITEM.fields_by_name['price_feed_item']) +_EXTENSIONFEEDITEM.fields_by_name['price_feed_item'].containing_oneof = _EXTENSIONFEEDITEM.oneofs_by_name['extension'] +_EXTENSIONFEEDITEM.oneofs_by_name['extension'].fields.append( + _EXTENSIONFEEDITEM.fields_by_name['promotion_feed_item']) +_EXTENSIONFEEDITEM.fields_by_name['promotion_feed_item'].containing_oneof = _EXTENSIONFEEDITEM.oneofs_by_name['extension'] +_EXTENSIONFEEDITEM.oneofs_by_name['extension'].fields.append( + _EXTENSIONFEEDITEM.fields_by_name['location_feed_item']) +_EXTENSIONFEEDITEM.fields_by_name['location_feed_item'].containing_oneof = _EXTENSIONFEEDITEM.oneofs_by_name['extension'] +_EXTENSIONFEEDITEM.oneofs_by_name['extension'].fields.append( + _EXTENSIONFEEDITEM.fields_by_name['affiliate_location_feed_item']) +_EXTENSIONFEEDITEM.fields_by_name['affiliate_location_feed_item'].containing_oneof = _EXTENSIONFEEDITEM.oneofs_by_name['extension'] +_EXTENSIONFEEDITEM.oneofs_by_name['extension'].fields.append( + _EXTENSIONFEEDITEM.fields_by_name['hotel_callout_feed_item']) +_EXTENSIONFEEDITEM.fields_by_name['hotel_callout_feed_item'].containing_oneof = _EXTENSIONFEEDITEM.oneofs_by_name['extension'] +_EXTENSIONFEEDITEM.oneofs_by_name['serving_resource_targeting'].fields.append( + _EXTENSIONFEEDITEM.fields_by_name['targeted_campaign']) +_EXTENSIONFEEDITEM.fields_by_name['targeted_campaign'].containing_oneof = _EXTENSIONFEEDITEM.oneofs_by_name['serving_resource_targeting'] +_EXTENSIONFEEDITEM.oneofs_by_name['serving_resource_targeting'].fields.append( + _EXTENSIONFEEDITEM.fields_by_name['targeted_ad_group']) +_EXTENSIONFEEDITEM.fields_by_name['targeted_ad_group'].containing_oneof = _EXTENSIONFEEDITEM.oneofs_by_name['serving_resource_targeting'] +DESCRIPTOR.message_types_by_name['ExtensionFeedItem'] = _EXTENSIONFEEDITEM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +ExtensionFeedItem = _reflection.GeneratedProtocolMessageType('ExtensionFeedItem', (_message.Message,), dict( + DESCRIPTOR = _EXTENSIONFEEDITEM, + __module__ = 'google.ads.googleads_v4.proto.resources.extension_feed_item_pb2' + , + __doc__ = """An extension feed item. + + + Attributes: + resource_name: + Immutable. The resource name of the extension feed item. + Extension feed item resource names have the form: + ``customers/{customer_id}/extensionFeedItems/{feed_item_id}`` + id: + Output only. The ID of this feed item. Read-only. + extension_type: + Output only. The extension type of the extension feed item. + This field is read-only. + start_date_time: + Start time in which this feed item is effective and can begin + serving. The time is in the customer's time zone. The format + is "YYYY-MM-DD HH:MM:SS". Examples: "2018-03-05 09:15:00" or + "2018-02-01 14:34:30" + end_date_time: + End time in which this feed item is no longer effective and + will stop serving. The time is in the customer's time zone. + The format is "YYYY-MM-DD HH:MM:SS". Examples: "2018-03-05 + 09:15:00" or "2018-02-01 14:34:30" + ad_schedules: + List of non-overlapping schedules specifying all time + intervals for which the feed item may serve. There can be a + maximum of 6 schedules per day. + device: + The targeted device. + targeted_geo_target_constant: + The targeted geo target constant. + targeted_keyword: + The targeted keyword. + status: + Output only. Status of the feed item. This field is read-only. + extension: + Extension type. + sitelink_feed_item: + Sitelink extension. + structured_snippet_feed_item: + Structured snippet extension. + app_feed_item: + App extension. + call_feed_item: + Call extension. + callout_feed_item: + Callout extension. + text_message_feed_item: + Text message extension. + price_feed_item: + Price extension. + promotion_feed_item: + Promotion extension. + location_feed_item: + Output only. Location extension. Locations are synced from a + GMB account into a feed. This field is read-only. + affiliate_location_feed_item: + Output only. Affiliate location extension. Feed locations are + populated by Google Ads based on a chain ID. This field is + read-only. + hotel_callout_feed_item: + Hotel Callout extension. + serving_resource_targeting: + Targeting at either the campaign or ad group level. Feed items + that target a campaign or ad group will only serve with that + resource. + targeted_campaign: + The targeted campaign. + targeted_ad_group: + The targeted ad group. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.resources.ExtensionFeedItem) + )) +_sym_db.RegisterMessage(ExtensionFeedItem) + + +DESCRIPTOR._options = None +_EXTENSIONFEEDITEM.fields_by_name['resource_name']._options = None +_EXTENSIONFEEDITEM.fields_by_name['id']._options = None +_EXTENSIONFEEDITEM.fields_by_name['extension_type']._options = None +_EXTENSIONFEEDITEM.fields_by_name['targeted_geo_target_constant']._options = None +_EXTENSIONFEEDITEM.fields_by_name['status']._options = None +_EXTENSIONFEEDITEM.fields_by_name['location_feed_item']._options = None +_EXTENSIONFEEDITEM.fields_by_name['affiliate_location_feed_item']._options = None +_EXTENSIONFEEDITEM.fields_by_name['targeted_campaign']._options = None +_EXTENSIONFEEDITEM.fields_by_name['targeted_ad_group']._options = None +_EXTENSIONFEEDITEM._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/resources/search_term_view_pb2_grpc.py b/google/ads/google_ads/v4/proto/resources/extension_feed_item_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/resources/search_term_view_pb2_grpc.py rename to google/ads/google_ads/v4/proto/resources/extension_feed_item_pb2_grpc.py diff --git a/google/ads/google_ads/v4/proto/resources/feed_item_pb2.py b/google/ads/google_ads/v4/proto/resources/feed_item_pb2.py new file mode 100644 index 000000000..755526bc3 --- /dev/null +++ b/google/ads/google_ads/v4/proto/resources/feed_item_pb2.py @@ -0,0 +1,603 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/resources/feed_item.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.ads.google_ads.v4.proto.common import custom_parameter_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_custom__parameter__pb2 +from google.ads.google_ads.v4.proto.common import feed_common_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_feed__common__pb2 +from google.ads.google_ads.v4.proto.common import policy_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_policy__pb2 +from google.ads.google_ads.v4.proto.enums import feed_item_quality_approval_status_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_feed__item__quality__approval__status__pb2 +from google.ads.google_ads.v4.proto.enums import feed_item_quality_disapproval_reason_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_feed__item__quality__disapproval__reason__pb2 +from google.ads.google_ads.v4.proto.enums import feed_item_status_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_feed__item__status__pb2 +from google.ads.google_ads.v4.proto.enums import feed_item_validation_status_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_feed__item__validation__status__pb2 +from google.ads.google_ads.v4.proto.enums import geo_targeting_restriction_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_geo__targeting__restriction__pb2 +from google.ads.google_ads.v4.proto.enums import placeholder_type_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_placeholder__type__pb2 +from google.ads.google_ads.v4.proto.enums import policy_approval_status_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_policy__approval__status__pb2 +from google.ads.google_ads.v4.proto.enums import policy_review_status_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_policy__review__status__pb2 +from google.ads.google_ads.v4.proto.errors import feed_item_validation_error_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_feed__item__validation__error__pb2 +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 +from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/resources/feed_item.proto', + package='google.ads.googleads.v4.resources', + syntax='proto3', + serialized_options=_b('\n%com.google.ads.googleads.v4.resourcesB\rFeedItemProtoP\001ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v4/resources;resources\242\002\003GAA\252\002!Google.Ads.GoogleAds.V4.Resources\312\002!Google\\Ads\\GoogleAds\\V4\\Resources\352\002%Google::Ads::GoogleAds::V4::Resources'), + serialized_pb=_b('\n7google/ads/googleads_v4/proto/resources/feed_item.proto\x12!google.ads.googleads.v4.resources\x1a;google/ads/googleads_v4/proto/common/custom_parameter.proto\x1a\x36google/ads/googleads_v4/proto/common/feed_common.proto\x1a\x31google/ads/googleads_v4/proto/common/policy.proto\x1aKgoogle/ads/googleads_v4/proto/enums/feed_item_quality_approval_status.proto\x1aNgoogle/ads/googleads_v4/proto/enums/feed_item_quality_disapproval_reason.proto\x1a:google/ads/googleads_v4/proto/enums/feed_item_status.proto\x1a\x45google/ads/googleads_v4/proto/enums/feed_item_validation_status.proto\x1a\x43google/ads/googleads_v4/proto/enums/geo_targeting_restriction.proto\x1a:google/ads/googleads_v4/proto/enums/placeholder_type.proto\x1a@google/ads/googleads_v4/proto/enums/policy_approval_status.proto\x1a>google/ads/googleads_v4/proto/enums/policy_review_status.proto\x1a\x45google/ads/googleads_v4/proto/errors/feed_item_validation_error.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1cgoogle/api/annotations.proto\"\xdd\x06\n\x08\x46\x65\x65\x64Item\x12@\n\rresource_name\x18\x01 \x01(\tB)\xe0\x41\x05\xfa\x41#\n!googleads.googleapis.com/FeedItem\x12Q\n\x04\x66\x65\x65\x64\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValueB%\xe0\x41\x05\xfa\x41\x1f\n\x1dgoogleads.googleapis.com/Feed\x12,\n\x02id\x18\x03 \x01(\x0b\x32\x1b.google.protobuf.Int64ValueB\x03\xe0\x41\x03\x12\x35\n\x0fstart_date_time\x18\x04 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x33\n\rend_date_time\x18\x05 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12S\n\x10\x61ttribute_values\x18\x06 \x03(\x0b\x32\x39.google.ads.googleads.v4.resources.FeedItemAttributeValue\x12u\n\x19geo_targeting_restriction\x18\x07 \x01(\x0e\x32R.google.ads.googleads.v4.enums.GeoTargetingRestrictionEnum.GeoTargetingRestriction\x12N\n\x15url_custom_parameters\x18\x08 \x03(\x0b\x32/.google.ads.googleads.v4.common.CustomParameter\x12U\n\x06status\x18\t \x01(\x0e\x32@.google.ads.googleads.v4.enums.FeedItemStatusEnum.FeedItemStatusB\x03\xe0\x41\x03\x12[\n\x0cpolicy_infos\x18\n \x03(\x0b\x32@.google.ads.googleads.v4.resources.FeedItemPlaceholderPolicyInfoB\x03\xe0\x41\x03:R\xea\x41O\n!googleads.googleapis.com/FeedItem\x12*customers/{customer}/feedItems/{feed_item}\"\xae\x04\n\x16\x46\x65\x65\x64ItemAttributeValue\x12\x36\n\x11\x66\x65\x65\x64_attribute_id\x18\x01 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x32\n\rinteger_value\x18\x02 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x31\n\rboolean_value\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.BoolValue\x12\x32\n\x0cstring_value\x18\x04 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x32\n\x0c\x64ouble_value\x18\x05 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12:\n\x0bprice_value\x18\x06 \x01(\x0b\x32%.google.ads.googleads.v4.common.Money\x12\x33\n\x0einteger_values\x18\x07 \x03(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x32\n\x0e\x62oolean_values\x18\x08 \x03(\x0b\x32\x1a.google.protobuf.BoolValue\x12\x33\n\rstring_values\x18\t \x03(\x0b\x32\x1c.google.protobuf.StringValue\x12\x33\n\rdouble_values\x18\n \x03(\x0b\x32\x1c.google.protobuf.DoubleValue\"\xdf\x07\n\x1d\x46\x65\x65\x64ItemPlaceholderPolicyInfo\x12\x66\n\x15placeholder_type_enum\x18\n \x01(\x0e\x32\x42.google.ads.googleads.v4.enums.PlaceholderTypeEnum.PlaceholderTypeB\x03\xe0\x41\x03\x12\x45\n\x1a\x66\x65\x65\x64_mapping_resource_name\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValueB\x03\xe0\x41\x03\x12\x64\n\rreview_status\x18\x03 \x01(\x0e\x32H.google.ads.googleads.v4.enums.PolicyReviewStatusEnum.PolicyReviewStatusB\x03\xe0\x41\x03\x12j\n\x0f\x61pproval_status\x18\x04 \x01(\x0e\x32L.google.ads.googleads.v4.enums.PolicyApprovalStatusEnum.PolicyApprovalStatusB\x03\xe0\x41\x03\x12S\n\x14policy_topic_entries\x18\x05 \x03(\x0b\x32\x30.google.ads.googleads.v4.common.PolicyTopicEntryB\x03\xe0\x41\x03\x12t\n\x11validation_status\x18\x06 \x01(\x0e\x32T.google.ads.googleads.v4.enums.FeedItemValidationStatusEnum.FeedItemValidationStatusB\x03\xe0\x41\x03\x12Z\n\x11validation_errors\x18\x07 \x03(\x0b\x32:.google.ads.googleads.v4.resources.FeedItemValidationErrorB\x03\xe0\x41\x03\x12\x84\x01\n\x17quality_approval_status\x18\x08 \x01(\x0e\x32^.google.ads.googleads.v4.enums.FeedItemQualityApprovalStatusEnum.FeedItemQualityApprovalStatusB\x03\xe0\x41\x03\x12\x8e\x01\n\x1bquality_disapproval_reasons\x18\t \x03(\x0e\x32\x64.google.ads.googleads.v4.enums.FeedItemQualityDisapprovalReasonEnum.FeedItemQualityDisapprovalReasonB\x03\xe0\x41\x03\"\xba\x02\n\x17\x46\x65\x65\x64ItemValidationError\x12r\n\x10validation_error\x18\x01 \x01(\x0e\x32S.google.ads.googleads.v4.errors.FeedItemValidationErrorEnum.FeedItemValidationErrorB\x03\xe0\x41\x03\x12\x36\n\x0b\x64\x65scription\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValueB\x03\xe0\x41\x03\x12<\n\x12\x66\x65\x65\x64_attribute_ids\x18\x03 \x03(\x0b\x32\x1b.google.protobuf.Int64ValueB\x03\xe0\x41\x03\x12\x35\n\nextra_info\x18\x05 \x01(\x0b\x32\x1c.google.protobuf.StringValueB\x03\xe0\x41\x03\x42\xfa\x01\n%com.google.ads.googleads.v4.resourcesB\rFeedItemProtoP\x01ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v4/resources;resources\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V4.Resources\xca\x02!Google\\Ads\\GoogleAds\\V4\\Resources\xea\x02%Google::Ads::GoogleAds::V4::Resourcesb\x06proto3') + , + dependencies=[google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_custom__parameter__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_feed__common__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_policy__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_feed__item__quality__approval__status__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_feed__item__quality__disapproval__reason__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_feed__item__status__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_feed__item__validation__status__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_geo__targeting__restriction__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_placeholder__type__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_policy__approval__status__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_policy__review__status__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_feed__item__validation__error__pb2.DESCRIPTOR,google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_api_dot_resource__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + + +_FEEDITEM = _descriptor.Descriptor( + name='FeedItem', + full_name='google.ads.googleads.v4.resources.FeedItem', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.resources.FeedItem.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005\372A#\n!googleads.googleapis.com/FeedItem'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='feed', full_name='google.ads.googleads.v4.resources.FeedItem.feed', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005\372A\037\n\035googleads.googleapis.com/Feed'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='id', full_name='google.ads.googleads.v4.resources.FeedItem.id', index=2, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='start_date_time', full_name='google.ads.googleads.v4.resources.FeedItem.start_date_time', index=3, + number=4, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='end_date_time', full_name='google.ads.googleads.v4.resources.FeedItem.end_date_time', index=4, + number=5, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='attribute_values', full_name='google.ads.googleads.v4.resources.FeedItem.attribute_values', index=5, + number=6, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='geo_targeting_restriction', full_name='google.ads.googleads.v4.resources.FeedItem.geo_targeting_restriction', index=6, + number=7, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='url_custom_parameters', full_name='google.ads.googleads.v4.resources.FeedItem.url_custom_parameters', index=7, + number=8, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='status', full_name='google.ads.googleads.v4.resources.FeedItem.status', index=8, + number=9, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='policy_infos', full_name='google.ads.googleads.v4.resources.FeedItem.policy_infos', index=9, + number=10, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=_b('\352AO\n!googleads.googleapis.com/FeedItem\022*customers/{customer}/feedItems/{feed_item}'), + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1003, + serialized_end=1864, +) + + +_FEEDITEMATTRIBUTEVALUE = _descriptor.Descriptor( + name='FeedItemAttributeValue', + full_name='google.ads.googleads.v4.resources.FeedItemAttributeValue', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='feed_attribute_id', full_name='google.ads.googleads.v4.resources.FeedItemAttributeValue.feed_attribute_id', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='integer_value', full_name='google.ads.googleads.v4.resources.FeedItemAttributeValue.integer_value', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='boolean_value', full_name='google.ads.googleads.v4.resources.FeedItemAttributeValue.boolean_value', index=2, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='string_value', full_name='google.ads.googleads.v4.resources.FeedItemAttributeValue.string_value', index=3, + number=4, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='double_value', full_name='google.ads.googleads.v4.resources.FeedItemAttributeValue.double_value', index=4, + number=5, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='price_value', full_name='google.ads.googleads.v4.resources.FeedItemAttributeValue.price_value', index=5, + number=6, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='integer_values', full_name='google.ads.googleads.v4.resources.FeedItemAttributeValue.integer_values', index=6, + number=7, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='boolean_values', full_name='google.ads.googleads.v4.resources.FeedItemAttributeValue.boolean_values', index=7, + number=8, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='string_values', full_name='google.ads.googleads.v4.resources.FeedItemAttributeValue.string_values', index=8, + number=9, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='double_values', full_name='google.ads.googleads.v4.resources.FeedItemAttributeValue.double_values', index=9, + number=10, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1867, + serialized_end=2425, +) + + +_FEEDITEMPLACEHOLDERPOLICYINFO = _descriptor.Descriptor( + name='FeedItemPlaceholderPolicyInfo', + full_name='google.ads.googleads.v4.resources.FeedItemPlaceholderPolicyInfo', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='placeholder_type_enum', full_name='google.ads.googleads.v4.resources.FeedItemPlaceholderPolicyInfo.placeholder_type_enum', index=0, + number=10, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='feed_mapping_resource_name', full_name='google.ads.googleads.v4.resources.FeedItemPlaceholderPolicyInfo.feed_mapping_resource_name', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='review_status', full_name='google.ads.googleads.v4.resources.FeedItemPlaceholderPolicyInfo.review_status', index=2, + number=3, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='approval_status', full_name='google.ads.googleads.v4.resources.FeedItemPlaceholderPolicyInfo.approval_status', index=3, + number=4, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='policy_topic_entries', full_name='google.ads.googleads.v4.resources.FeedItemPlaceholderPolicyInfo.policy_topic_entries', index=4, + number=5, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='validation_status', full_name='google.ads.googleads.v4.resources.FeedItemPlaceholderPolicyInfo.validation_status', index=5, + number=6, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='validation_errors', full_name='google.ads.googleads.v4.resources.FeedItemPlaceholderPolicyInfo.validation_errors', index=6, + number=7, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='quality_approval_status', full_name='google.ads.googleads.v4.resources.FeedItemPlaceholderPolicyInfo.quality_approval_status', index=7, + number=8, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='quality_disapproval_reasons', full_name='google.ads.googleads.v4.resources.FeedItemPlaceholderPolicyInfo.quality_disapproval_reasons', index=8, + number=9, type=14, cpp_type=8, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=2428, + serialized_end=3419, +) + + +_FEEDITEMVALIDATIONERROR = _descriptor.Descriptor( + name='FeedItemValidationError', + full_name='google.ads.googleads.v4.resources.FeedItemValidationError', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='validation_error', full_name='google.ads.googleads.v4.resources.FeedItemValidationError.validation_error', index=0, + number=1, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='description', full_name='google.ads.googleads.v4.resources.FeedItemValidationError.description', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='feed_attribute_ids', full_name='google.ads.googleads.v4.resources.FeedItemValidationError.feed_attribute_ids', index=2, + number=3, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='extra_info', full_name='google.ads.googleads.v4.resources.FeedItemValidationError.extra_info', index=3, + number=5, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=3422, + serialized_end=3736, +) + +_FEEDITEM.fields_by_name['feed'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_FEEDITEM.fields_by_name['id'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_FEEDITEM.fields_by_name['start_date_time'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_FEEDITEM.fields_by_name['end_date_time'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_FEEDITEM.fields_by_name['attribute_values'].message_type = _FEEDITEMATTRIBUTEVALUE +_FEEDITEM.fields_by_name['geo_targeting_restriction'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_geo__targeting__restriction__pb2._GEOTARGETINGRESTRICTIONENUM_GEOTARGETINGRESTRICTION +_FEEDITEM.fields_by_name['url_custom_parameters'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_custom__parameter__pb2._CUSTOMPARAMETER +_FEEDITEM.fields_by_name['status'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_feed__item__status__pb2._FEEDITEMSTATUSENUM_FEEDITEMSTATUS +_FEEDITEM.fields_by_name['policy_infos'].message_type = _FEEDITEMPLACEHOLDERPOLICYINFO +_FEEDITEMATTRIBUTEVALUE.fields_by_name['feed_attribute_id'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_FEEDITEMATTRIBUTEVALUE.fields_by_name['integer_value'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_FEEDITEMATTRIBUTEVALUE.fields_by_name['boolean_value'].message_type = google_dot_protobuf_dot_wrappers__pb2._BOOLVALUE +_FEEDITEMATTRIBUTEVALUE.fields_by_name['string_value'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_FEEDITEMATTRIBUTEVALUE.fields_by_name['double_value'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE +_FEEDITEMATTRIBUTEVALUE.fields_by_name['price_value'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_feed__common__pb2._MONEY +_FEEDITEMATTRIBUTEVALUE.fields_by_name['integer_values'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_FEEDITEMATTRIBUTEVALUE.fields_by_name['boolean_values'].message_type = google_dot_protobuf_dot_wrappers__pb2._BOOLVALUE +_FEEDITEMATTRIBUTEVALUE.fields_by_name['string_values'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_FEEDITEMATTRIBUTEVALUE.fields_by_name['double_values'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE +_FEEDITEMPLACEHOLDERPOLICYINFO.fields_by_name['placeholder_type_enum'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_placeholder__type__pb2._PLACEHOLDERTYPEENUM_PLACEHOLDERTYPE +_FEEDITEMPLACEHOLDERPOLICYINFO.fields_by_name['feed_mapping_resource_name'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_FEEDITEMPLACEHOLDERPOLICYINFO.fields_by_name['review_status'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_policy__review__status__pb2._POLICYREVIEWSTATUSENUM_POLICYREVIEWSTATUS +_FEEDITEMPLACEHOLDERPOLICYINFO.fields_by_name['approval_status'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_policy__approval__status__pb2._POLICYAPPROVALSTATUSENUM_POLICYAPPROVALSTATUS +_FEEDITEMPLACEHOLDERPOLICYINFO.fields_by_name['policy_topic_entries'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_policy__pb2._POLICYTOPICENTRY +_FEEDITEMPLACEHOLDERPOLICYINFO.fields_by_name['validation_status'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_feed__item__validation__status__pb2._FEEDITEMVALIDATIONSTATUSENUM_FEEDITEMVALIDATIONSTATUS +_FEEDITEMPLACEHOLDERPOLICYINFO.fields_by_name['validation_errors'].message_type = _FEEDITEMVALIDATIONERROR +_FEEDITEMPLACEHOLDERPOLICYINFO.fields_by_name['quality_approval_status'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_feed__item__quality__approval__status__pb2._FEEDITEMQUALITYAPPROVALSTATUSENUM_FEEDITEMQUALITYAPPROVALSTATUS +_FEEDITEMPLACEHOLDERPOLICYINFO.fields_by_name['quality_disapproval_reasons'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_feed__item__quality__disapproval__reason__pb2._FEEDITEMQUALITYDISAPPROVALREASONENUM_FEEDITEMQUALITYDISAPPROVALREASON +_FEEDITEMVALIDATIONERROR.fields_by_name['validation_error'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_errors_dot_feed__item__validation__error__pb2._FEEDITEMVALIDATIONERRORENUM_FEEDITEMVALIDATIONERROR +_FEEDITEMVALIDATIONERROR.fields_by_name['description'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_FEEDITEMVALIDATIONERROR.fields_by_name['feed_attribute_ids'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_FEEDITEMVALIDATIONERROR.fields_by_name['extra_info'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +DESCRIPTOR.message_types_by_name['FeedItem'] = _FEEDITEM +DESCRIPTOR.message_types_by_name['FeedItemAttributeValue'] = _FEEDITEMATTRIBUTEVALUE +DESCRIPTOR.message_types_by_name['FeedItemPlaceholderPolicyInfo'] = _FEEDITEMPLACEHOLDERPOLICYINFO +DESCRIPTOR.message_types_by_name['FeedItemValidationError'] = _FEEDITEMVALIDATIONERROR +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +FeedItem = _reflection.GeneratedProtocolMessageType('FeedItem', (_message.Message,), dict( + DESCRIPTOR = _FEEDITEM, + __module__ = 'google.ads.googleads_v4.proto.resources.feed_item_pb2' + , + __doc__ = """A feed item. + + + Attributes: + resource_name: + Immutable. The resource name of the feed item. Feed item + resource names have the form: + ``customers/{customer_id}/feedItems/{feed_id}~{feed_item_id}`` + feed: + Immutable. The feed to which this feed item belongs. + id: + Output only. The ID of this feed item. + start_date_time: + Start time in which this feed item is effective and can begin + serving. The time is in the customer's time zone. The format + is "YYYY-MM-DD HH:MM:SS". Examples: "2018-03-05 09:15:00" or + "2018-02-01 14:34:30" + end_date_time: + End time in which this feed item is no longer effective and + will stop serving. The time is in the customer's time zone. + The format is "YYYY-MM-DD HH:MM:SS". Examples: "2018-03-05 + 09:15:00" or "2018-02-01 14:34:30" + attribute_values: + The feed item's attribute values. + geo_targeting_restriction: + Geo targeting restriction specifies the type of location that + can be used for targeting. + url_custom_parameters: + The list of mappings used to substitute custom parameter tags + in a ``tracking_url_template``, ``final_urls``, or + ``mobile_final_urls``. + status: + Output only. Status of the feed item. This field is read-only. + policy_infos: + Output only. List of info about a feed item's validation and + approval state for active feed mappings. There will be an + entry in the list for each type of feed mapping associated + with the feed, e.g. a feed with a sitelink and a call feed + mapping would cause every feed item associated with that feed + to have an entry in this list for both sitelink and call. This + field is read-only. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.resources.FeedItem) + )) +_sym_db.RegisterMessage(FeedItem) + +FeedItemAttributeValue = _reflection.GeneratedProtocolMessageType('FeedItemAttributeValue', (_message.Message,), dict( + DESCRIPTOR = _FEEDITEMATTRIBUTEVALUE, + __module__ = 'google.ads.googleads_v4.proto.resources.feed_item_pb2' + , + __doc__ = """A feed item attribute value. + + + Attributes: + feed_attribute_id: + Id of the feed attribute for which the value is associated + with. + integer_value: + Int64 value. Should be set if feed\_attribute\_id refers to a + feed attribute of type INT64. + boolean_value: + Bool value. Should be set if feed\_attribute\_id refers to a + feed attribute of type BOOLEAN. + string_value: + String value. Should be set if feed\_attribute\_id refers to a + feed attribute of type STRING, URL or DATE\_TIME. For STRING + the maximum length is 1500 characters. For URL the maximum + length is 2076 characters. For DATE\_TIME the string must be + in the format "YYYYMMDD HHMMSS". + double_value: + Double value. Should be set if feed\_attribute\_id refers to a + feed attribute of type DOUBLE. + price_value: + Price value. Should be set if feed\_attribute\_id refers to a + feed attribute of type PRICE. + integer_values: + Repeated int64 value. Should be set if feed\_attribute\_id + refers to a feed attribute of type INT64\_LIST. + boolean_values: + Repeated bool value. Should be set if feed\_attribute\_id + refers to a feed attribute of type BOOLEAN\_LIST. + string_values: + Repeated string value. Should be set if feed\_attribute\_id + refers to a feed attribute of type STRING\_LIST, URL\_LIST or + DATE\_TIME\_LIST. For STRING\_LIST and URL\_LIST the total + size of the list in bytes may not exceed 3000. For + DATE\_TIME\_LIST the number of elements may not exceed 200. + For STRING\_LIST the maximum length of each string element is + 1500 characters. For URL\_LIST the maximum length is 2076 + characters. For DATE\_TIME the format of the string must be + the same as start and end time for the feed item. + double_values: + Repeated double value. Should be set if feed\_attribute\_id + refers to a feed attribute of type DOUBLE\_LIST. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.resources.FeedItemAttributeValue) + )) +_sym_db.RegisterMessage(FeedItemAttributeValue) + +FeedItemPlaceholderPolicyInfo = _reflection.GeneratedProtocolMessageType('FeedItemPlaceholderPolicyInfo', (_message.Message,), dict( + DESCRIPTOR = _FEEDITEMPLACEHOLDERPOLICYINFO, + __module__ = 'google.ads.googleads_v4.proto.resources.feed_item_pb2' + , + __doc__ = """Policy, validation, and quality approval info for a feed item for the + specified placeholder type. + + + Attributes: + placeholder_type_enum: + Output only. The placeholder type. + feed_mapping_resource_name: + Output only. The FeedMapping that contains the placeholder + type. + review_status: + Output only. Where the placeholder type is in the review + process. + approval_status: + Output only. The overall approval status of the placeholder + type, calculated based on the status of its individual policy + topic entries. + policy_topic_entries: + Output only. The list of policy findings for the placeholder + type. + validation_status: + Output only. The validation status of the palceholder type. + validation_errors: + Output only. List of placeholder type validation errors. + quality_approval_status: + Output only. Placeholder type quality evaluation approval + status. + quality_disapproval_reasons: + Output only. List of placeholder type quality evaluation + disapproval reasons. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.resources.FeedItemPlaceholderPolicyInfo) + )) +_sym_db.RegisterMessage(FeedItemPlaceholderPolicyInfo) + +FeedItemValidationError = _reflection.GeneratedProtocolMessageType('FeedItemValidationError', (_message.Message,), dict( + DESCRIPTOR = _FEEDITEMVALIDATIONERROR, + __module__ = 'google.ads.googleads_v4.proto.resources.feed_item_pb2' + , + __doc__ = """Stores a validation error and the set of offending feed attributes which + together are responsible for causing a feed item validation error. + + + Attributes: + validation_error: + Output only. Error code indicating what validation error was + triggered. The description of the error can be found in the + 'description' field. + description: + Output only. The description of the validation error. + feed_attribute_ids: + Output only. Set of feed attributes in the feed item flagged + during validation. If empty, no specific feed attributes can + be associated with the error (e.g. error across the entire + feed item). + extra_info: + Output only. Any extra information related to this error which + is not captured by validation\_error and feed\_attribute\_id + (e.g. placeholder field IDs when feed\_attribute\_id is not + mapped). Note that extra\_info is not localized. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.resources.FeedItemValidationError) + )) +_sym_db.RegisterMessage(FeedItemValidationError) + + +DESCRIPTOR._options = None +_FEEDITEM.fields_by_name['resource_name']._options = None +_FEEDITEM.fields_by_name['feed']._options = None +_FEEDITEM.fields_by_name['id']._options = None +_FEEDITEM.fields_by_name['status']._options = None +_FEEDITEM.fields_by_name['policy_infos']._options = None +_FEEDITEM._options = None +_FEEDITEMPLACEHOLDERPOLICYINFO.fields_by_name['placeholder_type_enum']._options = None +_FEEDITEMPLACEHOLDERPOLICYINFO.fields_by_name['feed_mapping_resource_name']._options = None +_FEEDITEMPLACEHOLDERPOLICYINFO.fields_by_name['review_status']._options = None +_FEEDITEMPLACEHOLDERPOLICYINFO.fields_by_name['approval_status']._options = None +_FEEDITEMPLACEHOLDERPOLICYINFO.fields_by_name['policy_topic_entries']._options = None +_FEEDITEMPLACEHOLDERPOLICYINFO.fields_by_name['validation_status']._options = None +_FEEDITEMPLACEHOLDERPOLICYINFO.fields_by_name['validation_errors']._options = None +_FEEDITEMPLACEHOLDERPOLICYINFO.fields_by_name['quality_approval_status']._options = None +_FEEDITEMPLACEHOLDERPOLICYINFO.fields_by_name['quality_disapproval_reasons']._options = None +_FEEDITEMVALIDATIONERROR.fields_by_name['validation_error']._options = None +_FEEDITEMVALIDATIONERROR.fields_by_name['description']._options = None +_FEEDITEMVALIDATIONERROR.fields_by_name['feed_attribute_ids']._options = None +_FEEDITEMVALIDATIONERROR.fields_by_name['extra_info']._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/resources/shared_criterion_pb2_grpc.py b/google/ads/google_ads/v4/proto/resources/feed_item_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/resources/shared_criterion_pb2_grpc.py rename to google/ads/google_ads/v4/proto/resources/feed_item_pb2_grpc.py diff --git a/google/ads/google_ads/v4/proto/resources/feed_item_target_pb2.py b/google/ads/google_ads/v4/proto/resources/feed_item_target_pb2.py new file mode 100644 index 000000000..d28b28771 --- /dev/null +++ b/google/ads/google_ads/v4/proto/resources/feed_item_target_pb2.py @@ -0,0 +1,230 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/resources/feed_item_target.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.ads.google_ads.v4.proto.common import criteria_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_criteria__pb2 +from google.ads.google_ads.v4.proto.enums import feed_item_target_device_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_feed__item__target__device__pb2 +from google.ads.google_ads.v4.proto.enums import feed_item_target_status_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_feed__item__target__status__pb2 +from google.ads.google_ads.v4.proto.enums import feed_item_target_type_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_feed__item__target__type__pb2 +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 +from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/resources/feed_item_target.proto', + package='google.ads.googleads.v4.resources', + syntax='proto3', + serialized_options=_b('\n%com.google.ads.googleads.v4.resourcesB\023FeedItemTargetProtoP\001ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v4/resources;resources\242\002\003GAA\252\002!Google.Ads.GoogleAds.V4.Resources\312\002!Google\\Ads\\GoogleAds\\V4\\Resources\352\002%Google::Ads::GoogleAds::V4::Resources'), + serialized_pb=_b('\n>google/ads/googleads_v4/proto/resources/feed_item_target.proto\x12!google.ads.googleads.v4.resources\x1a\x33google/ads/googleads_v4/proto/common/criteria.proto\x1a\x41google/ads/googleads_v4/proto/enums/feed_item_target_device.proto\x1a\x41google/ads/googleads_v4/proto/enums/feed_item_target_status.proto\x1a?google/ads/googleads_v4/proto/enums/feed_item_target_type.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1cgoogle/api/annotations.proto\"\xd5\x08\n\x0e\x46\x65\x65\x64ItemTarget\x12\x46\n\rresource_name\x18\x01 \x01(\tB/\xe0\x41\x05\xfa\x41)\n\'googleads.googleapis.com/FeedItemTarget\x12Z\n\tfeed_item\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValueB)\xe0\x41\x05\xfa\x41#\n!googleads.googleapis.com/FeedItem\x12l\n\x15\x66\x65\x65\x64_item_target_type\x18\x03 \x01(\x0e\x32H.google.ads.googleads.v4.enums.FeedItemTargetTypeEnum.FeedItemTargetTypeB\x03\xe0\x41\x03\x12=\n\x13\x66\x65\x65\x64_item_target_id\x18\x06 \x01(\x0b\x32\x1b.google.protobuf.Int64ValueB\x03\xe0\x41\x03\x12\x61\n\x06status\x18\x0b \x01(\x0e\x32L.google.ads.googleads.v4.enums.FeedItemTargetStatusEnum.FeedItemTargetStatusB\x03\xe0\x41\x03\x12[\n\x08\x63\x61mpaign\x18\x04 \x01(\x0b\x32\x1c.google.protobuf.StringValueB)\xe0\x41\x05\xfa\x41#\n!googleads.googleapis.com/CampaignH\x00\x12Z\n\x08\x61\x64_group\x18\x05 \x01(\x0b\x32\x1c.google.protobuf.StringValueB(\xe0\x41\x05\xfa\x41\"\n googleads.googleapis.com/AdGroupH\x00\x12\x43\n\x07keyword\x18\x07 \x01(\x0b\x32+.google.ads.googleads.v4.common.KeywordInfoB\x03\xe0\x41\x05H\x00\x12o\n\x13geo_target_constant\x18\x08 \x01(\x0b\x32\x1c.google.protobuf.StringValueB2\xe0\x41\x05\xfa\x41,\n*googleads.googleapis.com/GeoTargetConstantH\x00\x12\x63\n\x06\x64\x65vice\x18\t \x01(\x0e\x32L.google.ads.googleads.v4.enums.FeedItemTargetDeviceEnum.FeedItemTargetDeviceB\x03\xe0\x41\x05H\x00\x12J\n\x0b\x61\x64_schedule\x18\n \x01(\x0b\x32..google.ads.googleads.v4.common.AdScheduleInfoB\x03\xe0\x41\x05H\x00:e\xea\x41\x62\n\'googleads.googleapis.com/FeedItemTarget\x12\x37\x63ustomers/{customer}/feedItemTargets/{feed_item_target}B\x08\n\x06targetB\x80\x02\n%com.google.ads.googleads.v4.resourcesB\x13\x46\x65\x65\x64ItemTargetProtoP\x01ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v4/resources;resources\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V4.Resources\xca\x02!Google\\Ads\\GoogleAds\\V4\\Resources\xea\x02%Google::Ads::GoogleAds::V4::Resourcesb\x06proto3') + , + dependencies=[google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_criteria__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_feed__item__target__device__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_feed__item__target__status__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_feed__item__target__type__pb2.DESCRIPTOR,google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_api_dot_resource__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + + +_FEEDITEMTARGET = _descriptor.Descriptor( + name='FeedItemTarget', + full_name='google.ads.googleads.v4.resources.FeedItemTarget', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.resources.FeedItemTarget.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005\372A)\n\'googleads.googleapis.com/FeedItemTarget'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='feed_item', full_name='google.ads.googleads.v4.resources.FeedItemTarget.feed_item', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005\372A#\n!googleads.googleapis.com/FeedItem'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='feed_item_target_type', full_name='google.ads.googleads.v4.resources.FeedItemTarget.feed_item_target_type', index=2, + number=3, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='feed_item_target_id', full_name='google.ads.googleads.v4.resources.FeedItemTarget.feed_item_target_id', index=3, + number=6, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='status', full_name='google.ads.googleads.v4.resources.FeedItemTarget.status', index=4, + number=11, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='campaign', full_name='google.ads.googleads.v4.resources.FeedItemTarget.campaign', index=5, + number=4, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005\372A#\n!googleads.googleapis.com/Campaign'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='ad_group', full_name='google.ads.googleads.v4.resources.FeedItemTarget.ad_group', index=6, + number=5, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005\372A\"\n googleads.googleapis.com/AdGroup'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='keyword', full_name='google.ads.googleads.v4.resources.FeedItemTarget.keyword', index=7, + number=7, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='geo_target_constant', full_name='google.ads.googleads.v4.resources.FeedItemTarget.geo_target_constant', index=8, + number=8, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005\372A,\n*googleads.googleapis.com/GeoTargetConstant'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='device', full_name='google.ads.googleads.v4.resources.FeedItemTarget.device', index=9, + number=9, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='ad_schedule', full_name='google.ads.googleads.v4.resources.FeedItemTarget.ad_schedule', index=10, + number=10, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=_b('\352Ab\n\'googleads.googleapis.com/FeedItemTarget\0227customers/{customer}/feedItemTargets/{feed_item_target}'), + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name='target', full_name='google.ads.googleads.v4.resources.FeedItemTarget.target', + index=0, containing_type=None, fields=[]), + ], + serialized_start=476, + serialized_end=1585, +) + +_FEEDITEMTARGET.fields_by_name['feed_item'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_FEEDITEMTARGET.fields_by_name['feed_item_target_type'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_feed__item__target__type__pb2._FEEDITEMTARGETTYPEENUM_FEEDITEMTARGETTYPE +_FEEDITEMTARGET.fields_by_name['feed_item_target_id'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_FEEDITEMTARGET.fields_by_name['status'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_feed__item__target__status__pb2._FEEDITEMTARGETSTATUSENUM_FEEDITEMTARGETSTATUS +_FEEDITEMTARGET.fields_by_name['campaign'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_FEEDITEMTARGET.fields_by_name['ad_group'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_FEEDITEMTARGET.fields_by_name['keyword'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_criteria__pb2._KEYWORDINFO +_FEEDITEMTARGET.fields_by_name['geo_target_constant'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_FEEDITEMTARGET.fields_by_name['device'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_feed__item__target__device__pb2._FEEDITEMTARGETDEVICEENUM_FEEDITEMTARGETDEVICE +_FEEDITEMTARGET.fields_by_name['ad_schedule'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_criteria__pb2._ADSCHEDULEINFO +_FEEDITEMTARGET.oneofs_by_name['target'].fields.append( + _FEEDITEMTARGET.fields_by_name['campaign']) +_FEEDITEMTARGET.fields_by_name['campaign'].containing_oneof = _FEEDITEMTARGET.oneofs_by_name['target'] +_FEEDITEMTARGET.oneofs_by_name['target'].fields.append( + _FEEDITEMTARGET.fields_by_name['ad_group']) +_FEEDITEMTARGET.fields_by_name['ad_group'].containing_oneof = _FEEDITEMTARGET.oneofs_by_name['target'] +_FEEDITEMTARGET.oneofs_by_name['target'].fields.append( + _FEEDITEMTARGET.fields_by_name['keyword']) +_FEEDITEMTARGET.fields_by_name['keyword'].containing_oneof = _FEEDITEMTARGET.oneofs_by_name['target'] +_FEEDITEMTARGET.oneofs_by_name['target'].fields.append( + _FEEDITEMTARGET.fields_by_name['geo_target_constant']) +_FEEDITEMTARGET.fields_by_name['geo_target_constant'].containing_oneof = _FEEDITEMTARGET.oneofs_by_name['target'] +_FEEDITEMTARGET.oneofs_by_name['target'].fields.append( + _FEEDITEMTARGET.fields_by_name['device']) +_FEEDITEMTARGET.fields_by_name['device'].containing_oneof = _FEEDITEMTARGET.oneofs_by_name['target'] +_FEEDITEMTARGET.oneofs_by_name['target'].fields.append( + _FEEDITEMTARGET.fields_by_name['ad_schedule']) +_FEEDITEMTARGET.fields_by_name['ad_schedule'].containing_oneof = _FEEDITEMTARGET.oneofs_by_name['target'] +DESCRIPTOR.message_types_by_name['FeedItemTarget'] = _FEEDITEMTARGET +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +FeedItemTarget = _reflection.GeneratedProtocolMessageType('FeedItemTarget', (_message.Message,), dict( + DESCRIPTOR = _FEEDITEMTARGET, + __module__ = 'google.ads.googleads_v4.proto.resources.feed_item_target_pb2' + , + __doc__ = """A feed item target. + + + Attributes: + resource_name: + Immutable. The resource name of the feed item target. Feed + item target resource names have the form: ``customers/{custome + r_id}/feedItemTargets/{feed_id}~{feed_item_id}~{feed_item_targ + et_type}~{feed_item_target_id}`` + feed_item: + Immutable. The feed item to which this feed item target + belongs. + feed_item_target_type: + Output only. The target type of this feed item target. This + field is read-only. + feed_item_target_id: + Output only. The ID of the targeted resource. This field is + read-only. + status: + Output only. Status of the feed item target. This field is + read-only. + target: + The targeted resource. + campaign: + Immutable. The targeted campaign. + ad_group: + Immutable. The targeted ad group. + keyword: + Immutable. The targeted keyword. + geo_target_constant: + Immutable. The targeted geo target constant resource name. + device: + Immutable. The targeted device. + ad_schedule: + Immutable. The targeted schedule. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.resources.FeedItemTarget) + )) +_sym_db.RegisterMessage(FeedItemTarget) + + +DESCRIPTOR._options = None +_FEEDITEMTARGET.fields_by_name['resource_name']._options = None +_FEEDITEMTARGET.fields_by_name['feed_item']._options = None +_FEEDITEMTARGET.fields_by_name['feed_item_target_type']._options = None +_FEEDITEMTARGET.fields_by_name['feed_item_target_id']._options = None +_FEEDITEMTARGET.fields_by_name['status']._options = None +_FEEDITEMTARGET.fields_by_name['campaign']._options = None +_FEEDITEMTARGET.fields_by_name['ad_group']._options = None +_FEEDITEMTARGET.fields_by_name['keyword']._options = None +_FEEDITEMTARGET.fields_by_name['geo_target_constant']._options = None +_FEEDITEMTARGET.fields_by_name['device']._options = None +_FEEDITEMTARGET.fields_by_name['ad_schedule']._options = None +_FEEDITEMTARGET._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/resources/shared_set_pb2_grpc.py b/google/ads/google_ads/v4/proto/resources/feed_item_target_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/resources/shared_set_pb2_grpc.py rename to google/ads/google_ads/v4/proto/resources/feed_item_target_pb2_grpc.py diff --git a/google/ads/google_ads/v4/proto/resources/feed_mapping_pb2.py b/google/ads/google_ads/v4/proto/resources/feed_mapping_pb2.py new file mode 100644 index 000000000..33977fbaf --- /dev/null +++ b/google/ads/google_ads/v4/proto/resources/feed_mapping_pb2.py @@ -0,0 +1,553 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/resources/feed_mapping.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.ads.google_ads.v4.proto.enums import ad_customizer_placeholder_field_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_ad__customizer__placeholder__field__pb2 +from google.ads.google_ads.v4.proto.enums import affiliate_location_placeholder_field_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_affiliate__location__placeholder__field__pb2 +from google.ads.google_ads.v4.proto.enums import app_placeholder_field_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_app__placeholder__field__pb2 +from google.ads.google_ads.v4.proto.enums import call_placeholder_field_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_call__placeholder__field__pb2 +from google.ads.google_ads.v4.proto.enums import callout_placeholder_field_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_callout__placeholder__field__pb2 +from google.ads.google_ads.v4.proto.enums import custom_placeholder_field_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_custom__placeholder__field__pb2 +from google.ads.google_ads.v4.proto.enums import dsa_page_feed_criterion_field_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_dsa__page__feed__criterion__field__pb2 +from google.ads.google_ads.v4.proto.enums import education_placeholder_field_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_education__placeholder__field__pb2 +from google.ads.google_ads.v4.proto.enums import feed_mapping_criterion_type_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_feed__mapping__criterion__type__pb2 +from google.ads.google_ads.v4.proto.enums import feed_mapping_status_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_feed__mapping__status__pb2 +from google.ads.google_ads.v4.proto.enums import flight_placeholder_field_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_flight__placeholder__field__pb2 +from google.ads.google_ads.v4.proto.enums import hotel_placeholder_field_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_hotel__placeholder__field__pb2 +from google.ads.google_ads.v4.proto.enums import job_placeholder_field_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_job__placeholder__field__pb2 +from google.ads.google_ads.v4.proto.enums import local_placeholder_field_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_local__placeholder__field__pb2 +from google.ads.google_ads.v4.proto.enums import location_extension_targeting_criterion_field_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_location__extension__targeting__criterion__field__pb2 +from google.ads.google_ads.v4.proto.enums import location_placeholder_field_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_location__placeholder__field__pb2 +from google.ads.google_ads.v4.proto.enums import message_placeholder_field_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_message__placeholder__field__pb2 +from google.ads.google_ads.v4.proto.enums import placeholder_type_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_placeholder__type__pb2 +from google.ads.google_ads.v4.proto.enums import price_placeholder_field_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_price__placeholder__field__pb2 +from google.ads.google_ads.v4.proto.enums import promotion_placeholder_field_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_promotion__placeholder__field__pb2 +from google.ads.google_ads.v4.proto.enums import real_estate_placeholder_field_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_real__estate__placeholder__field__pb2 +from google.ads.google_ads.v4.proto.enums import sitelink_placeholder_field_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_sitelink__placeholder__field__pb2 +from google.ads.google_ads.v4.proto.enums import structured_snippet_placeholder_field_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_structured__snippet__placeholder__field__pb2 +from google.ads.google_ads.v4.proto.enums import travel_placeholder_field_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_travel__placeholder__field__pb2 +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 +from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/resources/feed_mapping.proto', + package='google.ads.googleads.v4.resources', + syntax='proto3', + serialized_options=_b('\n%com.google.ads.googleads.v4.resourcesB\020FeedMappingProtoP\001ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v4/resources;resources\242\002\003GAA\252\002!Google.Ads.GoogleAds.V4.Resources\312\002!Google\\Ads\\GoogleAds\\V4\\Resources\352\002%Google::Ads::GoogleAds::V4::Resources'), + serialized_pb=_b('\n:google/ads/googleads_v4/proto/resources/feed_mapping.proto\x12!google.ads.googleads.v4.resources\x1aIgoogle/ads/googleads_v4/proto/enums/ad_customizer_placeholder_field.proto\x1aNgoogle/ads/googleads_v4/proto/enums/affiliate_location_placeholder_field.proto\x1a?google/ads/googleads_v4/proto/enums/app_placeholder_field.proto\x1a@google/ads/googleads_v4/proto/enums/call_placeholder_field.proto\x1a\x43google/ads/googleads_v4/proto/enums/callout_placeholder_field.proto\x1a\x42google/ads/googleads_v4/proto/enums/custom_placeholder_field.proto\x1aGgoogle/ads/googleads_v4/proto/enums/dsa_page_feed_criterion_field.proto\x1a\x45google/ads/googleads_v4/proto/enums/education_placeholder_field.proto\x1a\x45google/ads/googleads_v4/proto/enums/feed_mapping_criterion_type.proto\x1a=google/ads/googleads_v4/proto/enums/feed_mapping_status.proto\x1a\x42google/ads/googleads_v4/proto/enums/flight_placeholder_field.proto\x1a\x41google/ads/googleads_v4/proto/enums/hotel_placeholder_field.proto\x1a?google/ads/googleads_v4/proto/enums/job_placeholder_field.proto\x1a\x41google/ads/googleads_v4/proto/enums/local_placeholder_field.proto\x1aVgoogle/ads/googleads_v4/proto/enums/location_extension_targeting_criterion_field.proto\x1a\x44google/ads/googleads_v4/proto/enums/location_placeholder_field.proto\x1a\x43google/ads/googleads_v4/proto/enums/message_placeholder_field.proto\x1a:google/ads/googleads_v4/proto/enums/placeholder_type.proto\x1a\x41google/ads/googleads_v4/proto/enums/price_placeholder_field.proto\x1a\x45google/ads/googleads_v4/proto/enums/promotion_placeholder_field.proto\x1aGgoogle/ads/googleads_v4/proto/enums/real_estate_placeholder_field.proto\x1a\x44google/ads/googleads_v4/proto/enums/sitelink_placeholder_field.proto\x1aNgoogle/ads/googleads_v4/proto/enums/structured_snippet_placeholder_field.proto\x1a\x42google/ads/googleads_v4/proto/enums/travel_placeholder_field.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1cgoogle/api/annotations.proto\"\xa4\x05\n\x0b\x46\x65\x65\x64Mapping\x12\x43\n\rresource_name\x18\x01 \x01(\tB,\xe0\x41\x05\xfa\x41&\n$googleads.googleapis.com/FeedMapping\x12Q\n\x04\x66\x65\x65\x64\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValueB%\xe0\x41\x05\xfa\x41\x1f\n\x1dgoogleads.googleapis.com/Feed\x12_\n\x18\x61ttribute_field_mappings\x18\x05 \x03(\x0b\x32\x38.google.ads.googleads.v4.resources.AttributeFieldMappingB\x03\xe0\x41\x05\x12[\n\x06status\x18\x06 \x01(\x0e\x32\x46.google.ads.googleads.v4.enums.FeedMappingStatusEnum.FeedMappingStatusB\x03\xe0\x41\x03\x12\x63\n\x10placeholder_type\x18\x03 \x01(\x0e\x32\x42.google.ads.googleads.v4.enums.PlaceholderTypeEnum.PlaceholderTypeB\x03\xe0\x41\x05H\x00\x12s\n\x0e\x63riterion_type\x18\x04 \x01(\x0e\x32T.google.ads.googleads.v4.enums.FeedMappingCriterionTypeEnum.FeedMappingCriterionTypeB\x03\xe0\x41\x05H\x00:[\xea\x41X\n$googleads.googleapis.com/FeedMapping\x12\x30\x63ustomers/{customer}/feedMappings/{feed_mapping}B\x08\n\x06target\"\xde\x14\n\x15\x41ttributeFieldMapping\x12;\n\x11\x66\x65\x65\x64_attribute_id\x18\x01 \x01(\x0b\x32\x1b.google.protobuf.Int64ValueB\x03\xe0\x41\x05\x12\x32\n\x08\x66ield_id\x18\x02 \x01(\x0b\x32\x1b.google.protobuf.Int64ValueB\x03\xe0\x41\x03\x12s\n\x0esitelink_field\x18\x03 \x01(\x0e\x32T.google.ads.googleads.v4.enums.SitelinkPlaceholderFieldEnum.SitelinkPlaceholderFieldB\x03\xe0\x41\x05H\x00\x12g\n\ncall_field\x18\x04 \x01(\x0e\x32L.google.ads.googleads.v4.enums.CallPlaceholderFieldEnum.CallPlaceholderFieldB\x03\xe0\x41\x05H\x00\x12\x64\n\tapp_field\x18\x05 \x01(\x0e\x32J.google.ads.googleads.v4.enums.AppPlaceholderFieldEnum.AppPlaceholderFieldB\x03\xe0\x41\x05H\x00\x12s\n\x0elocation_field\x18\x06 \x01(\x0e\x32T.google.ads.googleads.v4.enums.LocationPlaceholderFieldEnum.LocationPlaceholderFieldB\x03\xe0\x41\x03H\x00\x12\x8f\x01\n\x18\x61\x66\x66iliate_location_field\x18\x07 \x01(\x0e\x32\x66.google.ads.googleads.v4.enums.AffiliateLocationPlaceholderFieldEnum.AffiliateLocationPlaceholderFieldB\x03\xe0\x41\x03H\x00\x12p\n\rcallout_field\x18\x08 \x01(\x0e\x32R.google.ads.googleads.v4.enums.CalloutPlaceholderFieldEnum.CalloutPlaceholderFieldB\x03\xe0\x41\x05H\x00\x12\x8f\x01\n\x18structured_snippet_field\x18\t \x01(\x0e\x32\x66.google.ads.googleads.v4.enums.StructuredSnippetPlaceholderFieldEnum.StructuredSnippetPlaceholderFieldB\x03\xe0\x41\x05H\x00\x12p\n\rmessage_field\x18\n \x01(\x0e\x32R.google.ads.googleads.v4.enums.MessagePlaceholderFieldEnum.MessagePlaceholderFieldB\x03\xe0\x41\x05H\x00\x12j\n\x0bprice_field\x18\x0b \x01(\x0e\x32N.google.ads.googleads.v4.enums.PricePlaceholderFieldEnum.PricePlaceholderFieldB\x03\xe0\x41\x05H\x00\x12v\n\x0fpromotion_field\x18\x0c \x01(\x0e\x32V.google.ads.googleads.v4.enums.PromotionPlaceholderFieldEnum.PromotionPlaceholderFieldB\x03\xe0\x41\x05H\x00\x12\x80\x01\n\x13\x61\x64_customizer_field\x18\r \x01(\x0e\x32\\.google.ads.googleads.v4.enums.AdCustomizerPlaceholderFieldEnum.AdCustomizerPlaceholderFieldB\x03\xe0\x41\x05H\x00\x12z\n\x13\x64sa_page_feed_field\x18\x0e \x01(\x0e\x32V.google.ads.googleads.v4.enums.DsaPageFeedCriterionFieldEnum.DsaPageFeedCriterionFieldB\x03\xe0\x41\x05H\x00\x12\xa7\x01\n\"location_extension_targeting_field\x18\x0f \x01(\x0e\x32t.google.ads.googleads.v4.enums.LocationExtensionTargetingCriterionFieldEnum.LocationExtensionTargetingCriterionFieldB\x03\xe0\x41\x05H\x00\x12v\n\x0f\x65\x64ucation_field\x18\x10 \x01(\x0e\x32V.google.ads.googleads.v4.enums.EducationPlaceholderFieldEnum.EducationPlaceholderFieldB\x03\xe0\x41\x05H\x00\x12m\n\x0c\x66light_field\x18\x11 \x01(\x0e\x32P.google.ads.googleads.v4.enums.FlightPlaceholderFieldEnum.FlightPlaceholderFieldB\x03\xe0\x41\x05H\x00\x12m\n\x0c\x63ustom_field\x18\x12 \x01(\x0e\x32P.google.ads.googleads.v4.enums.CustomPlaceholderFieldEnum.CustomPlaceholderFieldB\x03\xe0\x41\x05H\x00\x12j\n\x0bhotel_field\x18\x13 \x01(\x0e\x32N.google.ads.googleads.v4.enums.HotelPlaceholderFieldEnum.HotelPlaceholderFieldB\x03\xe0\x41\x05H\x00\x12z\n\x11real_estate_field\x18\x14 \x01(\x0e\x32X.google.ads.googleads.v4.enums.RealEstatePlaceholderFieldEnum.RealEstatePlaceholderFieldB\x03\xe0\x41\x05H\x00\x12m\n\x0ctravel_field\x18\x15 \x01(\x0e\x32P.google.ads.googleads.v4.enums.TravelPlaceholderFieldEnum.TravelPlaceholderFieldB\x03\xe0\x41\x05H\x00\x12j\n\x0blocal_field\x18\x16 \x01(\x0e\x32N.google.ads.googleads.v4.enums.LocalPlaceholderFieldEnum.LocalPlaceholderFieldB\x03\xe0\x41\x05H\x00\x12\x64\n\tjob_field\x18\x17 \x01(\x0e\x32J.google.ads.googleads.v4.enums.JobPlaceholderFieldEnum.JobPlaceholderFieldB\x03\xe0\x41\x05H\x00\x42\x07\n\x05\x66ieldB\xfd\x01\n%com.google.ads.googleads.v4.resourcesB\x10\x46\x65\x65\x64MappingProtoP\x01ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v4/resources;resources\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V4.Resources\xca\x02!Google\\Ads\\GoogleAds\\V4\\Resources\xea\x02%Google::Ads::GoogleAds::V4::Resourcesb\x06proto3') + , + dependencies=[google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_ad__customizer__placeholder__field__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_affiliate__location__placeholder__field__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_app__placeholder__field__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_call__placeholder__field__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_callout__placeholder__field__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_custom__placeholder__field__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_dsa__page__feed__criterion__field__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_education__placeholder__field__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_feed__mapping__criterion__type__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_feed__mapping__status__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_flight__placeholder__field__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_hotel__placeholder__field__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_job__placeholder__field__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_local__placeholder__field__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_location__extension__targeting__criterion__field__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_location__placeholder__field__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_message__placeholder__field__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_placeholder__type__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_price__placeholder__field__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_promotion__placeholder__field__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_real__estate__placeholder__field__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_sitelink__placeholder__field__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_structured__snippet__placeholder__field__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_travel__placeholder__field__pb2.DESCRIPTOR,google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_api_dot_resource__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + + +_FEEDMAPPING = _descriptor.Descriptor( + name='FeedMapping', + full_name='google.ads.googleads.v4.resources.FeedMapping', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.resources.FeedMapping.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005\372A&\n$googleads.googleapis.com/FeedMapping'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='feed', full_name='google.ads.googleads.v4.resources.FeedMapping.feed', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005\372A\037\n\035googleads.googleapis.com/Feed'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='attribute_field_mappings', full_name='google.ads.googleads.v4.resources.FeedMapping.attribute_field_mappings', index=2, + number=5, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='status', full_name='google.ads.googleads.v4.resources.FeedMapping.status', index=3, + number=6, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='placeholder_type', full_name='google.ads.googleads.v4.resources.FeedMapping.placeholder_type', index=4, + number=3, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='criterion_type', full_name='google.ads.googleads.v4.resources.FeedMapping.criterion_type', index=5, + number=4, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=_b('\352AX\n$googleads.googleapis.com/FeedMapping\0220customers/{customer}/feedMappings/{feed_mapping}'), + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name='target', full_name='google.ads.googleads.v4.resources.FeedMapping.target', + index=0, containing_type=None, fields=[]), + ], + serialized_start=1904, + serialized_end=2580, +) + + +_ATTRIBUTEFIELDMAPPING = _descriptor.Descriptor( + name='AttributeFieldMapping', + full_name='google.ads.googleads.v4.resources.AttributeFieldMapping', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='feed_attribute_id', full_name='google.ads.googleads.v4.resources.AttributeFieldMapping.feed_attribute_id', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='field_id', full_name='google.ads.googleads.v4.resources.AttributeFieldMapping.field_id', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='sitelink_field', full_name='google.ads.googleads.v4.resources.AttributeFieldMapping.sitelink_field', index=2, + number=3, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='call_field', full_name='google.ads.googleads.v4.resources.AttributeFieldMapping.call_field', index=3, + number=4, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='app_field', full_name='google.ads.googleads.v4.resources.AttributeFieldMapping.app_field', index=4, + number=5, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='location_field', full_name='google.ads.googleads.v4.resources.AttributeFieldMapping.location_field', index=5, + number=6, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='affiliate_location_field', full_name='google.ads.googleads.v4.resources.AttributeFieldMapping.affiliate_location_field', index=6, + number=7, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='callout_field', full_name='google.ads.googleads.v4.resources.AttributeFieldMapping.callout_field', index=7, + number=8, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='structured_snippet_field', full_name='google.ads.googleads.v4.resources.AttributeFieldMapping.structured_snippet_field', index=8, + number=9, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='message_field', full_name='google.ads.googleads.v4.resources.AttributeFieldMapping.message_field', index=9, + number=10, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='price_field', full_name='google.ads.googleads.v4.resources.AttributeFieldMapping.price_field', index=10, + number=11, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='promotion_field', full_name='google.ads.googleads.v4.resources.AttributeFieldMapping.promotion_field', index=11, + number=12, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='ad_customizer_field', full_name='google.ads.googleads.v4.resources.AttributeFieldMapping.ad_customizer_field', index=12, + number=13, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='dsa_page_feed_field', full_name='google.ads.googleads.v4.resources.AttributeFieldMapping.dsa_page_feed_field', index=13, + number=14, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='location_extension_targeting_field', full_name='google.ads.googleads.v4.resources.AttributeFieldMapping.location_extension_targeting_field', index=14, + number=15, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='education_field', full_name='google.ads.googleads.v4.resources.AttributeFieldMapping.education_field', index=15, + number=16, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='flight_field', full_name='google.ads.googleads.v4.resources.AttributeFieldMapping.flight_field', index=16, + number=17, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='custom_field', full_name='google.ads.googleads.v4.resources.AttributeFieldMapping.custom_field', index=17, + number=18, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='hotel_field', full_name='google.ads.googleads.v4.resources.AttributeFieldMapping.hotel_field', index=18, + number=19, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='real_estate_field', full_name='google.ads.googleads.v4.resources.AttributeFieldMapping.real_estate_field', index=19, + number=20, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='travel_field', full_name='google.ads.googleads.v4.resources.AttributeFieldMapping.travel_field', index=20, + number=21, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='local_field', full_name='google.ads.googleads.v4.resources.AttributeFieldMapping.local_field', index=21, + number=22, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='job_field', full_name='google.ads.googleads.v4.resources.AttributeFieldMapping.job_field', index=22, + number=23, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name='field', full_name='google.ads.googleads.v4.resources.AttributeFieldMapping.field', + index=0, containing_type=None, fields=[]), + ], + serialized_start=2583, + serialized_end=5237, +) + +_FEEDMAPPING.fields_by_name['feed'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_FEEDMAPPING.fields_by_name['attribute_field_mappings'].message_type = _ATTRIBUTEFIELDMAPPING +_FEEDMAPPING.fields_by_name['status'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_feed__mapping__status__pb2._FEEDMAPPINGSTATUSENUM_FEEDMAPPINGSTATUS +_FEEDMAPPING.fields_by_name['placeholder_type'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_placeholder__type__pb2._PLACEHOLDERTYPEENUM_PLACEHOLDERTYPE +_FEEDMAPPING.fields_by_name['criterion_type'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_feed__mapping__criterion__type__pb2._FEEDMAPPINGCRITERIONTYPEENUM_FEEDMAPPINGCRITERIONTYPE +_FEEDMAPPING.oneofs_by_name['target'].fields.append( + _FEEDMAPPING.fields_by_name['placeholder_type']) +_FEEDMAPPING.fields_by_name['placeholder_type'].containing_oneof = _FEEDMAPPING.oneofs_by_name['target'] +_FEEDMAPPING.oneofs_by_name['target'].fields.append( + _FEEDMAPPING.fields_by_name['criterion_type']) +_FEEDMAPPING.fields_by_name['criterion_type'].containing_oneof = _FEEDMAPPING.oneofs_by_name['target'] +_ATTRIBUTEFIELDMAPPING.fields_by_name['feed_attribute_id'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_ATTRIBUTEFIELDMAPPING.fields_by_name['field_id'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_ATTRIBUTEFIELDMAPPING.fields_by_name['sitelink_field'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_sitelink__placeholder__field__pb2._SITELINKPLACEHOLDERFIELDENUM_SITELINKPLACEHOLDERFIELD +_ATTRIBUTEFIELDMAPPING.fields_by_name['call_field'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_call__placeholder__field__pb2._CALLPLACEHOLDERFIELDENUM_CALLPLACEHOLDERFIELD +_ATTRIBUTEFIELDMAPPING.fields_by_name['app_field'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_app__placeholder__field__pb2._APPPLACEHOLDERFIELDENUM_APPPLACEHOLDERFIELD +_ATTRIBUTEFIELDMAPPING.fields_by_name['location_field'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_location__placeholder__field__pb2._LOCATIONPLACEHOLDERFIELDENUM_LOCATIONPLACEHOLDERFIELD +_ATTRIBUTEFIELDMAPPING.fields_by_name['affiliate_location_field'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_affiliate__location__placeholder__field__pb2._AFFILIATELOCATIONPLACEHOLDERFIELDENUM_AFFILIATELOCATIONPLACEHOLDERFIELD +_ATTRIBUTEFIELDMAPPING.fields_by_name['callout_field'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_callout__placeholder__field__pb2._CALLOUTPLACEHOLDERFIELDENUM_CALLOUTPLACEHOLDERFIELD +_ATTRIBUTEFIELDMAPPING.fields_by_name['structured_snippet_field'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_structured__snippet__placeholder__field__pb2._STRUCTUREDSNIPPETPLACEHOLDERFIELDENUM_STRUCTUREDSNIPPETPLACEHOLDERFIELD +_ATTRIBUTEFIELDMAPPING.fields_by_name['message_field'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_message__placeholder__field__pb2._MESSAGEPLACEHOLDERFIELDENUM_MESSAGEPLACEHOLDERFIELD +_ATTRIBUTEFIELDMAPPING.fields_by_name['price_field'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_price__placeholder__field__pb2._PRICEPLACEHOLDERFIELDENUM_PRICEPLACEHOLDERFIELD +_ATTRIBUTEFIELDMAPPING.fields_by_name['promotion_field'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_promotion__placeholder__field__pb2._PROMOTIONPLACEHOLDERFIELDENUM_PROMOTIONPLACEHOLDERFIELD +_ATTRIBUTEFIELDMAPPING.fields_by_name['ad_customizer_field'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_ad__customizer__placeholder__field__pb2._ADCUSTOMIZERPLACEHOLDERFIELDENUM_ADCUSTOMIZERPLACEHOLDERFIELD +_ATTRIBUTEFIELDMAPPING.fields_by_name['dsa_page_feed_field'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_dsa__page__feed__criterion__field__pb2._DSAPAGEFEEDCRITERIONFIELDENUM_DSAPAGEFEEDCRITERIONFIELD +_ATTRIBUTEFIELDMAPPING.fields_by_name['location_extension_targeting_field'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_location__extension__targeting__criterion__field__pb2._LOCATIONEXTENSIONTARGETINGCRITERIONFIELDENUM_LOCATIONEXTENSIONTARGETINGCRITERIONFIELD +_ATTRIBUTEFIELDMAPPING.fields_by_name['education_field'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_education__placeholder__field__pb2._EDUCATIONPLACEHOLDERFIELDENUM_EDUCATIONPLACEHOLDERFIELD +_ATTRIBUTEFIELDMAPPING.fields_by_name['flight_field'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_flight__placeholder__field__pb2._FLIGHTPLACEHOLDERFIELDENUM_FLIGHTPLACEHOLDERFIELD +_ATTRIBUTEFIELDMAPPING.fields_by_name['custom_field'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_custom__placeholder__field__pb2._CUSTOMPLACEHOLDERFIELDENUM_CUSTOMPLACEHOLDERFIELD +_ATTRIBUTEFIELDMAPPING.fields_by_name['hotel_field'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_hotel__placeholder__field__pb2._HOTELPLACEHOLDERFIELDENUM_HOTELPLACEHOLDERFIELD +_ATTRIBUTEFIELDMAPPING.fields_by_name['real_estate_field'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_real__estate__placeholder__field__pb2._REALESTATEPLACEHOLDERFIELDENUM_REALESTATEPLACEHOLDERFIELD +_ATTRIBUTEFIELDMAPPING.fields_by_name['travel_field'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_travel__placeholder__field__pb2._TRAVELPLACEHOLDERFIELDENUM_TRAVELPLACEHOLDERFIELD +_ATTRIBUTEFIELDMAPPING.fields_by_name['local_field'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_local__placeholder__field__pb2._LOCALPLACEHOLDERFIELDENUM_LOCALPLACEHOLDERFIELD +_ATTRIBUTEFIELDMAPPING.fields_by_name['job_field'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_job__placeholder__field__pb2._JOBPLACEHOLDERFIELDENUM_JOBPLACEHOLDERFIELD +_ATTRIBUTEFIELDMAPPING.oneofs_by_name['field'].fields.append( + _ATTRIBUTEFIELDMAPPING.fields_by_name['sitelink_field']) +_ATTRIBUTEFIELDMAPPING.fields_by_name['sitelink_field'].containing_oneof = _ATTRIBUTEFIELDMAPPING.oneofs_by_name['field'] +_ATTRIBUTEFIELDMAPPING.oneofs_by_name['field'].fields.append( + _ATTRIBUTEFIELDMAPPING.fields_by_name['call_field']) +_ATTRIBUTEFIELDMAPPING.fields_by_name['call_field'].containing_oneof = _ATTRIBUTEFIELDMAPPING.oneofs_by_name['field'] +_ATTRIBUTEFIELDMAPPING.oneofs_by_name['field'].fields.append( + _ATTRIBUTEFIELDMAPPING.fields_by_name['app_field']) +_ATTRIBUTEFIELDMAPPING.fields_by_name['app_field'].containing_oneof = _ATTRIBUTEFIELDMAPPING.oneofs_by_name['field'] +_ATTRIBUTEFIELDMAPPING.oneofs_by_name['field'].fields.append( + _ATTRIBUTEFIELDMAPPING.fields_by_name['location_field']) +_ATTRIBUTEFIELDMAPPING.fields_by_name['location_field'].containing_oneof = _ATTRIBUTEFIELDMAPPING.oneofs_by_name['field'] +_ATTRIBUTEFIELDMAPPING.oneofs_by_name['field'].fields.append( + _ATTRIBUTEFIELDMAPPING.fields_by_name['affiliate_location_field']) +_ATTRIBUTEFIELDMAPPING.fields_by_name['affiliate_location_field'].containing_oneof = _ATTRIBUTEFIELDMAPPING.oneofs_by_name['field'] +_ATTRIBUTEFIELDMAPPING.oneofs_by_name['field'].fields.append( + _ATTRIBUTEFIELDMAPPING.fields_by_name['callout_field']) +_ATTRIBUTEFIELDMAPPING.fields_by_name['callout_field'].containing_oneof = _ATTRIBUTEFIELDMAPPING.oneofs_by_name['field'] +_ATTRIBUTEFIELDMAPPING.oneofs_by_name['field'].fields.append( + _ATTRIBUTEFIELDMAPPING.fields_by_name['structured_snippet_field']) +_ATTRIBUTEFIELDMAPPING.fields_by_name['structured_snippet_field'].containing_oneof = _ATTRIBUTEFIELDMAPPING.oneofs_by_name['field'] +_ATTRIBUTEFIELDMAPPING.oneofs_by_name['field'].fields.append( + _ATTRIBUTEFIELDMAPPING.fields_by_name['message_field']) +_ATTRIBUTEFIELDMAPPING.fields_by_name['message_field'].containing_oneof = _ATTRIBUTEFIELDMAPPING.oneofs_by_name['field'] +_ATTRIBUTEFIELDMAPPING.oneofs_by_name['field'].fields.append( + _ATTRIBUTEFIELDMAPPING.fields_by_name['price_field']) +_ATTRIBUTEFIELDMAPPING.fields_by_name['price_field'].containing_oneof = _ATTRIBUTEFIELDMAPPING.oneofs_by_name['field'] +_ATTRIBUTEFIELDMAPPING.oneofs_by_name['field'].fields.append( + _ATTRIBUTEFIELDMAPPING.fields_by_name['promotion_field']) +_ATTRIBUTEFIELDMAPPING.fields_by_name['promotion_field'].containing_oneof = _ATTRIBUTEFIELDMAPPING.oneofs_by_name['field'] +_ATTRIBUTEFIELDMAPPING.oneofs_by_name['field'].fields.append( + _ATTRIBUTEFIELDMAPPING.fields_by_name['ad_customizer_field']) +_ATTRIBUTEFIELDMAPPING.fields_by_name['ad_customizer_field'].containing_oneof = _ATTRIBUTEFIELDMAPPING.oneofs_by_name['field'] +_ATTRIBUTEFIELDMAPPING.oneofs_by_name['field'].fields.append( + _ATTRIBUTEFIELDMAPPING.fields_by_name['dsa_page_feed_field']) +_ATTRIBUTEFIELDMAPPING.fields_by_name['dsa_page_feed_field'].containing_oneof = _ATTRIBUTEFIELDMAPPING.oneofs_by_name['field'] +_ATTRIBUTEFIELDMAPPING.oneofs_by_name['field'].fields.append( + _ATTRIBUTEFIELDMAPPING.fields_by_name['location_extension_targeting_field']) +_ATTRIBUTEFIELDMAPPING.fields_by_name['location_extension_targeting_field'].containing_oneof = _ATTRIBUTEFIELDMAPPING.oneofs_by_name['field'] +_ATTRIBUTEFIELDMAPPING.oneofs_by_name['field'].fields.append( + _ATTRIBUTEFIELDMAPPING.fields_by_name['education_field']) +_ATTRIBUTEFIELDMAPPING.fields_by_name['education_field'].containing_oneof = _ATTRIBUTEFIELDMAPPING.oneofs_by_name['field'] +_ATTRIBUTEFIELDMAPPING.oneofs_by_name['field'].fields.append( + _ATTRIBUTEFIELDMAPPING.fields_by_name['flight_field']) +_ATTRIBUTEFIELDMAPPING.fields_by_name['flight_field'].containing_oneof = _ATTRIBUTEFIELDMAPPING.oneofs_by_name['field'] +_ATTRIBUTEFIELDMAPPING.oneofs_by_name['field'].fields.append( + _ATTRIBUTEFIELDMAPPING.fields_by_name['custom_field']) +_ATTRIBUTEFIELDMAPPING.fields_by_name['custom_field'].containing_oneof = _ATTRIBUTEFIELDMAPPING.oneofs_by_name['field'] +_ATTRIBUTEFIELDMAPPING.oneofs_by_name['field'].fields.append( + _ATTRIBUTEFIELDMAPPING.fields_by_name['hotel_field']) +_ATTRIBUTEFIELDMAPPING.fields_by_name['hotel_field'].containing_oneof = _ATTRIBUTEFIELDMAPPING.oneofs_by_name['field'] +_ATTRIBUTEFIELDMAPPING.oneofs_by_name['field'].fields.append( + _ATTRIBUTEFIELDMAPPING.fields_by_name['real_estate_field']) +_ATTRIBUTEFIELDMAPPING.fields_by_name['real_estate_field'].containing_oneof = _ATTRIBUTEFIELDMAPPING.oneofs_by_name['field'] +_ATTRIBUTEFIELDMAPPING.oneofs_by_name['field'].fields.append( + _ATTRIBUTEFIELDMAPPING.fields_by_name['travel_field']) +_ATTRIBUTEFIELDMAPPING.fields_by_name['travel_field'].containing_oneof = _ATTRIBUTEFIELDMAPPING.oneofs_by_name['field'] +_ATTRIBUTEFIELDMAPPING.oneofs_by_name['field'].fields.append( + _ATTRIBUTEFIELDMAPPING.fields_by_name['local_field']) +_ATTRIBUTEFIELDMAPPING.fields_by_name['local_field'].containing_oneof = _ATTRIBUTEFIELDMAPPING.oneofs_by_name['field'] +_ATTRIBUTEFIELDMAPPING.oneofs_by_name['field'].fields.append( + _ATTRIBUTEFIELDMAPPING.fields_by_name['job_field']) +_ATTRIBUTEFIELDMAPPING.fields_by_name['job_field'].containing_oneof = _ATTRIBUTEFIELDMAPPING.oneofs_by_name['field'] +DESCRIPTOR.message_types_by_name['FeedMapping'] = _FEEDMAPPING +DESCRIPTOR.message_types_by_name['AttributeFieldMapping'] = _ATTRIBUTEFIELDMAPPING +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +FeedMapping = _reflection.GeneratedProtocolMessageType('FeedMapping', (_message.Message,), dict( + DESCRIPTOR = _FEEDMAPPING, + __module__ = 'google.ads.googleads_v4.proto.resources.feed_mapping_pb2' + , + __doc__ = """A feed mapping. + + + Attributes: + resource_name: + Immutable. The resource name of the feed mapping. Feed mapping + resource names have the form: ``customers/{customer_id}/feedM + appings/{feed_id}~{feed_mapping_id}`` + feed: + Immutable. The feed of this feed mapping. + attribute_field_mappings: + Immutable. Feed attributes to field mappings. These mappings + are a one-to-many relationship meaning that 1 feed attribute + can be used to populate multiple placeholder fields, but 1 + placeholder field can only draw data from 1 feed attribute. Ad + Customizer is an exception, 1 placeholder field can be mapped + to multiple feed attributes. Required. + status: + Output only. Status of the feed mapping. This field is read- + only. + target: + Feed mapping target. Can be either a placeholder or a + criterion. For a given feed, the active FeedMappings must have + unique targets. Required. + placeholder_type: + Immutable. The placeholder type of this mapping (i.e., if the + mapping maps feed attributes to placeholder fields). + criterion_type: + Immutable. The criterion type of this mapping (i.e., if the + mapping maps feed attributes to criterion fields). + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.resources.FeedMapping) + )) +_sym_db.RegisterMessage(FeedMapping) + +AttributeFieldMapping = _reflection.GeneratedProtocolMessageType('AttributeFieldMapping', (_message.Message,), dict( + DESCRIPTOR = _ATTRIBUTEFIELDMAPPING, + __module__ = 'google.ads.googleads_v4.proto.resources.feed_mapping_pb2' + , + __doc__ = """Maps from feed attribute id to a placeholder or criterion field id. + + + Attributes: + feed_attribute_id: + Immutable. Feed attribute from which to map. + field_id: + Output only. The placeholder field ID. If a placeholder field + enum is not published in the current API version, then this + field will be populated and the field oneof will be empty. + This field is read-only. + field: + Placeholder or criterion field to be populated using data from + the above feed attribute. Required. + sitelink_field: + Immutable. Sitelink Placeholder Fields. + call_field: + Immutable. Call Placeholder Fields. + app_field: + Immutable. App Placeholder Fields. + location_field: + Output only. Location Placeholder Fields. This field is read- + only. + affiliate_location_field: + Output only. Affiliate Location Placeholder Fields. This field + is read-only. + callout_field: + Immutable. Callout Placeholder Fields. + structured_snippet_field: + Immutable. Structured Snippet Placeholder Fields. + message_field: + Immutable. Message Placeholder Fields. + price_field: + Immutable. Price Placeholder Fields. + promotion_field: + Immutable. Promotion Placeholder Fields. + ad_customizer_field: + Immutable. Ad Customizer Placeholder Fields + dsa_page_feed_field: + Immutable. Dynamic Search Ad Page Feed Fields. + location_extension_targeting_field: + Immutable. Location Target Fields. + education_field: + Immutable. Education Placeholder Fields + flight_field: + Immutable. Flight Placeholder Fields + custom_field: + Immutable. Custom Placeholder Fields + hotel_field: + Immutable. Hotel Placeholder Fields + real_estate_field: + Immutable. Real Estate Placeholder Fields + travel_field: + Immutable. Travel Placeholder Fields + local_field: + Immutable. Local Placeholder Fields + job_field: + Immutable. Job Placeholder Fields + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.resources.AttributeFieldMapping) + )) +_sym_db.RegisterMessage(AttributeFieldMapping) + + +DESCRIPTOR._options = None +_FEEDMAPPING.fields_by_name['resource_name']._options = None +_FEEDMAPPING.fields_by_name['feed']._options = None +_FEEDMAPPING.fields_by_name['attribute_field_mappings']._options = None +_FEEDMAPPING.fields_by_name['status']._options = None +_FEEDMAPPING.fields_by_name['placeholder_type']._options = None +_FEEDMAPPING.fields_by_name['criterion_type']._options = None +_FEEDMAPPING._options = None +_ATTRIBUTEFIELDMAPPING.fields_by_name['feed_attribute_id']._options = None +_ATTRIBUTEFIELDMAPPING.fields_by_name['field_id']._options = None +_ATTRIBUTEFIELDMAPPING.fields_by_name['sitelink_field']._options = None +_ATTRIBUTEFIELDMAPPING.fields_by_name['call_field']._options = None +_ATTRIBUTEFIELDMAPPING.fields_by_name['app_field']._options = None +_ATTRIBUTEFIELDMAPPING.fields_by_name['location_field']._options = None +_ATTRIBUTEFIELDMAPPING.fields_by_name['affiliate_location_field']._options = None +_ATTRIBUTEFIELDMAPPING.fields_by_name['callout_field']._options = None +_ATTRIBUTEFIELDMAPPING.fields_by_name['structured_snippet_field']._options = None +_ATTRIBUTEFIELDMAPPING.fields_by_name['message_field']._options = None +_ATTRIBUTEFIELDMAPPING.fields_by_name['price_field']._options = None +_ATTRIBUTEFIELDMAPPING.fields_by_name['promotion_field']._options = None +_ATTRIBUTEFIELDMAPPING.fields_by_name['ad_customizer_field']._options = None +_ATTRIBUTEFIELDMAPPING.fields_by_name['dsa_page_feed_field']._options = None +_ATTRIBUTEFIELDMAPPING.fields_by_name['location_extension_targeting_field']._options = None +_ATTRIBUTEFIELDMAPPING.fields_by_name['education_field']._options = None +_ATTRIBUTEFIELDMAPPING.fields_by_name['flight_field']._options = None +_ATTRIBUTEFIELDMAPPING.fields_by_name['custom_field']._options = None +_ATTRIBUTEFIELDMAPPING.fields_by_name['hotel_field']._options = None +_ATTRIBUTEFIELDMAPPING.fields_by_name['real_estate_field']._options = None +_ATTRIBUTEFIELDMAPPING.fields_by_name['travel_field']._options = None +_ATTRIBUTEFIELDMAPPING.fields_by_name['local_field']._options = None +_ATTRIBUTEFIELDMAPPING.fields_by_name['job_field']._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/resources/shopping_performance_view_pb2_grpc.py b/google/ads/google_ads/v4/proto/resources/feed_mapping_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/resources/shopping_performance_view_pb2_grpc.py rename to google/ads/google_ads/v4/proto/resources/feed_mapping_pb2_grpc.py diff --git a/google/ads/google_ads/v4/proto/resources/feed_pb2.py b/google/ads/google_ads/v4/proto/resources/feed_pb2.py new file mode 100644 index 000000000..9b6dd4dfe --- /dev/null +++ b/google/ads/google_ads/v4/proto/resources/feed_pb2.py @@ -0,0 +1,613 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/resources/feed.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.ads.google_ads.v4.proto.enums import affiliate_location_feed_relationship_type_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_affiliate__location__feed__relationship__type__pb2 +from google.ads.google_ads.v4.proto.enums import feed_attribute_type_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_feed__attribute__type__pb2 +from google.ads.google_ads.v4.proto.enums import feed_origin_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_feed__origin__pb2 +from google.ads.google_ads.v4.proto.enums import feed_status_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_feed__status__pb2 +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 +from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/resources/feed.proto', + package='google.ads.googleads.v4.resources', + syntax='proto3', + serialized_options=_b('\n%com.google.ads.googleads.v4.resourcesB\tFeedProtoP\001ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v4/resources;resources\242\002\003GAA\252\002!Google.Ads.GoogleAds.V4.Resources\312\002!Google\\Ads\\GoogleAds\\V4\\Resources\352\002%Google::Ads::GoogleAds::V4::Resources'), + serialized_pb=_b('\n2google/ads/googleads_v4/proto/resources/feed.proto\x12!google.ads.googleads.v4.resources\x1aSgoogle/ads/googleads_v4/proto/enums/affiliate_location_feed_relationship_type.proto\x1a=google/ads/googleads_v4/proto/enums/feed_attribute_type.proto\x1a\x35google/ads/googleads_v4/proto/enums/feed_origin.proto\x1a\x35google/ads/googleads_v4/proto/enums/feed_status.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1cgoogle/api/annotations.proto\"\xc1\x0c\n\x04\x46\x65\x65\x64\x12<\n\rresource_name\x18\x01 \x01(\tB%\xe0\x41\x05\xfa\x41\x1f\n\x1dgoogleads.googleapis.com/Feed\x12,\n\x02id\x18\x02 \x01(\x0b\x32\x1b.google.protobuf.Int64ValueB\x03\xe0\x41\x03\x12/\n\x04name\x18\x03 \x01(\x0b\x32\x1c.google.protobuf.StringValueB\x03\xe0\x41\x05\x12\x44\n\nattributes\x18\x04 \x03(\x0b\x32\x30.google.ads.googleads.v4.resources.FeedAttribute\x12W\n\x14\x61ttribute_operations\x18\t \x03(\x0b\x32\x39.google.ads.googleads.v4.resources.FeedAttributeOperation\x12M\n\x06origin\x18\x05 \x01(\x0e\x32\x38.google.ads.googleads.v4.enums.FeedOriginEnum.FeedOriginB\x03\xe0\x41\x05\x12M\n\x06status\x18\x08 \x01(\x0e\x32\x38.google.ads.googleads.v4.enums.FeedStatusEnum.FeedStatusB\x03\xe0\x41\x03\x12\x63\n\x19places_location_feed_data\x18\x06 \x01(\x0b\x32>.google.ads.googleads.v4.resources.Feed.PlacesLocationFeedDataH\x00\x12i\n\x1c\x61\x66\x66iliate_location_feed_data\x18\x07 \x01(\x0b\x32\x41.google.ads.googleads.v4.resources.Feed.AffiliateLocationFeedDataH\x00\x1a\xce\x04\n\x16PlacesLocationFeedData\x12\x61\n\noauth_info\x18\x01 \x01(\x0b\x32H.google.ads.googleads.v4.resources.Feed.PlacesLocationFeedData.OAuthInfoB\x03\xe0\x41\x05\x12\x33\n\remail_address\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x39\n\x13\x62usiness_account_id\x18\n \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12:\n\x14\x62usiness_name_filter\x18\x04 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x36\n\x10\x63\x61tegory_filters\x18\x05 \x03(\x0b\x32\x1c.google.protobuf.StringValue\x12\x33\n\rlabel_filters\x18\x06 \x03(\x0b\x32\x1c.google.protobuf.StringValue\x1a\xb7\x01\n\tOAuthInfo\x12\x31\n\x0bhttp_method\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x36\n\x10http_request_url\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12?\n\x19http_authorization_header\x18\x03 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x1a\xd7\x01\n\x19\x41\x66\x66iliateLocationFeedData\x12.\n\tchain_ids\x18\x01 \x03(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x89\x01\n\x11relationship_type\x18\x02 \x01(\x0e\x32n.google.ads.googleads.v4.enums.AffiliateLocationFeedRelationshipTypeEnum.AffiliateLocationFeedRelationshipType:E\xea\x41\x42\n\x1dgoogleads.googleapis.com/Feed\x12!customers/{customer}/feeds/{feed}B\x1d\n\x1bsystem_feed_generation_data\"\xee\x01\n\rFeedAttribute\x12\'\n\x02id\x18\x01 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12*\n\x04name\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12T\n\x04type\x18\x03 \x01(\x0e\x32\x46.google.ads.googleads.v4.enums.FeedAttributeTypeEnum.FeedAttributeType\x12\x32\n\x0eis_part_of_key\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.BoolValue\"\xec\x01\n\x16\x46\x65\x65\x64\x41ttributeOperation\x12Y\n\x08operator\x18\x01 \x01(\x0e\x32\x42.google.ads.googleads.v4.resources.FeedAttributeOperation.OperatorB\x03\xe0\x41\x03\x12\x44\n\x05value\x18\x02 \x01(\x0b\x32\x30.google.ads.googleads.v4.resources.FeedAttributeB\x03\xe0\x41\x03\"1\n\x08Operator\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x07\n\x03\x41\x44\x44\x10\x02\x42\xf6\x01\n%com.google.ads.googleads.v4.resourcesB\tFeedProtoP\x01ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v4/resources;resources\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V4.Resources\xca\x02!Google\\Ads\\GoogleAds\\V4\\Resources\xea\x02%Google::Ads::GoogleAds::V4::Resourcesb\x06proto3') + , + dependencies=[google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_affiliate__location__feed__relationship__type__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_feed__attribute__type__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_feed__origin__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_feed__status__pb2.DESCRIPTOR,google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_api_dot_resource__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_FEEDATTRIBUTEOPERATION_OPERATOR = _descriptor.EnumDescriptor( + name='Operator', + full_name='google.ads.googleads.v4.resources.FeedAttributeOperation.Operator', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='UNSPECIFIED', index=0, number=0, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='UNKNOWN', index=1, number=1, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='ADD', index=2, number=2, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=2502, + serialized_end=2551, +) +_sym_db.RegisterEnumDescriptor(_FEEDATTRIBUTEOPERATION_OPERATOR) + + +_FEED_PLACESLOCATIONFEEDDATA_OAUTHINFO = _descriptor.Descriptor( + name='OAuthInfo', + full_name='google.ads.googleads.v4.resources.Feed.PlacesLocationFeedData.OAuthInfo', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='http_method', full_name='google.ads.googleads.v4.resources.Feed.PlacesLocationFeedData.OAuthInfo.http_method', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='http_request_url', full_name='google.ads.googleads.v4.resources.Feed.PlacesLocationFeedData.OAuthInfo.http_request_url', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='http_authorization_header', full_name='google.ads.googleads.v4.resources.Feed.PlacesLocationFeedData.OAuthInfo.http_authorization_header', index=2, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1568, + serialized_end=1751, +) + +_FEED_PLACESLOCATIONFEEDDATA = _descriptor.Descriptor( + name='PlacesLocationFeedData', + full_name='google.ads.googleads.v4.resources.Feed.PlacesLocationFeedData', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='oauth_info', full_name='google.ads.googleads.v4.resources.Feed.PlacesLocationFeedData.oauth_info', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='email_address', full_name='google.ads.googleads.v4.resources.Feed.PlacesLocationFeedData.email_address', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='business_account_id', full_name='google.ads.googleads.v4.resources.Feed.PlacesLocationFeedData.business_account_id', index=2, + number=10, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='business_name_filter', full_name='google.ads.googleads.v4.resources.Feed.PlacesLocationFeedData.business_name_filter', index=3, + number=4, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='category_filters', full_name='google.ads.googleads.v4.resources.Feed.PlacesLocationFeedData.category_filters', index=4, + number=5, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='label_filters', full_name='google.ads.googleads.v4.resources.Feed.PlacesLocationFeedData.label_filters', index=5, + number=6, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[_FEED_PLACESLOCATIONFEEDDATA_OAUTHINFO, ], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1161, + serialized_end=1751, +) + +_FEED_AFFILIATELOCATIONFEEDDATA = _descriptor.Descriptor( + name='AffiliateLocationFeedData', + full_name='google.ads.googleads.v4.resources.Feed.AffiliateLocationFeedData', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='chain_ids', full_name='google.ads.googleads.v4.resources.Feed.AffiliateLocationFeedData.chain_ids', index=0, + number=1, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='relationship_type', full_name='google.ads.googleads.v4.resources.Feed.AffiliateLocationFeedData.relationship_type', index=1, + number=2, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1754, + serialized_end=1969, +) + +_FEED = _descriptor.Descriptor( + name='Feed', + full_name='google.ads.googleads.v4.resources.Feed', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.resources.Feed.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005\372A\037\n\035googleads.googleapis.com/Feed'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='id', full_name='google.ads.googleads.v4.resources.Feed.id', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='name', full_name='google.ads.googleads.v4.resources.Feed.name', index=2, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='attributes', full_name='google.ads.googleads.v4.resources.Feed.attributes', index=3, + number=4, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='attribute_operations', full_name='google.ads.googleads.v4.resources.Feed.attribute_operations', index=4, + number=9, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='origin', full_name='google.ads.googleads.v4.resources.Feed.origin', index=5, + number=5, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='status', full_name='google.ads.googleads.v4.resources.Feed.status', index=6, + number=8, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='places_location_feed_data', full_name='google.ads.googleads.v4.resources.Feed.places_location_feed_data', index=7, + number=6, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='affiliate_location_feed_data', full_name='google.ads.googleads.v4.resources.Feed.affiliate_location_feed_data', index=8, + number=7, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[_FEED_PLACESLOCATIONFEEDDATA, _FEED_AFFILIATELOCATIONFEEDDATA, ], + enum_types=[ + ], + serialized_options=_b('\352AB\n\035googleads.googleapis.com/Feed\022!customers/{customer}/feeds/{feed}'), + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name='system_feed_generation_data', full_name='google.ads.googleads.v4.resources.Feed.system_feed_generation_data', + index=0, containing_type=None, fields=[]), + ], + serialized_start=470, + serialized_end=2071, +) + + +_FEEDATTRIBUTE = _descriptor.Descriptor( + name='FeedAttribute', + full_name='google.ads.googleads.v4.resources.FeedAttribute', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='id', full_name='google.ads.googleads.v4.resources.FeedAttribute.id', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='name', full_name='google.ads.googleads.v4.resources.FeedAttribute.name', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='type', full_name='google.ads.googleads.v4.resources.FeedAttribute.type', index=2, + number=3, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='is_part_of_key', full_name='google.ads.googleads.v4.resources.FeedAttribute.is_part_of_key', index=3, + number=4, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=2074, + serialized_end=2312, +) + + +_FEEDATTRIBUTEOPERATION = _descriptor.Descriptor( + name='FeedAttributeOperation', + full_name='google.ads.googleads.v4.resources.FeedAttributeOperation', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='operator', full_name='google.ads.googleads.v4.resources.FeedAttributeOperation.operator', index=0, + number=1, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='value', full_name='google.ads.googleads.v4.resources.FeedAttributeOperation.value', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _FEEDATTRIBUTEOPERATION_OPERATOR, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=2315, + serialized_end=2551, +) + +_FEED_PLACESLOCATIONFEEDDATA_OAUTHINFO.fields_by_name['http_method'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_FEED_PLACESLOCATIONFEEDDATA_OAUTHINFO.fields_by_name['http_request_url'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_FEED_PLACESLOCATIONFEEDDATA_OAUTHINFO.fields_by_name['http_authorization_header'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_FEED_PLACESLOCATIONFEEDDATA_OAUTHINFO.containing_type = _FEED_PLACESLOCATIONFEEDDATA +_FEED_PLACESLOCATIONFEEDDATA.fields_by_name['oauth_info'].message_type = _FEED_PLACESLOCATIONFEEDDATA_OAUTHINFO +_FEED_PLACESLOCATIONFEEDDATA.fields_by_name['email_address'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_FEED_PLACESLOCATIONFEEDDATA.fields_by_name['business_account_id'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_FEED_PLACESLOCATIONFEEDDATA.fields_by_name['business_name_filter'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_FEED_PLACESLOCATIONFEEDDATA.fields_by_name['category_filters'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_FEED_PLACESLOCATIONFEEDDATA.fields_by_name['label_filters'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_FEED_PLACESLOCATIONFEEDDATA.containing_type = _FEED +_FEED_AFFILIATELOCATIONFEEDDATA.fields_by_name['chain_ids'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_FEED_AFFILIATELOCATIONFEEDDATA.fields_by_name['relationship_type'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_affiliate__location__feed__relationship__type__pb2._AFFILIATELOCATIONFEEDRELATIONSHIPTYPEENUM_AFFILIATELOCATIONFEEDRELATIONSHIPTYPE +_FEED_AFFILIATELOCATIONFEEDDATA.containing_type = _FEED +_FEED.fields_by_name['id'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_FEED.fields_by_name['name'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_FEED.fields_by_name['attributes'].message_type = _FEEDATTRIBUTE +_FEED.fields_by_name['attribute_operations'].message_type = _FEEDATTRIBUTEOPERATION +_FEED.fields_by_name['origin'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_feed__origin__pb2._FEEDORIGINENUM_FEEDORIGIN +_FEED.fields_by_name['status'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_feed__status__pb2._FEEDSTATUSENUM_FEEDSTATUS +_FEED.fields_by_name['places_location_feed_data'].message_type = _FEED_PLACESLOCATIONFEEDDATA +_FEED.fields_by_name['affiliate_location_feed_data'].message_type = _FEED_AFFILIATELOCATIONFEEDDATA +_FEED.oneofs_by_name['system_feed_generation_data'].fields.append( + _FEED.fields_by_name['places_location_feed_data']) +_FEED.fields_by_name['places_location_feed_data'].containing_oneof = _FEED.oneofs_by_name['system_feed_generation_data'] +_FEED.oneofs_by_name['system_feed_generation_data'].fields.append( + _FEED.fields_by_name['affiliate_location_feed_data']) +_FEED.fields_by_name['affiliate_location_feed_data'].containing_oneof = _FEED.oneofs_by_name['system_feed_generation_data'] +_FEEDATTRIBUTE.fields_by_name['id'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_FEEDATTRIBUTE.fields_by_name['name'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_FEEDATTRIBUTE.fields_by_name['type'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_feed__attribute__type__pb2._FEEDATTRIBUTETYPEENUM_FEEDATTRIBUTETYPE +_FEEDATTRIBUTE.fields_by_name['is_part_of_key'].message_type = google_dot_protobuf_dot_wrappers__pb2._BOOLVALUE +_FEEDATTRIBUTEOPERATION.fields_by_name['operator'].enum_type = _FEEDATTRIBUTEOPERATION_OPERATOR +_FEEDATTRIBUTEOPERATION.fields_by_name['value'].message_type = _FEEDATTRIBUTE +_FEEDATTRIBUTEOPERATION_OPERATOR.containing_type = _FEEDATTRIBUTEOPERATION +DESCRIPTOR.message_types_by_name['Feed'] = _FEED +DESCRIPTOR.message_types_by_name['FeedAttribute'] = _FEEDATTRIBUTE +DESCRIPTOR.message_types_by_name['FeedAttributeOperation'] = _FEEDATTRIBUTEOPERATION +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +Feed = _reflection.GeneratedProtocolMessageType('Feed', (_message.Message,), dict( + + PlacesLocationFeedData = _reflection.GeneratedProtocolMessageType('PlacesLocationFeedData', (_message.Message,), dict( + + OAuthInfo = _reflection.GeneratedProtocolMessageType('OAuthInfo', (_message.Message,), dict( + DESCRIPTOR = _FEED_PLACESLOCATIONFEEDDATA_OAUTHINFO, + __module__ = 'google.ads.googleads_v4.proto.resources.feed_pb2' + , + __doc__ = """Data used for authorization using OAuth. + + + Attributes: + http_method: + The HTTP method used to obtain authorization. + http_request_url: + The HTTP request URL used to obtain authorization. + http_authorization_header: + The HTTP authorization header used to obtain authorization. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.resources.Feed.PlacesLocationFeedData.OAuthInfo) + )) + , + DESCRIPTOR = _FEED_PLACESLOCATIONFEEDDATA, + __module__ = 'google.ads.googleads_v4.proto.resources.feed_pb2' + , + __doc__ = """Data used to configure a location feed populated from Google My Business + Locations. + + + Attributes: + oauth_info: + Immutable. Required authentication token (from OAuth API) for + the email. This field can only be specified in a create + request. All its subfields are not selectable. + email_address: + Email address of a Google My Business account or email address + of a manager of the Google My Business account. Required. + business_account_id: + Plus page ID of the managed business whose locations should be + used. If this field is not set, then all businesses accessible + by the user (specified by email\_address) are used. This field + is mutate-only and is not selectable. + business_name_filter: + Used to filter Google My Business listings by business name. + If business\_name\_filter is set, only listings with a + matching business name are candidates to be sync'd into + FeedItems. + category_filters: + Used to filter Google My Business listings by categories. If + entries exist in category\_filters, only listings that belong + to any of the categories are candidates to be sync'd into + FeedItems. If no entries exist in category\_filters, then all + listings are candidates for syncing. + label_filters: + Used to filter Google My Business listings by labels. If + entries exist in label\_filters, only listings that has any of + the labels set are candidates to be synchronized into + FeedItems. If no entries exist in label\_filters, then all + listings are candidates for syncing. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.resources.Feed.PlacesLocationFeedData) + )) + , + + AffiliateLocationFeedData = _reflection.GeneratedProtocolMessageType('AffiliateLocationFeedData', (_message.Message,), dict( + DESCRIPTOR = _FEED_AFFILIATELOCATIONFEEDDATA, + __module__ = 'google.ads.googleads_v4.proto.resources.feed_pb2' + , + __doc__ = """Data used to configure an affiliate location feed populated with the + specified chains. + + + Attributes: + chain_ids: + The list of chains that the affiliate location feed will sync + the locations from. + relationship_type: + The relationship the chains have with the advertiser. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.resources.Feed.AffiliateLocationFeedData) + )) + , + DESCRIPTOR = _FEED, + __module__ = 'google.ads.googleads_v4.proto.resources.feed_pb2' + , + __doc__ = """A feed. + + + Attributes: + resource_name: + Immutable. The resource name of the feed. Feed resource names + have the form: ``customers/{customer_id}/feeds/{feed_id}`` + id: + Output only. The ID of the feed. This field is read-only. + name: + Immutable. Name of the feed. Required. + attributes: + The Feed's attributes. Required on CREATE, unless + system\_feed\_generation\_data is provided, in which case + Google Ads will update the feed with the correct attributes. + Disallowed on UPDATE. Use attribute\_operations to add new + attributes. + attribute_operations: + The list of operations changing the feed attributes. + Attributes can only be added, not removed. + origin: + Immutable. Specifies who manages the FeedAttributes for the + Feed. + status: + Output only. Status of the feed. This field is read-only. + system_feed_generation_data: + The system data for the Feed. This data specifies information + for generating the feed items of the system generated feed. + places_location_feed_data: + Data used to configure a location feed populated from Google + My Business Locations. + affiliate_location_feed_data: + Data used to configure an affiliate location feed populated + with the specified chains. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.resources.Feed) + )) +_sym_db.RegisterMessage(Feed) +_sym_db.RegisterMessage(Feed.PlacesLocationFeedData) +_sym_db.RegisterMessage(Feed.PlacesLocationFeedData.OAuthInfo) +_sym_db.RegisterMessage(Feed.AffiliateLocationFeedData) + +FeedAttribute = _reflection.GeneratedProtocolMessageType('FeedAttribute', (_message.Message,), dict( + DESCRIPTOR = _FEEDATTRIBUTE, + __module__ = 'google.ads.googleads_v4.proto.resources.feed_pb2' + , + __doc__ = """FeedAttributes define the types of data expected to be present in a + Feed. A single FeedAttribute specifies the expected type of the + FeedItemAttributes with the same FeedAttributeId. Optionally, a + FeedAttribute can be marked as being part of a FeedItem's unique key. + + + Attributes: + id: + ID of the attribute. + name: + The name of the attribute. Required. + type: + Data type for feed attribute. Required. + is_part_of_key: + Indicates that data corresponding to this attribute is part of + a FeedItem's unique key. It defaults to false if it is + unspecified. Note that a unique key is not required in a + Feed's schema, in which case the FeedItems must be referenced + by their feed\_item\_id. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.resources.FeedAttribute) + )) +_sym_db.RegisterMessage(FeedAttribute) + +FeedAttributeOperation = _reflection.GeneratedProtocolMessageType('FeedAttributeOperation', (_message.Message,), dict( + DESCRIPTOR = _FEEDATTRIBUTEOPERATION, + __module__ = 'google.ads.googleads_v4.proto.resources.feed_pb2' + , + __doc__ = """Operation to be performed on a feed attribute list in a mutate. + + + Attributes: + operator: + Output only. Type of list operation to perform. + value: + Output only. The feed attribute being added to the list. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.resources.FeedAttributeOperation) + )) +_sym_db.RegisterMessage(FeedAttributeOperation) + + +DESCRIPTOR._options = None +_FEED_PLACESLOCATIONFEEDDATA.fields_by_name['oauth_info']._options = None +_FEED.fields_by_name['resource_name']._options = None +_FEED.fields_by_name['id']._options = None +_FEED.fields_by_name['name']._options = None +_FEED.fields_by_name['origin']._options = None +_FEED.fields_by_name['status']._options = None +_FEED._options = None +_FEEDATTRIBUTEOPERATION.fields_by_name['operator']._options = None +_FEEDATTRIBUTEOPERATION.fields_by_name['value']._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/resources/topic_constant_pb2_grpc.py b/google/ads/google_ads/v4/proto/resources/feed_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/resources/topic_constant_pb2_grpc.py rename to google/ads/google_ads/v4/proto/resources/feed_pb2_grpc.py diff --git a/google/ads/google_ads/v4/proto/resources/feed_placeholder_view_pb2.py b/google/ads/google_ads/v4/proto/resources/feed_placeholder_view_pb2.py new file mode 100644 index 000000000..f742f5014 --- /dev/null +++ b/google/ads/google_ads/v4/proto/resources/feed_placeholder_view_pb2.py @@ -0,0 +1,100 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/resources/feed_placeholder_view.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.ads.google_ads.v4.proto.enums import placeholder_type_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_placeholder__type__pb2 +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/resources/feed_placeholder_view.proto', + package='google.ads.googleads.v4.resources', + syntax='proto3', + serialized_options=_b('\n%com.google.ads.googleads.v4.resourcesB\030FeedPlaceholderViewProtoP\001ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v4/resources;resources\242\002\003GAA\252\002!Google.Ads.GoogleAds.V4.Resources\312\002!Google\\Ads\\GoogleAds\\V4\\Resources\352\002%Google::Ads::GoogleAds::V4::Resources'), + serialized_pb=_b('\nCgoogle/ads/googleads_v4/proto/resources/feed_placeholder_view.proto\x12!google.ads.googleads.v4.resources\x1a:google/ads/googleads_v4/proto/enums/placeholder_type.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1cgoogle/api/annotations.proto\"\xbb\x02\n\x13\x46\x65\x65\x64PlaceholderView\x12K\n\rresource_name\x18\x01 \x01(\tB4\xe0\x41\x03\xfa\x41.\n,googleads.googleapis.com/FeedPlaceholderView\x12\x61\n\x10placeholder_type\x18\x02 \x01(\x0e\x32\x42.google.ads.googleads.v4.enums.PlaceholderTypeEnum.PlaceholderTypeB\x03\xe0\x41\x03:t\xea\x41q\n,googleads.googleapis.com/FeedPlaceholderView\x12\x41\x63ustomers/{customer}/feedPlaceholderViews/{feed_placeholder_view}B\x85\x02\n%com.google.ads.googleads.v4.resourcesB\x18\x46\x65\x65\x64PlaceholderViewProtoP\x01ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v4/resources;resources\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V4.Resources\xca\x02!Google\\Ads\\GoogleAds\\V4\\Resources\xea\x02%Google::Ads::GoogleAds::V4::Resourcesb\x06proto3') + , + dependencies=[google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_placeholder__type__pb2.DESCRIPTOR,google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_api_dot_resource__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + + +_FEEDPLACEHOLDERVIEW = _descriptor.Descriptor( + name='FeedPlaceholderView', + full_name='google.ads.googleads.v4.resources.FeedPlaceholderView', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.resources.FeedPlaceholderView.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003\372A.\n,googleads.googleapis.com/FeedPlaceholderView'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='placeholder_type', full_name='google.ads.googleads.v4.resources.FeedPlaceholderView.placeholder_type', index=1, + number=2, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=_b('\352Aq\n,googleads.googleapis.com/FeedPlaceholderView\022Acustomers/{customer}/feedPlaceholderViews/{feed_placeholder_view}'), + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=257, + serialized_end=572, +) + +_FEEDPLACEHOLDERVIEW.fields_by_name['placeholder_type'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_placeholder__type__pb2._PLACEHOLDERTYPEENUM_PLACEHOLDERTYPE +DESCRIPTOR.message_types_by_name['FeedPlaceholderView'] = _FEEDPLACEHOLDERVIEW +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +FeedPlaceholderView = _reflection.GeneratedProtocolMessageType('FeedPlaceholderView', (_message.Message,), dict( + DESCRIPTOR = _FEEDPLACEHOLDERVIEW, + __module__ = 'google.ads.googleads_v4.proto.resources.feed_placeholder_view_pb2' + , + __doc__ = """A feed placeholder view. + + + Attributes: + resource_name: + Output only. The resource name of the feed placeholder view. + Feed placeholder view resource names have the form: ``custome + rs/{customer_id}/feedPlaceholderViews/{placeholder_type}`` + placeholder_type: + Output only. The placeholder type of the feed placeholder + view. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.resources.FeedPlaceholderView) + )) +_sym_db.RegisterMessage(FeedPlaceholderView) + + +DESCRIPTOR._options = None +_FEEDPLACEHOLDERVIEW.fields_by_name['resource_name']._options = None +_FEEDPLACEHOLDERVIEW.fields_by_name['placeholder_type']._options = None +_FEEDPLACEHOLDERVIEW._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/resources/topic_view_pb2_grpc.py b/google/ads/google_ads/v4/proto/resources/feed_placeholder_view_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/resources/topic_view_pb2_grpc.py rename to google/ads/google_ads/v4/proto/resources/feed_placeholder_view_pb2_grpc.py diff --git a/google/ads/google_ads/v4/proto/resources/gender_view_pb2.py b/google/ads/google_ads/v4/proto/resources/gender_view_pb2.py new file mode 100644 index 000000000..36448010b --- /dev/null +++ b/google/ads/google_ads/v4/proto/resources/gender_view_pb2.py @@ -0,0 +1,87 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/resources/gender_view.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/resources/gender_view.proto', + package='google.ads.googleads.v4.resources', + syntax='proto3', + serialized_options=_b('\n%com.google.ads.googleads.v4.resourcesB\017GenderViewProtoP\001ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v4/resources;resources\242\002\003GAA\252\002!Google.Ads.GoogleAds.V4.Resources\312\002!Google\\Ads\\GoogleAds\\V4\\Resources\352\002%Google::Ads::GoogleAds::V4::Resources'), + serialized_pb=_b('\n9google/ads/googleads_v4/proto/resources/gender_view.proto\x12!google.ads.googleads.v4.resources\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1cgoogle/api/annotations.proto\"\xaa\x01\n\nGenderView\x12\x42\n\rresource_name\x18\x01 \x01(\tB+\xe0\x41\x03\xfa\x41%\n#googleads.googleapis.com/GenderView:X\xea\x41U\n#googleads.googleapis.com/GenderView\x12.customers/{customer}/genderViews/{gender_view}B\xfc\x01\n%com.google.ads.googleads.v4.resourcesB\x0fGenderViewProtoP\x01ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v4/resources;resources\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V4.Resources\xca\x02!Google\\Ads\\GoogleAds\\V4\\Resources\xea\x02%Google::Ads::GoogleAds::V4::Resourcesb\x06proto3') + , + dependencies=[google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_api_dot_resource__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + + +_GENDERVIEW = _descriptor.Descriptor( + name='GenderView', + full_name='google.ads.googleads.v4.resources.GenderView', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.resources.GenderView.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003\372A%\n#googleads.googleapis.com/GenderView'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=_b('\352AU\n#googleads.googleapis.com/GenderView\022.customers/{customer}/genderViews/{gender_view}'), + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=187, + serialized_end=357, +) + +DESCRIPTOR.message_types_by_name['GenderView'] = _GENDERVIEW +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +GenderView = _reflection.GeneratedProtocolMessageType('GenderView', (_message.Message,), dict( + DESCRIPTOR = _GENDERVIEW, + __module__ = 'google.ads.googleads_v4.proto.resources.gender_view_pb2' + , + __doc__ = """A gender view. + + + Attributes: + resource_name: + Output only. The resource name of the gender view. Gender view + resource names have the form: ``customers/{customer_id}/gende + rViews/{ad_group_id}~{criterion_id}`` + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.resources.GenderView) + )) +_sym_db.RegisterMessage(GenderView) + + +DESCRIPTOR._options = None +_GENDERVIEW.fields_by_name['resource_name']._options = None +_GENDERVIEW._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/resources/user_interest_pb2_grpc.py b/google/ads/google_ads/v4/proto/resources/gender_view_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/resources/user_interest_pb2_grpc.py rename to google/ads/google_ads/v4/proto/resources/gender_view_pb2_grpc.py diff --git a/google/ads/google_ads/v4/proto/resources/geo_target_constant_pb2.py b/google/ads/google_ads/v4/proto/resources/geo_target_constant_pb2.py new file mode 100644 index 000000000..25464c749 --- /dev/null +++ b/google/ads/google_ads/v4/proto/resources/geo_target_constant_pb2.py @@ -0,0 +1,157 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/resources/geo_target_constant.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.ads.google_ads.v4.proto.enums import geo_target_constant_status_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_geo__target__constant__status__pb2 +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 +from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/resources/geo_target_constant.proto', + package='google.ads.googleads.v4.resources', + syntax='proto3', + serialized_options=_b('\n%com.google.ads.googleads.v4.resourcesB\026GeoTargetConstantProtoP\001ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v4/resources;resources\242\002\003GAA\252\002!Google.Ads.GoogleAds.V4.Resources\312\002!Google\\Ads\\GoogleAds\\V4\\Resources\352\002%Google::Ads::GoogleAds::V4::Resources'), + serialized_pb=_b('\nAgoogle/ads/googleads_v4/proto/resources/geo_target_constant.proto\x12!google.ads.googleads.v4.resources\x1a\x44google/ads/googleads_v4/proto/enums/geo_target_constant_status.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1cgoogle/api/annotations.proto\"\xad\x04\n\x11GeoTargetConstant\x12I\n\rresource_name\x18\x01 \x01(\tB2\xe0\x41\x03\xfa\x41,\n*googleads.googleapis.com/GeoTargetConstant\x12,\n\x02id\x18\x03 \x01(\x0b\x32\x1b.google.protobuf.Int64ValueB\x03\xe0\x41\x03\x12/\n\x04name\x18\x04 \x01(\x0b\x32\x1c.google.protobuf.StringValueB\x03\xe0\x41\x03\x12\x37\n\x0c\x63ountry_code\x18\x05 \x01(\x0b\x32\x1c.google.protobuf.StringValueB\x03\xe0\x41\x03\x12\x36\n\x0btarget_type\x18\x06 \x01(\x0b\x32\x1c.google.protobuf.StringValueB\x03\xe0\x41\x03\x12g\n\x06status\x18\x07 \x01(\x0e\x32R.google.ads.googleads.v4.enums.GeoTargetConstantStatusEnum.GeoTargetConstantStatusB\x03\xe0\x41\x03\x12\x39\n\x0e\x63\x61nonical_name\x18\x08 \x01(\x0b\x32\x1c.google.protobuf.StringValueB\x03\xe0\x41\x03:Y\xea\x41V\n*googleads.googleapis.com/GeoTargetConstant\x12(geoTargetConstants/{geo_target_constant}B\x83\x02\n%com.google.ads.googleads.v4.resourcesB\x16GeoTargetConstantProtoP\x01ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v4/resources;resources\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V4.Resources\xca\x02!Google\\Ads\\GoogleAds\\V4\\Resources\xea\x02%Google::Ads::GoogleAds::V4::Resourcesb\x06proto3') + , + dependencies=[google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_geo__target__constant__status__pb2.DESCRIPTOR,google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_api_dot_resource__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + + +_GEOTARGETCONSTANT = _descriptor.Descriptor( + name='GeoTargetConstant', + full_name='google.ads.googleads.v4.resources.GeoTargetConstant', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.resources.GeoTargetConstant.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003\372A,\n*googleads.googleapis.com/GeoTargetConstant'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='id', full_name='google.ads.googleads.v4.resources.GeoTargetConstant.id', index=1, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='name', full_name='google.ads.googleads.v4.resources.GeoTargetConstant.name', index=2, + number=4, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='country_code', full_name='google.ads.googleads.v4.resources.GeoTargetConstant.country_code', index=3, + number=5, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='target_type', full_name='google.ads.googleads.v4.resources.GeoTargetConstant.target_type', index=4, + number=6, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='status', full_name='google.ads.googleads.v4.resources.GeoTargetConstant.status', index=5, + number=7, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='canonical_name', full_name='google.ads.googleads.v4.resources.GeoTargetConstant.canonical_name', index=6, + number=8, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=_b('\352AV\n*googleads.googleapis.com/GeoTargetConstant\022(geoTargetConstants/{geo_target_constant}'), + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=297, + serialized_end=854, +) + +_GEOTARGETCONSTANT.fields_by_name['id'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_GEOTARGETCONSTANT.fields_by_name['name'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_GEOTARGETCONSTANT.fields_by_name['country_code'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_GEOTARGETCONSTANT.fields_by_name['target_type'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_GEOTARGETCONSTANT.fields_by_name['status'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_geo__target__constant__status__pb2._GEOTARGETCONSTANTSTATUSENUM_GEOTARGETCONSTANTSTATUS +_GEOTARGETCONSTANT.fields_by_name['canonical_name'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +DESCRIPTOR.message_types_by_name['GeoTargetConstant'] = _GEOTARGETCONSTANT +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +GeoTargetConstant = _reflection.GeneratedProtocolMessageType('GeoTargetConstant', (_message.Message,), dict( + DESCRIPTOR = _GEOTARGETCONSTANT, + __module__ = 'google.ads.googleads_v4.proto.resources.geo_target_constant_pb2' + , + __doc__ = """A geo target constant. + + + Attributes: + resource_name: + Output only. The resource name of the geo target constant. Geo + target constant resource names have the form: + ``geoTargetConstants/{geo_target_constant_id}`` + id: + Output only. The ID of the geo target constant. + name: + Output only. Geo target constant English name. + country_code: + Output only. The ISO-3166-1 alpha-2 country code that is + associated with the target. + target_type: + Output only. Geo target constant target type. + status: + Output only. Geo target constant status. + canonical_name: + Output only. The fully qualified English name, consisting of + the target's name and that of its parent and country. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.resources.GeoTargetConstant) + )) +_sym_db.RegisterMessage(GeoTargetConstant) + + +DESCRIPTOR._options = None +_GEOTARGETCONSTANT.fields_by_name['resource_name']._options = None +_GEOTARGETCONSTANT.fields_by_name['id']._options = None +_GEOTARGETCONSTANT.fields_by_name['name']._options = None +_GEOTARGETCONSTANT.fields_by_name['country_code']._options = None +_GEOTARGETCONSTANT.fields_by_name['target_type']._options = None +_GEOTARGETCONSTANT.fields_by_name['status']._options = None +_GEOTARGETCONSTANT.fields_by_name['canonical_name']._options = None +_GEOTARGETCONSTANT._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/resources/user_list_pb2_grpc.py b/google/ads/google_ads/v4/proto/resources/geo_target_constant_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/resources/user_list_pb2_grpc.py rename to google/ads/google_ads/v4/proto/resources/geo_target_constant_pb2_grpc.py diff --git a/google/ads/google_ads/v4/proto/resources/geographic_view_pb2.py b/google/ads/google_ads/v4/proto/resources/geographic_view_pb2.py new file mode 100644 index 000000000..ff8562137 --- /dev/null +++ b/google/ads/google_ads/v4/proto/resources/geographic_view_pb2.py @@ -0,0 +1,117 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/resources/geographic_view.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.ads.google_ads.v4.proto.enums import geo_targeting_type_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_geo__targeting__type__pb2 +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 +from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/resources/geographic_view.proto', + package='google.ads.googleads.v4.resources', + syntax='proto3', + serialized_options=_b('\n%com.google.ads.googleads.v4.resourcesB\023GeographicViewProtoP\001ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v4/resources;resources\242\002\003GAA\252\002!Google.Ads.GoogleAds.V4.Resources\312\002!Google\\Ads\\GoogleAds\\V4\\Resources\352\002%Google::Ads::GoogleAds::V4::Resources'), + serialized_pb=_b('\n=google/ads/googleads_v4/proto/resources/geographic_view.proto\x12!google.ads.googleads.v4.resources\x1a\n\x14\x63ountry_criterion_id\x18\x04 \x01(\x0b\x32\x1b.google.protobuf.Int64ValueB\x03\xe0\x41\x03:d\xea\x41\x61\n\'googleads.googleapis.com/GeographicView\x12\x36\x63ustomers/{customer}/geographicViews/{geographic_view}B\x80\x02\n%com.google.ads.googleads.v4.resourcesB\x13GeographicViewProtoP\x01ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v4/resources;resources\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V4.Resources\xca\x02!Google\\Ads\\GoogleAds\\V4\\Resources\xea\x02%Google::Ads::GoogleAds::V4::Resourcesb\x06proto3') + , + dependencies=[google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_geo__targeting__type__pb2.DESCRIPTOR,google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_api_dot_resource__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + + +_GEOGRAPHICVIEW = _descriptor.Descriptor( + name='GeographicView', + full_name='google.ads.googleads.v4.resources.GeographicView', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.resources.GeographicView.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003\372A)\n\'googleads.googleapis.com/GeographicView'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='location_type', full_name='google.ads.googleads.v4.resources.GeographicView.location_type', index=1, + number=3, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='country_criterion_id', full_name='google.ads.googleads.v4.resources.GeographicView.country_criterion_id', index=2, + number=4, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=_b('\352Aa\n\'googleads.googleapis.com/GeographicView\0226customers/{customer}/geographicViews/{geographic_view}'), + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=285, + serialized_end=637, +) + +_GEOGRAPHICVIEW.fields_by_name['location_type'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_geo__targeting__type__pb2._GEOTARGETINGTYPEENUM_GEOTARGETINGTYPE +_GEOGRAPHICVIEW.fields_by_name['country_criterion_id'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +DESCRIPTOR.message_types_by_name['GeographicView'] = _GEOGRAPHICVIEW +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +GeographicView = _reflection.GeneratedProtocolMessageType('GeographicView', (_message.Message,), dict( + DESCRIPTOR = _GEOGRAPHICVIEW, + __module__ = 'google.ads.googleads_v4.proto.resources.geographic_view_pb2' + , + __doc__ = """A geographic view. + + Geographic View includes all metrics aggregated at the country level, + one row per country. It reports metrics at either actual physical + location of the user or an area of interest. If other segment fields are + used, you may get more than one row per country. + + + Attributes: + resource_name: + Output only. The resource name of the geographic view. + Geographic view resource names have the form: ``customers/{cu + stomer_id}/geographicViews/{country_criterion_id}~{location_ty + pe}`` + location_type: + Output only. Type of the geo targeting of the campaign. + country_criterion_id: + Output only. Criterion Id for the country. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.resources.GeographicView) + )) +_sym_db.RegisterMessage(GeographicView) + + +DESCRIPTOR._options = None +_GEOGRAPHICVIEW.fields_by_name['resource_name']._options = None +_GEOGRAPHICVIEW.fields_by_name['location_type']._options = None +_GEOGRAPHICVIEW.fields_by_name['country_criterion_id']._options = None +_GEOGRAPHICVIEW._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/resources/video_pb2_grpc.py b/google/ads/google_ads/v4/proto/resources/geographic_view_pb2_grpc.py similarity index 100% rename from google/ads/google_ads/v1/proto/resources/video_pb2_grpc.py rename to google/ads/google_ads/v4/proto/resources/geographic_view_pb2_grpc.py diff --git a/google/ads/google_ads/v4/proto/resources/google_ads_field_pb2.py b/google/ads/google_ads/v4/proto/resources/google_ads_field_pb2.py new file mode 100644 index 000000000..b97cd2a3f --- /dev/null +++ b/google/ads/google_ads/v4/proto/resources/google_ads_field_pb2.py @@ -0,0 +1,257 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/resources/google_ads_field.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.ads.google_ads.v4.proto.enums import google_ads_field_category_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_google__ads__field__category__pb2 +from google.ads.google_ads.v4.proto.enums import google_ads_field_data_type_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_google__ads__field__data__type__pb2 +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 +from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/resources/google_ads_field.proto', + package='google.ads.googleads.v4.resources', + syntax='proto3', + serialized_options=_b('\n%com.google.ads.googleads.v4.resourcesB\023GoogleAdsFieldProtoP\001ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v4/resources;resources\242\002\003GAA\252\002!Google.Ads.GoogleAds.V4.Resources\312\002!Google\\Ads\\GoogleAds\\V4\\Resources\352\002%Google::Ads::GoogleAds::V4::Resources'), + serialized_pb=_b('\n>google/ads/googleads_v4/proto/resources/google_ads_field.proto\x12!google.ads.googleads.v4.resources\x1a\x43google/ads/googleads_v4/proto/enums/google_ads_field_category.proto\x1a\x44google/ads/googleads_v4/proto/enums/google_ads_field_data_type.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1cgoogle/api/annotations.proto\"\xd3\x07\n\x0eGoogleAdsField\x12\x46\n\rresource_name\x18\x01 \x01(\tB/\xe0\x41\x03\xfa\x41)\n\'googleads.googleapis.com/GoogleAdsField\x12/\n\x04name\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValueB\x03\xe0\x41\x03\x12g\n\x08\x63\x61tegory\x18\x03 \x01(\x0e\x32P.google.ads.googleads.v4.enums.GoogleAdsFieldCategoryEnum.GoogleAdsFieldCategoryB\x03\xe0\x41\x03\x12\x33\n\nselectable\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.BoolValueB\x03\xe0\x41\x03\x12\x33\n\nfilterable\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.BoolValueB\x03\xe0\x41\x03\x12\x31\n\x08sortable\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.BoolValueB\x03\xe0\x41\x03\x12:\n\x0fselectable_with\x18\x07 \x03(\x0b\x32\x1c.google.protobuf.StringValueB\x03\xe0\x41\x03\x12>\n\x13\x61ttribute_resources\x18\x08 \x03(\x0b\x32\x1c.google.protobuf.StringValueB\x03\xe0\x41\x03\x12\x32\n\x07metrics\x18\t \x03(\x0b\x32\x1c.google.protobuf.StringValueB\x03\xe0\x41\x03\x12\x33\n\x08segments\x18\n \x03(\x0b\x32\x1c.google.protobuf.StringValueB\x03\xe0\x41\x03\x12\x36\n\x0b\x65num_values\x18\x0b \x03(\x0b\x32\x1c.google.protobuf.StringValueB\x03\xe0\x41\x03\x12h\n\tdata_type\x18\x0c \x01(\x0e\x32P.google.ads.googleads.v4.enums.GoogleAdsFieldDataTypeEnum.GoogleAdsFieldDataTypeB\x03\xe0\x41\x03\x12\x33\n\x08type_url\x18\r \x01(\x0b\x32\x1c.google.protobuf.StringValueB\x03\xe0\x41\x03\x12\x34\n\x0bis_repeated\x18\x0e \x01(\x0b\x32\x1a.google.protobuf.BoolValueB\x03\xe0\x41\x03:P\xea\x41M\n\'googleads.googleapis.com/GoogleAdsField\x12\"googleAdsFields/{google_ads_field}B\x80\x02\n%com.google.ads.googleads.v4.resourcesB\x13GoogleAdsFieldProtoP\x01ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v4/resources;resources\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V4.Resources\xca\x02!Google\\Ads\\GoogleAds\\V4\\Resources\xea\x02%Google::Ads::GoogleAds::V4::Resourcesb\x06proto3') + , + dependencies=[google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_google__ads__field__category__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_google__ads__field__data__type__pb2.DESCRIPTOR,google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_api_dot_resource__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + + +_GOOGLEADSFIELD = _descriptor.Descriptor( + name='GoogleAdsField', + full_name='google.ads.googleads.v4.resources.GoogleAdsField', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.resources.GoogleAdsField.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003\372A)\n\'googleads.googleapis.com/GoogleAdsField'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='name', full_name='google.ads.googleads.v4.resources.GoogleAdsField.name', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='category', full_name='google.ads.googleads.v4.resources.GoogleAdsField.category', index=2, + number=3, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='selectable', full_name='google.ads.googleads.v4.resources.GoogleAdsField.selectable', index=3, + number=4, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='filterable', full_name='google.ads.googleads.v4.resources.GoogleAdsField.filterable', index=4, + number=5, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='sortable', full_name='google.ads.googleads.v4.resources.GoogleAdsField.sortable', index=5, + number=6, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='selectable_with', full_name='google.ads.googleads.v4.resources.GoogleAdsField.selectable_with', index=6, + number=7, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='attribute_resources', full_name='google.ads.googleads.v4.resources.GoogleAdsField.attribute_resources', index=7, + number=8, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='metrics', full_name='google.ads.googleads.v4.resources.GoogleAdsField.metrics', index=8, + number=9, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='segments', full_name='google.ads.googleads.v4.resources.GoogleAdsField.segments', index=9, + number=10, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='enum_values', full_name='google.ads.googleads.v4.resources.GoogleAdsField.enum_values', index=10, + number=11, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='data_type', full_name='google.ads.googleads.v4.resources.GoogleAdsField.data_type', index=11, + number=12, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='type_url', full_name='google.ads.googleads.v4.resources.GoogleAdsField.type_url', index=12, + number=13, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='is_repeated', full_name='google.ads.googleads.v4.resources.GoogleAdsField.is_repeated', index=13, + number=14, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=_b('\352AM\n\'googleads.googleapis.com/GoogleAdsField\022\"googleAdsFields/{google_ads_field}'), + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=363, + serialized_end=1342, +) + +_GOOGLEADSFIELD.fields_by_name['name'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_GOOGLEADSFIELD.fields_by_name['category'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_google__ads__field__category__pb2._GOOGLEADSFIELDCATEGORYENUM_GOOGLEADSFIELDCATEGORY +_GOOGLEADSFIELD.fields_by_name['selectable'].message_type = google_dot_protobuf_dot_wrappers__pb2._BOOLVALUE +_GOOGLEADSFIELD.fields_by_name['filterable'].message_type = google_dot_protobuf_dot_wrappers__pb2._BOOLVALUE +_GOOGLEADSFIELD.fields_by_name['sortable'].message_type = google_dot_protobuf_dot_wrappers__pb2._BOOLVALUE +_GOOGLEADSFIELD.fields_by_name['selectable_with'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_GOOGLEADSFIELD.fields_by_name['attribute_resources'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_GOOGLEADSFIELD.fields_by_name['metrics'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_GOOGLEADSFIELD.fields_by_name['segments'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_GOOGLEADSFIELD.fields_by_name['enum_values'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_GOOGLEADSFIELD.fields_by_name['data_type'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_google__ads__field__data__type__pb2._GOOGLEADSFIELDDATATYPEENUM_GOOGLEADSFIELDDATATYPE +_GOOGLEADSFIELD.fields_by_name['type_url'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_GOOGLEADSFIELD.fields_by_name['is_repeated'].message_type = google_dot_protobuf_dot_wrappers__pb2._BOOLVALUE +DESCRIPTOR.message_types_by_name['GoogleAdsField'] = _GOOGLEADSFIELD +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +GoogleAdsField = _reflection.GeneratedProtocolMessageType('GoogleAdsField', (_message.Message,), dict( + DESCRIPTOR = _GOOGLEADSFIELD, + __module__ = 'google.ads.googleads_v4.proto.resources.google_ads_field_pb2' + , + __doc__ = """A field or resource (artifact) used by GoogleAdsService. + + + Attributes: + resource_name: + Output only. The resource name of the artifact. Artifact + resource names have the form: ``googleAdsFields/{name}`` + name: + Output only. The name of the artifact. + category: + Output only. The category of the artifact. + selectable: + Output only. Whether the artifact can be used in a SELECT + clause in search queries. + filterable: + Output only. Whether the artifact can be used in a WHERE + clause in search queries. + sortable: + Output only. Whether the artifact can be used in a ORDER BY + clause in search queries. + selectable_with: + Output only. The names of all resources, segments, and metrics + that are selectable with the described artifact. + attribute_resources: + Output only. The names of all resources that are selectable + with the described artifact. Fields from these resources do + not segment metrics when included in search queries. This + field is only set for artifacts whose category is RESOURCE. + metrics: + Output only. At and beyond version V1 this field lists the + names of all metrics that are selectable with the described + artifact when it is used in the FROM clause. It is only set + for artifacts whose category is RESOURCE. Before version V1 + this field lists the names of all metrics that are selectable + with the described artifact. It is only set for artifacts + whose category is either RESOURCE or SEGMENT + segments: + Output only. At and beyond version V1 this field lists the + names of all artifacts, whether a segment or another resource, + that segment metrics when included in search queries and when + the described artifact is used in the FROM clause. It is only + set for artifacts whose category is RESOURCE. Before version + V1 this field lists the names of all artifacts, whether a + segment or another resource, that segment metrics when + included in search queries. It is only set for artifacts of + category RESOURCE, SEGMENT or METRIC. + enum_values: + Output only. Values the artifact can assume if it is a field + of type ENUM. This field is only set for artifacts of + category SEGMENT or ATTRIBUTE. + data_type: + Output only. This field determines the operators that can be + used with the artifact in WHERE clauses. + type_url: + Output only. The URL of proto describing the artifact's data + type. + is_repeated: + Output only. Whether the field artifact is repeated. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.resources.GoogleAdsField) + )) +_sym_db.RegisterMessage(GoogleAdsField) + + +DESCRIPTOR._options = None +_GOOGLEADSFIELD.fields_by_name['resource_name']._options = None +_GOOGLEADSFIELD.fields_by_name['name']._options = None +_GOOGLEADSFIELD.fields_by_name['category']._options = None +_GOOGLEADSFIELD.fields_by_name['selectable']._options = None +_GOOGLEADSFIELD.fields_by_name['filterable']._options = None +_GOOGLEADSFIELD.fields_by_name['sortable']._options = None +_GOOGLEADSFIELD.fields_by_name['selectable_with']._options = None +_GOOGLEADSFIELD.fields_by_name['attribute_resources']._options = None +_GOOGLEADSFIELD.fields_by_name['metrics']._options = None +_GOOGLEADSFIELD.fields_by_name['segments']._options = None +_GOOGLEADSFIELD.fields_by_name['enum_values']._options = None +_GOOGLEADSFIELD.fields_by_name['data_type']._options = None +_GOOGLEADSFIELD.fields_by_name['type_url']._options = None +_GOOGLEADSFIELD.fields_by_name['is_repeated']._options = None +_GOOGLEADSFIELD._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v4/proto/resources/google_ads_field_pb2_grpc.py b/google/ads/google_ads/v4/proto/resources/google_ads_field_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v4/proto/resources/google_ads_field_pb2_grpc.py @@ -0,0 +1,3 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +import grpc + diff --git a/google/ads/google_ads/v4/proto/resources/group_placement_view_pb2.py b/google/ads/google_ads/v4/proto/resources/group_placement_view_pb2.py new file mode 100644 index 000000000..1d074431b --- /dev/null +++ b/google/ads/google_ads/v4/proto/resources/group_placement_view_pb2.py @@ -0,0 +1,138 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/resources/group_placement_view.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.ads.google_ads.v4.proto.enums import placement_type_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_placement__type__pb2 +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 +from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/resources/group_placement_view.proto', + package='google.ads.googleads.v4.resources', + syntax='proto3', + serialized_options=_b('\n%com.google.ads.googleads.v4.resourcesB\027GroupPlacementViewProtoP\001ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v4/resources;resources\242\002\003GAA\252\002!Google.Ads.GoogleAds.V4.Resources\312\002!Google\\Ads\\GoogleAds\\V4\\Resources\352\002%Google::Ads::GoogleAds::V4::Resources'), + serialized_pb=_b('\nBgoogle/ads/googleads_v4/proto/resources/group_placement_view.proto\x12!google.ads.googleads.v4.resources\x1a\x38google/ads/googleads_v4/proto/enums/placement_type.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1cgoogle/api/annotations.proto\"\xd6\x03\n\x12GroupPlacementView\x12J\n\rresource_name\x18\x01 \x01(\tB3\xe0\x41\x03\xfa\x41-\n+googleads.googleapis.com/GroupPlacementView\x12\x34\n\tplacement\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValueB\x03\xe0\x41\x03\x12\x37\n\x0c\x64isplay_name\x18\x03 \x01(\x0b\x32\x1c.google.protobuf.StringValueB\x03\xe0\x41\x03\x12\x35\n\ntarget_url\x18\x04 \x01(\x0b\x32\x1c.google.protobuf.StringValueB\x03\xe0\x41\x03\x12[\n\x0eplacement_type\x18\x05 \x01(\x0e\x32>.google.ads.googleads.v4.enums.PlacementTypeEnum.PlacementTypeB\x03\xe0\x41\x03:q\xea\x41n\n+googleads.googleapis.com/GroupPlacementView\x12?customers/{customer}/groupPlacementViews/{group_placement_view}B\x84\x02\n%com.google.ads.googleads.v4.resourcesB\x17GroupPlacementViewProtoP\x01ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v4/resources;resources\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V4.Resources\xca\x02!Google\\Ads\\GoogleAds\\V4\\Resources\xea\x02%Google::Ads::GoogleAds::V4::Resourcesb\x06proto3') + , + dependencies=[google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_placement__type__pb2.DESCRIPTOR,google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_api_dot_resource__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + + +_GROUPPLACEMENTVIEW = _descriptor.Descriptor( + name='GroupPlacementView', + full_name='google.ads.googleads.v4.resources.GroupPlacementView', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.resources.GroupPlacementView.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003\372A-\n+googleads.googleapis.com/GroupPlacementView'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='placement', full_name='google.ads.googleads.v4.resources.GroupPlacementView.placement', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='display_name', full_name='google.ads.googleads.v4.resources.GroupPlacementView.display_name', index=2, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='target_url', full_name='google.ads.googleads.v4.resources.GroupPlacementView.target_url', index=3, + number=4, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='placement_type', full_name='google.ads.googleads.v4.resources.GroupPlacementView.placement_type', index=4, + number=5, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=_b('\352An\n+googleads.googleapis.com/GroupPlacementView\022?customers/{customer}/groupPlacementViews/{group_placement_view}'), + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=286, + serialized_end=756, +) + +_GROUPPLACEMENTVIEW.fields_by_name['placement'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_GROUPPLACEMENTVIEW.fields_by_name['display_name'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_GROUPPLACEMENTVIEW.fields_by_name['target_url'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_GROUPPLACEMENTVIEW.fields_by_name['placement_type'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_placement__type__pb2._PLACEMENTTYPEENUM_PLACEMENTTYPE +DESCRIPTOR.message_types_by_name['GroupPlacementView'] = _GROUPPLACEMENTVIEW +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +GroupPlacementView = _reflection.GeneratedProtocolMessageType('GroupPlacementView', (_message.Message,), dict( + DESCRIPTOR = _GROUPPLACEMENTVIEW, + __module__ = 'google.ads.googleads_v4.proto.resources.group_placement_view_pb2' + , + __doc__ = """A group placement view. + + + Attributes: + resource_name: + Output only. The resource name of the group placement view. + Group placement view resource names have the form: ``customer + s/{customer_id}/groupPlacementViews/{ad_group_id}~{base64_plac + ement}`` + placement: + Output only. The automatic placement string at group level, e. + g. web domain, mobile app ID, or a YouTube channel ID. + display_name: + Output only. Domain name for websites and YouTube channel name + for YouTube channels. + target_url: + Output only. URL of the group placement, e.g. domain, link to + the mobile application in app store, or a YouTube channel URL. + placement_type: + Output only. Type of the placement, e.g. Website, YouTube + Channel, Mobile Application. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.resources.GroupPlacementView) + )) +_sym_db.RegisterMessage(GroupPlacementView) + + +DESCRIPTOR._options = None +_GROUPPLACEMENTVIEW.fields_by_name['resource_name']._options = None +_GROUPPLACEMENTVIEW.fields_by_name['placement']._options = None +_GROUPPLACEMENTVIEW.fields_by_name['display_name']._options = None +_GROUPPLACEMENTVIEW.fields_by_name['target_url']._options = None +_GROUPPLACEMENTVIEW.fields_by_name['placement_type']._options = None +_GROUPPLACEMENTVIEW._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v4/proto/resources/group_placement_view_pb2_grpc.py b/google/ads/google_ads/v4/proto/resources/group_placement_view_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v4/proto/resources/group_placement_view_pb2_grpc.py @@ -0,0 +1,3 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +import grpc + diff --git a/google/ads/google_ads/v4/proto/resources/hotel_group_view_pb2.py b/google/ads/google_ads/v4/proto/resources/hotel_group_view_pb2.py new file mode 100644 index 000000000..b6bdfe414 --- /dev/null +++ b/google/ads/google_ads/v4/proto/resources/hotel_group_view_pb2.py @@ -0,0 +1,87 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/resources/hotel_group_view.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/resources/hotel_group_view.proto', + package='google.ads.googleads.v4.resources', + syntax='proto3', + serialized_options=_b('\n%com.google.ads.googleads.v4.resourcesB\023HotelGroupViewProtoP\001ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v4/resources;resources\242\002\003GAA\252\002!Google.Ads.GoogleAds.V4.Resources\312\002!Google\\Ads\\GoogleAds\\V4\\Resources\352\002%Google::Ads::GoogleAds::V4::Resources'), + serialized_pb=_b('\n>google/ads/googleads_v4/proto/resources/hotel_group_view.proto\x12!google.ads.googleads.v4.resources\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1cgoogle/api/annotations.proto\"\xbf\x01\n\x0eHotelGroupView\x12\x46\n\rresource_name\x18\x01 \x01(\tB/\xe0\x41\x03\xfa\x41)\n\'googleads.googleapis.com/HotelGroupView:e\xea\x41\x62\n\'googleads.googleapis.com/HotelGroupView\x12\x37\x63ustomers/{customer}/hotelGroupViews/{hotel_group_view}B\x80\x02\n%com.google.ads.googleads.v4.resourcesB\x13HotelGroupViewProtoP\x01ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v4/resources;resources\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V4.Resources\xca\x02!Google\\Ads\\GoogleAds\\V4\\Resources\xea\x02%Google::Ads::GoogleAds::V4::Resourcesb\x06proto3') + , + dependencies=[google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_api_dot_resource__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + + +_HOTELGROUPVIEW = _descriptor.Descriptor( + name='HotelGroupView', + full_name='google.ads.googleads.v4.resources.HotelGroupView', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.resources.HotelGroupView.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003\372A)\n\'googleads.googleapis.com/HotelGroupView'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=_b('\352Ab\n\'googleads.googleapis.com/HotelGroupView\0227customers/{customer}/hotelGroupViews/{hotel_group_view}'), + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=192, + serialized_end=383, +) + +DESCRIPTOR.message_types_by_name['HotelGroupView'] = _HOTELGROUPVIEW +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +HotelGroupView = _reflection.GeneratedProtocolMessageType('HotelGroupView', (_message.Message,), dict( + DESCRIPTOR = _HOTELGROUPVIEW, + __module__ = 'google.ads.googleads_v4.proto.resources.hotel_group_view_pb2' + , + __doc__ = """A hotel group view. + + + Attributes: + resource_name: + Output only. The resource name of the hotel group view. Hotel + Group view resource names have the form: ``customers/{custome + r_id}/hotelGroupViews/{ad_group_id}~{criterion_id}`` + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.resources.HotelGroupView) + )) +_sym_db.RegisterMessage(HotelGroupView) + + +DESCRIPTOR._options = None +_HOTELGROUPVIEW.fields_by_name['resource_name']._options = None +_HOTELGROUPVIEW._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v4/proto/resources/hotel_group_view_pb2_grpc.py b/google/ads/google_ads/v4/proto/resources/hotel_group_view_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v4/proto/resources/hotel_group_view_pb2_grpc.py @@ -0,0 +1,3 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +import grpc + diff --git a/google/ads/google_ads/v4/proto/resources/hotel_performance_view_pb2.py b/google/ads/google_ads/v4/proto/resources/hotel_performance_view_pb2.py new file mode 100644 index 000000000..dcc7bb8ca --- /dev/null +++ b/google/ads/google_ads/v4/proto/resources/hotel_performance_view_pb2.py @@ -0,0 +1,87 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/resources/hotel_performance_view.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/resources/hotel_performance_view.proto', + package='google.ads.googleads.v4.resources', + syntax='proto3', + serialized_options=_b('\n%com.google.ads.googleads.v4.resourcesB\031HotelPerformanceViewProtoP\001ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v4/resources;resources\242\002\003GAA\252\002!Google.Ads.GoogleAds.V4.Resources\312\002!Google\\Ads\\GoogleAds\\V4\\Resources\352\002%Google::Ads::GoogleAds::V4::Resources'), + serialized_pb=_b('\nDgoogle/ads/googleads_v4/proto/resources/hotel_performance_view.proto\x12!google.ads.googleads.v4.resources\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1cgoogle/api/annotations.proto\"\xc3\x01\n\x14HotelPerformanceView\x12L\n\rresource_name\x18\x01 \x01(\tB5\xe0\x41\x03\xfa\x41/\n-googleads.googleapis.com/HotelPerformanceView:]\xea\x41Z\n-googleads.googleapis.com/HotelPerformanceView\x12)customers/{customer}/hotelPerformanceViewB\x86\x02\n%com.google.ads.googleads.v4.resourcesB\x19HotelPerformanceViewProtoP\x01ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v4/resources;resources\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V4.Resources\xca\x02!Google\\Ads\\GoogleAds\\V4\\Resources\xea\x02%Google::Ads::GoogleAds::V4::Resourcesb\x06proto3') + , + dependencies=[google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_api_dot_resource__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + + +_HOTELPERFORMANCEVIEW = _descriptor.Descriptor( + name='HotelPerformanceView', + full_name='google.ads.googleads.v4.resources.HotelPerformanceView', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.resources.HotelPerformanceView.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003\372A/\n-googleads.googleapis.com/HotelPerformanceView'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=_b('\352AZ\n-googleads.googleapis.com/HotelPerformanceView\022)customers/{customer}/hotelPerformanceView'), + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=198, + serialized_end=393, +) + +DESCRIPTOR.message_types_by_name['HotelPerformanceView'] = _HOTELPERFORMANCEVIEW +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +HotelPerformanceView = _reflection.GeneratedProtocolMessageType('HotelPerformanceView', (_message.Message,), dict( + DESCRIPTOR = _HOTELPERFORMANCEVIEW, + __module__ = 'google.ads.googleads_v4.proto.resources.hotel_performance_view_pb2' + , + __doc__ = """A hotel performance view. + + + Attributes: + resource_name: + Output only. The resource name of the hotel performance view. + Hotel performance view resource names have the form: + ``customers/{customer_id}/hotelPerformanceView`` + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.resources.HotelPerformanceView) + )) +_sym_db.RegisterMessage(HotelPerformanceView) + + +DESCRIPTOR._options = None +_HOTELPERFORMANCEVIEW.fields_by_name['resource_name']._options = None +_HOTELPERFORMANCEVIEW._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v4/proto/resources/hotel_performance_view_pb2_grpc.py b/google/ads/google_ads/v4/proto/resources/hotel_performance_view_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v4/proto/resources/hotel_performance_view_pb2_grpc.py @@ -0,0 +1,3 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +import grpc + diff --git a/google/ads/google_ads/v4/proto/resources/income_range_view_pb2.py b/google/ads/google_ads/v4/proto/resources/income_range_view_pb2.py new file mode 100644 index 000000000..caa57f626 --- /dev/null +++ b/google/ads/google_ads/v4/proto/resources/income_range_view_pb2.py @@ -0,0 +1,87 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/resources/income_range_view.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/resources/income_range_view.proto', + package='google.ads.googleads.v4.resources', + syntax='proto3', + serialized_options=_b('\n%com.google.ads.googleads.v4.resourcesB\024IncomeRangeViewProtoP\001ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v4/resources;resources\242\002\003GAA\252\002!Google.Ads.GoogleAds.V4.Resources\312\002!Google\\Ads\\GoogleAds\\V4\\Resources\352\002%Google::Ads::GoogleAds::V4::Resources'), + serialized_pb=_b('\n?google/ads/googleads_v4/proto/resources/income_range_view.proto\x12!google.ads.googleads.v4.resources\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1cgoogle/api/annotations.proto\"\xc4\x01\n\x0fIncomeRangeView\x12G\n\rresource_name\x18\x01 \x01(\tB0\xe0\x41\x03\xfa\x41*\n(googleads.googleapis.com/IncomeRangeView:h\xea\x41\x65\n(googleads.googleapis.com/IncomeRangeView\x12\x39\x63ustomers/{customer}/incomeRangeViews/{income_range_view}B\x81\x02\n%com.google.ads.googleads.v4.resourcesB\x14IncomeRangeViewProtoP\x01ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v4/resources;resources\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V4.Resources\xca\x02!Google\\Ads\\GoogleAds\\V4\\Resources\xea\x02%Google::Ads::GoogleAds::V4::Resourcesb\x06proto3') + , + dependencies=[google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_api_dot_resource__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + + +_INCOMERANGEVIEW = _descriptor.Descriptor( + name='IncomeRangeView', + full_name='google.ads.googleads.v4.resources.IncomeRangeView', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.resources.IncomeRangeView.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003\372A*\n(googleads.googleapis.com/IncomeRangeView'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=_b('\352Ae\n(googleads.googleapis.com/IncomeRangeView\0229customers/{customer}/incomeRangeViews/{income_range_view}'), + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=193, + serialized_end=389, +) + +DESCRIPTOR.message_types_by_name['IncomeRangeView'] = _INCOMERANGEVIEW +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +IncomeRangeView = _reflection.GeneratedProtocolMessageType('IncomeRangeView', (_message.Message,), dict( + DESCRIPTOR = _INCOMERANGEVIEW, + __module__ = 'google.ads.googleads_v4.proto.resources.income_range_view_pb2' + , + __doc__ = """An income range view. + + + Attributes: + resource_name: + Output only. The resource name of the income range view. + Income range view resource names have the form: ``customers/{ + customer_id}/incomeRangeViews/{ad_group_id}~{criterion_id}`` + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.resources.IncomeRangeView) + )) +_sym_db.RegisterMessage(IncomeRangeView) + + +DESCRIPTOR._options = None +_INCOMERANGEVIEW.fields_by_name['resource_name']._options = None +_INCOMERANGEVIEW._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v4/proto/resources/income_range_view_pb2_grpc.py b/google/ads/google_ads/v4/proto/resources/income_range_view_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v4/proto/resources/income_range_view_pb2_grpc.py @@ -0,0 +1,3 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +import grpc + diff --git a/google/ads/google_ads/v4/proto/resources/invoice_pb2.py b/google/ads/google_ads/v4/proto/resources/invoice_pb2.py new file mode 100644 index 000000000..b4b16ac99 --- /dev/null +++ b/google/ads/google_ads/v4/proto/resources/invoice_pb2.py @@ -0,0 +1,469 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/resources/invoice.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.ads.google_ads.v4.proto.common import dates_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_dates__pb2 +from google.ads.google_ads.v4.proto.enums import invoice_type_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_invoice__type__pb2 +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 +from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/resources/invoice.proto', + package='google.ads.googleads.v4.resources', + syntax='proto3', + serialized_options=_b('\n%com.google.ads.googleads.v4.resourcesB\014InvoiceProtoP\001ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v4/resources;resources\242\002\003GAA\252\002!Google.Ads.GoogleAds.V4.Resources\312\002!Google\\Ads\\GoogleAds\\V4\\Resources\352\002%Google::Ads::GoogleAds::V4::Resources'), + serialized_pb=_b('\n5google/ads/googleads_v4/proto/resources/invoice.proto\x12!google.ads.googleads.v4.resources\x1a\x30google/ads/googleads_v4/proto/common/dates.proto\x1a\x36google/ads/googleads_v4/proto/enums/invoice_type.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1cgoogle/api/annotations.proto\"\xcb\x0e\n\x07Invoice\x12?\n\rresource_name\x18\x01 \x01(\tB(\xe0\x41\x03\xfa\x41\"\n googleads.googleapis.com/Invoice\x12-\n\x02id\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValueB\x03\xe0\x41\x03\x12M\n\x04type\x18\x03 \x01(\x0e\x32:.google.ads.googleads.v4.enums.InvoiceTypeEnum.InvoiceTypeB\x03\xe0\x41\x03\x12\x38\n\rbilling_setup\x18\x04 \x01(\x0b\x32\x1c.google.protobuf.StringValueB\x03\xe0\x41\x03\x12>\n\x13payments_account_id\x18\x05 \x01(\x0b\x32\x1c.google.protobuf.StringValueB\x03\xe0\x41\x03\x12>\n\x13payments_profile_id\x18\x06 \x01(\x0b\x32\x1c.google.protobuf.StringValueB\x03\xe0\x41\x03\x12\x35\n\nissue_date\x18\x07 \x01(\x0b\x32\x1c.google.protobuf.StringValueB\x03\xe0\x41\x03\x12\x33\n\x08\x64ue_date\x18\x08 \x01(\x0b\x32\x1c.google.protobuf.StringValueB\x03\xe0\x41\x03\x12J\n\x12service_date_range\x18\t \x01(\x0b\x32).google.ads.googleads.v4.common.DateRangeB\x03\xe0\x41\x03\x12\x38\n\rcurrency_code\x18\n \x01(\x0b\x32\x1c.google.protobuf.StringValueB\x03\xe0\x41\x03\x12J\n invoice_level_adjustments_micros\x18\x0b \x01(\x0b\x32\x1b.google.protobuf.Int64ValueB\x03\xe0\x41\x03\x12@\n\x16subtotal_amount_micros\x18\x0c \x01(\x0b\x32\x1b.google.protobuf.Int64ValueB\x03\xe0\x41\x03\x12;\n\x11tax_amount_micros\x18\r \x01(\x0b\x32\x1b.google.protobuf.Int64ValueB\x03\xe0\x41\x03\x12=\n\x13total_amount_micros\x18\x0e \x01(\x0b\x32\x1b.google.protobuf.Int64ValueB\x03\xe0\x41\x03\x12<\n\x11\x63orrected_invoice\x18\x0f \x01(\x0b\x32\x1c.google.protobuf.StringValueB\x03\xe0\x41\x03\x12<\n\x11replaced_invoices\x18\x10 \x03(\x0b\x32\x1c.google.protobuf.StringValueB\x03\xe0\x41\x03\x12\x32\n\x07pdf_url\x18\x11 \x01(\x0b\x32\x1c.google.protobuf.StringValueB\x03\xe0\x41\x03\x12\x66\n\x18\x61\x63\x63ount_budget_summaries\x18\x12 \x03(\x0b\x32?.google.ads.googleads.v4.resources.Invoice.AccountBudgetSummaryB\x03\xe0\x41\x03\x1a\xe2\x04\n\x14\x41\x63\x63ountBudgetSummary\x12\x33\n\x08\x63ustomer\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValueB\x03\xe0\x41\x03\x12\x44\n\x19\x63ustomer_descriptive_name\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValueB\x03\xe0\x41\x03\x12\x39\n\x0e\x61\x63\x63ount_budget\x18\x03 \x01(\x0b\x32\x1c.google.protobuf.StringValueB\x03\xe0\x41\x03\x12>\n\x13\x61\x63\x63ount_budget_name\x18\x04 \x01(\x0b\x32\x1c.google.protobuf.StringValueB\x03\xe0\x41\x03\x12@\n\x15purchase_order_number\x18\x05 \x01(\x0b\x32\x1c.google.protobuf.StringValueB\x03\xe0\x41\x03\x12@\n\x16subtotal_amount_micros\x18\x06 \x01(\x0b\x32\x1b.google.protobuf.Int64ValueB\x03\xe0\x41\x03\x12;\n\x11tax_amount_micros\x18\x07 \x01(\x0b\x32\x1b.google.protobuf.Int64ValueB\x03\xe0\x41\x03\x12=\n\x13total_amount_micros\x18\x08 \x01(\x0b\x32\x1b.google.protobuf.Int64ValueB\x03\xe0\x41\x03\x12T\n\x1c\x62illable_activity_date_range\x18\t \x01(\x0b\x32).google.ads.googleads.v4.common.DateRangeB\x03\xe0\x41\x03:N\xea\x41K\n googleads.googleapis.com/Invoice\x12\'customers/{customer}/invoices/{invoice}B\xf9\x01\n%com.google.ads.googleads.v4.resourcesB\x0cInvoiceProtoP\x01ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v4/resources;resources\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V4.Resources\xca\x02!Google\\Ads\\GoogleAds\\V4\\Resources\xea\x02%Google::Ads::GoogleAds::V4::Resourcesb\x06proto3') + , + dependencies=[google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_dates__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_invoice__type__pb2.DESCRIPTOR,google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_api_dot_resource__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + + +_INVOICE_ACCOUNTBUDGETSUMMARY = _descriptor.Descriptor( + name='AccountBudgetSummary', + full_name='google.ads.googleads.v4.resources.Invoice.AccountBudgetSummary', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='customer', full_name='google.ads.googleads.v4.resources.Invoice.AccountBudgetSummary.customer', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='customer_descriptive_name', full_name='google.ads.googleads.v4.resources.Invoice.AccountBudgetSummary.customer_descriptive_name', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='account_budget', full_name='google.ads.googleads.v4.resources.Invoice.AccountBudgetSummary.account_budget', index=2, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='account_budget_name', full_name='google.ads.googleads.v4.resources.Invoice.AccountBudgetSummary.account_budget_name', index=3, + number=4, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='purchase_order_number', full_name='google.ads.googleads.v4.resources.Invoice.AccountBudgetSummary.purchase_order_number', index=4, + number=5, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='subtotal_amount_micros', full_name='google.ads.googleads.v4.resources.Invoice.AccountBudgetSummary.subtotal_amount_micros', index=5, + number=6, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='tax_amount_micros', full_name='google.ads.googleads.v4.resources.Invoice.AccountBudgetSummary.tax_amount_micros', index=6, + number=7, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='total_amount_micros', full_name='google.ads.googleads.v4.resources.Invoice.AccountBudgetSummary.total_amount_micros', index=7, + number=8, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='billable_activity_date_range', full_name='google.ads.googleads.v4.resources.Invoice.AccountBudgetSummary.billable_activity_date_range', index=8, + number=9, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1498, + serialized_end=2108, +) + +_INVOICE = _descriptor.Descriptor( + name='Invoice', + full_name='google.ads.googleads.v4.resources.Invoice', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.resources.Invoice.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003\372A\"\n googleads.googleapis.com/Invoice'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='id', full_name='google.ads.googleads.v4.resources.Invoice.id', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='type', full_name='google.ads.googleads.v4.resources.Invoice.type', index=2, + number=3, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='billing_setup', full_name='google.ads.googleads.v4.resources.Invoice.billing_setup', index=3, + number=4, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='payments_account_id', full_name='google.ads.googleads.v4.resources.Invoice.payments_account_id', index=4, + number=5, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='payments_profile_id', full_name='google.ads.googleads.v4.resources.Invoice.payments_profile_id', index=5, + number=6, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='issue_date', full_name='google.ads.googleads.v4.resources.Invoice.issue_date', index=6, + number=7, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='due_date', full_name='google.ads.googleads.v4.resources.Invoice.due_date', index=7, + number=8, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='service_date_range', full_name='google.ads.googleads.v4.resources.Invoice.service_date_range', index=8, + number=9, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='currency_code', full_name='google.ads.googleads.v4.resources.Invoice.currency_code', index=9, + number=10, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='invoice_level_adjustments_micros', full_name='google.ads.googleads.v4.resources.Invoice.invoice_level_adjustments_micros', index=10, + number=11, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='subtotal_amount_micros', full_name='google.ads.googleads.v4.resources.Invoice.subtotal_amount_micros', index=11, + number=12, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='tax_amount_micros', full_name='google.ads.googleads.v4.resources.Invoice.tax_amount_micros', index=12, + number=13, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='total_amount_micros', full_name='google.ads.googleads.v4.resources.Invoice.total_amount_micros', index=13, + number=14, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='corrected_invoice', full_name='google.ads.googleads.v4.resources.Invoice.corrected_invoice', index=14, + number=15, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='replaced_invoices', full_name='google.ads.googleads.v4.resources.Invoice.replaced_invoices', index=15, + number=16, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='pdf_url', full_name='google.ads.googleads.v4.resources.Invoice.pdf_url', index=16, + number=17, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='account_budget_summaries', full_name='google.ads.googleads.v4.resources.Invoice.account_budget_summaries', index=17, + number=18, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[_INVOICE_ACCOUNTBUDGETSUMMARY, ], + enum_types=[ + ], + serialized_options=_b('\352AK\n googleads.googleapis.com/Invoice\022\'customers/{customer}/invoices/{invoice}'), + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=321, + serialized_end=2188, +) + +_INVOICE_ACCOUNTBUDGETSUMMARY.fields_by_name['customer'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_INVOICE_ACCOUNTBUDGETSUMMARY.fields_by_name['customer_descriptive_name'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_INVOICE_ACCOUNTBUDGETSUMMARY.fields_by_name['account_budget'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_INVOICE_ACCOUNTBUDGETSUMMARY.fields_by_name['account_budget_name'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_INVOICE_ACCOUNTBUDGETSUMMARY.fields_by_name['purchase_order_number'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_INVOICE_ACCOUNTBUDGETSUMMARY.fields_by_name['subtotal_amount_micros'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_INVOICE_ACCOUNTBUDGETSUMMARY.fields_by_name['tax_amount_micros'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_INVOICE_ACCOUNTBUDGETSUMMARY.fields_by_name['total_amount_micros'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_INVOICE_ACCOUNTBUDGETSUMMARY.fields_by_name['billable_activity_date_range'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_dates__pb2._DATERANGE +_INVOICE_ACCOUNTBUDGETSUMMARY.containing_type = _INVOICE +_INVOICE.fields_by_name['id'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_INVOICE.fields_by_name['type'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_invoice__type__pb2._INVOICETYPEENUM_INVOICETYPE +_INVOICE.fields_by_name['billing_setup'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_INVOICE.fields_by_name['payments_account_id'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_INVOICE.fields_by_name['payments_profile_id'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_INVOICE.fields_by_name['issue_date'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_INVOICE.fields_by_name['due_date'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_INVOICE.fields_by_name['service_date_range'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_dates__pb2._DATERANGE +_INVOICE.fields_by_name['currency_code'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_INVOICE.fields_by_name['invoice_level_adjustments_micros'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_INVOICE.fields_by_name['subtotal_amount_micros'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_INVOICE.fields_by_name['tax_amount_micros'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_INVOICE.fields_by_name['total_amount_micros'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_INVOICE.fields_by_name['corrected_invoice'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_INVOICE.fields_by_name['replaced_invoices'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_INVOICE.fields_by_name['pdf_url'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_INVOICE.fields_by_name['account_budget_summaries'].message_type = _INVOICE_ACCOUNTBUDGETSUMMARY +DESCRIPTOR.message_types_by_name['Invoice'] = _INVOICE +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +Invoice = _reflection.GeneratedProtocolMessageType('Invoice', (_message.Message,), dict( + + AccountBudgetSummary = _reflection.GeneratedProtocolMessageType('AccountBudgetSummary', (_message.Message,), dict( + DESCRIPTOR = _INVOICE_ACCOUNTBUDGETSUMMARY, + __module__ = 'google.ads.googleads_v4.proto.resources.invoice_pb2' + , + __doc__ = """Represents a summarized account budget billable cost. + + + Attributes: + customer: + Output only. The resource name of the customer associated with + this account budget. This contains the customer ID, which + appears on the invoice PDF as "Account ID". Customer resource + names have the form: ``customers/{customer_id}`` + customer_descriptive_name: + Output only. The descriptive name of the account budget’s + customer. It appears on the invoice PDF as "Account". + account_budget: + Output only. The resource name of the account budget + associated with this summarized billable cost. AccountBudget + resource names have the form: + ``customers/{customer_id}/accountBudgets/{account_budget_id}`` + account_budget_name: + Output only. The name of the account budget. It appears on the + invoice PDF as "Account budget". + purchase_order_number: + Output only. The purchase order number of the account budget. + It appears on the invoice PDF as "Purchase order". + subtotal_amount_micros: + Output only. The pretax subtotal amount attributable to this + budget during the service period, in micros. + tax_amount_micros: + Output only. The tax amount attributable to this budget during + the service period, in micros. + total_amount_micros: + Output only. The total amount attributable to this budget + during the service period, in micros. This equals the sum of + the account budget subtotal amount and the account budget tax + amount. + billable_activity_date_range: + Output only. The billable activity date range of the account + budget, within the service date range of this invoice. The end + date is inclusive. This can be different from the account + budget's start and end time. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.resources.Invoice.AccountBudgetSummary) + )) + , + DESCRIPTOR = _INVOICE, + __module__ = 'google.ads.googleads_v4.proto.resources.invoice_pb2' + , + __doc__ = """An invoice. All invoice information is snapshotted to match the PDF + invoice. For invoices older than the launch of InvoiceService, the + snapshotted information may not match the PDF invoice. + + + Attributes: + resource_name: + Output only. The resource name of the invoice. Multiple + customers can share a given invoice, so multiple resource + names may point to the same invoice. Invoice resource names + have the form: + ``customers/{customer_id}/invoices/{invoice_id}`` + id: + Output only. The ID of the invoice. It appears on the invoice + PDF as "Invoice number". + type: + Output only. The type of invoice. + billing_setup: + Output only. The resource name of this invoice’s billing + setup. + ``customers/{customer_id}/billingSetups/{billing_setup_id}`` + payments_account_id: + Output only. A 16 digit ID used to identify the payments + account associated with the billing setup, e.g. + "1234-5678-9012-3456". It appears on the invoice PDF as + "Billing Account Number". + payments_profile_id: + Output only. A 12 digit ID used to identify the payments + profile associated with the billing setup, e.g. + "1234-5678-9012". It appears on the invoice PDF as "Billing + ID". + issue_date: + Output only. The issue date in yyyy-mm-dd format. It appears + on the invoice PDF as either "Issue date" or "Invoice date". + due_date: + Output only. The due date in yyyy-mm-dd format. + service_date_range: + Output only. The service period date range of this invoice. + The end date is inclusive. + currency_code: + Output only. The currency code. All costs are returned in this + currency. A subset of the currency codes derived from the ISO + 4217 standard is supported. + invoice_level_adjustments_micros: + Output only. The total amount of invoice level adjustments. + These adjustments are made on the invoice, not on a specific + account budget. + subtotal_amount_micros: + Output only. The pretax subtotal amount, in micros. This + equals the sum of the AccountBudgetSummary subtotal amounts, + plus the invoice level adjustments. + tax_amount_micros: + Output only. The sum of all taxes on the invoice, in micros. + This equals the sum of the AccountBudgetSummary tax amounts, + plus taxes not associated with a specific account budget. + total_amount_micros: + Output only. The total amount, in micros. This equals the sum + of the invoice subtotal amount and the invoice tax amount. + corrected_invoice: + Output only. The resource name of the original invoice + corrected, wrote off, or canceled by this invoice, if + applicable. If ``corrected_invoice`` is set, + ``replaced_invoices`` will not be set. Invoice resource names + have the form: + ``customers/{customer_id}/invoices/{invoice_id}`` + replaced_invoices: + Output only. The resource name of the original invoice(s) + being rebilled or replaced by this invoice, if applicable. + There might be multiple replaced invoices due to invoice + consolidation. The replaced invoices may not belong to the + same payments account. If ``replaced_invoices`` is set, + ``corrected_invoice`` will not be set. Invoice resource names + have the form: + ``customers/{customer_id}/invoices/{invoice_id}`` + pdf_url: + Output only. The URL to a PDF copy of the invoice. Users need + to pass in their OAuth token to request the PDF with this URL. + account_budget_summaries: + Output only. The list of summarized account budget information + associated with this invoice. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.resources.Invoice) + )) +_sym_db.RegisterMessage(Invoice) +_sym_db.RegisterMessage(Invoice.AccountBudgetSummary) + + +DESCRIPTOR._options = None +_INVOICE_ACCOUNTBUDGETSUMMARY.fields_by_name['customer']._options = None +_INVOICE_ACCOUNTBUDGETSUMMARY.fields_by_name['customer_descriptive_name']._options = None +_INVOICE_ACCOUNTBUDGETSUMMARY.fields_by_name['account_budget']._options = None +_INVOICE_ACCOUNTBUDGETSUMMARY.fields_by_name['account_budget_name']._options = None +_INVOICE_ACCOUNTBUDGETSUMMARY.fields_by_name['purchase_order_number']._options = None +_INVOICE_ACCOUNTBUDGETSUMMARY.fields_by_name['subtotal_amount_micros']._options = None +_INVOICE_ACCOUNTBUDGETSUMMARY.fields_by_name['tax_amount_micros']._options = None +_INVOICE_ACCOUNTBUDGETSUMMARY.fields_by_name['total_amount_micros']._options = None +_INVOICE_ACCOUNTBUDGETSUMMARY.fields_by_name['billable_activity_date_range']._options = None +_INVOICE.fields_by_name['resource_name']._options = None +_INVOICE.fields_by_name['id']._options = None +_INVOICE.fields_by_name['type']._options = None +_INVOICE.fields_by_name['billing_setup']._options = None +_INVOICE.fields_by_name['payments_account_id']._options = None +_INVOICE.fields_by_name['payments_profile_id']._options = None +_INVOICE.fields_by_name['issue_date']._options = None +_INVOICE.fields_by_name['due_date']._options = None +_INVOICE.fields_by_name['service_date_range']._options = None +_INVOICE.fields_by_name['currency_code']._options = None +_INVOICE.fields_by_name['invoice_level_adjustments_micros']._options = None +_INVOICE.fields_by_name['subtotal_amount_micros']._options = None +_INVOICE.fields_by_name['tax_amount_micros']._options = None +_INVOICE.fields_by_name['total_amount_micros']._options = None +_INVOICE.fields_by_name['corrected_invoice']._options = None +_INVOICE.fields_by_name['replaced_invoices']._options = None +_INVOICE.fields_by_name['pdf_url']._options = None +_INVOICE.fields_by_name['account_budget_summaries']._options = None +_INVOICE._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v4/proto/resources/invoice_pb2_grpc.py b/google/ads/google_ads/v4/proto/resources/invoice_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v4/proto/resources/invoice_pb2_grpc.py @@ -0,0 +1,3 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +import grpc + diff --git a/google/ads/google_ads/v4/proto/resources/keyword_plan_ad_group_keyword_pb2.py b/google/ads/google_ads/v4/proto/resources/keyword_plan_ad_group_keyword_pb2.py new file mode 100644 index 000000000..f01c0e1e0 --- /dev/null +++ b/google/ads/google_ads/v4/proto/resources/keyword_plan_ad_group_keyword_pb2.py @@ -0,0 +1,158 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/resources/keyword_plan_ad_group_keyword.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.ads.google_ads.v4.proto.enums import keyword_match_type_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_keyword__match__type__pb2 +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 +from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/resources/keyword_plan_ad_group_keyword.proto', + package='google.ads.googleads.v4.resources', + syntax='proto3', + serialized_options=_b('\n%com.google.ads.googleads.v4.resourcesB\036KeywordPlanAdGroupKeywordProtoP\001ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v4/resources;resources\242\002\003GAA\252\002!Google.Ads.GoogleAds.V4.Resources\312\002!Google\\Ads\\GoogleAds\\V4\\Resources\352\002%Google::Ads::GoogleAds::V4::Resources'), + serialized_pb=_b('\nKgoogle/ads/googleads_v4/proto/resources/keyword_plan_ad_group_keyword.proto\x12!google.ads.googleads.v4.resources\x1agoogle/ads/googleads_v4/proto/enums/keyword_plan_network.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1cgoogle/api/annotations.proto\"\xe6\x05\n\x13KeywordPlanCampaign\x12K\n\rresource_name\x18\x01 \x01(\tB4\xe0\x41\x05\xfa\x41.\n,googleads.googleapis.com/KeywordPlanCampaign\x12]\n\x0ckeyword_plan\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValueB)\xfa\x41&\n$googleads.googleapis.com/KeywordPlan\x12,\n\x02id\x18\x03 \x01(\x0b\x32\x1b.google.protobuf.Int64ValueB\x03\xe0\x41\x03\x12*\n\x04name\x18\x04 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12h\n\x12language_constants\x18\x05 \x03(\x0b\x32\x1c.google.protobuf.StringValueB.\xfa\x41+\n)googleads.googleapis.com/LanguageConstant\x12\x66\n\x14keyword_plan_network\x18\x06 \x01(\x0e\x32H.google.ads.googleads.v4.enums.KeywordPlanNetworkEnum.KeywordPlanNetwork\x12\x33\n\x0e\x63pc_bid_micros\x18\x07 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12L\n\x0bgeo_targets\x18\x08 \x03(\x0b\x32\x37.google.ads.googleads.v4.resources.KeywordPlanGeoTarget:t\xea\x41q\n,googleads.googleapis.com/KeywordPlanCampaign\x12\x41\x63ustomers/{customer}/keywordPlanCampaigns/{keyword_plan_campaign}\"\x82\x01\n\x14KeywordPlanGeoTarget\x12j\n\x13geo_target_constant\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValueB/\xfa\x41,\n*googleads.googleapis.com/GeoTargetConstantB\x85\x02\n%com.google.ads.googleads.v4.resourcesB\x18KeywordPlanCampaignProtoP\x01ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v4/resources;resources\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V4.Resources\xca\x02!Google\\Ads\\GoogleAds\\V4\\Resources\xea\x02%Google::Ads::GoogleAds::V4::Resourcesb\x06proto3') + , + dependencies=[google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_keyword__plan__network__pb2.DESCRIPTOR,google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_api_dot_resource__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + + +_KEYWORDPLANCAMPAIGN = _descriptor.Descriptor( + name='KeywordPlanCampaign', + full_name='google.ads.googleads.v4.resources.KeywordPlanCampaign', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.resources.KeywordPlanCampaign.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005\372A.\n,googleads.googleapis.com/KeywordPlanCampaign'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='keyword_plan', full_name='google.ads.googleads.v4.resources.KeywordPlanCampaign.keyword_plan', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\372A&\n$googleads.googleapis.com/KeywordPlan'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='id', full_name='google.ads.googleads.v4.resources.KeywordPlanCampaign.id', index=2, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='name', full_name='google.ads.googleads.v4.resources.KeywordPlanCampaign.name', index=3, + number=4, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='language_constants', full_name='google.ads.googleads.v4.resources.KeywordPlanCampaign.language_constants', index=4, + number=5, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\372A+\n)googleads.googleapis.com/LanguageConstant'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='keyword_plan_network', full_name='google.ads.googleads.v4.resources.KeywordPlanCampaign.keyword_plan_network', index=5, + number=6, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='cpc_bid_micros', full_name='google.ads.googleads.v4.resources.KeywordPlanCampaign.cpc_bid_micros', index=6, + number=7, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='geo_targets', full_name='google.ads.googleads.v4.resources.KeywordPlanCampaign.geo_targets', index=7, + number=8, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=_b('\352Aq\n,googleads.googleapis.com/KeywordPlanCampaign\022Acustomers/{customer}/keywordPlanCampaigns/{keyword_plan_campaign}'), + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=293, + serialized_end=1035, +) + + +_KEYWORDPLANGEOTARGET = _descriptor.Descriptor( + name='KeywordPlanGeoTarget', + full_name='google.ads.googleads.v4.resources.KeywordPlanGeoTarget', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='geo_target_constant', full_name='google.ads.googleads.v4.resources.KeywordPlanGeoTarget.geo_target_constant', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\372A,\n*googleads.googleapis.com/GeoTargetConstant'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1038, + serialized_end=1168, +) + +_KEYWORDPLANCAMPAIGN.fields_by_name['keyword_plan'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_KEYWORDPLANCAMPAIGN.fields_by_name['id'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_KEYWORDPLANCAMPAIGN.fields_by_name['name'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_KEYWORDPLANCAMPAIGN.fields_by_name['language_constants'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_KEYWORDPLANCAMPAIGN.fields_by_name['keyword_plan_network'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_keyword__plan__network__pb2._KEYWORDPLANNETWORKENUM_KEYWORDPLANNETWORK +_KEYWORDPLANCAMPAIGN.fields_by_name['cpc_bid_micros'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_KEYWORDPLANCAMPAIGN.fields_by_name['geo_targets'].message_type = _KEYWORDPLANGEOTARGET +_KEYWORDPLANGEOTARGET.fields_by_name['geo_target_constant'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +DESCRIPTOR.message_types_by_name['KeywordPlanCampaign'] = _KEYWORDPLANCAMPAIGN +DESCRIPTOR.message_types_by_name['KeywordPlanGeoTarget'] = _KEYWORDPLANGEOTARGET +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +KeywordPlanCampaign = _reflection.GeneratedProtocolMessageType('KeywordPlanCampaign', (_message.Message,), dict( + DESCRIPTOR = _KEYWORDPLANCAMPAIGN, + __module__ = 'google.ads.googleads_v4.proto.resources.keyword_plan_campaign_pb2' + , + __doc__ = """A Keyword Plan campaign. Max number of keyword plan campaigns per plan + allowed: 1. + + + Attributes: + resource_name: + Immutable. The resource name of the Keyword Plan campaign. + KeywordPlanCampaign resource names have the form: ``customers + /{customer_id}/keywordPlanCampaigns/{kp_campaign_id}`` + keyword_plan: + The keyword plan this campaign belongs to. + id: + Output only. The ID of the Keyword Plan campaign. + name: + The name of the Keyword Plan campaign. This field is required + and should not be empty when creating Keyword Plan campaigns. + language_constants: + The languages targeted for the Keyword Plan campaign. Max + allowed: 1. + keyword_plan_network: + Targeting network. This field is required and should not be + empty when creating Keyword Plan campaigns. + cpc_bid_micros: + A default max cpc bid in micros, and in the account currency, + for all ad groups under the campaign. This field is required + and should not be empty when creating Keyword Plan campaigns. + geo_targets: + The geo targets. Max number allowed: 20. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.resources.KeywordPlanCampaign) + )) +_sym_db.RegisterMessage(KeywordPlanCampaign) + +KeywordPlanGeoTarget = _reflection.GeneratedProtocolMessageType('KeywordPlanGeoTarget', (_message.Message,), dict( + DESCRIPTOR = _KEYWORDPLANGEOTARGET, + __module__ = 'google.ads.googleads_v4.proto.resources.keyword_plan_campaign_pb2' + , + __doc__ = """A geo target. + + + Attributes: + geo_target_constant: + Required. The resource name of the geo target. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.resources.KeywordPlanGeoTarget) + )) +_sym_db.RegisterMessage(KeywordPlanGeoTarget) + + +DESCRIPTOR._options = None +_KEYWORDPLANCAMPAIGN.fields_by_name['resource_name']._options = None +_KEYWORDPLANCAMPAIGN.fields_by_name['keyword_plan']._options = None +_KEYWORDPLANCAMPAIGN.fields_by_name['id']._options = None +_KEYWORDPLANCAMPAIGN.fields_by_name['language_constants']._options = None +_KEYWORDPLANCAMPAIGN._options = None +_KEYWORDPLANGEOTARGET.fields_by_name['geo_target_constant']._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v4/proto/resources/keyword_plan_campaign_pb2_grpc.py b/google/ads/google_ads/v4/proto/resources/keyword_plan_campaign_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v4/proto/resources/keyword_plan_campaign_pb2_grpc.py @@ -0,0 +1,3 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +import grpc + diff --git a/google/ads/google_ads/v4/proto/resources/keyword_plan_pb2.py b/google/ads/google_ads/v4/proto/resources/keyword_plan_pb2.py new file mode 100644 index 000000000..a5519c63d --- /dev/null +++ b/google/ads/google_ads/v4/proto/resources/keyword_plan_pb2.py @@ -0,0 +1,196 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/resources/keyword_plan.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.ads.google_ads.v4.proto.common import dates_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_dates__pb2 +from google.ads.google_ads.v4.proto.enums import keyword_plan_forecast_interval_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_keyword__plan__forecast__interval__pb2 +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 +from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/resources/keyword_plan.proto', + package='google.ads.googleads.v4.resources', + syntax='proto3', + serialized_options=_b('\n%com.google.ads.googleads.v4.resourcesB\020KeywordPlanProtoP\001ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v4/resources;resources\242\002\003GAA\252\002!Google.Ads.GoogleAds.V4.Resources\312\002!Google\\Ads\\GoogleAds\\V4\\Resources\352\002%Google::Ads::GoogleAds::V4::Resources'), + serialized_pb=_b('\n:google/ads/googleads_v4/proto/resources/keyword_plan.proto\x12!google.ads.googleads.v4.resources\x1a\x30google/ads/googleads_v4/proto/common/dates.proto\x1aHgoogle/ads/googleads_v4/proto/enums/keyword_plan_forecast_interval.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1cgoogle/api/annotations.proto\"\xe0\x02\n\x0bKeywordPlan\x12\x43\n\rresource_name\x18\x01 \x01(\tB,\xe0\x41\x05\xfa\x41&\n$googleads.googleapis.com/KeywordPlan\x12,\n\x02id\x18\x02 \x01(\x0b\x32\x1b.google.protobuf.Int64ValueB\x03\xe0\x41\x03\x12*\n\x04name\x18\x03 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12U\n\x0f\x66orecast_period\x18\x04 \x01(\x0b\x32<.google.ads.googleads.v4.resources.KeywordPlanForecastPeriod:[\xea\x41X\n$googleads.googleapis.com/KeywordPlan\x12\x30\x63ustomers/{customer}/keywordPlans/{keyword_plan}\"\xdd\x01\n\x19KeywordPlanForecastPeriod\x12s\n\rdate_interval\x18\x01 \x01(\x0e\x32Z.google.ads.googleads.v4.enums.KeywordPlanForecastIntervalEnum.KeywordPlanForecastIntervalH\x00\x12?\n\ndate_range\x18\x02 \x01(\x0b\x32).google.ads.googleads.v4.common.DateRangeH\x00\x42\n\n\x08intervalB\xfd\x01\n%com.google.ads.googleads.v4.resourcesB\x10KeywordPlanProtoP\x01ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v4/resources;resources\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V4.Resources\xca\x02!Google\\Ads\\GoogleAds\\V4\\Resources\xea\x02%Google::Ads::GoogleAds::V4::Resourcesb\x06proto3') + , + dependencies=[google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_dates__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_keyword__plan__forecast__interval__pb2.DESCRIPTOR,google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_api_dot_resource__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + + +_KEYWORDPLAN = _descriptor.Descriptor( + name='KeywordPlan', + full_name='google.ads.googleads.v4.resources.KeywordPlan', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.resources.KeywordPlan.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005\372A&\n$googleads.googleapis.com/KeywordPlan'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='id', full_name='google.ads.googleads.v4.resources.KeywordPlan.id', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='name', full_name='google.ads.googleads.v4.resources.KeywordPlan.name', index=2, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='forecast_period', full_name='google.ads.googleads.v4.resources.KeywordPlan.forecast_period', index=3, + number=4, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=_b('\352AX\n$googleads.googleapis.com/KeywordPlan\0220customers/{customer}/keywordPlans/{keyword_plan}'), + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=344, + serialized_end=696, +) + + +_KEYWORDPLANFORECASTPERIOD = _descriptor.Descriptor( + name='KeywordPlanForecastPeriod', + full_name='google.ads.googleads.v4.resources.KeywordPlanForecastPeriod', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='date_interval', full_name='google.ads.googleads.v4.resources.KeywordPlanForecastPeriod.date_interval', index=0, + number=1, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='date_range', full_name='google.ads.googleads.v4.resources.KeywordPlanForecastPeriod.date_range', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name='interval', full_name='google.ads.googleads.v4.resources.KeywordPlanForecastPeriod.interval', + index=0, containing_type=None, fields=[]), + ], + serialized_start=699, + serialized_end=920, +) + +_KEYWORDPLAN.fields_by_name['id'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_KEYWORDPLAN.fields_by_name['name'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_KEYWORDPLAN.fields_by_name['forecast_period'].message_type = _KEYWORDPLANFORECASTPERIOD +_KEYWORDPLANFORECASTPERIOD.fields_by_name['date_interval'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_keyword__plan__forecast__interval__pb2._KEYWORDPLANFORECASTINTERVALENUM_KEYWORDPLANFORECASTINTERVAL +_KEYWORDPLANFORECASTPERIOD.fields_by_name['date_range'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_dates__pb2._DATERANGE +_KEYWORDPLANFORECASTPERIOD.oneofs_by_name['interval'].fields.append( + _KEYWORDPLANFORECASTPERIOD.fields_by_name['date_interval']) +_KEYWORDPLANFORECASTPERIOD.fields_by_name['date_interval'].containing_oneof = _KEYWORDPLANFORECASTPERIOD.oneofs_by_name['interval'] +_KEYWORDPLANFORECASTPERIOD.oneofs_by_name['interval'].fields.append( + _KEYWORDPLANFORECASTPERIOD.fields_by_name['date_range']) +_KEYWORDPLANFORECASTPERIOD.fields_by_name['date_range'].containing_oneof = _KEYWORDPLANFORECASTPERIOD.oneofs_by_name['interval'] +DESCRIPTOR.message_types_by_name['KeywordPlan'] = _KEYWORDPLAN +DESCRIPTOR.message_types_by_name['KeywordPlanForecastPeriod'] = _KEYWORDPLANFORECASTPERIOD +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +KeywordPlan = _reflection.GeneratedProtocolMessageType('KeywordPlan', (_message.Message,), dict( + DESCRIPTOR = _KEYWORDPLAN, + __module__ = 'google.ads.googleads_v4.proto.resources.keyword_plan_pb2' + , + __doc__ = """A Keyword Planner plan. Max number of saved keyword plans: 10000. It's + possible to remove plans if limit is reached. + + + Attributes: + resource_name: + Immutable. The resource name of the Keyword Planner plan. + KeywordPlan resource names have the form: + ``customers/{customer_id}/keywordPlans/{kp_plan_id}`` + id: + Output only. The ID of the keyword plan. + name: + The name of the keyword plan. This field is required and + should not be empty when creating new keyword plans. + forecast_period: + The date period used for forecasting the plan. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.resources.KeywordPlan) + )) +_sym_db.RegisterMessage(KeywordPlan) + +KeywordPlanForecastPeriod = _reflection.GeneratedProtocolMessageType('KeywordPlanForecastPeriod', (_message.Message,), dict( + DESCRIPTOR = _KEYWORDPLANFORECASTPERIOD, + __module__ = 'google.ads.googleads_v4.proto.resources.keyword_plan_pb2' + , + __doc__ = """The forecasting period associated with the keyword plan. + + + Attributes: + interval: + Required. The date used for forecasting the Plan. + date_interval: + A future date range relative to the current date used for + forecasting. + date_range: + The custom date range used for forecasting. The start and end + dates must be in the future. Otherwise, an error will be + returned when the forecasting action is performed. The start + and end dates are inclusive. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.resources.KeywordPlanForecastPeriod) + )) +_sym_db.RegisterMessage(KeywordPlanForecastPeriod) + + +DESCRIPTOR._options = None +_KEYWORDPLAN.fields_by_name['resource_name']._options = None +_KEYWORDPLAN.fields_by_name['id']._options = None +_KEYWORDPLAN._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v4/proto/resources/keyword_plan_pb2_grpc.py b/google/ads/google_ads/v4/proto/resources/keyword_plan_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v4/proto/resources/keyword_plan_pb2_grpc.py @@ -0,0 +1,3 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +import grpc + diff --git a/google/ads/google_ads/v4/proto/resources/keyword_view_pb2.py b/google/ads/google_ads/v4/proto/resources/keyword_view_pb2.py new file mode 100644 index 000000000..4758b7c59 --- /dev/null +++ b/google/ads/google_ads/v4/proto/resources/keyword_view_pb2.py @@ -0,0 +1,87 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/resources/keyword_view.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/resources/keyword_view.proto', + package='google.ads.googleads.v4.resources', + syntax='proto3', + serialized_options=_b('\n%com.google.ads.googleads.v4.resourcesB\020KeywordViewProtoP\001ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v4/resources;resources\242\002\003GAA\252\002!Google.Ads.GoogleAds.V4.Resources\312\002!Google\\Ads\\GoogleAds\\V4\\Resources\352\002%Google::Ads::GoogleAds::V4::Resources'), + serialized_pb=_b('\n:google/ads/googleads_v4/proto/resources/keyword_view.proto\x12!google.ads.googleads.v4.resources\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1cgoogle/api/annotations.proto\"\xaf\x01\n\x0bKeywordView\x12\x43\n\rresource_name\x18\x01 \x01(\tB,\xe0\x41\x03\xfa\x41&\n$googleads.googleapis.com/KeywordView:[\xea\x41X\n$googleads.googleapis.com/KeywordView\x12\x30\x63ustomers/{customer}/keywordViews/{keyword_view}B\xfd\x01\n%com.google.ads.googleads.v4.resourcesB\x10KeywordViewProtoP\x01ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v4/resources;resources\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V4.Resources\xca\x02!Google\\Ads\\GoogleAds\\V4\\Resources\xea\x02%Google::Ads::GoogleAds::V4::Resourcesb\x06proto3') + , + dependencies=[google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_api_dot_resource__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + + +_KEYWORDVIEW = _descriptor.Descriptor( + name='KeywordView', + full_name='google.ads.googleads.v4.resources.KeywordView', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.resources.KeywordView.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003\372A&\n$googleads.googleapis.com/KeywordView'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=_b('\352AX\n$googleads.googleapis.com/KeywordView\0220customers/{customer}/keywordViews/{keyword_view}'), + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=188, + serialized_end=363, +) + +DESCRIPTOR.message_types_by_name['KeywordView'] = _KEYWORDVIEW +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +KeywordView = _reflection.GeneratedProtocolMessageType('KeywordView', (_message.Message,), dict( + DESCRIPTOR = _KEYWORDVIEW, + __module__ = 'google.ads.googleads_v4.proto.resources.keyword_view_pb2' + , + __doc__ = """A keyword view. + + + Attributes: + resource_name: + Output only. The resource name of the keyword view. Keyword + view resource names have the form: ``customers/{customer_id}/ + keywordViews/{ad_group_id}~{criterion_id}`` + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.resources.KeywordView) + )) +_sym_db.RegisterMessage(KeywordView) + + +DESCRIPTOR._options = None +_KEYWORDVIEW.fields_by_name['resource_name']._options = None +_KEYWORDVIEW._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v4/proto/resources/keyword_view_pb2_grpc.py b/google/ads/google_ads/v4/proto/resources/keyword_view_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v4/proto/resources/keyword_view_pb2_grpc.py @@ -0,0 +1,3 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +import grpc + diff --git a/google/ads/google_ads/v4/proto/resources/label_pb2.py b/google/ads/google_ads/v4/proto/resources/label_pb2.py new file mode 100644 index 000000000..7dec1fc6d --- /dev/null +++ b/google/ads/google_ads/v4/proto/resources/label_pb2.py @@ -0,0 +1,133 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/resources/label.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.ads.google_ads.v4.proto.common import text_label_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_text__label__pb2 +from google.ads.google_ads.v4.proto.enums import label_status_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_label__status__pb2 +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 +from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/resources/label.proto', + package='google.ads.googleads.v4.resources', + syntax='proto3', + serialized_options=_b('\n%com.google.ads.googleads.v4.resourcesB\nLabelProtoP\001ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v4/resources;resources\242\002\003GAA\252\002!Google.Ads.GoogleAds.V4.Resources\312\002!Google\\Ads\\GoogleAds\\V4\\Resources\352\002%Google::Ads::GoogleAds::V4::Resources'), + serialized_pb=_b('\n3google/ads/googleads_v4/proto/resources/label.proto\x12!google.ads.googleads.v4.resources\x1a\x35google/ads/googleads_v4/proto/common/text_label.proto\x1a\x36google/ads/googleads_v4/proto/enums/label_status.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1cgoogle/api/annotations.proto\"\xfa\x02\n\x05Label\x12=\n\rresource_name\x18\x01 \x01(\tB&\xe0\x41\x05\xfa\x41 \n\x1egoogleads.googleapis.com/Label\x12,\n\x02id\x18\x02 \x01(\x0b\x32\x1b.google.protobuf.Int64ValueB\x03\xe0\x41\x03\x12*\n\x04name\x18\x03 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12O\n\x06status\x18\x04 \x01(\x0e\x32:.google.ads.googleads.v4.enums.LabelStatusEnum.LabelStatusB\x03\xe0\x41\x03\x12=\n\ntext_label\x18\x05 \x01(\x0b\x32).google.ads.googleads.v4.common.TextLabel:H\xea\x41\x45\n\x1egoogleads.googleapis.com/Label\x12#customers/{customer}/labels/{label}B\xf7\x01\n%com.google.ads.googleads.v4.resourcesB\nLabelProtoP\x01ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v4/resources;resources\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V4.Resources\xca\x02!Google\\Ads\\GoogleAds\\V4\\Resources\xea\x02%Google::Ads::GoogleAds::V4::Resourcesb\x06proto3') + , + dependencies=[google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_text__label__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_label__status__pb2.DESCRIPTOR,google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_api_dot_resource__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + + +_LABEL = _descriptor.Descriptor( + name='Label', + full_name='google.ads.googleads.v4.resources.Label', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.resources.Label.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005\372A \n\036googleads.googleapis.com/Label'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='id', full_name='google.ads.googleads.v4.resources.Label.id', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='name', full_name='google.ads.googleads.v4.resources.Label.name', index=2, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='status', full_name='google.ads.googleads.v4.resources.Label.status', index=3, + number=4, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='text_label', full_name='google.ads.googleads.v4.resources.Label.text_label', index=4, + number=5, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=_b('\352AE\n\036googleads.googleapis.com/Label\022#customers/{customer}/labels/{label}'), + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=324, + serialized_end=702, +) + +_LABEL.fields_by_name['id'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_LABEL.fields_by_name['name'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_LABEL.fields_by_name['status'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_label__status__pb2._LABELSTATUSENUM_LABELSTATUS +_LABEL.fields_by_name['text_label'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_text__label__pb2._TEXTLABEL +DESCRIPTOR.message_types_by_name['Label'] = _LABEL +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +Label = _reflection.GeneratedProtocolMessageType('Label', (_message.Message,), dict( + DESCRIPTOR = _LABEL, + __module__ = 'google.ads.googleads_v4.proto.resources.label_pb2' + , + __doc__ = """A label. + + + Attributes: + resource_name: + Immutable. Name of the resource. Label resource names have the + form: ``customers/{customer_id}/labels/{label_id}`` + id: + Output only. Id of the label. Read only. + name: + The name of the label. This field is required and should not + be empty when creating a new label. The length of this string + should be between 1 and 80, inclusive. + status: + Output only. Status of the label. Read only. + text_label: + A type of label displaying text on a colored background. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.resources.Label) + )) +_sym_db.RegisterMessage(Label) + + +DESCRIPTOR._options = None +_LABEL.fields_by_name['resource_name']._options = None +_LABEL.fields_by_name['id']._options = None +_LABEL.fields_by_name['status']._options = None +_LABEL._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v4/proto/resources/label_pb2_grpc.py b/google/ads/google_ads/v4/proto/resources/label_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v4/proto/resources/label_pb2_grpc.py @@ -0,0 +1,3 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +import grpc + diff --git a/google/ads/google_ads/v4/proto/resources/landing_page_view_pb2.py b/google/ads/google_ads/v4/proto/resources/landing_page_view_pb2.py new file mode 100644 index 000000000..4a2d104ce --- /dev/null +++ b/google/ads/google_ads/v4/proto/resources/landing_page_view_pb2.py @@ -0,0 +1,101 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/resources/landing_page_view.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 +from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/resources/landing_page_view.proto', + package='google.ads.googleads.v4.resources', + syntax='proto3', + serialized_options=_b('\n%com.google.ads.googleads.v4.resourcesB\024LandingPageViewProtoP\001ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v4/resources;resources\242\002\003GAA\252\002!Google.Ads.GoogleAds.V4.Resources\312\002!Google\\Ads\\GoogleAds\\V4\\Resources\352\002%Google::Ads::GoogleAds::V4::Resources'), + serialized_pb=_b('\n?google/ads/googleads_v4/proto/resources/landing_page_view.proto\x12!google.ads.googleads.v4.resources\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1cgoogle/api/annotations.proto\"\x85\x02\n\x0fLandingPageView\x12G\n\rresource_name\x18\x01 \x01(\tB0\xe0\x41\x03\xfa\x41*\n(googleads.googleapis.com/LandingPageView\x12?\n\x14unexpanded_final_url\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValueB\x03\xe0\x41\x03:h\xea\x41\x65\n(googleads.googleapis.com/LandingPageView\x12\x39\x63ustomers/{customer}/landingPageViews/{landing_page_view}B\x81\x02\n%com.google.ads.googleads.v4.resourcesB\x14LandingPageViewProtoP\x01ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v4/resources;resources\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V4.Resources\xca\x02!Google\\Ads\\GoogleAds\\V4\\Resources\xea\x02%Google::Ads::GoogleAds::V4::Resourcesb\x06proto3') + , + dependencies=[google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_api_dot_resource__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + + +_LANDINGPAGEVIEW = _descriptor.Descriptor( + name='LandingPageView', + full_name='google.ads.googleads.v4.resources.LandingPageView', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.resources.LandingPageView.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003\372A*\n(googleads.googleapis.com/LandingPageView'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='unexpanded_final_url', full_name='google.ads.googleads.v4.resources.LandingPageView.unexpanded_final_url', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=_b('\352Ae\n(googleads.googleapis.com/LandingPageView\0229customers/{customer}/landingPageViews/{landing_page_view}'), + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=225, + serialized_end=486, +) + +_LANDINGPAGEVIEW.fields_by_name['unexpanded_final_url'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +DESCRIPTOR.message_types_by_name['LandingPageView'] = _LANDINGPAGEVIEW +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +LandingPageView = _reflection.GeneratedProtocolMessageType('LandingPageView', (_message.Message,), dict( + DESCRIPTOR = _LANDINGPAGEVIEW, + __module__ = 'google.ads.googleads_v4.proto.resources.landing_page_view_pb2' + , + __doc__ = """A landing page view with metrics aggregated at the unexpanded final URL + level. + + + Attributes: + resource_name: + Output only. The resource name of the landing page view. + Landing page view resource names have the form: ``customers/{ + customer_id}/landingPageViews/{unexpanded_final_url_fingerprin + t}`` + unexpanded_final_url: + Output only. The advertiser-specified final URL. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.resources.LandingPageView) + )) +_sym_db.RegisterMessage(LandingPageView) + + +DESCRIPTOR._options = None +_LANDINGPAGEVIEW.fields_by_name['resource_name']._options = None +_LANDINGPAGEVIEW.fields_by_name['unexpanded_final_url']._options = None +_LANDINGPAGEVIEW._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v4/proto/resources/landing_page_view_pb2_grpc.py b/google/ads/google_ads/v4/proto/resources/landing_page_view_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v4/proto/resources/landing_page_view_pb2_grpc.py @@ -0,0 +1,3 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +import grpc + diff --git a/google/ads/google_ads/v4/proto/resources/language_constant_pb2.py b/google/ads/google_ads/v4/proto/resources/language_constant_pb2.py new file mode 100644 index 000000000..c678231a1 --- /dev/null +++ b/google/ads/google_ads/v4/proto/resources/language_constant_pb2.py @@ -0,0 +1,134 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/resources/language_constant.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 +from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/resources/language_constant.proto', + package='google.ads.googleads.v4.resources', + syntax='proto3', + serialized_options=_b('\n%com.google.ads.googleads.v4.resourcesB\025LanguageConstantProtoP\001ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v4/resources;resources\242\002\003GAA\252\002!Google.Ads.GoogleAds.V4.Resources\312\002!Google\\Ads\\GoogleAds\\V4\\Resources\352\002%Google::Ads::GoogleAds::V4::Resources'), + serialized_pb=_b('\n?google/ads/googleads_v4/proto/resources/language_constant.proto\x12!google.ads.googleads.v4.resources\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1cgoogle/api/annotations.proto\"\xf8\x02\n\x10LanguageConstant\x12H\n\rresource_name\x18\x01 \x01(\tB1\xe0\x41\x03\xfa\x41+\n)googleads.googleapis.com/LanguageConstant\x12,\n\x02id\x18\x02 \x01(\x0b\x32\x1b.google.protobuf.Int64ValueB\x03\xe0\x41\x03\x12/\n\x04\x63ode\x18\x03 \x01(\x0b\x32\x1c.google.protobuf.StringValueB\x03\xe0\x41\x03\x12/\n\x04name\x18\x04 \x01(\x0b\x32\x1c.google.protobuf.StringValueB\x03\xe0\x41\x03\x12\x33\n\ntargetable\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.BoolValueB\x03\xe0\x41\x03:U\xea\x41R\n)googleads.googleapis.com/LanguageConstant\x12%languageConstants/{language_constant}B\x82\x02\n%com.google.ads.googleads.v4.resourcesB\x15LanguageConstantProtoP\x01ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v4/resources;resources\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V4.Resources\xca\x02!Google\\Ads\\GoogleAds\\V4\\Resources\xea\x02%Google::Ads::GoogleAds::V4::Resourcesb\x06proto3') + , + dependencies=[google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_api_dot_resource__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + + +_LANGUAGECONSTANT = _descriptor.Descriptor( + name='LanguageConstant', + full_name='google.ads.googleads.v4.resources.LanguageConstant', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.resources.LanguageConstant.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003\372A+\n)googleads.googleapis.com/LanguageConstant'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='id', full_name='google.ads.googleads.v4.resources.LanguageConstant.id', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='code', full_name='google.ads.googleads.v4.resources.LanguageConstant.code', index=2, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='name', full_name='google.ads.googleads.v4.resources.LanguageConstant.name', index=3, + number=4, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='targetable', full_name='google.ads.googleads.v4.resources.LanguageConstant.targetable', index=4, + number=5, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=_b('\352AR\n)googleads.googleapis.com/LanguageConstant\022%languageConstants/{language_constant}'), + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=225, + serialized_end=601, +) + +_LANGUAGECONSTANT.fields_by_name['id'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_LANGUAGECONSTANT.fields_by_name['code'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_LANGUAGECONSTANT.fields_by_name['name'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_LANGUAGECONSTANT.fields_by_name['targetable'].message_type = google_dot_protobuf_dot_wrappers__pb2._BOOLVALUE +DESCRIPTOR.message_types_by_name['LanguageConstant'] = _LANGUAGECONSTANT +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +LanguageConstant = _reflection.GeneratedProtocolMessageType('LanguageConstant', (_message.Message,), dict( + DESCRIPTOR = _LANGUAGECONSTANT, + __module__ = 'google.ads.googleads_v4.proto.resources.language_constant_pb2' + , + __doc__ = """A language. + + + Attributes: + resource_name: + Output only. The resource name of the language constant. + Language constant resource names have the form: + ``languageConstants/{criterion_id}`` + id: + Output only. The ID of the language constant. + code: + Output only. The language code, e.g. "en\_US", "en\_AU", "es", + "fr", etc. + name: + Output only. The full name of the language in English, e.g., + "English (US)", "Spanish", etc. + targetable: + Output only. Whether the language is targetable. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.resources.LanguageConstant) + )) +_sym_db.RegisterMessage(LanguageConstant) + + +DESCRIPTOR._options = None +_LANGUAGECONSTANT.fields_by_name['resource_name']._options = None +_LANGUAGECONSTANT.fields_by_name['id']._options = None +_LANGUAGECONSTANT.fields_by_name['code']._options = None +_LANGUAGECONSTANT.fields_by_name['name']._options = None +_LANGUAGECONSTANT.fields_by_name['targetable']._options = None +_LANGUAGECONSTANT._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v4/proto/resources/language_constant_pb2_grpc.py b/google/ads/google_ads/v4/proto/resources/language_constant_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v4/proto/resources/language_constant_pb2_grpc.py @@ -0,0 +1,3 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +import grpc + diff --git a/google/ads/google_ads/v4/proto/resources/location_view_pb2.py b/google/ads/google_ads/v4/proto/resources/location_view_pb2.py new file mode 100644 index 000000000..57c735a09 --- /dev/null +++ b/google/ads/google_ads/v4/proto/resources/location_view_pb2.py @@ -0,0 +1,88 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/resources/location_view.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/resources/location_view.proto', + package='google.ads.googleads.v4.resources', + syntax='proto3', + serialized_options=_b('\n%com.google.ads.googleads.v4.resourcesB\021LocationViewProtoP\001ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v4/resources;resources\242\002\003GAA\252\002!Google.Ads.GoogleAds.V4.Resources\312\002!Google\\Ads\\GoogleAds\\V4\\Resources\352\002%Google::Ads::GoogleAds::V4::Resources'), + serialized_pb=_b('\n;google/ads/googleads_v4/proto/resources/location_view.proto\x12!google.ads.googleads.v4.resources\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1cgoogle/api/annotations.proto\"\xb4\x01\n\x0cLocationView\x12\x44\n\rresource_name\x18\x01 \x01(\tB-\xe0\x41\x03\xfa\x41\'\n%googleads.googleapis.com/LocationView:^\xea\x41[\n%googleads.googleapis.com/LocationView\x12\x32\x63ustomers/{customer}/locationViews/{location_view}B\xfe\x01\n%com.google.ads.googleads.v4.resourcesB\x11LocationViewProtoP\x01ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v4/resources;resources\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V4.Resources\xca\x02!Google\\Ads\\GoogleAds\\V4\\Resources\xea\x02%Google::Ads::GoogleAds::V4::Resourcesb\x06proto3') + , + dependencies=[google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_api_dot_resource__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + + +_LOCATIONVIEW = _descriptor.Descriptor( + name='LocationView', + full_name='google.ads.googleads.v4.resources.LocationView', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.resources.LocationView.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003\372A\'\n%googleads.googleapis.com/LocationView'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=_b('\352A[\n%googleads.googleapis.com/LocationView\0222customers/{customer}/locationViews/{location_view}'), + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=189, + serialized_end=369, +) + +DESCRIPTOR.message_types_by_name['LocationView'] = _LOCATIONVIEW +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +LocationView = _reflection.GeneratedProtocolMessageType('LocationView', (_message.Message,), dict( + DESCRIPTOR = _LOCATIONVIEW, + __module__ = 'google.ads.googleads_v4.proto.resources.location_view_pb2' + , + __doc__ = """A location view summarizes the performance of campaigns by Location + criteria. + + + Attributes: + resource_name: + Output only. The resource name of the location view. Location + view resource names have the form: ``customers/{customer_id}/ + locationViews/{campaign_id}~{criterion_id}`` + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.resources.LocationView) + )) +_sym_db.RegisterMessage(LocationView) + + +DESCRIPTOR._options = None +_LOCATIONVIEW.fields_by_name['resource_name']._options = None +_LOCATIONVIEW._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v4/proto/resources/location_view_pb2_grpc.py b/google/ads/google_ads/v4/proto/resources/location_view_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v4/proto/resources/location_view_pb2_grpc.py @@ -0,0 +1,3 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +import grpc + diff --git a/google/ads/google_ads/v4/proto/resources/managed_placement_view_pb2.py b/google/ads/google_ads/v4/proto/resources/managed_placement_view_pb2.py new file mode 100644 index 000000000..47c47c706 --- /dev/null +++ b/google/ads/google_ads/v4/proto/resources/managed_placement_view_pb2.py @@ -0,0 +1,88 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/resources/managed_placement_view.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/resources/managed_placement_view.proto', + package='google.ads.googleads.v4.resources', + syntax='proto3', + serialized_options=_b('\n%com.google.ads.googleads.v4.resourcesB\031ManagedPlacementViewProtoP\001ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v4/resources;resources\242\002\003GAA\252\002!Google.Ads.GoogleAds.V4.Resources\312\002!Google\\Ads\\GoogleAds\\V4\\Resources\352\002%Google::Ads::GoogleAds::V4::Resources'), + serialized_pb=_b('\nDgoogle/ads/googleads_v4/proto/resources/managed_placement_view.proto\x12!google.ads.googleads.v4.resources\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1cgoogle/api/annotations.proto\"\xdd\x01\n\x14ManagedPlacementView\x12L\n\rresource_name\x18\x01 \x01(\tB5\xe0\x41\x03\xfa\x41/\n-googleads.googleapis.com/ManagedPlacementView:w\xea\x41t\n-googleads.googleapis.com/ManagedPlacementView\x12\x43\x63ustomers/{customer}/managedPlacementViews/{managed_placement_view}B\x86\x02\n%com.google.ads.googleads.v4.resourcesB\x19ManagedPlacementViewProtoP\x01ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v4/resources;resources\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V4.Resources\xca\x02!Google\\Ads\\GoogleAds\\V4\\Resources\xea\x02%Google::Ads::GoogleAds::V4::Resourcesb\x06proto3') + , + dependencies=[google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_api_dot_resource__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + + +_MANAGEDPLACEMENTVIEW = _descriptor.Descriptor( + name='ManagedPlacementView', + full_name='google.ads.googleads.v4.resources.ManagedPlacementView', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.resources.ManagedPlacementView.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003\372A/\n-googleads.googleapis.com/ManagedPlacementView'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=_b('\352At\n-googleads.googleapis.com/ManagedPlacementView\022Ccustomers/{customer}/managedPlacementViews/{managed_placement_view}'), + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=198, + serialized_end=419, +) + +DESCRIPTOR.message_types_by_name['ManagedPlacementView'] = _MANAGEDPLACEMENTVIEW +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +ManagedPlacementView = _reflection.GeneratedProtocolMessageType('ManagedPlacementView', (_message.Message,), dict( + DESCRIPTOR = _MANAGEDPLACEMENTVIEW, + __module__ = 'google.ads.googleads_v4.proto.resources.managed_placement_view_pb2' + , + __doc__ = """A managed placement view. + + + Attributes: + resource_name: + Output only. The resource name of the Managed Placement view. + Managed placement view resource names have the form: ``custom + ers/{customer_id}/managedPlacementViews/{ad_group_id}~{criteri + on_id}`` + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.resources.ManagedPlacementView) + )) +_sym_db.RegisterMessage(ManagedPlacementView) + + +DESCRIPTOR._options = None +_MANAGEDPLACEMENTVIEW.fields_by_name['resource_name']._options = None +_MANAGEDPLACEMENTVIEW._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v4/proto/resources/managed_placement_view_pb2_grpc.py b/google/ads/google_ads/v4/proto/resources/managed_placement_view_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v4/proto/resources/managed_placement_view_pb2_grpc.py @@ -0,0 +1,3 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +import grpc + diff --git a/google/ads/google_ads/v4/proto/resources/media_file_pb2.py b/google/ads/google_ads/v4/proto/resources/media_file_pb2.py new file mode 100644 index 000000000..8aa82e4c2 --- /dev/null +++ b/google/ads/google_ads/v4/proto/resources/media_file_pb2.py @@ -0,0 +1,454 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/resources/media_file.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.ads.google_ads.v4.proto.enums import media_type_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_media__type__pb2 +from google.ads.google_ads.v4.proto.enums import mime_type_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_mime__type__pb2 +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 +from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/resources/media_file.proto', + package='google.ads.googleads.v4.resources', + syntax='proto3', + serialized_options=_b('\n%com.google.ads.googleads.v4.resourcesB\016MediaFileProtoP\001ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v4/resources;resources\242\002\003GAA\252\002!Google.Ads.GoogleAds.V4.Resources\312\002!Google\\Ads\\GoogleAds\\V4\\Resources\352\002%Google::Ads::GoogleAds::V4::Resources'), + serialized_pb=_b('\n8google/ads/googleads_v4/proto/resources/media_file.proto\x12!google.ads.googleads.v4.resources\x1a\x34google/ads/googleads_v4/proto/enums/media_type.proto\x1a\x33google/ads/googleads_v4/proto/enums/mime_type.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1cgoogle/api/annotations.proto\"\xb2\x06\n\tMediaFile\x12\x41\n\rresource_name\x18\x01 \x01(\tB*\xe0\x41\x05\xfa\x41$\n\"googleads.googleapis.com/MediaFile\x12,\n\x02id\x18\x02 \x01(\x0b\x32\x1b.google.protobuf.Int64ValueB\x03\xe0\x41\x03\x12I\n\x04type\x18\x05 \x01(\x0e\x32\x36.google.ads.googleads.v4.enums.MediaTypeEnum.MediaTypeB\x03\xe0\x41\x05\x12L\n\tmime_type\x18\x06 \x01(\x0e\x32\x34.google.ads.googleads.v4.enums.MimeTypeEnum.MimeTypeB\x03\xe0\x41\x03\x12\x35\n\nsource_url\x18\x07 \x01(\x0b\x32\x1c.google.protobuf.StringValueB\x03\xe0\x41\x05\x12/\n\x04name\x18\x08 \x01(\x0b\x32\x1c.google.protobuf.StringValueB\x03\xe0\x41\x05\x12\x33\n\tfile_size\x18\t \x01(\x0b\x32\x1b.google.protobuf.Int64ValueB\x03\xe0\x41\x03\x12\x43\n\x05image\x18\x03 \x01(\x0b\x32-.google.ads.googleads.v4.resources.MediaImageB\x03\xe0\x41\x05H\x00\x12K\n\x0cmedia_bundle\x18\x04 \x01(\x0b\x32..google.ads.googleads.v4.resources.MediaBundleB\x03\xe0\x41\x05H\x00\x12\x43\n\x05\x61udio\x18\n \x01(\x0b\x32-.google.ads.googleads.v4.resources.MediaAudioB\x03\xe0\x41\x03H\x00\x12\x43\n\x05video\x18\x0b \x01(\x0b\x32-.google.ads.googleads.v4.resources.MediaVideoB\x03\xe0\x41\x05H\x00:U\xea\x41R\n\"googleads.googleapis.com/MediaFile\x12,customers/{customer}/mediaFiles/{media_file}B\x0b\n\tmediatype\"<\n\nMediaImage\x12.\n\x04\x64\x61ta\x18\x01 \x01(\x0b\x32\x1b.google.protobuf.BytesValueB\x03\xe0\x41\x05\"=\n\x0bMediaBundle\x12.\n\x04\x64\x61ta\x18\x01 \x01(\x0b\x32\x1b.google.protobuf.BytesValueB\x03\xe0\x41\x05\"J\n\nMediaAudio\x12<\n\x12\x61\x64_duration_millis\x18\x01 \x01(\x0b\x32\x1b.google.protobuf.Int64ValueB\x03\xe0\x41\x03\"\xfd\x01\n\nMediaVideo\x12<\n\x12\x61\x64_duration_millis\x18\x01 \x01(\x0b\x32\x1b.google.protobuf.Int64ValueB\x03\xe0\x41\x03\x12;\n\x10youtube_video_id\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValueB\x03\xe0\x41\x05\x12>\n\x13\x61\x64vertising_id_code\x18\x03 \x01(\x0b\x32\x1c.google.protobuf.StringValueB\x03\xe0\x41\x03\x12\x34\n\tisci_code\x18\x04 \x01(\x0b\x32\x1c.google.protobuf.StringValueB\x03\xe0\x41\x03\x42\xfb\x01\n%com.google.ads.googleads.v4.resourcesB\x0eMediaFileProtoP\x01ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v4/resources;resources\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V4.Resources\xca\x02!Google\\Ads\\GoogleAds\\V4\\Resources\xea\x02%Google::Ads::GoogleAds::V4::Resourcesb\x06proto3') + , + dependencies=[google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_media__type__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_mime__type__pb2.DESCRIPTOR,google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_api_dot_resource__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + + +_MEDIAFILE = _descriptor.Descriptor( + name='MediaFile', + full_name='google.ads.googleads.v4.resources.MediaFile', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.resources.MediaFile.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005\372A$\n\"googleads.googleapis.com/MediaFile'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='id', full_name='google.ads.googleads.v4.resources.MediaFile.id', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='type', full_name='google.ads.googleads.v4.resources.MediaFile.type', index=2, + number=5, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='mime_type', full_name='google.ads.googleads.v4.resources.MediaFile.mime_type', index=3, + number=6, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='source_url', full_name='google.ads.googleads.v4.resources.MediaFile.source_url', index=4, + number=7, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='name', full_name='google.ads.googleads.v4.resources.MediaFile.name', index=5, + number=8, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='file_size', full_name='google.ads.googleads.v4.resources.MediaFile.file_size', index=6, + number=9, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='image', full_name='google.ads.googleads.v4.resources.MediaFile.image', index=7, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='media_bundle', full_name='google.ads.googleads.v4.resources.MediaFile.media_bundle', index=8, + number=4, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='audio', full_name='google.ads.googleads.v4.resources.MediaFile.audio', index=9, + number=10, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='video', full_name='google.ads.googleads.v4.resources.MediaFile.video', index=10, + number=11, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=_b('\352AR\n\"googleads.googleapis.com/MediaFile\022,customers/{customer}/mediaFiles/{media_file}'), + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name='mediatype', full_name='google.ads.googleads.v4.resources.MediaFile.mediatype', + index=0, containing_type=None, fields=[]), + ], + serialized_start=325, + serialized_end=1143, +) + + +_MEDIAIMAGE = _descriptor.Descriptor( + name='MediaImage', + full_name='google.ads.googleads.v4.resources.MediaImage', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='data', full_name='google.ads.googleads.v4.resources.MediaImage.data', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1145, + serialized_end=1205, +) + + +_MEDIABUNDLE = _descriptor.Descriptor( + name='MediaBundle', + full_name='google.ads.googleads.v4.resources.MediaBundle', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='data', full_name='google.ads.googleads.v4.resources.MediaBundle.data', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1207, + serialized_end=1268, +) + + +_MEDIAAUDIO = _descriptor.Descriptor( + name='MediaAudio', + full_name='google.ads.googleads.v4.resources.MediaAudio', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='ad_duration_millis', full_name='google.ads.googleads.v4.resources.MediaAudio.ad_duration_millis', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1270, + serialized_end=1344, +) + + +_MEDIAVIDEO = _descriptor.Descriptor( + name='MediaVideo', + full_name='google.ads.googleads.v4.resources.MediaVideo', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='ad_duration_millis', full_name='google.ads.googleads.v4.resources.MediaVideo.ad_duration_millis', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='youtube_video_id', full_name='google.ads.googleads.v4.resources.MediaVideo.youtube_video_id', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='advertising_id_code', full_name='google.ads.googleads.v4.resources.MediaVideo.advertising_id_code', index=2, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='isci_code', full_name='google.ads.googleads.v4.resources.MediaVideo.isci_code', index=3, + number=4, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1347, + serialized_end=1600, +) + +_MEDIAFILE.fields_by_name['id'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_MEDIAFILE.fields_by_name['type'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_media__type__pb2._MEDIATYPEENUM_MEDIATYPE +_MEDIAFILE.fields_by_name['mime_type'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_mime__type__pb2._MIMETYPEENUM_MIMETYPE +_MEDIAFILE.fields_by_name['source_url'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_MEDIAFILE.fields_by_name['name'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_MEDIAFILE.fields_by_name['file_size'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_MEDIAFILE.fields_by_name['image'].message_type = _MEDIAIMAGE +_MEDIAFILE.fields_by_name['media_bundle'].message_type = _MEDIABUNDLE +_MEDIAFILE.fields_by_name['audio'].message_type = _MEDIAAUDIO +_MEDIAFILE.fields_by_name['video'].message_type = _MEDIAVIDEO +_MEDIAFILE.oneofs_by_name['mediatype'].fields.append( + _MEDIAFILE.fields_by_name['image']) +_MEDIAFILE.fields_by_name['image'].containing_oneof = _MEDIAFILE.oneofs_by_name['mediatype'] +_MEDIAFILE.oneofs_by_name['mediatype'].fields.append( + _MEDIAFILE.fields_by_name['media_bundle']) +_MEDIAFILE.fields_by_name['media_bundle'].containing_oneof = _MEDIAFILE.oneofs_by_name['mediatype'] +_MEDIAFILE.oneofs_by_name['mediatype'].fields.append( + _MEDIAFILE.fields_by_name['audio']) +_MEDIAFILE.fields_by_name['audio'].containing_oneof = _MEDIAFILE.oneofs_by_name['mediatype'] +_MEDIAFILE.oneofs_by_name['mediatype'].fields.append( + _MEDIAFILE.fields_by_name['video']) +_MEDIAFILE.fields_by_name['video'].containing_oneof = _MEDIAFILE.oneofs_by_name['mediatype'] +_MEDIAIMAGE.fields_by_name['data'].message_type = google_dot_protobuf_dot_wrappers__pb2._BYTESVALUE +_MEDIABUNDLE.fields_by_name['data'].message_type = google_dot_protobuf_dot_wrappers__pb2._BYTESVALUE +_MEDIAAUDIO.fields_by_name['ad_duration_millis'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_MEDIAVIDEO.fields_by_name['ad_duration_millis'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_MEDIAVIDEO.fields_by_name['youtube_video_id'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_MEDIAVIDEO.fields_by_name['advertising_id_code'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_MEDIAVIDEO.fields_by_name['isci_code'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +DESCRIPTOR.message_types_by_name['MediaFile'] = _MEDIAFILE +DESCRIPTOR.message_types_by_name['MediaImage'] = _MEDIAIMAGE +DESCRIPTOR.message_types_by_name['MediaBundle'] = _MEDIABUNDLE +DESCRIPTOR.message_types_by_name['MediaAudio'] = _MEDIAAUDIO +DESCRIPTOR.message_types_by_name['MediaVideo'] = _MEDIAVIDEO +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +MediaFile = _reflection.GeneratedProtocolMessageType('MediaFile', (_message.Message,), dict( + DESCRIPTOR = _MEDIAFILE, + __module__ = 'google.ads.googleads_v4.proto.resources.media_file_pb2' + , + __doc__ = """A media file. + + + Attributes: + resource_name: + Immutable. The resource name of the media file. Media file + resource names have the form: + ``customers/{customer_id}/mediaFiles/{media_file_id}`` + id: + Output only. The ID of the media file. + type: + Immutable. Type of the media file. + mime_type: + Output only. The mime type of the media file. + source_url: + Immutable. The URL of where the original media file was + downloaded from (or a file name). Only used for media of type + AUDIO and IMAGE. + name: + Immutable. The name of the media file. The name can be used by + clients to help identify previously uploaded media. + file_size: + Output only. The size of the media file in bytes. + mediatype: + The specific type of the media file. + image: + Immutable. Encapsulates an Image. + media_bundle: + Immutable. A ZIP archive media the content of which contains + HTML5 assets. + audio: + Output only. Encapsulates an Audio. + video: + Immutable. Encapsulates a Video. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.resources.MediaFile) + )) +_sym_db.RegisterMessage(MediaFile) + +MediaImage = _reflection.GeneratedProtocolMessageType('MediaImage', (_message.Message,), dict( + DESCRIPTOR = _MEDIAIMAGE, + __module__ = 'google.ads.googleads_v4.proto.resources.media_file_pb2' + , + __doc__ = """Encapsulates an Image. + + + Attributes: + data: + Immutable. Raw image data. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.resources.MediaImage) + )) +_sym_db.RegisterMessage(MediaImage) + +MediaBundle = _reflection.GeneratedProtocolMessageType('MediaBundle', (_message.Message,), dict( + DESCRIPTOR = _MEDIABUNDLE, + __module__ = 'google.ads.googleads_v4.proto.resources.media_file_pb2' + , + __doc__ = """Represents a ZIP archive media the content of which contains HTML5 + assets. + + + Attributes: + data: + Immutable. Raw zipped data. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.resources.MediaBundle) + )) +_sym_db.RegisterMessage(MediaBundle) + +MediaAudio = _reflection.GeneratedProtocolMessageType('MediaAudio', (_message.Message,), dict( + DESCRIPTOR = _MEDIAAUDIO, + __module__ = 'google.ads.googleads_v4.proto.resources.media_file_pb2' + , + __doc__ = """Encapsulates an Audio. + + + Attributes: + ad_duration_millis: + Output only. The duration of the Audio in milliseconds. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.resources.MediaAudio) + )) +_sym_db.RegisterMessage(MediaAudio) + +MediaVideo = _reflection.GeneratedProtocolMessageType('MediaVideo', (_message.Message,), dict( + DESCRIPTOR = _MEDIAVIDEO, + __module__ = 'google.ads.googleads_v4.proto.resources.media_file_pb2' + , + __doc__ = """Encapsulates a Video. + + + Attributes: + ad_duration_millis: + Output only. The duration of the Video in milliseconds. + youtube_video_id: + Immutable. The YouTube video ID (as seen in YouTube URLs). + advertising_id_code: + Output only. The Advertising Digital Identification code for + this video, as defined by the American Association of + Advertising Agencies, used mainly for television commercials. + isci_code: + Output only. The Industry Standard Commercial Identifier code + for this video, used mainly for television commercials. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.resources.MediaVideo) + )) +_sym_db.RegisterMessage(MediaVideo) + + +DESCRIPTOR._options = None +_MEDIAFILE.fields_by_name['resource_name']._options = None +_MEDIAFILE.fields_by_name['id']._options = None +_MEDIAFILE.fields_by_name['type']._options = None +_MEDIAFILE.fields_by_name['mime_type']._options = None +_MEDIAFILE.fields_by_name['source_url']._options = None +_MEDIAFILE.fields_by_name['name']._options = None +_MEDIAFILE.fields_by_name['file_size']._options = None +_MEDIAFILE.fields_by_name['image']._options = None +_MEDIAFILE.fields_by_name['media_bundle']._options = None +_MEDIAFILE.fields_by_name['audio']._options = None +_MEDIAFILE.fields_by_name['video']._options = None +_MEDIAFILE._options = None +_MEDIAIMAGE.fields_by_name['data']._options = None +_MEDIABUNDLE.fields_by_name['data']._options = None +_MEDIAAUDIO.fields_by_name['ad_duration_millis']._options = None +_MEDIAVIDEO.fields_by_name['ad_duration_millis']._options = None +_MEDIAVIDEO.fields_by_name['youtube_video_id']._options = None +_MEDIAVIDEO.fields_by_name['advertising_id_code']._options = None +_MEDIAVIDEO.fields_by_name['isci_code']._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v4/proto/resources/media_file_pb2_grpc.py b/google/ads/google_ads/v4/proto/resources/media_file_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v4/proto/resources/media_file_pb2_grpc.py @@ -0,0 +1,3 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +import grpc + diff --git a/google/ads/google_ads/v4/proto/resources/merchant_center_link_pb2.py b/google/ads/google_ads/v4/proto/resources/merchant_center_link_pb2.py new file mode 100644 index 000000000..d08dfd3f3 --- /dev/null +++ b/google/ads/google_ads/v4/proto/resources/merchant_center_link_pb2.py @@ -0,0 +1,124 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/resources/merchant_center_link.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.ads.google_ads.v4.proto.enums import merchant_center_link_status_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_merchant__center__link__status__pb2 +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 +from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/resources/merchant_center_link.proto', + package='google.ads.googleads.v4.resources', + syntax='proto3', + serialized_options=_b('\n%com.google.ads.googleads.v4.resourcesB\027MerchantCenterLinkProtoP\001ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v4/resources;resources\242\002\003GAA\252\002!Google.Ads.GoogleAds.V4.Resources\312\002!Google\\Ads\\GoogleAds\\V4\\Resources\352\002%Google::Ads::GoogleAds::V4::Resources'), + serialized_pb=_b('\nBgoogle/ads/googleads_v4/proto/resources/merchant_center_link.proto\x12!google.ads.googleads.v4.resources\x1a\x45google/ads/googleads_v4/proto/enums/merchant_center_link_status.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1cgoogle/api/annotations.proto\"\xb0\x03\n\x12MerchantCenterLink\x12J\n\rresource_name\x18\x01 \x01(\tB3\xe0\x41\x05\xfa\x41-\n+googleads.googleapis.com/MerchantCenterLink\x12,\n\x02id\x18\x03 \x01(\x0b\x32\x1b.google.protobuf.Int64ValueB\x03\xe0\x41\x03\x12G\n\x1cmerchant_center_account_name\x18\x04 \x01(\x0b\x32\x1c.google.protobuf.StringValueB\x03\xe0\x41\x03\x12\x64\n\x06status\x18\x05 \x01(\x0e\x32T.google.ads.googleads.v4.enums.MerchantCenterLinkStatusEnum.MerchantCenterLinkStatus:q\xea\x41n\n+googleads.googleapis.com/MerchantCenterLink\x12?customers/{customer}/merchantCenterLinks/{merchant_center_link}B\x84\x02\n%com.google.ads.googleads.v4.resourcesB\x17MerchantCenterLinkProtoP\x01ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v4/resources;resources\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V4.Resources\xca\x02!Google\\Ads\\GoogleAds\\V4\\Resources\xea\x02%Google::Ads::GoogleAds::V4::Resourcesb\x06proto3') + , + dependencies=[google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_merchant__center__link__status__pb2.DESCRIPTOR,google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_api_dot_resource__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + + +_MERCHANTCENTERLINK = _descriptor.Descriptor( + name='MerchantCenterLink', + full_name='google.ads.googleads.v4.resources.MerchantCenterLink', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.resources.MerchantCenterLink.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005\372A-\n+googleads.googleapis.com/MerchantCenterLink'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='id', full_name='google.ads.googleads.v4.resources.MerchantCenterLink.id', index=1, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='merchant_center_account_name', full_name='google.ads.googleads.v4.resources.MerchantCenterLink.merchant_center_account_name', index=2, + number=4, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='status', full_name='google.ads.googleads.v4.resources.MerchantCenterLink.status', index=3, + number=5, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=_b('\352An\n+googleads.googleapis.com/MerchantCenterLink\022?customers/{customer}/merchantCenterLinks/{merchant_center_link}'), + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=299, + serialized_end=731, +) + +_MERCHANTCENTERLINK.fields_by_name['id'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_MERCHANTCENTERLINK.fields_by_name['merchant_center_account_name'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_MERCHANTCENTERLINK.fields_by_name['status'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_merchant__center__link__status__pb2._MERCHANTCENTERLINKSTATUSENUM_MERCHANTCENTERLINKSTATUS +DESCRIPTOR.message_types_by_name['MerchantCenterLink'] = _MERCHANTCENTERLINK +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +MerchantCenterLink = _reflection.GeneratedProtocolMessageType('MerchantCenterLink', (_message.Message,), dict( + DESCRIPTOR = _MERCHANTCENTERLINK, + __module__ = 'google.ads.googleads_v4.proto.resources.merchant_center_link_pb2' + , + __doc__ = """A data sharing connection, proposed or in use, between a Google Ads + Customer and a Merchant Center account. + + + Attributes: + resource_name: + Immutable. The resource name of the merchant center link. + Merchant center link resource names have the form: ``customer + s/{customer_id}/merchantCenterLinks/{merchant_center_id}`` + id: + Output only. The ID of the Merchant Center account. This field + is readonly. + merchant_center_account_name: + Output only. The name of the Merchant Center account. This + field is readonly. + status: + The status of the link. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.resources.MerchantCenterLink) + )) +_sym_db.RegisterMessage(MerchantCenterLink) + + +DESCRIPTOR._options = None +_MERCHANTCENTERLINK.fields_by_name['resource_name']._options = None +_MERCHANTCENTERLINK.fields_by_name['id']._options = None +_MERCHANTCENTERLINK.fields_by_name['merchant_center_account_name']._options = None +_MERCHANTCENTERLINK._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v4/proto/resources/merchant_center_link_pb2_grpc.py b/google/ads/google_ads/v4/proto/resources/merchant_center_link_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v4/proto/resources/merchant_center_link_pb2_grpc.py @@ -0,0 +1,3 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +import grpc + diff --git a/google/ads/google_ads/v4/proto/resources/mobile_app_category_constant_pb2.py b/google/ads/google_ads/v4/proto/resources/mobile_app_category_constant_pb2.py new file mode 100644 index 000000000..0959506c5 --- /dev/null +++ b/google/ads/google_ads/v4/proto/resources/mobile_app_category_constant_pb2.py @@ -0,0 +1,110 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/resources/mobile_app_category_constant.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 +from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/resources/mobile_app_category_constant.proto', + package='google.ads.googleads.v4.resources', + syntax='proto3', + serialized_options=_b('\n%com.google.ads.googleads.v4.resourcesB\036MobileAppCategoryConstantProtoP\001ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v4/resources;resources\242\002\003GAA\252\002!Google.Ads.GoogleAds.V4.Resources\312\002!Google\\Ads\\GoogleAds\\V4\\Resources\352\002%Google::Ads::GoogleAds::V4::Resources'), + serialized_pb=_b('\nJgoogle/ads/googleads_v4/proto/resources/mobile_app_category_constant.proto\x12!google.ads.googleads.v4.resources\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1cgoogle/api/annotations.proto\"\xc1\x02\n\x19MobileAppCategoryConstant\x12Q\n\rresource_name\x18\x01 \x01(\tB:\xe0\x41\x03\xfa\x41\x34\n2googleads.googleapis.com/MobileAppCategoryConstant\x12,\n\x02id\x18\x02 \x01(\x0b\x32\x1b.google.protobuf.Int32ValueB\x03\xe0\x41\x03\x12/\n\x04name\x18\x03 \x01(\x0b\x32\x1c.google.protobuf.StringValueB\x03\xe0\x41\x03:r\xea\x41o\n2googleads.googleapis.com/MobileAppCategoryConstant\x12\x39mobileAppCategoryConstants/{mobile_app_category_constant}B\x8b\x02\n%com.google.ads.googleads.v4.resourcesB\x1eMobileAppCategoryConstantProtoP\x01ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v4/resources;resources\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V4.Resources\xca\x02!Google\\Ads\\GoogleAds\\V4\\Resources\xea\x02%Google::Ads::GoogleAds::V4::Resourcesb\x06proto3') + , + dependencies=[google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_api_dot_resource__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + + +_MOBILEAPPCATEGORYCONSTANT = _descriptor.Descriptor( + name='MobileAppCategoryConstant', + full_name='google.ads.googleads.v4.resources.MobileAppCategoryConstant', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.resources.MobileAppCategoryConstant.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003\372A4\n2googleads.googleapis.com/MobileAppCategoryConstant'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='id', full_name='google.ads.googleads.v4.resources.MobileAppCategoryConstant.id', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='name', full_name='google.ads.googleads.v4.resources.MobileAppCategoryConstant.name', index=2, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=_b('\352Ao\n2googleads.googleapis.com/MobileAppCategoryConstant\0229mobileAppCategoryConstants/{mobile_app_category_constant}'), + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=236, + serialized_end=557, +) + +_MOBILEAPPCATEGORYCONSTANT.fields_by_name['id'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT32VALUE +_MOBILEAPPCATEGORYCONSTANT.fields_by_name['name'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +DESCRIPTOR.message_types_by_name['MobileAppCategoryConstant'] = _MOBILEAPPCATEGORYCONSTANT +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +MobileAppCategoryConstant = _reflection.GeneratedProtocolMessageType('MobileAppCategoryConstant', (_message.Message,), dict( + DESCRIPTOR = _MOBILEAPPCATEGORYCONSTANT, + __module__ = 'google.ads.googleads_v4.proto.resources.mobile_app_category_constant_pb2' + , + __doc__ = """A mobile application category constant. + + + Attributes: + resource_name: + Output only. The resource name of the mobile app category + constant. Mobile app category constant resource names have the + form: ``mobileAppCategoryConstants/{mobile_app_category_id}`` + id: + Output only. The ID of the mobile app category constant. + name: + Output only. Mobile app category name. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.resources.MobileAppCategoryConstant) + )) +_sym_db.RegisterMessage(MobileAppCategoryConstant) + + +DESCRIPTOR._options = None +_MOBILEAPPCATEGORYCONSTANT.fields_by_name['resource_name']._options = None +_MOBILEAPPCATEGORYCONSTANT.fields_by_name['id']._options = None +_MOBILEAPPCATEGORYCONSTANT.fields_by_name['name']._options = None +_MOBILEAPPCATEGORYCONSTANT._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v4/proto/resources/mobile_app_category_constant_pb2_grpc.py b/google/ads/google_ads/v4/proto/resources/mobile_app_category_constant_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v4/proto/resources/mobile_app_category_constant_pb2_grpc.py @@ -0,0 +1,3 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +import grpc + diff --git a/google/ads/google_ads/v4/proto/resources/mobile_device_constant_pb2.py b/google/ads/google_ads/v4/proto/resources/mobile_device_constant_pb2.py new file mode 100644 index 000000000..1ae62dd04 --- /dev/null +++ b/google/ads/google_ads/v4/proto/resources/mobile_device_constant_pb2.py @@ -0,0 +1,144 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/resources/mobile_device_constant.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.ads.google_ads.v4.proto.enums import mobile_device_type_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_mobile__device__type__pb2 +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 +from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/resources/mobile_device_constant.proto', + package='google.ads.googleads.v4.resources', + syntax='proto3', + serialized_options=_b('\n%com.google.ads.googleads.v4.resourcesB\031MobileDeviceConstantProtoP\001ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v4/resources;resources\242\002\003GAA\252\002!Google.Ads.GoogleAds.V4.Resources\312\002!Google\\Ads\\GoogleAds\\V4\\Resources\352\002%Google::Ads::GoogleAds::V4::Resources'), + serialized_pb=_b('\nDgoogle/ads/googleads_v4/proto/resources/mobile_device_constant.proto\x12!google.ads.googleads.v4.resources\x1agoogle/ads/googleads_v4/proto/resources/payments_account.proto\x12!google.ads.googleads.v4.resources\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1cgoogle/api/annotations.proto\"\xbc\x04\n\x0fPaymentsAccount\x12G\n\rresource_name\x18\x01 \x01(\tB0\xe0\x41\x03\xfa\x41*\n(googleads.googleapis.com/PaymentsAccount\x12>\n\x13payments_account_id\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValueB\x03\xe0\x41\x03\x12/\n\x04name\x18\x03 \x01(\x0b\x32\x1c.google.protobuf.StringValueB\x03\xe0\x41\x03\x12\x38\n\rcurrency_code\x18\x04 \x01(\x0b\x32\x1c.google.protobuf.StringValueB\x03\xe0\x41\x03\x12>\n\x13payments_profile_id\x18\x05 \x01(\x0b\x32\x1c.google.protobuf.StringValueB\x03\xe0\x41\x03\x12H\n\x1dsecondary_payments_profile_id\x18\x06 \x01(\x0b\x32\x1c.google.protobuf.StringValueB\x03\xe0\x41\x03\x12\x42\n\x17paying_manager_customer\x18\x07 \x01(\x0b\x32\x1c.google.protobuf.StringValueB\x03\xe0\x41\x03:g\xea\x41\x64\n(googleads.googleapis.com/PaymentsAccount\x12\x38\x63ustomers/{customer}/paymentsAccounts/{payments_account}B\x81\x02\n%com.google.ads.googleads.v4.resourcesB\x14PaymentsAccountProtoP\x01ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v4/resources;resources\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V4.Resources\xca\x02!Google\\Ads\\GoogleAds\\V4\\Resources\xea\x02%Google::Ads::GoogleAds::V4::Resourcesb\x06proto3') + , + dependencies=[google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_api_dot_resource__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + + +_PAYMENTSACCOUNT = _descriptor.Descriptor( + name='PaymentsAccount', + full_name='google.ads.googleads.v4.resources.PaymentsAccount', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.resources.PaymentsAccount.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003\372A*\n(googleads.googleapis.com/PaymentsAccount'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='payments_account_id', full_name='google.ads.googleads.v4.resources.PaymentsAccount.payments_account_id', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='name', full_name='google.ads.googleads.v4.resources.PaymentsAccount.name', index=2, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='currency_code', full_name='google.ads.googleads.v4.resources.PaymentsAccount.currency_code', index=3, + number=4, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='payments_profile_id', full_name='google.ads.googleads.v4.resources.PaymentsAccount.payments_profile_id', index=4, + number=5, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='secondary_payments_profile_id', full_name='google.ads.googleads.v4.resources.PaymentsAccount.secondary_payments_profile_id', index=5, + number=6, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='paying_manager_customer', full_name='google.ads.googleads.v4.resources.PaymentsAccount.paying_manager_customer', index=6, + number=7, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=_b('\352Ad\n(googleads.googleapis.com/PaymentsAccount\0228customers/{customer}/paymentsAccounts/{payments_account}'), + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=224, + serialized_end=796, +) + +_PAYMENTSACCOUNT.fields_by_name['payments_account_id'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_PAYMENTSACCOUNT.fields_by_name['name'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_PAYMENTSACCOUNT.fields_by_name['currency_code'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_PAYMENTSACCOUNT.fields_by_name['payments_profile_id'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_PAYMENTSACCOUNT.fields_by_name['secondary_payments_profile_id'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_PAYMENTSACCOUNT.fields_by_name['paying_manager_customer'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +DESCRIPTOR.message_types_by_name['PaymentsAccount'] = _PAYMENTSACCOUNT +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +PaymentsAccount = _reflection.GeneratedProtocolMessageType('PaymentsAccount', (_message.Message,), dict( + DESCRIPTOR = _PAYMENTSACCOUNT, + __module__ = 'google.ads.googleads_v4.proto.resources.payments_account_pb2' + , + __doc__ = """A payments account, which can be used to set up billing for an Ads + customer. + + + Attributes: + resource_name: + Output only. The resource name of the payments account. + PaymentsAccount resource names have the form: ``customers/{cu + stomer_id}/paymentsAccounts/{payments_account_id}`` + payments_account_id: + Output only. A 16 digit ID used to identify a payments + account. + name: + Output only. The name of the payments account. + currency_code: + Output only. The currency code of the payments account. A + subset of the currency codes derived from the ISO 4217 + standard is supported. + payments_profile_id: + Output only. A 12 digit ID used to identify the payments + profile associated with the payments account. + secondary_payments_profile_id: + Output only. A secondary payments profile ID present in + uncommon situations, e.g. when a sequential liability + agreement has been arranged. + paying_manager_customer: + Output only. Paying manager of this payment account. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.resources.PaymentsAccount) + )) +_sym_db.RegisterMessage(PaymentsAccount) + + +DESCRIPTOR._options = None +_PAYMENTSACCOUNT.fields_by_name['resource_name']._options = None +_PAYMENTSACCOUNT.fields_by_name['payments_account_id']._options = None +_PAYMENTSACCOUNT.fields_by_name['name']._options = None +_PAYMENTSACCOUNT.fields_by_name['currency_code']._options = None +_PAYMENTSACCOUNT.fields_by_name['payments_profile_id']._options = None +_PAYMENTSACCOUNT.fields_by_name['secondary_payments_profile_id']._options = None +_PAYMENTSACCOUNT.fields_by_name['paying_manager_customer']._options = None +_PAYMENTSACCOUNT._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v4/proto/resources/payments_account_pb2_grpc.py b/google/ads/google_ads/v4/proto/resources/payments_account_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v4/proto/resources/payments_account_pb2_grpc.py @@ -0,0 +1,3 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +import grpc + diff --git a/google/ads/google_ads/v4/proto/resources/product_bidding_category_constant_pb2.py b/google/ads/google_ads/v4/proto/resources/product_bidding_category_constant_pb2.py new file mode 100644 index 000000000..872e1aac2 --- /dev/null +++ b/google/ads/google_ads/v4/proto/resources/product_bidding_category_constant_pb2.py @@ -0,0 +1,174 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/resources/product_bidding_category_constant.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.ads.google_ads.v4.proto.enums import product_bidding_category_level_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_product__bidding__category__level__pb2 +from google.ads.google_ads.v4.proto.enums import product_bidding_category_status_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_product__bidding__category__status__pb2 +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 +from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/resources/product_bidding_category_constant.proto', + package='google.ads.googleads.v4.resources', + syntax='proto3', + serialized_options=_b('\n%com.google.ads.googleads.v4.resourcesB#ProductBiddingCategoryConstantProtoP\001ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v4/resources;resources\242\002\003GAA\252\002!Google.Ads.GoogleAds.V4.Resources\312\002!Google\\Ads\\GoogleAds\\V4\\Resources\352\002%Google::Ads::GoogleAds::V4::Resources'), + serialized_pb=_b('\nOgoogle/ads/googleads_v4/proto/resources/product_bidding_category_constant.proto\x12!google.ads.googleads.v4.resources\x1aHgoogle/ads/googleads_v4/proto/enums/product_bidding_category_level.proto\x1aIgoogle/ads/googleads_v4/proto/enums/product_bidding_category_status.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1cgoogle/api/annotations.proto\"\xcd\x06\n\x1eProductBiddingCategoryConstant\x12V\n\rresource_name\x18\x01 \x01(\tB?\xe0\x41\x03\xfa\x41\x39\n7googleads.googleapis.com/ProductBiddingCategoryConstant\x12,\n\x02id\x18\x02 \x01(\x0b\x32\x1b.google.protobuf.Int64ValueB\x03\xe0\x41\x03\x12\x37\n\x0c\x63ountry_code\x18\x03 \x01(\x0b\x32\x1c.google.protobuf.StringValueB\x03\xe0\x41\x03\x12\x8f\x01\n(product_bidding_category_constant_parent\x18\x04 \x01(\x0b\x32\x1c.google.protobuf.StringValueB?\xe0\x41\x03\xfa\x41\x39\n7googleads.googleapis.com/ProductBiddingCategoryConstant\x12n\n\x05level\x18\x05 \x01(\x0e\x32Z.google.ads.googleads.v4.enums.ProductBiddingCategoryLevelEnum.ProductBiddingCategoryLevelB\x03\xe0\x41\x03\x12q\n\x06status\x18\x06 \x01(\x0e\x32\\.google.ads.googleads.v4.enums.ProductBiddingCategoryStatusEnum.ProductBiddingCategoryStatusB\x03\xe0\x41\x03\x12\x38\n\rlanguage_code\x18\x07 \x01(\x0b\x32\x1c.google.protobuf.StringValueB\x03\xe0\x41\x03\x12\x39\n\x0elocalized_name\x18\x08 \x01(\x0b\x32\x1c.google.protobuf.StringValueB\x03\xe0\x41\x03:\x81\x01\xea\x41~\n7googleads.googleapis.com/ProductBiddingCategoryConstant\x12\x43productBiddingCategoryConstants/{product_bidding_category_constant}B\x90\x02\n%com.google.ads.googleads.v4.resourcesB#ProductBiddingCategoryConstantProtoP\x01ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v4/resources;resources\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V4.Resources\xca\x02!Google\\Ads\\GoogleAds\\V4\\Resources\xea\x02%Google::Ads::GoogleAds::V4::Resourcesb\x06proto3') + , + dependencies=[google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_product__bidding__category__level__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_product__bidding__category__status__pb2.DESCRIPTOR,google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_api_dot_resource__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + + +_PRODUCTBIDDINGCATEGORYCONSTANT = _descriptor.Descriptor( + name='ProductBiddingCategoryConstant', + full_name='google.ads.googleads.v4.resources.ProductBiddingCategoryConstant', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.resources.ProductBiddingCategoryConstant.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003\372A9\n7googleads.googleapis.com/ProductBiddingCategoryConstant'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='id', full_name='google.ads.googleads.v4.resources.ProductBiddingCategoryConstant.id', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='country_code', full_name='google.ads.googleads.v4.resources.ProductBiddingCategoryConstant.country_code', index=2, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='product_bidding_category_constant_parent', full_name='google.ads.googleads.v4.resources.ProductBiddingCategoryConstant.product_bidding_category_constant_parent', index=3, + number=4, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003\372A9\n7googleads.googleapis.com/ProductBiddingCategoryConstant'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='level', full_name='google.ads.googleads.v4.resources.ProductBiddingCategoryConstant.level', index=4, + number=5, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='status', full_name='google.ads.googleads.v4.resources.ProductBiddingCategoryConstant.status', index=5, + number=6, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='language_code', full_name='google.ads.googleads.v4.resources.ProductBiddingCategoryConstant.language_code', index=6, + number=7, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='localized_name', full_name='google.ads.googleads.v4.resources.ProductBiddingCategoryConstant.localized_name', index=7, + number=8, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=_b('\352A~\n7googleads.googleapis.com/ProductBiddingCategoryConstant\022CproductBiddingCategoryConstants/{product_bidding_category_constant}'), + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=390, + serialized_end=1235, +) + +_PRODUCTBIDDINGCATEGORYCONSTANT.fields_by_name['id'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_PRODUCTBIDDINGCATEGORYCONSTANT.fields_by_name['country_code'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_PRODUCTBIDDINGCATEGORYCONSTANT.fields_by_name['product_bidding_category_constant_parent'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_PRODUCTBIDDINGCATEGORYCONSTANT.fields_by_name['level'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_product__bidding__category__level__pb2._PRODUCTBIDDINGCATEGORYLEVELENUM_PRODUCTBIDDINGCATEGORYLEVEL +_PRODUCTBIDDINGCATEGORYCONSTANT.fields_by_name['status'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_product__bidding__category__status__pb2._PRODUCTBIDDINGCATEGORYSTATUSENUM_PRODUCTBIDDINGCATEGORYSTATUS +_PRODUCTBIDDINGCATEGORYCONSTANT.fields_by_name['language_code'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_PRODUCTBIDDINGCATEGORYCONSTANT.fields_by_name['localized_name'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +DESCRIPTOR.message_types_by_name['ProductBiddingCategoryConstant'] = _PRODUCTBIDDINGCATEGORYCONSTANT +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +ProductBiddingCategoryConstant = _reflection.GeneratedProtocolMessageType('ProductBiddingCategoryConstant', (_message.Message,), dict( + DESCRIPTOR = _PRODUCTBIDDINGCATEGORYCONSTANT, + __module__ = 'google.ads.googleads_v4.proto.resources.product_bidding_category_constant_pb2' + , + __doc__ = """A Product Bidding Category. + + + Attributes: + resource_name: + Output only. The resource name of the product bidding + category. Product bidding category resource names have the + form: ``productBiddingCategoryConstants/{country_code}~{level + }~{id}`` + id: + Output only. ID of the product bidding category. This ID is + equivalent to the google\_product\_category ID as described in + this article: + https://support.google.com/merchants/answer/6324436. + country_code: + Output only. Two-letter upper-case country code of the product + bidding category. + product_bidding_category_constant_parent: + Output only. Resource name of the parent product bidding + category. + level: + Output only. Level of the product bidding category. + status: + Output only. Status of the product bidding category. + language_code: + Output only. Language code of the product bidding category. + localized_name: + Output only. Display value of the product bidding category + localized according to language\_code. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.resources.ProductBiddingCategoryConstant) + )) +_sym_db.RegisterMessage(ProductBiddingCategoryConstant) + + +DESCRIPTOR._options = None +_PRODUCTBIDDINGCATEGORYCONSTANT.fields_by_name['resource_name']._options = None +_PRODUCTBIDDINGCATEGORYCONSTANT.fields_by_name['id']._options = None +_PRODUCTBIDDINGCATEGORYCONSTANT.fields_by_name['country_code']._options = None +_PRODUCTBIDDINGCATEGORYCONSTANT.fields_by_name['product_bidding_category_constant_parent']._options = None +_PRODUCTBIDDINGCATEGORYCONSTANT.fields_by_name['level']._options = None +_PRODUCTBIDDINGCATEGORYCONSTANT.fields_by_name['status']._options = None +_PRODUCTBIDDINGCATEGORYCONSTANT.fields_by_name['language_code']._options = None +_PRODUCTBIDDINGCATEGORYCONSTANT.fields_by_name['localized_name']._options = None +_PRODUCTBIDDINGCATEGORYCONSTANT._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v4/proto/resources/product_bidding_category_constant_pb2_grpc.py b/google/ads/google_ads/v4/proto/resources/product_bidding_category_constant_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v4/proto/resources/product_bidding_category_constant_pb2_grpc.py @@ -0,0 +1,3 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +import grpc + diff --git a/google/ads/google_ads/v4/proto/resources/product_group_view_pb2.py b/google/ads/google_ads/v4/proto/resources/product_group_view_pb2.py new file mode 100644 index 000000000..8eabda835 --- /dev/null +++ b/google/ads/google_ads/v4/proto/resources/product_group_view_pb2.py @@ -0,0 +1,87 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/resources/product_group_view.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/resources/product_group_view.proto', + package='google.ads.googleads.v4.resources', + syntax='proto3', + serialized_options=_b('\n%com.google.ads.googleads.v4.resourcesB\025ProductGroupViewProtoP\001ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v4/resources;resources\242\002\003GAA\252\002!Google.Ads.GoogleAds.V4.Resources\312\002!Google\\Ads\\GoogleAds\\V4\\Resources\352\002%Google::Ads::GoogleAds::V4::Resources'), + serialized_pb=_b('\n@google/ads/googleads_v4/proto/resources/product_group_view.proto\x12!google.ads.googleads.v4.resources\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1cgoogle/api/annotations.proto\"\xc9\x01\n\x10ProductGroupView\x12H\n\rresource_name\x18\x01 \x01(\tB1\xe0\x41\x03\xfa\x41+\n)googleads.googleapis.com/ProductGroupView:k\xea\x41h\n)googleads.googleapis.com/ProductGroupView\x12;customers/{customer}/productGroupViews/{product_group_view}B\x82\x02\n%com.google.ads.googleads.v4.resourcesB\x15ProductGroupViewProtoP\x01ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v4/resources;resources\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V4.Resources\xca\x02!Google\\Ads\\GoogleAds\\V4\\Resources\xea\x02%Google::Ads::GoogleAds::V4::Resourcesb\x06proto3') + , + dependencies=[google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_api_dot_resource__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + + +_PRODUCTGROUPVIEW = _descriptor.Descriptor( + name='ProductGroupView', + full_name='google.ads.googleads.v4.resources.ProductGroupView', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.resources.ProductGroupView.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003\372A+\n)googleads.googleapis.com/ProductGroupView'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=_b('\352Ah\n)googleads.googleapis.com/ProductGroupView\022;customers/{customer}/productGroupViews/{product_group_view}'), + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=194, + serialized_end=395, +) + +DESCRIPTOR.message_types_by_name['ProductGroupView'] = _PRODUCTGROUPVIEW +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +ProductGroupView = _reflection.GeneratedProtocolMessageType('ProductGroupView', (_message.Message,), dict( + DESCRIPTOR = _PRODUCTGROUPVIEW, + __module__ = 'google.ads.googleads_v4.proto.resources.product_group_view_pb2' + , + __doc__ = """A product group view. + + + Attributes: + resource_name: + Output only. The resource name of the product group view. + Product group view resource names have the form: ``customers/ + {customer_id}/productGroupViews/{ad_group_id}~{criterion_id}`` + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.resources.ProductGroupView) + )) +_sym_db.RegisterMessage(ProductGroupView) + + +DESCRIPTOR._options = None +_PRODUCTGROUPVIEW.fields_by_name['resource_name']._options = None +_PRODUCTGROUPVIEW._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v4/proto/resources/product_group_view_pb2_grpc.py b/google/ads/google_ads/v4/proto/resources/product_group_view_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v4/proto/resources/product_group_view_pb2_grpc.py @@ -0,0 +1,3 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +import grpc + diff --git a/google/ads/google_ads/v4/proto/resources/recommendation_pb2.py b/google/ads/google_ads/v4/proto/resources/recommendation_pb2.py new file mode 100644 index 000000000..c00aa649d --- /dev/null +++ b/google/ads/google_ads/v4/proto/resources/recommendation_pb2.py @@ -0,0 +1,1423 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/resources/recommendation.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.ads.google_ads.v4.proto.common import criteria_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_criteria__pb2 +from google.ads.google_ads.v4.proto.common import extensions_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_extensions__pb2 +from google.ads.google_ads.v4.proto.enums import keyword_match_type_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_keyword__match__type__pb2 +from google.ads.google_ads.v4.proto.enums import recommendation_type_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_recommendation__type__pb2 +from google.ads.google_ads.v4.proto.enums import target_cpa_opt_in_recommendation_goal_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_target__cpa__opt__in__recommendation__goal__pb2 +from google.ads.google_ads.v4.proto.resources import ad_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_ad__pb2 +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 +from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/resources/recommendation.proto', + package='google.ads.googleads.v4.resources', + syntax='proto3', + serialized_options=_b('\n%com.google.ads.googleads.v4.resourcesB\023RecommendationProtoP\001ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v4/resources;resources\242\002\003GAA\252\002!Google.Ads.GoogleAds.V4.Resources\312\002!Google\\Ads\\GoogleAds\\V4\\Resources\352\002%Google::Ads::GoogleAds::V4::Resources'), + serialized_pb=_b('\n\n\x14\x62udget_amount_micros\x18\x01 \x01(\x0b\x32\x1b.google.protobuf.Int64ValueB\x03\xe0\x41\x03\x12[\n\x06impact\x18\x02 \x01(\x0b\x32\x46.google.ads.googleads.v4.resources.Recommendation.RecommendationImpactB\x03\xe0\x41\x03\x1a\xa0\x01\n\x15KeywordRecommendation\x12\x41\n\x07keyword\x18\x01 \x01(\x0b\x32+.google.ads.googleads.v4.common.KeywordInfoB\x03\xe0\x41\x03\x12\x44\n\x1arecommended_cpc_bid_micros\x18\x02 \x01(\x0b\x32\x1b.google.protobuf.Int64ValueB\x03\xe0\x41\x03\x1a\xfd\x04\n\x1cTargetCpaOptInRecommendation\x12\x87\x01\n\x07options\x18\x01 \x03(\x0b\x32q.google.ads.googleads.v4.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOptionB\x03\xe0\x41\x03\x12G\n\x1drecommended_target_cpa_micros\x18\x02 \x01(\x0b\x32\x1b.google.protobuf.Int64ValueB\x03\xe0\x41\x03\x1a\x89\x03\n\"TargetCpaOptInRecommendationOption\x12w\n\x04goal\x18\x01 \x01(\x0e\x32\x64.google.ads.googleads.v4.enums.TargetCpaOptInRecommendationGoalEnum.TargetCpaOptInRecommendationGoalB\x03\xe0\x41\x03\x12;\n\x11target_cpa_micros\x18\x02 \x01(\x0b\x32\x1b.google.protobuf.Int64ValueB\x03\xe0\x41\x03\x12P\n&required_campaign_budget_amount_micros\x18\x03 \x01(\x0b\x32\x1b.google.protobuf.Int64ValueB\x03\xe0\x41\x03\x12[\n\x06impact\x18\x04 \x01(\x0b\x32\x46.google.ads.googleads.v4.resources.Recommendation.RecommendationImpactB\x03\xe0\x41\x03\x1a\xd7\x01\n\x1eMoveUnusedBudgetRecommendation\x12\x41\n\x16\x65xcess_campaign_budget\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValueB\x03\xe0\x41\x03\x12r\n\x15\x62udget_recommendation\x18\x02 \x01(\x0b\x32N.google.ads.googleads.v4.resources.Recommendation.CampaignBudgetRecommendationB\x03\xe0\x41\x03\x1a\xc4\x01\n\x14TextAdRecommendation\x12\x36\n\x02\x61\x64\x18\x01 \x01(\x0b\x32%.google.ads.googleads.v4.resources.AdB\x03\xe0\x41\x03\x12\x38\n\rcreation_date\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValueB\x03\xe0\x41\x03\x12:\n\x0f\x61uto_apply_date\x18\x03 \x01(\x0b\x32\x1c.google.protobuf.StringValueB\x03\xe0\x41\x03\x1a \n\x1e\x45nhancedCpcOptInRecommendation\x1a#\n!SearchPartnersOptInRecommendation\x1at\n&MaximizeConversionsOptInRecommendation\x12J\n recommended_budget_amount_micros\x18\x01 \x01(\x0b\x32\x1b.google.protobuf.Int64ValueB\x03\xe0\x41\x03\x1ao\n!MaximizeClicksOptInRecommendation\x12J\n recommended_budget_amount_micros\x18\x01 \x01(\x0b\x32\x1b.google.protobuf.Int64ValueB\x03\xe0\x41\x03\x1a\"\n OptimizeAdRotationRecommendation\x1ax\n\x1fSitelinkExtensionRecommendation\x12U\n\x16recommended_extensions\x18\x01 \x03(\x0b\x32\x30.google.ads.googleads.v4.common.SitelinkFeedItemB\x03\xe0\x41\x03\x1a\xce\x01\n\x1eKeywordMatchTypeRecommendation\x12\x41\n\x07keyword\x18\x01 \x01(\x0b\x32+.google.ads.googleads.v4.common.KeywordInfoB\x03\xe0\x41\x03\x12i\n\x16recommended_match_type\x18\x02 \x01(\x0e\x32\x44.google.ads.googleads.v4.enums.KeywordMatchTypeEnum.KeywordMatchTypeB\x03\xe0\x41\x03\x1av\n\x1e\x43\x61lloutExtensionRecommendation\x12T\n\x16recommended_extensions\x18\x01 \x03(\x0b\x32/.google.ads.googleads.v4.common.CalloutFeedItemB\x03\xe0\x41\x03\x1ap\n\x1b\x43\x61llExtensionRecommendation\x12Q\n\x16recommended_extensions\x18\x01 \x03(\x0b\x32,.google.ads.googleads.v4.common.CallFeedItemB\x03\xe0\x41\x03:c\xea\x41`\n\'googleads.googleapis.com/Recommendation\x12\x35\x63ustomers/{customer}/recommendations/{recommendation}B\x10\n\x0erecommendationB\x80\x02\n%com.google.ads.googleads.v4.resourcesB\x13RecommendationProtoP\x01ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v4/resources;resources\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V4.Resources\xca\x02!Google\\Ads\\GoogleAds\\V4\\Resources\xea\x02%Google::Ads::GoogleAds::V4::Resourcesb\x06proto3') + , + dependencies=[google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_criteria__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_extensions__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_keyword__match__type__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_recommendation__type__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_target__cpa__opt__in__recommendation__goal__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_ad__pb2.DESCRIPTOR,google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_api_dot_resource__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + + +_RECOMMENDATION_RECOMMENDATIONIMPACT = _descriptor.Descriptor( + name='RecommendationImpact', + full_name='google.ads.googleads.v4.resources.Recommendation.RecommendationImpact', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='base_metrics', full_name='google.ads.googleads.v4.resources.Recommendation.RecommendationImpact.base_metrics', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='potential_metrics', full_name='google.ads.googleads.v4.resources.Recommendation.RecommendationImpact.potential_metrics', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=3037, + serialized_end=3264, +) + +_RECOMMENDATION_RECOMMENDATIONMETRICS = _descriptor.Descriptor( + name='RecommendationMetrics', + full_name='google.ads.googleads.v4.resources.Recommendation.RecommendationMetrics', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='impressions', full_name='google.ads.googleads.v4.resources.Recommendation.RecommendationMetrics.impressions', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='clicks', full_name='google.ads.googleads.v4.resources.Recommendation.RecommendationMetrics.clicks', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='cost_micros', full_name='google.ads.googleads.v4.resources.Recommendation.RecommendationMetrics.cost_micros', index=2, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='conversions', full_name='google.ads.googleads.v4.resources.Recommendation.RecommendationMetrics.conversions', index=3, + number=4, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='video_views', full_name='google.ads.googleads.v4.resources.Recommendation.RecommendationMetrics.video_views', index=4, + number=5, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=3267, + serialized_end=3564, +) + +_RECOMMENDATION_CAMPAIGNBUDGETRECOMMENDATION_CAMPAIGNBUDGETRECOMMENDATIONOPTION = _descriptor.Descriptor( + name='CampaignBudgetRecommendationOption', + full_name='google.ads.googleads.v4.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='budget_amount_micros', full_name='google.ads.googleads.v4.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption.budget_amount_micros', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='impact', full_name='google.ads.googleads.v4.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption.impact', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=3893, + serialized_end=4086, +) + +_RECOMMENDATION_CAMPAIGNBUDGETRECOMMENDATION = _descriptor.Descriptor( + name='CampaignBudgetRecommendation', + full_name='google.ads.googleads.v4.resources.Recommendation.CampaignBudgetRecommendation', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='current_budget_amount_micros', full_name='google.ads.googleads.v4.resources.Recommendation.CampaignBudgetRecommendation.current_budget_amount_micros', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='recommended_budget_amount_micros', full_name='google.ads.googleads.v4.resources.Recommendation.CampaignBudgetRecommendation.recommended_budget_amount_micros', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='budget_options', full_name='google.ads.googleads.v4.resources.Recommendation.CampaignBudgetRecommendation.budget_options', index=2, + number=3, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[_RECOMMENDATION_CAMPAIGNBUDGETRECOMMENDATION_CAMPAIGNBUDGETRECOMMENDATIONOPTION, ], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=3567, + serialized_end=4086, +) + +_RECOMMENDATION_KEYWORDRECOMMENDATION = _descriptor.Descriptor( + name='KeywordRecommendation', + full_name='google.ads.googleads.v4.resources.Recommendation.KeywordRecommendation', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='keyword', full_name='google.ads.googleads.v4.resources.Recommendation.KeywordRecommendation.keyword', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='recommended_cpc_bid_micros', full_name='google.ads.googleads.v4.resources.Recommendation.KeywordRecommendation.recommended_cpc_bid_micros', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=4089, + serialized_end=4249, +) + +_RECOMMENDATION_TARGETCPAOPTINRECOMMENDATION_TARGETCPAOPTINRECOMMENDATIONOPTION = _descriptor.Descriptor( + name='TargetCpaOptInRecommendationOption', + full_name='google.ads.googleads.v4.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='goal', full_name='google.ads.googleads.v4.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption.goal', index=0, + number=1, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='target_cpa_micros', full_name='google.ads.googleads.v4.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption.target_cpa_micros', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='required_campaign_budget_amount_micros', full_name='google.ads.googleads.v4.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption.required_campaign_budget_amount_micros', index=2, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='impact', full_name='google.ads.googleads.v4.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption.impact', index=3, + number=4, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=4496, + serialized_end=4889, +) + +_RECOMMENDATION_TARGETCPAOPTINRECOMMENDATION = _descriptor.Descriptor( + name='TargetCpaOptInRecommendation', + full_name='google.ads.googleads.v4.resources.Recommendation.TargetCpaOptInRecommendation', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='options', full_name='google.ads.googleads.v4.resources.Recommendation.TargetCpaOptInRecommendation.options', index=0, + number=1, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='recommended_target_cpa_micros', full_name='google.ads.googleads.v4.resources.Recommendation.TargetCpaOptInRecommendation.recommended_target_cpa_micros', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[_RECOMMENDATION_TARGETCPAOPTINRECOMMENDATION_TARGETCPAOPTINRECOMMENDATIONOPTION, ], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=4252, + serialized_end=4889, +) + +_RECOMMENDATION_MOVEUNUSEDBUDGETRECOMMENDATION = _descriptor.Descriptor( + name='MoveUnusedBudgetRecommendation', + full_name='google.ads.googleads.v4.resources.Recommendation.MoveUnusedBudgetRecommendation', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='excess_campaign_budget', full_name='google.ads.googleads.v4.resources.Recommendation.MoveUnusedBudgetRecommendation.excess_campaign_budget', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='budget_recommendation', full_name='google.ads.googleads.v4.resources.Recommendation.MoveUnusedBudgetRecommendation.budget_recommendation', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=4892, + serialized_end=5107, +) + +_RECOMMENDATION_TEXTADRECOMMENDATION = _descriptor.Descriptor( + name='TextAdRecommendation', + full_name='google.ads.googleads.v4.resources.Recommendation.TextAdRecommendation', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='ad', full_name='google.ads.googleads.v4.resources.Recommendation.TextAdRecommendation.ad', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='creation_date', full_name='google.ads.googleads.v4.resources.Recommendation.TextAdRecommendation.creation_date', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='auto_apply_date', full_name='google.ads.googleads.v4.resources.Recommendation.TextAdRecommendation.auto_apply_date', index=2, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=5110, + serialized_end=5306, +) + +_RECOMMENDATION_ENHANCEDCPCOPTINRECOMMENDATION = _descriptor.Descriptor( + name='EnhancedCpcOptInRecommendation', + full_name='google.ads.googleads.v4.resources.Recommendation.EnhancedCpcOptInRecommendation', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=5308, + serialized_end=5340, +) + +_RECOMMENDATION_SEARCHPARTNERSOPTINRECOMMENDATION = _descriptor.Descriptor( + name='SearchPartnersOptInRecommendation', + full_name='google.ads.googleads.v4.resources.Recommendation.SearchPartnersOptInRecommendation', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=5342, + serialized_end=5377, +) + +_RECOMMENDATION_MAXIMIZECONVERSIONSOPTINRECOMMENDATION = _descriptor.Descriptor( + name='MaximizeConversionsOptInRecommendation', + full_name='google.ads.googleads.v4.resources.Recommendation.MaximizeConversionsOptInRecommendation', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='recommended_budget_amount_micros', full_name='google.ads.googleads.v4.resources.Recommendation.MaximizeConversionsOptInRecommendation.recommended_budget_amount_micros', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=5379, + serialized_end=5495, +) + +_RECOMMENDATION_MAXIMIZECLICKSOPTINRECOMMENDATION = _descriptor.Descriptor( + name='MaximizeClicksOptInRecommendation', + full_name='google.ads.googleads.v4.resources.Recommendation.MaximizeClicksOptInRecommendation', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='recommended_budget_amount_micros', full_name='google.ads.googleads.v4.resources.Recommendation.MaximizeClicksOptInRecommendation.recommended_budget_amount_micros', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=5497, + serialized_end=5608, +) + +_RECOMMENDATION_OPTIMIZEADROTATIONRECOMMENDATION = _descriptor.Descriptor( + name='OptimizeAdRotationRecommendation', + full_name='google.ads.googleads.v4.resources.Recommendation.OptimizeAdRotationRecommendation', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=5610, + serialized_end=5644, +) + +_RECOMMENDATION_SITELINKEXTENSIONRECOMMENDATION = _descriptor.Descriptor( + name='SitelinkExtensionRecommendation', + full_name='google.ads.googleads.v4.resources.Recommendation.SitelinkExtensionRecommendation', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='recommended_extensions', full_name='google.ads.googleads.v4.resources.Recommendation.SitelinkExtensionRecommendation.recommended_extensions', index=0, + number=1, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=5646, + serialized_end=5766, +) + +_RECOMMENDATION_KEYWORDMATCHTYPERECOMMENDATION = _descriptor.Descriptor( + name='KeywordMatchTypeRecommendation', + full_name='google.ads.googleads.v4.resources.Recommendation.KeywordMatchTypeRecommendation', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='keyword', full_name='google.ads.googleads.v4.resources.Recommendation.KeywordMatchTypeRecommendation.keyword', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='recommended_match_type', full_name='google.ads.googleads.v4.resources.Recommendation.KeywordMatchTypeRecommendation.recommended_match_type', index=1, + number=2, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=5769, + serialized_end=5975, +) + +_RECOMMENDATION_CALLOUTEXTENSIONRECOMMENDATION = _descriptor.Descriptor( + name='CalloutExtensionRecommendation', + full_name='google.ads.googleads.v4.resources.Recommendation.CalloutExtensionRecommendation', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='recommended_extensions', full_name='google.ads.googleads.v4.resources.Recommendation.CalloutExtensionRecommendation.recommended_extensions', index=0, + number=1, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=5977, + serialized_end=6095, +) + +_RECOMMENDATION_CALLEXTENSIONRECOMMENDATION = _descriptor.Descriptor( + name='CallExtensionRecommendation', + full_name='google.ads.googleads.v4.resources.Recommendation.CallExtensionRecommendation', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='recommended_extensions', full_name='google.ads.googleads.v4.resources.Recommendation.CallExtensionRecommendation.recommended_extensions', index=0, + number=1, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=6097, + serialized_end=6209, +) + +_RECOMMENDATION = _descriptor.Descriptor( + name='Recommendation', + full_name='google.ads.googleads.v4.resources.Recommendation', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.resources.Recommendation.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005\372A)\n\'googleads.googleapis.com/Recommendation'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='type', full_name='google.ads.googleads.v4.resources.Recommendation.type', index=1, + number=2, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='impact', full_name='google.ads.googleads.v4.resources.Recommendation.impact', index=2, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='campaign_budget', full_name='google.ads.googleads.v4.resources.Recommendation.campaign_budget', index=3, + number=5, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003\372A)\n\'googleads.googleapis.com/CampaignBudget'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='campaign', full_name='google.ads.googleads.v4.resources.Recommendation.campaign', index=4, + number=6, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003\372A#\n!googleads.googleapis.com/Campaign'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='ad_group', full_name='google.ads.googleads.v4.resources.Recommendation.ad_group', index=5, + number=7, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003\372A\"\n googleads.googleapis.com/AdGroup'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='dismissed', full_name='google.ads.googleads.v4.resources.Recommendation.dismissed', index=6, + number=13, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='campaign_budget_recommendation', full_name='google.ads.googleads.v4.resources.Recommendation.campaign_budget_recommendation', index=7, + number=4, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='keyword_recommendation', full_name='google.ads.googleads.v4.resources.Recommendation.keyword_recommendation', index=8, + number=8, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='text_ad_recommendation', full_name='google.ads.googleads.v4.resources.Recommendation.text_ad_recommendation', index=9, + number=9, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='target_cpa_opt_in_recommendation', full_name='google.ads.googleads.v4.resources.Recommendation.target_cpa_opt_in_recommendation', index=10, + number=10, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='maximize_conversions_opt_in_recommendation', full_name='google.ads.googleads.v4.resources.Recommendation.maximize_conversions_opt_in_recommendation', index=11, + number=11, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='enhanced_cpc_opt_in_recommendation', full_name='google.ads.googleads.v4.resources.Recommendation.enhanced_cpc_opt_in_recommendation', index=12, + number=12, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='search_partners_opt_in_recommendation', full_name='google.ads.googleads.v4.resources.Recommendation.search_partners_opt_in_recommendation', index=13, + number=14, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='maximize_clicks_opt_in_recommendation', full_name='google.ads.googleads.v4.resources.Recommendation.maximize_clicks_opt_in_recommendation', index=14, + number=15, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='optimize_ad_rotation_recommendation', full_name='google.ads.googleads.v4.resources.Recommendation.optimize_ad_rotation_recommendation', index=15, + number=16, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='callout_extension_recommendation', full_name='google.ads.googleads.v4.resources.Recommendation.callout_extension_recommendation', index=16, + number=17, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='sitelink_extension_recommendation', full_name='google.ads.googleads.v4.resources.Recommendation.sitelink_extension_recommendation', index=17, + number=18, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='call_extension_recommendation', full_name='google.ads.googleads.v4.resources.Recommendation.call_extension_recommendation', index=18, + number=19, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='keyword_match_type_recommendation', full_name='google.ads.googleads.v4.resources.Recommendation.keyword_match_type_recommendation', index=19, + number=20, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='move_unused_budget_recommendation', full_name='google.ads.googleads.v4.resources.Recommendation.move_unused_budget_recommendation', index=20, + number=21, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[_RECOMMENDATION_RECOMMENDATIONIMPACT, _RECOMMENDATION_RECOMMENDATIONMETRICS, _RECOMMENDATION_CAMPAIGNBUDGETRECOMMENDATION, _RECOMMENDATION_KEYWORDRECOMMENDATION, _RECOMMENDATION_TARGETCPAOPTINRECOMMENDATION, _RECOMMENDATION_MOVEUNUSEDBUDGETRECOMMENDATION, _RECOMMENDATION_TEXTADRECOMMENDATION, _RECOMMENDATION_ENHANCEDCPCOPTINRECOMMENDATION, _RECOMMENDATION_SEARCHPARTNERSOPTINRECOMMENDATION, _RECOMMENDATION_MAXIMIZECONVERSIONSOPTINRECOMMENDATION, _RECOMMENDATION_MAXIMIZECLICKSOPTINRECOMMENDATION, _RECOMMENDATION_OPTIMIZEADROTATIONRECOMMENDATION, _RECOMMENDATION_SITELINKEXTENSIONRECOMMENDATION, _RECOMMENDATION_KEYWORDMATCHTYPERECOMMENDATION, _RECOMMENDATION_CALLOUTEXTENSIONRECOMMENDATION, _RECOMMENDATION_CALLEXTENSIONRECOMMENDATION, ], + enum_types=[ + ], + serialized_options=_b('\352A`\n\'googleads.googleapis.com/Recommendation\0225customers/{customer}/recommendations/{recommendation}'), + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name='recommendation', full_name='google.ads.googleads.v4.resources.Recommendation.recommendation', + index=0, containing_type=None, fields=[]), + ], + serialized_start=586, + serialized_end=6328, +) + +_RECOMMENDATION_RECOMMENDATIONIMPACT.fields_by_name['base_metrics'].message_type = _RECOMMENDATION_RECOMMENDATIONMETRICS +_RECOMMENDATION_RECOMMENDATIONIMPACT.fields_by_name['potential_metrics'].message_type = _RECOMMENDATION_RECOMMENDATIONMETRICS +_RECOMMENDATION_RECOMMENDATIONIMPACT.containing_type = _RECOMMENDATION +_RECOMMENDATION_RECOMMENDATIONMETRICS.fields_by_name['impressions'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE +_RECOMMENDATION_RECOMMENDATIONMETRICS.fields_by_name['clicks'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE +_RECOMMENDATION_RECOMMENDATIONMETRICS.fields_by_name['cost_micros'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_RECOMMENDATION_RECOMMENDATIONMETRICS.fields_by_name['conversions'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE +_RECOMMENDATION_RECOMMENDATIONMETRICS.fields_by_name['video_views'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE +_RECOMMENDATION_RECOMMENDATIONMETRICS.containing_type = _RECOMMENDATION +_RECOMMENDATION_CAMPAIGNBUDGETRECOMMENDATION_CAMPAIGNBUDGETRECOMMENDATIONOPTION.fields_by_name['budget_amount_micros'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_RECOMMENDATION_CAMPAIGNBUDGETRECOMMENDATION_CAMPAIGNBUDGETRECOMMENDATIONOPTION.fields_by_name['impact'].message_type = _RECOMMENDATION_RECOMMENDATIONIMPACT +_RECOMMENDATION_CAMPAIGNBUDGETRECOMMENDATION_CAMPAIGNBUDGETRECOMMENDATIONOPTION.containing_type = _RECOMMENDATION_CAMPAIGNBUDGETRECOMMENDATION +_RECOMMENDATION_CAMPAIGNBUDGETRECOMMENDATION.fields_by_name['current_budget_amount_micros'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_RECOMMENDATION_CAMPAIGNBUDGETRECOMMENDATION.fields_by_name['recommended_budget_amount_micros'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_RECOMMENDATION_CAMPAIGNBUDGETRECOMMENDATION.fields_by_name['budget_options'].message_type = _RECOMMENDATION_CAMPAIGNBUDGETRECOMMENDATION_CAMPAIGNBUDGETRECOMMENDATIONOPTION +_RECOMMENDATION_CAMPAIGNBUDGETRECOMMENDATION.containing_type = _RECOMMENDATION +_RECOMMENDATION_KEYWORDRECOMMENDATION.fields_by_name['keyword'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_criteria__pb2._KEYWORDINFO +_RECOMMENDATION_KEYWORDRECOMMENDATION.fields_by_name['recommended_cpc_bid_micros'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_RECOMMENDATION_KEYWORDRECOMMENDATION.containing_type = _RECOMMENDATION +_RECOMMENDATION_TARGETCPAOPTINRECOMMENDATION_TARGETCPAOPTINRECOMMENDATIONOPTION.fields_by_name['goal'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_target__cpa__opt__in__recommendation__goal__pb2._TARGETCPAOPTINRECOMMENDATIONGOALENUM_TARGETCPAOPTINRECOMMENDATIONGOAL +_RECOMMENDATION_TARGETCPAOPTINRECOMMENDATION_TARGETCPAOPTINRECOMMENDATIONOPTION.fields_by_name['target_cpa_micros'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_RECOMMENDATION_TARGETCPAOPTINRECOMMENDATION_TARGETCPAOPTINRECOMMENDATIONOPTION.fields_by_name['required_campaign_budget_amount_micros'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_RECOMMENDATION_TARGETCPAOPTINRECOMMENDATION_TARGETCPAOPTINRECOMMENDATIONOPTION.fields_by_name['impact'].message_type = _RECOMMENDATION_RECOMMENDATIONIMPACT +_RECOMMENDATION_TARGETCPAOPTINRECOMMENDATION_TARGETCPAOPTINRECOMMENDATIONOPTION.containing_type = _RECOMMENDATION_TARGETCPAOPTINRECOMMENDATION +_RECOMMENDATION_TARGETCPAOPTINRECOMMENDATION.fields_by_name['options'].message_type = _RECOMMENDATION_TARGETCPAOPTINRECOMMENDATION_TARGETCPAOPTINRECOMMENDATIONOPTION +_RECOMMENDATION_TARGETCPAOPTINRECOMMENDATION.fields_by_name['recommended_target_cpa_micros'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_RECOMMENDATION_TARGETCPAOPTINRECOMMENDATION.containing_type = _RECOMMENDATION +_RECOMMENDATION_MOVEUNUSEDBUDGETRECOMMENDATION.fields_by_name['excess_campaign_budget'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_RECOMMENDATION_MOVEUNUSEDBUDGETRECOMMENDATION.fields_by_name['budget_recommendation'].message_type = _RECOMMENDATION_CAMPAIGNBUDGETRECOMMENDATION +_RECOMMENDATION_MOVEUNUSEDBUDGETRECOMMENDATION.containing_type = _RECOMMENDATION +_RECOMMENDATION_TEXTADRECOMMENDATION.fields_by_name['ad'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_ad__pb2._AD +_RECOMMENDATION_TEXTADRECOMMENDATION.fields_by_name['creation_date'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_RECOMMENDATION_TEXTADRECOMMENDATION.fields_by_name['auto_apply_date'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_RECOMMENDATION_TEXTADRECOMMENDATION.containing_type = _RECOMMENDATION +_RECOMMENDATION_ENHANCEDCPCOPTINRECOMMENDATION.containing_type = _RECOMMENDATION +_RECOMMENDATION_SEARCHPARTNERSOPTINRECOMMENDATION.containing_type = _RECOMMENDATION +_RECOMMENDATION_MAXIMIZECONVERSIONSOPTINRECOMMENDATION.fields_by_name['recommended_budget_amount_micros'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_RECOMMENDATION_MAXIMIZECONVERSIONSOPTINRECOMMENDATION.containing_type = _RECOMMENDATION +_RECOMMENDATION_MAXIMIZECLICKSOPTINRECOMMENDATION.fields_by_name['recommended_budget_amount_micros'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_RECOMMENDATION_MAXIMIZECLICKSOPTINRECOMMENDATION.containing_type = _RECOMMENDATION +_RECOMMENDATION_OPTIMIZEADROTATIONRECOMMENDATION.containing_type = _RECOMMENDATION +_RECOMMENDATION_SITELINKEXTENSIONRECOMMENDATION.fields_by_name['recommended_extensions'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_extensions__pb2._SITELINKFEEDITEM +_RECOMMENDATION_SITELINKEXTENSIONRECOMMENDATION.containing_type = _RECOMMENDATION +_RECOMMENDATION_KEYWORDMATCHTYPERECOMMENDATION.fields_by_name['keyword'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_criteria__pb2._KEYWORDINFO +_RECOMMENDATION_KEYWORDMATCHTYPERECOMMENDATION.fields_by_name['recommended_match_type'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_keyword__match__type__pb2._KEYWORDMATCHTYPEENUM_KEYWORDMATCHTYPE +_RECOMMENDATION_KEYWORDMATCHTYPERECOMMENDATION.containing_type = _RECOMMENDATION +_RECOMMENDATION_CALLOUTEXTENSIONRECOMMENDATION.fields_by_name['recommended_extensions'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_extensions__pb2._CALLOUTFEEDITEM +_RECOMMENDATION_CALLOUTEXTENSIONRECOMMENDATION.containing_type = _RECOMMENDATION +_RECOMMENDATION_CALLEXTENSIONRECOMMENDATION.fields_by_name['recommended_extensions'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_extensions__pb2._CALLFEEDITEM +_RECOMMENDATION_CALLEXTENSIONRECOMMENDATION.containing_type = _RECOMMENDATION +_RECOMMENDATION.fields_by_name['type'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_recommendation__type__pb2._RECOMMENDATIONTYPEENUM_RECOMMENDATIONTYPE +_RECOMMENDATION.fields_by_name['impact'].message_type = _RECOMMENDATION_RECOMMENDATIONIMPACT +_RECOMMENDATION.fields_by_name['campaign_budget'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_RECOMMENDATION.fields_by_name['campaign'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_RECOMMENDATION.fields_by_name['ad_group'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_RECOMMENDATION.fields_by_name['dismissed'].message_type = google_dot_protobuf_dot_wrappers__pb2._BOOLVALUE +_RECOMMENDATION.fields_by_name['campaign_budget_recommendation'].message_type = _RECOMMENDATION_CAMPAIGNBUDGETRECOMMENDATION +_RECOMMENDATION.fields_by_name['keyword_recommendation'].message_type = _RECOMMENDATION_KEYWORDRECOMMENDATION +_RECOMMENDATION.fields_by_name['text_ad_recommendation'].message_type = _RECOMMENDATION_TEXTADRECOMMENDATION +_RECOMMENDATION.fields_by_name['target_cpa_opt_in_recommendation'].message_type = _RECOMMENDATION_TARGETCPAOPTINRECOMMENDATION +_RECOMMENDATION.fields_by_name['maximize_conversions_opt_in_recommendation'].message_type = _RECOMMENDATION_MAXIMIZECONVERSIONSOPTINRECOMMENDATION +_RECOMMENDATION.fields_by_name['enhanced_cpc_opt_in_recommendation'].message_type = _RECOMMENDATION_ENHANCEDCPCOPTINRECOMMENDATION +_RECOMMENDATION.fields_by_name['search_partners_opt_in_recommendation'].message_type = _RECOMMENDATION_SEARCHPARTNERSOPTINRECOMMENDATION +_RECOMMENDATION.fields_by_name['maximize_clicks_opt_in_recommendation'].message_type = _RECOMMENDATION_MAXIMIZECLICKSOPTINRECOMMENDATION +_RECOMMENDATION.fields_by_name['optimize_ad_rotation_recommendation'].message_type = _RECOMMENDATION_OPTIMIZEADROTATIONRECOMMENDATION +_RECOMMENDATION.fields_by_name['callout_extension_recommendation'].message_type = _RECOMMENDATION_CALLOUTEXTENSIONRECOMMENDATION +_RECOMMENDATION.fields_by_name['sitelink_extension_recommendation'].message_type = _RECOMMENDATION_SITELINKEXTENSIONRECOMMENDATION +_RECOMMENDATION.fields_by_name['call_extension_recommendation'].message_type = _RECOMMENDATION_CALLEXTENSIONRECOMMENDATION +_RECOMMENDATION.fields_by_name['keyword_match_type_recommendation'].message_type = _RECOMMENDATION_KEYWORDMATCHTYPERECOMMENDATION +_RECOMMENDATION.fields_by_name['move_unused_budget_recommendation'].message_type = _RECOMMENDATION_MOVEUNUSEDBUDGETRECOMMENDATION +_RECOMMENDATION.oneofs_by_name['recommendation'].fields.append( + _RECOMMENDATION.fields_by_name['campaign_budget_recommendation']) +_RECOMMENDATION.fields_by_name['campaign_budget_recommendation'].containing_oneof = _RECOMMENDATION.oneofs_by_name['recommendation'] +_RECOMMENDATION.oneofs_by_name['recommendation'].fields.append( + _RECOMMENDATION.fields_by_name['keyword_recommendation']) +_RECOMMENDATION.fields_by_name['keyword_recommendation'].containing_oneof = _RECOMMENDATION.oneofs_by_name['recommendation'] +_RECOMMENDATION.oneofs_by_name['recommendation'].fields.append( + _RECOMMENDATION.fields_by_name['text_ad_recommendation']) +_RECOMMENDATION.fields_by_name['text_ad_recommendation'].containing_oneof = _RECOMMENDATION.oneofs_by_name['recommendation'] +_RECOMMENDATION.oneofs_by_name['recommendation'].fields.append( + _RECOMMENDATION.fields_by_name['target_cpa_opt_in_recommendation']) +_RECOMMENDATION.fields_by_name['target_cpa_opt_in_recommendation'].containing_oneof = _RECOMMENDATION.oneofs_by_name['recommendation'] +_RECOMMENDATION.oneofs_by_name['recommendation'].fields.append( + _RECOMMENDATION.fields_by_name['maximize_conversions_opt_in_recommendation']) +_RECOMMENDATION.fields_by_name['maximize_conversions_opt_in_recommendation'].containing_oneof = _RECOMMENDATION.oneofs_by_name['recommendation'] +_RECOMMENDATION.oneofs_by_name['recommendation'].fields.append( + _RECOMMENDATION.fields_by_name['enhanced_cpc_opt_in_recommendation']) +_RECOMMENDATION.fields_by_name['enhanced_cpc_opt_in_recommendation'].containing_oneof = _RECOMMENDATION.oneofs_by_name['recommendation'] +_RECOMMENDATION.oneofs_by_name['recommendation'].fields.append( + _RECOMMENDATION.fields_by_name['search_partners_opt_in_recommendation']) +_RECOMMENDATION.fields_by_name['search_partners_opt_in_recommendation'].containing_oneof = _RECOMMENDATION.oneofs_by_name['recommendation'] +_RECOMMENDATION.oneofs_by_name['recommendation'].fields.append( + _RECOMMENDATION.fields_by_name['maximize_clicks_opt_in_recommendation']) +_RECOMMENDATION.fields_by_name['maximize_clicks_opt_in_recommendation'].containing_oneof = _RECOMMENDATION.oneofs_by_name['recommendation'] +_RECOMMENDATION.oneofs_by_name['recommendation'].fields.append( + _RECOMMENDATION.fields_by_name['optimize_ad_rotation_recommendation']) +_RECOMMENDATION.fields_by_name['optimize_ad_rotation_recommendation'].containing_oneof = _RECOMMENDATION.oneofs_by_name['recommendation'] +_RECOMMENDATION.oneofs_by_name['recommendation'].fields.append( + _RECOMMENDATION.fields_by_name['callout_extension_recommendation']) +_RECOMMENDATION.fields_by_name['callout_extension_recommendation'].containing_oneof = _RECOMMENDATION.oneofs_by_name['recommendation'] +_RECOMMENDATION.oneofs_by_name['recommendation'].fields.append( + _RECOMMENDATION.fields_by_name['sitelink_extension_recommendation']) +_RECOMMENDATION.fields_by_name['sitelink_extension_recommendation'].containing_oneof = _RECOMMENDATION.oneofs_by_name['recommendation'] +_RECOMMENDATION.oneofs_by_name['recommendation'].fields.append( + _RECOMMENDATION.fields_by_name['call_extension_recommendation']) +_RECOMMENDATION.fields_by_name['call_extension_recommendation'].containing_oneof = _RECOMMENDATION.oneofs_by_name['recommendation'] +_RECOMMENDATION.oneofs_by_name['recommendation'].fields.append( + _RECOMMENDATION.fields_by_name['keyword_match_type_recommendation']) +_RECOMMENDATION.fields_by_name['keyword_match_type_recommendation'].containing_oneof = _RECOMMENDATION.oneofs_by_name['recommendation'] +_RECOMMENDATION.oneofs_by_name['recommendation'].fields.append( + _RECOMMENDATION.fields_by_name['move_unused_budget_recommendation']) +_RECOMMENDATION.fields_by_name['move_unused_budget_recommendation'].containing_oneof = _RECOMMENDATION.oneofs_by_name['recommendation'] +DESCRIPTOR.message_types_by_name['Recommendation'] = _RECOMMENDATION +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +Recommendation = _reflection.GeneratedProtocolMessageType('Recommendation', (_message.Message,), dict( + + RecommendationImpact = _reflection.GeneratedProtocolMessageType('RecommendationImpact', (_message.Message,), dict( + DESCRIPTOR = _RECOMMENDATION_RECOMMENDATIONIMPACT, + __module__ = 'google.ads.googleads_v4.proto.resources.recommendation_pb2' + , + __doc__ = """The impact of making the change as described in the recommendation. Some + types of recommendations may not have impact information. + + + Attributes: + base_metrics: + Output only. Base metrics at the time the recommendation was + generated. + potential_metrics: + Output only. Estimated metrics if the recommendation is + applied. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.resources.Recommendation.RecommendationImpact) + )) + , + + RecommendationMetrics = _reflection.GeneratedProtocolMessageType('RecommendationMetrics', (_message.Message,), dict( + DESCRIPTOR = _RECOMMENDATION_RECOMMENDATIONMETRICS, + __module__ = 'google.ads.googleads_v4.proto.resources.recommendation_pb2' + , + __doc__ = """Weekly account performance metrics. For some recommendation types, these + are averaged over the past 90-day period and hence can be fractional. + + + Attributes: + impressions: + Output only. Number of ad impressions. + clicks: + Output only. Number of ad clicks. + cost_micros: + Output only. Cost (in micros) for advertising, in the local + currency for the account. + conversions: + Output only. Number of conversions. + video_views: + Output only. Number of video views for a video ad campaign. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.resources.Recommendation.RecommendationMetrics) + )) + , + + CampaignBudgetRecommendation = _reflection.GeneratedProtocolMessageType('CampaignBudgetRecommendation', (_message.Message,), dict( + + CampaignBudgetRecommendationOption = _reflection.GeneratedProtocolMessageType('CampaignBudgetRecommendationOption', (_message.Message,), dict( + DESCRIPTOR = _RECOMMENDATION_CAMPAIGNBUDGETRECOMMENDATION_CAMPAIGNBUDGETRECOMMENDATIONOPTION, + __module__ = 'google.ads.googleads_v4.proto.resources.recommendation_pb2' + , + __doc__ = """The impact estimates for a given budget amount. + + + Attributes: + budget_amount_micros: + Output only. The budget amount for this option. + impact: + Output only. The impact estimate if budget is changed to + amount specified in this option. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.resources.Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption) + )) + , + DESCRIPTOR = _RECOMMENDATION_CAMPAIGNBUDGETRECOMMENDATION, + __module__ = 'google.ads.googleads_v4.proto.resources.recommendation_pb2' + , + __doc__ = """The budget recommendation for budget constrained campaigns. + + + Attributes: + current_budget_amount_micros: + Output only. The current budget amount in micros. + recommended_budget_amount_micros: + Output only. The recommended budget amount in micros. + budget_options: + Output only. The budget amounts and associated impact + estimates for some values of possible budget amounts. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.resources.Recommendation.CampaignBudgetRecommendation) + )) + , + + KeywordRecommendation = _reflection.GeneratedProtocolMessageType('KeywordRecommendation', (_message.Message,), dict( + DESCRIPTOR = _RECOMMENDATION_KEYWORDRECOMMENDATION, + __module__ = 'google.ads.googleads_v4.proto.resources.recommendation_pb2' + , + __doc__ = """The keyword recommendation. + + + Attributes: + keyword: + Output only. The recommended keyword. + recommended_cpc_bid_micros: + Output only. The recommended CPC (cost-per-click) bid. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.resources.Recommendation.KeywordRecommendation) + )) + , + + TargetCpaOptInRecommendation = _reflection.GeneratedProtocolMessageType('TargetCpaOptInRecommendation', (_message.Message,), dict( + + TargetCpaOptInRecommendationOption = _reflection.GeneratedProtocolMessageType('TargetCpaOptInRecommendationOption', (_message.Message,), dict( + DESCRIPTOR = _RECOMMENDATION_TARGETCPAOPTINRECOMMENDATION_TARGETCPAOPTINRECOMMENDATIONOPTION, + __module__ = 'google.ads.googleads_v4.proto.resources.recommendation_pb2' + , + __doc__ = """The Target CPA opt-in option with impact estimate. + + + Attributes: + goal: + Output only. The goal achieved by this option. + target_cpa_micros: + Output only. Average CPA target. + required_campaign_budget_amount_micros: + Output only. The minimum campaign budget, in local currency + for the account, required to achieve the target CPA. Amount is + specified in micros, where one million is equivalent to one + currency unit. + impact: + Output only. The impact estimate if this option is selected. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.resources.Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption) + )) + , + DESCRIPTOR = _RECOMMENDATION_TARGETCPAOPTINRECOMMENDATION, + __module__ = 'google.ads.googleads_v4.proto.resources.recommendation_pb2' + , + __doc__ = """The Target CPA opt-in recommendation. + + + Attributes: + options: + Output only. The available goals and corresponding options for + Target CPA strategy. + recommended_target_cpa_micros: + Output only. The recommended average CPA target. See required + budget amount and impact of using this recommendation in + options list. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.resources.Recommendation.TargetCpaOptInRecommendation) + )) + , + + MoveUnusedBudgetRecommendation = _reflection.GeneratedProtocolMessageType('MoveUnusedBudgetRecommendation', (_message.Message,), dict( + DESCRIPTOR = _RECOMMENDATION_MOVEUNUSEDBUDGETRECOMMENDATION, + __module__ = 'google.ads.googleads_v4.proto.resources.recommendation_pb2' + , + __doc__ = """The move unused budget recommendation. + + + Attributes: + excess_campaign_budget: + Output only. The excess budget's resource\_name. + budget_recommendation: + Output only. The recommendation for the constrained budget to + increase. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.resources.Recommendation.MoveUnusedBudgetRecommendation) + )) + , + + TextAdRecommendation = _reflection.GeneratedProtocolMessageType('TextAdRecommendation', (_message.Message,), dict( + DESCRIPTOR = _RECOMMENDATION_TEXTADRECOMMENDATION, + __module__ = 'google.ads.googleads_v4.proto.resources.recommendation_pb2' + , + __doc__ = """The text ad recommendation. + + + Attributes: + ad: + Output only. Recommended ad. + creation_date: + Output only. Creation date of the recommended ad. YYYY-MM-DD + format, e.g., 2018-04-17. + auto_apply_date: + Output only. Date, if present, is the earliest when the + recommendation will be auto applied. YYYY-MM-DD format, e.g., + 2018-04-17. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.resources.Recommendation.TextAdRecommendation) + )) + , + + EnhancedCpcOptInRecommendation = _reflection.GeneratedProtocolMessageType('EnhancedCpcOptInRecommendation', (_message.Message,), dict( + DESCRIPTOR = _RECOMMENDATION_ENHANCEDCPCOPTINRECOMMENDATION, + __module__ = 'google.ads.googleads_v4.proto.resources.recommendation_pb2' + , + __doc__ = """The Enhanced Cost-Per-Click Opt-In recommendation. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.resources.Recommendation.EnhancedCpcOptInRecommendation) + )) + , + + SearchPartnersOptInRecommendation = _reflection.GeneratedProtocolMessageType('SearchPartnersOptInRecommendation', (_message.Message,), dict( + DESCRIPTOR = _RECOMMENDATION_SEARCHPARTNERSOPTINRECOMMENDATION, + __module__ = 'google.ads.googleads_v4.proto.resources.recommendation_pb2' + , + __doc__ = """The Search Partners Opt-In recommendation. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.resources.Recommendation.SearchPartnersOptInRecommendation) + )) + , + + MaximizeConversionsOptInRecommendation = _reflection.GeneratedProtocolMessageType('MaximizeConversionsOptInRecommendation', (_message.Message,), dict( + DESCRIPTOR = _RECOMMENDATION_MAXIMIZECONVERSIONSOPTINRECOMMENDATION, + __module__ = 'google.ads.googleads_v4.proto.resources.recommendation_pb2' + , + __doc__ = """The Maximize Conversions Opt-In recommendation. + + + Attributes: + recommended_budget_amount_micros: + Output only. The recommended new budget amount. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.resources.Recommendation.MaximizeConversionsOptInRecommendation) + )) + , + + MaximizeClicksOptInRecommendation = _reflection.GeneratedProtocolMessageType('MaximizeClicksOptInRecommendation', (_message.Message,), dict( + DESCRIPTOR = _RECOMMENDATION_MAXIMIZECLICKSOPTINRECOMMENDATION, + __module__ = 'google.ads.googleads_v4.proto.resources.recommendation_pb2' + , + __doc__ = """The Maximize Clicks opt-in recommendation. + + + Attributes: + recommended_budget_amount_micros: + Output only. The recommended new budget amount. Only set if + the current budget is too high. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.resources.Recommendation.MaximizeClicksOptInRecommendation) + )) + , + + OptimizeAdRotationRecommendation = _reflection.GeneratedProtocolMessageType('OptimizeAdRotationRecommendation', (_message.Message,), dict( + DESCRIPTOR = _RECOMMENDATION_OPTIMIZEADROTATIONRECOMMENDATION, + __module__ = 'google.ads.googleads_v4.proto.resources.recommendation_pb2' + , + __doc__ = """The Optimize Ad Rotation recommendation. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.resources.Recommendation.OptimizeAdRotationRecommendation) + )) + , + + SitelinkExtensionRecommendation = _reflection.GeneratedProtocolMessageType('SitelinkExtensionRecommendation', (_message.Message,), dict( + DESCRIPTOR = _RECOMMENDATION_SITELINKEXTENSIONRECOMMENDATION, + __module__ = 'google.ads.googleads_v4.proto.resources.recommendation_pb2' + , + __doc__ = """The Sitelink extension recommendation. + + + Attributes: + recommended_extensions: + Output only. Sitelink extensions recommended to be added. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.resources.Recommendation.SitelinkExtensionRecommendation) + )) + , + + KeywordMatchTypeRecommendation = _reflection.GeneratedProtocolMessageType('KeywordMatchTypeRecommendation', (_message.Message,), dict( + DESCRIPTOR = _RECOMMENDATION_KEYWORDMATCHTYPERECOMMENDATION, + __module__ = 'google.ads.googleads_v4.proto.resources.recommendation_pb2' + , + __doc__ = """The keyword match type recommendation. + + + Attributes: + keyword: + Output only. The existing keyword where the match type should + be more broad. + recommended_match_type: + Output only. The recommended new match type. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.resources.Recommendation.KeywordMatchTypeRecommendation) + )) + , + + CalloutExtensionRecommendation = _reflection.GeneratedProtocolMessageType('CalloutExtensionRecommendation', (_message.Message,), dict( + DESCRIPTOR = _RECOMMENDATION_CALLOUTEXTENSIONRECOMMENDATION, + __module__ = 'google.ads.googleads_v4.proto.resources.recommendation_pb2' + , + __doc__ = """The Callout extension recommendation. + + + Attributes: + recommended_extensions: + Output only. Callout extensions recommended to be added. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.resources.Recommendation.CalloutExtensionRecommendation) + )) + , + + CallExtensionRecommendation = _reflection.GeneratedProtocolMessageType('CallExtensionRecommendation', (_message.Message,), dict( + DESCRIPTOR = _RECOMMENDATION_CALLEXTENSIONRECOMMENDATION, + __module__ = 'google.ads.googleads_v4.proto.resources.recommendation_pb2' + , + __doc__ = """The Call extension recommendation. + + + Attributes: + recommended_extensions: + Output only. Call extensions recommended to be added. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.resources.Recommendation.CallExtensionRecommendation) + )) + , + DESCRIPTOR = _RECOMMENDATION, + __module__ = 'google.ads.googleads_v4.proto.resources.recommendation_pb2' + , + __doc__ = """A recommendation. + + + Attributes: + resource_name: + Immutable. The resource name of the recommendation. ``custome + rs/{customer_id}/recommendations/{recommendation_id}`` + type: + Output only. The type of recommendation. + impact: + Output only. The impact on account performance as a result of + applying the recommendation. + campaign_budget: + Output only. The budget targeted by this recommendation. This + will be set only when the recommendation affects a single + campaign budget. This field will be set for the following + recommendation types: CAMPAIGN\_BUDGET, + FORECASTING\_CAMPAIGN\_BUDGET, MOVE\_UNUSED\_BUDGET + campaign: + Output only. The campaign targeted by this recommendation. + This will be set only when the recommendation affects a single + campaign. This field will be set for the following + recommendation types: CALL\_EXTENSION, CALLOUT\_EXTENSION, + ENHANCED\_CPC\_OPT\_IN, KEYWORD, KEYWORD\_MATCH\_TYPE, + MAXIMIZE\_CLICKS\_OPT\_IN, MAXIMIZE\_CONVERSIONS\_OPT\_IN, + OPTIMIZE\_AD\_ROTATION, SEARCH\_PARTNERS\_OPT\_IN, + SITELINK\_EXTENSION, TARGET\_CPA\_OPT\_IN, TEXT\_AD + ad_group: + Output only. The ad group targeted by this recommendation. + This will be set only when the recommendation affects a single + ad group. This field will be set for the following + recommendation types: KEYWORD, OPTIMIZE\_AD\_ROTATION, + TEXT\_AD + dismissed: + Output only. Whether the recommendation is dismissed or not. + recommendation: + The details of recommendation. + campaign_budget_recommendation: + Output only. The campaign budget recommendation. + keyword_recommendation: + Output only. The keyword recommendation. + text_ad_recommendation: + Output only. Add expanded text ad recommendation. + target_cpa_opt_in_recommendation: + Output only. The TargetCPA opt-in recommendation. + maximize_conversions_opt_in_recommendation: + Output only. The MaximizeConversions Opt-In recommendation. + enhanced_cpc_opt_in_recommendation: + Output only. The Enhanced Cost-Per-Click Opt-In + recommendation. + search_partners_opt_in_recommendation: + Output only. The Search Partners Opt-In recommendation. + maximize_clicks_opt_in_recommendation: + Output only. The MaximizeClicks Opt-In recommendation. + optimize_ad_rotation_recommendation: + Output only. The Optimize Ad Rotation recommendation. + callout_extension_recommendation: + Output only. The Callout extension recommendation. + sitelink_extension_recommendation: + Output only. The Sitelink extension recommendation. + call_extension_recommendation: + Output only. The Call extension recommendation. + keyword_match_type_recommendation: + Output only. The keyword match type recommendation. + move_unused_budget_recommendation: + Output only. The move unused budget recommendation. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.resources.Recommendation) + )) +_sym_db.RegisterMessage(Recommendation) +_sym_db.RegisterMessage(Recommendation.RecommendationImpact) +_sym_db.RegisterMessage(Recommendation.RecommendationMetrics) +_sym_db.RegisterMessage(Recommendation.CampaignBudgetRecommendation) +_sym_db.RegisterMessage(Recommendation.CampaignBudgetRecommendation.CampaignBudgetRecommendationOption) +_sym_db.RegisterMessage(Recommendation.KeywordRecommendation) +_sym_db.RegisterMessage(Recommendation.TargetCpaOptInRecommendation) +_sym_db.RegisterMessage(Recommendation.TargetCpaOptInRecommendation.TargetCpaOptInRecommendationOption) +_sym_db.RegisterMessage(Recommendation.MoveUnusedBudgetRecommendation) +_sym_db.RegisterMessage(Recommendation.TextAdRecommendation) +_sym_db.RegisterMessage(Recommendation.EnhancedCpcOptInRecommendation) +_sym_db.RegisterMessage(Recommendation.SearchPartnersOptInRecommendation) +_sym_db.RegisterMessage(Recommendation.MaximizeConversionsOptInRecommendation) +_sym_db.RegisterMessage(Recommendation.MaximizeClicksOptInRecommendation) +_sym_db.RegisterMessage(Recommendation.OptimizeAdRotationRecommendation) +_sym_db.RegisterMessage(Recommendation.SitelinkExtensionRecommendation) +_sym_db.RegisterMessage(Recommendation.KeywordMatchTypeRecommendation) +_sym_db.RegisterMessage(Recommendation.CalloutExtensionRecommendation) +_sym_db.RegisterMessage(Recommendation.CallExtensionRecommendation) + + +DESCRIPTOR._options = None +_RECOMMENDATION_RECOMMENDATIONIMPACT.fields_by_name['base_metrics']._options = None +_RECOMMENDATION_RECOMMENDATIONIMPACT.fields_by_name['potential_metrics']._options = None +_RECOMMENDATION_RECOMMENDATIONMETRICS.fields_by_name['impressions']._options = None +_RECOMMENDATION_RECOMMENDATIONMETRICS.fields_by_name['clicks']._options = None +_RECOMMENDATION_RECOMMENDATIONMETRICS.fields_by_name['cost_micros']._options = None +_RECOMMENDATION_RECOMMENDATIONMETRICS.fields_by_name['conversions']._options = None +_RECOMMENDATION_RECOMMENDATIONMETRICS.fields_by_name['video_views']._options = None +_RECOMMENDATION_CAMPAIGNBUDGETRECOMMENDATION_CAMPAIGNBUDGETRECOMMENDATIONOPTION.fields_by_name['budget_amount_micros']._options = None +_RECOMMENDATION_CAMPAIGNBUDGETRECOMMENDATION_CAMPAIGNBUDGETRECOMMENDATIONOPTION.fields_by_name['impact']._options = None +_RECOMMENDATION_CAMPAIGNBUDGETRECOMMENDATION.fields_by_name['current_budget_amount_micros']._options = None +_RECOMMENDATION_CAMPAIGNBUDGETRECOMMENDATION.fields_by_name['recommended_budget_amount_micros']._options = None +_RECOMMENDATION_CAMPAIGNBUDGETRECOMMENDATION.fields_by_name['budget_options']._options = None +_RECOMMENDATION_KEYWORDRECOMMENDATION.fields_by_name['keyword']._options = None +_RECOMMENDATION_KEYWORDRECOMMENDATION.fields_by_name['recommended_cpc_bid_micros']._options = None +_RECOMMENDATION_TARGETCPAOPTINRECOMMENDATION_TARGETCPAOPTINRECOMMENDATIONOPTION.fields_by_name['goal']._options = None +_RECOMMENDATION_TARGETCPAOPTINRECOMMENDATION_TARGETCPAOPTINRECOMMENDATIONOPTION.fields_by_name['target_cpa_micros']._options = None +_RECOMMENDATION_TARGETCPAOPTINRECOMMENDATION_TARGETCPAOPTINRECOMMENDATIONOPTION.fields_by_name['required_campaign_budget_amount_micros']._options = None +_RECOMMENDATION_TARGETCPAOPTINRECOMMENDATION_TARGETCPAOPTINRECOMMENDATIONOPTION.fields_by_name['impact']._options = None +_RECOMMENDATION_TARGETCPAOPTINRECOMMENDATION.fields_by_name['options']._options = None +_RECOMMENDATION_TARGETCPAOPTINRECOMMENDATION.fields_by_name['recommended_target_cpa_micros']._options = None +_RECOMMENDATION_MOVEUNUSEDBUDGETRECOMMENDATION.fields_by_name['excess_campaign_budget']._options = None +_RECOMMENDATION_MOVEUNUSEDBUDGETRECOMMENDATION.fields_by_name['budget_recommendation']._options = None +_RECOMMENDATION_TEXTADRECOMMENDATION.fields_by_name['ad']._options = None +_RECOMMENDATION_TEXTADRECOMMENDATION.fields_by_name['creation_date']._options = None +_RECOMMENDATION_TEXTADRECOMMENDATION.fields_by_name['auto_apply_date']._options = None +_RECOMMENDATION_MAXIMIZECONVERSIONSOPTINRECOMMENDATION.fields_by_name['recommended_budget_amount_micros']._options = None +_RECOMMENDATION_MAXIMIZECLICKSOPTINRECOMMENDATION.fields_by_name['recommended_budget_amount_micros']._options = None +_RECOMMENDATION_SITELINKEXTENSIONRECOMMENDATION.fields_by_name['recommended_extensions']._options = None +_RECOMMENDATION_KEYWORDMATCHTYPERECOMMENDATION.fields_by_name['keyword']._options = None +_RECOMMENDATION_KEYWORDMATCHTYPERECOMMENDATION.fields_by_name['recommended_match_type']._options = None +_RECOMMENDATION_CALLOUTEXTENSIONRECOMMENDATION.fields_by_name['recommended_extensions']._options = None +_RECOMMENDATION_CALLEXTENSIONRECOMMENDATION.fields_by_name['recommended_extensions']._options = None +_RECOMMENDATION.fields_by_name['resource_name']._options = None +_RECOMMENDATION.fields_by_name['type']._options = None +_RECOMMENDATION.fields_by_name['impact']._options = None +_RECOMMENDATION.fields_by_name['campaign_budget']._options = None +_RECOMMENDATION.fields_by_name['campaign']._options = None +_RECOMMENDATION.fields_by_name['ad_group']._options = None +_RECOMMENDATION.fields_by_name['dismissed']._options = None +_RECOMMENDATION.fields_by_name['campaign_budget_recommendation']._options = None +_RECOMMENDATION.fields_by_name['keyword_recommendation']._options = None +_RECOMMENDATION.fields_by_name['text_ad_recommendation']._options = None +_RECOMMENDATION.fields_by_name['target_cpa_opt_in_recommendation']._options = None +_RECOMMENDATION.fields_by_name['maximize_conversions_opt_in_recommendation']._options = None +_RECOMMENDATION.fields_by_name['enhanced_cpc_opt_in_recommendation']._options = None +_RECOMMENDATION.fields_by_name['search_partners_opt_in_recommendation']._options = None +_RECOMMENDATION.fields_by_name['maximize_clicks_opt_in_recommendation']._options = None +_RECOMMENDATION.fields_by_name['optimize_ad_rotation_recommendation']._options = None +_RECOMMENDATION.fields_by_name['callout_extension_recommendation']._options = None +_RECOMMENDATION.fields_by_name['sitelink_extension_recommendation']._options = None +_RECOMMENDATION.fields_by_name['call_extension_recommendation']._options = None +_RECOMMENDATION.fields_by_name['keyword_match_type_recommendation']._options = None +_RECOMMENDATION.fields_by_name['move_unused_budget_recommendation']._options = None +_RECOMMENDATION._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v4/proto/resources/recommendation_pb2_grpc.py b/google/ads/google_ads/v4/proto/resources/recommendation_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v4/proto/resources/recommendation_pb2_grpc.py @@ -0,0 +1,3 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +import grpc + diff --git a/google/ads/google_ads/v4/proto/resources/remarketing_action_pb2.py b/google/ads/google_ads/v4/proto/resources/remarketing_action_pb2.py new file mode 100644 index 000000000..e17292c3b --- /dev/null +++ b/google/ads/google_ads/v4/proto/resources/remarketing_action_pb2.py @@ -0,0 +1,126 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/resources/remarketing_action.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.ads.google_ads.v4.proto.common import tag_snippet_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_tag__snippet__pb2 +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 +from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/resources/remarketing_action.proto', + package='google.ads.googleads.v4.resources', + syntax='proto3', + serialized_options=_b('\n%com.google.ads.googleads.v4.resourcesB\026RemarketingActionProtoP\001ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v4/resources;resources\242\002\003GAA\252\002!Google.Ads.GoogleAds.V4.Resources\312\002!Google\\Ads\\GoogleAds\\V4\\Resources\352\002%Google::Ads::GoogleAds::V4::Resources'), + serialized_pb=_b('\n@google/ads/googleads_v4/proto/resources/remarketing_action.proto\x12!google.ads.googleads.v4.resources\x1a\x36google/ads/googleads_v4/proto/common/tag_snippet.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1cgoogle/api/annotations.proto\"\xee\x02\n\x11RemarketingAction\x12I\n\rresource_name\x18\x01 \x01(\tB2\xe0\x41\x05\xfa\x41,\n*googleads.googleapis.com/RemarketingAction\x12,\n\x02id\x18\x02 \x01(\x0b\x32\x1b.google.protobuf.Int64ValueB\x03\xe0\x41\x03\x12*\n\x04name\x18\x03 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x45\n\x0ctag_snippets\x18\x04 \x03(\x0b\x32*.google.ads.googleads.v4.common.TagSnippetB\x03\xe0\x41\x03:m\xea\x41j\n*googleads.googleapis.com/RemarketingAction\x12google/ads/googleads_v4/proto/resources/search_term_view.proto\x12!google.ads.googleads.v4.resources\x1a\x46google/ads/googleads_v4/proto/enums/search_term_targeting_status.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1cgoogle/api/annotations.proto\"\xbe\x03\n\x0eSearchTermView\x12\x46\n\rresource_name\x18\x01 \x01(\tB/\xe0\x41\x03\xfa\x41)\n\'googleads.googleapis.com/SearchTermView\x12\x36\n\x0bsearch_term\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValueB\x03\xe0\x41\x03\x12X\n\x08\x61\x64_group\x18\x03 \x01(\x0b\x32\x1c.google.protobuf.StringValueB(\xe0\x41\x03\xfa\x41\"\n googleads.googleapis.com/AdGroup\x12k\n\x06status\x18\x04 \x01(\x0e\x32V.google.ads.googleads.v4.enums.SearchTermTargetingStatusEnum.SearchTermTargetingStatusB\x03\xe0\x41\x03:e\xea\x41\x62\n\'googleads.googleapis.com/SearchTermView\x12\x37\x63ustomers/{customer}/searchTermViews/{search_term_view}B\x80\x02\n%com.google.ads.googleads.v4.resourcesB\x13SearchTermViewProtoP\x01ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v4/resources;resources\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V4.Resources\xca\x02!Google\\Ads\\GoogleAds\\V4\\Resources\xea\x02%Google::Ads::GoogleAds::V4::Resourcesb\x06proto3') + , + dependencies=[google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_search__term__targeting__status__pb2.DESCRIPTOR,google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_api_dot_resource__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + + +_SEARCHTERMVIEW = _descriptor.Descriptor( + name='SearchTermView', + full_name='google.ads.googleads.v4.resources.SearchTermView', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.resources.SearchTermView.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003\372A)\n\'googleads.googleapis.com/SearchTermView'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='search_term', full_name='google.ads.googleads.v4.resources.SearchTermView.search_term', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='ad_group', full_name='google.ads.googleads.v4.resources.SearchTermView.ad_group', index=2, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003\372A\"\n googleads.googleapis.com/AdGroup'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='status', full_name='google.ads.googleads.v4.resources.SearchTermView.status', index=3, + number=4, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=_b('\352Ab\n\'googleads.googleapis.com/SearchTermView\0227customers/{customer}/searchTermViews/{search_term_view}'), + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=296, + serialized_end=742, +) + +_SEARCHTERMVIEW.fields_by_name['search_term'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_SEARCHTERMVIEW.fields_by_name['ad_group'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_SEARCHTERMVIEW.fields_by_name['status'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_search__term__targeting__status__pb2._SEARCHTERMTARGETINGSTATUSENUM_SEARCHTERMTARGETINGSTATUS +DESCRIPTOR.message_types_by_name['SearchTermView'] = _SEARCHTERMVIEW +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +SearchTermView = _reflection.GeneratedProtocolMessageType('SearchTermView', (_message.Message,), dict( + DESCRIPTOR = _SEARCHTERMVIEW, + __module__ = 'google.ads.googleads_v4.proto.resources.search_term_view_pb2' + , + __doc__ = """A search term view with metrics aggregated by search term at the ad + group level. + + + Attributes: + resource_name: + Output only. The resource name of the search term view. Search + term view resource names have the form: ``customers/{customer + _id}/searchTermViews/{campaign_id}~{ad_group_id}~{URL- + base64_search_term}`` + search_term: + Output only. The search term. + ad_group: + Output only. The ad group the search term served in. + status: + Output only. Indicates whether the search term is currently + one of your targeted or excluded keywords. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.resources.SearchTermView) + )) +_sym_db.RegisterMessage(SearchTermView) + + +DESCRIPTOR._options = None +_SEARCHTERMVIEW.fields_by_name['resource_name']._options = None +_SEARCHTERMVIEW.fields_by_name['search_term']._options = None +_SEARCHTERMVIEW.fields_by_name['ad_group']._options = None +_SEARCHTERMVIEW.fields_by_name['status']._options = None +_SEARCHTERMVIEW._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v4/proto/resources/search_term_view_pb2_grpc.py b/google/ads/google_ads/v4/proto/resources/search_term_view_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v4/proto/resources/search_term_view_pb2_grpc.py @@ -0,0 +1,3 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +import grpc + diff --git a/google/ads/google_ads/v4/proto/resources/shared_criterion_pb2.py b/google/ads/google_ads/v4/proto/resources/shared_criterion_pb2.py new file mode 100644 index 000000000..043ce9271 --- /dev/null +++ b/google/ads/google_ads/v4/proto/resources/shared_criterion_pb2.py @@ -0,0 +1,214 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/resources/shared_criterion.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.ads.google_ads.v4.proto.common import criteria_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_criteria__pb2 +from google.ads.google_ads.v4.proto.enums import criterion_type_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_criterion__type__pb2 +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 +from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/resources/shared_criterion.proto', + package='google.ads.googleads.v4.resources', + syntax='proto3', + serialized_options=_b('\n%com.google.ads.googleads.v4.resourcesB\024SharedCriterionProtoP\001ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v4/resources;resources\242\002\003GAA\252\002!Google.Ads.GoogleAds.V4.Resources\312\002!Google\\Ads\\GoogleAds\\V4\\Resources\352\002%Google::Ads::GoogleAds::V4::Resources'), + serialized_pb=_b('\n>google/ads/googleads_v4/proto/resources/shared_criterion.proto\x12!google.ads.googleads.v4.resources\x1a\x33google/ads/googleads_v4/proto/common/criteria.proto\x1a\x38google/ads/googleads_v4/proto/enums/criterion_type.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1cgoogle/api/annotations.proto\"\x9e\x07\n\x0fSharedCriterion\x12G\n\rresource_name\x18\x01 \x01(\tB0\xe0\x41\x05\xfa\x41*\n(googleads.googleapis.com/SharedCriterion\x12\\\n\nshared_set\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValueB*\xe0\x41\x05\xfa\x41$\n\"googleads.googleapis.com/SharedSet\x12\x36\n\x0c\x63riterion_id\x18\x1a \x01(\x0b\x32\x1b.google.protobuf.Int64ValueB\x03\xe0\x41\x03\x12Q\n\x04type\x18\x04 \x01(\x0e\x32>.google.ads.googleads.v4.enums.CriterionTypeEnum.CriterionTypeB\x03\xe0\x41\x03\x12\x43\n\x07keyword\x18\x03 \x01(\x0b\x32+.google.ads.googleads.v4.common.KeywordInfoB\x03\xe0\x41\x05H\x00\x12N\n\ryoutube_video\x18\x05 \x01(\x0b\x32\x30.google.ads.googleads.v4.common.YouTubeVideoInfoB\x03\xe0\x41\x05H\x00\x12R\n\x0fyoutube_channel\x18\x06 \x01(\x0b\x32\x32.google.ads.googleads.v4.common.YouTubeChannelInfoB\x03\xe0\x41\x05H\x00\x12G\n\tplacement\x18\x07 \x01(\x0b\x32-.google.ads.googleads.v4.common.PlacementInfoB\x03\xe0\x41\x05H\x00\x12Y\n\x13mobile_app_category\x18\x08 \x01(\x0b\x32\x35.google.ads.googleads.v4.common.MobileAppCategoryInfoB\x03\xe0\x41\x05H\x00\x12X\n\x12mobile_application\x18\t \x01(\x0b\x32\x35.google.ads.googleads.v4.common.MobileApplicationInfoB\x03\xe0\x41\x05H\x00:e\xea\x41\x62\n(googleads.googleapis.com/SharedCriterion\x12\x36\x63ustomers/{customer}/sharedCriteria/{shared_criterion}B\x0b\n\tcriterionB\x81\x02\n%com.google.ads.googleads.v4.resourcesB\x14SharedCriterionProtoP\x01ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v4/resources;resources\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V4.Resources\xca\x02!Google\\Ads\\GoogleAds\\V4\\Resources\xea\x02%Google::Ads::GoogleAds::V4::Resourcesb\x06proto3') + , + dependencies=[google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_criteria__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_criterion__type__pb2.DESCRIPTOR,google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_api_dot_resource__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + + +_SHAREDCRITERION = _descriptor.Descriptor( + name='SharedCriterion', + full_name='google.ads.googleads.v4.resources.SharedCriterion', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.resources.SharedCriterion.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005\372A*\n(googleads.googleapis.com/SharedCriterion'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='shared_set', full_name='google.ads.googleads.v4.resources.SharedCriterion.shared_set', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005\372A$\n\"googleads.googleapis.com/SharedSet'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='criterion_id', full_name='google.ads.googleads.v4.resources.SharedCriterion.criterion_id', index=2, + number=26, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='type', full_name='google.ads.googleads.v4.resources.SharedCriterion.type', index=3, + number=4, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='keyword', full_name='google.ads.googleads.v4.resources.SharedCriterion.keyword', index=4, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='youtube_video', full_name='google.ads.googleads.v4.resources.SharedCriterion.youtube_video', index=5, + number=5, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='youtube_channel', full_name='google.ads.googleads.v4.resources.SharedCriterion.youtube_channel', index=6, + number=6, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='placement', full_name='google.ads.googleads.v4.resources.SharedCriterion.placement', index=7, + number=7, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='mobile_app_category', full_name='google.ads.googleads.v4.resources.SharedCriterion.mobile_app_category', index=8, + number=8, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='mobile_application', full_name='google.ads.googleads.v4.resources.SharedCriterion.mobile_application', index=9, + number=9, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=_b('\352Ab\n(googleads.googleapis.com/SharedCriterion\0226customers/{customer}/sharedCriteria/{shared_criterion}'), + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name='criterion', full_name='google.ads.googleads.v4.resources.SharedCriterion.criterion', + index=0, containing_type=None, fields=[]), + ], + serialized_start=335, + serialized_end=1261, +) + +_SHAREDCRITERION.fields_by_name['shared_set'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_SHAREDCRITERION.fields_by_name['criterion_id'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_SHAREDCRITERION.fields_by_name['type'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_criterion__type__pb2._CRITERIONTYPEENUM_CRITERIONTYPE +_SHAREDCRITERION.fields_by_name['keyword'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_criteria__pb2._KEYWORDINFO +_SHAREDCRITERION.fields_by_name['youtube_video'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_criteria__pb2._YOUTUBEVIDEOINFO +_SHAREDCRITERION.fields_by_name['youtube_channel'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_criteria__pb2._YOUTUBECHANNELINFO +_SHAREDCRITERION.fields_by_name['placement'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_criteria__pb2._PLACEMENTINFO +_SHAREDCRITERION.fields_by_name['mobile_app_category'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_criteria__pb2._MOBILEAPPCATEGORYINFO +_SHAREDCRITERION.fields_by_name['mobile_application'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_criteria__pb2._MOBILEAPPLICATIONINFO +_SHAREDCRITERION.oneofs_by_name['criterion'].fields.append( + _SHAREDCRITERION.fields_by_name['keyword']) +_SHAREDCRITERION.fields_by_name['keyword'].containing_oneof = _SHAREDCRITERION.oneofs_by_name['criterion'] +_SHAREDCRITERION.oneofs_by_name['criterion'].fields.append( + _SHAREDCRITERION.fields_by_name['youtube_video']) +_SHAREDCRITERION.fields_by_name['youtube_video'].containing_oneof = _SHAREDCRITERION.oneofs_by_name['criterion'] +_SHAREDCRITERION.oneofs_by_name['criterion'].fields.append( + _SHAREDCRITERION.fields_by_name['youtube_channel']) +_SHAREDCRITERION.fields_by_name['youtube_channel'].containing_oneof = _SHAREDCRITERION.oneofs_by_name['criterion'] +_SHAREDCRITERION.oneofs_by_name['criterion'].fields.append( + _SHAREDCRITERION.fields_by_name['placement']) +_SHAREDCRITERION.fields_by_name['placement'].containing_oneof = _SHAREDCRITERION.oneofs_by_name['criterion'] +_SHAREDCRITERION.oneofs_by_name['criterion'].fields.append( + _SHAREDCRITERION.fields_by_name['mobile_app_category']) +_SHAREDCRITERION.fields_by_name['mobile_app_category'].containing_oneof = _SHAREDCRITERION.oneofs_by_name['criterion'] +_SHAREDCRITERION.oneofs_by_name['criterion'].fields.append( + _SHAREDCRITERION.fields_by_name['mobile_application']) +_SHAREDCRITERION.fields_by_name['mobile_application'].containing_oneof = _SHAREDCRITERION.oneofs_by_name['criterion'] +DESCRIPTOR.message_types_by_name['SharedCriterion'] = _SHAREDCRITERION +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +SharedCriterion = _reflection.GeneratedProtocolMessageType('SharedCriterion', (_message.Message,), dict( + DESCRIPTOR = _SHAREDCRITERION, + __module__ = 'google.ads.googleads_v4.proto.resources.shared_criterion_pb2' + , + __doc__ = """A criterion belonging to a shared set. + + + Attributes: + resource_name: + Immutable. The resource name of the shared criterion. Shared + set resource names have the form: ``customers/{customer_id}/s + haredCriteria/{shared_set_id}~{criterion_id}`` + shared_set: + Immutable. The shared set to which the shared criterion + belongs. + criterion_id: + Output only. The ID of the criterion. This field is ignored + for mutates. + type: + Output only. The type of the criterion. + criterion: + The criterion. Exactly one must be set. + keyword: + Immutable. Keyword. + youtube_video: + Immutable. YouTube Video. + youtube_channel: + Immutable. YouTube Channel. + placement: + Immutable. Placement. + mobile_app_category: + Immutable. Mobile App Category. + mobile_application: + Immutable. Mobile application. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.resources.SharedCriterion) + )) +_sym_db.RegisterMessage(SharedCriterion) + + +DESCRIPTOR._options = None +_SHAREDCRITERION.fields_by_name['resource_name']._options = None +_SHAREDCRITERION.fields_by_name['shared_set']._options = None +_SHAREDCRITERION.fields_by_name['criterion_id']._options = None +_SHAREDCRITERION.fields_by_name['type']._options = None +_SHAREDCRITERION.fields_by_name['keyword']._options = None +_SHAREDCRITERION.fields_by_name['youtube_video']._options = None +_SHAREDCRITERION.fields_by_name['youtube_channel']._options = None +_SHAREDCRITERION.fields_by_name['placement']._options = None +_SHAREDCRITERION.fields_by_name['mobile_app_category']._options = None +_SHAREDCRITERION.fields_by_name['mobile_application']._options = None +_SHAREDCRITERION._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v4/proto/resources/shared_criterion_pb2_grpc.py b/google/ads/google_ads/v4/proto/resources/shared_criterion_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v4/proto/resources/shared_criterion_pb2_grpc.py @@ -0,0 +1,3 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +import grpc + diff --git a/google/ads/google_ads/v4/proto/resources/shared_set_pb2.py b/google/ads/google_ads/v4/proto/resources/shared_set_pb2.py new file mode 100644 index 000000000..d38f55623 --- /dev/null +++ b/google/ads/google_ads/v4/proto/resources/shared_set_pb2.py @@ -0,0 +1,162 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/resources/shared_set.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.ads.google_ads.v4.proto.enums import shared_set_status_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_shared__set__status__pb2 +from google.ads.google_ads.v4.proto.enums import shared_set_type_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_shared__set__type__pb2 +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 +from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/resources/shared_set.proto', + package='google.ads.googleads.v4.resources', + syntax='proto3', + serialized_options=_b('\n%com.google.ads.googleads.v4.resourcesB\016SharedSetProtoP\001ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v4/resources;resources\242\002\003GAA\252\002!Google.Ads.GoogleAds.V4.Resources\312\002!Google\\Ads\\GoogleAds\\V4\\Resources\352\002%Google::Ads::GoogleAds::V4::Resources'), + serialized_pb=_b('\n8google/ads/googleads_v4/proto/resources/shared_set.proto\x12!google.ads.googleads.v4.resources\x1a;google/ads/googleads_v4/proto/enums/shared_set_status.proto\x1a\x39google/ads/googleads_v4/proto/enums/shared_set_type.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1cgoogle/api/annotations.proto\"\x9e\x04\n\tSharedSet\x12\x41\n\rresource_name\x18\x01 \x01(\tB*\xe0\x41\x05\xfa\x41$\n\"googleads.googleapis.com/SharedSet\x12,\n\x02id\x18\x02 \x01(\x0b\x32\x1b.google.protobuf.Int64ValueB\x03\xe0\x41\x03\x12Q\n\x04type\x18\x03 \x01(\x0e\x32>.google.ads.googleads.v4.enums.SharedSetTypeEnum.SharedSetTypeB\x03\xe0\x41\x05\x12*\n\x04name\x18\x04 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12W\n\x06status\x18\x05 \x01(\x0e\x32\x42.google.ads.googleads.v4.enums.SharedSetStatusEnum.SharedSetStatusB\x03\xe0\x41\x03\x12\x36\n\x0cmember_count\x18\x06 \x01(\x0b\x32\x1b.google.protobuf.Int64ValueB\x03\xe0\x41\x03\x12\x39\n\x0freference_count\x18\x07 \x01(\x0b\x32\x1b.google.protobuf.Int64ValueB\x03\xe0\x41\x03:U\xea\x41R\n\"googleads.googleapis.com/SharedSet\x12,customers/{customer}/sharedSets/{shared_set}B\xfb\x01\n%com.google.ads.googleads.v4.resourcesB\x0eSharedSetProtoP\x01ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v4/resources;resources\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V4.Resources\xca\x02!Google\\Ads\\GoogleAds\\V4\\Resources\xea\x02%Google::Ads::GoogleAds::V4::Resourcesb\x06proto3') + , + dependencies=[google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_shared__set__status__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_shared__set__type__pb2.DESCRIPTOR,google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_api_dot_resource__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + + +_SHAREDSET = _descriptor.Descriptor( + name='SharedSet', + full_name='google.ads.googleads.v4.resources.SharedSet', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.resources.SharedSet.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005\372A$\n\"googleads.googleapis.com/SharedSet'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='id', full_name='google.ads.googleads.v4.resources.SharedSet.id', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='type', full_name='google.ads.googleads.v4.resources.SharedSet.type', index=2, + number=3, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='name', full_name='google.ads.googleads.v4.resources.SharedSet.name', index=3, + number=4, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='status', full_name='google.ads.googleads.v4.resources.SharedSet.status', index=4, + number=5, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='member_count', full_name='google.ads.googleads.v4.resources.SharedSet.member_count', index=5, + number=6, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='reference_count', full_name='google.ads.googleads.v4.resources.SharedSet.reference_count', index=6, + number=7, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=_b('\352AR\n\"googleads.googleapis.com/SharedSet\022,customers/{customer}/sharedSets/{shared_set}'), + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=338, + serialized_end=880, +) + +_SHAREDSET.fields_by_name['id'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_SHAREDSET.fields_by_name['type'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_shared__set__type__pb2._SHAREDSETTYPEENUM_SHAREDSETTYPE +_SHAREDSET.fields_by_name['name'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_SHAREDSET.fields_by_name['status'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_shared__set__status__pb2._SHAREDSETSTATUSENUM_SHAREDSETSTATUS +_SHAREDSET.fields_by_name['member_count'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_SHAREDSET.fields_by_name['reference_count'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +DESCRIPTOR.message_types_by_name['SharedSet'] = _SHAREDSET +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +SharedSet = _reflection.GeneratedProtocolMessageType('SharedSet', (_message.Message,), dict( + DESCRIPTOR = _SHAREDSET, + __module__ = 'google.ads.googleads_v4.proto.resources.shared_set_pb2' + , + __doc__ = """SharedSets are used for sharing criterion exclusions across multiple + campaigns. + + + Attributes: + resource_name: + Immutable. The resource name of the shared set. Shared set + resource names have the form: + ``customers/{customer_id}/sharedSets/{shared_set_id}`` + id: + Output only. The ID of this shared set. Read only. + type: + Immutable. The type of this shared set: each shared set holds + only a single kind of resource. Required. Immutable. + name: + The name of this shared set. Required. Shared Sets must have + names that are unique among active shared sets of the same + type. The length of this string should be between 1 and 255 + UTF-8 bytes, inclusive. + status: + Output only. The status of this shared set. Read only. + member_count: + Output only. The number of shared criteria within this shared + set. Read only. + reference_count: + Output only. The number of campaigns associated with this + shared set. Read only. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.resources.SharedSet) + )) +_sym_db.RegisterMessage(SharedSet) + + +DESCRIPTOR._options = None +_SHAREDSET.fields_by_name['resource_name']._options = None +_SHAREDSET.fields_by_name['id']._options = None +_SHAREDSET.fields_by_name['type']._options = None +_SHAREDSET.fields_by_name['status']._options = None +_SHAREDSET.fields_by_name['member_count']._options = None +_SHAREDSET.fields_by_name['reference_count']._options = None +_SHAREDSET._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v4/proto/resources/shared_set_pb2_grpc.py b/google/ads/google_ads/v4/proto/resources/shared_set_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v4/proto/resources/shared_set_pb2_grpc.py @@ -0,0 +1,3 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +import grpc + diff --git a/google/ads/google_ads/v4/proto/resources/shopping_performance_view_pb2.py b/google/ads/google_ads/v4/proto/resources/shopping_performance_view_pb2.py new file mode 100644 index 000000000..ea0f45df5 --- /dev/null +++ b/google/ads/google_ads/v4/proto/resources/shopping_performance_view_pb2.py @@ -0,0 +1,91 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/resources/shopping_performance_view.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/resources/shopping_performance_view.proto', + package='google.ads.googleads.v4.resources', + syntax='proto3', + serialized_options=_b('\n%com.google.ads.googleads.v4.resourcesB\034ShoppingPerformanceViewProtoP\001ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v4/resources;resources\242\002\003GAA\252\002!Google.Ads.GoogleAds.V4.Resources\312\002!Google\\Ads\\GoogleAds\\V4\\Resources\352\002%Google::Ads::GoogleAds::V4::Resources'), + serialized_pb=_b('\nGgoogle/ads/googleads_v4/proto/resources/shopping_performance_view.proto\x12!google.ads.googleads.v4.resources\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1cgoogle/api/annotations.proto\"\xcf\x01\n\x17ShoppingPerformanceView\x12O\n\rresource_name\x18\x01 \x01(\tB8\xe0\x41\x03\xfa\x41\x32\n0googleads.googleapis.com/ShoppingPerformanceView:c\xea\x41`\n0googleads.googleapis.com/ShoppingPerformanceView\x12,customers/{customer}/shoppingPerformanceViewB\x89\x02\n%com.google.ads.googleads.v4.resourcesB\x1cShoppingPerformanceViewProtoP\x01ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v4/resources;resources\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V4.Resources\xca\x02!Google\\Ads\\GoogleAds\\V4\\Resources\xea\x02%Google::Ads::GoogleAds::V4::Resourcesb\x06proto3') + , + dependencies=[google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_api_dot_resource__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + + +_SHOPPINGPERFORMANCEVIEW = _descriptor.Descriptor( + name='ShoppingPerformanceView', + full_name='google.ads.googleads.v4.resources.ShoppingPerformanceView', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.resources.ShoppingPerformanceView.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003\372A2\n0googleads.googleapis.com/ShoppingPerformanceView'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=_b('\352A`\n0googleads.googleapis.com/ShoppingPerformanceView\022,customers/{customer}/shoppingPerformanceView'), + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=201, + serialized_end=408, +) + +DESCRIPTOR.message_types_by_name['ShoppingPerformanceView'] = _SHOPPINGPERFORMANCEVIEW +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +ShoppingPerformanceView = _reflection.GeneratedProtocolMessageType('ShoppingPerformanceView', (_message.Message,), dict( + DESCRIPTOR = _SHOPPINGPERFORMANCEVIEW, + __module__ = 'google.ads.googleads_v4.proto.resources.shopping_performance_view_pb2' + , + __doc__ = """Shopping performance view. Provides Shopping campaign statistics + aggregated at several product dimension levels. Product dimension values + from Merchant Center such as brand, category, custom attributes, product + condition and product type will reflect the state of each dimension as + of the date and time when the corresponding event was recorded. + + + Attributes: + resource_name: + Output only. The resource name of the Shopping performance + view. Shopping performance view resource names have the form: + ``customers/{customer_id}/shoppingPerformanceView`` + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.resources.ShoppingPerformanceView) + )) +_sym_db.RegisterMessage(ShoppingPerformanceView) + + +DESCRIPTOR._options = None +_SHOPPINGPERFORMANCEVIEW.fields_by_name['resource_name']._options = None +_SHOPPINGPERFORMANCEVIEW._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v4/proto/resources/shopping_performance_view_pb2_grpc.py b/google/ads/google_ads/v4/proto/resources/shopping_performance_view_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v4/proto/resources/shopping_performance_view_pb2_grpc.py @@ -0,0 +1,3 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +import grpc + diff --git a/google/ads/google_ads/v4/proto/resources/third_party_app_analytics_link_pb2.py b/google/ads/google_ads/v4/proto/resources/third_party_app_analytics_link_pb2.py new file mode 100644 index 000000000..80f01779e --- /dev/null +++ b/google/ads/google_ads/v4/proto/resources/third_party_app_analytics_link_pb2.py @@ -0,0 +1,104 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/resources/third_party_app_analytics_link.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 +from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/resources/third_party_app_analytics_link.proto', + package='google.ads.googleads.v4.resources', + syntax='proto3', + serialized_options=_b('\n%com.google.ads.googleads.v4.resourcesB\037ThirdPartyAppAnalyticsLinkProtoP\001ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v4/resources;resources\242\002\003GAA\252\002!Google.Ads.GoogleAds.V4.Resources\312\002!Google\\Ads\\GoogleAds\\V4\\Resources\352\002%Google::Ads::GoogleAds::V4::Resources'), + serialized_pb=_b('\nLgoogle/ads/googleads_v4/proto/resources/third_party_app_analytics_link.proto\x12!google.ads.googleads.v4.resources\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1cgoogle/api/annotations.proto\"\xbd\x02\n\x1aThirdPartyAppAnalyticsLink\x12R\n\rresource_name\x18\x01 \x01(\tB;\xe0\x41\x05\xfa\x41\x35\n3googleads.googleapis.com/ThirdPartyAppAnalyticsLink\x12<\n\x11shareable_link_id\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValueB\x03\xe0\x41\x03:\x8c\x01\xea\x41\x88\x01\n3googleads.googleapis.com/ThirdPartyAppAnalyticsLink\x12Qcustomers/{customer}/thirdPartyAppAnalyticsLinks/{third_party_app_analytics_link}B\x8c\x02\n%com.google.ads.googleads.v4.resourcesB\x1fThirdPartyAppAnalyticsLinkProtoP\x01ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v4/resources;resources\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V4.Resources\xca\x02!Google\\Ads\\GoogleAds\\V4\\Resources\xea\x02%Google::Ads::GoogleAds::V4::Resourcesb\x06proto3') + , + dependencies=[google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_api_dot_resource__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + + +_THIRDPARTYAPPANALYTICSLINK = _descriptor.Descriptor( + name='ThirdPartyAppAnalyticsLink', + full_name='google.ads.googleads.v4.resources.ThirdPartyAppAnalyticsLink', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.resources.ThirdPartyAppAnalyticsLink.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005\372A5\n3googleads.googleapis.com/ThirdPartyAppAnalyticsLink'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='shareable_link_id', full_name='google.ads.googleads.v4.resources.ThirdPartyAppAnalyticsLink.shareable_link_id', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=_b('\352A\210\001\n3googleads.googleapis.com/ThirdPartyAppAnalyticsLink\022Qcustomers/{customer}/thirdPartyAppAnalyticsLinks/{third_party_app_analytics_link}'), + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=238, + serialized_end=555, +) + +_THIRDPARTYAPPANALYTICSLINK.fields_by_name['shareable_link_id'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +DESCRIPTOR.message_types_by_name['ThirdPartyAppAnalyticsLink'] = _THIRDPARTYAPPANALYTICSLINK +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +ThirdPartyAppAnalyticsLink = _reflection.GeneratedProtocolMessageType('ThirdPartyAppAnalyticsLink', (_message.Message,), dict( + DESCRIPTOR = _THIRDPARTYAPPANALYTICSLINK, + __module__ = 'google.ads.googleads_v4.proto.resources.third_party_app_analytics_link_pb2' + , + __doc__ = """A data sharing connection, allowing the import of third party app + analytics into a Google Ads Customer. + + + Attributes: + resource_name: + Immutable. The resource name of the third party app analytics + link. Third party app analytics link resource names have the + form: ``customers/{customer_id}/thirdPartyAppAnalyticsLinks/{ + account_link_id}`` + shareable_link_id: + Output only. The shareable link ID that should be provided to + the third party when setting up app analytics. This is able to + be regenerated using regenerate method in the + ThirdPartyAppAnalyticsLinkService. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.resources.ThirdPartyAppAnalyticsLink) + )) +_sym_db.RegisterMessage(ThirdPartyAppAnalyticsLink) + + +DESCRIPTOR._options = None +_THIRDPARTYAPPANALYTICSLINK.fields_by_name['resource_name']._options = None +_THIRDPARTYAPPANALYTICSLINK.fields_by_name['shareable_link_id']._options = None +_THIRDPARTYAPPANALYTICSLINK._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v4/proto/resources/third_party_app_analytics_link_pb2_grpc.py b/google/ads/google_ads/v4/proto/resources/third_party_app_analytics_link_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v4/proto/resources/third_party_app_analytics_link_pb2_grpc.py @@ -0,0 +1,3 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +import grpc + diff --git a/google/ads/google_ads/v4/proto/resources/topic_constant_pb2.py b/google/ads/google_ads/v4/proto/resources/topic_constant_pb2.py new file mode 100644 index 000000000..063b32f3e --- /dev/null +++ b/google/ads/google_ads/v4/proto/resources/topic_constant_pb2.py @@ -0,0 +1,128 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/resources/topic_constant.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 +from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/resources/topic_constant.proto', + package='google.ads.googleads.v4.resources', + syntax='proto3', + serialized_options=_b('\n%com.google.ads.googleads.v4.resourcesB\022TopicConstantProtoP\001ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v4/resources;resources\242\002\003GAA\252\002!Google.Ads.GoogleAds.V4.Resources\312\002!Google\\Ads\\GoogleAds\\V4\\Resources\352\002%Google::Ads::GoogleAds::V4::Resources'), + serialized_pb=_b('\ngoogle/ads/googleads_v4/proto/enums/user_list_size_range.proto\x1a\x38google/ads/googleads_v4/proto/enums/user_list_type.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1cgoogle/api/annotations.proto\"\xc0\x0e\n\x08UserList\x12@\n\rresource_name\x18\x01 \x01(\tB)\xe0\x41\x05\xfa\x41#\n!googleads.googleapis.com/UserList\x12,\n\x02id\x18\x02 \x01(\x0b\x32\x1b.google.protobuf.Int64ValueB\x03\xe0\x41\x03\x12\x32\n\tread_only\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.BoolValueB\x03\xe0\x41\x03\x12*\n\x04name\x18\x04 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x31\n\x0b\x64\x65scription\x18\x05 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12o\n\x11membership_status\x18\x06 \x01(\x0e\x32T.google.ads.googleads.v4.enums.UserListMembershipStatusEnum.UserListMembershipStatus\x12\x36\n\x10integration_code\x18\x07 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x39\n\x14membership_life_span\x18\x08 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12:\n\x10size_for_display\x18\t \x01(\x0b\x32\x1b.google.protobuf.Int64ValueB\x03\xe0\x41\x03\x12k\n\x16size_range_for_display\x18\n \x01(\x0e\x32\x46.google.ads.googleads.v4.enums.UserListSizeRangeEnum.UserListSizeRangeB\x03\xe0\x41\x03\x12\x39\n\x0fsize_for_search\x18\x0b \x01(\x0b\x32\x1b.google.protobuf.Int64ValueB\x03\xe0\x41\x03\x12j\n\x15size_range_for_search\x18\x0c \x01(\x0e\x32\x46.google.ads.googleads.v4.enums.UserListSizeRangeEnum.UserListSizeRangeB\x03\xe0\x41\x03\x12O\n\x04type\x18\r \x01(\x0e\x32<.google.ads.googleads.v4.enums.UserListTypeEnum.UserListTypeB\x03\xe0\x41\x03\x12\x66\n\x0e\x63losing_reason\x18\x0e \x01(\x0e\x32N.google.ads.googleads.v4.enums.UserListClosingReasonEnum.UserListClosingReason\x12X\n\raccess_reason\x18\x0f \x01(\x0e\x32<.google.ads.googleads.v4.enums.AccessReasonEnum.AccessReasonB\x03\xe0\x41\x03\x12n\n\x18\x61\x63\x63ount_user_list_status\x18\x10 \x01(\x0e\x32L.google.ads.googleads.v4.enums.UserListAccessStatusEnum.UserListAccessStatus\x12\x37\n\x13\x65ligible_for_search\x18\x11 \x01(\x0b\x32\x1a.google.protobuf.BoolValue\x12=\n\x14\x65ligible_for_display\x18\x12 \x01(\x0b\x32\x1a.google.protobuf.BoolValueB\x03\xe0\x41\x03\x12S\n\x13\x63rm_based_user_list\x18\x13 \x01(\x0b\x32\x34.google.ads.googleads.v4.common.CrmBasedUserListInfoH\x00\x12U\n\x11similar_user_list\x18\x14 \x01(\x0b\x32\x33.google.ads.googleads.v4.common.SimilarUserListInfoB\x03\xe0\x41\x03H\x00\x12U\n\x14rule_based_user_list\x18\x15 \x01(\x0b\x32\x35.google.ads.googleads.v4.common.RuleBasedUserListInfoH\x00\x12P\n\x11logical_user_list\x18\x16 \x01(\x0b\x32\x33.google.ads.googleads.v4.common.LogicalUserListInfoH\x00\x12L\n\x0f\x62\x61sic_user_list\x18\x17 \x01(\x0b\x32\x31.google.ads.googleads.v4.common.BasicUserListInfoH\x00:R\xea\x41O\n!googleads.googleapis.com/UserList\x12*customers/{customer}/userLists/{user_list}B\x0b\n\tuser_listB\xfa\x01\n%com.google.ads.googleads.v4.resourcesB\rUserListProtoP\x01ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v4/resources;resources\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V4.Resources\xca\x02!Google\\Ads\\GoogleAds\\V4\\Resources\xea\x02%Google::Ads::GoogleAds::V4::Resourcesb\x06proto3') + , + dependencies=[google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_user__lists__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_access__reason__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_user__list__access__status__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_user__list__closing__reason__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_user__list__membership__status__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_user__list__size__range__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_user__list__type__pb2.DESCRIPTOR,google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_api_dot_resource__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + + +_USERLIST = _descriptor.Descriptor( + name='UserList', + full_name='google.ads.googleads.v4.resources.UserList', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.resources.UserList.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\005\372A#\n!googleads.googleapis.com/UserList'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='id', full_name='google.ads.googleads.v4.resources.UserList.id', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='read_only', full_name='google.ads.googleads.v4.resources.UserList.read_only', index=2, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='name', full_name='google.ads.googleads.v4.resources.UserList.name', index=3, + number=4, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='description', full_name='google.ads.googleads.v4.resources.UserList.description', index=4, + number=5, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='membership_status', full_name='google.ads.googleads.v4.resources.UserList.membership_status', index=5, + number=6, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='integration_code', full_name='google.ads.googleads.v4.resources.UserList.integration_code', index=6, + number=7, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='membership_life_span', full_name='google.ads.googleads.v4.resources.UserList.membership_life_span', index=7, + number=8, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='size_for_display', full_name='google.ads.googleads.v4.resources.UserList.size_for_display', index=8, + number=9, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='size_range_for_display', full_name='google.ads.googleads.v4.resources.UserList.size_range_for_display', index=9, + number=10, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='size_for_search', full_name='google.ads.googleads.v4.resources.UserList.size_for_search', index=10, + number=11, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='size_range_for_search', full_name='google.ads.googleads.v4.resources.UserList.size_range_for_search', index=11, + number=12, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='type', full_name='google.ads.googleads.v4.resources.UserList.type', index=12, + number=13, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='closing_reason', full_name='google.ads.googleads.v4.resources.UserList.closing_reason', index=13, + number=14, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='access_reason', full_name='google.ads.googleads.v4.resources.UserList.access_reason', index=14, + number=15, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='account_user_list_status', full_name='google.ads.googleads.v4.resources.UserList.account_user_list_status', index=15, + number=16, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='eligible_for_search', full_name='google.ads.googleads.v4.resources.UserList.eligible_for_search', index=16, + number=17, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='eligible_for_display', full_name='google.ads.googleads.v4.resources.UserList.eligible_for_display', index=17, + number=18, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='crm_based_user_list', full_name='google.ads.googleads.v4.resources.UserList.crm_based_user_list', index=18, + number=19, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='similar_user_list', full_name='google.ads.googleads.v4.resources.UserList.similar_user_list', index=19, + number=20, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='rule_based_user_list', full_name='google.ads.googleads.v4.resources.UserList.rule_based_user_list', index=20, + number=21, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='logical_user_list', full_name='google.ads.googleads.v4.resources.UserList.logical_user_list', index=21, + number=22, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='basic_user_list', full_name='google.ads.googleads.v4.resources.UserList.basic_user_list', index=22, + number=23, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=_b('\352AO\n!googleads.googleapis.com/UserList\022*customers/{customer}/userLists/{user_list}'), + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name='user_list', full_name='google.ads.googleads.v4.resources.UserList.user_list', + index=0, containing_type=None, fields=[]), + ], + serialized_start=657, + serialized_end=2513, +) + +_USERLIST.fields_by_name['id'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_USERLIST.fields_by_name['read_only'].message_type = google_dot_protobuf_dot_wrappers__pb2._BOOLVALUE +_USERLIST.fields_by_name['name'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_USERLIST.fields_by_name['description'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_USERLIST.fields_by_name['membership_status'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_user__list__membership__status__pb2._USERLISTMEMBERSHIPSTATUSENUM_USERLISTMEMBERSHIPSTATUS +_USERLIST.fields_by_name['integration_code'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_USERLIST.fields_by_name['membership_life_span'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_USERLIST.fields_by_name['size_for_display'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_USERLIST.fields_by_name['size_range_for_display'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_user__list__size__range__pb2._USERLISTSIZERANGEENUM_USERLISTSIZERANGE +_USERLIST.fields_by_name['size_for_search'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_USERLIST.fields_by_name['size_range_for_search'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_user__list__size__range__pb2._USERLISTSIZERANGEENUM_USERLISTSIZERANGE +_USERLIST.fields_by_name['type'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_user__list__type__pb2._USERLISTTYPEENUM_USERLISTTYPE +_USERLIST.fields_by_name['closing_reason'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_user__list__closing__reason__pb2._USERLISTCLOSINGREASONENUM_USERLISTCLOSINGREASON +_USERLIST.fields_by_name['access_reason'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_access__reason__pb2._ACCESSREASONENUM_ACCESSREASON +_USERLIST.fields_by_name['account_user_list_status'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_user__list__access__status__pb2._USERLISTACCESSSTATUSENUM_USERLISTACCESSSTATUS +_USERLIST.fields_by_name['eligible_for_search'].message_type = google_dot_protobuf_dot_wrappers__pb2._BOOLVALUE +_USERLIST.fields_by_name['eligible_for_display'].message_type = google_dot_protobuf_dot_wrappers__pb2._BOOLVALUE +_USERLIST.fields_by_name['crm_based_user_list'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_user__lists__pb2._CRMBASEDUSERLISTINFO +_USERLIST.fields_by_name['similar_user_list'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_user__lists__pb2._SIMILARUSERLISTINFO +_USERLIST.fields_by_name['rule_based_user_list'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_user__lists__pb2._RULEBASEDUSERLISTINFO +_USERLIST.fields_by_name['logical_user_list'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_user__lists__pb2._LOGICALUSERLISTINFO +_USERLIST.fields_by_name['basic_user_list'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_user__lists__pb2._BASICUSERLISTINFO +_USERLIST.oneofs_by_name['user_list'].fields.append( + _USERLIST.fields_by_name['crm_based_user_list']) +_USERLIST.fields_by_name['crm_based_user_list'].containing_oneof = _USERLIST.oneofs_by_name['user_list'] +_USERLIST.oneofs_by_name['user_list'].fields.append( + _USERLIST.fields_by_name['similar_user_list']) +_USERLIST.fields_by_name['similar_user_list'].containing_oneof = _USERLIST.oneofs_by_name['user_list'] +_USERLIST.oneofs_by_name['user_list'].fields.append( + _USERLIST.fields_by_name['rule_based_user_list']) +_USERLIST.fields_by_name['rule_based_user_list'].containing_oneof = _USERLIST.oneofs_by_name['user_list'] +_USERLIST.oneofs_by_name['user_list'].fields.append( + _USERLIST.fields_by_name['logical_user_list']) +_USERLIST.fields_by_name['logical_user_list'].containing_oneof = _USERLIST.oneofs_by_name['user_list'] +_USERLIST.oneofs_by_name['user_list'].fields.append( + _USERLIST.fields_by_name['basic_user_list']) +_USERLIST.fields_by_name['basic_user_list'].containing_oneof = _USERLIST.oneofs_by_name['user_list'] +DESCRIPTOR.message_types_by_name['UserList'] = _USERLIST +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +UserList = _reflection.GeneratedProtocolMessageType('UserList', (_message.Message,), dict( + DESCRIPTOR = _USERLIST, + __module__ = 'google.ads.googleads_v4.proto.resources.user_list_pb2' + , + __doc__ = """A user list. This is a list of users a customer may target. + + + Attributes: + resource_name: + Immutable. The resource name of the user list. User list + resource names have the form: + ``customers/{customer_id}/userLists/{user_list_id}`` + id: + Output only. Id of the user list. + read_only: + Output only. A flag that indicates if a user may edit a list. + Depends on the list ownership and list type. For example, + external remarketing user lists are not editable. This field + is read-only. + name: + Name of this user list. Depending on its access\_reason, the + user list name may not be unique (e.g. if + access\_reason=SHARED) + description: + Description of this user list. + membership_status: + Membership status of this user list. Indicates whether a user + list is open or active. Only open user lists can accumulate + more users and can be targeted to. + integration_code: + An ID from external system. It is used by user list sellers to + correlate IDs on their systems. + membership_life_span: + Number of days a user's cookie stays on your list since its + most recent addition to the list. This field must be between 0 + and 540 inclusive. However, for CRM based userlists, this + field can be set to 10000 which means no expiration. It'll be + ignored for logical\_user\_list. + size_for_display: + Output only. Estimated number of users in this user list, on + the Google Display Network. This value is null if the number + of users has not yet been determined. This field is read- + only. + size_range_for_display: + Output only. Size range in terms of number of users of the + UserList, on the Google Display Network. This field is read- + only. + size_for_search: + Output only. Estimated number of users in this user list in + the google.com domain. These are the users available for + targeting in Search campaigns. This value is null if the + number of users has not yet been determined. This field is + read-only. + size_range_for_search: + Output only. Size range in terms of number of users of the + UserList, for Search ads. This field is read-only. + type: + Output only. Type of this list. This field is read-only. + closing_reason: + Indicating the reason why this user list membership status is + closed. It is only populated on lists that were automatically + closed due to inactivity, and will be cleared once the list + membership status becomes open. + access_reason: + Output only. Indicates the reason this account has been + granted access to the list. The reason can be SHARED, OWNED, + LICENSED or SUBSCRIBED. This field is read-only. + account_user_list_status: + Indicates if this share is still enabled. When a UserList is + shared with the user this field is set to ENABLED. Later the + userList owner can decide to revoke the share and make it + DISABLED. The default value of this field is set to ENABLED. + eligible_for_search: + Indicates if this user list is eligible for Google Search + Network. + eligible_for_display: + Output only. Indicates this user list is eligible for Google + Display Network. This field is read-only. + user_list: + The user list. Exactly one must be set. + crm_based_user_list: + User list of CRM users provided by the advertiser. + similar_user_list: + Output only. User list which are similar to users from another + UserList. These lists are readonly and automatically created + by google. + rule_based_user_list: + User list generated by a rule. + logical_user_list: + User list that is a custom combination of user lists and user + interests. + basic_user_list: + User list targeting as a collection of conversion or + remarketing actions. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.resources.UserList) + )) +_sym_db.RegisterMessage(UserList) + + +DESCRIPTOR._options = None +_USERLIST.fields_by_name['resource_name']._options = None +_USERLIST.fields_by_name['id']._options = None +_USERLIST.fields_by_name['read_only']._options = None +_USERLIST.fields_by_name['size_for_display']._options = None +_USERLIST.fields_by_name['size_range_for_display']._options = None +_USERLIST.fields_by_name['size_for_search']._options = None +_USERLIST.fields_by_name['size_range_for_search']._options = None +_USERLIST.fields_by_name['type']._options = None +_USERLIST.fields_by_name['access_reason']._options = None +_USERLIST.fields_by_name['eligible_for_display']._options = None +_USERLIST.fields_by_name['similar_user_list']._options = None +_USERLIST._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v4/proto/resources/user_list_pb2_grpc.py b/google/ads/google_ads/v4/proto/resources/user_list_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v4/proto/resources/user_list_pb2_grpc.py @@ -0,0 +1,3 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +import grpc + diff --git a/google/ads/google_ads/v4/proto/resources/user_location_view_pb2.py b/google/ads/google_ads/v4/proto/resources/user_location_view_pb2.py new file mode 100644 index 000000000..75cea193b --- /dev/null +++ b/google/ads/google_ads/v4/proto/resources/user_location_view_pb2.py @@ -0,0 +1,116 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/resources/user_location_view.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 +from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/resources/user_location_view.proto', + package='google.ads.googleads.v4.resources', + syntax='proto3', + serialized_options=_b('\n%com.google.ads.googleads.v4.resourcesB\025UserLocationViewProtoP\001ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v4/resources;resources\242\002\003GAA\252\002!Google.Ads.GoogleAds.V4.Resources\312\002!Google\\Ads\\GoogleAds\\V4\\Resources\352\002%Google::Ads::GoogleAds::V4::Resources'), + serialized_pb=_b('\n@google/ads/googleads_v4/proto/resources/user_location_view.proto\x12!google.ads.googleads.v4.resources\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1cgoogle/api/annotations.proto\"\xc6\x02\n\x10UserLocationView\x12H\n\rresource_name\x18\x01 \x01(\tB1\xe0\x41\x03\xfa\x41+\n)googleads.googleapis.com/UserLocationView\x12>\n\x14\x63ountry_criterion_id\x18\x02 \x01(\x0b\x32\x1b.google.protobuf.Int64ValueB\x03\xe0\x41\x03\x12;\n\x12targeting_location\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.BoolValueB\x03\xe0\x41\x03:k\xea\x41h\n)googleads.googleapis.com/UserLocationView\x12;customers/{customer}/userLocationViews/{user_location_view}B\x82\x02\n%com.google.ads.googleads.v4.resourcesB\x15UserLocationViewProtoP\x01ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v4/resources;resources\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V4.Resources\xca\x02!Google\\Ads\\GoogleAds\\V4\\Resources\xea\x02%Google::Ads::GoogleAds::V4::Resourcesb\x06proto3') + , + dependencies=[google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_api_dot_resource__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + + +_USERLOCATIONVIEW = _descriptor.Descriptor( + name='UserLocationView', + full_name='google.ads.googleads.v4.resources.UserLocationView', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.resources.UserLocationView.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003\372A+\n)googleads.googleapis.com/UserLocationView'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='country_criterion_id', full_name='google.ads.googleads.v4.resources.UserLocationView.country_criterion_id', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='targeting_location', full_name='google.ads.googleads.v4.resources.UserLocationView.targeting_location', index=2, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=_b('\352Ah\n)googleads.googleapis.com/UserLocationView\022;customers/{customer}/userLocationViews/{user_location_view}'), + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=226, + serialized_end=552, +) + +_USERLOCATIONVIEW.fields_by_name['country_criterion_id'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_USERLOCATIONVIEW.fields_by_name['targeting_location'].message_type = google_dot_protobuf_dot_wrappers__pb2._BOOLVALUE +DESCRIPTOR.message_types_by_name['UserLocationView'] = _USERLOCATIONVIEW +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +UserLocationView = _reflection.GeneratedProtocolMessageType('UserLocationView', (_message.Message,), dict( + DESCRIPTOR = _USERLOCATIONVIEW, + __module__ = 'google.ads.googleads_v4.proto.resources.user_location_view_pb2' + , + __doc__ = """A user location view. + + User Location View includes all metrics aggregated at the country level, + one row per country. It reports metrics at the actual physical location + of the user by targeted or not targeted location. If other segment + fields are used, you may get more than one row per country. + + + Attributes: + resource_name: + Output only. The resource name of the user location view. + UserLocation view resource names have the form: ``customers/{ + customer_id}/userLocationViews/{country_criterion_id}~{targeti + ng_location}`` + country_criterion_id: + Output only. Criterion Id for the country. + targeting_location: + Output only. Indicates whether location was targeted or not. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.resources.UserLocationView) + )) +_sym_db.RegisterMessage(UserLocationView) + + +DESCRIPTOR._options = None +_USERLOCATIONVIEW.fields_by_name['resource_name']._options = None +_USERLOCATIONVIEW.fields_by_name['country_criterion_id']._options = None +_USERLOCATIONVIEW.fields_by_name['targeting_location']._options = None +_USERLOCATIONVIEW._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v4/proto/resources/user_location_view_pb2_grpc.py b/google/ads/google_ads/v4/proto/resources/user_location_view_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v4/proto/resources/user_location_view_pb2_grpc.py @@ -0,0 +1,3 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +import grpc + diff --git a/google/ads/google_ads/v4/proto/resources/video_pb2.py b/google/ads/google_ads/v4/proto/resources/video_pb2.py new file mode 100644 index 000000000..12784d8af --- /dev/null +++ b/google/ads/google_ads/v4/proto/resources/video_pb2.py @@ -0,0 +1,132 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/resources/video.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 +from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/resources/video.proto', + package='google.ads.googleads.v4.resources', + syntax='proto3', + serialized_options=_b('\n%com.google.ads.googleads.v4.resourcesB\nVideoProtoP\001ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v4/resources;resources\242\002\003GAA\252\002!Google.Ads.GoogleAds.V4.Resources\312\002!Google\\Ads\\GoogleAds\\V4\\Resources\352\002%Google::Ads::GoogleAds::V4::Resources'), + serialized_pb=_b('\n3google/ads/googleads_v4/proto/resources/video.proto\x12!google.ads.googleads.v4.resources\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1cgoogle/api/annotations.proto\"\xe3\x02\n\x05Video\x12=\n\rresource_name\x18\x01 \x01(\tB&\xe0\x41\x03\xfa\x41 \n\x1egoogleads.googleapis.com/Video\x12-\n\x02id\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValueB\x03\xe0\x41\x03\x12\x35\n\nchannel_id\x18\x03 \x01(\x0b\x32\x1c.google.protobuf.StringValueB\x03\xe0\x41\x03\x12\x39\n\x0f\x64uration_millis\x18\x04 \x01(\x0b\x32\x1b.google.protobuf.Int64ValueB\x03\xe0\x41\x03\x12\x30\n\x05title\x18\x05 \x01(\x0b\x32\x1c.google.protobuf.StringValueB\x03\xe0\x41\x03:H\xea\x41\x45\n\x1egoogleads.googleapis.com/Video\x12#customers/{customer}/videos/{video}B\xf7\x01\n%com.google.ads.googleads.v4.resourcesB\nVideoProtoP\x01ZJgoogle.golang.org/genproto/googleapis/ads/googleads/v4/resources;resources\xa2\x02\x03GAA\xaa\x02!Google.Ads.GoogleAds.V4.Resources\xca\x02!Google\\Ads\\GoogleAds\\V4\\Resources\xea\x02%Google::Ads::GoogleAds::V4::Resourcesb\x06proto3') + , + dependencies=[google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_api_dot_resource__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + + +_VIDEO = _descriptor.Descriptor( + name='Video', + full_name='google.ads.googleads.v4.resources.Video', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.resources.Video.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003\372A \n\036googleads.googleapis.com/Video'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='id', full_name='google.ads.googleads.v4.resources.Video.id', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='channel_id', full_name='google.ads.googleads.v4.resources.Video.channel_id', index=2, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='duration_millis', full_name='google.ads.googleads.v4.resources.Video.duration_millis', index=3, + number=4, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='title', full_name='google.ads.googleads.v4.resources.Video.title', index=4, + number=5, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\003'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=_b('\352AE\n\036googleads.googleapis.com/Video\022#customers/{customer}/videos/{video}'), + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=213, + serialized_end=568, +) + +_VIDEO.fields_by_name['id'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_VIDEO.fields_by_name['channel_id'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_VIDEO.fields_by_name['duration_millis'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_VIDEO.fields_by_name['title'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +DESCRIPTOR.message_types_by_name['Video'] = _VIDEO +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +Video = _reflection.GeneratedProtocolMessageType('Video', (_message.Message,), dict( + DESCRIPTOR = _VIDEO, + __module__ = 'google.ads.googleads_v4.proto.resources.video_pb2' + , + __doc__ = """A video. + + + Attributes: + resource_name: + Output only. The resource name of the video. Video resource + names have the form: + ``customers/{customer_id}/videos/{video_id}`` + id: + Output only. The ID of the video. + channel_id: + Output only. The owner channel id of the video. + duration_millis: + Output only. The duration of the video in milliseconds. + title: + Output only. The title of the video. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.resources.Video) + )) +_sym_db.RegisterMessage(Video) + + +DESCRIPTOR._options = None +_VIDEO.fields_by_name['resource_name']._options = None +_VIDEO.fields_by_name['id']._options = None +_VIDEO.fields_by_name['channel_id']._options = None +_VIDEO.fields_by_name['duration_millis']._options = None +_VIDEO.fields_by_name['title']._options = None +_VIDEO._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v4/proto/resources/video_pb2_grpc.py b/google/ads/google_ads/v4/proto/resources/video_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v4/proto/resources/video_pb2_grpc.py @@ -0,0 +1,3 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +import grpc + diff --git a/google/ads/google_ads/v1/proto/services/__init__.py b/google/ads/google_ads/v4/proto/services/__init__.py similarity index 100% rename from google/ads/google_ads/v1/proto/services/__init__.py rename to google/ads/google_ads/v4/proto/services/__init__.py diff --git a/google/ads/google_ads/v4/proto/services/account_budget_proposal_service_pb2.py b/google/ads/google_ads/v4/proto/services/account_budget_proposal_service_pb2.py new file mode 100644 index 000000000..ffa1b836d --- /dev/null +++ b/google/ads/google_ads/v4/proto/services/account_budget_proposal_service_pb2.py @@ -0,0 +1,378 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/services/account_budget_proposal_service.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.ads.google_ads.v4.proto.resources import account_budget_proposal_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_account__budget__proposal__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 +from google.api import client_pb2 as google_dot_api_dot_client__pb2 +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 +from google.protobuf import field_mask_pb2 as google_dot_protobuf_dot_field__mask__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/services/account_budget_proposal_service.proto', + package='google.ads.googleads.v4.services', + syntax='proto3', + serialized_options=_b('\n$com.google.ads.googleads.v4.servicesB!AccountBudgetProposalServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V4.Services\312\002 Google\\Ads\\GoogleAds\\V4\\Services\352\002$Google::Ads::GoogleAds::V4::Services'), + serialized_pb=_b('\nLgoogle/ads/googleads_v4/proto/services/account_budget_proposal_service.proto\x12 google.ads.googleads.v4.services\x1a\x45google/ads/googleads_v4/proto/resources/account_budget_proposal.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/protobuf/field_mask.proto\"p\n\x1fGetAccountBudgetProposalRequest\x12M\n\rresource_name\x18\x01 \x01(\tB6\xe0\x41\x02\xfa\x41\x30\n.googleads.googleapis.com/AccountBudgetProposal\"\xaf\x01\n\"MutateAccountBudgetProposalRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12X\n\toperation\x18\x02 \x01(\x0b\x32@.google.ads.googleads.v4.services.AccountBudgetProposalOperationB\x03\xe0\x41\x02\x12\x15\n\rvalidate_only\x18\x03 \x01(\x08\"\xbc\x01\n\x1e\x41\x63\x63ountBudgetProposalOperation\x12/\n\x0bupdate_mask\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12J\n\x06\x63reate\x18\x02 \x01(\x0b\x32\x38.google.ads.googleads.v4.resources.AccountBudgetProposalH\x00\x12\x10\n\x06remove\x18\x01 \x01(\tH\x00\x42\x0b\n\toperation\"z\n#MutateAccountBudgetProposalResponse\x12S\n\x06result\x18\x02 \x01(\x0b\x32\x43.google.ads.googleads.v4.services.MutateAccountBudgetProposalResult\":\n!MutateAccountBudgetProposalResult\x12\x15\n\rresource_name\x18\x01 \x01(\t2\xb4\x04\n\x1c\x41\x63\x63ountBudgetProposalService\x12\xe9\x01\n\x18GetAccountBudgetProposal\x12\x41.google.ads.googleads.v4.services.GetAccountBudgetProposalRequest\x1a\x38.google.ads.googleads.v4.resources.AccountBudgetProposal\"P\x82\xd3\xe4\x93\x02:\x12\x38/v4/{resource_name=customers/*/accountBudgetProposals/*}\xda\x41\rresource_name\x12\x8a\x02\n\x1bMutateAccountBudgetProposal\x12\x44.google.ads.googleads.v4.services.MutateAccountBudgetProposalRequest\x1a\x45.google.ads.googleads.v4.services.MutateAccountBudgetProposalResponse\"^\x82\xd3\xe4\x93\x02@\";/v4/customers/{customer_id=*}/accountBudgetProposals:mutate:\x01*\xda\x41\x15\x63ustomer_id,operation\x1a\x1b\xca\x41\x18googleads.googleapis.comB\x88\x02\n$com.google.ads.googleads.v4.servicesB!AccountBudgetProposalServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V4.Services\xca\x02 Google\\Ads\\GoogleAds\\V4\\Services\xea\x02$Google::Ads::GoogleAds::V4::Servicesb\x06proto3') + , + dependencies=[google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_account__budget__proposal__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_api_dot_client__pb2.DESCRIPTOR,google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_api_dot_resource__pb2.DESCRIPTOR,google_dot_protobuf_dot_field__mask__pb2.DESCRIPTOR,]) + + + + +_GETACCOUNTBUDGETPROPOSALREQUEST = _descriptor.Descriptor( + name='GetAccountBudgetProposalRequest', + full_name='google.ads.googleads.v4.services.GetAccountBudgetProposalRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.services.GetAccountBudgetProposalRequest.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002\372A0\n.googleads.googleapis.com/AccountBudgetProposal'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=334, + serialized_end=446, +) + + +_MUTATEACCOUNTBUDGETPROPOSALREQUEST = _descriptor.Descriptor( + name='MutateAccountBudgetProposalRequest', + full_name='google.ads.googleads.v4.services.MutateAccountBudgetProposalRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='customer_id', full_name='google.ads.googleads.v4.services.MutateAccountBudgetProposalRequest.customer_id', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='operation', full_name='google.ads.googleads.v4.services.MutateAccountBudgetProposalRequest.operation', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='validate_only', full_name='google.ads.googleads.v4.services.MutateAccountBudgetProposalRequest.validate_only', index=2, + number=3, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=449, + serialized_end=624, +) + + +_ACCOUNTBUDGETPROPOSALOPERATION = _descriptor.Descriptor( + name='AccountBudgetProposalOperation', + full_name='google.ads.googleads.v4.services.AccountBudgetProposalOperation', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='update_mask', full_name='google.ads.googleads.v4.services.AccountBudgetProposalOperation.update_mask', index=0, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='create', full_name='google.ads.googleads.v4.services.AccountBudgetProposalOperation.create', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='remove', full_name='google.ads.googleads.v4.services.AccountBudgetProposalOperation.remove', index=2, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name='operation', full_name='google.ads.googleads.v4.services.AccountBudgetProposalOperation.operation', + index=0, containing_type=None, fields=[]), + ], + serialized_start=627, + serialized_end=815, +) + + +_MUTATEACCOUNTBUDGETPROPOSALRESPONSE = _descriptor.Descriptor( + name='MutateAccountBudgetProposalResponse', + full_name='google.ads.googleads.v4.services.MutateAccountBudgetProposalResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='result', full_name='google.ads.googleads.v4.services.MutateAccountBudgetProposalResponse.result', index=0, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=817, + serialized_end=939, +) + + +_MUTATEACCOUNTBUDGETPROPOSALRESULT = _descriptor.Descriptor( + name='MutateAccountBudgetProposalResult', + full_name='google.ads.googleads.v4.services.MutateAccountBudgetProposalResult', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.services.MutateAccountBudgetProposalResult.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=941, + serialized_end=999, +) + +_MUTATEACCOUNTBUDGETPROPOSALREQUEST.fields_by_name['operation'].message_type = _ACCOUNTBUDGETPROPOSALOPERATION +_ACCOUNTBUDGETPROPOSALOPERATION.fields_by_name['update_mask'].message_type = google_dot_protobuf_dot_field__mask__pb2._FIELDMASK +_ACCOUNTBUDGETPROPOSALOPERATION.fields_by_name['create'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_account__budget__proposal__pb2._ACCOUNTBUDGETPROPOSAL +_ACCOUNTBUDGETPROPOSALOPERATION.oneofs_by_name['operation'].fields.append( + _ACCOUNTBUDGETPROPOSALOPERATION.fields_by_name['create']) +_ACCOUNTBUDGETPROPOSALOPERATION.fields_by_name['create'].containing_oneof = _ACCOUNTBUDGETPROPOSALOPERATION.oneofs_by_name['operation'] +_ACCOUNTBUDGETPROPOSALOPERATION.oneofs_by_name['operation'].fields.append( + _ACCOUNTBUDGETPROPOSALOPERATION.fields_by_name['remove']) +_ACCOUNTBUDGETPROPOSALOPERATION.fields_by_name['remove'].containing_oneof = _ACCOUNTBUDGETPROPOSALOPERATION.oneofs_by_name['operation'] +_MUTATEACCOUNTBUDGETPROPOSALRESPONSE.fields_by_name['result'].message_type = _MUTATEACCOUNTBUDGETPROPOSALRESULT +DESCRIPTOR.message_types_by_name['GetAccountBudgetProposalRequest'] = _GETACCOUNTBUDGETPROPOSALREQUEST +DESCRIPTOR.message_types_by_name['MutateAccountBudgetProposalRequest'] = _MUTATEACCOUNTBUDGETPROPOSALREQUEST +DESCRIPTOR.message_types_by_name['AccountBudgetProposalOperation'] = _ACCOUNTBUDGETPROPOSALOPERATION +DESCRIPTOR.message_types_by_name['MutateAccountBudgetProposalResponse'] = _MUTATEACCOUNTBUDGETPROPOSALRESPONSE +DESCRIPTOR.message_types_by_name['MutateAccountBudgetProposalResult'] = _MUTATEACCOUNTBUDGETPROPOSALRESULT +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +GetAccountBudgetProposalRequest = _reflection.GeneratedProtocolMessageType('GetAccountBudgetProposalRequest', (_message.Message,), dict( + DESCRIPTOR = _GETACCOUNTBUDGETPROPOSALREQUEST, + __module__ = 'google.ads.googleads_v4.proto.services.account_budget_proposal_service_pb2' + , + __doc__ = """Request message for + [AccountBudgetProposalService.GetAccountBudgetProposal][google.ads.googleads.v4.services.AccountBudgetProposalService.GetAccountBudgetProposal]. + + + Attributes: + resource_name: + Required. The resource name of the account-level budget + proposal to fetch. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.GetAccountBudgetProposalRequest) + )) +_sym_db.RegisterMessage(GetAccountBudgetProposalRequest) + +MutateAccountBudgetProposalRequest = _reflection.GeneratedProtocolMessageType('MutateAccountBudgetProposalRequest', (_message.Message,), dict( + DESCRIPTOR = _MUTATEACCOUNTBUDGETPROPOSALREQUEST, + __module__ = 'google.ads.googleads_v4.proto.services.account_budget_proposal_service_pb2' + , + __doc__ = """Request message for + [AccountBudgetProposalService.MutateAccountBudgetProposal][google.ads.googleads.v4.services.AccountBudgetProposalService.MutateAccountBudgetProposal]. + + + Attributes: + customer_id: + Required. The ID of the customer. + operation: + Required. The operation to perform on an individual account- + level budget proposal. + validate_only: + If true, the request is validated but not executed. Only + errors are returned, not results. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.MutateAccountBudgetProposalRequest) + )) +_sym_db.RegisterMessage(MutateAccountBudgetProposalRequest) + +AccountBudgetProposalOperation = _reflection.GeneratedProtocolMessageType('AccountBudgetProposalOperation', (_message.Message,), dict( + DESCRIPTOR = _ACCOUNTBUDGETPROPOSALOPERATION, + __module__ = 'google.ads.googleads_v4.proto.services.account_budget_proposal_service_pb2' + , + __doc__ = """A single operation to propose the creation of a new account-level budget + or edit/end/remove an existing one. + + + Attributes: + update_mask: + FieldMask that determines which budget fields are modified. + While budgets may be modified, proposals that propose such + modifications are final. Therefore, update operations are not + supported for proposals. Proposals that modify budgets have + the 'update' proposal type. Specifying a mask for any other + proposal type is considered an error. + operation: + The mutate operation. + create: + 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. No + resource name is expected for the new proposal. + remove: + Remove operation: A resource name for the removed proposal is + expected, in this format: ``customers/{customer_id}/accountBu + dgetProposals/{account_budget_proposal_id}`` A request may be + cancelled iff it is pending. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.AccountBudgetProposalOperation) + )) +_sym_db.RegisterMessage(AccountBudgetProposalOperation) + +MutateAccountBudgetProposalResponse = _reflection.GeneratedProtocolMessageType('MutateAccountBudgetProposalResponse', (_message.Message,), dict( + DESCRIPTOR = _MUTATEACCOUNTBUDGETPROPOSALRESPONSE, + __module__ = 'google.ads.googleads_v4.proto.services.account_budget_proposal_service_pb2' + , + __doc__ = """Response message for account-level budget mutate operations. + + + Attributes: + result: + The result of the mutate. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.MutateAccountBudgetProposalResponse) + )) +_sym_db.RegisterMessage(MutateAccountBudgetProposalResponse) + +MutateAccountBudgetProposalResult = _reflection.GeneratedProtocolMessageType('MutateAccountBudgetProposalResult', (_message.Message,), dict( + DESCRIPTOR = _MUTATEACCOUNTBUDGETPROPOSALRESULT, + __module__ = 'google.ads.googleads_v4.proto.services.account_budget_proposal_service_pb2' + , + __doc__ = """The result for the account budget proposal mutate. + + + Attributes: + resource_name: + Returned for successful operations. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.MutateAccountBudgetProposalResult) + )) +_sym_db.RegisterMessage(MutateAccountBudgetProposalResult) + + +DESCRIPTOR._options = None +_GETACCOUNTBUDGETPROPOSALREQUEST.fields_by_name['resource_name']._options = None +_MUTATEACCOUNTBUDGETPROPOSALREQUEST.fields_by_name['customer_id']._options = None +_MUTATEACCOUNTBUDGETPROPOSALREQUEST.fields_by_name['operation']._options = None + +_ACCOUNTBUDGETPROPOSALSERVICE = _descriptor.ServiceDescriptor( + name='AccountBudgetProposalService', + full_name='google.ads.googleads.v4.services.AccountBudgetProposalService', + file=DESCRIPTOR, + index=0, + serialized_options=_b('\312A\030googleads.googleapis.com'), + serialized_start=1002, + serialized_end=1566, + methods=[ + _descriptor.MethodDescriptor( + name='GetAccountBudgetProposal', + full_name='google.ads.googleads.v4.services.AccountBudgetProposalService.GetAccountBudgetProposal', + index=0, + containing_service=None, + input_type=_GETACCOUNTBUDGETPROPOSALREQUEST, + output_type=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_account__budget__proposal__pb2._ACCOUNTBUDGETPROPOSAL, + serialized_options=_b('\202\323\344\223\002:\0228/v4/{resource_name=customers/*/accountBudgetProposals/*}\332A\rresource_name'), + ), + _descriptor.MethodDescriptor( + name='MutateAccountBudgetProposal', + full_name='google.ads.googleads.v4.services.AccountBudgetProposalService.MutateAccountBudgetProposal', + index=1, + containing_service=None, + input_type=_MUTATEACCOUNTBUDGETPROPOSALREQUEST, + output_type=_MUTATEACCOUNTBUDGETPROPOSALRESPONSE, + serialized_options=_b('\202\323\344\223\002@\";/v4/customers/{customer_id=*}/accountBudgetProposals:mutate:\001*\332A\025customer_id,operation'), + ), +]) +_sym_db.RegisterServiceDescriptor(_ACCOUNTBUDGETPROPOSALSERVICE) + +DESCRIPTOR.services_by_name['AccountBudgetProposalService'] = _ACCOUNTBUDGETPROPOSALSERVICE + +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/services/account_budget_proposal_service_pb2_grpc.py b/google/ads/google_ads/v4/proto/services/account_budget_proposal_service_pb2_grpc.py similarity index 75% rename from google/ads/google_ads/v1/proto/services/account_budget_proposal_service_pb2_grpc.py rename to google/ads/google_ads/v4/proto/services/account_budget_proposal_service_pb2_grpc.py index 19091fb90..0008926bd 100644 --- a/google/ads/google_ads/v1/proto/services/account_budget_proposal_service_pb2_grpc.py +++ b/google/ads/google_ads/v4/proto/services/account_budget_proposal_service_pb2_grpc.py @@ -1,8 +1,8 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc -from google.ads.google_ads.v1.proto.resources import account_budget_proposal_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_account__budget__proposal__pb2 -from google.ads.google_ads.v1.proto.services import account_budget_proposal_service_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_account__budget__proposal__service__pb2 +from google.ads.google_ads.v4.proto.resources import account_budget_proposal_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_account__budget__proposal__pb2 +from google.ads.google_ads.v4.proto.services import account_budget_proposal_service_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_account__budget__proposal__service__pb2 class AccountBudgetProposalServiceStub(object): @@ -14,7 +14,8 @@ class AccountBudgetProposalServiceStub(object): existing one. Reads for account-level budgets managed by these proposals will be - supported in a future version. Please use BudgetOrderService until then: + supported in a future version. Until then, please use the + BudgetOrderService from the AdWords API. Learn more at https://developers.google.com/adwords/api/docs/guides/budget-order Mutates: @@ -30,14 +31,14 @@ def __init__(self, channel): channel: A grpc.Channel. """ self.GetAccountBudgetProposal = channel.unary_unary( - '/google.ads.googleads.v1.services.AccountBudgetProposalService/GetAccountBudgetProposal', - request_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_account__budget__proposal__service__pb2.GetAccountBudgetProposalRequest.SerializeToString, - response_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_account__budget__proposal__pb2.AccountBudgetProposal.FromString, + '/google.ads.googleads.v4.services.AccountBudgetProposalService/GetAccountBudgetProposal', + request_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_account__budget__proposal__service__pb2.GetAccountBudgetProposalRequest.SerializeToString, + response_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_account__budget__proposal__pb2.AccountBudgetProposal.FromString, ) self.MutateAccountBudgetProposal = channel.unary_unary( - '/google.ads.googleads.v1.services.AccountBudgetProposalService/MutateAccountBudgetProposal', - request_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_account__budget__proposal__service__pb2.MutateAccountBudgetProposalRequest.SerializeToString, - response_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_account__budget__proposal__service__pb2.MutateAccountBudgetProposalResponse.FromString, + '/google.ads.googleads.v4.services.AccountBudgetProposalService/MutateAccountBudgetProposal', + request_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_account__budget__proposal__service__pb2.MutateAccountBudgetProposalRequest.SerializeToString, + response_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_account__budget__proposal__service__pb2.MutateAccountBudgetProposalResponse.FromString, ) @@ -50,7 +51,8 @@ class AccountBudgetProposalServiceServicer(object): existing one. Reads for account-level budgets managed by these proposals will be - supported in a future version. Please use BudgetOrderService until then: + supported in a future version. Until then, please use the + BudgetOrderService from the AdWords API. Learn more at https://developers.google.com/adwords/api/docs/guides/budget-order Mutates: @@ -79,15 +81,15 @@ def add_AccountBudgetProposalServiceServicer_to_server(servicer, server): rpc_method_handlers = { 'GetAccountBudgetProposal': grpc.unary_unary_rpc_method_handler( servicer.GetAccountBudgetProposal, - request_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_account__budget__proposal__service__pb2.GetAccountBudgetProposalRequest.FromString, - response_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_account__budget__proposal__pb2.AccountBudgetProposal.SerializeToString, + request_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_account__budget__proposal__service__pb2.GetAccountBudgetProposalRequest.FromString, + response_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_account__budget__proposal__pb2.AccountBudgetProposal.SerializeToString, ), 'MutateAccountBudgetProposal': grpc.unary_unary_rpc_method_handler( servicer.MutateAccountBudgetProposal, - request_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_account__budget__proposal__service__pb2.MutateAccountBudgetProposalRequest.FromString, - response_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_account__budget__proposal__service__pb2.MutateAccountBudgetProposalResponse.SerializeToString, + request_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_account__budget__proposal__service__pb2.MutateAccountBudgetProposalRequest.FromString, + response_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_account__budget__proposal__service__pb2.MutateAccountBudgetProposalResponse.SerializeToString, ), } generic_handler = grpc.method_handlers_generic_handler( - 'google.ads.googleads.v1.services.AccountBudgetProposalService', rpc_method_handlers) + 'google.ads.googleads.v4.services.AccountBudgetProposalService', rpc_method_handlers) server.add_generic_rpc_handlers((generic_handler,)) diff --git a/google/ads/google_ads/v4/proto/services/account_budget_service_pb2.py b/google/ads/google_ads/v4/proto/services/account_budget_service_pb2.py new file mode 100644 index 000000000..c20187a3f --- /dev/null +++ b/google/ads/google_ads/v4/proto/services/account_budget_service_pb2.py @@ -0,0 +1,112 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/services/account_budget_service.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.ads.google_ads.v4.proto.resources import account_budget_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_account__budget__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 +from google.api import client_pb2 as google_dot_api_dot_client__pb2 +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/services/account_budget_service.proto', + package='google.ads.googleads.v4.services', + syntax='proto3', + serialized_options=_b('\n$com.google.ads.googleads.v4.servicesB\031AccountBudgetServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V4.Services\312\002 Google\\Ads\\GoogleAds\\V4\\Services\352\002$Google::Ads::GoogleAds::V4::Services'), + serialized_pb=_b('\nCgoogle/ads/googleads_v4/proto/services/account_budget_service.proto\x12 google.ads.googleads.v4.services\x1a.google.ads.googleads.v4.services.GetAdGroupAdAssetViewRequest\x1a\x35.google.ads.googleads.v4.resources.AdGroupAdAssetView\"M\x82\xd3\xe4\x93\x02\x37\x12\x35/v4/{resource_name=customers/*/adGroupAdAssetViews/*}\xda\x41\rresource_name\x1a\x1b\xca\x41\x18googleads.googleapis.comB\x85\x02\n$com.google.ads.googleads.v4.servicesB\x1e\x41\x64GroupAdAssetViewServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V4.Services\xca\x02 Google\\Ads\\GoogleAds\\V4\\Services\xea\x02$Google::Ads::GoogleAds::V4::Servicesb\x06proto3') + , + dependencies=[google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_ad__group__ad__asset__view__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_api_dot_client__pb2.DESCRIPTOR,google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_api_dot_resource__pb2.DESCRIPTOR,]) + + + + +_GETADGROUPADASSETVIEWREQUEST = _descriptor.Descriptor( + name='GetAdGroupAdAssetViewRequest', + full_name='google.ads.googleads.v4.services.GetAdGroupAdAssetViewRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.services.GetAdGroupAdAssetViewRequest.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002\372A-\n+googleads.googleapis.com/AdGroupAdAssetView'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=298, + serialized_end=404, +) + +DESCRIPTOR.message_types_by_name['GetAdGroupAdAssetViewRequest'] = _GETADGROUPADASSETVIEWREQUEST +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +GetAdGroupAdAssetViewRequest = _reflection.GeneratedProtocolMessageType('GetAdGroupAdAssetViewRequest', (_message.Message,), dict( + DESCRIPTOR = _GETADGROUPADASSETVIEWREQUEST, + __module__ = 'google.ads.googleads_v4.proto.services.ad_group_ad_asset_view_service_pb2' + , + __doc__ = """Request message for + [AdGroupAdAssetViewService.GetAdGroupAdAssetView][google.ads.googleads.v4.services.AdGroupAdAssetViewService.GetAdGroupAdAssetView]. + + + Attributes: + resource_name: + Required. The resource name of the ad group ad asset view to + fetch. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.GetAdGroupAdAssetViewRequest) + )) +_sym_db.RegisterMessage(GetAdGroupAdAssetViewRequest) + + +DESCRIPTOR._options = None +_GETADGROUPADASSETVIEWREQUEST.fields_by_name['resource_name']._options = None + +_ADGROUPADASSETVIEWSERVICE = _descriptor.ServiceDescriptor( + name='AdGroupAdAssetViewService', + full_name='google.ads.googleads.v4.services.AdGroupAdAssetViewService', + file=DESCRIPTOR, + index=0, + serialized_options=_b('\312A\030googleads.googleapis.com'), + serialized_start=407, + serialized_end=687, + methods=[ + _descriptor.MethodDescriptor( + name='GetAdGroupAdAssetView', + full_name='google.ads.googleads.v4.services.AdGroupAdAssetViewService.GetAdGroupAdAssetView', + index=0, + containing_service=None, + input_type=_GETADGROUPADASSETVIEWREQUEST, + output_type=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_ad__group__ad__asset__view__pb2._ADGROUPADASSETVIEW, + serialized_options=_b('\202\323\344\223\0027\0225/v4/{resource_name=customers/*/adGroupAdAssetViews/*}\332A\rresource_name'), + ), +]) +_sym_db.RegisterServiceDescriptor(_ADGROUPADASSETVIEWSERVICE) + +DESCRIPTOR.services_by_name['AdGroupAdAssetViewService'] = _ADGROUPADASSETVIEWSERVICE + +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v4/proto/services/ad_group_ad_asset_view_service_pb2_grpc.py b/google/ads/google_ads/v4/proto/services/ad_group_ad_asset_view_service_pb2_grpc.py new file mode 100644 index 000000000..f9fd9f2f8 --- /dev/null +++ b/google/ads/google_ads/v4/proto/services/ad_group_ad_asset_view_service_pb2_grpc.py @@ -0,0 +1,51 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +import grpc + +from google.ads.google_ads.v4.proto.resources import ad_group_ad_asset_view_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_ad__group__ad__asset__view__pb2 +from google.ads.google_ads.v4.proto.services import ad_group_ad_asset_view_service_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_ad__group__ad__asset__view__service__pb2 + + +class AdGroupAdAssetViewServiceStub(object): + """Proto file describing the ad group ad asset view service. + + Service to fetch ad group ad asset views. + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.GetAdGroupAdAssetView = channel.unary_unary( + '/google.ads.googleads.v4.services.AdGroupAdAssetViewService/GetAdGroupAdAssetView', + request_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_ad__group__ad__asset__view__service__pb2.GetAdGroupAdAssetViewRequest.SerializeToString, + response_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_ad__group__ad__asset__view__pb2.AdGroupAdAssetView.FromString, + ) + + +class AdGroupAdAssetViewServiceServicer(object): + """Proto file describing the ad group ad asset view service. + + Service to fetch ad group ad asset views. + """ + + def GetAdGroupAdAssetView(self, request, context): + """Returns the requested ad group ad asset view in full detail. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_AdGroupAdAssetViewServiceServicer_to_server(servicer, server): + rpc_method_handlers = { + 'GetAdGroupAdAssetView': grpc.unary_unary_rpc_method_handler( + servicer.GetAdGroupAdAssetView, + request_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_ad__group__ad__asset__view__service__pb2.GetAdGroupAdAssetViewRequest.FromString, + response_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_ad__group__ad__asset__view__pb2.AdGroupAdAssetView.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'google.ads.googleads.v4.services.AdGroupAdAssetViewService', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) diff --git a/google/ads/google_ads/v4/proto/services/ad_group_ad_label_service_pb2.py b/google/ads/google_ads/v4/proto/services/ad_group_ad_label_service_pb2.py new file mode 100644 index 000000000..56a8811c1 --- /dev/null +++ b/google/ads/google_ads/v4/proto/services/ad_group_ad_label_service_pb2.py @@ -0,0 +1,385 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/services/ad_group_ad_label_service.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.ads.google_ads.v4.proto.resources import ad_group_ad_label_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_ad__group__ad__label__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 +from google.api import client_pb2 as google_dot_api_dot_client__pb2 +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 +from google.rpc import status_pb2 as google_dot_rpc_dot_status__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/services/ad_group_ad_label_service.proto', + package='google.ads.googleads.v4.services', + syntax='proto3', + serialized_options=_b('\n$com.google.ads.googleads.v4.servicesB\032AdGroupAdLabelServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V4.Services\312\002 Google\\Ads\\GoogleAds\\V4\\Services\352\002$Google::Ads::GoogleAds::V4::Services'), + serialized_pb=_b('\nFgoogle/ads/googleads_v4/proto/services/ad_group_ad_label_service.proto\x12 google.ads.googleads.v4.services\x1a?google/ads/googleads_v4/proto/resources/ad_group_ad_label.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x17google/rpc/status.proto\"b\n\x18GetAdGroupAdLabelRequest\x12\x46\n\rresource_name\x18\x01 \x01(\tB/\xe0\x41\x02\xfa\x41)\n\'googleads.googleapis.com/AdGroupAdLabel\"\xbc\x01\n\x1cMutateAdGroupAdLabelsRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12R\n\noperations\x18\x02 \x03(\x0b\x32\x39.google.ads.googleads.v4.services.AdGroupAdLabelOperationB\x03\xe0\x41\x02\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\"}\n\x17\x41\x64GroupAdLabelOperation\x12\x43\n\x06\x63reate\x18\x01 \x01(\x0b\x32\x31.google.ads.googleads.v4.resources.AdGroupAdLabelH\x00\x12\x10\n\x06remove\x18\x02 \x01(\tH\x00\x42\x0b\n\toperation\"\xa1\x01\n\x1dMutateAdGroupAdLabelsResponse\x12\x31\n\x15partial_failure_error\x18\x03 \x01(\x0b\x32\x12.google.rpc.Status\x12M\n\x07results\x18\x02 \x03(\x0b\x32<.google.ads.googleads.v4.services.MutateAdGroupAdLabelResult\"3\n\x1aMutateAdGroupAdLabelResult\x12\x15\n\rresource_name\x18\x01 \x01(\t2\xf9\x03\n\x15\x41\x64GroupAdLabelService\x12\xcd\x01\n\x11GetAdGroupAdLabel\x12:.google.ads.googleads.v4.services.GetAdGroupAdLabelRequest\x1a\x31.google.ads.googleads.v4.resources.AdGroupAdLabel\"I\x82\xd3\xe4\x93\x02\x33\x12\x31/v4/{resource_name=customers/*/adGroupAdLabels/*}\xda\x41\rresource_name\x12\xf2\x01\n\x15MutateAdGroupAdLabels\x12>.google.ads.googleads.v4.services.MutateAdGroupAdLabelsRequest\x1a?.google.ads.googleads.v4.services.MutateAdGroupAdLabelsResponse\"X\x82\xd3\xe4\x93\x02\x39\"4/v4/customers/{customer_id=*}/adGroupAdLabels:mutate:\x01*\xda\x41\x16\x63ustomer_id,operations\x1a\x1b\xca\x41\x18googleads.googleapis.comB\x81\x02\n$com.google.ads.googleads.v4.servicesB\x1a\x41\x64GroupAdLabelServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V4.Services\xca\x02 Google\\Ads\\GoogleAds\\V4\\Services\xea\x02$Google::Ads::GoogleAds::V4::Servicesb\x06proto3') + , + dependencies=[google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_ad__group__ad__label__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_api_dot_client__pb2.DESCRIPTOR,google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_api_dot_resource__pb2.DESCRIPTOR,google_dot_rpc_dot_status__pb2.DESCRIPTOR,]) + + + + +_GETADGROUPADLABELREQUEST = _descriptor.Descriptor( + name='GetAdGroupAdLabelRequest', + full_name='google.ads.googleads.v4.services.GetAdGroupAdLabelRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.services.GetAdGroupAdLabelRequest.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002\372A)\n\'googleads.googleapis.com/AdGroupAdLabel'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=313, + serialized_end=411, +) + + +_MUTATEADGROUPADLABELSREQUEST = _descriptor.Descriptor( + name='MutateAdGroupAdLabelsRequest', + full_name='google.ads.googleads.v4.services.MutateAdGroupAdLabelsRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='customer_id', full_name='google.ads.googleads.v4.services.MutateAdGroupAdLabelsRequest.customer_id', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='operations', full_name='google.ads.googleads.v4.services.MutateAdGroupAdLabelsRequest.operations', index=1, + number=2, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='partial_failure', full_name='google.ads.googleads.v4.services.MutateAdGroupAdLabelsRequest.partial_failure', index=2, + number=3, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='validate_only', full_name='google.ads.googleads.v4.services.MutateAdGroupAdLabelsRequest.validate_only', index=3, + number=4, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=414, + serialized_end=602, +) + + +_ADGROUPADLABELOPERATION = _descriptor.Descriptor( + name='AdGroupAdLabelOperation', + full_name='google.ads.googleads.v4.services.AdGroupAdLabelOperation', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='create', full_name='google.ads.googleads.v4.services.AdGroupAdLabelOperation.create', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='remove', full_name='google.ads.googleads.v4.services.AdGroupAdLabelOperation.remove', index=1, + number=2, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name='operation', full_name='google.ads.googleads.v4.services.AdGroupAdLabelOperation.operation', + index=0, containing_type=None, fields=[]), + ], + serialized_start=604, + serialized_end=729, +) + + +_MUTATEADGROUPADLABELSRESPONSE = _descriptor.Descriptor( + name='MutateAdGroupAdLabelsResponse', + full_name='google.ads.googleads.v4.services.MutateAdGroupAdLabelsResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='partial_failure_error', full_name='google.ads.googleads.v4.services.MutateAdGroupAdLabelsResponse.partial_failure_error', index=0, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='results', full_name='google.ads.googleads.v4.services.MutateAdGroupAdLabelsResponse.results', index=1, + number=2, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=732, + serialized_end=893, +) + + +_MUTATEADGROUPADLABELRESULT = _descriptor.Descriptor( + name='MutateAdGroupAdLabelResult', + full_name='google.ads.googleads.v4.services.MutateAdGroupAdLabelResult', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.services.MutateAdGroupAdLabelResult.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=895, + serialized_end=946, +) + +_MUTATEADGROUPADLABELSREQUEST.fields_by_name['operations'].message_type = _ADGROUPADLABELOPERATION +_ADGROUPADLABELOPERATION.fields_by_name['create'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_ad__group__ad__label__pb2._ADGROUPADLABEL +_ADGROUPADLABELOPERATION.oneofs_by_name['operation'].fields.append( + _ADGROUPADLABELOPERATION.fields_by_name['create']) +_ADGROUPADLABELOPERATION.fields_by_name['create'].containing_oneof = _ADGROUPADLABELOPERATION.oneofs_by_name['operation'] +_ADGROUPADLABELOPERATION.oneofs_by_name['operation'].fields.append( + _ADGROUPADLABELOPERATION.fields_by_name['remove']) +_ADGROUPADLABELOPERATION.fields_by_name['remove'].containing_oneof = _ADGROUPADLABELOPERATION.oneofs_by_name['operation'] +_MUTATEADGROUPADLABELSRESPONSE.fields_by_name['partial_failure_error'].message_type = google_dot_rpc_dot_status__pb2._STATUS +_MUTATEADGROUPADLABELSRESPONSE.fields_by_name['results'].message_type = _MUTATEADGROUPADLABELRESULT +DESCRIPTOR.message_types_by_name['GetAdGroupAdLabelRequest'] = _GETADGROUPADLABELREQUEST +DESCRIPTOR.message_types_by_name['MutateAdGroupAdLabelsRequest'] = _MUTATEADGROUPADLABELSREQUEST +DESCRIPTOR.message_types_by_name['AdGroupAdLabelOperation'] = _ADGROUPADLABELOPERATION +DESCRIPTOR.message_types_by_name['MutateAdGroupAdLabelsResponse'] = _MUTATEADGROUPADLABELSRESPONSE +DESCRIPTOR.message_types_by_name['MutateAdGroupAdLabelResult'] = _MUTATEADGROUPADLABELRESULT +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +GetAdGroupAdLabelRequest = _reflection.GeneratedProtocolMessageType('GetAdGroupAdLabelRequest', (_message.Message,), dict( + DESCRIPTOR = _GETADGROUPADLABELREQUEST, + __module__ = 'google.ads.googleads_v4.proto.services.ad_group_ad_label_service_pb2' + , + __doc__ = """Request message for + [AdGroupAdLabelService.GetAdGroupAdLabel][google.ads.googleads.v4.services.AdGroupAdLabelService.GetAdGroupAdLabel]. + + + Attributes: + resource_name: + Required. The resource name of the ad group ad label to fetch. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.GetAdGroupAdLabelRequest) + )) +_sym_db.RegisterMessage(GetAdGroupAdLabelRequest) + +MutateAdGroupAdLabelsRequest = _reflection.GeneratedProtocolMessageType('MutateAdGroupAdLabelsRequest', (_message.Message,), dict( + DESCRIPTOR = _MUTATEADGROUPADLABELSREQUEST, + __module__ = 'google.ads.googleads_v4.proto.services.ad_group_ad_label_service_pb2' + , + __doc__ = """Request message for + [AdGroupAdLabelService.MutateAdGroupAdLabels][google.ads.googleads.v4.services.AdGroupAdLabelService.MutateAdGroupAdLabels]. + + + Attributes: + customer_id: + Required. ID of the customer whose ad group ad labels are + being modified. + operations: + Required. The list of operations to perform on ad group ad + labels. + partial_failure: + If true, successful operations will be carried out and invalid + operations will return errors. If false, all operations will + be carried out in one transaction if and only if they are all + valid. Default is false. + validate_only: + If true, the request is validated but not executed. Only + errors are returned, not results. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.MutateAdGroupAdLabelsRequest) + )) +_sym_db.RegisterMessage(MutateAdGroupAdLabelsRequest) + +AdGroupAdLabelOperation = _reflection.GeneratedProtocolMessageType('AdGroupAdLabelOperation', (_message.Message,), dict( + DESCRIPTOR = _ADGROUPADLABELOPERATION, + __module__ = 'google.ads.googleads_v4.proto.services.ad_group_ad_label_service_pb2' + , + __doc__ = """A single operation (create, remove) on an ad group ad label. + + + Attributes: + operation: + The mutate operation. + create: + Create operation: No resource name is expected for the new ad + group ad label. + remove: + Remove operation: A resource name for the ad group ad label + being removed, in this format: ``customers/{customer_id}/adGr + oupAdLabels/{ad_group_id}~{ad_id} _{label_id}`` + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.AdGroupAdLabelOperation) + )) +_sym_db.RegisterMessage(AdGroupAdLabelOperation) + +MutateAdGroupAdLabelsResponse = _reflection.GeneratedProtocolMessageType('MutateAdGroupAdLabelsResponse', (_message.Message,), dict( + DESCRIPTOR = _MUTATEADGROUPADLABELSRESPONSE, + __module__ = 'google.ads.googleads_v4.proto.services.ad_group_ad_label_service_pb2' + , + __doc__ = """Response message for an ad group ad labels mutate. + + + Attributes: + partial_failure_error: + Errors that pertain to operation failures in the partial + failure mode. Returned only when partial\_failure = true and + all errors occur inside the operations. If any errors occur + outside the operations (e.g. auth errors), we return an RPC + level error. + results: + All results for the mutate. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.MutateAdGroupAdLabelsResponse) + )) +_sym_db.RegisterMessage(MutateAdGroupAdLabelsResponse) + +MutateAdGroupAdLabelResult = _reflection.GeneratedProtocolMessageType('MutateAdGroupAdLabelResult', (_message.Message,), dict( + DESCRIPTOR = _MUTATEADGROUPADLABELRESULT, + __module__ = 'google.ads.googleads_v4.proto.services.ad_group_ad_label_service_pb2' + , + __doc__ = """The result for an ad group ad label mutate. + + + Attributes: + resource_name: + Returned for successful operations. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.MutateAdGroupAdLabelResult) + )) +_sym_db.RegisterMessage(MutateAdGroupAdLabelResult) + + +DESCRIPTOR._options = None +_GETADGROUPADLABELREQUEST.fields_by_name['resource_name']._options = None +_MUTATEADGROUPADLABELSREQUEST.fields_by_name['customer_id']._options = None +_MUTATEADGROUPADLABELSREQUEST.fields_by_name['operations']._options = None + +_ADGROUPADLABELSERVICE = _descriptor.ServiceDescriptor( + name='AdGroupAdLabelService', + full_name='google.ads.googleads.v4.services.AdGroupAdLabelService', + file=DESCRIPTOR, + index=0, + serialized_options=_b('\312A\030googleads.googleapis.com'), + serialized_start=949, + serialized_end=1454, + methods=[ + _descriptor.MethodDescriptor( + name='GetAdGroupAdLabel', + full_name='google.ads.googleads.v4.services.AdGroupAdLabelService.GetAdGroupAdLabel', + index=0, + containing_service=None, + input_type=_GETADGROUPADLABELREQUEST, + output_type=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_ad__group__ad__label__pb2._ADGROUPADLABEL, + serialized_options=_b('\202\323\344\223\0023\0221/v4/{resource_name=customers/*/adGroupAdLabels/*}\332A\rresource_name'), + ), + _descriptor.MethodDescriptor( + name='MutateAdGroupAdLabels', + full_name='google.ads.googleads.v4.services.AdGroupAdLabelService.MutateAdGroupAdLabels', + index=1, + containing_service=None, + input_type=_MUTATEADGROUPADLABELSREQUEST, + output_type=_MUTATEADGROUPADLABELSRESPONSE, + serialized_options=_b('\202\323\344\223\0029\"4/v4/customers/{customer_id=*}/adGroupAdLabels:mutate:\001*\332A\026customer_id,operations'), + ), +]) +_sym_db.RegisterServiceDescriptor(_ADGROUPADLABELSERVICE) + +DESCRIPTOR.services_by_name['AdGroupAdLabelService'] = _ADGROUPADLABELSERVICE + +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v4/proto/services/ad_group_ad_label_service_pb2_grpc.py b/google/ads/google_ads/v4/proto/services/ad_group_ad_label_service_pb2_grpc.py new file mode 100644 index 000000000..e2b925a24 --- /dev/null +++ b/google/ads/google_ads/v4/proto/services/ad_group_ad_label_service_pb2_grpc.py @@ -0,0 +1,69 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +import grpc + +from google.ads.google_ads.v4.proto.resources import ad_group_ad_label_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_ad__group__ad__label__pb2 +from google.ads.google_ads.v4.proto.services import ad_group_ad_label_service_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_ad__group__ad__label__service__pb2 + + +class AdGroupAdLabelServiceStub(object): + """Proto file describing the Ad Group Ad Label service. + + Service to manage labels on ad group ads. + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.GetAdGroupAdLabel = channel.unary_unary( + '/google.ads.googleads.v4.services.AdGroupAdLabelService/GetAdGroupAdLabel', + request_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_ad__group__ad__label__service__pb2.GetAdGroupAdLabelRequest.SerializeToString, + response_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_ad__group__ad__label__pb2.AdGroupAdLabel.FromString, + ) + self.MutateAdGroupAdLabels = channel.unary_unary( + '/google.ads.googleads.v4.services.AdGroupAdLabelService/MutateAdGroupAdLabels', + request_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_ad__group__ad__label__service__pb2.MutateAdGroupAdLabelsRequest.SerializeToString, + response_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_ad__group__ad__label__service__pb2.MutateAdGroupAdLabelsResponse.FromString, + ) + + +class AdGroupAdLabelServiceServicer(object): + """Proto file describing the Ad Group Ad Label service. + + Service to manage labels on ad group ads. + """ + + def GetAdGroupAdLabel(self, request, context): + """Returns the requested ad group ad label in full detail. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def MutateAdGroupAdLabels(self, request, context): + """Creates and removes ad group ad labels. + Operation statuses are returned. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_AdGroupAdLabelServiceServicer_to_server(servicer, server): + rpc_method_handlers = { + 'GetAdGroupAdLabel': grpc.unary_unary_rpc_method_handler( + servicer.GetAdGroupAdLabel, + request_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_ad__group__ad__label__service__pb2.GetAdGroupAdLabelRequest.FromString, + response_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_ad__group__ad__label__pb2.AdGroupAdLabel.SerializeToString, + ), + 'MutateAdGroupAdLabels': grpc.unary_unary_rpc_method_handler( + servicer.MutateAdGroupAdLabels, + request_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_ad__group__ad__label__service__pb2.MutateAdGroupAdLabelsRequest.FromString, + response_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_ad__group__ad__label__service__pb2.MutateAdGroupAdLabelsResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'google.ads.googleads.v4.services.AdGroupAdLabelService', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) diff --git a/google/ads/google_ads/v4/proto/services/ad_group_ad_service_pb2.py b/google/ads/google_ads/v4/proto/services/ad_group_ad_service_pb2.py new file mode 100644 index 000000000..9c24f3da6 --- /dev/null +++ b/google/ads/google_ads/v4/proto/services/ad_group_ad_service_pb2.py @@ -0,0 +1,419 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/services/ad_group_ad_service.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.ads.google_ads.v4.proto.common import policy_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_policy__pb2 +from google.ads.google_ads.v4.proto.resources import ad_group_ad_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_ad__group__ad__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 +from google.api import client_pb2 as google_dot_api_dot_client__pb2 +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 +from google.protobuf import field_mask_pb2 as google_dot_protobuf_dot_field__mask__pb2 +from google.rpc import status_pb2 as google_dot_rpc_dot_status__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/services/ad_group_ad_service.proto', + package='google.ads.googleads.v4.services', + syntax='proto3', + serialized_options=_b('\n$com.google.ads.googleads.v4.servicesB\025AdGroupAdServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V4.Services\312\002 Google\\Ads\\GoogleAds\\V4\\Services\352\002$Google::Ads::GoogleAds::V4::Services'), + serialized_pb=_b('\n@google/ads/googleads_v4/proto/services/ad_group_ad_service.proto\x12 google.ads.googleads.v4.services\x1a\x31google/ads/googleads_v4/proto/common/policy.proto\x1a\x39google/ads/googleads_v4/proto/resources/ad_group_ad.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/protobuf/field_mask.proto\x1a\x17google/rpc/status.proto\"X\n\x13GetAdGroupAdRequest\x12\x41\n\rresource_name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"googleads.googleapis.com/AdGroupAd\"\xb2\x01\n\x17MutateAdGroupAdsRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12M\n\noperations\x18\x02 \x03(\x0b\x32\x34.google.ads.googleads.v4.services.AdGroupAdOperationB\x03\xe0\x41\x02\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\"\xc4\x02\n\x12\x41\x64GroupAdOperation\x12/\n\x0bupdate_mask\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12^\n\x1bpolicy_validation_parameter\x18\x05 \x01(\x0b\x32\x39.google.ads.googleads.v4.common.PolicyValidationParameter\x12>\n\x06\x63reate\x18\x01 \x01(\x0b\x32,.google.ads.googleads.v4.resources.AdGroupAdH\x00\x12>\n\x06update\x18\x02 \x01(\x0b\x32,.google.ads.googleads.v4.resources.AdGroupAdH\x00\x12\x10\n\x06remove\x18\x03 \x01(\tH\x00\x42\x0b\n\toperation\"\x97\x01\n\x18MutateAdGroupAdsResponse\x12\x31\n\x15partial_failure_error\x18\x03 \x01(\x0b\x32\x12.google.rpc.Status\x12H\n\x07results\x18\x02 \x03(\x0b\x32\x37.google.ads.googleads.v4.services.MutateAdGroupAdResult\".\n\x15MutateAdGroupAdResult\x12\x15\n\rresource_name\x18\x01 \x01(\t2\xcc\x03\n\x10\x41\x64GroupAdService\x12\xb9\x01\n\x0cGetAdGroupAd\x12\x35.google.ads.googleads.v4.services.GetAdGroupAdRequest\x1a,.google.ads.googleads.v4.resources.AdGroupAd\"D\x82\xd3\xe4\x93\x02.\x12,/v4/{resource_name=customers/*/adGroupAds/*}\xda\x41\rresource_name\x12\xde\x01\n\x10MutateAdGroupAds\x12\x39.google.ads.googleads.v4.services.MutateAdGroupAdsRequest\x1a:.google.ads.googleads.v4.services.MutateAdGroupAdsResponse\"S\x82\xd3\xe4\x93\x02\x34\"//v4/customers/{customer_id=*}/adGroupAds:mutate:\x01*\xda\x41\x16\x63ustomer_id,operations\x1a\x1b\xca\x41\x18googleads.googleapis.comB\xfc\x01\n$com.google.ads.googleads.v4.servicesB\x15\x41\x64GroupAdServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V4.Services\xca\x02 Google\\Ads\\GoogleAds\\V4\\Services\xea\x02$Google::Ads::GoogleAds::V4::Servicesb\x06proto3') + , + dependencies=[google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_policy__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_ad__group__ad__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_api_dot_client__pb2.DESCRIPTOR,google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_api_dot_resource__pb2.DESCRIPTOR,google_dot_protobuf_dot_field__mask__pb2.DESCRIPTOR,google_dot_rpc_dot_status__pb2.DESCRIPTOR,]) + + + + +_GETADGROUPADREQUEST = _descriptor.Descriptor( + name='GetAdGroupAdRequest', + full_name='google.ads.googleads.v4.services.GetAdGroupAdRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.services.GetAdGroupAdRequest.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002\372A$\n\"googleads.googleapis.com/AdGroupAd'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=386, + serialized_end=474, +) + + +_MUTATEADGROUPADSREQUEST = _descriptor.Descriptor( + name='MutateAdGroupAdsRequest', + full_name='google.ads.googleads.v4.services.MutateAdGroupAdsRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='customer_id', full_name='google.ads.googleads.v4.services.MutateAdGroupAdsRequest.customer_id', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='operations', full_name='google.ads.googleads.v4.services.MutateAdGroupAdsRequest.operations', index=1, + number=2, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='partial_failure', full_name='google.ads.googleads.v4.services.MutateAdGroupAdsRequest.partial_failure', index=2, + number=3, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='validate_only', full_name='google.ads.googleads.v4.services.MutateAdGroupAdsRequest.validate_only', index=3, + number=4, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=477, + serialized_end=655, +) + + +_ADGROUPADOPERATION = _descriptor.Descriptor( + name='AdGroupAdOperation', + full_name='google.ads.googleads.v4.services.AdGroupAdOperation', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='update_mask', full_name='google.ads.googleads.v4.services.AdGroupAdOperation.update_mask', index=0, + number=4, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='policy_validation_parameter', full_name='google.ads.googleads.v4.services.AdGroupAdOperation.policy_validation_parameter', index=1, + number=5, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='create', full_name='google.ads.googleads.v4.services.AdGroupAdOperation.create', index=2, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='update', full_name='google.ads.googleads.v4.services.AdGroupAdOperation.update', index=3, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='remove', full_name='google.ads.googleads.v4.services.AdGroupAdOperation.remove', index=4, + number=3, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name='operation', full_name='google.ads.googleads.v4.services.AdGroupAdOperation.operation', + index=0, containing_type=None, fields=[]), + ], + serialized_start=658, + serialized_end=982, +) + + +_MUTATEADGROUPADSRESPONSE = _descriptor.Descriptor( + name='MutateAdGroupAdsResponse', + full_name='google.ads.googleads.v4.services.MutateAdGroupAdsResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='partial_failure_error', full_name='google.ads.googleads.v4.services.MutateAdGroupAdsResponse.partial_failure_error', index=0, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='results', full_name='google.ads.googleads.v4.services.MutateAdGroupAdsResponse.results', index=1, + number=2, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=985, + serialized_end=1136, +) + + +_MUTATEADGROUPADRESULT = _descriptor.Descriptor( + name='MutateAdGroupAdResult', + full_name='google.ads.googleads.v4.services.MutateAdGroupAdResult', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.services.MutateAdGroupAdResult.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1138, + serialized_end=1184, +) + +_MUTATEADGROUPADSREQUEST.fields_by_name['operations'].message_type = _ADGROUPADOPERATION +_ADGROUPADOPERATION.fields_by_name['update_mask'].message_type = google_dot_protobuf_dot_field__mask__pb2._FIELDMASK +_ADGROUPADOPERATION.fields_by_name['policy_validation_parameter'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_policy__pb2._POLICYVALIDATIONPARAMETER +_ADGROUPADOPERATION.fields_by_name['create'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_ad__group__ad__pb2._ADGROUPAD +_ADGROUPADOPERATION.fields_by_name['update'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_ad__group__ad__pb2._ADGROUPAD +_ADGROUPADOPERATION.oneofs_by_name['operation'].fields.append( + _ADGROUPADOPERATION.fields_by_name['create']) +_ADGROUPADOPERATION.fields_by_name['create'].containing_oneof = _ADGROUPADOPERATION.oneofs_by_name['operation'] +_ADGROUPADOPERATION.oneofs_by_name['operation'].fields.append( + _ADGROUPADOPERATION.fields_by_name['update']) +_ADGROUPADOPERATION.fields_by_name['update'].containing_oneof = _ADGROUPADOPERATION.oneofs_by_name['operation'] +_ADGROUPADOPERATION.oneofs_by_name['operation'].fields.append( + _ADGROUPADOPERATION.fields_by_name['remove']) +_ADGROUPADOPERATION.fields_by_name['remove'].containing_oneof = _ADGROUPADOPERATION.oneofs_by_name['operation'] +_MUTATEADGROUPADSRESPONSE.fields_by_name['partial_failure_error'].message_type = google_dot_rpc_dot_status__pb2._STATUS +_MUTATEADGROUPADSRESPONSE.fields_by_name['results'].message_type = _MUTATEADGROUPADRESULT +DESCRIPTOR.message_types_by_name['GetAdGroupAdRequest'] = _GETADGROUPADREQUEST +DESCRIPTOR.message_types_by_name['MutateAdGroupAdsRequest'] = _MUTATEADGROUPADSREQUEST +DESCRIPTOR.message_types_by_name['AdGroupAdOperation'] = _ADGROUPADOPERATION +DESCRIPTOR.message_types_by_name['MutateAdGroupAdsResponse'] = _MUTATEADGROUPADSRESPONSE +DESCRIPTOR.message_types_by_name['MutateAdGroupAdResult'] = _MUTATEADGROUPADRESULT +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +GetAdGroupAdRequest = _reflection.GeneratedProtocolMessageType('GetAdGroupAdRequest', (_message.Message,), dict( + DESCRIPTOR = _GETADGROUPADREQUEST, + __module__ = 'google.ads.googleads_v4.proto.services.ad_group_ad_service_pb2' + , + __doc__ = """Request message for + [AdGroupAdService.GetAdGroupAd][google.ads.googleads.v4.services.AdGroupAdService.GetAdGroupAd]. + + + Attributes: + resource_name: + Required. The resource name of the ad to fetch. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.GetAdGroupAdRequest) + )) +_sym_db.RegisterMessage(GetAdGroupAdRequest) + +MutateAdGroupAdsRequest = _reflection.GeneratedProtocolMessageType('MutateAdGroupAdsRequest', (_message.Message,), dict( + DESCRIPTOR = _MUTATEADGROUPADSREQUEST, + __module__ = 'google.ads.googleads_v4.proto.services.ad_group_ad_service_pb2' + , + __doc__ = """Request message for + [AdGroupAdService.MutateAdGroupAds][google.ads.googleads.v4.services.AdGroupAdService.MutateAdGroupAds]. + + + Attributes: + customer_id: + Required. The ID of the customer whose ads are being modified. + operations: + Required. The list of operations to perform on individual ads. + partial_failure: + If true, successful operations will be carried out and invalid + operations will return errors. If false, all operations will + be carried out in one transaction if and only if they are all + valid. Default is false. + validate_only: + If true, the request is validated but not executed. Only + errors are returned, not results. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.MutateAdGroupAdsRequest) + )) +_sym_db.RegisterMessage(MutateAdGroupAdsRequest) + +AdGroupAdOperation = _reflection.GeneratedProtocolMessageType('AdGroupAdOperation', (_message.Message,), dict( + DESCRIPTOR = _ADGROUPADOPERATION, + __module__ = 'google.ads.googleads_v4.proto.services.ad_group_ad_service_pb2' + , + __doc__ = """A single operation (create, update, remove) on an ad group ad. + + + Attributes: + update_mask: + FieldMask that determines which resource fields are modified + in an update. + policy_validation_parameter: + Configuration for how policies are validated. + operation: + The mutate operation. + create: + Create operation: No resource name is expected for the new ad. + update: + Update operation: The ad is expected to have a valid resource + name. + remove: + Remove operation: A resource name for the removed ad is + expected, in this format: + ``customers/{customer_id}/adGroupAds/{ad_group_id}~{ad_id}`` + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.AdGroupAdOperation) + )) +_sym_db.RegisterMessage(AdGroupAdOperation) + +MutateAdGroupAdsResponse = _reflection.GeneratedProtocolMessageType('MutateAdGroupAdsResponse', (_message.Message,), dict( + DESCRIPTOR = _MUTATEADGROUPADSRESPONSE, + __module__ = 'google.ads.googleads_v4.proto.services.ad_group_ad_service_pb2' + , + __doc__ = """Response message for an ad group ad mutate. + + + Attributes: + partial_failure_error: + Errors that pertain to operation failures in the partial + failure mode. Returned only when partial\_failure = true and + all errors occur inside the operations. If any errors occur + outside the operations (e.g. auth errors), we return an RPC + level error. + results: + All results for the mutate. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.MutateAdGroupAdsResponse) + )) +_sym_db.RegisterMessage(MutateAdGroupAdsResponse) + +MutateAdGroupAdResult = _reflection.GeneratedProtocolMessageType('MutateAdGroupAdResult', (_message.Message,), dict( + DESCRIPTOR = _MUTATEADGROUPADRESULT, + __module__ = 'google.ads.googleads_v4.proto.services.ad_group_ad_service_pb2' + , + __doc__ = """The result for the ad mutate. + + + Attributes: + resource_name: + The resource name returned for successful operations. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.MutateAdGroupAdResult) + )) +_sym_db.RegisterMessage(MutateAdGroupAdResult) + + +DESCRIPTOR._options = None +_GETADGROUPADREQUEST.fields_by_name['resource_name']._options = None +_MUTATEADGROUPADSREQUEST.fields_by_name['customer_id']._options = None +_MUTATEADGROUPADSREQUEST.fields_by_name['operations']._options = None + +_ADGROUPADSERVICE = _descriptor.ServiceDescriptor( + name='AdGroupAdService', + full_name='google.ads.googleads.v4.services.AdGroupAdService', + file=DESCRIPTOR, + index=0, + serialized_options=_b('\312A\030googleads.googleapis.com'), + serialized_start=1187, + serialized_end=1647, + methods=[ + _descriptor.MethodDescriptor( + name='GetAdGroupAd', + full_name='google.ads.googleads.v4.services.AdGroupAdService.GetAdGroupAd', + index=0, + containing_service=None, + input_type=_GETADGROUPADREQUEST, + output_type=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_ad__group__ad__pb2._ADGROUPAD, + serialized_options=_b('\202\323\344\223\002.\022,/v4/{resource_name=customers/*/adGroupAds/*}\332A\rresource_name'), + ), + _descriptor.MethodDescriptor( + name='MutateAdGroupAds', + full_name='google.ads.googleads.v4.services.AdGroupAdService.MutateAdGroupAds', + index=1, + containing_service=None, + input_type=_MUTATEADGROUPADSREQUEST, + output_type=_MUTATEADGROUPADSRESPONSE, + serialized_options=_b('\202\323\344\223\0024\"//v4/customers/{customer_id=*}/adGroupAds:mutate:\001*\332A\026customer_id,operations'), + ), +]) +_sym_db.RegisterServiceDescriptor(_ADGROUPADSERVICE) + +DESCRIPTOR.services_by_name['AdGroupAdService'] = _ADGROUPADSERVICE + +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v4/proto/services/ad_group_ad_service_pb2_grpc.py b/google/ads/google_ads/v4/proto/services/ad_group_ad_service_pb2_grpc.py new file mode 100644 index 000000000..50632a3d5 --- /dev/null +++ b/google/ads/google_ads/v4/proto/services/ad_group_ad_service_pb2_grpc.py @@ -0,0 +1,68 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +import grpc + +from google.ads.google_ads.v4.proto.resources import ad_group_ad_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_ad__group__ad__pb2 +from google.ads.google_ads.v4.proto.services import ad_group_ad_service_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_ad__group__ad__service__pb2 + + +class AdGroupAdServiceStub(object): + """Proto file describing the Ad Group Ad service. + + Service to manage ads in an ad group. + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.GetAdGroupAd = channel.unary_unary( + '/google.ads.googleads.v4.services.AdGroupAdService/GetAdGroupAd', + request_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_ad__group__ad__service__pb2.GetAdGroupAdRequest.SerializeToString, + response_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_ad__group__ad__pb2.AdGroupAd.FromString, + ) + self.MutateAdGroupAds = channel.unary_unary( + '/google.ads.googleads.v4.services.AdGroupAdService/MutateAdGroupAds', + request_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_ad__group__ad__service__pb2.MutateAdGroupAdsRequest.SerializeToString, + response_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_ad__group__ad__service__pb2.MutateAdGroupAdsResponse.FromString, + ) + + +class AdGroupAdServiceServicer(object): + """Proto file describing the Ad Group Ad service. + + Service to manage ads in an ad group. + """ + + def GetAdGroupAd(self, request, context): + """Returns the requested ad in full detail. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def MutateAdGroupAds(self, request, context): + """Creates, updates, or removes ads. Operation statuses are returned. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_AdGroupAdServiceServicer_to_server(servicer, server): + rpc_method_handlers = { + 'GetAdGroupAd': grpc.unary_unary_rpc_method_handler( + servicer.GetAdGroupAd, + request_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_ad__group__ad__service__pb2.GetAdGroupAdRequest.FromString, + response_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_ad__group__ad__pb2.AdGroupAd.SerializeToString, + ), + 'MutateAdGroupAds': grpc.unary_unary_rpc_method_handler( + servicer.MutateAdGroupAds, + request_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_ad__group__ad__service__pb2.MutateAdGroupAdsRequest.FromString, + response_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_ad__group__ad__service__pb2.MutateAdGroupAdsResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'google.ads.googleads.v4.services.AdGroupAdService', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) diff --git a/google/ads/google_ads/v4/proto/services/ad_group_audience_view_service_pb2.py b/google/ads/google_ads/v4/proto/services/ad_group_audience_view_service_pb2.py new file mode 100644 index 000000000..0c6adfa1b --- /dev/null +++ b/google/ads/google_ads/v4/proto/services/ad_group_audience_view_service_pb2.py @@ -0,0 +1,112 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/services/ad_group_audience_view_service.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.ads.google_ads.v4.proto.resources import ad_group_audience_view_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_ad__group__audience__view__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 +from google.api import client_pb2 as google_dot_api_dot_client__pb2 +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/services/ad_group_audience_view_service.proto', + package='google.ads.googleads.v4.services', + syntax='proto3', + serialized_options=_b('\n$com.google.ads.googleads.v4.servicesB\037AdGroupAudienceViewServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V4.Services\312\002 Google\\Ads\\GoogleAds\\V4\\Services\352\002$Google::Ads::GoogleAds::V4::Services'), + serialized_pb=_b('\nKgoogle/ads/googleads_v4/proto/services/ad_group_audience_view_service.proto\x12 google.ads.googleads.v4.services\x1a\x44google/ads/googleads_v4/proto/resources/ad_group_audience_view.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"l\n\x1dGetAdGroupAudienceViewRequest\x12K\n\rresource_name\x18\x01 \x01(\tB4\xe0\x41\x02\xfa\x41.\n,googleads.googleapis.com/AdGroupAudienceView2\x9d\x02\n\x1a\x41\x64GroupAudienceViewService\x12\xe1\x01\n\x16GetAdGroupAudienceView\x12?.google.ads.googleads.v4.services.GetAdGroupAudienceViewRequest\x1a\x36.google.ads.googleads.v4.resources.AdGroupAudienceView\"N\x82\xd3\xe4\x93\x02\x38\x12\x36/v4/{resource_name=customers/*/adGroupAudienceViews/*}\xda\x41\rresource_name\x1a\x1b\xca\x41\x18googleads.googleapis.comB\x86\x02\n$com.google.ads.googleads.v4.servicesB\x1f\x41\x64GroupAudienceViewServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V4.Services\xca\x02 Google\\Ads\\GoogleAds\\V4\\Services\xea\x02$Google::Ads::GoogleAds::V4::Servicesb\x06proto3') + , + dependencies=[google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_ad__group__audience__view__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_api_dot_client__pb2.DESCRIPTOR,google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_api_dot_resource__pb2.DESCRIPTOR,]) + + + + +_GETADGROUPAUDIENCEVIEWREQUEST = _descriptor.Descriptor( + name='GetAdGroupAudienceViewRequest', + full_name='google.ads.googleads.v4.services.GetAdGroupAudienceViewRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.services.GetAdGroupAudienceViewRequest.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002\372A.\n,googleads.googleapis.com/AdGroupAudienceView'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=298, + serialized_end=406, +) + +DESCRIPTOR.message_types_by_name['GetAdGroupAudienceViewRequest'] = _GETADGROUPAUDIENCEVIEWREQUEST +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +GetAdGroupAudienceViewRequest = _reflection.GeneratedProtocolMessageType('GetAdGroupAudienceViewRequest', (_message.Message,), dict( + DESCRIPTOR = _GETADGROUPAUDIENCEVIEWREQUEST, + __module__ = 'google.ads.googleads_v4.proto.services.ad_group_audience_view_service_pb2' + , + __doc__ = """Request message for + [AdGroupAudienceViewService.GetAdGoupAudienceView][]. + + + Attributes: + resource_name: + Required. The resource name of the ad group audience view to + fetch. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.GetAdGroupAudienceViewRequest) + )) +_sym_db.RegisterMessage(GetAdGroupAudienceViewRequest) + + +DESCRIPTOR._options = None +_GETADGROUPAUDIENCEVIEWREQUEST.fields_by_name['resource_name']._options = None + +_ADGROUPAUDIENCEVIEWSERVICE = _descriptor.ServiceDescriptor( + name='AdGroupAudienceViewService', + full_name='google.ads.googleads.v4.services.AdGroupAudienceViewService', + file=DESCRIPTOR, + index=0, + serialized_options=_b('\312A\030googleads.googleapis.com'), + serialized_start=409, + serialized_end=694, + methods=[ + _descriptor.MethodDescriptor( + name='GetAdGroupAudienceView', + full_name='google.ads.googleads.v4.services.AdGroupAudienceViewService.GetAdGroupAudienceView', + index=0, + containing_service=None, + input_type=_GETADGROUPAUDIENCEVIEWREQUEST, + output_type=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_ad__group__audience__view__pb2._ADGROUPAUDIENCEVIEW, + serialized_options=_b('\202\323\344\223\0028\0226/v4/{resource_name=customers/*/adGroupAudienceViews/*}\332A\rresource_name'), + ), +]) +_sym_db.RegisterServiceDescriptor(_ADGROUPAUDIENCEVIEWSERVICE) + +DESCRIPTOR.services_by_name['AdGroupAudienceViewService'] = _ADGROUPAUDIENCEVIEWSERVICE + +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v4/proto/services/ad_group_audience_view_service_pb2_grpc.py b/google/ads/google_ads/v4/proto/services/ad_group_audience_view_service_pb2_grpc.py new file mode 100644 index 000000000..d4d997c1d --- /dev/null +++ b/google/ads/google_ads/v4/proto/services/ad_group_audience_view_service_pb2_grpc.py @@ -0,0 +1,51 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +import grpc + +from google.ads.google_ads.v4.proto.resources import ad_group_audience_view_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_ad__group__audience__view__pb2 +from google.ads.google_ads.v4.proto.services import ad_group_audience_view_service_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_ad__group__audience__view__service__pb2 + + +class AdGroupAudienceViewServiceStub(object): + """Proto file describing the AdGroup Audience View service. + + Service to manage ad group audience views. + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.GetAdGroupAudienceView = channel.unary_unary( + '/google.ads.googleads.v4.services.AdGroupAudienceViewService/GetAdGroupAudienceView', + request_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_ad__group__audience__view__service__pb2.GetAdGroupAudienceViewRequest.SerializeToString, + response_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_ad__group__audience__view__pb2.AdGroupAudienceView.FromString, + ) + + +class AdGroupAudienceViewServiceServicer(object): + """Proto file describing the AdGroup Audience View service. + + Service to manage ad group audience views. + """ + + def GetAdGroupAudienceView(self, request, context): + """Returns the requested ad group audience view in full detail. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_AdGroupAudienceViewServiceServicer_to_server(servicer, server): + rpc_method_handlers = { + 'GetAdGroupAudienceView': grpc.unary_unary_rpc_method_handler( + servicer.GetAdGroupAudienceView, + request_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_ad__group__audience__view__service__pb2.GetAdGroupAudienceViewRequest.FromString, + response_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_ad__group__audience__view__pb2.AdGroupAudienceView.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'google.ads.googleads.v4.services.AdGroupAudienceViewService', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) diff --git a/google/ads/google_ads/v4/proto/services/ad_group_bid_modifier_service_pb2.py b/google/ads/google_ads/v4/proto/services/ad_group_bid_modifier_service_pb2.py new file mode 100644 index 000000000..44e6df2da --- /dev/null +++ b/google/ads/google_ads/v4/proto/services/ad_group_bid_modifier_service_pb2.py @@ -0,0 +1,412 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/services/ad_group_bid_modifier_service.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.ads.google_ads.v4.proto.resources import ad_group_bid_modifier_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_ad__group__bid__modifier__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 +from google.api import client_pb2 as google_dot_api_dot_client__pb2 +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 +from google.protobuf import field_mask_pb2 as google_dot_protobuf_dot_field__mask__pb2 +from google.rpc import status_pb2 as google_dot_rpc_dot_status__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/services/ad_group_bid_modifier_service.proto', + package='google.ads.googleads.v4.services', + syntax='proto3', + serialized_options=_b('\n$com.google.ads.googleads.v4.servicesB\036AdGroupBidModifierServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V4.Services\312\002 Google\\Ads\\GoogleAds\\V4\\Services\352\002$Google::Ads::GoogleAds::V4::Services'), + serialized_pb=_b('\nJgoogle/ads/googleads_v4/proto/services/ad_group_bid_modifier_service.proto\x12 google.ads.googleads.v4.services\x1a\x43google/ads/googleads_v4/proto/resources/ad_group_bid_modifier.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/protobuf/field_mask.proto\x1a\x17google/rpc/status.proto\"j\n\x1cGetAdGroupBidModifierRequest\x12J\n\rresource_name\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+googleads.googleapis.com/AdGroupBidModifier\"\xc4\x01\n MutateAdGroupBidModifiersRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12V\n\noperations\x18\x02 \x03(\x0b\x32=.google.ads.googleads.v4.services.AdGroupBidModifierOperationB\x03\xe0\x41\x02\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\"\xff\x01\n\x1b\x41\x64GroupBidModifierOperation\x12/\n\x0bupdate_mask\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12G\n\x06\x63reate\x18\x01 \x01(\x0b\x32\x35.google.ads.googleads.v4.resources.AdGroupBidModifierH\x00\x12G\n\x06update\x18\x02 \x01(\x0b\x32\x35.google.ads.googleads.v4.resources.AdGroupBidModifierH\x00\x12\x10\n\x06remove\x18\x03 \x01(\tH\x00\x42\x0b\n\toperation\"\xa9\x01\n!MutateAdGroupBidModifiersResponse\x12\x31\n\x15partial_failure_error\x18\x03 \x01(\x0b\x32\x12.google.rpc.Status\x12Q\n\x07results\x18\x02 \x03(\x0b\x32@.google.ads.googleads.v4.services.MutateAdGroupBidModifierResult\"7\n\x1eMutateAdGroupBidModifierResult\x12\x15\n\rresource_name\x18\x01 \x01(\t2\x9d\x04\n\x19\x41\x64GroupBidModifierService\x12\xdd\x01\n\x15GetAdGroupBidModifier\x12>.google.ads.googleads.v4.services.GetAdGroupBidModifierRequest\x1a\x35.google.ads.googleads.v4.resources.AdGroupBidModifier\"M\x82\xd3\xe4\x93\x02\x37\x12\x35/v4/{resource_name=customers/*/adGroupBidModifiers/*}\xda\x41\rresource_name\x12\x82\x02\n\x19MutateAdGroupBidModifiers\x12\x42.google.ads.googleads.v4.services.MutateAdGroupBidModifiersRequest\x1a\x43.google.ads.googleads.v4.services.MutateAdGroupBidModifiersResponse\"\\\x82\xd3\xe4\x93\x02=\"8/v4/customers/{customer_id=*}/adGroupBidModifiers:mutate:\x01*\xda\x41\x16\x63ustomer_id,operations\x1a\x1b\xca\x41\x18googleads.googleapis.comB\x85\x02\n$com.google.ads.googleads.v4.servicesB\x1e\x41\x64GroupBidModifierServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V4.Services\xca\x02 Google\\Ads\\GoogleAds\\V4\\Services\xea\x02$Google::Ads::GoogleAds::V4::Servicesb\x06proto3') + , + dependencies=[google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_ad__group__bid__modifier__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_api_dot_client__pb2.DESCRIPTOR,google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_api_dot_resource__pb2.DESCRIPTOR,google_dot_protobuf_dot_field__mask__pb2.DESCRIPTOR,google_dot_rpc_dot_status__pb2.DESCRIPTOR,]) + + + + +_GETADGROUPBIDMODIFIERREQUEST = _descriptor.Descriptor( + name='GetAdGroupBidModifierRequest', + full_name='google.ads.googleads.v4.services.GetAdGroupBidModifierRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.services.GetAdGroupBidModifierRequest.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002\372A-\n+googleads.googleapis.com/AdGroupBidModifier'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=355, + serialized_end=461, +) + + +_MUTATEADGROUPBIDMODIFIERSREQUEST = _descriptor.Descriptor( + name='MutateAdGroupBidModifiersRequest', + full_name='google.ads.googleads.v4.services.MutateAdGroupBidModifiersRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='customer_id', full_name='google.ads.googleads.v4.services.MutateAdGroupBidModifiersRequest.customer_id', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='operations', full_name='google.ads.googleads.v4.services.MutateAdGroupBidModifiersRequest.operations', index=1, + number=2, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='partial_failure', full_name='google.ads.googleads.v4.services.MutateAdGroupBidModifiersRequest.partial_failure', index=2, + number=3, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='validate_only', full_name='google.ads.googleads.v4.services.MutateAdGroupBidModifiersRequest.validate_only', index=3, + number=4, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=464, + serialized_end=660, +) + + +_ADGROUPBIDMODIFIEROPERATION = _descriptor.Descriptor( + name='AdGroupBidModifierOperation', + full_name='google.ads.googleads.v4.services.AdGroupBidModifierOperation', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='update_mask', full_name='google.ads.googleads.v4.services.AdGroupBidModifierOperation.update_mask', index=0, + number=4, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='create', full_name='google.ads.googleads.v4.services.AdGroupBidModifierOperation.create', index=1, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='update', full_name='google.ads.googleads.v4.services.AdGroupBidModifierOperation.update', index=2, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='remove', full_name='google.ads.googleads.v4.services.AdGroupBidModifierOperation.remove', index=3, + number=3, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name='operation', full_name='google.ads.googleads.v4.services.AdGroupBidModifierOperation.operation', + index=0, containing_type=None, fields=[]), + ], + serialized_start=663, + serialized_end=918, +) + + +_MUTATEADGROUPBIDMODIFIERSRESPONSE = _descriptor.Descriptor( + name='MutateAdGroupBidModifiersResponse', + full_name='google.ads.googleads.v4.services.MutateAdGroupBidModifiersResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='partial_failure_error', full_name='google.ads.googleads.v4.services.MutateAdGroupBidModifiersResponse.partial_failure_error', index=0, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='results', full_name='google.ads.googleads.v4.services.MutateAdGroupBidModifiersResponse.results', index=1, + number=2, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=921, + serialized_end=1090, +) + + +_MUTATEADGROUPBIDMODIFIERRESULT = _descriptor.Descriptor( + name='MutateAdGroupBidModifierResult', + full_name='google.ads.googleads.v4.services.MutateAdGroupBidModifierResult', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.services.MutateAdGroupBidModifierResult.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1092, + serialized_end=1147, +) + +_MUTATEADGROUPBIDMODIFIERSREQUEST.fields_by_name['operations'].message_type = _ADGROUPBIDMODIFIEROPERATION +_ADGROUPBIDMODIFIEROPERATION.fields_by_name['update_mask'].message_type = google_dot_protobuf_dot_field__mask__pb2._FIELDMASK +_ADGROUPBIDMODIFIEROPERATION.fields_by_name['create'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_ad__group__bid__modifier__pb2._ADGROUPBIDMODIFIER +_ADGROUPBIDMODIFIEROPERATION.fields_by_name['update'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_ad__group__bid__modifier__pb2._ADGROUPBIDMODIFIER +_ADGROUPBIDMODIFIEROPERATION.oneofs_by_name['operation'].fields.append( + _ADGROUPBIDMODIFIEROPERATION.fields_by_name['create']) +_ADGROUPBIDMODIFIEROPERATION.fields_by_name['create'].containing_oneof = _ADGROUPBIDMODIFIEROPERATION.oneofs_by_name['operation'] +_ADGROUPBIDMODIFIEROPERATION.oneofs_by_name['operation'].fields.append( + _ADGROUPBIDMODIFIEROPERATION.fields_by_name['update']) +_ADGROUPBIDMODIFIEROPERATION.fields_by_name['update'].containing_oneof = _ADGROUPBIDMODIFIEROPERATION.oneofs_by_name['operation'] +_ADGROUPBIDMODIFIEROPERATION.oneofs_by_name['operation'].fields.append( + _ADGROUPBIDMODIFIEROPERATION.fields_by_name['remove']) +_ADGROUPBIDMODIFIEROPERATION.fields_by_name['remove'].containing_oneof = _ADGROUPBIDMODIFIEROPERATION.oneofs_by_name['operation'] +_MUTATEADGROUPBIDMODIFIERSRESPONSE.fields_by_name['partial_failure_error'].message_type = google_dot_rpc_dot_status__pb2._STATUS +_MUTATEADGROUPBIDMODIFIERSRESPONSE.fields_by_name['results'].message_type = _MUTATEADGROUPBIDMODIFIERRESULT +DESCRIPTOR.message_types_by_name['GetAdGroupBidModifierRequest'] = _GETADGROUPBIDMODIFIERREQUEST +DESCRIPTOR.message_types_by_name['MutateAdGroupBidModifiersRequest'] = _MUTATEADGROUPBIDMODIFIERSREQUEST +DESCRIPTOR.message_types_by_name['AdGroupBidModifierOperation'] = _ADGROUPBIDMODIFIEROPERATION +DESCRIPTOR.message_types_by_name['MutateAdGroupBidModifiersResponse'] = _MUTATEADGROUPBIDMODIFIERSRESPONSE +DESCRIPTOR.message_types_by_name['MutateAdGroupBidModifierResult'] = _MUTATEADGROUPBIDMODIFIERRESULT +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +GetAdGroupBidModifierRequest = _reflection.GeneratedProtocolMessageType('GetAdGroupBidModifierRequest', (_message.Message,), dict( + DESCRIPTOR = _GETADGROUPBIDMODIFIERREQUEST, + __module__ = 'google.ads.googleads_v4.proto.services.ad_group_bid_modifier_service_pb2' + , + __doc__ = """Request message for + [AdGroupBidModifierService.GetAdGroupBidModifier][google.ads.googleads.v4.services.AdGroupBidModifierService.GetAdGroupBidModifier]. + + + Attributes: + resource_name: + Required. The resource name of the ad group bid modifier to + fetch. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.GetAdGroupBidModifierRequest) + )) +_sym_db.RegisterMessage(GetAdGroupBidModifierRequest) + +MutateAdGroupBidModifiersRequest = _reflection.GeneratedProtocolMessageType('MutateAdGroupBidModifiersRequest', (_message.Message,), dict( + DESCRIPTOR = _MUTATEADGROUPBIDMODIFIERSREQUEST, + __module__ = 'google.ads.googleads_v4.proto.services.ad_group_bid_modifier_service_pb2' + , + __doc__ = """Request message for + [AdGroupBidModifierService.MutateAdGroupBidModifiers][google.ads.googleads.v4.services.AdGroupBidModifierService.MutateAdGroupBidModifiers]. + + + Attributes: + customer_id: + Required. ID of the customer whose ad group bid modifiers are + being modified. + operations: + Required. The list of operations to perform on individual ad + group bid modifiers. + partial_failure: + If true, successful operations will be carried out and invalid + operations will return errors. If false, all operations will + be carried out in one transaction if and only if they are all + valid. Default is false. + validate_only: + If true, the request is validated but not executed. Only + errors are returned, not results. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.MutateAdGroupBidModifiersRequest) + )) +_sym_db.RegisterMessage(MutateAdGroupBidModifiersRequest) + +AdGroupBidModifierOperation = _reflection.GeneratedProtocolMessageType('AdGroupBidModifierOperation', (_message.Message,), dict( + DESCRIPTOR = _ADGROUPBIDMODIFIEROPERATION, + __module__ = 'google.ads.googleads_v4.proto.services.ad_group_bid_modifier_service_pb2' + , + __doc__ = """A single operation (create, remove, update) on an ad group bid modifier. + + + Attributes: + update_mask: + FieldMask that determines which resource fields are modified + in an update. + operation: + The mutate operation. + create: + Create operation: No resource name is expected for the new ad + group bid modifier. + update: + Update operation: The ad group bid modifier is expected to + have a valid resource name. + remove: + Remove operation: A resource name for the removed ad group bid + modifier is expected, in this format: ``customers/{customer_i + d}/adGroupBidModifiers/{ad_group_id}~{criterion_id}`` + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.AdGroupBidModifierOperation) + )) +_sym_db.RegisterMessage(AdGroupBidModifierOperation) + +MutateAdGroupBidModifiersResponse = _reflection.GeneratedProtocolMessageType('MutateAdGroupBidModifiersResponse', (_message.Message,), dict( + DESCRIPTOR = _MUTATEADGROUPBIDMODIFIERSRESPONSE, + __module__ = 'google.ads.googleads_v4.proto.services.ad_group_bid_modifier_service_pb2' + , + __doc__ = """Response message for ad group bid modifiers mutate. + + + Attributes: + partial_failure_error: + Errors that pertain to operation failures in the partial + failure mode. Returned only when partial\_failure = true and + all errors occur inside the operations. If any errors occur + outside the operations (e.g. auth errors), we return an RPC + level error. + results: + All results for the mutate. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.MutateAdGroupBidModifiersResponse) + )) +_sym_db.RegisterMessage(MutateAdGroupBidModifiersResponse) + +MutateAdGroupBidModifierResult = _reflection.GeneratedProtocolMessageType('MutateAdGroupBidModifierResult', (_message.Message,), dict( + DESCRIPTOR = _MUTATEADGROUPBIDMODIFIERRESULT, + __module__ = 'google.ads.googleads_v4.proto.services.ad_group_bid_modifier_service_pb2' + , + __doc__ = """The result for the criterion mutate. + + + Attributes: + resource_name: + Returned for successful operations. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.MutateAdGroupBidModifierResult) + )) +_sym_db.RegisterMessage(MutateAdGroupBidModifierResult) + + +DESCRIPTOR._options = None +_GETADGROUPBIDMODIFIERREQUEST.fields_by_name['resource_name']._options = None +_MUTATEADGROUPBIDMODIFIERSREQUEST.fields_by_name['customer_id']._options = None +_MUTATEADGROUPBIDMODIFIERSREQUEST.fields_by_name['operations']._options = None + +_ADGROUPBIDMODIFIERSERVICE = _descriptor.ServiceDescriptor( + name='AdGroupBidModifierService', + full_name='google.ads.googleads.v4.services.AdGroupBidModifierService', + file=DESCRIPTOR, + index=0, + serialized_options=_b('\312A\030googleads.googleapis.com'), + serialized_start=1150, + serialized_end=1691, + methods=[ + _descriptor.MethodDescriptor( + name='GetAdGroupBidModifier', + full_name='google.ads.googleads.v4.services.AdGroupBidModifierService.GetAdGroupBidModifier', + index=0, + containing_service=None, + input_type=_GETADGROUPBIDMODIFIERREQUEST, + output_type=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_ad__group__bid__modifier__pb2._ADGROUPBIDMODIFIER, + serialized_options=_b('\202\323\344\223\0027\0225/v4/{resource_name=customers/*/adGroupBidModifiers/*}\332A\rresource_name'), + ), + _descriptor.MethodDescriptor( + name='MutateAdGroupBidModifiers', + full_name='google.ads.googleads.v4.services.AdGroupBidModifierService.MutateAdGroupBidModifiers', + index=1, + containing_service=None, + input_type=_MUTATEADGROUPBIDMODIFIERSREQUEST, + output_type=_MUTATEADGROUPBIDMODIFIERSRESPONSE, + serialized_options=_b('\202\323\344\223\002=\"8/v4/customers/{customer_id=*}/adGroupBidModifiers:mutate:\001*\332A\026customer_id,operations'), + ), +]) +_sym_db.RegisterServiceDescriptor(_ADGROUPBIDMODIFIERSERVICE) + +DESCRIPTOR.services_by_name['AdGroupBidModifierService'] = _ADGROUPBIDMODIFIERSERVICE + +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v4/proto/services/ad_group_bid_modifier_service_pb2_grpc.py b/google/ads/google_ads/v4/proto/services/ad_group_bid_modifier_service_pb2_grpc.py new file mode 100644 index 000000000..1fb28c7f0 --- /dev/null +++ b/google/ads/google_ads/v4/proto/services/ad_group_bid_modifier_service_pb2_grpc.py @@ -0,0 +1,69 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +import grpc + +from google.ads.google_ads.v4.proto.resources import ad_group_bid_modifier_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_ad__group__bid__modifier__pb2 +from google.ads.google_ads.v4.proto.services import ad_group_bid_modifier_service_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_ad__group__bid__modifier__service__pb2 + + +class AdGroupBidModifierServiceStub(object): + """Proto file describing the Ad Group Bid Modifier service. + + Service to manage ad group bid modifiers. + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.GetAdGroupBidModifier = channel.unary_unary( + '/google.ads.googleads.v4.services.AdGroupBidModifierService/GetAdGroupBidModifier', + request_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_ad__group__bid__modifier__service__pb2.GetAdGroupBidModifierRequest.SerializeToString, + response_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_ad__group__bid__modifier__pb2.AdGroupBidModifier.FromString, + ) + self.MutateAdGroupBidModifiers = channel.unary_unary( + '/google.ads.googleads.v4.services.AdGroupBidModifierService/MutateAdGroupBidModifiers', + request_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_ad__group__bid__modifier__service__pb2.MutateAdGroupBidModifiersRequest.SerializeToString, + response_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_ad__group__bid__modifier__service__pb2.MutateAdGroupBidModifiersResponse.FromString, + ) + + +class AdGroupBidModifierServiceServicer(object): + """Proto file describing the Ad Group Bid Modifier service. + + Service to manage ad group bid modifiers. + """ + + def GetAdGroupBidModifier(self, request, context): + """Returns the requested ad group bid modifier in full detail. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def MutateAdGroupBidModifiers(self, request, context): + """Creates, updates, or removes ad group bid modifiers. + Operation statuses are returned. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_AdGroupBidModifierServiceServicer_to_server(servicer, server): + rpc_method_handlers = { + 'GetAdGroupBidModifier': grpc.unary_unary_rpc_method_handler( + servicer.GetAdGroupBidModifier, + request_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_ad__group__bid__modifier__service__pb2.GetAdGroupBidModifierRequest.FromString, + response_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_ad__group__bid__modifier__pb2.AdGroupBidModifier.SerializeToString, + ), + 'MutateAdGroupBidModifiers': grpc.unary_unary_rpc_method_handler( + servicer.MutateAdGroupBidModifiers, + request_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_ad__group__bid__modifier__service__pb2.MutateAdGroupBidModifiersRequest.FromString, + response_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_ad__group__bid__modifier__service__pb2.MutateAdGroupBidModifiersResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'google.ads.googleads.v4.services.AdGroupBidModifierService', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) diff --git a/google/ads/google_ads/v4/proto/services/ad_group_criterion_label_service_pb2.py b/google/ads/google_ads/v4/proto/services/ad_group_criterion_label_service_pb2.py new file mode 100644 index 000000000..05ee9bc13 --- /dev/null +++ b/google/ads/google_ads/v4/proto/services/ad_group_criterion_label_service_pb2.py @@ -0,0 +1,387 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/services/ad_group_criterion_label_service.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.ads.google_ads.v4.proto.resources import ad_group_criterion_label_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_ad__group__criterion__label__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 +from google.api import client_pb2 as google_dot_api_dot_client__pb2 +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 +from google.rpc import status_pb2 as google_dot_rpc_dot_status__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/services/ad_group_criterion_label_service.proto', + package='google.ads.googleads.v4.services', + syntax='proto3', + serialized_options=_b('\n$com.google.ads.googleads.v4.servicesB!AdGroupCriterionLabelServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V4.Services\312\002 Google\\Ads\\GoogleAds\\V4\\Services\352\002$Google::Ads::GoogleAds::V4::Services'), + serialized_pb=_b('\nMgoogle/ads/googleads_v4/proto/services/ad_group_criterion_label_service.proto\x12 google.ads.googleads.v4.services\x1a\x46google/ads/googleads_v4/proto/resources/ad_group_criterion_label.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x17google/rpc/status.proto\"p\n\x1fGetAdGroupCriterionLabelRequest\x12M\n\rresource_name\x18\x01 \x01(\tB6\xe0\x41\x02\xfa\x41\x30\n.googleads.googleapis.com/AdGroupCriterionLabel\"\xca\x01\n#MutateAdGroupCriterionLabelsRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12Y\n\noperations\x18\x02 \x03(\x0b\x32@.google.ads.googleads.v4.services.AdGroupCriterionLabelOperationB\x03\xe0\x41\x02\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\"\x8b\x01\n\x1e\x41\x64GroupCriterionLabelOperation\x12J\n\x06\x63reate\x18\x01 \x01(\x0b\x32\x38.google.ads.googleads.v4.resources.AdGroupCriterionLabelH\x00\x12\x10\n\x06remove\x18\x02 \x01(\tH\x00\x42\x0b\n\toperation\"\xaf\x01\n$MutateAdGroupCriterionLabelsResponse\x12\x31\n\x15partial_failure_error\x18\x03 \x01(\x0b\x32\x12.google.rpc.Status\x12T\n\x07results\x18\x02 \x03(\x0b\x32\x43.google.ads.googleads.v4.services.MutateAdGroupCriterionLabelResult\":\n!MutateAdGroupCriterionLabelResult\x12\x15\n\rresource_name\x18\x01 \x01(\t2\xb8\x04\n\x1c\x41\x64GroupCriterionLabelService\x12\xe9\x01\n\x18GetAdGroupCriterionLabel\x12\x41.google.ads.googleads.v4.services.GetAdGroupCriterionLabelRequest\x1a\x38.google.ads.googleads.v4.resources.AdGroupCriterionLabel\"P\x82\xd3\xe4\x93\x02:\x12\x38/v4/{resource_name=customers/*/adGroupCriterionLabels/*}\xda\x41\rresource_name\x12\x8e\x02\n\x1cMutateAdGroupCriterionLabels\x12\x45.google.ads.googleads.v4.services.MutateAdGroupCriterionLabelsRequest\x1a\x46.google.ads.googleads.v4.services.MutateAdGroupCriterionLabelsResponse\"_\x82\xd3\xe4\x93\x02@\";/v4/customers/{customer_id=*}/adGroupCriterionLabels:mutate:\x01*\xda\x41\x16\x63ustomer_id,operations\x1a\x1b\xca\x41\x18googleads.googleapis.comB\x88\x02\n$com.google.ads.googleads.v4.servicesB!AdGroupCriterionLabelServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V4.Services\xca\x02 Google\\Ads\\GoogleAds\\V4\\Services\xea\x02$Google::Ads::GoogleAds::V4::Servicesb\x06proto3') + , + dependencies=[google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_ad__group__criterion__label__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_api_dot_client__pb2.DESCRIPTOR,google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_api_dot_resource__pb2.DESCRIPTOR,google_dot_rpc_dot_status__pb2.DESCRIPTOR,]) + + + + +_GETADGROUPCRITERIONLABELREQUEST = _descriptor.Descriptor( + name='GetAdGroupCriterionLabelRequest', + full_name='google.ads.googleads.v4.services.GetAdGroupCriterionLabelRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.services.GetAdGroupCriterionLabelRequest.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002\372A0\n.googleads.googleapis.com/AdGroupCriterionLabel'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=327, + serialized_end=439, +) + + +_MUTATEADGROUPCRITERIONLABELSREQUEST = _descriptor.Descriptor( + name='MutateAdGroupCriterionLabelsRequest', + full_name='google.ads.googleads.v4.services.MutateAdGroupCriterionLabelsRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='customer_id', full_name='google.ads.googleads.v4.services.MutateAdGroupCriterionLabelsRequest.customer_id', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='operations', full_name='google.ads.googleads.v4.services.MutateAdGroupCriterionLabelsRequest.operations', index=1, + number=2, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='partial_failure', full_name='google.ads.googleads.v4.services.MutateAdGroupCriterionLabelsRequest.partial_failure', index=2, + number=3, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='validate_only', full_name='google.ads.googleads.v4.services.MutateAdGroupCriterionLabelsRequest.validate_only', index=3, + number=4, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=442, + serialized_end=644, +) + + +_ADGROUPCRITERIONLABELOPERATION = _descriptor.Descriptor( + name='AdGroupCriterionLabelOperation', + full_name='google.ads.googleads.v4.services.AdGroupCriterionLabelOperation', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='create', full_name='google.ads.googleads.v4.services.AdGroupCriterionLabelOperation.create', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='remove', full_name='google.ads.googleads.v4.services.AdGroupCriterionLabelOperation.remove', index=1, + number=2, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name='operation', full_name='google.ads.googleads.v4.services.AdGroupCriterionLabelOperation.operation', + index=0, containing_type=None, fields=[]), + ], + serialized_start=647, + serialized_end=786, +) + + +_MUTATEADGROUPCRITERIONLABELSRESPONSE = _descriptor.Descriptor( + name='MutateAdGroupCriterionLabelsResponse', + full_name='google.ads.googleads.v4.services.MutateAdGroupCriterionLabelsResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='partial_failure_error', full_name='google.ads.googleads.v4.services.MutateAdGroupCriterionLabelsResponse.partial_failure_error', index=0, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='results', full_name='google.ads.googleads.v4.services.MutateAdGroupCriterionLabelsResponse.results', index=1, + number=2, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=789, + serialized_end=964, +) + + +_MUTATEADGROUPCRITERIONLABELRESULT = _descriptor.Descriptor( + name='MutateAdGroupCriterionLabelResult', + full_name='google.ads.googleads.v4.services.MutateAdGroupCriterionLabelResult', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.services.MutateAdGroupCriterionLabelResult.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=966, + serialized_end=1024, +) + +_MUTATEADGROUPCRITERIONLABELSREQUEST.fields_by_name['operations'].message_type = _ADGROUPCRITERIONLABELOPERATION +_ADGROUPCRITERIONLABELOPERATION.fields_by_name['create'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_ad__group__criterion__label__pb2._ADGROUPCRITERIONLABEL +_ADGROUPCRITERIONLABELOPERATION.oneofs_by_name['operation'].fields.append( + _ADGROUPCRITERIONLABELOPERATION.fields_by_name['create']) +_ADGROUPCRITERIONLABELOPERATION.fields_by_name['create'].containing_oneof = _ADGROUPCRITERIONLABELOPERATION.oneofs_by_name['operation'] +_ADGROUPCRITERIONLABELOPERATION.oneofs_by_name['operation'].fields.append( + _ADGROUPCRITERIONLABELOPERATION.fields_by_name['remove']) +_ADGROUPCRITERIONLABELOPERATION.fields_by_name['remove'].containing_oneof = _ADGROUPCRITERIONLABELOPERATION.oneofs_by_name['operation'] +_MUTATEADGROUPCRITERIONLABELSRESPONSE.fields_by_name['partial_failure_error'].message_type = google_dot_rpc_dot_status__pb2._STATUS +_MUTATEADGROUPCRITERIONLABELSRESPONSE.fields_by_name['results'].message_type = _MUTATEADGROUPCRITERIONLABELRESULT +DESCRIPTOR.message_types_by_name['GetAdGroupCriterionLabelRequest'] = _GETADGROUPCRITERIONLABELREQUEST +DESCRIPTOR.message_types_by_name['MutateAdGroupCriterionLabelsRequest'] = _MUTATEADGROUPCRITERIONLABELSREQUEST +DESCRIPTOR.message_types_by_name['AdGroupCriterionLabelOperation'] = _ADGROUPCRITERIONLABELOPERATION +DESCRIPTOR.message_types_by_name['MutateAdGroupCriterionLabelsResponse'] = _MUTATEADGROUPCRITERIONLABELSRESPONSE +DESCRIPTOR.message_types_by_name['MutateAdGroupCriterionLabelResult'] = _MUTATEADGROUPCRITERIONLABELRESULT +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +GetAdGroupCriterionLabelRequest = _reflection.GeneratedProtocolMessageType('GetAdGroupCriterionLabelRequest', (_message.Message,), dict( + DESCRIPTOR = _GETADGROUPCRITERIONLABELREQUEST, + __module__ = 'google.ads.googleads_v4.proto.services.ad_group_criterion_label_service_pb2' + , + __doc__ = """Request message for + [AdGroupCriterionLabelService.GetAdGroupCriterionLabel][google.ads.googleads.v4.services.AdGroupCriterionLabelService.GetAdGroupCriterionLabel]. + + + Attributes: + resource_name: + Required. The resource name of the ad group criterion label to + fetch. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.GetAdGroupCriterionLabelRequest) + )) +_sym_db.RegisterMessage(GetAdGroupCriterionLabelRequest) + +MutateAdGroupCriterionLabelsRequest = _reflection.GeneratedProtocolMessageType('MutateAdGroupCriterionLabelsRequest', (_message.Message,), dict( + DESCRIPTOR = _MUTATEADGROUPCRITERIONLABELSREQUEST, + __module__ = 'google.ads.googleads_v4.proto.services.ad_group_criterion_label_service_pb2' + , + __doc__ = """Request message for + [AdGroupCriterionLabelService.MutateAdGroupCriterionLabels][google.ads.googleads.v4.services.AdGroupCriterionLabelService.MutateAdGroupCriterionLabels]. + + + Attributes: + customer_id: + Required. ID of the customer whose ad group criterion labels + are being modified. + operations: + Required. The list of operations to perform on ad group + criterion labels. + partial_failure: + If true, successful operations will be carried out and invalid + operations will return errors. If false, all operations will + be carried out in one transaction if and only if they are all + valid. Default is false. + validate_only: + If true, the request is validated but not executed. Only + errors are returned, not results. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.MutateAdGroupCriterionLabelsRequest) + )) +_sym_db.RegisterMessage(MutateAdGroupCriterionLabelsRequest) + +AdGroupCriterionLabelOperation = _reflection.GeneratedProtocolMessageType('AdGroupCriterionLabelOperation', (_message.Message,), dict( + DESCRIPTOR = _ADGROUPCRITERIONLABELOPERATION, + __module__ = 'google.ads.googleads_v4.proto.services.ad_group_criterion_label_service_pb2' + , + __doc__ = """A single operation (create, remove) on an ad group criterion label. + + + Attributes: + operation: + The mutate operation. + create: + Create operation: No resource name is expected for the new ad + group label. + remove: + Remove operation: A resource name for the ad group criterion + label being removed, in this format: ``customers/{customer_id + }/adGroupCriterionLabels/{ad_group_id}~{criterion_id}~{label_i + d}`` + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.AdGroupCriterionLabelOperation) + )) +_sym_db.RegisterMessage(AdGroupCriterionLabelOperation) + +MutateAdGroupCriterionLabelsResponse = _reflection.GeneratedProtocolMessageType('MutateAdGroupCriterionLabelsResponse', (_message.Message,), dict( + DESCRIPTOR = _MUTATEADGROUPCRITERIONLABELSRESPONSE, + __module__ = 'google.ads.googleads_v4.proto.services.ad_group_criterion_label_service_pb2' + , + __doc__ = """Response message for an ad group criterion labels mutate. + + + Attributes: + partial_failure_error: + Errors that pertain to operation failures in the partial + failure mode. Returned only when partial\_failure = true and + all errors occur inside the operations. If any errors occur + outside the operations (e.g. auth errors), we return an RPC + level error. + results: + All results for the mutate. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.MutateAdGroupCriterionLabelsResponse) + )) +_sym_db.RegisterMessage(MutateAdGroupCriterionLabelsResponse) + +MutateAdGroupCriterionLabelResult = _reflection.GeneratedProtocolMessageType('MutateAdGroupCriterionLabelResult', (_message.Message,), dict( + DESCRIPTOR = _MUTATEADGROUPCRITERIONLABELRESULT, + __module__ = 'google.ads.googleads_v4.proto.services.ad_group_criterion_label_service_pb2' + , + __doc__ = """The result for an ad group criterion label mutate. + + + Attributes: + resource_name: + Returned for successful operations. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.MutateAdGroupCriterionLabelResult) + )) +_sym_db.RegisterMessage(MutateAdGroupCriterionLabelResult) + + +DESCRIPTOR._options = None +_GETADGROUPCRITERIONLABELREQUEST.fields_by_name['resource_name']._options = None +_MUTATEADGROUPCRITERIONLABELSREQUEST.fields_by_name['customer_id']._options = None +_MUTATEADGROUPCRITERIONLABELSREQUEST.fields_by_name['operations']._options = None + +_ADGROUPCRITERIONLABELSERVICE = _descriptor.ServiceDescriptor( + name='AdGroupCriterionLabelService', + full_name='google.ads.googleads.v4.services.AdGroupCriterionLabelService', + file=DESCRIPTOR, + index=0, + serialized_options=_b('\312A\030googleads.googleapis.com'), + serialized_start=1027, + serialized_end=1595, + methods=[ + _descriptor.MethodDescriptor( + name='GetAdGroupCriterionLabel', + full_name='google.ads.googleads.v4.services.AdGroupCriterionLabelService.GetAdGroupCriterionLabel', + index=0, + containing_service=None, + input_type=_GETADGROUPCRITERIONLABELREQUEST, + output_type=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_ad__group__criterion__label__pb2._ADGROUPCRITERIONLABEL, + serialized_options=_b('\202\323\344\223\002:\0228/v4/{resource_name=customers/*/adGroupCriterionLabels/*}\332A\rresource_name'), + ), + _descriptor.MethodDescriptor( + name='MutateAdGroupCriterionLabels', + full_name='google.ads.googleads.v4.services.AdGroupCriterionLabelService.MutateAdGroupCriterionLabels', + index=1, + containing_service=None, + input_type=_MUTATEADGROUPCRITERIONLABELSREQUEST, + output_type=_MUTATEADGROUPCRITERIONLABELSRESPONSE, + serialized_options=_b('\202\323\344\223\002@\";/v4/customers/{customer_id=*}/adGroupCriterionLabels:mutate:\001*\332A\026customer_id,operations'), + ), +]) +_sym_db.RegisterServiceDescriptor(_ADGROUPCRITERIONLABELSERVICE) + +DESCRIPTOR.services_by_name['AdGroupCriterionLabelService'] = _ADGROUPCRITERIONLABELSERVICE + +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/services/ad_group_criterion_label_service_pb2_grpc.py b/google/ads/google_ads/v4/proto/services/ad_group_criterion_label_service_pb2_grpc.py similarity index 75% rename from google/ads/google_ads/v1/proto/services/ad_group_criterion_label_service_pb2_grpc.py rename to google/ads/google_ads/v4/proto/services/ad_group_criterion_label_service_pb2_grpc.py index cb24348a7..ec3446620 100644 --- a/google/ads/google_ads/v1/proto/services/ad_group_criterion_label_service_pb2_grpc.py +++ b/google/ads/google_ads/v4/proto/services/ad_group_criterion_label_service_pb2_grpc.py @@ -1,8 +1,8 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc -from google.ads.google_ads.v1.proto.resources import ad_group_criterion_label_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_ad__group__criterion__label__pb2 -from google.ads.google_ads.v1.proto.services import ad_group_criterion_label_service_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_ad__group__criterion__label__service__pb2 +from google.ads.google_ads.v4.proto.resources import ad_group_criterion_label_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_ad__group__criterion__label__pb2 +from google.ads.google_ads.v4.proto.services import ad_group_criterion_label_service_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_ad__group__criterion__label__service__pb2 class AdGroupCriterionLabelServiceStub(object): @@ -18,14 +18,14 @@ def __init__(self, channel): channel: A grpc.Channel. """ self.GetAdGroupCriterionLabel = channel.unary_unary( - '/google.ads.googleads.v1.services.AdGroupCriterionLabelService/GetAdGroupCriterionLabel', - request_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_ad__group__criterion__label__service__pb2.GetAdGroupCriterionLabelRequest.SerializeToString, - response_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_ad__group__criterion__label__pb2.AdGroupCriterionLabel.FromString, + '/google.ads.googleads.v4.services.AdGroupCriterionLabelService/GetAdGroupCriterionLabel', + request_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_ad__group__criterion__label__service__pb2.GetAdGroupCriterionLabelRequest.SerializeToString, + response_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_ad__group__criterion__label__pb2.AdGroupCriterionLabel.FromString, ) self.MutateAdGroupCriterionLabels = channel.unary_unary( - '/google.ads.googleads.v1.services.AdGroupCriterionLabelService/MutateAdGroupCriterionLabels', - request_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_ad__group__criterion__label__service__pb2.MutateAdGroupCriterionLabelsRequest.SerializeToString, - response_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_ad__group__criterion__label__service__pb2.MutateAdGroupCriterionLabelsResponse.FromString, + '/google.ads.googleads.v4.services.AdGroupCriterionLabelService/MutateAdGroupCriterionLabels', + request_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_ad__group__criterion__label__service__pb2.MutateAdGroupCriterionLabelsRequest.SerializeToString, + response_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_ad__group__criterion__label__service__pb2.MutateAdGroupCriterionLabelsResponse.FromString, ) @@ -55,15 +55,15 @@ def add_AdGroupCriterionLabelServiceServicer_to_server(servicer, server): rpc_method_handlers = { 'GetAdGroupCriterionLabel': grpc.unary_unary_rpc_method_handler( servicer.GetAdGroupCriterionLabel, - request_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_ad__group__criterion__label__service__pb2.GetAdGroupCriterionLabelRequest.FromString, - response_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_ad__group__criterion__label__pb2.AdGroupCriterionLabel.SerializeToString, + request_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_ad__group__criterion__label__service__pb2.GetAdGroupCriterionLabelRequest.FromString, + response_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_ad__group__criterion__label__pb2.AdGroupCriterionLabel.SerializeToString, ), 'MutateAdGroupCriterionLabels': grpc.unary_unary_rpc_method_handler( servicer.MutateAdGroupCriterionLabels, - request_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_ad__group__criterion__label__service__pb2.MutateAdGroupCriterionLabelsRequest.FromString, - response_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_ad__group__criterion__label__service__pb2.MutateAdGroupCriterionLabelsResponse.SerializeToString, + request_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_ad__group__criterion__label__service__pb2.MutateAdGroupCriterionLabelsRequest.FromString, + response_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_ad__group__criterion__label__service__pb2.MutateAdGroupCriterionLabelsResponse.SerializeToString, ), } generic_handler = grpc.method_handlers_generic_handler( - 'google.ads.googleads.v1.services.AdGroupCriterionLabelService', rpc_method_handlers) + 'google.ads.googleads.v4.services.AdGroupCriterionLabelService', rpc_method_handlers) server.add_generic_rpc_handlers((generic_handler,)) diff --git a/google/ads/google_ads/v4/proto/services/ad_group_criterion_service_pb2.py b/google/ads/google_ads/v4/proto/services/ad_group_criterion_service_pb2.py new file mode 100644 index 000000000..6f6250e95 --- /dev/null +++ b/google/ads/google_ads/v4/proto/services/ad_group_criterion_service_pb2.py @@ -0,0 +1,429 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/services/ad_group_criterion_service.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.ads.google_ads.v4.proto.common import policy_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_policy__pb2 +from google.ads.google_ads.v4.proto.resources import ad_group_criterion_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_ad__group__criterion__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 +from google.api import client_pb2 as google_dot_api_dot_client__pb2 +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 +from google.protobuf import field_mask_pb2 as google_dot_protobuf_dot_field__mask__pb2 +from google.rpc import status_pb2 as google_dot_rpc_dot_status__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/services/ad_group_criterion_service.proto', + package='google.ads.googleads.v4.services', + syntax='proto3', + serialized_options=_b('\n$com.google.ads.googleads.v4.servicesB\034AdGroupCriterionServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V4.Services\312\002 Google\\Ads\\GoogleAds\\V4\\Services\352\002$Google::Ads::GoogleAds::V4::Services'), + serialized_pb=_b('\nGgoogle/ads/googleads_v4/proto/services/ad_group_criterion_service.proto\x12 google.ads.googleads.v4.services\x1a\x31google/ads/googleads_v4/proto/common/policy.proto\x1a@google/ads/googleads_v4/proto/resources/ad_group_criterion.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/protobuf/field_mask.proto\x1a\x17google/rpc/status.proto\"f\n\x1aGetAdGroupCriterionRequest\x12H\n\rresource_name\x18\x01 \x01(\tB1\xe0\x41\x02\xfa\x41+\n)googleads.googleapis.com/AdGroupCriterion\"\xbe\x01\n\x1cMutateAdGroupCriteriaRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12T\n\noperations\x18\x02 \x03(\x0b\x32;.google.ads.googleads.v4.services.AdGroupCriterionOperationB\x03\xe0\x41\x02\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\"\xd3\x02\n\x19\x41\x64GroupCriterionOperation\x12/\n\x0bupdate_mask\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12X\n\x1c\x65xempt_policy_violation_keys\x18\x05 \x03(\x0b\x32\x32.google.ads.googleads.v4.common.PolicyViolationKey\x12\x45\n\x06\x63reate\x18\x01 \x01(\x0b\x32\x33.google.ads.googleads.v4.resources.AdGroupCriterionH\x00\x12\x45\n\x06update\x18\x02 \x01(\x0b\x32\x33.google.ads.googleads.v4.resources.AdGroupCriterionH\x00\x12\x10\n\x06remove\x18\x03 \x01(\tH\x00\x42\x0b\n\toperation\"\xa3\x01\n\x1dMutateAdGroupCriteriaResponse\x12\x31\n\x15partial_failure_error\x18\x03 \x01(\x0b\x32\x12.google.rpc.Status\x12O\n\x07results\x18\x02 \x03(\x0b\x32>.google.ads.googleads.v4.services.MutateAdGroupCriterionResult\"5\n\x1cMutateAdGroupCriterionResult\x12\x15\n\rresource_name\x18\x01 \x01(\t2\x81\x04\n\x17\x41\x64GroupCriterionService\x12\xd3\x01\n\x13GetAdGroupCriterion\x12<.google.ads.googleads.v4.services.GetAdGroupCriterionRequest\x1a\x33.google.ads.googleads.v4.resources.AdGroupCriterion\"I\x82\xd3\xe4\x93\x02\x33\x12\x31/v4/{resource_name=customers/*/adGroupCriteria/*}\xda\x41\rresource_name\x12\xf2\x01\n\x15MutateAdGroupCriteria\x12>.google.ads.googleads.v4.services.MutateAdGroupCriteriaRequest\x1a?.google.ads.googleads.v4.services.MutateAdGroupCriteriaResponse\"X\x82\xd3\xe4\x93\x02\x39\"4/v4/customers/{customer_id=*}/adGroupCriteria:mutate:\x01*\xda\x41\x16\x63ustomer_id,operations\x1a\x1b\xca\x41\x18googleads.googleapis.comB\x83\x02\n$com.google.ads.googleads.v4.servicesB\x1c\x41\x64GroupCriterionServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V4.Services\xca\x02 Google\\Ads\\GoogleAds\\V4\\Services\xea\x02$Google::Ads::GoogleAds::V4::Servicesb\x06proto3') + , + dependencies=[google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_policy__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_ad__group__criterion__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_api_dot_client__pb2.DESCRIPTOR,google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_api_dot_resource__pb2.DESCRIPTOR,google_dot_protobuf_dot_field__mask__pb2.DESCRIPTOR,google_dot_rpc_dot_status__pb2.DESCRIPTOR,]) + + + + +_GETADGROUPCRITERIONREQUEST = _descriptor.Descriptor( + name='GetAdGroupCriterionRequest', + full_name='google.ads.googleads.v4.services.GetAdGroupCriterionRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.services.GetAdGroupCriterionRequest.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002\372A+\n)googleads.googleapis.com/AdGroupCriterion'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=400, + serialized_end=502, +) + + +_MUTATEADGROUPCRITERIAREQUEST = _descriptor.Descriptor( + name='MutateAdGroupCriteriaRequest', + full_name='google.ads.googleads.v4.services.MutateAdGroupCriteriaRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='customer_id', full_name='google.ads.googleads.v4.services.MutateAdGroupCriteriaRequest.customer_id', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='operations', full_name='google.ads.googleads.v4.services.MutateAdGroupCriteriaRequest.operations', index=1, + number=2, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='partial_failure', full_name='google.ads.googleads.v4.services.MutateAdGroupCriteriaRequest.partial_failure', index=2, + number=3, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='validate_only', full_name='google.ads.googleads.v4.services.MutateAdGroupCriteriaRequest.validate_only', index=3, + number=4, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=505, + serialized_end=695, +) + + +_ADGROUPCRITERIONOPERATION = _descriptor.Descriptor( + name='AdGroupCriterionOperation', + full_name='google.ads.googleads.v4.services.AdGroupCriterionOperation', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='update_mask', full_name='google.ads.googleads.v4.services.AdGroupCriterionOperation.update_mask', index=0, + number=4, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='exempt_policy_violation_keys', full_name='google.ads.googleads.v4.services.AdGroupCriterionOperation.exempt_policy_violation_keys', index=1, + number=5, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='create', full_name='google.ads.googleads.v4.services.AdGroupCriterionOperation.create', index=2, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='update', full_name='google.ads.googleads.v4.services.AdGroupCriterionOperation.update', index=3, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='remove', full_name='google.ads.googleads.v4.services.AdGroupCriterionOperation.remove', index=4, + number=3, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name='operation', full_name='google.ads.googleads.v4.services.AdGroupCriterionOperation.operation', + index=0, containing_type=None, fields=[]), + ], + serialized_start=698, + serialized_end=1037, +) + + +_MUTATEADGROUPCRITERIARESPONSE = _descriptor.Descriptor( + name='MutateAdGroupCriteriaResponse', + full_name='google.ads.googleads.v4.services.MutateAdGroupCriteriaResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='partial_failure_error', full_name='google.ads.googleads.v4.services.MutateAdGroupCriteriaResponse.partial_failure_error', index=0, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='results', full_name='google.ads.googleads.v4.services.MutateAdGroupCriteriaResponse.results', index=1, + number=2, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1040, + serialized_end=1203, +) + + +_MUTATEADGROUPCRITERIONRESULT = _descriptor.Descriptor( + name='MutateAdGroupCriterionResult', + full_name='google.ads.googleads.v4.services.MutateAdGroupCriterionResult', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.services.MutateAdGroupCriterionResult.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1205, + serialized_end=1258, +) + +_MUTATEADGROUPCRITERIAREQUEST.fields_by_name['operations'].message_type = _ADGROUPCRITERIONOPERATION +_ADGROUPCRITERIONOPERATION.fields_by_name['update_mask'].message_type = google_dot_protobuf_dot_field__mask__pb2._FIELDMASK +_ADGROUPCRITERIONOPERATION.fields_by_name['exempt_policy_violation_keys'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_policy__pb2._POLICYVIOLATIONKEY +_ADGROUPCRITERIONOPERATION.fields_by_name['create'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_ad__group__criterion__pb2._ADGROUPCRITERION +_ADGROUPCRITERIONOPERATION.fields_by_name['update'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_ad__group__criterion__pb2._ADGROUPCRITERION +_ADGROUPCRITERIONOPERATION.oneofs_by_name['operation'].fields.append( + _ADGROUPCRITERIONOPERATION.fields_by_name['create']) +_ADGROUPCRITERIONOPERATION.fields_by_name['create'].containing_oneof = _ADGROUPCRITERIONOPERATION.oneofs_by_name['operation'] +_ADGROUPCRITERIONOPERATION.oneofs_by_name['operation'].fields.append( + _ADGROUPCRITERIONOPERATION.fields_by_name['update']) +_ADGROUPCRITERIONOPERATION.fields_by_name['update'].containing_oneof = _ADGROUPCRITERIONOPERATION.oneofs_by_name['operation'] +_ADGROUPCRITERIONOPERATION.oneofs_by_name['operation'].fields.append( + _ADGROUPCRITERIONOPERATION.fields_by_name['remove']) +_ADGROUPCRITERIONOPERATION.fields_by_name['remove'].containing_oneof = _ADGROUPCRITERIONOPERATION.oneofs_by_name['operation'] +_MUTATEADGROUPCRITERIARESPONSE.fields_by_name['partial_failure_error'].message_type = google_dot_rpc_dot_status__pb2._STATUS +_MUTATEADGROUPCRITERIARESPONSE.fields_by_name['results'].message_type = _MUTATEADGROUPCRITERIONRESULT +DESCRIPTOR.message_types_by_name['GetAdGroupCriterionRequest'] = _GETADGROUPCRITERIONREQUEST +DESCRIPTOR.message_types_by_name['MutateAdGroupCriteriaRequest'] = _MUTATEADGROUPCRITERIAREQUEST +DESCRIPTOR.message_types_by_name['AdGroupCriterionOperation'] = _ADGROUPCRITERIONOPERATION +DESCRIPTOR.message_types_by_name['MutateAdGroupCriteriaResponse'] = _MUTATEADGROUPCRITERIARESPONSE +DESCRIPTOR.message_types_by_name['MutateAdGroupCriterionResult'] = _MUTATEADGROUPCRITERIONRESULT +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +GetAdGroupCriterionRequest = _reflection.GeneratedProtocolMessageType('GetAdGroupCriterionRequest', (_message.Message,), dict( + DESCRIPTOR = _GETADGROUPCRITERIONREQUEST, + __module__ = 'google.ads.googleads_v4.proto.services.ad_group_criterion_service_pb2' + , + __doc__ = """Request message for + [AdGroupCriterionService.GetAdGroupCriterion][google.ads.googleads.v4.services.AdGroupCriterionService.GetAdGroupCriterion]. + + + Attributes: + resource_name: + Required. The resource name of the criterion to fetch. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.GetAdGroupCriterionRequest) + )) +_sym_db.RegisterMessage(GetAdGroupCriterionRequest) + +MutateAdGroupCriteriaRequest = _reflection.GeneratedProtocolMessageType('MutateAdGroupCriteriaRequest', (_message.Message,), dict( + DESCRIPTOR = _MUTATEADGROUPCRITERIAREQUEST, + __module__ = 'google.ads.googleads_v4.proto.services.ad_group_criterion_service_pb2' + , + __doc__ = """Request message for + [AdGroupCriterionService.MutateAdGroupCriteria][google.ads.googleads.v4.services.AdGroupCriterionService.MutateAdGroupCriteria]. + + + Attributes: + customer_id: + Required. ID of the customer whose criteria are being + modified. + operations: + Required. The list of operations to perform on individual + criteria. + partial_failure: + If true, successful operations will be carried out and invalid + operations will return errors. If false, all operations will + be carried out in one transaction if and only if they are all + valid. Default is false. + validate_only: + If true, the request is validated but not executed. Only + errors are returned, not results. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.MutateAdGroupCriteriaRequest) + )) +_sym_db.RegisterMessage(MutateAdGroupCriteriaRequest) + +AdGroupCriterionOperation = _reflection.GeneratedProtocolMessageType('AdGroupCriterionOperation', (_message.Message,), dict( + DESCRIPTOR = _ADGROUPCRITERIONOPERATION, + __module__ = 'google.ads.googleads_v4.proto.services.ad_group_criterion_service_pb2' + , + __doc__ = """A single operation (create, remove, update) on an ad group criterion. + + + Attributes: + update_mask: + FieldMask that determines which resource fields are modified + in an update. + exempt_policy_violation_keys: + The list of policy violation keys that should not cause a + PolicyViolationError to be reported. Not all policy violations + are exemptable, please refer to the is\_exemptible field in + the returned PolicyViolationError. Resources violating these + polices will be saved, but will not be eligible to serve. They + may begin serving at a later time due to a change in policies, + re-review of the resource, or a change in advertiser + certificates. + operation: + The mutate operation. + create: + Create operation: No resource name is expected for the new + criterion. + update: + Update operation: The criterion is expected to have a valid + resource name. + remove: + Remove operation: A resource name for the removed criterion is + expected, in this format: ``customers/{customer_id}/adGroupCr + iteria/{ad_group_id}~{criterion_id}`` + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.AdGroupCriterionOperation) + )) +_sym_db.RegisterMessage(AdGroupCriterionOperation) + +MutateAdGroupCriteriaResponse = _reflection.GeneratedProtocolMessageType('MutateAdGroupCriteriaResponse', (_message.Message,), dict( + DESCRIPTOR = _MUTATEADGROUPCRITERIARESPONSE, + __module__ = 'google.ads.googleads_v4.proto.services.ad_group_criterion_service_pb2' + , + __doc__ = """Response message for an ad group criterion mutate. + + + Attributes: + partial_failure_error: + Errors that pertain to operation failures in the partial + failure mode. Returned only when partial\_failure = true and + all errors occur inside the operations. If any errors occur + outside the operations (e.g. auth errors), we return an RPC + level error. + results: + All results for the mutate. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.MutateAdGroupCriteriaResponse) + )) +_sym_db.RegisterMessage(MutateAdGroupCriteriaResponse) + +MutateAdGroupCriterionResult = _reflection.GeneratedProtocolMessageType('MutateAdGroupCriterionResult', (_message.Message,), dict( + DESCRIPTOR = _MUTATEADGROUPCRITERIONRESULT, + __module__ = 'google.ads.googleads_v4.proto.services.ad_group_criterion_service_pb2' + , + __doc__ = """The result for the criterion mutate. + + + Attributes: + resource_name: + Returned for successful operations. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.MutateAdGroupCriterionResult) + )) +_sym_db.RegisterMessage(MutateAdGroupCriterionResult) + + +DESCRIPTOR._options = None +_GETADGROUPCRITERIONREQUEST.fields_by_name['resource_name']._options = None +_MUTATEADGROUPCRITERIAREQUEST.fields_by_name['customer_id']._options = None +_MUTATEADGROUPCRITERIAREQUEST.fields_by_name['operations']._options = None + +_ADGROUPCRITERIONSERVICE = _descriptor.ServiceDescriptor( + name='AdGroupCriterionService', + full_name='google.ads.googleads.v4.services.AdGroupCriterionService', + file=DESCRIPTOR, + index=0, + serialized_options=_b('\312A\030googleads.googleapis.com'), + serialized_start=1261, + serialized_end=1774, + methods=[ + _descriptor.MethodDescriptor( + name='GetAdGroupCriterion', + full_name='google.ads.googleads.v4.services.AdGroupCriterionService.GetAdGroupCriterion', + index=0, + containing_service=None, + input_type=_GETADGROUPCRITERIONREQUEST, + output_type=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_ad__group__criterion__pb2._ADGROUPCRITERION, + serialized_options=_b('\202\323\344\223\0023\0221/v4/{resource_name=customers/*/adGroupCriteria/*}\332A\rresource_name'), + ), + _descriptor.MethodDescriptor( + name='MutateAdGroupCriteria', + full_name='google.ads.googleads.v4.services.AdGroupCriterionService.MutateAdGroupCriteria', + index=1, + containing_service=None, + input_type=_MUTATEADGROUPCRITERIAREQUEST, + output_type=_MUTATEADGROUPCRITERIARESPONSE, + serialized_options=_b('\202\323\344\223\0029\"4/v4/customers/{customer_id=*}/adGroupCriteria:mutate:\001*\332A\026customer_id,operations'), + ), +]) +_sym_db.RegisterServiceDescriptor(_ADGROUPCRITERIONSERVICE) + +DESCRIPTOR.services_by_name['AdGroupCriterionService'] = _ADGROUPCRITERIONSERVICE + +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v4/proto/services/ad_group_criterion_service_pb2_grpc.py b/google/ads/google_ads/v4/proto/services/ad_group_criterion_service_pb2_grpc.py new file mode 100644 index 000000000..169fa0b45 --- /dev/null +++ b/google/ads/google_ads/v4/proto/services/ad_group_criterion_service_pb2_grpc.py @@ -0,0 +1,68 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +import grpc + +from google.ads.google_ads.v4.proto.resources import ad_group_criterion_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_ad__group__criterion__pb2 +from google.ads.google_ads.v4.proto.services import ad_group_criterion_service_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_ad__group__criterion__service__pb2 + + +class AdGroupCriterionServiceStub(object): + """Proto file describing the Ad Group Criterion service. + + Service to manage ad group criteria. + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.GetAdGroupCriterion = channel.unary_unary( + '/google.ads.googleads.v4.services.AdGroupCriterionService/GetAdGroupCriterion', + request_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_ad__group__criterion__service__pb2.GetAdGroupCriterionRequest.SerializeToString, + response_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_ad__group__criterion__pb2.AdGroupCriterion.FromString, + ) + self.MutateAdGroupCriteria = channel.unary_unary( + '/google.ads.googleads.v4.services.AdGroupCriterionService/MutateAdGroupCriteria', + request_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_ad__group__criterion__service__pb2.MutateAdGroupCriteriaRequest.SerializeToString, + response_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_ad__group__criterion__service__pb2.MutateAdGroupCriteriaResponse.FromString, + ) + + +class AdGroupCriterionServiceServicer(object): + """Proto file describing the Ad Group Criterion service. + + Service to manage ad group criteria. + """ + + def GetAdGroupCriterion(self, request, context): + """Returns the requested criterion in full detail. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def MutateAdGroupCriteria(self, request, context): + """Creates, updates, or removes criteria. Operation statuses are returned. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_AdGroupCriterionServiceServicer_to_server(servicer, server): + rpc_method_handlers = { + 'GetAdGroupCriterion': grpc.unary_unary_rpc_method_handler( + servicer.GetAdGroupCriterion, + request_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_ad__group__criterion__service__pb2.GetAdGroupCriterionRequest.FromString, + response_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_ad__group__criterion__pb2.AdGroupCriterion.SerializeToString, + ), + 'MutateAdGroupCriteria': grpc.unary_unary_rpc_method_handler( + servicer.MutateAdGroupCriteria, + request_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_ad__group__criterion__service__pb2.MutateAdGroupCriteriaRequest.FromString, + response_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_ad__group__criterion__service__pb2.MutateAdGroupCriteriaResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'google.ads.googleads.v4.services.AdGroupCriterionService', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) diff --git a/google/ads/google_ads/v4/proto/services/ad_group_criterion_simulation_service_pb2.py b/google/ads/google_ads/v4/proto/services/ad_group_criterion_simulation_service_pb2.py new file mode 100644 index 000000000..54077ba2a --- /dev/null +++ b/google/ads/google_ads/v4/proto/services/ad_group_criterion_simulation_service_pb2.py @@ -0,0 +1,112 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/services/ad_group_criterion_simulation_service.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.ads.google_ads.v4.proto.resources import ad_group_criterion_simulation_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_ad__group__criterion__simulation__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 +from google.api import client_pb2 as google_dot_api_dot_client__pb2 +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/services/ad_group_criterion_simulation_service.proto', + package='google.ads.googleads.v4.services', + syntax='proto3', + serialized_options=_b('\n$com.google.ads.googleads.v4.servicesB&AdGroupCriterionSimulationServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V4.Services\312\002 Google\\Ads\\GoogleAds\\V4\\Services\352\002$Google::Ads::GoogleAds::V4::Services'), + serialized_pb=_b('\nRgoogle/ads/googleads_v4/proto/services/ad_group_criterion_simulation_service.proto\x12 google.ads.googleads.v4.services\x1aKgoogle/ads/googleads_v4/proto/resources/ad_group_criterion_simulation.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"z\n$GetAdGroupCriterionSimulationRequest\x12R\n\rresource_name\x18\x01 \x01(\tB;\xe0\x41\x02\xfa\x41\x35\n3googleads.googleapis.com/AdGroupCriterionSimulation2\xc0\x02\n!AdGroupCriterionSimulationService\x12\xfd\x01\n\x1dGetAdGroupCriterionSimulation\x12\x46.google.ads.googleads.v4.services.GetAdGroupCriterionSimulationRequest\x1a=.google.ads.googleads.v4.resources.AdGroupCriterionSimulation\"U\x82\xd3\xe4\x93\x02?\x12=/v4/{resource_name=customers/*/adGroupCriterionSimulations/*}\xda\x41\rresource_name\x1a\x1b\xca\x41\x18googleads.googleapis.comB\x8d\x02\n$com.google.ads.googleads.v4.servicesB&AdGroupCriterionSimulationServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V4.Services\xca\x02 Google\\Ads\\GoogleAds\\V4\\Services\xea\x02$Google::Ads::GoogleAds::V4::Servicesb\x06proto3') + , + dependencies=[google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_ad__group__criterion__simulation__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_api_dot_client__pb2.DESCRIPTOR,google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_api_dot_resource__pb2.DESCRIPTOR,]) + + + + +_GETADGROUPCRITERIONSIMULATIONREQUEST = _descriptor.Descriptor( + name='GetAdGroupCriterionSimulationRequest', + full_name='google.ads.googleads.v4.services.GetAdGroupCriterionSimulationRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.services.GetAdGroupCriterionSimulationRequest.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002\372A5\n3googleads.googleapis.com/AdGroupCriterionSimulation'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=312, + serialized_end=434, +) + +DESCRIPTOR.message_types_by_name['GetAdGroupCriterionSimulationRequest'] = _GETADGROUPCRITERIONSIMULATIONREQUEST +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +GetAdGroupCriterionSimulationRequest = _reflection.GeneratedProtocolMessageType('GetAdGroupCriterionSimulationRequest', (_message.Message,), dict( + DESCRIPTOR = _GETADGROUPCRITERIONSIMULATIONREQUEST, + __module__ = 'google.ads.googleads_v4.proto.services.ad_group_criterion_simulation_service_pb2' + , + __doc__ = """Request message for + [AdGroupCriterionSimulationService.GetAdGroupCriterionSimulation][google.ads.googleads.v4.services.AdGroupCriterionSimulationService.GetAdGroupCriterionSimulation]. + + + Attributes: + resource_name: + Required. The resource name of the ad group criterion + simulation to fetch. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.GetAdGroupCriterionSimulationRequest) + )) +_sym_db.RegisterMessage(GetAdGroupCriterionSimulationRequest) + + +DESCRIPTOR._options = None +_GETADGROUPCRITERIONSIMULATIONREQUEST.fields_by_name['resource_name']._options = None + +_ADGROUPCRITERIONSIMULATIONSERVICE = _descriptor.ServiceDescriptor( + name='AdGroupCriterionSimulationService', + full_name='google.ads.googleads.v4.services.AdGroupCriterionSimulationService', + file=DESCRIPTOR, + index=0, + serialized_options=_b('\312A\030googleads.googleapis.com'), + serialized_start=437, + serialized_end=757, + methods=[ + _descriptor.MethodDescriptor( + name='GetAdGroupCriterionSimulation', + full_name='google.ads.googleads.v4.services.AdGroupCriterionSimulationService.GetAdGroupCriterionSimulation', + index=0, + containing_service=None, + input_type=_GETADGROUPCRITERIONSIMULATIONREQUEST, + output_type=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_ad__group__criterion__simulation__pb2._ADGROUPCRITERIONSIMULATION, + serialized_options=_b('\202\323\344\223\002?\022=/v4/{resource_name=customers/*/adGroupCriterionSimulations/*}\332A\rresource_name'), + ), +]) +_sym_db.RegisterServiceDescriptor(_ADGROUPCRITERIONSIMULATIONSERVICE) + +DESCRIPTOR.services_by_name['AdGroupCriterionSimulationService'] = _ADGROUPCRITERIONSIMULATIONSERVICE + +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/services/ad_group_criterion_simulation_service_pb2_grpc.py b/google/ads/google_ads/v4/proto/services/ad_group_criterion_simulation_service_pb2_grpc.py similarity index 75% rename from google/ads/google_ads/v1/proto/services/ad_group_criterion_simulation_service_pb2_grpc.py rename to google/ads/google_ads/v4/proto/services/ad_group_criterion_simulation_service_pb2_grpc.py index 67883a90a..e66ed299e 100644 --- a/google/ads/google_ads/v1/proto/services/ad_group_criterion_simulation_service_pb2_grpc.py +++ b/google/ads/google_ads/v4/proto/services/ad_group_criterion_simulation_service_pb2_grpc.py @@ -1,8 +1,8 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc -from google.ads.google_ads.v1.proto.resources import ad_group_criterion_simulation_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_ad__group__criterion__simulation__pb2 -from google.ads.google_ads.v1.proto.services import ad_group_criterion_simulation_service_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_ad__group__criterion__simulation__service__pb2 +from google.ads.google_ads.v4.proto.resources import ad_group_criterion_simulation_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_ad__group__criterion__simulation__pb2 +from google.ads.google_ads.v4.proto.services import ad_group_criterion_simulation_service_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_ad__group__criterion__simulation__service__pb2 class AdGroupCriterionSimulationServiceStub(object): @@ -18,9 +18,9 @@ def __init__(self, channel): channel: A grpc.Channel. """ self.GetAdGroupCriterionSimulation = channel.unary_unary( - '/google.ads.googleads.v1.services.AdGroupCriterionSimulationService/GetAdGroupCriterionSimulation', - request_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_ad__group__criterion__simulation__service__pb2.GetAdGroupCriterionSimulationRequest.SerializeToString, - response_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_ad__group__criterion__simulation__pb2.AdGroupCriterionSimulation.FromString, + '/google.ads.googleads.v4.services.AdGroupCriterionSimulationService/GetAdGroupCriterionSimulation', + request_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_ad__group__criterion__simulation__service__pb2.GetAdGroupCriterionSimulationRequest.SerializeToString, + response_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_ad__group__criterion__simulation__pb2.AdGroupCriterionSimulation.FromString, ) @@ -42,10 +42,10 @@ def add_AdGroupCriterionSimulationServiceServicer_to_server(servicer, server): rpc_method_handlers = { 'GetAdGroupCriterionSimulation': grpc.unary_unary_rpc_method_handler( servicer.GetAdGroupCriterionSimulation, - request_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_ad__group__criterion__simulation__service__pb2.GetAdGroupCriterionSimulationRequest.FromString, - response_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_ad__group__criterion__simulation__pb2.AdGroupCriterionSimulation.SerializeToString, + request_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_ad__group__criterion__simulation__service__pb2.GetAdGroupCriterionSimulationRequest.FromString, + response_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_ad__group__criterion__simulation__pb2.AdGroupCriterionSimulation.SerializeToString, ), } generic_handler = grpc.method_handlers_generic_handler( - 'google.ads.googleads.v1.services.AdGroupCriterionSimulationService', rpc_method_handlers) + 'google.ads.googleads.v4.services.AdGroupCriterionSimulationService', rpc_method_handlers) server.add_generic_rpc_handlers((generic_handler,)) diff --git a/google/ads/google_ads/v4/proto/services/ad_group_extension_setting_service_pb2.py b/google/ads/google_ads/v4/proto/services/ad_group_extension_setting_service_pb2.py new file mode 100644 index 000000000..33d1e8ec9 --- /dev/null +++ b/google/ads/google_ads/v4/proto/services/ad_group_extension_setting_service_pb2.py @@ -0,0 +1,414 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/services/ad_group_extension_setting_service.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.ads.google_ads.v4.proto.resources import ad_group_extension_setting_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_ad__group__extension__setting__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 +from google.api import client_pb2 as google_dot_api_dot_client__pb2 +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 +from google.protobuf import field_mask_pb2 as google_dot_protobuf_dot_field__mask__pb2 +from google.rpc import status_pb2 as google_dot_rpc_dot_status__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/services/ad_group_extension_setting_service.proto', + package='google.ads.googleads.v4.services', + syntax='proto3', + serialized_options=_b('\n$com.google.ads.googleads.v4.servicesB#AdGroupExtensionSettingServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V4.Services\312\002 Google\\Ads\\GoogleAds\\V4\\Services\352\002$Google::Ads::GoogleAds::V4::Services'), + serialized_pb=_b('\nOgoogle/ads/googleads_v4/proto/services/ad_group_extension_setting_service.proto\x12 google.ads.googleads.v4.services\x1aHgoogle/ads/googleads_v4/proto/resources/ad_group_extension_setting.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/protobuf/field_mask.proto\x1a\x17google/rpc/status.proto\"t\n!GetAdGroupExtensionSettingRequest\x12O\n\rresource_name\x18\x01 \x01(\tB8\xe0\x41\x02\xfa\x41\x32\n0googleads.googleapis.com/AdGroupExtensionSetting\"\xce\x01\n%MutateAdGroupExtensionSettingsRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12[\n\noperations\x18\x02 \x03(\x0b\x32\x42.google.ads.googleads.v4.services.AdGroupExtensionSettingOperationB\x03\xe0\x41\x02\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\"\x8e\x02\n AdGroupExtensionSettingOperation\x12/\n\x0bupdate_mask\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12L\n\x06\x63reate\x18\x01 \x01(\x0b\x32:.google.ads.googleads.v4.resources.AdGroupExtensionSettingH\x00\x12L\n\x06update\x18\x02 \x01(\x0b\x32:.google.ads.googleads.v4.resources.AdGroupExtensionSettingH\x00\x12\x10\n\x06remove\x18\x03 \x01(\tH\x00\x42\x0b\n\toperation\"\xb3\x01\n&MutateAdGroupExtensionSettingsResponse\x12\x31\n\x15partial_failure_error\x18\x03 \x01(\x0b\x32\x12.google.rpc.Status\x12V\n\x07results\x18\x02 \x03(\x0b\x32\x45.google.ads.googleads.v4.services.MutateAdGroupExtensionSettingResult\"<\n#MutateAdGroupExtensionSettingResult\x12\x15\n\rresource_name\x18\x01 \x01(\t2\xca\x04\n\x1e\x41\x64GroupExtensionSettingService\x12\xf1\x01\n\x1aGetAdGroupExtensionSetting\x12\x43.google.ads.googleads.v4.services.GetAdGroupExtensionSettingRequest\x1a:.google.ads.googleads.v4.resources.AdGroupExtensionSetting\"R\x82\xd3\xe4\x93\x02<\x12:/v4/{resource_name=customers/*/adGroupExtensionSettings/*}\xda\x41\rresource_name\x12\x96\x02\n\x1eMutateAdGroupExtensionSettings\x12G.google.ads.googleads.v4.services.MutateAdGroupExtensionSettingsRequest\x1aH.google.ads.googleads.v4.services.MutateAdGroupExtensionSettingsResponse\"a\x82\xd3\xe4\x93\x02\x42\"=/v4/customers/{customer_id=*}/adGroupExtensionSettings:mutate:\x01*\xda\x41\x16\x63ustomer_id,operations\x1a\x1b\xca\x41\x18googleads.googleapis.comB\x8a\x02\n$com.google.ads.googleads.v4.servicesB#AdGroupExtensionSettingServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V4.Services\xca\x02 Google\\Ads\\GoogleAds\\V4\\Services\xea\x02$Google::Ads::GoogleAds::V4::Servicesb\x06proto3') + , + dependencies=[google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_ad__group__extension__setting__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_api_dot_client__pb2.DESCRIPTOR,google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_api_dot_resource__pb2.DESCRIPTOR,google_dot_protobuf_dot_field__mask__pb2.DESCRIPTOR,google_dot_rpc_dot_status__pb2.DESCRIPTOR,]) + + + + +_GETADGROUPEXTENSIONSETTINGREQUEST = _descriptor.Descriptor( + name='GetAdGroupExtensionSettingRequest', + full_name='google.ads.googleads.v4.services.GetAdGroupExtensionSettingRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.services.GetAdGroupExtensionSettingRequest.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002\372A2\n0googleads.googleapis.com/AdGroupExtensionSetting'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=365, + serialized_end=481, +) + + +_MUTATEADGROUPEXTENSIONSETTINGSREQUEST = _descriptor.Descriptor( + name='MutateAdGroupExtensionSettingsRequest', + full_name='google.ads.googleads.v4.services.MutateAdGroupExtensionSettingsRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='customer_id', full_name='google.ads.googleads.v4.services.MutateAdGroupExtensionSettingsRequest.customer_id', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='operations', full_name='google.ads.googleads.v4.services.MutateAdGroupExtensionSettingsRequest.operations', index=1, + number=2, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='partial_failure', full_name='google.ads.googleads.v4.services.MutateAdGroupExtensionSettingsRequest.partial_failure', index=2, + number=3, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='validate_only', full_name='google.ads.googleads.v4.services.MutateAdGroupExtensionSettingsRequest.validate_only', index=3, + number=4, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=484, + serialized_end=690, +) + + +_ADGROUPEXTENSIONSETTINGOPERATION = _descriptor.Descriptor( + name='AdGroupExtensionSettingOperation', + full_name='google.ads.googleads.v4.services.AdGroupExtensionSettingOperation', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='update_mask', full_name='google.ads.googleads.v4.services.AdGroupExtensionSettingOperation.update_mask', index=0, + number=4, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='create', full_name='google.ads.googleads.v4.services.AdGroupExtensionSettingOperation.create', index=1, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='update', full_name='google.ads.googleads.v4.services.AdGroupExtensionSettingOperation.update', index=2, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='remove', full_name='google.ads.googleads.v4.services.AdGroupExtensionSettingOperation.remove', index=3, + number=3, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name='operation', full_name='google.ads.googleads.v4.services.AdGroupExtensionSettingOperation.operation', + index=0, containing_type=None, fields=[]), + ], + serialized_start=693, + serialized_end=963, +) + + +_MUTATEADGROUPEXTENSIONSETTINGSRESPONSE = _descriptor.Descriptor( + name='MutateAdGroupExtensionSettingsResponse', + full_name='google.ads.googleads.v4.services.MutateAdGroupExtensionSettingsResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='partial_failure_error', full_name='google.ads.googleads.v4.services.MutateAdGroupExtensionSettingsResponse.partial_failure_error', index=0, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='results', full_name='google.ads.googleads.v4.services.MutateAdGroupExtensionSettingsResponse.results', index=1, + number=2, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=966, + serialized_end=1145, +) + + +_MUTATEADGROUPEXTENSIONSETTINGRESULT = _descriptor.Descriptor( + name='MutateAdGroupExtensionSettingResult', + full_name='google.ads.googleads.v4.services.MutateAdGroupExtensionSettingResult', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.services.MutateAdGroupExtensionSettingResult.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1147, + serialized_end=1207, +) + +_MUTATEADGROUPEXTENSIONSETTINGSREQUEST.fields_by_name['operations'].message_type = _ADGROUPEXTENSIONSETTINGOPERATION +_ADGROUPEXTENSIONSETTINGOPERATION.fields_by_name['update_mask'].message_type = google_dot_protobuf_dot_field__mask__pb2._FIELDMASK +_ADGROUPEXTENSIONSETTINGOPERATION.fields_by_name['create'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_ad__group__extension__setting__pb2._ADGROUPEXTENSIONSETTING +_ADGROUPEXTENSIONSETTINGOPERATION.fields_by_name['update'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_ad__group__extension__setting__pb2._ADGROUPEXTENSIONSETTING +_ADGROUPEXTENSIONSETTINGOPERATION.oneofs_by_name['operation'].fields.append( + _ADGROUPEXTENSIONSETTINGOPERATION.fields_by_name['create']) +_ADGROUPEXTENSIONSETTINGOPERATION.fields_by_name['create'].containing_oneof = _ADGROUPEXTENSIONSETTINGOPERATION.oneofs_by_name['operation'] +_ADGROUPEXTENSIONSETTINGOPERATION.oneofs_by_name['operation'].fields.append( + _ADGROUPEXTENSIONSETTINGOPERATION.fields_by_name['update']) +_ADGROUPEXTENSIONSETTINGOPERATION.fields_by_name['update'].containing_oneof = _ADGROUPEXTENSIONSETTINGOPERATION.oneofs_by_name['operation'] +_ADGROUPEXTENSIONSETTINGOPERATION.oneofs_by_name['operation'].fields.append( + _ADGROUPEXTENSIONSETTINGOPERATION.fields_by_name['remove']) +_ADGROUPEXTENSIONSETTINGOPERATION.fields_by_name['remove'].containing_oneof = _ADGROUPEXTENSIONSETTINGOPERATION.oneofs_by_name['operation'] +_MUTATEADGROUPEXTENSIONSETTINGSRESPONSE.fields_by_name['partial_failure_error'].message_type = google_dot_rpc_dot_status__pb2._STATUS +_MUTATEADGROUPEXTENSIONSETTINGSRESPONSE.fields_by_name['results'].message_type = _MUTATEADGROUPEXTENSIONSETTINGRESULT +DESCRIPTOR.message_types_by_name['GetAdGroupExtensionSettingRequest'] = _GETADGROUPEXTENSIONSETTINGREQUEST +DESCRIPTOR.message_types_by_name['MutateAdGroupExtensionSettingsRequest'] = _MUTATEADGROUPEXTENSIONSETTINGSREQUEST +DESCRIPTOR.message_types_by_name['AdGroupExtensionSettingOperation'] = _ADGROUPEXTENSIONSETTINGOPERATION +DESCRIPTOR.message_types_by_name['MutateAdGroupExtensionSettingsResponse'] = _MUTATEADGROUPEXTENSIONSETTINGSRESPONSE +DESCRIPTOR.message_types_by_name['MutateAdGroupExtensionSettingResult'] = _MUTATEADGROUPEXTENSIONSETTINGRESULT +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +GetAdGroupExtensionSettingRequest = _reflection.GeneratedProtocolMessageType('GetAdGroupExtensionSettingRequest', (_message.Message,), dict( + DESCRIPTOR = _GETADGROUPEXTENSIONSETTINGREQUEST, + __module__ = 'google.ads.googleads_v4.proto.services.ad_group_extension_setting_service_pb2' + , + __doc__ = """Request message for + [AdGroupExtensionSettingService.GetAdGroupExtensionSetting][google.ads.googleads.v4.services.AdGroupExtensionSettingService.GetAdGroupExtensionSetting]. + + + Attributes: + resource_name: + Required. The resource name of the ad group extension setting + to fetch. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.GetAdGroupExtensionSettingRequest) + )) +_sym_db.RegisterMessage(GetAdGroupExtensionSettingRequest) + +MutateAdGroupExtensionSettingsRequest = _reflection.GeneratedProtocolMessageType('MutateAdGroupExtensionSettingsRequest', (_message.Message,), dict( + DESCRIPTOR = _MUTATEADGROUPEXTENSIONSETTINGSREQUEST, + __module__ = 'google.ads.googleads_v4.proto.services.ad_group_extension_setting_service_pb2' + , + __doc__ = """Request message for + [AdGroupExtensionSettingService.MutateAdGroupExtensionSettings][google.ads.googleads.v4.services.AdGroupExtensionSettingService.MutateAdGroupExtensionSettings]. + + + Attributes: + customer_id: + Required. The ID of the customer whose ad group extension + settings are being modified. + operations: + Required. The list of operations to perform on individual ad + group extension settings. + partial_failure: + If true, successful operations will be carried out and invalid + operations will return errors. If false, all operations will + be carried out in one transaction if and only if they are all + valid. Default is false. + validate_only: + If true, the request is validated but not executed. Only + errors are returned, not results. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.MutateAdGroupExtensionSettingsRequest) + )) +_sym_db.RegisterMessage(MutateAdGroupExtensionSettingsRequest) + +AdGroupExtensionSettingOperation = _reflection.GeneratedProtocolMessageType('AdGroupExtensionSettingOperation', (_message.Message,), dict( + DESCRIPTOR = _ADGROUPEXTENSIONSETTINGOPERATION, + __module__ = 'google.ads.googleads_v4.proto.services.ad_group_extension_setting_service_pb2' + , + __doc__ = """A single operation (create, update, remove) on an ad group extension + setting. + + + Attributes: + update_mask: + FieldMask that determines which resource fields are modified + in an update. + operation: + The mutate operation. + create: + Create operation: No resource name is expected for the new ad + group extension setting. + update: + Update operation: The ad group extension setting is expected + to have a valid resource name. + remove: + Remove operation: A resource name for the removed ad group + extension setting is expected, in this format: ``customers/{c + ustomer_id}/adGroupExtensionSettings/{ad_group_id}~{extension_ + type}`` + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.AdGroupExtensionSettingOperation) + )) +_sym_db.RegisterMessage(AdGroupExtensionSettingOperation) + +MutateAdGroupExtensionSettingsResponse = _reflection.GeneratedProtocolMessageType('MutateAdGroupExtensionSettingsResponse', (_message.Message,), dict( + DESCRIPTOR = _MUTATEADGROUPEXTENSIONSETTINGSRESPONSE, + __module__ = 'google.ads.googleads_v4.proto.services.ad_group_extension_setting_service_pb2' + , + __doc__ = """Response message for an ad group extension setting mutate. + + + Attributes: + partial_failure_error: + Errors that pertain to operation failures in the partial + failure mode. Returned only when partial\_failure = true and + all errors occur inside the operations. If any errors occur + outside the operations (e.g. auth errors), we return an RPC + level error. + results: + All results for the mutate. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.MutateAdGroupExtensionSettingsResponse) + )) +_sym_db.RegisterMessage(MutateAdGroupExtensionSettingsResponse) + +MutateAdGroupExtensionSettingResult = _reflection.GeneratedProtocolMessageType('MutateAdGroupExtensionSettingResult', (_message.Message,), dict( + DESCRIPTOR = _MUTATEADGROUPEXTENSIONSETTINGRESULT, + __module__ = 'google.ads.googleads_v4.proto.services.ad_group_extension_setting_service_pb2' + , + __doc__ = """The result for the ad group extension setting mutate. + + + Attributes: + resource_name: + Returned for successful operations. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.MutateAdGroupExtensionSettingResult) + )) +_sym_db.RegisterMessage(MutateAdGroupExtensionSettingResult) + + +DESCRIPTOR._options = None +_GETADGROUPEXTENSIONSETTINGREQUEST.fields_by_name['resource_name']._options = None +_MUTATEADGROUPEXTENSIONSETTINGSREQUEST.fields_by_name['customer_id']._options = None +_MUTATEADGROUPEXTENSIONSETTINGSREQUEST.fields_by_name['operations']._options = None + +_ADGROUPEXTENSIONSETTINGSERVICE = _descriptor.ServiceDescriptor( + name='AdGroupExtensionSettingService', + full_name='google.ads.googleads.v4.services.AdGroupExtensionSettingService', + file=DESCRIPTOR, + index=0, + serialized_options=_b('\312A\030googleads.googleapis.com'), + serialized_start=1210, + serialized_end=1796, + methods=[ + _descriptor.MethodDescriptor( + name='GetAdGroupExtensionSetting', + full_name='google.ads.googleads.v4.services.AdGroupExtensionSettingService.GetAdGroupExtensionSetting', + index=0, + containing_service=None, + input_type=_GETADGROUPEXTENSIONSETTINGREQUEST, + output_type=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_ad__group__extension__setting__pb2._ADGROUPEXTENSIONSETTING, + serialized_options=_b('\202\323\344\223\002<\022:/v4/{resource_name=customers/*/adGroupExtensionSettings/*}\332A\rresource_name'), + ), + _descriptor.MethodDescriptor( + name='MutateAdGroupExtensionSettings', + full_name='google.ads.googleads.v4.services.AdGroupExtensionSettingService.MutateAdGroupExtensionSettings', + index=1, + containing_service=None, + input_type=_MUTATEADGROUPEXTENSIONSETTINGSREQUEST, + output_type=_MUTATEADGROUPEXTENSIONSETTINGSRESPONSE, + serialized_options=_b('\202\323\344\223\002B\"=/v4/customers/{customer_id=*}/adGroupExtensionSettings:mutate:\001*\332A\026customer_id,operations'), + ), +]) +_sym_db.RegisterServiceDescriptor(_ADGROUPEXTENSIONSETTINGSERVICE) + +DESCRIPTOR.services_by_name['AdGroupExtensionSettingService'] = _ADGROUPEXTENSIONSETTINGSERVICE + +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/services/ad_group_extension_setting_service_pb2_grpc.py b/google/ads/google_ads/v4/proto/services/ad_group_extension_setting_service_pb2_grpc.py similarity index 75% rename from google/ads/google_ads/v1/proto/services/ad_group_extension_setting_service_pb2_grpc.py rename to google/ads/google_ads/v4/proto/services/ad_group_extension_setting_service_pb2_grpc.py index 949e38288..f6b340e70 100644 --- a/google/ads/google_ads/v1/proto/services/ad_group_extension_setting_service_pb2_grpc.py +++ b/google/ads/google_ads/v4/proto/services/ad_group_extension_setting_service_pb2_grpc.py @@ -1,8 +1,8 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc -from google.ads.google_ads.v1.proto.resources import ad_group_extension_setting_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_ad__group__extension__setting__pb2 -from google.ads.google_ads.v1.proto.services import ad_group_extension_setting_service_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_ad__group__extension__setting__service__pb2 +from google.ads.google_ads.v4.proto.resources import ad_group_extension_setting_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_ad__group__extension__setting__pb2 +from google.ads.google_ads.v4.proto.services import ad_group_extension_setting_service_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_ad__group__extension__setting__service__pb2 class AdGroupExtensionSettingServiceStub(object): @@ -18,14 +18,14 @@ def __init__(self, channel): channel: A grpc.Channel. """ self.GetAdGroupExtensionSetting = channel.unary_unary( - '/google.ads.googleads.v1.services.AdGroupExtensionSettingService/GetAdGroupExtensionSetting', - request_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_ad__group__extension__setting__service__pb2.GetAdGroupExtensionSettingRequest.SerializeToString, - response_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_ad__group__extension__setting__pb2.AdGroupExtensionSetting.FromString, + '/google.ads.googleads.v4.services.AdGroupExtensionSettingService/GetAdGroupExtensionSetting', + request_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_ad__group__extension__setting__service__pb2.GetAdGroupExtensionSettingRequest.SerializeToString, + response_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_ad__group__extension__setting__pb2.AdGroupExtensionSetting.FromString, ) self.MutateAdGroupExtensionSettings = channel.unary_unary( - '/google.ads.googleads.v1.services.AdGroupExtensionSettingService/MutateAdGroupExtensionSettings', - request_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_ad__group__extension__setting__service__pb2.MutateAdGroupExtensionSettingsRequest.SerializeToString, - response_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_ad__group__extension__setting__service__pb2.MutateAdGroupExtensionSettingsResponse.FromString, + '/google.ads.googleads.v4.services.AdGroupExtensionSettingService/MutateAdGroupExtensionSettings', + request_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_ad__group__extension__setting__service__pb2.MutateAdGroupExtensionSettingsRequest.SerializeToString, + response_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_ad__group__extension__setting__service__pb2.MutateAdGroupExtensionSettingsResponse.FromString, ) @@ -55,15 +55,15 @@ def add_AdGroupExtensionSettingServiceServicer_to_server(servicer, server): rpc_method_handlers = { 'GetAdGroupExtensionSetting': grpc.unary_unary_rpc_method_handler( servicer.GetAdGroupExtensionSetting, - request_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_ad__group__extension__setting__service__pb2.GetAdGroupExtensionSettingRequest.FromString, - response_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_ad__group__extension__setting__pb2.AdGroupExtensionSetting.SerializeToString, + request_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_ad__group__extension__setting__service__pb2.GetAdGroupExtensionSettingRequest.FromString, + response_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_ad__group__extension__setting__pb2.AdGroupExtensionSetting.SerializeToString, ), 'MutateAdGroupExtensionSettings': grpc.unary_unary_rpc_method_handler( servicer.MutateAdGroupExtensionSettings, - request_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_ad__group__extension__setting__service__pb2.MutateAdGroupExtensionSettingsRequest.FromString, - response_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_ad__group__extension__setting__service__pb2.MutateAdGroupExtensionSettingsResponse.SerializeToString, + request_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_ad__group__extension__setting__service__pb2.MutateAdGroupExtensionSettingsRequest.FromString, + response_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_ad__group__extension__setting__service__pb2.MutateAdGroupExtensionSettingsResponse.SerializeToString, ), } generic_handler = grpc.method_handlers_generic_handler( - 'google.ads.googleads.v1.services.AdGroupExtensionSettingService', rpc_method_handlers) + 'google.ads.googleads.v4.services.AdGroupExtensionSettingService', rpc_method_handlers) server.add_generic_rpc_handlers((generic_handler,)) diff --git a/google/ads/google_ads/v4/proto/services/ad_group_feed_service_pb2.py b/google/ads/google_ads/v4/proto/services/ad_group_feed_service_pb2.py new file mode 100644 index 000000000..e6de8e83a --- /dev/null +++ b/google/ads/google_ads/v4/proto/services/ad_group_feed_service_pb2.py @@ -0,0 +1,411 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/services/ad_group_feed_service.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.ads.google_ads.v4.proto.resources import ad_group_feed_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_ad__group__feed__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 +from google.api import client_pb2 as google_dot_api_dot_client__pb2 +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 +from google.protobuf import field_mask_pb2 as google_dot_protobuf_dot_field__mask__pb2 +from google.rpc import status_pb2 as google_dot_rpc_dot_status__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/services/ad_group_feed_service.proto', + package='google.ads.googleads.v4.services', + syntax='proto3', + serialized_options=_b('\n$com.google.ads.googleads.v4.servicesB\027AdGroupFeedServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V4.Services\312\002 Google\\Ads\\GoogleAds\\V4\\Services\352\002$Google::Ads::GoogleAds::V4::Services'), + serialized_pb=_b('\nBgoogle/ads/googleads_v4/proto/services/ad_group_feed_service.proto\x12 google.ads.googleads.v4.services\x1a;google/ads/googleads_v4/proto/resources/ad_group_feed.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/protobuf/field_mask.proto\x1a\x17google/rpc/status.proto\"\\\n\x15GetAdGroupFeedRequest\x12\x43\n\rresource_name\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$googleads.googleapis.com/AdGroupFeed\"\xb6\x01\n\x19MutateAdGroupFeedsRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12O\n\noperations\x18\x02 \x03(\x0b\x32\x36.google.ads.googleads.v4.services.AdGroupFeedOperationB\x03\xe0\x41\x02\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\"\xea\x01\n\x14\x41\x64GroupFeedOperation\x12/\n\x0bupdate_mask\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12@\n\x06\x63reate\x18\x01 \x01(\x0b\x32..google.ads.googleads.v4.resources.AdGroupFeedH\x00\x12@\n\x06update\x18\x02 \x01(\x0b\x32..google.ads.googleads.v4.resources.AdGroupFeedH\x00\x12\x10\n\x06remove\x18\x03 \x01(\tH\x00\x42\x0b\n\toperation\"\x9b\x01\n\x1aMutateAdGroupFeedsResponse\x12\x31\n\x15partial_failure_error\x18\x03 \x01(\x0b\x32\x12.google.rpc.Status\x12J\n\x07results\x18\x02 \x03(\x0b\x32\x39.google.ads.googleads.v4.services.MutateAdGroupFeedResult\"0\n\x17MutateAdGroupFeedResult\x12\x15\n\rresource_name\x18\x01 \x01(\t2\xde\x03\n\x12\x41\x64GroupFeedService\x12\xc1\x01\n\x0eGetAdGroupFeed\x12\x37.google.ads.googleads.v4.services.GetAdGroupFeedRequest\x1a..google.ads.googleads.v4.resources.AdGroupFeed\"F\x82\xd3\xe4\x93\x02\x30\x12./v4/{resource_name=customers/*/adGroupFeeds/*}\xda\x41\rresource_name\x12\xe6\x01\n\x12MutateAdGroupFeeds\x12;.google.ads.googleads.v4.services.MutateAdGroupFeedsRequest\x1a<.google.ads.googleads.v4.services.MutateAdGroupFeedsResponse\"U\x82\xd3\xe4\x93\x02\x36\"1/v4/customers/{customer_id=*}/adGroupFeeds:mutate:\x01*\xda\x41\x16\x63ustomer_id,operations\x1a\x1b\xca\x41\x18googleads.googleapis.comB\xfe\x01\n$com.google.ads.googleads.v4.servicesB\x17\x41\x64GroupFeedServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V4.Services\xca\x02 Google\\Ads\\GoogleAds\\V4\\Services\xea\x02$Google::Ads::GoogleAds::V4::Servicesb\x06proto3') + , + dependencies=[google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_ad__group__feed__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_api_dot_client__pb2.DESCRIPTOR,google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_api_dot_resource__pb2.DESCRIPTOR,google_dot_protobuf_dot_field__mask__pb2.DESCRIPTOR,google_dot_rpc_dot_status__pb2.DESCRIPTOR,]) + + + + +_GETADGROUPFEEDREQUEST = _descriptor.Descriptor( + name='GetAdGroupFeedRequest', + full_name='google.ads.googleads.v4.services.GetAdGroupFeedRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.services.GetAdGroupFeedRequest.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002\372A&\n$googleads.googleapis.com/AdGroupFeed'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=339, + serialized_end=431, +) + + +_MUTATEADGROUPFEEDSREQUEST = _descriptor.Descriptor( + name='MutateAdGroupFeedsRequest', + full_name='google.ads.googleads.v4.services.MutateAdGroupFeedsRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='customer_id', full_name='google.ads.googleads.v4.services.MutateAdGroupFeedsRequest.customer_id', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='operations', full_name='google.ads.googleads.v4.services.MutateAdGroupFeedsRequest.operations', index=1, + number=2, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='partial_failure', full_name='google.ads.googleads.v4.services.MutateAdGroupFeedsRequest.partial_failure', index=2, + number=3, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='validate_only', full_name='google.ads.googleads.v4.services.MutateAdGroupFeedsRequest.validate_only', index=3, + number=4, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=434, + serialized_end=616, +) + + +_ADGROUPFEEDOPERATION = _descriptor.Descriptor( + name='AdGroupFeedOperation', + full_name='google.ads.googleads.v4.services.AdGroupFeedOperation', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='update_mask', full_name='google.ads.googleads.v4.services.AdGroupFeedOperation.update_mask', index=0, + number=4, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='create', full_name='google.ads.googleads.v4.services.AdGroupFeedOperation.create', index=1, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='update', full_name='google.ads.googleads.v4.services.AdGroupFeedOperation.update', index=2, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='remove', full_name='google.ads.googleads.v4.services.AdGroupFeedOperation.remove', index=3, + number=3, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name='operation', full_name='google.ads.googleads.v4.services.AdGroupFeedOperation.operation', + index=0, containing_type=None, fields=[]), + ], + serialized_start=619, + serialized_end=853, +) + + +_MUTATEADGROUPFEEDSRESPONSE = _descriptor.Descriptor( + name='MutateAdGroupFeedsResponse', + full_name='google.ads.googleads.v4.services.MutateAdGroupFeedsResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='partial_failure_error', full_name='google.ads.googleads.v4.services.MutateAdGroupFeedsResponse.partial_failure_error', index=0, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='results', full_name='google.ads.googleads.v4.services.MutateAdGroupFeedsResponse.results', index=1, + number=2, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=856, + serialized_end=1011, +) + + +_MUTATEADGROUPFEEDRESULT = _descriptor.Descriptor( + name='MutateAdGroupFeedResult', + full_name='google.ads.googleads.v4.services.MutateAdGroupFeedResult', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.services.MutateAdGroupFeedResult.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1013, + serialized_end=1061, +) + +_MUTATEADGROUPFEEDSREQUEST.fields_by_name['operations'].message_type = _ADGROUPFEEDOPERATION +_ADGROUPFEEDOPERATION.fields_by_name['update_mask'].message_type = google_dot_protobuf_dot_field__mask__pb2._FIELDMASK +_ADGROUPFEEDOPERATION.fields_by_name['create'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_ad__group__feed__pb2._ADGROUPFEED +_ADGROUPFEEDOPERATION.fields_by_name['update'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_ad__group__feed__pb2._ADGROUPFEED +_ADGROUPFEEDOPERATION.oneofs_by_name['operation'].fields.append( + _ADGROUPFEEDOPERATION.fields_by_name['create']) +_ADGROUPFEEDOPERATION.fields_by_name['create'].containing_oneof = _ADGROUPFEEDOPERATION.oneofs_by_name['operation'] +_ADGROUPFEEDOPERATION.oneofs_by_name['operation'].fields.append( + _ADGROUPFEEDOPERATION.fields_by_name['update']) +_ADGROUPFEEDOPERATION.fields_by_name['update'].containing_oneof = _ADGROUPFEEDOPERATION.oneofs_by_name['operation'] +_ADGROUPFEEDOPERATION.oneofs_by_name['operation'].fields.append( + _ADGROUPFEEDOPERATION.fields_by_name['remove']) +_ADGROUPFEEDOPERATION.fields_by_name['remove'].containing_oneof = _ADGROUPFEEDOPERATION.oneofs_by_name['operation'] +_MUTATEADGROUPFEEDSRESPONSE.fields_by_name['partial_failure_error'].message_type = google_dot_rpc_dot_status__pb2._STATUS +_MUTATEADGROUPFEEDSRESPONSE.fields_by_name['results'].message_type = _MUTATEADGROUPFEEDRESULT +DESCRIPTOR.message_types_by_name['GetAdGroupFeedRequest'] = _GETADGROUPFEEDREQUEST +DESCRIPTOR.message_types_by_name['MutateAdGroupFeedsRequest'] = _MUTATEADGROUPFEEDSREQUEST +DESCRIPTOR.message_types_by_name['AdGroupFeedOperation'] = _ADGROUPFEEDOPERATION +DESCRIPTOR.message_types_by_name['MutateAdGroupFeedsResponse'] = _MUTATEADGROUPFEEDSRESPONSE +DESCRIPTOR.message_types_by_name['MutateAdGroupFeedResult'] = _MUTATEADGROUPFEEDRESULT +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +GetAdGroupFeedRequest = _reflection.GeneratedProtocolMessageType('GetAdGroupFeedRequest', (_message.Message,), dict( + DESCRIPTOR = _GETADGROUPFEEDREQUEST, + __module__ = 'google.ads.googleads_v4.proto.services.ad_group_feed_service_pb2' + , + __doc__ = """Request message for + [AdGroupFeedService.GetAdGroupFeed][google.ads.googleads.v4.services.AdGroupFeedService.GetAdGroupFeed]. + + + Attributes: + resource_name: + Required. The resource name of the ad group feed to fetch. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.GetAdGroupFeedRequest) + )) +_sym_db.RegisterMessage(GetAdGroupFeedRequest) + +MutateAdGroupFeedsRequest = _reflection.GeneratedProtocolMessageType('MutateAdGroupFeedsRequest', (_message.Message,), dict( + DESCRIPTOR = _MUTATEADGROUPFEEDSREQUEST, + __module__ = 'google.ads.googleads_v4.proto.services.ad_group_feed_service_pb2' + , + __doc__ = """Request message for + [AdGroupFeedService.MutateAdGroupFeeds][google.ads.googleads.v4.services.AdGroupFeedService.MutateAdGroupFeeds]. + + + Attributes: + customer_id: + Required. The ID of the customer whose ad group feeds are + being modified. + operations: + Required. The list of operations to perform on individual ad + group feeds. + partial_failure: + If true, successful operations will be carried out and invalid + operations will return errors. If false, all operations will + be carried out in one transaction if and only if they are all + valid. Default is false. + validate_only: + If true, the request is validated but not executed. Only + errors are returned, not results. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.MutateAdGroupFeedsRequest) + )) +_sym_db.RegisterMessage(MutateAdGroupFeedsRequest) + +AdGroupFeedOperation = _reflection.GeneratedProtocolMessageType('AdGroupFeedOperation', (_message.Message,), dict( + DESCRIPTOR = _ADGROUPFEEDOPERATION, + __module__ = 'google.ads.googleads_v4.proto.services.ad_group_feed_service_pb2' + , + __doc__ = """A single operation (create, update, remove) on an ad group feed. + + + Attributes: + update_mask: + FieldMask that determines which resource fields are modified + in an update. + operation: + The mutate operation. + create: + Create operation: No resource name is expected for the new ad + group feed. + update: + Update operation: The ad group feed is expected to have a + valid resource name. + remove: + Remove operation: A resource name for the removed ad group + feed is expected, in this format: ``customers/{customer_id}/a + dGroupFeeds/{ad_group_id}~{feed_id}`` + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.AdGroupFeedOperation) + )) +_sym_db.RegisterMessage(AdGroupFeedOperation) + +MutateAdGroupFeedsResponse = _reflection.GeneratedProtocolMessageType('MutateAdGroupFeedsResponse', (_message.Message,), dict( + DESCRIPTOR = _MUTATEADGROUPFEEDSRESPONSE, + __module__ = 'google.ads.googleads_v4.proto.services.ad_group_feed_service_pb2' + , + __doc__ = """Response message for an ad group feed mutate. + + + Attributes: + partial_failure_error: + Errors that pertain to operation failures in the partial + failure mode. Returned only when partial\_failure = true and + all errors occur inside the operations. If any errors occur + outside the operations (e.g. auth errors), we return an RPC + level error. + results: + All results for the mutate. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.MutateAdGroupFeedsResponse) + )) +_sym_db.RegisterMessage(MutateAdGroupFeedsResponse) + +MutateAdGroupFeedResult = _reflection.GeneratedProtocolMessageType('MutateAdGroupFeedResult', (_message.Message,), dict( + DESCRIPTOR = _MUTATEADGROUPFEEDRESULT, + __module__ = 'google.ads.googleads_v4.proto.services.ad_group_feed_service_pb2' + , + __doc__ = """The result for the ad group feed mutate. + + + Attributes: + resource_name: + Returned for successful operations. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.MutateAdGroupFeedResult) + )) +_sym_db.RegisterMessage(MutateAdGroupFeedResult) + + +DESCRIPTOR._options = None +_GETADGROUPFEEDREQUEST.fields_by_name['resource_name']._options = None +_MUTATEADGROUPFEEDSREQUEST.fields_by_name['customer_id']._options = None +_MUTATEADGROUPFEEDSREQUEST.fields_by_name['operations']._options = None + +_ADGROUPFEEDSERVICE = _descriptor.ServiceDescriptor( + name='AdGroupFeedService', + full_name='google.ads.googleads.v4.services.AdGroupFeedService', + file=DESCRIPTOR, + index=0, + serialized_options=_b('\312A\030googleads.googleapis.com'), + serialized_start=1064, + serialized_end=1542, + methods=[ + _descriptor.MethodDescriptor( + name='GetAdGroupFeed', + full_name='google.ads.googleads.v4.services.AdGroupFeedService.GetAdGroupFeed', + index=0, + containing_service=None, + input_type=_GETADGROUPFEEDREQUEST, + output_type=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_ad__group__feed__pb2._ADGROUPFEED, + serialized_options=_b('\202\323\344\223\0020\022./v4/{resource_name=customers/*/adGroupFeeds/*}\332A\rresource_name'), + ), + _descriptor.MethodDescriptor( + name='MutateAdGroupFeeds', + full_name='google.ads.googleads.v4.services.AdGroupFeedService.MutateAdGroupFeeds', + index=1, + containing_service=None, + input_type=_MUTATEADGROUPFEEDSREQUEST, + output_type=_MUTATEADGROUPFEEDSRESPONSE, + serialized_options=_b('\202\323\344\223\0026\"1/v4/customers/{customer_id=*}/adGroupFeeds:mutate:\001*\332A\026customer_id,operations'), + ), +]) +_sym_db.RegisterServiceDescriptor(_ADGROUPFEEDSERVICE) + +DESCRIPTOR.services_by_name['AdGroupFeedService'] = _ADGROUPFEEDSERVICE + +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v4/proto/services/ad_group_feed_service_pb2_grpc.py b/google/ads/google_ads/v4/proto/services/ad_group_feed_service_pb2_grpc.py new file mode 100644 index 000000000..d36d1c30d --- /dev/null +++ b/google/ads/google_ads/v4/proto/services/ad_group_feed_service_pb2_grpc.py @@ -0,0 +1,69 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +import grpc + +from google.ads.google_ads.v4.proto.resources import ad_group_feed_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_ad__group__feed__pb2 +from google.ads.google_ads.v4.proto.services import ad_group_feed_service_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_ad__group__feed__service__pb2 + + +class AdGroupFeedServiceStub(object): + """Proto file describing the AdGroupFeed service. + + Service to manage ad group feeds. + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.GetAdGroupFeed = channel.unary_unary( + '/google.ads.googleads.v4.services.AdGroupFeedService/GetAdGroupFeed', + request_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_ad__group__feed__service__pb2.GetAdGroupFeedRequest.SerializeToString, + response_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_ad__group__feed__pb2.AdGroupFeed.FromString, + ) + self.MutateAdGroupFeeds = channel.unary_unary( + '/google.ads.googleads.v4.services.AdGroupFeedService/MutateAdGroupFeeds', + request_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_ad__group__feed__service__pb2.MutateAdGroupFeedsRequest.SerializeToString, + response_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_ad__group__feed__service__pb2.MutateAdGroupFeedsResponse.FromString, + ) + + +class AdGroupFeedServiceServicer(object): + """Proto file describing the AdGroupFeed service. + + Service to manage ad group feeds. + """ + + def GetAdGroupFeed(self, request, context): + """Returns the requested ad group feed in full detail. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def MutateAdGroupFeeds(self, request, context): + """Creates, updates, or removes ad group feeds. Operation statuses are + returned. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_AdGroupFeedServiceServicer_to_server(servicer, server): + rpc_method_handlers = { + 'GetAdGroupFeed': grpc.unary_unary_rpc_method_handler( + servicer.GetAdGroupFeed, + request_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_ad__group__feed__service__pb2.GetAdGroupFeedRequest.FromString, + response_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_ad__group__feed__pb2.AdGroupFeed.SerializeToString, + ), + 'MutateAdGroupFeeds': grpc.unary_unary_rpc_method_handler( + servicer.MutateAdGroupFeeds, + request_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_ad__group__feed__service__pb2.MutateAdGroupFeedsRequest.FromString, + response_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_ad__group__feed__service__pb2.MutateAdGroupFeedsResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'google.ads.googleads.v4.services.AdGroupFeedService', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) diff --git a/google/ads/google_ads/v4/proto/services/ad_group_label_service_pb2.py b/google/ads/google_ads/v4/proto/services/ad_group_label_service_pb2.py new file mode 100644 index 000000000..6fcbe8e52 --- /dev/null +++ b/google/ads/google_ads/v4/proto/services/ad_group_label_service_pb2.py @@ -0,0 +1,385 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/services/ad_group_label_service.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.ads.google_ads.v4.proto.resources import ad_group_label_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_ad__group__label__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 +from google.api import client_pb2 as google_dot_api_dot_client__pb2 +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 +from google.rpc import status_pb2 as google_dot_rpc_dot_status__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/services/ad_group_label_service.proto', + package='google.ads.googleads.v4.services', + syntax='proto3', + serialized_options=_b('\n$com.google.ads.googleads.v4.servicesB\030AdGroupLabelServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V4.Services\312\002 Google\\Ads\\GoogleAds\\V4\\Services\352\002$Google::Ads::GoogleAds::V4::Services'), + serialized_pb=_b('\nCgoogle/ads/googleads_v4/proto/services/ad_group_label_service.proto\x12 google.ads.googleads.v4.services\x1agoogle/ads/googleads_v4/proto/resources/ad_schedule_view.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"b\n\x18GetAdScheduleViewRequest\x12\x46\n\rresource_name\x18\x01 \x01(\tB/\xe0\x41\x02\xfa\x41)\n\'googleads.googleapis.com/AdScheduleView2\x84\x02\n\x15\x41\x64ScheduleViewService\x12\xcd\x01\n\x11GetAdScheduleView\x12:.google.ads.googleads.v4.services.GetAdScheduleViewRequest\x1a\x31.google.ads.googleads.v4.resources.AdScheduleView\"I\x82\xd3\xe4\x93\x02\x33\x12\x31/v4/{resource_name=customers/*/adScheduleViews/*}\xda\x41\rresource_name\x1a\x1b\xca\x41\x18googleads.googleapis.comB\x81\x02\n$com.google.ads.googleads.v4.servicesB\x1a\x41\x64ScheduleViewServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V4.Services\xca\x02 Google\\Ads\\GoogleAds\\V4\\Services\xea\x02$Google::Ads::GoogleAds::V4::Servicesb\x06proto3') + , + dependencies=[google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_ad__schedule__view__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_api_dot_client__pb2.DESCRIPTOR,google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_api_dot_resource__pb2.DESCRIPTOR,]) + + + + +_GETADSCHEDULEVIEWREQUEST = _descriptor.Descriptor( + name='GetAdScheduleViewRequest', + full_name='google.ads.googleads.v4.services.GetAdScheduleViewRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.services.GetAdScheduleViewRequest.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002\372A)\n\'googleads.googleapis.com/AdScheduleView'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=286, + serialized_end=384, +) + +DESCRIPTOR.message_types_by_name['GetAdScheduleViewRequest'] = _GETADSCHEDULEVIEWREQUEST +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +GetAdScheduleViewRequest = _reflection.GeneratedProtocolMessageType('GetAdScheduleViewRequest', (_message.Message,), dict( + DESCRIPTOR = _GETADSCHEDULEVIEWREQUEST, + __module__ = 'google.ads.googleads_v4.proto.services.ad_schedule_view_service_pb2' + , + __doc__ = """Request message for + [AdScheduleViewService.GetAdScheduleView][google.ads.googleads.v4.services.AdScheduleViewService.GetAdScheduleView]. + + + Attributes: + resource_name: + Required. The resource name of the ad schedule view to fetch. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.GetAdScheduleViewRequest) + )) +_sym_db.RegisterMessage(GetAdScheduleViewRequest) + + +DESCRIPTOR._options = None +_GETADSCHEDULEVIEWREQUEST.fields_by_name['resource_name']._options = None + +_ADSCHEDULEVIEWSERVICE = _descriptor.ServiceDescriptor( + name='AdScheduleViewService', + full_name='google.ads.googleads.v4.services.AdScheduleViewService', + file=DESCRIPTOR, + index=0, + serialized_options=_b('\312A\030googleads.googleapis.com'), + serialized_start=387, + serialized_end=647, + methods=[ + _descriptor.MethodDescriptor( + name='GetAdScheduleView', + full_name='google.ads.googleads.v4.services.AdScheduleViewService.GetAdScheduleView', + index=0, + containing_service=None, + input_type=_GETADSCHEDULEVIEWREQUEST, + output_type=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_ad__schedule__view__pb2._ADSCHEDULEVIEW, + serialized_options=_b('\202\323\344\223\0023\0221/v4/{resource_name=customers/*/adScheduleViews/*}\332A\rresource_name'), + ), +]) +_sym_db.RegisterServiceDescriptor(_ADSCHEDULEVIEWSERVICE) + +DESCRIPTOR.services_by_name['AdScheduleViewService'] = _ADSCHEDULEVIEWSERVICE + +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v4/proto/services/ad_schedule_view_service_pb2_grpc.py b/google/ads/google_ads/v4/proto/services/ad_schedule_view_service_pb2_grpc.py new file mode 100644 index 000000000..ae9bcec6c --- /dev/null +++ b/google/ads/google_ads/v4/proto/services/ad_schedule_view_service_pb2_grpc.py @@ -0,0 +1,51 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +import grpc + +from google.ads.google_ads.v4.proto.resources import ad_schedule_view_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_ad__schedule__view__pb2 +from google.ads.google_ads.v4.proto.services import ad_schedule_view_service_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_ad__schedule__view__service__pb2 + + +class AdScheduleViewServiceStub(object): + """Proto file describing the AdSchedule View service. + + Service to fetch ad schedule views. + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.GetAdScheduleView = channel.unary_unary( + '/google.ads.googleads.v4.services.AdScheduleViewService/GetAdScheduleView', + request_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_ad__schedule__view__service__pb2.GetAdScheduleViewRequest.SerializeToString, + response_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_ad__schedule__view__pb2.AdScheduleView.FromString, + ) + + +class AdScheduleViewServiceServicer(object): + """Proto file describing the AdSchedule View service. + + Service to fetch ad schedule views. + """ + + def GetAdScheduleView(self, request, context): + """Returns the requested ad schedule view in full detail. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_AdScheduleViewServiceServicer_to_server(servicer, server): + rpc_method_handlers = { + 'GetAdScheduleView': grpc.unary_unary_rpc_method_handler( + servicer.GetAdScheduleView, + request_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_ad__schedule__view__service__pb2.GetAdScheduleViewRequest.FromString, + response_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_ad__schedule__view__pb2.AdScheduleView.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'google.ads.googleads.v4.services.AdScheduleViewService', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) diff --git a/google/ads/google_ads/v4/proto/services/ad_service_pb2.py b/google/ads/google_ads/v4/proto/services/ad_service_pb2.py new file mode 100644 index 000000000..00168a897 --- /dev/null +++ b/google/ads/google_ads/v4/proto/services/ad_service_pb2.py @@ -0,0 +1,344 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/services/ad_service.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.ads.google_ads.v4.proto.resources import ad_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_ad__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 +from google.api import client_pb2 as google_dot_api_dot_client__pb2 +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 +from google.protobuf import field_mask_pb2 as google_dot_protobuf_dot_field__mask__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/services/ad_service.proto', + package='google.ads.googleads.v4.services', + syntax='proto3', + serialized_options=_b('\n$com.google.ads.googleads.v4.servicesB\016AdServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V4.Services\312\002 Google\\Ads\\GoogleAds\\V4\\Services\352\002$Google::Ads::GoogleAds::V4::Services'), + serialized_pb=_b('\n7google/ads/googleads_v4/proto/services/ad_service.proto\x12 google.ads.googleads.v4.services\x1a\x30google/ads/googleads_v4/proto/resources/ad.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/protobuf/field_mask.proto\"J\n\x0cGetAdRequest\x12:\n\rresource_name\x18\x01 \x01(\tB#\xe0\x41\x02\xfa\x41\x1d\n\x1bgoogleads.googleapis.com/Ad\"t\n\x10MutateAdsRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x46\n\noperations\x18\x02 \x03(\x0b\x32-.google.ads.googleads.v4.services.AdOperationB\x03\xe0\x41\x02\"\x84\x01\n\x0b\x41\x64Operation\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12\x37\n\x06update\x18\x01 \x01(\x0b\x32%.google.ads.googleads.v4.resources.AdH\x00\x42\x0b\n\toperation\"V\n\x11MutateAdsResponse\x12\x41\n\x07results\x18\x02 \x03(\x0b\x32\x30.google.ads.googleads.v4.services.MutateAdResult\"\'\n\x0eMutateAdResult\x12\x15\n\rresource_name\x18\x01 \x01(\t2\x8d\x03\n\tAdService\x12\x9d\x01\n\x05GetAd\x12..google.ads.googleads.v4.services.GetAdRequest\x1a%.google.ads.googleads.v4.resources.Ad\"=\x82\xd3\xe4\x93\x02\'\x12%/v4/{resource_name=customers/*/ads/*}\xda\x41\rresource_name\x12\xc2\x01\n\tMutateAds\x12\x32.google.ads.googleads.v4.services.MutateAdsRequest\x1a\x33.google.ads.googleads.v4.services.MutateAdsResponse\"L\x82\xd3\xe4\x93\x02-\"(/v4/customers/{customer_id=*}/ads:mutate:\x01*\xda\x41\x16\x63ustomer_id,operations\x1a\x1b\xca\x41\x18googleads.googleapis.comB\xf5\x01\n$com.google.ads.googleads.v4.servicesB\x0e\x41\x64ServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V4.Services\xca\x02 Google\\Ads\\GoogleAds\\V4\\Services\xea\x02$Google::Ads::GoogleAds::V4::Servicesb\x06proto3') + , + dependencies=[google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_ad__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_api_dot_client__pb2.DESCRIPTOR,google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_api_dot_resource__pb2.DESCRIPTOR,google_dot_protobuf_dot_field__mask__pb2.DESCRIPTOR,]) + + + + +_GETADREQUEST = _descriptor.Descriptor( + name='GetAdRequest', + full_name='google.ads.googleads.v4.services.GetAdRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.services.GetAdRequest.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002\372A\035\n\033googleads.googleapis.com/Ad'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=292, + serialized_end=366, +) + + +_MUTATEADSREQUEST = _descriptor.Descriptor( + name='MutateAdsRequest', + full_name='google.ads.googleads.v4.services.MutateAdsRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='customer_id', full_name='google.ads.googleads.v4.services.MutateAdsRequest.customer_id', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='operations', full_name='google.ads.googleads.v4.services.MutateAdsRequest.operations', index=1, + number=2, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=368, + serialized_end=484, +) + + +_ADOPERATION = _descriptor.Descriptor( + name='AdOperation', + full_name='google.ads.googleads.v4.services.AdOperation', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='update_mask', full_name='google.ads.googleads.v4.services.AdOperation.update_mask', index=0, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='update', full_name='google.ads.googleads.v4.services.AdOperation.update', index=1, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name='operation', full_name='google.ads.googleads.v4.services.AdOperation.operation', + index=0, containing_type=None, fields=[]), + ], + serialized_start=487, + serialized_end=619, +) + + +_MUTATEADSRESPONSE = _descriptor.Descriptor( + name='MutateAdsResponse', + full_name='google.ads.googleads.v4.services.MutateAdsResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='results', full_name='google.ads.googleads.v4.services.MutateAdsResponse.results', index=0, + number=2, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=621, + serialized_end=707, +) + + +_MUTATEADRESULT = _descriptor.Descriptor( + name='MutateAdResult', + full_name='google.ads.googleads.v4.services.MutateAdResult', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.services.MutateAdResult.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=709, + serialized_end=748, +) + +_MUTATEADSREQUEST.fields_by_name['operations'].message_type = _ADOPERATION +_ADOPERATION.fields_by_name['update_mask'].message_type = google_dot_protobuf_dot_field__mask__pb2._FIELDMASK +_ADOPERATION.fields_by_name['update'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_ad__pb2._AD +_ADOPERATION.oneofs_by_name['operation'].fields.append( + _ADOPERATION.fields_by_name['update']) +_ADOPERATION.fields_by_name['update'].containing_oneof = _ADOPERATION.oneofs_by_name['operation'] +_MUTATEADSRESPONSE.fields_by_name['results'].message_type = _MUTATEADRESULT +DESCRIPTOR.message_types_by_name['GetAdRequest'] = _GETADREQUEST +DESCRIPTOR.message_types_by_name['MutateAdsRequest'] = _MUTATEADSREQUEST +DESCRIPTOR.message_types_by_name['AdOperation'] = _ADOPERATION +DESCRIPTOR.message_types_by_name['MutateAdsResponse'] = _MUTATEADSRESPONSE +DESCRIPTOR.message_types_by_name['MutateAdResult'] = _MUTATEADRESULT +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +GetAdRequest = _reflection.GeneratedProtocolMessageType('GetAdRequest', (_message.Message,), dict( + DESCRIPTOR = _GETADREQUEST, + __module__ = 'google.ads.googleads_v4.proto.services.ad_service_pb2' + , + __doc__ = """Request message for + [AdService.GetAd][google.ads.googleads.v4.services.AdService.GetAd]. + + + Attributes: + resource_name: + Required. The resource name of the ad to fetch. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.GetAdRequest) + )) +_sym_db.RegisterMessage(GetAdRequest) + +MutateAdsRequest = _reflection.GeneratedProtocolMessageType('MutateAdsRequest', (_message.Message,), dict( + DESCRIPTOR = _MUTATEADSREQUEST, + __module__ = 'google.ads.googleads_v4.proto.services.ad_service_pb2' + , + __doc__ = """Request message for + [AdService.MutateAds][google.ads.googleads.v4.services.AdService.MutateAds]. + + + Attributes: + customer_id: + Required. The ID of the customer whose ads are being modified. + operations: + Required. The list of operations to perform on individual ads. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.MutateAdsRequest) + )) +_sym_db.RegisterMessage(MutateAdsRequest) + +AdOperation = _reflection.GeneratedProtocolMessageType('AdOperation', (_message.Message,), dict( + DESCRIPTOR = _ADOPERATION, + __module__ = 'google.ads.googleads_v4.proto.services.ad_service_pb2' + , + __doc__ = """A single update operation on an ad. + + + Attributes: + update_mask: + FieldMask that determines which resource fields are modified + in an update. + operation: + The mutate operation. + update: + Update operation: The ad is expected to have a valid resource + name in this format: ``customers/{customer_id}/ads/{ad_id}`` + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.AdOperation) + )) +_sym_db.RegisterMessage(AdOperation) + +MutateAdsResponse = _reflection.GeneratedProtocolMessageType('MutateAdsResponse', (_message.Message,), dict( + DESCRIPTOR = _MUTATEADSRESPONSE, + __module__ = 'google.ads.googleads_v4.proto.services.ad_service_pb2' + , + __doc__ = """Response message for an ad mutate. + + + Attributes: + results: + All results for the mutate. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.MutateAdsResponse) + )) +_sym_db.RegisterMessage(MutateAdsResponse) + +MutateAdResult = _reflection.GeneratedProtocolMessageType('MutateAdResult', (_message.Message,), dict( + DESCRIPTOR = _MUTATEADRESULT, + __module__ = 'google.ads.googleads_v4.proto.services.ad_service_pb2' + , + __doc__ = """The result for the ad mutate. + + + Attributes: + resource_name: + The resource name returned for successful operations. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.MutateAdResult) + )) +_sym_db.RegisterMessage(MutateAdResult) + + +DESCRIPTOR._options = None +_GETADREQUEST.fields_by_name['resource_name']._options = None +_MUTATEADSREQUEST.fields_by_name['customer_id']._options = None +_MUTATEADSREQUEST.fields_by_name['operations']._options = None + +_ADSERVICE = _descriptor.ServiceDescriptor( + name='AdService', + full_name='google.ads.googleads.v4.services.AdService', + file=DESCRIPTOR, + index=0, + serialized_options=_b('\312A\030googleads.googleapis.com'), + serialized_start=751, + serialized_end=1148, + methods=[ + _descriptor.MethodDescriptor( + name='GetAd', + full_name='google.ads.googleads.v4.services.AdService.GetAd', + index=0, + containing_service=None, + input_type=_GETADREQUEST, + output_type=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_ad__pb2._AD, + serialized_options=_b('\202\323\344\223\002\'\022%/v4/{resource_name=customers/*/ads/*}\332A\rresource_name'), + ), + _descriptor.MethodDescriptor( + name='MutateAds', + full_name='google.ads.googleads.v4.services.AdService.MutateAds', + index=1, + containing_service=None, + input_type=_MUTATEADSREQUEST, + output_type=_MUTATEADSRESPONSE, + serialized_options=_b('\202\323\344\223\002-\"(/v4/customers/{customer_id=*}/ads:mutate:\001*\332A\026customer_id,operations'), + ), +]) +_sym_db.RegisterServiceDescriptor(_ADSERVICE) + +DESCRIPTOR.services_by_name['AdService'] = _ADSERVICE + +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v4/proto/services/ad_service_pb2_grpc.py b/google/ads/google_ads/v4/proto/services/ad_service_pb2_grpc.py new file mode 100644 index 000000000..301d6a6ac --- /dev/null +++ b/google/ads/google_ads/v4/proto/services/ad_service_pb2_grpc.py @@ -0,0 +1,69 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +import grpc + +from google.ads.google_ads.v4.proto.resources import ad_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_ad__pb2 +from google.ads.google_ads.v4.proto.services import ad_service_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_ad__service__pb2 + + +class AdServiceStub(object): + """Proto file describing the Ad service. + + Service to manage ads. + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.GetAd = channel.unary_unary( + '/google.ads.googleads.v4.services.AdService/GetAd', + request_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_ad__service__pb2.GetAdRequest.SerializeToString, + response_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_ad__pb2.Ad.FromString, + ) + self.MutateAds = channel.unary_unary( + '/google.ads.googleads.v4.services.AdService/MutateAds', + request_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_ad__service__pb2.MutateAdsRequest.SerializeToString, + response_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_ad__service__pb2.MutateAdsResponse.FromString, + ) + + +class AdServiceServicer(object): + """Proto file describing the Ad service. + + Service to manage ads. + """ + + def GetAd(self, request, context): + """Returns the requested ad in full detail. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def MutateAds(self, request, context): + """Updates ads. Operation statuses are returned. Updating ads is not supported + for TextAd, ExpandedDynamicSearchAd, GmailAd and ImageAd. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_AdServiceServicer_to_server(servicer, server): + rpc_method_handlers = { + 'GetAd': grpc.unary_unary_rpc_method_handler( + servicer.GetAd, + request_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_ad__service__pb2.GetAdRequest.FromString, + response_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_ad__pb2.Ad.SerializeToString, + ), + 'MutateAds': grpc.unary_unary_rpc_method_handler( + servicer.MutateAds, + request_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_ad__service__pb2.MutateAdsRequest.FromString, + response_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_ad__service__pb2.MutateAdsResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'google.ads.googleads.v4.services.AdService', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) diff --git a/google/ads/google_ads/v4/proto/services/age_range_view_service_pb2.py b/google/ads/google_ads/v4/proto/services/age_range_view_service_pb2.py new file mode 100644 index 000000000..e5720df63 --- /dev/null +++ b/google/ads/google_ads/v4/proto/services/age_range_view_service_pb2.py @@ -0,0 +1,111 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/services/age_range_view_service.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.ads.google_ads.v4.proto.resources import age_range_view_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_age__range__view__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 +from google.api import client_pb2 as google_dot_api_dot_client__pb2 +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/services/age_range_view_service.proto', + package='google.ads.googleads.v4.services', + syntax='proto3', + serialized_options=_b('\n$com.google.ads.googleads.v4.servicesB\030AgeRangeViewServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V4.Services\312\002 Google\\Ads\\GoogleAds\\V4\\Services\352\002$Google::Ads::GoogleAds::V4::Services'), + serialized_pb=_b('\nCgoogle/ads/googleads_v4/proto/services/age_range_view_service.proto\x12 google.ads.googleads.v4.services\x1agoogle/ads/googleads_v4/proto/services/batch_job_service.proto\x12 google.ads.googleads.v4.services\x1a\x37google/ads/googleads_v4/proto/resources/batch_job.proto\x1a?google/ads/googleads_v4/proto/services/google_ads_service.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a#google/longrunning/operations.proto\x1a\x17google/rpc/status.proto\"~\n\x15MutateBatchJobRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12K\n\toperation\x18\x02 \x01(\x0b\x32\x33.google.ads.googleads.v4.services.BatchJobOperationB\x03\xe0\x41\x02\"q\n\x11\x42\x61tchJobOperation\x12=\n\x06\x63reate\x18\x01 \x01(\x0b\x32+.google.ads.googleads.v4.resources.BatchJobH\x00\x12\x10\n\x06remove\x18\x03 \x01(\tH\x00\x42\x0b\n\toperation\"`\n\x16MutateBatchJobResponse\x12\x46\n\x06result\x18\x01 \x01(\x0b\x32\x36.google.ads.googleads.v4.services.MutateBatchJobResult\"-\n\x14MutateBatchJobResult\x12\x15\n\rresource_name\x18\x01 \x01(\t\"V\n\x12GetBatchJobRequest\x12@\n\rresource_name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!googleads.googleapis.com/BatchJob\"V\n\x12RunBatchJobRequest\x12@\n\rresource_name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!googleads.googleapis.com/BatchJob\"\xcb\x01\n\x1c\x41\x64\x64\x42\x61tchJobOperationsRequest\x12@\n\rresource_name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!googleads.googleapis.com/BatchJob\x12\x16\n\x0esequence_token\x18\x02 \x01(\t\x12Q\n\x11mutate_operations\x18\x03 \x03(\x0b\x32\x31.google.ads.googleads.v4.services.MutateOperationB\x03\xe0\x41\x02\"V\n\x1d\x41\x64\x64\x42\x61tchJobOperationsResponse\x12\x18\n\x10total_operations\x18\x01 \x01(\x03\x12\x1b\n\x13next_sequence_token\x18\x02 \x01(\t\"\x85\x01\n\x1aListBatchJobResultsRequest\x12@\n\rresource_name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!googleads.googleapis.com/BatchJob\x12\x12\n\npage_token\x18\x02 \x01(\t\x12\x11\n\tpage_size\x18\x03 \x01(\x05\"y\n\x1bListBatchJobResultsResponse\x12\x41\n\x07results\x18\x01 \x03(\x0b\x32\x30.google.ads.googleads.v4.services.BatchJobResult\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xab\x01\n\x0e\x42\x61tchJobResult\x12\x17\n\x0foperation_index\x18\x01 \x01(\x03\x12\\\n\x19mutate_operation_response\x18\x02 \x01(\x0b\x32\x39.google.ads.googleads.v4.services.MutateOperationResponse\x12\"\n\x06status\x18\x03 \x01(\x0b\x32\x12.google.rpc.Status2\xe3\t\n\x0f\x42\x61tchJobService\x12\xd6\x01\n\x0eMutateBatchJob\x12\x37.google.ads.googleads.v4.services.MutateBatchJobRequest\x1a\x38.google.ads.googleads.v4.services.MutateBatchJobResponse\"Q\x82\xd3\xe4\x93\x02\x33\"./v4/customers/{customer_id=*}/batchJobs:mutate:\x01*\xda\x41\x15\x63ustomer_id,operation\x12\xb5\x01\n\x0bGetBatchJob\x12\x34.google.ads.googleads.v4.services.GetBatchJobRequest\x1a+.google.ads.googleads.v4.resources.BatchJob\"C\x82\xd3\xe4\x93\x02-\x12+/v4/{resource_name=customers/*/batchJobs/*}\xda\x41\rresource_name\x12\xe3\x01\n\x13ListBatchJobResults\x12<.google.ads.googleads.v4.services.ListBatchJobResultsRequest\x1a=.google.ads.googleads.v4.services.ListBatchJobResultsResponse\"O\x82\xd3\xe4\x93\x02\x39\x12\x37/v4/{resource_name=customers/*/batchJobs/*}:listResults\xda\x41\rresource_name\x12\x86\x02\n\x0bRunBatchJob\x12\x34.google.ads.googleads.v4.services.RunBatchJobRequest\x1a\x1d.google.longrunning.Operation\"\xa1\x01\x82\xd3\xe4\x93\x02\x34\"//v4/{resource_name=customers/*/batchJobs/*}:run:\x01*\xda\x41\rresource_name\xca\x41T\n\x15google.protobuf.Empty\x12;google.ads.googleads.v4.resources.BatchJob.BatchJobMetadata\x12\xb2\x02\n\x15\x41\x64\x64\x42\x61tchJobOperations\x12>.google.ads.googleads.v4.services.AddBatchJobOperationsRequest\x1a?.google.ads.googleads.v4.services.AddBatchJobOperationsResponse\"\x97\x01\x82\xd3\xe4\x93\x02>\"9/v4/{resource_name=customers/*/batchJobs/*}:addOperations:\x01*\xda\x41.resource_name,sequence_token,mutate_operations\xda\x41\x1fresource_name,mutate_operations\x1a\x1b\xca\x41\x18googleads.googleapis.comB\xfb\x01\n$com.google.ads.googleads.v4.servicesB\x14\x42\x61tchJobServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V4.Services\xca\x02 Google\\Ads\\GoogleAds\\V4\\Services\xea\x02$Google::Ads::GoogleAds::V4::Servicesb\x06proto3') + , + dependencies=[google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_batch__job__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_google__ads__service__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_api_dot_client__pb2.DESCRIPTOR,google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_api_dot_resource__pb2.DESCRIPTOR,google_dot_longrunning_dot_operations__pb2.DESCRIPTOR,google_dot_rpc_dot_status__pb2.DESCRIPTOR,]) + + + + +_MUTATEBATCHJOBREQUEST = _descriptor.Descriptor( + name='MutateBatchJobRequest', + full_name='google.ads.googleads.v4.services.MutateBatchJobRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='customer_id', full_name='google.ads.googleads.v4.services.MutateBatchJobRequest.customer_id', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='operation', full_name='google.ads.googleads.v4.services.MutateBatchJobRequest.operation', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=399, + serialized_end=525, +) + + +_BATCHJOBOPERATION = _descriptor.Descriptor( + name='BatchJobOperation', + full_name='google.ads.googleads.v4.services.BatchJobOperation', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='create', full_name='google.ads.googleads.v4.services.BatchJobOperation.create', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='remove', full_name='google.ads.googleads.v4.services.BatchJobOperation.remove', index=1, + number=3, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name='operation', full_name='google.ads.googleads.v4.services.BatchJobOperation.operation', + index=0, containing_type=None, fields=[]), + ], + serialized_start=527, + serialized_end=640, +) + + +_MUTATEBATCHJOBRESPONSE = _descriptor.Descriptor( + name='MutateBatchJobResponse', + full_name='google.ads.googleads.v4.services.MutateBatchJobResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='result', full_name='google.ads.googleads.v4.services.MutateBatchJobResponse.result', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=642, + serialized_end=738, +) + + +_MUTATEBATCHJOBRESULT = _descriptor.Descriptor( + name='MutateBatchJobResult', + full_name='google.ads.googleads.v4.services.MutateBatchJobResult', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.services.MutateBatchJobResult.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=740, + serialized_end=785, +) + + +_GETBATCHJOBREQUEST = _descriptor.Descriptor( + name='GetBatchJobRequest', + full_name='google.ads.googleads.v4.services.GetBatchJobRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.services.GetBatchJobRequest.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002\372A#\n!googleads.googleapis.com/BatchJob'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=787, + serialized_end=873, +) + + +_RUNBATCHJOBREQUEST = _descriptor.Descriptor( + name='RunBatchJobRequest', + full_name='google.ads.googleads.v4.services.RunBatchJobRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.services.RunBatchJobRequest.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002\372A#\n!googleads.googleapis.com/BatchJob'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=875, + serialized_end=961, +) + + +_ADDBATCHJOBOPERATIONSREQUEST = _descriptor.Descriptor( + name='AddBatchJobOperationsRequest', + full_name='google.ads.googleads.v4.services.AddBatchJobOperationsRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.services.AddBatchJobOperationsRequest.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002\372A#\n!googleads.googleapis.com/BatchJob'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='sequence_token', full_name='google.ads.googleads.v4.services.AddBatchJobOperationsRequest.sequence_token', index=1, + number=2, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='mutate_operations', full_name='google.ads.googleads.v4.services.AddBatchJobOperationsRequest.mutate_operations', index=2, + number=3, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=964, + serialized_end=1167, +) + + +_ADDBATCHJOBOPERATIONSRESPONSE = _descriptor.Descriptor( + name='AddBatchJobOperationsResponse', + full_name='google.ads.googleads.v4.services.AddBatchJobOperationsResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='total_operations', full_name='google.ads.googleads.v4.services.AddBatchJobOperationsResponse.total_operations', index=0, + number=1, type=3, cpp_type=2, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='next_sequence_token', full_name='google.ads.googleads.v4.services.AddBatchJobOperationsResponse.next_sequence_token', index=1, + number=2, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1169, + serialized_end=1255, +) + + +_LISTBATCHJOBRESULTSREQUEST = _descriptor.Descriptor( + name='ListBatchJobResultsRequest', + full_name='google.ads.googleads.v4.services.ListBatchJobResultsRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.services.ListBatchJobResultsRequest.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002\372A#\n!googleads.googleapis.com/BatchJob'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='page_token', full_name='google.ads.googleads.v4.services.ListBatchJobResultsRequest.page_token', index=1, + number=2, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='page_size', full_name='google.ads.googleads.v4.services.ListBatchJobResultsRequest.page_size', index=2, + number=3, type=5, cpp_type=1, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1258, + serialized_end=1391, +) + + +_LISTBATCHJOBRESULTSRESPONSE = _descriptor.Descriptor( + name='ListBatchJobResultsResponse', + full_name='google.ads.googleads.v4.services.ListBatchJobResultsResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='results', full_name='google.ads.googleads.v4.services.ListBatchJobResultsResponse.results', index=0, + number=1, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='next_page_token', full_name='google.ads.googleads.v4.services.ListBatchJobResultsResponse.next_page_token', index=1, + number=2, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1393, + serialized_end=1514, +) + + +_BATCHJOBRESULT = _descriptor.Descriptor( + name='BatchJobResult', + full_name='google.ads.googleads.v4.services.BatchJobResult', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='operation_index', full_name='google.ads.googleads.v4.services.BatchJobResult.operation_index', index=0, + number=1, type=3, cpp_type=2, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='mutate_operation_response', full_name='google.ads.googleads.v4.services.BatchJobResult.mutate_operation_response', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='status', full_name='google.ads.googleads.v4.services.BatchJobResult.status', index=2, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1517, + serialized_end=1688, +) + +_MUTATEBATCHJOBREQUEST.fields_by_name['operation'].message_type = _BATCHJOBOPERATION +_BATCHJOBOPERATION.fields_by_name['create'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_batch__job__pb2._BATCHJOB +_BATCHJOBOPERATION.oneofs_by_name['operation'].fields.append( + _BATCHJOBOPERATION.fields_by_name['create']) +_BATCHJOBOPERATION.fields_by_name['create'].containing_oneof = _BATCHJOBOPERATION.oneofs_by_name['operation'] +_BATCHJOBOPERATION.oneofs_by_name['operation'].fields.append( + _BATCHJOBOPERATION.fields_by_name['remove']) +_BATCHJOBOPERATION.fields_by_name['remove'].containing_oneof = _BATCHJOBOPERATION.oneofs_by_name['operation'] +_MUTATEBATCHJOBRESPONSE.fields_by_name['result'].message_type = _MUTATEBATCHJOBRESULT +_ADDBATCHJOBOPERATIONSREQUEST.fields_by_name['mutate_operations'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_google__ads__service__pb2._MUTATEOPERATION +_LISTBATCHJOBRESULTSRESPONSE.fields_by_name['results'].message_type = _BATCHJOBRESULT +_BATCHJOBRESULT.fields_by_name['mutate_operation_response'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_google__ads__service__pb2._MUTATEOPERATIONRESPONSE +_BATCHJOBRESULT.fields_by_name['status'].message_type = google_dot_rpc_dot_status__pb2._STATUS +DESCRIPTOR.message_types_by_name['MutateBatchJobRequest'] = _MUTATEBATCHJOBREQUEST +DESCRIPTOR.message_types_by_name['BatchJobOperation'] = _BATCHJOBOPERATION +DESCRIPTOR.message_types_by_name['MutateBatchJobResponse'] = _MUTATEBATCHJOBRESPONSE +DESCRIPTOR.message_types_by_name['MutateBatchJobResult'] = _MUTATEBATCHJOBRESULT +DESCRIPTOR.message_types_by_name['GetBatchJobRequest'] = _GETBATCHJOBREQUEST +DESCRIPTOR.message_types_by_name['RunBatchJobRequest'] = _RUNBATCHJOBREQUEST +DESCRIPTOR.message_types_by_name['AddBatchJobOperationsRequest'] = _ADDBATCHJOBOPERATIONSREQUEST +DESCRIPTOR.message_types_by_name['AddBatchJobOperationsResponse'] = _ADDBATCHJOBOPERATIONSRESPONSE +DESCRIPTOR.message_types_by_name['ListBatchJobResultsRequest'] = _LISTBATCHJOBRESULTSREQUEST +DESCRIPTOR.message_types_by_name['ListBatchJobResultsResponse'] = _LISTBATCHJOBRESULTSRESPONSE +DESCRIPTOR.message_types_by_name['BatchJobResult'] = _BATCHJOBRESULT +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +MutateBatchJobRequest = _reflection.GeneratedProtocolMessageType('MutateBatchJobRequest', (_message.Message,), dict( + DESCRIPTOR = _MUTATEBATCHJOBREQUEST, + __module__ = 'google.ads.googleads_v4.proto.services.batch_job_service_pb2' + , + __doc__ = """Request message for [BatchJobService.MutateBatchJobRequest][] + + + Attributes: + customer_id: + Required. The ID of the customer for which to create a batch + job. + operation: + Required. The operation to perform on an individual batch job. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.MutateBatchJobRequest) + )) +_sym_db.RegisterMessage(MutateBatchJobRequest) + +BatchJobOperation = _reflection.GeneratedProtocolMessageType('BatchJobOperation', (_message.Message,), dict( + DESCRIPTOR = _BATCHJOBOPERATION, + __module__ = 'google.ads.googleads_v4.proto.services.batch_job_service_pb2' + , + __doc__ = """A single operation (create or remove) on a batch job. + + + Attributes: + operation: + The mutate operation. + create: + Create operation: No resource name is expected for the new + batch job. + remove: + Remove operation: The batch job must not have been run. A + resource name for the removed batch job is expected, in this + format: ``customers/{customer_id}/batchJobs/{batch_job_id}`` + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.BatchJobOperation) + )) +_sym_db.RegisterMessage(BatchJobOperation) + +MutateBatchJobResponse = _reflection.GeneratedProtocolMessageType('MutateBatchJobResponse', (_message.Message,), dict( + DESCRIPTOR = _MUTATEBATCHJOBRESPONSE, + __module__ = 'google.ads.googleads_v4.proto.services.batch_job_service_pb2' + , + __doc__ = """Response message for [BatchJobService.MutateBatchJobResponse][] + + + Attributes: + result: + The result for the mutate. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.MutateBatchJobResponse) + )) +_sym_db.RegisterMessage(MutateBatchJobResponse) + +MutateBatchJobResult = _reflection.GeneratedProtocolMessageType('MutateBatchJobResult', (_message.Message,), dict( + DESCRIPTOR = _MUTATEBATCHJOBRESULT, + __module__ = 'google.ads.googleads_v4.proto.services.batch_job_service_pb2' + , + __doc__ = """The result for the batch job mutate. + + + Attributes: + resource_name: + The resource name of the batch job. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.MutateBatchJobResult) + )) +_sym_db.RegisterMessage(MutateBatchJobResult) + +GetBatchJobRequest = _reflection.GeneratedProtocolMessageType('GetBatchJobRequest', (_message.Message,), dict( + DESCRIPTOR = _GETBATCHJOBREQUEST, + __module__ = 'google.ads.googleads_v4.proto.services.batch_job_service_pb2' + , + __doc__ = """Request message for + [BatchJobService.GetBatchJob][google.ads.googleads.v4.services.BatchJobService.GetBatchJob] + + + Attributes: + resource_name: + Required. The resource name of the batch job to get. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.GetBatchJobRequest) + )) +_sym_db.RegisterMessage(GetBatchJobRequest) + +RunBatchJobRequest = _reflection.GeneratedProtocolMessageType('RunBatchJobRequest', (_message.Message,), dict( + DESCRIPTOR = _RUNBATCHJOBREQUEST, + __module__ = 'google.ads.googleads_v4.proto.services.batch_job_service_pb2' + , + __doc__ = """Request message for + [BatchJobService.RunBatchJob][google.ads.googleads.v4.services.BatchJobService.RunBatchJob] + + + Attributes: + resource_name: + Required. The resource name of the BatchJob to run. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.RunBatchJobRequest) + )) +_sym_db.RegisterMessage(RunBatchJobRequest) + +AddBatchJobOperationsRequest = _reflection.GeneratedProtocolMessageType('AddBatchJobOperationsRequest', (_message.Message,), dict( + DESCRIPTOR = _ADDBATCHJOBOPERATIONSREQUEST, + __module__ = 'google.ads.googleads_v4.proto.services.batch_job_service_pb2' + , + __doc__ = """Request message for + [BatchJobService.AddBatchJobOperations][google.ads.googleads.v4.services.BatchJobService.AddBatchJobOperations] + + + Attributes: + resource_name: + Required. The resource name of the batch job. + sequence_token: + A token used to enforce sequencing. The first + AddBatchJobOperations request for a batch job should not set + sequence\_token. Subsequent requests must set sequence\_token + to the value of next\_sequence\_token received in the previous + AddBatchJobOperations response. + mutate_operations: + Required. The list of mutates being added. Operations can use + negative integers as temp ids to signify dependencies between + entities created in this batch job. For example, a customer + with id = 1234 can create a campaign and an ad group in that + same campaign by creating a campaign in the first operation + with the resource name explicitly set to + "customers/1234/campaigns/-1", and creating an ad group in the + second operation with the campaign field also set to + "customers/1234/campaigns/-1". + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.AddBatchJobOperationsRequest) + )) +_sym_db.RegisterMessage(AddBatchJobOperationsRequest) + +AddBatchJobOperationsResponse = _reflection.GeneratedProtocolMessageType('AddBatchJobOperationsResponse', (_message.Message,), dict( + DESCRIPTOR = _ADDBATCHJOBOPERATIONSRESPONSE, + __module__ = 'google.ads.googleads_v4.proto.services.batch_job_service_pb2' + , + __doc__ = """Response message for + [BatchJobService.AddBatchJobOperations][google.ads.googleads.v4.services.BatchJobService.AddBatchJobOperations] + + + Attributes: + total_operations: + The total number of operations added so far for this batch + job. + next_sequence_token: + The sequence token to be used when calling + AddBatchJobOperations again if more operations need to be + added. The next AddBatchJobOperations request must set the + sequence\_token field to the value of this field. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.AddBatchJobOperationsResponse) + )) +_sym_db.RegisterMessage(AddBatchJobOperationsResponse) + +ListBatchJobResultsRequest = _reflection.GeneratedProtocolMessageType('ListBatchJobResultsRequest', (_message.Message,), dict( + DESCRIPTOR = _LISTBATCHJOBRESULTSREQUEST, + __module__ = 'google.ads.googleads_v4.proto.services.batch_job_service_pb2' + , + __doc__ = """Request message for + [BatchJobService.ListBatchJobResults][google.ads.googleads.v4.services.BatchJobService.ListBatchJobResults]. + + + Attributes: + resource_name: + Required. The resource name of the batch job whose results are + being listed. + page_token: + Token of the page to retrieve. If not specified, the first + page of results will be returned. Use the value obtained from + ``next_page_token`` in the previous response in order to + request the next page of results. + page_size: + Number of elements to retrieve in a single page. When a page + request is too large, the server may decide to further limit + the number of returned resources. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.ListBatchJobResultsRequest) + )) +_sym_db.RegisterMessage(ListBatchJobResultsRequest) + +ListBatchJobResultsResponse = _reflection.GeneratedProtocolMessageType('ListBatchJobResultsResponse', (_message.Message,), dict( + DESCRIPTOR = _LISTBATCHJOBRESULTSRESPONSE, + __module__ = 'google.ads.googleads_v4.proto.services.batch_job_service_pb2' + , + __doc__ = """Response message for + [BatchJobService.ListBatchJobResults][google.ads.googleads.v4.services.BatchJobService.ListBatchJobResults]. + + + Attributes: + results: + The list of rows that matched the query. + next_page_token: + Pagination token used to retrieve the next page of results. + Pass the content of this string as the ``page_token`` + attribute of the next request. ``next_page_token`` is not + returned for the last page. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.ListBatchJobResultsResponse) + )) +_sym_db.RegisterMessage(ListBatchJobResultsResponse) + +BatchJobResult = _reflection.GeneratedProtocolMessageType('BatchJobResult', (_message.Message,), dict( + DESCRIPTOR = _BATCHJOBRESULT, + __module__ = 'google.ads.googleads_v4.proto.services.batch_job_service_pb2' + , + __doc__ = """An individual batch job result. + + + Attributes: + operation_index: + Index of the mutate operation. + mutate_operation_response: + Response for the mutate. May be empty if errors occurred. + status: + Details of the errors when processing the operation. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.BatchJobResult) + )) +_sym_db.RegisterMessage(BatchJobResult) + + +DESCRIPTOR._options = None +_MUTATEBATCHJOBREQUEST.fields_by_name['customer_id']._options = None +_MUTATEBATCHJOBREQUEST.fields_by_name['operation']._options = None +_GETBATCHJOBREQUEST.fields_by_name['resource_name']._options = None +_RUNBATCHJOBREQUEST.fields_by_name['resource_name']._options = None +_ADDBATCHJOBOPERATIONSREQUEST.fields_by_name['resource_name']._options = None +_ADDBATCHJOBOPERATIONSREQUEST.fields_by_name['mutate_operations']._options = None +_LISTBATCHJOBRESULTSREQUEST.fields_by_name['resource_name']._options = None + +_BATCHJOBSERVICE = _descriptor.ServiceDescriptor( + name='BatchJobService', + full_name='google.ads.googleads.v4.services.BatchJobService', + file=DESCRIPTOR, + index=0, + serialized_options=_b('\312A\030googleads.googleapis.com'), + serialized_start=1691, + serialized_end=2942, + methods=[ + _descriptor.MethodDescriptor( + name='MutateBatchJob', + full_name='google.ads.googleads.v4.services.BatchJobService.MutateBatchJob', + index=0, + containing_service=None, + input_type=_MUTATEBATCHJOBREQUEST, + output_type=_MUTATEBATCHJOBRESPONSE, + serialized_options=_b('\202\323\344\223\0023\"./v4/customers/{customer_id=*}/batchJobs:mutate:\001*\332A\025customer_id,operation'), + ), + _descriptor.MethodDescriptor( + name='GetBatchJob', + full_name='google.ads.googleads.v4.services.BatchJobService.GetBatchJob', + index=1, + containing_service=None, + input_type=_GETBATCHJOBREQUEST, + output_type=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_batch__job__pb2._BATCHJOB, + serialized_options=_b('\202\323\344\223\002-\022+/v4/{resource_name=customers/*/batchJobs/*}\332A\rresource_name'), + ), + _descriptor.MethodDescriptor( + name='ListBatchJobResults', + full_name='google.ads.googleads.v4.services.BatchJobService.ListBatchJobResults', + index=2, + containing_service=None, + input_type=_LISTBATCHJOBRESULTSREQUEST, + output_type=_LISTBATCHJOBRESULTSRESPONSE, + serialized_options=_b('\202\323\344\223\0029\0227/v4/{resource_name=customers/*/batchJobs/*}:listResults\332A\rresource_name'), + ), + _descriptor.MethodDescriptor( + name='RunBatchJob', + full_name='google.ads.googleads.v4.services.BatchJobService.RunBatchJob', + index=3, + containing_service=None, + input_type=_RUNBATCHJOBREQUEST, + output_type=google_dot_longrunning_dot_operations__pb2._OPERATION, + serialized_options=_b('\202\323\344\223\0024\"//v4/{resource_name=customers/*/batchJobs/*}:run:\001*\332A\rresource_name\312AT\n\025google.protobuf.Empty\022;google.ads.googleads.v4.resources.BatchJob.BatchJobMetadata'), + ), + _descriptor.MethodDescriptor( + name='AddBatchJobOperations', + full_name='google.ads.googleads.v4.services.BatchJobService.AddBatchJobOperations', + index=4, + containing_service=None, + input_type=_ADDBATCHJOBOPERATIONSREQUEST, + output_type=_ADDBATCHJOBOPERATIONSRESPONSE, + serialized_options=_b('\202\323\344\223\002>\"9/v4/{resource_name=customers/*/batchJobs/*}:addOperations:\001*\332A.resource_name,sequence_token,mutate_operations\332A\037resource_name,mutate_operations'), + ), +]) +_sym_db.RegisterServiceDescriptor(_BATCHJOBSERVICE) + +DESCRIPTOR.services_by_name['BatchJobService'] = _BATCHJOBSERVICE + +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v4/proto/services/batch_job_service_pb2_grpc.py b/google/ads/google_ads/v4/proto/services/batch_job_service_pb2_grpc.py new file mode 100644 index 000000000..eee89c4fb --- /dev/null +++ b/google/ads/google_ads/v4/proto/services/batch_job_service_pb2_grpc.py @@ -0,0 +1,125 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +import grpc + +from google.ads.google_ads.v4.proto.resources import batch_job_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_batch__job__pb2 +from google.ads.google_ads.v4.proto.services import batch_job_service_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_batch__job__service__pb2 +from google.longrunning import operations_pb2 as google_dot_longrunning_dot_operations__pb2 + + +class BatchJobServiceStub(object): + """Proto file describing the BatchJobService. + + Service to manage batch jobs. + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.MutateBatchJob = channel.unary_unary( + '/google.ads.googleads.v4.services.BatchJobService/MutateBatchJob', + request_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_batch__job__service__pb2.MutateBatchJobRequest.SerializeToString, + response_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_batch__job__service__pb2.MutateBatchJobResponse.FromString, + ) + self.GetBatchJob = channel.unary_unary( + '/google.ads.googleads.v4.services.BatchJobService/GetBatchJob', + request_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_batch__job__service__pb2.GetBatchJobRequest.SerializeToString, + response_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_batch__job__pb2.BatchJob.FromString, + ) + self.ListBatchJobResults = channel.unary_unary( + '/google.ads.googleads.v4.services.BatchJobService/ListBatchJobResults', + request_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_batch__job__service__pb2.ListBatchJobResultsRequest.SerializeToString, + response_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_batch__job__service__pb2.ListBatchJobResultsResponse.FromString, + ) + self.RunBatchJob = channel.unary_unary( + '/google.ads.googleads.v4.services.BatchJobService/RunBatchJob', + request_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_batch__job__service__pb2.RunBatchJobRequest.SerializeToString, + response_deserializer=google_dot_longrunning_dot_operations__pb2.Operation.FromString, + ) + self.AddBatchJobOperations = channel.unary_unary( + '/google.ads.googleads.v4.services.BatchJobService/AddBatchJobOperations', + request_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_batch__job__service__pb2.AddBatchJobOperationsRequest.SerializeToString, + response_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_batch__job__service__pb2.AddBatchJobOperationsResponse.FromString, + ) + + +class BatchJobServiceServicer(object): + """Proto file describing the BatchJobService. + + Service to manage batch jobs. + """ + + def MutateBatchJob(self, request, context): + """Mutates a batch job. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetBatchJob(self, request, context): + """Returns the batch job. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ListBatchJobResults(self, request, context): + """Returns the results of the batch job. The job must be done. + Supports standard list paging. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def RunBatchJob(self, request, context): + """Runs the batch job. + + The Operation.metadata field type is BatchJobMetadata. When finished, the + long running operation will not contain errors or a response. Instead, use + ListBatchJobResults to get the results of the job. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def AddBatchJobOperations(self, request, context): + """Add operations to the batch job. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_BatchJobServiceServicer_to_server(servicer, server): + rpc_method_handlers = { + 'MutateBatchJob': grpc.unary_unary_rpc_method_handler( + servicer.MutateBatchJob, + request_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_batch__job__service__pb2.MutateBatchJobRequest.FromString, + response_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_batch__job__service__pb2.MutateBatchJobResponse.SerializeToString, + ), + 'GetBatchJob': grpc.unary_unary_rpc_method_handler( + servicer.GetBatchJob, + request_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_batch__job__service__pb2.GetBatchJobRequest.FromString, + response_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_batch__job__pb2.BatchJob.SerializeToString, + ), + 'ListBatchJobResults': grpc.unary_unary_rpc_method_handler( + servicer.ListBatchJobResults, + request_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_batch__job__service__pb2.ListBatchJobResultsRequest.FromString, + response_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_batch__job__service__pb2.ListBatchJobResultsResponse.SerializeToString, + ), + 'RunBatchJob': grpc.unary_unary_rpc_method_handler( + servicer.RunBatchJob, + request_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_batch__job__service__pb2.RunBatchJobRequest.FromString, + response_serializer=google_dot_longrunning_dot_operations__pb2.Operation.SerializeToString, + ), + 'AddBatchJobOperations': grpc.unary_unary_rpc_method_handler( + servicer.AddBatchJobOperations, + request_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_batch__job__service__pb2.AddBatchJobOperationsRequest.FromString, + response_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_batch__job__service__pb2.AddBatchJobOperationsResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'google.ads.googleads.v4.services.BatchJobService', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) diff --git a/google/ads/google_ads/v4/proto/services/bidding_strategy_service_pb2.py b/google/ads/google_ads/v4/proto/services/bidding_strategy_service_pb2.py new file mode 100644 index 000000000..57cc2afb1 --- /dev/null +++ b/google/ads/google_ads/v4/proto/services/bidding_strategy_service_pb2.py @@ -0,0 +1,411 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/services/bidding_strategy_service.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.ads.google_ads.v4.proto.resources import bidding_strategy_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_bidding__strategy__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 +from google.api import client_pb2 as google_dot_api_dot_client__pb2 +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 +from google.protobuf import field_mask_pb2 as google_dot_protobuf_dot_field__mask__pb2 +from google.rpc import status_pb2 as google_dot_rpc_dot_status__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/services/bidding_strategy_service.proto', + package='google.ads.googleads.v4.services', + syntax='proto3', + serialized_options=_b('\n$com.google.ads.googleads.v4.servicesB\033BiddingStrategyServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V4.Services\312\002 Google\\Ads\\GoogleAds\\V4\\Services\352\002$Google::Ads::GoogleAds::V4::Services'), + serialized_pb=_b('\nEgoogle/ads/googleads_v4/proto/services/bidding_strategy_service.proto\x12 google.ads.googleads.v4.services\x1a>google/ads/googleads_v4/proto/resources/bidding_strategy.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/protobuf/field_mask.proto\x1a\x17google/rpc/status.proto\"d\n\x19GetBiddingStrategyRequest\x12G\n\rresource_name\x18\x01 \x01(\tB0\xe0\x41\x02\xfa\x41*\n(googleads.googleapis.com/BiddingStrategy\"\xbf\x01\n\x1eMutateBiddingStrategiesRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12S\n\noperations\x18\x02 \x03(\x0b\x32:.google.ads.googleads.v4.services.BiddingStrategyOperationB\x03\xe0\x41\x02\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\"\xf6\x01\n\x18\x42iddingStrategyOperation\x12/\n\x0bupdate_mask\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12\x44\n\x06\x63reate\x18\x01 \x01(\x0b\x32\x32.google.ads.googleads.v4.resources.BiddingStrategyH\x00\x12\x44\n\x06update\x18\x02 \x01(\x0b\x32\x32.google.ads.googleads.v4.resources.BiddingStrategyH\x00\x12\x10\n\x06remove\x18\x03 \x01(\tH\x00\x42\x0b\n\toperation\"\xa4\x01\n\x1fMutateBiddingStrategiesResponse\x12\x31\n\x15partial_failure_error\x18\x03 \x01(\x0b\x32\x12.google.rpc.Status\x12N\n\x07results\x18\x02 \x03(\x0b\x32=.google.ads.googleads.v4.services.MutateBiddingStrategyResult\"4\n\x1bMutateBiddingStrategyResult\x12\x15\n\rresource_name\x18\x01 \x01(\t2\x87\x04\n\x16\x42iddingStrategyService\x12\xd2\x01\n\x12GetBiddingStrategy\x12;.google.ads.googleads.v4.services.GetBiddingStrategyRequest\x1a\x32.google.ads.googleads.v4.resources.BiddingStrategy\"K\x82\xd3\xe4\x93\x02\x35\x12\x33/v4/{resource_name=customers/*/biddingStrategies/*}\xda\x41\rresource_name\x12\xfa\x01\n\x17MutateBiddingStrategies\x12@.google.ads.googleads.v4.services.MutateBiddingStrategiesRequest\x1a\x41.google.ads.googleads.v4.services.MutateBiddingStrategiesResponse\"Z\x82\xd3\xe4\x93\x02;\"6/v4/customers/{customer_id=*}/biddingStrategies:mutate:\x01*\xda\x41\x16\x63ustomer_id,operations\x1a\x1b\xca\x41\x18googleads.googleapis.comB\x82\x02\n$com.google.ads.googleads.v4.servicesB\x1b\x42iddingStrategyServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V4.Services\xca\x02 Google\\Ads\\GoogleAds\\V4\\Services\xea\x02$Google::Ads::GoogleAds::V4::Servicesb\x06proto3') + , + dependencies=[google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_bidding__strategy__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_api_dot_client__pb2.DESCRIPTOR,google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_api_dot_resource__pb2.DESCRIPTOR,google_dot_protobuf_dot_field__mask__pb2.DESCRIPTOR,google_dot_rpc_dot_status__pb2.DESCRIPTOR,]) + + + + +_GETBIDDINGSTRATEGYREQUEST = _descriptor.Descriptor( + name='GetBiddingStrategyRequest', + full_name='google.ads.googleads.v4.services.GetBiddingStrategyRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.services.GetBiddingStrategyRequest.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002\372A*\n(googleads.googleapis.com/BiddingStrategy'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=345, + serialized_end=445, +) + + +_MUTATEBIDDINGSTRATEGIESREQUEST = _descriptor.Descriptor( + name='MutateBiddingStrategiesRequest', + full_name='google.ads.googleads.v4.services.MutateBiddingStrategiesRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='customer_id', full_name='google.ads.googleads.v4.services.MutateBiddingStrategiesRequest.customer_id', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='operations', full_name='google.ads.googleads.v4.services.MutateBiddingStrategiesRequest.operations', index=1, + number=2, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='partial_failure', full_name='google.ads.googleads.v4.services.MutateBiddingStrategiesRequest.partial_failure', index=2, + number=3, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='validate_only', full_name='google.ads.googleads.v4.services.MutateBiddingStrategiesRequest.validate_only', index=3, + number=4, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=448, + serialized_end=639, +) + + +_BIDDINGSTRATEGYOPERATION = _descriptor.Descriptor( + name='BiddingStrategyOperation', + full_name='google.ads.googleads.v4.services.BiddingStrategyOperation', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='update_mask', full_name='google.ads.googleads.v4.services.BiddingStrategyOperation.update_mask', index=0, + number=4, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='create', full_name='google.ads.googleads.v4.services.BiddingStrategyOperation.create', index=1, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='update', full_name='google.ads.googleads.v4.services.BiddingStrategyOperation.update', index=2, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='remove', full_name='google.ads.googleads.v4.services.BiddingStrategyOperation.remove', index=3, + number=3, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name='operation', full_name='google.ads.googleads.v4.services.BiddingStrategyOperation.operation', + index=0, containing_type=None, fields=[]), + ], + serialized_start=642, + serialized_end=888, +) + + +_MUTATEBIDDINGSTRATEGIESRESPONSE = _descriptor.Descriptor( + name='MutateBiddingStrategiesResponse', + full_name='google.ads.googleads.v4.services.MutateBiddingStrategiesResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='partial_failure_error', full_name='google.ads.googleads.v4.services.MutateBiddingStrategiesResponse.partial_failure_error', index=0, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='results', full_name='google.ads.googleads.v4.services.MutateBiddingStrategiesResponse.results', index=1, + number=2, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=891, + serialized_end=1055, +) + + +_MUTATEBIDDINGSTRATEGYRESULT = _descriptor.Descriptor( + name='MutateBiddingStrategyResult', + full_name='google.ads.googleads.v4.services.MutateBiddingStrategyResult', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.services.MutateBiddingStrategyResult.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1057, + serialized_end=1109, +) + +_MUTATEBIDDINGSTRATEGIESREQUEST.fields_by_name['operations'].message_type = _BIDDINGSTRATEGYOPERATION +_BIDDINGSTRATEGYOPERATION.fields_by_name['update_mask'].message_type = google_dot_protobuf_dot_field__mask__pb2._FIELDMASK +_BIDDINGSTRATEGYOPERATION.fields_by_name['create'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_bidding__strategy__pb2._BIDDINGSTRATEGY +_BIDDINGSTRATEGYOPERATION.fields_by_name['update'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_bidding__strategy__pb2._BIDDINGSTRATEGY +_BIDDINGSTRATEGYOPERATION.oneofs_by_name['operation'].fields.append( + _BIDDINGSTRATEGYOPERATION.fields_by_name['create']) +_BIDDINGSTRATEGYOPERATION.fields_by_name['create'].containing_oneof = _BIDDINGSTRATEGYOPERATION.oneofs_by_name['operation'] +_BIDDINGSTRATEGYOPERATION.oneofs_by_name['operation'].fields.append( + _BIDDINGSTRATEGYOPERATION.fields_by_name['update']) +_BIDDINGSTRATEGYOPERATION.fields_by_name['update'].containing_oneof = _BIDDINGSTRATEGYOPERATION.oneofs_by_name['operation'] +_BIDDINGSTRATEGYOPERATION.oneofs_by_name['operation'].fields.append( + _BIDDINGSTRATEGYOPERATION.fields_by_name['remove']) +_BIDDINGSTRATEGYOPERATION.fields_by_name['remove'].containing_oneof = _BIDDINGSTRATEGYOPERATION.oneofs_by_name['operation'] +_MUTATEBIDDINGSTRATEGIESRESPONSE.fields_by_name['partial_failure_error'].message_type = google_dot_rpc_dot_status__pb2._STATUS +_MUTATEBIDDINGSTRATEGIESRESPONSE.fields_by_name['results'].message_type = _MUTATEBIDDINGSTRATEGYRESULT +DESCRIPTOR.message_types_by_name['GetBiddingStrategyRequest'] = _GETBIDDINGSTRATEGYREQUEST +DESCRIPTOR.message_types_by_name['MutateBiddingStrategiesRequest'] = _MUTATEBIDDINGSTRATEGIESREQUEST +DESCRIPTOR.message_types_by_name['BiddingStrategyOperation'] = _BIDDINGSTRATEGYOPERATION +DESCRIPTOR.message_types_by_name['MutateBiddingStrategiesResponse'] = _MUTATEBIDDINGSTRATEGIESRESPONSE +DESCRIPTOR.message_types_by_name['MutateBiddingStrategyResult'] = _MUTATEBIDDINGSTRATEGYRESULT +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +GetBiddingStrategyRequest = _reflection.GeneratedProtocolMessageType('GetBiddingStrategyRequest', (_message.Message,), dict( + DESCRIPTOR = _GETBIDDINGSTRATEGYREQUEST, + __module__ = 'google.ads.googleads_v4.proto.services.bidding_strategy_service_pb2' + , + __doc__ = """Request message for + [BiddingStrategyService.GetBiddingStrategy][google.ads.googleads.v4.services.BiddingStrategyService.GetBiddingStrategy]. + + + Attributes: + resource_name: + Required. The resource name of the bidding strategy to fetch. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.GetBiddingStrategyRequest) + )) +_sym_db.RegisterMessage(GetBiddingStrategyRequest) + +MutateBiddingStrategiesRequest = _reflection.GeneratedProtocolMessageType('MutateBiddingStrategiesRequest', (_message.Message,), dict( + DESCRIPTOR = _MUTATEBIDDINGSTRATEGIESREQUEST, + __module__ = 'google.ads.googleads_v4.proto.services.bidding_strategy_service_pb2' + , + __doc__ = """Request message for + [BiddingStrategyService.MutateBiddingStrategies][google.ads.googleads.v4.services.BiddingStrategyService.MutateBiddingStrategies]. + + + Attributes: + customer_id: + Required. The ID of the customer whose bidding strategies are + being modified. + operations: + Required. The list of operations to perform on individual + bidding strategies. + partial_failure: + If true, successful operations will be carried out and invalid + operations will return errors. If false, all operations will + be carried out in one transaction if and only if they are all + valid. Default is false. + validate_only: + If true, the request is validated but not executed. Only + errors are returned, not results. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.MutateBiddingStrategiesRequest) + )) +_sym_db.RegisterMessage(MutateBiddingStrategiesRequest) + +BiddingStrategyOperation = _reflection.GeneratedProtocolMessageType('BiddingStrategyOperation', (_message.Message,), dict( + DESCRIPTOR = _BIDDINGSTRATEGYOPERATION, + __module__ = 'google.ads.googleads_v4.proto.services.bidding_strategy_service_pb2' + , + __doc__ = """A single operation (create, update, remove) on a bidding strategy. + + + Attributes: + update_mask: + FieldMask that determines which resource fields are modified + in an update. + operation: + The mutate operation. + create: + Create operation: No resource name is expected for the new + bidding strategy. + update: + Update operation: The bidding strategy is expected to have a + valid resource name. + remove: + Remove operation: A resource name for the removed bidding + strategy is expected, in this format: ``customers/{customer_i + d}/biddingStrategies/{bidding_strategy_id}`` + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.BiddingStrategyOperation) + )) +_sym_db.RegisterMessage(BiddingStrategyOperation) + +MutateBiddingStrategiesResponse = _reflection.GeneratedProtocolMessageType('MutateBiddingStrategiesResponse', (_message.Message,), dict( + DESCRIPTOR = _MUTATEBIDDINGSTRATEGIESRESPONSE, + __module__ = 'google.ads.googleads_v4.proto.services.bidding_strategy_service_pb2' + , + __doc__ = """Response message for bidding strategy mutate. + + + Attributes: + partial_failure_error: + Errors that pertain to operation failures in the partial + failure mode. Returned only when partial\_failure = true and + all errors occur inside the operations. If any errors occur + outside the operations (e.g. auth errors), we return an RPC + level error. + results: + All results for the mutate. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.MutateBiddingStrategiesResponse) + )) +_sym_db.RegisterMessage(MutateBiddingStrategiesResponse) + +MutateBiddingStrategyResult = _reflection.GeneratedProtocolMessageType('MutateBiddingStrategyResult', (_message.Message,), dict( + DESCRIPTOR = _MUTATEBIDDINGSTRATEGYRESULT, + __module__ = 'google.ads.googleads_v4.proto.services.bidding_strategy_service_pb2' + , + __doc__ = """The result for the bidding strategy mutate. + + + Attributes: + resource_name: + Returned for successful operations. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.MutateBiddingStrategyResult) + )) +_sym_db.RegisterMessage(MutateBiddingStrategyResult) + + +DESCRIPTOR._options = None +_GETBIDDINGSTRATEGYREQUEST.fields_by_name['resource_name']._options = None +_MUTATEBIDDINGSTRATEGIESREQUEST.fields_by_name['customer_id']._options = None +_MUTATEBIDDINGSTRATEGIESREQUEST.fields_by_name['operations']._options = None + +_BIDDINGSTRATEGYSERVICE = _descriptor.ServiceDescriptor( + name='BiddingStrategyService', + full_name='google.ads.googleads.v4.services.BiddingStrategyService', + file=DESCRIPTOR, + index=0, + serialized_options=_b('\312A\030googleads.googleapis.com'), + serialized_start=1112, + serialized_end=1631, + methods=[ + _descriptor.MethodDescriptor( + name='GetBiddingStrategy', + full_name='google.ads.googleads.v4.services.BiddingStrategyService.GetBiddingStrategy', + index=0, + containing_service=None, + input_type=_GETBIDDINGSTRATEGYREQUEST, + output_type=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_bidding__strategy__pb2._BIDDINGSTRATEGY, + serialized_options=_b('\202\323\344\223\0025\0223/v4/{resource_name=customers/*/biddingStrategies/*}\332A\rresource_name'), + ), + _descriptor.MethodDescriptor( + name='MutateBiddingStrategies', + full_name='google.ads.googleads.v4.services.BiddingStrategyService.MutateBiddingStrategies', + index=1, + containing_service=None, + input_type=_MUTATEBIDDINGSTRATEGIESREQUEST, + output_type=_MUTATEBIDDINGSTRATEGIESRESPONSE, + serialized_options=_b('\202\323\344\223\002;\"6/v4/customers/{customer_id=*}/biddingStrategies:mutate:\001*\332A\026customer_id,operations'), + ), +]) +_sym_db.RegisterServiceDescriptor(_BIDDINGSTRATEGYSERVICE) + +DESCRIPTOR.services_by_name['BiddingStrategyService'] = _BIDDINGSTRATEGYSERVICE + +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v4/proto/services/bidding_strategy_service_pb2_grpc.py b/google/ads/google_ads/v4/proto/services/bidding_strategy_service_pb2_grpc.py new file mode 100644 index 000000000..df9f58f0f --- /dev/null +++ b/google/ads/google_ads/v4/proto/services/bidding_strategy_service_pb2_grpc.py @@ -0,0 +1,69 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +import grpc + +from google.ads.google_ads.v4.proto.resources import bidding_strategy_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_bidding__strategy__pb2 +from google.ads.google_ads.v4.proto.services import bidding_strategy_service_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_bidding__strategy__service__pb2 + + +class BiddingStrategyServiceStub(object): + """Proto file describing the Bidding Strategy service. + + Service to manage bidding strategies. + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.GetBiddingStrategy = channel.unary_unary( + '/google.ads.googleads.v4.services.BiddingStrategyService/GetBiddingStrategy', + request_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_bidding__strategy__service__pb2.GetBiddingStrategyRequest.SerializeToString, + response_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_bidding__strategy__pb2.BiddingStrategy.FromString, + ) + self.MutateBiddingStrategies = channel.unary_unary( + '/google.ads.googleads.v4.services.BiddingStrategyService/MutateBiddingStrategies', + request_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_bidding__strategy__service__pb2.MutateBiddingStrategiesRequest.SerializeToString, + response_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_bidding__strategy__service__pb2.MutateBiddingStrategiesResponse.FromString, + ) + + +class BiddingStrategyServiceServicer(object): + """Proto file describing the Bidding Strategy service. + + Service to manage bidding strategies. + """ + + def GetBiddingStrategy(self, request, context): + """Returns the requested bidding strategy in full detail. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def MutateBiddingStrategies(self, request, context): + """Creates, updates, or removes bidding strategies. Operation statuses are + returned. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_BiddingStrategyServiceServicer_to_server(servicer, server): + rpc_method_handlers = { + 'GetBiddingStrategy': grpc.unary_unary_rpc_method_handler( + servicer.GetBiddingStrategy, + request_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_bidding__strategy__service__pb2.GetBiddingStrategyRequest.FromString, + response_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_bidding__strategy__pb2.BiddingStrategy.SerializeToString, + ), + 'MutateBiddingStrategies': grpc.unary_unary_rpc_method_handler( + servicer.MutateBiddingStrategies, + request_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_bidding__strategy__service__pb2.MutateBiddingStrategiesRequest.FromString, + response_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_bidding__strategy__service__pb2.MutateBiddingStrategiesResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'google.ads.googleads.v4.services.BiddingStrategyService', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) diff --git a/google/ads/google_ads/v4/proto/services/billing_setup_service_pb2.py b/google/ads/google_ads/v4/proto/services/billing_setup_service_pb2.py new file mode 100644 index 000000000..efee4dc5d --- /dev/null +++ b/google/ads/google_ads/v4/proto/services/billing_setup_service_pb2.py @@ -0,0 +1,350 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/services/billing_setup_service.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.ads.google_ads.v4.proto.resources import billing_setup_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_billing__setup__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 +from google.api import client_pb2 as google_dot_api_dot_client__pb2 +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/services/billing_setup_service.proto', + package='google.ads.googleads.v4.services', + syntax='proto3', + serialized_options=_b('\n$com.google.ads.googleads.v4.servicesB\030BillingSetupServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V4.Services\312\002 Google\\Ads\\GoogleAds\\V4\\Services\352\002$Google::Ads::GoogleAds::V4::Services'), + serialized_pb=_b('\nBgoogle/ads/googleads_v4/proto/services/billing_setup_service.proto\x12 google.ads.googleads.v4.services\x1a;google/ads/googleads_v4/proto/resources/billing_setup.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"^\n\x16GetBillingSetupRequest\x12\x44\n\rresource_name\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%googleads.googleapis.com/BillingSetup\"\x86\x01\n\x19MutateBillingSetupRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12O\n\toperation\x18\x02 \x01(\x0b\x32\x37.google.ads.googleads.v4.services.BillingSetupOperationB\x03\xe0\x41\x02\"y\n\x15\x42illingSetupOperation\x12\x41\n\x06\x63reate\x18\x02 \x01(\x0b\x32/.google.ads.googleads.v4.resources.BillingSetupH\x00\x12\x10\n\x06remove\x18\x01 \x01(\tH\x00\x42\x0b\n\toperation\"h\n\x1aMutateBillingSetupResponse\x12J\n\x06result\x18\x01 \x01(\x0b\x32:.google.ads.googleads.v4.services.MutateBillingSetupResult\"1\n\x18MutateBillingSetupResult\x12\x15\n\rresource_name\x18\x01 \x01(\t2\xe3\x03\n\x13\x42illingSetupService\x12\xc5\x01\n\x0fGetBillingSetup\x12\x38.google.ads.googleads.v4.services.GetBillingSetupRequest\x1a/.google.ads.googleads.v4.resources.BillingSetup\"G\x82\xd3\xe4\x93\x02\x31\x12//v4/{resource_name=customers/*/billingSetups/*}\xda\x41\rresource_name\x12\xe6\x01\n\x12MutateBillingSetup\x12;.google.ads.googleads.v4.services.MutateBillingSetupRequest\x1a<.google.ads.googleads.v4.services.MutateBillingSetupResponse\"U\x82\xd3\xe4\x93\x02\x37\"2/v4/customers/{customer_id=*}/billingSetups:mutate:\x01*\xda\x41\x15\x63ustomer_id,operation\x1a\x1b\xca\x41\x18googleads.googleapis.comB\xff\x01\n$com.google.ads.googleads.v4.servicesB\x18\x42illingSetupServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V4.Services\xca\x02 Google\\Ads\\GoogleAds\\V4\\Services\xea\x02$Google::Ads::GoogleAds::V4::Servicesb\x06proto3') + , + dependencies=[google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_billing__setup__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_api_dot_client__pb2.DESCRIPTOR,google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_api_dot_resource__pb2.DESCRIPTOR,]) + + + + +_GETBILLINGSETUPREQUEST = _descriptor.Descriptor( + name='GetBillingSetupRequest', + full_name='google.ads.googleads.v4.services.GetBillingSetupRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.services.GetBillingSetupRequest.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002\372A\'\n%googleads.googleapis.com/BillingSetup'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=280, + serialized_end=374, +) + + +_MUTATEBILLINGSETUPREQUEST = _descriptor.Descriptor( + name='MutateBillingSetupRequest', + full_name='google.ads.googleads.v4.services.MutateBillingSetupRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='customer_id', full_name='google.ads.googleads.v4.services.MutateBillingSetupRequest.customer_id', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='operation', full_name='google.ads.googleads.v4.services.MutateBillingSetupRequest.operation', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=377, + serialized_end=511, +) + + +_BILLINGSETUPOPERATION = _descriptor.Descriptor( + name='BillingSetupOperation', + full_name='google.ads.googleads.v4.services.BillingSetupOperation', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='create', full_name='google.ads.googleads.v4.services.BillingSetupOperation.create', index=0, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='remove', full_name='google.ads.googleads.v4.services.BillingSetupOperation.remove', index=1, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name='operation', full_name='google.ads.googleads.v4.services.BillingSetupOperation.operation', + index=0, containing_type=None, fields=[]), + ], + serialized_start=513, + serialized_end=634, +) + + +_MUTATEBILLINGSETUPRESPONSE = _descriptor.Descriptor( + name='MutateBillingSetupResponse', + full_name='google.ads.googleads.v4.services.MutateBillingSetupResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='result', full_name='google.ads.googleads.v4.services.MutateBillingSetupResponse.result', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=636, + serialized_end=740, +) + + +_MUTATEBILLINGSETUPRESULT = _descriptor.Descriptor( + name='MutateBillingSetupResult', + full_name='google.ads.googleads.v4.services.MutateBillingSetupResult', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.services.MutateBillingSetupResult.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=742, + serialized_end=791, +) + +_MUTATEBILLINGSETUPREQUEST.fields_by_name['operation'].message_type = _BILLINGSETUPOPERATION +_BILLINGSETUPOPERATION.fields_by_name['create'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_billing__setup__pb2._BILLINGSETUP +_BILLINGSETUPOPERATION.oneofs_by_name['operation'].fields.append( + _BILLINGSETUPOPERATION.fields_by_name['create']) +_BILLINGSETUPOPERATION.fields_by_name['create'].containing_oneof = _BILLINGSETUPOPERATION.oneofs_by_name['operation'] +_BILLINGSETUPOPERATION.oneofs_by_name['operation'].fields.append( + _BILLINGSETUPOPERATION.fields_by_name['remove']) +_BILLINGSETUPOPERATION.fields_by_name['remove'].containing_oneof = _BILLINGSETUPOPERATION.oneofs_by_name['operation'] +_MUTATEBILLINGSETUPRESPONSE.fields_by_name['result'].message_type = _MUTATEBILLINGSETUPRESULT +DESCRIPTOR.message_types_by_name['GetBillingSetupRequest'] = _GETBILLINGSETUPREQUEST +DESCRIPTOR.message_types_by_name['MutateBillingSetupRequest'] = _MUTATEBILLINGSETUPREQUEST +DESCRIPTOR.message_types_by_name['BillingSetupOperation'] = _BILLINGSETUPOPERATION +DESCRIPTOR.message_types_by_name['MutateBillingSetupResponse'] = _MUTATEBILLINGSETUPRESPONSE +DESCRIPTOR.message_types_by_name['MutateBillingSetupResult'] = _MUTATEBILLINGSETUPRESULT +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +GetBillingSetupRequest = _reflection.GeneratedProtocolMessageType('GetBillingSetupRequest', (_message.Message,), dict( + DESCRIPTOR = _GETBILLINGSETUPREQUEST, + __module__ = 'google.ads.googleads_v4.proto.services.billing_setup_service_pb2' + , + __doc__ = """Request message for + [BillingSetupService.GetBillingSetup][google.ads.googleads.v4.services.BillingSetupService.GetBillingSetup]. + + + Attributes: + resource_name: + Required. The resource name of the billing setup to fetch. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.GetBillingSetupRequest) + )) +_sym_db.RegisterMessage(GetBillingSetupRequest) + +MutateBillingSetupRequest = _reflection.GeneratedProtocolMessageType('MutateBillingSetupRequest', (_message.Message,), dict( + DESCRIPTOR = _MUTATEBILLINGSETUPREQUEST, + __module__ = 'google.ads.googleads_v4.proto.services.billing_setup_service_pb2' + , + __doc__ = """Request message for billing setup mutate operations. + + + Attributes: + customer_id: + Required. Id of the customer to apply the billing setup mutate + operation to. + operation: + Required. The operation to perform. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.MutateBillingSetupRequest) + )) +_sym_db.RegisterMessage(MutateBillingSetupRequest) + +BillingSetupOperation = _reflection.GeneratedProtocolMessageType('BillingSetupOperation', (_message.Message,), dict( + DESCRIPTOR = _BILLINGSETUPOPERATION, + __module__ = 'google.ads.googleads_v4.proto.services.billing_setup_service_pb2' + , + __doc__ = """A single operation on a billing setup, which describes the cancellation + of an existing billing setup. + + + Attributes: + operation: + Only one of these operations can be set. "Update" operations + are not supported. + create: + Creates a billing setup. No resource name is expected for the + new billing setup. + remove: + Resource name of the billing setup to remove. A setup cannot + be removed unless it is in a pending state or its scheduled + start time is in the future. The resource name looks like + ``customers/{customer_id}/billingSetups/{billing_id}``. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.BillingSetupOperation) + )) +_sym_db.RegisterMessage(BillingSetupOperation) + +MutateBillingSetupResponse = _reflection.GeneratedProtocolMessageType('MutateBillingSetupResponse', (_message.Message,), dict( + DESCRIPTOR = _MUTATEBILLINGSETUPRESPONSE, + __module__ = 'google.ads.googleads_v4.proto.services.billing_setup_service_pb2' + , + __doc__ = """Response message for a billing setup operation. + + + Attributes: + result: + A result that identifies the resource affected by the mutate + request. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.MutateBillingSetupResponse) + )) +_sym_db.RegisterMessage(MutateBillingSetupResponse) + +MutateBillingSetupResult = _reflection.GeneratedProtocolMessageType('MutateBillingSetupResult', (_message.Message,), dict( + DESCRIPTOR = _MUTATEBILLINGSETUPRESULT, + __module__ = 'google.ads.googleads_v4.proto.services.billing_setup_service_pb2' + , + __doc__ = """Result for a single billing setup mutate. + + + Attributes: + resource_name: + Returned for successful operations. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.MutateBillingSetupResult) + )) +_sym_db.RegisterMessage(MutateBillingSetupResult) + + +DESCRIPTOR._options = None +_GETBILLINGSETUPREQUEST.fields_by_name['resource_name']._options = None +_MUTATEBILLINGSETUPREQUEST.fields_by_name['customer_id']._options = None +_MUTATEBILLINGSETUPREQUEST.fields_by_name['operation']._options = None + +_BILLINGSETUPSERVICE = _descriptor.ServiceDescriptor( + name='BillingSetupService', + full_name='google.ads.googleads.v4.services.BillingSetupService', + file=DESCRIPTOR, + index=0, + serialized_options=_b('\312A\030googleads.googleapis.com'), + serialized_start=794, + serialized_end=1277, + methods=[ + _descriptor.MethodDescriptor( + name='GetBillingSetup', + full_name='google.ads.googleads.v4.services.BillingSetupService.GetBillingSetup', + index=0, + containing_service=None, + input_type=_GETBILLINGSETUPREQUEST, + output_type=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_billing__setup__pb2._BILLINGSETUP, + serialized_options=_b('\202\323\344\223\0021\022//v4/{resource_name=customers/*/billingSetups/*}\332A\rresource_name'), + ), + _descriptor.MethodDescriptor( + name='MutateBillingSetup', + full_name='google.ads.googleads.v4.services.BillingSetupService.MutateBillingSetup', + index=1, + containing_service=None, + input_type=_MUTATEBILLINGSETUPREQUEST, + output_type=_MUTATEBILLINGSETUPRESPONSE, + serialized_options=_b('\202\323\344\223\0027\"2/v4/customers/{customer_id=*}/billingSetups:mutate:\001*\332A\025customer_id,operation'), + ), +]) +_sym_db.RegisterServiceDescriptor(_BILLINGSETUPSERVICE) + +DESCRIPTOR.services_by_name['BillingSetupService'] = _BILLINGSETUPSERVICE + +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v4/proto/services/billing_setup_service_pb2_grpc.py b/google/ads/google_ads/v4/proto/services/billing_setup_service_pb2_grpc.py new file mode 100644 index 000000000..e17491aa1 --- /dev/null +++ b/google/ads/google_ads/v4/proto/services/billing_setup_service_pb2_grpc.py @@ -0,0 +1,84 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +import grpc + +from google.ads.google_ads.v4.proto.resources import billing_setup_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_billing__setup__pb2 +from google.ads.google_ads.v4.proto.services import billing_setup_service_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_billing__setup__service__pb2 + + +class BillingSetupServiceStub(object): + """Proto file describing the BillingSetup service. + + A service for designating the business entity responsible for accrued costs. + + A billing setup is associated with a payments account. Billing-related + activity for all billing setups associated with a particular payments account + will appear on a single invoice generated monthly. + + Mutates: + The REMOVE operation cancels a pending billing setup. + The CREATE operation creates a new billing setup. + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.GetBillingSetup = channel.unary_unary( + '/google.ads.googleads.v4.services.BillingSetupService/GetBillingSetup', + request_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_billing__setup__service__pb2.GetBillingSetupRequest.SerializeToString, + response_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_billing__setup__pb2.BillingSetup.FromString, + ) + self.MutateBillingSetup = channel.unary_unary( + '/google.ads.googleads.v4.services.BillingSetupService/MutateBillingSetup', + request_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_billing__setup__service__pb2.MutateBillingSetupRequest.SerializeToString, + response_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_billing__setup__service__pb2.MutateBillingSetupResponse.FromString, + ) + + +class BillingSetupServiceServicer(object): + """Proto file describing the BillingSetup service. + + A service for designating the business entity responsible for accrued costs. + + A billing setup is associated with a payments account. Billing-related + activity for all billing setups associated with a particular payments account + will appear on a single invoice generated monthly. + + Mutates: + The REMOVE operation cancels a pending billing setup. + The CREATE operation creates a new billing setup. + """ + + def GetBillingSetup(self, request, context): + """Returns a billing setup. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def MutateBillingSetup(self, request, context): + """Creates a billing setup, or cancels an existing billing setup. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_BillingSetupServiceServicer_to_server(servicer, server): + rpc_method_handlers = { + 'GetBillingSetup': grpc.unary_unary_rpc_method_handler( + servicer.GetBillingSetup, + request_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_billing__setup__service__pb2.GetBillingSetupRequest.FromString, + response_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_billing__setup__pb2.BillingSetup.SerializeToString, + ), + 'MutateBillingSetup': grpc.unary_unary_rpc_method_handler( + servicer.MutateBillingSetup, + request_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_billing__setup__service__pb2.MutateBillingSetupRequest.FromString, + response_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_billing__setup__service__pb2.MutateBillingSetupResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'google.ads.googleads.v4.services.BillingSetupService', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) diff --git a/google/ads/google_ads/v4/proto/services/campaign_audience_view_service_pb2.py b/google/ads/google_ads/v4/proto/services/campaign_audience_view_service_pb2.py new file mode 100644 index 000000000..d9e99dd52 --- /dev/null +++ b/google/ads/google_ads/v4/proto/services/campaign_audience_view_service_pb2.py @@ -0,0 +1,112 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/services/campaign_audience_view_service.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.ads.google_ads.v4.proto.resources import campaign_audience_view_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_campaign__audience__view__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 +from google.api import client_pb2 as google_dot_api_dot_client__pb2 +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/services/campaign_audience_view_service.proto', + package='google.ads.googleads.v4.services', + syntax='proto3', + serialized_options=_b('\n$com.google.ads.googleads.v4.servicesB CampaignAudienceViewServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V4.Services\312\002 Google\\Ads\\GoogleAds\\V4\\Services\352\002$Google::Ads::GoogleAds::V4::Services'), + serialized_pb=_b('\nKgoogle/ads/googleads_v4/proto/services/campaign_audience_view_service.proto\x12 google.ads.googleads.v4.services\x1a\x44google/ads/googleads_v4/proto/resources/campaign_audience_view.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"n\n\x1eGetCampaignAudienceViewRequest\x12L\n\rresource_name\x18\x01 \x01(\tB5\xe0\x41\x02\xfa\x41/\n-googleads.googleapis.com/CampaignAudienceView2\xa2\x02\n\x1b\x43\x61mpaignAudienceViewService\x12\xe5\x01\n\x17GetCampaignAudienceView\x12@.google.ads.googleads.v4.services.GetCampaignAudienceViewRequest\x1a\x37.google.ads.googleads.v4.resources.CampaignAudienceView\"O\x82\xd3\xe4\x93\x02\x39\x12\x37/v4/{resource_name=customers/*/campaignAudienceViews/*}\xda\x41\rresource_name\x1a\x1b\xca\x41\x18googleads.googleapis.comB\x87\x02\n$com.google.ads.googleads.v4.servicesB CampaignAudienceViewServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V4.Services\xca\x02 Google\\Ads\\GoogleAds\\V4\\Services\xea\x02$Google::Ads::GoogleAds::V4::Servicesb\x06proto3') + , + dependencies=[google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_campaign__audience__view__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_api_dot_client__pb2.DESCRIPTOR,google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_api_dot_resource__pb2.DESCRIPTOR,]) + + + + +_GETCAMPAIGNAUDIENCEVIEWREQUEST = _descriptor.Descriptor( + name='GetCampaignAudienceViewRequest', + full_name='google.ads.googleads.v4.services.GetCampaignAudienceViewRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.services.GetCampaignAudienceViewRequest.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002\372A/\n-googleads.googleapis.com/CampaignAudienceView'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=298, + serialized_end=408, +) + +DESCRIPTOR.message_types_by_name['GetCampaignAudienceViewRequest'] = _GETCAMPAIGNAUDIENCEVIEWREQUEST +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +GetCampaignAudienceViewRequest = _reflection.GeneratedProtocolMessageType('GetCampaignAudienceViewRequest', (_message.Message,), dict( + DESCRIPTOR = _GETCAMPAIGNAUDIENCEVIEWREQUEST, + __module__ = 'google.ads.googleads_v4.proto.services.campaign_audience_view_service_pb2' + , + __doc__ = """Request message for + [CampaignAudienceViewService.GetCampaignAudienceView][google.ads.googleads.v4.services.CampaignAudienceViewService.GetCampaignAudienceView]. + + + Attributes: + resource_name: + Required. The resource name of the campaign audience view to + fetch. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.GetCampaignAudienceViewRequest) + )) +_sym_db.RegisterMessage(GetCampaignAudienceViewRequest) + + +DESCRIPTOR._options = None +_GETCAMPAIGNAUDIENCEVIEWREQUEST.fields_by_name['resource_name']._options = None + +_CAMPAIGNAUDIENCEVIEWSERVICE = _descriptor.ServiceDescriptor( + name='CampaignAudienceViewService', + full_name='google.ads.googleads.v4.services.CampaignAudienceViewService', + file=DESCRIPTOR, + index=0, + serialized_options=_b('\312A\030googleads.googleapis.com'), + serialized_start=411, + serialized_end=701, + methods=[ + _descriptor.MethodDescriptor( + name='GetCampaignAudienceView', + full_name='google.ads.googleads.v4.services.CampaignAudienceViewService.GetCampaignAudienceView', + index=0, + containing_service=None, + input_type=_GETCAMPAIGNAUDIENCEVIEWREQUEST, + output_type=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_campaign__audience__view__pb2._CAMPAIGNAUDIENCEVIEW, + serialized_options=_b('\202\323\344\223\0029\0227/v4/{resource_name=customers/*/campaignAudienceViews/*}\332A\rresource_name'), + ), +]) +_sym_db.RegisterServiceDescriptor(_CAMPAIGNAUDIENCEVIEWSERVICE) + +DESCRIPTOR.services_by_name['CampaignAudienceViewService'] = _CAMPAIGNAUDIENCEVIEWSERVICE + +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v4/proto/services/campaign_audience_view_service_pb2_grpc.py b/google/ads/google_ads/v4/proto/services/campaign_audience_view_service_pb2_grpc.py new file mode 100644 index 000000000..f79647283 --- /dev/null +++ b/google/ads/google_ads/v4/proto/services/campaign_audience_view_service_pb2_grpc.py @@ -0,0 +1,51 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +import grpc + +from google.ads.google_ads.v4.proto.resources import campaign_audience_view_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_campaign__audience__view__pb2 +from google.ads.google_ads.v4.proto.services import campaign_audience_view_service_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_campaign__audience__view__service__pb2 + + +class CampaignAudienceViewServiceStub(object): + """Proto file describing the Campaign Audience View service. + + Service to manage campaign audience views. + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.GetCampaignAudienceView = channel.unary_unary( + '/google.ads.googleads.v4.services.CampaignAudienceViewService/GetCampaignAudienceView', + request_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_campaign__audience__view__service__pb2.GetCampaignAudienceViewRequest.SerializeToString, + response_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_campaign__audience__view__pb2.CampaignAudienceView.FromString, + ) + + +class CampaignAudienceViewServiceServicer(object): + """Proto file describing the Campaign Audience View service. + + Service to manage campaign audience views. + """ + + def GetCampaignAudienceView(self, request, context): + """Returns the requested campaign audience view in full detail. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_CampaignAudienceViewServiceServicer_to_server(servicer, server): + rpc_method_handlers = { + 'GetCampaignAudienceView': grpc.unary_unary_rpc_method_handler( + servicer.GetCampaignAudienceView, + request_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_campaign__audience__view__service__pb2.GetCampaignAudienceViewRequest.FromString, + response_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_campaign__audience__view__pb2.CampaignAudienceView.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'google.ads.googleads.v4.services.CampaignAudienceViewService', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) diff --git a/google/ads/google_ads/v4/proto/services/campaign_bid_modifier_service_pb2.py b/google/ads/google_ads/v4/proto/services/campaign_bid_modifier_service_pb2.py new file mode 100644 index 000000000..f55997e58 --- /dev/null +++ b/google/ads/google_ads/v4/proto/services/campaign_bid_modifier_service_pb2.py @@ -0,0 +1,412 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/services/campaign_bid_modifier_service.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.ads.google_ads.v4.proto.resources import campaign_bid_modifier_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_campaign__bid__modifier__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 +from google.api import client_pb2 as google_dot_api_dot_client__pb2 +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 +from google.protobuf import field_mask_pb2 as google_dot_protobuf_dot_field__mask__pb2 +from google.rpc import status_pb2 as google_dot_rpc_dot_status__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/services/campaign_bid_modifier_service.proto', + package='google.ads.googleads.v4.services', + syntax='proto3', + serialized_options=_b('\n$com.google.ads.googleads.v4.servicesB\037CampaignBidModifierServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V4.Services\312\002 Google\\Ads\\GoogleAds\\V4\\Services\352\002$Google::Ads::GoogleAds::V4::Services'), + serialized_pb=_b('\nJgoogle/ads/googleads_v4/proto/services/campaign_bid_modifier_service.proto\x12 google.ads.googleads.v4.services\x1a\x43google/ads/googleads_v4/proto/resources/campaign_bid_modifier.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/protobuf/field_mask.proto\x1a\x17google/rpc/status.proto\"l\n\x1dGetCampaignBidModifierRequest\x12K\n\rresource_name\x18\x01 \x01(\tB4\xe0\x41\x02\xfa\x41.\n,googleads.googleapis.com/CampaignBidModifier\"\xc6\x01\n!MutateCampaignBidModifiersRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12W\n\noperations\x18\x02 \x03(\x0b\x32>.google.ads.googleads.v4.services.CampaignBidModifierOperationB\x03\xe0\x41\x02\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\"\x82\x02\n\x1c\x43\x61mpaignBidModifierOperation\x12/\n\x0bupdate_mask\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12H\n\x06\x63reate\x18\x01 \x01(\x0b\x32\x36.google.ads.googleads.v4.resources.CampaignBidModifierH\x00\x12H\n\x06update\x18\x02 \x01(\x0b\x32\x36.google.ads.googleads.v4.resources.CampaignBidModifierH\x00\x12\x10\n\x06remove\x18\x03 \x01(\tH\x00\x42\x0b\n\toperation\"\xab\x01\n\"MutateCampaignBidModifiersResponse\x12\x31\n\x15partial_failure_error\x18\x03 \x01(\x0b\x32\x12.google.rpc.Status\x12R\n\x07results\x18\x02 \x03(\x0b\x32\x41.google.ads.googleads.v4.services.MutateCampaignBidModifierResult\"8\n\x1fMutateCampaignBidModifierResult\x12\x15\n\rresource_name\x18\x01 \x01(\t2\xa6\x04\n\x1a\x43\x61mpaignBidModifierService\x12\xe1\x01\n\x16GetCampaignBidModifier\x12?.google.ads.googleads.v4.services.GetCampaignBidModifierRequest\x1a\x36.google.ads.googleads.v4.resources.CampaignBidModifier\"N\x82\xd3\xe4\x93\x02\x38\x12\x36/v4/{resource_name=customers/*/campaignBidModifiers/*}\xda\x41\rresource_name\x12\x86\x02\n\x1aMutateCampaignBidModifiers\x12\x43.google.ads.googleads.v4.services.MutateCampaignBidModifiersRequest\x1a\x44.google.ads.googleads.v4.services.MutateCampaignBidModifiersResponse\"]\x82\xd3\xe4\x93\x02>\"9/v4/customers/{customer_id=*}/campaignBidModifiers:mutate:\x01*\xda\x41\x16\x63ustomer_id,operations\x1a\x1b\xca\x41\x18googleads.googleapis.comB\x86\x02\n$com.google.ads.googleads.v4.servicesB\x1f\x43\x61mpaignBidModifierServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V4.Services\xca\x02 Google\\Ads\\GoogleAds\\V4\\Services\xea\x02$Google::Ads::GoogleAds::V4::Servicesb\x06proto3') + , + dependencies=[google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_campaign__bid__modifier__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_api_dot_client__pb2.DESCRIPTOR,google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_api_dot_resource__pb2.DESCRIPTOR,google_dot_protobuf_dot_field__mask__pb2.DESCRIPTOR,google_dot_rpc_dot_status__pb2.DESCRIPTOR,]) + + + + +_GETCAMPAIGNBIDMODIFIERREQUEST = _descriptor.Descriptor( + name='GetCampaignBidModifierRequest', + full_name='google.ads.googleads.v4.services.GetCampaignBidModifierRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.services.GetCampaignBidModifierRequest.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002\372A.\n,googleads.googleapis.com/CampaignBidModifier'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=355, + serialized_end=463, +) + + +_MUTATECAMPAIGNBIDMODIFIERSREQUEST = _descriptor.Descriptor( + name='MutateCampaignBidModifiersRequest', + full_name='google.ads.googleads.v4.services.MutateCampaignBidModifiersRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='customer_id', full_name='google.ads.googleads.v4.services.MutateCampaignBidModifiersRequest.customer_id', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='operations', full_name='google.ads.googleads.v4.services.MutateCampaignBidModifiersRequest.operations', index=1, + number=2, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='partial_failure', full_name='google.ads.googleads.v4.services.MutateCampaignBidModifiersRequest.partial_failure', index=2, + number=3, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='validate_only', full_name='google.ads.googleads.v4.services.MutateCampaignBidModifiersRequest.validate_only', index=3, + number=4, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=466, + serialized_end=664, +) + + +_CAMPAIGNBIDMODIFIEROPERATION = _descriptor.Descriptor( + name='CampaignBidModifierOperation', + full_name='google.ads.googleads.v4.services.CampaignBidModifierOperation', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='update_mask', full_name='google.ads.googleads.v4.services.CampaignBidModifierOperation.update_mask', index=0, + number=4, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='create', full_name='google.ads.googleads.v4.services.CampaignBidModifierOperation.create', index=1, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='update', full_name='google.ads.googleads.v4.services.CampaignBidModifierOperation.update', index=2, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='remove', full_name='google.ads.googleads.v4.services.CampaignBidModifierOperation.remove', index=3, + number=3, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name='operation', full_name='google.ads.googleads.v4.services.CampaignBidModifierOperation.operation', + index=0, containing_type=None, fields=[]), + ], + serialized_start=667, + serialized_end=925, +) + + +_MUTATECAMPAIGNBIDMODIFIERSRESPONSE = _descriptor.Descriptor( + name='MutateCampaignBidModifiersResponse', + full_name='google.ads.googleads.v4.services.MutateCampaignBidModifiersResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='partial_failure_error', full_name='google.ads.googleads.v4.services.MutateCampaignBidModifiersResponse.partial_failure_error', index=0, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='results', full_name='google.ads.googleads.v4.services.MutateCampaignBidModifiersResponse.results', index=1, + number=2, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=928, + serialized_end=1099, +) + + +_MUTATECAMPAIGNBIDMODIFIERRESULT = _descriptor.Descriptor( + name='MutateCampaignBidModifierResult', + full_name='google.ads.googleads.v4.services.MutateCampaignBidModifierResult', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.services.MutateCampaignBidModifierResult.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1101, + serialized_end=1157, +) + +_MUTATECAMPAIGNBIDMODIFIERSREQUEST.fields_by_name['operations'].message_type = _CAMPAIGNBIDMODIFIEROPERATION +_CAMPAIGNBIDMODIFIEROPERATION.fields_by_name['update_mask'].message_type = google_dot_protobuf_dot_field__mask__pb2._FIELDMASK +_CAMPAIGNBIDMODIFIEROPERATION.fields_by_name['create'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_campaign__bid__modifier__pb2._CAMPAIGNBIDMODIFIER +_CAMPAIGNBIDMODIFIEROPERATION.fields_by_name['update'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_campaign__bid__modifier__pb2._CAMPAIGNBIDMODIFIER +_CAMPAIGNBIDMODIFIEROPERATION.oneofs_by_name['operation'].fields.append( + _CAMPAIGNBIDMODIFIEROPERATION.fields_by_name['create']) +_CAMPAIGNBIDMODIFIEROPERATION.fields_by_name['create'].containing_oneof = _CAMPAIGNBIDMODIFIEROPERATION.oneofs_by_name['operation'] +_CAMPAIGNBIDMODIFIEROPERATION.oneofs_by_name['operation'].fields.append( + _CAMPAIGNBIDMODIFIEROPERATION.fields_by_name['update']) +_CAMPAIGNBIDMODIFIEROPERATION.fields_by_name['update'].containing_oneof = _CAMPAIGNBIDMODIFIEROPERATION.oneofs_by_name['operation'] +_CAMPAIGNBIDMODIFIEROPERATION.oneofs_by_name['operation'].fields.append( + _CAMPAIGNBIDMODIFIEROPERATION.fields_by_name['remove']) +_CAMPAIGNBIDMODIFIEROPERATION.fields_by_name['remove'].containing_oneof = _CAMPAIGNBIDMODIFIEROPERATION.oneofs_by_name['operation'] +_MUTATECAMPAIGNBIDMODIFIERSRESPONSE.fields_by_name['partial_failure_error'].message_type = google_dot_rpc_dot_status__pb2._STATUS +_MUTATECAMPAIGNBIDMODIFIERSRESPONSE.fields_by_name['results'].message_type = _MUTATECAMPAIGNBIDMODIFIERRESULT +DESCRIPTOR.message_types_by_name['GetCampaignBidModifierRequest'] = _GETCAMPAIGNBIDMODIFIERREQUEST +DESCRIPTOR.message_types_by_name['MutateCampaignBidModifiersRequest'] = _MUTATECAMPAIGNBIDMODIFIERSREQUEST +DESCRIPTOR.message_types_by_name['CampaignBidModifierOperation'] = _CAMPAIGNBIDMODIFIEROPERATION +DESCRIPTOR.message_types_by_name['MutateCampaignBidModifiersResponse'] = _MUTATECAMPAIGNBIDMODIFIERSRESPONSE +DESCRIPTOR.message_types_by_name['MutateCampaignBidModifierResult'] = _MUTATECAMPAIGNBIDMODIFIERRESULT +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +GetCampaignBidModifierRequest = _reflection.GeneratedProtocolMessageType('GetCampaignBidModifierRequest', (_message.Message,), dict( + DESCRIPTOR = _GETCAMPAIGNBIDMODIFIERREQUEST, + __module__ = 'google.ads.googleads_v4.proto.services.campaign_bid_modifier_service_pb2' + , + __doc__ = """Request message for + [CampaignBidModifierService.GetCampaignBidModifier][google.ads.googleads.v4.services.CampaignBidModifierService.GetCampaignBidModifier]. + + + Attributes: + resource_name: + Required. The resource name of the campaign bid modifier to + fetch. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.GetCampaignBidModifierRequest) + )) +_sym_db.RegisterMessage(GetCampaignBidModifierRequest) + +MutateCampaignBidModifiersRequest = _reflection.GeneratedProtocolMessageType('MutateCampaignBidModifiersRequest', (_message.Message,), dict( + DESCRIPTOR = _MUTATECAMPAIGNBIDMODIFIERSREQUEST, + __module__ = 'google.ads.googleads_v4.proto.services.campaign_bid_modifier_service_pb2' + , + __doc__ = """Request message for + [CampaignBidModifierService.MutateCampaignBidModifier][]. + + + Attributes: + customer_id: + Required. ID of the customer whose campaign bid modifiers are + being modified. + operations: + Required. The list of operations to perform on individual + campaign bid modifiers. + partial_failure: + If true, successful operations will be carried out and invalid + operations will return errors. If false, all operations will + be carried out in one transaction if and only if they are all + valid. Default is false. + validate_only: + If true, the request is validated but not executed. Only + errors are returned, not results. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.MutateCampaignBidModifiersRequest) + )) +_sym_db.RegisterMessage(MutateCampaignBidModifiersRequest) + +CampaignBidModifierOperation = _reflection.GeneratedProtocolMessageType('CampaignBidModifierOperation', (_message.Message,), dict( + DESCRIPTOR = _CAMPAIGNBIDMODIFIEROPERATION, + __module__ = 'google.ads.googleads_v4.proto.services.campaign_bid_modifier_service_pb2' + , + __doc__ = """A single operation (create, remove, update) on a campaign bid modifier. + + + Attributes: + update_mask: + FieldMask that determines which resource fields are modified + in an update. + operation: + The mutate operation. + create: + Create operation: No resource name is expected for the new + campaign bid modifier. + update: + Update operation: The campaign bid modifier is expected to + have a valid resource name. + remove: + Remove operation: A resource name for the removed campaign bid + modifier is expected, in this format: ``customers/{customer_i + d}/CampaignBidModifiers/{campaign_id}~{criterion_id}`` + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.CampaignBidModifierOperation) + )) +_sym_db.RegisterMessage(CampaignBidModifierOperation) + +MutateCampaignBidModifiersResponse = _reflection.GeneratedProtocolMessageType('MutateCampaignBidModifiersResponse', (_message.Message,), dict( + DESCRIPTOR = _MUTATECAMPAIGNBIDMODIFIERSRESPONSE, + __module__ = 'google.ads.googleads_v4.proto.services.campaign_bid_modifier_service_pb2' + , + __doc__ = """Response message for campaign bid modifiers mutate. + + + Attributes: + partial_failure_error: + Errors that pertain to operation failures in the partial + failure mode. Returned only when partial\_failure = true and + all errors occur inside the operations. If any errors occur + outside the operations (e.g. auth errors), we return an RPC + level error. + results: + All results for the mutate. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.MutateCampaignBidModifiersResponse) + )) +_sym_db.RegisterMessage(MutateCampaignBidModifiersResponse) + +MutateCampaignBidModifierResult = _reflection.GeneratedProtocolMessageType('MutateCampaignBidModifierResult', (_message.Message,), dict( + DESCRIPTOR = _MUTATECAMPAIGNBIDMODIFIERRESULT, + __module__ = 'google.ads.googleads_v4.proto.services.campaign_bid_modifier_service_pb2' + , + __doc__ = """The result for the criterion mutate. + + + Attributes: + resource_name: + Returned for successful operations. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.MutateCampaignBidModifierResult) + )) +_sym_db.RegisterMessage(MutateCampaignBidModifierResult) + + +DESCRIPTOR._options = None +_GETCAMPAIGNBIDMODIFIERREQUEST.fields_by_name['resource_name']._options = None +_MUTATECAMPAIGNBIDMODIFIERSREQUEST.fields_by_name['customer_id']._options = None +_MUTATECAMPAIGNBIDMODIFIERSREQUEST.fields_by_name['operations']._options = None + +_CAMPAIGNBIDMODIFIERSERVICE = _descriptor.ServiceDescriptor( + name='CampaignBidModifierService', + full_name='google.ads.googleads.v4.services.CampaignBidModifierService', + file=DESCRIPTOR, + index=0, + serialized_options=_b('\312A\030googleads.googleapis.com'), + serialized_start=1160, + serialized_end=1710, + methods=[ + _descriptor.MethodDescriptor( + name='GetCampaignBidModifier', + full_name='google.ads.googleads.v4.services.CampaignBidModifierService.GetCampaignBidModifier', + index=0, + containing_service=None, + input_type=_GETCAMPAIGNBIDMODIFIERREQUEST, + output_type=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_campaign__bid__modifier__pb2._CAMPAIGNBIDMODIFIER, + serialized_options=_b('\202\323\344\223\0028\0226/v4/{resource_name=customers/*/campaignBidModifiers/*}\332A\rresource_name'), + ), + _descriptor.MethodDescriptor( + name='MutateCampaignBidModifiers', + full_name='google.ads.googleads.v4.services.CampaignBidModifierService.MutateCampaignBidModifiers', + index=1, + containing_service=None, + input_type=_MUTATECAMPAIGNBIDMODIFIERSREQUEST, + output_type=_MUTATECAMPAIGNBIDMODIFIERSRESPONSE, + serialized_options=_b('\202\323\344\223\002>\"9/v4/customers/{customer_id=*}/campaignBidModifiers:mutate:\001*\332A\026customer_id,operations'), + ), +]) +_sym_db.RegisterServiceDescriptor(_CAMPAIGNBIDMODIFIERSERVICE) + +DESCRIPTOR.services_by_name['CampaignBidModifierService'] = _CAMPAIGNBIDMODIFIERSERVICE + +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v4/proto/services/campaign_bid_modifier_service_pb2_grpc.py b/google/ads/google_ads/v4/proto/services/campaign_bid_modifier_service_pb2_grpc.py new file mode 100644 index 000000000..dccfb668a --- /dev/null +++ b/google/ads/google_ads/v4/proto/services/campaign_bid_modifier_service_pb2_grpc.py @@ -0,0 +1,69 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +import grpc + +from google.ads.google_ads.v4.proto.resources import campaign_bid_modifier_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_campaign__bid__modifier__pb2 +from google.ads.google_ads.v4.proto.services import campaign_bid_modifier_service_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_campaign__bid__modifier__service__pb2 + + +class CampaignBidModifierServiceStub(object): + """Proto file describing the Campaign Bid Modifier service. + + Service to manage campaign bid modifiers. + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.GetCampaignBidModifier = channel.unary_unary( + '/google.ads.googleads.v4.services.CampaignBidModifierService/GetCampaignBidModifier', + request_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_campaign__bid__modifier__service__pb2.GetCampaignBidModifierRequest.SerializeToString, + response_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_campaign__bid__modifier__pb2.CampaignBidModifier.FromString, + ) + self.MutateCampaignBidModifiers = channel.unary_unary( + '/google.ads.googleads.v4.services.CampaignBidModifierService/MutateCampaignBidModifiers', + request_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_campaign__bid__modifier__service__pb2.MutateCampaignBidModifiersRequest.SerializeToString, + response_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_campaign__bid__modifier__service__pb2.MutateCampaignBidModifiersResponse.FromString, + ) + + +class CampaignBidModifierServiceServicer(object): + """Proto file describing the Campaign Bid Modifier service. + + Service to manage campaign bid modifiers. + """ + + def GetCampaignBidModifier(self, request, context): + """Returns the requested campaign bid modifier in full detail. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def MutateCampaignBidModifiers(self, request, context): + """Creates, updates, or removes campaign bid modifiers. + Operation statuses are returned. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_CampaignBidModifierServiceServicer_to_server(servicer, server): + rpc_method_handlers = { + 'GetCampaignBidModifier': grpc.unary_unary_rpc_method_handler( + servicer.GetCampaignBidModifier, + request_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_campaign__bid__modifier__service__pb2.GetCampaignBidModifierRequest.FromString, + response_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_campaign__bid__modifier__pb2.CampaignBidModifier.SerializeToString, + ), + 'MutateCampaignBidModifiers': grpc.unary_unary_rpc_method_handler( + servicer.MutateCampaignBidModifiers, + request_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_campaign__bid__modifier__service__pb2.MutateCampaignBidModifiersRequest.FromString, + response_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_campaign__bid__modifier__service__pb2.MutateCampaignBidModifiersResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'google.ads.googleads.v4.services.CampaignBidModifierService', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) diff --git a/google/ads/google_ads/v4/proto/services/campaign_budget_service_pb2.py b/google/ads/google_ads/v4/proto/services/campaign_budget_service_pb2.py new file mode 100644 index 000000000..2974f974c --- /dev/null +++ b/google/ads/google_ads/v4/proto/services/campaign_budget_service_pb2.py @@ -0,0 +1,411 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/services/campaign_budget_service.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.ads.google_ads.v4.proto.resources import campaign_budget_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_campaign__budget__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 +from google.api import client_pb2 as google_dot_api_dot_client__pb2 +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 +from google.protobuf import field_mask_pb2 as google_dot_protobuf_dot_field__mask__pb2 +from google.rpc import status_pb2 as google_dot_rpc_dot_status__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/services/campaign_budget_service.proto', + package='google.ads.googleads.v4.services', + syntax='proto3', + serialized_options=_b('\n$com.google.ads.googleads.v4.servicesB\032CampaignBudgetServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V4.Services\312\002 Google\\Ads\\GoogleAds\\V4\\Services\352\002$Google::Ads::GoogleAds::V4::Services'), + serialized_pb=_b('\nDgoogle/ads/googleads_v4/proto/services/campaign_budget_service.proto\x12 google.ads.googleads.v4.services\x1a=google/ads/googleads_v4/proto/resources/campaign_budget.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/protobuf/field_mask.proto\x1a\x17google/rpc/status.proto\"b\n\x18GetCampaignBudgetRequest\x12\x46\n\rresource_name\x18\x01 \x01(\tB/\xe0\x41\x02\xfa\x41)\n\'googleads.googleapis.com/CampaignBudget\"\xbc\x01\n\x1cMutateCampaignBudgetsRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12R\n\noperations\x18\x02 \x03(\x0b\x32\x39.google.ads.googleads.v4.services.CampaignBudgetOperationB\x03\xe0\x41\x02\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\"\xf3\x01\n\x17\x43\x61mpaignBudgetOperation\x12/\n\x0bupdate_mask\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12\x43\n\x06\x63reate\x18\x01 \x01(\x0b\x32\x31.google.ads.googleads.v4.resources.CampaignBudgetH\x00\x12\x43\n\x06update\x18\x02 \x01(\x0b\x32\x31.google.ads.googleads.v4.resources.CampaignBudgetH\x00\x12\x10\n\x06remove\x18\x03 \x01(\tH\x00\x42\x0b\n\toperation\"\xa1\x01\n\x1dMutateCampaignBudgetsResponse\x12\x31\n\x15partial_failure_error\x18\x03 \x01(\x0b\x32\x12.google.rpc.Status\x12M\n\x07results\x18\x02 \x03(\x0b\x32<.google.ads.googleads.v4.services.MutateCampaignBudgetResult\"3\n\x1aMutateCampaignBudgetResult\x12\x15\n\rresource_name\x18\x01 \x01(\t2\xf9\x03\n\x15\x43\x61mpaignBudgetService\x12\xcd\x01\n\x11GetCampaignBudget\x12:.google.ads.googleads.v4.services.GetCampaignBudgetRequest\x1a\x31.google.ads.googleads.v4.resources.CampaignBudget\"I\x82\xd3\xe4\x93\x02\x33\x12\x31/v4/{resource_name=customers/*/campaignBudgets/*}\xda\x41\rresource_name\x12\xf2\x01\n\x15MutateCampaignBudgets\x12>.google.ads.googleads.v4.services.MutateCampaignBudgetsRequest\x1a?.google.ads.googleads.v4.services.MutateCampaignBudgetsResponse\"X\x82\xd3\xe4\x93\x02\x39\"4/v4/customers/{customer_id=*}/campaignBudgets:mutate:\x01*\xda\x41\x16\x63ustomer_id,operations\x1a\x1b\xca\x41\x18googleads.googleapis.comB\x81\x02\n$com.google.ads.googleads.v4.servicesB\x1a\x43\x61mpaignBudgetServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V4.Services\xca\x02 Google\\Ads\\GoogleAds\\V4\\Services\xea\x02$Google::Ads::GoogleAds::V4::Servicesb\x06proto3') + , + dependencies=[google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_campaign__budget__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_api_dot_client__pb2.DESCRIPTOR,google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_api_dot_resource__pb2.DESCRIPTOR,google_dot_protobuf_dot_field__mask__pb2.DESCRIPTOR,google_dot_rpc_dot_status__pb2.DESCRIPTOR,]) + + + + +_GETCAMPAIGNBUDGETREQUEST = _descriptor.Descriptor( + name='GetCampaignBudgetRequest', + full_name='google.ads.googleads.v4.services.GetCampaignBudgetRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.services.GetCampaignBudgetRequest.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002\372A)\n\'googleads.googleapis.com/CampaignBudget'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=343, + serialized_end=441, +) + + +_MUTATECAMPAIGNBUDGETSREQUEST = _descriptor.Descriptor( + name='MutateCampaignBudgetsRequest', + full_name='google.ads.googleads.v4.services.MutateCampaignBudgetsRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='customer_id', full_name='google.ads.googleads.v4.services.MutateCampaignBudgetsRequest.customer_id', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='operations', full_name='google.ads.googleads.v4.services.MutateCampaignBudgetsRequest.operations', index=1, + number=2, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='partial_failure', full_name='google.ads.googleads.v4.services.MutateCampaignBudgetsRequest.partial_failure', index=2, + number=3, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='validate_only', full_name='google.ads.googleads.v4.services.MutateCampaignBudgetsRequest.validate_only', index=3, + number=4, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=444, + serialized_end=632, +) + + +_CAMPAIGNBUDGETOPERATION = _descriptor.Descriptor( + name='CampaignBudgetOperation', + full_name='google.ads.googleads.v4.services.CampaignBudgetOperation', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='update_mask', full_name='google.ads.googleads.v4.services.CampaignBudgetOperation.update_mask', index=0, + number=4, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='create', full_name='google.ads.googleads.v4.services.CampaignBudgetOperation.create', index=1, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='update', full_name='google.ads.googleads.v4.services.CampaignBudgetOperation.update', index=2, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='remove', full_name='google.ads.googleads.v4.services.CampaignBudgetOperation.remove', index=3, + number=3, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name='operation', full_name='google.ads.googleads.v4.services.CampaignBudgetOperation.operation', + index=0, containing_type=None, fields=[]), + ], + serialized_start=635, + serialized_end=878, +) + + +_MUTATECAMPAIGNBUDGETSRESPONSE = _descriptor.Descriptor( + name='MutateCampaignBudgetsResponse', + full_name='google.ads.googleads.v4.services.MutateCampaignBudgetsResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='partial_failure_error', full_name='google.ads.googleads.v4.services.MutateCampaignBudgetsResponse.partial_failure_error', index=0, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='results', full_name='google.ads.googleads.v4.services.MutateCampaignBudgetsResponse.results', index=1, + number=2, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=881, + serialized_end=1042, +) + + +_MUTATECAMPAIGNBUDGETRESULT = _descriptor.Descriptor( + name='MutateCampaignBudgetResult', + full_name='google.ads.googleads.v4.services.MutateCampaignBudgetResult', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.services.MutateCampaignBudgetResult.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1044, + serialized_end=1095, +) + +_MUTATECAMPAIGNBUDGETSREQUEST.fields_by_name['operations'].message_type = _CAMPAIGNBUDGETOPERATION +_CAMPAIGNBUDGETOPERATION.fields_by_name['update_mask'].message_type = google_dot_protobuf_dot_field__mask__pb2._FIELDMASK +_CAMPAIGNBUDGETOPERATION.fields_by_name['create'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_campaign__budget__pb2._CAMPAIGNBUDGET +_CAMPAIGNBUDGETOPERATION.fields_by_name['update'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_campaign__budget__pb2._CAMPAIGNBUDGET +_CAMPAIGNBUDGETOPERATION.oneofs_by_name['operation'].fields.append( + _CAMPAIGNBUDGETOPERATION.fields_by_name['create']) +_CAMPAIGNBUDGETOPERATION.fields_by_name['create'].containing_oneof = _CAMPAIGNBUDGETOPERATION.oneofs_by_name['operation'] +_CAMPAIGNBUDGETOPERATION.oneofs_by_name['operation'].fields.append( + _CAMPAIGNBUDGETOPERATION.fields_by_name['update']) +_CAMPAIGNBUDGETOPERATION.fields_by_name['update'].containing_oneof = _CAMPAIGNBUDGETOPERATION.oneofs_by_name['operation'] +_CAMPAIGNBUDGETOPERATION.oneofs_by_name['operation'].fields.append( + _CAMPAIGNBUDGETOPERATION.fields_by_name['remove']) +_CAMPAIGNBUDGETOPERATION.fields_by_name['remove'].containing_oneof = _CAMPAIGNBUDGETOPERATION.oneofs_by_name['operation'] +_MUTATECAMPAIGNBUDGETSRESPONSE.fields_by_name['partial_failure_error'].message_type = google_dot_rpc_dot_status__pb2._STATUS +_MUTATECAMPAIGNBUDGETSRESPONSE.fields_by_name['results'].message_type = _MUTATECAMPAIGNBUDGETRESULT +DESCRIPTOR.message_types_by_name['GetCampaignBudgetRequest'] = _GETCAMPAIGNBUDGETREQUEST +DESCRIPTOR.message_types_by_name['MutateCampaignBudgetsRequest'] = _MUTATECAMPAIGNBUDGETSREQUEST +DESCRIPTOR.message_types_by_name['CampaignBudgetOperation'] = _CAMPAIGNBUDGETOPERATION +DESCRIPTOR.message_types_by_name['MutateCampaignBudgetsResponse'] = _MUTATECAMPAIGNBUDGETSRESPONSE +DESCRIPTOR.message_types_by_name['MutateCampaignBudgetResult'] = _MUTATECAMPAIGNBUDGETRESULT +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +GetCampaignBudgetRequest = _reflection.GeneratedProtocolMessageType('GetCampaignBudgetRequest', (_message.Message,), dict( + DESCRIPTOR = _GETCAMPAIGNBUDGETREQUEST, + __module__ = 'google.ads.googleads_v4.proto.services.campaign_budget_service_pb2' + , + __doc__ = """Request message for + [CampaignBudgetService.GetCampaignBudget][google.ads.googleads.v4.services.CampaignBudgetService.GetCampaignBudget]. + + + Attributes: + resource_name: + Required. The resource name of the campaign budget to fetch. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.GetCampaignBudgetRequest) + )) +_sym_db.RegisterMessage(GetCampaignBudgetRequest) + +MutateCampaignBudgetsRequest = _reflection.GeneratedProtocolMessageType('MutateCampaignBudgetsRequest', (_message.Message,), dict( + DESCRIPTOR = _MUTATECAMPAIGNBUDGETSREQUEST, + __module__ = 'google.ads.googleads_v4.proto.services.campaign_budget_service_pb2' + , + __doc__ = """Request message for + [CampaignBudgetService.MutateCampaignBudgets][google.ads.googleads.v4.services.CampaignBudgetService.MutateCampaignBudgets]. + + + Attributes: + customer_id: + Required. The ID of the customer whose campaign budgets are + being modified. + operations: + Required. The list of operations to perform on individual + campaign budgets. + partial_failure: + If true, successful operations will be carried out and invalid + operations will return errors. If false, all operations will + be carried out in one transaction if and only if they are all + valid. Default is false. + validate_only: + If true, the request is validated but not executed. Only + errors are returned, not results. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.MutateCampaignBudgetsRequest) + )) +_sym_db.RegisterMessage(MutateCampaignBudgetsRequest) + +CampaignBudgetOperation = _reflection.GeneratedProtocolMessageType('CampaignBudgetOperation', (_message.Message,), dict( + DESCRIPTOR = _CAMPAIGNBUDGETOPERATION, + __module__ = 'google.ads.googleads_v4.proto.services.campaign_budget_service_pb2' + , + __doc__ = """A single operation (create, update, remove) on a campaign budget. + + + Attributes: + update_mask: + FieldMask that determines which resource fields are modified + in an update. + operation: + The mutate operation. + create: + Create operation: No resource name is expected for the new + budget. + update: + Update operation: The campaign budget is expected to have a + valid resource name. + remove: + Remove operation: A resource name for the removed budget is + expected, in this format: + ``customers/{customer_id}/campaignBudgets/{budget_id}`` + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.CampaignBudgetOperation) + )) +_sym_db.RegisterMessage(CampaignBudgetOperation) + +MutateCampaignBudgetsResponse = _reflection.GeneratedProtocolMessageType('MutateCampaignBudgetsResponse', (_message.Message,), dict( + DESCRIPTOR = _MUTATECAMPAIGNBUDGETSRESPONSE, + __module__ = 'google.ads.googleads_v4.proto.services.campaign_budget_service_pb2' + , + __doc__ = """Response message for campaign budget mutate. + + + Attributes: + partial_failure_error: + Errors that pertain to operation failures in the partial + failure mode. Returned only when partial\_failure = true and + all errors occur inside the operations. If any errors occur + outside the operations (e.g. auth errors), we return an RPC + level error. + results: + All results for the mutate. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.MutateCampaignBudgetsResponse) + )) +_sym_db.RegisterMessage(MutateCampaignBudgetsResponse) + +MutateCampaignBudgetResult = _reflection.GeneratedProtocolMessageType('MutateCampaignBudgetResult', (_message.Message,), dict( + DESCRIPTOR = _MUTATECAMPAIGNBUDGETRESULT, + __module__ = 'google.ads.googleads_v4.proto.services.campaign_budget_service_pb2' + , + __doc__ = """The result for the campaign budget mutate. + + + Attributes: + resource_name: + Returned for successful operations. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.MutateCampaignBudgetResult) + )) +_sym_db.RegisterMessage(MutateCampaignBudgetResult) + + +DESCRIPTOR._options = None +_GETCAMPAIGNBUDGETREQUEST.fields_by_name['resource_name']._options = None +_MUTATECAMPAIGNBUDGETSREQUEST.fields_by_name['customer_id']._options = None +_MUTATECAMPAIGNBUDGETSREQUEST.fields_by_name['operations']._options = None + +_CAMPAIGNBUDGETSERVICE = _descriptor.ServiceDescriptor( + name='CampaignBudgetService', + full_name='google.ads.googleads.v4.services.CampaignBudgetService', + file=DESCRIPTOR, + index=0, + serialized_options=_b('\312A\030googleads.googleapis.com'), + serialized_start=1098, + serialized_end=1603, + methods=[ + _descriptor.MethodDescriptor( + name='GetCampaignBudget', + full_name='google.ads.googleads.v4.services.CampaignBudgetService.GetCampaignBudget', + index=0, + containing_service=None, + input_type=_GETCAMPAIGNBUDGETREQUEST, + output_type=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_campaign__budget__pb2._CAMPAIGNBUDGET, + serialized_options=_b('\202\323\344\223\0023\0221/v4/{resource_name=customers/*/campaignBudgets/*}\332A\rresource_name'), + ), + _descriptor.MethodDescriptor( + name='MutateCampaignBudgets', + full_name='google.ads.googleads.v4.services.CampaignBudgetService.MutateCampaignBudgets', + index=1, + containing_service=None, + input_type=_MUTATECAMPAIGNBUDGETSREQUEST, + output_type=_MUTATECAMPAIGNBUDGETSRESPONSE, + serialized_options=_b('\202\323\344\223\0029\"4/v4/customers/{customer_id=*}/campaignBudgets:mutate:\001*\332A\026customer_id,operations'), + ), +]) +_sym_db.RegisterServiceDescriptor(_CAMPAIGNBUDGETSERVICE) + +DESCRIPTOR.services_by_name['CampaignBudgetService'] = _CAMPAIGNBUDGETSERVICE + +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v4/proto/services/campaign_budget_service_pb2_grpc.py b/google/ads/google_ads/v4/proto/services/campaign_budget_service_pb2_grpc.py new file mode 100644 index 000000000..bbcf1aad3 --- /dev/null +++ b/google/ads/google_ads/v4/proto/services/campaign_budget_service_pb2_grpc.py @@ -0,0 +1,69 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +import grpc + +from google.ads.google_ads.v4.proto.resources import campaign_budget_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_campaign__budget__pb2 +from google.ads.google_ads.v4.proto.services import campaign_budget_service_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_campaign__budget__service__pb2 + + +class CampaignBudgetServiceStub(object): + """Proto file describing the Campaign Budget service. + + Service to manage campaign budgets. + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.GetCampaignBudget = channel.unary_unary( + '/google.ads.googleads.v4.services.CampaignBudgetService/GetCampaignBudget', + request_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_campaign__budget__service__pb2.GetCampaignBudgetRequest.SerializeToString, + response_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_campaign__budget__pb2.CampaignBudget.FromString, + ) + self.MutateCampaignBudgets = channel.unary_unary( + '/google.ads.googleads.v4.services.CampaignBudgetService/MutateCampaignBudgets', + request_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_campaign__budget__service__pb2.MutateCampaignBudgetsRequest.SerializeToString, + response_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_campaign__budget__service__pb2.MutateCampaignBudgetsResponse.FromString, + ) + + +class CampaignBudgetServiceServicer(object): + """Proto file describing the Campaign Budget service. + + Service to manage campaign budgets. + """ + + def GetCampaignBudget(self, request, context): + """Returns the requested Campaign Budget in full detail. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def MutateCampaignBudgets(self, request, context): + """Creates, updates, or removes campaign budgets. Operation statuses are + returned. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_CampaignBudgetServiceServicer_to_server(servicer, server): + rpc_method_handlers = { + 'GetCampaignBudget': grpc.unary_unary_rpc_method_handler( + servicer.GetCampaignBudget, + request_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_campaign__budget__service__pb2.GetCampaignBudgetRequest.FromString, + response_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_campaign__budget__pb2.CampaignBudget.SerializeToString, + ), + 'MutateCampaignBudgets': grpc.unary_unary_rpc_method_handler( + servicer.MutateCampaignBudgets, + request_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_campaign__budget__service__pb2.MutateCampaignBudgetsRequest.FromString, + response_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_campaign__budget__service__pb2.MutateCampaignBudgetsResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'google.ads.googleads.v4.services.CampaignBudgetService', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) diff --git a/google/ads/google_ads/v4/proto/services/campaign_criterion_service_pb2.py b/google/ads/google_ads/v4/proto/services/campaign_criterion_service_pb2.py new file mode 100644 index 000000000..962f6f040 --- /dev/null +++ b/google/ads/google_ads/v4/proto/services/campaign_criterion_service_pb2.py @@ -0,0 +1,411 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/services/campaign_criterion_service.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.ads.google_ads.v4.proto.resources import campaign_criterion_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_campaign__criterion__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 +from google.api import client_pb2 as google_dot_api_dot_client__pb2 +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 +from google.protobuf import field_mask_pb2 as google_dot_protobuf_dot_field__mask__pb2 +from google.rpc import status_pb2 as google_dot_rpc_dot_status__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/services/campaign_criterion_service.proto', + package='google.ads.googleads.v4.services', + syntax='proto3', + serialized_options=_b('\n$com.google.ads.googleads.v4.servicesB\035CampaignCriterionServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V4.Services\312\002 Google\\Ads\\GoogleAds\\V4\\Services\352\002$Google::Ads::GoogleAds::V4::Services'), + serialized_pb=_b('\nGgoogle/ads/googleads_v4/proto/services/campaign_criterion_service.proto\x12 google.ads.googleads.v4.services\x1a@google/ads/googleads_v4/proto/resources/campaign_criterion.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/protobuf/field_mask.proto\x1a\x17google/rpc/status.proto\"h\n\x1bGetCampaignCriterionRequest\x12I\n\rresource_name\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*googleads.googleapis.com/CampaignCriterion\"\xc0\x01\n\x1dMutateCampaignCriteriaRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12U\n\noperations\x18\x02 \x03(\x0b\x32<.google.ads.googleads.v4.services.CampaignCriterionOperationB\x03\xe0\x41\x02\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\"\xfc\x01\n\x1a\x43\x61mpaignCriterionOperation\x12/\n\x0bupdate_mask\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12\x46\n\x06\x63reate\x18\x01 \x01(\x0b\x32\x34.google.ads.googleads.v4.resources.CampaignCriterionH\x00\x12\x46\n\x06update\x18\x02 \x01(\x0b\x32\x34.google.ads.googleads.v4.resources.CampaignCriterionH\x00\x12\x10\n\x06remove\x18\x03 \x01(\tH\x00\x42\x0b\n\toperation\"\xa5\x01\n\x1eMutateCampaignCriteriaResponse\x12\x31\n\x15partial_failure_error\x18\x03 \x01(\x0b\x32\x12.google.rpc.Status\x12P\n\x07results\x18\x02 \x03(\x0b\x32?.google.ads.googleads.v4.services.MutateCampaignCriterionResult\"6\n\x1dMutateCampaignCriterionResult\x12\x15\n\rresource_name\x18\x01 \x01(\t2\x8a\x04\n\x18\x43\x61mpaignCriterionService\x12\xd7\x01\n\x14GetCampaignCriterion\x12=.google.ads.googleads.v4.services.GetCampaignCriterionRequest\x1a\x34.google.ads.googleads.v4.resources.CampaignCriterion\"J\x82\xd3\xe4\x93\x02\x34\x12\x32/v4/{resource_name=customers/*/campaignCriteria/*}\xda\x41\rresource_name\x12\xf6\x01\n\x16MutateCampaignCriteria\x12?.google.ads.googleads.v4.services.MutateCampaignCriteriaRequest\x1a@.google.ads.googleads.v4.services.MutateCampaignCriteriaResponse\"Y\x82\xd3\xe4\x93\x02:\"5/v4/customers/{customer_id=*}/campaignCriteria:mutate:\x01*\xda\x41\x16\x63ustomer_id,operations\x1a\x1b\xca\x41\x18googleads.googleapis.comB\x84\x02\n$com.google.ads.googleads.v4.servicesB\x1d\x43\x61mpaignCriterionServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V4.Services\xca\x02 Google\\Ads\\GoogleAds\\V4\\Services\xea\x02$Google::Ads::GoogleAds::V4::Servicesb\x06proto3') + , + dependencies=[google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_campaign__criterion__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_api_dot_client__pb2.DESCRIPTOR,google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_api_dot_resource__pb2.DESCRIPTOR,google_dot_protobuf_dot_field__mask__pb2.DESCRIPTOR,google_dot_rpc_dot_status__pb2.DESCRIPTOR,]) + + + + +_GETCAMPAIGNCRITERIONREQUEST = _descriptor.Descriptor( + name='GetCampaignCriterionRequest', + full_name='google.ads.googleads.v4.services.GetCampaignCriterionRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.services.GetCampaignCriterionRequest.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002\372A,\n*googleads.googleapis.com/CampaignCriterion'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=349, + serialized_end=453, +) + + +_MUTATECAMPAIGNCRITERIAREQUEST = _descriptor.Descriptor( + name='MutateCampaignCriteriaRequest', + full_name='google.ads.googleads.v4.services.MutateCampaignCriteriaRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='customer_id', full_name='google.ads.googleads.v4.services.MutateCampaignCriteriaRequest.customer_id', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='operations', full_name='google.ads.googleads.v4.services.MutateCampaignCriteriaRequest.operations', index=1, + number=2, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='partial_failure', full_name='google.ads.googleads.v4.services.MutateCampaignCriteriaRequest.partial_failure', index=2, + number=3, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='validate_only', full_name='google.ads.googleads.v4.services.MutateCampaignCriteriaRequest.validate_only', index=3, + number=4, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=456, + serialized_end=648, +) + + +_CAMPAIGNCRITERIONOPERATION = _descriptor.Descriptor( + name='CampaignCriterionOperation', + full_name='google.ads.googleads.v4.services.CampaignCriterionOperation', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='update_mask', full_name='google.ads.googleads.v4.services.CampaignCriterionOperation.update_mask', index=0, + number=4, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='create', full_name='google.ads.googleads.v4.services.CampaignCriterionOperation.create', index=1, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='update', full_name='google.ads.googleads.v4.services.CampaignCriterionOperation.update', index=2, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='remove', full_name='google.ads.googleads.v4.services.CampaignCriterionOperation.remove', index=3, + number=3, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name='operation', full_name='google.ads.googleads.v4.services.CampaignCriterionOperation.operation', + index=0, containing_type=None, fields=[]), + ], + serialized_start=651, + serialized_end=903, +) + + +_MUTATECAMPAIGNCRITERIARESPONSE = _descriptor.Descriptor( + name='MutateCampaignCriteriaResponse', + full_name='google.ads.googleads.v4.services.MutateCampaignCriteriaResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='partial_failure_error', full_name='google.ads.googleads.v4.services.MutateCampaignCriteriaResponse.partial_failure_error', index=0, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='results', full_name='google.ads.googleads.v4.services.MutateCampaignCriteriaResponse.results', index=1, + number=2, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=906, + serialized_end=1071, +) + + +_MUTATECAMPAIGNCRITERIONRESULT = _descriptor.Descriptor( + name='MutateCampaignCriterionResult', + full_name='google.ads.googleads.v4.services.MutateCampaignCriterionResult', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.services.MutateCampaignCriterionResult.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1073, + serialized_end=1127, +) + +_MUTATECAMPAIGNCRITERIAREQUEST.fields_by_name['operations'].message_type = _CAMPAIGNCRITERIONOPERATION +_CAMPAIGNCRITERIONOPERATION.fields_by_name['update_mask'].message_type = google_dot_protobuf_dot_field__mask__pb2._FIELDMASK +_CAMPAIGNCRITERIONOPERATION.fields_by_name['create'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_campaign__criterion__pb2._CAMPAIGNCRITERION +_CAMPAIGNCRITERIONOPERATION.fields_by_name['update'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_campaign__criterion__pb2._CAMPAIGNCRITERION +_CAMPAIGNCRITERIONOPERATION.oneofs_by_name['operation'].fields.append( + _CAMPAIGNCRITERIONOPERATION.fields_by_name['create']) +_CAMPAIGNCRITERIONOPERATION.fields_by_name['create'].containing_oneof = _CAMPAIGNCRITERIONOPERATION.oneofs_by_name['operation'] +_CAMPAIGNCRITERIONOPERATION.oneofs_by_name['operation'].fields.append( + _CAMPAIGNCRITERIONOPERATION.fields_by_name['update']) +_CAMPAIGNCRITERIONOPERATION.fields_by_name['update'].containing_oneof = _CAMPAIGNCRITERIONOPERATION.oneofs_by_name['operation'] +_CAMPAIGNCRITERIONOPERATION.oneofs_by_name['operation'].fields.append( + _CAMPAIGNCRITERIONOPERATION.fields_by_name['remove']) +_CAMPAIGNCRITERIONOPERATION.fields_by_name['remove'].containing_oneof = _CAMPAIGNCRITERIONOPERATION.oneofs_by_name['operation'] +_MUTATECAMPAIGNCRITERIARESPONSE.fields_by_name['partial_failure_error'].message_type = google_dot_rpc_dot_status__pb2._STATUS +_MUTATECAMPAIGNCRITERIARESPONSE.fields_by_name['results'].message_type = _MUTATECAMPAIGNCRITERIONRESULT +DESCRIPTOR.message_types_by_name['GetCampaignCriterionRequest'] = _GETCAMPAIGNCRITERIONREQUEST +DESCRIPTOR.message_types_by_name['MutateCampaignCriteriaRequest'] = _MUTATECAMPAIGNCRITERIAREQUEST +DESCRIPTOR.message_types_by_name['CampaignCriterionOperation'] = _CAMPAIGNCRITERIONOPERATION +DESCRIPTOR.message_types_by_name['MutateCampaignCriteriaResponse'] = _MUTATECAMPAIGNCRITERIARESPONSE +DESCRIPTOR.message_types_by_name['MutateCampaignCriterionResult'] = _MUTATECAMPAIGNCRITERIONRESULT +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +GetCampaignCriterionRequest = _reflection.GeneratedProtocolMessageType('GetCampaignCriterionRequest', (_message.Message,), dict( + DESCRIPTOR = _GETCAMPAIGNCRITERIONREQUEST, + __module__ = 'google.ads.googleads_v4.proto.services.campaign_criterion_service_pb2' + , + __doc__ = """Request message for + [CampaignCriterionService.GetCampaignCriterion][google.ads.googleads.v4.services.CampaignCriterionService.GetCampaignCriterion]. + + + Attributes: + resource_name: + Required. The resource name of the criterion to fetch. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.GetCampaignCriterionRequest) + )) +_sym_db.RegisterMessage(GetCampaignCriterionRequest) + +MutateCampaignCriteriaRequest = _reflection.GeneratedProtocolMessageType('MutateCampaignCriteriaRequest', (_message.Message,), dict( + DESCRIPTOR = _MUTATECAMPAIGNCRITERIAREQUEST, + __module__ = 'google.ads.googleads_v4.proto.services.campaign_criterion_service_pb2' + , + __doc__ = """Request message for + [CampaignCriterionService.MutateCampaignCriteria][google.ads.googleads.v4.services.CampaignCriterionService.MutateCampaignCriteria]. + + + Attributes: + customer_id: + Required. The ID of the customer whose criteria are being + modified. + operations: + Required. The list of operations to perform on individual + criteria. + partial_failure: + If true, successful operations will be carried out and invalid + operations will return errors. If false, all operations will + be carried out in one transaction if and only if they are all + valid. Default is false. + validate_only: + If true, the request is validated but not executed. Only + errors are returned, not results. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.MutateCampaignCriteriaRequest) + )) +_sym_db.RegisterMessage(MutateCampaignCriteriaRequest) + +CampaignCriterionOperation = _reflection.GeneratedProtocolMessageType('CampaignCriterionOperation', (_message.Message,), dict( + DESCRIPTOR = _CAMPAIGNCRITERIONOPERATION, + __module__ = 'google.ads.googleads_v4.proto.services.campaign_criterion_service_pb2' + , + __doc__ = """A single operation (create, update, remove) on a campaign criterion. + + + Attributes: + update_mask: + FieldMask that determines which resource fields are modified + in an update. + operation: + The mutate operation. + create: + Create operation: No resource name is expected for the new + criterion. + update: + Update operation: The criterion is expected to have a valid + resource name. + remove: + Remove operation: A resource name for the removed criterion is + expected, in this format: ``customers/{customer_id}/campaignC + riteria/{campaign_id}~{criterion_id}`` + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.CampaignCriterionOperation) + )) +_sym_db.RegisterMessage(CampaignCriterionOperation) + +MutateCampaignCriteriaResponse = _reflection.GeneratedProtocolMessageType('MutateCampaignCriteriaResponse', (_message.Message,), dict( + DESCRIPTOR = _MUTATECAMPAIGNCRITERIARESPONSE, + __module__ = 'google.ads.googleads_v4.proto.services.campaign_criterion_service_pb2' + , + __doc__ = """Response message for campaign criterion mutate. + + + Attributes: + partial_failure_error: + Errors that pertain to operation failures in the partial + failure mode. Returned only when partial\_failure = true and + all errors occur inside the operations. If any errors occur + outside the operations (e.g. auth errors), we return an RPC + level error. + results: + All results for the mutate. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.MutateCampaignCriteriaResponse) + )) +_sym_db.RegisterMessage(MutateCampaignCriteriaResponse) + +MutateCampaignCriterionResult = _reflection.GeneratedProtocolMessageType('MutateCampaignCriterionResult', (_message.Message,), dict( + DESCRIPTOR = _MUTATECAMPAIGNCRITERIONRESULT, + __module__ = 'google.ads.googleads_v4.proto.services.campaign_criterion_service_pb2' + , + __doc__ = """The result for the criterion mutate. + + + Attributes: + resource_name: + Returned for successful operations. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.MutateCampaignCriterionResult) + )) +_sym_db.RegisterMessage(MutateCampaignCriterionResult) + + +DESCRIPTOR._options = None +_GETCAMPAIGNCRITERIONREQUEST.fields_by_name['resource_name']._options = None +_MUTATECAMPAIGNCRITERIAREQUEST.fields_by_name['customer_id']._options = None +_MUTATECAMPAIGNCRITERIAREQUEST.fields_by_name['operations']._options = None + +_CAMPAIGNCRITERIONSERVICE = _descriptor.ServiceDescriptor( + name='CampaignCriterionService', + full_name='google.ads.googleads.v4.services.CampaignCriterionService', + file=DESCRIPTOR, + index=0, + serialized_options=_b('\312A\030googleads.googleapis.com'), + serialized_start=1130, + serialized_end=1652, + methods=[ + _descriptor.MethodDescriptor( + name='GetCampaignCriterion', + full_name='google.ads.googleads.v4.services.CampaignCriterionService.GetCampaignCriterion', + index=0, + containing_service=None, + input_type=_GETCAMPAIGNCRITERIONREQUEST, + output_type=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_campaign__criterion__pb2._CAMPAIGNCRITERION, + serialized_options=_b('\202\323\344\223\0024\0222/v4/{resource_name=customers/*/campaignCriteria/*}\332A\rresource_name'), + ), + _descriptor.MethodDescriptor( + name='MutateCampaignCriteria', + full_name='google.ads.googleads.v4.services.CampaignCriterionService.MutateCampaignCriteria', + index=1, + containing_service=None, + input_type=_MUTATECAMPAIGNCRITERIAREQUEST, + output_type=_MUTATECAMPAIGNCRITERIARESPONSE, + serialized_options=_b('\202\323\344\223\002:\"5/v4/customers/{customer_id=*}/campaignCriteria:mutate:\001*\332A\026customer_id,operations'), + ), +]) +_sym_db.RegisterServiceDescriptor(_CAMPAIGNCRITERIONSERVICE) + +DESCRIPTOR.services_by_name['CampaignCriterionService'] = _CAMPAIGNCRITERIONSERVICE + +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v4/proto/services/campaign_criterion_service_pb2_grpc.py b/google/ads/google_ads/v4/proto/services/campaign_criterion_service_pb2_grpc.py new file mode 100644 index 000000000..bc2a28ba3 --- /dev/null +++ b/google/ads/google_ads/v4/proto/services/campaign_criterion_service_pb2_grpc.py @@ -0,0 +1,68 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +import grpc + +from google.ads.google_ads.v4.proto.resources import campaign_criterion_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_campaign__criterion__pb2 +from google.ads.google_ads.v4.proto.services import campaign_criterion_service_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_campaign__criterion__service__pb2 + + +class CampaignCriterionServiceStub(object): + """Proto file describing the Campaign Criterion service. + + Service to manage campaign criteria. + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.GetCampaignCriterion = channel.unary_unary( + '/google.ads.googleads.v4.services.CampaignCriterionService/GetCampaignCriterion', + request_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_campaign__criterion__service__pb2.GetCampaignCriterionRequest.SerializeToString, + response_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_campaign__criterion__pb2.CampaignCriterion.FromString, + ) + self.MutateCampaignCriteria = channel.unary_unary( + '/google.ads.googleads.v4.services.CampaignCriterionService/MutateCampaignCriteria', + request_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_campaign__criterion__service__pb2.MutateCampaignCriteriaRequest.SerializeToString, + response_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_campaign__criterion__service__pb2.MutateCampaignCriteriaResponse.FromString, + ) + + +class CampaignCriterionServiceServicer(object): + """Proto file describing the Campaign Criterion service. + + Service to manage campaign criteria. + """ + + def GetCampaignCriterion(self, request, context): + """Returns the requested criterion in full detail. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def MutateCampaignCriteria(self, request, context): + """Creates, updates, or removes criteria. Operation statuses are returned. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_CampaignCriterionServiceServicer_to_server(servicer, server): + rpc_method_handlers = { + 'GetCampaignCriterion': grpc.unary_unary_rpc_method_handler( + servicer.GetCampaignCriterion, + request_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_campaign__criterion__service__pb2.GetCampaignCriterionRequest.FromString, + response_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_campaign__criterion__pb2.CampaignCriterion.SerializeToString, + ), + 'MutateCampaignCriteria': grpc.unary_unary_rpc_method_handler( + servicer.MutateCampaignCriteria, + request_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_campaign__criterion__service__pb2.MutateCampaignCriteriaRequest.FromString, + response_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_campaign__criterion__service__pb2.MutateCampaignCriteriaResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'google.ads.googleads.v4.services.CampaignCriterionService', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) diff --git a/google/ads/google_ads/v4/proto/services/campaign_criterion_simulation_service_pb2.py b/google/ads/google_ads/v4/proto/services/campaign_criterion_simulation_service_pb2.py new file mode 100644 index 000000000..f6ff773ad --- /dev/null +++ b/google/ads/google_ads/v4/proto/services/campaign_criterion_simulation_service_pb2.py @@ -0,0 +1,112 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/services/campaign_criterion_simulation_service.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.ads.google_ads.v4.proto.resources import campaign_criterion_simulation_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_campaign__criterion__simulation__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 +from google.api import client_pb2 as google_dot_api_dot_client__pb2 +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/services/campaign_criterion_simulation_service.proto', + package='google.ads.googleads.v4.services', + syntax='proto3', + serialized_options=_b('\n$com.google.ads.googleads.v4.servicesB\'CampaignCriterionSimulationServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V4.Services\312\002 Google\\Ads\\GoogleAds\\V4\\Services\352\002$Google::Ads::GoogleAds::V4::Services'), + serialized_pb=_b('\nRgoogle/ads/googleads_v4/proto/services/campaign_criterion_simulation_service.proto\x12 google.ads.googleads.v4.services\x1aKgoogle/ads/googleads_v4/proto/resources/campaign_criterion_simulation.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"|\n%GetCampaignCriterionSimulationRequest\x12S\n\rresource_name\x18\x01 \x01(\tB<\xe0\x41\x02\xfa\x41\x36\n4googleads.googleapis.com/CampaignCriterionSimulation2\xc5\x02\n\"CampaignCriterionSimulationService\x12\x81\x02\n\x1eGetCampaignCriterionSimulation\x12G.google.ads.googleads.v4.services.GetCampaignCriterionSimulationRequest\x1a>.google.ads.googleads.v4.resources.CampaignCriterionSimulation\"V\x82\xd3\xe4\x93\x02@\x12>/v4/{resource_name=customers/*/campaignCriterionSimulations/*}\xda\x41\rresource_name\x1a\x1b\xca\x41\x18googleads.googleapis.comB\x8e\x02\n$com.google.ads.googleads.v4.servicesB\'CampaignCriterionSimulationServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V4.Services\xca\x02 Google\\Ads\\GoogleAds\\V4\\Services\xea\x02$Google::Ads::GoogleAds::V4::Servicesb\x06proto3') + , + dependencies=[google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_campaign__criterion__simulation__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_api_dot_client__pb2.DESCRIPTOR,google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_api_dot_resource__pb2.DESCRIPTOR,]) + + + + +_GETCAMPAIGNCRITERIONSIMULATIONREQUEST = _descriptor.Descriptor( + name='GetCampaignCriterionSimulationRequest', + full_name='google.ads.googleads.v4.services.GetCampaignCriterionSimulationRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.services.GetCampaignCriterionSimulationRequest.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002\372A6\n4googleads.googleapis.com/CampaignCriterionSimulation'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=312, + serialized_end=436, +) + +DESCRIPTOR.message_types_by_name['GetCampaignCriterionSimulationRequest'] = _GETCAMPAIGNCRITERIONSIMULATIONREQUEST +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +GetCampaignCriterionSimulationRequest = _reflection.GeneratedProtocolMessageType('GetCampaignCriterionSimulationRequest', (_message.Message,), dict( + DESCRIPTOR = _GETCAMPAIGNCRITERIONSIMULATIONREQUEST, + __module__ = 'google.ads.googleads_v4.proto.services.campaign_criterion_simulation_service_pb2' + , + __doc__ = """Request message for + [CampaignCriterionSimulationService.GetCampaignCriterionSimulation][google.ads.googleads.v4.services.CampaignCriterionSimulationService.GetCampaignCriterionSimulation]. + + + Attributes: + resource_name: + Required. The resource name of the campaign criterion + simulation to fetch. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.GetCampaignCriterionSimulationRequest) + )) +_sym_db.RegisterMessage(GetCampaignCriterionSimulationRequest) + + +DESCRIPTOR._options = None +_GETCAMPAIGNCRITERIONSIMULATIONREQUEST.fields_by_name['resource_name']._options = None + +_CAMPAIGNCRITERIONSIMULATIONSERVICE = _descriptor.ServiceDescriptor( + name='CampaignCriterionSimulationService', + full_name='google.ads.googleads.v4.services.CampaignCriterionSimulationService', + file=DESCRIPTOR, + index=0, + serialized_options=_b('\312A\030googleads.googleapis.com'), + serialized_start=439, + serialized_end=764, + methods=[ + _descriptor.MethodDescriptor( + name='GetCampaignCriterionSimulation', + full_name='google.ads.googleads.v4.services.CampaignCriterionSimulationService.GetCampaignCriterionSimulation', + index=0, + containing_service=None, + input_type=_GETCAMPAIGNCRITERIONSIMULATIONREQUEST, + output_type=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_campaign__criterion__simulation__pb2._CAMPAIGNCRITERIONSIMULATION, + serialized_options=_b('\202\323\344\223\002@\022>/v4/{resource_name=customers/*/campaignCriterionSimulations/*}\332A\rresource_name'), + ), +]) +_sym_db.RegisterServiceDescriptor(_CAMPAIGNCRITERIONSIMULATIONSERVICE) + +DESCRIPTOR.services_by_name['CampaignCriterionSimulationService'] = _CAMPAIGNCRITERIONSIMULATIONSERVICE + +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/services/campaign_criterion_simulation_service_pb2_grpc.py b/google/ads/google_ads/v4/proto/services/campaign_criterion_simulation_service_pb2_grpc.py similarity index 75% rename from google/ads/google_ads/v1/proto/services/campaign_criterion_simulation_service_pb2_grpc.py rename to google/ads/google_ads/v4/proto/services/campaign_criterion_simulation_service_pb2_grpc.py index 57066ef51..44912a8c3 100644 --- a/google/ads/google_ads/v1/proto/services/campaign_criterion_simulation_service_pb2_grpc.py +++ b/google/ads/google_ads/v4/proto/services/campaign_criterion_simulation_service_pb2_grpc.py @@ -1,8 +1,8 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc -from google.ads.google_ads.v1.proto.resources import campaign_criterion_simulation_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_campaign__criterion__simulation__pb2 -from google.ads.google_ads.v1.proto.services import campaign_criterion_simulation_service_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_campaign__criterion__simulation__service__pb2 +from google.ads.google_ads.v4.proto.resources import campaign_criterion_simulation_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_campaign__criterion__simulation__pb2 +from google.ads.google_ads.v4.proto.services import campaign_criterion_simulation_service_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_campaign__criterion__simulation__service__pb2 class CampaignCriterionSimulationServiceStub(object): @@ -18,9 +18,9 @@ def __init__(self, channel): channel: A grpc.Channel. """ self.GetCampaignCriterionSimulation = channel.unary_unary( - '/google.ads.googleads.v1.services.CampaignCriterionSimulationService/GetCampaignCriterionSimulation', - request_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_campaign__criterion__simulation__service__pb2.GetCampaignCriterionSimulationRequest.SerializeToString, - response_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_campaign__criterion__simulation__pb2.CampaignCriterionSimulation.FromString, + '/google.ads.googleads.v4.services.CampaignCriterionSimulationService/GetCampaignCriterionSimulation', + request_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_campaign__criterion__simulation__service__pb2.GetCampaignCriterionSimulationRequest.SerializeToString, + response_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_campaign__criterion__simulation__pb2.CampaignCriterionSimulation.FromString, ) @@ -42,10 +42,10 @@ def add_CampaignCriterionSimulationServiceServicer_to_server(servicer, server): rpc_method_handlers = { 'GetCampaignCriterionSimulation': grpc.unary_unary_rpc_method_handler( servicer.GetCampaignCriterionSimulation, - request_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_campaign__criterion__simulation__service__pb2.GetCampaignCriterionSimulationRequest.FromString, - response_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_campaign__criterion__simulation__pb2.CampaignCriterionSimulation.SerializeToString, + request_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_campaign__criterion__simulation__service__pb2.GetCampaignCriterionSimulationRequest.FromString, + response_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_campaign__criterion__simulation__pb2.CampaignCriterionSimulation.SerializeToString, ), } generic_handler = grpc.method_handlers_generic_handler( - 'google.ads.googleads.v1.services.CampaignCriterionSimulationService', rpc_method_handlers) + 'google.ads.googleads.v4.services.CampaignCriterionSimulationService', rpc_method_handlers) server.add_generic_rpc_handlers((generic_handler,)) diff --git a/google/ads/google_ads/v4/proto/services/campaign_draft_service_pb2.py b/google/ads/google_ads/v4/proto/services/campaign_draft_service_pb2.py new file mode 100644 index 000000000..9916d383d --- /dev/null +++ b/google/ads/google_ads/v4/proto/services/campaign_draft_service_pb2.py @@ -0,0 +1,614 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/services/campaign_draft_service.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.ads.google_ads.v4.proto.resources import campaign_draft_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_campaign__draft__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 +from google.api import client_pb2 as google_dot_api_dot_client__pb2 +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 +from google.longrunning import operations_pb2 as google_dot_longrunning_dot_operations__pb2 +from google.protobuf import field_mask_pb2 as google_dot_protobuf_dot_field__mask__pb2 +from google.rpc import status_pb2 as google_dot_rpc_dot_status__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/services/campaign_draft_service.proto', + package='google.ads.googleads.v4.services', + syntax='proto3', + serialized_options=_b('\n$com.google.ads.googleads.v4.servicesB\031CampaignDraftServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V4.Services\312\002 Google\\Ads\\GoogleAds\\V4\\Services\352\002$Google::Ads::GoogleAds::V4::Services'), + serialized_pb=_b('\nCgoogle/ads/googleads_v4/proto/services/campaign_draft_service.proto\x12 google.ads.googleads.v4.services\x1a.google.ads.googleads.v4.services.MutateCampaignDraftsResponse\"W\x82\xd3\xe4\x93\x02\x38\"3/v4/customers/{customer_id=*}/campaignDrafts:mutate:\x01*\xda\x41\x16\x63ustomer_id,operations\x12\xfd\x01\n\x14PromoteCampaignDraft\x12=.google.ads.googleads.v4.services.PromoteCampaignDraftRequest\x1a\x1d.google.longrunning.Operation\"\x86\x01\x82\xd3\xe4\x93\x02>\"9/v4/{campaign_draft=customers/*/campaignDrafts/*}:promote:\x01*\xda\x41\x0e\x63\x61mpaign_draft\xca\x41.\n\x15google.protobuf.Empty\x12\x15google.protobuf.Empty\x12\x87\x02\n\x1cListCampaignDraftAsyncErrors\x12\x45.google.ads.googleads.v4.services.ListCampaignDraftAsyncErrorsRequest\x1a\x46.google.ads.googleads.v4.services.ListCampaignDraftAsyncErrorsResponse\"X\x82\xd3\xe4\x93\x02\x42\x12@/v4/{resource_name=customers/*/campaignDrafts/*}:listAsyncErrors\xda\x41\rresource_name\x1a\x1b\xca\x41\x18googleads.googleapis.comB\x80\x02\n$com.google.ads.googleads.v4.servicesB\x19\x43\x61mpaignDraftServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V4.Services\xca\x02 Google\\Ads\\GoogleAds\\V4\\Services\xea\x02$Google::Ads::GoogleAds::V4::Servicesb\x06proto3') + , + dependencies=[google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_campaign__draft__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_api_dot_client__pb2.DESCRIPTOR,google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_api_dot_resource__pb2.DESCRIPTOR,google_dot_longrunning_dot_operations__pb2.DESCRIPTOR,google_dot_protobuf_dot_field__mask__pb2.DESCRIPTOR,google_dot_rpc_dot_status__pb2.DESCRIPTOR,]) + + + + +_GETCAMPAIGNDRAFTREQUEST = _descriptor.Descriptor( + name='GetCampaignDraftRequest', + full_name='google.ads.googleads.v4.services.GetCampaignDraftRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.services.GetCampaignDraftRequest.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002\372A(\n&googleads.googleapis.com/CampaignDraft'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=378, + serialized_end=474, +) + + +_MUTATECAMPAIGNDRAFTSREQUEST = _descriptor.Descriptor( + name='MutateCampaignDraftsRequest', + full_name='google.ads.googleads.v4.services.MutateCampaignDraftsRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='customer_id', full_name='google.ads.googleads.v4.services.MutateCampaignDraftsRequest.customer_id', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='operations', full_name='google.ads.googleads.v4.services.MutateCampaignDraftsRequest.operations', index=1, + number=2, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='partial_failure', full_name='google.ads.googleads.v4.services.MutateCampaignDraftsRequest.partial_failure', index=2, + number=3, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='validate_only', full_name='google.ads.googleads.v4.services.MutateCampaignDraftsRequest.validate_only', index=3, + number=4, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=477, + serialized_end=663, +) + + +_PROMOTECAMPAIGNDRAFTREQUEST = _descriptor.Descriptor( + name='PromoteCampaignDraftRequest', + full_name='google.ads.googleads.v4.services.PromoteCampaignDraftRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='campaign_draft', full_name='google.ads.googleads.v4.services.PromoteCampaignDraftRequest.campaign_draft', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=665, + serialized_end=723, +) + + +_CAMPAIGNDRAFTOPERATION = _descriptor.Descriptor( + name='CampaignDraftOperation', + full_name='google.ads.googleads.v4.services.CampaignDraftOperation', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='update_mask', full_name='google.ads.googleads.v4.services.CampaignDraftOperation.update_mask', index=0, + number=4, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='create', full_name='google.ads.googleads.v4.services.CampaignDraftOperation.create', index=1, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='update', full_name='google.ads.googleads.v4.services.CampaignDraftOperation.update', index=2, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='remove', full_name='google.ads.googleads.v4.services.CampaignDraftOperation.remove', index=3, + number=3, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name='operation', full_name='google.ads.googleads.v4.services.CampaignDraftOperation.operation', + index=0, containing_type=None, fields=[]), + ], + serialized_start=726, + serialized_end=966, +) + + +_MUTATECAMPAIGNDRAFTSRESPONSE = _descriptor.Descriptor( + name='MutateCampaignDraftsResponse', + full_name='google.ads.googleads.v4.services.MutateCampaignDraftsResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='partial_failure_error', full_name='google.ads.googleads.v4.services.MutateCampaignDraftsResponse.partial_failure_error', index=0, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='results', full_name='google.ads.googleads.v4.services.MutateCampaignDraftsResponse.results', index=1, + number=2, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=969, + serialized_end=1128, +) + + +_MUTATECAMPAIGNDRAFTRESULT = _descriptor.Descriptor( + name='MutateCampaignDraftResult', + full_name='google.ads.googleads.v4.services.MutateCampaignDraftResult', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.services.MutateCampaignDraftResult.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1130, + serialized_end=1180, +) + + +_LISTCAMPAIGNDRAFTASYNCERRORSREQUEST = _descriptor.Descriptor( + name='ListCampaignDraftAsyncErrorsRequest', + full_name='google.ads.googleads.v4.services.ListCampaignDraftAsyncErrorsRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.services.ListCampaignDraftAsyncErrorsRequest.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002\372A(\n&googleads.googleapis.com/CampaignDraft'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='page_token', full_name='google.ads.googleads.v4.services.ListCampaignDraftAsyncErrorsRequest.page_token', index=1, + number=2, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='page_size', full_name='google.ads.googleads.v4.services.ListCampaignDraftAsyncErrorsRequest.page_size', index=2, + number=3, type=5, cpp_type=1, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1183, + serialized_end=1330, +) + + +_LISTCAMPAIGNDRAFTASYNCERRORSRESPONSE = _descriptor.Descriptor( + name='ListCampaignDraftAsyncErrorsResponse', + full_name='google.ads.googleads.v4.services.ListCampaignDraftAsyncErrorsResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='errors', full_name='google.ads.googleads.v4.services.ListCampaignDraftAsyncErrorsResponse.errors', index=0, + number=1, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='next_page_token', full_name='google.ads.googleads.v4.services.ListCampaignDraftAsyncErrorsResponse.next_page_token', index=1, + number=2, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1332, + serialized_end=1431, +) + +_MUTATECAMPAIGNDRAFTSREQUEST.fields_by_name['operations'].message_type = _CAMPAIGNDRAFTOPERATION +_CAMPAIGNDRAFTOPERATION.fields_by_name['update_mask'].message_type = google_dot_protobuf_dot_field__mask__pb2._FIELDMASK +_CAMPAIGNDRAFTOPERATION.fields_by_name['create'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_campaign__draft__pb2._CAMPAIGNDRAFT +_CAMPAIGNDRAFTOPERATION.fields_by_name['update'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_campaign__draft__pb2._CAMPAIGNDRAFT +_CAMPAIGNDRAFTOPERATION.oneofs_by_name['operation'].fields.append( + _CAMPAIGNDRAFTOPERATION.fields_by_name['create']) +_CAMPAIGNDRAFTOPERATION.fields_by_name['create'].containing_oneof = _CAMPAIGNDRAFTOPERATION.oneofs_by_name['operation'] +_CAMPAIGNDRAFTOPERATION.oneofs_by_name['operation'].fields.append( + _CAMPAIGNDRAFTOPERATION.fields_by_name['update']) +_CAMPAIGNDRAFTOPERATION.fields_by_name['update'].containing_oneof = _CAMPAIGNDRAFTOPERATION.oneofs_by_name['operation'] +_CAMPAIGNDRAFTOPERATION.oneofs_by_name['operation'].fields.append( + _CAMPAIGNDRAFTOPERATION.fields_by_name['remove']) +_CAMPAIGNDRAFTOPERATION.fields_by_name['remove'].containing_oneof = _CAMPAIGNDRAFTOPERATION.oneofs_by_name['operation'] +_MUTATECAMPAIGNDRAFTSRESPONSE.fields_by_name['partial_failure_error'].message_type = google_dot_rpc_dot_status__pb2._STATUS +_MUTATECAMPAIGNDRAFTSRESPONSE.fields_by_name['results'].message_type = _MUTATECAMPAIGNDRAFTRESULT +_LISTCAMPAIGNDRAFTASYNCERRORSRESPONSE.fields_by_name['errors'].message_type = google_dot_rpc_dot_status__pb2._STATUS +DESCRIPTOR.message_types_by_name['GetCampaignDraftRequest'] = _GETCAMPAIGNDRAFTREQUEST +DESCRIPTOR.message_types_by_name['MutateCampaignDraftsRequest'] = _MUTATECAMPAIGNDRAFTSREQUEST +DESCRIPTOR.message_types_by_name['PromoteCampaignDraftRequest'] = _PROMOTECAMPAIGNDRAFTREQUEST +DESCRIPTOR.message_types_by_name['CampaignDraftOperation'] = _CAMPAIGNDRAFTOPERATION +DESCRIPTOR.message_types_by_name['MutateCampaignDraftsResponse'] = _MUTATECAMPAIGNDRAFTSRESPONSE +DESCRIPTOR.message_types_by_name['MutateCampaignDraftResult'] = _MUTATECAMPAIGNDRAFTRESULT +DESCRIPTOR.message_types_by_name['ListCampaignDraftAsyncErrorsRequest'] = _LISTCAMPAIGNDRAFTASYNCERRORSREQUEST +DESCRIPTOR.message_types_by_name['ListCampaignDraftAsyncErrorsResponse'] = _LISTCAMPAIGNDRAFTASYNCERRORSRESPONSE +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +GetCampaignDraftRequest = _reflection.GeneratedProtocolMessageType('GetCampaignDraftRequest', (_message.Message,), dict( + DESCRIPTOR = _GETCAMPAIGNDRAFTREQUEST, + __module__ = 'google.ads.googleads_v4.proto.services.campaign_draft_service_pb2' + , + __doc__ = """Request message for + [CampaignDraftService.GetCampaignDraft][google.ads.googleads.v4.services.CampaignDraftService.GetCampaignDraft]. + + + Attributes: + resource_name: + Required. The resource name of the campaign draft to fetch. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.GetCampaignDraftRequest) + )) +_sym_db.RegisterMessage(GetCampaignDraftRequest) + +MutateCampaignDraftsRequest = _reflection.GeneratedProtocolMessageType('MutateCampaignDraftsRequest', (_message.Message,), dict( + DESCRIPTOR = _MUTATECAMPAIGNDRAFTSREQUEST, + __module__ = 'google.ads.googleads_v4.proto.services.campaign_draft_service_pb2' + , + __doc__ = """Request message for + [CampaignDraftService.MutateCampaignDrafts][google.ads.googleads.v4.services.CampaignDraftService.MutateCampaignDrafts]. + + + Attributes: + customer_id: + Required. The ID of the customer whose campaign drafts are + being modified. + operations: + Required. The list of operations to perform on individual + campaign drafts. + partial_failure: + If true, successful operations will be carried out and invalid + operations will return errors. If false, all operations will + be carried out in one transaction if and only if they are all + valid. Default is false. + validate_only: + If true, the request is validated but not executed. Only + errors are returned, not results. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.MutateCampaignDraftsRequest) + )) +_sym_db.RegisterMessage(MutateCampaignDraftsRequest) + +PromoteCampaignDraftRequest = _reflection.GeneratedProtocolMessageType('PromoteCampaignDraftRequest', (_message.Message,), dict( + DESCRIPTOR = _PROMOTECAMPAIGNDRAFTREQUEST, + __module__ = 'google.ads.googleads_v4.proto.services.campaign_draft_service_pb2' + , + __doc__ = """Request message for + [CampaignDraftService.PromoteCampaignDraft][google.ads.googleads.v4.services.CampaignDraftService.PromoteCampaignDraft]. + + + Attributes: + campaign_draft: + Required. The resource name of the campaign draft to promote. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.PromoteCampaignDraftRequest) + )) +_sym_db.RegisterMessage(PromoteCampaignDraftRequest) + +CampaignDraftOperation = _reflection.GeneratedProtocolMessageType('CampaignDraftOperation', (_message.Message,), dict( + DESCRIPTOR = _CAMPAIGNDRAFTOPERATION, + __module__ = 'google.ads.googleads_v4.proto.services.campaign_draft_service_pb2' + , + __doc__ = """A single operation (create, update, remove) on a campaign draft. + + + Attributes: + update_mask: + FieldMask that determines which resource fields are modified + in an update. + operation: + The mutate operation. + create: + Create operation: No resource name is expected for the new + campaign draft. + update: + Update operation: The campaign draft is expected to have a + valid resource name. + remove: + Remove operation: The campaign draft is expected to have a + valid resource name, in this format: ``customers/{customer_id + }/campaignDrafts/{base_campaign_id}~{draft_id}`` + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.CampaignDraftOperation) + )) +_sym_db.RegisterMessage(CampaignDraftOperation) + +MutateCampaignDraftsResponse = _reflection.GeneratedProtocolMessageType('MutateCampaignDraftsResponse', (_message.Message,), dict( + DESCRIPTOR = _MUTATECAMPAIGNDRAFTSRESPONSE, + __module__ = 'google.ads.googleads_v4.proto.services.campaign_draft_service_pb2' + , + __doc__ = """Response message for campaign draft mutate. + + + Attributes: + partial_failure_error: + Errors that pertain to operation failures in the partial + failure mode. Returned only when partial\_failure = true and + all errors occur inside the operations. If any errors occur + outside the operations (e.g. auth errors), we return an RPC + level error. + results: + All results for the mutate. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.MutateCampaignDraftsResponse) + )) +_sym_db.RegisterMessage(MutateCampaignDraftsResponse) + +MutateCampaignDraftResult = _reflection.GeneratedProtocolMessageType('MutateCampaignDraftResult', (_message.Message,), dict( + DESCRIPTOR = _MUTATECAMPAIGNDRAFTRESULT, + __module__ = 'google.ads.googleads_v4.proto.services.campaign_draft_service_pb2' + , + __doc__ = """The result for the campaign draft mutate. + + + Attributes: + resource_name: + Returned for successful operations. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.MutateCampaignDraftResult) + )) +_sym_db.RegisterMessage(MutateCampaignDraftResult) + +ListCampaignDraftAsyncErrorsRequest = _reflection.GeneratedProtocolMessageType('ListCampaignDraftAsyncErrorsRequest', (_message.Message,), dict( + DESCRIPTOR = _LISTCAMPAIGNDRAFTASYNCERRORSREQUEST, + __module__ = 'google.ads.googleads_v4.proto.services.campaign_draft_service_pb2' + , + __doc__ = """Request message for + [CampaignDraftService.ListCampaignDraftAsyncErrors][google.ads.googleads.v4.services.CampaignDraftService.ListCampaignDraftAsyncErrors]. + + + Attributes: + resource_name: + Required. The name of the campaign draft from which to + retrieve the async errors. + page_token: + Token of the page to retrieve. If not specified, the first + page of results will be returned. Use the value obtained from + ``next_page_token`` in the previous response in order to + request the next page of results. + page_size: + Number of elements to retrieve in a single page. When a page + request is too large, the server may decide to further limit + the number of returned resources. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.ListCampaignDraftAsyncErrorsRequest) + )) +_sym_db.RegisterMessage(ListCampaignDraftAsyncErrorsRequest) + +ListCampaignDraftAsyncErrorsResponse = _reflection.GeneratedProtocolMessageType('ListCampaignDraftAsyncErrorsResponse', (_message.Message,), dict( + DESCRIPTOR = _LISTCAMPAIGNDRAFTASYNCERRORSRESPONSE, + __module__ = 'google.ads.googleads_v4.proto.services.campaign_draft_service_pb2' + , + __doc__ = """Response message for + [CampaignDraftService.ListCampaignDraftAsyncErrors][google.ads.googleads.v4.services.CampaignDraftService.ListCampaignDraftAsyncErrors]. + + + Attributes: + errors: + Details of the errors when performing the asynchronous + operation. + next_page_token: + Pagination token used to retrieve the next page of results. + Pass the content of this string as the ``page_token`` + attribute of the next request. ``next_page_token`` is not + returned for the last page. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.ListCampaignDraftAsyncErrorsResponse) + )) +_sym_db.RegisterMessage(ListCampaignDraftAsyncErrorsResponse) + + +DESCRIPTOR._options = None +_GETCAMPAIGNDRAFTREQUEST.fields_by_name['resource_name']._options = None +_MUTATECAMPAIGNDRAFTSREQUEST.fields_by_name['customer_id']._options = None +_MUTATECAMPAIGNDRAFTSREQUEST.fields_by_name['operations']._options = None +_PROMOTECAMPAIGNDRAFTREQUEST.fields_by_name['campaign_draft']._options = None +_LISTCAMPAIGNDRAFTASYNCERRORSREQUEST.fields_by_name['resource_name']._options = None + +_CAMPAIGNDRAFTSERVICE = _descriptor.ServiceDescriptor( + name='CampaignDraftService', + full_name='google.ads.googleads.v4.services.CampaignDraftService', + file=DESCRIPTOR, + index=0, + serialized_options=_b('\312A\030googleads.googleapis.com'), + serialized_start=1434, + serialized_end=2452, + methods=[ + _descriptor.MethodDescriptor( + name='GetCampaignDraft', + full_name='google.ads.googleads.v4.services.CampaignDraftService.GetCampaignDraft', + index=0, + containing_service=None, + input_type=_GETCAMPAIGNDRAFTREQUEST, + output_type=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_campaign__draft__pb2._CAMPAIGNDRAFT, + serialized_options=_b('\202\323\344\223\0022\0220/v4/{resource_name=customers/*/campaignDrafts/*}\332A\rresource_name'), + ), + _descriptor.MethodDescriptor( + name='MutateCampaignDrafts', + full_name='google.ads.googleads.v4.services.CampaignDraftService.MutateCampaignDrafts', + index=1, + containing_service=None, + input_type=_MUTATECAMPAIGNDRAFTSREQUEST, + output_type=_MUTATECAMPAIGNDRAFTSRESPONSE, + serialized_options=_b('\202\323\344\223\0028\"3/v4/customers/{customer_id=*}/campaignDrafts:mutate:\001*\332A\026customer_id,operations'), + ), + _descriptor.MethodDescriptor( + name='PromoteCampaignDraft', + full_name='google.ads.googleads.v4.services.CampaignDraftService.PromoteCampaignDraft', + index=2, + containing_service=None, + input_type=_PROMOTECAMPAIGNDRAFTREQUEST, + output_type=google_dot_longrunning_dot_operations__pb2._OPERATION, + serialized_options=_b('\202\323\344\223\002>\"9/v4/{campaign_draft=customers/*/campaignDrafts/*}:promote:\001*\332A\016campaign_draft\312A.\n\025google.protobuf.Empty\022\025google.protobuf.Empty'), + ), + _descriptor.MethodDescriptor( + name='ListCampaignDraftAsyncErrors', + full_name='google.ads.googleads.v4.services.CampaignDraftService.ListCampaignDraftAsyncErrors', + index=3, + containing_service=None, + input_type=_LISTCAMPAIGNDRAFTASYNCERRORSREQUEST, + output_type=_LISTCAMPAIGNDRAFTASYNCERRORSRESPONSE, + serialized_options=_b('\202\323\344\223\002B\022@/v4/{resource_name=customers/*/campaignDrafts/*}:listAsyncErrors\332A\rresource_name'), + ), +]) +_sym_db.RegisterServiceDescriptor(_CAMPAIGNDRAFTSERVICE) + +DESCRIPTOR.services_by_name['CampaignDraftService'] = _CAMPAIGNDRAFTSERVICE + +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/services/campaign_draft_service_pb2_grpc.py b/google/ads/google_ads/v4/proto/services/campaign_draft_service_pb2_grpc.py similarity index 76% rename from google/ads/google_ads/v1/proto/services/campaign_draft_service_pb2_grpc.py rename to google/ads/google_ads/v4/proto/services/campaign_draft_service_pb2_grpc.py index a3a490a41..4fee9f166 100644 --- a/google/ads/google_ads/v1/proto/services/campaign_draft_service_pb2_grpc.py +++ b/google/ads/google_ads/v4/proto/services/campaign_draft_service_pb2_grpc.py @@ -1,8 +1,8 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc -from google.ads.google_ads.v1.proto.resources import campaign_draft_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_campaign__draft__pb2 -from google.ads.google_ads.v1.proto.services import campaign_draft_service_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_campaign__draft__service__pb2 +from google.ads.google_ads.v4.proto.resources import campaign_draft_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_campaign__draft__pb2 +from google.ads.google_ads.v4.proto.services import campaign_draft_service_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_campaign__draft__service__pb2 from google.longrunning import operations_pb2 as google_dot_longrunning_dot_operations__pb2 @@ -19,24 +19,24 @@ def __init__(self, channel): channel: A grpc.Channel. """ self.GetCampaignDraft = channel.unary_unary( - '/google.ads.googleads.v1.services.CampaignDraftService/GetCampaignDraft', - request_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_campaign__draft__service__pb2.GetCampaignDraftRequest.SerializeToString, - response_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_campaign__draft__pb2.CampaignDraft.FromString, + '/google.ads.googleads.v4.services.CampaignDraftService/GetCampaignDraft', + request_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_campaign__draft__service__pb2.GetCampaignDraftRequest.SerializeToString, + response_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_campaign__draft__pb2.CampaignDraft.FromString, ) self.MutateCampaignDrafts = channel.unary_unary( - '/google.ads.googleads.v1.services.CampaignDraftService/MutateCampaignDrafts', - request_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_campaign__draft__service__pb2.MutateCampaignDraftsRequest.SerializeToString, - response_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_campaign__draft__service__pb2.MutateCampaignDraftsResponse.FromString, + '/google.ads.googleads.v4.services.CampaignDraftService/MutateCampaignDrafts', + request_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_campaign__draft__service__pb2.MutateCampaignDraftsRequest.SerializeToString, + response_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_campaign__draft__service__pb2.MutateCampaignDraftsResponse.FromString, ) self.PromoteCampaignDraft = channel.unary_unary( - '/google.ads.googleads.v1.services.CampaignDraftService/PromoteCampaignDraft', - request_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_campaign__draft__service__pb2.PromoteCampaignDraftRequest.SerializeToString, + '/google.ads.googleads.v4.services.CampaignDraftService/PromoteCampaignDraft', + request_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_campaign__draft__service__pb2.PromoteCampaignDraftRequest.SerializeToString, response_deserializer=google_dot_longrunning_dot_operations__pb2.Operation.FromString, ) self.ListCampaignDraftAsyncErrors = channel.unary_unary( - '/google.ads.googleads.v1.services.CampaignDraftService/ListCampaignDraftAsyncErrors', - request_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_campaign__draft__service__pb2.ListCampaignDraftAsyncErrorsRequest.SerializeToString, - response_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_campaign__draft__service__pb2.ListCampaignDraftAsyncErrorsResponse.FromString, + '/google.ads.googleads.v4.services.CampaignDraftService/ListCampaignDraftAsyncErrors', + request_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_campaign__draft__service__pb2.ListCampaignDraftAsyncErrorsRequest.SerializeToString, + response_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_campaign__draft__service__pb2.ListCampaignDraftAsyncErrorsResponse.FromString, ) @@ -69,7 +69,7 @@ def PromoteCampaignDraft(self, request, context): is done. Only a done status is returned in the response. See the status in the Campaign Draft resource to determine if the promotion was successful. If the LRO failed, use - [CampaignDraftService.ListCampaignDraftAsyncErrors][google.ads.googleads.v1.services.CampaignDraftService.ListCampaignDraftAsyncErrors] to view the list of + [CampaignDraftService.ListCampaignDraftAsyncErrors][google.ads.googleads.v4.services.CampaignDraftService.ListCampaignDraftAsyncErrors] to view the list of error reasons. """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) @@ -90,25 +90,25 @@ def add_CampaignDraftServiceServicer_to_server(servicer, server): rpc_method_handlers = { 'GetCampaignDraft': grpc.unary_unary_rpc_method_handler( servicer.GetCampaignDraft, - request_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_campaign__draft__service__pb2.GetCampaignDraftRequest.FromString, - response_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_campaign__draft__pb2.CampaignDraft.SerializeToString, + request_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_campaign__draft__service__pb2.GetCampaignDraftRequest.FromString, + response_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_campaign__draft__pb2.CampaignDraft.SerializeToString, ), 'MutateCampaignDrafts': grpc.unary_unary_rpc_method_handler( servicer.MutateCampaignDrafts, - request_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_campaign__draft__service__pb2.MutateCampaignDraftsRequest.FromString, - response_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_campaign__draft__service__pb2.MutateCampaignDraftsResponse.SerializeToString, + request_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_campaign__draft__service__pb2.MutateCampaignDraftsRequest.FromString, + response_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_campaign__draft__service__pb2.MutateCampaignDraftsResponse.SerializeToString, ), 'PromoteCampaignDraft': grpc.unary_unary_rpc_method_handler( servicer.PromoteCampaignDraft, - request_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_campaign__draft__service__pb2.PromoteCampaignDraftRequest.FromString, + request_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_campaign__draft__service__pb2.PromoteCampaignDraftRequest.FromString, response_serializer=google_dot_longrunning_dot_operations__pb2.Operation.SerializeToString, ), 'ListCampaignDraftAsyncErrors': grpc.unary_unary_rpc_method_handler( servicer.ListCampaignDraftAsyncErrors, - request_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_campaign__draft__service__pb2.ListCampaignDraftAsyncErrorsRequest.FromString, - response_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_campaign__draft__service__pb2.ListCampaignDraftAsyncErrorsResponse.SerializeToString, + request_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_campaign__draft__service__pb2.ListCampaignDraftAsyncErrorsRequest.FromString, + response_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_campaign__draft__service__pb2.ListCampaignDraftAsyncErrorsResponse.SerializeToString, ), } generic_handler = grpc.method_handlers_generic_handler( - 'google.ads.googleads.v1.services.CampaignDraftService', rpc_method_handlers) + 'google.ads.googleads.v4.services.CampaignDraftService', rpc_method_handlers) server.add_generic_rpc_handlers((generic_handler,)) diff --git a/google/ads/google_ads/v4/proto/services/campaign_experiment_service_pb2.py b/google/ads/google_ads/v4/proto/services/campaign_experiment_service_pb2.py new file mode 100644 index 000000000..c39015218 --- /dev/null +++ b/google/ads/google_ads/v4/proto/services/campaign_experiment_service_pb2.py @@ -0,0 +1,908 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/services/campaign_experiment_service.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.ads.google_ads.v4.proto.resources import campaign_experiment_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_campaign__experiment__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 +from google.api import client_pb2 as google_dot_api_dot_client__pb2 +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 +from google.longrunning import operations_pb2 as google_dot_longrunning_dot_operations__pb2 +from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2 +from google.protobuf import field_mask_pb2 as google_dot_protobuf_dot_field__mask__pb2 +from google.rpc import status_pb2 as google_dot_rpc_dot_status__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/services/campaign_experiment_service.proto', + package='google.ads.googleads.v4.services', + syntax='proto3', + serialized_options=_b('\n$com.google.ads.googleads.v4.servicesB\036CampaignExperimentServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V4.Services\312\002 Google\\Ads\\GoogleAds\\V4\\Services\352\002$Google::Ads::GoogleAds::V4::Services'), + serialized_pb=_b('\nHgoogle/ads/googleads_v4/proto/services/campaign_experiment_service.proto\x12 google.ads.googleads.v4.services\x1a\x41google/ads/googleads_v4/proto/resources/campaign_experiment.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a#google/longrunning/operations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x17google/rpc/status.proto\"j\n\x1cGetCampaignExperimentRequest\x12J\n\rresource_name\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+googleads.googleapis.com/CampaignExperiment\"\xc4\x01\n MutateCampaignExperimentsRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12V\n\noperations\x18\x02 \x03(\x0b\x32=.google.ads.googleads.v4.services.CampaignExperimentOperationB\x03\xe0\x41\x02\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\"\xb6\x01\n\x1b\x43\x61mpaignExperimentOperation\x12/\n\x0bupdate_mask\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12G\n\x06update\x18\x01 \x01(\x0b\x32\x35.google.ads.googleads.v4.resources.CampaignExperimentH\x00\x12\x10\n\x06remove\x18\x02 \x01(\tH\x00\x42\x0b\n\toperation\"\xa9\x01\n!MutateCampaignExperimentsResponse\x12\x31\n\x15partial_failure_error\x18\x03 \x01(\x0b\x32\x12.google.rpc.Status\x12Q\n\x07results\x18\x02 \x03(\x0b\x32@.google.ads.googleads.v4.services.MutateCampaignExperimentResult\"7\n\x1eMutateCampaignExperimentResult\x12\x15\n\rresource_name\x18\x01 \x01(\t\"\xab\x01\n\x1f\x43reateCampaignExperimentRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12W\n\x13\x63\x61mpaign_experiment\x18\x02 \x01(\x0b\x32\x35.google.ads.googleads.v4.resources.CampaignExperimentB\x03\xe0\x41\x02\x12\x15\n\rvalidate_only\x18\x03 \x01(\x08\"?\n CreateCampaignExperimentMetadata\x12\x1b\n\x13\x63\x61mpaign_experiment\x18\x01 \x01(\t\"c\n!GraduateCampaignExperimentRequest\x12 \n\x13\x63\x61mpaign_experiment\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x1c\n\x0f\x63\x61mpaign_budget\x18\x02 \x01(\tB\x03\xe0\x41\x02\"@\n\"GraduateCampaignExperimentResponse\x12\x1a\n\x12graduated_campaign\x18\x01 \x01(\t\"D\n PromoteCampaignExperimentRequest\x12 \n\x13\x63\x61mpaign_experiment\x18\x01 \x01(\tB\x03\xe0\x41\x02\"@\n\x1c\x45ndCampaignExperimentRequest\x12 \n\x13\x63\x61mpaign_experiment\x18\x01 \x01(\tB\x03\xe0\x41\x02\"\x9d\x01\n(ListCampaignExperimentAsyncErrorsRequest\x12J\n\rresource_name\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+googleads.googleapis.com/CampaignExperiment\x12\x12\n\npage_token\x18\x02 \x01(\t\x12\x11\n\tpage_size\x18\x03 \x01(\x05\"h\n)ListCampaignExperimentAsyncErrorsResponse\x12\"\n\x06\x65rrors\x18\x01 \x03(\x0b\x32\x12.google.rpc.Status\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t2\x8d\x0f\n\x19\x43\x61mpaignExperimentService\x12\xdd\x01\n\x15GetCampaignExperiment\x12>.google.ads.googleads.v4.services.GetCampaignExperimentRequest\x1a\x35.google.ads.googleads.v4.resources.CampaignExperiment\"M\x82\xd3\xe4\x93\x02\x37\x12\x35/v4/{resource_name=customers/*/campaignExperiments/*}\xda\x41\rresource_name\x12\xc1\x02\n\x18\x43reateCampaignExperiment\x12\x41.google.ads.googleads.v4.services.CreateCampaignExperimentRequest\x1a\x1d.google.longrunning.Operation\"\xc2\x01\x82\xd3\xe4\x93\x02=\"8/v4/customers/{customer_id=*}/campaignExperiments:create:\x01*\xda\x41\x1f\x63ustomer_id,campaign_experiment\xca\x41Z\n\x15google.protobuf.Empty\x12\x41google.ads.googleads.v4.services.CreateCampaignExperimentMetadata\x12\x82\x02\n\x19MutateCampaignExperiments\x12\x42.google.ads.googleads.v4.services.MutateCampaignExperimentsRequest\x1a\x43.google.ads.googleads.v4.services.MutateCampaignExperimentsResponse\"\\\x82\xd3\xe4\x93\x02=\"8/v4/customers/{customer_id=*}/campaignExperiments:mutate:\x01*\xda\x41\x16\x63ustomer_id,operations\x12\x9e\x02\n\x1aGraduateCampaignExperiment\x12\x43.google.ads.googleads.v4.services.GraduateCampaignExperimentRequest\x1a\x44.google.ads.googleads.v4.services.GraduateCampaignExperimentResponse\"u\x82\xd3\xe4\x93\x02I\"D/v4/{campaign_experiment=customers/*/campaignExperiments/*}:graduate:\x01*\xda\x41#campaign_experiment,campaign_budget\x12\x96\x02\n\x19PromoteCampaignExperiment\x12\x42.google.ads.googleads.v4.services.PromoteCampaignExperimentRequest\x1a\x1d.google.longrunning.Operation\"\x95\x01\x82\xd3\xe4\x93\x02H\"C/v4/{campaign_experiment=customers/*/campaignExperiments/*}:promote:\x01*\xda\x41\x13\x63\x61mpaign_experiment\xca\x41.\n\x15google.protobuf.Empty\x12\x15google.protobuf.Empty\x12\xd1\x01\n\x15\x45ndCampaignExperiment\x12>.google.ads.googleads.v4.services.EndCampaignExperimentRequest\x1a\x16.google.protobuf.Empty\"`\x82\xd3\xe4\x93\x02\x44\"?/v4/{campaign_experiment=customers/*/campaignExperiments/*}:end:\x01*\xda\x41\x13\x63\x61mpaign_experiment\x12\x9b\x02\n!ListCampaignExperimentAsyncErrors\x12J.google.ads.googleads.v4.services.ListCampaignExperimentAsyncErrorsRequest\x1aK.google.ads.googleads.v4.services.ListCampaignExperimentAsyncErrorsResponse\"]\x82\xd3\xe4\x93\x02G\x12\x45/v4/{resource_name=customers/*/campaignExperiments/*}:listAsyncErrors\xda\x41\rresource_name\x1a\x1b\xca\x41\x18googleads.googleapis.comB\x85\x02\n$com.google.ads.googleads.v4.servicesB\x1e\x43\x61mpaignExperimentServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V4.Services\xca\x02 Google\\Ads\\GoogleAds\\V4\\Services\xea\x02$Google::Ads::GoogleAds::V4::Servicesb\x06proto3') + , + dependencies=[google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_campaign__experiment__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_api_dot_client__pb2.DESCRIPTOR,google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_api_dot_resource__pb2.DESCRIPTOR,google_dot_longrunning_dot_operations__pb2.DESCRIPTOR,google_dot_protobuf_dot_empty__pb2.DESCRIPTOR,google_dot_protobuf_dot_field__mask__pb2.DESCRIPTOR,google_dot_rpc_dot_status__pb2.DESCRIPTOR,]) + + + + +_GETCAMPAIGNEXPERIMENTREQUEST = _descriptor.Descriptor( + name='GetCampaignExperimentRequest', + full_name='google.ads.googleads.v4.services.GetCampaignExperimentRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.services.GetCampaignExperimentRequest.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002\372A-\n+googleads.googleapis.com/CampaignExperiment'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=417, + serialized_end=523, +) + + +_MUTATECAMPAIGNEXPERIMENTSREQUEST = _descriptor.Descriptor( + name='MutateCampaignExperimentsRequest', + full_name='google.ads.googleads.v4.services.MutateCampaignExperimentsRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='customer_id', full_name='google.ads.googleads.v4.services.MutateCampaignExperimentsRequest.customer_id', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='operations', full_name='google.ads.googleads.v4.services.MutateCampaignExperimentsRequest.operations', index=1, + number=2, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='partial_failure', full_name='google.ads.googleads.v4.services.MutateCampaignExperimentsRequest.partial_failure', index=2, + number=3, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='validate_only', full_name='google.ads.googleads.v4.services.MutateCampaignExperimentsRequest.validate_only', index=3, + number=4, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=526, + serialized_end=722, +) + + +_CAMPAIGNEXPERIMENTOPERATION = _descriptor.Descriptor( + name='CampaignExperimentOperation', + full_name='google.ads.googleads.v4.services.CampaignExperimentOperation', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='update_mask', full_name='google.ads.googleads.v4.services.CampaignExperimentOperation.update_mask', index=0, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='update', full_name='google.ads.googleads.v4.services.CampaignExperimentOperation.update', index=1, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='remove', full_name='google.ads.googleads.v4.services.CampaignExperimentOperation.remove', index=2, + number=2, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name='operation', full_name='google.ads.googleads.v4.services.CampaignExperimentOperation.operation', + index=0, containing_type=None, fields=[]), + ], + serialized_start=725, + serialized_end=907, +) + + +_MUTATECAMPAIGNEXPERIMENTSRESPONSE = _descriptor.Descriptor( + name='MutateCampaignExperimentsResponse', + full_name='google.ads.googleads.v4.services.MutateCampaignExperimentsResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='partial_failure_error', full_name='google.ads.googleads.v4.services.MutateCampaignExperimentsResponse.partial_failure_error', index=0, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='results', full_name='google.ads.googleads.v4.services.MutateCampaignExperimentsResponse.results', index=1, + number=2, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=910, + serialized_end=1079, +) + + +_MUTATECAMPAIGNEXPERIMENTRESULT = _descriptor.Descriptor( + name='MutateCampaignExperimentResult', + full_name='google.ads.googleads.v4.services.MutateCampaignExperimentResult', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.services.MutateCampaignExperimentResult.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1081, + serialized_end=1136, +) + + +_CREATECAMPAIGNEXPERIMENTREQUEST = _descriptor.Descriptor( + name='CreateCampaignExperimentRequest', + full_name='google.ads.googleads.v4.services.CreateCampaignExperimentRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='customer_id', full_name='google.ads.googleads.v4.services.CreateCampaignExperimentRequest.customer_id', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='campaign_experiment', full_name='google.ads.googleads.v4.services.CreateCampaignExperimentRequest.campaign_experiment', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='validate_only', full_name='google.ads.googleads.v4.services.CreateCampaignExperimentRequest.validate_only', index=2, + number=3, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1139, + serialized_end=1310, +) + + +_CREATECAMPAIGNEXPERIMENTMETADATA = _descriptor.Descriptor( + name='CreateCampaignExperimentMetadata', + full_name='google.ads.googleads.v4.services.CreateCampaignExperimentMetadata', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='campaign_experiment', full_name='google.ads.googleads.v4.services.CreateCampaignExperimentMetadata.campaign_experiment', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1312, + serialized_end=1375, +) + + +_GRADUATECAMPAIGNEXPERIMENTREQUEST = _descriptor.Descriptor( + name='GraduateCampaignExperimentRequest', + full_name='google.ads.googleads.v4.services.GraduateCampaignExperimentRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='campaign_experiment', full_name='google.ads.googleads.v4.services.GraduateCampaignExperimentRequest.campaign_experiment', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='campaign_budget', full_name='google.ads.googleads.v4.services.GraduateCampaignExperimentRequest.campaign_budget', index=1, + number=2, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1377, + serialized_end=1476, +) + + +_GRADUATECAMPAIGNEXPERIMENTRESPONSE = _descriptor.Descriptor( + name='GraduateCampaignExperimentResponse', + full_name='google.ads.googleads.v4.services.GraduateCampaignExperimentResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='graduated_campaign', full_name='google.ads.googleads.v4.services.GraduateCampaignExperimentResponse.graduated_campaign', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1478, + serialized_end=1542, +) + + +_PROMOTECAMPAIGNEXPERIMENTREQUEST = _descriptor.Descriptor( + name='PromoteCampaignExperimentRequest', + full_name='google.ads.googleads.v4.services.PromoteCampaignExperimentRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='campaign_experiment', full_name='google.ads.googleads.v4.services.PromoteCampaignExperimentRequest.campaign_experiment', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1544, + serialized_end=1612, +) + + +_ENDCAMPAIGNEXPERIMENTREQUEST = _descriptor.Descriptor( + name='EndCampaignExperimentRequest', + full_name='google.ads.googleads.v4.services.EndCampaignExperimentRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='campaign_experiment', full_name='google.ads.googleads.v4.services.EndCampaignExperimentRequest.campaign_experiment', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1614, + serialized_end=1678, +) + + +_LISTCAMPAIGNEXPERIMENTASYNCERRORSREQUEST = _descriptor.Descriptor( + name='ListCampaignExperimentAsyncErrorsRequest', + full_name='google.ads.googleads.v4.services.ListCampaignExperimentAsyncErrorsRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.services.ListCampaignExperimentAsyncErrorsRequest.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002\372A-\n+googleads.googleapis.com/CampaignExperiment'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='page_token', full_name='google.ads.googleads.v4.services.ListCampaignExperimentAsyncErrorsRequest.page_token', index=1, + number=2, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='page_size', full_name='google.ads.googleads.v4.services.ListCampaignExperimentAsyncErrorsRequest.page_size', index=2, + number=3, type=5, cpp_type=1, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1681, + serialized_end=1838, +) + + +_LISTCAMPAIGNEXPERIMENTASYNCERRORSRESPONSE = _descriptor.Descriptor( + name='ListCampaignExperimentAsyncErrorsResponse', + full_name='google.ads.googleads.v4.services.ListCampaignExperimentAsyncErrorsResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='errors', full_name='google.ads.googleads.v4.services.ListCampaignExperimentAsyncErrorsResponse.errors', index=0, + number=1, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='next_page_token', full_name='google.ads.googleads.v4.services.ListCampaignExperimentAsyncErrorsResponse.next_page_token', index=1, + number=2, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1840, + serialized_end=1944, +) + +_MUTATECAMPAIGNEXPERIMENTSREQUEST.fields_by_name['operations'].message_type = _CAMPAIGNEXPERIMENTOPERATION +_CAMPAIGNEXPERIMENTOPERATION.fields_by_name['update_mask'].message_type = google_dot_protobuf_dot_field__mask__pb2._FIELDMASK +_CAMPAIGNEXPERIMENTOPERATION.fields_by_name['update'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_campaign__experiment__pb2._CAMPAIGNEXPERIMENT +_CAMPAIGNEXPERIMENTOPERATION.oneofs_by_name['operation'].fields.append( + _CAMPAIGNEXPERIMENTOPERATION.fields_by_name['update']) +_CAMPAIGNEXPERIMENTOPERATION.fields_by_name['update'].containing_oneof = _CAMPAIGNEXPERIMENTOPERATION.oneofs_by_name['operation'] +_CAMPAIGNEXPERIMENTOPERATION.oneofs_by_name['operation'].fields.append( + _CAMPAIGNEXPERIMENTOPERATION.fields_by_name['remove']) +_CAMPAIGNEXPERIMENTOPERATION.fields_by_name['remove'].containing_oneof = _CAMPAIGNEXPERIMENTOPERATION.oneofs_by_name['operation'] +_MUTATECAMPAIGNEXPERIMENTSRESPONSE.fields_by_name['partial_failure_error'].message_type = google_dot_rpc_dot_status__pb2._STATUS +_MUTATECAMPAIGNEXPERIMENTSRESPONSE.fields_by_name['results'].message_type = _MUTATECAMPAIGNEXPERIMENTRESULT +_CREATECAMPAIGNEXPERIMENTREQUEST.fields_by_name['campaign_experiment'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_campaign__experiment__pb2._CAMPAIGNEXPERIMENT +_LISTCAMPAIGNEXPERIMENTASYNCERRORSRESPONSE.fields_by_name['errors'].message_type = google_dot_rpc_dot_status__pb2._STATUS +DESCRIPTOR.message_types_by_name['GetCampaignExperimentRequest'] = _GETCAMPAIGNEXPERIMENTREQUEST +DESCRIPTOR.message_types_by_name['MutateCampaignExperimentsRequest'] = _MUTATECAMPAIGNEXPERIMENTSREQUEST +DESCRIPTOR.message_types_by_name['CampaignExperimentOperation'] = _CAMPAIGNEXPERIMENTOPERATION +DESCRIPTOR.message_types_by_name['MutateCampaignExperimentsResponse'] = _MUTATECAMPAIGNEXPERIMENTSRESPONSE +DESCRIPTOR.message_types_by_name['MutateCampaignExperimentResult'] = _MUTATECAMPAIGNEXPERIMENTRESULT +DESCRIPTOR.message_types_by_name['CreateCampaignExperimentRequest'] = _CREATECAMPAIGNEXPERIMENTREQUEST +DESCRIPTOR.message_types_by_name['CreateCampaignExperimentMetadata'] = _CREATECAMPAIGNEXPERIMENTMETADATA +DESCRIPTOR.message_types_by_name['GraduateCampaignExperimentRequest'] = _GRADUATECAMPAIGNEXPERIMENTREQUEST +DESCRIPTOR.message_types_by_name['GraduateCampaignExperimentResponse'] = _GRADUATECAMPAIGNEXPERIMENTRESPONSE +DESCRIPTOR.message_types_by_name['PromoteCampaignExperimentRequest'] = _PROMOTECAMPAIGNEXPERIMENTREQUEST +DESCRIPTOR.message_types_by_name['EndCampaignExperimentRequest'] = _ENDCAMPAIGNEXPERIMENTREQUEST +DESCRIPTOR.message_types_by_name['ListCampaignExperimentAsyncErrorsRequest'] = _LISTCAMPAIGNEXPERIMENTASYNCERRORSREQUEST +DESCRIPTOR.message_types_by_name['ListCampaignExperimentAsyncErrorsResponse'] = _LISTCAMPAIGNEXPERIMENTASYNCERRORSRESPONSE +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +GetCampaignExperimentRequest = _reflection.GeneratedProtocolMessageType('GetCampaignExperimentRequest', (_message.Message,), dict( + DESCRIPTOR = _GETCAMPAIGNEXPERIMENTREQUEST, + __module__ = 'google.ads.googleads_v4.proto.services.campaign_experiment_service_pb2' + , + __doc__ = """Request message for + [CampaignExperimentService.GetCampaignExperiment][google.ads.googleads.v4.services.CampaignExperimentService.GetCampaignExperiment]. + + + Attributes: + resource_name: + Required. The resource name of the campaign experiment to + fetch. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.GetCampaignExperimentRequest) + )) +_sym_db.RegisterMessage(GetCampaignExperimentRequest) + +MutateCampaignExperimentsRequest = _reflection.GeneratedProtocolMessageType('MutateCampaignExperimentsRequest', (_message.Message,), dict( + DESCRIPTOR = _MUTATECAMPAIGNEXPERIMENTSREQUEST, + __module__ = 'google.ads.googleads_v4.proto.services.campaign_experiment_service_pb2' + , + __doc__ = """Request message for + [CampaignExperimentService.MutateCampaignExperiments][google.ads.googleads.v4.services.CampaignExperimentService.MutateCampaignExperiments]. + + + Attributes: + customer_id: + Required. The ID of the customer whose campaign experiments + are being modified. + operations: + Required. The list of operations to perform on individual + campaign experiments. + partial_failure: + If true, successful operations will be carried out and invalid + operations will return errors. If false, all operations will + be carried out in one transaction if and only if they are all + valid. Default is false. + validate_only: + If true, the request is validated but not executed. Only + errors are returned, not results. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.MutateCampaignExperimentsRequest) + )) +_sym_db.RegisterMessage(MutateCampaignExperimentsRequest) + +CampaignExperimentOperation = _reflection.GeneratedProtocolMessageType('CampaignExperimentOperation', (_message.Message,), dict( + DESCRIPTOR = _CAMPAIGNEXPERIMENTOPERATION, + __module__ = 'google.ads.googleads_v4.proto.services.campaign_experiment_service_pb2' + , + __doc__ = """A single update operation on a campaign experiment. + + + Attributes: + update_mask: + FieldMask that determines which resource fields are modified + in an update. + operation: + The mutate operation. + update: + Update operation: The campaign experiment is expected to have + a valid resource name. + remove: + Remove operation: The campaign experiment is expected to have + a valid resource name, in this format: ``customers/{customer_ + id}/campaignExperiments/{campaign_experiment_id}`` + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.CampaignExperimentOperation) + )) +_sym_db.RegisterMessage(CampaignExperimentOperation) + +MutateCampaignExperimentsResponse = _reflection.GeneratedProtocolMessageType('MutateCampaignExperimentsResponse', (_message.Message,), dict( + DESCRIPTOR = _MUTATECAMPAIGNEXPERIMENTSRESPONSE, + __module__ = 'google.ads.googleads_v4.proto.services.campaign_experiment_service_pb2' + , + __doc__ = """Response message for campaign experiment mutate. + + + Attributes: + partial_failure_error: + Errors that pertain to operation failures in the partial + failure mode. Returned only when partial\_failure = true and + all errors occur inside the operations. If any errors occur + outside the operations (e.g. auth errors), we return an RPC + level error. + results: + All results for the mutate. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.MutateCampaignExperimentsResponse) + )) +_sym_db.RegisterMessage(MutateCampaignExperimentsResponse) + +MutateCampaignExperimentResult = _reflection.GeneratedProtocolMessageType('MutateCampaignExperimentResult', (_message.Message,), dict( + DESCRIPTOR = _MUTATECAMPAIGNEXPERIMENTRESULT, + __module__ = 'google.ads.googleads_v4.proto.services.campaign_experiment_service_pb2' + , + __doc__ = """The result for the campaign experiment mutate. + + + Attributes: + resource_name: + Returned for successful operations. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.MutateCampaignExperimentResult) + )) +_sym_db.RegisterMessage(MutateCampaignExperimentResult) + +CreateCampaignExperimentRequest = _reflection.GeneratedProtocolMessageType('CreateCampaignExperimentRequest', (_message.Message,), dict( + DESCRIPTOR = _CREATECAMPAIGNEXPERIMENTREQUEST, + __module__ = 'google.ads.googleads_v4.proto.services.campaign_experiment_service_pb2' + , + __doc__ = """Request message for + [CampaignExperimentService.CreateCampaignExperiment][google.ads.googleads.v4.services.CampaignExperimentService.CreateCampaignExperiment]. + + + Attributes: + customer_id: + Required. The ID of the customer whose campaign experiment is + being created. + campaign_experiment: + Required. The campaign experiment to be created. + validate_only: + If true, the request is validated but not executed. Only + errors are returned, not results. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.CreateCampaignExperimentRequest) + )) +_sym_db.RegisterMessage(CreateCampaignExperimentRequest) + +CreateCampaignExperimentMetadata = _reflection.GeneratedProtocolMessageType('CreateCampaignExperimentMetadata', (_message.Message,), dict( + DESCRIPTOR = _CREATECAMPAIGNEXPERIMENTMETADATA, + __module__ = 'google.ads.googleads_v4.proto.services.campaign_experiment_service_pb2' + , + __doc__ = """Message used as metadata returned in Long Running Operations for + CreateCampaignExperimentRequest + + + Attributes: + campaign_experiment: + Resource name of campaign experiment created. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.CreateCampaignExperimentMetadata) + )) +_sym_db.RegisterMessage(CreateCampaignExperimentMetadata) + +GraduateCampaignExperimentRequest = _reflection.GeneratedProtocolMessageType('GraduateCampaignExperimentRequest', (_message.Message,), dict( + DESCRIPTOR = _GRADUATECAMPAIGNEXPERIMENTREQUEST, + __module__ = 'google.ads.googleads_v4.proto.services.campaign_experiment_service_pb2' + , + __doc__ = """Request message for + [CampaignExperimentService.GraduateCampaignExperiment][google.ads.googleads.v4.services.CampaignExperimentService.GraduateCampaignExperiment]. + + + Attributes: + campaign_experiment: + Required. The resource name of the campaign experiment to + graduate. + campaign_budget: + Required. Resource name of the budget to attach to the + campaign graduated from the experiment. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.GraduateCampaignExperimentRequest) + )) +_sym_db.RegisterMessage(GraduateCampaignExperimentRequest) + +GraduateCampaignExperimentResponse = _reflection.GeneratedProtocolMessageType('GraduateCampaignExperimentResponse', (_message.Message,), dict( + DESCRIPTOR = _GRADUATECAMPAIGNEXPERIMENTRESPONSE, + __module__ = 'google.ads.googleads_v4.proto.services.campaign_experiment_service_pb2' + , + __doc__ = """Response message for campaign experiment graduate. + + + Attributes: + graduated_campaign: + The resource name of the campaign from the graduated + experiment. This campaign is the same one as + CampaignExperiment.experiment\_campaign. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.GraduateCampaignExperimentResponse) + )) +_sym_db.RegisterMessage(GraduateCampaignExperimentResponse) + +PromoteCampaignExperimentRequest = _reflection.GeneratedProtocolMessageType('PromoteCampaignExperimentRequest', (_message.Message,), dict( + DESCRIPTOR = _PROMOTECAMPAIGNEXPERIMENTREQUEST, + __module__ = 'google.ads.googleads_v4.proto.services.campaign_experiment_service_pb2' + , + __doc__ = """Request message for + [CampaignExperimentService.PromoteCampaignExperiment][google.ads.googleads.v4.services.CampaignExperimentService.PromoteCampaignExperiment]. + + + Attributes: + campaign_experiment: + Required. The resource name of the campaign experiment to + promote. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.PromoteCampaignExperimentRequest) + )) +_sym_db.RegisterMessage(PromoteCampaignExperimentRequest) + +EndCampaignExperimentRequest = _reflection.GeneratedProtocolMessageType('EndCampaignExperimentRequest', (_message.Message,), dict( + DESCRIPTOR = _ENDCAMPAIGNEXPERIMENTREQUEST, + __module__ = 'google.ads.googleads_v4.proto.services.campaign_experiment_service_pb2' + , + __doc__ = """Request message for + [CampaignExperimentService.EndCampaignExperiment][google.ads.googleads.v4.services.CampaignExperimentService.EndCampaignExperiment]. + + + Attributes: + campaign_experiment: + Required. The resource name of the campaign experiment to end. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.EndCampaignExperimentRequest) + )) +_sym_db.RegisterMessage(EndCampaignExperimentRequest) + +ListCampaignExperimentAsyncErrorsRequest = _reflection.GeneratedProtocolMessageType('ListCampaignExperimentAsyncErrorsRequest', (_message.Message,), dict( + DESCRIPTOR = _LISTCAMPAIGNEXPERIMENTASYNCERRORSREQUEST, + __module__ = 'google.ads.googleads_v4.proto.services.campaign_experiment_service_pb2' + , + __doc__ = """Request message for + [CampaignExperimentService.ListCampaignExperimentAsyncErrors][google.ads.googleads.v4.services.CampaignExperimentService.ListCampaignExperimentAsyncErrors]. + + + Attributes: + resource_name: + Required. The name of the campaign experiment from which to + retrieve the async errors. + page_token: + Token of the page to retrieve. If not specified, the first + page of results will be returned. Use the value obtained from + ``next_page_token`` in the previous response in order to + request the next page of results. + page_size: + Number of elements to retrieve in a single page. When a page + request is too large, the server may decide to further limit + the number of returned resources. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.ListCampaignExperimentAsyncErrorsRequest) + )) +_sym_db.RegisterMessage(ListCampaignExperimentAsyncErrorsRequest) + +ListCampaignExperimentAsyncErrorsResponse = _reflection.GeneratedProtocolMessageType('ListCampaignExperimentAsyncErrorsResponse', (_message.Message,), dict( + DESCRIPTOR = _LISTCAMPAIGNEXPERIMENTASYNCERRORSRESPONSE, + __module__ = 'google.ads.googleads_v4.proto.services.campaign_experiment_service_pb2' + , + __doc__ = """Response message for + [CampaignExperimentService.ListCampaignExperimentAsyncErrors][google.ads.googleads.v4.services.CampaignExperimentService.ListCampaignExperimentAsyncErrors]. + + + Attributes: + errors: + Details of the errors when performing the asynchronous + operation. + next_page_token: + Pagination token used to retrieve the next page of results. + Pass the content of this string as the ``page_token`` + attribute of the next request. ``next_page_token`` is not + returned for the last page. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.ListCampaignExperimentAsyncErrorsResponse) + )) +_sym_db.RegisterMessage(ListCampaignExperimentAsyncErrorsResponse) + + +DESCRIPTOR._options = None +_GETCAMPAIGNEXPERIMENTREQUEST.fields_by_name['resource_name']._options = None +_MUTATECAMPAIGNEXPERIMENTSREQUEST.fields_by_name['customer_id']._options = None +_MUTATECAMPAIGNEXPERIMENTSREQUEST.fields_by_name['operations']._options = None +_CREATECAMPAIGNEXPERIMENTREQUEST.fields_by_name['customer_id']._options = None +_CREATECAMPAIGNEXPERIMENTREQUEST.fields_by_name['campaign_experiment']._options = None +_GRADUATECAMPAIGNEXPERIMENTREQUEST.fields_by_name['campaign_experiment']._options = None +_GRADUATECAMPAIGNEXPERIMENTREQUEST.fields_by_name['campaign_budget']._options = None +_PROMOTECAMPAIGNEXPERIMENTREQUEST.fields_by_name['campaign_experiment']._options = None +_ENDCAMPAIGNEXPERIMENTREQUEST.fields_by_name['campaign_experiment']._options = None +_LISTCAMPAIGNEXPERIMENTASYNCERRORSREQUEST.fields_by_name['resource_name']._options = None + +_CAMPAIGNEXPERIMENTSERVICE = _descriptor.ServiceDescriptor( + name='CampaignExperimentService', + full_name='google.ads.googleads.v4.services.CampaignExperimentService', + file=DESCRIPTOR, + index=0, + serialized_options=_b('\312A\030googleads.googleapis.com'), + serialized_start=1947, + serialized_end=3880, + methods=[ + _descriptor.MethodDescriptor( + name='GetCampaignExperiment', + full_name='google.ads.googleads.v4.services.CampaignExperimentService.GetCampaignExperiment', + index=0, + containing_service=None, + input_type=_GETCAMPAIGNEXPERIMENTREQUEST, + output_type=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_campaign__experiment__pb2._CAMPAIGNEXPERIMENT, + serialized_options=_b('\202\323\344\223\0027\0225/v4/{resource_name=customers/*/campaignExperiments/*}\332A\rresource_name'), + ), + _descriptor.MethodDescriptor( + name='CreateCampaignExperiment', + full_name='google.ads.googleads.v4.services.CampaignExperimentService.CreateCampaignExperiment', + index=1, + containing_service=None, + input_type=_CREATECAMPAIGNEXPERIMENTREQUEST, + output_type=google_dot_longrunning_dot_operations__pb2._OPERATION, + serialized_options=_b('\202\323\344\223\002=\"8/v4/customers/{customer_id=*}/campaignExperiments:create:\001*\332A\037customer_id,campaign_experiment\312AZ\n\025google.protobuf.Empty\022Agoogle.ads.googleads.v4.services.CreateCampaignExperimentMetadata'), + ), + _descriptor.MethodDescriptor( + name='MutateCampaignExperiments', + full_name='google.ads.googleads.v4.services.CampaignExperimentService.MutateCampaignExperiments', + index=2, + containing_service=None, + input_type=_MUTATECAMPAIGNEXPERIMENTSREQUEST, + output_type=_MUTATECAMPAIGNEXPERIMENTSRESPONSE, + serialized_options=_b('\202\323\344\223\002=\"8/v4/customers/{customer_id=*}/campaignExperiments:mutate:\001*\332A\026customer_id,operations'), + ), + _descriptor.MethodDescriptor( + name='GraduateCampaignExperiment', + full_name='google.ads.googleads.v4.services.CampaignExperimentService.GraduateCampaignExperiment', + index=3, + containing_service=None, + input_type=_GRADUATECAMPAIGNEXPERIMENTREQUEST, + output_type=_GRADUATECAMPAIGNEXPERIMENTRESPONSE, + serialized_options=_b('\202\323\344\223\002I\"D/v4/{campaign_experiment=customers/*/campaignExperiments/*}:graduate:\001*\332A#campaign_experiment,campaign_budget'), + ), + _descriptor.MethodDescriptor( + name='PromoteCampaignExperiment', + full_name='google.ads.googleads.v4.services.CampaignExperimentService.PromoteCampaignExperiment', + index=4, + containing_service=None, + input_type=_PROMOTECAMPAIGNEXPERIMENTREQUEST, + output_type=google_dot_longrunning_dot_operations__pb2._OPERATION, + serialized_options=_b('\202\323\344\223\002H\"C/v4/{campaign_experiment=customers/*/campaignExperiments/*}:promote:\001*\332A\023campaign_experiment\312A.\n\025google.protobuf.Empty\022\025google.protobuf.Empty'), + ), + _descriptor.MethodDescriptor( + name='EndCampaignExperiment', + full_name='google.ads.googleads.v4.services.CampaignExperimentService.EndCampaignExperiment', + index=5, + containing_service=None, + input_type=_ENDCAMPAIGNEXPERIMENTREQUEST, + output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, + serialized_options=_b('\202\323\344\223\002D\"?/v4/{campaign_experiment=customers/*/campaignExperiments/*}:end:\001*\332A\023campaign_experiment'), + ), + _descriptor.MethodDescriptor( + name='ListCampaignExperimentAsyncErrors', + full_name='google.ads.googleads.v4.services.CampaignExperimentService.ListCampaignExperimentAsyncErrors', + index=6, + containing_service=None, + input_type=_LISTCAMPAIGNEXPERIMENTASYNCERRORSREQUEST, + output_type=_LISTCAMPAIGNEXPERIMENTASYNCERRORSRESPONSE, + serialized_options=_b('\202\323\344\223\002G\022E/v4/{resource_name=customers/*/campaignExperiments/*}:listAsyncErrors\332A\rresource_name'), + ), +]) +_sym_db.RegisterServiceDescriptor(_CAMPAIGNEXPERIMENTSERVICE) + +DESCRIPTOR.services_by_name['CampaignExperimentService'] = _CAMPAIGNEXPERIMENTSERVICE + +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/services/campaign_experiment_service_pb2_grpc.py b/google/ads/google_ads/v4/proto/services/campaign_experiment_service_pb2_grpc.py similarity index 81% rename from google/ads/google_ads/v1/proto/services/campaign_experiment_service_pb2_grpc.py rename to google/ads/google_ads/v4/proto/services/campaign_experiment_service_pb2_grpc.py index 96de1635e..0a70193f3 100644 --- a/google/ads/google_ads/v1/proto/services/campaign_experiment_service_pb2_grpc.py +++ b/google/ads/google_ads/v4/proto/services/campaign_experiment_service_pb2_grpc.py @@ -1,8 +1,8 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc -from google.ads.google_ads.v1.proto.resources import campaign_experiment_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_campaign__experiment__pb2 -from google.ads.google_ads.v1.proto.services import campaign_experiment_service_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_campaign__experiment__service__pb2 +from google.ads.google_ads.v4.proto.resources import campaign_experiment_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_campaign__experiment__pb2 +from google.ads.google_ads.v4.proto.services import campaign_experiment_service_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_campaign__experiment__service__pb2 from google.longrunning import operations_pb2 as google_dot_longrunning_dot_operations__pb2 from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2 @@ -29,39 +29,39 @@ def __init__(self, channel): channel: A grpc.Channel. """ self.GetCampaignExperiment = channel.unary_unary( - '/google.ads.googleads.v1.services.CampaignExperimentService/GetCampaignExperiment', - request_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_campaign__experiment__service__pb2.GetCampaignExperimentRequest.SerializeToString, - response_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_campaign__experiment__pb2.CampaignExperiment.FromString, + '/google.ads.googleads.v4.services.CampaignExperimentService/GetCampaignExperiment', + request_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_campaign__experiment__service__pb2.GetCampaignExperimentRequest.SerializeToString, + response_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_campaign__experiment__pb2.CampaignExperiment.FromString, ) self.CreateCampaignExperiment = channel.unary_unary( - '/google.ads.googleads.v1.services.CampaignExperimentService/CreateCampaignExperiment', - request_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_campaign__experiment__service__pb2.CreateCampaignExperimentRequest.SerializeToString, + '/google.ads.googleads.v4.services.CampaignExperimentService/CreateCampaignExperiment', + request_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_campaign__experiment__service__pb2.CreateCampaignExperimentRequest.SerializeToString, response_deserializer=google_dot_longrunning_dot_operations__pb2.Operation.FromString, ) self.MutateCampaignExperiments = channel.unary_unary( - '/google.ads.googleads.v1.services.CampaignExperimentService/MutateCampaignExperiments', - request_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_campaign__experiment__service__pb2.MutateCampaignExperimentsRequest.SerializeToString, - response_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_campaign__experiment__service__pb2.MutateCampaignExperimentsResponse.FromString, + '/google.ads.googleads.v4.services.CampaignExperimentService/MutateCampaignExperiments', + request_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_campaign__experiment__service__pb2.MutateCampaignExperimentsRequest.SerializeToString, + response_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_campaign__experiment__service__pb2.MutateCampaignExperimentsResponse.FromString, ) self.GraduateCampaignExperiment = channel.unary_unary( - '/google.ads.googleads.v1.services.CampaignExperimentService/GraduateCampaignExperiment', - request_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_campaign__experiment__service__pb2.GraduateCampaignExperimentRequest.SerializeToString, - response_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_campaign__experiment__service__pb2.GraduateCampaignExperimentResponse.FromString, + '/google.ads.googleads.v4.services.CampaignExperimentService/GraduateCampaignExperiment', + request_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_campaign__experiment__service__pb2.GraduateCampaignExperimentRequest.SerializeToString, + response_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_campaign__experiment__service__pb2.GraduateCampaignExperimentResponse.FromString, ) self.PromoteCampaignExperiment = channel.unary_unary( - '/google.ads.googleads.v1.services.CampaignExperimentService/PromoteCampaignExperiment', - request_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_campaign__experiment__service__pb2.PromoteCampaignExperimentRequest.SerializeToString, + '/google.ads.googleads.v4.services.CampaignExperimentService/PromoteCampaignExperiment', + request_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_campaign__experiment__service__pb2.PromoteCampaignExperimentRequest.SerializeToString, response_deserializer=google_dot_longrunning_dot_operations__pb2.Operation.FromString, ) self.EndCampaignExperiment = channel.unary_unary( - '/google.ads.googleads.v1.services.CampaignExperimentService/EndCampaignExperiment', - request_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_campaign__experiment__service__pb2.EndCampaignExperimentRequest.SerializeToString, + '/google.ads.googleads.v4.services.CampaignExperimentService/EndCampaignExperiment', + request_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_campaign__experiment__service__pb2.EndCampaignExperimentRequest.SerializeToString, response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, ) self.ListCampaignExperimentAsyncErrors = channel.unary_unary( - '/google.ads.googleads.v1.services.CampaignExperimentService/ListCampaignExperimentAsyncErrors', - request_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_campaign__experiment__service__pb2.ListCampaignExperimentAsyncErrorsRequest.SerializeToString, - response_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_campaign__experiment__service__pb2.ListCampaignExperimentAsyncErrorsResponse.FromString, + '/google.ads.googleads.v4.services.CampaignExperimentService/ListCampaignExperimentAsyncErrors', + request_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_campaign__experiment__service__pb2.ListCampaignExperimentAsyncErrorsRequest.SerializeToString, + response_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_campaign__experiment__service__pb2.ListCampaignExperimentAsyncErrorsResponse.FromString, ) @@ -153,40 +153,40 @@ def add_CampaignExperimentServiceServicer_to_server(servicer, server): rpc_method_handlers = { 'GetCampaignExperiment': grpc.unary_unary_rpc_method_handler( servicer.GetCampaignExperiment, - request_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_campaign__experiment__service__pb2.GetCampaignExperimentRequest.FromString, - response_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_campaign__experiment__pb2.CampaignExperiment.SerializeToString, + request_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_campaign__experiment__service__pb2.GetCampaignExperimentRequest.FromString, + response_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_campaign__experiment__pb2.CampaignExperiment.SerializeToString, ), 'CreateCampaignExperiment': grpc.unary_unary_rpc_method_handler( servicer.CreateCampaignExperiment, - request_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_campaign__experiment__service__pb2.CreateCampaignExperimentRequest.FromString, + request_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_campaign__experiment__service__pb2.CreateCampaignExperimentRequest.FromString, response_serializer=google_dot_longrunning_dot_operations__pb2.Operation.SerializeToString, ), 'MutateCampaignExperiments': grpc.unary_unary_rpc_method_handler( servicer.MutateCampaignExperiments, - request_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_campaign__experiment__service__pb2.MutateCampaignExperimentsRequest.FromString, - response_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_campaign__experiment__service__pb2.MutateCampaignExperimentsResponse.SerializeToString, + request_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_campaign__experiment__service__pb2.MutateCampaignExperimentsRequest.FromString, + response_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_campaign__experiment__service__pb2.MutateCampaignExperimentsResponse.SerializeToString, ), 'GraduateCampaignExperiment': grpc.unary_unary_rpc_method_handler( servicer.GraduateCampaignExperiment, - request_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_campaign__experiment__service__pb2.GraduateCampaignExperimentRequest.FromString, - response_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_campaign__experiment__service__pb2.GraduateCampaignExperimentResponse.SerializeToString, + request_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_campaign__experiment__service__pb2.GraduateCampaignExperimentRequest.FromString, + response_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_campaign__experiment__service__pb2.GraduateCampaignExperimentResponse.SerializeToString, ), 'PromoteCampaignExperiment': grpc.unary_unary_rpc_method_handler( servicer.PromoteCampaignExperiment, - request_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_campaign__experiment__service__pb2.PromoteCampaignExperimentRequest.FromString, + request_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_campaign__experiment__service__pb2.PromoteCampaignExperimentRequest.FromString, response_serializer=google_dot_longrunning_dot_operations__pb2.Operation.SerializeToString, ), 'EndCampaignExperiment': grpc.unary_unary_rpc_method_handler( servicer.EndCampaignExperiment, - request_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_campaign__experiment__service__pb2.EndCampaignExperimentRequest.FromString, + request_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_campaign__experiment__service__pb2.EndCampaignExperimentRequest.FromString, response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, ), 'ListCampaignExperimentAsyncErrors': grpc.unary_unary_rpc_method_handler( servicer.ListCampaignExperimentAsyncErrors, - request_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_campaign__experiment__service__pb2.ListCampaignExperimentAsyncErrorsRequest.FromString, - response_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_campaign__experiment__service__pb2.ListCampaignExperimentAsyncErrorsResponse.SerializeToString, + request_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_campaign__experiment__service__pb2.ListCampaignExperimentAsyncErrorsRequest.FromString, + response_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_campaign__experiment__service__pb2.ListCampaignExperimentAsyncErrorsResponse.SerializeToString, ), } generic_handler = grpc.method_handlers_generic_handler( - 'google.ads.googleads.v1.services.CampaignExperimentService', rpc_method_handlers) + 'google.ads.googleads.v4.services.CampaignExperimentService', rpc_method_handlers) server.add_generic_rpc_handlers((generic_handler,)) diff --git a/google/ads/google_ads/v4/proto/services/campaign_extension_setting_service_pb2.py b/google/ads/google_ads/v4/proto/services/campaign_extension_setting_service_pb2.py new file mode 100644 index 000000000..2c6c57ac4 --- /dev/null +++ b/google/ads/google_ads/v4/proto/services/campaign_extension_setting_service_pb2.py @@ -0,0 +1,414 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/services/campaign_extension_setting_service.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.ads.google_ads.v4.proto.resources import campaign_extension_setting_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_campaign__extension__setting__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 +from google.api import client_pb2 as google_dot_api_dot_client__pb2 +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 +from google.protobuf import field_mask_pb2 as google_dot_protobuf_dot_field__mask__pb2 +from google.rpc import status_pb2 as google_dot_rpc_dot_status__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/services/campaign_extension_setting_service.proto', + package='google.ads.googleads.v4.services', + syntax='proto3', + serialized_options=_b('\n$com.google.ads.googleads.v4.servicesB$CampaignExtensionSettingServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V4.Services\312\002 Google\\Ads\\GoogleAds\\V4\\Services\352\002$Google::Ads::GoogleAds::V4::Services'), + serialized_pb=_b('\nOgoogle/ads/googleads_v4/proto/services/campaign_extension_setting_service.proto\x12 google.ads.googleads.v4.services\x1aHgoogle/ads/googleads_v4/proto/resources/campaign_extension_setting.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/protobuf/field_mask.proto\x1a\x17google/rpc/status.proto\"v\n\"GetCampaignExtensionSettingRequest\x12P\n\rresource_name\x18\x01 \x01(\tB9\xe0\x41\x02\xfa\x41\x33\n1googleads.googleapis.com/CampaignExtensionSetting\"\xd0\x01\n&MutateCampaignExtensionSettingsRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\\\n\noperations\x18\x02 \x03(\x0b\x32\x43.google.ads.googleads.v4.services.CampaignExtensionSettingOperationB\x03\xe0\x41\x02\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\"\x91\x02\n!CampaignExtensionSettingOperation\x12/\n\x0bupdate_mask\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12M\n\x06\x63reate\x18\x01 \x01(\x0b\x32;.google.ads.googleads.v4.resources.CampaignExtensionSettingH\x00\x12M\n\x06update\x18\x02 \x01(\x0b\x32;.google.ads.googleads.v4.resources.CampaignExtensionSettingH\x00\x12\x10\n\x06remove\x18\x03 \x01(\tH\x00\x42\x0b\n\toperation\"\xb5\x01\n\'MutateCampaignExtensionSettingsResponse\x12\x31\n\x15partial_failure_error\x18\x03 \x01(\x0b\x32\x12.google.rpc.Status\x12W\n\x07results\x18\x02 \x03(\x0b\x32\x46.google.ads.googleads.v4.services.MutateCampaignExtensionSettingResult\"=\n$MutateCampaignExtensionSettingResult\x12\x15\n\rresource_name\x18\x01 \x01(\t2\xd3\x04\n\x1f\x43\x61mpaignExtensionSettingService\x12\xf5\x01\n\x1bGetCampaignExtensionSetting\x12\x44.google.ads.googleads.v4.services.GetCampaignExtensionSettingRequest\x1a;.google.ads.googleads.v4.resources.CampaignExtensionSetting\"S\x82\xd3\xe4\x93\x02=\x12;/v4/{resource_name=customers/*/campaignExtensionSettings/*}\xda\x41\rresource_name\x12\x9a\x02\n\x1fMutateCampaignExtensionSettings\x12H.google.ads.googleads.v4.services.MutateCampaignExtensionSettingsRequest\x1aI.google.ads.googleads.v4.services.MutateCampaignExtensionSettingsResponse\"b\x82\xd3\xe4\x93\x02\x43\">/v4/customers/{customer_id=*}/campaignExtensionSettings:mutate:\x01*\xda\x41\x16\x63ustomer_id,operations\x1a\x1b\xca\x41\x18googleads.googleapis.comB\x8b\x02\n$com.google.ads.googleads.v4.servicesB$CampaignExtensionSettingServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V4.Services\xca\x02 Google\\Ads\\GoogleAds\\V4\\Services\xea\x02$Google::Ads::GoogleAds::V4::Servicesb\x06proto3') + , + dependencies=[google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_campaign__extension__setting__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_api_dot_client__pb2.DESCRIPTOR,google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_api_dot_resource__pb2.DESCRIPTOR,google_dot_protobuf_dot_field__mask__pb2.DESCRIPTOR,google_dot_rpc_dot_status__pb2.DESCRIPTOR,]) + + + + +_GETCAMPAIGNEXTENSIONSETTINGREQUEST = _descriptor.Descriptor( + name='GetCampaignExtensionSettingRequest', + full_name='google.ads.googleads.v4.services.GetCampaignExtensionSettingRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.services.GetCampaignExtensionSettingRequest.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002\372A3\n1googleads.googleapis.com/CampaignExtensionSetting'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=365, + serialized_end=483, +) + + +_MUTATECAMPAIGNEXTENSIONSETTINGSREQUEST = _descriptor.Descriptor( + name='MutateCampaignExtensionSettingsRequest', + full_name='google.ads.googleads.v4.services.MutateCampaignExtensionSettingsRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='customer_id', full_name='google.ads.googleads.v4.services.MutateCampaignExtensionSettingsRequest.customer_id', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='operations', full_name='google.ads.googleads.v4.services.MutateCampaignExtensionSettingsRequest.operations', index=1, + number=2, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='partial_failure', full_name='google.ads.googleads.v4.services.MutateCampaignExtensionSettingsRequest.partial_failure', index=2, + number=3, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='validate_only', full_name='google.ads.googleads.v4.services.MutateCampaignExtensionSettingsRequest.validate_only', index=3, + number=4, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=486, + serialized_end=694, +) + + +_CAMPAIGNEXTENSIONSETTINGOPERATION = _descriptor.Descriptor( + name='CampaignExtensionSettingOperation', + full_name='google.ads.googleads.v4.services.CampaignExtensionSettingOperation', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='update_mask', full_name='google.ads.googleads.v4.services.CampaignExtensionSettingOperation.update_mask', index=0, + number=4, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='create', full_name='google.ads.googleads.v4.services.CampaignExtensionSettingOperation.create', index=1, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='update', full_name='google.ads.googleads.v4.services.CampaignExtensionSettingOperation.update', index=2, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='remove', full_name='google.ads.googleads.v4.services.CampaignExtensionSettingOperation.remove', index=3, + number=3, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name='operation', full_name='google.ads.googleads.v4.services.CampaignExtensionSettingOperation.operation', + index=0, containing_type=None, fields=[]), + ], + serialized_start=697, + serialized_end=970, +) + + +_MUTATECAMPAIGNEXTENSIONSETTINGSRESPONSE = _descriptor.Descriptor( + name='MutateCampaignExtensionSettingsResponse', + full_name='google.ads.googleads.v4.services.MutateCampaignExtensionSettingsResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='partial_failure_error', full_name='google.ads.googleads.v4.services.MutateCampaignExtensionSettingsResponse.partial_failure_error', index=0, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='results', full_name='google.ads.googleads.v4.services.MutateCampaignExtensionSettingsResponse.results', index=1, + number=2, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=973, + serialized_end=1154, +) + + +_MUTATECAMPAIGNEXTENSIONSETTINGRESULT = _descriptor.Descriptor( + name='MutateCampaignExtensionSettingResult', + full_name='google.ads.googleads.v4.services.MutateCampaignExtensionSettingResult', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.services.MutateCampaignExtensionSettingResult.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1156, + serialized_end=1217, +) + +_MUTATECAMPAIGNEXTENSIONSETTINGSREQUEST.fields_by_name['operations'].message_type = _CAMPAIGNEXTENSIONSETTINGOPERATION +_CAMPAIGNEXTENSIONSETTINGOPERATION.fields_by_name['update_mask'].message_type = google_dot_protobuf_dot_field__mask__pb2._FIELDMASK +_CAMPAIGNEXTENSIONSETTINGOPERATION.fields_by_name['create'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_campaign__extension__setting__pb2._CAMPAIGNEXTENSIONSETTING +_CAMPAIGNEXTENSIONSETTINGOPERATION.fields_by_name['update'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_campaign__extension__setting__pb2._CAMPAIGNEXTENSIONSETTING +_CAMPAIGNEXTENSIONSETTINGOPERATION.oneofs_by_name['operation'].fields.append( + _CAMPAIGNEXTENSIONSETTINGOPERATION.fields_by_name['create']) +_CAMPAIGNEXTENSIONSETTINGOPERATION.fields_by_name['create'].containing_oneof = _CAMPAIGNEXTENSIONSETTINGOPERATION.oneofs_by_name['operation'] +_CAMPAIGNEXTENSIONSETTINGOPERATION.oneofs_by_name['operation'].fields.append( + _CAMPAIGNEXTENSIONSETTINGOPERATION.fields_by_name['update']) +_CAMPAIGNEXTENSIONSETTINGOPERATION.fields_by_name['update'].containing_oneof = _CAMPAIGNEXTENSIONSETTINGOPERATION.oneofs_by_name['operation'] +_CAMPAIGNEXTENSIONSETTINGOPERATION.oneofs_by_name['operation'].fields.append( + _CAMPAIGNEXTENSIONSETTINGOPERATION.fields_by_name['remove']) +_CAMPAIGNEXTENSIONSETTINGOPERATION.fields_by_name['remove'].containing_oneof = _CAMPAIGNEXTENSIONSETTINGOPERATION.oneofs_by_name['operation'] +_MUTATECAMPAIGNEXTENSIONSETTINGSRESPONSE.fields_by_name['partial_failure_error'].message_type = google_dot_rpc_dot_status__pb2._STATUS +_MUTATECAMPAIGNEXTENSIONSETTINGSRESPONSE.fields_by_name['results'].message_type = _MUTATECAMPAIGNEXTENSIONSETTINGRESULT +DESCRIPTOR.message_types_by_name['GetCampaignExtensionSettingRequest'] = _GETCAMPAIGNEXTENSIONSETTINGREQUEST +DESCRIPTOR.message_types_by_name['MutateCampaignExtensionSettingsRequest'] = _MUTATECAMPAIGNEXTENSIONSETTINGSREQUEST +DESCRIPTOR.message_types_by_name['CampaignExtensionSettingOperation'] = _CAMPAIGNEXTENSIONSETTINGOPERATION +DESCRIPTOR.message_types_by_name['MutateCampaignExtensionSettingsResponse'] = _MUTATECAMPAIGNEXTENSIONSETTINGSRESPONSE +DESCRIPTOR.message_types_by_name['MutateCampaignExtensionSettingResult'] = _MUTATECAMPAIGNEXTENSIONSETTINGRESULT +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +GetCampaignExtensionSettingRequest = _reflection.GeneratedProtocolMessageType('GetCampaignExtensionSettingRequest', (_message.Message,), dict( + DESCRIPTOR = _GETCAMPAIGNEXTENSIONSETTINGREQUEST, + __module__ = 'google.ads.googleads_v4.proto.services.campaign_extension_setting_service_pb2' + , + __doc__ = """Request message for + [CampaignExtensionSettingService.GetCampaignExtensionSetting][google.ads.googleads.v4.services.CampaignExtensionSettingService.GetCampaignExtensionSetting]. + + + Attributes: + resource_name: + Required. The resource name of the campaign extension setting + to fetch. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.GetCampaignExtensionSettingRequest) + )) +_sym_db.RegisterMessage(GetCampaignExtensionSettingRequest) + +MutateCampaignExtensionSettingsRequest = _reflection.GeneratedProtocolMessageType('MutateCampaignExtensionSettingsRequest', (_message.Message,), dict( + DESCRIPTOR = _MUTATECAMPAIGNEXTENSIONSETTINGSREQUEST, + __module__ = 'google.ads.googleads_v4.proto.services.campaign_extension_setting_service_pb2' + , + __doc__ = """Request message for + [CampaignExtensionSettingService.MutateCampaignExtensionSettings][google.ads.googleads.v4.services.CampaignExtensionSettingService.MutateCampaignExtensionSettings]. + + + Attributes: + customer_id: + Required. The ID of the customer whose campaign extension + settings are being modified. + operations: + Required. The list of operations to perform on individual + campaign extension settings. + partial_failure: + If true, successful operations will be carried out and invalid + operations will return errors. If false, all operations will + be carried out in one transaction if and only if they are all + valid. Default is false. + validate_only: + If true, the request is validated but not executed. Only + errors are returned, not results. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.MutateCampaignExtensionSettingsRequest) + )) +_sym_db.RegisterMessage(MutateCampaignExtensionSettingsRequest) + +CampaignExtensionSettingOperation = _reflection.GeneratedProtocolMessageType('CampaignExtensionSettingOperation', (_message.Message,), dict( + DESCRIPTOR = _CAMPAIGNEXTENSIONSETTINGOPERATION, + __module__ = 'google.ads.googleads_v4.proto.services.campaign_extension_setting_service_pb2' + , + __doc__ = """A single operation (create, update, remove) on a campaign extension + setting. + + + Attributes: + update_mask: + FieldMask that determines which resource fields are modified + in an update. + operation: + The mutate operation. + create: + Create operation: No resource name is expected for the new + campaign extension setting. + update: + Update operation: The campaign extension setting is expected + to have a valid resource name. + remove: + Remove operation: A resource name for the removed campaign + extension setting is expected, in this format: ``customers/{c + ustomer_id}/campaignExtensionSettings/{campaign_id}~{extension + _type}`` + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.CampaignExtensionSettingOperation) + )) +_sym_db.RegisterMessage(CampaignExtensionSettingOperation) + +MutateCampaignExtensionSettingsResponse = _reflection.GeneratedProtocolMessageType('MutateCampaignExtensionSettingsResponse', (_message.Message,), dict( + DESCRIPTOR = _MUTATECAMPAIGNEXTENSIONSETTINGSRESPONSE, + __module__ = 'google.ads.googleads_v4.proto.services.campaign_extension_setting_service_pb2' + , + __doc__ = """Response message for a campaign extension setting mutate. + + + Attributes: + partial_failure_error: + Errors that pertain to operation failures in the partial + failure mode. Returned only when partial\_failure = true and + all errors occur inside the operations. If any errors occur + outside the operations (e.g. auth errors), we return an RPC + level error. + results: + All results for the mutate. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.MutateCampaignExtensionSettingsResponse) + )) +_sym_db.RegisterMessage(MutateCampaignExtensionSettingsResponse) + +MutateCampaignExtensionSettingResult = _reflection.GeneratedProtocolMessageType('MutateCampaignExtensionSettingResult', (_message.Message,), dict( + DESCRIPTOR = _MUTATECAMPAIGNEXTENSIONSETTINGRESULT, + __module__ = 'google.ads.googleads_v4.proto.services.campaign_extension_setting_service_pb2' + , + __doc__ = """The result for the campaign extension setting mutate. + + + Attributes: + resource_name: + Returned for successful operations. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.MutateCampaignExtensionSettingResult) + )) +_sym_db.RegisterMessage(MutateCampaignExtensionSettingResult) + + +DESCRIPTOR._options = None +_GETCAMPAIGNEXTENSIONSETTINGREQUEST.fields_by_name['resource_name']._options = None +_MUTATECAMPAIGNEXTENSIONSETTINGSREQUEST.fields_by_name['customer_id']._options = None +_MUTATECAMPAIGNEXTENSIONSETTINGSREQUEST.fields_by_name['operations']._options = None + +_CAMPAIGNEXTENSIONSETTINGSERVICE = _descriptor.ServiceDescriptor( + name='CampaignExtensionSettingService', + full_name='google.ads.googleads.v4.services.CampaignExtensionSettingService', + file=DESCRIPTOR, + index=0, + serialized_options=_b('\312A\030googleads.googleapis.com'), + serialized_start=1220, + serialized_end=1815, + methods=[ + _descriptor.MethodDescriptor( + name='GetCampaignExtensionSetting', + full_name='google.ads.googleads.v4.services.CampaignExtensionSettingService.GetCampaignExtensionSetting', + index=0, + containing_service=None, + input_type=_GETCAMPAIGNEXTENSIONSETTINGREQUEST, + output_type=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_campaign__extension__setting__pb2._CAMPAIGNEXTENSIONSETTING, + serialized_options=_b('\202\323\344\223\002=\022;/v4/{resource_name=customers/*/campaignExtensionSettings/*}\332A\rresource_name'), + ), + _descriptor.MethodDescriptor( + name='MutateCampaignExtensionSettings', + full_name='google.ads.googleads.v4.services.CampaignExtensionSettingService.MutateCampaignExtensionSettings', + index=1, + containing_service=None, + input_type=_MUTATECAMPAIGNEXTENSIONSETTINGSREQUEST, + output_type=_MUTATECAMPAIGNEXTENSIONSETTINGSRESPONSE, + serialized_options=_b('\202\323\344\223\002C\">/v4/customers/{customer_id=*}/campaignExtensionSettings:mutate:\001*\332A\026customer_id,operations'), + ), +]) +_sym_db.RegisterServiceDescriptor(_CAMPAIGNEXTENSIONSETTINGSERVICE) + +DESCRIPTOR.services_by_name['CampaignExtensionSettingService'] = _CAMPAIGNEXTENSIONSETTINGSERVICE + +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/services/campaign_extension_setting_service_pb2_grpc.py b/google/ads/google_ads/v4/proto/services/campaign_extension_setting_service_pb2_grpc.py similarity index 75% rename from google/ads/google_ads/v1/proto/services/campaign_extension_setting_service_pb2_grpc.py rename to google/ads/google_ads/v4/proto/services/campaign_extension_setting_service_pb2_grpc.py index 097664517..c7bb56101 100644 --- a/google/ads/google_ads/v1/proto/services/campaign_extension_setting_service_pb2_grpc.py +++ b/google/ads/google_ads/v4/proto/services/campaign_extension_setting_service_pb2_grpc.py @@ -1,8 +1,8 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc -from google.ads.google_ads.v1.proto.resources import campaign_extension_setting_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_campaign__extension__setting__pb2 -from google.ads.google_ads.v1.proto.services import campaign_extension_setting_service_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_campaign__extension__setting__service__pb2 +from google.ads.google_ads.v4.proto.resources import campaign_extension_setting_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_campaign__extension__setting__pb2 +from google.ads.google_ads.v4.proto.services import campaign_extension_setting_service_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_campaign__extension__setting__service__pb2 class CampaignExtensionSettingServiceStub(object): @@ -18,14 +18,14 @@ def __init__(self, channel): channel: A grpc.Channel. """ self.GetCampaignExtensionSetting = channel.unary_unary( - '/google.ads.googleads.v1.services.CampaignExtensionSettingService/GetCampaignExtensionSetting', - request_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_campaign__extension__setting__service__pb2.GetCampaignExtensionSettingRequest.SerializeToString, - response_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_campaign__extension__setting__pb2.CampaignExtensionSetting.FromString, + '/google.ads.googleads.v4.services.CampaignExtensionSettingService/GetCampaignExtensionSetting', + request_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_campaign__extension__setting__service__pb2.GetCampaignExtensionSettingRequest.SerializeToString, + response_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_campaign__extension__setting__pb2.CampaignExtensionSetting.FromString, ) self.MutateCampaignExtensionSettings = channel.unary_unary( - '/google.ads.googleads.v1.services.CampaignExtensionSettingService/MutateCampaignExtensionSettings', - request_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_campaign__extension__setting__service__pb2.MutateCampaignExtensionSettingsRequest.SerializeToString, - response_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_campaign__extension__setting__service__pb2.MutateCampaignExtensionSettingsResponse.FromString, + '/google.ads.googleads.v4.services.CampaignExtensionSettingService/MutateCampaignExtensionSettings', + request_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_campaign__extension__setting__service__pb2.MutateCampaignExtensionSettingsRequest.SerializeToString, + response_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_campaign__extension__setting__service__pb2.MutateCampaignExtensionSettingsResponse.FromString, ) @@ -55,15 +55,15 @@ def add_CampaignExtensionSettingServiceServicer_to_server(servicer, server): rpc_method_handlers = { 'GetCampaignExtensionSetting': grpc.unary_unary_rpc_method_handler( servicer.GetCampaignExtensionSetting, - request_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_campaign__extension__setting__service__pb2.GetCampaignExtensionSettingRequest.FromString, - response_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_campaign__extension__setting__pb2.CampaignExtensionSetting.SerializeToString, + request_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_campaign__extension__setting__service__pb2.GetCampaignExtensionSettingRequest.FromString, + response_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_campaign__extension__setting__pb2.CampaignExtensionSetting.SerializeToString, ), 'MutateCampaignExtensionSettings': grpc.unary_unary_rpc_method_handler( servicer.MutateCampaignExtensionSettings, - request_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_campaign__extension__setting__service__pb2.MutateCampaignExtensionSettingsRequest.FromString, - response_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_campaign__extension__setting__service__pb2.MutateCampaignExtensionSettingsResponse.SerializeToString, + request_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_campaign__extension__setting__service__pb2.MutateCampaignExtensionSettingsRequest.FromString, + response_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_campaign__extension__setting__service__pb2.MutateCampaignExtensionSettingsResponse.SerializeToString, ), } generic_handler = grpc.method_handlers_generic_handler( - 'google.ads.googleads.v1.services.CampaignExtensionSettingService', rpc_method_handlers) + 'google.ads.googleads.v4.services.CampaignExtensionSettingService', rpc_method_handlers) server.add_generic_rpc_handlers((generic_handler,)) diff --git a/google/ads/google_ads/v4/proto/services/campaign_feed_service_pb2.py b/google/ads/google_ads/v4/proto/services/campaign_feed_service_pb2.py new file mode 100644 index 000000000..e9c4da9c3 --- /dev/null +++ b/google/ads/google_ads/v4/proto/services/campaign_feed_service_pb2.py @@ -0,0 +1,411 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/services/campaign_feed_service.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.ads.google_ads.v4.proto.resources import campaign_feed_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_campaign__feed__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 +from google.api import client_pb2 as google_dot_api_dot_client__pb2 +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 +from google.protobuf import field_mask_pb2 as google_dot_protobuf_dot_field__mask__pb2 +from google.rpc import status_pb2 as google_dot_rpc_dot_status__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/services/campaign_feed_service.proto', + package='google.ads.googleads.v4.services', + syntax='proto3', + serialized_options=_b('\n$com.google.ads.googleads.v4.servicesB\030CampaignFeedServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V4.Services\312\002 Google\\Ads\\GoogleAds\\V4\\Services\352\002$Google::Ads::GoogleAds::V4::Services'), + serialized_pb=_b('\nBgoogle/ads/googleads_v4/proto/services/campaign_feed_service.proto\x12 google.ads.googleads.v4.services\x1a;google/ads/googleads_v4/proto/resources/campaign_feed.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/protobuf/field_mask.proto\x1a\x17google/rpc/status.proto\"^\n\x16GetCampaignFeedRequest\x12\x44\n\rresource_name\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%googleads.googleapis.com/CampaignFeed\"\xb8\x01\n\x1aMutateCampaignFeedsRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12P\n\noperations\x18\x02 \x03(\x0b\x32\x37.google.ads.googleads.v4.services.CampaignFeedOperationB\x03\xe0\x41\x02\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\"\xed\x01\n\x15\x43\x61mpaignFeedOperation\x12/\n\x0bupdate_mask\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12\x41\n\x06\x63reate\x18\x01 \x01(\x0b\x32/.google.ads.googleads.v4.resources.CampaignFeedH\x00\x12\x41\n\x06update\x18\x02 \x01(\x0b\x32/.google.ads.googleads.v4.resources.CampaignFeedH\x00\x12\x10\n\x06remove\x18\x03 \x01(\tH\x00\x42\x0b\n\toperation\"\x9d\x01\n\x1bMutateCampaignFeedsResponse\x12\x31\n\x15partial_failure_error\x18\x03 \x01(\x0b\x32\x12.google.rpc.Status\x12K\n\x07results\x18\x02 \x03(\x0b\x32:.google.ads.googleads.v4.services.MutateCampaignFeedResult\"1\n\x18MutateCampaignFeedResult\x12\x15\n\rresource_name\x18\x01 \x01(\t2\xe7\x03\n\x13\x43\x61mpaignFeedService\x12\xc5\x01\n\x0fGetCampaignFeed\x12\x38.google.ads.googleads.v4.services.GetCampaignFeedRequest\x1a/.google.ads.googleads.v4.resources.CampaignFeed\"G\x82\xd3\xe4\x93\x02\x31\x12//v4/{resource_name=customers/*/campaignFeeds/*}\xda\x41\rresource_name\x12\xea\x01\n\x13MutateCampaignFeeds\x12<.google.ads.googleads.v4.services.MutateCampaignFeedsRequest\x1a=.google.ads.googleads.v4.services.MutateCampaignFeedsResponse\"V\x82\xd3\xe4\x93\x02\x37\"2/v4/customers/{customer_id=*}/campaignFeeds:mutate:\x01*\xda\x41\x16\x63ustomer_id,operations\x1a\x1b\xca\x41\x18googleads.googleapis.comB\xff\x01\n$com.google.ads.googleads.v4.servicesB\x18\x43\x61mpaignFeedServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V4.Services\xca\x02 Google\\Ads\\GoogleAds\\V4\\Services\xea\x02$Google::Ads::GoogleAds::V4::Servicesb\x06proto3') + , + dependencies=[google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_campaign__feed__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_api_dot_client__pb2.DESCRIPTOR,google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_api_dot_resource__pb2.DESCRIPTOR,google_dot_protobuf_dot_field__mask__pb2.DESCRIPTOR,google_dot_rpc_dot_status__pb2.DESCRIPTOR,]) + + + + +_GETCAMPAIGNFEEDREQUEST = _descriptor.Descriptor( + name='GetCampaignFeedRequest', + full_name='google.ads.googleads.v4.services.GetCampaignFeedRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.services.GetCampaignFeedRequest.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002\372A\'\n%googleads.googleapis.com/CampaignFeed'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=339, + serialized_end=433, +) + + +_MUTATECAMPAIGNFEEDSREQUEST = _descriptor.Descriptor( + name='MutateCampaignFeedsRequest', + full_name='google.ads.googleads.v4.services.MutateCampaignFeedsRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='customer_id', full_name='google.ads.googleads.v4.services.MutateCampaignFeedsRequest.customer_id', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='operations', full_name='google.ads.googleads.v4.services.MutateCampaignFeedsRequest.operations', index=1, + number=2, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='partial_failure', full_name='google.ads.googleads.v4.services.MutateCampaignFeedsRequest.partial_failure', index=2, + number=3, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='validate_only', full_name='google.ads.googleads.v4.services.MutateCampaignFeedsRequest.validate_only', index=3, + number=4, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=436, + serialized_end=620, +) + + +_CAMPAIGNFEEDOPERATION = _descriptor.Descriptor( + name='CampaignFeedOperation', + full_name='google.ads.googleads.v4.services.CampaignFeedOperation', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='update_mask', full_name='google.ads.googleads.v4.services.CampaignFeedOperation.update_mask', index=0, + number=4, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='create', full_name='google.ads.googleads.v4.services.CampaignFeedOperation.create', index=1, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='update', full_name='google.ads.googleads.v4.services.CampaignFeedOperation.update', index=2, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='remove', full_name='google.ads.googleads.v4.services.CampaignFeedOperation.remove', index=3, + number=3, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name='operation', full_name='google.ads.googleads.v4.services.CampaignFeedOperation.operation', + index=0, containing_type=None, fields=[]), + ], + serialized_start=623, + serialized_end=860, +) + + +_MUTATECAMPAIGNFEEDSRESPONSE = _descriptor.Descriptor( + name='MutateCampaignFeedsResponse', + full_name='google.ads.googleads.v4.services.MutateCampaignFeedsResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='partial_failure_error', full_name='google.ads.googleads.v4.services.MutateCampaignFeedsResponse.partial_failure_error', index=0, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='results', full_name='google.ads.googleads.v4.services.MutateCampaignFeedsResponse.results', index=1, + number=2, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=863, + serialized_end=1020, +) + + +_MUTATECAMPAIGNFEEDRESULT = _descriptor.Descriptor( + name='MutateCampaignFeedResult', + full_name='google.ads.googleads.v4.services.MutateCampaignFeedResult', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.services.MutateCampaignFeedResult.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1022, + serialized_end=1071, +) + +_MUTATECAMPAIGNFEEDSREQUEST.fields_by_name['operations'].message_type = _CAMPAIGNFEEDOPERATION +_CAMPAIGNFEEDOPERATION.fields_by_name['update_mask'].message_type = google_dot_protobuf_dot_field__mask__pb2._FIELDMASK +_CAMPAIGNFEEDOPERATION.fields_by_name['create'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_campaign__feed__pb2._CAMPAIGNFEED +_CAMPAIGNFEEDOPERATION.fields_by_name['update'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_campaign__feed__pb2._CAMPAIGNFEED +_CAMPAIGNFEEDOPERATION.oneofs_by_name['operation'].fields.append( + _CAMPAIGNFEEDOPERATION.fields_by_name['create']) +_CAMPAIGNFEEDOPERATION.fields_by_name['create'].containing_oneof = _CAMPAIGNFEEDOPERATION.oneofs_by_name['operation'] +_CAMPAIGNFEEDOPERATION.oneofs_by_name['operation'].fields.append( + _CAMPAIGNFEEDOPERATION.fields_by_name['update']) +_CAMPAIGNFEEDOPERATION.fields_by_name['update'].containing_oneof = _CAMPAIGNFEEDOPERATION.oneofs_by_name['operation'] +_CAMPAIGNFEEDOPERATION.oneofs_by_name['operation'].fields.append( + _CAMPAIGNFEEDOPERATION.fields_by_name['remove']) +_CAMPAIGNFEEDOPERATION.fields_by_name['remove'].containing_oneof = _CAMPAIGNFEEDOPERATION.oneofs_by_name['operation'] +_MUTATECAMPAIGNFEEDSRESPONSE.fields_by_name['partial_failure_error'].message_type = google_dot_rpc_dot_status__pb2._STATUS +_MUTATECAMPAIGNFEEDSRESPONSE.fields_by_name['results'].message_type = _MUTATECAMPAIGNFEEDRESULT +DESCRIPTOR.message_types_by_name['GetCampaignFeedRequest'] = _GETCAMPAIGNFEEDREQUEST +DESCRIPTOR.message_types_by_name['MutateCampaignFeedsRequest'] = _MUTATECAMPAIGNFEEDSREQUEST +DESCRIPTOR.message_types_by_name['CampaignFeedOperation'] = _CAMPAIGNFEEDOPERATION +DESCRIPTOR.message_types_by_name['MutateCampaignFeedsResponse'] = _MUTATECAMPAIGNFEEDSRESPONSE +DESCRIPTOR.message_types_by_name['MutateCampaignFeedResult'] = _MUTATECAMPAIGNFEEDRESULT +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +GetCampaignFeedRequest = _reflection.GeneratedProtocolMessageType('GetCampaignFeedRequest', (_message.Message,), dict( + DESCRIPTOR = _GETCAMPAIGNFEEDREQUEST, + __module__ = 'google.ads.googleads_v4.proto.services.campaign_feed_service_pb2' + , + __doc__ = """Request message for + [CampaignFeedService.GetCampaignFeed][google.ads.googleads.v4.services.CampaignFeedService.GetCampaignFeed]. + + + Attributes: + resource_name: + Required. The resource name of the campaign feed to fetch. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.GetCampaignFeedRequest) + )) +_sym_db.RegisterMessage(GetCampaignFeedRequest) + +MutateCampaignFeedsRequest = _reflection.GeneratedProtocolMessageType('MutateCampaignFeedsRequest', (_message.Message,), dict( + DESCRIPTOR = _MUTATECAMPAIGNFEEDSREQUEST, + __module__ = 'google.ads.googleads_v4.proto.services.campaign_feed_service_pb2' + , + __doc__ = """Request message for + [CampaignFeedService.MutateCampaignFeeds][google.ads.googleads.v4.services.CampaignFeedService.MutateCampaignFeeds]. + + + Attributes: + customer_id: + Required. The ID of the customer whose campaign feeds are + being modified. + operations: + Required. The list of operations to perform on individual + campaign feeds. + partial_failure: + If true, successful operations will be carried out and invalid + operations will return errors. If false, all operations will + be carried out in one transaction if and only if they are all + valid. Default is false. + validate_only: + If true, the request is validated but not executed. Only + errors are returned, not results. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.MutateCampaignFeedsRequest) + )) +_sym_db.RegisterMessage(MutateCampaignFeedsRequest) + +CampaignFeedOperation = _reflection.GeneratedProtocolMessageType('CampaignFeedOperation', (_message.Message,), dict( + DESCRIPTOR = _CAMPAIGNFEEDOPERATION, + __module__ = 'google.ads.googleads_v4.proto.services.campaign_feed_service_pb2' + , + __doc__ = """A single operation (create, update, remove) on a campaign feed. + + + Attributes: + update_mask: + FieldMask that determines which resource fields are modified + in an update. + operation: + The mutate operation. + create: + Create operation: No resource name is expected for the new + campaign feed. + update: + Update operation: The campaign feed is expected to have a + valid resource name. + remove: + Remove operation: A resource name for the removed campaign + feed is expected, in this format: ``customers/{customer_id}/c + ampaignFeeds/{campaign_id}~{feed_id}`` + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.CampaignFeedOperation) + )) +_sym_db.RegisterMessage(CampaignFeedOperation) + +MutateCampaignFeedsResponse = _reflection.GeneratedProtocolMessageType('MutateCampaignFeedsResponse', (_message.Message,), dict( + DESCRIPTOR = _MUTATECAMPAIGNFEEDSRESPONSE, + __module__ = 'google.ads.googleads_v4.proto.services.campaign_feed_service_pb2' + , + __doc__ = """Response message for a campaign feed mutate. + + + Attributes: + partial_failure_error: + Errors that pertain to operation failures in the partial + failure mode. Returned only when partial\_failure = true and + all errors occur inside the operations. If any errors occur + outside the operations (e.g. auth errors), we return an RPC + level error. + results: + All results for the mutate. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.MutateCampaignFeedsResponse) + )) +_sym_db.RegisterMessage(MutateCampaignFeedsResponse) + +MutateCampaignFeedResult = _reflection.GeneratedProtocolMessageType('MutateCampaignFeedResult', (_message.Message,), dict( + DESCRIPTOR = _MUTATECAMPAIGNFEEDRESULT, + __module__ = 'google.ads.googleads_v4.proto.services.campaign_feed_service_pb2' + , + __doc__ = """The result for the campaign feed mutate. + + + Attributes: + resource_name: + Returned for successful operations. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.MutateCampaignFeedResult) + )) +_sym_db.RegisterMessage(MutateCampaignFeedResult) + + +DESCRIPTOR._options = None +_GETCAMPAIGNFEEDREQUEST.fields_by_name['resource_name']._options = None +_MUTATECAMPAIGNFEEDSREQUEST.fields_by_name['customer_id']._options = None +_MUTATECAMPAIGNFEEDSREQUEST.fields_by_name['operations']._options = None + +_CAMPAIGNFEEDSERVICE = _descriptor.ServiceDescriptor( + name='CampaignFeedService', + full_name='google.ads.googleads.v4.services.CampaignFeedService', + file=DESCRIPTOR, + index=0, + serialized_options=_b('\312A\030googleads.googleapis.com'), + serialized_start=1074, + serialized_end=1561, + methods=[ + _descriptor.MethodDescriptor( + name='GetCampaignFeed', + full_name='google.ads.googleads.v4.services.CampaignFeedService.GetCampaignFeed', + index=0, + containing_service=None, + input_type=_GETCAMPAIGNFEEDREQUEST, + output_type=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_campaign__feed__pb2._CAMPAIGNFEED, + serialized_options=_b('\202\323\344\223\0021\022//v4/{resource_name=customers/*/campaignFeeds/*}\332A\rresource_name'), + ), + _descriptor.MethodDescriptor( + name='MutateCampaignFeeds', + full_name='google.ads.googleads.v4.services.CampaignFeedService.MutateCampaignFeeds', + index=1, + containing_service=None, + input_type=_MUTATECAMPAIGNFEEDSREQUEST, + output_type=_MUTATECAMPAIGNFEEDSRESPONSE, + serialized_options=_b('\202\323\344\223\0027\"2/v4/customers/{customer_id=*}/campaignFeeds:mutate:\001*\332A\026customer_id,operations'), + ), +]) +_sym_db.RegisterServiceDescriptor(_CAMPAIGNFEEDSERVICE) + +DESCRIPTOR.services_by_name['CampaignFeedService'] = _CAMPAIGNFEEDSERVICE + +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v4/proto/services/campaign_feed_service_pb2_grpc.py b/google/ads/google_ads/v4/proto/services/campaign_feed_service_pb2_grpc.py new file mode 100644 index 000000000..5d29e8a6c --- /dev/null +++ b/google/ads/google_ads/v4/proto/services/campaign_feed_service_pb2_grpc.py @@ -0,0 +1,69 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +import grpc + +from google.ads.google_ads.v4.proto.resources import campaign_feed_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_campaign__feed__pb2 +from google.ads.google_ads.v4.proto.services import campaign_feed_service_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_campaign__feed__service__pb2 + + +class CampaignFeedServiceStub(object): + """Proto file describing the CampaignFeed service. + + Service to manage campaign feeds. + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.GetCampaignFeed = channel.unary_unary( + '/google.ads.googleads.v4.services.CampaignFeedService/GetCampaignFeed', + request_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_campaign__feed__service__pb2.GetCampaignFeedRequest.SerializeToString, + response_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_campaign__feed__pb2.CampaignFeed.FromString, + ) + self.MutateCampaignFeeds = channel.unary_unary( + '/google.ads.googleads.v4.services.CampaignFeedService/MutateCampaignFeeds', + request_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_campaign__feed__service__pb2.MutateCampaignFeedsRequest.SerializeToString, + response_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_campaign__feed__service__pb2.MutateCampaignFeedsResponse.FromString, + ) + + +class CampaignFeedServiceServicer(object): + """Proto file describing the CampaignFeed service. + + Service to manage campaign feeds. + """ + + def GetCampaignFeed(self, request, context): + """Returns the requested campaign feed in full detail. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def MutateCampaignFeeds(self, request, context): + """Creates, updates, or removes campaign feeds. Operation statuses are + returned. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_CampaignFeedServiceServicer_to_server(servicer, server): + rpc_method_handlers = { + 'GetCampaignFeed': grpc.unary_unary_rpc_method_handler( + servicer.GetCampaignFeed, + request_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_campaign__feed__service__pb2.GetCampaignFeedRequest.FromString, + response_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_campaign__feed__pb2.CampaignFeed.SerializeToString, + ), + 'MutateCampaignFeeds': grpc.unary_unary_rpc_method_handler( + servicer.MutateCampaignFeeds, + request_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_campaign__feed__service__pb2.MutateCampaignFeedsRequest.FromString, + response_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_campaign__feed__service__pb2.MutateCampaignFeedsResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'google.ads.googleads.v4.services.CampaignFeedService', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) diff --git a/google/ads/google_ads/v4/proto/services/campaign_label_service_pb2.py b/google/ads/google_ads/v4/proto/services/campaign_label_service_pb2.py new file mode 100644 index 000000000..5eab7bf3a --- /dev/null +++ b/google/ads/google_ads/v4/proto/services/campaign_label_service_pb2.py @@ -0,0 +1,386 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/services/campaign_label_service.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.ads.google_ads.v4.proto.resources import campaign_label_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_campaign__label__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 +from google.api import client_pb2 as google_dot_api_dot_client__pb2 +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 +from google.rpc import status_pb2 as google_dot_rpc_dot_status__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/services/campaign_label_service.proto', + package='google.ads.googleads.v4.services', + syntax='proto3', + serialized_options=_b('\n$com.google.ads.googleads.v4.servicesB\031CampaignLabelServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V4.Services\312\002 Google\\Ads\\GoogleAds\\V4\\Services\352\002$Google::Ads::GoogleAds::V4::Services'), + serialized_pb=_b('\nCgoogle/ads/googleads_v4/proto/services/campaign_label_service.proto\x12 google.ads.googleads.v4.services\x1a.google.ads.googleads.v4.services.MutateCampaignLabelsResponse\"W\x82\xd3\xe4\x93\x02\x38\"3/v4/customers/{customer_id=*}/campaignLabels:mutate:\x01*\xda\x41\x16\x63ustomer_id,operations\x1a\x1b\xca\x41\x18googleads.googleapis.comB\x80\x02\n$com.google.ads.googleads.v4.servicesB\x19\x43\x61mpaignLabelServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V4.Services\xca\x02 Google\\Ads\\GoogleAds\\V4\\Services\xea\x02$Google::Ads::GoogleAds::V4::Servicesb\x06proto3') + , + dependencies=[google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_campaign__label__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_api_dot_client__pb2.DESCRIPTOR,google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_api_dot_resource__pb2.DESCRIPTOR,google_dot_rpc_dot_status__pb2.DESCRIPTOR,]) + + + + +_GETCAMPAIGNLABELREQUEST = _descriptor.Descriptor( + name='GetCampaignLabelRequest', + full_name='google.ads.googleads.v4.services.GetCampaignLabelRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.services.GetCampaignLabelRequest.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002\372A(\n&googleads.googleapis.com/CampaignLabel'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=307, + serialized_end=403, +) + + +_MUTATECAMPAIGNLABELSREQUEST = _descriptor.Descriptor( + name='MutateCampaignLabelsRequest', + full_name='google.ads.googleads.v4.services.MutateCampaignLabelsRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='customer_id', full_name='google.ads.googleads.v4.services.MutateCampaignLabelsRequest.customer_id', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='operations', full_name='google.ads.googleads.v4.services.MutateCampaignLabelsRequest.operations', index=1, + number=2, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='partial_failure', full_name='google.ads.googleads.v4.services.MutateCampaignLabelsRequest.partial_failure', index=2, + number=3, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='validate_only', full_name='google.ads.googleads.v4.services.MutateCampaignLabelsRequest.validate_only', index=3, + number=4, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=406, + serialized_end=592, +) + + +_CAMPAIGNLABELOPERATION = _descriptor.Descriptor( + name='CampaignLabelOperation', + full_name='google.ads.googleads.v4.services.CampaignLabelOperation', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='create', full_name='google.ads.googleads.v4.services.CampaignLabelOperation.create', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='remove', full_name='google.ads.googleads.v4.services.CampaignLabelOperation.remove', index=1, + number=2, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name='operation', full_name='google.ads.googleads.v4.services.CampaignLabelOperation.operation', + index=0, containing_type=None, fields=[]), + ], + serialized_start=594, + serialized_end=717, +) + + +_MUTATECAMPAIGNLABELSRESPONSE = _descriptor.Descriptor( + name='MutateCampaignLabelsResponse', + full_name='google.ads.googleads.v4.services.MutateCampaignLabelsResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='partial_failure_error', full_name='google.ads.googleads.v4.services.MutateCampaignLabelsResponse.partial_failure_error', index=0, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='results', full_name='google.ads.googleads.v4.services.MutateCampaignLabelsResponse.results', index=1, + number=2, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=720, + serialized_end=879, +) + + +_MUTATECAMPAIGNLABELRESULT = _descriptor.Descriptor( + name='MutateCampaignLabelResult', + full_name='google.ads.googleads.v4.services.MutateCampaignLabelResult', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.services.MutateCampaignLabelResult.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=881, + serialized_end=931, +) + +_MUTATECAMPAIGNLABELSREQUEST.fields_by_name['operations'].message_type = _CAMPAIGNLABELOPERATION +_CAMPAIGNLABELOPERATION.fields_by_name['create'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_campaign__label__pb2._CAMPAIGNLABEL +_CAMPAIGNLABELOPERATION.oneofs_by_name['operation'].fields.append( + _CAMPAIGNLABELOPERATION.fields_by_name['create']) +_CAMPAIGNLABELOPERATION.fields_by_name['create'].containing_oneof = _CAMPAIGNLABELOPERATION.oneofs_by_name['operation'] +_CAMPAIGNLABELOPERATION.oneofs_by_name['operation'].fields.append( + _CAMPAIGNLABELOPERATION.fields_by_name['remove']) +_CAMPAIGNLABELOPERATION.fields_by_name['remove'].containing_oneof = _CAMPAIGNLABELOPERATION.oneofs_by_name['operation'] +_MUTATECAMPAIGNLABELSRESPONSE.fields_by_name['partial_failure_error'].message_type = google_dot_rpc_dot_status__pb2._STATUS +_MUTATECAMPAIGNLABELSRESPONSE.fields_by_name['results'].message_type = _MUTATECAMPAIGNLABELRESULT +DESCRIPTOR.message_types_by_name['GetCampaignLabelRequest'] = _GETCAMPAIGNLABELREQUEST +DESCRIPTOR.message_types_by_name['MutateCampaignLabelsRequest'] = _MUTATECAMPAIGNLABELSREQUEST +DESCRIPTOR.message_types_by_name['CampaignLabelOperation'] = _CAMPAIGNLABELOPERATION +DESCRIPTOR.message_types_by_name['MutateCampaignLabelsResponse'] = _MUTATECAMPAIGNLABELSRESPONSE +DESCRIPTOR.message_types_by_name['MutateCampaignLabelResult'] = _MUTATECAMPAIGNLABELRESULT +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +GetCampaignLabelRequest = _reflection.GeneratedProtocolMessageType('GetCampaignLabelRequest', (_message.Message,), dict( + DESCRIPTOR = _GETCAMPAIGNLABELREQUEST, + __module__ = 'google.ads.googleads_v4.proto.services.campaign_label_service_pb2' + , + __doc__ = """Request message for + [CampaignLabelService.GetCampaignLabel][google.ads.googleads.v4.services.CampaignLabelService.GetCampaignLabel]. + + + Attributes: + resource_name: + Required. The resource name of the campaign-label relationship + to fetch. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.GetCampaignLabelRequest) + )) +_sym_db.RegisterMessage(GetCampaignLabelRequest) + +MutateCampaignLabelsRequest = _reflection.GeneratedProtocolMessageType('MutateCampaignLabelsRequest', (_message.Message,), dict( + DESCRIPTOR = _MUTATECAMPAIGNLABELSREQUEST, + __module__ = 'google.ads.googleads_v4.proto.services.campaign_label_service_pb2' + , + __doc__ = """Request message for + [CampaignLabelService.MutateCampaignLabels][google.ads.googleads.v4.services.CampaignLabelService.MutateCampaignLabels]. + + + Attributes: + customer_id: + Required. ID of the customer whose campaign-label + relationships are being modified. + operations: + Required. The list of operations to perform on campaign-label + relationships. + partial_failure: + If true, successful operations will be carried out and invalid + operations will return errors. If false, all operations will + be carried out in one transaction if and only if they are all + valid. Default is false. + validate_only: + If true, the request is validated but not executed. Only + errors are returned, not results. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.MutateCampaignLabelsRequest) + )) +_sym_db.RegisterMessage(MutateCampaignLabelsRequest) + +CampaignLabelOperation = _reflection.GeneratedProtocolMessageType('CampaignLabelOperation', (_message.Message,), dict( + DESCRIPTOR = _CAMPAIGNLABELOPERATION, + __module__ = 'google.ads.googleads_v4.proto.services.campaign_label_service_pb2' + , + __doc__ = """A single operation (create, remove) on a campaign-label relationship. + + + Attributes: + operation: + The mutate operation. + create: + Create operation: No resource name is expected for the new + campaign-label relationship. + remove: + Remove operation: A resource name for the campaign-label + relationship being removed, in this format: ``customers/{cust + omer_id}/campaignLabels/{campaign_id}~{label_id}`` + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.CampaignLabelOperation) + )) +_sym_db.RegisterMessage(CampaignLabelOperation) + +MutateCampaignLabelsResponse = _reflection.GeneratedProtocolMessageType('MutateCampaignLabelsResponse', (_message.Message,), dict( + DESCRIPTOR = _MUTATECAMPAIGNLABELSRESPONSE, + __module__ = 'google.ads.googleads_v4.proto.services.campaign_label_service_pb2' + , + __doc__ = """Response message for a campaign labels mutate. + + + Attributes: + partial_failure_error: + Errors that pertain to operation failures in the partial + failure mode. Returned only when partial\_failure = true and + all errors occur inside the operations. If any errors occur + outside the operations (e.g. auth errors), we return an RPC + level error. + results: + All results for the mutate. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.MutateCampaignLabelsResponse) + )) +_sym_db.RegisterMessage(MutateCampaignLabelsResponse) + +MutateCampaignLabelResult = _reflection.GeneratedProtocolMessageType('MutateCampaignLabelResult', (_message.Message,), dict( + DESCRIPTOR = _MUTATECAMPAIGNLABELRESULT, + __module__ = 'google.ads.googleads_v4.proto.services.campaign_label_service_pb2' + , + __doc__ = """The result for a campaign label mutate. + + + Attributes: + resource_name: + Returned for successful operations. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.MutateCampaignLabelResult) + )) +_sym_db.RegisterMessage(MutateCampaignLabelResult) + + +DESCRIPTOR._options = None +_GETCAMPAIGNLABELREQUEST.fields_by_name['resource_name']._options = None +_MUTATECAMPAIGNLABELSREQUEST.fields_by_name['customer_id']._options = None +_MUTATECAMPAIGNLABELSREQUEST.fields_by_name['operations']._options = None + +_CAMPAIGNLABELSERVICE = _descriptor.ServiceDescriptor( + name='CampaignLabelService', + full_name='google.ads.googleads.v4.services.CampaignLabelService', + file=DESCRIPTOR, + index=0, + serialized_options=_b('\312A\030googleads.googleapis.com'), + serialized_start=934, + serialized_end=1430, + methods=[ + _descriptor.MethodDescriptor( + name='GetCampaignLabel', + full_name='google.ads.googleads.v4.services.CampaignLabelService.GetCampaignLabel', + index=0, + containing_service=None, + input_type=_GETCAMPAIGNLABELREQUEST, + output_type=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_campaign__label__pb2._CAMPAIGNLABEL, + serialized_options=_b('\202\323\344\223\0022\0220/v4/{resource_name=customers/*/campaignLabels/*}\332A\rresource_name'), + ), + _descriptor.MethodDescriptor( + name='MutateCampaignLabels', + full_name='google.ads.googleads.v4.services.CampaignLabelService.MutateCampaignLabels', + index=1, + containing_service=None, + input_type=_MUTATECAMPAIGNLABELSREQUEST, + output_type=_MUTATECAMPAIGNLABELSRESPONSE, + serialized_options=_b('\202\323\344\223\0028\"3/v4/customers/{customer_id=*}/campaignLabels:mutate:\001*\332A\026customer_id,operations'), + ), +]) +_sym_db.RegisterServiceDescriptor(_CAMPAIGNLABELSERVICE) + +DESCRIPTOR.services_by_name['CampaignLabelService'] = _CAMPAIGNLABELSERVICE + +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v4/proto/services/campaign_label_service_pb2_grpc.py b/google/ads/google_ads/v4/proto/services/campaign_label_service_pb2_grpc.py new file mode 100644 index 000000000..6cb5cf74e --- /dev/null +++ b/google/ads/google_ads/v4/proto/services/campaign_label_service_pb2_grpc.py @@ -0,0 +1,69 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +import grpc + +from google.ads.google_ads.v4.proto.resources import campaign_label_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_campaign__label__pb2 +from google.ads.google_ads.v4.proto.services import campaign_label_service_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_campaign__label__service__pb2 + + +class CampaignLabelServiceStub(object): + """Proto file describing the Campaign Label service. + + Service to manage labels on campaigns. + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.GetCampaignLabel = channel.unary_unary( + '/google.ads.googleads.v4.services.CampaignLabelService/GetCampaignLabel', + request_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_campaign__label__service__pb2.GetCampaignLabelRequest.SerializeToString, + response_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_campaign__label__pb2.CampaignLabel.FromString, + ) + self.MutateCampaignLabels = channel.unary_unary( + '/google.ads.googleads.v4.services.CampaignLabelService/MutateCampaignLabels', + request_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_campaign__label__service__pb2.MutateCampaignLabelsRequest.SerializeToString, + response_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_campaign__label__service__pb2.MutateCampaignLabelsResponse.FromString, + ) + + +class CampaignLabelServiceServicer(object): + """Proto file describing the Campaign Label service. + + Service to manage labels on campaigns. + """ + + def GetCampaignLabel(self, request, context): + """Returns the requested campaign-label relationship in full detail. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def MutateCampaignLabels(self, request, context): + """Creates and removes campaign-label relationships. + Operation statuses are returned. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_CampaignLabelServiceServicer_to_server(servicer, server): + rpc_method_handlers = { + 'GetCampaignLabel': grpc.unary_unary_rpc_method_handler( + servicer.GetCampaignLabel, + request_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_campaign__label__service__pb2.GetCampaignLabelRequest.FromString, + response_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_campaign__label__pb2.CampaignLabel.SerializeToString, + ), + 'MutateCampaignLabels': grpc.unary_unary_rpc_method_handler( + servicer.MutateCampaignLabels, + request_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_campaign__label__service__pb2.MutateCampaignLabelsRequest.FromString, + response_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_campaign__label__service__pb2.MutateCampaignLabelsResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'google.ads.googleads.v4.services.CampaignLabelService', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) diff --git a/google/ads/google_ads/v4/proto/services/campaign_service_pb2.py b/google/ads/google_ads/v4/proto/services/campaign_service_pb2.py new file mode 100644 index 000000000..4a2462000 --- /dev/null +++ b/google/ads/google_ads/v4/proto/services/campaign_service_pb2.py @@ -0,0 +1,411 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/services/campaign_service.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.ads.google_ads.v4.proto.resources import campaign_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_campaign__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 +from google.api import client_pb2 as google_dot_api_dot_client__pb2 +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 +from google.protobuf import field_mask_pb2 as google_dot_protobuf_dot_field__mask__pb2 +from google.rpc import status_pb2 as google_dot_rpc_dot_status__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/services/campaign_service.proto', + package='google.ads.googleads.v4.services', + syntax='proto3', + serialized_options=_b('\n$com.google.ads.googleads.v4.servicesB\024CampaignServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V4.Services\312\002 Google\\Ads\\GoogleAds\\V4\\Services\352\002$Google::Ads::GoogleAds::V4::Services'), + serialized_pb=_b('\n=google/ads/googleads_v4/proto/services/campaign_service.proto\x12 google.ads.googleads.v4.services\x1a\x36google/ads/googleads_v4/proto/resources/campaign.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/protobuf/field_mask.proto\x1a\x17google/rpc/status.proto\"V\n\x12GetCampaignRequest\x12@\n\rresource_name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!googleads.googleapis.com/Campaign\"\xb0\x01\n\x16MutateCampaignsRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12L\n\noperations\x18\x02 \x03(\x0b\x32\x33.google.ads.googleads.v4.services.CampaignOperationB\x03\xe0\x41\x02\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\"\xe1\x01\n\x11\x43\x61mpaignOperation\x12/\n\x0bupdate_mask\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12=\n\x06\x63reate\x18\x01 \x01(\x0b\x32+.google.ads.googleads.v4.resources.CampaignH\x00\x12=\n\x06update\x18\x02 \x01(\x0b\x32+.google.ads.googleads.v4.resources.CampaignH\x00\x12\x10\n\x06remove\x18\x03 \x01(\tH\x00\x42\x0b\n\toperation\"\x95\x01\n\x17MutateCampaignsResponse\x12\x31\n\x15partial_failure_error\x18\x03 \x01(\x0b\x32\x12.google.rpc.Status\x12G\n\x07results\x18\x02 \x03(\x0b\x32\x36.google.ads.googleads.v4.services.MutateCampaignResult\"-\n\x14MutateCampaignResult\x12\x15\n\rresource_name\x18\x01 \x01(\t2\xc3\x03\n\x0f\x43\x61mpaignService\x12\xb5\x01\n\x0bGetCampaign\x12\x34.google.ads.googleads.v4.services.GetCampaignRequest\x1a+.google.ads.googleads.v4.resources.Campaign\"C\x82\xd3\xe4\x93\x02-\x12+/v4/{resource_name=customers/*/campaigns/*}\xda\x41\rresource_name\x12\xda\x01\n\x0fMutateCampaigns\x12\x38.google.ads.googleads.v4.services.MutateCampaignsRequest\x1a\x39.google.ads.googleads.v4.services.MutateCampaignsResponse\"R\x82\xd3\xe4\x93\x02\x33\"./v4/customers/{customer_id=*}/campaigns:mutate:\x01*\xda\x41\x16\x63ustomer_id,operations\x1a\x1b\xca\x41\x18googleads.googleapis.comB\xfb\x01\n$com.google.ads.googleads.v4.servicesB\x14\x43\x61mpaignServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V4.Services\xca\x02 Google\\Ads\\GoogleAds\\V4\\Services\xea\x02$Google::Ads::GoogleAds::V4::Servicesb\x06proto3') + , + dependencies=[google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_campaign__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_api_dot_client__pb2.DESCRIPTOR,google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_api_dot_resource__pb2.DESCRIPTOR,google_dot_protobuf_dot_field__mask__pb2.DESCRIPTOR,google_dot_rpc_dot_status__pb2.DESCRIPTOR,]) + + + + +_GETCAMPAIGNREQUEST = _descriptor.Descriptor( + name='GetCampaignRequest', + full_name='google.ads.googleads.v4.services.GetCampaignRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.services.GetCampaignRequest.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002\372A#\n!googleads.googleapis.com/Campaign'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=329, + serialized_end=415, +) + + +_MUTATECAMPAIGNSREQUEST = _descriptor.Descriptor( + name='MutateCampaignsRequest', + full_name='google.ads.googleads.v4.services.MutateCampaignsRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='customer_id', full_name='google.ads.googleads.v4.services.MutateCampaignsRequest.customer_id', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='operations', full_name='google.ads.googleads.v4.services.MutateCampaignsRequest.operations', index=1, + number=2, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='partial_failure', full_name='google.ads.googleads.v4.services.MutateCampaignsRequest.partial_failure', index=2, + number=3, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='validate_only', full_name='google.ads.googleads.v4.services.MutateCampaignsRequest.validate_only', index=3, + number=4, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=418, + serialized_end=594, +) + + +_CAMPAIGNOPERATION = _descriptor.Descriptor( + name='CampaignOperation', + full_name='google.ads.googleads.v4.services.CampaignOperation', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='update_mask', full_name='google.ads.googleads.v4.services.CampaignOperation.update_mask', index=0, + number=4, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='create', full_name='google.ads.googleads.v4.services.CampaignOperation.create', index=1, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='update', full_name='google.ads.googleads.v4.services.CampaignOperation.update', index=2, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='remove', full_name='google.ads.googleads.v4.services.CampaignOperation.remove', index=3, + number=3, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name='operation', full_name='google.ads.googleads.v4.services.CampaignOperation.operation', + index=0, containing_type=None, fields=[]), + ], + serialized_start=597, + serialized_end=822, +) + + +_MUTATECAMPAIGNSRESPONSE = _descriptor.Descriptor( + name='MutateCampaignsResponse', + full_name='google.ads.googleads.v4.services.MutateCampaignsResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='partial_failure_error', full_name='google.ads.googleads.v4.services.MutateCampaignsResponse.partial_failure_error', index=0, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='results', full_name='google.ads.googleads.v4.services.MutateCampaignsResponse.results', index=1, + number=2, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=825, + serialized_end=974, +) + + +_MUTATECAMPAIGNRESULT = _descriptor.Descriptor( + name='MutateCampaignResult', + full_name='google.ads.googleads.v4.services.MutateCampaignResult', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.services.MutateCampaignResult.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=976, + serialized_end=1021, +) + +_MUTATECAMPAIGNSREQUEST.fields_by_name['operations'].message_type = _CAMPAIGNOPERATION +_CAMPAIGNOPERATION.fields_by_name['update_mask'].message_type = google_dot_protobuf_dot_field__mask__pb2._FIELDMASK +_CAMPAIGNOPERATION.fields_by_name['create'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_campaign__pb2._CAMPAIGN +_CAMPAIGNOPERATION.fields_by_name['update'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_campaign__pb2._CAMPAIGN +_CAMPAIGNOPERATION.oneofs_by_name['operation'].fields.append( + _CAMPAIGNOPERATION.fields_by_name['create']) +_CAMPAIGNOPERATION.fields_by_name['create'].containing_oneof = _CAMPAIGNOPERATION.oneofs_by_name['operation'] +_CAMPAIGNOPERATION.oneofs_by_name['operation'].fields.append( + _CAMPAIGNOPERATION.fields_by_name['update']) +_CAMPAIGNOPERATION.fields_by_name['update'].containing_oneof = _CAMPAIGNOPERATION.oneofs_by_name['operation'] +_CAMPAIGNOPERATION.oneofs_by_name['operation'].fields.append( + _CAMPAIGNOPERATION.fields_by_name['remove']) +_CAMPAIGNOPERATION.fields_by_name['remove'].containing_oneof = _CAMPAIGNOPERATION.oneofs_by_name['operation'] +_MUTATECAMPAIGNSRESPONSE.fields_by_name['partial_failure_error'].message_type = google_dot_rpc_dot_status__pb2._STATUS +_MUTATECAMPAIGNSRESPONSE.fields_by_name['results'].message_type = _MUTATECAMPAIGNRESULT +DESCRIPTOR.message_types_by_name['GetCampaignRequest'] = _GETCAMPAIGNREQUEST +DESCRIPTOR.message_types_by_name['MutateCampaignsRequest'] = _MUTATECAMPAIGNSREQUEST +DESCRIPTOR.message_types_by_name['CampaignOperation'] = _CAMPAIGNOPERATION +DESCRIPTOR.message_types_by_name['MutateCampaignsResponse'] = _MUTATECAMPAIGNSRESPONSE +DESCRIPTOR.message_types_by_name['MutateCampaignResult'] = _MUTATECAMPAIGNRESULT +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +GetCampaignRequest = _reflection.GeneratedProtocolMessageType('GetCampaignRequest', (_message.Message,), dict( + DESCRIPTOR = _GETCAMPAIGNREQUEST, + __module__ = 'google.ads.googleads_v4.proto.services.campaign_service_pb2' + , + __doc__ = """Request message for + [CampaignService.GetCampaign][google.ads.googleads.v4.services.CampaignService.GetCampaign]. + + + Attributes: + resource_name: + Required. The resource name of the campaign to fetch. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.GetCampaignRequest) + )) +_sym_db.RegisterMessage(GetCampaignRequest) + +MutateCampaignsRequest = _reflection.GeneratedProtocolMessageType('MutateCampaignsRequest', (_message.Message,), dict( + DESCRIPTOR = _MUTATECAMPAIGNSREQUEST, + __module__ = 'google.ads.googleads_v4.proto.services.campaign_service_pb2' + , + __doc__ = """Request message for + [CampaignService.MutateCampaigns][google.ads.googleads.v4.services.CampaignService.MutateCampaigns]. + + + Attributes: + customer_id: + Required. The ID of the customer whose campaigns are being + modified. + operations: + Required. The list of operations to perform on individual + campaigns. + partial_failure: + If true, successful operations will be carried out and invalid + operations will return errors. If false, all operations will + be carried out in one transaction if and only if they are all + valid. Default is false. + validate_only: + If true, the request is validated but not executed. Only + errors are returned, not results. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.MutateCampaignsRequest) + )) +_sym_db.RegisterMessage(MutateCampaignsRequest) + +CampaignOperation = _reflection.GeneratedProtocolMessageType('CampaignOperation', (_message.Message,), dict( + DESCRIPTOR = _CAMPAIGNOPERATION, + __module__ = 'google.ads.googleads_v4.proto.services.campaign_service_pb2' + , + __doc__ = """A single operation (create, update, remove) on a campaign. + + + Attributes: + update_mask: + FieldMask that determines which resource fields are modified + in an update. + operation: + The mutate operation. + create: + Create operation: No resource name is expected for the new + campaign. + update: + Update operation: The campaign is expected to have a valid + resource name. + remove: + Remove operation: A resource name for the removed campaign is + expected, in this format: + ``customers/{customer_id}/campaigns/{campaign_id}`` + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.CampaignOperation) + )) +_sym_db.RegisterMessage(CampaignOperation) + +MutateCampaignsResponse = _reflection.GeneratedProtocolMessageType('MutateCampaignsResponse', (_message.Message,), dict( + DESCRIPTOR = _MUTATECAMPAIGNSRESPONSE, + __module__ = 'google.ads.googleads_v4.proto.services.campaign_service_pb2' + , + __doc__ = """Response message for campaign mutate. + + + Attributes: + partial_failure_error: + Errors that pertain to operation failures in the partial + failure mode. Returned only when partial\_failure = true and + all errors occur inside the operations. If any errors occur + outside the operations (e.g. auth errors), we return an RPC + level error. + results: + All results for the mutate. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.MutateCampaignsResponse) + )) +_sym_db.RegisterMessage(MutateCampaignsResponse) + +MutateCampaignResult = _reflection.GeneratedProtocolMessageType('MutateCampaignResult', (_message.Message,), dict( + DESCRIPTOR = _MUTATECAMPAIGNRESULT, + __module__ = 'google.ads.googleads_v4.proto.services.campaign_service_pb2' + , + __doc__ = """The result for the campaign mutate. + + + Attributes: + resource_name: + Returned for successful operations. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.MutateCampaignResult) + )) +_sym_db.RegisterMessage(MutateCampaignResult) + + +DESCRIPTOR._options = None +_GETCAMPAIGNREQUEST.fields_by_name['resource_name']._options = None +_MUTATECAMPAIGNSREQUEST.fields_by_name['customer_id']._options = None +_MUTATECAMPAIGNSREQUEST.fields_by_name['operations']._options = None + +_CAMPAIGNSERVICE = _descriptor.ServiceDescriptor( + name='CampaignService', + full_name='google.ads.googleads.v4.services.CampaignService', + file=DESCRIPTOR, + index=0, + serialized_options=_b('\312A\030googleads.googleapis.com'), + serialized_start=1024, + serialized_end=1475, + methods=[ + _descriptor.MethodDescriptor( + name='GetCampaign', + full_name='google.ads.googleads.v4.services.CampaignService.GetCampaign', + index=0, + containing_service=None, + input_type=_GETCAMPAIGNREQUEST, + output_type=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_campaign__pb2._CAMPAIGN, + serialized_options=_b('\202\323\344\223\002-\022+/v4/{resource_name=customers/*/campaigns/*}\332A\rresource_name'), + ), + _descriptor.MethodDescriptor( + name='MutateCampaigns', + full_name='google.ads.googleads.v4.services.CampaignService.MutateCampaigns', + index=1, + containing_service=None, + input_type=_MUTATECAMPAIGNSREQUEST, + output_type=_MUTATECAMPAIGNSRESPONSE, + serialized_options=_b('\202\323\344\223\0023\"./v4/customers/{customer_id=*}/campaigns:mutate:\001*\332A\026customer_id,operations'), + ), +]) +_sym_db.RegisterServiceDescriptor(_CAMPAIGNSERVICE) + +DESCRIPTOR.services_by_name['CampaignService'] = _CAMPAIGNSERVICE + +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v4/proto/services/campaign_service_pb2_grpc.py b/google/ads/google_ads/v4/proto/services/campaign_service_pb2_grpc.py new file mode 100644 index 000000000..5621f7826 --- /dev/null +++ b/google/ads/google_ads/v4/proto/services/campaign_service_pb2_grpc.py @@ -0,0 +1,68 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +import grpc + +from google.ads.google_ads.v4.proto.resources import campaign_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_campaign__pb2 +from google.ads.google_ads.v4.proto.services import campaign_service_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_campaign__service__pb2 + + +class CampaignServiceStub(object): + """Proto file describing the Campaign service. + + Service to manage campaigns. + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.GetCampaign = channel.unary_unary( + '/google.ads.googleads.v4.services.CampaignService/GetCampaign', + request_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_campaign__service__pb2.GetCampaignRequest.SerializeToString, + response_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_campaign__pb2.Campaign.FromString, + ) + self.MutateCampaigns = channel.unary_unary( + '/google.ads.googleads.v4.services.CampaignService/MutateCampaigns', + request_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_campaign__service__pb2.MutateCampaignsRequest.SerializeToString, + response_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_campaign__service__pb2.MutateCampaignsResponse.FromString, + ) + + +class CampaignServiceServicer(object): + """Proto file describing the Campaign service. + + Service to manage campaigns. + """ + + def GetCampaign(self, request, context): + """Returns the requested campaign in full detail. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def MutateCampaigns(self, request, context): + """Creates, updates, or removes campaigns. Operation statuses are returned. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_CampaignServiceServicer_to_server(servicer, server): + rpc_method_handlers = { + 'GetCampaign': grpc.unary_unary_rpc_method_handler( + servicer.GetCampaign, + request_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_campaign__service__pb2.GetCampaignRequest.FromString, + response_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_campaign__pb2.Campaign.SerializeToString, + ), + 'MutateCampaigns': grpc.unary_unary_rpc_method_handler( + servicer.MutateCampaigns, + request_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_campaign__service__pb2.MutateCampaignsRequest.FromString, + response_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_campaign__service__pb2.MutateCampaignsResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'google.ads.googleads.v4.services.CampaignService', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) diff --git a/google/ads/google_ads/v4/proto/services/campaign_shared_set_service_pb2.py b/google/ads/google_ads/v4/proto/services/campaign_shared_set_service_pb2.py new file mode 100644 index 000000000..9bf4e9d85 --- /dev/null +++ b/google/ads/google_ads/v4/proto/services/campaign_shared_set_service_pb2.py @@ -0,0 +1,386 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/services/campaign_shared_set_service.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.ads.google_ads.v4.proto.resources import campaign_shared_set_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_campaign__shared__set__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 +from google.api import client_pb2 as google_dot_api_dot_client__pb2 +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 +from google.rpc import status_pb2 as google_dot_rpc_dot_status__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/services/campaign_shared_set_service.proto', + package='google.ads.googleads.v4.services', + syntax='proto3', + serialized_options=_b('\n$com.google.ads.googleads.v4.servicesB\035CampaignSharedSetServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V4.Services\312\002 Google\\Ads\\GoogleAds\\V4\\Services\352\002$Google::Ads::GoogleAds::V4::Services'), + serialized_pb=_b('\nHgoogle/ads/googleads_v4/proto/services/campaign_shared_set_service.proto\x12 google.ads.googleads.v4.services\x1a\x41google/ads/googleads_v4/proto/resources/campaign_shared_set.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x17google/rpc/status.proto\"h\n\x1bGetCampaignSharedSetRequest\x12I\n\rresource_name\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*googleads.googleapis.com/CampaignSharedSet\"\xc2\x01\n\x1fMutateCampaignSharedSetsRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12U\n\noperations\x18\x02 \x03(\x0b\x32<.google.ads.googleads.v4.services.CampaignSharedSetOperationB\x03\xe0\x41\x02\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\"\x83\x01\n\x1a\x43\x61mpaignSharedSetOperation\x12\x46\n\x06\x63reate\x18\x01 \x01(\x0b\x32\x34.google.ads.googleads.v4.resources.CampaignSharedSetH\x00\x12\x10\n\x06remove\x18\x03 \x01(\tH\x00\x42\x0b\n\toperation\"\xa7\x01\n MutateCampaignSharedSetsResponse\x12\x31\n\x15partial_failure_error\x18\x03 \x01(\x0b\x32\x12.google.rpc.Status\x12P\n\x07results\x18\x02 \x03(\x0b\x32?.google.ads.googleads.v4.services.MutateCampaignSharedSetResult\"6\n\x1dMutateCampaignSharedSetResult\x12\x15\n\rresource_name\x18\x01 \x01(\t2\x94\x04\n\x18\x43\x61mpaignSharedSetService\x12\xd9\x01\n\x14GetCampaignSharedSet\x12=.google.ads.googleads.v4.services.GetCampaignSharedSetRequest\x1a\x34.google.ads.googleads.v4.resources.CampaignSharedSet\"L\x82\xd3\xe4\x93\x02\x36\x12\x34/v4/{resource_name=customers/*/campaignSharedSets/*}\xda\x41\rresource_name\x12\xfe\x01\n\x18MutateCampaignSharedSets\x12\x41.google.ads.googleads.v4.services.MutateCampaignSharedSetsRequest\x1a\x42.google.ads.googleads.v4.services.MutateCampaignSharedSetsResponse\"[\x82\xd3\xe4\x93\x02<\"7/v4/customers/{customer_id=*}/campaignSharedSets:mutate:\x01*\xda\x41\x16\x63ustomer_id,operations\x1a\x1b\xca\x41\x18googleads.googleapis.comB\x84\x02\n$com.google.ads.googleads.v4.servicesB\x1d\x43\x61mpaignSharedSetServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V4.Services\xca\x02 Google\\Ads\\GoogleAds\\V4\\Services\xea\x02$Google::Ads::GoogleAds::V4::Servicesb\x06proto3') + , + dependencies=[google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_campaign__shared__set__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_api_dot_client__pb2.DESCRIPTOR,google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_api_dot_resource__pb2.DESCRIPTOR,google_dot_rpc_dot_status__pb2.DESCRIPTOR,]) + + + + +_GETCAMPAIGNSHAREDSETREQUEST = _descriptor.Descriptor( + name='GetCampaignSharedSetRequest', + full_name='google.ads.googleads.v4.services.GetCampaignSharedSetRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.services.GetCampaignSharedSetRequest.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002\372A,\n*googleads.googleapis.com/CampaignSharedSet'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=317, + serialized_end=421, +) + + +_MUTATECAMPAIGNSHAREDSETSREQUEST = _descriptor.Descriptor( + name='MutateCampaignSharedSetsRequest', + full_name='google.ads.googleads.v4.services.MutateCampaignSharedSetsRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='customer_id', full_name='google.ads.googleads.v4.services.MutateCampaignSharedSetsRequest.customer_id', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='operations', full_name='google.ads.googleads.v4.services.MutateCampaignSharedSetsRequest.operations', index=1, + number=2, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='partial_failure', full_name='google.ads.googleads.v4.services.MutateCampaignSharedSetsRequest.partial_failure', index=2, + number=3, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='validate_only', full_name='google.ads.googleads.v4.services.MutateCampaignSharedSetsRequest.validate_only', index=3, + number=4, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=424, + serialized_end=618, +) + + +_CAMPAIGNSHAREDSETOPERATION = _descriptor.Descriptor( + name='CampaignSharedSetOperation', + full_name='google.ads.googleads.v4.services.CampaignSharedSetOperation', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='create', full_name='google.ads.googleads.v4.services.CampaignSharedSetOperation.create', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='remove', full_name='google.ads.googleads.v4.services.CampaignSharedSetOperation.remove', index=1, + number=3, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name='operation', full_name='google.ads.googleads.v4.services.CampaignSharedSetOperation.operation', + index=0, containing_type=None, fields=[]), + ], + serialized_start=621, + serialized_end=752, +) + + +_MUTATECAMPAIGNSHAREDSETSRESPONSE = _descriptor.Descriptor( + name='MutateCampaignSharedSetsResponse', + full_name='google.ads.googleads.v4.services.MutateCampaignSharedSetsResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='partial_failure_error', full_name='google.ads.googleads.v4.services.MutateCampaignSharedSetsResponse.partial_failure_error', index=0, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='results', full_name='google.ads.googleads.v4.services.MutateCampaignSharedSetsResponse.results', index=1, + number=2, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=755, + serialized_end=922, +) + + +_MUTATECAMPAIGNSHAREDSETRESULT = _descriptor.Descriptor( + name='MutateCampaignSharedSetResult', + full_name='google.ads.googleads.v4.services.MutateCampaignSharedSetResult', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.services.MutateCampaignSharedSetResult.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=924, + serialized_end=978, +) + +_MUTATECAMPAIGNSHAREDSETSREQUEST.fields_by_name['operations'].message_type = _CAMPAIGNSHAREDSETOPERATION +_CAMPAIGNSHAREDSETOPERATION.fields_by_name['create'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_campaign__shared__set__pb2._CAMPAIGNSHAREDSET +_CAMPAIGNSHAREDSETOPERATION.oneofs_by_name['operation'].fields.append( + _CAMPAIGNSHAREDSETOPERATION.fields_by_name['create']) +_CAMPAIGNSHAREDSETOPERATION.fields_by_name['create'].containing_oneof = _CAMPAIGNSHAREDSETOPERATION.oneofs_by_name['operation'] +_CAMPAIGNSHAREDSETOPERATION.oneofs_by_name['operation'].fields.append( + _CAMPAIGNSHAREDSETOPERATION.fields_by_name['remove']) +_CAMPAIGNSHAREDSETOPERATION.fields_by_name['remove'].containing_oneof = _CAMPAIGNSHAREDSETOPERATION.oneofs_by_name['operation'] +_MUTATECAMPAIGNSHAREDSETSRESPONSE.fields_by_name['partial_failure_error'].message_type = google_dot_rpc_dot_status__pb2._STATUS +_MUTATECAMPAIGNSHAREDSETSRESPONSE.fields_by_name['results'].message_type = _MUTATECAMPAIGNSHAREDSETRESULT +DESCRIPTOR.message_types_by_name['GetCampaignSharedSetRequest'] = _GETCAMPAIGNSHAREDSETREQUEST +DESCRIPTOR.message_types_by_name['MutateCampaignSharedSetsRequest'] = _MUTATECAMPAIGNSHAREDSETSREQUEST +DESCRIPTOR.message_types_by_name['CampaignSharedSetOperation'] = _CAMPAIGNSHAREDSETOPERATION +DESCRIPTOR.message_types_by_name['MutateCampaignSharedSetsResponse'] = _MUTATECAMPAIGNSHAREDSETSRESPONSE +DESCRIPTOR.message_types_by_name['MutateCampaignSharedSetResult'] = _MUTATECAMPAIGNSHAREDSETRESULT +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +GetCampaignSharedSetRequest = _reflection.GeneratedProtocolMessageType('GetCampaignSharedSetRequest', (_message.Message,), dict( + DESCRIPTOR = _GETCAMPAIGNSHAREDSETREQUEST, + __module__ = 'google.ads.googleads_v4.proto.services.campaign_shared_set_service_pb2' + , + __doc__ = """Request message for + [CampaignSharedSetService.GetCampaignSharedSet][google.ads.googleads.v4.services.CampaignSharedSetService.GetCampaignSharedSet]. + + + Attributes: + resource_name: + Required. The resource name of the campaign shared set to + fetch. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.GetCampaignSharedSetRequest) + )) +_sym_db.RegisterMessage(GetCampaignSharedSetRequest) + +MutateCampaignSharedSetsRequest = _reflection.GeneratedProtocolMessageType('MutateCampaignSharedSetsRequest', (_message.Message,), dict( + DESCRIPTOR = _MUTATECAMPAIGNSHAREDSETSREQUEST, + __module__ = 'google.ads.googleads_v4.proto.services.campaign_shared_set_service_pb2' + , + __doc__ = """Request message for + [CampaignSharedSetService.MutateCampaignSharedSets][google.ads.googleads.v4.services.CampaignSharedSetService.MutateCampaignSharedSets]. + + + Attributes: + customer_id: + Required. The ID of the customer whose campaign shared sets + are being modified. + operations: + Required. The list of operations to perform on individual + campaign shared sets. + partial_failure: + If true, successful operations will be carried out and invalid + operations will return errors. If false, all operations will + be carried out in one transaction if and only if they are all + valid. Default is false. + validate_only: + If true, the request is validated but not executed. Only + errors are returned, not results. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.MutateCampaignSharedSetsRequest) + )) +_sym_db.RegisterMessage(MutateCampaignSharedSetsRequest) + +CampaignSharedSetOperation = _reflection.GeneratedProtocolMessageType('CampaignSharedSetOperation', (_message.Message,), dict( + DESCRIPTOR = _CAMPAIGNSHAREDSETOPERATION, + __module__ = 'google.ads.googleads_v4.proto.services.campaign_shared_set_service_pb2' + , + __doc__ = """A single operation (create, remove) on an campaign shared set. + + + Attributes: + operation: + The mutate operation. + create: + Create operation: No resource name is expected for the new + campaign shared set. + remove: + Remove operation: A resource name for the removed campaign + shared set is expected, in this format: ``customers/{customer + _id}/campaignSharedSets/{campaign_id}~{shared_set_id}`` + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.CampaignSharedSetOperation) + )) +_sym_db.RegisterMessage(CampaignSharedSetOperation) + +MutateCampaignSharedSetsResponse = _reflection.GeneratedProtocolMessageType('MutateCampaignSharedSetsResponse', (_message.Message,), dict( + DESCRIPTOR = _MUTATECAMPAIGNSHAREDSETSRESPONSE, + __module__ = 'google.ads.googleads_v4.proto.services.campaign_shared_set_service_pb2' + , + __doc__ = """Response message for a campaign shared set mutate. + + + Attributes: + partial_failure_error: + Errors that pertain to operation failures in the partial + failure mode. Returned only when partial\_failure = true and + all errors occur inside the operations. If any errors occur + outside the operations (e.g. auth errors), we return an RPC + level error. + results: + All results for the mutate. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.MutateCampaignSharedSetsResponse) + )) +_sym_db.RegisterMessage(MutateCampaignSharedSetsResponse) + +MutateCampaignSharedSetResult = _reflection.GeneratedProtocolMessageType('MutateCampaignSharedSetResult', (_message.Message,), dict( + DESCRIPTOR = _MUTATECAMPAIGNSHAREDSETRESULT, + __module__ = 'google.ads.googleads_v4.proto.services.campaign_shared_set_service_pb2' + , + __doc__ = """The result for the campaign shared set mutate. + + + Attributes: + resource_name: + Returned for successful operations. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.MutateCampaignSharedSetResult) + )) +_sym_db.RegisterMessage(MutateCampaignSharedSetResult) + + +DESCRIPTOR._options = None +_GETCAMPAIGNSHAREDSETREQUEST.fields_by_name['resource_name']._options = None +_MUTATECAMPAIGNSHAREDSETSREQUEST.fields_by_name['customer_id']._options = None +_MUTATECAMPAIGNSHAREDSETSREQUEST.fields_by_name['operations']._options = None + +_CAMPAIGNSHAREDSETSERVICE = _descriptor.ServiceDescriptor( + name='CampaignSharedSetService', + full_name='google.ads.googleads.v4.services.CampaignSharedSetService', + file=DESCRIPTOR, + index=0, + serialized_options=_b('\312A\030googleads.googleapis.com'), + serialized_start=981, + serialized_end=1513, + methods=[ + _descriptor.MethodDescriptor( + name='GetCampaignSharedSet', + full_name='google.ads.googleads.v4.services.CampaignSharedSetService.GetCampaignSharedSet', + index=0, + containing_service=None, + input_type=_GETCAMPAIGNSHAREDSETREQUEST, + output_type=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_campaign__shared__set__pb2._CAMPAIGNSHAREDSET, + serialized_options=_b('\202\323\344\223\0026\0224/v4/{resource_name=customers/*/campaignSharedSets/*}\332A\rresource_name'), + ), + _descriptor.MethodDescriptor( + name='MutateCampaignSharedSets', + full_name='google.ads.googleads.v4.services.CampaignSharedSetService.MutateCampaignSharedSets', + index=1, + containing_service=None, + input_type=_MUTATECAMPAIGNSHAREDSETSREQUEST, + output_type=_MUTATECAMPAIGNSHAREDSETSRESPONSE, + serialized_options=_b('\202\323\344\223\002<\"7/v4/customers/{customer_id=*}/campaignSharedSets:mutate:\001*\332A\026customer_id,operations'), + ), +]) +_sym_db.RegisterServiceDescriptor(_CAMPAIGNSHAREDSETSERVICE) + +DESCRIPTOR.services_by_name['CampaignSharedSetService'] = _CAMPAIGNSHAREDSETSERVICE + +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v4/proto/services/campaign_shared_set_service_pb2_grpc.py b/google/ads/google_ads/v4/proto/services/campaign_shared_set_service_pb2_grpc.py new file mode 100644 index 000000000..9519bac4b --- /dev/null +++ b/google/ads/google_ads/v4/proto/services/campaign_shared_set_service_pb2_grpc.py @@ -0,0 +1,68 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +import grpc + +from google.ads.google_ads.v4.proto.resources import campaign_shared_set_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_campaign__shared__set__pb2 +from google.ads.google_ads.v4.proto.services import campaign_shared_set_service_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_campaign__shared__set__service__pb2 + + +class CampaignSharedSetServiceStub(object): + """Proto file describing the Campaign Shared Set service. + + Service to manage campaign shared sets. + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.GetCampaignSharedSet = channel.unary_unary( + '/google.ads.googleads.v4.services.CampaignSharedSetService/GetCampaignSharedSet', + request_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_campaign__shared__set__service__pb2.GetCampaignSharedSetRequest.SerializeToString, + response_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_campaign__shared__set__pb2.CampaignSharedSet.FromString, + ) + self.MutateCampaignSharedSets = channel.unary_unary( + '/google.ads.googleads.v4.services.CampaignSharedSetService/MutateCampaignSharedSets', + request_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_campaign__shared__set__service__pb2.MutateCampaignSharedSetsRequest.SerializeToString, + response_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_campaign__shared__set__service__pb2.MutateCampaignSharedSetsResponse.FromString, + ) + + +class CampaignSharedSetServiceServicer(object): + """Proto file describing the Campaign Shared Set service. + + Service to manage campaign shared sets. + """ + + def GetCampaignSharedSet(self, request, context): + """Returns the requested campaign shared set in full detail. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def MutateCampaignSharedSets(self, request, context): + """Creates or removes campaign shared sets. Operation statuses are returned. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_CampaignSharedSetServiceServicer_to_server(servicer, server): + rpc_method_handlers = { + 'GetCampaignSharedSet': grpc.unary_unary_rpc_method_handler( + servicer.GetCampaignSharedSet, + request_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_campaign__shared__set__service__pb2.GetCampaignSharedSetRequest.FromString, + response_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_campaign__shared__set__pb2.CampaignSharedSet.SerializeToString, + ), + 'MutateCampaignSharedSets': grpc.unary_unary_rpc_method_handler( + servicer.MutateCampaignSharedSets, + request_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_campaign__shared__set__service__pb2.MutateCampaignSharedSetsRequest.FromString, + response_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_campaign__shared__set__service__pb2.MutateCampaignSharedSetsResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'google.ads.googleads.v4.services.CampaignSharedSetService', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) diff --git a/google/ads/google_ads/v4/proto/services/carrier_constant_service_pb2.py b/google/ads/google_ads/v4/proto/services/carrier_constant_service_pb2.py new file mode 100644 index 000000000..045d63de2 --- /dev/null +++ b/google/ads/google_ads/v4/proto/services/carrier_constant_service_pb2.py @@ -0,0 +1,111 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/services/carrier_constant_service.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.ads.google_ads.v4.proto.resources import carrier_constant_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_carrier__constant__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 +from google.api import client_pb2 as google_dot_api_dot_client__pb2 +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/services/carrier_constant_service.proto', + package='google.ads.googleads.v4.services', + syntax='proto3', + serialized_options=_b('\n$com.google.ads.googleads.v4.servicesB\033CarrierConstantServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V4.Services\312\002 Google\\Ads\\GoogleAds\\V4\\Services\352\002$Google::Ads::GoogleAds::V4::Services'), + serialized_pb=_b('\nEgoogle/ads/googleads_v4/proto/services/carrier_constant_service.proto\x12 google.ads.googleads.v4.services\x1a>google/ads/googleads_v4/proto/resources/carrier_constant.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"d\n\x19GetCarrierConstantRequest\x12G\n\rresource_name\x18\x01 \x01(\tB0\xe0\x41\x02\xfa\x41*\n(googleads.googleapis.com/CarrierConstant2\xfd\x01\n\x16\x43\x61rrierConstantService\x12\xc5\x01\n\x12GetCarrierConstant\x12;.google.ads.googleads.v4.services.GetCarrierConstantRequest\x1a\x32.google.ads.googleads.v4.resources.CarrierConstant\">\x82\xd3\xe4\x93\x02(\x12&/v4/{resource_name=carrierConstants/*}\xda\x41\rresource_name\x1a\x1b\xca\x41\x18googleads.googleapis.comB\x82\x02\n$com.google.ads.googleads.v4.servicesB\x1b\x43\x61rrierConstantServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V4.Services\xca\x02 Google\\Ads\\GoogleAds\\V4\\Services\xea\x02$Google::Ads::GoogleAds::V4::Servicesb\x06proto3') + , + dependencies=[google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_carrier__constant__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_api_dot_client__pb2.DESCRIPTOR,google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_api_dot_resource__pb2.DESCRIPTOR,]) + + + + +_GETCARRIERCONSTANTREQUEST = _descriptor.Descriptor( + name='GetCarrierConstantRequest', + full_name='google.ads.googleads.v4.services.GetCarrierConstantRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.services.GetCarrierConstantRequest.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002\372A*\n(googleads.googleapis.com/CarrierConstant'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=286, + serialized_end=386, +) + +DESCRIPTOR.message_types_by_name['GetCarrierConstantRequest'] = _GETCARRIERCONSTANTREQUEST +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +GetCarrierConstantRequest = _reflection.GeneratedProtocolMessageType('GetCarrierConstantRequest', (_message.Message,), dict( + DESCRIPTOR = _GETCARRIERCONSTANTREQUEST, + __module__ = 'google.ads.googleads_v4.proto.services.carrier_constant_service_pb2' + , + __doc__ = """Request message for + [CarrierConstantService.GetCarrierConstant][google.ads.googleads.v4.services.CarrierConstantService.GetCarrierConstant]. + + + Attributes: + resource_name: + Required. Resource name of the carrier constant to fetch. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.GetCarrierConstantRequest) + )) +_sym_db.RegisterMessage(GetCarrierConstantRequest) + + +DESCRIPTOR._options = None +_GETCARRIERCONSTANTREQUEST.fields_by_name['resource_name']._options = None + +_CARRIERCONSTANTSERVICE = _descriptor.ServiceDescriptor( + name='CarrierConstantService', + full_name='google.ads.googleads.v4.services.CarrierConstantService', + file=DESCRIPTOR, + index=0, + serialized_options=_b('\312A\030googleads.googleapis.com'), + serialized_start=389, + serialized_end=642, + methods=[ + _descriptor.MethodDescriptor( + name='GetCarrierConstant', + full_name='google.ads.googleads.v4.services.CarrierConstantService.GetCarrierConstant', + index=0, + containing_service=None, + input_type=_GETCARRIERCONSTANTREQUEST, + output_type=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_carrier__constant__pb2._CARRIERCONSTANT, + serialized_options=_b('\202\323\344\223\002(\022&/v4/{resource_name=carrierConstants/*}\332A\rresource_name'), + ), +]) +_sym_db.RegisterServiceDescriptor(_CARRIERCONSTANTSERVICE) + +DESCRIPTOR.services_by_name['CarrierConstantService'] = _CARRIERCONSTANTSERVICE + +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v4/proto/services/carrier_constant_service_pb2_grpc.py b/google/ads/google_ads/v4/proto/services/carrier_constant_service_pb2_grpc.py new file mode 100644 index 000000000..7ad599fd8 --- /dev/null +++ b/google/ads/google_ads/v4/proto/services/carrier_constant_service_pb2_grpc.py @@ -0,0 +1,51 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +import grpc + +from google.ads.google_ads.v4.proto.resources import carrier_constant_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_carrier__constant__pb2 +from google.ads.google_ads.v4.proto.services import carrier_constant_service_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_carrier__constant__service__pb2 + + +class CarrierConstantServiceStub(object): + """Proto file describing the carrier constant service. + + Service to fetch carrier constants. + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.GetCarrierConstant = channel.unary_unary( + '/google.ads.googleads.v4.services.CarrierConstantService/GetCarrierConstant', + request_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_carrier__constant__service__pb2.GetCarrierConstantRequest.SerializeToString, + response_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_carrier__constant__pb2.CarrierConstant.FromString, + ) + + +class CarrierConstantServiceServicer(object): + """Proto file describing the carrier constant service. + + Service to fetch carrier constants. + """ + + def GetCarrierConstant(self, request, context): + """Returns the requested carrier constant in full detail. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_CarrierConstantServiceServicer_to_server(servicer, server): + rpc_method_handlers = { + 'GetCarrierConstant': grpc.unary_unary_rpc_method_handler( + servicer.GetCarrierConstant, + request_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_carrier__constant__service__pb2.GetCarrierConstantRequest.FromString, + response_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_carrier__constant__pb2.CarrierConstant.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'google.ads.googleads.v4.services.CarrierConstantService', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) diff --git a/google/ads/google_ads/v4/proto/services/change_status_service_pb2.py b/google/ads/google_ads/v4/proto/services/change_status_service_pb2.py new file mode 100644 index 000000000..06cb46f0b --- /dev/null +++ b/google/ads/google_ads/v4/proto/services/change_status_service_pb2.py @@ -0,0 +1,111 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/services/change_status_service.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.ads.google_ads.v4.proto.resources import change_status_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_change__status__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 +from google.api import client_pb2 as google_dot_api_dot_client__pb2 +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/services/change_status_service.proto', + package='google.ads.googleads.v4.services', + syntax='proto3', + serialized_options=_b('\n$com.google.ads.googleads.v4.servicesB\030ChangeStatusServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V4.Services\312\002 Google\\Ads\\GoogleAds\\V4\\Services\352\002$Google::Ads::GoogleAds::V4::Services'), + serialized_pb=_b('\nBgoogle/ads/googleads_v4/proto/services/change_status_service.proto\x12 google.ads.googleads.v4.services\x1a;google/ads/googleads_v4/proto/resources/change_status.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"^\n\x16GetChangeStatusRequest\x12\x44\n\rresource_name\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%googleads.googleapis.com/ChangeStatus2\xf9\x01\n\x13\x43hangeStatusService\x12\xc4\x01\n\x0fGetChangeStatus\x12\x38.google.ads.googleads.v4.services.GetChangeStatusRequest\x1a/.google.ads.googleads.v4.resources.ChangeStatus\"F\x82\xd3\xe4\x93\x02\x30\x12./v4/{resource_name=customers/*/changeStatus/*}\xda\x41\rresource_name\x1a\x1b\xca\x41\x18googleads.googleapis.comB\xff\x01\n$com.google.ads.googleads.v4.servicesB\x18\x43hangeStatusServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V4.Services\xca\x02 Google\\Ads\\GoogleAds\\V4\\Services\xea\x02$Google::Ads::GoogleAds::V4::Servicesb\x06proto3') + , + dependencies=[google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_change__status__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_api_dot_client__pb2.DESCRIPTOR,google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_api_dot_resource__pb2.DESCRIPTOR,]) + + + + +_GETCHANGESTATUSREQUEST = _descriptor.Descriptor( + name='GetChangeStatusRequest', + full_name='google.ads.googleads.v4.services.GetChangeStatusRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.services.GetChangeStatusRequest.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002\372A\'\n%googleads.googleapis.com/ChangeStatus'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=280, + serialized_end=374, +) + +DESCRIPTOR.message_types_by_name['GetChangeStatusRequest'] = _GETCHANGESTATUSREQUEST +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +GetChangeStatusRequest = _reflection.GeneratedProtocolMessageType('GetChangeStatusRequest', (_message.Message,), dict( + DESCRIPTOR = _GETCHANGESTATUSREQUEST, + __module__ = 'google.ads.googleads_v4.proto.services.change_status_service_pb2' + , + __doc__ = """Request message for + '[ChangeStatusService.GetChangeStatus][google.ads.googleads.v4.services.ChangeStatusService.GetChangeStatus]'. + + + Attributes: + resource_name: + Required. The resource name of the change status to fetch. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.GetChangeStatusRequest) + )) +_sym_db.RegisterMessage(GetChangeStatusRequest) + + +DESCRIPTOR._options = None +_GETCHANGESTATUSREQUEST.fields_by_name['resource_name']._options = None + +_CHANGESTATUSSERVICE = _descriptor.ServiceDescriptor( + name='ChangeStatusService', + full_name='google.ads.googleads.v4.services.ChangeStatusService', + file=DESCRIPTOR, + index=0, + serialized_options=_b('\312A\030googleads.googleapis.com'), + serialized_start=377, + serialized_end=626, + methods=[ + _descriptor.MethodDescriptor( + name='GetChangeStatus', + full_name='google.ads.googleads.v4.services.ChangeStatusService.GetChangeStatus', + index=0, + containing_service=None, + input_type=_GETCHANGESTATUSREQUEST, + output_type=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_change__status__pb2._CHANGESTATUS, + serialized_options=_b('\202\323\344\223\0020\022./v4/{resource_name=customers/*/changeStatus/*}\332A\rresource_name'), + ), +]) +_sym_db.RegisterServiceDescriptor(_CHANGESTATUSSERVICE) + +DESCRIPTOR.services_by_name['ChangeStatusService'] = _CHANGESTATUSSERVICE + +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v4/proto/services/change_status_service_pb2_grpc.py b/google/ads/google_ads/v4/proto/services/change_status_service_pb2_grpc.py new file mode 100644 index 000000000..c3362270f --- /dev/null +++ b/google/ads/google_ads/v4/proto/services/change_status_service_pb2_grpc.py @@ -0,0 +1,51 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +import grpc + +from google.ads.google_ads.v4.proto.resources import change_status_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_change__status__pb2 +from google.ads.google_ads.v4.proto.services import change_status_service_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_change__status__service__pb2 + + +class ChangeStatusServiceStub(object): + """Proto file describing the Change Status service. + + Service to fetch change statuses. + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.GetChangeStatus = channel.unary_unary( + '/google.ads.googleads.v4.services.ChangeStatusService/GetChangeStatus', + request_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_change__status__service__pb2.GetChangeStatusRequest.SerializeToString, + response_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_change__status__pb2.ChangeStatus.FromString, + ) + + +class ChangeStatusServiceServicer(object): + """Proto file describing the Change Status service. + + Service to fetch change statuses. + """ + + def GetChangeStatus(self, request, context): + """Returns the requested change status in full detail. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_ChangeStatusServiceServicer_to_server(servicer, server): + rpc_method_handlers = { + 'GetChangeStatus': grpc.unary_unary_rpc_method_handler( + servicer.GetChangeStatus, + request_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_change__status__service__pb2.GetChangeStatusRequest.FromString, + response_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_change__status__pb2.ChangeStatus.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'google.ads.googleads.v4.services.ChangeStatusService', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) diff --git a/google/ads/google_ads/v4/proto/services/click_view_service_pb2.py b/google/ads/google_ads/v4/proto/services/click_view_service_pb2.py new file mode 100644 index 000000000..d1a9a3465 --- /dev/null +++ b/google/ads/google_ads/v4/proto/services/click_view_service_pb2.py @@ -0,0 +1,111 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/services/click_view_service.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.ads.google_ads.v4.proto.resources import click_view_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_click__view__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 +from google.api import client_pb2 as google_dot_api_dot_client__pb2 +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/services/click_view_service.proto', + package='google.ads.googleads.v4.services', + syntax='proto3', + serialized_options=_b('\n$com.google.ads.googleads.v4.servicesB\025ClickViewServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V4.Services\312\002 Google\\Ads\\GoogleAds\\V4\\Services\352\002$Google::Ads::GoogleAds::V4::Services'), + serialized_pb=_b('\n?google/ads/googleads_v4/proto/services/click_view_service.proto\x12 google.ads.googleads.v4.services\x1a\x38google/ads/googleads_v4/proto/resources/click_view.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"X\n\x13GetClickViewRequest\x12\x41\n\rresource_name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"googleads.googleapis.com/ClickView2\xeb\x01\n\x10\x43lickViewService\x12\xb9\x01\n\x0cGetClickView\x12\x35.google.ads.googleads.v4.services.GetClickViewRequest\x1a,.google.ads.googleads.v4.resources.ClickView\"D\x82\xd3\xe4\x93\x02.\x12,/v4/{resource_name=customers/*/clickViews/*}\xda\x41\rresource_name\x1a\x1b\xca\x41\x18googleads.googleapis.comB\xfc\x01\n$com.google.ads.googleads.v4.servicesB\x15\x43lickViewServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V4.Services\xca\x02 Google\\Ads\\GoogleAds\\V4\\Services\xea\x02$Google::Ads::GoogleAds::V4::Servicesb\x06proto3') + , + dependencies=[google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_click__view__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_api_dot_client__pb2.DESCRIPTOR,google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_api_dot_resource__pb2.DESCRIPTOR,]) + + + + +_GETCLICKVIEWREQUEST = _descriptor.Descriptor( + name='GetClickViewRequest', + full_name='google.ads.googleads.v4.services.GetClickViewRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.services.GetClickViewRequest.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002\372A$\n\"googleads.googleapis.com/ClickView'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=274, + serialized_end=362, +) + +DESCRIPTOR.message_types_by_name['GetClickViewRequest'] = _GETCLICKVIEWREQUEST +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +GetClickViewRequest = _reflection.GeneratedProtocolMessageType('GetClickViewRequest', (_message.Message,), dict( + DESCRIPTOR = _GETCLICKVIEWREQUEST, + __module__ = 'google.ads.googleads_v4.proto.services.click_view_service_pb2' + , + __doc__ = """Request message for + [ClickViewService.GetClickView][google.ads.googleads.v4.services.ClickViewService.GetClickView]. + + + Attributes: + resource_name: + Required. The resource name of the click view to fetch. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.GetClickViewRequest) + )) +_sym_db.RegisterMessage(GetClickViewRequest) + + +DESCRIPTOR._options = None +_GETCLICKVIEWREQUEST.fields_by_name['resource_name']._options = None + +_CLICKVIEWSERVICE = _descriptor.ServiceDescriptor( + name='ClickViewService', + full_name='google.ads.googleads.v4.services.ClickViewService', + file=DESCRIPTOR, + index=0, + serialized_options=_b('\312A\030googleads.googleapis.com'), + serialized_start=365, + serialized_end=600, + methods=[ + _descriptor.MethodDescriptor( + name='GetClickView', + full_name='google.ads.googleads.v4.services.ClickViewService.GetClickView', + index=0, + containing_service=None, + input_type=_GETCLICKVIEWREQUEST, + output_type=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_click__view__pb2._CLICKVIEW, + serialized_options=_b('\202\323\344\223\002.\022,/v4/{resource_name=customers/*/clickViews/*}\332A\rresource_name'), + ), +]) +_sym_db.RegisterServiceDescriptor(_CLICKVIEWSERVICE) + +DESCRIPTOR.services_by_name['ClickViewService'] = _CLICKVIEWSERVICE + +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v4/proto/services/click_view_service_pb2_grpc.py b/google/ads/google_ads/v4/proto/services/click_view_service_pb2_grpc.py new file mode 100644 index 000000000..4708b7dd4 --- /dev/null +++ b/google/ads/google_ads/v4/proto/services/click_view_service_pb2_grpc.py @@ -0,0 +1,51 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +import grpc + +from google.ads.google_ads.v4.proto.resources import click_view_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_click__view__pb2 +from google.ads.google_ads.v4.proto.services import click_view_service_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_click__view__service__pb2 + + +class ClickViewServiceStub(object): + """Proto file describing the ClickView service. + + Service to fetch click views. + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.GetClickView = channel.unary_unary( + '/google.ads.googleads.v4.services.ClickViewService/GetClickView', + request_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_click__view__service__pb2.GetClickViewRequest.SerializeToString, + response_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_click__view__pb2.ClickView.FromString, + ) + + +class ClickViewServiceServicer(object): + """Proto file describing the ClickView service. + + Service to fetch click views. + """ + + def GetClickView(self, request, context): + """Returns the requested click view in full detail. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_ClickViewServiceServicer_to_server(servicer, server): + rpc_method_handlers = { + 'GetClickView': grpc.unary_unary_rpc_method_handler( + servicer.GetClickView, + request_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_click__view__service__pb2.GetClickViewRequest.FromString, + response_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_click__view__pb2.ClickView.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'google.ads.googleads.v4.services.ClickViewService', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) diff --git a/google/ads/google_ads/v4/proto/services/conversion_action_service_pb2.py b/google/ads/google_ads/v4/proto/services/conversion_action_service_pb2.py new file mode 100644 index 000000000..6e87bd68a --- /dev/null +++ b/google/ads/google_ads/v4/proto/services/conversion_action_service_pb2.py @@ -0,0 +1,412 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/services/conversion_action_service.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.ads.google_ads.v4.proto.resources import conversion_action_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_conversion__action__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 +from google.api import client_pb2 as google_dot_api_dot_client__pb2 +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 +from google.protobuf import field_mask_pb2 as google_dot_protobuf_dot_field__mask__pb2 +from google.rpc import status_pb2 as google_dot_rpc_dot_status__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/services/conversion_action_service.proto', + package='google.ads.googleads.v4.services', + syntax='proto3', + serialized_options=_b('\n$com.google.ads.googleads.v4.servicesB\034ConversionActionServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V4.Services\312\002 Google\\Ads\\GoogleAds\\V4\\Services\352\002$Google::Ads::GoogleAds::V4::Services'), + serialized_pb=_b('\nFgoogle/ads/googleads_v4/proto/services/conversion_action_service.proto\x12 google.ads.googleads.v4.services\x1a?google/ads/googleads_v4/proto/resources/conversion_action.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/protobuf/field_mask.proto\x1a\x17google/rpc/status.proto\"f\n\x1aGetConversionActionRequest\x12H\n\rresource_name\x18\x01 \x01(\tB1\xe0\x41\x02\xfa\x41+\n)googleads.googleapis.com/ConversionAction\"\xc0\x01\n\x1eMutateConversionActionsRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12T\n\noperations\x18\x02 \x03(\x0b\x32;.google.ads.googleads.v4.services.ConversionActionOperationB\x03\xe0\x41\x02\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\"\xf9\x01\n\x19\x43onversionActionOperation\x12/\n\x0bupdate_mask\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12\x45\n\x06\x63reate\x18\x01 \x01(\x0b\x32\x33.google.ads.googleads.v4.resources.ConversionActionH\x00\x12\x45\n\x06update\x18\x02 \x01(\x0b\x32\x33.google.ads.googleads.v4.resources.ConversionActionH\x00\x12\x10\n\x06remove\x18\x03 \x01(\tH\x00\x42\x0b\n\toperation\"\xa5\x01\n\x1fMutateConversionActionsResponse\x12\x31\n\x15partial_failure_error\x18\x03 \x01(\x0b\x32\x12.google.rpc.Status\x12O\n\x07results\x18\x02 \x03(\x0b\x32>.google.ads.googleads.v4.services.MutateConversionActionResult\"5\n\x1cMutateConversionActionResult\x12\x15\n\rresource_name\x18\x01 \x01(\t2\x8b\x04\n\x17\x43onversionActionService\x12\xd5\x01\n\x13GetConversionAction\x12<.google.ads.googleads.v4.services.GetConversionActionRequest\x1a\x33.google.ads.googleads.v4.resources.ConversionAction\"K\x82\xd3\xe4\x93\x02\x35\x12\x33/v4/{resource_name=customers/*/conversionActions/*}\xda\x41\rresource_name\x12\xfa\x01\n\x17MutateConversionActions\x12@.google.ads.googleads.v4.services.MutateConversionActionsRequest\x1a\x41.google.ads.googleads.v4.services.MutateConversionActionsResponse\"Z\x82\xd3\xe4\x93\x02;\"6/v4/customers/{customer_id=*}/conversionActions:mutate:\x01*\xda\x41\x16\x63ustomer_id,operations\x1a\x1b\xca\x41\x18googleads.googleapis.comB\x83\x02\n$com.google.ads.googleads.v4.servicesB\x1c\x43onversionActionServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V4.Services\xca\x02 Google\\Ads\\GoogleAds\\V4\\Services\xea\x02$Google::Ads::GoogleAds::V4::Servicesb\x06proto3') + , + dependencies=[google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_conversion__action__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_api_dot_client__pb2.DESCRIPTOR,google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_api_dot_resource__pb2.DESCRIPTOR,google_dot_protobuf_dot_field__mask__pb2.DESCRIPTOR,google_dot_rpc_dot_status__pb2.DESCRIPTOR,]) + + + + +_GETCONVERSIONACTIONREQUEST = _descriptor.Descriptor( + name='GetConversionActionRequest', + full_name='google.ads.googleads.v4.services.GetConversionActionRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.services.GetConversionActionRequest.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002\372A+\n)googleads.googleapis.com/ConversionAction'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=347, + serialized_end=449, +) + + +_MUTATECONVERSIONACTIONSREQUEST = _descriptor.Descriptor( + name='MutateConversionActionsRequest', + full_name='google.ads.googleads.v4.services.MutateConversionActionsRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='customer_id', full_name='google.ads.googleads.v4.services.MutateConversionActionsRequest.customer_id', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='operations', full_name='google.ads.googleads.v4.services.MutateConversionActionsRequest.operations', index=1, + number=2, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='partial_failure', full_name='google.ads.googleads.v4.services.MutateConversionActionsRequest.partial_failure', index=2, + number=3, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='validate_only', full_name='google.ads.googleads.v4.services.MutateConversionActionsRequest.validate_only', index=3, + number=4, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=452, + serialized_end=644, +) + + +_CONVERSIONACTIONOPERATION = _descriptor.Descriptor( + name='ConversionActionOperation', + full_name='google.ads.googleads.v4.services.ConversionActionOperation', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='update_mask', full_name='google.ads.googleads.v4.services.ConversionActionOperation.update_mask', index=0, + number=4, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='create', full_name='google.ads.googleads.v4.services.ConversionActionOperation.create', index=1, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='update', full_name='google.ads.googleads.v4.services.ConversionActionOperation.update', index=2, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='remove', full_name='google.ads.googleads.v4.services.ConversionActionOperation.remove', index=3, + number=3, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name='operation', full_name='google.ads.googleads.v4.services.ConversionActionOperation.operation', + index=0, containing_type=None, fields=[]), + ], + serialized_start=647, + serialized_end=896, +) + + +_MUTATECONVERSIONACTIONSRESPONSE = _descriptor.Descriptor( + name='MutateConversionActionsResponse', + full_name='google.ads.googleads.v4.services.MutateConversionActionsResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='partial_failure_error', full_name='google.ads.googleads.v4.services.MutateConversionActionsResponse.partial_failure_error', index=0, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='results', full_name='google.ads.googleads.v4.services.MutateConversionActionsResponse.results', index=1, + number=2, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=899, + serialized_end=1064, +) + + +_MUTATECONVERSIONACTIONRESULT = _descriptor.Descriptor( + name='MutateConversionActionResult', + full_name='google.ads.googleads.v4.services.MutateConversionActionResult', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.services.MutateConversionActionResult.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1066, + serialized_end=1119, +) + +_MUTATECONVERSIONACTIONSREQUEST.fields_by_name['operations'].message_type = _CONVERSIONACTIONOPERATION +_CONVERSIONACTIONOPERATION.fields_by_name['update_mask'].message_type = google_dot_protobuf_dot_field__mask__pb2._FIELDMASK +_CONVERSIONACTIONOPERATION.fields_by_name['create'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_conversion__action__pb2._CONVERSIONACTION +_CONVERSIONACTIONOPERATION.fields_by_name['update'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_conversion__action__pb2._CONVERSIONACTION +_CONVERSIONACTIONOPERATION.oneofs_by_name['operation'].fields.append( + _CONVERSIONACTIONOPERATION.fields_by_name['create']) +_CONVERSIONACTIONOPERATION.fields_by_name['create'].containing_oneof = _CONVERSIONACTIONOPERATION.oneofs_by_name['operation'] +_CONVERSIONACTIONOPERATION.oneofs_by_name['operation'].fields.append( + _CONVERSIONACTIONOPERATION.fields_by_name['update']) +_CONVERSIONACTIONOPERATION.fields_by_name['update'].containing_oneof = _CONVERSIONACTIONOPERATION.oneofs_by_name['operation'] +_CONVERSIONACTIONOPERATION.oneofs_by_name['operation'].fields.append( + _CONVERSIONACTIONOPERATION.fields_by_name['remove']) +_CONVERSIONACTIONOPERATION.fields_by_name['remove'].containing_oneof = _CONVERSIONACTIONOPERATION.oneofs_by_name['operation'] +_MUTATECONVERSIONACTIONSRESPONSE.fields_by_name['partial_failure_error'].message_type = google_dot_rpc_dot_status__pb2._STATUS +_MUTATECONVERSIONACTIONSRESPONSE.fields_by_name['results'].message_type = _MUTATECONVERSIONACTIONRESULT +DESCRIPTOR.message_types_by_name['GetConversionActionRequest'] = _GETCONVERSIONACTIONREQUEST +DESCRIPTOR.message_types_by_name['MutateConversionActionsRequest'] = _MUTATECONVERSIONACTIONSREQUEST +DESCRIPTOR.message_types_by_name['ConversionActionOperation'] = _CONVERSIONACTIONOPERATION +DESCRIPTOR.message_types_by_name['MutateConversionActionsResponse'] = _MUTATECONVERSIONACTIONSRESPONSE +DESCRIPTOR.message_types_by_name['MutateConversionActionResult'] = _MUTATECONVERSIONACTIONRESULT +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +GetConversionActionRequest = _reflection.GeneratedProtocolMessageType('GetConversionActionRequest', (_message.Message,), dict( + DESCRIPTOR = _GETCONVERSIONACTIONREQUEST, + __module__ = 'google.ads.googleads_v4.proto.services.conversion_action_service_pb2' + , + __doc__ = """Request message for + [ConversionActionService.GetConversionAction][google.ads.googleads.v4.services.ConversionActionService.GetConversionAction]. + + + Attributes: + resource_name: + Required. The resource name of the conversion action to fetch. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.GetConversionActionRequest) + )) +_sym_db.RegisterMessage(GetConversionActionRequest) + +MutateConversionActionsRequest = _reflection.GeneratedProtocolMessageType('MutateConversionActionsRequest', (_message.Message,), dict( + DESCRIPTOR = _MUTATECONVERSIONACTIONSREQUEST, + __module__ = 'google.ads.googleads_v4.proto.services.conversion_action_service_pb2' + , + __doc__ = """Request message for + [ConversionActionService.MutateConversionActions][google.ads.googleads.v4.services.ConversionActionService.MutateConversionActions]. + + + Attributes: + customer_id: + Required. The ID of the customer whose conversion actions are + being modified. + operations: + Required. The list of operations to perform on individual + conversion actions. + partial_failure: + If true, successful operations will be carried out and invalid + operations will return errors. If false, all operations will + be carried out in one transaction if and only if they are all + valid. Default is false. + validate_only: + If true, the request is validated but not executed. Only + errors are returned, not results. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.MutateConversionActionsRequest) + )) +_sym_db.RegisterMessage(MutateConversionActionsRequest) + +ConversionActionOperation = _reflection.GeneratedProtocolMessageType('ConversionActionOperation', (_message.Message,), dict( + DESCRIPTOR = _CONVERSIONACTIONOPERATION, + __module__ = 'google.ads.googleads_v4.proto.services.conversion_action_service_pb2' + , + __doc__ = """A single operation (create, update, remove) on a conversion action. + + + Attributes: + update_mask: + FieldMask that determines which resource fields are modified + in an update. + operation: + The mutate operation. + create: + Create operation: No resource name is expected for the new + conversion action. + update: + Update operation: The conversion action is expected to have a + valid resource name. + remove: + Remove operation: A resource name for the removed conversion + action is expected, in this format: ``customers/{customer_id} + /conversionActions/{conversion_action_id}`` + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.ConversionActionOperation) + )) +_sym_db.RegisterMessage(ConversionActionOperation) + +MutateConversionActionsResponse = _reflection.GeneratedProtocolMessageType('MutateConversionActionsResponse', (_message.Message,), dict( + DESCRIPTOR = _MUTATECONVERSIONACTIONSRESPONSE, + __module__ = 'google.ads.googleads_v4.proto.services.conversion_action_service_pb2' + , + __doc__ = """Response message for + [ConversionActionService.MutateConversionActions][google.ads.googleads.v4.services.ConversionActionService.MutateConversionActions]. + + + Attributes: + partial_failure_error: + Errors that pertain to operation failures in the partial + failure mode. Returned only when partial\_failure = true and + all errors occur inside the operations. If any errors occur + outside the operations (e.g. auth errors), we return an RPC + level error. + results: + All results for the mutate. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.MutateConversionActionsResponse) + )) +_sym_db.RegisterMessage(MutateConversionActionsResponse) + +MutateConversionActionResult = _reflection.GeneratedProtocolMessageType('MutateConversionActionResult', (_message.Message,), dict( + DESCRIPTOR = _MUTATECONVERSIONACTIONRESULT, + __module__ = 'google.ads.googleads_v4.proto.services.conversion_action_service_pb2' + , + __doc__ = """The result for the conversion action mutate. + + + Attributes: + resource_name: + Returned for successful operations. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.MutateConversionActionResult) + )) +_sym_db.RegisterMessage(MutateConversionActionResult) + + +DESCRIPTOR._options = None +_GETCONVERSIONACTIONREQUEST.fields_by_name['resource_name']._options = None +_MUTATECONVERSIONACTIONSREQUEST.fields_by_name['customer_id']._options = None +_MUTATECONVERSIONACTIONSREQUEST.fields_by_name['operations']._options = None + +_CONVERSIONACTIONSERVICE = _descriptor.ServiceDescriptor( + name='ConversionActionService', + full_name='google.ads.googleads.v4.services.ConversionActionService', + file=DESCRIPTOR, + index=0, + serialized_options=_b('\312A\030googleads.googleapis.com'), + serialized_start=1122, + serialized_end=1645, + methods=[ + _descriptor.MethodDescriptor( + name='GetConversionAction', + full_name='google.ads.googleads.v4.services.ConversionActionService.GetConversionAction', + index=0, + containing_service=None, + input_type=_GETCONVERSIONACTIONREQUEST, + output_type=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_conversion__action__pb2._CONVERSIONACTION, + serialized_options=_b('\202\323\344\223\0025\0223/v4/{resource_name=customers/*/conversionActions/*}\332A\rresource_name'), + ), + _descriptor.MethodDescriptor( + name='MutateConversionActions', + full_name='google.ads.googleads.v4.services.ConversionActionService.MutateConversionActions', + index=1, + containing_service=None, + input_type=_MUTATECONVERSIONACTIONSREQUEST, + output_type=_MUTATECONVERSIONACTIONSRESPONSE, + serialized_options=_b('\202\323\344\223\002;\"6/v4/customers/{customer_id=*}/conversionActions:mutate:\001*\332A\026customer_id,operations'), + ), +]) +_sym_db.RegisterServiceDescriptor(_CONVERSIONACTIONSERVICE) + +DESCRIPTOR.services_by_name['ConversionActionService'] = _CONVERSIONACTIONSERVICE + +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v4/proto/services/conversion_action_service_pb2_grpc.py b/google/ads/google_ads/v4/proto/services/conversion_action_service_pb2_grpc.py new file mode 100644 index 000000000..b065570cb --- /dev/null +++ b/google/ads/google_ads/v4/proto/services/conversion_action_service_pb2_grpc.py @@ -0,0 +1,69 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +import grpc + +from google.ads.google_ads.v4.proto.resources import conversion_action_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_conversion__action__pb2 +from google.ads.google_ads.v4.proto.services import conversion_action_service_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_conversion__action__service__pb2 + + +class ConversionActionServiceStub(object): + """Proto file describing the Conversion Action service. + + Service to manage conversion actions. + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.GetConversionAction = channel.unary_unary( + '/google.ads.googleads.v4.services.ConversionActionService/GetConversionAction', + request_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_conversion__action__service__pb2.GetConversionActionRequest.SerializeToString, + response_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_conversion__action__pb2.ConversionAction.FromString, + ) + self.MutateConversionActions = channel.unary_unary( + '/google.ads.googleads.v4.services.ConversionActionService/MutateConversionActions', + request_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_conversion__action__service__pb2.MutateConversionActionsRequest.SerializeToString, + response_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_conversion__action__service__pb2.MutateConversionActionsResponse.FromString, + ) + + +class ConversionActionServiceServicer(object): + """Proto file describing the Conversion Action service. + + Service to manage conversion actions. + """ + + def GetConversionAction(self, request, context): + """Returns the requested conversion action. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def MutateConversionActions(self, request, context): + """Creates, updates or removes conversion actions. Operation statuses are + returned. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_ConversionActionServiceServicer_to_server(servicer, server): + rpc_method_handlers = { + 'GetConversionAction': grpc.unary_unary_rpc_method_handler( + servicer.GetConversionAction, + request_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_conversion__action__service__pb2.GetConversionActionRequest.FromString, + response_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_conversion__action__pb2.ConversionAction.SerializeToString, + ), + 'MutateConversionActions': grpc.unary_unary_rpc_method_handler( + servicer.MutateConversionActions, + request_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_conversion__action__service__pb2.MutateConversionActionsRequest.FromString, + response_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_conversion__action__service__pb2.MutateConversionActionsResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'google.ads.googleads.v4.services.ConversionActionService', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) diff --git a/google/ads/google_ads/v4/proto/services/conversion_adjustment_upload_service_pb2.py b/google/ads/google_ads/v4/proto/services/conversion_adjustment_upload_service_pb2.py new file mode 100644 index 000000000..dac9c56ba --- /dev/null +++ b/google/ads/google_ads/v4/proto/services/conversion_adjustment_upload_service_pb2.py @@ -0,0 +1,567 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/services/conversion_adjustment_upload_service.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.ads.google_ads.v4.proto.enums import conversion_adjustment_type_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_conversion__adjustment__type__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 +from google.api import client_pb2 as google_dot_api_dot_client__pb2 +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 +from google.rpc import status_pb2 as google_dot_rpc_dot_status__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/services/conversion_adjustment_upload_service.proto', + package='google.ads.googleads.v4.services', + syntax='proto3', + serialized_options=_b('\n$com.google.ads.googleads.v4.servicesB&ConversionAdjustmentUploadServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V4.Services\312\002 Google\\Ads\\GoogleAds\\V4\\Services\352\002$Google::Ads::GoogleAds::V4::Services'), + serialized_pb=_b('\nQgoogle/ads/googleads_v4/proto/services/conversion_adjustment_upload_service.proto\x12 google.ads.googleads.v4.services\x1a\x44google/ads/googleads_v4/proto/enums/conversion_adjustment_type.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x17google/rpc/status.proto\"\xd0\x01\n\"UploadConversionAdjustmentsRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12[\n\x16\x63onversion_adjustments\x18\x02 \x03(\x0b\x32\x36.google.ads.googleads.v4.services.ConversionAdjustmentB\x03\xe0\x41\x02\x12\x1c\n\x0fpartial_failure\x18\x03 \x01(\x08\x42\x03\xe0\x41\x02\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\"\xa7\x01\n#UploadConversionAdjustmentsResponse\x12\x31\n\x15partial_failure_error\x18\x01 \x01(\x0b\x32\x12.google.rpc.Status\x12M\n\x07results\x18\x02 \x03(\x0b\x32<.google.ads.googleads.v4.services.ConversionAdjustmentResult\"\xe9\x03\n\x14\x43onversionAdjustment\x12\x37\n\x11\x63onversion_action\x18\x03 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12:\n\x14\x61\x64justment_date_time\x18\x04 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12m\n\x0f\x61\x64justment_type\x18\x05 \x01(\x0e\x32T.google.ads.googleads.v4.enums.ConversionAdjustmentTypeEnum.ConversionAdjustmentType\x12M\n\x11restatement_value\x18\x06 \x01(\x0b\x32\x32.google.ads.googleads.v4.services.RestatementValue\x12S\n\x14gclid_date_time_pair\x18\x01 \x01(\x0b\x32\x33.google.ads.googleads.v4.services.GclidDateTimePairH\x00\x12\x30\n\x08order_id\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValueH\x00\x42\x17\n\x15\x63onversion_identifier\"}\n\x10RestatementValue\x12\x34\n\x0e\x61\x64justed_value\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12\x33\n\rcurrency_code\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValue\"|\n\x11GclidDateTimePair\x12+\n\x05gclid\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12:\n\x14\x63onversion_date_time\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValue\"\xa0\x03\n\x1a\x43onversionAdjustmentResult\x12\x37\n\x11\x63onversion_action\x18\x03 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12:\n\x14\x61\x64justment_date_time\x18\x04 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12m\n\x0f\x61\x64justment_type\x18\x05 \x01(\x0e\x32T.google.ads.googleads.v4.enums.ConversionAdjustmentTypeEnum.ConversionAdjustmentType\x12S\n\x14gclid_date_time_pair\x18\x01 \x01(\x0b\x32\x33.google.ads.googleads.v4.services.GclidDateTimePairH\x00\x12\x30\n\x08order_id\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValueH\x00\x42\x17\n\x15\x63onversion_identifier2\xe8\x02\n!ConversionAdjustmentUploadService\x12\xa5\x02\n\x1bUploadConversionAdjustments\x12\x44.google.ads.googleads.v4.services.UploadConversionAdjustmentsRequest\x1a\x45.google.ads.googleads.v4.services.UploadConversionAdjustmentsResponse\"y\x82\xd3\xe4\x93\x02>\"9/v4/customers/{customer_id=*}:uploadConversionAdjustments:\x01*\xda\x41\x32\x63ustomer_id,conversion_adjustments,partial_failure\x1a\x1b\xca\x41\x18googleads.googleapis.comB\x8d\x02\n$com.google.ads.googleads.v4.servicesB&ConversionAdjustmentUploadServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V4.Services\xca\x02 Google\\Ads\\GoogleAds\\V4\\Services\xea\x02$Google::Ads::GoogleAds::V4::Servicesb\x06proto3') + , + dependencies=[google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_conversion__adjustment__type__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_api_dot_client__pb2.DESCRIPTOR,google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_rpc_dot_status__pb2.DESCRIPTOR,]) + + + + +_UPLOADCONVERSIONADJUSTMENTSREQUEST = _descriptor.Descriptor( + name='UploadConversionAdjustmentsRequest', + full_name='google.ads.googleads.v4.services.UploadConversionAdjustmentsRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='customer_id', full_name='google.ads.googleads.v4.services.UploadConversionAdjustmentsRequest.customer_id', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='conversion_adjustments', full_name='google.ads.googleads.v4.services.UploadConversionAdjustmentsRequest.conversion_adjustments', index=1, + number=2, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='partial_failure', full_name='google.ads.googleads.v4.services.UploadConversionAdjustmentsRequest.partial_failure', index=2, + number=3, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='validate_only', full_name='google.ads.googleads.v4.services.UploadConversionAdjustmentsRequest.validate_only', index=3, + number=4, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=335, + serialized_end=543, +) + + +_UPLOADCONVERSIONADJUSTMENTSRESPONSE = _descriptor.Descriptor( + name='UploadConversionAdjustmentsResponse', + full_name='google.ads.googleads.v4.services.UploadConversionAdjustmentsResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='partial_failure_error', full_name='google.ads.googleads.v4.services.UploadConversionAdjustmentsResponse.partial_failure_error', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='results', full_name='google.ads.googleads.v4.services.UploadConversionAdjustmentsResponse.results', index=1, + number=2, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=546, + serialized_end=713, +) + + +_CONVERSIONADJUSTMENT = _descriptor.Descriptor( + name='ConversionAdjustment', + full_name='google.ads.googleads.v4.services.ConversionAdjustment', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='conversion_action', full_name='google.ads.googleads.v4.services.ConversionAdjustment.conversion_action', index=0, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='adjustment_date_time', full_name='google.ads.googleads.v4.services.ConversionAdjustment.adjustment_date_time', index=1, + number=4, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='adjustment_type', full_name='google.ads.googleads.v4.services.ConversionAdjustment.adjustment_type', index=2, + number=5, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='restatement_value', full_name='google.ads.googleads.v4.services.ConversionAdjustment.restatement_value', index=3, + number=6, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='gclid_date_time_pair', full_name='google.ads.googleads.v4.services.ConversionAdjustment.gclid_date_time_pair', index=4, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='order_id', full_name='google.ads.googleads.v4.services.ConversionAdjustment.order_id', index=5, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name='conversion_identifier', full_name='google.ads.googleads.v4.services.ConversionAdjustment.conversion_identifier', + index=0, containing_type=None, fields=[]), + ], + serialized_start=716, + serialized_end=1205, +) + + +_RESTATEMENTVALUE = _descriptor.Descriptor( + name='RestatementValue', + full_name='google.ads.googleads.v4.services.RestatementValue', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='adjusted_value', full_name='google.ads.googleads.v4.services.RestatementValue.adjusted_value', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='currency_code', full_name='google.ads.googleads.v4.services.RestatementValue.currency_code', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1207, + serialized_end=1332, +) + + +_GCLIDDATETIMEPAIR = _descriptor.Descriptor( + name='GclidDateTimePair', + full_name='google.ads.googleads.v4.services.GclidDateTimePair', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='gclid', full_name='google.ads.googleads.v4.services.GclidDateTimePair.gclid', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='conversion_date_time', full_name='google.ads.googleads.v4.services.GclidDateTimePair.conversion_date_time', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1334, + serialized_end=1458, +) + + +_CONVERSIONADJUSTMENTRESULT = _descriptor.Descriptor( + name='ConversionAdjustmentResult', + full_name='google.ads.googleads.v4.services.ConversionAdjustmentResult', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='conversion_action', full_name='google.ads.googleads.v4.services.ConversionAdjustmentResult.conversion_action', index=0, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='adjustment_date_time', full_name='google.ads.googleads.v4.services.ConversionAdjustmentResult.adjustment_date_time', index=1, + number=4, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='adjustment_type', full_name='google.ads.googleads.v4.services.ConversionAdjustmentResult.adjustment_type', index=2, + number=5, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='gclid_date_time_pair', full_name='google.ads.googleads.v4.services.ConversionAdjustmentResult.gclid_date_time_pair', index=3, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='order_id', full_name='google.ads.googleads.v4.services.ConversionAdjustmentResult.order_id', index=4, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name='conversion_identifier', full_name='google.ads.googleads.v4.services.ConversionAdjustmentResult.conversion_identifier', + index=0, containing_type=None, fields=[]), + ], + serialized_start=1461, + serialized_end=1877, +) + +_UPLOADCONVERSIONADJUSTMENTSREQUEST.fields_by_name['conversion_adjustments'].message_type = _CONVERSIONADJUSTMENT +_UPLOADCONVERSIONADJUSTMENTSRESPONSE.fields_by_name['partial_failure_error'].message_type = google_dot_rpc_dot_status__pb2._STATUS +_UPLOADCONVERSIONADJUSTMENTSRESPONSE.fields_by_name['results'].message_type = _CONVERSIONADJUSTMENTRESULT +_CONVERSIONADJUSTMENT.fields_by_name['conversion_action'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_CONVERSIONADJUSTMENT.fields_by_name['adjustment_date_time'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_CONVERSIONADJUSTMENT.fields_by_name['adjustment_type'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_conversion__adjustment__type__pb2._CONVERSIONADJUSTMENTTYPEENUM_CONVERSIONADJUSTMENTTYPE +_CONVERSIONADJUSTMENT.fields_by_name['restatement_value'].message_type = _RESTATEMENTVALUE +_CONVERSIONADJUSTMENT.fields_by_name['gclid_date_time_pair'].message_type = _GCLIDDATETIMEPAIR +_CONVERSIONADJUSTMENT.fields_by_name['order_id'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_CONVERSIONADJUSTMENT.oneofs_by_name['conversion_identifier'].fields.append( + _CONVERSIONADJUSTMENT.fields_by_name['gclid_date_time_pair']) +_CONVERSIONADJUSTMENT.fields_by_name['gclid_date_time_pair'].containing_oneof = _CONVERSIONADJUSTMENT.oneofs_by_name['conversion_identifier'] +_CONVERSIONADJUSTMENT.oneofs_by_name['conversion_identifier'].fields.append( + _CONVERSIONADJUSTMENT.fields_by_name['order_id']) +_CONVERSIONADJUSTMENT.fields_by_name['order_id'].containing_oneof = _CONVERSIONADJUSTMENT.oneofs_by_name['conversion_identifier'] +_RESTATEMENTVALUE.fields_by_name['adjusted_value'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE +_RESTATEMENTVALUE.fields_by_name['currency_code'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_GCLIDDATETIMEPAIR.fields_by_name['gclid'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_GCLIDDATETIMEPAIR.fields_by_name['conversion_date_time'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_CONVERSIONADJUSTMENTRESULT.fields_by_name['conversion_action'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_CONVERSIONADJUSTMENTRESULT.fields_by_name['adjustment_date_time'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_CONVERSIONADJUSTMENTRESULT.fields_by_name['adjustment_type'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_conversion__adjustment__type__pb2._CONVERSIONADJUSTMENTTYPEENUM_CONVERSIONADJUSTMENTTYPE +_CONVERSIONADJUSTMENTRESULT.fields_by_name['gclid_date_time_pair'].message_type = _GCLIDDATETIMEPAIR +_CONVERSIONADJUSTMENTRESULT.fields_by_name['order_id'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_CONVERSIONADJUSTMENTRESULT.oneofs_by_name['conversion_identifier'].fields.append( + _CONVERSIONADJUSTMENTRESULT.fields_by_name['gclid_date_time_pair']) +_CONVERSIONADJUSTMENTRESULT.fields_by_name['gclid_date_time_pair'].containing_oneof = _CONVERSIONADJUSTMENTRESULT.oneofs_by_name['conversion_identifier'] +_CONVERSIONADJUSTMENTRESULT.oneofs_by_name['conversion_identifier'].fields.append( + _CONVERSIONADJUSTMENTRESULT.fields_by_name['order_id']) +_CONVERSIONADJUSTMENTRESULT.fields_by_name['order_id'].containing_oneof = _CONVERSIONADJUSTMENTRESULT.oneofs_by_name['conversion_identifier'] +DESCRIPTOR.message_types_by_name['UploadConversionAdjustmentsRequest'] = _UPLOADCONVERSIONADJUSTMENTSREQUEST +DESCRIPTOR.message_types_by_name['UploadConversionAdjustmentsResponse'] = _UPLOADCONVERSIONADJUSTMENTSRESPONSE +DESCRIPTOR.message_types_by_name['ConversionAdjustment'] = _CONVERSIONADJUSTMENT +DESCRIPTOR.message_types_by_name['RestatementValue'] = _RESTATEMENTVALUE +DESCRIPTOR.message_types_by_name['GclidDateTimePair'] = _GCLIDDATETIMEPAIR +DESCRIPTOR.message_types_by_name['ConversionAdjustmentResult'] = _CONVERSIONADJUSTMENTRESULT +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +UploadConversionAdjustmentsRequest = _reflection.GeneratedProtocolMessageType('UploadConversionAdjustmentsRequest', (_message.Message,), dict( + DESCRIPTOR = _UPLOADCONVERSIONADJUSTMENTSREQUEST, + __module__ = 'google.ads.googleads_v4.proto.services.conversion_adjustment_upload_service_pb2' + , + __doc__ = """Request message for + [ConversionAdjustmentUploadService.UploadConversionAdjustments][google.ads.googleads.v4.services.ConversionAdjustmentUploadService.UploadConversionAdjustments]. + + + Attributes: + customer_id: + Required. The ID of the customer performing the upload. + conversion_adjustments: + Required. The conversion adjustments that are being uploaded. + partial_failure: + Required. If true, successful operations will be carried out + and invalid operations will return errors. If false, all + operations will be carried out in one transaction if and only + if they are all valid. This should always be set to true. See + https://developers.google.com/google-ads/api/docs/best- + practices/partial-failures for more information about partial + failure. + validate_only: + If true, the request is validated but not executed. Only + errors are returned, not results. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.UploadConversionAdjustmentsRequest) + )) +_sym_db.RegisterMessage(UploadConversionAdjustmentsRequest) + +UploadConversionAdjustmentsResponse = _reflection.GeneratedProtocolMessageType('UploadConversionAdjustmentsResponse', (_message.Message,), dict( + DESCRIPTOR = _UPLOADCONVERSIONADJUSTMENTSRESPONSE, + __module__ = 'google.ads.googleads_v4.proto.services.conversion_adjustment_upload_service_pb2' + , + __doc__ = """Response message for + [ConversionAdjustmentUploadService.UploadConversionAdjustments][google.ads.googleads.v4.services.ConversionAdjustmentUploadService.UploadConversionAdjustments]. + + + Attributes: + partial_failure_error: + Errors that pertain to conversion adjustment failures in the + partial failure mode. Returned when all errors occur inside + the adjustments. If any errors occur outside the adjustments + (e.g. auth errors), we return an RPC level error. See + https://developers.google.com/google-ads/api/docs/best- + practices/partial-failures for more information about partial + failure. + results: + Returned for successfully processed conversion adjustments. + Proto will be empty for rows that received an error. Results + are not returned when validate\_only is true. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.UploadConversionAdjustmentsResponse) + )) +_sym_db.RegisterMessage(UploadConversionAdjustmentsResponse) + +ConversionAdjustment = _reflection.GeneratedProtocolMessageType('ConversionAdjustment', (_message.Message,), dict( + DESCRIPTOR = _CONVERSIONADJUSTMENT, + __module__ = 'google.ads.googleads_v4.proto.services.conversion_adjustment_upload_service_pb2' + , + __doc__ = """A conversion adjustment. + + + Attributes: + conversion_action: + Resource name of the conversion action associated with this + conversion adjustment. Note: Although this resource name + consists of a customer id and a conversion action id, + validation will ignore the customer id and use the conversion + action id as the sole identifier of the conversion action. + adjustment_date_time: + The date time at which the adjustment occurred. Must be after + the conversion\_date\_time. The timezone must be specified. + The format is "yyyy-mm-dd hh:mm:ss+\|-hh:mm", e.g. "2019-01-01 + 12:32:45-08:00". + adjustment_type: + The adjustment type. + restatement_value: + Information needed to restate the conversion's value. Required + for restatements. Should not be supplied for retractions. An + error will be returned if provided for a retraction. + conversion_identifier: + Identifies the conversion to be adjusted. + gclid_date_time_pair: + Uniquely identifies a conversion that was reported without an + order ID specified. + order_id: + The order ID of the conversion to be adjusted. If the + conversion was reported with an order ID specified, that order + ID must be used as the identifier here. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.ConversionAdjustment) + )) +_sym_db.RegisterMessage(ConversionAdjustment) + +RestatementValue = _reflection.GeneratedProtocolMessageType('RestatementValue', (_message.Message,), dict( + DESCRIPTOR = _RESTATEMENTVALUE, + __module__ = 'google.ads.googleads_v4.proto.services.conversion_adjustment_upload_service_pb2' + , + __doc__ = """Contains information needed to restate a conversion's value. + + + Attributes: + adjusted_value: + The restated conversion value. This is the value of the + conversion after restatement. For example, to change the value + of a conversion from 100 to 70, an adjusted value of 70 should + be reported. + currency_code: + The currency of the restated value. If not provided, then the + default currency from the conversion action is used, and if + that is not set then the account currency is used. This is the + ISO 4217 3-character currency code e.g. USD or EUR. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.RestatementValue) + )) +_sym_db.RegisterMessage(RestatementValue) + +GclidDateTimePair = _reflection.GeneratedProtocolMessageType('GclidDateTimePair', (_message.Message,), dict( + DESCRIPTOR = _GCLIDDATETIMEPAIR, + __module__ = 'google.ads.googleads_v4.proto.services.conversion_adjustment_upload_service_pb2' + , + __doc__ = """Uniquely identifies a conversion that was reported without an order ID + specified. + + + Attributes: + gclid: + Google click ID (gclid) associated with the original + conversion for this adjustment. + conversion_date_time: + The date time at which the original conversion for this + adjustment occurred. The timezone must be specified. The + format is "yyyy-mm-dd hh:mm:ss+\|-hh:mm", e.g. "2019-01-01 + 12:32:45-08:00". + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.GclidDateTimePair) + )) +_sym_db.RegisterMessage(GclidDateTimePair) + +ConversionAdjustmentResult = _reflection.GeneratedProtocolMessageType('ConversionAdjustmentResult', (_message.Message,), dict( + DESCRIPTOR = _CONVERSIONADJUSTMENTRESULT, + __module__ = 'google.ads.googleads_v4.proto.services.conversion_adjustment_upload_service_pb2' + , + __doc__ = """Information identifying a successfully processed ConversionAdjustment. + + + Attributes: + conversion_action: + Resource name of the conversion action associated with this + conversion adjustment. + adjustment_date_time: + The date time at which the adjustment occurred. The format is + "yyyy-mm-dd hh:mm:ss+\|-hh:mm", e.g. "2019-01-01 + 12:32:45-08:00". + adjustment_type: + The adjustment type. + conversion_identifier: + Identifies the conversion that was adjusted. + gclid_date_time_pair: + Uniquely identifies a conversion that was reported without an + order ID specified. + order_id: + The order ID of the conversion that was adjusted. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.ConversionAdjustmentResult) + )) +_sym_db.RegisterMessage(ConversionAdjustmentResult) + + +DESCRIPTOR._options = None +_UPLOADCONVERSIONADJUSTMENTSREQUEST.fields_by_name['customer_id']._options = None +_UPLOADCONVERSIONADJUSTMENTSREQUEST.fields_by_name['conversion_adjustments']._options = None +_UPLOADCONVERSIONADJUSTMENTSREQUEST.fields_by_name['partial_failure']._options = None + +_CONVERSIONADJUSTMENTUPLOADSERVICE = _descriptor.ServiceDescriptor( + name='ConversionAdjustmentUploadService', + full_name='google.ads.googleads.v4.services.ConversionAdjustmentUploadService', + file=DESCRIPTOR, + index=0, + serialized_options=_b('\312A\030googleads.googleapis.com'), + serialized_start=1880, + serialized_end=2240, + methods=[ + _descriptor.MethodDescriptor( + name='UploadConversionAdjustments', + full_name='google.ads.googleads.v4.services.ConversionAdjustmentUploadService.UploadConversionAdjustments', + index=0, + containing_service=None, + input_type=_UPLOADCONVERSIONADJUSTMENTSREQUEST, + output_type=_UPLOADCONVERSIONADJUSTMENTSRESPONSE, + serialized_options=_b('\202\323\344\223\002>\"9/v4/customers/{customer_id=*}:uploadConversionAdjustments:\001*\332A2customer_id,conversion_adjustments,partial_failure'), + ), +]) +_sym_db.RegisterServiceDescriptor(_CONVERSIONADJUSTMENTUPLOADSERVICE) + +DESCRIPTOR.services_by_name['ConversionAdjustmentUploadService'] = _CONVERSIONADJUSTMENTUPLOADSERVICE + +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/services/conversion_adjustment_upload_service_pb2_grpc.py b/google/ads/google_ads/v4/proto/services/conversion_adjustment_upload_service_pb2_grpc.py similarity index 77% rename from google/ads/google_ads/v1/proto/services/conversion_adjustment_upload_service_pb2_grpc.py rename to google/ads/google_ads/v4/proto/services/conversion_adjustment_upload_service_pb2_grpc.py index 6e9635e57..920b37dba 100644 --- a/google/ads/google_ads/v1/proto/services/conversion_adjustment_upload_service_pb2_grpc.py +++ b/google/ads/google_ads/v4/proto/services/conversion_adjustment_upload_service_pb2_grpc.py @@ -1,7 +1,7 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc -from google.ads.google_ads.v1.proto.services import conversion_adjustment_upload_service_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_conversion__adjustment__upload__service__pb2 +from google.ads.google_ads.v4.proto.services import conversion_adjustment_upload_service_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_conversion__adjustment__upload__service__pb2 class ConversionAdjustmentUploadServiceStub(object): @@ -15,9 +15,9 @@ def __init__(self, channel): channel: A grpc.Channel. """ self.UploadConversionAdjustments = channel.unary_unary( - '/google.ads.googleads.v1.services.ConversionAdjustmentUploadService/UploadConversionAdjustments', - request_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_conversion__adjustment__upload__service__pb2.UploadConversionAdjustmentsRequest.SerializeToString, - response_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_conversion__adjustment__upload__service__pb2.UploadConversionAdjustmentsResponse.FromString, + '/google.ads.googleads.v4.services.ConversionAdjustmentUploadService/UploadConversionAdjustments', + request_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_conversion__adjustment__upload__service__pb2.UploadConversionAdjustmentsRequest.SerializeToString, + response_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_conversion__adjustment__upload__service__pb2.UploadConversionAdjustmentsResponse.FromString, ) @@ -37,10 +37,10 @@ def add_ConversionAdjustmentUploadServiceServicer_to_server(servicer, server): rpc_method_handlers = { 'UploadConversionAdjustments': grpc.unary_unary_rpc_method_handler( servicer.UploadConversionAdjustments, - request_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_conversion__adjustment__upload__service__pb2.UploadConversionAdjustmentsRequest.FromString, - response_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_conversion__adjustment__upload__service__pb2.UploadConversionAdjustmentsResponse.SerializeToString, + request_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_conversion__adjustment__upload__service__pb2.UploadConversionAdjustmentsRequest.FromString, + response_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_conversion__adjustment__upload__service__pb2.UploadConversionAdjustmentsResponse.SerializeToString, ), } generic_handler = grpc.method_handlers_generic_handler( - 'google.ads.googleads.v1.services.ConversionAdjustmentUploadService', rpc_method_handlers) + 'google.ads.googleads.v4.services.ConversionAdjustmentUploadService', rpc_method_handlers) server.add_generic_rpc_handlers((generic_handler,)) diff --git a/google/ads/google_ads/v4/proto/services/conversion_upload_service_pb2.py b/google/ads/google_ads/v4/proto/services/conversion_upload_service_pb2.py new file mode 100644 index 000000000..e5d40dcb4 --- /dev/null +++ b/google/ads/google_ads/v4/proto/services/conversion_upload_service_pb2.py @@ -0,0 +1,820 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/services/conversion_upload_service.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 +from google.api import client_pb2 as google_dot_api_dot_client__pb2 +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 +from google.rpc import status_pb2 as google_dot_rpc_dot_status__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/services/conversion_upload_service.proto', + package='google.ads.googleads.v4.services', + syntax='proto3', + serialized_options=_b('\n$com.google.ads.googleads.v4.servicesB\034ConversionUploadServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V4.Services\312\002 Google\\Ads\\GoogleAds\\V4\\Services\352\002$Google::Ads::GoogleAds::V4::Services'), + serialized_pb=_b('\nFgoogle/ads/googleads_v4/proto/services/conversion_upload_service.proto\x12 google.ads.googleads.v4.services\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x17google/rpc/status.proto\"\xbb\x01\n\x1dUploadClickConversionsRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12K\n\x0b\x63onversions\x18\x02 \x03(\x0b\x32\x31.google.ads.googleads.v4.services.ClickConversionB\x03\xe0\x41\x02\x12\x1c\n\x0fpartial_failure\x18\x03 \x01(\x08\x42\x03\xe0\x41\x02\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\"\x9d\x01\n\x1eUploadClickConversionsResponse\x12\x31\n\x15partial_failure_error\x18\x01 \x01(\x0b\x32\x12.google.rpc.Status\x12H\n\x07results\x18\x02 \x03(\x0b\x32\x37.google.ads.googleads.v4.services.ClickConversionResult\"\xb9\x01\n\x1cUploadCallConversionsRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12J\n\x0b\x63onversions\x18\x02 \x03(\x0b\x32\x30.google.ads.googleads.v4.services.CallConversionB\x03\xe0\x41\x02\x12\x1c\n\x0fpartial_failure\x18\x03 \x01(\x08\x42\x03\xe0\x41\x02\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\"\x9b\x01\n\x1dUploadCallConversionsResponse\x12\x31\n\x15partial_failure_error\x18\x01 \x01(\x0b\x32\x12.google.rpc.Status\x12G\n\x07results\x18\x02 \x03(\x0b\x32\x36.google.ads.googleads.v4.services.CallConversionResult\"\xae\x03\n\x0f\x43lickConversion\x12+\n\x05gclid\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x37\n\x11\x63onversion_action\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12:\n\x14\x63onversion_date_time\x18\x03 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x36\n\x10\x63onversion_value\x18\x04 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12\x33\n\rcurrency_code\x18\x05 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12.\n\x08order_id\x18\x06 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\\\n\x19\x65xternal_attribution_data\x18\x07 \x01(\x0b\x32\x39.google.ads.googleads.v4.services.ExternalAttributionData\"\xdf\x02\n\x0e\x43\x61llConversion\x12/\n\tcaller_id\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12:\n\x14\x63\x61ll_start_date_time\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x37\n\x11\x63onversion_action\x18\x03 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12:\n\x14\x63onversion_date_time\x18\x04 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x36\n\x10\x63onversion_value\x18\x05 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12\x33\n\rcurrency_code\x18\x06 \x01(\x0b\x32\x1c.google.protobuf.StringValue\"\x9e\x01\n\x17\x45xternalAttributionData\x12\x41\n\x1b\x65xternal_attribution_credit\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12@\n\x1a\x65xternal_attribution_model\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValue\"\xb9\x01\n\x15\x43lickConversionResult\x12+\n\x05gclid\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x37\n\x11\x63onversion_action\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12:\n\x14\x63onversion_date_time\x18\x03 \x01(\x0b\x32\x1c.google.protobuf.StringValue\"\xf8\x01\n\x14\x43\x61llConversionResult\x12/\n\tcaller_id\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12:\n\x14\x63\x61ll_start_date_time\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x37\n\x11\x63onversion_action\x18\x03 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12:\n\x14\x63onversion_date_time\x18\x04 \x01(\x0b\x32\x1c.google.protobuf.StringValue2\xc4\x04\n\x17\x43onversionUploadService\x12\x86\x02\n\x16UploadClickConversions\x12?.google.ads.googleads.v4.services.UploadClickConversionsRequest\x1a@.google.ads.googleads.v4.services.UploadClickConversionsResponse\"i\x82\xd3\xe4\x93\x02\x39\"4/v4/customers/{customer_id=*}:uploadClickConversions:\x01*\xda\x41\'customer_id,conversions,partial_failure\x12\x82\x02\n\x15UploadCallConversions\x12>.google.ads.googleads.v4.services.UploadCallConversionsRequest\x1a?.google.ads.googleads.v4.services.UploadCallConversionsResponse\"h\x82\xd3\xe4\x93\x02\x38\"3/v4/customers/{customer_id=*}:uploadCallConversions:\x01*\xda\x41\'customer_id,conversions,partial_failure\x1a\x1b\xca\x41\x18googleads.googleapis.comB\x83\x02\n$com.google.ads.googleads.v4.servicesB\x1c\x43onversionUploadServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V4.Services\xca\x02 Google\\Ads\\GoogleAds\\V4\\Services\xea\x02$Google::Ads::GoogleAds::V4::Servicesb\x06proto3') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_api_dot_client__pb2.DESCRIPTOR,google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_rpc_dot_status__pb2.DESCRIPTOR,]) + + + + +_UPLOADCLICKCONVERSIONSREQUEST = _descriptor.Descriptor( + name='UploadClickConversionsRequest', + full_name='google.ads.googleads.v4.services.UploadClickConversionsRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='customer_id', full_name='google.ads.googleads.v4.services.UploadClickConversionsRequest.customer_id', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='conversions', full_name='google.ads.googleads.v4.services.UploadClickConversionsRequest.conversions', index=1, + number=2, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='partial_failure', full_name='google.ads.googleads.v4.services.UploadClickConversionsRequest.partial_failure', index=2, + number=3, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='validate_only', full_name='google.ads.googleads.v4.services.UploadClickConversionsRequest.validate_only', index=3, + number=4, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=254, + serialized_end=441, +) + + +_UPLOADCLICKCONVERSIONSRESPONSE = _descriptor.Descriptor( + name='UploadClickConversionsResponse', + full_name='google.ads.googleads.v4.services.UploadClickConversionsResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='partial_failure_error', full_name='google.ads.googleads.v4.services.UploadClickConversionsResponse.partial_failure_error', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='results', full_name='google.ads.googleads.v4.services.UploadClickConversionsResponse.results', index=1, + number=2, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=444, + serialized_end=601, +) + + +_UPLOADCALLCONVERSIONSREQUEST = _descriptor.Descriptor( + name='UploadCallConversionsRequest', + full_name='google.ads.googleads.v4.services.UploadCallConversionsRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='customer_id', full_name='google.ads.googleads.v4.services.UploadCallConversionsRequest.customer_id', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='conversions', full_name='google.ads.googleads.v4.services.UploadCallConversionsRequest.conversions', index=1, + number=2, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='partial_failure', full_name='google.ads.googleads.v4.services.UploadCallConversionsRequest.partial_failure', index=2, + number=3, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='validate_only', full_name='google.ads.googleads.v4.services.UploadCallConversionsRequest.validate_only', index=3, + number=4, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=604, + serialized_end=789, +) + + +_UPLOADCALLCONVERSIONSRESPONSE = _descriptor.Descriptor( + name='UploadCallConversionsResponse', + full_name='google.ads.googleads.v4.services.UploadCallConversionsResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='partial_failure_error', full_name='google.ads.googleads.v4.services.UploadCallConversionsResponse.partial_failure_error', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='results', full_name='google.ads.googleads.v4.services.UploadCallConversionsResponse.results', index=1, + number=2, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=792, + serialized_end=947, +) + + +_CLICKCONVERSION = _descriptor.Descriptor( + name='ClickConversion', + full_name='google.ads.googleads.v4.services.ClickConversion', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='gclid', full_name='google.ads.googleads.v4.services.ClickConversion.gclid', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='conversion_action', full_name='google.ads.googleads.v4.services.ClickConversion.conversion_action', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='conversion_date_time', full_name='google.ads.googleads.v4.services.ClickConversion.conversion_date_time', index=2, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='conversion_value', full_name='google.ads.googleads.v4.services.ClickConversion.conversion_value', index=3, + number=4, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='currency_code', full_name='google.ads.googleads.v4.services.ClickConversion.currency_code', index=4, + number=5, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='order_id', full_name='google.ads.googleads.v4.services.ClickConversion.order_id', index=5, + number=6, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='external_attribution_data', full_name='google.ads.googleads.v4.services.ClickConversion.external_attribution_data', index=6, + number=7, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=950, + serialized_end=1380, +) + + +_CALLCONVERSION = _descriptor.Descriptor( + name='CallConversion', + full_name='google.ads.googleads.v4.services.CallConversion', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='caller_id', full_name='google.ads.googleads.v4.services.CallConversion.caller_id', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='call_start_date_time', full_name='google.ads.googleads.v4.services.CallConversion.call_start_date_time', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='conversion_action', full_name='google.ads.googleads.v4.services.CallConversion.conversion_action', index=2, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='conversion_date_time', full_name='google.ads.googleads.v4.services.CallConversion.conversion_date_time', index=3, + number=4, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='conversion_value', full_name='google.ads.googleads.v4.services.CallConversion.conversion_value', index=4, + number=5, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='currency_code', full_name='google.ads.googleads.v4.services.CallConversion.currency_code', index=5, + number=6, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1383, + serialized_end=1734, +) + + +_EXTERNALATTRIBUTIONDATA = _descriptor.Descriptor( + name='ExternalAttributionData', + full_name='google.ads.googleads.v4.services.ExternalAttributionData', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='external_attribution_credit', full_name='google.ads.googleads.v4.services.ExternalAttributionData.external_attribution_credit', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='external_attribution_model', full_name='google.ads.googleads.v4.services.ExternalAttributionData.external_attribution_model', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1737, + serialized_end=1895, +) + + +_CLICKCONVERSIONRESULT = _descriptor.Descriptor( + name='ClickConversionResult', + full_name='google.ads.googleads.v4.services.ClickConversionResult', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='gclid', full_name='google.ads.googleads.v4.services.ClickConversionResult.gclid', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='conversion_action', full_name='google.ads.googleads.v4.services.ClickConversionResult.conversion_action', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='conversion_date_time', full_name='google.ads.googleads.v4.services.ClickConversionResult.conversion_date_time', index=2, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1898, + serialized_end=2083, +) + + +_CALLCONVERSIONRESULT = _descriptor.Descriptor( + name='CallConversionResult', + full_name='google.ads.googleads.v4.services.CallConversionResult', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='caller_id', full_name='google.ads.googleads.v4.services.CallConversionResult.caller_id', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='call_start_date_time', full_name='google.ads.googleads.v4.services.CallConversionResult.call_start_date_time', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='conversion_action', full_name='google.ads.googleads.v4.services.CallConversionResult.conversion_action', index=2, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='conversion_date_time', full_name='google.ads.googleads.v4.services.CallConversionResult.conversion_date_time', index=3, + number=4, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=2086, + serialized_end=2334, +) + +_UPLOADCLICKCONVERSIONSREQUEST.fields_by_name['conversions'].message_type = _CLICKCONVERSION +_UPLOADCLICKCONVERSIONSRESPONSE.fields_by_name['partial_failure_error'].message_type = google_dot_rpc_dot_status__pb2._STATUS +_UPLOADCLICKCONVERSIONSRESPONSE.fields_by_name['results'].message_type = _CLICKCONVERSIONRESULT +_UPLOADCALLCONVERSIONSREQUEST.fields_by_name['conversions'].message_type = _CALLCONVERSION +_UPLOADCALLCONVERSIONSRESPONSE.fields_by_name['partial_failure_error'].message_type = google_dot_rpc_dot_status__pb2._STATUS +_UPLOADCALLCONVERSIONSRESPONSE.fields_by_name['results'].message_type = _CALLCONVERSIONRESULT +_CLICKCONVERSION.fields_by_name['gclid'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_CLICKCONVERSION.fields_by_name['conversion_action'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_CLICKCONVERSION.fields_by_name['conversion_date_time'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_CLICKCONVERSION.fields_by_name['conversion_value'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE +_CLICKCONVERSION.fields_by_name['currency_code'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_CLICKCONVERSION.fields_by_name['order_id'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_CLICKCONVERSION.fields_by_name['external_attribution_data'].message_type = _EXTERNALATTRIBUTIONDATA +_CALLCONVERSION.fields_by_name['caller_id'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_CALLCONVERSION.fields_by_name['call_start_date_time'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_CALLCONVERSION.fields_by_name['conversion_action'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_CALLCONVERSION.fields_by_name['conversion_date_time'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_CALLCONVERSION.fields_by_name['conversion_value'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE +_CALLCONVERSION.fields_by_name['currency_code'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_EXTERNALATTRIBUTIONDATA.fields_by_name['external_attribution_credit'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE +_EXTERNALATTRIBUTIONDATA.fields_by_name['external_attribution_model'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_CLICKCONVERSIONRESULT.fields_by_name['gclid'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_CLICKCONVERSIONRESULT.fields_by_name['conversion_action'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_CLICKCONVERSIONRESULT.fields_by_name['conversion_date_time'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_CALLCONVERSIONRESULT.fields_by_name['caller_id'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_CALLCONVERSIONRESULT.fields_by_name['call_start_date_time'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_CALLCONVERSIONRESULT.fields_by_name['conversion_action'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_CALLCONVERSIONRESULT.fields_by_name['conversion_date_time'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +DESCRIPTOR.message_types_by_name['UploadClickConversionsRequest'] = _UPLOADCLICKCONVERSIONSREQUEST +DESCRIPTOR.message_types_by_name['UploadClickConversionsResponse'] = _UPLOADCLICKCONVERSIONSRESPONSE +DESCRIPTOR.message_types_by_name['UploadCallConversionsRequest'] = _UPLOADCALLCONVERSIONSREQUEST +DESCRIPTOR.message_types_by_name['UploadCallConversionsResponse'] = _UPLOADCALLCONVERSIONSRESPONSE +DESCRIPTOR.message_types_by_name['ClickConversion'] = _CLICKCONVERSION +DESCRIPTOR.message_types_by_name['CallConversion'] = _CALLCONVERSION +DESCRIPTOR.message_types_by_name['ExternalAttributionData'] = _EXTERNALATTRIBUTIONDATA +DESCRIPTOR.message_types_by_name['ClickConversionResult'] = _CLICKCONVERSIONRESULT +DESCRIPTOR.message_types_by_name['CallConversionResult'] = _CALLCONVERSIONRESULT +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +UploadClickConversionsRequest = _reflection.GeneratedProtocolMessageType('UploadClickConversionsRequest', (_message.Message,), dict( + DESCRIPTOR = _UPLOADCLICKCONVERSIONSREQUEST, + __module__ = 'google.ads.googleads_v4.proto.services.conversion_upload_service_pb2' + , + __doc__ = """Request message for + [ConversionUploadService.UploadClickConversions][google.ads.googleads.v4.services.ConversionUploadService.UploadClickConversions]. + + + Attributes: + customer_id: + Required. The ID of the customer performing the upload. + conversions: + Required. The conversions that are being uploaded. + partial_failure: + Required. If true, successful operations will be carried out + and invalid operations will return errors. If false, all + operations will be carried out in one transaction if and only + if they are all valid. This should always be set to true. See + https://developers.google.com/google-ads/api/docs/best- + practices/partial-failures for more information about partial + failure. + validate_only: + If true, the request is validated but not executed. Only + errors are returned, not results. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.UploadClickConversionsRequest) + )) +_sym_db.RegisterMessage(UploadClickConversionsRequest) + +UploadClickConversionsResponse = _reflection.GeneratedProtocolMessageType('UploadClickConversionsResponse', (_message.Message,), dict( + DESCRIPTOR = _UPLOADCLICKCONVERSIONSRESPONSE, + __module__ = 'google.ads.googleads_v4.proto.services.conversion_upload_service_pb2' + , + __doc__ = """Response message for + [ConversionUploadService.UploadClickConversions][google.ads.googleads.v4.services.ConversionUploadService.UploadClickConversions]. + + + Attributes: + partial_failure_error: + Errors that pertain to conversion failures in the partial + failure mode. Returned when all errors occur inside the + conversions. If any errors occur outside the conversions (e.g. + auth errors), we return an RPC level error. See + https://developers.google.com/google-ads/api/docs/best- + practices/partial-failures for more information about partial + failure. + results: + Returned for successfully processed conversions. Proto will be + empty for rows that received an error. Results are not + returned when validate\_only is true. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.UploadClickConversionsResponse) + )) +_sym_db.RegisterMessage(UploadClickConversionsResponse) + +UploadCallConversionsRequest = _reflection.GeneratedProtocolMessageType('UploadCallConversionsRequest', (_message.Message,), dict( + DESCRIPTOR = _UPLOADCALLCONVERSIONSREQUEST, + __module__ = 'google.ads.googleads_v4.proto.services.conversion_upload_service_pb2' + , + __doc__ = """Request message for + [ConversionUploadService.UploadCallConversions][google.ads.googleads.v4.services.ConversionUploadService.UploadCallConversions]. + + + Attributes: + customer_id: + Required. The ID of the customer performing the upload. + conversions: + Required. The conversions that are being uploaded. + partial_failure: + Required. If true, successful operations will be carried out + and invalid operations will return errors. If false, all + operations will be carried out in one transaction if and only + if they are all valid. This should always be set to true. See + https://developers.google.com/google-ads/api/docs/best- + practices/partial-failures for more information about partial + failure. + validate_only: + If true, the request is validated but not executed. Only + errors are returned, not results. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.UploadCallConversionsRequest) + )) +_sym_db.RegisterMessage(UploadCallConversionsRequest) + +UploadCallConversionsResponse = _reflection.GeneratedProtocolMessageType('UploadCallConversionsResponse', (_message.Message,), dict( + DESCRIPTOR = _UPLOADCALLCONVERSIONSRESPONSE, + __module__ = 'google.ads.googleads_v4.proto.services.conversion_upload_service_pb2' + , + __doc__ = """Response message for + [ConversionUploadService.UploadCallConversions][google.ads.googleads.v4.services.ConversionUploadService.UploadCallConversions]. + + + Attributes: + partial_failure_error: + Errors that pertain to conversion failures in the partial + failure mode. Returned when all errors occur inside the + conversions. If any errors occur outside the conversions (e.g. + auth errors), we return an RPC level error. See + https://developers.google.com/google-ads/api/docs/best- + practices/partial-failures for more information about partial + failure. + results: + Returned for successfully processed conversions. Proto will be + empty for rows that received an error. Results are not + returned when validate\_only is true. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.UploadCallConversionsResponse) + )) +_sym_db.RegisterMessage(UploadCallConversionsResponse) + +ClickConversion = _reflection.GeneratedProtocolMessageType('ClickConversion', (_message.Message,), dict( + DESCRIPTOR = _CLICKCONVERSION, + __module__ = 'google.ads.googleads_v4.proto.services.conversion_upload_service_pb2' + , + __doc__ = """A click conversion. + + + Attributes: + gclid: + The Google click ID (gclid) associated with this conversion. + conversion_action: + Resource name of the conversion action associated with this + conversion. Note: Although this resource name consists of a + customer id and a conversion action id, validation will ignore + the customer id and use the conversion action id as the sole + identifier of the conversion action. + conversion_date_time: + The date time at which the conversion occurred. Must be after + the click time. The timezone must be specified. The format is + "yyyy-mm-dd hh:mm:ss+\|-hh:mm", e.g. “2019-01-01 + 12:32:45-08:00”. + conversion_value: + The value of the conversion for the advertiser. + currency_code: + Currency associated with the conversion value. This is the ISO + 4217 3-character currency code. For example: USD, EUR. + order_id: + The order ID associated with the conversion. An order id can + only be used for one conversion per conversion action. + external_attribution_data: + Additional data about externally attributed conversions. This + field is required for conversions with an externally + attributed conversion action, but should not be set otherwise. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.ClickConversion) + )) +_sym_db.RegisterMessage(ClickConversion) + +CallConversion = _reflection.GeneratedProtocolMessageType('CallConversion', (_message.Message,), dict( + DESCRIPTOR = _CALLCONVERSION, + __module__ = 'google.ads.googleads_v4.proto.services.conversion_upload_service_pb2' + , + __doc__ = """A call conversion. + + + Attributes: + caller_id: + The caller id from which this call was placed. Caller id is + expected to be in E.164 format with preceding '+' sign. e.g. + "+16502531234". + call_start_date_time: + The date time at which the call occurred. The timezone must be + specified. The format is "yyyy-mm-dd hh:mm:ss+\|-hh:mm", e.g. + "2019-01-01 12:32:45-08:00". + conversion_action: + Resource name of the conversion action associated with this + conversion. Note: Although this resource name consists of a + customer id and a conversion action id, validation will ignore + the customer id and use the conversion action id as the sole + identifier of the conversion action. + conversion_date_time: + The date time at which the conversion occurred. Must be after + the call time. The timezone must be specified. The format is + "yyyy-mm-dd hh:mm:ss+\|-hh:mm", e.g. "2019-01-01 + 12:32:45-08:00". + conversion_value: + The value of the conversion for the advertiser. + currency_code: + Currency associated with the conversion value. This is the ISO + 4217 3-character currency code. For example: USD, EUR. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.CallConversion) + )) +_sym_db.RegisterMessage(CallConversion) + +ExternalAttributionData = _reflection.GeneratedProtocolMessageType('ExternalAttributionData', (_message.Message,), dict( + DESCRIPTOR = _EXTERNALATTRIBUTIONDATA, + __module__ = 'google.ads.googleads_v4.proto.services.conversion_upload_service_pb2' + , + __doc__ = """Contains additional information about externally attributed conversions. + + + Attributes: + external_attribution_credit: + Represents the fraction of the conversion that is attributed + to the Google Ads click. + external_attribution_model: + Specifies the attribution model name. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.ExternalAttributionData) + )) +_sym_db.RegisterMessage(ExternalAttributionData) + +ClickConversionResult = _reflection.GeneratedProtocolMessageType('ClickConversionResult', (_message.Message,), dict( + DESCRIPTOR = _CLICKCONVERSIONRESULT, + __module__ = 'google.ads.googleads_v4.proto.services.conversion_upload_service_pb2' + , + __doc__ = """Identifying information for a successfully processed ClickConversion. + + + Attributes: + gclid: + The Google Click ID (gclid) associated with this conversion. + conversion_action: + Resource name of the conversion action associated with this + conversion. + conversion_date_time: + The date time at which the conversion occurred. The format is + "yyyy-mm-dd hh:mm:ss+\|-hh:mm", e.g. “2019-01-01 + 12:32:45-08:00”. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.ClickConversionResult) + )) +_sym_db.RegisterMessage(ClickConversionResult) + +CallConversionResult = _reflection.GeneratedProtocolMessageType('CallConversionResult', (_message.Message,), dict( + DESCRIPTOR = _CALLCONVERSIONRESULT, + __module__ = 'google.ads.googleads_v4.proto.services.conversion_upload_service_pb2' + , + __doc__ = """Identifying information for a successfully processed + CallConversionUpload. + + + Attributes: + caller_id: + The caller id from which this call was placed. Caller id is + expected to be in E.164 format with preceding '+' sign. + call_start_date_time: + The date time at which the call occurred. The format is "yyyy- + mm-dd hh:mm:ss+\|-hh:mm", e.g. "2019-01-01 12:32:45-08:00". + conversion_action: + Resource name of the conversion action associated with this + conversion. + conversion_date_time: + The date time at which the conversion occurred. The format is + "yyyy-mm-dd hh:mm:ss+\|-hh:mm", e.g. "2019-01-01 + 12:32:45-08:00". + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.CallConversionResult) + )) +_sym_db.RegisterMessage(CallConversionResult) + + +DESCRIPTOR._options = None +_UPLOADCLICKCONVERSIONSREQUEST.fields_by_name['customer_id']._options = None +_UPLOADCLICKCONVERSIONSREQUEST.fields_by_name['conversions']._options = None +_UPLOADCLICKCONVERSIONSREQUEST.fields_by_name['partial_failure']._options = None +_UPLOADCALLCONVERSIONSREQUEST.fields_by_name['customer_id']._options = None +_UPLOADCALLCONVERSIONSREQUEST.fields_by_name['conversions']._options = None +_UPLOADCALLCONVERSIONSREQUEST.fields_by_name['partial_failure']._options = None + +_CONVERSIONUPLOADSERVICE = _descriptor.ServiceDescriptor( + name='ConversionUploadService', + full_name='google.ads.googleads.v4.services.ConversionUploadService', + file=DESCRIPTOR, + index=0, + serialized_options=_b('\312A\030googleads.googleapis.com'), + serialized_start=2337, + serialized_end=2917, + methods=[ + _descriptor.MethodDescriptor( + name='UploadClickConversions', + full_name='google.ads.googleads.v4.services.ConversionUploadService.UploadClickConversions', + index=0, + containing_service=None, + input_type=_UPLOADCLICKCONVERSIONSREQUEST, + output_type=_UPLOADCLICKCONVERSIONSRESPONSE, + serialized_options=_b('\202\323\344\223\0029\"4/v4/customers/{customer_id=*}:uploadClickConversions:\001*\332A\'customer_id,conversions,partial_failure'), + ), + _descriptor.MethodDescriptor( + name='UploadCallConversions', + full_name='google.ads.googleads.v4.services.ConversionUploadService.UploadCallConversions', + index=1, + containing_service=None, + input_type=_UPLOADCALLCONVERSIONSREQUEST, + output_type=_UPLOADCALLCONVERSIONSRESPONSE, + serialized_options=_b('\202\323\344\223\0028\"3/v4/customers/{customer_id=*}:uploadCallConversions:\001*\332A\'customer_id,conversions,partial_failure'), + ), +]) +_sym_db.RegisterServiceDescriptor(_CONVERSIONUPLOADSERVICE) + +DESCRIPTOR.services_by_name['ConversionUploadService'] = _CONVERSIONUPLOADSERVICE + +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v4/proto/services/conversion_upload_service_pb2_grpc.py b/google/ads/google_ads/v4/proto/services/conversion_upload_service_pb2_grpc.py new file mode 100644 index 000000000..be36ae393 --- /dev/null +++ b/google/ads/google_ads/v4/proto/services/conversion_upload_service_pb2_grpc.py @@ -0,0 +1,63 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +import grpc + +from google.ads.google_ads.v4.proto.services import conversion_upload_service_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_conversion__upload__service__pb2 + + +class ConversionUploadServiceStub(object): + """Service to upload conversions. + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.UploadClickConversions = channel.unary_unary( + '/google.ads.googleads.v4.services.ConversionUploadService/UploadClickConversions', + request_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_conversion__upload__service__pb2.UploadClickConversionsRequest.SerializeToString, + response_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_conversion__upload__service__pb2.UploadClickConversionsResponse.FromString, + ) + self.UploadCallConversions = channel.unary_unary( + '/google.ads.googleads.v4.services.ConversionUploadService/UploadCallConversions', + request_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_conversion__upload__service__pb2.UploadCallConversionsRequest.SerializeToString, + response_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_conversion__upload__service__pb2.UploadCallConversionsResponse.FromString, + ) + + +class ConversionUploadServiceServicer(object): + """Service to upload conversions. + """ + + def UploadClickConversions(self, request, context): + """Processes the given click conversions. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def UploadCallConversions(self, request, context): + """Processes the given call conversions. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_ConversionUploadServiceServicer_to_server(servicer, server): + rpc_method_handlers = { + 'UploadClickConversions': grpc.unary_unary_rpc_method_handler( + servicer.UploadClickConversions, + request_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_conversion__upload__service__pb2.UploadClickConversionsRequest.FromString, + response_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_conversion__upload__service__pb2.UploadClickConversionsResponse.SerializeToString, + ), + 'UploadCallConversions': grpc.unary_unary_rpc_method_handler( + servicer.UploadCallConversions, + request_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_conversion__upload__service__pb2.UploadCallConversionsRequest.FromString, + response_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_conversion__upload__service__pb2.UploadCallConversionsResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'google.ads.googleads.v4.services.ConversionUploadService', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) diff --git a/google/ads/google_ads/v4/proto/services/currency_constant_service_pb2.py b/google/ads/google_ads/v4/proto/services/currency_constant_service_pb2.py new file mode 100644 index 000000000..b1bdeb7bb --- /dev/null +++ b/google/ads/google_ads/v4/proto/services/currency_constant_service_pb2.py @@ -0,0 +1,111 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/services/currency_constant_service.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.ads.google_ads.v4.proto.resources import currency_constant_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_currency__constant__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 +from google.api import client_pb2 as google_dot_api_dot_client__pb2 +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/services/currency_constant_service.proto', + package='google.ads.googleads.v4.services', + syntax='proto3', + serialized_options=_b('\n$com.google.ads.googleads.v4.servicesB\034CurrencyConstantServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V4.Services\312\002 Google\\Ads\\GoogleAds\\V4\\Services\352\002$Google::Ads::GoogleAds::V4::Services'), + serialized_pb=_b('\nFgoogle/ads/googleads_v4/proto/services/currency_constant_service.proto\x12 google.ads.googleads.v4.services\x1a?google/ads/googleads_v4/proto/resources/currency_constant.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"f\n\x1aGetCurrencyConstantRequest\x12H\n\rresource_name\x18\x01 \x01(\tB1\xe0\x41\x02\xfa\x41+\n)googleads.googleapis.com/CurrencyConstant2\x82\x02\n\x17\x43urrencyConstantService\x12\xc9\x01\n\x13GetCurrencyConstant\x12<.google.ads.googleads.v4.services.GetCurrencyConstantRequest\x1a\x33.google.ads.googleads.v4.resources.CurrencyConstant\"?\x82\xd3\xe4\x93\x02)\x12\'/v4/{resource_name=currencyConstants/*}\xda\x41\rresource_name\x1a\x1b\xca\x41\x18googleads.googleapis.comB\x83\x02\n$com.google.ads.googleads.v4.servicesB\x1c\x43urrencyConstantServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V4.Services\xca\x02 Google\\Ads\\GoogleAds\\V4\\Services\xea\x02$Google::Ads::GoogleAds::V4::Servicesb\x06proto3') + , + dependencies=[google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_currency__constant__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_api_dot_client__pb2.DESCRIPTOR,google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_api_dot_resource__pb2.DESCRIPTOR,]) + + + + +_GETCURRENCYCONSTANTREQUEST = _descriptor.Descriptor( + name='GetCurrencyConstantRequest', + full_name='google.ads.googleads.v4.services.GetCurrencyConstantRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.services.GetCurrencyConstantRequest.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002\372A+\n)googleads.googleapis.com/CurrencyConstant'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=288, + serialized_end=390, +) + +DESCRIPTOR.message_types_by_name['GetCurrencyConstantRequest'] = _GETCURRENCYCONSTANTREQUEST +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +GetCurrencyConstantRequest = _reflection.GeneratedProtocolMessageType('GetCurrencyConstantRequest', (_message.Message,), dict( + DESCRIPTOR = _GETCURRENCYCONSTANTREQUEST, + __module__ = 'google.ads.googleads_v4.proto.services.currency_constant_service_pb2' + , + __doc__ = """Request message for + [CurrencyConstantService.GetCurrencyConstant][google.ads.googleads.v4.services.CurrencyConstantService.GetCurrencyConstant]. + + + Attributes: + resource_name: + Required. Resource name of the currency constant to fetch. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.GetCurrencyConstantRequest) + )) +_sym_db.RegisterMessage(GetCurrencyConstantRequest) + + +DESCRIPTOR._options = None +_GETCURRENCYCONSTANTREQUEST.fields_by_name['resource_name']._options = None + +_CURRENCYCONSTANTSERVICE = _descriptor.ServiceDescriptor( + name='CurrencyConstantService', + full_name='google.ads.googleads.v4.services.CurrencyConstantService', + file=DESCRIPTOR, + index=0, + serialized_options=_b('\312A\030googleads.googleapis.com'), + serialized_start=393, + serialized_end=651, + methods=[ + _descriptor.MethodDescriptor( + name='GetCurrencyConstant', + full_name='google.ads.googleads.v4.services.CurrencyConstantService.GetCurrencyConstant', + index=0, + containing_service=None, + input_type=_GETCURRENCYCONSTANTREQUEST, + output_type=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_currency__constant__pb2._CURRENCYCONSTANT, + serialized_options=_b('\202\323\344\223\002)\022\'/v4/{resource_name=currencyConstants/*}\332A\rresource_name'), + ), +]) +_sym_db.RegisterServiceDescriptor(_CURRENCYCONSTANTSERVICE) + +DESCRIPTOR.services_by_name['CurrencyConstantService'] = _CURRENCYCONSTANTSERVICE + +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v4/proto/services/currency_constant_service_pb2_grpc.py b/google/ads/google_ads/v4/proto/services/currency_constant_service_pb2_grpc.py new file mode 100644 index 000000000..b93e38eaf --- /dev/null +++ b/google/ads/google_ads/v4/proto/services/currency_constant_service_pb2_grpc.py @@ -0,0 +1,47 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +import grpc + +from google.ads.google_ads.v4.proto.resources import currency_constant_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_currency__constant__pb2 +from google.ads.google_ads.v4.proto.services import currency_constant_service_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_currency__constant__service__pb2 + + +class CurrencyConstantServiceStub(object): + """Service to fetch currency constants. + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.GetCurrencyConstant = channel.unary_unary( + '/google.ads.googleads.v4.services.CurrencyConstantService/GetCurrencyConstant', + request_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_currency__constant__service__pb2.GetCurrencyConstantRequest.SerializeToString, + response_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_currency__constant__pb2.CurrencyConstant.FromString, + ) + + +class CurrencyConstantServiceServicer(object): + """Service to fetch currency constants. + """ + + def GetCurrencyConstant(self, request, context): + """Returns the requested currency constant. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_CurrencyConstantServiceServicer_to_server(servicer, server): + rpc_method_handlers = { + 'GetCurrencyConstant': grpc.unary_unary_rpc_method_handler( + servicer.GetCurrencyConstant, + request_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_currency__constant__service__pb2.GetCurrencyConstantRequest.FromString, + response_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_currency__constant__pb2.CurrencyConstant.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'google.ads.googleads.v4.services.CurrencyConstantService', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) diff --git a/google/ads/google_ads/v4/proto/services/custom_interest_service_pb2.py b/google/ads/google_ads/v4/proto/services/custom_interest_service_pb2.py new file mode 100644 index 000000000..1fc668135 --- /dev/null +++ b/google/ads/google_ads/v4/proto/services/custom_interest_service_pb2.py @@ -0,0 +1,370 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/services/custom_interest_service.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.ads.google_ads.v4.proto.resources import custom_interest_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_custom__interest__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 +from google.api import client_pb2 as google_dot_api_dot_client__pb2 +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 +from google.protobuf import field_mask_pb2 as google_dot_protobuf_dot_field__mask__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/services/custom_interest_service.proto', + package='google.ads.googleads.v4.services', + syntax='proto3', + serialized_options=_b('\n$com.google.ads.googleads.v4.servicesB\032CustomInterestServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V4.Services\312\002 Google\\Ads\\GoogleAds\\V4\\Services\352\002$Google::Ads::GoogleAds::V4::Services'), + serialized_pb=_b('\nDgoogle/ads/googleads_v4/proto/services/custom_interest_service.proto\x12 google.ads.googleads.v4.services\x1a=google/ads/googleads_v4/proto/resources/custom_interest.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/protobuf/field_mask.proto\"b\n\x18GetCustomInterestRequest\x12\x46\n\rresource_name\x18\x01 \x01(\tB/\xe0\x41\x02\xfa\x41)\n\'googleads.googleapis.com/CustomInterest\"\xa3\x01\n\x1cMutateCustomInterestsRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12R\n\noperations\x18\x02 \x03(\x0b\x32\x39.google.ads.googleads.v4.services.CustomInterestOperationB\x03\xe0\x41\x02\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\"\xe1\x01\n\x17\x43ustomInterestOperation\x12/\n\x0bupdate_mask\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12\x43\n\x06\x63reate\x18\x01 \x01(\x0b\x32\x31.google.ads.googleads.v4.resources.CustomInterestH\x00\x12\x43\n\x06update\x18\x02 \x01(\x0b\x32\x31.google.ads.googleads.v4.resources.CustomInterestH\x00\x42\x0b\n\toperation\"n\n\x1dMutateCustomInterestsResponse\x12M\n\x07results\x18\x02 \x03(\x0b\x32<.google.ads.googleads.v4.services.MutateCustomInterestResult\"3\n\x1aMutateCustomInterestResult\x12\x15\n\rresource_name\x18\x01 \x01(\t2\xf9\x03\n\x15\x43ustomInterestService\x12\xcd\x01\n\x11GetCustomInterest\x12:.google.ads.googleads.v4.services.GetCustomInterestRequest\x1a\x31.google.ads.googleads.v4.resources.CustomInterest\"I\x82\xd3\xe4\x93\x02\x33\x12\x31/v4/{resource_name=customers/*/customInterests/*}\xda\x41\rresource_name\x12\xf2\x01\n\x15MutateCustomInterests\x12>.google.ads.googleads.v4.services.MutateCustomInterestsRequest\x1a?.google.ads.googleads.v4.services.MutateCustomInterestsResponse\"X\x82\xd3\xe4\x93\x02\x39\"4/v4/customers/{customer_id=*}/customInterests:mutate:\x01*\xda\x41\x16\x63ustomer_id,operations\x1a\x1b\xca\x41\x18googleads.googleapis.comB\x81\x02\n$com.google.ads.googleads.v4.servicesB\x1a\x43ustomInterestServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V4.Services\xca\x02 Google\\Ads\\GoogleAds\\V4\\Services\xea\x02$Google::Ads::GoogleAds::V4::Servicesb\x06proto3') + , + dependencies=[google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_custom__interest__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_api_dot_client__pb2.DESCRIPTOR,google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_api_dot_resource__pb2.DESCRIPTOR,google_dot_protobuf_dot_field__mask__pb2.DESCRIPTOR,]) + + + + +_GETCUSTOMINTERESTREQUEST = _descriptor.Descriptor( + name='GetCustomInterestRequest', + full_name='google.ads.googleads.v4.services.GetCustomInterestRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.services.GetCustomInterestRequest.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002\372A)\n\'googleads.googleapis.com/CustomInterest'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=318, + serialized_end=416, +) + + +_MUTATECUSTOMINTERESTSREQUEST = _descriptor.Descriptor( + name='MutateCustomInterestsRequest', + full_name='google.ads.googleads.v4.services.MutateCustomInterestsRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='customer_id', full_name='google.ads.googleads.v4.services.MutateCustomInterestsRequest.customer_id', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='operations', full_name='google.ads.googleads.v4.services.MutateCustomInterestsRequest.operations', index=1, + number=2, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='validate_only', full_name='google.ads.googleads.v4.services.MutateCustomInterestsRequest.validate_only', index=2, + number=4, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=419, + serialized_end=582, +) + + +_CUSTOMINTERESTOPERATION = _descriptor.Descriptor( + name='CustomInterestOperation', + full_name='google.ads.googleads.v4.services.CustomInterestOperation', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='update_mask', full_name='google.ads.googleads.v4.services.CustomInterestOperation.update_mask', index=0, + number=4, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='create', full_name='google.ads.googleads.v4.services.CustomInterestOperation.create', index=1, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='update', full_name='google.ads.googleads.v4.services.CustomInterestOperation.update', index=2, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name='operation', full_name='google.ads.googleads.v4.services.CustomInterestOperation.operation', + index=0, containing_type=None, fields=[]), + ], + serialized_start=585, + serialized_end=810, +) + + +_MUTATECUSTOMINTERESTSRESPONSE = _descriptor.Descriptor( + name='MutateCustomInterestsResponse', + full_name='google.ads.googleads.v4.services.MutateCustomInterestsResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='results', full_name='google.ads.googleads.v4.services.MutateCustomInterestsResponse.results', index=0, + number=2, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=812, + serialized_end=922, +) + + +_MUTATECUSTOMINTERESTRESULT = _descriptor.Descriptor( + name='MutateCustomInterestResult', + full_name='google.ads.googleads.v4.services.MutateCustomInterestResult', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.services.MutateCustomInterestResult.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=924, + serialized_end=975, +) + +_MUTATECUSTOMINTERESTSREQUEST.fields_by_name['operations'].message_type = _CUSTOMINTERESTOPERATION +_CUSTOMINTERESTOPERATION.fields_by_name['update_mask'].message_type = google_dot_protobuf_dot_field__mask__pb2._FIELDMASK +_CUSTOMINTERESTOPERATION.fields_by_name['create'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_custom__interest__pb2._CUSTOMINTEREST +_CUSTOMINTERESTOPERATION.fields_by_name['update'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_custom__interest__pb2._CUSTOMINTEREST +_CUSTOMINTERESTOPERATION.oneofs_by_name['operation'].fields.append( + _CUSTOMINTERESTOPERATION.fields_by_name['create']) +_CUSTOMINTERESTOPERATION.fields_by_name['create'].containing_oneof = _CUSTOMINTERESTOPERATION.oneofs_by_name['operation'] +_CUSTOMINTERESTOPERATION.oneofs_by_name['operation'].fields.append( + _CUSTOMINTERESTOPERATION.fields_by_name['update']) +_CUSTOMINTERESTOPERATION.fields_by_name['update'].containing_oneof = _CUSTOMINTERESTOPERATION.oneofs_by_name['operation'] +_MUTATECUSTOMINTERESTSRESPONSE.fields_by_name['results'].message_type = _MUTATECUSTOMINTERESTRESULT +DESCRIPTOR.message_types_by_name['GetCustomInterestRequest'] = _GETCUSTOMINTERESTREQUEST +DESCRIPTOR.message_types_by_name['MutateCustomInterestsRequest'] = _MUTATECUSTOMINTERESTSREQUEST +DESCRIPTOR.message_types_by_name['CustomInterestOperation'] = _CUSTOMINTERESTOPERATION +DESCRIPTOR.message_types_by_name['MutateCustomInterestsResponse'] = _MUTATECUSTOMINTERESTSRESPONSE +DESCRIPTOR.message_types_by_name['MutateCustomInterestResult'] = _MUTATECUSTOMINTERESTRESULT +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +GetCustomInterestRequest = _reflection.GeneratedProtocolMessageType('GetCustomInterestRequest', (_message.Message,), dict( + DESCRIPTOR = _GETCUSTOMINTERESTREQUEST, + __module__ = 'google.ads.googleads_v4.proto.services.custom_interest_service_pb2' + , + __doc__ = """Request message for + [CustomInterestService.GetCustomInterest][google.ads.googleads.v4.services.CustomInterestService.GetCustomInterest]. + + + Attributes: + resource_name: + Required. The resource name of the custom interest to fetch. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.GetCustomInterestRequest) + )) +_sym_db.RegisterMessage(GetCustomInterestRequest) + +MutateCustomInterestsRequest = _reflection.GeneratedProtocolMessageType('MutateCustomInterestsRequest', (_message.Message,), dict( + DESCRIPTOR = _MUTATECUSTOMINTERESTSREQUEST, + __module__ = 'google.ads.googleads_v4.proto.services.custom_interest_service_pb2' + , + __doc__ = """Request message for + [CustomInterestService.MutateCustomInterests][google.ads.googleads.v4.services.CustomInterestService.MutateCustomInterests]. + + + Attributes: + customer_id: + Required. The ID of the customer whose custom interests are + being modified. + operations: + Required. The list of operations to perform on individual + custom interests. + validate_only: + If true, the request is validated but not executed. Only + errors are returned, not results. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.MutateCustomInterestsRequest) + )) +_sym_db.RegisterMessage(MutateCustomInterestsRequest) + +CustomInterestOperation = _reflection.GeneratedProtocolMessageType('CustomInterestOperation', (_message.Message,), dict( + DESCRIPTOR = _CUSTOMINTERESTOPERATION, + __module__ = 'google.ads.googleads_v4.proto.services.custom_interest_service_pb2' + , + __doc__ = """A single operation (create, update) on a custom interest. + + + Attributes: + update_mask: + FieldMask that determines which resource fields are modified + in an update. + operation: + The mutate operation. + create: + Create operation: No resource name is expected for the new + custom interest. + update: + Update operation: The custom interest is expected to have a + valid resource name. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.CustomInterestOperation) + )) +_sym_db.RegisterMessage(CustomInterestOperation) + +MutateCustomInterestsResponse = _reflection.GeneratedProtocolMessageType('MutateCustomInterestsResponse', (_message.Message,), dict( + DESCRIPTOR = _MUTATECUSTOMINTERESTSRESPONSE, + __module__ = 'google.ads.googleads_v4.proto.services.custom_interest_service_pb2' + , + __doc__ = """Response message for custom interest mutate. + + + Attributes: + results: + All results for the mutate. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.MutateCustomInterestsResponse) + )) +_sym_db.RegisterMessage(MutateCustomInterestsResponse) + +MutateCustomInterestResult = _reflection.GeneratedProtocolMessageType('MutateCustomInterestResult', (_message.Message,), dict( + DESCRIPTOR = _MUTATECUSTOMINTERESTRESULT, + __module__ = 'google.ads.googleads_v4.proto.services.custom_interest_service_pb2' + , + __doc__ = """The result for the custom interest mutate. + + + Attributes: + resource_name: + Returned for successful operations. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.MutateCustomInterestResult) + )) +_sym_db.RegisterMessage(MutateCustomInterestResult) + + +DESCRIPTOR._options = None +_GETCUSTOMINTERESTREQUEST.fields_by_name['resource_name']._options = None +_MUTATECUSTOMINTERESTSREQUEST.fields_by_name['customer_id']._options = None +_MUTATECUSTOMINTERESTSREQUEST.fields_by_name['operations']._options = None + +_CUSTOMINTERESTSERVICE = _descriptor.ServiceDescriptor( + name='CustomInterestService', + full_name='google.ads.googleads.v4.services.CustomInterestService', + file=DESCRIPTOR, + index=0, + serialized_options=_b('\312A\030googleads.googleapis.com'), + serialized_start=978, + serialized_end=1483, + methods=[ + _descriptor.MethodDescriptor( + name='GetCustomInterest', + full_name='google.ads.googleads.v4.services.CustomInterestService.GetCustomInterest', + index=0, + containing_service=None, + input_type=_GETCUSTOMINTERESTREQUEST, + output_type=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_custom__interest__pb2._CUSTOMINTEREST, + serialized_options=_b('\202\323\344\223\0023\0221/v4/{resource_name=customers/*/customInterests/*}\332A\rresource_name'), + ), + _descriptor.MethodDescriptor( + name='MutateCustomInterests', + full_name='google.ads.googleads.v4.services.CustomInterestService.MutateCustomInterests', + index=1, + containing_service=None, + input_type=_MUTATECUSTOMINTERESTSREQUEST, + output_type=_MUTATECUSTOMINTERESTSRESPONSE, + serialized_options=_b('\202\323\344\223\0029\"4/v4/customers/{customer_id=*}/customInterests:mutate:\001*\332A\026customer_id,operations'), + ), +]) +_sym_db.RegisterServiceDescriptor(_CUSTOMINTERESTSERVICE) + +DESCRIPTOR.services_by_name['CustomInterestService'] = _CUSTOMINTERESTSERVICE + +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v4/proto/services/custom_interest_service_pb2_grpc.py b/google/ads/google_ads/v4/proto/services/custom_interest_service_pb2_grpc.py new file mode 100644 index 000000000..4c994db3d --- /dev/null +++ b/google/ads/google_ads/v4/proto/services/custom_interest_service_pb2_grpc.py @@ -0,0 +1,68 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +import grpc + +from google.ads.google_ads.v4.proto.resources import custom_interest_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_custom__interest__pb2 +from google.ads.google_ads.v4.proto.services import custom_interest_service_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_custom__interest__service__pb2 + + +class CustomInterestServiceStub(object): + """Proto file describing the Custom Interest service. + + Service to manage custom interests. + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.GetCustomInterest = channel.unary_unary( + '/google.ads.googleads.v4.services.CustomInterestService/GetCustomInterest', + request_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_custom__interest__service__pb2.GetCustomInterestRequest.SerializeToString, + response_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_custom__interest__pb2.CustomInterest.FromString, + ) + self.MutateCustomInterests = channel.unary_unary( + '/google.ads.googleads.v4.services.CustomInterestService/MutateCustomInterests', + request_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_custom__interest__service__pb2.MutateCustomInterestsRequest.SerializeToString, + response_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_custom__interest__service__pb2.MutateCustomInterestsResponse.FromString, + ) + + +class CustomInterestServiceServicer(object): + """Proto file describing the Custom Interest service. + + Service to manage custom interests. + """ + + def GetCustomInterest(self, request, context): + """Returns the requested custom interest in full detail. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def MutateCustomInterests(self, request, context): + """Creates or updates custom interests. Operation statuses are returned. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_CustomInterestServiceServicer_to_server(servicer, server): + rpc_method_handlers = { + 'GetCustomInterest': grpc.unary_unary_rpc_method_handler( + servicer.GetCustomInterest, + request_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_custom__interest__service__pb2.GetCustomInterestRequest.FromString, + response_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_custom__interest__pb2.CustomInterest.SerializeToString, + ), + 'MutateCustomInterests': grpc.unary_unary_rpc_method_handler( + servicer.MutateCustomInterests, + request_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_custom__interest__service__pb2.MutateCustomInterestsRequest.FromString, + response_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_custom__interest__service__pb2.MutateCustomInterestsResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'google.ads.googleads.v4.services.CustomInterestService', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) diff --git a/google/ads/google_ads/v4/proto/services/customer_client_link_service_pb2.py b/google/ads/google_ads/v4/proto/services/customer_client_link_service_pb2.py new file mode 100644 index 000000000..8b15491e6 --- /dev/null +++ b/google/ads/google_ads/v4/proto/services/customer_client_link_service_pb2.py @@ -0,0 +1,362 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/services/customer_client_link_service.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.ads.google_ads.v4.proto.resources import customer_client_link_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_customer__client__link__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 +from google.api import client_pb2 as google_dot_api_dot_client__pb2 +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 +from google.protobuf import field_mask_pb2 as google_dot_protobuf_dot_field__mask__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/services/customer_client_link_service.proto', + package='google.ads.googleads.v4.services', + syntax='proto3', + serialized_options=_b('\n$com.google.ads.googleads.v4.servicesB\036CustomerClientLinkServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V4.Services\312\002 Google\\Ads\\GoogleAds\\V4\\Services\352\002$Google::Ads::GoogleAds::V4::Services'), + serialized_pb=_b('\nIgoogle/ads/googleads_v4/proto/services/customer_client_link_service.proto\x12 google.ads.googleads.v4.services\x1a\x42google/ads/googleads_v4/proto/resources/customer_client_link.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/protobuf/field_mask.proto\"j\n\x1cGetCustomerClientLinkRequest\x12J\n\rresource_name\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+googleads.googleapis.com/CustomerClientLink\"\x92\x01\n\x1fMutateCustomerClientLinkRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12U\n\toperation\x18\x02 \x01(\x0b\x32=.google.ads.googleads.v4.services.CustomerClientLinkOperationB\x03\xe0\x41\x02\"\xed\x01\n\x1b\x43ustomerClientLinkOperation\x12/\n\x0bupdate_mask\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12G\n\x06\x63reate\x18\x01 \x01(\x0b\x32\x35.google.ads.googleads.v4.resources.CustomerClientLinkH\x00\x12G\n\x06update\x18\x02 \x01(\x0b\x32\x35.google.ads.googleads.v4.resources.CustomerClientLinkH\x00\x42\x0b\n\toperation\"t\n MutateCustomerClientLinkResponse\x12P\n\x06result\x18\x01 \x01(\x0b\x32@.google.ads.googleads.v4.services.MutateCustomerClientLinkResult\"7\n\x1eMutateCustomerClientLinkResult\x12\x15\n\rresource_name\x18\x01 \x01(\t2\x99\x04\n\x19\x43ustomerClientLinkService\x12\xdd\x01\n\x15GetCustomerClientLink\x12>.google.ads.googleads.v4.services.GetCustomerClientLinkRequest\x1a\x35.google.ads.googleads.v4.resources.CustomerClientLink\"M\x82\xd3\xe4\x93\x02\x37\x12\x35/v4/{resource_name=customers/*/customerClientLinks/*}\xda\x41\rresource_name\x12\xfe\x01\n\x18MutateCustomerClientLink\x12\x41.google.ads.googleads.v4.services.MutateCustomerClientLinkRequest\x1a\x42.google.ads.googleads.v4.services.MutateCustomerClientLinkResponse\"[\x82\xd3\xe4\x93\x02=\"8/v4/customers/{customer_id=*}/customerClientLinks:mutate:\x01*\xda\x41\x15\x63ustomer_id,operation\x1a\x1b\xca\x41\x18googleads.googleapis.comB\x85\x02\n$com.google.ads.googleads.v4.servicesB\x1e\x43ustomerClientLinkServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V4.Services\xca\x02 Google\\Ads\\GoogleAds\\V4\\Services\xea\x02$Google::Ads::GoogleAds::V4::Servicesb\x06proto3') + , + dependencies=[google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_customer__client__link__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_api_dot_client__pb2.DESCRIPTOR,google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_api_dot_resource__pb2.DESCRIPTOR,google_dot_protobuf_dot_field__mask__pb2.DESCRIPTOR,]) + + + + +_GETCUSTOMERCLIENTLINKREQUEST = _descriptor.Descriptor( + name='GetCustomerClientLinkRequest', + full_name='google.ads.googleads.v4.services.GetCustomerClientLinkRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.services.GetCustomerClientLinkRequest.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002\372A-\n+googleads.googleapis.com/CustomerClientLink'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=328, + serialized_end=434, +) + + +_MUTATECUSTOMERCLIENTLINKREQUEST = _descriptor.Descriptor( + name='MutateCustomerClientLinkRequest', + full_name='google.ads.googleads.v4.services.MutateCustomerClientLinkRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='customer_id', full_name='google.ads.googleads.v4.services.MutateCustomerClientLinkRequest.customer_id', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='operation', full_name='google.ads.googleads.v4.services.MutateCustomerClientLinkRequest.operation', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=437, + serialized_end=583, +) + + +_CUSTOMERCLIENTLINKOPERATION = _descriptor.Descriptor( + name='CustomerClientLinkOperation', + full_name='google.ads.googleads.v4.services.CustomerClientLinkOperation', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='update_mask', full_name='google.ads.googleads.v4.services.CustomerClientLinkOperation.update_mask', index=0, + number=4, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='create', full_name='google.ads.googleads.v4.services.CustomerClientLinkOperation.create', index=1, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='update', full_name='google.ads.googleads.v4.services.CustomerClientLinkOperation.update', index=2, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name='operation', full_name='google.ads.googleads.v4.services.CustomerClientLinkOperation.operation', + index=0, containing_type=None, fields=[]), + ], + serialized_start=586, + serialized_end=823, +) + + +_MUTATECUSTOMERCLIENTLINKRESPONSE = _descriptor.Descriptor( + name='MutateCustomerClientLinkResponse', + full_name='google.ads.googleads.v4.services.MutateCustomerClientLinkResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='result', full_name='google.ads.googleads.v4.services.MutateCustomerClientLinkResponse.result', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=825, + serialized_end=941, +) + + +_MUTATECUSTOMERCLIENTLINKRESULT = _descriptor.Descriptor( + name='MutateCustomerClientLinkResult', + full_name='google.ads.googleads.v4.services.MutateCustomerClientLinkResult', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.services.MutateCustomerClientLinkResult.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=943, + serialized_end=998, +) + +_MUTATECUSTOMERCLIENTLINKREQUEST.fields_by_name['operation'].message_type = _CUSTOMERCLIENTLINKOPERATION +_CUSTOMERCLIENTLINKOPERATION.fields_by_name['update_mask'].message_type = google_dot_protobuf_dot_field__mask__pb2._FIELDMASK +_CUSTOMERCLIENTLINKOPERATION.fields_by_name['create'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_customer__client__link__pb2._CUSTOMERCLIENTLINK +_CUSTOMERCLIENTLINKOPERATION.fields_by_name['update'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_customer__client__link__pb2._CUSTOMERCLIENTLINK +_CUSTOMERCLIENTLINKOPERATION.oneofs_by_name['operation'].fields.append( + _CUSTOMERCLIENTLINKOPERATION.fields_by_name['create']) +_CUSTOMERCLIENTLINKOPERATION.fields_by_name['create'].containing_oneof = _CUSTOMERCLIENTLINKOPERATION.oneofs_by_name['operation'] +_CUSTOMERCLIENTLINKOPERATION.oneofs_by_name['operation'].fields.append( + _CUSTOMERCLIENTLINKOPERATION.fields_by_name['update']) +_CUSTOMERCLIENTLINKOPERATION.fields_by_name['update'].containing_oneof = _CUSTOMERCLIENTLINKOPERATION.oneofs_by_name['operation'] +_MUTATECUSTOMERCLIENTLINKRESPONSE.fields_by_name['result'].message_type = _MUTATECUSTOMERCLIENTLINKRESULT +DESCRIPTOR.message_types_by_name['GetCustomerClientLinkRequest'] = _GETCUSTOMERCLIENTLINKREQUEST +DESCRIPTOR.message_types_by_name['MutateCustomerClientLinkRequest'] = _MUTATECUSTOMERCLIENTLINKREQUEST +DESCRIPTOR.message_types_by_name['CustomerClientLinkOperation'] = _CUSTOMERCLIENTLINKOPERATION +DESCRIPTOR.message_types_by_name['MutateCustomerClientLinkResponse'] = _MUTATECUSTOMERCLIENTLINKRESPONSE +DESCRIPTOR.message_types_by_name['MutateCustomerClientLinkResult'] = _MUTATECUSTOMERCLIENTLINKRESULT +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +GetCustomerClientLinkRequest = _reflection.GeneratedProtocolMessageType('GetCustomerClientLinkRequest', (_message.Message,), dict( + DESCRIPTOR = _GETCUSTOMERCLIENTLINKREQUEST, + __module__ = 'google.ads.googleads_v4.proto.services.customer_client_link_service_pb2' + , + __doc__ = """Request message for + [CustomerClientLinkService.GetCustomerClientLink][google.ads.googleads.v4.services.CustomerClientLinkService.GetCustomerClientLink]. + + + Attributes: + resource_name: + Required. The resource name of the customer client link to + fetch. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.GetCustomerClientLinkRequest) + )) +_sym_db.RegisterMessage(GetCustomerClientLinkRequest) + +MutateCustomerClientLinkRequest = _reflection.GeneratedProtocolMessageType('MutateCustomerClientLinkRequest', (_message.Message,), dict( + DESCRIPTOR = _MUTATECUSTOMERCLIENTLINKREQUEST, + __module__ = 'google.ads.googleads_v4.proto.services.customer_client_link_service_pb2' + , + __doc__ = """Request message for + [CustomerClientLinkService.MutateCustomerClientLink][google.ads.googleads.v4.services.CustomerClientLinkService.MutateCustomerClientLink]. + + + Attributes: + customer_id: + Required. The ID of the customer whose customer link are being + modified. + operation: + Required. The operation to perform on the individual + CustomerClientLink. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.MutateCustomerClientLinkRequest) + )) +_sym_db.RegisterMessage(MutateCustomerClientLinkRequest) + +CustomerClientLinkOperation = _reflection.GeneratedProtocolMessageType('CustomerClientLinkOperation', (_message.Message,), dict( + DESCRIPTOR = _CUSTOMERCLIENTLINKOPERATION, + __module__ = 'google.ads.googleads_v4.proto.services.customer_client_link_service_pb2' + , + __doc__ = """A single operation (create, update) on a CustomerClientLink. + + + Attributes: + update_mask: + FieldMask that determines which resource fields are modified + in an update. + operation: + The mutate operation. + create: + Create operation: No resource name is expected for the new + link. + update: + Update operation: The link is expected to have a valid + resource name. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.CustomerClientLinkOperation) + )) +_sym_db.RegisterMessage(CustomerClientLinkOperation) + +MutateCustomerClientLinkResponse = _reflection.GeneratedProtocolMessageType('MutateCustomerClientLinkResponse', (_message.Message,), dict( + DESCRIPTOR = _MUTATECUSTOMERCLIENTLINKRESPONSE, + __module__ = 'google.ads.googleads_v4.proto.services.customer_client_link_service_pb2' + , + __doc__ = """Response message for a CustomerClientLink mutate. + + + Attributes: + result: + A result that identifies the resource affected by the mutate + request. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.MutateCustomerClientLinkResponse) + )) +_sym_db.RegisterMessage(MutateCustomerClientLinkResponse) + +MutateCustomerClientLinkResult = _reflection.GeneratedProtocolMessageType('MutateCustomerClientLinkResult', (_message.Message,), dict( + DESCRIPTOR = _MUTATECUSTOMERCLIENTLINKRESULT, + __module__ = 'google.ads.googleads_v4.proto.services.customer_client_link_service_pb2' + , + __doc__ = """The result for a single customer client link mutate. + + + Attributes: + resource_name: + Returned for successful operations. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.MutateCustomerClientLinkResult) + )) +_sym_db.RegisterMessage(MutateCustomerClientLinkResult) + + +DESCRIPTOR._options = None +_GETCUSTOMERCLIENTLINKREQUEST.fields_by_name['resource_name']._options = None +_MUTATECUSTOMERCLIENTLINKREQUEST.fields_by_name['customer_id']._options = None +_MUTATECUSTOMERCLIENTLINKREQUEST.fields_by_name['operation']._options = None + +_CUSTOMERCLIENTLINKSERVICE = _descriptor.ServiceDescriptor( + name='CustomerClientLinkService', + full_name='google.ads.googleads.v4.services.CustomerClientLinkService', + file=DESCRIPTOR, + index=0, + serialized_options=_b('\312A\030googleads.googleapis.com'), + serialized_start=1001, + serialized_end=1538, + methods=[ + _descriptor.MethodDescriptor( + name='GetCustomerClientLink', + full_name='google.ads.googleads.v4.services.CustomerClientLinkService.GetCustomerClientLink', + index=0, + containing_service=None, + input_type=_GETCUSTOMERCLIENTLINKREQUEST, + output_type=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_customer__client__link__pb2._CUSTOMERCLIENTLINK, + serialized_options=_b('\202\323\344\223\0027\0225/v4/{resource_name=customers/*/customerClientLinks/*}\332A\rresource_name'), + ), + _descriptor.MethodDescriptor( + name='MutateCustomerClientLink', + full_name='google.ads.googleads.v4.services.CustomerClientLinkService.MutateCustomerClientLink', + index=1, + containing_service=None, + input_type=_MUTATECUSTOMERCLIENTLINKREQUEST, + output_type=_MUTATECUSTOMERCLIENTLINKRESPONSE, + serialized_options=_b('\202\323\344\223\002=\"8/v4/customers/{customer_id=*}/customerClientLinks:mutate:\001*\332A\025customer_id,operation'), + ), +]) +_sym_db.RegisterServiceDescriptor(_CUSTOMERCLIENTLINKSERVICE) + +DESCRIPTOR.services_by_name['CustomerClientLinkService'] = _CUSTOMERCLIENTLINKSERVICE + +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v4/proto/services/customer_client_link_service_pb2_grpc.py b/google/ads/google_ads/v4/proto/services/customer_client_link_service_pb2_grpc.py new file mode 100644 index 000000000..938fa57b0 --- /dev/null +++ b/google/ads/google_ads/v4/proto/services/customer_client_link_service_pb2_grpc.py @@ -0,0 +1,64 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +import grpc + +from google.ads.google_ads.v4.proto.resources import customer_client_link_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_customer__client__link__pb2 +from google.ads.google_ads.v4.proto.services import customer_client_link_service_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_customer__client__link__service__pb2 + + +class CustomerClientLinkServiceStub(object): + """Service to manage customer client links. + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.GetCustomerClientLink = channel.unary_unary( + '/google.ads.googleads.v4.services.CustomerClientLinkService/GetCustomerClientLink', + request_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_customer__client__link__service__pb2.GetCustomerClientLinkRequest.SerializeToString, + response_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_customer__client__link__pb2.CustomerClientLink.FromString, + ) + self.MutateCustomerClientLink = channel.unary_unary( + '/google.ads.googleads.v4.services.CustomerClientLinkService/MutateCustomerClientLink', + request_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_customer__client__link__service__pb2.MutateCustomerClientLinkRequest.SerializeToString, + response_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_customer__client__link__service__pb2.MutateCustomerClientLinkResponse.FromString, + ) + + +class CustomerClientLinkServiceServicer(object): + """Service to manage customer client links. + """ + + def GetCustomerClientLink(self, request, context): + """Returns the requested CustomerClientLink in full detail. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def MutateCustomerClientLink(self, request, context): + """Creates or updates a customer client link. Operation statuses are returned. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_CustomerClientLinkServiceServicer_to_server(servicer, server): + rpc_method_handlers = { + 'GetCustomerClientLink': grpc.unary_unary_rpc_method_handler( + servicer.GetCustomerClientLink, + request_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_customer__client__link__service__pb2.GetCustomerClientLinkRequest.FromString, + response_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_customer__client__link__pb2.CustomerClientLink.SerializeToString, + ), + 'MutateCustomerClientLink': grpc.unary_unary_rpc_method_handler( + servicer.MutateCustomerClientLink, + request_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_customer__client__link__service__pb2.MutateCustomerClientLinkRequest.FromString, + response_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_customer__client__link__service__pb2.MutateCustomerClientLinkResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'google.ads.googleads.v4.services.CustomerClientLinkService', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) diff --git a/google/ads/google_ads/v4/proto/services/customer_client_service_pb2.py b/google/ads/google_ads/v4/proto/services/customer_client_service_pb2.py new file mode 100644 index 000000000..0d0b31cb3 --- /dev/null +++ b/google/ads/google_ads/v4/proto/services/customer_client_service_pb2.py @@ -0,0 +1,111 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/services/customer_client_service.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.ads.google_ads.v4.proto.resources import customer_client_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_customer__client__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 +from google.api import client_pb2 as google_dot_api_dot_client__pb2 +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/services/customer_client_service.proto', + package='google.ads.googleads.v4.services', + syntax='proto3', + serialized_options=_b('\n$com.google.ads.googleads.v4.servicesB\032CustomerClientServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V4.Services\312\002 Google\\Ads\\GoogleAds\\V4\\Services\352\002$Google::Ads::GoogleAds::V4::Services'), + serialized_pb=_b('\nDgoogle/ads/googleads_v4/proto/services/customer_client_service.proto\x12 google.ads.googleads.v4.services\x1a=google/ads/googleads_v4/proto/resources/customer_client.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"b\n\x18GetCustomerClientRequest\x12\x46\n\rresource_name\x18\x01 \x01(\tB/\xe0\x41\x02\xfa\x41)\n\'googleads.googleapis.com/CustomerClient2\x84\x02\n\x15\x43ustomerClientService\x12\xcd\x01\n\x11GetCustomerClient\x12:.google.ads.googleads.v4.services.GetCustomerClientRequest\x1a\x31.google.ads.googleads.v4.resources.CustomerClient\"I\x82\xd3\xe4\x93\x02\x33\x12\x31/v4/{resource_name=customers/*/customerClients/*}\xda\x41\rresource_name\x1a\x1b\xca\x41\x18googleads.googleapis.comB\x81\x02\n$com.google.ads.googleads.v4.servicesB\x1a\x43ustomerClientServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V4.Services\xca\x02 Google\\Ads\\GoogleAds\\V4\\Services\xea\x02$Google::Ads::GoogleAds::V4::Servicesb\x06proto3') + , + dependencies=[google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_customer__client__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_api_dot_client__pb2.DESCRIPTOR,google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_api_dot_resource__pb2.DESCRIPTOR,]) + + + + +_GETCUSTOMERCLIENTREQUEST = _descriptor.Descriptor( + name='GetCustomerClientRequest', + full_name='google.ads.googleads.v4.services.GetCustomerClientRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.services.GetCustomerClientRequest.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002\372A)\n\'googleads.googleapis.com/CustomerClient'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=284, + serialized_end=382, +) + +DESCRIPTOR.message_types_by_name['GetCustomerClientRequest'] = _GETCUSTOMERCLIENTREQUEST +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +GetCustomerClientRequest = _reflection.GeneratedProtocolMessageType('GetCustomerClientRequest', (_message.Message,), dict( + DESCRIPTOR = _GETCUSTOMERCLIENTREQUEST, + __module__ = 'google.ads.googleads_v4.proto.services.customer_client_service_pb2' + , + __doc__ = """Request message for + [CustomerClientService.GetCustomerClient][google.ads.googleads.v4.services.CustomerClientService.GetCustomerClient]. + + + Attributes: + resource_name: + Required. The resource name of the client to fetch. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.GetCustomerClientRequest) + )) +_sym_db.RegisterMessage(GetCustomerClientRequest) + + +DESCRIPTOR._options = None +_GETCUSTOMERCLIENTREQUEST.fields_by_name['resource_name']._options = None + +_CUSTOMERCLIENTSERVICE = _descriptor.ServiceDescriptor( + name='CustomerClientService', + full_name='google.ads.googleads.v4.services.CustomerClientService', + file=DESCRIPTOR, + index=0, + serialized_options=_b('\312A\030googleads.googleapis.com'), + serialized_start=385, + serialized_end=645, + methods=[ + _descriptor.MethodDescriptor( + name='GetCustomerClient', + full_name='google.ads.googleads.v4.services.CustomerClientService.GetCustomerClient', + index=0, + containing_service=None, + input_type=_GETCUSTOMERCLIENTREQUEST, + output_type=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_customer__client__pb2._CUSTOMERCLIENT, + serialized_options=_b('\202\323\344\223\0023\0221/v4/{resource_name=customers/*/customerClients/*}\332A\rresource_name'), + ), +]) +_sym_db.RegisterServiceDescriptor(_CUSTOMERCLIENTSERVICE) + +DESCRIPTOR.services_by_name['CustomerClientService'] = _CUSTOMERCLIENTSERVICE + +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v4/proto/services/customer_client_service_pb2_grpc.py b/google/ads/google_ads/v4/proto/services/customer_client_service_pb2_grpc.py new file mode 100644 index 000000000..b97d1771b --- /dev/null +++ b/google/ads/google_ads/v4/proto/services/customer_client_service_pb2_grpc.py @@ -0,0 +1,51 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +import grpc + +from google.ads.google_ads.v4.proto.resources import customer_client_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_customer__client__pb2 +from google.ads.google_ads.v4.proto.services import customer_client_service_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_customer__client__service__pb2 + + +class CustomerClientServiceStub(object): + """Proto file describing the Customer Client service. + + Service to get clients in a customer's hierarchy. + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.GetCustomerClient = channel.unary_unary( + '/google.ads.googleads.v4.services.CustomerClientService/GetCustomerClient', + request_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_customer__client__service__pb2.GetCustomerClientRequest.SerializeToString, + response_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_customer__client__pb2.CustomerClient.FromString, + ) + + +class CustomerClientServiceServicer(object): + """Proto file describing the Customer Client service. + + Service to get clients in a customer's hierarchy. + """ + + def GetCustomerClient(self, request, context): + """Returns the requested client in full detail. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_CustomerClientServiceServicer_to_server(servicer, server): + rpc_method_handlers = { + 'GetCustomerClient': grpc.unary_unary_rpc_method_handler( + servicer.GetCustomerClient, + request_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_customer__client__service__pb2.GetCustomerClientRequest.FromString, + response_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_customer__client__pb2.CustomerClient.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'google.ads.googleads.v4.services.CustomerClientService', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) diff --git a/google/ads/google_ads/v4/proto/services/customer_extension_setting_service_pb2.py b/google/ads/google_ads/v4/proto/services/customer_extension_setting_service_pb2.py new file mode 100644 index 000000000..779b0d0d8 --- /dev/null +++ b/google/ads/google_ads/v4/proto/services/customer_extension_setting_service_pb2.py @@ -0,0 +1,413 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/services/customer_extension_setting_service.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.ads.google_ads.v4.proto.resources import customer_extension_setting_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_customer__extension__setting__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 +from google.api import client_pb2 as google_dot_api_dot_client__pb2 +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 +from google.protobuf import field_mask_pb2 as google_dot_protobuf_dot_field__mask__pb2 +from google.rpc import status_pb2 as google_dot_rpc_dot_status__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/services/customer_extension_setting_service.proto', + package='google.ads.googleads.v4.services', + syntax='proto3', + serialized_options=_b('\n$com.google.ads.googleads.v4.servicesB$CustomerExtensionSettingServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V4.Services\312\002 Google\\Ads\\GoogleAds\\V4\\Services\352\002$Google::Ads::GoogleAds::V4::Services'), + serialized_pb=_b('\nOgoogle/ads/googleads_v4/proto/services/customer_extension_setting_service.proto\x12 google.ads.googleads.v4.services\x1aHgoogle/ads/googleads_v4/proto/resources/customer_extension_setting.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/protobuf/field_mask.proto\x1a\x17google/rpc/status.proto\"v\n\"GetCustomerExtensionSettingRequest\x12P\n\rresource_name\x18\x01 \x01(\tB9\xe0\x41\x02\xfa\x41\x33\n1googleads.googleapis.com/CustomerExtensionSetting\"\xd0\x01\n&MutateCustomerExtensionSettingsRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\\\n\noperations\x18\x02 \x03(\x0b\x32\x43.google.ads.googleads.v4.services.CustomerExtensionSettingOperationB\x03\xe0\x41\x02\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\"\x91\x02\n!CustomerExtensionSettingOperation\x12/\n\x0bupdate_mask\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12M\n\x06\x63reate\x18\x01 \x01(\x0b\x32;.google.ads.googleads.v4.resources.CustomerExtensionSettingH\x00\x12M\n\x06update\x18\x02 \x01(\x0b\x32;.google.ads.googleads.v4.resources.CustomerExtensionSettingH\x00\x12\x10\n\x06remove\x18\x03 \x01(\tH\x00\x42\x0b\n\toperation\"\xb5\x01\n\'MutateCustomerExtensionSettingsResponse\x12\x31\n\x15partial_failure_error\x18\x03 \x01(\x0b\x32\x12.google.rpc.Status\x12W\n\x07results\x18\x02 \x03(\x0b\x32\x46.google.ads.googleads.v4.services.MutateCustomerExtensionSettingResult\"=\n$MutateCustomerExtensionSettingResult\x12\x15\n\rresource_name\x18\x01 \x01(\t2\xd3\x04\n\x1f\x43ustomerExtensionSettingService\x12\xf5\x01\n\x1bGetCustomerExtensionSetting\x12\x44.google.ads.googleads.v4.services.GetCustomerExtensionSettingRequest\x1a;.google.ads.googleads.v4.resources.CustomerExtensionSetting\"S\x82\xd3\xe4\x93\x02=\x12;/v4/{resource_name=customers/*/customerExtensionSettings/*}\xda\x41\rresource_name\x12\x9a\x02\n\x1fMutateCustomerExtensionSettings\x12H.google.ads.googleads.v4.services.MutateCustomerExtensionSettingsRequest\x1aI.google.ads.googleads.v4.services.MutateCustomerExtensionSettingsResponse\"b\x82\xd3\xe4\x93\x02\x43\">/v4/customers/{customer_id=*}/customerExtensionSettings:mutate:\x01*\xda\x41\x16\x63ustomer_id,operations\x1a\x1b\xca\x41\x18googleads.googleapis.comB\x8b\x02\n$com.google.ads.googleads.v4.servicesB$CustomerExtensionSettingServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V4.Services\xca\x02 Google\\Ads\\GoogleAds\\V4\\Services\xea\x02$Google::Ads::GoogleAds::V4::Servicesb\x06proto3') + , + dependencies=[google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_customer__extension__setting__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_api_dot_client__pb2.DESCRIPTOR,google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_api_dot_resource__pb2.DESCRIPTOR,google_dot_protobuf_dot_field__mask__pb2.DESCRIPTOR,google_dot_rpc_dot_status__pb2.DESCRIPTOR,]) + + + + +_GETCUSTOMEREXTENSIONSETTINGREQUEST = _descriptor.Descriptor( + name='GetCustomerExtensionSettingRequest', + full_name='google.ads.googleads.v4.services.GetCustomerExtensionSettingRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.services.GetCustomerExtensionSettingRequest.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002\372A3\n1googleads.googleapis.com/CustomerExtensionSetting'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=365, + serialized_end=483, +) + + +_MUTATECUSTOMEREXTENSIONSETTINGSREQUEST = _descriptor.Descriptor( + name='MutateCustomerExtensionSettingsRequest', + full_name='google.ads.googleads.v4.services.MutateCustomerExtensionSettingsRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='customer_id', full_name='google.ads.googleads.v4.services.MutateCustomerExtensionSettingsRequest.customer_id', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='operations', full_name='google.ads.googleads.v4.services.MutateCustomerExtensionSettingsRequest.operations', index=1, + number=2, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='partial_failure', full_name='google.ads.googleads.v4.services.MutateCustomerExtensionSettingsRequest.partial_failure', index=2, + number=3, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='validate_only', full_name='google.ads.googleads.v4.services.MutateCustomerExtensionSettingsRequest.validate_only', index=3, + number=4, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=486, + serialized_end=694, +) + + +_CUSTOMEREXTENSIONSETTINGOPERATION = _descriptor.Descriptor( + name='CustomerExtensionSettingOperation', + full_name='google.ads.googleads.v4.services.CustomerExtensionSettingOperation', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='update_mask', full_name='google.ads.googleads.v4.services.CustomerExtensionSettingOperation.update_mask', index=0, + number=4, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='create', full_name='google.ads.googleads.v4.services.CustomerExtensionSettingOperation.create', index=1, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='update', full_name='google.ads.googleads.v4.services.CustomerExtensionSettingOperation.update', index=2, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='remove', full_name='google.ads.googleads.v4.services.CustomerExtensionSettingOperation.remove', index=3, + number=3, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name='operation', full_name='google.ads.googleads.v4.services.CustomerExtensionSettingOperation.operation', + index=0, containing_type=None, fields=[]), + ], + serialized_start=697, + serialized_end=970, +) + + +_MUTATECUSTOMEREXTENSIONSETTINGSRESPONSE = _descriptor.Descriptor( + name='MutateCustomerExtensionSettingsResponse', + full_name='google.ads.googleads.v4.services.MutateCustomerExtensionSettingsResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='partial_failure_error', full_name='google.ads.googleads.v4.services.MutateCustomerExtensionSettingsResponse.partial_failure_error', index=0, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='results', full_name='google.ads.googleads.v4.services.MutateCustomerExtensionSettingsResponse.results', index=1, + number=2, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=973, + serialized_end=1154, +) + + +_MUTATECUSTOMEREXTENSIONSETTINGRESULT = _descriptor.Descriptor( + name='MutateCustomerExtensionSettingResult', + full_name='google.ads.googleads.v4.services.MutateCustomerExtensionSettingResult', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.services.MutateCustomerExtensionSettingResult.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1156, + serialized_end=1217, +) + +_MUTATECUSTOMEREXTENSIONSETTINGSREQUEST.fields_by_name['operations'].message_type = _CUSTOMEREXTENSIONSETTINGOPERATION +_CUSTOMEREXTENSIONSETTINGOPERATION.fields_by_name['update_mask'].message_type = google_dot_protobuf_dot_field__mask__pb2._FIELDMASK +_CUSTOMEREXTENSIONSETTINGOPERATION.fields_by_name['create'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_customer__extension__setting__pb2._CUSTOMEREXTENSIONSETTING +_CUSTOMEREXTENSIONSETTINGOPERATION.fields_by_name['update'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_customer__extension__setting__pb2._CUSTOMEREXTENSIONSETTING +_CUSTOMEREXTENSIONSETTINGOPERATION.oneofs_by_name['operation'].fields.append( + _CUSTOMEREXTENSIONSETTINGOPERATION.fields_by_name['create']) +_CUSTOMEREXTENSIONSETTINGOPERATION.fields_by_name['create'].containing_oneof = _CUSTOMEREXTENSIONSETTINGOPERATION.oneofs_by_name['operation'] +_CUSTOMEREXTENSIONSETTINGOPERATION.oneofs_by_name['operation'].fields.append( + _CUSTOMEREXTENSIONSETTINGOPERATION.fields_by_name['update']) +_CUSTOMEREXTENSIONSETTINGOPERATION.fields_by_name['update'].containing_oneof = _CUSTOMEREXTENSIONSETTINGOPERATION.oneofs_by_name['operation'] +_CUSTOMEREXTENSIONSETTINGOPERATION.oneofs_by_name['operation'].fields.append( + _CUSTOMEREXTENSIONSETTINGOPERATION.fields_by_name['remove']) +_CUSTOMEREXTENSIONSETTINGOPERATION.fields_by_name['remove'].containing_oneof = _CUSTOMEREXTENSIONSETTINGOPERATION.oneofs_by_name['operation'] +_MUTATECUSTOMEREXTENSIONSETTINGSRESPONSE.fields_by_name['partial_failure_error'].message_type = google_dot_rpc_dot_status__pb2._STATUS +_MUTATECUSTOMEREXTENSIONSETTINGSRESPONSE.fields_by_name['results'].message_type = _MUTATECUSTOMEREXTENSIONSETTINGRESULT +DESCRIPTOR.message_types_by_name['GetCustomerExtensionSettingRequest'] = _GETCUSTOMEREXTENSIONSETTINGREQUEST +DESCRIPTOR.message_types_by_name['MutateCustomerExtensionSettingsRequest'] = _MUTATECUSTOMEREXTENSIONSETTINGSREQUEST +DESCRIPTOR.message_types_by_name['CustomerExtensionSettingOperation'] = _CUSTOMEREXTENSIONSETTINGOPERATION +DESCRIPTOR.message_types_by_name['MutateCustomerExtensionSettingsResponse'] = _MUTATECUSTOMEREXTENSIONSETTINGSRESPONSE +DESCRIPTOR.message_types_by_name['MutateCustomerExtensionSettingResult'] = _MUTATECUSTOMEREXTENSIONSETTINGRESULT +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +GetCustomerExtensionSettingRequest = _reflection.GeneratedProtocolMessageType('GetCustomerExtensionSettingRequest', (_message.Message,), dict( + DESCRIPTOR = _GETCUSTOMEREXTENSIONSETTINGREQUEST, + __module__ = 'google.ads.googleads_v4.proto.services.customer_extension_setting_service_pb2' + , + __doc__ = """Request message for + [CustomerExtensionSettingService.GetCustomerExtensionSetting][google.ads.googleads.v4.services.CustomerExtensionSettingService.GetCustomerExtensionSetting]. + + + Attributes: + resource_name: + Required. The resource name of the customer extension setting + to fetch. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.GetCustomerExtensionSettingRequest) + )) +_sym_db.RegisterMessage(GetCustomerExtensionSettingRequest) + +MutateCustomerExtensionSettingsRequest = _reflection.GeneratedProtocolMessageType('MutateCustomerExtensionSettingsRequest', (_message.Message,), dict( + DESCRIPTOR = _MUTATECUSTOMEREXTENSIONSETTINGSREQUEST, + __module__ = 'google.ads.googleads_v4.proto.services.customer_extension_setting_service_pb2' + , + __doc__ = """Request message for + [CustomerExtensionSettingService.MutateCustomerExtensionSettings][google.ads.googleads.v4.services.CustomerExtensionSettingService.MutateCustomerExtensionSettings]. + + + Attributes: + customer_id: + Required. The ID of the customer whose customer extension + settings are being modified. + operations: + Required. The list of operations to perform on individual + customer extension settings. + partial_failure: + If true, successful operations will be carried out and invalid + operations will return errors. If false, all operations will + be carried out in one transaction if and only if they are all + valid. Default is false. + validate_only: + If true, the request is validated but not executed. Only + errors are returned, not results. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.MutateCustomerExtensionSettingsRequest) + )) +_sym_db.RegisterMessage(MutateCustomerExtensionSettingsRequest) + +CustomerExtensionSettingOperation = _reflection.GeneratedProtocolMessageType('CustomerExtensionSettingOperation', (_message.Message,), dict( + DESCRIPTOR = _CUSTOMEREXTENSIONSETTINGOPERATION, + __module__ = 'google.ads.googleads_v4.proto.services.customer_extension_setting_service_pb2' + , + __doc__ = """A single operation (create, update, remove) on a customer extension + setting. + + + Attributes: + update_mask: + FieldMask that determines which resource fields are modified + in an update. + operation: + The mutate operation. + create: + Create operation: No resource name is expected for the new + customer extension setting. + update: + Update operation: The customer extension setting is expected + to have a valid resource name. + remove: + Remove operation: A resource name for the removed customer + extension setting is expected, in this format: ``customers/{c + ustomer_id}/customerExtensionSettings/{extension_type}`` + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.CustomerExtensionSettingOperation) + )) +_sym_db.RegisterMessage(CustomerExtensionSettingOperation) + +MutateCustomerExtensionSettingsResponse = _reflection.GeneratedProtocolMessageType('MutateCustomerExtensionSettingsResponse', (_message.Message,), dict( + DESCRIPTOR = _MUTATECUSTOMEREXTENSIONSETTINGSRESPONSE, + __module__ = 'google.ads.googleads_v4.proto.services.customer_extension_setting_service_pb2' + , + __doc__ = """Response message for a customer extension setting mutate. + + + Attributes: + partial_failure_error: + Errors that pertain to operation failures in the partial + failure mode. Returned only when partial\_failure = true and + all errors occur inside the operations. If any errors occur + outside the operations (e.g. auth errors), we return an RPC + level error. + results: + All results for the mutate. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.MutateCustomerExtensionSettingsResponse) + )) +_sym_db.RegisterMessage(MutateCustomerExtensionSettingsResponse) + +MutateCustomerExtensionSettingResult = _reflection.GeneratedProtocolMessageType('MutateCustomerExtensionSettingResult', (_message.Message,), dict( + DESCRIPTOR = _MUTATECUSTOMEREXTENSIONSETTINGRESULT, + __module__ = 'google.ads.googleads_v4.proto.services.customer_extension_setting_service_pb2' + , + __doc__ = """The result for the customer extension setting mutate. + + + Attributes: + resource_name: + Returned for successful operations. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.MutateCustomerExtensionSettingResult) + )) +_sym_db.RegisterMessage(MutateCustomerExtensionSettingResult) + + +DESCRIPTOR._options = None +_GETCUSTOMEREXTENSIONSETTINGREQUEST.fields_by_name['resource_name']._options = None +_MUTATECUSTOMEREXTENSIONSETTINGSREQUEST.fields_by_name['customer_id']._options = None +_MUTATECUSTOMEREXTENSIONSETTINGSREQUEST.fields_by_name['operations']._options = None + +_CUSTOMEREXTENSIONSETTINGSERVICE = _descriptor.ServiceDescriptor( + name='CustomerExtensionSettingService', + full_name='google.ads.googleads.v4.services.CustomerExtensionSettingService', + file=DESCRIPTOR, + index=0, + serialized_options=_b('\312A\030googleads.googleapis.com'), + serialized_start=1220, + serialized_end=1815, + methods=[ + _descriptor.MethodDescriptor( + name='GetCustomerExtensionSetting', + full_name='google.ads.googleads.v4.services.CustomerExtensionSettingService.GetCustomerExtensionSetting', + index=0, + containing_service=None, + input_type=_GETCUSTOMEREXTENSIONSETTINGREQUEST, + output_type=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_customer__extension__setting__pb2._CUSTOMEREXTENSIONSETTING, + serialized_options=_b('\202\323\344\223\002=\022;/v4/{resource_name=customers/*/customerExtensionSettings/*}\332A\rresource_name'), + ), + _descriptor.MethodDescriptor( + name='MutateCustomerExtensionSettings', + full_name='google.ads.googleads.v4.services.CustomerExtensionSettingService.MutateCustomerExtensionSettings', + index=1, + containing_service=None, + input_type=_MUTATECUSTOMEREXTENSIONSETTINGSREQUEST, + output_type=_MUTATECUSTOMEREXTENSIONSETTINGSRESPONSE, + serialized_options=_b('\202\323\344\223\002C\">/v4/customers/{customer_id=*}/customerExtensionSettings:mutate:\001*\332A\026customer_id,operations'), + ), +]) +_sym_db.RegisterServiceDescriptor(_CUSTOMEREXTENSIONSETTINGSERVICE) + +DESCRIPTOR.services_by_name['CustomerExtensionSettingService'] = _CUSTOMEREXTENSIONSETTINGSERVICE + +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/services/customer_extension_setting_service_pb2_grpc.py b/google/ads/google_ads/v4/proto/services/customer_extension_setting_service_pb2_grpc.py similarity index 75% rename from google/ads/google_ads/v1/proto/services/customer_extension_setting_service_pb2_grpc.py rename to google/ads/google_ads/v4/proto/services/customer_extension_setting_service_pb2_grpc.py index 333c0ffaa..d2bc33de3 100644 --- a/google/ads/google_ads/v1/proto/services/customer_extension_setting_service_pb2_grpc.py +++ b/google/ads/google_ads/v4/proto/services/customer_extension_setting_service_pb2_grpc.py @@ -1,8 +1,8 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc -from google.ads.google_ads.v1.proto.resources import customer_extension_setting_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_customer__extension__setting__pb2 -from google.ads.google_ads.v1.proto.services import customer_extension_setting_service_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_customer__extension__setting__service__pb2 +from google.ads.google_ads.v4.proto.resources import customer_extension_setting_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_customer__extension__setting__pb2 +from google.ads.google_ads.v4.proto.services import customer_extension_setting_service_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_customer__extension__setting__service__pb2 class CustomerExtensionSettingServiceStub(object): @@ -18,14 +18,14 @@ def __init__(self, channel): channel: A grpc.Channel. """ self.GetCustomerExtensionSetting = channel.unary_unary( - '/google.ads.googleads.v1.services.CustomerExtensionSettingService/GetCustomerExtensionSetting', - request_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_customer__extension__setting__service__pb2.GetCustomerExtensionSettingRequest.SerializeToString, - response_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_customer__extension__setting__pb2.CustomerExtensionSetting.FromString, + '/google.ads.googleads.v4.services.CustomerExtensionSettingService/GetCustomerExtensionSetting', + request_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_customer__extension__setting__service__pb2.GetCustomerExtensionSettingRequest.SerializeToString, + response_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_customer__extension__setting__pb2.CustomerExtensionSetting.FromString, ) self.MutateCustomerExtensionSettings = channel.unary_unary( - '/google.ads.googleads.v1.services.CustomerExtensionSettingService/MutateCustomerExtensionSettings', - request_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_customer__extension__setting__service__pb2.MutateCustomerExtensionSettingsRequest.SerializeToString, - response_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_customer__extension__setting__service__pb2.MutateCustomerExtensionSettingsResponse.FromString, + '/google.ads.googleads.v4.services.CustomerExtensionSettingService/MutateCustomerExtensionSettings', + request_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_customer__extension__setting__service__pb2.MutateCustomerExtensionSettingsRequest.SerializeToString, + response_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_customer__extension__setting__service__pb2.MutateCustomerExtensionSettingsResponse.FromString, ) @@ -55,15 +55,15 @@ def add_CustomerExtensionSettingServiceServicer_to_server(servicer, server): rpc_method_handlers = { 'GetCustomerExtensionSetting': grpc.unary_unary_rpc_method_handler( servicer.GetCustomerExtensionSetting, - request_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_customer__extension__setting__service__pb2.GetCustomerExtensionSettingRequest.FromString, - response_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_customer__extension__setting__pb2.CustomerExtensionSetting.SerializeToString, + request_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_customer__extension__setting__service__pb2.GetCustomerExtensionSettingRequest.FromString, + response_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_customer__extension__setting__pb2.CustomerExtensionSetting.SerializeToString, ), 'MutateCustomerExtensionSettings': grpc.unary_unary_rpc_method_handler( servicer.MutateCustomerExtensionSettings, - request_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_customer__extension__setting__service__pb2.MutateCustomerExtensionSettingsRequest.FromString, - response_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_customer__extension__setting__service__pb2.MutateCustomerExtensionSettingsResponse.SerializeToString, + request_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_customer__extension__setting__service__pb2.MutateCustomerExtensionSettingsRequest.FromString, + response_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_customer__extension__setting__service__pb2.MutateCustomerExtensionSettingsResponse.SerializeToString, ), } generic_handler = grpc.method_handlers_generic_handler( - 'google.ads.googleads.v1.services.CustomerExtensionSettingService', rpc_method_handlers) + 'google.ads.googleads.v4.services.CustomerExtensionSettingService', rpc_method_handlers) server.add_generic_rpc_handlers((generic_handler,)) diff --git a/google/ads/google_ads/v4/proto/services/customer_feed_service_pb2.py b/google/ads/google_ads/v4/proto/services/customer_feed_service_pb2.py new file mode 100644 index 000000000..1b40f7654 --- /dev/null +++ b/google/ads/google_ads/v4/proto/services/customer_feed_service_pb2.py @@ -0,0 +1,411 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/services/customer_feed_service.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.ads.google_ads.v4.proto.resources import customer_feed_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_customer__feed__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 +from google.api import client_pb2 as google_dot_api_dot_client__pb2 +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 +from google.protobuf import field_mask_pb2 as google_dot_protobuf_dot_field__mask__pb2 +from google.rpc import status_pb2 as google_dot_rpc_dot_status__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/services/customer_feed_service.proto', + package='google.ads.googleads.v4.services', + syntax='proto3', + serialized_options=_b('\n$com.google.ads.googleads.v4.servicesB\030CustomerFeedServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V4.Services\312\002 Google\\Ads\\GoogleAds\\V4\\Services\352\002$Google::Ads::GoogleAds::V4::Services'), + serialized_pb=_b('\nBgoogle/ads/googleads_v4/proto/services/customer_feed_service.proto\x12 google.ads.googleads.v4.services\x1a;google/ads/googleads_v4/proto/resources/customer_feed.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/protobuf/field_mask.proto\x1a\x17google/rpc/status.proto\"^\n\x16GetCustomerFeedRequest\x12\x44\n\rresource_name\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%googleads.googleapis.com/CustomerFeed\"\xb8\x01\n\x1aMutateCustomerFeedsRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12P\n\noperations\x18\x02 \x03(\x0b\x32\x37.google.ads.googleads.v4.services.CustomerFeedOperationB\x03\xe0\x41\x02\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\"\xed\x01\n\x15\x43ustomerFeedOperation\x12/\n\x0bupdate_mask\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12\x41\n\x06\x63reate\x18\x01 \x01(\x0b\x32/.google.ads.googleads.v4.resources.CustomerFeedH\x00\x12\x41\n\x06update\x18\x02 \x01(\x0b\x32/.google.ads.googleads.v4.resources.CustomerFeedH\x00\x12\x10\n\x06remove\x18\x03 \x01(\tH\x00\x42\x0b\n\toperation\"\x9d\x01\n\x1bMutateCustomerFeedsResponse\x12\x31\n\x15partial_failure_error\x18\x03 \x01(\x0b\x32\x12.google.rpc.Status\x12K\n\x07results\x18\x02 \x03(\x0b\x32:.google.ads.googleads.v4.services.MutateCustomerFeedResult\"1\n\x18MutateCustomerFeedResult\x12\x15\n\rresource_name\x18\x01 \x01(\t2\xe7\x03\n\x13\x43ustomerFeedService\x12\xc5\x01\n\x0fGetCustomerFeed\x12\x38.google.ads.googleads.v4.services.GetCustomerFeedRequest\x1a/.google.ads.googleads.v4.resources.CustomerFeed\"G\x82\xd3\xe4\x93\x02\x31\x12//v4/{resource_name=customers/*/customerFeeds/*}\xda\x41\rresource_name\x12\xea\x01\n\x13MutateCustomerFeeds\x12<.google.ads.googleads.v4.services.MutateCustomerFeedsRequest\x1a=.google.ads.googleads.v4.services.MutateCustomerFeedsResponse\"V\x82\xd3\xe4\x93\x02\x37\"2/v4/customers/{customer_id=*}/customerFeeds:mutate:\x01*\xda\x41\x16\x63ustomer_id,operations\x1a\x1b\xca\x41\x18googleads.googleapis.comB\xff\x01\n$com.google.ads.googleads.v4.servicesB\x18\x43ustomerFeedServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V4.Services\xca\x02 Google\\Ads\\GoogleAds\\V4\\Services\xea\x02$Google::Ads::GoogleAds::V4::Servicesb\x06proto3') + , + dependencies=[google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_customer__feed__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_api_dot_client__pb2.DESCRIPTOR,google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_api_dot_resource__pb2.DESCRIPTOR,google_dot_protobuf_dot_field__mask__pb2.DESCRIPTOR,google_dot_rpc_dot_status__pb2.DESCRIPTOR,]) + + + + +_GETCUSTOMERFEEDREQUEST = _descriptor.Descriptor( + name='GetCustomerFeedRequest', + full_name='google.ads.googleads.v4.services.GetCustomerFeedRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.services.GetCustomerFeedRequest.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002\372A\'\n%googleads.googleapis.com/CustomerFeed'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=339, + serialized_end=433, +) + + +_MUTATECUSTOMERFEEDSREQUEST = _descriptor.Descriptor( + name='MutateCustomerFeedsRequest', + full_name='google.ads.googleads.v4.services.MutateCustomerFeedsRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='customer_id', full_name='google.ads.googleads.v4.services.MutateCustomerFeedsRequest.customer_id', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='operations', full_name='google.ads.googleads.v4.services.MutateCustomerFeedsRequest.operations', index=1, + number=2, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='partial_failure', full_name='google.ads.googleads.v4.services.MutateCustomerFeedsRequest.partial_failure', index=2, + number=3, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='validate_only', full_name='google.ads.googleads.v4.services.MutateCustomerFeedsRequest.validate_only', index=3, + number=4, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=436, + serialized_end=620, +) + + +_CUSTOMERFEEDOPERATION = _descriptor.Descriptor( + name='CustomerFeedOperation', + full_name='google.ads.googleads.v4.services.CustomerFeedOperation', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='update_mask', full_name='google.ads.googleads.v4.services.CustomerFeedOperation.update_mask', index=0, + number=4, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='create', full_name='google.ads.googleads.v4.services.CustomerFeedOperation.create', index=1, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='update', full_name='google.ads.googleads.v4.services.CustomerFeedOperation.update', index=2, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='remove', full_name='google.ads.googleads.v4.services.CustomerFeedOperation.remove', index=3, + number=3, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name='operation', full_name='google.ads.googleads.v4.services.CustomerFeedOperation.operation', + index=0, containing_type=None, fields=[]), + ], + serialized_start=623, + serialized_end=860, +) + + +_MUTATECUSTOMERFEEDSRESPONSE = _descriptor.Descriptor( + name='MutateCustomerFeedsResponse', + full_name='google.ads.googleads.v4.services.MutateCustomerFeedsResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='partial_failure_error', full_name='google.ads.googleads.v4.services.MutateCustomerFeedsResponse.partial_failure_error', index=0, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='results', full_name='google.ads.googleads.v4.services.MutateCustomerFeedsResponse.results', index=1, + number=2, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=863, + serialized_end=1020, +) + + +_MUTATECUSTOMERFEEDRESULT = _descriptor.Descriptor( + name='MutateCustomerFeedResult', + full_name='google.ads.googleads.v4.services.MutateCustomerFeedResult', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.services.MutateCustomerFeedResult.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1022, + serialized_end=1071, +) + +_MUTATECUSTOMERFEEDSREQUEST.fields_by_name['operations'].message_type = _CUSTOMERFEEDOPERATION +_CUSTOMERFEEDOPERATION.fields_by_name['update_mask'].message_type = google_dot_protobuf_dot_field__mask__pb2._FIELDMASK +_CUSTOMERFEEDOPERATION.fields_by_name['create'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_customer__feed__pb2._CUSTOMERFEED +_CUSTOMERFEEDOPERATION.fields_by_name['update'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_customer__feed__pb2._CUSTOMERFEED +_CUSTOMERFEEDOPERATION.oneofs_by_name['operation'].fields.append( + _CUSTOMERFEEDOPERATION.fields_by_name['create']) +_CUSTOMERFEEDOPERATION.fields_by_name['create'].containing_oneof = _CUSTOMERFEEDOPERATION.oneofs_by_name['operation'] +_CUSTOMERFEEDOPERATION.oneofs_by_name['operation'].fields.append( + _CUSTOMERFEEDOPERATION.fields_by_name['update']) +_CUSTOMERFEEDOPERATION.fields_by_name['update'].containing_oneof = _CUSTOMERFEEDOPERATION.oneofs_by_name['operation'] +_CUSTOMERFEEDOPERATION.oneofs_by_name['operation'].fields.append( + _CUSTOMERFEEDOPERATION.fields_by_name['remove']) +_CUSTOMERFEEDOPERATION.fields_by_name['remove'].containing_oneof = _CUSTOMERFEEDOPERATION.oneofs_by_name['operation'] +_MUTATECUSTOMERFEEDSRESPONSE.fields_by_name['partial_failure_error'].message_type = google_dot_rpc_dot_status__pb2._STATUS +_MUTATECUSTOMERFEEDSRESPONSE.fields_by_name['results'].message_type = _MUTATECUSTOMERFEEDRESULT +DESCRIPTOR.message_types_by_name['GetCustomerFeedRequest'] = _GETCUSTOMERFEEDREQUEST +DESCRIPTOR.message_types_by_name['MutateCustomerFeedsRequest'] = _MUTATECUSTOMERFEEDSREQUEST +DESCRIPTOR.message_types_by_name['CustomerFeedOperation'] = _CUSTOMERFEEDOPERATION +DESCRIPTOR.message_types_by_name['MutateCustomerFeedsResponse'] = _MUTATECUSTOMERFEEDSRESPONSE +DESCRIPTOR.message_types_by_name['MutateCustomerFeedResult'] = _MUTATECUSTOMERFEEDRESULT +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +GetCustomerFeedRequest = _reflection.GeneratedProtocolMessageType('GetCustomerFeedRequest', (_message.Message,), dict( + DESCRIPTOR = _GETCUSTOMERFEEDREQUEST, + __module__ = 'google.ads.googleads_v4.proto.services.customer_feed_service_pb2' + , + __doc__ = """Request message for + [CustomerFeedService.GetCustomerFeed][google.ads.googleads.v4.services.CustomerFeedService.GetCustomerFeed]. + + + Attributes: + resource_name: + Required. The resource name of the customer feed to fetch. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.GetCustomerFeedRequest) + )) +_sym_db.RegisterMessage(GetCustomerFeedRequest) + +MutateCustomerFeedsRequest = _reflection.GeneratedProtocolMessageType('MutateCustomerFeedsRequest', (_message.Message,), dict( + DESCRIPTOR = _MUTATECUSTOMERFEEDSREQUEST, + __module__ = 'google.ads.googleads_v4.proto.services.customer_feed_service_pb2' + , + __doc__ = """Request message for + [CustomerFeedService.MutateCustomerFeeds][google.ads.googleads.v4.services.CustomerFeedService.MutateCustomerFeeds]. + + + Attributes: + customer_id: + Required. The ID of the customer whose customer feeds are + being modified. + operations: + Required. The list of operations to perform on individual + customer feeds. + partial_failure: + If true, successful operations will be carried out and invalid + operations will return errors. If false, all operations will + be carried out in one transaction if and only if they are all + valid. Default is false. + validate_only: + If true, the request is validated but not executed. Only + errors are returned, not results. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.MutateCustomerFeedsRequest) + )) +_sym_db.RegisterMessage(MutateCustomerFeedsRequest) + +CustomerFeedOperation = _reflection.GeneratedProtocolMessageType('CustomerFeedOperation', (_message.Message,), dict( + DESCRIPTOR = _CUSTOMERFEEDOPERATION, + __module__ = 'google.ads.googleads_v4.proto.services.customer_feed_service_pb2' + , + __doc__ = """A single operation (create, update, remove) on a customer feed. + + + Attributes: + update_mask: + FieldMask that determines which resource fields are modified + in an update. + operation: + The mutate operation. + create: + Create operation: No resource name is expected for the new + customer feed. + update: + Update operation: The customer feed is expected to have a + valid resource name. + remove: + Remove operation: A resource name for the removed customer + feed is expected, in this format: + ``customers/{customer_id}/customerFeeds/{feed_id}`` + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.CustomerFeedOperation) + )) +_sym_db.RegisterMessage(CustomerFeedOperation) + +MutateCustomerFeedsResponse = _reflection.GeneratedProtocolMessageType('MutateCustomerFeedsResponse', (_message.Message,), dict( + DESCRIPTOR = _MUTATECUSTOMERFEEDSRESPONSE, + __module__ = 'google.ads.googleads_v4.proto.services.customer_feed_service_pb2' + , + __doc__ = """Response message for a customer feed mutate. + + + Attributes: + partial_failure_error: + Errors that pertain to operation failures in the partial + failure mode. Returned only when partial\_failure = true and + all errors occur inside the operations. If any errors occur + outside the operations (e.g. auth errors), we return an RPC + level error. + results: + All results for the mutate. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.MutateCustomerFeedsResponse) + )) +_sym_db.RegisterMessage(MutateCustomerFeedsResponse) + +MutateCustomerFeedResult = _reflection.GeneratedProtocolMessageType('MutateCustomerFeedResult', (_message.Message,), dict( + DESCRIPTOR = _MUTATECUSTOMERFEEDRESULT, + __module__ = 'google.ads.googleads_v4.proto.services.customer_feed_service_pb2' + , + __doc__ = """The result for the customer feed mutate. + + + Attributes: + resource_name: + Returned for successful operations. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.MutateCustomerFeedResult) + )) +_sym_db.RegisterMessage(MutateCustomerFeedResult) + + +DESCRIPTOR._options = None +_GETCUSTOMERFEEDREQUEST.fields_by_name['resource_name']._options = None +_MUTATECUSTOMERFEEDSREQUEST.fields_by_name['customer_id']._options = None +_MUTATECUSTOMERFEEDSREQUEST.fields_by_name['operations']._options = None + +_CUSTOMERFEEDSERVICE = _descriptor.ServiceDescriptor( + name='CustomerFeedService', + full_name='google.ads.googleads.v4.services.CustomerFeedService', + file=DESCRIPTOR, + index=0, + serialized_options=_b('\312A\030googleads.googleapis.com'), + serialized_start=1074, + serialized_end=1561, + methods=[ + _descriptor.MethodDescriptor( + name='GetCustomerFeed', + full_name='google.ads.googleads.v4.services.CustomerFeedService.GetCustomerFeed', + index=0, + containing_service=None, + input_type=_GETCUSTOMERFEEDREQUEST, + output_type=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_customer__feed__pb2._CUSTOMERFEED, + serialized_options=_b('\202\323\344\223\0021\022//v4/{resource_name=customers/*/customerFeeds/*}\332A\rresource_name'), + ), + _descriptor.MethodDescriptor( + name='MutateCustomerFeeds', + full_name='google.ads.googleads.v4.services.CustomerFeedService.MutateCustomerFeeds', + index=1, + containing_service=None, + input_type=_MUTATECUSTOMERFEEDSREQUEST, + output_type=_MUTATECUSTOMERFEEDSRESPONSE, + serialized_options=_b('\202\323\344\223\0027\"2/v4/customers/{customer_id=*}/customerFeeds:mutate:\001*\332A\026customer_id,operations'), + ), +]) +_sym_db.RegisterServiceDescriptor(_CUSTOMERFEEDSERVICE) + +DESCRIPTOR.services_by_name['CustomerFeedService'] = _CUSTOMERFEEDSERVICE + +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v4/proto/services/customer_feed_service_pb2_grpc.py b/google/ads/google_ads/v4/proto/services/customer_feed_service_pb2_grpc.py new file mode 100644 index 000000000..1a07c812b --- /dev/null +++ b/google/ads/google_ads/v4/proto/services/customer_feed_service_pb2_grpc.py @@ -0,0 +1,69 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +import grpc + +from google.ads.google_ads.v4.proto.resources import customer_feed_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_customer__feed__pb2 +from google.ads.google_ads.v4.proto.services import customer_feed_service_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_customer__feed__service__pb2 + + +class CustomerFeedServiceStub(object): + """Proto file describing the CustomerFeed service. + + Service to manage customer feeds. + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.GetCustomerFeed = channel.unary_unary( + '/google.ads.googleads.v4.services.CustomerFeedService/GetCustomerFeed', + request_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_customer__feed__service__pb2.GetCustomerFeedRequest.SerializeToString, + response_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_customer__feed__pb2.CustomerFeed.FromString, + ) + self.MutateCustomerFeeds = channel.unary_unary( + '/google.ads.googleads.v4.services.CustomerFeedService/MutateCustomerFeeds', + request_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_customer__feed__service__pb2.MutateCustomerFeedsRequest.SerializeToString, + response_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_customer__feed__service__pb2.MutateCustomerFeedsResponse.FromString, + ) + + +class CustomerFeedServiceServicer(object): + """Proto file describing the CustomerFeed service. + + Service to manage customer feeds. + """ + + def GetCustomerFeed(self, request, context): + """Returns the requested customer feed in full detail. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def MutateCustomerFeeds(self, request, context): + """Creates, updates, or removes customer feeds. Operation statuses are + returned. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_CustomerFeedServiceServicer_to_server(servicer, server): + rpc_method_handlers = { + 'GetCustomerFeed': grpc.unary_unary_rpc_method_handler( + servicer.GetCustomerFeed, + request_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_customer__feed__service__pb2.GetCustomerFeedRequest.FromString, + response_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_customer__feed__pb2.CustomerFeed.SerializeToString, + ), + 'MutateCustomerFeeds': grpc.unary_unary_rpc_method_handler( + servicer.MutateCustomerFeeds, + request_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_customer__feed__service__pb2.MutateCustomerFeedsRequest.FromString, + response_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_customer__feed__service__pb2.MutateCustomerFeedsResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'google.ads.googleads.v4.services.CustomerFeedService', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) diff --git a/google/ads/google_ads/v4/proto/services/customer_label_service_pb2.py b/google/ads/google_ads/v4/proto/services/customer_label_service_pb2.py new file mode 100644 index 000000000..e1865fe6a --- /dev/null +++ b/google/ads/google_ads/v4/proto/services/customer_label_service_pb2.py @@ -0,0 +1,386 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/services/customer_label_service.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.ads.google_ads.v4.proto.resources import customer_label_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_customer__label__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 +from google.api import client_pb2 as google_dot_api_dot_client__pb2 +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 +from google.rpc import status_pb2 as google_dot_rpc_dot_status__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/services/customer_label_service.proto', + package='google.ads.googleads.v4.services', + syntax='proto3', + serialized_options=_b('\n$com.google.ads.googleads.v4.servicesB\031CustomerLabelServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V4.Services\312\002 Google\\Ads\\GoogleAds\\V4\\Services\352\002$Google::Ads::GoogleAds::V4::Services'), + serialized_pb=_b('\nCgoogle/ads/googleads_v4/proto/services/customer_label_service.proto\x12 google.ads.googleads.v4.services\x1a.google.ads.googleads.v4.services.MutateCustomerLabelsResponse\"W\x82\xd3\xe4\x93\x02\x38\"3/v4/customers/{customer_id=*}/customerLabels:mutate:\x01*\xda\x41\x16\x63ustomer_id,operations\x1a\x1b\xca\x41\x18googleads.googleapis.comB\x80\x02\n$com.google.ads.googleads.v4.servicesB\x19\x43ustomerLabelServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V4.Services\xca\x02 Google\\Ads\\GoogleAds\\V4\\Services\xea\x02$Google::Ads::GoogleAds::V4::Servicesb\x06proto3') + , + dependencies=[google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_customer__label__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_api_dot_client__pb2.DESCRIPTOR,google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_api_dot_resource__pb2.DESCRIPTOR,google_dot_rpc_dot_status__pb2.DESCRIPTOR,]) + + + + +_GETCUSTOMERLABELREQUEST = _descriptor.Descriptor( + name='GetCustomerLabelRequest', + full_name='google.ads.googleads.v4.services.GetCustomerLabelRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.services.GetCustomerLabelRequest.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002\372A(\n&googleads.googleapis.com/CustomerLabel'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=307, + serialized_end=403, +) + + +_MUTATECUSTOMERLABELSREQUEST = _descriptor.Descriptor( + name='MutateCustomerLabelsRequest', + full_name='google.ads.googleads.v4.services.MutateCustomerLabelsRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='customer_id', full_name='google.ads.googleads.v4.services.MutateCustomerLabelsRequest.customer_id', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='operations', full_name='google.ads.googleads.v4.services.MutateCustomerLabelsRequest.operations', index=1, + number=2, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='partial_failure', full_name='google.ads.googleads.v4.services.MutateCustomerLabelsRequest.partial_failure', index=2, + number=3, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='validate_only', full_name='google.ads.googleads.v4.services.MutateCustomerLabelsRequest.validate_only', index=3, + number=4, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=406, + serialized_end=592, +) + + +_CUSTOMERLABELOPERATION = _descriptor.Descriptor( + name='CustomerLabelOperation', + full_name='google.ads.googleads.v4.services.CustomerLabelOperation', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='create', full_name='google.ads.googleads.v4.services.CustomerLabelOperation.create', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='remove', full_name='google.ads.googleads.v4.services.CustomerLabelOperation.remove', index=1, + number=2, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name='operation', full_name='google.ads.googleads.v4.services.CustomerLabelOperation.operation', + index=0, containing_type=None, fields=[]), + ], + serialized_start=594, + serialized_end=717, +) + + +_MUTATECUSTOMERLABELSRESPONSE = _descriptor.Descriptor( + name='MutateCustomerLabelsResponse', + full_name='google.ads.googleads.v4.services.MutateCustomerLabelsResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='partial_failure_error', full_name='google.ads.googleads.v4.services.MutateCustomerLabelsResponse.partial_failure_error', index=0, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='results', full_name='google.ads.googleads.v4.services.MutateCustomerLabelsResponse.results', index=1, + number=2, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=720, + serialized_end=879, +) + + +_MUTATECUSTOMERLABELRESULT = _descriptor.Descriptor( + name='MutateCustomerLabelResult', + full_name='google.ads.googleads.v4.services.MutateCustomerLabelResult', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.services.MutateCustomerLabelResult.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=881, + serialized_end=931, +) + +_MUTATECUSTOMERLABELSREQUEST.fields_by_name['operations'].message_type = _CUSTOMERLABELOPERATION +_CUSTOMERLABELOPERATION.fields_by_name['create'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_customer__label__pb2._CUSTOMERLABEL +_CUSTOMERLABELOPERATION.oneofs_by_name['operation'].fields.append( + _CUSTOMERLABELOPERATION.fields_by_name['create']) +_CUSTOMERLABELOPERATION.fields_by_name['create'].containing_oneof = _CUSTOMERLABELOPERATION.oneofs_by_name['operation'] +_CUSTOMERLABELOPERATION.oneofs_by_name['operation'].fields.append( + _CUSTOMERLABELOPERATION.fields_by_name['remove']) +_CUSTOMERLABELOPERATION.fields_by_name['remove'].containing_oneof = _CUSTOMERLABELOPERATION.oneofs_by_name['operation'] +_MUTATECUSTOMERLABELSRESPONSE.fields_by_name['partial_failure_error'].message_type = google_dot_rpc_dot_status__pb2._STATUS +_MUTATECUSTOMERLABELSRESPONSE.fields_by_name['results'].message_type = _MUTATECUSTOMERLABELRESULT +DESCRIPTOR.message_types_by_name['GetCustomerLabelRequest'] = _GETCUSTOMERLABELREQUEST +DESCRIPTOR.message_types_by_name['MutateCustomerLabelsRequest'] = _MUTATECUSTOMERLABELSREQUEST +DESCRIPTOR.message_types_by_name['CustomerLabelOperation'] = _CUSTOMERLABELOPERATION +DESCRIPTOR.message_types_by_name['MutateCustomerLabelsResponse'] = _MUTATECUSTOMERLABELSRESPONSE +DESCRIPTOR.message_types_by_name['MutateCustomerLabelResult'] = _MUTATECUSTOMERLABELRESULT +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +GetCustomerLabelRequest = _reflection.GeneratedProtocolMessageType('GetCustomerLabelRequest', (_message.Message,), dict( + DESCRIPTOR = _GETCUSTOMERLABELREQUEST, + __module__ = 'google.ads.googleads_v4.proto.services.customer_label_service_pb2' + , + __doc__ = """Request message for + [CustomerLabelService.GetCustomerLabel][google.ads.googleads.v4.services.CustomerLabelService.GetCustomerLabel]. + + + Attributes: + resource_name: + Required. The resource name of the customer-label relationship + to fetch. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.GetCustomerLabelRequest) + )) +_sym_db.RegisterMessage(GetCustomerLabelRequest) + +MutateCustomerLabelsRequest = _reflection.GeneratedProtocolMessageType('MutateCustomerLabelsRequest', (_message.Message,), dict( + DESCRIPTOR = _MUTATECUSTOMERLABELSREQUEST, + __module__ = 'google.ads.googleads_v4.proto.services.customer_label_service_pb2' + , + __doc__ = """Request message for + [CustomerLabelService.MutateCustomerLabels][google.ads.googleads.v4.services.CustomerLabelService.MutateCustomerLabels]. + + + Attributes: + customer_id: + Required. ID of the customer whose customer-label + relationships are being modified. + operations: + Required. The list of operations to perform on customer-label + relationships. + partial_failure: + If true, successful operations will be carried out and invalid + operations will return errors. If false, all operations will + be carried out in one transaction if and only if they are all + valid. Default is false. + validate_only: + If true, the request is validated but not executed. Only + errors are returned, not results. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.MutateCustomerLabelsRequest) + )) +_sym_db.RegisterMessage(MutateCustomerLabelsRequest) + +CustomerLabelOperation = _reflection.GeneratedProtocolMessageType('CustomerLabelOperation', (_message.Message,), dict( + DESCRIPTOR = _CUSTOMERLABELOPERATION, + __module__ = 'google.ads.googleads_v4.proto.services.customer_label_service_pb2' + , + __doc__ = """A single operation (create, remove) on a customer-label relationship. + + + Attributes: + operation: + The mutate operation. + create: + Create operation: No resource name is expected for the new + customer-label relationship. + remove: + Remove operation: A resource name for the customer-label + relationship being removed, in this format: + ``customers/{customer_id}/customerLabels/{label_id}`` + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.CustomerLabelOperation) + )) +_sym_db.RegisterMessage(CustomerLabelOperation) + +MutateCustomerLabelsResponse = _reflection.GeneratedProtocolMessageType('MutateCustomerLabelsResponse', (_message.Message,), dict( + DESCRIPTOR = _MUTATECUSTOMERLABELSRESPONSE, + __module__ = 'google.ads.googleads_v4.proto.services.customer_label_service_pb2' + , + __doc__ = """Response message for a customer labels mutate. + + + Attributes: + partial_failure_error: + Errors that pertain to operation failures in the partial + failure mode. Returned only when partial\_failure = true and + all errors occur inside the operations. If any errors occur + outside the operations (e.g. auth errors), we return an RPC + level error. + results: + All results for the mutate. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.MutateCustomerLabelsResponse) + )) +_sym_db.RegisterMessage(MutateCustomerLabelsResponse) + +MutateCustomerLabelResult = _reflection.GeneratedProtocolMessageType('MutateCustomerLabelResult', (_message.Message,), dict( + DESCRIPTOR = _MUTATECUSTOMERLABELRESULT, + __module__ = 'google.ads.googleads_v4.proto.services.customer_label_service_pb2' + , + __doc__ = """The result for a customer label mutate. + + + Attributes: + resource_name: + Returned for successful operations. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.MutateCustomerLabelResult) + )) +_sym_db.RegisterMessage(MutateCustomerLabelResult) + + +DESCRIPTOR._options = None +_GETCUSTOMERLABELREQUEST.fields_by_name['resource_name']._options = None +_MUTATECUSTOMERLABELSREQUEST.fields_by_name['customer_id']._options = None +_MUTATECUSTOMERLABELSREQUEST.fields_by_name['operations']._options = None + +_CUSTOMERLABELSERVICE = _descriptor.ServiceDescriptor( + name='CustomerLabelService', + full_name='google.ads.googleads.v4.services.CustomerLabelService', + file=DESCRIPTOR, + index=0, + serialized_options=_b('\312A\030googleads.googleapis.com'), + serialized_start=934, + serialized_end=1430, + methods=[ + _descriptor.MethodDescriptor( + name='GetCustomerLabel', + full_name='google.ads.googleads.v4.services.CustomerLabelService.GetCustomerLabel', + index=0, + containing_service=None, + input_type=_GETCUSTOMERLABELREQUEST, + output_type=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_customer__label__pb2._CUSTOMERLABEL, + serialized_options=_b('\202\323\344\223\0022\0220/v4/{resource_name=customers/*/customerLabels/*}\332A\rresource_name'), + ), + _descriptor.MethodDescriptor( + name='MutateCustomerLabels', + full_name='google.ads.googleads.v4.services.CustomerLabelService.MutateCustomerLabels', + index=1, + containing_service=None, + input_type=_MUTATECUSTOMERLABELSREQUEST, + output_type=_MUTATECUSTOMERLABELSRESPONSE, + serialized_options=_b('\202\323\344\223\0028\"3/v4/customers/{customer_id=*}/customerLabels:mutate:\001*\332A\026customer_id,operations'), + ), +]) +_sym_db.RegisterServiceDescriptor(_CUSTOMERLABELSERVICE) + +DESCRIPTOR.services_by_name['CustomerLabelService'] = _CUSTOMERLABELSERVICE + +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v4/proto/services/customer_label_service_pb2_grpc.py b/google/ads/google_ads/v4/proto/services/customer_label_service_pb2_grpc.py new file mode 100644 index 000000000..0854a6f26 --- /dev/null +++ b/google/ads/google_ads/v4/proto/services/customer_label_service_pb2_grpc.py @@ -0,0 +1,69 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +import grpc + +from google.ads.google_ads.v4.proto.resources import customer_label_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_customer__label__pb2 +from google.ads.google_ads.v4.proto.services import customer_label_service_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_customer__label__service__pb2 + + +class CustomerLabelServiceStub(object): + """Proto file describing the Customer Label service. + + Service to manage labels on customers. + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.GetCustomerLabel = channel.unary_unary( + '/google.ads.googleads.v4.services.CustomerLabelService/GetCustomerLabel', + request_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_customer__label__service__pb2.GetCustomerLabelRequest.SerializeToString, + response_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_customer__label__pb2.CustomerLabel.FromString, + ) + self.MutateCustomerLabels = channel.unary_unary( + '/google.ads.googleads.v4.services.CustomerLabelService/MutateCustomerLabels', + request_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_customer__label__service__pb2.MutateCustomerLabelsRequest.SerializeToString, + response_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_customer__label__service__pb2.MutateCustomerLabelsResponse.FromString, + ) + + +class CustomerLabelServiceServicer(object): + """Proto file describing the Customer Label service. + + Service to manage labels on customers. + """ + + def GetCustomerLabel(self, request, context): + """Returns the requested customer-label relationship in full detail. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def MutateCustomerLabels(self, request, context): + """Creates and removes customer-label relationships. + Operation statuses are returned. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_CustomerLabelServiceServicer_to_server(servicer, server): + rpc_method_handlers = { + 'GetCustomerLabel': grpc.unary_unary_rpc_method_handler( + servicer.GetCustomerLabel, + request_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_customer__label__service__pb2.GetCustomerLabelRequest.FromString, + response_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_customer__label__pb2.CustomerLabel.SerializeToString, + ), + 'MutateCustomerLabels': grpc.unary_unary_rpc_method_handler( + servicer.MutateCustomerLabels, + request_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_customer__label__service__pb2.MutateCustomerLabelsRequest.FromString, + response_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_customer__label__service__pb2.MutateCustomerLabelsResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'google.ads.googleads.v4.services.CustomerLabelService', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) diff --git a/google/ads/google_ads/v4/proto/services/customer_manager_link_service_pb2.py b/google/ads/google_ads/v4/proto/services/customer_manager_link_service_pb2.py new file mode 100644 index 000000000..5c77797db --- /dev/null +++ b/google/ads/google_ads/v4/proto/services/customer_manager_link_service_pb2.py @@ -0,0 +1,484 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/services/customer_manager_link_service.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.ads.google_ads.v4.proto.resources import customer_manager_link_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_customer__manager__link__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 +from google.api import client_pb2 as google_dot_api_dot_client__pb2 +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 +from google.protobuf import field_mask_pb2 as google_dot_protobuf_dot_field__mask__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/services/customer_manager_link_service.proto', + package='google.ads.googleads.v4.services', + syntax='proto3', + serialized_options=_b('\n$com.google.ads.googleads.v4.servicesB\037CustomerManagerLinkServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V4.Services\312\002 Google\\Ads\\GoogleAds\\V4\\Services\352\002$Google::Ads::GoogleAds::V4::Services'), + serialized_pb=_b('\nJgoogle/ads/googleads_v4/proto/services/customer_manager_link_service.proto\x12 google.ads.googleads.v4.services\x1a\x43google/ads/googleads_v4/proto/resources/customer_manager_link.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/protobuf/field_mask.proto\"l\n\x1dGetCustomerManagerLinkRequest\x12K\n\rresource_name\x18\x01 \x01(\tB4\xe0\x41\x02\xfa\x41.\n,googleads.googleapis.com/CustomerManagerLink\"\x95\x01\n MutateCustomerManagerLinkRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12W\n\noperations\x18\x02 \x03(\x0b\x32>.google.ads.googleads.v4.services.CustomerManagerLinkOperationB\x03\xe0\x41\x02\"y\n\x16MoveManagerLinkRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12+\n\x1eprevious_customer_manager_link\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x18\n\x0bnew_manager\x18\x03 \x01(\tB\x03\xe0\x41\x02\"\xa6\x01\n\x1c\x43ustomerManagerLinkOperation\x12/\n\x0bupdate_mask\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12H\n\x06update\x18\x02 \x01(\x0b\x32\x36.google.ads.googleads.v4.resources.CustomerManagerLinkH\x00\x42\x0b\n\toperation\"w\n!MutateCustomerManagerLinkResponse\x12R\n\x07results\x18\x01 \x03(\x0b\x32\x41.google.ads.googleads.v4.services.MutateCustomerManagerLinkResult\"0\n\x17MoveManagerLinkResponse\x12\x15\n\rresource_name\x18\x01 \x01(\t\"8\n\x1fMutateCustomerManagerLinkResult\x12\x15\n\rresource_name\x18\x01 \x01(\t2\xb5\x06\n\x1a\x43ustomerManagerLinkService\x12\xe1\x01\n\x16GetCustomerManagerLink\x12?.google.ads.googleads.v4.services.GetCustomerManagerLinkRequest\x1a\x36.google.ads.googleads.v4.resources.CustomerManagerLink\"N\x82\xd3\xe4\x93\x02\x38\x12\x36/v4/{resource_name=customers/*/customerManagerLinks/*}\xda\x41\rresource_name\x12\x83\x02\n\x19MutateCustomerManagerLink\x12\x42.google.ads.googleads.v4.services.MutateCustomerManagerLinkRequest\x1a\x43.google.ads.googleads.v4.services.MutateCustomerManagerLinkResponse\"]\x82\xd3\xe4\x93\x02>\"9/v4/customers/{customer_id=*}/customerManagerLinks:mutate:\x01*\xda\x41\x16\x63ustomer_id,operations\x12\x8f\x02\n\x0fMoveManagerLink\x12\x38.google.ads.googleads.v4.services.MoveManagerLinkRequest\x1a\x39.google.ads.googleads.v4.services.MoveManagerLinkResponse\"\x86\x01\x82\xd3\xe4\x93\x02G\"B/v4/customers/{customer_id=*}/customerManagerLinks:moveManagerLink:\x01*\xda\x41\x36\x63ustomer_id,previous_customer_manager_link,new_manager\x1a\x1b\xca\x41\x18googleads.googleapis.comB\x86\x02\n$com.google.ads.googleads.v4.servicesB\x1f\x43ustomerManagerLinkServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V4.Services\xca\x02 Google\\Ads\\GoogleAds\\V4\\Services\xea\x02$Google::Ads::GoogleAds::V4::Servicesb\x06proto3') + , + dependencies=[google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_customer__manager__link__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_api_dot_client__pb2.DESCRIPTOR,google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_api_dot_resource__pb2.DESCRIPTOR,google_dot_protobuf_dot_field__mask__pb2.DESCRIPTOR,]) + + + + +_GETCUSTOMERMANAGERLINKREQUEST = _descriptor.Descriptor( + name='GetCustomerManagerLinkRequest', + full_name='google.ads.googleads.v4.services.GetCustomerManagerLinkRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.services.GetCustomerManagerLinkRequest.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002\372A.\n,googleads.googleapis.com/CustomerManagerLink'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=330, + serialized_end=438, +) + + +_MUTATECUSTOMERMANAGERLINKREQUEST = _descriptor.Descriptor( + name='MutateCustomerManagerLinkRequest', + full_name='google.ads.googleads.v4.services.MutateCustomerManagerLinkRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='customer_id', full_name='google.ads.googleads.v4.services.MutateCustomerManagerLinkRequest.customer_id', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='operations', full_name='google.ads.googleads.v4.services.MutateCustomerManagerLinkRequest.operations', index=1, + number=2, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=441, + serialized_end=590, +) + + +_MOVEMANAGERLINKREQUEST = _descriptor.Descriptor( + name='MoveManagerLinkRequest', + full_name='google.ads.googleads.v4.services.MoveManagerLinkRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='customer_id', full_name='google.ads.googleads.v4.services.MoveManagerLinkRequest.customer_id', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='previous_customer_manager_link', full_name='google.ads.googleads.v4.services.MoveManagerLinkRequest.previous_customer_manager_link', index=1, + number=2, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='new_manager', full_name='google.ads.googleads.v4.services.MoveManagerLinkRequest.new_manager', index=2, + number=3, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=592, + serialized_end=713, +) + + +_CUSTOMERMANAGERLINKOPERATION = _descriptor.Descriptor( + name='CustomerManagerLinkOperation', + full_name='google.ads.googleads.v4.services.CustomerManagerLinkOperation', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='update_mask', full_name='google.ads.googleads.v4.services.CustomerManagerLinkOperation.update_mask', index=0, + number=4, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='update', full_name='google.ads.googleads.v4.services.CustomerManagerLinkOperation.update', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name='operation', full_name='google.ads.googleads.v4.services.CustomerManagerLinkOperation.operation', + index=0, containing_type=None, fields=[]), + ], + serialized_start=716, + serialized_end=882, +) + + +_MUTATECUSTOMERMANAGERLINKRESPONSE = _descriptor.Descriptor( + name='MutateCustomerManagerLinkResponse', + full_name='google.ads.googleads.v4.services.MutateCustomerManagerLinkResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='results', full_name='google.ads.googleads.v4.services.MutateCustomerManagerLinkResponse.results', index=0, + number=1, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=884, + serialized_end=1003, +) + + +_MOVEMANAGERLINKRESPONSE = _descriptor.Descriptor( + name='MoveManagerLinkResponse', + full_name='google.ads.googleads.v4.services.MoveManagerLinkResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.services.MoveManagerLinkResponse.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1005, + serialized_end=1053, +) + + +_MUTATECUSTOMERMANAGERLINKRESULT = _descriptor.Descriptor( + name='MutateCustomerManagerLinkResult', + full_name='google.ads.googleads.v4.services.MutateCustomerManagerLinkResult', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.services.MutateCustomerManagerLinkResult.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1055, + serialized_end=1111, +) + +_MUTATECUSTOMERMANAGERLINKREQUEST.fields_by_name['operations'].message_type = _CUSTOMERMANAGERLINKOPERATION +_CUSTOMERMANAGERLINKOPERATION.fields_by_name['update_mask'].message_type = google_dot_protobuf_dot_field__mask__pb2._FIELDMASK +_CUSTOMERMANAGERLINKOPERATION.fields_by_name['update'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_customer__manager__link__pb2._CUSTOMERMANAGERLINK +_CUSTOMERMANAGERLINKOPERATION.oneofs_by_name['operation'].fields.append( + _CUSTOMERMANAGERLINKOPERATION.fields_by_name['update']) +_CUSTOMERMANAGERLINKOPERATION.fields_by_name['update'].containing_oneof = _CUSTOMERMANAGERLINKOPERATION.oneofs_by_name['operation'] +_MUTATECUSTOMERMANAGERLINKRESPONSE.fields_by_name['results'].message_type = _MUTATECUSTOMERMANAGERLINKRESULT +DESCRIPTOR.message_types_by_name['GetCustomerManagerLinkRequest'] = _GETCUSTOMERMANAGERLINKREQUEST +DESCRIPTOR.message_types_by_name['MutateCustomerManagerLinkRequest'] = _MUTATECUSTOMERMANAGERLINKREQUEST +DESCRIPTOR.message_types_by_name['MoveManagerLinkRequest'] = _MOVEMANAGERLINKREQUEST +DESCRIPTOR.message_types_by_name['CustomerManagerLinkOperation'] = _CUSTOMERMANAGERLINKOPERATION +DESCRIPTOR.message_types_by_name['MutateCustomerManagerLinkResponse'] = _MUTATECUSTOMERMANAGERLINKRESPONSE +DESCRIPTOR.message_types_by_name['MoveManagerLinkResponse'] = _MOVEMANAGERLINKRESPONSE +DESCRIPTOR.message_types_by_name['MutateCustomerManagerLinkResult'] = _MUTATECUSTOMERMANAGERLINKRESULT +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +GetCustomerManagerLinkRequest = _reflection.GeneratedProtocolMessageType('GetCustomerManagerLinkRequest', (_message.Message,), dict( + DESCRIPTOR = _GETCUSTOMERMANAGERLINKREQUEST, + __module__ = 'google.ads.googleads_v4.proto.services.customer_manager_link_service_pb2' + , + __doc__ = """Request message for + [CustomerManagerLinkService.GetCustomerManagerLink][google.ads.googleads.v4.services.CustomerManagerLinkService.GetCustomerManagerLink]. + + + Attributes: + resource_name: + Required. The resource name of the CustomerManagerLink to + fetch. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.GetCustomerManagerLinkRequest) + )) +_sym_db.RegisterMessage(GetCustomerManagerLinkRequest) + +MutateCustomerManagerLinkRequest = _reflection.GeneratedProtocolMessageType('MutateCustomerManagerLinkRequest', (_message.Message,), dict( + DESCRIPTOR = _MUTATECUSTOMERMANAGERLINKREQUEST, + __module__ = 'google.ads.googleads_v4.proto.services.customer_manager_link_service_pb2' + , + __doc__ = """Request message for + [CustomerManagerLinkService.MutateCustomerManagerLink][google.ads.googleads.v4.services.CustomerManagerLinkService.MutateCustomerManagerLink]. + + + Attributes: + customer_id: + Required. The ID of the customer whose customer manager links + are being modified. + operations: + Required. The list of operations to perform on individual + customer manager links. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.MutateCustomerManagerLinkRequest) + )) +_sym_db.RegisterMessage(MutateCustomerManagerLinkRequest) + +MoveManagerLinkRequest = _reflection.GeneratedProtocolMessageType('MoveManagerLinkRequest', (_message.Message,), dict( + DESCRIPTOR = _MOVEMANAGERLINKREQUEST, + __module__ = 'google.ads.googleads_v4.proto.services.customer_manager_link_service_pb2' + , + __doc__ = """Request message for + [CustomerManagerLinkService.MoveManagerLink][google.ads.googleads.v4.services.CustomerManagerLinkService.MoveManagerLink]. + + + Attributes: + customer_id: + Required. The ID of the client customer that is being moved. + previous_customer_manager_link: + Required. The resource name of the previous + CustomerManagerLink. The resource name has the form: ``custome + rs/{customer_id}/customerManagerLinks/{manager_customer_id}~{m + anager_link_id}`` + new_manager: + Required. The resource name of the new manager customer that + the client wants to move to. Customer resource names have the + format: "customers/{customer\_id}" + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.MoveManagerLinkRequest) + )) +_sym_db.RegisterMessage(MoveManagerLinkRequest) + +CustomerManagerLinkOperation = _reflection.GeneratedProtocolMessageType('CustomerManagerLinkOperation', (_message.Message,), dict( + DESCRIPTOR = _CUSTOMERMANAGERLINKOPERATION, + __module__ = 'google.ads.googleads_v4.proto.services.customer_manager_link_service_pb2' + , + __doc__ = """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 terminates link to + manager. + + + Attributes: + update_mask: + FieldMask that determines which resource fields are modified + in an update. + operation: + The mutate operation. + update: + Update operation: The link is expected to have a valid + resource name. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.CustomerManagerLinkOperation) + )) +_sym_db.RegisterMessage(CustomerManagerLinkOperation) + +MutateCustomerManagerLinkResponse = _reflection.GeneratedProtocolMessageType('MutateCustomerManagerLinkResponse', (_message.Message,), dict( + DESCRIPTOR = _MUTATECUSTOMERMANAGERLINKRESPONSE, + __module__ = 'google.ads.googleads_v4.proto.services.customer_manager_link_service_pb2' + , + __doc__ = """Response message for a CustomerManagerLink mutate. + + + Attributes: + results: + A result that identifies the resource affected by the mutate + request. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.MutateCustomerManagerLinkResponse) + )) +_sym_db.RegisterMessage(MutateCustomerManagerLinkResponse) + +MoveManagerLinkResponse = _reflection.GeneratedProtocolMessageType('MoveManagerLinkResponse', (_message.Message,), dict( + DESCRIPTOR = _MOVEMANAGERLINKRESPONSE, + __module__ = 'google.ads.googleads_v4.proto.services.customer_manager_link_service_pb2' + , + __doc__ = """Response message for a CustomerManagerLink moveManagerLink. + + + Attributes: + resource_name: + Returned for successful operations. Represents a + CustomerManagerLink resource of the newly created link between + client customer and new manager customer. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.MoveManagerLinkResponse) + )) +_sym_db.RegisterMessage(MoveManagerLinkResponse) + +MutateCustomerManagerLinkResult = _reflection.GeneratedProtocolMessageType('MutateCustomerManagerLinkResult', (_message.Message,), dict( + DESCRIPTOR = _MUTATECUSTOMERMANAGERLINKRESULT, + __module__ = 'google.ads.googleads_v4.proto.services.customer_manager_link_service_pb2' + , + __doc__ = """The result for the customer manager link mutate. + + + Attributes: + resource_name: + Returned for successful operations. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.MutateCustomerManagerLinkResult) + )) +_sym_db.RegisterMessage(MutateCustomerManagerLinkResult) + + +DESCRIPTOR._options = None +_GETCUSTOMERMANAGERLINKREQUEST.fields_by_name['resource_name']._options = None +_MUTATECUSTOMERMANAGERLINKREQUEST.fields_by_name['customer_id']._options = None +_MUTATECUSTOMERMANAGERLINKREQUEST.fields_by_name['operations']._options = None +_MOVEMANAGERLINKREQUEST.fields_by_name['customer_id']._options = None +_MOVEMANAGERLINKREQUEST.fields_by_name['previous_customer_manager_link']._options = None +_MOVEMANAGERLINKREQUEST.fields_by_name['new_manager']._options = None + +_CUSTOMERMANAGERLINKSERVICE = _descriptor.ServiceDescriptor( + name='CustomerManagerLinkService', + full_name='google.ads.googleads.v4.services.CustomerManagerLinkService', + file=DESCRIPTOR, + index=0, + serialized_options=_b('\312A\030googleads.googleapis.com'), + serialized_start=1114, + serialized_end=1935, + methods=[ + _descriptor.MethodDescriptor( + name='GetCustomerManagerLink', + full_name='google.ads.googleads.v4.services.CustomerManagerLinkService.GetCustomerManagerLink', + index=0, + containing_service=None, + input_type=_GETCUSTOMERMANAGERLINKREQUEST, + output_type=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_customer__manager__link__pb2._CUSTOMERMANAGERLINK, + serialized_options=_b('\202\323\344\223\0028\0226/v4/{resource_name=customers/*/customerManagerLinks/*}\332A\rresource_name'), + ), + _descriptor.MethodDescriptor( + name='MutateCustomerManagerLink', + full_name='google.ads.googleads.v4.services.CustomerManagerLinkService.MutateCustomerManagerLink', + index=1, + containing_service=None, + input_type=_MUTATECUSTOMERMANAGERLINKREQUEST, + output_type=_MUTATECUSTOMERMANAGERLINKRESPONSE, + serialized_options=_b('\202\323\344\223\002>\"9/v4/customers/{customer_id=*}/customerManagerLinks:mutate:\001*\332A\026customer_id,operations'), + ), + _descriptor.MethodDescriptor( + name='MoveManagerLink', + full_name='google.ads.googleads.v4.services.CustomerManagerLinkService.MoveManagerLink', + index=2, + containing_service=None, + input_type=_MOVEMANAGERLINKREQUEST, + output_type=_MOVEMANAGERLINKRESPONSE, + serialized_options=_b('\202\323\344\223\002G\"B/v4/customers/{customer_id=*}/customerManagerLinks:moveManagerLink:\001*\332A6customer_id,previous_customer_manager_link,new_manager'), + ), +]) +_sym_db.RegisterServiceDescriptor(_CUSTOMERMANAGERLINKSERVICE) + +DESCRIPTOR.services_by_name['CustomerManagerLinkService'] = _CUSTOMERMANAGERLINKSERVICE + +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v4/proto/services/customer_manager_link_service_pb2_grpc.py b/google/ads/google_ads/v4/proto/services/customer_manager_link_service_pb2_grpc.py new file mode 100644 index 000000000..01f424d4c --- /dev/null +++ b/google/ads/google_ads/v4/proto/services/customer_manager_link_service_pb2_grpc.py @@ -0,0 +1,85 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +import grpc + +from google.ads.google_ads.v4.proto.resources import customer_manager_link_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_customer__manager__link__pb2 +from google.ads.google_ads.v4.proto.services import customer_manager_link_service_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_customer__manager__link__service__pb2 + + +class CustomerManagerLinkServiceStub(object): + """Service to manage customer-manager links. + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.GetCustomerManagerLink = channel.unary_unary( + '/google.ads.googleads.v4.services.CustomerManagerLinkService/GetCustomerManagerLink', + request_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_customer__manager__link__service__pb2.GetCustomerManagerLinkRequest.SerializeToString, + response_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_customer__manager__link__pb2.CustomerManagerLink.FromString, + ) + self.MutateCustomerManagerLink = channel.unary_unary( + '/google.ads.googleads.v4.services.CustomerManagerLinkService/MutateCustomerManagerLink', + request_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_customer__manager__link__service__pb2.MutateCustomerManagerLinkRequest.SerializeToString, + response_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_customer__manager__link__service__pb2.MutateCustomerManagerLinkResponse.FromString, + ) + self.MoveManagerLink = channel.unary_unary( + '/google.ads.googleads.v4.services.CustomerManagerLinkService/MoveManagerLink', + request_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_customer__manager__link__service__pb2.MoveManagerLinkRequest.SerializeToString, + response_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_customer__manager__link__service__pb2.MoveManagerLinkResponse.FromString, + ) + + +class CustomerManagerLinkServiceServicer(object): + """Service to manage customer-manager links. + """ + + def GetCustomerManagerLink(self, request, context): + """Returns the requested CustomerManagerLink in full detail. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def MutateCustomerManagerLink(self, request, context): + """Creates or updates customer manager links. Operation statuses are returned. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def MoveManagerLink(self, request, context): + """Moves a client customer to a new manager customer. + This simplifies the complex request that requires two operations to move + a client customer to a new manager. i.e: + 1. Update operation with Status INACTIVE (previous manager) and, + 2. Update operation with Status ACTIVE (new manager). + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_CustomerManagerLinkServiceServicer_to_server(servicer, server): + rpc_method_handlers = { + 'GetCustomerManagerLink': grpc.unary_unary_rpc_method_handler( + servicer.GetCustomerManagerLink, + request_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_customer__manager__link__service__pb2.GetCustomerManagerLinkRequest.FromString, + response_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_customer__manager__link__pb2.CustomerManagerLink.SerializeToString, + ), + 'MutateCustomerManagerLink': grpc.unary_unary_rpc_method_handler( + servicer.MutateCustomerManagerLink, + request_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_customer__manager__link__service__pb2.MutateCustomerManagerLinkRequest.FromString, + response_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_customer__manager__link__service__pb2.MutateCustomerManagerLinkResponse.SerializeToString, + ), + 'MoveManagerLink': grpc.unary_unary_rpc_method_handler( + servicer.MoveManagerLink, + request_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_customer__manager__link__service__pb2.MoveManagerLinkRequest.FromString, + response_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_customer__manager__link__service__pb2.MoveManagerLinkResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'google.ads.googleads.v4.services.CustomerManagerLinkService', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) diff --git a/google/ads/google_ads/v4/proto/services/customer_negative_criterion_service_pb2.py b/google/ads/google_ads/v4/proto/services/customer_negative_criterion_service_pb2.py new file mode 100644 index 000000000..fccd479b4 --- /dev/null +++ b/google/ads/google_ads/v4/proto/services/customer_negative_criterion_service_pb2.py @@ -0,0 +1,386 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/services/customer_negative_criterion_service.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.ads.google_ads.v4.proto.resources import customer_negative_criterion_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_customer__negative__criterion__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 +from google.api import client_pb2 as google_dot_api_dot_client__pb2 +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 +from google.rpc import status_pb2 as google_dot_rpc_dot_status__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/services/customer_negative_criterion_service.proto', + package='google.ads.googleads.v4.services', + syntax='proto3', + serialized_options=_b('\n$com.google.ads.googleads.v4.servicesB%CustomerNegativeCriterionServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V4.Services\312\002 Google\\Ads\\GoogleAds\\V4\\Services\352\002$Google::Ads::GoogleAds::V4::Services'), + serialized_pb=_b('\nPgoogle/ads/googleads_v4/proto/services/customer_negative_criterion_service.proto\x12 google.ads.googleads.v4.services\x1aIgoogle/ads/googleads_v4/proto/resources/customer_negative_criterion.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x17google/rpc/status.proto\"x\n#GetCustomerNegativeCriterionRequest\x12Q\n\rresource_name\x18\x01 \x01(\tB:\xe0\x41\x02\xfa\x41\x34\n2googleads.googleapis.com/CustomerNegativeCriterion\"\xd0\x01\n%MutateCustomerNegativeCriteriaRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12]\n\noperations\x18\x02 \x03(\x0b\x32\x44.google.ads.googleads.v4.services.CustomerNegativeCriterionOperationB\x03\xe0\x41\x02\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\"\x93\x01\n\"CustomerNegativeCriterionOperation\x12N\n\x06\x63reate\x18\x01 \x01(\x0b\x32<.google.ads.googleads.v4.resources.CustomerNegativeCriterionH\x00\x12\x10\n\x06remove\x18\x02 \x01(\tH\x00\x42\x0b\n\toperation\"\xb4\x01\n&MutateCustomerNegativeCriteriaResponse\x12\x31\n\x15partial_failure_error\x18\x03 \x01(\x0b\x32\x12.google.rpc.Status\x12W\n\x07results\x18\x02 \x03(\x0b\x32\x46.google.ads.googleads.v4.services.MutateCustomerNegativeCriteriaResult\"=\n$MutateCustomerNegativeCriteriaResult\x12\x15\n\rresource_name\x18\x01 \x01(\t2\xd2\x04\n CustomerNegativeCriterionService\x12\xf7\x01\n\x1cGetCustomerNegativeCriterion\x12\x45.google.ads.googleads.v4.services.GetCustomerNegativeCriterionRequest\x1a<.google.ads.googleads.v4.resources.CustomerNegativeCriterion\"R\x82\xd3\xe4\x93\x02<\x12:/v4/{resource_name=customers/*/customerNegativeCriteria/*}\xda\x41\rresource_name\x12\x96\x02\n\x1eMutateCustomerNegativeCriteria\x12G.google.ads.googleads.v4.services.MutateCustomerNegativeCriteriaRequest\x1aH.google.ads.googleads.v4.services.MutateCustomerNegativeCriteriaResponse\"a\x82\xd3\xe4\x93\x02\x42\"=/v4/customers/{customer_id=*}/customerNegativeCriteria:mutate:\x01*\xda\x41\x16\x63ustomer_id,operations\x1a\x1b\xca\x41\x18googleads.googleapis.comB\x8c\x02\n$com.google.ads.googleads.v4.servicesB%CustomerNegativeCriterionServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V4.Services\xca\x02 Google\\Ads\\GoogleAds\\V4\\Services\xea\x02$Google::Ads::GoogleAds::V4::Servicesb\x06proto3') + , + dependencies=[google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_customer__negative__criterion__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_api_dot_client__pb2.DESCRIPTOR,google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_api_dot_resource__pb2.DESCRIPTOR,google_dot_rpc_dot_status__pb2.DESCRIPTOR,]) + + + + +_GETCUSTOMERNEGATIVECRITERIONREQUEST = _descriptor.Descriptor( + name='GetCustomerNegativeCriterionRequest', + full_name='google.ads.googleads.v4.services.GetCustomerNegativeCriterionRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.services.GetCustomerNegativeCriterionRequest.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002\372A4\n2googleads.googleapis.com/CustomerNegativeCriterion'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=333, + serialized_end=453, +) + + +_MUTATECUSTOMERNEGATIVECRITERIAREQUEST = _descriptor.Descriptor( + name='MutateCustomerNegativeCriteriaRequest', + full_name='google.ads.googleads.v4.services.MutateCustomerNegativeCriteriaRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='customer_id', full_name='google.ads.googleads.v4.services.MutateCustomerNegativeCriteriaRequest.customer_id', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='operations', full_name='google.ads.googleads.v4.services.MutateCustomerNegativeCriteriaRequest.operations', index=1, + number=2, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='partial_failure', full_name='google.ads.googleads.v4.services.MutateCustomerNegativeCriteriaRequest.partial_failure', index=2, + number=3, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='validate_only', full_name='google.ads.googleads.v4.services.MutateCustomerNegativeCriteriaRequest.validate_only', index=3, + number=4, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=456, + serialized_end=664, +) + + +_CUSTOMERNEGATIVECRITERIONOPERATION = _descriptor.Descriptor( + name='CustomerNegativeCriterionOperation', + full_name='google.ads.googleads.v4.services.CustomerNegativeCriterionOperation', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='create', full_name='google.ads.googleads.v4.services.CustomerNegativeCriterionOperation.create', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='remove', full_name='google.ads.googleads.v4.services.CustomerNegativeCriterionOperation.remove', index=1, + number=2, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name='operation', full_name='google.ads.googleads.v4.services.CustomerNegativeCriterionOperation.operation', + index=0, containing_type=None, fields=[]), + ], + serialized_start=667, + serialized_end=814, +) + + +_MUTATECUSTOMERNEGATIVECRITERIARESPONSE = _descriptor.Descriptor( + name='MutateCustomerNegativeCriteriaResponse', + full_name='google.ads.googleads.v4.services.MutateCustomerNegativeCriteriaResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='partial_failure_error', full_name='google.ads.googleads.v4.services.MutateCustomerNegativeCriteriaResponse.partial_failure_error', index=0, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='results', full_name='google.ads.googleads.v4.services.MutateCustomerNegativeCriteriaResponse.results', index=1, + number=2, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=817, + serialized_end=997, +) + + +_MUTATECUSTOMERNEGATIVECRITERIARESULT = _descriptor.Descriptor( + name='MutateCustomerNegativeCriteriaResult', + full_name='google.ads.googleads.v4.services.MutateCustomerNegativeCriteriaResult', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.services.MutateCustomerNegativeCriteriaResult.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=999, + serialized_end=1060, +) + +_MUTATECUSTOMERNEGATIVECRITERIAREQUEST.fields_by_name['operations'].message_type = _CUSTOMERNEGATIVECRITERIONOPERATION +_CUSTOMERNEGATIVECRITERIONOPERATION.fields_by_name['create'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_customer__negative__criterion__pb2._CUSTOMERNEGATIVECRITERION +_CUSTOMERNEGATIVECRITERIONOPERATION.oneofs_by_name['operation'].fields.append( + _CUSTOMERNEGATIVECRITERIONOPERATION.fields_by_name['create']) +_CUSTOMERNEGATIVECRITERIONOPERATION.fields_by_name['create'].containing_oneof = _CUSTOMERNEGATIVECRITERIONOPERATION.oneofs_by_name['operation'] +_CUSTOMERNEGATIVECRITERIONOPERATION.oneofs_by_name['operation'].fields.append( + _CUSTOMERNEGATIVECRITERIONOPERATION.fields_by_name['remove']) +_CUSTOMERNEGATIVECRITERIONOPERATION.fields_by_name['remove'].containing_oneof = _CUSTOMERNEGATIVECRITERIONOPERATION.oneofs_by_name['operation'] +_MUTATECUSTOMERNEGATIVECRITERIARESPONSE.fields_by_name['partial_failure_error'].message_type = google_dot_rpc_dot_status__pb2._STATUS +_MUTATECUSTOMERNEGATIVECRITERIARESPONSE.fields_by_name['results'].message_type = _MUTATECUSTOMERNEGATIVECRITERIARESULT +DESCRIPTOR.message_types_by_name['GetCustomerNegativeCriterionRequest'] = _GETCUSTOMERNEGATIVECRITERIONREQUEST +DESCRIPTOR.message_types_by_name['MutateCustomerNegativeCriteriaRequest'] = _MUTATECUSTOMERNEGATIVECRITERIAREQUEST +DESCRIPTOR.message_types_by_name['CustomerNegativeCriterionOperation'] = _CUSTOMERNEGATIVECRITERIONOPERATION +DESCRIPTOR.message_types_by_name['MutateCustomerNegativeCriteriaResponse'] = _MUTATECUSTOMERNEGATIVECRITERIARESPONSE +DESCRIPTOR.message_types_by_name['MutateCustomerNegativeCriteriaResult'] = _MUTATECUSTOMERNEGATIVECRITERIARESULT +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +GetCustomerNegativeCriterionRequest = _reflection.GeneratedProtocolMessageType('GetCustomerNegativeCriterionRequest', (_message.Message,), dict( + DESCRIPTOR = _GETCUSTOMERNEGATIVECRITERIONREQUEST, + __module__ = 'google.ads.googleads_v4.proto.services.customer_negative_criterion_service_pb2' + , + __doc__ = """Request message for + [CustomerNegativeCriterionService.GetCustomerNegativeCriterion][google.ads.googleads.v4.services.CustomerNegativeCriterionService.GetCustomerNegativeCriterion]. + + + Attributes: + resource_name: + Required. The resource name of the criterion to fetch. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.GetCustomerNegativeCriterionRequest) + )) +_sym_db.RegisterMessage(GetCustomerNegativeCriterionRequest) + +MutateCustomerNegativeCriteriaRequest = _reflection.GeneratedProtocolMessageType('MutateCustomerNegativeCriteriaRequest', (_message.Message,), dict( + DESCRIPTOR = _MUTATECUSTOMERNEGATIVECRITERIAREQUEST, + __module__ = 'google.ads.googleads_v4.proto.services.customer_negative_criterion_service_pb2' + , + __doc__ = """Request message for + [CustomerNegativeCriterionService.MutateCustomerNegativeCriteria][google.ads.googleads.v4.services.CustomerNegativeCriterionService.MutateCustomerNegativeCriteria]. + + + Attributes: + customer_id: + Required. The ID of the customer whose criteria are being + modified. + operations: + Required. The list of operations to perform on individual + criteria. + partial_failure: + If true, successful operations will be carried out and invalid + operations will return errors. If false, all operations will + be carried out in one transaction if and only if they are all + valid. Default is false. + validate_only: + If true, the request is validated but not executed. Only + errors are returned, not results. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.MutateCustomerNegativeCriteriaRequest) + )) +_sym_db.RegisterMessage(MutateCustomerNegativeCriteriaRequest) + +CustomerNegativeCriterionOperation = _reflection.GeneratedProtocolMessageType('CustomerNegativeCriterionOperation', (_message.Message,), dict( + DESCRIPTOR = _CUSTOMERNEGATIVECRITERIONOPERATION, + __module__ = 'google.ads.googleads_v4.proto.services.customer_negative_criterion_service_pb2' + , + __doc__ = """A single operation (create or remove) on a customer level negative + criterion. + + + Attributes: + operation: + The mutate operation. + create: + Create operation: No resource name is expected for the new + criterion. + remove: + Remove operation: A resource name for the removed criterion is + expected, in this format: ``customers/{customer_id}/customerN + egativeCriteria/{criterion_id}`` + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.CustomerNegativeCriterionOperation) + )) +_sym_db.RegisterMessage(CustomerNegativeCriterionOperation) + +MutateCustomerNegativeCriteriaResponse = _reflection.GeneratedProtocolMessageType('MutateCustomerNegativeCriteriaResponse', (_message.Message,), dict( + DESCRIPTOR = _MUTATECUSTOMERNEGATIVECRITERIARESPONSE, + __module__ = 'google.ads.googleads_v4.proto.services.customer_negative_criterion_service_pb2' + , + __doc__ = """Response message for customer negative criterion mutate. + + + Attributes: + partial_failure_error: + Errors that pertain to operation failures in the partial + failure mode. Returned only when partial\_failure = true and + all errors occur inside the operations. If any errors occur + outside the operations (e.g. auth errors), we return an RPC + level error. + results: + All results for the mutate. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.MutateCustomerNegativeCriteriaResponse) + )) +_sym_db.RegisterMessage(MutateCustomerNegativeCriteriaResponse) + +MutateCustomerNegativeCriteriaResult = _reflection.GeneratedProtocolMessageType('MutateCustomerNegativeCriteriaResult', (_message.Message,), dict( + DESCRIPTOR = _MUTATECUSTOMERNEGATIVECRITERIARESULT, + __module__ = 'google.ads.googleads_v4.proto.services.customer_negative_criterion_service_pb2' + , + __doc__ = """The result for the criterion mutate. + + + Attributes: + resource_name: + Returned for successful operations. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.MutateCustomerNegativeCriteriaResult) + )) +_sym_db.RegisterMessage(MutateCustomerNegativeCriteriaResult) + + +DESCRIPTOR._options = None +_GETCUSTOMERNEGATIVECRITERIONREQUEST.fields_by_name['resource_name']._options = None +_MUTATECUSTOMERNEGATIVECRITERIAREQUEST.fields_by_name['customer_id']._options = None +_MUTATECUSTOMERNEGATIVECRITERIAREQUEST.fields_by_name['operations']._options = None + +_CUSTOMERNEGATIVECRITERIONSERVICE = _descriptor.ServiceDescriptor( + name='CustomerNegativeCriterionService', + full_name='google.ads.googleads.v4.services.CustomerNegativeCriterionService', + file=DESCRIPTOR, + index=0, + serialized_options=_b('\312A\030googleads.googleapis.com'), + serialized_start=1063, + serialized_end=1657, + methods=[ + _descriptor.MethodDescriptor( + name='GetCustomerNegativeCriterion', + full_name='google.ads.googleads.v4.services.CustomerNegativeCriterionService.GetCustomerNegativeCriterion', + index=0, + containing_service=None, + input_type=_GETCUSTOMERNEGATIVECRITERIONREQUEST, + output_type=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_customer__negative__criterion__pb2._CUSTOMERNEGATIVECRITERION, + serialized_options=_b('\202\323\344\223\002<\022:/v4/{resource_name=customers/*/customerNegativeCriteria/*}\332A\rresource_name'), + ), + _descriptor.MethodDescriptor( + name='MutateCustomerNegativeCriteria', + full_name='google.ads.googleads.v4.services.CustomerNegativeCriterionService.MutateCustomerNegativeCriteria', + index=1, + containing_service=None, + input_type=_MUTATECUSTOMERNEGATIVECRITERIAREQUEST, + output_type=_MUTATECUSTOMERNEGATIVECRITERIARESPONSE, + serialized_options=_b('\202\323\344\223\002B\"=/v4/customers/{customer_id=*}/customerNegativeCriteria:mutate:\001*\332A\026customer_id,operations'), + ), +]) +_sym_db.RegisterServiceDescriptor(_CUSTOMERNEGATIVECRITERIONSERVICE) + +DESCRIPTOR.services_by_name['CustomerNegativeCriterionService'] = _CUSTOMERNEGATIVECRITERIONSERVICE + +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/services/customer_negative_criterion_service_pb2_grpc.py b/google/ads/google_ads/v4/proto/services/customer_negative_criterion_service_pb2_grpc.py similarity index 75% rename from google/ads/google_ads/v1/proto/services/customer_negative_criterion_service_pb2_grpc.py rename to google/ads/google_ads/v4/proto/services/customer_negative_criterion_service_pb2_grpc.py index adc68853c..7eaa60c9c 100644 --- a/google/ads/google_ads/v1/proto/services/customer_negative_criterion_service_pb2_grpc.py +++ b/google/ads/google_ads/v4/proto/services/customer_negative_criterion_service_pb2_grpc.py @@ -1,8 +1,8 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc -from google.ads.google_ads.v1.proto.resources import customer_negative_criterion_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_customer__negative__criterion__pb2 -from google.ads.google_ads.v1.proto.services import customer_negative_criterion_service_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_customer__negative__criterion__service__pb2 +from google.ads.google_ads.v4.proto.resources import customer_negative_criterion_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_customer__negative__criterion__pb2 +from google.ads.google_ads.v4.proto.services import customer_negative_criterion_service_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_customer__negative__criterion__service__pb2 class CustomerNegativeCriterionServiceStub(object): @@ -18,14 +18,14 @@ def __init__(self, channel): channel: A grpc.Channel. """ self.GetCustomerNegativeCriterion = channel.unary_unary( - '/google.ads.googleads.v1.services.CustomerNegativeCriterionService/GetCustomerNegativeCriterion', - request_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_customer__negative__criterion__service__pb2.GetCustomerNegativeCriterionRequest.SerializeToString, - response_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_customer__negative__criterion__pb2.CustomerNegativeCriterion.FromString, + '/google.ads.googleads.v4.services.CustomerNegativeCriterionService/GetCustomerNegativeCriterion', + request_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_customer__negative__criterion__service__pb2.GetCustomerNegativeCriterionRequest.SerializeToString, + response_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_customer__negative__criterion__pb2.CustomerNegativeCriterion.FromString, ) self.MutateCustomerNegativeCriteria = channel.unary_unary( - '/google.ads.googleads.v1.services.CustomerNegativeCriterionService/MutateCustomerNegativeCriteria', - request_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_customer__negative__criterion__service__pb2.MutateCustomerNegativeCriteriaRequest.SerializeToString, - response_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_customer__negative__criterion__service__pb2.MutateCustomerNegativeCriteriaResponse.FromString, + '/google.ads.googleads.v4.services.CustomerNegativeCriterionService/MutateCustomerNegativeCriteria', + request_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_customer__negative__criterion__service__pb2.MutateCustomerNegativeCriteriaRequest.SerializeToString, + response_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_customer__negative__criterion__service__pb2.MutateCustomerNegativeCriteriaResponse.FromString, ) @@ -54,15 +54,15 @@ def add_CustomerNegativeCriterionServiceServicer_to_server(servicer, server): rpc_method_handlers = { 'GetCustomerNegativeCriterion': grpc.unary_unary_rpc_method_handler( servicer.GetCustomerNegativeCriterion, - request_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_customer__negative__criterion__service__pb2.GetCustomerNegativeCriterionRequest.FromString, - response_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_customer__negative__criterion__pb2.CustomerNegativeCriterion.SerializeToString, + request_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_customer__negative__criterion__service__pb2.GetCustomerNegativeCriterionRequest.FromString, + response_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_customer__negative__criterion__pb2.CustomerNegativeCriterion.SerializeToString, ), 'MutateCustomerNegativeCriteria': grpc.unary_unary_rpc_method_handler( servicer.MutateCustomerNegativeCriteria, - request_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_customer__negative__criterion__service__pb2.MutateCustomerNegativeCriteriaRequest.FromString, - response_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_customer__negative__criterion__service__pb2.MutateCustomerNegativeCriteriaResponse.SerializeToString, + request_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_customer__negative__criterion__service__pb2.MutateCustomerNegativeCriteriaRequest.FromString, + response_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_customer__negative__criterion__service__pb2.MutateCustomerNegativeCriteriaResponse.SerializeToString, ), } generic_handler = grpc.method_handlers_generic_handler( - 'google.ads.googleads.v1.services.CustomerNegativeCriterionService', rpc_method_handlers) + 'google.ads.googleads.v4.services.CustomerNegativeCriterionService', rpc_method_handlers) server.add_generic_rpc_handlers((generic_handler,)) diff --git a/google/ads/google_ads/v4/proto/services/customer_service_pb2.py b/google/ads/google_ads/v4/proto/services/customer_service_pb2.py new file mode 100644 index 000000000..8f6bc9ccf --- /dev/null +++ b/google/ads/google_ads/v4/proto/services/customer_service_pb2.py @@ -0,0 +1,591 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/services/customer_service.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.ads.google_ads.v4.proto.enums import access_role_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_access__role__pb2 +from google.ads.google_ads.v4.proto.resources import customer_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_customer__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 +from google.api import client_pb2 as google_dot_api_dot_client__pb2 +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 +from google.protobuf import field_mask_pb2 as google_dot_protobuf_dot_field__mask__pb2 +from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/services/customer_service.proto', + package='google.ads.googleads.v4.services', + syntax='proto3', + serialized_options=_b('\n$com.google.ads.googleads.v4.servicesB\024CustomerServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V4.Services\312\002 Google\\Ads\\GoogleAds\\V4\\Services\352\002$Google::Ads::GoogleAds::V4::Services'), + serialized_pb=_b('\n=google/ads/googleads_v4/proto/services/customer_service.proto\x12 google.ads.googleads.v4.services\x1a\x35google/ads/googleads_v4/proto/enums/access_role.proto\x1a\x36google/ads/googleads_v4/proto/resources/customer.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/protobuf/field_mask.proto\x1a\x1egoogle/protobuf/wrappers.proto\"V\n\x12GetCustomerRequest\x12@\n\rresource_name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!googleads.googleapis.com/Customer\"\x95\x01\n\x15MutateCustomerRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12K\n\toperation\x18\x04 \x01(\x0b\x32\x33.google.ads.googleads.v4.services.CustomerOperationB\x03\xe0\x41\x02\x12\x15\n\rvalidate_only\x18\x05 \x01(\x08\"\x86\x02\n\x1b\x43reateCustomerClientRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12I\n\x0f\x63ustomer_client\x18\x02 \x01(\x0b\x32+.google.ads.googleads.v4.resources.CustomerB\x03\xe0\x41\x02\x12\x33\n\remail_address\x18\x03 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12M\n\x0b\x61\x63\x63\x65ss_role\x18\x04 \x01(\x0e\x32\x38.google.ads.googleads.v4.enums.AccessRoleEnum.AccessRole\"\x81\x01\n\x11\x43ustomerOperation\x12;\n\x06update\x18\x01 \x01(\x0b\x32+.google.ads.googleads.v4.resources.Customer\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"N\n\x1c\x43reateCustomerClientResponse\x12\x15\n\rresource_name\x18\x02 \x01(\t\x12\x17\n\x0finvitation_link\x18\x03 \x01(\t\"`\n\x16MutateCustomerResponse\x12\x46\n\x06result\x18\x02 \x01(\x0b\x32\x36.google.ads.googleads.v4.services.MutateCustomerResult\"-\n\x14MutateCustomerResult\x12\x15\n\rresource_name\x18\x01 \x01(\t\" \n\x1eListAccessibleCustomersRequest\"9\n\x1fListAccessibleCustomersResponse\x12\x16\n\x0eresource_names\x18\x01 \x03(\t2\xee\x06\n\x0f\x43ustomerService\x12\xa9\x01\n\x0bGetCustomer\x12\x34.google.ads.googleads.v4.services.GetCustomerRequest\x1a+.google.ads.googleads.v4.resources.Customer\"7\x82\xd3\xe4\x93\x02!\x12\x1f/v4/{resource_name=customers/*}\xda\x41\rresource_name\x12\xcc\x01\n\x0eMutateCustomer\x12\x37.google.ads.googleads.v4.services.MutateCustomerRequest\x1a\x38.google.ads.googleads.v4.services.MutateCustomerResponse\"G\x82\xd3\xe4\x93\x02)\"$/v4/customers/{customer_id=*}:mutate:\x01*\xda\x41\x15\x63ustomer_id,operation\x12\xcd\x01\n\x17ListAccessibleCustomers\x12@.google.ads.googleads.v4.services.ListAccessibleCustomersRequest\x1a\x41.google.ads.googleads.v4.services.ListAccessibleCustomersResponse\"-\x82\xd3\xe4\x93\x02\'\x12%/v4/customers:listAccessibleCustomers\x12\xf2\x01\n\x14\x43reateCustomerClient\x12=.google.ads.googleads.v4.services.CreateCustomerClientRequest\x1a>.google.ads.googleads.v4.services.CreateCustomerClientResponse\"[\x82\xd3\xe4\x93\x02\x37\"2/v4/customers/{customer_id=*}:createCustomerClient:\x01*\xda\x41\x1b\x63ustomer_id,customer_client\x1a\x1b\xca\x41\x18googleads.googleapis.comB\xfb\x01\n$com.google.ads.googleads.v4.servicesB\x14\x43ustomerServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V4.Services\xca\x02 Google\\Ads\\GoogleAds\\V4\\Services\xea\x02$Google::Ads::GoogleAds::V4::Servicesb\x06proto3') + , + dependencies=[google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_access__role__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_customer__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_api_dot_client__pb2.DESCRIPTOR,google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_api_dot_resource__pb2.DESCRIPTOR,google_dot_protobuf_dot_field__mask__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,]) + + + + +_GETCUSTOMERREQUEST = _descriptor.Descriptor( + name='GetCustomerRequest', + full_name='google.ads.googleads.v4.services.GetCustomerRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.services.GetCustomerRequest.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002\372A#\n!googleads.googleapis.com/Customer'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=391, + serialized_end=477, +) + + +_MUTATECUSTOMERREQUEST = _descriptor.Descriptor( + name='MutateCustomerRequest', + full_name='google.ads.googleads.v4.services.MutateCustomerRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='customer_id', full_name='google.ads.googleads.v4.services.MutateCustomerRequest.customer_id', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='operation', full_name='google.ads.googleads.v4.services.MutateCustomerRequest.operation', index=1, + number=4, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='validate_only', full_name='google.ads.googleads.v4.services.MutateCustomerRequest.validate_only', index=2, + number=5, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=480, + serialized_end=629, +) + + +_CREATECUSTOMERCLIENTREQUEST = _descriptor.Descriptor( + name='CreateCustomerClientRequest', + full_name='google.ads.googleads.v4.services.CreateCustomerClientRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='customer_id', full_name='google.ads.googleads.v4.services.CreateCustomerClientRequest.customer_id', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='customer_client', full_name='google.ads.googleads.v4.services.CreateCustomerClientRequest.customer_client', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='email_address', full_name='google.ads.googleads.v4.services.CreateCustomerClientRequest.email_address', index=2, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='access_role', full_name='google.ads.googleads.v4.services.CreateCustomerClientRequest.access_role', index=3, + number=4, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=632, + serialized_end=894, +) + + +_CUSTOMEROPERATION = _descriptor.Descriptor( + name='CustomerOperation', + full_name='google.ads.googleads.v4.services.CustomerOperation', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='update', full_name='google.ads.googleads.v4.services.CustomerOperation.update', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='update_mask', full_name='google.ads.googleads.v4.services.CustomerOperation.update_mask', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=897, + serialized_end=1026, +) + + +_CREATECUSTOMERCLIENTRESPONSE = _descriptor.Descriptor( + name='CreateCustomerClientResponse', + full_name='google.ads.googleads.v4.services.CreateCustomerClientResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.services.CreateCustomerClientResponse.resource_name', index=0, + number=2, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='invitation_link', full_name='google.ads.googleads.v4.services.CreateCustomerClientResponse.invitation_link', index=1, + number=3, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1028, + serialized_end=1106, +) + + +_MUTATECUSTOMERRESPONSE = _descriptor.Descriptor( + name='MutateCustomerResponse', + full_name='google.ads.googleads.v4.services.MutateCustomerResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='result', full_name='google.ads.googleads.v4.services.MutateCustomerResponse.result', index=0, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1108, + serialized_end=1204, +) + + +_MUTATECUSTOMERRESULT = _descriptor.Descriptor( + name='MutateCustomerResult', + full_name='google.ads.googleads.v4.services.MutateCustomerResult', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.services.MutateCustomerResult.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1206, + serialized_end=1251, +) + + +_LISTACCESSIBLECUSTOMERSREQUEST = _descriptor.Descriptor( + name='ListAccessibleCustomersRequest', + full_name='google.ads.googleads.v4.services.ListAccessibleCustomersRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1253, + serialized_end=1285, +) + + +_LISTACCESSIBLECUSTOMERSRESPONSE = _descriptor.Descriptor( + name='ListAccessibleCustomersResponse', + full_name='google.ads.googleads.v4.services.ListAccessibleCustomersResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_names', full_name='google.ads.googleads.v4.services.ListAccessibleCustomersResponse.resource_names', index=0, + number=1, type=9, cpp_type=9, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1287, + serialized_end=1344, +) + +_MUTATECUSTOMERREQUEST.fields_by_name['operation'].message_type = _CUSTOMEROPERATION +_CREATECUSTOMERCLIENTREQUEST.fields_by_name['customer_client'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_customer__pb2._CUSTOMER +_CREATECUSTOMERCLIENTREQUEST.fields_by_name['email_address'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_CREATECUSTOMERCLIENTREQUEST.fields_by_name['access_role'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_access__role__pb2._ACCESSROLEENUM_ACCESSROLE +_CUSTOMEROPERATION.fields_by_name['update'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_customer__pb2._CUSTOMER +_CUSTOMEROPERATION.fields_by_name['update_mask'].message_type = google_dot_protobuf_dot_field__mask__pb2._FIELDMASK +_MUTATECUSTOMERRESPONSE.fields_by_name['result'].message_type = _MUTATECUSTOMERRESULT +DESCRIPTOR.message_types_by_name['GetCustomerRequest'] = _GETCUSTOMERREQUEST +DESCRIPTOR.message_types_by_name['MutateCustomerRequest'] = _MUTATECUSTOMERREQUEST +DESCRIPTOR.message_types_by_name['CreateCustomerClientRequest'] = _CREATECUSTOMERCLIENTREQUEST +DESCRIPTOR.message_types_by_name['CustomerOperation'] = _CUSTOMEROPERATION +DESCRIPTOR.message_types_by_name['CreateCustomerClientResponse'] = _CREATECUSTOMERCLIENTRESPONSE +DESCRIPTOR.message_types_by_name['MutateCustomerResponse'] = _MUTATECUSTOMERRESPONSE +DESCRIPTOR.message_types_by_name['MutateCustomerResult'] = _MUTATECUSTOMERRESULT +DESCRIPTOR.message_types_by_name['ListAccessibleCustomersRequest'] = _LISTACCESSIBLECUSTOMERSREQUEST +DESCRIPTOR.message_types_by_name['ListAccessibleCustomersResponse'] = _LISTACCESSIBLECUSTOMERSRESPONSE +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +GetCustomerRequest = _reflection.GeneratedProtocolMessageType('GetCustomerRequest', (_message.Message,), dict( + DESCRIPTOR = _GETCUSTOMERREQUEST, + __module__ = 'google.ads.googleads_v4.proto.services.customer_service_pb2' + , + __doc__ = """Request message for + [CustomerService.GetCustomer][google.ads.googleads.v4.services.CustomerService.GetCustomer]. + + + Attributes: + resource_name: + Required. The resource name of the customer to fetch. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.GetCustomerRequest) + )) +_sym_db.RegisterMessage(GetCustomerRequest) + +MutateCustomerRequest = _reflection.GeneratedProtocolMessageType('MutateCustomerRequest', (_message.Message,), dict( + DESCRIPTOR = _MUTATECUSTOMERREQUEST, + __module__ = 'google.ads.googleads_v4.proto.services.customer_service_pb2' + , + __doc__ = """Request message for + [CustomerService.MutateCustomer][google.ads.googleads.v4.services.CustomerService.MutateCustomer]. + + + Attributes: + customer_id: + Required. The ID of the customer being modified. + operation: + Required. The operation to perform on the customer + validate_only: + If true, the request is validated but not executed. Only + errors are returned, not results. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.MutateCustomerRequest) + )) +_sym_db.RegisterMessage(MutateCustomerRequest) + +CreateCustomerClientRequest = _reflection.GeneratedProtocolMessageType('CreateCustomerClientRequest', (_message.Message,), dict( + DESCRIPTOR = _CREATECUSTOMERCLIENTREQUEST, + __module__ = 'google.ads.googleads_v4.proto.services.customer_service_pb2' + , + __doc__ = """Request message for + [CustomerService.CreateCustomerClient][google.ads.googleads.v4.services.CustomerService.CreateCustomerClient]. + + + Attributes: + customer_id: + Required. The ID of the Manager under whom client customer is + being created. + customer_client: + Required. The new client customer to create. The resource name + on this customer will be ignored. + email_address: + Email address of the user who should be invited on the created + client customer. Accessible to whitelisted customers only. + access_role: + The proposed role of user on the created client customer. + Accessible to whitelisted customers only. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.CreateCustomerClientRequest) + )) +_sym_db.RegisterMessage(CreateCustomerClientRequest) + +CustomerOperation = _reflection.GeneratedProtocolMessageType('CustomerOperation', (_message.Message,), dict( + DESCRIPTOR = _CUSTOMEROPERATION, + __module__ = 'google.ads.googleads_v4.proto.services.customer_service_pb2' + , + __doc__ = """A single update on a customer. + + + Attributes: + update: + Mutate operation. Only updates are supported for customer. + update_mask: + FieldMask that determines which resource fields are modified + in an update. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.CustomerOperation) + )) +_sym_db.RegisterMessage(CustomerOperation) + +CreateCustomerClientResponse = _reflection.GeneratedProtocolMessageType('CreateCustomerClientResponse', (_message.Message,), dict( + DESCRIPTOR = _CREATECUSTOMERCLIENTRESPONSE, + __module__ = 'google.ads.googleads_v4.proto.services.customer_service_pb2' + , + __doc__ = """Response message for CreateCustomerClient mutate. + + + Attributes: + resource_name: + The resource name of the newly created customer client. + invitation_link: + Link for inviting user to access the created customer. + Accessible to allowlisted customers only. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.CreateCustomerClientResponse) + )) +_sym_db.RegisterMessage(CreateCustomerClientResponse) + +MutateCustomerResponse = _reflection.GeneratedProtocolMessageType('MutateCustomerResponse', (_message.Message,), dict( + DESCRIPTOR = _MUTATECUSTOMERRESPONSE, + __module__ = 'google.ads.googleads_v4.proto.services.customer_service_pb2' + , + __doc__ = """Response message for customer mutate. + + + Attributes: + result: + Result for the mutate. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.MutateCustomerResponse) + )) +_sym_db.RegisterMessage(MutateCustomerResponse) + +MutateCustomerResult = _reflection.GeneratedProtocolMessageType('MutateCustomerResult', (_message.Message,), dict( + DESCRIPTOR = _MUTATECUSTOMERRESULT, + __module__ = 'google.ads.googleads_v4.proto.services.customer_service_pb2' + , + __doc__ = """The result for the customer mutate. + + + Attributes: + resource_name: + Returned for successful operations. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.MutateCustomerResult) + )) +_sym_db.RegisterMessage(MutateCustomerResult) + +ListAccessibleCustomersRequest = _reflection.GeneratedProtocolMessageType('ListAccessibleCustomersRequest', (_message.Message,), dict( + DESCRIPTOR = _LISTACCESSIBLECUSTOMERSREQUEST, + __module__ = 'google.ads.googleads_v4.proto.services.customer_service_pb2' + , + __doc__ = """Request message for + [CustomerService.ListAccessibleCustomers][google.ads.googleads.v4.services.CustomerService.ListAccessibleCustomers]. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.ListAccessibleCustomersRequest) + )) +_sym_db.RegisterMessage(ListAccessibleCustomersRequest) + +ListAccessibleCustomersResponse = _reflection.GeneratedProtocolMessageType('ListAccessibleCustomersResponse', (_message.Message,), dict( + DESCRIPTOR = _LISTACCESSIBLECUSTOMERSRESPONSE, + __module__ = 'google.ads.googleads_v4.proto.services.customer_service_pb2' + , + __doc__ = """Response message for + [CustomerService.ListAccessibleCustomers][google.ads.googleads.v4.services.CustomerService.ListAccessibleCustomers]. + + + Attributes: + resource_names: + Resource name of customers directly accessible by the user + authenticating the call. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.ListAccessibleCustomersResponse) + )) +_sym_db.RegisterMessage(ListAccessibleCustomersResponse) + + +DESCRIPTOR._options = None +_GETCUSTOMERREQUEST.fields_by_name['resource_name']._options = None +_MUTATECUSTOMERREQUEST.fields_by_name['customer_id']._options = None +_MUTATECUSTOMERREQUEST.fields_by_name['operation']._options = None +_CREATECUSTOMERCLIENTREQUEST.fields_by_name['customer_id']._options = None +_CREATECUSTOMERCLIENTREQUEST.fields_by_name['customer_client']._options = None + +_CUSTOMERSERVICE = _descriptor.ServiceDescriptor( + name='CustomerService', + full_name='google.ads.googleads.v4.services.CustomerService', + file=DESCRIPTOR, + index=0, + serialized_options=_b('\312A\030googleads.googleapis.com'), + serialized_start=1347, + serialized_end=2225, + methods=[ + _descriptor.MethodDescriptor( + name='GetCustomer', + full_name='google.ads.googleads.v4.services.CustomerService.GetCustomer', + index=0, + containing_service=None, + input_type=_GETCUSTOMERREQUEST, + output_type=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_customer__pb2._CUSTOMER, + serialized_options=_b('\202\323\344\223\002!\022\037/v4/{resource_name=customers/*}\332A\rresource_name'), + ), + _descriptor.MethodDescriptor( + name='MutateCustomer', + full_name='google.ads.googleads.v4.services.CustomerService.MutateCustomer', + index=1, + containing_service=None, + input_type=_MUTATECUSTOMERREQUEST, + output_type=_MUTATECUSTOMERRESPONSE, + serialized_options=_b('\202\323\344\223\002)\"$/v4/customers/{customer_id=*}:mutate:\001*\332A\025customer_id,operation'), + ), + _descriptor.MethodDescriptor( + name='ListAccessibleCustomers', + full_name='google.ads.googleads.v4.services.CustomerService.ListAccessibleCustomers', + index=2, + containing_service=None, + input_type=_LISTACCESSIBLECUSTOMERSREQUEST, + output_type=_LISTACCESSIBLECUSTOMERSRESPONSE, + serialized_options=_b('\202\323\344\223\002\'\022%/v4/customers:listAccessibleCustomers'), + ), + _descriptor.MethodDescriptor( + name='CreateCustomerClient', + full_name='google.ads.googleads.v4.services.CustomerService.CreateCustomerClient', + index=3, + containing_service=None, + input_type=_CREATECUSTOMERCLIENTREQUEST, + output_type=_CREATECUSTOMERCLIENTRESPONSE, + serialized_options=_b('\202\323\344\223\0027\"2/v4/customers/{customer_id=*}:createCustomerClient:\001*\332A\033customer_id,customer_client'), + ), +]) +_sym_db.RegisterServiceDescriptor(_CUSTOMERSERVICE) + +DESCRIPTOR.services_by_name['CustomerService'] = _CUSTOMERSERVICE + +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v4/proto/services/customer_service_pb2_grpc.py b/google/ads/google_ads/v4/proto/services/customer_service_pb2_grpc.py new file mode 100644 index 000000000..b4e3b28b1 --- /dev/null +++ b/google/ads/google_ads/v4/proto/services/customer_service_pb2_grpc.py @@ -0,0 +1,103 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +import grpc + +from google.ads.google_ads.v4.proto.resources import customer_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_customer__pb2 +from google.ads.google_ads.v4.proto.services import customer_service_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_customer__service__pb2 + + +class CustomerServiceStub(object): + """Proto file describing the Customer service. + + Service to manage customers. + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.GetCustomer = channel.unary_unary( + '/google.ads.googleads.v4.services.CustomerService/GetCustomer', + request_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_customer__service__pb2.GetCustomerRequest.SerializeToString, + response_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_customer__pb2.Customer.FromString, + ) + self.MutateCustomer = channel.unary_unary( + '/google.ads.googleads.v4.services.CustomerService/MutateCustomer', + request_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_customer__service__pb2.MutateCustomerRequest.SerializeToString, + response_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_customer__service__pb2.MutateCustomerResponse.FromString, + ) + self.ListAccessibleCustomers = channel.unary_unary( + '/google.ads.googleads.v4.services.CustomerService/ListAccessibleCustomers', + request_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_customer__service__pb2.ListAccessibleCustomersRequest.SerializeToString, + response_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_customer__service__pb2.ListAccessibleCustomersResponse.FromString, + ) + self.CreateCustomerClient = channel.unary_unary( + '/google.ads.googleads.v4.services.CustomerService/CreateCustomerClient', + request_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_customer__service__pb2.CreateCustomerClientRequest.SerializeToString, + response_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_customer__service__pb2.CreateCustomerClientResponse.FromString, + ) + + +class CustomerServiceServicer(object): + """Proto file describing the Customer service. + + Service to manage customers. + """ + + def GetCustomer(self, request, context): + """Returns the requested customer in full detail. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def MutateCustomer(self, request, context): + """Updates a customer. Operation statuses are returned. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ListAccessibleCustomers(self, request, context): + """Returns resource names of customers directly accessible by the + user authenticating the call. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def CreateCustomerClient(self, request, context): + """Creates a new client under manager. The new client customer is returned. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_CustomerServiceServicer_to_server(servicer, server): + rpc_method_handlers = { + 'GetCustomer': grpc.unary_unary_rpc_method_handler( + servicer.GetCustomer, + request_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_customer__service__pb2.GetCustomerRequest.FromString, + response_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_customer__pb2.Customer.SerializeToString, + ), + 'MutateCustomer': grpc.unary_unary_rpc_method_handler( + servicer.MutateCustomer, + request_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_customer__service__pb2.MutateCustomerRequest.FromString, + response_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_customer__service__pb2.MutateCustomerResponse.SerializeToString, + ), + 'ListAccessibleCustomers': grpc.unary_unary_rpc_method_handler( + servicer.ListAccessibleCustomers, + request_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_customer__service__pb2.ListAccessibleCustomersRequest.FromString, + response_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_customer__service__pb2.ListAccessibleCustomersResponse.SerializeToString, + ), + 'CreateCustomerClient': grpc.unary_unary_rpc_method_handler( + servicer.CreateCustomerClient, + request_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_customer__service__pb2.CreateCustomerClientRequest.FromString, + response_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_customer__service__pb2.CreateCustomerClientResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'google.ads.googleads.v4.services.CustomerService', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) diff --git a/google/ads/google_ads/v4/proto/services/detail_placement_view_service_pb2.py b/google/ads/google_ads/v4/proto/services/detail_placement_view_service_pb2.py new file mode 100644 index 000000000..7e0f40544 --- /dev/null +++ b/google/ads/google_ads/v4/proto/services/detail_placement_view_service_pb2.py @@ -0,0 +1,112 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/services/detail_placement_view_service.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.ads.google_ads.v4.proto.resources import detail_placement_view_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_detail__placement__view__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 +from google.api import client_pb2 as google_dot_api_dot_client__pb2 +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/services/detail_placement_view_service.proto', + package='google.ads.googleads.v4.services', + syntax='proto3', + serialized_options=_b('\n$com.google.ads.googleads.v4.servicesB\037DetailPlacementViewServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V4.Services\312\002 Google\\Ads\\GoogleAds\\V4\\Services\352\002$Google::Ads::GoogleAds::V4::Services'), + serialized_pb=_b('\nJgoogle/ads/googleads_v4/proto/services/detail_placement_view_service.proto\x12 google.ads.googleads.v4.services\x1a\x43google/ads/googleads_v4/proto/resources/detail_placement_view.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"l\n\x1dGetDetailPlacementViewRequest\x12K\n\rresource_name\x18\x01 \x01(\tB4\xe0\x41\x02\xfa\x41.\n,googleads.googleapis.com/DetailPlacementView2\x9d\x02\n\x1a\x44\x65tailPlacementViewService\x12\xe1\x01\n\x16GetDetailPlacementView\x12?.google.ads.googleads.v4.services.GetDetailPlacementViewRequest\x1a\x36.google.ads.googleads.v4.resources.DetailPlacementView\"N\x82\xd3\xe4\x93\x02\x38\x12\x36/v4/{resource_name=customers/*/detailPlacementViews/*}\xda\x41\rresource_name\x1a\x1b\xca\x41\x18googleads.googleapis.comB\x86\x02\n$com.google.ads.googleads.v4.servicesB\x1f\x44\x65tailPlacementViewServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V4.Services\xca\x02 Google\\Ads\\GoogleAds\\V4\\Services\xea\x02$Google::Ads::GoogleAds::V4::Servicesb\x06proto3') + , + dependencies=[google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_detail__placement__view__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_api_dot_client__pb2.DESCRIPTOR,google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_api_dot_resource__pb2.DESCRIPTOR,]) + + + + +_GETDETAILPLACEMENTVIEWREQUEST = _descriptor.Descriptor( + name='GetDetailPlacementViewRequest', + full_name='google.ads.googleads.v4.services.GetDetailPlacementViewRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.services.GetDetailPlacementViewRequest.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002\372A.\n,googleads.googleapis.com/DetailPlacementView'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=296, + serialized_end=404, +) + +DESCRIPTOR.message_types_by_name['GetDetailPlacementViewRequest'] = _GETDETAILPLACEMENTVIEWREQUEST +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +GetDetailPlacementViewRequest = _reflection.GeneratedProtocolMessageType('GetDetailPlacementViewRequest', (_message.Message,), dict( + DESCRIPTOR = _GETDETAILPLACEMENTVIEWREQUEST, + __module__ = 'google.ads.googleads_v4.proto.services.detail_placement_view_service_pb2' + , + __doc__ = """Request message for + [DetailPlacementViewService.GetDetailPlacementView][google.ads.googleads.v4.services.DetailPlacementViewService.GetDetailPlacementView]. + + + Attributes: + resource_name: + Required. The resource name of the Detail Placement view to + fetch. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.GetDetailPlacementViewRequest) + )) +_sym_db.RegisterMessage(GetDetailPlacementViewRequest) + + +DESCRIPTOR._options = None +_GETDETAILPLACEMENTVIEWREQUEST.fields_by_name['resource_name']._options = None + +_DETAILPLACEMENTVIEWSERVICE = _descriptor.ServiceDescriptor( + name='DetailPlacementViewService', + full_name='google.ads.googleads.v4.services.DetailPlacementViewService', + file=DESCRIPTOR, + index=0, + serialized_options=_b('\312A\030googleads.googleapis.com'), + serialized_start=407, + serialized_end=692, + methods=[ + _descriptor.MethodDescriptor( + name='GetDetailPlacementView', + full_name='google.ads.googleads.v4.services.DetailPlacementViewService.GetDetailPlacementView', + index=0, + containing_service=None, + input_type=_GETDETAILPLACEMENTVIEWREQUEST, + output_type=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_detail__placement__view__pb2._DETAILPLACEMENTVIEW, + serialized_options=_b('\202\323\344\223\0028\0226/v4/{resource_name=customers/*/detailPlacementViews/*}\332A\rresource_name'), + ), +]) +_sym_db.RegisterServiceDescriptor(_DETAILPLACEMENTVIEWSERVICE) + +DESCRIPTOR.services_by_name['DetailPlacementViewService'] = _DETAILPLACEMENTVIEWSERVICE + +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v4/proto/services/detail_placement_view_service_pb2_grpc.py b/google/ads/google_ads/v4/proto/services/detail_placement_view_service_pb2_grpc.py new file mode 100644 index 000000000..6034ce6ac --- /dev/null +++ b/google/ads/google_ads/v4/proto/services/detail_placement_view_service_pb2_grpc.py @@ -0,0 +1,51 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +import grpc + +from google.ads.google_ads.v4.proto.resources import detail_placement_view_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_detail__placement__view__pb2 +from google.ads.google_ads.v4.proto.services import detail_placement_view_service_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_detail__placement__view__service__pb2 + + +class DetailPlacementViewServiceStub(object): + """Proto file describing the Detail Placement View service. + + Service to fetch Detail Placement views. + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.GetDetailPlacementView = channel.unary_unary( + '/google.ads.googleads.v4.services.DetailPlacementViewService/GetDetailPlacementView', + request_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_detail__placement__view__service__pb2.GetDetailPlacementViewRequest.SerializeToString, + response_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_detail__placement__view__pb2.DetailPlacementView.FromString, + ) + + +class DetailPlacementViewServiceServicer(object): + """Proto file describing the Detail Placement View service. + + Service to fetch Detail Placement views. + """ + + def GetDetailPlacementView(self, request, context): + """Returns the requested Detail Placement view in full detail. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_DetailPlacementViewServiceServicer_to_server(servicer, server): + rpc_method_handlers = { + 'GetDetailPlacementView': grpc.unary_unary_rpc_method_handler( + servicer.GetDetailPlacementView, + request_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_detail__placement__view__service__pb2.GetDetailPlacementViewRequest.FromString, + response_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_detail__placement__view__pb2.DetailPlacementView.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'google.ads.googleads.v4.services.DetailPlacementViewService', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) diff --git a/google/ads/google_ads/v4/proto/services/display_keyword_view_service_pb2.py b/google/ads/google_ads/v4/proto/services/display_keyword_view_service_pb2.py new file mode 100644 index 000000000..60a1d0fc5 --- /dev/null +++ b/google/ads/google_ads/v4/proto/services/display_keyword_view_service_pb2.py @@ -0,0 +1,112 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/services/display_keyword_view_service.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.ads.google_ads.v4.proto.resources import display_keyword_view_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_display__keyword__view__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 +from google.api import client_pb2 as google_dot_api_dot_client__pb2 +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/services/display_keyword_view_service.proto', + package='google.ads.googleads.v4.services', + syntax='proto3', + serialized_options=_b('\n$com.google.ads.googleads.v4.servicesB\036DisplayKeywordViewServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V4.Services\312\002 Google\\Ads\\GoogleAds\\V4\\Services\352\002$Google::Ads::GoogleAds::V4::Services'), + serialized_pb=_b('\nIgoogle/ads/googleads_v4/proto/services/display_keyword_view_service.proto\x12 google.ads.googleads.v4.services\x1a\x42google/ads/googleads_v4/proto/resources/display_keyword_view.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"j\n\x1cGetDisplayKeywordViewRequest\x12J\n\rresource_name\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+googleads.googleapis.com/DisplayKeywordView2\x98\x02\n\x19\x44isplayKeywordViewService\x12\xdd\x01\n\x15GetDisplayKeywordView\x12>.google.ads.googleads.v4.services.GetDisplayKeywordViewRequest\x1a\x35.google.ads.googleads.v4.resources.DisplayKeywordView\"M\x82\xd3\xe4\x93\x02\x37\x12\x35/v4/{resource_name=customers/*/displayKeywordViews/*}\xda\x41\rresource_name\x1a\x1b\xca\x41\x18googleads.googleapis.comB\x85\x02\n$com.google.ads.googleads.v4.servicesB\x1e\x44isplayKeywordViewServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V4.Services\xca\x02 Google\\Ads\\GoogleAds\\V4\\Services\xea\x02$Google::Ads::GoogleAds::V4::Servicesb\x06proto3') + , + dependencies=[google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_display__keyword__view__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_api_dot_client__pb2.DESCRIPTOR,google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_api_dot_resource__pb2.DESCRIPTOR,]) + + + + +_GETDISPLAYKEYWORDVIEWREQUEST = _descriptor.Descriptor( + name='GetDisplayKeywordViewRequest', + full_name='google.ads.googleads.v4.services.GetDisplayKeywordViewRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.services.GetDisplayKeywordViewRequest.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002\372A-\n+googleads.googleapis.com/DisplayKeywordView'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=294, + serialized_end=400, +) + +DESCRIPTOR.message_types_by_name['GetDisplayKeywordViewRequest'] = _GETDISPLAYKEYWORDVIEWREQUEST +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +GetDisplayKeywordViewRequest = _reflection.GeneratedProtocolMessageType('GetDisplayKeywordViewRequest', (_message.Message,), dict( + DESCRIPTOR = _GETDISPLAYKEYWORDVIEWREQUEST, + __module__ = 'google.ads.googleads_v4.proto.services.display_keyword_view_service_pb2' + , + __doc__ = """Request message for + [DisplayKeywordViewService.GetDisplayKeywordView][google.ads.googleads.v4.services.DisplayKeywordViewService.GetDisplayKeywordView]. + + + Attributes: + resource_name: + Required. The resource name of the display keyword view to + fetch. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.GetDisplayKeywordViewRequest) + )) +_sym_db.RegisterMessage(GetDisplayKeywordViewRequest) + + +DESCRIPTOR._options = None +_GETDISPLAYKEYWORDVIEWREQUEST.fields_by_name['resource_name']._options = None + +_DISPLAYKEYWORDVIEWSERVICE = _descriptor.ServiceDescriptor( + name='DisplayKeywordViewService', + full_name='google.ads.googleads.v4.services.DisplayKeywordViewService', + file=DESCRIPTOR, + index=0, + serialized_options=_b('\312A\030googleads.googleapis.com'), + serialized_start=403, + serialized_end=683, + methods=[ + _descriptor.MethodDescriptor( + name='GetDisplayKeywordView', + full_name='google.ads.googleads.v4.services.DisplayKeywordViewService.GetDisplayKeywordView', + index=0, + containing_service=None, + input_type=_GETDISPLAYKEYWORDVIEWREQUEST, + output_type=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_display__keyword__view__pb2._DISPLAYKEYWORDVIEW, + serialized_options=_b('\202\323\344\223\0027\0225/v4/{resource_name=customers/*/displayKeywordViews/*}\332A\rresource_name'), + ), +]) +_sym_db.RegisterServiceDescriptor(_DISPLAYKEYWORDVIEWSERVICE) + +DESCRIPTOR.services_by_name['DisplayKeywordViewService'] = _DISPLAYKEYWORDVIEWSERVICE + +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v4/proto/services/display_keyword_view_service_pb2_grpc.py b/google/ads/google_ads/v4/proto/services/display_keyword_view_service_pb2_grpc.py new file mode 100644 index 000000000..ed2722fec --- /dev/null +++ b/google/ads/google_ads/v4/proto/services/display_keyword_view_service_pb2_grpc.py @@ -0,0 +1,51 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +import grpc + +from google.ads.google_ads.v4.proto.resources import display_keyword_view_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_display__keyword__view__pb2 +from google.ads.google_ads.v4.proto.services import display_keyword_view_service_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_display__keyword__view__service__pb2 + + +class DisplayKeywordViewServiceStub(object): + """Proto file describing the Display Keyword View service. + + Service to manage display keyword views. + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.GetDisplayKeywordView = channel.unary_unary( + '/google.ads.googleads.v4.services.DisplayKeywordViewService/GetDisplayKeywordView', + request_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_display__keyword__view__service__pb2.GetDisplayKeywordViewRequest.SerializeToString, + response_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_display__keyword__view__pb2.DisplayKeywordView.FromString, + ) + + +class DisplayKeywordViewServiceServicer(object): + """Proto file describing the Display Keyword View service. + + Service to manage display keyword views. + """ + + def GetDisplayKeywordView(self, request, context): + """Returns the requested display keyword view in full detail. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_DisplayKeywordViewServiceServicer_to_server(servicer, server): + rpc_method_handlers = { + 'GetDisplayKeywordView': grpc.unary_unary_rpc_method_handler( + servicer.GetDisplayKeywordView, + request_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_display__keyword__view__service__pb2.GetDisplayKeywordViewRequest.FromString, + response_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_display__keyword__view__pb2.DisplayKeywordView.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'google.ads.googleads.v4.services.DisplayKeywordViewService', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) diff --git a/google/ads/google_ads/v4/proto/services/distance_view_service_pb2.py b/google/ads/google_ads/v4/proto/services/distance_view_service_pb2.py new file mode 100644 index 000000000..b1367fc90 --- /dev/null +++ b/google/ads/google_ads/v4/proto/services/distance_view_service_pb2.py @@ -0,0 +1,111 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/services/distance_view_service.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.ads.google_ads.v4.proto.resources import distance_view_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_distance__view__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 +from google.api import client_pb2 as google_dot_api_dot_client__pb2 +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/services/distance_view_service.proto', + package='google.ads.googleads.v4.services', + syntax='proto3', + serialized_options=_b('\n$com.google.ads.googleads.v4.servicesB\030DistanceViewServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V4.Services\312\002 Google\\Ads\\GoogleAds\\V4\\Services\352\002$Google::Ads::GoogleAds::V4::Services'), + serialized_pb=_b('\nBgoogle/ads/googleads_v4/proto/services/distance_view_service.proto\x12 google.ads.googleads.v4.services\x1a;google/ads/googleads_v4/proto/resources/distance_view.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"^\n\x16GetDistanceViewRequest\x12\x44\n\rresource_name\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%googleads.googleapis.com/DistanceView2\xfa\x01\n\x13\x44istanceViewService\x12\xc5\x01\n\x0fGetDistanceView\x12\x38.google.ads.googleads.v4.services.GetDistanceViewRequest\x1a/.google.ads.googleads.v4.resources.DistanceView\"G\x82\xd3\xe4\x93\x02\x31\x12//v4/{resource_name=customers/*/distanceViews/*}\xda\x41\rresource_name\x1a\x1b\xca\x41\x18googleads.googleapis.comB\xff\x01\n$com.google.ads.googleads.v4.servicesB\x18\x44istanceViewServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V4.Services\xca\x02 Google\\Ads\\GoogleAds\\V4\\Services\xea\x02$Google::Ads::GoogleAds::V4::Servicesb\x06proto3') + , + dependencies=[google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_distance__view__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_api_dot_client__pb2.DESCRIPTOR,google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_api_dot_resource__pb2.DESCRIPTOR,]) + + + + +_GETDISTANCEVIEWREQUEST = _descriptor.Descriptor( + name='GetDistanceViewRequest', + full_name='google.ads.googleads.v4.services.GetDistanceViewRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.services.GetDistanceViewRequest.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002\372A\'\n%googleads.googleapis.com/DistanceView'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=280, + serialized_end=374, +) + +DESCRIPTOR.message_types_by_name['GetDistanceViewRequest'] = _GETDISTANCEVIEWREQUEST +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +GetDistanceViewRequest = _reflection.GeneratedProtocolMessageType('GetDistanceViewRequest', (_message.Message,), dict( + DESCRIPTOR = _GETDISTANCEVIEWREQUEST, + __module__ = 'google.ads.googleads_v4.proto.services.distance_view_service_pb2' + , + __doc__ = """Request message for + [DistanceViewService.GetDistanceView][google.ads.googleads.v4.services.DistanceViewService.GetDistanceView]. + + + Attributes: + resource_name: + Required. The resource name of the distance view to fetch. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.GetDistanceViewRequest) + )) +_sym_db.RegisterMessage(GetDistanceViewRequest) + + +DESCRIPTOR._options = None +_GETDISTANCEVIEWREQUEST.fields_by_name['resource_name']._options = None + +_DISTANCEVIEWSERVICE = _descriptor.ServiceDescriptor( + name='DistanceViewService', + full_name='google.ads.googleads.v4.services.DistanceViewService', + file=DESCRIPTOR, + index=0, + serialized_options=_b('\312A\030googleads.googleapis.com'), + serialized_start=377, + serialized_end=627, + methods=[ + _descriptor.MethodDescriptor( + name='GetDistanceView', + full_name='google.ads.googleads.v4.services.DistanceViewService.GetDistanceView', + index=0, + containing_service=None, + input_type=_GETDISTANCEVIEWREQUEST, + output_type=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_distance__view__pb2._DISTANCEVIEW, + serialized_options=_b('\202\323\344\223\0021\022//v4/{resource_name=customers/*/distanceViews/*}\332A\rresource_name'), + ), +]) +_sym_db.RegisterServiceDescriptor(_DISTANCEVIEWSERVICE) + +DESCRIPTOR.services_by_name['DistanceViewService'] = _DISTANCEVIEWSERVICE + +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v4/proto/services/distance_view_service_pb2_grpc.py b/google/ads/google_ads/v4/proto/services/distance_view_service_pb2_grpc.py new file mode 100644 index 000000000..5c6905322 --- /dev/null +++ b/google/ads/google_ads/v4/proto/services/distance_view_service_pb2_grpc.py @@ -0,0 +1,51 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +import grpc + +from google.ads.google_ads.v4.proto.resources import distance_view_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_distance__view__pb2 +from google.ads.google_ads.v4.proto.services import distance_view_service_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_distance__view__service__pb2 + + +class DistanceViewServiceStub(object): + """Proto file describing the Distance View service. + + Service to fetch distance views. + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.GetDistanceView = channel.unary_unary( + '/google.ads.googleads.v4.services.DistanceViewService/GetDistanceView', + request_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_distance__view__service__pb2.GetDistanceViewRequest.SerializeToString, + response_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_distance__view__pb2.DistanceView.FromString, + ) + + +class DistanceViewServiceServicer(object): + """Proto file describing the Distance View service. + + Service to fetch distance views. + """ + + def GetDistanceView(self, request, context): + """Returns the attributes of the requested distance view. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_DistanceViewServiceServicer_to_server(servicer, server): + rpc_method_handlers = { + 'GetDistanceView': grpc.unary_unary_rpc_method_handler( + servicer.GetDistanceView, + request_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_distance__view__service__pb2.GetDistanceViewRequest.FromString, + response_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_distance__view__pb2.DistanceView.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'google.ads.googleads.v4.services.DistanceViewService', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) diff --git a/google/ads/google_ads/v4/proto/services/domain_category_service_pb2.py b/google/ads/google_ads/v4/proto/services/domain_category_service_pb2.py new file mode 100644 index 000000000..f8cd6ce8d --- /dev/null +++ b/google/ads/google_ads/v4/proto/services/domain_category_service_pb2.py @@ -0,0 +1,111 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/services/domain_category_service.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.ads.google_ads.v4.proto.resources import domain_category_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_domain__category__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 +from google.api import client_pb2 as google_dot_api_dot_client__pb2 +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/services/domain_category_service.proto', + package='google.ads.googleads.v4.services', + syntax='proto3', + serialized_options=_b('\n$com.google.ads.googleads.v4.servicesB\032DomainCategoryServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V4.Services\312\002 Google\\Ads\\GoogleAds\\V4\\Services\352\002$Google::Ads::GoogleAds::V4::Services'), + serialized_pb=_b('\nDgoogle/ads/googleads_v4/proto/services/domain_category_service.proto\x12 google.ads.googleads.v4.services\x1a=google/ads/googleads_v4/proto/resources/domain_category.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"b\n\x18GetDomainCategoryRequest\x12\x46\n\rresource_name\x18\x01 \x01(\tB/\xe0\x41\x02\xfa\x41)\n\'googleads.googleapis.com/DomainCategory2\x85\x02\n\x15\x44omainCategoryService\x12\xce\x01\n\x11GetDomainCategory\x12:.google.ads.googleads.v4.services.GetDomainCategoryRequest\x1a\x31.google.ads.googleads.v4.resources.DomainCategory\"J\x82\xd3\xe4\x93\x02\x34\x12\x32/v4/{resource_name=customers/*/domainCategories/*}\xda\x41\rresource_name\x1a\x1b\xca\x41\x18googleads.googleapis.comB\x81\x02\n$com.google.ads.googleads.v4.servicesB\x1a\x44omainCategoryServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V4.Services\xca\x02 Google\\Ads\\GoogleAds\\V4\\Services\xea\x02$Google::Ads::GoogleAds::V4::Servicesb\x06proto3') + , + dependencies=[google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_domain__category__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_api_dot_client__pb2.DESCRIPTOR,google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_api_dot_resource__pb2.DESCRIPTOR,]) + + + + +_GETDOMAINCATEGORYREQUEST = _descriptor.Descriptor( + name='GetDomainCategoryRequest', + full_name='google.ads.googleads.v4.services.GetDomainCategoryRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.services.GetDomainCategoryRequest.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002\372A)\n\'googleads.googleapis.com/DomainCategory'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=284, + serialized_end=382, +) + +DESCRIPTOR.message_types_by_name['GetDomainCategoryRequest'] = _GETDOMAINCATEGORYREQUEST +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +GetDomainCategoryRequest = _reflection.GeneratedProtocolMessageType('GetDomainCategoryRequest', (_message.Message,), dict( + DESCRIPTOR = _GETDOMAINCATEGORYREQUEST, + __module__ = 'google.ads.googleads_v4.proto.services.domain_category_service_pb2' + , + __doc__ = """Request message for + [DomainCategoryService.GetDomainCategory][google.ads.googleads.v4.services.DomainCategoryService.GetDomainCategory]. + + + Attributes: + resource_name: + Required. Resource name of the domain category to fetch. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.GetDomainCategoryRequest) + )) +_sym_db.RegisterMessage(GetDomainCategoryRequest) + + +DESCRIPTOR._options = None +_GETDOMAINCATEGORYREQUEST.fields_by_name['resource_name']._options = None + +_DOMAINCATEGORYSERVICE = _descriptor.ServiceDescriptor( + name='DomainCategoryService', + full_name='google.ads.googleads.v4.services.DomainCategoryService', + file=DESCRIPTOR, + index=0, + serialized_options=_b('\312A\030googleads.googleapis.com'), + serialized_start=385, + serialized_end=646, + methods=[ + _descriptor.MethodDescriptor( + name='GetDomainCategory', + full_name='google.ads.googleads.v4.services.DomainCategoryService.GetDomainCategory', + index=0, + containing_service=None, + input_type=_GETDOMAINCATEGORYREQUEST, + output_type=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_domain__category__pb2._DOMAINCATEGORY, + serialized_options=_b('\202\323\344\223\0024\0222/v4/{resource_name=customers/*/domainCategories/*}\332A\rresource_name'), + ), +]) +_sym_db.RegisterServiceDescriptor(_DOMAINCATEGORYSERVICE) + +DESCRIPTOR.services_by_name['DomainCategoryService'] = _DOMAINCATEGORYSERVICE + +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v4/proto/services/domain_category_service_pb2_grpc.py b/google/ads/google_ads/v4/proto/services/domain_category_service_pb2_grpc.py new file mode 100644 index 000000000..52ff63bda --- /dev/null +++ b/google/ads/google_ads/v4/proto/services/domain_category_service_pb2_grpc.py @@ -0,0 +1,51 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +import grpc + +from google.ads.google_ads.v4.proto.resources import domain_category_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_domain__category__pb2 +from google.ads.google_ads.v4.proto.services import domain_category_service_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_domain__category__service__pb2 + + +class DomainCategoryServiceStub(object): + """Proto file describing the DomainCategory Service. + + Service to fetch domain categories. + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.GetDomainCategory = channel.unary_unary( + '/google.ads.googleads.v4.services.DomainCategoryService/GetDomainCategory', + request_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_domain__category__service__pb2.GetDomainCategoryRequest.SerializeToString, + response_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_domain__category__pb2.DomainCategory.FromString, + ) + + +class DomainCategoryServiceServicer(object): + """Proto file describing the DomainCategory Service. + + Service to fetch domain categories. + """ + + def GetDomainCategory(self, request, context): + """Returns the requested domain category. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_DomainCategoryServiceServicer_to_server(servicer, server): + rpc_method_handlers = { + 'GetDomainCategory': grpc.unary_unary_rpc_method_handler( + servicer.GetDomainCategory, + request_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_domain__category__service__pb2.GetDomainCategoryRequest.FromString, + response_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_domain__category__pb2.DomainCategory.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'google.ads.googleads.v4.services.DomainCategoryService', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) diff --git a/google/ads/google_ads/v4/proto/services/dynamic_search_ads_search_term_view_service_pb2.py b/google/ads/google_ads/v4/proto/services/dynamic_search_ads_search_term_view_service_pb2.py new file mode 100644 index 000000000..ba99b74e8 --- /dev/null +++ b/google/ads/google_ads/v4/proto/services/dynamic_search_ads_search_term_view_service_pb2.py @@ -0,0 +1,112 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/services/dynamic_search_ads_search_term_view_service.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.ads.google_ads.v4.proto.resources import dynamic_search_ads_search_term_view_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_dynamic__search__ads__search__term__view__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 +from google.api import client_pb2 as google_dot_api_dot_client__pb2 +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/services/dynamic_search_ads_search_term_view_service.proto', + package='google.ads.googleads.v4.services', + syntax='proto3', + serialized_options=_b('\n$com.google.ads.googleads.v4.servicesB*DynamicSearchAdsSearchTermViewServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V4.Services\312\002 Google\\Ads\\GoogleAds\\V4\\Services\352\002$Google::Ads::GoogleAds::V4::Services'), + serialized_pb=_b('\nXgoogle/ads/googleads_v4/proto/services/dynamic_search_ads_search_term_view_service.proto\x12 google.ads.googleads.v4.services\x1aQgoogle/ads/googleads_v4/proto/resources/dynamic_search_ads_search_term_view.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\x82\x01\n(GetDynamicSearchAdsSearchTermViewRequest\x12V\n\rresource_name\x18\x01 \x01(\tB?\xe0\x41\x02\xfa\x41\x39\n7googleads.googleapis.com/DynamicSearchAdsSearchTermView2\xd4\x02\n%DynamicSearchAdsSearchTermViewService\x12\x8d\x02\n!GetDynamicSearchAdsSearchTermView\x12J.google.ads.googleads.v4.services.GetDynamicSearchAdsSearchTermViewRequest\x1a\x41.google.ads.googleads.v4.resources.DynamicSearchAdsSearchTermView\"Y\x82\xd3\xe4\x93\x02\x43\x12\x41/v4/{resource_name=customers/*/dynamicSearchAdsSearchTermViews/*}\xda\x41\rresource_name\x1a\x1b\xca\x41\x18googleads.googleapis.comB\x91\x02\n$com.google.ads.googleads.v4.servicesB*DynamicSearchAdsSearchTermViewServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V4.Services\xca\x02 Google\\Ads\\GoogleAds\\V4\\Services\xea\x02$Google::Ads::GoogleAds::V4::Servicesb\x06proto3') + , + dependencies=[google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_dynamic__search__ads__search__term__view__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_api_dot_client__pb2.DESCRIPTOR,google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_api_dot_resource__pb2.DESCRIPTOR,]) + + + + +_GETDYNAMICSEARCHADSSEARCHTERMVIEWREQUEST = _descriptor.Descriptor( + name='GetDynamicSearchAdsSearchTermViewRequest', + full_name='google.ads.googleads.v4.services.GetDynamicSearchAdsSearchTermViewRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.services.GetDynamicSearchAdsSearchTermViewRequest.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002\372A9\n7googleads.googleapis.com/DynamicSearchAdsSearchTermView'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=325, + serialized_end=455, +) + +DESCRIPTOR.message_types_by_name['GetDynamicSearchAdsSearchTermViewRequest'] = _GETDYNAMICSEARCHADSSEARCHTERMVIEWREQUEST +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +GetDynamicSearchAdsSearchTermViewRequest = _reflection.GeneratedProtocolMessageType('GetDynamicSearchAdsSearchTermViewRequest', (_message.Message,), dict( + DESCRIPTOR = _GETDYNAMICSEARCHADSSEARCHTERMVIEWREQUEST, + __module__ = 'google.ads.googleads_v4.proto.services.dynamic_search_ads_search_term_view_service_pb2' + , + __doc__ = """Request message for + [DynamicSearchAdsSearchTermViewService.GetDynamicSearchAdsSearchTermView][google.ads.googleads.v4.services.DynamicSearchAdsSearchTermViewService.GetDynamicSearchAdsSearchTermView]. + + + Attributes: + resource_name: + Required. The resource name of the dynamic search ads search + term view to fetch. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.GetDynamicSearchAdsSearchTermViewRequest) + )) +_sym_db.RegisterMessage(GetDynamicSearchAdsSearchTermViewRequest) + + +DESCRIPTOR._options = None +_GETDYNAMICSEARCHADSSEARCHTERMVIEWREQUEST.fields_by_name['resource_name']._options = None + +_DYNAMICSEARCHADSSEARCHTERMVIEWSERVICE = _descriptor.ServiceDescriptor( + name='DynamicSearchAdsSearchTermViewService', + full_name='google.ads.googleads.v4.services.DynamicSearchAdsSearchTermViewService', + file=DESCRIPTOR, + index=0, + serialized_options=_b('\312A\030googleads.googleapis.com'), + serialized_start=458, + serialized_end=798, + methods=[ + _descriptor.MethodDescriptor( + name='GetDynamicSearchAdsSearchTermView', + full_name='google.ads.googleads.v4.services.DynamicSearchAdsSearchTermViewService.GetDynamicSearchAdsSearchTermView', + index=0, + containing_service=None, + input_type=_GETDYNAMICSEARCHADSSEARCHTERMVIEWREQUEST, + output_type=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_dynamic__search__ads__search__term__view__pb2._DYNAMICSEARCHADSSEARCHTERMVIEW, + serialized_options=_b('\202\323\344\223\002C\022A/v4/{resource_name=customers/*/dynamicSearchAdsSearchTermViews/*}\332A\rresource_name'), + ), +]) +_sym_db.RegisterServiceDescriptor(_DYNAMICSEARCHADSSEARCHTERMVIEWSERVICE) + +DESCRIPTOR.services_by_name['DynamicSearchAdsSearchTermViewService'] = _DYNAMICSEARCHADSSEARCHTERMVIEWSERVICE + +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/services/dynamic_search_ads_search_term_view_service_pb2_grpc.py b/google/ads/google_ads/v4/proto/services/dynamic_search_ads_search_term_view_service_pb2_grpc.py similarity index 76% rename from google/ads/google_ads/v1/proto/services/dynamic_search_ads_search_term_view_service_pb2_grpc.py rename to google/ads/google_ads/v4/proto/services/dynamic_search_ads_search_term_view_service_pb2_grpc.py index 2b75991cd..cfab943ca 100644 --- a/google/ads/google_ads/v1/proto/services/dynamic_search_ads_search_term_view_service_pb2_grpc.py +++ b/google/ads/google_ads/v4/proto/services/dynamic_search_ads_search_term_view_service_pb2_grpc.py @@ -1,8 +1,8 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc -from google.ads.google_ads.v1.proto.resources import dynamic_search_ads_search_term_view_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_dynamic__search__ads__search__term__view__pb2 -from google.ads.google_ads.v1.proto.services import dynamic_search_ads_search_term_view_service_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_dynamic__search__ads__search__term__view__service__pb2 +from google.ads.google_ads.v4.proto.resources import dynamic_search_ads_search_term_view_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_dynamic__search__ads__search__term__view__pb2 +from google.ads.google_ads.v4.proto.services import dynamic_search_ads_search_term_view_service_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_dynamic__search__ads__search__term__view__service__pb2 class DynamicSearchAdsSearchTermViewServiceStub(object): @@ -18,9 +18,9 @@ def __init__(self, channel): channel: A grpc.Channel. """ self.GetDynamicSearchAdsSearchTermView = channel.unary_unary( - '/google.ads.googleads.v1.services.DynamicSearchAdsSearchTermViewService/GetDynamicSearchAdsSearchTermView', - request_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_dynamic__search__ads__search__term__view__service__pb2.GetDynamicSearchAdsSearchTermViewRequest.SerializeToString, - response_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_dynamic__search__ads__search__term__view__pb2.DynamicSearchAdsSearchTermView.FromString, + '/google.ads.googleads.v4.services.DynamicSearchAdsSearchTermViewService/GetDynamicSearchAdsSearchTermView', + request_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_dynamic__search__ads__search__term__view__service__pb2.GetDynamicSearchAdsSearchTermViewRequest.SerializeToString, + response_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_dynamic__search__ads__search__term__view__pb2.DynamicSearchAdsSearchTermView.FromString, ) @@ -42,10 +42,10 @@ def add_DynamicSearchAdsSearchTermViewServiceServicer_to_server(servicer, server rpc_method_handlers = { 'GetDynamicSearchAdsSearchTermView': grpc.unary_unary_rpc_method_handler( servicer.GetDynamicSearchAdsSearchTermView, - request_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_dynamic__search__ads__search__term__view__service__pb2.GetDynamicSearchAdsSearchTermViewRequest.FromString, - response_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_dynamic__search__ads__search__term__view__pb2.DynamicSearchAdsSearchTermView.SerializeToString, + request_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_dynamic__search__ads__search__term__view__service__pb2.GetDynamicSearchAdsSearchTermViewRequest.FromString, + response_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_dynamic__search__ads__search__term__view__pb2.DynamicSearchAdsSearchTermView.SerializeToString, ), } generic_handler = grpc.method_handlers_generic_handler( - 'google.ads.googleads.v1.services.DynamicSearchAdsSearchTermViewService', rpc_method_handlers) + 'google.ads.googleads.v4.services.DynamicSearchAdsSearchTermViewService', rpc_method_handlers) server.add_generic_rpc_handlers((generic_handler,)) diff --git a/google/ads/google_ads/v4/proto/services/expanded_landing_page_view_service_pb2.py b/google/ads/google_ads/v4/proto/services/expanded_landing_page_view_service_pb2.py new file mode 100644 index 000000000..db7c1fbed --- /dev/null +++ b/google/ads/google_ads/v4/proto/services/expanded_landing_page_view_service_pb2.py @@ -0,0 +1,112 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/services/expanded_landing_page_view_service.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.ads.google_ads.v4.proto.resources import expanded_landing_page_view_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_expanded__landing__page__view__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 +from google.api import client_pb2 as google_dot_api_dot_client__pb2 +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/services/expanded_landing_page_view_service.proto', + package='google.ads.googleads.v4.services', + syntax='proto3', + serialized_options=_b('\n$com.google.ads.googleads.v4.servicesB#ExpandedLandingPageViewServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V4.Services\312\002 Google\\Ads\\GoogleAds\\V4\\Services\352\002$Google::Ads::GoogleAds::V4::Services'), + serialized_pb=_b('\nOgoogle/ads/googleads_v4/proto/services/expanded_landing_page_view_service.proto\x12 google.ads.googleads.v4.services\x1aHgoogle/ads/googleads_v4/proto/resources/expanded_landing_page_view.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"t\n!GetExpandedLandingPageViewRequest\x12O\n\rresource_name\x18\x01 \x01(\tB8\xe0\x41\x02\xfa\x41\x32\n0googleads.googleapis.com/ExpandedLandingPageView2\xb1\x02\n\x1e\x45xpandedLandingPageViewService\x12\xf1\x01\n\x1aGetExpandedLandingPageView\x12\x43.google.ads.googleads.v4.services.GetExpandedLandingPageViewRequest\x1a:.google.ads.googleads.v4.resources.ExpandedLandingPageView\"R\x82\xd3\xe4\x93\x02<\x12:/v4/{resource_name=customers/*/expandedLandingPageViews/*}\xda\x41\rresource_name\x1a\x1b\xca\x41\x18googleads.googleapis.comB\x8a\x02\n$com.google.ads.googleads.v4.servicesB#ExpandedLandingPageViewServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V4.Services\xca\x02 Google\\Ads\\GoogleAds\\V4\\Services\xea\x02$Google::Ads::GoogleAds::V4::Servicesb\x06proto3') + , + dependencies=[google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_expanded__landing__page__view__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_api_dot_client__pb2.DESCRIPTOR,google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_api_dot_resource__pb2.DESCRIPTOR,]) + + + + +_GETEXPANDEDLANDINGPAGEVIEWREQUEST = _descriptor.Descriptor( + name='GetExpandedLandingPageViewRequest', + full_name='google.ads.googleads.v4.services.GetExpandedLandingPageViewRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.services.GetExpandedLandingPageViewRequest.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002\372A2\n0googleads.googleapis.com/ExpandedLandingPageView'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=306, + serialized_end=422, +) + +DESCRIPTOR.message_types_by_name['GetExpandedLandingPageViewRequest'] = _GETEXPANDEDLANDINGPAGEVIEWREQUEST +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +GetExpandedLandingPageViewRequest = _reflection.GeneratedProtocolMessageType('GetExpandedLandingPageViewRequest', (_message.Message,), dict( + DESCRIPTOR = _GETEXPANDEDLANDINGPAGEVIEWREQUEST, + __module__ = 'google.ads.googleads_v4.proto.services.expanded_landing_page_view_service_pb2' + , + __doc__ = """Request message for + [ExpandedLandingPageViewService.GetExpandedLandingPageView][google.ads.googleads.v4.services.ExpandedLandingPageViewService.GetExpandedLandingPageView]. + + + Attributes: + resource_name: + Required. The resource name of the expanded landing page view + to fetch. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.GetExpandedLandingPageViewRequest) + )) +_sym_db.RegisterMessage(GetExpandedLandingPageViewRequest) + + +DESCRIPTOR._options = None +_GETEXPANDEDLANDINGPAGEVIEWREQUEST.fields_by_name['resource_name']._options = None + +_EXPANDEDLANDINGPAGEVIEWSERVICE = _descriptor.ServiceDescriptor( + name='ExpandedLandingPageViewService', + full_name='google.ads.googleads.v4.services.ExpandedLandingPageViewService', + file=DESCRIPTOR, + index=0, + serialized_options=_b('\312A\030googleads.googleapis.com'), + serialized_start=425, + serialized_end=730, + methods=[ + _descriptor.MethodDescriptor( + name='GetExpandedLandingPageView', + full_name='google.ads.googleads.v4.services.ExpandedLandingPageViewService.GetExpandedLandingPageView', + index=0, + containing_service=None, + input_type=_GETEXPANDEDLANDINGPAGEVIEWREQUEST, + output_type=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_expanded__landing__page__view__pb2._EXPANDEDLANDINGPAGEVIEW, + serialized_options=_b('\202\323\344\223\002<\022:/v4/{resource_name=customers/*/expandedLandingPageViews/*}\332A\rresource_name'), + ), +]) +_sym_db.RegisterServiceDescriptor(_EXPANDEDLANDINGPAGEVIEWSERVICE) + +DESCRIPTOR.services_by_name['ExpandedLandingPageViewService'] = _EXPANDEDLANDINGPAGEVIEWSERVICE + +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v4/proto/services/expanded_landing_page_view_service_pb2_grpc.py b/google/ads/google_ads/v4/proto/services/expanded_landing_page_view_service_pb2_grpc.py new file mode 100644 index 000000000..80b7304f6 --- /dev/null +++ b/google/ads/google_ads/v4/proto/services/expanded_landing_page_view_service_pb2_grpc.py @@ -0,0 +1,51 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +import grpc + +from google.ads.google_ads.v4.proto.resources import expanded_landing_page_view_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_expanded__landing__page__view__pb2 +from google.ads.google_ads.v4.proto.services import expanded_landing_page_view_service_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_expanded__landing__page__view__service__pb2 + + +class ExpandedLandingPageViewServiceStub(object): + """Proto file describing the expanded landing page view service. + + Service to fetch expanded landing page views. + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.GetExpandedLandingPageView = channel.unary_unary( + '/google.ads.googleads.v4.services.ExpandedLandingPageViewService/GetExpandedLandingPageView', + request_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_expanded__landing__page__view__service__pb2.GetExpandedLandingPageViewRequest.SerializeToString, + response_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_expanded__landing__page__view__pb2.ExpandedLandingPageView.FromString, + ) + + +class ExpandedLandingPageViewServiceServicer(object): + """Proto file describing the expanded landing page view service. + + Service to fetch expanded landing page views. + """ + + def GetExpandedLandingPageView(self, request, context): + """Returns the requested expanded landing page view in full detail. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_ExpandedLandingPageViewServiceServicer_to_server(servicer, server): + rpc_method_handlers = { + 'GetExpandedLandingPageView': grpc.unary_unary_rpc_method_handler( + servicer.GetExpandedLandingPageView, + request_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_expanded__landing__page__view__service__pb2.GetExpandedLandingPageViewRequest.FromString, + response_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_expanded__landing__page__view__pb2.ExpandedLandingPageView.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'google.ads.googleads.v4.services.ExpandedLandingPageViewService', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) diff --git a/google/ads/google_ads/v4/proto/services/extension_feed_item_service_pb2.py b/google/ads/google_ads/v4/proto/services/extension_feed_item_service_pb2.py new file mode 100644 index 000000000..b301ae764 --- /dev/null +++ b/google/ads/google_ads/v4/proto/services/extension_feed_item_service_pb2.py @@ -0,0 +1,412 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/services/extension_feed_item_service.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.ads.google_ads.v4.proto.resources import extension_feed_item_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_extension__feed__item__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 +from google.api import client_pb2 as google_dot_api_dot_client__pb2 +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 +from google.protobuf import field_mask_pb2 as google_dot_protobuf_dot_field__mask__pb2 +from google.rpc import status_pb2 as google_dot_rpc_dot_status__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/services/extension_feed_item_service.proto', + package='google.ads.googleads.v4.services', + syntax='proto3', + serialized_options=_b('\n$com.google.ads.googleads.v4.servicesB\035ExtensionFeedItemServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V4.Services\312\002 Google\\Ads\\GoogleAds\\V4\\Services\352\002$Google::Ads::GoogleAds::V4::Services'), + serialized_pb=_b('\nHgoogle/ads/googleads_v4/proto/services/extension_feed_item_service.proto\x12 google.ads.googleads.v4.services\x1a\x41google/ads/googleads_v4/proto/resources/extension_feed_item.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/protobuf/field_mask.proto\x1a\x17google/rpc/status.proto\"h\n\x1bGetExtensionFeedItemRequest\x12I\n\rresource_name\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*googleads.googleapis.com/ExtensionFeedItem\"\xc2\x01\n\x1fMutateExtensionFeedItemsRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12U\n\noperations\x18\x02 \x03(\x0b\x32<.google.ads.googleads.v4.services.ExtensionFeedItemOperationB\x03\xe0\x41\x02\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\"\xfc\x01\n\x1a\x45xtensionFeedItemOperation\x12/\n\x0bupdate_mask\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12\x46\n\x06\x63reate\x18\x01 \x01(\x0b\x32\x34.google.ads.googleads.v4.resources.ExtensionFeedItemH\x00\x12\x46\n\x06update\x18\x02 \x01(\x0b\x32\x34.google.ads.googleads.v4.resources.ExtensionFeedItemH\x00\x12\x10\n\x06remove\x18\x03 \x01(\tH\x00\x42\x0b\n\toperation\"\xa7\x01\n MutateExtensionFeedItemsResponse\x12\x31\n\x15partial_failure_error\x18\x03 \x01(\x0b\x32\x12.google.rpc.Status\x12P\n\x07results\x18\x02 \x03(\x0b\x32?.google.ads.googleads.v4.services.MutateExtensionFeedItemResult\"6\n\x1dMutateExtensionFeedItemResult\x12\x15\n\rresource_name\x18\x01 \x01(\t2\x94\x04\n\x18\x45xtensionFeedItemService\x12\xd9\x01\n\x14GetExtensionFeedItem\x12=.google.ads.googleads.v4.services.GetExtensionFeedItemRequest\x1a\x34.google.ads.googleads.v4.resources.ExtensionFeedItem\"L\x82\xd3\xe4\x93\x02\x36\x12\x34/v4/{resource_name=customers/*/extensionFeedItems/*}\xda\x41\rresource_name\x12\xfe\x01\n\x18MutateExtensionFeedItems\x12\x41.google.ads.googleads.v4.services.MutateExtensionFeedItemsRequest\x1a\x42.google.ads.googleads.v4.services.MutateExtensionFeedItemsResponse\"[\x82\xd3\xe4\x93\x02<\"7/v4/customers/{customer_id=*}/extensionFeedItems:mutate:\x01*\xda\x41\x16\x63ustomer_id,operations\x1a\x1b\xca\x41\x18googleads.googleapis.comB\x84\x02\n$com.google.ads.googleads.v4.servicesB\x1d\x45xtensionFeedItemServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V4.Services\xca\x02 Google\\Ads\\GoogleAds\\V4\\Services\xea\x02$Google::Ads::GoogleAds::V4::Servicesb\x06proto3') + , + dependencies=[google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_extension__feed__item__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_api_dot_client__pb2.DESCRIPTOR,google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_api_dot_resource__pb2.DESCRIPTOR,google_dot_protobuf_dot_field__mask__pb2.DESCRIPTOR,google_dot_rpc_dot_status__pb2.DESCRIPTOR,]) + + + + +_GETEXTENSIONFEEDITEMREQUEST = _descriptor.Descriptor( + name='GetExtensionFeedItemRequest', + full_name='google.ads.googleads.v4.services.GetExtensionFeedItemRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.services.GetExtensionFeedItemRequest.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002\372A,\n*googleads.googleapis.com/ExtensionFeedItem'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=351, + serialized_end=455, +) + + +_MUTATEEXTENSIONFEEDITEMSREQUEST = _descriptor.Descriptor( + name='MutateExtensionFeedItemsRequest', + full_name='google.ads.googleads.v4.services.MutateExtensionFeedItemsRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='customer_id', full_name='google.ads.googleads.v4.services.MutateExtensionFeedItemsRequest.customer_id', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='operations', full_name='google.ads.googleads.v4.services.MutateExtensionFeedItemsRequest.operations', index=1, + number=2, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='partial_failure', full_name='google.ads.googleads.v4.services.MutateExtensionFeedItemsRequest.partial_failure', index=2, + number=3, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='validate_only', full_name='google.ads.googleads.v4.services.MutateExtensionFeedItemsRequest.validate_only', index=3, + number=4, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=458, + serialized_end=652, +) + + +_EXTENSIONFEEDITEMOPERATION = _descriptor.Descriptor( + name='ExtensionFeedItemOperation', + full_name='google.ads.googleads.v4.services.ExtensionFeedItemOperation', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='update_mask', full_name='google.ads.googleads.v4.services.ExtensionFeedItemOperation.update_mask', index=0, + number=4, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='create', full_name='google.ads.googleads.v4.services.ExtensionFeedItemOperation.create', index=1, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='update', full_name='google.ads.googleads.v4.services.ExtensionFeedItemOperation.update', index=2, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='remove', full_name='google.ads.googleads.v4.services.ExtensionFeedItemOperation.remove', index=3, + number=3, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name='operation', full_name='google.ads.googleads.v4.services.ExtensionFeedItemOperation.operation', + index=0, containing_type=None, fields=[]), + ], + serialized_start=655, + serialized_end=907, +) + + +_MUTATEEXTENSIONFEEDITEMSRESPONSE = _descriptor.Descriptor( + name='MutateExtensionFeedItemsResponse', + full_name='google.ads.googleads.v4.services.MutateExtensionFeedItemsResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='partial_failure_error', full_name='google.ads.googleads.v4.services.MutateExtensionFeedItemsResponse.partial_failure_error', index=0, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='results', full_name='google.ads.googleads.v4.services.MutateExtensionFeedItemsResponse.results', index=1, + number=2, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=910, + serialized_end=1077, +) + + +_MUTATEEXTENSIONFEEDITEMRESULT = _descriptor.Descriptor( + name='MutateExtensionFeedItemResult', + full_name='google.ads.googleads.v4.services.MutateExtensionFeedItemResult', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.services.MutateExtensionFeedItemResult.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1079, + serialized_end=1133, +) + +_MUTATEEXTENSIONFEEDITEMSREQUEST.fields_by_name['operations'].message_type = _EXTENSIONFEEDITEMOPERATION +_EXTENSIONFEEDITEMOPERATION.fields_by_name['update_mask'].message_type = google_dot_protobuf_dot_field__mask__pb2._FIELDMASK +_EXTENSIONFEEDITEMOPERATION.fields_by_name['create'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_extension__feed__item__pb2._EXTENSIONFEEDITEM +_EXTENSIONFEEDITEMOPERATION.fields_by_name['update'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_extension__feed__item__pb2._EXTENSIONFEEDITEM +_EXTENSIONFEEDITEMOPERATION.oneofs_by_name['operation'].fields.append( + _EXTENSIONFEEDITEMOPERATION.fields_by_name['create']) +_EXTENSIONFEEDITEMOPERATION.fields_by_name['create'].containing_oneof = _EXTENSIONFEEDITEMOPERATION.oneofs_by_name['operation'] +_EXTENSIONFEEDITEMOPERATION.oneofs_by_name['operation'].fields.append( + _EXTENSIONFEEDITEMOPERATION.fields_by_name['update']) +_EXTENSIONFEEDITEMOPERATION.fields_by_name['update'].containing_oneof = _EXTENSIONFEEDITEMOPERATION.oneofs_by_name['operation'] +_EXTENSIONFEEDITEMOPERATION.oneofs_by_name['operation'].fields.append( + _EXTENSIONFEEDITEMOPERATION.fields_by_name['remove']) +_EXTENSIONFEEDITEMOPERATION.fields_by_name['remove'].containing_oneof = _EXTENSIONFEEDITEMOPERATION.oneofs_by_name['operation'] +_MUTATEEXTENSIONFEEDITEMSRESPONSE.fields_by_name['partial_failure_error'].message_type = google_dot_rpc_dot_status__pb2._STATUS +_MUTATEEXTENSIONFEEDITEMSRESPONSE.fields_by_name['results'].message_type = _MUTATEEXTENSIONFEEDITEMRESULT +DESCRIPTOR.message_types_by_name['GetExtensionFeedItemRequest'] = _GETEXTENSIONFEEDITEMREQUEST +DESCRIPTOR.message_types_by_name['MutateExtensionFeedItemsRequest'] = _MUTATEEXTENSIONFEEDITEMSREQUEST +DESCRIPTOR.message_types_by_name['ExtensionFeedItemOperation'] = _EXTENSIONFEEDITEMOPERATION +DESCRIPTOR.message_types_by_name['MutateExtensionFeedItemsResponse'] = _MUTATEEXTENSIONFEEDITEMSRESPONSE +DESCRIPTOR.message_types_by_name['MutateExtensionFeedItemResult'] = _MUTATEEXTENSIONFEEDITEMRESULT +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +GetExtensionFeedItemRequest = _reflection.GeneratedProtocolMessageType('GetExtensionFeedItemRequest', (_message.Message,), dict( + DESCRIPTOR = _GETEXTENSIONFEEDITEMREQUEST, + __module__ = 'google.ads.googleads_v4.proto.services.extension_feed_item_service_pb2' + , + __doc__ = """Request message for + [ExtensionFeedItemService.GetExtensionFeedItem][google.ads.googleads.v4.services.ExtensionFeedItemService.GetExtensionFeedItem]. + + + Attributes: + resource_name: + Required. The resource name of the extension feed item to + fetch. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.GetExtensionFeedItemRequest) + )) +_sym_db.RegisterMessage(GetExtensionFeedItemRequest) + +MutateExtensionFeedItemsRequest = _reflection.GeneratedProtocolMessageType('MutateExtensionFeedItemsRequest', (_message.Message,), dict( + DESCRIPTOR = _MUTATEEXTENSIONFEEDITEMSREQUEST, + __module__ = 'google.ads.googleads_v4.proto.services.extension_feed_item_service_pb2' + , + __doc__ = """Request message for + [ExtensionFeedItemService.MutateExtensionFeedItems][google.ads.googleads.v4.services.ExtensionFeedItemService.MutateExtensionFeedItems]. + + + Attributes: + customer_id: + Required. The ID of the customer whose extension feed items + are being modified. + operations: + Required. The list of operations to perform on individual + extension feed items. + partial_failure: + If true, successful operations will be carried out and invalid + operations will return errors. If false, all operations will + be carried out in one transaction if and only if they are all + valid. Default is false. + validate_only: + If true, the request is validated but not executed. Only + errors are returned, not results. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.MutateExtensionFeedItemsRequest) + )) +_sym_db.RegisterMessage(MutateExtensionFeedItemsRequest) + +ExtensionFeedItemOperation = _reflection.GeneratedProtocolMessageType('ExtensionFeedItemOperation', (_message.Message,), dict( + DESCRIPTOR = _EXTENSIONFEEDITEMOPERATION, + __module__ = 'google.ads.googleads_v4.proto.services.extension_feed_item_service_pb2' + , + __doc__ = """A single operation (create, update, remove) on an extension feed item. + + + Attributes: + update_mask: + FieldMask that determines which resource fields are modified + in an update. + operation: + The mutate operation. + create: + Create operation: No resource name is expected for the new + extension feed item. + update: + Update operation: The extension feed item is expected to have + a valid resource name. + remove: + Remove operation: A resource name for the removed extension + feed item is expected, in this format: + ``customers/{customer_id}/extensionFeedItems/{feed_item_id}`` + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.ExtensionFeedItemOperation) + )) +_sym_db.RegisterMessage(ExtensionFeedItemOperation) + +MutateExtensionFeedItemsResponse = _reflection.GeneratedProtocolMessageType('MutateExtensionFeedItemsResponse', (_message.Message,), dict( + DESCRIPTOR = _MUTATEEXTENSIONFEEDITEMSRESPONSE, + __module__ = 'google.ads.googleads_v4.proto.services.extension_feed_item_service_pb2' + , + __doc__ = """Response message for an extension feed item mutate. + + + Attributes: + partial_failure_error: + Errors that pertain to operation failures in the partial + failure mode. Returned only when partial\_failure = true and + all errors occur inside the operations. If any errors occur + outside the operations (e.g. auth errors), we return an RPC + level error. + results: + All results for the mutate. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.MutateExtensionFeedItemsResponse) + )) +_sym_db.RegisterMessage(MutateExtensionFeedItemsResponse) + +MutateExtensionFeedItemResult = _reflection.GeneratedProtocolMessageType('MutateExtensionFeedItemResult', (_message.Message,), dict( + DESCRIPTOR = _MUTATEEXTENSIONFEEDITEMRESULT, + __module__ = 'google.ads.googleads_v4.proto.services.extension_feed_item_service_pb2' + , + __doc__ = """The result for the extension feed item mutate. + + + Attributes: + resource_name: + Returned for successful operations. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.MutateExtensionFeedItemResult) + )) +_sym_db.RegisterMessage(MutateExtensionFeedItemResult) + + +DESCRIPTOR._options = None +_GETEXTENSIONFEEDITEMREQUEST.fields_by_name['resource_name']._options = None +_MUTATEEXTENSIONFEEDITEMSREQUEST.fields_by_name['customer_id']._options = None +_MUTATEEXTENSIONFEEDITEMSREQUEST.fields_by_name['operations']._options = None + +_EXTENSIONFEEDITEMSERVICE = _descriptor.ServiceDescriptor( + name='ExtensionFeedItemService', + full_name='google.ads.googleads.v4.services.ExtensionFeedItemService', + file=DESCRIPTOR, + index=0, + serialized_options=_b('\312A\030googleads.googleapis.com'), + serialized_start=1136, + serialized_end=1668, + methods=[ + _descriptor.MethodDescriptor( + name='GetExtensionFeedItem', + full_name='google.ads.googleads.v4.services.ExtensionFeedItemService.GetExtensionFeedItem', + index=0, + containing_service=None, + input_type=_GETEXTENSIONFEEDITEMREQUEST, + output_type=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_extension__feed__item__pb2._EXTENSIONFEEDITEM, + serialized_options=_b('\202\323\344\223\0026\0224/v4/{resource_name=customers/*/extensionFeedItems/*}\332A\rresource_name'), + ), + _descriptor.MethodDescriptor( + name='MutateExtensionFeedItems', + full_name='google.ads.googleads.v4.services.ExtensionFeedItemService.MutateExtensionFeedItems', + index=1, + containing_service=None, + input_type=_MUTATEEXTENSIONFEEDITEMSREQUEST, + output_type=_MUTATEEXTENSIONFEEDITEMSRESPONSE, + serialized_options=_b('\202\323\344\223\002<\"7/v4/customers/{customer_id=*}/extensionFeedItems:mutate:\001*\332A\026customer_id,operations'), + ), +]) +_sym_db.RegisterServiceDescriptor(_EXTENSIONFEEDITEMSERVICE) + +DESCRIPTOR.services_by_name['ExtensionFeedItemService'] = _EXTENSIONFEEDITEMSERVICE + +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v4/proto/services/extension_feed_item_service_pb2_grpc.py b/google/ads/google_ads/v4/proto/services/extension_feed_item_service_pb2_grpc.py new file mode 100644 index 000000000..083eacdd7 --- /dev/null +++ b/google/ads/google_ads/v4/proto/services/extension_feed_item_service_pb2_grpc.py @@ -0,0 +1,69 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +import grpc + +from google.ads.google_ads.v4.proto.resources import extension_feed_item_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_extension__feed__item__pb2 +from google.ads.google_ads.v4.proto.services import extension_feed_item_service_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_extension__feed__item__service__pb2 + + +class ExtensionFeedItemServiceStub(object): + """Proto file describing the ExtensionFeedItem service. + + Service to manage extension feed items. + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.GetExtensionFeedItem = channel.unary_unary( + '/google.ads.googleads.v4.services.ExtensionFeedItemService/GetExtensionFeedItem', + request_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_extension__feed__item__service__pb2.GetExtensionFeedItemRequest.SerializeToString, + response_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_extension__feed__item__pb2.ExtensionFeedItem.FromString, + ) + self.MutateExtensionFeedItems = channel.unary_unary( + '/google.ads.googleads.v4.services.ExtensionFeedItemService/MutateExtensionFeedItems', + request_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_extension__feed__item__service__pb2.MutateExtensionFeedItemsRequest.SerializeToString, + response_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_extension__feed__item__service__pb2.MutateExtensionFeedItemsResponse.FromString, + ) + + +class ExtensionFeedItemServiceServicer(object): + """Proto file describing the ExtensionFeedItem service. + + Service to manage extension feed items. + """ + + def GetExtensionFeedItem(self, request, context): + """Returns the requested extension feed item in full detail. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def MutateExtensionFeedItems(self, request, context): + """Creates, updates, or removes extension feed items. Operation + statuses are returned. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_ExtensionFeedItemServiceServicer_to_server(servicer, server): + rpc_method_handlers = { + 'GetExtensionFeedItem': grpc.unary_unary_rpc_method_handler( + servicer.GetExtensionFeedItem, + request_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_extension__feed__item__service__pb2.GetExtensionFeedItemRequest.FromString, + response_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_extension__feed__item__pb2.ExtensionFeedItem.SerializeToString, + ), + 'MutateExtensionFeedItems': grpc.unary_unary_rpc_method_handler( + servicer.MutateExtensionFeedItems, + request_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_extension__feed__item__service__pb2.MutateExtensionFeedItemsRequest.FromString, + response_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_extension__feed__item__service__pb2.MutateExtensionFeedItemsResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'google.ads.googleads.v4.services.ExtensionFeedItemService', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) diff --git a/google/ads/google_ads/v4/proto/services/feed_item_service_pb2.py b/google/ads/google_ads/v4/proto/services/feed_item_service_pb2.py new file mode 100644 index 000000000..069605043 --- /dev/null +++ b/google/ads/google_ads/v4/proto/services/feed_item_service_pb2.py @@ -0,0 +1,411 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/services/feed_item_service.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.ads.google_ads.v4.proto.resources import feed_item_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_feed__item__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 +from google.api import client_pb2 as google_dot_api_dot_client__pb2 +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 +from google.protobuf import field_mask_pb2 as google_dot_protobuf_dot_field__mask__pb2 +from google.rpc import status_pb2 as google_dot_rpc_dot_status__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/services/feed_item_service.proto', + package='google.ads.googleads.v4.services', + syntax='proto3', + serialized_options=_b('\n$com.google.ads.googleads.v4.servicesB\024FeedItemServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V4.Services\312\002 Google\\Ads\\GoogleAds\\V4\\Services\352\002$Google::Ads::GoogleAds::V4::Services'), + serialized_pb=_b('\n>google/ads/googleads_v4/proto/services/feed_item_service.proto\x12 google.ads.googleads.v4.services\x1a\x37google/ads/googleads_v4/proto/resources/feed_item.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/protobuf/field_mask.proto\x1a\x17google/rpc/status.proto\"V\n\x12GetFeedItemRequest\x12@\n\rresource_name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!googleads.googleapis.com/FeedItem\"\xb0\x01\n\x16MutateFeedItemsRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12L\n\noperations\x18\x02 \x03(\x0b\x32\x33.google.ads.googleads.v4.services.FeedItemOperationB\x03\xe0\x41\x02\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\"\xe1\x01\n\x11\x46\x65\x65\x64ItemOperation\x12/\n\x0bupdate_mask\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12=\n\x06\x63reate\x18\x01 \x01(\x0b\x32+.google.ads.googleads.v4.resources.FeedItemH\x00\x12=\n\x06update\x18\x02 \x01(\x0b\x32+.google.ads.googleads.v4.resources.FeedItemH\x00\x12\x10\n\x06remove\x18\x03 \x01(\tH\x00\x42\x0b\n\toperation\"\x95\x01\n\x17MutateFeedItemsResponse\x12\x31\n\x15partial_failure_error\x18\x03 \x01(\x0b\x32\x12.google.rpc.Status\x12G\n\x07results\x18\x02 \x03(\x0b\x32\x36.google.ads.googleads.v4.services.MutateFeedItemResult\"-\n\x14MutateFeedItemResult\x12\x15\n\rresource_name\x18\x01 \x01(\t2\xc3\x03\n\x0f\x46\x65\x65\x64ItemService\x12\xb5\x01\n\x0bGetFeedItem\x12\x34.google.ads.googleads.v4.services.GetFeedItemRequest\x1a+.google.ads.googleads.v4.resources.FeedItem\"C\x82\xd3\xe4\x93\x02-\x12+/v4/{resource_name=customers/*/feedItems/*}\xda\x41\rresource_name\x12\xda\x01\n\x0fMutateFeedItems\x12\x38.google.ads.googleads.v4.services.MutateFeedItemsRequest\x1a\x39.google.ads.googleads.v4.services.MutateFeedItemsResponse\"R\x82\xd3\xe4\x93\x02\x33\"./v4/customers/{customer_id=*}/feedItems:mutate:\x01*\xda\x41\x16\x63ustomer_id,operations\x1a\x1b\xca\x41\x18googleads.googleapis.comB\xfb\x01\n$com.google.ads.googleads.v4.servicesB\x14\x46\x65\x65\x64ItemServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V4.Services\xca\x02 Google\\Ads\\GoogleAds\\V4\\Services\xea\x02$Google::Ads::GoogleAds::V4::Servicesb\x06proto3') + , + dependencies=[google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_feed__item__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_api_dot_client__pb2.DESCRIPTOR,google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_api_dot_resource__pb2.DESCRIPTOR,google_dot_protobuf_dot_field__mask__pb2.DESCRIPTOR,google_dot_rpc_dot_status__pb2.DESCRIPTOR,]) + + + + +_GETFEEDITEMREQUEST = _descriptor.Descriptor( + name='GetFeedItemRequest', + full_name='google.ads.googleads.v4.services.GetFeedItemRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.services.GetFeedItemRequest.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002\372A#\n!googleads.googleapis.com/FeedItem'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=331, + serialized_end=417, +) + + +_MUTATEFEEDITEMSREQUEST = _descriptor.Descriptor( + name='MutateFeedItemsRequest', + full_name='google.ads.googleads.v4.services.MutateFeedItemsRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='customer_id', full_name='google.ads.googleads.v4.services.MutateFeedItemsRequest.customer_id', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='operations', full_name='google.ads.googleads.v4.services.MutateFeedItemsRequest.operations', index=1, + number=2, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='partial_failure', full_name='google.ads.googleads.v4.services.MutateFeedItemsRequest.partial_failure', index=2, + number=3, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='validate_only', full_name='google.ads.googleads.v4.services.MutateFeedItemsRequest.validate_only', index=3, + number=4, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=420, + serialized_end=596, +) + + +_FEEDITEMOPERATION = _descriptor.Descriptor( + name='FeedItemOperation', + full_name='google.ads.googleads.v4.services.FeedItemOperation', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='update_mask', full_name='google.ads.googleads.v4.services.FeedItemOperation.update_mask', index=0, + number=4, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='create', full_name='google.ads.googleads.v4.services.FeedItemOperation.create', index=1, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='update', full_name='google.ads.googleads.v4.services.FeedItemOperation.update', index=2, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='remove', full_name='google.ads.googleads.v4.services.FeedItemOperation.remove', index=3, + number=3, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name='operation', full_name='google.ads.googleads.v4.services.FeedItemOperation.operation', + index=0, containing_type=None, fields=[]), + ], + serialized_start=599, + serialized_end=824, +) + + +_MUTATEFEEDITEMSRESPONSE = _descriptor.Descriptor( + name='MutateFeedItemsResponse', + full_name='google.ads.googleads.v4.services.MutateFeedItemsResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='partial_failure_error', full_name='google.ads.googleads.v4.services.MutateFeedItemsResponse.partial_failure_error', index=0, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='results', full_name='google.ads.googleads.v4.services.MutateFeedItemsResponse.results', index=1, + number=2, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=827, + serialized_end=976, +) + + +_MUTATEFEEDITEMRESULT = _descriptor.Descriptor( + name='MutateFeedItemResult', + full_name='google.ads.googleads.v4.services.MutateFeedItemResult', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.services.MutateFeedItemResult.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=978, + serialized_end=1023, +) + +_MUTATEFEEDITEMSREQUEST.fields_by_name['operations'].message_type = _FEEDITEMOPERATION +_FEEDITEMOPERATION.fields_by_name['update_mask'].message_type = google_dot_protobuf_dot_field__mask__pb2._FIELDMASK +_FEEDITEMOPERATION.fields_by_name['create'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_feed__item__pb2._FEEDITEM +_FEEDITEMOPERATION.fields_by_name['update'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_feed__item__pb2._FEEDITEM +_FEEDITEMOPERATION.oneofs_by_name['operation'].fields.append( + _FEEDITEMOPERATION.fields_by_name['create']) +_FEEDITEMOPERATION.fields_by_name['create'].containing_oneof = _FEEDITEMOPERATION.oneofs_by_name['operation'] +_FEEDITEMOPERATION.oneofs_by_name['operation'].fields.append( + _FEEDITEMOPERATION.fields_by_name['update']) +_FEEDITEMOPERATION.fields_by_name['update'].containing_oneof = _FEEDITEMOPERATION.oneofs_by_name['operation'] +_FEEDITEMOPERATION.oneofs_by_name['operation'].fields.append( + _FEEDITEMOPERATION.fields_by_name['remove']) +_FEEDITEMOPERATION.fields_by_name['remove'].containing_oneof = _FEEDITEMOPERATION.oneofs_by_name['operation'] +_MUTATEFEEDITEMSRESPONSE.fields_by_name['partial_failure_error'].message_type = google_dot_rpc_dot_status__pb2._STATUS +_MUTATEFEEDITEMSRESPONSE.fields_by_name['results'].message_type = _MUTATEFEEDITEMRESULT +DESCRIPTOR.message_types_by_name['GetFeedItemRequest'] = _GETFEEDITEMREQUEST +DESCRIPTOR.message_types_by_name['MutateFeedItemsRequest'] = _MUTATEFEEDITEMSREQUEST +DESCRIPTOR.message_types_by_name['FeedItemOperation'] = _FEEDITEMOPERATION +DESCRIPTOR.message_types_by_name['MutateFeedItemsResponse'] = _MUTATEFEEDITEMSRESPONSE +DESCRIPTOR.message_types_by_name['MutateFeedItemResult'] = _MUTATEFEEDITEMRESULT +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +GetFeedItemRequest = _reflection.GeneratedProtocolMessageType('GetFeedItemRequest', (_message.Message,), dict( + DESCRIPTOR = _GETFEEDITEMREQUEST, + __module__ = 'google.ads.googleads_v4.proto.services.feed_item_service_pb2' + , + __doc__ = """Request message for + [FeedItemService.GetFeedItem][google.ads.googleads.v4.services.FeedItemService.GetFeedItem]. + + + Attributes: + resource_name: + Required. The resource name of the feed item to fetch. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.GetFeedItemRequest) + )) +_sym_db.RegisterMessage(GetFeedItemRequest) + +MutateFeedItemsRequest = _reflection.GeneratedProtocolMessageType('MutateFeedItemsRequest', (_message.Message,), dict( + DESCRIPTOR = _MUTATEFEEDITEMSREQUEST, + __module__ = 'google.ads.googleads_v4.proto.services.feed_item_service_pb2' + , + __doc__ = """Request message for + [FeedItemService.MutateFeedItems][google.ads.googleads.v4.services.FeedItemService.MutateFeedItems]. + + + Attributes: + customer_id: + Required. The ID of the customer whose feed items are being + modified. + operations: + Required. The list of operations to perform on individual feed + items. + partial_failure: + If true, successful operations will be carried out and invalid + operations will return errors. If false, all operations will + be carried out in one transaction if and only if they are all + valid. Default is false. + validate_only: + If true, the request is validated but not executed. Only + errors are returned, not results. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.MutateFeedItemsRequest) + )) +_sym_db.RegisterMessage(MutateFeedItemsRequest) + +FeedItemOperation = _reflection.GeneratedProtocolMessageType('FeedItemOperation', (_message.Message,), dict( + DESCRIPTOR = _FEEDITEMOPERATION, + __module__ = 'google.ads.googleads_v4.proto.services.feed_item_service_pb2' + , + __doc__ = """A single operation (create, update, remove) on an feed item. + + + Attributes: + update_mask: + FieldMask that determines which resource fields are modified + in an update. + operation: + The mutate operation. + create: + Create operation: No resource name is expected for the new + feed item. + update: + Update operation: The feed item is expected to have a valid + resource name. + remove: + Remove operation: A resource name for the removed feed item is + expected, in this format: + ``customers/{customer_id}/feedItems/{feed_id}~{feed_item_id}`` + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.FeedItemOperation) + )) +_sym_db.RegisterMessage(FeedItemOperation) + +MutateFeedItemsResponse = _reflection.GeneratedProtocolMessageType('MutateFeedItemsResponse', (_message.Message,), dict( + DESCRIPTOR = _MUTATEFEEDITEMSRESPONSE, + __module__ = 'google.ads.googleads_v4.proto.services.feed_item_service_pb2' + , + __doc__ = """Response message for an feed item mutate. + + + Attributes: + partial_failure_error: + Errors that pertain to operation failures in the partial + failure mode. Returned only when partial\_failure = true and + all errors occur inside the operations. If any errors occur + outside the operations (e.g. auth errors), we return an RPC + level error. + results: + All results for the mutate. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.MutateFeedItemsResponse) + )) +_sym_db.RegisterMessage(MutateFeedItemsResponse) + +MutateFeedItemResult = _reflection.GeneratedProtocolMessageType('MutateFeedItemResult', (_message.Message,), dict( + DESCRIPTOR = _MUTATEFEEDITEMRESULT, + __module__ = 'google.ads.googleads_v4.proto.services.feed_item_service_pb2' + , + __doc__ = """The result for the feed item mutate. + + + Attributes: + resource_name: + Returned for successful operations. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.MutateFeedItemResult) + )) +_sym_db.RegisterMessage(MutateFeedItemResult) + + +DESCRIPTOR._options = None +_GETFEEDITEMREQUEST.fields_by_name['resource_name']._options = None +_MUTATEFEEDITEMSREQUEST.fields_by_name['customer_id']._options = None +_MUTATEFEEDITEMSREQUEST.fields_by_name['operations']._options = None + +_FEEDITEMSERVICE = _descriptor.ServiceDescriptor( + name='FeedItemService', + full_name='google.ads.googleads.v4.services.FeedItemService', + file=DESCRIPTOR, + index=0, + serialized_options=_b('\312A\030googleads.googleapis.com'), + serialized_start=1026, + serialized_end=1477, + methods=[ + _descriptor.MethodDescriptor( + name='GetFeedItem', + full_name='google.ads.googleads.v4.services.FeedItemService.GetFeedItem', + index=0, + containing_service=None, + input_type=_GETFEEDITEMREQUEST, + output_type=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_feed__item__pb2._FEEDITEM, + serialized_options=_b('\202\323\344\223\002-\022+/v4/{resource_name=customers/*/feedItems/*}\332A\rresource_name'), + ), + _descriptor.MethodDescriptor( + name='MutateFeedItems', + full_name='google.ads.googleads.v4.services.FeedItemService.MutateFeedItems', + index=1, + containing_service=None, + input_type=_MUTATEFEEDITEMSREQUEST, + output_type=_MUTATEFEEDITEMSRESPONSE, + serialized_options=_b('\202\323\344\223\0023\"./v4/customers/{customer_id=*}/feedItems:mutate:\001*\332A\026customer_id,operations'), + ), +]) +_sym_db.RegisterServiceDescriptor(_FEEDITEMSERVICE) + +DESCRIPTOR.services_by_name['FeedItemService'] = _FEEDITEMSERVICE + +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v4/proto/services/feed_item_service_pb2_grpc.py b/google/ads/google_ads/v4/proto/services/feed_item_service_pb2_grpc.py new file mode 100644 index 000000000..6d6a0f774 --- /dev/null +++ b/google/ads/google_ads/v4/proto/services/feed_item_service_pb2_grpc.py @@ -0,0 +1,69 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +import grpc + +from google.ads.google_ads.v4.proto.resources import feed_item_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_feed__item__pb2 +from google.ads.google_ads.v4.proto.services import feed_item_service_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_feed__item__service__pb2 + + +class FeedItemServiceStub(object): + """Proto file describing the FeedItem service. + + Service to manage feed items. + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.GetFeedItem = channel.unary_unary( + '/google.ads.googleads.v4.services.FeedItemService/GetFeedItem', + request_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_feed__item__service__pb2.GetFeedItemRequest.SerializeToString, + response_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_feed__item__pb2.FeedItem.FromString, + ) + self.MutateFeedItems = channel.unary_unary( + '/google.ads.googleads.v4.services.FeedItemService/MutateFeedItems', + request_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_feed__item__service__pb2.MutateFeedItemsRequest.SerializeToString, + response_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_feed__item__service__pb2.MutateFeedItemsResponse.FromString, + ) + + +class FeedItemServiceServicer(object): + """Proto file describing the FeedItem service. + + Service to manage feed items. + """ + + def GetFeedItem(self, request, context): + """Returns the requested feed item in full detail. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def MutateFeedItems(self, request, context): + """Creates, updates, or removes feed items. Operation statuses are + returned. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_FeedItemServiceServicer_to_server(servicer, server): + rpc_method_handlers = { + 'GetFeedItem': grpc.unary_unary_rpc_method_handler( + servicer.GetFeedItem, + request_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_feed__item__service__pb2.GetFeedItemRequest.FromString, + response_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_feed__item__pb2.FeedItem.SerializeToString, + ), + 'MutateFeedItems': grpc.unary_unary_rpc_method_handler( + servicer.MutateFeedItems, + request_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_feed__item__service__pb2.MutateFeedItemsRequest.FromString, + response_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_feed__item__service__pb2.MutateFeedItemsResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'google.ads.googleads.v4.services.FeedItemService', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) diff --git a/google/ads/google_ads/v4/proto/services/feed_item_target_service_pb2.py b/google/ads/google_ads/v4/proto/services/feed_item_target_service_pb2.py new file mode 100644 index 000000000..dfdeb0038 --- /dev/null +++ b/google/ads/google_ads/v4/proto/services/feed_item_target_service_pb2.py @@ -0,0 +1,349 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/services/feed_item_target_service.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.ads.google_ads.v4.proto.resources import feed_item_target_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_feed__item__target__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 +from google.api import client_pb2 as google_dot_api_dot_client__pb2 +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/services/feed_item_target_service.proto', + package='google.ads.googleads.v4.services', + syntax='proto3', + serialized_options=_b('\n$com.google.ads.googleads.v4.servicesB\032FeedItemTargetServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V4.Services\312\002 Google\\Ads\\GoogleAds\\V4\\Services\352\002$Google::Ads::GoogleAds::V4::Services'), + serialized_pb=_b('\nEgoogle/ads/googleads_v4/proto/services/feed_item_target_service.proto\x12 google.ads.googleads.v4.services\x1a>google/ads/googleads_v4/proto/resources/feed_item_target.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"b\n\x18GetFeedItemTargetRequest\x12\x46\n\rresource_name\x18\x01 \x01(\tB/\xe0\x41\x02\xfa\x41)\n\'googleads.googleapis.com/FeedItemTarget\"\x8c\x01\n\x1cMutateFeedItemTargetsRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12R\n\noperations\x18\x02 \x03(\x0b\x32\x39.google.ads.googleads.v4.services.FeedItemTargetOperationB\x03\xe0\x41\x02\"}\n\x17\x46\x65\x65\x64ItemTargetOperation\x12\x43\n\x06\x63reate\x18\x01 \x01(\x0b\x32\x31.google.ads.googleads.v4.resources.FeedItemTargetH\x00\x12\x10\n\x06remove\x18\x02 \x01(\tH\x00\x42\x0b\n\toperation\"n\n\x1dMutateFeedItemTargetsResponse\x12M\n\x07results\x18\x02 \x03(\x0b\x32<.google.ads.googleads.v4.services.MutateFeedItemTargetResult\"3\n\x1aMutateFeedItemTargetResult\x12\x15\n\rresource_name\x18\x01 \x01(\t2\xf9\x03\n\x15\x46\x65\x65\x64ItemTargetService\x12\xcd\x01\n\x11GetFeedItemTarget\x12:.google.ads.googleads.v4.services.GetFeedItemTargetRequest\x1a\x31.google.ads.googleads.v4.resources.FeedItemTarget\"I\x82\xd3\xe4\x93\x02\x33\x12\x31/v4/{resource_name=customers/*/feedItemTargets/*}\xda\x41\rresource_name\x12\xf2\x01\n\x15MutateFeedItemTargets\x12>.google.ads.googleads.v4.services.MutateFeedItemTargetsRequest\x1a?.google.ads.googleads.v4.services.MutateFeedItemTargetsResponse\"X\x82\xd3\xe4\x93\x02\x39\"4/v4/customers/{customer_id=*}/feedItemTargets:mutate:\x01*\xda\x41\x16\x63ustomer_id,operations\x1a\x1b\xca\x41\x18googleads.googleapis.comB\x81\x02\n$com.google.ads.googleads.v4.servicesB\x1a\x46\x65\x65\x64ItemTargetServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V4.Services\xca\x02 Google\\Ads\\GoogleAds\\V4\\Services\xea\x02$Google::Ads::GoogleAds::V4::Servicesb\x06proto3') + , + dependencies=[google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_feed__item__target__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_api_dot_client__pb2.DESCRIPTOR,google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_api_dot_resource__pb2.DESCRIPTOR,]) + + + + +_GETFEEDITEMTARGETREQUEST = _descriptor.Descriptor( + name='GetFeedItemTargetRequest', + full_name='google.ads.googleads.v4.services.GetFeedItemTargetRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.services.GetFeedItemTargetRequest.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002\372A)\n\'googleads.googleapis.com/FeedItemTarget'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=286, + serialized_end=384, +) + + +_MUTATEFEEDITEMTARGETSREQUEST = _descriptor.Descriptor( + name='MutateFeedItemTargetsRequest', + full_name='google.ads.googleads.v4.services.MutateFeedItemTargetsRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='customer_id', full_name='google.ads.googleads.v4.services.MutateFeedItemTargetsRequest.customer_id', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='operations', full_name='google.ads.googleads.v4.services.MutateFeedItemTargetsRequest.operations', index=1, + number=2, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=387, + serialized_end=527, +) + + +_FEEDITEMTARGETOPERATION = _descriptor.Descriptor( + name='FeedItemTargetOperation', + full_name='google.ads.googleads.v4.services.FeedItemTargetOperation', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='create', full_name='google.ads.googleads.v4.services.FeedItemTargetOperation.create', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='remove', full_name='google.ads.googleads.v4.services.FeedItemTargetOperation.remove', index=1, + number=2, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name='operation', full_name='google.ads.googleads.v4.services.FeedItemTargetOperation.operation', + index=0, containing_type=None, fields=[]), + ], + serialized_start=529, + serialized_end=654, +) + + +_MUTATEFEEDITEMTARGETSRESPONSE = _descriptor.Descriptor( + name='MutateFeedItemTargetsResponse', + full_name='google.ads.googleads.v4.services.MutateFeedItemTargetsResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='results', full_name='google.ads.googleads.v4.services.MutateFeedItemTargetsResponse.results', index=0, + number=2, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=656, + serialized_end=766, +) + + +_MUTATEFEEDITEMTARGETRESULT = _descriptor.Descriptor( + name='MutateFeedItemTargetResult', + full_name='google.ads.googleads.v4.services.MutateFeedItemTargetResult', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.services.MutateFeedItemTargetResult.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=768, + serialized_end=819, +) + +_MUTATEFEEDITEMTARGETSREQUEST.fields_by_name['operations'].message_type = _FEEDITEMTARGETOPERATION +_FEEDITEMTARGETOPERATION.fields_by_name['create'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_feed__item__target__pb2._FEEDITEMTARGET +_FEEDITEMTARGETOPERATION.oneofs_by_name['operation'].fields.append( + _FEEDITEMTARGETOPERATION.fields_by_name['create']) +_FEEDITEMTARGETOPERATION.fields_by_name['create'].containing_oneof = _FEEDITEMTARGETOPERATION.oneofs_by_name['operation'] +_FEEDITEMTARGETOPERATION.oneofs_by_name['operation'].fields.append( + _FEEDITEMTARGETOPERATION.fields_by_name['remove']) +_FEEDITEMTARGETOPERATION.fields_by_name['remove'].containing_oneof = _FEEDITEMTARGETOPERATION.oneofs_by_name['operation'] +_MUTATEFEEDITEMTARGETSRESPONSE.fields_by_name['results'].message_type = _MUTATEFEEDITEMTARGETRESULT +DESCRIPTOR.message_types_by_name['GetFeedItemTargetRequest'] = _GETFEEDITEMTARGETREQUEST +DESCRIPTOR.message_types_by_name['MutateFeedItemTargetsRequest'] = _MUTATEFEEDITEMTARGETSREQUEST +DESCRIPTOR.message_types_by_name['FeedItemTargetOperation'] = _FEEDITEMTARGETOPERATION +DESCRIPTOR.message_types_by_name['MutateFeedItemTargetsResponse'] = _MUTATEFEEDITEMTARGETSRESPONSE +DESCRIPTOR.message_types_by_name['MutateFeedItemTargetResult'] = _MUTATEFEEDITEMTARGETRESULT +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +GetFeedItemTargetRequest = _reflection.GeneratedProtocolMessageType('GetFeedItemTargetRequest', (_message.Message,), dict( + DESCRIPTOR = _GETFEEDITEMTARGETREQUEST, + __module__ = 'google.ads.googleads_v4.proto.services.feed_item_target_service_pb2' + , + __doc__ = """Request message for + [FeedItemTargetService.GetFeedItemTarget][google.ads.googleads.v4.services.FeedItemTargetService.GetFeedItemTarget]. + + + Attributes: + resource_name: + Required. The resource name of the feed item targets to fetch. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.GetFeedItemTargetRequest) + )) +_sym_db.RegisterMessage(GetFeedItemTargetRequest) + +MutateFeedItemTargetsRequest = _reflection.GeneratedProtocolMessageType('MutateFeedItemTargetsRequest', (_message.Message,), dict( + DESCRIPTOR = _MUTATEFEEDITEMTARGETSREQUEST, + __module__ = 'google.ads.googleads_v4.proto.services.feed_item_target_service_pb2' + , + __doc__ = """Request message for + [FeedItemTargetService.MutateFeedItemTargets][google.ads.googleads.v4.services.FeedItemTargetService.MutateFeedItemTargets]. + + + Attributes: + customer_id: + Required. The ID of the customer whose feed item targets are + being modified. + operations: + Required. The list of operations to perform on individual feed + item targets. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.MutateFeedItemTargetsRequest) + )) +_sym_db.RegisterMessage(MutateFeedItemTargetsRequest) + +FeedItemTargetOperation = _reflection.GeneratedProtocolMessageType('FeedItemTargetOperation', (_message.Message,), dict( + DESCRIPTOR = _FEEDITEMTARGETOPERATION, + __module__ = 'google.ads.googleads_v4.proto.services.feed_item_target_service_pb2' + , + __doc__ = """A single operation (create, remove) on an feed item target. + + + Attributes: + operation: + The mutate operation. + create: + Create operation: No resource name is expected for the new + feed item target. + remove: + Remove operation: A resource name for the removed feed item + target is expected, in this format: ``customers/{customer_id} + /feedItemTargets/{feed_id}~{feed_item_id}~{feed_item_target_ty + pe}~{feed_item_target_id}`` + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.FeedItemTargetOperation) + )) +_sym_db.RegisterMessage(FeedItemTargetOperation) + +MutateFeedItemTargetsResponse = _reflection.GeneratedProtocolMessageType('MutateFeedItemTargetsResponse', (_message.Message,), dict( + DESCRIPTOR = _MUTATEFEEDITEMTARGETSRESPONSE, + __module__ = 'google.ads.googleads_v4.proto.services.feed_item_target_service_pb2' + , + __doc__ = """Response message for an feed item target mutate. + + + Attributes: + results: + All results for the mutate. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.MutateFeedItemTargetsResponse) + )) +_sym_db.RegisterMessage(MutateFeedItemTargetsResponse) + +MutateFeedItemTargetResult = _reflection.GeneratedProtocolMessageType('MutateFeedItemTargetResult', (_message.Message,), dict( + DESCRIPTOR = _MUTATEFEEDITEMTARGETRESULT, + __module__ = 'google.ads.googleads_v4.proto.services.feed_item_target_service_pb2' + , + __doc__ = """The result for the feed item target mutate. + + + Attributes: + resource_name: + Returned for successful operations. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.MutateFeedItemTargetResult) + )) +_sym_db.RegisterMessage(MutateFeedItemTargetResult) + + +DESCRIPTOR._options = None +_GETFEEDITEMTARGETREQUEST.fields_by_name['resource_name']._options = None +_MUTATEFEEDITEMTARGETSREQUEST.fields_by_name['customer_id']._options = None +_MUTATEFEEDITEMTARGETSREQUEST.fields_by_name['operations']._options = None + +_FEEDITEMTARGETSERVICE = _descriptor.ServiceDescriptor( + name='FeedItemTargetService', + full_name='google.ads.googleads.v4.services.FeedItemTargetService', + file=DESCRIPTOR, + index=0, + serialized_options=_b('\312A\030googleads.googleapis.com'), + serialized_start=822, + serialized_end=1327, + methods=[ + _descriptor.MethodDescriptor( + name='GetFeedItemTarget', + full_name='google.ads.googleads.v4.services.FeedItemTargetService.GetFeedItemTarget', + index=0, + containing_service=None, + input_type=_GETFEEDITEMTARGETREQUEST, + output_type=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_feed__item__target__pb2._FEEDITEMTARGET, + serialized_options=_b('\202\323\344\223\0023\0221/v4/{resource_name=customers/*/feedItemTargets/*}\332A\rresource_name'), + ), + _descriptor.MethodDescriptor( + name='MutateFeedItemTargets', + full_name='google.ads.googleads.v4.services.FeedItemTargetService.MutateFeedItemTargets', + index=1, + containing_service=None, + input_type=_MUTATEFEEDITEMTARGETSREQUEST, + output_type=_MUTATEFEEDITEMTARGETSRESPONSE, + serialized_options=_b('\202\323\344\223\0029\"4/v4/customers/{customer_id=*}/feedItemTargets:mutate:\001*\332A\026customer_id,operations'), + ), +]) +_sym_db.RegisterServiceDescriptor(_FEEDITEMTARGETSERVICE) + +DESCRIPTOR.services_by_name['FeedItemTargetService'] = _FEEDITEMTARGETSERVICE + +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v4/proto/services/feed_item_target_service_pb2_grpc.py b/google/ads/google_ads/v4/proto/services/feed_item_target_service_pb2_grpc.py new file mode 100644 index 000000000..6de22febb --- /dev/null +++ b/google/ads/google_ads/v4/proto/services/feed_item_target_service_pb2_grpc.py @@ -0,0 +1,68 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +import grpc + +from google.ads.google_ads.v4.proto.resources import feed_item_target_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_feed__item__target__pb2 +from google.ads.google_ads.v4.proto.services import feed_item_target_service_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_feed__item__target__service__pb2 + + +class FeedItemTargetServiceStub(object): + """Proto file describing the FeedItemTarget service. + + Service to manage feed item targets. + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.GetFeedItemTarget = channel.unary_unary( + '/google.ads.googleads.v4.services.FeedItemTargetService/GetFeedItemTarget', + request_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_feed__item__target__service__pb2.GetFeedItemTargetRequest.SerializeToString, + response_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_feed__item__target__pb2.FeedItemTarget.FromString, + ) + self.MutateFeedItemTargets = channel.unary_unary( + '/google.ads.googleads.v4.services.FeedItemTargetService/MutateFeedItemTargets', + request_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_feed__item__target__service__pb2.MutateFeedItemTargetsRequest.SerializeToString, + response_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_feed__item__target__service__pb2.MutateFeedItemTargetsResponse.FromString, + ) + + +class FeedItemTargetServiceServicer(object): + """Proto file describing the FeedItemTarget service. + + Service to manage feed item targets. + """ + + def GetFeedItemTarget(self, request, context): + """Returns the requested feed item targets in full detail. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def MutateFeedItemTargets(self, request, context): + """Creates or removes feed item targets. Operation statuses are returned. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_FeedItemTargetServiceServicer_to_server(servicer, server): + rpc_method_handlers = { + 'GetFeedItemTarget': grpc.unary_unary_rpc_method_handler( + servicer.GetFeedItemTarget, + request_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_feed__item__target__service__pb2.GetFeedItemTargetRequest.FromString, + response_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_feed__item__target__pb2.FeedItemTarget.SerializeToString, + ), + 'MutateFeedItemTargets': grpc.unary_unary_rpc_method_handler( + servicer.MutateFeedItemTargets, + request_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_feed__item__target__service__pb2.MutateFeedItemTargetsRequest.FromString, + response_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_feed__item__target__service__pb2.MutateFeedItemTargetsResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'google.ads.googleads.v4.services.FeedItemTargetService', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) diff --git a/google/ads/google_ads/v4/proto/services/feed_mapping_service_pb2.py b/google/ads/google_ads/v4/proto/services/feed_mapping_service_pb2.py new file mode 100644 index 000000000..1366ce24f --- /dev/null +++ b/google/ads/google_ads/v4/proto/services/feed_mapping_service_pb2.py @@ -0,0 +1,385 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/services/feed_mapping_service.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.ads.google_ads.v4.proto.resources import feed_mapping_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_feed__mapping__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 +from google.api import client_pb2 as google_dot_api_dot_client__pb2 +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 +from google.rpc import status_pb2 as google_dot_rpc_dot_status__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/services/feed_mapping_service.proto', + package='google.ads.googleads.v4.services', + syntax='proto3', + serialized_options=_b('\n$com.google.ads.googleads.v4.servicesB\027FeedMappingServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V4.Services\312\002 Google\\Ads\\GoogleAds\\V4\\Services\352\002$Google::Ads::GoogleAds::V4::Services'), + serialized_pb=_b('\nAgoogle/ads/googleads_v4/proto/services/feed_mapping_service.proto\x12 google.ads.googleads.v4.services\x1a:google/ads/googleads_v4/proto/resources/feed_mapping.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x17google/rpc/status.proto\"\\\n\x15GetFeedMappingRequest\x12\x43\n\rresource_name\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$googleads.googleapis.com/FeedMapping\"\xb6\x01\n\x19MutateFeedMappingsRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12O\n\noperations\x18\x02 \x03(\x0b\x32\x36.google.ads.googleads.v4.services.FeedMappingOperationB\x03\xe0\x41\x02\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\"w\n\x14\x46\x65\x65\x64MappingOperation\x12@\n\x06\x63reate\x18\x01 \x01(\x0b\x32..google.ads.googleads.v4.resources.FeedMappingH\x00\x12\x10\n\x06remove\x18\x03 \x01(\tH\x00\x42\x0b\n\toperation\"\x9b\x01\n\x1aMutateFeedMappingsResponse\x12\x31\n\x15partial_failure_error\x18\x03 \x01(\x0b\x32\x12.google.rpc.Status\x12J\n\x07results\x18\x02 \x03(\x0b\x32\x39.google.ads.googleads.v4.services.MutateFeedMappingResult\"0\n\x17MutateFeedMappingResult\x12\x15\n\rresource_name\x18\x01 \x01(\t2\xde\x03\n\x12\x46\x65\x65\x64MappingService\x12\xc1\x01\n\x0eGetFeedMapping\x12\x37.google.ads.googleads.v4.services.GetFeedMappingRequest\x1a..google.ads.googleads.v4.resources.FeedMapping\"F\x82\xd3\xe4\x93\x02\x30\x12./v4/{resource_name=customers/*/feedMappings/*}\xda\x41\rresource_name\x12\xe6\x01\n\x12MutateFeedMappings\x12;.google.ads.googleads.v4.services.MutateFeedMappingsRequest\x1a<.google.ads.googleads.v4.services.MutateFeedMappingsResponse\"U\x82\xd3\xe4\x93\x02\x36\"1/v4/customers/{customer_id=*}/feedMappings:mutate:\x01*\xda\x41\x16\x63ustomer_id,operations\x1a\x1b\xca\x41\x18googleads.googleapis.comB\xfe\x01\n$com.google.ads.googleads.v4.servicesB\x17\x46\x65\x65\x64MappingServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V4.Services\xca\x02 Google\\Ads\\GoogleAds\\V4\\Services\xea\x02$Google::Ads::GoogleAds::V4::Servicesb\x06proto3') + , + dependencies=[google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_feed__mapping__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_api_dot_client__pb2.DESCRIPTOR,google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_api_dot_resource__pb2.DESCRIPTOR,google_dot_rpc_dot_status__pb2.DESCRIPTOR,]) + + + + +_GETFEEDMAPPINGREQUEST = _descriptor.Descriptor( + name='GetFeedMappingRequest', + full_name='google.ads.googleads.v4.services.GetFeedMappingRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.services.GetFeedMappingRequest.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002\372A&\n$googleads.googleapis.com/FeedMapping'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=303, + serialized_end=395, +) + + +_MUTATEFEEDMAPPINGSREQUEST = _descriptor.Descriptor( + name='MutateFeedMappingsRequest', + full_name='google.ads.googleads.v4.services.MutateFeedMappingsRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='customer_id', full_name='google.ads.googleads.v4.services.MutateFeedMappingsRequest.customer_id', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='operations', full_name='google.ads.googleads.v4.services.MutateFeedMappingsRequest.operations', index=1, + number=2, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='partial_failure', full_name='google.ads.googleads.v4.services.MutateFeedMappingsRequest.partial_failure', index=2, + number=3, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='validate_only', full_name='google.ads.googleads.v4.services.MutateFeedMappingsRequest.validate_only', index=3, + number=4, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=398, + serialized_end=580, +) + + +_FEEDMAPPINGOPERATION = _descriptor.Descriptor( + name='FeedMappingOperation', + full_name='google.ads.googleads.v4.services.FeedMappingOperation', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='create', full_name='google.ads.googleads.v4.services.FeedMappingOperation.create', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='remove', full_name='google.ads.googleads.v4.services.FeedMappingOperation.remove', index=1, + number=3, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name='operation', full_name='google.ads.googleads.v4.services.FeedMappingOperation.operation', + index=0, containing_type=None, fields=[]), + ], + serialized_start=582, + serialized_end=701, +) + + +_MUTATEFEEDMAPPINGSRESPONSE = _descriptor.Descriptor( + name='MutateFeedMappingsResponse', + full_name='google.ads.googleads.v4.services.MutateFeedMappingsResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='partial_failure_error', full_name='google.ads.googleads.v4.services.MutateFeedMappingsResponse.partial_failure_error', index=0, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='results', full_name='google.ads.googleads.v4.services.MutateFeedMappingsResponse.results', index=1, + number=2, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=704, + serialized_end=859, +) + + +_MUTATEFEEDMAPPINGRESULT = _descriptor.Descriptor( + name='MutateFeedMappingResult', + full_name='google.ads.googleads.v4.services.MutateFeedMappingResult', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.services.MutateFeedMappingResult.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=861, + serialized_end=909, +) + +_MUTATEFEEDMAPPINGSREQUEST.fields_by_name['operations'].message_type = _FEEDMAPPINGOPERATION +_FEEDMAPPINGOPERATION.fields_by_name['create'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_feed__mapping__pb2._FEEDMAPPING +_FEEDMAPPINGOPERATION.oneofs_by_name['operation'].fields.append( + _FEEDMAPPINGOPERATION.fields_by_name['create']) +_FEEDMAPPINGOPERATION.fields_by_name['create'].containing_oneof = _FEEDMAPPINGOPERATION.oneofs_by_name['operation'] +_FEEDMAPPINGOPERATION.oneofs_by_name['operation'].fields.append( + _FEEDMAPPINGOPERATION.fields_by_name['remove']) +_FEEDMAPPINGOPERATION.fields_by_name['remove'].containing_oneof = _FEEDMAPPINGOPERATION.oneofs_by_name['operation'] +_MUTATEFEEDMAPPINGSRESPONSE.fields_by_name['partial_failure_error'].message_type = google_dot_rpc_dot_status__pb2._STATUS +_MUTATEFEEDMAPPINGSRESPONSE.fields_by_name['results'].message_type = _MUTATEFEEDMAPPINGRESULT +DESCRIPTOR.message_types_by_name['GetFeedMappingRequest'] = _GETFEEDMAPPINGREQUEST +DESCRIPTOR.message_types_by_name['MutateFeedMappingsRequest'] = _MUTATEFEEDMAPPINGSREQUEST +DESCRIPTOR.message_types_by_name['FeedMappingOperation'] = _FEEDMAPPINGOPERATION +DESCRIPTOR.message_types_by_name['MutateFeedMappingsResponse'] = _MUTATEFEEDMAPPINGSRESPONSE +DESCRIPTOR.message_types_by_name['MutateFeedMappingResult'] = _MUTATEFEEDMAPPINGRESULT +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +GetFeedMappingRequest = _reflection.GeneratedProtocolMessageType('GetFeedMappingRequest', (_message.Message,), dict( + DESCRIPTOR = _GETFEEDMAPPINGREQUEST, + __module__ = 'google.ads.googleads_v4.proto.services.feed_mapping_service_pb2' + , + __doc__ = """Request message for + [FeedMappingService.GetFeedMapping][google.ads.googleads.v4.services.FeedMappingService.GetFeedMapping]. + + + Attributes: + resource_name: + Required. The resource name of the feed mapping to fetch. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.GetFeedMappingRequest) + )) +_sym_db.RegisterMessage(GetFeedMappingRequest) + +MutateFeedMappingsRequest = _reflection.GeneratedProtocolMessageType('MutateFeedMappingsRequest', (_message.Message,), dict( + DESCRIPTOR = _MUTATEFEEDMAPPINGSREQUEST, + __module__ = 'google.ads.googleads_v4.proto.services.feed_mapping_service_pb2' + , + __doc__ = """Request message for + [FeedMappingService.MutateFeedMappings][google.ads.googleads.v4.services.FeedMappingService.MutateFeedMappings]. + + + Attributes: + customer_id: + Required. The ID of the customer whose feed mappings are being + modified. + operations: + Required. The list of operations to perform on individual feed + mappings. + partial_failure: + If true, successful operations will be carried out and invalid + operations will return errors. If false, all operations will + be carried out in one transaction if and only if they are all + valid. Default is false. + validate_only: + If true, the request is validated but not executed. Only + errors are returned, not results. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.MutateFeedMappingsRequest) + )) +_sym_db.RegisterMessage(MutateFeedMappingsRequest) + +FeedMappingOperation = _reflection.GeneratedProtocolMessageType('FeedMappingOperation', (_message.Message,), dict( + DESCRIPTOR = _FEEDMAPPINGOPERATION, + __module__ = 'google.ads.googleads_v4.proto.services.feed_mapping_service_pb2' + , + __doc__ = """A single operation (create, remove) on a feed mapping. + + + Attributes: + operation: + The mutate operation. + create: + Create operation: No resource name is expected for the new + feed mapping. + remove: + Remove operation: A resource name for the removed feed mapping + is expected, in this format: ``customers/{customer_id}/feedMa + ppings/{feed_id}~{feed_mapping_id}`` + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.FeedMappingOperation) + )) +_sym_db.RegisterMessage(FeedMappingOperation) + +MutateFeedMappingsResponse = _reflection.GeneratedProtocolMessageType('MutateFeedMappingsResponse', (_message.Message,), dict( + DESCRIPTOR = _MUTATEFEEDMAPPINGSRESPONSE, + __module__ = 'google.ads.googleads_v4.proto.services.feed_mapping_service_pb2' + , + __doc__ = """Response message for a feed mapping mutate. + + + Attributes: + partial_failure_error: + Errors that pertain to operation failures in the partial + failure mode. Returned only when partial\_failure = true and + all errors occur inside the operations. If any errors occur + outside the operations (e.g. auth errors), we return an RPC + level error. + results: + All results for the mutate. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.MutateFeedMappingsResponse) + )) +_sym_db.RegisterMessage(MutateFeedMappingsResponse) + +MutateFeedMappingResult = _reflection.GeneratedProtocolMessageType('MutateFeedMappingResult', (_message.Message,), dict( + DESCRIPTOR = _MUTATEFEEDMAPPINGRESULT, + __module__ = 'google.ads.googleads_v4.proto.services.feed_mapping_service_pb2' + , + __doc__ = """The result for the feed mapping mutate. + + + Attributes: + resource_name: + Returned for successful operations. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.MutateFeedMappingResult) + )) +_sym_db.RegisterMessage(MutateFeedMappingResult) + + +DESCRIPTOR._options = None +_GETFEEDMAPPINGREQUEST.fields_by_name['resource_name']._options = None +_MUTATEFEEDMAPPINGSREQUEST.fields_by_name['customer_id']._options = None +_MUTATEFEEDMAPPINGSREQUEST.fields_by_name['operations']._options = None + +_FEEDMAPPINGSERVICE = _descriptor.ServiceDescriptor( + name='FeedMappingService', + full_name='google.ads.googleads.v4.services.FeedMappingService', + file=DESCRIPTOR, + index=0, + serialized_options=_b('\312A\030googleads.googleapis.com'), + serialized_start=912, + serialized_end=1390, + methods=[ + _descriptor.MethodDescriptor( + name='GetFeedMapping', + full_name='google.ads.googleads.v4.services.FeedMappingService.GetFeedMapping', + index=0, + containing_service=None, + input_type=_GETFEEDMAPPINGREQUEST, + output_type=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_feed__mapping__pb2._FEEDMAPPING, + serialized_options=_b('\202\323\344\223\0020\022./v4/{resource_name=customers/*/feedMappings/*}\332A\rresource_name'), + ), + _descriptor.MethodDescriptor( + name='MutateFeedMappings', + full_name='google.ads.googleads.v4.services.FeedMappingService.MutateFeedMappings', + index=1, + containing_service=None, + input_type=_MUTATEFEEDMAPPINGSREQUEST, + output_type=_MUTATEFEEDMAPPINGSRESPONSE, + serialized_options=_b('\202\323\344\223\0026\"1/v4/customers/{customer_id=*}/feedMappings:mutate:\001*\332A\026customer_id,operations'), + ), +]) +_sym_db.RegisterServiceDescriptor(_FEEDMAPPINGSERVICE) + +DESCRIPTOR.services_by_name['FeedMappingService'] = _FEEDMAPPINGSERVICE + +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v4/proto/services/feed_mapping_service_pb2_grpc.py b/google/ads/google_ads/v4/proto/services/feed_mapping_service_pb2_grpc.py new file mode 100644 index 000000000..de71fc637 --- /dev/null +++ b/google/ads/google_ads/v4/proto/services/feed_mapping_service_pb2_grpc.py @@ -0,0 +1,69 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +import grpc + +from google.ads.google_ads.v4.proto.resources import feed_mapping_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_feed__mapping__pb2 +from google.ads.google_ads.v4.proto.services import feed_mapping_service_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_feed__mapping__service__pb2 + + +class FeedMappingServiceStub(object): + """Proto file describing the FeedMapping service. + + Service to manage feed mappings. + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.GetFeedMapping = channel.unary_unary( + '/google.ads.googleads.v4.services.FeedMappingService/GetFeedMapping', + request_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_feed__mapping__service__pb2.GetFeedMappingRequest.SerializeToString, + response_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_feed__mapping__pb2.FeedMapping.FromString, + ) + self.MutateFeedMappings = channel.unary_unary( + '/google.ads.googleads.v4.services.FeedMappingService/MutateFeedMappings', + request_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_feed__mapping__service__pb2.MutateFeedMappingsRequest.SerializeToString, + response_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_feed__mapping__service__pb2.MutateFeedMappingsResponse.FromString, + ) + + +class FeedMappingServiceServicer(object): + """Proto file describing the FeedMapping service. + + Service to manage feed mappings. + """ + + def GetFeedMapping(self, request, context): + """Returns the requested feed mapping in full detail. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def MutateFeedMappings(self, request, context): + """Creates or removes feed mappings. Operation statuses are + returned. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_FeedMappingServiceServicer_to_server(servicer, server): + rpc_method_handlers = { + 'GetFeedMapping': grpc.unary_unary_rpc_method_handler( + servicer.GetFeedMapping, + request_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_feed__mapping__service__pb2.GetFeedMappingRequest.FromString, + response_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_feed__mapping__pb2.FeedMapping.SerializeToString, + ), + 'MutateFeedMappings': grpc.unary_unary_rpc_method_handler( + servicer.MutateFeedMappings, + request_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_feed__mapping__service__pb2.MutateFeedMappingsRequest.FromString, + response_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_feed__mapping__service__pb2.MutateFeedMappingsResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'google.ads.googleads.v4.services.FeedMappingService', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) diff --git a/google/ads/google_ads/v4/proto/services/feed_placeholder_view_service_pb2.py b/google/ads/google_ads/v4/proto/services/feed_placeholder_view_service_pb2.py new file mode 100644 index 000000000..1e1f5c794 --- /dev/null +++ b/google/ads/google_ads/v4/proto/services/feed_placeholder_view_service_pb2.py @@ -0,0 +1,112 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/services/feed_placeholder_view_service.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.ads.google_ads.v4.proto.resources import feed_placeholder_view_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_feed__placeholder__view__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 +from google.api import client_pb2 as google_dot_api_dot_client__pb2 +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/services/feed_placeholder_view_service.proto', + package='google.ads.googleads.v4.services', + syntax='proto3', + serialized_options=_b('\n$com.google.ads.googleads.v4.servicesB\037FeedPlaceholderViewServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V4.Services\312\002 Google\\Ads\\GoogleAds\\V4\\Services\352\002$Google::Ads::GoogleAds::V4::Services'), + serialized_pb=_b('\nJgoogle/ads/googleads_v4/proto/services/feed_placeholder_view_service.proto\x12 google.ads.googleads.v4.services\x1a\x43google/ads/googleads_v4/proto/resources/feed_placeholder_view.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"l\n\x1dGetFeedPlaceholderViewRequest\x12K\n\rresource_name\x18\x01 \x01(\tB4\xe0\x41\x02\xfa\x41.\n,googleads.googleapis.com/FeedPlaceholderView2\x9d\x02\n\x1a\x46\x65\x65\x64PlaceholderViewService\x12\xe1\x01\n\x16GetFeedPlaceholderView\x12?.google.ads.googleads.v4.services.GetFeedPlaceholderViewRequest\x1a\x36.google.ads.googleads.v4.resources.FeedPlaceholderView\"N\x82\xd3\xe4\x93\x02\x38\x12\x36/v4/{resource_name=customers/*/feedPlaceholderViews/*}\xda\x41\rresource_name\x1a\x1b\xca\x41\x18googleads.googleapis.comB\x86\x02\n$com.google.ads.googleads.v4.servicesB\x1f\x46\x65\x65\x64PlaceholderViewServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V4.Services\xca\x02 Google\\Ads\\GoogleAds\\V4\\Services\xea\x02$Google::Ads::GoogleAds::V4::Servicesb\x06proto3') + , + dependencies=[google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_feed__placeholder__view__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_api_dot_client__pb2.DESCRIPTOR,google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_api_dot_resource__pb2.DESCRIPTOR,]) + + + + +_GETFEEDPLACEHOLDERVIEWREQUEST = _descriptor.Descriptor( + name='GetFeedPlaceholderViewRequest', + full_name='google.ads.googleads.v4.services.GetFeedPlaceholderViewRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.services.GetFeedPlaceholderViewRequest.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002\372A.\n,googleads.googleapis.com/FeedPlaceholderView'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=296, + serialized_end=404, +) + +DESCRIPTOR.message_types_by_name['GetFeedPlaceholderViewRequest'] = _GETFEEDPLACEHOLDERVIEWREQUEST +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +GetFeedPlaceholderViewRequest = _reflection.GeneratedProtocolMessageType('GetFeedPlaceholderViewRequest', (_message.Message,), dict( + DESCRIPTOR = _GETFEEDPLACEHOLDERVIEWREQUEST, + __module__ = 'google.ads.googleads_v4.proto.services.feed_placeholder_view_service_pb2' + , + __doc__ = """Request message for + [FeedPlaceholderViewService.GetFeedPlaceholderView][google.ads.googleads.v4.services.FeedPlaceholderViewService.GetFeedPlaceholderView]. + + + Attributes: + resource_name: + Required. The resource name of the feed placeholder view to + fetch. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.GetFeedPlaceholderViewRequest) + )) +_sym_db.RegisterMessage(GetFeedPlaceholderViewRequest) + + +DESCRIPTOR._options = None +_GETFEEDPLACEHOLDERVIEWREQUEST.fields_by_name['resource_name']._options = None + +_FEEDPLACEHOLDERVIEWSERVICE = _descriptor.ServiceDescriptor( + name='FeedPlaceholderViewService', + full_name='google.ads.googleads.v4.services.FeedPlaceholderViewService', + file=DESCRIPTOR, + index=0, + serialized_options=_b('\312A\030googleads.googleapis.com'), + serialized_start=407, + serialized_end=692, + methods=[ + _descriptor.MethodDescriptor( + name='GetFeedPlaceholderView', + full_name='google.ads.googleads.v4.services.FeedPlaceholderViewService.GetFeedPlaceholderView', + index=0, + containing_service=None, + input_type=_GETFEEDPLACEHOLDERVIEWREQUEST, + output_type=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_feed__placeholder__view__pb2._FEEDPLACEHOLDERVIEW, + serialized_options=_b('\202\323\344\223\0028\0226/v4/{resource_name=customers/*/feedPlaceholderViews/*}\332A\rresource_name'), + ), +]) +_sym_db.RegisterServiceDescriptor(_FEEDPLACEHOLDERVIEWSERVICE) + +DESCRIPTOR.services_by_name['FeedPlaceholderViewService'] = _FEEDPLACEHOLDERVIEWSERVICE + +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v4/proto/services/feed_placeholder_view_service_pb2_grpc.py b/google/ads/google_ads/v4/proto/services/feed_placeholder_view_service_pb2_grpc.py new file mode 100644 index 000000000..785796e52 --- /dev/null +++ b/google/ads/google_ads/v4/proto/services/feed_placeholder_view_service_pb2_grpc.py @@ -0,0 +1,51 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +import grpc + +from google.ads.google_ads.v4.proto.resources import feed_placeholder_view_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_feed__placeholder__view__pb2 +from google.ads.google_ads.v4.proto.services import feed_placeholder_view_service_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_feed__placeholder__view__service__pb2 + + +class FeedPlaceholderViewServiceStub(object): + """Proto file describing the FeedPlaceholderView service. + + Service to fetch feed placeholder views. + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.GetFeedPlaceholderView = channel.unary_unary( + '/google.ads.googleads.v4.services.FeedPlaceholderViewService/GetFeedPlaceholderView', + request_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_feed__placeholder__view__service__pb2.GetFeedPlaceholderViewRequest.SerializeToString, + response_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_feed__placeholder__view__pb2.FeedPlaceholderView.FromString, + ) + + +class FeedPlaceholderViewServiceServicer(object): + """Proto file describing the FeedPlaceholderView service. + + Service to fetch feed placeholder views. + """ + + def GetFeedPlaceholderView(self, request, context): + """Returns the requested feed placeholder view in full detail. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_FeedPlaceholderViewServiceServicer_to_server(servicer, server): + rpc_method_handlers = { + 'GetFeedPlaceholderView': grpc.unary_unary_rpc_method_handler( + servicer.GetFeedPlaceholderView, + request_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_feed__placeholder__view__service__pb2.GetFeedPlaceholderViewRequest.FromString, + response_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_feed__placeholder__view__pb2.FeedPlaceholderView.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'google.ads.googleads.v4.services.FeedPlaceholderViewService', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) diff --git a/google/ads/google_ads/v4/proto/services/feed_service_pb2.py b/google/ads/google_ads/v4/proto/services/feed_service_pb2.py new file mode 100644 index 000000000..0e1d709d2 --- /dev/null +++ b/google/ads/google_ads/v4/proto/services/feed_service_pb2.py @@ -0,0 +1,411 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/services/feed_service.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.ads.google_ads.v4.proto.resources import feed_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_feed__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 +from google.api import client_pb2 as google_dot_api_dot_client__pb2 +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 +from google.protobuf import field_mask_pb2 as google_dot_protobuf_dot_field__mask__pb2 +from google.rpc import status_pb2 as google_dot_rpc_dot_status__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/services/feed_service.proto', + package='google.ads.googleads.v4.services', + syntax='proto3', + serialized_options=_b('\n$com.google.ads.googleads.v4.servicesB\020FeedServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V4.Services\312\002 Google\\Ads\\GoogleAds\\V4\\Services\352\002$Google::Ads::GoogleAds::V4::Services'), + serialized_pb=_b('\n9google/ads/googleads_v4/proto/services/feed_service.proto\x12 google.ads.googleads.v4.services\x1a\x32google/ads/googleads_v4/proto/resources/feed.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/protobuf/field_mask.proto\x1a\x17google/rpc/status.proto\"N\n\x0eGetFeedRequest\x12<\n\rresource_name\x18\x01 \x01(\tB%\xe0\x41\x02\xfa\x41\x1f\n\x1dgoogleads.googleapis.com/Feed\"\xa8\x01\n\x12MutateFeedsRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12H\n\noperations\x18\x02 \x03(\x0b\x32/.google.ads.googleads.v4.services.FeedOperationB\x03\xe0\x41\x02\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\"\xd5\x01\n\rFeedOperation\x12/\n\x0bupdate_mask\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12\x39\n\x06\x63reate\x18\x01 \x01(\x0b\x32\'.google.ads.googleads.v4.resources.FeedH\x00\x12\x39\n\x06update\x18\x02 \x01(\x0b\x32\'.google.ads.googleads.v4.resources.FeedH\x00\x12\x10\n\x06remove\x18\x03 \x01(\tH\x00\x42\x0b\n\toperation\"\x8d\x01\n\x13MutateFeedsResponse\x12\x31\n\x15partial_failure_error\x18\x03 \x01(\x0b\x32\x12.google.rpc.Status\x12\x43\n\x07results\x18\x02 \x03(\x0b\x32\x32.google.ads.googleads.v4.services.MutateFeedResult\")\n\x10MutateFeedResult\x12\x15\n\rresource_name\x18\x01 \x01(\t2\x9f\x03\n\x0b\x46\x65\x65\x64Service\x12\xa5\x01\n\x07GetFeed\x12\x30.google.ads.googleads.v4.services.GetFeedRequest\x1a\'.google.ads.googleads.v4.resources.Feed\"?\x82\xd3\xe4\x93\x02)\x12\'/v4/{resource_name=customers/*/feeds/*}\xda\x41\rresource_name\x12\xca\x01\n\x0bMutateFeeds\x12\x34.google.ads.googleads.v4.services.MutateFeedsRequest\x1a\x35.google.ads.googleads.v4.services.MutateFeedsResponse\"N\x82\xd3\xe4\x93\x02/\"*/v4/customers/{customer_id=*}/feeds:mutate:\x01*\xda\x41\x16\x63ustomer_id,operations\x1a\x1b\xca\x41\x18googleads.googleapis.comB\xf7\x01\n$com.google.ads.googleads.v4.servicesB\x10\x46\x65\x65\x64ServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V4.Services\xca\x02 Google\\Ads\\GoogleAds\\V4\\Services\xea\x02$Google::Ads::GoogleAds::V4::Servicesb\x06proto3') + , + dependencies=[google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_feed__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_api_dot_client__pb2.DESCRIPTOR,google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_api_dot_resource__pb2.DESCRIPTOR,google_dot_protobuf_dot_field__mask__pb2.DESCRIPTOR,google_dot_rpc_dot_status__pb2.DESCRIPTOR,]) + + + + +_GETFEEDREQUEST = _descriptor.Descriptor( + name='GetFeedRequest', + full_name='google.ads.googleads.v4.services.GetFeedRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.services.GetFeedRequest.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002\372A\037\n\035googleads.googleapis.com/Feed'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=321, + serialized_end=399, +) + + +_MUTATEFEEDSREQUEST = _descriptor.Descriptor( + name='MutateFeedsRequest', + full_name='google.ads.googleads.v4.services.MutateFeedsRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='customer_id', full_name='google.ads.googleads.v4.services.MutateFeedsRequest.customer_id', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='operations', full_name='google.ads.googleads.v4.services.MutateFeedsRequest.operations', index=1, + number=2, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='partial_failure', full_name='google.ads.googleads.v4.services.MutateFeedsRequest.partial_failure', index=2, + number=3, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='validate_only', full_name='google.ads.googleads.v4.services.MutateFeedsRequest.validate_only', index=3, + number=4, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=402, + serialized_end=570, +) + + +_FEEDOPERATION = _descriptor.Descriptor( + name='FeedOperation', + full_name='google.ads.googleads.v4.services.FeedOperation', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='update_mask', full_name='google.ads.googleads.v4.services.FeedOperation.update_mask', index=0, + number=4, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='create', full_name='google.ads.googleads.v4.services.FeedOperation.create', index=1, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='update', full_name='google.ads.googleads.v4.services.FeedOperation.update', index=2, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='remove', full_name='google.ads.googleads.v4.services.FeedOperation.remove', index=3, + number=3, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name='operation', full_name='google.ads.googleads.v4.services.FeedOperation.operation', + index=0, containing_type=None, fields=[]), + ], + serialized_start=573, + serialized_end=786, +) + + +_MUTATEFEEDSRESPONSE = _descriptor.Descriptor( + name='MutateFeedsResponse', + full_name='google.ads.googleads.v4.services.MutateFeedsResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='partial_failure_error', full_name='google.ads.googleads.v4.services.MutateFeedsResponse.partial_failure_error', index=0, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='results', full_name='google.ads.googleads.v4.services.MutateFeedsResponse.results', index=1, + number=2, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=789, + serialized_end=930, +) + + +_MUTATEFEEDRESULT = _descriptor.Descriptor( + name='MutateFeedResult', + full_name='google.ads.googleads.v4.services.MutateFeedResult', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.services.MutateFeedResult.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=932, + serialized_end=973, +) + +_MUTATEFEEDSREQUEST.fields_by_name['operations'].message_type = _FEEDOPERATION +_FEEDOPERATION.fields_by_name['update_mask'].message_type = google_dot_protobuf_dot_field__mask__pb2._FIELDMASK +_FEEDOPERATION.fields_by_name['create'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_feed__pb2._FEED +_FEEDOPERATION.fields_by_name['update'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_feed__pb2._FEED +_FEEDOPERATION.oneofs_by_name['operation'].fields.append( + _FEEDOPERATION.fields_by_name['create']) +_FEEDOPERATION.fields_by_name['create'].containing_oneof = _FEEDOPERATION.oneofs_by_name['operation'] +_FEEDOPERATION.oneofs_by_name['operation'].fields.append( + _FEEDOPERATION.fields_by_name['update']) +_FEEDOPERATION.fields_by_name['update'].containing_oneof = _FEEDOPERATION.oneofs_by_name['operation'] +_FEEDOPERATION.oneofs_by_name['operation'].fields.append( + _FEEDOPERATION.fields_by_name['remove']) +_FEEDOPERATION.fields_by_name['remove'].containing_oneof = _FEEDOPERATION.oneofs_by_name['operation'] +_MUTATEFEEDSRESPONSE.fields_by_name['partial_failure_error'].message_type = google_dot_rpc_dot_status__pb2._STATUS +_MUTATEFEEDSRESPONSE.fields_by_name['results'].message_type = _MUTATEFEEDRESULT +DESCRIPTOR.message_types_by_name['GetFeedRequest'] = _GETFEEDREQUEST +DESCRIPTOR.message_types_by_name['MutateFeedsRequest'] = _MUTATEFEEDSREQUEST +DESCRIPTOR.message_types_by_name['FeedOperation'] = _FEEDOPERATION +DESCRIPTOR.message_types_by_name['MutateFeedsResponse'] = _MUTATEFEEDSRESPONSE +DESCRIPTOR.message_types_by_name['MutateFeedResult'] = _MUTATEFEEDRESULT +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +GetFeedRequest = _reflection.GeneratedProtocolMessageType('GetFeedRequest', (_message.Message,), dict( + DESCRIPTOR = _GETFEEDREQUEST, + __module__ = 'google.ads.googleads_v4.proto.services.feed_service_pb2' + , + __doc__ = """Request message for + [FeedService.GetFeed][google.ads.googleads.v4.services.FeedService.GetFeed]. + + + Attributes: + resource_name: + Required. The resource name of the feed to fetch. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.GetFeedRequest) + )) +_sym_db.RegisterMessage(GetFeedRequest) + +MutateFeedsRequest = _reflection.GeneratedProtocolMessageType('MutateFeedsRequest', (_message.Message,), dict( + DESCRIPTOR = _MUTATEFEEDSREQUEST, + __module__ = 'google.ads.googleads_v4.proto.services.feed_service_pb2' + , + __doc__ = """Request message for + [FeedService.MutateFeeds][google.ads.googleads.v4.services.FeedService.MutateFeeds]. + + + Attributes: + customer_id: + Required. The ID of the customer whose feeds are being + modified. + operations: + Required. The list of operations to perform on individual + feeds. + partial_failure: + If true, successful operations will be carried out and invalid + operations will return errors. If false, all operations will + be carried out in one transaction if and only if they are all + valid. Default is false. + validate_only: + If true, the request is validated but not executed. Only + errors are returned, not results. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.MutateFeedsRequest) + )) +_sym_db.RegisterMessage(MutateFeedsRequest) + +FeedOperation = _reflection.GeneratedProtocolMessageType('FeedOperation', (_message.Message,), dict( + DESCRIPTOR = _FEEDOPERATION, + __module__ = 'google.ads.googleads_v4.proto.services.feed_service_pb2' + , + __doc__ = """A single operation (create, update, remove) on an feed. + + + Attributes: + update_mask: + FieldMask that determines which resource fields are modified + in an update. + operation: + The mutate operation. + create: + Create operation: No resource name is expected for the new + feed. + update: + Update operation: The feed is expected to have a valid + resource name. + remove: + Remove operation: A resource name for the removed feed is + expected, in this format: + ``customers/{customer_id}/feeds/{feed_id}`` + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.FeedOperation) + )) +_sym_db.RegisterMessage(FeedOperation) + +MutateFeedsResponse = _reflection.GeneratedProtocolMessageType('MutateFeedsResponse', (_message.Message,), dict( + DESCRIPTOR = _MUTATEFEEDSRESPONSE, + __module__ = 'google.ads.googleads_v4.proto.services.feed_service_pb2' + , + __doc__ = """Response message for an feed mutate. + + + Attributes: + partial_failure_error: + Errors that pertain to operation failures in the partial + failure mode. Returned only when partial\_failure = true and + all errors occur inside the operations. If any errors occur + outside the operations (e.g. auth errors), we return an RPC + level error. + results: + All results for the mutate. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.MutateFeedsResponse) + )) +_sym_db.RegisterMessage(MutateFeedsResponse) + +MutateFeedResult = _reflection.GeneratedProtocolMessageType('MutateFeedResult', (_message.Message,), dict( + DESCRIPTOR = _MUTATEFEEDRESULT, + __module__ = 'google.ads.googleads_v4.proto.services.feed_service_pb2' + , + __doc__ = """The result for the feed mutate. + + + Attributes: + resource_name: + Returned for successful operations. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.MutateFeedResult) + )) +_sym_db.RegisterMessage(MutateFeedResult) + + +DESCRIPTOR._options = None +_GETFEEDREQUEST.fields_by_name['resource_name']._options = None +_MUTATEFEEDSREQUEST.fields_by_name['customer_id']._options = None +_MUTATEFEEDSREQUEST.fields_by_name['operations']._options = None + +_FEEDSERVICE = _descriptor.ServiceDescriptor( + name='FeedService', + full_name='google.ads.googleads.v4.services.FeedService', + file=DESCRIPTOR, + index=0, + serialized_options=_b('\312A\030googleads.googleapis.com'), + serialized_start=976, + serialized_end=1391, + methods=[ + _descriptor.MethodDescriptor( + name='GetFeed', + full_name='google.ads.googleads.v4.services.FeedService.GetFeed', + index=0, + containing_service=None, + input_type=_GETFEEDREQUEST, + output_type=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_feed__pb2._FEED, + serialized_options=_b('\202\323\344\223\002)\022\'/v4/{resource_name=customers/*/feeds/*}\332A\rresource_name'), + ), + _descriptor.MethodDescriptor( + name='MutateFeeds', + full_name='google.ads.googleads.v4.services.FeedService.MutateFeeds', + index=1, + containing_service=None, + input_type=_MUTATEFEEDSREQUEST, + output_type=_MUTATEFEEDSRESPONSE, + serialized_options=_b('\202\323\344\223\002/\"*/v4/customers/{customer_id=*}/feeds:mutate:\001*\332A\026customer_id,operations'), + ), +]) +_sym_db.RegisterServiceDescriptor(_FEEDSERVICE) + +DESCRIPTOR.services_by_name['FeedService'] = _FEEDSERVICE + +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v4/proto/services/feed_service_pb2_grpc.py b/google/ads/google_ads/v4/proto/services/feed_service_pb2_grpc.py new file mode 100644 index 000000000..40a3328b3 --- /dev/null +++ b/google/ads/google_ads/v4/proto/services/feed_service_pb2_grpc.py @@ -0,0 +1,69 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +import grpc + +from google.ads.google_ads.v4.proto.resources import feed_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_feed__pb2 +from google.ads.google_ads.v4.proto.services import feed_service_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_feed__service__pb2 + + +class FeedServiceStub(object): + """Proto file describing the Feed service. + + Service to manage feeds. + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.GetFeed = channel.unary_unary( + '/google.ads.googleads.v4.services.FeedService/GetFeed', + request_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_feed__service__pb2.GetFeedRequest.SerializeToString, + response_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_feed__pb2.Feed.FromString, + ) + self.MutateFeeds = channel.unary_unary( + '/google.ads.googleads.v4.services.FeedService/MutateFeeds', + request_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_feed__service__pb2.MutateFeedsRequest.SerializeToString, + response_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_feed__service__pb2.MutateFeedsResponse.FromString, + ) + + +class FeedServiceServicer(object): + """Proto file describing the Feed service. + + Service to manage feeds. + """ + + def GetFeed(self, request, context): + """Returns the requested feed in full detail. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def MutateFeeds(self, request, context): + """Creates, updates, or removes feeds. Operation statuses are + returned. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_FeedServiceServicer_to_server(servicer, server): + rpc_method_handlers = { + 'GetFeed': grpc.unary_unary_rpc_method_handler( + servicer.GetFeed, + request_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_feed__service__pb2.GetFeedRequest.FromString, + response_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_feed__pb2.Feed.SerializeToString, + ), + 'MutateFeeds': grpc.unary_unary_rpc_method_handler( + servicer.MutateFeeds, + request_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_feed__service__pb2.MutateFeedsRequest.FromString, + response_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_feed__service__pb2.MutateFeedsResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'google.ads.googleads.v4.services.FeedService', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) diff --git a/google/ads/google_ads/v4/proto/services/gender_view_service_pb2.py b/google/ads/google_ads/v4/proto/services/gender_view_service_pb2.py new file mode 100644 index 000000000..0f67fa5ad --- /dev/null +++ b/google/ads/google_ads/v4/proto/services/gender_view_service_pb2.py @@ -0,0 +1,111 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/services/gender_view_service.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.ads.google_ads.v4.proto.resources import gender_view_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_gender__view__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 +from google.api import client_pb2 as google_dot_api_dot_client__pb2 +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/services/gender_view_service.proto', + package='google.ads.googleads.v4.services', + syntax='proto3', + serialized_options=_b('\n$com.google.ads.googleads.v4.servicesB\026GenderViewServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V4.Services\312\002 Google\\Ads\\GoogleAds\\V4\\Services\352\002$Google::Ads::GoogleAds::V4::Services'), + serialized_pb=_b('\n@google/ads/googleads_v4/proto/services/gender_view_service.proto\x12 google.ads.googleads.v4.services\x1a\x39google/ads/googleads_v4/proto/resources/gender_view.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"Z\n\x14GetGenderViewRequest\x12\x42\n\rresource_name\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\n#googleads.googleapis.com/GenderView2\xf0\x01\n\x11GenderViewService\x12\xbd\x01\n\rGetGenderView\x12\x36.google.ads.googleads.v4.services.GetGenderViewRequest\x1a-.google.ads.googleads.v4.resources.GenderView\"E\x82\xd3\xe4\x93\x02/\x12-/v4/{resource_name=customers/*/genderViews/*}\xda\x41\rresource_name\x1a\x1b\xca\x41\x18googleads.googleapis.comB\xfd\x01\n$com.google.ads.googleads.v4.servicesB\x16GenderViewServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V4.Services\xca\x02 Google\\Ads\\GoogleAds\\V4\\Services\xea\x02$Google::Ads::GoogleAds::V4::Servicesb\x06proto3') + , + dependencies=[google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_gender__view__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_api_dot_client__pb2.DESCRIPTOR,google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_api_dot_resource__pb2.DESCRIPTOR,]) + + + + +_GETGENDERVIEWREQUEST = _descriptor.Descriptor( + name='GetGenderViewRequest', + full_name='google.ads.googleads.v4.services.GetGenderViewRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.services.GetGenderViewRequest.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002\372A%\n#googleads.googleapis.com/GenderView'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=276, + serialized_end=366, +) + +DESCRIPTOR.message_types_by_name['GetGenderViewRequest'] = _GETGENDERVIEWREQUEST +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +GetGenderViewRequest = _reflection.GeneratedProtocolMessageType('GetGenderViewRequest', (_message.Message,), dict( + DESCRIPTOR = _GETGENDERVIEWREQUEST, + __module__ = 'google.ads.googleads_v4.proto.services.gender_view_service_pb2' + , + __doc__ = """Request message for + [GenderViewService.GetGenderView][google.ads.googleads.v4.services.GenderViewService.GetGenderView]. + + + Attributes: + resource_name: + Required. The resource name of the gender view to fetch. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.GetGenderViewRequest) + )) +_sym_db.RegisterMessage(GetGenderViewRequest) + + +DESCRIPTOR._options = None +_GETGENDERVIEWREQUEST.fields_by_name['resource_name']._options = None + +_GENDERVIEWSERVICE = _descriptor.ServiceDescriptor( + name='GenderViewService', + full_name='google.ads.googleads.v4.services.GenderViewService', + file=DESCRIPTOR, + index=0, + serialized_options=_b('\312A\030googleads.googleapis.com'), + serialized_start=369, + serialized_end=609, + methods=[ + _descriptor.MethodDescriptor( + name='GetGenderView', + full_name='google.ads.googleads.v4.services.GenderViewService.GetGenderView', + index=0, + containing_service=None, + input_type=_GETGENDERVIEWREQUEST, + output_type=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_gender__view__pb2._GENDERVIEW, + serialized_options=_b('\202\323\344\223\002/\022-/v4/{resource_name=customers/*/genderViews/*}\332A\rresource_name'), + ), +]) +_sym_db.RegisterServiceDescriptor(_GENDERVIEWSERVICE) + +DESCRIPTOR.services_by_name['GenderViewService'] = _GENDERVIEWSERVICE + +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v4/proto/services/gender_view_service_pb2_grpc.py b/google/ads/google_ads/v4/proto/services/gender_view_service_pb2_grpc.py new file mode 100644 index 000000000..fecba3fec --- /dev/null +++ b/google/ads/google_ads/v4/proto/services/gender_view_service_pb2_grpc.py @@ -0,0 +1,51 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +import grpc + +from google.ads.google_ads.v4.proto.resources import gender_view_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_gender__view__pb2 +from google.ads.google_ads.v4.proto.services import gender_view_service_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_gender__view__service__pb2 + + +class GenderViewServiceStub(object): + """Proto file describing the Gender View service. + + Service to manage gender views. + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.GetGenderView = channel.unary_unary( + '/google.ads.googleads.v4.services.GenderViewService/GetGenderView', + request_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_gender__view__service__pb2.GetGenderViewRequest.SerializeToString, + response_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_gender__view__pb2.GenderView.FromString, + ) + + +class GenderViewServiceServicer(object): + """Proto file describing the Gender View service. + + Service to manage gender views. + """ + + def GetGenderView(self, request, context): + """Returns the requested gender view in full detail. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_GenderViewServiceServicer_to_server(servicer, server): + rpc_method_handlers = { + 'GetGenderView': grpc.unary_unary_rpc_method_handler( + servicer.GetGenderView, + request_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_gender__view__service__pb2.GetGenderViewRequest.FromString, + response_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_gender__view__pb2.GenderView.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'google.ads.googleads.v4.services.GenderViewService', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) diff --git a/google/ads/google_ads/v4/proto/services/geo_target_constant_service_pb2.py b/google/ads/google_ads/v4/proto/services/geo_target_constant_service_pb2.py new file mode 100644 index 000000000..35b3a0645 --- /dev/null +++ b/google/ads/google_ads/v4/proto/services/geo_target_constant_service_pb2.py @@ -0,0 +1,453 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/services/geo_target_constant_service.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.ads.google_ads.v4.proto.resources import geo_target_constant_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_geo__target__constant__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 +from google.api import client_pb2 as google_dot_api_dot_client__pb2 +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 +from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/services/geo_target_constant_service.proto', + package='google.ads.googleads.v4.services', + syntax='proto3', + serialized_options=_b('\n$com.google.ads.googleads.v4.servicesB\035GeoTargetConstantServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V4.Services\312\002 Google\\Ads\\GoogleAds\\V4\\Services\352\002$Google::Ads::GoogleAds::V4::Services'), + serialized_pb=_b('\nHgoogle/ads/googleads_v4/proto/services/geo_target_constant_service.proto\x12 google.ads.googleads.v4.services\x1a\x41google/ads/googleads_v4/proto/resources/geo_target_constant.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1egoogle/protobuf/wrappers.proto\"h\n\x1bGetGeoTargetConstantRequest\x12I\n\rresource_name\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*googleads.googleapis.com/GeoTargetConstant\"\xe7\x03\n SuggestGeoTargetConstantsRequest\x12,\n\x06locale\x18\x03 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x32\n\x0c\x63ountry_code\x18\x05 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12j\n\x0elocation_names\x18\x01 \x01(\x0b\x32P.google.ads.googleads.v4.services.SuggestGeoTargetConstantsRequest.LocationNamesH\x00\x12\x64\n\x0bgeo_targets\x18\x02 \x01(\x0b\x32M.google.ads.googleads.v4.services.SuggestGeoTargetConstantsRequest.GeoTargetsH\x00\x1a<\n\rLocationNames\x12+\n\x05names\x18\x01 \x03(\x0b\x32\x1c.google.protobuf.StringValue\x1aH\n\nGeoTargets\x12:\n\x14geo_target_constants\x18\x01 \x03(\x0b\x32\x1c.google.protobuf.StringValueB\x07\n\x05query\"\x8b\x01\n!SuggestGeoTargetConstantsResponse\x12\x66\n\x1fgeo_target_constant_suggestions\x18\x01 \x03(\x0b\x32=.google.ads.googleads.v4.services.GeoTargetConstantSuggestion\"\xd8\x02\n\x1bGeoTargetConstantSuggestion\x12,\n\x06locale\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12*\n\x05reach\x18\x02 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x31\n\x0bsearch_term\x18\x03 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12Q\n\x13geo_target_constant\x18\x04 \x01(\x0b\x32\x34.google.ads.googleads.v4.resources.GeoTargetConstant\x12Y\n\x1bgeo_target_constant_parents\x18\x05 \x03(\x0b\x32\x34.google.ads.googleads.v4.resources.GeoTargetConstant2\xd9\x03\n\x18GeoTargetConstantService\x12\xcd\x01\n\x14GetGeoTargetConstant\x12=.google.ads.googleads.v4.services.GetGeoTargetConstantRequest\x1a\x34.google.ads.googleads.v4.resources.GeoTargetConstant\"@\x82\xd3\xe4\x93\x02*\x12(/v4/{resource_name=geoTargetConstants/*}\xda\x41\rresource_name\x12\xcf\x01\n\x19SuggestGeoTargetConstants\x12\x42.google.ads.googleads.v4.services.SuggestGeoTargetConstantsRequest\x1a\x43.google.ads.googleads.v4.services.SuggestGeoTargetConstantsResponse\")\x82\xd3\xe4\x93\x02#\"\x1e/v4/geoTargetConstants:suggest:\x01*\x1a\x1b\xca\x41\x18googleads.googleapis.comB\x84\x02\n$com.google.ads.googleads.v4.servicesB\x1dGeoTargetConstantServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V4.Services\xca\x02 Google\\Ads\\GoogleAds\\V4\\Services\xea\x02$Google::Ads::GoogleAds::V4::Servicesb\x06proto3') + , + dependencies=[google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_geo__target__constant__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_api_dot_client__pb2.DESCRIPTOR,google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_api_dot_resource__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,]) + + + + +_GETGEOTARGETCONSTANTREQUEST = _descriptor.Descriptor( + name='GetGeoTargetConstantRequest', + full_name='google.ads.googleads.v4.services.GetGeoTargetConstantRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.services.GetGeoTargetConstantRequest.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002\372A,\n*googleads.googleapis.com/GeoTargetConstant'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=324, + serialized_end=428, +) + + +_SUGGESTGEOTARGETCONSTANTSREQUEST_LOCATIONNAMES = _descriptor.Descriptor( + name='LocationNames', + full_name='google.ads.googleads.v4.services.SuggestGeoTargetConstantsRequest.LocationNames', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='names', full_name='google.ads.googleads.v4.services.SuggestGeoTargetConstantsRequest.LocationNames.names', index=0, + number=1, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=775, + serialized_end=835, +) + +_SUGGESTGEOTARGETCONSTANTSREQUEST_GEOTARGETS = _descriptor.Descriptor( + name='GeoTargets', + full_name='google.ads.googleads.v4.services.SuggestGeoTargetConstantsRequest.GeoTargets', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='geo_target_constants', full_name='google.ads.googleads.v4.services.SuggestGeoTargetConstantsRequest.GeoTargets.geo_target_constants', index=0, + number=1, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=837, + serialized_end=909, +) + +_SUGGESTGEOTARGETCONSTANTSREQUEST = _descriptor.Descriptor( + name='SuggestGeoTargetConstantsRequest', + full_name='google.ads.googleads.v4.services.SuggestGeoTargetConstantsRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='locale', full_name='google.ads.googleads.v4.services.SuggestGeoTargetConstantsRequest.locale', index=0, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='country_code', full_name='google.ads.googleads.v4.services.SuggestGeoTargetConstantsRequest.country_code', index=1, + number=5, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='location_names', full_name='google.ads.googleads.v4.services.SuggestGeoTargetConstantsRequest.location_names', index=2, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='geo_targets', full_name='google.ads.googleads.v4.services.SuggestGeoTargetConstantsRequest.geo_targets', index=3, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[_SUGGESTGEOTARGETCONSTANTSREQUEST_LOCATIONNAMES, _SUGGESTGEOTARGETCONSTANTSREQUEST_GEOTARGETS, ], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name='query', full_name='google.ads.googleads.v4.services.SuggestGeoTargetConstantsRequest.query', + index=0, containing_type=None, fields=[]), + ], + serialized_start=431, + serialized_end=918, +) + + +_SUGGESTGEOTARGETCONSTANTSRESPONSE = _descriptor.Descriptor( + name='SuggestGeoTargetConstantsResponse', + full_name='google.ads.googleads.v4.services.SuggestGeoTargetConstantsResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='geo_target_constant_suggestions', full_name='google.ads.googleads.v4.services.SuggestGeoTargetConstantsResponse.geo_target_constant_suggestions', index=0, + number=1, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=921, + serialized_end=1060, +) + + +_GEOTARGETCONSTANTSUGGESTION = _descriptor.Descriptor( + name='GeoTargetConstantSuggestion', + full_name='google.ads.googleads.v4.services.GeoTargetConstantSuggestion', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='locale', full_name='google.ads.googleads.v4.services.GeoTargetConstantSuggestion.locale', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='reach', full_name='google.ads.googleads.v4.services.GeoTargetConstantSuggestion.reach', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='search_term', full_name='google.ads.googleads.v4.services.GeoTargetConstantSuggestion.search_term', index=2, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='geo_target_constant', full_name='google.ads.googleads.v4.services.GeoTargetConstantSuggestion.geo_target_constant', index=3, + number=4, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='geo_target_constant_parents', full_name='google.ads.googleads.v4.services.GeoTargetConstantSuggestion.geo_target_constant_parents', index=4, + number=5, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1063, + serialized_end=1407, +) + +_SUGGESTGEOTARGETCONSTANTSREQUEST_LOCATIONNAMES.fields_by_name['names'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_SUGGESTGEOTARGETCONSTANTSREQUEST_LOCATIONNAMES.containing_type = _SUGGESTGEOTARGETCONSTANTSREQUEST +_SUGGESTGEOTARGETCONSTANTSREQUEST_GEOTARGETS.fields_by_name['geo_target_constants'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_SUGGESTGEOTARGETCONSTANTSREQUEST_GEOTARGETS.containing_type = _SUGGESTGEOTARGETCONSTANTSREQUEST +_SUGGESTGEOTARGETCONSTANTSREQUEST.fields_by_name['locale'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_SUGGESTGEOTARGETCONSTANTSREQUEST.fields_by_name['country_code'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_SUGGESTGEOTARGETCONSTANTSREQUEST.fields_by_name['location_names'].message_type = _SUGGESTGEOTARGETCONSTANTSREQUEST_LOCATIONNAMES +_SUGGESTGEOTARGETCONSTANTSREQUEST.fields_by_name['geo_targets'].message_type = _SUGGESTGEOTARGETCONSTANTSREQUEST_GEOTARGETS +_SUGGESTGEOTARGETCONSTANTSREQUEST.oneofs_by_name['query'].fields.append( + _SUGGESTGEOTARGETCONSTANTSREQUEST.fields_by_name['location_names']) +_SUGGESTGEOTARGETCONSTANTSREQUEST.fields_by_name['location_names'].containing_oneof = _SUGGESTGEOTARGETCONSTANTSREQUEST.oneofs_by_name['query'] +_SUGGESTGEOTARGETCONSTANTSREQUEST.oneofs_by_name['query'].fields.append( + _SUGGESTGEOTARGETCONSTANTSREQUEST.fields_by_name['geo_targets']) +_SUGGESTGEOTARGETCONSTANTSREQUEST.fields_by_name['geo_targets'].containing_oneof = _SUGGESTGEOTARGETCONSTANTSREQUEST.oneofs_by_name['query'] +_SUGGESTGEOTARGETCONSTANTSRESPONSE.fields_by_name['geo_target_constant_suggestions'].message_type = _GEOTARGETCONSTANTSUGGESTION +_GEOTARGETCONSTANTSUGGESTION.fields_by_name['locale'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_GEOTARGETCONSTANTSUGGESTION.fields_by_name['reach'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_GEOTARGETCONSTANTSUGGESTION.fields_by_name['search_term'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_GEOTARGETCONSTANTSUGGESTION.fields_by_name['geo_target_constant'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_geo__target__constant__pb2._GEOTARGETCONSTANT +_GEOTARGETCONSTANTSUGGESTION.fields_by_name['geo_target_constant_parents'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_geo__target__constant__pb2._GEOTARGETCONSTANT +DESCRIPTOR.message_types_by_name['GetGeoTargetConstantRequest'] = _GETGEOTARGETCONSTANTREQUEST +DESCRIPTOR.message_types_by_name['SuggestGeoTargetConstantsRequest'] = _SUGGESTGEOTARGETCONSTANTSREQUEST +DESCRIPTOR.message_types_by_name['SuggestGeoTargetConstantsResponse'] = _SUGGESTGEOTARGETCONSTANTSRESPONSE +DESCRIPTOR.message_types_by_name['GeoTargetConstantSuggestion'] = _GEOTARGETCONSTANTSUGGESTION +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +GetGeoTargetConstantRequest = _reflection.GeneratedProtocolMessageType('GetGeoTargetConstantRequest', (_message.Message,), dict( + DESCRIPTOR = _GETGEOTARGETCONSTANTREQUEST, + __module__ = 'google.ads.googleads_v4.proto.services.geo_target_constant_service_pb2' + , + __doc__ = """Request message for + [GeoTargetConstantService.GetGeoTargetConstant][google.ads.googleads.v4.services.GeoTargetConstantService.GetGeoTargetConstant]. + + + Attributes: + resource_name: + Required. The resource name of the geo target constant to + fetch. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.GetGeoTargetConstantRequest) + )) +_sym_db.RegisterMessage(GetGeoTargetConstantRequest) + +SuggestGeoTargetConstantsRequest = _reflection.GeneratedProtocolMessageType('SuggestGeoTargetConstantsRequest', (_message.Message,), dict( + + LocationNames = _reflection.GeneratedProtocolMessageType('LocationNames', (_message.Message,), dict( + DESCRIPTOR = _SUGGESTGEOTARGETCONSTANTSREQUEST_LOCATIONNAMES, + __module__ = 'google.ads.googleads_v4.proto.services.geo_target_constant_service_pb2' + , + __doc__ = """A list of location names. + + + Attributes: + names: + A list of location names. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.SuggestGeoTargetConstantsRequest.LocationNames) + )) + , + + GeoTargets = _reflection.GeneratedProtocolMessageType('GeoTargets', (_message.Message,), dict( + DESCRIPTOR = _SUGGESTGEOTARGETCONSTANTSREQUEST_GEOTARGETS, + __module__ = 'google.ads.googleads_v4.proto.services.geo_target_constant_service_pb2' + , + __doc__ = """A list of geo target constant resource names. + + + Attributes: + geo_target_constants: + A list of geo target constant resource names. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.SuggestGeoTargetConstantsRequest.GeoTargets) + )) + , + DESCRIPTOR = _SUGGESTGEOTARGETCONSTANTSREQUEST, + __module__ = 'google.ads.googleads_v4.proto.services.geo_target_constant_service_pb2' + , + __doc__ = """Request message for + [GeoTargetConstantService.SuggestGeoTargetConstantsRequest][]. + + + Attributes: + locale: + If possible, returned geo targets are translated using this + locale. If not, en is used by default. This is also used as a + hint for returned geo targets. + country_code: + Returned geo targets are restricted to this country code. + query: + Required. A selector of geo target constants. + location_names: + The location names to search by. At most 25 names can be set. + geo_targets: + The geo target constant resource names to filter by. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.SuggestGeoTargetConstantsRequest) + )) +_sym_db.RegisterMessage(SuggestGeoTargetConstantsRequest) +_sym_db.RegisterMessage(SuggestGeoTargetConstantsRequest.LocationNames) +_sym_db.RegisterMessage(SuggestGeoTargetConstantsRequest.GeoTargets) + +SuggestGeoTargetConstantsResponse = _reflection.GeneratedProtocolMessageType('SuggestGeoTargetConstantsResponse', (_message.Message,), dict( + DESCRIPTOR = _SUGGESTGEOTARGETCONSTANTSRESPONSE, + __module__ = 'google.ads.googleads_v4.proto.services.geo_target_constant_service_pb2' + , + __doc__ = """Response message for + [GeoTargetConstantService.SuggestGeoTargetConstants][google.ads.googleads.v4.services.GeoTargetConstantService.SuggestGeoTargetConstants] + + + Attributes: + geo_target_constant_suggestions: + Geo target constant suggestions. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.SuggestGeoTargetConstantsResponse) + )) +_sym_db.RegisterMessage(SuggestGeoTargetConstantsResponse) + +GeoTargetConstantSuggestion = _reflection.GeneratedProtocolMessageType('GeoTargetConstantSuggestion', (_message.Message,), dict( + DESCRIPTOR = _GEOTARGETCONSTANTSUGGESTION, + __module__ = 'google.ads.googleads_v4.proto.services.geo_target_constant_service_pb2' + , + __doc__ = """A geo target constant suggestion. + + + Attributes: + locale: + The language this GeoTargetConstantSuggestion is currently + translated to. It affects the name of geo target fields. For + example, if locale=en, then name=Spain. If locale=es, then + name=España. The default locale will be returned if no + translation exists for the locale in the request. + reach: + Approximate user population that will be targeted, rounded to + the nearest 100. + search_term: + If the request searched by location name, this is the location + name that matched the geo target. + geo_target_constant: + The GeoTargetConstant result. + geo_target_constant_parents: + The list of parents of the geo target constant. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.GeoTargetConstantSuggestion) + )) +_sym_db.RegisterMessage(GeoTargetConstantSuggestion) + + +DESCRIPTOR._options = None +_GETGEOTARGETCONSTANTREQUEST.fields_by_name['resource_name']._options = None + +_GEOTARGETCONSTANTSERVICE = _descriptor.ServiceDescriptor( + name='GeoTargetConstantService', + full_name='google.ads.googleads.v4.services.GeoTargetConstantService', + file=DESCRIPTOR, + index=0, + serialized_options=_b('\312A\030googleads.googleapis.com'), + serialized_start=1410, + serialized_end=1883, + methods=[ + _descriptor.MethodDescriptor( + name='GetGeoTargetConstant', + full_name='google.ads.googleads.v4.services.GeoTargetConstantService.GetGeoTargetConstant', + index=0, + containing_service=None, + input_type=_GETGEOTARGETCONSTANTREQUEST, + output_type=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_geo__target__constant__pb2._GEOTARGETCONSTANT, + serialized_options=_b('\202\323\344\223\002*\022(/v4/{resource_name=geoTargetConstants/*}\332A\rresource_name'), + ), + _descriptor.MethodDescriptor( + name='SuggestGeoTargetConstants', + full_name='google.ads.googleads.v4.services.GeoTargetConstantService.SuggestGeoTargetConstants', + index=1, + containing_service=None, + input_type=_SUGGESTGEOTARGETCONSTANTSREQUEST, + output_type=_SUGGESTGEOTARGETCONSTANTSRESPONSE, + serialized_options=_b('\202\323\344\223\002#\"\036/v4/geoTargetConstants:suggest:\001*'), + ), +]) +_sym_db.RegisterServiceDescriptor(_GEOTARGETCONSTANTSERVICE) + +DESCRIPTOR.services_by_name['GeoTargetConstantService'] = _GEOTARGETCONSTANTSERVICE + +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v4/proto/services/geo_target_constant_service_pb2_grpc.py b/google/ads/google_ads/v4/proto/services/geo_target_constant_service_pb2_grpc.py new file mode 100644 index 000000000..be4af3af9 --- /dev/null +++ b/google/ads/google_ads/v4/proto/services/geo_target_constant_service_pb2_grpc.py @@ -0,0 +1,68 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +import grpc + +from google.ads.google_ads.v4.proto.resources import geo_target_constant_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_geo__target__constant__pb2 +from google.ads.google_ads.v4.proto.services import geo_target_constant_service_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_geo__target__constant__service__pb2 + + +class GeoTargetConstantServiceStub(object): + """Proto file describing the Geo target constant service. + + Service to fetch geo target constants. + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.GetGeoTargetConstant = channel.unary_unary( + '/google.ads.googleads.v4.services.GeoTargetConstantService/GetGeoTargetConstant', + request_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_geo__target__constant__service__pb2.GetGeoTargetConstantRequest.SerializeToString, + response_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_geo__target__constant__pb2.GeoTargetConstant.FromString, + ) + self.SuggestGeoTargetConstants = channel.unary_unary( + '/google.ads.googleads.v4.services.GeoTargetConstantService/SuggestGeoTargetConstants', + request_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_geo__target__constant__service__pb2.SuggestGeoTargetConstantsRequest.SerializeToString, + response_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_geo__target__constant__service__pb2.SuggestGeoTargetConstantsResponse.FromString, + ) + + +class GeoTargetConstantServiceServicer(object): + """Proto file describing the Geo target constant service. + + Service to fetch geo target constants. + """ + + def GetGeoTargetConstant(self, request, context): + """Returns the requested geo target constant in full detail. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def SuggestGeoTargetConstants(self, request, context): + """Returns GeoTargetConstant suggestions by location name or by resource name. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_GeoTargetConstantServiceServicer_to_server(servicer, server): + rpc_method_handlers = { + 'GetGeoTargetConstant': grpc.unary_unary_rpc_method_handler( + servicer.GetGeoTargetConstant, + request_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_geo__target__constant__service__pb2.GetGeoTargetConstantRequest.FromString, + response_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_geo__target__constant__pb2.GeoTargetConstant.SerializeToString, + ), + 'SuggestGeoTargetConstants': grpc.unary_unary_rpc_method_handler( + servicer.SuggestGeoTargetConstants, + request_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_geo__target__constant__service__pb2.SuggestGeoTargetConstantsRequest.FromString, + response_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_geo__target__constant__service__pb2.SuggestGeoTargetConstantsResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'google.ads.googleads.v4.services.GeoTargetConstantService', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) diff --git a/google/ads/google_ads/v4/proto/services/geographic_view_service_pb2.py b/google/ads/google_ads/v4/proto/services/geographic_view_service_pb2.py new file mode 100644 index 000000000..a361a7cf0 --- /dev/null +++ b/google/ads/google_ads/v4/proto/services/geographic_view_service_pb2.py @@ -0,0 +1,111 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/services/geographic_view_service.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.ads.google_ads.v4.proto.resources import geographic_view_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_geographic__view__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 +from google.api import client_pb2 as google_dot_api_dot_client__pb2 +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/services/geographic_view_service.proto', + package='google.ads.googleads.v4.services', + syntax='proto3', + serialized_options=_b('\n$com.google.ads.googleads.v4.servicesB\032GeographicViewServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V4.Services\312\002 Google\\Ads\\GoogleAds\\V4\\Services\352\002$Google::Ads::GoogleAds::V4::Services'), + serialized_pb=_b('\nDgoogle/ads/googleads_v4/proto/services/geographic_view_service.proto\x12 google.ads.googleads.v4.services\x1a=google/ads/googleads_v4/proto/resources/geographic_view.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"b\n\x18GetGeographicViewRequest\x12\x46\n\rresource_name\x18\x01 \x01(\tB/\xe0\x41\x02\xfa\x41)\n\'googleads.googleapis.com/GeographicView2\x84\x02\n\x15GeographicViewService\x12\xcd\x01\n\x11GetGeographicView\x12:.google.ads.googleads.v4.services.GetGeographicViewRequest\x1a\x31.google.ads.googleads.v4.resources.GeographicView\"I\x82\xd3\xe4\x93\x02\x33\x12\x31/v4/{resource_name=customers/*/geographicViews/*}\xda\x41\rresource_name\x1a\x1b\xca\x41\x18googleads.googleapis.comB\x81\x02\n$com.google.ads.googleads.v4.servicesB\x1aGeographicViewServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V4.Services\xca\x02 Google\\Ads\\GoogleAds\\V4\\Services\xea\x02$Google::Ads::GoogleAds::V4::Servicesb\x06proto3') + , + dependencies=[google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_geographic__view__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_api_dot_client__pb2.DESCRIPTOR,google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_api_dot_resource__pb2.DESCRIPTOR,]) + + + + +_GETGEOGRAPHICVIEWREQUEST = _descriptor.Descriptor( + name='GetGeographicViewRequest', + full_name='google.ads.googleads.v4.services.GetGeographicViewRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.services.GetGeographicViewRequest.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002\372A)\n\'googleads.googleapis.com/GeographicView'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=284, + serialized_end=382, +) + +DESCRIPTOR.message_types_by_name['GetGeographicViewRequest'] = _GETGEOGRAPHICVIEWREQUEST +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +GetGeographicViewRequest = _reflection.GeneratedProtocolMessageType('GetGeographicViewRequest', (_message.Message,), dict( + DESCRIPTOR = _GETGEOGRAPHICVIEWREQUEST, + __module__ = 'google.ads.googleads_v4.proto.services.geographic_view_service_pb2' + , + __doc__ = """Request message for + [GeographicViewService.GetGeographicView][google.ads.googleads.v4.services.GeographicViewService.GetGeographicView]. + + + Attributes: + resource_name: + Required. The resource name of the geographic view to fetch. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.GetGeographicViewRequest) + )) +_sym_db.RegisterMessage(GetGeographicViewRequest) + + +DESCRIPTOR._options = None +_GETGEOGRAPHICVIEWREQUEST.fields_by_name['resource_name']._options = None + +_GEOGRAPHICVIEWSERVICE = _descriptor.ServiceDescriptor( + name='GeographicViewService', + full_name='google.ads.googleads.v4.services.GeographicViewService', + file=DESCRIPTOR, + index=0, + serialized_options=_b('\312A\030googleads.googleapis.com'), + serialized_start=385, + serialized_end=645, + methods=[ + _descriptor.MethodDescriptor( + name='GetGeographicView', + full_name='google.ads.googleads.v4.services.GeographicViewService.GetGeographicView', + index=0, + containing_service=None, + input_type=_GETGEOGRAPHICVIEWREQUEST, + output_type=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_geographic__view__pb2._GEOGRAPHICVIEW, + serialized_options=_b('\202\323\344\223\0023\0221/v4/{resource_name=customers/*/geographicViews/*}\332A\rresource_name'), + ), +]) +_sym_db.RegisterServiceDescriptor(_GEOGRAPHICVIEWSERVICE) + +DESCRIPTOR.services_by_name['GeographicViewService'] = _GEOGRAPHICVIEWSERVICE + +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v4/proto/services/geographic_view_service_pb2_grpc.py b/google/ads/google_ads/v4/proto/services/geographic_view_service_pb2_grpc.py new file mode 100644 index 000000000..c00fa994c --- /dev/null +++ b/google/ads/google_ads/v4/proto/services/geographic_view_service_pb2_grpc.py @@ -0,0 +1,51 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +import grpc + +from google.ads.google_ads.v4.proto.resources import geographic_view_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_geographic__view__pb2 +from google.ads.google_ads.v4.proto.services import geographic_view_service_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_geographic__view__service__pb2 + + +class GeographicViewServiceStub(object): + """Proto file describing the GeographicViewService. + + Service to manage geographic views. + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.GetGeographicView = channel.unary_unary( + '/google.ads.googleads.v4.services.GeographicViewService/GetGeographicView', + request_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_geographic__view__service__pb2.GetGeographicViewRequest.SerializeToString, + response_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_geographic__view__pb2.GeographicView.FromString, + ) + + +class GeographicViewServiceServicer(object): + """Proto file describing the GeographicViewService. + + Service to manage geographic views. + """ + + def GetGeographicView(self, request, context): + """Returns the requested geographic view in full detail. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_GeographicViewServiceServicer_to_server(servicer, server): + rpc_method_handlers = { + 'GetGeographicView': grpc.unary_unary_rpc_method_handler( + servicer.GetGeographicView, + request_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_geographic__view__service__pb2.GetGeographicViewRequest.FromString, + response_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_geographic__view__pb2.GeographicView.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'google.ads.googleads.v4.services.GeographicViewService', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) diff --git a/google/ads/google_ads/v4/proto/services/google_ads_field_service_pb2.py b/google/ads/google_ads/v4/proto/services/google_ads_field_service_pb2.py new file mode 100644 index 000000000..0946d0f7f --- /dev/null +++ b/google/ads/google_ads/v4/proto/services/google_ads_field_service_pb2.py @@ -0,0 +1,263 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/services/google_ads_field_service.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.ads.google_ads.v4.proto.resources import google_ads_field_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_google__ads__field__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 +from google.api import client_pb2 as google_dot_api_dot_client__pb2 +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/services/google_ads_field_service.proto', + package='google.ads.googleads.v4.services', + syntax='proto3', + serialized_options=_b('\n$com.google.ads.googleads.v4.servicesB\032GoogleAdsFieldServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V4.Services\312\002 Google\\Ads\\GoogleAds\\V4\\Services\352\002$Google::Ads::GoogleAds::V4::Services'), + serialized_pb=_b('\nEgoogle/ads/googleads_v4/proto/services/google_ads_field_service.proto\x12 google.ads.googleads.v4.services\x1a>google/ads/googleads_v4/proto/resources/google_ads_field.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"b\n\x18GetGoogleAdsFieldRequest\x12\x46\n\rresource_name\x18\x01 \x01(\tB/\xe0\x41\x02\xfa\x41)\n\'googleads.googleapis.com/GoogleAdsField\"Y\n\x1cSearchGoogleAdsFieldsRequest\x12\x12\n\x05query\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x12\n\npage_token\x18\x02 \x01(\t\x12\x11\n\tpage_size\x18\x03 \x01(\x05\"\x99\x01\n\x1dSearchGoogleAdsFieldsResponse\x12\x42\n\x07results\x18\x01 \x03(\x0b\x32\x31.google.ads.googleads.v4.resources.GoogleAdsField\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x1b\n\x13total_results_count\x18\x03 \x01(\x03\x32\xc2\x03\n\x15GoogleAdsFieldService\x12\xc1\x01\n\x11GetGoogleAdsField\x12:.google.ads.googleads.v4.services.GetGoogleAdsFieldRequest\x1a\x31.google.ads.googleads.v4.resources.GoogleAdsField\"=\x82\xd3\xe4\x93\x02\'\x12%/v4/{resource_name=googleAdsFields/*}\xda\x41\rresource_name\x12\xc7\x01\n\x15SearchGoogleAdsFields\x12>.google.ads.googleads.v4.services.SearchGoogleAdsFieldsRequest\x1a?.google.ads.googleads.v4.services.SearchGoogleAdsFieldsResponse\"-\x82\xd3\xe4\x93\x02\x1f\"\x1a/v4/googleAdsFields:search:\x01*\xda\x41\x05query\x1a\x1b\xca\x41\x18googleads.googleapis.comB\x81\x02\n$com.google.ads.googleads.v4.servicesB\x1aGoogleAdsFieldServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V4.Services\xca\x02 Google\\Ads\\GoogleAds\\V4\\Services\xea\x02$Google::Ads::GoogleAds::V4::Servicesb\x06proto3') + , + dependencies=[google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_google__ads__field__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_api_dot_client__pb2.DESCRIPTOR,google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_api_dot_resource__pb2.DESCRIPTOR,]) + + + + +_GETGOOGLEADSFIELDREQUEST = _descriptor.Descriptor( + name='GetGoogleAdsFieldRequest', + full_name='google.ads.googleads.v4.services.GetGoogleAdsFieldRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.services.GetGoogleAdsFieldRequest.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002\372A)\n\'googleads.googleapis.com/GoogleAdsField'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=286, + serialized_end=384, +) + + +_SEARCHGOOGLEADSFIELDSREQUEST = _descriptor.Descriptor( + name='SearchGoogleAdsFieldsRequest', + full_name='google.ads.googleads.v4.services.SearchGoogleAdsFieldsRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='query', full_name='google.ads.googleads.v4.services.SearchGoogleAdsFieldsRequest.query', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='page_token', full_name='google.ads.googleads.v4.services.SearchGoogleAdsFieldsRequest.page_token', index=1, + number=2, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='page_size', full_name='google.ads.googleads.v4.services.SearchGoogleAdsFieldsRequest.page_size', index=2, + number=3, type=5, cpp_type=1, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=386, + serialized_end=475, +) + + +_SEARCHGOOGLEADSFIELDSRESPONSE = _descriptor.Descriptor( + name='SearchGoogleAdsFieldsResponse', + full_name='google.ads.googleads.v4.services.SearchGoogleAdsFieldsResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='results', full_name='google.ads.googleads.v4.services.SearchGoogleAdsFieldsResponse.results', index=0, + number=1, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='next_page_token', full_name='google.ads.googleads.v4.services.SearchGoogleAdsFieldsResponse.next_page_token', index=1, + number=2, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='total_results_count', full_name='google.ads.googleads.v4.services.SearchGoogleAdsFieldsResponse.total_results_count', index=2, + number=3, type=3, cpp_type=2, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=478, + serialized_end=631, +) + +_SEARCHGOOGLEADSFIELDSRESPONSE.fields_by_name['results'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_google__ads__field__pb2._GOOGLEADSFIELD +DESCRIPTOR.message_types_by_name['GetGoogleAdsFieldRequest'] = _GETGOOGLEADSFIELDREQUEST +DESCRIPTOR.message_types_by_name['SearchGoogleAdsFieldsRequest'] = _SEARCHGOOGLEADSFIELDSREQUEST +DESCRIPTOR.message_types_by_name['SearchGoogleAdsFieldsResponse'] = _SEARCHGOOGLEADSFIELDSRESPONSE +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +GetGoogleAdsFieldRequest = _reflection.GeneratedProtocolMessageType('GetGoogleAdsFieldRequest', (_message.Message,), dict( + DESCRIPTOR = _GETGOOGLEADSFIELDREQUEST, + __module__ = 'google.ads.googleads_v4.proto.services.google_ads_field_service_pb2' + , + __doc__ = """Request message for + [GoogleAdsFieldService.GetGoogleAdsField][google.ads.googleads.v4.services.GoogleAdsFieldService.GetGoogleAdsField]. + + + Attributes: + resource_name: + Required. The resource name of the field to get. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.GetGoogleAdsFieldRequest) + )) +_sym_db.RegisterMessage(GetGoogleAdsFieldRequest) + +SearchGoogleAdsFieldsRequest = _reflection.GeneratedProtocolMessageType('SearchGoogleAdsFieldsRequest', (_message.Message,), dict( + DESCRIPTOR = _SEARCHGOOGLEADSFIELDSREQUEST, + __module__ = 'google.ads.googleads_v4.proto.services.google_ads_field_service_pb2' + , + __doc__ = """Request message for + [GoogleAdsFieldService.SearchGoogleAdsFields][google.ads.googleads.v4.services.GoogleAdsFieldService.SearchGoogleAdsFields]. + + + Attributes: + query: + Required. The query string. + page_token: + Token of the page to retrieve. If not specified, the first + page of results will be returned. Use the value obtained from + ``next_page_token`` in the previous response in order to + request the next page of results. + page_size: + Number of elements to retrieve in a single page. When too + large a page is requested, the server may decide to further + limit the number of returned resources. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.SearchGoogleAdsFieldsRequest) + )) +_sym_db.RegisterMessage(SearchGoogleAdsFieldsRequest) + +SearchGoogleAdsFieldsResponse = _reflection.GeneratedProtocolMessageType('SearchGoogleAdsFieldsResponse', (_message.Message,), dict( + DESCRIPTOR = _SEARCHGOOGLEADSFIELDSRESPONSE, + __module__ = 'google.ads.googleads_v4.proto.services.google_ads_field_service_pb2' + , + __doc__ = """Response message for + [GoogleAdsFieldService.SearchGoogleAdsFields][google.ads.googleads.v4.services.GoogleAdsFieldService.SearchGoogleAdsFields]. + + + Attributes: + results: + The list of fields that matched the query. + next_page_token: + Pagination token used to retrieve the next page of results. + Pass the content of this string as the ``page_token`` + attribute of the next request. ``next_page_token`` is not + returned for the last page. + total_results_count: + Total number of results that match the query ignoring the + LIMIT clause. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.SearchGoogleAdsFieldsResponse) + )) +_sym_db.RegisterMessage(SearchGoogleAdsFieldsResponse) + + +DESCRIPTOR._options = None +_GETGOOGLEADSFIELDREQUEST.fields_by_name['resource_name']._options = None +_SEARCHGOOGLEADSFIELDSREQUEST.fields_by_name['query']._options = None + +_GOOGLEADSFIELDSERVICE = _descriptor.ServiceDescriptor( + name='GoogleAdsFieldService', + full_name='google.ads.googleads.v4.services.GoogleAdsFieldService', + file=DESCRIPTOR, + index=0, + serialized_options=_b('\312A\030googleads.googleapis.com'), + serialized_start=634, + serialized_end=1084, + methods=[ + _descriptor.MethodDescriptor( + name='GetGoogleAdsField', + full_name='google.ads.googleads.v4.services.GoogleAdsFieldService.GetGoogleAdsField', + index=0, + containing_service=None, + input_type=_GETGOOGLEADSFIELDREQUEST, + output_type=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_google__ads__field__pb2._GOOGLEADSFIELD, + serialized_options=_b('\202\323\344\223\002\'\022%/v4/{resource_name=googleAdsFields/*}\332A\rresource_name'), + ), + _descriptor.MethodDescriptor( + name='SearchGoogleAdsFields', + full_name='google.ads.googleads.v4.services.GoogleAdsFieldService.SearchGoogleAdsFields', + index=1, + containing_service=None, + input_type=_SEARCHGOOGLEADSFIELDSREQUEST, + output_type=_SEARCHGOOGLEADSFIELDSRESPONSE, + serialized_options=_b('\202\323\344\223\002\037\"\032/v4/googleAdsFields:search:\001*\332A\005query'), + ), +]) +_sym_db.RegisterServiceDescriptor(_GOOGLEADSFIELDSERVICE) + +DESCRIPTOR.services_by_name['GoogleAdsFieldService'] = _GOOGLEADSFIELDSERVICE + +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v4/proto/services/google_ads_field_service_pb2_grpc.py b/google/ads/google_ads/v4/proto/services/google_ads_field_service_pb2_grpc.py new file mode 100644 index 000000000..e1ecd9cb7 --- /dev/null +++ b/google/ads/google_ads/v4/proto/services/google_ads_field_service_pb2_grpc.py @@ -0,0 +1,68 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +import grpc + +from google.ads.google_ads.v4.proto.resources import google_ads_field_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_google__ads__field__pb2 +from google.ads.google_ads.v4.proto.services import google_ads_field_service_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_google__ads__field__service__pb2 + + +class GoogleAdsFieldServiceStub(object): + """Proto file describing the GoogleAdsFieldService + + Service to fetch Google Ads API fields. + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.GetGoogleAdsField = channel.unary_unary( + '/google.ads.googleads.v4.services.GoogleAdsFieldService/GetGoogleAdsField', + request_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_google__ads__field__service__pb2.GetGoogleAdsFieldRequest.SerializeToString, + response_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_google__ads__field__pb2.GoogleAdsField.FromString, + ) + self.SearchGoogleAdsFields = channel.unary_unary( + '/google.ads.googleads.v4.services.GoogleAdsFieldService/SearchGoogleAdsFields', + request_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_google__ads__field__service__pb2.SearchGoogleAdsFieldsRequest.SerializeToString, + response_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_google__ads__field__service__pb2.SearchGoogleAdsFieldsResponse.FromString, + ) + + +class GoogleAdsFieldServiceServicer(object): + """Proto file describing the GoogleAdsFieldService + + Service to fetch Google Ads API fields. + """ + + def GetGoogleAdsField(self, request, context): + """Returns just the requested field. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def SearchGoogleAdsFields(self, request, context): + """Returns all fields that match the search query. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_GoogleAdsFieldServiceServicer_to_server(servicer, server): + rpc_method_handlers = { + 'GetGoogleAdsField': grpc.unary_unary_rpc_method_handler( + servicer.GetGoogleAdsField, + request_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_google__ads__field__service__pb2.GetGoogleAdsFieldRequest.FromString, + response_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_google__ads__field__pb2.GoogleAdsField.SerializeToString, + ), + 'SearchGoogleAdsFields': grpc.unary_unary_rpc_method_handler( + servicer.SearchGoogleAdsFields, + request_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_google__ads__field__service__pb2.SearchGoogleAdsFieldsRequest.FromString, + response_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_google__ads__field__service__pb2.SearchGoogleAdsFieldsResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'google.ads.googleads.v4.services.GoogleAdsFieldService', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) diff --git a/google/ads/google_ads/v4/proto/services/google_ads_service_pb2.py b/google/ads/google_ads/v4/proto/services/google_ads_service_pb2.py new file mode 100644 index 000000000..05094bd8c --- /dev/null +++ b/google/ads/google_ads/v4/proto/services/google_ads_service_pb2.py @@ -0,0 +1,3054 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/services/google_ads_service.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.ads.google_ads.v4.proto.common import metrics_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_metrics__pb2 +from google.ads.google_ads.v4.proto.common import segments_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_segments__pb2 +from google.ads.google_ads.v4.proto.enums import summary_row_setting_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_summary__row__setting__pb2 +from google.ads.google_ads.v4.proto.resources import account_budget_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_account__budget__pb2 +from google.ads.google_ads.v4.proto.resources import account_budget_proposal_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_account__budget__proposal__pb2 +from google.ads.google_ads.v4.proto.resources import account_link_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_account__link__pb2 +from google.ads.google_ads.v4.proto.resources import ad_group_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_ad__group__pb2 +from google.ads.google_ads.v4.proto.resources import ad_group_ad_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_ad__group__ad__pb2 +from google.ads.google_ads.v4.proto.resources import ad_group_ad_asset_view_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_ad__group__ad__asset__view__pb2 +from google.ads.google_ads.v4.proto.resources import ad_group_ad_label_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_ad__group__ad__label__pb2 +from google.ads.google_ads.v4.proto.resources import ad_group_audience_view_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_ad__group__audience__view__pb2 +from google.ads.google_ads.v4.proto.resources import ad_group_bid_modifier_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_ad__group__bid__modifier__pb2 +from google.ads.google_ads.v4.proto.resources import ad_group_criterion_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_ad__group__criterion__pb2 +from google.ads.google_ads.v4.proto.resources import ad_group_criterion_label_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_ad__group__criterion__label__pb2 +from google.ads.google_ads.v4.proto.resources import ad_group_criterion_simulation_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_ad__group__criterion__simulation__pb2 +from google.ads.google_ads.v4.proto.resources import ad_group_extension_setting_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_ad__group__extension__setting__pb2 +from google.ads.google_ads.v4.proto.resources import ad_group_feed_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_ad__group__feed__pb2 +from google.ads.google_ads.v4.proto.resources import ad_group_label_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_ad__group__label__pb2 +from google.ads.google_ads.v4.proto.resources import ad_group_simulation_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_ad__group__simulation__pb2 +from google.ads.google_ads.v4.proto.resources import ad_parameter_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_ad__parameter__pb2 +from google.ads.google_ads.v4.proto.resources import ad_schedule_view_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_ad__schedule__view__pb2 +from google.ads.google_ads.v4.proto.resources import age_range_view_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_age__range__view__pb2 +from google.ads.google_ads.v4.proto.resources import asset_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_asset__pb2 +from google.ads.google_ads.v4.proto.resources import batch_job_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_batch__job__pb2 +from google.ads.google_ads.v4.proto.resources import bidding_strategy_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_bidding__strategy__pb2 +from google.ads.google_ads.v4.proto.resources import billing_setup_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_billing__setup__pb2 +from google.ads.google_ads.v4.proto.resources import campaign_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_campaign__pb2 +from google.ads.google_ads.v4.proto.resources import campaign_audience_view_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_campaign__audience__view__pb2 +from google.ads.google_ads.v4.proto.resources import campaign_bid_modifier_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_campaign__bid__modifier__pb2 +from google.ads.google_ads.v4.proto.resources import campaign_budget_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_campaign__budget__pb2 +from google.ads.google_ads.v4.proto.resources import campaign_criterion_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_campaign__criterion__pb2 +from google.ads.google_ads.v4.proto.resources import campaign_criterion_simulation_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_campaign__criterion__simulation__pb2 +from google.ads.google_ads.v4.proto.resources import campaign_draft_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_campaign__draft__pb2 +from google.ads.google_ads.v4.proto.resources import campaign_experiment_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_campaign__experiment__pb2 +from google.ads.google_ads.v4.proto.resources import campaign_extension_setting_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_campaign__extension__setting__pb2 +from google.ads.google_ads.v4.proto.resources import campaign_feed_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_campaign__feed__pb2 +from google.ads.google_ads.v4.proto.resources import campaign_label_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_campaign__label__pb2 +from google.ads.google_ads.v4.proto.resources import campaign_shared_set_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_campaign__shared__set__pb2 +from google.ads.google_ads.v4.proto.resources import carrier_constant_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_carrier__constant__pb2 +from google.ads.google_ads.v4.proto.resources import change_status_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_change__status__pb2 +from google.ads.google_ads.v4.proto.resources import click_view_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_click__view__pb2 +from google.ads.google_ads.v4.proto.resources import conversion_action_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_conversion__action__pb2 +from google.ads.google_ads.v4.proto.resources import currency_constant_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_currency__constant__pb2 +from google.ads.google_ads.v4.proto.resources import custom_interest_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_custom__interest__pb2 +from google.ads.google_ads.v4.proto.resources import customer_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_customer__pb2 +from google.ads.google_ads.v4.proto.resources import customer_client_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_customer__client__pb2 +from google.ads.google_ads.v4.proto.resources import customer_client_link_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_customer__client__link__pb2 +from google.ads.google_ads.v4.proto.resources import customer_extension_setting_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_customer__extension__setting__pb2 +from google.ads.google_ads.v4.proto.resources import customer_feed_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_customer__feed__pb2 +from google.ads.google_ads.v4.proto.resources import customer_label_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_customer__label__pb2 +from google.ads.google_ads.v4.proto.resources import customer_manager_link_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_customer__manager__link__pb2 +from google.ads.google_ads.v4.proto.resources import customer_negative_criterion_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_customer__negative__criterion__pb2 +from google.ads.google_ads.v4.proto.resources import detail_placement_view_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_detail__placement__view__pb2 +from google.ads.google_ads.v4.proto.resources import display_keyword_view_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_display__keyword__view__pb2 +from google.ads.google_ads.v4.proto.resources import distance_view_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_distance__view__pb2 +from google.ads.google_ads.v4.proto.resources import domain_category_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_domain__category__pb2 +from google.ads.google_ads.v4.proto.resources import dynamic_search_ads_search_term_view_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_dynamic__search__ads__search__term__view__pb2 +from google.ads.google_ads.v4.proto.resources import expanded_landing_page_view_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_expanded__landing__page__view__pb2 +from google.ads.google_ads.v4.proto.resources import extension_feed_item_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_extension__feed__item__pb2 +from google.ads.google_ads.v4.proto.resources import feed_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_feed__pb2 +from google.ads.google_ads.v4.proto.resources import feed_item_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_feed__item__pb2 +from google.ads.google_ads.v4.proto.resources import feed_item_target_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_feed__item__target__pb2 +from google.ads.google_ads.v4.proto.resources import feed_mapping_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_feed__mapping__pb2 +from google.ads.google_ads.v4.proto.resources import feed_placeholder_view_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_feed__placeholder__view__pb2 +from google.ads.google_ads.v4.proto.resources import gender_view_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_gender__view__pb2 +from google.ads.google_ads.v4.proto.resources import geo_target_constant_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_geo__target__constant__pb2 +from google.ads.google_ads.v4.proto.resources import geographic_view_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_geographic__view__pb2 +from google.ads.google_ads.v4.proto.resources import group_placement_view_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_group__placement__view__pb2 +from google.ads.google_ads.v4.proto.resources import hotel_group_view_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_hotel__group__view__pb2 +from google.ads.google_ads.v4.proto.resources import hotel_performance_view_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_hotel__performance__view__pb2 +from google.ads.google_ads.v4.proto.resources import income_range_view_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_income__range__view__pb2 +from google.ads.google_ads.v4.proto.resources import keyword_plan_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_keyword__plan__pb2 +from google.ads.google_ads.v4.proto.resources import keyword_plan_ad_group_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_keyword__plan__ad__group__pb2 +from google.ads.google_ads.v4.proto.resources import keyword_plan_ad_group_keyword_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_keyword__plan__ad__group__keyword__pb2 +from google.ads.google_ads.v4.proto.resources import keyword_plan_campaign_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_keyword__plan__campaign__pb2 +from google.ads.google_ads.v4.proto.resources import keyword_plan_campaign_keyword_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_keyword__plan__campaign__keyword__pb2 +from google.ads.google_ads.v4.proto.resources import keyword_view_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_keyword__view__pb2 +from google.ads.google_ads.v4.proto.resources import label_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_label__pb2 +from google.ads.google_ads.v4.proto.resources import landing_page_view_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_landing__page__view__pb2 +from google.ads.google_ads.v4.proto.resources import language_constant_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_language__constant__pb2 +from google.ads.google_ads.v4.proto.resources import location_view_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_location__view__pb2 +from google.ads.google_ads.v4.proto.resources import managed_placement_view_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_managed__placement__view__pb2 +from google.ads.google_ads.v4.proto.resources import media_file_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_media__file__pb2 +from google.ads.google_ads.v4.proto.resources import mobile_app_category_constant_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_mobile__app__category__constant__pb2 +from google.ads.google_ads.v4.proto.resources import mobile_device_constant_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_mobile__device__constant__pb2 +from google.ads.google_ads.v4.proto.resources import offline_user_data_job_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_offline__user__data__job__pb2 +from google.ads.google_ads.v4.proto.resources import operating_system_version_constant_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_operating__system__version__constant__pb2 +from google.ads.google_ads.v4.proto.resources import paid_organic_search_term_view_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_paid__organic__search__term__view__pb2 +from google.ads.google_ads.v4.proto.resources import parental_status_view_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_parental__status__view__pb2 +from google.ads.google_ads.v4.proto.resources import product_bidding_category_constant_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_product__bidding__category__constant__pb2 +from google.ads.google_ads.v4.proto.resources import product_group_view_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_product__group__view__pb2 +from google.ads.google_ads.v4.proto.resources import recommendation_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_recommendation__pb2 +from google.ads.google_ads.v4.proto.resources import remarketing_action_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_remarketing__action__pb2 +from google.ads.google_ads.v4.proto.resources import search_term_view_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_search__term__view__pb2 +from google.ads.google_ads.v4.proto.resources import shared_criterion_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_shared__criterion__pb2 +from google.ads.google_ads.v4.proto.resources import shared_set_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_shared__set__pb2 +from google.ads.google_ads.v4.proto.resources import shopping_performance_view_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_shopping__performance__view__pb2 +from google.ads.google_ads.v4.proto.resources import third_party_app_analytics_link_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_third__party__app__analytics__link__pb2 +from google.ads.google_ads.v4.proto.resources import topic_constant_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_topic__constant__pb2 +from google.ads.google_ads.v4.proto.resources import topic_view_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_topic__view__pb2 +from google.ads.google_ads.v4.proto.resources import user_interest_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_user__interest__pb2 +from google.ads.google_ads.v4.proto.resources import user_list_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_user__list__pb2 +from google.ads.google_ads.v4.proto.resources import user_location_view_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_user__location__view__pb2 +from google.ads.google_ads.v4.proto.resources import video_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_video__pb2 +from google.ads.google_ads.v4.proto.services import ad_group_ad_label_service_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_ad__group__ad__label__service__pb2 +from google.ads.google_ads.v4.proto.services import ad_group_ad_service_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_ad__group__ad__service__pb2 +from google.ads.google_ads.v4.proto.services import ad_group_bid_modifier_service_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_ad__group__bid__modifier__service__pb2 +from google.ads.google_ads.v4.proto.services import ad_group_criterion_label_service_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_ad__group__criterion__label__service__pb2 +from google.ads.google_ads.v4.proto.services import ad_group_criterion_service_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_ad__group__criterion__service__pb2 +from google.ads.google_ads.v4.proto.services import ad_group_extension_setting_service_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_ad__group__extension__setting__service__pb2 +from google.ads.google_ads.v4.proto.services import ad_group_feed_service_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_ad__group__feed__service__pb2 +from google.ads.google_ads.v4.proto.services import ad_group_label_service_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_ad__group__label__service__pb2 +from google.ads.google_ads.v4.proto.services import ad_group_service_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_ad__group__service__pb2 +from google.ads.google_ads.v4.proto.services import ad_parameter_service_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_ad__parameter__service__pb2 +from google.ads.google_ads.v4.proto.services import ad_service_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_ad__service__pb2 +from google.ads.google_ads.v4.proto.services import asset_service_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_asset__service__pb2 +from google.ads.google_ads.v4.proto.services import bidding_strategy_service_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_bidding__strategy__service__pb2 +from google.ads.google_ads.v4.proto.services import campaign_bid_modifier_service_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_campaign__bid__modifier__service__pb2 +from google.ads.google_ads.v4.proto.services import campaign_budget_service_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_campaign__budget__service__pb2 +from google.ads.google_ads.v4.proto.services import campaign_criterion_service_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_campaign__criterion__service__pb2 +from google.ads.google_ads.v4.proto.services import campaign_draft_service_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_campaign__draft__service__pb2 +from google.ads.google_ads.v4.proto.services import campaign_experiment_service_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_campaign__experiment__service__pb2 +from google.ads.google_ads.v4.proto.services import campaign_extension_setting_service_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_campaign__extension__setting__service__pb2 +from google.ads.google_ads.v4.proto.services import campaign_feed_service_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_campaign__feed__service__pb2 +from google.ads.google_ads.v4.proto.services import campaign_label_service_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_campaign__label__service__pb2 +from google.ads.google_ads.v4.proto.services import campaign_service_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_campaign__service__pb2 +from google.ads.google_ads.v4.proto.services import campaign_shared_set_service_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_campaign__shared__set__service__pb2 +from google.ads.google_ads.v4.proto.services import conversion_action_service_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_conversion__action__service__pb2 +from google.ads.google_ads.v4.proto.services import customer_extension_setting_service_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_customer__extension__setting__service__pb2 +from google.ads.google_ads.v4.proto.services import customer_feed_service_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_customer__feed__service__pb2 +from google.ads.google_ads.v4.proto.services import customer_label_service_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_customer__label__service__pb2 +from google.ads.google_ads.v4.proto.services import customer_negative_criterion_service_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_customer__negative__criterion__service__pb2 +from google.ads.google_ads.v4.proto.services import customer_service_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_customer__service__pb2 +from google.ads.google_ads.v4.proto.services import extension_feed_item_service_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_extension__feed__item__service__pb2 +from google.ads.google_ads.v4.proto.services import feed_item_service_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_feed__item__service__pb2 +from google.ads.google_ads.v4.proto.services import feed_item_target_service_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_feed__item__target__service__pb2 +from google.ads.google_ads.v4.proto.services import feed_mapping_service_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_feed__mapping__service__pb2 +from google.ads.google_ads.v4.proto.services import feed_service_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_feed__service__pb2 +from google.ads.google_ads.v4.proto.services import keyword_plan_ad_group_keyword_service_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_keyword__plan__ad__group__keyword__service__pb2 +from google.ads.google_ads.v4.proto.services import keyword_plan_ad_group_service_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_keyword__plan__ad__group__service__pb2 +from google.ads.google_ads.v4.proto.services import keyword_plan_campaign_keyword_service_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_keyword__plan__campaign__keyword__service__pb2 +from google.ads.google_ads.v4.proto.services import keyword_plan_campaign_service_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_keyword__plan__campaign__service__pb2 +from google.ads.google_ads.v4.proto.services import keyword_plan_service_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_keyword__plan__service__pb2 +from google.ads.google_ads.v4.proto.services import label_service_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_label__service__pb2 +from google.ads.google_ads.v4.proto.services import media_file_service_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_media__file__service__pb2 +from google.ads.google_ads.v4.proto.services import remarketing_action_service_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_remarketing__action__service__pb2 +from google.ads.google_ads.v4.proto.services import shared_criterion_service_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_shared__criterion__service__pb2 +from google.ads.google_ads.v4.proto.services import shared_set_service_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_shared__set__service__pb2 +from google.ads.google_ads.v4.proto.services import user_list_service_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_user__list__service__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 +from google.api import client_pb2 as google_dot_api_dot_client__pb2 +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.protobuf import field_mask_pb2 as google_dot_protobuf_dot_field__mask__pb2 +from google.rpc import status_pb2 as google_dot_rpc_dot_status__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/services/google_ads_service.proto', + package='google.ads.googleads.v4.services', + syntax='proto3', + serialized_options=_b('\n$com.google.ads.googleads.v4.servicesB\025GoogleAdsServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V4.Services\312\002 Google\\Ads\\GoogleAds\\V4\\Services\352\002$Google::Ads::GoogleAds::V4::Services'), + serialized_pb=_b('\n?google/ads/googleads_v4/proto/services/google_ads_service.proto\x12 google.ads.googleads.v4.services\x1a\x32google/ads/googleads_v4/proto/common/metrics.proto\x1a\x33google/ads/googleads_v4/proto/common/segments.proto\x1a=google/ads/googleads_v4/proto/enums/summary_row_setting.proto\x1agoogle/ads/googleads_v4/proto/resources/ad_schedule_view.proto\x1agoogle/ads/googleads_v4/proto/resources/bidding_strategy.proto\x1a;google/ads/googleads_v4/proto/resources/billing_setup.proto\x1a\x36google/ads/googleads_v4/proto/resources/campaign.proto\x1a\x44google/ads/googleads_v4/proto/resources/campaign_audience_view.proto\x1a\x43google/ads/googleads_v4/proto/resources/campaign_bid_modifier.proto\x1a=google/ads/googleads_v4/proto/resources/campaign_budget.proto\x1a@google/ads/googleads_v4/proto/resources/campaign_criterion.proto\x1aKgoogle/ads/googleads_v4/proto/resources/campaign_criterion_simulation.proto\x1agoogle/ads/googleads_v4/proto/resources/carrier_constant.proto\x1a;google/ads/googleads_v4/proto/resources/change_status.proto\x1a\x38google/ads/googleads_v4/proto/resources/click_view.proto\x1a?google/ads/googleads_v4/proto/resources/conversion_action.proto\x1a?google/ads/googleads_v4/proto/resources/currency_constant.proto\x1a=google/ads/googleads_v4/proto/resources/custom_interest.proto\x1a\x36google/ads/googleads_v4/proto/resources/customer.proto\x1a=google/ads/googleads_v4/proto/resources/customer_client.proto\x1a\x42google/ads/googleads_v4/proto/resources/customer_client_link.proto\x1aHgoogle/ads/googleads_v4/proto/resources/customer_extension_setting.proto\x1a;google/ads/googleads_v4/proto/resources/customer_feed.proto\x1agoogle/ads/googleads_v4/proto/resources/feed_item_target.proto\x1a:google/ads/googleads_v4/proto/resources/feed_mapping.proto\x1a\x43google/ads/googleads_v4/proto/resources/feed_placeholder_view.proto\x1a\x39google/ads/googleads_v4/proto/resources/gender_view.proto\x1a\x41google/ads/googleads_v4/proto/resources/geo_target_constant.proto\x1a=google/ads/googleads_v4/proto/resources/geographic_view.proto\x1a\x42google/ads/googleads_v4/proto/resources/group_placement_view.proto\x1a>google/ads/googleads_v4/proto/resources/hotel_group_view.proto\x1a\x44google/ads/googleads_v4/proto/resources/hotel_performance_view.proto\x1a?google/ads/googleads_v4/proto/resources/income_range_view.proto\x1a:google/ads/googleads_v4/proto/resources/keyword_plan.proto\x1a\x43google/ads/googleads_v4/proto/resources/keyword_plan_ad_group.proto\x1aKgoogle/ads/googleads_v4/proto/resources/keyword_plan_ad_group_keyword.proto\x1a\x43google/ads/googleads_v4/proto/resources/keyword_plan_campaign.proto\x1aKgoogle/ads/googleads_v4/proto/resources/keyword_plan_campaign_keyword.proto\x1a:google/ads/googleads_v4/proto/resources/keyword_view.proto\x1a\x33google/ads/googleads_v4/proto/resources/label.proto\x1a?google/ads/googleads_v4/proto/resources/landing_page_view.proto\x1a?google/ads/googleads_v4/proto/resources/language_constant.proto\x1a;google/ads/googleads_v4/proto/resources/location_view.proto\x1a\x44google/ads/googleads_v4/proto/resources/managed_placement_view.proto\x1a\x38google/ads/googleads_v4/proto/resources/media_file.proto\x1aJgoogle/ads/googleads_v4/proto/resources/mobile_app_category_constant.proto\x1a\x44google/ads/googleads_v4/proto/resources/mobile_device_constant.proto\x1a\x43google/ads/googleads_v4/proto/resources/offline_user_data_job.proto\x1aOgoogle/ads/googleads_v4/proto/resources/operating_system_version_constant.proto\x1aKgoogle/ads/googleads_v4/proto/resources/paid_organic_search_term_view.proto\x1a\x42google/ads/googleads_v4/proto/resources/parental_status_view.proto\x1aOgoogle/ads/googleads_v4/proto/resources/product_bidding_category_constant.proto\x1a@google/ads/googleads_v4/proto/resources/product_group_view.proto\x1agoogle/ads/googleads_v4/proto/resources/search_term_view.proto\x1a>google/ads/googleads_v4/proto/resources/shared_criterion.proto\x1a\x38google/ads/googleads_v4/proto/resources/shared_set.proto\x1aGgoogle/ads/googleads_v4/proto/resources/shopping_performance_view.proto\x1aLgoogle/ads/googleads_v4/proto/resources/third_party_app_analytics_link.proto\x1agoogle/ads/googleads_v4/proto/services/feed_item_service.proto\x1a\x45google/ads/googleads_v4/proto/services/feed_item_target_service.proto\x1a\x41google/ads/googleads_v4/proto/services/feed_mapping_service.proto\x1a\x39google/ads/googleads_v4/proto/services/feed_service.proto\x1aRgoogle/ads/googleads_v4/proto/services/keyword_plan_ad_group_keyword_service.proto\x1aJgoogle/ads/googleads_v4/proto/services/keyword_plan_ad_group_service.proto\x1aRgoogle/ads/googleads_v4/proto/services/keyword_plan_campaign_keyword_service.proto\x1aJgoogle/ads/googleads_v4/proto/services/keyword_plan_campaign_service.proto\x1a\x41google/ads/googleads_v4/proto/services/keyword_plan_service.proto\x1a:google/ads/googleads_v4/proto/services/label_service.proto\x1a?google/ads/googleads_v4/proto/services/media_file_service.proto\x1aGgoogle/ads/googleads_v4/proto/services/remarketing_action_service.proto\x1a\x45google/ads/googleads_v4/proto/services/shared_criterion_service.proto\x1a?google/ads/googleads_v4/proto/services/shared_set_service.proto\x1a>google/ads/googleads_v4/proto/services/user_list_service.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a google/protobuf/field_mask.proto\x1a\x17google/rpc/status.proto\"\x8d\x02\n\x16SearchGoogleAdsRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x12\n\x05query\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x12\n\npage_token\x18\x03 \x01(\t\x12\x11\n\tpage_size\x18\x04 \x01(\x05\x12\x15\n\rvalidate_only\x18\x05 \x01(\x08\x12\"\n\x1areturn_total_results_count\x18\x07 \x01(\x08\x12\x63\n\x13summary_row_setting\x18\x08 \x01(\x0e\x32\x46.google.ads.googleads.v4.enums.SummaryRowSettingEnum.SummaryRowSetting\"\x85\x02\n\x17SearchGoogleAdsResponse\x12?\n\x07results\x18\x01 \x03(\x0b\x32..google.ads.googleads.v4.services.GoogleAdsRow\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x1b\n\x13total_results_count\x18\x03 \x01(\x03\x12.\n\nfield_mask\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12\x43\n\x0bsummary_row\x18\x06 \x01(\x0b\x32..google.ads.googleads.v4.services.GoogleAdsRow\"\xb1\x01\n\x1cSearchGoogleAdsStreamRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x12\n\x05query\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x63\n\x13summary_row_setting\x18\x03 \x01(\x0e\x32\x46.google.ads.googleads.v4.enums.SummaryRowSettingEnum.SummaryRowSetting\"\xd5\x01\n\x1dSearchGoogleAdsStreamResponse\x12?\n\x07results\x18\x01 \x03(\x0b\x32..google.ads.googleads.v4.services.GoogleAdsRow\x12.\n\nfield_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12\x43\n\x0bsummary_row\x18\x03 \x01(\x0b\x32..google.ads.googleads.v4.services.GoogleAdsRow\"\xc3@\n\x0cGoogleAdsRow\x12H\n\x0e\x61\x63\x63ount_budget\x18* \x01(\x0b\x32\x30.google.ads.googleads.v4.resources.AccountBudget\x12Y\n\x17\x61\x63\x63ount_budget_proposal\x18+ \x01(\x0b\x32\x38.google.ads.googleads.v4.resources.AccountBudgetProposal\x12\x45\n\x0c\x61\x63\x63ount_link\x18\x8f\x01 \x01(\x0b\x32..google.ads.googleads.v4.resources.AccountLink\x12<\n\x08\x61\x64_group\x18\x03 \x01(\x0b\x32*.google.ads.googleads.v4.resources.AdGroup\x12\x41\n\x0b\x61\x64_group_ad\x18\x10 \x01(\x0b\x32,.google.ads.googleads.v4.resources.AdGroupAd\x12V\n\x16\x61\x64_group_ad_asset_view\x18\x83\x01 \x01(\x0b\x32\x35.google.ads.googleads.v4.resources.AdGroupAdAssetView\x12L\n\x11\x61\x64_group_ad_label\x18x \x01(\x0b\x32\x31.google.ads.googleads.v4.resources.AdGroupAdLabel\x12V\n\x16\x61\x64_group_audience_view\x18\x39 \x01(\x0b\x32\x36.google.ads.googleads.v4.resources.AdGroupAudienceView\x12T\n\x15\x61\x64_group_bid_modifier\x18\x18 \x01(\x0b\x32\x35.google.ads.googleads.v4.resources.AdGroupBidModifier\x12O\n\x12\x61\x64_group_criterion\x18\x11 \x01(\x0b\x32\x33.google.ads.googleads.v4.resources.AdGroupCriterion\x12Z\n\x18\x61\x64_group_criterion_label\x18y \x01(\x0b\x32\x38.google.ads.googleads.v4.resources.AdGroupCriterionLabel\x12\x64\n\x1d\x61\x64_group_criterion_simulation\x18n \x01(\x0b\x32=.google.ads.googleads.v4.resources.AdGroupCriterionSimulation\x12^\n\x1a\x61\x64_group_extension_setting\x18p \x01(\x0b\x32:.google.ads.googleads.v4.resources.AdGroupExtensionSetting\x12\x45\n\rad_group_feed\x18\x43 \x01(\x0b\x32..google.ads.googleads.v4.resources.AdGroupFeed\x12G\n\x0e\x61\x64_group_label\x18s \x01(\x0b\x32/.google.ads.googleads.v4.resources.AdGroupLabel\x12Q\n\x13\x61\x64_group_simulation\x18k \x01(\x0b\x32\x34.google.ads.googleads.v4.resources.AdGroupSimulation\x12\x45\n\x0c\x61\x64_parameter\x18\x82\x01 \x01(\x0b\x32..google.ads.googleads.v4.resources.AdParameter\x12G\n\x0e\x61ge_range_view\x18\x30 \x01(\x0b\x32/.google.ads.googleads.v4.resources.AgeRangeView\x12K\n\x10\x61\x64_schedule_view\x18Y \x01(\x0b\x32\x31.google.ads.googleads.v4.resources.AdScheduleView\x12J\n\x0f\x64omain_category\x18[ \x01(\x0b\x32\x31.google.ads.googleads.v4.resources.DomainCategory\x12\x37\n\x05\x61sset\x18i \x01(\x0b\x32(.google.ads.googleads.v4.resources.Asset\x12?\n\tbatch_job\x18\x8b\x01 \x01(\x0b\x32+.google.ads.googleads.v4.resources.BatchJob\x12L\n\x10\x62idding_strategy\x18\x12 \x01(\x0b\x32\x32.google.ads.googleads.v4.resources.BiddingStrategy\x12\x46\n\rbilling_setup\x18) \x01(\x0b\x32/.google.ads.googleads.v4.resources.BillingSetup\x12J\n\x0f\x63\x61mpaign_budget\x18\x13 \x01(\x0b\x32\x31.google.ads.googleads.v4.resources.CampaignBudget\x12=\n\x08\x63\x61mpaign\x18\x02 \x01(\x0b\x32+.google.ads.googleads.v4.resources.Campaign\x12W\n\x16\x63\x61mpaign_audience_view\x18\x45 \x01(\x0b\x32\x37.google.ads.googleads.v4.resources.CampaignAudienceView\x12U\n\x15\x63\x61mpaign_bid_modifier\x18\x1a \x01(\x0b\x32\x36.google.ads.googleads.v4.resources.CampaignBidModifier\x12P\n\x12\x63\x61mpaign_criterion\x18\x14 \x01(\x0b\x32\x34.google.ads.googleads.v4.resources.CampaignCriterion\x12\x65\n\x1d\x63\x61mpaign_criterion_simulation\x18o \x01(\x0b\x32>.google.ads.googleads.v4.resources.CampaignCriterionSimulation\x12H\n\x0e\x63\x61mpaign_draft\x18\x31 \x01(\x0b\x32\x30.google.ads.googleads.v4.resources.CampaignDraft\x12R\n\x13\x63\x61mpaign_experiment\x18T \x01(\x0b\x32\x35.google.ads.googleads.v4.resources.CampaignExperiment\x12_\n\x1a\x63\x61mpaign_extension_setting\x18q \x01(\x0b\x32;.google.ads.googleads.v4.resources.CampaignExtensionSetting\x12\x46\n\rcampaign_feed\x18? \x01(\x0b\x32/.google.ads.googleads.v4.resources.CampaignFeed\x12H\n\x0e\x63\x61mpaign_label\x18l \x01(\x0b\x32\x30.google.ads.googleads.v4.resources.CampaignLabel\x12Q\n\x13\x63\x61mpaign_shared_set\x18\x1e \x01(\x0b\x32\x34.google.ads.googleads.v4.resources.CampaignSharedSet\x12L\n\x10\x63\x61rrier_constant\x18\x42 \x01(\x0b\x32\x32.google.ads.googleads.v4.resources.CarrierConstant\x12\x46\n\rchange_status\x18% \x01(\x0b\x32/.google.ads.googleads.v4.resources.ChangeStatus\x12N\n\x11\x63onversion_action\x18g \x01(\x0b\x32\x33.google.ads.googleads.v4.resources.ConversionAction\x12@\n\nclick_view\x18z \x01(\x0b\x32,.google.ads.googleads.v4.resources.ClickView\x12O\n\x11\x63urrency_constant\x18\x86\x01 \x01(\x0b\x32\x33.google.ads.googleads.v4.resources.CurrencyConstant\x12J\n\x0f\x63ustom_interest\x18h \x01(\x0b\x32\x31.google.ads.googleads.v4.resources.CustomInterest\x12=\n\x08\x63ustomer\x18\x01 \x01(\x0b\x32+.google.ads.googleads.v4.resources.Customer\x12U\n\x15\x63ustomer_manager_link\x18= \x01(\x0b\x32\x36.google.ads.googleads.v4.resources.CustomerManagerLink\x12S\n\x14\x63ustomer_client_link\x18> \x01(\x0b\x32\x35.google.ads.googleads.v4.resources.CustomerClientLink\x12J\n\x0f\x63ustomer_client\x18\x46 \x01(\x0b\x32\x31.google.ads.googleads.v4.resources.CustomerClient\x12_\n\x1a\x63ustomer_extension_setting\x18r \x01(\x0b\x32;.google.ads.googleads.v4.resources.CustomerExtensionSetting\x12\x46\n\rcustomer_feed\x18@ \x01(\x0b\x32/.google.ads.googleads.v4.resources.CustomerFeed\x12H\n\x0e\x63ustomer_label\x18| \x01(\x0b\x32\x30.google.ads.googleads.v4.resources.CustomerLabel\x12\x61\n\x1b\x63ustomer_negative_criterion\x18X \x01(\x0b\x32<.google.ads.googleads.v4.resources.CustomerNegativeCriterion\x12U\n\x15\x64\x65tail_placement_view\x18v \x01(\x0b\x32\x36.google.ads.googleads.v4.resources.DetailPlacementView\x12S\n\x14\x64isplay_keyword_view\x18/ \x01(\x0b\x32\x35.google.ads.googleads.v4.resources.DisplayKeywordView\x12G\n\rdistance_view\x18\x84\x01 \x01(\x0b\x32/.google.ads.googleads.v4.resources.DistanceView\x12n\n#dynamic_search_ads_search_term_view\x18j \x01(\x0b\x32\x41.google.ads.googleads.v4.resources.DynamicSearchAdsSearchTermView\x12_\n\x1a\x65xpanded_landing_page_view\x18\x80\x01 \x01(\x0b\x32:.google.ads.googleads.v4.resources.ExpandedLandingPageView\x12Q\n\x13\x65xtension_feed_item\x18U \x01(\x0b\x32\x34.google.ads.googleads.v4.resources.ExtensionFeedItem\x12\x35\n\x04\x66\x65\x65\x64\x18. \x01(\x0b\x32\'.google.ads.googleads.v4.resources.Feed\x12>\n\tfeed_item\x18\x32 \x01(\x0b\x32+.google.ads.googleads.v4.resources.FeedItem\x12K\n\x10\x66\x65\x65\x64_item_target\x18t \x01(\x0b\x32\x31.google.ads.googleads.v4.resources.FeedItemTarget\x12\x44\n\x0c\x66\x65\x65\x64_mapping\x18: \x01(\x0b\x32..google.ads.googleads.v4.resources.FeedMapping\x12U\n\x15\x66\x65\x65\x64_placeholder_view\x18\x61 \x01(\x0b\x32\x36.google.ads.googleads.v4.resources.FeedPlaceholderView\x12\x42\n\x0bgender_view\x18( \x01(\x0b\x32-.google.ads.googleads.v4.resources.GenderView\x12Q\n\x13geo_target_constant\x18\x17 \x01(\x0b\x32\x34.google.ads.googleads.v4.resources.GeoTargetConstant\x12J\n\x0fgeographic_view\x18} \x01(\x0b\x32\x31.google.ads.googleads.v4.resources.GeographicView\x12S\n\x14group_placement_view\x18w \x01(\x0b\x32\x35.google.ads.googleads.v4.resources.GroupPlacementView\x12K\n\x10hotel_group_view\x18\x33 \x01(\x0b\x32\x31.google.ads.googleads.v4.resources.HotelGroupView\x12W\n\x16hotel_performance_view\x18G \x01(\x0b\x32\x37.google.ads.googleads.v4.resources.HotelPerformanceView\x12N\n\x11income_range_view\x18\x8a\x01 \x01(\x0b\x32\x32.google.ads.googleads.v4.resources.IncomeRangeView\x12\x44\n\x0ckeyword_view\x18\x15 \x01(\x0b\x32..google.ads.googleads.v4.resources.KeywordView\x12\x44\n\x0ckeyword_plan\x18 \x01(\x0b\x32..google.ads.googleads.v4.resources.KeywordPlan\x12U\n\x15keyword_plan_campaign\x18! \x01(\x0b\x32\x36.google.ads.googleads.v4.resources.KeywordPlanCampaign\x12\x65\n\x1dkeyword_plan_campaign_keyword\x18\x8c\x01 \x01(\x0b\x32=.google.ads.googleads.v4.resources.KeywordPlanCampaignKeyword\x12T\n\x15keyword_plan_ad_group\x18# \x01(\x0b\x32\x35.google.ads.googleads.v4.resources.KeywordPlanAdGroup\x12\x64\n\x1dkeyword_plan_ad_group_keyword\x18\x8d\x01 \x01(\x0b\x32<.google.ads.googleads.v4.resources.KeywordPlanAdGroupKeyword\x12\x37\n\x05label\x18\x34 \x01(\x0b\x32(.google.ads.googleads.v4.resources.Label\x12M\n\x11landing_page_view\x18~ \x01(\x0b\x32\x32.google.ads.googleads.v4.resources.LandingPageView\x12N\n\x11language_constant\x18\x37 \x01(\x0b\x32\x33.google.ads.googleads.v4.resources.LanguageConstant\x12\x46\n\rlocation_view\x18{ \x01(\x0b\x32/.google.ads.googleads.v4.resources.LocationView\x12W\n\x16managed_placement_view\x18\x35 \x01(\x0b\x32\x37.google.ads.googleads.v4.resources.ManagedPlacementView\x12@\n\nmedia_file\x18Z \x01(\x0b\x32,.google.ads.googleads.v4.resources.MediaFile\x12\x62\n\x1cmobile_app_category_constant\x18W \x01(\x0b\x32<.google.ads.googleads.v4.resources.MobileAppCategoryConstant\x12W\n\x16mobile_device_constant\x18\x62 \x01(\x0b\x32\x37.google.ads.googleads.v4.resources.MobileDeviceConstant\x12U\n\x15offline_user_data_job\x18\x89\x01 \x01(\x0b\x32\x35.google.ads.googleads.v4.resources.OfflineUserDataJob\x12l\n!operating_system_version_constant\x18V \x01(\x0b\x32\x41.google.ads.googleads.v4.resources.OperatingSystemVersionConstant\x12\x64\n\x1dpaid_organic_search_term_view\x18\x81\x01 \x01(\x0b\x32<.google.ads.googleads.v4.resources.PaidOrganicSearchTermView\x12S\n\x14parental_status_view\x18- \x01(\x0b\x32\x35.google.ads.googleads.v4.resources.ParentalStatusView\x12l\n!product_bidding_category_constant\x18m \x01(\x0b\x32\x41.google.ads.googleads.v4.resources.ProductBiddingCategoryConstant\x12O\n\x12product_group_view\x18\x36 \x01(\x0b\x32\x33.google.ads.googleads.v4.resources.ProductGroupView\x12I\n\x0erecommendation\x18\x16 \x01(\x0b\x32\x31.google.ads.googleads.v4.resources.Recommendation\x12K\n\x10search_term_view\x18\x44 \x01(\x0b\x32\x31.google.ads.googleads.v4.resources.SearchTermView\x12L\n\x10shared_criterion\x18\x1d \x01(\x0b\x32\x32.google.ads.googleads.v4.resources.SharedCriterion\x12@\n\nshared_set\x18\x1b \x01(\x0b\x32,.google.ads.googleads.v4.resources.SharedSet\x12]\n\x19shopping_performance_view\x18u \x01(\x0b\x32:.google.ads.googleads.v4.resources.ShoppingPerformanceView\x12\x66\n\x1ethird_party_app_analytics_link\x18\x90\x01 \x01(\x0b\x32=.google.ads.googleads.v4.resources.ThirdPartyAppAnalyticsLink\x12@\n\ntopic_view\x18, \x01(\x0b\x32,.google.ads.googleads.v4.resources.TopicView\x12\x46\n\ruser_interest\x18; \x01(\x0b\x32/.google.ads.googleads.v4.resources.UserInterest\x12>\n\tuser_list\x18& \x01(\x0b\x32+.google.ads.googleads.v4.resources.UserList\x12P\n\x12user_location_view\x18\x87\x01 \x01(\x0b\x32\x33.google.ads.googleads.v4.resources.UserLocationView\x12P\n\x12remarketing_action\x18< \x01(\x0b\x32\x34.google.ads.googleads.v4.resources.RemarketingAction\x12H\n\x0etopic_constant\x18\x1f \x01(\x0b\x32\x30.google.ads.googleads.v4.resources.TopicConstant\x12\x37\n\x05video\x18\' \x01(\x0b\x32(.google.ads.googleads.v4.resources.Video\x12\x38\n\x07metrics\x18\x04 \x01(\x0b\x32\'.google.ads.googleads.v4.common.Metrics\x12:\n\x08segments\x18\x66 \x01(\x0b\x32(.google.ads.googleads.v4.common.Segments\"\xb5\x01\n\x16MutateGoogleAdsRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12Q\n\x11mutate_operations\x18\x02 \x03(\x0b\x32\x31.google.ads.googleads.v4.services.MutateOperationB\x03\xe0\x41\x02\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\"\xab\x01\n\x17MutateGoogleAdsResponse\x12\x31\n\x15partial_failure_error\x18\x03 \x01(\x0b\x32\x12.google.rpc.Status\x12]\n\x1amutate_operation_responses\x18\x01 \x03(\x0b\x32\x39.google.ads.googleads.v4.services.MutateOperationResponse\"\x99\"\n\x0fMutateOperation\x12`\n\x1b\x61\x64_group_ad_label_operation\x18\x11 \x01(\x0b\x32\x39.google.ads.googleads.v4.services.AdGroupAdLabelOperationH\x00\x12U\n\x15\x61\x64_group_ad_operation\x18\x01 \x01(\x0b\x32\x34.google.ads.googleads.v4.services.AdGroupAdOperationH\x00\x12h\n\x1f\x61\x64_group_bid_modifier_operation\x18\x02 \x01(\x0b\x32=.google.ads.googleads.v4.services.AdGroupBidModifierOperationH\x00\x12n\n\"ad_group_criterion_label_operation\x18\x12 \x01(\x0b\x32@.google.ads.googleads.v4.services.AdGroupCriterionLabelOperationH\x00\x12\x63\n\x1c\x61\x64_group_criterion_operation\x18\x03 \x01(\x0b\x32;.google.ads.googleads.v4.services.AdGroupCriterionOperationH\x00\x12r\n$ad_group_extension_setting_operation\x18\x13 \x01(\x0b\x32\x42.google.ads.googleads.v4.services.AdGroupExtensionSettingOperationH\x00\x12Y\n\x17\x61\x64_group_feed_operation\x18\x14 \x01(\x0b\x32\x36.google.ads.googleads.v4.services.AdGroupFeedOperationH\x00\x12[\n\x18\x61\x64_group_label_operation\x18\x15 \x01(\x0b\x32\x37.google.ads.googleads.v4.services.AdGroupLabelOperationH\x00\x12P\n\x12\x61\x64_group_operation\x18\x05 \x01(\x0b\x32\x32.google.ads.googleads.v4.services.AdGroupOperationH\x00\x12\x45\n\x0c\x61\x64_operation\x18\x31 \x01(\x0b\x32-.google.ads.googleads.v4.services.AdOperationH\x00\x12X\n\x16\x61\x64_parameter_operation\x18\x16 \x01(\x0b\x32\x36.google.ads.googleads.v4.services.AdParameterOperationH\x00\x12K\n\x0f\x61sset_operation\x18\x17 \x01(\x0b\x32\x30.google.ads.googleads.v4.services.AssetOperationH\x00\x12`\n\x1a\x62idding_strategy_operation\x18\x06 \x01(\x0b\x32:.google.ads.googleads.v4.services.BiddingStrategyOperationH\x00\x12i\n\x1f\x63\x61mpaign_bid_modifier_operation\x18\x07 \x01(\x0b\x32>.google.ads.googleads.v4.services.CampaignBidModifierOperationH\x00\x12^\n\x19\x63\x61mpaign_budget_operation\x18\x08 \x01(\x0b\x32\x39.google.ads.googleads.v4.services.CampaignBudgetOperationH\x00\x12\x64\n\x1c\x63\x61mpaign_criterion_operation\x18\r \x01(\x0b\x32<.google.ads.googleads.v4.services.CampaignCriterionOperationH\x00\x12\\\n\x18\x63\x61mpaign_draft_operation\x18\x18 \x01(\x0b\x32\x38.google.ads.googleads.v4.services.CampaignDraftOperationH\x00\x12\x66\n\x1d\x63\x61mpaign_experiment_operation\x18\x19 \x01(\x0b\x32=.google.ads.googleads.v4.services.CampaignExperimentOperationH\x00\x12s\n$campaign_extension_setting_operation\x18\x1a \x01(\x0b\x32\x43.google.ads.googleads.v4.services.CampaignExtensionSettingOperationH\x00\x12Z\n\x17\x63\x61mpaign_feed_operation\x18\x1b \x01(\x0b\x32\x37.google.ads.googleads.v4.services.CampaignFeedOperationH\x00\x12\\\n\x18\x63\x61mpaign_label_operation\x18\x1c \x01(\x0b\x32\x38.google.ads.googleads.v4.services.CampaignLabelOperationH\x00\x12Q\n\x12\x63\x61mpaign_operation\x18\n \x01(\x0b\x32\x33.google.ads.googleads.v4.services.CampaignOperationH\x00\x12\x65\n\x1d\x63\x61mpaign_shared_set_operation\x18\x0b \x01(\x0b\x32<.google.ads.googleads.v4.services.CampaignSharedSetOperationH\x00\x12\x62\n\x1b\x63onversion_action_operation\x18\x0c \x01(\x0b\x32;.google.ads.googleads.v4.services.ConversionActionOperationH\x00\x12s\n$customer_extension_setting_operation\x18\x1e \x01(\x0b\x32\x43.google.ads.googleads.v4.services.CustomerExtensionSettingOperationH\x00\x12Z\n\x17\x63ustomer_feed_operation\x18\x1f \x01(\x0b\x32\x37.google.ads.googleads.v4.services.CustomerFeedOperationH\x00\x12\\\n\x18\x63ustomer_label_operation\x18 \x01(\x0b\x32\x38.google.ads.googleads.v4.services.CustomerLabelOperationH\x00\x12u\n%customer_negative_criterion_operation\x18\" \x01(\x0b\x32\x44.google.ads.googleads.v4.services.CustomerNegativeCriterionOperationH\x00\x12Q\n\x12\x63ustomer_operation\x18# \x01(\x0b\x32\x33.google.ads.googleads.v4.services.CustomerOperationH\x00\x12\x65\n\x1d\x65xtension_feed_item_operation\x18$ \x01(\x0b\x32<.google.ads.googleads.v4.services.ExtensionFeedItemOperationH\x00\x12R\n\x13\x66\x65\x65\x64_item_operation\x18% \x01(\x0b\x32\x33.google.ads.googleads.v4.services.FeedItemOperationH\x00\x12_\n\x1a\x66\x65\x65\x64_item_target_operation\x18& \x01(\x0b\x32\x39.google.ads.googleads.v4.services.FeedItemTargetOperationH\x00\x12X\n\x16\x66\x65\x65\x64_mapping_operation\x18\' \x01(\x0b\x32\x36.google.ads.googleads.v4.services.FeedMappingOperationH\x00\x12I\n\x0e\x66\x65\x65\x64_operation\x18( \x01(\x0b\x32/.google.ads.googleads.v4.services.FeedOperationH\x00\x12h\n\x1fkeyword_plan_ad_group_operation\x18, \x01(\x0b\x32=.google.ads.googleads.v4.services.KeywordPlanAdGroupOperationH\x00\x12w\n\'keyword_plan_ad_group_keyword_operation\x18\x32 \x01(\x0b\x32\x44.google.ads.googleads.v4.services.KeywordPlanAdGroupKeywordOperationH\x00\x12x\n\'keyword_plan_campaign_keyword_operation\x18\x33 \x01(\x0b\x32\x45.google.ads.googleads.v4.services.KeywordPlanCampaignKeywordOperationH\x00\x12i\n\x1fkeyword_plan_campaign_operation\x18- \x01(\x0b\x32>.google.ads.googleads.v4.services.KeywordPlanCampaignOperationH\x00\x12X\n\x16keyword_plan_operation\x18\x30 \x01(\x0b\x32\x36.google.ads.googleads.v4.services.KeywordPlanOperationH\x00\x12K\n\x0flabel_operation\x18) \x01(\x0b\x32\x30.google.ads.googleads.v4.services.LabelOperationH\x00\x12T\n\x14media_file_operation\x18* \x01(\x0b\x32\x34.google.ads.googleads.v4.services.MediaFileOperationH\x00\x12\x64\n\x1cremarketing_action_operation\x18+ \x01(\x0b\x32<.google.ads.googleads.v4.services.RemarketingActionOperationH\x00\x12`\n\x1ashared_criterion_operation\x18\x0e \x01(\x0b\x32:.google.ads.googleads.v4.services.SharedCriterionOperationH\x00\x12T\n\x14shared_set_operation\x18\x0f \x01(\x0b\x32\x34.google.ads.googleads.v4.services.SharedSetOperationH\x00\x12R\n\x13user_list_operation\x18\x10 \x01(\x0b\x32\x33.google.ads.googleads.v4.services.UserListOperationH\x00\x42\x0b\n\toperation\"\xa0\"\n\x17MutateOperationResponse\x12`\n\x18\x61\x64_group_ad_label_result\x18\x11 \x01(\x0b\x32<.google.ads.googleads.v4.services.MutateAdGroupAdLabelResultH\x00\x12U\n\x12\x61\x64_group_ad_result\x18\x01 \x01(\x0b\x32\x37.google.ads.googleads.v4.services.MutateAdGroupAdResultH\x00\x12h\n\x1c\x61\x64_group_bid_modifier_result\x18\x02 \x01(\x0b\x32@.google.ads.googleads.v4.services.MutateAdGroupBidModifierResultH\x00\x12n\n\x1f\x61\x64_group_criterion_label_result\x18\x12 \x01(\x0b\x32\x43.google.ads.googleads.v4.services.MutateAdGroupCriterionLabelResultH\x00\x12\x63\n\x19\x61\x64_group_criterion_result\x18\x03 \x01(\x0b\x32>.google.ads.googleads.v4.services.MutateAdGroupCriterionResultH\x00\x12r\n!ad_group_extension_setting_result\x18\x13 \x01(\x0b\x32\x45.google.ads.googleads.v4.services.MutateAdGroupExtensionSettingResultH\x00\x12Y\n\x14\x61\x64_group_feed_result\x18\x14 \x01(\x0b\x32\x39.google.ads.googleads.v4.services.MutateAdGroupFeedResultH\x00\x12[\n\x15\x61\x64_group_label_result\x18\x15 \x01(\x0b\x32:.google.ads.googleads.v4.services.MutateAdGroupLabelResultH\x00\x12P\n\x0f\x61\x64_group_result\x18\x05 \x01(\x0b\x32\x35.google.ads.googleads.v4.services.MutateAdGroupResultH\x00\x12X\n\x13\x61\x64_parameter_result\x18\x16 \x01(\x0b\x32\x39.google.ads.googleads.v4.services.MutateAdParameterResultH\x00\x12\x45\n\tad_result\x18\x31 \x01(\x0b\x32\x30.google.ads.googleads.v4.services.MutateAdResultH\x00\x12K\n\x0c\x61sset_result\x18\x17 \x01(\x0b\x32\x33.google.ads.googleads.v4.services.MutateAssetResultH\x00\x12`\n\x17\x62idding_strategy_result\x18\x06 \x01(\x0b\x32=.google.ads.googleads.v4.services.MutateBiddingStrategyResultH\x00\x12i\n\x1c\x63\x61mpaign_bid_modifier_result\x18\x07 \x01(\x0b\x32\x41.google.ads.googleads.v4.services.MutateCampaignBidModifierResultH\x00\x12^\n\x16\x63\x61mpaign_budget_result\x18\x08 \x01(\x0b\x32<.google.ads.googleads.v4.services.MutateCampaignBudgetResultH\x00\x12\x64\n\x19\x63\x61mpaign_criterion_result\x18\r \x01(\x0b\x32?.google.ads.googleads.v4.services.MutateCampaignCriterionResultH\x00\x12\\\n\x15\x63\x61mpaign_draft_result\x18\x18 \x01(\x0b\x32;.google.ads.googleads.v4.services.MutateCampaignDraftResultH\x00\x12\x66\n\x1a\x63\x61mpaign_experiment_result\x18\x19 \x01(\x0b\x32@.google.ads.googleads.v4.services.MutateCampaignExperimentResultH\x00\x12s\n!campaign_extension_setting_result\x18\x1a \x01(\x0b\x32\x46.google.ads.googleads.v4.services.MutateCampaignExtensionSettingResultH\x00\x12Z\n\x14\x63\x61mpaign_feed_result\x18\x1b \x01(\x0b\x32:.google.ads.googleads.v4.services.MutateCampaignFeedResultH\x00\x12\\\n\x15\x63\x61mpaign_label_result\x18\x1c \x01(\x0b\x32;.google.ads.googleads.v4.services.MutateCampaignLabelResultH\x00\x12Q\n\x0f\x63\x61mpaign_result\x18\n \x01(\x0b\x32\x36.google.ads.googleads.v4.services.MutateCampaignResultH\x00\x12\x65\n\x1a\x63\x61mpaign_shared_set_result\x18\x0b \x01(\x0b\x32?.google.ads.googleads.v4.services.MutateCampaignSharedSetResultH\x00\x12\x62\n\x18\x63onversion_action_result\x18\x0c \x01(\x0b\x32>.google.ads.googleads.v4.services.MutateConversionActionResultH\x00\x12s\n!customer_extension_setting_result\x18\x1e \x01(\x0b\x32\x46.google.ads.googleads.v4.services.MutateCustomerExtensionSettingResultH\x00\x12Z\n\x14\x63ustomer_feed_result\x18\x1f \x01(\x0b\x32:.google.ads.googleads.v4.services.MutateCustomerFeedResultH\x00\x12\\\n\x15\x63ustomer_label_result\x18 \x01(\x0b\x32;.google.ads.googleads.v4.services.MutateCustomerLabelResultH\x00\x12t\n\"customer_negative_criterion_result\x18\" \x01(\x0b\x32\x46.google.ads.googleads.v4.services.MutateCustomerNegativeCriteriaResultH\x00\x12Q\n\x0f\x63ustomer_result\x18# \x01(\x0b\x32\x36.google.ads.googleads.v4.services.MutateCustomerResultH\x00\x12\x65\n\x1a\x65xtension_feed_item_result\x18$ \x01(\x0b\x32?.google.ads.googleads.v4.services.MutateExtensionFeedItemResultH\x00\x12R\n\x10\x66\x65\x65\x64_item_result\x18% \x01(\x0b\x32\x36.google.ads.googleads.v4.services.MutateFeedItemResultH\x00\x12_\n\x17\x66\x65\x65\x64_item_target_result\x18& \x01(\x0b\x32<.google.ads.googleads.v4.services.MutateFeedItemTargetResultH\x00\x12X\n\x13\x66\x65\x65\x64_mapping_result\x18\' \x01(\x0b\x32\x39.google.ads.googleads.v4.services.MutateFeedMappingResultH\x00\x12I\n\x0b\x66\x65\x65\x64_result\x18( \x01(\x0b\x32\x32.google.ads.googleads.v4.services.MutateFeedResultH\x00\x12h\n\x1ckeyword_plan_ad_group_result\x18, \x01(\x0b\x32@.google.ads.googleads.v4.services.MutateKeywordPlanAdGroupResultH\x00\x12i\n\x1ckeyword_plan_campaign_result\x18- \x01(\x0b\x32\x41.google.ads.googleads.v4.services.MutateKeywordPlanCampaignResultH\x00\x12w\n$keyword_plan_ad_group_keyword_result\x18\x32 \x01(\x0b\x32G.google.ads.googleads.v4.services.MutateKeywordPlanAdGroupKeywordResultH\x00\x12x\n$keyword_plan_campaign_keyword_result\x18\x33 \x01(\x0b\x32H.google.ads.googleads.v4.services.MutateKeywordPlanCampaignKeywordResultH\x00\x12Y\n\x13keyword_plan_result\x18\x30 \x01(\x0b\x32:.google.ads.googleads.v4.services.MutateKeywordPlansResultH\x00\x12K\n\x0clabel_result\x18) \x01(\x0b\x32\x33.google.ads.googleads.v4.services.MutateLabelResultH\x00\x12T\n\x11media_file_result\x18* \x01(\x0b\x32\x37.google.ads.googleads.v4.services.MutateMediaFileResultH\x00\x12\x64\n\x19remarketing_action_result\x18+ \x01(\x0b\x32?.google.ads.googleads.v4.services.MutateRemarketingActionResultH\x00\x12`\n\x17shared_criterion_result\x18\x0e \x01(\x0b\x32=.google.ads.googleads.v4.services.MutateSharedCriterionResultH\x00\x12T\n\x11shared_set_result\x18\x0f \x01(\x0b\x32\x37.google.ads.googleads.v4.services.MutateSharedSetResultH\x00\x12R\n\x10user_list_result\x18\x10 \x01(\x0b\x32\x36.google.ads.googleads.v4.services.MutateUserListResultH\x00\x42\n\n\x08response2\xc2\x05\n\x10GoogleAdsService\x12\xcc\x01\n\x06Search\x12\x38.google.ads.googleads.v4.services.SearchGoogleAdsRequest\x1a\x39.google.ads.googleads.v4.services.SearchGoogleAdsResponse\"M\x82\xd3\xe4\x93\x02\x33\"./v4/customers/{customer_id=*}/googleAds:search:\x01*\xda\x41\x11\x63ustomer_id,query\x12\xe6\x01\n\x0cSearchStream\x12>.google.ads.googleads.v4.services.SearchGoogleAdsStreamRequest\x1a?.google.ads.googleads.v4.services.SearchGoogleAdsStreamResponse\"S\x82\xd3\xe4\x93\x02\x39\"4/v4/customers/{customer_id=*}/googleAds:searchStream:\x01*\xda\x41\x11\x63ustomer_id,query0\x01\x12\xd8\x01\n\x06Mutate\x12\x38.google.ads.googleads.v4.services.MutateGoogleAdsRequest\x1a\x39.google.ads.googleads.v4.services.MutateGoogleAdsResponse\"Y\x82\xd3\xe4\x93\x02\x33\"./v4/customers/{customer_id=*}/googleAds:mutate:\x01*\xda\x41\x1d\x63ustomer_id,mutate_operations\x1a\x1b\xca\x41\x18googleads.googleapis.comB\xfc\x01\n$com.google.ads.googleads.v4.servicesB\x15GoogleAdsServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V4.Services\xca\x02 Google\\Ads\\GoogleAds\\V4\\Services\xea\x02$Google::Ads::GoogleAds::V4::Servicesb\x06proto3') + , + dependencies=[google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_metrics__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_segments__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_summary__row__setting__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_account__budget__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_account__budget__proposal__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_account__link__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_ad__group__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_ad__group__ad__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_ad__group__ad__asset__view__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_ad__group__ad__label__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_ad__group__audience__view__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_ad__group__bid__modifier__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_ad__group__criterion__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_ad__group__criterion__label__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_ad__group__criterion__simulation__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_ad__group__extension__setting__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_ad__group__feed__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_ad__group__label__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_ad__group__simulation__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_ad__parameter__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_ad__schedule__view__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_age__range__view__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_asset__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_batch__job__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_bidding__strategy__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_billing__setup__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_campaign__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_campaign__audience__view__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_campaign__bid__modifier__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_campaign__budget__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_campaign__criterion__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_campaign__criterion__simulation__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_campaign__draft__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_campaign__experiment__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_campaign__extension__setting__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_campaign__feed__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_campaign__label__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_campaign__shared__set__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_carrier__constant__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_change__status__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_click__view__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_conversion__action__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_currency__constant__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_custom__interest__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_customer__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_customer__client__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_customer__client__link__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_customer__extension__setting__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_customer__feed__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_customer__label__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_customer__manager__link__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_customer__negative__criterion__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_detail__placement__view__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_display__keyword__view__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_distance__view__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_domain__category__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_dynamic__search__ads__search__term__view__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_expanded__landing__page__view__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_extension__feed__item__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_feed__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_feed__item__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_feed__item__target__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_feed__mapping__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_feed__placeholder__view__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_gender__view__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_geo__target__constant__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_geographic__view__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_group__placement__view__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_hotel__group__view__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_hotel__performance__view__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_income__range__view__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_keyword__plan__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_keyword__plan__ad__group__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_keyword__plan__ad__group__keyword__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_keyword__plan__campaign__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_keyword__plan__campaign__keyword__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_keyword__view__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_label__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_landing__page__view__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_language__constant__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_location__view__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_managed__placement__view__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_media__file__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_mobile__app__category__constant__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_mobile__device__constant__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_offline__user__data__job__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_operating__system__version__constant__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_paid__organic__search__term__view__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_parental__status__view__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_product__bidding__category__constant__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_product__group__view__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_recommendation__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_remarketing__action__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_search__term__view__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_shared__criterion__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_shared__set__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_shopping__performance__view__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_third__party__app__analytics__link__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_topic__constant__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_topic__view__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_user__interest__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_user__list__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_user__location__view__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_video__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_ad__group__ad__label__service__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_ad__group__ad__service__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_ad__group__bid__modifier__service__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_ad__group__criterion__label__service__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_ad__group__criterion__service__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_ad__group__extension__setting__service__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_ad__group__feed__service__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_ad__group__label__service__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_ad__group__service__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_ad__parameter__service__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_ad__service__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_asset__service__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_bidding__strategy__service__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_campaign__bid__modifier__service__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_campaign__budget__service__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_campaign__criterion__service__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_campaign__draft__service__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_campaign__experiment__service__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_campaign__extension__setting__service__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_campaign__feed__service__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_campaign__label__service__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_campaign__service__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_campaign__shared__set__service__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_conversion__action__service__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_customer__extension__setting__service__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_customer__feed__service__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_customer__label__service__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_customer__negative__criterion__service__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_customer__service__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_extension__feed__item__service__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_feed__item__service__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_feed__item__target__service__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_feed__mapping__service__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_feed__service__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_keyword__plan__ad__group__keyword__service__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_keyword__plan__ad__group__service__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_keyword__plan__campaign__keyword__service__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_keyword__plan__campaign__service__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_keyword__plan__service__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_label__service__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_media__file__service__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_remarketing__action__service__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_shared__criterion__service__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_shared__set__service__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_user__list__service__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_api_dot_client__pb2.DESCRIPTOR,google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_protobuf_dot_field__mask__pb2.DESCRIPTOR,google_dot_rpc_dot_status__pb2.DESCRIPTOR,]) + + + + +_SEARCHGOOGLEADSREQUEST = _descriptor.Descriptor( + name='SearchGoogleAdsRequest', + full_name='google.ads.googleads.v4.services.SearchGoogleAdsRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='customer_id', full_name='google.ads.googleads.v4.services.SearchGoogleAdsRequest.customer_id', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='query', full_name='google.ads.googleads.v4.services.SearchGoogleAdsRequest.query', index=1, + number=2, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='page_token', full_name='google.ads.googleads.v4.services.SearchGoogleAdsRequest.page_token', index=2, + number=3, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='page_size', full_name='google.ads.googleads.v4.services.SearchGoogleAdsRequest.page_size', index=3, + number=4, type=5, cpp_type=1, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='validate_only', full_name='google.ads.googleads.v4.services.SearchGoogleAdsRequest.validate_only', index=4, + number=5, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='return_total_results_count', full_name='google.ads.googleads.v4.services.SearchGoogleAdsRequest.return_total_results_count', index=5, + number=7, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='summary_row_setting', full_name='google.ads.googleads.v4.services.SearchGoogleAdsRequest.summary_row_setting', index=6, + number=8, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=10208, + serialized_end=10477, +) + + +_SEARCHGOOGLEADSRESPONSE = _descriptor.Descriptor( + name='SearchGoogleAdsResponse', + full_name='google.ads.googleads.v4.services.SearchGoogleAdsResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='results', full_name='google.ads.googleads.v4.services.SearchGoogleAdsResponse.results', index=0, + number=1, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='next_page_token', full_name='google.ads.googleads.v4.services.SearchGoogleAdsResponse.next_page_token', index=1, + number=2, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='total_results_count', full_name='google.ads.googleads.v4.services.SearchGoogleAdsResponse.total_results_count', index=2, + number=3, type=3, cpp_type=2, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='field_mask', full_name='google.ads.googleads.v4.services.SearchGoogleAdsResponse.field_mask', index=3, + number=5, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='summary_row', full_name='google.ads.googleads.v4.services.SearchGoogleAdsResponse.summary_row', index=4, + number=6, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=10480, + serialized_end=10741, +) + + +_SEARCHGOOGLEADSSTREAMREQUEST = _descriptor.Descriptor( + name='SearchGoogleAdsStreamRequest', + full_name='google.ads.googleads.v4.services.SearchGoogleAdsStreamRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='customer_id', full_name='google.ads.googleads.v4.services.SearchGoogleAdsStreamRequest.customer_id', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='query', full_name='google.ads.googleads.v4.services.SearchGoogleAdsStreamRequest.query', index=1, + number=2, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='summary_row_setting', full_name='google.ads.googleads.v4.services.SearchGoogleAdsStreamRequest.summary_row_setting', index=2, + number=3, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=10744, + serialized_end=10921, +) + + +_SEARCHGOOGLEADSSTREAMRESPONSE = _descriptor.Descriptor( + name='SearchGoogleAdsStreamResponse', + full_name='google.ads.googleads.v4.services.SearchGoogleAdsStreamResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='results', full_name='google.ads.googleads.v4.services.SearchGoogleAdsStreamResponse.results', index=0, + number=1, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='field_mask', full_name='google.ads.googleads.v4.services.SearchGoogleAdsStreamResponse.field_mask', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='summary_row', full_name='google.ads.googleads.v4.services.SearchGoogleAdsStreamResponse.summary_row', index=2, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=10924, + serialized_end=11137, +) + + +_GOOGLEADSROW = _descriptor.Descriptor( + name='GoogleAdsRow', + full_name='google.ads.googleads.v4.services.GoogleAdsRow', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='account_budget', full_name='google.ads.googleads.v4.services.GoogleAdsRow.account_budget', index=0, + number=42, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='account_budget_proposal', full_name='google.ads.googleads.v4.services.GoogleAdsRow.account_budget_proposal', index=1, + number=43, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='account_link', full_name='google.ads.googleads.v4.services.GoogleAdsRow.account_link', index=2, + number=143, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='ad_group', full_name='google.ads.googleads.v4.services.GoogleAdsRow.ad_group', index=3, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='ad_group_ad', full_name='google.ads.googleads.v4.services.GoogleAdsRow.ad_group_ad', index=4, + number=16, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='ad_group_ad_asset_view', full_name='google.ads.googleads.v4.services.GoogleAdsRow.ad_group_ad_asset_view', index=5, + number=131, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='ad_group_ad_label', full_name='google.ads.googleads.v4.services.GoogleAdsRow.ad_group_ad_label', index=6, + number=120, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='ad_group_audience_view', full_name='google.ads.googleads.v4.services.GoogleAdsRow.ad_group_audience_view', index=7, + number=57, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='ad_group_bid_modifier', full_name='google.ads.googleads.v4.services.GoogleAdsRow.ad_group_bid_modifier', index=8, + number=24, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='ad_group_criterion', full_name='google.ads.googleads.v4.services.GoogleAdsRow.ad_group_criterion', index=9, + number=17, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='ad_group_criterion_label', full_name='google.ads.googleads.v4.services.GoogleAdsRow.ad_group_criterion_label', index=10, + number=121, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='ad_group_criterion_simulation', full_name='google.ads.googleads.v4.services.GoogleAdsRow.ad_group_criterion_simulation', index=11, + number=110, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='ad_group_extension_setting', full_name='google.ads.googleads.v4.services.GoogleAdsRow.ad_group_extension_setting', index=12, + number=112, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='ad_group_feed', full_name='google.ads.googleads.v4.services.GoogleAdsRow.ad_group_feed', index=13, + number=67, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='ad_group_label', full_name='google.ads.googleads.v4.services.GoogleAdsRow.ad_group_label', index=14, + number=115, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='ad_group_simulation', full_name='google.ads.googleads.v4.services.GoogleAdsRow.ad_group_simulation', index=15, + number=107, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='ad_parameter', full_name='google.ads.googleads.v4.services.GoogleAdsRow.ad_parameter', index=16, + number=130, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='age_range_view', full_name='google.ads.googleads.v4.services.GoogleAdsRow.age_range_view', index=17, + number=48, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='ad_schedule_view', full_name='google.ads.googleads.v4.services.GoogleAdsRow.ad_schedule_view', index=18, + number=89, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='domain_category', full_name='google.ads.googleads.v4.services.GoogleAdsRow.domain_category', index=19, + number=91, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='asset', full_name='google.ads.googleads.v4.services.GoogleAdsRow.asset', index=20, + number=105, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='batch_job', full_name='google.ads.googleads.v4.services.GoogleAdsRow.batch_job', index=21, + number=139, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='bidding_strategy', full_name='google.ads.googleads.v4.services.GoogleAdsRow.bidding_strategy', index=22, + number=18, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='billing_setup', full_name='google.ads.googleads.v4.services.GoogleAdsRow.billing_setup', index=23, + number=41, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='campaign_budget', full_name='google.ads.googleads.v4.services.GoogleAdsRow.campaign_budget', index=24, + number=19, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='campaign', full_name='google.ads.googleads.v4.services.GoogleAdsRow.campaign', index=25, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='campaign_audience_view', full_name='google.ads.googleads.v4.services.GoogleAdsRow.campaign_audience_view', index=26, + number=69, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='campaign_bid_modifier', full_name='google.ads.googleads.v4.services.GoogleAdsRow.campaign_bid_modifier', index=27, + number=26, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='campaign_criterion', full_name='google.ads.googleads.v4.services.GoogleAdsRow.campaign_criterion', index=28, + number=20, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='campaign_criterion_simulation', full_name='google.ads.googleads.v4.services.GoogleAdsRow.campaign_criterion_simulation', index=29, + number=111, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='campaign_draft', full_name='google.ads.googleads.v4.services.GoogleAdsRow.campaign_draft', index=30, + number=49, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='campaign_experiment', full_name='google.ads.googleads.v4.services.GoogleAdsRow.campaign_experiment', index=31, + number=84, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='campaign_extension_setting', full_name='google.ads.googleads.v4.services.GoogleAdsRow.campaign_extension_setting', index=32, + number=113, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='campaign_feed', full_name='google.ads.googleads.v4.services.GoogleAdsRow.campaign_feed', index=33, + number=63, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='campaign_label', full_name='google.ads.googleads.v4.services.GoogleAdsRow.campaign_label', index=34, + number=108, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='campaign_shared_set', full_name='google.ads.googleads.v4.services.GoogleAdsRow.campaign_shared_set', index=35, + number=30, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='carrier_constant', full_name='google.ads.googleads.v4.services.GoogleAdsRow.carrier_constant', index=36, + number=66, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='change_status', full_name='google.ads.googleads.v4.services.GoogleAdsRow.change_status', index=37, + number=37, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='conversion_action', full_name='google.ads.googleads.v4.services.GoogleAdsRow.conversion_action', index=38, + number=103, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='click_view', full_name='google.ads.googleads.v4.services.GoogleAdsRow.click_view', index=39, + number=122, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='currency_constant', full_name='google.ads.googleads.v4.services.GoogleAdsRow.currency_constant', index=40, + number=134, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='custom_interest', full_name='google.ads.googleads.v4.services.GoogleAdsRow.custom_interest', index=41, + number=104, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='customer', full_name='google.ads.googleads.v4.services.GoogleAdsRow.customer', index=42, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='customer_manager_link', full_name='google.ads.googleads.v4.services.GoogleAdsRow.customer_manager_link', index=43, + number=61, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='customer_client_link', full_name='google.ads.googleads.v4.services.GoogleAdsRow.customer_client_link', index=44, + number=62, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='customer_client', full_name='google.ads.googleads.v4.services.GoogleAdsRow.customer_client', index=45, + number=70, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='customer_extension_setting', full_name='google.ads.googleads.v4.services.GoogleAdsRow.customer_extension_setting', index=46, + number=114, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='customer_feed', full_name='google.ads.googleads.v4.services.GoogleAdsRow.customer_feed', index=47, + number=64, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='customer_label', full_name='google.ads.googleads.v4.services.GoogleAdsRow.customer_label', index=48, + number=124, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='customer_negative_criterion', full_name='google.ads.googleads.v4.services.GoogleAdsRow.customer_negative_criterion', index=49, + number=88, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='detail_placement_view', full_name='google.ads.googleads.v4.services.GoogleAdsRow.detail_placement_view', index=50, + number=118, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='display_keyword_view', full_name='google.ads.googleads.v4.services.GoogleAdsRow.display_keyword_view', index=51, + number=47, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='distance_view', full_name='google.ads.googleads.v4.services.GoogleAdsRow.distance_view', index=52, + number=132, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='dynamic_search_ads_search_term_view', full_name='google.ads.googleads.v4.services.GoogleAdsRow.dynamic_search_ads_search_term_view', index=53, + number=106, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='expanded_landing_page_view', full_name='google.ads.googleads.v4.services.GoogleAdsRow.expanded_landing_page_view', index=54, + number=128, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='extension_feed_item', full_name='google.ads.googleads.v4.services.GoogleAdsRow.extension_feed_item', index=55, + number=85, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='feed', full_name='google.ads.googleads.v4.services.GoogleAdsRow.feed', index=56, + number=46, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='feed_item', full_name='google.ads.googleads.v4.services.GoogleAdsRow.feed_item', index=57, + number=50, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='feed_item_target', full_name='google.ads.googleads.v4.services.GoogleAdsRow.feed_item_target', index=58, + number=116, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='feed_mapping', full_name='google.ads.googleads.v4.services.GoogleAdsRow.feed_mapping', index=59, + number=58, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='feed_placeholder_view', full_name='google.ads.googleads.v4.services.GoogleAdsRow.feed_placeholder_view', index=60, + number=97, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='gender_view', full_name='google.ads.googleads.v4.services.GoogleAdsRow.gender_view', index=61, + number=40, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='geo_target_constant', full_name='google.ads.googleads.v4.services.GoogleAdsRow.geo_target_constant', index=62, + number=23, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='geographic_view', full_name='google.ads.googleads.v4.services.GoogleAdsRow.geographic_view', index=63, + number=125, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='group_placement_view', full_name='google.ads.googleads.v4.services.GoogleAdsRow.group_placement_view', index=64, + number=119, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='hotel_group_view', full_name='google.ads.googleads.v4.services.GoogleAdsRow.hotel_group_view', index=65, + number=51, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='hotel_performance_view', full_name='google.ads.googleads.v4.services.GoogleAdsRow.hotel_performance_view', index=66, + number=71, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='income_range_view', full_name='google.ads.googleads.v4.services.GoogleAdsRow.income_range_view', index=67, + number=138, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='keyword_view', full_name='google.ads.googleads.v4.services.GoogleAdsRow.keyword_view', index=68, + number=21, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='keyword_plan', full_name='google.ads.googleads.v4.services.GoogleAdsRow.keyword_plan', index=69, + number=32, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='keyword_plan_campaign', full_name='google.ads.googleads.v4.services.GoogleAdsRow.keyword_plan_campaign', index=70, + number=33, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='keyword_plan_campaign_keyword', full_name='google.ads.googleads.v4.services.GoogleAdsRow.keyword_plan_campaign_keyword', index=71, + number=140, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='keyword_plan_ad_group', full_name='google.ads.googleads.v4.services.GoogleAdsRow.keyword_plan_ad_group', index=72, + number=35, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='keyword_plan_ad_group_keyword', full_name='google.ads.googleads.v4.services.GoogleAdsRow.keyword_plan_ad_group_keyword', index=73, + number=141, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='label', full_name='google.ads.googleads.v4.services.GoogleAdsRow.label', index=74, + number=52, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='landing_page_view', full_name='google.ads.googleads.v4.services.GoogleAdsRow.landing_page_view', index=75, + number=126, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='language_constant', full_name='google.ads.googleads.v4.services.GoogleAdsRow.language_constant', index=76, + number=55, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='location_view', full_name='google.ads.googleads.v4.services.GoogleAdsRow.location_view', index=77, + number=123, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='managed_placement_view', full_name='google.ads.googleads.v4.services.GoogleAdsRow.managed_placement_view', index=78, + number=53, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='media_file', full_name='google.ads.googleads.v4.services.GoogleAdsRow.media_file', index=79, + number=90, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='mobile_app_category_constant', full_name='google.ads.googleads.v4.services.GoogleAdsRow.mobile_app_category_constant', index=80, + number=87, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='mobile_device_constant', full_name='google.ads.googleads.v4.services.GoogleAdsRow.mobile_device_constant', index=81, + number=98, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='offline_user_data_job', full_name='google.ads.googleads.v4.services.GoogleAdsRow.offline_user_data_job', index=82, + number=137, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='operating_system_version_constant', full_name='google.ads.googleads.v4.services.GoogleAdsRow.operating_system_version_constant', index=83, + number=86, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='paid_organic_search_term_view', full_name='google.ads.googleads.v4.services.GoogleAdsRow.paid_organic_search_term_view', index=84, + number=129, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='parental_status_view', full_name='google.ads.googleads.v4.services.GoogleAdsRow.parental_status_view', index=85, + number=45, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='product_bidding_category_constant', full_name='google.ads.googleads.v4.services.GoogleAdsRow.product_bidding_category_constant', index=86, + number=109, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='product_group_view', full_name='google.ads.googleads.v4.services.GoogleAdsRow.product_group_view', index=87, + number=54, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='recommendation', full_name='google.ads.googleads.v4.services.GoogleAdsRow.recommendation', index=88, + number=22, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='search_term_view', full_name='google.ads.googleads.v4.services.GoogleAdsRow.search_term_view', index=89, + number=68, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='shared_criterion', full_name='google.ads.googleads.v4.services.GoogleAdsRow.shared_criterion', index=90, + number=29, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='shared_set', full_name='google.ads.googleads.v4.services.GoogleAdsRow.shared_set', index=91, + number=27, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='shopping_performance_view', full_name='google.ads.googleads.v4.services.GoogleAdsRow.shopping_performance_view', index=92, + number=117, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='third_party_app_analytics_link', full_name='google.ads.googleads.v4.services.GoogleAdsRow.third_party_app_analytics_link', index=93, + number=144, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='topic_view', full_name='google.ads.googleads.v4.services.GoogleAdsRow.topic_view', index=94, + number=44, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='user_interest', full_name='google.ads.googleads.v4.services.GoogleAdsRow.user_interest', index=95, + number=59, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='user_list', full_name='google.ads.googleads.v4.services.GoogleAdsRow.user_list', index=96, + number=38, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='user_location_view', full_name='google.ads.googleads.v4.services.GoogleAdsRow.user_location_view', index=97, + number=135, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='remarketing_action', full_name='google.ads.googleads.v4.services.GoogleAdsRow.remarketing_action', index=98, + number=60, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='topic_constant', full_name='google.ads.googleads.v4.services.GoogleAdsRow.topic_constant', index=99, + number=31, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='video', full_name='google.ads.googleads.v4.services.GoogleAdsRow.video', index=100, + number=39, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='metrics', full_name='google.ads.googleads.v4.services.GoogleAdsRow.metrics', index=101, + number=4, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='segments', full_name='google.ads.googleads.v4.services.GoogleAdsRow.segments', index=102, + number=102, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=11140, + serialized_end=19399, +) + + +_MUTATEGOOGLEADSREQUEST = _descriptor.Descriptor( + name='MutateGoogleAdsRequest', + full_name='google.ads.googleads.v4.services.MutateGoogleAdsRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='customer_id', full_name='google.ads.googleads.v4.services.MutateGoogleAdsRequest.customer_id', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='mutate_operations', full_name='google.ads.googleads.v4.services.MutateGoogleAdsRequest.mutate_operations', index=1, + number=2, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='partial_failure', full_name='google.ads.googleads.v4.services.MutateGoogleAdsRequest.partial_failure', index=2, + number=3, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='validate_only', full_name='google.ads.googleads.v4.services.MutateGoogleAdsRequest.validate_only', index=3, + number=4, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=19402, + serialized_end=19583, +) + + +_MUTATEGOOGLEADSRESPONSE = _descriptor.Descriptor( + name='MutateGoogleAdsResponse', + full_name='google.ads.googleads.v4.services.MutateGoogleAdsResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='partial_failure_error', full_name='google.ads.googleads.v4.services.MutateGoogleAdsResponse.partial_failure_error', index=0, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='mutate_operation_responses', full_name='google.ads.googleads.v4.services.MutateGoogleAdsResponse.mutate_operation_responses', index=1, + number=1, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=19586, + serialized_end=19757, +) + + +_MUTATEOPERATION = _descriptor.Descriptor( + name='MutateOperation', + full_name='google.ads.googleads.v4.services.MutateOperation', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='ad_group_ad_label_operation', full_name='google.ads.googleads.v4.services.MutateOperation.ad_group_ad_label_operation', index=0, + number=17, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='ad_group_ad_operation', full_name='google.ads.googleads.v4.services.MutateOperation.ad_group_ad_operation', index=1, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='ad_group_bid_modifier_operation', full_name='google.ads.googleads.v4.services.MutateOperation.ad_group_bid_modifier_operation', index=2, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='ad_group_criterion_label_operation', full_name='google.ads.googleads.v4.services.MutateOperation.ad_group_criterion_label_operation', index=3, + number=18, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='ad_group_criterion_operation', full_name='google.ads.googleads.v4.services.MutateOperation.ad_group_criterion_operation', index=4, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='ad_group_extension_setting_operation', full_name='google.ads.googleads.v4.services.MutateOperation.ad_group_extension_setting_operation', index=5, + number=19, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='ad_group_feed_operation', full_name='google.ads.googleads.v4.services.MutateOperation.ad_group_feed_operation', index=6, + number=20, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='ad_group_label_operation', full_name='google.ads.googleads.v4.services.MutateOperation.ad_group_label_operation', index=7, + number=21, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='ad_group_operation', full_name='google.ads.googleads.v4.services.MutateOperation.ad_group_operation', index=8, + number=5, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='ad_operation', full_name='google.ads.googleads.v4.services.MutateOperation.ad_operation', index=9, + number=49, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='ad_parameter_operation', full_name='google.ads.googleads.v4.services.MutateOperation.ad_parameter_operation', index=10, + number=22, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='asset_operation', full_name='google.ads.googleads.v4.services.MutateOperation.asset_operation', index=11, + number=23, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='bidding_strategy_operation', full_name='google.ads.googleads.v4.services.MutateOperation.bidding_strategy_operation', index=12, + number=6, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='campaign_bid_modifier_operation', full_name='google.ads.googleads.v4.services.MutateOperation.campaign_bid_modifier_operation', index=13, + number=7, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='campaign_budget_operation', full_name='google.ads.googleads.v4.services.MutateOperation.campaign_budget_operation', index=14, + number=8, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='campaign_criterion_operation', full_name='google.ads.googleads.v4.services.MutateOperation.campaign_criterion_operation', index=15, + number=13, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='campaign_draft_operation', full_name='google.ads.googleads.v4.services.MutateOperation.campaign_draft_operation', index=16, + number=24, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='campaign_experiment_operation', full_name='google.ads.googleads.v4.services.MutateOperation.campaign_experiment_operation', index=17, + number=25, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='campaign_extension_setting_operation', full_name='google.ads.googleads.v4.services.MutateOperation.campaign_extension_setting_operation', index=18, + number=26, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='campaign_feed_operation', full_name='google.ads.googleads.v4.services.MutateOperation.campaign_feed_operation', index=19, + number=27, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='campaign_label_operation', full_name='google.ads.googleads.v4.services.MutateOperation.campaign_label_operation', index=20, + number=28, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='campaign_operation', full_name='google.ads.googleads.v4.services.MutateOperation.campaign_operation', index=21, + number=10, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='campaign_shared_set_operation', full_name='google.ads.googleads.v4.services.MutateOperation.campaign_shared_set_operation', index=22, + number=11, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='conversion_action_operation', full_name='google.ads.googleads.v4.services.MutateOperation.conversion_action_operation', index=23, + number=12, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='customer_extension_setting_operation', full_name='google.ads.googleads.v4.services.MutateOperation.customer_extension_setting_operation', index=24, + number=30, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='customer_feed_operation', full_name='google.ads.googleads.v4.services.MutateOperation.customer_feed_operation', index=25, + number=31, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='customer_label_operation', full_name='google.ads.googleads.v4.services.MutateOperation.customer_label_operation', index=26, + number=32, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='customer_negative_criterion_operation', full_name='google.ads.googleads.v4.services.MutateOperation.customer_negative_criterion_operation', index=27, + number=34, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='customer_operation', full_name='google.ads.googleads.v4.services.MutateOperation.customer_operation', index=28, + number=35, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='extension_feed_item_operation', full_name='google.ads.googleads.v4.services.MutateOperation.extension_feed_item_operation', index=29, + number=36, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='feed_item_operation', full_name='google.ads.googleads.v4.services.MutateOperation.feed_item_operation', index=30, + number=37, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='feed_item_target_operation', full_name='google.ads.googleads.v4.services.MutateOperation.feed_item_target_operation', index=31, + number=38, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='feed_mapping_operation', full_name='google.ads.googleads.v4.services.MutateOperation.feed_mapping_operation', index=32, + number=39, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='feed_operation', full_name='google.ads.googleads.v4.services.MutateOperation.feed_operation', index=33, + number=40, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='keyword_plan_ad_group_operation', full_name='google.ads.googleads.v4.services.MutateOperation.keyword_plan_ad_group_operation', index=34, + number=44, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='keyword_plan_ad_group_keyword_operation', full_name='google.ads.googleads.v4.services.MutateOperation.keyword_plan_ad_group_keyword_operation', index=35, + number=50, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='keyword_plan_campaign_keyword_operation', full_name='google.ads.googleads.v4.services.MutateOperation.keyword_plan_campaign_keyword_operation', index=36, + number=51, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='keyword_plan_campaign_operation', full_name='google.ads.googleads.v4.services.MutateOperation.keyword_plan_campaign_operation', index=37, + number=45, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='keyword_plan_operation', full_name='google.ads.googleads.v4.services.MutateOperation.keyword_plan_operation', index=38, + number=48, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='label_operation', full_name='google.ads.googleads.v4.services.MutateOperation.label_operation', index=39, + number=41, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='media_file_operation', full_name='google.ads.googleads.v4.services.MutateOperation.media_file_operation', index=40, + number=42, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='remarketing_action_operation', full_name='google.ads.googleads.v4.services.MutateOperation.remarketing_action_operation', index=41, + number=43, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='shared_criterion_operation', full_name='google.ads.googleads.v4.services.MutateOperation.shared_criterion_operation', index=42, + number=14, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='shared_set_operation', full_name='google.ads.googleads.v4.services.MutateOperation.shared_set_operation', index=43, + number=15, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='user_list_operation', full_name='google.ads.googleads.v4.services.MutateOperation.user_list_operation', index=44, + number=16, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name='operation', full_name='google.ads.googleads.v4.services.MutateOperation.operation', + index=0, containing_type=None, fields=[]), + ], + serialized_start=19760, + serialized_end=24137, +) + + +_MUTATEOPERATIONRESPONSE = _descriptor.Descriptor( + name='MutateOperationResponse', + full_name='google.ads.googleads.v4.services.MutateOperationResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='ad_group_ad_label_result', full_name='google.ads.googleads.v4.services.MutateOperationResponse.ad_group_ad_label_result', index=0, + number=17, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='ad_group_ad_result', full_name='google.ads.googleads.v4.services.MutateOperationResponse.ad_group_ad_result', index=1, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='ad_group_bid_modifier_result', full_name='google.ads.googleads.v4.services.MutateOperationResponse.ad_group_bid_modifier_result', index=2, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='ad_group_criterion_label_result', full_name='google.ads.googleads.v4.services.MutateOperationResponse.ad_group_criterion_label_result', index=3, + number=18, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='ad_group_criterion_result', full_name='google.ads.googleads.v4.services.MutateOperationResponse.ad_group_criterion_result', index=4, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='ad_group_extension_setting_result', full_name='google.ads.googleads.v4.services.MutateOperationResponse.ad_group_extension_setting_result', index=5, + number=19, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='ad_group_feed_result', full_name='google.ads.googleads.v4.services.MutateOperationResponse.ad_group_feed_result', index=6, + number=20, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='ad_group_label_result', full_name='google.ads.googleads.v4.services.MutateOperationResponse.ad_group_label_result', index=7, + number=21, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='ad_group_result', full_name='google.ads.googleads.v4.services.MutateOperationResponse.ad_group_result', index=8, + number=5, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='ad_parameter_result', full_name='google.ads.googleads.v4.services.MutateOperationResponse.ad_parameter_result', index=9, + number=22, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='ad_result', full_name='google.ads.googleads.v4.services.MutateOperationResponse.ad_result', index=10, + number=49, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='asset_result', full_name='google.ads.googleads.v4.services.MutateOperationResponse.asset_result', index=11, + number=23, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='bidding_strategy_result', full_name='google.ads.googleads.v4.services.MutateOperationResponse.bidding_strategy_result', index=12, + number=6, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='campaign_bid_modifier_result', full_name='google.ads.googleads.v4.services.MutateOperationResponse.campaign_bid_modifier_result', index=13, + number=7, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='campaign_budget_result', full_name='google.ads.googleads.v4.services.MutateOperationResponse.campaign_budget_result', index=14, + number=8, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='campaign_criterion_result', full_name='google.ads.googleads.v4.services.MutateOperationResponse.campaign_criterion_result', index=15, + number=13, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='campaign_draft_result', full_name='google.ads.googleads.v4.services.MutateOperationResponse.campaign_draft_result', index=16, + number=24, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='campaign_experiment_result', full_name='google.ads.googleads.v4.services.MutateOperationResponse.campaign_experiment_result', index=17, + number=25, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='campaign_extension_setting_result', full_name='google.ads.googleads.v4.services.MutateOperationResponse.campaign_extension_setting_result', index=18, + number=26, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='campaign_feed_result', full_name='google.ads.googleads.v4.services.MutateOperationResponse.campaign_feed_result', index=19, + number=27, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='campaign_label_result', full_name='google.ads.googleads.v4.services.MutateOperationResponse.campaign_label_result', index=20, + number=28, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='campaign_result', full_name='google.ads.googleads.v4.services.MutateOperationResponse.campaign_result', index=21, + number=10, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='campaign_shared_set_result', full_name='google.ads.googleads.v4.services.MutateOperationResponse.campaign_shared_set_result', index=22, + number=11, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='conversion_action_result', full_name='google.ads.googleads.v4.services.MutateOperationResponse.conversion_action_result', index=23, + number=12, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='customer_extension_setting_result', full_name='google.ads.googleads.v4.services.MutateOperationResponse.customer_extension_setting_result', index=24, + number=30, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='customer_feed_result', full_name='google.ads.googleads.v4.services.MutateOperationResponse.customer_feed_result', index=25, + number=31, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='customer_label_result', full_name='google.ads.googleads.v4.services.MutateOperationResponse.customer_label_result', index=26, + number=32, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='customer_negative_criterion_result', full_name='google.ads.googleads.v4.services.MutateOperationResponse.customer_negative_criterion_result', index=27, + number=34, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='customer_result', full_name='google.ads.googleads.v4.services.MutateOperationResponse.customer_result', index=28, + number=35, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='extension_feed_item_result', full_name='google.ads.googleads.v4.services.MutateOperationResponse.extension_feed_item_result', index=29, + number=36, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='feed_item_result', full_name='google.ads.googleads.v4.services.MutateOperationResponse.feed_item_result', index=30, + number=37, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='feed_item_target_result', full_name='google.ads.googleads.v4.services.MutateOperationResponse.feed_item_target_result', index=31, + number=38, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='feed_mapping_result', full_name='google.ads.googleads.v4.services.MutateOperationResponse.feed_mapping_result', index=32, + number=39, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='feed_result', full_name='google.ads.googleads.v4.services.MutateOperationResponse.feed_result', index=33, + number=40, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='keyword_plan_ad_group_result', full_name='google.ads.googleads.v4.services.MutateOperationResponse.keyword_plan_ad_group_result', index=34, + number=44, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='keyword_plan_campaign_result', full_name='google.ads.googleads.v4.services.MutateOperationResponse.keyword_plan_campaign_result', index=35, + number=45, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='keyword_plan_ad_group_keyword_result', full_name='google.ads.googleads.v4.services.MutateOperationResponse.keyword_plan_ad_group_keyword_result', index=36, + number=50, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='keyword_plan_campaign_keyword_result', full_name='google.ads.googleads.v4.services.MutateOperationResponse.keyword_plan_campaign_keyword_result', index=37, + number=51, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='keyword_plan_result', full_name='google.ads.googleads.v4.services.MutateOperationResponse.keyword_plan_result', index=38, + number=48, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='label_result', full_name='google.ads.googleads.v4.services.MutateOperationResponse.label_result', index=39, + number=41, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='media_file_result', full_name='google.ads.googleads.v4.services.MutateOperationResponse.media_file_result', index=40, + number=42, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='remarketing_action_result', full_name='google.ads.googleads.v4.services.MutateOperationResponse.remarketing_action_result', index=41, + number=43, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='shared_criterion_result', full_name='google.ads.googleads.v4.services.MutateOperationResponse.shared_criterion_result', index=42, + number=14, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='shared_set_result', full_name='google.ads.googleads.v4.services.MutateOperationResponse.shared_set_result', index=43, + number=15, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='user_list_result', full_name='google.ads.googleads.v4.services.MutateOperationResponse.user_list_result', index=44, + number=16, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name='response', full_name='google.ads.googleads.v4.services.MutateOperationResponse.response', + index=0, containing_type=None, fields=[]), + ], + serialized_start=24140, + serialized_end=28524, +) + +_SEARCHGOOGLEADSREQUEST.fields_by_name['summary_row_setting'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_summary__row__setting__pb2._SUMMARYROWSETTINGENUM_SUMMARYROWSETTING +_SEARCHGOOGLEADSRESPONSE.fields_by_name['results'].message_type = _GOOGLEADSROW +_SEARCHGOOGLEADSRESPONSE.fields_by_name['field_mask'].message_type = google_dot_protobuf_dot_field__mask__pb2._FIELDMASK +_SEARCHGOOGLEADSRESPONSE.fields_by_name['summary_row'].message_type = _GOOGLEADSROW +_SEARCHGOOGLEADSSTREAMREQUEST.fields_by_name['summary_row_setting'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_summary__row__setting__pb2._SUMMARYROWSETTINGENUM_SUMMARYROWSETTING +_SEARCHGOOGLEADSSTREAMRESPONSE.fields_by_name['results'].message_type = _GOOGLEADSROW +_SEARCHGOOGLEADSSTREAMRESPONSE.fields_by_name['field_mask'].message_type = google_dot_protobuf_dot_field__mask__pb2._FIELDMASK +_SEARCHGOOGLEADSSTREAMRESPONSE.fields_by_name['summary_row'].message_type = _GOOGLEADSROW +_GOOGLEADSROW.fields_by_name['account_budget'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_account__budget__pb2._ACCOUNTBUDGET +_GOOGLEADSROW.fields_by_name['account_budget_proposal'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_account__budget__proposal__pb2._ACCOUNTBUDGETPROPOSAL +_GOOGLEADSROW.fields_by_name['account_link'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_account__link__pb2._ACCOUNTLINK +_GOOGLEADSROW.fields_by_name['ad_group'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_ad__group__pb2._ADGROUP +_GOOGLEADSROW.fields_by_name['ad_group_ad'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_ad__group__ad__pb2._ADGROUPAD +_GOOGLEADSROW.fields_by_name['ad_group_ad_asset_view'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_ad__group__ad__asset__view__pb2._ADGROUPADASSETVIEW +_GOOGLEADSROW.fields_by_name['ad_group_ad_label'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_ad__group__ad__label__pb2._ADGROUPADLABEL +_GOOGLEADSROW.fields_by_name['ad_group_audience_view'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_ad__group__audience__view__pb2._ADGROUPAUDIENCEVIEW +_GOOGLEADSROW.fields_by_name['ad_group_bid_modifier'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_ad__group__bid__modifier__pb2._ADGROUPBIDMODIFIER +_GOOGLEADSROW.fields_by_name['ad_group_criterion'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_ad__group__criterion__pb2._ADGROUPCRITERION +_GOOGLEADSROW.fields_by_name['ad_group_criterion_label'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_ad__group__criterion__label__pb2._ADGROUPCRITERIONLABEL +_GOOGLEADSROW.fields_by_name['ad_group_criterion_simulation'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_ad__group__criterion__simulation__pb2._ADGROUPCRITERIONSIMULATION +_GOOGLEADSROW.fields_by_name['ad_group_extension_setting'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_ad__group__extension__setting__pb2._ADGROUPEXTENSIONSETTING +_GOOGLEADSROW.fields_by_name['ad_group_feed'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_ad__group__feed__pb2._ADGROUPFEED +_GOOGLEADSROW.fields_by_name['ad_group_label'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_ad__group__label__pb2._ADGROUPLABEL +_GOOGLEADSROW.fields_by_name['ad_group_simulation'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_ad__group__simulation__pb2._ADGROUPSIMULATION +_GOOGLEADSROW.fields_by_name['ad_parameter'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_ad__parameter__pb2._ADPARAMETER +_GOOGLEADSROW.fields_by_name['age_range_view'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_age__range__view__pb2._AGERANGEVIEW +_GOOGLEADSROW.fields_by_name['ad_schedule_view'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_ad__schedule__view__pb2._ADSCHEDULEVIEW +_GOOGLEADSROW.fields_by_name['domain_category'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_domain__category__pb2._DOMAINCATEGORY +_GOOGLEADSROW.fields_by_name['asset'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_asset__pb2._ASSET +_GOOGLEADSROW.fields_by_name['batch_job'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_batch__job__pb2._BATCHJOB +_GOOGLEADSROW.fields_by_name['bidding_strategy'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_bidding__strategy__pb2._BIDDINGSTRATEGY +_GOOGLEADSROW.fields_by_name['billing_setup'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_billing__setup__pb2._BILLINGSETUP +_GOOGLEADSROW.fields_by_name['campaign_budget'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_campaign__budget__pb2._CAMPAIGNBUDGET +_GOOGLEADSROW.fields_by_name['campaign'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_campaign__pb2._CAMPAIGN +_GOOGLEADSROW.fields_by_name['campaign_audience_view'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_campaign__audience__view__pb2._CAMPAIGNAUDIENCEVIEW +_GOOGLEADSROW.fields_by_name['campaign_bid_modifier'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_campaign__bid__modifier__pb2._CAMPAIGNBIDMODIFIER +_GOOGLEADSROW.fields_by_name['campaign_criterion'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_campaign__criterion__pb2._CAMPAIGNCRITERION +_GOOGLEADSROW.fields_by_name['campaign_criterion_simulation'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_campaign__criterion__simulation__pb2._CAMPAIGNCRITERIONSIMULATION +_GOOGLEADSROW.fields_by_name['campaign_draft'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_campaign__draft__pb2._CAMPAIGNDRAFT +_GOOGLEADSROW.fields_by_name['campaign_experiment'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_campaign__experiment__pb2._CAMPAIGNEXPERIMENT +_GOOGLEADSROW.fields_by_name['campaign_extension_setting'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_campaign__extension__setting__pb2._CAMPAIGNEXTENSIONSETTING +_GOOGLEADSROW.fields_by_name['campaign_feed'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_campaign__feed__pb2._CAMPAIGNFEED +_GOOGLEADSROW.fields_by_name['campaign_label'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_campaign__label__pb2._CAMPAIGNLABEL +_GOOGLEADSROW.fields_by_name['campaign_shared_set'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_campaign__shared__set__pb2._CAMPAIGNSHAREDSET +_GOOGLEADSROW.fields_by_name['carrier_constant'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_carrier__constant__pb2._CARRIERCONSTANT +_GOOGLEADSROW.fields_by_name['change_status'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_change__status__pb2._CHANGESTATUS +_GOOGLEADSROW.fields_by_name['conversion_action'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_conversion__action__pb2._CONVERSIONACTION +_GOOGLEADSROW.fields_by_name['click_view'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_click__view__pb2._CLICKVIEW +_GOOGLEADSROW.fields_by_name['currency_constant'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_currency__constant__pb2._CURRENCYCONSTANT +_GOOGLEADSROW.fields_by_name['custom_interest'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_custom__interest__pb2._CUSTOMINTEREST +_GOOGLEADSROW.fields_by_name['customer'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_customer__pb2._CUSTOMER +_GOOGLEADSROW.fields_by_name['customer_manager_link'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_customer__manager__link__pb2._CUSTOMERMANAGERLINK +_GOOGLEADSROW.fields_by_name['customer_client_link'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_customer__client__link__pb2._CUSTOMERCLIENTLINK +_GOOGLEADSROW.fields_by_name['customer_client'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_customer__client__pb2._CUSTOMERCLIENT +_GOOGLEADSROW.fields_by_name['customer_extension_setting'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_customer__extension__setting__pb2._CUSTOMEREXTENSIONSETTING +_GOOGLEADSROW.fields_by_name['customer_feed'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_customer__feed__pb2._CUSTOMERFEED +_GOOGLEADSROW.fields_by_name['customer_label'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_customer__label__pb2._CUSTOMERLABEL +_GOOGLEADSROW.fields_by_name['customer_negative_criterion'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_customer__negative__criterion__pb2._CUSTOMERNEGATIVECRITERION +_GOOGLEADSROW.fields_by_name['detail_placement_view'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_detail__placement__view__pb2._DETAILPLACEMENTVIEW +_GOOGLEADSROW.fields_by_name['display_keyword_view'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_display__keyword__view__pb2._DISPLAYKEYWORDVIEW +_GOOGLEADSROW.fields_by_name['distance_view'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_distance__view__pb2._DISTANCEVIEW +_GOOGLEADSROW.fields_by_name['dynamic_search_ads_search_term_view'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_dynamic__search__ads__search__term__view__pb2._DYNAMICSEARCHADSSEARCHTERMVIEW +_GOOGLEADSROW.fields_by_name['expanded_landing_page_view'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_expanded__landing__page__view__pb2._EXPANDEDLANDINGPAGEVIEW +_GOOGLEADSROW.fields_by_name['extension_feed_item'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_extension__feed__item__pb2._EXTENSIONFEEDITEM +_GOOGLEADSROW.fields_by_name['feed'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_feed__pb2._FEED +_GOOGLEADSROW.fields_by_name['feed_item'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_feed__item__pb2._FEEDITEM +_GOOGLEADSROW.fields_by_name['feed_item_target'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_feed__item__target__pb2._FEEDITEMTARGET +_GOOGLEADSROW.fields_by_name['feed_mapping'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_feed__mapping__pb2._FEEDMAPPING +_GOOGLEADSROW.fields_by_name['feed_placeholder_view'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_feed__placeholder__view__pb2._FEEDPLACEHOLDERVIEW +_GOOGLEADSROW.fields_by_name['gender_view'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_gender__view__pb2._GENDERVIEW +_GOOGLEADSROW.fields_by_name['geo_target_constant'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_geo__target__constant__pb2._GEOTARGETCONSTANT +_GOOGLEADSROW.fields_by_name['geographic_view'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_geographic__view__pb2._GEOGRAPHICVIEW +_GOOGLEADSROW.fields_by_name['group_placement_view'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_group__placement__view__pb2._GROUPPLACEMENTVIEW +_GOOGLEADSROW.fields_by_name['hotel_group_view'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_hotel__group__view__pb2._HOTELGROUPVIEW +_GOOGLEADSROW.fields_by_name['hotel_performance_view'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_hotel__performance__view__pb2._HOTELPERFORMANCEVIEW +_GOOGLEADSROW.fields_by_name['income_range_view'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_income__range__view__pb2._INCOMERANGEVIEW +_GOOGLEADSROW.fields_by_name['keyword_view'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_keyword__view__pb2._KEYWORDVIEW +_GOOGLEADSROW.fields_by_name['keyword_plan'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_keyword__plan__pb2._KEYWORDPLAN +_GOOGLEADSROW.fields_by_name['keyword_plan_campaign'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_keyword__plan__campaign__pb2._KEYWORDPLANCAMPAIGN +_GOOGLEADSROW.fields_by_name['keyword_plan_campaign_keyword'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_keyword__plan__campaign__keyword__pb2._KEYWORDPLANCAMPAIGNKEYWORD +_GOOGLEADSROW.fields_by_name['keyword_plan_ad_group'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_keyword__plan__ad__group__pb2._KEYWORDPLANADGROUP +_GOOGLEADSROW.fields_by_name['keyword_plan_ad_group_keyword'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_keyword__plan__ad__group__keyword__pb2._KEYWORDPLANADGROUPKEYWORD +_GOOGLEADSROW.fields_by_name['label'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_label__pb2._LABEL +_GOOGLEADSROW.fields_by_name['landing_page_view'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_landing__page__view__pb2._LANDINGPAGEVIEW +_GOOGLEADSROW.fields_by_name['language_constant'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_language__constant__pb2._LANGUAGECONSTANT +_GOOGLEADSROW.fields_by_name['location_view'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_location__view__pb2._LOCATIONVIEW +_GOOGLEADSROW.fields_by_name['managed_placement_view'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_managed__placement__view__pb2._MANAGEDPLACEMENTVIEW +_GOOGLEADSROW.fields_by_name['media_file'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_media__file__pb2._MEDIAFILE +_GOOGLEADSROW.fields_by_name['mobile_app_category_constant'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_mobile__app__category__constant__pb2._MOBILEAPPCATEGORYCONSTANT +_GOOGLEADSROW.fields_by_name['mobile_device_constant'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_mobile__device__constant__pb2._MOBILEDEVICECONSTANT +_GOOGLEADSROW.fields_by_name['offline_user_data_job'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_offline__user__data__job__pb2._OFFLINEUSERDATAJOB +_GOOGLEADSROW.fields_by_name['operating_system_version_constant'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_operating__system__version__constant__pb2._OPERATINGSYSTEMVERSIONCONSTANT +_GOOGLEADSROW.fields_by_name['paid_organic_search_term_view'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_paid__organic__search__term__view__pb2._PAIDORGANICSEARCHTERMVIEW +_GOOGLEADSROW.fields_by_name['parental_status_view'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_parental__status__view__pb2._PARENTALSTATUSVIEW +_GOOGLEADSROW.fields_by_name['product_bidding_category_constant'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_product__bidding__category__constant__pb2._PRODUCTBIDDINGCATEGORYCONSTANT +_GOOGLEADSROW.fields_by_name['product_group_view'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_product__group__view__pb2._PRODUCTGROUPVIEW +_GOOGLEADSROW.fields_by_name['recommendation'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_recommendation__pb2._RECOMMENDATION +_GOOGLEADSROW.fields_by_name['search_term_view'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_search__term__view__pb2._SEARCHTERMVIEW +_GOOGLEADSROW.fields_by_name['shared_criterion'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_shared__criterion__pb2._SHAREDCRITERION +_GOOGLEADSROW.fields_by_name['shared_set'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_shared__set__pb2._SHAREDSET +_GOOGLEADSROW.fields_by_name['shopping_performance_view'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_shopping__performance__view__pb2._SHOPPINGPERFORMANCEVIEW +_GOOGLEADSROW.fields_by_name['third_party_app_analytics_link'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_third__party__app__analytics__link__pb2._THIRDPARTYAPPANALYTICSLINK +_GOOGLEADSROW.fields_by_name['topic_view'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_topic__view__pb2._TOPICVIEW +_GOOGLEADSROW.fields_by_name['user_interest'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_user__interest__pb2._USERINTEREST +_GOOGLEADSROW.fields_by_name['user_list'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_user__list__pb2._USERLIST +_GOOGLEADSROW.fields_by_name['user_location_view'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_user__location__view__pb2._USERLOCATIONVIEW +_GOOGLEADSROW.fields_by_name['remarketing_action'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_remarketing__action__pb2._REMARKETINGACTION +_GOOGLEADSROW.fields_by_name['topic_constant'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_topic__constant__pb2._TOPICCONSTANT +_GOOGLEADSROW.fields_by_name['video'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_video__pb2._VIDEO +_GOOGLEADSROW.fields_by_name['metrics'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_metrics__pb2._METRICS +_GOOGLEADSROW.fields_by_name['segments'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_segments__pb2._SEGMENTS +_MUTATEGOOGLEADSREQUEST.fields_by_name['mutate_operations'].message_type = _MUTATEOPERATION +_MUTATEGOOGLEADSRESPONSE.fields_by_name['partial_failure_error'].message_type = google_dot_rpc_dot_status__pb2._STATUS +_MUTATEGOOGLEADSRESPONSE.fields_by_name['mutate_operation_responses'].message_type = _MUTATEOPERATIONRESPONSE +_MUTATEOPERATION.fields_by_name['ad_group_ad_label_operation'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_ad__group__ad__label__service__pb2._ADGROUPADLABELOPERATION +_MUTATEOPERATION.fields_by_name['ad_group_ad_operation'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_ad__group__ad__service__pb2._ADGROUPADOPERATION +_MUTATEOPERATION.fields_by_name['ad_group_bid_modifier_operation'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_ad__group__bid__modifier__service__pb2._ADGROUPBIDMODIFIEROPERATION +_MUTATEOPERATION.fields_by_name['ad_group_criterion_label_operation'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_ad__group__criterion__label__service__pb2._ADGROUPCRITERIONLABELOPERATION +_MUTATEOPERATION.fields_by_name['ad_group_criterion_operation'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_ad__group__criterion__service__pb2._ADGROUPCRITERIONOPERATION +_MUTATEOPERATION.fields_by_name['ad_group_extension_setting_operation'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_ad__group__extension__setting__service__pb2._ADGROUPEXTENSIONSETTINGOPERATION +_MUTATEOPERATION.fields_by_name['ad_group_feed_operation'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_ad__group__feed__service__pb2._ADGROUPFEEDOPERATION +_MUTATEOPERATION.fields_by_name['ad_group_label_operation'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_ad__group__label__service__pb2._ADGROUPLABELOPERATION +_MUTATEOPERATION.fields_by_name['ad_group_operation'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_ad__group__service__pb2._ADGROUPOPERATION +_MUTATEOPERATION.fields_by_name['ad_operation'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_ad__service__pb2._ADOPERATION +_MUTATEOPERATION.fields_by_name['ad_parameter_operation'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_ad__parameter__service__pb2._ADPARAMETEROPERATION +_MUTATEOPERATION.fields_by_name['asset_operation'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_asset__service__pb2._ASSETOPERATION +_MUTATEOPERATION.fields_by_name['bidding_strategy_operation'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_bidding__strategy__service__pb2._BIDDINGSTRATEGYOPERATION +_MUTATEOPERATION.fields_by_name['campaign_bid_modifier_operation'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_campaign__bid__modifier__service__pb2._CAMPAIGNBIDMODIFIEROPERATION +_MUTATEOPERATION.fields_by_name['campaign_budget_operation'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_campaign__budget__service__pb2._CAMPAIGNBUDGETOPERATION +_MUTATEOPERATION.fields_by_name['campaign_criterion_operation'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_campaign__criterion__service__pb2._CAMPAIGNCRITERIONOPERATION +_MUTATEOPERATION.fields_by_name['campaign_draft_operation'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_campaign__draft__service__pb2._CAMPAIGNDRAFTOPERATION +_MUTATEOPERATION.fields_by_name['campaign_experiment_operation'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_campaign__experiment__service__pb2._CAMPAIGNEXPERIMENTOPERATION +_MUTATEOPERATION.fields_by_name['campaign_extension_setting_operation'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_campaign__extension__setting__service__pb2._CAMPAIGNEXTENSIONSETTINGOPERATION +_MUTATEOPERATION.fields_by_name['campaign_feed_operation'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_campaign__feed__service__pb2._CAMPAIGNFEEDOPERATION +_MUTATEOPERATION.fields_by_name['campaign_label_operation'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_campaign__label__service__pb2._CAMPAIGNLABELOPERATION +_MUTATEOPERATION.fields_by_name['campaign_operation'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_campaign__service__pb2._CAMPAIGNOPERATION +_MUTATEOPERATION.fields_by_name['campaign_shared_set_operation'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_campaign__shared__set__service__pb2._CAMPAIGNSHAREDSETOPERATION +_MUTATEOPERATION.fields_by_name['conversion_action_operation'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_conversion__action__service__pb2._CONVERSIONACTIONOPERATION +_MUTATEOPERATION.fields_by_name['customer_extension_setting_operation'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_customer__extension__setting__service__pb2._CUSTOMEREXTENSIONSETTINGOPERATION +_MUTATEOPERATION.fields_by_name['customer_feed_operation'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_customer__feed__service__pb2._CUSTOMERFEEDOPERATION +_MUTATEOPERATION.fields_by_name['customer_label_operation'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_customer__label__service__pb2._CUSTOMERLABELOPERATION +_MUTATEOPERATION.fields_by_name['customer_negative_criterion_operation'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_customer__negative__criterion__service__pb2._CUSTOMERNEGATIVECRITERIONOPERATION +_MUTATEOPERATION.fields_by_name['customer_operation'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_customer__service__pb2._CUSTOMEROPERATION +_MUTATEOPERATION.fields_by_name['extension_feed_item_operation'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_extension__feed__item__service__pb2._EXTENSIONFEEDITEMOPERATION +_MUTATEOPERATION.fields_by_name['feed_item_operation'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_feed__item__service__pb2._FEEDITEMOPERATION +_MUTATEOPERATION.fields_by_name['feed_item_target_operation'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_feed__item__target__service__pb2._FEEDITEMTARGETOPERATION +_MUTATEOPERATION.fields_by_name['feed_mapping_operation'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_feed__mapping__service__pb2._FEEDMAPPINGOPERATION +_MUTATEOPERATION.fields_by_name['feed_operation'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_feed__service__pb2._FEEDOPERATION +_MUTATEOPERATION.fields_by_name['keyword_plan_ad_group_operation'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_keyword__plan__ad__group__service__pb2._KEYWORDPLANADGROUPOPERATION +_MUTATEOPERATION.fields_by_name['keyword_plan_ad_group_keyword_operation'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_keyword__plan__ad__group__keyword__service__pb2._KEYWORDPLANADGROUPKEYWORDOPERATION +_MUTATEOPERATION.fields_by_name['keyword_plan_campaign_keyword_operation'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_keyword__plan__campaign__keyword__service__pb2._KEYWORDPLANCAMPAIGNKEYWORDOPERATION +_MUTATEOPERATION.fields_by_name['keyword_plan_campaign_operation'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_keyword__plan__campaign__service__pb2._KEYWORDPLANCAMPAIGNOPERATION +_MUTATEOPERATION.fields_by_name['keyword_plan_operation'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_keyword__plan__service__pb2._KEYWORDPLANOPERATION +_MUTATEOPERATION.fields_by_name['label_operation'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_label__service__pb2._LABELOPERATION +_MUTATEOPERATION.fields_by_name['media_file_operation'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_media__file__service__pb2._MEDIAFILEOPERATION +_MUTATEOPERATION.fields_by_name['remarketing_action_operation'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_remarketing__action__service__pb2._REMARKETINGACTIONOPERATION +_MUTATEOPERATION.fields_by_name['shared_criterion_operation'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_shared__criterion__service__pb2._SHAREDCRITERIONOPERATION +_MUTATEOPERATION.fields_by_name['shared_set_operation'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_shared__set__service__pb2._SHAREDSETOPERATION +_MUTATEOPERATION.fields_by_name['user_list_operation'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_user__list__service__pb2._USERLISTOPERATION +_MUTATEOPERATION.oneofs_by_name['operation'].fields.append( + _MUTATEOPERATION.fields_by_name['ad_group_ad_label_operation']) +_MUTATEOPERATION.fields_by_name['ad_group_ad_label_operation'].containing_oneof = _MUTATEOPERATION.oneofs_by_name['operation'] +_MUTATEOPERATION.oneofs_by_name['operation'].fields.append( + _MUTATEOPERATION.fields_by_name['ad_group_ad_operation']) +_MUTATEOPERATION.fields_by_name['ad_group_ad_operation'].containing_oneof = _MUTATEOPERATION.oneofs_by_name['operation'] +_MUTATEOPERATION.oneofs_by_name['operation'].fields.append( + _MUTATEOPERATION.fields_by_name['ad_group_bid_modifier_operation']) +_MUTATEOPERATION.fields_by_name['ad_group_bid_modifier_operation'].containing_oneof = _MUTATEOPERATION.oneofs_by_name['operation'] +_MUTATEOPERATION.oneofs_by_name['operation'].fields.append( + _MUTATEOPERATION.fields_by_name['ad_group_criterion_label_operation']) +_MUTATEOPERATION.fields_by_name['ad_group_criterion_label_operation'].containing_oneof = _MUTATEOPERATION.oneofs_by_name['operation'] +_MUTATEOPERATION.oneofs_by_name['operation'].fields.append( + _MUTATEOPERATION.fields_by_name['ad_group_criterion_operation']) +_MUTATEOPERATION.fields_by_name['ad_group_criterion_operation'].containing_oneof = _MUTATEOPERATION.oneofs_by_name['operation'] +_MUTATEOPERATION.oneofs_by_name['operation'].fields.append( + _MUTATEOPERATION.fields_by_name['ad_group_extension_setting_operation']) +_MUTATEOPERATION.fields_by_name['ad_group_extension_setting_operation'].containing_oneof = _MUTATEOPERATION.oneofs_by_name['operation'] +_MUTATEOPERATION.oneofs_by_name['operation'].fields.append( + _MUTATEOPERATION.fields_by_name['ad_group_feed_operation']) +_MUTATEOPERATION.fields_by_name['ad_group_feed_operation'].containing_oneof = _MUTATEOPERATION.oneofs_by_name['operation'] +_MUTATEOPERATION.oneofs_by_name['operation'].fields.append( + _MUTATEOPERATION.fields_by_name['ad_group_label_operation']) +_MUTATEOPERATION.fields_by_name['ad_group_label_operation'].containing_oneof = _MUTATEOPERATION.oneofs_by_name['operation'] +_MUTATEOPERATION.oneofs_by_name['operation'].fields.append( + _MUTATEOPERATION.fields_by_name['ad_group_operation']) +_MUTATEOPERATION.fields_by_name['ad_group_operation'].containing_oneof = _MUTATEOPERATION.oneofs_by_name['operation'] +_MUTATEOPERATION.oneofs_by_name['operation'].fields.append( + _MUTATEOPERATION.fields_by_name['ad_operation']) +_MUTATEOPERATION.fields_by_name['ad_operation'].containing_oneof = _MUTATEOPERATION.oneofs_by_name['operation'] +_MUTATEOPERATION.oneofs_by_name['operation'].fields.append( + _MUTATEOPERATION.fields_by_name['ad_parameter_operation']) +_MUTATEOPERATION.fields_by_name['ad_parameter_operation'].containing_oneof = _MUTATEOPERATION.oneofs_by_name['operation'] +_MUTATEOPERATION.oneofs_by_name['operation'].fields.append( + _MUTATEOPERATION.fields_by_name['asset_operation']) +_MUTATEOPERATION.fields_by_name['asset_operation'].containing_oneof = _MUTATEOPERATION.oneofs_by_name['operation'] +_MUTATEOPERATION.oneofs_by_name['operation'].fields.append( + _MUTATEOPERATION.fields_by_name['bidding_strategy_operation']) +_MUTATEOPERATION.fields_by_name['bidding_strategy_operation'].containing_oneof = _MUTATEOPERATION.oneofs_by_name['operation'] +_MUTATEOPERATION.oneofs_by_name['operation'].fields.append( + _MUTATEOPERATION.fields_by_name['campaign_bid_modifier_operation']) +_MUTATEOPERATION.fields_by_name['campaign_bid_modifier_operation'].containing_oneof = _MUTATEOPERATION.oneofs_by_name['operation'] +_MUTATEOPERATION.oneofs_by_name['operation'].fields.append( + _MUTATEOPERATION.fields_by_name['campaign_budget_operation']) +_MUTATEOPERATION.fields_by_name['campaign_budget_operation'].containing_oneof = _MUTATEOPERATION.oneofs_by_name['operation'] +_MUTATEOPERATION.oneofs_by_name['operation'].fields.append( + _MUTATEOPERATION.fields_by_name['campaign_criterion_operation']) +_MUTATEOPERATION.fields_by_name['campaign_criterion_operation'].containing_oneof = _MUTATEOPERATION.oneofs_by_name['operation'] +_MUTATEOPERATION.oneofs_by_name['operation'].fields.append( + _MUTATEOPERATION.fields_by_name['campaign_draft_operation']) +_MUTATEOPERATION.fields_by_name['campaign_draft_operation'].containing_oneof = _MUTATEOPERATION.oneofs_by_name['operation'] +_MUTATEOPERATION.oneofs_by_name['operation'].fields.append( + _MUTATEOPERATION.fields_by_name['campaign_experiment_operation']) +_MUTATEOPERATION.fields_by_name['campaign_experiment_operation'].containing_oneof = _MUTATEOPERATION.oneofs_by_name['operation'] +_MUTATEOPERATION.oneofs_by_name['operation'].fields.append( + _MUTATEOPERATION.fields_by_name['campaign_extension_setting_operation']) +_MUTATEOPERATION.fields_by_name['campaign_extension_setting_operation'].containing_oneof = _MUTATEOPERATION.oneofs_by_name['operation'] +_MUTATEOPERATION.oneofs_by_name['operation'].fields.append( + _MUTATEOPERATION.fields_by_name['campaign_feed_operation']) +_MUTATEOPERATION.fields_by_name['campaign_feed_operation'].containing_oneof = _MUTATEOPERATION.oneofs_by_name['operation'] +_MUTATEOPERATION.oneofs_by_name['operation'].fields.append( + _MUTATEOPERATION.fields_by_name['campaign_label_operation']) +_MUTATEOPERATION.fields_by_name['campaign_label_operation'].containing_oneof = _MUTATEOPERATION.oneofs_by_name['operation'] +_MUTATEOPERATION.oneofs_by_name['operation'].fields.append( + _MUTATEOPERATION.fields_by_name['campaign_operation']) +_MUTATEOPERATION.fields_by_name['campaign_operation'].containing_oneof = _MUTATEOPERATION.oneofs_by_name['operation'] +_MUTATEOPERATION.oneofs_by_name['operation'].fields.append( + _MUTATEOPERATION.fields_by_name['campaign_shared_set_operation']) +_MUTATEOPERATION.fields_by_name['campaign_shared_set_operation'].containing_oneof = _MUTATEOPERATION.oneofs_by_name['operation'] +_MUTATEOPERATION.oneofs_by_name['operation'].fields.append( + _MUTATEOPERATION.fields_by_name['conversion_action_operation']) +_MUTATEOPERATION.fields_by_name['conversion_action_operation'].containing_oneof = _MUTATEOPERATION.oneofs_by_name['operation'] +_MUTATEOPERATION.oneofs_by_name['operation'].fields.append( + _MUTATEOPERATION.fields_by_name['customer_extension_setting_operation']) +_MUTATEOPERATION.fields_by_name['customer_extension_setting_operation'].containing_oneof = _MUTATEOPERATION.oneofs_by_name['operation'] +_MUTATEOPERATION.oneofs_by_name['operation'].fields.append( + _MUTATEOPERATION.fields_by_name['customer_feed_operation']) +_MUTATEOPERATION.fields_by_name['customer_feed_operation'].containing_oneof = _MUTATEOPERATION.oneofs_by_name['operation'] +_MUTATEOPERATION.oneofs_by_name['operation'].fields.append( + _MUTATEOPERATION.fields_by_name['customer_label_operation']) +_MUTATEOPERATION.fields_by_name['customer_label_operation'].containing_oneof = _MUTATEOPERATION.oneofs_by_name['operation'] +_MUTATEOPERATION.oneofs_by_name['operation'].fields.append( + _MUTATEOPERATION.fields_by_name['customer_negative_criterion_operation']) +_MUTATEOPERATION.fields_by_name['customer_negative_criterion_operation'].containing_oneof = _MUTATEOPERATION.oneofs_by_name['operation'] +_MUTATEOPERATION.oneofs_by_name['operation'].fields.append( + _MUTATEOPERATION.fields_by_name['customer_operation']) +_MUTATEOPERATION.fields_by_name['customer_operation'].containing_oneof = _MUTATEOPERATION.oneofs_by_name['operation'] +_MUTATEOPERATION.oneofs_by_name['operation'].fields.append( + _MUTATEOPERATION.fields_by_name['extension_feed_item_operation']) +_MUTATEOPERATION.fields_by_name['extension_feed_item_operation'].containing_oneof = _MUTATEOPERATION.oneofs_by_name['operation'] +_MUTATEOPERATION.oneofs_by_name['operation'].fields.append( + _MUTATEOPERATION.fields_by_name['feed_item_operation']) +_MUTATEOPERATION.fields_by_name['feed_item_operation'].containing_oneof = _MUTATEOPERATION.oneofs_by_name['operation'] +_MUTATEOPERATION.oneofs_by_name['operation'].fields.append( + _MUTATEOPERATION.fields_by_name['feed_item_target_operation']) +_MUTATEOPERATION.fields_by_name['feed_item_target_operation'].containing_oneof = _MUTATEOPERATION.oneofs_by_name['operation'] +_MUTATEOPERATION.oneofs_by_name['operation'].fields.append( + _MUTATEOPERATION.fields_by_name['feed_mapping_operation']) +_MUTATEOPERATION.fields_by_name['feed_mapping_operation'].containing_oneof = _MUTATEOPERATION.oneofs_by_name['operation'] +_MUTATEOPERATION.oneofs_by_name['operation'].fields.append( + _MUTATEOPERATION.fields_by_name['feed_operation']) +_MUTATEOPERATION.fields_by_name['feed_operation'].containing_oneof = _MUTATEOPERATION.oneofs_by_name['operation'] +_MUTATEOPERATION.oneofs_by_name['operation'].fields.append( + _MUTATEOPERATION.fields_by_name['keyword_plan_ad_group_operation']) +_MUTATEOPERATION.fields_by_name['keyword_plan_ad_group_operation'].containing_oneof = _MUTATEOPERATION.oneofs_by_name['operation'] +_MUTATEOPERATION.oneofs_by_name['operation'].fields.append( + _MUTATEOPERATION.fields_by_name['keyword_plan_ad_group_keyword_operation']) +_MUTATEOPERATION.fields_by_name['keyword_plan_ad_group_keyword_operation'].containing_oneof = _MUTATEOPERATION.oneofs_by_name['operation'] +_MUTATEOPERATION.oneofs_by_name['operation'].fields.append( + _MUTATEOPERATION.fields_by_name['keyword_plan_campaign_keyword_operation']) +_MUTATEOPERATION.fields_by_name['keyword_plan_campaign_keyword_operation'].containing_oneof = _MUTATEOPERATION.oneofs_by_name['operation'] +_MUTATEOPERATION.oneofs_by_name['operation'].fields.append( + _MUTATEOPERATION.fields_by_name['keyword_plan_campaign_operation']) +_MUTATEOPERATION.fields_by_name['keyword_plan_campaign_operation'].containing_oneof = _MUTATEOPERATION.oneofs_by_name['operation'] +_MUTATEOPERATION.oneofs_by_name['operation'].fields.append( + _MUTATEOPERATION.fields_by_name['keyword_plan_operation']) +_MUTATEOPERATION.fields_by_name['keyword_plan_operation'].containing_oneof = _MUTATEOPERATION.oneofs_by_name['operation'] +_MUTATEOPERATION.oneofs_by_name['operation'].fields.append( + _MUTATEOPERATION.fields_by_name['label_operation']) +_MUTATEOPERATION.fields_by_name['label_operation'].containing_oneof = _MUTATEOPERATION.oneofs_by_name['operation'] +_MUTATEOPERATION.oneofs_by_name['operation'].fields.append( + _MUTATEOPERATION.fields_by_name['media_file_operation']) +_MUTATEOPERATION.fields_by_name['media_file_operation'].containing_oneof = _MUTATEOPERATION.oneofs_by_name['operation'] +_MUTATEOPERATION.oneofs_by_name['operation'].fields.append( + _MUTATEOPERATION.fields_by_name['remarketing_action_operation']) +_MUTATEOPERATION.fields_by_name['remarketing_action_operation'].containing_oneof = _MUTATEOPERATION.oneofs_by_name['operation'] +_MUTATEOPERATION.oneofs_by_name['operation'].fields.append( + _MUTATEOPERATION.fields_by_name['shared_criterion_operation']) +_MUTATEOPERATION.fields_by_name['shared_criterion_operation'].containing_oneof = _MUTATEOPERATION.oneofs_by_name['operation'] +_MUTATEOPERATION.oneofs_by_name['operation'].fields.append( + _MUTATEOPERATION.fields_by_name['shared_set_operation']) +_MUTATEOPERATION.fields_by_name['shared_set_operation'].containing_oneof = _MUTATEOPERATION.oneofs_by_name['operation'] +_MUTATEOPERATION.oneofs_by_name['operation'].fields.append( + _MUTATEOPERATION.fields_by_name['user_list_operation']) +_MUTATEOPERATION.fields_by_name['user_list_operation'].containing_oneof = _MUTATEOPERATION.oneofs_by_name['operation'] +_MUTATEOPERATIONRESPONSE.fields_by_name['ad_group_ad_label_result'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_ad__group__ad__label__service__pb2._MUTATEADGROUPADLABELRESULT +_MUTATEOPERATIONRESPONSE.fields_by_name['ad_group_ad_result'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_ad__group__ad__service__pb2._MUTATEADGROUPADRESULT +_MUTATEOPERATIONRESPONSE.fields_by_name['ad_group_bid_modifier_result'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_ad__group__bid__modifier__service__pb2._MUTATEADGROUPBIDMODIFIERRESULT +_MUTATEOPERATIONRESPONSE.fields_by_name['ad_group_criterion_label_result'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_ad__group__criterion__label__service__pb2._MUTATEADGROUPCRITERIONLABELRESULT +_MUTATEOPERATIONRESPONSE.fields_by_name['ad_group_criterion_result'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_ad__group__criterion__service__pb2._MUTATEADGROUPCRITERIONRESULT +_MUTATEOPERATIONRESPONSE.fields_by_name['ad_group_extension_setting_result'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_ad__group__extension__setting__service__pb2._MUTATEADGROUPEXTENSIONSETTINGRESULT +_MUTATEOPERATIONRESPONSE.fields_by_name['ad_group_feed_result'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_ad__group__feed__service__pb2._MUTATEADGROUPFEEDRESULT +_MUTATEOPERATIONRESPONSE.fields_by_name['ad_group_label_result'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_ad__group__label__service__pb2._MUTATEADGROUPLABELRESULT +_MUTATEOPERATIONRESPONSE.fields_by_name['ad_group_result'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_ad__group__service__pb2._MUTATEADGROUPRESULT +_MUTATEOPERATIONRESPONSE.fields_by_name['ad_parameter_result'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_ad__parameter__service__pb2._MUTATEADPARAMETERRESULT +_MUTATEOPERATIONRESPONSE.fields_by_name['ad_result'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_ad__service__pb2._MUTATEADRESULT +_MUTATEOPERATIONRESPONSE.fields_by_name['asset_result'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_asset__service__pb2._MUTATEASSETRESULT +_MUTATEOPERATIONRESPONSE.fields_by_name['bidding_strategy_result'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_bidding__strategy__service__pb2._MUTATEBIDDINGSTRATEGYRESULT +_MUTATEOPERATIONRESPONSE.fields_by_name['campaign_bid_modifier_result'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_campaign__bid__modifier__service__pb2._MUTATECAMPAIGNBIDMODIFIERRESULT +_MUTATEOPERATIONRESPONSE.fields_by_name['campaign_budget_result'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_campaign__budget__service__pb2._MUTATECAMPAIGNBUDGETRESULT +_MUTATEOPERATIONRESPONSE.fields_by_name['campaign_criterion_result'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_campaign__criterion__service__pb2._MUTATECAMPAIGNCRITERIONRESULT +_MUTATEOPERATIONRESPONSE.fields_by_name['campaign_draft_result'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_campaign__draft__service__pb2._MUTATECAMPAIGNDRAFTRESULT +_MUTATEOPERATIONRESPONSE.fields_by_name['campaign_experiment_result'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_campaign__experiment__service__pb2._MUTATECAMPAIGNEXPERIMENTRESULT +_MUTATEOPERATIONRESPONSE.fields_by_name['campaign_extension_setting_result'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_campaign__extension__setting__service__pb2._MUTATECAMPAIGNEXTENSIONSETTINGRESULT +_MUTATEOPERATIONRESPONSE.fields_by_name['campaign_feed_result'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_campaign__feed__service__pb2._MUTATECAMPAIGNFEEDRESULT +_MUTATEOPERATIONRESPONSE.fields_by_name['campaign_label_result'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_campaign__label__service__pb2._MUTATECAMPAIGNLABELRESULT +_MUTATEOPERATIONRESPONSE.fields_by_name['campaign_result'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_campaign__service__pb2._MUTATECAMPAIGNRESULT +_MUTATEOPERATIONRESPONSE.fields_by_name['campaign_shared_set_result'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_campaign__shared__set__service__pb2._MUTATECAMPAIGNSHAREDSETRESULT +_MUTATEOPERATIONRESPONSE.fields_by_name['conversion_action_result'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_conversion__action__service__pb2._MUTATECONVERSIONACTIONRESULT +_MUTATEOPERATIONRESPONSE.fields_by_name['customer_extension_setting_result'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_customer__extension__setting__service__pb2._MUTATECUSTOMEREXTENSIONSETTINGRESULT +_MUTATEOPERATIONRESPONSE.fields_by_name['customer_feed_result'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_customer__feed__service__pb2._MUTATECUSTOMERFEEDRESULT +_MUTATEOPERATIONRESPONSE.fields_by_name['customer_label_result'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_customer__label__service__pb2._MUTATECUSTOMERLABELRESULT +_MUTATEOPERATIONRESPONSE.fields_by_name['customer_negative_criterion_result'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_customer__negative__criterion__service__pb2._MUTATECUSTOMERNEGATIVECRITERIARESULT +_MUTATEOPERATIONRESPONSE.fields_by_name['customer_result'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_customer__service__pb2._MUTATECUSTOMERRESULT +_MUTATEOPERATIONRESPONSE.fields_by_name['extension_feed_item_result'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_extension__feed__item__service__pb2._MUTATEEXTENSIONFEEDITEMRESULT +_MUTATEOPERATIONRESPONSE.fields_by_name['feed_item_result'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_feed__item__service__pb2._MUTATEFEEDITEMRESULT +_MUTATEOPERATIONRESPONSE.fields_by_name['feed_item_target_result'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_feed__item__target__service__pb2._MUTATEFEEDITEMTARGETRESULT +_MUTATEOPERATIONRESPONSE.fields_by_name['feed_mapping_result'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_feed__mapping__service__pb2._MUTATEFEEDMAPPINGRESULT +_MUTATEOPERATIONRESPONSE.fields_by_name['feed_result'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_feed__service__pb2._MUTATEFEEDRESULT +_MUTATEOPERATIONRESPONSE.fields_by_name['keyword_plan_ad_group_result'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_keyword__plan__ad__group__service__pb2._MUTATEKEYWORDPLANADGROUPRESULT +_MUTATEOPERATIONRESPONSE.fields_by_name['keyword_plan_campaign_result'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_keyword__plan__campaign__service__pb2._MUTATEKEYWORDPLANCAMPAIGNRESULT +_MUTATEOPERATIONRESPONSE.fields_by_name['keyword_plan_ad_group_keyword_result'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_keyword__plan__ad__group__keyword__service__pb2._MUTATEKEYWORDPLANADGROUPKEYWORDRESULT +_MUTATEOPERATIONRESPONSE.fields_by_name['keyword_plan_campaign_keyword_result'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_keyword__plan__campaign__keyword__service__pb2._MUTATEKEYWORDPLANCAMPAIGNKEYWORDRESULT +_MUTATEOPERATIONRESPONSE.fields_by_name['keyword_plan_result'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_keyword__plan__service__pb2._MUTATEKEYWORDPLANSRESULT +_MUTATEOPERATIONRESPONSE.fields_by_name['label_result'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_label__service__pb2._MUTATELABELRESULT +_MUTATEOPERATIONRESPONSE.fields_by_name['media_file_result'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_media__file__service__pb2._MUTATEMEDIAFILERESULT +_MUTATEOPERATIONRESPONSE.fields_by_name['remarketing_action_result'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_remarketing__action__service__pb2._MUTATEREMARKETINGACTIONRESULT +_MUTATEOPERATIONRESPONSE.fields_by_name['shared_criterion_result'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_shared__criterion__service__pb2._MUTATESHAREDCRITERIONRESULT +_MUTATEOPERATIONRESPONSE.fields_by_name['shared_set_result'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_shared__set__service__pb2._MUTATESHAREDSETRESULT +_MUTATEOPERATIONRESPONSE.fields_by_name['user_list_result'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_user__list__service__pb2._MUTATEUSERLISTRESULT +_MUTATEOPERATIONRESPONSE.oneofs_by_name['response'].fields.append( + _MUTATEOPERATIONRESPONSE.fields_by_name['ad_group_ad_label_result']) +_MUTATEOPERATIONRESPONSE.fields_by_name['ad_group_ad_label_result'].containing_oneof = _MUTATEOPERATIONRESPONSE.oneofs_by_name['response'] +_MUTATEOPERATIONRESPONSE.oneofs_by_name['response'].fields.append( + _MUTATEOPERATIONRESPONSE.fields_by_name['ad_group_ad_result']) +_MUTATEOPERATIONRESPONSE.fields_by_name['ad_group_ad_result'].containing_oneof = _MUTATEOPERATIONRESPONSE.oneofs_by_name['response'] +_MUTATEOPERATIONRESPONSE.oneofs_by_name['response'].fields.append( + _MUTATEOPERATIONRESPONSE.fields_by_name['ad_group_bid_modifier_result']) +_MUTATEOPERATIONRESPONSE.fields_by_name['ad_group_bid_modifier_result'].containing_oneof = _MUTATEOPERATIONRESPONSE.oneofs_by_name['response'] +_MUTATEOPERATIONRESPONSE.oneofs_by_name['response'].fields.append( + _MUTATEOPERATIONRESPONSE.fields_by_name['ad_group_criterion_label_result']) +_MUTATEOPERATIONRESPONSE.fields_by_name['ad_group_criterion_label_result'].containing_oneof = _MUTATEOPERATIONRESPONSE.oneofs_by_name['response'] +_MUTATEOPERATIONRESPONSE.oneofs_by_name['response'].fields.append( + _MUTATEOPERATIONRESPONSE.fields_by_name['ad_group_criterion_result']) +_MUTATEOPERATIONRESPONSE.fields_by_name['ad_group_criterion_result'].containing_oneof = _MUTATEOPERATIONRESPONSE.oneofs_by_name['response'] +_MUTATEOPERATIONRESPONSE.oneofs_by_name['response'].fields.append( + _MUTATEOPERATIONRESPONSE.fields_by_name['ad_group_extension_setting_result']) +_MUTATEOPERATIONRESPONSE.fields_by_name['ad_group_extension_setting_result'].containing_oneof = _MUTATEOPERATIONRESPONSE.oneofs_by_name['response'] +_MUTATEOPERATIONRESPONSE.oneofs_by_name['response'].fields.append( + _MUTATEOPERATIONRESPONSE.fields_by_name['ad_group_feed_result']) +_MUTATEOPERATIONRESPONSE.fields_by_name['ad_group_feed_result'].containing_oneof = _MUTATEOPERATIONRESPONSE.oneofs_by_name['response'] +_MUTATEOPERATIONRESPONSE.oneofs_by_name['response'].fields.append( + _MUTATEOPERATIONRESPONSE.fields_by_name['ad_group_label_result']) +_MUTATEOPERATIONRESPONSE.fields_by_name['ad_group_label_result'].containing_oneof = _MUTATEOPERATIONRESPONSE.oneofs_by_name['response'] +_MUTATEOPERATIONRESPONSE.oneofs_by_name['response'].fields.append( + _MUTATEOPERATIONRESPONSE.fields_by_name['ad_group_result']) +_MUTATEOPERATIONRESPONSE.fields_by_name['ad_group_result'].containing_oneof = _MUTATEOPERATIONRESPONSE.oneofs_by_name['response'] +_MUTATEOPERATIONRESPONSE.oneofs_by_name['response'].fields.append( + _MUTATEOPERATIONRESPONSE.fields_by_name['ad_parameter_result']) +_MUTATEOPERATIONRESPONSE.fields_by_name['ad_parameter_result'].containing_oneof = _MUTATEOPERATIONRESPONSE.oneofs_by_name['response'] +_MUTATEOPERATIONRESPONSE.oneofs_by_name['response'].fields.append( + _MUTATEOPERATIONRESPONSE.fields_by_name['ad_result']) +_MUTATEOPERATIONRESPONSE.fields_by_name['ad_result'].containing_oneof = _MUTATEOPERATIONRESPONSE.oneofs_by_name['response'] +_MUTATEOPERATIONRESPONSE.oneofs_by_name['response'].fields.append( + _MUTATEOPERATIONRESPONSE.fields_by_name['asset_result']) +_MUTATEOPERATIONRESPONSE.fields_by_name['asset_result'].containing_oneof = _MUTATEOPERATIONRESPONSE.oneofs_by_name['response'] +_MUTATEOPERATIONRESPONSE.oneofs_by_name['response'].fields.append( + _MUTATEOPERATIONRESPONSE.fields_by_name['bidding_strategy_result']) +_MUTATEOPERATIONRESPONSE.fields_by_name['bidding_strategy_result'].containing_oneof = _MUTATEOPERATIONRESPONSE.oneofs_by_name['response'] +_MUTATEOPERATIONRESPONSE.oneofs_by_name['response'].fields.append( + _MUTATEOPERATIONRESPONSE.fields_by_name['campaign_bid_modifier_result']) +_MUTATEOPERATIONRESPONSE.fields_by_name['campaign_bid_modifier_result'].containing_oneof = _MUTATEOPERATIONRESPONSE.oneofs_by_name['response'] +_MUTATEOPERATIONRESPONSE.oneofs_by_name['response'].fields.append( + _MUTATEOPERATIONRESPONSE.fields_by_name['campaign_budget_result']) +_MUTATEOPERATIONRESPONSE.fields_by_name['campaign_budget_result'].containing_oneof = _MUTATEOPERATIONRESPONSE.oneofs_by_name['response'] +_MUTATEOPERATIONRESPONSE.oneofs_by_name['response'].fields.append( + _MUTATEOPERATIONRESPONSE.fields_by_name['campaign_criterion_result']) +_MUTATEOPERATIONRESPONSE.fields_by_name['campaign_criterion_result'].containing_oneof = _MUTATEOPERATIONRESPONSE.oneofs_by_name['response'] +_MUTATEOPERATIONRESPONSE.oneofs_by_name['response'].fields.append( + _MUTATEOPERATIONRESPONSE.fields_by_name['campaign_draft_result']) +_MUTATEOPERATIONRESPONSE.fields_by_name['campaign_draft_result'].containing_oneof = _MUTATEOPERATIONRESPONSE.oneofs_by_name['response'] +_MUTATEOPERATIONRESPONSE.oneofs_by_name['response'].fields.append( + _MUTATEOPERATIONRESPONSE.fields_by_name['campaign_experiment_result']) +_MUTATEOPERATIONRESPONSE.fields_by_name['campaign_experiment_result'].containing_oneof = _MUTATEOPERATIONRESPONSE.oneofs_by_name['response'] +_MUTATEOPERATIONRESPONSE.oneofs_by_name['response'].fields.append( + _MUTATEOPERATIONRESPONSE.fields_by_name['campaign_extension_setting_result']) +_MUTATEOPERATIONRESPONSE.fields_by_name['campaign_extension_setting_result'].containing_oneof = _MUTATEOPERATIONRESPONSE.oneofs_by_name['response'] +_MUTATEOPERATIONRESPONSE.oneofs_by_name['response'].fields.append( + _MUTATEOPERATIONRESPONSE.fields_by_name['campaign_feed_result']) +_MUTATEOPERATIONRESPONSE.fields_by_name['campaign_feed_result'].containing_oneof = _MUTATEOPERATIONRESPONSE.oneofs_by_name['response'] +_MUTATEOPERATIONRESPONSE.oneofs_by_name['response'].fields.append( + _MUTATEOPERATIONRESPONSE.fields_by_name['campaign_label_result']) +_MUTATEOPERATIONRESPONSE.fields_by_name['campaign_label_result'].containing_oneof = _MUTATEOPERATIONRESPONSE.oneofs_by_name['response'] +_MUTATEOPERATIONRESPONSE.oneofs_by_name['response'].fields.append( + _MUTATEOPERATIONRESPONSE.fields_by_name['campaign_result']) +_MUTATEOPERATIONRESPONSE.fields_by_name['campaign_result'].containing_oneof = _MUTATEOPERATIONRESPONSE.oneofs_by_name['response'] +_MUTATEOPERATIONRESPONSE.oneofs_by_name['response'].fields.append( + _MUTATEOPERATIONRESPONSE.fields_by_name['campaign_shared_set_result']) +_MUTATEOPERATIONRESPONSE.fields_by_name['campaign_shared_set_result'].containing_oneof = _MUTATEOPERATIONRESPONSE.oneofs_by_name['response'] +_MUTATEOPERATIONRESPONSE.oneofs_by_name['response'].fields.append( + _MUTATEOPERATIONRESPONSE.fields_by_name['conversion_action_result']) +_MUTATEOPERATIONRESPONSE.fields_by_name['conversion_action_result'].containing_oneof = _MUTATEOPERATIONRESPONSE.oneofs_by_name['response'] +_MUTATEOPERATIONRESPONSE.oneofs_by_name['response'].fields.append( + _MUTATEOPERATIONRESPONSE.fields_by_name['customer_extension_setting_result']) +_MUTATEOPERATIONRESPONSE.fields_by_name['customer_extension_setting_result'].containing_oneof = _MUTATEOPERATIONRESPONSE.oneofs_by_name['response'] +_MUTATEOPERATIONRESPONSE.oneofs_by_name['response'].fields.append( + _MUTATEOPERATIONRESPONSE.fields_by_name['customer_feed_result']) +_MUTATEOPERATIONRESPONSE.fields_by_name['customer_feed_result'].containing_oneof = _MUTATEOPERATIONRESPONSE.oneofs_by_name['response'] +_MUTATEOPERATIONRESPONSE.oneofs_by_name['response'].fields.append( + _MUTATEOPERATIONRESPONSE.fields_by_name['customer_label_result']) +_MUTATEOPERATIONRESPONSE.fields_by_name['customer_label_result'].containing_oneof = _MUTATEOPERATIONRESPONSE.oneofs_by_name['response'] +_MUTATEOPERATIONRESPONSE.oneofs_by_name['response'].fields.append( + _MUTATEOPERATIONRESPONSE.fields_by_name['customer_negative_criterion_result']) +_MUTATEOPERATIONRESPONSE.fields_by_name['customer_negative_criterion_result'].containing_oneof = _MUTATEOPERATIONRESPONSE.oneofs_by_name['response'] +_MUTATEOPERATIONRESPONSE.oneofs_by_name['response'].fields.append( + _MUTATEOPERATIONRESPONSE.fields_by_name['customer_result']) +_MUTATEOPERATIONRESPONSE.fields_by_name['customer_result'].containing_oneof = _MUTATEOPERATIONRESPONSE.oneofs_by_name['response'] +_MUTATEOPERATIONRESPONSE.oneofs_by_name['response'].fields.append( + _MUTATEOPERATIONRESPONSE.fields_by_name['extension_feed_item_result']) +_MUTATEOPERATIONRESPONSE.fields_by_name['extension_feed_item_result'].containing_oneof = _MUTATEOPERATIONRESPONSE.oneofs_by_name['response'] +_MUTATEOPERATIONRESPONSE.oneofs_by_name['response'].fields.append( + _MUTATEOPERATIONRESPONSE.fields_by_name['feed_item_result']) +_MUTATEOPERATIONRESPONSE.fields_by_name['feed_item_result'].containing_oneof = _MUTATEOPERATIONRESPONSE.oneofs_by_name['response'] +_MUTATEOPERATIONRESPONSE.oneofs_by_name['response'].fields.append( + _MUTATEOPERATIONRESPONSE.fields_by_name['feed_item_target_result']) +_MUTATEOPERATIONRESPONSE.fields_by_name['feed_item_target_result'].containing_oneof = _MUTATEOPERATIONRESPONSE.oneofs_by_name['response'] +_MUTATEOPERATIONRESPONSE.oneofs_by_name['response'].fields.append( + _MUTATEOPERATIONRESPONSE.fields_by_name['feed_mapping_result']) +_MUTATEOPERATIONRESPONSE.fields_by_name['feed_mapping_result'].containing_oneof = _MUTATEOPERATIONRESPONSE.oneofs_by_name['response'] +_MUTATEOPERATIONRESPONSE.oneofs_by_name['response'].fields.append( + _MUTATEOPERATIONRESPONSE.fields_by_name['feed_result']) +_MUTATEOPERATIONRESPONSE.fields_by_name['feed_result'].containing_oneof = _MUTATEOPERATIONRESPONSE.oneofs_by_name['response'] +_MUTATEOPERATIONRESPONSE.oneofs_by_name['response'].fields.append( + _MUTATEOPERATIONRESPONSE.fields_by_name['keyword_plan_ad_group_result']) +_MUTATEOPERATIONRESPONSE.fields_by_name['keyword_plan_ad_group_result'].containing_oneof = _MUTATEOPERATIONRESPONSE.oneofs_by_name['response'] +_MUTATEOPERATIONRESPONSE.oneofs_by_name['response'].fields.append( + _MUTATEOPERATIONRESPONSE.fields_by_name['keyword_plan_campaign_result']) +_MUTATEOPERATIONRESPONSE.fields_by_name['keyword_plan_campaign_result'].containing_oneof = _MUTATEOPERATIONRESPONSE.oneofs_by_name['response'] +_MUTATEOPERATIONRESPONSE.oneofs_by_name['response'].fields.append( + _MUTATEOPERATIONRESPONSE.fields_by_name['keyword_plan_ad_group_keyword_result']) +_MUTATEOPERATIONRESPONSE.fields_by_name['keyword_plan_ad_group_keyword_result'].containing_oneof = _MUTATEOPERATIONRESPONSE.oneofs_by_name['response'] +_MUTATEOPERATIONRESPONSE.oneofs_by_name['response'].fields.append( + _MUTATEOPERATIONRESPONSE.fields_by_name['keyword_plan_campaign_keyword_result']) +_MUTATEOPERATIONRESPONSE.fields_by_name['keyword_plan_campaign_keyword_result'].containing_oneof = _MUTATEOPERATIONRESPONSE.oneofs_by_name['response'] +_MUTATEOPERATIONRESPONSE.oneofs_by_name['response'].fields.append( + _MUTATEOPERATIONRESPONSE.fields_by_name['keyword_plan_result']) +_MUTATEOPERATIONRESPONSE.fields_by_name['keyword_plan_result'].containing_oneof = _MUTATEOPERATIONRESPONSE.oneofs_by_name['response'] +_MUTATEOPERATIONRESPONSE.oneofs_by_name['response'].fields.append( + _MUTATEOPERATIONRESPONSE.fields_by_name['label_result']) +_MUTATEOPERATIONRESPONSE.fields_by_name['label_result'].containing_oneof = _MUTATEOPERATIONRESPONSE.oneofs_by_name['response'] +_MUTATEOPERATIONRESPONSE.oneofs_by_name['response'].fields.append( + _MUTATEOPERATIONRESPONSE.fields_by_name['media_file_result']) +_MUTATEOPERATIONRESPONSE.fields_by_name['media_file_result'].containing_oneof = _MUTATEOPERATIONRESPONSE.oneofs_by_name['response'] +_MUTATEOPERATIONRESPONSE.oneofs_by_name['response'].fields.append( + _MUTATEOPERATIONRESPONSE.fields_by_name['remarketing_action_result']) +_MUTATEOPERATIONRESPONSE.fields_by_name['remarketing_action_result'].containing_oneof = _MUTATEOPERATIONRESPONSE.oneofs_by_name['response'] +_MUTATEOPERATIONRESPONSE.oneofs_by_name['response'].fields.append( + _MUTATEOPERATIONRESPONSE.fields_by_name['shared_criterion_result']) +_MUTATEOPERATIONRESPONSE.fields_by_name['shared_criterion_result'].containing_oneof = _MUTATEOPERATIONRESPONSE.oneofs_by_name['response'] +_MUTATEOPERATIONRESPONSE.oneofs_by_name['response'].fields.append( + _MUTATEOPERATIONRESPONSE.fields_by_name['shared_set_result']) +_MUTATEOPERATIONRESPONSE.fields_by_name['shared_set_result'].containing_oneof = _MUTATEOPERATIONRESPONSE.oneofs_by_name['response'] +_MUTATEOPERATIONRESPONSE.oneofs_by_name['response'].fields.append( + _MUTATEOPERATIONRESPONSE.fields_by_name['user_list_result']) +_MUTATEOPERATIONRESPONSE.fields_by_name['user_list_result'].containing_oneof = _MUTATEOPERATIONRESPONSE.oneofs_by_name['response'] +DESCRIPTOR.message_types_by_name['SearchGoogleAdsRequest'] = _SEARCHGOOGLEADSREQUEST +DESCRIPTOR.message_types_by_name['SearchGoogleAdsResponse'] = _SEARCHGOOGLEADSRESPONSE +DESCRIPTOR.message_types_by_name['SearchGoogleAdsStreamRequest'] = _SEARCHGOOGLEADSSTREAMREQUEST +DESCRIPTOR.message_types_by_name['SearchGoogleAdsStreamResponse'] = _SEARCHGOOGLEADSSTREAMRESPONSE +DESCRIPTOR.message_types_by_name['GoogleAdsRow'] = _GOOGLEADSROW +DESCRIPTOR.message_types_by_name['MutateGoogleAdsRequest'] = _MUTATEGOOGLEADSREQUEST +DESCRIPTOR.message_types_by_name['MutateGoogleAdsResponse'] = _MUTATEGOOGLEADSRESPONSE +DESCRIPTOR.message_types_by_name['MutateOperation'] = _MUTATEOPERATION +DESCRIPTOR.message_types_by_name['MutateOperationResponse'] = _MUTATEOPERATIONRESPONSE +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +SearchGoogleAdsRequest = _reflection.GeneratedProtocolMessageType('SearchGoogleAdsRequest', (_message.Message,), dict( + DESCRIPTOR = _SEARCHGOOGLEADSREQUEST, + __module__ = 'google.ads.googleads_v4.proto.services.google_ads_service_pb2' + , + __doc__ = """Request message for + [GoogleAdsService.Search][google.ads.googleads.v4.services.GoogleAdsService.Search]. + + + Attributes: + customer_id: + Required. The ID of the customer being queried. + query: + Required. The query string. + page_token: + Token of the page to retrieve. If not specified, the first + page of results will be returned. Use the value obtained from + ``next_page_token`` in the previous response in order to + request the next page of results. + page_size: + Number of elements to retrieve in a single page. When too + large a page is requested, the server may decide to further + limit the number of returned resources. + validate_only: + If true, the request is validated but not executed. + return_total_results_count: + If true, the total number of results that match the query + ignoring the LIMIT clause will be included in the response. + Default is false. + summary_row_setting: + Determines whether a summary row will be returned. By default, + summary row is not returned. If requested, the summary row + will be sent in a response by itself after all other query + results are returned. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.SearchGoogleAdsRequest) + )) +_sym_db.RegisterMessage(SearchGoogleAdsRequest) + +SearchGoogleAdsResponse = _reflection.GeneratedProtocolMessageType('SearchGoogleAdsResponse', (_message.Message,), dict( + DESCRIPTOR = _SEARCHGOOGLEADSRESPONSE, + __module__ = 'google.ads.googleads_v4.proto.services.google_ads_service_pb2' + , + __doc__ = """Response message for + [GoogleAdsService.Search][google.ads.googleads.v4.services.GoogleAdsService.Search]. + + + Attributes: + results: + The list of rows that matched the query. + next_page_token: + Pagination token used to retrieve the next page of results. + Pass the content of this string as the ``page_token`` + attribute of the next request. ``next_page_token`` is not + returned for the last page. + total_results_count: + Total number of results that match the query ignoring the + LIMIT clause. + field_mask: + FieldMask that represents what fields were requested by the + user. + summary_row: + Summary row that contains summary of metrics in results. + Summary of metrics means aggregation of metrics across all + results, here aggregation could be sum, average, rate, etc. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.SearchGoogleAdsResponse) + )) +_sym_db.RegisterMessage(SearchGoogleAdsResponse) + +SearchGoogleAdsStreamRequest = _reflection.GeneratedProtocolMessageType('SearchGoogleAdsStreamRequest', (_message.Message,), dict( + DESCRIPTOR = _SEARCHGOOGLEADSSTREAMREQUEST, + __module__ = 'google.ads.googleads_v4.proto.services.google_ads_service_pb2' + , + __doc__ = """Request message for + [GoogleAdsService.SearchStream][google.ads.googleads.v4.services.GoogleAdsService.SearchStream]. + + + Attributes: + customer_id: + Required. The ID of the customer being queried. + query: + Required. The query string. + summary_row_setting: + Determines whether a summary row will be returned. By default, + summary row is not returned. If requested, the summary row + will be sent in a response by itself after all other query + results are returned. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.SearchGoogleAdsStreamRequest) + )) +_sym_db.RegisterMessage(SearchGoogleAdsStreamRequest) + +SearchGoogleAdsStreamResponse = _reflection.GeneratedProtocolMessageType('SearchGoogleAdsStreamResponse', (_message.Message,), dict( + DESCRIPTOR = _SEARCHGOOGLEADSSTREAMRESPONSE, + __module__ = 'google.ads.googleads_v4.proto.services.google_ads_service_pb2' + , + __doc__ = """Response message for + [GoogleAdsService.SearchStream][google.ads.googleads.v4.services.GoogleAdsService.SearchStream]. + + + Attributes: + results: + The list of rows that matched the query. + field_mask: + FieldMask that represents what fields were requested by the + user. + summary_row: + Summary row that contains summary of metrics in results. + Summary of metrics means aggregation of metrics across all + results, here aggregation could be sum, average, rate, etc. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.SearchGoogleAdsStreamResponse) + )) +_sym_db.RegisterMessage(SearchGoogleAdsStreamResponse) + +GoogleAdsRow = _reflection.GeneratedProtocolMessageType('GoogleAdsRow', (_message.Message,), dict( + DESCRIPTOR = _GOOGLEADSROW, + __module__ = 'google.ads.googleads_v4.proto.services.google_ads_service_pb2' + , + __doc__ = """A returned row from the query. + + + Attributes: + account_budget: + The account budget in the query. + account_budget_proposal: + The account budget proposal referenced in the query. + account_link: + The AccountLink referenced in the query. + ad_group: + The ad group referenced in the query. + ad_group_ad: + The ad referenced in the query. + ad_group_ad_asset_view: + The ad group ad asset view in the query. + ad_group_ad_label: + The ad group ad label referenced in the query. + ad_group_audience_view: + The ad group audience view referenced in the query. + ad_group_bid_modifier: + The bid modifier referenced in the query. + ad_group_criterion: + The criterion referenced in the query. + ad_group_criterion_label: + The ad group criterion label referenced in the query. + ad_group_criterion_simulation: + The ad group criterion simulation referenced in the query. + ad_group_extension_setting: + The ad group extension setting referenced in the query. + ad_group_feed: + The ad group feed referenced in the query. + ad_group_label: + The ad group label referenced in the query. + ad_group_simulation: + The ad group simulation referenced in the query. + ad_parameter: + The ad parameter referenced in the query. + age_range_view: + The age range view referenced in the query. + ad_schedule_view: + The ad schedule view referenced in the query. + domain_category: + The domain category referenced in the query. + asset: + The asset referenced in the query. + batch_job: + The batch job referenced in the query. + bidding_strategy: + The bidding strategy referenced in the query. + billing_setup: + The billing setup referenced in the query. + campaign_budget: + The campaign budget referenced in the query. + campaign: + The campaign referenced in the query. + campaign_audience_view: + The campaign audience view referenced in the query. + campaign_bid_modifier: + The campaign bid modifier referenced in the query. + campaign_criterion: + The campaign criterion referenced in the query. + campaign_criterion_simulation: + The campaign criterion simulation referenced in the query. + campaign_draft: + The campaign draft referenced in the query. + campaign_experiment: + The campaign experiment referenced in the query. + campaign_extension_setting: + The campaign extension setting referenced in the query. + campaign_feed: + The campaign feed referenced in the query. + campaign_label: + The campaign label referenced in the query. + campaign_shared_set: + Campaign Shared Set referenced in AWQL query. + carrier_constant: + The carrier constant referenced in the query. + change_status: + The ChangeStatus referenced in the query. + conversion_action: + The conversion action referenced in the query. + click_view: + The ClickView referenced in the query. + currency_constant: + The currency constant referenced in the query. + custom_interest: + The CustomInterest referenced in the query. + customer: + The customer referenced in the query. + customer_manager_link: + The CustomerManagerLink referenced in the query. + customer_client_link: + The CustomerClientLink referenced in the query. + customer_client: + The CustomerClient referenced in the query. + customer_extension_setting: + The customer extension setting referenced in the query. + customer_feed: + The customer feed referenced in the query. + customer_label: + The customer label referenced in the query. + customer_negative_criterion: + The customer negative criterion referenced in the query. + detail_placement_view: + The detail placement view referenced in the query. + display_keyword_view: + The display keyword view referenced in the query. + distance_view: + The distance view referenced in the query. + dynamic_search_ads_search_term_view: + The dynamic search ads search term view referenced in the + query. + expanded_landing_page_view: + The expanded landing page view referenced in the query. + extension_feed_item: + The extension feed item referenced in the query. + feed: + The feed referenced in the query. + feed_item: + The feed item referenced in the query. + feed_item_target: + The feed item target referenced in the query. + feed_mapping: + The feed mapping referenced in the query. + feed_placeholder_view: + The feed placeholder view referenced in the query. + gender_view: + The gender view referenced in the query. + geo_target_constant: + The geo target constant referenced in the query. + geographic_view: + The geographic view referenced in the query. + group_placement_view: + The group placement view referenced in the query. + hotel_group_view: + The hotel group view referenced in the query. + hotel_performance_view: + The hotel performance view referenced in the query. + income_range_view: + The income range view referenced in the query. + keyword_view: + The keyword view referenced in the query. + keyword_plan: + The keyword plan referenced in the query. + keyword_plan_campaign: + The keyword plan campaign referenced in the query. + keyword_plan_campaign_keyword: + The keyword plan campaign keyword referenced in the query. + keyword_plan_ad_group: + The keyword plan ad group referenced in the query. + keyword_plan_ad_group_keyword: + The keyword plan ad group referenced in the query. + label: + The label referenced in the query. + landing_page_view: + The landing page view referenced in the query. + language_constant: + The language constant referenced in the query. + location_view: + The location view referenced in the query. + managed_placement_view: + The managed placement view referenced in the query. + media_file: + The media file referenced in the query. + mobile_app_category_constant: + The mobile app category constant referenced in the query. + mobile_device_constant: + The mobile device constant referenced in the query. + offline_user_data_job: + The offline user data job referenced in the query. + operating_system_version_constant: + The operating system version constant referenced in the query. + paid_organic_search_term_view: + The paid organic search term view referenced in the query. + parental_status_view: + The parental status view referenced in the query. + product_bidding_category_constant: + The Product Bidding Category referenced in the query. + product_group_view: + The product group view referenced in the query. + recommendation: + The recommendation referenced in the query. + search_term_view: + The search term view referenced in the query. + shared_criterion: + The shared set referenced in the query. + shared_set: + The shared set referenced in the query. + shopping_performance_view: + The shopping performance view referenced in the query. + third_party_app_analytics_link: + The AccountLink referenced in the query. + topic_view: + The topic view referenced in the query. + user_interest: + The user interest referenced in the query. + user_list: + The user list referenced in the query. + user_location_view: + The user location view referenced in the query. + remarketing_action: + The remarketing action referenced in the query. + topic_constant: + The topic constant referenced in the query. + video: + The video referenced in the query. + metrics: + The metrics. + segments: + The segments. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.GoogleAdsRow) + )) +_sym_db.RegisterMessage(GoogleAdsRow) + +MutateGoogleAdsRequest = _reflection.GeneratedProtocolMessageType('MutateGoogleAdsRequest', (_message.Message,), dict( + DESCRIPTOR = _MUTATEGOOGLEADSREQUEST, + __module__ = 'google.ads.googleads_v4.proto.services.google_ads_service_pb2' + , + __doc__ = """Request message for + [GoogleAdsService.Mutate][google.ads.googleads.v4.services.GoogleAdsService.Mutate]. + + + Attributes: + customer_id: + Required. The ID of the customer whose resources are being + modified. + mutate_operations: + Required. The list of operations to perform on individual + resources. + partial_failure: + If true, successful operations will be carried out and invalid + operations will return errors. If false, all operations will + be carried out in one transaction if and only if they are all + valid. Default is false. + validate_only: + If true, the request is validated but not executed. Only + errors are returned, not results. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.MutateGoogleAdsRequest) + )) +_sym_db.RegisterMessage(MutateGoogleAdsRequest) + +MutateGoogleAdsResponse = _reflection.GeneratedProtocolMessageType('MutateGoogleAdsResponse', (_message.Message,), dict( + DESCRIPTOR = _MUTATEGOOGLEADSRESPONSE, + __module__ = 'google.ads.googleads_v4.proto.services.google_ads_service_pb2' + , + __doc__ = """Response message for + [GoogleAdsService.Mutate][google.ads.googleads.v4.services.GoogleAdsService.Mutate]. + + + Attributes: + partial_failure_error: + Errors that pertain to operation failures in the partial + failure mode. Returned only when partial\_failure = true and + all errors occur inside the operations. If any errors occur + outside the operations (e.g., auth errors), we return an RPC + level error. + mutate_operation_responses: + All responses for the mutate. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.MutateGoogleAdsResponse) + )) +_sym_db.RegisterMessage(MutateGoogleAdsResponse) + +MutateOperation = _reflection.GeneratedProtocolMessageType('MutateOperation', (_message.Message,), dict( + DESCRIPTOR = _MUTATEOPERATION, + __module__ = 'google.ads.googleads_v4.proto.services.google_ads_service_pb2' + , + __doc__ = """A single operation (create, update, remove) on a resource. + + + Attributes: + operation: + The mutate operation. + ad_group_ad_label_operation: + An ad group ad label mutate operation. + ad_group_ad_operation: + An ad group ad mutate operation. + ad_group_bid_modifier_operation: + An ad group bid modifier mutate operation. + ad_group_criterion_label_operation: + An ad group criterion label mutate operation. + ad_group_criterion_operation: + An ad group criterion mutate operation. + ad_group_extension_setting_operation: + An ad group extension setting mutate operation. + ad_group_feed_operation: + An ad group feed mutate operation. + ad_group_label_operation: + An ad group label mutate operation. + ad_group_operation: + An ad group mutate operation. + ad_operation: + An ad mutate operation. + ad_parameter_operation: + An ad parameter mutate operation. + asset_operation: + An asset mutate operation. + bidding_strategy_operation: + A bidding strategy mutate operation. + campaign_bid_modifier_operation: + A campaign bid modifier mutate operation. + campaign_budget_operation: + A campaign budget mutate operation. + campaign_criterion_operation: + A campaign criterion mutate operation. + campaign_draft_operation: + A campaign draft mutate operation. + campaign_experiment_operation: + A campaign experiment mutate operation. + campaign_extension_setting_operation: + A campaign extension setting mutate operation. + campaign_feed_operation: + A campaign feed mutate operation. + campaign_label_operation: + A campaign label mutate operation. + campaign_operation: + A campaign mutate operation. + campaign_shared_set_operation: + A campaign shared set mutate operation. + conversion_action_operation: + A conversion action mutate operation. + customer_extension_setting_operation: + A customer extension setting mutate operation. + customer_feed_operation: + A customer feed mutate operation. + customer_label_operation: + A customer label mutate operation. + customer_negative_criterion_operation: + A customer negative criterion mutate operation. + customer_operation: + A customer mutate operation. + extension_feed_item_operation: + An extension feed item mutate operation. + feed_item_operation: + A feed item mutate operation. + feed_item_target_operation: + A feed item target mutate operation. + feed_mapping_operation: + A feed mapping mutate operation. + feed_operation: + A feed mutate operation. + keyword_plan_ad_group_operation: + A keyword plan ad group operation. + keyword_plan_ad_group_keyword_operation: + A keyword plan ad group keyword operation. + keyword_plan_campaign_keyword_operation: + A keyword plan campaign keyword operation. + keyword_plan_campaign_operation: + A keyword plan campaign operation. + keyword_plan_operation: + A keyword plan operation. + label_operation: + A label mutate operation. + media_file_operation: + A media file mutate operation. + remarketing_action_operation: + A remarketing action mutate operation. + shared_criterion_operation: + A shared criterion mutate operation. + shared_set_operation: + A shared set mutate operation. + user_list_operation: + A user list mutate operation. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.MutateOperation) + )) +_sym_db.RegisterMessage(MutateOperation) + +MutateOperationResponse = _reflection.GeneratedProtocolMessageType('MutateOperationResponse', (_message.Message,), dict( + DESCRIPTOR = _MUTATEOPERATIONRESPONSE, + __module__ = 'google.ads.googleads_v4.proto.services.google_ads_service_pb2' + , + __doc__ = """Response message for the resource mutate. + + + Attributes: + response: + The mutate response. + ad_group_ad_label_result: + The result for the ad group ad label mutate. + ad_group_ad_result: + The result for the ad group ad mutate. + ad_group_bid_modifier_result: + The result for the ad group bid modifier mutate. + ad_group_criterion_label_result: + The result for the ad group criterion label mutate. + ad_group_criterion_result: + The result for the ad group criterion mutate. + ad_group_extension_setting_result: + The result for the ad group extension setting mutate. + ad_group_feed_result: + The result for the ad group feed mutate. + ad_group_label_result: + The result for the ad group label mutate. + ad_group_result: + The result for the ad group mutate. + ad_parameter_result: + The result for the ad parameter mutate. + ad_result: + The result for the ad mutate. + asset_result: + The result for the asset mutate. + bidding_strategy_result: + The result for the bidding strategy mutate. + campaign_bid_modifier_result: + The result for the campaign bid modifier mutate. + campaign_budget_result: + The result for the campaign budget mutate. + campaign_criterion_result: + The result for the campaign criterion mutate. + campaign_draft_result: + The result for the campaign draft mutate. + campaign_experiment_result: + The result for the campaign experiment mutate. + campaign_extension_setting_result: + The result for the campaign extension setting mutate. + campaign_feed_result: + The result for the campaign feed mutate. + campaign_label_result: + The result for the campaign label mutate. + campaign_result: + The result for the campaign mutate. + campaign_shared_set_result: + The result for the campaign shared set mutate. + conversion_action_result: + The result for the conversion action mutate. + customer_extension_setting_result: + The result for the customer extension setting mutate. + customer_feed_result: + The result for the customer feed mutate. + customer_label_result: + The result for the customer label mutate. + customer_negative_criterion_result: + The result for the customer negative criterion mutate. + customer_result: + The result for the customer mutate. + extension_feed_item_result: + The result for the extension feed item mutate. + feed_item_result: + The result for the feed item mutate. + feed_item_target_result: + The result for the feed item target mutate. + feed_mapping_result: + The result for the feed mapping mutate. + feed_result: + The result for the feed mutate. + keyword_plan_ad_group_result: + The result for the keyword plan ad group mutate. + keyword_plan_campaign_result: + The result for the keyword plan campaign mutate. + keyword_plan_ad_group_keyword_result: + The result for the keyword plan ad group keyword mutate. + keyword_plan_campaign_keyword_result: + The result for the keyword plan campaign keyword mutate. + keyword_plan_result: + The result for the keyword plan mutate. + label_result: + The result for the label mutate. + media_file_result: + The result for the media file mutate. + remarketing_action_result: + The result for the remarketing action mutate. + shared_criterion_result: + The result for the shared criterion mutate. + shared_set_result: + The result for the shared set mutate. + user_list_result: + The result for the user list mutate. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.MutateOperationResponse) + )) +_sym_db.RegisterMessage(MutateOperationResponse) + + +DESCRIPTOR._options = None +_SEARCHGOOGLEADSREQUEST.fields_by_name['customer_id']._options = None +_SEARCHGOOGLEADSREQUEST.fields_by_name['query']._options = None +_SEARCHGOOGLEADSSTREAMREQUEST.fields_by_name['customer_id']._options = None +_SEARCHGOOGLEADSSTREAMREQUEST.fields_by_name['query']._options = None +_MUTATEGOOGLEADSREQUEST.fields_by_name['customer_id']._options = None +_MUTATEGOOGLEADSREQUEST.fields_by_name['mutate_operations']._options = None + +_GOOGLEADSSERVICE = _descriptor.ServiceDescriptor( + name='GoogleAdsService', + full_name='google.ads.googleads.v4.services.GoogleAdsService', + file=DESCRIPTOR, + index=0, + serialized_options=_b('\312A\030googleads.googleapis.com'), + serialized_start=28527, + serialized_end=29233, + methods=[ + _descriptor.MethodDescriptor( + name='Search', + full_name='google.ads.googleads.v4.services.GoogleAdsService.Search', + index=0, + containing_service=None, + input_type=_SEARCHGOOGLEADSREQUEST, + output_type=_SEARCHGOOGLEADSRESPONSE, + serialized_options=_b('\202\323\344\223\0023\"./v4/customers/{customer_id=*}/googleAds:search:\001*\332A\021customer_id,query'), + ), + _descriptor.MethodDescriptor( + name='SearchStream', + full_name='google.ads.googleads.v4.services.GoogleAdsService.SearchStream', + index=1, + containing_service=None, + input_type=_SEARCHGOOGLEADSSTREAMREQUEST, + output_type=_SEARCHGOOGLEADSSTREAMRESPONSE, + serialized_options=_b('\202\323\344\223\0029\"4/v4/customers/{customer_id=*}/googleAds:searchStream:\001*\332A\021customer_id,query'), + ), + _descriptor.MethodDescriptor( + name='Mutate', + full_name='google.ads.googleads.v4.services.GoogleAdsService.Mutate', + index=2, + containing_service=None, + input_type=_MUTATEGOOGLEADSREQUEST, + output_type=_MUTATEGOOGLEADSRESPONSE, + serialized_options=_b('\202\323\344\223\0023\"./v4/customers/{customer_id=*}/googleAds:mutate:\001*\332A\035customer_id,mutate_operations'), + ), +]) +_sym_db.RegisterServiceDescriptor(_GOOGLEADSSERVICE) + +DESCRIPTOR.services_by_name['GoogleAdsService'] = _GOOGLEADSSERVICE + +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v4/proto/services/google_ads_service_pb2_grpc.py b/google/ads/google_ads/v4/proto/services/google_ads_service_pb2_grpc.py new file mode 100644 index 000000000..6b726e167 --- /dev/null +++ b/google/ads/google_ads/v4/proto/services/google_ads_service_pb2_grpc.py @@ -0,0 +1,134 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +import grpc + +from google.ads.google_ads.v4.proto.services import google_ads_service_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_google__ads__service__pb2 + + +class GoogleAdsServiceStub(object): + """Proto file describing the GoogleAdsService. + + Service to fetch data and metrics across resources. + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.Search = channel.unary_unary( + '/google.ads.googleads.v4.services.GoogleAdsService/Search', + request_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_google__ads__service__pb2.SearchGoogleAdsRequest.SerializeToString, + response_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_google__ads__service__pb2.SearchGoogleAdsResponse.FromString, + ) + self.SearchStream = channel.unary_stream( + '/google.ads.googleads.v4.services.GoogleAdsService/SearchStream', + request_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_google__ads__service__pb2.SearchGoogleAdsStreamRequest.SerializeToString, + response_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_google__ads__service__pb2.SearchGoogleAdsStreamResponse.FromString, + ) + self.Mutate = channel.unary_unary( + '/google.ads.googleads.v4.services.GoogleAdsService/Mutate', + request_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_google__ads__service__pb2.MutateGoogleAdsRequest.SerializeToString, + response_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_google__ads__service__pb2.MutateGoogleAdsResponse.FromString, + ) + + +class GoogleAdsServiceServicer(object): + """Proto file describing the GoogleAdsService. + + Service to fetch data and metrics across resources. + """ + + def Search(self, request, context): + """Returns all rows that match the search query. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def SearchStream(self, request, context): + """Returns all rows that match the search stream query. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def Mutate(self, request, context): + """Creates, updates, or removes resources. This method supports atomic + transactions with multiple types of resources. For example, you can + atomically create a campaign and a campaign budget, or perform up to + thousands of mutates atomically. + + This method is essentially a wrapper around a series of mutate methods. The + only features it offers over calling those methods directly are: + + - Atomic transactions + - Temp resource names (described below) + - Somewhat reduced latency over making a series of mutate calls + + Note: Only resources that support atomic transactions are included, so this + method can't replace all calls to individual services. + + ## Atomic Transaction Benefits + + Atomicity makes error handling much easier. If you're making a series of + changes and one fails, it can leave your account in an inconsistent state. + With atomicity, you either reach the desired state directly, or the request + fails and you can retry. + + ## Temp Resource Names + + Temp resource names are a special type of resource name used to create a + resource and reference that resource in the same request. For example, if a + campaign budget is created with `resource_name` equal to + `customers/123/campaignBudgets/-1`, that resource name can be reused in + the `Campaign.budget` field in the same request. That way, the two + resources are created and linked atomically. + + To create a temp resource name, put a negative number in the part of the + name that the server would normally allocate. + + Note: + + - Resources must be created with a temp name before the name can be reused. + For example, the previous CampaignBudget+Campaign example would fail if + the mutate order was reversed. + - Temp names are not remembered across requests. + - There's no limit to the number of temp names in a request. + - Each temp name must use a unique negative number, even if the resource + types differ. + + ## Latency + + It's important to group mutates by resource type or the request may time + out and fail. Latency is roughly equal to a series of calls to individual + mutate methods, where each change in resource type is a new call. For + example, mutating 10 campaigns then 10 ad groups is like 2 calls, while + mutating 1 campaign, 1 ad group, 1 campaign, 1 ad group is like 4 calls. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_GoogleAdsServiceServicer_to_server(servicer, server): + rpc_method_handlers = { + 'Search': grpc.unary_unary_rpc_method_handler( + servicer.Search, + request_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_google__ads__service__pb2.SearchGoogleAdsRequest.FromString, + response_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_google__ads__service__pb2.SearchGoogleAdsResponse.SerializeToString, + ), + 'SearchStream': grpc.unary_stream_rpc_method_handler( + servicer.SearchStream, + request_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_google__ads__service__pb2.SearchGoogleAdsStreamRequest.FromString, + response_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_google__ads__service__pb2.SearchGoogleAdsStreamResponse.SerializeToString, + ), + 'Mutate': grpc.unary_unary_rpc_method_handler( + servicer.Mutate, + request_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_google__ads__service__pb2.MutateGoogleAdsRequest.FromString, + response_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_google__ads__service__pb2.MutateGoogleAdsResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'google.ads.googleads.v4.services.GoogleAdsService', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) diff --git a/google/ads/google_ads/v4/proto/services/group_placement_view_service_pb2.py b/google/ads/google_ads/v4/proto/services/group_placement_view_service_pb2.py new file mode 100644 index 000000000..b6f21317b --- /dev/null +++ b/google/ads/google_ads/v4/proto/services/group_placement_view_service_pb2.py @@ -0,0 +1,112 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/services/group_placement_view_service.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.ads.google_ads.v4.proto.resources import group_placement_view_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_group__placement__view__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 +from google.api import client_pb2 as google_dot_api_dot_client__pb2 +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/services/group_placement_view_service.proto', + package='google.ads.googleads.v4.services', + syntax='proto3', + serialized_options=_b('\n$com.google.ads.googleads.v4.servicesB\036GroupPlacementViewServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V4.Services\312\002 Google\\Ads\\GoogleAds\\V4\\Services\352\002$Google::Ads::GoogleAds::V4::Services'), + serialized_pb=_b('\nIgoogle/ads/googleads_v4/proto/services/group_placement_view_service.proto\x12 google.ads.googleads.v4.services\x1a\x42google/ads/googleads_v4/proto/resources/group_placement_view.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"j\n\x1cGetGroupPlacementViewRequest\x12J\n\rresource_name\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+googleads.googleapis.com/GroupPlacementView2\x98\x02\n\x19GroupPlacementViewService\x12\xdd\x01\n\x15GetGroupPlacementView\x12>.google.ads.googleads.v4.services.GetGroupPlacementViewRequest\x1a\x35.google.ads.googleads.v4.resources.GroupPlacementView\"M\x82\xd3\xe4\x93\x02\x37\x12\x35/v4/{resource_name=customers/*/groupPlacementViews/*}\xda\x41\rresource_name\x1a\x1b\xca\x41\x18googleads.googleapis.comB\x85\x02\n$com.google.ads.googleads.v4.servicesB\x1eGroupPlacementViewServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V4.Services\xca\x02 Google\\Ads\\GoogleAds\\V4\\Services\xea\x02$Google::Ads::GoogleAds::V4::Servicesb\x06proto3') + , + dependencies=[google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_group__placement__view__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_api_dot_client__pb2.DESCRIPTOR,google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_api_dot_resource__pb2.DESCRIPTOR,]) + + + + +_GETGROUPPLACEMENTVIEWREQUEST = _descriptor.Descriptor( + name='GetGroupPlacementViewRequest', + full_name='google.ads.googleads.v4.services.GetGroupPlacementViewRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.services.GetGroupPlacementViewRequest.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002\372A-\n+googleads.googleapis.com/GroupPlacementView'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=294, + serialized_end=400, +) + +DESCRIPTOR.message_types_by_name['GetGroupPlacementViewRequest'] = _GETGROUPPLACEMENTVIEWREQUEST +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +GetGroupPlacementViewRequest = _reflection.GeneratedProtocolMessageType('GetGroupPlacementViewRequest', (_message.Message,), dict( + DESCRIPTOR = _GETGROUPPLACEMENTVIEWREQUEST, + __module__ = 'google.ads.googleads_v4.proto.services.group_placement_view_service_pb2' + , + __doc__ = """Request message for + [GroupPlacementViewService.GetGroupPlacementView][google.ads.googleads.v4.services.GroupPlacementViewService.GetGroupPlacementView]. + + + Attributes: + resource_name: + Required. The resource name of the Group Placement view to + fetch. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.GetGroupPlacementViewRequest) + )) +_sym_db.RegisterMessage(GetGroupPlacementViewRequest) + + +DESCRIPTOR._options = None +_GETGROUPPLACEMENTVIEWREQUEST.fields_by_name['resource_name']._options = None + +_GROUPPLACEMENTVIEWSERVICE = _descriptor.ServiceDescriptor( + name='GroupPlacementViewService', + full_name='google.ads.googleads.v4.services.GroupPlacementViewService', + file=DESCRIPTOR, + index=0, + serialized_options=_b('\312A\030googleads.googleapis.com'), + serialized_start=403, + serialized_end=683, + methods=[ + _descriptor.MethodDescriptor( + name='GetGroupPlacementView', + full_name='google.ads.googleads.v4.services.GroupPlacementViewService.GetGroupPlacementView', + index=0, + containing_service=None, + input_type=_GETGROUPPLACEMENTVIEWREQUEST, + output_type=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_group__placement__view__pb2._GROUPPLACEMENTVIEW, + serialized_options=_b('\202\323\344\223\0027\0225/v4/{resource_name=customers/*/groupPlacementViews/*}\332A\rresource_name'), + ), +]) +_sym_db.RegisterServiceDescriptor(_GROUPPLACEMENTVIEWSERVICE) + +DESCRIPTOR.services_by_name['GroupPlacementViewService'] = _GROUPPLACEMENTVIEWSERVICE + +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v4/proto/services/group_placement_view_service_pb2_grpc.py b/google/ads/google_ads/v4/proto/services/group_placement_view_service_pb2_grpc.py new file mode 100644 index 000000000..68771ee74 --- /dev/null +++ b/google/ads/google_ads/v4/proto/services/group_placement_view_service_pb2_grpc.py @@ -0,0 +1,51 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +import grpc + +from google.ads.google_ads.v4.proto.resources import group_placement_view_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_group__placement__view__pb2 +from google.ads.google_ads.v4.proto.services import group_placement_view_service_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_group__placement__view__service__pb2 + + +class GroupPlacementViewServiceStub(object): + """Proto file describing the Group Placement View service. + + Service to fetch Group Placement views. + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.GetGroupPlacementView = channel.unary_unary( + '/google.ads.googleads.v4.services.GroupPlacementViewService/GetGroupPlacementView', + request_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_group__placement__view__service__pb2.GetGroupPlacementViewRequest.SerializeToString, + response_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_group__placement__view__pb2.GroupPlacementView.FromString, + ) + + +class GroupPlacementViewServiceServicer(object): + """Proto file describing the Group Placement View service. + + Service to fetch Group Placement views. + """ + + def GetGroupPlacementView(self, request, context): + """Returns the requested Group Placement view in full detail. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_GroupPlacementViewServiceServicer_to_server(servicer, server): + rpc_method_handlers = { + 'GetGroupPlacementView': grpc.unary_unary_rpc_method_handler( + servicer.GetGroupPlacementView, + request_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_group__placement__view__service__pb2.GetGroupPlacementViewRequest.FromString, + response_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_group__placement__view__pb2.GroupPlacementView.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'google.ads.googleads.v4.services.GroupPlacementViewService', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) diff --git a/google/ads/google_ads/v4/proto/services/hotel_group_view_service_pb2.py b/google/ads/google_ads/v4/proto/services/hotel_group_view_service_pb2.py new file mode 100644 index 000000000..d025f6089 --- /dev/null +++ b/google/ads/google_ads/v4/proto/services/hotel_group_view_service_pb2.py @@ -0,0 +1,111 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/services/hotel_group_view_service.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.ads.google_ads.v4.proto.resources import hotel_group_view_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_hotel__group__view__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 +from google.api import client_pb2 as google_dot_api_dot_client__pb2 +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/services/hotel_group_view_service.proto', + package='google.ads.googleads.v4.services', + syntax='proto3', + serialized_options=_b('\n$com.google.ads.googleads.v4.servicesB\032HotelGroupViewServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V4.Services\312\002 Google\\Ads\\GoogleAds\\V4\\Services\352\002$Google::Ads::GoogleAds::V4::Services'), + serialized_pb=_b('\nEgoogle/ads/googleads_v4/proto/services/hotel_group_view_service.proto\x12 google.ads.googleads.v4.services\x1a>google/ads/googleads_v4/proto/resources/hotel_group_view.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"b\n\x18GetHotelGroupViewRequest\x12\x46\n\rresource_name\x18\x01 \x01(\tB/\xe0\x41\x02\xfa\x41)\n\'googleads.googleapis.com/HotelGroupView2\x84\x02\n\x15HotelGroupViewService\x12\xcd\x01\n\x11GetHotelGroupView\x12:.google.ads.googleads.v4.services.GetHotelGroupViewRequest\x1a\x31.google.ads.googleads.v4.resources.HotelGroupView\"I\x82\xd3\xe4\x93\x02\x33\x12\x31/v4/{resource_name=customers/*/hotelGroupViews/*}\xda\x41\rresource_name\x1a\x1b\xca\x41\x18googleads.googleapis.comB\x81\x02\n$com.google.ads.googleads.v4.servicesB\x1aHotelGroupViewServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V4.Services\xca\x02 Google\\Ads\\GoogleAds\\V4\\Services\xea\x02$Google::Ads::GoogleAds::V4::Servicesb\x06proto3') + , + dependencies=[google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_hotel__group__view__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_api_dot_client__pb2.DESCRIPTOR,google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_api_dot_resource__pb2.DESCRIPTOR,]) + + + + +_GETHOTELGROUPVIEWREQUEST = _descriptor.Descriptor( + name='GetHotelGroupViewRequest', + full_name='google.ads.googleads.v4.services.GetHotelGroupViewRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.services.GetHotelGroupViewRequest.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002\372A)\n\'googleads.googleapis.com/HotelGroupView'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=286, + serialized_end=384, +) + +DESCRIPTOR.message_types_by_name['GetHotelGroupViewRequest'] = _GETHOTELGROUPVIEWREQUEST +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +GetHotelGroupViewRequest = _reflection.GeneratedProtocolMessageType('GetHotelGroupViewRequest', (_message.Message,), dict( + DESCRIPTOR = _GETHOTELGROUPVIEWREQUEST, + __module__ = 'google.ads.googleads_v4.proto.services.hotel_group_view_service_pb2' + , + __doc__ = """Request message for + [HotelGroupViewService.GetHotelGroupView][google.ads.googleads.v4.services.HotelGroupViewService.GetHotelGroupView]. + + + Attributes: + resource_name: + Required. Resource name of the Hotel Group View to fetch. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.GetHotelGroupViewRequest) + )) +_sym_db.RegisterMessage(GetHotelGroupViewRequest) + + +DESCRIPTOR._options = None +_GETHOTELGROUPVIEWREQUEST.fields_by_name['resource_name']._options = None + +_HOTELGROUPVIEWSERVICE = _descriptor.ServiceDescriptor( + name='HotelGroupViewService', + full_name='google.ads.googleads.v4.services.HotelGroupViewService', + file=DESCRIPTOR, + index=0, + serialized_options=_b('\312A\030googleads.googleapis.com'), + serialized_start=387, + serialized_end=647, + methods=[ + _descriptor.MethodDescriptor( + name='GetHotelGroupView', + full_name='google.ads.googleads.v4.services.HotelGroupViewService.GetHotelGroupView', + index=0, + containing_service=None, + input_type=_GETHOTELGROUPVIEWREQUEST, + output_type=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_hotel__group__view__pb2._HOTELGROUPVIEW, + serialized_options=_b('\202\323\344\223\0023\0221/v4/{resource_name=customers/*/hotelGroupViews/*}\332A\rresource_name'), + ), +]) +_sym_db.RegisterServiceDescriptor(_HOTELGROUPVIEWSERVICE) + +DESCRIPTOR.services_by_name['HotelGroupViewService'] = _HOTELGROUPVIEWSERVICE + +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v4/proto/services/hotel_group_view_service_pb2_grpc.py b/google/ads/google_ads/v4/proto/services/hotel_group_view_service_pb2_grpc.py new file mode 100644 index 000000000..fa0fa5c9a --- /dev/null +++ b/google/ads/google_ads/v4/proto/services/hotel_group_view_service_pb2_grpc.py @@ -0,0 +1,51 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +import grpc + +from google.ads.google_ads.v4.proto.resources import hotel_group_view_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_hotel__group__view__pb2 +from google.ads.google_ads.v4.proto.services import hotel_group_view_service_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_hotel__group__view__service__pb2 + + +class HotelGroupViewServiceStub(object): + """Proto file describing the Hotel Group View Service. + + Service to manage Hotel Group Views. + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.GetHotelGroupView = channel.unary_unary( + '/google.ads.googleads.v4.services.HotelGroupViewService/GetHotelGroupView', + request_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_hotel__group__view__service__pb2.GetHotelGroupViewRequest.SerializeToString, + response_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_hotel__group__view__pb2.HotelGroupView.FromString, + ) + + +class HotelGroupViewServiceServicer(object): + """Proto file describing the Hotel Group View Service. + + Service to manage Hotel Group Views. + """ + + def GetHotelGroupView(self, request, context): + """Returns the requested Hotel Group View in full detail. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_HotelGroupViewServiceServicer_to_server(servicer, server): + rpc_method_handlers = { + 'GetHotelGroupView': grpc.unary_unary_rpc_method_handler( + servicer.GetHotelGroupView, + request_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_hotel__group__view__service__pb2.GetHotelGroupViewRequest.FromString, + response_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_hotel__group__view__pb2.HotelGroupView.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'google.ads.googleads.v4.services.HotelGroupViewService', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) diff --git a/google/ads/google_ads/v4/proto/services/hotel_performance_view_service_pb2.py b/google/ads/google_ads/v4/proto/services/hotel_performance_view_service_pb2.py new file mode 100644 index 000000000..0c42965c2 --- /dev/null +++ b/google/ads/google_ads/v4/proto/services/hotel_performance_view_service_pb2.py @@ -0,0 +1,112 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/services/hotel_performance_view_service.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.ads.google_ads.v4.proto.resources import hotel_performance_view_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_hotel__performance__view__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 +from google.api import client_pb2 as google_dot_api_dot_client__pb2 +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/services/hotel_performance_view_service.proto', + package='google.ads.googleads.v4.services', + syntax='proto3', + serialized_options=_b('\n$com.google.ads.googleads.v4.servicesB HotelPerformanceViewServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V4.Services\312\002 Google\\Ads\\GoogleAds\\V4\\Services\352\002$Google::Ads::GoogleAds::V4::Services'), + serialized_pb=_b('\nKgoogle/ads/googleads_v4/proto/services/hotel_performance_view_service.proto\x12 google.ads.googleads.v4.services\x1a\x44google/ads/googleads_v4/proto/resources/hotel_performance_view.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"n\n\x1eGetHotelPerformanceViewRequest\x12L\n\rresource_name\x18\x01 \x01(\tB5\xe0\x41\x02\xfa\x41/\n-googleads.googleapis.com/HotelPerformanceView2\x9f\x02\n\x1bHotelPerformanceViewService\x12\xe2\x01\n\x17GetHotelPerformanceView\x12@.google.ads.googleads.v4.services.GetHotelPerformanceViewRequest\x1a\x37.google.ads.googleads.v4.resources.HotelPerformanceView\"L\x82\xd3\xe4\x93\x02\x36\x12\x34/v4/{resource_name=customers/*/hotelPerformanceView}\xda\x41\rresource_name\x1a\x1b\xca\x41\x18googleads.googleapis.comB\x87\x02\n$com.google.ads.googleads.v4.servicesB HotelPerformanceViewServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V4.Services\xca\x02 Google\\Ads\\GoogleAds\\V4\\Services\xea\x02$Google::Ads::GoogleAds::V4::Servicesb\x06proto3') + , + dependencies=[google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_hotel__performance__view__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_api_dot_client__pb2.DESCRIPTOR,google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_api_dot_resource__pb2.DESCRIPTOR,]) + + + + +_GETHOTELPERFORMANCEVIEWREQUEST = _descriptor.Descriptor( + name='GetHotelPerformanceViewRequest', + full_name='google.ads.googleads.v4.services.GetHotelPerformanceViewRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.services.GetHotelPerformanceViewRequest.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002\372A/\n-googleads.googleapis.com/HotelPerformanceView'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=298, + serialized_end=408, +) + +DESCRIPTOR.message_types_by_name['GetHotelPerformanceViewRequest'] = _GETHOTELPERFORMANCEVIEWREQUEST +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +GetHotelPerformanceViewRequest = _reflection.GeneratedProtocolMessageType('GetHotelPerformanceViewRequest', (_message.Message,), dict( + DESCRIPTOR = _GETHOTELPERFORMANCEVIEWREQUEST, + __module__ = 'google.ads.googleads_v4.proto.services.hotel_performance_view_service_pb2' + , + __doc__ = """Request message for + [HotelPerformanceViewService.GetHotelPerformanceView][google.ads.googleads.v4.services.HotelPerformanceViewService.GetHotelPerformanceView]. + + + Attributes: + resource_name: + Required. Resource name of the Hotel Performance View to + fetch. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.GetHotelPerformanceViewRequest) + )) +_sym_db.RegisterMessage(GetHotelPerformanceViewRequest) + + +DESCRIPTOR._options = None +_GETHOTELPERFORMANCEVIEWREQUEST.fields_by_name['resource_name']._options = None + +_HOTELPERFORMANCEVIEWSERVICE = _descriptor.ServiceDescriptor( + name='HotelPerformanceViewService', + full_name='google.ads.googleads.v4.services.HotelPerformanceViewService', + file=DESCRIPTOR, + index=0, + serialized_options=_b('\312A\030googleads.googleapis.com'), + serialized_start=411, + serialized_end=698, + methods=[ + _descriptor.MethodDescriptor( + name='GetHotelPerformanceView', + full_name='google.ads.googleads.v4.services.HotelPerformanceViewService.GetHotelPerformanceView', + index=0, + containing_service=None, + input_type=_GETHOTELPERFORMANCEVIEWREQUEST, + output_type=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_hotel__performance__view__pb2._HOTELPERFORMANCEVIEW, + serialized_options=_b('\202\323\344\223\0026\0224/v4/{resource_name=customers/*/hotelPerformanceView}\332A\rresource_name'), + ), +]) +_sym_db.RegisterServiceDescriptor(_HOTELPERFORMANCEVIEWSERVICE) + +DESCRIPTOR.services_by_name['HotelPerformanceViewService'] = _HOTELPERFORMANCEVIEWSERVICE + +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v4/proto/services/hotel_performance_view_service_pb2_grpc.py b/google/ads/google_ads/v4/proto/services/hotel_performance_view_service_pb2_grpc.py new file mode 100644 index 000000000..57d78b1c5 --- /dev/null +++ b/google/ads/google_ads/v4/proto/services/hotel_performance_view_service_pb2_grpc.py @@ -0,0 +1,51 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +import grpc + +from google.ads.google_ads.v4.proto.resources import hotel_performance_view_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_hotel__performance__view__pb2 +from google.ads.google_ads.v4.proto.services import hotel_performance_view_service_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_hotel__performance__view__service__pb2 + + +class HotelPerformanceViewServiceStub(object): + """Proto file describing the Hotel Performance View Service. + + Service to manage Hotel Performance Views. + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.GetHotelPerformanceView = channel.unary_unary( + '/google.ads.googleads.v4.services.HotelPerformanceViewService/GetHotelPerformanceView', + request_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_hotel__performance__view__service__pb2.GetHotelPerformanceViewRequest.SerializeToString, + response_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_hotel__performance__view__pb2.HotelPerformanceView.FromString, + ) + + +class HotelPerformanceViewServiceServicer(object): + """Proto file describing the Hotel Performance View Service. + + Service to manage Hotel Performance Views. + """ + + def GetHotelPerformanceView(self, request, context): + """Returns the requested Hotel Performance View in full detail. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_HotelPerformanceViewServiceServicer_to_server(servicer, server): + rpc_method_handlers = { + 'GetHotelPerformanceView': grpc.unary_unary_rpc_method_handler( + servicer.GetHotelPerformanceView, + request_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_hotel__performance__view__service__pb2.GetHotelPerformanceViewRequest.FromString, + response_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_hotel__performance__view__pb2.HotelPerformanceView.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'google.ads.googleads.v4.services.HotelPerformanceViewService', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) diff --git a/google/ads/google_ads/v4/proto/services/income_range_view_service_pb2.py b/google/ads/google_ads/v4/proto/services/income_range_view_service_pb2.py new file mode 100644 index 000000000..e94518004 --- /dev/null +++ b/google/ads/google_ads/v4/proto/services/income_range_view_service_pb2.py @@ -0,0 +1,111 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/services/income_range_view_service.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.ads.google_ads.v4.proto.resources import income_range_view_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_income__range__view__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 +from google.api import client_pb2 as google_dot_api_dot_client__pb2 +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/services/income_range_view_service.proto', + package='google.ads.googleads.v4.services', + syntax='proto3', + serialized_options=_b('\n$com.google.ads.googleads.v4.servicesB\033IncomeRangeViewServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V4.Services\312\002 Google\\Ads\\GoogleAds\\V4\\Services\352\002$Google::Ads::GoogleAds::V4::Services'), + serialized_pb=_b('\nFgoogle/ads/googleads_v4/proto/services/income_range_view_service.proto\x12 google.ads.googleads.v4.services\x1a?google/ads/googleads_v4/proto/resources/income_range_view.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"d\n\x19GetIncomeRangeViewRequest\x12G\n\rresource_name\x18\x01 \x01(\tB0\xe0\x41\x02\xfa\x41*\n(googleads.googleapis.com/IncomeRangeView2\x89\x02\n\x16IncomeRangeViewService\x12\xd1\x01\n\x12GetIncomeRangeView\x12;.google.ads.googleads.v4.services.GetIncomeRangeViewRequest\x1a\x32.google.ads.googleads.v4.resources.IncomeRangeView\"J\x82\xd3\xe4\x93\x02\x34\x12\x32/v4/{resource_name=customers/*/incomeRangeViews/*}\xda\x41\rresource_name\x1a\x1b\xca\x41\x18googleads.googleapis.comB\x82\x02\n$com.google.ads.googleads.v4.servicesB\x1bIncomeRangeViewServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V4.Services\xca\x02 Google\\Ads\\GoogleAds\\V4\\Services\xea\x02$Google::Ads::GoogleAds::V4::Servicesb\x06proto3') + , + dependencies=[google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_income__range__view__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_api_dot_client__pb2.DESCRIPTOR,google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_api_dot_resource__pb2.DESCRIPTOR,]) + + + + +_GETINCOMERANGEVIEWREQUEST = _descriptor.Descriptor( + name='GetIncomeRangeViewRequest', + full_name='google.ads.googleads.v4.services.GetIncomeRangeViewRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.services.GetIncomeRangeViewRequest.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002\372A*\n(googleads.googleapis.com/IncomeRangeView'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=288, + serialized_end=388, +) + +DESCRIPTOR.message_types_by_name['GetIncomeRangeViewRequest'] = _GETINCOMERANGEVIEWREQUEST +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +GetIncomeRangeViewRequest = _reflection.GeneratedProtocolMessageType('GetIncomeRangeViewRequest', (_message.Message,), dict( + DESCRIPTOR = _GETINCOMERANGEVIEWREQUEST, + __module__ = 'google.ads.googleads_v4.proto.services.income_range_view_service_pb2' + , + __doc__ = """Request message for + [IncomeRangeViewService.GetIncomeRangeView][google.ads.googleads.v4.services.IncomeRangeViewService.GetIncomeRangeView]. + + + Attributes: + resource_name: + Required. The resource name of the income range view to fetch. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.GetIncomeRangeViewRequest) + )) +_sym_db.RegisterMessage(GetIncomeRangeViewRequest) + + +DESCRIPTOR._options = None +_GETINCOMERANGEVIEWREQUEST.fields_by_name['resource_name']._options = None + +_INCOMERANGEVIEWSERVICE = _descriptor.ServiceDescriptor( + name='IncomeRangeViewService', + full_name='google.ads.googleads.v4.services.IncomeRangeViewService', + file=DESCRIPTOR, + index=0, + serialized_options=_b('\312A\030googleads.googleapis.com'), + serialized_start=391, + serialized_end=656, + methods=[ + _descriptor.MethodDescriptor( + name='GetIncomeRangeView', + full_name='google.ads.googleads.v4.services.IncomeRangeViewService.GetIncomeRangeView', + index=0, + containing_service=None, + input_type=_GETINCOMERANGEVIEWREQUEST, + output_type=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_income__range__view__pb2._INCOMERANGEVIEW, + serialized_options=_b('\202\323\344\223\0024\0222/v4/{resource_name=customers/*/incomeRangeViews/*}\332A\rresource_name'), + ), +]) +_sym_db.RegisterServiceDescriptor(_INCOMERANGEVIEWSERVICE) + +DESCRIPTOR.services_by_name['IncomeRangeViewService'] = _INCOMERANGEVIEWSERVICE + +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v4/proto/services/income_range_view_service_pb2_grpc.py b/google/ads/google_ads/v4/proto/services/income_range_view_service_pb2_grpc.py new file mode 100644 index 000000000..f5f389bfc --- /dev/null +++ b/google/ads/google_ads/v4/proto/services/income_range_view_service_pb2_grpc.py @@ -0,0 +1,51 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +import grpc + +from google.ads.google_ads.v4.proto.resources import income_range_view_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_income__range__view__pb2 +from google.ads.google_ads.v4.proto.services import income_range_view_service_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_income__range__view__service__pb2 + + +class IncomeRangeViewServiceStub(object): + """Proto file describing the Income Range View service. + + Service to manage income range views. + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.GetIncomeRangeView = channel.unary_unary( + '/google.ads.googleads.v4.services.IncomeRangeViewService/GetIncomeRangeView', + request_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_income__range__view__service__pb2.GetIncomeRangeViewRequest.SerializeToString, + response_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_income__range__view__pb2.IncomeRangeView.FromString, + ) + + +class IncomeRangeViewServiceServicer(object): + """Proto file describing the Income Range View service. + + Service to manage income range views. + """ + + def GetIncomeRangeView(self, request, context): + """Returns the requested income range view in full detail. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_IncomeRangeViewServiceServicer_to_server(servicer, server): + rpc_method_handlers = { + 'GetIncomeRangeView': grpc.unary_unary_rpc_method_handler( + servicer.GetIncomeRangeView, + request_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_income__range__view__service__pb2.GetIncomeRangeViewRequest.FromString, + response_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_income__range__view__pb2.IncomeRangeView.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'google.ads.googleads.v4.services.IncomeRangeViewService', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) diff --git a/google/ads/google_ads/v4/proto/services/invoice_service_pb2.py b/google/ads/google_ads/v4/proto/services/invoice_service_pb2.py new file mode 100644 index 000000000..17623ab40 --- /dev/null +++ b/google/ads/google_ads/v4/proto/services/invoice_service_pb2.py @@ -0,0 +1,195 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/services/invoice_service.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.ads.google_ads.v4.proto.enums import month_of_year_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_month__of__year__pb2 +from google.ads.google_ads.v4.proto.resources import invoice_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_invoice__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 +from google.api import client_pb2 as google_dot_api_dot_client__pb2 +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/services/invoice_service.proto', + package='google.ads.googleads.v4.services', + syntax='proto3', + serialized_options=_b('\n$com.google.ads.googleads.v4.servicesB\023InvoiceServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V4.Services\312\002 Google\\Ads\\GoogleAds\\V4\\Services\352\002$Google::Ads::GoogleAds::V4::Services'), + serialized_pb=_b('\n\n%MutateKeywordPlanAdGroupKeywordResult\x12\x15\n\rresource_name\x18\x01 \x01(\t2\xdc\x04\n KeywordPlanAdGroupKeywordService\x12\xf9\x01\n\x1cGetKeywordPlanAdGroupKeyword\x12\x45.google.ads.googleads.v4.services.GetKeywordPlanAdGroupKeywordRequest\x1a<.google.ads.googleads.v4.resources.KeywordPlanAdGroupKeyword\"T\x82\xd3\xe4\x93\x02>\x12\022.google.ads.googleads.v4.services.GetKeywordPlanAdGroupRequest\x1a\x35.google.ads.googleads.v4.resources.KeywordPlanAdGroup\"M\x82\xd3\xe4\x93\x02\x37\x12\x35/v4/{resource_name=customers/*/keywordPlanAdGroups/*}\xda\x41\rresource_name\x12\x82\x02\n\x19MutateKeywordPlanAdGroups\x12\x42.google.ads.googleads.v4.services.MutateKeywordPlanAdGroupsRequest\x1a\x43.google.ads.googleads.v4.services.MutateKeywordPlanAdGroupsResponse\"\\\x82\xd3\xe4\x93\x02=\"8/v4/customers/{customer_id=*}/keywordPlanAdGroups:mutate:\x01*\xda\x41\x16\x63ustomer_id,operations\x1a\x1b\xca\x41\x18googleads.googleapis.comB\x85\x02\n$com.google.ads.googleads.v4.servicesB\x1eKeywordPlanAdGroupServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V4.Services\xca\x02 Google\\Ads\\GoogleAds\\V4\\Services\xea\x02$Google::Ads::GoogleAds::V4::Servicesb\x06proto3') + , + dependencies=[google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_keyword__plan__ad__group__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_api_dot_client__pb2.DESCRIPTOR,google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_api_dot_resource__pb2.DESCRIPTOR,google_dot_protobuf_dot_field__mask__pb2.DESCRIPTOR,google_dot_rpc_dot_status__pb2.DESCRIPTOR,]) + + + + +_GETKEYWORDPLANADGROUPREQUEST = _descriptor.Descriptor( + name='GetKeywordPlanAdGroupRequest', + full_name='google.ads.googleads.v4.services.GetKeywordPlanAdGroupRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.services.GetKeywordPlanAdGroupRequest.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002\372A-\n+googleads.googleapis.com/KeywordPlanAdGroup'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=355, + serialized_end=461, +) + + +_MUTATEKEYWORDPLANADGROUPSREQUEST = _descriptor.Descriptor( + name='MutateKeywordPlanAdGroupsRequest', + full_name='google.ads.googleads.v4.services.MutateKeywordPlanAdGroupsRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='customer_id', full_name='google.ads.googleads.v4.services.MutateKeywordPlanAdGroupsRequest.customer_id', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='operations', full_name='google.ads.googleads.v4.services.MutateKeywordPlanAdGroupsRequest.operations', index=1, + number=2, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='partial_failure', full_name='google.ads.googleads.v4.services.MutateKeywordPlanAdGroupsRequest.partial_failure', index=2, + number=3, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='validate_only', full_name='google.ads.googleads.v4.services.MutateKeywordPlanAdGroupsRequest.validate_only', index=3, + number=4, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=464, + serialized_end=660, +) + + +_KEYWORDPLANADGROUPOPERATION = _descriptor.Descriptor( + name='KeywordPlanAdGroupOperation', + full_name='google.ads.googleads.v4.services.KeywordPlanAdGroupOperation', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='update_mask', full_name='google.ads.googleads.v4.services.KeywordPlanAdGroupOperation.update_mask', index=0, + number=4, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='create', full_name='google.ads.googleads.v4.services.KeywordPlanAdGroupOperation.create', index=1, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='update', full_name='google.ads.googleads.v4.services.KeywordPlanAdGroupOperation.update', index=2, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='remove', full_name='google.ads.googleads.v4.services.KeywordPlanAdGroupOperation.remove', index=3, + number=3, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name='operation', full_name='google.ads.googleads.v4.services.KeywordPlanAdGroupOperation.operation', + index=0, containing_type=None, fields=[]), + ], + serialized_start=663, + serialized_end=918, +) + + +_MUTATEKEYWORDPLANADGROUPSRESPONSE = _descriptor.Descriptor( + name='MutateKeywordPlanAdGroupsResponse', + full_name='google.ads.googleads.v4.services.MutateKeywordPlanAdGroupsResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='partial_failure_error', full_name='google.ads.googleads.v4.services.MutateKeywordPlanAdGroupsResponse.partial_failure_error', index=0, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='results', full_name='google.ads.googleads.v4.services.MutateKeywordPlanAdGroupsResponse.results', index=1, + number=2, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=921, + serialized_end=1090, +) + + +_MUTATEKEYWORDPLANADGROUPRESULT = _descriptor.Descriptor( + name='MutateKeywordPlanAdGroupResult', + full_name='google.ads.googleads.v4.services.MutateKeywordPlanAdGroupResult', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.services.MutateKeywordPlanAdGroupResult.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1092, + serialized_end=1147, +) + +_MUTATEKEYWORDPLANADGROUPSREQUEST.fields_by_name['operations'].message_type = _KEYWORDPLANADGROUPOPERATION +_KEYWORDPLANADGROUPOPERATION.fields_by_name['update_mask'].message_type = google_dot_protobuf_dot_field__mask__pb2._FIELDMASK +_KEYWORDPLANADGROUPOPERATION.fields_by_name['create'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_keyword__plan__ad__group__pb2._KEYWORDPLANADGROUP +_KEYWORDPLANADGROUPOPERATION.fields_by_name['update'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_keyword__plan__ad__group__pb2._KEYWORDPLANADGROUP +_KEYWORDPLANADGROUPOPERATION.oneofs_by_name['operation'].fields.append( + _KEYWORDPLANADGROUPOPERATION.fields_by_name['create']) +_KEYWORDPLANADGROUPOPERATION.fields_by_name['create'].containing_oneof = _KEYWORDPLANADGROUPOPERATION.oneofs_by_name['operation'] +_KEYWORDPLANADGROUPOPERATION.oneofs_by_name['operation'].fields.append( + _KEYWORDPLANADGROUPOPERATION.fields_by_name['update']) +_KEYWORDPLANADGROUPOPERATION.fields_by_name['update'].containing_oneof = _KEYWORDPLANADGROUPOPERATION.oneofs_by_name['operation'] +_KEYWORDPLANADGROUPOPERATION.oneofs_by_name['operation'].fields.append( + _KEYWORDPLANADGROUPOPERATION.fields_by_name['remove']) +_KEYWORDPLANADGROUPOPERATION.fields_by_name['remove'].containing_oneof = _KEYWORDPLANADGROUPOPERATION.oneofs_by_name['operation'] +_MUTATEKEYWORDPLANADGROUPSRESPONSE.fields_by_name['partial_failure_error'].message_type = google_dot_rpc_dot_status__pb2._STATUS +_MUTATEKEYWORDPLANADGROUPSRESPONSE.fields_by_name['results'].message_type = _MUTATEKEYWORDPLANADGROUPRESULT +DESCRIPTOR.message_types_by_name['GetKeywordPlanAdGroupRequest'] = _GETKEYWORDPLANADGROUPREQUEST +DESCRIPTOR.message_types_by_name['MutateKeywordPlanAdGroupsRequest'] = _MUTATEKEYWORDPLANADGROUPSREQUEST +DESCRIPTOR.message_types_by_name['KeywordPlanAdGroupOperation'] = _KEYWORDPLANADGROUPOPERATION +DESCRIPTOR.message_types_by_name['MutateKeywordPlanAdGroupsResponse'] = _MUTATEKEYWORDPLANADGROUPSRESPONSE +DESCRIPTOR.message_types_by_name['MutateKeywordPlanAdGroupResult'] = _MUTATEKEYWORDPLANADGROUPRESULT +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +GetKeywordPlanAdGroupRequest = _reflection.GeneratedProtocolMessageType('GetKeywordPlanAdGroupRequest', (_message.Message,), dict( + DESCRIPTOR = _GETKEYWORDPLANADGROUPREQUEST, + __module__ = 'google.ads.googleads_v4.proto.services.keyword_plan_ad_group_service_pb2' + , + __doc__ = """Request message for + [KeywordPlanAdGroupService.GetKeywordPlanAdGroup][google.ads.googleads.v4.services.KeywordPlanAdGroupService.GetKeywordPlanAdGroup]. + + + Attributes: + resource_name: + Required. The resource name of the Keyword Plan ad group to + fetch. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.GetKeywordPlanAdGroupRequest) + )) +_sym_db.RegisterMessage(GetKeywordPlanAdGroupRequest) + +MutateKeywordPlanAdGroupsRequest = _reflection.GeneratedProtocolMessageType('MutateKeywordPlanAdGroupsRequest', (_message.Message,), dict( + DESCRIPTOR = _MUTATEKEYWORDPLANADGROUPSREQUEST, + __module__ = 'google.ads.googleads_v4.proto.services.keyword_plan_ad_group_service_pb2' + , + __doc__ = """Request message for + [KeywordPlanAdGroupService.MutateKeywordPlanAdGroups][google.ads.googleads.v4.services.KeywordPlanAdGroupService.MutateKeywordPlanAdGroups]. + + + Attributes: + customer_id: + Required. The ID of the customer whose Keyword Plan ad groups + are being modified. + operations: + Required. The list of operations to perform on individual + Keyword Plan ad groups. + partial_failure: + If true, successful operations will be carried out and invalid + operations will return errors. If false, all operations will + be carried out in one transaction if and only if they are all + valid. Default is false. + validate_only: + If true, the request is validated but not executed. Only + errors are returned, not results. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.MutateKeywordPlanAdGroupsRequest) + )) +_sym_db.RegisterMessage(MutateKeywordPlanAdGroupsRequest) + +KeywordPlanAdGroupOperation = _reflection.GeneratedProtocolMessageType('KeywordPlanAdGroupOperation', (_message.Message,), dict( + DESCRIPTOR = _KEYWORDPLANADGROUPOPERATION, + __module__ = 'google.ads.googleads_v4.proto.services.keyword_plan_ad_group_service_pb2' + , + __doc__ = """A single operation (create, update, remove) on a Keyword Plan ad group. + + + Attributes: + update_mask: + The FieldMask that determines which resource fields are + modified in an update. + operation: + The mutate operation. + create: + Create operation: No resource name is expected for the new + Keyword Plan ad group. + update: + Update operation: The Keyword Plan ad group is expected to + have a valid resource name. + remove: + Remove operation: A resource name for the removed Keyword Plan + ad group is expected, in this format: ``customers/{customer_i + d}/keywordPlanAdGroups/{kp_ad_group_id}`` + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.KeywordPlanAdGroupOperation) + )) +_sym_db.RegisterMessage(KeywordPlanAdGroupOperation) + +MutateKeywordPlanAdGroupsResponse = _reflection.GeneratedProtocolMessageType('MutateKeywordPlanAdGroupsResponse', (_message.Message,), dict( + DESCRIPTOR = _MUTATEKEYWORDPLANADGROUPSRESPONSE, + __module__ = 'google.ads.googleads_v4.proto.services.keyword_plan_ad_group_service_pb2' + , + __doc__ = """Response message for a Keyword Plan ad group mutate. + + + Attributes: + partial_failure_error: + Errors that pertain to operation failures in the partial + failure mode. Returned only when partial\_failure = true and + all errors occur inside the operations. If any errors occur + outside the operations (e.g. auth errors), we return an RPC + level error. + results: + All results for the mutate. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.MutateKeywordPlanAdGroupsResponse) + )) +_sym_db.RegisterMessage(MutateKeywordPlanAdGroupsResponse) + +MutateKeywordPlanAdGroupResult = _reflection.GeneratedProtocolMessageType('MutateKeywordPlanAdGroupResult', (_message.Message,), dict( + DESCRIPTOR = _MUTATEKEYWORDPLANADGROUPRESULT, + __module__ = 'google.ads.googleads_v4.proto.services.keyword_plan_ad_group_service_pb2' + , + __doc__ = """The result for the Keyword Plan ad group mutate. + + + Attributes: + resource_name: + Returned for successful operations. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.MutateKeywordPlanAdGroupResult) + )) +_sym_db.RegisterMessage(MutateKeywordPlanAdGroupResult) + + +DESCRIPTOR._options = None +_GETKEYWORDPLANADGROUPREQUEST.fields_by_name['resource_name']._options = None +_MUTATEKEYWORDPLANADGROUPSREQUEST.fields_by_name['customer_id']._options = None +_MUTATEKEYWORDPLANADGROUPSREQUEST.fields_by_name['operations']._options = None + +_KEYWORDPLANADGROUPSERVICE = _descriptor.ServiceDescriptor( + name='KeywordPlanAdGroupService', + full_name='google.ads.googleads.v4.services.KeywordPlanAdGroupService', + file=DESCRIPTOR, + index=0, + serialized_options=_b('\312A\030googleads.googleapis.com'), + serialized_start=1150, + serialized_end=1691, + methods=[ + _descriptor.MethodDescriptor( + name='GetKeywordPlanAdGroup', + full_name='google.ads.googleads.v4.services.KeywordPlanAdGroupService.GetKeywordPlanAdGroup', + index=0, + containing_service=None, + input_type=_GETKEYWORDPLANADGROUPREQUEST, + output_type=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_keyword__plan__ad__group__pb2._KEYWORDPLANADGROUP, + serialized_options=_b('\202\323\344\223\0027\0225/v4/{resource_name=customers/*/keywordPlanAdGroups/*}\332A\rresource_name'), + ), + _descriptor.MethodDescriptor( + name='MutateKeywordPlanAdGroups', + full_name='google.ads.googleads.v4.services.KeywordPlanAdGroupService.MutateKeywordPlanAdGroups', + index=1, + containing_service=None, + input_type=_MUTATEKEYWORDPLANADGROUPSREQUEST, + output_type=_MUTATEKEYWORDPLANADGROUPSRESPONSE, + serialized_options=_b('\202\323\344\223\002=\"8/v4/customers/{customer_id=*}/keywordPlanAdGroups:mutate:\001*\332A\026customer_id,operations'), + ), +]) +_sym_db.RegisterServiceDescriptor(_KEYWORDPLANADGROUPSERVICE) + +DESCRIPTOR.services_by_name['KeywordPlanAdGroupService'] = _KEYWORDPLANADGROUPSERVICE + +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v4/proto/services/keyword_plan_ad_group_service_pb2_grpc.py b/google/ads/google_ads/v4/proto/services/keyword_plan_ad_group_service_pb2_grpc.py new file mode 100644 index 000000000..e8a59394f --- /dev/null +++ b/google/ads/google_ads/v4/proto/services/keyword_plan_ad_group_service_pb2_grpc.py @@ -0,0 +1,69 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +import grpc + +from google.ads.google_ads.v4.proto.resources import keyword_plan_ad_group_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_keyword__plan__ad__group__pb2 +from google.ads.google_ads.v4.proto.services import keyword_plan_ad_group_service_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_keyword__plan__ad__group__service__pb2 + + +class KeywordPlanAdGroupServiceStub(object): + """Proto file describing the keyword plan ad group service. + + Service to manage Keyword Plan ad groups. + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.GetKeywordPlanAdGroup = channel.unary_unary( + '/google.ads.googleads.v4.services.KeywordPlanAdGroupService/GetKeywordPlanAdGroup', + request_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_keyword__plan__ad__group__service__pb2.GetKeywordPlanAdGroupRequest.SerializeToString, + response_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_keyword__plan__ad__group__pb2.KeywordPlanAdGroup.FromString, + ) + self.MutateKeywordPlanAdGroups = channel.unary_unary( + '/google.ads.googleads.v4.services.KeywordPlanAdGroupService/MutateKeywordPlanAdGroups', + request_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_keyword__plan__ad__group__service__pb2.MutateKeywordPlanAdGroupsRequest.SerializeToString, + response_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_keyword__plan__ad__group__service__pb2.MutateKeywordPlanAdGroupsResponse.FromString, + ) + + +class KeywordPlanAdGroupServiceServicer(object): + """Proto file describing the keyword plan ad group service. + + Service to manage Keyword Plan ad groups. + """ + + def GetKeywordPlanAdGroup(self, request, context): + """Returns the requested Keyword Plan ad group in full detail. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def MutateKeywordPlanAdGroups(self, request, context): + """Creates, updates, or removes Keyword Plan ad groups. Operation statuses are + returned. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_KeywordPlanAdGroupServiceServicer_to_server(servicer, server): + rpc_method_handlers = { + 'GetKeywordPlanAdGroup': grpc.unary_unary_rpc_method_handler( + servicer.GetKeywordPlanAdGroup, + request_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_keyword__plan__ad__group__service__pb2.GetKeywordPlanAdGroupRequest.FromString, + response_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_keyword__plan__ad__group__pb2.KeywordPlanAdGroup.SerializeToString, + ), + 'MutateKeywordPlanAdGroups': grpc.unary_unary_rpc_method_handler( + servicer.MutateKeywordPlanAdGroups, + request_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_keyword__plan__ad__group__service__pb2.MutateKeywordPlanAdGroupsRequest.FromString, + response_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_keyword__plan__ad__group__service__pb2.MutateKeywordPlanAdGroupsResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'google.ads.googleads.v4.services.KeywordPlanAdGroupService', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) diff --git a/google/ads/google_ads/v4/proto/services/keyword_plan_campaign_keyword_service_pb2.py b/google/ads/google_ads/v4/proto/services/keyword_plan_campaign_keyword_service_pb2.py new file mode 100644 index 000000000..f2b39a4d4 --- /dev/null +++ b/google/ads/google_ads/v4/proto/services/keyword_plan_campaign_keyword_service_pb2.py @@ -0,0 +1,412 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/services/keyword_plan_campaign_keyword_service.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.ads.google_ads.v4.proto.resources import keyword_plan_campaign_keyword_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_keyword__plan__campaign__keyword__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 +from google.api import client_pb2 as google_dot_api_dot_client__pb2 +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 +from google.protobuf import field_mask_pb2 as google_dot_protobuf_dot_field__mask__pb2 +from google.rpc import status_pb2 as google_dot_rpc_dot_status__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/services/keyword_plan_campaign_keyword_service.proto', + package='google.ads.googleads.v4.services', + syntax='proto3', + serialized_options=_b('\n$com.google.ads.googleads.v4.servicesB&KeywordPlanCampaignKeywordServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V4.Services\312\002 Google\\Ads\\GoogleAds\\V4\\Services\352\002$Google::Ads::GoogleAds::V4::Services'), + serialized_pb=_b('\nRgoogle/ads/googleads_v4/proto/services/keyword_plan_campaign_keyword_service.proto\x12 google.ads.googleads.v4.services\x1aKgoogle/ads/googleads_v4/proto/resources/keyword_plan_campaign_keyword.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/protobuf/field_mask.proto\x1a\x17google/rpc/status.proto\"z\n$GetKeywordPlanCampaignKeywordRequest\x12R\n\rresource_name\x18\x01 \x01(\tB;\xe0\x41\x02\xfa\x41\x35\n3googleads.googleapis.com/KeywordPlanCampaignKeyword\"\xd4\x01\n(MutateKeywordPlanCampaignKeywordsRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12^\n\noperations\x18\x02 \x03(\x0b\x32\x45.google.ads.googleads.v4.services.KeywordPlanCampaignKeywordOperationB\x03\xe0\x41\x02\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\"\x97\x02\n#KeywordPlanCampaignKeywordOperation\x12/\n\x0bupdate_mask\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12O\n\x06\x63reate\x18\x01 \x01(\x0b\x32=.google.ads.googleads.v4.resources.KeywordPlanCampaignKeywordH\x00\x12O\n\x06update\x18\x02 \x01(\x0b\x32=.google.ads.googleads.v4.resources.KeywordPlanCampaignKeywordH\x00\x12\x10\n\x06remove\x18\x03 \x01(\tH\x00\x42\x0b\n\toperation\"\xb9\x01\n)MutateKeywordPlanCampaignKeywordsResponse\x12\x31\n\x15partial_failure_error\x18\x03 \x01(\x0b\x32\x12.google.rpc.Status\x12Y\n\x07results\x18\x02 \x03(\x0b\x32H.google.ads.googleads.v4.services.MutateKeywordPlanCampaignKeywordResult\"?\n&MutateKeywordPlanCampaignKeywordResult\x12\x15\n\rresource_name\x18\x01 \x01(\t2\xe5\x04\n!KeywordPlanCampaignKeywordService\x12\xfd\x01\n\x1dGetKeywordPlanCampaignKeyword\x12\x46.google.ads.googleads.v4.services.GetKeywordPlanCampaignKeywordRequest\x1a=.google.ads.googleads.v4.resources.KeywordPlanCampaignKeyword\"U\x82\xd3\xe4\x93\x02?\x12=/v4/{resource_name=customers/*/keywordPlanCampaignKeywords/*}\xda\x41\rresource_name\x12\xa2\x02\n!MutateKeywordPlanCampaignKeywords\x12J.google.ads.googleads.v4.services.MutateKeywordPlanCampaignKeywordsRequest\x1aK.google.ads.googleads.v4.services.MutateKeywordPlanCampaignKeywordsResponse\"d\x82\xd3\xe4\x93\x02\x45\"@/v4/customers/{customer_id=*}/keywordPlanCampaignKeywords:mutate:\x01*\xda\x41\x16\x63ustomer_id,operations\x1a\x1b\xca\x41\x18googleads.googleapis.comB\x8d\x02\n$com.google.ads.googleads.v4.servicesB&KeywordPlanCampaignKeywordServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V4.Services\xca\x02 Google\\Ads\\GoogleAds\\V4\\Services\xea\x02$Google::Ads::GoogleAds::V4::Servicesb\x06proto3') + , + dependencies=[google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_keyword__plan__campaign__keyword__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_api_dot_client__pb2.DESCRIPTOR,google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_api_dot_resource__pb2.DESCRIPTOR,google_dot_protobuf_dot_field__mask__pb2.DESCRIPTOR,google_dot_rpc_dot_status__pb2.DESCRIPTOR,]) + + + + +_GETKEYWORDPLANCAMPAIGNKEYWORDREQUEST = _descriptor.Descriptor( + name='GetKeywordPlanCampaignKeywordRequest', + full_name='google.ads.googleads.v4.services.GetKeywordPlanCampaignKeywordRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.services.GetKeywordPlanCampaignKeywordRequest.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002\372A5\n3googleads.googleapis.com/KeywordPlanCampaignKeyword'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=371, + serialized_end=493, +) + + +_MUTATEKEYWORDPLANCAMPAIGNKEYWORDSREQUEST = _descriptor.Descriptor( + name='MutateKeywordPlanCampaignKeywordsRequest', + full_name='google.ads.googleads.v4.services.MutateKeywordPlanCampaignKeywordsRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='customer_id', full_name='google.ads.googleads.v4.services.MutateKeywordPlanCampaignKeywordsRequest.customer_id', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='operations', full_name='google.ads.googleads.v4.services.MutateKeywordPlanCampaignKeywordsRequest.operations', index=1, + number=2, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='partial_failure', full_name='google.ads.googleads.v4.services.MutateKeywordPlanCampaignKeywordsRequest.partial_failure', index=2, + number=3, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='validate_only', full_name='google.ads.googleads.v4.services.MutateKeywordPlanCampaignKeywordsRequest.validate_only', index=3, + number=4, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=496, + serialized_end=708, +) + + +_KEYWORDPLANCAMPAIGNKEYWORDOPERATION = _descriptor.Descriptor( + name='KeywordPlanCampaignKeywordOperation', + full_name='google.ads.googleads.v4.services.KeywordPlanCampaignKeywordOperation', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='update_mask', full_name='google.ads.googleads.v4.services.KeywordPlanCampaignKeywordOperation.update_mask', index=0, + number=4, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='create', full_name='google.ads.googleads.v4.services.KeywordPlanCampaignKeywordOperation.create', index=1, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='update', full_name='google.ads.googleads.v4.services.KeywordPlanCampaignKeywordOperation.update', index=2, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='remove', full_name='google.ads.googleads.v4.services.KeywordPlanCampaignKeywordOperation.remove', index=3, + number=3, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name='operation', full_name='google.ads.googleads.v4.services.KeywordPlanCampaignKeywordOperation.operation', + index=0, containing_type=None, fields=[]), + ], + serialized_start=711, + serialized_end=990, +) + + +_MUTATEKEYWORDPLANCAMPAIGNKEYWORDSRESPONSE = _descriptor.Descriptor( + name='MutateKeywordPlanCampaignKeywordsResponse', + full_name='google.ads.googleads.v4.services.MutateKeywordPlanCampaignKeywordsResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='partial_failure_error', full_name='google.ads.googleads.v4.services.MutateKeywordPlanCampaignKeywordsResponse.partial_failure_error', index=0, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='results', full_name='google.ads.googleads.v4.services.MutateKeywordPlanCampaignKeywordsResponse.results', index=1, + number=2, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=993, + serialized_end=1178, +) + + +_MUTATEKEYWORDPLANCAMPAIGNKEYWORDRESULT = _descriptor.Descriptor( + name='MutateKeywordPlanCampaignKeywordResult', + full_name='google.ads.googleads.v4.services.MutateKeywordPlanCampaignKeywordResult', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.services.MutateKeywordPlanCampaignKeywordResult.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1180, + serialized_end=1243, +) + +_MUTATEKEYWORDPLANCAMPAIGNKEYWORDSREQUEST.fields_by_name['operations'].message_type = _KEYWORDPLANCAMPAIGNKEYWORDOPERATION +_KEYWORDPLANCAMPAIGNKEYWORDOPERATION.fields_by_name['update_mask'].message_type = google_dot_protobuf_dot_field__mask__pb2._FIELDMASK +_KEYWORDPLANCAMPAIGNKEYWORDOPERATION.fields_by_name['create'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_keyword__plan__campaign__keyword__pb2._KEYWORDPLANCAMPAIGNKEYWORD +_KEYWORDPLANCAMPAIGNKEYWORDOPERATION.fields_by_name['update'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_keyword__plan__campaign__keyword__pb2._KEYWORDPLANCAMPAIGNKEYWORD +_KEYWORDPLANCAMPAIGNKEYWORDOPERATION.oneofs_by_name['operation'].fields.append( + _KEYWORDPLANCAMPAIGNKEYWORDOPERATION.fields_by_name['create']) +_KEYWORDPLANCAMPAIGNKEYWORDOPERATION.fields_by_name['create'].containing_oneof = _KEYWORDPLANCAMPAIGNKEYWORDOPERATION.oneofs_by_name['operation'] +_KEYWORDPLANCAMPAIGNKEYWORDOPERATION.oneofs_by_name['operation'].fields.append( + _KEYWORDPLANCAMPAIGNKEYWORDOPERATION.fields_by_name['update']) +_KEYWORDPLANCAMPAIGNKEYWORDOPERATION.fields_by_name['update'].containing_oneof = _KEYWORDPLANCAMPAIGNKEYWORDOPERATION.oneofs_by_name['operation'] +_KEYWORDPLANCAMPAIGNKEYWORDOPERATION.oneofs_by_name['operation'].fields.append( + _KEYWORDPLANCAMPAIGNKEYWORDOPERATION.fields_by_name['remove']) +_KEYWORDPLANCAMPAIGNKEYWORDOPERATION.fields_by_name['remove'].containing_oneof = _KEYWORDPLANCAMPAIGNKEYWORDOPERATION.oneofs_by_name['operation'] +_MUTATEKEYWORDPLANCAMPAIGNKEYWORDSRESPONSE.fields_by_name['partial_failure_error'].message_type = google_dot_rpc_dot_status__pb2._STATUS +_MUTATEKEYWORDPLANCAMPAIGNKEYWORDSRESPONSE.fields_by_name['results'].message_type = _MUTATEKEYWORDPLANCAMPAIGNKEYWORDRESULT +DESCRIPTOR.message_types_by_name['GetKeywordPlanCampaignKeywordRequest'] = _GETKEYWORDPLANCAMPAIGNKEYWORDREQUEST +DESCRIPTOR.message_types_by_name['MutateKeywordPlanCampaignKeywordsRequest'] = _MUTATEKEYWORDPLANCAMPAIGNKEYWORDSREQUEST +DESCRIPTOR.message_types_by_name['KeywordPlanCampaignKeywordOperation'] = _KEYWORDPLANCAMPAIGNKEYWORDOPERATION +DESCRIPTOR.message_types_by_name['MutateKeywordPlanCampaignKeywordsResponse'] = _MUTATEKEYWORDPLANCAMPAIGNKEYWORDSRESPONSE +DESCRIPTOR.message_types_by_name['MutateKeywordPlanCampaignKeywordResult'] = _MUTATEKEYWORDPLANCAMPAIGNKEYWORDRESULT +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +GetKeywordPlanCampaignKeywordRequest = _reflection.GeneratedProtocolMessageType('GetKeywordPlanCampaignKeywordRequest', (_message.Message,), dict( + DESCRIPTOR = _GETKEYWORDPLANCAMPAIGNKEYWORDREQUEST, + __module__ = 'google.ads.googleads_v4.proto.services.keyword_plan_campaign_keyword_service_pb2' + , + __doc__ = """Request message for + [KeywordPlanCampaignKeywordService.GetKeywordPlanCampaignKeyword][google.ads.googleads.v4.services.KeywordPlanCampaignKeywordService.GetKeywordPlanCampaignKeyword]. + + + Attributes: + resource_name: + Required. The resource name of the plan to fetch. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.GetKeywordPlanCampaignKeywordRequest) + )) +_sym_db.RegisterMessage(GetKeywordPlanCampaignKeywordRequest) + +MutateKeywordPlanCampaignKeywordsRequest = _reflection.GeneratedProtocolMessageType('MutateKeywordPlanCampaignKeywordsRequest', (_message.Message,), dict( + DESCRIPTOR = _MUTATEKEYWORDPLANCAMPAIGNKEYWORDSREQUEST, + __module__ = 'google.ads.googleads_v4.proto.services.keyword_plan_campaign_keyword_service_pb2' + , + __doc__ = """Request message for + [KeywordPlanCampaignKeywordService.MutateKeywordPlanCampaignKeywords][google.ads.googleads.v4.services.KeywordPlanCampaignKeywordService.MutateKeywordPlanCampaignKeywords]. + + + Attributes: + customer_id: + Required. The ID of the customer whose campaign keywords are + being modified. + operations: + Required. The list of operations to perform on individual + Keyword Plan campaign keywords. + partial_failure: + If true, successful operations will be carried out and invalid + operations will return errors. If false, all operations will + be carried out in one transaction if and only if they are all + valid. Default is false. + validate_only: + If true, the request is validated but not executed. Only + errors are returned, not results. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.MutateKeywordPlanCampaignKeywordsRequest) + )) +_sym_db.RegisterMessage(MutateKeywordPlanCampaignKeywordsRequest) + +KeywordPlanCampaignKeywordOperation = _reflection.GeneratedProtocolMessageType('KeywordPlanCampaignKeywordOperation', (_message.Message,), dict( + DESCRIPTOR = _KEYWORDPLANCAMPAIGNKEYWORDOPERATION, + __module__ = 'google.ads.googleads_v4.proto.services.keyword_plan_campaign_keyword_service_pb2' + , + __doc__ = """A single operation (create, update, remove) on a Keyword Plan campaign + keyword. + + + Attributes: + update_mask: + The FieldMask that determines which resource fields are + modified in an update. + operation: + The mutate operation. + create: + Create operation: No resource name is expected for the new + Keyword Plan campaign keyword. + update: + Update operation: The Keyword Plan campaign keyword expected + to have a valid resource name. + remove: + Remove operation: A resource name for the removed Keyword Plan + campaign keywords expected in this format: ``customers/{custo + mer_id}/keywordPlanCampaignKeywords/{kp_campaign_keyword_id}`` + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.KeywordPlanCampaignKeywordOperation) + )) +_sym_db.RegisterMessage(KeywordPlanCampaignKeywordOperation) + +MutateKeywordPlanCampaignKeywordsResponse = _reflection.GeneratedProtocolMessageType('MutateKeywordPlanCampaignKeywordsResponse', (_message.Message,), dict( + DESCRIPTOR = _MUTATEKEYWORDPLANCAMPAIGNKEYWORDSRESPONSE, + __module__ = 'google.ads.googleads_v4.proto.services.keyword_plan_campaign_keyword_service_pb2' + , + __doc__ = """Response message for a Keyword Plan campaign keyword mutate. + + + Attributes: + partial_failure_error: + Errors that pertain to operation failures in the partial + failure mode. Returned only when partial\_failure = true and + all errors occur inside the operations. If any errors occur + outside the operations (e.g. auth errors), we return an RPC + level error. + results: + All results for the mutate. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.MutateKeywordPlanCampaignKeywordsResponse) + )) +_sym_db.RegisterMessage(MutateKeywordPlanCampaignKeywordsResponse) + +MutateKeywordPlanCampaignKeywordResult = _reflection.GeneratedProtocolMessageType('MutateKeywordPlanCampaignKeywordResult', (_message.Message,), dict( + DESCRIPTOR = _MUTATEKEYWORDPLANCAMPAIGNKEYWORDRESULT, + __module__ = 'google.ads.googleads_v4.proto.services.keyword_plan_campaign_keyword_service_pb2' + , + __doc__ = """The result for the Keyword Plan campaign keyword mutate. + + + Attributes: + resource_name: + Returned for successful operations. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.MutateKeywordPlanCampaignKeywordResult) + )) +_sym_db.RegisterMessage(MutateKeywordPlanCampaignKeywordResult) + + +DESCRIPTOR._options = None +_GETKEYWORDPLANCAMPAIGNKEYWORDREQUEST.fields_by_name['resource_name']._options = None +_MUTATEKEYWORDPLANCAMPAIGNKEYWORDSREQUEST.fields_by_name['customer_id']._options = None +_MUTATEKEYWORDPLANCAMPAIGNKEYWORDSREQUEST.fields_by_name['operations']._options = None + +_KEYWORDPLANCAMPAIGNKEYWORDSERVICE = _descriptor.ServiceDescriptor( + name='KeywordPlanCampaignKeywordService', + full_name='google.ads.googleads.v4.services.KeywordPlanCampaignKeywordService', + file=DESCRIPTOR, + index=0, + serialized_options=_b('\312A\030googleads.googleapis.com'), + serialized_start=1246, + serialized_end=1859, + methods=[ + _descriptor.MethodDescriptor( + name='GetKeywordPlanCampaignKeyword', + full_name='google.ads.googleads.v4.services.KeywordPlanCampaignKeywordService.GetKeywordPlanCampaignKeyword', + index=0, + containing_service=None, + input_type=_GETKEYWORDPLANCAMPAIGNKEYWORDREQUEST, + output_type=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_keyword__plan__campaign__keyword__pb2._KEYWORDPLANCAMPAIGNKEYWORD, + serialized_options=_b('\202\323\344\223\002?\022=/v4/{resource_name=customers/*/keywordPlanCampaignKeywords/*}\332A\rresource_name'), + ), + _descriptor.MethodDescriptor( + name='MutateKeywordPlanCampaignKeywords', + full_name='google.ads.googleads.v4.services.KeywordPlanCampaignKeywordService.MutateKeywordPlanCampaignKeywords', + index=1, + containing_service=None, + input_type=_MUTATEKEYWORDPLANCAMPAIGNKEYWORDSREQUEST, + output_type=_MUTATEKEYWORDPLANCAMPAIGNKEYWORDSRESPONSE, + serialized_options=_b('\202\323\344\223\002E\"@/v4/customers/{customer_id=*}/keywordPlanCampaignKeywords:mutate:\001*\332A\026customer_id,operations'), + ), +]) +_sym_db.RegisterServiceDescriptor(_KEYWORDPLANCAMPAIGNKEYWORDSERVICE) + +DESCRIPTOR.services_by_name['KeywordPlanCampaignKeywordService'] = _KEYWORDPLANCAMPAIGNKEYWORDSERVICE + +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v4/proto/services/keyword_plan_campaign_keyword_service_pb2_grpc.py b/google/ads/google_ads/v4/proto/services/keyword_plan_campaign_keyword_service_pb2_grpc.py new file mode 100644 index 000000000..cf940f7ec --- /dev/null +++ b/google/ads/google_ads/v4/proto/services/keyword_plan_campaign_keyword_service_pb2_grpc.py @@ -0,0 +1,75 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +import grpc + +from google.ads.google_ads.v4.proto.resources import keyword_plan_campaign_keyword_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_keyword__plan__campaign__keyword__pb2 +from google.ads.google_ads.v4.proto.services import keyword_plan_campaign_keyword_service_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_keyword__plan__campaign__keyword__service__pb2 + + +class KeywordPlanCampaignKeywordServiceStub(object): + """Proto file describing the keyword plan campaign keyword service. + + Service to manage Keyword Plan campaign keywords. KeywordPlanCampaign is + required to add the campaign keywords. Only negative keywords are supported. + A maximum of 1000 negative keywords are allowed per plan. This includes both + campaign negative keywords and ad group negative keywords. + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.GetKeywordPlanCampaignKeyword = channel.unary_unary( + '/google.ads.googleads.v4.services.KeywordPlanCampaignKeywordService/GetKeywordPlanCampaignKeyword', + request_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_keyword__plan__campaign__keyword__service__pb2.GetKeywordPlanCampaignKeywordRequest.SerializeToString, + response_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_keyword__plan__campaign__keyword__pb2.KeywordPlanCampaignKeyword.FromString, + ) + self.MutateKeywordPlanCampaignKeywords = channel.unary_unary( + '/google.ads.googleads.v4.services.KeywordPlanCampaignKeywordService/MutateKeywordPlanCampaignKeywords', + request_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_keyword__plan__campaign__keyword__service__pb2.MutateKeywordPlanCampaignKeywordsRequest.SerializeToString, + response_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_keyword__plan__campaign__keyword__service__pb2.MutateKeywordPlanCampaignKeywordsResponse.FromString, + ) + + +class KeywordPlanCampaignKeywordServiceServicer(object): + """Proto file describing the keyword plan campaign keyword service. + + Service to manage Keyword Plan campaign keywords. KeywordPlanCampaign is + required to add the campaign keywords. Only negative keywords are supported. + A maximum of 1000 negative keywords are allowed per plan. This includes both + campaign negative keywords and ad group negative keywords. + """ + + def GetKeywordPlanCampaignKeyword(self, request, context): + """Returns the requested plan in full detail. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def MutateKeywordPlanCampaignKeywords(self, request, context): + """Creates, updates, or removes Keyword Plan campaign keywords. Operation + statuses are returned. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_KeywordPlanCampaignKeywordServiceServicer_to_server(servicer, server): + rpc_method_handlers = { + 'GetKeywordPlanCampaignKeyword': grpc.unary_unary_rpc_method_handler( + servicer.GetKeywordPlanCampaignKeyword, + request_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_keyword__plan__campaign__keyword__service__pb2.GetKeywordPlanCampaignKeywordRequest.FromString, + response_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_keyword__plan__campaign__keyword__pb2.KeywordPlanCampaignKeyword.SerializeToString, + ), + 'MutateKeywordPlanCampaignKeywords': grpc.unary_unary_rpc_method_handler( + servicer.MutateKeywordPlanCampaignKeywords, + request_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_keyword__plan__campaign__keyword__service__pb2.MutateKeywordPlanCampaignKeywordsRequest.FromString, + response_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_keyword__plan__campaign__keyword__service__pb2.MutateKeywordPlanCampaignKeywordsResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'google.ads.googleads.v4.services.KeywordPlanCampaignKeywordService', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) diff --git a/google/ads/google_ads/v4/proto/services/keyword_plan_campaign_service_pb2.py b/google/ads/google_ads/v4/proto/services/keyword_plan_campaign_service_pb2.py new file mode 100644 index 000000000..770736177 --- /dev/null +++ b/google/ads/google_ads/v4/proto/services/keyword_plan_campaign_service_pb2.py @@ -0,0 +1,412 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/services/keyword_plan_campaign_service.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.ads.google_ads.v4.proto.resources import keyword_plan_campaign_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_keyword__plan__campaign__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 +from google.api import client_pb2 as google_dot_api_dot_client__pb2 +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 +from google.protobuf import field_mask_pb2 as google_dot_protobuf_dot_field__mask__pb2 +from google.rpc import status_pb2 as google_dot_rpc_dot_status__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/services/keyword_plan_campaign_service.proto', + package='google.ads.googleads.v4.services', + syntax='proto3', + serialized_options=_b('\n$com.google.ads.googleads.v4.servicesB\037KeywordPlanCampaignServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V4.Services\312\002 Google\\Ads\\GoogleAds\\V4\\Services\352\002$Google::Ads::GoogleAds::V4::Services'), + serialized_pb=_b('\nJgoogle/ads/googleads_v4/proto/services/keyword_plan_campaign_service.proto\x12 google.ads.googleads.v4.services\x1a\x43google/ads/googleads_v4/proto/resources/keyword_plan_campaign.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/protobuf/field_mask.proto\x1a\x17google/rpc/status.proto\"l\n\x1dGetKeywordPlanCampaignRequest\x12K\n\rresource_name\x18\x01 \x01(\tB4\xe0\x41\x02\xfa\x41.\n,googleads.googleapis.com/KeywordPlanCampaign\"\xc6\x01\n!MutateKeywordPlanCampaignsRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12W\n\noperations\x18\x02 \x03(\x0b\x32>.google.ads.googleads.v4.services.KeywordPlanCampaignOperationB\x03\xe0\x41\x02\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\"\x82\x02\n\x1cKeywordPlanCampaignOperation\x12/\n\x0bupdate_mask\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12H\n\x06\x63reate\x18\x01 \x01(\x0b\x32\x36.google.ads.googleads.v4.resources.KeywordPlanCampaignH\x00\x12H\n\x06update\x18\x02 \x01(\x0b\x32\x36.google.ads.googleads.v4.resources.KeywordPlanCampaignH\x00\x12\x10\n\x06remove\x18\x03 \x01(\tH\x00\x42\x0b\n\toperation\"\xab\x01\n\"MutateKeywordPlanCampaignsResponse\x12\x31\n\x15partial_failure_error\x18\x03 \x01(\x0b\x32\x12.google.rpc.Status\x12R\n\x07results\x18\x02 \x03(\x0b\x32\x41.google.ads.googleads.v4.services.MutateKeywordPlanCampaignResult\"8\n\x1fMutateKeywordPlanCampaignResult\x12\x15\n\rresource_name\x18\x01 \x01(\t2\xa6\x04\n\x1aKeywordPlanCampaignService\x12\xe1\x01\n\x16GetKeywordPlanCampaign\x12?.google.ads.googleads.v4.services.GetKeywordPlanCampaignRequest\x1a\x36.google.ads.googleads.v4.resources.KeywordPlanCampaign\"N\x82\xd3\xe4\x93\x02\x38\x12\x36/v4/{resource_name=customers/*/keywordPlanCampaigns/*}\xda\x41\rresource_name\x12\x86\x02\n\x1aMutateKeywordPlanCampaigns\x12\x43.google.ads.googleads.v4.services.MutateKeywordPlanCampaignsRequest\x1a\x44.google.ads.googleads.v4.services.MutateKeywordPlanCampaignsResponse\"]\x82\xd3\xe4\x93\x02>\"9/v4/customers/{customer_id=*}/keywordPlanCampaigns:mutate:\x01*\xda\x41\x16\x63ustomer_id,operations\x1a\x1b\xca\x41\x18googleads.googleapis.comB\x86\x02\n$com.google.ads.googleads.v4.servicesB\x1fKeywordPlanCampaignServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V4.Services\xca\x02 Google\\Ads\\GoogleAds\\V4\\Services\xea\x02$Google::Ads::GoogleAds::V4::Servicesb\x06proto3') + , + dependencies=[google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_keyword__plan__campaign__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_api_dot_client__pb2.DESCRIPTOR,google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_api_dot_resource__pb2.DESCRIPTOR,google_dot_protobuf_dot_field__mask__pb2.DESCRIPTOR,google_dot_rpc_dot_status__pb2.DESCRIPTOR,]) + + + + +_GETKEYWORDPLANCAMPAIGNREQUEST = _descriptor.Descriptor( + name='GetKeywordPlanCampaignRequest', + full_name='google.ads.googleads.v4.services.GetKeywordPlanCampaignRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.services.GetKeywordPlanCampaignRequest.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002\372A.\n,googleads.googleapis.com/KeywordPlanCampaign'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=355, + serialized_end=463, +) + + +_MUTATEKEYWORDPLANCAMPAIGNSREQUEST = _descriptor.Descriptor( + name='MutateKeywordPlanCampaignsRequest', + full_name='google.ads.googleads.v4.services.MutateKeywordPlanCampaignsRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='customer_id', full_name='google.ads.googleads.v4.services.MutateKeywordPlanCampaignsRequest.customer_id', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='operations', full_name='google.ads.googleads.v4.services.MutateKeywordPlanCampaignsRequest.operations', index=1, + number=2, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='partial_failure', full_name='google.ads.googleads.v4.services.MutateKeywordPlanCampaignsRequest.partial_failure', index=2, + number=3, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='validate_only', full_name='google.ads.googleads.v4.services.MutateKeywordPlanCampaignsRequest.validate_only', index=3, + number=4, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=466, + serialized_end=664, +) + + +_KEYWORDPLANCAMPAIGNOPERATION = _descriptor.Descriptor( + name='KeywordPlanCampaignOperation', + full_name='google.ads.googleads.v4.services.KeywordPlanCampaignOperation', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='update_mask', full_name='google.ads.googleads.v4.services.KeywordPlanCampaignOperation.update_mask', index=0, + number=4, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='create', full_name='google.ads.googleads.v4.services.KeywordPlanCampaignOperation.create', index=1, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='update', full_name='google.ads.googleads.v4.services.KeywordPlanCampaignOperation.update', index=2, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='remove', full_name='google.ads.googleads.v4.services.KeywordPlanCampaignOperation.remove', index=3, + number=3, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name='operation', full_name='google.ads.googleads.v4.services.KeywordPlanCampaignOperation.operation', + index=0, containing_type=None, fields=[]), + ], + serialized_start=667, + serialized_end=925, +) + + +_MUTATEKEYWORDPLANCAMPAIGNSRESPONSE = _descriptor.Descriptor( + name='MutateKeywordPlanCampaignsResponse', + full_name='google.ads.googleads.v4.services.MutateKeywordPlanCampaignsResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='partial_failure_error', full_name='google.ads.googleads.v4.services.MutateKeywordPlanCampaignsResponse.partial_failure_error', index=0, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='results', full_name='google.ads.googleads.v4.services.MutateKeywordPlanCampaignsResponse.results', index=1, + number=2, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=928, + serialized_end=1099, +) + + +_MUTATEKEYWORDPLANCAMPAIGNRESULT = _descriptor.Descriptor( + name='MutateKeywordPlanCampaignResult', + full_name='google.ads.googleads.v4.services.MutateKeywordPlanCampaignResult', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.services.MutateKeywordPlanCampaignResult.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1101, + serialized_end=1157, +) + +_MUTATEKEYWORDPLANCAMPAIGNSREQUEST.fields_by_name['operations'].message_type = _KEYWORDPLANCAMPAIGNOPERATION +_KEYWORDPLANCAMPAIGNOPERATION.fields_by_name['update_mask'].message_type = google_dot_protobuf_dot_field__mask__pb2._FIELDMASK +_KEYWORDPLANCAMPAIGNOPERATION.fields_by_name['create'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_keyword__plan__campaign__pb2._KEYWORDPLANCAMPAIGN +_KEYWORDPLANCAMPAIGNOPERATION.fields_by_name['update'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_keyword__plan__campaign__pb2._KEYWORDPLANCAMPAIGN +_KEYWORDPLANCAMPAIGNOPERATION.oneofs_by_name['operation'].fields.append( + _KEYWORDPLANCAMPAIGNOPERATION.fields_by_name['create']) +_KEYWORDPLANCAMPAIGNOPERATION.fields_by_name['create'].containing_oneof = _KEYWORDPLANCAMPAIGNOPERATION.oneofs_by_name['operation'] +_KEYWORDPLANCAMPAIGNOPERATION.oneofs_by_name['operation'].fields.append( + _KEYWORDPLANCAMPAIGNOPERATION.fields_by_name['update']) +_KEYWORDPLANCAMPAIGNOPERATION.fields_by_name['update'].containing_oneof = _KEYWORDPLANCAMPAIGNOPERATION.oneofs_by_name['operation'] +_KEYWORDPLANCAMPAIGNOPERATION.oneofs_by_name['operation'].fields.append( + _KEYWORDPLANCAMPAIGNOPERATION.fields_by_name['remove']) +_KEYWORDPLANCAMPAIGNOPERATION.fields_by_name['remove'].containing_oneof = _KEYWORDPLANCAMPAIGNOPERATION.oneofs_by_name['operation'] +_MUTATEKEYWORDPLANCAMPAIGNSRESPONSE.fields_by_name['partial_failure_error'].message_type = google_dot_rpc_dot_status__pb2._STATUS +_MUTATEKEYWORDPLANCAMPAIGNSRESPONSE.fields_by_name['results'].message_type = _MUTATEKEYWORDPLANCAMPAIGNRESULT +DESCRIPTOR.message_types_by_name['GetKeywordPlanCampaignRequest'] = _GETKEYWORDPLANCAMPAIGNREQUEST +DESCRIPTOR.message_types_by_name['MutateKeywordPlanCampaignsRequest'] = _MUTATEKEYWORDPLANCAMPAIGNSREQUEST +DESCRIPTOR.message_types_by_name['KeywordPlanCampaignOperation'] = _KEYWORDPLANCAMPAIGNOPERATION +DESCRIPTOR.message_types_by_name['MutateKeywordPlanCampaignsResponse'] = _MUTATEKEYWORDPLANCAMPAIGNSRESPONSE +DESCRIPTOR.message_types_by_name['MutateKeywordPlanCampaignResult'] = _MUTATEKEYWORDPLANCAMPAIGNRESULT +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +GetKeywordPlanCampaignRequest = _reflection.GeneratedProtocolMessageType('GetKeywordPlanCampaignRequest', (_message.Message,), dict( + DESCRIPTOR = _GETKEYWORDPLANCAMPAIGNREQUEST, + __module__ = 'google.ads.googleads_v4.proto.services.keyword_plan_campaign_service_pb2' + , + __doc__ = """Request message for + [KeywordPlanCampaignService.GetKeywordPlanCampaign][google.ads.googleads.v4.services.KeywordPlanCampaignService.GetKeywordPlanCampaign]. + + + Attributes: + resource_name: + Required. The resource name of the Keyword Plan campaign to + fetch. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.GetKeywordPlanCampaignRequest) + )) +_sym_db.RegisterMessage(GetKeywordPlanCampaignRequest) + +MutateKeywordPlanCampaignsRequest = _reflection.GeneratedProtocolMessageType('MutateKeywordPlanCampaignsRequest', (_message.Message,), dict( + DESCRIPTOR = _MUTATEKEYWORDPLANCAMPAIGNSREQUEST, + __module__ = 'google.ads.googleads_v4.proto.services.keyword_plan_campaign_service_pb2' + , + __doc__ = """Request message for + [KeywordPlanCampaignService.MutateKeywordPlanCampaigns][google.ads.googleads.v4.services.KeywordPlanCampaignService.MutateKeywordPlanCampaigns]. + + + Attributes: + customer_id: + Required. The ID of the customer whose Keyword Plan campaigns + are being modified. + operations: + Required. The list of operations to perform on individual + Keyword Plan campaigns. + partial_failure: + If true, successful operations will be carried out and invalid + operations will return errors. If false, all operations will + be carried out in one transaction if and only if they are all + valid. Default is false. + validate_only: + If true, the request is validated but not executed. Only + errors are returned, not results. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.MutateKeywordPlanCampaignsRequest) + )) +_sym_db.RegisterMessage(MutateKeywordPlanCampaignsRequest) + +KeywordPlanCampaignOperation = _reflection.GeneratedProtocolMessageType('KeywordPlanCampaignOperation', (_message.Message,), dict( + DESCRIPTOR = _KEYWORDPLANCAMPAIGNOPERATION, + __module__ = 'google.ads.googleads_v4.proto.services.keyword_plan_campaign_service_pb2' + , + __doc__ = """A single operation (create, update, remove) on a Keyword Plan campaign. + + + Attributes: + update_mask: + The FieldMask that determines which resource fields are + modified in an update. + operation: + The mutate operation. + create: + Create operation: No resource name is expected for the new + Keyword Plan campaign. + update: + Update operation: The Keyword Plan campaign is expected to + have a valid resource name. + remove: + Remove operation: A resource name for the removed Keyword Plan + campaign is expected, in this format: ``customers/{customer_i + d}/keywordPlanCampaigns/{keywordPlan_campaign_id}`` + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.KeywordPlanCampaignOperation) + )) +_sym_db.RegisterMessage(KeywordPlanCampaignOperation) + +MutateKeywordPlanCampaignsResponse = _reflection.GeneratedProtocolMessageType('MutateKeywordPlanCampaignsResponse', (_message.Message,), dict( + DESCRIPTOR = _MUTATEKEYWORDPLANCAMPAIGNSRESPONSE, + __module__ = 'google.ads.googleads_v4.proto.services.keyword_plan_campaign_service_pb2' + , + __doc__ = """Response message for a Keyword Plan campaign mutate. + + + Attributes: + partial_failure_error: + Errors that pertain to operation failures in the partial + failure mode. Returned only when partial\_failure = true and + all errors occur inside the operations. If any errors occur + outside the operations (e.g. auth errors), we return an RPC + level error. + results: + All results for the mutate. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.MutateKeywordPlanCampaignsResponse) + )) +_sym_db.RegisterMessage(MutateKeywordPlanCampaignsResponse) + +MutateKeywordPlanCampaignResult = _reflection.GeneratedProtocolMessageType('MutateKeywordPlanCampaignResult', (_message.Message,), dict( + DESCRIPTOR = _MUTATEKEYWORDPLANCAMPAIGNRESULT, + __module__ = 'google.ads.googleads_v4.proto.services.keyword_plan_campaign_service_pb2' + , + __doc__ = """The result for the Keyword Plan campaign mutate. + + + Attributes: + resource_name: + Returned for successful operations. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.MutateKeywordPlanCampaignResult) + )) +_sym_db.RegisterMessage(MutateKeywordPlanCampaignResult) + + +DESCRIPTOR._options = None +_GETKEYWORDPLANCAMPAIGNREQUEST.fields_by_name['resource_name']._options = None +_MUTATEKEYWORDPLANCAMPAIGNSREQUEST.fields_by_name['customer_id']._options = None +_MUTATEKEYWORDPLANCAMPAIGNSREQUEST.fields_by_name['operations']._options = None + +_KEYWORDPLANCAMPAIGNSERVICE = _descriptor.ServiceDescriptor( + name='KeywordPlanCampaignService', + full_name='google.ads.googleads.v4.services.KeywordPlanCampaignService', + file=DESCRIPTOR, + index=0, + serialized_options=_b('\312A\030googleads.googleapis.com'), + serialized_start=1160, + serialized_end=1710, + methods=[ + _descriptor.MethodDescriptor( + name='GetKeywordPlanCampaign', + full_name='google.ads.googleads.v4.services.KeywordPlanCampaignService.GetKeywordPlanCampaign', + index=0, + containing_service=None, + input_type=_GETKEYWORDPLANCAMPAIGNREQUEST, + output_type=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_keyword__plan__campaign__pb2._KEYWORDPLANCAMPAIGN, + serialized_options=_b('\202\323\344\223\0028\0226/v4/{resource_name=customers/*/keywordPlanCampaigns/*}\332A\rresource_name'), + ), + _descriptor.MethodDescriptor( + name='MutateKeywordPlanCampaigns', + full_name='google.ads.googleads.v4.services.KeywordPlanCampaignService.MutateKeywordPlanCampaigns', + index=1, + containing_service=None, + input_type=_MUTATEKEYWORDPLANCAMPAIGNSREQUEST, + output_type=_MUTATEKEYWORDPLANCAMPAIGNSRESPONSE, + serialized_options=_b('\202\323\344\223\002>\"9/v4/customers/{customer_id=*}/keywordPlanCampaigns:mutate:\001*\332A\026customer_id,operations'), + ), +]) +_sym_db.RegisterServiceDescriptor(_KEYWORDPLANCAMPAIGNSERVICE) + +DESCRIPTOR.services_by_name['KeywordPlanCampaignService'] = _KEYWORDPLANCAMPAIGNSERVICE + +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v4/proto/services/keyword_plan_campaign_service_pb2_grpc.py b/google/ads/google_ads/v4/proto/services/keyword_plan_campaign_service_pb2_grpc.py new file mode 100644 index 000000000..c94cfedb0 --- /dev/null +++ b/google/ads/google_ads/v4/proto/services/keyword_plan_campaign_service_pb2_grpc.py @@ -0,0 +1,69 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +import grpc + +from google.ads.google_ads.v4.proto.resources import keyword_plan_campaign_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_keyword__plan__campaign__pb2 +from google.ads.google_ads.v4.proto.services import keyword_plan_campaign_service_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_keyword__plan__campaign__service__pb2 + + +class KeywordPlanCampaignServiceStub(object): + """Proto file describing the keyword plan campaign service. + + Service to manage Keyword Plan campaigns. + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.GetKeywordPlanCampaign = channel.unary_unary( + '/google.ads.googleads.v4.services.KeywordPlanCampaignService/GetKeywordPlanCampaign', + request_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_keyword__plan__campaign__service__pb2.GetKeywordPlanCampaignRequest.SerializeToString, + response_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_keyword__plan__campaign__pb2.KeywordPlanCampaign.FromString, + ) + self.MutateKeywordPlanCampaigns = channel.unary_unary( + '/google.ads.googleads.v4.services.KeywordPlanCampaignService/MutateKeywordPlanCampaigns', + request_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_keyword__plan__campaign__service__pb2.MutateKeywordPlanCampaignsRequest.SerializeToString, + response_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_keyword__plan__campaign__service__pb2.MutateKeywordPlanCampaignsResponse.FromString, + ) + + +class KeywordPlanCampaignServiceServicer(object): + """Proto file describing the keyword plan campaign service. + + Service to manage Keyword Plan campaigns. + """ + + def GetKeywordPlanCampaign(self, request, context): + """Returns the requested Keyword Plan campaign in full detail. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def MutateKeywordPlanCampaigns(self, request, context): + """Creates, updates, or removes Keyword Plan campaigns. Operation statuses are + returned. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_KeywordPlanCampaignServiceServicer_to_server(servicer, server): + rpc_method_handlers = { + 'GetKeywordPlanCampaign': grpc.unary_unary_rpc_method_handler( + servicer.GetKeywordPlanCampaign, + request_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_keyword__plan__campaign__service__pb2.GetKeywordPlanCampaignRequest.FromString, + response_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_keyword__plan__campaign__pb2.KeywordPlanCampaign.SerializeToString, + ), + 'MutateKeywordPlanCampaigns': grpc.unary_unary_rpc_method_handler( + servicer.MutateKeywordPlanCampaigns, + request_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_keyword__plan__campaign__service__pb2.MutateKeywordPlanCampaignsRequest.FromString, + response_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_keyword__plan__campaign__service__pb2.MutateKeywordPlanCampaignsResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'google.ads.googleads.v4.services.KeywordPlanCampaignService', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) diff --git a/google/ads/google_ads/v4/proto/services/keyword_plan_idea_service_pb2.py b/google/ads/google_ads/v4/proto/services/keyword_plan_idea_service_pb2.py new file mode 100644 index 000000000..1fa192d56 --- /dev/null +++ b/google/ads/google_ads/v4/proto/services/keyword_plan_idea_service_pb2.py @@ -0,0 +1,573 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/services/keyword_plan_idea_service.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.ads.google_ads.v4.proto.common import keyword_plan_common_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_keyword__plan__common__pb2 +from google.ads.google_ads.v4.proto.enums import keyword_plan_network_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_keyword__plan__network__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 +from google.api import client_pb2 as google_dot_api_dot_client__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/services/keyword_plan_idea_service.proto', + package='google.ads.googleads.v4.services', + syntax='proto3', + serialized_options=_b('\n$com.google.ads.googleads.v4.servicesB\033KeywordPlanIdeaServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V4.Services\312\002 Google\\Ads\\GoogleAds\\V4\\Services\352\002$Google::Ads::GoogleAds::V4::Services'), + serialized_pb=_b('\nFgoogle/ads/googleads_v4/proto/services/keyword_plan_idea_service.proto\x12 google.ads.googleads.v4.services\x1a>google/ads/googleads_v4/proto/common/keyword_plan_common.proto\x1a>google/ads/googleads_v4/proto/enums/keyword_plan_network.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x17google/api/client.proto\"\xf6\x04\n\x1bGenerateKeywordIdeasRequest\x12\x13\n\x0b\x63ustomer_id\x18\x01 \x01(\t\x12\x33\n\x08language\x18\x07 \x01(\x0b\x32\x1c.google.protobuf.StringValueB\x03\xe0\x41\x02\x12:\n\x14geo_target_constants\x18\x08 \x03(\x0b\x32\x1c.google.protobuf.StringValue\x12\x1e\n\x16include_adult_keywords\x18\n \x01(\x08\x12\x12\n\npage_token\x18\x0c \x01(\t\x12\x11\n\tpage_size\x18\r \x01(\x05\x12\x66\n\x14keyword_plan_network\x18\t \x01(\x0e\x32H.google.ads.googleads.v4.enums.KeywordPlanNetworkEnum.KeywordPlanNetwork\x12S\n\x14keyword_and_url_seed\x18\x02 \x01(\x0b\x32\x33.google.ads.googleads.v4.services.KeywordAndUrlSeedH\x00\x12\x45\n\x0ckeyword_seed\x18\x03 \x01(\x0b\x32-.google.ads.googleads.v4.services.KeywordSeedH\x00\x12=\n\x08url_seed\x18\x05 \x01(\x0b\x32).google.ads.googleads.v4.services.UrlSeedH\x00\x12?\n\tsite_seed\x18\x0b \x01(\x0b\x32*.google.ads.googleads.v4.services.SiteSeedH\x00\x42\x06\n\x04seed\"n\n\x11KeywordAndUrlSeed\x12)\n\x03url\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12.\n\x08keywords\x18\x02 \x03(\x0b\x32\x1c.google.protobuf.StringValue\"=\n\x0bKeywordSeed\x12.\n\x08keywords\x18\x01 \x03(\x0b\x32\x1c.google.protobuf.StringValue\"6\n\x08SiteSeed\x12*\n\x04site\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\"4\n\x07UrlSeed\x12)\n\x03url\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\"\x98\x01\n\x1bGenerateKeywordIdeaResponse\x12L\n\x07results\x18\x01 \x03(\x0b\x32;.google.ads.googleads.v4.services.GenerateKeywordIdeaResult\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x12\n\ntotal_size\x18\x03 \x01(\x03\"\xa3\x01\n\x19GenerateKeywordIdeaResult\x12*\n\x04text\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12Z\n\x14keyword_idea_metrics\x18\x03 \x01(\x0b\x32<.google.ads.googleads.v4.common.KeywordPlanHistoricalMetrics2\x8b\x02\n\x16KeywordPlanIdeaService\x12\xd3\x01\n\x14GenerateKeywordIdeas\x12=.google.ads.googleads.v4.services.GenerateKeywordIdeasRequest\x1a=.google.ads.googleads.v4.services.GenerateKeywordIdeaResponse\"=\x82\xd3\xe4\x93\x02\x37\"2/v4/customers/{customer_id=*}:generateKeywordIdeas:\x01*\x1a\x1b\xca\x41\x18googleads.googleapis.comB\x82\x02\n$com.google.ads.googleads.v4.servicesB\x1bKeywordPlanIdeaServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V4.Services\xca\x02 Google\\Ads\\GoogleAds\\V4\\Services\xea\x02$Google::Ads::GoogleAds::V4::Servicesb\x06proto3') + , + dependencies=[google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_keyword__plan__common__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_keyword__plan__network__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_api_dot_client__pb2.DESCRIPTOR,]) + + + + +_GENERATEKEYWORDIDEASREQUEST = _descriptor.Descriptor( + name='GenerateKeywordIdeasRequest', + full_name='google.ads.googleads.v4.services.GenerateKeywordIdeasRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='customer_id', full_name='google.ads.googleads.v4.services.GenerateKeywordIdeasRequest.customer_id', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='language', full_name='google.ads.googleads.v4.services.GenerateKeywordIdeasRequest.language', index=1, + number=7, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='geo_target_constants', full_name='google.ads.googleads.v4.services.GenerateKeywordIdeasRequest.geo_target_constants', index=2, + number=8, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='include_adult_keywords', full_name='google.ads.googleads.v4.services.GenerateKeywordIdeasRequest.include_adult_keywords', index=3, + number=10, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='page_token', full_name='google.ads.googleads.v4.services.GenerateKeywordIdeasRequest.page_token', index=4, + number=12, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='page_size', full_name='google.ads.googleads.v4.services.GenerateKeywordIdeasRequest.page_size', index=5, + number=13, type=5, cpp_type=1, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='keyword_plan_network', full_name='google.ads.googleads.v4.services.GenerateKeywordIdeasRequest.keyword_plan_network', index=6, + number=9, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='keyword_and_url_seed', full_name='google.ads.googleads.v4.services.GenerateKeywordIdeasRequest.keyword_and_url_seed', index=7, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='keyword_seed', full_name='google.ads.googleads.v4.services.GenerateKeywordIdeasRequest.keyword_seed', index=8, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='url_seed', full_name='google.ads.googleads.v4.services.GenerateKeywordIdeasRequest.url_seed', index=9, + number=5, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='site_seed', full_name='google.ads.googleads.v4.services.GenerateKeywordIdeasRequest.site_seed', index=10, + number=11, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name='seed', full_name='google.ads.googleads.v4.services.GenerateKeywordIdeasRequest.seed', + index=0, containing_type=None, fields=[]), + ], + serialized_start=357, + serialized_end=987, +) + + +_KEYWORDANDURLSEED = _descriptor.Descriptor( + name='KeywordAndUrlSeed', + full_name='google.ads.googleads.v4.services.KeywordAndUrlSeed', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='url', full_name='google.ads.googleads.v4.services.KeywordAndUrlSeed.url', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='keywords', full_name='google.ads.googleads.v4.services.KeywordAndUrlSeed.keywords', index=1, + number=2, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=989, + serialized_end=1099, +) + + +_KEYWORDSEED = _descriptor.Descriptor( + name='KeywordSeed', + full_name='google.ads.googleads.v4.services.KeywordSeed', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='keywords', full_name='google.ads.googleads.v4.services.KeywordSeed.keywords', index=0, + number=1, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1101, + serialized_end=1162, +) + + +_SITESEED = _descriptor.Descriptor( + name='SiteSeed', + full_name='google.ads.googleads.v4.services.SiteSeed', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='site', full_name='google.ads.googleads.v4.services.SiteSeed.site', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1164, + serialized_end=1218, +) + + +_URLSEED = _descriptor.Descriptor( + name='UrlSeed', + full_name='google.ads.googleads.v4.services.UrlSeed', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='url', full_name='google.ads.googleads.v4.services.UrlSeed.url', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1220, + serialized_end=1272, +) + + +_GENERATEKEYWORDIDEARESPONSE = _descriptor.Descriptor( + name='GenerateKeywordIdeaResponse', + full_name='google.ads.googleads.v4.services.GenerateKeywordIdeaResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='results', full_name='google.ads.googleads.v4.services.GenerateKeywordIdeaResponse.results', index=0, + number=1, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='next_page_token', full_name='google.ads.googleads.v4.services.GenerateKeywordIdeaResponse.next_page_token', index=1, + number=2, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='total_size', full_name='google.ads.googleads.v4.services.GenerateKeywordIdeaResponse.total_size', index=2, + number=3, type=3, cpp_type=2, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1275, + serialized_end=1427, +) + + +_GENERATEKEYWORDIDEARESULT = _descriptor.Descriptor( + name='GenerateKeywordIdeaResult', + full_name='google.ads.googleads.v4.services.GenerateKeywordIdeaResult', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='text', full_name='google.ads.googleads.v4.services.GenerateKeywordIdeaResult.text', index=0, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='keyword_idea_metrics', full_name='google.ads.googleads.v4.services.GenerateKeywordIdeaResult.keyword_idea_metrics', index=1, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1430, + serialized_end=1593, +) + +_GENERATEKEYWORDIDEASREQUEST.fields_by_name['language'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_GENERATEKEYWORDIDEASREQUEST.fields_by_name['geo_target_constants'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_GENERATEKEYWORDIDEASREQUEST.fields_by_name['keyword_plan_network'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_keyword__plan__network__pb2._KEYWORDPLANNETWORKENUM_KEYWORDPLANNETWORK +_GENERATEKEYWORDIDEASREQUEST.fields_by_name['keyword_and_url_seed'].message_type = _KEYWORDANDURLSEED +_GENERATEKEYWORDIDEASREQUEST.fields_by_name['keyword_seed'].message_type = _KEYWORDSEED +_GENERATEKEYWORDIDEASREQUEST.fields_by_name['url_seed'].message_type = _URLSEED +_GENERATEKEYWORDIDEASREQUEST.fields_by_name['site_seed'].message_type = _SITESEED +_GENERATEKEYWORDIDEASREQUEST.oneofs_by_name['seed'].fields.append( + _GENERATEKEYWORDIDEASREQUEST.fields_by_name['keyword_and_url_seed']) +_GENERATEKEYWORDIDEASREQUEST.fields_by_name['keyword_and_url_seed'].containing_oneof = _GENERATEKEYWORDIDEASREQUEST.oneofs_by_name['seed'] +_GENERATEKEYWORDIDEASREQUEST.oneofs_by_name['seed'].fields.append( + _GENERATEKEYWORDIDEASREQUEST.fields_by_name['keyword_seed']) +_GENERATEKEYWORDIDEASREQUEST.fields_by_name['keyword_seed'].containing_oneof = _GENERATEKEYWORDIDEASREQUEST.oneofs_by_name['seed'] +_GENERATEKEYWORDIDEASREQUEST.oneofs_by_name['seed'].fields.append( + _GENERATEKEYWORDIDEASREQUEST.fields_by_name['url_seed']) +_GENERATEKEYWORDIDEASREQUEST.fields_by_name['url_seed'].containing_oneof = _GENERATEKEYWORDIDEASREQUEST.oneofs_by_name['seed'] +_GENERATEKEYWORDIDEASREQUEST.oneofs_by_name['seed'].fields.append( + _GENERATEKEYWORDIDEASREQUEST.fields_by_name['site_seed']) +_GENERATEKEYWORDIDEASREQUEST.fields_by_name['site_seed'].containing_oneof = _GENERATEKEYWORDIDEASREQUEST.oneofs_by_name['seed'] +_KEYWORDANDURLSEED.fields_by_name['url'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_KEYWORDANDURLSEED.fields_by_name['keywords'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_KEYWORDSEED.fields_by_name['keywords'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_SITESEED.fields_by_name['site'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_URLSEED.fields_by_name['url'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_GENERATEKEYWORDIDEARESPONSE.fields_by_name['results'].message_type = _GENERATEKEYWORDIDEARESULT +_GENERATEKEYWORDIDEARESULT.fields_by_name['text'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_GENERATEKEYWORDIDEARESULT.fields_by_name['keyword_idea_metrics'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_keyword__plan__common__pb2._KEYWORDPLANHISTORICALMETRICS +DESCRIPTOR.message_types_by_name['GenerateKeywordIdeasRequest'] = _GENERATEKEYWORDIDEASREQUEST +DESCRIPTOR.message_types_by_name['KeywordAndUrlSeed'] = _KEYWORDANDURLSEED +DESCRIPTOR.message_types_by_name['KeywordSeed'] = _KEYWORDSEED +DESCRIPTOR.message_types_by_name['SiteSeed'] = _SITESEED +DESCRIPTOR.message_types_by_name['UrlSeed'] = _URLSEED +DESCRIPTOR.message_types_by_name['GenerateKeywordIdeaResponse'] = _GENERATEKEYWORDIDEARESPONSE +DESCRIPTOR.message_types_by_name['GenerateKeywordIdeaResult'] = _GENERATEKEYWORDIDEARESULT +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +GenerateKeywordIdeasRequest = _reflection.GeneratedProtocolMessageType('GenerateKeywordIdeasRequest', (_message.Message,), dict( + DESCRIPTOR = _GENERATEKEYWORDIDEASREQUEST, + __module__ = 'google.ads.googleads_v4.proto.services.keyword_plan_idea_service_pb2' + , + __doc__ = """Request message for [KeywordIdeaService.GenerateKeywordIdeas][]. + + + Attributes: + customer_id: + The ID of the customer with the recommendation. + language: + Required. The resource name of the language to target. + Required + geo_target_constants: + The resource names of the location to target. Max 10 + include_adult_keywords: + If true, adult keywords will be included in response. The + default value is false. + page_token: + Token of the page to retrieve. If not specified, the first + page of results will be returned. To request next page of + results use the value obtained from ``next_page_token`` in the + previous response. The request fields must match across pages. + page_size: + Number of results to retrieve in a single page. A maximum of + 10,000 results may be returned, if the page\_size exceeds + this, it is ignored. If unspecified, at most 10,000 results + will be returned. The server may decide to further limit the + number of returned resources. If the response contains fewer + than 10,000 results it may not be assumed as last page of + results. + keyword_plan_network: + Targeting network. + seed: + The type of seed to generate keyword ideas. + keyword_and_url_seed: + A Keyword and a specific Url to generate ideas from e.g. cars, + www.example.com/cars. + keyword_seed: + A Keyword or phrase to generate ideas from, e.g. cars. + url_seed: + A specific url to generate ideas from, e.g. + www.example.com/cars. + site_seed: + The site to generate ideas from, e.g. www.example.com. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.GenerateKeywordIdeasRequest) + )) +_sym_db.RegisterMessage(GenerateKeywordIdeasRequest) + +KeywordAndUrlSeed = _reflection.GeneratedProtocolMessageType('KeywordAndUrlSeed', (_message.Message,), dict( + DESCRIPTOR = _KEYWORDANDURLSEED, + __module__ = 'google.ads.googleads_v4.proto.services.keyword_plan_idea_service_pb2' + , + __doc__ = """Keyword And Url Seed + + + Attributes: + url: + The URL to crawl in order to generate keyword ideas. + keywords: + Requires at least one keyword. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.KeywordAndUrlSeed) + )) +_sym_db.RegisterMessage(KeywordAndUrlSeed) + +KeywordSeed = _reflection.GeneratedProtocolMessageType('KeywordSeed', (_message.Message,), dict( + DESCRIPTOR = _KEYWORDSEED, + __module__ = 'google.ads.googleads_v4.proto.services.keyword_plan_idea_service_pb2' + , + __doc__ = """Keyword Seed + + + Attributes: + keywords: + Requires at least one keyword. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.KeywordSeed) + )) +_sym_db.RegisterMessage(KeywordSeed) + +SiteSeed = _reflection.GeneratedProtocolMessageType('SiteSeed', (_message.Message,), dict( + DESCRIPTOR = _SITESEED, + __module__ = 'google.ads.googleads_v4.proto.services.keyword_plan_idea_service_pb2' + , + __doc__ = """Site Seed + + + Attributes: + site: + The domain name of the site. If the customer requesting the + ideas doesn't own the site provided only public information is + returned. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.SiteSeed) + )) +_sym_db.RegisterMessage(SiteSeed) + +UrlSeed = _reflection.GeneratedProtocolMessageType('UrlSeed', (_message.Message,), dict( + DESCRIPTOR = _URLSEED, + __module__ = 'google.ads.googleads_v4.proto.services.keyword_plan_idea_service_pb2' + , + __doc__ = """Url Seed + + + Attributes: + url: + The URL to crawl in order to generate keyword ideas. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.UrlSeed) + )) +_sym_db.RegisterMessage(UrlSeed) + +GenerateKeywordIdeaResponse = _reflection.GeneratedProtocolMessageType('GenerateKeywordIdeaResponse', (_message.Message,), dict( + DESCRIPTOR = _GENERATEKEYWORDIDEARESPONSE, + __module__ = 'google.ads.googleads_v4.proto.services.keyword_plan_idea_service_pb2' + , + __doc__ = """Response message for [KeywordIdeaService.GenerateKeywordIdeas][]. + + + Attributes: + results: + Results of generating keyword ideas. + next_page_token: + Pagination token used to retrieve the next page of results. + Pass the content of this string as the ``page_token`` + attribute of the next request. ``next_page_token`` is not + returned for the last page. + total_size: + Total number of results available. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.GenerateKeywordIdeaResponse) + )) +_sym_db.RegisterMessage(GenerateKeywordIdeaResponse) + +GenerateKeywordIdeaResult = _reflection.GeneratedProtocolMessageType('GenerateKeywordIdeaResult', (_message.Message,), dict( + DESCRIPTOR = _GENERATEKEYWORDIDEARESULT, + __module__ = 'google.ads.googleads_v4.proto.services.keyword_plan_idea_service_pb2' + , + __doc__ = """The result of generating keyword ideas. + + + Attributes: + text: + Text of the keyword idea. As in Keyword Plan historical + metrics, this text may not be an actual keyword, but the + canonical form of multiple keywords. See + KeywordPlanKeywordHistoricalMetrics message in + KeywordPlanService. + keyword_idea_metrics: + The historical metrics for the keyword + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.GenerateKeywordIdeaResult) + )) +_sym_db.RegisterMessage(GenerateKeywordIdeaResult) + + +DESCRIPTOR._options = None +_GENERATEKEYWORDIDEASREQUEST.fields_by_name['language']._options = None + +_KEYWORDPLANIDEASERVICE = _descriptor.ServiceDescriptor( + name='KeywordPlanIdeaService', + full_name='google.ads.googleads.v4.services.KeywordPlanIdeaService', + file=DESCRIPTOR, + index=0, + serialized_options=_b('\312A\030googleads.googleapis.com'), + serialized_start=1596, + serialized_end=1863, + methods=[ + _descriptor.MethodDescriptor( + name='GenerateKeywordIdeas', + full_name='google.ads.googleads.v4.services.KeywordPlanIdeaService.GenerateKeywordIdeas', + index=0, + containing_service=None, + input_type=_GENERATEKEYWORDIDEASREQUEST, + output_type=_GENERATEKEYWORDIDEARESPONSE, + serialized_options=_b('\202\323\344\223\0027\"2/v4/customers/{customer_id=*}:generateKeywordIdeas:\001*'), + ), +]) +_sym_db.RegisterServiceDescriptor(_KEYWORDPLANIDEASERVICE) + +DESCRIPTOR.services_by_name['KeywordPlanIdeaService'] = _KEYWORDPLANIDEASERVICE + +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/services/keyword_plan_idea_service_pb2_grpc.py b/google/ads/google_ads/v4/proto/services/keyword_plan_idea_service_pb2_grpc.py similarity index 76% rename from google/ads/google_ads/v1/proto/services/keyword_plan_idea_service_pb2_grpc.py rename to google/ads/google_ads/v4/proto/services/keyword_plan_idea_service_pb2_grpc.py index 7dfc76c8c..3d4dfad5d 100644 --- a/google/ads/google_ads/v1/proto/services/keyword_plan_idea_service_pb2_grpc.py +++ b/google/ads/google_ads/v4/proto/services/keyword_plan_idea_service_pb2_grpc.py @@ -1,7 +1,7 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc -from google.ads.google_ads.v1.proto.services import keyword_plan_idea_service_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_keyword__plan__idea__service__pb2 +from google.ads.google_ads.v4.proto.services import keyword_plan_idea_service_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_keyword__plan__idea__service__pb2 class KeywordPlanIdeaServiceStub(object): @@ -17,9 +17,9 @@ def __init__(self, channel): channel: A grpc.Channel. """ self.GenerateKeywordIdeas = channel.unary_unary( - '/google.ads.googleads.v1.services.KeywordPlanIdeaService/GenerateKeywordIdeas', - request_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_keyword__plan__idea__service__pb2.GenerateKeywordIdeasRequest.SerializeToString, - response_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_keyword__plan__idea__service__pb2.GenerateKeywordIdeaResponse.FromString, + '/google.ads.googleads.v4.services.KeywordPlanIdeaService/GenerateKeywordIdeas', + request_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_keyword__plan__idea__service__pb2.GenerateKeywordIdeasRequest.SerializeToString, + response_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_keyword__plan__idea__service__pb2.GenerateKeywordIdeaResponse.FromString, ) @@ -41,10 +41,10 @@ def add_KeywordPlanIdeaServiceServicer_to_server(servicer, server): rpc_method_handlers = { 'GenerateKeywordIdeas': grpc.unary_unary_rpc_method_handler( servicer.GenerateKeywordIdeas, - request_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_keyword__plan__idea__service__pb2.GenerateKeywordIdeasRequest.FromString, - response_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_keyword__plan__idea__service__pb2.GenerateKeywordIdeaResponse.SerializeToString, + request_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_keyword__plan__idea__service__pb2.GenerateKeywordIdeasRequest.FromString, + response_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_keyword__plan__idea__service__pb2.GenerateKeywordIdeaResponse.SerializeToString, ), } generic_handler = grpc.method_handlers_generic_handler( - 'google.ads.googleads.v1.services.KeywordPlanIdeaService', rpc_method_handlers) + 'google.ads.googleads.v4.services.KeywordPlanIdeaService', rpc_method_handlers) server.add_generic_rpc_handlers((generic_handler,)) diff --git a/google/ads/google_ads/v4/proto/services/keyword_plan_service_pb2.py b/google/ads/google_ads/v4/proto/services/keyword_plan_service_pb2.py new file mode 100644 index 000000000..0f031867d --- /dev/null +++ b/google/ads/google_ads/v4/proto/services/keyword_plan_service_pb2.py @@ -0,0 +1,1258 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/services/keyword_plan_service.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.ads.google_ads.v4.proto.common import keyword_plan_common_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_keyword__plan__common__pb2 +from google.ads.google_ads.v4.proto.resources import keyword_plan_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_keyword__plan__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 +from google.api import client_pb2 as google_dot_api_dot_client__pb2 +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 +from google.protobuf import field_mask_pb2 as google_dot_protobuf_dot_field__mask__pb2 +from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 +from google.rpc import status_pb2 as google_dot_rpc_dot_status__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/services/keyword_plan_service.proto', + package='google.ads.googleads.v4.services', + syntax='proto3', + serialized_options=_b('\n$com.google.ads.googleads.v4.servicesB\027KeywordPlanServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V4.Services\312\002 Google\\Ads\\GoogleAds\\V4\\Services\352\002$Google::Ads::GoogleAds::V4::Services'), + serialized_pb=_b('\nAgoogle/ads/googleads_v4/proto/services/keyword_plan_service.proto\x12 google.ads.googleads.v4.services\x1a>google/ads/googleads_v4/proto/common/keyword_plan_common.proto\x1a:google/ads/googleads_v4/proto/resources/keyword_plan.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/protobuf/field_mask.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x17google/rpc/status.proto\"\\\n\x15GetKeywordPlanRequest\x12\x43\n\rresource_name\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$googleads.googleapis.com/KeywordPlan\"\xb6\x01\n\x19MutateKeywordPlansRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12O\n\noperations\x18\x02 \x03(\x0b\x32\x36.google.ads.googleads.v4.services.KeywordPlanOperationB\x03\xe0\x41\x02\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\"\xea\x01\n\x14KeywordPlanOperation\x12/\n\x0bupdate_mask\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12@\n\x06\x63reate\x18\x01 \x01(\x0b\x32..google.ads.googleads.v4.resources.KeywordPlanH\x00\x12@\n\x06update\x18\x02 \x01(\x0b\x32..google.ads.googleads.v4.resources.KeywordPlanH\x00\x12\x10\n\x06remove\x18\x03 \x01(\tH\x00\x42\x0b\n\toperation\"\x9c\x01\n\x1aMutateKeywordPlansResponse\x12\x31\n\x15partial_failure_error\x18\x03 \x01(\x0b\x32\x12.google.rpc.Status\x12K\n\x07results\x18\x02 \x03(\x0b\x32:.google.ads.googleads.v4.services.MutateKeywordPlansResult\"1\n\x18MutateKeywordPlansResult\x12\x15\n\rresource_name\x18\x01 \x01(\t\"9\n\x1cGenerateForecastCurveRequest\x12\x19\n\x0ckeyword_plan\x18\x01 \x01(\tB\x03\xe0\x41\x02\"\x85\x01\n\x1dGenerateForecastCurveResponse\x12\x64\n\x18\x63\x61mpaign_forecast_curves\x18\x01 \x03(\x0b\x32\x42.google.ads.googleads.v4.services.KeywordPlanCampaignForecastCurve\";\n\x1eGenerateForecastMetricsRequest\x12\x19\n\x0ckeyword_plan\x18\x01 \x01(\tB\x03\xe0\x41\x02\"\xaf\x02\n\x1fGenerateForecastMetricsResponse\x12Y\n\x12\x63\x61mpaign_forecasts\x18\x01 \x03(\x0b\x32=.google.ads.googleads.v4.services.KeywordPlanCampaignForecast\x12X\n\x12\x61\x64_group_forecasts\x18\x02 \x03(\x0b\x32<.google.ads.googleads.v4.services.KeywordPlanAdGroupForecast\x12W\n\x11keyword_forecasts\x18\x03 \x03(\x0b\x32<.google.ads.googleads.v4.services.KeywordPlanKeywordForecast\"\xa8\x01\n\x1bKeywordPlanCampaignForecast\x12;\n\x15keyword_plan_campaign\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12L\n\x11\x63\x61mpaign_forecast\x18\x02 \x01(\x0b\x32\x31.google.ads.googleads.v4.services.ForecastMetrics\"\xa7\x01\n\x1aKeywordPlanAdGroupForecast\x12;\n\x15keyword_plan_ad_group\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12L\n\x11\x61\x64_group_forecast\x18\x02 \x01(\x0b\x32\x31.google.ads.googleads.v4.services.ForecastMetrics\"\xae\x01\n\x1aKeywordPlanKeywordForecast\x12\x43\n\x1dkeyword_plan_ad_group_keyword\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12K\n\x10keyword_forecast\x18\x02 \x01(\x0b\x32\x31.google.ads.googleads.v4.services.ForecastMetrics\"\xc8\x01\n KeywordPlanCampaignForecastCurve\x12;\n\x15keyword_plan_campaign\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12g\n\x1amax_cpc_bid_forecast_curve\x18\x02 \x01(\x0b\x32\x43.google.ads.googleads.v4.services.KeywordPlanMaxCpcBidForecastCurve\"\x82\x01\n!KeywordPlanMaxCpcBidForecastCurve\x12]\n\x15max_cpc_bid_forecasts\x18\x01 \x03(\x0b\x32>.google.ads.googleads.v4.services.KeywordPlanMaxCpcBidForecast\"\xa8\x01\n\x1cKeywordPlanMaxCpcBidForecast\x12\x37\n\x12max_cpc_bid_micros\x18\x01 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12O\n\x14max_cpc_bid_forecast\x18\x02 \x01(\x0b\x32\x31.google.ads.googleads.v4.services.ForecastMetrics\"\x81\x02\n\x0f\x46orecastMetrics\x12\x31\n\x0bimpressions\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12)\n\x03\x63tr\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12\x30\n\x0b\x61verage_cpc\x18\x03 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12,\n\x06\x63licks\x18\x05 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12\x30\n\x0b\x63ost_micros\x18\x06 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\"=\n GenerateHistoricalMetricsRequest\x12\x19\n\x0ckeyword_plan\x18\x01 \x01(\tB\x03\xe0\x41\x02\"{\n!GenerateHistoricalMetricsResponse\x12V\n\x07metrics\x18\x01 \x03(\x0b\x32\x45.google.ads.googleads.v4.services.KeywordPlanKeywordHistoricalMetrics\"\xb0\x01\n#KeywordPlanKeywordHistoricalMetrics\x12\x32\n\x0csearch_query\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12U\n\x0fkeyword_metrics\x18\x02 \x01(\x0b\x32<.google.ads.googleads.v4.common.KeywordPlanHistoricalMetrics2\xe4\t\n\x12KeywordPlanService\x12\xc1\x01\n\x0eGetKeywordPlan\x12\x37.google.ads.googleads.v4.services.GetKeywordPlanRequest\x1a..google.ads.googleads.v4.resources.KeywordPlan\"F\x82\xd3\xe4\x93\x02\x30\x12./v4/{resource_name=customers/*/keywordPlans/*}\xda\x41\rresource_name\x12\xe6\x01\n\x12MutateKeywordPlans\x12;.google.ads.googleads.v4.services.MutateKeywordPlansRequest\x1a<.google.ads.googleads.v4.services.MutateKeywordPlansResponse\"U\x82\xd3\xe4\x93\x02\x36\"1/v4/customers/{customer_id=*}/keywordPlans:mutate:\x01*\xda\x41\x16\x63ustomer_id,operations\x12\xf7\x01\n\x15GenerateForecastCurve\x12>.google.ads.googleads.v4.services.GenerateForecastCurveRequest\x1a?.google.ads.googleads.v4.services.GenerateForecastCurveResponse\"]\x82\xd3\xe4\x93\x02H\"C/v4/{keyword_plan=customers/*/keywordPlans/*}:generateForecastCurve:\x01*\xda\x41\x0ckeyword_plan\x12\xff\x01\n\x17GenerateForecastMetrics\x12@.google.ads.googleads.v4.services.GenerateForecastMetricsRequest\x1a\x41.google.ads.googleads.v4.services.GenerateForecastMetricsResponse\"_\x82\xd3\xe4\x93\x02J\"E/v4/{keyword_plan=customers/*/keywordPlans/*}:generateForecastMetrics:\x01*\xda\x41\x0ckeyword_plan\x12\x87\x02\n\x19GenerateHistoricalMetrics\x12\x42.google.ads.googleads.v4.services.GenerateHistoricalMetricsRequest\x1a\x43.google.ads.googleads.v4.services.GenerateHistoricalMetricsResponse\"a\x82\xd3\xe4\x93\x02L\"G/v4/{keyword_plan=customers/*/keywordPlans/*}:generateHistoricalMetrics:\x01*\xda\x41\x0ckeyword_plan\x1a\x1b\xca\x41\x18googleads.googleapis.comB\xfe\x01\n$com.google.ads.googleads.v4.servicesB\x17KeywordPlanServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V4.Services\xca\x02 Google\\Ads\\GoogleAds\\V4\\Services\xea\x02$Google::Ads::GoogleAds::V4::Servicesb\x06proto3') + , + dependencies=[google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_keyword__plan__common__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_keyword__plan__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_api_dot_client__pb2.DESCRIPTOR,google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_api_dot_resource__pb2.DESCRIPTOR,google_dot_protobuf_dot_field__mask__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_rpc_dot_status__pb2.DESCRIPTOR,]) + + + + +_GETKEYWORDPLANREQUEST = _descriptor.Descriptor( + name='GetKeywordPlanRequest', + full_name='google.ads.googleads.v4.services.GetKeywordPlanRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.services.GetKeywordPlanRequest.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002\372A&\n$googleads.googleapis.com/KeywordPlan'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=433, + serialized_end=525, +) + + +_MUTATEKEYWORDPLANSREQUEST = _descriptor.Descriptor( + name='MutateKeywordPlansRequest', + full_name='google.ads.googleads.v4.services.MutateKeywordPlansRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='customer_id', full_name='google.ads.googleads.v4.services.MutateKeywordPlansRequest.customer_id', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='operations', full_name='google.ads.googleads.v4.services.MutateKeywordPlansRequest.operations', index=1, + number=2, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='partial_failure', full_name='google.ads.googleads.v4.services.MutateKeywordPlansRequest.partial_failure', index=2, + number=3, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='validate_only', full_name='google.ads.googleads.v4.services.MutateKeywordPlansRequest.validate_only', index=3, + number=4, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=528, + serialized_end=710, +) + + +_KEYWORDPLANOPERATION = _descriptor.Descriptor( + name='KeywordPlanOperation', + full_name='google.ads.googleads.v4.services.KeywordPlanOperation', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='update_mask', full_name='google.ads.googleads.v4.services.KeywordPlanOperation.update_mask', index=0, + number=4, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='create', full_name='google.ads.googleads.v4.services.KeywordPlanOperation.create', index=1, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='update', full_name='google.ads.googleads.v4.services.KeywordPlanOperation.update', index=2, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='remove', full_name='google.ads.googleads.v4.services.KeywordPlanOperation.remove', index=3, + number=3, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name='operation', full_name='google.ads.googleads.v4.services.KeywordPlanOperation.operation', + index=0, containing_type=None, fields=[]), + ], + serialized_start=713, + serialized_end=947, +) + + +_MUTATEKEYWORDPLANSRESPONSE = _descriptor.Descriptor( + name='MutateKeywordPlansResponse', + full_name='google.ads.googleads.v4.services.MutateKeywordPlansResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='partial_failure_error', full_name='google.ads.googleads.v4.services.MutateKeywordPlansResponse.partial_failure_error', index=0, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='results', full_name='google.ads.googleads.v4.services.MutateKeywordPlansResponse.results', index=1, + number=2, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=950, + serialized_end=1106, +) + + +_MUTATEKEYWORDPLANSRESULT = _descriptor.Descriptor( + name='MutateKeywordPlansResult', + full_name='google.ads.googleads.v4.services.MutateKeywordPlansResult', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.services.MutateKeywordPlansResult.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1108, + serialized_end=1157, +) + + +_GENERATEFORECASTCURVEREQUEST = _descriptor.Descriptor( + name='GenerateForecastCurveRequest', + full_name='google.ads.googleads.v4.services.GenerateForecastCurveRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='keyword_plan', full_name='google.ads.googleads.v4.services.GenerateForecastCurveRequest.keyword_plan', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1159, + serialized_end=1216, +) + + +_GENERATEFORECASTCURVERESPONSE = _descriptor.Descriptor( + name='GenerateForecastCurveResponse', + full_name='google.ads.googleads.v4.services.GenerateForecastCurveResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='campaign_forecast_curves', full_name='google.ads.googleads.v4.services.GenerateForecastCurveResponse.campaign_forecast_curves', index=0, + number=1, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1219, + serialized_end=1352, +) + + +_GENERATEFORECASTMETRICSREQUEST = _descriptor.Descriptor( + name='GenerateForecastMetricsRequest', + full_name='google.ads.googleads.v4.services.GenerateForecastMetricsRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='keyword_plan', full_name='google.ads.googleads.v4.services.GenerateForecastMetricsRequest.keyword_plan', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1354, + serialized_end=1413, +) + + +_GENERATEFORECASTMETRICSRESPONSE = _descriptor.Descriptor( + name='GenerateForecastMetricsResponse', + full_name='google.ads.googleads.v4.services.GenerateForecastMetricsResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='campaign_forecasts', full_name='google.ads.googleads.v4.services.GenerateForecastMetricsResponse.campaign_forecasts', index=0, + number=1, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='ad_group_forecasts', full_name='google.ads.googleads.v4.services.GenerateForecastMetricsResponse.ad_group_forecasts', index=1, + number=2, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='keyword_forecasts', full_name='google.ads.googleads.v4.services.GenerateForecastMetricsResponse.keyword_forecasts', index=2, + number=3, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1416, + serialized_end=1719, +) + + +_KEYWORDPLANCAMPAIGNFORECAST = _descriptor.Descriptor( + name='KeywordPlanCampaignForecast', + full_name='google.ads.googleads.v4.services.KeywordPlanCampaignForecast', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='keyword_plan_campaign', full_name='google.ads.googleads.v4.services.KeywordPlanCampaignForecast.keyword_plan_campaign', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='campaign_forecast', full_name='google.ads.googleads.v4.services.KeywordPlanCampaignForecast.campaign_forecast', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1722, + serialized_end=1890, +) + + +_KEYWORDPLANADGROUPFORECAST = _descriptor.Descriptor( + name='KeywordPlanAdGroupForecast', + full_name='google.ads.googleads.v4.services.KeywordPlanAdGroupForecast', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='keyword_plan_ad_group', full_name='google.ads.googleads.v4.services.KeywordPlanAdGroupForecast.keyword_plan_ad_group', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='ad_group_forecast', full_name='google.ads.googleads.v4.services.KeywordPlanAdGroupForecast.ad_group_forecast', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1893, + serialized_end=2060, +) + + +_KEYWORDPLANKEYWORDFORECAST = _descriptor.Descriptor( + name='KeywordPlanKeywordForecast', + full_name='google.ads.googleads.v4.services.KeywordPlanKeywordForecast', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='keyword_plan_ad_group_keyword', full_name='google.ads.googleads.v4.services.KeywordPlanKeywordForecast.keyword_plan_ad_group_keyword', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='keyword_forecast', full_name='google.ads.googleads.v4.services.KeywordPlanKeywordForecast.keyword_forecast', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=2063, + serialized_end=2237, +) + + +_KEYWORDPLANCAMPAIGNFORECASTCURVE = _descriptor.Descriptor( + name='KeywordPlanCampaignForecastCurve', + full_name='google.ads.googleads.v4.services.KeywordPlanCampaignForecastCurve', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='keyword_plan_campaign', full_name='google.ads.googleads.v4.services.KeywordPlanCampaignForecastCurve.keyword_plan_campaign', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='max_cpc_bid_forecast_curve', full_name='google.ads.googleads.v4.services.KeywordPlanCampaignForecastCurve.max_cpc_bid_forecast_curve', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=2240, + serialized_end=2440, +) + + +_KEYWORDPLANMAXCPCBIDFORECASTCURVE = _descriptor.Descriptor( + name='KeywordPlanMaxCpcBidForecastCurve', + full_name='google.ads.googleads.v4.services.KeywordPlanMaxCpcBidForecastCurve', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='max_cpc_bid_forecasts', full_name='google.ads.googleads.v4.services.KeywordPlanMaxCpcBidForecastCurve.max_cpc_bid_forecasts', index=0, + number=1, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=2443, + serialized_end=2573, +) + + +_KEYWORDPLANMAXCPCBIDFORECAST = _descriptor.Descriptor( + name='KeywordPlanMaxCpcBidForecast', + full_name='google.ads.googleads.v4.services.KeywordPlanMaxCpcBidForecast', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='max_cpc_bid_micros', full_name='google.ads.googleads.v4.services.KeywordPlanMaxCpcBidForecast.max_cpc_bid_micros', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='max_cpc_bid_forecast', full_name='google.ads.googleads.v4.services.KeywordPlanMaxCpcBidForecast.max_cpc_bid_forecast', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=2576, + serialized_end=2744, +) + + +_FORECASTMETRICS = _descriptor.Descriptor( + name='ForecastMetrics', + full_name='google.ads.googleads.v4.services.ForecastMetrics', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='impressions', full_name='google.ads.googleads.v4.services.ForecastMetrics.impressions', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='ctr', full_name='google.ads.googleads.v4.services.ForecastMetrics.ctr', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='average_cpc', full_name='google.ads.googleads.v4.services.ForecastMetrics.average_cpc', index=2, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='clicks', full_name='google.ads.googleads.v4.services.ForecastMetrics.clicks', index=3, + number=5, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='cost_micros', full_name='google.ads.googleads.v4.services.ForecastMetrics.cost_micros', index=4, + number=6, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=2747, + serialized_end=3004, +) + + +_GENERATEHISTORICALMETRICSREQUEST = _descriptor.Descriptor( + name='GenerateHistoricalMetricsRequest', + full_name='google.ads.googleads.v4.services.GenerateHistoricalMetricsRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='keyword_plan', full_name='google.ads.googleads.v4.services.GenerateHistoricalMetricsRequest.keyword_plan', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=3006, + serialized_end=3067, +) + + +_GENERATEHISTORICALMETRICSRESPONSE = _descriptor.Descriptor( + name='GenerateHistoricalMetricsResponse', + full_name='google.ads.googleads.v4.services.GenerateHistoricalMetricsResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='metrics', full_name='google.ads.googleads.v4.services.GenerateHistoricalMetricsResponse.metrics', index=0, + number=1, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=3069, + serialized_end=3192, +) + + +_KEYWORDPLANKEYWORDHISTORICALMETRICS = _descriptor.Descriptor( + name='KeywordPlanKeywordHistoricalMetrics', + full_name='google.ads.googleads.v4.services.KeywordPlanKeywordHistoricalMetrics', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='search_query', full_name='google.ads.googleads.v4.services.KeywordPlanKeywordHistoricalMetrics.search_query', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='keyword_metrics', full_name='google.ads.googleads.v4.services.KeywordPlanKeywordHistoricalMetrics.keyword_metrics', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=3195, + serialized_end=3371, +) + +_MUTATEKEYWORDPLANSREQUEST.fields_by_name['operations'].message_type = _KEYWORDPLANOPERATION +_KEYWORDPLANOPERATION.fields_by_name['update_mask'].message_type = google_dot_protobuf_dot_field__mask__pb2._FIELDMASK +_KEYWORDPLANOPERATION.fields_by_name['create'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_keyword__plan__pb2._KEYWORDPLAN +_KEYWORDPLANOPERATION.fields_by_name['update'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_keyword__plan__pb2._KEYWORDPLAN +_KEYWORDPLANOPERATION.oneofs_by_name['operation'].fields.append( + _KEYWORDPLANOPERATION.fields_by_name['create']) +_KEYWORDPLANOPERATION.fields_by_name['create'].containing_oneof = _KEYWORDPLANOPERATION.oneofs_by_name['operation'] +_KEYWORDPLANOPERATION.oneofs_by_name['operation'].fields.append( + _KEYWORDPLANOPERATION.fields_by_name['update']) +_KEYWORDPLANOPERATION.fields_by_name['update'].containing_oneof = _KEYWORDPLANOPERATION.oneofs_by_name['operation'] +_KEYWORDPLANOPERATION.oneofs_by_name['operation'].fields.append( + _KEYWORDPLANOPERATION.fields_by_name['remove']) +_KEYWORDPLANOPERATION.fields_by_name['remove'].containing_oneof = _KEYWORDPLANOPERATION.oneofs_by_name['operation'] +_MUTATEKEYWORDPLANSRESPONSE.fields_by_name['partial_failure_error'].message_type = google_dot_rpc_dot_status__pb2._STATUS +_MUTATEKEYWORDPLANSRESPONSE.fields_by_name['results'].message_type = _MUTATEKEYWORDPLANSRESULT +_GENERATEFORECASTCURVERESPONSE.fields_by_name['campaign_forecast_curves'].message_type = _KEYWORDPLANCAMPAIGNFORECASTCURVE +_GENERATEFORECASTMETRICSRESPONSE.fields_by_name['campaign_forecasts'].message_type = _KEYWORDPLANCAMPAIGNFORECAST +_GENERATEFORECASTMETRICSRESPONSE.fields_by_name['ad_group_forecasts'].message_type = _KEYWORDPLANADGROUPFORECAST +_GENERATEFORECASTMETRICSRESPONSE.fields_by_name['keyword_forecasts'].message_type = _KEYWORDPLANKEYWORDFORECAST +_KEYWORDPLANCAMPAIGNFORECAST.fields_by_name['keyword_plan_campaign'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_KEYWORDPLANCAMPAIGNFORECAST.fields_by_name['campaign_forecast'].message_type = _FORECASTMETRICS +_KEYWORDPLANADGROUPFORECAST.fields_by_name['keyword_plan_ad_group'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_KEYWORDPLANADGROUPFORECAST.fields_by_name['ad_group_forecast'].message_type = _FORECASTMETRICS +_KEYWORDPLANKEYWORDFORECAST.fields_by_name['keyword_plan_ad_group_keyword'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_KEYWORDPLANKEYWORDFORECAST.fields_by_name['keyword_forecast'].message_type = _FORECASTMETRICS +_KEYWORDPLANCAMPAIGNFORECASTCURVE.fields_by_name['keyword_plan_campaign'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_KEYWORDPLANCAMPAIGNFORECASTCURVE.fields_by_name['max_cpc_bid_forecast_curve'].message_type = _KEYWORDPLANMAXCPCBIDFORECASTCURVE +_KEYWORDPLANMAXCPCBIDFORECASTCURVE.fields_by_name['max_cpc_bid_forecasts'].message_type = _KEYWORDPLANMAXCPCBIDFORECAST +_KEYWORDPLANMAXCPCBIDFORECAST.fields_by_name['max_cpc_bid_micros'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_KEYWORDPLANMAXCPCBIDFORECAST.fields_by_name['max_cpc_bid_forecast'].message_type = _FORECASTMETRICS +_FORECASTMETRICS.fields_by_name['impressions'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE +_FORECASTMETRICS.fields_by_name['ctr'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE +_FORECASTMETRICS.fields_by_name['average_cpc'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_FORECASTMETRICS.fields_by_name['clicks'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE +_FORECASTMETRICS.fields_by_name['cost_micros'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_GENERATEHISTORICALMETRICSRESPONSE.fields_by_name['metrics'].message_type = _KEYWORDPLANKEYWORDHISTORICALMETRICS +_KEYWORDPLANKEYWORDHISTORICALMETRICS.fields_by_name['search_query'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_KEYWORDPLANKEYWORDHISTORICALMETRICS.fields_by_name['keyword_metrics'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_keyword__plan__common__pb2._KEYWORDPLANHISTORICALMETRICS +DESCRIPTOR.message_types_by_name['GetKeywordPlanRequest'] = _GETKEYWORDPLANREQUEST +DESCRIPTOR.message_types_by_name['MutateKeywordPlansRequest'] = _MUTATEKEYWORDPLANSREQUEST +DESCRIPTOR.message_types_by_name['KeywordPlanOperation'] = _KEYWORDPLANOPERATION +DESCRIPTOR.message_types_by_name['MutateKeywordPlansResponse'] = _MUTATEKEYWORDPLANSRESPONSE +DESCRIPTOR.message_types_by_name['MutateKeywordPlansResult'] = _MUTATEKEYWORDPLANSRESULT +DESCRIPTOR.message_types_by_name['GenerateForecastCurveRequest'] = _GENERATEFORECASTCURVEREQUEST +DESCRIPTOR.message_types_by_name['GenerateForecastCurveResponse'] = _GENERATEFORECASTCURVERESPONSE +DESCRIPTOR.message_types_by_name['GenerateForecastMetricsRequest'] = _GENERATEFORECASTMETRICSREQUEST +DESCRIPTOR.message_types_by_name['GenerateForecastMetricsResponse'] = _GENERATEFORECASTMETRICSRESPONSE +DESCRIPTOR.message_types_by_name['KeywordPlanCampaignForecast'] = _KEYWORDPLANCAMPAIGNFORECAST +DESCRIPTOR.message_types_by_name['KeywordPlanAdGroupForecast'] = _KEYWORDPLANADGROUPFORECAST +DESCRIPTOR.message_types_by_name['KeywordPlanKeywordForecast'] = _KEYWORDPLANKEYWORDFORECAST +DESCRIPTOR.message_types_by_name['KeywordPlanCampaignForecastCurve'] = _KEYWORDPLANCAMPAIGNFORECASTCURVE +DESCRIPTOR.message_types_by_name['KeywordPlanMaxCpcBidForecastCurve'] = _KEYWORDPLANMAXCPCBIDFORECASTCURVE +DESCRIPTOR.message_types_by_name['KeywordPlanMaxCpcBidForecast'] = _KEYWORDPLANMAXCPCBIDFORECAST +DESCRIPTOR.message_types_by_name['ForecastMetrics'] = _FORECASTMETRICS +DESCRIPTOR.message_types_by_name['GenerateHistoricalMetricsRequest'] = _GENERATEHISTORICALMETRICSREQUEST +DESCRIPTOR.message_types_by_name['GenerateHistoricalMetricsResponse'] = _GENERATEHISTORICALMETRICSRESPONSE +DESCRIPTOR.message_types_by_name['KeywordPlanKeywordHistoricalMetrics'] = _KEYWORDPLANKEYWORDHISTORICALMETRICS +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +GetKeywordPlanRequest = _reflection.GeneratedProtocolMessageType('GetKeywordPlanRequest', (_message.Message,), dict( + DESCRIPTOR = _GETKEYWORDPLANREQUEST, + __module__ = 'google.ads.googleads_v4.proto.services.keyword_plan_service_pb2' + , + __doc__ = """Request message for + [KeywordPlanService.GetKeywordPlan][google.ads.googleads.v4.services.KeywordPlanService.GetKeywordPlan]. + + + Attributes: + resource_name: + Required. The resource name of the plan to fetch. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.GetKeywordPlanRequest) + )) +_sym_db.RegisterMessage(GetKeywordPlanRequest) + +MutateKeywordPlansRequest = _reflection.GeneratedProtocolMessageType('MutateKeywordPlansRequest', (_message.Message,), dict( + DESCRIPTOR = _MUTATEKEYWORDPLANSREQUEST, + __module__ = 'google.ads.googleads_v4.proto.services.keyword_plan_service_pb2' + , + __doc__ = """Request message for + [KeywordPlanService.MutateKeywordPlans][google.ads.googleads.v4.services.KeywordPlanService.MutateKeywordPlans]. + + + Attributes: + customer_id: + Required. The ID of the customer whose keyword plans are being + modified. + operations: + Required. The list of operations to perform on individual + keyword plans. + partial_failure: + If true, successful operations will be carried out and invalid + operations will return errors. If false, all operations will + be carried out in one transaction if and only if they are all + valid. Default is false. + validate_only: + If true, the request is validated but not executed. Only + errors are returned, not results. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.MutateKeywordPlansRequest) + )) +_sym_db.RegisterMessage(MutateKeywordPlansRequest) + +KeywordPlanOperation = _reflection.GeneratedProtocolMessageType('KeywordPlanOperation', (_message.Message,), dict( + DESCRIPTOR = _KEYWORDPLANOPERATION, + __module__ = 'google.ads.googleads_v4.proto.services.keyword_plan_service_pb2' + , + __doc__ = """A single operation (create, update, remove) on a keyword plan. + + + Attributes: + update_mask: + The FieldMask that determines which resource fields are + modified in an update. + operation: + The mutate operation. + create: + Create operation: No resource name is expected for the new + keyword plan. + update: + Update operation: The keyword plan is expected to have a valid + resource name. + remove: + Remove operation: A resource name for the removed keyword plan + is expected in this format: + ``customers/{customer_id}/keywordPlans/{keyword_plan_id}`` + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.KeywordPlanOperation) + )) +_sym_db.RegisterMessage(KeywordPlanOperation) + +MutateKeywordPlansResponse = _reflection.GeneratedProtocolMessageType('MutateKeywordPlansResponse', (_message.Message,), dict( + DESCRIPTOR = _MUTATEKEYWORDPLANSRESPONSE, + __module__ = 'google.ads.googleads_v4.proto.services.keyword_plan_service_pb2' + , + __doc__ = """Response message for a keyword plan mutate. + + + Attributes: + partial_failure_error: + Errors that pertain to operation failures in the partial + failure mode. Returned only when partial\_failure = true and + all errors occur inside the operations. If any errors occur + outside the operations (e.g. auth errors), we return an RPC + level error. + results: + All results for the mutate. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.MutateKeywordPlansResponse) + )) +_sym_db.RegisterMessage(MutateKeywordPlansResponse) + +MutateKeywordPlansResult = _reflection.GeneratedProtocolMessageType('MutateKeywordPlansResult', (_message.Message,), dict( + DESCRIPTOR = _MUTATEKEYWORDPLANSRESULT, + __module__ = 'google.ads.googleads_v4.proto.services.keyword_plan_service_pb2' + , + __doc__ = """The result for the keyword plan mutate. + + + Attributes: + resource_name: + Returned for successful operations. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.MutateKeywordPlansResult) + )) +_sym_db.RegisterMessage(MutateKeywordPlansResult) + +GenerateForecastCurveRequest = _reflection.GeneratedProtocolMessageType('GenerateForecastCurveRequest', (_message.Message,), dict( + DESCRIPTOR = _GENERATEFORECASTCURVEREQUEST, + __module__ = 'google.ads.googleads_v4.proto.services.keyword_plan_service_pb2' + , + __doc__ = """Request message for + [KeywordPlanService.GenerateForecastCurve][google.ads.googleads.v4.services.KeywordPlanService.GenerateForecastCurve]. + + + Attributes: + keyword_plan: + Required. The resource name of the keyword plan to be + forecasted. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.GenerateForecastCurveRequest) + )) +_sym_db.RegisterMessage(GenerateForecastCurveRequest) + +GenerateForecastCurveResponse = _reflection.GeneratedProtocolMessageType('GenerateForecastCurveResponse', (_message.Message,), dict( + DESCRIPTOR = _GENERATEFORECASTCURVERESPONSE, + __module__ = 'google.ads.googleads_v4.proto.services.keyword_plan_service_pb2' + , + __doc__ = """Response message for + [KeywordPlanService.GenerateForecastCurve][google.ads.googleads.v4.services.KeywordPlanService.GenerateForecastCurve]. + + + Attributes: + campaign_forecast_curves: + List of forecast curves for the keyword plan campaign. One + maximum. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.GenerateForecastCurveResponse) + )) +_sym_db.RegisterMessage(GenerateForecastCurveResponse) + +GenerateForecastMetricsRequest = _reflection.GeneratedProtocolMessageType('GenerateForecastMetricsRequest', (_message.Message,), dict( + DESCRIPTOR = _GENERATEFORECASTMETRICSREQUEST, + __module__ = 'google.ads.googleads_v4.proto.services.keyword_plan_service_pb2' + , + __doc__ = """Request message for + [KeywordPlanService.GenerateForecastMetrics][google.ads.googleads.v4.services.KeywordPlanService.GenerateForecastMetrics]. + + + Attributes: + keyword_plan: + Required. The resource name of the keyword plan to be + forecasted. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.GenerateForecastMetricsRequest) + )) +_sym_db.RegisterMessage(GenerateForecastMetricsRequest) + +GenerateForecastMetricsResponse = _reflection.GeneratedProtocolMessageType('GenerateForecastMetricsResponse', (_message.Message,), dict( + DESCRIPTOR = _GENERATEFORECASTMETRICSRESPONSE, + __module__ = 'google.ads.googleads_v4.proto.services.keyword_plan_service_pb2' + , + __doc__ = """Response message for + [KeywordPlanService.GenerateForecastMetrics][google.ads.googleads.v4.services.KeywordPlanService.GenerateForecastMetrics]. + + + Attributes: + campaign_forecasts: + List of campaign forecasts. One maximum. + ad_group_forecasts: + List of ad group forecasts. + keyword_forecasts: + List of keyword forecasts. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.GenerateForecastMetricsResponse) + )) +_sym_db.RegisterMessage(GenerateForecastMetricsResponse) + +KeywordPlanCampaignForecast = _reflection.GeneratedProtocolMessageType('KeywordPlanCampaignForecast', (_message.Message,), dict( + DESCRIPTOR = _KEYWORDPLANCAMPAIGNFORECAST, + __module__ = 'google.ads.googleads_v4.proto.services.keyword_plan_service_pb2' + , + __doc__ = """A campaign forecast. + + + Attributes: + keyword_plan_campaign: + The resource name of the Keyword Plan campaign related to the + forecast. ``customers/{customer_id}/keywordPlanCampaigns/{key + word_plan_campaign_id}`` + campaign_forecast: + The forecast for the Keyword Plan campaign. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.KeywordPlanCampaignForecast) + )) +_sym_db.RegisterMessage(KeywordPlanCampaignForecast) + +KeywordPlanAdGroupForecast = _reflection.GeneratedProtocolMessageType('KeywordPlanAdGroupForecast', (_message.Message,), dict( + DESCRIPTOR = _KEYWORDPLANADGROUPFORECAST, + __module__ = 'google.ads.googleads_v4.proto.services.keyword_plan_service_pb2' + , + __doc__ = """An ad group forecast. + + + Attributes: + keyword_plan_ad_group: + The resource name of the Keyword Plan ad group related to the + forecast. ``customers/{customer_id}/keywordPlanAdGroups/{keyw + ord_plan_ad_group_id}`` + ad_group_forecast: + The forecast for the Keyword Plan ad group. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.KeywordPlanAdGroupForecast) + )) +_sym_db.RegisterMessage(KeywordPlanAdGroupForecast) + +KeywordPlanKeywordForecast = _reflection.GeneratedProtocolMessageType('KeywordPlanKeywordForecast', (_message.Message,), dict( + DESCRIPTOR = _KEYWORDPLANKEYWORDFORECAST, + __module__ = 'google.ads.googleads_v4.proto.services.keyword_plan_service_pb2' + , + __doc__ = """A keyword forecast. + + + Attributes: + keyword_plan_ad_group_keyword: + The resource name of the Keyword Plan keyword related to the + forecast. ``customers/{customer_id}/keywordPlanAdGroupKeyword + s/{keyword_plan_ad_group_keyword_id}`` + keyword_forecast: + The forecast for the Keyword Plan keyword. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.KeywordPlanKeywordForecast) + )) +_sym_db.RegisterMessage(KeywordPlanKeywordForecast) + +KeywordPlanCampaignForecastCurve = _reflection.GeneratedProtocolMessageType('KeywordPlanCampaignForecastCurve', (_message.Message,), dict( + DESCRIPTOR = _KEYWORDPLANCAMPAIGNFORECASTCURVE, + __module__ = 'google.ads.googleads_v4.proto.services.keyword_plan_service_pb2' + , + __doc__ = """The forecast curve for the campaign. + + + Attributes: + keyword_plan_campaign: + The resource name of the Keyword Plan campaign related to the + forecast. ``customers/{customer_id}/keywordPlanCampaigns/{key + word_plan_campaign_id}`` + max_cpc_bid_forecast_curve: + The max cpc bid forecast curve for the campaign. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.KeywordPlanCampaignForecastCurve) + )) +_sym_db.RegisterMessage(KeywordPlanCampaignForecastCurve) + +KeywordPlanMaxCpcBidForecastCurve = _reflection.GeneratedProtocolMessageType('KeywordPlanMaxCpcBidForecastCurve', (_message.Message,), dict( + DESCRIPTOR = _KEYWORDPLANMAXCPCBIDFORECASTCURVE, + __module__ = 'google.ads.googleads_v4.proto.services.keyword_plan_service_pb2' + , + __doc__ = """The max cpc bid forecast curve. + + + Attributes: + max_cpc_bid_forecasts: + The forecasts for the Keyword Plan campaign at different max + CPC bids. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.KeywordPlanMaxCpcBidForecastCurve) + )) +_sym_db.RegisterMessage(KeywordPlanMaxCpcBidForecastCurve) + +KeywordPlanMaxCpcBidForecast = _reflection.GeneratedProtocolMessageType('KeywordPlanMaxCpcBidForecast', (_message.Message,), dict( + DESCRIPTOR = _KEYWORDPLANMAXCPCBIDFORECAST, + __module__ = 'google.ads.googleads_v4.proto.services.keyword_plan_service_pb2' + , + __doc__ = """The forecast of the campaign at a specific bid. + + + Attributes: + max_cpc_bid_micros: + The max cpc bid in micros. + max_cpc_bid_forecast: + The forecast for the Keyword Plan campaign at the specific + bid. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.KeywordPlanMaxCpcBidForecast) + )) +_sym_db.RegisterMessage(KeywordPlanMaxCpcBidForecast) + +ForecastMetrics = _reflection.GeneratedProtocolMessageType('ForecastMetrics', (_message.Message,), dict( + DESCRIPTOR = _FORECASTMETRICS, + __module__ = 'google.ads.googleads_v4.proto.services.keyword_plan_service_pb2' + , + __doc__ = """Forecast metrics. + + + Attributes: + impressions: + Impressions + ctr: + Ctr + average_cpc: + AVG cpc + clicks: + Clicks + cost_micros: + Cost + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.ForecastMetrics) + )) +_sym_db.RegisterMessage(ForecastMetrics) + +GenerateHistoricalMetricsRequest = _reflection.GeneratedProtocolMessageType('GenerateHistoricalMetricsRequest', (_message.Message,), dict( + DESCRIPTOR = _GENERATEHISTORICALMETRICSREQUEST, + __module__ = 'google.ads.googleads_v4.proto.services.keyword_plan_service_pb2' + , + __doc__ = """Request message for + [KeywordPlanService.GenerateHistoricalMetrics][google.ads.googleads.v4.services.KeywordPlanService.GenerateHistoricalMetrics]. + + + Attributes: + keyword_plan: + Required. The resource name of the keyword plan of which + historical metrics are requested. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.GenerateHistoricalMetricsRequest) + )) +_sym_db.RegisterMessage(GenerateHistoricalMetricsRequest) + +GenerateHistoricalMetricsResponse = _reflection.GeneratedProtocolMessageType('GenerateHistoricalMetricsResponse', (_message.Message,), dict( + DESCRIPTOR = _GENERATEHISTORICALMETRICSRESPONSE, + __module__ = 'google.ads.googleads_v4.proto.services.keyword_plan_service_pb2' + , + __doc__ = """Response message for + [KeywordPlanService.GenerateHistoricalMetrics][google.ads.googleads.v4.services.KeywordPlanService.GenerateHistoricalMetrics]. + + + Attributes: + metrics: + List of keyword historical metrics. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.GenerateHistoricalMetricsResponse) + )) +_sym_db.RegisterMessage(GenerateHistoricalMetricsResponse) + +KeywordPlanKeywordHistoricalMetrics = _reflection.GeneratedProtocolMessageType('KeywordPlanKeywordHistoricalMetrics', (_message.Message,), dict( + DESCRIPTOR = _KEYWORDPLANKEYWORDHISTORICALMETRICS, + __module__ = 'google.ads.googleads_v4.proto.services.keyword_plan_service_pb2' + , + __doc__ = """A keyword historical metrics. + + + Attributes: + search_query: + The text of the query associated with one or more + ad\_group\_keywords in the plan. Note that we de-dupe your + keywords list, eliminating close variants before returning the + plan's keywords as text. For example, if your plan originally + contained the keywords 'car' and 'cars', the returned search + query will only contain 'car'. + keyword_metrics: + The historical metrics for the query associated with one or + more ad\_group\_keywords in the plan. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.KeywordPlanKeywordHistoricalMetrics) + )) +_sym_db.RegisterMessage(KeywordPlanKeywordHistoricalMetrics) + + +DESCRIPTOR._options = None +_GETKEYWORDPLANREQUEST.fields_by_name['resource_name']._options = None +_MUTATEKEYWORDPLANSREQUEST.fields_by_name['customer_id']._options = None +_MUTATEKEYWORDPLANSREQUEST.fields_by_name['operations']._options = None +_GENERATEFORECASTCURVEREQUEST.fields_by_name['keyword_plan']._options = None +_GENERATEFORECASTMETRICSREQUEST.fields_by_name['keyword_plan']._options = None +_GENERATEHISTORICALMETRICSREQUEST.fields_by_name['keyword_plan']._options = None + +_KEYWORDPLANSERVICE = _descriptor.ServiceDescriptor( + name='KeywordPlanService', + full_name='google.ads.googleads.v4.services.KeywordPlanService', + file=DESCRIPTOR, + index=0, + serialized_options=_b('\312A\030googleads.googleapis.com'), + serialized_start=3374, + serialized_end=4626, + methods=[ + _descriptor.MethodDescriptor( + name='GetKeywordPlan', + full_name='google.ads.googleads.v4.services.KeywordPlanService.GetKeywordPlan', + index=0, + containing_service=None, + input_type=_GETKEYWORDPLANREQUEST, + output_type=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_keyword__plan__pb2._KEYWORDPLAN, + serialized_options=_b('\202\323\344\223\0020\022./v4/{resource_name=customers/*/keywordPlans/*}\332A\rresource_name'), + ), + _descriptor.MethodDescriptor( + name='MutateKeywordPlans', + full_name='google.ads.googleads.v4.services.KeywordPlanService.MutateKeywordPlans', + index=1, + containing_service=None, + input_type=_MUTATEKEYWORDPLANSREQUEST, + output_type=_MUTATEKEYWORDPLANSRESPONSE, + serialized_options=_b('\202\323\344\223\0026\"1/v4/customers/{customer_id=*}/keywordPlans:mutate:\001*\332A\026customer_id,operations'), + ), + _descriptor.MethodDescriptor( + name='GenerateForecastCurve', + full_name='google.ads.googleads.v4.services.KeywordPlanService.GenerateForecastCurve', + index=2, + containing_service=None, + input_type=_GENERATEFORECASTCURVEREQUEST, + output_type=_GENERATEFORECASTCURVERESPONSE, + serialized_options=_b('\202\323\344\223\002H\"C/v4/{keyword_plan=customers/*/keywordPlans/*}:generateForecastCurve:\001*\332A\014keyword_plan'), + ), + _descriptor.MethodDescriptor( + name='GenerateForecastMetrics', + full_name='google.ads.googleads.v4.services.KeywordPlanService.GenerateForecastMetrics', + index=3, + containing_service=None, + input_type=_GENERATEFORECASTMETRICSREQUEST, + output_type=_GENERATEFORECASTMETRICSRESPONSE, + serialized_options=_b('\202\323\344\223\002J\"E/v4/{keyword_plan=customers/*/keywordPlans/*}:generateForecastMetrics:\001*\332A\014keyword_plan'), + ), + _descriptor.MethodDescriptor( + name='GenerateHistoricalMetrics', + full_name='google.ads.googleads.v4.services.KeywordPlanService.GenerateHistoricalMetrics', + index=4, + containing_service=None, + input_type=_GENERATEHISTORICALMETRICSREQUEST, + output_type=_GENERATEHISTORICALMETRICSRESPONSE, + serialized_options=_b('\202\323\344\223\002L\"G/v4/{keyword_plan=customers/*/keywordPlans/*}:generateHistoricalMetrics:\001*\332A\014keyword_plan'), + ), +]) +_sym_db.RegisterServiceDescriptor(_KEYWORDPLANSERVICE) + +DESCRIPTOR.services_by_name['KeywordPlanService'] = _KEYWORDPLANSERVICE + +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v4/proto/services/keyword_plan_service_pb2_grpc.py b/google/ads/google_ads/v4/proto/services/keyword_plan_service_pb2_grpc.py new file mode 100644 index 000000000..8349110c9 --- /dev/null +++ b/google/ads/google_ads/v4/proto/services/keyword_plan_service_pb2_grpc.py @@ -0,0 +1,126 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +import grpc + +from google.ads.google_ads.v4.proto.resources import keyword_plan_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_keyword__plan__pb2 +from google.ads.google_ads.v4.proto.services import keyword_plan_service_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_keyword__plan__service__pb2 + + +class KeywordPlanServiceStub(object): + """Proto file describing the keyword plan service. + + Service to manage keyword plans. + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.GetKeywordPlan = channel.unary_unary( + '/google.ads.googleads.v4.services.KeywordPlanService/GetKeywordPlan', + request_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_keyword__plan__service__pb2.GetKeywordPlanRequest.SerializeToString, + response_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_keyword__plan__pb2.KeywordPlan.FromString, + ) + self.MutateKeywordPlans = channel.unary_unary( + '/google.ads.googleads.v4.services.KeywordPlanService/MutateKeywordPlans', + request_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_keyword__plan__service__pb2.MutateKeywordPlansRequest.SerializeToString, + response_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_keyword__plan__service__pb2.MutateKeywordPlansResponse.FromString, + ) + self.GenerateForecastCurve = channel.unary_unary( + '/google.ads.googleads.v4.services.KeywordPlanService/GenerateForecastCurve', + request_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_keyword__plan__service__pb2.GenerateForecastCurveRequest.SerializeToString, + response_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_keyword__plan__service__pb2.GenerateForecastCurveResponse.FromString, + ) + self.GenerateForecastMetrics = channel.unary_unary( + '/google.ads.googleads.v4.services.KeywordPlanService/GenerateForecastMetrics', + request_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_keyword__plan__service__pb2.GenerateForecastMetricsRequest.SerializeToString, + response_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_keyword__plan__service__pb2.GenerateForecastMetricsResponse.FromString, + ) + self.GenerateHistoricalMetrics = channel.unary_unary( + '/google.ads.googleads.v4.services.KeywordPlanService/GenerateHistoricalMetrics', + request_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_keyword__plan__service__pb2.GenerateHistoricalMetricsRequest.SerializeToString, + response_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_keyword__plan__service__pb2.GenerateHistoricalMetricsResponse.FromString, + ) + + +class KeywordPlanServiceServicer(object): + """Proto file describing the keyword plan service. + + Service to manage keyword plans. + """ + + def GetKeywordPlan(self, request, context): + """Returns the requested plan in full detail. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def MutateKeywordPlans(self, request, context): + """Creates, updates, or removes keyword plans. Operation statuses are + returned. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GenerateForecastCurve(self, request, context): + """Returns the requested Keyword Plan forecast curve. + Only the bidding strategy is considered for generating forecast curve. + The bidding strategy value (eg: max_cpc_bid_micros in maximize cpc bidding + strategy) specified in the plan is ignored. + + To generate a forecast at a value specified in the plan, use + KeywordPlanService.GenerateForecastMetrics. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GenerateForecastMetrics(self, request, context): + """Returns the requested Keyword Plan forecasts. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GenerateHistoricalMetrics(self, request, context): + """Returns the requested Keyword Plan historical metrics. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_KeywordPlanServiceServicer_to_server(servicer, server): + rpc_method_handlers = { + 'GetKeywordPlan': grpc.unary_unary_rpc_method_handler( + servicer.GetKeywordPlan, + request_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_keyword__plan__service__pb2.GetKeywordPlanRequest.FromString, + response_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_keyword__plan__pb2.KeywordPlan.SerializeToString, + ), + 'MutateKeywordPlans': grpc.unary_unary_rpc_method_handler( + servicer.MutateKeywordPlans, + request_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_keyword__plan__service__pb2.MutateKeywordPlansRequest.FromString, + response_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_keyword__plan__service__pb2.MutateKeywordPlansResponse.SerializeToString, + ), + 'GenerateForecastCurve': grpc.unary_unary_rpc_method_handler( + servicer.GenerateForecastCurve, + request_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_keyword__plan__service__pb2.GenerateForecastCurveRequest.FromString, + response_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_keyword__plan__service__pb2.GenerateForecastCurveResponse.SerializeToString, + ), + 'GenerateForecastMetrics': grpc.unary_unary_rpc_method_handler( + servicer.GenerateForecastMetrics, + request_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_keyword__plan__service__pb2.GenerateForecastMetricsRequest.FromString, + response_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_keyword__plan__service__pb2.GenerateForecastMetricsResponse.SerializeToString, + ), + 'GenerateHistoricalMetrics': grpc.unary_unary_rpc_method_handler( + servicer.GenerateHistoricalMetrics, + request_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_keyword__plan__service__pb2.GenerateHistoricalMetricsRequest.FromString, + response_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_keyword__plan__service__pb2.GenerateHistoricalMetricsResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'google.ads.googleads.v4.services.KeywordPlanService', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) diff --git a/google/ads/google_ads/v4/proto/services/keyword_view_service_pb2.py b/google/ads/google_ads/v4/proto/services/keyword_view_service_pb2.py new file mode 100644 index 000000000..2a3a343a8 --- /dev/null +++ b/google/ads/google_ads/v4/proto/services/keyword_view_service_pb2.py @@ -0,0 +1,111 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/services/keyword_view_service.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.ads.google_ads.v4.proto.resources import keyword_view_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_keyword__view__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 +from google.api import client_pb2 as google_dot_api_dot_client__pb2 +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/services/keyword_view_service.proto', + package='google.ads.googleads.v4.services', + syntax='proto3', + serialized_options=_b('\n$com.google.ads.googleads.v4.servicesB\027KeywordViewServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V4.Services\312\002 Google\\Ads\\GoogleAds\\V4\\Services\352\002$Google::Ads::GoogleAds::V4::Services'), + serialized_pb=_b('\nAgoogle/ads/googleads_v4/proto/services/keyword_view_service.proto\x12 google.ads.googleads.v4.services\x1a:google/ads/googleads_v4/proto/resources/keyword_view.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\\\n\x15GetKeywordViewRequest\x12\x43\n\rresource_name\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$googleads.googleapis.com/KeywordView2\xf5\x01\n\x12KeywordViewService\x12\xc1\x01\n\x0eGetKeywordView\x12\x37.google.ads.googleads.v4.services.GetKeywordViewRequest\x1a..google.ads.googleads.v4.resources.KeywordView\"F\x82\xd3\xe4\x93\x02\x30\x12./v4/{resource_name=customers/*/keywordViews/*}\xda\x41\rresource_name\x1a\x1b\xca\x41\x18googleads.googleapis.comB\xfe\x01\n$com.google.ads.googleads.v4.servicesB\x17KeywordViewServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V4.Services\xca\x02 Google\\Ads\\GoogleAds\\V4\\Services\xea\x02$Google::Ads::GoogleAds::V4::Servicesb\x06proto3') + , + dependencies=[google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_keyword__view__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_api_dot_client__pb2.DESCRIPTOR,google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_api_dot_resource__pb2.DESCRIPTOR,]) + + + + +_GETKEYWORDVIEWREQUEST = _descriptor.Descriptor( + name='GetKeywordViewRequest', + full_name='google.ads.googleads.v4.services.GetKeywordViewRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.services.GetKeywordViewRequest.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002\372A&\n$googleads.googleapis.com/KeywordView'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=278, + serialized_end=370, +) + +DESCRIPTOR.message_types_by_name['GetKeywordViewRequest'] = _GETKEYWORDVIEWREQUEST +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +GetKeywordViewRequest = _reflection.GeneratedProtocolMessageType('GetKeywordViewRequest', (_message.Message,), dict( + DESCRIPTOR = _GETKEYWORDVIEWREQUEST, + __module__ = 'google.ads.googleads_v4.proto.services.keyword_view_service_pb2' + , + __doc__ = """Request message for + [KeywordViewService.GetKeywordView][google.ads.googleads.v4.services.KeywordViewService.GetKeywordView]. + + + Attributes: + resource_name: + Required. The resource name of the keyword view to fetch. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.GetKeywordViewRequest) + )) +_sym_db.RegisterMessage(GetKeywordViewRequest) + + +DESCRIPTOR._options = None +_GETKEYWORDVIEWREQUEST.fields_by_name['resource_name']._options = None + +_KEYWORDVIEWSERVICE = _descriptor.ServiceDescriptor( + name='KeywordViewService', + full_name='google.ads.googleads.v4.services.KeywordViewService', + file=DESCRIPTOR, + index=0, + serialized_options=_b('\312A\030googleads.googleapis.com'), + serialized_start=373, + serialized_end=618, + methods=[ + _descriptor.MethodDescriptor( + name='GetKeywordView', + full_name='google.ads.googleads.v4.services.KeywordViewService.GetKeywordView', + index=0, + containing_service=None, + input_type=_GETKEYWORDVIEWREQUEST, + output_type=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_keyword__view__pb2._KEYWORDVIEW, + serialized_options=_b('\202\323\344\223\0020\022./v4/{resource_name=customers/*/keywordViews/*}\332A\rresource_name'), + ), +]) +_sym_db.RegisterServiceDescriptor(_KEYWORDVIEWSERVICE) + +DESCRIPTOR.services_by_name['KeywordViewService'] = _KEYWORDVIEWSERVICE + +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v4/proto/services/keyword_view_service_pb2_grpc.py b/google/ads/google_ads/v4/proto/services/keyword_view_service_pb2_grpc.py new file mode 100644 index 000000000..76bebd2c5 --- /dev/null +++ b/google/ads/google_ads/v4/proto/services/keyword_view_service_pb2_grpc.py @@ -0,0 +1,51 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +import grpc + +from google.ads.google_ads.v4.proto.resources import keyword_view_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_keyword__view__pb2 +from google.ads.google_ads.v4.proto.services import keyword_view_service_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_keyword__view__service__pb2 + + +class KeywordViewServiceStub(object): + """Proto file describing the Keyword View service. + + Service to manage keyword views. + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.GetKeywordView = channel.unary_unary( + '/google.ads.googleads.v4.services.KeywordViewService/GetKeywordView', + request_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_keyword__view__service__pb2.GetKeywordViewRequest.SerializeToString, + response_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_keyword__view__pb2.KeywordView.FromString, + ) + + +class KeywordViewServiceServicer(object): + """Proto file describing the Keyword View service. + + Service to manage keyword views. + """ + + def GetKeywordView(self, request, context): + """Returns the requested keyword view in full detail. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_KeywordViewServiceServicer_to_server(servicer, server): + rpc_method_handlers = { + 'GetKeywordView': grpc.unary_unary_rpc_method_handler( + servicer.GetKeywordView, + request_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_keyword__view__service__pb2.GetKeywordViewRequest.FromString, + response_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_keyword__view__pb2.KeywordView.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'google.ads.googleads.v4.services.KeywordViewService', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) diff --git a/google/ads/google_ads/v4/proto/services/label_service_pb2.py b/google/ads/google_ads/v4/proto/services/label_service_pb2.py new file mode 100644 index 000000000..1d9085c6d --- /dev/null +++ b/google/ads/google_ads/v4/proto/services/label_service_pb2.py @@ -0,0 +1,408 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/services/label_service.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.ads.google_ads.v4.proto.resources import label_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_label__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 +from google.api import client_pb2 as google_dot_api_dot_client__pb2 +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 +from google.protobuf import field_mask_pb2 as google_dot_protobuf_dot_field__mask__pb2 +from google.rpc import status_pb2 as google_dot_rpc_dot_status__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/services/label_service.proto', + package='google.ads.googleads.v4.services', + syntax='proto3', + serialized_options=_b('\n$com.google.ads.googleads.v4.servicesB\021LabelServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V4.Services\312\002 Google\\Ads\\GoogleAds\\V4\\Services\352\002$Google::Ads::GoogleAds::V4::Services'), + serialized_pb=_b('\n:google/ads/googleads_v4/proto/services/label_service.proto\x12 google.ads.googleads.v4.services\x1a\x33google/ads/googleads_v4/proto/resources/label.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/protobuf/field_mask.proto\x1a\x17google/rpc/status.proto\"P\n\x0fGetLabelRequest\x12=\n\rresource_name\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \n\x1egoogleads.googleapis.com/Label\"\xaa\x01\n\x13MutateLabelsRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12I\n\noperations\x18\x02 \x03(\x0b\x32\x30.google.ads.googleads.v4.services.LabelOperationB\x03\xe0\x41\x02\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\"\xd8\x01\n\x0eLabelOperation\x12/\n\x0bupdate_mask\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12:\n\x06\x63reate\x18\x01 \x01(\x0b\x32(.google.ads.googleads.v4.resources.LabelH\x00\x12:\n\x06update\x18\x02 \x01(\x0b\x32(.google.ads.googleads.v4.resources.LabelH\x00\x12\x10\n\x06remove\x18\x03 \x01(\tH\x00\x42\x0b\n\toperation\"\x8f\x01\n\x14MutateLabelsResponse\x12\x31\n\x15partial_failure_error\x18\x03 \x01(\x0b\x32\x12.google.rpc.Status\x12\x44\n\x07results\x18\x02 \x03(\x0b\x32\x33.google.ads.googleads.v4.services.MutateLabelResult\"*\n\x11MutateLabelResult\x12\x15\n\rresource_name\x18\x01 \x01(\t2\xa8\x03\n\x0cLabelService\x12\xa9\x01\n\x08GetLabel\x12\x31.google.ads.googleads.v4.services.GetLabelRequest\x1a(.google.ads.googleads.v4.resources.Label\"@\x82\xd3\xe4\x93\x02*\x12(/v4/{resource_name=customers/*/labels/*}\xda\x41\rresource_name\x12\xce\x01\n\x0cMutateLabels\x12\x35.google.ads.googleads.v4.services.MutateLabelsRequest\x1a\x36.google.ads.googleads.v4.services.MutateLabelsResponse\"O\x82\xd3\xe4\x93\x02\x30\"+/v4/customers/{customer_id=*}/labels:mutate:\x01*\xda\x41\x16\x63ustomer_id,operations\x1a\x1b\xca\x41\x18googleads.googleapis.comB\xf8\x01\n$com.google.ads.googleads.v4.servicesB\x11LabelServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V4.Services\xca\x02 Google\\Ads\\GoogleAds\\V4\\Services\xea\x02$Google::Ads::GoogleAds::V4::Servicesb\x06proto3') + , + dependencies=[google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_label__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_api_dot_client__pb2.DESCRIPTOR,google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_api_dot_resource__pb2.DESCRIPTOR,google_dot_protobuf_dot_field__mask__pb2.DESCRIPTOR,google_dot_rpc_dot_status__pb2.DESCRIPTOR,]) + + + + +_GETLABELREQUEST = _descriptor.Descriptor( + name='GetLabelRequest', + full_name='google.ads.googleads.v4.services.GetLabelRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.services.GetLabelRequest.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002\372A \n\036googleads.googleapis.com/Label'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=323, + serialized_end=403, +) + + +_MUTATELABELSREQUEST = _descriptor.Descriptor( + name='MutateLabelsRequest', + full_name='google.ads.googleads.v4.services.MutateLabelsRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='customer_id', full_name='google.ads.googleads.v4.services.MutateLabelsRequest.customer_id', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='operations', full_name='google.ads.googleads.v4.services.MutateLabelsRequest.operations', index=1, + number=2, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='partial_failure', full_name='google.ads.googleads.v4.services.MutateLabelsRequest.partial_failure', index=2, + number=3, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='validate_only', full_name='google.ads.googleads.v4.services.MutateLabelsRequest.validate_only', index=3, + number=4, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=406, + serialized_end=576, +) + + +_LABELOPERATION = _descriptor.Descriptor( + name='LabelOperation', + full_name='google.ads.googleads.v4.services.LabelOperation', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='update_mask', full_name='google.ads.googleads.v4.services.LabelOperation.update_mask', index=0, + number=4, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='create', full_name='google.ads.googleads.v4.services.LabelOperation.create', index=1, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='update', full_name='google.ads.googleads.v4.services.LabelOperation.update', index=2, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='remove', full_name='google.ads.googleads.v4.services.LabelOperation.remove', index=3, + number=3, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name='operation', full_name='google.ads.googleads.v4.services.LabelOperation.operation', + index=0, containing_type=None, fields=[]), + ], + serialized_start=579, + serialized_end=795, +) + + +_MUTATELABELSRESPONSE = _descriptor.Descriptor( + name='MutateLabelsResponse', + full_name='google.ads.googleads.v4.services.MutateLabelsResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='partial_failure_error', full_name='google.ads.googleads.v4.services.MutateLabelsResponse.partial_failure_error', index=0, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='results', full_name='google.ads.googleads.v4.services.MutateLabelsResponse.results', index=1, + number=2, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=798, + serialized_end=941, +) + + +_MUTATELABELRESULT = _descriptor.Descriptor( + name='MutateLabelResult', + full_name='google.ads.googleads.v4.services.MutateLabelResult', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.services.MutateLabelResult.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=943, + serialized_end=985, +) + +_MUTATELABELSREQUEST.fields_by_name['operations'].message_type = _LABELOPERATION +_LABELOPERATION.fields_by_name['update_mask'].message_type = google_dot_protobuf_dot_field__mask__pb2._FIELDMASK +_LABELOPERATION.fields_by_name['create'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_label__pb2._LABEL +_LABELOPERATION.fields_by_name['update'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_label__pb2._LABEL +_LABELOPERATION.oneofs_by_name['operation'].fields.append( + _LABELOPERATION.fields_by_name['create']) +_LABELOPERATION.fields_by_name['create'].containing_oneof = _LABELOPERATION.oneofs_by_name['operation'] +_LABELOPERATION.oneofs_by_name['operation'].fields.append( + _LABELOPERATION.fields_by_name['update']) +_LABELOPERATION.fields_by_name['update'].containing_oneof = _LABELOPERATION.oneofs_by_name['operation'] +_LABELOPERATION.oneofs_by_name['operation'].fields.append( + _LABELOPERATION.fields_by_name['remove']) +_LABELOPERATION.fields_by_name['remove'].containing_oneof = _LABELOPERATION.oneofs_by_name['operation'] +_MUTATELABELSRESPONSE.fields_by_name['partial_failure_error'].message_type = google_dot_rpc_dot_status__pb2._STATUS +_MUTATELABELSRESPONSE.fields_by_name['results'].message_type = _MUTATELABELRESULT +DESCRIPTOR.message_types_by_name['GetLabelRequest'] = _GETLABELREQUEST +DESCRIPTOR.message_types_by_name['MutateLabelsRequest'] = _MUTATELABELSREQUEST +DESCRIPTOR.message_types_by_name['LabelOperation'] = _LABELOPERATION +DESCRIPTOR.message_types_by_name['MutateLabelsResponse'] = _MUTATELABELSRESPONSE +DESCRIPTOR.message_types_by_name['MutateLabelResult'] = _MUTATELABELRESULT +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +GetLabelRequest = _reflection.GeneratedProtocolMessageType('GetLabelRequest', (_message.Message,), dict( + DESCRIPTOR = _GETLABELREQUEST, + __module__ = 'google.ads.googleads_v4.proto.services.label_service_pb2' + , + __doc__ = """Request message for + [LabelService.GetLabel][google.ads.googleads.v4.services.LabelService.GetLabel]. + + + Attributes: + resource_name: + Required. The resource name of the label to fetch. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.GetLabelRequest) + )) +_sym_db.RegisterMessage(GetLabelRequest) + +MutateLabelsRequest = _reflection.GeneratedProtocolMessageType('MutateLabelsRequest', (_message.Message,), dict( + DESCRIPTOR = _MUTATELABELSREQUEST, + __module__ = 'google.ads.googleads_v4.proto.services.label_service_pb2' + , + __doc__ = """Request message for + [LabelService.MutateLabels][google.ads.googleads.v4.services.LabelService.MutateLabels]. + + + Attributes: + customer_id: + Required. ID of the customer whose labels are being modified. + operations: + Required. The list of operations to perform on labels. + partial_failure: + If true, successful operations will be carried out and invalid + operations will return errors. If false, all operations will + be carried out in one transaction if and only if they are all + valid. Default is false. + validate_only: + If true, the request is validated but not executed. Only + errors are returned, not results. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.MutateLabelsRequest) + )) +_sym_db.RegisterMessage(MutateLabelsRequest) + +LabelOperation = _reflection.GeneratedProtocolMessageType('LabelOperation', (_message.Message,), dict( + DESCRIPTOR = _LABELOPERATION, + __module__ = 'google.ads.googleads_v4.proto.services.label_service_pb2' + , + __doc__ = """A single operation (create, remove, update) on a label. + + + Attributes: + update_mask: + FieldMask that determines which resource fields are modified + in an update. + operation: + The mutate operation. + create: + Create operation: No resource name is expected for the new + label. + update: + Update operation: The label is expected to have a valid + resource name. + remove: + Remove operation: A resource name for the label being removed, + in this format: ``customers/{customer_id}/labels/{label_id}`` + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.LabelOperation) + )) +_sym_db.RegisterMessage(LabelOperation) + +MutateLabelsResponse = _reflection.GeneratedProtocolMessageType('MutateLabelsResponse', (_message.Message,), dict( + DESCRIPTOR = _MUTATELABELSRESPONSE, + __module__ = 'google.ads.googleads_v4.proto.services.label_service_pb2' + , + __doc__ = """Response message for a labels mutate. + + + Attributes: + partial_failure_error: + Errors that pertain to operation failures in the partial + failure mode. Returned only when partial\_failure = true and + all errors occur inside the operations. If any errors occur + outside the operations (e.g. auth errors), we return an RPC + level error. + results: + All results for the mutate. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.MutateLabelsResponse) + )) +_sym_db.RegisterMessage(MutateLabelsResponse) + +MutateLabelResult = _reflection.GeneratedProtocolMessageType('MutateLabelResult', (_message.Message,), dict( + DESCRIPTOR = _MUTATELABELRESULT, + __module__ = 'google.ads.googleads_v4.proto.services.label_service_pb2' + , + __doc__ = """The result for a label mutate. + + + Attributes: + resource_name: + Returned for successful operations. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.MutateLabelResult) + )) +_sym_db.RegisterMessage(MutateLabelResult) + + +DESCRIPTOR._options = None +_GETLABELREQUEST.fields_by_name['resource_name']._options = None +_MUTATELABELSREQUEST.fields_by_name['customer_id']._options = None +_MUTATELABELSREQUEST.fields_by_name['operations']._options = None + +_LABELSERVICE = _descriptor.ServiceDescriptor( + name='LabelService', + full_name='google.ads.googleads.v4.services.LabelService', + file=DESCRIPTOR, + index=0, + serialized_options=_b('\312A\030googleads.googleapis.com'), + serialized_start=988, + serialized_end=1412, + methods=[ + _descriptor.MethodDescriptor( + name='GetLabel', + full_name='google.ads.googleads.v4.services.LabelService.GetLabel', + index=0, + containing_service=None, + input_type=_GETLABELREQUEST, + output_type=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_label__pb2._LABEL, + serialized_options=_b('\202\323\344\223\002*\022(/v4/{resource_name=customers/*/labels/*}\332A\rresource_name'), + ), + _descriptor.MethodDescriptor( + name='MutateLabels', + full_name='google.ads.googleads.v4.services.LabelService.MutateLabels', + index=1, + containing_service=None, + input_type=_MUTATELABELSREQUEST, + output_type=_MUTATELABELSRESPONSE, + serialized_options=_b('\202\323\344\223\0020\"+/v4/customers/{customer_id=*}/labels:mutate:\001*\332A\026customer_id,operations'), + ), +]) +_sym_db.RegisterServiceDescriptor(_LABELSERVICE) + +DESCRIPTOR.services_by_name['LabelService'] = _LABELSERVICE + +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v4/proto/services/label_service_pb2_grpc.py b/google/ads/google_ads/v4/proto/services/label_service_pb2_grpc.py new file mode 100644 index 000000000..81a80f2d0 --- /dev/null +++ b/google/ads/google_ads/v4/proto/services/label_service_pb2_grpc.py @@ -0,0 +1,64 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +import grpc + +from google.ads.google_ads.v4.proto.resources import label_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_label__pb2 +from google.ads.google_ads.v4.proto.services import label_service_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_label__service__pb2 + + +class LabelServiceStub(object): + """Service to manage labels. + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.GetLabel = channel.unary_unary( + '/google.ads.googleads.v4.services.LabelService/GetLabel', + request_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_label__service__pb2.GetLabelRequest.SerializeToString, + response_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_label__pb2.Label.FromString, + ) + self.MutateLabels = channel.unary_unary( + '/google.ads.googleads.v4.services.LabelService/MutateLabels', + request_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_label__service__pb2.MutateLabelsRequest.SerializeToString, + response_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_label__service__pb2.MutateLabelsResponse.FromString, + ) + + +class LabelServiceServicer(object): + """Service to manage labels. + """ + + def GetLabel(self, request, context): + """Returns the requested label in full detail. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def MutateLabels(self, request, context): + """Creates, updates, or removes labels. Operation statuses are returned. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_LabelServiceServicer_to_server(servicer, server): + rpc_method_handlers = { + 'GetLabel': grpc.unary_unary_rpc_method_handler( + servicer.GetLabel, + request_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_label__service__pb2.GetLabelRequest.FromString, + response_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_label__pb2.Label.SerializeToString, + ), + 'MutateLabels': grpc.unary_unary_rpc_method_handler( + servicer.MutateLabels, + request_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_label__service__pb2.MutateLabelsRequest.FromString, + response_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_label__service__pb2.MutateLabelsResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'google.ads.googleads.v4.services.LabelService', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) diff --git a/google/ads/google_ads/v4/proto/services/landing_page_view_service_pb2.py b/google/ads/google_ads/v4/proto/services/landing_page_view_service_pb2.py new file mode 100644 index 000000000..93850fed1 --- /dev/null +++ b/google/ads/google_ads/v4/proto/services/landing_page_view_service_pb2.py @@ -0,0 +1,111 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/services/landing_page_view_service.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.ads.google_ads.v4.proto.resources import landing_page_view_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_landing__page__view__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 +from google.api import client_pb2 as google_dot_api_dot_client__pb2 +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/services/landing_page_view_service.proto', + package='google.ads.googleads.v4.services', + syntax='proto3', + serialized_options=_b('\n$com.google.ads.googleads.v4.servicesB\033LandingPageViewServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V4.Services\312\002 Google\\Ads\\GoogleAds\\V4\\Services\352\002$Google::Ads::GoogleAds::V4::Services'), + serialized_pb=_b('\nFgoogle/ads/googleads_v4/proto/services/landing_page_view_service.proto\x12 google.ads.googleads.v4.services\x1a?google/ads/googleads_v4/proto/resources/landing_page_view.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"d\n\x19GetLandingPageViewRequest\x12G\n\rresource_name\x18\x01 \x01(\tB0\xe0\x41\x02\xfa\x41*\n(googleads.googleapis.com/LandingPageView2\x89\x02\n\x16LandingPageViewService\x12\xd1\x01\n\x12GetLandingPageView\x12;.google.ads.googleads.v4.services.GetLandingPageViewRequest\x1a\x32.google.ads.googleads.v4.resources.LandingPageView\"J\x82\xd3\xe4\x93\x02\x34\x12\x32/v4/{resource_name=customers/*/landingPageViews/*}\xda\x41\rresource_name\x1a\x1b\xca\x41\x18googleads.googleapis.comB\x82\x02\n$com.google.ads.googleads.v4.servicesB\x1bLandingPageViewServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V4.Services\xca\x02 Google\\Ads\\GoogleAds\\V4\\Services\xea\x02$Google::Ads::GoogleAds::V4::Servicesb\x06proto3') + , + dependencies=[google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_landing__page__view__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_api_dot_client__pb2.DESCRIPTOR,google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_api_dot_resource__pb2.DESCRIPTOR,]) + + + + +_GETLANDINGPAGEVIEWREQUEST = _descriptor.Descriptor( + name='GetLandingPageViewRequest', + full_name='google.ads.googleads.v4.services.GetLandingPageViewRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.services.GetLandingPageViewRequest.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002\372A*\n(googleads.googleapis.com/LandingPageView'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=288, + serialized_end=388, +) + +DESCRIPTOR.message_types_by_name['GetLandingPageViewRequest'] = _GETLANDINGPAGEVIEWREQUEST +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +GetLandingPageViewRequest = _reflection.GeneratedProtocolMessageType('GetLandingPageViewRequest', (_message.Message,), dict( + DESCRIPTOR = _GETLANDINGPAGEVIEWREQUEST, + __module__ = 'google.ads.googleads_v4.proto.services.landing_page_view_service_pb2' + , + __doc__ = """Request message for + [LandingPageViewService.GetLandingPageView][google.ads.googleads.v4.services.LandingPageViewService.GetLandingPageView]. + + + Attributes: + resource_name: + Required. The resource name of the landing page view to fetch. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.GetLandingPageViewRequest) + )) +_sym_db.RegisterMessage(GetLandingPageViewRequest) + + +DESCRIPTOR._options = None +_GETLANDINGPAGEVIEWREQUEST.fields_by_name['resource_name']._options = None + +_LANDINGPAGEVIEWSERVICE = _descriptor.ServiceDescriptor( + name='LandingPageViewService', + full_name='google.ads.googleads.v4.services.LandingPageViewService', + file=DESCRIPTOR, + index=0, + serialized_options=_b('\312A\030googleads.googleapis.com'), + serialized_start=391, + serialized_end=656, + methods=[ + _descriptor.MethodDescriptor( + name='GetLandingPageView', + full_name='google.ads.googleads.v4.services.LandingPageViewService.GetLandingPageView', + index=0, + containing_service=None, + input_type=_GETLANDINGPAGEVIEWREQUEST, + output_type=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_landing__page__view__pb2._LANDINGPAGEVIEW, + serialized_options=_b('\202\323\344\223\0024\0222/v4/{resource_name=customers/*/landingPageViews/*}\332A\rresource_name'), + ), +]) +_sym_db.RegisterServiceDescriptor(_LANDINGPAGEVIEWSERVICE) + +DESCRIPTOR.services_by_name['LandingPageViewService'] = _LANDINGPAGEVIEWSERVICE + +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v4/proto/services/landing_page_view_service_pb2_grpc.py b/google/ads/google_ads/v4/proto/services/landing_page_view_service_pb2_grpc.py new file mode 100644 index 000000000..d43bdc38e --- /dev/null +++ b/google/ads/google_ads/v4/proto/services/landing_page_view_service_pb2_grpc.py @@ -0,0 +1,51 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +import grpc + +from google.ads.google_ads.v4.proto.resources import landing_page_view_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_landing__page__view__pb2 +from google.ads.google_ads.v4.proto.services import landing_page_view_service_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_landing__page__view__service__pb2 + + +class LandingPageViewServiceStub(object): + """Proto file describing the landing page view service. + + Service to fetch landing page views. + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.GetLandingPageView = channel.unary_unary( + '/google.ads.googleads.v4.services.LandingPageViewService/GetLandingPageView', + request_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_landing__page__view__service__pb2.GetLandingPageViewRequest.SerializeToString, + response_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_landing__page__view__pb2.LandingPageView.FromString, + ) + + +class LandingPageViewServiceServicer(object): + """Proto file describing the landing page view service. + + Service to fetch landing page views. + """ + + def GetLandingPageView(self, request, context): + """Returns the requested landing page view in full detail. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_LandingPageViewServiceServicer_to_server(servicer, server): + rpc_method_handlers = { + 'GetLandingPageView': grpc.unary_unary_rpc_method_handler( + servicer.GetLandingPageView, + request_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_landing__page__view__service__pb2.GetLandingPageViewRequest.FromString, + response_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_landing__page__view__pb2.LandingPageView.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'google.ads.googleads.v4.services.LandingPageViewService', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) diff --git a/google/ads/google_ads/v4/proto/services/language_constant_service_pb2.py b/google/ads/google_ads/v4/proto/services/language_constant_service_pb2.py new file mode 100644 index 000000000..6384855e3 --- /dev/null +++ b/google/ads/google_ads/v4/proto/services/language_constant_service_pb2.py @@ -0,0 +1,111 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/services/language_constant_service.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.ads.google_ads.v4.proto.resources import language_constant_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_language__constant__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 +from google.api import client_pb2 as google_dot_api_dot_client__pb2 +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/services/language_constant_service.proto', + package='google.ads.googleads.v4.services', + syntax='proto3', + serialized_options=_b('\n$com.google.ads.googleads.v4.servicesB\034LanguageConstantServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V4.Services\312\002 Google\\Ads\\GoogleAds\\V4\\Services\352\002$Google::Ads::GoogleAds::V4::Services'), + serialized_pb=_b('\nFgoogle/ads/googleads_v4/proto/services/language_constant_service.proto\x12 google.ads.googleads.v4.services\x1a?google/ads/googleads_v4/proto/resources/language_constant.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"f\n\x1aGetLanguageConstantRequest\x12H\n\rresource_name\x18\x01 \x01(\tB1\xe0\x41\x02\xfa\x41+\n)googleads.googleapis.com/LanguageConstant2\x82\x02\n\x17LanguageConstantService\x12\xc9\x01\n\x13GetLanguageConstant\x12<.google.ads.googleads.v4.services.GetLanguageConstantRequest\x1a\x33.google.ads.googleads.v4.resources.LanguageConstant\"?\x82\xd3\xe4\x93\x02)\x12\'/v4/{resource_name=languageConstants/*}\xda\x41\rresource_name\x1a\x1b\xca\x41\x18googleads.googleapis.comB\x83\x02\n$com.google.ads.googleads.v4.servicesB\x1cLanguageConstantServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V4.Services\xca\x02 Google\\Ads\\GoogleAds\\V4\\Services\xea\x02$Google::Ads::GoogleAds::V4::Servicesb\x06proto3') + , + dependencies=[google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_language__constant__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_api_dot_client__pb2.DESCRIPTOR,google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_api_dot_resource__pb2.DESCRIPTOR,]) + + + + +_GETLANGUAGECONSTANTREQUEST = _descriptor.Descriptor( + name='GetLanguageConstantRequest', + full_name='google.ads.googleads.v4.services.GetLanguageConstantRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.services.GetLanguageConstantRequest.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002\372A+\n)googleads.googleapis.com/LanguageConstant'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=288, + serialized_end=390, +) + +DESCRIPTOR.message_types_by_name['GetLanguageConstantRequest'] = _GETLANGUAGECONSTANTREQUEST +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +GetLanguageConstantRequest = _reflection.GeneratedProtocolMessageType('GetLanguageConstantRequest', (_message.Message,), dict( + DESCRIPTOR = _GETLANGUAGECONSTANTREQUEST, + __module__ = 'google.ads.googleads_v4.proto.services.language_constant_service_pb2' + , + __doc__ = """Request message for + [LanguageConstantService.GetLanguageConstant][google.ads.googleads.v4.services.LanguageConstantService.GetLanguageConstant]. + + + Attributes: + resource_name: + Required. Resource name of the language constant to fetch. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.GetLanguageConstantRequest) + )) +_sym_db.RegisterMessage(GetLanguageConstantRequest) + + +DESCRIPTOR._options = None +_GETLANGUAGECONSTANTREQUEST.fields_by_name['resource_name']._options = None + +_LANGUAGECONSTANTSERVICE = _descriptor.ServiceDescriptor( + name='LanguageConstantService', + full_name='google.ads.googleads.v4.services.LanguageConstantService', + file=DESCRIPTOR, + index=0, + serialized_options=_b('\312A\030googleads.googleapis.com'), + serialized_start=393, + serialized_end=651, + methods=[ + _descriptor.MethodDescriptor( + name='GetLanguageConstant', + full_name='google.ads.googleads.v4.services.LanguageConstantService.GetLanguageConstant', + index=0, + containing_service=None, + input_type=_GETLANGUAGECONSTANTREQUEST, + output_type=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_language__constant__pb2._LANGUAGECONSTANT, + serialized_options=_b('\202\323\344\223\002)\022\'/v4/{resource_name=languageConstants/*}\332A\rresource_name'), + ), +]) +_sym_db.RegisterServiceDescriptor(_LANGUAGECONSTANTSERVICE) + +DESCRIPTOR.services_by_name['LanguageConstantService'] = _LANGUAGECONSTANTSERVICE + +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v4/proto/services/language_constant_service_pb2_grpc.py b/google/ads/google_ads/v4/proto/services/language_constant_service_pb2_grpc.py new file mode 100644 index 000000000..e7949c7be --- /dev/null +++ b/google/ads/google_ads/v4/proto/services/language_constant_service_pb2_grpc.py @@ -0,0 +1,51 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +import grpc + +from google.ads.google_ads.v4.proto.resources import language_constant_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_language__constant__pb2 +from google.ads.google_ads.v4.proto.services import language_constant_service_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_language__constant__service__pb2 + + +class LanguageConstantServiceStub(object): + """Proto file describing the language constant service. + + Service to fetch language constants. + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.GetLanguageConstant = channel.unary_unary( + '/google.ads.googleads.v4.services.LanguageConstantService/GetLanguageConstant', + request_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_language__constant__service__pb2.GetLanguageConstantRequest.SerializeToString, + response_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_language__constant__pb2.LanguageConstant.FromString, + ) + + +class LanguageConstantServiceServicer(object): + """Proto file describing the language constant service. + + Service to fetch language constants. + """ + + def GetLanguageConstant(self, request, context): + """Returns the requested language constant. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_LanguageConstantServiceServicer_to_server(servicer, server): + rpc_method_handlers = { + 'GetLanguageConstant': grpc.unary_unary_rpc_method_handler( + servicer.GetLanguageConstant, + request_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_language__constant__service__pb2.GetLanguageConstantRequest.FromString, + response_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_language__constant__pb2.LanguageConstant.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'google.ads.googleads.v4.services.LanguageConstantService', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) diff --git a/google/ads/google_ads/v4/proto/services/location_view_service_pb2.py b/google/ads/google_ads/v4/proto/services/location_view_service_pb2.py new file mode 100644 index 000000000..fa61123ca --- /dev/null +++ b/google/ads/google_ads/v4/proto/services/location_view_service_pb2.py @@ -0,0 +1,111 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/services/location_view_service.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.ads.google_ads.v4.proto.resources import location_view_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_location__view__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 +from google.api import client_pb2 as google_dot_api_dot_client__pb2 +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/services/location_view_service.proto', + package='google.ads.googleads.v4.services', + syntax='proto3', + serialized_options=_b('\n$com.google.ads.googleads.v4.servicesB\030LocationViewServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V4.Services\312\002 Google\\Ads\\GoogleAds\\V4\\Services\352\002$Google::Ads::GoogleAds::V4::Services'), + serialized_pb=_b('\nBgoogle/ads/googleads_v4/proto/services/location_view_service.proto\x12 google.ads.googleads.v4.services\x1a;google/ads/googleads_v4/proto/resources/location_view.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"^\n\x16GetLocationViewRequest\x12\x44\n\rresource_name\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%googleads.googleapis.com/LocationView2\xfa\x01\n\x13LocationViewService\x12\xc5\x01\n\x0fGetLocationView\x12\x38.google.ads.googleads.v4.services.GetLocationViewRequest\x1a/.google.ads.googleads.v4.resources.LocationView\"G\x82\xd3\xe4\x93\x02\x31\x12//v4/{resource_name=customers/*/locationViews/*}\xda\x41\rresource_name\x1a\x1b\xca\x41\x18googleads.googleapis.comB\xff\x01\n$com.google.ads.googleads.v4.servicesB\x18LocationViewServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V4.Services\xca\x02 Google\\Ads\\GoogleAds\\V4\\Services\xea\x02$Google::Ads::GoogleAds::V4::Servicesb\x06proto3') + , + dependencies=[google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_location__view__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_api_dot_client__pb2.DESCRIPTOR,google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_api_dot_resource__pb2.DESCRIPTOR,]) + + + + +_GETLOCATIONVIEWREQUEST = _descriptor.Descriptor( + name='GetLocationViewRequest', + full_name='google.ads.googleads.v4.services.GetLocationViewRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.services.GetLocationViewRequest.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002\372A\'\n%googleads.googleapis.com/LocationView'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=280, + serialized_end=374, +) + +DESCRIPTOR.message_types_by_name['GetLocationViewRequest'] = _GETLOCATIONVIEWREQUEST +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +GetLocationViewRequest = _reflection.GeneratedProtocolMessageType('GetLocationViewRequest', (_message.Message,), dict( + DESCRIPTOR = _GETLOCATIONVIEWREQUEST, + __module__ = 'google.ads.googleads_v4.proto.services.location_view_service_pb2' + , + __doc__ = """Request message for + [LocationViewService.GetLocationView][google.ads.googleads.v4.services.LocationViewService.GetLocationView]. + + + Attributes: + resource_name: + Required. The resource name of the location view to fetch. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.GetLocationViewRequest) + )) +_sym_db.RegisterMessage(GetLocationViewRequest) + + +DESCRIPTOR._options = None +_GETLOCATIONVIEWREQUEST.fields_by_name['resource_name']._options = None + +_LOCATIONVIEWSERVICE = _descriptor.ServiceDescriptor( + name='LocationViewService', + full_name='google.ads.googleads.v4.services.LocationViewService', + file=DESCRIPTOR, + index=0, + serialized_options=_b('\312A\030googleads.googleapis.com'), + serialized_start=377, + serialized_end=627, + methods=[ + _descriptor.MethodDescriptor( + name='GetLocationView', + full_name='google.ads.googleads.v4.services.LocationViewService.GetLocationView', + index=0, + containing_service=None, + input_type=_GETLOCATIONVIEWREQUEST, + output_type=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_location__view__pb2._LOCATIONVIEW, + serialized_options=_b('\202\323\344\223\0021\022//v4/{resource_name=customers/*/locationViews/*}\332A\rresource_name'), + ), +]) +_sym_db.RegisterServiceDescriptor(_LOCATIONVIEWSERVICE) + +DESCRIPTOR.services_by_name['LocationViewService'] = _LOCATIONVIEWSERVICE + +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v4/proto/services/location_view_service_pb2_grpc.py b/google/ads/google_ads/v4/proto/services/location_view_service_pb2_grpc.py new file mode 100644 index 000000000..b9b382f37 --- /dev/null +++ b/google/ads/google_ads/v4/proto/services/location_view_service_pb2_grpc.py @@ -0,0 +1,51 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +import grpc + +from google.ads.google_ads.v4.proto.resources import location_view_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_location__view__pb2 +from google.ads.google_ads.v4.proto.services import location_view_service_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_location__view__service__pb2 + + +class LocationViewServiceStub(object): + """Proto file describing the Location View service. + + Service to fetch location views. + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.GetLocationView = channel.unary_unary( + '/google.ads.googleads.v4.services.LocationViewService/GetLocationView', + request_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_location__view__service__pb2.GetLocationViewRequest.SerializeToString, + response_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_location__view__pb2.LocationView.FromString, + ) + + +class LocationViewServiceServicer(object): + """Proto file describing the Location View service. + + Service to fetch location views. + """ + + def GetLocationView(self, request, context): + """Returns the requested location view in full detail. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_LocationViewServiceServicer_to_server(servicer, server): + rpc_method_handlers = { + 'GetLocationView': grpc.unary_unary_rpc_method_handler( + servicer.GetLocationView, + request_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_location__view__service__pb2.GetLocationViewRequest.FromString, + response_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_location__view__pb2.LocationView.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'google.ads.googleads.v4.services.LocationViewService', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) diff --git a/google/ads/google_ads/v4/proto/services/managed_placement_view_service_pb2.py b/google/ads/google_ads/v4/proto/services/managed_placement_view_service_pb2.py new file mode 100644 index 000000000..12f8b1007 --- /dev/null +++ b/google/ads/google_ads/v4/proto/services/managed_placement_view_service_pb2.py @@ -0,0 +1,112 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/services/managed_placement_view_service.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.ads.google_ads.v4.proto.resources import managed_placement_view_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_managed__placement__view__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 +from google.api import client_pb2 as google_dot_api_dot_client__pb2 +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/services/managed_placement_view_service.proto', + package='google.ads.googleads.v4.services', + syntax='proto3', + serialized_options=_b('\n$com.google.ads.googleads.v4.servicesB ManagedPlacementViewServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V4.Services\312\002 Google\\Ads\\GoogleAds\\V4\\Services\352\002$Google::Ads::GoogleAds::V4::Services'), + serialized_pb=_b('\nKgoogle/ads/googleads_v4/proto/services/managed_placement_view_service.proto\x12 google.ads.googleads.v4.services\x1a\x44google/ads/googleads_v4/proto/resources/managed_placement_view.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"n\n\x1eGetManagedPlacementViewRequest\x12L\n\rresource_name\x18\x01 \x01(\tB5\xe0\x41\x02\xfa\x41/\n-googleads.googleapis.com/ManagedPlacementView2\xa2\x02\n\x1bManagedPlacementViewService\x12\xe5\x01\n\x17GetManagedPlacementView\x12@.google.ads.googleads.v4.services.GetManagedPlacementViewRequest\x1a\x37.google.ads.googleads.v4.resources.ManagedPlacementView\"O\x82\xd3\xe4\x93\x02\x39\x12\x37/v4/{resource_name=customers/*/managedPlacementViews/*}\xda\x41\rresource_name\x1a\x1b\xca\x41\x18googleads.googleapis.comB\x87\x02\n$com.google.ads.googleads.v4.servicesB ManagedPlacementViewServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V4.Services\xca\x02 Google\\Ads\\GoogleAds\\V4\\Services\xea\x02$Google::Ads::GoogleAds::V4::Servicesb\x06proto3') + , + dependencies=[google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_managed__placement__view__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_api_dot_client__pb2.DESCRIPTOR,google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_api_dot_resource__pb2.DESCRIPTOR,]) + + + + +_GETMANAGEDPLACEMENTVIEWREQUEST = _descriptor.Descriptor( + name='GetManagedPlacementViewRequest', + full_name='google.ads.googleads.v4.services.GetManagedPlacementViewRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.services.GetManagedPlacementViewRequest.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002\372A/\n-googleads.googleapis.com/ManagedPlacementView'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=298, + serialized_end=408, +) + +DESCRIPTOR.message_types_by_name['GetManagedPlacementViewRequest'] = _GETMANAGEDPLACEMENTVIEWREQUEST +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +GetManagedPlacementViewRequest = _reflection.GeneratedProtocolMessageType('GetManagedPlacementViewRequest', (_message.Message,), dict( + DESCRIPTOR = _GETMANAGEDPLACEMENTVIEWREQUEST, + __module__ = 'google.ads.googleads_v4.proto.services.managed_placement_view_service_pb2' + , + __doc__ = """Request message for + [ManagedPlacementViewService.GetManagedPlacementView][google.ads.googleads.v4.services.ManagedPlacementViewService.GetManagedPlacementView]. + + + Attributes: + resource_name: + Required. The resource name of the Managed Placement View to + fetch. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.GetManagedPlacementViewRequest) + )) +_sym_db.RegisterMessage(GetManagedPlacementViewRequest) + + +DESCRIPTOR._options = None +_GETMANAGEDPLACEMENTVIEWREQUEST.fields_by_name['resource_name']._options = None + +_MANAGEDPLACEMENTVIEWSERVICE = _descriptor.ServiceDescriptor( + name='ManagedPlacementViewService', + full_name='google.ads.googleads.v4.services.ManagedPlacementViewService', + file=DESCRIPTOR, + index=0, + serialized_options=_b('\312A\030googleads.googleapis.com'), + serialized_start=411, + serialized_end=701, + methods=[ + _descriptor.MethodDescriptor( + name='GetManagedPlacementView', + full_name='google.ads.googleads.v4.services.ManagedPlacementViewService.GetManagedPlacementView', + index=0, + containing_service=None, + input_type=_GETMANAGEDPLACEMENTVIEWREQUEST, + output_type=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_managed__placement__view__pb2._MANAGEDPLACEMENTVIEW, + serialized_options=_b('\202\323\344\223\0029\0227/v4/{resource_name=customers/*/managedPlacementViews/*}\332A\rresource_name'), + ), +]) +_sym_db.RegisterServiceDescriptor(_MANAGEDPLACEMENTVIEWSERVICE) + +DESCRIPTOR.services_by_name['ManagedPlacementViewService'] = _MANAGEDPLACEMENTVIEWSERVICE + +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v4/proto/services/managed_placement_view_service_pb2_grpc.py b/google/ads/google_ads/v4/proto/services/managed_placement_view_service_pb2_grpc.py new file mode 100644 index 000000000..279827f6a --- /dev/null +++ b/google/ads/google_ads/v4/proto/services/managed_placement_view_service_pb2_grpc.py @@ -0,0 +1,51 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +import grpc + +from google.ads.google_ads.v4.proto.resources import managed_placement_view_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_managed__placement__view__pb2 +from google.ads.google_ads.v4.proto.services import managed_placement_view_service_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_managed__placement__view__service__pb2 + + +class ManagedPlacementViewServiceStub(object): + """Proto file describing the Managed Placement View service. + + Service to manage Managed Placement views. + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.GetManagedPlacementView = channel.unary_unary( + '/google.ads.googleads.v4.services.ManagedPlacementViewService/GetManagedPlacementView', + request_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_managed__placement__view__service__pb2.GetManagedPlacementViewRequest.SerializeToString, + response_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_managed__placement__view__pb2.ManagedPlacementView.FromString, + ) + + +class ManagedPlacementViewServiceServicer(object): + """Proto file describing the Managed Placement View service. + + Service to manage Managed Placement views. + """ + + def GetManagedPlacementView(self, request, context): + """Returns the requested Managed Placement view in full detail. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_ManagedPlacementViewServiceServicer_to_server(servicer, server): + rpc_method_handlers = { + 'GetManagedPlacementView': grpc.unary_unary_rpc_method_handler( + servicer.GetManagedPlacementView, + request_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_managed__placement__view__service__pb2.GetManagedPlacementViewRequest.FromString, + response_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_managed__placement__view__pb2.ManagedPlacementView.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'google.ads.googleads.v4.services.ManagedPlacementViewService', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) diff --git a/google/ads/google_ads/v4/proto/services/media_file_service_pb2.py b/google/ads/google_ads/v4/proto/services/media_file_service_pb2.py new file mode 100644 index 000000000..f510ccc4e --- /dev/null +++ b/google/ads/google_ads/v4/proto/services/media_file_service_pb2.py @@ -0,0 +1,371 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/services/media_file_service.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.ads.google_ads.v4.proto.resources import media_file_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_media__file__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 +from google.api import client_pb2 as google_dot_api_dot_client__pb2 +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 +from google.rpc import status_pb2 as google_dot_rpc_dot_status__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/services/media_file_service.proto', + package='google.ads.googleads.v4.services', + syntax='proto3', + serialized_options=_b('\n$com.google.ads.googleads.v4.servicesB\025MediaFileServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V4.Services\312\002 Google\\Ads\\GoogleAds\\V4\\Services\352\002$Google::Ads::GoogleAds::V4::Services'), + serialized_pb=_b('\n?google/ads/googleads_v4/proto/services/media_file_service.proto\x12 google.ads.googleads.v4.services\x1a\x38google/ads/googleads_v4/proto/resources/media_file.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x17google/rpc/status.proto\"X\n\x13GetMediaFileRequest\x12\x41\n\rresource_name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"googleads.googleapis.com/MediaFile\"\xb2\x01\n\x17MutateMediaFilesRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12M\n\noperations\x18\x02 \x03(\x0b\x32\x34.google.ads.googleads.v4.services.MediaFileOperationB\x03\xe0\x41\x02\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\"a\n\x12MediaFileOperation\x12>\n\x06\x63reate\x18\x01 \x01(\x0b\x32,.google.ads.googleads.v4.resources.MediaFileH\x00\x42\x0b\n\toperation\"\x97\x01\n\x18MutateMediaFilesResponse\x12\x31\n\x15partial_failure_error\x18\x03 \x01(\x0b\x32\x12.google.rpc.Status\x12H\n\x07results\x18\x02 \x03(\x0b\x32\x37.google.ads.googleads.v4.services.MutateMediaFileResult\".\n\x15MutateMediaFileResult\x12\x15\n\rresource_name\x18\x01 \x01(\t2\xcc\x03\n\x10MediaFileService\x12\xb9\x01\n\x0cGetMediaFile\x12\x35.google.ads.googleads.v4.services.GetMediaFileRequest\x1a,.google.ads.googleads.v4.resources.MediaFile\"D\x82\xd3\xe4\x93\x02.\x12,/v4/{resource_name=customers/*/mediaFiles/*}\xda\x41\rresource_name\x12\xde\x01\n\x10MutateMediaFiles\x12\x39.google.ads.googleads.v4.services.MutateMediaFilesRequest\x1a:.google.ads.googleads.v4.services.MutateMediaFilesResponse\"S\x82\xd3\xe4\x93\x02\x34\"//v4/customers/{customer_id=*}/mediaFiles:mutate:\x01*\xda\x41\x16\x63ustomer_id,operations\x1a\x1b\xca\x41\x18googleads.googleapis.comB\xfc\x01\n$com.google.ads.googleads.v4.servicesB\x15MediaFileServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V4.Services\xca\x02 Google\\Ads\\GoogleAds\\V4\\Services\xea\x02$Google::Ads::GoogleAds::V4::Servicesb\x06proto3') + , + dependencies=[google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_media__file__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_api_dot_client__pb2.DESCRIPTOR,google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_api_dot_resource__pb2.DESCRIPTOR,google_dot_rpc_dot_status__pb2.DESCRIPTOR,]) + + + + +_GETMEDIAFILEREQUEST = _descriptor.Descriptor( + name='GetMediaFileRequest', + full_name='google.ads.googleads.v4.services.GetMediaFileRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.services.GetMediaFileRequest.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002\372A$\n\"googleads.googleapis.com/MediaFile'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=299, + serialized_end=387, +) + + +_MUTATEMEDIAFILESREQUEST = _descriptor.Descriptor( + name='MutateMediaFilesRequest', + full_name='google.ads.googleads.v4.services.MutateMediaFilesRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='customer_id', full_name='google.ads.googleads.v4.services.MutateMediaFilesRequest.customer_id', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='operations', full_name='google.ads.googleads.v4.services.MutateMediaFilesRequest.operations', index=1, + number=2, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='partial_failure', full_name='google.ads.googleads.v4.services.MutateMediaFilesRequest.partial_failure', index=2, + number=3, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='validate_only', full_name='google.ads.googleads.v4.services.MutateMediaFilesRequest.validate_only', index=3, + number=4, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=390, + serialized_end=568, +) + + +_MEDIAFILEOPERATION = _descriptor.Descriptor( + name='MediaFileOperation', + full_name='google.ads.googleads.v4.services.MediaFileOperation', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='create', full_name='google.ads.googleads.v4.services.MediaFileOperation.create', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name='operation', full_name='google.ads.googleads.v4.services.MediaFileOperation.operation', + index=0, containing_type=None, fields=[]), + ], + serialized_start=570, + serialized_end=667, +) + + +_MUTATEMEDIAFILESRESPONSE = _descriptor.Descriptor( + name='MutateMediaFilesResponse', + full_name='google.ads.googleads.v4.services.MutateMediaFilesResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='partial_failure_error', full_name='google.ads.googleads.v4.services.MutateMediaFilesResponse.partial_failure_error', index=0, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='results', full_name='google.ads.googleads.v4.services.MutateMediaFilesResponse.results', index=1, + number=2, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=670, + serialized_end=821, +) + + +_MUTATEMEDIAFILERESULT = _descriptor.Descriptor( + name='MutateMediaFileResult', + full_name='google.ads.googleads.v4.services.MutateMediaFileResult', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.services.MutateMediaFileResult.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=823, + serialized_end=869, +) + +_MUTATEMEDIAFILESREQUEST.fields_by_name['operations'].message_type = _MEDIAFILEOPERATION +_MEDIAFILEOPERATION.fields_by_name['create'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_media__file__pb2._MEDIAFILE +_MEDIAFILEOPERATION.oneofs_by_name['operation'].fields.append( + _MEDIAFILEOPERATION.fields_by_name['create']) +_MEDIAFILEOPERATION.fields_by_name['create'].containing_oneof = _MEDIAFILEOPERATION.oneofs_by_name['operation'] +_MUTATEMEDIAFILESRESPONSE.fields_by_name['partial_failure_error'].message_type = google_dot_rpc_dot_status__pb2._STATUS +_MUTATEMEDIAFILESRESPONSE.fields_by_name['results'].message_type = _MUTATEMEDIAFILERESULT +DESCRIPTOR.message_types_by_name['GetMediaFileRequest'] = _GETMEDIAFILEREQUEST +DESCRIPTOR.message_types_by_name['MutateMediaFilesRequest'] = _MUTATEMEDIAFILESREQUEST +DESCRIPTOR.message_types_by_name['MediaFileOperation'] = _MEDIAFILEOPERATION +DESCRIPTOR.message_types_by_name['MutateMediaFilesResponse'] = _MUTATEMEDIAFILESRESPONSE +DESCRIPTOR.message_types_by_name['MutateMediaFileResult'] = _MUTATEMEDIAFILERESULT +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +GetMediaFileRequest = _reflection.GeneratedProtocolMessageType('GetMediaFileRequest', (_message.Message,), dict( + DESCRIPTOR = _GETMEDIAFILEREQUEST, + __module__ = 'google.ads.googleads_v4.proto.services.media_file_service_pb2' + , + __doc__ = """Request message for + [MediaFileService.GetMediaFile][google.ads.googleads.v4.services.MediaFileService.GetMediaFile] + + + Attributes: + resource_name: + Required. The resource name of the media file to fetch. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.GetMediaFileRequest) + )) +_sym_db.RegisterMessage(GetMediaFileRequest) + +MutateMediaFilesRequest = _reflection.GeneratedProtocolMessageType('MutateMediaFilesRequest', (_message.Message,), dict( + DESCRIPTOR = _MUTATEMEDIAFILESREQUEST, + __module__ = 'google.ads.googleads_v4.proto.services.media_file_service_pb2' + , + __doc__ = """Request message for + [MediaFileService.MutateMediaFiles][google.ads.googleads.v4.services.MediaFileService.MutateMediaFiles] + + + Attributes: + customer_id: + Required. The ID of the customer whose media files are being + modified. + operations: + Required. The list of operations to perform on individual + media file. + partial_failure: + If true, successful operations will be carried out and invalid + operations will return errors. If false, all operations will + be carried out in one transaction if and only if they are all + valid. Default is false. + validate_only: + If true, the request is validated but not executed. Only + errors are returned, not results. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.MutateMediaFilesRequest) + )) +_sym_db.RegisterMessage(MutateMediaFilesRequest) + +MediaFileOperation = _reflection.GeneratedProtocolMessageType('MediaFileOperation', (_message.Message,), dict( + DESCRIPTOR = _MEDIAFILEOPERATION, + __module__ = 'google.ads.googleads_v4.proto.services.media_file_service_pb2' + , + __doc__ = """A single operation to create media file. + + + Attributes: + operation: + The mutate operation. + create: + Create operation: No resource name is expected for the new + media file. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.MediaFileOperation) + )) +_sym_db.RegisterMessage(MediaFileOperation) + +MutateMediaFilesResponse = _reflection.GeneratedProtocolMessageType('MutateMediaFilesResponse', (_message.Message,), dict( + DESCRIPTOR = _MUTATEMEDIAFILESRESPONSE, + __module__ = 'google.ads.googleads_v4.proto.services.media_file_service_pb2' + , + __doc__ = """Response message for a media file mutate. + + + Attributes: + partial_failure_error: + Errors that pertain to operation failures in the partial + failure mode. Returned only when partial\_failure = true and + all errors occur inside the operations. If any errors occur + outside the operations (e.g. auth errors), we return an RPC + level error. + results: + All results for the mutate. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.MutateMediaFilesResponse) + )) +_sym_db.RegisterMessage(MutateMediaFilesResponse) + +MutateMediaFileResult = _reflection.GeneratedProtocolMessageType('MutateMediaFileResult', (_message.Message,), dict( + DESCRIPTOR = _MUTATEMEDIAFILERESULT, + __module__ = 'google.ads.googleads_v4.proto.services.media_file_service_pb2' + , + __doc__ = """The result for the media file mutate. + + + Attributes: + resource_name: + The resource name returned for successful operations. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.MutateMediaFileResult) + )) +_sym_db.RegisterMessage(MutateMediaFileResult) + + +DESCRIPTOR._options = None +_GETMEDIAFILEREQUEST.fields_by_name['resource_name']._options = None +_MUTATEMEDIAFILESREQUEST.fields_by_name['customer_id']._options = None +_MUTATEMEDIAFILESREQUEST.fields_by_name['operations']._options = None + +_MEDIAFILESERVICE = _descriptor.ServiceDescriptor( + name='MediaFileService', + full_name='google.ads.googleads.v4.services.MediaFileService', + file=DESCRIPTOR, + index=0, + serialized_options=_b('\312A\030googleads.googleapis.com'), + serialized_start=872, + serialized_end=1332, + methods=[ + _descriptor.MethodDescriptor( + name='GetMediaFile', + full_name='google.ads.googleads.v4.services.MediaFileService.GetMediaFile', + index=0, + containing_service=None, + input_type=_GETMEDIAFILEREQUEST, + output_type=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_media__file__pb2._MEDIAFILE, + serialized_options=_b('\202\323\344\223\002.\022,/v4/{resource_name=customers/*/mediaFiles/*}\332A\rresource_name'), + ), + _descriptor.MethodDescriptor( + name='MutateMediaFiles', + full_name='google.ads.googleads.v4.services.MediaFileService.MutateMediaFiles', + index=1, + containing_service=None, + input_type=_MUTATEMEDIAFILESREQUEST, + output_type=_MUTATEMEDIAFILESRESPONSE, + serialized_options=_b('\202\323\344\223\0024\"//v4/customers/{customer_id=*}/mediaFiles:mutate:\001*\332A\026customer_id,operations'), + ), +]) +_sym_db.RegisterServiceDescriptor(_MEDIAFILESERVICE) + +DESCRIPTOR.services_by_name['MediaFileService'] = _MEDIAFILESERVICE + +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v4/proto/services/media_file_service_pb2_grpc.py b/google/ads/google_ads/v4/proto/services/media_file_service_pb2_grpc.py new file mode 100644 index 000000000..ab5205933 --- /dev/null +++ b/google/ads/google_ads/v4/proto/services/media_file_service_pb2_grpc.py @@ -0,0 +1,68 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +import grpc + +from google.ads.google_ads.v4.proto.resources import media_file_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_media__file__pb2 +from google.ads.google_ads.v4.proto.services import media_file_service_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_media__file__service__pb2 + + +class MediaFileServiceStub(object): + """Proto file describing the Media File service. + + Service to manage media files. + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.GetMediaFile = channel.unary_unary( + '/google.ads.googleads.v4.services.MediaFileService/GetMediaFile', + request_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_media__file__service__pb2.GetMediaFileRequest.SerializeToString, + response_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_media__file__pb2.MediaFile.FromString, + ) + self.MutateMediaFiles = channel.unary_unary( + '/google.ads.googleads.v4.services.MediaFileService/MutateMediaFiles', + request_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_media__file__service__pb2.MutateMediaFilesRequest.SerializeToString, + response_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_media__file__service__pb2.MutateMediaFilesResponse.FromString, + ) + + +class MediaFileServiceServicer(object): + """Proto file describing the Media File service. + + Service to manage media files. + """ + + def GetMediaFile(self, request, context): + """Returns the requested media file in full detail. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def MutateMediaFiles(self, request, context): + """Creates media files. Operation statuses are returned. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_MediaFileServiceServicer_to_server(servicer, server): + rpc_method_handlers = { + 'GetMediaFile': grpc.unary_unary_rpc_method_handler( + servicer.GetMediaFile, + request_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_media__file__service__pb2.GetMediaFileRequest.FromString, + response_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_media__file__pb2.MediaFile.SerializeToString, + ), + 'MutateMediaFiles': grpc.unary_unary_rpc_method_handler( + servicer.MutateMediaFiles, + request_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_media__file__service__pb2.MutateMediaFilesRequest.FromString, + response_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_media__file__service__pb2.MutateMediaFilesResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'google.ads.googleads.v4.services.MediaFileService', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) diff --git a/google/ads/google_ads/v4/proto/services/merchant_center_link_service_pb2.py b/google/ads/google_ads/v4/proto/services/merchant_center_link_service_pb2.py new file mode 100644 index 000000000..c31125c7d --- /dev/null +++ b/google/ads/google_ads/v4/proto/services/merchant_center_link_service_pb2.py @@ -0,0 +1,466 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/services/merchant_center_link_service.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.ads.google_ads.v4.proto.resources import merchant_center_link_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_merchant__center__link__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 +from google.api import client_pb2 as google_dot_api_dot_client__pb2 +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 +from google.protobuf import field_mask_pb2 as google_dot_protobuf_dot_field__mask__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/services/merchant_center_link_service.proto', + package='google.ads.googleads.v4.services', + syntax='proto3', + serialized_options=_b('\n$com.google.ads.googleads.v4.servicesB\036MerchantCenterLinkServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V4.Services\312\002 Google\\Ads\\GoogleAds\\V4\\Services\352\002$Google::Ads::GoogleAds::V4::Services'), + serialized_pb=_b('\nIgoogle/ads/googleads_v4/proto/services/merchant_center_link_service.proto\x12 google.ads.googleads.v4.services\x1a\x42google/ads/googleads_v4/proto/resources/merchant_center_link.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/protobuf/field_mask.proto\":\n\x1eListMerchantCenterLinksRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\"w\n\x1fListMerchantCenterLinksResponse\x12T\n\x15merchant_center_links\x18\x01 \x03(\x0b\x32\x35.google.ads.googleads.v4.resources.MerchantCenterLink\"j\n\x1cGetMerchantCenterLinkRequest\x12J\n\rresource_name\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+googleads.googleapis.com/MerchantCenterLink\"\x92\x01\n\x1fMutateMerchantCenterLinkRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12U\n\toperation\x18\x02 \x01(\x0b\x32=.google.ads.googleads.v4.services.MerchantCenterLinkOperationB\x03\xe0\x41\x02\"\xb6\x01\n\x1bMerchantCenterLinkOperation\x12/\n\x0bupdate_mask\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12G\n\x06update\x18\x01 \x01(\x0b\x32\x35.google.ads.googleads.v4.resources.MerchantCenterLinkH\x00\x12\x10\n\x06remove\x18\x02 \x01(\tH\x00\x42\x0b\n\toperation\"t\n MutateMerchantCenterLinkResponse\x12P\n\x06result\x18\x02 \x01(\x0b\x32@.google.ads.googleads.v4.services.MutateMerchantCenterLinkResult\"7\n\x1eMutateMerchantCenterLinkResult\x12\x15\n\rresource_name\x18\x01 \x01(\t2\x83\x06\n\x19MerchantCenterLinkService\x12\xe7\x01\n\x17ListMerchantCenterLinks\x12@.google.ads.googleads.v4.services.ListMerchantCenterLinksRequest\x1a\x41.google.ads.googleads.v4.services.ListMerchantCenterLinksResponse\"G\x82\xd3\xe4\x93\x02\x33\x12\x31/v4/customers/{customer_id=*}/merchantCenterLinks\xda\x41\x0b\x63ustomer_id\x12\xdd\x01\n\x15GetMerchantCenterLink\x12>.google.ads.googleads.v4.services.GetMerchantCenterLinkRequest\x1a\x35.google.ads.googleads.v4.resources.MerchantCenterLink\"M\x82\xd3\xe4\x93\x02\x37\x12\x35/v4/{resource_name=customers/*/merchantCenterLinks/*}\xda\x41\rresource_name\x12\xfe\x01\n\x18MutateMerchantCenterLink\x12\x41.google.ads.googleads.v4.services.MutateMerchantCenterLinkRequest\x1a\x42.google.ads.googleads.v4.services.MutateMerchantCenterLinkResponse\"[\x82\xd3\xe4\x93\x02=\"8/v4/customers/{customer_id=*}/merchantCenterLinks:mutate:\x01*\xda\x41\x15\x63ustomer_id,operation\x1a\x1b\xca\x41\x18googleads.googleapis.comB\x85\x02\n$com.google.ads.googleads.v4.servicesB\x1eMerchantCenterLinkServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V4.Services\xca\x02 Google\\Ads\\GoogleAds\\V4\\Services\xea\x02$Google::Ads::GoogleAds::V4::Servicesb\x06proto3') + , + dependencies=[google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_merchant__center__link__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_api_dot_client__pb2.DESCRIPTOR,google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_api_dot_resource__pb2.DESCRIPTOR,google_dot_protobuf_dot_field__mask__pb2.DESCRIPTOR,]) + + + + +_LISTMERCHANTCENTERLINKSREQUEST = _descriptor.Descriptor( + name='ListMerchantCenterLinksRequest', + full_name='google.ads.googleads.v4.services.ListMerchantCenterLinksRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='customer_id', full_name='google.ads.googleads.v4.services.ListMerchantCenterLinksRequest.customer_id', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=328, + serialized_end=386, +) + + +_LISTMERCHANTCENTERLINKSRESPONSE = _descriptor.Descriptor( + name='ListMerchantCenterLinksResponse', + full_name='google.ads.googleads.v4.services.ListMerchantCenterLinksResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='merchant_center_links', full_name='google.ads.googleads.v4.services.ListMerchantCenterLinksResponse.merchant_center_links', index=0, + number=1, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=388, + serialized_end=507, +) + + +_GETMERCHANTCENTERLINKREQUEST = _descriptor.Descriptor( + name='GetMerchantCenterLinkRequest', + full_name='google.ads.googleads.v4.services.GetMerchantCenterLinkRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.services.GetMerchantCenterLinkRequest.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002\372A-\n+googleads.googleapis.com/MerchantCenterLink'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=509, + serialized_end=615, +) + + +_MUTATEMERCHANTCENTERLINKREQUEST = _descriptor.Descriptor( + name='MutateMerchantCenterLinkRequest', + full_name='google.ads.googleads.v4.services.MutateMerchantCenterLinkRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='customer_id', full_name='google.ads.googleads.v4.services.MutateMerchantCenterLinkRequest.customer_id', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='operation', full_name='google.ads.googleads.v4.services.MutateMerchantCenterLinkRequest.operation', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=618, + serialized_end=764, +) + + +_MERCHANTCENTERLINKOPERATION = _descriptor.Descriptor( + name='MerchantCenterLinkOperation', + full_name='google.ads.googleads.v4.services.MerchantCenterLinkOperation', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='update_mask', full_name='google.ads.googleads.v4.services.MerchantCenterLinkOperation.update_mask', index=0, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='update', full_name='google.ads.googleads.v4.services.MerchantCenterLinkOperation.update', index=1, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='remove', full_name='google.ads.googleads.v4.services.MerchantCenterLinkOperation.remove', index=2, + number=2, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name='operation', full_name='google.ads.googleads.v4.services.MerchantCenterLinkOperation.operation', + index=0, containing_type=None, fields=[]), + ], + serialized_start=767, + serialized_end=949, +) + + +_MUTATEMERCHANTCENTERLINKRESPONSE = _descriptor.Descriptor( + name='MutateMerchantCenterLinkResponse', + full_name='google.ads.googleads.v4.services.MutateMerchantCenterLinkResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='result', full_name='google.ads.googleads.v4.services.MutateMerchantCenterLinkResponse.result', index=0, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=951, + serialized_end=1067, +) + + +_MUTATEMERCHANTCENTERLINKRESULT = _descriptor.Descriptor( + name='MutateMerchantCenterLinkResult', + full_name='google.ads.googleads.v4.services.MutateMerchantCenterLinkResult', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.services.MutateMerchantCenterLinkResult.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1069, + serialized_end=1124, +) + +_LISTMERCHANTCENTERLINKSRESPONSE.fields_by_name['merchant_center_links'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_merchant__center__link__pb2._MERCHANTCENTERLINK +_MUTATEMERCHANTCENTERLINKREQUEST.fields_by_name['operation'].message_type = _MERCHANTCENTERLINKOPERATION +_MERCHANTCENTERLINKOPERATION.fields_by_name['update_mask'].message_type = google_dot_protobuf_dot_field__mask__pb2._FIELDMASK +_MERCHANTCENTERLINKOPERATION.fields_by_name['update'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_merchant__center__link__pb2._MERCHANTCENTERLINK +_MERCHANTCENTERLINKOPERATION.oneofs_by_name['operation'].fields.append( + _MERCHANTCENTERLINKOPERATION.fields_by_name['update']) +_MERCHANTCENTERLINKOPERATION.fields_by_name['update'].containing_oneof = _MERCHANTCENTERLINKOPERATION.oneofs_by_name['operation'] +_MERCHANTCENTERLINKOPERATION.oneofs_by_name['operation'].fields.append( + _MERCHANTCENTERLINKOPERATION.fields_by_name['remove']) +_MERCHANTCENTERLINKOPERATION.fields_by_name['remove'].containing_oneof = _MERCHANTCENTERLINKOPERATION.oneofs_by_name['operation'] +_MUTATEMERCHANTCENTERLINKRESPONSE.fields_by_name['result'].message_type = _MUTATEMERCHANTCENTERLINKRESULT +DESCRIPTOR.message_types_by_name['ListMerchantCenterLinksRequest'] = _LISTMERCHANTCENTERLINKSREQUEST +DESCRIPTOR.message_types_by_name['ListMerchantCenterLinksResponse'] = _LISTMERCHANTCENTERLINKSRESPONSE +DESCRIPTOR.message_types_by_name['GetMerchantCenterLinkRequest'] = _GETMERCHANTCENTERLINKREQUEST +DESCRIPTOR.message_types_by_name['MutateMerchantCenterLinkRequest'] = _MUTATEMERCHANTCENTERLINKREQUEST +DESCRIPTOR.message_types_by_name['MerchantCenterLinkOperation'] = _MERCHANTCENTERLINKOPERATION +DESCRIPTOR.message_types_by_name['MutateMerchantCenterLinkResponse'] = _MUTATEMERCHANTCENTERLINKRESPONSE +DESCRIPTOR.message_types_by_name['MutateMerchantCenterLinkResult'] = _MUTATEMERCHANTCENTERLINKRESULT +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +ListMerchantCenterLinksRequest = _reflection.GeneratedProtocolMessageType('ListMerchantCenterLinksRequest', (_message.Message,), dict( + DESCRIPTOR = _LISTMERCHANTCENTERLINKSREQUEST, + __module__ = 'google.ads.googleads_v4.proto.services.merchant_center_link_service_pb2' + , + __doc__ = """Request message for + [MerchantCenterLinkService.ListMerchantCenterLinks][google.ads.googleads.v4.services.MerchantCenterLinkService.ListMerchantCenterLinks]. + + + Attributes: + customer_id: + Required. The ID of the customer onto which to apply the + Merchant Center link list operation. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.ListMerchantCenterLinksRequest) + )) +_sym_db.RegisterMessage(ListMerchantCenterLinksRequest) + +ListMerchantCenterLinksResponse = _reflection.GeneratedProtocolMessageType('ListMerchantCenterLinksResponse', (_message.Message,), dict( + DESCRIPTOR = _LISTMERCHANTCENTERLINKSRESPONSE, + __module__ = 'google.ads.googleads_v4.proto.services.merchant_center_link_service_pb2' + , + __doc__ = """Response message for + [MerchantCenterLinkService.ListMerchantCenterLinks][google.ads.googleads.v4.services.MerchantCenterLinkService.ListMerchantCenterLinks]. + + + Attributes: + merchant_center_links: + Merchant Center links available for the requested customer + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.ListMerchantCenterLinksResponse) + )) +_sym_db.RegisterMessage(ListMerchantCenterLinksResponse) + +GetMerchantCenterLinkRequest = _reflection.GeneratedProtocolMessageType('GetMerchantCenterLinkRequest', (_message.Message,), dict( + DESCRIPTOR = _GETMERCHANTCENTERLINKREQUEST, + __module__ = 'google.ads.googleads_v4.proto.services.merchant_center_link_service_pb2' + , + __doc__ = """Request message for + [MerchantCenterLinkService.GetMerchantCenterLink][google.ads.googleads.v4.services.MerchantCenterLinkService.GetMerchantCenterLink]. + + + Attributes: + resource_name: + Required. Resource name of the Merchant Center link. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.GetMerchantCenterLinkRequest) + )) +_sym_db.RegisterMessage(GetMerchantCenterLinkRequest) + +MutateMerchantCenterLinkRequest = _reflection.GeneratedProtocolMessageType('MutateMerchantCenterLinkRequest', (_message.Message,), dict( + DESCRIPTOR = _MUTATEMERCHANTCENTERLINKREQUEST, + __module__ = 'google.ads.googleads_v4.proto.services.merchant_center_link_service_pb2' + , + __doc__ = """Request message for + [MerchantCenterLinkService.MutateMerchantCenterLink][google.ads.googleads.v4.services.MerchantCenterLinkService.MutateMerchantCenterLink]. + + + Attributes: + customer_id: + Required. The ID of the customer being modified. + operation: + Required. The operation to perform on the link + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.MutateMerchantCenterLinkRequest) + )) +_sym_db.RegisterMessage(MutateMerchantCenterLinkRequest) + +MerchantCenterLinkOperation = _reflection.GeneratedProtocolMessageType('MerchantCenterLinkOperation', (_message.Message,), dict( + DESCRIPTOR = _MERCHANTCENTERLINKOPERATION, + __module__ = 'google.ads.googleads_v4.proto.services.merchant_center_link_service_pb2' + , + __doc__ = """A single update on a Merchant Center link. + + + Attributes: + update_mask: + FieldMask that determines which resource fields are modified + in an update. + operation: + The operation to perform + update: + Update operation: The merchant center link is expected to have + a valid resource name. + remove: + Remove operation: A resource name for the removed merchant + center link is expected, in this format: ``customers/{custome + r_id}/merchantCenterLinks/{merchant_center_id}`` + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.MerchantCenterLinkOperation) + )) +_sym_db.RegisterMessage(MerchantCenterLinkOperation) + +MutateMerchantCenterLinkResponse = _reflection.GeneratedProtocolMessageType('MutateMerchantCenterLinkResponse', (_message.Message,), dict( + DESCRIPTOR = _MUTATEMERCHANTCENTERLINKRESPONSE, + __module__ = 'google.ads.googleads_v4.proto.services.merchant_center_link_service_pb2' + , + __doc__ = """Response message for Merchant Center link mutate. + + + Attributes: + result: + Result for the mutate. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.MutateMerchantCenterLinkResponse) + )) +_sym_db.RegisterMessage(MutateMerchantCenterLinkResponse) + +MutateMerchantCenterLinkResult = _reflection.GeneratedProtocolMessageType('MutateMerchantCenterLinkResult', (_message.Message,), dict( + DESCRIPTOR = _MUTATEMERCHANTCENTERLINKRESULT, + __module__ = 'google.ads.googleads_v4.proto.services.merchant_center_link_service_pb2' + , + __doc__ = """The result for the Merchant Center link mutate. + + + Attributes: + resource_name: + Returned for successful operations. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.MutateMerchantCenterLinkResult) + )) +_sym_db.RegisterMessage(MutateMerchantCenterLinkResult) + + +DESCRIPTOR._options = None +_LISTMERCHANTCENTERLINKSREQUEST.fields_by_name['customer_id']._options = None +_GETMERCHANTCENTERLINKREQUEST.fields_by_name['resource_name']._options = None +_MUTATEMERCHANTCENTERLINKREQUEST.fields_by_name['customer_id']._options = None +_MUTATEMERCHANTCENTERLINKREQUEST.fields_by_name['operation']._options = None + +_MERCHANTCENTERLINKSERVICE = _descriptor.ServiceDescriptor( + name='MerchantCenterLinkService', + full_name='google.ads.googleads.v4.services.MerchantCenterLinkService', + file=DESCRIPTOR, + index=0, + serialized_options=_b('\312A\030googleads.googleapis.com'), + serialized_start=1127, + serialized_end=1898, + methods=[ + _descriptor.MethodDescriptor( + name='ListMerchantCenterLinks', + full_name='google.ads.googleads.v4.services.MerchantCenterLinkService.ListMerchantCenterLinks', + index=0, + containing_service=None, + input_type=_LISTMERCHANTCENTERLINKSREQUEST, + output_type=_LISTMERCHANTCENTERLINKSRESPONSE, + serialized_options=_b('\202\323\344\223\0023\0221/v4/customers/{customer_id=*}/merchantCenterLinks\332A\013customer_id'), + ), + _descriptor.MethodDescriptor( + name='GetMerchantCenterLink', + full_name='google.ads.googleads.v4.services.MerchantCenterLinkService.GetMerchantCenterLink', + index=1, + containing_service=None, + input_type=_GETMERCHANTCENTERLINKREQUEST, + output_type=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_merchant__center__link__pb2._MERCHANTCENTERLINK, + serialized_options=_b('\202\323\344\223\0027\0225/v4/{resource_name=customers/*/merchantCenterLinks/*}\332A\rresource_name'), + ), + _descriptor.MethodDescriptor( + name='MutateMerchantCenterLink', + full_name='google.ads.googleads.v4.services.MerchantCenterLinkService.MutateMerchantCenterLink', + index=2, + containing_service=None, + input_type=_MUTATEMERCHANTCENTERLINKREQUEST, + output_type=_MUTATEMERCHANTCENTERLINKRESPONSE, + serialized_options=_b('\202\323\344\223\002=\"8/v4/customers/{customer_id=*}/merchantCenterLinks:mutate:\001*\332A\025customer_id,operation'), + ), +]) +_sym_db.RegisterServiceDescriptor(_MERCHANTCENTERLINKSERVICE) + +DESCRIPTOR.services_by_name['MerchantCenterLinkService'] = _MERCHANTCENTERLINKSERVICE + +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v4/proto/services/merchant_center_link_service_pb2_grpc.py b/google/ads/google_ads/v4/proto/services/merchant_center_link_service_pb2_grpc.py new file mode 100644 index 000000000..6f910ab9d --- /dev/null +++ b/google/ads/google_ads/v4/proto/services/merchant_center_link_service_pb2_grpc.py @@ -0,0 +1,87 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +import grpc + +from google.ads.google_ads.v4.proto.resources import merchant_center_link_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_merchant__center__link__pb2 +from google.ads.google_ads.v4.proto.services import merchant_center_link_service_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_merchant__center__link__service__pb2 + + +class MerchantCenterLinkServiceStub(object): + """Proto file describing the MerchantCenterLink service. + + This service allows management of links between Google Ads and Google + Merchant Center. + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.ListMerchantCenterLinks = channel.unary_unary( + '/google.ads.googleads.v4.services.MerchantCenterLinkService/ListMerchantCenterLinks', + request_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_merchant__center__link__service__pb2.ListMerchantCenterLinksRequest.SerializeToString, + response_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_merchant__center__link__service__pb2.ListMerchantCenterLinksResponse.FromString, + ) + self.GetMerchantCenterLink = channel.unary_unary( + '/google.ads.googleads.v4.services.MerchantCenterLinkService/GetMerchantCenterLink', + request_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_merchant__center__link__service__pb2.GetMerchantCenterLinkRequest.SerializeToString, + response_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_merchant__center__link__pb2.MerchantCenterLink.FromString, + ) + self.MutateMerchantCenterLink = channel.unary_unary( + '/google.ads.googleads.v4.services.MerchantCenterLinkService/MutateMerchantCenterLink', + request_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_merchant__center__link__service__pb2.MutateMerchantCenterLinkRequest.SerializeToString, + response_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_merchant__center__link__service__pb2.MutateMerchantCenterLinkResponse.FromString, + ) + + +class MerchantCenterLinkServiceServicer(object): + """Proto file describing the MerchantCenterLink service. + + This service allows management of links between Google Ads and Google + Merchant Center. + """ + + def ListMerchantCenterLinks(self, request, context): + """Returns Merchant Center links available for this customer. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetMerchantCenterLink(self, request, context): + """Returns the Merchant Center link in full detail. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def MutateMerchantCenterLink(self, request, context): + """Updates status or removes a Merchant Center link. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_MerchantCenterLinkServiceServicer_to_server(servicer, server): + rpc_method_handlers = { + 'ListMerchantCenterLinks': grpc.unary_unary_rpc_method_handler( + servicer.ListMerchantCenterLinks, + request_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_merchant__center__link__service__pb2.ListMerchantCenterLinksRequest.FromString, + response_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_merchant__center__link__service__pb2.ListMerchantCenterLinksResponse.SerializeToString, + ), + 'GetMerchantCenterLink': grpc.unary_unary_rpc_method_handler( + servicer.GetMerchantCenterLink, + request_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_merchant__center__link__service__pb2.GetMerchantCenterLinkRequest.FromString, + response_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_merchant__center__link__pb2.MerchantCenterLink.SerializeToString, + ), + 'MutateMerchantCenterLink': grpc.unary_unary_rpc_method_handler( + servicer.MutateMerchantCenterLink, + request_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_merchant__center__link__service__pb2.MutateMerchantCenterLinkRequest.FromString, + response_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_merchant__center__link__service__pb2.MutateMerchantCenterLinkResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'google.ads.googleads.v4.services.MerchantCenterLinkService', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) diff --git a/google/ads/google_ads/v4/proto/services/mobile_app_category_constant_service_pb2.py b/google/ads/google_ads/v4/proto/services/mobile_app_category_constant_service_pb2.py new file mode 100644 index 000000000..63e359eef --- /dev/null +++ b/google/ads/google_ads/v4/proto/services/mobile_app_category_constant_service_pb2.py @@ -0,0 +1,112 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/services/mobile_app_category_constant_service.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.ads.google_ads.v4.proto.resources import mobile_app_category_constant_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_mobile__app__category__constant__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 +from google.api import client_pb2 as google_dot_api_dot_client__pb2 +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/services/mobile_app_category_constant_service.proto', + package='google.ads.googleads.v4.services', + syntax='proto3', + serialized_options=_b('\n$com.google.ads.googleads.v4.servicesB%MobileAppCategoryConstantServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V4.Services\312\002 Google\\Ads\\GoogleAds\\V4\\Services\352\002$Google::Ads::GoogleAds::V4::Services'), + serialized_pb=_b('\nQgoogle/ads/googleads_v4/proto/services/mobile_app_category_constant_service.proto\x12 google.ads.googleads.v4.services\x1aJgoogle/ads/googleads_v4/proto/resources/mobile_app_category_constant.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"x\n#GetMobileAppCategoryConstantRequest\x12Q\n\rresource_name\x18\x01 \x01(\tB:\xe0\x41\x02\xfa\x41\x34\n2googleads.googleapis.com/MobileAppCategoryConstant2\xaf\x02\n MobileAppCategoryConstantService\x12\xed\x01\n\x1cGetMobileAppCategoryConstant\x12\x45.google.ads.googleads.v4.services.GetMobileAppCategoryConstantRequest\x1a<.google.ads.googleads.v4.resources.MobileAppCategoryConstant\"H\x82\xd3\xe4\x93\x02\x32\x12\x30/v4/{resource_name=mobileAppCategoryConstants/*}\xda\x41\rresource_name\x1a\x1b\xca\x41\x18googleads.googleapis.comB\x8c\x02\n$com.google.ads.googleads.v4.servicesB%MobileAppCategoryConstantServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V4.Services\xca\x02 Google\\Ads\\GoogleAds\\V4\\Services\xea\x02$Google::Ads::GoogleAds::V4::Servicesb\x06proto3') + , + dependencies=[google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_mobile__app__category__constant__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_api_dot_client__pb2.DESCRIPTOR,google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_api_dot_resource__pb2.DESCRIPTOR,]) + + + + +_GETMOBILEAPPCATEGORYCONSTANTREQUEST = _descriptor.Descriptor( + name='GetMobileAppCategoryConstantRequest', + full_name='google.ads.googleads.v4.services.GetMobileAppCategoryConstantRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.services.GetMobileAppCategoryConstantRequest.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002\372A4\n2googleads.googleapis.com/MobileAppCategoryConstant'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=310, + serialized_end=430, +) + +DESCRIPTOR.message_types_by_name['GetMobileAppCategoryConstantRequest'] = _GETMOBILEAPPCATEGORYCONSTANTREQUEST +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +GetMobileAppCategoryConstantRequest = _reflection.GeneratedProtocolMessageType('GetMobileAppCategoryConstantRequest', (_message.Message,), dict( + DESCRIPTOR = _GETMOBILEAPPCATEGORYCONSTANTREQUEST, + __module__ = 'google.ads.googleads_v4.proto.services.mobile_app_category_constant_service_pb2' + , + __doc__ = """Request message for + [MobileAppCategoryConstantService.GetMobileAppCategoryConstant][google.ads.googleads.v4.services.MobileAppCategoryConstantService.GetMobileAppCategoryConstant]. + + + Attributes: + resource_name: + Required. Resource name of the mobile app category constant to + fetch. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.GetMobileAppCategoryConstantRequest) + )) +_sym_db.RegisterMessage(GetMobileAppCategoryConstantRequest) + + +DESCRIPTOR._options = None +_GETMOBILEAPPCATEGORYCONSTANTREQUEST.fields_by_name['resource_name']._options = None + +_MOBILEAPPCATEGORYCONSTANTSERVICE = _descriptor.ServiceDescriptor( + name='MobileAppCategoryConstantService', + full_name='google.ads.googleads.v4.services.MobileAppCategoryConstantService', + file=DESCRIPTOR, + index=0, + serialized_options=_b('\312A\030googleads.googleapis.com'), + serialized_start=433, + serialized_end=736, + methods=[ + _descriptor.MethodDescriptor( + name='GetMobileAppCategoryConstant', + full_name='google.ads.googleads.v4.services.MobileAppCategoryConstantService.GetMobileAppCategoryConstant', + index=0, + containing_service=None, + input_type=_GETMOBILEAPPCATEGORYCONSTANTREQUEST, + output_type=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_mobile__app__category__constant__pb2._MOBILEAPPCATEGORYCONSTANT, + serialized_options=_b('\202\323\344\223\0022\0220/v4/{resource_name=mobileAppCategoryConstants/*}\332A\rresource_name'), + ), +]) +_sym_db.RegisterServiceDescriptor(_MOBILEAPPCATEGORYCONSTANTSERVICE) + +DESCRIPTOR.services_by_name['MobileAppCategoryConstantService'] = _MOBILEAPPCATEGORYCONSTANTSERVICE + +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v4/proto/services/mobile_app_category_constant_service_pb2_grpc.py b/google/ads/google_ads/v4/proto/services/mobile_app_category_constant_service_pb2_grpc.py new file mode 100644 index 000000000..f33187116 --- /dev/null +++ b/google/ads/google_ads/v4/proto/services/mobile_app_category_constant_service_pb2_grpc.py @@ -0,0 +1,47 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +import grpc + +from google.ads.google_ads.v4.proto.resources import mobile_app_category_constant_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_mobile__app__category__constant__pb2 +from google.ads.google_ads.v4.proto.services import mobile_app_category_constant_service_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_mobile__app__category__constant__service__pb2 + + +class MobileAppCategoryConstantServiceStub(object): + """Service to fetch mobile app category constants. + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.GetMobileAppCategoryConstant = channel.unary_unary( + '/google.ads.googleads.v4.services.MobileAppCategoryConstantService/GetMobileAppCategoryConstant', + request_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_mobile__app__category__constant__service__pb2.GetMobileAppCategoryConstantRequest.SerializeToString, + response_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_mobile__app__category__constant__pb2.MobileAppCategoryConstant.FromString, + ) + + +class MobileAppCategoryConstantServiceServicer(object): + """Service to fetch mobile app category constants. + """ + + def GetMobileAppCategoryConstant(self, request, context): + """Returns the requested mobile app category constant. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_MobileAppCategoryConstantServiceServicer_to_server(servicer, server): + rpc_method_handlers = { + 'GetMobileAppCategoryConstant': grpc.unary_unary_rpc_method_handler( + servicer.GetMobileAppCategoryConstant, + request_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_mobile__app__category__constant__service__pb2.GetMobileAppCategoryConstantRequest.FromString, + response_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_mobile__app__category__constant__pb2.MobileAppCategoryConstant.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'google.ads.googleads.v4.services.MobileAppCategoryConstantService', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) diff --git a/google/ads/google_ads/v4/proto/services/mobile_device_constant_service_pb2.py b/google/ads/google_ads/v4/proto/services/mobile_device_constant_service_pb2.py new file mode 100644 index 000000000..77fc0e704 --- /dev/null +++ b/google/ads/google_ads/v4/proto/services/mobile_device_constant_service_pb2.py @@ -0,0 +1,111 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/services/mobile_device_constant_service.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.ads.google_ads.v4.proto.resources import mobile_device_constant_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_mobile__device__constant__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 +from google.api import client_pb2 as google_dot_api_dot_client__pb2 +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/services/mobile_device_constant_service.proto', + package='google.ads.googleads.v4.services', + syntax='proto3', + serialized_options=_b('\n$com.google.ads.googleads.v4.servicesB MobileDeviceConstantServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V4.Services\312\002 Google\\Ads\\GoogleAds\\V4\\Services\352\002$Google::Ads::GoogleAds::V4::Services'), + serialized_pb=_b('\nKgoogle/ads/googleads_v4/proto/services/mobile_device_constant_service.proto\x12 google.ads.googleads.v4.services\x1a\x44google/ads/googleads_v4/proto/resources/mobile_device_constant.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"n\n\x1eGetMobileDeviceConstantRequest\x12L\n\rresource_name\x18\x01 \x01(\tB5\xe0\x41\x02\xfa\x41/\n-googleads.googleapis.com/MobileDeviceConstant2\x96\x02\n\x1bMobileDeviceConstantService\x12\xd9\x01\n\x17GetMobileDeviceConstant\x12@.google.ads.googleads.v4.services.GetMobileDeviceConstantRequest\x1a\x37.google.ads.googleads.v4.resources.MobileDeviceConstant\"C\x82\xd3\xe4\x93\x02-\x12+/v4/{resource_name=mobileDeviceConstants/*}\xda\x41\rresource_name\x1a\x1b\xca\x41\x18googleads.googleapis.comB\x87\x02\n$com.google.ads.googleads.v4.servicesB MobileDeviceConstantServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V4.Services\xca\x02 Google\\Ads\\GoogleAds\\V4\\Services\xea\x02$Google::Ads::GoogleAds::V4::Servicesb\x06proto3') + , + dependencies=[google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_mobile__device__constant__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_api_dot_client__pb2.DESCRIPTOR,google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_api_dot_resource__pb2.DESCRIPTOR,]) + + + + +_GETMOBILEDEVICECONSTANTREQUEST = _descriptor.Descriptor( + name='GetMobileDeviceConstantRequest', + full_name='google.ads.googleads.v4.services.GetMobileDeviceConstantRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.services.GetMobileDeviceConstantRequest.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002\372A/\n-googleads.googleapis.com/MobileDeviceConstant'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=298, + serialized_end=408, +) + +DESCRIPTOR.message_types_by_name['GetMobileDeviceConstantRequest'] = _GETMOBILEDEVICECONSTANTREQUEST +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +GetMobileDeviceConstantRequest = _reflection.GeneratedProtocolMessageType('GetMobileDeviceConstantRequest', (_message.Message,), dict( + DESCRIPTOR = _GETMOBILEDEVICECONSTANTREQUEST, + __module__ = 'google.ads.googleads_v4.proto.services.mobile_device_constant_service_pb2' + , + __doc__ = """Request message for + [MobileDeviceConstantService.GetMobileDeviceConstant][google.ads.googleads.v4.services.MobileDeviceConstantService.GetMobileDeviceConstant]. + + + Attributes: + resource_name: + Required. Resource name of the mobile device to fetch. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.GetMobileDeviceConstantRequest) + )) +_sym_db.RegisterMessage(GetMobileDeviceConstantRequest) + + +DESCRIPTOR._options = None +_GETMOBILEDEVICECONSTANTREQUEST.fields_by_name['resource_name']._options = None + +_MOBILEDEVICECONSTANTSERVICE = _descriptor.ServiceDescriptor( + name='MobileDeviceConstantService', + full_name='google.ads.googleads.v4.services.MobileDeviceConstantService', + file=DESCRIPTOR, + index=0, + serialized_options=_b('\312A\030googleads.googleapis.com'), + serialized_start=411, + serialized_end=689, + methods=[ + _descriptor.MethodDescriptor( + name='GetMobileDeviceConstant', + full_name='google.ads.googleads.v4.services.MobileDeviceConstantService.GetMobileDeviceConstant', + index=0, + containing_service=None, + input_type=_GETMOBILEDEVICECONSTANTREQUEST, + output_type=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_mobile__device__constant__pb2._MOBILEDEVICECONSTANT, + serialized_options=_b('\202\323\344\223\002-\022+/v4/{resource_name=mobileDeviceConstants/*}\332A\rresource_name'), + ), +]) +_sym_db.RegisterServiceDescriptor(_MOBILEDEVICECONSTANTSERVICE) + +DESCRIPTOR.services_by_name['MobileDeviceConstantService'] = _MOBILEDEVICECONSTANTSERVICE + +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v4/proto/services/mobile_device_constant_service_pb2_grpc.py b/google/ads/google_ads/v4/proto/services/mobile_device_constant_service_pb2_grpc.py new file mode 100644 index 000000000..760791eb4 --- /dev/null +++ b/google/ads/google_ads/v4/proto/services/mobile_device_constant_service_pb2_grpc.py @@ -0,0 +1,51 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +import grpc + +from google.ads.google_ads.v4.proto.resources import mobile_device_constant_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_mobile__device__constant__pb2 +from google.ads.google_ads.v4.proto.services import mobile_device_constant_service_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_mobile__device__constant__service__pb2 + + +class MobileDeviceConstantServiceStub(object): + """Proto file describing the mobile device constant service. + + Service to fetch mobile device constants. + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.GetMobileDeviceConstant = channel.unary_unary( + '/google.ads.googleads.v4.services.MobileDeviceConstantService/GetMobileDeviceConstant', + request_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_mobile__device__constant__service__pb2.GetMobileDeviceConstantRequest.SerializeToString, + response_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_mobile__device__constant__pb2.MobileDeviceConstant.FromString, + ) + + +class MobileDeviceConstantServiceServicer(object): + """Proto file describing the mobile device constant service. + + Service to fetch mobile device constants. + """ + + def GetMobileDeviceConstant(self, request, context): + """Returns the requested mobile device constant in full detail. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_MobileDeviceConstantServiceServicer_to_server(servicer, server): + rpc_method_handlers = { + 'GetMobileDeviceConstant': grpc.unary_unary_rpc_method_handler( + servicer.GetMobileDeviceConstant, + request_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_mobile__device__constant__service__pb2.GetMobileDeviceConstantRequest.FromString, + response_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_mobile__device__constant__pb2.MobileDeviceConstant.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'google.ads.googleads.v4.services.MobileDeviceConstantService', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) diff --git a/google/ads/google_ads/v4/proto/services/offline_user_data_job_service_pb2.py b/google/ads/google_ads/v4/proto/services/offline_user_data_job_service_pb2.py new file mode 100644 index 000000000..f07f92411 --- /dev/null +++ b/google/ads/google_ads/v4/proto/services/offline_user_data_job_service_pb2.py @@ -0,0 +1,508 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/services/offline_user_data_job_service.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.ads.google_ads.v4.proto.common import offline_user_data_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_offline__user__data__pb2 +from google.ads.google_ads.v4.proto.resources import offline_user_data_job_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_offline__user__data__job__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 +from google.api import client_pb2 as google_dot_api_dot_client__pb2 +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 +from google.longrunning import operations_pb2 as google_dot_longrunning_dot_operations__pb2 +from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 +from google.rpc import status_pb2 as google_dot_rpc_dot_status__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/services/offline_user_data_job_service.proto', + package='google.ads.googleads.v4.services', + syntax='proto3', + serialized_options=_b('\n$com.google.ads.googleads.v4.servicesB\036OfflineUserDataJobServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V4.Services\312\002 Google\\Ads\\GoogleAds\\V4\\Services\352\002$Google::Ads::GoogleAds::V4::Services'), + serialized_pb=_b('\nJgoogle/ads/googleads_v4/proto/services/offline_user_data_job_service.proto\x12 google.ads.googleads.v4.services\x1a.google.ads.googleads.v4.services.GetOfflineUserDataJobRequest\x1a\x35.google.ads.googleads.v4.resources.OfflineUserDataJob\"M\x82\xd3\xe4\x93\x02\x37\x12\x35/v4/{resource_name=customers/*/offlineUserDataJobs/*}\xda\x41\rresource_name\x12\xa1\x02\n\x1f\x41\x64\x64OfflineUserDataJobOperations\x12H.google.ads.googleads.v4.services.AddOfflineUserDataJobOperationsRequest\x1aI.google.ads.googleads.v4.services.AddOfflineUserDataJobOperationsResponse\"i\x82\xd3\xe4\x93\x02H\"C/v4/{resource_name=customers/*/offlineUserDataJobs/*}:addOperations:\x01*\xda\x41\x18resource_name,operations\x12\xfe\x01\n\x15RunOfflineUserDataJob\x12>.google.ads.googleads.v4.services.RunOfflineUserDataJobRequest\x1a\x1d.google.longrunning.Operation\"\x85\x01\x82\xd3\xe4\x93\x02>\"9/v4/{resource_name=customers/*/offlineUserDataJobs/*}:run:\x01*\xda\x41\rresource_name\xca\x41.\n\x15google.protobuf.Empty\x12\x15google.protobuf.Empty\x1a\x1b\xca\x41\x18googleads.googleapis.comB\x85\x02\n$com.google.ads.googleads.v4.servicesB\x1eOfflineUserDataJobServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V4.Services\xca\x02 Google\\Ads\\GoogleAds\\V4\\Services\xea\x02$Google::Ads::GoogleAds::V4::Servicesb\x06proto3') + , + dependencies=[google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_offline__user__data__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_offline__user__data__job__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_api_dot_client__pb2.DESCRIPTOR,google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_api_dot_resource__pb2.DESCRIPTOR,google_dot_longrunning_dot_operations__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_rpc_dot_status__pb2.DESCRIPTOR,]) + + + + +_CREATEOFFLINEUSERDATAJOBREQUEST = _descriptor.Descriptor( + name='CreateOfflineUserDataJobRequest', + full_name='google.ads.googleads.v4.services.CreateOfflineUserDataJobRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='customer_id', full_name='google.ads.googleads.v4.services.CreateOfflineUserDataJobRequest.customer_id', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='job', full_name='google.ads.googleads.v4.services.CreateOfflineUserDataJobRequest.job', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=453, + serialized_end=585, +) + + +_CREATEOFFLINEUSERDATAJOBRESPONSE = _descriptor.Descriptor( + name='CreateOfflineUserDataJobResponse', + full_name='google.ads.googleads.v4.services.CreateOfflineUserDataJobResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.services.CreateOfflineUserDataJobResponse.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=587, + serialized_end=644, +) + + +_GETOFFLINEUSERDATAJOBREQUEST = _descriptor.Descriptor( + name='GetOfflineUserDataJobRequest', + full_name='google.ads.googleads.v4.services.GetOfflineUserDataJobRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.services.GetOfflineUserDataJobRequest.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002\372A-\n+googleads.googleapis.com/OfflineUserDataJob'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=646, + serialized_end=752, +) + + +_RUNOFFLINEUSERDATAJOBREQUEST = _descriptor.Descriptor( + name='RunOfflineUserDataJobRequest', + full_name='google.ads.googleads.v4.services.RunOfflineUserDataJobRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.services.RunOfflineUserDataJobRequest.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002\372A-\n+googleads.googleapis.com/OfflineUserDataJob'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=754, + serialized_end=860, +) + + +_ADDOFFLINEUSERDATAJOBOPERATIONSREQUEST = _descriptor.Descriptor( + name='AddOfflineUserDataJobOperationsRequest', + full_name='google.ads.googleads.v4.services.AddOfflineUserDataJobOperationsRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.services.AddOfflineUserDataJobOperationsRequest.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002\372A-\n+googleads.googleapis.com/OfflineUserDataJob'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='enable_partial_failure', full_name='google.ads.googleads.v4.services.AddOfflineUserDataJobOperationsRequest.enable_partial_failure', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='operations', full_name='google.ads.googleads.v4.services.AddOfflineUserDataJobOperationsRequest.operations', index=2, + number=3, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=863, + serialized_end=1127, +) + + +_OFFLINEUSERDATAJOBOPERATION = _descriptor.Descriptor( + name='OfflineUserDataJobOperation', + full_name='google.ads.googleads.v4.services.OfflineUserDataJobOperation', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='create', full_name='google.ads.googleads.v4.services.OfflineUserDataJobOperation.create', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='remove', full_name='google.ads.googleads.v4.services.OfflineUserDataJobOperation.remove', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='remove_all', full_name='google.ads.googleads.v4.services.OfflineUserDataJobOperation.remove_all', index=2, + number=3, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name='operation', full_name='google.ads.googleads.v4.services.OfflineUserDataJobOperation.operation', + index=0, containing_type=None, fields=[]), + ], + serialized_start=1130, + serialized_end=1314, +) + + +_ADDOFFLINEUSERDATAJOBOPERATIONSRESPONSE = _descriptor.Descriptor( + name='AddOfflineUserDataJobOperationsResponse', + full_name='google.ads.googleads.v4.services.AddOfflineUserDataJobOperationsResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='partial_failure_error', full_name='google.ads.googleads.v4.services.AddOfflineUserDataJobOperationsResponse.partial_failure_error', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1316, + serialized_end=1408, +) + +_CREATEOFFLINEUSERDATAJOBREQUEST.fields_by_name['job'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_offline__user__data__job__pb2._OFFLINEUSERDATAJOB +_ADDOFFLINEUSERDATAJOBOPERATIONSREQUEST.fields_by_name['enable_partial_failure'].message_type = google_dot_protobuf_dot_wrappers__pb2._BOOLVALUE +_ADDOFFLINEUSERDATAJOBOPERATIONSREQUEST.fields_by_name['operations'].message_type = _OFFLINEUSERDATAJOBOPERATION +_OFFLINEUSERDATAJOBOPERATION.fields_by_name['create'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_offline__user__data__pb2._USERDATA +_OFFLINEUSERDATAJOBOPERATION.fields_by_name['remove'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_offline__user__data__pb2._USERDATA +_OFFLINEUSERDATAJOBOPERATION.oneofs_by_name['operation'].fields.append( + _OFFLINEUSERDATAJOBOPERATION.fields_by_name['create']) +_OFFLINEUSERDATAJOBOPERATION.fields_by_name['create'].containing_oneof = _OFFLINEUSERDATAJOBOPERATION.oneofs_by_name['operation'] +_OFFLINEUSERDATAJOBOPERATION.oneofs_by_name['operation'].fields.append( + _OFFLINEUSERDATAJOBOPERATION.fields_by_name['remove']) +_OFFLINEUSERDATAJOBOPERATION.fields_by_name['remove'].containing_oneof = _OFFLINEUSERDATAJOBOPERATION.oneofs_by_name['operation'] +_OFFLINEUSERDATAJOBOPERATION.oneofs_by_name['operation'].fields.append( + _OFFLINEUSERDATAJOBOPERATION.fields_by_name['remove_all']) +_OFFLINEUSERDATAJOBOPERATION.fields_by_name['remove_all'].containing_oneof = _OFFLINEUSERDATAJOBOPERATION.oneofs_by_name['operation'] +_ADDOFFLINEUSERDATAJOBOPERATIONSRESPONSE.fields_by_name['partial_failure_error'].message_type = google_dot_rpc_dot_status__pb2._STATUS +DESCRIPTOR.message_types_by_name['CreateOfflineUserDataJobRequest'] = _CREATEOFFLINEUSERDATAJOBREQUEST +DESCRIPTOR.message_types_by_name['CreateOfflineUserDataJobResponse'] = _CREATEOFFLINEUSERDATAJOBRESPONSE +DESCRIPTOR.message_types_by_name['GetOfflineUserDataJobRequest'] = _GETOFFLINEUSERDATAJOBREQUEST +DESCRIPTOR.message_types_by_name['RunOfflineUserDataJobRequest'] = _RUNOFFLINEUSERDATAJOBREQUEST +DESCRIPTOR.message_types_by_name['AddOfflineUserDataJobOperationsRequest'] = _ADDOFFLINEUSERDATAJOBOPERATIONSREQUEST +DESCRIPTOR.message_types_by_name['OfflineUserDataJobOperation'] = _OFFLINEUSERDATAJOBOPERATION +DESCRIPTOR.message_types_by_name['AddOfflineUserDataJobOperationsResponse'] = _ADDOFFLINEUSERDATAJOBOPERATIONSRESPONSE +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +CreateOfflineUserDataJobRequest = _reflection.GeneratedProtocolMessageType('CreateOfflineUserDataJobRequest', (_message.Message,), dict( + DESCRIPTOR = _CREATEOFFLINEUSERDATAJOBREQUEST, + __module__ = 'google.ads.googleads_v4.proto.services.offline_user_data_job_service_pb2' + , + __doc__ = """Request message for + [OfflineUserDataJobService.CreateOfflineUserDataJobRequest][] + + + Attributes: + customer_id: + Required. The ID of the customer for which to create an + offline user data job. + job: + Required. The offline user data job to be created. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.CreateOfflineUserDataJobRequest) + )) +_sym_db.RegisterMessage(CreateOfflineUserDataJobRequest) + +CreateOfflineUserDataJobResponse = _reflection.GeneratedProtocolMessageType('CreateOfflineUserDataJobResponse', (_message.Message,), dict( + DESCRIPTOR = _CREATEOFFLINEUSERDATAJOBRESPONSE, + __module__ = 'google.ads.googleads_v4.proto.services.offline_user_data_job_service_pb2' + , + __doc__ = """Response message for + [OfflineUserDataJobService.CreateOfflineUserDataJobResponse][] + + + Attributes: + resource_name: + The resource name of the OfflineUserDataJob. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.CreateOfflineUserDataJobResponse) + )) +_sym_db.RegisterMessage(CreateOfflineUserDataJobResponse) + +GetOfflineUserDataJobRequest = _reflection.GeneratedProtocolMessageType('GetOfflineUserDataJobRequest', (_message.Message,), dict( + DESCRIPTOR = _GETOFFLINEUSERDATAJOBREQUEST, + __module__ = 'google.ads.googleads_v4.proto.services.offline_user_data_job_service_pb2' + , + __doc__ = """Request message for + [OfflineUserDataJobService.GetOfflineUserDataJob][google.ads.googleads.v4.services.OfflineUserDataJobService.GetOfflineUserDataJob] + + + Attributes: + resource_name: + Required. The resource name of the OfflineUserDataJob to get. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.GetOfflineUserDataJobRequest) + )) +_sym_db.RegisterMessage(GetOfflineUserDataJobRequest) + +RunOfflineUserDataJobRequest = _reflection.GeneratedProtocolMessageType('RunOfflineUserDataJobRequest', (_message.Message,), dict( + DESCRIPTOR = _RUNOFFLINEUSERDATAJOBREQUEST, + __module__ = 'google.ads.googleads_v4.proto.services.offline_user_data_job_service_pb2' + , + __doc__ = """Request message for + [OfflineUserDataJobService.RunOfflineUserDataJob][google.ads.googleads.v4.services.OfflineUserDataJobService.RunOfflineUserDataJob] + + + Attributes: + resource_name: + Required. The resource name of the OfflineUserDataJob to run. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.RunOfflineUserDataJobRequest) + )) +_sym_db.RegisterMessage(RunOfflineUserDataJobRequest) + +AddOfflineUserDataJobOperationsRequest = _reflection.GeneratedProtocolMessageType('AddOfflineUserDataJobOperationsRequest', (_message.Message,), dict( + DESCRIPTOR = _ADDOFFLINEUSERDATAJOBOPERATIONSREQUEST, + __module__ = 'google.ads.googleads_v4.proto.services.offline_user_data_job_service_pb2' + , + __doc__ = """Request message for + [OfflineUserDataJobService.AddOfflineUserDataJobOperations][google.ads.googleads.v4.services.OfflineUserDataJobService.AddOfflineUserDataJobOperations] + + + Attributes: + resource_name: + Required. The resource name of the OfflineUserDataJob. + enable_partial_failure: + True to enable partial failure for the offline user data job. + operations: + Required. The list of operations to be done. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.AddOfflineUserDataJobOperationsRequest) + )) +_sym_db.RegisterMessage(AddOfflineUserDataJobOperationsRequest) + +OfflineUserDataJobOperation = _reflection.GeneratedProtocolMessageType('OfflineUserDataJobOperation', (_message.Message,), dict( + DESCRIPTOR = _OFFLINEUSERDATAJOBOPERATION, + __module__ = 'google.ads.googleads_v4.proto.services.offline_user_data_job_service_pb2' + , + __doc__ = """Operation to be made for the AddOfflineUserDataJobOperationsRequest. + + + Attributes: + operation: + Operation to be made for the + AddOfflineUserDataJobOperationsRequest. + create: + Add the provided data to the transaction. Data cannot be + retrieved after being uploaded. + remove: + Remove the provided data from the transaction. Data cannot be + retrieved after being uploaded. + remove_all: + Remove all previously provided data. This is only supported + for Customer Match. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.OfflineUserDataJobOperation) + )) +_sym_db.RegisterMessage(OfflineUserDataJobOperation) + +AddOfflineUserDataJobOperationsResponse = _reflection.GeneratedProtocolMessageType('AddOfflineUserDataJobOperationsResponse', (_message.Message,), dict( + DESCRIPTOR = _ADDOFFLINEUSERDATAJOBOPERATIONSRESPONSE, + __module__ = 'google.ads.googleads_v4.proto.services.offline_user_data_job_service_pb2' + , + __doc__ = """Response message for + [OfflineUserDataJobService.AddOfflineUserDataJobOperations][google.ads.googleads.v4.services.OfflineUserDataJobService.AddOfflineUserDataJobOperations] + + + Attributes: + partial_failure_error: + Errors that pertain to operation failures in the partial + failure mode. Returned only when partial\_failure = true and + all errors occur inside the operations. If any errors occur + outside the operations (e.g. auth errors), we return an RPC + level error. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.AddOfflineUserDataJobOperationsResponse) + )) +_sym_db.RegisterMessage(AddOfflineUserDataJobOperationsResponse) + + +DESCRIPTOR._options = None +_CREATEOFFLINEUSERDATAJOBREQUEST.fields_by_name['customer_id']._options = None +_CREATEOFFLINEUSERDATAJOBREQUEST.fields_by_name['job']._options = None +_GETOFFLINEUSERDATAJOBREQUEST.fields_by_name['resource_name']._options = None +_RUNOFFLINEUSERDATAJOBREQUEST.fields_by_name['resource_name']._options = None +_ADDOFFLINEUSERDATAJOBOPERATIONSREQUEST.fields_by_name['resource_name']._options = None +_ADDOFFLINEUSERDATAJOBOPERATIONSREQUEST.fields_by_name['operations']._options = None + +_OFFLINEUSERDATAJOBSERVICE = _descriptor.ServiceDescriptor( + name='OfflineUserDataJobService', + full_name='google.ads.googleads.v4.services.OfflineUserDataJobService', + file=DESCRIPTOR, + index=0, + serialized_options=_b('\312A\030googleads.googleapis.com'), + serialized_start=1411, + serialized_end=2491, + methods=[ + _descriptor.MethodDescriptor( + name='CreateOfflineUserDataJob', + full_name='google.ads.googleads.v4.services.OfflineUserDataJobService.CreateOfflineUserDataJob', + index=0, + containing_service=None, + input_type=_CREATEOFFLINEUSERDATAJOBREQUEST, + output_type=_CREATEOFFLINEUSERDATAJOBRESPONSE, + serialized_options=_b('\202\323\344\223\002=\"8/v4/customers/{customer_id=*}/offlineUserDataJobs:create:\001*\332A\017customer_id,job'), + ), + _descriptor.MethodDescriptor( + name='GetOfflineUserDataJob', + full_name='google.ads.googleads.v4.services.OfflineUserDataJobService.GetOfflineUserDataJob', + index=1, + containing_service=None, + input_type=_GETOFFLINEUSERDATAJOBREQUEST, + output_type=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_offline__user__data__job__pb2._OFFLINEUSERDATAJOB, + serialized_options=_b('\202\323\344\223\0027\0225/v4/{resource_name=customers/*/offlineUserDataJobs/*}\332A\rresource_name'), + ), + _descriptor.MethodDescriptor( + name='AddOfflineUserDataJobOperations', + full_name='google.ads.googleads.v4.services.OfflineUserDataJobService.AddOfflineUserDataJobOperations', + index=2, + containing_service=None, + input_type=_ADDOFFLINEUSERDATAJOBOPERATIONSREQUEST, + output_type=_ADDOFFLINEUSERDATAJOBOPERATIONSRESPONSE, + serialized_options=_b('\202\323\344\223\002H\"C/v4/{resource_name=customers/*/offlineUserDataJobs/*}:addOperations:\001*\332A\030resource_name,operations'), + ), + _descriptor.MethodDescriptor( + name='RunOfflineUserDataJob', + full_name='google.ads.googleads.v4.services.OfflineUserDataJobService.RunOfflineUserDataJob', + index=3, + containing_service=None, + input_type=_RUNOFFLINEUSERDATAJOBREQUEST, + output_type=google_dot_longrunning_dot_operations__pb2._OPERATION, + serialized_options=_b('\202\323\344\223\002>\"9/v4/{resource_name=customers/*/offlineUserDataJobs/*}:run:\001*\332A\rresource_name\312A.\n\025google.protobuf.Empty\022\025google.protobuf.Empty'), + ), +]) +_sym_db.RegisterServiceDescriptor(_OFFLINEUSERDATAJOBSERVICE) + +DESCRIPTOR.services_by_name['OfflineUserDataJobService'] = _OFFLINEUSERDATAJOBSERVICE + +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v4/proto/services/offline_user_data_job_service_pb2_grpc.py b/google/ads/google_ads/v4/proto/services/offline_user_data_job_service_pb2_grpc.py new file mode 100644 index 000000000..05e763510 --- /dev/null +++ b/google/ads/google_ads/v4/proto/services/offline_user_data_job_service_pb2_grpc.py @@ -0,0 +1,106 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +import grpc + +from google.ads.google_ads.v4.proto.resources import offline_user_data_job_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_offline__user__data__job__pb2 +from google.ads.google_ads.v4.proto.services import offline_user_data_job_service_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_offline__user__data__job__service__pb2 +from google.longrunning import operations_pb2 as google_dot_longrunning_dot_operations__pb2 + + +class OfflineUserDataJobServiceStub(object): + """Proto file describing the OfflineUserDataJobService. + + Service to manage offline user data jobs. + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.CreateOfflineUserDataJob = channel.unary_unary( + '/google.ads.googleads.v4.services.OfflineUserDataJobService/CreateOfflineUserDataJob', + request_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_offline__user__data__job__service__pb2.CreateOfflineUserDataJobRequest.SerializeToString, + response_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_offline__user__data__job__service__pb2.CreateOfflineUserDataJobResponse.FromString, + ) + self.GetOfflineUserDataJob = channel.unary_unary( + '/google.ads.googleads.v4.services.OfflineUserDataJobService/GetOfflineUserDataJob', + request_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_offline__user__data__job__service__pb2.GetOfflineUserDataJobRequest.SerializeToString, + response_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_offline__user__data__job__pb2.OfflineUserDataJob.FromString, + ) + self.AddOfflineUserDataJobOperations = channel.unary_unary( + '/google.ads.googleads.v4.services.OfflineUserDataJobService/AddOfflineUserDataJobOperations', + request_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_offline__user__data__job__service__pb2.AddOfflineUserDataJobOperationsRequest.SerializeToString, + response_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_offline__user__data__job__service__pb2.AddOfflineUserDataJobOperationsResponse.FromString, + ) + self.RunOfflineUserDataJob = channel.unary_unary( + '/google.ads.googleads.v4.services.OfflineUserDataJobService/RunOfflineUserDataJob', + request_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_offline__user__data__job__service__pb2.RunOfflineUserDataJobRequest.SerializeToString, + response_deserializer=google_dot_longrunning_dot_operations__pb2.Operation.FromString, + ) + + +class OfflineUserDataJobServiceServicer(object): + """Proto file describing the OfflineUserDataJobService. + + Service to manage offline user data jobs. + """ + + def CreateOfflineUserDataJob(self, request, context): + """Creates an offline user data job. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetOfflineUserDataJob(self, request, context): + """Returns the offline user data job. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def AddOfflineUserDataJobOperations(self, request, context): + """Adds operations to the offline user data job. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def RunOfflineUserDataJob(self, request, context): + """Runs the offline user data job. + + When finished, the long running operation will contain the processing + result or failure information, if any. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_OfflineUserDataJobServiceServicer_to_server(servicer, server): + rpc_method_handlers = { + 'CreateOfflineUserDataJob': grpc.unary_unary_rpc_method_handler( + servicer.CreateOfflineUserDataJob, + request_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_offline__user__data__job__service__pb2.CreateOfflineUserDataJobRequest.FromString, + response_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_offline__user__data__job__service__pb2.CreateOfflineUserDataJobResponse.SerializeToString, + ), + 'GetOfflineUserDataJob': grpc.unary_unary_rpc_method_handler( + servicer.GetOfflineUserDataJob, + request_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_offline__user__data__job__service__pb2.GetOfflineUserDataJobRequest.FromString, + response_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_offline__user__data__job__pb2.OfflineUserDataJob.SerializeToString, + ), + 'AddOfflineUserDataJobOperations': grpc.unary_unary_rpc_method_handler( + servicer.AddOfflineUserDataJobOperations, + request_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_offline__user__data__job__service__pb2.AddOfflineUserDataJobOperationsRequest.FromString, + response_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_offline__user__data__job__service__pb2.AddOfflineUserDataJobOperationsResponse.SerializeToString, + ), + 'RunOfflineUserDataJob': grpc.unary_unary_rpc_method_handler( + servicer.RunOfflineUserDataJob, + request_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_offline__user__data__job__service__pb2.RunOfflineUserDataJobRequest.FromString, + response_serializer=google_dot_longrunning_dot_operations__pb2.Operation.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'google.ads.googleads.v4.services.OfflineUserDataJobService', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) diff --git a/google/ads/google_ads/v4/proto/services/operating_system_version_constant_service_pb2.py b/google/ads/google_ads/v4/proto/services/operating_system_version_constant_service_pb2.py new file mode 100644 index 000000000..0ae4db0c1 --- /dev/null +++ b/google/ads/google_ads/v4/proto/services/operating_system_version_constant_service_pb2.py @@ -0,0 +1,111 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/services/operating_system_version_constant_service.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.ads.google_ads.v4.proto.resources import operating_system_version_constant_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_operating__system__version__constant__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 +from google.api import client_pb2 as google_dot_api_dot_client__pb2 +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/services/operating_system_version_constant_service.proto', + package='google.ads.googleads.v4.services', + syntax='proto3', + serialized_options=_b('\n$com.google.ads.googleads.v4.servicesB*OperatingSystemVersionConstantServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V4.Services\312\002 Google\\Ads\\GoogleAds\\V4\\Services\352\002$Google::Ads::GoogleAds::V4::Services'), + serialized_pb=_b('\nVgoogle/ads/googleads_v4/proto/services/operating_system_version_constant_service.proto\x12 google.ads.googleads.v4.services\x1aOgoogle/ads/googleads_v4/proto/resources/operating_system_version_constant.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\x82\x01\n(GetOperatingSystemVersionConstantRequest\x12V\n\rresource_name\x18\x01 \x01(\tB?\xe0\x41\x02\xfa\x41\x39\n7googleads.googleapis.com/OperatingSystemVersionConstant2\xc8\x02\n%OperatingSystemVersionConstantService\x12\x81\x02\n!GetOperatingSystemVersionConstant\x12J.google.ads.googleads.v4.services.GetOperatingSystemVersionConstantRequest\x1a\x41.google.ads.googleads.v4.resources.OperatingSystemVersionConstant\"M\x82\xd3\xe4\x93\x02\x37\x12\x35/v4/{resource_name=operatingSystemVersionConstants/*}\xda\x41\rresource_name\x1a\x1b\xca\x41\x18googleads.googleapis.comB\x91\x02\n$com.google.ads.googleads.v4.servicesB*OperatingSystemVersionConstantServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V4.Services\xca\x02 Google\\Ads\\GoogleAds\\V4\\Services\xea\x02$Google::Ads::GoogleAds::V4::Servicesb\x06proto3') + , + dependencies=[google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_operating__system__version__constant__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_api_dot_client__pb2.DESCRIPTOR,google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_api_dot_resource__pb2.DESCRIPTOR,]) + + + + +_GETOPERATINGSYSTEMVERSIONCONSTANTREQUEST = _descriptor.Descriptor( + name='GetOperatingSystemVersionConstantRequest', + full_name='google.ads.googleads.v4.services.GetOperatingSystemVersionConstantRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.services.GetOperatingSystemVersionConstantRequest.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002\372A9\n7googleads.googleapis.com/OperatingSystemVersionConstant'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=321, + serialized_end=451, +) + +DESCRIPTOR.message_types_by_name['GetOperatingSystemVersionConstantRequest'] = _GETOPERATINGSYSTEMVERSIONCONSTANTREQUEST +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +GetOperatingSystemVersionConstantRequest = _reflection.GeneratedProtocolMessageType('GetOperatingSystemVersionConstantRequest', (_message.Message,), dict( + DESCRIPTOR = _GETOPERATINGSYSTEMVERSIONCONSTANTREQUEST, + __module__ = 'google.ads.googleads_v4.proto.services.operating_system_version_constant_service_pb2' + , + __doc__ = """Request message for + [OperatingSystemVersionConstantService.GetOperatingSystemVersionConstant][google.ads.googleads.v4.services.OperatingSystemVersionConstantService.GetOperatingSystemVersionConstant]. + + + Attributes: + resource_name: + Required. Resource name of the OS version to fetch. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.GetOperatingSystemVersionConstantRequest) + )) +_sym_db.RegisterMessage(GetOperatingSystemVersionConstantRequest) + + +DESCRIPTOR._options = None +_GETOPERATINGSYSTEMVERSIONCONSTANTREQUEST.fields_by_name['resource_name']._options = None + +_OPERATINGSYSTEMVERSIONCONSTANTSERVICE = _descriptor.ServiceDescriptor( + name='OperatingSystemVersionConstantService', + full_name='google.ads.googleads.v4.services.OperatingSystemVersionConstantService', + file=DESCRIPTOR, + index=0, + serialized_options=_b('\312A\030googleads.googleapis.com'), + serialized_start=454, + serialized_end=782, + methods=[ + _descriptor.MethodDescriptor( + name='GetOperatingSystemVersionConstant', + full_name='google.ads.googleads.v4.services.OperatingSystemVersionConstantService.GetOperatingSystemVersionConstant', + index=0, + containing_service=None, + input_type=_GETOPERATINGSYSTEMVERSIONCONSTANTREQUEST, + output_type=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_operating__system__version__constant__pb2._OPERATINGSYSTEMVERSIONCONSTANT, + serialized_options=_b('\202\323\344\223\0027\0225/v4/{resource_name=operatingSystemVersionConstants/*}\332A\rresource_name'), + ), +]) +_sym_db.RegisterServiceDescriptor(_OPERATINGSYSTEMVERSIONCONSTANTSERVICE) + +DESCRIPTOR.services_by_name['OperatingSystemVersionConstantService'] = _OPERATINGSYSTEMVERSIONCONSTANTSERVICE + +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/services/operating_system_version_constant_service_pb2_grpc.py b/google/ads/google_ads/v4/proto/services/operating_system_version_constant_service_pb2_grpc.py similarity index 76% rename from google/ads/google_ads/v1/proto/services/operating_system_version_constant_service_pb2_grpc.py rename to google/ads/google_ads/v4/proto/services/operating_system_version_constant_service_pb2_grpc.py index 058418db0..9676b11b9 100644 --- a/google/ads/google_ads/v1/proto/services/operating_system_version_constant_service_pb2_grpc.py +++ b/google/ads/google_ads/v4/proto/services/operating_system_version_constant_service_pb2_grpc.py @@ -1,8 +1,8 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc -from google.ads.google_ads.v1.proto.resources import operating_system_version_constant_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_operating__system__version__constant__pb2 -from google.ads.google_ads.v1.proto.services import operating_system_version_constant_service_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_operating__system__version__constant__service__pb2 +from google.ads.google_ads.v4.proto.resources import operating_system_version_constant_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_operating__system__version__constant__pb2 +from google.ads.google_ads.v4.proto.services import operating_system_version_constant_service_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_operating__system__version__constant__service__pb2 class OperatingSystemVersionConstantServiceStub(object): @@ -18,9 +18,9 @@ def __init__(self, channel): channel: A grpc.Channel. """ self.GetOperatingSystemVersionConstant = channel.unary_unary( - '/google.ads.googleads.v1.services.OperatingSystemVersionConstantService/GetOperatingSystemVersionConstant', - request_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_operating__system__version__constant__service__pb2.GetOperatingSystemVersionConstantRequest.SerializeToString, - response_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_operating__system__version__constant__pb2.OperatingSystemVersionConstant.FromString, + '/google.ads.googleads.v4.services.OperatingSystemVersionConstantService/GetOperatingSystemVersionConstant', + request_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_operating__system__version__constant__service__pb2.GetOperatingSystemVersionConstantRequest.SerializeToString, + response_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_operating__system__version__constant__pb2.OperatingSystemVersionConstant.FromString, ) @@ -42,10 +42,10 @@ def add_OperatingSystemVersionConstantServiceServicer_to_server(servicer, server rpc_method_handlers = { 'GetOperatingSystemVersionConstant': grpc.unary_unary_rpc_method_handler( servicer.GetOperatingSystemVersionConstant, - request_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_operating__system__version__constant__service__pb2.GetOperatingSystemVersionConstantRequest.FromString, - response_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_operating__system__version__constant__pb2.OperatingSystemVersionConstant.SerializeToString, + request_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_operating__system__version__constant__service__pb2.GetOperatingSystemVersionConstantRequest.FromString, + response_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_operating__system__version__constant__pb2.OperatingSystemVersionConstant.SerializeToString, ), } generic_handler = grpc.method_handlers_generic_handler( - 'google.ads.googleads.v1.services.OperatingSystemVersionConstantService', rpc_method_handlers) + 'google.ads.googleads.v4.services.OperatingSystemVersionConstantService', rpc_method_handlers) server.add_generic_rpc_handlers((generic_handler,)) diff --git a/google/ads/google_ads/v4/proto/services/paid_organic_search_term_view_service_pb2.py b/google/ads/google_ads/v4/proto/services/paid_organic_search_term_view_service_pb2.py new file mode 100644 index 000000000..886c86829 --- /dev/null +++ b/google/ads/google_ads/v4/proto/services/paid_organic_search_term_view_service_pb2.py @@ -0,0 +1,112 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/services/paid_organic_search_term_view_service.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.ads.google_ads.v4.proto.resources import paid_organic_search_term_view_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_paid__organic__search__term__view__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 +from google.api import client_pb2 as google_dot_api_dot_client__pb2 +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/services/paid_organic_search_term_view_service.proto', + package='google.ads.googleads.v4.services', + syntax='proto3', + serialized_options=_b('\n$com.google.ads.googleads.v4.servicesB%PaidOrganicSearchTermViewServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V4.Services\312\002 Google\\Ads\\GoogleAds\\V4\\Services\352\002$Google::Ads::GoogleAds::V4::Services'), + serialized_pb=_b('\nRgoogle/ads/googleads_v4/proto/services/paid_organic_search_term_view_service.proto\x12 google.ads.googleads.v4.services\x1aKgoogle/ads/googleads_v4/proto/resources/paid_organic_search_term_view.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"x\n#GetPaidOrganicSearchTermViewRequest\x12Q\n\rresource_name\x18\x01 \x01(\tB:\xe0\x41\x02\xfa\x41\x34\n2googleads.googleapis.com/PaidOrganicSearchTermView2\xbb\x02\n PaidOrganicSearchTermViewService\x12\xf9\x01\n\x1cGetPaidOrganicSearchTermView\x12\x45.google.ads.googleads.v4.services.GetPaidOrganicSearchTermViewRequest\x1a<.google.ads.googleads.v4.resources.PaidOrganicSearchTermView\"T\x82\xd3\xe4\x93\x02>\x12\022.google.ads.googleads.v4.services.GetParentalStatusViewRequest\x1a\x35.google.ads.googleads.v4.resources.ParentalStatusView\"M\x82\xd3\xe4\x93\x02\x37\x12\x35/v4/{resource_name=customers/*/parentalStatusViews/*}\xda\x41\rresource_name\x1a\x1b\xca\x41\x18googleads.googleapis.comB\x85\x02\n$com.google.ads.googleads.v4.servicesB\x1eParentalStatusViewServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V4.Services\xca\x02 Google\\Ads\\GoogleAds\\V4\\Services\xea\x02$Google::Ads::GoogleAds::V4::Servicesb\x06proto3') + , + dependencies=[google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_parental__status__view__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_api_dot_client__pb2.DESCRIPTOR,google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_api_dot_resource__pb2.DESCRIPTOR,]) + + + + +_GETPARENTALSTATUSVIEWREQUEST = _descriptor.Descriptor( + name='GetParentalStatusViewRequest', + full_name='google.ads.googleads.v4.services.GetParentalStatusViewRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.services.GetParentalStatusViewRequest.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002\372A-\n+googleads.googleapis.com/ParentalStatusView'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=294, + serialized_end=400, +) + +DESCRIPTOR.message_types_by_name['GetParentalStatusViewRequest'] = _GETPARENTALSTATUSVIEWREQUEST +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +GetParentalStatusViewRequest = _reflection.GeneratedProtocolMessageType('GetParentalStatusViewRequest', (_message.Message,), dict( + DESCRIPTOR = _GETPARENTALSTATUSVIEWREQUEST, + __module__ = 'google.ads.googleads_v4.proto.services.parental_status_view_service_pb2' + , + __doc__ = """Request message for + [ParentalStatusViewService.GetParentalStatusView][google.ads.googleads.v4.services.ParentalStatusViewService.GetParentalStatusView]. + + + Attributes: + resource_name: + Required. The resource name of the parental status view to + fetch. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.GetParentalStatusViewRequest) + )) +_sym_db.RegisterMessage(GetParentalStatusViewRequest) + + +DESCRIPTOR._options = None +_GETPARENTALSTATUSVIEWREQUEST.fields_by_name['resource_name']._options = None + +_PARENTALSTATUSVIEWSERVICE = _descriptor.ServiceDescriptor( + name='ParentalStatusViewService', + full_name='google.ads.googleads.v4.services.ParentalStatusViewService', + file=DESCRIPTOR, + index=0, + serialized_options=_b('\312A\030googleads.googleapis.com'), + serialized_start=403, + serialized_end=683, + methods=[ + _descriptor.MethodDescriptor( + name='GetParentalStatusView', + full_name='google.ads.googleads.v4.services.ParentalStatusViewService.GetParentalStatusView', + index=0, + containing_service=None, + input_type=_GETPARENTALSTATUSVIEWREQUEST, + output_type=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_parental__status__view__pb2._PARENTALSTATUSVIEW, + serialized_options=_b('\202\323\344\223\0027\0225/v4/{resource_name=customers/*/parentalStatusViews/*}\332A\rresource_name'), + ), +]) +_sym_db.RegisterServiceDescriptor(_PARENTALSTATUSVIEWSERVICE) + +DESCRIPTOR.services_by_name['ParentalStatusViewService'] = _PARENTALSTATUSVIEWSERVICE + +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v4/proto/services/parental_status_view_service_pb2_grpc.py b/google/ads/google_ads/v4/proto/services/parental_status_view_service_pb2_grpc.py new file mode 100644 index 000000000..5231da534 --- /dev/null +++ b/google/ads/google_ads/v4/proto/services/parental_status_view_service_pb2_grpc.py @@ -0,0 +1,51 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +import grpc + +from google.ads.google_ads.v4.proto.resources import parental_status_view_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_parental__status__view__pb2 +from google.ads.google_ads.v4.proto.services import parental_status_view_service_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_parental__status__view__service__pb2 + + +class ParentalStatusViewServiceStub(object): + """Proto file describing the Parental Status View service. + + Service to manage parental status views. + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.GetParentalStatusView = channel.unary_unary( + '/google.ads.googleads.v4.services.ParentalStatusViewService/GetParentalStatusView', + request_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_parental__status__view__service__pb2.GetParentalStatusViewRequest.SerializeToString, + response_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_parental__status__view__pb2.ParentalStatusView.FromString, + ) + + +class ParentalStatusViewServiceServicer(object): + """Proto file describing the Parental Status View service. + + Service to manage parental status views. + """ + + def GetParentalStatusView(self, request, context): + """Returns the requested parental status view in full detail. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_ParentalStatusViewServiceServicer_to_server(servicer, server): + rpc_method_handlers = { + 'GetParentalStatusView': grpc.unary_unary_rpc_method_handler( + servicer.GetParentalStatusView, + request_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_parental__status__view__service__pb2.GetParentalStatusViewRequest.FromString, + response_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_parental__status__view__pb2.ParentalStatusView.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'google.ads.googleads.v4.services.ParentalStatusViewService', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) diff --git a/google/ads/google_ads/v4/proto/services/payments_account_service_pb2.py b/google/ads/google_ads/v4/proto/services/payments_account_service_pb2.py new file mode 100644 index 000000000..46c6e8767 --- /dev/null +++ b/google/ads/google_ads/v4/proto/services/payments_account_service_pb2.py @@ -0,0 +1,159 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/services/payments_account_service.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.ads.google_ads.v4.proto.resources import payments_account_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_payments__account__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 +from google.api import client_pb2 as google_dot_api_dot_client__pb2 +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/services/payments_account_service.proto', + package='google.ads.googleads.v4.services', + syntax='proto3', + serialized_options=_b('\n$com.google.ads.googleads.v4.servicesB\033PaymentsAccountServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V4.Services\312\002 Google\\Ads\\GoogleAds\\V4\\Services\352\002$Google::Ads::GoogleAds::V4::Services'), + serialized_pb=_b('\nEgoogle/ads/googleads_v4/proto/services/payments_account_service.proto\x12 google.ads.googleads.v4.services\x1a>google/ads/googleads_v4/proto/resources/payments_account.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\"7\n\x1bListPaymentsAccountsRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\"m\n\x1cListPaymentsAccountsResponse\x12M\n\x11payments_accounts\x18\x01 \x03(\x0b\x32\x32.google.ads.googleads.v4.resources.PaymentsAccount2\x93\x02\n\x16PaymentsAccountService\x12\xdb\x01\n\x14ListPaymentsAccounts\x12=.google.ads.googleads.v4.services.ListPaymentsAccountsRequest\x1a>.google.ads.googleads.v4.services.ListPaymentsAccountsResponse\"D\x82\xd3\xe4\x93\x02\x30\x12./v4/customers/{customer_id=*}/paymentsAccounts\xda\x41\x0b\x63ustomer_id\x1a\x1b\xca\x41\x18googleads.googleapis.comB\x82\x02\n$com.google.ads.googleads.v4.servicesB\x1bPaymentsAccountServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V4.Services\xca\x02 Google\\Ads\\GoogleAds\\V4\\Services\xea\x02$Google::Ads::GoogleAds::V4::Servicesb\x06proto3') + , + dependencies=[google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_payments__account__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_api_dot_client__pb2.DESCRIPTOR,google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,]) + + + + +_LISTPAYMENTSACCOUNTSREQUEST = _descriptor.Descriptor( + name='ListPaymentsAccountsRequest', + full_name='google.ads.googleads.v4.services.ListPaymentsAccountsRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='customer_id', full_name='google.ads.googleads.v4.services.ListPaymentsAccountsRequest.customer_id', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=259, + serialized_end=314, +) + + +_LISTPAYMENTSACCOUNTSRESPONSE = _descriptor.Descriptor( + name='ListPaymentsAccountsResponse', + full_name='google.ads.googleads.v4.services.ListPaymentsAccountsResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='payments_accounts', full_name='google.ads.googleads.v4.services.ListPaymentsAccountsResponse.payments_accounts', index=0, + number=1, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=316, + serialized_end=425, +) + +_LISTPAYMENTSACCOUNTSRESPONSE.fields_by_name['payments_accounts'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_payments__account__pb2._PAYMENTSACCOUNT +DESCRIPTOR.message_types_by_name['ListPaymentsAccountsRequest'] = _LISTPAYMENTSACCOUNTSREQUEST +DESCRIPTOR.message_types_by_name['ListPaymentsAccountsResponse'] = _LISTPAYMENTSACCOUNTSRESPONSE +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +ListPaymentsAccountsRequest = _reflection.GeneratedProtocolMessageType('ListPaymentsAccountsRequest', (_message.Message,), dict( + DESCRIPTOR = _LISTPAYMENTSACCOUNTSREQUEST, + __module__ = 'google.ads.googleads_v4.proto.services.payments_account_service_pb2' + , + __doc__ = """Request message for fetching all accessible payments accounts. + + + Attributes: + customer_id: + Required. The ID of the customer to apply the PaymentsAccount + list operation to. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.ListPaymentsAccountsRequest) + )) +_sym_db.RegisterMessage(ListPaymentsAccountsRequest) + +ListPaymentsAccountsResponse = _reflection.GeneratedProtocolMessageType('ListPaymentsAccountsResponse', (_message.Message,), dict( + DESCRIPTOR = _LISTPAYMENTSACCOUNTSRESPONSE, + __module__ = 'google.ads.googleads_v4.proto.services.payments_account_service_pb2' + , + __doc__ = """Response message for + [PaymentsAccountService.ListPaymentsAccounts][google.ads.googleads.v4.services.PaymentsAccountService.ListPaymentsAccounts]. + + + Attributes: + payments_accounts: + The list of accessible payments accounts. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.ListPaymentsAccountsResponse) + )) +_sym_db.RegisterMessage(ListPaymentsAccountsResponse) + + +DESCRIPTOR._options = None +_LISTPAYMENTSACCOUNTSREQUEST.fields_by_name['customer_id']._options = None + +_PAYMENTSACCOUNTSERVICE = _descriptor.ServiceDescriptor( + name='PaymentsAccountService', + full_name='google.ads.googleads.v4.services.PaymentsAccountService', + file=DESCRIPTOR, + index=0, + serialized_options=_b('\312A\030googleads.googleapis.com'), + serialized_start=428, + serialized_end=703, + methods=[ + _descriptor.MethodDescriptor( + name='ListPaymentsAccounts', + full_name='google.ads.googleads.v4.services.PaymentsAccountService.ListPaymentsAccounts', + index=0, + containing_service=None, + input_type=_LISTPAYMENTSACCOUNTSREQUEST, + output_type=_LISTPAYMENTSACCOUNTSRESPONSE, + serialized_options=_b('\202\323\344\223\0020\022./v4/customers/{customer_id=*}/paymentsAccounts\332A\013customer_id'), + ), +]) +_sym_db.RegisterServiceDescriptor(_PAYMENTSACCOUNTSERVICE) + +DESCRIPTOR.services_by_name['PaymentsAccountService'] = _PAYMENTSACCOUNTSERVICE + +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v4/proto/services/payments_account_service_pb2_grpc.py b/google/ads/google_ads/v4/proto/services/payments_account_service_pb2_grpc.py new file mode 100644 index 000000000..e391a92ef --- /dev/null +++ b/google/ads/google_ads/v4/proto/services/payments_account_service_pb2_grpc.py @@ -0,0 +1,54 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +import grpc + +from google.ads.google_ads.v4.proto.services import payments_account_service_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_payments__account__service__pb2 + + +class PaymentsAccountServiceStub(object): + """Proto file describing the payments account service. + + Service to provide payments accounts that can be used to set up consolidated + billing. + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.ListPaymentsAccounts = channel.unary_unary( + '/google.ads.googleads.v4.services.PaymentsAccountService/ListPaymentsAccounts', + request_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_payments__account__service__pb2.ListPaymentsAccountsRequest.SerializeToString, + response_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_payments__account__service__pb2.ListPaymentsAccountsResponse.FromString, + ) + + +class PaymentsAccountServiceServicer(object): + """Proto file describing the payments account service. + + Service to provide payments accounts that can be used to set up consolidated + billing. + """ + + def ListPaymentsAccounts(self, request, context): + """Returns all payments accounts associated with all managers + between the login customer ID and specified serving customer in the + hierarchy, inclusive. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_PaymentsAccountServiceServicer_to_server(servicer, server): + rpc_method_handlers = { + 'ListPaymentsAccounts': grpc.unary_unary_rpc_method_handler( + servicer.ListPaymentsAccounts, + request_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_payments__account__service__pb2.ListPaymentsAccountsRequest.FromString, + response_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_payments__account__service__pb2.ListPaymentsAccountsResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'google.ads.googleads.v4.services.PaymentsAccountService', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) diff --git a/google/ads/google_ads/v4/proto/services/product_bidding_category_constant_service_pb2.py b/google/ads/google_ads/v4/proto/services/product_bidding_category_constant_service_pb2.py new file mode 100644 index 000000000..11107d192 --- /dev/null +++ b/google/ads/google_ads/v4/proto/services/product_bidding_category_constant_service_pb2.py @@ -0,0 +1,112 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/services/product_bidding_category_constant_service.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.ads.google_ads.v4.proto.resources import product_bidding_category_constant_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_product__bidding__category__constant__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 +from google.api import client_pb2 as google_dot_api_dot_client__pb2 +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/services/product_bidding_category_constant_service.proto', + package='google.ads.googleads.v4.services', + syntax='proto3', + serialized_options=_b('\n$com.google.ads.googleads.v4.servicesB*ProductBiddingCategoryConstantServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V4.Services\312\002 Google\\Ads\\GoogleAds\\V4\\Services\352\002$Google::Ads::GoogleAds::V4::Services'), + serialized_pb=_b('\nVgoogle/ads/googleads_v4/proto/services/product_bidding_category_constant_service.proto\x12 google.ads.googleads.v4.services\x1aOgoogle/ads/googleads_v4/proto/resources/product_bidding_category_constant.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\x82\x01\n(GetProductBiddingCategoryConstantRequest\x12V\n\rresource_name\x18\x01 \x01(\tB?\xe0\x41\x02\xfa\x41\x39\n7googleads.googleapis.com/ProductBiddingCategoryConstant2\xc8\x02\n%ProductBiddingCategoryConstantService\x12\x81\x02\n!GetProductBiddingCategoryConstant\x12J.google.ads.googleads.v4.services.GetProductBiddingCategoryConstantRequest\x1a\x41.google.ads.googleads.v4.resources.ProductBiddingCategoryConstant\"M\x82\xd3\xe4\x93\x02\x37\x12\x35/v4/{resource_name=productBiddingCategoryConstants/*}\xda\x41\rresource_name\x1a\x1b\xca\x41\x18googleads.googleapis.comB\x91\x02\n$com.google.ads.googleads.v4.servicesB*ProductBiddingCategoryConstantServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V4.Services\xca\x02 Google\\Ads\\GoogleAds\\V4\\Services\xea\x02$Google::Ads::GoogleAds::V4::Servicesb\x06proto3') + , + dependencies=[google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_product__bidding__category__constant__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_api_dot_client__pb2.DESCRIPTOR,google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_api_dot_resource__pb2.DESCRIPTOR,]) + + + + +_GETPRODUCTBIDDINGCATEGORYCONSTANTREQUEST = _descriptor.Descriptor( + name='GetProductBiddingCategoryConstantRequest', + full_name='google.ads.googleads.v4.services.GetProductBiddingCategoryConstantRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.services.GetProductBiddingCategoryConstantRequest.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002\372A9\n7googleads.googleapis.com/ProductBiddingCategoryConstant'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=321, + serialized_end=451, +) + +DESCRIPTOR.message_types_by_name['GetProductBiddingCategoryConstantRequest'] = _GETPRODUCTBIDDINGCATEGORYCONSTANTREQUEST +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +GetProductBiddingCategoryConstantRequest = _reflection.GeneratedProtocolMessageType('GetProductBiddingCategoryConstantRequest', (_message.Message,), dict( + DESCRIPTOR = _GETPRODUCTBIDDINGCATEGORYCONSTANTREQUEST, + __module__ = 'google.ads.googleads_v4.proto.services.product_bidding_category_constant_service_pb2' + , + __doc__ = """Request message for + [ProductBiddingCategoryService.GetProductBiddingCategory][]. + + + Attributes: + resource_name: + Required. Resource name of the Product Bidding Category to + fetch. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.GetProductBiddingCategoryConstantRequest) + )) +_sym_db.RegisterMessage(GetProductBiddingCategoryConstantRequest) + + +DESCRIPTOR._options = None +_GETPRODUCTBIDDINGCATEGORYCONSTANTREQUEST.fields_by_name['resource_name']._options = None + +_PRODUCTBIDDINGCATEGORYCONSTANTSERVICE = _descriptor.ServiceDescriptor( + name='ProductBiddingCategoryConstantService', + full_name='google.ads.googleads.v4.services.ProductBiddingCategoryConstantService', + file=DESCRIPTOR, + index=0, + serialized_options=_b('\312A\030googleads.googleapis.com'), + serialized_start=454, + serialized_end=782, + methods=[ + _descriptor.MethodDescriptor( + name='GetProductBiddingCategoryConstant', + full_name='google.ads.googleads.v4.services.ProductBiddingCategoryConstantService.GetProductBiddingCategoryConstant', + index=0, + containing_service=None, + input_type=_GETPRODUCTBIDDINGCATEGORYCONSTANTREQUEST, + output_type=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_product__bidding__category__constant__pb2._PRODUCTBIDDINGCATEGORYCONSTANT, + serialized_options=_b('\202\323\344\223\0027\0225/v4/{resource_name=productBiddingCategoryConstants/*}\332A\rresource_name'), + ), +]) +_sym_db.RegisterServiceDescriptor(_PRODUCTBIDDINGCATEGORYCONSTANTSERVICE) + +DESCRIPTOR.services_by_name['ProductBiddingCategoryConstantService'] = _PRODUCTBIDDINGCATEGORYCONSTANTSERVICE + +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/services/product_bidding_category_constant_service_pb2_grpc.py b/google/ads/google_ads/v4/proto/services/product_bidding_category_constant_service_pb2_grpc.py similarity index 76% rename from google/ads/google_ads/v1/proto/services/product_bidding_category_constant_service_pb2_grpc.py rename to google/ads/google_ads/v4/proto/services/product_bidding_category_constant_service_pb2_grpc.py index de86d96ab..eebb81cf2 100644 --- a/google/ads/google_ads/v1/proto/services/product_bidding_category_constant_service_pb2_grpc.py +++ b/google/ads/google_ads/v4/proto/services/product_bidding_category_constant_service_pb2_grpc.py @@ -1,8 +1,8 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc -from google.ads.google_ads.v1.proto.resources import product_bidding_category_constant_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_product__bidding__category__constant__pb2 -from google.ads.google_ads.v1.proto.services import product_bidding_category_constant_service_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_product__bidding__category__constant__service__pb2 +from google.ads.google_ads.v4.proto.resources import product_bidding_category_constant_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_product__bidding__category__constant__pb2 +from google.ads.google_ads.v4.proto.services import product_bidding_category_constant_service_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_product__bidding__category__constant__service__pb2 class ProductBiddingCategoryConstantServiceStub(object): @@ -18,9 +18,9 @@ def __init__(self, channel): channel: A grpc.Channel. """ self.GetProductBiddingCategoryConstant = channel.unary_unary( - '/google.ads.googleads.v1.services.ProductBiddingCategoryConstantService/GetProductBiddingCategoryConstant', - request_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_product__bidding__category__constant__service__pb2.GetProductBiddingCategoryConstantRequest.SerializeToString, - response_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_product__bidding__category__constant__pb2.ProductBiddingCategoryConstant.FromString, + '/google.ads.googleads.v4.services.ProductBiddingCategoryConstantService/GetProductBiddingCategoryConstant', + request_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_product__bidding__category__constant__service__pb2.GetProductBiddingCategoryConstantRequest.SerializeToString, + response_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_product__bidding__category__constant__pb2.ProductBiddingCategoryConstant.FromString, ) @@ -42,10 +42,10 @@ def add_ProductBiddingCategoryConstantServiceServicer_to_server(servicer, server rpc_method_handlers = { 'GetProductBiddingCategoryConstant': grpc.unary_unary_rpc_method_handler( servicer.GetProductBiddingCategoryConstant, - request_deserializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_product__bidding__category__constant__service__pb2.GetProductBiddingCategoryConstantRequest.FromString, - response_serializer=google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_product__bidding__category__constant__pb2.ProductBiddingCategoryConstant.SerializeToString, + request_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_product__bidding__category__constant__service__pb2.GetProductBiddingCategoryConstantRequest.FromString, + response_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_product__bidding__category__constant__pb2.ProductBiddingCategoryConstant.SerializeToString, ), } generic_handler = grpc.method_handlers_generic_handler( - 'google.ads.googleads.v1.services.ProductBiddingCategoryConstantService', rpc_method_handlers) + 'google.ads.googleads.v4.services.ProductBiddingCategoryConstantService', rpc_method_handlers) server.add_generic_rpc_handlers((generic_handler,)) diff --git a/google/ads/google_ads/v4/proto/services/product_group_view_service_pb2.py b/google/ads/google_ads/v4/proto/services/product_group_view_service_pb2.py new file mode 100644 index 000000000..bc5d9dcc6 --- /dev/null +++ b/google/ads/google_ads/v4/proto/services/product_group_view_service_pb2.py @@ -0,0 +1,112 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/services/product_group_view_service.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.ads.google_ads.v4.proto.resources import product_group_view_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_product__group__view__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 +from google.api import client_pb2 as google_dot_api_dot_client__pb2 +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/services/product_group_view_service.proto', + package='google.ads.googleads.v4.services', + syntax='proto3', + serialized_options=_b('\n$com.google.ads.googleads.v4.servicesB\034ProductGroupViewServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V4.Services\312\002 Google\\Ads\\GoogleAds\\V4\\Services\352\002$Google::Ads::GoogleAds::V4::Services'), + serialized_pb=_b('\nGgoogle/ads/googleads_v4/proto/services/product_group_view_service.proto\x12 google.ads.googleads.v4.services\x1a@google/ads/googleads_v4/proto/resources/product_group_view.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"f\n\x1aGetProductGroupViewRequest\x12H\n\rresource_name\x18\x01 \x01(\tB1\xe0\x41\x02\xfa\x41+\n)googleads.googleapis.com/ProductGroupView2\x8e\x02\n\x17ProductGroupViewService\x12\xd5\x01\n\x13GetProductGroupView\x12<.google.ads.googleads.v4.services.GetProductGroupViewRequest\x1a\x33.google.ads.googleads.v4.resources.ProductGroupView\"K\x82\xd3\xe4\x93\x02\x35\x12\x33/v4/{resource_name=customers/*/productGroupViews/*}\xda\x41\rresource_name\x1a\x1b\xca\x41\x18googleads.googleapis.comB\x83\x02\n$com.google.ads.googleads.v4.servicesB\x1cProductGroupViewServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V4.Services\xca\x02 Google\\Ads\\GoogleAds\\V4\\Services\xea\x02$Google::Ads::GoogleAds::V4::Servicesb\x06proto3') + , + dependencies=[google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_product__group__view__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_api_dot_client__pb2.DESCRIPTOR,google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_api_dot_resource__pb2.DESCRIPTOR,]) + + + + +_GETPRODUCTGROUPVIEWREQUEST = _descriptor.Descriptor( + name='GetProductGroupViewRequest', + full_name='google.ads.googleads.v4.services.GetProductGroupViewRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.services.GetProductGroupViewRequest.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002\372A+\n)googleads.googleapis.com/ProductGroupView'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=290, + serialized_end=392, +) + +DESCRIPTOR.message_types_by_name['GetProductGroupViewRequest'] = _GETPRODUCTGROUPVIEWREQUEST +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +GetProductGroupViewRequest = _reflection.GeneratedProtocolMessageType('GetProductGroupViewRequest', (_message.Message,), dict( + DESCRIPTOR = _GETPRODUCTGROUPVIEWREQUEST, + __module__ = 'google.ads.googleads_v4.proto.services.product_group_view_service_pb2' + , + __doc__ = """Request message for + [ProductGroupViewService.GetProductGroupView][google.ads.googleads.v4.services.ProductGroupViewService.GetProductGroupView]. + + + Attributes: + resource_name: + Required. The resource name of the product group view to + fetch. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.GetProductGroupViewRequest) + )) +_sym_db.RegisterMessage(GetProductGroupViewRequest) + + +DESCRIPTOR._options = None +_GETPRODUCTGROUPVIEWREQUEST.fields_by_name['resource_name']._options = None + +_PRODUCTGROUPVIEWSERVICE = _descriptor.ServiceDescriptor( + name='ProductGroupViewService', + full_name='google.ads.googleads.v4.services.ProductGroupViewService', + file=DESCRIPTOR, + index=0, + serialized_options=_b('\312A\030googleads.googleapis.com'), + serialized_start=395, + serialized_end=665, + methods=[ + _descriptor.MethodDescriptor( + name='GetProductGroupView', + full_name='google.ads.googleads.v4.services.ProductGroupViewService.GetProductGroupView', + index=0, + containing_service=None, + input_type=_GETPRODUCTGROUPVIEWREQUEST, + output_type=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_product__group__view__pb2._PRODUCTGROUPVIEW, + serialized_options=_b('\202\323\344\223\0025\0223/v4/{resource_name=customers/*/productGroupViews/*}\332A\rresource_name'), + ), +]) +_sym_db.RegisterServiceDescriptor(_PRODUCTGROUPVIEWSERVICE) + +DESCRIPTOR.services_by_name['ProductGroupViewService'] = _PRODUCTGROUPVIEWSERVICE + +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v4/proto/services/product_group_view_service_pb2_grpc.py b/google/ads/google_ads/v4/proto/services/product_group_view_service_pb2_grpc.py new file mode 100644 index 000000000..9aa02a164 --- /dev/null +++ b/google/ads/google_ads/v4/proto/services/product_group_view_service_pb2_grpc.py @@ -0,0 +1,51 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +import grpc + +from google.ads.google_ads.v4.proto.resources import product_group_view_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_product__group__view__pb2 +from google.ads.google_ads.v4.proto.services import product_group_view_service_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_product__group__view__service__pb2 + + +class ProductGroupViewServiceStub(object): + """Proto file describing the ProductGroup View service. + + Service to manage product group views. + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.GetProductGroupView = channel.unary_unary( + '/google.ads.googleads.v4.services.ProductGroupViewService/GetProductGroupView', + request_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_product__group__view__service__pb2.GetProductGroupViewRequest.SerializeToString, + response_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_product__group__view__pb2.ProductGroupView.FromString, + ) + + +class ProductGroupViewServiceServicer(object): + """Proto file describing the ProductGroup View service. + + Service to manage product group views. + """ + + def GetProductGroupView(self, request, context): + """Returns the requested product group view in full detail. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_ProductGroupViewServiceServicer_to_server(servicer, server): + rpc_method_handlers = { + 'GetProductGroupView': grpc.unary_unary_rpc_method_handler( + servicer.GetProductGroupView, + request_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_product__group__view__service__pb2.GetProductGroupViewRequest.FromString, + response_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_product__group__view__pb2.ProductGroupView.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'google.ads.googleads.v4.services.ProductGroupViewService', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) diff --git a/google/ads/google_ads/v4/proto/services/reach_plan_service_pb2.py b/google/ads/google_ads/v4/proto/services/reach_plan_service_pb2.py new file mode 100644 index 000000000..8ba93f919 --- /dev/null +++ b/google/ads/google_ads/v4/proto/services/reach_plan_service_pb2.py @@ -0,0 +1,1523 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/services/reach_plan_service.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.ads.google_ads.v4.proto.common import criteria_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_criteria__pb2 +from google.ads.google_ads.v4.proto.enums import frequency_cap_time_unit_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_frequency__cap__time__unit__pb2 +from google.ads.google_ads.v4.proto.enums import reach_plan_ad_length_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_reach__plan__ad__length__pb2 +from google.ads.google_ads.v4.proto.enums import reach_plan_age_range_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_reach__plan__age__range__pb2 +from google.ads.google_ads.v4.proto.enums import reach_plan_network_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_reach__plan__network__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 +from google.api import client_pb2 as google_dot_api_dot_client__pb2 +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/services/reach_plan_service.proto', + package='google.ads.googleads.v4.services', + syntax='proto3', + serialized_options=_b('\n$com.google.ads.googleads.v4.servicesB\025ReachPlanServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V4.Services\312\002 Google\\Ads\\GoogleAds\\V4\\Services\352\002$Google::Ads::GoogleAds::V4::Services'), + serialized_pb=_b('\n?google/ads/googleads_v4/proto/services/reach_plan_service.proto\x12 google.ads.googleads.v4.services\x1a\x33google/ads/googleads_v4/proto/common/criteria.proto\x1a\x41google/ads/googleads_v4/proto/enums/frequency_cap_time_unit.proto\x1a>google/ads/googleads_v4/proto/enums/reach_plan_ad_length.proto\x1a>google/ads/googleads_v4/proto/enums/reach_plan_age_range.proto\x1a\n\ttargeting\x18\x06 \x01(\x0b\x32+.google.ads.googleads.v4.services.Targeting\x12O\n\x10planned_products\x18\x07 \x03(\x0b\x32\x30.google.ads.googleads.v4.services.PlannedProductB\x03\xe0\x41\x02\"\xab\x01\n\x0c\x46requencyCap\x12\x35\n\x0bimpressions\x18\x01 \x01(\x0b\x32\x1b.google.protobuf.Int32ValueB\x03\xe0\x41\x02\x12\x64\n\ttime_unit\x18\x02 \x01(\x0e\x32L.google.ads.googleads.v4.enums.FrequencyCapTimeUnitEnum.FrequencyCapTimeUnitB\x03\xe0\x41\x02\"\xf4\x02\n\tTargeting\x12;\n\x15plannable_location_id\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12Y\n\tage_range\x18\x02 \x01(\x0e\x32\x46.google.ads.googleads.v4.enums.ReachPlanAgeRangeEnum.ReachPlanAgeRange\x12;\n\x07genders\x18\x03 \x03(\x0b\x32*.google.ads.googleads.v4.common.GenderInfo\x12;\n\x07\x64\x65vices\x18\x04 \x03(\x0b\x32*.google.ads.googleads.v4.common.DeviceInfo\x12U\n\x07network\x18\x05 \x01(\x0e\x32\x44.google.ads.googleads.v4.enums.ReachPlanNetworkEnum.ReachPlanNetwork\"I\n\x10\x43\x61mpaignDuration\x12\x35\n\x10\x64uration_in_days\x18\x01 \x01(\x0b\x32\x1b.google.protobuf.Int32Value\"\x82\x01\n\x0ePlannedProduct\x12<\n\x16plannable_product_code\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x32\n\rbudget_micros\x18\x02 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\"\xc1\x01\n\x1dGenerateReachForecastResponse\x12]\n\x1aon_target_audience_metrics\x18\x01 \x01(\x0b\x32\x39.google.ads.googleads.v4.services.OnTargetAudienceMetrics\x12\x41\n\x0breach_curve\x18\x02 \x01(\x0b\x32,.google.ads.googleads.v4.services.ReachCurve\"V\n\nReachCurve\x12H\n\x0freach_forecasts\x18\x01 \x03(\x0b\x32/.google.ads.googleads.v4.services.ReachForecast\"\xdc\x01\n\rReachForecast\x12\x30\n\x0b\x63ost_micros\x18\x01 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12<\n\x08\x66orecast\x18\x02 \x01(\x0b\x32*.google.ads.googleads.v4.services.Forecast\x12[\n\x1e\x66orecasted_product_allocations\x18\x03 \x03(\x0b\x32\x33.google.ads.googleads.v4.services.ProductAllocation\"\xe6\x01\n\x08\x46orecast\x12\x34\n\x0fon_target_reach\x18\x01 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x30\n\x0btotal_reach\x18\x02 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12:\n\x15on_target_impressions\x18\x03 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x36\n\x11total_impressions\x18\x04 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\"\x90\x01\n\x17OnTargetAudienceMetrics\x12:\n\x15youtube_audience_size\x18\x01 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x39\n\x14\x63\x65nsus_audience_size\x18\x02 \x01(\x0b\x32\x1b.google.protobuf.Int64Value2\xfd\x07\n\x10ReachPlanService\x12\xc2\x01\n\x16ListPlannableLocations\x12?.google.ads.googleads.v4.services.ListPlannableLocationsRequest\x1a@.google.ads.googleads.v4.services.ListPlannableLocationsResponse\"%\x82\xd3\xe4\x93\x02\x1f\"\x1a/v4:listPlannableLocations:\x01*\x12\xd6\x01\n\x15ListPlannableProducts\x12>.google.ads.googleads.v4.services.ListPlannableProductsRequest\x1a?.google.ads.googleads.v4.services.ListPlannableProductsResponse\"<\x82\xd3\xe4\x93\x02\x1e\"\x19/v4:listPlannableProducts:\x01*\xda\x41\x15plannable_location_id\x12\xa1\x02\n\x17GenerateProductMixIdeas\x12@.google.ads.googleads.v4.services.GenerateProductMixIdeasRequest\x1a\x41.google.ads.googleads.v4.services.GenerateProductMixIdeasResponse\"\x80\x01\x82\xd3\xe4\x93\x02:\"5/v4/customers/{customer_id=*}:generateProductMixIdeas:\x01*\xda\x41=customer_id,plannable_location_id,currency_code,budget_micros\x12\x89\x02\n\x15GenerateReachForecast\x12>.google.ads.googleads.v4.services.GenerateReachForecastRequest\x1a?.google.ads.googleads.v4.services.GenerateReachForecastResponse\"o\x82\xd3\xe4\x93\x02\x38\"3/v4/customers/{customer_id=*}:generateReachForecast:\x01*\xda\x41.customer_id,campaign_duration,planned_products\x1a\x1b\xca\x41\x18googleads.googleapis.comB\xfc\x01\n$com.google.ads.googleads.v4.servicesB\x15ReachPlanServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V4.Services\xca\x02 Google\\Ads\\GoogleAds\\V4\\Services\xea\x02$Google::Ads::GoogleAds::V4::Servicesb\x06proto3') + , + dependencies=[google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_criteria__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_frequency__cap__time__unit__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_reach__plan__ad__length__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_reach__plan__age__range__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_reach__plan__network__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_api_dot_client__pb2.DESCRIPTOR,google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,]) + + + + +_LISTPLANNABLELOCATIONSREQUEST = _descriptor.Descriptor( + name='ListPlannableLocationsRequest', + full_name='google.ads.googleads.v4.services.ListPlannableLocationsRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=531, + serialized_end=562, +) + + +_LISTPLANNABLELOCATIONSRESPONSE = _descriptor.Descriptor( + name='ListPlannableLocationsResponse', + full_name='google.ads.googleads.v4.services.ListPlannableLocationsResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='plannable_locations', full_name='google.ads.googleads.v4.services.ListPlannableLocationsResponse.plannable_locations', index=0, + number=1, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=564, + serialized_end=678, +) + + +_PLANNABLELOCATION = _descriptor.Descriptor( + name='PlannableLocation', + full_name='google.ads.googleads.v4.services.PlannableLocation', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='id', full_name='google.ads.googleads.v4.services.PlannableLocation.id', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='name', full_name='google.ads.googleads.v4.services.PlannableLocation.name', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='parent_country_id', full_name='google.ads.googleads.v4.services.PlannableLocation.parent_country_id', index=2, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=681, + serialized_end=842, +) + + +_LISTPLANNABLEPRODUCTSREQUEST = _descriptor.Descriptor( + name='ListPlannableProductsRequest', + full_name='google.ads.googleads.v4.services.ListPlannableProductsRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='plannable_location_id', full_name='google.ads.googleads.v4.services.ListPlannableProductsRequest.plannable_location_id', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=844, + serialized_end=940, +) + + +_LISTPLANNABLEPRODUCTSRESPONSE = _descriptor.Descriptor( + name='ListPlannableProductsResponse', + full_name='google.ads.googleads.v4.services.ListPlannableProductsResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='product_metadata', full_name='google.ads.googleads.v4.services.ListPlannableProductsResponse.product_metadata', index=0, + number=1, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=942, + serialized_end=1050, +) + + +_PRODUCTMETADATA = _descriptor.Descriptor( + name='ProductMetadata', + full_name='google.ads.googleads.v4.services.ProductMetadata', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='plannable_product_code', full_name='google.ads.googleads.v4.services.ProductMetadata.plannable_product_code', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='plannable_targeting', full_name='google.ads.googleads.v4.services.ProductMetadata.plannable_targeting', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1053, + serialized_end=1215, +) + + +_PLANNABLETARGETING = _descriptor.Descriptor( + name='PlannableTargeting', + full_name='google.ads.googleads.v4.services.PlannableTargeting', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='age_ranges', full_name='google.ads.googleads.v4.services.PlannableTargeting.age_ranges', index=0, + number=1, type=14, cpp_type=8, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='genders', full_name='google.ads.googleads.v4.services.PlannableTargeting.genders', index=1, + number=2, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='devices', full_name='google.ads.googleads.v4.services.PlannableTargeting.devices', index=2, + number=3, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='networks', full_name='google.ads.googleads.v4.services.PlannableTargeting.networks', index=3, + number=4, type=14, cpp_type=8, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1218, + serialized_end=1540, +) + + +_GENERATEPRODUCTMIXIDEASREQUEST = _descriptor.Descriptor( + name='GenerateProductMixIdeasRequest', + full_name='google.ads.googleads.v4.services.GenerateProductMixIdeasRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='customer_id', full_name='google.ads.googleads.v4.services.GenerateProductMixIdeasRequest.customer_id', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='plannable_location_id', full_name='google.ads.googleads.v4.services.GenerateProductMixIdeasRequest.plannable_location_id', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='currency_code', full_name='google.ads.googleads.v4.services.GenerateProductMixIdeasRequest.currency_code', index=2, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='budget_micros', full_name='google.ads.googleads.v4.services.GenerateProductMixIdeasRequest.budget_micros', index=3, + number=4, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='preferences', full_name='google.ads.googleads.v4.services.GenerateProductMixIdeasRequest.preferences', index=4, + number=5, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1543, + serialized_end=1850, +) + + +_PREFERENCES = _descriptor.Descriptor( + name='Preferences', + full_name='google.ads.googleads.v4.services.Preferences', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='is_skippable', full_name='google.ads.googleads.v4.services.Preferences.is_skippable', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='starts_with_sound', full_name='google.ads.googleads.v4.services.Preferences.starts_with_sound', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='ad_length', full_name='google.ads.googleads.v4.services.Preferences.ad_length', index=2, + number=3, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='top_content_only', full_name='google.ads.googleads.v4.services.Preferences.top_content_only', index=3, + number=4, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='has_guaranteed_price', full_name='google.ads.googleads.v4.services.Preferences.has_guaranteed_price', index=4, + number=5, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1853, + serialized_end=2174, +) + + +_GENERATEPRODUCTMIXIDEASRESPONSE = _descriptor.Descriptor( + name='GenerateProductMixIdeasResponse', + full_name='google.ads.googleads.v4.services.GenerateProductMixIdeasResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='product_allocation', full_name='google.ads.googleads.v4.services.GenerateProductMixIdeasResponse.product_allocation', index=0, + number=1, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=2176, + serialized_end=2290, +) + + +_PRODUCTALLOCATION = _descriptor.Descriptor( + name='ProductAllocation', + full_name='google.ads.googleads.v4.services.ProductAllocation', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='plannable_product_code', full_name='google.ads.googleads.v4.services.ProductAllocation.plannable_product_code', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='budget_micros', full_name='google.ads.googleads.v4.services.ProductAllocation.budget_micros', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=2293, + serialized_end=2426, +) + + +_GENERATEREACHFORECASTREQUEST = _descriptor.Descriptor( + name='GenerateReachForecastRequest', + full_name='google.ads.googleads.v4.services.GenerateReachForecastRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='customer_id', full_name='google.ads.googleads.v4.services.GenerateReachForecastRequest.customer_id', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='currency_code', full_name='google.ads.googleads.v4.services.GenerateReachForecastRequest.currency_code', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='campaign_duration', full_name='google.ads.googleads.v4.services.GenerateReachForecastRequest.campaign_duration', index=2, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='cookie_frequency_cap', full_name='google.ads.googleads.v4.services.GenerateReachForecastRequest.cookie_frequency_cap', index=3, + number=4, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='cookie_frequency_cap_setting', full_name='google.ads.googleads.v4.services.GenerateReachForecastRequest.cookie_frequency_cap_setting', index=4, + number=8, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='min_effective_frequency', full_name='google.ads.googleads.v4.services.GenerateReachForecastRequest.min_effective_frequency', index=5, + number=5, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='targeting', full_name='google.ads.googleads.v4.services.GenerateReachForecastRequest.targeting', index=6, + number=6, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='planned_products', full_name='google.ads.googleads.v4.services.GenerateReachForecastRequest.planned_products', index=7, + number=7, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=2429, + serialized_end=2974, +) + + +_FREQUENCYCAP = _descriptor.Descriptor( + name='FrequencyCap', + full_name='google.ads.googleads.v4.services.FrequencyCap', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='impressions', full_name='google.ads.googleads.v4.services.FrequencyCap.impressions', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='time_unit', full_name='google.ads.googleads.v4.services.FrequencyCap.time_unit', index=1, + number=2, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=2977, + serialized_end=3148, +) + + +_TARGETING = _descriptor.Descriptor( + name='Targeting', + full_name='google.ads.googleads.v4.services.Targeting', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='plannable_location_id', full_name='google.ads.googleads.v4.services.Targeting.plannable_location_id', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='age_range', full_name='google.ads.googleads.v4.services.Targeting.age_range', index=1, + number=2, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='genders', full_name='google.ads.googleads.v4.services.Targeting.genders', index=2, + number=3, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='devices', full_name='google.ads.googleads.v4.services.Targeting.devices', index=3, + number=4, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='network', full_name='google.ads.googleads.v4.services.Targeting.network', index=4, + number=5, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=3151, + serialized_end=3523, +) + + +_CAMPAIGNDURATION = _descriptor.Descriptor( + name='CampaignDuration', + full_name='google.ads.googleads.v4.services.CampaignDuration', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='duration_in_days', full_name='google.ads.googleads.v4.services.CampaignDuration.duration_in_days', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=3525, + serialized_end=3598, +) + + +_PLANNEDPRODUCT = _descriptor.Descriptor( + name='PlannedProduct', + full_name='google.ads.googleads.v4.services.PlannedProduct', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='plannable_product_code', full_name='google.ads.googleads.v4.services.PlannedProduct.plannable_product_code', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='budget_micros', full_name='google.ads.googleads.v4.services.PlannedProduct.budget_micros', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=3601, + serialized_end=3731, +) + + +_GENERATEREACHFORECASTRESPONSE = _descriptor.Descriptor( + name='GenerateReachForecastResponse', + full_name='google.ads.googleads.v4.services.GenerateReachForecastResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='on_target_audience_metrics', full_name='google.ads.googleads.v4.services.GenerateReachForecastResponse.on_target_audience_metrics', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='reach_curve', full_name='google.ads.googleads.v4.services.GenerateReachForecastResponse.reach_curve', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=3734, + serialized_end=3927, +) + + +_REACHCURVE = _descriptor.Descriptor( + name='ReachCurve', + full_name='google.ads.googleads.v4.services.ReachCurve', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='reach_forecasts', full_name='google.ads.googleads.v4.services.ReachCurve.reach_forecasts', index=0, + number=1, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=3929, + serialized_end=4015, +) + + +_REACHFORECAST = _descriptor.Descriptor( + name='ReachForecast', + full_name='google.ads.googleads.v4.services.ReachForecast', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='cost_micros', full_name='google.ads.googleads.v4.services.ReachForecast.cost_micros', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='forecast', full_name='google.ads.googleads.v4.services.ReachForecast.forecast', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='forecasted_product_allocations', full_name='google.ads.googleads.v4.services.ReachForecast.forecasted_product_allocations', index=2, + number=3, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=4018, + serialized_end=4238, +) + + +_FORECAST = _descriptor.Descriptor( + name='Forecast', + full_name='google.ads.googleads.v4.services.Forecast', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='on_target_reach', full_name='google.ads.googleads.v4.services.Forecast.on_target_reach', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='total_reach', full_name='google.ads.googleads.v4.services.Forecast.total_reach', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='on_target_impressions', full_name='google.ads.googleads.v4.services.Forecast.on_target_impressions', index=2, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='total_impressions', full_name='google.ads.googleads.v4.services.Forecast.total_impressions', index=3, + number=4, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=4241, + serialized_end=4471, +) + + +_ONTARGETAUDIENCEMETRICS = _descriptor.Descriptor( + name='OnTargetAudienceMetrics', + full_name='google.ads.googleads.v4.services.OnTargetAudienceMetrics', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='youtube_audience_size', full_name='google.ads.googleads.v4.services.OnTargetAudienceMetrics.youtube_audience_size', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='census_audience_size', full_name='google.ads.googleads.v4.services.OnTargetAudienceMetrics.census_audience_size', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=4474, + serialized_end=4618, +) + +_LISTPLANNABLELOCATIONSRESPONSE.fields_by_name['plannable_locations'].message_type = _PLANNABLELOCATION +_PLANNABLELOCATION.fields_by_name['id'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_PLANNABLELOCATION.fields_by_name['name'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_PLANNABLELOCATION.fields_by_name['parent_country_id'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_LISTPLANNABLEPRODUCTSREQUEST.fields_by_name['plannable_location_id'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_LISTPLANNABLEPRODUCTSRESPONSE.fields_by_name['product_metadata'].message_type = _PRODUCTMETADATA +_PRODUCTMETADATA.fields_by_name['plannable_product_code'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_PRODUCTMETADATA.fields_by_name['plannable_targeting'].message_type = _PLANNABLETARGETING +_PLANNABLETARGETING.fields_by_name['age_ranges'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_reach__plan__age__range__pb2._REACHPLANAGERANGEENUM_REACHPLANAGERANGE +_PLANNABLETARGETING.fields_by_name['genders'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_criteria__pb2._GENDERINFO +_PLANNABLETARGETING.fields_by_name['devices'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_criteria__pb2._DEVICEINFO +_PLANNABLETARGETING.fields_by_name['networks'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_reach__plan__network__pb2._REACHPLANNETWORKENUM_REACHPLANNETWORK +_GENERATEPRODUCTMIXIDEASREQUEST.fields_by_name['plannable_location_id'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_GENERATEPRODUCTMIXIDEASREQUEST.fields_by_name['currency_code'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_GENERATEPRODUCTMIXIDEASREQUEST.fields_by_name['budget_micros'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_GENERATEPRODUCTMIXIDEASREQUEST.fields_by_name['preferences'].message_type = _PREFERENCES +_PREFERENCES.fields_by_name['is_skippable'].message_type = google_dot_protobuf_dot_wrappers__pb2._BOOLVALUE +_PREFERENCES.fields_by_name['starts_with_sound'].message_type = google_dot_protobuf_dot_wrappers__pb2._BOOLVALUE +_PREFERENCES.fields_by_name['ad_length'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_reach__plan__ad__length__pb2._REACHPLANADLENGTHENUM_REACHPLANADLENGTH +_PREFERENCES.fields_by_name['top_content_only'].message_type = google_dot_protobuf_dot_wrappers__pb2._BOOLVALUE +_PREFERENCES.fields_by_name['has_guaranteed_price'].message_type = google_dot_protobuf_dot_wrappers__pb2._BOOLVALUE +_GENERATEPRODUCTMIXIDEASRESPONSE.fields_by_name['product_allocation'].message_type = _PRODUCTALLOCATION +_PRODUCTALLOCATION.fields_by_name['plannable_product_code'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_PRODUCTALLOCATION.fields_by_name['budget_micros'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_GENERATEREACHFORECASTREQUEST.fields_by_name['currency_code'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_GENERATEREACHFORECASTREQUEST.fields_by_name['campaign_duration'].message_type = _CAMPAIGNDURATION +_GENERATEREACHFORECASTREQUEST.fields_by_name['cookie_frequency_cap'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT32VALUE +_GENERATEREACHFORECASTREQUEST.fields_by_name['cookie_frequency_cap_setting'].message_type = _FREQUENCYCAP +_GENERATEREACHFORECASTREQUEST.fields_by_name['min_effective_frequency'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT32VALUE +_GENERATEREACHFORECASTREQUEST.fields_by_name['targeting'].message_type = _TARGETING +_GENERATEREACHFORECASTREQUEST.fields_by_name['planned_products'].message_type = _PLANNEDPRODUCT +_FREQUENCYCAP.fields_by_name['impressions'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT32VALUE +_FREQUENCYCAP.fields_by_name['time_unit'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_frequency__cap__time__unit__pb2._FREQUENCYCAPTIMEUNITENUM_FREQUENCYCAPTIMEUNIT +_TARGETING.fields_by_name['plannable_location_id'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_TARGETING.fields_by_name['age_range'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_reach__plan__age__range__pb2._REACHPLANAGERANGEENUM_REACHPLANAGERANGE +_TARGETING.fields_by_name['genders'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_criteria__pb2._GENDERINFO +_TARGETING.fields_by_name['devices'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_criteria__pb2._DEVICEINFO +_TARGETING.fields_by_name['network'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_reach__plan__network__pb2._REACHPLANNETWORKENUM_REACHPLANNETWORK +_CAMPAIGNDURATION.fields_by_name['duration_in_days'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT32VALUE +_PLANNEDPRODUCT.fields_by_name['plannable_product_code'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_PLANNEDPRODUCT.fields_by_name['budget_micros'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_GENERATEREACHFORECASTRESPONSE.fields_by_name['on_target_audience_metrics'].message_type = _ONTARGETAUDIENCEMETRICS +_GENERATEREACHFORECASTRESPONSE.fields_by_name['reach_curve'].message_type = _REACHCURVE +_REACHCURVE.fields_by_name['reach_forecasts'].message_type = _REACHFORECAST +_REACHFORECAST.fields_by_name['cost_micros'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_REACHFORECAST.fields_by_name['forecast'].message_type = _FORECAST +_REACHFORECAST.fields_by_name['forecasted_product_allocations'].message_type = _PRODUCTALLOCATION +_FORECAST.fields_by_name['on_target_reach'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_FORECAST.fields_by_name['total_reach'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_FORECAST.fields_by_name['on_target_impressions'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_FORECAST.fields_by_name['total_impressions'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_ONTARGETAUDIENCEMETRICS.fields_by_name['youtube_audience_size'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_ONTARGETAUDIENCEMETRICS.fields_by_name['census_audience_size'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +DESCRIPTOR.message_types_by_name['ListPlannableLocationsRequest'] = _LISTPLANNABLELOCATIONSREQUEST +DESCRIPTOR.message_types_by_name['ListPlannableLocationsResponse'] = _LISTPLANNABLELOCATIONSRESPONSE +DESCRIPTOR.message_types_by_name['PlannableLocation'] = _PLANNABLELOCATION +DESCRIPTOR.message_types_by_name['ListPlannableProductsRequest'] = _LISTPLANNABLEPRODUCTSREQUEST +DESCRIPTOR.message_types_by_name['ListPlannableProductsResponse'] = _LISTPLANNABLEPRODUCTSRESPONSE +DESCRIPTOR.message_types_by_name['ProductMetadata'] = _PRODUCTMETADATA +DESCRIPTOR.message_types_by_name['PlannableTargeting'] = _PLANNABLETARGETING +DESCRIPTOR.message_types_by_name['GenerateProductMixIdeasRequest'] = _GENERATEPRODUCTMIXIDEASREQUEST +DESCRIPTOR.message_types_by_name['Preferences'] = _PREFERENCES +DESCRIPTOR.message_types_by_name['GenerateProductMixIdeasResponse'] = _GENERATEPRODUCTMIXIDEASRESPONSE +DESCRIPTOR.message_types_by_name['ProductAllocation'] = _PRODUCTALLOCATION +DESCRIPTOR.message_types_by_name['GenerateReachForecastRequest'] = _GENERATEREACHFORECASTREQUEST +DESCRIPTOR.message_types_by_name['FrequencyCap'] = _FREQUENCYCAP +DESCRIPTOR.message_types_by_name['Targeting'] = _TARGETING +DESCRIPTOR.message_types_by_name['CampaignDuration'] = _CAMPAIGNDURATION +DESCRIPTOR.message_types_by_name['PlannedProduct'] = _PLANNEDPRODUCT +DESCRIPTOR.message_types_by_name['GenerateReachForecastResponse'] = _GENERATEREACHFORECASTRESPONSE +DESCRIPTOR.message_types_by_name['ReachCurve'] = _REACHCURVE +DESCRIPTOR.message_types_by_name['ReachForecast'] = _REACHFORECAST +DESCRIPTOR.message_types_by_name['Forecast'] = _FORECAST +DESCRIPTOR.message_types_by_name['OnTargetAudienceMetrics'] = _ONTARGETAUDIENCEMETRICS +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +ListPlannableLocationsRequest = _reflection.GeneratedProtocolMessageType('ListPlannableLocationsRequest', (_message.Message,), dict( + DESCRIPTOR = _LISTPLANNABLELOCATIONSREQUEST, + __module__ = 'google.ads.googleads_v4.proto.services.reach_plan_service_pb2' + , + __doc__ = """Request message for [ReachForecastService.ListPlannableLocations][] + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.ListPlannableLocationsRequest) + )) +_sym_db.RegisterMessage(ListPlannableLocationsRequest) + +ListPlannableLocationsResponse = _reflection.GeneratedProtocolMessageType('ListPlannableLocationsResponse', (_message.Message,), dict( + DESCRIPTOR = _LISTPLANNABLELOCATIONSRESPONSE, + __module__ = 'google.ads.googleads_v4.proto.services.reach_plan_service_pb2' + , + __doc__ = """The list of plannable locations. + + + Attributes: + plannable_locations: + The list of locations available for planning (Countries, DMAs, + sub-countries). For locations like Countries, DMAs see https:/ + /developers.google.com/adwords/api/docs/appendix/geotargeting + for more information. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.ListPlannableLocationsResponse) + )) +_sym_db.RegisterMessage(ListPlannableLocationsResponse) + +PlannableLocation = _reflection.GeneratedProtocolMessageType('PlannableLocation', (_message.Message,), dict( + DESCRIPTOR = _PLANNABLELOCATION, + __module__ = 'google.ads.googleads_v4.proto.services.reach_plan_service_pb2' + , + __doc__ = """A plannable location: a country, a DMA, a metro region, a tv region, a + province. + + + Attributes: + id: + The location identifier. + name: + The unique location name in english. + parent_country_id: + The parent country code, not present if location is a country. + If present will always be a criterion id: additional + information, such as country name are returned both via + ListPlannableLocations or directly by accessing + GeoTargetConstantService with the criterion id. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.PlannableLocation) + )) +_sym_db.RegisterMessage(PlannableLocation) + +ListPlannableProductsRequest = _reflection.GeneratedProtocolMessageType('ListPlannableProductsRequest', (_message.Message,), dict( + DESCRIPTOR = _LISTPLANNABLEPRODUCTSREQUEST, + __module__ = 'google.ads.googleads_v4.proto.services.reach_plan_service_pb2' + , + __doc__ = """Request to list available products in a given location. + + + Attributes: + plannable_location_id: + Required. The ID of the selected location for planning. To + list the available plannable location ids use + ListPlannableLocations. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.ListPlannableProductsRequest) + )) +_sym_db.RegisterMessage(ListPlannableProductsRequest) + +ListPlannableProductsResponse = _reflection.GeneratedProtocolMessageType('ListPlannableProductsResponse', (_message.Message,), dict( + DESCRIPTOR = _LISTPLANNABLEPRODUCTSRESPONSE, + __module__ = 'google.ads.googleads_v4.proto.services.reach_plan_service_pb2' + , + __doc__ = """A response with all available products. + + + Attributes: + product_metadata: + The list of products available for planning and related + targeting metadata. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.ListPlannableProductsResponse) + )) +_sym_db.RegisterMessage(ListPlannableProductsResponse) + +ProductMetadata = _reflection.GeneratedProtocolMessageType('ProductMetadata', (_message.Message,), dict( + DESCRIPTOR = _PRODUCTMETADATA, + __module__ = 'google.ads.googleads_v4.proto.services.reach_plan_service_pb2' + , + __doc__ = """The metadata associated with an available plannable product. + + + Attributes: + plannable_product_code: + The code associated with the ad product. E.g. Trueview, Bumper + To list the available plannable product codes use + ListPlannableProducts. + plannable_targeting: + The allowed plannable targeting for this product. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.ProductMetadata) + )) +_sym_db.RegisterMessage(ProductMetadata) + +PlannableTargeting = _reflection.GeneratedProtocolMessageType('PlannableTargeting', (_message.Message,), dict( + DESCRIPTOR = _PLANNABLETARGETING, + __module__ = 'google.ads.googleads_v4.proto.services.reach_plan_service_pb2' + , + __doc__ = """The targeting for which traffic metrics will be reported. + + + Attributes: + age_ranges: + Allowed plannable age ranges for the product for which metrics + will be reported. Actual targeting is computed by mapping this + age range onto standard Google common.AgeRangeInfo values. + genders: + Targetable genders for the ad product. + devices: + Targetable devices for the ad product. + networks: + Targetable networks for the ad product. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.PlannableTargeting) + )) +_sym_db.RegisterMessage(PlannableTargeting) + +GenerateProductMixIdeasRequest = _reflection.GeneratedProtocolMessageType('GenerateProductMixIdeasRequest', (_message.Message,), dict( + DESCRIPTOR = _GENERATEPRODUCTMIXIDEASREQUEST, + __module__ = 'google.ads.googleads_v4.proto.services.reach_plan_service_pb2' + , + __doc__ = """Request message for [ReachForecastService.GenerateProductMixIdeas][]. + + + Attributes: + customer_id: + Required. The ID of the customer. + plannable_location_id: + Required. The ID of the location, this is one of the ids + returned by ListPlannableLocations. + currency_code: + Required. Currency code. Three-character ISO 4217 currency + code. + budget_micros: + Required. Total budget. Amount in micros. One million is + equivalent to one unit. + preferences: + The preferences of the suggested product mix. An unset + preference is interpreted as all possible values are allowed, + unless explicitly specified. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.GenerateProductMixIdeasRequest) + )) +_sym_db.RegisterMessage(GenerateProductMixIdeasRequest) + +Preferences = _reflection.GeneratedProtocolMessageType('Preferences', (_message.Message,), dict( + DESCRIPTOR = _PREFERENCES, + __module__ = 'google.ads.googleads_v4.proto.services.reach_plan_service_pb2' + , + __doc__ = """Set of preferences about the planned mix. + + + Attributes: + is_skippable: + True if ad skippable. If not set, default is any value. + starts_with_sound: + True if ad start with sound. If not set, default is any value. + ad_length: + The length of the ad. If not set, default is any value. + top_content_only: + True if ad will only show on the top content. If not set, + default is false. + has_guaranteed_price: + True if the price guaranteed. The cost of serving the ad is + agreed upfront and not subject to an auction. If not set, + default is any value. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.Preferences) + )) +_sym_db.RegisterMessage(Preferences) + +GenerateProductMixIdeasResponse = _reflection.GeneratedProtocolMessageType('GenerateProductMixIdeasResponse', (_message.Message,), dict( + DESCRIPTOR = _GENERATEPRODUCTMIXIDEASRESPONSE, + __module__ = 'google.ads.googleads_v4.proto.services.reach_plan_service_pb2' + , + __doc__ = """The suggested product mix. + + + Attributes: + product_allocation: + A list of products (ad formats) and the associated budget + allocation idea. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.GenerateProductMixIdeasResponse) + )) +_sym_db.RegisterMessage(GenerateProductMixIdeasResponse) + +ProductAllocation = _reflection.GeneratedProtocolMessageType('ProductAllocation', (_message.Message,), dict( + DESCRIPTOR = _PRODUCTALLOCATION, + __module__ = 'google.ads.googleads_v4.proto.services.reach_plan_service_pb2' + , + __doc__ = """An allocation of a part of the budget on a given product. + + + Attributes: + plannable_product_code: + Selected product for planning. The product codes returned are + within the set of the ones returned by ListPlannableProducts + when using the same location id. + budget_micros: + The value to be allocated for the suggested product in + requested currency. Amount in micros. One million is + equivalent to one unit. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.ProductAllocation) + )) +_sym_db.RegisterMessage(ProductAllocation) + +GenerateReachForecastRequest = _reflection.GeneratedProtocolMessageType('GenerateReachForecastRequest', (_message.Message,), dict( + DESCRIPTOR = _GENERATEREACHFORECASTREQUEST, + __module__ = 'google.ads.googleads_v4.proto.services.reach_plan_service_pb2' + , + __doc__ = """Request message for + [ReachPlanService.GenerateReachForecast][google.ads.googleads.v4.services.ReachPlanService.GenerateReachForecast]. + + + Attributes: + customer_id: + Required. The ID of the customer. + currency_code: + The currency code. Three-character ISO 4217 currency code. + campaign_duration: + Required. Campaign duration. + cookie_frequency_cap: + Desired cookie frequency cap that will be applied to each + planned product. This is equivalent to the frequency cap + exposed in Google Ads when creating a campaign, it represents + the maximum number of times an ad can be shown to the same + user. If not specified no cap is applied. This field is + deprecated in v4 and will eventually be removed. Please use + cookie\_frequency\_cap\_setting instead. + cookie_frequency_cap_setting: + Desired cookie frequency cap that will be applied to each + planned product. This is equivalent to the frequency cap + exposed in Google Ads when creating a campaign, it represents + the maximum number of times an ad can be shown to the same + user during a specified time interval. If not specified, no + cap is applied. This field replaces the deprecated + cookie\_frequency\_cap field. + min_effective_frequency: + Desired minimum effective frequency (the number of times a + person was exposed to the ad) for the reported reach metrics + [1-10]. This won't affect the targeting, but just the + reporting. If not specified, a default of 1 is applied. + targeting: + The targeting to be applied to all products selected in the + product mix. This is planned targeting: execution details + might vary based on the advertising product, please consult an + implementation specialist. See specific metrics for details + on how targeting affects them. In some cases, targeting may + be overridden using the + PlannedProduct.advanced\_product\_targeting field. + planned_products: + Required. The products to be forecast. The max number of + allowed planned products is 15. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.GenerateReachForecastRequest) + )) +_sym_db.RegisterMessage(GenerateReachForecastRequest) + +FrequencyCap = _reflection.GeneratedProtocolMessageType('FrequencyCap', (_message.Message,), dict( + DESCRIPTOR = _FREQUENCYCAP, + __module__ = 'google.ads.googleads_v4.proto.services.reach_plan_service_pb2' + , + __doc__ = """A rule specifying the maximum number of times an ad can be shown to a + user over a particular time period. + + + Attributes: + impressions: + Required. The number of impressions, inclusive. + time_unit: + Required. The type of time unit. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.FrequencyCap) + )) +_sym_db.RegisterMessage(FrequencyCap) + +Targeting = _reflection.GeneratedProtocolMessageType('Targeting', (_message.Message,), dict( + DESCRIPTOR = _TARGETING, + __module__ = 'google.ads.googleads_v4.proto.services.reach_plan_service_pb2' + , + __doc__ = """The targeting for which traffic metrics will be reported. + + + Attributes: + plannable_location_id: + Required. The ID of the selected location. Plannable locations + ID can be obtained from ListPlannableLocations. + age_range: + Targeted age range. If not specified, targets all age ranges. + genders: + Targeted genders. If not specified, targets all genders. + devices: + Targeted devices. If not specified, targets all applicable + devices. Applicable devices vary by product and region and can + be obtained from ListPlannableProducts. + network: + Targetable network for the ad product. If not specified, + targets all applicable networks. Applicable networks vary by + product and region and can be obtained from + ListPlannableProducts. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.Targeting) + )) +_sym_db.RegisterMessage(Targeting) + +CampaignDuration = _reflection.GeneratedProtocolMessageType('CampaignDuration', (_message.Message,), dict( + DESCRIPTOR = _CAMPAIGNDURATION, + __module__ = 'google.ads.googleads_v4.proto.services.reach_plan_service_pb2' + , + __doc__ = """The duration of a planned campaign. + + + Attributes: + duration_in_days: + The duration value in days. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.CampaignDuration) + )) +_sym_db.RegisterMessage(CampaignDuration) + +PlannedProduct = _reflection.GeneratedProtocolMessageType('PlannedProduct', (_message.Message,), dict( + DESCRIPTOR = _PLANNEDPRODUCT, + __module__ = 'google.ads.googleads_v4.proto.services.reach_plan_service_pb2' + , + __doc__ = """A product being planned for reach. + + + Attributes: + plannable_product_code: + Required. Selected product for planning. Plannable products + codes can be obtained from ListPlannableProducts. + budget_micros: + Required. Maximum budget allocation in micros for the selected + product. The value is specified in the selected planning + currency\_code. E.g. 1 000 000$ = 1 000 000 000 000 micros. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.PlannedProduct) + )) +_sym_db.RegisterMessage(PlannedProduct) + +GenerateReachForecastResponse = _reflection.GeneratedProtocolMessageType('GenerateReachForecastResponse', (_message.Message,), dict( + DESCRIPTOR = _GENERATEREACHFORECASTRESPONSE, + __module__ = 'google.ads.googleads_v4.proto.services.reach_plan_service_pb2' + , + __doc__ = """Response message containing the generated reach curve. + + + Attributes: + on_target_audience_metrics: + Reference on target audiences for this curve. + reach_curve: + The generated reach curve for the planned product mix. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.GenerateReachForecastResponse) + )) +_sym_db.RegisterMessage(GenerateReachForecastResponse) + +ReachCurve = _reflection.GeneratedProtocolMessageType('ReachCurve', (_message.Message,), dict( + DESCRIPTOR = _REACHCURVE, + __module__ = 'google.ads.googleads_v4.proto.services.reach_plan_service_pb2' + , + __doc__ = """The reach curve for the planned products. + + + Attributes: + reach_forecasts: + All points on the reach curve. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.ReachCurve) + )) +_sym_db.RegisterMessage(ReachCurve) + +ReachForecast = _reflection.GeneratedProtocolMessageType('ReachForecast', (_message.Message,), dict( + DESCRIPTOR = _REACHFORECAST, + __module__ = 'google.ads.googleads_v4.proto.services.reach_plan_service_pb2' + , + __doc__ = """A point on reach curve. + + + Attributes: + cost_micros: + The cost in micros. + forecast: + Forecasted traffic metrics for this point. + forecasted_product_allocations: + The forecasted allocation. This differs from the input + allocation if one or more product cannot fulfill the budget + because of limited inventory. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.ReachForecast) + )) +_sym_db.RegisterMessage(ReachForecast) + +Forecast = _reflection.GeneratedProtocolMessageType('Forecast', (_message.Message,), dict( + DESCRIPTOR = _FORECAST, + __module__ = 'google.ads.googleads_v4.proto.services.reach_plan_service_pb2' + , + __doc__ = """Forecasted traffic metrics for the planned products and targeting. + + + Attributes: + on_target_reach: + Number of unique people reached at least + GenerateReachForecastRequest.min\_effective\_frequency times + that exactly matches the Targeting. + total_reach: + Total number of unique people reached at least + GenerateReachForecastRequest.min\_effective\_frequency times. + This includes people that may fall outside the specified + Targeting. + on_target_impressions: + Number of ad impressions that exactly matches the Targeting. + total_impressions: + Total number of ad impressions. This includes impressions that + may fall outside the specified Targeting, due to insufficient + information on signed-in users. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.Forecast) + )) +_sym_db.RegisterMessage(Forecast) + +OnTargetAudienceMetrics = _reflection.GeneratedProtocolMessageType('OnTargetAudienceMetrics', (_message.Message,), dict( + DESCRIPTOR = _ONTARGETAUDIENCEMETRICS, + __module__ = 'google.ads.googleads_v4.proto.services.reach_plan_service_pb2' + , + __doc__ = """Audience metrics for the planned products. These metrics consider the + following targeting dimensions: + + - Location + - PlannableAgeRange + - Gender + + + Attributes: + youtube_audience_size: + Reference audience size matching the considered targeting for + YouTube. + census_audience_size: + Reference audience size matching the considered targeting for + Census. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.OnTargetAudienceMetrics) + )) +_sym_db.RegisterMessage(OnTargetAudienceMetrics) + + +DESCRIPTOR._options = None +_LISTPLANNABLEPRODUCTSREQUEST.fields_by_name['plannable_location_id']._options = None +_GENERATEPRODUCTMIXIDEASREQUEST.fields_by_name['customer_id']._options = None +_GENERATEPRODUCTMIXIDEASREQUEST.fields_by_name['plannable_location_id']._options = None +_GENERATEPRODUCTMIXIDEASREQUEST.fields_by_name['currency_code']._options = None +_GENERATEPRODUCTMIXIDEASREQUEST.fields_by_name['budget_micros']._options = None +_GENERATEREACHFORECASTREQUEST.fields_by_name['customer_id']._options = None +_GENERATEREACHFORECASTREQUEST.fields_by_name['campaign_duration']._options = None +_GENERATEREACHFORECASTREQUEST.fields_by_name['planned_products']._options = None +_FREQUENCYCAP.fields_by_name['impressions']._options = None +_FREQUENCYCAP.fields_by_name['time_unit']._options = None + +_REACHPLANSERVICE = _descriptor.ServiceDescriptor( + name='ReachPlanService', + full_name='google.ads.googleads.v4.services.ReachPlanService', + file=DESCRIPTOR, + index=0, + serialized_options=_b('\312A\030googleads.googleapis.com'), + serialized_start=4621, + serialized_end=5642, + methods=[ + _descriptor.MethodDescriptor( + name='ListPlannableLocations', + full_name='google.ads.googleads.v4.services.ReachPlanService.ListPlannableLocations', + index=0, + containing_service=None, + input_type=_LISTPLANNABLELOCATIONSREQUEST, + output_type=_LISTPLANNABLELOCATIONSRESPONSE, + serialized_options=_b('\202\323\344\223\002\037\"\032/v4:listPlannableLocations:\001*'), + ), + _descriptor.MethodDescriptor( + name='ListPlannableProducts', + full_name='google.ads.googleads.v4.services.ReachPlanService.ListPlannableProducts', + index=1, + containing_service=None, + input_type=_LISTPLANNABLEPRODUCTSREQUEST, + output_type=_LISTPLANNABLEPRODUCTSRESPONSE, + serialized_options=_b('\202\323\344\223\002\036\"\031/v4:listPlannableProducts:\001*\332A\025plannable_location_id'), + ), + _descriptor.MethodDescriptor( + name='GenerateProductMixIdeas', + full_name='google.ads.googleads.v4.services.ReachPlanService.GenerateProductMixIdeas', + index=2, + containing_service=None, + input_type=_GENERATEPRODUCTMIXIDEASREQUEST, + output_type=_GENERATEPRODUCTMIXIDEASRESPONSE, + serialized_options=_b('\202\323\344\223\002:\"5/v4/customers/{customer_id=*}:generateProductMixIdeas:\001*\332A=customer_id,plannable_location_id,currency_code,budget_micros'), + ), + _descriptor.MethodDescriptor( + name='GenerateReachForecast', + full_name='google.ads.googleads.v4.services.ReachPlanService.GenerateReachForecast', + index=3, + containing_service=None, + input_type=_GENERATEREACHFORECASTREQUEST, + output_type=_GENERATEREACHFORECASTRESPONSE, + serialized_options=_b('\202\323\344\223\0028\"3/v4/customers/{customer_id=*}:generateReachForecast:\001*\332A.customer_id,campaign_duration,planned_products'), + ), +]) +_sym_db.RegisterServiceDescriptor(_REACHPLANSERVICE) + +DESCRIPTOR.services_by_name['ReachPlanService'] = _REACHPLANSERVICE + +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v4/proto/services/reach_plan_service_pb2_grpc.py b/google/ads/google_ads/v4/proto/services/reach_plan_service_pb2_grpc.py new file mode 100644 index 000000000..9b1b73c3d --- /dev/null +++ b/google/ads/google_ads/v4/proto/services/reach_plan_service_pb2_grpc.py @@ -0,0 +1,112 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +import grpc + +from google.ads.google_ads.v4.proto.services import reach_plan_service_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_reach__plan__service__pb2 + + +class ReachPlanServiceStub(object): + """Proto file describing the reach plan service. + + Reach Plan Service gives users information about audience size that can + be reached through advertisement on YouTube. In particular, + GenerateReachForecast provides estimated number of people of specified + demographics that can be reached by an ad in a given market by a campaign of + certain duration with a defined budget. + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.ListPlannableLocations = channel.unary_unary( + '/google.ads.googleads.v4.services.ReachPlanService/ListPlannableLocations', + request_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_reach__plan__service__pb2.ListPlannableLocationsRequest.SerializeToString, + response_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_reach__plan__service__pb2.ListPlannableLocationsResponse.FromString, + ) + self.ListPlannableProducts = channel.unary_unary( + '/google.ads.googleads.v4.services.ReachPlanService/ListPlannableProducts', + request_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_reach__plan__service__pb2.ListPlannableProductsRequest.SerializeToString, + response_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_reach__plan__service__pb2.ListPlannableProductsResponse.FromString, + ) + self.GenerateProductMixIdeas = channel.unary_unary( + '/google.ads.googleads.v4.services.ReachPlanService/GenerateProductMixIdeas', + request_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_reach__plan__service__pb2.GenerateProductMixIdeasRequest.SerializeToString, + response_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_reach__plan__service__pb2.GenerateProductMixIdeasResponse.FromString, + ) + self.GenerateReachForecast = channel.unary_unary( + '/google.ads.googleads.v4.services.ReachPlanService/GenerateReachForecast', + request_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_reach__plan__service__pb2.GenerateReachForecastRequest.SerializeToString, + response_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_reach__plan__service__pb2.GenerateReachForecastResponse.FromString, + ) + + +class ReachPlanServiceServicer(object): + """Proto file describing the reach plan service. + + Reach Plan Service gives users information about audience size that can + be reached through advertisement on YouTube. In particular, + GenerateReachForecast provides estimated number of people of specified + demographics that can be reached by an ad in a given market by a campaign of + certain duration with a defined budget. + """ + + def ListPlannableLocations(self, request, context): + """Returns the list of plannable locations (for example, countries & DMAs). + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ListPlannableProducts(self, request, context): + """Returns the list of per-location plannable YouTube ad formats with allowed + targeting. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GenerateProductMixIdeas(self, request, context): + """Generates a product mix ideas given a set of preferences. This method + helps the advertiser to obtain a good mix of ad formats and budget + allocations based on its preferences. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GenerateReachForecast(self, request, context): + """Generates a reach forecast for a given targeting / product mix. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_ReachPlanServiceServicer_to_server(servicer, server): + rpc_method_handlers = { + 'ListPlannableLocations': grpc.unary_unary_rpc_method_handler( + servicer.ListPlannableLocations, + request_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_reach__plan__service__pb2.ListPlannableLocationsRequest.FromString, + response_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_reach__plan__service__pb2.ListPlannableLocationsResponse.SerializeToString, + ), + 'ListPlannableProducts': grpc.unary_unary_rpc_method_handler( + servicer.ListPlannableProducts, + request_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_reach__plan__service__pb2.ListPlannableProductsRequest.FromString, + response_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_reach__plan__service__pb2.ListPlannableProductsResponse.SerializeToString, + ), + 'GenerateProductMixIdeas': grpc.unary_unary_rpc_method_handler( + servicer.GenerateProductMixIdeas, + request_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_reach__plan__service__pb2.GenerateProductMixIdeasRequest.FromString, + response_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_reach__plan__service__pb2.GenerateProductMixIdeasResponse.SerializeToString, + ), + 'GenerateReachForecast': grpc.unary_unary_rpc_method_handler( + servicer.GenerateReachForecast, + request_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_reach__plan__service__pb2.GenerateReachForecastRequest.FromString, + response_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_reach__plan__service__pb2.GenerateReachForecastResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'google.ads.googleads.v4.services.ReachPlanService', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) diff --git a/google/ads/google_ads/v4/proto/services/recommendation_service_pb2.py b/google/ads/google_ads/v4/proto/services/recommendation_service_pb2.py new file mode 100644 index 000000000..f50188d94 --- /dev/null +++ b/google/ads/google_ads/v4/proto/services/recommendation_service_pb2.py @@ -0,0 +1,1135 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/services/recommendation_service.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.ads.google_ads.v4.proto.common import extensions_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_extensions__pb2 +from google.ads.google_ads.v4.proto.enums import keyword_match_type_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_keyword__match__type__pb2 +from google.ads.google_ads.v4.proto.resources import ad_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_ad__pb2 +from google.ads.google_ads.v4.proto.resources import recommendation_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_recommendation__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 +from google.api import client_pb2 as google_dot_api_dot_client__pb2 +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 +from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 +from google.rpc import status_pb2 as google_dot_rpc_dot_status__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/services/recommendation_service.proto', + package='google.ads.googleads.v4.services', + syntax='proto3', + serialized_options=_b('\n$com.google.ads.googleads.v4.servicesB\032RecommendationServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V4.Services\312\002 Google\\Ads\\GoogleAds\\V4\\Services\352\002$Google::Ads::GoogleAds::V4::Services'), + serialized_pb=_b('\nCgoogle/ads/googleads_v4/proto/services/recommendation_service.proto\x12 google.ads.googleads.v4.services\x1a\x35google/ads/googleads_v4/proto/common/extensions.proto\x1a.google.ads.googleads.v4.services.ApplyRecommendationOperationB\x03\xe0\x41\x02\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\"\x82\x0f\n\x1c\x41pplyRecommendationOperation\x12\x15\n\rresource_name\x18\x01 \x01(\t\x12r\n\x0f\x63\x61mpaign_budget\x18\x02 \x01(\x0b\x32W.google.ads.googleads.v4.services.ApplyRecommendationOperation.CampaignBudgetParametersH\x00\x12\x62\n\x07text_ad\x18\x03 \x01(\x0b\x32O.google.ads.googleads.v4.services.ApplyRecommendationOperation.TextAdParametersH\x00\x12\x63\n\x07keyword\x18\x04 \x01(\x0b\x32P.google.ads.googleads.v4.services.ApplyRecommendationOperation.KeywordParametersH\x00\x12t\n\x11target_cpa_opt_in\x18\x05 \x01(\x0b\x32W.google.ads.googleads.v4.services.ApplyRecommendationOperation.TargetCpaOptInParametersH\x00\x12v\n\x11\x63\x61llout_extension\x18\x06 \x01(\x0b\x32Y.google.ads.googleads.v4.services.ApplyRecommendationOperation.CalloutExtensionParametersH\x00\x12p\n\x0e\x63\x61ll_extension\x18\x07 \x01(\x0b\x32V.google.ads.googleads.v4.services.ApplyRecommendationOperation.CallExtensionParametersH\x00\x12x\n\x12sitelink_extension\x18\x08 \x01(\x0b\x32Z.google.ads.googleads.v4.services.ApplyRecommendationOperation.SitelinkExtensionParametersH\x00\x12w\n\x12move_unused_budget\x18\t \x01(\x0b\x32Y.google.ads.googleads.v4.services.ApplyRecommendationOperation.MoveUnusedBudgetParametersH\x00\x1aY\n\x18\x43\x61mpaignBudgetParameters\x12=\n\x18new_budget_amount_micros\x18\x01 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x1a\x45\n\x10TextAdParameters\x12\x31\n\x02\x61\x64\x18\x01 \x01(\x0b\x32%.google.ads.googleads.v4.resources.Ad\x1a\xd2\x01\n\x11KeywordParameters\x12.\n\x08\x61\x64_group\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12X\n\nmatch_type\x18\x02 \x01(\x0e\x32\x44.google.ads.googleads.v4.enums.KeywordMatchTypeEnum.KeywordMatchType\x12\x33\n\x0e\x63pc_bid_micros\x18\x03 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x1a\x9a\x01\n\x18TargetCpaOptInParameters\x12\x36\n\x11target_cpa_micros\x18\x01 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x46\n!new_campaign_budget_amount_micros\x18\x02 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x1ai\n\x1a\x43\x61lloutExtensionParameters\x12K\n\x12\x63\x61llout_extensions\x18\x01 \x03(\x0b\x32/.google.ads.googleads.v4.common.CalloutFeedItem\x1a`\n\x17\x43\x61llExtensionParameters\x12\x45\n\x0f\x63\x61ll_extensions\x18\x01 \x03(\x0b\x32,.google.ads.googleads.v4.common.CallFeedItem\x1al\n\x1bSitelinkExtensionParameters\x12M\n\x13sitelink_extensions\x18\x01 \x03(\x0b\x32\x30.google.ads.googleads.v4.common.SitelinkFeedItem\x1aX\n\x1aMoveUnusedBudgetParameters\x12:\n\x15\x62udget_micros_to_move\x18\x01 \x01(\x0b\x32\x1b.google.protobuf.Int64ValueB\x12\n\x10\x61pply_parameters\"\x9e\x01\n\x1b\x41pplyRecommendationResponse\x12L\n\x07results\x18\x01 \x03(\x0b\x32;.google.ads.googleads.v4.services.ApplyRecommendationResult\x12\x31\n\x15partial_failure_error\x18\x02 \x01(\x0b\x32\x12.google.rpc.Status\"2\n\x19\x41pplyRecommendationResult\x12\x15\n\rresource_name\x18\x01 \x01(\t\"\x82\x02\n\x1c\x44ismissRecommendationRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12v\n\noperations\x18\x03 \x03(\x0b\x32].google.ads.googleads.v4.services.DismissRecommendationRequest.DismissRecommendationOperationB\x03\xe0\x41\x02\x12\x17\n\x0fpartial_failure\x18\x02 \x01(\x08\x1a\x37\n\x1e\x44ismissRecommendationOperation\x12\x15\n\rresource_name\x18\x01 \x01(\t\"\xf6\x01\n\x1d\x44ismissRecommendationResponse\x12l\n\x07results\x18\x01 \x03(\x0b\x32[.google.ads.googleads.v4.services.DismissRecommendationResponse.DismissRecommendationResult\x12\x31\n\x15partial_failure_error\x18\x02 \x01(\x0b\x32\x12.google.rpc.Status\x1a\x34\n\x1b\x44ismissRecommendationResult\x12\x15\n\rresource_name\x18\x01 \x01(\t2\xe8\x05\n\x15RecommendationService\x12\xcd\x01\n\x11GetRecommendation\x12:.google.ads.googleads.v4.services.GetRecommendationRequest\x1a\x31.google.ads.googleads.v4.resources.Recommendation\"I\x82\xd3\xe4\x93\x02\x33\x12\x31/v4/{resource_name=customers/*/recommendations/*}\xda\x41\rresource_name\x12\xeb\x01\n\x13\x41pplyRecommendation\x12<.google.ads.googleads.v4.services.ApplyRecommendationRequest\x1a=.google.ads.googleads.v4.services.ApplyRecommendationResponse\"W\x82\xd3\xe4\x93\x02\x38\"3/v4/customers/{customer_id=*}/recommendations:apply:\x01*\xda\x41\x16\x63ustomer_id,operations\x12\xf3\x01\n\x15\x44ismissRecommendation\x12>.google.ads.googleads.v4.services.DismissRecommendationRequest\x1a?.google.ads.googleads.v4.services.DismissRecommendationResponse\"Y\x82\xd3\xe4\x93\x02:\"5/v4/customers/{customer_id=*}/recommendations:dismiss:\x01*\xda\x41\x16\x63ustomer_id,operations\x1a\x1b\xca\x41\x18googleads.googleapis.comB\x81\x02\n$com.google.ads.googleads.v4.servicesB\x1aRecommendationServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V4.Services\xca\x02 Google\\Ads\\GoogleAds\\V4\\Services\xea\x02$Google::Ads::GoogleAds::V4::Servicesb\x06proto3') + , + dependencies=[google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_extensions__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_keyword__match__type__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_ad__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_recommendation__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_api_dot_client__pb2.DESCRIPTOR,google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_api_dot_resource__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_rpc_dot_status__pb2.DESCRIPTOR,]) + + + + +_GETRECOMMENDATIONREQUEST = _descriptor.Descriptor( + name='GetRecommendationRequest', + full_name='google.ads.googleads.v4.services.GetRecommendationRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.services.GetRecommendationRequest.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002\372A)\n\'googleads.googleapis.com/Recommendation'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=506, + serialized_end=604, +) + + +_APPLYRECOMMENDATIONREQUEST = _descriptor.Descriptor( + name='ApplyRecommendationRequest', + full_name='google.ads.googleads.v4.services.ApplyRecommendationRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='customer_id', full_name='google.ads.googleads.v4.services.ApplyRecommendationRequest.customer_id', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='operations', full_name='google.ads.googleads.v4.services.ApplyRecommendationRequest.operations', index=1, + number=2, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='partial_failure', full_name='google.ads.googleads.v4.services.ApplyRecommendationRequest.partial_failure', index=2, + number=3, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=607, + serialized_end=775, +) + + +_APPLYRECOMMENDATIONOPERATION_CAMPAIGNBUDGETPARAMETERS = _descriptor.Descriptor( + name='CampaignBudgetParameters', + full_name='google.ads.googleads.v4.services.ApplyRecommendationOperation.CampaignBudgetParameters', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='new_budget_amount_micros', full_name='google.ads.googleads.v4.services.ApplyRecommendationOperation.CampaignBudgetParameters.new_budget_amount_micros', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1745, + serialized_end=1834, +) + +_APPLYRECOMMENDATIONOPERATION_TEXTADPARAMETERS = _descriptor.Descriptor( + name='TextAdParameters', + full_name='google.ads.googleads.v4.services.ApplyRecommendationOperation.TextAdParameters', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='ad', full_name='google.ads.googleads.v4.services.ApplyRecommendationOperation.TextAdParameters.ad', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1836, + serialized_end=1905, +) + +_APPLYRECOMMENDATIONOPERATION_KEYWORDPARAMETERS = _descriptor.Descriptor( + name='KeywordParameters', + full_name='google.ads.googleads.v4.services.ApplyRecommendationOperation.KeywordParameters', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='ad_group', full_name='google.ads.googleads.v4.services.ApplyRecommendationOperation.KeywordParameters.ad_group', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='match_type', full_name='google.ads.googleads.v4.services.ApplyRecommendationOperation.KeywordParameters.match_type', index=1, + number=2, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='cpc_bid_micros', full_name='google.ads.googleads.v4.services.ApplyRecommendationOperation.KeywordParameters.cpc_bid_micros', index=2, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1908, + serialized_end=2118, +) + +_APPLYRECOMMENDATIONOPERATION_TARGETCPAOPTINPARAMETERS = _descriptor.Descriptor( + name='TargetCpaOptInParameters', + full_name='google.ads.googleads.v4.services.ApplyRecommendationOperation.TargetCpaOptInParameters', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='target_cpa_micros', full_name='google.ads.googleads.v4.services.ApplyRecommendationOperation.TargetCpaOptInParameters.target_cpa_micros', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='new_campaign_budget_amount_micros', full_name='google.ads.googleads.v4.services.ApplyRecommendationOperation.TargetCpaOptInParameters.new_campaign_budget_amount_micros', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=2121, + serialized_end=2275, +) + +_APPLYRECOMMENDATIONOPERATION_CALLOUTEXTENSIONPARAMETERS = _descriptor.Descriptor( + name='CalloutExtensionParameters', + full_name='google.ads.googleads.v4.services.ApplyRecommendationOperation.CalloutExtensionParameters', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='callout_extensions', full_name='google.ads.googleads.v4.services.ApplyRecommendationOperation.CalloutExtensionParameters.callout_extensions', index=0, + number=1, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=2277, + serialized_end=2382, +) + +_APPLYRECOMMENDATIONOPERATION_CALLEXTENSIONPARAMETERS = _descriptor.Descriptor( + name='CallExtensionParameters', + full_name='google.ads.googleads.v4.services.ApplyRecommendationOperation.CallExtensionParameters', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='call_extensions', full_name='google.ads.googleads.v4.services.ApplyRecommendationOperation.CallExtensionParameters.call_extensions', index=0, + number=1, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=2384, + serialized_end=2480, +) + +_APPLYRECOMMENDATIONOPERATION_SITELINKEXTENSIONPARAMETERS = _descriptor.Descriptor( + name='SitelinkExtensionParameters', + full_name='google.ads.googleads.v4.services.ApplyRecommendationOperation.SitelinkExtensionParameters', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='sitelink_extensions', full_name='google.ads.googleads.v4.services.ApplyRecommendationOperation.SitelinkExtensionParameters.sitelink_extensions', index=0, + number=1, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=2482, + serialized_end=2590, +) + +_APPLYRECOMMENDATIONOPERATION_MOVEUNUSEDBUDGETPARAMETERS = _descriptor.Descriptor( + name='MoveUnusedBudgetParameters', + full_name='google.ads.googleads.v4.services.ApplyRecommendationOperation.MoveUnusedBudgetParameters', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='budget_micros_to_move', full_name='google.ads.googleads.v4.services.ApplyRecommendationOperation.MoveUnusedBudgetParameters.budget_micros_to_move', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=2592, + serialized_end=2680, +) + +_APPLYRECOMMENDATIONOPERATION = _descriptor.Descriptor( + name='ApplyRecommendationOperation', + full_name='google.ads.googleads.v4.services.ApplyRecommendationOperation', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.services.ApplyRecommendationOperation.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='campaign_budget', full_name='google.ads.googleads.v4.services.ApplyRecommendationOperation.campaign_budget', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='text_ad', full_name='google.ads.googleads.v4.services.ApplyRecommendationOperation.text_ad', index=2, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='keyword', full_name='google.ads.googleads.v4.services.ApplyRecommendationOperation.keyword', index=3, + number=4, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='target_cpa_opt_in', full_name='google.ads.googleads.v4.services.ApplyRecommendationOperation.target_cpa_opt_in', index=4, + number=5, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='callout_extension', full_name='google.ads.googleads.v4.services.ApplyRecommendationOperation.callout_extension', index=5, + number=6, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='call_extension', full_name='google.ads.googleads.v4.services.ApplyRecommendationOperation.call_extension', index=6, + number=7, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='sitelink_extension', full_name='google.ads.googleads.v4.services.ApplyRecommendationOperation.sitelink_extension', index=7, + number=8, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='move_unused_budget', full_name='google.ads.googleads.v4.services.ApplyRecommendationOperation.move_unused_budget', index=8, + number=9, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[_APPLYRECOMMENDATIONOPERATION_CAMPAIGNBUDGETPARAMETERS, _APPLYRECOMMENDATIONOPERATION_TEXTADPARAMETERS, _APPLYRECOMMENDATIONOPERATION_KEYWORDPARAMETERS, _APPLYRECOMMENDATIONOPERATION_TARGETCPAOPTINPARAMETERS, _APPLYRECOMMENDATIONOPERATION_CALLOUTEXTENSIONPARAMETERS, _APPLYRECOMMENDATIONOPERATION_CALLEXTENSIONPARAMETERS, _APPLYRECOMMENDATIONOPERATION_SITELINKEXTENSIONPARAMETERS, _APPLYRECOMMENDATIONOPERATION_MOVEUNUSEDBUDGETPARAMETERS, ], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name='apply_parameters', full_name='google.ads.googleads.v4.services.ApplyRecommendationOperation.apply_parameters', + index=0, containing_type=None, fields=[]), + ], + serialized_start=778, + serialized_end=2700, +) + + +_APPLYRECOMMENDATIONRESPONSE = _descriptor.Descriptor( + name='ApplyRecommendationResponse', + full_name='google.ads.googleads.v4.services.ApplyRecommendationResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='results', full_name='google.ads.googleads.v4.services.ApplyRecommendationResponse.results', index=0, + number=1, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='partial_failure_error', full_name='google.ads.googleads.v4.services.ApplyRecommendationResponse.partial_failure_error', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=2703, + serialized_end=2861, +) + + +_APPLYRECOMMENDATIONRESULT = _descriptor.Descriptor( + name='ApplyRecommendationResult', + full_name='google.ads.googleads.v4.services.ApplyRecommendationResult', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.services.ApplyRecommendationResult.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=2863, + serialized_end=2913, +) + + +_DISMISSRECOMMENDATIONREQUEST_DISMISSRECOMMENDATIONOPERATION = _descriptor.Descriptor( + name='DismissRecommendationOperation', + full_name='google.ads.googleads.v4.services.DismissRecommendationRequest.DismissRecommendationOperation', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.services.DismissRecommendationRequest.DismissRecommendationOperation.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=3119, + serialized_end=3174, +) + +_DISMISSRECOMMENDATIONREQUEST = _descriptor.Descriptor( + name='DismissRecommendationRequest', + full_name='google.ads.googleads.v4.services.DismissRecommendationRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='customer_id', full_name='google.ads.googleads.v4.services.DismissRecommendationRequest.customer_id', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='operations', full_name='google.ads.googleads.v4.services.DismissRecommendationRequest.operations', index=1, + number=3, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='partial_failure', full_name='google.ads.googleads.v4.services.DismissRecommendationRequest.partial_failure', index=2, + number=2, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[_DISMISSRECOMMENDATIONREQUEST_DISMISSRECOMMENDATIONOPERATION, ], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=2916, + serialized_end=3174, +) + + +_DISMISSRECOMMENDATIONRESPONSE_DISMISSRECOMMENDATIONRESULT = _descriptor.Descriptor( + name='DismissRecommendationResult', + full_name='google.ads.googleads.v4.services.DismissRecommendationResponse.DismissRecommendationResult', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.services.DismissRecommendationResponse.DismissRecommendationResult.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=3371, + serialized_end=3423, +) + +_DISMISSRECOMMENDATIONRESPONSE = _descriptor.Descriptor( + name='DismissRecommendationResponse', + full_name='google.ads.googleads.v4.services.DismissRecommendationResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='results', full_name='google.ads.googleads.v4.services.DismissRecommendationResponse.results', index=0, + number=1, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='partial_failure_error', full_name='google.ads.googleads.v4.services.DismissRecommendationResponse.partial_failure_error', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[_DISMISSRECOMMENDATIONRESPONSE_DISMISSRECOMMENDATIONRESULT, ], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=3177, + serialized_end=3423, +) + +_APPLYRECOMMENDATIONREQUEST.fields_by_name['operations'].message_type = _APPLYRECOMMENDATIONOPERATION +_APPLYRECOMMENDATIONOPERATION_CAMPAIGNBUDGETPARAMETERS.fields_by_name['new_budget_amount_micros'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_APPLYRECOMMENDATIONOPERATION_CAMPAIGNBUDGETPARAMETERS.containing_type = _APPLYRECOMMENDATIONOPERATION +_APPLYRECOMMENDATIONOPERATION_TEXTADPARAMETERS.fields_by_name['ad'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_ad__pb2._AD +_APPLYRECOMMENDATIONOPERATION_TEXTADPARAMETERS.containing_type = _APPLYRECOMMENDATIONOPERATION +_APPLYRECOMMENDATIONOPERATION_KEYWORDPARAMETERS.fields_by_name['ad_group'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_APPLYRECOMMENDATIONOPERATION_KEYWORDPARAMETERS.fields_by_name['match_type'].enum_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_enums_dot_keyword__match__type__pb2._KEYWORDMATCHTYPEENUM_KEYWORDMATCHTYPE +_APPLYRECOMMENDATIONOPERATION_KEYWORDPARAMETERS.fields_by_name['cpc_bid_micros'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_APPLYRECOMMENDATIONOPERATION_KEYWORDPARAMETERS.containing_type = _APPLYRECOMMENDATIONOPERATION +_APPLYRECOMMENDATIONOPERATION_TARGETCPAOPTINPARAMETERS.fields_by_name['target_cpa_micros'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_APPLYRECOMMENDATIONOPERATION_TARGETCPAOPTINPARAMETERS.fields_by_name['new_campaign_budget_amount_micros'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_APPLYRECOMMENDATIONOPERATION_TARGETCPAOPTINPARAMETERS.containing_type = _APPLYRECOMMENDATIONOPERATION +_APPLYRECOMMENDATIONOPERATION_CALLOUTEXTENSIONPARAMETERS.fields_by_name['callout_extensions'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_extensions__pb2._CALLOUTFEEDITEM +_APPLYRECOMMENDATIONOPERATION_CALLOUTEXTENSIONPARAMETERS.containing_type = _APPLYRECOMMENDATIONOPERATION +_APPLYRECOMMENDATIONOPERATION_CALLEXTENSIONPARAMETERS.fields_by_name['call_extensions'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_extensions__pb2._CALLFEEDITEM +_APPLYRECOMMENDATIONOPERATION_CALLEXTENSIONPARAMETERS.containing_type = _APPLYRECOMMENDATIONOPERATION +_APPLYRECOMMENDATIONOPERATION_SITELINKEXTENSIONPARAMETERS.fields_by_name['sitelink_extensions'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_extensions__pb2._SITELINKFEEDITEM +_APPLYRECOMMENDATIONOPERATION_SITELINKEXTENSIONPARAMETERS.containing_type = _APPLYRECOMMENDATIONOPERATION +_APPLYRECOMMENDATIONOPERATION_MOVEUNUSEDBUDGETPARAMETERS.fields_by_name['budget_micros_to_move'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_APPLYRECOMMENDATIONOPERATION_MOVEUNUSEDBUDGETPARAMETERS.containing_type = _APPLYRECOMMENDATIONOPERATION +_APPLYRECOMMENDATIONOPERATION.fields_by_name['campaign_budget'].message_type = _APPLYRECOMMENDATIONOPERATION_CAMPAIGNBUDGETPARAMETERS +_APPLYRECOMMENDATIONOPERATION.fields_by_name['text_ad'].message_type = _APPLYRECOMMENDATIONOPERATION_TEXTADPARAMETERS +_APPLYRECOMMENDATIONOPERATION.fields_by_name['keyword'].message_type = _APPLYRECOMMENDATIONOPERATION_KEYWORDPARAMETERS +_APPLYRECOMMENDATIONOPERATION.fields_by_name['target_cpa_opt_in'].message_type = _APPLYRECOMMENDATIONOPERATION_TARGETCPAOPTINPARAMETERS +_APPLYRECOMMENDATIONOPERATION.fields_by_name['callout_extension'].message_type = _APPLYRECOMMENDATIONOPERATION_CALLOUTEXTENSIONPARAMETERS +_APPLYRECOMMENDATIONOPERATION.fields_by_name['call_extension'].message_type = _APPLYRECOMMENDATIONOPERATION_CALLEXTENSIONPARAMETERS +_APPLYRECOMMENDATIONOPERATION.fields_by_name['sitelink_extension'].message_type = _APPLYRECOMMENDATIONOPERATION_SITELINKEXTENSIONPARAMETERS +_APPLYRECOMMENDATIONOPERATION.fields_by_name['move_unused_budget'].message_type = _APPLYRECOMMENDATIONOPERATION_MOVEUNUSEDBUDGETPARAMETERS +_APPLYRECOMMENDATIONOPERATION.oneofs_by_name['apply_parameters'].fields.append( + _APPLYRECOMMENDATIONOPERATION.fields_by_name['campaign_budget']) +_APPLYRECOMMENDATIONOPERATION.fields_by_name['campaign_budget'].containing_oneof = _APPLYRECOMMENDATIONOPERATION.oneofs_by_name['apply_parameters'] +_APPLYRECOMMENDATIONOPERATION.oneofs_by_name['apply_parameters'].fields.append( + _APPLYRECOMMENDATIONOPERATION.fields_by_name['text_ad']) +_APPLYRECOMMENDATIONOPERATION.fields_by_name['text_ad'].containing_oneof = _APPLYRECOMMENDATIONOPERATION.oneofs_by_name['apply_parameters'] +_APPLYRECOMMENDATIONOPERATION.oneofs_by_name['apply_parameters'].fields.append( + _APPLYRECOMMENDATIONOPERATION.fields_by_name['keyword']) +_APPLYRECOMMENDATIONOPERATION.fields_by_name['keyword'].containing_oneof = _APPLYRECOMMENDATIONOPERATION.oneofs_by_name['apply_parameters'] +_APPLYRECOMMENDATIONOPERATION.oneofs_by_name['apply_parameters'].fields.append( + _APPLYRECOMMENDATIONOPERATION.fields_by_name['target_cpa_opt_in']) +_APPLYRECOMMENDATIONOPERATION.fields_by_name['target_cpa_opt_in'].containing_oneof = _APPLYRECOMMENDATIONOPERATION.oneofs_by_name['apply_parameters'] +_APPLYRECOMMENDATIONOPERATION.oneofs_by_name['apply_parameters'].fields.append( + _APPLYRECOMMENDATIONOPERATION.fields_by_name['callout_extension']) +_APPLYRECOMMENDATIONOPERATION.fields_by_name['callout_extension'].containing_oneof = _APPLYRECOMMENDATIONOPERATION.oneofs_by_name['apply_parameters'] +_APPLYRECOMMENDATIONOPERATION.oneofs_by_name['apply_parameters'].fields.append( + _APPLYRECOMMENDATIONOPERATION.fields_by_name['call_extension']) +_APPLYRECOMMENDATIONOPERATION.fields_by_name['call_extension'].containing_oneof = _APPLYRECOMMENDATIONOPERATION.oneofs_by_name['apply_parameters'] +_APPLYRECOMMENDATIONOPERATION.oneofs_by_name['apply_parameters'].fields.append( + _APPLYRECOMMENDATIONOPERATION.fields_by_name['sitelink_extension']) +_APPLYRECOMMENDATIONOPERATION.fields_by_name['sitelink_extension'].containing_oneof = _APPLYRECOMMENDATIONOPERATION.oneofs_by_name['apply_parameters'] +_APPLYRECOMMENDATIONOPERATION.oneofs_by_name['apply_parameters'].fields.append( + _APPLYRECOMMENDATIONOPERATION.fields_by_name['move_unused_budget']) +_APPLYRECOMMENDATIONOPERATION.fields_by_name['move_unused_budget'].containing_oneof = _APPLYRECOMMENDATIONOPERATION.oneofs_by_name['apply_parameters'] +_APPLYRECOMMENDATIONRESPONSE.fields_by_name['results'].message_type = _APPLYRECOMMENDATIONRESULT +_APPLYRECOMMENDATIONRESPONSE.fields_by_name['partial_failure_error'].message_type = google_dot_rpc_dot_status__pb2._STATUS +_DISMISSRECOMMENDATIONREQUEST_DISMISSRECOMMENDATIONOPERATION.containing_type = _DISMISSRECOMMENDATIONREQUEST +_DISMISSRECOMMENDATIONREQUEST.fields_by_name['operations'].message_type = _DISMISSRECOMMENDATIONREQUEST_DISMISSRECOMMENDATIONOPERATION +_DISMISSRECOMMENDATIONRESPONSE_DISMISSRECOMMENDATIONRESULT.containing_type = _DISMISSRECOMMENDATIONRESPONSE +_DISMISSRECOMMENDATIONRESPONSE.fields_by_name['results'].message_type = _DISMISSRECOMMENDATIONRESPONSE_DISMISSRECOMMENDATIONRESULT +_DISMISSRECOMMENDATIONRESPONSE.fields_by_name['partial_failure_error'].message_type = google_dot_rpc_dot_status__pb2._STATUS +DESCRIPTOR.message_types_by_name['GetRecommendationRequest'] = _GETRECOMMENDATIONREQUEST +DESCRIPTOR.message_types_by_name['ApplyRecommendationRequest'] = _APPLYRECOMMENDATIONREQUEST +DESCRIPTOR.message_types_by_name['ApplyRecommendationOperation'] = _APPLYRECOMMENDATIONOPERATION +DESCRIPTOR.message_types_by_name['ApplyRecommendationResponse'] = _APPLYRECOMMENDATIONRESPONSE +DESCRIPTOR.message_types_by_name['ApplyRecommendationResult'] = _APPLYRECOMMENDATIONRESULT +DESCRIPTOR.message_types_by_name['DismissRecommendationRequest'] = _DISMISSRECOMMENDATIONREQUEST +DESCRIPTOR.message_types_by_name['DismissRecommendationResponse'] = _DISMISSRECOMMENDATIONRESPONSE +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +GetRecommendationRequest = _reflection.GeneratedProtocolMessageType('GetRecommendationRequest', (_message.Message,), dict( + DESCRIPTOR = _GETRECOMMENDATIONREQUEST, + __module__ = 'google.ads.googleads_v4.proto.services.recommendation_service_pb2' + , + __doc__ = """Request message for + [RecommendationService.GetRecommendation][google.ads.googleads.v4.services.RecommendationService.GetRecommendation]. + + + Attributes: + resource_name: + Required. The resource name of the recommendation to fetch. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.GetRecommendationRequest) + )) +_sym_db.RegisterMessage(GetRecommendationRequest) + +ApplyRecommendationRequest = _reflection.GeneratedProtocolMessageType('ApplyRecommendationRequest', (_message.Message,), dict( + DESCRIPTOR = _APPLYRECOMMENDATIONREQUEST, + __module__ = 'google.ads.googleads_v4.proto.services.recommendation_service_pb2' + , + __doc__ = """Request message for + [RecommendationService.ApplyRecommendation][google.ads.googleads.v4.services.RecommendationService.ApplyRecommendation]. + + + Attributes: + customer_id: + Required. The ID of the customer with the recommendation. + operations: + Required. The list of operations to apply recommendations. If + partial\_failure=false all recommendations should be of the + same type There is a limit of 100 operations per request. + partial_failure: + If true, successful operations will be carried out and invalid + operations will return errors. If false, operations will be + carried out as a transaction if and only if they are all + valid. Default is false. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.ApplyRecommendationRequest) + )) +_sym_db.RegisterMessage(ApplyRecommendationRequest) + +ApplyRecommendationOperation = _reflection.GeneratedProtocolMessageType('ApplyRecommendationOperation', (_message.Message,), dict( + + CampaignBudgetParameters = _reflection.GeneratedProtocolMessageType('CampaignBudgetParameters', (_message.Message,), dict( + DESCRIPTOR = _APPLYRECOMMENDATIONOPERATION_CAMPAIGNBUDGETPARAMETERS, + __module__ = 'google.ads.googleads_v4.proto.services.recommendation_service_pb2' + , + __doc__ = """Parameters to use when applying a campaign budget recommendation. + + + Attributes: + new_budget_amount_micros: + New budget amount to set for target budget resource. This is a + required field. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.ApplyRecommendationOperation.CampaignBudgetParameters) + )) + , + + TextAdParameters = _reflection.GeneratedProtocolMessageType('TextAdParameters', (_message.Message,), dict( + DESCRIPTOR = _APPLYRECOMMENDATIONOPERATION_TEXTADPARAMETERS, + __module__ = 'google.ads.googleads_v4.proto.services.recommendation_service_pb2' + , + __doc__ = """Parameters to use when applying a text ad recommendation. + + + Attributes: + ad: + New ad to add to recommended ad group. All necessary fields + need to be set in this message. This is a required field. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.ApplyRecommendationOperation.TextAdParameters) + )) + , + + KeywordParameters = _reflection.GeneratedProtocolMessageType('KeywordParameters', (_message.Message,), dict( + DESCRIPTOR = _APPLYRECOMMENDATIONOPERATION_KEYWORDPARAMETERS, + __module__ = 'google.ads.googleads_v4.proto.services.recommendation_service_pb2' + , + __doc__ = """Parameters to use when applying keyword recommendation. + + + Attributes: + ad_group: + The ad group resource to add keyword to. This is a required + field. + match_type: + The match type of the keyword. This is a required field. + cpc_bid_micros: + Optional, CPC bid to set for the keyword. If not set, keyword + will use bid based on bidding strategy used by target ad + group. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.ApplyRecommendationOperation.KeywordParameters) + )) + , + + TargetCpaOptInParameters = _reflection.GeneratedProtocolMessageType('TargetCpaOptInParameters', (_message.Message,), dict( + DESCRIPTOR = _APPLYRECOMMENDATIONOPERATION_TARGETCPAOPTINPARAMETERS, + __module__ = 'google.ads.googleads_v4.proto.services.recommendation_service_pb2' + , + __doc__ = """Parameters to use when applying Target CPA recommendation. + + + Attributes: + target_cpa_micros: + Average CPA to use for Target CPA bidding strategy. This is a + required field. + new_campaign_budget_amount_micros: + Optional, budget amount to set for the campaign. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.ApplyRecommendationOperation.TargetCpaOptInParameters) + )) + , + + CalloutExtensionParameters = _reflection.GeneratedProtocolMessageType('CalloutExtensionParameters', (_message.Message,), dict( + DESCRIPTOR = _APPLYRECOMMENDATIONOPERATION_CALLOUTEXTENSIONPARAMETERS, + __module__ = 'google.ads.googleads_v4.proto.services.recommendation_service_pb2' + , + __doc__ = """Parameters to use when applying callout extension recommendation. + + + Attributes: + callout_extensions: + Callout extensions to be added. This is a required field. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.ApplyRecommendationOperation.CalloutExtensionParameters) + )) + , + + CallExtensionParameters = _reflection.GeneratedProtocolMessageType('CallExtensionParameters', (_message.Message,), dict( + DESCRIPTOR = _APPLYRECOMMENDATIONOPERATION_CALLEXTENSIONPARAMETERS, + __module__ = 'google.ads.googleads_v4.proto.services.recommendation_service_pb2' + , + __doc__ = """Parameters to use when applying call extension recommendation. + + + Attributes: + call_extensions: + Call extensions to be added. This is a required field. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.ApplyRecommendationOperation.CallExtensionParameters) + )) + , + + SitelinkExtensionParameters = _reflection.GeneratedProtocolMessageType('SitelinkExtensionParameters', (_message.Message,), dict( + DESCRIPTOR = _APPLYRECOMMENDATIONOPERATION_SITELINKEXTENSIONPARAMETERS, + __module__ = 'google.ads.googleads_v4.proto.services.recommendation_service_pb2' + , + __doc__ = """Parameters to use when applying sitelink extension recommendation. + + + Attributes: + sitelink_extensions: + Sitelink extensions to be added. This is a required field. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.ApplyRecommendationOperation.SitelinkExtensionParameters) + )) + , + + MoveUnusedBudgetParameters = _reflection.GeneratedProtocolMessageType('MoveUnusedBudgetParameters', (_message.Message,), dict( + DESCRIPTOR = _APPLYRECOMMENDATIONOPERATION_MOVEUNUSEDBUDGETPARAMETERS, + __module__ = 'google.ads.googleads_v4.proto.services.recommendation_service_pb2' + , + __doc__ = """Parameters to use when applying move unused budget recommendation. + + + Attributes: + budget_micros_to_move: + Budget amount to move from excess budget to constrained + budget. This is a required field. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.ApplyRecommendationOperation.MoveUnusedBudgetParameters) + )) + , + DESCRIPTOR = _APPLYRECOMMENDATIONOPERATION, + __module__ = 'google.ads.googleads_v4.proto.services.recommendation_service_pb2' + , + __doc__ = """Information about the operation to apply a recommendation and any + parameters to customize it. + + + Attributes: + resource_name: + The resource name of the recommendation to apply. + apply_parameters: + Parameters to use when applying the recommendation. + campaign_budget: + Optional parameters to use when applying a campaign budget + recommendation. + text_ad: + Optional parameters to use when applying a text ad + recommendation. + keyword: + Optional parameters to use when applying keyword + recommendation. + target_cpa_opt_in: + Optional parameters to use when applying target CPA opt-in + recommendation. + callout_extension: + Parameters to use when applying callout extension + recommendation. + call_extension: + Parameters to use when applying call extension recommendation. + sitelink_extension: + Parameters to use when applying sitelink extension + recommendation. + move_unused_budget: + Parameters to use when applying move unused budget + recommendation. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.ApplyRecommendationOperation) + )) +_sym_db.RegisterMessage(ApplyRecommendationOperation) +_sym_db.RegisterMessage(ApplyRecommendationOperation.CampaignBudgetParameters) +_sym_db.RegisterMessage(ApplyRecommendationOperation.TextAdParameters) +_sym_db.RegisterMessage(ApplyRecommendationOperation.KeywordParameters) +_sym_db.RegisterMessage(ApplyRecommendationOperation.TargetCpaOptInParameters) +_sym_db.RegisterMessage(ApplyRecommendationOperation.CalloutExtensionParameters) +_sym_db.RegisterMessage(ApplyRecommendationOperation.CallExtensionParameters) +_sym_db.RegisterMessage(ApplyRecommendationOperation.SitelinkExtensionParameters) +_sym_db.RegisterMessage(ApplyRecommendationOperation.MoveUnusedBudgetParameters) + +ApplyRecommendationResponse = _reflection.GeneratedProtocolMessageType('ApplyRecommendationResponse', (_message.Message,), dict( + DESCRIPTOR = _APPLYRECOMMENDATIONRESPONSE, + __module__ = 'google.ads.googleads_v4.proto.services.recommendation_service_pb2' + , + __doc__ = """Response message for + [RecommendationService.ApplyRecommendation][google.ads.googleads.v4.services.RecommendationService.ApplyRecommendation]. + + + Attributes: + results: + Results of operations to apply recommendations. + partial_failure_error: + Errors that pertain to operation failures in the partial + failure mode. Returned only when partial\_failure = true and + all errors occur inside the operations. If any errors occur + outside the operations (e.g. auth errors) we return the RPC + level error. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.ApplyRecommendationResponse) + )) +_sym_db.RegisterMessage(ApplyRecommendationResponse) + +ApplyRecommendationResult = _reflection.GeneratedProtocolMessageType('ApplyRecommendationResult', (_message.Message,), dict( + DESCRIPTOR = _APPLYRECOMMENDATIONRESULT, + __module__ = 'google.ads.googleads_v4.proto.services.recommendation_service_pb2' + , + __doc__ = """The result of applying a recommendation. + + + Attributes: + resource_name: + Returned for successful applies. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.ApplyRecommendationResult) + )) +_sym_db.RegisterMessage(ApplyRecommendationResult) + +DismissRecommendationRequest = _reflection.GeneratedProtocolMessageType('DismissRecommendationRequest', (_message.Message,), dict( + + DismissRecommendationOperation = _reflection.GeneratedProtocolMessageType('DismissRecommendationOperation', (_message.Message,), dict( + DESCRIPTOR = _DISMISSRECOMMENDATIONREQUEST_DISMISSRECOMMENDATIONOPERATION, + __module__ = 'google.ads.googleads_v4.proto.services.recommendation_service_pb2' + , + __doc__ = """Operation to dismiss a single recommendation identified by + resource\_name. + + + Attributes: + resource_name: + The resource name of the recommendation to dismiss. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.DismissRecommendationRequest.DismissRecommendationOperation) + )) + , + DESCRIPTOR = _DISMISSRECOMMENDATIONREQUEST, + __module__ = 'google.ads.googleads_v4.proto.services.recommendation_service_pb2' + , + __doc__ = """Request message for + [RecommendationService.DismissRecommendation][google.ads.googleads.v4.services.RecommendationService.DismissRecommendation]. + + + Attributes: + customer_id: + Required. The ID of the customer with the recommendation. + operations: + Required. The list of operations to dismiss recommendations. + If partial\_failure=false all recommendations should be of the + same type There is a limit of 100 operations per request. + partial_failure: + If true, successful operations will be carried out and invalid + operations will return errors. If false, operations will be + carried in a single transaction if and only if they are all + valid. Default is false. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.DismissRecommendationRequest) + )) +_sym_db.RegisterMessage(DismissRecommendationRequest) +_sym_db.RegisterMessage(DismissRecommendationRequest.DismissRecommendationOperation) + +DismissRecommendationResponse = _reflection.GeneratedProtocolMessageType('DismissRecommendationResponse', (_message.Message,), dict( + + DismissRecommendationResult = _reflection.GeneratedProtocolMessageType('DismissRecommendationResult', (_message.Message,), dict( + DESCRIPTOR = _DISMISSRECOMMENDATIONRESPONSE_DISMISSRECOMMENDATIONRESULT, + __module__ = 'google.ads.googleads_v4.proto.services.recommendation_service_pb2' + , + __doc__ = """The result of dismissing a recommendation. + + + Attributes: + resource_name: + Returned for successful dismissals. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.DismissRecommendationResponse.DismissRecommendationResult) + )) + , + DESCRIPTOR = _DISMISSRECOMMENDATIONRESPONSE, + __module__ = 'google.ads.googleads_v4.proto.services.recommendation_service_pb2' + , + __doc__ = """Response message for + [RecommendationService.DismissRecommendation][google.ads.googleads.v4.services.RecommendationService.DismissRecommendation]. + + + Attributes: + results: + Results of operations to dismiss recommendations. + partial_failure_error: + Errors that pertain to operation failures in the partial + failure mode. Returned only when partial\_failure = true and + all errors occur inside the operations. If any errors occur + outside the operations (e.g. auth errors) we return the RPC + level error. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.DismissRecommendationResponse) + )) +_sym_db.RegisterMessage(DismissRecommendationResponse) +_sym_db.RegisterMessage(DismissRecommendationResponse.DismissRecommendationResult) + + +DESCRIPTOR._options = None +_GETRECOMMENDATIONREQUEST.fields_by_name['resource_name']._options = None +_APPLYRECOMMENDATIONREQUEST.fields_by_name['customer_id']._options = None +_APPLYRECOMMENDATIONREQUEST.fields_by_name['operations']._options = None +_DISMISSRECOMMENDATIONREQUEST.fields_by_name['customer_id']._options = None +_DISMISSRECOMMENDATIONREQUEST.fields_by_name['operations']._options = None + +_RECOMMENDATIONSERVICE = _descriptor.ServiceDescriptor( + name='RecommendationService', + full_name='google.ads.googleads.v4.services.RecommendationService', + file=DESCRIPTOR, + index=0, + serialized_options=_b('\312A\030googleads.googleapis.com'), + serialized_start=3426, + serialized_end=4170, + methods=[ + _descriptor.MethodDescriptor( + name='GetRecommendation', + full_name='google.ads.googleads.v4.services.RecommendationService.GetRecommendation', + index=0, + containing_service=None, + input_type=_GETRECOMMENDATIONREQUEST, + output_type=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_recommendation__pb2._RECOMMENDATION, + serialized_options=_b('\202\323\344\223\0023\0221/v4/{resource_name=customers/*/recommendations/*}\332A\rresource_name'), + ), + _descriptor.MethodDescriptor( + name='ApplyRecommendation', + full_name='google.ads.googleads.v4.services.RecommendationService.ApplyRecommendation', + index=1, + containing_service=None, + input_type=_APPLYRECOMMENDATIONREQUEST, + output_type=_APPLYRECOMMENDATIONRESPONSE, + serialized_options=_b('\202\323\344\223\0028\"3/v4/customers/{customer_id=*}/recommendations:apply:\001*\332A\026customer_id,operations'), + ), + _descriptor.MethodDescriptor( + name='DismissRecommendation', + full_name='google.ads.googleads.v4.services.RecommendationService.DismissRecommendation', + index=2, + containing_service=None, + input_type=_DISMISSRECOMMENDATIONREQUEST, + output_type=_DISMISSRECOMMENDATIONRESPONSE, + serialized_options=_b('\202\323\344\223\002:\"5/v4/customers/{customer_id=*}/recommendations:dismiss:\001*\332A\026customer_id,operations'), + ), +]) +_sym_db.RegisterServiceDescriptor(_RECOMMENDATIONSERVICE) + +DESCRIPTOR.services_by_name['RecommendationService'] = _RECOMMENDATIONSERVICE + +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v4/proto/services/recommendation_service_pb2_grpc.py b/google/ads/google_ads/v4/proto/services/recommendation_service_pb2_grpc.py new file mode 100644 index 000000000..5fc0027da --- /dev/null +++ b/google/ads/google_ads/v4/proto/services/recommendation_service_pb2_grpc.py @@ -0,0 +1,85 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +import grpc + +from google.ads.google_ads.v4.proto.resources import recommendation_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_recommendation__pb2 +from google.ads.google_ads.v4.proto.services import recommendation_service_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_recommendation__service__pb2 + + +class RecommendationServiceStub(object): + """Proto file describing the Recommendation service. + + Service to manage recommendations. + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.GetRecommendation = channel.unary_unary( + '/google.ads.googleads.v4.services.RecommendationService/GetRecommendation', + request_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_recommendation__service__pb2.GetRecommendationRequest.SerializeToString, + response_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_recommendation__pb2.Recommendation.FromString, + ) + self.ApplyRecommendation = channel.unary_unary( + '/google.ads.googleads.v4.services.RecommendationService/ApplyRecommendation', + request_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_recommendation__service__pb2.ApplyRecommendationRequest.SerializeToString, + response_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_recommendation__service__pb2.ApplyRecommendationResponse.FromString, + ) + self.DismissRecommendation = channel.unary_unary( + '/google.ads.googleads.v4.services.RecommendationService/DismissRecommendation', + request_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_recommendation__service__pb2.DismissRecommendationRequest.SerializeToString, + response_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_recommendation__service__pb2.DismissRecommendationResponse.FromString, + ) + + +class RecommendationServiceServicer(object): + """Proto file describing the Recommendation service. + + Service to manage recommendations. + """ + + def GetRecommendation(self, request, context): + """Returns the requested recommendation in full detail. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ApplyRecommendation(self, request, context): + """Applies given recommendations with corresponding apply parameters. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def DismissRecommendation(self, request, context): + """Dismisses given recommendations. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_RecommendationServiceServicer_to_server(servicer, server): + rpc_method_handlers = { + 'GetRecommendation': grpc.unary_unary_rpc_method_handler( + servicer.GetRecommendation, + request_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_recommendation__service__pb2.GetRecommendationRequest.FromString, + response_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_recommendation__pb2.Recommendation.SerializeToString, + ), + 'ApplyRecommendation': grpc.unary_unary_rpc_method_handler( + servicer.ApplyRecommendation, + request_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_recommendation__service__pb2.ApplyRecommendationRequest.FromString, + response_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_recommendation__service__pb2.ApplyRecommendationResponse.SerializeToString, + ), + 'DismissRecommendation': grpc.unary_unary_rpc_method_handler( + servicer.DismissRecommendation, + request_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_recommendation__service__pb2.DismissRecommendationRequest.FromString, + response_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_recommendation__service__pb2.DismissRecommendationResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'google.ads.googleads.v4.services.RecommendationService', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) diff --git a/google/ads/google_ads/v4/proto/services/remarketing_action_service_pb2.py b/google/ads/google_ads/v4/proto/services/remarketing_action_service_pb2.py new file mode 100644 index 000000000..635f959b4 --- /dev/null +++ b/google/ads/google_ads/v4/proto/services/remarketing_action_service_pb2.py @@ -0,0 +1,398 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/services/remarketing_action_service.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.ads.google_ads.v4.proto.resources import remarketing_action_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_remarketing__action__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 +from google.api import client_pb2 as google_dot_api_dot_client__pb2 +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 +from google.protobuf import field_mask_pb2 as google_dot_protobuf_dot_field__mask__pb2 +from google.rpc import status_pb2 as google_dot_rpc_dot_status__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/services/remarketing_action_service.proto', + package='google.ads.googleads.v4.services', + syntax='proto3', + serialized_options=_b('\n$com.google.ads.googleads.v4.servicesB\035RemarketingActionServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V4.Services\312\002 Google\\Ads\\GoogleAds\\V4\\Services\352\002$Google::Ads::GoogleAds::V4::Services'), + serialized_pb=_b('\nGgoogle/ads/googleads_v4/proto/services/remarketing_action_service.proto\x12 google.ads.googleads.v4.services\x1a@google/ads/googleads_v4/proto/resources/remarketing_action.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/protobuf/field_mask.proto\x1a\x17google/rpc/status.proto\"h\n\x1bGetRemarketingActionRequest\x12I\n\rresource_name\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*googleads.googleapis.com/RemarketingAction\"\xc2\x01\n\x1fMutateRemarketingActionsRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12U\n\noperations\x18\x02 \x03(\x0b\x32<.google.ads.googleads.v4.services.RemarketingActionOperationB\x03\xe0\x41\x02\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\"\xea\x01\n\x1aRemarketingActionOperation\x12/\n\x0bupdate_mask\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12\x46\n\x06\x63reate\x18\x01 \x01(\x0b\x32\x34.google.ads.googleads.v4.resources.RemarketingActionH\x00\x12\x46\n\x06update\x18\x02 \x01(\x0b\x32\x34.google.ads.googleads.v4.resources.RemarketingActionH\x00\x42\x0b\n\toperation\"\xa7\x01\n MutateRemarketingActionsResponse\x12\x31\n\x15partial_failure_error\x18\x03 \x01(\x0b\x32\x12.google.rpc.Status\x12P\n\x07results\x18\x02 \x03(\x0b\x32?.google.ads.googleads.v4.services.MutateRemarketingActionResult\"6\n\x1dMutateRemarketingActionResult\x12\x15\n\rresource_name\x18\x01 \x01(\t2\x94\x04\n\x18RemarketingActionService\x12\xd9\x01\n\x14GetRemarketingAction\x12=.google.ads.googleads.v4.services.GetRemarketingActionRequest\x1a\x34.google.ads.googleads.v4.resources.RemarketingAction\"L\x82\xd3\xe4\x93\x02\x36\x12\x34/v4/{resource_name=customers/*/remarketingActions/*}\xda\x41\rresource_name\x12\xfe\x01\n\x18MutateRemarketingActions\x12\x41.google.ads.googleads.v4.services.MutateRemarketingActionsRequest\x1a\x42.google.ads.googleads.v4.services.MutateRemarketingActionsResponse\"[\x82\xd3\xe4\x93\x02<\"7/v4/customers/{customer_id=*}/remarketingActions:mutate:\x01*\xda\x41\x16\x63ustomer_id,operations\x1a\x1b\xca\x41\x18googleads.googleapis.comB\x84\x02\n$com.google.ads.googleads.v4.servicesB\x1dRemarketingActionServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V4.Services\xca\x02 Google\\Ads\\GoogleAds\\V4\\Services\xea\x02$Google::Ads::GoogleAds::V4::Servicesb\x06proto3') + , + dependencies=[google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_remarketing__action__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_api_dot_client__pb2.DESCRIPTOR,google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_api_dot_resource__pb2.DESCRIPTOR,google_dot_protobuf_dot_field__mask__pb2.DESCRIPTOR,google_dot_rpc_dot_status__pb2.DESCRIPTOR,]) + + + + +_GETREMARKETINGACTIONREQUEST = _descriptor.Descriptor( + name='GetRemarketingActionRequest', + full_name='google.ads.googleads.v4.services.GetRemarketingActionRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.services.GetRemarketingActionRequest.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002\372A,\n*googleads.googleapis.com/RemarketingAction'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=349, + serialized_end=453, +) + + +_MUTATEREMARKETINGACTIONSREQUEST = _descriptor.Descriptor( + name='MutateRemarketingActionsRequest', + full_name='google.ads.googleads.v4.services.MutateRemarketingActionsRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='customer_id', full_name='google.ads.googleads.v4.services.MutateRemarketingActionsRequest.customer_id', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='operations', full_name='google.ads.googleads.v4.services.MutateRemarketingActionsRequest.operations', index=1, + number=2, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='partial_failure', full_name='google.ads.googleads.v4.services.MutateRemarketingActionsRequest.partial_failure', index=2, + number=3, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='validate_only', full_name='google.ads.googleads.v4.services.MutateRemarketingActionsRequest.validate_only', index=3, + number=4, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=456, + serialized_end=650, +) + + +_REMARKETINGACTIONOPERATION = _descriptor.Descriptor( + name='RemarketingActionOperation', + full_name='google.ads.googleads.v4.services.RemarketingActionOperation', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='update_mask', full_name='google.ads.googleads.v4.services.RemarketingActionOperation.update_mask', index=0, + number=4, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='create', full_name='google.ads.googleads.v4.services.RemarketingActionOperation.create', index=1, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='update', full_name='google.ads.googleads.v4.services.RemarketingActionOperation.update', index=2, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name='operation', full_name='google.ads.googleads.v4.services.RemarketingActionOperation.operation', + index=0, containing_type=None, fields=[]), + ], + serialized_start=653, + serialized_end=887, +) + + +_MUTATEREMARKETINGACTIONSRESPONSE = _descriptor.Descriptor( + name='MutateRemarketingActionsResponse', + full_name='google.ads.googleads.v4.services.MutateRemarketingActionsResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='partial_failure_error', full_name='google.ads.googleads.v4.services.MutateRemarketingActionsResponse.partial_failure_error', index=0, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='results', full_name='google.ads.googleads.v4.services.MutateRemarketingActionsResponse.results', index=1, + number=2, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=890, + serialized_end=1057, +) + + +_MUTATEREMARKETINGACTIONRESULT = _descriptor.Descriptor( + name='MutateRemarketingActionResult', + full_name='google.ads.googleads.v4.services.MutateRemarketingActionResult', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.services.MutateRemarketingActionResult.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1059, + serialized_end=1113, +) + +_MUTATEREMARKETINGACTIONSREQUEST.fields_by_name['operations'].message_type = _REMARKETINGACTIONOPERATION +_REMARKETINGACTIONOPERATION.fields_by_name['update_mask'].message_type = google_dot_protobuf_dot_field__mask__pb2._FIELDMASK +_REMARKETINGACTIONOPERATION.fields_by_name['create'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_remarketing__action__pb2._REMARKETINGACTION +_REMARKETINGACTIONOPERATION.fields_by_name['update'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_remarketing__action__pb2._REMARKETINGACTION +_REMARKETINGACTIONOPERATION.oneofs_by_name['operation'].fields.append( + _REMARKETINGACTIONOPERATION.fields_by_name['create']) +_REMARKETINGACTIONOPERATION.fields_by_name['create'].containing_oneof = _REMARKETINGACTIONOPERATION.oneofs_by_name['operation'] +_REMARKETINGACTIONOPERATION.oneofs_by_name['operation'].fields.append( + _REMARKETINGACTIONOPERATION.fields_by_name['update']) +_REMARKETINGACTIONOPERATION.fields_by_name['update'].containing_oneof = _REMARKETINGACTIONOPERATION.oneofs_by_name['operation'] +_MUTATEREMARKETINGACTIONSRESPONSE.fields_by_name['partial_failure_error'].message_type = google_dot_rpc_dot_status__pb2._STATUS +_MUTATEREMARKETINGACTIONSRESPONSE.fields_by_name['results'].message_type = _MUTATEREMARKETINGACTIONRESULT +DESCRIPTOR.message_types_by_name['GetRemarketingActionRequest'] = _GETREMARKETINGACTIONREQUEST +DESCRIPTOR.message_types_by_name['MutateRemarketingActionsRequest'] = _MUTATEREMARKETINGACTIONSREQUEST +DESCRIPTOR.message_types_by_name['RemarketingActionOperation'] = _REMARKETINGACTIONOPERATION +DESCRIPTOR.message_types_by_name['MutateRemarketingActionsResponse'] = _MUTATEREMARKETINGACTIONSRESPONSE +DESCRIPTOR.message_types_by_name['MutateRemarketingActionResult'] = _MUTATEREMARKETINGACTIONRESULT +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +GetRemarketingActionRequest = _reflection.GeneratedProtocolMessageType('GetRemarketingActionRequest', (_message.Message,), dict( + DESCRIPTOR = _GETREMARKETINGACTIONREQUEST, + __module__ = 'google.ads.googleads_v4.proto.services.remarketing_action_service_pb2' + , + __doc__ = """Request message for + [RemarketingActionService.GetRemarketingAction][google.ads.googleads.v4.services.RemarketingActionService.GetRemarketingAction]. + + + Attributes: + resource_name: + Required. The resource name of the remarketing action to + fetch. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.GetRemarketingActionRequest) + )) +_sym_db.RegisterMessage(GetRemarketingActionRequest) + +MutateRemarketingActionsRequest = _reflection.GeneratedProtocolMessageType('MutateRemarketingActionsRequest', (_message.Message,), dict( + DESCRIPTOR = _MUTATEREMARKETINGACTIONSREQUEST, + __module__ = 'google.ads.googleads_v4.proto.services.remarketing_action_service_pb2' + , + __doc__ = """Request message for + [RemarketingActionService.MutateRemarketingActions][google.ads.googleads.v4.services.RemarketingActionService.MutateRemarketingActions]. + + + Attributes: + customer_id: + Required. The ID of the customer whose remarketing actions are + being modified. + operations: + Required. The list of operations to perform on individual + remarketing actions. + partial_failure: + If true, successful operations will be carried out and invalid + operations will return errors. If false, all operations will + be carried out in one transaction if and only if they are all + valid. Default is false. + validate_only: + If true, the request is validated but not executed. Only + errors are returned, not results. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.MutateRemarketingActionsRequest) + )) +_sym_db.RegisterMessage(MutateRemarketingActionsRequest) + +RemarketingActionOperation = _reflection.GeneratedProtocolMessageType('RemarketingActionOperation', (_message.Message,), dict( + DESCRIPTOR = _REMARKETINGACTIONOPERATION, + __module__ = 'google.ads.googleads_v4.proto.services.remarketing_action_service_pb2' + , + __doc__ = """A single operation (create, update) on a remarketing action. + + + Attributes: + update_mask: + FieldMask that determines which resource fields are modified + in an update. + operation: + The mutate operation. + create: + Create operation: No resource name is expected for the new + remarketing action. + update: + Update operation: The remarketing action is expected to have a + valid resource name. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.RemarketingActionOperation) + )) +_sym_db.RegisterMessage(RemarketingActionOperation) + +MutateRemarketingActionsResponse = _reflection.GeneratedProtocolMessageType('MutateRemarketingActionsResponse', (_message.Message,), dict( + DESCRIPTOR = _MUTATEREMARKETINGACTIONSRESPONSE, + __module__ = 'google.ads.googleads_v4.proto.services.remarketing_action_service_pb2' + , + __doc__ = """Response message for remarketing action mutate. + + + Attributes: + partial_failure_error: + Errors that pertain to operation failures in the partial + failure mode. Returned only when partial\_failure = true and + all errors occur inside the operations. If any errors occur + outside the operations (e.g. auth errors), we return an RPC + level error. + results: + All results for the mutate. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.MutateRemarketingActionsResponse) + )) +_sym_db.RegisterMessage(MutateRemarketingActionsResponse) + +MutateRemarketingActionResult = _reflection.GeneratedProtocolMessageType('MutateRemarketingActionResult', (_message.Message,), dict( + DESCRIPTOR = _MUTATEREMARKETINGACTIONRESULT, + __module__ = 'google.ads.googleads_v4.proto.services.remarketing_action_service_pb2' + , + __doc__ = """The result for the remarketing action mutate. + + + Attributes: + resource_name: + Returned for successful operations. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.MutateRemarketingActionResult) + )) +_sym_db.RegisterMessage(MutateRemarketingActionResult) + + +DESCRIPTOR._options = None +_GETREMARKETINGACTIONREQUEST.fields_by_name['resource_name']._options = None +_MUTATEREMARKETINGACTIONSREQUEST.fields_by_name['customer_id']._options = None +_MUTATEREMARKETINGACTIONSREQUEST.fields_by_name['operations']._options = None + +_REMARKETINGACTIONSERVICE = _descriptor.ServiceDescriptor( + name='RemarketingActionService', + full_name='google.ads.googleads.v4.services.RemarketingActionService', + file=DESCRIPTOR, + index=0, + serialized_options=_b('\312A\030googleads.googleapis.com'), + serialized_start=1116, + serialized_end=1648, + methods=[ + _descriptor.MethodDescriptor( + name='GetRemarketingAction', + full_name='google.ads.googleads.v4.services.RemarketingActionService.GetRemarketingAction', + index=0, + containing_service=None, + input_type=_GETREMARKETINGACTIONREQUEST, + output_type=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_remarketing__action__pb2._REMARKETINGACTION, + serialized_options=_b('\202\323\344\223\0026\0224/v4/{resource_name=customers/*/remarketingActions/*}\332A\rresource_name'), + ), + _descriptor.MethodDescriptor( + name='MutateRemarketingActions', + full_name='google.ads.googleads.v4.services.RemarketingActionService.MutateRemarketingActions', + index=1, + containing_service=None, + input_type=_MUTATEREMARKETINGACTIONSREQUEST, + output_type=_MUTATEREMARKETINGACTIONSRESPONSE, + serialized_options=_b('\202\323\344\223\002<\"7/v4/customers/{customer_id=*}/remarketingActions:mutate:\001*\332A\026customer_id,operations'), + ), +]) +_sym_db.RegisterServiceDescriptor(_REMARKETINGACTIONSERVICE) + +DESCRIPTOR.services_by_name['RemarketingActionService'] = _REMARKETINGACTIONSERVICE + +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v4/proto/services/remarketing_action_service_pb2_grpc.py b/google/ads/google_ads/v4/proto/services/remarketing_action_service_pb2_grpc.py new file mode 100644 index 000000000..19cd3b4c0 --- /dev/null +++ b/google/ads/google_ads/v4/proto/services/remarketing_action_service_pb2_grpc.py @@ -0,0 +1,68 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +import grpc + +from google.ads.google_ads.v4.proto.resources import remarketing_action_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_remarketing__action__pb2 +from google.ads.google_ads.v4.proto.services import remarketing_action_service_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_remarketing__action__service__pb2 + + +class RemarketingActionServiceStub(object): + """Proto file describing the Remarketing Action service. + + Service to manage remarketing actions. + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.GetRemarketingAction = channel.unary_unary( + '/google.ads.googleads.v4.services.RemarketingActionService/GetRemarketingAction', + request_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_remarketing__action__service__pb2.GetRemarketingActionRequest.SerializeToString, + response_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_remarketing__action__pb2.RemarketingAction.FromString, + ) + self.MutateRemarketingActions = channel.unary_unary( + '/google.ads.googleads.v4.services.RemarketingActionService/MutateRemarketingActions', + request_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_remarketing__action__service__pb2.MutateRemarketingActionsRequest.SerializeToString, + response_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_remarketing__action__service__pb2.MutateRemarketingActionsResponse.FromString, + ) + + +class RemarketingActionServiceServicer(object): + """Proto file describing the Remarketing Action service. + + Service to manage remarketing actions. + """ + + def GetRemarketingAction(self, request, context): + """Returns the requested remarketing action in full detail. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def MutateRemarketingActions(self, request, context): + """Creates or updates remarketing actions. Operation statuses are returned. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_RemarketingActionServiceServicer_to_server(servicer, server): + rpc_method_handlers = { + 'GetRemarketingAction': grpc.unary_unary_rpc_method_handler( + servicer.GetRemarketingAction, + request_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_remarketing__action__service__pb2.GetRemarketingActionRequest.FromString, + response_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_remarketing__action__pb2.RemarketingAction.SerializeToString, + ), + 'MutateRemarketingActions': grpc.unary_unary_rpc_method_handler( + servicer.MutateRemarketingActions, + request_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_remarketing__action__service__pb2.MutateRemarketingActionsRequest.FromString, + response_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_remarketing__action__service__pb2.MutateRemarketingActionsResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'google.ads.googleads.v4.services.RemarketingActionService', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) diff --git a/google/ads/google_ads/v4/proto/services/search_term_view_service_pb2.py b/google/ads/google_ads/v4/proto/services/search_term_view_service_pb2.py new file mode 100644 index 000000000..f55238522 --- /dev/null +++ b/google/ads/google_ads/v4/proto/services/search_term_view_service_pb2.py @@ -0,0 +1,111 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/services/search_term_view_service.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.ads.google_ads.v4.proto.resources import search_term_view_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_search__term__view__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 +from google.api import client_pb2 as google_dot_api_dot_client__pb2 +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/services/search_term_view_service.proto', + package='google.ads.googleads.v4.services', + syntax='proto3', + serialized_options=_b('\n$com.google.ads.googleads.v4.servicesB\032SearchTermViewServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V4.Services\312\002 Google\\Ads\\GoogleAds\\V4\\Services\352\002$Google::Ads::GoogleAds::V4::Services'), + serialized_pb=_b('\nEgoogle/ads/googleads_v4/proto/services/search_term_view_service.proto\x12 google.ads.googleads.v4.services\x1a>google/ads/googleads_v4/proto/resources/search_term_view.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"b\n\x18GetSearchTermViewRequest\x12\x46\n\rresource_name\x18\x01 \x01(\tB/\xe0\x41\x02\xfa\x41)\n\'googleads.googleapis.com/SearchTermView2\x84\x02\n\x15SearchTermViewService\x12\xcd\x01\n\x11GetSearchTermView\x12:.google.ads.googleads.v4.services.GetSearchTermViewRequest\x1a\x31.google.ads.googleads.v4.resources.SearchTermView\"I\x82\xd3\xe4\x93\x02\x33\x12\x31/v4/{resource_name=customers/*/searchTermViews/*}\xda\x41\rresource_name\x1a\x1b\xca\x41\x18googleads.googleapis.comB\x81\x02\n$com.google.ads.googleads.v4.servicesB\x1aSearchTermViewServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V4.Services\xca\x02 Google\\Ads\\GoogleAds\\V4\\Services\xea\x02$Google::Ads::GoogleAds::V4::Servicesb\x06proto3') + , + dependencies=[google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_search__term__view__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_api_dot_client__pb2.DESCRIPTOR,google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_api_dot_resource__pb2.DESCRIPTOR,]) + + + + +_GETSEARCHTERMVIEWREQUEST = _descriptor.Descriptor( + name='GetSearchTermViewRequest', + full_name='google.ads.googleads.v4.services.GetSearchTermViewRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.services.GetSearchTermViewRequest.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002\372A)\n\'googleads.googleapis.com/SearchTermView'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=286, + serialized_end=384, +) + +DESCRIPTOR.message_types_by_name['GetSearchTermViewRequest'] = _GETSEARCHTERMVIEWREQUEST +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +GetSearchTermViewRequest = _reflection.GeneratedProtocolMessageType('GetSearchTermViewRequest', (_message.Message,), dict( + DESCRIPTOR = _GETSEARCHTERMVIEWREQUEST, + __module__ = 'google.ads.googleads_v4.proto.services.search_term_view_service_pb2' + , + __doc__ = """Request message for + [SearchTermViewService.GetSearchTermView][google.ads.googleads.v4.services.SearchTermViewService.GetSearchTermView]. + + + Attributes: + resource_name: + Required. The resource name of the search term view to fetch. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.GetSearchTermViewRequest) + )) +_sym_db.RegisterMessage(GetSearchTermViewRequest) + + +DESCRIPTOR._options = None +_GETSEARCHTERMVIEWREQUEST.fields_by_name['resource_name']._options = None + +_SEARCHTERMVIEWSERVICE = _descriptor.ServiceDescriptor( + name='SearchTermViewService', + full_name='google.ads.googleads.v4.services.SearchTermViewService', + file=DESCRIPTOR, + index=0, + serialized_options=_b('\312A\030googleads.googleapis.com'), + serialized_start=387, + serialized_end=647, + methods=[ + _descriptor.MethodDescriptor( + name='GetSearchTermView', + full_name='google.ads.googleads.v4.services.SearchTermViewService.GetSearchTermView', + index=0, + containing_service=None, + input_type=_GETSEARCHTERMVIEWREQUEST, + output_type=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_search__term__view__pb2._SEARCHTERMVIEW, + serialized_options=_b('\202\323\344\223\0023\0221/v4/{resource_name=customers/*/searchTermViews/*}\332A\rresource_name'), + ), +]) +_sym_db.RegisterServiceDescriptor(_SEARCHTERMVIEWSERVICE) + +DESCRIPTOR.services_by_name['SearchTermViewService'] = _SEARCHTERMVIEWSERVICE + +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v4/proto/services/search_term_view_service_pb2_grpc.py b/google/ads/google_ads/v4/proto/services/search_term_view_service_pb2_grpc.py new file mode 100644 index 000000000..6f5a8f794 --- /dev/null +++ b/google/ads/google_ads/v4/proto/services/search_term_view_service_pb2_grpc.py @@ -0,0 +1,51 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +import grpc + +from google.ads.google_ads.v4.proto.resources import search_term_view_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_search__term__view__pb2 +from google.ads.google_ads.v4.proto.services import search_term_view_service_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_search__term__view__service__pb2 + + +class SearchTermViewServiceStub(object): + """Proto file describing the Search Term View service. + + Service to manage search term views. + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.GetSearchTermView = channel.unary_unary( + '/google.ads.googleads.v4.services.SearchTermViewService/GetSearchTermView', + request_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_search__term__view__service__pb2.GetSearchTermViewRequest.SerializeToString, + response_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_search__term__view__pb2.SearchTermView.FromString, + ) + + +class SearchTermViewServiceServicer(object): + """Proto file describing the Search Term View service. + + Service to manage search term views. + """ + + def GetSearchTermView(self, request, context): + """Returns the attributes of the requested search term view. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_SearchTermViewServiceServicer_to_server(servicer, server): + rpc_method_handlers = { + 'GetSearchTermView': grpc.unary_unary_rpc_method_handler( + servicer.GetSearchTermView, + request_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_search__term__view__service__pb2.GetSearchTermViewRequest.FromString, + response_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_search__term__view__pb2.SearchTermView.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'google.ads.googleads.v4.services.SearchTermViewService', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) diff --git a/google/ads/google_ads/v4/proto/services/shared_criterion_service_pb2.py b/google/ads/google_ads/v4/proto/services/shared_criterion_service_pb2.py new file mode 100644 index 000000000..e66aaf90d --- /dev/null +++ b/google/ads/google_ads/v4/proto/services/shared_criterion_service_pb2.py @@ -0,0 +1,385 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/services/shared_criterion_service.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.ads.google_ads.v4.proto.resources import shared_criterion_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_shared__criterion__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 +from google.api import client_pb2 as google_dot_api_dot_client__pb2 +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 +from google.rpc import status_pb2 as google_dot_rpc_dot_status__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/services/shared_criterion_service.proto', + package='google.ads.googleads.v4.services', + syntax='proto3', + serialized_options=_b('\n$com.google.ads.googleads.v4.servicesB\033SharedCriterionServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V4.Services\312\002 Google\\Ads\\GoogleAds\\V4\\Services\352\002$Google::Ads::GoogleAds::V4::Services'), + serialized_pb=_b('\nEgoogle/ads/googleads_v4/proto/services/shared_criterion_service.proto\x12 google.ads.googleads.v4.services\x1a>google/ads/googleads_v4/proto/resources/shared_criterion.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x17google/rpc/status.proto\"d\n\x19GetSharedCriterionRequest\x12G\n\rresource_name\x18\x01 \x01(\tB0\xe0\x41\x02\xfa\x41*\n(googleads.googleapis.com/SharedCriterion\"\xbc\x01\n\x1bMutateSharedCriteriaRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12S\n\noperations\x18\x02 \x03(\x0b\x32:.google.ads.googleads.v4.services.SharedCriterionOperationB\x03\xe0\x41\x02\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\"\x7f\n\x18SharedCriterionOperation\x12\x44\n\x06\x63reate\x18\x01 \x01(\x0b\x32\x32.google.ads.googleads.v4.resources.SharedCriterionH\x00\x12\x10\n\x06remove\x18\x03 \x01(\tH\x00\x42\x0b\n\toperation\"\xa1\x01\n\x1cMutateSharedCriteriaResponse\x12\x31\n\x15partial_failure_error\x18\x03 \x01(\x0b\x32\x12.google.rpc.Status\x12N\n\x07results\x18\x02 \x03(\x0b\x32=.google.ads.googleads.v4.services.MutateSharedCriterionResult\"4\n\x1bMutateSharedCriterionResult\x12\x15\n\rresource_name\x18\x01 \x01(\t2\xf8\x03\n\x16SharedCriterionService\x12\xcf\x01\n\x12GetSharedCriterion\x12;.google.ads.googleads.v4.services.GetSharedCriterionRequest\x1a\x32.google.ads.googleads.v4.resources.SharedCriterion\"H\x82\xd3\xe4\x93\x02\x32\x12\x30/v4/{resource_name=customers/*/sharedCriteria/*}\xda\x41\rresource_name\x12\xee\x01\n\x14MutateSharedCriteria\x12=.google.ads.googleads.v4.services.MutateSharedCriteriaRequest\x1a>.google.ads.googleads.v4.services.MutateSharedCriteriaResponse\"W\x82\xd3\xe4\x93\x02\x38\"3/v4/customers/{customer_id=*}/sharedCriteria:mutate:\x01*\xda\x41\x16\x63ustomer_id,operations\x1a\x1b\xca\x41\x18googleads.googleapis.comB\x82\x02\n$com.google.ads.googleads.v4.servicesB\x1bSharedCriterionServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V4.Services\xca\x02 Google\\Ads\\GoogleAds\\V4\\Services\xea\x02$Google::Ads::GoogleAds::V4::Servicesb\x06proto3') + , + dependencies=[google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_shared__criterion__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_api_dot_client__pb2.DESCRIPTOR,google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_api_dot_resource__pb2.DESCRIPTOR,google_dot_rpc_dot_status__pb2.DESCRIPTOR,]) + + + + +_GETSHAREDCRITERIONREQUEST = _descriptor.Descriptor( + name='GetSharedCriterionRequest', + full_name='google.ads.googleads.v4.services.GetSharedCriterionRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.services.GetSharedCriterionRequest.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002\372A*\n(googleads.googleapis.com/SharedCriterion'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=311, + serialized_end=411, +) + + +_MUTATESHAREDCRITERIAREQUEST = _descriptor.Descriptor( + name='MutateSharedCriteriaRequest', + full_name='google.ads.googleads.v4.services.MutateSharedCriteriaRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='customer_id', full_name='google.ads.googleads.v4.services.MutateSharedCriteriaRequest.customer_id', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='operations', full_name='google.ads.googleads.v4.services.MutateSharedCriteriaRequest.operations', index=1, + number=2, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='partial_failure', full_name='google.ads.googleads.v4.services.MutateSharedCriteriaRequest.partial_failure', index=2, + number=3, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='validate_only', full_name='google.ads.googleads.v4.services.MutateSharedCriteriaRequest.validate_only', index=3, + number=4, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=414, + serialized_end=602, +) + + +_SHAREDCRITERIONOPERATION = _descriptor.Descriptor( + name='SharedCriterionOperation', + full_name='google.ads.googleads.v4.services.SharedCriterionOperation', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='create', full_name='google.ads.googleads.v4.services.SharedCriterionOperation.create', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='remove', full_name='google.ads.googleads.v4.services.SharedCriterionOperation.remove', index=1, + number=3, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name='operation', full_name='google.ads.googleads.v4.services.SharedCriterionOperation.operation', + index=0, containing_type=None, fields=[]), + ], + serialized_start=604, + serialized_end=731, +) + + +_MUTATESHAREDCRITERIARESPONSE = _descriptor.Descriptor( + name='MutateSharedCriteriaResponse', + full_name='google.ads.googleads.v4.services.MutateSharedCriteriaResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='partial_failure_error', full_name='google.ads.googleads.v4.services.MutateSharedCriteriaResponse.partial_failure_error', index=0, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='results', full_name='google.ads.googleads.v4.services.MutateSharedCriteriaResponse.results', index=1, + number=2, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=734, + serialized_end=895, +) + + +_MUTATESHAREDCRITERIONRESULT = _descriptor.Descriptor( + name='MutateSharedCriterionResult', + full_name='google.ads.googleads.v4.services.MutateSharedCriterionResult', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.services.MutateSharedCriterionResult.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=897, + serialized_end=949, +) + +_MUTATESHAREDCRITERIAREQUEST.fields_by_name['operations'].message_type = _SHAREDCRITERIONOPERATION +_SHAREDCRITERIONOPERATION.fields_by_name['create'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_shared__criterion__pb2._SHAREDCRITERION +_SHAREDCRITERIONOPERATION.oneofs_by_name['operation'].fields.append( + _SHAREDCRITERIONOPERATION.fields_by_name['create']) +_SHAREDCRITERIONOPERATION.fields_by_name['create'].containing_oneof = _SHAREDCRITERIONOPERATION.oneofs_by_name['operation'] +_SHAREDCRITERIONOPERATION.oneofs_by_name['operation'].fields.append( + _SHAREDCRITERIONOPERATION.fields_by_name['remove']) +_SHAREDCRITERIONOPERATION.fields_by_name['remove'].containing_oneof = _SHAREDCRITERIONOPERATION.oneofs_by_name['operation'] +_MUTATESHAREDCRITERIARESPONSE.fields_by_name['partial_failure_error'].message_type = google_dot_rpc_dot_status__pb2._STATUS +_MUTATESHAREDCRITERIARESPONSE.fields_by_name['results'].message_type = _MUTATESHAREDCRITERIONRESULT +DESCRIPTOR.message_types_by_name['GetSharedCriterionRequest'] = _GETSHAREDCRITERIONREQUEST +DESCRIPTOR.message_types_by_name['MutateSharedCriteriaRequest'] = _MUTATESHAREDCRITERIAREQUEST +DESCRIPTOR.message_types_by_name['SharedCriterionOperation'] = _SHAREDCRITERIONOPERATION +DESCRIPTOR.message_types_by_name['MutateSharedCriteriaResponse'] = _MUTATESHAREDCRITERIARESPONSE +DESCRIPTOR.message_types_by_name['MutateSharedCriterionResult'] = _MUTATESHAREDCRITERIONRESULT +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +GetSharedCriterionRequest = _reflection.GeneratedProtocolMessageType('GetSharedCriterionRequest', (_message.Message,), dict( + DESCRIPTOR = _GETSHAREDCRITERIONREQUEST, + __module__ = 'google.ads.googleads_v4.proto.services.shared_criterion_service_pb2' + , + __doc__ = """Request message for + [SharedCriterionService.GetSharedCriterion][google.ads.googleads.v4.services.SharedCriterionService.GetSharedCriterion]. + + + Attributes: + resource_name: + Required. The resource name of the shared criterion to fetch. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.GetSharedCriterionRequest) + )) +_sym_db.RegisterMessage(GetSharedCriterionRequest) + +MutateSharedCriteriaRequest = _reflection.GeneratedProtocolMessageType('MutateSharedCriteriaRequest', (_message.Message,), dict( + DESCRIPTOR = _MUTATESHAREDCRITERIAREQUEST, + __module__ = 'google.ads.googleads_v4.proto.services.shared_criterion_service_pb2' + , + __doc__ = """Request message for + [SharedCriterionService.MutateSharedCriteria][google.ads.googleads.v4.services.SharedCriterionService.MutateSharedCriteria]. + + + Attributes: + customer_id: + Required. The ID of the customer whose shared criteria are + being modified. + operations: + Required. The list of operations to perform on individual + shared criteria. + partial_failure: + If true, successful operations will be carried out and invalid + operations will return errors. If false, all operations will + be carried out in one transaction if and only if they are all + valid. Default is false. + validate_only: + If true, the request is validated but not executed. Only + errors are returned, not results. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.MutateSharedCriteriaRequest) + )) +_sym_db.RegisterMessage(MutateSharedCriteriaRequest) + +SharedCriterionOperation = _reflection.GeneratedProtocolMessageType('SharedCriterionOperation', (_message.Message,), dict( + DESCRIPTOR = _SHAREDCRITERIONOPERATION, + __module__ = 'google.ads.googleads_v4.proto.services.shared_criterion_service_pb2' + , + __doc__ = """A single operation (create, remove) on an shared criterion. + + + Attributes: + operation: + The mutate operation. + create: + Create operation: No resource name is expected for the new + shared criterion. + remove: + Remove operation: A resource name for the removed shared + criterion is expected, in this format: ``customers/{customer_ + id}/sharedCriteria/{shared_set_id}~{criterion_id}`` + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.SharedCriterionOperation) + )) +_sym_db.RegisterMessage(SharedCriterionOperation) + +MutateSharedCriteriaResponse = _reflection.GeneratedProtocolMessageType('MutateSharedCriteriaResponse', (_message.Message,), dict( + DESCRIPTOR = _MUTATESHAREDCRITERIARESPONSE, + __module__ = 'google.ads.googleads_v4.proto.services.shared_criterion_service_pb2' + , + __doc__ = """Response message for a shared criterion mutate. + + + Attributes: + partial_failure_error: + Errors that pertain to operation failures in the partial + failure mode. Returned only when partial\_failure = true and + all errors occur inside the operations. If any errors occur + outside the operations (e.g. auth errors), we return an RPC + level error. + results: + All results for the mutate. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.MutateSharedCriteriaResponse) + )) +_sym_db.RegisterMessage(MutateSharedCriteriaResponse) + +MutateSharedCriterionResult = _reflection.GeneratedProtocolMessageType('MutateSharedCriterionResult', (_message.Message,), dict( + DESCRIPTOR = _MUTATESHAREDCRITERIONRESULT, + __module__ = 'google.ads.googleads_v4.proto.services.shared_criterion_service_pb2' + , + __doc__ = """The result for the shared criterion mutate. + + + Attributes: + resource_name: + Returned for successful operations. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.MutateSharedCriterionResult) + )) +_sym_db.RegisterMessage(MutateSharedCriterionResult) + + +DESCRIPTOR._options = None +_GETSHAREDCRITERIONREQUEST.fields_by_name['resource_name']._options = None +_MUTATESHAREDCRITERIAREQUEST.fields_by_name['customer_id']._options = None +_MUTATESHAREDCRITERIAREQUEST.fields_by_name['operations']._options = None + +_SHAREDCRITERIONSERVICE = _descriptor.ServiceDescriptor( + name='SharedCriterionService', + full_name='google.ads.googleads.v4.services.SharedCriterionService', + file=DESCRIPTOR, + index=0, + serialized_options=_b('\312A\030googleads.googleapis.com'), + serialized_start=952, + serialized_end=1456, + methods=[ + _descriptor.MethodDescriptor( + name='GetSharedCriterion', + full_name='google.ads.googleads.v4.services.SharedCriterionService.GetSharedCriterion', + index=0, + containing_service=None, + input_type=_GETSHAREDCRITERIONREQUEST, + output_type=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_shared__criterion__pb2._SHAREDCRITERION, + serialized_options=_b('\202\323\344\223\0022\0220/v4/{resource_name=customers/*/sharedCriteria/*}\332A\rresource_name'), + ), + _descriptor.MethodDescriptor( + name='MutateSharedCriteria', + full_name='google.ads.googleads.v4.services.SharedCriterionService.MutateSharedCriteria', + index=1, + containing_service=None, + input_type=_MUTATESHAREDCRITERIAREQUEST, + output_type=_MUTATESHAREDCRITERIARESPONSE, + serialized_options=_b('\202\323\344\223\0028\"3/v4/customers/{customer_id=*}/sharedCriteria:mutate:\001*\332A\026customer_id,operations'), + ), +]) +_sym_db.RegisterServiceDescriptor(_SHAREDCRITERIONSERVICE) + +DESCRIPTOR.services_by_name['SharedCriterionService'] = _SHAREDCRITERIONSERVICE + +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v4/proto/services/shared_criterion_service_pb2_grpc.py b/google/ads/google_ads/v4/proto/services/shared_criterion_service_pb2_grpc.py new file mode 100644 index 000000000..66215c306 --- /dev/null +++ b/google/ads/google_ads/v4/proto/services/shared_criterion_service_pb2_grpc.py @@ -0,0 +1,68 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +import grpc + +from google.ads.google_ads.v4.proto.resources import shared_criterion_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_shared__criterion__pb2 +from google.ads.google_ads.v4.proto.services import shared_criterion_service_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_shared__criterion__service__pb2 + + +class SharedCriterionServiceStub(object): + """Proto file describing the Shared Criterion service. + + Service to manage shared criteria. + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.GetSharedCriterion = channel.unary_unary( + '/google.ads.googleads.v4.services.SharedCriterionService/GetSharedCriterion', + request_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_shared__criterion__service__pb2.GetSharedCriterionRequest.SerializeToString, + response_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_shared__criterion__pb2.SharedCriterion.FromString, + ) + self.MutateSharedCriteria = channel.unary_unary( + '/google.ads.googleads.v4.services.SharedCriterionService/MutateSharedCriteria', + request_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_shared__criterion__service__pb2.MutateSharedCriteriaRequest.SerializeToString, + response_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_shared__criterion__service__pb2.MutateSharedCriteriaResponse.FromString, + ) + + +class SharedCriterionServiceServicer(object): + """Proto file describing the Shared Criterion service. + + Service to manage shared criteria. + """ + + def GetSharedCriterion(self, request, context): + """Returns the requested shared criterion in full detail. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def MutateSharedCriteria(self, request, context): + """Creates or removes shared criteria. Operation statuses are returned. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_SharedCriterionServiceServicer_to_server(servicer, server): + rpc_method_handlers = { + 'GetSharedCriterion': grpc.unary_unary_rpc_method_handler( + servicer.GetSharedCriterion, + request_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_shared__criterion__service__pb2.GetSharedCriterionRequest.FromString, + response_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_shared__criterion__pb2.SharedCriterion.SerializeToString, + ), + 'MutateSharedCriteria': grpc.unary_unary_rpc_method_handler( + servicer.MutateSharedCriteria, + request_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_shared__criterion__service__pb2.MutateSharedCriteriaRequest.FromString, + response_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_shared__criterion__service__pb2.MutateSharedCriteriaResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'google.ads.googleads.v4.services.SharedCriterionService', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) diff --git a/google/ads/google_ads/v4/proto/services/shared_set_service_pb2.py b/google/ads/google_ads/v4/proto/services/shared_set_service_pb2.py new file mode 100644 index 000000000..bf7bd569b --- /dev/null +++ b/google/ads/google_ads/v4/proto/services/shared_set_service_pb2.py @@ -0,0 +1,411 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/services/shared_set_service.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.ads.google_ads.v4.proto.resources import shared_set_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_shared__set__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 +from google.api import client_pb2 as google_dot_api_dot_client__pb2 +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 +from google.protobuf import field_mask_pb2 as google_dot_protobuf_dot_field__mask__pb2 +from google.rpc import status_pb2 as google_dot_rpc_dot_status__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/services/shared_set_service.proto', + package='google.ads.googleads.v4.services', + syntax='proto3', + serialized_options=_b('\n$com.google.ads.googleads.v4.servicesB\025SharedSetServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V4.Services\312\002 Google\\Ads\\GoogleAds\\V4\\Services\352\002$Google::Ads::GoogleAds::V4::Services'), + serialized_pb=_b('\n?google/ads/googleads_v4/proto/services/shared_set_service.proto\x12 google.ads.googleads.v4.services\x1a\x38google/ads/googleads_v4/proto/resources/shared_set.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/protobuf/field_mask.proto\x1a\x17google/rpc/status.proto\"X\n\x13GetSharedSetRequest\x12\x41\n\rresource_name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"googleads.googleapis.com/SharedSet\"\xb2\x01\n\x17MutateSharedSetsRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12M\n\noperations\x18\x02 \x03(\x0b\x32\x34.google.ads.googleads.v4.services.SharedSetOperationB\x03\xe0\x41\x02\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\"\xe4\x01\n\x12SharedSetOperation\x12/\n\x0bupdate_mask\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12>\n\x06\x63reate\x18\x01 \x01(\x0b\x32,.google.ads.googleads.v4.resources.SharedSetH\x00\x12>\n\x06update\x18\x02 \x01(\x0b\x32,.google.ads.googleads.v4.resources.SharedSetH\x00\x12\x10\n\x06remove\x18\x03 \x01(\tH\x00\x42\x0b\n\toperation\"\x97\x01\n\x18MutateSharedSetsResponse\x12\x31\n\x15partial_failure_error\x18\x03 \x01(\x0b\x32\x12.google.rpc.Status\x12H\n\x07results\x18\x02 \x03(\x0b\x32\x37.google.ads.googleads.v4.services.MutateSharedSetResult\".\n\x15MutateSharedSetResult\x12\x15\n\rresource_name\x18\x01 \x01(\t2\xcc\x03\n\x10SharedSetService\x12\xb9\x01\n\x0cGetSharedSet\x12\x35.google.ads.googleads.v4.services.GetSharedSetRequest\x1a,.google.ads.googleads.v4.resources.SharedSet\"D\x82\xd3\xe4\x93\x02.\x12,/v4/{resource_name=customers/*/sharedSets/*}\xda\x41\rresource_name\x12\xde\x01\n\x10MutateSharedSets\x12\x39.google.ads.googleads.v4.services.MutateSharedSetsRequest\x1a:.google.ads.googleads.v4.services.MutateSharedSetsResponse\"S\x82\xd3\xe4\x93\x02\x34\"//v4/customers/{customer_id=*}/sharedSets:mutate:\x01*\xda\x41\x16\x63ustomer_id,operations\x1a\x1b\xca\x41\x18googleads.googleapis.comB\xfc\x01\n$com.google.ads.googleads.v4.servicesB\x15SharedSetServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V4.Services\xca\x02 Google\\Ads\\GoogleAds\\V4\\Services\xea\x02$Google::Ads::GoogleAds::V4::Servicesb\x06proto3') + , + dependencies=[google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_shared__set__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_api_dot_client__pb2.DESCRIPTOR,google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_api_dot_resource__pb2.DESCRIPTOR,google_dot_protobuf_dot_field__mask__pb2.DESCRIPTOR,google_dot_rpc_dot_status__pb2.DESCRIPTOR,]) + + + + +_GETSHAREDSETREQUEST = _descriptor.Descriptor( + name='GetSharedSetRequest', + full_name='google.ads.googleads.v4.services.GetSharedSetRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.services.GetSharedSetRequest.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002\372A$\n\"googleads.googleapis.com/SharedSet'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=333, + serialized_end=421, +) + + +_MUTATESHAREDSETSREQUEST = _descriptor.Descriptor( + name='MutateSharedSetsRequest', + full_name='google.ads.googleads.v4.services.MutateSharedSetsRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='customer_id', full_name='google.ads.googleads.v4.services.MutateSharedSetsRequest.customer_id', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='operations', full_name='google.ads.googleads.v4.services.MutateSharedSetsRequest.operations', index=1, + number=2, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='partial_failure', full_name='google.ads.googleads.v4.services.MutateSharedSetsRequest.partial_failure', index=2, + number=3, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='validate_only', full_name='google.ads.googleads.v4.services.MutateSharedSetsRequest.validate_only', index=3, + number=4, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=424, + serialized_end=602, +) + + +_SHAREDSETOPERATION = _descriptor.Descriptor( + name='SharedSetOperation', + full_name='google.ads.googleads.v4.services.SharedSetOperation', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='update_mask', full_name='google.ads.googleads.v4.services.SharedSetOperation.update_mask', index=0, + number=4, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='create', full_name='google.ads.googleads.v4.services.SharedSetOperation.create', index=1, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='update', full_name='google.ads.googleads.v4.services.SharedSetOperation.update', index=2, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='remove', full_name='google.ads.googleads.v4.services.SharedSetOperation.remove', index=3, + number=3, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name='operation', full_name='google.ads.googleads.v4.services.SharedSetOperation.operation', + index=0, containing_type=None, fields=[]), + ], + serialized_start=605, + serialized_end=833, +) + + +_MUTATESHAREDSETSRESPONSE = _descriptor.Descriptor( + name='MutateSharedSetsResponse', + full_name='google.ads.googleads.v4.services.MutateSharedSetsResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='partial_failure_error', full_name='google.ads.googleads.v4.services.MutateSharedSetsResponse.partial_failure_error', index=0, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='results', full_name='google.ads.googleads.v4.services.MutateSharedSetsResponse.results', index=1, + number=2, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=836, + serialized_end=987, +) + + +_MUTATESHAREDSETRESULT = _descriptor.Descriptor( + name='MutateSharedSetResult', + full_name='google.ads.googleads.v4.services.MutateSharedSetResult', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.services.MutateSharedSetResult.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=989, + serialized_end=1035, +) + +_MUTATESHAREDSETSREQUEST.fields_by_name['operations'].message_type = _SHAREDSETOPERATION +_SHAREDSETOPERATION.fields_by_name['update_mask'].message_type = google_dot_protobuf_dot_field__mask__pb2._FIELDMASK +_SHAREDSETOPERATION.fields_by_name['create'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_shared__set__pb2._SHAREDSET +_SHAREDSETOPERATION.fields_by_name['update'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_shared__set__pb2._SHAREDSET +_SHAREDSETOPERATION.oneofs_by_name['operation'].fields.append( + _SHAREDSETOPERATION.fields_by_name['create']) +_SHAREDSETOPERATION.fields_by_name['create'].containing_oneof = _SHAREDSETOPERATION.oneofs_by_name['operation'] +_SHAREDSETOPERATION.oneofs_by_name['operation'].fields.append( + _SHAREDSETOPERATION.fields_by_name['update']) +_SHAREDSETOPERATION.fields_by_name['update'].containing_oneof = _SHAREDSETOPERATION.oneofs_by_name['operation'] +_SHAREDSETOPERATION.oneofs_by_name['operation'].fields.append( + _SHAREDSETOPERATION.fields_by_name['remove']) +_SHAREDSETOPERATION.fields_by_name['remove'].containing_oneof = _SHAREDSETOPERATION.oneofs_by_name['operation'] +_MUTATESHAREDSETSRESPONSE.fields_by_name['partial_failure_error'].message_type = google_dot_rpc_dot_status__pb2._STATUS +_MUTATESHAREDSETSRESPONSE.fields_by_name['results'].message_type = _MUTATESHAREDSETRESULT +DESCRIPTOR.message_types_by_name['GetSharedSetRequest'] = _GETSHAREDSETREQUEST +DESCRIPTOR.message_types_by_name['MutateSharedSetsRequest'] = _MUTATESHAREDSETSREQUEST +DESCRIPTOR.message_types_by_name['SharedSetOperation'] = _SHAREDSETOPERATION +DESCRIPTOR.message_types_by_name['MutateSharedSetsResponse'] = _MUTATESHAREDSETSRESPONSE +DESCRIPTOR.message_types_by_name['MutateSharedSetResult'] = _MUTATESHAREDSETRESULT +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +GetSharedSetRequest = _reflection.GeneratedProtocolMessageType('GetSharedSetRequest', (_message.Message,), dict( + DESCRIPTOR = _GETSHAREDSETREQUEST, + __module__ = 'google.ads.googleads_v4.proto.services.shared_set_service_pb2' + , + __doc__ = """Request message for + [SharedSetService.GetSharedSet][google.ads.googleads.v4.services.SharedSetService.GetSharedSet]. + + + Attributes: + resource_name: + Required. The resource name of the shared set to fetch. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.GetSharedSetRequest) + )) +_sym_db.RegisterMessage(GetSharedSetRequest) + +MutateSharedSetsRequest = _reflection.GeneratedProtocolMessageType('MutateSharedSetsRequest', (_message.Message,), dict( + DESCRIPTOR = _MUTATESHAREDSETSREQUEST, + __module__ = 'google.ads.googleads_v4.proto.services.shared_set_service_pb2' + , + __doc__ = """Request message for + [SharedSetService.MutateSharedSets][google.ads.googleads.v4.services.SharedSetService.MutateSharedSets]. + + + Attributes: + customer_id: + Required. The ID of the customer whose shared sets are being + modified. + operations: + Required. The list of operations to perform on individual + shared sets. + partial_failure: + If true, successful operations will be carried out and invalid + operations will return errors. If false, all operations will + be carried out in one transaction if and only if they are all + valid. Default is false. + validate_only: + If true, the request is validated but not executed. Only + errors are returned, not results. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.MutateSharedSetsRequest) + )) +_sym_db.RegisterMessage(MutateSharedSetsRequest) + +SharedSetOperation = _reflection.GeneratedProtocolMessageType('SharedSetOperation', (_message.Message,), dict( + DESCRIPTOR = _SHAREDSETOPERATION, + __module__ = 'google.ads.googleads_v4.proto.services.shared_set_service_pb2' + , + __doc__ = """A single operation (create, update, remove) on an shared set. + + + Attributes: + update_mask: + FieldMask that determines which resource fields are modified + in an update. + operation: + The mutate operation. + create: + Create operation: No resource name is expected for the new + shared set. + update: + Update operation: The shared set is expected to have a valid + resource name. + remove: + Remove operation: A resource name for the removed shared set + is expected, in this format: + ``customers/{customer_id}/sharedSets/{shared_set_id}`` + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.SharedSetOperation) + )) +_sym_db.RegisterMessage(SharedSetOperation) + +MutateSharedSetsResponse = _reflection.GeneratedProtocolMessageType('MutateSharedSetsResponse', (_message.Message,), dict( + DESCRIPTOR = _MUTATESHAREDSETSRESPONSE, + __module__ = 'google.ads.googleads_v4.proto.services.shared_set_service_pb2' + , + __doc__ = """Response message for a shared set mutate. + + + Attributes: + partial_failure_error: + Errors that pertain to operation failures in the partial + failure mode. Returned only when partial\_failure = true and + all errors occur inside the operations. If any errors occur + outside the operations (e.g. auth errors), we return an RPC + level error. + results: + All results for the mutate. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.MutateSharedSetsResponse) + )) +_sym_db.RegisterMessage(MutateSharedSetsResponse) + +MutateSharedSetResult = _reflection.GeneratedProtocolMessageType('MutateSharedSetResult', (_message.Message,), dict( + DESCRIPTOR = _MUTATESHAREDSETRESULT, + __module__ = 'google.ads.googleads_v4.proto.services.shared_set_service_pb2' + , + __doc__ = """The result for the shared set mutate. + + + Attributes: + resource_name: + Returned for successful operations. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.MutateSharedSetResult) + )) +_sym_db.RegisterMessage(MutateSharedSetResult) + + +DESCRIPTOR._options = None +_GETSHAREDSETREQUEST.fields_by_name['resource_name']._options = None +_MUTATESHAREDSETSREQUEST.fields_by_name['customer_id']._options = None +_MUTATESHAREDSETSREQUEST.fields_by_name['operations']._options = None + +_SHAREDSETSERVICE = _descriptor.ServiceDescriptor( + name='SharedSetService', + full_name='google.ads.googleads.v4.services.SharedSetService', + file=DESCRIPTOR, + index=0, + serialized_options=_b('\312A\030googleads.googleapis.com'), + serialized_start=1038, + serialized_end=1498, + methods=[ + _descriptor.MethodDescriptor( + name='GetSharedSet', + full_name='google.ads.googleads.v4.services.SharedSetService.GetSharedSet', + index=0, + containing_service=None, + input_type=_GETSHAREDSETREQUEST, + output_type=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_shared__set__pb2._SHAREDSET, + serialized_options=_b('\202\323\344\223\002.\022,/v4/{resource_name=customers/*/sharedSets/*}\332A\rresource_name'), + ), + _descriptor.MethodDescriptor( + name='MutateSharedSets', + full_name='google.ads.googleads.v4.services.SharedSetService.MutateSharedSets', + index=1, + containing_service=None, + input_type=_MUTATESHAREDSETSREQUEST, + output_type=_MUTATESHAREDSETSRESPONSE, + serialized_options=_b('\202\323\344\223\0024\"//v4/customers/{customer_id=*}/sharedSets:mutate:\001*\332A\026customer_id,operations'), + ), +]) +_sym_db.RegisterServiceDescriptor(_SHAREDSETSERVICE) + +DESCRIPTOR.services_by_name['SharedSetService'] = _SHAREDSETSERVICE + +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v4/proto/services/shared_set_service_pb2_grpc.py b/google/ads/google_ads/v4/proto/services/shared_set_service_pb2_grpc.py new file mode 100644 index 000000000..439c13131 --- /dev/null +++ b/google/ads/google_ads/v4/proto/services/shared_set_service_pb2_grpc.py @@ -0,0 +1,68 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +import grpc + +from google.ads.google_ads.v4.proto.resources import shared_set_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_shared__set__pb2 +from google.ads.google_ads.v4.proto.services import shared_set_service_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_shared__set__service__pb2 + + +class SharedSetServiceStub(object): + """Proto file describing the Shared Set service. + + Service to manage shared sets. + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.GetSharedSet = channel.unary_unary( + '/google.ads.googleads.v4.services.SharedSetService/GetSharedSet', + request_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_shared__set__service__pb2.GetSharedSetRequest.SerializeToString, + response_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_shared__set__pb2.SharedSet.FromString, + ) + self.MutateSharedSets = channel.unary_unary( + '/google.ads.googleads.v4.services.SharedSetService/MutateSharedSets', + request_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_shared__set__service__pb2.MutateSharedSetsRequest.SerializeToString, + response_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_shared__set__service__pb2.MutateSharedSetsResponse.FromString, + ) + + +class SharedSetServiceServicer(object): + """Proto file describing the Shared Set service. + + Service to manage shared sets. + """ + + def GetSharedSet(self, request, context): + """Returns the requested shared set in full detail. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def MutateSharedSets(self, request, context): + """Creates, updates, or removes shared sets. Operation statuses are returned. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_SharedSetServiceServicer_to_server(servicer, server): + rpc_method_handlers = { + 'GetSharedSet': grpc.unary_unary_rpc_method_handler( + servicer.GetSharedSet, + request_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_shared__set__service__pb2.GetSharedSetRequest.FromString, + response_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_shared__set__pb2.SharedSet.SerializeToString, + ), + 'MutateSharedSets': grpc.unary_unary_rpc_method_handler( + servicer.MutateSharedSets, + request_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_shared__set__service__pb2.MutateSharedSetsRequest.FromString, + response_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_shared__set__service__pb2.MutateSharedSetsResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'google.ads.googleads.v4.services.SharedSetService', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) diff --git a/google/ads/google_ads/v4/proto/services/shopping_performance_view_service_pb2.py b/google/ads/google_ads/v4/proto/services/shopping_performance_view_service_pb2.py new file mode 100644 index 000000000..1e9696acf --- /dev/null +++ b/google/ads/google_ads/v4/proto/services/shopping_performance_view_service_pb2.py @@ -0,0 +1,112 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/services/shopping_performance_view_service.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.ads.google_ads.v4.proto.resources import shopping_performance_view_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_shopping__performance__view__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 +from google.api import client_pb2 as google_dot_api_dot_client__pb2 +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/services/shopping_performance_view_service.proto', + package='google.ads.googleads.v4.services', + syntax='proto3', + serialized_options=_b('\n$com.google.ads.googleads.v4.servicesB#ShoppingPerformanceViewServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V4.Services\312\002 Google\\Ads\\GoogleAds\\V4\\Services\352\002$Google::Ads::GoogleAds::V4::Services'), + serialized_pb=_b('\nNgoogle/ads/googleads_v4/proto/services/shopping_performance_view_service.proto\x12 google.ads.googleads.v4.services\x1aGgoogle/ads/googleads_v4/proto/resources/shopping_performance_view.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"t\n!GetShoppingPerformanceViewRequest\x12O\n\rresource_name\x18\x01 \x01(\tB8\xe0\x41\x02\xfa\x41\x32\n0googleads.googleapis.com/ShoppingPerformanceView2\xae\x02\n\x1eShoppingPerformanceViewService\x12\xee\x01\n\x1aGetShoppingPerformanceView\x12\x43.google.ads.googleads.v4.services.GetShoppingPerformanceViewRequest\x1a:.google.ads.googleads.v4.resources.ShoppingPerformanceView\"O\x82\xd3\xe4\x93\x02\x39\x12\x37/v4/{resource_name=customers/*/shoppingPerformanceView}\xda\x41\rresource_name\x1a\x1b\xca\x41\x18googleads.googleapis.comB\x8a\x02\n$com.google.ads.googleads.v4.servicesB#ShoppingPerformanceViewServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V4.Services\xca\x02 Google\\Ads\\GoogleAds\\V4\\Services\xea\x02$Google::Ads::GoogleAds::V4::Servicesb\x06proto3') + , + dependencies=[google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_shopping__performance__view__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_api_dot_client__pb2.DESCRIPTOR,google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_api_dot_resource__pb2.DESCRIPTOR,]) + + + + +_GETSHOPPINGPERFORMANCEVIEWREQUEST = _descriptor.Descriptor( + name='GetShoppingPerformanceViewRequest', + full_name='google.ads.googleads.v4.services.GetShoppingPerformanceViewRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.services.GetShoppingPerformanceViewRequest.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002\372A2\n0googleads.googleapis.com/ShoppingPerformanceView'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=304, + serialized_end=420, +) + +DESCRIPTOR.message_types_by_name['GetShoppingPerformanceViewRequest'] = _GETSHOPPINGPERFORMANCEVIEWREQUEST +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +GetShoppingPerformanceViewRequest = _reflection.GeneratedProtocolMessageType('GetShoppingPerformanceViewRequest', (_message.Message,), dict( + DESCRIPTOR = _GETSHOPPINGPERFORMANCEVIEWREQUEST, + __module__ = 'google.ads.googleads_v4.proto.services.shopping_performance_view_service_pb2' + , + __doc__ = """Request message for + [ShoppingPerformanceViewService.GetShoppingPerformanceView][google.ads.googleads.v4.services.ShoppingPerformanceViewService.GetShoppingPerformanceView]. + + + Attributes: + resource_name: + Required. The resource name of the Shopping performance view + to fetch. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.GetShoppingPerformanceViewRequest) + )) +_sym_db.RegisterMessage(GetShoppingPerformanceViewRequest) + + +DESCRIPTOR._options = None +_GETSHOPPINGPERFORMANCEVIEWREQUEST.fields_by_name['resource_name']._options = None + +_SHOPPINGPERFORMANCEVIEWSERVICE = _descriptor.ServiceDescriptor( + name='ShoppingPerformanceViewService', + full_name='google.ads.googleads.v4.services.ShoppingPerformanceViewService', + file=DESCRIPTOR, + index=0, + serialized_options=_b('\312A\030googleads.googleapis.com'), + serialized_start=423, + serialized_end=725, + methods=[ + _descriptor.MethodDescriptor( + name='GetShoppingPerformanceView', + full_name='google.ads.googleads.v4.services.ShoppingPerformanceViewService.GetShoppingPerformanceView', + index=0, + containing_service=None, + input_type=_GETSHOPPINGPERFORMANCEVIEWREQUEST, + output_type=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_shopping__performance__view__pb2._SHOPPINGPERFORMANCEVIEW, + serialized_options=_b('\202\323\344\223\0029\0227/v4/{resource_name=customers/*/shoppingPerformanceView}\332A\rresource_name'), + ), +]) +_sym_db.RegisterServiceDescriptor(_SHOPPINGPERFORMANCEVIEWSERVICE) + +DESCRIPTOR.services_by_name['ShoppingPerformanceViewService'] = _SHOPPINGPERFORMANCEVIEWSERVICE + +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v4/proto/services/shopping_performance_view_service_pb2_grpc.py b/google/ads/google_ads/v4/proto/services/shopping_performance_view_service_pb2_grpc.py new file mode 100644 index 000000000..9ab3d54b9 --- /dev/null +++ b/google/ads/google_ads/v4/proto/services/shopping_performance_view_service_pb2_grpc.py @@ -0,0 +1,51 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +import grpc + +from google.ads.google_ads.v4.proto.resources import shopping_performance_view_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_shopping__performance__view__pb2 +from google.ads.google_ads.v4.proto.services import shopping_performance_view_service_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_shopping__performance__view__service__pb2 + + +class ShoppingPerformanceViewServiceStub(object): + """Proto file describing the ShoppingPerformanceView service. + + Service to fetch Shopping performance views. + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.GetShoppingPerformanceView = channel.unary_unary( + '/google.ads.googleads.v4.services.ShoppingPerformanceViewService/GetShoppingPerformanceView', + request_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_shopping__performance__view__service__pb2.GetShoppingPerformanceViewRequest.SerializeToString, + response_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_shopping__performance__view__pb2.ShoppingPerformanceView.FromString, + ) + + +class ShoppingPerformanceViewServiceServicer(object): + """Proto file describing the ShoppingPerformanceView service. + + Service to fetch Shopping performance views. + """ + + def GetShoppingPerformanceView(self, request, context): + """Returns the requested Shopping performance view in full detail. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_ShoppingPerformanceViewServiceServicer_to_server(servicer, server): + rpc_method_handlers = { + 'GetShoppingPerformanceView': grpc.unary_unary_rpc_method_handler( + servicer.GetShoppingPerformanceView, + request_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_shopping__performance__view__service__pb2.GetShoppingPerformanceViewRequest.FromString, + response_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_shopping__performance__view__pb2.ShoppingPerformanceView.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'google.ads.googleads.v4.services.ShoppingPerformanceViewService', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) diff --git a/google/ads/google_ads/v4/proto/services/third_party_app_analytics_link_service_pb2.py b/google/ads/google_ads/v4/proto/services/third_party_app_analytics_link_service_pb2.py new file mode 100644 index 000000000..b9f9ac15e --- /dev/null +++ b/google/ads/google_ads/v4/proto/services/third_party_app_analytics_link_service_pb2.py @@ -0,0 +1,110 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/services/third_party_app_analytics_link_service.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.ads.google_ads.v4.proto.resources import third_party_app_analytics_link_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_third__party__app__analytics__link__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 +from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 +from google.api import client_pb2 as google_dot_api_dot_client__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/services/third_party_app_analytics_link_service.proto', + package='google.ads.googleads.v4.services', + syntax='proto3', + serialized_options=_b('\n$com.google.ads.googleads.v4.servicesB&ThirdPartyAppAnalyticsLinkServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V4.Services\312\002 Google\\Ads\\GoogleAds\\V4\\Services\352\002$Google::Ads::GoogleAds::V4::Services'), + serialized_pb=_b('\nSgoogle/ads/googleads_v4/proto/services/third_party_app_analytics_link_service.proto\x12 google.ads.googleads.v4.services\x1aLgoogle/ads/googleads_v4/proto/resources/third_party_app_analytics_link.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x19google/api/resource.proto\x1a\x17google/api/client.proto\"w\n$GetThirdPartyAppAnalyticsLinkRequest\x12O\n\rresource_name\x18\x01 \x01(\tB8\xfa\x41\x35\n3googleads.googleapis.com/ThirdPartyAppAnalyticsLink2\xb0\x02\n!ThirdPartyAppAnalyticsLinkService\x12\xed\x01\n\x1dGetThirdPartyAppAnalyticsLink\x12\x46.google.ads.googleads.v4.services.GetThirdPartyAppAnalyticsLinkRequest\x1a=.google.ads.googleads.v4.resources.ThirdPartyAppAnalyticsLink\"E\x82\xd3\xe4\x93\x02?\x12=/v4/{resource_name=customers/*/thirdPartyAppAnalyticsLinks/*}\x1a\x1b\xca\x41\x18googleads.googleapis.comB\x8d\x02\n$com.google.ads.googleads.v4.servicesB&ThirdPartyAppAnalyticsLinkServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V4.Services\xca\x02 Google\\Ads\\GoogleAds\\V4\\Services\xea\x02$Google::Ads::GoogleAds::V4::Servicesb\x06proto3') + , + dependencies=[google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_third__party__app__analytics__link__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_api_dot_resource__pb2.DESCRIPTOR,google_dot_api_dot_client__pb2.DESCRIPTOR,]) + + + + +_GETTHIRDPARTYAPPANALYTICSLINKREQUEST = _descriptor.Descriptor( + name='GetThirdPartyAppAnalyticsLinkRequest', + full_name='google.ads.googleads.v4.services.GetThirdPartyAppAnalyticsLinkRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.services.GetThirdPartyAppAnalyticsLinkRequest.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\372A5\n3googleads.googleapis.com/ThirdPartyAppAnalyticsLink'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=281, + serialized_end=400, +) + +DESCRIPTOR.message_types_by_name['GetThirdPartyAppAnalyticsLinkRequest'] = _GETTHIRDPARTYAPPANALYTICSLINKREQUEST +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +GetThirdPartyAppAnalyticsLinkRequest = _reflection.GeneratedProtocolMessageType('GetThirdPartyAppAnalyticsLinkRequest', (_message.Message,), dict( + DESCRIPTOR = _GETTHIRDPARTYAPPANALYTICSLINKREQUEST, + __module__ = 'google.ads.googleads_v4.proto.services.third_party_app_analytics_link_service_pb2' + , + __doc__ = """Request message for + [ThirdPartyAppAnalyticsLinkService.GetThirdPartyAppAnalyticsLink][google.ads.googleads.v4.services.ThirdPartyAppAnalyticsLinkService.GetThirdPartyAppAnalyticsLink]. + + + Attributes: + resource_name: + Resource name of the third party app analytics link. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.GetThirdPartyAppAnalyticsLinkRequest) + )) +_sym_db.RegisterMessage(GetThirdPartyAppAnalyticsLinkRequest) + + +DESCRIPTOR._options = None +_GETTHIRDPARTYAPPANALYTICSLINKREQUEST.fields_by_name['resource_name']._options = None + +_THIRDPARTYAPPANALYTICSLINKSERVICE = _descriptor.ServiceDescriptor( + name='ThirdPartyAppAnalyticsLinkService', + full_name='google.ads.googleads.v4.services.ThirdPartyAppAnalyticsLinkService', + file=DESCRIPTOR, + index=0, + serialized_options=_b('\312A\030googleads.googleapis.com'), + serialized_start=403, + serialized_end=707, + methods=[ + _descriptor.MethodDescriptor( + name='GetThirdPartyAppAnalyticsLink', + full_name='google.ads.googleads.v4.services.ThirdPartyAppAnalyticsLinkService.GetThirdPartyAppAnalyticsLink', + index=0, + containing_service=None, + input_type=_GETTHIRDPARTYAPPANALYTICSLINKREQUEST, + output_type=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_third__party__app__analytics__link__pb2._THIRDPARTYAPPANALYTICSLINK, + serialized_options=_b('\202\323\344\223\002?\022=/v4/{resource_name=customers/*/thirdPartyAppAnalyticsLinks/*}'), + ), +]) +_sym_db.RegisterServiceDescriptor(_THIRDPARTYAPPANALYTICSLINKSERVICE) + +DESCRIPTOR.services_by_name['ThirdPartyAppAnalyticsLinkService'] = _THIRDPARTYAPPANALYTICSLINKSERVICE + +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v4/proto/services/third_party_app_analytics_link_service_pb2_grpc.py b/google/ads/google_ads/v4/proto/services/third_party_app_analytics_link_service_pb2_grpc.py new file mode 100644 index 000000000..4165e7ac0 --- /dev/null +++ b/google/ads/google_ads/v4/proto/services/third_party_app_analytics_link_service_pb2_grpc.py @@ -0,0 +1,49 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +import grpc + +from google.ads.google_ads.v4.proto.resources import third_party_app_analytics_link_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_third__party__app__analytics__link__pb2 +from google.ads.google_ads.v4.proto.services import third_party_app_analytics_link_service_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_third__party__app__analytics__link__service__pb2 + + +class ThirdPartyAppAnalyticsLinkServiceStub(object): + """This service allows management of links between Google Ads and third party + app analytics. + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.GetThirdPartyAppAnalyticsLink = channel.unary_unary( + '/google.ads.googleads.v4.services.ThirdPartyAppAnalyticsLinkService/GetThirdPartyAppAnalyticsLink', + request_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_third__party__app__analytics__link__service__pb2.GetThirdPartyAppAnalyticsLinkRequest.SerializeToString, + response_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_third__party__app__analytics__link__pb2.ThirdPartyAppAnalyticsLink.FromString, + ) + + +class ThirdPartyAppAnalyticsLinkServiceServicer(object): + """This service allows management of links between Google Ads and third party + app analytics. + """ + + def GetThirdPartyAppAnalyticsLink(self, request, context): + """Returns the third party app analytics link in full detail. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_ThirdPartyAppAnalyticsLinkServiceServicer_to_server(servicer, server): + rpc_method_handlers = { + 'GetThirdPartyAppAnalyticsLink': grpc.unary_unary_rpc_method_handler( + servicer.GetThirdPartyAppAnalyticsLink, + request_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_third__party__app__analytics__link__service__pb2.GetThirdPartyAppAnalyticsLinkRequest.FromString, + response_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_third__party__app__analytics__link__pb2.ThirdPartyAppAnalyticsLink.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'google.ads.googleads.v4.services.ThirdPartyAppAnalyticsLinkService', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) diff --git a/google/ads/google_ads/v4/proto/services/topic_constant_service_pb2.py b/google/ads/google_ads/v4/proto/services/topic_constant_service_pb2.py new file mode 100644 index 000000000..96f98c47c --- /dev/null +++ b/google/ads/google_ads/v4/proto/services/topic_constant_service_pb2.py @@ -0,0 +1,111 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/services/topic_constant_service.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.ads.google_ads.v4.proto.resources import topic_constant_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_topic__constant__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 +from google.api import client_pb2 as google_dot_api_dot_client__pb2 +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/services/topic_constant_service.proto', + package='google.ads.googleads.v4.services', + syntax='proto3', + serialized_options=_b('\n$com.google.ads.googleads.v4.servicesB\031TopicConstantServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V4.Services\312\002 Google\\Ads\\GoogleAds\\V4\\Services\352\002$Google::Ads::GoogleAds::V4::Services'), + serialized_pb=_b('\nCgoogle/ads/googleads_v4/proto/services/topic_constant_service.proto\x12 google.ads.googleads.v4.services\x1agoogle/ads/googleads_v4/proto/services/user_data_service.proto\x12 google.ads.googleads.v4.services\x1a\n\x19received_operations_count\x18\x02 \x01(\x0b\x32\x1b.google.protobuf.Int32Value2\xed\x01\n\x0fUserDataService\x12\xbc\x01\n\x0eUploadUserData\x12\x37.google.ads.googleads.v4.services.UploadUserDataRequest\x1a\x38.google.ads.googleads.v4.services.UploadUserDataResponse\"7\x82\xd3\xe4\x93\x02\x31\",/v4/customers/{customer_id=*}:uploadUserData:\x01*\x1a\x1b\xca\x41\x18googleads.googleapis.comB\xfb\x01\n$com.google.ads.googleads.v4.servicesB\x14UserDataServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V4.Services\xca\x02 Google\\Ads\\GoogleAds\\V4\\Services\xea\x02$Google::Ads::GoogleAds::V4::Servicesb\x06proto3') + , + dependencies=[google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_offline__user__data__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_api_dot_client__pb2.DESCRIPTOR,]) + + + + +_UPLOADUSERDATAREQUEST = _descriptor.Descriptor( + name='UploadUserDataRequest', + full_name='google.ads.googleads.v4.services.UploadUserDataRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='customer_id', full_name='google.ads.googleads.v4.services.UploadUserDataRequest.customer_id', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='operations', full_name='google.ads.googleads.v4.services.UploadUserDataRequest.operations', index=1, + number=3, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='customer_match_user_list_metadata', full_name='google.ads.googleads.v4.services.UploadUserDataRequest.customer_match_user_list_metadata', index=2, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name='metadata', full_name='google.ads.googleads.v4.services.UploadUserDataRequest.metadata', + index=0, containing_type=None, fields=[]), + ], + serialized_start=283, + serialized_end=530, +) + + +_USERDATAOPERATION = _descriptor.Descriptor( + name='UserDataOperation', + full_name='google.ads.googleads.v4.services.UserDataOperation', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='create', full_name='google.ads.googleads.v4.services.UserDataOperation.create', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='remove', full_name='google.ads.googleads.v4.services.UserDataOperation.remove', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name='operation', full_name='google.ads.googleads.v4.services.UserDataOperation.operation', + index=0, containing_type=None, fields=[]), + ], + serialized_start=533, + serialized_end=685, +) + + +_UPLOADUSERDATARESPONSE = _descriptor.Descriptor( + name='UploadUserDataResponse', + full_name='google.ads.googleads.v4.services.UploadUserDataResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='upload_date_time', full_name='google.ads.googleads.v4.services.UploadUserDataResponse.upload_date_time', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='received_operations_count', full_name='google.ads.googleads.v4.services.UploadUserDataResponse.received_operations_count', index=1, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=688, + serialized_end=832, +) + +_UPLOADUSERDATAREQUEST.fields_by_name['operations'].message_type = _USERDATAOPERATION +_UPLOADUSERDATAREQUEST.fields_by_name['customer_match_user_list_metadata'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_offline__user__data__pb2._CUSTOMERMATCHUSERLISTMETADATA +_UPLOADUSERDATAREQUEST.oneofs_by_name['metadata'].fields.append( + _UPLOADUSERDATAREQUEST.fields_by_name['customer_match_user_list_metadata']) +_UPLOADUSERDATAREQUEST.fields_by_name['customer_match_user_list_metadata'].containing_oneof = _UPLOADUSERDATAREQUEST.oneofs_by_name['metadata'] +_USERDATAOPERATION.fields_by_name['create'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_offline__user__data__pb2._USERDATA +_USERDATAOPERATION.fields_by_name['remove'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_common_dot_offline__user__data__pb2._USERDATA +_USERDATAOPERATION.oneofs_by_name['operation'].fields.append( + _USERDATAOPERATION.fields_by_name['create']) +_USERDATAOPERATION.fields_by_name['create'].containing_oneof = _USERDATAOPERATION.oneofs_by_name['operation'] +_USERDATAOPERATION.oneofs_by_name['operation'].fields.append( + _USERDATAOPERATION.fields_by_name['remove']) +_USERDATAOPERATION.fields_by_name['remove'].containing_oneof = _USERDATAOPERATION.oneofs_by_name['operation'] +_UPLOADUSERDATARESPONSE.fields_by_name['upload_date_time'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_UPLOADUSERDATARESPONSE.fields_by_name['received_operations_count'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT32VALUE +DESCRIPTOR.message_types_by_name['UploadUserDataRequest'] = _UPLOADUSERDATAREQUEST +DESCRIPTOR.message_types_by_name['UserDataOperation'] = _USERDATAOPERATION +DESCRIPTOR.message_types_by_name['UploadUserDataResponse'] = _UPLOADUSERDATARESPONSE +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +UploadUserDataRequest = _reflection.GeneratedProtocolMessageType('UploadUserDataRequest', (_message.Message,), dict( + DESCRIPTOR = _UPLOADUSERDATAREQUEST, + __module__ = 'google.ads.googleads_v4.proto.services.user_data_service_pb2' + , + __doc__ = """Request message for + [UserDataService.UploadUserData][google.ads.googleads.v4.services.UserDataService.UploadUserData] + + + Attributes: + customer_id: + Required. The ID of the customer for which to update the user + data. + operations: + Required. The list of operations to be done. + metadata: + Metadata of the request. + customer_match_user_list_metadata: + Metadata for data updates to a Customer Match user list. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.UploadUserDataRequest) + )) +_sym_db.RegisterMessage(UploadUserDataRequest) + +UserDataOperation = _reflection.GeneratedProtocolMessageType('UserDataOperation', (_message.Message,), dict( + DESCRIPTOR = _USERDATAOPERATION, + __module__ = 'google.ads.googleads_v4.proto.services.user_data_service_pb2' + , + __doc__ = """Operation to be made for the UploadUserDataRequest. + + + Attributes: + operation: + Operation to be made for the UploadUserDataRequest. + create: + The list of user data to be appended to the user list. + remove: + The list of user data to be removed from the user list. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.UserDataOperation) + )) +_sym_db.RegisterMessage(UserDataOperation) + +UploadUserDataResponse = _reflection.GeneratedProtocolMessageType('UploadUserDataResponse', (_message.Message,), dict( + DESCRIPTOR = _UPLOADUSERDATARESPONSE, + __module__ = 'google.ads.googleads_v4.proto.services.user_data_service_pb2' + , + __doc__ = """Response message for + [UserDataService.UploadUserData][google.ads.googleads.v4.services.UserDataService.UploadUserData] + + + Attributes: + upload_date_time: + The date time at which the request was received by API, + formatted as "yyyy-mm-dd hh:mm:ss+\|-hh:mm", e.g. "2019-01-01 + 12:32:45-08:00". + received_operations_count: + Number of upload data operations received by API. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.UploadUserDataResponse) + )) +_sym_db.RegisterMessage(UploadUserDataResponse) + + +DESCRIPTOR._options = None +_UPLOADUSERDATAREQUEST.fields_by_name['customer_id']._options = None +_UPLOADUSERDATAREQUEST.fields_by_name['operations']._options = None + +_USERDATASERVICE = _descriptor.ServiceDescriptor( + name='UserDataService', + full_name='google.ads.googleads.v4.services.UserDataService', + file=DESCRIPTOR, + index=0, + serialized_options=_b('\312A\030googleads.googleapis.com'), + serialized_start=835, + serialized_end=1072, + methods=[ + _descriptor.MethodDescriptor( + name='UploadUserData', + full_name='google.ads.googleads.v4.services.UserDataService.UploadUserData', + index=0, + containing_service=None, + input_type=_UPLOADUSERDATAREQUEST, + output_type=_UPLOADUSERDATARESPONSE, + serialized_options=_b('\202\323\344\223\0021\",/v4/customers/{customer_id=*}:uploadUserData:\001*'), + ), +]) +_sym_db.RegisterServiceDescriptor(_USERDATASERVICE) + +DESCRIPTOR.services_by_name['UserDataService'] = _USERDATASERVICE + +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v4/proto/services/user_data_service_pb2_grpc.py b/google/ads/google_ads/v4/proto/services/user_data_service_pb2_grpc.py new file mode 100644 index 000000000..f49732ff1 --- /dev/null +++ b/google/ads/google_ads/v4/proto/services/user_data_service_pb2_grpc.py @@ -0,0 +1,52 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +import grpc + +from google.ads.google_ads.v4.proto.services import user_data_service_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_user__data__service__pb2 + + +class UserDataServiceStub(object): + """Proto file describing the UserDataService. + + Service to manage user data uploads. + Accessible to whitelisted customers only. + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.UploadUserData = channel.unary_unary( + '/google.ads.googleads.v4.services.UserDataService/UploadUserData', + request_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_user__data__service__pb2.UploadUserDataRequest.SerializeToString, + response_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_user__data__service__pb2.UploadUserDataResponse.FromString, + ) + + +class UserDataServiceServicer(object): + """Proto file describing the UserDataService. + + Service to manage user data uploads. + Accessible to whitelisted customers only. + """ + + def UploadUserData(self, request, context): + """Uploads the given user data. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_UserDataServiceServicer_to_server(servicer, server): + rpc_method_handlers = { + 'UploadUserData': grpc.unary_unary_rpc_method_handler( + servicer.UploadUserData, + request_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_user__data__service__pb2.UploadUserDataRequest.FromString, + response_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_user__data__service__pb2.UploadUserDataResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'google.ads.googleads.v4.services.UserDataService', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) diff --git a/google/ads/google_ads/v4/proto/services/user_interest_service_pb2.py b/google/ads/google_ads/v4/proto/services/user_interest_service_pb2.py new file mode 100644 index 000000000..61324b4bd --- /dev/null +++ b/google/ads/google_ads/v4/proto/services/user_interest_service_pb2.py @@ -0,0 +1,111 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/services/user_interest_service.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.ads.google_ads.v4.proto.resources import user_interest_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_user__interest__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 +from google.api import client_pb2 as google_dot_api_dot_client__pb2 +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/services/user_interest_service.proto', + package='google.ads.googleads.v4.services', + syntax='proto3', + serialized_options=_b('\n$com.google.ads.googleads.v4.servicesB\030UserInterestServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V4.Services\312\002 Google\\Ads\\GoogleAds\\V4\\Services\352\002$Google::Ads::GoogleAds::V4::Services'), + serialized_pb=_b('\nBgoogle/ads/googleads_v4/proto/services/user_interest_service.proto\x12 google.ads.googleads.v4.services\x1a;google/ads/googleads_v4/proto/resources/user_interest.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"^\n\x16GetUserInterestRequest\x12\x44\n\rresource_name\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%googleads.googleapis.com/UserInterest2\xfa\x01\n\x13UserInterestService\x12\xc5\x01\n\x0fGetUserInterest\x12\x38.google.ads.googleads.v4.services.GetUserInterestRequest\x1a/.google.ads.googleads.v4.resources.UserInterest\"G\x82\xd3\xe4\x93\x02\x31\x12//v4/{resource_name=customers/*/userInterests/*}\xda\x41\rresource_name\x1a\x1b\xca\x41\x18googleads.googleapis.comB\xff\x01\n$com.google.ads.googleads.v4.servicesB\x18UserInterestServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V4.Services\xca\x02 Google\\Ads\\GoogleAds\\V4\\Services\xea\x02$Google::Ads::GoogleAds::V4::Servicesb\x06proto3') + , + dependencies=[google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_user__interest__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_api_dot_client__pb2.DESCRIPTOR,google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_api_dot_resource__pb2.DESCRIPTOR,]) + + + + +_GETUSERINTERESTREQUEST = _descriptor.Descriptor( + name='GetUserInterestRequest', + full_name='google.ads.googleads.v4.services.GetUserInterestRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.services.GetUserInterestRequest.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002\372A\'\n%googleads.googleapis.com/UserInterest'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=280, + serialized_end=374, +) + +DESCRIPTOR.message_types_by_name['GetUserInterestRequest'] = _GETUSERINTERESTREQUEST +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +GetUserInterestRequest = _reflection.GeneratedProtocolMessageType('GetUserInterestRequest', (_message.Message,), dict( + DESCRIPTOR = _GETUSERINTERESTREQUEST, + __module__ = 'google.ads.googleads_v4.proto.services.user_interest_service_pb2' + , + __doc__ = """Request message for + [UserInterestService.GetUserInterest][google.ads.googleads.v4.services.UserInterestService.GetUserInterest]. + + + Attributes: + resource_name: + Required. Resource name of the UserInterest to fetch. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.GetUserInterestRequest) + )) +_sym_db.RegisterMessage(GetUserInterestRequest) + + +DESCRIPTOR._options = None +_GETUSERINTERESTREQUEST.fields_by_name['resource_name']._options = None + +_USERINTERESTSERVICE = _descriptor.ServiceDescriptor( + name='UserInterestService', + full_name='google.ads.googleads.v4.services.UserInterestService', + file=DESCRIPTOR, + index=0, + serialized_options=_b('\312A\030googleads.googleapis.com'), + serialized_start=377, + serialized_end=627, + methods=[ + _descriptor.MethodDescriptor( + name='GetUserInterest', + full_name='google.ads.googleads.v4.services.UserInterestService.GetUserInterest', + index=0, + containing_service=None, + input_type=_GETUSERINTERESTREQUEST, + output_type=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_user__interest__pb2._USERINTEREST, + serialized_options=_b('\202\323\344\223\0021\022//v4/{resource_name=customers/*/userInterests/*}\332A\rresource_name'), + ), +]) +_sym_db.RegisterServiceDescriptor(_USERINTERESTSERVICE) + +DESCRIPTOR.services_by_name['UserInterestService'] = _USERINTERESTSERVICE + +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v4/proto/services/user_interest_service_pb2_grpc.py b/google/ads/google_ads/v4/proto/services/user_interest_service_pb2_grpc.py new file mode 100644 index 000000000..2962445bc --- /dev/null +++ b/google/ads/google_ads/v4/proto/services/user_interest_service_pb2_grpc.py @@ -0,0 +1,51 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +import grpc + +from google.ads.google_ads.v4.proto.resources import user_interest_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_user__interest__pb2 +from google.ads.google_ads.v4.proto.services import user_interest_service_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_user__interest__service__pb2 + + +class UserInterestServiceStub(object): + """Proto file describing the user interest service + + Service to fetch Google Ads User Interest. + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.GetUserInterest = channel.unary_unary( + '/google.ads.googleads.v4.services.UserInterestService/GetUserInterest', + request_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_user__interest__service__pb2.GetUserInterestRequest.SerializeToString, + response_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_user__interest__pb2.UserInterest.FromString, + ) + + +class UserInterestServiceServicer(object): + """Proto file describing the user interest service + + Service to fetch Google Ads User Interest. + """ + + def GetUserInterest(self, request, context): + """Returns the requested user interest in full detail + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_UserInterestServiceServicer_to_server(servicer, server): + rpc_method_handlers = { + 'GetUserInterest': grpc.unary_unary_rpc_method_handler( + servicer.GetUserInterest, + request_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_user__interest__service__pb2.GetUserInterestRequest.FromString, + response_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_user__interest__pb2.UserInterest.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'google.ads.googleads.v4.services.UserInterestService', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) diff --git a/google/ads/google_ads/v4/proto/services/user_list_service_pb2.py b/google/ads/google_ads/v4/proto/services/user_list_service_pb2.py new file mode 100644 index 000000000..f31edd10b --- /dev/null +++ b/google/ads/google_ads/v4/proto/services/user_list_service_pb2.py @@ -0,0 +1,411 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/services/user_list_service.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.ads.google_ads.v4.proto.resources import user_list_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_user__list__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 +from google.api import client_pb2 as google_dot_api_dot_client__pb2 +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 +from google.protobuf import field_mask_pb2 as google_dot_protobuf_dot_field__mask__pb2 +from google.rpc import status_pb2 as google_dot_rpc_dot_status__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/services/user_list_service.proto', + package='google.ads.googleads.v4.services', + syntax='proto3', + serialized_options=_b('\n$com.google.ads.googleads.v4.servicesB\024UserListServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V4.Services\312\002 Google\\Ads\\GoogleAds\\V4\\Services\352\002$Google::Ads::GoogleAds::V4::Services'), + serialized_pb=_b('\n>google/ads/googleads_v4/proto/services/user_list_service.proto\x12 google.ads.googleads.v4.services\x1a\x37google/ads/googleads_v4/proto/resources/user_list.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/protobuf/field_mask.proto\x1a\x17google/rpc/status.proto\"V\n\x12GetUserListRequest\x12@\n\rresource_name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!googleads.googleapis.com/UserList\"\xb0\x01\n\x16MutateUserListsRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12L\n\noperations\x18\x02 \x03(\x0b\x32\x33.google.ads.googleads.v4.services.UserListOperationB\x03\xe0\x41\x02\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\"\xe1\x01\n\x11UserListOperation\x12/\n\x0bupdate_mask\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12=\n\x06\x63reate\x18\x01 \x01(\x0b\x32+.google.ads.googleads.v4.resources.UserListH\x00\x12=\n\x06update\x18\x02 \x01(\x0b\x32+.google.ads.googleads.v4.resources.UserListH\x00\x12\x10\n\x06remove\x18\x03 \x01(\tH\x00\x42\x0b\n\toperation\"\x95\x01\n\x17MutateUserListsResponse\x12\x31\n\x15partial_failure_error\x18\x03 \x01(\x0b\x32\x12.google.rpc.Status\x12G\n\x07results\x18\x02 \x03(\x0b\x32\x36.google.ads.googleads.v4.services.MutateUserListResult\"-\n\x14MutateUserListResult\x12\x15\n\rresource_name\x18\x01 \x01(\t2\xc3\x03\n\x0fUserListService\x12\xb5\x01\n\x0bGetUserList\x12\x34.google.ads.googleads.v4.services.GetUserListRequest\x1a+.google.ads.googleads.v4.resources.UserList\"C\x82\xd3\xe4\x93\x02-\x12+/v4/{resource_name=customers/*/userLists/*}\xda\x41\rresource_name\x12\xda\x01\n\x0fMutateUserLists\x12\x38.google.ads.googleads.v4.services.MutateUserListsRequest\x1a\x39.google.ads.googleads.v4.services.MutateUserListsResponse\"R\x82\xd3\xe4\x93\x02\x33\"./v4/customers/{customer_id=*}/userLists:mutate:\x01*\xda\x41\x16\x63ustomer_id,operations\x1a\x1b\xca\x41\x18googleads.googleapis.comB\xfb\x01\n$com.google.ads.googleads.v4.servicesB\x14UserListServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V4.Services\xca\x02 Google\\Ads\\GoogleAds\\V4\\Services\xea\x02$Google::Ads::GoogleAds::V4::Servicesb\x06proto3') + , + dependencies=[google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_user__list__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_api_dot_client__pb2.DESCRIPTOR,google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_api_dot_resource__pb2.DESCRIPTOR,google_dot_protobuf_dot_field__mask__pb2.DESCRIPTOR,google_dot_rpc_dot_status__pb2.DESCRIPTOR,]) + + + + +_GETUSERLISTREQUEST = _descriptor.Descriptor( + name='GetUserListRequest', + full_name='google.ads.googleads.v4.services.GetUserListRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.services.GetUserListRequest.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002\372A#\n!googleads.googleapis.com/UserList'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=331, + serialized_end=417, +) + + +_MUTATEUSERLISTSREQUEST = _descriptor.Descriptor( + name='MutateUserListsRequest', + full_name='google.ads.googleads.v4.services.MutateUserListsRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='customer_id', full_name='google.ads.googleads.v4.services.MutateUserListsRequest.customer_id', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='operations', full_name='google.ads.googleads.v4.services.MutateUserListsRequest.operations', index=1, + number=2, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002'), file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='partial_failure', full_name='google.ads.googleads.v4.services.MutateUserListsRequest.partial_failure', index=2, + number=3, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='validate_only', full_name='google.ads.googleads.v4.services.MutateUserListsRequest.validate_only', index=3, + number=4, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=420, + serialized_end=596, +) + + +_USERLISTOPERATION = _descriptor.Descriptor( + name='UserListOperation', + full_name='google.ads.googleads.v4.services.UserListOperation', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='update_mask', full_name='google.ads.googleads.v4.services.UserListOperation.update_mask', index=0, + number=4, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='create', full_name='google.ads.googleads.v4.services.UserListOperation.create', index=1, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='update', full_name='google.ads.googleads.v4.services.UserListOperation.update', index=2, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='remove', full_name='google.ads.googleads.v4.services.UserListOperation.remove', index=3, + number=3, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name='operation', full_name='google.ads.googleads.v4.services.UserListOperation.operation', + index=0, containing_type=None, fields=[]), + ], + serialized_start=599, + serialized_end=824, +) + + +_MUTATEUSERLISTSRESPONSE = _descriptor.Descriptor( + name='MutateUserListsResponse', + full_name='google.ads.googleads.v4.services.MutateUserListsResponse', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='partial_failure_error', full_name='google.ads.googleads.v4.services.MutateUserListsResponse.partial_failure_error', index=0, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='results', full_name='google.ads.googleads.v4.services.MutateUserListsResponse.results', index=1, + number=2, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=827, + serialized_end=976, +) + + +_MUTATEUSERLISTRESULT = _descriptor.Descriptor( + name='MutateUserListResult', + full_name='google.ads.googleads.v4.services.MutateUserListResult', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.services.MutateUserListResult.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=978, + serialized_end=1023, +) + +_MUTATEUSERLISTSREQUEST.fields_by_name['operations'].message_type = _USERLISTOPERATION +_USERLISTOPERATION.fields_by_name['update_mask'].message_type = google_dot_protobuf_dot_field__mask__pb2._FIELDMASK +_USERLISTOPERATION.fields_by_name['create'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_user__list__pb2._USERLIST +_USERLISTOPERATION.fields_by_name['update'].message_type = google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_user__list__pb2._USERLIST +_USERLISTOPERATION.oneofs_by_name['operation'].fields.append( + _USERLISTOPERATION.fields_by_name['create']) +_USERLISTOPERATION.fields_by_name['create'].containing_oneof = _USERLISTOPERATION.oneofs_by_name['operation'] +_USERLISTOPERATION.oneofs_by_name['operation'].fields.append( + _USERLISTOPERATION.fields_by_name['update']) +_USERLISTOPERATION.fields_by_name['update'].containing_oneof = _USERLISTOPERATION.oneofs_by_name['operation'] +_USERLISTOPERATION.oneofs_by_name['operation'].fields.append( + _USERLISTOPERATION.fields_by_name['remove']) +_USERLISTOPERATION.fields_by_name['remove'].containing_oneof = _USERLISTOPERATION.oneofs_by_name['operation'] +_MUTATEUSERLISTSRESPONSE.fields_by_name['partial_failure_error'].message_type = google_dot_rpc_dot_status__pb2._STATUS +_MUTATEUSERLISTSRESPONSE.fields_by_name['results'].message_type = _MUTATEUSERLISTRESULT +DESCRIPTOR.message_types_by_name['GetUserListRequest'] = _GETUSERLISTREQUEST +DESCRIPTOR.message_types_by_name['MutateUserListsRequest'] = _MUTATEUSERLISTSREQUEST +DESCRIPTOR.message_types_by_name['UserListOperation'] = _USERLISTOPERATION +DESCRIPTOR.message_types_by_name['MutateUserListsResponse'] = _MUTATEUSERLISTSRESPONSE +DESCRIPTOR.message_types_by_name['MutateUserListResult'] = _MUTATEUSERLISTRESULT +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +GetUserListRequest = _reflection.GeneratedProtocolMessageType('GetUserListRequest', (_message.Message,), dict( + DESCRIPTOR = _GETUSERLISTREQUEST, + __module__ = 'google.ads.googleads_v4.proto.services.user_list_service_pb2' + , + __doc__ = """Request message for + [UserListService.GetUserList][google.ads.googleads.v4.services.UserListService.GetUserList]. + + + Attributes: + resource_name: + Required. The resource name of the user list to fetch. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.GetUserListRequest) + )) +_sym_db.RegisterMessage(GetUserListRequest) + +MutateUserListsRequest = _reflection.GeneratedProtocolMessageType('MutateUserListsRequest', (_message.Message,), dict( + DESCRIPTOR = _MUTATEUSERLISTSREQUEST, + __module__ = 'google.ads.googleads_v4.proto.services.user_list_service_pb2' + , + __doc__ = """Request message for + [UserListService.MutateUserLists][google.ads.googleads.v4.services.UserListService.MutateUserLists]. + + + Attributes: + customer_id: + Required. The ID of the customer whose user lists are being + modified. + operations: + Required. The list of operations to perform on individual user + lists. + partial_failure: + If true, successful operations will be carried out and invalid + operations will return errors. If false, all operations will + be carried out in one transaction if and only if they are all + valid. Default is false. + validate_only: + If true, the request is validated but not executed. Only + errors are returned, not results. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.MutateUserListsRequest) + )) +_sym_db.RegisterMessage(MutateUserListsRequest) + +UserListOperation = _reflection.GeneratedProtocolMessageType('UserListOperation', (_message.Message,), dict( + DESCRIPTOR = _USERLISTOPERATION, + __module__ = 'google.ads.googleads_v4.proto.services.user_list_service_pb2' + , + __doc__ = """A single operation (create, update) on a user list. + + + Attributes: + update_mask: + FieldMask that determines which resource fields are modified + in an update. + operation: + The mutate operation. + create: + Create operation: No resource name is expected for the new + user list. + update: + Update operation: The user list is expected to have a valid + resource name. + remove: + Remove operation: A resource name for the removed user list is + expected, in this format: + ``customers/{customer_id}/userLists/{user_list_id}`` + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.UserListOperation) + )) +_sym_db.RegisterMessage(UserListOperation) + +MutateUserListsResponse = _reflection.GeneratedProtocolMessageType('MutateUserListsResponse', (_message.Message,), dict( + DESCRIPTOR = _MUTATEUSERLISTSRESPONSE, + __module__ = 'google.ads.googleads_v4.proto.services.user_list_service_pb2' + , + __doc__ = """Response message for user list mutate. + + + Attributes: + partial_failure_error: + Errors that pertain to operation failures in the partial + failure mode. Returned only when partial\_failure = true and + all errors occur inside the operations. If any errors occur + outside the operations (e.g. auth errors), we return an RPC + level error. + results: + All results for the mutate. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.MutateUserListsResponse) + )) +_sym_db.RegisterMessage(MutateUserListsResponse) + +MutateUserListResult = _reflection.GeneratedProtocolMessageType('MutateUserListResult', (_message.Message,), dict( + DESCRIPTOR = _MUTATEUSERLISTRESULT, + __module__ = 'google.ads.googleads_v4.proto.services.user_list_service_pb2' + , + __doc__ = """The result for the user list mutate. + + + Attributes: + resource_name: + Returned for successful operations. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.MutateUserListResult) + )) +_sym_db.RegisterMessage(MutateUserListResult) + + +DESCRIPTOR._options = None +_GETUSERLISTREQUEST.fields_by_name['resource_name']._options = None +_MUTATEUSERLISTSREQUEST.fields_by_name['customer_id']._options = None +_MUTATEUSERLISTSREQUEST.fields_by_name['operations']._options = None + +_USERLISTSERVICE = _descriptor.ServiceDescriptor( + name='UserListService', + full_name='google.ads.googleads.v4.services.UserListService', + file=DESCRIPTOR, + index=0, + serialized_options=_b('\312A\030googleads.googleapis.com'), + serialized_start=1026, + serialized_end=1477, + methods=[ + _descriptor.MethodDescriptor( + name='GetUserList', + full_name='google.ads.googleads.v4.services.UserListService.GetUserList', + index=0, + containing_service=None, + input_type=_GETUSERLISTREQUEST, + output_type=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_user__list__pb2._USERLIST, + serialized_options=_b('\202\323\344\223\002-\022+/v4/{resource_name=customers/*/userLists/*}\332A\rresource_name'), + ), + _descriptor.MethodDescriptor( + name='MutateUserLists', + full_name='google.ads.googleads.v4.services.UserListService.MutateUserLists', + index=1, + containing_service=None, + input_type=_MUTATEUSERLISTSREQUEST, + output_type=_MUTATEUSERLISTSRESPONSE, + serialized_options=_b('\202\323\344\223\0023\"./v4/customers/{customer_id=*}/userLists:mutate:\001*\332A\026customer_id,operations'), + ), +]) +_sym_db.RegisterServiceDescriptor(_USERLISTSERVICE) + +DESCRIPTOR.services_by_name['UserListService'] = _USERLISTSERVICE + +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v4/proto/services/user_list_service_pb2_grpc.py b/google/ads/google_ads/v4/proto/services/user_list_service_pb2_grpc.py new file mode 100644 index 000000000..1acade8b0 --- /dev/null +++ b/google/ads/google_ads/v4/proto/services/user_list_service_pb2_grpc.py @@ -0,0 +1,68 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +import grpc + +from google.ads.google_ads.v4.proto.resources import user_list_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_user__list__pb2 +from google.ads.google_ads.v4.proto.services import user_list_service_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_user__list__service__pb2 + + +class UserListServiceStub(object): + """Proto file describing the User List service. + + Service to manage user lists. + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.GetUserList = channel.unary_unary( + '/google.ads.googleads.v4.services.UserListService/GetUserList', + request_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_user__list__service__pb2.GetUserListRequest.SerializeToString, + response_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_user__list__pb2.UserList.FromString, + ) + self.MutateUserLists = channel.unary_unary( + '/google.ads.googleads.v4.services.UserListService/MutateUserLists', + request_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_user__list__service__pb2.MutateUserListsRequest.SerializeToString, + response_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_user__list__service__pb2.MutateUserListsResponse.FromString, + ) + + +class UserListServiceServicer(object): + """Proto file describing the User List service. + + Service to manage user lists. + """ + + def GetUserList(self, request, context): + """Returns the requested user list. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def MutateUserLists(self, request, context): + """Creates or updates user lists. Operation statuses are returned. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_UserListServiceServicer_to_server(servicer, server): + rpc_method_handlers = { + 'GetUserList': grpc.unary_unary_rpc_method_handler( + servicer.GetUserList, + request_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_user__list__service__pb2.GetUserListRequest.FromString, + response_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_user__list__pb2.UserList.SerializeToString, + ), + 'MutateUserLists': grpc.unary_unary_rpc_method_handler( + servicer.MutateUserLists, + request_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_user__list__service__pb2.MutateUserListsRequest.FromString, + response_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_user__list__service__pb2.MutateUserListsResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'google.ads.googleads.v4.services.UserListService', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) diff --git a/google/ads/google_ads/v4/proto/services/user_location_view_service_pb2.py b/google/ads/google_ads/v4/proto/services/user_location_view_service_pb2.py new file mode 100644 index 000000000..56a2520ba --- /dev/null +++ b/google/ads/google_ads/v4/proto/services/user_location_view_service_pb2.py @@ -0,0 +1,112 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/services/user_location_view_service.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.ads.google_ads.v4.proto.resources import user_location_view_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_user__location__view__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 +from google.api import client_pb2 as google_dot_api_dot_client__pb2 +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/services/user_location_view_service.proto', + package='google.ads.googleads.v4.services', + syntax='proto3', + serialized_options=_b('\n$com.google.ads.googleads.v4.servicesB\034UserLocationViewServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V4.Services\312\002 Google\\Ads\\GoogleAds\\V4\\Services\352\002$Google::Ads::GoogleAds::V4::Services'), + serialized_pb=_b('\nGgoogle/ads/googleads_v4/proto/services/user_location_view_service.proto\x12 google.ads.googleads.v4.services\x1a@google/ads/googleads_v4/proto/resources/user_location_view.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"f\n\x1aGetUserLocationViewRequest\x12H\n\rresource_name\x18\x01 \x01(\tB1\xe0\x41\x02\xfa\x41+\n)googleads.googleapis.com/UserLocationView2\x8e\x02\n\x17UserLocationViewService\x12\xd5\x01\n\x13GetUserLocationView\x12<.google.ads.googleads.v4.services.GetUserLocationViewRequest\x1a\x33.google.ads.googleads.v4.resources.UserLocationView\"K\x82\xd3\xe4\x93\x02\x35\x12\x33/v4/{resource_name=customers/*/userLocationViews/*}\xda\x41\rresource_name\x1a\x1b\xca\x41\x18googleads.googleapis.comB\x83\x02\n$com.google.ads.googleads.v4.servicesB\x1cUserLocationViewServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V4.Services\xca\x02 Google\\Ads\\GoogleAds\\V4\\Services\xea\x02$Google::Ads::GoogleAds::V4::Servicesb\x06proto3') + , + dependencies=[google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_user__location__view__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_api_dot_client__pb2.DESCRIPTOR,google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_api_dot_resource__pb2.DESCRIPTOR,]) + + + + +_GETUSERLOCATIONVIEWREQUEST = _descriptor.Descriptor( + name='GetUserLocationViewRequest', + full_name='google.ads.googleads.v4.services.GetUserLocationViewRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.services.GetUserLocationViewRequest.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002\372A+\n)googleads.googleapis.com/UserLocationView'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=290, + serialized_end=392, +) + +DESCRIPTOR.message_types_by_name['GetUserLocationViewRequest'] = _GETUSERLOCATIONVIEWREQUEST +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +GetUserLocationViewRequest = _reflection.GeneratedProtocolMessageType('GetUserLocationViewRequest', (_message.Message,), dict( + DESCRIPTOR = _GETUSERLOCATIONVIEWREQUEST, + __module__ = 'google.ads.googleads_v4.proto.services.user_location_view_service_pb2' + , + __doc__ = """Request message for + [UserLocationViewService.GetUserLocationView][google.ads.googleads.v4.services.UserLocationViewService.GetUserLocationView]. + + + Attributes: + resource_name: + Required. The resource name of the user location view to + fetch. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.GetUserLocationViewRequest) + )) +_sym_db.RegisterMessage(GetUserLocationViewRequest) + + +DESCRIPTOR._options = None +_GETUSERLOCATIONVIEWREQUEST.fields_by_name['resource_name']._options = None + +_USERLOCATIONVIEWSERVICE = _descriptor.ServiceDescriptor( + name='UserLocationViewService', + full_name='google.ads.googleads.v4.services.UserLocationViewService', + file=DESCRIPTOR, + index=0, + serialized_options=_b('\312A\030googleads.googleapis.com'), + serialized_start=395, + serialized_end=665, + methods=[ + _descriptor.MethodDescriptor( + name='GetUserLocationView', + full_name='google.ads.googleads.v4.services.UserLocationViewService.GetUserLocationView', + index=0, + containing_service=None, + input_type=_GETUSERLOCATIONVIEWREQUEST, + output_type=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_user__location__view__pb2._USERLOCATIONVIEW, + serialized_options=_b('\202\323\344\223\0025\0223/v4/{resource_name=customers/*/userLocationViews/*}\332A\rresource_name'), + ), +]) +_sym_db.RegisterServiceDescriptor(_USERLOCATIONVIEWSERVICE) + +DESCRIPTOR.services_by_name['UserLocationViewService'] = _USERLOCATIONVIEWSERVICE + +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v4/proto/services/user_location_view_service_pb2_grpc.py b/google/ads/google_ads/v4/proto/services/user_location_view_service_pb2_grpc.py new file mode 100644 index 000000000..281fe0a99 --- /dev/null +++ b/google/ads/google_ads/v4/proto/services/user_location_view_service_pb2_grpc.py @@ -0,0 +1,51 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +import grpc + +from google.ads.google_ads.v4.proto.resources import user_location_view_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_user__location__view__pb2 +from google.ads.google_ads.v4.proto.services import user_location_view_service_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_user__location__view__service__pb2 + + +class UserLocationViewServiceStub(object): + """Proto file describing the UserLocationView service. + + Service to manage user location views. + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.GetUserLocationView = channel.unary_unary( + '/google.ads.googleads.v4.services.UserLocationViewService/GetUserLocationView', + request_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_user__location__view__service__pb2.GetUserLocationViewRequest.SerializeToString, + response_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_user__location__view__pb2.UserLocationView.FromString, + ) + + +class UserLocationViewServiceServicer(object): + """Proto file describing the UserLocationView service. + + Service to manage user location views. + """ + + def GetUserLocationView(self, request, context): + """Returns the requested user location view in full detail. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_UserLocationViewServiceServicer_to_server(servicer, server): + rpc_method_handlers = { + 'GetUserLocationView': grpc.unary_unary_rpc_method_handler( + servicer.GetUserLocationView, + request_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_user__location__view__service__pb2.GetUserLocationViewRequest.FromString, + response_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_user__location__view__pb2.UserLocationView.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'google.ads.googleads.v4.services.UserLocationViewService', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) diff --git a/google/ads/google_ads/v4/proto/services/video_service_pb2.py b/google/ads/google_ads/v4/proto/services/video_service_pb2.py new file mode 100644 index 000000000..c32bf09f0 --- /dev/null +++ b/google/ads/google_ads/v4/proto/services/video_service_pb2.py @@ -0,0 +1,111 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v4/proto/services/video_service.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.ads.google_ads.v4.proto.resources import video_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_video__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 +from google.api import client_pb2 as google_dot_api_dot_client__pb2 +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name='google/ads/googleads_v4/proto/services/video_service.proto', + package='google.ads.googleads.v4.services', + syntax='proto3', + serialized_options=_b('\n$com.google.ads.googleads.v4.servicesB\021VideoServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V4.Services\312\002 Google\\Ads\\GoogleAds\\V4\\Services\352\002$Google::Ads::GoogleAds::V4::Services'), + serialized_pb=_b('\n:google/ads/googleads_v4/proto/services/video_service.proto\x12 google.ads.googleads.v4.services\x1a\x33google/ads/googleads_v4/proto/resources/video.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"P\n\x0fGetVideoRequest\x12=\n\rresource_name\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \n\x1egoogleads.googleapis.com/Video2\xd7\x01\n\x0cVideoService\x12\xa9\x01\n\x08GetVideo\x12\x31.google.ads.googleads.v4.services.GetVideoRequest\x1a(.google.ads.googleads.v4.resources.Video\"@\x82\xd3\xe4\x93\x02*\x12(/v4/{resource_name=customers/*/videos/*}\xda\x41\rresource_name\x1a\x1b\xca\x41\x18googleads.googleapis.comB\xf8\x01\n$com.google.ads.googleads.v4.servicesB\x11VideoServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v4/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V4.Services\xca\x02 Google\\Ads\\GoogleAds\\V4\\Services\xea\x02$Google::Ads::GoogleAds::V4::Servicesb\x06proto3') + , + dependencies=[google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_video__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_api_dot_client__pb2.DESCRIPTOR,google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_api_dot_resource__pb2.DESCRIPTOR,]) + + + + +_GETVIDEOREQUEST = _descriptor.Descriptor( + name='GetVideoRequest', + full_name='google.ads.googleads.v4.services.GetVideoRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='resource_name', full_name='google.ads.googleads.v4.services.GetVideoRequest.resource_name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=_b("").decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=_b('\340A\002\372A \n\036googleads.googleapis.com/Video'), file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=264, + serialized_end=344, +) + +DESCRIPTOR.message_types_by_name['GetVideoRequest'] = _GETVIDEOREQUEST +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +GetVideoRequest = _reflection.GeneratedProtocolMessageType('GetVideoRequest', (_message.Message,), dict( + DESCRIPTOR = _GETVIDEOREQUEST, + __module__ = 'google.ads.googleads_v4.proto.services.video_service_pb2' + , + __doc__ = """Request message for + [VideoService.GetVideo][google.ads.googleads.v4.services.VideoService.GetVideo]. + + + Attributes: + resource_name: + Required. The resource name of the video to fetch. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v4.services.GetVideoRequest) + )) +_sym_db.RegisterMessage(GetVideoRequest) + + +DESCRIPTOR._options = None +_GETVIDEOREQUEST.fields_by_name['resource_name']._options = None + +_VIDEOSERVICE = _descriptor.ServiceDescriptor( + name='VideoService', + full_name='google.ads.googleads.v4.services.VideoService', + file=DESCRIPTOR, + index=0, + serialized_options=_b('\312A\030googleads.googleapis.com'), + serialized_start=347, + serialized_end=562, + methods=[ + _descriptor.MethodDescriptor( + name='GetVideo', + full_name='google.ads.googleads.v4.services.VideoService.GetVideo', + index=0, + containing_service=None, + input_type=_GETVIDEOREQUEST, + output_type=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_video__pb2._VIDEO, + serialized_options=_b('\202\323\344\223\002*\022(/v4/{resource_name=customers/*/videos/*}\332A\rresource_name'), + ), +]) +_sym_db.RegisterServiceDescriptor(_VIDEOSERVICE) + +DESCRIPTOR.services_by_name['VideoService'] = _VIDEOSERVICE + +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v4/proto/services/video_service_pb2_grpc.py b/google/ads/google_ads/v4/proto/services/video_service_pb2_grpc.py new file mode 100644 index 000000000..288d4d8d1 --- /dev/null +++ b/google/ads/google_ads/v4/proto/services/video_service_pb2_grpc.py @@ -0,0 +1,51 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +import grpc + +from google.ads.google_ads.v4.proto.resources import video_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_video__pb2 +from google.ads.google_ads.v4.proto.services import video_service_pb2 as google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_video__service__pb2 + + +class VideoServiceStub(object): + """Proto file describing the Video service. + + Service to manage videos. + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.GetVideo = channel.unary_unary( + '/google.ads.googleads.v4.services.VideoService/GetVideo', + request_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_video__service__pb2.GetVideoRequest.SerializeToString, + response_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_video__pb2.Video.FromString, + ) + + +class VideoServiceServicer(object): + """Proto file describing the Video service. + + Service to manage videos. + """ + + def GetVideo(self, request, context): + """Returns the requested video in full detail. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_VideoServiceServicer_to_server(servicer, server): + rpc_method_handlers = { + 'GetVideo': grpc.unary_unary_rpc_method_handler( + servicer.GetVideo, + request_deserializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_services_dot_video__service__pb2.GetVideoRequest.FromString, + response_serializer=google_dot_ads_dot_googleads__v4_dot_proto_dot_resources_dot_video__pb2.Video.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'google.ads.googleads.v4.services.VideoService', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) diff --git a/google/ads/google_ads/v1/services/__init__.py b/google/ads/google_ads/v4/services/__init__.py similarity index 100% rename from google/ads/google_ads/v1/services/__init__.py rename to google/ads/google_ads/v4/services/__init__.py diff --git a/google/ads/google_ads/v4/services/account_budget_proposal_service_client.py b/google/ads/google_ads/v4/services/account_budget_proposal_service_client.py new file mode 100644 index 000000000..ec5b2ed1e --- /dev/null +++ b/google/ads/google_ads/v4/services/account_budget_proposal_service_client.py @@ -0,0 +1,307 @@ +# -*- coding: utf-8 -*- +# +# 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. + +"""Accesses the google.ads.googleads.v4.services AccountBudgetProposalService API.""" + +import pkg_resources +import warnings + +from google.oauth2 import service_account +import google.api_core.gapic_v1.client_info +import google.api_core.gapic_v1.config +import google.api_core.gapic_v1.method +import google.api_core.gapic_v1.routing_header +import google.api_core.grpc_helpers +import google.api_core.path_template + +from google.ads.google_ads.v4.services import account_budget_proposal_service_client_config +from google.ads.google_ads.v4.services.transports import account_budget_proposal_service_grpc_transport +from google.ads.google_ads.v4.proto.services import account_budget_proposal_service_pb2 + + + +_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( + 'google-ads', +).version + + +class AccountBudgetProposalServiceClient(object): + """ + A service for managing account-level budgets via proposals. + + A proposal is a request to create a new budget or make changes to an + existing one. + + Reads for account-level budgets managed by these proposals will be + supported in a future version. Until then, please use the + BudgetOrderService from the AdWords API. Learn more at + https://developers.google.com/adwords/api/docs/guides/budget-order + + Mutates: + The CREATE operation creates a new proposal. + UPDATE operations aren't supported. + The REMOVE operation cancels a pending proposal. + """ + + SERVICE_ADDRESS = 'googleads.googleapis.com:443' + """The default address of the service.""" + + # The name of the interface for this client. This is the key used to + # find the method configuration in the client_config dictionary. + _INTERFACE_NAME = 'google.ads.googleads.v4.services.AccountBudgetProposalService' + + + @classmethod + def from_service_account_file(cls, filename, *args, **kwargs): + """Creates an instance of this client using the provided credentials + file. + + Args: + filename (str): The path to the service account private key json + file. + args: Additional arguments to pass to the constructor. + kwargs: Additional arguments to pass to the constructor. + + Returns: + AccountBudgetProposalServiceClient: The constructed client. + """ + credentials = service_account.Credentials.from_service_account_file( + filename) + kwargs['credentials'] = credentials + return cls(*args, **kwargs) + + from_service_account_json = from_service_account_file + + + @classmethod + def account_budget_proposal_path(cls, customer, account_budget_proposal): + """Return a fully-qualified account_budget_proposal string.""" + return google.api_core.path_template.expand( + 'customers/{customer}/accountBudgetProposals/{account_budget_proposal}', + customer=customer, + account_budget_proposal=account_budget_proposal, + ) + + def __init__(self, transport=None, channel=None, credentials=None, + client_config=None, client_info=None): + """Constructor. + + Args: + transport (Union[~.AccountBudgetProposalServiceGrpcTransport, + Callable[[~.Credentials, type], ~.AccountBudgetProposalServiceGrpcTransport]): A transport + instance, responsible for actually making the API calls. + The default transport uses the gRPC protocol. + This argument may also be a callable which returns a + transport instance. Callables will be sent the credentials + as the first argument and the default transport class as + the second argument. + channel (grpc.Channel): DEPRECATED. A ``Channel`` instance + through which to make calls. This argument is mutually exclusive + with ``credentials``; providing both will raise an exception. + credentials (google.auth.credentials.Credentials): The + authorization credentials to attach to requests. These + credentials identify this application to the service. If none + are specified, the client will attempt to ascertain the + credentials from the environment. + This argument is mutually exclusive with providing a + transport instance to ``transport``; doing so will raise + an exception. + client_config (dict): DEPRECATED. A dictionary of call options for + each method. If not specified, the default configuration is used. + client_info (google.api_core.gapic_v1.client_info.ClientInfo): + The client info used to send a user-agent string along with + API requests. If ``None``, then default info will be used. + Generally, you only need to set this if you're developing + your own client library. + """ + # Raise deprecation warnings for things we want to go away. + if client_config is not None: + warnings.warn('The `client_config` argument is deprecated.', + PendingDeprecationWarning, stacklevel=2) + else: + client_config = account_budget_proposal_service_client_config.config + + if channel: + warnings.warn('The `channel` argument is deprecated; use ' + '`transport` instead.', + PendingDeprecationWarning, stacklevel=2) + + # Instantiate the transport. + # The transport is responsible for handling serialization and + # deserialization and actually sending data to the service. + if transport: + if callable(transport): + self.transport = transport( + credentials=credentials, + default_class=account_budget_proposal_service_grpc_transport.AccountBudgetProposalServiceGrpcTransport, + ) + else: + if credentials: + raise ValueError( + 'Received both a transport instance and ' + 'credentials; these are mutually exclusive.' + ) + self.transport = transport + else: + self.transport = account_budget_proposal_service_grpc_transport.AccountBudgetProposalServiceGrpcTransport( + address=self.SERVICE_ADDRESS, + channel=channel, + credentials=credentials, + ) + + if client_info is None: + client_info = google.api_core.gapic_v1.client_info.ClientInfo( + gapic_version=_GAPIC_LIBRARY_VERSION, + ) + else: + client_info.gapic_version = _GAPIC_LIBRARY_VERSION + self._client_info = client_info + + # Parse out the default settings for retry and timeout for each RPC + # from the client configuration. + # (Ordinarily, these are the defaults specified in the `*_config.py` + # file next to this one.) + self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( + client_config['interfaces'][self._INTERFACE_NAME], + ) + + # Save a dictionary of cached API call functions. + # These are the actual callables which invoke the proper + # transport methods, wrapped with `wrap_method` to add retry, + # timeout, and the like. + self._inner_api_calls = {} + + # Service calls + def get_account_budget_proposal( + self, + resource_name, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None): + """ + Returns an account-level budget proposal in full detail. + + Args: + resource_name (str): Required. The resource name of the account-level budget proposal to fetch. + retry (Optional[google.api_core.retry.Retry]): A retry object used + to retry requests. If ``None`` is specified, requests will not + be retried. + timeout (Optional[float]): The amount of time, in seconds, to wait + for the request to complete. Note that if ``retry`` is + specified, the timeout applies to each individual attempt. + metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata + that is provided to the method. + + Returns: + A :class:`~google.ads.googleads_v4.types.AccountBudgetProposal` instance. + + Raises: + google.api_core.exceptions.GoogleAPICallError: If the request + failed for any reason. + google.api_core.exceptions.RetryError: If the request failed due + to a retryable error and retry attempts failed. + ValueError: If the parameters are invalid. + """ + # Wrap the transport method to add retry and timeout logic. + if 'get_account_budget_proposal' not in self._inner_api_calls: + self._inner_api_calls['get_account_budget_proposal'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.get_account_budget_proposal, + default_retry=self._method_configs['GetAccountBudgetProposal'].retry, + default_timeout=self._method_configs['GetAccountBudgetProposal'].timeout, + client_info=self._client_info, + ) + + request = account_budget_proposal_service_pb2.GetAccountBudgetProposalRequest( + resource_name=resource_name, + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [('resource_name', resource_name)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata(routing_header) + metadata.append(routing_metadata) + + return self._inner_api_calls['get_account_budget_proposal'](request, retry=retry, timeout=timeout, metadata=metadata) + + def mutate_account_budget_proposal( + self, + customer_id, + operation_, + validate_only=None, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None): + """ + Creates, updates, or removes account budget proposals. Operation statuses + are returned. + + Args: + customer_id (str): Required. The ID of the customer. + operation_ (Union[dict, ~google.ads.googleads_v4.types.AccountBudgetProposalOperation]): Required. The operation to perform on an individual account-level budget proposal. + + If a dict is provided, it must be of the same form as the protobuf + message :class:`~google.ads.googleads_v4.types.AccountBudgetProposalOperation` + validate_only (bool): If true, the request is validated but not executed. Only errors are + returned, not results. + retry (Optional[google.api_core.retry.Retry]): A retry object used + to retry requests. If ``None`` is specified, requests will not + be retried. + timeout (Optional[float]): The amount of time, in seconds, to wait + for the request to complete. Note that if ``retry`` is + specified, the timeout applies to each individual attempt. + metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata + that is provided to the method. + + Returns: + A :class:`~google.ads.googleads_v4.types.MutateAccountBudgetProposalResponse` instance. + + Raises: + google.api_core.exceptions.GoogleAPICallError: If the request + failed for any reason. + google.api_core.exceptions.RetryError: If the request failed due + to a retryable error and retry attempts failed. + ValueError: If the parameters are invalid. + """ + # Wrap the transport method to add retry and timeout logic. + if 'mutate_account_budget_proposal' not in self._inner_api_calls: + self._inner_api_calls['mutate_account_budget_proposal'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.mutate_account_budget_proposal, + default_retry=self._method_configs['MutateAccountBudgetProposal'].retry, + default_timeout=self._method_configs['MutateAccountBudgetProposal'].timeout, + client_info=self._client_info, + ) + + request = account_budget_proposal_service_pb2.MutateAccountBudgetProposalRequest( + customer_id=customer_id, + operation=operation_, + validate_only=validate_only, + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [('customer_id', customer_id)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata(routing_header) + metadata.append(routing_metadata) + + return self._inner_api_calls['mutate_account_budget_proposal'](request, retry=retry, timeout=timeout, metadata=metadata) diff --git a/google/ads/google_ads/v4/services/account_budget_proposal_service_client_config.py b/google/ads/google_ads/v4/services/account_budget_proposal_service_client_config.py new file mode 100644 index 000000000..66b58e8aa --- /dev/null +++ b/google/ads/google_ads/v4/services/account_budget_proposal_service_client_config.py @@ -0,0 +1,36 @@ +config = { + "interfaces": { + "google.ads.googleads.v4.services.AccountBudgetProposalService": { + "retry_codes": { + "idempotent": [ + "DEADLINE_EXCEEDED", + "UNAVAILABLE" + ], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 5000, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 3600000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 3600000, + "total_timeout_millis": 3600000 + } + }, + "methods": { + "GetAccountBudgetProposal": { + "timeout_millis": 60000, + "retry_codes_name": "idempotent", + "retry_params_name": "default" + }, + "MutateAccountBudgetProposal": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + } + } + } + } +} diff --git a/google/ads/google_ads/v1/services/account_budget_service_client.py b/google/ads/google_ads/v4/services/account_budget_service_client.py similarity index 76% rename from google/ads/google_ads/v1/services/account_budget_service_client.py rename to google/ads/google_ads/v4/services/account_budget_service_client.py index b3f2fdf94..28229b342 100644 --- a/google/ads/google_ads/v1/services/account_budget_service_client.py +++ b/google/ads/google_ads/v4/services/account_budget_service_client.py @@ -13,7 +13,8 @@ # 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. -"""Accesses the google.ads.googleads.v1.services AccountBudgetService API.""" + +"""Accesses the google.ads.googleads.v4.services AccountBudgetService API.""" import pkg_resources import warnings @@ -22,15 +23,19 @@ import google.api_core.gapic_v1.client_info import google.api_core.gapic_v1.config import google.api_core.gapic_v1.method +import google.api_core.gapic_v1.routing_header import google.api_core.grpc_helpers import google.api_core.path_template -from google.ads.google_ads.v1.services import account_budget_service_client_config -from google.ads.google_ads.v1.services.transports import account_budget_service_grpc_transport -from google.ads.google_ads.v1.proto.services import account_budget_service_pb2 +from google.ads.google_ads.v4.services import account_budget_service_client_config +from google.ads.google_ads.v4.services.transports import account_budget_service_grpc_transport +from google.ads.google_ads.v4.proto.services import account_budget_service_pb2 + + _GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( - 'google-ads', ).version + 'google-ads', +).version class AccountBudgetServiceClient(object): @@ -45,7 +50,8 @@ class AccountBudgetServiceClient(object): # The name of the interface for this client. This is the key used to # find the method configuration in the client_config dictionary. - _INTERFACE_NAME = 'google.ads.googleads.v1.services.AccountBudgetService' + _INTERFACE_NAME = 'google.ads.googleads.v4.services.AccountBudgetService' + @classmethod def from_service_account_file(cls, filename, *args, **kwargs): @@ -68,6 +74,7 @@ def from_service_account_file(cls, filename, *args, **kwargs): from_service_account_json = from_service_account_file + @classmethod def account_budget_path(cls, customer, account_budget): """Return a fully-qualified account_budget string.""" @@ -77,12 +84,8 @@ def account_budget_path(cls, customer, account_budget): account_budget=account_budget, ) - def __init__(self, - transport=None, - channel=None, - credentials=None, - client_config=None, - client_info=None): + def __init__(self, transport=None, channel=None, credentials=None, + client_config=None, client_info=None): """Constructor. Args: @@ -115,19 +118,15 @@ def __init__(self, """ # Raise deprecation warnings for things we want to go away. if client_config is not None: - warnings.warn( - 'The `client_config` argument is deprecated.', - PendingDeprecationWarning, - stacklevel=2) + warnings.warn('The `client_config` argument is deprecated.', + PendingDeprecationWarning, stacklevel=2) else: client_config = account_budget_service_client_config.config if channel: - warnings.warn( - 'The `channel` argument is deprecated; use ' - '`transport` instead.', - PendingDeprecationWarning, - stacklevel=2) + warnings.warn('The `channel` argument is deprecated; use ' + '`transport` instead.', + PendingDeprecationWarning, stacklevel=2) # Instantiate the transport. # The transport is responsible for handling serialization and @@ -136,14 +135,14 @@ def __init__(self, if callable(transport): self.transport = transport( credentials=credentials, - default_class=account_budget_service_grpc_transport. - AccountBudgetServiceGrpcTransport, + default_class=account_budget_service_grpc_transport.AccountBudgetServiceGrpcTransport, ) else: if credentials: raise ValueError( 'Received both a transport instance and ' - 'credentials; these are mutually exclusive.') + 'credentials; these are mutually exclusive.' + ) self.transport = transport else: self.transport = account_budget_service_grpc_transport.AccountBudgetServiceGrpcTransport( @@ -154,7 +153,8 @@ def __init__(self, if client_info is None: client_info = google.api_core.gapic_v1.client_info.ClientInfo( - gapic_version=_GAPIC_LIBRARY_VERSION, ) + gapic_version=_GAPIC_LIBRARY_VERSION, + ) else: client_info.gapic_version = _GAPIC_LIBRARY_VERSION self._client_info = client_info @@ -164,7 +164,8 @@ def __init__(self, # (Ordinarily, these are the defaults specified in the `*_config.py` # file next to this one.) self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( - client_config['interfaces'][self._INTERFACE_NAME], ) + client_config['interfaces'][self._INTERFACE_NAME], + ) # Save a dictionary of cached API call functions. # These are the actual callables which invoke the proper @@ -173,16 +174,17 @@ def __init__(self, self._inner_api_calls = {} # Service calls - def get_account_budget(self, - resource_name, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): + def get_account_budget( + self, + resource_name, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None): """ Returns an account-level budget in full detail. Args: - resource_name (str): The resource name of the account-level budget to fetch. + resource_name (str): Required. The resource name of the account-level budget to fetch. retry (Optional[google.api_core.retry.Retry]): A retry object used to retry requests. If ``None`` is specified, requests will not be retried. @@ -193,7 +195,7 @@ def get_account_budget(self, that is provided to the method. Returns: - A :class:`~google.ads.googleads_v1.types.AccountBudget` instance. + A :class:`~google.ads.googleads_v4.types.AccountBudget` instance. Raises: google.api_core.exceptions.GoogleAPICallError: If the request @@ -204,17 +206,25 @@ def get_account_budget(self, """ # Wrap the transport method to add retry and timeout logic. if 'get_account_budget' not in self._inner_api_calls: - self._inner_api_calls[ - 'get_account_budget'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.get_account_budget, - default_retry=self._method_configs['GetAccountBudget']. - retry, - default_timeout=self._method_configs['GetAccountBudget']. - timeout, - client_info=self._client_info, - ) + self._inner_api_calls['get_account_budget'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.get_account_budget, + default_retry=self._method_configs['GetAccountBudget'].retry, + default_timeout=self._method_configs['GetAccountBudget'].timeout, + client_info=self._client_info, + ) request = account_budget_service_pb2.GetAccountBudgetRequest( - resource_name=resource_name, ) - return self._inner_api_calls['get_account_budget']( - request, retry=retry, timeout=timeout, metadata=metadata) + resource_name=resource_name, + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [('resource_name', resource_name)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata(routing_header) + metadata.append(routing_metadata) + + return self._inner_api_calls['get_account_budget'](request, retry=retry, timeout=timeout, metadata=metadata) diff --git a/google/ads/google_ads/v4/services/account_budget_service_client_config.py b/google/ads/google_ads/v4/services/account_budget_service_client_config.py new file mode 100644 index 000000000..d9a8fad20 --- /dev/null +++ b/google/ads/google_ads/v4/services/account_budget_service_client_config.py @@ -0,0 +1,31 @@ +config = { + "interfaces": { + "google.ads.googleads.v4.services.AccountBudgetService": { + "retry_codes": { + "idempotent": [ + "DEADLINE_EXCEEDED", + "UNAVAILABLE" + ], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 5000, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 3600000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 3600000, + "total_timeout_millis": 3600000 + } + }, + "methods": { + "GetAccountBudget": { + "timeout_millis": 60000, + "retry_codes_name": "idempotent", + "retry_params_name": "default" + } + } + } + } +} diff --git a/google/ads/google_ads/v4/services/account_link_service_client.py b/google/ads/google_ads/v4/services/account_link_service_client.py new file mode 100644 index 000000000..621519c70 --- /dev/null +++ b/google/ads/google_ads/v4/services/account_link_service_client.py @@ -0,0 +1,300 @@ +# -*- coding: utf-8 -*- +# +# 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. + +"""Accesses the google.ads.googleads.v4.services AccountLinkService API.""" + +import pkg_resources +import warnings + +from google.oauth2 import service_account +import google.api_core.gapic_v1.client_info +import google.api_core.gapic_v1.config +import google.api_core.gapic_v1.method +import google.api_core.gapic_v1.routing_header +import google.api_core.grpc_helpers +import google.api_core.path_template + +from google.ads.google_ads.v4.services import account_link_service_client_config +from google.ads.google_ads.v4.services.transports import account_link_service_grpc_transport +from google.ads.google_ads.v4.proto.services import account_link_service_pb2 + + + +_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( + 'google-ads', +).version + + +class AccountLinkServiceClient(object): + """ + This service allows management of links between Google Ads accounts and other + accounts. + """ + + SERVICE_ADDRESS = 'googleads.googleapis.com:443' + """The default address of the service.""" + + # The name of the interface for this client. This is the key used to + # find the method configuration in the client_config dictionary. + _INTERFACE_NAME = 'google.ads.googleads.v4.services.AccountLinkService' + + + @classmethod + def from_service_account_file(cls, filename, *args, **kwargs): + """Creates an instance of this client using the provided credentials + file. + + Args: + filename (str): The path to the service account private key json + file. + args: Additional arguments to pass to the constructor. + kwargs: Additional arguments to pass to the constructor. + + Returns: + AccountLinkServiceClient: The constructed client. + """ + credentials = service_account.Credentials.from_service_account_file( + filename) + kwargs['credentials'] = credentials + return cls(*args, **kwargs) + + from_service_account_json = from_service_account_file + + + @classmethod + def account_link_path(cls, customer, account_link): + """Return a fully-qualified account_link string.""" + return google.api_core.path_template.expand( + 'customers/{customer}/accountLinks/{account_link}', + customer=customer, + account_link=account_link, + ) + + def __init__(self, transport=None, channel=None, credentials=None, + client_config=None, client_info=None): + """Constructor. + + Args: + transport (Union[~.AccountLinkServiceGrpcTransport, + Callable[[~.Credentials, type], ~.AccountLinkServiceGrpcTransport]): A transport + instance, responsible for actually making the API calls. + The default transport uses the gRPC protocol. + This argument may also be a callable which returns a + transport instance. Callables will be sent the credentials + as the first argument and the default transport class as + the second argument. + channel (grpc.Channel): DEPRECATED. A ``Channel`` instance + through which to make calls. This argument is mutually exclusive + with ``credentials``; providing both will raise an exception. + credentials (google.auth.credentials.Credentials): The + authorization credentials to attach to requests. These + credentials identify this application to the service. If none + are specified, the client will attempt to ascertain the + credentials from the environment. + This argument is mutually exclusive with providing a + transport instance to ``transport``; doing so will raise + an exception. + client_config (dict): DEPRECATED. A dictionary of call options for + each method. If not specified, the default configuration is used. + client_info (google.api_core.gapic_v1.client_info.ClientInfo): + The client info used to send a user-agent string along with + API requests. If ``None``, then default info will be used. + Generally, you only need to set this if you're developing + your own client library. + """ + # Raise deprecation warnings for things we want to go away. + if client_config is not None: + warnings.warn('The `client_config` argument is deprecated.', + PendingDeprecationWarning, stacklevel=2) + else: + client_config = account_link_service_client_config.config + + if channel: + warnings.warn('The `channel` argument is deprecated; use ' + '`transport` instead.', + PendingDeprecationWarning, stacklevel=2) + + # Instantiate the transport. + # The transport is responsible for handling serialization and + # deserialization and actually sending data to the service. + if transport: + if callable(transport): + self.transport = transport( + credentials=credentials, + default_class=account_link_service_grpc_transport.AccountLinkServiceGrpcTransport, + ) + else: + if credentials: + raise ValueError( + 'Received both a transport instance and ' + 'credentials; these are mutually exclusive.' + ) + self.transport = transport + else: + self.transport = account_link_service_grpc_transport.AccountLinkServiceGrpcTransport( + address=self.SERVICE_ADDRESS, + channel=channel, + credentials=credentials, + ) + + if client_info is None: + client_info = google.api_core.gapic_v1.client_info.ClientInfo( + gapic_version=_GAPIC_LIBRARY_VERSION, + ) + else: + client_info.gapic_version = _GAPIC_LIBRARY_VERSION + self._client_info = client_info + + # Parse out the default settings for retry and timeout for each RPC + # from the client configuration. + # (Ordinarily, these are the defaults specified in the `*_config.py` + # file next to this one.) + self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( + client_config['interfaces'][self._INTERFACE_NAME], + ) + + # Save a dictionary of cached API call functions. + # These are the actual callables which invoke the proper + # transport methods, wrapped with `wrap_method` to add retry, + # timeout, and the like. + self._inner_api_calls = {} + + # Service calls + def get_account_link( + self, + resource_name, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None): + """ + Returns the account link in full detail. + + Args: + resource_name (str): Required. Resource name of the account link. + retry (Optional[google.api_core.retry.Retry]): A retry object used + to retry requests. If ``None`` is specified, requests will not + be retried. + timeout (Optional[float]): The amount of time, in seconds, to wait + for the request to complete. Note that if ``retry`` is + specified, the timeout applies to each individual attempt. + metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata + that is provided to the method. + + Returns: + A :class:`~google.ads.googleads_v4.types.AccountLink` instance. + + Raises: + google.api_core.exceptions.GoogleAPICallError: If the request + failed for any reason. + google.api_core.exceptions.RetryError: If the request failed due + to a retryable error and retry attempts failed. + ValueError: If the parameters are invalid. + """ + # Wrap the transport method to add retry and timeout logic. + if 'get_account_link' not in self._inner_api_calls: + self._inner_api_calls['get_account_link'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.get_account_link, + default_retry=self._method_configs['GetAccountLink'].retry, + default_timeout=self._method_configs['GetAccountLink'].timeout, + client_info=self._client_info, + ) + + request = account_link_service_pb2.GetAccountLinkRequest( + resource_name=resource_name, + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [('resource_name', resource_name)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata(routing_header) + metadata.append(routing_metadata) + + return self._inner_api_calls['get_account_link'](request, retry=retry, timeout=timeout, metadata=metadata) + + def mutate_account_link( + self, + customer_id, + operation_, + partial_failure=None, + validate_only=None, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None): + """ + Creates or removes an account link. + + Args: + customer_id (str): Required. The ID of the customer being modified. + operation_ (Union[dict, ~google.ads.googleads_v4.types.AccountLinkOperation]): Required. The operation to perform on the link. + + If a dict is provided, it must be of the same form as the protobuf + message :class:`~google.ads.googleads_v4.types.AccountLinkOperation` + partial_failure (bool): If true, successful operations will be carried out and invalid + operations will return errors. If false, all operations will be carried + out in one transaction if and only if they are all valid. + Default is false. + validate_only (bool): If true, the request is validated but not executed. Only errors are + returned, not results. + retry (Optional[google.api_core.retry.Retry]): A retry object used + to retry requests. If ``None`` is specified, requests will not + be retried. + timeout (Optional[float]): The amount of time, in seconds, to wait + for the request to complete. Note that if ``retry`` is + specified, the timeout applies to each individual attempt. + metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata + that is provided to the method. + + Returns: + A :class:`~google.ads.googleads_v4.types.MutateAccountLinkResponse` instance. + + Raises: + google.api_core.exceptions.GoogleAPICallError: If the request + failed for any reason. + google.api_core.exceptions.RetryError: If the request failed due + to a retryable error and retry attempts failed. + ValueError: If the parameters are invalid. + """ + # Wrap the transport method to add retry and timeout logic. + if 'mutate_account_link' not in self._inner_api_calls: + self._inner_api_calls['mutate_account_link'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.mutate_account_link, + default_retry=self._method_configs['MutateAccountLink'].retry, + default_timeout=self._method_configs['MutateAccountLink'].timeout, + client_info=self._client_info, + ) + + request = account_link_service_pb2.MutateAccountLinkRequest( + customer_id=customer_id, + operation=operation_, + partial_failure=partial_failure, + validate_only=validate_only, + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [('customer_id', customer_id)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata(routing_header) + metadata.append(routing_metadata) + + return self._inner_api_calls['mutate_account_link'](request, retry=retry, timeout=timeout, metadata=metadata) diff --git a/google/ads/google_ads/v4/services/account_link_service_client_config.py b/google/ads/google_ads/v4/services/account_link_service_client_config.py new file mode 100644 index 000000000..3c90c443f --- /dev/null +++ b/google/ads/google_ads/v4/services/account_link_service_client_config.py @@ -0,0 +1,36 @@ +config = { + "interfaces": { + "google.ads.googleads.v4.services.AccountLinkService": { + "retry_codes": { + "idempotent": [ + "DEADLINE_EXCEEDED", + "UNAVAILABLE" + ], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 5000, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 3600000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 3600000, + "total_timeout_millis": 3600000 + } + }, + "methods": { + "GetAccountLink": { + "timeout_millis": 600000, + "retry_codes_name": "idempotent", + "retry_params_name": "default" + }, + "MutateAccountLink": { + "timeout_millis": 600000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + } + } + } + } +} diff --git a/google/ads/google_ads/v4/services/ad_group_ad_asset_view_service_client.py b/google/ads/google_ads/v4/services/ad_group_ad_asset_view_service_client.py new file mode 100644 index 000000000..ee23f7297 --- /dev/null +++ b/google/ads/google_ads/v4/services/ad_group_ad_asset_view_service_client.py @@ -0,0 +1,226 @@ +# -*- coding: utf-8 -*- +# +# 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. + +"""Accesses the google.ads.googleads.v4.services AdGroupAdAssetViewService API.""" + +import pkg_resources +import warnings + +from google.oauth2 import service_account +import google.api_core.gapic_v1.client_info +import google.api_core.gapic_v1.config +import google.api_core.gapic_v1.method +import google.api_core.gapic_v1.routing_header +import google.api_core.grpc_helpers +import google.api_core.path_template + +from google.ads.google_ads.v4.services import ad_group_ad_asset_view_service_client_config +from google.ads.google_ads.v4.services.transports import ad_group_ad_asset_view_service_grpc_transport +from google.ads.google_ads.v4.proto.services import ad_group_ad_asset_view_service_pb2 + + + +_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( + 'google-ads', +).version + + +class AdGroupAdAssetViewServiceClient(object): + """Service to fetch ad group ad asset views.""" + + SERVICE_ADDRESS = 'googleads.googleapis.com:443' + """The default address of the service.""" + + # The name of the interface for this client. This is the key used to + # find the method configuration in the client_config dictionary. + _INTERFACE_NAME = 'google.ads.googleads.v4.services.AdGroupAdAssetViewService' + + + @classmethod + def from_service_account_file(cls, filename, *args, **kwargs): + """Creates an instance of this client using the provided credentials + file. + + Args: + filename (str): The path to the service account private key json + file. + args: Additional arguments to pass to the constructor. + kwargs: Additional arguments to pass to the constructor. + + Returns: + AdGroupAdAssetViewServiceClient: The constructed client. + """ + credentials = service_account.Credentials.from_service_account_file( + filename) + kwargs['credentials'] = credentials + return cls(*args, **kwargs) + + from_service_account_json = from_service_account_file + + + @classmethod + def ad_group_ad_asset_view_path(cls, customer, ad_group_ad_asset_view): + """Return a fully-qualified ad_group_ad_asset_view string.""" + return google.api_core.path_template.expand( + 'customers/{customer}/adGroupAdAssetViews/{ad_group_ad_asset_view}', + customer=customer, + ad_group_ad_asset_view=ad_group_ad_asset_view, + ) + + def __init__(self, transport=None, channel=None, credentials=None, + client_config=None, client_info=None): + """Constructor. + + Args: + transport (Union[~.AdGroupAdAssetViewServiceGrpcTransport, + Callable[[~.Credentials, type], ~.AdGroupAdAssetViewServiceGrpcTransport]): A transport + instance, responsible for actually making the API calls. + The default transport uses the gRPC protocol. + This argument may also be a callable which returns a + transport instance. Callables will be sent the credentials + as the first argument and the default transport class as + the second argument. + channel (grpc.Channel): DEPRECATED. A ``Channel`` instance + through which to make calls. This argument is mutually exclusive + with ``credentials``; providing both will raise an exception. + credentials (google.auth.credentials.Credentials): The + authorization credentials to attach to requests. These + credentials identify this application to the service. If none + are specified, the client will attempt to ascertain the + credentials from the environment. + This argument is mutually exclusive with providing a + transport instance to ``transport``; doing so will raise + an exception. + client_config (dict): DEPRECATED. A dictionary of call options for + each method. If not specified, the default configuration is used. + client_info (google.api_core.gapic_v1.client_info.ClientInfo): + The client info used to send a user-agent string along with + API requests. If ``None``, then default info will be used. + Generally, you only need to set this if you're developing + your own client library. + """ + # Raise deprecation warnings for things we want to go away. + if client_config is not None: + warnings.warn('The `client_config` argument is deprecated.', + PendingDeprecationWarning, stacklevel=2) + else: + client_config = ad_group_ad_asset_view_service_client_config.config + + if channel: + warnings.warn('The `channel` argument is deprecated; use ' + '`transport` instead.', + PendingDeprecationWarning, stacklevel=2) + + # Instantiate the transport. + # The transport is responsible for handling serialization and + # deserialization and actually sending data to the service. + if transport: + if callable(transport): + self.transport = transport( + credentials=credentials, + default_class=ad_group_ad_asset_view_service_grpc_transport.AdGroupAdAssetViewServiceGrpcTransport, + ) + else: + if credentials: + raise ValueError( + 'Received both a transport instance and ' + 'credentials; these are mutually exclusive.' + ) + self.transport = transport + else: + self.transport = ad_group_ad_asset_view_service_grpc_transport.AdGroupAdAssetViewServiceGrpcTransport( + address=self.SERVICE_ADDRESS, + channel=channel, + credentials=credentials, + ) + + if client_info is None: + client_info = google.api_core.gapic_v1.client_info.ClientInfo( + gapic_version=_GAPIC_LIBRARY_VERSION, + ) + else: + client_info.gapic_version = _GAPIC_LIBRARY_VERSION + self._client_info = client_info + + # Parse out the default settings for retry and timeout for each RPC + # from the client configuration. + # (Ordinarily, these are the defaults specified in the `*_config.py` + # file next to this one.) + self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( + client_config['interfaces'][self._INTERFACE_NAME], + ) + + # Save a dictionary of cached API call functions. + # These are the actual callables which invoke the proper + # transport methods, wrapped with `wrap_method` to add retry, + # timeout, and the like. + self._inner_api_calls = {} + + # Service calls + def get_ad_group_ad_asset_view( + self, + resource_name, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None): + """ + Returns the requested ad group ad asset view in full detail. + + Args: + resource_name (str): Required. The resource name of the ad group ad asset view to fetch. + retry (Optional[google.api_core.retry.Retry]): A retry object used + to retry requests. If ``None`` is specified, requests will not + be retried. + timeout (Optional[float]): The amount of time, in seconds, to wait + for the request to complete. Note that if ``retry`` is + specified, the timeout applies to each individual attempt. + metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata + that is provided to the method. + + Returns: + A :class:`~google.ads.googleads_v4.types.AdGroupAdAssetView` instance. + + Raises: + google.api_core.exceptions.GoogleAPICallError: If the request + failed for any reason. + google.api_core.exceptions.RetryError: If the request failed due + to a retryable error and retry attempts failed. + ValueError: If the parameters are invalid. + """ + # Wrap the transport method to add retry and timeout logic. + if 'get_ad_group_ad_asset_view' not in self._inner_api_calls: + self._inner_api_calls['get_ad_group_ad_asset_view'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.get_ad_group_ad_asset_view, + default_retry=self._method_configs['GetAdGroupAdAssetView'].retry, + default_timeout=self._method_configs['GetAdGroupAdAssetView'].timeout, + client_info=self._client_info, + ) + + request = ad_group_ad_asset_view_service_pb2.GetAdGroupAdAssetViewRequest( + resource_name=resource_name, + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [('resource_name', resource_name)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata(routing_header) + metadata.append(routing_metadata) + + return self._inner_api_calls['get_ad_group_ad_asset_view'](request, retry=retry, timeout=timeout, metadata=metadata) diff --git a/google/ads/google_ads/v4/services/ad_group_ad_asset_view_service_client_config.py b/google/ads/google_ads/v4/services/ad_group_ad_asset_view_service_client_config.py new file mode 100644 index 000000000..a1cc76889 --- /dev/null +++ b/google/ads/google_ads/v4/services/ad_group_ad_asset_view_service_client_config.py @@ -0,0 +1,31 @@ +config = { + "interfaces": { + "google.ads.googleads.v4.services.AdGroupAdAssetViewService": { + "retry_codes": { + "idempotent": [ + "DEADLINE_EXCEEDED", + "UNAVAILABLE" + ], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 5000, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 3600000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 3600000, + "total_timeout_millis": 3600000 + } + }, + "methods": { + "GetAdGroupAdAssetView": { + "timeout_millis": 60000, + "retry_codes_name": "idempotent", + "retry_params_name": "default" + } + } + } + } +} diff --git a/google/ads/google_ads/v4/services/ad_group_ad_label_service_client.py b/google/ads/google_ads/v4/services/ad_group_ad_label_service_client.py new file mode 100644 index 000000000..ad0065e6c --- /dev/null +++ b/google/ads/google_ads/v4/services/ad_group_ad_label_service_client.py @@ -0,0 +1,298 @@ +# -*- coding: utf-8 -*- +# +# 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. + +"""Accesses the google.ads.googleads.v4.services AdGroupAdLabelService API.""" + +import pkg_resources +import warnings + +from google.oauth2 import service_account +import google.api_core.gapic_v1.client_info +import google.api_core.gapic_v1.config +import google.api_core.gapic_v1.method +import google.api_core.gapic_v1.routing_header +import google.api_core.grpc_helpers +import google.api_core.path_template + +from google.ads.google_ads.v4.services import ad_group_ad_label_service_client_config +from google.ads.google_ads.v4.services.transports import ad_group_ad_label_service_grpc_transport +from google.ads.google_ads.v4.proto.services import ad_group_ad_label_service_pb2 + + + +_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( + 'google-ads', +).version + + +class AdGroupAdLabelServiceClient(object): + """Service to manage labels on ad group ads.""" + + SERVICE_ADDRESS = 'googleads.googleapis.com:443' + """The default address of the service.""" + + # The name of the interface for this client. This is the key used to + # find the method configuration in the client_config dictionary. + _INTERFACE_NAME = 'google.ads.googleads.v4.services.AdGroupAdLabelService' + + + @classmethod + def from_service_account_file(cls, filename, *args, **kwargs): + """Creates an instance of this client using the provided credentials + file. + + Args: + filename (str): The path to the service account private key json + file. + args: Additional arguments to pass to the constructor. + kwargs: Additional arguments to pass to the constructor. + + Returns: + AdGroupAdLabelServiceClient: The constructed client. + """ + credentials = service_account.Credentials.from_service_account_file( + filename) + kwargs['credentials'] = credentials + return cls(*args, **kwargs) + + from_service_account_json = from_service_account_file + + + @classmethod + def ad_group_ad_label_path(cls, customer, ad_group_ad_label): + """Return a fully-qualified ad_group_ad_label string.""" + return google.api_core.path_template.expand( + 'customers/{customer}/adGroupAdLabels/{ad_group_ad_label}', + customer=customer, + ad_group_ad_label=ad_group_ad_label, + ) + + def __init__(self, transport=None, channel=None, credentials=None, + client_config=None, client_info=None): + """Constructor. + + Args: + transport (Union[~.AdGroupAdLabelServiceGrpcTransport, + Callable[[~.Credentials, type], ~.AdGroupAdLabelServiceGrpcTransport]): A transport + instance, responsible for actually making the API calls. + The default transport uses the gRPC protocol. + This argument may also be a callable which returns a + transport instance. Callables will be sent the credentials + as the first argument and the default transport class as + the second argument. + channel (grpc.Channel): DEPRECATED. A ``Channel`` instance + through which to make calls. This argument is mutually exclusive + with ``credentials``; providing both will raise an exception. + credentials (google.auth.credentials.Credentials): The + authorization credentials to attach to requests. These + credentials identify this application to the service. If none + are specified, the client will attempt to ascertain the + credentials from the environment. + This argument is mutually exclusive with providing a + transport instance to ``transport``; doing so will raise + an exception. + client_config (dict): DEPRECATED. A dictionary of call options for + each method. If not specified, the default configuration is used. + client_info (google.api_core.gapic_v1.client_info.ClientInfo): + The client info used to send a user-agent string along with + API requests. If ``None``, then default info will be used. + Generally, you only need to set this if you're developing + your own client library. + """ + # Raise deprecation warnings for things we want to go away. + if client_config is not None: + warnings.warn('The `client_config` argument is deprecated.', + PendingDeprecationWarning, stacklevel=2) + else: + client_config = ad_group_ad_label_service_client_config.config + + if channel: + warnings.warn('The `channel` argument is deprecated; use ' + '`transport` instead.', + PendingDeprecationWarning, stacklevel=2) + + # Instantiate the transport. + # The transport is responsible for handling serialization and + # deserialization and actually sending data to the service. + if transport: + if callable(transport): + self.transport = transport( + credentials=credentials, + default_class=ad_group_ad_label_service_grpc_transport.AdGroupAdLabelServiceGrpcTransport, + ) + else: + if credentials: + raise ValueError( + 'Received both a transport instance and ' + 'credentials; these are mutually exclusive.' + ) + self.transport = transport + else: + self.transport = ad_group_ad_label_service_grpc_transport.AdGroupAdLabelServiceGrpcTransport( + address=self.SERVICE_ADDRESS, + channel=channel, + credentials=credentials, + ) + + if client_info is None: + client_info = google.api_core.gapic_v1.client_info.ClientInfo( + gapic_version=_GAPIC_LIBRARY_VERSION, + ) + else: + client_info.gapic_version = _GAPIC_LIBRARY_VERSION + self._client_info = client_info + + # Parse out the default settings for retry and timeout for each RPC + # from the client configuration. + # (Ordinarily, these are the defaults specified in the `*_config.py` + # file next to this one.) + self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( + client_config['interfaces'][self._INTERFACE_NAME], + ) + + # Save a dictionary of cached API call functions. + # These are the actual callables which invoke the proper + # transport methods, wrapped with `wrap_method` to add retry, + # timeout, and the like. + self._inner_api_calls = {} + + # Service calls + def get_ad_group_ad_label( + self, + resource_name, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None): + """ + Returns the requested ad group ad label in full detail. + + Args: + resource_name (str): Required. The resource name of the ad group ad label to fetch. + retry (Optional[google.api_core.retry.Retry]): A retry object used + to retry requests. If ``None`` is specified, requests will not + be retried. + timeout (Optional[float]): The amount of time, in seconds, to wait + for the request to complete. Note that if ``retry`` is + specified, the timeout applies to each individual attempt. + metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata + that is provided to the method. + + Returns: + A :class:`~google.ads.googleads_v4.types.AdGroupAdLabel` instance. + + Raises: + google.api_core.exceptions.GoogleAPICallError: If the request + failed for any reason. + google.api_core.exceptions.RetryError: If the request failed due + to a retryable error and retry attempts failed. + ValueError: If the parameters are invalid. + """ + # Wrap the transport method to add retry and timeout logic. + if 'get_ad_group_ad_label' not in self._inner_api_calls: + self._inner_api_calls['get_ad_group_ad_label'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.get_ad_group_ad_label, + default_retry=self._method_configs['GetAdGroupAdLabel'].retry, + default_timeout=self._method_configs['GetAdGroupAdLabel'].timeout, + client_info=self._client_info, + ) + + request = ad_group_ad_label_service_pb2.GetAdGroupAdLabelRequest( + resource_name=resource_name, + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [('resource_name', resource_name)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata(routing_header) + metadata.append(routing_metadata) + + return self._inner_api_calls['get_ad_group_ad_label'](request, retry=retry, timeout=timeout, metadata=metadata) + + def mutate_ad_group_ad_labels( + self, + customer_id, + operations, + partial_failure=None, + validate_only=None, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None): + """ + Creates and removes ad group ad labels. + Operation statuses are returned. + + Args: + customer_id (str): Required. ID of the customer whose ad group ad labels are being modified. + operations (list[Union[dict, ~google.ads.googleads_v4.types.AdGroupAdLabelOperation]]): Required. The list of operations to perform on ad group ad labels. + + If a dict is provided, it must be of the same form as the protobuf + message :class:`~google.ads.googleads_v4.types.AdGroupAdLabelOperation` + partial_failure (bool): If true, successful operations will be carried out and invalid + operations will return errors. If false, all operations will be carried + out in one transaction if and only if they are all valid. + Default is false. + validate_only (bool): If true, the request is validated but not executed. Only errors are + returned, not results. + retry (Optional[google.api_core.retry.Retry]): A retry object used + to retry requests. If ``None`` is specified, requests will not + be retried. + timeout (Optional[float]): The amount of time, in seconds, to wait + for the request to complete. Note that if ``retry`` is + specified, the timeout applies to each individual attempt. + metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata + that is provided to the method. + + Returns: + A :class:`~google.ads.googleads_v4.types.MutateAdGroupAdLabelsResponse` instance. + + Raises: + google.api_core.exceptions.GoogleAPICallError: If the request + failed for any reason. + google.api_core.exceptions.RetryError: If the request failed due + to a retryable error and retry attempts failed. + ValueError: If the parameters are invalid. + """ + # Wrap the transport method to add retry and timeout logic. + if 'mutate_ad_group_ad_labels' not in self._inner_api_calls: + self._inner_api_calls['mutate_ad_group_ad_labels'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.mutate_ad_group_ad_labels, + default_retry=self._method_configs['MutateAdGroupAdLabels'].retry, + default_timeout=self._method_configs['MutateAdGroupAdLabels'].timeout, + client_info=self._client_info, + ) + + request = ad_group_ad_label_service_pb2.MutateAdGroupAdLabelsRequest( + customer_id=customer_id, + operations=operations, + partial_failure=partial_failure, + validate_only=validate_only, + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [('customer_id', customer_id)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata(routing_header) + metadata.append(routing_metadata) + + return self._inner_api_calls['mutate_ad_group_ad_labels'](request, retry=retry, timeout=timeout, metadata=metadata) diff --git a/google/ads/google_ads/v4/services/ad_group_ad_label_service_client_config.py b/google/ads/google_ads/v4/services/ad_group_ad_label_service_client_config.py new file mode 100644 index 000000000..748560885 --- /dev/null +++ b/google/ads/google_ads/v4/services/ad_group_ad_label_service_client_config.py @@ -0,0 +1,36 @@ +config = { + "interfaces": { + "google.ads.googleads.v4.services.AdGroupAdLabelService": { + "retry_codes": { + "idempotent": [ + "DEADLINE_EXCEEDED", + "UNAVAILABLE" + ], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 5000, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 3600000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 3600000, + "total_timeout_millis": 3600000 + } + }, + "methods": { + "GetAdGroupAdLabel": { + "timeout_millis": 60000, + "retry_codes_name": "idempotent", + "retry_params_name": "default" + }, + "MutateAdGroupAdLabels": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + } + } + } + } +} diff --git a/google/ads/google_ads/v4/services/ad_group_ad_service_client.py b/google/ads/google_ads/v4/services/ad_group_ad_service_client.py new file mode 100644 index 000000000..8c1fb3dfe --- /dev/null +++ b/google/ads/google_ads/v4/services/ad_group_ad_service_client.py @@ -0,0 +1,297 @@ +# -*- coding: utf-8 -*- +# +# 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. + +"""Accesses the google.ads.googleads.v4.services AdGroupAdService API.""" + +import pkg_resources +import warnings + +from google.oauth2 import service_account +import google.api_core.gapic_v1.client_info +import google.api_core.gapic_v1.config +import google.api_core.gapic_v1.method +import google.api_core.gapic_v1.routing_header +import google.api_core.grpc_helpers +import google.api_core.path_template + +from google.ads.google_ads.v4.services import ad_group_ad_service_client_config +from google.ads.google_ads.v4.services.transports import ad_group_ad_service_grpc_transport +from google.ads.google_ads.v4.proto.services import ad_group_ad_service_pb2 + + + +_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( + 'google-ads', +).version + + +class AdGroupAdServiceClient(object): + """Service to manage ads in an ad group.""" + + SERVICE_ADDRESS = 'googleads.googleapis.com:443' + """The default address of the service.""" + + # The name of the interface for this client. This is the key used to + # find the method configuration in the client_config dictionary. + _INTERFACE_NAME = 'google.ads.googleads.v4.services.AdGroupAdService' + + + @classmethod + def from_service_account_file(cls, filename, *args, **kwargs): + """Creates an instance of this client using the provided credentials + file. + + Args: + filename (str): The path to the service account private key json + file. + args: Additional arguments to pass to the constructor. + kwargs: Additional arguments to pass to the constructor. + + Returns: + AdGroupAdServiceClient: The constructed client. + """ + credentials = service_account.Credentials.from_service_account_file( + filename) + kwargs['credentials'] = credentials + return cls(*args, **kwargs) + + from_service_account_json = from_service_account_file + + + @classmethod + def ad_group_ad_path(cls, customer, ad_group_ad): + """Return a fully-qualified ad_group_ad string.""" + return google.api_core.path_template.expand( + 'customers/{customer}/adGroupAds/{ad_group_ad}', + customer=customer, + ad_group_ad=ad_group_ad, + ) + + def __init__(self, transport=None, channel=None, credentials=None, + client_config=None, client_info=None): + """Constructor. + + Args: + transport (Union[~.AdGroupAdServiceGrpcTransport, + Callable[[~.Credentials, type], ~.AdGroupAdServiceGrpcTransport]): A transport + instance, responsible for actually making the API calls. + The default transport uses the gRPC protocol. + This argument may also be a callable which returns a + transport instance. Callables will be sent the credentials + as the first argument and the default transport class as + the second argument. + channel (grpc.Channel): DEPRECATED. A ``Channel`` instance + through which to make calls. This argument is mutually exclusive + with ``credentials``; providing both will raise an exception. + credentials (google.auth.credentials.Credentials): The + authorization credentials to attach to requests. These + credentials identify this application to the service. If none + are specified, the client will attempt to ascertain the + credentials from the environment. + This argument is mutually exclusive with providing a + transport instance to ``transport``; doing so will raise + an exception. + client_config (dict): DEPRECATED. A dictionary of call options for + each method. If not specified, the default configuration is used. + client_info (google.api_core.gapic_v1.client_info.ClientInfo): + The client info used to send a user-agent string along with + API requests. If ``None``, then default info will be used. + Generally, you only need to set this if you're developing + your own client library. + """ + # Raise deprecation warnings for things we want to go away. + if client_config is not None: + warnings.warn('The `client_config` argument is deprecated.', + PendingDeprecationWarning, stacklevel=2) + else: + client_config = ad_group_ad_service_client_config.config + + if channel: + warnings.warn('The `channel` argument is deprecated; use ' + '`transport` instead.', + PendingDeprecationWarning, stacklevel=2) + + # Instantiate the transport. + # The transport is responsible for handling serialization and + # deserialization and actually sending data to the service. + if transport: + if callable(transport): + self.transport = transport( + credentials=credentials, + default_class=ad_group_ad_service_grpc_transport.AdGroupAdServiceGrpcTransport, + ) + else: + if credentials: + raise ValueError( + 'Received both a transport instance and ' + 'credentials; these are mutually exclusive.' + ) + self.transport = transport + else: + self.transport = ad_group_ad_service_grpc_transport.AdGroupAdServiceGrpcTransport( + address=self.SERVICE_ADDRESS, + channel=channel, + credentials=credentials, + ) + + if client_info is None: + client_info = google.api_core.gapic_v1.client_info.ClientInfo( + gapic_version=_GAPIC_LIBRARY_VERSION, + ) + else: + client_info.gapic_version = _GAPIC_LIBRARY_VERSION + self._client_info = client_info + + # Parse out the default settings for retry and timeout for each RPC + # from the client configuration. + # (Ordinarily, these are the defaults specified in the `*_config.py` + # file next to this one.) + self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( + client_config['interfaces'][self._INTERFACE_NAME], + ) + + # Save a dictionary of cached API call functions. + # These are the actual callables which invoke the proper + # transport methods, wrapped with `wrap_method` to add retry, + # timeout, and the like. + self._inner_api_calls = {} + + # Service calls + def get_ad_group_ad( + self, + resource_name, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None): + """ + Returns the requested ad in full detail. + + Args: + resource_name (str): Required. The resource name of the ad to fetch. + retry (Optional[google.api_core.retry.Retry]): A retry object used + to retry requests. If ``None`` is specified, requests will not + be retried. + timeout (Optional[float]): The amount of time, in seconds, to wait + for the request to complete. Note that if ``retry`` is + specified, the timeout applies to each individual attempt. + metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata + that is provided to the method. + + Returns: + A :class:`~google.ads.googleads_v4.types.AdGroupAd` instance. + + Raises: + google.api_core.exceptions.GoogleAPICallError: If the request + failed for any reason. + google.api_core.exceptions.RetryError: If the request failed due + to a retryable error and retry attempts failed. + ValueError: If the parameters are invalid. + """ + # Wrap the transport method to add retry and timeout logic. + if 'get_ad_group_ad' not in self._inner_api_calls: + self._inner_api_calls['get_ad_group_ad'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.get_ad_group_ad, + default_retry=self._method_configs['GetAdGroupAd'].retry, + default_timeout=self._method_configs['GetAdGroupAd'].timeout, + client_info=self._client_info, + ) + + request = ad_group_ad_service_pb2.GetAdGroupAdRequest( + resource_name=resource_name, + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [('resource_name', resource_name)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata(routing_header) + metadata.append(routing_metadata) + + return self._inner_api_calls['get_ad_group_ad'](request, retry=retry, timeout=timeout, metadata=metadata) + + def mutate_ad_group_ads( + self, + customer_id, + operations, + partial_failure=None, + validate_only=None, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None): + """ + Creates, updates, or removes ads. Operation statuses are returned. + + Args: + customer_id (str): Required. The ID of the customer whose ads are being modified. + operations (list[Union[dict, ~google.ads.googleads_v4.types.AdGroupAdOperation]]): Required. The list of operations to perform on individual ads. + + If a dict is provided, it must be of the same form as the protobuf + message :class:`~google.ads.googleads_v4.types.AdGroupAdOperation` + partial_failure (bool): If true, successful operations will be carried out and invalid + operations will return errors. If false, all operations will be carried + out in one transaction if and only if they are all valid. + Default is false. + validate_only (bool): If true, the request is validated but not executed. Only errors are + returned, not results. + retry (Optional[google.api_core.retry.Retry]): A retry object used + to retry requests. If ``None`` is specified, requests will not + be retried. + timeout (Optional[float]): The amount of time, in seconds, to wait + for the request to complete. Note that if ``retry`` is + specified, the timeout applies to each individual attempt. + metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata + that is provided to the method. + + Returns: + A :class:`~google.ads.googleads_v4.types.MutateAdGroupAdsResponse` instance. + + Raises: + google.api_core.exceptions.GoogleAPICallError: If the request + failed for any reason. + google.api_core.exceptions.RetryError: If the request failed due + to a retryable error and retry attempts failed. + ValueError: If the parameters are invalid. + """ + # Wrap the transport method to add retry and timeout logic. + if 'mutate_ad_group_ads' not in self._inner_api_calls: + self._inner_api_calls['mutate_ad_group_ads'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.mutate_ad_group_ads, + default_retry=self._method_configs['MutateAdGroupAds'].retry, + default_timeout=self._method_configs['MutateAdGroupAds'].timeout, + client_info=self._client_info, + ) + + request = ad_group_ad_service_pb2.MutateAdGroupAdsRequest( + customer_id=customer_id, + operations=operations, + partial_failure=partial_failure, + validate_only=validate_only, + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [('customer_id', customer_id)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata(routing_header) + metadata.append(routing_metadata) + + return self._inner_api_calls['mutate_ad_group_ads'](request, retry=retry, timeout=timeout, metadata=metadata) diff --git a/google/ads/google_ads/v4/services/ad_group_ad_service_client_config.py b/google/ads/google_ads/v4/services/ad_group_ad_service_client_config.py new file mode 100644 index 000000000..5999aeb49 --- /dev/null +++ b/google/ads/google_ads/v4/services/ad_group_ad_service_client_config.py @@ -0,0 +1,36 @@ +config = { + "interfaces": { + "google.ads.googleads.v4.services.AdGroupAdService": { + "retry_codes": { + "idempotent": [ + "DEADLINE_EXCEEDED", + "UNAVAILABLE" + ], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 5000, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 3600000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 3600000, + "total_timeout_millis": 3600000 + } + }, + "methods": { + "GetAdGroupAd": { + "timeout_millis": 60000, + "retry_codes_name": "idempotent", + "retry_params_name": "default" + }, + "MutateAdGroupAds": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + } + } + } + } +} diff --git a/google/ads/google_ads/v1/services/ad_group_audience_view_service_client.py b/google/ads/google_ads/v4/services/ad_group_audience_view_service_client.py similarity index 78% rename from google/ads/google_ads/v1/services/ad_group_audience_view_service_client.py rename to google/ads/google_ads/v4/services/ad_group_audience_view_service_client.py index b17a0f18d..d1f510a0e 100644 --- a/google/ads/google_ads/v1/services/ad_group_audience_view_service_client.py +++ b/google/ads/google_ads/v4/services/ad_group_audience_view_service_client.py @@ -13,7 +13,8 @@ # 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. -"""Accesses the google.ads.googleads.v1.services AdGroupAudienceViewService API.""" + +"""Accesses the google.ads.googleads.v4.services AdGroupAudienceViewService API.""" import pkg_resources import warnings @@ -22,15 +23,19 @@ import google.api_core.gapic_v1.client_info import google.api_core.gapic_v1.config import google.api_core.gapic_v1.method +import google.api_core.gapic_v1.routing_header import google.api_core.grpc_helpers import google.api_core.path_template -from google.ads.google_ads.v1.services import ad_group_audience_view_service_client_config -from google.ads.google_ads.v1.services.transports import ad_group_audience_view_service_grpc_transport -from google.ads.google_ads.v1.proto.services import ad_group_audience_view_service_pb2 +from google.ads.google_ads.v4.services import ad_group_audience_view_service_client_config +from google.ads.google_ads.v4.services.transports import ad_group_audience_view_service_grpc_transport +from google.ads.google_ads.v4.proto.services import ad_group_audience_view_service_pb2 + + _GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( - 'google-ads', ).version + 'google-ads', +).version class AdGroupAudienceViewServiceClient(object): @@ -41,7 +46,8 @@ class AdGroupAudienceViewServiceClient(object): # The name of the interface for this client. This is the key used to # find the method configuration in the client_config dictionary. - _INTERFACE_NAME = 'google.ads.googleads.v1.services.AdGroupAudienceViewService' + _INTERFACE_NAME = 'google.ads.googleads.v4.services.AdGroupAudienceViewService' + @classmethod def from_service_account_file(cls, filename, *args, **kwargs): @@ -64,6 +70,7 @@ def from_service_account_file(cls, filename, *args, **kwargs): from_service_account_json = from_service_account_file + @classmethod def ad_group_audience_view_path(cls, customer, ad_group_audience_view): """Return a fully-qualified ad_group_audience_view string.""" @@ -73,12 +80,8 @@ def ad_group_audience_view_path(cls, customer, ad_group_audience_view): ad_group_audience_view=ad_group_audience_view, ) - def __init__(self, - transport=None, - channel=None, - credentials=None, - client_config=None, - client_info=None): + def __init__(self, transport=None, channel=None, credentials=None, + client_config=None, client_info=None): """Constructor. Args: @@ -111,19 +114,15 @@ def __init__(self, """ # Raise deprecation warnings for things we want to go away. if client_config is not None: - warnings.warn( - 'The `client_config` argument is deprecated.', - PendingDeprecationWarning, - stacklevel=2) + warnings.warn('The `client_config` argument is deprecated.', + PendingDeprecationWarning, stacklevel=2) else: client_config = ad_group_audience_view_service_client_config.config if channel: - warnings.warn( - 'The `channel` argument is deprecated; use ' - '`transport` instead.', - PendingDeprecationWarning, - stacklevel=2) + warnings.warn('The `channel` argument is deprecated; use ' + '`transport` instead.', + PendingDeprecationWarning, stacklevel=2) # Instantiate the transport. # The transport is responsible for handling serialization and @@ -132,14 +131,14 @@ def __init__(self, if callable(transport): self.transport = transport( credentials=credentials, - default_class=ad_group_audience_view_service_grpc_transport - .AdGroupAudienceViewServiceGrpcTransport, + default_class=ad_group_audience_view_service_grpc_transport.AdGroupAudienceViewServiceGrpcTransport, ) else: if credentials: raise ValueError( 'Received both a transport instance and ' - 'credentials; these are mutually exclusive.') + 'credentials; these are mutually exclusive.' + ) self.transport = transport else: self.transport = ad_group_audience_view_service_grpc_transport.AdGroupAudienceViewServiceGrpcTransport( @@ -150,7 +149,8 @@ def __init__(self, if client_info is None: client_info = google.api_core.gapic_v1.client_info.ClientInfo( - gapic_version=_GAPIC_LIBRARY_VERSION, ) + gapic_version=_GAPIC_LIBRARY_VERSION, + ) else: client_info.gapic_version = _GAPIC_LIBRARY_VERSION self._client_info = client_info @@ -160,7 +160,8 @@ def __init__(self, # (Ordinarily, these are the defaults specified in the `*_config.py` # file next to this one.) self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( - client_config['interfaces'][self._INTERFACE_NAME], ) + client_config['interfaces'][self._INTERFACE_NAME], + ) # Save a dictionary of cached API call functions. # These are the actual callables which invoke the proper @@ -179,7 +180,7 @@ def get_ad_group_audience_view( Returns the requested ad group audience view in full detail. Args: - resource_name (str): The resource name of the ad group audience view to fetch. + resource_name (str): Required. The resource name of the ad group audience view to fetch. retry (Optional[google.api_core.retry.Retry]): A retry object used to retry requests. If ``None`` is specified, requests will not be retried. @@ -190,7 +191,7 @@ def get_ad_group_audience_view( that is provided to the method. Returns: - A :class:`~google.ads.googleads_v1.types.AdGroupAudienceView` instance. + A :class:`~google.ads.googleads_v4.types.AdGroupAudienceView` instance. Raises: google.api_core.exceptions.GoogleAPICallError: If the request @@ -201,17 +202,25 @@ def get_ad_group_audience_view( """ # Wrap the transport method to add retry and timeout logic. if 'get_ad_group_audience_view' not in self._inner_api_calls: - self._inner_api_calls[ - 'get_ad_group_audience_view'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.get_ad_group_audience_view, - default_retry=self. - _method_configs['GetAdGroupAudienceView'].retry, - default_timeout=self. - _method_configs['GetAdGroupAudienceView'].timeout, - client_info=self._client_info, - ) + self._inner_api_calls['get_ad_group_audience_view'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.get_ad_group_audience_view, + default_retry=self._method_configs['GetAdGroupAudienceView'].retry, + default_timeout=self._method_configs['GetAdGroupAudienceView'].timeout, + client_info=self._client_info, + ) request = ad_group_audience_view_service_pb2.GetAdGroupAudienceViewRequest( - resource_name=resource_name, ) - return self._inner_api_calls['get_ad_group_audience_view']( - request, retry=retry, timeout=timeout, metadata=metadata) + resource_name=resource_name, + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [('resource_name', resource_name)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata(routing_header) + metadata.append(routing_metadata) + + return self._inner_api_calls['get_ad_group_audience_view'](request, retry=retry, timeout=timeout, metadata=metadata) diff --git a/google/ads/google_ads/v4/services/ad_group_audience_view_service_client_config.py b/google/ads/google_ads/v4/services/ad_group_audience_view_service_client_config.py new file mode 100644 index 000000000..8c730beed --- /dev/null +++ b/google/ads/google_ads/v4/services/ad_group_audience_view_service_client_config.py @@ -0,0 +1,31 @@ +config = { + "interfaces": { + "google.ads.googleads.v4.services.AdGroupAudienceViewService": { + "retry_codes": { + "idempotent": [ + "DEADLINE_EXCEEDED", + "UNAVAILABLE" + ], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 5000, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 3600000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 3600000, + "total_timeout_millis": 3600000 + } + }, + "methods": { + "GetAdGroupAudienceView": { + "timeout_millis": 60000, + "retry_codes_name": "idempotent", + "retry_params_name": "default" + } + } + } + } +} diff --git a/google/ads/google_ads/v1/services/ad_group_bid_modifier_service_client.py b/google/ads/google_ads/v4/services/ad_group_bid_modifier_service_client.py similarity index 75% rename from google/ads/google_ads/v1/services/ad_group_bid_modifier_service_client.py rename to google/ads/google_ads/v4/services/ad_group_bid_modifier_service_client.py index 6f959c4c6..58b4115ab 100644 --- a/google/ads/google_ads/v1/services/ad_group_bid_modifier_service_client.py +++ b/google/ads/google_ads/v4/services/ad_group_bid_modifier_service_client.py @@ -13,7 +13,8 @@ # 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. -"""Accesses the google.ads.googleads.v1.services AdGroupBidModifierService API.""" + +"""Accesses the google.ads.googleads.v4.services AdGroupBidModifierService API.""" import pkg_resources import warnings @@ -22,15 +23,19 @@ import google.api_core.gapic_v1.client_info import google.api_core.gapic_v1.config import google.api_core.gapic_v1.method +import google.api_core.gapic_v1.routing_header import google.api_core.grpc_helpers import google.api_core.path_template -from google.ads.google_ads.v1.services import ad_group_bid_modifier_service_client_config -from google.ads.google_ads.v1.services.transports import ad_group_bid_modifier_service_grpc_transport -from google.ads.google_ads.v1.proto.services import ad_group_bid_modifier_service_pb2 +from google.ads.google_ads.v4.services import ad_group_bid_modifier_service_client_config +from google.ads.google_ads.v4.services.transports import ad_group_bid_modifier_service_grpc_transport +from google.ads.google_ads.v4.proto.services import ad_group_bid_modifier_service_pb2 + + _GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( - 'google-ads', ).version + 'google-ads', +).version class AdGroupBidModifierServiceClient(object): @@ -41,7 +46,8 @@ class AdGroupBidModifierServiceClient(object): # The name of the interface for this client. This is the key used to # find the method configuration in the client_config dictionary. - _INTERFACE_NAME = 'google.ads.googleads.v1.services.AdGroupBidModifierService' + _INTERFACE_NAME = 'google.ads.googleads.v4.services.AdGroupBidModifierService' + @classmethod def from_service_account_file(cls, filename, *args, **kwargs): @@ -64,6 +70,7 @@ def from_service_account_file(cls, filename, *args, **kwargs): from_service_account_json = from_service_account_file + @classmethod def ad_group_bid_modifier_path(cls, customer, ad_group_bid_modifier): """Return a fully-qualified ad_group_bid_modifier string.""" @@ -73,12 +80,8 @@ def ad_group_bid_modifier_path(cls, customer, ad_group_bid_modifier): ad_group_bid_modifier=ad_group_bid_modifier, ) - def __init__(self, - transport=None, - channel=None, - credentials=None, - client_config=None, - client_info=None): + def __init__(self, transport=None, channel=None, credentials=None, + client_config=None, client_info=None): """Constructor. Args: @@ -111,19 +114,15 @@ def __init__(self, """ # Raise deprecation warnings for things we want to go away. if client_config is not None: - warnings.warn( - 'The `client_config` argument is deprecated.', - PendingDeprecationWarning, - stacklevel=2) + warnings.warn('The `client_config` argument is deprecated.', + PendingDeprecationWarning, stacklevel=2) else: client_config = ad_group_bid_modifier_service_client_config.config if channel: - warnings.warn( - 'The `channel` argument is deprecated; use ' - '`transport` instead.', - PendingDeprecationWarning, - stacklevel=2) + warnings.warn('The `channel` argument is deprecated; use ' + '`transport` instead.', + PendingDeprecationWarning, stacklevel=2) # Instantiate the transport. # The transport is responsible for handling serialization and @@ -132,14 +131,14 @@ def __init__(self, if callable(transport): self.transport = transport( credentials=credentials, - default_class=ad_group_bid_modifier_service_grpc_transport. - AdGroupBidModifierServiceGrpcTransport, + default_class=ad_group_bid_modifier_service_grpc_transport.AdGroupBidModifierServiceGrpcTransport, ) else: if credentials: raise ValueError( 'Received both a transport instance and ' - 'credentials; these are mutually exclusive.') + 'credentials; these are mutually exclusive.' + ) self.transport = transport else: self.transport = ad_group_bid_modifier_service_grpc_transport.AdGroupBidModifierServiceGrpcTransport( @@ -150,7 +149,8 @@ def __init__(self, if client_info is None: client_info = google.api_core.gapic_v1.client_info.ClientInfo( - gapic_version=_GAPIC_LIBRARY_VERSION, ) + gapic_version=_GAPIC_LIBRARY_VERSION, + ) else: client_info.gapic_version = _GAPIC_LIBRARY_VERSION self._client_info = client_info @@ -160,7 +160,8 @@ def __init__(self, # (Ordinarily, these are the defaults specified in the `*_config.py` # file next to this one.) self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( - client_config['interfaces'][self._INTERFACE_NAME], ) + client_config['interfaces'][self._INTERFACE_NAME], + ) # Save a dictionary of cached API call functions. # These are the actual callables which invoke the proper @@ -179,7 +180,7 @@ def get_ad_group_bid_modifier( Returns the requested ad group bid modifier in full detail. Args: - resource_name (str): The resource name of the ad group bid modifier to fetch. + resource_name (str): Required. The resource name of the ad group bid modifier to fetch. retry (Optional[google.api_core.retry.Retry]): A retry object used to retry requests. If ``None`` is specified, requests will not be retried. @@ -190,7 +191,7 @@ def get_ad_group_bid_modifier( that is provided to the method. Returns: - A :class:`~google.ads.googleads_v1.types.AdGroupBidModifier` instance. + A :class:`~google.ads.googleads_v4.types.AdGroupBidModifier` instance. Raises: google.api_core.exceptions.GoogleAPICallError: If the request @@ -201,20 +202,28 @@ def get_ad_group_bid_modifier( """ # Wrap the transport method to add retry and timeout logic. if 'get_ad_group_bid_modifier' not in self._inner_api_calls: - self._inner_api_calls[ - 'get_ad_group_bid_modifier'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.get_ad_group_bid_modifier, - default_retry=self. - _method_configs['GetAdGroupBidModifier'].retry, - default_timeout=self. - _method_configs['GetAdGroupBidModifier'].timeout, - client_info=self._client_info, - ) + self._inner_api_calls['get_ad_group_bid_modifier'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.get_ad_group_bid_modifier, + default_retry=self._method_configs['GetAdGroupBidModifier'].retry, + default_timeout=self._method_configs['GetAdGroupBidModifier'].timeout, + client_info=self._client_info, + ) request = ad_group_bid_modifier_service_pb2.GetAdGroupBidModifierRequest( - resource_name=resource_name, ) - return self._inner_api_calls['get_ad_group_bid_modifier']( - request, retry=retry, timeout=timeout, metadata=metadata) + resource_name=resource_name, + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [('resource_name', resource_name)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata(routing_header) + metadata.append(routing_metadata) + + return self._inner_api_calls['get_ad_group_bid_modifier'](request, retry=retry, timeout=timeout, metadata=metadata) def mutate_ad_group_bid_modifiers( self, @@ -230,11 +239,11 @@ def mutate_ad_group_bid_modifiers( Operation statuses are returned. Args: - customer_id (str): ID of the customer whose ad group bid modifiers are being modified. - operations (list[Union[dict, ~google.ads.googleads_v1.types.AdGroupBidModifierOperation]]): The list of operations to perform on individual ad group bid modifiers. + customer_id (str): Required. ID of the customer whose ad group bid modifiers are being modified. + operations (list[Union[dict, ~google.ads.googleads_v4.types.AdGroupBidModifierOperation]]): Required. The list of operations to perform on individual ad group bid modifiers. If a dict is provided, it must be of the same form as the protobuf - message :class:`~google.ads.googleads_v1.types.AdGroupBidModifierOperation` + message :class:`~google.ads.googleads_v4.types.AdGroupBidModifierOperation` partial_failure (bool): If true, successful operations will be carried out and invalid operations will return errors. If false, all operations will be carried out in one transaction if and only if they are all valid. @@ -251,7 +260,7 @@ def mutate_ad_group_bid_modifiers( that is provided to the method. Returns: - A :class:`~google.ads.googleads_v1.types.MutateAdGroupBidModifiersResponse` instance. + A :class:`~google.ads.googleads_v4.types.MutateAdGroupBidModifiersResponse` instance. Raises: google.api_core.exceptions.GoogleAPICallError: If the request @@ -262,15 +271,12 @@ def mutate_ad_group_bid_modifiers( """ # Wrap the transport method to add retry and timeout logic. if 'mutate_ad_group_bid_modifiers' not in self._inner_api_calls: - self._inner_api_calls[ - 'mutate_ad_group_bid_modifiers'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.mutate_ad_group_bid_modifiers, - default_retry=self. - _method_configs['MutateAdGroupBidModifiers'].retry, - default_timeout=self. - _method_configs['MutateAdGroupBidModifiers'].timeout, - client_info=self._client_info, - ) + self._inner_api_calls['mutate_ad_group_bid_modifiers'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.mutate_ad_group_bid_modifiers, + default_retry=self._method_configs['MutateAdGroupBidModifiers'].retry, + default_timeout=self._method_configs['MutateAdGroupBidModifiers'].timeout, + client_info=self._client_info, + ) request = ad_group_bid_modifier_service_pb2.MutateAdGroupBidModifiersRequest( customer_id=customer_id, @@ -278,5 +284,15 @@ def mutate_ad_group_bid_modifiers( partial_failure=partial_failure, validate_only=validate_only, ) - return self._inner_api_calls['mutate_ad_group_bid_modifiers']( - request, retry=retry, timeout=timeout, metadata=metadata) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [('customer_id', customer_id)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata(routing_header) + metadata.append(routing_metadata) + + return self._inner_api_calls['mutate_ad_group_bid_modifiers'](request, retry=retry, timeout=timeout, metadata=metadata) diff --git a/google/ads/google_ads/v4/services/ad_group_bid_modifier_service_client_config.py b/google/ads/google_ads/v4/services/ad_group_bid_modifier_service_client_config.py new file mode 100644 index 000000000..3716ab36d --- /dev/null +++ b/google/ads/google_ads/v4/services/ad_group_bid_modifier_service_client_config.py @@ -0,0 +1,36 @@ +config = { + "interfaces": { + "google.ads.googleads.v4.services.AdGroupBidModifierService": { + "retry_codes": { + "idempotent": [ + "DEADLINE_EXCEEDED", + "UNAVAILABLE" + ], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 5000, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 3600000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 3600000, + "total_timeout_millis": 3600000 + } + }, + "methods": { + "GetAdGroupBidModifier": { + "timeout_millis": 60000, + "retry_codes_name": "idempotent", + "retry_params_name": "default" + }, + "MutateAdGroupBidModifiers": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + } + } + } + } +} diff --git a/google/ads/google_ads/v1/services/ad_group_criterion_label_service_client.py b/google/ads/google_ads/v4/services/ad_group_criterion_label_service_client.py similarity index 75% rename from google/ads/google_ads/v1/services/ad_group_criterion_label_service_client.py rename to google/ads/google_ads/v4/services/ad_group_criterion_label_service_client.py index b37f29202..270dc4b00 100644 --- a/google/ads/google_ads/v1/services/ad_group_criterion_label_service_client.py +++ b/google/ads/google_ads/v4/services/ad_group_criterion_label_service_client.py @@ -13,7 +13,8 @@ # 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. -"""Accesses the google.ads.googleads.v1.services AdGroupCriterionLabelService API.""" + +"""Accesses the google.ads.googleads.v4.services AdGroupCriterionLabelService API.""" import pkg_resources import warnings @@ -22,15 +23,19 @@ import google.api_core.gapic_v1.client_info import google.api_core.gapic_v1.config import google.api_core.gapic_v1.method +import google.api_core.gapic_v1.routing_header import google.api_core.grpc_helpers import google.api_core.path_template -from google.ads.google_ads.v1.services import ad_group_criterion_label_service_client_config -from google.ads.google_ads.v1.services.transports import ad_group_criterion_label_service_grpc_transport -from google.ads.google_ads.v1.proto.services import ad_group_criterion_label_service_pb2 +from google.ads.google_ads.v4.services import ad_group_criterion_label_service_client_config +from google.ads.google_ads.v4.services.transports import ad_group_criterion_label_service_grpc_transport +from google.ads.google_ads.v4.proto.services import ad_group_criterion_label_service_pb2 + + _GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( - 'google-ads', ).version + 'google-ads', +).version class AdGroupCriterionLabelServiceClient(object): @@ -41,7 +46,8 @@ class AdGroupCriterionLabelServiceClient(object): # The name of the interface for this client. This is the key used to # find the method configuration in the client_config dictionary. - _INTERFACE_NAME = 'google.ads.googleads.v1.services.AdGroupCriterionLabelService' + _INTERFACE_NAME = 'google.ads.googleads.v4.services.AdGroupCriterionLabelService' + @classmethod def from_service_account_file(cls, filename, *args, **kwargs): @@ -64,6 +70,7 @@ def from_service_account_file(cls, filename, *args, **kwargs): from_service_account_json = from_service_account_file + @classmethod def ad_group_criterion_label_path(cls, customer, ad_group_criterion_label): """Return a fully-qualified ad_group_criterion_label string.""" @@ -73,12 +80,8 @@ def ad_group_criterion_label_path(cls, customer, ad_group_criterion_label): ad_group_criterion_label=ad_group_criterion_label, ) - def __init__(self, - transport=None, - channel=None, - credentials=None, - client_config=None, - client_info=None): + def __init__(self, transport=None, channel=None, credentials=None, + client_config=None, client_info=None): """Constructor. Args: @@ -111,19 +114,15 @@ def __init__(self, """ # Raise deprecation warnings for things we want to go away. if client_config is not None: - warnings.warn( - 'The `client_config` argument is deprecated.', - PendingDeprecationWarning, - stacklevel=2) + warnings.warn('The `client_config` argument is deprecated.', + PendingDeprecationWarning, stacklevel=2) else: client_config = ad_group_criterion_label_service_client_config.config if channel: - warnings.warn( - 'The `channel` argument is deprecated; use ' - '`transport` instead.', - PendingDeprecationWarning, - stacklevel=2) + warnings.warn('The `channel` argument is deprecated; use ' + '`transport` instead.', + PendingDeprecationWarning, stacklevel=2) # Instantiate the transport. # The transport is responsible for handling serialization and @@ -132,14 +131,14 @@ def __init__(self, if callable(transport): self.transport = transport( credentials=credentials, - default_class=ad_group_criterion_label_service_grpc_transport - .AdGroupCriterionLabelServiceGrpcTransport, + default_class=ad_group_criterion_label_service_grpc_transport.AdGroupCriterionLabelServiceGrpcTransport, ) else: if credentials: raise ValueError( 'Received both a transport instance and ' - 'credentials; these are mutually exclusive.') + 'credentials; these are mutually exclusive.' + ) self.transport = transport else: self.transport = ad_group_criterion_label_service_grpc_transport.AdGroupCriterionLabelServiceGrpcTransport( @@ -150,7 +149,8 @@ def __init__(self, if client_info is None: client_info = google.api_core.gapic_v1.client_info.ClientInfo( - gapic_version=_GAPIC_LIBRARY_VERSION, ) + gapic_version=_GAPIC_LIBRARY_VERSION, + ) else: client_info.gapic_version = _GAPIC_LIBRARY_VERSION self._client_info = client_info @@ -160,7 +160,8 @@ def __init__(self, # (Ordinarily, these are the defaults specified in the `*_config.py` # file next to this one.) self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( - client_config['interfaces'][self._INTERFACE_NAME], ) + client_config['interfaces'][self._INTERFACE_NAME], + ) # Save a dictionary of cached API call functions. # These are the actual callables which invoke the proper @@ -179,7 +180,7 @@ def get_ad_group_criterion_label( Returns the requested ad group criterion label in full detail. Args: - resource_name (str): The resource name of the ad group criterion label to fetch. + resource_name (str): Required. The resource name of the ad group criterion label to fetch. retry (Optional[google.api_core.retry.Retry]): A retry object used to retry requests. If ``None`` is specified, requests will not be retried. @@ -190,7 +191,7 @@ def get_ad_group_criterion_label( that is provided to the method. Returns: - A :class:`~google.ads.googleads_v1.types.AdGroupCriterionLabel` instance. + A :class:`~google.ads.googleads_v4.types.AdGroupCriterionLabel` instance. Raises: google.api_core.exceptions.GoogleAPICallError: If the request @@ -201,20 +202,28 @@ def get_ad_group_criterion_label( """ # Wrap the transport method to add retry and timeout logic. if 'get_ad_group_criterion_label' not in self._inner_api_calls: - self._inner_api_calls[ - 'get_ad_group_criterion_label'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.get_ad_group_criterion_label, - default_retry=self. - _method_configs['GetAdGroupCriterionLabel'].retry, - default_timeout=self. - _method_configs['GetAdGroupCriterionLabel'].timeout, - client_info=self._client_info, - ) + self._inner_api_calls['get_ad_group_criterion_label'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.get_ad_group_criterion_label, + default_retry=self._method_configs['GetAdGroupCriterionLabel'].retry, + default_timeout=self._method_configs['GetAdGroupCriterionLabel'].timeout, + client_info=self._client_info, + ) request = ad_group_criterion_label_service_pb2.GetAdGroupCriterionLabelRequest( - resource_name=resource_name, ) - return self._inner_api_calls['get_ad_group_criterion_label']( - request, retry=retry, timeout=timeout, metadata=metadata) + resource_name=resource_name, + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [('resource_name', resource_name)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata(routing_header) + metadata.append(routing_metadata) + + return self._inner_api_calls['get_ad_group_criterion_label'](request, retry=retry, timeout=timeout, metadata=metadata) def mutate_ad_group_criterion_labels( self, @@ -230,11 +239,11 @@ def mutate_ad_group_criterion_labels( Operation statuses are returned. Args: - customer_id (str): ID of the customer whose ad group criterion labels are being modified. - operations (list[Union[dict, ~google.ads.googleads_v1.types.AdGroupCriterionLabelOperation]]): The list of operations to perform on ad group criterion labels. + customer_id (str): Required. ID of the customer whose ad group criterion labels are being modified. + operations (list[Union[dict, ~google.ads.googleads_v4.types.AdGroupCriterionLabelOperation]]): Required. The list of operations to perform on ad group criterion labels. If a dict is provided, it must be of the same form as the protobuf - message :class:`~google.ads.googleads_v1.types.AdGroupCriterionLabelOperation` + message :class:`~google.ads.googleads_v4.types.AdGroupCriterionLabelOperation` partial_failure (bool): If true, successful operations will be carried out and invalid operations will return errors. If false, all operations will be carried out in one transaction if and only if they are all valid. @@ -251,7 +260,7 @@ def mutate_ad_group_criterion_labels( that is provided to the method. Returns: - A :class:`~google.ads.googleads_v1.types.MutateAdGroupCriterionLabelsResponse` instance. + A :class:`~google.ads.googleads_v4.types.MutateAdGroupCriterionLabelsResponse` instance. Raises: google.api_core.exceptions.GoogleAPICallError: If the request @@ -262,15 +271,12 @@ def mutate_ad_group_criterion_labels( """ # Wrap the transport method to add retry and timeout logic. if 'mutate_ad_group_criterion_labels' not in self._inner_api_calls: - self._inner_api_calls[ - 'mutate_ad_group_criterion_labels'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.mutate_ad_group_criterion_labels, - default_retry=self. - _method_configs['MutateAdGroupCriterionLabels'].retry, - default_timeout=self. - _method_configs['MutateAdGroupCriterionLabels'].timeout, - client_info=self._client_info, - ) + self._inner_api_calls['mutate_ad_group_criterion_labels'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.mutate_ad_group_criterion_labels, + default_retry=self._method_configs['MutateAdGroupCriterionLabels'].retry, + default_timeout=self._method_configs['MutateAdGroupCriterionLabels'].timeout, + client_info=self._client_info, + ) request = ad_group_criterion_label_service_pb2.MutateAdGroupCriterionLabelsRequest( customer_id=customer_id, @@ -278,5 +284,15 @@ def mutate_ad_group_criterion_labels( partial_failure=partial_failure, validate_only=validate_only, ) - return self._inner_api_calls['mutate_ad_group_criterion_labels']( - request, retry=retry, timeout=timeout, metadata=metadata) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [('customer_id', customer_id)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata(routing_header) + metadata.append(routing_metadata) + + return self._inner_api_calls['mutate_ad_group_criterion_labels'](request, retry=retry, timeout=timeout, metadata=metadata) diff --git a/google/ads/google_ads/v4/services/ad_group_criterion_label_service_client_config.py b/google/ads/google_ads/v4/services/ad_group_criterion_label_service_client_config.py new file mode 100644 index 000000000..6923a8c73 --- /dev/null +++ b/google/ads/google_ads/v4/services/ad_group_criterion_label_service_client_config.py @@ -0,0 +1,36 @@ +config = { + "interfaces": { + "google.ads.googleads.v4.services.AdGroupCriterionLabelService": { + "retry_codes": { + "idempotent": [ + "DEADLINE_EXCEEDED", + "UNAVAILABLE" + ], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 5000, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 3600000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 3600000, + "total_timeout_millis": 3600000 + } + }, + "methods": { + "GetAdGroupCriterionLabel": { + "timeout_millis": 60000, + "retry_codes_name": "idempotent", + "retry_params_name": "default" + }, + "MutateAdGroupCriterionLabels": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + } + } + } + } +} diff --git a/google/ads/google_ads/v4/services/ad_group_criterion_service_client.py b/google/ads/google_ads/v4/services/ad_group_criterion_service_client.py new file mode 100644 index 000000000..98c724e16 --- /dev/null +++ b/google/ads/google_ads/v4/services/ad_group_criterion_service_client.py @@ -0,0 +1,297 @@ +# -*- coding: utf-8 -*- +# +# 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. + +"""Accesses the google.ads.googleads.v4.services AdGroupCriterionService API.""" + +import pkg_resources +import warnings + +from google.oauth2 import service_account +import google.api_core.gapic_v1.client_info +import google.api_core.gapic_v1.config +import google.api_core.gapic_v1.method +import google.api_core.gapic_v1.routing_header +import google.api_core.grpc_helpers +import google.api_core.path_template + +from google.ads.google_ads.v4.services import ad_group_criterion_service_client_config +from google.ads.google_ads.v4.services.transports import ad_group_criterion_service_grpc_transport +from google.ads.google_ads.v4.proto.services import ad_group_criterion_service_pb2 + + + +_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( + 'google-ads', +).version + + +class AdGroupCriterionServiceClient(object): + """Service to manage ad group criteria.""" + + SERVICE_ADDRESS = 'googleads.googleapis.com:443' + """The default address of the service.""" + + # The name of the interface for this client. This is the key used to + # find the method configuration in the client_config dictionary. + _INTERFACE_NAME = 'google.ads.googleads.v4.services.AdGroupCriterionService' + + + @classmethod + def from_service_account_file(cls, filename, *args, **kwargs): + """Creates an instance of this client using the provided credentials + file. + + Args: + filename (str): The path to the service account private key json + file. + args: Additional arguments to pass to the constructor. + kwargs: Additional arguments to pass to the constructor. + + Returns: + AdGroupCriterionServiceClient: The constructed client. + """ + credentials = service_account.Credentials.from_service_account_file( + filename) + kwargs['credentials'] = credentials + return cls(*args, **kwargs) + + from_service_account_json = from_service_account_file + + + @classmethod + def ad_group_criteria_path(cls, customer, ad_group_criteria): + """Return a fully-qualified ad_group_criteria string.""" + return google.api_core.path_template.expand( + 'customers/{customer}/adGroupCriteria/{ad_group_criteria}', + customer=customer, + ad_group_criteria=ad_group_criteria, + ) + + def __init__(self, transport=None, channel=None, credentials=None, + client_config=None, client_info=None): + """Constructor. + + Args: + transport (Union[~.AdGroupCriterionServiceGrpcTransport, + Callable[[~.Credentials, type], ~.AdGroupCriterionServiceGrpcTransport]): A transport + instance, responsible for actually making the API calls. + The default transport uses the gRPC protocol. + This argument may also be a callable which returns a + transport instance. Callables will be sent the credentials + as the first argument and the default transport class as + the second argument. + channel (grpc.Channel): DEPRECATED. A ``Channel`` instance + through which to make calls. This argument is mutually exclusive + with ``credentials``; providing both will raise an exception. + credentials (google.auth.credentials.Credentials): The + authorization credentials to attach to requests. These + credentials identify this application to the service. If none + are specified, the client will attempt to ascertain the + credentials from the environment. + This argument is mutually exclusive with providing a + transport instance to ``transport``; doing so will raise + an exception. + client_config (dict): DEPRECATED. A dictionary of call options for + each method. If not specified, the default configuration is used. + client_info (google.api_core.gapic_v1.client_info.ClientInfo): + The client info used to send a user-agent string along with + API requests. If ``None``, then default info will be used. + Generally, you only need to set this if you're developing + your own client library. + """ + # Raise deprecation warnings for things we want to go away. + if client_config is not None: + warnings.warn('The `client_config` argument is deprecated.', + PendingDeprecationWarning, stacklevel=2) + else: + client_config = ad_group_criterion_service_client_config.config + + if channel: + warnings.warn('The `channel` argument is deprecated; use ' + '`transport` instead.', + PendingDeprecationWarning, stacklevel=2) + + # Instantiate the transport. + # The transport is responsible for handling serialization and + # deserialization and actually sending data to the service. + if transport: + if callable(transport): + self.transport = transport( + credentials=credentials, + default_class=ad_group_criterion_service_grpc_transport.AdGroupCriterionServiceGrpcTransport, + ) + else: + if credentials: + raise ValueError( + 'Received both a transport instance and ' + 'credentials; these are mutually exclusive.' + ) + self.transport = transport + else: + self.transport = ad_group_criterion_service_grpc_transport.AdGroupCriterionServiceGrpcTransport( + address=self.SERVICE_ADDRESS, + channel=channel, + credentials=credentials, + ) + + if client_info is None: + client_info = google.api_core.gapic_v1.client_info.ClientInfo( + gapic_version=_GAPIC_LIBRARY_VERSION, + ) + else: + client_info.gapic_version = _GAPIC_LIBRARY_VERSION + self._client_info = client_info + + # Parse out the default settings for retry and timeout for each RPC + # from the client configuration. + # (Ordinarily, these are the defaults specified in the `*_config.py` + # file next to this one.) + self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( + client_config['interfaces'][self._INTERFACE_NAME], + ) + + # Save a dictionary of cached API call functions. + # These are the actual callables which invoke the proper + # transport methods, wrapped with `wrap_method` to add retry, + # timeout, and the like. + self._inner_api_calls = {} + + # Service calls + def get_ad_group_criterion( + self, + resource_name, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None): + """ + Returns the requested criterion in full detail. + + Args: + resource_name (str): Required. The resource name of the criterion to fetch. + retry (Optional[google.api_core.retry.Retry]): A retry object used + to retry requests. If ``None`` is specified, requests will not + be retried. + timeout (Optional[float]): The amount of time, in seconds, to wait + for the request to complete. Note that if ``retry`` is + specified, the timeout applies to each individual attempt. + metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata + that is provided to the method. + + Returns: + A :class:`~google.ads.googleads_v4.types.AdGroupCriterion` instance. + + Raises: + google.api_core.exceptions.GoogleAPICallError: If the request + failed for any reason. + google.api_core.exceptions.RetryError: If the request failed due + to a retryable error and retry attempts failed. + ValueError: If the parameters are invalid. + """ + # Wrap the transport method to add retry and timeout logic. + if 'get_ad_group_criterion' not in self._inner_api_calls: + self._inner_api_calls['get_ad_group_criterion'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.get_ad_group_criterion, + default_retry=self._method_configs['GetAdGroupCriterion'].retry, + default_timeout=self._method_configs['GetAdGroupCriterion'].timeout, + client_info=self._client_info, + ) + + request = ad_group_criterion_service_pb2.GetAdGroupCriterionRequest( + resource_name=resource_name, + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [('resource_name', resource_name)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata(routing_header) + metadata.append(routing_metadata) + + return self._inner_api_calls['get_ad_group_criterion'](request, retry=retry, timeout=timeout, metadata=metadata) + + def mutate_ad_group_criteria( + self, + customer_id, + operations, + partial_failure=None, + validate_only=None, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None): + """ + Creates, updates, or removes criteria. Operation statuses are returned. + + Args: + customer_id (str): Required. ID of the customer whose criteria are being modified. + operations (list[Union[dict, ~google.ads.googleads_v4.types.AdGroupCriterionOperation]]): Required. The list of operations to perform on individual criteria. + + If a dict is provided, it must be of the same form as the protobuf + message :class:`~google.ads.googleads_v4.types.AdGroupCriterionOperation` + partial_failure (bool): If true, successful operations will be carried out and invalid + operations will return errors. If false, all operations will be carried + out in one transaction if and only if they are all valid. + Default is false. + validate_only (bool): If true, the request is validated but not executed. Only errors are + returned, not results. + retry (Optional[google.api_core.retry.Retry]): A retry object used + to retry requests. If ``None`` is specified, requests will not + be retried. + timeout (Optional[float]): The amount of time, in seconds, to wait + for the request to complete. Note that if ``retry`` is + specified, the timeout applies to each individual attempt. + metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata + that is provided to the method. + + Returns: + A :class:`~google.ads.googleads_v4.types.MutateAdGroupCriteriaResponse` instance. + + Raises: + google.api_core.exceptions.GoogleAPICallError: If the request + failed for any reason. + google.api_core.exceptions.RetryError: If the request failed due + to a retryable error and retry attempts failed. + ValueError: If the parameters are invalid. + """ + # Wrap the transport method to add retry and timeout logic. + if 'mutate_ad_group_criteria' not in self._inner_api_calls: + self._inner_api_calls['mutate_ad_group_criteria'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.mutate_ad_group_criteria, + default_retry=self._method_configs['MutateAdGroupCriteria'].retry, + default_timeout=self._method_configs['MutateAdGroupCriteria'].timeout, + client_info=self._client_info, + ) + + request = ad_group_criterion_service_pb2.MutateAdGroupCriteriaRequest( + customer_id=customer_id, + operations=operations, + partial_failure=partial_failure, + validate_only=validate_only, + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [('customer_id', customer_id)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata(routing_header) + metadata.append(routing_metadata) + + return self._inner_api_calls['mutate_ad_group_criteria'](request, retry=retry, timeout=timeout, metadata=metadata) diff --git a/google/ads/google_ads/v4/services/ad_group_criterion_service_client_config.py b/google/ads/google_ads/v4/services/ad_group_criterion_service_client_config.py new file mode 100644 index 000000000..578687977 --- /dev/null +++ b/google/ads/google_ads/v4/services/ad_group_criterion_service_client_config.py @@ -0,0 +1,36 @@ +config = { + "interfaces": { + "google.ads.googleads.v4.services.AdGroupCriterionService": { + "retry_codes": { + "idempotent": [ + "DEADLINE_EXCEEDED", + "UNAVAILABLE" + ], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 5000, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 3600000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 3600000, + "total_timeout_millis": 3600000 + } + }, + "methods": { + "GetAdGroupCriterion": { + "timeout_millis": 60000, + "retry_codes_name": "idempotent", + "retry_params_name": "default" + }, + "MutateAdGroupCriteria": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + } + } + } + } +} diff --git a/google/ads/google_ads/v1/services/ad_group_criterion_simulation_service_client.py b/google/ads/google_ads/v4/services/ad_group_criterion_simulation_service_client.py similarity index 77% rename from google/ads/google_ads/v1/services/ad_group_criterion_simulation_service_client.py rename to google/ads/google_ads/v4/services/ad_group_criterion_simulation_service_client.py index 467627c48..1f0b581eb 100644 --- a/google/ads/google_ads/v1/services/ad_group_criterion_simulation_service_client.py +++ b/google/ads/google_ads/v4/services/ad_group_criterion_simulation_service_client.py @@ -13,7 +13,8 @@ # 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. -"""Accesses the google.ads.googleads.v1.services AdGroupCriterionSimulationService API.""" + +"""Accesses the google.ads.googleads.v4.services AdGroupCriterionSimulationService API.""" import pkg_resources import warnings @@ -22,15 +23,19 @@ import google.api_core.gapic_v1.client_info import google.api_core.gapic_v1.config import google.api_core.gapic_v1.method +import google.api_core.gapic_v1.routing_header import google.api_core.grpc_helpers import google.api_core.path_template -from google.ads.google_ads.v1.services import ad_group_criterion_simulation_service_client_config -from google.ads.google_ads.v1.services.transports import ad_group_criterion_simulation_service_grpc_transport -from google.ads.google_ads.v1.proto.services import ad_group_criterion_simulation_service_pb2 +from google.ads.google_ads.v4.services import ad_group_criterion_simulation_service_client_config +from google.ads.google_ads.v4.services.transports import ad_group_criterion_simulation_service_grpc_transport +from google.ads.google_ads.v4.proto.services import ad_group_criterion_simulation_service_pb2 + + _GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( - 'google-ads', ).version + 'google-ads', +).version class AdGroupCriterionSimulationServiceClient(object): @@ -41,7 +46,8 @@ class AdGroupCriterionSimulationServiceClient(object): # The name of the interface for this client. This is the key used to # find the method configuration in the client_config dictionary. - _INTERFACE_NAME = 'google.ads.googleads.v1.services.AdGroupCriterionSimulationService' + _INTERFACE_NAME = 'google.ads.googleads.v4.services.AdGroupCriterionSimulationService' + @classmethod def from_service_account_file(cls, filename, *args, **kwargs): @@ -64,9 +70,9 @@ def from_service_account_file(cls, filename, *args, **kwargs): from_service_account_json = from_service_account_file + @classmethod - def ad_group_criterion_simulation_path(cls, customer, - ad_group_criterion_simulation): + def ad_group_criterion_simulation_path(cls, customer, ad_group_criterion_simulation): """Return a fully-qualified ad_group_criterion_simulation string.""" return google.api_core.path_template.expand( 'customers/{customer}/adGroupCriterionSimulations/{ad_group_criterion_simulation}', @@ -74,12 +80,8 @@ def ad_group_criterion_simulation_path(cls, customer, ad_group_criterion_simulation=ad_group_criterion_simulation, ) - def __init__(self, - transport=None, - channel=None, - credentials=None, - client_config=None, - client_info=None): + def __init__(self, transport=None, channel=None, credentials=None, + client_config=None, client_info=None): """Constructor. Args: @@ -112,19 +114,15 @@ def __init__(self, """ # Raise deprecation warnings for things we want to go away. if client_config is not None: - warnings.warn( - 'The `client_config` argument is deprecated.', - PendingDeprecationWarning, - stacklevel=2) + warnings.warn('The `client_config` argument is deprecated.', + PendingDeprecationWarning, stacklevel=2) else: client_config = ad_group_criterion_simulation_service_client_config.config if channel: - warnings.warn( - 'The `channel` argument is deprecated; use ' - '`transport` instead.', - PendingDeprecationWarning, - stacklevel=2) + warnings.warn('The `channel` argument is deprecated; use ' + '`transport` instead.', + PendingDeprecationWarning, stacklevel=2) # Instantiate the transport. # The transport is responsible for handling serialization and @@ -133,15 +131,14 @@ def __init__(self, if callable(transport): self.transport = transport( credentials=credentials, - default_class= - ad_group_criterion_simulation_service_grpc_transport. - AdGroupCriterionSimulationServiceGrpcTransport, + default_class=ad_group_criterion_simulation_service_grpc_transport.AdGroupCriterionSimulationServiceGrpcTransport, ) else: if credentials: raise ValueError( 'Received both a transport instance and ' - 'credentials; these are mutually exclusive.') + 'credentials; these are mutually exclusive.' + ) self.transport = transport else: self.transport = ad_group_criterion_simulation_service_grpc_transport.AdGroupCriterionSimulationServiceGrpcTransport( @@ -152,7 +149,8 @@ def __init__(self, if client_info is None: client_info = google.api_core.gapic_v1.client_info.ClientInfo( - gapic_version=_GAPIC_LIBRARY_VERSION, ) + gapic_version=_GAPIC_LIBRARY_VERSION, + ) else: client_info.gapic_version = _GAPIC_LIBRARY_VERSION self._client_info = client_info @@ -162,7 +160,8 @@ def __init__(self, # (Ordinarily, these are the defaults specified in the `*_config.py` # file next to this one.) self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( - client_config['interfaces'][self._INTERFACE_NAME], ) + client_config['interfaces'][self._INTERFACE_NAME], + ) # Save a dictionary of cached API call functions. # These are the actual callables which invoke the proper @@ -181,7 +180,7 @@ def get_ad_group_criterion_simulation( Returns the requested ad group criterion simulation in full detail. Args: - resource_name (str): The resource name of the ad group criterion simulation to fetch. + resource_name (str): Required. The resource name of the ad group criterion simulation to fetch. retry (Optional[google.api_core.retry.Retry]): A retry object used to retry requests. If ``None`` is specified, requests will not be retried. @@ -192,7 +191,7 @@ def get_ad_group_criterion_simulation( that is provided to the method. Returns: - A :class:`~google.ads.googleads_v1.types.AdGroupCriterionSimulation` instance. + A :class:`~google.ads.googleads_v4.types.AdGroupCriterionSimulation` instance. Raises: google.api_core.exceptions.GoogleAPICallError: If the request @@ -203,17 +202,25 @@ def get_ad_group_criterion_simulation( """ # Wrap the transport method to add retry and timeout logic. if 'get_ad_group_criterion_simulation' not in self._inner_api_calls: - self._inner_api_calls[ - 'get_ad_group_criterion_simulation'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.get_ad_group_criterion_simulation, - default_retry=self. - _method_configs['GetAdGroupCriterionSimulation'].retry, - default_timeout=self. - _method_configs['GetAdGroupCriterionSimulation'].timeout, - client_info=self._client_info, - ) + self._inner_api_calls['get_ad_group_criterion_simulation'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.get_ad_group_criterion_simulation, + default_retry=self._method_configs['GetAdGroupCriterionSimulation'].retry, + default_timeout=self._method_configs['GetAdGroupCriterionSimulation'].timeout, + client_info=self._client_info, + ) request = ad_group_criterion_simulation_service_pb2.GetAdGroupCriterionSimulationRequest( - resource_name=resource_name, ) - return self._inner_api_calls['get_ad_group_criterion_simulation']( - request, retry=retry, timeout=timeout, metadata=metadata) + resource_name=resource_name, + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [('resource_name', resource_name)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata(routing_header) + metadata.append(routing_metadata) + + return self._inner_api_calls['get_ad_group_criterion_simulation'](request, retry=retry, timeout=timeout, metadata=metadata) diff --git a/google/ads/google_ads/v4/services/ad_group_criterion_simulation_service_client_config.py b/google/ads/google_ads/v4/services/ad_group_criterion_simulation_service_client_config.py new file mode 100644 index 000000000..18d47f329 --- /dev/null +++ b/google/ads/google_ads/v4/services/ad_group_criterion_simulation_service_client_config.py @@ -0,0 +1,31 @@ +config = { + "interfaces": { + "google.ads.googleads.v4.services.AdGroupCriterionSimulationService": { + "retry_codes": { + "idempotent": [ + "DEADLINE_EXCEEDED", + "UNAVAILABLE" + ], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 5000, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 3600000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 3600000, + "total_timeout_millis": 3600000 + } + }, + "methods": { + "GetAdGroupCriterionSimulation": { + "timeout_millis": 60000, + "retry_codes_name": "idempotent", + "retry_params_name": "default" + } + } + } + } +} diff --git a/google/ads/google_ads/v4/services/ad_group_extension_setting_service_client.py b/google/ads/google_ads/v4/services/ad_group_extension_setting_service_client.py new file mode 100644 index 000000000..3689c2e9f --- /dev/null +++ b/google/ads/google_ads/v4/services/ad_group_extension_setting_service_client.py @@ -0,0 +1,300 @@ +# -*- coding: utf-8 -*- +# +# 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. + +"""Accesses the google.ads.googleads.v4.services AdGroupExtensionSettingService API.""" + +import pkg_resources +import warnings + +from google.oauth2 import service_account +import google.api_core.gapic_v1.client_info +import google.api_core.gapic_v1.config +import google.api_core.gapic_v1.method +import google.api_core.gapic_v1.routing_header +import google.api_core.grpc_helpers +import google.api_core.path_template + +from google.ads.google_ads.v4.services import ad_group_extension_setting_service_client_config +from google.ads.google_ads.v4.services.transports import ad_group_extension_setting_service_grpc_transport +from google.ads.google_ads.v4.proto.services import ad_group_extension_setting_service_pb2 + + + +_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( + 'google-ads', +).version + + +class AdGroupExtensionSettingServiceClient(object): + """Service to manage ad group extension settings.""" + + SERVICE_ADDRESS = 'googleads.googleapis.com:443' + """The default address of the service.""" + + # The name of the interface for this client. This is the key used to + # find the method configuration in the client_config dictionary. + _INTERFACE_NAME = 'google.ads.googleads.v4.services.AdGroupExtensionSettingService' + + + @classmethod + def from_service_account_file(cls, filename, *args, **kwargs): + """Creates an instance of this client using the provided credentials + file. + + Args: + filename (str): The path to the service account private key json + file. + args: Additional arguments to pass to the constructor. + kwargs: Additional arguments to pass to the constructor. + + Returns: + AdGroupExtensionSettingServiceClient: The constructed client. + """ + credentials = service_account.Credentials.from_service_account_file( + filename) + kwargs['credentials'] = credentials + return cls(*args, **kwargs) + + from_service_account_json = from_service_account_file + + + @classmethod + def ad_group_extension_setting_path(cls, customer, ad_group_extension_setting): + """Return a fully-qualified ad_group_extension_setting string.""" + return google.api_core.path_template.expand( + 'customers/{customer}/adGroupExtensionSettings/{ad_group_extension_setting}', + customer=customer, + ad_group_extension_setting=ad_group_extension_setting, + ) + + def __init__(self, transport=None, channel=None, credentials=None, + client_config=None, client_info=None): + """Constructor. + + Args: + transport (Union[~.AdGroupExtensionSettingServiceGrpcTransport, + Callable[[~.Credentials, type], ~.AdGroupExtensionSettingServiceGrpcTransport]): A transport + instance, responsible for actually making the API calls. + The default transport uses the gRPC protocol. + This argument may also be a callable which returns a + transport instance. Callables will be sent the credentials + as the first argument and the default transport class as + the second argument. + channel (grpc.Channel): DEPRECATED. A ``Channel`` instance + through which to make calls. This argument is mutually exclusive + with ``credentials``; providing both will raise an exception. + credentials (google.auth.credentials.Credentials): The + authorization credentials to attach to requests. These + credentials identify this application to the service. If none + are specified, the client will attempt to ascertain the + credentials from the environment. + This argument is mutually exclusive with providing a + transport instance to ``transport``; doing so will raise + an exception. + client_config (dict): DEPRECATED. A dictionary of call options for + each method. If not specified, the default configuration is used. + client_info (google.api_core.gapic_v1.client_info.ClientInfo): + The client info used to send a user-agent string along with + API requests. If ``None``, then default info will be used. + Generally, you only need to set this if you're developing + your own client library. + """ + # Raise deprecation warnings for things we want to go away. + if client_config is not None: + warnings.warn('The `client_config` argument is deprecated.', + PendingDeprecationWarning, stacklevel=2) + else: + client_config = ad_group_extension_setting_service_client_config.config + + if channel: + warnings.warn('The `channel` argument is deprecated; use ' + '`transport` instead.', + PendingDeprecationWarning, stacklevel=2) + + # Instantiate the transport. + # The transport is responsible for handling serialization and + # deserialization and actually sending data to the service. + if transport: + if callable(transport): + self.transport = transport( + credentials=credentials, + default_class=ad_group_extension_setting_service_grpc_transport.AdGroupExtensionSettingServiceGrpcTransport, + ) + else: + if credentials: + raise ValueError( + 'Received both a transport instance and ' + 'credentials; these are mutually exclusive.' + ) + self.transport = transport + else: + self.transport = ad_group_extension_setting_service_grpc_transport.AdGroupExtensionSettingServiceGrpcTransport( + address=self.SERVICE_ADDRESS, + channel=channel, + credentials=credentials, + ) + + if client_info is None: + client_info = google.api_core.gapic_v1.client_info.ClientInfo( + gapic_version=_GAPIC_LIBRARY_VERSION, + ) + else: + client_info.gapic_version = _GAPIC_LIBRARY_VERSION + self._client_info = client_info + + # Parse out the default settings for retry and timeout for each RPC + # from the client configuration. + # (Ordinarily, these are the defaults specified in the `*_config.py` + # file next to this one.) + self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( + client_config['interfaces'][self._INTERFACE_NAME], + ) + + # Save a dictionary of cached API call functions. + # These are the actual callables which invoke the proper + # transport methods, wrapped with `wrap_method` to add retry, + # timeout, and the like. + self._inner_api_calls = {} + + # Service calls + def get_ad_group_extension_setting( + self, + resource_name, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None): + """ + Returns the requested ad group extension setting in full detail. + + Args: + resource_name (str): Required. The resource name of the ad group extension setting to fetch. + retry (Optional[google.api_core.retry.Retry]): A retry object used + to retry requests. If ``None`` is specified, requests will not + be retried. + timeout (Optional[float]): The amount of time, in seconds, to wait + for the request to complete. Note that if ``retry`` is + specified, the timeout applies to each individual attempt. + metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata + that is provided to the method. + + Returns: + A :class:`~google.ads.googleads_v4.types.AdGroupExtensionSetting` instance. + + Raises: + google.api_core.exceptions.GoogleAPICallError: If the request + failed for any reason. + google.api_core.exceptions.RetryError: If the request failed due + to a retryable error and retry attempts failed. + ValueError: If the parameters are invalid. + """ + # Wrap the transport method to add retry and timeout logic. + if 'get_ad_group_extension_setting' not in self._inner_api_calls: + self._inner_api_calls['get_ad_group_extension_setting'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.get_ad_group_extension_setting, + default_retry=self._method_configs['GetAdGroupExtensionSetting'].retry, + default_timeout=self._method_configs['GetAdGroupExtensionSetting'].timeout, + client_info=self._client_info, + ) + + request = ad_group_extension_setting_service_pb2.GetAdGroupExtensionSettingRequest( + resource_name=resource_name, + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [('resource_name', resource_name)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata(routing_header) + metadata.append(routing_metadata) + + return self._inner_api_calls['get_ad_group_extension_setting'](request, retry=retry, timeout=timeout, metadata=metadata) + + def mutate_ad_group_extension_settings( + self, + customer_id, + operations, + partial_failure=None, + validate_only=None, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None): + """ + Creates, updates, or removes ad group extension settings. Operation + statuses are returned. + + Args: + customer_id (str): Required. The ID of the customer whose ad group extension settings are being + modified. + operations (list[Union[dict, ~google.ads.googleads_v4.types.AdGroupExtensionSettingOperation]]): Required. The list of operations to perform on individual ad group extension + settings. + + If a dict is provided, it must be of the same form as the protobuf + message :class:`~google.ads.googleads_v4.types.AdGroupExtensionSettingOperation` + partial_failure (bool): If true, successful operations will be carried out and invalid + operations will return errors. If false, all operations will be carried + out in one transaction if and only if they are all valid. + Default is false. + validate_only (bool): If true, the request is validated but not executed. Only errors are + returned, not results. + retry (Optional[google.api_core.retry.Retry]): A retry object used + to retry requests. If ``None`` is specified, requests will not + be retried. + timeout (Optional[float]): The amount of time, in seconds, to wait + for the request to complete. Note that if ``retry`` is + specified, the timeout applies to each individual attempt. + metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata + that is provided to the method. + + Returns: + A :class:`~google.ads.googleads_v4.types.MutateAdGroupExtensionSettingsResponse` instance. + + Raises: + google.api_core.exceptions.GoogleAPICallError: If the request + failed for any reason. + google.api_core.exceptions.RetryError: If the request failed due + to a retryable error and retry attempts failed. + ValueError: If the parameters are invalid. + """ + # Wrap the transport method to add retry and timeout logic. + if 'mutate_ad_group_extension_settings' not in self._inner_api_calls: + self._inner_api_calls['mutate_ad_group_extension_settings'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.mutate_ad_group_extension_settings, + default_retry=self._method_configs['MutateAdGroupExtensionSettings'].retry, + default_timeout=self._method_configs['MutateAdGroupExtensionSettings'].timeout, + client_info=self._client_info, + ) + + request = ad_group_extension_setting_service_pb2.MutateAdGroupExtensionSettingsRequest( + customer_id=customer_id, + operations=operations, + partial_failure=partial_failure, + validate_only=validate_only, + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [('customer_id', customer_id)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata(routing_header) + metadata.append(routing_metadata) + + return self._inner_api_calls['mutate_ad_group_extension_settings'](request, retry=retry, timeout=timeout, metadata=metadata) diff --git a/google/ads/google_ads/v4/services/ad_group_extension_setting_service_client_config.py b/google/ads/google_ads/v4/services/ad_group_extension_setting_service_client_config.py new file mode 100644 index 000000000..00c25b45f --- /dev/null +++ b/google/ads/google_ads/v4/services/ad_group_extension_setting_service_client_config.py @@ -0,0 +1,36 @@ +config = { + "interfaces": { + "google.ads.googleads.v4.services.AdGroupExtensionSettingService": { + "retry_codes": { + "idempotent": [ + "DEADLINE_EXCEEDED", + "UNAVAILABLE" + ], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 5000, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 3600000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 3600000, + "total_timeout_millis": 3600000 + } + }, + "methods": { + "GetAdGroupExtensionSetting": { + "timeout_millis": 60000, + "retry_codes_name": "idempotent", + "retry_params_name": "default" + }, + "MutateAdGroupExtensionSettings": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + } + } + } + } +} diff --git a/google/ads/google_ads/v4/services/ad_group_feed_service_client.py b/google/ads/google_ads/v4/services/ad_group_feed_service_client.py new file mode 100644 index 000000000..6e8f3f4c6 --- /dev/null +++ b/google/ads/google_ads/v4/services/ad_group_feed_service_client.py @@ -0,0 +1,298 @@ +# -*- coding: utf-8 -*- +# +# 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. + +"""Accesses the google.ads.googleads.v4.services AdGroupFeedService API.""" + +import pkg_resources +import warnings + +from google.oauth2 import service_account +import google.api_core.gapic_v1.client_info +import google.api_core.gapic_v1.config +import google.api_core.gapic_v1.method +import google.api_core.gapic_v1.routing_header +import google.api_core.grpc_helpers +import google.api_core.path_template + +from google.ads.google_ads.v4.services import ad_group_feed_service_client_config +from google.ads.google_ads.v4.services.transports import ad_group_feed_service_grpc_transport +from google.ads.google_ads.v4.proto.services import ad_group_feed_service_pb2 + + + +_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( + 'google-ads', +).version + + +class AdGroupFeedServiceClient(object): + """Service to manage ad group feeds.""" + + SERVICE_ADDRESS = 'googleads.googleapis.com:443' + """The default address of the service.""" + + # The name of the interface for this client. This is the key used to + # find the method configuration in the client_config dictionary. + _INTERFACE_NAME = 'google.ads.googleads.v4.services.AdGroupFeedService' + + + @classmethod + def from_service_account_file(cls, filename, *args, **kwargs): + """Creates an instance of this client using the provided credentials + file. + + Args: + filename (str): The path to the service account private key json + file. + args: Additional arguments to pass to the constructor. + kwargs: Additional arguments to pass to the constructor. + + Returns: + AdGroupFeedServiceClient: The constructed client. + """ + credentials = service_account.Credentials.from_service_account_file( + filename) + kwargs['credentials'] = credentials + return cls(*args, **kwargs) + + from_service_account_json = from_service_account_file + + + @classmethod + def ad_group_feed_path(cls, customer, ad_group_feed): + """Return a fully-qualified ad_group_feed string.""" + return google.api_core.path_template.expand( + 'customers/{customer}/adGroupFeeds/{ad_group_feed}', + customer=customer, + ad_group_feed=ad_group_feed, + ) + + def __init__(self, transport=None, channel=None, credentials=None, + client_config=None, client_info=None): + """Constructor. + + Args: + transport (Union[~.AdGroupFeedServiceGrpcTransport, + Callable[[~.Credentials, type], ~.AdGroupFeedServiceGrpcTransport]): A transport + instance, responsible for actually making the API calls. + The default transport uses the gRPC protocol. + This argument may also be a callable which returns a + transport instance. Callables will be sent the credentials + as the first argument and the default transport class as + the second argument. + channel (grpc.Channel): DEPRECATED. A ``Channel`` instance + through which to make calls. This argument is mutually exclusive + with ``credentials``; providing both will raise an exception. + credentials (google.auth.credentials.Credentials): The + authorization credentials to attach to requests. These + credentials identify this application to the service. If none + are specified, the client will attempt to ascertain the + credentials from the environment. + This argument is mutually exclusive with providing a + transport instance to ``transport``; doing so will raise + an exception. + client_config (dict): DEPRECATED. A dictionary of call options for + each method. If not specified, the default configuration is used. + client_info (google.api_core.gapic_v1.client_info.ClientInfo): + The client info used to send a user-agent string along with + API requests. If ``None``, then default info will be used. + Generally, you only need to set this if you're developing + your own client library. + """ + # Raise deprecation warnings for things we want to go away. + if client_config is not None: + warnings.warn('The `client_config` argument is deprecated.', + PendingDeprecationWarning, stacklevel=2) + else: + client_config = ad_group_feed_service_client_config.config + + if channel: + warnings.warn('The `channel` argument is deprecated; use ' + '`transport` instead.', + PendingDeprecationWarning, stacklevel=2) + + # Instantiate the transport. + # The transport is responsible for handling serialization and + # deserialization and actually sending data to the service. + if transport: + if callable(transport): + self.transport = transport( + credentials=credentials, + default_class=ad_group_feed_service_grpc_transport.AdGroupFeedServiceGrpcTransport, + ) + else: + if credentials: + raise ValueError( + 'Received both a transport instance and ' + 'credentials; these are mutually exclusive.' + ) + self.transport = transport + else: + self.transport = ad_group_feed_service_grpc_transport.AdGroupFeedServiceGrpcTransport( + address=self.SERVICE_ADDRESS, + channel=channel, + credentials=credentials, + ) + + if client_info is None: + client_info = google.api_core.gapic_v1.client_info.ClientInfo( + gapic_version=_GAPIC_LIBRARY_VERSION, + ) + else: + client_info.gapic_version = _GAPIC_LIBRARY_VERSION + self._client_info = client_info + + # Parse out the default settings for retry and timeout for each RPC + # from the client configuration. + # (Ordinarily, these are the defaults specified in the `*_config.py` + # file next to this one.) + self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( + client_config['interfaces'][self._INTERFACE_NAME], + ) + + # Save a dictionary of cached API call functions. + # These are the actual callables which invoke the proper + # transport methods, wrapped with `wrap_method` to add retry, + # timeout, and the like. + self._inner_api_calls = {} + + # Service calls + def get_ad_group_feed( + self, + resource_name, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None): + """ + Returns the requested ad group feed in full detail. + + Args: + resource_name (str): Required. The resource name of the ad group feed to fetch. + retry (Optional[google.api_core.retry.Retry]): A retry object used + to retry requests. If ``None`` is specified, requests will not + be retried. + timeout (Optional[float]): The amount of time, in seconds, to wait + for the request to complete. Note that if ``retry`` is + specified, the timeout applies to each individual attempt. + metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata + that is provided to the method. + + Returns: + A :class:`~google.ads.googleads_v4.types.AdGroupFeed` instance. + + Raises: + google.api_core.exceptions.GoogleAPICallError: If the request + failed for any reason. + google.api_core.exceptions.RetryError: If the request failed due + to a retryable error and retry attempts failed. + ValueError: If the parameters are invalid. + """ + # Wrap the transport method to add retry and timeout logic. + if 'get_ad_group_feed' not in self._inner_api_calls: + self._inner_api_calls['get_ad_group_feed'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.get_ad_group_feed, + default_retry=self._method_configs['GetAdGroupFeed'].retry, + default_timeout=self._method_configs['GetAdGroupFeed'].timeout, + client_info=self._client_info, + ) + + request = ad_group_feed_service_pb2.GetAdGroupFeedRequest( + resource_name=resource_name, + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [('resource_name', resource_name)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata(routing_header) + metadata.append(routing_metadata) + + return self._inner_api_calls['get_ad_group_feed'](request, retry=retry, timeout=timeout, metadata=metadata) + + def mutate_ad_group_feeds( + self, + customer_id, + operations, + partial_failure=None, + validate_only=None, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None): + """ + Creates, updates, or removes ad group feeds. Operation statuses are + returned. + + Args: + customer_id (str): Required. The ID of the customer whose ad group feeds are being modified. + operations (list[Union[dict, ~google.ads.googleads_v4.types.AdGroupFeedOperation]]): Required. The list of operations to perform on individual ad group feeds. + + If a dict is provided, it must be of the same form as the protobuf + message :class:`~google.ads.googleads_v4.types.AdGroupFeedOperation` + partial_failure (bool): If true, successful operations will be carried out and invalid + operations will return errors. If false, all operations will be carried + out in one transaction if and only if they are all valid. + Default is false. + validate_only (bool): If true, the request is validated but not executed. Only errors are + returned, not results. + retry (Optional[google.api_core.retry.Retry]): A retry object used + to retry requests. If ``None`` is specified, requests will not + be retried. + timeout (Optional[float]): The amount of time, in seconds, to wait + for the request to complete. Note that if ``retry`` is + specified, the timeout applies to each individual attempt. + metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata + that is provided to the method. + + Returns: + A :class:`~google.ads.googleads_v4.types.MutateAdGroupFeedsResponse` instance. + + Raises: + google.api_core.exceptions.GoogleAPICallError: If the request + failed for any reason. + google.api_core.exceptions.RetryError: If the request failed due + to a retryable error and retry attempts failed. + ValueError: If the parameters are invalid. + """ + # Wrap the transport method to add retry and timeout logic. + if 'mutate_ad_group_feeds' not in self._inner_api_calls: + self._inner_api_calls['mutate_ad_group_feeds'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.mutate_ad_group_feeds, + default_retry=self._method_configs['MutateAdGroupFeeds'].retry, + default_timeout=self._method_configs['MutateAdGroupFeeds'].timeout, + client_info=self._client_info, + ) + + request = ad_group_feed_service_pb2.MutateAdGroupFeedsRequest( + customer_id=customer_id, + operations=operations, + partial_failure=partial_failure, + validate_only=validate_only, + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [('customer_id', customer_id)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata(routing_header) + metadata.append(routing_metadata) + + return self._inner_api_calls['mutate_ad_group_feeds'](request, retry=retry, timeout=timeout, metadata=metadata) diff --git a/google/ads/google_ads/v4/services/ad_group_feed_service_client_config.py b/google/ads/google_ads/v4/services/ad_group_feed_service_client_config.py new file mode 100644 index 000000000..adcdfdbd1 --- /dev/null +++ b/google/ads/google_ads/v4/services/ad_group_feed_service_client_config.py @@ -0,0 +1,36 @@ +config = { + "interfaces": { + "google.ads.googleads.v4.services.AdGroupFeedService": { + "retry_codes": { + "idempotent": [ + "DEADLINE_EXCEEDED", + "UNAVAILABLE" + ], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 5000, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 3600000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 3600000, + "total_timeout_millis": 3600000 + } + }, + "methods": { + "GetAdGroupFeed": { + "timeout_millis": 60000, + "retry_codes_name": "idempotent", + "retry_params_name": "default" + }, + "MutateAdGroupFeeds": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + } + } + } + } +} diff --git a/google/ads/google_ads/v4/services/ad_group_label_service_client.py b/google/ads/google_ads/v4/services/ad_group_label_service_client.py new file mode 100644 index 000000000..70df2c2b0 --- /dev/null +++ b/google/ads/google_ads/v4/services/ad_group_label_service_client.py @@ -0,0 +1,298 @@ +# -*- coding: utf-8 -*- +# +# 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. + +"""Accesses the google.ads.googleads.v4.services AdGroupLabelService API.""" + +import pkg_resources +import warnings + +from google.oauth2 import service_account +import google.api_core.gapic_v1.client_info +import google.api_core.gapic_v1.config +import google.api_core.gapic_v1.method +import google.api_core.gapic_v1.routing_header +import google.api_core.grpc_helpers +import google.api_core.path_template + +from google.ads.google_ads.v4.services import ad_group_label_service_client_config +from google.ads.google_ads.v4.services.transports import ad_group_label_service_grpc_transport +from google.ads.google_ads.v4.proto.services import ad_group_label_service_pb2 + + + +_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( + 'google-ads', +).version + + +class AdGroupLabelServiceClient(object): + """Service to manage labels on ad groups.""" + + SERVICE_ADDRESS = 'googleads.googleapis.com:443' + """The default address of the service.""" + + # The name of the interface for this client. This is the key used to + # find the method configuration in the client_config dictionary. + _INTERFACE_NAME = 'google.ads.googleads.v4.services.AdGroupLabelService' + + + @classmethod + def from_service_account_file(cls, filename, *args, **kwargs): + """Creates an instance of this client using the provided credentials + file. + + Args: + filename (str): The path to the service account private key json + file. + args: Additional arguments to pass to the constructor. + kwargs: Additional arguments to pass to the constructor. + + Returns: + AdGroupLabelServiceClient: The constructed client. + """ + credentials = service_account.Credentials.from_service_account_file( + filename) + kwargs['credentials'] = credentials + return cls(*args, **kwargs) + + from_service_account_json = from_service_account_file + + + @classmethod + def ad_group_label_path(cls, customer, ad_group_label): + """Return a fully-qualified ad_group_label string.""" + return google.api_core.path_template.expand( + 'customers/{customer}/adGroupLabels/{ad_group_label}', + customer=customer, + ad_group_label=ad_group_label, + ) + + def __init__(self, transport=None, channel=None, credentials=None, + client_config=None, client_info=None): + """Constructor. + + Args: + transport (Union[~.AdGroupLabelServiceGrpcTransport, + Callable[[~.Credentials, type], ~.AdGroupLabelServiceGrpcTransport]): A transport + instance, responsible for actually making the API calls. + The default transport uses the gRPC protocol. + This argument may also be a callable which returns a + transport instance. Callables will be sent the credentials + as the first argument and the default transport class as + the second argument. + channel (grpc.Channel): DEPRECATED. A ``Channel`` instance + through which to make calls. This argument is mutually exclusive + with ``credentials``; providing both will raise an exception. + credentials (google.auth.credentials.Credentials): The + authorization credentials to attach to requests. These + credentials identify this application to the service. If none + are specified, the client will attempt to ascertain the + credentials from the environment. + This argument is mutually exclusive with providing a + transport instance to ``transport``; doing so will raise + an exception. + client_config (dict): DEPRECATED. A dictionary of call options for + each method. If not specified, the default configuration is used. + client_info (google.api_core.gapic_v1.client_info.ClientInfo): + The client info used to send a user-agent string along with + API requests. If ``None``, then default info will be used. + Generally, you only need to set this if you're developing + your own client library. + """ + # Raise deprecation warnings for things we want to go away. + if client_config is not None: + warnings.warn('The `client_config` argument is deprecated.', + PendingDeprecationWarning, stacklevel=2) + else: + client_config = ad_group_label_service_client_config.config + + if channel: + warnings.warn('The `channel` argument is deprecated; use ' + '`transport` instead.', + PendingDeprecationWarning, stacklevel=2) + + # Instantiate the transport. + # The transport is responsible for handling serialization and + # deserialization and actually sending data to the service. + if transport: + if callable(transport): + self.transport = transport( + credentials=credentials, + default_class=ad_group_label_service_grpc_transport.AdGroupLabelServiceGrpcTransport, + ) + else: + if credentials: + raise ValueError( + 'Received both a transport instance and ' + 'credentials; these are mutually exclusive.' + ) + self.transport = transport + else: + self.transport = ad_group_label_service_grpc_transport.AdGroupLabelServiceGrpcTransport( + address=self.SERVICE_ADDRESS, + channel=channel, + credentials=credentials, + ) + + if client_info is None: + client_info = google.api_core.gapic_v1.client_info.ClientInfo( + gapic_version=_GAPIC_LIBRARY_VERSION, + ) + else: + client_info.gapic_version = _GAPIC_LIBRARY_VERSION + self._client_info = client_info + + # Parse out the default settings for retry and timeout for each RPC + # from the client configuration. + # (Ordinarily, these are the defaults specified in the `*_config.py` + # file next to this one.) + self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( + client_config['interfaces'][self._INTERFACE_NAME], + ) + + # Save a dictionary of cached API call functions. + # These are the actual callables which invoke the proper + # transport methods, wrapped with `wrap_method` to add retry, + # timeout, and the like. + self._inner_api_calls = {} + + # Service calls + def get_ad_group_label( + self, + resource_name, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None): + """ + Returns the requested ad group label in full detail. + + Args: + resource_name (str): Required. The resource name of the ad group label to fetch. + retry (Optional[google.api_core.retry.Retry]): A retry object used + to retry requests. If ``None`` is specified, requests will not + be retried. + timeout (Optional[float]): The amount of time, in seconds, to wait + for the request to complete. Note that if ``retry`` is + specified, the timeout applies to each individual attempt. + metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata + that is provided to the method. + + Returns: + A :class:`~google.ads.googleads_v4.types.AdGroupLabel` instance. + + Raises: + google.api_core.exceptions.GoogleAPICallError: If the request + failed for any reason. + google.api_core.exceptions.RetryError: If the request failed due + to a retryable error and retry attempts failed. + ValueError: If the parameters are invalid. + """ + # Wrap the transport method to add retry and timeout logic. + if 'get_ad_group_label' not in self._inner_api_calls: + self._inner_api_calls['get_ad_group_label'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.get_ad_group_label, + default_retry=self._method_configs['GetAdGroupLabel'].retry, + default_timeout=self._method_configs['GetAdGroupLabel'].timeout, + client_info=self._client_info, + ) + + request = ad_group_label_service_pb2.GetAdGroupLabelRequest( + resource_name=resource_name, + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [('resource_name', resource_name)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata(routing_header) + metadata.append(routing_metadata) + + return self._inner_api_calls['get_ad_group_label'](request, retry=retry, timeout=timeout, metadata=metadata) + + def mutate_ad_group_labels( + self, + customer_id, + operations, + partial_failure=None, + validate_only=None, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None): + """ + Creates and removes ad group labels. + Operation statuses are returned. + + Args: + customer_id (str): Required. ID of the customer whose ad group labels are being modified. + operations (list[Union[dict, ~google.ads.googleads_v4.types.AdGroupLabelOperation]]): Required. The list of operations to perform on ad group labels. + + If a dict is provided, it must be of the same form as the protobuf + message :class:`~google.ads.googleads_v4.types.AdGroupLabelOperation` + partial_failure (bool): If true, successful operations will be carried out and invalid + operations will return errors. If false, all operations will be carried + out in one transaction if and only if they are all valid. + Default is false. + validate_only (bool): If true, the request is validated but not executed. Only errors are + returned, not results. + retry (Optional[google.api_core.retry.Retry]): A retry object used + to retry requests. If ``None`` is specified, requests will not + be retried. + timeout (Optional[float]): The amount of time, in seconds, to wait + for the request to complete. Note that if ``retry`` is + specified, the timeout applies to each individual attempt. + metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata + that is provided to the method. + + Returns: + A :class:`~google.ads.googleads_v4.types.MutateAdGroupLabelsResponse` instance. + + Raises: + google.api_core.exceptions.GoogleAPICallError: If the request + failed for any reason. + google.api_core.exceptions.RetryError: If the request failed due + to a retryable error and retry attempts failed. + ValueError: If the parameters are invalid. + """ + # Wrap the transport method to add retry and timeout logic. + if 'mutate_ad_group_labels' not in self._inner_api_calls: + self._inner_api_calls['mutate_ad_group_labels'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.mutate_ad_group_labels, + default_retry=self._method_configs['MutateAdGroupLabels'].retry, + default_timeout=self._method_configs['MutateAdGroupLabels'].timeout, + client_info=self._client_info, + ) + + request = ad_group_label_service_pb2.MutateAdGroupLabelsRequest( + customer_id=customer_id, + operations=operations, + partial_failure=partial_failure, + validate_only=validate_only, + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [('customer_id', customer_id)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata(routing_header) + metadata.append(routing_metadata) + + return self._inner_api_calls['mutate_ad_group_labels'](request, retry=retry, timeout=timeout, metadata=metadata) diff --git a/google/ads/google_ads/v4/services/ad_group_label_service_client_config.py b/google/ads/google_ads/v4/services/ad_group_label_service_client_config.py new file mode 100644 index 000000000..c43408826 --- /dev/null +++ b/google/ads/google_ads/v4/services/ad_group_label_service_client_config.py @@ -0,0 +1,36 @@ +config = { + "interfaces": { + "google.ads.googleads.v4.services.AdGroupLabelService": { + "retry_codes": { + "idempotent": [ + "DEADLINE_EXCEEDED", + "UNAVAILABLE" + ], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 5000, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 3600000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 3600000, + "total_timeout_millis": 3600000 + } + }, + "methods": { + "GetAdGroupLabel": { + "timeout_millis": 60000, + "retry_codes_name": "idempotent", + "retry_params_name": "default" + }, + "MutateAdGroupLabels": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + } + } + } + } +} diff --git a/google/ads/google_ads/v4/services/ad_group_service_client.py b/google/ads/google_ads/v4/services/ad_group_service_client.py new file mode 100644 index 000000000..9c63c660b --- /dev/null +++ b/google/ads/google_ads/v4/services/ad_group_service_client.py @@ -0,0 +1,297 @@ +# -*- coding: utf-8 -*- +# +# 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. + +"""Accesses the google.ads.googleads.v4.services AdGroupService API.""" + +import pkg_resources +import warnings + +from google.oauth2 import service_account +import google.api_core.gapic_v1.client_info +import google.api_core.gapic_v1.config +import google.api_core.gapic_v1.method +import google.api_core.gapic_v1.routing_header +import google.api_core.grpc_helpers +import google.api_core.path_template + +from google.ads.google_ads.v4.services import ad_group_service_client_config +from google.ads.google_ads.v4.services.transports import ad_group_service_grpc_transport +from google.ads.google_ads.v4.proto.services import ad_group_service_pb2 + + + +_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( + 'google-ads', +).version + + +class AdGroupServiceClient(object): + """Service to manage ad groups.""" + + SERVICE_ADDRESS = 'googleads.googleapis.com:443' + """The default address of the service.""" + + # The name of the interface for this client. This is the key used to + # find the method configuration in the client_config dictionary. + _INTERFACE_NAME = 'google.ads.googleads.v4.services.AdGroupService' + + + @classmethod + def from_service_account_file(cls, filename, *args, **kwargs): + """Creates an instance of this client using the provided credentials + file. + + Args: + filename (str): The path to the service account private key json + file. + args: Additional arguments to pass to the constructor. + kwargs: Additional arguments to pass to the constructor. + + Returns: + AdGroupServiceClient: The constructed client. + """ + credentials = service_account.Credentials.from_service_account_file( + filename) + kwargs['credentials'] = credentials + return cls(*args, **kwargs) + + from_service_account_json = from_service_account_file + + + @classmethod + def ad_group_path(cls, customer, ad_group): + """Return a fully-qualified ad_group string.""" + return google.api_core.path_template.expand( + 'customers/{customer}/adGroups/{ad_group}', + customer=customer, + ad_group=ad_group, + ) + + def __init__(self, transport=None, channel=None, credentials=None, + client_config=None, client_info=None): + """Constructor. + + Args: + transport (Union[~.AdGroupServiceGrpcTransport, + Callable[[~.Credentials, type], ~.AdGroupServiceGrpcTransport]): A transport + instance, responsible for actually making the API calls. + The default transport uses the gRPC protocol. + This argument may also be a callable which returns a + transport instance. Callables will be sent the credentials + as the first argument and the default transport class as + the second argument. + channel (grpc.Channel): DEPRECATED. A ``Channel`` instance + through which to make calls. This argument is mutually exclusive + with ``credentials``; providing both will raise an exception. + credentials (google.auth.credentials.Credentials): The + authorization credentials to attach to requests. These + credentials identify this application to the service. If none + are specified, the client will attempt to ascertain the + credentials from the environment. + This argument is mutually exclusive with providing a + transport instance to ``transport``; doing so will raise + an exception. + client_config (dict): DEPRECATED. A dictionary of call options for + each method. If not specified, the default configuration is used. + client_info (google.api_core.gapic_v1.client_info.ClientInfo): + The client info used to send a user-agent string along with + API requests. If ``None``, then default info will be used. + Generally, you only need to set this if you're developing + your own client library. + """ + # Raise deprecation warnings for things we want to go away. + if client_config is not None: + warnings.warn('The `client_config` argument is deprecated.', + PendingDeprecationWarning, stacklevel=2) + else: + client_config = ad_group_service_client_config.config + + if channel: + warnings.warn('The `channel` argument is deprecated; use ' + '`transport` instead.', + PendingDeprecationWarning, stacklevel=2) + + # Instantiate the transport. + # The transport is responsible for handling serialization and + # deserialization and actually sending data to the service. + if transport: + if callable(transport): + self.transport = transport( + credentials=credentials, + default_class=ad_group_service_grpc_transport.AdGroupServiceGrpcTransport, + ) + else: + if credentials: + raise ValueError( + 'Received both a transport instance and ' + 'credentials; these are mutually exclusive.' + ) + self.transport = transport + else: + self.transport = ad_group_service_grpc_transport.AdGroupServiceGrpcTransport( + address=self.SERVICE_ADDRESS, + channel=channel, + credentials=credentials, + ) + + if client_info is None: + client_info = google.api_core.gapic_v1.client_info.ClientInfo( + gapic_version=_GAPIC_LIBRARY_VERSION, + ) + else: + client_info.gapic_version = _GAPIC_LIBRARY_VERSION + self._client_info = client_info + + # Parse out the default settings for retry and timeout for each RPC + # from the client configuration. + # (Ordinarily, these are the defaults specified in the `*_config.py` + # file next to this one.) + self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( + client_config['interfaces'][self._INTERFACE_NAME], + ) + + # Save a dictionary of cached API call functions. + # These are the actual callables which invoke the proper + # transport methods, wrapped with `wrap_method` to add retry, + # timeout, and the like. + self._inner_api_calls = {} + + # Service calls + def get_ad_group( + self, + resource_name, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None): + """ + Returns the requested ad group in full detail. + + Args: + resource_name (str): Required. The resource name of the ad group to fetch. + retry (Optional[google.api_core.retry.Retry]): A retry object used + to retry requests. If ``None`` is specified, requests will not + be retried. + timeout (Optional[float]): The amount of time, in seconds, to wait + for the request to complete. Note that if ``retry`` is + specified, the timeout applies to each individual attempt. + metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata + that is provided to the method. + + Returns: + A :class:`~google.ads.googleads_v4.types.AdGroup` instance. + + Raises: + google.api_core.exceptions.GoogleAPICallError: If the request + failed for any reason. + google.api_core.exceptions.RetryError: If the request failed due + to a retryable error and retry attempts failed. + ValueError: If the parameters are invalid. + """ + # Wrap the transport method to add retry and timeout logic. + if 'get_ad_group' not in self._inner_api_calls: + self._inner_api_calls['get_ad_group'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.get_ad_group, + default_retry=self._method_configs['GetAdGroup'].retry, + default_timeout=self._method_configs['GetAdGroup'].timeout, + client_info=self._client_info, + ) + + request = ad_group_service_pb2.GetAdGroupRequest( + resource_name=resource_name, + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [('resource_name', resource_name)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata(routing_header) + metadata.append(routing_metadata) + + return self._inner_api_calls['get_ad_group'](request, retry=retry, timeout=timeout, metadata=metadata) + + def mutate_ad_groups( + self, + customer_id, + operations, + partial_failure=None, + validate_only=None, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None): + """ + Creates, updates, or removes ad groups. Operation statuses are returned. + + Args: + customer_id (str): Required. The ID of the customer whose ad groups are being modified. + operations (list[Union[dict, ~google.ads.googleads_v4.types.AdGroupOperation]]): Required. The list of operations to perform on individual ad groups. + + If a dict is provided, it must be of the same form as the protobuf + message :class:`~google.ads.googleads_v4.types.AdGroupOperation` + partial_failure (bool): If true, successful operations will be carried out and invalid + operations will return errors. If false, all operations will be carried + out in one transaction if and only if they are all valid. + Default is false. + validate_only (bool): If true, the request is validated but not executed. Only errors are + returned, not results. + retry (Optional[google.api_core.retry.Retry]): A retry object used + to retry requests. If ``None`` is specified, requests will not + be retried. + timeout (Optional[float]): The amount of time, in seconds, to wait + for the request to complete. Note that if ``retry`` is + specified, the timeout applies to each individual attempt. + metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata + that is provided to the method. + + Returns: + A :class:`~google.ads.googleads_v4.types.MutateAdGroupsResponse` instance. + + Raises: + google.api_core.exceptions.GoogleAPICallError: If the request + failed for any reason. + google.api_core.exceptions.RetryError: If the request failed due + to a retryable error and retry attempts failed. + ValueError: If the parameters are invalid. + """ + # Wrap the transport method to add retry and timeout logic. + if 'mutate_ad_groups' not in self._inner_api_calls: + self._inner_api_calls['mutate_ad_groups'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.mutate_ad_groups, + default_retry=self._method_configs['MutateAdGroups'].retry, + default_timeout=self._method_configs['MutateAdGroups'].timeout, + client_info=self._client_info, + ) + + request = ad_group_service_pb2.MutateAdGroupsRequest( + customer_id=customer_id, + operations=operations, + partial_failure=partial_failure, + validate_only=validate_only, + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [('customer_id', customer_id)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata(routing_header) + metadata.append(routing_metadata) + + return self._inner_api_calls['mutate_ad_groups'](request, retry=retry, timeout=timeout, metadata=metadata) diff --git a/google/ads/google_ads/v4/services/ad_group_service_client_config.py b/google/ads/google_ads/v4/services/ad_group_service_client_config.py new file mode 100644 index 000000000..1931ef3df --- /dev/null +++ b/google/ads/google_ads/v4/services/ad_group_service_client_config.py @@ -0,0 +1,36 @@ +config = { + "interfaces": { + "google.ads.googleads.v4.services.AdGroupService": { + "retry_codes": { + "idempotent": [ + "DEADLINE_EXCEEDED", + "UNAVAILABLE" + ], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 5000, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 3600000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 3600000, + "total_timeout_millis": 3600000 + } + }, + "methods": { + "GetAdGroup": { + "timeout_millis": 60000, + "retry_codes_name": "idempotent", + "retry_params_name": "default" + }, + "MutateAdGroups": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + } + } + } + } +} diff --git a/google/ads/google_ads/v1/services/ad_group_simulation_service_client.py b/google/ads/google_ads/v4/services/ad_group_simulation_service_client.py similarity index 78% rename from google/ads/google_ads/v1/services/ad_group_simulation_service_client.py rename to google/ads/google_ads/v4/services/ad_group_simulation_service_client.py index 6730ac6ec..21f35f5f1 100644 --- a/google/ads/google_ads/v1/services/ad_group_simulation_service_client.py +++ b/google/ads/google_ads/v4/services/ad_group_simulation_service_client.py @@ -13,7 +13,8 @@ # 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. -"""Accesses the google.ads.googleads.v1.services AdGroupSimulationService API.""" + +"""Accesses the google.ads.googleads.v4.services AdGroupSimulationService API.""" import pkg_resources import warnings @@ -22,15 +23,19 @@ import google.api_core.gapic_v1.client_info import google.api_core.gapic_v1.config import google.api_core.gapic_v1.method +import google.api_core.gapic_v1.routing_header import google.api_core.grpc_helpers import google.api_core.path_template -from google.ads.google_ads.v1.services import ad_group_simulation_service_client_config -from google.ads.google_ads.v1.services.transports import ad_group_simulation_service_grpc_transport -from google.ads.google_ads.v1.proto.services import ad_group_simulation_service_pb2 +from google.ads.google_ads.v4.services import ad_group_simulation_service_client_config +from google.ads.google_ads.v4.services.transports import ad_group_simulation_service_grpc_transport +from google.ads.google_ads.v4.proto.services import ad_group_simulation_service_pb2 + + _GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( - 'google-ads', ).version + 'google-ads', +).version class AdGroupSimulationServiceClient(object): @@ -41,7 +46,8 @@ class AdGroupSimulationServiceClient(object): # The name of the interface for this client. This is the key used to # find the method configuration in the client_config dictionary. - _INTERFACE_NAME = 'google.ads.googleads.v1.services.AdGroupSimulationService' + _INTERFACE_NAME = 'google.ads.googleads.v4.services.AdGroupSimulationService' + @classmethod def from_service_account_file(cls, filename, *args, **kwargs): @@ -64,6 +70,7 @@ def from_service_account_file(cls, filename, *args, **kwargs): from_service_account_json = from_service_account_file + @classmethod def ad_group_simulation_path(cls, customer, ad_group_simulation): """Return a fully-qualified ad_group_simulation string.""" @@ -73,12 +80,8 @@ def ad_group_simulation_path(cls, customer, ad_group_simulation): ad_group_simulation=ad_group_simulation, ) - def __init__(self, - transport=None, - channel=None, - credentials=None, - client_config=None, - client_info=None): + def __init__(self, transport=None, channel=None, credentials=None, + client_config=None, client_info=None): """Constructor. Args: @@ -111,19 +114,15 @@ def __init__(self, """ # Raise deprecation warnings for things we want to go away. if client_config is not None: - warnings.warn( - 'The `client_config` argument is deprecated.', - PendingDeprecationWarning, - stacklevel=2) + warnings.warn('The `client_config` argument is deprecated.', + PendingDeprecationWarning, stacklevel=2) else: client_config = ad_group_simulation_service_client_config.config if channel: - warnings.warn( - 'The `channel` argument is deprecated; use ' - '`transport` instead.', - PendingDeprecationWarning, - stacklevel=2) + warnings.warn('The `channel` argument is deprecated; use ' + '`transport` instead.', + PendingDeprecationWarning, stacklevel=2) # Instantiate the transport. # The transport is responsible for handling serialization and @@ -132,14 +131,14 @@ def __init__(self, if callable(transport): self.transport = transport( credentials=credentials, - default_class=ad_group_simulation_service_grpc_transport. - AdGroupSimulationServiceGrpcTransport, + default_class=ad_group_simulation_service_grpc_transport.AdGroupSimulationServiceGrpcTransport, ) else: if credentials: raise ValueError( 'Received both a transport instance and ' - 'credentials; these are mutually exclusive.') + 'credentials; these are mutually exclusive.' + ) self.transport = transport else: self.transport = ad_group_simulation_service_grpc_transport.AdGroupSimulationServiceGrpcTransport( @@ -150,7 +149,8 @@ def __init__(self, if client_info is None: client_info = google.api_core.gapic_v1.client_info.ClientInfo( - gapic_version=_GAPIC_LIBRARY_VERSION, ) + gapic_version=_GAPIC_LIBRARY_VERSION, + ) else: client_info.gapic_version = _GAPIC_LIBRARY_VERSION self._client_info = client_info @@ -160,7 +160,8 @@ def __init__(self, # (Ordinarily, these are the defaults specified in the `*_config.py` # file next to this one.) self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( - client_config['interfaces'][self._INTERFACE_NAME], ) + client_config['interfaces'][self._INTERFACE_NAME], + ) # Save a dictionary of cached API call functions. # These are the actual callables which invoke the proper @@ -179,7 +180,7 @@ def get_ad_group_simulation( Returns the requested ad group simulation in full detail. Args: - resource_name (str): The resource name of the ad group simulation to fetch. + resource_name (str): Required. The resource name of the ad group simulation to fetch. retry (Optional[google.api_core.retry.Retry]): A retry object used to retry requests. If ``None`` is specified, requests will not be retried. @@ -190,7 +191,7 @@ def get_ad_group_simulation( that is provided to the method. Returns: - A :class:`~google.ads.googleads_v1.types.AdGroupSimulation` instance. + A :class:`~google.ads.googleads_v4.types.AdGroupSimulation` instance. Raises: google.api_core.exceptions.GoogleAPICallError: If the request @@ -201,17 +202,25 @@ def get_ad_group_simulation( """ # Wrap the transport method to add retry and timeout logic. if 'get_ad_group_simulation' not in self._inner_api_calls: - self._inner_api_calls[ - 'get_ad_group_simulation'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.get_ad_group_simulation, - default_retry=self._method_configs['GetAdGroupSimulation']. - retry, - default_timeout=self. - _method_configs['GetAdGroupSimulation'].timeout, - client_info=self._client_info, - ) + self._inner_api_calls['get_ad_group_simulation'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.get_ad_group_simulation, + default_retry=self._method_configs['GetAdGroupSimulation'].retry, + default_timeout=self._method_configs['GetAdGroupSimulation'].timeout, + client_info=self._client_info, + ) request = ad_group_simulation_service_pb2.GetAdGroupSimulationRequest( - resource_name=resource_name, ) - return self._inner_api_calls['get_ad_group_simulation']( - request, retry=retry, timeout=timeout, metadata=metadata) + resource_name=resource_name, + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [('resource_name', resource_name)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata(routing_header) + metadata.append(routing_metadata) + + return self._inner_api_calls['get_ad_group_simulation'](request, retry=retry, timeout=timeout, metadata=metadata) diff --git a/google/ads/google_ads/v4/services/ad_group_simulation_service_client_config.py b/google/ads/google_ads/v4/services/ad_group_simulation_service_client_config.py new file mode 100644 index 000000000..3e8f9e773 --- /dev/null +++ b/google/ads/google_ads/v4/services/ad_group_simulation_service_client_config.py @@ -0,0 +1,31 @@ +config = { + "interfaces": { + "google.ads.googleads.v4.services.AdGroupSimulationService": { + "retry_codes": { + "idempotent": [ + "DEADLINE_EXCEEDED", + "UNAVAILABLE" + ], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 5000, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 3600000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 3600000, + "total_timeout_millis": 3600000 + } + }, + "methods": { + "GetAdGroupSimulation": { + "timeout_millis": 60000, + "retry_codes_name": "idempotent", + "retry_params_name": "default" + } + } + } + } +} diff --git a/google/ads/google_ads/v4/services/ad_parameter_service_client.py b/google/ads/google_ads/v4/services/ad_parameter_service_client.py new file mode 100644 index 000000000..4bd8fba09 --- /dev/null +++ b/google/ads/google_ads/v4/services/ad_parameter_service_client.py @@ -0,0 +1,298 @@ +# -*- coding: utf-8 -*- +# +# 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. + +"""Accesses the google.ads.googleads.v4.services AdParameterService API.""" + +import pkg_resources +import warnings + +from google.oauth2 import service_account +import google.api_core.gapic_v1.client_info +import google.api_core.gapic_v1.config +import google.api_core.gapic_v1.method +import google.api_core.gapic_v1.routing_header +import google.api_core.grpc_helpers +import google.api_core.path_template + +from google.ads.google_ads.v4.services import ad_parameter_service_client_config +from google.ads.google_ads.v4.services.transports import ad_parameter_service_grpc_transport +from google.ads.google_ads.v4.proto.services import ad_parameter_service_pb2 + + + +_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( + 'google-ads', +).version + + +class AdParameterServiceClient(object): + """Service to manage ad parameters.""" + + SERVICE_ADDRESS = 'googleads.googleapis.com:443' + """The default address of the service.""" + + # The name of the interface for this client. This is the key used to + # find the method configuration in the client_config dictionary. + _INTERFACE_NAME = 'google.ads.googleads.v4.services.AdParameterService' + + + @classmethod + def from_service_account_file(cls, filename, *args, **kwargs): + """Creates an instance of this client using the provided credentials + file. + + Args: + filename (str): The path to the service account private key json + file. + args: Additional arguments to pass to the constructor. + kwargs: Additional arguments to pass to the constructor. + + Returns: + AdParameterServiceClient: The constructed client. + """ + credentials = service_account.Credentials.from_service_account_file( + filename) + kwargs['credentials'] = credentials + return cls(*args, **kwargs) + + from_service_account_json = from_service_account_file + + + @classmethod + def ad_parameter_path(cls, customer, ad_parameter): + """Return a fully-qualified ad_parameter string.""" + return google.api_core.path_template.expand( + 'customers/{customer}/adParameters/{ad_parameter}', + customer=customer, + ad_parameter=ad_parameter, + ) + + def __init__(self, transport=None, channel=None, credentials=None, + client_config=None, client_info=None): + """Constructor. + + Args: + transport (Union[~.AdParameterServiceGrpcTransport, + Callable[[~.Credentials, type], ~.AdParameterServiceGrpcTransport]): A transport + instance, responsible for actually making the API calls. + The default transport uses the gRPC protocol. + This argument may also be a callable which returns a + transport instance. Callables will be sent the credentials + as the first argument and the default transport class as + the second argument. + channel (grpc.Channel): DEPRECATED. A ``Channel`` instance + through which to make calls. This argument is mutually exclusive + with ``credentials``; providing both will raise an exception. + credentials (google.auth.credentials.Credentials): The + authorization credentials to attach to requests. These + credentials identify this application to the service. If none + are specified, the client will attempt to ascertain the + credentials from the environment. + This argument is mutually exclusive with providing a + transport instance to ``transport``; doing so will raise + an exception. + client_config (dict): DEPRECATED. A dictionary of call options for + each method. If not specified, the default configuration is used. + client_info (google.api_core.gapic_v1.client_info.ClientInfo): + The client info used to send a user-agent string along with + API requests. If ``None``, then default info will be used. + Generally, you only need to set this if you're developing + your own client library. + """ + # Raise deprecation warnings for things we want to go away. + if client_config is not None: + warnings.warn('The `client_config` argument is deprecated.', + PendingDeprecationWarning, stacklevel=2) + else: + client_config = ad_parameter_service_client_config.config + + if channel: + warnings.warn('The `channel` argument is deprecated; use ' + '`transport` instead.', + PendingDeprecationWarning, stacklevel=2) + + # Instantiate the transport. + # The transport is responsible for handling serialization and + # deserialization and actually sending data to the service. + if transport: + if callable(transport): + self.transport = transport( + credentials=credentials, + default_class=ad_parameter_service_grpc_transport.AdParameterServiceGrpcTransport, + ) + else: + if credentials: + raise ValueError( + 'Received both a transport instance and ' + 'credentials; these are mutually exclusive.' + ) + self.transport = transport + else: + self.transport = ad_parameter_service_grpc_transport.AdParameterServiceGrpcTransport( + address=self.SERVICE_ADDRESS, + channel=channel, + credentials=credentials, + ) + + if client_info is None: + client_info = google.api_core.gapic_v1.client_info.ClientInfo( + gapic_version=_GAPIC_LIBRARY_VERSION, + ) + else: + client_info.gapic_version = _GAPIC_LIBRARY_VERSION + self._client_info = client_info + + # Parse out the default settings for retry and timeout for each RPC + # from the client configuration. + # (Ordinarily, these are the defaults specified in the `*_config.py` + # file next to this one.) + self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( + client_config['interfaces'][self._INTERFACE_NAME], + ) + + # Save a dictionary of cached API call functions. + # These are the actual callables which invoke the proper + # transport methods, wrapped with `wrap_method` to add retry, + # timeout, and the like. + self._inner_api_calls = {} + + # Service calls + def get_ad_parameter( + self, + resource_name, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None): + """ + Returns the requested ad parameter in full detail. + + Args: + resource_name (str): Required. The resource name of the ad parameter to fetch. + retry (Optional[google.api_core.retry.Retry]): A retry object used + to retry requests. If ``None`` is specified, requests will not + be retried. + timeout (Optional[float]): The amount of time, in seconds, to wait + for the request to complete. Note that if ``retry`` is + specified, the timeout applies to each individual attempt. + metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata + that is provided to the method. + + Returns: + A :class:`~google.ads.googleads_v4.types.AdParameter` instance. + + Raises: + google.api_core.exceptions.GoogleAPICallError: If the request + failed for any reason. + google.api_core.exceptions.RetryError: If the request failed due + to a retryable error and retry attempts failed. + ValueError: If the parameters are invalid. + """ + # Wrap the transport method to add retry and timeout logic. + if 'get_ad_parameter' not in self._inner_api_calls: + self._inner_api_calls['get_ad_parameter'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.get_ad_parameter, + default_retry=self._method_configs['GetAdParameter'].retry, + default_timeout=self._method_configs['GetAdParameter'].timeout, + client_info=self._client_info, + ) + + request = ad_parameter_service_pb2.GetAdParameterRequest( + resource_name=resource_name, + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [('resource_name', resource_name)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata(routing_header) + metadata.append(routing_metadata) + + return self._inner_api_calls['get_ad_parameter'](request, retry=retry, timeout=timeout, metadata=metadata) + + def mutate_ad_parameters( + self, + customer_id, + operations, + partial_failure=None, + validate_only=None, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None): + """ + Creates, updates, or removes ad parameters. Operation statuses are + returned. + + Args: + customer_id (str): Required. The ID of the customer whose ad parameters are being modified. + operations (list[Union[dict, ~google.ads.googleads_v4.types.AdParameterOperation]]): Required. The list of operations to perform on individual ad parameters. + + If a dict is provided, it must be of the same form as the protobuf + message :class:`~google.ads.googleads_v4.types.AdParameterOperation` + partial_failure (bool): If true, successful operations will be carried out and invalid + operations will return errors. If false, all operations will be carried + out in one transaction if and only if they are all valid. + Default is false. + validate_only (bool): If true, the request is validated but not executed. Only errors are + returned, not results. + retry (Optional[google.api_core.retry.Retry]): A retry object used + to retry requests. If ``None`` is specified, requests will not + be retried. + timeout (Optional[float]): The amount of time, in seconds, to wait + for the request to complete. Note that if ``retry`` is + specified, the timeout applies to each individual attempt. + metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata + that is provided to the method. + + Returns: + A :class:`~google.ads.googleads_v4.types.MutateAdParametersResponse` instance. + + Raises: + google.api_core.exceptions.GoogleAPICallError: If the request + failed for any reason. + google.api_core.exceptions.RetryError: If the request failed due + to a retryable error and retry attempts failed. + ValueError: If the parameters are invalid. + """ + # Wrap the transport method to add retry and timeout logic. + if 'mutate_ad_parameters' not in self._inner_api_calls: + self._inner_api_calls['mutate_ad_parameters'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.mutate_ad_parameters, + default_retry=self._method_configs['MutateAdParameters'].retry, + default_timeout=self._method_configs['MutateAdParameters'].timeout, + client_info=self._client_info, + ) + + request = ad_parameter_service_pb2.MutateAdParametersRequest( + customer_id=customer_id, + operations=operations, + partial_failure=partial_failure, + validate_only=validate_only, + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [('customer_id', customer_id)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata(routing_header) + metadata.append(routing_metadata) + + return self._inner_api_calls['mutate_ad_parameters'](request, retry=retry, timeout=timeout, metadata=metadata) diff --git a/google/ads/google_ads/v4/services/ad_parameter_service_client_config.py b/google/ads/google_ads/v4/services/ad_parameter_service_client_config.py new file mode 100644 index 000000000..8c3a2f8dc --- /dev/null +++ b/google/ads/google_ads/v4/services/ad_parameter_service_client_config.py @@ -0,0 +1,36 @@ +config = { + "interfaces": { + "google.ads.googleads.v4.services.AdParameterService": { + "retry_codes": { + "idempotent": [ + "DEADLINE_EXCEEDED", + "UNAVAILABLE" + ], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 5000, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 3600000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 3600000, + "total_timeout_millis": 3600000 + } + }, + "methods": { + "GetAdParameter": { + "timeout_millis": 60000, + "retry_codes_name": "idempotent", + "retry_params_name": "default" + }, + "MutateAdParameters": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + } + } + } + } +} diff --git a/google/ads/google_ads/v1/services/ad_schedule_view_service_client.py b/google/ads/google_ads/v4/services/ad_schedule_view_service_client.py similarity index 75% rename from google/ads/google_ads/v1/services/ad_schedule_view_service_client.py rename to google/ads/google_ads/v4/services/ad_schedule_view_service_client.py index a38cc917e..a4e626beb 100644 --- a/google/ads/google_ads/v1/services/ad_schedule_view_service_client.py +++ b/google/ads/google_ads/v4/services/ad_schedule_view_service_client.py @@ -13,7 +13,8 @@ # 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. -"""Accesses the google.ads.googleads.v1.services AdScheduleViewService API.""" + +"""Accesses the google.ads.googleads.v4.services AdScheduleViewService API.""" import pkg_resources import warnings @@ -22,15 +23,19 @@ import google.api_core.gapic_v1.client_info import google.api_core.gapic_v1.config import google.api_core.gapic_v1.method +import google.api_core.gapic_v1.routing_header import google.api_core.grpc_helpers import google.api_core.path_template -from google.ads.google_ads.v1.services import ad_schedule_view_service_client_config -from google.ads.google_ads.v1.services.transports import ad_schedule_view_service_grpc_transport -from google.ads.google_ads.v1.proto.services import ad_schedule_view_service_pb2 +from google.ads.google_ads.v4.services import ad_schedule_view_service_client_config +from google.ads.google_ads.v4.services.transports import ad_schedule_view_service_grpc_transport +from google.ads.google_ads.v4.proto.services import ad_schedule_view_service_pb2 + + _GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( - 'google-ads', ).version + 'google-ads', +).version class AdScheduleViewServiceClient(object): @@ -41,7 +46,8 @@ class AdScheduleViewServiceClient(object): # The name of the interface for this client. This is the key used to # find the method configuration in the client_config dictionary. - _INTERFACE_NAME = 'google.ads.googleads.v1.services.AdScheduleViewService' + _INTERFACE_NAME = 'google.ads.googleads.v4.services.AdScheduleViewService' + @classmethod def from_service_account_file(cls, filename, *args, **kwargs): @@ -64,6 +70,7 @@ def from_service_account_file(cls, filename, *args, **kwargs): from_service_account_json = from_service_account_file + @classmethod def ad_schedule_view_path(cls, customer, ad_schedule_view): """Return a fully-qualified ad_schedule_view string.""" @@ -73,12 +80,8 @@ def ad_schedule_view_path(cls, customer, ad_schedule_view): ad_schedule_view=ad_schedule_view, ) - def __init__(self, - transport=None, - channel=None, - credentials=None, - client_config=None, - client_info=None): + def __init__(self, transport=None, channel=None, credentials=None, + client_config=None, client_info=None): """Constructor. Args: @@ -111,19 +114,15 @@ def __init__(self, """ # Raise deprecation warnings for things we want to go away. if client_config is not None: - warnings.warn( - 'The `client_config` argument is deprecated.', - PendingDeprecationWarning, - stacklevel=2) + warnings.warn('The `client_config` argument is deprecated.', + PendingDeprecationWarning, stacklevel=2) else: client_config = ad_schedule_view_service_client_config.config if channel: - warnings.warn( - 'The `channel` argument is deprecated; use ' - '`transport` instead.', - PendingDeprecationWarning, - stacklevel=2) + warnings.warn('The `channel` argument is deprecated; use ' + '`transport` instead.', + PendingDeprecationWarning, stacklevel=2) # Instantiate the transport. # The transport is responsible for handling serialization and @@ -132,14 +131,14 @@ def __init__(self, if callable(transport): self.transport = transport( credentials=credentials, - default_class=ad_schedule_view_service_grpc_transport. - AdScheduleViewServiceGrpcTransport, + default_class=ad_schedule_view_service_grpc_transport.AdScheduleViewServiceGrpcTransport, ) else: if credentials: raise ValueError( 'Received both a transport instance and ' - 'credentials; these are mutually exclusive.') + 'credentials; these are mutually exclusive.' + ) self.transport = transport else: self.transport = ad_schedule_view_service_grpc_transport.AdScheduleViewServiceGrpcTransport( @@ -150,7 +149,8 @@ def __init__(self, if client_info is None: client_info = google.api_core.gapic_v1.client_info.ClientInfo( - gapic_version=_GAPIC_LIBRARY_VERSION, ) + gapic_version=_GAPIC_LIBRARY_VERSION, + ) else: client_info.gapic_version = _GAPIC_LIBRARY_VERSION self._client_info = client_info @@ -160,7 +160,8 @@ def __init__(self, # (Ordinarily, these are the defaults specified in the `*_config.py` # file next to this one.) self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( - client_config['interfaces'][self._INTERFACE_NAME], ) + client_config['interfaces'][self._INTERFACE_NAME], + ) # Save a dictionary of cached API call functions. # These are the actual callables which invoke the proper @@ -169,16 +170,17 @@ def __init__(self, self._inner_api_calls = {} # Service calls - def get_ad_schedule_view(self, - resource_name, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): + def get_ad_schedule_view( + self, + resource_name, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None): """ Returns the requested ad schedule view in full detail. Args: - resource_name (str): The resource name of the ad schedule view to fetch. + resource_name (str): Required. The resource name of the ad schedule view to fetch. retry (Optional[google.api_core.retry.Retry]): A retry object used to retry requests. If ``None`` is specified, requests will not be retried. @@ -189,7 +191,7 @@ def get_ad_schedule_view(self, that is provided to the method. Returns: - A :class:`~google.ads.googleads_v1.types.AdScheduleView` instance. + A :class:`~google.ads.googleads_v4.types.AdScheduleView` instance. Raises: google.api_core.exceptions.GoogleAPICallError: If the request @@ -200,17 +202,25 @@ def get_ad_schedule_view(self, """ # Wrap the transport method to add retry and timeout logic. if 'get_ad_schedule_view' not in self._inner_api_calls: - self._inner_api_calls[ - 'get_ad_schedule_view'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.get_ad_schedule_view, - default_retry=self._method_configs['GetAdScheduleView']. - retry, - default_timeout=self._method_configs['GetAdScheduleView']. - timeout, - client_info=self._client_info, - ) + self._inner_api_calls['get_ad_schedule_view'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.get_ad_schedule_view, + default_retry=self._method_configs['GetAdScheduleView'].retry, + default_timeout=self._method_configs['GetAdScheduleView'].timeout, + client_info=self._client_info, + ) request = ad_schedule_view_service_pb2.GetAdScheduleViewRequest( - resource_name=resource_name, ) - return self._inner_api_calls['get_ad_schedule_view']( - request, retry=retry, timeout=timeout, metadata=metadata) + resource_name=resource_name, + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [('resource_name', resource_name)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata(routing_header) + metadata.append(routing_metadata) + + return self._inner_api_calls['get_ad_schedule_view'](request, retry=retry, timeout=timeout, metadata=metadata) diff --git a/google/ads/google_ads/v4/services/ad_schedule_view_service_client_config.py b/google/ads/google_ads/v4/services/ad_schedule_view_service_client_config.py new file mode 100644 index 000000000..369506b7d --- /dev/null +++ b/google/ads/google_ads/v4/services/ad_schedule_view_service_client_config.py @@ -0,0 +1,31 @@ +config = { + "interfaces": { + "google.ads.googleads.v4.services.AdScheduleViewService": { + "retry_codes": { + "idempotent": [ + "DEADLINE_EXCEEDED", + "UNAVAILABLE" + ], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 5000, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 3600000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 3600000, + "total_timeout_millis": 3600000 + } + }, + "methods": { + "GetAdScheduleView": { + "timeout_millis": 60000, + "retry_codes_name": "idempotent", + "retry_params_name": "default" + } + } + } + } +} diff --git a/google/ads/google_ads/v4/services/ad_service_client.py b/google/ads/google_ads/v4/services/ad_service_client.py new file mode 100644 index 000000000..de6a259f2 --- /dev/null +++ b/google/ads/google_ads/v4/services/ad_service_client.py @@ -0,0 +1,288 @@ +# -*- coding: utf-8 -*- +# +# 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. + +"""Accesses the google.ads.googleads.v4.services AdService API.""" + +import pkg_resources +import warnings + +from google.oauth2 import service_account +import google.api_core.gapic_v1.client_info +import google.api_core.gapic_v1.config +import google.api_core.gapic_v1.method +import google.api_core.gapic_v1.routing_header +import google.api_core.grpc_helpers +import google.api_core.path_template + +from google.ads.google_ads.v4.services import ad_service_client_config +from google.ads.google_ads.v4.services.transports import ad_service_grpc_transport +from google.ads.google_ads.v4.proto.services import ad_service_pb2 + + + +_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( + 'google-ads', +).version + + +class AdServiceClient(object): + """Service to manage ads.""" + + SERVICE_ADDRESS = 'googleads.googleapis.com:443' + """The default address of the service.""" + + # The name of the interface for this client. This is the key used to + # find the method configuration in the client_config dictionary. + _INTERFACE_NAME = 'google.ads.googleads.v4.services.AdService' + + + @classmethod + def from_service_account_file(cls, filename, *args, **kwargs): + """Creates an instance of this client using the provided credentials + file. + + Args: + filename (str): The path to the service account private key json + file. + args: Additional arguments to pass to the constructor. + kwargs: Additional arguments to pass to the constructor. + + Returns: + AdServiceClient: The constructed client. + """ + credentials = service_account.Credentials.from_service_account_file( + filename) + kwargs['credentials'] = credentials + return cls(*args, **kwargs) + + from_service_account_json = from_service_account_file + + + @classmethod + def ad_path(cls, customer, ad): + """Return a fully-qualified ad string.""" + return google.api_core.path_template.expand( + 'customers/{customer}/ads/{ad}', + customer=customer, + ad=ad, + ) + + def __init__(self, transport=None, channel=None, credentials=None, + client_config=None, client_info=None): + """Constructor. + + Args: + transport (Union[~.AdServiceGrpcTransport, + Callable[[~.Credentials, type], ~.AdServiceGrpcTransport]): A transport + instance, responsible for actually making the API calls. + The default transport uses the gRPC protocol. + This argument may also be a callable which returns a + transport instance. Callables will be sent the credentials + as the first argument and the default transport class as + the second argument. + channel (grpc.Channel): DEPRECATED. A ``Channel`` instance + through which to make calls. This argument is mutually exclusive + with ``credentials``; providing both will raise an exception. + credentials (google.auth.credentials.Credentials): The + authorization credentials to attach to requests. These + credentials identify this application to the service. If none + are specified, the client will attempt to ascertain the + credentials from the environment. + This argument is mutually exclusive with providing a + transport instance to ``transport``; doing so will raise + an exception. + client_config (dict): DEPRECATED. A dictionary of call options for + each method. If not specified, the default configuration is used. + client_info (google.api_core.gapic_v1.client_info.ClientInfo): + The client info used to send a user-agent string along with + API requests. If ``None``, then default info will be used. + Generally, you only need to set this if you're developing + your own client library. + """ + # Raise deprecation warnings for things we want to go away. + if client_config is not None: + warnings.warn('The `client_config` argument is deprecated.', + PendingDeprecationWarning, stacklevel=2) + else: + client_config = ad_service_client_config.config + + if channel: + warnings.warn('The `channel` argument is deprecated; use ' + '`transport` instead.', + PendingDeprecationWarning, stacklevel=2) + + # Instantiate the transport. + # The transport is responsible for handling serialization and + # deserialization and actually sending data to the service. + if transport: + if callable(transport): + self.transport = transport( + credentials=credentials, + default_class=ad_service_grpc_transport.AdServiceGrpcTransport, + ) + else: + if credentials: + raise ValueError( + 'Received both a transport instance and ' + 'credentials; these are mutually exclusive.' + ) + self.transport = transport + else: + self.transport = ad_service_grpc_transport.AdServiceGrpcTransport( + address=self.SERVICE_ADDRESS, + channel=channel, + credentials=credentials, + ) + + if client_info is None: + client_info = google.api_core.gapic_v1.client_info.ClientInfo( + gapic_version=_GAPIC_LIBRARY_VERSION, + ) + else: + client_info.gapic_version = _GAPIC_LIBRARY_VERSION + self._client_info = client_info + + # Parse out the default settings for retry and timeout for each RPC + # from the client configuration. + # (Ordinarily, these are the defaults specified in the `*_config.py` + # file next to this one.) + self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( + client_config['interfaces'][self._INTERFACE_NAME], + ) + + # Save a dictionary of cached API call functions. + # These are the actual callables which invoke the proper + # transport methods, wrapped with `wrap_method` to add retry, + # timeout, and the like. + self._inner_api_calls = {} + + # Service calls + def get_ad( + self, + resource_name, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None): + """ + Returns the requested ad in full detail. + + Args: + resource_name (str): Required. The resource name of the ad to fetch. + retry (Optional[google.api_core.retry.Retry]): A retry object used + to retry requests. If ``None`` is specified, requests will not + be retried. + timeout (Optional[float]): The amount of time, in seconds, to wait + for the request to complete. Note that if ``retry`` is + specified, the timeout applies to each individual attempt. + metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata + that is provided to the method. + + Returns: + A :class:`~google.ads.googleads_v4.types.Ad` instance. + + Raises: + google.api_core.exceptions.GoogleAPICallError: If the request + failed for any reason. + google.api_core.exceptions.RetryError: If the request failed due + to a retryable error and retry attempts failed. + ValueError: If the parameters are invalid. + """ + # Wrap the transport method to add retry and timeout logic. + if 'get_ad' not in self._inner_api_calls: + self._inner_api_calls['get_ad'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.get_ad, + default_retry=self._method_configs['GetAd'].retry, + default_timeout=self._method_configs['GetAd'].timeout, + client_info=self._client_info, + ) + + request = ad_service_pb2.GetAdRequest( + resource_name=resource_name, + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [('resource_name', resource_name)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata(routing_header) + metadata.append(routing_metadata) + + return self._inner_api_calls['get_ad'](request, retry=retry, timeout=timeout, metadata=metadata) + + def mutate_ads( + self, + customer_id, + operations, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None): + """ + Updates ads. Operation statuses are returned. Updating ads is not supported + for TextAd, ExpandedDynamicSearchAd, GmailAd and ImageAd. + + Args: + customer_id (str): Required. The ID of the customer whose ads are being modified. + operations (list[Union[dict, ~google.ads.googleads_v4.types.AdOperation]]): Required. The list of operations to perform on individual ads. + + If a dict is provided, it must be of the same form as the protobuf + message :class:`~google.ads.googleads_v4.types.AdOperation` + retry (Optional[google.api_core.retry.Retry]): A retry object used + to retry requests. If ``None`` is specified, requests will not + be retried. + timeout (Optional[float]): The amount of time, in seconds, to wait + for the request to complete. Note that if ``retry`` is + specified, the timeout applies to each individual attempt. + metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata + that is provided to the method. + + Returns: + A :class:`~google.ads.googleads_v4.types.MutateAdsResponse` instance. + + Raises: + google.api_core.exceptions.GoogleAPICallError: If the request + failed for any reason. + google.api_core.exceptions.RetryError: If the request failed due + to a retryable error and retry attempts failed. + ValueError: If the parameters are invalid. + """ + # Wrap the transport method to add retry and timeout logic. + if 'mutate_ads' not in self._inner_api_calls: + self._inner_api_calls['mutate_ads'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.mutate_ads, + default_retry=self._method_configs['MutateAds'].retry, + default_timeout=self._method_configs['MutateAds'].timeout, + client_info=self._client_info, + ) + + request = ad_service_pb2.MutateAdsRequest( + customer_id=customer_id, + operations=operations, + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [('customer_id', customer_id)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata(routing_header) + metadata.append(routing_metadata) + + return self._inner_api_calls['mutate_ads'](request, retry=retry, timeout=timeout, metadata=metadata) diff --git a/google/ads/google_ads/v4/services/ad_service_client_config.py b/google/ads/google_ads/v4/services/ad_service_client_config.py new file mode 100644 index 000000000..bb4149145 --- /dev/null +++ b/google/ads/google_ads/v4/services/ad_service_client_config.py @@ -0,0 +1,36 @@ +config = { + "interfaces": { + "google.ads.googleads.v4.services.AdService": { + "retry_codes": { + "idempotent": [ + "DEADLINE_EXCEEDED", + "UNAVAILABLE" + ], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 5000, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 3600000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 3600000, + "total_timeout_millis": 3600000 + } + }, + "methods": { + "GetAd": { + "timeout_millis": 60000, + "retry_codes_name": "idempotent", + "retry_params_name": "default" + }, + "MutateAds": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + } + } + } + } +} diff --git a/google/ads/google_ads/v1/services/age_range_view_service_client.py b/google/ads/google_ads/v4/services/age_range_view_service_client.py similarity index 76% rename from google/ads/google_ads/v1/services/age_range_view_service_client.py rename to google/ads/google_ads/v4/services/age_range_view_service_client.py index 443798c32..ecaaeeb15 100644 --- a/google/ads/google_ads/v1/services/age_range_view_service_client.py +++ b/google/ads/google_ads/v4/services/age_range_view_service_client.py @@ -13,7 +13,8 @@ # 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. -"""Accesses the google.ads.googleads.v1.services AgeRangeViewService API.""" + +"""Accesses the google.ads.googleads.v4.services AgeRangeViewService API.""" import pkg_resources import warnings @@ -22,15 +23,19 @@ import google.api_core.gapic_v1.client_info import google.api_core.gapic_v1.config import google.api_core.gapic_v1.method +import google.api_core.gapic_v1.routing_header import google.api_core.grpc_helpers import google.api_core.path_template -from google.ads.google_ads.v1.services import age_range_view_service_client_config -from google.ads.google_ads.v1.services.transports import age_range_view_service_grpc_transport -from google.ads.google_ads.v1.proto.services import age_range_view_service_pb2 +from google.ads.google_ads.v4.services import age_range_view_service_client_config +from google.ads.google_ads.v4.services.transports import age_range_view_service_grpc_transport +from google.ads.google_ads.v4.proto.services import age_range_view_service_pb2 + + _GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( - 'google-ads', ).version + 'google-ads', +).version class AgeRangeViewServiceClient(object): @@ -41,7 +46,8 @@ class AgeRangeViewServiceClient(object): # The name of the interface for this client. This is the key used to # find the method configuration in the client_config dictionary. - _INTERFACE_NAME = 'google.ads.googleads.v1.services.AgeRangeViewService' + _INTERFACE_NAME = 'google.ads.googleads.v4.services.AgeRangeViewService' + @classmethod def from_service_account_file(cls, filename, *args, **kwargs): @@ -64,6 +70,7 @@ def from_service_account_file(cls, filename, *args, **kwargs): from_service_account_json = from_service_account_file + @classmethod def age_range_view_path(cls, customer, age_range_view): """Return a fully-qualified age_range_view string.""" @@ -73,12 +80,8 @@ def age_range_view_path(cls, customer, age_range_view): age_range_view=age_range_view, ) - def __init__(self, - transport=None, - channel=None, - credentials=None, - client_config=None, - client_info=None): + def __init__(self, transport=None, channel=None, credentials=None, + client_config=None, client_info=None): """Constructor. Args: @@ -111,19 +114,15 @@ def __init__(self, """ # Raise deprecation warnings for things we want to go away. if client_config is not None: - warnings.warn( - 'The `client_config` argument is deprecated.', - PendingDeprecationWarning, - stacklevel=2) + warnings.warn('The `client_config` argument is deprecated.', + PendingDeprecationWarning, stacklevel=2) else: client_config = age_range_view_service_client_config.config if channel: - warnings.warn( - 'The `channel` argument is deprecated; use ' - '`transport` instead.', - PendingDeprecationWarning, - stacklevel=2) + warnings.warn('The `channel` argument is deprecated; use ' + '`transport` instead.', + PendingDeprecationWarning, stacklevel=2) # Instantiate the transport. # The transport is responsible for handling serialization and @@ -132,14 +131,14 @@ def __init__(self, if callable(transport): self.transport = transport( credentials=credentials, - default_class=age_range_view_service_grpc_transport. - AgeRangeViewServiceGrpcTransport, + default_class=age_range_view_service_grpc_transport.AgeRangeViewServiceGrpcTransport, ) else: if credentials: raise ValueError( 'Received both a transport instance and ' - 'credentials; these are mutually exclusive.') + 'credentials; these are mutually exclusive.' + ) self.transport = transport else: self.transport = age_range_view_service_grpc_transport.AgeRangeViewServiceGrpcTransport( @@ -150,7 +149,8 @@ def __init__(self, if client_info is None: client_info = google.api_core.gapic_v1.client_info.ClientInfo( - gapic_version=_GAPIC_LIBRARY_VERSION, ) + gapic_version=_GAPIC_LIBRARY_VERSION, + ) else: client_info.gapic_version = _GAPIC_LIBRARY_VERSION self._client_info = client_info @@ -160,7 +160,8 @@ def __init__(self, # (Ordinarily, these are the defaults specified in the `*_config.py` # file next to this one.) self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( - client_config['interfaces'][self._INTERFACE_NAME], ) + client_config['interfaces'][self._INTERFACE_NAME], + ) # Save a dictionary of cached API call functions. # These are the actual callables which invoke the proper @@ -169,16 +170,17 @@ def __init__(self, self._inner_api_calls = {} # Service calls - def get_age_range_view(self, - resource_name, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): + def get_age_range_view( + self, + resource_name, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None): """ Returns the requested age range view in full detail. Args: - resource_name (str): The resource name of the age range view to fetch. + resource_name (str): Required. The resource name of the age range view to fetch. retry (Optional[google.api_core.retry.Retry]): A retry object used to retry requests. If ``None`` is specified, requests will not be retried. @@ -189,7 +191,7 @@ def get_age_range_view(self, that is provided to the method. Returns: - A :class:`~google.ads.googleads_v1.types.AgeRangeView` instance. + A :class:`~google.ads.googleads_v4.types.AgeRangeView` instance. Raises: google.api_core.exceptions.GoogleAPICallError: If the request @@ -200,17 +202,25 @@ def get_age_range_view(self, """ # Wrap the transport method to add retry and timeout logic. if 'get_age_range_view' not in self._inner_api_calls: - self._inner_api_calls[ - 'get_age_range_view'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.get_age_range_view, - default_retry=self._method_configs['GetAgeRangeView']. - retry, - default_timeout=self._method_configs['GetAgeRangeView']. - timeout, - client_info=self._client_info, - ) + self._inner_api_calls['get_age_range_view'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.get_age_range_view, + default_retry=self._method_configs['GetAgeRangeView'].retry, + default_timeout=self._method_configs['GetAgeRangeView'].timeout, + client_info=self._client_info, + ) request = age_range_view_service_pb2.GetAgeRangeViewRequest( - resource_name=resource_name, ) - return self._inner_api_calls['get_age_range_view']( - request, retry=retry, timeout=timeout, metadata=metadata) + resource_name=resource_name, + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [('resource_name', resource_name)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata(routing_header) + metadata.append(routing_metadata) + + return self._inner_api_calls['get_age_range_view'](request, retry=retry, timeout=timeout, metadata=metadata) diff --git a/google/ads/google_ads/v4/services/age_range_view_service_client_config.py b/google/ads/google_ads/v4/services/age_range_view_service_client_config.py new file mode 100644 index 000000000..a7750f380 --- /dev/null +++ b/google/ads/google_ads/v4/services/age_range_view_service_client_config.py @@ -0,0 +1,31 @@ +config = { + "interfaces": { + "google.ads.googleads.v4.services.AgeRangeViewService": { + "retry_codes": { + "idempotent": [ + "DEADLINE_EXCEEDED", + "UNAVAILABLE" + ], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 5000, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 3600000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 3600000, + "total_timeout_millis": 3600000 + } + }, + "methods": { + "GetAgeRangeView": { + "timeout_millis": 60000, + "retry_codes_name": "idempotent", + "retry_params_name": "default" + } + } + } + } +} diff --git a/google/ads/google_ads/v4/services/asset_service_client.py b/google/ads/google_ads/v4/services/asset_service_client.py new file mode 100644 index 000000000..73ecd9b92 --- /dev/null +++ b/google/ads/google_ads/v4/services/asset_service_client.py @@ -0,0 +1,291 @@ +# -*- coding: utf-8 -*- +# +# 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. + +"""Accesses the google.ads.googleads.v4.services AssetService API.""" + +import pkg_resources +import warnings + +from google.oauth2 import service_account +import google.api_core.gapic_v1.client_info +import google.api_core.gapic_v1.config +import google.api_core.gapic_v1.method +import google.api_core.gapic_v1.routing_header +import google.api_core.grpc_helpers +import google.api_core.path_template + +from google.ads.google_ads.v4.services import asset_service_client_config +from google.ads.google_ads.v4.services.transports import asset_service_grpc_transport +from google.ads.google_ads.v4.proto.services import asset_service_pb2 + + + +_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( + 'google-ads', +).version + + +class AssetServiceClient(object): + """ + Service to manage assets. Asset types can be created with AssetService are + YoutubeVideoAsset, MediaBundleAsset and ImageAsset. TextAsset should be + created with Ad inline. + """ + + SERVICE_ADDRESS = 'googleads.googleapis.com:443' + """The default address of the service.""" + + # The name of the interface for this client. This is the key used to + # find the method configuration in the client_config dictionary. + _INTERFACE_NAME = 'google.ads.googleads.v4.services.AssetService' + + + @classmethod + def from_service_account_file(cls, filename, *args, **kwargs): + """Creates an instance of this client using the provided credentials + file. + + Args: + filename (str): The path to the service account private key json + file. + args: Additional arguments to pass to the constructor. + kwargs: Additional arguments to pass to the constructor. + + Returns: + AssetServiceClient: The constructed client. + """ + credentials = service_account.Credentials.from_service_account_file( + filename) + kwargs['credentials'] = credentials + return cls(*args, **kwargs) + + from_service_account_json = from_service_account_file + + + @classmethod + def asset_path(cls, customer, asset): + """Return a fully-qualified asset string.""" + return google.api_core.path_template.expand( + 'customers/{customer}/assets/{asset}', + customer=customer, + asset=asset, + ) + + def __init__(self, transport=None, channel=None, credentials=None, + client_config=None, client_info=None): + """Constructor. + + Args: + transport (Union[~.AssetServiceGrpcTransport, + Callable[[~.Credentials, type], ~.AssetServiceGrpcTransport]): A transport + instance, responsible for actually making the API calls. + The default transport uses the gRPC protocol. + This argument may also be a callable which returns a + transport instance. Callables will be sent the credentials + as the first argument and the default transport class as + the second argument. + channel (grpc.Channel): DEPRECATED. A ``Channel`` instance + through which to make calls. This argument is mutually exclusive + with ``credentials``; providing both will raise an exception. + credentials (google.auth.credentials.Credentials): The + authorization credentials to attach to requests. These + credentials identify this application to the service. If none + are specified, the client will attempt to ascertain the + credentials from the environment. + This argument is mutually exclusive with providing a + transport instance to ``transport``; doing so will raise + an exception. + client_config (dict): DEPRECATED. A dictionary of call options for + each method. If not specified, the default configuration is used. + client_info (google.api_core.gapic_v1.client_info.ClientInfo): + The client info used to send a user-agent string along with + API requests. If ``None``, then default info will be used. + Generally, you only need to set this if you're developing + your own client library. + """ + # Raise deprecation warnings for things we want to go away. + if client_config is not None: + warnings.warn('The `client_config` argument is deprecated.', + PendingDeprecationWarning, stacklevel=2) + else: + client_config = asset_service_client_config.config + + if channel: + warnings.warn('The `channel` argument is deprecated; use ' + '`transport` instead.', + PendingDeprecationWarning, stacklevel=2) + + # Instantiate the transport. + # The transport is responsible for handling serialization and + # deserialization and actually sending data to the service. + if transport: + if callable(transport): + self.transport = transport( + credentials=credentials, + default_class=asset_service_grpc_transport.AssetServiceGrpcTransport, + ) + else: + if credentials: + raise ValueError( + 'Received both a transport instance and ' + 'credentials; these are mutually exclusive.' + ) + self.transport = transport + else: + self.transport = asset_service_grpc_transport.AssetServiceGrpcTransport( + address=self.SERVICE_ADDRESS, + channel=channel, + credentials=credentials, + ) + + if client_info is None: + client_info = google.api_core.gapic_v1.client_info.ClientInfo( + gapic_version=_GAPIC_LIBRARY_VERSION, + ) + else: + client_info.gapic_version = _GAPIC_LIBRARY_VERSION + self._client_info = client_info + + # Parse out the default settings for retry and timeout for each RPC + # from the client configuration. + # (Ordinarily, these are the defaults specified in the `*_config.py` + # file next to this one.) + self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( + client_config['interfaces'][self._INTERFACE_NAME], + ) + + # Save a dictionary of cached API call functions. + # These are the actual callables which invoke the proper + # transport methods, wrapped with `wrap_method` to add retry, + # timeout, and the like. + self._inner_api_calls = {} + + # Service calls + def get_asset( + self, + resource_name, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None): + """ + Returns the requested asset in full detail. + + Args: + resource_name (str): Required. The resource name of the asset to fetch. + retry (Optional[google.api_core.retry.Retry]): A retry object used + to retry requests. If ``None`` is specified, requests will not + be retried. + timeout (Optional[float]): The amount of time, in seconds, to wait + for the request to complete. Note that if ``retry`` is + specified, the timeout applies to each individual attempt. + metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata + that is provided to the method. + + Returns: + A :class:`~google.ads.googleads_v4.types.Asset` instance. + + Raises: + google.api_core.exceptions.GoogleAPICallError: If the request + failed for any reason. + google.api_core.exceptions.RetryError: If the request failed due + to a retryable error and retry attempts failed. + ValueError: If the parameters are invalid. + """ + # Wrap the transport method to add retry and timeout logic. + if 'get_asset' not in self._inner_api_calls: + self._inner_api_calls['get_asset'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.get_asset, + default_retry=self._method_configs['GetAsset'].retry, + default_timeout=self._method_configs['GetAsset'].timeout, + client_info=self._client_info, + ) + + request = asset_service_pb2.GetAssetRequest( + resource_name=resource_name, + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [('resource_name', resource_name)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata(routing_header) + metadata.append(routing_metadata) + + return self._inner_api_calls['get_asset'](request, retry=retry, timeout=timeout, metadata=metadata) + + def mutate_assets( + self, + customer_id, + operations, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None): + """ + Creates assets. Operation statuses are returned. + + Args: + customer_id (str): Required. The ID of the customer whose assets are being modified. + operations (list[Union[dict, ~google.ads.googleads_v4.types.AssetOperation]]): Required. The list of operations to perform on individual assets. + + If a dict is provided, it must be of the same form as the protobuf + message :class:`~google.ads.googleads_v4.types.AssetOperation` + retry (Optional[google.api_core.retry.Retry]): A retry object used + to retry requests. If ``None`` is specified, requests will not + be retried. + timeout (Optional[float]): The amount of time, in seconds, to wait + for the request to complete. Note that if ``retry`` is + specified, the timeout applies to each individual attempt. + metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata + that is provided to the method. + + Returns: + A :class:`~google.ads.googleads_v4.types.MutateAssetsResponse` instance. + + Raises: + google.api_core.exceptions.GoogleAPICallError: If the request + failed for any reason. + google.api_core.exceptions.RetryError: If the request failed due + to a retryable error and retry attempts failed. + ValueError: If the parameters are invalid. + """ + # Wrap the transport method to add retry and timeout logic. + if 'mutate_assets' not in self._inner_api_calls: + self._inner_api_calls['mutate_assets'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.mutate_assets, + default_retry=self._method_configs['MutateAssets'].retry, + default_timeout=self._method_configs['MutateAssets'].timeout, + client_info=self._client_info, + ) + + request = asset_service_pb2.MutateAssetsRequest( + customer_id=customer_id, + operations=operations, + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [('customer_id', customer_id)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata(routing_header) + metadata.append(routing_metadata) + + return self._inner_api_calls['mutate_assets'](request, retry=retry, timeout=timeout, metadata=metadata) diff --git a/google/ads/google_ads/v4/services/asset_service_client_config.py b/google/ads/google_ads/v4/services/asset_service_client_config.py new file mode 100644 index 000000000..4be712996 --- /dev/null +++ b/google/ads/google_ads/v4/services/asset_service_client_config.py @@ -0,0 +1,36 @@ +config = { + "interfaces": { + "google.ads.googleads.v4.services.AssetService": { + "retry_codes": { + "idempotent": [ + "DEADLINE_EXCEEDED", + "UNAVAILABLE" + ], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 5000, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 3600000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 3600000, + "total_timeout_millis": 3600000 + } + }, + "methods": { + "GetAsset": { + "timeout_millis": 60000, + "retry_codes_name": "idempotent", + "retry_params_name": "default" + }, + "MutateAssets": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + } + } + } + } +} diff --git a/google/ads/google_ads/v4/services/batch_job_service_client.py b/google/ads/google_ads/v4/services/batch_job_service_client.py new file mode 100644 index 000000000..d31a1bf6f --- /dev/null +++ b/google/ads/google_ads/v4/services/batch_job_service_client.py @@ -0,0 +1,509 @@ +# -*- coding: utf-8 -*- +# +# 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. + +"""Accesses the google.ads.googleads.v4.services BatchJobService API.""" + +import functools +import pkg_resources +import warnings + +from google.oauth2 import service_account +import google.api_core.gapic_v1.client_info +import google.api_core.gapic_v1.config +import google.api_core.gapic_v1.method +import google.api_core.gapic_v1.routing_header +import google.api_core.grpc_helpers +import google.api_core.operation +import google.api_core.operations_v1 +import google.api_core.page_iterator +import google.api_core.path_template + +from google.ads.google_ads.v4.services import batch_job_service_client_config +from google.ads.google_ads.v4.services.transports import batch_job_service_grpc_transport +from google.ads.google_ads.v4.proto.resources import batch_job_pb2 +from google.ads.google_ads.v4.proto.services import batch_job_service_pb2 +from google.protobuf import empty_pb2 + + + +_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( + 'google-ads', +).version + + +class BatchJobServiceClient(object): + """Service to manage batch jobs.""" + + SERVICE_ADDRESS = 'googleads.googleapis.com:443' + """The default address of the service.""" + + # The name of the interface for this client. This is the key used to + # find the method configuration in the client_config dictionary. + _INTERFACE_NAME = 'google.ads.googleads.v4.services.BatchJobService' + + + @classmethod + def from_service_account_file(cls, filename, *args, **kwargs): + """Creates an instance of this client using the provided credentials + file. + + Args: + filename (str): The path to the service account private key json + file. + args: Additional arguments to pass to the constructor. + kwargs: Additional arguments to pass to the constructor. + + Returns: + BatchJobServiceClient: The constructed client. + """ + credentials = service_account.Credentials.from_service_account_file( + filename) + kwargs['credentials'] = credentials + return cls(*args, **kwargs) + + from_service_account_json = from_service_account_file + + + @classmethod + def batch_job_path(cls, customer, batch_job): + """Return a fully-qualified batch_job string.""" + return google.api_core.path_template.expand( + 'customers/{customer}/batchJobs/{batch_job}', + customer=customer, + batch_job=batch_job, + ) + + def __init__(self, transport=None, channel=None, credentials=None, + client_config=None, client_info=None): + """Constructor. + + Args: + transport (Union[~.BatchJobServiceGrpcTransport, + Callable[[~.Credentials, type], ~.BatchJobServiceGrpcTransport]): A transport + instance, responsible for actually making the API calls. + The default transport uses the gRPC protocol. + This argument may also be a callable which returns a + transport instance. Callables will be sent the credentials + as the first argument and the default transport class as + the second argument. + channel (grpc.Channel): DEPRECATED. A ``Channel`` instance + through which to make calls. This argument is mutually exclusive + with ``credentials``; providing both will raise an exception. + credentials (google.auth.credentials.Credentials): The + authorization credentials to attach to requests. These + credentials identify this application to the service. If none + are specified, the client will attempt to ascertain the + credentials from the environment. + This argument is mutually exclusive with providing a + transport instance to ``transport``; doing so will raise + an exception. + client_config (dict): DEPRECATED. A dictionary of call options for + each method. If not specified, the default configuration is used. + client_info (google.api_core.gapic_v1.client_info.ClientInfo): + The client info used to send a user-agent string along with + API requests. If ``None``, then default info will be used. + Generally, you only need to set this if you're developing + your own client library. + """ + # Raise deprecation warnings for things we want to go away. + if client_config is not None: + warnings.warn('The `client_config` argument is deprecated.', + PendingDeprecationWarning, stacklevel=2) + else: + client_config = batch_job_service_client_config.config + + if channel: + warnings.warn('The `channel` argument is deprecated; use ' + '`transport` instead.', + PendingDeprecationWarning, stacklevel=2) + + # Instantiate the transport. + # The transport is responsible for handling serialization and + # deserialization and actually sending data to the service. + if transport: + if callable(transport): + self.transport = transport( + credentials=credentials, + default_class=batch_job_service_grpc_transport.BatchJobServiceGrpcTransport, + ) + else: + if credentials: + raise ValueError( + 'Received both a transport instance and ' + 'credentials; these are mutually exclusive.' + ) + self.transport = transport + else: + self.transport = batch_job_service_grpc_transport.BatchJobServiceGrpcTransport( + address=self.SERVICE_ADDRESS, + channel=channel, + credentials=credentials, + ) + + if client_info is None: + client_info = google.api_core.gapic_v1.client_info.ClientInfo( + gapic_version=_GAPIC_LIBRARY_VERSION, + ) + else: + client_info.gapic_version = _GAPIC_LIBRARY_VERSION + self._client_info = client_info + + # Parse out the default settings for retry and timeout for each RPC + # from the client configuration. + # (Ordinarily, these are the defaults specified in the `*_config.py` + # file next to this one.) + self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( + client_config['interfaces'][self._INTERFACE_NAME], + ) + + # Save a dictionary of cached API call functions. + # These are the actual callables which invoke the proper + # transport methods, wrapped with `wrap_method` to add retry, + # timeout, and the like. + self._inner_api_calls = {} + + # Service calls + def mutate_batch_job( + self, + customer_id, + operation_, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None): + """ + Mutates a batch job. + + Args: + customer_id (str): Required. The ID of the customer for which to create a batch job. + operation_ (Union[dict, ~google.ads.googleads_v4.types.BatchJobOperation]): Required. The operation to perform on an individual batch job. + + If a dict is provided, it must be of the same form as the protobuf + message :class:`~google.ads.googleads_v4.types.BatchJobOperation` + retry (Optional[google.api_core.retry.Retry]): A retry object used + to retry requests. If ``None`` is specified, requests will not + be retried. + timeout (Optional[float]): The amount of time, in seconds, to wait + for the request to complete. Note that if ``retry`` is + specified, the timeout applies to each individual attempt. + metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata + that is provided to the method. + + Returns: + A :class:`~google.ads.googleads_v4.types.MutateBatchJobResponse` instance. + + Raises: + google.api_core.exceptions.GoogleAPICallError: If the request + failed for any reason. + google.api_core.exceptions.RetryError: If the request failed due + to a retryable error and retry attempts failed. + ValueError: If the parameters are invalid. + """ + # Wrap the transport method to add retry and timeout logic. + if 'mutate_batch_job' not in self._inner_api_calls: + self._inner_api_calls['mutate_batch_job'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.mutate_batch_job, + default_retry=self._method_configs['MutateBatchJob'].retry, + default_timeout=self._method_configs['MutateBatchJob'].timeout, + client_info=self._client_info, + ) + + request = batch_job_service_pb2.MutateBatchJobRequest( + customer_id=customer_id, + operation=operation_, + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [('customer_id', customer_id)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata(routing_header) + metadata.append(routing_metadata) + + return self._inner_api_calls['mutate_batch_job'](request, retry=retry, timeout=timeout, metadata=metadata) + + def get_batch_job( + self, + resource_name, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None): + """ + Returns the batch job. + + Args: + resource_name (str): Required. The resource name of the batch job to get. + retry (Optional[google.api_core.retry.Retry]): A retry object used + to retry requests. If ``None`` is specified, requests will not + be retried. + timeout (Optional[float]): The amount of time, in seconds, to wait + for the request to complete. Note that if ``retry`` is + specified, the timeout applies to each individual attempt. + metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata + that is provided to the method. + + Returns: + A :class:`~google.ads.googleads_v4.types.BatchJob` instance. + + Raises: + google.api_core.exceptions.GoogleAPICallError: If the request + failed for any reason. + google.api_core.exceptions.RetryError: If the request failed due + to a retryable error and retry attempts failed. + ValueError: If the parameters are invalid. + """ + # Wrap the transport method to add retry and timeout logic. + if 'get_batch_job' not in self._inner_api_calls: + self._inner_api_calls['get_batch_job'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.get_batch_job, + default_retry=self._method_configs['GetBatchJob'].retry, + default_timeout=self._method_configs['GetBatchJob'].timeout, + client_info=self._client_info, + ) + + request = batch_job_service_pb2.GetBatchJobRequest( + resource_name=resource_name, + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [('resource_name', resource_name)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata(routing_header) + metadata.append(routing_metadata) + + return self._inner_api_calls['get_batch_job'](request, retry=retry, timeout=timeout, metadata=metadata) + + def list_batch_job_results( + self, + resource_name, + page_size=None, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None): + """ + Returns the results of the batch job. The job must be done. + Supports standard list paging. + + Args: + resource_name (str): Required. The resource name of the batch job whose results are being listed. + page_size (int): The maximum number of resources contained in the + underlying API response. If page streaming is performed per- + resource, this parameter does not affect the return value. If page + streaming is performed per-page, this determines the maximum number + of resources in a page. + retry (Optional[google.api_core.retry.Retry]): A retry object used + to retry requests. If ``None`` is specified, requests will not + be retried. + timeout (Optional[float]): The amount of time, in seconds, to wait + for the request to complete. Note that if ``retry`` is + specified, the timeout applies to each individual attempt. + metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata + that is provided to the method. + + Returns: + A :class:`~google.gax.PageIterator` instance. By default, this + is an iterable of :class:`~google.ads.googleads_v4.types.BatchJobResult` instances. + This object can also be configured to iterate over the pages + of the response through the `options` parameter. + + Raises: + google.api_core.exceptions.GoogleAPICallError: If the request + failed for any reason. + google.api_core.exceptions.RetryError: If the request failed due + to a retryable error and retry attempts failed. + ValueError: If the parameters are invalid. + """ + # Wrap the transport method to add retry and timeout logic. + if 'list_batch_job_results' not in self._inner_api_calls: + self._inner_api_calls['list_batch_job_results'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.list_batch_job_results, + default_retry=self._method_configs['ListBatchJobResults'].retry, + default_timeout=self._method_configs['ListBatchJobResults'].timeout, + client_info=self._client_info, + ) + + request = batch_job_service_pb2.ListBatchJobResultsRequest( + resource_name=resource_name, + page_size=page_size, + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [('resource_name', resource_name)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata(routing_header) + metadata.append(routing_metadata) + + iterator = google.api_core.page_iterator.GRPCIterator( + client=None, + method=functools.partial(self._inner_api_calls['list_batch_job_results'], retry=retry, timeout=timeout, metadata=metadata), + request=request, + items_field='results', + request_token_field='page_token', + response_token_field='next_page_token', + ) + return iterator + + def run_batch_job( + self, + resource_name, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None): + """ + Runs the batch job. + + The Operation.metadata field type is BatchJobMetadata. When finished, the + long running operation will not contain errors or a response. Instead, use + ListBatchJobResults to get the results of the job. + + Args: + resource_name (str): Required. The resource name of the BatchJob to run. + retry (Optional[google.api_core.retry.Retry]): A retry object used + to retry requests. If ``None`` is specified, requests will not + be retried. + timeout (Optional[float]): The amount of time, in seconds, to wait + for the request to complete. Note that if ``retry`` is + specified, the timeout applies to each individual attempt. + metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata + that is provided to the method. + + Returns: + A :class:`~google.ads.googleads_v4.types._OperationFuture` instance. + + Raises: + google.api_core.exceptions.GoogleAPICallError: If the request + failed for any reason. + google.api_core.exceptions.RetryError: If the request failed due + to a retryable error and retry attempts failed. + ValueError: If the parameters are invalid. + """ + # Wrap the transport method to add retry and timeout logic. + if 'run_batch_job' not in self._inner_api_calls: + self._inner_api_calls['run_batch_job'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.run_batch_job, + default_retry=self._method_configs['RunBatchJob'].retry, + default_timeout=self._method_configs['RunBatchJob'].timeout, + client_info=self._client_info, + ) + + request = batch_job_service_pb2.RunBatchJobRequest( + resource_name=resource_name, + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [('resource_name', resource_name)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata(routing_header) + metadata.append(routing_metadata) + + operation = self._inner_api_calls['run_batch_job'](request, retry=retry, timeout=timeout, metadata=metadata) + return google.api_core.operation.from_gapic( + operation, + self.transport._operations_client, + empty_pb2.Empty, + metadata_type=batch_job_pb2.BatchJob.BatchJobMetadata, + ) + + def add_batch_job_operations( + self, + resource_name, + sequence_token, + mutate_operations, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None): + """ + Add operations to the batch job. + + Args: + resource_name (str): Required. The resource name of the batch job. + sequence_token (str): A token used to enforce sequencing. + + The first AddBatchJobOperations request for a batch job should not set + sequence\_token. Subsequent requests must set sequence\_token to the + value of next\_sequence\_token received in the previous + AddBatchJobOperations response. + mutate_operations (list[Union[dict, ~google.ads.googleads_v4.types.MutateOperation]]): Required. The list of mutates being added. + + Operations can use negative integers as temp ids to signify dependencies + between entities created in this batch job. For example, a customer with + id = 1234 can create a campaign and an ad group in that same campaign by + creating a campaign in the first operation with the resource name + explicitly set to "customers/1234/campaigns/-1", and creating an ad group + in the second operation with the campaign field also set to + "customers/1234/campaigns/-1". + + If a dict is provided, it must be of the same form as the protobuf + message :class:`~google.ads.googleads_v4.types.MutateOperation` + retry (Optional[google.api_core.retry.Retry]): A retry object used + to retry requests. If ``None`` is specified, requests will not + be retried. + timeout (Optional[float]): The amount of time, in seconds, to wait + for the request to complete. Note that if ``retry`` is + specified, the timeout applies to each individual attempt. + metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata + that is provided to the method. + + Returns: + A :class:`~google.ads.googleads_v4.types.AddBatchJobOperationsResponse` instance. + + Raises: + google.api_core.exceptions.GoogleAPICallError: If the request + failed for any reason. + google.api_core.exceptions.RetryError: If the request failed due + to a retryable error and retry attempts failed. + ValueError: If the parameters are invalid. + """ + # Wrap the transport method to add retry and timeout logic. + if 'add_batch_job_operations' not in self._inner_api_calls: + self._inner_api_calls['add_batch_job_operations'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.add_batch_job_operations, + default_retry=self._method_configs['AddBatchJobOperations'].retry, + default_timeout=self._method_configs['AddBatchJobOperations'].timeout, + client_info=self._client_info, + ) + + request = batch_job_service_pb2.AddBatchJobOperationsRequest( + resource_name=resource_name, + sequence_token=sequence_token, + mutate_operations=mutate_operations, + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [('resource_name', resource_name)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata(routing_header) + metadata.append(routing_metadata) + + return self._inner_api_calls['add_batch_job_operations'](request, retry=retry, timeout=timeout, metadata=metadata) diff --git a/google/ads/google_ads/v4/services/batch_job_service_client_config.py b/google/ads/google_ads/v4/services/batch_job_service_client_config.py new file mode 100644 index 000000000..32b9d5708 --- /dev/null +++ b/google/ads/google_ads/v4/services/batch_job_service_client_config.py @@ -0,0 +1,51 @@ +config = { + "interfaces": { + "google.ads.googleads.v4.services.BatchJobService": { + "retry_codes": { + "idempotent": [ + "DEADLINE_EXCEEDED", + "UNAVAILABLE" + ], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 5000, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 3600000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 3600000, + "total_timeout_millis": 3600000 + } + }, + "methods": { + "MutateBatchJob": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "GetBatchJob": { + "timeout_millis": 60000, + "retry_codes_name": "idempotent", + "retry_params_name": "default" + }, + "ListBatchJobResults": { + "timeout_millis": 60000, + "retry_codes_name": "idempotent", + "retry_params_name": "default" + }, + "RunBatchJob": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "AddBatchJobOperations": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + } + } + } + } +} diff --git a/google/ads/google_ads/v4/services/bidding_strategy_service_client.py b/google/ads/google_ads/v4/services/bidding_strategy_service_client.py new file mode 100644 index 000000000..91bdb805a --- /dev/null +++ b/google/ads/google_ads/v4/services/bidding_strategy_service_client.py @@ -0,0 +1,298 @@ +# -*- coding: utf-8 -*- +# +# 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. + +"""Accesses the google.ads.googleads.v4.services BiddingStrategyService API.""" + +import pkg_resources +import warnings + +from google.oauth2 import service_account +import google.api_core.gapic_v1.client_info +import google.api_core.gapic_v1.config +import google.api_core.gapic_v1.method +import google.api_core.gapic_v1.routing_header +import google.api_core.grpc_helpers +import google.api_core.path_template + +from google.ads.google_ads.v4.services import bidding_strategy_service_client_config +from google.ads.google_ads.v4.services.transports import bidding_strategy_service_grpc_transport +from google.ads.google_ads.v4.proto.services import bidding_strategy_service_pb2 + + + +_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( + 'google-ads', +).version + + +class BiddingStrategyServiceClient(object): + """Service to manage bidding strategies.""" + + SERVICE_ADDRESS = 'googleads.googleapis.com:443' + """The default address of the service.""" + + # The name of the interface for this client. This is the key used to + # find the method configuration in the client_config dictionary. + _INTERFACE_NAME = 'google.ads.googleads.v4.services.BiddingStrategyService' + + + @classmethod + def from_service_account_file(cls, filename, *args, **kwargs): + """Creates an instance of this client using the provided credentials + file. + + Args: + filename (str): The path to the service account private key json + file. + args: Additional arguments to pass to the constructor. + kwargs: Additional arguments to pass to the constructor. + + Returns: + BiddingStrategyServiceClient: The constructed client. + """ + credentials = service_account.Credentials.from_service_account_file( + filename) + kwargs['credentials'] = credentials + return cls(*args, **kwargs) + + from_service_account_json = from_service_account_file + + + @classmethod + def bidding_strategy_path(cls, customer, bidding_strategy): + """Return a fully-qualified bidding_strategy string.""" + return google.api_core.path_template.expand( + 'customers/{customer}/biddingStrategies/{bidding_strategy}', + customer=customer, + bidding_strategy=bidding_strategy, + ) + + def __init__(self, transport=None, channel=None, credentials=None, + client_config=None, client_info=None): + """Constructor. + + Args: + transport (Union[~.BiddingStrategyServiceGrpcTransport, + Callable[[~.Credentials, type], ~.BiddingStrategyServiceGrpcTransport]): A transport + instance, responsible for actually making the API calls. + The default transport uses the gRPC protocol. + This argument may also be a callable which returns a + transport instance. Callables will be sent the credentials + as the first argument and the default transport class as + the second argument. + channel (grpc.Channel): DEPRECATED. A ``Channel`` instance + through which to make calls. This argument is mutually exclusive + with ``credentials``; providing both will raise an exception. + credentials (google.auth.credentials.Credentials): The + authorization credentials to attach to requests. These + credentials identify this application to the service. If none + are specified, the client will attempt to ascertain the + credentials from the environment. + This argument is mutually exclusive with providing a + transport instance to ``transport``; doing so will raise + an exception. + client_config (dict): DEPRECATED. A dictionary of call options for + each method. If not specified, the default configuration is used. + client_info (google.api_core.gapic_v1.client_info.ClientInfo): + The client info used to send a user-agent string along with + API requests. If ``None``, then default info will be used. + Generally, you only need to set this if you're developing + your own client library. + """ + # Raise deprecation warnings for things we want to go away. + if client_config is not None: + warnings.warn('The `client_config` argument is deprecated.', + PendingDeprecationWarning, stacklevel=2) + else: + client_config = bidding_strategy_service_client_config.config + + if channel: + warnings.warn('The `channel` argument is deprecated; use ' + '`transport` instead.', + PendingDeprecationWarning, stacklevel=2) + + # Instantiate the transport. + # The transport is responsible for handling serialization and + # deserialization and actually sending data to the service. + if transport: + if callable(transport): + self.transport = transport( + credentials=credentials, + default_class=bidding_strategy_service_grpc_transport.BiddingStrategyServiceGrpcTransport, + ) + else: + if credentials: + raise ValueError( + 'Received both a transport instance and ' + 'credentials; these are mutually exclusive.' + ) + self.transport = transport + else: + self.transport = bidding_strategy_service_grpc_transport.BiddingStrategyServiceGrpcTransport( + address=self.SERVICE_ADDRESS, + channel=channel, + credentials=credentials, + ) + + if client_info is None: + client_info = google.api_core.gapic_v1.client_info.ClientInfo( + gapic_version=_GAPIC_LIBRARY_VERSION, + ) + else: + client_info.gapic_version = _GAPIC_LIBRARY_VERSION + self._client_info = client_info + + # Parse out the default settings for retry and timeout for each RPC + # from the client configuration. + # (Ordinarily, these are the defaults specified in the `*_config.py` + # file next to this one.) + self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( + client_config['interfaces'][self._INTERFACE_NAME], + ) + + # Save a dictionary of cached API call functions. + # These are the actual callables which invoke the proper + # transport methods, wrapped with `wrap_method` to add retry, + # timeout, and the like. + self._inner_api_calls = {} + + # Service calls + def get_bidding_strategy( + self, + resource_name, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None): + """ + Returns the requested bidding strategy in full detail. + + Args: + resource_name (str): Required. The resource name of the bidding strategy to fetch. + retry (Optional[google.api_core.retry.Retry]): A retry object used + to retry requests. If ``None`` is specified, requests will not + be retried. + timeout (Optional[float]): The amount of time, in seconds, to wait + for the request to complete. Note that if ``retry`` is + specified, the timeout applies to each individual attempt. + metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata + that is provided to the method. + + Returns: + A :class:`~google.ads.googleads_v4.types.BiddingStrategy` instance. + + Raises: + google.api_core.exceptions.GoogleAPICallError: If the request + failed for any reason. + google.api_core.exceptions.RetryError: If the request failed due + to a retryable error and retry attempts failed. + ValueError: If the parameters are invalid. + """ + # Wrap the transport method to add retry and timeout logic. + if 'get_bidding_strategy' not in self._inner_api_calls: + self._inner_api_calls['get_bidding_strategy'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.get_bidding_strategy, + default_retry=self._method_configs['GetBiddingStrategy'].retry, + default_timeout=self._method_configs['GetBiddingStrategy'].timeout, + client_info=self._client_info, + ) + + request = bidding_strategy_service_pb2.GetBiddingStrategyRequest( + resource_name=resource_name, + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [('resource_name', resource_name)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata(routing_header) + metadata.append(routing_metadata) + + return self._inner_api_calls['get_bidding_strategy'](request, retry=retry, timeout=timeout, metadata=metadata) + + def mutate_bidding_strategies( + self, + customer_id, + operations, + partial_failure=None, + validate_only=None, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None): + """ + Creates, updates, or removes bidding strategies. Operation statuses are + returned. + + Args: + customer_id (str): Required. The ID of the customer whose bidding strategies are being modified. + operations (list[Union[dict, ~google.ads.googleads_v4.types.BiddingStrategyOperation]]): Required. The list of operations to perform on individual bidding strategies. + + If a dict is provided, it must be of the same form as the protobuf + message :class:`~google.ads.googleads_v4.types.BiddingStrategyOperation` + partial_failure (bool): If true, successful operations will be carried out and invalid + operations will return errors. If false, all operations will be carried + out in one transaction if and only if they are all valid. + Default is false. + validate_only (bool): If true, the request is validated but not executed. Only errors are + returned, not results. + retry (Optional[google.api_core.retry.Retry]): A retry object used + to retry requests. If ``None`` is specified, requests will not + be retried. + timeout (Optional[float]): The amount of time, in seconds, to wait + for the request to complete. Note that if ``retry`` is + specified, the timeout applies to each individual attempt. + metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata + that is provided to the method. + + Returns: + A :class:`~google.ads.googleads_v4.types.MutateBiddingStrategiesResponse` instance. + + Raises: + google.api_core.exceptions.GoogleAPICallError: If the request + failed for any reason. + google.api_core.exceptions.RetryError: If the request failed due + to a retryable error and retry attempts failed. + ValueError: If the parameters are invalid. + """ + # Wrap the transport method to add retry and timeout logic. + if 'mutate_bidding_strategies' not in self._inner_api_calls: + self._inner_api_calls['mutate_bidding_strategies'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.mutate_bidding_strategies, + default_retry=self._method_configs['MutateBiddingStrategies'].retry, + default_timeout=self._method_configs['MutateBiddingStrategies'].timeout, + client_info=self._client_info, + ) + + request = bidding_strategy_service_pb2.MutateBiddingStrategiesRequest( + customer_id=customer_id, + operations=operations, + partial_failure=partial_failure, + validate_only=validate_only, + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [('customer_id', customer_id)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata(routing_header) + metadata.append(routing_metadata) + + return self._inner_api_calls['mutate_bidding_strategies'](request, retry=retry, timeout=timeout, metadata=metadata) diff --git a/google/ads/google_ads/v4/services/bidding_strategy_service_client_config.py b/google/ads/google_ads/v4/services/bidding_strategy_service_client_config.py new file mode 100644 index 000000000..127294bf9 --- /dev/null +++ b/google/ads/google_ads/v4/services/bidding_strategy_service_client_config.py @@ -0,0 +1,36 @@ +config = { + "interfaces": { + "google.ads.googleads.v4.services.BiddingStrategyService": { + "retry_codes": { + "idempotent": [ + "DEADLINE_EXCEEDED", + "UNAVAILABLE" + ], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 5000, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 3600000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 3600000, + "total_timeout_millis": 3600000 + } + }, + "methods": { + "GetBiddingStrategy": { + "timeout_millis": 60000, + "retry_codes_name": "idempotent", + "retry_params_name": "default" + }, + "MutateBiddingStrategies": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + } + } + } + } +} diff --git a/google/ads/google_ads/v4/services/billing_setup_service_client.py b/google/ads/google_ads/v4/services/billing_setup_service_client.py new file mode 100644 index 000000000..f0bf55b74 --- /dev/null +++ b/google/ads/google_ads/v4/services/billing_setup_service_client.py @@ -0,0 +1,297 @@ +# -*- coding: utf-8 -*- +# +# 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. + +"""Accesses the google.ads.googleads.v4.services BillingSetupService API.""" + +import pkg_resources +import warnings + +from google.oauth2 import service_account +import google.api_core.gapic_v1.client_info +import google.api_core.gapic_v1.config +import google.api_core.gapic_v1.method +import google.api_core.gapic_v1.routing_header +import google.api_core.grpc_helpers +import google.api_core.path_template + +from google.ads.google_ads.v4.services import billing_setup_service_client_config +from google.ads.google_ads.v4.services.transports import billing_setup_service_grpc_transport +from google.ads.google_ads.v4.proto.services import billing_setup_service_pb2 + + + +_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( + 'google-ads', +).version + + +class BillingSetupServiceClient(object): + """ + A service for designating the business entity responsible for accrued costs. + + A billing setup is associated with a payments account. Billing-related + activity for all billing setups associated with a particular payments account + will appear on a single invoice generated monthly. + + Mutates: + The REMOVE operation cancels a pending billing setup. + The CREATE operation creates a new billing setup. + """ + + SERVICE_ADDRESS = 'googleads.googleapis.com:443' + """The default address of the service.""" + + # The name of the interface for this client. This is the key used to + # find the method configuration in the client_config dictionary. + _INTERFACE_NAME = 'google.ads.googleads.v4.services.BillingSetupService' + + + @classmethod + def from_service_account_file(cls, filename, *args, **kwargs): + """Creates an instance of this client using the provided credentials + file. + + Args: + filename (str): The path to the service account private key json + file. + args: Additional arguments to pass to the constructor. + kwargs: Additional arguments to pass to the constructor. + + Returns: + BillingSetupServiceClient: The constructed client. + """ + credentials = service_account.Credentials.from_service_account_file( + filename) + kwargs['credentials'] = credentials + return cls(*args, **kwargs) + + from_service_account_json = from_service_account_file + + + @classmethod + def billing_setup_path(cls, customer, billing_setup): + """Return a fully-qualified billing_setup string.""" + return google.api_core.path_template.expand( + 'customers/{customer}/billingSetups/{billing_setup}', + customer=customer, + billing_setup=billing_setup, + ) + + def __init__(self, transport=None, channel=None, credentials=None, + client_config=None, client_info=None): + """Constructor. + + Args: + transport (Union[~.BillingSetupServiceGrpcTransport, + Callable[[~.Credentials, type], ~.BillingSetupServiceGrpcTransport]): A transport + instance, responsible for actually making the API calls. + The default transport uses the gRPC protocol. + This argument may also be a callable which returns a + transport instance. Callables will be sent the credentials + as the first argument and the default transport class as + the second argument. + channel (grpc.Channel): DEPRECATED. A ``Channel`` instance + through which to make calls. This argument is mutually exclusive + with ``credentials``; providing both will raise an exception. + credentials (google.auth.credentials.Credentials): The + authorization credentials to attach to requests. These + credentials identify this application to the service. If none + are specified, the client will attempt to ascertain the + credentials from the environment. + This argument is mutually exclusive with providing a + transport instance to ``transport``; doing so will raise + an exception. + client_config (dict): DEPRECATED. A dictionary of call options for + each method. If not specified, the default configuration is used. + client_info (google.api_core.gapic_v1.client_info.ClientInfo): + The client info used to send a user-agent string along with + API requests. If ``None``, then default info will be used. + Generally, you only need to set this if you're developing + your own client library. + """ + # Raise deprecation warnings for things we want to go away. + if client_config is not None: + warnings.warn('The `client_config` argument is deprecated.', + PendingDeprecationWarning, stacklevel=2) + else: + client_config = billing_setup_service_client_config.config + + if channel: + warnings.warn('The `channel` argument is deprecated; use ' + '`transport` instead.', + PendingDeprecationWarning, stacklevel=2) + + # Instantiate the transport. + # The transport is responsible for handling serialization and + # deserialization and actually sending data to the service. + if transport: + if callable(transport): + self.transport = transport( + credentials=credentials, + default_class=billing_setup_service_grpc_transport.BillingSetupServiceGrpcTransport, + ) + else: + if credentials: + raise ValueError( + 'Received both a transport instance and ' + 'credentials; these are mutually exclusive.' + ) + self.transport = transport + else: + self.transport = billing_setup_service_grpc_transport.BillingSetupServiceGrpcTransport( + address=self.SERVICE_ADDRESS, + channel=channel, + credentials=credentials, + ) + + if client_info is None: + client_info = google.api_core.gapic_v1.client_info.ClientInfo( + gapic_version=_GAPIC_LIBRARY_VERSION, + ) + else: + client_info.gapic_version = _GAPIC_LIBRARY_VERSION + self._client_info = client_info + + # Parse out the default settings for retry and timeout for each RPC + # from the client configuration. + # (Ordinarily, these are the defaults specified in the `*_config.py` + # file next to this one.) + self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( + client_config['interfaces'][self._INTERFACE_NAME], + ) + + # Save a dictionary of cached API call functions. + # These are the actual callables which invoke the proper + # transport methods, wrapped with `wrap_method` to add retry, + # timeout, and the like. + self._inner_api_calls = {} + + # Service calls + def get_billing_setup( + self, + resource_name, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None): + """ + Returns a billing setup. + + Args: + resource_name (str): Required. The resource name of the billing setup to fetch. + retry (Optional[google.api_core.retry.Retry]): A retry object used + to retry requests. If ``None`` is specified, requests will not + be retried. + timeout (Optional[float]): The amount of time, in seconds, to wait + for the request to complete. Note that if ``retry`` is + specified, the timeout applies to each individual attempt. + metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata + that is provided to the method. + + Returns: + A :class:`~google.ads.googleads_v4.types.BillingSetup` instance. + + Raises: + google.api_core.exceptions.GoogleAPICallError: If the request + failed for any reason. + google.api_core.exceptions.RetryError: If the request failed due + to a retryable error and retry attempts failed. + ValueError: If the parameters are invalid. + """ + # Wrap the transport method to add retry and timeout logic. + if 'get_billing_setup' not in self._inner_api_calls: + self._inner_api_calls['get_billing_setup'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.get_billing_setup, + default_retry=self._method_configs['GetBillingSetup'].retry, + default_timeout=self._method_configs['GetBillingSetup'].timeout, + client_info=self._client_info, + ) + + request = billing_setup_service_pb2.GetBillingSetupRequest( + resource_name=resource_name, + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [('resource_name', resource_name)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata(routing_header) + metadata.append(routing_metadata) + + return self._inner_api_calls['get_billing_setup'](request, retry=retry, timeout=timeout, metadata=metadata) + + def mutate_billing_setup( + self, + customer_id, + operation_, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None): + """ + Creates a billing setup, or cancels an existing billing setup. + + Args: + customer_id (str): Required. Id of the customer to apply the billing setup mutate operation to. + operation_ (Union[dict, ~google.ads.googleads_v4.types.BillingSetupOperation]): Required. The operation to perform. + + If a dict is provided, it must be of the same form as the protobuf + message :class:`~google.ads.googleads_v4.types.BillingSetupOperation` + retry (Optional[google.api_core.retry.Retry]): A retry object used + to retry requests. If ``None`` is specified, requests will not + be retried. + timeout (Optional[float]): The amount of time, in seconds, to wait + for the request to complete. Note that if ``retry`` is + specified, the timeout applies to each individual attempt. + metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata + that is provided to the method. + + Returns: + A :class:`~google.ads.googleads_v4.types.MutateBillingSetupResponse` instance. + + Raises: + google.api_core.exceptions.GoogleAPICallError: If the request + failed for any reason. + google.api_core.exceptions.RetryError: If the request failed due + to a retryable error and retry attempts failed. + ValueError: If the parameters are invalid. + """ + # Wrap the transport method to add retry and timeout logic. + if 'mutate_billing_setup' not in self._inner_api_calls: + self._inner_api_calls['mutate_billing_setup'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.mutate_billing_setup, + default_retry=self._method_configs['MutateBillingSetup'].retry, + default_timeout=self._method_configs['MutateBillingSetup'].timeout, + client_info=self._client_info, + ) + + request = billing_setup_service_pb2.MutateBillingSetupRequest( + customer_id=customer_id, + operation=operation_, + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [('customer_id', customer_id)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata(routing_header) + metadata.append(routing_metadata) + + return self._inner_api_calls['mutate_billing_setup'](request, retry=retry, timeout=timeout, metadata=metadata) diff --git a/google/ads/google_ads/v4/services/billing_setup_service_client_config.py b/google/ads/google_ads/v4/services/billing_setup_service_client_config.py new file mode 100644 index 000000000..7be54c190 --- /dev/null +++ b/google/ads/google_ads/v4/services/billing_setup_service_client_config.py @@ -0,0 +1,36 @@ +config = { + "interfaces": { + "google.ads.googleads.v4.services.BillingSetupService": { + "retry_codes": { + "idempotent": [ + "DEADLINE_EXCEEDED", + "UNAVAILABLE" + ], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 5000, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 3600000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 3600000, + "total_timeout_millis": 3600000 + } + }, + "methods": { + "GetBillingSetup": { + "timeout_millis": 60000, + "retry_codes_name": "idempotent", + "retry_params_name": "default" + }, + "MutateBillingSetup": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + } + } + } + } +} diff --git a/google/ads/google_ads/v1/services/campaign_audience_view_service_client.py b/google/ads/google_ads/v4/services/campaign_audience_view_service_client.py similarity index 78% rename from google/ads/google_ads/v1/services/campaign_audience_view_service_client.py rename to google/ads/google_ads/v4/services/campaign_audience_view_service_client.py index 702f0039b..b6593a8fe 100644 --- a/google/ads/google_ads/v1/services/campaign_audience_view_service_client.py +++ b/google/ads/google_ads/v4/services/campaign_audience_view_service_client.py @@ -13,7 +13,8 @@ # 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. -"""Accesses the google.ads.googleads.v1.services CampaignAudienceViewService API.""" + +"""Accesses the google.ads.googleads.v4.services CampaignAudienceViewService API.""" import pkg_resources import warnings @@ -22,15 +23,19 @@ import google.api_core.gapic_v1.client_info import google.api_core.gapic_v1.config import google.api_core.gapic_v1.method +import google.api_core.gapic_v1.routing_header import google.api_core.grpc_helpers import google.api_core.path_template -from google.ads.google_ads.v1.services import campaign_audience_view_service_client_config -from google.ads.google_ads.v1.services.transports import campaign_audience_view_service_grpc_transport -from google.ads.google_ads.v1.proto.services import campaign_audience_view_service_pb2 +from google.ads.google_ads.v4.services import campaign_audience_view_service_client_config +from google.ads.google_ads.v4.services.transports import campaign_audience_view_service_grpc_transport +from google.ads.google_ads.v4.proto.services import campaign_audience_view_service_pb2 + + _GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( - 'google-ads', ).version + 'google-ads', +).version class CampaignAudienceViewServiceClient(object): @@ -41,7 +46,8 @@ class CampaignAudienceViewServiceClient(object): # The name of the interface for this client. This is the key used to # find the method configuration in the client_config dictionary. - _INTERFACE_NAME = 'google.ads.googleads.v1.services.CampaignAudienceViewService' + _INTERFACE_NAME = 'google.ads.googleads.v4.services.CampaignAudienceViewService' + @classmethod def from_service_account_file(cls, filename, *args, **kwargs): @@ -64,6 +70,7 @@ def from_service_account_file(cls, filename, *args, **kwargs): from_service_account_json = from_service_account_file + @classmethod def campaign_audience_view_path(cls, customer, campaign_audience_view): """Return a fully-qualified campaign_audience_view string.""" @@ -73,12 +80,8 @@ def campaign_audience_view_path(cls, customer, campaign_audience_view): campaign_audience_view=campaign_audience_view, ) - def __init__(self, - transport=None, - channel=None, - credentials=None, - client_config=None, - client_info=None): + def __init__(self, transport=None, channel=None, credentials=None, + client_config=None, client_info=None): """Constructor. Args: @@ -111,19 +114,15 @@ def __init__(self, """ # Raise deprecation warnings for things we want to go away. if client_config is not None: - warnings.warn( - 'The `client_config` argument is deprecated.', - PendingDeprecationWarning, - stacklevel=2) + warnings.warn('The `client_config` argument is deprecated.', + PendingDeprecationWarning, stacklevel=2) else: client_config = campaign_audience_view_service_client_config.config if channel: - warnings.warn( - 'The `channel` argument is deprecated; use ' - '`transport` instead.', - PendingDeprecationWarning, - stacklevel=2) + warnings.warn('The `channel` argument is deprecated; use ' + '`transport` instead.', + PendingDeprecationWarning, stacklevel=2) # Instantiate the transport. # The transport is responsible for handling serialization and @@ -132,14 +131,14 @@ def __init__(self, if callable(transport): self.transport = transport( credentials=credentials, - default_class=campaign_audience_view_service_grpc_transport - .CampaignAudienceViewServiceGrpcTransport, + default_class=campaign_audience_view_service_grpc_transport.CampaignAudienceViewServiceGrpcTransport, ) else: if credentials: raise ValueError( 'Received both a transport instance and ' - 'credentials; these are mutually exclusive.') + 'credentials; these are mutually exclusive.' + ) self.transport = transport else: self.transport = campaign_audience_view_service_grpc_transport.CampaignAudienceViewServiceGrpcTransport( @@ -150,7 +149,8 @@ def __init__(self, if client_info is None: client_info = google.api_core.gapic_v1.client_info.ClientInfo( - gapic_version=_GAPIC_LIBRARY_VERSION, ) + gapic_version=_GAPIC_LIBRARY_VERSION, + ) else: client_info.gapic_version = _GAPIC_LIBRARY_VERSION self._client_info = client_info @@ -160,7 +160,8 @@ def __init__(self, # (Ordinarily, these are the defaults specified in the `*_config.py` # file next to this one.) self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( - client_config['interfaces'][self._INTERFACE_NAME], ) + client_config['interfaces'][self._INTERFACE_NAME], + ) # Save a dictionary of cached API call functions. # These are the actual callables which invoke the proper @@ -179,7 +180,7 @@ def get_campaign_audience_view( Returns the requested campaign audience view in full detail. Args: - resource_name (str): The resource name of the campaign audience view to fetch. + resource_name (str): Required. The resource name of the campaign audience view to fetch. retry (Optional[google.api_core.retry.Retry]): A retry object used to retry requests. If ``None`` is specified, requests will not be retried. @@ -190,7 +191,7 @@ def get_campaign_audience_view( that is provided to the method. Returns: - A :class:`~google.ads.googleads_v1.types.CampaignAudienceView` instance. + A :class:`~google.ads.googleads_v4.types.CampaignAudienceView` instance. Raises: google.api_core.exceptions.GoogleAPICallError: If the request @@ -201,17 +202,25 @@ def get_campaign_audience_view( """ # Wrap the transport method to add retry and timeout logic. if 'get_campaign_audience_view' not in self._inner_api_calls: - self._inner_api_calls[ - 'get_campaign_audience_view'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.get_campaign_audience_view, - default_retry=self. - _method_configs['GetCampaignAudienceView'].retry, - default_timeout=self. - _method_configs['GetCampaignAudienceView'].timeout, - client_info=self._client_info, - ) + self._inner_api_calls['get_campaign_audience_view'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.get_campaign_audience_view, + default_retry=self._method_configs['GetCampaignAudienceView'].retry, + default_timeout=self._method_configs['GetCampaignAudienceView'].timeout, + client_info=self._client_info, + ) request = campaign_audience_view_service_pb2.GetCampaignAudienceViewRequest( - resource_name=resource_name, ) - return self._inner_api_calls['get_campaign_audience_view']( - request, retry=retry, timeout=timeout, metadata=metadata) + resource_name=resource_name, + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [('resource_name', resource_name)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata(routing_header) + metadata.append(routing_metadata) + + return self._inner_api_calls['get_campaign_audience_view'](request, retry=retry, timeout=timeout, metadata=metadata) diff --git a/google/ads/google_ads/v4/services/campaign_audience_view_service_client_config.py b/google/ads/google_ads/v4/services/campaign_audience_view_service_client_config.py new file mode 100644 index 000000000..296fa5765 --- /dev/null +++ b/google/ads/google_ads/v4/services/campaign_audience_view_service_client_config.py @@ -0,0 +1,31 @@ +config = { + "interfaces": { + "google.ads.googleads.v4.services.CampaignAudienceViewService": { + "retry_codes": { + "idempotent": [ + "DEADLINE_EXCEEDED", + "UNAVAILABLE" + ], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 5000, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 3600000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 3600000, + "total_timeout_millis": 3600000 + } + }, + "methods": { + "GetCampaignAudienceView": { + "timeout_millis": 60000, + "retry_codes_name": "idempotent", + "retry_params_name": "default" + } + } + } + } +} diff --git a/google/ads/google_ads/v1/services/campaign_bid_modifier_service_client.py b/google/ads/google_ads/v4/services/campaign_bid_modifier_service_client.py similarity index 75% rename from google/ads/google_ads/v1/services/campaign_bid_modifier_service_client.py rename to google/ads/google_ads/v4/services/campaign_bid_modifier_service_client.py index 00bc9005b..a452eca76 100644 --- a/google/ads/google_ads/v1/services/campaign_bid_modifier_service_client.py +++ b/google/ads/google_ads/v4/services/campaign_bid_modifier_service_client.py @@ -13,7 +13,8 @@ # 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. -"""Accesses the google.ads.googleads.v1.services CampaignBidModifierService API.""" + +"""Accesses the google.ads.googleads.v4.services CampaignBidModifierService API.""" import pkg_resources import warnings @@ -22,15 +23,19 @@ import google.api_core.gapic_v1.client_info import google.api_core.gapic_v1.config import google.api_core.gapic_v1.method +import google.api_core.gapic_v1.routing_header import google.api_core.grpc_helpers import google.api_core.path_template -from google.ads.google_ads.v1.services import campaign_bid_modifier_service_client_config -from google.ads.google_ads.v1.services.transports import campaign_bid_modifier_service_grpc_transport -from google.ads.google_ads.v1.proto.services import campaign_bid_modifier_service_pb2 +from google.ads.google_ads.v4.services import campaign_bid_modifier_service_client_config +from google.ads.google_ads.v4.services.transports import campaign_bid_modifier_service_grpc_transport +from google.ads.google_ads.v4.proto.services import campaign_bid_modifier_service_pb2 + + _GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( - 'google-ads', ).version + 'google-ads', +).version class CampaignBidModifierServiceClient(object): @@ -41,7 +46,8 @@ class CampaignBidModifierServiceClient(object): # The name of the interface for this client. This is the key used to # find the method configuration in the client_config dictionary. - _INTERFACE_NAME = 'google.ads.googleads.v1.services.CampaignBidModifierService' + _INTERFACE_NAME = 'google.ads.googleads.v4.services.CampaignBidModifierService' + @classmethod def from_service_account_file(cls, filename, *args, **kwargs): @@ -64,6 +70,7 @@ def from_service_account_file(cls, filename, *args, **kwargs): from_service_account_json = from_service_account_file + @classmethod def campaign_bid_modifier_path(cls, customer, campaign_bid_modifier): """Return a fully-qualified campaign_bid_modifier string.""" @@ -73,12 +80,8 @@ def campaign_bid_modifier_path(cls, customer, campaign_bid_modifier): campaign_bid_modifier=campaign_bid_modifier, ) - def __init__(self, - transport=None, - channel=None, - credentials=None, - client_config=None, - client_info=None): + def __init__(self, transport=None, channel=None, credentials=None, + client_config=None, client_info=None): """Constructor. Args: @@ -111,19 +114,15 @@ def __init__(self, """ # Raise deprecation warnings for things we want to go away. if client_config is not None: - warnings.warn( - 'The `client_config` argument is deprecated.', - PendingDeprecationWarning, - stacklevel=2) + warnings.warn('The `client_config` argument is deprecated.', + PendingDeprecationWarning, stacklevel=2) else: client_config = campaign_bid_modifier_service_client_config.config if channel: - warnings.warn( - 'The `channel` argument is deprecated; use ' - '`transport` instead.', - PendingDeprecationWarning, - stacklevel=2) + warnings.warn('The `channel` argument is deprecated; use ' + '`transport` instead.', + PendingDeprecationWarning, stacklevel=2) # Instantiate the transport. # The transport is responsible for handling serialization and @@ -132,14 +131,14 @@ def __init__(self, if callable(transport): self.transport = transport( credentials=credentials, - default_class=campaign_bid_modifier_service_grpc_transport. - CampaignBidModifierServiceGrpcTransport, + default_class=campaign_bid_modifier_service_grpc_transport.CampaignBidModifierServiceGrpcTransport, ) else: if credentials: raise ValueError( 'Received both a transport instance and ' - 'credentials; these are mutually exclusive.') + 'credentials; these are mutually exclusive.' + ) self.transport = transport else: self.transport = campaign_bid_modifier_service_grpc_transport.CampaignBidModifierServiceGrpcTransport( @@ -150,7 +149,8 @@ def __init__(self, if client_info is None: client_info = google.api_core.gapic_v1.client_info.ClientInfo( - gapic_version=_GAPIC_LIBRARY_VERSION, ) + gapic_version=_GAPIC_LIBRARY_VERSION, + ) else: client_info.gapic_version = _GAPIC_LIBRARY_VERSION self._client_info = client_info @@ -160,7 +160,8 @@ def __init__(self, # (Ordinarily, these are the defaults specified in the `*_config.py` # file next to this one.) self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( - client_config['interfaces'][self._INTERFACE_NAME], ) + client_config['interfaces'][self._INTERFACE_NAME], + ) # Save a dictionary of cached API call functions. # These are the actual callables which invoke the proper @@ -179,7 +180,7 @@ def get_campaign_bid_modifier( Returns the requested campaign bid modifier in full detail. Args: - resource_name (str): The resource name of the campaign bid modifier to fetch. + resource_name (str): Required. The resource name of the campaign bid modifier to fetch. retry (Optional[google.api_core.retry.Retry]): A retry object used to retry requests. If ``None`` is specified, requests will not be retried. @@ -190,7 +191,7 @@ def get_campaign_bid_modifier( that is provided to the method. Returns: - A :class:`~google.ads.googleads_v1.types.CampaignBidModifier` instance. + A :class:`~google.ads.googleads_v4.types.CampaignBidModifier` instance. Raises: google.api_core.exceptions.GoogleAPICallError: If the request @@ -201,20 +202,28 @@ def get_campaign_bid_modifier( """ # Wrap the transport method to add retry and timeout logic. if 'get_campaign_bid_modifier' not in self._inner_api_calls: - self._inner_api_calls[ - 'get_campaign_bid_modifier'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.get_campaign_bid_modifier, - default_retry=self. - _method_configs['GetCampaignBidModifier'].retry, - default_timeout=self. - _method_configs['GetCampaignBidModifier'].timeout, - client_info=self._client_info, - ) + self._inner_api_calls['get_campaign_bid_modifier'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.get_campaign_bid_modifier, + default_retry=self._method_configs['GetCampaignBidModifier'].retry, + default_timeout=self._method_configs['GetCampaignBidModifier'].timeout, + client_info=self._client_info, + ) request = campaign_bid_modifier_service_pb2.GetCampaignBidModifierRequest( - resource_name=resource_name, ) - return self._inner_api_calls['get_campaign_bid_modifier']( - request, retry=retry, timeout=timeout, metadata=metadata) + resource_name=resource_name, + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [('resource_name', resource_name)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata(routing_header) + metadata.append(routing_metadata) + + return self._inner_api_calls['get_campaign_bid_modifier'](request, retry=retry, timeout=timeout, metadata=metadata) def mutate_campaign_bid_modifiers( self, @@ -230,11 +239,11 @@ def mutate_campaign_bid_modifiers( Operation statuses are returned. Args: - customer_id (str): ID of the customer whose campaign bid modifiers are being modified. - operations (list[Union[dict, ~google.ads.googleads_v1.types.CampaignBidModifierOperation]]): The list of operations to perform on individual campaign bid modifiers. + customer_id (str): Required. ID of the customer whose campaign bid modifiers are being modified. + operations (list[Union[dict, ~google.ads.googleads_v4.types.CampaignBidModifierOperation]]): Required. The list of operations to perform on individual campaign bid modifiers. If a dict is provided, it must be of the same form as the protobuf - message :class:`~google.ads.googleads_v1.types.CampaignBidModifierOperation` + message :class:`~google.ads.googleads_v4.types.CampaignBidModifierOperation` partial_failure (bool): If true, successful operations will be carried out and invalid operations will return errors. If false, all operations will be carried out in one transaction if and only if they are all valid. @@ -251,7 +260,7 @@ def mutate_campaign_bid_modifiers( that is provided to the method. Returns: - A :class:`~google.ads.googleads_v1.types.MutateCampaignBidModifiersResponse` instance. + A :class:`~google.ads.googleads_v4.types.MutateCampaignBidModifiersResponse` instance. Raises: google.api_core.exceptions.GoogleAPICallError: If the request @@ -262,15 +271,12 @@ def mutate_campaign_bid_modifiers( """ # Wrap the transport method to add retry and timeout logic. if 'mutate_campaign_bid_modifiers' not in self._inner_api_calls: - self._inner_api_calls[ - 'mutate_campaign_bid_modifiers'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.mutate_campaign_bid_modifiers, - default_retry=self. - _method_configs['MutateCampaignBidModifiers'].retry, - default_timeout=self. - _method_configs['MutateCampaignBidModifiers'].timeout, - client_info=self._client_info, - ) + self._inner_api_calls['mutate_campaign_bid_modifiers'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.mutate_campaign_bid_modifiers, + default_retry=self._method_configs['MutateCampaignBidModifiers'].retry, + default_timeout=self._method_configs['MutateCampaignBidModifiers'].timeout, + client_info=self._client_info, + ) request = campaign_bid_modifier_service_pb2.MutateCampaignBidModifiersRequest( customer_id=customer_id, @@ -278,5 +284,15 @@ def mutate_campaign_bid_modifiers( partial_failure=partial_failure, validate_only=validate_only, ) - return self._inner_api_calls['mutate_campaign_bid_modifiers']( - request, retry=retry, timeout=timeout, metadata=metadata) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [('customer_id', customer_id)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata(routing_header) + metadata.append(routing_metadata) + + return self._inner_api_calls['mutate_campaign_bid_modifiers'](request, retry=retry, timeout=timeout, metadata=metadata) diff --git a/google/ads/google_ads/v4/services/campaign_bid_modifier_service_client_config.py b/google/ads/google_ads/v4/services/campaign_bid_modifier_service_client_config.py new file mode 100644 index 000000000..c825cc01d --- /dev/null +++ b/google/ads/google_ads/v4/services/campaign_bid_modifier_service_client_config.py @@ -0,0 +1,36 @@ +config = { + "interfaces": { + "google.ads.googleads.v4.services.CampaignBidModifierService": { + "retry_codes": { + "idempotent": [ + "DEADLINE_EXCEEDED", + "UNAVAILABLE" + ], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 5000, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 3600000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 3600000, + "total_timeout_millis": 3600000 + } + }, + "methods": { + "GetCampaignBidModifier": { + "timeout_millis": 60000, + "retry_codes_name": "idempotent", + "retry_params_name": "default" + }, + "MutateCampaignBidModifiers": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + } + } + } + } +} diff --git a/google/ads/google_ads/v4/services/campaign_budget_service_client.py b/google/ads/google_ads/v4/services/campaign_budget_service_client.py new file mode 100644 index 000000000..5a157cdf4 --- /dev/null +++ b/google/ads/google_ads/v4/services/campaign_budget_service_client.py @@ -0,0 +1,298 @@ +# -*- coding: utf-8 -*- +# +# 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. + +"""Accesses the google.ads.googleads.v4.services CampaignBudgetService API.""" + +import pkg_resources +import warnings + +from google.oauth2 import service_account +import google.api_core.gapic_v1.client_info +import google.api_core.gapic_v1.config +import google.api_core.gapic_v1.method +import google.api_core.gapic_v1.routing_header +import google.api_core.grpc_helpers +import google.api_core.path_template + +from google.ads.google_ads.v4.services import campaign_budget_service_client_config +from google.ads.google_ads.v4.services.transports import campaign_budget_service_grpc_transport +from google.ads.google_ads.v4.proto.services import campaign_budget_service_pb2 + + + +_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( + 'google-ads', +).version + + +class CampaignBudgetServiceClient(object): + """Service to manage campaign budgets.""" + + SERVICE_ADDRESS = 'googleads.googleapis.com:443' + """The default address of the service.""" + + # The name of the interface for this client. This is the key used to + # find the method configuration in the client_config dictionary. + _INTERFACE_NAME = 'google.ads.googleads.v4.services.CampaignBudgetService' + + + @classmethod + def from_service_account_file(cls, filename, *args, **kwargs): + """Creates an instance of this client using the provided credentials + file. + + Args: + filename (str): The path to the service account private key json + file. + args: Additional arguments to pass to the constructor. + kwargs: Additional arguments to pass to the constructor. + + Returns: + CampaignBudgetServiceClient: The constructed client. + """ + credentials = service_account.Credentials.from_service_account_file( + filename) + kwargs['credentials'] = credentials + return cls(*args, **kwargs) + + from_service_account_json = from_service_account_file + + + @classmethod + def campaign_budget_path(cls, customer, campaign_budget): + """Return a fully-qualified campaign_budget string.""" + return google.api_core.path_template.expand( + 'customers/{customer}/campaignBudgets/{campaign_budget}', + customer=customer, + campaign_budget=campaign_budget, + ) + + def __init__(self, transport=None, channel=None, credentials=None, + client_config=None, client_info=None): + """Constructor. + + Args: + transport (Union[~.CampaignBudgetServiceGrpcTransport, + Callable[[~.Credentials, type], ~.CampaignBudgetServiceGrpcTransport]): A transport + instance, responsible for actually making the API calls. + The default transport uses the gRPC protocol. + This argument may also be a callable which returns a + transport instance. Callables will be sent the credentials + as the first argument and the default transport class as + the second argument. + channel (grpc.Channel): DEPRECATED. A ``Channel`` instance + through which to make calls. This argument is mutually exclusive + with ``credentials``; providing both will raise an exception. + credentials (google.auth.credentials.Credentials): The + authorization credentials to attach to requests. These + credentials identify this application to the service. If none + are specified, the client will attempt to ascertain the + credentials from the environment. + This argument is mutually exclusive with providing a + transport instance to ``transport``; doing so will raise + an exception. + client_config (dict): DEPRECATED. A dictionary of call options for + each method. If not specified, the default configuration is used. + client_info (google.api_core.gapic_v1.client_info.ClientInfo): + The client info used to send a user-agent string along with + API requests. If ``None``, then default info will be used. + Generally, you only need to set this if you're developing + your own client library. + """ + # Raise deprecation warnings for things we want to go away. + if client_config is not None: + warnings.warn('The `client_config` argument is deprecated.', + PendingDeprecationWarning, stacklevel=2) + else: + client_config = campaign_budget_service_client_config.config + + if channel: + warnings.warn('The `channel` argument is deprecated; use ' + '`transport` instead.', + PendingDeprecationWarning, stacklevel=2) + + # Instantiate the transport. + # The transport is responsible for handling serialization and + # deserialization and actually sending data to the service. + if transport: + if callable(transport): + self.transport = transport( + credentials=credentials, + default_class=campaign_budget_service_grpc_transport.CampaignBudgetServiceGrpcTransport, + ) + else: + if credentials: + raise ValueError( + 'Received both a transport instance and ' + 'credentials; these are mutually exclusive.' + ) + self.transport = transport + else: + self.transport = campaign_budget_service_grpc_transport.CampaignBudgetServiceGrpcTransport( + address=self.SERVICE_ADDRESS, + channel=channel, + credentials=credentials, + ) + + if client_info is None: + client_info = google.api_core.gapic_v1.client_info.ClientInfo( + gapic_version=_GAPIC_LIBRARY_VERSION, + ) + else: + client_info.gapic_version = _GAPIC_LIBRARY_VERSION + self._client_info = client_info + + # Parse out the default settings for retry and timeout for each RPC + # from the client configuration. + # (Ordinarily, these are the defaults specified in the `*_config.py` + # file next to this one.) + self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( + client_config['interfaces'][self._INTERFACE_NAME], + ) + + # Save a dictionary of cached API call functions. + # These are the actual callables which invoke the proper + # transport methods, wrapped with `wrap_method` to add retry, + # timeout, and the like. + self._inner_api_calls = {} + + # Service calls + def get_campaign_budget( + self, + resource_name, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None): + """ + Returns the requested Campaign Budget in full detail. + + Args: + resource_name (str): Required. The resource name of the campaign budget to fetch. + retry (Optional[google.api_core.retry.Retry]): A retry object used + to retry requests. If ``None`` is specified, requests will not + be retried. + timeout (Optional[float]): The amount of time, in seconds, to wait + for the request to complete. Note that if ``retry`` is + specified, the timeout applies to each individual attempt. + metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata + that is provided to the method. + + Returns: + A :class:`~google.ads.googleads_v4.types.CampaignBudget` instance. + + Raises: + google.api_core.exceptions.GoogleAPICallError: If the request + failed for any reason. + google.api_core.exceptions.RetryError: If the request failed due + to a retryable error and retry attempts failed. + ValueError: If the parameters are invalid. + """ + # Wrap the transport method to add retry and timeout logic. + if 'get_campaign_budget' not in self._inner_api_calls: + self._inner_api_calls['get_campaign_budget'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.get_campaign_budget, + default_retry=self._method_configs['GetCampaignBudget'].retry, + default_timeout=self._method_configs['GetCampaignBudget'].timeout, + client_info=self._client_info, + ) + + request = campaign_budget_service_pb2.GetCampaignBudgetRequest( + resource_name=resource_name, + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [('resource_name', resource_name)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata(routing_header) + metadata.append(routing_metadata) + + return self._inner_api_calls['get_campaign_budget'](request, retry=retry, timeout=timeout, metadata=metadata) + + def mutate_campaign_budgets( + self, + customer_id, + operations, + partial_failure=None, + validate_only=None, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None): + """ + Creates, updates, or removes campaign budgets. Operation statuses are + returned. + + Args: + customer_id (str): Required. The ID of the customer whose campaign budgets are being modified. + operations (list[Union[dict, ~google.ads.googleads_v4.types.CampaignBudgetOperation]]): Required. The list of operations to perform on individual campaign budgets. + + If a dict is provided, it must be of the same form as the protobuf + message :class:`~google.ads.googleads_v4.types.CampaignBudgetOperation` + partial_failure (bool): If true, successful operations will be carried out and invalid + operations will return errors. If false, all operations will be carried + out in one transaction if and only if they are all valid. + Default is false. + validate_only (bool): If true, the request is validated but not executed. Only errors are + returned, not results. + retry (Optional[google.api_core.retry.Retry]): A retry object used + to retry requests. If ``None`` is specified, requests will not + be retried. + timeout (Optional[float]): The amount of time, in seconds, to wait + for the request to complete. Note that if ``retry`` is + specified, the timeout applies to each individual attempt. + metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata + that is provided to the method. + + Returns: + A :class:`~google.ads.googleads_v4.types.MutateCampaignBudgetsResponse` instance. + + Raises: + google.api_core.exceptions.GoogleAPICallError: If the request + failed for any reason. + google.api_core.exceptions.RetryError: If the request failed due + to a retryable error and retry attempts failed. + ValueError: If the parameters are invalid. + """ + # Wrap the transport method to add retry and timeout logic. + if 'mutate_campaign_budgets' not in self._inner_api_calls: + self._inner_api_calls['mutate_campaign_budgets'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.mutate_campaign_budgets, + default_retry=self._method_configs['MutateCampaignBudgets'].retry, + default_timeout=self._method_configs['MutateCampaignBudgets'].timeout, + client_info=self._client_info, + ) + + request = campaign_budget_service_pb2.MutateCampaignBudgetsRequest( + customer_id=customer_id, + operations=operations, + partial_failure=partial_failure, + validate_only=validate_only, + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [('customer_id', customer_id)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata(routing_header) + metadata.append(routing_metadata) + + return self._inner_api_calls['mutate_campaign_budgets'](request, retry=retry, timeout=timeout, metadata=metadata) diff --git a/google/ads/google_ads/v4/services/campaign_budget_service_client_config.py b/google/ads/google_ads/v4/services/campaign_budget_service_client_config.py new file mode 100644 index 000000000..815a5f20c --- /dev/null +++ b/google/ads/google_ads/v4/services/campaign_budget_service_client_config.py @@ -0,0 +1,36 @@ +config = { + "interfaces": { + "google.ads.googleads.v4.services.CampaignBudgetService": { + "retry_codes": { + "idempotent": [ + "DEADLINE_EXCEEDED", + "UNAVAILABLE" + ], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 5000, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 3600000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 3600000, + "total_timeout_millis": 3600000 + } + }, + "methods": { + "GetCampaignBudget": { + "timeout_millis": 60000, + "retry_codes_name": "idempotent", + "retry_params_name": "default" + }, + "MutateCampaignBudgets": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + } + } + } + } +} diff --git a/google/ads/google_ads/v4/services/campaign_criterion_service_client.py b/google/ads/google_ads/v4/services/campaign_criterion_service_client.py new file mode 100644 index 000000000..30872d952 --- /dev/null +++ b/google/ads/google_ads/v4/services/campaign_criterion_service_client.py @@ -0,0 +1,297 @@ +# -*- coding: utf-8 -*- +# +# 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. + +"""Accesses the google.ads.googleads.v4.services CampaignCriterionService API.""" + +import pkg_resources +import warnings + +from google.oauth2 import service_account +import google.api_core.gapic_v1.client_info +import google.api_core.gapic_v1.config +import google.api_core.gapic_v1.method +import google.api_core.gapic_v1.routing_header +import google.api_core.grpc_helpers +import google.api_core.path_template + +from google.ads.google_ads.v4.services import campaign_criterion_service_client_config +from google.ads.google_ads.v4.services.transports import campaign_criterion_service_grpc_transport +from google.ads.google_ads.v4.proto.services import campaign_criterion_service_pb2 + + + +_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( + 'google-ads', +).version + + +class CampaignCriterionServiceClient(object): + """Service to manage campaign criteria.""" + + SERVICE_ADDRESS = 'googleads.googleapis.com:443' + """The default address of the service.""" + + # The name of the interface for this client. This is the key used to + # find the method configuration in the client_config dictionary. + _INTERFACE_NAME = 'google.ads.googleads.v4.services.CampaignCriterionService' + + + @classmethod + def from_service_account_file(cls, filename, *args, **kwargs): + """Creates an instance of this client using the provided credentials + file. + + Args: + filename (str): The path to the service account private key json + file. + args: Additional arguments to pass to the constructor. + kwargs: Additional arguments to pass to the constructor. + + Returns: + CampaignCriterionServiceClient: The constructed client. + """ + credentials = service_account.Credentials.from_service_account_file( + filename) + kwargs['credentials'] = credentials + return cls(*args, **kwargs) + + from_service_account_json = from_service_account_file + + + @classmethod + def campaign_criteria_path(cls, customer, campaign_criteria): + """Return a fully-qualified campaign_criteria string.""" + return google.api_core.path_template.expand( + 'customers/{customer}/campaignCriteria/{campaign_criteria}', + customer=customer, + campaign_criteria=campaign_criteria, + ) + + def __init__(self, transport=None, channel=None, credentials=None, + client_config=None, client_info=None): + """Constructor. + + Args: + transport (Union[~.CampaignCriterionServiceGrpcTransport, + Callable[[~.Credentials, type], ~.CampaignCriterionServiceGrpcTransport]): A transport + instance, responsible for actually making the API calls. + The default transport uses the gRPC protocol. + This argument may also be a callable which returns a + transport instance. Callables will be sent the credentials + as the first argument and the default transport class as + the second argument. + channel (grpc.Channel): DEPRECATED. A ``Channel`` instance + through which to make calls. This argument is mutually exclusive + with ``credentials``; providing both will raise an exception. + credentials (google.auth.credentials.Credentials): The + authorization credentials to attach to requests. These + credentials identify this application to the service. If none + are specified, the client will attempt to ascertain the + credentials from the environment. + This argument is mutually exclusive with providing a + transport instance to ``transport``; doing so will raise + an exception. + client_config (dict): DEPRECATED. A dictionary of call options for + each method. If not specified, the default configuration is used. + client_info (google.api_core.gapic_v1.client_info.ClientInfo): + The client info used to send a user-agent string along with + API requests. If ``None``, then default info will be used. + Generally, you only need to set this if you're developing + your own client library. + """ + # Raise deprecation warnings for things we want to go away. + if client_config is not None: + warnings.warn('The `client_config` argument is deprecated.', + PendingDeprecationWarning, stacklevel=2) + else: + client_config = campaign_criterion_service_client_config.config + + if channel: + warnings.warn('The `channel` argument is deprecated; use ' + '`transport` instead.', + PendingDeprecationWarning, stacklevel=2) + + # Instantiate the transport. + # The transport is responsible for handling serialization and + # deserialization and actually sending data to the service. + if transport: + if callable(transport): + self.transport = transport( + credentials=credentials, + default_class=campaign_criterion_service_grpc_transport.CampaignCriterionServiceGrpcTransport, + ) + else: + if credentials: + raise ValueError( + 'Received both a transport instance and ' + 'credentials; these are mutually exclusive.' + ) + self.transport = transport + else: + self.transport = campaign_criterion_service_grpc_transport.CampaignCriterionServiceGrpcTransport( + address=self.SERVICE_ADDRESS, + channel=channel, + credentials=credentials, + ) + + if client_info is None: + client_info = google.api_core.gapic_v1.client_info.ClientInfo( + gapic_version=_GAPIC_LIBRARY_VERSION, + ) + else: + client_info.gapic_version = _GAPIC_LIBRARY_VERSION + self._client_info = client_info + + # Parse out the default settings for retry and timeout for each RPC + # from the client configuration. + # (Ordinarily, these are the defaults specified in the `*_config.py` + # file next to this one.) + self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( + client_config['interfaces'][self._INTERFACE_NAME], + ) + + # Save a dictionary of cached API call functions. + # These are the actual callables which invoke the proper + # transport methods, wrapped with `wrap_method` to add retry, + # timeout, and the like. + self._inner_api_calls = {} + + # Service calls + def get_campaign_criterion( + self, + resource_name, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None): + """ + Returns the requested criterion in full detail. + + Args: + resource_name (str): Required. The resource name of the criterion to fetch. + retry (Optional[google.api_core.retry.Retry]): A retry object used + to retry requests. If ``None`` is specified, requests will not + be retried. + timeout (Optional[float]): The amount of time, in seconds, to wait + for the request to complete. Note that if ``retry`` is + specified, the timeout applies to each individual attempt. + metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata + that is provided to the method. + + Returns: + A :class:`~google.ads.googleads_v4.types.CampaignCriterion` instance. + + Raises: + google.api_core.exceptions.GoogleAPICallError: If the request + failed for any reason. + google.api_core.exceptions.RetryError: If the request failed due + to a retryable error and retry attempts failed. + ValueError: If the parameters are invalid. + """ + # Wrap the transport method to add retry and timeout logic. + if 'get_campaign_criterion' not in self._inner_api_calls: + self._inner_api_calls['get_campaign_criterion'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.get_campaign_criterion, + default_retry=self._method_configs['GetCampaignCriterion'].retry, + default_timeout=self._method_configs['GetCampaignCriterion'].timeout, + client_info=self._client_info, + ) + + request = campaign_criterion_service_pb2.GetCampaignCriterionRequest( + resource_name=resource_name, + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [('resource_name', resource_name)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata(routing_header) + metadata.append(routing_metadata) + + return self._inner_api_calls['get_campaign_criterion'](request, retry=retry, timeout=timeout, metadata=metadata) + + def mutate_campaign_criteria( + self, + customer_id, + operations, + partial_failure=None, + validate_only=None, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None): + """ + Creates, updates, or removes criteria. Operation statuses are returned. + + Args: + customer_id (str): Required. The ID of the customer whose criteria are being modified. + operations (list[Union[dict, ~google.ads.googleads_v4.types.CampaignCriterionOperation]]): Required. The list of operations to perform on individual criteria. + + If a dict is provided, it must be of the same form as the protobuf + message :class:`~google.ads.googleads_v4.types.CampaignCriterionOperation` + partial_failure (bool): If true, successful operations will be carried out and invalid + operations will return errors. If false, all operations will be carried + out in one transaction if and only if they are all valid. + Default is false. + validate_only (bool): If true, the request is validated but not executed. Only errors are + returned, not results. + retry (Optional[google.api_core.retry.Retry]): A retry object used + to retry requests. If ``None`` is specified, requests will not + be retried. + timeout (Optional[float]): The amount of time, in seconds, to wait + for the request to complete. Note that if ``retry`` is + specified, the timeout applies to each individual attempt. + metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata + that is provided to the method. + + Returns: + A :class:`~google.ads.googleads_v4.types.MutateCampaignCriteriaResponse` instance. + + Raises: + google.api_core.exceptions.GoogleAPICallError: If the request + failed for any reason. + google.api_core.exceptions.RetryError: If the request failed due + to a retryable error and retry attempts failed. + ValueError: If the parameters are invalid. + """ + # Wrap the transport method to add retry and timeout logic. + if 'mutate_campaign_criteria' not in self._inner_api_calls: + self._inner_api_calls['mutate_campaign_criteria'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.mutate_campaign_criteria, + default_retry=self._method_configs['MutateCampaignCriteria'].retry, + default_timeout=self._method_configs['MutateCampaignCriteria'].timeout, + client_info=self._client_info, + ) + + request = campaign_criterion_service_pb2.MutateCampaignCriteriaRequest( + customer_id=customer_id, + operations=operations, + partial_failure=partial_failure, + validate_only=validate_only, + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [('customer_id', customer_id)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata(routing_header) + metadata.append(routing_metadata) + + return self._inner_api_calls['mutate_campaign_criteria'](request, retry=retry, timeout=timeout, metadata=metadata) diff --git a/google/ads/google_ads/v4/services/campaign_criterion_service_client_config.py b/google/ads/google_ads/v4/services/campaign_criterion_service_client_config.py new file mode 100644 index 000000000..cdf14d073 --- /dev/null +++ b/google/ads/google_ads/v4/services/campaign_criterion_service_client_config.py @@ -0,0 +1,36 @@ +config = { + "interfaces": { + "google.ads.googleads.v4.services.CampaignCriterionService": { + "retry_codes": { + "idempotent": [ + "DEADLINE_EXCEEDED", + "UNAVAILABLE" + ], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 5000, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 3600000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 3600000, + "total_timeout_millis": 3600000 + } + }, + "methods": { + "GetCampaignCriterion": { + "timeout_millis": 60000, + "retry_codes_name": "idempotent", + "retry_params_name": "default" + }, + "MutateCampaignCriteria": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + } + } + } + } +} diff --git a/google/ads/google_ads/v1/services/campaign_criterion_simulation_service_client.py b/google/ads/google_ads/v4/services/campaign_criterion_simulation_service_client.py similarity index 77% rename from google/ads/google_ads/v1/services/campaign_criterion_simulation_service_client.py rename to google/ads/google_ads/v4/services/campaign_criterion_simulation_service_client.py index 9fcaeeb3b..77e6010e5 100644 --- a/google/ads/google_ads/v1/services/campaign_criterion_simulation_service_client.py +++ b/google/ads/google_ads/v4/services/campaign_criterion_simulation_service_client.py @@ -13,7 +13,8 @@ # 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. -"""Accesses the google.ads.googleads.v1.services CampaignCriterionSimulationService API.""" + +"""Accesses the google.ads.googleads.v4.services CampaignCriterionSimulationService API.""" import pkg_resources import warnings @@ -22,15 +23,19 @@ import google.api_core.gapic_v1.client_info import google.api_core.gapic_v1.config import google.api_core.gapic_v1.method +import google.api_core.gapic_v1.routing_header import google.api_core.grpc_helpers import google.api_core.path_template -from google.ads.google_ads.v1.services import campaign_criterion_simulation_service_client_config -from google.ads.google_ads.v1.services.transports import campaign_criterion_simulation_service_grpc_transport -from google.ads.google_ads.v1.proto.services import campaign_criterion_simulation_service_pb2 +from google.ads.google_ads.v4.services import campaign_criterion_simulation_service_client_config +from google.ads.google_ads.v4.services.transports import campaign_criterion_simulation_service_grpc_transport +from google.ads.google_ads.v4.proto.services import campaign_criterion_simulation_service_pb2 + + _GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( - 'google-ads', ).version + 'google-ads', +).version class CampaignCriterionSimulationServiceClient(object): @@ -41,7 +46,8 @@ class CampaignCriterionSimulationServiceClient(object): # The name of the interface for this client. This is the key used to # find the method configuration in the client_config dictionary. - _INTERFACE_NAME = 'google.ads.googleads.v1.services.CampaignCriterionSimulationService' + _INTERFACE_NAME = 'google.ads.googleads.v4.services.CampaignCriterionSimulationService' + @classmethod def from_service_account_file(cls, filename, *args, **kwargs): @@ -64,9 +70,9 @@ def from_service_account_file(cls, filename, *args, **kwargs): from_service_account_json = from_service_account_file + @classmethod - def campaign_criterion_simulation_path(cls, customer, - campaign_criterion_simulation): + def campaign_criterion_simulation_path(cls, customer, campaign_criterion_simulation): """Return a fully-qualified campaign_criterion_simulation string.""" return google.api_core.path_template.expand( 'customers/{customer}/campaignCriterionSimulations/{campaign_criterion_simulation}', @@ -74,12 +80,8 @@ def campaign_criterion_simulation_path(cls, customer, campaign_criterion_simulation=campaign_criterion_simulation, ) - def __init__(self, - transport=None, - channel=None, - credentials=None, - client_config=None, - client_info=None): + def __init__(self, transport=None, channel=None, credentials=None, + client_config=None, client_info=None): """Constructor. Args: @@ -112,19 +114,15 @@ def __init__(self, """ # Raise deprecation warnings for things we want to go away. if client_config is not None: - warnings.warn( - 'The `client_config` argument is deprecated.', - PendingDeprecationWarning, - stacklevel=2) + warnings.warn('The `client_config` argument is deprecated.', + PendingDeprecationWarning, stacklevel=2) else: client_config = campaign_criterion_simulation_service_client_config.config if channel: - warnings.warn( - 'The `channel` argument is deprecated; use ' - '`transport` instead.', - PendingDeprecationWarning, - stacklevel=2) + warnings.warn('The `channel` argument is deprecated; use ' + '`transport` instead.', + PendingDeprecationWarning, stacklevel=2) # Instantiate the transport. # The transport is responsible for handling serialization and @@ -133,15 +131,14 @@ def __init__(self, if callable(transport): self.transport = transport( credentials=credentials, - default_class= - campaign_criterion_simulation_service_grpc_transport. - CampaignCriterionSimulationServiceGrpcTransport, + default_class=campaign_criterion_simulation_service_grpc_transport.CampaignCriterionSimulationServiceGrpcTransport, ) else: if credentials: raise ValueError( 'Received both a transport instance and ' - 'credentials; these are mutually exclusive.') + 'credentials; these are mutually exclusive.' + ) self.transport = transport else: self.transport = campaign_criterion_simulation_service_grpc_transport.CampaignCriterionSimulationServiceGrpcTransport( @@ -152,7 +149,8 @@ def __init__(self, if client_info is None: client_info = google.api_core.gapic_v1.client_info.ClientInfo( - gapic_version=_GAPIC_LIBRARY_VERSION, ) + gapic_version=_GAPIC_LIBRARY_VERSION, + ) else: client_info.gapic_version = _GAPIC_LIBRARY_VERSION self._client_info = client_info @@ -162,7 +160,8 @@ def __init__(self, # (Ordinarily, these are the defaults specified in the `*_config.py` # file next to this one.) self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( - client_config['interfaces'][self._INTERFACE_NAME], ) + client_config['interfaces'][self._INTERFACE_NAME], + ) # Save a dictionary of cached API call functions. # These are the actual callables which invoke the proper @@ -181,7 +180,7 @@ def get_campaign_criterion_simulation( Returns the requested campaign criterion simulation in full detail. Args: - resource_name (str): The resource name of the campaign criterion simulation to fetch. + resource_name (str): Required. The resource name of the campaign criterion simulation to fetch. retry (Optional[google.api_core.retry.Retry]): A retry object used to retry requests. If ``None`` is specified, requests will not be retried. @@ -192,7 +191,7 @@ def get_campaign_criterion_simulation( that is provided to the method. Returns: - A :class:`~google.ads.googleads_v1.types.CampaignCriterionSimulation` instance. + A :class:`~google.ads.googleads_v4.types.CampaignCriterionSimulation` instance. Raises: google.api_core.exceptions.GoogleAPICallError: If the request @@ -203,17 +202,25 @@ def get_campaign_criterion_simulation( """ # Wrap the transport method to add retry and timeout logic. if 'get_campaign_criterion_simulation' not in self._inner_api_calls: - self._inner_api_calls[ - 'get_campaign_criterion_simulation'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.get_campaign_criterion_simulation, - default_retry=self. - _method_configs['GetCampaignCriterionSimulation'].retry, - default_timeout=self. - _method_configs['GetCampaignCriterionSimulation'].timeout, - client_info=self._client_info, - ) + self._inner_api_calls['get_campaign_criterion_simulation'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.get_campaign_criterion_simulation, + default_retry=self._method_configs['GetCampaignCriterionSimulation'].retry, + default_timeout=self._method_configs['GetCampaignCriterionSimulation'].timeout, + client_info=self._client_info, + ) request = campaign_criterion_simulation_service_pb2.GetCampaignCriterionSimulationRequest( - resource_name=resource_name, ) - return self._inner_api_calls['get_campaign_criterion_simulation']( - request, retry=retry, timeout=timeout, metadata=metadata) + resource_name=resource_name, + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [('resource_name', resource_name)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata(routing_header) + metadata.append(routing_metadata) + + return self._inner_api_calls['get_campaign_criterion_simulation'](request, retry=retry, timeout=timeout, metadata=metadata) diff --git a/google/ads/google_ads/v4/services/campaign_criterion_simulation_service_client_config.py b/google/ads/google_ads/v4/services/campaign_criterion_simulation_service_client_config.py new file mode 100644 index 000000000..b1e4a0824 --- /dev/null +++ b/google/ads/google_ads/v4/services/campaign_criterion_simulation_service_client_config.py @@ -0,0 +1,31 @@ +config = { + "interfaces": { + "google.ads.googleads.v4.services.CampaignCriterionSimulationService": { + "retry_codes": { + "idempotent": [ + "DEADLINE_EXCEEDED", + "UNAVAILABLE" + ], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 5000, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 3600000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 3600000, + "total_timeout_millis": 3600000 + } + }, + "methods": { + "GetCampaignCriterionSimulation": { + "timeout_millis": 60000, + "retry_codes_name": "idempotent", + "retry_params_name": "default" + } + } + } + } +} diff --git a/google/ads/google_ads/v4/services/campaign_draft_service_client.py b/google/ads/google_ads/v4/services/campaign_draft_service_client.py new file mode 100644 index 000000000..94304f2c1 --- /dev/null +++ b/google/ads/google_ads/v4/services/campaign_draft_service_client.py @@ -0,0 +1,447 @@ +# -*- coding: utf-8 -*- +# +# 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. + +"""Accesses the google.ads.googleads.v4.services CampaignDraftService API.""" + +import functools +import pkg_resources +import warnings + +from google.oauth2 import service_account +import google.api_core.gapic_v1.client_info +import google.api_core.gapic_v1.config +import google.api_core.gapic_v1.method +import google.api_core.gapic_v1.routing_header +import google.api_core.grpc_helpers +import google.api_core.operation +import google.api_core.operations_v1 +import google.api_core.page_iterator +import google.api_core.path_template + +from google.ads.google_ads.v4.services import campaign_draft_service_client_config +from google.ads.google_ads.v4.services.transports import campaign_draft_service_grpc_transport +from google.ads.google_ads.v4.proto.services import campaign_draft_service_pb2 +from google.protobuf import empty_pb2 + + + +_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( + 'google-ads', +).version + + +class CampaignDraftServiceClient(object): + """Service to manage campaign drafts.""" + + SERVICE_ADDRESS = 'googleads.googleapis.com:443' + """The default address of the service.""" + + # The name of the interface for this client. This is the key used to + # find the method configuration in the client_config dictionary. + _INTERFACE_NAME = 'google.ads.googleads.v4.services.CampaignDraftService' + + + @classmethod + def from_service_account_file(cls, filename, *args, **kwargs): + """Creates an instance of this client using the provided credentials + file. + + Args: + filename (str): The path to the service account private key json + file. + args: Additional arguments to pass to the constructor. + kwargs: Additional arguments to pass to the constructor. + + Returns: + CampaignDraftServiceClient: The constructed client. + """ + credentials = service_account.Credentials.from_service_account_file( + filename) + kwargs['credentials'] = credentials + return cls(*args, **kwargs) + + from_service_account_json = from_service_account_file + + + @classmethod + def campaign_draft_path(cls, customer, campaign_draft): + """Return a fully-qualified campaign_draft string.""" + return google.api_core.path_template.expand( + 'customers/{customer}/campaignDrafts/{campaign_draft}', + customer=customer, + campaign_draft=campaign_draft, + ) + + def __init__(self, transport=None, channel=None, credentials=None, + client_config=None, client_info=None): + """Constructor. + + Args: + transport (Union[~.CampaignDraftServiceGrpcTransport, + Callable[[~.Credentials, type], ~.CampaignDraftServiceGrpcTransport]): A transport + instance, responsible for actually making the API calls. + The default transport uses the gRPC protocol. + This argument may also be a callable which returns a + transport instance. Callables will be sent the credentials + as the first argument and the default transport class as + the second argument. + channel (grpc.Channel): DEPRECATED. A ``Channel`` instance + through which to make calls. This argument is mutually exclusive + with ``credentials``; providing both will raise an exception. + credentials (google.auth.credentials.Credentials): The + authorization credentials to attach to requests. These + credentials identify this application to the service. If none + are specified, the client will attempt to ascertain the + credentials from the environment. + This argument is mutually exclusive with providing a + transport instance to ``transport``; doing so will raise + an exception. + client_config (dict): DEPRECATED. A dictionary of call options for + each method. If not specified, the default configuration is used. + client_info (google.api_core.gapic_v1.client_info.ClientInfo): + The client info used to send a user-agent string along with + API requests. If ``None``, then default info will be used. + Generally, you only need to set this if you're developing + your own client library. + """ + # Raise deprecation warnings for things we want to go away. + if client_config is not None: + warnings.warn('The `client_config` argument is deprecated.', + PendingDeprecationWarning, stacklevel=2) + else: + client_config = campaign_draft_service_client_config.config + + if channel: + warnings.warn('The `channel` argument is deprecated; use ' + '`transport` instead.', + PendingDeprecationWarning, stacklevel=2) + + # Instantiate the transport. + # The transport is responsible for handling serialization and + # deserialization and actually sending data to the service. + if transport: + if callable(transport): + self.transport = transport( + credentials=credentials, + default_class=campaign_draft_service_grpc_transport.CampaignDraftServiceGrpcTransport, + ) + else: + if credentials: + raise ValueError( + 'Received both a transport instance and ' + 'credentials; these are mutually exclusive.' + ) + self.transport = transport + else: + self.transport = campaign_draft_service_grpc_transport.CampaignDraftServiceGrpcTransport( + address=self.SERVICE_ADDRESS, + channel=channel, + credentials=credentials, + ) + + if client_info is None: + client_info = google.api_core.gapic_v1.client_info.ClientInfo( + gapic_version=_GAPIC_LIBRARY_VERSION, + ) + else: + client_info.gapic_version = _GAPIC_LIBRARY_VERSION + self._client_info = client_info + + # Parse out the default settings for retry and timeout for each RPC + # from the client configuration. + # (Ordinarily, these are the defaults specified in the `*_config.py` + # file next to this one.) + self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( + client_config['interfaces'][self._INTERFACE_NAME], + ) + + # Save a dictionary of cached API call functions. + # These are the actual callables which invoke the proper + # transport methods, wrapped with `wrap_method` to add retry, + # timeout, and the like. + self._inner_api_calls = {} + + # Service calls + def get_campaign_draft( + self, + resource_name, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None): + """ + Returns the requested campaign draft in full detail. + + Args: + resource_name (str): Required. The resource name of the campaign draft to fetch. + retry (Optional[google.api_core.retry.Retry]): A retry object used + to retry requests. If ``None`` is specified, requests will not + be retried. + timeout (Optional[float]): The amount of time, in seconds, to wait + for the request to complete. Note that if ``retry`` is + specified, the timeout applies to each individual attempt. + metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata + that is provided to the method. + + Returns: + A :class:`~google.ads.googleads_v4.types.CampaignDraft` instance. + + Raises: + google.api_core.exceptions.GoogleAPICallError: If the request + failed for any reason. + google.api_core.exceptions.RetryError: If the request failed due + to a retryable error and retry attempts failed. + ValueError: If the parameters are invalid. + """ + # Wrap the transport method to add retry and timeout logic. + if 'get_campaign_draft' not in self._inner_api_calls: + self._inner_api_calls['get_campaign_draft'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.get_campaign_draft, + default_retry=self._method_configs['GetCampaignDraft'].retry, + default_timeout=self._method_configs['GetCampaignDraft'].timeout, + client_info=self._client_info, + ) + + request = campaign_draft_service_pb2.GetCampaignDraftRequest( + resource_name=resource_name, + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [('resource_name', resource_name)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata(routing_header) + metadata.append(routing_metadata) + + return self._inner_api_calls['get_campaign_draft'](request, retry=retry, timeout=timeout, metadata=metadata) + + def mutate_campaign_drafts( + self, + customer_id, + operations, + partial_failure=None, + validate_only=None, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None): + """ + Creates, updates, or removes campaign drafts. Operation statuses are + returned. + + Args: + customer_id (str): Required. The ID of the customer whose campaign drafts are being modified. + operations (list[Union[dict, ~google.ads.googleads_v4.types.CampaignDraftOperation]]): Required. The list of operations to perform on individual campaign drafts. + + If a dict is provided, it must be of the same form as the protobuf + message :class:`~google.ads.googleads_v4.types.CampaignDraftOperation` + partial_failure (bool): If true, successful operations will be carried out and invalid + operations will return errors. If false, all operations will be carried + out in one transaction if and only if they are all valid. + Default is false. + validate_only (bool): If true, the request is validated but not executed. Only errors are + returned, not results. + retry (Optional[google.api_core.retry.Retry]): A retry object used + to retry requests. If ``None`` is specified, requests will not + be retried. + timeout (Optional[float]): The amount of time, in seconds, to wait + for the request to complete. Note that if ``retry`` is + specified, the timeout applies to each individual attempt. + metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata + that is provided to the method. + + Returns: + A :class:`~google.ads.googleads_v4.types.MutateCampaignDraftsResponse` instance. + + Raises: + google.api_core.exceptions.GoogleAPICallError: If the request + failed for any reason. + google.api_core.exceptions.RetryError: If the request failed due + to a retryable error and retry attempts failed. + ValueError: If the parameters are invalid. + """ + # Wrap the transport method to add retry and timeout logic. + if 'mutate_campaign_drafts' not in self._inner_api_calls: + self._inner_api_calls['mutate_campaign_drafts'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.mutate_campaign_drafts, + default_retry=self._method_configs['MutateCampaignDrafts'].retry, + default_timeout=self._method_configs['MutateCampaignDrafts'].timeout, + client_info=self._client_info, + ) + + request = campaign_draft_service_pb2.MutateCampaignDraftsRequest( + customer_id=customer_id, + operations=operations, + partial_failure=partial_failure, + validate_only=validate_only, + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [('customer_id', customer_id)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata(routing_header) + metadata.append(routing_metadata) + + return self._inner_api_calls['mutate_campaign_drafts'](request, retry=retry, timeout=timeout, metadata=metadata) + + def promote_campaign_draft( + self, + campaign_draft, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None): + """ + Promotes the changes in a draft back to the base campaign. + + This method returns a Long Running Operation (LRO) indicating if the + Promote is done. Use [Operations.GetOperation] to poll the LRO until it + is done. Only a done status is returned in the response. See the status + in the Campaign Draft resource to determine if the promotion was + successful. If the LRO failed, use + ``CampaignDraftService.ListCampaignDraftAsyncErrors`` to view the list + of error reasons. + + Args: + campaign_draft (str): Required. The resource name of the campaign draft to promote. + retry (Optional[google.api_core.retry.Retry]): A retry object used + to retry requests. If ``None`` is specified, requests will not + be retried. + timeout (Optional[float]): The amount of time, in seconds, to wait + for the request to complete. Note that if ``retry`` is + specified, the timeout applies to each individual attempt. + metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata + that is provided to the method. + + Returns: + A :class:`~google.ads.googleads_v4.types._OperationFuture` instance. + + Raises: + google.api_core.exceptions.GoogleAPICallError: If the request + failed for any reason. + google.api_core.exceptions.RetryError: If the request failed due + to a retryable error and retry attempts failed. + ValueError: If the parameters are invalid. + """ + # Wrap the transport method to add retry and timeout logic. + if 'promote_campaign_draft' not in self._inner_api_calls: + self._inner_api_calls['promote_campaign_draft'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.promote_campaign_draft, + default_retry=self._method_configs['PromoteCampaignDraft'].retry, + default_timeout=self._method_configs['PromoteCampaignDraft'].timeout, + client_info=self._client_info, + ) + + request = campaign_draft_service_pb2.PromoteCampaignDraftRequest( + campaign_draft=campaign_draft, + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [('campaign_draft', campaign_draft)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata(routing_header) + metadata.append(routing_metadata) + + operation = self._inner_api_calls['promote_campaign_draft'](request, retry=retry, timeout=timeout, metadata=metadata) + return google.api_core.operation.from_gapic( + operation, + self.transport._operations_client, + empty_pb2.Empty, + metadata_type=empty_pb2.Empty, + ) + + def list_campaign_draft_async_errors( + self, + resource_name, + page_size=None, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None): + """ + Returns all errors that occurred during CampaignDraft promote. Throws an + error if called before campaign draft is promoted. + Supports standard list paging. + + Args: + resource_name (str): Required. The name of the campaign draft from which to retrieve the async errors. + page_size (int): The maximum number of resources contained in the + underlying API response. If page streaming is performed per- + resource, this parameter does not affect the return value. If page + streaming is performed per-page, this determines the maximum number + of resources in a page. + retry (Optional[google.api_core.retry.Retry]): A retry object used + to retry requests. If ``None`` is specified, requests will not + be retried. + timeout (Optional[float]): The amount of time, in seconds, to wait + for the request to complete. Note that if ``retry`` is + specified, the timeout applies to each individual attempt. + metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata + that is provided to the method. + + Returns: + A :class:`~google.gax.PageIterator` instance. By default, this + is an iterable of :class:`~google.ads.googleads_v4.types.Status` instances. + This object can also be configured to iterate over the pages + of the response through the `options` parameter. + + Raises: + google.api_core.exceptions.GoogleAPICallError: If the request + failed for any reason. + google.api_core.exceptions.RetryError: If the request failed due + to a retryable error and retry attempts failed. + ValueError: If the parameters are invalid. + """ + # Wrap the transport method to add retry and timeout logic. + if 'list_campaign_draft_async_errors' not in self._inner_api_calls: + self._inner_api_calls['list_campaign_draft_async_errors'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.list_campaign_draft_async_errors, + default_retry=self._method_configs['ListCampaignDraftAsyncErrors'].retry, + default_timeout=self._method_configs['ListCampaignDraftAsyncErrors'].timeout, + client_info=self._client_info, + ) + + request = campaign_draft_service_pb2.ListCampaignDraftAsyncErrorsRequest( + resource_name=resource_name, + page_size=page_size, + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [('resource_name', resource_name)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata(routing_header) + metadata.append(routing_metadata) + + iterator = google.api_core.page_iterator.GRPCIterator( + client=None, + method=functools.partial(self._inner_api_calls['list_campaign_draft_async_errors'], retry=retry, timeout=timeout, metadata=metadata), + request=request, + items_field='errors', + request_token_field='page_token', + response_token_field='next_page_token', + ) + return iterator diff --git a/google/ads/google_ads/v4/services/campaign_draft_service_client_config.py b/google/ads/google_ads/v4/services/campaign_draft_service_client_config.py new file mode 100644 index 000000000..41cb189a6 --- /dev/null +++ b/google/ads/google_ads/v4/services/campaign_draft_service_client_config.py @@ -0,0 +1,46 @@ +config = { + "interfaces": { + "google.ads.googleads.v4.services.CampaignDraftService": { + "retry_codes": { + "idempotent": [ + "DEADLINE_EXCEEDED", + "UNAVAILABLE" + ], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 5000, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 3600000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 3600000, + "total_timeout_millis": 3600000 + } + }, + "methods": { + "GetCampaignDraft": { + "timeout_millis": 60000, + "retry_codes_name": "idempotent", + "retry_params_name": "default" + }, + "MutateCampaignDrafts": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "PromoteCampaignDraft": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "ListCampaignDraftAsyncErrors": { + "timeout_millis": 60000, + "retry_codes_name": "idempotent", + "retry_params_name": "default" + } + } + } + } +} diff --git a/google/ads/google_ads/v4/services/campaign_experiment_service_client.py b/google/ads/google_ads/v4/services/campaign_experiment_service_client.py new file mode 100644 index 000000000..03a4371c6 --- /dev/null +++ b/google/ads/google_ads/v4/services/campaign_experiment_service_client.py @@ -0,0 +1,649 @@ +# -*- coding: utf-8 -*- +# +# 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. + +"""Accesses the google.ads.googleads.v4.services CampaignExperimentService API.""" + +import functools +import pkg_resources +import warnings + +from google.oauth2 import service_account +import google.api_core.gapic_v1.client_info +import google.api_core.gapic_v1.config +import google.api_core.gapic_v1.method +import google.api_core.gapic_v1.routing_header +import google.api_core.grpc_helpers +import google.api_core.operation +import google.api_core.operations_v1 +import google.api_core.page_iterator +import google.api_core.path_template + +from google.ads.google_ads.v4.services import campaign_experiment_service_client_config +from google.ads.google_ads.v4.services.transports import campaign_experiment_service_grpc_transport +from google.ads.google_ads.v4.proto.services import campaign_experiment_service_pb2 +from google.protobuf import empty_pb2 + + + +_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( + 'google-ads', +).version + + +class CampaignExperimentServiceClient(object): + """ + CampaignExperimentService manages the life cycle of campaign experiments. + It is used to create new experiments from drafts, modify experiment + properties, promote changes in an experiment back to its base campaign, + graduate experiments into new stand-alone campaigns, and to remove an + experiment. + + An experiment consists of two variants or arms - the base campaign and the + experiment campaign, directing a fixed share of traffic to each arm. + A campaign experiment is created from a draft of changes to the base campaign + and will be a snapshot of changes in the draft at the time of creation. + """ + + SERVICE_ADDRESS = 'googleads.googleapis.com:443' + """The default address of the service.""" + + # The name of the interface for this client. This is the key used to + # find the method configuration in the client_config dictionary. + _INTERFACE_NAME = 'google.ads.googleads.v4.services.CampaignExperimentService' + + + @classmethod + def from_service_account_file(cls, filename, *args, **kwargs): + """Creates an instance of this client using the provided credentials + file. + + Args: + filename (str): The path to the service account private key json + file. + args: Additional arguments to pass to the constructor. + kwargs: Additional arguments to pass to the constructor. + + Returns: + CampaignExperimentServiceClient: The constructed client. + """ + credentials = service_account.Credentials.from_service_account_file( + filename) + kwargs['credentials'] = credentials + return cls(*args, **kwargs) + + from_service_account_json = from_service_account_file + + + @classmethod + def campaign_experiment_path(cls, customer, campaign_experiment): + """Return a fully-qualified campaign_experiment string.""" + return google.api_core.path_template.expand( + 'customers/{customer}/campaignExperiments/{campaign_experiment}', + customer=customer, + campaign_experiment=campaign_experiment, + ) + + def __init__(self, transport=None, channel=None, credentials=None, + client_config=None, client_info=None): + """Constructor. + + Args: + transport (Union[~.CampaignExperimentServiceGrpcTransport, + Callable[[~.Credentials, type], ~.CampaignExperimentServiceGrpcTransport]): A transport + instance, responsible for actually making the API calls. + The default transport uses the gRPC protocol. + This argument may also be a callable which returns a + transport instance. Callables will be sent the credentials + as the first argument and the default transport class as + the second argument. + channel (grpc.Channel): DEPRECATED. A ``Channel`` instance + through which to make calls. This argument is mutually exclusive + with ``credentials``; providing both will raise an exception. + credentials (google.auth.credentials.Credentials): The + authorization credentials to attach to requests. These + credentials identify this application to the service. If none + are specified, the client will attempt to ascertain the + credentials from the environment. + This argument is mutually exclusive with providing a + transport instance to ``transport``; doing so will raise + an exception. + client_config (dict): DEPRECATED. A dictionary of call options for + each method. If not specified, the default configuration is used. + client_info (google.api_core.gapic_v1.client_info.ClientInfo): + The client info used to send a user-agent string along with + API requests. If ``None``, then default info will be used. + Generally, you only need to set this if you're developing + your own client library. + """ + # Raise deprecation warnings for things we want to go away. + if client_config is not None: + warnings.warn('The `client_config` argument is deprecated.', + PendingDeprecationWarning, stacklevel=2) + else: + client_config = campaign_experiment_service_client_config.config + + if channel: + warnings.warn('The `channel` argument is deprecated; use ' + '`transport` instead.', + PendingDeprecationWarning, stacklevel=2) + + # Instantiate the transport. + # The transport is responsible for handling serialization and + # deserialization and actually sending data to the service. + if transport: + if callable(transport): + self.transport = transport( + credentials=credentials, + default_class=campaign_experiment_service_grpc_transport.CampaignExperimentServiceGrpcTransport, + ) + else: + if credentials: + raise ValueError( + 'Received both a transport instance and ' + 'credentials; these are mutually exclusive.' + ) + self.transport = transport + else: + self.transport = campaign_experiment_service_grpc_transport.CampaignExperimentServiceGrpcTransport( + address=self.SERVICE_ADDRESS, + channel=channel, + credentials=credentials, + ) + + if client_info is None: + client_info = google.api_core.gapic_v1.client_info.ClientInfo( + gapic_version=_GAPIC_LIBRARY_VERSION, + ) + else: + client_info.gapic_version = _GAPIC_LIBRARY_VERSION + self._client_info = client_info + + # Parse out the default settings for retry and timeout for each RPC + # from the client configuration. + # (Ordinarily, these are the defaults specified in the `*_config.py` + # file next to this one.) + self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( + client_config['interfaces'][self._INTERFACE_NAME], + ) + + # Save a dictionary of cached API call functions. + # These are the actual callables which invoke the proper + # transport methods, wrapped with `wrap_method` to add retry, + # timeout, and the like. + self._inner_api_calls = {} + + # Service calls + def get_campaign_experiment( + self, + resource_name, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None): + """ + Returns the requested campaign experiment in full detail. + + Args: + resource_name (str): Required. The resource name of the campaign experiment to fetch. + retry (Optional[google.api_core.retry.Retry]): A retry object used + to retry requests. If ``None`` is specified, requests will not + be retried. + timeout (Optional[float]): The amount of time, in seconds, to wait + for the request to complete. Note that if ``retry`` is + specified, the timeout applies to each individual attempt. + metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata + that is provided to the method. + + Returns: + A :class:`~google.ads.googleads_v4.types.CampaignExperiment` instance. + + Raises: + google.api_core.exceptions.GoogleAPICallError: If the request + failed for any reason. + google.api_core.exceptions.RetryError: If the request failed due + to a retryable error and retry attempts failed. + ValueError: If the parameters are invalid. + """ + # Wrap the transport method to add retry and timeout logic. + if 'get_campaign_experiment' not in self._inner_api_calls: + self._inner_api_calls['get_campaign_experiment'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.get_campaign_experiment, + default_retry=self._method_configs['GetCampaignExperiment'].retry, + default_timeout=self._method_configs['GetCampaignExperiment'].timeout, + client_info=self._client_info, + ) + + request = campaign_experiment_service_pb2.GetCampaignExperimentRequest( + resource_name=resource_name, + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [('resource_name', resource_name)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata(routing_header) + metadata.append(routing_metadata) + + return self._inner_api_calls['get_campaign_experiment'](request, retry=retry, timeout=timeout, metadata=metadata) + + def create_campaign_experiment( + self, + customer_id, + campaign_experiment, + validate_only=None, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None): + """ + Creates a campaign experiment based on a campaign draft. The draft campaign + will be forked into a real campaign (called the experiment campaign) that + will begin serving ads if successfully created. + + The campaign experiment is created immediately with status INITIALIZING. + This method return a long running operation that tracks the forking of the + draft campaign. If the forking fails, a list of errors can be retrieved + using the ListCampaignExperimentAsyncErrors method. The operation's + metadata will be a StringValue containing the resource name of the created + campaign experiment. + + Args: + customer_id (str): Required. The ID of the customer whose campaign experiment is being created. + campaign_experiment (Union[dict, ~google.ads.googleads_v4.types.CampaignExperiment]): Required. The campaign experiment to be created. + + If a dict is provided, it must be of the same form as the protobuf + message :class:`~google.ads.googleads_v4.types.CampaignExperiment` + validate_only (bool): If true, the request is validated but not executed. Only errors are + returned, not results. + retry (Optional[google.api_core.retry.Retry]): A retry object used + to retry requests. If ``None`` is specified, requests will not + be retried. + timeout (Optional[float]): The amount of time, in seconds, to wait + for the request to complete. Note that if ``retry`` is + specified, the timeout applies to each individual attempt. + metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata + that is provided to the method. + + Returns: + A :class:`~google.ads.googleads_v4.types._OperationFuture` instance. + + Raises: + google.api_core.exceptions.GoogleAPICallError: If the request + failed for any reason. + google.api_core.exceptions.RetryError: If the request failed due + to a retryable error and retry attempts failed. + ValueError: If the parameters are invalid. + """ + # Wrap the transport method to add retry and timeout logic. + if 'create_campaign_experiment' not in self._inner_api_calls: + self._inner_api_calls['create_campaign_experiment'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.create_campaign_experiment, + default_retry=self._method_configs['CreateCampaignExperiment'].retry, + default_timeout=self._method_configs['CreateCampaignExperiment'].timeout, + client_info=self._client_info, + ) + + request = campaign_experiment_service_pb2.CreateCampaignExperimentRequest( + customer_id=customer_id, + campaign_experiment=campaign_experiment, + validate_only=validate_only, + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [('customer_id', customer_id)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata(routing_header) + metadata.append(routing_metadata) + + operation = self._inner_api_calls['create_campaign_experiment'](request, retry=retry, timeout=timeout, metadata=metadata) + return google.api_core.operation.from_gapic( + operation, + self.transport._operations_client, + empty_pb2.Empty, + metadata_type=campaign_experiment_service_pb2.CreateCampaignExperimentMetadata, + ) + + def mutate_campaign_experiments( + self, + customer_id, + operations, + partial_failure=None, + validate_only=None, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None): + """ + Updates campaign experiments. Operation statuses are returned. + + Args: + customer_id (str): Required. The ID of the customer whose campaign experiments are being modified. + operations (list[Union[dict, ~google.ads.googleads_v4.types.CampaignExperimentOperation]]): Required. The list of operations to perform on individual campaign experiments. + + If a dict is provided, it must be of the same form as the protobuf + message :class:`~google.ads.googleads_v4.types.CampaignExperimentOperation` + partial_failure (bool): If true, successful operations will be carried out and invalid + operations will return errors. If false, all operations will be carried + out in one transaction if and only if they are all valid. + Default is false. + validate_only (bool): If true, the request is validated but not executed. Only errors are + returned, not results. + retry (Optional[google.api_core.retry.Retry]): A retry object used + to retry requests. If ``None`` is specified, requests will not + be retried. + timeout (Optional[float]): The amount of time, in seconds, to wait + for the request to complete. Note that if ``retry`` is + specified, the timeout applies to each individual attempt. + metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata + that is provided to the method. + + Returns: + A :class:`~google.ads.googleads_v4.types.MutateCampaignExperimentsResponse` instance. + + Raises: + google.api_core.exceptions.GoogleAPICallError: If the request + failed for any reason. + google.api_core.exceptions.RetryError: If the request failed due + to a retryable error and retry attempts failed. + ValueError: If the parameters are invalid. + """ + # Wrap the transport method to add retry and timeout logic. + if 'mutate_campaign_experiments' not in self._inner_api_calls: + self._inner_api_calls['mutate_campaign_experiments'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.mutate_campaign_experiments, + default_retry=self._method_configs['MutateCampaignExperiments'].retry, + default_timeout=self._method_configs['MutateCampaignExperiments'].timeout, + client_info=self._client_info, + ) + + request = campaign_experiment_service_pb2.MutateCampaignExperimentsRequest( + customer_id=customer_id, + operations=operations, + partial_failure=partial_failure, + validate_only=validate_only, + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [('customer_id', customer_id)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata(routing_header) + metadata.append(routing_metadata) + + return self._inner_api_calls['mutate_campaign_experiments'](request, retry=retry, timeout=timeout, metadata=metadata) + + def graduate_campaign_experiment( + self, + campaign_experiment, + campaign_budget, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None): + """ + Graduates a campaign experiment to a full campaign. The base and experiment + campaigns will start running independently with their own budgets. + + Args: + campaign_experiment (str): Required. The resource name of the campaign experiment to graduate. + campaign_budget (str): Required. Resource name of the budget to attach to the campaign graduated from the + experiment. + retry (Optional[google.api_core.retry.Retry]): A retry object used + to retry requests. If ``None`` is specified, requests will not + be retried. + timeout (Optional[float]): The amount of time, in seconds, to wait + for the request to complete. Note that if ``retry`` is + specified, the timeout applies to each individual attempt. + metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata + that is provided to the method. + + Returns: + A :class:`~google.ads.googleads_v4.types.GraduateCampaignExperimentResponse` instance. + + Raises: + google.api_core.exceptions.GoogleAPICallError: If the request + failed for any reason. + google.api_core.exceptions.RetryError: If the request failed due + to a retryable error and retry attempts failed. + ValueError: If the parameters are invalid. + """ + # Wrap the transport method to add retry and timeout logic. + if 'graduate_campaign_experiment' not in self._inner_api_calls: + self._inner_api_calls['graduate_campaign_experiment'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.graduate_campaign_experiment, + default_retry=self._method_configs['GraduateCampaignExperiment'].retry, + default_timeout=self._method_configs['GraduateCampaignExperiment'].timeout, + client_info=self._client_info, + ) + + request = campaign_experiment_service_pb2.GraduateCampaignExperimentRequest( + campaign_experiment=campaign_experiment, + campaign_budget=campaign_budget, + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [('campaign_experiment', campaign_experiment)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata(routing_header) + metadata.append(routing_metadata) + + return self._inner_api_calls['graduate_campaign_experiment'](request, retry=retry, timeout=timeout, metadata=metadata) + + def promote_campaign_experiment( + self, + campaign_experiment, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None): + """ + Promotes the changes in a experiment campaign back to the base campaign. + + The campaign experiment is updated immediately with status PROMOTING. + This method return a long running operation that tracks the promoting of + the experiment campaign. If the promoting fails, a list of errors can be + retrieved using the ListCampaignExperimentAsyncErrors method. + + Args: + campaign_experiment (str): Required. The resource name of the campaign experiment to promote. + retry (Optional[google.api_core.retry.Retry]): A retry object used + to retry requests. If ``None`` is specified, requests will not + be retried. + timeout (Optional[float]): The amount of time, in seconds, to wait + for the request to complete. Note that if ``retry`` is + specified, the timeout applies to each individual attempt. + metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata + that is provided to the method. + + Returns: + A :class:`~google.ads.googleads_v4.types._OperationFuture` instance. + + Raises: + google.api_core.exceptions.GoogleAPICallError: If the request + failed for any reason. + google.api_core.exceptions.RetryError: If the request failed due + to a retryable error and retry attempts failed. + ValueError: If the parameters are invalid. + """ + # Wrap the transport method to add retry and timeout logic. + if 'promote_campaign_experiment' not in self._inner_api_calls: + self._inner_api_calls['promote_campaign_experiment'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.promote_campaign_experiment, + default_retry=self._method_configs['PromoteCampaignExperiment'].retry, + default_timeout=self._method_configs['PromoteCampaignExperiment'].timeout, + client_info=self._client_info, + ) + + request = campaign_experiment_service_pb2.PromoteCampaignExperimentRequest( + campaign_experiment=campaign_experiment, + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [('campaign_experiment', campaign_experiment)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata(routing_header) + metadata.append(routing_metadata) + + operation = self._inner_api_calls['promote_campaign_experiment'](request, retry=retry, timeout=timeout, metadata=metadata) + return google.api_core.operation.from_gapic( + operation, + self.transport._operations_client, + empty_pb2.Empty, + metadata_type=empty_pb2.Empty, + ) + + def end_campaign_experiment( + self, + campaign_experiment, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None): + """ + Immediately ends a campaign experiment, changing the experiment's scheduled + end date and without waiting for end of day. End date is updated to be the + time of the request. + + Args: + campaign_experiment (str): Required. The resource name of the campaign experiment to end. + retry (Optional[google.api_core.retry.Retry]): A retry object used + to retry requests. If ``None`` is specified, requests will not + be retried. + timeout (Optional[float]): The amount of time, in seconds, to wait + for the request to complete. Note that if ``retry`` is + specified, the timeout applies to each individual attempt. + metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata + that is provided to the method. + + Raises: + google.api_core.exceptions.GoogleAPICallError: If the request + failed for any reason. + google.api_core.exceptions.RetryError: If the request failed due + to a retryable error and retry attempts failed. + ValueError: If the parameters are invalid. + """ + # Wrap the transport method to add retry and timeout logic. + if 'end_campaign_experiment' not in self._inner_api_calls: + self._inner_api_calls['end_campaign_experiment'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.end_campaign_experiment, + default_retry=self._method_configs['EndCampaignExperiment'].retry, + default_timeout=self._method_configs['EndCampaignExperiment'].timeout, + client_info=self._client_info, + ) + + request = campaign_experiment_service_pb2.EndCampaignExperimentRequest( + campaign_experiment=campaign_experiment, + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [('campaign_experiment', campaign_experiment)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata(routing_header) + metadata.append(routing_metadata) + + self._inner_api_calls['end_campaign_experiment'](request, retry=retry, timeout=timeout, metadata=metadata) + + def list_campaign_experiment_async_errors( + self, + resource_name, + page_size=None, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None): + """ + Returns all errors that occurred during CampaignExperiment create or + promote (whichever occurred last). + Supports standard list paging. + + Args: + resource_name (str): Required. The name of the campaign experiment from which to retrieve the async + errors. + page_size (int): The maximum number of resources contained in the + underlying API response. If page streaming is performed per- + resource, this parameter does not affect the return value. If page + streaming is performed per-page, this determines the maximum number + of resources in a page. + retry (Optional[google.api_core.retry.Retry]): A retry object used + to retry requests. If ``None`` is specified, requests will not + be retried. + timeout (Optional[float]): The amount of time, in seconds, to wait + for the request to complete. Note that if ``retry`` is + specified, the timeout applies to each individual attempt. + metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata + that is provided to the method. + + Returns: + A :class:`~google.gax.PageIterator` instance. By default, this + is an iterable of :class:`~google.ads.googleads_v4.types.Status` instances. + This object can also be configured to iterate over the pages + of the response through the `options` parameter. + + Raises: + google.api_core.exceptions.GoogleAPICallError: If the request + failed for any reason. + google.api_core.exceptions.RetryError: If the request failed due + to a retryable error and retry attempts failed. + ValueError: If the parameters are invalid. + """ + # Wrap the transport method to add retry and timeout logic. + if 'list_campaign_experiment_async_errors' not in self._inner_api_calls: + self._inner_api_calls['list_campaign_experiment_async_errors'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.list_campaign_experiment_async_errors, + default_retry=self._method_configs['ListCampaignExperimentAsyncErrors'].retry, + default_timeout=self._method_configs['ListCampaignExperimentAsyncErrors'].timeout, + client_info=self._client_info, + ) + + request = campaign_experiment_service_pb2.ListCampaignExperimentAsyncErrorsRequest( + resource_name=resource_name, + page_size=page_size, + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [('resource_name', resource_name)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata(routing_header) + metadata.append(routing_metadata) + + iterator = google.api_core.page_iterator.GRPCIterator( + client=None, + method=functools.partial(self._inner_api_calls['list_campaign_experiment_async_errors'], retry=retry, timeout=timeout, metadata=metadata), + request=request, + items_field='errors', + request_token_field='page_token', + response_token_field='next_page_token', + ) + return iterator diff --git a/google/ads/google_ads/v4/services/campaign_experiment_service_client_config.py b/google/ads/google_ads/v4/services/campaign_experiment_service_client_config.py new file mode 100644 index 000000000..2c2cb56e0 --- /dev/null +++ b/google/ads/google_ads/v4/services/campaign_experiment_service_client_config.py @@ -0,0 +1,61 @@ +config = { + "interfaces": { + "google.ads.googleads.v4.services.CampaignExperimentService": { + "retry_codes": { + "idempotent": [ + "DEADLINE_EXCEEDED", + "UNAVAILABLE" + ], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 5000, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 3600000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 3600000, + "total_timeout_millis": 3600000 + } + }, + "methods": { + "GetCampaignExperiment": { + "timeout_millis": 60000, + "retry_codes_name": "idempotent", + "retry_params_name": "default" + }, + "CreateCampaignExperiment": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "MutateCampaignExperiments": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "GraduateCampaignExperiment": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "PromoteCampaignExperiment": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "EndCampaignExperiment": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "ListCampaignExperimentAsyncErrors": { + "timeout_millis": 60000, + "retry_codes_name": "idempotent", + "retry_params_name": "default" + } + } + } + } +} diff --git a/google/ads/google_ads/v4/services/campaign_extension_setting_service_client.py b/google/ads/google_ads/v4/services/campaign_extension_setting_service_client.py new file mode 100644 index 000000000..eaf4c14cb --- /dev/null +++ b/google/ads/google_ads/v4/services/campaign_extension_setting_service_client.py @@ -0,0 +1,300 @@ +# -*- coding: utf-8 -*- +# +# 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. + +"""Accesses the google.ads.googleads.v4.services CampaignExtensionSettingService API.""" + +import pkg_resources +import warnings + +from google.oauth2 import service_account +import google.api_core.gapic_v1.client_info +import google.api_core.gapic_v1.config +import google.api_core.gapic_v1.method +import google.api_core.gapic_v1.routing_header +import google.api_core.grpc_helpers +import google.api_core.path_template + +from google.ads.google_ads.v4.services import campaign_extension_setting_service_client_config +from google.ads.google_ads.v4.services.transports import campaign_extension_setting_service_grpc_transport +from google.ads.google_ads.v4.proto.services import campaign_extension_setting_service_pb2 + + + +_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( + 'google-ads', +).version + + +class CampaignExtensionSettingServiceClient(object): + """Service to manage campaign extension settings.""" + + SERVICE_ADDRESS = 'googleads.googleapis.com:443' + """The default address of the service.""" + + # The name of the interface for this client. This is the key used to + # find the method configuration in the client_config dictionary. + _INTERFACE_NAME = 'google.ads.googleads.v4.services.CampaignExtensionSettingService' + + + @classmethod + def from_service_account_file(cls, filename, *args, **kwargs): + """Creates an instance of this client using the provided credentials + file. + + Args: + filename (str): The path to the service account private key json + file. + args: Additional arguments to pass to the constructor. + kwargs: Additional arguments to pass to the constructor. + + Returns: + CampaignExtensionSettingServiceClient: The constructed client. + """ + credentials = service_account.Credentials.from_service_account_file( + filename) + kwargs['credentials'] = credentials + return cls(*args, **kwargs) + + from_service_account_json = from_service_account_file + + + @classmethod + def campaign_extension_setting_path(cls, customer, campaign_extension_setting): + """Return a fully-qualified campaign_extension_setting string.""" + return google.api_core.path_template.expand( + 'customers/{customer}/campaignExtensionSettings/{campaign_extension_setting}', + customer=customer, + campaign_extension_setting=campaign_extension_setting, + ) + + def __init__(self, transport=None, channel=None, credentials=None, + client_config=None, client_info=None): + """Constructor. + + Args: + transport (Union[~.CampaignExtensionSettingServiceGrpcTransport, + Callable[[~.Credentials, type], ~.CampaignExtensionSettingServiceGrpcTransport]): A transport + instance, responsible for actually making the API calls. + The default transport uses the gRPC protocol. + This argument may also be a callable which returns a + transport instance. Callables will be sent the credentials + as the first argument and the default transport class as + the second argument. + channel (grpc.Channel): DEPRECATED. A ``Channel`` instance + through which to make calls. This argument is mutually exclusive + with ``credentials``; providing both will raise an exception. + credentials (google.auth.credentials.Credentials): The + authorization credentials to attach to requests. These + credentials identify this application to the service. If none + are specified, the client will attempt to ascertain the + credentials from the environment. + This argument is mutually exclusive with providing a + transport instance to ``transport``; doing so will raise + an exception. + client_config (dict): DEPRECATED. A dictionary of call options for + each method. If not specified, the default configuration is used. + client_info (google.api_core.gapic_v1.client_info.ClientInfo): + The client info used to send a user-agent string along with + API requests. If ``None``, then default info will be used. + Generally, you only need to set this if you're developing + your own client library. + """ + # Raise deprecation warnings for things we want to go away. + if client_config is not None: + warnings.warn('The `client_config` argument is deprecated.', + PendingDeprecationWarning, stacklevel=2) + else: + client_config = campaign_extension_setting_service_client_config.config + + if channel: + warnings.warn('The `channel` argument is deprecated; use ' + '`transport` instead.', + PendingDeprecationWarning, stacklevel=2) + + # Instantiate the transport. + # The transport is responsible for handling serialization and + # deserialization and actually sending data to the service. + if transport: + if callable(transport): + self.transport = transport( + credentials=credentials, + default_class=campaign_extension_setting_service_grpc_transport.CampaignExtensionSettingServiceGrpcTransport, + ) + else: + if credentials: + raise ValueError( + 'Received both a transport instance and ' + 'credentials; these are mutually exclusive.' + ) + self.transport = transport + else: + self.transport = campaign_extension_setting_service_grpc_transport.CampaignExtensionSettingServiceGrpcTransport( + address=self.SERVICE_ADDRESS, + channel=channel, + credentials=credentials, + ) + + if client_info is None: + client_info = google.api_core.gapic_v1.client_info.ClientInfo( + gapic_version=_GAPIC_LIBRARY_VERSION, + ) + else: + client_info.gapic_version = _GAPIC_LIBRARY_VERSION + self._client_info = client_info + + # Parse out the default settings for retry and timeout for each RPC + # from the client configuration. + # (Ordinarily, these are the defaults specified in the `*_config.py` + # file next to this one.) + self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( + client_config['interfaces'][self._INTERFACE_NAME], + ) + + # Save a dictionary of cached API call functions. + # These are the actual callables which invoke the proper + # transport methods, wrapped with `wrap_method` to add retry, + # timeout, and the like. + self._inner_api_calls = {} + + # Service calls + def get_campaign_extension_setting( + self, + resource_name, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None): + """ + Returns the requested campaign extension setting in full detail. + + Args: + resource_name (str): Required. The resource name of the campaign extension setting to fetch. + retry (Optional[google.api_core.retry.Retry]): A retry object used + to retry requests. If ``None`` is specified, requests will not + be retried. + timeout (Optional[float]): The amount of time, in seconds, to wait + for the request to complete. Note that if ``retry`` is + specified, the timeout applies to each individual attempt. + metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata + that is provided to the method. + + Returns: + A :class:`~google.ads.googleads_v4.types.CampaignExtensionSetting` instance. + + Raises: + google.api_core.exceptions.GoogleAPICallError: If the request + failed for any reason. + google.api_core.exceptions.RetryError: If the request failed due + to a retryable error and retry attempts failed. + ValueError: If the parameters are invalid. + """ + # Wrap the transport method to add retry and timeout logic. + if 'get_campaign_extension_setting' not in self._inner_api_calls: + self._inner_api_calls['get_campaign_extension_setting'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.get_campaign_extension_setting, + default_retry=self._method_configs['GetCampaignExtensionSetting'].retry, + default_timeout=self._method_configs['GetCampaignExtensionSetting'].timeout, + client_info=self._client_info, + ) + + request = campaign_extension_setting_service_pb2.GetCampaignExtensionSettingRequest( + resource_name=resource_name, + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [('resource_name', resource_name)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata(routing_header) + metadata.append(routing_metadata) + + return self._inner_api_calls['get_campaign_extension_setting'](request, retry=retry, timeout=timeout, metadata=metadata) + + def mutate_campaign_extension_settings( + self, + customer_id, + operations, + partial_failure=None, + validate_only=None, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None): + """ + Creates, updates, or removes campaign extension settings. Operation + statuses are returned. + + Args: + customer_id (str): Required. The ID of the customer whose campaign extension settings are being + modified. + operations (list[Union[dict, ~google.ads.googleads_v4.types.CampaignExtensionSettingOperation]]): Required. The list of operations to perform on individual campaign extension + settings. + + If a dict is provided, it must be of the same form as the protobuf + message :class:`~google.ads.googleads_v4.types.CampaignExtensionSettingOperation` + partial_failure (bool): If true, successful operations will be carried out and invalid + operations will return errors. If false, all operations will be carried + out in one transaction if and only if they are all valid. + Default is false. + validate_only (bool): If true, the request is validated but not executed. Only errors are + returned, not results. + retry (Optional[google.api_core.retry.Retry]): A retry object used + to retry requests. If ``None`` is specified, requests will not + be retried. + timeout (Optional[float]): The amount of time, in seconds, to wait + for the request to complete. Note that if ``retry`` is + specified, the timeout applies to each individual attempt. + metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata + that is provided to the method. + + Returns: + A :class:`~google.ads.googleads_v4.types.MutateCampaignExtensionSettingsResponse` instance. + + Raises: + google.api_core.exceptions.GoogleAPICallError: If the request + failed for any reason. + google.api_core.exceptions.RetryError: If the request failed due + to a retryable error and retry attempts failed. + ValueError: If the parameters are invalid. + """ + # Wrap the transport method to add retry and timeout logic. + if 'mutate_campaign_extension_settings' not in self._inner_api_calls: + self._inner_api_calls['mutate_campaign_extension_settings'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.mutate_campaign_extension_settings, + default_retry=self._method_configs['MutateCampaignExtensionSettings'].retry, + default_timeout=self._method_configs['MutateCampaignExtensionSettings'].timeout, + client_info=self._client_info, + ) + + request = campaign_extension_setting_service_pb2.MutateCampaignExtensionSettingsRequest( + customer_id=customer_id, + operations=operations, + partial_failure=partial_failure, + validate_only=validate_only, + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [('customer_id', customer_id)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata(routing_header) + metadata.append(routing_metadata) + + return self._inner_api_calls['mutate_campaign_extension_settings'](request, retry=retry, timeout=timeout, metadata=metadata) diff --git a/google/ads/google_ads/v4/services/campaign_extension_setting_service_client_config.py b/google/ads/google_ads/v4/services/campaign_extension_setting_service_client_config.py new file mode 100644 index 000000000..7cd8a5c8e --- /dev/null +++ b/google/ads/google_ads/v4/services/campaign_extension_setting_service_client_config.py @@ -0,0 +1,36 @@ +config = { + "interfaces": { + "google.ads.googleads.v4.services.CampaignExtensionSettingService": { + "retry_codes": { + "idempotent": [ + "DEADLINE_EXCEEDED", + "UNAVAILABLE" + ], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 5000, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 3600000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 3600000, + "total_timeout_millis": 3600000 + } + }, + "methods": { + "GetCampaignExtensionSetting": { + "timeout_millis": 60000, + "retry_codes_name": "idempotent", + "retry_params_name": "default" + }, + "MutateCampaignExtensionSettings": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + } + } + } + } +} diff --git a/google/ads/google_ads/v4/services/campaign_feed_service_client.py b/google/ads/google_ads/v4/services/campaign_feed_service_client.py new file mode 100644 index 000000000..c16a12818 --- /dev/null +++ b/google/ads/google_ads/v4/services/campaign_feed_service_client.py @@ -0,0 +1,298 @@ +# -*- coding: utf-8 -*- +# +# 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. + +"""Accesses the google.ads.googleads.v4.services CampaignFeedService API.""" + +import pkg_resources +import warnings + +from google.oauth2 import service_account +import google.api_core.gapic_v1.client_info +import google.api_core.gapic_v1.config +import google.api_core.gapic_v1.method +import google.api_core.gapic_v1.routing_header +import google.api_core.grpc_helpers +import google.api_core.path_template + +from google.ads.google_ads.v4.services import campaign_feed_service_client_config +from google.ads.google_ads.v4.services.transports import campaign_feed_service_grpc_transport +from google.ads.google_ads.v4.proto.services import campaign_feed_service_pb2 + + + +_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( + 'google-ads', +).version + + +class CampaignFeedServiceClient(object): + """Service to manage campaign feeds.""" + + SERVICE_ADDRESS = 'googleads.googleapis.com:443' + """The default address of the service.""" + + # The name of the interface for this client. This is the key used to + # find the method configuration in the client_config dictionary. + _INTERFACE_NAME = 'google.ads.googleads.v4.services.CampaignFeedService' + + + @classmethod + def from_service_account_file(cls, filename, *args, **kwargs): + """Creates an instance of this client using the provided credentials + file. + + Args: + filename (str): The path to the service account private key json + file. + args: Additional arguments to pass to the constructor. + kwargs: Additional arguments to pass to the constructor. + + Returns: + CampaignFeedServiceClient: The constructed client. + """ + credentials = service_account.Credentials.from_service_account_file( + filename) + kwargs['credentials'] = credentials + return cls(*args, **kwargs) + + from_service_account_json = from_service_account_file + + + @classmethod + def campaign_feed_path(cls, customer, campaign_feed): + """Return a fully-qualified campaign_feed string.""" + return google.api_core.path_template.expand( + 'customers/{customer}/campaignFeeds/{campaign_feed}', + customer=customer, + campaign_feed=campaign_feed, + ) + + def __init__(self, transport=None, channel=None, credentials=None, + client_config=None, client_info=None): + """Constructor. + + Args: + transport (Union[~.CampaignFeedServiceGrpcTransport, + Callable[[~.Credentials, type], ~.CampaignFeedServiceGrpcTransport]): A transport + instance, responsible for actually making the API calls. + The default transport uses the gRPC protocol. + This argument may also be a callable which returns a + transport instance. Callables will be sent the credentials + as the first argument and the default transport class as + the second argument. + channel (grpc.Channel): DEPRECATED. A ``Channel`` instance + through which to make calls. This argument is mutually exclusive + with ``credentials``; providing both will raise an exception. + credentials (google.auth.credentials.Credentials): The + authorization credentials to attach to requests. These + credentials identify this application to the service. If none + are specified, the client will attempt to ascertain the + credentials from the environment. + This argument is mutually exclusive with providing a + transport instance to ``transport``; doing so will raise + an exception. + client_config (dict): DEPRECATED. A dictionary of call options for + each method. If not specified, the default configuration is used. + client_info (google.api_core.gapic_v1.client_info.ClientInfo): + The client info used to send a user-agent string along with + API requests. If ``None``, then default info will be used. + Generally, you only need to set this if you're developing + your own client library. + """ + # Raise deprecation warnings for things we want to go away. + if client_config is not None: + warnings.warn('The `client_config` argument is deprecated.', + PendingDeprecationWarning, stacklevel=2) + else: + client_config = campaign_feed_service_client_config.config + + if channel: + warnings.warn('The `channel` argument is deprecated; use ' + '`transport` instead.', + PendingDeprecationWarning, stacklevel=2) + + # Instantiate the transport. + # The transport is responsible for handling serialization and + # deserialization and actually sending data to the service. + if transport: + if callable(transport): + self.transport = transport( + credentials=credentials, + default_class=campaign_feed_service_grpc_transport.CampaignFeedServiceGrpcTransport, + ) + else: + if credentials: + raise ValueError( + 'Received both a transport instance and ' + 'credentials; these are mutually exclusive.' + ) + self.transport = transport + else: + self.transport = campaign_feed_service_grpc_transport.CampaignFeedServiceGrpcTransport( + address=self.SERVICE_ADDRESS, + channel=channel, + credentials=credentials, + ) + + if client_info is None: + client_info = google.api_core.gapic_v1.client_info.ClientInfo( + gapic_version=_GAPIC_LIBRARY_VERSION, + ) + else: + client_info.gapic_version = _GAPIC_LIBRARY_VERSION + self._client_info = client_info + + # Parse out the default settings for retry and timeout for each RPC + # from the client configuration. + # (Ordinarily, these are the defaults specified in the `*_config.py` + # file next to this one.) + self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( + client_config['interfaces'][self._INTERFACE_NAME], + ) + + # Save a dictionary of cached API call functions. + # These are the actual callables which invoke the proper + # transport methods, wrapped with `wrap_method` to add retry, + # timeout, and the like. + self._inner_api_calls = {} + + # Service calls + def get_campaign_feed( + self, + resource_name, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None): + """ + Returns the requested campaign feed in full detail. + + Args: + resource_name (str): Required. The resource name of the campaign feed to fetch. + retry (Optional[google.api_core.retry.Retry]): A retry object used + to retry requests. If ``None`` is specified, requests will not + be retried. + timeout (Optional[float]): The amount of time, in seconds, to wait + for the request to complete. Note that if ``retry`` is + specified, the timeout applies to each individual attempt. + metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata + that is provided to the method. + + Returns: + A :class:`~google.ads.googleads_v4.types.CampaignFeed` instance. + + Raises: + google.api_core.exceptions.GoogleAPICallError: If the request + failed for any reason. + google.api_core.exceptions.RetryError: If the request failed due + to a retryable error and retry attempts failed. + ValueError: If the parameters are invalid. + """ + # Wrap the transport method to add retry and timeout logic. + if 'get_campaign_feed' not in self._inner_api_calls: + self._inner_api_calls['get_campaign_feed'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.get_campaign_feed, + default_retry=self._method_configs['GetCampaignFeed'].retry, + default_timeout=self._method_configs['GetCampaignFeed'].timeout, + client_info=self._client_info, + ) + + request = campaign_feed_service_pb2.GetCampaignFeedRequest( + resource_name=resource_name, + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [('resource_name', resource_name)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata(routing_header) + metadata.append(routing_metadata) + + return self._inner_api_calls['get_campaign_feed'](request, retry=retry, timeout=timeout, metadata=metadata) + + def mutate_campaign_feeds( + self, + customer_id, + operations, + partial_failure=None, + validate_only=None, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None): + """ + Creates, updates, or removes campaign feeds. Operation statuses are + returned. + + Args: + customer_id (str): Required. The ID of the customer whose campaign feeds are being modified. + operations (list[Union[dict, ~google.ads.googleads_v4.types.CampaignFeedOperation]]): Required. The list of operations to perform on individual campaign feeds. + + If a dict is provided, it must be of the same form as the protobuf + message :class:`~google.ads.googleads_v4.types.CampaignFeedOperation` + partial_failure (bool): If true, successful operations will be carried out and invalid + operations will return errors. If false, all operations will be carried + out in one transaction if and only if they are all valid. + Default is false. + validate_only (bool): If true, the request is validated but not executed. Only errors are + returned, not results. + retry (Optional[google.api_core.retry.Retry]): A retry object used + to retry requests. If ``None`` is specified, requests will not + be retried. + timeout (Optional[float]): The amount of time, in seconds, to wait + for the request to complete. Note that if ``retry`` is + specified, the timeout applies to each individual attempt. + metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata + that is provided to the method. + + Returns: + A :class:`~google.ads.googleads_v4.types.MutateCampaignFeedsResponse` instance. + + Raises: + google.api_core.exceptions.GoogleAPICallError: If the request + failed for any reason. + google.api_core.exceptions.RetryError: If the request failed due + to a retryable error and retry attempts failed. + ValueError: If the parameters are invalid. + """ + # Wrap the transport method to add retry and timeout logic. + if 'mutate_campaign_feeds' not in self._inner_api_calls: + self._inner_api_calls['mutate_campaign_feeds'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.mutate_campaign_feeds, + default_retry=self._method_configs['MutateCampaignFeeds'].retry, + default_timeout=self._method_configs['MutateCampaignFeeds'].timeout, + client_info=self._client_info, + ) + + request = campaign_feed_service_pb2.MutateCampaignFeedsRequest( + customer_id=customer_id, + operations=operations, + partial_failure=partial_failure, + validate_only=validate_only, + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [('customer_id', customer_id)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata(routing_header) + metadata.append(routing_metadata) + + return self._inner_api_calls['mutate_campaign_feeds'](request, retry=retry, timeout=timeout, metadata=metadata) diff --git a/google/ads/google_ads/v4/services/campaign_feed_service_client_config.py b/google/ads/google_ads/v4/services/campaign_feed_service_client_config.py new file mode 100644 index 000000000..b3ae1dcd0 --- /dev/null +++ b/google/ads/google_ads/v4/services/campaign_feed_service_client_config.py @@ -0,0 +1,36 @@ +config = { + "interfaces": { + "google.ads.googleads.v4.services.CampaignFeedService": { + "retry_codes": { + "idempotent": [ + "DEADLINE_EXCEEDED", + "UNAVAILABLE" + ], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 5000, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 3600000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 3600000, + "total_timeout_millis": 3600000 + } + }, + "methods": { + "GetCampaignFeed": { + "timeout_millis": 60000, + "retry_codes_name": "idempotent", + "retry_params_name": "default" + }, + "MutateCampaignFeeds": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + } + } + } + } +} diff --git a/google/ads/google_ads/v4/services/campaign_label_service_client.py b/google/ads/google_ads/v4/services/campaign_label_service_client.py new file mode 100644 index 000000000..6a4d3f152 --- /dev/null +++ b/google/ads/google_ads/v4/services/campaign_label_service_client.py @@ -0,0 +1,298 @@ +# -*- coding: utf-8 -*- +# +# 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. + +"""Accesses the google.ads.googleads.v4.services CampaignLabelService API.""" + +import pkg_resources +import warnings + +from google.oauth2 import service_account +import google.api_core.gapic_v1.client_info +import google.api_core.gapic_v1.config +import google.api_core.gapic_v1.method +import google.api_core.gapic_v1.routing_header +import google.api_core.grpc_helpers +import google.api_core.path_template + +from google.ads.google_ads.v4.services import campaign_label_service_client_config +from google.ads.google_ads.v4.services.transports import campaign_label_service_grpc_transport +from google.ads.google_ads.v4.proto.services import campaign_label_service_pb2 + + + +_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( + 'google-ads', +).version + + +class CampaignLabelServiceClient(object): + """Service to manage labels on campaigns.""" + + SERVICE_ADDRESS = 'googleads.googleapis.com:443' + """The default address of the service.""" + + # The name of the interface for this client. This is the key used to + # find the method configuration in the client_config dictionary. + _INTERFACE_NAME = 'google.ads.googleads.v4.services.CampaignLabelService' + + + @classmethod + def from_service_account_file(cls, filename, *args, **kwargs): + """Creates an instance of this client using the provided credentials + file. + + Args: + filename (str): The path to the service account private key json + file. + args: Additional arguments to pass to the constructor. + kwargs: Additional arguments to pass to the constructor. + + Returns: + CampaignLabelServiceClient: The constructed client. + """ + credentials = service_account.Credentials.from_service_account_file( + filename) + kwargs['credentials'] = credentials + return cls(*args, **kwargs) + + from_service_account_json = from_service_account_file + + + @classmethod + def campaign_label_path(cls, customer, campaign_label): + """Return a fully-qualified campaign_label string.""" + return google.api_core.path_template.expand( + 'customers/{customer}/campaignLabels/{campaign_label}', + customer=customer, + campaign_label=campaign_label, + ) + + def __init__(self, transport=None, channel=None, credentials=None, + client_config=None, client_info=None): + """Constructor. + + Args: + transport (Union[~.CampaignLabelServiceGrpcTransport, + Callable[[~.Credentials, type], ~.CampaignLabelServiceGrpcTransport]): A transport + instance, responsible for actually making the API calls. + The default transport uses the gRPC protocol. + This argument may also be a callable which returns a + transport instance. Callables will be sent the credentials + as the first argument and the default transport class as + the second argument. + channel (grpc.Channel): DEPRECATED. A ``Channel`` instance + through which to make calls. This argument is mutually exclusive + with ``credentials``; providing both will raise an exception. + credentials (google.auth.credentials.Credentials): The + authorization credentials to attach to requests. These + credentials identify this application to the service. If none + are specified, the client will attempt to ascertain the + credentials from the environment. + This argument is mutually exclusive with providing a + transport instance to ``transport``; doing so will raise + an exception. + client_config (dict): DEPRECATED. A dictionary of call options for + each method. If not specified, the default configuration is used. + client_info (google.api_core.gapic_v1.client_info.ClientInfo): + The client info used to send a user-agent string along with + API requests. If ``None``, then default info will be used. + Generally, you only need to set this if you're developing + your own client library. + """ + # Raise deprecation warnings for things we want to go away. + if client_config is not None: + warnings.warn('The `client_config` argument is deprecated.', + PendingDeprecationWarning, stacklevel=2) + else: + client_config = campaign_label_service_client_config.config + + if channel: + warnings.warn('The `channel` argument is deprecated; use ' + '`transport` instead.', + PendingDeprecationWarning, stacklevel=2) + + # Instantiate the transport. + # The transport is responsible for handling serialization and + # deserialization and actually sending data to the service. + if transport: + if callable(transport): + self.transport = transport( + credentials=credentials, + default_class=campaign_label_service_grpc_transport.CampaignLabelServiceGrpcTransport, + ) + else: + if credentials: + raise ValueError( + 'Received both a transport instance and ' + 'credentials; these are mutually exclusive.' + ) + self.transport = transport + else: + self.transport = campaign_label_service_grpc_transport.CampaignLabelServiceGrpcTransport( + address=self.SERVICE_ADDRESS, + channel=channel, + credentials=credentials, + ) + + if client_info is None: + client_info = google.api_core.gapic_v1.client_info.ClientInfo( + gapic_version=_GAPIC_LIBRARY_VERSION, + ) + else: + client_info.gapic_version = _GAPIC_LIBRARY_VERSION + self._client_info = client_info + + # Parse out the default settings for retry and timeout for each RPC + # from the client configuration. + # (Ordinarily, these are the defaults specified in the `*_config.py` + # file next to this one.) + self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( + client_config['interfaces'][self._INTERFACE_NAME], + ) + + # Save a dictionary of cached API call functions. + # These are the actual callables which invoke the proper + # transport methods, wrapped with `wrap_method` to add retry, + # timeout, and the like. + self._inner_api_calls = {} + + # Service calls + def get_campaign_label( + self, + resource_name, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None): + """ + Returns the requested campaign-label relationship in full detail. + + Args: + resource_name (str): Required. The resource name of the campaign-label relationship to fetch. + retry (Optional[google.api_core.retry.Retry]): A retry object used + to retry requests. If ``None`` is specified, requests will not + be retried. + timeout (Optional[float]): The amount of time, in seconds, to wait + for the request to complete. Note that if ``retry`` is + specified, the timeout applies to each individual attempt. + metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata + that is provided to the method. + + Returns: + A :class:`~google.ads.googleads_v4.types.CampaignLabel` instance. + + Raises: + google.api_core.exceptions.GoogleAPICallError: If the request + failed for any reason. + google.api_core.exceptions.RetryError: If the request failed due + to a retryable error and retry attempts failed. + ValueError: If the parameters are invalid. + """ + # Wrap the transport method to add retry and timeout logic. + if 'get_campaign_label' not in self._inner_api_calls: + self._inner_api_calls['get_campaign_label'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.get_campaign_label, + default_retry=self._method_configs['GetCampaignLabel'].retry, + default_timeout=self._method_configs['GetCampaignLabel'].timeout, + client_info=self._client_info, + ) + + request = campaign_label_service_pb2.GetCampaignLabelRequest( + resource_name=resource_name, + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [('resource_name', resource_name)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata(routing_header) + metadata.append(routing_metadata) + + return self._inner_api_calls['get_campaign_label'](request, retry=retry, timeout=timeout, metadata=metadata) + + def mutate_campaign_labels( + self, + customer_id, + operations, + partial_failure=None, + validate_only=None, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None): + """ + Creates and removes campaign-label relationships. + Operation statuses are returned. + + Args: + customer_id (str): Required. ID of the customer whose campaign-label relationships are being modified. + operations (list[Union[dict, ~google.ads.googleads_v4.types.CampaignLabelOperation]]): Required. The list of operations to perform on campaign-label relationships. + + If a dict is provided, it must be of the same form as the protobuf + message :class:`~google.ads.googleads_v4.types.CampaignLabelOperation` + partial_failure (bool): If true, successful operations will be carried out and invalid + operations will return errors. If false, all operations will be carried + out in one transaction if and only if they are all valid. + Default is false. + validate_only (bool): If true, the request is validated but not executed. Only errors are + returned, not results. + retry (Optional[google.api_core.retry.Retry]): A retry object used + to retry requests. If ``None`` is specified, requests will not + be retried. + timeout (Optional[float]): The amount of time, in seconds, to wait + for the request to complete. Note that if ``retry`` is + specified, the timeout applies to each individual attempt. + metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata + that is provided to the method. + + Returns: + A :class:`~google.ads.googleads_v4.types.MutateCampaignLabelsResponse` instance. + + Raises: + google.api_core.exceptions.GoogleAPICallError: If the request + failed for any reason. + google.api_core.exceptions.RetryError: If the request failed due + to a retryable error and retry attempts failed. + ValueError: If the parameters are invalid. + """ + # Wrap the transport method to add retry and timeout logic. + if 'mutate_campaign_labels' not in self._inner_api_calls: + self._inner_api_calls['mutate_campaign_labels'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.mutate_campaign_labels, + default_retry=self._method_configs['MutateCampaignLabels'].retry, + default_timeout=self._method_configs['MutateCampaignLabels'].timeout, + client_info=self._client_info, + ) + + request = campaign_label_service_pb2.MutateCampaignLabelsRequest( + customer_id=customer_id, + operations=operations, + partial_failure=partial_failure, + validate_only=validate_only, + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [('customer_id', customer_id)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata(routing_header) + metadata.append(routing_metadata) + + return self._inner_api_calls['mutate_campaign_labels'](request, retry=retry, timeout=timeout, metadata=metadata) diff --git a/google/ads/google_ads/v4/services/campaign_label_service_client_config.py b/google/ads/google_ads/v4/services/campaign_label_service_client_config.py new file mode 100644 index 000000000..7ef1ad945 --- /dev/null +++ b/google/ads/google_ads/v4/services/campaign_label_service_client_config.py @@ -0,0 +1,36 @@ +config = { + "interfaces": { + "google.ads.googleads.v4.services.CampaignLabelService": { + "retry_codes": { + "idempotent": [ + "DEADLINE_EXCEEDED", + "UNAVAILABLE" + ], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 5000, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 3600000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 3600000, + "total_timeout_millis": 3600000 + } + }, + "methods": { + "GetCampaignLabel": { + "timeout_millis": 60000, + "retry_codes_name": "idempotent", + "retry_params_name": "default" + }, + "MutateCampaignLabels": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + } + } + } + } +} diff --git a/google/ads/google_ads/v4/services/campaign_service_client.py b/google/ads/google_ads/v4/services/campaign_service_client.py new file mode 100644 index 000000000..dba7c2ae0 --- /dev/null +++ b/google/ads/google_ads/v4/services/campaign_service_client.py @@ -0,0 +1,297 @@ +# -*- coding: utf-8 -*- +# +# 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. + +"""Accesses the google.ads.googleads.v4.services CampaignService API.""" + +import pkg_resources +import warnings + +from google.oauth2 import service_account +import google.api_core.gapic_v1.client_info +import google.api_core.gapic_v1.config +import google.api_core.gapic_v1.method +import google.api_core.gapic_v1.routing_header +import google.api_core.grpc_helpers +import google.api_core.path_template + +from google.ads.google_ads.v4.services import campaign_service_client_config +from google.ads.google_ads.v4.services.transports import campaign_service_grpc_transport +from google.ads.google_ads.v4.proto.services import campaign_service_pb2 + + + +_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( + 'google-ads', +).version + + +class CampaignServiceClient(object): + """Service to manage campaigns.""" + + SERVICE_ADDRESS = 'googleads.googleapis.com:443' + """The default address of the service.""" + + # The name of the interface for this client. This is the key used to + # find the method configuration in the client_config dictionary. + _INTERFACE_NAME = 'google.ads.googleads.v4.services.CampaignService' + + + @classmethod + def from_service_account_file(cls, filename, *args, **kwargs): + """Creates an instance of this client using the provided credentials + file. + + Args: + filename (str): The path to the service account private key json + file. + args: Additional arguments to pass to the constructor. + kwargs: Additional arguments to pass to the constructor. + + Returns: + CampaignServiceClient: The constructed client. + """ + credentials = service_account.Credentials.from_service_account_file( + filename) + kwargs['credentials'] = credentials + return cls(*args, **kwargs) + + from_service_account_json = from_service_account_file + + + @classmethod + def campaign_path(cls, customer, campaign): + """Return a fully-qualified campaign string.""" + return google.api_core.path_template.expand( + 'customers/{customer}/campaigns/{campaign}', + customer=customer, + campaign=campaign, + ) + + def __init__(self, transport=None, channel=None, credentials=None, + client_config=None, client_info=None): + """Constructor. + + Args: + transport (Union[~.CampaignServiceGrpcTransport, + Callable[[~.Credentials, type], ~.CampaignServiceGrpcTransport]): A transport + instance, responsible for actually making the API calls. + The default transport uses the gRPC protocol. + This argument may also be a callable which returns a + transport instance. Callables will be sent the credentials + as the first argument and the default transport class as + the second argument. + channel (grpc.Channel): DEPRECATED. A ``Channel`` instance + through which to make calls. This argument is mutually exclusive + with ``credentials``; providing both will raise an exception. + credentials (google.auth.credentials.Credentials): The + authorization credentials to attach to requests. These + credentials identify this application to the service. If none + are specified, the client will attempt to ascertain the + credentials from the environment. + This argument is mutually exclusive with providing a + transport instance to ``transport``; doing so will raise + an exception. + client_config (dict): DEPRECATED. A dictionary of call options for + each method. If not specified, the default configuration is used. + client_info (google.api_core.gapic_v1.client_info.ClientInfo): + The client info used to send a user-agent string along with + API requests. If ``None``, then default info will be used. + Generally, you only need to set this if you're developing + your own client library. + """ + # Raise deprecation warnings for things we want to go away. + if client_config is not None: + warnings.warn('The `client_config` argument is deprecated.', + PendingDeprecationWarning, stacklevel=2) + else: + client_config = campaign_service_client_config.config + + if channel: + warnings.warn('The `channel` argument is deprecated; use ' + '`transport` instead.', + PendingDeprecationWarning, stacklevel=2) + + # Instantiate the transport. + # The transport is responsible for handling serialization and + # deserialization and actually sending data to the service. + if transport: + if callable(transport): + self.transport = transport( + credentials=credentials, + default_class=campaign_service_grpc_transport.CampaignServiceGrpcTransport, + ) + else: + if credentials: + raise ValueError( + 'Received both a transport instance and ' + 'credentials; these are mutually exclusive.' + ) + self.transport = transport + else: + self.transport = campaign_service_grpc_transport.CampaignServiceGrpcTransport( + address=self.SERVICE_ADDRESS, + channel=channel, + credentials=credentials, + ) + + if client_info is None: + client_info = google.api_core.gapic_v1.client_info.ClientInfo( + gapic_version=_GAPIC_LIBRARY_VERSION, + ) + else: + client_info.gapic_version = _GAPIC_LIBRARY_VERSION + self._client_info = client_info + + # Parse out the default settings for retry and timeout for each RPC + # from the client configuration. + # (Ordinarily, these are the defaults specified in the `*_config.py` + # file next to this one.) + self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( + client_config['interfaces'][self._INTERFACE_NAME], + ) + + # Save a dictionary of cached API call functions. + # These are the actual callables which invoke the proper + # transport methods, wrapped with `wrap_method` to add retry, + # timeout, and the like. + self._inner_api_calls = {} + + # Service calls + def get_campaign( + self, + resource_name, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None): + """ + Returns the requested campaign in full detail. + + Args: + resource_name (str): Required. The resource name of the campaign to fetch. + retry (Optional[google.api_core.retry.Retry]): A retry object used + to retry requests. If ``None`` is specified, requests will not + be retried. + timeout (Optional[float]): The amount of time, in seconds, to wait + for the request to complete. Note that if ``retry`` is + specified, the timeout applies to each individual attempt. + metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata + that is provided to the method. + + Returns: + A :class:`~google.ads.googleads_v4.types.Campaign` instance. + + Raises: + google.api_core.exceptions.GoogleAPICallError: If the request + failed for any reason. + google.api_core.exceptions.RetryError: If the request failed due + to a retryable error and retry attempts failed. + ValueError: If the parameters are invalid. + """ + # Wrap the transport method to add retry and timeout logic. + if 'get_campaign' not in self._inner_api_calls: + self._inner_api_calls['get_campaign'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.get_campaign, + default_retry=self._method_configs['GetCampaign'].retry, + default_timeout=self._method_configs['GetCampaign'].timeout, + client_info=self._client_info, + ) + + request = campaign_service_pb2.GetCampaignRequest( + resource_name=resource_name, + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [('resource_name', resource_name)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata(routing_header) + metadata.append(routing_metadata) + + return self._inner_api_calls['get_campaign'](request, retry=retry, timeout=timeout, metadata=metadata) + + def mutate_campaigns( + self, + customer_id, + operations, + partial_failure=None, + validate_only=None, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None): + """ + Creates, updates, or removes campaigns. Operation statuses are returned. + + Args: + customer_id (str): Required. The ID of the customer whose campaigns are being modified. + operations (list[Union[dict, ~google.ads.googleads_v4.types.CampaignOperation]]): Required. The list of operations to perform on individual campaigns. + + If a dict is provided, it must be of the same form as the protobuf + message :class:`~google.ads.googleads_v4.types.CampaignOperation` + partial_failure (bool): If true, successful operations will be carried out and invalid + operations will return errors. If false, all operations will be carried + out in one transaction if and only if they are all valid. + Default is false. + validate_only (bool): If true, the request is validated but not executed. Only errors are + returned, not results. + retry (Optional[google.api_core.retry.Retry]): A retry object used + to retry requests. If ``None`` is specified, requests will not + be retried. + timeout (Optional[float]): The amount of time, in seconds, to wait + for the request to complete. Note that if ``retry`` is + specified, the timeout applies to each individual attempt. + metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata + that is provided to the method. + + Returns: + A :class:`~google.ads.googleads_v4.types.MutateCampaignsResponse` instance. + + Raises: + google.api_core.exceptions.GoogleAPICallError: If the request + failed for any reason. + google.api_core.exceptions.RetryError: If the request failed due + to a retryable error and retry attempts failed. + ValueError: If the parameters are invalid. + """ + # Wrap the transport method to add retry and timeout logic. + if 'mutate_campaigns' not in self._inner_api_calls: + self._inner_api_calls['mutate_campaigns'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.mutate_campaigns, + default_retry=self._method_configs['MutateCampaigns'].retry, + default_timeout=self._method_configs['MutateCampaigns'].timeout, + client_info=self._client_info, + ) + + request = campaign_service_pb2.MutateCampaignsRequest( + customer_id=customer_id, + operations=operations, + partial_failure=partial_failure, + validate_only=validate_only, + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [('customer_id', customer_id)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata(routing_header) + metadata.append(routing_metadata) + + return self._inner_api_calls['mutate_campaigns'](request, retry=retry, timeout=timeout, metadata=metadata) diff --git a/google/ads/google_ads/v4/services/campaign_service_client_config.py b/google/ads/google_ads/v4/services/campaign_service_client_config.py new file mode 100644 index 000000000..65ac4294b --- /dev/null +++ b/google/ads/google_ads/v4/services/campaign_service_client_config.py @@ -0,0 +1,36 @@ +config = { + "interfaces": { + "google.ads.googleads.v4.services.CampaignService": { + "retry_codes": { + "idempotent": [ + "DEADLINE_EXCEEDED", + "UNAVAILABLE" + ], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 5000, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 3600000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 3600000, + "total_timeout_millis": 3600000 + } + }, + "methods": { + "GetCampaign": { + "timeout_millis": 60000, + "retry_codes_name": "idempotent", + "retry_params_name": "default" + }, + "MutateCampaigns": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + } + } + } + } +} diff --git a/google/ads/google_ads/v1/services/campaign_shared_set_service_client.py b/google/ads/google_ads/v4/services/campaign_shared_set_service_client.py similarity index 75% rename from google/ads/google_ads/v1/services/campaign_shared_set_service_client.py rename to google/ads/google_ads/v4/services/campaign_shared_set_service_client.py index 31cc697e2..fdd760510 100644 --- a/google/ads/google_ads/v1/services/campaign_shared_set_service_client.py +++ b/google/ads/google_ads/v4/services/campaign_shared_set_service_client.py @@ -13,7 +13,8 @@ # 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. -"""Accesses the google.ads.googleads.v1.services CampaignSharedSetService API.""" + +"""Accesses the google.ads.googleads.v4.services CampaignSharedSetService API.""" import pkg_resources import warnings @@ -22,15 +23,19 @@ import google.api_core.gapic_v1.client_info import google.api_core.gapic_v1.config import google.api_core.gapic_v1.method +import google.api_core.gapic_v1.routing_header import google.api_core.grpc_helpers import google.api_core.path_template -from google.ads.google_ads.v1.services import campaign_shared_set_service_client_config -from google.ads.google_ads.v1.services.transports import campaign_shared_set_service_grpc_transport -from google.ads.google_ads.v1.proto.services import campaign_shared_set_service_pb2 +from google.ads.google_ads.v4.services import campaign_shared_set_service_client_config +from google.ads.google_ads.v4.services.transports import campaign_shared_set_service_grpc_transport +from google.ads.google_ads.v4.proto.services import campaign_shared_set_service_pb2 + + _GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( - 'google-ads', ).version + 'google-ads', +).version class CampaignSharedSetServiceClient(object): @@ -41,7 +46,8 @@ class CampaignSharedSetServiceClient(object): # The name of the interface for this client. This is the key used to # find the method configuration in the client_config dictionary. - _INTERFACE_NAME = 'google.ads.googleads.v1.services.CampaignSharedSetService' + _INTERFACE_NAME = 'google.ads.googleads.v4.services.CampaignSharedSetService' + @classmethod def from_service_account_file(cls, filename, *args, **kwargs): @@ -64,6 +70,7 @@ def from_service_account_file(cls, filename, *args, **kwargs): from_service_account_json = from_service_account_file + @classmethod def campaign_shared_set_path(cls, customer, campaign_shared_set): """Return a fully-qualified campaign_shared_set string.""" @@ -73,12 +80,8 @@ def campaign_shared_set_path(cls, customer, campaign_shared_set): campaign_shared_set=campaign_shared_set, ) - def __init__(self, - transport=None, - channel=None, - credentials=None, - client_config=None, - client_info=None): + def __init__(self, transport=None, channel=None, credentials=None, + client_config=None, client_info=None): """Constructor. Args: @@ -111,19 +114,15 @@ def __init__(self, """ # Raise deprecation warnings for things we want to go away. if client_config is not None: - warnings.warn( - 'The `client_config` argument is deprecated.', - PendingDeprecationWarning, - stacklevel=2) + warnings.warn('The `client_config` argument is deprecated.', + PendingDeprecationWarning, stacklevel=2) else: client_config = campaign_shared_set_service_client_config.config if channel: - warnings.warn( - 'The `channel` argument is deprecated; use ' - '`transport` instead.', - PendingDeprecationWarning, - stacklevel=2) + warnings.warn('The `channel` argument is deprecated; use ' + '`transport` instead.', + PendingDeprecationWarning, stacklevel=2) # Instantiate the transport. # The transport is responsible for handling serialization and @@ -132,14 +131,14 @@ def __init__(self, if callable(transport): self.transport = transport( credentials=credentials, - default_class=campaign_shared_set_service_grpc_transport. - CampaignSharedSetServiceGrpcTransport, + default_class=campaign_shared_set_service_grpc_transport.CampaignSharedSetServiceGrpcTransport, ) else: if credentials: raise ValueError( 'Received both a transport instance and ' - 'credentials; these are mutually exclusive.') + 'credentials; these are mutually exclusive.' + ) self.transport = transport else: self.transport = campaign_shared_set_service_grpc_transport.CampaignSharedSetServiceGrpcTransport( @@ -150,7 +149,8 @@ def __init__(self, if client_info is None: client_info = google.api_core.gapic_v1.client_info.ClientInfo( - gapic_version=_GAPIC_LIBRARY_VERSION, ) + gapic_version=_GAPIC_LIBRARY_VERSION, + ) else: client_info.gapic_version = _GAPIC_LIBRARY_VERSION self._client_info = client_info @@ -160,7 +160,8 @@ def __init__(self, # (Ordinarily, these are the defaults specified in the `*_config.py` # file next to this one.) self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( - client_config['interfaces'][self._INTERFACE_NAME], ) + client_config['interfaces'][self._INTERFACE_NAME], + ) # Save a dictionary of cached API call functions. # These are the actual callables which invoke the proper @@ -179,7 +180,7 @@ def get_campaign_shared_set( Returns the requested campaign shared set in full detail. Args: - resource_name (str): The resource name of the campaign shared set to fetch. + resource_name (str): Required. The resource name of the campaign shared set to fetch. retry (Optional[google.api_core.retry.Retry]): A retry object used to retry requests. If ``None`` is specified, requests will not be retried. @@ -190,7 +191,7 @@ def get_campaign_shared_set( that is provided to the method. Returns: - A :class:`~google.ads.googleads_v1.types.CampaignSharedSet` instance. + A :class:`~google.ads.googleads_v4.types.CampaignSharedSet` instance. Raises: google.api_core.exceptions.GoogleAPICallError: If the request @@ -201,20 +202,28 @@ def get_campaign_shared_set( """ # Wrap the transport method to add retry and timeout logic. if 'get_campaign_shared_set' not in self._inner_api_calls: - self._inner_api_calls[ - 'get_campaign_shared_set'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.get_campaign_shared_set, - default_retry=self._method_configs['GetCampaignSharedSet']. - retry, - default_timeout=self. - _method_configs['GetCampaignSharedSet'].timeout, - client_info=self._client_info, - ) + self._inner_api_calls['get_campaign_shared_set'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.get_campaign_shared_set, + default_retry=self._method_configs['GetCampaignSharedSet'].retry, + default_timeout=self._method_configs['GetCampaignSharedSet'].timeout, + client_info=self._client_info, + ) request = campaign_shared_set_service_pb2.GetCampaignSharedSetRequest( - resource_name=resource_name, ) - return self._inner_api_calls['get_campaign_shared_set']( - request, retry=retry, timeout=timeout, metadata=metadata) + resource_name=resource_name, + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [('resource_name', resource_name)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata(routing_header) + metadata.append(routing_metadata) + + return self._inner_api_calls['get_campaign_shared_set'](request, retry=retry, timeout=timeout, metadata=metadata) def mutate_campaign_shared_sets( self, @@ -229,11 +238,11 @@ def mutate_campaign_shared_sets( Creates or removes campaign shared sets. Operation statuses are returned. Args: - customer_id (str): The ID of the customer whose campaign shared sets are being modified. - operations (list[Union[dict, ~google.ads.googleads_v1.types.CampaignSharedSetOperation]]): The list of operations to perform on individual campaign shared sets. + customer_id (str): Required. The ID of the customer whose campaign shared sets are being modified. + operations (list[Union[dict, ~google.ads.googleads_v4.types.CampaignSharedSetOperation]]): Required. The list of operations to perform on individual campaign shared sets. If a dict is provided, it must be of the same form as the protobuf - message :class:`~google.ads.googleads_v1.types.CampaignSharedSetOperation` + message :class:`~google.ads.googleads_v4.types.CampaignSharedSetOperation` partial_failure (bool): If true, successful operations will be carried out and invalid operations will return errors. If false, all operations will be carried out in one transaction if and only if they are all valid. @@ -250,7 +259,7 @@ def mutate_campaign_shared_sets( that is provided to the method. Returns: - A :class:`~google.ads.googleads_v1.types.MutateCampaignSharedSetsResponse` instance. + A :class:`~google.ads.googleads_v4.types.MutateCampaignSharedSetsResponse` instance. Raises: google.api_core.exceptions.GoogleAPICallError: If the request @@ -261,15 +270,12 @@ def mutate_campaign_shared_sets( """ # Wrap the transport method to add retry and timeout logic. if 'mutate_campaign_shared_sets' not in self._inner_api_calls: - self._inner_api_calls[ - 'mutate_campaign_shared_sets'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.mutate_campaign_shared_sets, - default_retry=self. - _method_configs['MutateCampaignSharedSets'].retry, - default_timeout=self. - _method_configs['MutateCampaignSharedSets'].timeout, - client_info=self._client_info, - ) + self._inner_api_calls['mutate_campaign_shared_sets'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.mutate_campaign_shared_sets, + default_retry=self._method_configs['MutateCampaignSharedSets'].retry, + default_timeout=self._method_configs['MutateCampaignSharedSets'].timeout, + client_info=self._client_info, + ) request = campaign_shared_set_service_pb2.MutateCampaignSharedSetsRequest( customer_id=customer_id, @@ -277,5 +283,15 @@ def mutate_campaign_shared_sets( partial_failure=partial_failure, validate_only=validate_only, ) - return self._inner_api_calls['mutate_campaign_shared_sets']( - request, retry=retry, timeout=timeout, metadata=metadata) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [('customer_id', customer_id)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata(routing_header) + metadata.append(routing_metadata) + + return self._inner_api_calls['mutate_campaign_shared_sets'](request, retry=retry, timeout=timeout, metadata=metadata) diff --git a/google/ads/google_ads/v4/services/campaign_shared_set_service_client_config.py b/google/ads/google_ads/v4/services/campaign_shared_set_service_client_config.py new file mode 100644 index 000000000..b8a905131 --- /dev/null +++ b/google/ads/google_ads/v4/services/campaign_shared_set_service_client_config.py @@ -0,0 +1,36 @@ +config = { + "interfaces": { + "google.ads.googleads.v4.services.CampaignSharedSetService": { + "retry_codes": { + "idempotent": [ + "DEADLINE_EXCEEDED", + "UNAVAILABLE" + ], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 5000, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 3600000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 3600000, + "total_timeout_millis": 3600000 + } + }, + "methods": { + "GetCampaignSharedSet": { + "timeout_millis": 60000, + "retry_codes_name": "idempotent", + "retry_params_name": "default" + }, + "MutateCampaignSharedSets": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + } + } + } + } +} diff --git a/google/ads/google_ads/v1/services/carrier_constant_service_client.py b/google/ads/google_ads/v4/services/carrier_constant_service_client.py similarity index 75% rename from google/ads/google_ads/v1/services/carrier_constant_service_client.py rename to google/ads/google_ads/v4/services/carrier_constant_service_client.py index 3f28fcf82..7499b0e7e 100644 --- a/google/ads/google_ads/v1/services/carrier_constant_service_client.py +++ b/google/ads/google_ads/v4/services/carrier_constant_service_client.py @@ -13,7 +13,8 @@ # 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. -"""Accesses the google.ads.googleads.v1.services CarrierConstantService API.""" + +"""Accesses the google.ads.googleads.v4.services CarrierConstantService API.""" import pkg_resources import warnings @@ -22,15 +23,19 @@ import google.api_core.gapic_v1.client_info import google.api_core.gapic_v1.config import google.api_core.gapic_v1.method +import google.api_core.gapic_v1.routing_header import google.api_core.grpc_helpers import google.api_core.path_template -from google.ads.google_ads.v1.services import carrier_constant_service_client_config -from google.ads.google_ads.v1.services.transports import carrier_constant_service_grpc_transport -from google.ads.google_ads.v1.proto.services import carrier_constant_service_pb2 +from google.ads.google_ads.v4.services import carrier_constant_service_client_config +from google.ads.google_ads.v4.services.transports import carrier_constant_service_grpc_transport +from google.ads.google_ads.v4.proto.services import carrier_constant_service_pb2 + + _GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( - 'google-ads', ).version + 'google-ads', +).version class CarrierConstantServiceClient(object): @@ -41,7 +46,8 @@ class CarrierConstantServiceClient(object): # The name of the interface for this client. This is the key used to # find the method configuration in the client_config dictionary. - _INTERFACE_NAME = 'google.ads.googleads.v1.services.CarrierConstantService' + _INTERFACE_NAME = 'google.ads.googleads.v4.services.CarrierConstantService' + @classmethod def from_service_account_file(cls, filename, *args, **kwargs): @@ -64,6 +70,7 @@ def from_service_account_file(cls, filename, *args, **kwargs): from_service_account_json = from_service_account_file + @classmethod def carrier_constant_path(cls, carrier_constant): """Return a fully-qualified carrier_constant string.""" @@ -72,12 +79,8 @@ def carrier_constant_path(cls, carrier_constant): carrier_constant=carrier_constant, ) - def __init__(self, - transport=None, - channel=None, - credentials=None, - client_config=None, - client_info=None): + def __init__(self, transport=None, channel=None, credentials=None, + client_config=None, client_info=None): """Constructor. Args: @@ -110,19 +113,15 @@ def __init__(self, """ # Raise deprecation warnings for things we want to go away. if client_config is not None: - warnings.warn( - 'The `client_config` argument is deprecated.', - PendingDeprecationWarning, - stacklevel=2) + warnings.warn('The `client_config` argument is deprecated.', + PendingDeprecationWarning, stacklevel=2) else: client_config = carrier_constant_service_client_config.config if channel: - warnings.warn( - 'The `channel` argument is deprecated; use ' - '`transport` instead.', - PendingDeprecationWarning, - stacklevel=2) + warnings.warn('The `channel` argument is deprecated; use ' + '`transport` instead.', + PendingDeprecationWarning, stacklevel=2) # Instantiate the transport. # The transport is responsible for handling serialization and @@ -131,14 +130,14 @@ def __init__(self, if callable(transport): self.transport = transport( credentials=credentials, - default_class=carrier_constant_service_grpc_transport. - CarrierConstantServiceGrpcTransport, + default_class=carrier_constant_service_grpc_transport.CarrierConstantServiceGrpcTransport, ) else: if credentials: raise ValueError( 'Received both a transport instance and ' - 'credentials; these are mutually exclusive.') + 'credentials; these are mutually exclusive.' + ) self.transport = transport else: self.transport = carrier_constant_service_grpc_transport.CarrierConstantServiceGrpcTransport( @@ -149,7 +148,8 @@ def __init__(self, if client_info is None: client_info = google.api_core.gapic_v1.client_info.ClientInfo( - gapic_version=_GAPIC_LIBRARY_VERSION, ) + gapic_version=_GAPIC_LIBRARY_VERSION, + ) else: client_info.gapic_version = _GAPIC_LIBRARY_VERSION self._client_info = client_info @@ -159,7 +159,8 @@ def __init__(self, # (Ordinarily, these are the defaults specified in the `*_config.py` # file next to this one.) self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( - client_config['interfaces'][self._INTERFACE_NAME], ) + client_config['interfaces'][self._INTERFACE_NAME], + ) # Save a dictionary of cached API call functions. # These are the actual callables which invoke the proper @@ -168,16 +169,17 @@ def __init__(self, self._inner_api_calls = {} # Service calls - def get_carrier_constant(self, - resource_name, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): + def get_carrier_constant( + self, + resource_name, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None): """ Returns the requested carrier constant in full detail. Args: - resource_name (str): Resource name of the carrier constant to fetch. + resource_name (str): Required. Resource name of the carrier constant to fetch. retry (Optional[google.api_core.retry.Retry]): A retry object used to retry requests. If ``None`` is specified, requests will not be retried. @@ -188,7 +190,7 @@ def get_carrier_constant(self, that is provided to the method. Returns: - A :class:`~google.ads.googleads_v1.types.CarrierConstant` instance. + A :class:`~google.ads.googleads_v4.types.CarrierConstant` instance. Raises: google.api_core.exceptions.GoogleAPICallError: If the request @@ -199,17 +201,25 @@ def get_carrier_constant(self, """ # Wrap the transport method to add retry and timeout logic. if 'get_carrier_constant' not in self._inner_api_calls: - self._inner_api_calls[ - 'get_carrier_constant'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.get_carrier_constant, - default_retry=self._method_configs['GetCarrierConstant']. - retry, - default_timeout=self._method_configs['GetCarrierConstant']. - timeout, - client_info=self._client_info, - ) + self._inner_api_calls['get_carrier_constant'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.get_carrier_constant, + default_retry=self._method_configs['GetCarrierConstant'].retry, + default_timeout=self._method_configs['GetCarrierConstant'].timeout, + client_info=self._client_info, + ) request = carrier_constant_service_pb2.GetCarrierConstantRequest( - resource_name=resource_name, ) - return self._inner_api_calls['get_carrier_constant']( - request, retry=retry, timeout=timeout, metadata=metadata) + resource_name=resource_name, + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [('resource_name', resource_name)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata(routing_header) + metadata.append(routing_metadata) + + return self._inner_api_calls['get_carrier_constant'](request, retry=retry, timeout=timeout, metadata=metadata) diff --git a/google/ads/google_ads/v4/services/carrier_constant_service_client_config.py b/google/ads/google_ads/v4/services/carrier_constant_service_client_config.py new file mode 100644 index 000000000..33fd7971b --- /dev/null +++ b/google/ads/google_ads/v4/services/carrier_constant_service_client_config.py @@ -0,0 +1,31 @@ +config = { + "interfaces": { + "google.ads.googleads.v4.services.CarrierConstantService": { + "retry_codes": { + "idempotent": [ + "DEADLINE_EXCEEDED", + "UNAVAILABLE" + ], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 5000, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 3600000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 3600000, + "total_timeout_millis": 3600000 + } + }, + "methods": { + "GetCarrierConstant": { + "timeout_millis": 60000, + "retry_codes_name": "idempotent", + "retry_params_name": "default" + } + } + } + } +} diff --git a/google/ads/google_ads/v1/services/change_status_service_client.py b/google/ads/google_ads/v4/services/change_status_service_client.py similarity index 76% rename from google/ads/google_ads/v1/services/change_status_service_client.py rename to google/ads/google_ads/v4/services/change_status_service_client.py index dd1100d25..0cd3115ed 100644 --- a/google/ads/google_ads/v1/services/change_status_service_client.py +++ b/google/ads/google_ads/v4/services/change_status_service_client.py @@ -13,7 +13,8 @@ # 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. -"""Accesses the google.ads.googleads.v1.services ChangeStatusService API.""" + +"""Accesses the google.ads.googleads.v4.services ChangeStatusService API.""" import pkg_resources import warnings @@ -22,15 +23,19 @@ import google.api_core.gapic_v1.client_info import google.api_core.gapic_v1.config import google.api_core.gapic_v1.method +import google.api_core.gapic_v1.routing_header import google.api_core.grpc_helpers import google.api_core.path_template -from google.ads.google_ads.v1.services import change_status_service_client_config -from google.ads.google_ads.v1.services.transports import change_status_service_grpc_transport -from google.ads.google_ads.v1.proto.services import change_status_service_pb2 +from google.ads.google_ads.v4.services import change_status_service_client_config +from google.ads.google_ads.v4.services.transports import change_status_service_grpc_transport +from google.ads.google_ads.v4.proto.services import change_status_service_pb2 + + _GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( - 'google-ads', ).version + 'google-ads', +).version class ChangeStatusServiceClient(object): @@ -41,7 +46,8 @@ class ChangeStatusServiceClient(object): # The name of the interface for this client. This is the key used to # find the method configuration in the client_config dictionary. - _INTERFACE_NAME = 'google.ads.googleads.v1.services.ChangeStatusService' + _INTERFACE_NAME = 'google.ads.googleads.v4.services.ChangeStatusService' + @classmethod def from_service_account_file(cls, filename, *args, **kwargs): @@ -64,6 +70,7 @@ def from_service_account_file(cls, filename, *args, **kwargs): from_service_account_json = from_service_account_file + @classmethod def change_status_path(cls, customer, change_status): """Return a fully-qualified change_status string.""" @@ -73,12 +80,8 @@ def change_status_path(cls, customer, change_status): change_status=change_status, ) - def __init__(self, - transport=None, - channel=None, - credentials=None, - client_config=None, - client_info=None): + def __init__(self, transport=None, channel=None, credentials=None, + client_config=None, client_info=None): """Constructor. Args: @@ -111,19 +114,15 @@ def __init__(self, """ # Raise deprecation warnings for things we want to go away. if client_config is not None: - warnings.warn( - 'The `client_config` argument is deprecated.', - PendingDeprecationWarning, - stacklevel=2) + warnings.warn('The `client_config` argument is deprecated.', + PendingDeprecationWarning, stacklevel=2) else: client_config = change_status_service_client_config.config if channel: - warnings.warn( - 'The `channel` argument is deprecated; use ' - '`transport` instead.', - PendingDeprecationWarning, - stacklevel=2) + warnings.warn('The `channel` argument is deprecated; use ' + '`transport` instead.', + PendingDeprecationWarning, stacklevel=2) # Instantiate the transport. # The transport is responsible for handling serialization and @@ -132,14 +131,14 @@ def __init__(self, if callable(transport): self.transport = transport( credentials=credentials, - default_class=change_status_service_grpc_transport. - ChangeStatusServiceGrpcTransport, + default_class=change_status_service_grpc_transport.ChangeStatusServiceGrpcTransport, ) else: if credentials: raise ValueError( 'Received both a transport instance and ' - 'credentials; these are mutually exclusive.') + 'credentials; these are mutually exclusive.' + ) self.transport = transport else: self.transport = change_status_service_grpc_transport.ChangeStatusServiceGrpcTransport( @@ -150,7 +149,8 @@ def __init__(self, if client_info is None: client_info = google.api_core.gapic_v1.client_info.ClientInfo( - gapic_version=_GAPIC_LIBRARY_VERSION, ) + gapic_version=_GAPIC_LIBRARY_VERSION, + ) else: client_info.gapic_version = _GAPIC_LIBRARY_VERSION self._client_info = client_info @@ -160,7 +160,8 @@ def __init__(self, # (Ordinarily, these are the defaults specified in the `*_config.py` # file next to this one.) self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( - client_config['interfaces'][self._INTERFACE_NAME], ) + client_config['interfaces'][self._INTERFACE_NAME], + ) # Save a dictionary of cached API call functions. # These are the actual callables which invoke the proper @@ -169,16 +170,17 @@ def __init__(self, self._inner_api_calls = {} # Service calls - def get_change_status(self, - resource_name, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): + def get_change_status( + self, + resource_name, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None): """ Returns the requested change status in full detail. Args: - resource_name (str): The resource name of the change status to fetch. + resource_name (str): Required. The resource name of the change status to fetch. retry (Optional[google.api_core.retry.Retry]): A retry object used to retry requests. If ``None`` is specified, requests will not be retried. @@ -189,7 +191,7 @@ def get_change_status(self, that is provided to the method. Returns: - A :class:`~google.ads.googleads_v1.types.ChangeStatus` instance. + A :class:`~google.ads.googleads_v4.types.ChangeStatus` instance. Raises: google.api_core.exceptions.GoogleAPICallError: If the request @@ -200,17 +202,25 @@ def get_change_status(self, """ # Wrap the transport method to add retry and timeout logic. if 'get_change_status' not in self._inner_api_calls: - self._inner_api_calls[ - 'get_change_status'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.get_change_status, - default_retry=self._method_configs['GetChangeStatus']. - retry, - default_timeout=self._method_configs['GetChangeStatus']. - timeout, - client_info=self._client_info, - ) + self._inner_api_calls['get_change_status'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.get_change_status, + default_retry=self._method_configs['GetChangeStatus'].retry, + default_timeout=self._method_configs['GetChangeStatus'].timeout, + client_info=self._client_info, + ) request = change_status_service_pb2.GetChangeStatusRequest( - resource_name=resource_name, ) - return self._inner_api_calls['get_change_status']( - request, retry=retry, timeout=timeout, metadata=metadata) + resource_name=resource_name, + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [('resource_name', resource_name)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata(routing_header) + metadata.append(routing_metadata) + + return self._inner_api_calls['get_change_status'](request, retry=retry, timeout=timeout, metadata=metadata) diff --git a/google/ads/google_ads/v4/services/change_status_service_client_config.py b/google/ads/google_ads/v4/services/change_status_service_client_config.py new file mode 100644 index 000000000..be4ee170c --- /dev/null +++ b/google/ads/google_ads/v4/services/change_status_service_client_config.py @@ -0,0 +1,31 @@ +config = { + "interfaces": { + "google.ads.googleads.v4.services.ChangeStatusService": { + "retry_codes": { + "idempotent": [ + "DEADLINE_EXCEEDED", + "UNAVAILABLE" + ], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 5000, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 3600000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 3600000, + "total_timeout_millis": 3600000 + } + }, + "methods": { + "GetChangeStatus": { + "timeout_millis": 60000, + "retry_codes_name": "idempotent", + "retry_params_name": "default" + } + } + } + } +} diff --git a/google/ads/google_ads/v1/services/click_view_service_client.py b/google/ads/google_ads/v4/services/click_view_service_client.py similarity index 76% rename from google/ads/google_ads/v1/services/click_view_service_client.py rename to google/ads/google_ads/v4/services/click_view_service_client.py index ba300e53a..e5b97ab62 100644 --- a/google/ads/google_ads/v1/services/click_view_service_client.py +++ b/google/ads/google_ads/v4/services/click_view_service_client.py @@ -13,7 +13,8 @@ # 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. -"""Accesses the google.ads.googleads.v1.services ClickViewService API.""" + +"""Accesses the google.ads.googleads.v4.services ClickViewService API.""" import pkg_resources import warnings @@ -22,15 +23,19 @@ import google.api_core.gapic_v1.client_info import google.api_core.gapic_v1.config import google.api_core.gapic_v1.method +import google.api_core.gapic_v1.routing_header import google.api_core.grpc_helpers import google.api_core.path_template -from google.ads.google_ads.v1.services import click_view_service_client_config -from google.ads.google_ads.v1.services.transports import click_view_service_grpc_transport -from google.ads.google_ads.v1.proto.services import click_view_service_pb2 +from google.ads.google_ads.v4.services import click_view_service_client_config +from google.ads.google_ads.v4.services.transports import click_view_service_grpc_transport +from google.ads.google_ads.v4.proto.services import click_view_service_pb2 + + _GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( - 'google-ads', ).version + 'google-ads', +).version class ClickViewServiceClient(object): @@ -41,7 +46,8 @@ class ClickViewServiceClient(object): # The name of the interface for this client. This is the key used to # find the method configuration in the client_config dictionary. - _INTERFACE_NAME = 'google.ads.googleads.v1.services.ClickViewService' + _INTERFACE_NAME = 'google.ads.googleads.v4.services.ClickViewService' + @classmethod def from_service_account_file(cls, filename, *args, **kwargs): @@ -64,6 +70,7 @@ def from_service_account_file(cls, filename, *args, **kwargs): from_service_account_json = from_service_account_file + @classmethod def click_view_path(cls, customer, click_view): """Return a fully-qualified click_view string.""" @@ -73,12 +80,8 @@ def click_view_path(cls, customer, click_view): click_view=click_view, ) - def __init__(self, - transport=None, - channel=None, - credentials=None, - client_config=None, - client_info=None): + def __init__(self, transport=None, channel=None, credentials=None, + client_config=None, client_info=None): """Constructor. Args: @@ -111,19 +114,15 @@ def __init__(self, """ # Raise deprecation warnings for things we want to go away. if client_config is not None: - warnings.warn( - 'The `client_config` argument is deprecated.', - PendingDeprecationWarning, - stacklevel=2) + warnings.warn('The `client_config` argument is deprecated.', + PendingDeprecationWarning, stacklevel=2) else: client_config = click_view_service_client_config.config if channel: - warnings.warn( - 'The `channel` argument is deprecated; use ' - '`transport` instead.', - PendingDeprecationWarning, - stacklevel=2) + warnings.warn('The `channel` argument is deprecated; use ' + '`transport` instead.', + PendingDeprecationWarning, stacklevel=2) # Instantiate the transport. # The transport is responsible for handling serialization and @@ -132,14 +131,14 @@ def __init__(self, if callable(transport): self.transport = transport( credentials=credentials, - default_class=click_view_service_grpc_transport. - ClickViewServiceGrpcTransport, + default_class=click_view_service_grpc_transport.ClickViewServiceGrpcTransport, ) else: if credentials: raise ValueError( 'Received both a transport instance and ' - 'credentials; these are mutually exclusive.') + 'credentials; these are mutually exclusive.' + ) self.transport = transport else: self.transport = click_view_service_grpc_transport.ClickViewServiceGrpcTransport( @@ -150,7 +149,8 @@ def __init__(self, if client_info is None: client_info = google.api_core.gapic_v1.client_info.ClientInfo( - gapic_version=_GAPIC_LIBRARY_VERSION, ) + gapic_version=_GAPIC_LIBRARY_VERSION, + ) else: client_info.gapic_version = _GAPIC_LIBRARY_VERSION self._client_info = client_info @@ -160,7 +160,8 @@ def __init__(self, # (Ordinarily, these are the defaults specified in the `*_config.py` # file next to this one.) self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( - client_config['interfaces'][self._INTERFACE_NAME], ) + client_config['interfaces'][self._INTERFACE_NAME], + ) # Save a dictionary of cached API call functions. # These are the actual callables which invoke the proper @@ -169,16 +170,17 @@ def __init__(self, self._inner_api_calls = {} # Service calls - def get_click_view(self, - resource_name, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): + def get_click_view( + self, + resource_name, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None): """ Returns the requested click view in full detail. Args: - resource_name (str): The resource name of the click view to fetch. + resource_name (str): Required. The resource name of the click view to fetch. retry (Optional[google.api_core.retry.Retry]): A retry object used to retry requests. If ``None`` is specified, requests will not be retried. @@ -189,7 +191,7 @@ def get_click_view(self, that is provided to the method. Returns: - A :class:`~google.ads.googleads_v1.types.ClickView` instance. + A :class:`~google.ads.googleads_v4.types.ClickView` instance. Raises: google.api_core.exceptions.GoogleAPICallError: If the request @@ -200,16 +202,25 @@ def get_click_view(self, """ # Wrap the transport method to add retry and timeout logic. if 'get_click_view' not in self._inner_api_calls: - self._inner_api_calls[ - 'get_click_view'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.get_click_view, - default_retry=self._method_configs['GetClickView'].retry, - default_timeout=self._method_configs['GetClickView']. - timeout, - client_info=self._client_info, - ) + self._inner_api_calls['get_click_view'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.get_click_view, + default_retry=self._method_configs['GetClickView'].retry, + default_timeout=self._method_configs['GetClickView'].timeout, + client_info=self._client_info, + ) request = click_view_service_pb2.GetClickViewRequest( - resource_name=resource_name, ) - return self._inner_api_calls['get_click_view']( - request, retry=retry, timeout=timeout, metadata=metadata) + resource_name=resource_name, + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [('resource_name', resource_name)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata(routing_header) + metadata.append(routing_metadata) + + return self._inner_api_calls['get_click_view'](request, retry=retry, timeout=timeout, metadata=metadata) diff --git a/google/ads/google_ads/v4/services/click_view_service_client_config.py b/google/ads/google_ads/v4/services/click_view_service_client_config.py new file mode 100644 index 000000000..5dedf73e3 --- /dev/null +++ b/google/ads/google_ads/v4/services/click_view_service_client_config.py @@ -0,0 +1,31 @@ +config = { + "interfaces": { + "google.ads.googleads.v4.services.ClickViewService": { + "retry_codes": { + "idempotent": [ + "DEADLINE_EXCEEDED", + "UNAVAILABLE" + ], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 5000, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 3600000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 3600000, + "total_timeout_millis": 3600000 + } + }, + "methods": { + "GetClickView": { + "timeout_millis": 60000, + "retry_codes_name": "idempotent", + "retry_params_name": "default" + } + } + } + } +} diff --git a/google/ads/google_ads/v4/services/conversion_action_service_client.py b/google/ads/google_ads/v4/services/conversion_action_service_client.py new file mode 100644 index 000000000..81b83ee6e --- /dev/null +++ b/google/ads/google_ads/v4/services/conversion_action_service_client.py @@ -0,0 +1,298 @@ +# -*- coding: utf-8 -*- +# +# 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. + +"""Accesses the google.ads.googleads.v4.services ConversionActionService API.""" + +import pkg_resources +import warnings + +from google.oauth2 import service_account +import google.api_core.gapic_v1.client_info +import google.api_core.gapic_v1.config +import google.api_core.gapic_v1.method +import google.api_core.gapic_v1.routing_header +import google.api_core.grpc_helpers +import google.api_core.path_template + +from google.ads.google_ads.v4.services import conversion_action_service_client_config +from google.ads.google_ads.v4.services.transports import conversion_action_service_grpc_transport +from google.ads.google_ads.v4.proto.services import conversion_action_service_pb2 + + + +_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( + 'google-ads', +).version + + +class ConversionActionServiceClient(object): + """Service to manage conversion actions.""" + + SERVICE_ADDRESS = 'googleads.googleapis.com:443' + """The default address of the service.""" + + # The name of the interface for this client. This is the key used to + # find the method configuration in the client_config dictionary. + _INTERFACE_NAME = 'google.ads.googleads.v4.services.ConversionActionService' + + + @classmethod + def from_service_account_file(cls, filename, *args, **kwargs): + """Creates an instance of this client using the provided credentials + file. + + Args: + filename (str): The path to the service account private key json + file. + args: Additional arguments to pass to the constructor. + kwargs: Additional arguments to pass to the constructor. + + Returns: + ConversionActionServiceClient: The constructed client. + """ + credentials = service_account.Credentials.from_service_account_file( + filename) + kwargs['credentials'] = credentials + return cls(*args, **kwargs) + + from_service_account_json = from_service_account_file + + + @classmethod + def conversion_action_path(cls, customer, conversion_action): + """Return a fully-qualified conversion_action string.""" + return google.api_core.path_template.expand( + 'customers/{customer}/conversionActions/{conversion_action}', + customer=customer, + conversion_action=conversion_action, + ) + + def __init__(self, transport=None, channel=None, credentials=None, + client_config=None, client_info=None): + """Constructor. + + Args: + transport (Union[~.ConversionActionServiceGrpcTransport, + Callable[[~.Credentials, type], ~.ConversionActionServiceGrpcTransport]): A transport + instance, responsible for actually making the API calls. + The default transport uses the gRPC protocol. + This argument may also be a callable which returns a + transport instance. Callables will be sent the credentials + as the first argument and the default transport class as + the second argument. + channel (grpc.Channel): DEPRECATED. A ``Channel`` instance + through which to make calls. This argument is mutually exclusive + with ``credentials``; providing both will raise an exception. + credentials (google.auth.credentials.Credentials): The + authorization credentials to attach to requests. These + credentials identify this application to the service. If none + are specified, the client will attempt to ascertain the + credentials from the environment. + This argument is mutually exclusive with providing a + transport instance to ``transport``; doing so will raise + an exception. + client_config (dict): DEPRECATED. A dictionary of call options for + each method. If not specified, the default configuration is used. + client_info (google.api_core.gapic_v1.client_info.ClientInfo): + The client info used to send a user-agent string along with + API requests. If ``None``, then default info will be used. + Generally, you only need to set this if you're developing + your own client library. + """ + # Raise deprecation warnings for things we want to go away. + if client_config is not None: + warnings.warn('The `client_config` argument is deprecated.', + PendingDeprecationWarning, stacklevel=2) + else: + client_config = conversion_action_service_client_config.config + + if channel: + warnings.warn('The `channel` argument is deprecated; use ' + '`transport` instead.', + PendingDeprecationWarning, stacklevel=2) + + # Instantiate the transport. + # The transport is responsible for handling serialization and + # deserialization and actually sending data to the service. + if transport: + if callable(transport): + self.transport = transport( + credentials=credentials, + default_class=conversion_action_service_grpc_transport.ConversionActionServiceGrpcTransport, + ) + else: + if credentials: + raise ValueError( + 'Received both a transport instance and ' + 'credentials; these are mutually exclusive.' + ) + self.transport = transport + else: + self.transport = conversion_action_service_grpc_transport.ConversionActionServiceGrpcTransport( + address=self.SERVICE_ADDRESS, + channel=channel, + credentials=credentials, + ) + + if client_info is None: + client_info = google.api_core.gapic_v1.client_info.ClientInfo( + gapic_version=_GAPIC_LIBRARY_VERSION, + ) + else: + client_info.gapic_version = _GAPIC_LIBRARY_VERSION + self._client_info = client_info + + # Parse out the default settings for retry and timeout for each RPC + # from the client configuration. + # (Ordinarily, these are the defaults specified in the `*_config.py` + # file next to this one.) + self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( + client_config['interfaces'][self._INTERFACE_NAME], + ) + + # Save a dictionary of cached API call functions. + # These are the actual callables which invoke the proper + # transport methods, wrapped with `wrap_method` to add retry, + # timeout, and the like. + self._inner_api_calls = {} + + # Service calls + def get_conversion_action( + self, + resource_name, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None): + """ + Returns the requested conversion action. + + Args: + resource_name (str): Required. The resource name of the conversion action to fetch. + retry (Optional[google.api_core.retry.Retry]): A retry object used + to retry requests. If ``None`` is specified, requests will not + be retried. + timeout (Optional[float]): The amount of time, in seconds, to wait + for the request to complete. Note that if ``retry`` is + specified, the timeout applies to each individual attempt. + metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata + that is provided to the method. + + Returns: + A :class:`~google.ads.googleads_v4.types.ConversionAction` instance. + + Raises: + google.api_core.exceptions.GoogleAPICallError: If the request + failed for any reason. + google.api_core.exceptions.RetryError: If the request failed due + to a retryable error and retry attempts failed. + ValueError: If the parameters are invalid. + """ + # Wrap the transport method to add retry and timeout logic. + if 'get_conversion_action' not in self._inner_api_calls: + self._inner_api_calls['get_conversion_action'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.get_conversion_action, + default_retry=self._method_configs['GetConversionAction'].retry, + default_timeout=self._method_configs['GetConversionAction'].timeout, + client_info=self._client_info, + ) + + request = conversion_action_service_pb2.GetConversionActionRequest( + resource_name=resource_name, + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [('resource_name', resource_name)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata(routing_header) + metadata.append(routing_metadata) + + return self._inner_api_calls['get_conversion_action'](request, retry=retry, timeout=timeout, metadata=metadata) + + def mutate_conversion_actions( + self, + customer_id, + operations, + partial_failure=None, + validate_only=None, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None): + """ + Creates, updates or removes conversion actions. Operation statuses are + returned. + + Args: + customer_id (str): Required. The ID of the customer whose conversion actions are being modified. + operations (list[Union[dict, ~google.ads.googleads_v4.types.ConversionActionOperation]]): Required. The list of operations to perform on individual conversion actions. + + If a dict is provided, it must be of the same form as the protobuf + message :class:`~google.ads.googleads_v4.types.ConversionActionOperation` + partial_failure (bool): If true, successful operations will be carried out and invalid + operations will return errors. If false, all operations will be carried + out in one transaction if and only if they are all valid. + Default is false. + validate_only (bool): If true, the request is validated but not executed. Only errors are + returned, not results. + retry (Optional[google.api_core.retry.Retry]): A retry object used + to retry requests. If ``None`` is specified, requests will not + be retried. + timeout (Optional[float]): The amount of time, in seconds, to wait + for the request to complete. Note that if ``retry`` is + specified, the timeout applies to each individual attempt. + metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata + that is provided to the method. + + Returns: + A :class:`~google.ads.googleads_v4.types.MutateConversionActionsResponse` instance. + + Raises: + google.api_core.exceptions.GoogleAPICallError: If the request + failed for any reason. + google.api_core.exceptions.RetryError: If the request failed due + to a retryable error and retry attempts failed. + ValueError: If the parameters are invalid. + """ + # Wrap the transport method to add retry and timeout logic. + if 'mutate_conversion_actions' not in self._inner_api_calls: + self._inner_api_calls['mutate_conversion_actions'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.mutate_conversion_actions, + default_retry=self._method_configs['MutateConversionActions'].retry, + default_timeout=self._method_configs['MutateConversionActions'].timeout, + client_info=self._client_info, + ) + + request = conversion_action_service_pb2.MutateConversionActionsRequest( + customer_id=customer_id, + operations=operations, + partial_failure=partial_failure, + validate_only=validate_only, + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [('customer_id', customer_id)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata(routing_header) + metadata.append(routing_metadata) + + return self._inner_api_calls['mutate_conversion_actions'](request, retry=retry, timeout=timeout, metadata=metadata) diff --git a/google/ads/google_ads/v4/services/conversion_action_service_client_config.py b/google/ads/google_ads/v4/services/conversion_action_service_client_config.py new file mode 100644 index 000000000..5999ede3b --- /dev/null +++ b/google/ads/google_ads/v4/services/conversion_action_service_client_config.py @@ -0,0 +1,36 @@ +config = { + "interfaces": { + "google.ads.googleads.v4.services.ConversionActionService": { + "retry_codes": { + "idempotent": [ + "DEADLINE_EXCEEDED", + "UNAVAILABLE" + ], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 5000, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 3600000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 3600000, + "total_timeout_millis": 3600000 + } + }, + "methods": { + "GetConversionAction": { + "timeout_millis": 60000, + "retry_codes_name": "idempotent", + "retry_params_name": "default" + }, + "MutateConversionActions": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + } + } + } + } +} diff --git a/google/ads/google_ads/v1/services/conversion_adjustment_upload_service_client.py b/google/ads/google_ads/v4/services/conversion_adjustment_upload_service_client.py similarity index 76% rename from google/ads/google_ads/v1/services/conversion_adjustment_upload_service_client.py rename to google/ads/google_ads/v4/services/conversion_adjustment_upload_service_client.py index 72a2e7dfd..f5a432295 100644 --- a/google/ads/google_ads/v1/services/conversion_adjustment_upload_service_client.py +++ b/google/ads/google_ads/v4/services/conversion_adjustment_upload_service_client.py @@ -13,7 +13,8 @@ # 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. -"""Accesses the google.ads.googleads.v1.services ConversionAdjustmentUploadService API.""" + +"""Accesses the google.ads.googleads.v4.services ConversionAdjustmentUploadService API.""" import pkg_resources import warnings @@ -22,14 +23,18 @@ import google.api_core.gapic_v1.client_info import google.api_core.gapic_v1.config import google.api_core.gapic_v1.method +import google.api_core.gapic_v1.routing_header import google.api_core.grpc_helpers -from google.ads.google_ads.v1.services import conversion_adjustment_upload_service_client_config -from google.ads.google_ads.v1.services.transports import conversion_adjustment_upload_service_grpc_transport -from google.ads.google_ads.v1.proto.services import conversion_adjustment_upload_service_pb2 +from google.ads.google_ads.v4.services import conversion_adjustment_upload_service_client_config +from google.ads.google_ads.v4.services.transports import conversion_adjustment_upload_service_grpc_transport +from google.ads.google_ads.v4.proto.services import conversion_adjustment_upload_service_pb2 + + _GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( - 'google-ads', ).version + 'google-ads', +).version class ConversionAdjustmentUploadServiceClient(object): @@ -40,7 +45,8 @@ class ConversionAdjustmentUploadServiceClient(object): # The name of the interface for this client. This is the key used to # find the method configuration in the client_config dictionary. - _INTERFACE_NAME = 'google.ads.googleads.v1.services.ConversionAdjustmentUploadService' + _INTERFACE_NAME = 'google.ads.googleads.v4.services.ConversionAdjustmentUploadService' + @classmethod def from_service_account_file(cls, filename, *args, **kwargs): @@ -63,12 +69,8 @@ def from_service_account_file(cls, filename, *args, **kwargs): from_service_account_json = from_service_account_file - def __init__(self, - transport=None, - channel=None, - credentials=None, - client_config=None, - client_info=None): + def __init__(self, transport=None, channel=None, credentials=None, + client_config=None, client_info=None): """Constructor. Args: @@ -101,19 +103,15 @@ def __init__(self, """ # Raise deprecation warnings for things we want to go away. if client_config is not None: - warnings.warn( - 'The `client_config` argument is deprecated.', - PendingDeprecationWarning, - stacklevel=2) + warnings.warn('The `client_config` argument is deprecated.', + PendingDeprecationWarning, stacklevel=2) else: client_config = conversion_adjustment_upload_service_client_config.config if channel: - warnings.warn( - 'The `channel` argument is deprecated; use ' - '`transport` instead.', - PendingDeprecationWarning, - stacklevel=2) + warnings.warn('The `channel` argument is deprecated; use ' + '`transport` instead.', + PendingDeprecationWarning, stacklevel=2) # Instantiate the transport. # The transport is responsible for handling serialization and @@ -122,15 +120,14 @@ def __init__(self, if callable(transport): self.transport = transport( credentials=credentials, - default_class= - conversion_adjustment_upload_service_grpc_transport. - ConversionAdjustmentUploadServiceGrpcTransport, + default_class=conversion_adjustment_upload_service_grpc_transport.ConversionAdjustmentUploadServiceGrpcTransport, ) else: if credentials: raise ValueError( 'Received both a transport instance and ' - 'credentials; these are mutually exclusive.') + 'credentials; these are mutually exclusive.' + ) self.transport = transport else: self.transport = conversion_adjustment_upload_service_grpc_transport.ConversionAdjustmentUploadServiceGrpcTransport( @@ -141,7 +138,8 @@ def __init__(self, if client_info is None: client_info = google.api_core.gapic_v1.client_info.ClientInfo( - gapic_version=_GAPIC_LIBRARY_VERSION, ) + gapic_version=_GAPIC_LIBRARY_VERSION, + ) else: client_info.gapic_version = _GAPIC_LIBRARY_VERSION self._client_info = client_info @@ -151,7 +149,8 @@ def __init__(self, # (Ordinarily, these are the defaults specified in the `*_config.py` # file next to this one.) self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( - client_config['interfaces'][self._INTERFACE_NAME], ) + client_config['interfaces'][self._INTERFACE_NAME], + ) # Save a dictionary of cached API call functions. # These are the actual callables which invoke the proper @@ -173,15 +172,18 @@ def upload_conversion_adjustments( Processes the given conversion adjustments. Args: - customer_id (str): The ID of the customer performing the upload. - conversion_adjustments (list[Union[dict, ~google.ads.googleads_v1.types.ConversionAdjustment]]): The conversion adjustments that are being uploaded. + customer_id (str): Required. The ID of the customer performing the upload. + conversion_adjustments (list[Union[dict, ~google.ads.googleads_v4.types.ConversionAdjustment]]): Required. The conversion adjustments that are being uploaded. If a dict is provided, it must be of the same form as the protobuf - message :class:`~google.ads.googleads_v1.types.ConversionAdjustment` - partial_failure (bool): If true, successful operations will be carried out and invalid + message :class:`~google.ads.googleads_v4.types.ConversionAdjustment` + partial_failure (bool): Required. If true, successful operations will be carried out and invalid operations will return errors. If false, all operations will be carried out in one transaction if and only if they are all valid. This should always be set to true. + See + https://developers.google.com/google-ads/api/docs/best-practices/partial-failures + for more information about partial failure. validate_only (bool): If true, the request is validated but not executed. Only errors are returned, not results. retry (Optional[google.api_core.retry.Retry]): A retry object used @@ -194,7 +196,7 @@ def upload_conversion_adjustments( that is provided to the method. Returns: - A :class:`~google.ads.googleads_v1.types.UploadConversionAdjustmentsResponse` instance. + A :class:`~google.ads.googleads_v4.types.UploadConversionAdjustmentsResponse` instance. Raises: google.api_core.exceptions.GoogleAPICallError: If the request @@ -205,15 +207,12 @@ def upload_conversion_adjustments( """ # Wrap the transport method to add retry and timeout logic. if 'upload_conversion_adjustments' not in self._inner_api_calls: - self._inner_api_calls[ - 'upload_conversion_adjustments'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.upload_conversion_adjustments, - default_retry=self. - _method_configs['UploadConversionAdjustments'].retry, - default_timeout=self. - _method_configs['UploadConversionAdjustments'].timeout, - client_info=self._client_info, - ) + self._inner_api_calls['upload_conversion_adjustments'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.upload_conversion_adjustments, + default_retry=self._method_configs['UploadConversionAdjustments'].retry, + default_timeout=self._method_configs['UploadConversionAdjustments'].timeout, + client_info=self._client_info, + ) request = conversion_adjustment_upload_service_pb2.UploadConversionAdjustmentsRequest( customer_id=customer_id, @@ -221,5 +220,15 @@ def upload_conversion_adjustments( partial_failure=partial_failure, validate_only=validate_only, ) - return self._inner_api_calls['upload_conversion_adjustments']( - request, retry=retry, timeout=timeout, metadata=metadata) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [('customer_id', customer_id)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata(routing_header) + metadata.append(routing_metadata) + + return self._inner_api_calls['upload_conversion_adjustments'](request, retry=retry, timeout=timeout, metadata=metadata) diff --git a/google/ads/google_ads/v4/services/conversion_adjustment_upload_service_client_config.py b/google/ads/google_ads/v4/services/conversion_adjustment_upload_service_client_config.py new file mode 100644 index 000000000..a13d8dade --- /dev/null +++ b/google/ads/google_ads/v4/services/conversion_adjustment_upload_service_client_config.py @@ -0,0 +1,31 @@ +config = { + "interfaces": { + "google.ads.googleads.v4.services.ConversionAdjustmentUploadService": { + "retry_codes": { + "idempotent": [ + "DEADLINE_EXCEEDED", + "UNAVAILABLE" + ], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 5000, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 3600000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 3600000, + "total_timeout_millis": 3600000 + } + }, + "methods": { + "UploadConversionAdjustments": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + } + } + } + } +} diff --git a/google/ads/google_ads/v4/services/conversion_upload_service_client.py b/google/ads/google_ads/v4/services/conversion_upload_service_client.py new file mode 100644 index 000000000..a17ec0535 --- /dev/null +++ b/google/ads/google_ads/v4/services/conversion_upload_service_client.py @@ -0,0 +1,308 @@ +# -*- coding: utf-8 -*- +# +# 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. + +"""Accesses the google.ads.googleads.v4.services ConversionUploadService API.""" + +import pkg_resources +import warnings + +from google.oauth2 import service_account +import google.api_core.gapic_v1.client_info +import google.api_core.gapic_v1.config +import google.api_core.gapic_v1.method +import google.api_core.gapic_v1.routing_header +import google.api_core.grpc_helpers + +from google.ads.google_ads.v4.services import conversion_upload_service_client_config +from google.ads.google_ads.v4.services.transports import conversion_upload_service_grpc_transport +from google.ads.google_ads.v4.proto.services import conversion_upload_service_pb2 + + + +_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( + 'google-ads', +).version + + +class ConversionUploadServiceClient(object): + """Service to upload conversions.""" + + SERVICE_ADDRESS = 'googleads.googleapis.com:443' + """The default address of the service.""" + + # The name of the interface for this client. This is the key used to + # find the method configuration in the client_config dictionary. + _INTERFACE_NAME = 'google.ads.googleads.v4.services.ConversionUploadService' + + + @classmethod + def from_service_account_file(cls, filename, *args, **kwargs): + """Creates an instance of this client using the provided credentials + file. + + Args: + filename (str): The path to the service account private key json + file. + args: Additional arguments to pass to the constructor. + kwargs: Additional arguments to pass to the constructor. + + Returns: + ConversionUploadServiceClient: The constructed client. + """ + credentials = service_account.Credentials.from_service_account_file( + filename) + kwargs['credentials'] = credentials + return cls(*args, **kwargs) + + from_service_account_json = from_service_account_file + + def __init__(self, transport=None, channel=None, credentials=None, + client_config=None, client_info=None): + """Constructor. + + Args: + transport (Union[~.ConversionUploadServiceGrpcTransport, + Callable[[~.Credentials, type], ~.ConversionUploadServiceGrpcTransport]): A transport + instance, responsible for actually making the API calls. + The default transport uses the gRPC protocol. + This argument may also be a callable which returns a + transport instance. Callables will be sent the credentials + as the first argument and the default transport class as + the second argument. + channel (grpc.Channel): DEPRECATED. A ``Channel`` instance + through which to make calls. This argument is mutually exclusive + with ``credentials``; providing both will raise an exception. + credentials (google.auth.credentials.Credentials): The + authorization credentials to attach to requests. These + credentials identify this application to the service. If none + are specified, the client will attempt to ascertain the + credentials from the environment. + This argument is mutually exclusive with providing a + transport instance to ``transport``; doing so will raise + an exception. + client_config (dict): DEPRECATED. A dictionary of call options for + each method. If not specified, the default configuration is used. + client_info (google.api_core.gapic_v1.client_info.ClientInfo): + The client info used to send a user-agent string along with + API requests. If ``None``, then default info will be used. + Generally, you only need to set this if you're developing + your own client library. + """ + # Raise deprecation warnings for things we want to go away. + if client_config is not None: + warnings.warn('The `client_config` argument is deprecated.', + PendingDeprecationWarning, stacklevel=2) + else: + client_config = conversion_upload_service_client_config.config + + if channel: + warnings.warn('The `channel` argument is deprecated; use ' + '`transport` instead.', + PendingDeprecationWarning, stacklevel=2) + + # Instantiate the transport. + # The transport is responsible for handling serialization and + # deserialization and actually sending data to the service. + if transport: + if callable(transport): + self.transport = transport( + credentials=credentials, + default_class=conversion_upload_service_grpc_transport.ConversionUploadServiceGrpcTransport, + ) + else: + if credentials: + raise ValueError( + 'Received both a transport instance and ' + 'credentials; these are mutually exclusive.' + ) + self.transport = transport + else: + self.transport = conversion_upload_service_grpc_transport.ConversionUploadServiceGrpcTransport( + address=self.SERVICE_ADDRESS, + channel=channel, + credentials=credentials, + ) + + if client_info is None: + client_info = google.api_core.gapic_v1.client_info.ClientInfo( + gapic_version=_GAPIC_LIBRARY_VERSION, + ) + else: + client_info.gapic_version = _GAPIC_LIBRARY_VERSION + self._client_info = client_info + + # Parse out the default settings for retry and timeout for each RPC + # from the client configuration. + # (Ordinarily, these are the defaults specified in the `*_config.py` + # file next to this one.) + self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( + client_config['interfaces'][self._INTERFACE_NAME], + ) + + # Save a dictionary of cached API call functions. + # These are the actual callables which invoke the proper + # transport methods, wrapped with `wrap_method` to add retry, + # timeout, and the like. + self._inner_api_calls = {} + + # Service calls + def upload_click_conversions( + self, + customer_id, + conversions, + partial_failure=None, + validate_only=None, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None): + """ + Processes the given click conversions. + + Args: + customer_id (str): Required. The ID of the customer performing the upload. + conversions (list[Union[dict, ~google.ads.googleads_v4.types.ClickConversion]]): Required. The conversions that are being uploaded. + + If a dict is provided, it must be of the same form as the protobuf + message :class:`~google.ads.googleads_v4.types.ClickConversion` + partial_failure (bool): Required. If true, successful operations will be carried out and invalid + operations will return errors. If false, all operations will be carried + out in one transaction if and only if they are all valid. + This should always be set to true. + See + https://developers.google.com/google-ads/api/docs/best-practices/partial-failures + for more information about partial failure. + validate_only (bool): If true, the request is validated but not executed. Only errors are + returned, not results. + retry (Optional[google.api_core.retry.Retry]): A retry object used + to retry requests. If ``None`` is specified, requests will not + be retried. + timeout (Optional[float]): The amount of time, in seconds, to wait + for the request to complete. Note that if ``retry`` is + specified, the timeout applies to each individual attempt. + metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata + that is provided to the method. + + Returns: + A :class:`~google.ads.googleads_v4.types.UploadClickConversionsResponse` instance. + + Raises: + google.api_core.exceptions.GoogleAPICallError: If the request + failed for any reason. + google.api_core.exceptions.RetryError: If the request failed due + to a retryable error and retry attempts failed. + ValueError: If the parameters are invalid. + """ + # Wrap the transport method to add retry and timeout logic. + if 'upload_click_conversions' not in self._inner_api_calls: + self._inner_api_calls['upload_click_conversions'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.upload_click_conversions, + default_retry=self._method_configs['UploadClickConversions'].retry, + default_timeout=self._method_configs['UploadClickConversions'].timeout, + client_info=self._client_info, + ) + + request = conversion_upload_service_pb2.UploadClickConversionsRequest( + customer_id=customer_id, + conversions=conversions, + partial_failure=partial_failure, + validate_only=validate_only, + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [('customer_id', customer_id)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata(routing_header) + metadata.append(routing_metadata) + + return self._inner_api_calls['upload_click_conversions'](request, retry=retry, timeout=timeout, metadata=metadata) + + def upload_call_conversions( + self, + customer_id, + conversions, + partial_failure=None, + validate_only=None, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None): + """ + Processes the given call conversions. + + Args: + customer_id (str): Required. The ID of the customer performing the upload. + conversions (list[Union[dict, ~google.ads.googleads_v4.types.CallConversion]]): Required. The conversions that are being uploaded. + + If a dict is provided, it must be of the same form as the protobuf + message :class:`~google.ads.googleads_v4.types.CallConversion` + partial_failure (bool): Required. If true, successful operations will be carried out and invalid + operations will return errors. If false, all operations will be carried + out in one transaction if and only if they are all valid. + This should always be set to true. + See + https://developers.google.com/google-ads/api/docs/best-practices/partial-failures + for more information about partial failure. + validate_only (bool): If true, the request is validated but not executed. Only errors are + returned, not results. + retry (Optional[google.api_core.retry.Retry]): A retry object used + to retry requests. If ``None`` is specified, requests will not + be retried. + timeout (Optional[float]): The amount of time, in seconds, to wait + for the request to complete. Note that if ``retry`` is + specified, the timeout applies to each individual attempt. + metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata + that is provided to the method. + + Returns: + A :class:`~google.ads.googleads_v4.types.UploadCallConversionsResponse` instance. + + Raises: + google.api_core.exceptions.GoogleAPICallError: If the request + failed for any reason. + google.api_core.exceptions.RetryError: If the request failed due + to a retryable error and retry attempts failed. + ValueError: If the parameters are invalid. + """ + # Wrap the transport method to add retry and timeout logic. + if 'upload_call_conversions' not in self._inner_api_calls: + self._inner_api_calls['upload_call_conversions'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.upload_call_conversions, + default_retry=self._method_configs['UploadCallConversions'].retry, + default_timeout=self._method_configs['UploadCallConversions'].timeout, + client_info=self._client_info, + ) + + request = conversion_upload_service_pb2.UploadCallConversionsRequest( + customer_id=customer_id, + conversions=conversions, + partial_failure=partial_failure, + validate_only=validate_only, + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [('customer_id', customer_id)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata(routing_header) + metadata.append(routing_metadata) + + return self._inner_api_calls['upload_call_conversions'](request, retry=retry, timeout=timeout, metadata=metadata) diff --git a/google/ads/google_ads/v4/services/conversion_upload_service_client_config.py b/google/ads/google_ads/v4/services/conversion_upload_service_client_config.py new file mode 100644 index 000000000..13dad2a82 --- /dev/null +++ b/google/ads/google_ads/v4/services/conversion_upload_service_client_config.py @@ -0,0 +1,36 @@ +config = { + "interfaces": { + "google.ads.googleads.v4.services.ConversionUploadService": { + "retry_codes": { + "idempotent": [ + "DEADLINE_EXCEEDED", + "UNAVAILABLE" + ], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 5000, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 3600000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 3600000, + "total_timeout_millis": 3600000 + } + }, + "methods": { + "UploadClickConversions": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "UploadCallConversions": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + } + } + } + } +} diff --git a/google/ads/google_ads/v4/services/currency_constant_service_client.py b/google/ads/google_ads/v4/services/currency_constant_service_client.py new file mode 100644 index 000000000..5a6a8f1a9 --- /dev/null +++ b/google/ads/google_ads/v4/services/currency_constant_service_client.py @@ -0,0 +1,225 @@ +# -*- coding: utf-8 -*- +# +# 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. + +"""Accesses the google.ads.googleads.v4.services CurrencyConstantService API.""" + +import pkg_resources +import warnings + +from google.oauth2 import service_account +import google.api_core.gapic_v1.client_info +import google.api_core.gapic_v1.config +import google.api_core.gapic_v1.method +import google.api_core.gapic_v1.routing_header +import google.api_core.grpc_helpers +import google.api_core.path_template + +from google.ads.google_ads.v4.services import currency_constant_service_client_config +from google.ads.google_ads.v4.services.transports import currency_constant_service_grpc_transport +from google.ads.google_ads.v4.proto.services import currency_constant_service_pb2 + + + +_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( + 'google-ads', +).version + + +class CurrencyConstantServiceClient(object): + """Service to fetch currency constants.""" + + SERVICE_ADDRESS = 'googleads.googleapis.com:443' + """The default address of the service.""" + + # The name of the interface for this client. This is the key used to + # find the method configuration in the client_config dictionary. + _INTERFACE_NAME = 'google.ads.googleads.v4.services.CurrencyConstantService' + + + @classmethod + def from_service_account_file(cls, filename, *args, **kwargs): + """Creates an instance of this client using the provided credentials + file. + + Args: + filename (str): The path to the service account private key json + file. + args: Additional arguments to pass to the constructor. + kwargs: Additional arguments to pass to the constructor. + + Returns: + CurrencyConstantServiceClient: The constructed client. + """ + credentials = service_account.Credentials.from_service_account_file( + filename) + kwargs['credentials'] = credentials + return cls(*args, **kwargs) + + from_service_account_json = from_service_account_file + + + @classmethod + def currency_constant_path(cls, currency_constant): + """Return a fully-qualified currency_constant string.""" + return google.api_core.path_template.expand( + 'currencyConstants/{currency_constant}', + currency_constant=currency_constant, + ) + + def __init__(self, transport=None, channel=None, credentials=None, + client_config=None, client_info=None): + """Constructor. + + Args: + transport (Union[~.CurrencyConstantServiceGrpcTransport, + Callable[[~.Credentials, type], ~.CurrencyConstantServiceGrpcTransport]): A transport + instance, responsible for actually making the API calls. + The default transport uses the gRPC protocol. + This argument may also be a callable which returns a + transport instance. Callables will be sent the credentials + as the first argument and the default transport class as + the second argument. + channel (grpc.Channel): DEPRECATED. A ``Channel`` instance + through which to make calls. This argument is mutually exclusive + with ``credentials``; providing both will raise an exception. + credentials (google.auth.credentials.Credentials): The + authorization credentials to attach to requests. These + credentials identify this application to the service. If none + are specified, the client will attempt to ascertain the + credentials from the environment. + This argument is mutually exclusive with providing a + transport instance to ``transport``; doing so will raise + an exception. + client_config (dict): DEPRECATED. A dictionary of call options for + each method. If not specified, the default configuration is used. + client_info (google.api_core.gapic_v1.client_info.ClientInfo): + The client info used to send a user-agent string along with + API requests. If ``None``, then default info will be used. + Generally, you only need to set this if you're developing + your own client library. + """ + # Raise deprecation warnings for things we want to go away. + if client_config is not None: + warnings.warn('The `client_config` argument is deprecated.', + PendingDeprecationWarning, stacklevel=2) + else: + client_config = currency_constant_service_client_config.config + + if channel: + warnings.warn('The `channel` argument is deprecated; use ' + '`transport` instead.', + PendingDeprecationWarning, stacklevel=2) + + # Instantiate the transport. + # The transport is responsible for handling serialization and + # deserialization and actually sending data to the service. + if transport: + if callable(transport): + self.transport = transport( + credentials=credentials, + default_class=currency_constant_service_grpc_transport.CurrencyConstantServiceGrpcTransport, + ) + else: + if credentials: + raise ValueError( + 'Received both a transport instance and ' + 'credentials; these are mutually exclusive.' + ) + self.transport = transport + else: + self.transport = currency_constant_service_grpc_transport.CurrencyConstantServiceGrpcTransport( + address=self.SERVICE_ADDRESS, + channel=channel, + credentials=credentials, + ) + + if client_info is None: + client_info = google.api_core.gapic_v1.client_info.ClientInfo( + gapic_version=_GAPIC_LIBRARY_VERSION, + ) + else: + client_info.gapic_version = _GAPIC_LIBRARY_VERSION + self._client_info = client_info + + # Parse out the default settings for retry and timeout for each RPC + # from the client configuration. + # (Ordinarily, these are the defaults specified in the `*_config.py` + # file next to this one.) + self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( + client_config['interfaces'][self._INTERFACE_NAME], + ) + + # Save a dictionary of cached API call functions. + # These are the actual callables which invoke the proper + # transport methods, wrapped with `wrap_method` to add retry, + # timeout, and the like. + self._inner_api_calls = {} + + # Service calls + def get_currency_constant( + self, + resource_name, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None): + """ + Returns the requested currency constant. + + Args: + resource_name (str): Required. Resource name of the currency constant to fetch. + retry (Optional[google.api_core.retry.Retry]): A retry object used + to retry requests. If ``None`` is specified, requests will not + be retried. + timeout (Optional[float]): The amount of time, in seconds, to wait + for the request to complete. Note that if ``retry`` is + specified, the timeout applies to each individual attempt. + metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata + that is provided to the method. + + Returns: + A :class:`~google.ads.googleads_v4.types.CurrencyConstant` instance. + + Raises: + google.api_core.exceptions.GoogleAPICallError: If the request + failed for any reason. + google.api_core.exceptions.RetryError: If the request failed due + to a retryable error and retry attempts failed. + ValueError: If the parameters are invalid. + """ + # Wrap the transport method to add retry and timeout logic. + if 'get_currency_constant' not in self._inner_api_calls: + self._inner_api_calls['get_currency_constant'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.get_currency_constant, + default_retry=self._method_configs['GetCurrencyConstant'].retry, + default_timeout=self._method_configs['GetCurrencyConstant'].timeout, + client_info=self._client_info, + ) + + request = currency_constant_service_pb2.GetCurrencyConstantRequest( + resource_name=resource_name, + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [('resource_name', resource_name)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata(routing_header) + metadata.append(routing_metadata) + + return self._inner_api_calls['get_currency_constant'](request, retry=retry, timeout=timeout, metadata=metadata) diff --git a/google/ads/google_ads/v4/services/currency_constant_service_client_config.py b/google/ads/google_ads/v4/services/currency_constant_service_client_config.py new file mode 100644 index 000000000..97f85df98 --- /dev/null +++ b/google/ads/google_ads/v4/services/currency_constant_service_client_config.py @@ -0,0 +1,31 @@ +config = { + "interfaces": { + "google.ads.googleads.v4.services.CurrencyConstantService": { + "retry_codes": { + "idempotent": [ + "DEADLINE_EXCEEDED", + "UNAVAILABLE" + ], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 5000, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 3600000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 3600000, + "total_timeout_millis": 3600000 + } + }, + "methods": { + "GetCurrencyConstant": { + "timeout_millis": 60000, + "retry_codes_name": "idempotent", + "retry_params_name": "default" + } + } + } + } +} diff --git a/google/ads/google_ads/v4/services/custom_interest_service_client.py b/google/ads/google_ads/v4/services/custom_interest_service_client.py new file mode 100644 index 000000000..3df9e2e62 --- /dev/null +++ b/google/ads/google_ads/v4/services/custom_interest_service_client.py @@ -0,0 +1,291 @@ +# -*- coding: utf-8 -*- +# +# 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. + +"""Accesses the google.ads.googleads.v4.services CustomInterestService API.""" + +import pkg_resources +import warnings + +from google.oauth2 import service_account +import google.api_core.gapic_v1.client_info +import google.api_core.gapic_v1.config +import google.api_core.gapic_v1.method +import google.api_core.gapic_v1.routing_header +import google.api_core.grpc_helpers +import google.api_core.path_template + +from google.ads.google_ads.v4.services import custom_interest_service_client_config +from google.ads.google_ads.v4.services.transports import custom_interest_service_grpc_transport +from google.ads.google_ads.v4.proto.services import custom_interest_service_pb2 + + + +_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( + 'google-ads', +).version + + +class CustomInterestServiceClient(object): + """Service to manage custom interests.""" + + SERVICE_ADDRESS = 'googleads.googleapis.com:443' + """The default address of the service.""" + + # The name of the interface for this client. This is the key used to + # find the method configuration in the client_config dictionary. + _INTERFACE_NAME = 'google.ads.googleads.v4.services.CustomInterestService' + + + @classmethod + def from_service_account_file(cls, filename, *args, **kwargs): + """Creates an instance of this client using the provided credentials + file. + + Args: + filename (str): The path to the service account private key json + file. + args: Additional arguments to pass to the constructor. + kwargs: Additional arguments to pass to the constructor. + + Returns: + CustomInterestServiceClient: The constructed client. + """ + credentials = service_account.Credentials.from_service_account_file( + filename) + kwargs['credentials'] = credentials + return cls(*args, **kwargs) + + from_service_account_json = from_service_account_file + + + @classmethod + def custom_interest_path(cls, customer, custom_interest): + """Return a fully-qualified custom_interest string.""" + return google.api_core.path_template.expand( + 'customers/{customer}/customInterests/{custom_interest}', + customer=customer, + custom_interest=custom_interest, + ) + + def __init__(self, transport=None, channel=None, credentials=None, + client_config=None, client_info=None): + """Constructor. + + Args: + transport (Union[~.CustomInterestServiceGrpcTransport, + Callable[[~.Credentials, type], ~.CustomInterestServiceGrpcTransport]): A transport + instance, responsible for actually making the API calls. + The default transport uses the gRPC protocol. + This argument may also be a callable which returns a + transport instance. Callables will be sent the credentials + as the first argument and the default transport class as + the second argument. + channel (grpc.Channel): DEPRECATED. A ``Channel`` instance + through which to make calls. This argument is mutually exclusive + with ``credentials``; providing both will raise an exception. + credentials (google.auth.credentials.Credentials): The + authorization credentials to attach to requests. These + credentials identify this application to the service. If none + are specified, the client will attempt to ascertain the + credentials from the environment. + This argument is mutually exclusive with providing a + transport instance to ``transport``; doing so will raise + an exception. + client_config (dict): DEPRECATED. A dictionary of call options for + each method. If not specified, the default configuration is used. + client_info (google.api_core.gapic_v1.client_info.ClientInfo): + The client info used to send a user-agent string along with + API requests. If ``None``, then default info will be used. + Generally, you only need to set this if you're developing + your own client library. + """ + # Raise deprecation warnings for things we want to go away. + if client_config is not None: + warnings.warn('The `client_config` argument is deprecated.', + PendingDeprecationWarning, stacklevel=2) + else: + client_config = custom_interest_service_client_config.config + + if channel: + warnings.warn('The `channel` argument is deprecated; use ' + '`transport` instead.', + PendingDeprecationWarning, stacklevel=2) + + # Instantiate the transport. + # The transport is responsible for handling serialization and + # deserialization and actually sending data to the service. + if transport: + if callable(transport): + self.transport = transport( + credentials=credentials, + default_class=custom_interest_service_grpc_transport.CustomInterestServiceGrpcTransport, + ) + else: + if credentials: + raise ValueError( + 'Received both a transport instance and ' + 'credentials; these are mutually exclusive.' + ) + self.transport = transport + else: + self.transport = custom_interest_service_grpc_transport.CustomInterestServiceGrpcTransport( + address=self.SERVICE_ADDRESS, + channel=channel, + credentials=credentials, + ) + + if client_info is None: + client_info = google.api_core.gapic_v1.client_info.ClientInfo( + gapic_version=_GAPIC_LIBRARY_VERSION, + ) + else: + client_info.gapic_version = _GAPIC_LIBRARY_VERSION + self._client_info = client_info + + # Parse out the default settings for retry and timeout for each RPC + # from the client configuration. + # (Ordinarily, these are the defaults specified in the `*_config.py` + # file next to this one.) + self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( + client_config['interfaces'][self._INTERFACE_NAME], + ) + + # Save a dictionary of cached API call functions. + # These are the actual callables which invoke the proper + # transport methods, wrapped with `wrap_method` to add retry, + # timeout, and the like. + self._inner_api_calls = {} + + # Service calls + def get_custom_interest( + self, + resource_name, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None): + """ + Returns the requested custom interest in full detail. + + Args: + resource_name (str): Required. The resource name of the custom interest to fetch. + retry (Optional[google.api_core.retry.Retry]): A retry object used + to retry requests. If ``None`` is specified, requests will not + be retried. + timeout (Optional[float]): The amount of time, in seconds, to wait + for the request to complete. Note that if ``retry`` is + specified, the timeout applies to each individual attempt. + metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata + that is provided to the method. + + Returns: + A :class:`~google.ads.googleads_v4.types.CustomInterest` instance. + + Raises: + google.api_core.exceptions.GoogleAPICallError: If the request + failed for any reason. + google.api_core.exceptions.RetryError: If the request failed due + to a retryable error and retry attempts failed. + ValueError: If the parameters are invalid. + """ + # Wrap the transport method to add retry and timeout logic. + if 'get_custom_interest' not in self._inner_api_calls: + self._inner_api_calls['get_custom_interest'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.get_custom_interest, + default_retry=self._method_configs['GetCustomInterest'].retry, + default_timeout=self._method_configs['GetCustomInterest'].timeout, + client_info=self._client_info, + ) + + request = custom_interest_service_pb2.GetCustomInterestRequest( + resource_name=resource_name, + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [('resource_name', resource_name)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata(routing_header) + metadata.append(routing_metadata) + + return self._inner_api_calls['get_custom_interest'](request, retry=retry, timeout=timeout, metadata=metadata) + + def mutate_custom_interests( + self, + customer_id, + operations, + validate_only=None, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None): + """ + Creates or updates custom interests. Operation statuses are returned. + + Args: + customer_id (str): Required. The ID of the customer whose custom interests are being modified. + operations (list[Union[dict, ~google.ads.googleads_v4.types.CustomInterestOperation]]): Required. The list of operations to perform on individual custom interests. + + If a dict is provided, it must be of the same form as the protobuf + message :class:`~google.ads.googleads_v4.types.CustomInterestOperation` + validate_only (bool): If true, the request is validated but not executed. Only errors are + returned, not results. + retry (Optional[google.api_core.retry.Retry]): A retry object used + to retry requests. If ``None`` is specified, requests will not + be retried. + timeout (Optional[float]): The amount of time, in seconds, to wait + for the request to complete. Note that if ``retry`` is + specified, the timeout applies to each individual attempt. + metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata + that is provided to the method. + + Returns: + A :class:`~google.ads.googleads_v4.types.MutateCustomInterestsResponse` instance. + + Raises: + google.api_core.exceptions.GoogleAPICallError: If the request + failed for any reason. + google.api_core.exceptions.RetryError: If the request failed due + to a retryable error and retry attempts failed. + ValueError: If the parameters are invalid. + """ + # Wrap the transport method to add retry and timeout logic. + if 'mutate_custom_interests' not in self._inner_api_calls: + self._inner_api_calls['mutate_custom_interests'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.mutate_custom_interests, + default_retry=self._method_configs['MutateCustomInterests'].retry, + default_timeout=self._method_configs['MutateCustomInterests'].timeout, + client_info=self._client_info, + ) + + request = custom_interest_service_pb2.MutateCustomInterestsRequest( + customer_id=customer_id, + operations=operations, + validate_only=validate_only, + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [('customer_id', customer_id)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata(routing_header) + metadata.append(routing_metadata) + + return self._inner_api_calls['mutate_custom_interests'](request, retry=retry, timeout=timeout, metadata=metadata) diff --git a/google/ads/google_ads/v4/services/custom_interest_service_client_config.py b/google/ads/google_ads/v4/services/custom_interest_service_client_config.py new file mode 100644 index 000000000..0704b6a45 --- /dev/null +++ b/google/ads/google_ads/v4/services/custom_interest_service_client_config.py @@ -0,0 +1,36 @@ +config = { + "interfaces": { + "google.ads.googleads.v4.services.CustomInterestService": { + "retry_codes": { + "idempotent": [ + "DEADLINE_EXCEEDED", + "UNAVAILABLE" + ], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 5000, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 3600000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 3600000, + "total_timeout_millis": 3600000 + } + }, + "methods": { + "GetCustomInterest": { + "timeout_millis": 60000, + "retry_codes_name": "idempotent", + "retry_params_name": "default" + }, + "MutateCustomInterests": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + } + } + } + } +} diff --git a/google/ads/google_ads/v4/services/customer_client_link_service_client.py b/google/ads/google_ads/v4/services/customer_client_link_service_client.py new file mode 100644 index 000000000..a46b29da0 --- /dev/null +++ b/google/ads/google_ads/v4/services/customer_client_link_service_client.py @@ -0,0 +1,287 @@ +# -*- coding: utf-8 -*- +# +# 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. + +"""Accesses the google.ads.googleads.v4.services CustomerClientLinkService API.""" + +import pkg_resources +import warnings + +from google.oauth2 import service_account +import google.api_core.gapic_v1.client_info +import google.api_core.gapic_v1.config +import google.api_core.gapic_v1.method +import google.api_core.gapic_v1.routing_header +import google.api_core.grpc_helpers +import google.api_core.path_template + +from google.ads.google_ads.v4.services import customer_client_link_service_client_config +from google.ads.google_ads.v4.services.transports import customer_client_link_service_grpc_transport +from google.ads.google_ads.v4.proto.services import customer_client_link_service_pb2 + + + +_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( + 'google-ads', +).version + + +class CustomerClientLinkServiceClient(object): + """Service to manage customer client links.""" + + SERVICE_ADDRESS = 'googleads.googleapis.com:443' + """The default address of the service.""" + + # The name of the interface for this client. This is the key used to + # find the method configuration in the client_config dictionary. + _INTERFACE_NAME = 'google.ads.googleads.v4.services.CustomerClientLinkService' + + + @classmethod + def from_service_account_file(cls, filename, *args, **kwargs): + """Creates an instance of this client using the provided credentials + file. + + Args: + filename (str): The path to the service account private key json + file. + args: Additional arguments to pass to the constructor. + kwargs: Additional arguments to pass to the constructor. + + Returns: + CustomerClientLinkServiceClient: The constructed client. + """ + credentials = service_account.Credentials.from_service_account_file( + filename) + kwargs['credentials'] = credentials + return cls(*args, **kwargs) + + from_service_account_json = from_service_account_file + + + @classmethod + def customer_client_link_path(cls, customer, customer_client_link): + """Return a fully-qualified customer_client_link string.""" + return google.api_core.path_template.expand( + 'customers/{customer}/customerClientLinks/{customer_client_link}', + customer=customer, + customer_client_link=customer_client_link, + ) + + def __init__(self, transport=None, channel=None, credentials=None, + client_config=None, client_info=None): + """Constructor. + + Args: + transport (Union[~.CustomerClientLinkServiceGrpcTransport, + Callable[[~.Credentials, type], ~.CustomerClientLinkServiceGrpcTransport]): A transport + instance, responsible for actually making the API calls. + The default transport uses the gRPC protocol. + This argument may also be a callable which returns a + transport instance. Callables will be sent the credentials + as the first argument and the default transport class as + the second argument. + channel (grpc.Channel): DEPRECATED. A ``Channel`` instance + through which to make calls. This argument is mutually exclusive + with ``credentials``; providing both will raise an exception. + credentials (google.auth.credentials.Credentials): The + authorization credentials to attach to requests. These + credentials identify this application to the service. If none + are specified, the client will attempt to ascertain the + credentials from the environment. + This argument is mutually exclusive with providing a + transport instance to ``transport``; doing so will raise + an exception. + client_config (dict): DEPRECATED. A dictionary of call options for + each method. If not specified, the default configuration is used. + client_info (google.api_core.gapic_v1.client_info.ClientInfo): + The client info used to send a user-agent string along with + API requests. If ``None``, then default info will be used. + Generally, you only need to set this if you're developing + your own client library. + """ + # Raise deprecation warnings for things we want to go away. + if client_config is not None: + warnings.warn('The `client_config` argument is deprecated.', + PendingDeprecationWarning, stacklevel=2) + else: + client_config = customer_client_link_service_client_config.config + + if channel: + warnings.warn('The `channel` argument is deprecated; use ' + '`transport` instead.', + PendingDeprecationWarning, stacklevel=2) + + # Instantiate the transport. + # The transport is responsible for handling serialization and + # deserialization and actually sending data to the service. + if transport: + if callable(transport): + self.transport = transport( + credentials=credentials, + default_class=customer_client_link_service_grpc_transport.CustomerClientLinkServiceGrpcTransport, + ) + else: + if credentials: + raise ValueError( + 'Received both a transport instance and ' + 'credentials; these are mutually exclusive.' + ) + self.transport = transport + else: + self.transport = customer_client_link_service_grpc_transport.CustomerClientLinkServiceGrpcTransport( + address=self.SERVICE_ADDRESS, + channel=channel, + credentials=credentials, + ) + + if client_info is None: + client_info = google.api_core.gapic_v1.client_info.ClientInfo( + gapic_version=_GAPIC_LIBRARY_VERSION, + ) + else: + client_info.gapic_version = _GAPIC_LIBRARY_VERSION + self._client_info = client_info + + # Parse out the default settings for retry and timeout for each RPC + # from the client configuration. + # (Ordinarily, these are the defaults specified in the `*_config.py` + # file next to this one.) + self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( + client_config['interfaces'][self._INTERFACE_NAME], + ) + + # Save a dictionary of cached API call functions. + # These are the actual callables which invoke the proper + # transport methods, wrapped with `wrap_method` to add retry, + # timeout, and the like. + self._inner_api_calls = {} + + # Service calls + def get_customer_client_link( + self, + resource_name, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None): + """ + Returns the requested CustomerClientLink in full detail. + + Args: + resource_name (str): Required. The resource name of the customer client link to fetch. + retry (Optional[google.api_core.retry.Retry]): A retry object used + to retry requests. If ``None`` is specified, requests will not + be retried. + timeout (Optional[float]): The amount of time, in seconds, to wait + for the request to complete. Note that if ``retry`` is + specified, the timeout applies to each individual attempt. + metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata + that is provided to the method. + + Returns: + A :class:`~google.ads.googleads_v4.types.CustomerClientLink` instance. + + Raises: + google.api_core.exceptions.GoogleAPICallError: If the request + failed for any reason. + google.api_core.exceptions.RetryError: If the request failed due + to a retryable error and retry attempts failed. + ValueError: If the parameters are invalid. + """ + # Wrap the transport method to add retry and timeout logic. + if 'get_customer_client_link' not in self._inner_api_calls: + self._inner_api_calls['get_customer_client_link'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.get_customer_client_link, + default_retry=self._method_configs['GetCustomerClientLink'].retry, + default_timeout=self._method_configs['GetCustomerClientLink'].timeout, + client_info=self._client_info, + ) + + request = customer_client_link_service_pb2.GetCustomerClientLinkRequest( + resource_name=resource_name, + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [('resource_name', resource_name)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata(routing_header) + metadata.append(routing_metadata) + + return self._inner_api_calls['get_customer_client_link'](request, retry=retry, timeout=timeout, metadata=metadata) + + def mutate_customer_client_link( + self, + customer_id, + operation_, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None): + """ + Creates or updates a customer client link. Operation statuses are returned. + + Args: + customer_id (str): Required. The ID of the customer whose customer link are being modified. + operation_ (Union[dict, ~google.ads.googleads_v4.types.CustomerClientLinkOperation]): Required. The operation to perform on the individual CustomerClientLink. + + If a dict is provided, it must be of the same form as the protobuf + message :class:`~google.ads.googleads_v4.types.CustomerClientLinkOperation` + retry (Optional[google.api_core.retry.Retry]): A retry object used + to retry requests. If ``None`` is specified, requests will not + be retried. + timeout (Optional[float]): The amount of time, in seconds, to wait + for the request to complete. Note that if ``retry`` is + specified, the timeout applies to each individual attempt. + metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata + that is provided to the method. + + Returns: + A :class:`~google.ads.googleads_v4.types.MutateCustomerClientLinkResponse` instance. + + Raises: + google.api_core.exceptions.GoogleAPICallError: If the request + failed for any reason. + google.api_core.exceptions.RetryError: If the request failed due + to a retryable error and retry attempts failed. + ValueError: If the parameters are invalid. + """ + # Wrap the transport method to add retry and timeout logic. + if 'mutate_customer_client_link' not in self._inner_api_calls: + self._inner_api_calls['mutate_customer_client_link'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.mutate_customer_client_link, + default_retry=self._method_configs['MutateCustomerClientLink'].retry, + default_timeout=self._method_configs['MutateCustomerClientLink'].timeout, + client_info=self._client_info, + ) + + request = customer_client_link_service_pb2.MutateCustomerClientLinkRequest( + customer_id=customer_id, + operation=operation_, + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [('customer_id', customer_id)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata(routing_header) + metadata.append(routing_metadata) + + return self._inner_api_calls['mutate_customer_client_link'](request, retry=retry, timeout=timeout, metadata=metadata) diff --git a/google/ads/google_ads/v4/services/customer_client_link_service_client_config.py b/google/ads/google_ads/v4/services/customer_client_link_service_client_config.py new file mode 100644 index 000000000..ab8d48a80 --- /dev/null +++ b/google/ads/google_ads/v4/services/customer_client_link_service_client_config.py @@ -0,0 +1,36 @@ +config = { + "interfaces": { + "google.ads.googleads.v4.services.CustomerClientLinkService": { + "retry_codes": { + "idempotent": [ + "DEADLINE_EXCEEDED", + "UNAVAILABLE" + ], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 5000, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 3600000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 3600000, + "total_timeout_millis": 3600000 + } + }, + "methods": { + "GetCustomerClientLink": { + "timeout_millis": 60000, + "retry_codes_name": "idempotent", + "retry_params_name": "default" + }, + "MutateCustomerClientLink": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + } + } + } + } +} diff --git a/google/ads/google_ads/v1/services/customer_client_service_client.py b/google/ads/google_ads/v4/services/customer_client_service_client.py similarity index 76% rename from google/ads/google_ads/v1/services/customer_client_service_client.py rename to google/ads/google_ads/v4/services/customer_client_service_client.py index c9336b1e1..3a930355c 100644 --- a/google/ads/google_ads/v1/services/customer_client_service_client.py +++ b/google/ads/google_ads/v4/services/customer_client_service_client.py @@ -13,7 +13,8 @@ # 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. -"""Accesses the google.ads.googleads.v1.services CustomerClientService API.""" + +"""Accesses the google.ads.googleads.v4.services CustomerClientService API.""" import pkg_resources import warnings @@ -22,15 +23,19 @@ import google.api_core.gapic_v1.client_info import google.api_core.gapic_v1.config import google.api_core.gapic_v1.method +import google.api_core.gapic_v1.routing_header import google.api_core.grpc_helpers import google.api_core.path_template -from google.ads.google_ads.v1.services import customer_client_service_client_config -from google.ads.google_ads.v1.services.transports import customer_client_service_grpc_transport -from google.ads.google_ads.v1.proto.services import customer_client_service_pb2 +from google.ads.google_ads.v4.services import customer_client_service_client_config +from google.ads.google_ads.v4.services.transports import customer_client_service_grpc_transport +from google.ads.google_ads.v4.proto.services import customer_client_service_pb2 + + _GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( - 'google-ads', ).version + 'google-ads', +).version class CustomerClientServiceClient(object): @@ -41,7 +46,8 @@ class CustomerClientServiceClient(object): # The name of the interface for this client. This is the key used to # find the method configuration in the client_config dictionary. - _INTERFACE_NAME = 'google.ads.googleads.v1.services.CustomerClientService' + _INTERFACE_NAME = 'google.ads.googleads.v4.services.CustomerClientService' + @classmethod def from_service_account_file(cls, filename, *args, **kwargs): @@ -64,6 +70,7 @@ def from_service_account_file(cls, filename, *args, **kwargs): from_service_account_json = from_service_account_file + @classmethod def customer_client_path(cls, customer, customer_client): """Return a fully-qualified customer_client string.""" @@ -73,12 +80,8 @@ def customer_client_path(cls, customer, customer_client): customer_client=customer_client, ) - def __init__(self, - transport=None, - channel=None, - credentials=None, - client_config=None, - client_info=None): + def __init__(self, transport=None, channel=None, credentials=None, + client_config=None, client_info=None): """Constructor. Args: @@ -111,19 +114,15 @@ def __init__(self, """ # Raise deprecation warnings for things we want to go away. if client_config is not None: - warnings.warn( - 'The `client_config` argument is deprecated.', - PendingDeprecationWarning, - stacklevel=2) + warnings.warn('The `client_config` argument is deprecated.', + PendingDeprecationWarning, stacklevel=2) else: client_config = customer_client_service_client_config.config if channel: - warnings.warn( - 'The `channel` argument is deprecated; use ' - '`transport` instead.', - PendingDeprecationWarning, - stacklevel=2) + warnings.warn('The `channel` argument is deprecated; use ' + '`transport` instead.', + PendingDeprecationWarning, stacklevel=2) # Instantiate the transport. # The transport is responsible for handling serialization and @@ -132,14 +131,14 @@ def __init__(self, if callable(transport): self.transport = transport( credentials=credentials, - default_class=customer_client_service_grpc_transport. - CustomerClientServiceGrpcTransport, + default_class=customer_client_service_grpc_transport.CustomerClientServiceGrpcTransport, ) else: if credentials: raise ValueError( 'Received both a transport instance and ' - 'credentials; these are mutually exclusive.') + 'credentials; these are mutually exclusive.' + ) self.transport = transport else: self.transport = customer_client_service_grpc_transport.CustomerClientServiceGrpcTransport( @@ -150,7 +149,8 @@ def __init__(self, if client_info is None: client_info = google.api_core.gapic_v1.client_info.ClientInfo( - gapic_version=_GAPIC_LIBRARY_VERSION, ) + gapic_version=_GAPIC_LIBRARY_VERSION, + ) else: client_info.gapic_version = _GAPIC_LIBRARY_VERSION self._client_info = client_info @@ -160,7 +160,8 @@ def __init__(self, # (Ordinarily, these are the defaults specified in the `*_config.py` # file next to this one.) self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( - client_config['interfaces'][self._INTERFACE_NAME], ) + client_config['interfaces'][self._INTERFACE_NAME], + ) # Save a dictionary of cached API call functions. # These are the actual callables which invoke the proper @@ -169,16 +170,17 @@ def __init__(self, self._inner_api_calls = {} # Service calls - def get_customer_client(self, - resource_name, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): + def get_customer_client( + self, + resource_name, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None): """ Returns the requested client in full detail. Args: - resource_name (str): The resource name of the client to fetch. + resource_name (str): Required. The resource name of the client to fetch. retry (Optional[google.api_core.retry.Retry]): A retry object used to retry requests. If ``None`` is specified, requests will not be retried. @@ -189,7 +191,7 @@ def get_customer_client(self, that is provided to the method. Returns: - A :class:`~google.ads.googleads_v1.types.CustomerClient` instance. + A :class:`~google.ads.googleads_v4.types.CustomerClient` instance. Raises: google.api_core.exceptions.GoogleAPICallError: If the request @@ -200,17 +202,25 @@ def get_customer_client(self, """ # Wrap the transport method to add retry and timeout logic. if 'get_customer_client' not in self._inner_api_calls: - self._inner_api_calls[ - 'get_customer_client'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.get_customer_client, - default_retry=self._method_configs['GetCustomerClient']. - retry, - default_timeout=self._method_configs['GetCustomerClient']. - timeout, - client_info=self._client_info, - ) + self._inner_api_calls['get_customer_client'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.get_customer_client, + default_retry=self._method_configs['GetCustomerClient'].retry, + default_timeout=self._method_configs['GetCustomerClient'].timeout, + client_info=self._client_info, + ) request = customer_client_service_pb2.GetCustomerClientRequest( - resource_name=resource_name, ) - return self._inner_api_calls['get_customer_client']( - request, retry=retry, timeout=timeout, metadata=metadata) + resource_name=resource_name, + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [('resource_name', resource_name)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata(routing_header) + metadata.append(routing_metadata) + + return self._inner_api_calls['get_customer_client'](request, retry=retry, timeout=timeout, metadata=metadata) diff --git a/google/ads/google_ads/v4/services/customer_client_service_client_config.py b/google/ads/google_ads/v4/services/customer_client_service_client_config.py new file mode 100644 index 000000000..bc7cc7286 --- /dev/null +++ b/google/ads/google_ads/v4/services/customer_client_service_client_config.py @@ -0,0 +1,31 @@ +config = { + "interfaces": { + "google.ads.googleads.v4.services.CustomerClientService": { + "retry_codes": { + "idempotent": [ + "DEADLINE_EXCEEDED", + "UNAVAILABLE" + ], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 5000, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 3600000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 3600000, + "total_timeout_millis": 3600000 + } + }, + "methods": { + "GetCustomerClient": { + "timeout_millis": 60000, + "retry_codes_name": "idempotent", + "retry_params_name": "default" + } + } + } + } +} diff --git a/google/ads/google_ads/v4/services/customer_extension_setting_service_client.py b/google/ads/google_ads/v4/services/customer_extension_setting_service_client.py new file mode 100644 index 000000000..ca7274472 --- /dev/null +++ b/google/ads/google_ads/v4/services/customer_extension_setting_service_client.py @@ -0,0 +1,300 @@ +# -*- coding: utf-8 -*- +# +# 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. + +"""Accesses the google.ads.googleads.v4.services CustomerExtensionSettingService API.""" + +import pkg_resources +import warnings + +from google.oauth2 import service_account +import google.api_core.gapic_v1.client_info +import google.api_core.gapic_v1.config +import google.api_core.gapic_v1.method +import google.api_core.gapic_v1.routing_header +import google.api_core.grpc_helpers +import google.api_core.path_template + +from google.ads.google_ads.v4.services import customer_extension_setting_service_client_config +from google.ads.google_ads.v4.services.transports import customer_extension_setting_service_grpc_transport +from google.ads.google_ads.v4.proto.services import customer_extension_setting_service_pb2 + + + +_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( + 'google-ads', +).version + + +class CustomerExtensionSettingServiceClient(object): + """Service to manage customer extension settings.""" + + SERVICE_ADDRESS = 'googleads.googleapis.com:443' + """The default address of the service.""" + + # The name of the interface for this client. This is the key used to + # find the method configuration in the client_config dictionary. + _INTERFACE_NAME = 'google.ads.googleads.v4.services.CustomerExtensionSettingService' + + + @classmethod + def from_service_account_file(cls, filename, *args, **kwargs): + """Creates an instance of this client using the provided credentials + file. + + Args: + filename (str): The path to the service account private key json + file. + args: Additional arguments to pass to the constructor. + kwargs: Additional arguments to pass to the constructor. + + Returns: + CustomerExtensionSettingServiceClient: The constructed client. + """ + credentials = service_account.Credentials.from_service_account_file( + filename) + kwargs['credentials'] = credentials + return cls(*args, **kwargs) + + from_service_account_json = from_service_account_file + + + @classmethod + def customer_extension_setting_path(cls, customer, customer_extension_setting): + """Return a fully-qualified customer_extension_setting string.""" + return google.api_core.path_template.expand( + 'customers/{customer}/customerExtensionSettings/{customer_extension_setting}', + customer=customer, + customer_extension_setting=customer_extension_setting, + ) + + def __init__(self, transport=None, channel=None, credentials=None, + client_config=None, client_info=None): + """Constructor. + + Args: + transport (Union[~.CustomerExtensionSettingServiceGrpcTransport, + Callable[[~.Credentials, type], ~.CustomerExtensionSettingServiceGrpcTransport]): A transport + instance, responsible for actually making the API calls. + The default transport uses the gRPC protocol. + This argument may also be a callable which returns a + transport instance. Callables will be sent the credentials + as the first argument and the default transport class as + the second argument. + channel (grpc.Channel): DEPRECATED. A ``Channel`` instance + through which to make calls. This argument is mutually exclusive + with ``credentials``; providing both will raise an exception. + credentials (google.auth.credentials.Credentials): The + authorization credentials to attach to requests. These + credentials identify this application to the service. If none + are specified, the client will attempt to ascertain the + credentials from the environment. + This argument is mutually exclusive with providing a + transport instance to ``transport``; doing so will raise + an exception. + client_config (dict): DEPRECATED. A dictionary of call options for + each method. If not specified, the default configuration is used. + client_info (google.api_core.gapic_v1.client_info.ClientInfo): + The client info used to send a user-agent string along with + API requests. If ``None``, then default info will be used. + Generally, you only need to set this if you're developing + your own client library. + """ + # Raise deprecation warnings for things we want to go away. + if client_config is not None: + warnings.warn('The `client_config` argument is deprecated.', + PendingDeprecationWarning, stacklevel=2) + else: + client_config = customer_extension_setting_service_client_config.config + + if channel: + warnings.warn('The `channel` argument is deprecated; use ' + '`transport` instead.', + PendingDeprecationWarning, stacklevel=2) + + # Instantiate the transport. + # The transport is responsible for handling serialization and + # deserialization and actually sending data to the service. + if transport: + if callable(transport): + self.transport = transport( + credentials=credentials, + default_class=customer_extension_setting_service_grpc_transport.CustomerExtensionSettingServiceGrpcTransport, + ) + else: + if credentials: + raise ValueError( + 'Received both a transport instance and ' + 'credentials; these are mutually exclusive.' + ) + self.transport = transport + else: + self.transport = customer_extension_setting_service_grpc_transport.CustomerExtensionSettingServiceGrpcTransport( + address=self.SERVICE_ADDRESS, + channel=channel, + credentials=credentials, + ) + + if client_info is None: + client_info = google.api_core.gapic_v1.client_info.ClientInfo( + gapic_version=_GAPIC_LIBRARY_VERSION, + ) + else: + client_info.gapic_version = _GAPIC_LIBRARY_VERSION + self._client_info = client_info + + # Parse out the default settings for retry and timeout for each RPC + # from the client configuration. + # (Ordinarily, these are the defaults specified in the `*_config.py` + # file next to this one.) + self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( + client_config['interfaces'][self._INTERFACE_NAME], + ) + + # Save a dictionary of cached API call functions. + # These are the actual callables which invoke the proper + # transport methods, wrapped with `wrap_method` to add retry, + # timeout, and the like. + self._inner_api_calls = {} + + # Service calls + def get_customer_extension_setting( + self, + resource_name, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None): + """ + Returns the requested customer extension setting in full detail. + + Args: + resource_name (str): Required. The resource name of the customer extension setting to fetch. + retry (Optional[google.api_core.retry.Retry]): A retry object used + to retry requests. If ``None`` is specified, requests will not + be retried. + timeout (Optional[float]): The amount of time, in seconds, to wait + for the request to complete. Note that if ``retry`` is + specified, the timeout applies to each individual attempt. + metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata + that is provided to the method. + + Returns: + A :class:`~google.ads.googleads_v4.types.CustomerExtensionSetting` instance. + + Raises: + google.api_core.exceptions.GoogleAPICallError: If the request + failed for any reason. + google.api_core.exceptions.RetryError: If the request failed due + to a retryable error and retry attempts failed. + ValueError: If the parameters are invalid. + """ + # Wrap the transport method to add retry and timeout logic. + if 'get_customer_extension_setting' not in self._inner_api_calls: + self._inner_api_calls['get_customer_extension_setting'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.get_customer_extension_setting, + default_retry=self._method_configs['GetCustomerExtensionSetting'].retry, + default_timeout=self._method_configs['GetCustomerExtensionSetting'].timeout, + client_info=self._client_info, + ) + + request = customer_extension_setting_service_pb2.GetCustomerExtensionSettingRequest( + resource_name=resource_name, + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [('resource_name', resource_name)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata(routing_header) + metadata.append(routing_metadata) + + return self._inner_api_calls['get_customer_extension_setting'](request, retry=retry, timeout=timeout, metadata=metadata) + + def mutate_customer_extension_settings( + self, + customer_id, + operations, + partial_failure=None, + validate_only=None, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None): + """ + Creates, updates, or removes customer extension settings. Operation + statuses are returned. + + Args: + customer_id (str): Required. The ID of the customer whose customer extension settings are being + modified. + operations (list[Union[dict, ~google.ads.googleads_v4.types.CustomerExtensionSettingOperation]]): Required. The list of operations to perform on individual customer extension + settings. + + If a dict is provided, it must be of the same form as the protobuf + message :class:`~google.ads.googleads_v4.types.CustomerExtensionSettingOperation` + partial_failure (bool): If true, successful operations will be carried out and invalid + operations will return errors. If false, all operations will be carried + out in one transaction if and only if they are all valid. + Default is false. + validate_only (bool): If true, the request is validated but not executed. Only errors are + returned, not results. + retry (Optional[google.api_core.retry.Retry]): A retry object used + to retry requests. If ``None`` is specified, requests will not + be retried. + timeout (Optional[float]): The amount of time, in seconds, to wait + for the request to complete. Note that if ``retry`` is + specified, the timeout applies to each individual attempt. + metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata + that is provided to the method. + + Returns: + A :class:`~google.ads.googleads_v4.types.MutateCustomerExtensionSettingsResponse` instance. + + Raises: + google.api_core.exceptions.GoogleAPICallError: If the request + failed for any reason. + google.api_core.exceptions.RetryError: If the request failed due + to a retryable error and retry attempts failed. + ValueError: If the parameters are invalid. + """ + # Wrap the transport method to add retry and timeout logic. + if 'mutate_customer_extension_settings' not in self._inner_api_calls: + self._inner_api_calls['mutate_customer_extension_settings'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.mutate_customer_extension_settings, + default_retry=self._method_configs['MutateCustomerExtensionSettings'].retry, + default_timeout=self._method_configs['MutateCustomerExtensionSettings'].timeout, + client_info=self._client_info, + ) + + request = customer_extension_setting_service_pb2.MutateCustomerExtensionSettingsRequest( + customer_id=customer_id, + operations=operations, + partial_failure=partial_failure, + validate_only=validate_only, + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [('customer_id', customer_id)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata(routing_header) + metadata.append(routing_metadata) + + return self._inner_api_calls['mutate_customer_extension_settings'](request, retry=retry, timeout=timeout, metadata=metadata) diff --git a/google/ads/google_ads/v4/services/customer_extension_setting_service_client_config.py b/google/ads/google_ads/v4/services/customer_extension_setting_service_client_config.py new file mode 100644 index 000000000..7a3dac7a1 --- /dev/null +++ b/google/ads/google_ads/v4/services/customer_extension_setting_service_client_config.py @@ -0,0 +1,36 @@ +config = { + "interfaces": { + "google.ads.googleads.v4.services.CustomerExtensionSettingService": { + "retry_codes": { + "idempotent": [ + "DEADLINE_EXCEEDED", + "UNAVAILABLE" + ], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 5000, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 3600000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 3600000, + "total_timeout_millis": 3600000 + } + }, + "methods": { + "GetCustomerExtensionSetting": { + "timeout_millis": 60000, + "retry_codes_name": "idempotent", + "retry_params_name": "default" + }, + "MutateCustomerExtensionSettings": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + } + } + } + } +} diff --git a/google/ads/google_ads/v4/services/customer_feed_service_client.py b/google/ads/google_ads/v4/services/customer_feed_service_client.py new file mode 100644 index 000000000..8dcd9fc26 --- /dev/null +++ b/google/ads/google_ads/v4/services/customer_feed_service_client.py @@ -0,0 +1,298 @@ +# -*- coding: utf-8 -*- +# +# 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. + +"""Accesses the google.ads.googleads.v4.services CustomerFeedService API.""" + +import pkg_resources +import warnings + +from google.oauth2 import service_account +import google.api_core.gapic_v1.client_info +import google.api_core.gapic_v1.config +import google.api_core.gapic_v1.method +import google.api_core.gapic_v1.routing_header +import google.api_core.grpc_helpers +import google.api_core.path_template + +from google.ads.google_ads.v4.services import customer_feed_service_client_config +from google.ads.google_ads.v4.services.transports import customer_feed_service_grpc_transport +from google.ads.google_ads.v4.proto.services import customer_feed_service_pb2 + + + +_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( + 'google-ads', +).version + + +class CustomerFeedServiceClient(object): + """Service to manage customer feeds.""" + + SERVICE_ADDRESS = 'googleads.googleapis.com:443' + """The default address of the service.""" + + # The name of the interface for this client. This is the key used to + # find the method configuration in the client_config dictionary. + _INTERFACE_NAME = 'google.ads.googleads.v4.services.CustomerFeedService' + + + @classmethod + def from_service_account_file(cls, filename, *args, **kwargs): + """Creates an instance of this client using the provided credentials + file. + + Args: + filename (str): The path to the service account private key json + file. + args: Additional arguments to pass to the constructor. + kwargs: Additional arguments to pass to the constructor. + + Returns: + CustomerFeedServiceClient: The constructed client. + """ + credentials = service_account.Credentials.from_service_account_file( + filename) + kwargs['credentials'] = credentials + return cls(*args, **kwargs) + + from_service_account_json = from_service_account_file + + + @classmethod + def customer_feed_path(cls, customer, customer_feed): + """Return a fully-qualified customer_feed string.""" + return google.api_core.path_template.expand( + 'customers/{customer}/customerFeeds/{customer_feed}', + customer=customer, + customer_feed=customer_feed, + ) + + def __init__(self, transport=None, channel=None, credentials=None, + client_config=None, client_info=None): + """Constructor. + + Args: + transport (Union[~.CustomerFeedServiceGrpcTransport, + Callable[[~.Credentials, type], ~.CustomerFeedServiceGrpcTransport]): A transport + instance, responsible for actually making the API calls. + The default transport uses the gRPC protocol. + This argument may also be a callable which returns a + transport instance. Callables will be sent the credentials + as the first argument and the default transport class as + the second argument. + channel (grpc.Channel): DEPRECATED. A ``Channel`` instance + through which to make calls. This argument is mutually exclusive + with ``credentials``; providing both will raise an exception. + credentials (google.auth.credentials.Credentials): The + authorization credentials to attach to requests. These + credentials identify this application to the service. If none + are specified, the client will attempt to ascertain the + credentials from the environment. + This argument is mutually exclusive with providing a + transport instance to ``transport``; doing so will raise + an exception. + client_config (dict): DEPRECATED. A dictionary of call options for + each method. If not specified, the default configuration is used. + client_info (google.api_core.gapic_v1.client_info.ClientInfo): + The client info used to send a user-agent string along with + API requests. If ``None``, then default info will be used. + Generally, you only need to set this if you're developing + your own client library. + """ + # Raise deprecation warnings for things we want to go away. + if client_config is not None: + warnings.warn('The `client_config` argument is deprecated.', + PendingDeprecationWarning, stacklevel=2) + else: + client_config = customer_feed_service_client_config.config + + if channel: + warnings.warn('The `channel` argument is deprecated; use ' + '`transport` instead.', + PendingDeprecationWarning, stacklevel=2) + + # Instantiate the transport. + # The transport is responsible for handling serialization and + # deserialization and actually sending data to the service. + if transport: + if callable(transport): + self.transport = transport( + credentials=credentials, + default_class=customer_feed_service_grpc_transport.CustomerFeedServiceGrpcTransport, + ) + else: + if credentials: + raise ValueError( + 'Received both a transport instance and ' + 'credentials; these are mutually exclusive.' + ) + self.transport = transport + else: + self.transport = customer_feed_service_grpc_transport.CustomerFeedServiceGrpcTransport( + address=self.SERVICE_ADDRESS, + channel=channel, + credentials=credentials, + ) + + if client_info is None: + client_info = google.api_core.gapic_v1.client_info.ClientInfo( + gapic_version=_GAPIC_LIBRARY_VERSION, + ) + else: + client_info.gapic_version = _GAPIC_LIBRARY_VERSION + self._client_info = client_info + + # Parse out the default settings for retry and timeout for each RPC + # from the client configuration. + # (Ordinarily, these are the defaults specified in the `*_config.py` + # file next to this one.) + self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( + client_config['interfaces'][self._INTERFACE_NAME], + ) + + # Save a dictionary of cached API call functions. + # These are the actual callables which invoke the proper + # transport methods, wrapped with `wrap_method` to add retry, + # timeout, and the like. + self._inner_api_calls = {} + + # Service calls + def get_customer_feed( + self, + resource_name, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None): + """ + Returns the requested customer feed in full detail. + + Args: + resource_name (str): Required. The resource name of the customer feed to fetch. + retry (Optional[google.api_core.retry.Retry]): A retry object used + to retry requests. If ``None`` is specified, requests will not + be retried. + timeout (Optional[float]): The amount of time, in seconds, to wait + for the request to complete. Note that if ``retry`` is + specified, the timeout applies to each individual attempt. + metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata + that is provided to the method. + + Returns: + A :class:`~google.ads.googleads_v4.types.CustomerFeed` instance. + + Raises: + google.api_core.exceptions.GoogleAPICallError: If the request + failed for any reason. + google.api_core.exceptions.RetryError: If the request failed due + to a retryable error and retry attempts failed. + ValueError: If the parameters are invalid. + """ + # Wrap the transport method to add retry and timeout logic. + if 'get_customer_feed' not in self._inner_api_calls: + self._inner_api_calls['get_customer_feed'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.get_customer_feed, + default_retry=self._method_configs['GetCustomerFeed'].retry, + default_timeout=self._method_configs['GetCustomerFeed'].timeout, + client_info=self._client_info, + ) + + request = customer_feed_service_pb2.GetCustomerFeedRequest( + resource_name=resource_name, + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [('resource_name', resource_name)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata(routing_header) + metadata.append(routing_metadata) + + return self._inner_api_calls['get_customer_feed'](request, retry=retry, timeout=timeout, metadata=metadata) + + def mutate_customer_feeds( + self, + customer_id, + operations, + partial_failure=None, + validate_only=None, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None): + """ + Creates, updates, or removes customer feeds. Operation statuses are + returned. + + Args: + customer_id (str): Required. The ID of the customer whose customer feeds are being modified. + operations (list[Union[dict, ~google.ads.googleads_v4.types.CustomerFeedOperation]]): Required. The list of operations to perform on individual customer feeds. + + If a dict is provided, it must be of the same form as the protobuf + message :class:`~google.ads.googleads_v4.types.CustomerFeedOperation` + partial_failure (bool): If true, successful operations will be carried out and invalid + operations will return errors. If false, all operations will be carried + out in one transaction if and only if they are all valid. + Default is false. + validate_only (bool): If true, the request is validated but not executed. Only errors are + returned, not results. + retry (Optional[google.api_core.retry.Retry]): A retry object used + to retry requests. If ``None`` is specified, requests will not + be retried. + timeout (Optional[float]): The amount of time, in seconds, to wait + for the request to complete. Note that if ``retry`` is + specified, the timeout applies to each individual attempt. + metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata + that is provided to the method. + + Returns: + A :class:`~google.ads.googleads_v4.types.MutateCustomerFeedsResponse` instance. + + Raises: + google.api_core.exceptions.GoogleAPICallError: If the request + failed for any reason. + google.api_core.exceptions.RetryError: If the request failed due + to a retryable error and retry attempts failed. + ValueError: If the parameters are invalid. + """ + # Wrap the transport method to add retry and timeout logic. + if 'mutate_customer_feeds' not in self._inner_api_calls: + self._inner_api_calls['mutate_customer_feeds'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.mutate_customer_feeds, + default_retry=self._method_configs['MutateCustomerFeeds'].retry, + default_timeout=self._method_configs['MutateCustomerFeeds'].timeout, + client_info=self._client_info, + ) + + request = customer_feed_service_pb2.MutateCustomerFeedsRequest( + customer_id=customer_id, + operations=operations, + partial_failure=partial_failure, + validate_only=validate_only, + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [('customer_id', customer_id)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata(routing_header) + metadata.append(routing_metadata) + + return self._inner_api_calls['mutate_customer_feeds'](request, retry=retry, timeout=timeout, metadata=metadata) diff --git a/google/ads/google_ads/v4/services/customer_feed_service_client_config.py b/google/ads/google_ads/v4/services/customer_feed_service_client_config.py new file mode 100644 index 000000000..423b11a63 --- /dev/null +++ b/google/ads/google_ads/v4/services/customer_feed_service_client_config.py @@ -0,0 +1,36 @@ +config = { + "interfaces": { + "google.ads.googleads.v4.services.CustomerFeedService": { + "retry_codes": { + "idempotent": [ + "DEADLINE_EXCEEDED", + "UNAVAILABLE" + ], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 5000, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 3600000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 3600000, + "total_timeout_millis": 3600000 + } + }, + "methods": { + "GetCustomerFeed": { + "timeout_millis": 60000, + "retry_codes_name": "idempotent", + "retry_params_name": "default" + }, + "MutateCustomerFeeds": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + } + } + } + } +} diff --git a/google/ads/google_ads/v4/services/customer_label_service_client.py b/google/ads/google_ads/v4/services/customer_label_service_client.py new file mode 100644 index 000000000..f9320ce64 --- /dev/null +++ b/google/ads/google_ads/v4/services/customer_label_service_client.py @@ -0,0 +1,298 @@ +# -*- coding: utf-8 -*- +# +# 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. + +"""Accesses the google.ads.googleads.v4.services CustomerLabelService API.""" + +import pkg_resources +import warnings + +from google.oauth2 import service_account +import google.api_core.gapic_v1.client_info +import google.api_core.gapic_v1.config +import google.api_core.gapic_v1.method +import google.api_core.gapic_v1.routing_header +import google.api_core.grpc_helpers +import google.api_core.path_template + +from google.ads.google_ads.v4.services import customer_label_service_client_config +from google.ads.google_ads.v4.services.transports import customer_label_service_grpc_transport +from google.ads.google_ads.v4.proto.services import customer_label_service_pb2 + + + +_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( + 'google-ads', +).version + + +class CustomerLabelServiceClient(object): + """Service to manage labels on customers.""" + + SERVICE_ADDRESS = 'googleads.googleapis.com:443' + """The default address of the service.""" + + # The name of the interface for this client. This is the key used to + # find the method configuration in the client_config dictionary. + _INTERFACE_NAME = 'google.ads.googleads.v4.services.CustomerLabelService' + + + @classmethod + def from_service_account_file(cls, filename, *args, **kwargs): + """Creates an instance of this client using the provided credentials + file. + + Args: + filename (str): The path to the service account private key json + file. + args: Additional arguments to pass to the constructor. + kwargs: Additional arguments to pass to the constructor. + + Returns: + CustomerLabelServiceClient: The constructed client. + """ + credentials = service_account.Credentials.from_service_account_file( + filename) + kwargs['credentials'] = credentials + return cls(*args, **kwargs) + + from_service_account_json = from_service_account_file + + + @classmethod + def customer_label_path(cls, customer, customer_label): + """Return a fully-qualified customer_label string.""" + return google.api_core.path_template.expand( + 'customers/{customer}/customerLabels/{customer_label}', + customer=customer, + customer_label=customer_label, + ) + + def __init__(self, transport=None, channel=None, credentials=None, + client_config=None, client_info=None): + """Constructor. + + Args: + transport (Union[~.CustomerLabelServiceGrpcTransport, + Callable[[~.Credentials, type], ~.CustomerLabelServiceGrpcTransport]): A transport + instance, responsible for actually making the API calls. + The default transport uses the gRPC protocol. + This argument may also be a callable which returns a + transport instance. Callables will be sent the credentials + as the first argument and the default transport class as + the second argument. + channel (grpc.Channel): DEPRECATED. A ``Channel`` instance + through which to make calls. This argument is mutually exclusive + with ``credentials``; providing both will raise an exception. + credentials (google.auth.credentials.Credentials): The + authorization credentials to attach to requests. These + credentials identify this application to the service. If none + are specified, the client will attempt to ascertain the + credentials from the environment. + This argument is mutually exclusive with providing a + transport instance to ``transport``; doing so will raise + an exception. + client_config (dict): DEPRECATED. A dictionary of call options for + each method. If not specified, the default configuration is used. + client_info (google.api_core.gapic_v1.client_info.ClientInfo): + The client info used to send a user-agent string along with + API requests. If ``None``, then default info will be used. + Generally, you only need to set this if you're developing + your own client library. + """ + # Raise deprecation warnings for things we want to go away. + if client_config is not None: + warnings.warn('The `client_config` argument is deprecated.', + PendingDeprecationWarning, stacklevel=2) + else: + client_config = customer_label_service_client_config.config + + if channel: + warnings.warn('The `channel` argument is deprecated; use ' + '`transport` instead.', + PendingDeprecationWarning, stacklevel=2) + + # Instantiate the transport. + # The transport is responsible for handling serialization and + # deserialization and actually sending data to the service. + if transport: + if callable(transport): + self.transport = transport( + credentials=credentials, + default_class=customer_label_service_grpc_transport.CustomerLabelServiceGrpcTransport, + ) + else: + if credentials: + raise ValueError( + 'Received both a transport instance and ' + 'credentials; these are mutually exclusive.' + ) + self.transport = transport + else: + self.transport = customer_label_service_grpc_transport.CustomerLabelServiceGrpcTransport( + address=self.SERVICE_ADDRESS, + channel=channel, + credentials=credentials, + ) + + if client_info is None: + client_info = google.api_core.gapic_v1.client_info.ClientInfo( + gapic_version=_GAPIC_LIBRARY_VERSION, + ) + else: + client_info.gapic_version = _GAPIC_LIBRARY_VERSION + self._client_info = client_info + + # Parse out the default settings for retry and timeout for each RPC + # from the client configuration. + # (Ordinarily, these are the defaults specified in the `*_config.py` + # file next to this one.) + self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( + client_config['interfaces'][self._INTERFACE_NAME], + ) + + # Save a dictionary of cached API call functions. + # These are the actual callables which invoke the proper + # transport methods, wrapped with `wrap_method` to add retry, + # timeout, and the like. + self._inner_api_calls = {} + + # Service calls + def get_customer_label( + self, + resource_name, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None): + """ + Returns the requested customer-label relationship in full detail. + + Args: + resource_name (str): Required. The resource name of the customer-label relationship to fetch. + retry (Optional[google.api_core.retry.Retry]): A retry object used + to retry requests. If ``None`` is specified, requests will not + be retried. + timeout (Optional[float]): The amount of time, in seconds, to wait + for the request to complete. Note that if ``retry`` is + specified, the timeout applies to each individual attempt. + metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata + that is provided to the method. + + Returns: + A :class:`~google.ads.googleads_v4.types.CustomerLabel` instance. + + Raises: + google.api_core.exceptions.GoogleAPICallError: If the request + failed for any reason. + google.api_core.exceptions.RetryError: If the request failed due + to a retryable error and retry attempts failed. + ValueError: If the parameters are invalid. + """ + # Wrap the transport method to add retry and timeout logic. + if 'get_customer_label' not in self._inner_api_calls: + self._inner_api_calls['get_customer_label'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.get_customer_label, + default_retry=self._method_configs['GetCustomerLabel'].retry, + default_timeout=self._method_configs['GetCustomerLabel'].timeout, + client_info=self._client_info, + ) + + request = customer_label_service_pb2.GetCustomerLabelRequest( + resource_name=resource_name, + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [('resource_name', resource_name)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata(routing_header) + metadata.append(routing_metadata) + + return self._inner_api_calls['get_customer_label'](request, retry=retry, timeout=timeout, metadata=metadata) + + def mutate_customer_labels( + self, + customer_id, + operations, + partial_failure=None, + validate_only=None, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None): + """ + Creates and removes customer-label relationships. + Operation statuses are returned. + + Args: + customer_id (str): Required. ID of the customer whose customer-label relationships are being modified. + operations (list[Union[dict, ~google.ads.googleads_v4.types.CustomerLabelOperation]]): Required. The list of operations to perform on customer-label relationships. + + If a dict is provided, it must be of the same form as the protobuf + message :class:`~google.ads.googleads_v4.types.CustomerLabelOperation` + partial_failure (bool): If true, successful operations will be carried out and invalid + operations will return errors. If false, all operations will be carried + out in one transaction if and only if they are all valid. + Default is false. + validate_only (bool): If true, the request is validated but not executed. Only errors are + returned, not results. + retry (Optional[google.api_core.retry.Retry]): A retry object used + to retry requests. If ``None`` is specified, requests will not + be retried. + timeout (Optional[float]): The amount of time, in seconds, to wait + for the request to complete. Note that if ``retry`` is + specified, the timeout applies to each individual attempt. + metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata + that is provided to the method. + + Returns: + A :class:`~google.ads.googleads_v4.types.MutateCustomerLabelsResponse` instance. + + Raises: + google.api_core.exceptions.GoogleAPICallError: If the request + failed for any reason. + google.api_core.exceptions.RetryError: If the request failed due + to a retryable error and retry attempts failed. + ValueError: If the parameters are invalid. + """ + # Wrap the transport method to add retry and timeout logic. + if 'mutate_customer_labels' not in self._inner_api_calls: + self._inner_api_calls['mutate_customer_labels'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.mutate_customer_labels, + default_retry=self._method_configs['MutateCustomerLabels'].retry, + default_timeout=self._method_configs['MutateCustomerLabels'].timeout, + client_info=self._client_info, + ) + + request = customer_label_service_pb2.MutateCustomerLabelsRequest( + customer_id=customer_id, + operations=operations, + partial_failure=partial_failure, + validate_only=validate_only, + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [('customer_id', customer_id)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata(routing_header) + metadata.append(routing_metadata) + + return self._inner_api_calls['mutate_customer_labels'](request, retry=retry, timeout=timeout, metadata=metadata) diff --git a/google/ads/google_ads/v4/services/customer_label_service_client_config.py b/google/ads/google_ads/v4/services/customer_label_service_client_config.py new file mode 100644 index 000000000..689d36f01 --- /dev/null +++ b/google/ads/google_ads/v4/services/customer_label_service_client_config.py @@ -0,0 +1,36 @@ +config = { + "interfaces": { + "google.ads.googleads.v4.services.CustomerLabelService": { + "retry_codes": { + "idempotent": [ + "DEADLINE_EXCEEDED", + "UNAVAILABLE" + ], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 5000, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 3600000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 3600000, + "total_timeout_millis": 3600000 + } + }, + "methods": { + "GetCustomerLabel": { + "timeout_millis": 60000, + "retry_codes_name": "idempotent", + "retry_params_name": "default" + }, + "MutateCustomerLabels": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + } + } + } + } +} diff --git a/google/ads/google_ads/v4/services/customer_manager_link_service_client.py b/google/ads/google_ads/v4/services/customer_manager_link_service_client.py new file mode 100644 index 000000000..18ebeae74 --- /dev/null +++ b/google/ads/google_ads/v4/services/customer_manager_link_service_client.py @@ -0,0 +1,356 @@ +# -*- coding: utf-8 -*- +# +# 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. + +"""Accesses the google.ads.googleads.v4.services CustomerManagerLinkService API.""" + +import pkg_resources +import warnings + +from google.oauth2 import service_account +import google.api_core.gapic_v1.client_info +import google.api_core.gapic_v1.config +import google.api_core.gapic_v1.method +import google.api_core.gapic_v1.routing_header +import google.api_core.grpc_helpers +import google.api_core.path_template + +from google.ads.google_ads.v4.services import customer_manager_link_service_client_config +from google.ads.google_ads.v4.services.transports import customer_manager_link_service_grpc_transport +from google.ads.google_ads.v4.proto.services import customer_manager_link_service_pb2 + + + +_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( + 'google-ads', +).version + + +class CustomerManagerLinkServiceClient(object): + """Service to manage customer-manager links.""" + + SERVICE_ADDRESS = 'googleads.googleapis.com:443' + """The default address of the service.""" + + # The name of the interface for this client. This is the key used to + # find the method configuration in the client_config dictionary. + _INTERFACE_NAME = 'google.ads.googleads.v4.services.CustomerManagerLinkService' + + + @classmethod + def from_service_account_file(cls, filename, *args, **kwargs): + """Creates an instance of this client using the provided credentials + file. + + Args: + filename (str): The path to the service account private key json + file. + args: Additional arguments to pass to the constructor. + kwargs: Additional arguments to pass to the constructor. + + Returns: + CustomerManagerLinkServiceClient: The constructed client. + """ + credentials = service_account.Credentials.from_service_account_file( + filename) + kwargs['credentials'] = credentials + return cls(*args, **kwargs) + + from_service_account_json = from_service_account_file + + + @classmethod + def customer_manager_link_path(cls, customer, customer_manager_link): + """Return a fully-qualified customer_manager_link string.""" + return google.api_core.path_template.expand( + 'customers/{customer}/customerManagerLinks/{customer_manager_link}', + customer=customer, + customer_manager_link=customer_manager_link, + ) + + def __init__(self, transport=None, channel=None, credentials=None, + client_config=None, client_info=None): + """Constructor. + + Args: + transport (Union[~.CustomerManagerLinkServiceGrpcTransport, + Callable[[~.Credentials, type], ~.CustomerManagerLinkServiceGrpcTransport]): A transport + instance, responsible for actually making the API calls. + The default transport uses the gRPC protocol. + This argument may also be a callable which returns a + transport instance. Callables will be sent the credentials + as the first argument and the default transport class as + the second argument. + channel (grpc.Channel): DEPRECATED. A ``Channel`` instance + through which to make calls. This argument is mutually exclusive + with ``credentials``; providing both will raise an exception. + credentials (google.auth.credentials.Credentials): The + authorization credentials to attach to requests. These + credentials identify this application to the service. If none + are specified, the client will attempt to ascertain the + credentials from the environment. + This argument is mutually exclusive with providing a + transport instance to ``transport``; doing so will raise + an exception. + client_config (dict): DEPRECATED. A dictionary of call options for + each method. If not specified, the default configuration is used. + client_info (google.api_core.gapic_v1.client_info.ClientInfo): + The client info used to send a user-agent string along with + API requests. If ``None``, then default info will be used. + Generally, you only need to set this if you're developing + your own client library. + """ + # Raise deprecation warnings for things we want to go away. + if client_config is not None: + warnings.warn('The `client_config` argument is deprecated.', + PendingDeprecationWarning, stacklevel=2) + else: + client_config = customer_manager_link_service_client_config.config + + if channel: + warnings.warn('The `channel` argument is deprecated; use ' + '`transport` instead.', + PendingDeprecationWarning, stacklevel=2) + + # Instantiate the transport. + # The transport is responsible for handling serialization and + # deserialization and actually sending data to the service. + if transport: + if callable(transport): + self.transport = transport( + credentials=credentials, + default_class=customer_manager_link_service_grpc_transport.CustomerManagerLinkServiceGrpcTransport, + ) + else: + if credentials: + raise ValueError( + 'Received both a transport instance and ' + 'credentials; these are mutually exclusive.' + ) + self.transport = transport + else: + self.transport = customer_manager_link_service_grpc_transport.CustomerManagerLinkServiceGrpcTransport( + address=self.SERVICE_ADDRESS, + channel=channel, + credentials=credentials, + ) + + if client_info is None: + client_info = google.api_core.gapic_v1.client_info.ClientInfo( + gapic_version=_GAPIC_LIBRARY_VERSION, + ) + else: + client_info.gapic_version = _GAPIC_LIBRARY_VERSION + self._client_info = client_info + + # Parse out the default settings for retry and timeout for each RPC + # from the client configuration. + # (Ordinarily, these are the defaults specified in the `*_config.py` + # file next to this one.) + self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( + client_config['interfaces'][self._INTERFACE_NAME], + ) + + # Save a dictionary of cached API call functions. + # These are the actual callables which invoke the proper + # transport methods, wrapped with `wrap_method` to add retry, + # timeout, and the like. + self._inner_api_calls = {} + + # Service calls + def get_customer_manager_link( + self, + resource_name, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None): + """ + Returns the requested CustomerManagerLink in full detail. + + Args: + resource_name (str): Required. The resource name of the CustomerManagerLink to fetch. + retry (Optional[google.api_core.retry.Retry]): A retry object used + to retry requests. If ``None`` is specified, requests will not + be retried. + timeout (Optional[float]): The amount of time, in seconds, to wait + for the request to complete. Note that if ``retry`` is + specified, the timeout applies to each individual attempt. + metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata + that is provided to the method. + + Returns: + A :class:`~google.ads.googleads_v4.types.CustomerManagerLink` instance. + + Raises: + google.api_core.exceptions.GoogleAPICallError: If the request + failed for any reason. + google.api_core.exceptions.RetryError: If the request failed due + to a retryable error and retry attempts failed. + ValueError: If the parameters are invalid. + """ + # Wrap the transport method to add retry and timeout logic. + if 'get_customer_manager_link' not in self._inner_api_calls: + self._inner_api_calls['get_customer_manager_link'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.get_customer_manager_link, + default_retry=self._method_configs['GetCustomerManagerLink'].retry, + default_timeout=self._method_configs['GetCustomerManagerLink'].timeout, + client_info=self._client_info, + ) + + request = customer_manager_link_service_pb2.GetCustomerManagerLinkRequest( + resource_name=resource_name, + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [('resource_name', resource_name)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata(routing_header) + metadata.append(routing_metadata) + + return self._inner_api_calls['get_customer_manager_link'](request, retry=retry, timeout=timeout, metadata=metadata) + + def mutate_customer_manager_link( + self, + customer_id, + operations, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None): + """ + Creates or updates customer manager links. Operation statuses are returned. + + Args: + customer_id (str): Required. The ID of the customer whose customer manager links are being modified. + operations (list[Union[dict, ~google.ads.googleads_v4.types.CustomerManagerLinkOperation]]): Required. The list of operations to perform on individual customer manager links. + + If a dict is provided, it must be of the same form as the protobuf + message :class:`~google.ads.googleads_v4.types.CustomerManagerLinkOperation` + retry (Optional[google.api_core.retry.Retry]): A retry object used + to retry requests. If ``None`` is specified, requests will not + be retried. + timeout (Optional[float]): The amount of time, in seconds, to wait + for the request to complete. Note that if ``retry`` is + specified, the timeout applies to each individual attempt. + metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata + that is provided to the method. + + Returns: + A :class:`~google.ads.googleads_v4.types.MutateCustomerManagerLinkResponse` instance. + + Raises: + google.api_core.exceptions.GoogleAPICallError: If the request + failed for any reason. + google.api_core.exceptions.RetryError: If the request failed due + to a retryable error and retry attempts failed. + ValueError: If the parameters are invalid. + """ + # Wrap the transport method to add retry and timeout logic. + if 'mutate_customer_manager_link' not in self._inner_api_calls: + self._inner_api_calls['mutate_customer_manager_link'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.mutate_customer_manager_link, + default_retry=self._method_configs['MutateCustomerManagerLink'].retry, + default_timeout=self._method_configs['MutateCustomerManagerLink'].timeout, + client_info=self._client_info, + ) + + request = customer_manager_link_service_pb2.MutateCustomerManagerLinkRequest( + customer_id=customer_id, + operations=operations, + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [('customer_id', customer_id)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata(routing_header) + metadata.append(routing_metadata) + + return self._inner_api_calls['mutate_customer_manager_link'](request, retry=retry, timeout=timeout, metadata=metadata) + + def move_manager_link( + self, + customer_id, + previous_customer_manager_link, + new_manager, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None): + """ + Moves a client customer to a new manager customer. + This simplifies the complex request that requires two operations to move + a client customer to a new manager. i.e: + 1. Update operation with Status INACTIVE (previous manager) and, + 2. Update operation with Status ACTIVE (new manager). + + Args: + customer_id (str): Required. The ID of the client customer that is being moved. + previous_customer_manager_link (str): Required. The resource name of the previous CustomerManagerLink. The + resource name has the form: + ``customers/{customer_id}/customerManagerLinks/{manager_customer_id}~{manager_link_id}`` + new_manager (str): Required. The resource name of the new manager customer that the client + wants to move to. Customer resource names have the format: + "customers/{customer\_id}" + retry (Optional[google.api_core.retry.Retry]): A retry object used + to retry requests. If ``None`` is specified, requests will not + be retried. + timeout (Optional[float]): The amount of time, in seconds, to wait + for the request to complete. Note that if ``retry`` is + specified, the timeout applies to each individual attempt. + metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata + that is provided to the method. + + Returns: + A :class:`~google.ads.googleads_v4.types.MoveManagerLinkResponse` instance. + + Raises: + google.api_core.exceptions.GoogleAPICallError: If the request + failed for any reason. + google.api_core.exceptions.RetryError: If the request failed due + to a retryable error and retry attempts failed. + ValueError: If the parameters are invalid. + """ + # Wrap the transport method to add retry and timeout logic. + if 'move_manager_link' not in self._inner_api_calls: + self._inner_api_calls['move_manager_link'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.move_manager_link, + default_retry=self._method_configs['MoveManagerLink'].retry, + default_timeout=self._method_configs['MoveManagerLink'].timeout, + client_info=self._client_info, + ) + + request = customer_manager_link_service_pb2.MoveManagerLinkRequest( + customer_id=customer_id, + previous_customer_manager_link=previous_customer_manager_link, + new_manager=new_manager, + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [('customer_id', customer_id)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata(routing_header) + metadata.append(routing_metadata) + + return self._inner_api_calls['move_manager_link'](request, retry=retry, timeout=timeout, metadata=metadata) diff --git a/google/ads/google_ads/v4/services/customer_manager_link_service_client_config.py b/google/ads/google_ads/v4/services/customer_manager_link_service_client_config.py new file mode 100644 index 000000000..32650289c --- /dev/null +++ b/google/ads/google_ads/v4/services/customer_manager_link_service_client_config.py @@ -0,0 +1,41 @@ +config = { + "interfaces": { + "google.ads.googleads.v4.services.CustomerManagerLinkService": { + "retry_codes": { + "idempotent": [ + "DEADLINE_EXCEEDED", + "UNAVAILABLE" + ], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 5000, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 3600000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 3600000, + "total_timeout_millis": 3600000 + } + }, + "methods": { + "GetCustomerManagerLink": { + "timeout_millis": 60000, + "retry_codes_name": "idempotent", + "retry_params_name": "default" + }, + "MutateCustomerManagerLink": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "MoveManagerLink": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + } + } + } + } +} diff --git a/google/ads/google_ads/v4/services/customer_negative_criterion_service_client.py b/google/ads/google_ads/v4/services/customer_negative_criterion_service_client.py new file mode 100644 index 000000000..52b9f9a45 --- /dev/null +++ b/google/ads/google_ads/v4/services/customer_negative_criterion_service_client.py @@ -0,0 +1,297 @@ +# -*- coding: utf-8 -*- +# +# 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. + +"""Accesses the google.ads.googleads.v4.services CustomerNegativeCriterionService API.""" + +import pkg_resources +import warnings + +from google.oauth2 import service_account +import google.api_core.gapic_v1.client_info +import google.api_core.gapic_v1.config +import google.api_core.gapic_v1.method +import google.api_core.gapic_v1.routing_header +import google.api_core.grpc_helpers +import google.api_core.path_template + +from google.ads.google_ads.v4.services import customer_negative_criterion_service_client_config +from google.ads.google_ads.v4.services.transports import customer_negative_criterion_service_grpc_transport +from google.ads.google_ads.v4.proto.services import customer_negative_criterion_service_pb2 + + + +_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( + 'google-ads', +).version + + +class CustomerNegativeCriterionServiceClient(object): + """Service to manage customer negative criteria.""" + + SERVICE_ADDRESS = 'googleads.googleapis.com:443' + """The default address of the service.""" + + # The name of the interface for this client. This is the key used to + # find the method configuration in the client_config dictionary. + _INTERFACE_NAME = 'google.ads.googleads.v4.services.CustomerNegativeCriterionService' + + + @classmethod + def from_service_account_file(cls, filename, *args, **kwargs): + """Creates an instance of this client using the provided credentials + file. + + Args: + filename (str): The path to the service account private key json + file. + args: Additional arguments to pass to the constructor. + kwargs: Additional arguments to pass to the constructor. + + Returns: + CustomerNegativeCriterionServiceClient: The constructed client. + """ + credentials = service_account.Credentials.from_service_account_file( + filename) + kwargs['credentials'] = credentials + return cls(*args, **kwargs) + + from_service_account_json = from_service_account_file + + + @classmethod + def customer_negative_criteria_path(cls, customer, customer_negative_criteria): + """Return a fully-qualified customer_negative_criteria string.""" + return google.api_core.path_template.expand( + 'customers/{customer}/customerNegativeCriteria/{customer_negative_criteria}', + customer=customer, + customer_negative_criteria=customer_negative_criteria, + ) + + def __init__(self, transport=None, channel=None, credentials=None, + client_config=None, client_info=None): + """Constructor. + + Args: + transport (Union[~.CustomerNegativeCriterionServiceGrpcTransport, + Callable[[~.Credentials, type], ~.CustomerNegativeCriterionServiceGrpcTransport]): A transport + instance, responsible for actually making the API calls. + The default transport uses the gRPC protocol. + This argument may also be a callable which returns a + transport instance. Callables will be sent the credentials + as the first argument and the default transport class as + the second argument. + channel (grpc.Channel): DEPRECATED. A ``Channel`` instance + through which to make calls. This argument is mutually exclusive + with ``credentials``; providing both will raise an exception. + credentials (google.auth.credentials.Credentials): The + authorization credentials to attach to requests. These + credentials identify this application to the service. If none + are specified, the client will attempt to ascertain the + credentials from the environment. + This argument is mutually exclusive with providing a + transport instance to ``transport``; doing so will raise + an exception. + client_config (dict): DEPRECATED. A dictionary of call options for + each method. If not specified, the default configuration is used. + client_info (google.api_core.gapic_v1.client_info.ClientInfo): + The client info used to send a user-agent string along with + API requests. If ``None``, then default info will be used. + Generally, you only need to set this if you're developing + your own client library. + """ + # Raise deprecation warnings for things we want to go away. + if client_config is not None: + warnings.warn('The `client_config` argument is deprecated.', + PendingDeprecationWarning, stacklevel=2) + else: + client_config = customer_negative_criterion_service_client_config.config + + if channel: + warnings.warn('The `channel` argument is deprecated; use ' + '`transport` instead.', + PendingDeprecationWarning, stacklevel=2) + + # Instantiate the transport. + # The transport is responsible for handling serialization and + # deserialization and actually sending data to the service. + if transport: + if callable(transport): + self.transport = transport( + credentials=credentials, + default_class=customer_negative_criterion_service_grpc_transport.CustomerNegativeCriterionServiceGrpcTransport, + ) + else: + if credentials: + raise ValueError( + 'Received both a transport instance and ' + 'credentials; these are mutually exclusive.' + ) + self.transport = transport + else: + self.transport = customer_negative_criterion_service_grpc_transport.CustomerNegativeCriterionServiceGrpcTransport( + address=self.SERVICE_ADDRESS, + channel=channel, + credentials=credentials, + ) + + if client_info is None: + client_info = google.api_core.gapic_v1.client_info.ClientInfo( + gapic_version=_GAPIC_LIBRARY_VERSION, + ) + else: + client_info.gapic_version = _GAPIC_LIBRARY_VERSION + self._client_info = client_info + + # Parse out the default settings for retry and timeout for each RPC + # from the client configuration. + # (Ordinarily, these are the defaults specified in the `*_config.py` + # file next to this one.) + self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( + client_config['interfaces'][self._INTERFACE_NAME], + ) + + # Save a dictionary of cached API call functions. + # These are the actual callables which invoke the proper + # transport methods, wrapped with `wrap_method` to add retry, + # timeout, and the like. + self._inner_api_calls = {} + + # Service calls + def get_customer_negative_criterion( + self, + resource_name, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None): + """ + Returns the requested criterion in full detail. + + Args: + resource_name (str): Required. The resource name of the criterion to fetch. + retry (Optional[google.api_core.retry.Retry]): A retry object used + to retry requests. If ``None`` is specified, requests will not + be retried. + timeout (Optional[float]): The amount of time, in seconds, to wait + for the request to complete. Note that if ``retry`` is + specified, the timeout applies to each individual attempt. + metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata + that is provided to the method. + + Returns: + A :class:`~google.ads.googleads_v4.types.CustomerNegativeCriterion` instance. + + Raises: + google.api_core.exceptions.GoogleAPICallError: If the request + failed for any reason. + google.api_core.exceptions.RetryError: If the request failed due + to a retryable error and retry attempts failed. + ValueError: If the parameters are invalid. + """ + # Wrap the transport method to add retry and timeout logic. + if 'get_customer_negative_criterion' not in self._inner_api_calls: + self._inner_api_calls['get_customer_negative_criterion'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.get_customer_negative_criterion, + default_retry=self._method_configs['GetCustomerNegativeCriterion'].retry, + default_timeout=self._method_configs['GetCustomerNegativeCriterion'].timeout, + client_info=self._client_info, + ) + + request = customer_negative_criterion_service_pb2.GetCustomerNegativeCriterionRequest( + resource_name=resource_name, + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [('resource_name', resource_name)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata(routing_header) + metadata.append(routing_metadata) + + return self._inner_api_calls['get_customer_negative_criterion'](request, retry=retry, timeout=timeout, metadata=metadata) + + def mutate_customer_negative_criteria( + self, + customer_id, + operations, + partial_failure=None, + validate_only=None, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None): + """ + Creates or removes criteria. Operation statuses are returned. + + Args: + customer_id (str): Required. The ID of the customer whose criteria are being modified. + operations (list[Union[dict, ~google.ads.googleads_v4.types.CustomerNegativeCriterionOperation]]): Required. The list of operations to perform on individual criteria. + + If a dict is provided, it must be of the same form as the protobuf + message :class:`~google.ads.googleads_v4.types.CustomerNegativeCriterionOperation` + partial_failure (bool): If true, successful operations will be carried out and invalid + operations will return errors. If false, all operations will be carried + out in one transaction if and only if they are all valid. + Default is false. + validate_only (bool): If true, the request is validated but not executed. Only errors are + returned, not results. + retry (Optional[google.api_core.retry.Retry]): A retry object used + to retry requests. If ``None`` is specified, requests will not + be retried. + timeout (Optional[float]): The amount of time, in seconds, to wait + for the request to complete. Note that if ``retry`` is + specified, the timeout applies to each individual attempt. + metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata + that is provided to the method. + + Returns: + A :class:`~google.ads.googleads_v4.types.MutateCustomerNegativeCriteriaResponse` instance. + + Raises: + google.api_core.exceptions.GoogleAPICallError: If the request + failed for any reason. + google.api_core.exceptions.RetryError: If the request failed due + to a retryable error and retry attempts failed. + ValueError: If the parameters are invalid. + """ + # Wrap the transport method to add retry and timeout logic. + if 'mutate_customer_negative_criteria' not in self._inner_api_calls: + self._inner_api_calls['mutate_customer_negative_criteria'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.mutate_customer_negative_criteria, + default_retry=self._method_configs['MutateCustomerNegativeCriteria'].retry, + default_timeout=self._method_configs['MutateCustomerNegativeCriteria'].timeout, + client_info=self._client_info, + ) + + request = customer_negative_criterion_service_pb2.MutateCustomerNegativeCriteriaRequest( + customer_id=customer_id, + operations=operations, + partial_failure=partial_failure, + validate_only=validate_only, + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [('customer_id', customer_id)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata(routing_header) + metadata.append(routing_metadata) + + return self._inner_api_calls['mutate_customer_negative_criteria'](request, retry=retry, timeout=timeout, metadata=metadata) diff --git a/google/ads/google_ads/v4/services/customer_negative_criterion_service_client_config.py b/google/ads/google_ads/v4/services/customer_negative_criterion_service_client_config.py new file mode 100644 index 000000000..85ff074da --- /dev/null +++ b/google/ads/google_ads/v4/services/customer_negative_criterion_service_client_config.py @@ -0,0 +1,36 @@ +config = { + "interfaces": { + "google.ads.googleads.v4.services.CustomerNegativeCriterionService": { + "retry_codes": { + "idempotent": [ + "DEADLINE_EXCEEDED", + "UNAVAILABLE" + ], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 5000, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 3600000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 3600000, + "total_timeout_millis": 3600000 + } + }, + "methods": { + "GetCustomerNegativeCriterion": { + "timeout_millis": 60000, + "retry_codes_name": "idempotent", + "retry_params_name": "default" + }, + "MutateCustomerNegativeCriteria": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + } + } + } + } +} diff --git a/google/ads/google_ads/v4/services/customer_service_client.py b/google/ads/google_ads/v4/services/customer_service_client.py new file mode 100644 index 000000000..60c4403ba --- /dev/null +++ b/google/ads/google_ads/v4/services/customer_service_client.py @@ -0,0 +1,403 @@ +# -*- coding: utf-8 -*- +# +# 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. + +"""Accesses the google.ads.googleads.v4.services CustomerService API.""" + +import pkg_resources +import warnings + +from google.oauth2 import service_account +import google.api_core.gapic_v1.client_info +import google.api_core.gapic_v1.config +import google.api_core.gapic_v1.method +import google.api_core.gapic_v1.routing_header +import google.api_core.grpc_helpers +import google.api_core.path_template + +from google.ads.google_ads.v4.services import customer_service_client_config +from google.ads.google_ads.v4.services.transports import customer_service_grpc_transport +from google.ads.google_ads.v4.proto.services import customer_service_pb2 + + + +_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( + 'google-ads', +).version + + +class CustomerServiceClient(object): + """Service to manage customers.""" + + SERVICE_ADDRESS = 'googleads.googleapis.com:443' + """The default address of the service.""" + + # The name of the interface for this client. This is the key used to + # find the method configuration in the client_config dictionary. + _INTERFACE_NAME = 'google.ads.googleads.v4.services.CustomerService' + + + @classmethod + def from_service_account_file(cls, filename, *args, **kwargs): + """Creates an instance of this client using the provided credentials + file. + + Args: + filename (str): The path to the service account private key json + file. + args: Additional arguments to pass to the constructor. + kwargs: Additional arguments to pass to the constructor. + + Returns: + CustomerServiceClient: The constructed client. + """ + credentials = service_account.Credentials.from_service_account_file( + filename) + kwargs['credentials'] = credentials + return cls(*args, **kwargs) + + from_service_account_json = from_service_account_file + + + @classmethod + def customer_path(cls, customer): + """Return a fully-qualified customer string.""" + return google.api_core.path_template.expand( + 'customers/{customer}', + customer=customer, + ) + + def __init__(self, transport=None, channel=None, credentials=None, + client_config=None, client_info=None): + """Constructor. + + Args: + transport (Union[~.CustomerServiceGrpcTransport, + Callable[[~.Credentials, type], ~.CustomerServiceGrpcTransport]): A transport + instance, responsible for actually making the API calls. + The default transport uses the gRPC protocol. + This argument may also be a callable which returns a + transport instance. Callables will be sent the credentials + as the first argument and the default transport class as + the second argument. + channel (grpc.Channel): DEPRECATED. A ``Channel`` instance + through which to make calls. This argument is mutually exclusive + with ``credentials``; providing both will raise an exception. + credentials (google.auth.credentials.Credentials): The + authorization credentials to attach to requests. These + credentials identify this application to the service. If none + are specified, the client will attempt to ascertain the + credentials from the environment. + This argument is mutually exclusive with providing a + transport instance to ``transport``; doing so will raise + an exception. + client_config (dict): DEPRECATED. A dictionary of call options for + each method. If not specified, the default configuration is used. + client_info (google.api_core.gapic_v1.client_info.ClientInfo): + The client info used to send a user-agent string along with + API requests. If ``None``, then default info will be used. + Generally, you only need to set this if you're developing + your own client library. + """ + # Raise deprecation warnings for things we want to go away. + if client_config is not None: + warnings.warn('The `client_config` argument is deprecated.', + PendingDeprecationWarning, stacklevel=2) + else: + client_config = customer_service_client_config.config + + if channel: + warnings.warn('The `channel` argument is deprecated; use ' + '`transport` instead.', + PendingDeprecationWarning, stacklevel=2) + + # Instantiate the transport. + # The transport is responsible for handling serialization and + # deserialization and actually sending data to the service. + if transport: + if callable(transport): + self.transport = transport( + credentials=credentials, + default_class=customer_service_grpc_transport.CustomerServiceGrpcTransport, + ) + else: + if credentials: + raise ValueError( + 'Received both a transport instance and ' + 'credentials; these are mutually exclusive.' + ) + self.transport = transport + else: + self.transport = customer_service_grpc_transport.CustomerServiceGrpcTransport( + address=self.SERVICE_ADDRESS, + channel=channel, + credentials=credentials, + ) + + if client_info is None: + client_info = google.api_core.gapic_v1.client_info.ClientInfo( + gapic_version=_GAPIC_LIBRARY_VERSION, + ) + else: + client_info.gapic_version = _GAPIC_LIBRARY_VERSION + self._client_info = client_info + + # Parse out the default settings for retry and timeout for each RPC + # from the client configuration. + # (Ordinarily, these are the defaults specified in the `*_config.py` + # file next to this one.) + self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( + client_config['interfaces'][self._INTERFACE_NAME], + ) + + # Save a dictionary of cached API call functions. + # These are the actual callables which invoke the proper + # transport methods, wrapped with `wrap_method` to add retry, + # timeout, and the like. + self._inner_api_calls = {} + + # Service calls + def get_customer( + self, + resource_name, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None): + """ + Returns the requested customer in full detail. + + Args: + resource_name (str): Required. The resource name of the customer to fetch. + retry (Optional[google.api_core.retry.Retry]): A retry object used + to retry requests. If ``None`` is specified, requests will not + be retried. + timeout (Optional[float]): The amount of time, in seconds, to wait + for the request to complete. Note that if ``retry`` is + specified, the timeout applies to each individual attempt. + metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata + that is provided to the method. + + Returns: + A :class:`~google.ads.googleads_v4.types.Customer` instance. + + Raises: + google.api_core.exceptions.GoogleAPICallError: If the request + failed for any reason. + google.api_core.exceptions.RetryError: If the request failed due + to a retryable error and retry attempts failed. + ValueError: If the parameters are invalid. + """ + # Wrap the transport method to add retry and timeout logic. + if 'get_customer' not in self._inner_api_calls: + self._inner_api_calls['get_customer'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.get_customer, + default_retry=self._method_configs['GetCustomer'].retry, + default_timeout=self._method_configs['GetCustomer'].timeout, + client_info=self._client_info, + ) + + request = customer_service_pb2.GetCustomerRequest( + resource_name=resource_name, + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [('resource_name', resource_name)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata(routing_header) + metadata.append(routing_metadata) + + return self._inner_api_calls['get_customer'](request, retry=retry, timeout=timeout, metadata=metadata) + + def mutate_customer( + self, + customer_id, + operation_, + validate_only=None, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None): + """ + Updates a customer. Operation statuses are returned. + + Args: + customer_id (str): Required. The ID of the customer being modified. + operation_ (Union[dict, ~google.ads.googleads_v4.types.CustomerOperation]): Required. The operation to perform on the customer + + If a dict is provided, it must be of the same form as the protobuf + message :class:`~google.ads.googleads_v4.types.CustomerOperation` + validate_only (bool): If true, the request is validated but not executed. Only errors are + returned, not results. + retry (Optional[google.api_core.retry.Retry]): A retry object used + to retry requests. If ``None`` is specified, requests will not + be retried. + timeout (Optional[float]): The amount of time, in seconds, to wait + for the request to complete. Note that if ``retry`` is + specified, the timeout applies to each individual attempt. + metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata + that is provided to the method. + + Returns: + A :class:`~google.ads.googleads_v4.types.MutateCustomerResponse` instance. + + Raises: + google.api_core.exceptions.GoogleAPICallError: If the request + failed for any reason. + google.api_core.exceptions.RetryError: If the request failed due + to a retryable error and retry attempts failed. + ValueError: If the parameters are invalid. + """ + # Wrap the transport method to add retry and timeout logic. + if 'mutate_customer' not in self._inner_api_calls: + self._inner_api_calls['mutate_customer'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.mutate_customer, + default_retry=self._method_configs['MutateCustomer'].retry, + default_timeout=self._method_configs['MutateCustomer'].timeout, + client_info=self._client_info, + ) + + request = customer_service_pb2.MutateCustomerRequest( + customer_id=customer_id, + operation=operation_, + validate_only=validate_only, + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [('customer_id', customer_id)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata(routing_header) + metadata.append(routing_metadata) + + return self._inner_api_calls['mutate_customer'](request, retry=retry, timeout=timeout, metadata=metadata) + + def list_accessible_customers( + self, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None): + """ + Returns resource names of customers directly accessible by the + user authenticating the call. + + Args: + retry (Optional[google.api_core.retry.Retry]): A retry object used + to retry requests. If ``None`` is specified, requests will not + be retried. + timeout (Optional[float]): The amount of time, in seconds, to wait + for the request to complete. Note that if ``retry`` is + specified, the timeout applies to each individual attempt. + metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata + that is provided to the method. + + Returns: + A :class:`~google.ads.googleads_v4.types.ListAccessibleCustomersResponse` instance. + + Raises: + google.api_core.exceptions.GoogleAPICallError: If the request + failed for any reason. + google.api_core.exceptions.RetryError: If the request failed due + to a retryable error and retry attempts failed. + """ + # Wrap the transport method to add retry and timeout logic. + if 'list_accessible_customers' not in self._inner_api_calls: + self._inner_api_calls['list_accessible_customers'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.list_accessible_customers, + default_retry=self._method_configs['ListAccessibleCustomers'].retry, + default_timeout=self._method_configs['ListAccessibleCustomers'].timeout, + client_info=self._client_info, + ) + + request = customer_service_pb2.ListAccessibleCustomersRequest() + return self._inner_api_calls['list_accessible_customers'](request, retry=retry, timeout=timeout, metadata=metadata) + + def create_customer_client( + self, + customer_id, + customer_client, + email_address=None, + access_role=None, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None): + """ + Creates a new client under manager. The new client customer is returned. + + Args: + customer_id (str): Required. The ID of the Manager under whom client customer is being created. + customer_client (Union[dict, ~google.ads.googleads_v4.types.Customer]): Required. The new client customer to create. The resource name on this customer + will be ignored. + + If a dict is provided, it must be of the same form as the protobuf + message :class:`~google.ads.googleads_v4.types.Customer` + email_address (Union[dict, ~google.ads.googleads_v4.types.StringValue]): Email address of the user who should be invited on the created client + customer. Accessible to whitelisted customers only. + + If a dict is provided, it must be of the same form as the protobuf + message :class:`~google.ads.googleads_v4.types.StringValue` + access_role (~google.ads.googleads_v4.types.AccessRole): The proposed role of user on the created client customer. + Accessible to whitelisted customers only. + retry (Optional[google.api_core.retry.Retry]): A retry object used + to retry requests. If ``None`` is specified, requests will not + be retried. + timeout (Optional[float]): The amount of time, in seconds, to wait + for the request to complete. Note that if ``retry`` is + specified, the timeout applies to each individual attempt. + metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata + that is provided to the method. + + Returns: + A :class:`~google.ads.googleads_v4.types.CreateCustomerClientResponse` instance. + + Raises: + google.api_core.exceptions.GoogleAPICallError: If the request + failed for any reason. + google.api_core.exceptions.RetryError: If the request failed due + to a retryable error and retry attempts failed. + ValueError: If the parameters are invalid. + """ + # Wrap the transport method to add retry and timeout logic. + if 'create_customer_client' not in self._inner_api_calls: + self._inner_api_calls['create_customer_client'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.create_customer_client, + default_retry=self._method_configs['CreateCustomerClient'].retry, + default_timeout=self._method_configs['CreateCustomerClient'].timeout, + client_info=self._client_info, + ) + + request = customer_service_pb2.CreateCustomerClientRequest( + customer_id=customer_id, + customer_client=customer_client, + email_address=email_address, + access_role=access_role, + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [('customer_id', customer_id)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata(routing_header) + metadata.append(routing_metadata) + + return self._inner_api_calls['create_customer_client'](request, retry=retry, timeout=timeout, metadata=metadata) diff --git a/google/ads/google_ads/v4/services/customer_service_client_config.py b/google/ads/google_ads/v4/services/customer_service_client_config.py new file mode 100644 index 000000000..1699128d3 --- /dev/null +++ b/google/ads/google_ads/v4/services/customer_service_client_config.py @@ -0,0 +1,46 @@ +config = { + "interfaces": { + "google.ads.googleads.v4.services.CustomerService": { + "retry_codes": { + "idempotent": [ + "DEADLINE_EXCEEDED", + "UNAVAILABLE" + ], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 5000, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 3600000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 3600000, + "total_timeout_millis": 3600000 + } + }, + "methods": { + "GetCustomer": { + "timeout_millis": 60000, + "retry_codes_name": "idempotent", + "retry_params_name": "default" + }, + "MutateCustomer": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "ListAccessibleCustomers": { + "timeout_millis": 60000, + "retry_codes_name": "idempotent", + "retry_params_name": "default" + }, + "CreateCustomerClient": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + } + } + } + } +} diff --git a/google/ads/google_ads/v1/services/detail_placement_view_service_client.py b/google/ads/google_ads/v4/services/detail_placement_view_service_client.py similarity index 78% rename from google/ads/google_ads/v1/services/detail_placement_view_service_client.py rename to google/ads/google_ads/v4/services/detail_placement_view_service_client.py index 869e51fe6..98c658664 100644 --- a/google/ads/google_ads/v1/services/detail_placement_view_service_client.py +++ b/google/ads/google_ads/v4/services/detail_placement_view_service_client.py @@ -13,7 +13,8 @@ # 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. -"""Accesses the google.ads.googleads.v1.services DetailPlacementViewService API.""" + +"""Accesses the google.ads.googleads.v4.services DetailPlacementViewService API.""" import pkg_resources import warnings @@ -22,15 +23,19 @@ import google.api_core.gapic_v1.client_info import google.api_core.gapic_v1.config import google.api_core.gapic_v1.method +import google.api_core.gapic_v1.routing_header import google.api_core.grpc_helpers import google.api_core.path_template -from google.ads.google_ads.v1.services import detail_placement_view_service_client_config -from google.ads.google_ads.v1.services.transports import detail_placement_view_service_grpc_transport -from google.ads.google_ads.v1.proto.services import detail_placement_view_service_pb2 +from google.ads.google_ads.v4.services import detail_placement_view_service_client_config +from google.ads.google_ads.v4.services.transports import detail_placement_view_service_grpc_transport +from google.ads.google_ads.v4.proto.services import detail_placement_view_service_pb2 + + _GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( - 'google-ads', ).version + 'google-ads', +).version class DetailPlacementViewServiceClient(object): @@ -41,7 +46,8 @@ class DetailPlacementViewServiceClient(object): # The name of the interface for this client. This is the key used to # find the method configuration in the client_config dictionary. - _INTERFACE_NAME = 'google.ads.googleads.v1.services.DetailPlacementViewService' + _INTERFACE_NAME = 'google.ads.googleads.v4.services.DetailPlacementViewService' + @classmethod def from_service_account_file(cls, filename, *args, **kwargs): @@ -64,6 +70,7 @@ def from_service_account_file(cls, filename, *args, **kwargs): from_service_account_json = from_service_account_file + @classmethod def detail_placement_view_path(cls, customer, detail_placement_view): """Return a fully-qualified detail_placement_view string.""" @@ -73,12 +80,8 @@ def detail_placement_view_path(cls, customer, detail_placement_view): detail_placement_view=detail_placement_view, ) - def __init__(self, - transport=None, - channel=None, - credentials=None, - client_config=None, - client_info=None): + def __init__(self, transport=None, channel=None, credentials=None, + client_config=None, client_info=None): """Constructor. Args: @@ -111,19 +114,15 @@ def __init__(self, """ # Raise deprecation warnings for things we want to go away. if client_config is not None: - warnings.warn( - 'The `client_config` argument is deprecated.', - PendingDeprecationWarning, - stacklevel=2) + warnings.warn('The `client_config` argument is deprecated.', + PendingDeprecationWarning, stacklevel=2) else: client_config = detail_placement_view_service_client_config.config if channel: - warnings.warn( - 'The `channel` argument is deprecated; use ' - '`transport` instead.', - PendingDeprecationWarning, - stacklevel=2) + warnings.warn('The `channel` argument is deprecated; use ' + '`transport` instead.', + PendingDeprecationWarning, stacklevel=2) # Instantiate the transport. # The transport is responsible for handling serialization and @@ -132,14 +131,14 @@ def __init__(self, if callable(transport): self.transport = transport( credentials=credentials, - default_class=detail_placement_view_service_grpc_transport. - DetailPlacementViewServiceGrpcTransport, + default_class=detail_placement_view_service_grpc_transport.DetailPlacementViewServiceGrpcTransport, ) else: if credentials: raise ValueError( 'Received both a transport instance and ' - 'credentials; these are mutually exclusive.') + 'credentials; these are mutually exclusive.' + ) self.transport = transport else: self.transport = detail_placement_view_service_grpc_transport.DetailPlacementViewServiceGrpcTransport( @@ -150,7 +149,8 @@ def __init__(self, if client_info is None: client_info = google.api_core.gapic_v1.client_info.ClientInfo( - gapic_version=_GAPIC_LIBRARY_VERSION, ) + gapic_version=_GAPIC_LIBRARY_VERSION, + ) else: client_info.gapic_version = _GAPIC_LIBRARY_VERSION self._client_info = client_info @@ -160,7 +160,8 @@ def __init__(self, # (Ordinarily, these are the defaults specified in the `*_config.py` # file next to this one.) self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( - client_config['interfaces'][self._INTERFACE_NAME], ) + client_config['interfaces'][self._INTERFACE_NAME], + ) # Save a dictionary of cached API call functions. # These are the actual callables which invoke the proper @@ -179,7 +180,7 @@ def get_detail_placement_view( Returns the requested Detail Placement view in full detail. Args: - resource_name (str): The resource name of the Detail Placement view to fetch. + resource_name (str): Required. The resource name of the Detail Placement view to fetch. retry (Optional[google.api_core.retry.Retry]): A retry object used to retry requests. If ``None`` is specified, requests will not be retried. @@ -190,7 +191,7 @@ def get_detail_placement_view( that is provided to the method. Returns: - A :class:`~google.ads.googleads_v1.types.DetailPlacementView` instance. + A :class:`~google.ads.googleads_v4.types.DetailPlacementView` instance. Raises: google.api_core.exceptions.GoogleAPICallError: If the request @@ -201,17 +202,25 @@ def get_detail_placement_view( """ # Wrap the transport method to add retry and timeout logic. if 'get_detail_placement_view' not in self._inner_api_calls: - self._inner_api_calls[ - 'get_detail_placement_view'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.get_detail_placement_view, - default_retry=self. - _method_configs['GetDetailPlacementView'].retry, - default_timeout=self. - _method_configs['GetDetailPlacementView'].timeout, - client_info=self._client_info, - ) + self._inner_api_calls['get_detail_placement_view'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.get_detail_placement_view, + default_retry=self._method_configs['GetDetailPlacementView'].retry, + default_timeout=self._method_configs['GetDetailPlacementView'].timeout, + client_info=self._client_info, + ) request = detail_placement_view_service_pb2.GetDetailPlacementViewRequest( - resource_name=resource_name, ) - return self._inner_api_calls['get_detail_placement_view']( - request, retry=retry, timeout=timeout, metadata=metadata) + resource_name=resource_name, + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [('resource_name', resource_name)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata(routing_header) + metadata.append(routing_metadata) + + return self._inner_api_calls['get_detail_placement_view'](request, retry=retry, timeout=timeout, metadata=metadata) diff --git a/google/ads/google_ads/v4/services/detail_placement_view_service_client_config.py b/google/ads/google_ads/v4/services/detail_placement_view_service_client_config.py new file mode 100644 index 000000000..74716ec61 --- /dev/null +++ b/google/ads/google_ads/v4/services/detail_placement_view_service_client_config.py @@ -0,0 +1,31 @@ +config = { + "interfaces": { + "google.ads.googleads.v4.services.DetailPlacementViewService": { + "retry_codes": { + "idempotent": [ + "DEADLINE_EXCEEDED", + "UNAVAILABLE" + ], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 5000, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 3600000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 3600000, + "total_timeout_millis": 3600000 + } + }, + "methods": { + "GetDetailPlacementView": { + "timeout_millis": 60000, + "retry_codes_name": "idempotent", + "retry_params_name": "default" + } + } + } + } +} diff --git a/google/ads/google_ads/v1/services/display_keyword_view_service_client.py b/google/ads/google_ads/v4/services/display_keyword_view_service_client.py similarity index 78% rename from google/ads/google_ads/v1/services/display_keyword_view_service_client.py rename to google/ads/google_ads/v4/services/display_keyword_view_service_client.py index 873702254..93040c7f3 100644 --- a/google/ads/google_ads/v1/services/display_keyword_view_service_client.py +++ b/google/ads/google_ads/v4/services/display_keyword_view_service_client.py @@ -13,7 +13,8 @@ # 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. -"""Accesses the google.ads.googleads.v1.services DisplayKeywordViewService API.""" + +"""Accesses the google.ads.googleads.v4.services DisplayKeywordViewService API.""" import pkg_resources import warnings @@ -22,15 +23,19 @@ import google.api_core.gapic_v1.client_info import google.api_core.gapic_v1.config import google.api_core.gapic_v1.method +import google.api_core.gapic_v1.routing_header import google.api_core.grpc_helpers import google.api_core.path_template -from google.ads.google_ads.v1.services import display_keyword_view_service_client_config -from google.ads.google_ads.v1.services.transports import display_keyword_view_service_grpc_transport -from google.ads.google_ads.v1.proto.services import display_keyword_view_service_pb2 +from google.ads.google_ads.v4.services import display_keyword_view_service_client_config +from google.ads.google_ads.v4.services.transports import display_keyword_view_service_grpc_transport +from google.ads.google_ads.v4.proto.services import display_keyword_view_service_pb2 + + _GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( - 'google-ads', ).version + 'google-ads', +).version class DisplayKeywordViewServiceClient(object): @@ -41,7 +46,8 @@ class DisplayKeywordViewServiceClient(object): # The name of the interface for this client. This is the key used to # find the method configuration in the client_config dictionary. - _INTERFACE_NAME = 'google.ads.googleads.v1.services.DisplayKeywordViewService' + _INTERFACE_NAME = 'google.ads.googleads.v4.services.DisplayKeywordViewService' + @classmethod def from_service_account_file(cls, filename, *args, **kwargs): @@ -64,6 +70,7 @@ def from_service_account_file(cls, filename, *args, **kwargs): from_service_account_json = from_service_account_file + @classmethod def display_keyword_view_path(cls, customer, display_keyword_view): """Return a fully-qualified display_keyword_view string.""" @@ -73,12 +80,8 @@ def display_keyword_view_path(cls, customer, display_keyword_view): display_keyword_view=display_keyword_view, ) - def __init__(self, - transport=None, - channel=None, - credentials=None, - client_config=None, - client_info=None): + def __init__(self, transport=None, channel=None, credentials=None, + client_config=None, client_info=None): """Constructor. Args: @@ -111,19 +114,15 @@ def __init__(self, """ # Raise deprecation warnings for things we want to go away. if client_config is not None: - warnings.warn( - 'The `client_config` argument is deprecated.', - PendingDeprecationWarning, - stacklevel=2) + warnings.warn('The `client_config` argument is deprecated.', + PendingDeprecationWarning, stacklevel=2) else: client_config = display_keyword_view_service_client_config.config if channel: - warnings.warn( - 'The `channel` argument is deprecated; use ' - '`transport` instead.', - PendingDeprecationWarning, - stacklevel=2) + warnings.warn('The `channel` argument is deprecated; use ' + '`transport` instead.', + PendingDeprecationWarning, stacklevel=2) # Instantiate the transport. # The transport is responsible for handling serialization and @@ -132,14 +131,14 @@ def __init__(self, if callable(transport): self.transport = transport( credentials=credentials, - default_class=display_keyword_view_service_grpc_transport. - DisplayKeywordViewServiceGrpcTransport, + default_class=display_keyword_view_service_grpc_transport.DisplayKeywordViewServiceGrpcTransport, ) else: if credentials: raise ValueError( 'Received both a transport instance and ' - 'credentials; these are mutually exclusive.') + 'credentials; these are mutually exclusive.' + ) self.transport = transport else: self.transport = display_keyword_view_service_grpc_transport.DisplayKeywordViewServiceGrpcTransport( @@ -150,7 +149,8 @@ def __init__(self, if client_info is None: client_info = google.api_core.gapic_v1.client_info.ClientInfo( - gapic_version=_GAPIC_LIBRARY_VERSION, ) + gapic_version=_GAPIC_LIBRARY_VERSION, + ) else: client_info.gapic_version = _GAPIC_LIBRARY_VERSION self._client_info = client_info @@ -160,7 +160,8 @@ def __init__(self, # (Ordinarily, these are the defaults specified in the `*_config.py` # file next to this one.) self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( - client_config['interfaces'][self._INTERFACE_NAME], ) + client_config['interfaces'][self._INTERFACE_NAME], + ) # Save a dictionary of cached API call functions. # These are the actual callables which invoke the proper @@ -179,7 +180,7 @@ def get_display_keyword_view( Returns the requested display keyword view in full detail. Args: - resource_name (str): The resource name of the display keyword view to fetch. + resource_name (str): Required. The resource name of the display keyword view to fetch. retry (Optional[google.api_core.retry.Retry]): A retry object used to retry requests. If ``None`` is specified, requests will not be retried. @@ -190,7 +191,7 @@ def get_display_keyword_view( that is provided to the method. Returns: - A :class:`~google.ads.googleads_v1.types.DisplayKeywordView` instance. + A :class:`~google.ads.googleads_v4.types.DisplayKeywordView` instance. Raises: google.api_core.exceptions.GoogleAPICallError: If the request @@ -201,17 +202,25 @@ def get_display_keyword_view( """ # Wrap the transport method to add retry and timeout logic. if 'get_display_keyword_view' not in self._inner_api_calls: - self._inner_api_calls[ - 'get_display_keyword_view'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.get_display_keyword_view, - default_retry=self. - _method_configs['GetDisplayKeywordView'].retry, - default_timeout=self. - _method_configs['GetDisplayKeywordView'].timeout, - client_info=self._client_info, - ) + self._inner_api_calls['get_display_keyword_view'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.get_display_keyword_view, + default_retry=self._method_configs['GetDisplayKeywordView'].retry, + default_timeout=self._method_configs['GetDisplayKeywordView'].timeout, + client_info=self._client_info, + ) request = display_keyword_view_service_pb2.GetDisplayKeywordViewRequest( - resource_name=resource_name, ) - return self._inner_api_calls['get_display_keyword_view']( - request, retry=retry, timeout=timeout, metadata=metadata) + resource_name=resource_name, + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [('resource_name', resource_name)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata(routing_header) + metadata.append(routing_metadata) + + return self._inner_api_calls['get_display_keyword_view'](request, retry=retry, timeout=timeout, metadata=metadata) diff --git a/google/ads/google_ads/v4/services/display_keyword_view_service_client_config.py b/google/ads/google_ads/v4/services/display_keyword_view_service_client_config.py new file mode 100644 index 000000000..32bc8a2ba --- /dev/null +++ b/google/ads/google_ads/v4/services/display_keyword_view_service_client_config.py @@ -0,0 +1,31 @@ +config = { + "interfaces": { + "google.ads.googleads.v4.services.DisplayKeywordViewService": { + "retry_codes": { + "idempotent": [ + "DEADLINE_EXCEEDED", + "UNAVAILABLE" + ], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 5000, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 3600000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 3600000, + "total_timeout_millis": 3600000 + } + }, + "methods": { + "GetDisplayKeywordView": { + "timeout_millis": 60000, + "retry_codes_name": "idempotent", + "retry_params_name": "default" + } + } + } + } +} diff --git a/google/ads/google_ads/v4/services/distance_view_service_client.py b/google/ads/google_ads/v4/services/distance_view_service_client.py new file mode 100644 index 000000000..27ced3b9c --- /dev/null +++ b/google/ads/google_ads/v4/services/distance_view_service_client.py @@ -0,0 +1,226 @@ +# -*- coding: utf-8 -*- +# +# 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. + +"""Accesses the google.ads.googleads.v4.services DistanceViewService API.""" + +import pkg_resources +import warnings + +from google.oauth2 import service_account +import google.api_core.gapic_v1.client_info +import google.api_core.gapic_v1.config +import google.api_core.gapic_v1.method +import google.api_core.gapic_v1.routing_header +import google.api_core.grpc_helpers +import google.api_core.path_template + +from google.ads.google_ads.v4.services import distance_view_service_client_config +from google.ads.google_ads.v4.services.transports import distance_view_service_grpc_transport +from google.ads.google_ads.v4.proto.services import distance_view_service_pb2 + + + +_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( + 'google-ads', +).version + + +class DistanceViewServiceClient(object): + """Service to fetch distance views.""" + + SERVICE_ADDRESS = 'googleads.googleapis.com:443' + """The default address of the service.""" + + # The name of the interface for this client. This is the key used to + # find the method configuration in the client_config dictionary. + _INTERFACE_NAME = 'google.ads.googleads.v4.services.DistanceViewService' + + + @classmethod + def from_service_account_file(cls, filename, *args, **kwargs): + """Creates an instance of this client using the provided credentials + file. + + Args: + filename (str): The path to the service account private key json + file. + args: Additional arguments to pass to the constructor. + kwargs: Additional arguments to pass to the constructor. + + Returns: + DistanceViewServiceClient: The constructed client. + """ + credentials = service_account.Credentials.from_service_account_file( + filename) + kwargs['credentials'] = credentials + return cls(*args, **kwargs) + + from_service_account_json = from_service_account_file + + + @classmethod + def distance_view_path(cls, customer, distance_view): + """Return a fully-qualified distance_view string.""" + return google.api_core.path_template.expand( + 'customers/{customer}/distanceViews/{distance_view}', + customer=customer, + distance_view=distance_view, + ) + + def __init__(self, transport=None, channel=None, credentials=None, + client_config=None, client_info=None): + """Constructor. + + Args: + transport (Union[~.DistanceViewServiceGrpcTransport, + Callable[[~.Credentials, type], ~.DistanceViewServiceGrpcTransport]): A transport + instance, responsible for actually making the API calls. + The default transport uses the gRPC protocol. + This argument may also be a callable which returns a + transport instance. Callables will be sent the credentials + as the first argument and the default transport class as + the second argument. + channel (grpc.Channel): DEPRECATED. A ``Channel`` instance + through which to make calls. This argument is mutually exclusive + with ``credentials``; providing both will raise an exception. + credentials (google.auth.credentials.Credentials): The + authorization credentials to attach to requests. These + credentials identify this application to the service. If none + are specified, the client will attempt to ascertain the + credentials from the environment. + This argument is mutually exclusive with providing a + transport instance to ``transport``; doing so will raise + an exception. + client_config (dict): DEPRECATED. A dictionary of call options for + each method. If not specified, the default configuration is used. + client_info (google.api_core.gapic_v1.client_info.ClientInfo): + The client info used to send a user-agent string along with + API requests. If ``None``, then default info will be used. + Generally, you only need to set this if you're developing + your own client library. + """ + # Raise deprecation warnings for things we want to go away. + if client_config is not None: + warnings.warn('The `client_config` argument is deprecated.', + PendingDeprecationWarning, stacklevel=2) + else: + client_config = distance_view_service_client_config.config + + if channel: + warnings.warn('The `channel` argument is deprecated; use ' + '`transport` instead.', + PendingDeprecationWarning, stacklevel=2) + + # Instantiate the transport. + # The transport is responsible for handling serialization and + # deserialization and actually sending data to the service. + if transport: + if callable(transport): + self.transport = transport( + credentials=credentials, + default_class=distance_view_service_grpc_transport.DistanceViewServiceGrpcTransport, + ) + else: + if credentials: + raise ValueError( + 'Received both a transport instance and ' + 'credentials; these are mutually exclusive.' + ) + self.transport = transport + else: + self.transport = distance_view_service_grpc_transport.DistanceViewServiceGrpcTransport( + address=self.SERVICE_ADDRESS, + channel=channel, + credentials=credentials, + ) + + if client_info is None: + client_info = google.api_core.gapic_v1.client_info.ClientInfo( + gapic_version=_GAPIC_LIBRARY_VERSION, + ) + else: + client_info.gapic_version = _GAPIC_LIBRARY_VERSION + self._client_info = client_info + + # Parse out the default settings for retry and timeout for each RPC + # from the client configuration. + # (Ordinarily, these are the defaults specified in the `*_config.py` + # file next to this one.) + self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( + client_config['interfaces'][self._INTERFACE_NAME], + ) + + # Save a dictionary of cached API call functions. + # These are the actual callables which invoke the proper + # transport methods, wrapped with `wrap_method` to add retry, + # timeout, and the like. + self._inner_api_calls = {} + + # Service calls + def get_distance_view( + self, + resource_name, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None): + """ + Returns the attributes of the requested distance view. + + Args: + resource_name (str): Required. The resource name of the distance view to fetch. + retry (Optional[google.api_core.retry.Retry]): A retry object used + to retry requests. If ``None`` is specified, requests will not + be retried. + timeout (Optional[float]): The amount of time, in seconds, to wait + for the request to complete. Note that if ``retry`` is + specified, the timeout applies to each individual attempt. + metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata + that is provided to the method. + + Returns: + A :class:`~google.ads.googleads_v4.types.DistanceView` instance. + + Raises: + google.api_core.exceptions.GoogleAPICallError: If the request + failed for any reason. + google.api_core.exceptions.RetryError: If the request failed due + to a retryable error and retry attempts failed. + ValueError: If the parameters are invalid. + """ + # Wrap the transport method to add retry and timeout logic. + if 'get_distance_view' not in self._inner_api_calls: + self._inner_api_calls['get_distance_view'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.get_distance_view, + default_retry=self._method_configs['GetDistanceView'].retry, + default_timeout=self._method_configs['GetDistanceView'].timeout, + client_info=self._client_info, + ) + + request = distance_view_service_pb2.GetDistanceViewRequest( + resource_name=resource_name, + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [('resource_name', resource_name)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata(routing_header) + metadata.append(routing_metadata) + + return self._inner_api_calls['get_distance_view'](request, retry=retry, timeout=timeout, metadata=metadata) diff --git a/google/ads/google_ads/v4/services/distance_view_service_client_config.py b/google/ads/google_ads/v4/services/distance_view_service_client_config.py new file mode 100644 index 000000000..89b7177f4 --- /dev/null +++ b/google/ads/google_ads/v4/services/distance_view_service_client_config.py @@ -0,0 +1,31 @@ +config = { + "interfaces": { + "google.ads.googleads.v4.services.DistanceViewService": { + "retry_codes": { + "idempotent": [ + "DEADLINE_EXCEEDED", + "UNAVAILABLE" + ], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 5000, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 3600000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 3600000, + "total_timeout_millis": 3600000 + } + }, + "methods": { + "GetDistanceView": { + "timeout_millis": 60000, + "retry_codes_name": "idempotent", + "retry_params_name": "default" + } + } + } + } +} diff --git a/google/ads/google_ads/v1/services/domain_category_service_client.py b/google/ads/google_ads/v4/services/domain_category_service_client.py similarity index 75% rename from google/ads/google_ads/v1/services/domain_category_service_client.py rename to google/ads/google_ads/v4/services/domain_category_service_client.py index 0610343d7..30a9ff45b 100644 --- a/google/ads/google_ads/v1/services/domain_category_service_client.py +++ b/google/ads/google_ads/v4/services/domain_category_service_client.py @@ -13,7 +13,8 @@ # 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. -"""Accesses the google.ads.googleads.v1.services DomainCategoryService API.""" + +"""Accesses the google.ads.googleads.v4.services DomainCategoryService API.""" import pkg_resources import warnings @@ -22,15 +23,19 @@ import google.api_core.gapic_v1.client_info import google.api_core.gapic_v1.config import google.api_core.gapic_v1.method +import google.api_core.gapic_v1.routing_header import google.api_core.grpc_helpers import google.api_core.path_template -from google.ads.google_ads.v1.services import domain_category_service_client_config -from google.ads.google_ads.v1.services.transports import domain_category_service_grpc_transport -from google.ads.google_ads.v1.proto.services import domain_category_service_pb2 +from google.ads.google_ads.v4.services import domain_category_service_client_config +from google.ads.google_ads.v4.services.transports import domain_category_service_grpc_transport +from google.ads.google_ads.v4.proto.services import domain_category_service_pb2 + + _GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( - 'google-ads', ).version + 'google-ads', +).version class DomainCategoryServiceClient(object): @@ -41,7 +46,8 @@ class DomainCategoryServiceClient(object): # The name of the interface for this client. This is the key used to # find the method configuration in the client_config dictionary. - _INTERFACE_NAME = 'google.ads.googleads.v1.services.DomainCategoryService' + _INTERFACE_NAME = 'google.ads.googleads.v4.services.DomainCategoryService' + @classmethod def from_service_account_file(cls, filename, *args, **kwargs): @@ -64,6 +70,7 @@ def from_service_account_file(cls, filename, *args, **kwargs): from_service_account_json = from_service_account_file + @classmethod def domain_category_path(cls, customer, domain_category): """Return a fully-qualified domain_category string.""" @@ -73,12 +80,8 @@ def domain_category_path(cls, customer, domain_category): domain_category=domain_category, ) - def __init__(self, - transport=None, - channel=None, - credentials=None, - client_config=None, - client_info=None): + def __init__(self, transport=None, channel=None, credentials=None, + client_config=None, client_info=None): """Constructor. Args: @@ -111,19 +114,15 @@ def __init__(self, """ # Raise deprecation warnings for things we want to go away. if client_config is not None: - warnings.warn( - 'The `client_config` argument is deprecated.', - PendingDeprecationWarning, - stacklevel=2) + warnings.warn('The `client_config` argument is deprecated.', + PendingDeprecationWarning, stacklevel=2) else: client_config = domain_category_service_client_config.config if channel: - warnings.warn( - 'The `channel` argument is deprecated; use ' - '`transport` instead.', - PendingDeprecationWarning, - stacklevel=2) + warnings.warn('The `channel` argument is deprecated; use ' + '`transport` instead.', + PendingDeprecationWarning, stacklevel=2) # Instantiate the transport. # The transport is responsible for handling serialization and @@ -132,14 +131,14 @@ def __init__(self, if callable(transport): self.transport = transport( credentials=credentials, - default_class=domain_category_service_grpc_transport. - DomainCategoryServiceGrpcTransport, + default_class=domain_category_service_grpc_transport.DomainCategoryServiceGrpcTransport, ) else: if credentials: raise ValueError( 'Received both a transport instance and ' - 'credentials; these are mutually exclusive.') + 'credentials; these are mutually exclusive.' + ) self.transport = transport else: self.transport = domain_category_service_grpc_transport.DomainCategoryServiceGrpcTransport( @@ -150,7 +149,8 @@ def __init__(self, if client_info is None: client_info = google.api_core.gapic_v1.client_info.ClientInfo( - gapic_version=_GAPIC_LIBRARY_VERSION, ) + gapic_version=_GAPIC_LIBRARY_VERSION, + ) else: client_info.gapic_version = _GAPIC_LIBRARY_VERSION self._client_info = client_info @@ -160,7 +160,8 @@ def __init__(self, # (Ordinarily, these are the defaults specified in the `*_config.py` # file next to this one.) self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( - client_config['interfaces'][self._INTERFACE_NAME], ) + client_config['interfaces'][self._INTERFACE_NAME], + ) # Save a dictionary of cached API call functions. # These are the actual callables which invoke the proper @@ -169,16 +170,17 @@ def __init__(self, self._inner_api_calls = {} # Service calls - def get_domain_category(self, - resource_name, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): + def get_domain_category( + self, + resource_name, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None): """ Returns the requested domain category. Args: - resource_name (str): Resource name of the domain category to fetch. + resource_name (str): Required. Resource name of the domain category to fetch. retry (Optional[google.api_core.retry.Retry]): A retry object used to retry requests. If ``None`` is specified, requests will not be retried. @@ -189,7 +191,7 @@ def get_domain_category(self, that is provided to the method. Returns: - A :class:`~google.ads.googleads_v1.types.DomainCategory` instance. + A :class:`~google.ads.googleads_v4.types.DomainCategory` instance. Raises: google.api_core.exceptions.GoogleAPICallError: If the request @@ -200,17 +202,25 @@ def get_domain_category(self, """ # Wrap the transport method to add retry and timeout logic. if 'get_domain_category' not in self._inner_api_calls: - self._inner_api_calls[ - 'get_domain_category'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.get_domain_category, - default_retry=self._method_configs['GetDomainCategory']. - retry, - default_timeout=self._method_configs['GetDomainCategory']. - timeout, - client_info=self._client_info, - ) + self._inner_api_calls['get_domain_category'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.get_domain_category, + default_retry=self._method_configs['GetDomainCategory'].retry, + default_timeout=self._method_configs['GetDomainCategory'].timeout, + client_info=self._client_info, + ) request = domain_category_service_pb2.GetDomainCategoryRequest( - resource_name=resource_name, ) - return self._inner_api_calls['get_domain_category']( - request, retry=retry, timeout=timeout, metadata=metadata) + resource_name=resource_name, + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [('resource_name', resource_name)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata(routing_header) + metadata.append(routing_metadata) + + return self._inner_api_calls['get_domain_category'](request, retry=retry, timeout=timeout, metadata=metadata) diff --git a/google/ads/google_ads/v4/services/domain_category_service_client_config.py b/google/ads/google_ads/v4/services/domain_category_service_client_config.py new file mode 100644 index 000000000..db4f358f4 --- /dev/null +++ b/google/ads/google_ads/v4/services/domain_category_service_client_config.py @@ -0,0 +1,31 @@ +config = { + "interfaces": { + "google.ads.googleads.v4.services.DomainCategoryService": { + "retry_codes": { + "idempotent": [ + "DEADLINE_EXCEEDED", + "UNAVAILABLE" + ], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 5000, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 3600000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 3600000, + "total_timeout_millis": 3600000 + } + }, + "methods": { + "GetDomainCategory": { + "timeout_millis": 60000, + "retry_codes_name": "idempotent", + "retry_params_name": "default" + } + } + } + } +} diff --git a/google/ads/google_ads/v1/services/dynamic_search_ads_search_term_view_service_client.py b/google/ads/google_ads/v4/services/dynamic_search_ads_search_term_view_service_client.py similarity index 75% rename from google/ads/google_ads/v1/services/dynamic_search_ads_search_term_view_service_client.py rename to google/ads/google_ads/v4/services/dynamic_search_ads_search_term_view_service_client.py index dc12923c3..f394b4a61 100644 --- a/google/ads/google_ads/v1/services/dynamic_search_ads_search_term_view_service_client.py +++ b/google/ads/google_ads/v4/services/dynamic_search_ads_search_term_view_service_client.py @@ -13,7 +13,8 @@ # 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. -"""Accesses the google.ads.googleads.v1.services DynamicSearchAdsSearchTermViewService API.""" + +"""Accesses the google.ads.googleads.v4.services DynamicSearchAdsSearchTermViewService API.""" import pkg_resources import warnings @@ -22,15 +23,19 @@ import google.api_core.gapic_v1.client_info import google.api_core.gapic_v1.config import google.api_core.gapic_v1.method +import google.api_core.gapic_v1.routing_header import google.api_core.grpc_helpers import google.api_core.path_template -from google.ads.google_ads.v1.services import dynamic_search_ads_search_term_view_service_client_config -from google.ads.google_ads.v1.services.transports import dynamic_search_ads_search_term_view_service_grpc_transport -from google.ads.google_ads.v1.proto.services import dynamic_search_ads_search_term_view_service_pb2 +from google.ads.google_ads.v4.services import dynamic_search_ads_search_term_view_service_client_config +from google.ads.google_ads.v4.services.transports import dynamic_search_ads_search_term_view_service_grpc_transport +from google.ads.google_ads.v4.proto.services import dynamic_search_ads_search_term_view_service_pb2 + + _GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( - 'google-ads', ).version + 'google-ads', +).version class DynamicSearchAdsSearchTermViewServiceClient(object): @@ -41,7 +46,8 @@ class DynamicSearchAdsSearchTermViewServiceClient(object): # The name of the interface for this client. This is the key used to # find the method configuration in the client_config dictionary. - _INTERFACE_NAME = 'google.ads.googleads.v1.services.DynamicSearchAdsSearchTermViewService' + _INTERFACE_NAME = 'google.ads.googleads.v4.services.DynamicSearchAdsSearchTermViewService' + @classmethod def from_service_account_file(cls, filename, *args, **kwargs): @@ -64,23 +70,18 @@ def from_service_account_file(cls, filename, *args, **kwargs): from_service_account_json = from_service_account_file + @classmethod - def dynamic_search_ads_search_term_view_path( - cls, customer, dynamic_search_ads_search_term_view): + def dynamic_search_ads_search_term_view_path(cls, customer, dynamic_search_ads_search_term_view): """Return a fully-qualified dynamic_search_ads_search_term_view string.""" return google.api_core.path_template.expand( 'customers/{customer}/dynamicSearchAdsSearchTermViews/{dynamic_search_ads_search_term_view}', customer=customer, - dynamic_search_ads_search_term_view= - dynamic_search_ads_search_term_view, + dynamic_search_ads_search_term_view=dynamic_search_ads_search_term_view, ) - def __init__(self, - transport=None, - channel=None, - credentials=None, - client_config=None, - client_info=None): + def __init__(self, transport=None, channel=None, credentials=None, + client_config=None, client_info=None): """Constructor. Args: @@ -113,19 +114,15 @@ def __init__(self, """ # Raise deprecation warnings for things we want to go away. if client_config is not None: - warnings.warn( - 'The `client_config` argument is deprecated.', - PendingDeprecationWarning, - stacklevel=2) + warnings.warn('The `client_config` argument is deprecated.', + PendingDeprecationWarning, stacklevel=2) else: client_config = dynamic_search_ads_search_term_view_service_client_config.config if channel: - warnings.warn( - 'The `channel` argument is deprecated; use ' - '`transport` instead.', - PendingDeprecationWarning, - stacklevel=2) + warnings.warn('The `channel` argument is deprecated; use ' + '`transport` instead.', + PendingDeprecationWarning, stacklevel=2) # Instantiate the transport. # The transport is responsible for handling serialization and @@ -134,15 +131,14 @@ def __init__(self, if callable(transport): self.transport = transport( credentials=credentials, - default_class= - dynamic_search_ads_search_term_view_service_grpc_transport. - DynamicSearchAdsSearchTermViewServiceGrpcTransport, + default_class=dynamic_search_ads_search_term_view_service_grpc_transport.DynamicSearchAdsSearchTermViewServiceGrpcTransport, ) else: if credentials: raise ValueError( 'Received both a transport instance and ' - 'credentials; these are mutually exclusive.') + 'credentials; these are mutually exclusive.' + ) self.transport = transport else: self.transport = dynamic_search_ads_search_term_view_service_grpc_transport.DynamicSearchAdsSearchTermViewServiceGrpcTransport( @@ -153,7 +149,8 @@ def __init__(self, if client_info is None: client_info = google.api_core.gapic_v1.client_info.ClientInfo( - gapic_version=_GAPIC_LIBRARY_VERSION, ) + gapic_version=_GAPIC_LIBRARY_VERSION, + ) else: client_info.gapic_version = _GAPIC_LIBRARY_VERSION self._client_info = client_info @@ -163,7 +160,8 @@ def __init__(self, # (Ordinarily, these are the defaults specified in the `*_config.py` # file next to this one.) self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( - client_config['interfaces'][self._INTERFACE_NAME], ) + client_config['interfaces'][self._INTERFACE_NAME], + ) # Save a dictionary of cached API call functions. # These are the actual callables which invoke the proper @@ -182,7 +180,7 @@ def get_dynamic_search_ads_search_term_view( Returns the requested dynamic search ads search term view in full detail. Args: - resource_name (str): The resource name of the dynamic search ads search term view to fetch. + resource_name (str): Required. The resource name of the dynamic search ads search term view to fetch. retry (Optional[google.api_core.retry.Retry]): A retry object used to retry requests. If ``None`` is specified, requests will not be retried. @@ -193,7 +191,7 @@ def get_dynamic_search_ads_search_term_view( that is provided to the method. Returns: - A :class:`~google.ads.googleads_v1.types.DynamicSearchAdsSearchTermView` instance. + A :class:`~google.ads.googleads_v4.types.DynamicSearchAdsSearchTermView` instance. Raises: google.api_core.exceptions.GoogleAPICallError: If the request @@ -204,18 +202,25 @@ def get_dynamic_search_ads_search_term_view( """ # Wrap the transport method to add retry and timeout logic. if 'get_dynamic_search_ads_search_term_view' not in self._inner_api_calls: - self._inner_api_calls[ - 'get_dynamic_search_ads_search_term_view'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.get_dynamic_search_ads_search_term_view, - default_retry=self. - _method_configs['GetDynamicSearchAdsSearchTermView'].retry, - default_timeout=self._method_configs[ - 'GetDynamicSearchAdsSearchTermView'].timeout, - client_info=self._client_info, - ) + self._inner_api_calls['get_dynamic_search_ads_search_term_view'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.get_dynamic_search_ads_search_term_view, + default_retry=self._method_configs['GetDynamicSearchAdsSearchTermView'].retry, + default_timeout=self._method_configs['GetDynamicSearchAdsSearchTermView'].timeout, + client_info=self._client_info, + ) request = dynamic_search_ads_search_term_view_service_pb2.GetDynamicSearchAdsSearchTermViewRequest( - resource_name=resource_name, ) - return self._inner_api_calls[ - 'get_dynamic_search_ads_search_term_view']( - request, retry=retry, timeout=timeout, metadata=metadata) + resource_name=resource_name, + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [('resource_name', resource_name)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata(routing_header) + metadata.append(routing_metadata) + + return self._inner_api_calls['get_dynamic_search_ads_search_term_view'](request, retry=retry, timeout=timeout, metadata=metadata) diff --git a/google/ads/google_ads/v4/services/dynamic_search_ads_search_term_view_service_client_config.py b/google/ads/google_ads/v4/services/dynamic_search_ads_search_term_view_service_client_config.py new file mode 100644 index 000000000..774c460eb --- /dev/null +++ b/google/ads/google_ads/v4/services/dynamic_search_ads_search_term_view_service_client_config.py @@ -0,0 +1,31 @@ +config = { + "interfaces": { + "google.ads.googleads.v4.services.DynamicSearchAdsSearchTermViewService": { + "retry_codes": { + "idempotent": [ + "DEADLINE_EXCEEDED", + "UNAVAILABLE" + ], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 5000, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 3600000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 3600000, + "total_timeout_millis": 3600000 + } + }, + "methods": { + "GetDynamicSearchAdsSearchTermView": { + "timeout_millis": 60000, + "retry_codes_name": "idempotent", + "retry_params_name": "default" + } + } + } + } +} diff --git a/google/ads/google_ads/v1/services/enums.py b/google/ads/google_ads/v4/services/enums.py similarity index 79% rename from google/ads/google_ads/v1/services/enums.py rename to google/ads/google_ads/v4/services/enums.py index ba92439d6..52802149b 100644 --- a/google/ads/google_ads/v1/services/enums.py +++ b/google/ads/google_ads/v4/services/enums.py @@ -13,12 +13,139 @@ # 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. + """Wrappers for protocol buffer enum types.""" import enum +from textwrap import dedent + + +class _CreateEnumTypeUponFirstAccess(object): + r"""A lazy container class for a single capitalized Enum attribute. + It will exec code to define the Enum type within the instance dict upon + first access. Reducing import time for a module full of Enum definitions. + Example: + >>> class ThingHolder(_CreateEnumTypeUponFirstAccess): + ... Thing = '''\ + ... Thing = '''\ +class Thing(enum.IntEnum): + ... GOOD = 0 + ... BAD = 1 + ... UNKNOWN = 2 + ... ''' + ... + >>> ThingHolder = ThingHolder() # The instance enables the magic. + This avoids executing the slow Python enum.Enum metaclass construction code + at import time. Instead, the first time ThingHolder.Thing is accessed, the + code to define the enum type will be run and replace the Thing attribute on + ThingHolder with the instantiated Thing type. + >>> ThingHolder + + >>> dir(ThingHolder) + ['Thing'] + >>> ThingHolder.Thing.UNKNOWN # Triggers the actual creation of Thing. + + >>> ThingHolder.Thing.GOOD + + >>> ThingHolder + + The import time enum type creation cost is deferred. The runtime cost upon + first access will be a bit higher. Under the assumption that most + applications never access the majority of the enum types, the reduction in + startup time makes for a nicer experience. + """ + def __getattribute__(self, name): + # We use type(self) instead of self.__class__ to avoid recursing. + names = [k for k in type(self).__dict__ if k[0].isupper()] + assert len(names) <= 1, names + if not names: + # Race condition, another thread finished executing this before us. + return getattr(self, enum_type_name) + enum_type_name = names[0] + if name == enum_type_name: + try: + class_def_src = dedent(getattr(type(self), enum_type_name)) + except AttributeError: + # The only way this should happen is if another thread was also + # executing this method at the same time and finished defining + # the enum class on our instance and deleting its source from + # the class before our own call got this far. + # Assume our method is gone and revert to a regular instance + # attribute lookup to find our class. + assert not hasattr(type(self), '__getattribute__') + return getattr(self, enum_type_name) + if not isinstance(class_def_src, str): + # If the class attribute has been replaced with something else, + # another must have already executed it and created our type. + return class_def_src + + # Here 'class_def_src' will be the stringified definition of the + # inner enum. This assertion checks that the string starts with + # 'class AccessRole(enum.' if, for example, the outer class name + # is AccessRoleEnum. This follows the pattern for the majority of + # our API enums, where the outer message is FooBarEnum and the inner + # enum is named FooBar. In a few cases enums are defined on + # Operations, for example 'FeedAttributeOperation', and the inner + # enum is always called 'Operator' so this assertion also allows the + # pattern 'class Operator(enum.'. + assertion = class_def_src.startswith( + 'class %s(enum.' % enum_type_name) or class_def_src.startswith( + 'class Operator(enum.') + assert assertion, 'Expected ' + enum_type_name + # It is possible for multiple threads to wind up doing this exec at + # the same time. That'll create multiple identical types and assign + # them into the instance dict under the same name. One of them will + # "win" the final spot in class dict. BUT each simultaneous + # "first" call may wind up returning an "obsolete" type... Not + # great, but as they're IntEnum classes, nobody should be using + # the class type in type checks. Add a lock if this bothers you. + exec(class_def_src, {'enum': enum}, + object.__getattribute__(self, '__dict__')) + # We've done our job, get out of the way forever. + type(self).__getattribute__ = object.__getattribute__ + enum_type = getattr(self, enum_type_name) + # No need for the enum class source anymore. + ###delattr(type(self), enum_type_name) + + # ... + # These two statements are overkill and need rewriting if this base + # class were moved to a utility library or used from outside this + # file as globals() refers to the scope in the current file. If + # you get rid of these, uncomment the delattr above to still + # release some memory. + setattr(type(self), enum_type_name, enum_type) + # Get rid of our instance singleton now that its job is done. + # (obsoletes the reassigning of __getattribute__ above) + globals()[type(self).__name__] = type(self) + # ... + + return enum_type + else: + raise AttributeError('%r has no attribute %r' % + (type(self).__name__, name)) + +class AccessInvitationErrorEnum(_CreateEnumTypeUponFirstAccess): + AccessInvitationError = '''\ + class AccessInvitationError(enum.IntEnum): + """ + Enum describing possible AccessInvitation errors. + + Attributes: + UNSPECIFIED (int): Enum unspecified. + UNKNOWN (int): The received error code is not known in this version. + INVALID_EMAIL_ADDRESS (int): The email address is invalid for sending an invitation. + EMAIL_ADDRESS_ALREADY_HAS_ACCESS (int): Email address already has access to this customer. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + INVALID_EMAIL_ADDRESS = 2 + EMAIL_ADDRESS_ALREADY_HAS_ACCESS = 3 +''' +AccessInvitationErrorEnum = AccessInvitationErrorEnum() # For __getattribute__ -class AccessReasonEnum(object): +class AccessReasonEnum(_CreateEnumTypeUponFirstAccess): + AccessReason = '''\ class AccessReason(enum.IntEnum): """ Enum describing possible access reasons. @@ -39,9 +166,34 @@ class AccessReason(enum.IntEnum): LICENSED = 4 SUBSCRIBED = 5 AFFILIATED = 6 +''' +AccessReasonEnum = AccessReasonEnum() # For __getattribute__ + + +class AccessRoleEnum(_CreateEnumTypeUponFirstAccess): + AccessRole = '''\ + class AccessRole(enum.IntEnum): + """ + Possible access role of a user. + + Attributes: + UNSPECIFIED (int): Not specified. + UNKNOWN (int): Used for return value only. Represents value unknown in this version. + ADMIN (int): Owns its account and can control the addition of other users. + STANDARD (int): Can modify campaigns, but can't affect other users. + READ_ONLY (int): Can view campaigns and account changes, but cannot make edits. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + ADMIN = 2 + STANDARD = 3 + READ_ONLY = 4 +''' +AccessRoleEnum = AccessRoleEnum() # For __getattribute__ -class AccountBudgetProposalErrorEnum(object): +class AccountBudgetProposalErrorEnum(_CreateEnumTypeUponFirstAccess): + AccountBudgetProposalError = '''\ class AccountBudgetProposalError(enum.IntEnum): """ Enum describing possible account budget proposal errors. @@ -75,6 +227,10 @@ class AccountBudgetProposalError(enum.IntEnum): setup. NOT_AUTHORIZED (int): The user is not authorized to mutate budgets for the given billing setup. INVALID_BILLING_SETUP (int): Mutates are not allowed for the given billing setup. + OVERLAPS_EXISTING_BUDGET (int): Budget creation failed as it overlaps with an pending budget proposal + or an approved budget. + CANNOT_CREATE_BUDGET_THROUGH_API (int): The control setting in user's payments profile doesn't allow budget + creation through API. Log in to Google Ads to create budget. """ UNSPECIFIED = 0 UNKNOWN = 1 @@ -100,9 +256,14 @@ class AccountBudgetProposalError(enum.IntEnum): BUDGET_DATE_RANGE_INCOMPATIBLE_WITH_BILLING_SETUP = 21 NOT_AUTHORIZED = 22 INVALID_BILLING_SETUP = 23 + OVERLAPS_EXISTING_BUDGET = 24 + CANNOT_CREATE_BUDGET_THROUGH_API = 25 +''' +AccountBudgetProposalErrorEnum = AccountBudgetProposalErrorEnum() # For __getattribute__ -class AccountBudgetProposalStatusEnum(object): +class AccountBudgetProposalStatusEnum(_CreateEnumTypeUponFirstAccess): + AccountBudgetProposalStatus = '''\ class AccountBudgetProposalStatus(enum.IntEnum): """ The possible statuses of an AccountBudgetProposal. @@ -127,9 +288,12 @@ class AccountBudgetProposalStatus(enum.IntEnum): APPROVED = 4 CANCELLED = 5 REJECTED = 6 +''' +AccountBudgetProposalStatusEnum = AccountBudgetProposalStatusEnum() # For __getattribute__ -class AccountBudgetProposalTypeEnum(object): +class AccountBudgetProposalTypeEnum(_CreateEnumTypeUponFirstAccess): + AccountBudgetProposalType = '''\ class AccountBudgetProposalType(enum.IntEnum): """ The possible types of an AccountBudgetProposal. @@ -148,9 +312,12 @@ class AccountBudgetProposalType(enum.IntEnum): UPDATE = 3 END = 4 REMOVE = 5 +''' +AccountBudgetProposalTypeEnum = AccountBudgetProposalTypeEnum() # For __getattribute__ -class AccountBudgetStatusEnum(object): +class AccountBudgetStatusEnum(_CreateEnumTypeUponFirstAccess): + AccountBudgetStatus = '''\ class AccountBudgetStatus(enum.IntEnum): """ The possible statuses of an AccountBudget. @@ -167,9 +334,33 @@ class AccountBudgetStatus(enum.IntEnum): PENDING = 2 APPROVED = 3 CANCELLED = 4 +''' +AccountBudgetStatusEnum = AccountBudgetStatusEnum() # For __getattribute__ + + +class AccountLinkStatusEnum(_CreateEnumTypeUponFirstAccess): + AccountLinkStatus = '''\ + class AccountLinkStatus(enum.IntEnum): + """ + Describes the possible statuses for a link between a Google Ads customer + and another account. + + Attributes: + UNSPECIFIED (int): Not specified. + UNKNOWN (int): Used for return value only. Represents value unknown in this version. + ENABLED (int): The link is enabled. + REMOVED (int): The link is removed/disabled. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + ENABLED = 2 + REMOVED = 3 +''' +AccountLinkStatusEnum = AccountLinkStatusEnum() # For __getattribute__ -class AdCustomizerErrorEnum(object): +class AdCustomizerErrorEnum(_CreateEnumTypeUponFirstAccess): + AdCustomizerError = '''\ class AdCustomizerError(enum.IntEnum): """ Enum describing possible ad customizer errors. @@ -190,9 +381,12 @@ class AdCustomizerError(enum.IntEnum): COUNTDOWN_INVALID_LOCALE = 4 COUNTDOWN_INVALID_START_DAYS_BEFORE = 5 UNKNOWN_USER_LIST = 6 +''' +AdCustomizerErrorEnum = AdCustomizerErrorEnum() # For __getattribute__ -class AdCustomizerPlaceholderFieldEnum(object): +class AdCustomizerPlaceholderFieldEnum(_CreateEnumTypeUponFirstAccess): + AdCustomizerPlaceholderField = '''\ class AdCustomizerPlaceholderField(enum.IntEnum): """ Possible values for Ad Customizers placeholder fields. @@ -211,9 +405,12 @@ class AdCustomizerPlaceholderField(enum.IntEnum): PRICE = 3 DATE = 4 STRING = 5 +''' +AdCustomizerPlaceholderFieldEnum = AdCustomizerPlaceholderFieldEnum() # For __getattribute__ -class AdErrorEnum(object): +class AdErrorEnum(_CreateEnumTypeUponFirstAccess): + AdError = '''\ class AdError(enum.IntEnum): """ Enum describing possible ad errors. @@ -374,6 +571,27 @@ class AdError(enum.IntEnum): ads. Please see https://support.google.com/google-ads/answer/7412639. MISSING_IMAGE_OR_MEDIA_BUNDLE (int): Either an image or a media bundle is required in a display upload ad. PRODUCT_TYPE_NOT_SUPPORTED_IN_THIS_CAMPAIGN (int): The display upload product type is not supported in this campaign. + PLACEHOLDER_CANNOT_HAVE_EMPTY_DEFAULT_VALUE (int): The default value of an ad placeholder can not be the empty string. + PLACEHOLDER_COUNTDOWN_FUNCTION_CANNOT_HAVE_DEFAULT_VALUE (int): Ad placeholders with countdown functions must not have a default value. + PLACEHOLDER_DEFAULT_VALUE_MISSING (int): A previous ad placeholder that had a default value was found which means + that all (non-countdown) placeholders must have a default value. This + ad placeholder does not have a default value. + UNEXPECTED_PLACEHOLDER_DEFAULT_VALUE (int): A previous ad placeholder that did not have a default value was found + which means that no placeholders may have a default value. This + ad placeholder does have a default value. + AD_CUSTOMIZERS_MAY_NOT_BE_ADJACENT (int): Two ad customizers may not be directly adjacent in an ad text. They must + be separated by at least one character. + UPDATING_AD_WITH_NO_ENABLED_ASSOCIATION (int): The ad is not associated with any enabled AdGroupAd, and cannot be + updated. + TOO_MANY_AD_CUSTOMIZERS (int): Too many ad customizers in one asset. + INVALID_AD_CUSTOMIZER_FORMAT (int): The ad customizer tag is recognized, but the format is invalid. + NESTED_AD_CUSTOMIZER_SYNTAX (int): Customizer tags cannot be nested. + UNSUPPORTED_AD_CUSTOMIZER_SYNTAX (int): The ad customizer syntax used in the ad is not supported. + UNPAIRED_BRACE_IN_AD_CUSTOMIZER_TAG (int): There exists unpaired brace in the ad customizer tag. + MORE_THAN_ONE_COUNTDOWN_TAG_TYPE_EXISTS (int): More than one type of countdown tag exists among all text lines. + DATE_TIME_IN_COUNTDOWN_TAG_IS_INVALID (int): Date time in the countdown tag is invalid. + DATE_TIME_IN_COUNTDOWN_TAG_IS_PAST (int): Date time in the countdown tag is in the past. + UNRECOGNIZED_AD_CUSTOMIZER_TAG_FOUND (int): Cannot recognize the ad customizer tag. """ UNSPECIFIED = 0 UNKNOWN = 1 @@ -506,9 +724,27 @@ class AdError(enum.IntEnum): CUSTOMER_CONSENT_FOR_CALL_RECORDING_REQUIRED = 131 MISSING_IMAGE_OR_MEDIA_BUNDLE = 132 PRODUCT_TYPE_NOT_SUPPORTED_IN_THIS_CAMPAIGN = 133 - - -class AdGroupAdErrorEnum(object): + PLACEHOLDER_CANNOT_HAVE_EMPTY_DEFAULT_VALUE = 134 + PLACEHOLDER_COUNTDOWN_FUNCTION_CANNOT_HAVE_DEFAULT_VALUE = 135 + PLACEHOLDER_DEFAULT_VALUE_MISSING = 136 + UNEXPECTED_PLACEHOLDER_DEFAULT_VALUE = 137 + AD_CUSTOMIZERS_MAY_NOT_BE_ADJACENT = 138 + UPDATING_AD_WITH_NO_ENABLED_ASSOCIATION = 139 + TOO_MANY_AD_CUSTOMIZERS = 141 + INVALID_AD_CUSTOMIZER_FORMAT = 142 + NESTED_AD_CUSTOMIZER_SYNTAX = 143 + UNSUPPORTED_AD_CUSTOMIZER_SYNTAX = 144 + UNPAIRED_BRACE_IN_AD_CUSTOMIZER_TAG = 145 + MORE_THAN_ONE_COUNTDOWN_TAG_TYPE_EXISTS = 146 + DATE_TIME_IN_COUNTDOWN_TAG_IS_INVALID = 147 + DATE_TIME_IN_COUNTDOWN_TAG_IS_PAST = 148 + UNRECOGNIZED_AD_CUSTOMIZER_TAG_FOUND = 149 +''' +AdErrorEnum = AdErrorEnum() # For __getattribute__ + + +class AdGroupAdErrorEnum(_CreateEnumTypeUponFirstAccess): + AdGroupAdError = '''\ class AdGroupAdError(enum.IntEnum): """ Enum describing possible ad group ad errors. @@ -526,6 +762,8 @@ class AdGroupAdError(enum.IntEnum): instead. EMPTY_FIELD (int): A required field was not specified or is an empty string. RESOURCE_REFERENCED_IN_MULTIPLE_OPS (int): An ad may only be modified once per call + AD_TYPE_CANNOT_BE_PAUSED (int): AdGroupAds with the given ad type cannot be paused. + AD_TYPE_CANNOT_BE_REMOVED (int): AdGroupAds with the given ad type cannot be removed. """ UNSPECIFIED = 0 UNKNOWN = 1 @@ -537,9 +775,14 @@ class AdGroupAdError(enum.IntEnum): CANNOT_CREATE_TEXT_ADS = 7 EMPTY_FIELD = 8 RESOURCE_REFERENCED_IN_MULTIPLE_OPS = 9 + AD_TYPE_CANNOT_BE_PAUSED = 10 + AD_TYPE_CANNOT_BE_REMOVED = 11 +''' +AdGroupAdErrorEnum = AdGroupAdErrorEnum() # For __getattribute__ -class AdGroupAdRotationModeEnum(object): +class AdGroupAdRotationModeEnum(_CreateEnumTypeUponFirstAccess): + AdGroupAdRotationMode = '''\ class AdGroupAdRotationMode(enum.IntEnum): """ The possible ad rotation modes of an ad group. @@ -556,9 +799,12 @@ class AdGroupAdRotationMode(enum.IntEnum): UNKNOWN = 1 OPTIMIZE = 2 ROTATE_FOREVER = 3 +''' +AdGroupAdRotationModeEnum = AdGroupAdRotationModeEnum() # For __getattribute__ -class AdGroupAdStatusEnum(object): +class AdGroupAdStatusEnum(_CreateEnumTypeUponFirstAccess): + AdGroupAdStatus = '''\ class AdGroupAdStatus(enum.IntEnum): """ The possible statuses of an AdGroupAd. @@ -577,9 +823,12 @@ class AdGroupAdStatus(enum.IntEnum): ENABLED = 2 PAUSED = 3 REMOVED = 4 +''' +AdGroupAdStatusEnum = AdGroupAdStatusEnum() # For __getattribute__ -class AdGroupBidModifierErrorEnum(object): +class AdGroupBidModifierErrorEnum(_CreateEnumTypeUponFirstAccess): + AdGroupBidModifierError = '''\ class AdGroupBidModifierError(enum.IntEnum): """ Enum describing possible ad group bid modifier errors. @@ -595,9 +844,12 @@ class AdGroupBidModifierError(enum.IntEnum): UNKNOWN = 1 CRITERION_ID_NOT_SUPPORTED = 2 CANNOT_OVERRIDE_OPTED_OUT_CAMPAIGN_CRITERION_BID_MODIFIER = 3 +''' +AdGroupBidModifierErrorEnum = AdGroupBidModifierErrorEnum() # For __getattribute__ -class AdGroupCriterionApprovalStatusEnum(object): +class AdGroupCriterionApprovalStatusEnum(_CreateEnumTypeUponFirstAccess): + AdGroupCriterionApprovalStatus = '''\ class AdGroupCriterionApprovalStatus(enum.IntEnum): """ Enumerates AdGroupCriterion approval statuses. @@ -616,9 +868,12 @@ class AdGroupCriterionApprovalStatus(enum.IntEnum): DISAPPROVED = 3 PENDING_REVIEW = 4 UNDER_REVIEW = 5 +''' +AdGroupCriterionApprovalStatusEnum = AdGroupCriterionApprovalStatusEnum() # For __getattribute__ -class AdGroupCriterionErrorEnum(object): +class AdGroupCriterionErrorEnum(_CreateEnumTypeUponFirstAccess): + AdGroupCriterionError = '''\ class AdGroupCriterionError(enum.IntEnum): """ Enum describing possible ad group criterion errors. @@ -663,16 +918,6 @@ class AdGroupCriterionError(enum.IntEnum): CANNOT_SET_BOTH_DESTINATION_URL_AND_TRACKING_URL_TEMPLATE (int): Cannot set both destination url and tracking url template. FINAL_URLS_NOT_SUPPORTED_FOR_CRITERION_TYPE (int): Final urls are not supported for this criterion type. FINAL_MOBILE_URLS_NOT_SUPPORTED_FOR_CRITERION_TYPE (int): Final mobile urls are not supported for this criterion type. - INVALID_LISTING_GROUP_HIERARCHY (int): Ad group is invalid due to the listing groups it contains. - LISTING_GROUP_UNIT_CANNOT_HAVE_CHILDREN (int): Listing group unit cannot have children. - LISTING_GROUP_SUBDIVISION_REQUIRES_OTHERS_CASE (int): Subdivided listing groups must have an "others" case. - LISTING_GROUP_REQUIRES_SAME_DIMENSION_TYPE_AS_SIBLINGS (int): Dimension type of listing group must be the same as that of its siblings. - LISTING_GROUP_ALREADY_EXISTS (int): Listing group cannot be added to the ad group because it already exists. - LISTING_GROUP_DOES_NOT_EXIST (int): Listing group referenced in the operation was not found in the ad group. - LISTING_GROUP_CANNOT_BE_REMOVED (int): Recursive removal failed because listing group subdivision is being - created or modified in this request. - INVALID_LISTING_GROUP_TYPE (int): Listing group type is not allowed for specified ad group criterion type. - LISTING_GROUP_ADD_MAY_ONLY_USE_TEMP_ID (int): Listing group in an ADD operation specifies a non temporary criterion id. """ UNSPECIFIED = 0 UNKNOWN = 1 @@ -704,18 +949,12 @@ class AdGroupCriterionError(enum.IntEnum): CANNOT_SET_BOTH_DESTINATION_URL_AND_TRACKING_URL_TEMPLATE = 36 FINAL_URLS_NOT_SUPPORTED_FOR_CRITERION_TYPE = 37 FINAL_MOBILE_URLS_NOT_SUPPORTED_FOR_CRITERION_TYPE = 38 - INVALID_LISTING_GROUP_HIERARCHY = 39 - LISTING_GROUP_UNIT_CANNOT_HAVE_CHILDREN = 40 - LISTING_GROUP_SUBDIVISION_REQUIRES_OTHERS_CASE = 41 - LISTING_GROUP_REQUIRES_SAME_DIMENSION_TYPE_AS_SIBLINGS = 42 - LISTING_GROUP_ALREADY_EXISTS = 43 - LISTING_GROUP_DOES_NOT_EXIST = 44 - LISTING_GROUP_CANNOT_BE_REMOVED = 45 - INVALID_LISTING_GROUP_TYPE = 46 - LISTING_GROUP_ADD_MAY_ONLY_USE_TEMP_ID = 47 - - -class AdGroupCriterionStatusEnum(object): +''' +AdGroupCriterionErrorEnum = AdGroupCriterionErrorEnum() # For __getattribute__ + + +class AdGroupCriterionStatusEnum(_CreateEnumTypeUponFirstAccess): + AdGroupCriterionStatus = '''\ class AdGroupCriterionStatus(enum.IntEnum): """ The possible statuses of an AdGroupCriterion. @@ -734,9 +973,12 @@ class AdGroupCriterionStatus(enum.IntEnum): ENABLED = 2 PAUSED = 3 REMOVED = 4 +''' +AdGroupCriterionStatusEnum = AdGroupCriterionStatusEnum() # For __getattribute__ -class AdGroupErrorEnum(object): +class AdGroupErrorEnum(_CreateEnumTypeUponFirstAccess): + AdGroupError = '''\ class AdGroupError(enum.IntEnum): """ Enum describing possible ad group errors. @@ -759,6 +1001,7 @@ class AdGroupError(enum.IntEnum): campaign. CANNOT_ADD_ADGROUP_OF_TYPE_DSA_TO_CAMPAIGN_WITHOUT_DSA_SETTING (int): Ad groups of AdGroupType.SEARCH\_DYNAMIC\_ADS can only be added to campaigns that have DynamicSearchAdsSetting attached. + PROMOTED_HOTEL_AD_GROUPS_NOT_AVAILABLE_FOR_CUSTOMER (int): Promoted hotels ad groups are only available to whitelisted customers. """ UNSPECIFIED = 0 UNKNOWN = 1 @@ -774,9 +1017,13 @@ class AdGroupError(enum.IntEnum): AD_GROUP_TYPE_NOT_VALID_FOR_ADVERTISING_CHANNEL_TYPE = 12 ADGROUP_TYPE_NOT_SUPPORTED_FOR_CAMPAIGN_SALES_COUNTRY = 13 CANNOT_ADD_ADGROUP_OF_TYPE_DSA_TO_CAMPAIGN_WITHOUT_DSA_SETTING = 14 + PROMOTED_HOTEL_AD_GROUPS_NOT_AVAILABLE_FOR_CUSTOMER = 15 +''' +AdGroupErrorEnum = AdGroupErrorEnum() # For __getattribute__ -class AdGroupFeedErrorEnum(object): +class AdGroupFeedErrorEnum(_CreateEnumTypeUponFirstAccess): + AdGroupFeedError = '''\ class AdGroupFeedError(enum.IntEnum): """ Enum describing possible ad group feed errors. @@ -803,9 +1050,12 @@ class AdGroupFeedError(enum.IntEnum): INVALID_PLACEHOLDER_TYPE = 6 MISSING_FEEDMAPPING_FOR_PLACEHOLDER_TYPE = 7 NO_EXISTING_LOCATION_CUSTOMER_FEED = 8 +''' +AdGroupFeedErrorEnum = AdGroupFeedErrorEnum() # For __getattribute__ -class AdGroupStatusEnum(object): +class AdGroupStatusEnum(_CreateEnumTypeUponFirstAccess): + AdGroupStatus = '''\ class AdGroupStatus(enum.IntEnum): """ The possible statuses of an ad group. @@ -824,9 +1074,12 @@ class AdGroupStatus(enum.IntEnum): ENABLED = 2 PAUSED = 3 REMOVED = 4 +''' +AdGroupStatusEnum = AdGroupStatusEnum() # For __getattribute__ -class AdGroupTypeEnum(object): +class AdGroupTypeEnum(_CreateEnumTypeUponFirstAccess): + AdGroupType = '''\ class AdGroupType(enum.IntEnum): """ Enum listing the possible types of an ad group. @@ -848,6 +1101,8 @@ class AdGroupType(enum.IntEnum): VIDEO_OUTSTREAM (int): Outstream video ads. SEARCH_DYNAMIC_ADS (int): Ad group type for Dynamic Search Ads ad groups. SHOPPING_COMPARISON_LISTING_ADS (int): The type for ad groups in Shopping Comparison Listing campaigns. + PROMOTED_HOTEL_ADS (int): The ad group type for Promoted Hotel ad groups. + VIDEO_RESPONSIVE (int): Video responsive ad groups. """ UNSPECIFIED = 0 UNKNOWN = 1 @@ -863,9 +1118,14 @@ class AdGroupType(enum.IntEnum): VIDEO_OUTSTREAM = 12 SEARCH_DYNAMIC_ADS = 13 SHOPPING_COMPARISON_LISTING_ADS = 14 + PROMOTED_HOTEL_ADS = 15 + VIDEO_RESPONSIVE = 16 +''' +AdGroupTypeEnum = AdGroupTypeEnum() # For __getattribute__ -class AdNetworkTypeEnum(object): +class AdNetworkTypeEnum(_CreateEnumTypeUponFirstAccess): + AdNetworkType = '''\ class AdNetworkType(enum.IntEnum): """ Enumerates Google Ads network types. @@ -888,9 +1148,12 @@ class AdNetworkType(enum.IntEnum): YOUTUBE_SEARCH = 5 YOUTUBE_WATCH = 6 MIXED = 7 +''' +AdNetworkTypeEnum = AdNetworkTypeEnum() # For __getattribute__ -class AdParameterErrorEnum(object): +class AdParameterErrorEnum(_CreateEnumTypeUponFirstAccess): + AdParameterError = '''\ class AdParameterError(enum.IntEnum): """ Enum describing possible ad parameter errors. @@ -905,9 +1168,12 @@ class AdParameterError(enum.IntEnum): UNKNOWN = 1 AD_GROUP_CRITERION_MUST_BE_KEYWORD = 2 INVALID_INSERTION_TEXT_FORMAT = 3 +''' +AdParameterErrorEnum = AdParameterErrorEnum() # For __getattribute__ -class AdServingOptimizationStatusEnum(object): +class AdServingOptimizationStatusEnum(_CreateEnumTypeUponFirstAccess): + AdServingOptimizationStatus = '''\ class AdServingOptimizationStatus(enum.IntEnum): """ Enum describing possible serving statuses. @@ -933,9 +1199,12 @@ class AdServingOptimizationStatus(enum.IntEnum): ROTATE = 4 ROTATE_INDEFINITELY = 5 UNAVAILABLE = 6 +''' +AdServingOptimizationStatusEnum = AdServingOptimizationStatusEnum() # For __getattribute__ -class AdSharingErrorEnum(object): +class AdSharingErrorEnum(_CreateEnumTypeUponFirstAccess): + AdSharingError = '''\ class AdSharingError(enum.IntEnum): """ Enum describing possible ad sharing errors. @@ -953,9 +1222,12 @@ class AdSharingError(enum.IntEnum): AD_GROUP_ALREADY_CONTAINS_AD = 2 INCOMPATIBLE_AD_UNDER_AD_GROUP = 3 CANNOT_SHARE_INACTIVE_AD = 4 +''' +AdSharingErrorEnum = AdSharingErrorEnum() # For __getattribute__ -class AdStrengthEnum(object): +class AdStrengthEnum(_CreateEnumTypeUponFirstAccess): + AdStrength = '''\ class AdStrength(enum.IntEnum): """ Enum listing the possible ad strengths. @@ -978,9 +1250,12 @@ class AdStrength(enum.IntEnum): AVERAGE = 5 GOOD = 6 EXCELLENT = 7 +''' +AdStrengthEnum = AdStrengthEnum() # For __getattribute__ -class AdTypeEnum(object): +class AdTypeEnum(_CreateEnumTypeUponFirstAccess): + AdType = '''\ class AdType(enum.IntEnum): """ The possible types of an ad. @@ -1005,11 +1280,18 @@ class AdType(enum.IntEnum): APP_AD (int): The ad is an app ad. LEGACY_APP_INSTALL_AD (int): The ad is a legacy app install ad. RESPONSIVE_DISPLAY_AD (int): The ad is a responsive display ad. + LOCAL_AD (int): The ad is a local ad. HTML5_UPLOAD_AD (int): The ad is a display upload ad with the HTML5\_UPLOAD\_AD product type. DYNAMIC_HTML5_AD (int): The ad is a display upload ad with one of the DYNAMIC\_HTML5\_\* product types. APP_ENGAGEMENT_AD (int): The ad is an app engagement ad. SHOPPING_COMPARISON_LISTING_AD (int): The ad is a Shopping Comparison Listing ad. + VIDEO_BUMPER_AD (int): Video bumper ad. + VIDEO_NON_SKIPPABLE_IN_STREAM_AD (int): Video non-skippable in-stream ad. + VIDEO_OUTSTREAM_AD (int): Video outstream ad. + VIDEO_TRUEVIEW_DISCOVERY_AD (int): Video TrueView in-display ad. + VIDEO_TRUEVIEW_IN_STREAM_AD (int): Video TrueView in-stream ad. + VIDEO_RESPONSIVE_AD (int): Video responsive ad. """ UNSPECIFIED = 0 UNKNOWN = 1 @@ -1028,13 +1310,23 @@ class AdType(enum.IntEnum): APP_AD = 17 LEGACY_APP_INSTALL_AD = 18 RESPONSIVE_DISPLAY_AD = 19 + LOCAL_AD = 20 HTML5_UPLOAD_AD = 21 DYNAMIC_HTML5_AD = 22 APP_ENGAGEMENT_AD = 23 SHOPPING_COMPARISON_LISTING_AD = 24 - - -class AdvertisingChannelSubTypeEnum(object): + VIDEO_BUMPER_AD = 25 + VIDEO_NON_SKIPPABLE_IN_STREAM_AD = 26 + VIDEO_OUTSTREAM_AD = 27 + VIDEO_TRUEVIEW_DISCOVERY_AD = 28 + VIDEO_TRUEVIEW_IN_STREAM_AD = 29 + VIDEO_RESPONSIVE_AD = 30 +''' +AdTypeEnum = AdTypeEnum() # For __getattribute__ + + +class AdvertisingChannelSubTypeEnum(_CreateEnumTypeUponFirstAccess): + AdvertisingChannelSubType = '''\ class AdvertisingChannelSubType(enum.IntEnum): """ Enum describing the different channel subtypes. @@ -1058,6 +1350,7 @@ class AdvertisingChannelSubType(enum.IntEnum): APP_CAMPAIGN_FOR_ENGAGEMENT (int): App Campaign for engagement, focused on driving re-engagement with the app across several of Google’s top properties including Search, YouTube, and the Google Display Network. + LOCAL_CAMPAIGN (int): Campaigns specialized for local advertising. SHOPPING_COMPARISON_LISTING_ADS (int): Shopping Comparison Listing campaigns. """ UNSPECIFIED = 0 @@ -1074,10 +1367,14 @@ class AdvertisingChannelSubType(enum.IntEnum): VIDEO_NON_SKIPPABLE = 11 APP_CAMPAIGN = 12 APP_CAMPAIGN_FOR_ENGAGEMENT = 13 + LOCAL_CAMPAIGN = 14 SHOPPING_COMPARISON_LISTING_ADS = 15 +''' +AdvertisingChannelSubTypeEnum = AdvertisingChannelSubTypeEnum() # For __getattribute__ -class AdvertisingChannelTypeEnum(object): +class AdvertisingChannelTypeEnum(_CreateEnumTypeUponFirstAccess): + AdvertisingChannelType = '''\ class AdvertisingChannelType(enum.IntEnum): """ Enum describing the various advertising channel types. @@ -1093,6 +1390,8 @@ class AdvertisingChannelType(enum.IntEnum): VIDEO (int): Video campaigns. MULTI_CHANNEL (int): App Campaigns, and App Campaigns for Engagement, that run across multiple channels. + LOCAL (int): Local ads campaigns. + SMART (int): Smart campaigns. """ UNSPECIFIED = 0 UNKNOWN = 1 @@ -1102,9 +1401,14 @@ class AdvertisingChannelType(enum.IntEnum): HOTEL = 5 VIDEO = 6 MULTI_CHANNEL = 7 + LOCAL = 8 + SMART = 9 +''' +AdvertisingChannelTypeEnum = AdvertisingChannelTypeEnum() # For __getattribute__ -class AdxErrorEnum(object): +class AdxErrorEnum(_CreateEnumTypeUponFirstAccess): + AdxError = '''\ class AdxError(enum.IntEnum): """ Enum describing possible adx errors. @@ -1117,9 +1421,12 @@ class AdxError(enum.IntEnum): UNSPECIFIED = 0 UNKNOWN = 1 UNSUPPORTED_FEATURE = 2 +''' +AdxErrorEnum = AdxErrorEnum() # For __getattribute__ -class AffiliateLocationFeedRelationshipTypeEnum(object): +class AffiliateLocationFeedRelationshipTypeEnum(_CreateEnumTypeUponFirstAccess): + AffiliateLocationFeedRelationshipType = '''\ class AffiliateLocationFeedRelationshipType(enum.IntEnum): """ Possible values for a relationship type for an affiliate location feed. @@ -1132,9 +1439,12 @@ class AffiliateLocationFeedRelationshipType(enum.IntEnum): UNSPECIFIED = 0 UNKNOWN = 1 GENERAL_RETAILER = 2 +''' +AffiliateLocationFeedRelationshipTypeEnum = AffiliateLocationFeedRelationshipTypeEnum() # For __getattribute__ -class AffiliateLocationPlaceholderFieldEnum(object): +class AffiliateLocationPlaceholderFieldEnum(_CreateEnumTypeUponFirstAccess): + AffiliateLocationPlaceholderField = '''\ class AffiliateLocationPlaceholderField(enum.IntEnum): """ Possible values for Affiliate Location placeholder fields. @@ -1167,9 +1477,12 @@ class AffiliateLocationPlaceholderField(enum.IntEnum): LANGUAGE_CODE = 10 CHAIN_ID = 11 CHAIN_NAME = 12 +''' +AffiliateLocationPlaceholderFieldEnum = AffiliateLocationPlaceholderFieldEnum() # For __getattribute__ -class AgeRangeTypeEnum(object): +class AgeRangeTypeEnum(_CreateEnumTypeUponFirstAccess): + AgeRangeType = '''\ class AgeRangeType(enum.IntEnum): """ The type of demographic age ranges (e.g. between 18 and 24 years old). @@ -1194,9 +1507,12 @@ class AgeRangeType(enum.IntEnum): AGE_RANGE_55_64 = 503005 AGE_RANGE_65_UP = 503006 AGE_RANGE_UNDETERMINED = 503999 +''' +AgeRangeTypeEnum = AgeRangeTypeEnum() # For __getattribute__ -class AppCampaignAppStoreEnum(object): +class AppCampaignAppStoreEnum(_CreateEnumTypeUponFirstAccess): + AppCampaignAppStore = '''\ class AppCampaignAppStore(enum.IntEnum): """ Enum describing app campaign app store. @@ -1211,9 +1527,12 @@ class AppCampaignAppStore(enum.IntEnum): UNKNOWN = 1 APPLE_APP_STORE = 2 GOOGLE_APP_STORE = 3 +''' +AppCampaignAppStoreEnum = AppCampaignAppStoreEnum() # For __getattribute__ -class AppCampaignBiddingStrategyGoalTypeEnum(object): +class AppCampaignBiddingStrategyGoalTypeEnum(_CreateEnumTypeUponFirstAccess): + AppCampaignBiddingStrategyGoalType = '''\ class AppCampaignBiddingStrategyGoalType(enum.IntEnum): """ Goal type of App campaign BiddingStrategy. @@ -1239,9 +1558,12 @@ class AppCampaignBiddingStrategyGoalType(enum.IntEnum): OPTIMIZE_IN_APP_CONVERSIONS_TARGET_INSTALL_COST = 3 OPTIMIZE_IN_APP_CONVERSIONS_TARGET_CONVERSION_COST = 4 OPTIMIZE_RETURN_ON_ADVERTISING_SPEND = 5 +''' +AppCampaignBiddingStrategyGoalTypeEnum = AppCampaignBiddingStrategyGoalTypeEnum() # For __getattribute__ -class AppPaymentModelTypeEnum(object): +class AppPaymentModelTypeEnum(_CreateEnumTypeUponFirstAccess): + AppPaymentModelType = '''\ class AppPaymentModelType(enum.IntEnum): """ Enum describing possible app payment models. @@ -1254,9 +1576,12 @@ class AppPaymentModelType(enum.IntEnum): UNSPECIFIED = 0 UNKNOWN = 1 PAID = 30 +''' +AppPaymentModelTypeEnum = AppPaymentModelTypeEnum() # For __getattribute__ -class AppPlaceholderFieldEnum(object): +class AppPlaceholderFieldEnum(_CreateEnumTypeUponFirstAccess): + AppPlaceholderField = '''\ class AppPlaceholderField(enum.IntEnum): """ Possible values for App placeholder fields. @@ -1290,9 +1615,12 @@ class AppPlaceholderField(enum.IntEnum): FINAL_MOBILE_URLS = 7 TRACKING_URL = 8 FINAL_URL_SUFFIX = 9 +''' +AppPlaceholderFieldEnum = AppPlaceholderFieldEnum() # For __getattribute__ -class AppStoreEnum(object): +class AppStoreEnum(_CreateEnumTypeUponFirstAccess): + AppStore = '''\ class AppStore(enum.IntEnum): """ App store type in an app extension. @@ -1307,9 +1635,12 @@ class AppStore(enum.IntEnum): UNKNOWN = 1 APPLE_ITUNES = 2 GOOGLE_PLAY = 3 +''' +AppStoreEnum = AppStoreEnum() # For __getattribute__ -class AppUrlOperatingSystemTypeEnum(object): +class AppUrlOperatingSystemTypeEnum(_CreateEnumTypeUponFirstAccess): + AppUrlOperatingSystemType = '''\ class AppUrlOperatingSystemType(enum.IntEnum): """ Operating System @@ -1324,9 +1655,12 @@ class AppUrlOperatingSystemType(enum.IntEnum): UNKNOWN = 1 IOS = 2 ANDROID = 3 +''' +AppUrlOperatingSystemTypeEnum = AppUrlOperatingSystemTypeEnum() # For __getattribute__ -class AssetErrorEnum(object): +class AssetErrorEnum(_CreateEnumTypeUponFirstAccess): + AssetError = '''\ class AssetError(enum.IntEnum): """ Enum describing possible asset errors. @@ -1349,9 +1683,87 @@ class AssetError(enum.IntEnum): DUPLICATE_ASSET_NAME = 4 ASSET_DATA_IS_MISSING = 5 CANNOT_MODIFY_ASSET_NAME = 6 +''' +AssetErrorEnum = AssetErrorEnum() # For __getattribute__ + + +class AssetFieldTypeEnum(_CreateEnumTypeUponFirstAccess): + AssetFieldType = '''\ + class AssetFieldType(enum.IntEnum): + """ + Enum describing the possible placements of an asset. + + Attributes: + UNSPECIFIED (int): Not specified. + UNKNOWN (int): Used for return value only. Represents value unknown in this version. + HEADLINE (int): The asset is linked for use as a headline. + DESCRIPTION (int): The asset is linked for use as a description. + MANDATORY_AD_TEXT (int): The asset is linked for use as mandatory ad text. + MARKETING_IMAGE (int): The asset is linked for use as a marketing image. + MEDIA_BUNDLE (int): The asset is linked for use as a media bundle. + YOUTUBE_VIDEO (int): The asset is linked for use as a YouTube video. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + HEADLINE = 2 + DESCRIPTION = 3 + MANDATORY_AD_TEXT = 4 + MARKETING_IMAGE = 5 + MEDIA_BUNDLE = 6 + YOUTUBE_VIDEO = 7 +''' +AssetFieldTypeEnum = AssetFieldTypeEnum() # For __getattribute__ + + +class AssetLinkErrorEnum(_CreateEnumTypeUponFirstAccess): + AssetLinkError = '''\ + class AssetLinkError(enum.IntEnum): + """ + Enum describing possible asset link errors. + + Attributes: + UNSPECIFIED (int): Enum unspecified. + UNKNOWN (int): The received error code is not known in this version. + PINNING_UNSUPPORTED (int): Pinning is not supported for the given asset link field. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + PINNING_UNSUPPORTED = 2 +''' +AssetLinkErrorEnum = AssetLinkErrorEnum() # For __getattribute__ + + +class AssetPerformanceLabelEnum(_CreateEnumTypeUponFirstAccess): + AssetPerformanceLabel = '''\ + class AssetPerformanceLabel(enum.IntEnum): + """ + Enum describing the possible performance labels of an asset, usually + computed in the context of a linkage. + + Attributes: + UNSPECIFIED (int): Not specified. + UNKNOWN (int): Used for return value only. Represents value unknown in this version. + PENDING (int): This asset does not yet have any performance informantion. This may be + because it is still under review. + LEARNING (int): The asset has started getting impressions but the stats are not + statistically significant enough to get an asset performance label. + LOW (int): Worst performing assets. + GOOD (int): Good performing assets. + BEST (int): Best performing assets. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + PENDING = 2 + LEARNING = 3 + LOW = 4 + GOOD = 5 + BEST = 6 +''' +AssetPerformanceLabelEnum = AssetPerformanceLabelEnum() # For __getattribute__ -class AssetTypeEnum(object): +class AssetTypeEnum(_CreateEnumTypeUponFirstAccess): + AssetType = '''\ class AssetType(enum.IntEnum): """ Enum describing possible types of asset. @@ -1363,6 +1775,7 @@ class AssetType(enum.IntEnum): MEDIA_BUNDLE (int): Media bundle asset. IMAGE (int): Image asset. TEXT (int): Text asset. + BOOK_ON_GOOGLE (int): Book on Google asset. """ UNSPECIFIED = 0 UNKNOWN = 1 @@ -1370,9 +1783,13 @@ class AssetType(enum.IntEnum): MEDIA_BUNDLE = 3 IMAGE = 4 TEXT = 5 + BOOK_ON_GOOGLE = 7 +''' +AssetTypeEnum = AssetTypeEnum() # For __getattribute__ -class AttributionModelEnum(object): +class AttributionModelEnum(_CreateEnumTypeUponFirstAccess): + AttributionModel = '''\ class AttributionModel(enum.IntEnum): """ The attribution model that describes how to distribute credit for a @@ -1404,9 +1821,12 @@ class AttributionModel(enum.IntEnum): GOOGLE_SEARCH_ATTRIBUTION_TIME_DECAY = 104 GOOGLE_SEARCH_ATTRIBUTION_POSITION_BASED = 105 GOOGLE_SEARCH_ATTRIBUTION_DATA_DRIVEN = 106 +''' +AttributionModelEnum = AttributionModelEnum() # For __getattribute__ -class AuthenticationErrorEnum(object): +class AuthenticationErrorEnum(_CreateEnumTypeUponFirstAccess): + AuthenticationError = '''\ class AuthenticationError(enum.IntEnum): """ Enum describing possible authentication errors. @@ -1458,9 +1878,12 @@ class AuthenticationError(enum.IntEnum): USER_ID_INVALID = 22 TWO_STEP_VERIFICATION_NOT_ENROLLED = 23 ADVANCED_PROTECTION_NOT_ENROLLED = 24 +''' +AuthenticationErrorEnum = AuthenticationErrorEnum() # For __getattribute__ -class AuthorizationErrorEnum(object): +class AuthorizationErrorEnum(_CreateEnumTypeUponFirstAccess): + AuthorizationError = '''\ class AuthorizationError(enum.IntEnum): """ Enum describing possible authorization errors. @@ -1469,10 +1892,9 @@ class AuthorizationError(enum.IntEnum): UNSPECIFIED (int): Enum unspecified. UNKNOWN (int): The received error code is not known in this version. USER_PERMISSION_DENIED (int): User doesn't have permission to access customer. Note: If you're - accessing a client customer, the manager's customer id must be set in the - 'login-customer-id' header. See - https://developers.google.com/google-ads/api/docs/concepts/ - call-structure#login-customer-id + accessing a client customer, the manager's customer ID must be set in + the ``login-customer-id`` header. Learn more at + https://developers.google.com/google-ads/api/docs/concepts/call-structure#cid DEVELOPER_TOKEN_NOT_WHITELISTED (int): The developer token is not whitelisted. DEVELOPER_TOKEN_PROHIBITED (int): The developer token is not allowed with the project sent in the request. PROJECT_DISABLED (int): The Google Cloud project sent in the request does not have permission to @@ -1486,6 +1908,9 @@ class AuthorizationError(enum.IntEnum): ads.google.com/aw/apicenter DEVELOPER_TOKEN_NOT_APPROVED (int): The developer token is not approved. Non-approved developer tokens can only be used with test accounts. + INVALID_LOGIN_CUSTOMER_ID_SERVING_CUSTOMER_ID_COMBINATION (int): The login customer specified does not have access to the account + specified, so the request is invalid. + SERVICE_ACCESS_DENIED (int): The developer specified does not have access to the service. """ UNSPECIFIED = 0 UNKNOWN = 1 @@ -1499,9 +1924,65 @@ class AuthorizationError(enum.IntEnum): CUSTOMER_NOT_ENABLED = 24 MISSING_TOS = 9 DEVELOPER_TOKEN_NOT_APPROVED = 10 + INVALID_LOGIN_CUSTOMER_ID_SERVING_CUSTOMER_ID_COMBINATION = 11 + SERVICE_ACCESS_DENIED = 12 +''' +AuthorizationErrorEnum = AuthorizationErrorEnum() # For __getattribute__ + + +class BatchJobErrorEnum(_CreateEnumTypeUponFirstAccess): + BatchJobError = '''\ + class BatchJobError(enum.IntEnum): + """ + Enum describing possible request errors. + + Attributes: + UNSPECIFIED (int): Enum unspecified. + UNKNOWN (int): The received error code is not known in this version. + CANNOT_MODIFY_JOB_AFTER_JOB_STARTS_RUNNING (int): The batch job cannot add more operations or run after it has started + running. + EMPTY_OPERATIONS (int): The operations for an AddBatchJobOperations request were empty. + INVALID_SEQUENCE_TOKEN (int): The sequence token for an AddBatchJobOperations request was invalid. + RESULTS_NOT_READY (int): Batch job results can only be retrieved once the job is finished. + INVALID_PAGE_SIZE (int): The page size for ListBatchJobResults was invalid. + CAN_ONLY_REMOVE_PENDING_JOB (int): The batch job cannot be removed because it has started running. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + CANNOT_MODIFY_JOB_AFTER_JOB_STARTS_RUNNING = 2 + EMPTY_OPERATIONS = 3 + INVALID_SEQUENCE_TOKEN = 4 + RESULTS_NOT_READY = 5 + INVALID_PAGE_SIZE = 6 + CAN_ONLY_REMOVE_PENDING_JOB = 7 +''' +BatchJobErrorEnum = BatchJobErrorEnum() # For __getattribute__ -class BidModifierSourceEnum(object): +class BatchJobStatusEnum(_CreateEnumTypeUponFirstAccess): + BatchJobStatus = '''\ + class BatchJobStatus(enum.IntEnum): + """ + The batch job statuses. + + Attributes: + UNSPECIFIED (int): Not specified. + UNKNOWN (int): Used for return value only. Represents value unknown in this version. + PENDING (int): The job is not currently running. + RUNNING (int): The job is running. + DONE (int): The job is done. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + PENDING = 2 + RUNNING = 3 + DONE = 4 +''' +BatchJobStatusEnum = BatchJobStatusEnum() # For __getattribute__ + + +class BidModifierSourceEnum(_CreateEnumTypeUponFirstAccess): + BidModifierSource = '''\ class BidModifierSource(enum.IntEnum): """ Enum describing possible bid modifier sources. @@ -1517,9 +1998,12 @@ class BidModifierSource(enum.IntEnum): UNKNOWN = 1 CAMPAIGN = 2 AD_GROUP = 3 +''' +BidModifierSourceEnum = BidModifierSourceEnum() # For __getattribute__ -class BiddingErrorEnum(object): +class BiddingErrorEnum(_CreateEnumTypeUponFirstAccess): + BiddingError = '''\ class BiddingError(enum.IntEnum): """ Enum describing possible bidding errors. @@ -1555,6 +2039,7 @@ class BiddingError(enum.IntEnum): NOT_COMPATIBLE_WITH_PAYMENT_MODE (int): The field is not compatible with the payment mode. NOT_COMPATIBLE_WITH_BUDGET_TYPE (int): The field is not compatible with the budget type. NOT_COMPATIBLE_WITH_BIDDING_STRATEGY_TYPE (int): The field is not compatible with the bidding strategy type. + BIDDING_STRATEGY_TYPE_INCOMPATIBLE_WITH_SHARED_BUDGET (int): Bidding strategy type is incompatible with shared budget. """ UNSPECIFIED = 0 UNKNOWN = 1 @@ -1581,9 +2066,13 @@ class BiddingError(enum.IntEnum): NOT_COMPATIBLE_WITH_PAYMENT_MODE = 34 NOT_COMPATIBLE_WITH_BUDGET_TYPE = 35 NOT_COMPATIBLE_WITH_BIDDING_STRATEGY_TYPE = 36 + BIDDING_STRATEGY_TYPE_INCOMPATIBLE_WITH_SHARED_BUDGET = 37 +''' +BiddingErrorEnum = BiddingErrorEnum() # For __getattribute__ -class BiddingSourceEnum(object): +class BiddingSourceEnum(_CreateEnumTypeUponFirstAccess): + BiddingSource = '''\ class BiddingSource(enum.IntEnum): """ Indicates where a bid or target is defined. For example, an ad group @@ -1602,9 +2091,12 @@ class BiddingSource(enum.IntEnum): CAMPAIGN_BIDDING_STRATEGY = 5 AD_GROUP = 6 AD_GROUP_CRITERION = 7 +''' +BiddingSourceEnum = BiddingSourceEnum() # For __getattribute__ -class BiddingStrategyErrorEnum(object): +class BiddingStrategyErrorEnum(_CreateEnumTypeUponFirstAccess): + BiddingStrategyError = '''\ class BiddingStrategyError(enum.IntEnum): """ Enum describing possible bidding strategy errors. @@ -1627,9 +2119,12 @@ class BiddingStrategyError(enum.IntEnum): CANNOT_REMOVE_ASSOCIATED_STRATEGY = 4 BIDDING_STRATEGY_NOT_SUPPORTED = 5 INCOMPATIBLE_BIDDING_STRATEGY_AND_BIDDING_STRATEGY_GOAL_TYPE = 6 +''' +BiddingStrategyErrorEnum = BiddingStrategyErrorEnum() # For __getattribute__ -class BiddingStrategyStatusEnum(object): +class BiddingStrategyStatusEnum(_CreateEnumTypeUponFirstAccess): + BiddingStrategyStatus = '''\ class BiddingStrategyStatus(enum.IntEnum): """ The possible statuses of a BiddingStrategy. @@ -1646,9 +2141,12 @@ class BiddingStrategyStatus(enum.IntEnum): UNKNOWN = 1 ENABLED = 2 REMOVED = 4 +''' +BiddingStrategyStatusEnum = BiddingStrategyStatusEnum() # For __getattribute__ -class BiddingStrategyTypeEnum(object): +class BiddingStrategyTypeEnum(_CreateEnumTypeUponFirstAccess): + BiddingStrategyType = '''\ class BiddingStrategyType(enum.IntEnum): """ Enum describing possible bidding strategy types. @@ -1671,6 +2169,7 @@ class BiddingStrategyType(enum.IntEnum): revenue while spending your budget. PAGE_ONE_PROMOTED (int): Page-One Promoted bidding scheme, which sets max cpc bids to target impressions on page one or page one promoted slots on google.com. + This enum value is deprecated. PERCENT_CPC (int): Percent Cpc is bidding strategy where bids are a fraction of the advertised price for some good or service. TARGET_CPA (int): Target CPA is an automated bid strategy that sets bids @@ -1685,6 +2184,7 @@ class BiddingStrategyType(enum.IntEnum): TARGET_OUTRANK_SHARE (int): Target Outrank Share is an automated bidding strategy that sets bids based on the target fraction of auctions where the advertiser should outrank a specific competitor. + This enum value is deprecated. TARGET_ROAS (int): Target ROAS is an automated bidding strategy that helps you maximize revenue while averaging a specific target Return On Average Spend (ROAS). @@ -1708,9 +2208,12 @@ class BiddingStrategyType(enum.IntEnum): TARGET_OUTRANK_SHARE = 7 TARGET_ROAS = 8 TARGET_SPEND = 9 +''' +BiddingStrategyTypeEnum = BiddingStrategyTypeEnum() # For __getattribute__ -class BillingSetupErrorEnum(object): +class BillingSetupErrorEnum(_CreateEnumTypeUponFirstAccess): + BillingSetupError = '''\ class BillingSetupError(enum.IntEnum): """ Enum describing possible billing setup errors. @@ -1718,33 +2221,33 @@ class BillingSetupError(enum.IntEnum): Attributes: UNSPECIFIED (int): Enum unspecified. UNKNOWN (int): The received error code is not known in this version. - CANNOT_USE_EXISTING_AND_NEW_ACCOUNT (int): Cannot use both an existing Payments account and a new Payments account - when setting up billing. - CANNOT_REMOVE_STARTED_BILLING_SETUP (int): Cannot cancel an APPROVED billing setup whose start time has passed. - CANNOT_CHANGE_BILLING_TO_SAME_PAYMENTS_ACCOUNT (int): Cannot perform a Change of Bill-To (CBT) to the same Payments account. - BILLING_SETUP_NOT_PERMITTED_FOR_CUSTOMER_STATUS (int): Billing Setups can only be used by customers with ENABLED or DRAFT + CANNOT_USE_EXISTING_AND_NEW_ACCOUNT (int): Cannot specify both an existing payments account and a new payments + account when setting up billing. + CANNOT_REMOVE_STARTED_BILLING_SETUP (int): Cannot cancel an approved billing setup whose start time has passed. + CANNOT_CHANGE_BILLING_TO_SAME_PAYMENTS_ACCOUNT (int): Cannot perform a Change of Bill-To (CBT) to the same payments account. + BILLING_SETUP_NOT_PERMITTED_FOR_CUSTOMER_STATUS (int): Billing setups can only be used by customers with ENABLED or DRAFT status. - INVALID_PAYMENTS_ACCOUNT (int): Billing Setups must either include a correctly formatted existing - Payments account id, or a non-empty new Payments account name. + INVALID_PAYMENTS_ACCOUNT (int): Billing setups must either include a correctly formatted existing + payments account id, or a non-empty new payments account name. BILLING_SETUP_NOT_PERMITTED_FOR_CUSTOMER_CATEGORY (int): Only billable and third-party customers can create billing setups. - INVALID_START_TIME_TYPE (int): Billing Setup creations can only use NOW for start time type. - THIRD_PARTY_ALREADY_HAS_BILLING (int): Billing Setups can only be created for a third-party customer if they do + INVALID_START_TIME_TYPE (int): Billing setup creations can only use NOW for start time type. + THIRD_PARTY_ALREADY_HAS_BILLING (int): Billing setups can only be created for a third-party customer if they do not already have a setup. - BILLING_SETUP_IN_PROGRESS (int): Billing Setups cannot be created if there is already a pending billing in - progress, ie. a billing known to Payments. - NO_SIGNUP_PERMISSION (int): Billing Setups can only be created by customers who have permission to + BILLING_SETUP_IN_PROGRESS (int): Billing setups cannot be created if there is already a pending billing in + progress. + NO_SIGNUP_PERMISSION (int): Billing setups can only be created by customers who have permission to setup billings. Users can contact a representative for help setting up permissions. - CHANGE_OF_BILL_TO_IN_PROGRESS (int): Billing Setups cannot be created if there is already a future-approved + CHANGE_OF_BILL_TO_IN_PROGRESS (int): Billing setups cannot be created if there is already a future-approved billing. - PAYMENTS_PROFILE_NOT_FOUND (int): Billing Setup creation failed because Payments could not find the - requested Payments profile. - PAYMENTS_ACCOUNT_NOT_FOUND (int): Billing Setup creation failed because Payments could not find the - requested Payments account. - PAYMENTS_PROFILE_INELIGIBLE (int): Billing Setup creation failed because Payments considers requested - Payments profile ineligible. - PAYMENTS_ACCOUNT_INELIGIBLE (int): Billing Setup creation failed because Payments considers requested - Payments account ineligible. + PAYMENTS_PROFILE_NOT_FOUND (int): Requested payments profile not found. + PAYMENTS_ACCOUNT_NOT_FOUND (int): Requested payments account not found. + PAYMENTS_PROFILE_INELIGIBLE (int): Billing setup creation failed because the payments profile is ineligible. + PAYMENTS_ACCOUNT_INELIGIBLE (int): Billing setup creation failed because the payments account is ineligible. + CUSTOMER_NEEDS_INTERNAL_APPROVAL (int): Billing setup creation failed because the payments profile needs internal + approval. + PAYMENTS_ACCOUNT_INELIGIBLE_CURRENCY_CODE_MISMATCH (int): Payments account has different currency code than the current customer + and hence cannot be used to setup billing. """ UNSPECIFIED = 0 UNKNOWN = 1 @@ -1763,9 +2266,14 @@ class BillingSetupError(enum.IntEnum): PAYMENTS_ACCOUNT_NOT_FOUND = 14 PAYMENTS_PROFILE_INELIGIBLE = 15 PAYMENTS_ACCOUNT_INELIGIBLE = 16 + CUSTOMER_NEEDS_INTERNAL_APPROVAL = 17 + PAYMENTS_ACCOUNT_INELIGIBLE_CURRENCY_CODE_MISMATCH = 19 +''' +BillingSetupErrorEnum = BillingSetupErrorEnum() # For __getattribute__ -class BillingSetupStatusEnum(object): +class BillingSetupStatusEnum(_CreateEnumTypeUponFirstAccess): + BillingSetupStatus = '''\ class BillingSetupStatus(enum.IntEnum): """ The possible statuses of a BillingSetup. @@ -1786,9 +2294,12 @@ class BillingSetupStatus(enum.IntEnum): APPROVED_HELD = 3 APPROVED = 4 CANCELLED = 5 +''' +BillingSetupStatusEnum = BillingSetupStatusEnum() # For __getattribute__ -class BrandSafetySuitabilityEnum(object): +class BrandSafetySuitabilityEnum(_CreateEnumTypeUponFirstAccess): + BrandSafetySuitability = '''\ class BrandSafetySuitability(enum.IntEnum): """ 3-Tier brand safety suitability control. @@ -1825,9 +2336,12 @@ class BrandSafetySuitability(enum.IntEnum): EXPANDED_INVENTORY = 2 STANDARD_INVENTORY = 3 LIMITED_INVENTORY = 4 +''' +BrandSafetySuitabilityEnum = BrandSafetySuitabilityEnum() # For __getattribute__ -class BudgetDeliveryMethodEnum(object): +class BudgetDeliveryMethodEnum(_CreateEnumTypeUponFirstAccess): + BudgetDeliveryMethod = '''\ class BudgetDeliveryMethod(enum.IntEnum): """ Possible delivery methods of a Budget. @@ -1844,9 +2358,12 @@ class BudgetDeliveryMethod(enum.IntEnum): UNKNOWN = 1 STANDARD = 2 ACCELERATED = 3 +''' +BudgetDeliveryMethodEnum = BudgetDeliveryMethodEnum() # For __getattribute__ -class BudgetPeriodEnum(object): +class BudgetPeriodEnum(_CreateEnumTypeUponFirstAccess): + BudgetPeriod = '''\ class BudgetPeriod(enum.IntEnum): """ Possible period of a Budget. @@ -1855,17 +2372,16 @@ class BudgetPeriod(enum.IntEnum): UNSPECIFIED (int): Not specified. UNKNOWN (int): Used for return value only. Represents value unknown in this version. DAILY (int): Daily budget. - CUSTOM (int): Custom budget. - FIXED_DAILY (int): Fixed daily budget. """ UNSPECIFIED = 0 UNKNOWN = 1 DAILY = 2 - CUSTOM = 3 - FIXED_DAILY = 4 +''' +BudgetPeriodEnum = BudgetPeriodEnum() # For __getattribute__ -class BudgetStatusEnum(object): +class BudgetStatusEnum(_CreateEnumTypeUponFirstAccess): + BudgetStatus = '''\ class BudgetStatus(enum.IntEnum): """ Possible statuses of a Budget. @@ -1880,9 +2396,12 @@ class BudgetStatus(enum.IntEnum): UNKNOWN = 1 ENABLED = 2 REMOVED = 3 +''' +BudgetStatusEnum = BudgetStatusEnum() # For __getattribute__ -class BudgetTypeEnum(object): +class BudgetTypeEnum(_CreateEnumTypeUponFirstAccess): + BudgetType = '''\ class BudgetType(enum.IntEnum): """ Possible Budget types. @@ -1912,9 +2431,12 @@ class BudgetType(enum.IntEnum): STANDARD = 2 HOTEL_ADS_COMMISSION = 3 FIXED_CPA = 4 +''' +BudgetTypeEnum = BudgetTypeEnum() # For __getattribute__ -class CallConversionReportingStateEnum(object): +class CallConversionReportingStateEnum(_CreateEnumTypeUponFirstAccess): + CallConversionReportingState = '''\ class CallConversionReportingState(enum.IntEnum): """ Possible data types for a call conversion action state. @@ -1933,9 +2455,12 @@ class CallConversionReportingState(enum.IntEnum): DISABLED = 2 USE_ACCOUNT_LEVEL_CALL_CONVERSION_ACTION = 3 USE_RESOURCE_LEVEL_CALL_CONVERSION_ACTION = 4 +''' +CallConversionReportingStateEnum = CallConversionReportingStateEnum() # For __getattribute__ -class CallPlaceholderFieldEnum(object): +class CallPlaceholderFieldEnum(_CreateEnumTypeUponFirstAccess): + CallPlaceholderField = '''\ class CallPlaceholderField(enum.IntEnum): """ Possible values for Call placeholder fields. @@ -1963,9 +2488,12 @@ class CallPlaceholderField(enum.IntEnum): TRACKED = 4 CONVERSION_TYPE_ID = 5 CONVERSION_REPORTING_STATE = 6 +''' +CallPlaceholderFieldEnum = CallPlaceholderFieldEnum() # For __getattribute__ -class CalloutPlaceholderFieldEnum(object): +class CalloutPlaceholderFieldEnum(_CreateEnumTypeUponFirstAccess): + CalloutPlaceholderField = '''\ class CalloutPlaceholderField(enum.IntEnum): """ Possible values for Callout placeholder fields. @@ -1978,9 +2506,12 @@ class CalloutPlaceholderField(enum.IntEnum): UNSPECIFIED = 0 UNKNOWN = 1 CALLOUT_TEXT = 2 +''' +CalloutPlaceholderFieldEnum = CalloutPlaceholderFieldEnum() # For __getattribute__ -class CampaignBudgetErrorEnum(object): +class CampaignBudgetErrorEnum(_CreateEnumTypeUponFirstAccess): + CampaignBudgetError = '''\ class CampaignBudgetError(enum.IntEnum): """ Enum describing possible campaign budget errors. @@ -2008,6 +2539,7 @@ class CampaignBudgetError(enum.IntEnum): MONEY_AMOUNT_TOO_LARGE (int): A money amount was greater than the maximum allowed. NEGATIVE_MONEY_AMOUNT (int): A money amount was negative. NON_MULTIPLE_OF_MINIMUM_CURRENCY_UNIT (int): A money amount was not a multiple of a minimum unit. + TOTAL_BUDGET_AMOUNT_MUST_BE_UNSET_FOR_BUDGET_PERIOD_DAILY (int): Total budget amount must be unset when BudgetPeriod is DAILY. """ UNSPECIFIED = 0 UNKNOWN = 1 @@ -2026,9 +2558,13 @@ class CampaignBudgetError(enum.IntEnum): MONEY_AMOUNT_TOO_LARGE = 14 NEGATIVE_MONEY_AMOUNT = 15 NON_MULTIPLE_OF_MINIMUM_CURRENCY_UNIT = 16 + TOTAL_BUDGET_AMOUNT_MUST_BE_UNSET_FOR_BUDGET_PERIOD_DAILY = 18 +''' +CampaignBudgetErrorEnum = CampaignBudgetErrorEnum() # For __getattribute__ -class CampaignCriterionErrorEnum(object): +class CampaignCriterionErrorEnum(_CreateEnumTypeUponFirstAccess): + CampaignCriterionError = '''\ class CampaignCriterionError(enum.IntEnum): """ Enum describing possible campaign criterion errors. @@ -2065,9 +2601,12 @@ class CampaignCriterionError(enum.IntEnum): SHOPPING_CAMPAIGN_SALES_COUNTRY_NOT_SUPPORTED_FOR_SALES_CHANNEL = 10 CANNOT_ADD_EXISTING_FIELD = 11 CANNOT_UPDATE_NEGATIVE_CRITERION = 12 +''' +CampaignCriterionErrorEnum = CampaignCriterionErrorEnum() # For __getattribute__ -class CampaignCriterionStatusEnum(object): +class CampaignCriterionStatusEnum(_CreateEnumTypeUponFirstAccess): + CampaignCriterionStatus = '''\ class CampaignCriterionStatus(enum.IntEnum): """ The possible statuses of a CampaignCriterion. @@ -2086,9 +2625,12 @@ class CampaignCriterionStatus(enum.IntEnum): ENABLED = 2 PAUSED = 3 REMOVED = 4 +''' +CampaignCriterionStatusEnum = CampaignCriterionStatusEnum() # For __getattribute__ -class CampaignDraftErrorEnum(object): +class CampaignDraftErrorEnum(_CreateEnumTypeUponFirstAccess): + CampaignDraftError = '''\ class CampaignDraftError(enum.IntEnum): """ Enum describing possible campaign draft errors. @@ -2124,9 +2666,12 @@ class CampaignDraftError(enum.IntEnum): INVALID_STATUS_TRANSITION = 9 MAX_NUMBER_OF_DRAFTS_PER_CAMPAIGN_REACHED = 10 LIST_ERRORS_FOR_PROMOTED_DRAFT_ONLY = 11 +''' +CampaignDraftErrorEnum = CampaignDraftErrorEnum() # For __getattribute__ -class CampaignDraftStatusEnum(object): +class CampaignDraftStatusEnum(_CreateEnumTypeUponFirstAccess): + CampaignDraftStatus = '''\ class CampaignDraftStatus(enum.IntEnum): """ Possible statuses of a campaign draft. @@ -2153,9 +2698,12 @@ class CampaignDraftStatus(enum.IntEnum): PROMOTING = 5 PROMOTED = 4 PROMOTE_FAILED = 6 +''' +CampaignDraftStatusEnum = CampaignDraftStatusEnum() # For __getattribute__ -class CampaignErrorEnum(object): +class CampaignErrorEnum(_CreateEnumTypeUponFirstAccess): + CampaignError = '''\ class CampaignError(enum.IntEnum): """ Enum describing possible campaign errors. @@ -2179,9 +2727,9 @@ class CampaignError(enum.IntEnum): INCOMPATIBLE_CAMPAIGN_FIELD (int): Two fields are in conflicting modes. INVALID_CAMPAIGN_NAME (int): Campaign name cannot be used. INVALID_AD_SERVING_OPTIMIZATION_STATUS (int): Given status is invalid. - INVALID_TRACKING_URL (int): Error in the campaign level tracking url. - CANNOT_SET_BOTH_TRACKING_URL_TEMPLATE_AND_TRACKING_SETTING (int): Cannot set both tracking url template and tracking setting. An user has - to clear legacy tracking setting in order to add tracking url template. + INVALID_TRACKING_URL (int): Error in the campaign level tracking URL. + CANNOT_SET_BOTH_TRACKING_URL_TEMPLATE_AND_TRACKING_SETTING (int): Cannot set both tracking URL template and tracking setting. A user has + to clear legacy tracking setting in order to add tracking URL template. MAX_IMPRESSIONS_NOT_IN_RANGE (int): The maximum number of impressions for Frequency Cap should be an integer greater than 0. TIME_UNIT_NOT_SUPPORTED (int): Only the Day, Week and Month time units are supported. @@ -2195,8 +2743,6 @@ class CampaignError(enum.IntEnum): CAMPAIGN_LABEL_ALREADY_EXISTS (int): The label has already been attached to the campaign. MISSING_SHOPPING_SETTING (int): A ShoppingSetting was not found when creating a shopping campaign. INVALID_SHOPPING_SALES_COUNTRY (int): The country in shopping setting is not an allowed country. - MISSING_UNIVERSAL_APP_CAMPAIGN_SETTING (int): A Campaign with channel sub type UNIVERSAL\_APP\_CAMPAIGN must have a - UniversalAppCampaignSetting specified. ADVERTISING_CHANNEL_TYPE_NOT_AVAILABLE_FOR_ACCOUNT_TYPE (int): The requested channel type is not available according to the customer's account setting. INVALID_ADVERTISING_CHANNEL_SUB_TYPE (int): The AdvertisingChannelSubType is not a valid subtype of the primary @@ -2216,6 +2762,10 @@ class CampaignError(enum.IntEnum): specified campaign type. MERCHANT_NOT_ALLOWED_FOR_COMPARISON_LISTING_ADS (int): The merchant does not support the creation of campaigns for Shopping Comparison Listing Ads. + INSUFFICIENT_APP_INSTALLS_COUNT (int): The App campaign for engagement cannot be created because there aren't + enough installs. + SENSITIVE_CATEGORY_APP (int): The App campaign for engagement cannot be created because the app is + sensitive. """ UNSPECIFIED = 0 UNKNOWN = 1 @@ -2244,7 +2794,6 @@ class CampaignError(enum.IntEnum): CAMPAIGN_LABEL_ALREADY_EXISTS = 25 MISSING_SHOPPING_SETTING = 26 INVALID_SHOPPING_SALES_COUNTRY = 27 - MISSING_UNIVERSAL_APP_CAMPAIGN_SETTING = 30 ADVERTISING_CHANNEL_TYPE_NOT_AVAILABLE_FOR_ACCOUNT_TYPE = 31 INVALID_ADVERTISING_CHANNEL_SUB_TYPE = 32 AT_LEAST_ONE_CONVERSION_MUST_BE_SELECTED = 33 @@ -2258,9 +2807,14 @@ class CampaignError(enum.IntEnum): APP_NOT_FOUND = 41 SHOPPING_ENABLE_LOCAL_NOT_SUPPORTED_FOR_CAMPAIGN_TYPE = 42 MERCHANT_NOT_ALLOWED_FOR_COMPARISON_LISTING_ADS = 43 + INSUFFICIENT_APP_INSTALLS_COUNT = 44 + SENSITIVE_CATEGORY_APP = 45 +''' +CampaignErrorEnum = CampaignErrorEnum() # For __getattribute__ -class CampaignExperimentErrorEnum(object): +class CampaignExperimentErrorEnum(_CreateEnumTypeUponFirstAccess): + CampaignExperimentError = '''\ class CampaignExperimentError(enum.IntEnum): """ Enum describing possible campaign experiment errors. @@ -2298,9 +2852,12 @@ class CampaignExperimentError(enum.IntEnum): EXPERIMENT_DURATIONS_MUST_NOT_OVERLAP = 9 EXPERIMENT_DURATION_MUST_BE_WITHIN_CAMPAIGN_DURATION = 10 CANNOT_MUTATE_EXPERIMENT_DUE_TO_STATUS = 11 +''' +CampaignExperimentErrorEnum = CampaignExperimentErrorEnum() # For __getattribute__ -class CampaignExperimentStatusEnum(object): +class CampaignExperimentStatusEnum(_CreateEnumTypeUponFirstAccess): + CampaignExperimentStatus = '''\ class CampaignExperimentStatus(enum.IntEnum): """ Possible statuses of a campaign experiment. @@ -2335,9 +2892,12 @@ class CampaignExperimentStatus(enum.IntEnum): PROMOTION_FAILED = 9 PROMOTED = 7 ENDED_MANUALLY = 10 +''' +CampaignExperimentStatusEnum = CampaignExperimentStatusEnum() # For __getattribute__ -class CampaignExperimentTrafficSplitTypeEnum(object): +class CampaignExperimentTrafficSplitTypeEnum(_CreateEnumTypeUponFirstAccess): + CampaignExperimentTrafficSplitType = '''\ class CampaignExperimentTrafficSplitType(enum.IntEnum): """ Enum of strategies for splitting traffic between base and experiment @@ -2355,9 +2915,12 @@ class CampaignExperimentTrafficSplitType(enum.IntEnum): UNKNOWN = 1 RANDOM_QUERY = 2 COOKIE = 3 +''' +CampaignExperimentTrafficSplitTypeEnum = CampaignExperimentTrafficSplitTypeEnum() # For __getattribute__ -class CampaignExperimentTypeEnum(object): +class CampaignExperimentTypeEnum(_CreateEnumTypeUponFirstAccess): + CampaignExperimentType = '''\ class CampaignExperimentType(enum.IntEnum): """ Indicates if this campaign is a normal campaign, @@ -2380,9 +2943,12 @@ class CampaignExperimentType(enum.IntEnum): BASE = 2 DRAFT = 3 EXPERIMENT = 4 +''' +CampaignExperimentTypeEnum = CampaignExperimentTypeEnum() # For __getattribute__ -class CampaignFeedErrorEnum(object): +class CampaignFeedErrorEnum(_CreateEnumTypeUponFirstAccess): + CampaignFeedError = '''\ class CampaignFeedError(enum.IntEnum): """ Enum describing possible campaign feed errors. @@ -2397,6 +2963,8 @@ class CampaignFeedError(enum.IntEnum): CANNOT_MODIFY_REMOVED_CAMPAIGN_FEED (int): Cannot update removed campaign feed. INVALID_PLACEHOLDER_TYPE (int): Invalid placeholder type. MISSING_FEEDMAPPING_FOR_PLACEHOLDER_TYPE (int): Feed mapping for this placeholder type does not exist. + NO_EXISTING_LOCATION_CUSTOMER_FEED (int): Location CampaignFeeds cannot be created unless there is a location + CustomerFeed for the specified feed. """ UNSPECIFIED = 0 UNKNOWN = 1 @@ -2406,9 +2974,13 @@ class CampaignFeedError(enum.IntEnum): CANNOT_MODIFY_REMOVED_CAMPAIGN_FEED = 6 INVALID_PLACEHOLDER_TYPE = 7 MISSING_FEEDMAPPING_FOR_PLACEHOLDER_TYPE = 8 + NO_EXISTING_LOCATION_CUSTOMER_FEED = 9 +''' +CampaignFeedErrorEnum = CampaignFeedErrorEnum() # For __getattribute__ -class CampaignServingStatusEnum(object): +class CampaignServingStatusEnum(_CreateEnumTypeUponFirstAccess): + CampaignServingStatus = '''\ class CampaignServingStatus(enum.IntEnum): """ Possible serving statuses of a campaign. @@ -2431,9 +3003,12 @@ class CampaignServingStatus(enum.IntEnum): ENDED = 4 PENDING = 5 SUSPENDED = 6 +''' +CampaignServingStatusEnum = CampaignServingStatusEnum() # For __getattribute__ -class CampaignSharedSetErrorEnum(object): +class CampaignSharedSetErrorEnum(_CreateEnumTypeUponFirstAccess): + CampaignSharedSetError = '''\ class CampaignSharedSetError(enum.IntEnum): """ Enum describing possible campaign shared set errors. @@ -2446,9 +3021,12 @@ class CampaignSharedSetError(enum.IntEnum): UNSPECIFIED = 0 UNKNOWN = 1 SHARED_SET_ACCESS_DENIED = 2 +''' +CampaignSharedSetErrorEnum = CampaignSharedSetErrorEnum() # For __getattribute__ -class CampaignSharedSetStatusEnum(object): +class CampaignSharedSetStatusEnum(_CreateEnumTypeUponFirstAccess): + CampaignSharedSetStatus = '''\ class CampaignSharedSetStatus(enum.IntEnum): """ Enum listing the possible campaign shared set statuses. @@ -2463,9 +3041,12 @@ class CampaignSharedSetStatus(enum.IntEnum): UNKNOWN = 1 ENABLED = 2 REMOVED = 3 +''' +CampaignSharedSetStatusEnum = CampaignSharedSetStatusEnum() # For __getattribute__ -class CampaignStatusEnum(object): +class CampaignStatusEnum(_CreateEnumTypeUponFirstAccess): + CampaignStatus = '''\ class CampaignStatus(enum.IntEnum): """ Possible statuses of a campaign. @@ -2482,9 +3063,12 @@ class CampaignStatus(enum.IntEnum): ENABLED = 2 PAUSED = 3 REMOVED = 4 +''' +CampaignStatusEnum = CampaignStatusEnum() # For __getattribute__ -class ChangeStatusErrorEnum(object): +class ChangeStatusErrorEnum(_CreateEnumTypeUponFirstAccess): + ChangeStatusError = '''\ class ChangeStatusError(enum.IntEnum): """ Enum describing possible change status errors. @@ -2497,9 +3081,12 @@ class ChangeStatusError(enum.IntEnum): UNSPECIFIED = 0 UNKNOWN = 1 START_DATE_TOO_OLD = 3 +''' +ChangeStatusErrorEnum = ChangeStatusErrorEnum() # For __getattribute__ -class ChangeStatusOperationEnum(object): +class ChangeStatusOperationEnum(_CreateEnumTypeUponFirstAccess): + ChangeStatusOperation = '''\ class ChangeStatusOperation(enum.IntEnum): """ Status of the changed resource @@ -2517,9 +3104,12 @@ class ChangeStatusOperation(enum.IntEnum): ADDED = 2 CHANGED = 3 REMOVED = 4 +''' +ChangeStatusOperationEnum = ChangeStatusOperationEnum() # For __getattribute__ -class ChangeStatusResourceTypeEnum(object): +class ChangeStatusResourceTypeEnum(_CreateEnumTypeUponFirstAccess): + ChangeStatusResourceType = '''\ class ChangeStatusResourceType(enum.IntEnum): """ Enum listing the resource types support by the ChangeStatus resource. @@ -2551,9 +3141,12 @@ class ChangeStatusResourceType(enum.IntEnum): AD_GROUP_FEED = 11 CAMPAIGN_FEED = 12 AD_GROUP_BID_MODIFIER = 13 +''' +ChangeStatusResourceTypeEnum = ChangeStatusResourceTypeEnum() # For __getattribute__ -class ClickTypeEnum(object): +class ClickTypeEnum(_CreateEnumTypeUponFirstAccess): + ClickType = '''\ class ClickType(enum.IntEnum): """ Enumerates Google Ads click types. @@ -2670,9 +3263,12 @@ class ClickType(enum.IntEnum): PRICE_EXTENSION = 54 HOTEL_BOOK_ON_GOOGLE_ROOM_SELECTION = 55 SHOPPING_COMPARISON_LISTING = 56 +''' +ClickTypeEnum = ClickTypeEnum() # For __getattribute__ -class CollectionSizeErrorEnum(object): +class CollectionSizeErrorEnum(_CreateEnumTypeUponFirstAccess): + CollectionSizeError = '''\ class CollectionSizeError(enum.IntEnum): """ Enum describing possible collection size errors. @@ -2687,9 +3283,12 @@ class CollectionSizeError(enum.IntEnum): UNKNOWN = 1 TOO_FEW = 2 TOO_MANY = 3 +''' +CollectionSizeErrorEnum = CollectionSizeErrorEnum() # For __getattribute__ -class ContentLabelTypeEnum(object): +class ContentLabelTypeEnum(_CreateEnumTypeUponFirstAccess): + ContentLabelType = '''\ class ContentLabelType(enum.IntEnum): """ Enum listing the content label types supported by ContentLabel criterion. @@ -2700,7 +3299,6 @@ class ContentLabelType(enum.IntEnum): SEXUALLY_SUGGESTIVE (int): Sexually suggestive content. BELOW_THE_FOLD (int): Below the fold placement. PARKED_DOMAIN (int): Parked domain. - GAME (int): Game. JUVENILE (int): Juvenile, gross & bizarre content. PROFANITY (int): Profanity & rough language. TRAGEDY (int): Death & tragedy. @@ -2712,13 +3310,13 @@ class ContentLabelType(enum.IntEnum): VIDEO_NOT_YET_RATED (int): Content rating: not yet rated. EMBEDDED_VIDEO (int): Embedded video. LIVE_STREAMING_VIDEO (int): Live streaming video. + SOCIAL_ISSUES (int): Sensitive social issues. """ UNSPECIFIED = 0 UNKNOWN = 1 SEXUALLY_SUGGESTIVE = 2 BELOW_THE_FOLD = 3 PARKED_DOMAIN = 4 - GAME = 5 JUVENILE = 6 PROFANITY = 7 TRAGEDY = 8 @@ -2730,9 +3328,13 @@ class ContentLabelType(enum.IntEnum): VIDEO_NOT_YET_RATED = 14 EMBEDDED_VIDEO = 15 LIVE_STREAMING_VIDEO = 16 + SOCIAL_ISSUES = 17 +''' +ContentLabelTypeEnum = ContentLabelTypeEnum() # For __getattribute__ -class ContextErrorEnum(object): +class ContextErrorEnum(_CreateEnumTypeUponFirstAccess): + ContextError = '''\ class ContextError(enum.IntEnum): """ Enum describing possible context errors. @@ -2747,9 +3349,12 @@ class ContextError(enum.IntEnum): UNKNOWN = 1 OPERATION_NOT_PERMITTED_FOR_CONTEXT = 2 OPERATION_NOT_PERMITTED_FOR_REMOVED_RESOURCE = 3 +''' +ContextErrorEnum = ContextErrorEnum() # For __getattribute__ -class ConversionActionCategoryEnum(object): +class ConversionActionCategoryEnum(_CreateEnumTypeUponFirstAccess): + ConversionActionCategory = '''\ class ConversionActionCategory(enum.IntEnum): """ The category of conversions that are associated with a ConversionAction. @@ -2763,6 +3368,23 @@ class ConversionActionCategory(enum.IntEnum): SIGNUP (int): Signup user action. LEAD (int): Lead-generating action. DOWNLOAD (int): Software download action (as for an app). + ADD_TO_CART (int): The addition of items to a shopping cart or bag on an advertiser site. + BEGIN_CHECKOUT (int): When someone enters the checkout flow on an advertiser site. + SUBSCRIBE_PAID (int): The start of a paid subscription for a product or service. + PHONE_CALL_LEAD (int): A call to indicate interest in an advertiser's offering. + IMPORTED_LEAD (int): A lead conversion imported from an external source into Google Ads. + SUBMIT_LEAD_FORM (int): A submission of a form on an advertiser site indicating business + interest. + BOOK_APPOINTMENT (int): A booking of an appointment with an advertiser's business. + REQUEST_QUOTE (int): A quote or price estimate request. + GET_DIRECTIONS (int): A search for an advertiser's business location with intention to visit. + OUTBOUND_CLICK (int): A click to an advertiser's partner's site. + CONTACT (int): A call, SMS, email, chat or other type of contact to an advertiser. + ENGAGEMENT (int): A website engagement event such as long site time or a Google Analytics + (GA) Smart Goal. Intended to be used for GA, Firebase, GA Gold goal + imports. + STORE_VISIT (int): A visit to a physical store location. + STORE_SALE (int): A sale occurring in a physical store. """ UNSPECIFIED = 0 UNKNOWN = 1 @@ -2772,9 +3394,26 @@ class ConversionActionCategory(enum.IntEnum): SIGNUP = 5 LEAD = 6 DOWNLOAD = 7 - - -class ConversionActionCountingTypeEnum(object): + ADD_TO_CART = 8 + BEGIN_CHECKOUT = 9 + SUBSCRIBE_PAID = 10 + PHONE_CALL_LEAD = 11 + IMPORTED_LEAD = 12 + SUBMIT_LEAD_FORM = 13 + BOOK_APPOINTMENT = 14 + REQUEST_QUOTE = 15 + GET_DIRECTIONS = 16 + OUTBOUND_CLICK = 17 + CONTACT = 18 + ENGAGEMENT = 19 + STORE_VISIT = 20 + STORE_SALE = 21 +''' +ConversionActionCategoryEnum = ConversionActionCategoryEnum() # For __getattribute__ + + +class ConversionActionCountingTypeEnum(_CreateEnumTypeUponFirstAccess): + ConversionActionCountingType = '''\ class ConversionActionCountingType(enum.IntEnum): """ Indicates how conversions for this action will be counted. For more @@ -2790,9 +3429,12 @@ class ConversionActionCountingType(enum.IntEnum): UNKNOWN = 1 ONE_PER_CLICK = 2 MANY_PER_CLICK = 3 +''' +ConversionActionCountingTypeEnum = ConversionActionCountingTypeEnum() # For __getattribute__ -class ConversionActionErrorEnum(object): +class ConversionActionErrorEnum(_CreateEnumTypeUponFirstAccess): + ConversionActionError = '''\ class ConversionActionError(enum.IntEnum): """ Enum describing possible conversion action errors. @@ -2815,6 +3457,8 @@ class ConversionActionError(enum.IntEnum): DATA_DRIVEN_MODEL_UNKNOWN (int): The attribution model cannot be set to DATA\_DRIVEN because the data-driven model is unavailable or the conversion action was newly added. + CREATION_NOT_SUPPORTED (int): Creation of this conversion action type isn't supported by Google + Ads API. """ UNSPECIFIED = 0 UNKNOWN = 1 @@ -2826,9 +3470,13 @@ class ConversionActionError(enum.IntEnum): DATA_DRIVEN_MODEL_EXPIRED = 7 DATA_DRIVEN_MODEL_STALE = 8 DATA_DRIVEN_MODEL_UNKNOWN = 9 + CREATION_NOT_SUPPORTED = 10 +''' +ConversionActionErrorEnum = ConversionActionErrorEnum() # For __getattribute__ -class ConversionActionStatusEnum(object): +class ConversionActionStatusEnum(_CreateEnumTypeUponFirstAccess): + ConversionActionStatus = '''\ class ConversionActionStatus(enum.IntEnum): """ Possible statuses of a conversion action. @@ -2846,9 +3494,12 @@ class ConversionActionStatus(enum.IntEnum): ENABLED = 2 REMOVED = 3 HIDDEN = 4 +''' +ConversionActionStatusEnum = ConversionActionStatusEnum() # For __getattribute__ -class ConversionActionTypeEnum(object): +class ConversionActionTypeEnum(_CreateEnumTypeUponFirstAccess): + ConversionActionType = '''\ class ConversionActionType(enum.IntEnum): """ Possible types of a conversion action. @@ -2869,6 +3520,27 @@ class ConversionActionType(enum.IntEnum): WEBPAGE (int): Conversions that occur on a webpage. WEBSITE_CALL (int): Conversions that occur when a user calls a dynamically-generated phone number from an advertiser's website. + STORE_SALES_DIRECT_UPLOAD (int): Store Sales conversion based on first-party or third-party merchant + data uploads. + Only whitelisted customers can use store sales direct upload types. + STORE_SALES (int): Store Sales conversion based on first-party or third-party merchant + data uploads and/or from in-store purchases using cards from payment + networks. + Only whitelisted customers can use store sales types. + FIREBASE_ANDROID_FIRST_OPEN (int): Android app first open conversions tracked via Firebase. + FIREBASE_ANDROID_IN_APP_PURCHASE (int): Android app in app purchase conversions tracked via Firebase. + FIREBASE_ANDROID_CUSTOM (int): Android app custom conversions tracked via Firebase. + FIREBASE_IOS_FIRST_OPEN (int): iOS app first open conversions tracked via Firebase. + FIREBASE_IOS_IN_APP_PURCHASE (int): iOS app in app purchase conversions tracked via Firebase. + FIREBASE_IOS_CUSTOM (int): iOS app custom conversions tracked via Firebase. + THIRD_PARTY_APP_ANALYTICS_ANDROID_FIRST_OPEN (int): Android app first open conversions tracked via Third Party App Analytics. + THIRD_PARTY_APP_ANALYTICS_ANDROID_IN_APP_PURCHASE (int): Android app in app purchase conversions tracked via Third Party App + Analytics. + THIRD_PARTY_APP_ANALYTICS_ANDROID_CUSTOM (int): Android app custom conversions tracked via Third Party App Analytics. + THIRD_PARTY_APP_ANALYTICS_IOS_FIRST_OPEN (int): iOS app first open conversions tracked via Third Party App Analytics. + THIRD_PARTY_APP_ANALYTICS_IOS_IN_APP_PURCHASE (int): iOS app in app purchase conversions tracked via Third Party App + Analytics. + THIRD_PARTY_APP_ANALYTICS_IOS_CUSTOM (int): iOS app custom conversions tracked via Third Party App Analytics. """ UNSPECIFIED = 0 UNKNOWN = 1 @@ -2880,9 +3552,26 @@ class ConversionActionType(enum.IntEnum): UPLOAD_CLICKS = 7 WEBPAGE = 8 WEBSITE_CALL = 9 - - -class ConversionAdjustmentTypeEnum(object): + STORE_SALES_DIRECT_UPLOAD = 10 + STORE_SALES = 11 + FIREBASE_ANDROID_FIRST_OPEN = 12 + FIREBASE_ANDROID_IN_APP_PURCHASE = 13 + FIREBASE_ANDROID_CUSTOM = 14 + FIREBASE_IOS_FIRST_OPEN = 15 + FIREBASE_IOS_IN_APP_PURCHASE = 16 + FIREBASE_IOS_CUSTOM = 17 + THIRD_PARTY_APP_ANALYTICS_ANDROID_FIRST_OPEN = 18 + THIRD_PARTY_APP_ANALYTICS_ANDROID_IN_APP_PURCHASE = 19 + THIRD_PARTY_APP_ANALYTICS_ANDROID_CUSTOM = 20 + THIRD_PARTY_APP_ANALYTICS_IOS_FIRST_OPEN = 21 + THIRD_PARTY_APP_ANALYTICS_IOS_IN_APP_PURCHASE = 22 + THIRD_PARTY_APP_ANALYTICS_IOS_CUSTOM = 23 +''' +ConversionActionTypeEnum = ConversionActionTypeEnum() # For __getattribute__ + + +class ConversionAdjustmentTypeEnum(_CreateEnumTypeUponFirstAccess): + ConversionAdjustmentType = '''\ class ConversionAdjustmentType(enum.IntEnum): """ The different actions advertisers can take to adjust the conversions that @@ -2899,9 +3588,12 @@ class ConversionAdjustmentType(enum.IntEnum): UNKNOWN = 1 RETRACTION = 2 RESTATEMENT = 3 +''' +ConversionAdjustmentTypeEnum = ConversionAdjustmentTypeEnum() # For __getattribute__ -class ConversionAdjustmentUploadErrorEnum(object): +class ConversionAdjustmentUploadErrorEnum(_CreateEnumTypeUponFirstAccess): + ConversionAdjustmentUploadError = '''\ class ConversionAdjustmentUploadError(enum.IntEnum): """ Enum describing possible conversion adjustment upload errors. @@ -2926,6 +3618,8 @@ class ConversionAdjustmentUploadError(enum.IntEnum): TOO_RECENT_CONVERSION (int): The conversion was created too recently. CANNOT_RESTATE_CONVERSION_ACTION_THAT_ALWAYS_USES_DEFAULT_CONVERSION_VALUE (int): Restatements cannot be reported for a conversion action that always uses the default value. + TOO_MANY_ADJUSTMENTS_IN_REQUEST (int): The request contained more than 2000 adjustments. + TOO_MANY_ADJUSTMENTS (int): The conversion has been adjusted too many times. """ UNSPECIFIED = 0 UNKNOWN = 1 @@ -2938,9 +3632,14 @@ class ConversionAdjustmentUploadError(enum.IntEnum): MORE_RECENT_RESTATEMENT_FOUND = 8 TOO_RECENT_CONVERSION = 9 CANNOT_RESTATE_CONVERSION_ACTION_THAT_ALWAYS_USES_DEFAULT_CONVERSION_VALUE = 10 + TOO_MANY_ADJUSTMENTS_IN_REQUEST = 11 + TOO_MANY_ADJUSTMENTS = 12 +''' +ConversionAdjustmentUploadErrorEnum = ConversionAdjustmentUploadErrorEnum() # For __getattribute__ -class ConversionAttributionEventTypeEnum(object): +class ConversionAttributionEventTypeEnum(_CreateEnumTypeUponFirstAccess): + ConversionAttributionEventType = '''\ class ConversionAttributionEventType(enum.IntEnum): """ The event type of conversions that are attributed to. @@ -2955,9 +3654,12 @@ class ConversionAttributionEventType(enum.IntEnum): UNKNOWN = 1 IMPRESSION = 2 INTERACTION = 3 +''' +ConversionAttributionEventTypeEnum = ConversionAttributionEventTypeEnum() # For __getattribute__ -class ConversionLagBucketEnum(object): +class ConversionLagBucketEnum(_CreateEnumTypeUponFirstAccess): + ConversionLagBucket = '''\ class ConversionLagBucket(enum.IntEnum): """ Enum representing the number of days between impression and conversion. @@ -3023,9 +3725,12 @@ class ConversionLagBucket(enum.IntEnum): THIRTY_TO_FORTY_FIVE_DAYS = 18 FORTY_FIVE_TO_SIXTY_DAYS = 19 SIXTY_TO_NINETY_DAYS = 20 +''' +ConversionLagBucketEnum = ConversionLagBucketEnum() # For __getattribute__ -class ConversionOrAdjustmentLagBucketEnum(object): +class ConversionOrAdjustmentLagBucketEnum(_CreateEnumTypeUponFirstAccess): + ConversionOrAdjustmentLagBucket = '''\ class ConversionOrAdjustmentLagBucket(enum.IntEnum): """ Enum representing the number of days between the impression and the @@ -3158,9 +3863,12 @@ class ConversionOrAdjustmentLagBucket(enum.IntEnum): ADJUSTMENT_NINETY_TO_ONE_HUNDRED_AND_FORTY_FIVE_DAYS = 40 CONVERSION_UNKNOWN = 41 ADJUSTMENT_UNKNOWN = 42 +''' +ConversionOrAdjustmentLagBucketEnum = ConversionOrAdjustmentLagBucketEnum() # For __getattribute__ -class ConversionUploadErrorEnum(object): +class ConversionUploadErrorEnum(_CreateEnumTypeUponFirstAccess): + ConversionUploadError = '''\ class ConversionUploadError(enum.IntEnum): """ Enum describing possible conversion upload errors. @@ -3176,7 +3884,7 @@ class ConversionUploadError(enum.IntEnum): imported or occurred outside of the click through lookback window for the specified conversion action. TOO_RECENT_GCLID (int): The click associated with the given gclid occurred too recently. Please - try uploading again after 24 hours have passed since the click occurred. + try uploading again after 6 hours have passed since the click occurred. GCLID_NOT_FOUND (int): The click associated with the given gclid could not be found in the system. This can happen if Google Click IDs are collected for non Google Ads clicks. @@ -3201,7 +3909,7 @@ class ConversionUploadError(enum.IntEnum): already exists in our system. DUPLICATE_ORDER_ID (int): The request contained two or more conversions with the same order id and conversion action combination. - TOO_RECENT_CALL (int): The call occurred too recently. Please try uploading again after 24 hours + TOO_RECENT_CALL (int): The call occurred too recently. Please try uploading again after 6 hours have passed since the call occurred. EXPIRED_CALL (int): The click that initiated the call is too old for this conversion to be imported. @@ -3237,9 +3945,12 @@ class ConversionUploadError(enum.IntEnum): CONVERSION_PRECEDES_CALL = 20 CONVERSION_TRACKING_NOT_ENABLED_AT_CALL_TIME = 21 UNPARSEABLE_CALLERS_PHONE_NUMBER = 22 +''' +ConversionUploadErrorEnum = ConversionUploadErrorEnum() # For __getattribute__ -class CountryCodeErrorEnum(object): +class CountryCodeErrorEnum(_CreateEnumTypeUponFirstAccess): + CountryCodeError = '''\ class CountryCodeError(enum.IntEnum): """ Enum describing country code errors. @@ -3252,9 +3963,12 @@ class CountryCodeError(enum.IntEnum): UNSPECIFIED = 0 UNKNOWN = 1 INVALID_COUNTRY_CODE = 2 +''' +CountryCodeErrorEnum = CountryCodeErrorEnum() # For __getattribute__ -class CriterionCategoryChannelAvailabilityModeEnum(object): +class CriterionCategoryChannelAvailabilityModeEnum(_CreateEnumTypeUponFirstAccess): + CriterionCategoryChannelAvailabilityMode = '''\ class CriterionCategoryChannelAvailabilityMode(enum.IntEnum): """ Enum containing the possible CriterionCategoryChannelAvailabilityMode. @@ -3273,9 +3987,12 @@ class CriterionCategoryChannelAvailabilityMode(enum.IntEnum): ALL_CHANNELS = 2 CHANNEL_TYPE_AND_ALL_SUBTYPES = 3 CHANNEL_TYPE_AND_SUBSET_SUBTYPES = 4 +''' +CriterionCategoryChannelAvailabilityModeEnum = CriterionCategoryChannelAvailabilityModeEnum() # For __getattribute__ -class CriterionCategoryLocaleAvailabilityModeEnum(object): +class CriterionCategoryLocaleAvailabilityModeEnum(_CreateEnumTypeUponFirstAccess): + CriterionCategoryLocaleAvailabilityMode = '''\ class CriterionCategoryLocaleAvailabilityMode(enum.IntEnum): """ Enum containing the possible CriterionCategoryLocaleAvailabilityMode. @@ -3297,9 +4014,12 @@ class CriterionCategoryLocaleAvailabilityMode(enum.IntEnum): COUNTRY_AND_ALL_LANGUAGES = 3 LANGUAGE_AND_ALL_COUNTRIES = 4 COUNTRY_AND_LANGUAGE = 5 +''' +CriterionCategoryLocaleAvailabilityModeEnum = CriterionCategoryLocaleAvailabilityModeEnum() # For __getattribute__ -class CriterionErrorEnum(object): +class CriterionErrorEnum(_CreateEnumTypeUponFirstAccess): + CriterionError = '''\ class CriterionError(enum.IntEnum): """ Enum describing possible criterion errors. @@ -3333,11 +4053,6 @@ class CriterionError(enum.IntEnum): CANNOT_EXCLUDE_CRITERIA_TYPE (int): Criteria type can not be excluded by the customer, like AOL account type cannot target site type criteria. CANNOT_ADD_CRITERIA_TYPE (int): Criteria type can not be targeted. - INVALID_PRODUCT_FILTER (int): Product filter in the product criteria has invalid characters. Operand - and the argument in the filter can not have "==" or "&+". - PRODUCT_FILTER_TOO_LONG (int): Product filter in the product criteria is translated to a string as - operand1==argument1&+operand2==argument2, maximum allowed length for the - string is 255 chars. CANNOT_EXCLUDE_SIMILAR_USER_LIST (int): Not allowed to exclude similar user list. CANNOT_ADD_CLOSED_USER_LIST (int): Not allowed to target a closed user list. CANNOT_ADD_DISPLAY_ONLY_LISTS_TO_SEARCH_ONLY_CAMPAIGNS (int): Not allowed to add display only UserLists to search only campaigns. @@ -3392,23 +4107,6 @@ class CriterionError(enum.IntEnum): CANNOT_EXCLUDE_CRITERION (int): The Criterion is not allowed to be excluded. CANNOT_REMOVE_CRITERION (int): The criterion is not allowed to be removed. For example, we cannot remove any of the device criterion. - PRODUCT_SCOPE_TOO_LONG (int): The combined length of product dimension values of the product scope - criterion is too long. - PRODUCT_SCOPE_TOO_MANY_DIMENSIONS (int): Product scope contains too many dimensions. - PRODUCT_PARTITION_TOO_LONG (int): The combined length of product dimension values of the product partition - criterion is too long. - PRODUCT_PARTITION_TOO_MANY_DIMENSIONS (int): Product partition contains too many dimensions. - INVALID_PRODUCT_DIMENSION (int): The product dimension is invalid (e.g. dimension contains illegal value, - dimension type is represented with wrong class, etc). Product dimension - value can not contain "==" or "&+". - INVALID_PRODUCT_DIMENSION_TYPE (int): Product dimension type is either invalid for campaigns of this type or - cannot be used in the current context. BIDDING\_CATEGORY\_Lx and - PRODUCT\_TYPE\_Lx product dimensions must be used in ascending order of - their levels: L1, L2, L3, L4, L5... The levels must be specified - sequentially and start from L1. Furthermore, an "others" product - partition cannot be subdivided with a dimension of the same type but of - a higher level ("others" BIDDING\_CATEGORY\_L3 can be subdivided with - BRAND but not with BIDDING\_CATEGORY\_L4). INVALID_PRODUCT_BIDDING_CATEGORY (int): Bidding categories do not form a valid path in the Shopping bidding category taxonomy. MISSING_SHOPPING_SETTING (int): ShoppingSetting must be added to the campaign before ProductScope @@ -3438,6 +4136,40 @@ class CriterionError(enum.IntEnum): WEBPAGE_CRITERION_URL_EQUALS_CAN_HAVE_ONLY_ONE_CONDITION (int): Only one URL-EQUALS webpage condition is allowed in a webpage criterion and it cannot be combined with other conditions. WEBPAGE_CRITERION_NOT_SUPPORTED_ON_NON_DSA_AD_GROUP (int): A webpage criterion cannot be added to a non-DSA ad group. + CANNOT_TARGET_USER_LIST_FOR_SMART_DISPLAY_CAMPAIGNS (int): Cannot add positive user list criteria in Smart Display campaigns. + LISTING_SCOPE_TOO_MANY_DIMENSION_TYPES (int): Listing scope contains too many dimension types. + LISTING_SCOPE_TOO_MANY_IN_OPERATORS (int): Listing scope has too many IN operators. + LISTING_SCOPE_IN_OPERATOR_NOT_SUPPORTED (int): Listing scope contains IN operator on an unsupported dimension type. + DUPLICATE_LISTING_DIMENSION_TYPE (int): There are dimensions with duplicate dimension type. + DUPLICATE_LISTING_DIMENSION_VALUE (int): There are dimensions with duplicate dimension value. + CANNOT_SET_BIDS_ON_LISTING_GROUP_SUBDIVISION (int): Listing group SUBDIVISION nodes cannot have bids. + INVALID_LISTING_GROUP_HIERARCHY (int): Ad group is invalid due to the listing groups it contains. + LISTING_GROUP_UNIT_CANNOT_HAVE_CHILDREN (int): Listing group unit cannot have children. + LISTING_GROUP_SUBDIVISION_REQUIRES_OTHERS_CASE (int): Subdivided listing groups must have an "others" case. + LISTING_GROUP_REQUIRES_SAME_DIMENSION_TYPE_AS_SIBLINGS (int): Dimension type of listing group must be the same as that of its siblings. + LISTING_GROUP_ALREADY_EXISTS (int): Listing group cannot be added to the ad group because it already exists. + LISTING_GROUP_DOES_NOT_EXIST (int): Listing group referenced in the operation was not found in the ad group. + LISTING_GROUP_CANNOT_BE_REMOVED (int): Recursive removal failed because listing group subdivision is being + created or modified in this request. + INVALID_LISTING_GROUP_TYPE (int): Listing group type is not allowed for specified ad group criterion type. + LISTING_GROUP_ADD_MAY_ONLY_USE_TEMP_ID (int): Listing group in an ADD operation specifies a non temporary criterion id. + LISTING_SCOPE_TOO_LONG (int): The combined length of dimension values of the Listing scope criterion + is too long. + LISTING_SCOPE_TOO_MANY_DIMENSIONS (int): Listing scope contains too many dimensions. + LISTING_GROUP_TOO_LONG (int): The combined length of dimension values of the Listing group criterion is + too long. + LISTING_GROUP_TREE_TOO_DEEP (int): Listing group tree is too deep. + INVALID_LISTING_DIMENSION (int): Listing dimension is invalid (e.g. dimension contains illegal value, + dimension type is represented with wrong class, etc). Listing dimension + value can not contain "==" or "&+". + INVALID_LISTING_DIMENSION_TYPE (int): Listing dimension type is either invalid for campaigns of this type or + cannot be used in the current context. BIDDING\_CATEGORY\_Lx and + PRODUCT\_TYPE\_Lx dimensions must be used in ascending order of their + levels: L1, L2, L3, L4, L5... The levels must be specified sequentially + and start from L1. Furthermore, an "others" Listing group cannot be + subdivided with a dimension of the same type but of a higher level + ("others" BIDDING\_CATEGORY\_L3 can be subdivided with BRAND but not + with BIDDING\_CATEGORY\_L4). """ UNSPECIFIED = 0 UNKNOWN = 1 @@ -3463,8 +4195,6 @@ class CriterionError(enum.IntEnum): YOUTUBE_URL_UNSUPPORTED = 21 CANNOT_EXCLUDE_CRITERIA_TYPE = 22 CANNOT_ADD_CRITERIA_TYPE = 23 - INVALID_PRODUCT_FILTER = 24 - PRODUCT_FILTER_TOO_LONG = 25 CANNOT_EXCLUDE_SIMILAR_USER_LIST = 26 CANNOT_ADD_CLOSED_USER_LIST = 27 CANNOT_ADD_DISPLAY_ONLY_LISTS_TO_SEARCH_ONLY_CAMPAIGNS = 28 @@ -3511,12 +4241,6 @@ class CriterionError(enum.IntEnum): CRITERIA_TYPE_INVALID_FOR_BIDDING_STRATEGY = 67 CANNOT_EXCLUDE_CRITERION = 68 CANNOT_REMOVE_CRITERION = 69 - PRODUCT_SCOPE_TOO_LONG = 70 - PRODUCT_SCOPE_TOO_MANY_DIMENSIONS = 71 - PRODUCT_PARTITION_TOO_LONG = 72 - PRODUCT_PARTITION_TOO_MANY_DIMENSIONS = 73 - INVALID_PRODUCT_DIMENSION = 74 - INVALID_PRODUCT_DIMENSION_TYPE = 75 INVALID_PRODUCT_BIDDING_CATEGORY = 76 MISSING_SHOPPING_SETTING = 77 INVALID_MATCHING_FUNCTION = 78 @@ -3538,9 +4262,34 @@ class CriterionError(enum.IntEnum): WEBPAGE_CONDITION_URL_VALUE_TRACK_VALUE_NOT_SUPPORTED = 93 WEBPAGE_CRITERION_URL_EQUALS_CAN_HAVE_ONLY_ONE_CONDITION = 94 WEBPAGE_CRITERION_NOT_SUPPORTED_ON_NON_DSA_AD_GROUP = 95 - - -class CriterionSystemServingStatusEnum(object): + CANNOT_TARGET_USER_LIST_FOR_SMART_DISPLAY_CAMPAIGNS = 99 + LISTING_SCOPE_TOO_MANY_DIMENSION_TYPES = 100 + LISTING_SCOPE_TOO_MANY_IN_OPERATORS = 101 + LISTING_SCOPE_IN_OPERATOR_NOT_SUPPORTED = 102 + DUPLICATE_LISTING_DIMENSION_TYPE = 103 + DUPLICATE_LISTING_DIMENSION_VALUE = 104 + CANNOT_SET_BIDS_ON_LISTING_GROUP_SUBDIVISION = 105 + INVALID_LISTING_GROUP_HIERARCHY = 106 + LISTING_GROUP_UNIT_CANNOT_HAVE_CHILDREN = 107 + LISTING_GROUP_SUBDIVISION_REQUIRES_OTHERS_CASE = 108 + LISTING_GROUP_REQUIRES_SAME_DIMENSION_TYPE_AS_SIBLINGS = 109 + LISTING_GROUP_ALREADY_EXISTS = 110 + LISTING_GROUP_DOES_NOT_EXIST = 111 + LISTING_GROUP_CANNOT_BE_REMOVED = 112 + INVALID_LISTING_GROUP_TYPE = 113 + LISTING_GROUP_ADD_MAY_ONLY_USE_TEMP_ID = 114 + LISTING_SCOPE_TOO_LONG = 115 + LISTING_SCOPE_TOO_MANY_DIMENSIONS = 116 + LISTING_GROUP_TOO_LONG = 117 + LISTING_GROUP_TREE_TOO_DEEP = 118 + INVALID_LISTING_DIMENSION = 119 + INVALID_LISTING_DIMENSION_TYPE = 120 +''' +CriterionErrorEnum = CriterionErrorEnum() # For __getattribute__ + + +class CriterionSystemServingStatusEnum(_CreateEnumTypeUponFirstAccess): + CriterionSystemServingStatus = '''\ class CriterionSystemServingStatus(enum.IntEnum): """ Enumerates criterion system serving statuses. @@ -3555,9 +4304,12 @@ class CriterionSystemServingStatus(enum.IntEnum): UNKNOWN = 1 ELIGIBLE = 2 RARELY_SERVED = 3 +''' +CriterionSystemServingStatusEnum = CriterionSystemServingStatusEnum() # For __getattribute__ -class CriterionTypeEnum(object): +class CriterionTypeEnum(_CreateEnumTypeUponFirstAccess): + CriterionType = '''\ class CriterionType(enum.IntEnum): """ Enum describing possible criterion types. @@ -3628,9 +4380,30 @@ class CriterionType(enum.IntEnum): CUSTOM_AFFINITY = 29 CUSTOM_INTENT = 30 LOCATION_GROUP = 31 +''' +CriterionTypeEnum = CriterionTypeEnum() # For __getattribute__ + + +class CurrencyCodeErrorEnum(_CreateEnumTypeUponFirstAccess): + CurrencyCodeError = '''\ + class CurrencyCodeError(enum.IntEnum): + """ + Enum describing possible currency code errors. + Attributes: + UNSPECIFIED (int): Enum unspecified. + UNKNOWN (int): The received error code is not known in this version. + UNSUPPORTED (int): The currency code is not supported. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + UNSUPPORTED = 2 +''' +CurrencyCodeErrorEnum = CurrencyCodeErrorEnum() # For __getattribute__ -class CustomInterestErrorEnum(object): + +class CustomInterestErrorEnum(_CreateEnumTypeUponFirstAccess): + CustomInterestError = '''\ class CustomInterestError(enum.IntEnum): """ Enum describing possible custom interest errors. @@ -3656,9 +4429,12 @@ class CustomInterestError(enum.IntEnum): INVALID_CUSTOM_INTEREST_MEMBER_TYPE = 6 CANNOT_REMOVE_WHILE_IN_USE = 7 CANNOT_CHANGE_TYPE = 8 +''' +CustomInterestErrorEnum = CustomInterestErrorEnum() # For __getattribute__ -class CustomInterestMemberTypeEnum(object): +class CustomInterestMemberTypeEnum(_CreateEnumTypeUponFirstAccess): + CustomInterestMemberType = '''\ class CustomInterestMemberType(enum.IntEnum): """ Enum containing possible custom interest member types. @@ -3673,9 +4449,12 @@ class CustomInterestMemberType(enum.IntEnum): UNKNOWN = 1 KEYWORD = 2 URL = 3 +''' +CustomInterestMemberTypeEnum = CustomInterestMemberTypeEnum() # For __getattribute__ -class CustomInterestStatusEnum(object): +class CustomInterestStatusEnum(_CreateEnumTypeUponFirstAccess): + CustomInterestStatus = '''\ class CustomInterestStatus(enum.IntEnum): """ Enum containing possible custom interest types. @@ -3691,9 +4470,12 @@ class CustomInterestStatus(enum.IntEnum): UNKNOWN = 1 ENABLED = 2 REMOVED = 3 +''' +CustomInterestStatusEnum = CustomInterestStatusEnum() # For __getattribute__ -class CustomInterestTypeEnum(object): +class CustomInterestTypeEnum(_CreateEnumTypeUponFirstAccess): + CustomInterestType = '''\ class CustomInterestType(enum.IntEnum): """ Enum containing possible custom interest types. @@ -3708,9 +4490,12 @@ class CustomInterestType(enum.IntEnum): UNKNOWN = 1 CUSTOM_AFFINITY = 2 CUSTOM_INTENT = 3 +''' +CustomInterestTypeEnum = CustomInterestTypeEnum() # For __getattribute__ -class CustomPlaceholderFieldEnum(object): +class CustomPlaceholderFieldEnum(_CreateEnumTypeUponFirstAccess): + CustomPlaceholderField = '''\ class CustomPlaceholderField(enum.IntEnum): """ Possible values for Custom placeholder fields. @@ -3782,9 +4567,12 @@ class CustomPlaceholderField(enum.IntEnum): SIMILAR_IDS = 19 IOS_APP_LINK = 20 IOS_APP_STORE_ID = 21 +''' +CustomPlaceholderFieldEnum = CustomPlaceholderFieldEnum() # For __getattribute__ -class CustomerClientLinkErrorEnum(object): +class CustomerClientLinkErrorEnum(_CreateEnumTypeUponFirstAccess): + CustomerClientLinkError = '''\ class CustomerClientLinkError(enum.IntEnum): """ Enum describing possible CustomerClientLink errors. @@ -3799,6 +4587,7 @@ class CustomerClientLinkError(enum.IntEnum): CLIENT_HAS_TOO_MANY_INVITATIONS (int): Invitor has the maximum pending invitations. CANNOT_HIDE_OR_UNHIDE_MANAGER_ACCOUNTS (int): Attempt to change hidden status of a link that is not active. CUSTOMER_HAS_TOO_MANY_ACCOUNTS_AT_MANAGER (int): Parent manager account has the maximum number of linked accounts. + CLIENT_HAS_TOO_MANY_MANAGERS (int): Client has too many managers. """ UNSPECIFIED = 0 UNKNOWN = 1 @@ -3809,13 +4598,16 @@ class CustomerClientLinkError(enum.IntEnum): CLIENT_HAS_TOO_MANY_INVITATIONS = 6 CANNOT_HIDE_OR_UNHIDE_MANAGER_ACCOUNTS = 7 CUSTOMER_HAS_TOO_MANY_ACCOUNTS_AT_MANAGER = 8 + CLIENT_HAS_TOO_MANY_MANAGERS = 9 +''' +CustomerClientLinkErrorEnum = CustomerClientLinkErrorEnum() # For __getattribute__ -class CustomerErrorEnum(object): +class CustomerErrorEnum(_CreateEnumTypeUponFirstAccess): + CustomerError = '''\ class CustomerError(enum.IntEnum): """ Set of errors that are related to requests dealing with Customer. - Next id: 26 Attributes: UNSPECIFIED (int): Enum unspecified. @@ -3829,9 +4621,12 @@ class CustomerError(enum.IntEnum): UNKNOWN = 1 STATUS_CHANGE_DISALLOWED = 2 ACCOUNT_NOT_SET_UP = 3 +''' +CustomerErrorEnum = CustomerErrorEnum() # For __getattribute__ -class CustomerFeedErrorEnum(object): +class CustomerFeedErrorEnum(_CreateEnumTypeUponFirstAccess): + CustomerFeedError = '''\ class CustomerFeedError(enum.IntEnum): """ Enum describing possible customer feed errors. @@ -3857,9 +4652,12 @@ class CustomerFeedError(enum.IntEnum): INVALID_PLACEHOLDER_TYPE = 6 MISSING_FEEDMAPPING_FOR_PLACEHOLDER_TYPE = 7 PLACEHOLDER_TYPE_NOT_ALLOWED_ON_CUSTOMER_FEED = 8 +''' +CustomerFeedErrorEnum = CustomerFeedErrorEnum() # For __getattribute__ -class CustomerManagerLinkErrorEnum(object): +class CustomerManagerLinkErrorEnum(_CreateEnumTypeUponFirstAccess): + CustomerManagerLinkError = '''\ class CustomerManagerLinkError(enum.IntEnum): """ Enum describing possible CustomerManagerLink errors. @@ -3878,6 +4676,8 @@ class CustomerManagerLinkError(enum.IntEnum): be changed. DUPLICATE_CHILD_FOUND (int): Attempt to link a child to a parent that contains or will contain duplicate children. + TEST_ACCOUNT_LINKS_TOO_MANY_CHILD_ACCOUNTS (int): The authorized customer is a test account. It can add no more than the + allowed number of accounts """ UNSPECIFIED = 0 UNKNOWN = 1 @@ -3889,9 +4689,13 @@ class CustomerManagerLinkError(enum.IntEnum): CANNOT_CHANGE_ROLE_BY_NON_ACCOUNT_OWNER = 7 CANNOT_CHANGE_ROLE_FOR_NON_ACTIVE_LINK_ACCOUNT = 8 DUPLICATE_CHILD_FOUND = 9 + TEST_ACCOUNT_LINKS_TOO_MANY_CHILD_ACCOUNTS = 10 +''' +CustomerManagerLinkErrorEnum = CustomerManagerLinkErrorEnum() # For __getattribute__ -class CustomerMatchUploadKeyTypeEnum(object): +class CustomerMatchUploadKeyTypeEnum(_CreateEnumTypeUponFirstAccess): + CustomerMatchUploadKeyType = '''\ class CustomerMatchUploadKeyType(enum.IntEnum): """ Enum describing possible customer match upload key types. @@ -3910,9 +4714,12 @@ class CustomerMatchUploadKeyType(enum.IntEnum): CONTACT_INFO = 2 CRM_ID = 3 MOBILE_ADVERTISING_ID = 4 +''' +CustomerMatchUploadKeyTypeEnum = CustomerMatchUploadKeyTypeEnum() # For __getattribute__ -class CustomerPayPerConversionEligibilityFailureReasonEnum(object): +class CustomerPayPerConversionEligibilityFailureReasonEnum(_CreateEnumTypeUponFirstAccess): + CustomerPayPerConversionEligibilityFailureReason = '''\ class CustomerPayPerConversionEligibilityFailureReason(enum.IntEnum): """ Enum describing possible reasons a customer is not eligible to use @@ -3939,9 +4746,12 @@ class CustomerPayPerConversionEligibilityFailureReason(enum.IntEnum): AVERAGE_DAILY_SPEND_TOO_HIGH = 6 ANALYSIS_NOT_COMPLETE = 7 OTHER = 8 +''' +CustomerPayPerConversionEligibilityFailureReasonEnum = CustomerPayPerConversionEligibilityFailureReasonEnum() # For __getattribute__ -class DataDrivenModelStatusEnum(object): +class DataDrivenModelStatusEnum(_CreateEnumTypeUponFirstAccess): + DataDrivenModelStatus = '''\ class DataDrivenModelStatus(enum.IntEnum): """ Enumerates data driven model statuses. @@ -3966,9 +4776,12 @@ class DataDrivenModelStatus(enum.IntEnum): STALE = 3 EXPIRED = 4 NEVER_GENERATED = 5 +''' +DataDrivenModelStatusEnum = DataDrivenModelStatusEnum() # For __getattribute__ -class DatabaseErrorEnum(object): +class DatabaseErrorEnum(_CreateEnumTypeUponFirstAccess): + DatabaseError = '''\ class DatabaseError(enum.IntEnum): """ Enum describing possible database errors. @@ -3978,13 +4791,22 @@ class DatabaseError(enum.IntEnum): UNKNOWN (int): The received error code is not known in this version. CONCURRENT_MODIFICATION (int): Multiple requests were attempting to modify the same resource at once. Please retry the request. + DATA_CONSTRAINT_VIOLATION (int): The request conflicted with existing data. This error will usually be + replaced with a more specific error if the request is retried. + REQUEST_TOO_LARGE (int): The data written is too large. Please split the request into smaller + requests. """ UNSPECIFIED = 0 UNKNOWN = 1 CONCURRENT_MODIFICATION = 2 + DATA_CONSTRAINT_VIOLATION = 3 + REQUEST_TOO_LARGE = 4 +''' +DatabaseErrorEnum = DatabaseErrorEnum() # For __getattribute__ -class DateErrorEnum(object): +class DateErrorEnum(_CreateEnumTypeUponFirstAccess): + DateError = '''\ class DateError(enum.IntEnum): """ Enum describing possible date errors. @@ -4015,9 +4837,12 @@ class DateError(enum.IntEnum): LATER_THAN_MAXIMUM_DATE = 8 DATE_RANGE_MINIMUM_DATE_LATER_THAN_MAXIMUM_DATE = 9 DATE_RANGE_MINIMUM_AND_MAXIMUM_DATES_BOTH_NULL = 10 +''' +DateErrorEnum = DateErrorEnum() # For __getattribute__ -class DateRangeErrorEnum(object): +class DateRangeErrorEnum(_CreateEnumTypeUponFirstAccess): + DateRangeError = '''\ class DateRangeError(enum.IntEnum): """ Enum describing possible date range errors. @@ -4038,9 +4863,12 @@ class DateRangeError(enum.IntEnum): CANNOT_SET_DATE_TO_PAST = 4 AFTER_MAXIMUM_ALLOWABLE_DATE = 5 CANNOT_MODIFY_START_DATE_IF_ALREADY_STARTED = 6 +''' +DateRangeErrorEnum = DateRangeErrorEnum() # For __getattribute__ -class DayOfWeekEnum(object): +class DayOfWeekEnum(_CreateEnumTypeUponFirstAccess): + DayOfWeek = '''\ class DayOfWeek(enum.IntEnum): """ Enumerates days of the week, e.g., "Monday". @@ -4065,9 +4893,12 @@ class DayOfWeek(enum.IntEnum): FRIDAY = 6 SATURDAY = 7 SUNDAY = 8 +''' +DayOfWeekEnum = DayOfWeekEnum() # For __getattribute__ -class DeviceEnum(object): +class DeviceEnum(_CreateEnumTypeUponFirstAccess): + Device = '''\ class Device(enum.IntEnum): """ Enumerates Google Ads devices available for targeting. @@ -4088,9 +4919,12 @@ class Device(enum.IntEnum): DESKTOP = 4 CONNECTED_TV = 6 OTHER = 5 +''' +DeviceEnum = DeviceEnum() # For __getattribute__ -class DisplayAdFormatSettingEnum(object): +class DisplayAdFormatSettingEnum(_CreateEnumTypeUponFirstAccess): + DisplayAdFormatSetting = '''\ class DisplayAdFormatSetting(enum.IntEnum): """ Enumerates display ad format settings. @@ -4108,9 +4942,12 @@ class DisplayAdFormatSetting(enum.IntEnum): ALL_FORMATS = 2 NON_NATIVE = 3 NATIVE = 4 +''' +DisplayAdFormatSettingEnum = DisplayAdFormatSettingEnum() # For __getattribute__ -class DisplayUploadProductTypeEnum(object): +class DisplayUploadProductTypeEnum(_CreateEnumTypeUponFirstAccess): + DisplayUploadProductType = '''\ class DisplayUploadProductType(enum.IntEnum): """ Enumerates display upload product types. @@ -4160,9 +4997,83 @@ class DisplayUploadProductType(enum.IntEnum): DYNAMIC_HTML5_CUSTOM_AD = 9 DYNAMIC_HTML5_TRAVEL_AD = 10 DYNAMIC_HTML5_HOTEL_AD = 11 - - -class DistinctErrorEnum(object): +''' +DisplayUploadProductTypeEnum = DisplayUploadProductTypeEnum() # For __getattribute__ + + +class DistanceBucketEnum(_CreateEnumTypeUponFirstAccess): + DistanceBucket = '''\ + class DistanceBucket(enum.IntEnum): + """ + The distance bucket for a user’s distance from an advertiser’s location + extension. + + Attributes: + UNSPECIFIED (int): Not specified. + UNKNOWN (int): Used for return value only. Represents value unknown in this version. + WITHIN_700M (int): User was within 700m of the location. + WITHIN_1KM (int): User was within 1KM of the location. + WITHIN_5KM (int): User was within 5KM of the location. + WITHIN_10KM (int): User was within 10KM of the location. + WITHIN_15KM (int): User was within 15KM of the location. + WITHIN_20KM (int): User was within 20KM of the location. + WITHIN_25KM (int): User was within 25KM of the location. + WITHIN_30KM (int): User was within 30KM of the location. + WITHIN_35KM (int): User was within 35KM of the location. + WITHIN_40KM (int): User was within 40KM of the location. + WITHIN_45KM (int): User was within 45KM of the location. + WITHIN_50KM (int): User was within 50KM of the location. + WITHIN_55KM (int): User was within 55KM of the location. + WITHIN_60KM (int): User was within 60KM of the location. + WITHIN_65KM (int): User was within 65KM of the location. + BEYOND_65KM (int): User was beyond 65KM of the location. + WITHIN_0_7MILES (int): User was within 0.7 miles of the location. + WITHIN_1MILE (int): User was within 1 mile of the location. + WITHIN_5MILES (int): User was within 5 miles of the location. + WITHIN_10MILES (int): User was within 10 miles of the location. + WITHIN_15MILES (int): User was within 15 miles of the location. + WITHIN_20MILES (int): User was within 20 miles of the location. + WITHIN_25MILES (int): User was within 25 miles of the location. + WITHIN_30MILES (int): User was within 30 miles of the location. + WITHIN_35MILES (int): User was within 35 miles of the location. + WITHIN_40MILES (int): User was within 40 miles of the location. + BEYOND_40MILES (int): User was beyond 40 miles of the location. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + WITHIN_700M = 2 + WITHIN_1KM = 3 + WITHIN_5KM = 4 + WITHIN_10KM = 5 + WITHIN_15KM = 6 + WITHIN_20KM = 7 + WITHIN_25KM = 8 + WITHIN_30KM = 9 + WITHIN_35KM = 10 + WITHIN_40KM = 11 + WITHIN_45KM = 12 + WITHIN_50KM = 13 + WITHIN_55KM = 14 + WITHIN_60KM = 15 + WITHIN_65KM = 16 + BEYOND_65KM = 17 + WITHIN_0_7MILES = 18 + WITHIN_1MILE = 19 + WITHIN_5MILES = 20 + WITHIN_10MILES = 21 + WITHIN_15MILES = 22 + WITHIN_20MILES = 23 + WITHIN_25MILES = 24 + WITHIN_30MILES = 25 + WITHIN_35MILES = 26 + WITHIN_40MILES = 27 + BEYOND_40MILES = 28 +''' +DistanceBucketEnum = DistanceBucketEnum() # For __getattribute__ + + +class DistinctErrorEnum(_CreateEnumTypeUponFirstAccess): + DistinctError = '''\ class DistinctError(enum.IntEnum): """ Enum describing possible distinct errors. @@ -4177,9 +5088,12 @@ class DistinctError(enum.IntEnum): UNKNOWN = 1 DUPLICATE_ELEMENT = 2 DUPLICATE_TYPE = 3 +''' +DistinctErrorEnum = DistinctErrorEnum() # For __getattribute__ -class DsaPageFeedCriterionFieldEnum(object): +class DsaPageFeedCriterionFieldEnum(_CreateEnumTypeUponFirstAccess): + DsaPageFeedCriterionField = '''\ class DsaPageFeedCriterionField(enum.IntEnum): """ Possible values for Dynamic Search Ad Page Feed criterion fields. @@ -4195,9 +5109,12 @@ class DsaPageFeedCriterionField(enum.IntEnum): UNKNOWN = 1 PAGE_URL = 2 LABEL = 3 +''' +DsaPageFeedCriterionFieldEnum = DsaPageFeedCriterionFieldEnum() # For __getattribute__ -class EducationPlaceholderFieldEnum(object): +class EducationPlaceholderFieldEnum(_CreateEnumTypeUponFirstAccess): + EducationPlaceholderField = '''\ class EducationPlaceholderField(enum.IntEnum): """ Possible values for Education placeholder fields. @@ -4255,9 +5172,12 @@ class EducationPlaceholderField(enum.IntEnum): SIMILAR_PROGRAM_IDS = 16 IOS_APP_LINK = 17 IOS_APP_STORE_ID = 18 +''' +EducationPlaceholderFieldEnum = EducationPlaceholderFieldEnum() # For __getattribute__ -class EnumErrorEnum(object): +class EnumErrorEnum(_CreateEnumTypeUponFirstAccess): + EnumError = '''\ class EnumError(enum.IntEnum): """ Enum describing possible enum errors. @@ -4270,9 +5190,12 @@ class EnumError(enum.IntEnum): UNSPECIFIED = 0 UNKNOWN = 1 ENUM_VALUE_NOT_PERMITTED = 3 +''' +EnumErrorEnum = EnumErrorEnum() # For __getattribute__ -class ExtensionFeedItemErrorEnum(object): +class ExtensionFeedItemErrorEnum(_CreateEnumTypeUponFirstAccess): + ExtensionFeedItemError = '''\ class ExtensionFeedItemError(enum.IntEnum): """ Enum describing possible extension feed item errors. @@ -4338,6 +5261,8 @@ class ExtensionFeedItemError(enum.IntEnum): INVALID_PRICE_FORMAT (int): Input price is not in a valid format. PROMOTION_INVALID_TIME (int): The promotion time is invalid. TOO_MANY_DECIMAL_PLACES_SPECIFIED (int): This field has too many decimal places specified. + CONCRETE_EXTENSION_TYPE_REQUIRED (int): Concrete sub type of ExtensionFeedItem is required for this operation. + SCHEDULE_END_NOT_AFTER_START (int): Feed item schedule end time must be after start time. """ UNSPECIFIED = 0 UNKNOWN = 1 @@ -4384,9 +5309,14 @@ class ExtensionFeedItemError(enum.IntEnum): INVALID_PRICE_FORMAT = 42 PROMOTION_INVALID_TIME = 43 TOO_MANY_DECIMAL_PLACES_SPECIFIED = 44 + CONCRETE_EXTENSION_TYPE_REQUIRED = 45 + SCHEDULE_END_NOT_AFTER_START = 46 +''' +ExtensionFeedItemErrorEnum = ExtensionFeedItemErrorEnum() # For __getattribute__ -class ExtensionSettingDeviceEnum(object): +class ExtensionSettingDeviceEnum(_CreateEnumTypeUponFirstAccess): + ExtensionSettingDevice = '''\ class ExtensionSettingDevice(enum.IntEnum): """ Possbile device types for an extension setting. @@ -4403,9 +5333,12 @@ class ExtensionSettingDevice(enum.IntEnum): UNKNOWN = 1 MOBILE = 2 DESKTOP = 3 +''' +ExtensionSettingDeviceEnum = ExtensionSettingDeviceEnum() # For __getattribute__ -class ExtensionSettingErrorEnum(object): +class ExtensionSettingErrorEnum(_CreateEnumTypeUponFirstAccess): + ExtensionSettingError = '''\ class ExtensionSettingError(enum.IntEnum): """ Enum describing possible extension setting errors. @@ -4565,9 +5498,12 @@ class ExtensionSettingError(enum.IntEnum): UNSUPPORTED_LANGUAGE = 65 CUSTOMER_CONSENT_FOR_CALL_RECORDING_REQUIRED = 66 EXTENSION_SETTING_UPDATE_IS_A_NOOP = 67 +''' +ExtensionSettingErrorEnum = ExtensionSettingErrorEnum() # For __getattribute__ -class ExtensionTypeEnum(object): +class ExtensionTypeEnum(_CreateEnumTypeUponFirstAccess): + ExtensionType = '''\ class ExtensionType(enum.IntEnum): """ Possible data types for an extension in an extension setting. @@ -4582,11 +5518,11 @@ class ExtensionType(enum.IntEnum): MESSAGE (int): Message. PRICE (int): Price. PROMOTION (int): Promotion. - REVIEW (int): Review. SITELINK (int): Sitelink. STRUCTURED_SNIPPET (int): Structured snippet. LOCATION (int): Location. AFFILIATE_LOCATION (int): Affiliate location. + HOTEL_CALLOUT (int): Hotel callout """ UNSPECIFIED = 0 UNKNOWN = 1 @@ -4597,14 +5533,17 @@ class ExtensionType(enum.IntEnum): MESSAGE = 6 PRICE = 7 PROMOTION = 8 - REVIEW = 9 SITELINK = 10 STRUCTURED_SNIPPET = 11 LOCATION = 12 AFFILIATE_LOCATION = 13 + HOTEL_CALLOUT = 15 +''' +ExtensionTypeEnum = ExtensionTypeEnum() # For __getattribute__ -class ExternalConversionSourceEnum(object): +class ExternalConversionSourceEnum(_CreateEnumTypeUponFirstAccess): + ExternalConversionSource = '''\ class ExternalConversionSource(enum.IntEnum): """ The external conversion source that is associated with a ConversionAction. @@ -4655,8 +5594,11 @@ class ExternalConversionSource(enum.IntEnum): THIRD_PARTY_APP_ANALYTICS (int): Conversion that comes from a linked third-party app analytics event; Displayed in Google Ads UI as 'Third-party app analytics'. GOOGLE_ATTRIBUTION (int): Conversion that is controlled by Google Attribution. - STORE_SALES_DIRECT (int): Store Sales conversion based on first-party or third-party merchant data - uploads. Displayed in Google Ads UI as 'Store sales (direct)'. + STORE_SALES_DIRECT_UPLOAD (int): Store Sales conversion based on first-party or third-party merchant data + uploads. Displayed in Google Ads UI as 'Store sales (direct upload)'. + STORE_SALES (int): Store Sales conversion based on first-party or third-party merchant + data uploads and/or from in-store purchases using cards from payment + networks. Displayed in Google Ads UI as 'Store sales'. """ UNSPECIFIED = 0 UNKNOWN = 1 @@ -4680,10 +5622,14 @@ class ExternalConversionSource(enum.IntEnum): GOOGLE_PLAY = 19 THIRD_PARTY_APP_ANALYTICS = 20 GOOGLE_ATTRIBUTION = 21 - STORE_SALES_DIRECT = 22 + STORE_SALES_DIRECT_UPLOAD = 23 + STORE_SALES = 24 +''' +ExternalConversionSourceEnum = ExternalConversionSourceEnum() # For __getattribute__ -class FeedAttributeOperation(object): +class FeedAttributeOperation(_CreateEnumTypeUponFirstAccess): + Operator = '''\ class Operator(enum.IntEnum): """ The operator. @@ -4696,9 +5642,12 @@ class Operator(enum.IntEnum): UNSPECIFIED = 0 UNKNOWN = 1 ADD = 2 +''' +FeedAttributeOperation = FeedAttributeOperation() # For __getattribute__ -class FeedAttributeReferenceErrorEnum(object): +class FeedAttributeReferenceErrorEnum(_CreateEnumTypeUponFirstAccess): + FeedAttributeReferenceError = '''\ class FeedAttributeReferenceError(enum.IntEnum): """ Enum describing possible feed attribute reference errors. @@ -4715,9 +5664,12 @@ class FeedAttributeReferenceError(enum.IntEnum): CANNOT_REFERENCE_REMOVED_FEED = 2 INVALID_FEED_NAME = 3 INVALID_FEED_ATTRIBUTE_NAME = 4 +''' +FeedAttributeReferenceErrorEnum = FeedAttributeReferenceErrorEnum() # For __getattribute__ -class FeedAttributeTypeEnum(object): +class FeedAttributeTypeEnum(_CreateEnumTypeUponFirstAccess): + FeedAttributeType = '''\ class FeedAttributeType(enum.IntEnum): """ Possible data types for a feed attribute. @@ -4754,9 +5706,12 @@ class FeedAttributeType(enum.IntEnum): URL_LIST = 12 DATE_TIME_LIST = 13 PRICE = 14 +''' +FeedAttributeTypeEnum = FeedAttributeTypeEnum() # For __getattribute__ -class FeedErrorEnum(object): +class FeedErrorEnum(_CreateEnumTypeUponFirstAccess): + FeedError = '''\ class FeedError(enum.IntEnum): """ Enum describing possible feed errors. @@ -4785,6 +5740,8 @@ class FeedError(enum.IntEnum): BUSINESS_ACCOUNT_CANNOT_ACCESS_LOCATION_ACCOUNT (int): Business account cannot access Google My Business account. INVALID_AFFILIATE_CHAIN_ID (int): Invalid chain ID provided for affiliate location feed. DUPLICATE_SYSTEM_FEED (int): There is already a feed with the given system feed generation data. + GMB_ACCESS_ERROR (int): An error occurred accessing GMB account. + CANNOT_HAVE_LOCATION_AND_AFFILIATE_LOCATION_FEEDS (int): A customer cannot have both LOCATION and AFFILIATE\_LOCATION feeds. """ UNSPECIFIED = 0 UNKNOWN = 1 @@ -4808,9 +5765,14 @@ class FeedError(enum.IntEnum): BUSINESS_ACCOUNT_CANNOT_ACCESS_LOCATION_ACCOUNT = 19 INVALID_AFFILIATE_CHAIN_ID = 20 DUPLICATE_SYSTEM_FEED = 21 + GMB_ACCESS_ERROR = 22 + CANNOT_HAVE_LOCATION_AND_AFFILIATE_LOCATION_FEEDS = 23 +''' +FeedErrorEnum = FeedErrorEnum() # For __getattribute__ -class FeedItemErrorEnum(object): +class FeedItemErrorEnum(_CreateEnumTypeUponFirstAccess): + FeedItemError = '''\ class FeedItemError(enum.IntEnum): """ Enum describing possible feed item errors. @@ -4839,9 +5801,12 @@ class FeedItemError(enum.IntEnum): KEY_ATTRIBUTES_NOT_UNIQUE = 8 CANNOT_MODIFY_KEY_ATTRIBUTE_VALUE = 9 SIZE_TOO_LARGE_FOR_MULTI_VALUE_ATTRIBUTE = 10 +''' +FeedItemErrorEnum = FeedItemErrorEnum() # For __getattribute__ -class FeedItemQualityApprovalStatusEnum(object): +class FeedItemQualityApprovalStatusEnum(_CreateEnumTypeUponFirstAccess): + FeedItemQualityApprovalStatus = '''\ class FeedItemQualityApprovalStatus(enum.IntEnum): """ The possible quality evaluation approval statuses of a feed item. @@ -4857,9 +5822,12 @@ class FeedItemQualityApprovalStatus(enum.IntEnum): UNKNOWN = 1 APPROVED = 2 DISAPPROVED = 3 +''' +FeedItemQualityApprovalStatusEnum = FeedItemQualityApprovalStatusEnum() # For __getattribute__ -class FeedItemQualityDisapprovalReasonEnum(object): +class FeedItemQualityDisapprovalReasonEnum(_CreateEnumTypeUponFirstAccess): + FeedItemQualityDisapprovalReason = '''\ class FeedItemQualityDisapprovalReason(enum.IntEnum): """ The possible quality evaluation disapproval reasons of a feed item. @@ -4906,9 +5874,12 @@ class FeedItemQualityDisapprovalReason(enum.IntEnum): STRUCTURED_SNIPPETS_REPEATED_VALUES = 17 STRUCTURED_SNIPPETS_EDITORIAL_GUIDELINES = 18 STRUCTURED_SNIPPETS_HAS_PROMOTIONAL_TEXT = 19 +''' +FeedItemQualityDisapprovalReasonEnum = FeedItemQualityDisapprovalReasonEnum() # For __getattribute__ -class FeedItemStatusEnum(object): +class FeedItemStatusEnum(_CreateEnumTypeUponFirstAccess): + FeedItemStatus = '''\ class FeedItemStatus(enum.IntEnum): """ Possible statuses of a feed item. @@ -4923,9 +5894,12 @@ class FeedItemStatus(enum.IntEnum): UNKNOWN = 1 ENABLED = 2 REMOVED = 3 +''' +FeedItemStatusEnum = FeedItemStatusEnum() # For __getattribute__ -class FeedItemTargetDeviceEnum(object): +class FeedItemTargetDeviceEnum(_CreateEnumTypeUponFirstAccess): + FeedItemTargetDevice = '''\ class FeedItemTargetDevice(enum.IntEnum): """ Possible data types for a feed item target device. @@ -4938,9 +5912,12 @@ class FeedItemTargetDevice(enum.IntEnum): UNSPECIFIED = 0 UNKNOWN = 1 MOBILE = 2 +''' +FeedItemTargetDeviceEnum = FeedItemTargetDeviceEnum() # For __getattribute__ -class FeedItemTargetErrorEnum(object): +class FeedItemTargetErrorEnum(_CreateEnumTypeUponFirstAccess): + FeedItemTargetError = '''\ class FeedItemTargetError(enum.IntEnum): """ Enum describing possible feed item target errors. @@ -4956,6 +5933,8 @@ class FeedItemTargetError(enum.IntEnum): TOO_MANY_SCHEDULES_PER_DAY (int): Too many AdSchedules are enabled for the feed item for the given day. CANNOT_HAVE_ENABLED_CAMPAIGN_AND_ENABLED_AD_GROUP_TARGETS (int): A feed item may either have an enabled campaign target or an enabled ad group target. + DUPLICATE_AD_SCHEDULE (int): Duplicate ad schedules aren't allowed. + DUPLICATE_KEYWORD (int): Duplicate keywords aren't allowed. """ UNSPECIFIED = 0 UNKNOWN = 1 @@ -4965,9 +5944,34 @@ class FeedItemTargetError(enum.IntEnum): TARGET_LIMIT_EXCEEDED_FOR_GIVEN_TYPE = 5 TOO_MANY_SCHEDULES_PER_DAY = 6 CANNOT_HAVE_ENABLED_CAMPAIGN_AND_ENABLED_AD_GROUP_TARGETS = 7 + DUPLICATE_AD_SCHEDULE = 8 + DUPLICATE_KEYWORD = 9 +''' +FeedItemTargetErrorEnum = FeedItemTargetErrorEnum() # For __getattribute__ + + +class FeedItemTargetStatusEnum(_CreateEnumTypeUponFirstAccess): + FeedItemTargetStatus = '''\ + class FeedItemTargetStatus(enum.IntEnum): + """ + Possible statuses of a feed item target. + + Attributes: + UNSPECIFIED (int): Not specified. + UNKNOWN (int): Used for return value only. Represents value unknown in this version. + ENABLED (int): Feed item target is enabled. + REMOVED (int): Feed item target has been removed. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + ENABLED = 2 + REMOVED = 3 +''' +FeedItemTargetStatusEnum = FeedItemTargetStatusEnum() # For __getattribute__ -class FeedItemTargetTypeEnum(object): +class FeedItemTargetTypeEnum(_CreateEnumTypeUponFirstAccess): + FeedItemTargetType = '''\ class FeedItemTargetType(enum.IntEnum): """ Possible type of a feed item target. @@ -4984,9 +5988,12 @@ class FeedItemTargetType(enum.IntEnum): CAMPAIGN = 2 AD_GROUP = 3 CRITERION = 4 +''' +FeedItemTargetTypeEnum = FeedItemTargetTypeEnum() # For __getattribute__ -class FeedItemValidationErrorEnum(object): +class FeedItemValidationErrorEnum(_CreateEnumTypeUponFirstAccess): + FeedItemValidationError = '''\ class FeedItemValidationError(enum.IntEnum): """ The possible validation errors of a feed item. @@ -5107,6 +6114,8 @@ class FeedItemValidationError(enum.IntEnum): INVALID_IMAGE_URL (int): Invalid image url. MISSING_LATITUDE_VALUE (int): Latitude value is missing. MISSING_LONGITUDE_VALUE (int): Longitude value is missing. + ADDRESS_NOT_FOUND (int): Unable to find address. + ADDRESS_NOT_TARGETABLE (int): Cannot target provided address. """ UNSPECIFIED = 0 UNKNOWN = 1 @@ -5205,9 +6214,14 @@ class FeedItemValidationError(enum.IntEnum): INVALID_IMAGE_URL = 94 MISSING_LATITUDE_VALUE = 95 MISSING_LONGITUDE_VALUE = 96 + ADDRESS_NOT_FOUND = 97 + ADDRESS_NOT_TARGETABLE = 98 +''' +FeedItemValidationErrorEnum = FeedItemValidationErrorEnum() # For __getattribute__ -class FeedItemValidationStatusEnum(object): +class FeedItemValidationStatusEnum(_CreateEnumTypeUponFirstAccess): + FeedItemValidationStatus = '''\ class FeedItemValidationStatus(enum.IntEnum): """ The possible validation statuses of a feed item. @@ -5224,9 +6238,12 @@ class FeedItemValidationStatus(enum.IntEnum): PENDING = 2 INVALID = 3 VALID = 4 +''' +FeedItemValidationStatusEnum = FeedItemValidationStatusEnum() # For __getattribute__ -class FeedLinkStatusEnum(object): +class FeedLinkStatusEnum(_CreateEnumTypeUponFirstAccess): + FeedLinkStatus = '''\ class FeedLinkStatus(enum.IntEnum): """ Possible statuses of a feed link. @@ -5241,9 +6258,12 @@ class FeedLinkStatus(enum.IntEnum): UNKNOWN = 1 ENABLED = 2 REMOVED = 3 +''' +FeedLinkStatusEnum = FeedLinkStatusEnum() # For __getattribute__ -class FeedMappingCriterionTypeEnum(object): +class FeedMappingCriterionTypeEnum(_CreateEnumTypeUponFirstAccess): + FeedMappingCriterionType = '''\ class FeedMappingCriterionType(enum.IntEnum): """ Possible placeholder types for a feed mapping. @@ -5258,9 +6278,12 @@ class FeedMappingCriterionType(enum.IntEnum): UNKNOWN = 1 LOCATION_EXTENSION_TARGETING = 4 DSA_PAGE_FEED = 3 +''' +FeedMappingCriterionTypeEnum = FeedMappingCriterionTypeEnum() # For __getattribute__ -class FeedMappingErrorEnum(object): +class FeedMappingErrorEnum(_CreateEnumTypeUponFirstAccess): + FeedMappingError = '''\ class FeedMappingError(enum.IntEnum): """ Enum describing possible feed item errors. @@ -5289,6 +6312,7 @@ class FeedMappingError(enum.IntEnum): INVALID_PLACEHOLDER_TYPE_FOR_NON_SYSTEM_GENERATED_FEED (int): The given placeholder type can only be mapped to system generated feeds. INVALID_PLACEHOLDER_TYPE_FOR_SYSTEM_GENERATED_FEED_TYPE (int): The given placeholder type cannot be mapped to a system generated feed with the given type. + ATTRIBUTE_FIELD_MAPPING_MISSING_FIELD (int): The "field" oneof was not set in an AttributeFieldMapping. """ UNSPECIFIED = 0 UNKNOWN = 1 @@ -5308,9 +6332,13 @@ class FeedMappingError(enum.IntEnum): CANNOT_MODIFY_MAPPINGS_FOR_TYPED_FEED = 16 INVALID_PLACEHOLDER_TYPE_FOR_NON_SYSTEM_GENERATED_FEED = 17 INVALID_PLACEHOLDER_TYPE_FOR_SYSTEM_GENERATED_FEED_TYPE = 18 + ATTRIBUTE_FIELD_MAPPING_MISSING_FIELD = 19 +''' +FeedMappingErrorEnum = FeedMappingErrorEnum() # For __getattribute__ -class FeedMappingStatusEnum(object): +class FeedMappingStatusEnum(_CreateEnumTypeUponFirstAccess): + FeedMappingStatus = '''\ class FeedMappingStatus(enum.IntEnum): """ Possible statuses of a feed mapping. @@ -5325,9 +6353,12 @@ class FeedMappingStatus(enum.IntEnum): UNKNOWN = 1 ENABLED = 2 REMOVED = 3 +''' +FeedMappingStatusEnum = FeedMappingStatusEnum() # For __getattribute__ -class FeedOriginEnum(object): +class FeedOriginEnum(_CreateEnumTypeUponFirstAccess): + FeedOrigin = '''\ class FeedOrigin(enum.IntEnum): """ Possible values for a feed origin. @@ -5345,9 +6376,12 @@ class FeedOrigin(enum.IntEnum): UNKNOWN = 1 USER = 2 GOOGLE = 3 +''' +FeedOriginEnum = FeedOriginEnum() # For __getattribute__ -class FeedStatusEnum(object): +class FeedStatusEnum(_CreateEnumTypeUponFirstAccess): + FeedStatus = '''\ class FeedStatus(enum.IntEnum): """ Possible statuses of a feed. @@ -5362,9 +6396,12 @@ class FeedStatus(enum.IntEnum): UNKNOWN = 1 ENABLED = 2 REMOVED = 3 +''' +FeedStatusEnum = FeedStatusEnum() # For __getattribute__ -class FieldErrorEnum(object): +class FieldErrorEnum(_CreateEnumTypeUponFirstAccess): + FieldError = '''\ class FieldError(enum.IntEnum): """ Enum describing possible field errors. @@ -5389,9 +6426,12 @@ class FieldError(enum.IntEnum): REQUIRED_NONEMPTY_LIST = 6 FIELD_CANNOT_BE_CLEARED = 7 BLACKLISTED_VALUE = 8 +''' +FieldErrorEnum = FieldErrorEnum() # For __getattribute__ -class FieldMaskErrorEnum(object): +class FieldMaskErrorEnum(_CreateEnumTypeUponFirstAccess): + FieldMaskError = '''\ class FieldMaskError(enum.IntEnum): """ Enum describing possible field mask errors. @@ -5412,9 +6452,12 @@ class FieldMaskError(enum.IntEnum): FIELD_MASK_NOT_ALLOWED = 4 FIELD_NOT_FOUND = 2 FIELD_HAS_SUBFIELDS = 3 +''' +FieldMaskErrorEnum = FieldMaskErrorEnum() # For __getattribute__ -class FlightPlaceholderFieldEnum(object): +class FlightPlaceholderFieldEnum(_CreateEnumTypeUponFirstAccess): + FlightPlaceholderField = '''\ class FlightPlaceholderField(enum.IntEnum): """ Possible values for Flight placeholder fields. @@ -5479,9 +6522,12 @@ class FlightPlaceholderField(enum.IntEnum): SIMILAR_DESTINATION_IDS = 16 IOS_APP_LINK = 17 IOS_APP_STORE_ID = 18 +''' +FlightPlaceholderFieldEnum = FlightPlaceholderFieldEnum() # For __getattribute__ -class FrequencyCapEventTypeEnum(object): +class FrequencyCapEventTypeEnum(_CreateEnumTypeUponFirstAccess): + FrequencyCapEventType = '''\ class FrequencyCapEventType(enum.IntEnum): """ The type of event that the cap applies to (e.g. impression). @@ -5496,9 +6542,12 @@ class FrequencyCapEventType(enum.IntEnum): UNKNOWN = 1 IMPRESSION = 2 VIDEO_VIEW = 3 +''' +FrequencyCapEventTypeEnum = FrequencyCapEventTypeEnum() # For __getattribute__ -class FrequencyCapLevelEnum(object): +class FrequencyCapLevelEnum(_CreateEnumTypeUponFirstAccess): + FrequencyCapLevel = '''\ class FrequencyCapLevel(enum.IntEnum): """ The level on which the cap is to be applied (e.g ad group ad, ad group). @@ -5516,9 +6565,12 @@ class FrequencyCapLevel(enum.IntEnum): AD_GROUP_AD = 2 AD_GROUP = 3 CAMPAIGN = 4 +''' +FrequencyCapLevelEnum = FrequencyCapLevelEnum() # For __getattribute__ -class FrequencyCapTimeUnitEnum(object): +class FrequencyCapTimeUnitEnum(_CreateEnumTypeUponFirstAccess): + FrequencyCapTimeUnit = '''\ class FrequencyCapTimeUnit(enum.IntEnum): """ Unit of time the cap is defined at (e.g. day, week). @@ -5535,9 +6587,12 @@ class FrequencyCapTimeUnit(enum.IntEnum): DAY = 2 WEEK = 3 MONTH = 4 +''' +FrequencyCapTimeUnitEnum = FrequencyCapTimeUnitEnum() # For __getattribute__ -class FunctionErrorEnum(object): +class FunctionErrorEnum(_CreateEnumTypeUponFirstAccess): + FunctionError = '''\ class FunctionError(enum.IntEnum): """ Enum describing possible function errors. @@ -5581,9 +6636,12 @@ class FunctionError(enum.IntEnum): MULTIPLE_FEED_IDS_NOT_SUPPORTED = 15 INVALID_FUNCTION_FOR_FEED_WITH_FIXED_SCHEMA = 16 INVALID_ATTRIBUTE_NAME = 17 +''' +FunctionErrorEnum = FunctionErrorEnum() # For __getattribute__ -class FunctionParsingErrorEnum(object): +class FunctionParsingErrorEnum(_CreateEnumTypeUponFirstAccess): + FunctionParsingError = '''\ class FunctionParsingError(enum.IntEnum): """ Enum describing possible function parsing errors. @@ -5616,9 +6674,12 @@ class FunctionParsingError(enum.IntEnum): FEED_ATTRIBUTE_OPERAND_ARGUMENT_NOT_INTEGER = 10 NO_OPERANDS = 11 TOO_MANY_OPERANDS = 12 +''' +FunctionParsingErrorEnum = FunctionParsingErrorEnum() # For __getattribute__ -class GenderTypeEnum(object): +class GenderTypeEnum(_CreateEnumTypeUponFirstAccess): + GenderType = '''\ class GenderType(enum.IntEnum): """ The type of demographic genders (e.g. female). @@ -5635,9 +6696,12 @@ class GenderType(enum.IntEnum): MALE = 10 FEMALE = 11 UNDETERMINED = 20 +''' +GenderTypeEnum = GenderTypeEnum() # For __getattribute__ -class GeoTargetConstantStatusEnum(object): +class GeoTargetConstantStatusEnum(_CreateEnumTypeUponFirstAccess): + GeoTargetConstantStatus = '''\ class GeoTargetConstantStatus(enum.IntEnum): """ The possible statuses of a geo target constant. @@ -5654,9 +6718,12 @@ class GeoTargetConstantStatus(enum.IntEnum): UNKNOWN = 1 ENABLED = 2 REMOVAL_PLANNED = 3 +''' +GeoTargetConstantStatusEnum = GeoTargetConstantStatusEnum() # For __getattribute__ -class GeoTargetConstantSuggestionErrorEnum(object): +class GeoTargetConstantSuggestionErrorEnum(_CreateEnumTypeUponFirstAccess): + GeoTargetConstantSuggestionError = '''\ class GeoTargetConstantSuggestionError(enum.IntEnum): """ Enum describing possible geo target constant suggestion errors. @@ -5677,9 +6744,12 @@ class GeoTargetConstantSuggestionError(enum.IntEnum): LOCATION_NAME_LIMIT = 3 INVALID_COUNTRY_CODE = 4 REQUEST_PARAMETERS_UNSET = 5 +''' +GeoTargetConstantSuggestionErrorEnum = GeoTargetConstantSuggestionErrorEnum() # For __getattribute__ -class GeoTargetingRestrictionEnum(object): +class GeoTargetingRestrictionEnum(_CreateEnumTypeUponFirstAccess): + GeoTargetingRestriction = '''\ class GeoTargetingRestriction(enum.IntEnum): """ A restriction used to determine if the request context's @@ -5694,9 +6764,12 @@ class GeoTargetingRestriction(enum.IntEnum): UNSPECIFIED = 0 UNKNOWN = 1 LOCATION_OF_PRESENCE = 2 +''' +GeoTargetingRestrictionEnum = GeoTargetingRestrictionEnum() # For __getattribute__ -class GeoTargetingTypeEnum(object): +class GeoTargetingTypeEnum(_CreateEnumTypeUponFirstAccess): + GeoTargetingType = '''\ class GeoTargetingType(enum.IntEnum): """ The possible geo targeting types. @@ -5711,9 +6784,12 @@ class GeoTargetingType(enum.IntEnum): UNKNOWN = 1 AREA_OF_INTEREST = 2 LOCATION_OF_PRESENCE = 3 +''' +GeoTargetingTypeEnum = GeoTargetingTypeEnum() # For __getattribute__ -class GoogleAdsFieldCategoryEnum(object): +class GoogleAdsFieldCategoryEnum(_CreateEnumTypeUponFirstAccess): + GoogleAdsFieldCategory = '''\ class GoogleAdsFieldCategory(enum.IntEnum): """ The category of the artifact. @@ -5736,9 +6812,12 @@ class GoogleAdsFieldCategory(enum.IntEnum): ATTRIBUTE = 3 SEGMENT = 5 METRIC = 6 +''' +GoogleAdsFieldCategoryEnum = GoogleAdsFieldCategoryEnum() # For __getattribute__ -class GoogleAdsFieldDataTypeEnum(object): +class GoogleAdsFieldDataTypeEnum(_CreateEnumTypeUponFirstAccess): + GoogleAdsFieldDataType = '''\ class GoogleAdsFieldDataType(enum.IntEnum): """ These are the various types a GoogleAdsService artifact may take on. @@ -5796,9 +6875,12 @@ class GoogleAdsFieldDataType(enum.IntEnum): RESOURCE_NAME = 10 STRING = 11 UINT64 = 12 +''' +GoogleAdsFieldDataTypeEnum = GoogleAdsFieldDataTypeEnum() # For __getattribute__ -class HeaderErrorEnum(object): +class HeaderErrorEnum(_CreateEnumTypeUponFirstAccess): + HeaderError = '''\ class HeaderError(enum.IntEnum): """ Enum describing possible header errors. @@ -5807,13 +6889,18 @@ class HeaderError(enum.IntEnum): UNSPECIFIED (int): Enum unspecified. UNKNOWN (int): The received error code is not known in this version. INVALID_LOGIN_CUSTOMER_ID (int): The login customer id could not be validated. + INVALID_LINKED_CUSTOMER_ID (int): The linked customer id could not be validated. """ UNSPECIFIED = 0 UNKNOWN = 1 INVALID_LOGIN_CUSTOMER_ID = 3 + INVALID_LINKED_CUSTOMER_ID = 7 +''' +HeaderErrorEnum = HeaderErrorEnum() # For __getattribute__ -class HotelDateSelectionTypeEnum(object): +class HotelDateSelectionTypeEnum(_CreateEnumTypeUponFirstAccess): + HotelDateSelectionType = '''\ class HotelDateSelectionType(enum.IntEnum): """ Enum describing possible hotel date selection types. @@ -5828,9 +6915,12 @@ class HotelDateSelectionType(enum.IntEnum): UNKNOWN = 1 DEFAULT_SELECTION = 50 USER_SELECTED = 51 +''' +HotelDateSelectionTypeEnum = HotelDateSelectionTypeEnum() # For __getattribute__ -class HotelPlaceholderFieldEnum(object): +class HotelPlaceholderFieldEnum(_CreateEnumTypeUponFirstAccess): + HotelPlaceholderField = '''\ class HotelPlaceholderField(enum.IntEnum): """ Possible values for Hotel placeholder fields. @@ -5898,9 +6988,34 @@ class HotelPlaceholderField(enum.IntEnum): SIMILAR_PROPERTY_IDS = 19 IOS_APP_LINK = 20 IOS_APP_STORE_ID = 21 +''' +HotelPlaceholderFieldEnum = HotelPlaceholderFieldEnum() # For __getattribute__ + +class HotelPriceBucketEnum(_CreateEnumTypeUponFirstAccess): + HotelPriceBucket = '''\ + class HotelPriceBucket(enum.IntEnum): + """ + Enum describing possible hotel price buckets. + + Attributes: + UNSPECIFIED (int): Not specified. + UNKNOWN (int): The value is unknown in this version. + LOWEST_TIED (int): Tied for lowest price. Partner is within a small variance of the lowest + price. + NOT_LOWEST (int): Not lowest price. Partner is not within a small variance of the lowest + price. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + LOWEST_TIED = 3 + NOT_LOWEST = 4 +''' +HotelPriceBucketEnum = HotelPriceBucketEnum() # For __getattribute__ -class HotelRateTypeEnum(object): + +class HotelRateTypeEnum(_CreateEnumTypeUponFirstAccess): + HotelRateType = '''\ class HotelRateType(enum.IntEnum): """ Enum describing possible hotel rate types. @@ -5912,9 +7027,9 @@ class HotelRateType(enum.IntEnum): PUBLIC_RATE (int): Rates available to everyone. QUALIFIED_RATE (int): A membership program rate is available and satisfies basic requirements like having a public rate available. UI treatment will strikethrough the - public rate and indicate that a discount is available to the user. See + public rate and indicate that a discount is available to the user. For + more on Qualified Rates, visit https://developers.google.com/hotels/hotel-ads/dev-guide/qualified-rates - for more information. PRIVATE_RATE (int): Rates available to users that satisfy some eligibility criteria. e.g. all signed-in users, 20% of mobile users, all mobile users in Canada, etc. @@ -5925,9 +7040,12 @@ class HotelRateType(enum.IntEnum): PUBLIC_RATE = 3 QUALIFIED_RATE = 4 PRIVATE_RATE = 5 +''' +HotelRateTypeEnum = HotelRateTypeEnum() # For __getattribute__ -class IdErrorEnum(object): +class IdErrorEnum(_CreateEnumTypeUponFirstAccess): + IdError = '''\ class IdError(enum.IntEnum): """ Enum describing possible id errors. @@ -5940,9 +7058,12 @@ class IdError(enum.IntEnum): UNSPECIFIED = 0 UNKNOWN = 1 NOT_FOUND = 2 +''' +IdErrorEnum = IdErrorEnum() # For __getattribute__ -class ImageErrorEnum(object): +class ImageErrorEnum(_CreateEnumTypeUponFirstAccess): + ImageError = '''\ class ImageError(enum.IntEnum): """ Enum describing possible image errors. @@ -5988,6 +7109,10 @@ class ImageError(enum.IntEnum): IMAGE_TOO_SMALL (int): Image is too small. INVALID_INPUT (int): Input was invalid. PROBLEM_READING_FILE (int): There was a problem reading the image file. + IMAGE_CONSTRAINTS_VIOLATED (int): Image constraints are violated, but details like + ASPECT\_RATIO\_NOT\_ALLOWED can't be provided. This happens when asset + spec contains more than one constraint and different criteria of + different constraints are violated. """ UNSPECIFIED = 0 UNKNOWN = 1 @@ -6028,9 +7153,13 @@ class ImageError(enum.IntEnum): IMAGE_TOO_SMALL = 36 INVALID_INPUT = 37 PROBLEM_READING_FILE = 38 + IMAGE_CONSTRAINTS_VIOLATED = 39 +''' +ImageErrorEnum = ImageErrorEnum() # For __getattribute__ -class IncomeRangeTypeEnum(object): +class IncomeRangeTypeEnum(_CreateEnumTypeUponFirstAccess): + IncomeRangeType = '''\ class IncomeRangeType(enum.IntEnum): """ The type of demographic income ranges (e.g. between 0% to 50%). @@ -6055,9 +7184,12 @@ class IncomeRangeType(enum.IntEnum): INCOME_RANGE_80_90 = 510005 INCOME_RANGE_90_UP = 510006 INCOME_RANGE_UNDETERMINED = 510000 +''' +IncomeRangeTypeEnum = IncomeRangeTypeEnum() # For __getattribute__ -class InteractionEventTypeEnum(object): +class InteractionEventTypeEnum(_CreateEnumTypeUponFirstAccess): + InteractionEventType = '''\ class InteractionEventType(enum.IntEnum): """ Enum describing possible types of payable and free interactions. @@ -6082,9 +7214,12 @@ class InteractionEventType(enum.IntEnum): ENGAGEMENT = 3 VIDEO_VIEW = 4 NONE = 5 +''' +InteractionEventTypeEnum = InteractionEventTypeEnum() # For __getattribute__ -class InteractionTypeEnum(object): +class InteractionTypeEnum(_CreateEnumTypeUponFirstAccess): + InteractionType = '''\ class InteractionType(enum.IntEnum): """ Enum describing possible interaction types. @@ -6097,9 +7232,12 @@ class InteractionType(enum.IntEnum): UNSPECIFIED = 0 UNKNOWN = 1 CALLS = 8000 +''' +InteractionTypeEnum = InteractionTypeEnum() # For __getattribute__ -class InternalErrorEnum(object): +class InternalErrorEnum(_CreateEnumTypeUponFirstAccess): + InternalError = '''\ class InternalError(enum.IntEnum): """ Enum describing possible internal errors. @@ -6108,19 +7246,64 @@ class InternalError(enum.IntEnum): UNSPECIFIED (int): Enum unspecified. UNKNOWN (int): The received error code is not known in this version. INTERNAL_ERROR (int): Google Ads API encountered unexpected internal error. - ERROR_CODE_NOT_PUBLISHED (int): The intended error code doesn't exist in any API version. This will be - fixed by adding a new error code as soon as possible. + ERROR_CODE_NOT_PUBLISHED (int): The intended error code doesn't exist in specified API version. It will + be released in a future API version. TRANSIENT_ERROR (int): Google Ads API encountered an unexpected transient error. The user should retry their request in these cases. + DEADLINE_EXCEEDED (int): The request took longer than a deadline. """ UNSPECIFIED = 0 UNKNOWN = 1 INTERNAL_ERROR = 2 ERROR_CODE_NOT_PUBLISHED = 3 TRANSIENT_ERROR = 4 + DEADLINE_EXCEEDED = 5 +''' +InternalErrorEnum = InternalErrorEnum() # For __getattribute__ + + +class InvoiceErrorEnum(_CreateEnumTypeUponFirstAccess): + InvoiceError = '''\ + class InvoiceError(enum.IntEnum): + """ + Enum describing possible invoice errors. + + Attributes: + UNSPECIFIED (int): Enum unspecified. + UNKNOWN (int): The received error code is not known in this version. + YEAR_MONTH_TOO_OLD (int): Cannot request invoices issued before 2019-01-01. + NOT_INVOICED_CUSTOMER (int): Cannot request invoices for customer who doesn't receive invoices. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + YEAR_MONTH_TOO_OLD = 2 + NOT_INVOICED_CUSTOMER = 3 +''' +InvoiceErrorEnum = InvoiceErrorEnum() # For __getattribute__ + + +class InvoiceTypeEnum(_CreateEnumTypeUponFirstAccess): + InvoiceType = '''\ + class InvoiceType(enum.IntEnum): + """ + The possible type of invoices. + + Attributes: + UNSPECIFIED (int): Not specified. + UNKNOWN (int): Used for return value only. Represents value unknown in this version. + CREDIT_MEMO (int): An invoice with a negative amount. The account receives a credit. + INVOICE (int): An invoice with a positive amount. The account owes a balance. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + CREDIT_MEMO = 2 + INVOICE = 3 +''' +InvoiceTypeEnum = InvoiceTypeEnum() # For __getattribute__ -class JobPlaceholderFieldEnum(object): +class JobPlaceholderFieldEnum(_CreateEnumTypeUponFirstAccess): + JobPlaceholderField = '''\ class JobPlaceholderField(enum.IntEnum): """ Possible values for Job placeholder fields. @@ -6181,9 +7364,12 @@ class JobPlaceholderField(enum.IntEnum): SIMILAR_JOB_IDS = 17 IOS_APP_LINK = 18 IOS_APP_STORE_ID = 19 +''' +JobPlaceholderFieldEnum = JobPlaceholderFieldEnum() # For __getattribute__ -class KeywordMatchTypeEnum(object): +class KeywordMatchTypeEnum(_CreateEnumTypeUponFirstAccess): + KeywordMatchType = '''\ class KeywordMatchType(enum.IntEnum): """ Possible Keyword match types. @@ -6200,9 +7386,12 @@ class KeywordMatchType(enum.IntEnum): EXACT = 2 PHRASE = 3 BROAD = 4 +''' +KeywordMatchTypeEnum = KeywordMatchTypeEnum() # For __getattribute__ -class KeywordPlanAdGroupErrorEnum(object): +class KeywordPlanAdGroupErrorEnum(_CreateEnumTypeUponFirstAccess): + KeywordPlanAdGroupError = '''\ class KeywordPlanAdGroupError(enum.IntEnum): """ Enum describing possible errors from applying a keyword plan ad group. @@ -6219,9 +7408,44 @@ class KeywordPlanAdGroupError(enum.IntEnum): UNKNOWN = 1 INVALID_NAME = 2 DUPLICATE_NAME = 3 +''' +KeywordPlanAdGroupErrorEnum = KeywordPlanAdGroupErrorEnum() # For __getattribute__ + + +class KeywordPlanAdGroupKeywordErrorEnum(_CreateEnumTypeUponFirstAccess): + KeywordPlanAdGroupKeywordError = '''\ + class KeywordPlanAdGroupKeywordError(enum.IntEnum): + """ + Enum describing possible errors from applying a keyword plan ad group + keyword or keyword plan campaign keyword. + + Attributes: + UNSPECIFIED (int): Enum unspecified. + UNKNOWN (int): The received error code is not known in this version. + INVALID_KEYWORD_MATCH_TYPE (int): A keyword or negative keyword has invalid match type. + DUPLICATE_KEYWORD (int): A keyword or negative keyword with same text and match type already + exists. + KEYWORD_TEXT_TOO_LONG (int): Keyword or negative keyword text exceeds the allowed limit. + KEYWORD_HAS_INVALID_CHARS (int): Keyword or negative keyword text has invalid characters or symbols. + KEYWORD_HAS_TOO_MANY_WORDS (int): Keyword or negative keyword text has too many words. + INVALID_KEYWORD_TEXT (int): Keyword or negative keyword has invalid text. + NEGATIVE_KEYWORD_HAS_CPC_BID (int): Cpc Bid set for negative keyword. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + INVALID_KEYWORD_MATCH_TYPE = 2 + DUPLICATE_KEYWORD = 3 + KEYWORD_TEXT_TOO_LONG = 4 + KEYWORD_HAS_INVALID_CHARS = 5 + KEYWORD_HAS_TOO_MANY_WORDS = 6 + INVALID_KEYWORD_TEXT = 7 + NEGATIVE_KEYWORD_HAS_CPC_BID = 8 +''' +KeywordPlanAdGroupKeywordErrorEnum = KeywordPlanAdGroupKeywordErrorEnum() # For __getattribute__ -class KeywordPlanCampaignErrorEnum(object): +class KeywordPlanCampaignErrorEnum(_CreateEnumTypeUponFirstAccess): + KeywordPlanCampaignError = '''\ class KeywordPlanCampaignError(enum.IntEnum): """ Enum describing possible errors from applying a keyword plan campaign. @@ -6244,9 +7468,31 @@ class KeywordPlanCampaignError(enum.IntEnum): INVALID_GEOS = 4 DUPLICATE_NAME = 5 MAX_GEOS_EXCEEDED = 6 +''' +KeywordPlanCampaignErrorEnum = KeywordPlanCampaignErrorEnum() # For __getattribute__ + + +class KeywordPlanCampaignKeywordErrorEnum(_CreateEnumTypeUponFirstAccess): + KeywordPlanCampaignKeywordError = '''\ + class KeywordPlanCampaignKeywordError(enum.IntEnum): + """ + Enum describing possible errors from applying a keyword plan campaign + keyword. + Attributes: + UNSPECIFIED (int): Enum unspecified. + UNKNOWN (int): The received error code is not known in this version. + CAMPAIGN_KEYWORD_IS_POSITIVE (int): Keyword plan campaign keyword is positive. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + CAMPAIGN_KEYWORD_IS_POSITIVE = 8 +''' +KeywordPlanCampaignKeywordErrorEnum = KeywordPlanCampaignKeywordErrorEnum() # For __getattribute__ -class KeywordPlanCompetitionLevelEnum(object): + +class KeywordPlanCompetitionLevelEnum(_CreateEnumTypeUponFirstAccess): + KeywordPlanCompetitionLevel = '''\ class KeywordPlanCompetitionLevel(enum.IntEnum): """ Competition level of a keyword. @@ -6254,18 +7500,21 @@ class KeywordPlanCompetitionLevel(enum.IntEnum): Attributes: UNSPECIFIED (int): Not specified. UNKNOWN (int): The value is unknown in this version. - LOW (int): Low competition. - MEDIUM (int): Medium competition. - HIGH (int): High competition. + LOW (int): Low competition. The Competition Index range for this is [0, 33]. + MEDIUM (int): Medium competition. The Competition Index range for this is [34, 66]. + HIGH (int): High competition. The Competition Index range for this is [67, 100]. """ UNSPECIFIED = 0 UNKNOWN = 1 LOW = 2 MEDIUM = 3 HIGH = 4 +''' +KeywordPlanCompetitionLevelEnum = KeywordPlanCompetitionLevelEnum() # For __getattribute__ -class KeywordPlanErrorEnum(object): +class KeywordPlanErrorEnum(_CreateEnumTypeUponFirstAccess): + KeywordPlanError = '''\ class KeywordPlanError(enum.IntEnum): """ Enum describing possible errors from applying a keyword plan. @@ -6305,9 +7554,12 @@ class KeywordPlanError(enum.IntEnum): MISSING_FORECAST_PERIOD = 14 INVALID_FORECAST_DATE_RANGE = 15 INVALID_NAME = 16 +''' +KeywordPlanErrorEnum = KeywordPlanErrorEnum() # For __getattribute__ -class KeywordPlanForecastIntervalEnum(object): +class KeywordPlanForecastIntervalEnum(_CreateEnumTypeUponFirstAccess): + KeywordPlanForecastInterval = '''\ class KeywordPlanForecastInterval(enum.IntEnum): """ Forecast intervals. @@ -6327,9 +7579,12 @@ class KeywordPlanForecastInterval(enum.IntEnum): NEXT_WEEK = 3 NEXT_MONTH = 4 NEXT_QUARTER = 5 +''' +KeywordPlanForecastIntervalEnum = KeywordPlanForecastIntervalEnum() # For __getattribute__ -class KeywordPlanIdeaErrorEnum(object): +class KeywordPlanIdeaErrorEnum(_CreateEnumTypeUponFirstAccess): + KeywordPlanIdeaError = '''\ class KeywordPlanIdeaError(enum.IntEnum): """ Enum describing possible errors from KeywordPlanIdeaService. @@ -6344,69 +7599,35 @@ class KeywordPlanIdeaError(enum.IntEnum): UNKNOWN = 1 URL_CRAWL_ERROR = 2 INVALID_VALUE = 3 +''' +KeywordPlanIdeaErrorEnum = KeywordPlanIdeaErrorEnum() # For __getattribute__ -class KeywordPlanKeywordErrorEnum(object): - class KeywordPlanKeywordError(enum.IntEnum): +class KeywordPlanNetworkEnum(_CreateEnumTypeUponFirstAccess): + KeywordPlanNetwork = '''\ + class KeywordPlanNetwork(enum.IntEnum): """ - Enum describing possible errors from applying a keyword plan keyword. + Enumerates keyword plan forecastable network types. Attributes: - UNSPECIFIED (int): Enum unspecified. - UNKNOWN (int): The received error code is not known in this version. - INVALID_KEYWORD_MATCH_TYPE (int): A keyword or negative keyword has invalid match type. - DUPLICATE_KEYWORD (int): A keyword or negative keyword with same text and match type already - exists. - KEYWORD_TEXT_TOO_LONG (int): Keyword or negative keyword text exceeds the allowed limit. - KEYWORD_HAS_INVALID_CHARS (int): Keyword or negative keyword text has invalid characters or symbols. - KEYWORD_HAS_TOO_MANY_WORDS (int): Keyword or negative keyword text has too many words. - INVALID_KEYWORD_TEXT (int): Keyword or negative keyword has invalid text. + UNSPECIFIED (int): Not specified. + UNKNOWN (int): The value is unknown in this version. + GOOGLE_SEARCH (int): Google Search. + GOOGLE_SEARCH_AND_PARTNERS (int): Google Search + Search partners. """ UNSPECIFIED = 0 UNKNOWN = 1 - INVALID_KEYWORD_MATCH_TYPE = 2 - DUPLICATE_KEYWORD = 3 - KEYWORD_TEXT_TOO_LONG = 4 - KEYWORD_HAS_INVALID_CHARS = 5 - KEYWORD_HAS_TOO_MANY_WORDS = 6 - INVALID_KEYWORD_TEXT = 7 + GOOGLE_SEARCH = 2 + GOOGLE_SEARCH_AND_PARTNERS = 3 +''' +KeywordPlanNetworkEnum = KeywordPlanNetworkEnum() # For __getattribute__ -class KeywordPlanNegativeKeywordErrorEnum(object): - class KeywordPlanNegativeKeywordError(enum.IntEnum): +class LabelErrorEnum(_CreateEnumTypeUponFirstAccess): + LabelError = '''\ + class LabelError(enum.IntEnum): """ - Enum describing possible errors from applying a keyword plan negative - keyword. - - Attributes: - UNSPECIFIED (int): Enum unspecified. - UNKNOWN (int): The received error code is not known in this version. - """ - UNSPECIFIED = 0 - UNKNOWN = 1 - - -class KeywordPlanNetworkEnum(object): - class KeywordPlanNetwork(enum.IntEnum): - """ - Enumerates keyword plan forecastable network types. - - Attributes: - UNSPECIFIED (int): Not specified. - UNKNOWN (int): The value is unknown in this version. - GOOGLE_SEARCH (int): Google Search. - GOOGLE_SEARCH_AND_PARTNERS (int): Google Search + Search partners. - """ - UNSPECIFIED = 0 - UNKNOWN = 1 - GOOGLE_SEARCH = 2 - GOOGLE_SEARCH_AND_PARTNERS = 3 - - -class LabelErrorEnum(object): - class LabelError(enum.IntEnum): - """ - Enum describing possible label errors. + Enum describing possible label errors. Attributes: UNSPECIFIED (int): Enum unspecified. @@ -6434,9 +7655,12 @@ class LabelError(enum.IntEnum): INVALID_LABEL_NAME = 8 CANNOT_ATTACH_LABEL_TO_DRAFT = 9 CANNOT_ATTACH_NON_MANAGER_LABEL_TO_CUSTOMER = 10 +''' +LabelErrorEnum = LabelErrorEnum() # For __getattribute__ -class LabelStatusEnum(object): +class LabelStatusEnum(_CreateEnumTypeUponFirstAccess): + LabelStatus = '''\ class LabelStatus(enum.IntEnum): """ Possible statuses of a label. @@ -6451,9 +7675,12 @@ class LabelStatus(enum.IntEnum): UNKNOWN = 1 ENABLED = 2 REMOVED = 3 +''' +LabelStatusEnum = LabelStatusEnum() # For __getattribute__ -class LanguageCodeErrorEnum(object): +class LanguageCodeErrorEnum(_CreateEnumTypeUponFirstAccess): + LanguageCodeError = '''\ class LanguageCodeError(enum.IntEnum): """ Enum describing language code errors. @@ -6468,9 +7695,12 @@ class LanguageCodeError(enum.IntEnum): UNKNOWN = 1 LANGUAGE_CODE_NOT_FOUND = 2 INVALID_LANGUAGE_CODE = 3 +''' +LanguageCodeErrorEnum = LanguageCodeErrorEnum() # For __getattribute__ -class LegacyAppInstallAdAppStoreEnum(object): +class LegacyAppInstallAdAppStoreEnum(_CreateEnumTypeUponFirstAccess): + LegacyAppInstallAdAppStore = '''\ class LegacyAppInstallAdAppStore(enum.IntEnum): """ App store type in a legacy app install ad. @@ -6491,49 +7721,51 @@ class LegacyAppInstallAdAppStore(enum.IntEnum): WINDOWS_STORE = 4 WINDOWS_PHONE_STORE = 5 CN_APP_STORE = 6 +''' +LegacyAppInstallAdAppStoreEnum = LegacyAppInstallAdAppStoreEnum() # For __getattribute__ -class ListOperationErrorEnum(object): - class ListOperationError(enum.IntEnum): +class LinkedAccountTypeEnum(_CreateEnumTypeUponFirstAccess): + LinkedAccountType = '''\ + class LinkedAccountType(enum.IntEnum): """ - Enum describing possible list operation errors. + Describes the possible link types between a Google Ads customer + and another account. Attributes: - UNSPECIFIED (int): Enum unspecified. - UNKNOWN (int): The received error code is not known in this version. - REQUIRED_FIELD_MISSING (int): Field required in value is missing. - DUPLICATE_VALUES (int): Duplicate or identical value is sent in multiple list operations. + UNSPECIFIED (int): Not specified. + UNKNOWN (int): Used for return value only. Represents value unknown in this version. + THIRD_PARTY_APP_ANALYTICS (int): A link to provide third party app analytics data. """ UNSPECIFIED = 0 UNKNOWN = 1 - REQUIRED_FIELD_MISSING = 7 - DUPLICATE_VALUES = 8 + THIRD_PARTY_APP_ANALYTICS = 2 +''' +LinkedAccountTypeEnum = LinkedAccountTypeEnum() # For __getattribute__ -class ListingCustomAttributeIndexEnum(object): - class ListingCustomAttributeIndex(enum.IntEnum): +class ListOperationErrorEnum(_CreateEnumTypeUponFirstAccess): + ListOperationError = '''\ + class ListOperationError(enum.IntEnum): """ - The index of the listing custom attribute. + Enum describing possible list operation errors. Attributes: - UNSPECIFIED (int): Not specified. - UNKNOWN (int): Used for return value only. Represents value unknown in this version. - INDEX0 (int): First listing custom attribute. - INDEX1 (int): Second listing custom attribute. - INDEX2 (int): Third listing custom attribute. - INDEX3 (int): Fourth listing custom attribute. - INDEX4 (int): Fifth listing custom attribute. + UNSPECIFIED (int): Enum unspecified. + UNKNOWN (int): The received error code is not known in this version. + REQUIRED_FIELD_MISSING (int): Field required in value is missing. + DUPLICATE_VALUES (int): Duplicate or identical value is sent in multiple list operations. """ UNSPECIFIED = 0 UNKNOWN = 1 - INDEX0 = 7 - INDEX1 = 8 - INDEX2 = 9 - INDEX3 = 10 - INDEX4 = 11 + REQUIRED_FIELD_MISSING = 7 + DUPLICATE_VALUES = 8 +''' +ListOperationErrorEnum = ListOperationErrorEnum() # For __getattribute__ -class ListingGroupTypeEnum(object): +class ListingGroupTypeEnum(_CreateEnumTypeUponFirstAccess): + ListingGroupType = '''\ class ListingGroupType(enum.IntEnum): """ The type of the listing group. @@ -6550,9 +7782,12 @@ class ListingGroupType(enum.IntEnum): UNKNOWN = 1 SUBDIVISION = 2 UNIT = 3 +''' +ListingGroupTypeEnum = ListingGroupTypeEnum() # For __getattribute__ -class LocalPlaceholderFieldEnum(object): +class LocalPlaceholderFieldEnum(_CreateEnumTypeUponFirstAccess): + LocalPlaceholderField = '''\ class LocalPlaceholderField(enum.IntEnum): """ Possible values for Local placeholder fields. @@ -6616,9 +7851,12 @@ class LocalPlaceholderField(enum.IntEnum): SIMILAR_DEAL_IDS = 18 IOS_APP_LINK = 19 IOS_APP_STORE_ID = 20 +''' +LocalPlaceholderFieldEnum = LocalPlaceholderFieldEnum() # For __getattribute__ -class LocationExtensionTargetingCriterionFieldEnum(object): +class LocationExtensionTargetingCriterionFieldEnum(_CreateEnumTypeUponFirstAccess): + LocationExtensionTargetingCriterionField = '''\ class LocationExtensionTargetingCriterionField(enum.IntEnum): """ Possible values for Location Extension Targeting criterion fields. @@ -6641,9 +7879,12 @@ class LocationExtensionTargetingCriterionField(enum.IntEnum): PROVINCE = 5 POSTAL_CODE = 6 COUNTRY_CODE = 7 +''' +LocationExtensionTargetingCriterionFieldEnum = LocationExtensionTargetingCriterionFieldEnum() # For __getattribute__ -class LocationGroupRadiusUnitsEnum(object): +class LocationGroupRadiusUnitsEnum(_CreateEnumTypeUponFirstAccess): + LocationGroupRadiusUnits = '''\ class LocationGroupRadiusUnits(enum.IntEnum): """ The unit of radius distance in location group (e.g. MILES) @@ -6658,9 +7899,12 @@ class LocationGroupRadiusUnits(enum.IntEnum): UNKNOWN = 1 METERS = 2 MILES = 3 +''' +LocationGroupRadiusUnitsEnum = LocationGroupRadiusUnitsEnum() # For __getattribute__ -class LocationPlaceholderFieldEnum(object): +class LocationPlaceholderFieldEnum(_CreateEnumTypeUponFirstAccess): + LocationPlaceholderField = '''\ class LocationPlaceholderField(enum.IntEnum): """ Possible values for Location placeholder fields. @@ -6687,9 +7931,33 @@ class LocationPlaceholderField(enum.IntEnum): POSTAL_CODE = 7 COUNTRY_CODE = 8 PHONE_NUMBER = 9 +''' +LocationPlaceholderFieldEnum = LocationPlaceholderFieldEnum() # For __getattribute__ + + +class LocationSourceTypeEnum(_CreateEnumTypeUponFirstAccess): + LocationSourceType = '''\ + class LocationSourceType(enum.IntEnum): + """ + The possible types of a location source. + + Attributes: + UNSPECIFIED (int): No value has been specified. + UNKNOWN (int): Used for return value only. Represents value unknown in this version. + GOOGLE_MY_BUSINESS (int): Locations associated with the customer's linked Google My Business + account. + AFFILIATE (int): Affiliate (chain) store locations. For example, Best Buy store locations. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + GOOGLE_MY_BUSINESS = 2 + AFFILIATE = 3 +''' +LocationSourceTypeEnum = LocationSourceTypeEnum() # For __getattribute__ -class ManagerLinkErrorEnum(object): +class ManagerLinkErrorEnum(_CreateEnumTypeUponFirstAccess): + ManagerLinkError = '''\ class ManagerLinkError(enum.IntEnum): """ Enum describing possible ManagerLink errors. @@ -6712,6 +7980,10 @@ class ManagerLinkError(enum.IntEnum): NON_OWNER_USER_CANNOT_MODIFY_LINK (int): The account is not authorized owner. SUSPENDED_ACCOUNT_CANNOT_ADD_CLIENTS (int): Your manager account is suspended, and you are no longer allowed to link to clients. + CLIENT_OUTSIDE_TREE (int): You are not allowed to move a client to a manager that is not under your + current hierarchy. + INVALID_STATUS_CHANGE (int): The changed status for mutate link is invalid. + INVALID_CHANGE (int): The change for mutate link is invalid. """ UNSPECIFIED = 0 UNKNOWN = 1 @@ -6729,9 +8001,15 @@ class ManagerLinkError(enum.IntEnum): TOO_MANY_ACCOUNTS_AT_MANAGER = 13 NON_OWNER_USER_CANNOT_MODIFY_LINK = 14 SUSPENDED_ACCOUNT_CANNOT_ADD_CLIENTS = 15 + CLIENT_OUTSIDE_TREE = 16 + INVALID_STATUS_CHANGE = 17 + INVALID_CHANGE = 18 +''' +ManagerLinkErrorEnum = ManagerLinkErrorEnum() # For __getattribute__ -class ManagerLinkStatusEnum(object): +class ManagerLinkStatusEnum(_CreateEnumTypeUponFirstAccess): + ManagerLinkStatus = '''\ class ManagerLinkStatus(enum.IntEnum): """ Possible statuses of a link. @@ -6754,9 +8032,12 @@ class ManagerLinkStatus(enum.IntEnum): PENDING = 4 REFUSED = 5 CANCELED = 6 +''' +ManagerLinkStatusEnum = ManagerLinkStatusEnum() # For __getattribute__ -class MatchingFunctionContextTypeEnum(object): +class MatchingFunctionContextTypeEnum(_CreateEnumTypeUponFirstAccess): + MatchingFunctionContextType = '''\ class MatchingFunctionContextType(enum.IntEnum): """ Possible context types for an operand in a matching function. @@ -6771,9 +8052,12 @@ class MatchingFunctionContextType(enum.IntEnum): UNKNOWN = 1 FEED_ITEM_ID = 2 DEVICE_NAME = 3 +''' +MatchingFunctionContextTypeEnum = MatchingFunctionContextTypeEnum() # For __getattribute__ -class MatchingFunctionOperatorEnum(object): +class MatchingFunctionOperatorEnum(_CreateEnumTypeUponFirstAccess): + MatchingFunctionOperator = '''\ class MatchingFunctionOperator(enum.IntEnum): """ Possible operators in a matching function. @@ -6800,9 +8084,12 @@ class MatchingFunctionOperator(enum.IntEnum): EQUALS = 4 AND = 5 CONTAINS_ANY = 6 +''' +MatchingFunctionOperatorEnum = MatchingFunctionOperatorEnum() # For __getattribute__ -class MediaBundleErrorEnum(object): +class MediaBundleErrorEnum(_CreateEnumTypeUponFirstAccess): + MediaBundleError = '''\ class MediaBundleError(enum.IntEnum): """ Enum describing possible media bundle errors. @@ -6857,9 +8144,12 @@ class MediaBundleError(enum.IntEnum): UNSUPPORTED_HTML5_FEATURE = 22 URL_IN_MEDIA_BUNDLE_NOT_SSL_COMPLIANT = 23 CUSTOM_EXIT_NOT_ALLOWED = 24 +''' +MediaBundleErrorEnum = MediaBundleErrorEnum() # For __getattribute__ -class MediaFileErrorEnum(object): +class MediaFileErrorEnum(_CreateEnumTypeUponFirstAccess): + MediaFileError = '''\ class MediaFileError(enum.IntEnum): """ Enum describing possible media file errors. @@ -6916,9 +8206,12 @@ class MediaFileError(enum.IntEnum): YOU_TUBE_SERVICE_UNAVAILABLE = 22 YOU_TUBE_VIDEO_HAS_NON_POSITIVE_DURATION = 23 YOU_TUBE_VIDEO_NOT_FOUND = 24 +''' +MediaFileErrorEnum = MediaFileErrorEnum() # For __getattribute__ -class MediaTypeEnum(object): +class MediaTypeEnum(_CreateEnumTypeUponFirstAccess): + MediaType = '''\ class MediaType(enum.IntEnum): """ The type of media. @@ -6943,9 +8236,12 @@ class MediaType(enum.IntEnum): AUDIO = 5 VIDEO = 6 DYNAMIC_IMAGE = 7 +''' +MediaTypeEnum = MediaTypeEnum() # For __getattribute__ -class MediaUploadErrorEnum(object): +class MediaUploadErrorEnum(_CreateEnumTypeUponFirstAccess): + MediaUploadError = '''\ class MediaUploadError(enum.IntEnum): """ Enum describing possible media uploading errors. @@ -6957,6 +8253,9 @@ class MediaUploadError(enum.IntEnum): UNPARSEABLE_IMAGE (int): Image data is unparseable. ANIMATED_IMAGE_NOT_ALLOWED (int): Animated images are not allowed. FORMAT_NOT_ALLOWED (int): The image or media bundle format is not allowed. + EXTERNAL_URL_NOT_ALLOWED (int): Cannot reference URL external to the media bundle. + INVALID_URL_REFERENCE (int): HTML5 ad is trying to reference an asset not in .ZIP file. + MISSING_PRIMARY_MEDIA_BUNDLE_ENTRY (int): The media bundle contains no primary entry. """ UNSPECIFIED = 0 UNKNOWN = 1 @@ -6964,9 +8263,15 @@ class MediaUploadError(enum.IntEnum): UNPARSEABLE_IMAGE = 3 ANIMATED_IMAGE_NOT_ALLOWED = 4 FORMAT_NOT_ALLOWED = 5 + EXTERNAL_URL_NOT_ALLOWED = 6 + INVALID_URL_REFERENCE = 7 + MISSING_PRIMARY_MEDIA_BUNDLE_ENTRY = 8 +''' +MediaUploadErrorEnum = MediaUploadErrorEnum() # For __getattribute__ -class MerchantCenterLinkStatusEnum(object): +class MerchantCenterLinkStatusEnum(_CreateEnumTypeUponFirstAccess): + MerchantCenterLinkStatus = '''\ class MerchantCenterLinkStatus(enum.IntEnum): """ Describes the possible statuses for a link between a Google Ads customer @@ -6983,9 +8288,12 @@ class MerchantCenterLinkStatus(enum.IntEnum): UNKNOWN = 1 ENABLED = 2 PENDING = 3 +''' +MerchantCenterLinkStatusEnum = MerchantCenterLinkStatusEnum() # For __getattribute__ -class MessagePlaceholderFieldEnum(object): +class MessagePlaceholderFieldEnum(_CreateEnumTypeUponFirstAccess): + MessagePlaceholderField = '''\ class MessagePlaceholderField(enum.IntEnum): """ Possible values for Message placeholder fields. @@ -7008,9 +8316,12 @@ class MessagePlaceholderField(enum.IntEnum): PHONE_NUMBER = 4 MESSAGE_EXTENSION_TEXT = 5 MESSAGE_TEXT = 6 +''' +MessagePlaceholderFieldEnum = MessagePlaceholderFieldEnum() # For __getattribute__ -class MimeTypeEnum(object): +class MimeTypeEnum(_CreateEnumTypeUponFirstAccess): + MimeType = '''\ class MimeType(enum.IntEnum): """ The mime type @@ -7047,9 +8358,12 @@ class MimeType(enum.IntEnum): AUDIO_WAV = 11 AUDIO_MP3 = 12 HTML5_AD_ZIP = 13 +''' +MimeTypeEnum = MimeTypeEnum() # For __getattribute__ -class MinuteOfHourEnum(object): +class MinuteOfHourEnum(_CreateEnumTypeUponFirstAccess): + MinuteOfHour = '''\ class MinuteOfHour(enum.IntEnum): """ Enumerates of quarter-hours. E.g. "FIFTEEN" @@ -7068,9 +8382,32 @@ class MinuteOfHour(enum.IntEnum): FIFTEEN = 3 THIRTY = 4 FORTY_FIVE = 5 +''' +MinuteOfHourEnum = MinuteOfHourEnum() # For __getattribute__ + + +class MobileAppVendorEnum(_CreateEnumTypeUponFirstAccess): + MobileAppVendor = '''\ + class MobileAppVendor(enum.IntEnum): + """ + The type of mobile app vendor + + Attributes: + UNSPECIFIED (int): Not specified. + UNKNOWN (int): Used for return value only. Represents value unknown in this version. + APPLE_APP_STORE (int): Mobile app vendor for Apple app store. + GOOGLE_APP_STORE (int): Mobile app vendor for Google app store. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + APPLE_APP_STORE = 2 + GOOGLE_APP_STORE = 3 +''' +MobileAppVendorEnum = MobileAppVendorEnum() # For __getattribute__ -class MobileDeviceTypeEnum(object): +class MobileDeviceTypeEnum(_CreateEnumTypeUponFirstAccess): + MobileDeviceType = '''\ class MobileDeviceType(enum.IntEnum): """ The type of mobile device. @@ -7085,9 +8422,12 @@ class MobileDeviceType(enum.IntEnum): UNKNOWN = 1 MOBILE = 2 TABLET = 3 +''' +MobileDeviceTypeEnum = MobileDeviceTypeEnum() # For __getattribute__ -class MonthOfYearEnum(object): +class MonthOfYearEnum(_CreateEnumTypeUponFirstAccess): + MonthOfYear = '''\ class MonthOfYear(enum.IntEnum): """ Enumerates months of the year, e.g., "January". @@ -7122,9 +8462,12 @@ class MonthOfYear(enum.IntEnum): OCTOBER = 11 NOVEMBER = 12 DECEMBER = 13 +''' +MonthOfYearEnum = MonthOfYearEnum() # For __getattribute__ -class MultiplierErrorEnum(object): +class MultiplierErrorEnum(_CreateEnumTypeUponFirstAccess): + MultiplierError = '''\ class MultiplierError(enum.IntEnum): """ Enum describing possible multiplier errors. @@ -7160,9 +8503,12 @@ class MultiplierError(enum.IntEnum): MULTIPLIER_CAUSES_BID_TO_EXCEED_MAX_ALLOWED_BID = 11 BID_LESS_THAN_MIN_ALLOWED_BID_WITH_MULTIPLIER = 12 MULTIPLIER_AND_BIDDING_STRATEGY_TYPE_MISMATCH = 13 +''' +MultiplierErrorEnum = MultiplierErrorEnum() # For __getattribute__ -class MutateErrorEnum(object): +class MutateErrorEnum(_CreateEnumTypeUponFirstAccess): + MutateError = '''\ class MutateError(enum.IntEnum): """ Enum describing possible mutate errors. @@ -7177,6 +8523,8 @@ class MutateError(enum.IntEnum): MUTATE_NOT_ALLOWED (int): Mutates are not allowed for the requested resource. RESOURCE_NOT_IN_GOOGLE_ADS (int): The resource isn't in Google Ads. It belongs to another ads system. RESOURCE_ALREADY_EXISTS (int): The resource being created already exists. + RESOURCE_DOES_NOT_SUPPORT_VALIDATE_ONLY (int): This resource cannot be used with "validate\_only". + RESOURCE_READ_ONLY (int): Attempt to write to read-only fields. """ UNSPECIFIED = 0 UNKNOWN = 1 @@ -7186,52 +8534,14 @@ class MutateError(enum.IntEnum): MUTATE_NOT_ALLOWED = 9 RESOURCE_NOT_IN_GOOGLE_ADS = 10 RESOURCE_ALREADY_EXISTS = 11 + RESOURCE_DOES_NOT_SUPPORT_VALIDATE_ONLY = 12 + RESOURCE_READ_ONLY = 13 +''' +MutateErrorEnum = MutateErrorEnum() # For __getattribute__ -class MutateJobErrorEnum(object): - class MutateJobError(enum.IntEnum): - """ - Enum describing possible request errors. - - Attributes: - UNSPECIFIED (int): Enum unspecified. - UNKNOWN (int): The received error code is not known in this version. - CANNOT_MODIFY_JOB_AFTER_JOB_STARTS_RUNNING (int): The mutate job cannot add more operations or run after it has started - running. - EMPTY_OPERATIONS (int): The operations for an AddMutateJobOperations request were empty. - INVALID_SEQUENCE_TOKEN (int): The sequence token for an AddMutateJobOperations request was invalid. - RESULTS_NOT_READY (int): Mutate Job Results can only be retrieved once the job is finished. - INVALID_PAGE_SIZE (int): The page size for ListMutateJobResults was invalid. - """ - UNSPECIFIED = 0 - UNKNOWN = 1 - CANNOT_MODIFY_JOB_AFTER_JOB_STARTS_RUNNING = 2 - EMPTY_OPERATIONS = 3 - INVALID_SEQUENCE_TOKEN = 4 - RESULTS_NOT_READY = 5 - INVALID_PAGE_SIZE = 6 - - -class MutateJobStatusEnum(object): - class MutateJobStatus(enum.IntEnum): - """ - The mutate job statuses. - - Attributes: - UNSPECIFIED (int): Not specified. - UNKNOWN (int): Used for return value only. Represents value unknown in this version. - PENDING (int): The job is not currently running. - RUNNING (int): The job is running. - DONE (int): The job is done. - """ - UNSPECIFIED = 0 - UNKNOWN = 1 - PENDING = 2 - RUNNING = 3 - DONE = 4 - - -class NegativeGeoTargetTypeEnum(object): +class NegativeGeoTargetTypeEnum(_CreateEnumTypeUponFirstAccess): + NegativeGeoTargetType = '''\ class NegativeGeoTargetType(enum.IntEnum): """ The possible negative geo target types. @@ -7239,18 +8549,21 @@ class NegativeGeoTargetType(enum.IntEnum): Attributes: UNSPECIFIED (int): Not specified. UNKNOWN (int): The value is unknown in this version. - DONT_CARE (int): Specifies that a user is excluded from seeing the ad if they + PRESENCE_OR_INTEREST (int): Specifies that a user is excluded from seeing the ad if they are in, or show interest in, advertiser's excluded locations. - LOCATION_OF_PRESENCE (int): Specifies that a user is excluded from seeing the ad if they + PRESENCE (int): Specifies that a user is excluded from seeing the ad if they are in advertiser's excluded locations. """ UNSPECIFIED = 0 UNKNOWN = 1 - DONT_CARE = 2 - LOCATION_OF_PRESENCE = 3 + PRESENCE_OR_INTEREST = 4 + PRESENCE = 5 +''' +NegativeGeoTargetTypeEnum = NegativeGeoTargetTypeEnum() # For __getattribute__ -class NewResourceCreationErrorEnum(object): +class NewResourceCreationErrorEnum(_CreateEnumTypeUponFirstAccess): + NewResourceCreationError = '''\ class NewResourceCreationError(enum.IntEnum): """ Enum describing possible new resource creation errors. @@ -7268,9 +8581,12 @@ class NewResourceCreationError(enum.IntEnum): CANNOT_SET_ID_FOR_CREATE = 2 DUPLICATE_TEMP_IDS = 3 TEMP_ID_RESOURCE_HAD_ERRORS = 4 +''' +NewResourceCreationErrorEnum = NewResourceCreationErrorEnum() # For __getattribute__ -class NotEmptyErrorEnum(object): +class NotEmptyErrorEnum(_CreateEnumTypeUponFirstAccess): + NotEmptyError = '''\ class NotEmptyError(enum.IntEnum): """ Enum describing possible not empty errors. @@ -7283,9 +8599,12 @@ class NotEmptyError(enum.IntEnum): UNSPECIFIED = 0 UNKNOWN = 1 EMPTY_LIST = 2 +''' +NotEmptyErrorEnum = NotEmptyErrorEnum() # For __getattribute__ -class NotWhitelistedErrorEnum(object): +class NotWhitelistedErrorEnum(_CreateEnumTypeUponFirstAccess): + NotWhitelistedError = '''\ class NotWhitelistedError(enum.IntEnum): """ Enum describing possible not whitelisted errors. @@ -7298,9 +8617,12 @@ class NotWhitelistedError(enum.IntEnum): UNSPECIFIED = 0 UNKNOWN = 1 CUSTOMER_NOT_WHITELISTED_FOR_THIS_FEATURE = 2 +''' +NotWhitelistedErrorEnum = NotWhitelistedErrorEnum() # For __getattribute__ -class NullErrorEnum(object): +class NullErrorEnum(_CreateEnumTypeUponFirstAccess): + NullError = '''\ class NullError(enum.IntEnum): """ Enum describing possible null errors. @@ -7313,9 +8635,154 @@ class NullError(enum.IntEnum): UNSPECIFIED = 0 UNKNOWN = 1 NULL_CONTENT = 2 +''' +NullErrorEnum = NullErrorEnum() # For __getattribute__ + +class OfflineUserDataJobErrorEnum(_CreateEnumTypeUponFirstAccess): + OfflineUserDataJobError = '''\ + class OfflineUserDataJobError(enum.IntEnum): + """ + Enum describing possible request errors. -class OperatingSystemVersionOperatorTypeEnum(object): + Attributes: + UNSPECIFIED (int): Enum unspecified. + UNKNOWN (int): The received error code is not known in this version. + INVALID_USER_LIST_ID (int): The user list ID provided for the job is invalid. + INVALID_USER_LIST_TYPE (int): Type of the user list is not applicable for the job. + NOT_WHITELISTED_FOR_USER_ID (int): Customer is not whitelisted for using user ID in upload data. + INCOMPATIBLE_UPLOAD_KEY_TYPE (int): Upload data is not compatible with the upload key type of the associated + user list. + MISSING_USER_IDENTIFIER (int): The user identifier is missing valid data. + INVALID_MOBILE_ID_FORMAT (int): The mobile ID is malformed. + TOO_MANY_USER_IDENTIFIERS (int): Request is exceeding the maximum number of user identifiers allowed. + NOT_WHITELISTED_FOR_STORE_SALES_DIRECT (int): Customer is not whitelisted for store sales direct data. + NOT_WHITELISTED_FOR_UNIFIED_STORE_SALES (int): Customer is not whitelisted for unified store sales data. + INVALID_PARTNER_ID (int): The partner ID in store sales direct metadata is invalid. + INVALID_ENCODING (int): The data in user identifier should not be encoded. + INVALID_COUNTRY_CODE (int): The country code is invalid. + INCOMPATIBLE_USER_IDENTIFIER (int): Incompatible user identifier when using third\_party\_user\_id for store + sales direct first party data or not using third\_party\_user\_id for + store sales third party data. + FUTURE_TRANSACTION_TIME (int): A transaction time in the future is not allowed. + INVALID_CONVERSION_ACTION (int): The conversion\_action specified in transaction\_attributes is used to + report conversions to a conversion action configured in Google Ads. This + error indicates there is no such conversion action in the account. + MOBILE_ID_NOT_SUPPORTED (int): Mobile ID is not supported for store sales direct data. + INVALID_OPERATION_ORDER (int): When a remove-all operation is provided, it has to be the first operation + of the operation list. + CONFLICTING_OPERATION (int): Mixing creation and removal of offline data in the same job is not + allowed. + EXTERNAL_UPDATE_ID_ALREADY_EXISTS (int): The external update ID already exists. + JOB_ALREADY_STARTED (int): Once the upload job is started, new operations cannot be added. + REMOVE_NOT_SUPPORTED (int): Remove operation is not allowed for store sales direct updates. + REMOVE_ALL_NOT_SUPPORTED (int): Remove-all is not supported for store sales direct updates. + INVALID_SHA256_FORMAT (int): The SHA256 encoded value is malformed. + CUSTOM_KEY_DISABLED (int): The custom key specified is not enabled for the unified store sales + upload. + CUSTOM_KEY_NOT_PREDEFINED (int): The custom key specified is not predefined through the Google Ads UI. + CUSTOM_KEY_NOT_SET (int): The custom key specified is not set in the upload. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + INVALID_USER_LIST_ID = 3 + INVALID_USER_LIST_TYPE = 4 + NOT_WHITELISTED_FOR_USER_ID = 5 + INCOMPATIBLE_UPLOAD_KEY_TYPE = 6 + MISSING_USER_IDENTIFIER = 7 + INVALID_MOBILE_ID_FORMAT = 8 + TOO_MANY_USER_IDENTIFIERS = 9 + NOT_WHITELISTED_FOR_STORE_SALES_DIRECT = 10 + NOT_WHITELISTED_FOR_UNIFIED_STORE_SALES = 28 + INVALID_PARTNER_ID = 11 + INVALID_ENCODING = 12 + INVALID_COUNTRY_CODE = 13 + INCOMPATIBLE_USER_IDENTIFIER = 14 + FUTURE_TRANSACTION_TIME = 15 + INVALID_CONVERSION_ACTION = 16 + MOBILE_ID_NOT_SUPPORTED = 17 + INVALID_OPERATION_ORDER = 18 + CONFLICTING_OPERATION = 19 + EXTERNAL_UPDATE_ID_ALREADY_EXISTS = 21 + JOB_ALREADY_STARTED = 22 + REMOVE_NOT_SUPPORTED = 23 + REMOVE_ALL_NOT_SUPPORTED = 24 + INVALID_SHA256_FORMAT = 25 + CUSTOM_KEY_DISABLED = 26 + CUSTOM_KEY_NOT_PREDEFINED = 27 + CUSTOM_KEY_NOT_SET = 29 +''' +OfflineUserDataJobErrorEnum = OfflineUserDataJobErrorEnum() # For __getattribute__ + + +class OfflineUserDataJobFailureReasonEnum(_CreateEnumTypeUponFirstAccess): + OfflineUserDataJobFailureReason = '''\ + class OfflineUserDataJobFailureReason(enum.IntEnum): + """ + The failure reason of an offline user data job. + + Attributes: + UNSPECIFIED (int): Not specified. + UNKNOWN (int): Used for return value only. Represents value unknown in this version. + INSUFFICIENT_MATCHED_TRANSACTIONS (int): The matched transactions are insufficient. + INSUFFICIENT_TRANSACTIONS (int): The uploaded transactions are insufficient. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + INSUFFICIENT_MATCHED_TRANSACTIONS = 2 + INSUFFICIENT_TRANSACTIONS = 3 +''' +OfflineUserDataJobFailureReasonEnum = OfflineUserDataJobFailureReasonEnum() # For __getattribute__ + + +class OfflineUserDataJobStatusEnum(_CreateEnumTypeUponFirstAccess): + OfflineUserDataJobStatus = '''\ + class OfflineUserDataJobStatus(enum.IntEnum): + """ + The status of an offline user data job. + + Attributes: + UNSPECIFIED (int): Not specified. + UNKNOWN (int): Used for return value only. Represents value unknown in this version. + PENDING (int): The job has been successfully created and pending for uploading. + RUNNING (int): Upload(s) have been accepted and data is being processed. + SUCCESS (int): Uploaded data has been successfully processed. + FAILED (int): Uploaded data has failed to be processed. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + PENDING = 2 + RUNNING = 3 + SUCCESS = 4 + FAILED = 5 +''' +OfflineUserDataJobStatusEnum = OfflineUserDataJobStatusEnum() # For __getattribute__ + + +class OfflineUserDataJobTypeEnum(_CreateEnumTypeUponFirstAccess): + OfflineUserDataJobType = '''\ + class OfflineUserDataJobType(enum.IntEnum): + """ + The type of an offline user data job. + + Attributes: + UNSPECIFIED (int): Not specified. + UNKNOWN (int): Used for return value only. Represents value unknown in this version. + STORE_SALES_UPLOAD_FIRST_PARTY (int): Store Sales Direct data for self service. + STORE_SALES_UPLOAD_THIRD_PARTY (int): Store Sales Direct data for third party. + CUSTOMER_MATCH_USER_LIST (int): Customer Match user list data. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + STORE_SALES_UPLOAD_FIRST_PARTY = 2 + STORE_SALES_UPLOAD_THIRD_PARTY = 3 + CUSTOMER_MATCH_USER_LIST = 4 +''' +OfflineUserDataJobTypeEnum = OfflineUserDataJobTypeEnum() # For __getattribute__ + + +class OperatingSystemVersionOperatorTypeEnum(_CreateEnumTypeUponFirstAccess): + OperatingSystemVersionOperatorType = '''\ class OperatingSystemVersionOperatorType(enum.IntEnum): """ The type of operating system version. @@ -7330,9 +8797,12 @@ class OperatingSystemVersionOperatorType(enum.IntEnum): UNKNOWN = 1 EQUALS_TO = 2 GREATER_THAN_EQUALS_TO = 4 +''' +OperatingSystemVersionOperatorTypeEnum = OperatingSystemVersionOperatorTypeEnum() # For __getattribute__ -class OperationAccessDeniedErrorEnum(object): +class OperationAccessDeniedErrorEnum(_CreateEnumTypeUponFirstAccess): + OperationAccessDeniedError = '''\ class OperationAccessDeniedError(enum.IntEnum): """ Enum describing possible operation access denied errors. @@ -7363,9 +8833,12 @@ class OperationAccessDeniedError(enum.IntEnum): OPERATION_NOT_PERMITTED_FOR_REMOVED_RESOURCE = 9 OPERATION_NOT_PERMITTED_FOR_AD_GROUP_TYPE = 10 MUTATE_NOT_PERMITTED_FOR_CUSTOMER = 11 +''' +OperationAccessDeniedErrorEnum = OperationAccessDeniedErrorEnum() # For __getattribute__ -class OperatorErrorEnum(object): +class OperatorErrorEnum(_CreateEnumTypeUponFirstAccess): + OperatorError = '''\ class OperatorError(enum.IntEnum): """ Enum describing possible operator errors. @@ -7378,26 +8851,35 @@ class OperatorError(enum.IntEnum): UNSPECIFIED = 0 UNKNOWN = 1 OPERATOR_NOT_SUPPORTED = 2 +''' +OperatorErrorEnum = OperatorErrorEnum() # For __getattribute__ -class PageOnePromotedStrategyGoalEnum(object): - class PageOnePromotedStrategyGoal(enum.IntEnum): +class OptimizationGoalTypeEnum(_CreateEnumTypeUponFirstAccess): + OptimizationGoalType = '''\ + class OptimizationGoalType(enum.IntEnum): """ - Enum describing possible strategy goals. + The type of optimization goal Attributes: UNSPECIFIED (int): Not specified. - UNKNOWN (int): Used for return value only. Represents value unknown in this version. - FIRST_PAGE (int): First page on google.com. - FIRST_PAGE_PROMOTED (int): Top slots of the first page on google.com. + UNKNOWN (int): Used as a return value only. Represents value unknown in this version. + CALL_CLICKS (int): Optimize for call clicks. Call click conversions are times people + selected 'Call' to contact a store after viewing an ad. + DRIVING_DIRECTIONS (int): Optimize for driving directions. Driving directions conversions are + times people selected 'Get directions' to navigate to a store after + viewing an ad. """ UNSPECIFIED = 0 UNKNOWN = 1 - FIRST_PAGE = 2 - FIRST_PAGE_PROMOTED = 3 + CALL_CLICKS = 2 + DRIVING_DIRECTIONS = 3 +''' +OptimizationGoalTypeEnum = OptimizationGoalTypeEnum() # For __getattribute__ -class ParentalStatusTypeEnum(object): +class ParentalStatusTypeEnum(_CreateEnumTypeUponFirstAccess): + ParentalStatusType = '''\ class ParentalStatusType(enum.IntEnum): """ The type of parental statuses (e.g. not a parent). @@ -7414,9 +8896,12 @@ class ParentalStatusType(enum.IntEnum): PARENT = 300 NOT_A_PARENT = 301 UNDETERMINED = 302 +''' +ParentalStatusTypeEnum = ParentalStatusTypeEnum() # For __getattribute__ -class PartialFailureErrorEnum(object): +class PartialFailureErrorEnum(_CreateEnumTypeUponFirstAccess): + PartialFailureError = '''\ class PartialFailureError(enum.IntEnum): """ Enum describing possible partial failure errors. @@ -7430,9 +8915,12 @@ class PartialFailureError(enum.IntEnum): UNSPECIFIED = 0 UNKNOWN = 1 PARTIAL_FAILURE_MODE_REQUIRED = 2 +''' +PartialFailureErrorEnum = PartialFailureErrorEnum() # For __getattribute__ -class PaymentModeEnum(object): +class PaymentModeEnum(_CreateEnumTypeUponFirstAccess): + PaymentMode = '''\ class PaymentMode(enum.IntEnum): """ Enum describing possible payment modes. @@ -7450,15 +8938,40 @@ class PaymentMode(enum.IntEnum): BiddingStrategyType.TARGET\_CPA, and BudgetType.FIXED\_CPA. The customer must also be eligible for this mode. See Customer.eligibility\_failure\_reasons for details. + GUEST_STAY (int): Pay per guest stay value. This mode is only supported by campaigns with + AdvertisingChannelType.HOTEL, BiddingStrategyType.COMMISSION, and + BudgetType.STANDARD. """ UNSPECIFIED = 0 UNKNOWN = 1 CLICKS = 4 CONVERSION_VALUE = 5 CONVERSIONS = 6 + GUEST_STAY = 7 +''' +PaymentModeEnum = PaymentModeEnum() # For __getattribute__ + + +class PaymentsAccountErrorEnum(_CreateEnumTypeUponFirstAccess): + PaymentsAccountError = '''\ + class PaymentsAccountError(enum.IntEnum): + """ + Enum describing possible errors in payments account service. + + Attributes: + UNSPECIFIED (int): Enum unspecified. + UNKNOWN (int): The received error code is not known in this version. + NOT_SUPPORTED_FOR_MANAGER_CUSTOMER (int): Manager customers are not supported for payments account service. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + NOT_SUPPORTED_FOR_MANAGER_CUSTOMER = 2 +''' +PaymentsAccountErrorEnum = PaymentsAccountErrorEnum() # For __getattribute__ -class PlaceholderTypeEnum(object): +class PlaceholderTypeEnum(_CreateEnumTypeUponFirstAccess): + PlaceholderType = '''\ class PlaceholderType(enum.IntEnum): """ Possible placeholder types for a feed mapping. @@ -7527,9 +9040,12 @@ class PlaceholderType(enum.IntEnum): DYNAMIC_TRAVEL = 18 DYNAMIC_LOCAL = 19 DYNAMIC_JOB = 20 +''' +PlaceholderTypeEnum = PlaceholderTypeEnum() # For __getattribute__ -class PlacementTypeEnum(object): +class PlacementTypeEnum(_CreateEnumTypeUponFirstAccess): + PlacementType = '''\ class PlacementType(enum.IntEnum): """ Possible placement types for a feed mapping. @@ -7550,9 +9066,12 @@ class PlacementType(enum.IntEnum): MOBILE_APPLICATION = 4 YOUTUBE_VIDEO = 5 YOUTUBE_CHANNEL = 6 +''' +PlacementTypeEnum = PlacementTypeEnum() # For __getattribute__ -class PolicyApprovalStatusEnum(object): +class PolicyApprovalStatusEnum(_CreateEnumTypeUponFirstAccess): + PolicyApprovalStatus = '''\ class PolicyApprovalStatus(enum.IntEnum): """ The possible policy approval statuses. When there are several approval @@ -7577,9 +9096,12 @@ class PolicyApprovalStatus(enum.IntEnum): APPROVED_LIMITED = 3 APPROVED = 4 AREA_OF_INTEREST_ONLY = 5 +''' +PolicyApprovalStatusEnum = PolicyApprovalStatusEnum() # For __getattribute__ -class PolicyFindingErrorEnum(object): +class PolicyFindingErrorEnum(_CreateEnumTypeUponFirstAccess): + PolicyFindingError = '''\ class PolicyFindingError(enum.IntEnum): """ Enum describing possible policy finding errors. @@ -7595,9 +9117,12 @@ class PolicyFindingError(enum.IntEnum): UNKNOWN = 1 POLICY_FINDING = 2 POLICY_TOPIC_NOT_FOUND = 3 +''' +PolicyFindingErrorEnum = PolicyFindingErrorEnum() # For __getattribute__ -class PolicyReviewStatusEnum(object): +class PolicyReviewStatusEnum(_CreateEnumTypeUponFirstAccess): + PolicyReviewStatus = '''\ class PolicyReviewStatus(enum.IntEnum): """ The possible policy review statuses. @@ -7611,15 +9136,21 @@ class PolicyReviewStatus(enum.IntEnum): REVIEWED (int): Primary review complete. Other reviews may be continuing. UNDER_APPEAL (int): The resource has been resubmitted for approval or its policy decision has been appealed. + ELIGIBLE_MAY_SERVE (int): The resource is eligible and may be serving but could still undergo + further review. """ UNSPECIFIED = 0 UNKNOWN = 1 REVIEW_IN_PROGRESS = 2 REVIEWED = 3 UNDER_APPEAL = 4 + ELIGIBLE_MAY_SERVE = 5 +''' +PolicyReviewStatusEnum = PolicyReviewStatusEnum() # For __getattribute__ -class PolicyTopicEntryTypeEnum(object): +class PolicyTopicEntryTypeEnum(_CreateEnumTypeUponFirstAccess): + PolicyTopicEntryType = '''\ class PolicyTopicEntryType(enum.IntEnum): """ The possible policy topic entry types. @@ -7646,9 +9177,12 @@ class PolicyTopicEntryType(enum.IntEnum): DESCRIPTIVE = 5 BROADENING = 6 AREA_OF_INTEREST_ONLY = 7 +''' +PolicyTopicEntryTypeEnum = PolicyTopicEntryTypeEnum() # For __getattribute__ -class PolicyTopicEvidenceDestinationMismatchUrlTypeEnum(object): +class PolicyTopicEvidenceDestinationMismatchUrlTypeEnum(_CreateEnumTypeUponFirstAccess): + PolicyTopicEvidenceDestinationMismatchUrlType = '''\ class PolicyTopicEvidenceDestinationMismatchUrlType(enum.IntEnum): """ The possible policy topic evidence destination mismatch url types. @@ -7671,9 +9205,12 @@ class PolicyTopicEvidenceDestinationMismatchUrlType(enum.IntEnum): FINAL_MOBILE_URL = 4 TRACKING_URL = 5 MOBILE_TRACKING_URL = 6 +''' +PolicyTopicEvidenceDestinationMismatchUrlTypeEnum = PolicyTopicEvidenceDestinationMismatchUrlTypeEnum() # For __getattribute__ -class PolicyTopicEvidenceDestinationNotWorkingDeviceEnum(object): +class PolicyTopicEvidenceDestinationNotWorkingDeviceEnum(_CreateEnumTypeUponFirstAccess): + PolicyTopicEvidenceDestinationNotWorkingDevice = '''\ class PolicyTopicEvidenceDestinationNotWorkingDevice(enum.IntEnum): """ The possible policy topic evidence destination not working devices. @@ -7692,9 +9229,36 @@ class PolicyTopicEvidenceDestinationNotWorkingDevice(enum.IntEnum): DESKTOP = 2 ANDROID = 3 IOS = 4 +''' +PolicyTopicEvidenceDestinationNotWorkingDeviceEnum = PolicyTopicEvidenceDestinationNotWorkingDeviceEnum() # For __getattribute__ -class PolicyValidationParameterErrorEnum(object): +class PolicyTopicEvidenceDestinationNotWorkingDnsErrorTypeEnum(_CreateEnumTypeUponFirstAccess): + PolicyTopicEvidenceDestinationNotWorkingDnsErrorType = '''\ + class PolicyTopicEvidenceDestinationNotWorkingDnsErrorType(enum.IntEnum): + """ + The possible policy topic evidence destination not working DNS error types. + + Attributes: + UNSPECIFIED (int): No value has been specified. + UNKNOWN (int): The received value is not known in this version. + + This is a response-only value. + HOSTNAME_NOT_FOUND (int): Host name not found in DNS when fetching landing page. + GOOGLE_CRAWLER_DNS_ISSUE (int): Google internal crawler issue when communicating with DNS. This error + doesn't mean the landing page doesn't work. Google will recrawl the + landing page. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + HOSTNAME_NOT_FOUND = 2 + GOOGLE_CRAWLER_DNS_ISSUE = 3 +''' +PolicyTopicEvidenceDestinationNotWorkingDnsErrorTypeEnum = PolicyTopicEvidenceDestinationNotWorkingDnsErrorTypeEnum() # For __getattribute__ + + +class PolicyValidationParameterErrorEnum(_CreateEnumTypeUponFirstAccess): + PolicyValidationParameterError = '''\ class PolicyValidationParameterError(enum.IntEnum): """ Enum describing possible policy validation parameter errors. @@ -7712,9 +9276,12 @@ class PolicyValidationParameterError(enum.IntEnum): UNSUPPORTED_AD_TYPE_FOR_IGNORABLE_POLICY_TOPICS = 2 UNSUPPORTED_AD_TYPE_FOR_EXEMPT_POLICY_VIOLATION_KEYS = 3 CANNOT_SET_BOTH_IGNORABLE_POLICY_TOPICS_AND_EXEMPT_POLICY_VIOLATION_KEYS = 4 +''' +PolicyValidationParameterErrorEnum = PolicyValidationParameterErrorEnum() # For __getattribute__ -class PolicyViolationErrorEnum(object): +class PolicyViolationErrorEnum(_CreateEnumTypeUponFirstAccess): + PolicyViolationError = '''\ class PolicyViolationError(enum.IntEnum): """ Enum describing possible policy violation errors. @@ -7727,9 +9294,12 @@ class PolicyViolationError(enum.IntEnum): UNSPECIFIED = 0 UNKNOWN = 1 POLICY_ERROR = 2 +''' +PolicyViolationErrorEnum = PolicyViolationErrorEnum() # For __getattribute__ -class PositiveGeoTargetTypeEnum(object): +class PositiveGeoTargetTypeEnum(_CreateEnumTypeUponFirstAccess): + PositiveGeoTargetType = '''\ class PositiveGeoTargetType(enum.IntEnum): """ The possible positive geo target types. @@ -7737,21 +9307,24 @@ class PositiveGeoTargetType(enum.IntEnum): Attributes: UNSPECIFIED (int): Not specified. UNKNOWN (int): The value is unknown in this version. - DONT_CARE (int): Specifies that an ad is triggered if the user is in, + PRESENCE_OR_INTEREST (int): Specifies that an ad is triggered if the user is in, or shows interest in, advertiser's targeted locations. - AREA_OF_INTEREST (int): Specifies that an ad is triggered if the user + SEARCH_INTEREST (int): Specifies that an ad is triggered if the user searches for advertiser's targeted locations. - LOCATION_OF_PRESENCE (int): Specifies that an ad is triggered if the user is in + PRESENCE (int): Specifies that an ad is triggered if the user is in or regularly in advertiser's targeted locations. """ UNSPECIFIED = 0 UNKNOWN = 1 - DONT_CARE = 2 - AREA_OF_INTEREST = 3 - LOCATION_OF_PRESENCE = 4 + PRESENCE_OR_INTEREST = 5 + SEARCH_INTEREST = 6 + PRESENCE = 7 +''' +PositiveGeoTargetTypeEnum = PositiveGeoTargetTypeEnum() # For __getattribute__ -class PreferredContentTypeEnum(object): +class PreferredContentTypeEnum(_CreateEnumTypeUponFirstAccess): + PreferredContentType = '''\ class PreferredContentType(enum.IntEnum): """ Enumerates preferred content criterion type. @@ -7764,9 +9337,12 @@ class PreferredContentType(enum.IntEnum): UNSPECIFIED = 0 UNKNOWN = 1 YOUTUBE_TOP_CONTENT = 400 +''' +PreferredContentTypeEnum = PreferredContentTypeEnum() # For __getattribute__ -class PriceExtensionPriceQualifierEnum(object): +class PriceExtensionPriceQualifierEnum(_CreateEnumTypeUponFirstAccess): + PriceExtensionPriceQualifier = '''\ class PriceExtensionPriceQualifier(enum.IntEnum): """ Enums of price extension price qualifier. @@ -7783,9 +9359,12 @@ class PriceExtensionPriceQualifier(enum.IntEnum): FROM = 2 UP_TO = 3 AVERAGE = 4 +''' +PriceExtensionPriceQualifierEnum = PriceExtensionPriceQualifierEnum() # For __getattribute__ -class PriceExtensionPriceUnitEnum(object): +class PriceExtensionPriceUnitEnum(_CreateEnumTypeUponFirstAccess): + PriceExtensionPriceUnit = '''\ class PriceExtensionPriceUnit(enum.IntEnum): """ Price extension price unit. @@ -7808,9 +9387,12 @@ class PriceExtensionPriceUnit(enum.IntEnum): PER_MONTH = 5 PER_YEAR = 6 PER_NIGHT = 7 +''' +PriceExtensionPriceUnitEnum = PriceExtensionPriceUnitEnum() # For __getattribute__ -class PriceExtensionTypeEnum(object): +class PriceExtensionTypeEnum(_CreateEnumTypeUponFirstAccess): + PriceExtensionType = '''\ class PriceExtensionType(enum.IntEnum): """ Price extension type. @@ -7839,9 +9421,12 @@ class PriceExtensionType(enum.IntEnum): SERVICES = 8 SERVICE_CATEGORIES = 9 SERVICE_TIERS = 10 +''' +PriceExtensionTypeEnum = PriceExtensionTypeEnum() # For __getattribute__ -class PricePlaceholderFieldEnum(object): +class PricePlaceholderFieldEnum(_CreateEnumTypeUponFirstAccess): + PricePlaceholderField = '''\ class PricePlaceholderField(enum.IntEnum): """ Possible values for Price placeholder fields. @@ -7995,9 +9580,12 @@ class PricePlaceholderField(enum.IntEnum): ITEM_8_UNIT = 803 ITEM_8_FINAL_URLS = 804 ITEM_8_FINAL_MOBILE_URLS = 805 +''' +PricePlaceholderFieldEnum = PricePlaceholderFieldEnum() # For __getattribute__ -class ProductBiddingCategoryLevelEnum(object): +class ProductBiddingCategoryLevelEnum(_CreateEnumTypeUponFirstAccess): + ProductBiddingCategoryLevel = '''\ class ProductBiddingCategoryLevel(enum.IntEnum): """ Enum describing the level of the product bidding category. @@ -8018,9 +9606,12 @@ class ProductBiddingCategoryLevel(enum.IntEnum): LEVEL3 = 4 LEVEL4 = 5 LEVEL5 = 6 +''' +ProductBiddingCategoryLevelEnum = ProductBiddingCategoryLevelEnum() # For __getattribute__ -class ProductBiddingCategoryStatusEnum(object): +class ProductBiddingCategoryStatusEnum(_CreateEnumTypeUponFirstAccess): + ProductBiddingCategoryStatus = '''\ class ProductBiddingCategoryStatus(enum.IntEnum): """ Enum describing the status of the product bidding category. @@ -8035,9 +9626,12 @@ class ProductBiddingCategoryStatus(enum.IntEnum): UNKNOWN = 1 ACTIVE = 2 OBSOLETE = 3 +''' +ProductBiddingCategoryStatusEnum = ProductBiddingCategoryStatusEnum() # For __getattribute__ -class ProductChannelEnum(object): +class ProductChannelEnum(_CreateEnumTypeUponFirstAccess): + ProductChannel = '''\ class ProductChannel(enum.IntEnum): """ Enum describing the locality of a product offer. @@ -8052,9 +9646,12 @@ class ProductChannel(enum.IntEnum): UNKNOWN = 1 ONLINE = 2 LOCAL = 3 +''' +ProductChannelEnum = ProductChannelEnum() # For __getattribute__ -class ProductChannelExclusivityEnum(object): +class ProductChannelExclusivityEnum(_CreateEnumTypeUponFirstAccess): + ProductChannelExclusivity = '''\ class ProductChannelExclusivity(enum.IntEnum): """ Enum describing the availability of a product offer. @@ -8071,9 +9668,12 @@ class ProductChannelExclusivity(enum.IntEnum): UNKNOWN = 1 SINGLE_CHANNEL = 2 MULTI_CHANNEL = 3 +''' +ProductChannelExclusivityEnum = ProductChannelExclusivityEnum() # For __getattribute__ -class ProductConditionEnum(object): +class ProductConditionEnum(_CreateEnumTypeUponFirstAccess): + ProductCondition = '''\ class ProductCondition(enum.IntEnum): """ Enum describing the condition of a product offer. @@ -8090,9 +9690,38 @@ class ProductCondition(enum.IntEnum): NEW = 3 REFURBISHED = 4 USED = 5 +''' +ProductConditionEnum = ProductConditionEnum() # For __getattribute__ -class ProductTypeLevelEnum(object): +class ProductCustomAttributeIndexEnum(_CreateEnumTypeUponFirstAccess): + ProductCustomAttributeIndex = '''\ + class ProductCustomAttributeIndex(enum.IntEnum): + """ + The index of the product custom attribute. + + Attributes: + UNSPECIFIED (int): Not specified. + UNKNOWN (int): Used for return value only. Represents value unknown in this version. + INDEX0 (int): First product custom attribute. + INDEX1 (int): Second product custom attribute. + INDEX2 (int): Third product custom attribute. + INDEX3 (int): Fourth product custom attribute. + INDEX4 (int): Fifth product custom attribute. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + INDEX0 = 7 + INDEX1 = 8 + INDEX2 = 9 + INDEX3 = 10 + INDEX4 = 11 +''' +ProductCustomAttributeIndexEnum = ProductCustomAttributeIndexEnum() # For __getattribute__ + + +class ProductTypeLevelEnum(_CreateEnumTypeUponFirstAccess): + ProductTypeLevel = '''\ class ProductTypeLevel(enum.IntEnum): """ Enum describing the level of the type of a product offer. @@ -8113,9 +9742,12 @@ class ProductTypeLevel(enum.IntEnum): LEVEL3 = 9 LEVEL4 = 10 LEVEL5 = 11 +''' +ProductTypeLevelEnum = ProductTypeLevelEnum() # For __getattribute__ -class PromotionExtensionDiscountModifierEnum(object): +class PromotionExtensionDiscountModifierEnum(_CreateEnumTypeUponFirstAccess): + PromotionExtensionDiscountModifier = '''\ class PromotionExtensionDiscountModifier(enum.IntEnum): """ A promotion extension discount modifier. @@ -8128,9 +9760,12 @@ class PromotionExtensionDiscountModifier(enum.IntEnum): UNSPECIFIED = 0 UNKNOWN = 1 UP_TO = 2 +''' +PromotionExtensionDiscountModifierEnum = PromotionExtensionDiscountModifierEnum() # For __getattribute__ -class PromotionExtensionOccasionEnum(object): +class PromotionExtensionOccasionEnum(_CreateEnumTypeUponFirstAccess): + PromotionExtensionOccasion = '''\ class PromotionExtensionOccasion(enum.IntEnum): """ A promotion extension occasion. @@ -8215,9 +9850,12 @@ class PromotionExtensionOccasion(enum.IntEnum): NAVRATRI = 36 SONGKRAN = 37 YEAR_END_GIFT = 38 +''' +PromotionExtensionOccasionEnum = PromotionExtensionOccasionEnum() # For __getattribute__ -class PromotionPlaceholderFieldEnum(object): +class PromotionPlaceholderFieldEnum(_CreateEnumTypeUponFirstAccess): + PromotionPlaceholderField = '''\ class PromotionPlaceholderField(enum.IntEnum): """ Possible values for Promotion placeholder fields. @@ -8266,9 +9904,12 @@ class PromotionPlaceholderField(enum.IntEnum): TRACKING_URL = 13 LANGUAGE = 14 FINAL_URL_SUFFIX = 15 +''' +PromotionPlaceholderFieldEnum = PromotionPlaceholderFieldEnum() # For __getattribute__ -class ProximityRadiusUnitsEnum(object): +class ProximityRadiusUnitsEnum(_CreateEnumTypeUponFirstAccess): + ProximityRadiusUnits = '''\ class ProximityRadiusUnits(enum.IntEnum): """ The unit of radius distance in proximity (e.g. MILES) @@ -8283,9 +9924,12 @@ class ProximityRadiusUnits(enum.IntEnum): UNKNOWN = 1 MILES = 2 KILOMETERS = 3 +''' +ProximityRadiusUnitsEnum = ProximityRadiusUnitsEnum() # For __getattribute__ -class QualityScoreBucketEnum(object): +class QualityScoreBucketEnum(_CreateEnumTypeUponFirstAccess): + QualityScoreBucket = '''\ class QualityScoreBucket(enum.IntEnum): """ Enum listing the possible quality score buckets. @@ -8302,9 +9946,12 @@ class QualityScoreBucket(enum.IntEnum): BELOW_AVERAGE = 2 AVERAGE = 3 ABOVE_AVERAGE = 4 +''' +QualityScoreBucketEnum = QualityScoreBucketEnum() # For __getattribute__ -class QueryErrorEnum(object): +class QueryErrorEnum(_CreateEnumTypeUponFirstAccess): + QueryError = '''\ class QueryError(enum.IntEnum): """ Enum describing possible query errors. @@ -8326,6 +9973,8 @@ class QueryError(enum.IntEnum): BAD_VALUE (int): Value is invalid. DATE_RANGE_TOO_WIDE (int): Date filters fail to restrict date to a range smaller than 31 days. Applicable if the query is segmented by date. + DATE_RANGE_TOO_NARROW (int): Filters on date/week/month/quarter have a start date after + end date. EXPECTED_AND (int): Expected AND between values with BETWEEN operator. EXPECTED_BY (int): Expecting ORDER BY to have BY. EXPECTED_DIMENSION_FIELD_IN_SELECT_CLAUSE (int): There was no dimension field selected. @@ -8394,6 +10043,7 @@ class QueryError(enum.IntEnum): BAD_SYMBOL = 2 BAD_VALUE = 4 DATE_RANGE_TOO_WIDE = 36 + DATE_RANGE_TOO_NARROW = 60 EXPECTED_AND = 30 EXPECTED_BY = 14 EXPECTED_DIMENSION_FIELD_IN_SELECT_CLAUSE = 37 @@ -8433,9 +10083,12 @@ class QueryError(enum.IntEnum): UNRECOGNIZED_FIELD = 32 UNEXPECTED_INPUT = 11 REQUESTED_METRICS_FOR_MANAGER = 59 +''' +QueryErrorEnum = QueryErrorEnum() # For __getattribute__ -class QuotaErrorEnum(object): +class QuotaErrorEnum(_CreateEnumTypeUponFirstAccess): + QuotaError = '''\ class QuotaError(enum.IntEnum): """ Enum describing possible quota errors. @@ -8452,9 +10105,12 @@ class QuotaError(enum.IntEnum): RESOURCE_EXHAUSTED = 2 ACCESS_PROHIBITED = 3 RESOURCE_TEMPORARILY_EXHAUSTED = 4 +''' +QuotaErrorEnum = QuotaErrorEnum() # For __getattribute__ -class RangeErrorEnum(object): +class RangeErrorEnum(_CreateEnumTypeUponFirstAccess): + RangeError = '''\ class RangeError(enum.IntEnum): """ Enum describing possible range errors. @@ -8469,9 +10125,141 @@ class RangeError(enum.IntEnum): UNKNOWN = 1 TOO_LOW = 2 TOO_HIGH = 3 +''' +RangeErrorEnum = RangeErrorEnum() # For __getattribute__ + + +class ReachPlanAdLengthEnum(_CreateEnumTypeUponFirstAccess): + ReachPlanAdLength = '''\ + class ReachPlanAdLength(enum.IntEnum): + """ + Possible ad length values. + + Attributes: + UNSPECIFIED (int): Not specified. + UNKNOWN (int): The value is unknown in this version. + SIX_SECONDS (int): 6 seconds long ad. + FIFTEEN_OR_TWENTY_SECONDS (int): 15 or 20 seconds long ad. + TWENTY_SECONDS_OR_MORE (int): More than 20 seconds long ad. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + SIX_SECONDS = 2 + FIFTEEN_OR_TWENTY_SECONDS = 3 + TWENTY_SECONDS_OR_MORE = 4 +''' +ReachPlanAdLengthEnum = ReachPlanAdLengthEnum() # For __getattribute__ + + +class ReachPlanAgeRangeEnum(_CreateEnumTypeUponFirstAccess): + ReachPlanAgeRange = '''\ + class ReachPlanAgeRange(enum.IntEnum): + """ + Possible plannable age range values. + + Attributes: + UNSPECIFIED (int): Not specified. + UNKNOWN (int): The value is unknown in this version. + AGE_RANGE_18_24 (int): Between 18 and 24 years old. + AGE_RANGE_18_34 (int): Between 18 and 34 years old. + AGE_RANGE_18_44 (int): Between 18 and 44 years old. + AGE_RANGE_18_49 (int): Between 18 and 49 years old. + AGE_RANGE_18_54 (int): Between 18 and 54 years old. + AGE_RANGE_18_64 (int): Between 18 and 64 years old. + AGE_RANGE_18_65_UP (int): Between 18 and 65+ years old. + AGE_RANGE_21_34 (int): Between 21 and 34 years old. + AGE_RANGE_25_34 (int): Between 25 and 34 years old. + AGE_RANGE_25_44 (int): Between 25 and 44 years old. + AGE_RANGE_25_49 (int): Between 25 and 49 years old. + AGE_RANGE_25_54 (int): Between 25 and 54 years old. + AGE_RANGE_25_64 (int): Between 25 and 64 years old. + AGE_RANGE_25_65_UP (int): Between 25 and 65+ years old. + AGE_RANGE_35_44 (int): Between 35 and 44 years old. + AGE_RANGE_35_49 (int): Between 35 and 49 years old. + AGE_RANGE_35_54 (int): Between 35 and 54 years old. + AGE_RANGE_35_64 (int): Between 35 and 64 years old. + AGE_RANGE_35_65_UP (int): Between 35 and 65+ years old. + AGE_RANGE_45_54 (int): Between 45 and 54 years old. + AGE_RANGE_45_64 (int): Between 45 and 64 years old. + AGE_RANGE_45_65_UP (int): Between 45 and 65+ years old. + AGE_RANGE_50_65_UP (int): Between 50 and 65+ years old. + AGE_RANGE_55_64 (int): Between 55 and 64 years old. + AGE_RANGE_55_65_UP (int): Between 55 and 65+ years old. + AGE_RANGE_65_UP (int): 65 years old and beyond. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + AGE_RANGE_18_24 = 503001 + AGE_RANGE_18_34 = 2 + AGE_RANGE_18_44 = 3 + AGE_RANGE_18_49 = 4 + AGE_RANGE_18_54 = 5 + AGE_RANGE_18_64 = 6 + AGE_RANGE_18_65_UP = 7 + AGE_RANGE_21_34 = 8 + AGE_RANGE_25_34 = 503002 + AGE_RANGE_25_44 = 9 + AGE_RANGE_25_49 = 10 + AGE_RANGE_25_54 = 11 + AGE_RANGE_25_64 = 12 + AGE_RANGE_25_65_UP = 13 + AGE_RANGE_35_44 = 503003 + AGE_RANGE_35_49 = 14 + AGE_RANGE_35_54 = 15 + AGE_RANGE_35_64 = 16 + AGE_RANGE_35_65_UP = 17 + AGE_RANGE_45_54 = 503004 + AGE_RANGE_45_64 = 18 + AGE_RANGE_45_65_UP = 19 + AGE_RANGE_50_65_UP = 20 + AGE_RANGE_55_64 = 503005 + AGE_RANGE_55_65_UP = 21 + AGE_RANGE_65_UP = 503006 +''' +ReachPlanAgeRangeEnum = ReachPlanAgeRangeEnum() # For __getattribute__ + + +class ReachPlanErrorEnum(_CreateEnumTypeUponFirstAccess): + ReachPlanError = '''\ + class ReachPlanError(enum.IntEnum): + """ + Enum describing possible errors from ReachPlanService. + + Attributes: + UNSPECIFIED (int): Enum unspecified. + UNKNOWN (int): The received error code is not known in this version. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 +''' +ReachPlanErrorEnum = ReachPlanErrorEnum() # For __getattribute__ + + +class ReachPlanNetworkEnum(_CreateEnumTypeUponFirstAccess): + ReachPlanNetwork = '''\ + class ReachPlanNetwork(enum.IntEnum): + """ + Possible plannable network values. + Attributes: + UNSPECIFIED (int): Not specified. + UNKNOWN (int): Used as a return value only. Represents value unknown in this version. + YOUTUBE (int): YouTube network. + GOOGLE_VIDEO_PARTNERS (int): Google Video Partners (GVP) network. + YOUTUBE_AND_GOOGLE_VIDEO_PARTNERS (int): A combination of the YouTube network and the Google Video Partners + network. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + YOUTUBE = 2 + GOOGLE_VIDEO_PARTNERS = 3 + YOUTUBE_AND_GOOGLE_VIDEO_PARTNERS = 4 +''' +ReachPlanNetworkEnum = ReachPlanNetworkEnum() # For __getattribute__ -class RealEstatePlaceholderFieldEnum(object): + +class RealEstatePlaceholderFieldEnum(_CreateEnumTypeUponFirstAccess): + RealEstatePlaceholderField = '''\ class RealEstatePlaceholderField(enum.IntEnum): """ Possible values for Real Estate placeholder fields. @@ -8532,9 +10320,12 @@ class RealEstatePlaceholderField(enum.IntEnum): SIMILAR_LISTING_IDS = 17 IOS_APP_LINK = 18 IOS_APP_STORE_ID = 19 +''' +RealEstatePlaceholderFieldEnum = RealEstatePlaceholderFieldEnum() # For __getattribute__ -class RecommendationErrorEnum(object): +class RecommendationErrorEnum(_CreateEnumTypeUponFirstAccess): + RecommendationError = '''\ class RecommendationError(enum.IntEnum): """ Enum describing possible errors from applying a recommendation. @@ -8577,9 +10368,12 @@ class RecommendationError(enum.IntEnum): DUPLICATE_RESOURCE_NAME = 13 RECOMMENDATION_ALREADY_DISMISSED = 14 INVALID_APPLY_REQUEST = 15 +''' +RecommendationErrorEnum = RecommendationErrorEnum() # For __getattribute__ -class RecommendationTypeEnum(object): +class RecommendationTypeEnum(_CreateEnumTypeUponFirstAccess): + RecommendationType = '''\ class RecommendationType(enum.IntEnum): """ Types of recommendations. @@ -8624,9 +10418,12 @@ class RecommendationType(enum.IntEnum): CALL_EXTENSION = 13 KEYWORD_MATCH_TYPE = 14 MOVE_UNUSED_BUDGET = 15 +''' +RecommendationTypeEnum = RecommendationTypeEnum() # For __getattribute__ -class RegionCodeErrorEnum(object): +class RegionCodeErrorEnum(_CreateEnumTypeUponFirstAccess): + RegionCodeError = '''\ class RegionCodeError(enum.IntEnum): """ Enum describing possible region code errors. @@ -8639,9 +10436,12 @@ class RegionCodeError(enum.IntEnum): UNSPECIFIED = 0 UNKNOWN = 1 INVALID_REGION_CODE = 2 +''' +RegionCodeErrorEnum = RegionCodeErrorEnum() # For __getattribute__ -class RequestErrorEnum(object): +class RequestErrorEnum(_CreateEnumTypeUponFirstAccess): + RequestError = '''\ class RequestError(enum.IntEnum): """ Enum describing possible request errors. @@ -8670,6 +10470,13 @@ class RequestError(enum.IntEnum): DEVELOPER_TOKEN_PARAMETER_MISSING (int): The developer-token parameter is required for all requests. LOGIN_CUSTOMER_ID_PARAMETER_MISSING (int): The login-customer-id parameter is required for this request. VALIDATE_ONLY_REQUEST_HAS_PAGE_TOKEN (int): page\_token is set in the validate only request + CANNOT_RETURN_SUMMARY_ROW_FOR_REQUEST_WITHOUT_METRICS (int): return\_summary\_row cannot be enabled if request did not select any + metrics field. + CANNOT_RETURN_SUMMARY_ROW_FOR_VALIDATE_ONLY_REQUESTS (int): return\_summary\_row should not be enabled for validate only requests. + INCONSISTENT_RETURN_SUMMARY_ROW_VALUE (int): return\_summary\_row parameter value should be the same between requests + with page\_token field set and their original request. + TOTAL_RESULTS_COUNT_NOT_ORIGINALLY_REQUESTED (int): The total results count cannot be returned if it was not requested in the + original request. """ UNSPECIFIED = 0 UNKNOWN = 1 @@ -8691,9 +10498,16 @@ class RequestError(enum.IntEnum): DEVELOPER_TOKEN_PARAMETER_MISSING = 19 LOGIN_CUSTOMER_ID_PARAMETER_MISSING = 20 VALIDATE_ONLY_REQUEST_HAS_PAGE_TOKEN = 21 + CANNOT_RETURN_SUMMARY_ROW_FOR_REQUEST_WITHOUT_METRICS = 29 + CANNOT_RETURN_SUMMARY_ROW_FOR_VALIDATE_ONLY_REQUESTS = 30 + INCONSISTENT_RETURN_SUMMARY_ROW_VALUE = 31 + TOTAL_RESULTS_COUNT_NOT_ORIGINALLY_REQUESTED = 32 +''' +RequestErrorEnum = RequestErrorEnum() # For __getattribute__ -class ResourceAccessDeniedErrorEnum(object): +class ResourceAccessDeniedErrorEnum(_CreateEnumTypeUponFirstAccess): + ResourceAccessDeniedError = '''\ class ResourceAccessDeniedError(enum.IntEnum): """ Enum describing possible resource access denied errors. @@ -8706,9 +10520,12 @@ class ResourceAccessDeniedError(enum.IntEnum): UNSPECIFIED = 0 UNKNOWN = 1 WRITE_ACCESS_DENIED = 3 +''' +ResourceAccessDeniedErrorEnum = ResourceAccessDeniedErrorEnum() # For __getattribute__ -class ResourceCountLimitExceededErrorEnum(object): +class ResourceCountLimitExceededErrorEnum(_CreateEnumTypeUponFirstAccess): + ResourceCountLimitExceededError = '''\ class ResourceCountLimitExceededError(enum.IntEnum): """ Enum describing possible resource count limit exceeded errors. @@ -8744,6 +10561,9 @@ class ResourceCountLimitExceededError(enum.IntEnum): MATCHING_FUNCTION_LIMIT (int): Exceeds a limit related to a matching function. RESPONSE_ROW_LIMIT_EXCEEDED (int): The response for this request would exceed the maximum number of rows that can be returned. + RESOURCE_LIMIT (int): This request would exceed a limit on the number of allowed resources. + The details of which type of limit was exceeded will eventually be + returned in ErrorDetails. """ UNSPECIFIED = 0 UNKNOWN = 1 @@ -8755,9 +10575,13 @@ class ResourceCountLimitExceededError(enum.IntEnum): SHARED_SET_LIMIT = 7 MATCHING_FUNCTION_LIMIT = 8 RESPONSE_ROW_LIMIT_EXCEEDED = 9 + RESOURCE_LIMIT = 10 +''' +ResourceCountLimitExceededErrorEnum = ResourceCountLimitExceededErrorEnum() # For __getattribute__ -class SearchEngineResultsPageTypeEnum(object): +class SearchEngineResultsPageTypeEnum(_CreateEnumTypeUponFirstAccess): + SearchEngineResultsPageType = '''\ class SearchEngineResultsPageType(enum.IntEnum): """ The type of the search engine results page. @@ -8775,9 +10599,12 @@ class SearchEngineResultsPageType(enum.IntEnum): ADS_ONLY = 2 ORGANIC_ONLY = 3 ADS_AND_ORGANIC = 4 +''' +SearchEngineResultsPageTypeEnum = SearchEngineResultsPageTypeEnum() # For __getattribute__ -class SearchTermMatchTypeEnum(object): +class SearchTermMatchTypeEnum(_CreateEnumTypeUponFirstAccess): + SearchTermMatchType = '''\ class SearchTermMatchType(enum.IntEnum): """ Possible match types for a keyword triggering an ad, including variants. @@ -8798,9 +10625,12 @@ class SearchTermMatchType(enum.IntEnum): PHRASE = 4 NEAR_EXACT = 5 NEAR_PHRASE = 6 +''' +SearchTermMatchTypeEnum = SearchTermMatchTypeEnum() # For __getattribute__ -class SearchTermTargetingStatusEnum(object): +class SearchTermTargetingStatusEnum(_CreateEnumTypeUponFirstAccess): + SearchTermTargetingStatus = '''\ class SearchTermTargetingStatus(enum.IntEnum): """ Indicates whether the search term is one of your targeted or excluded @@ -8820,9 +10650,12 @@ class SearchTermTargetingStatus(enum.IntEnum): EXCLUDED = 3 ADDED_EXCLUDED = 4 NONE = 5 +''' +SearchTermTargetingStatusEnum = SearchTermTargetingStatusEnum() # For __getattribute__ -class ServedAssetFieldTypeEnum(object): +class ServedAssetFieldTypeEnum(_CreateEnumTypeUponFirstAccess): + ServedAssetFieldType = '''\ class ServedAssetFieldType(enum.IntEnum): """ The possible asset field types. @@ -8845,9 +10678,12 @@ class ServedAssetFieldType(enum.IntEnum): HEADLINE_3 = 4 DESCRIPTION_1 = 5 DESCRIPTION_2 = 6 +''' +ServedAssetFieldTypeEnum = ServedAssetFieldTypeEnum() # For __getattribute__ -class SettingErrorEnum(object): +class SettingErrorEnum(_CreateEnumTypeUponFirstAccess): + SettingError = '''\ class SettingError(enum.IntEnum): """ Enum describing possible setting errors. @@ -8873,15 +10709,7 @@ class SettingError(enum.IntEnum): DYNAMIC_SEARCH_ADS_SETTING_CONTAINS_INVALID_LANGUAGE_CODE (int): The supplied DynamicSearchAdsSetting contains an invalid language code. TARGET_ALL_IS_NOT_ALLOWED_FOR_PLACEMENT_IN_SEARCH_CAMPAIGN (int): TargetingSettings in search campaigns should not have CriterionTypeGroup.PLACEMENT set to targetAll. - UNIVERSAL_APP_CAMPAIGN_SETTING_DUPLICATE_DESCRIPTION (int): Duplicate description in universal app setting description field. - UNIVERSAL_APP_CAMPAIGN_SETTING_DESCRIPTION_LINE_WIDTH_TOO_LONG (int): Description line width is too long in universal app setting description - field. - UNIVERSAL_APP_CAMPAIGN_SETTING_APP_ID_CANNOT_BE_MODIFIED (int): Universal app setting appId field cannot be modified for COMPLETE - campaigns. - TOO_MANY_YOUTUBE_MEDIA_IDS_IN_UNIVERSAL_APP_CAMPAIGN (int): YoutubeVideoMediaIds in universal app setting cannot exceed size limit. - TOO_MANY_IMAGE_MEDIA_IDS_IN_UNIVERSAL_APP_CAMPAIGN (int): ImageMediaIds in universal app setting cannot exceed size limit. - MEDIA_INCOMPATIBLE_FOR_UNIVERSAL_APP_CAMPAIGN (int): Media is incompatible for universal app campaign. - TOO_MANY_EXCLAMATION_MARKS (int): Too many exclamation marks in universal app campaign ad text ideas. + SETTING_VALUE_NOT_COMPATIBLE_WITH_CAMPAIGN (int): The setting value is not compatible with the campaign type. """ UNSPECIFIED = 0 UNKNOWN = 1 @@ -8895,16 +10723,13 @@ class SettingError(enum.IntEnum): DYNAMIC_SEARCH_ADS_SETTING_CONTAINS_SUBDOMAIN_NAME = 10 DYNAMIC_SEARCH_ADS_SETTING_CONTAINS_INVALID_LANGUAGE_CODE = 11 TARGET_ALL_IS_NOT_ALLOWED_FOR_PLACEMENT_IN_SEARCH_CAMPAIGN = 12 - UNIVERSAL_APP_CAMPAIGN_SETTING_DUPLICATE_DESCRIPTION = 13 - UNIVERSAL_APP_CAMPAIGN_SETTING_DESCRIPTION_LINE_WIDTH_TOO_LONG = 14 - UNIVERSAL_APP_CAMPAIGN_SETTING_APP_ID_CANNOT_BE_MODIFIED = 15 - TOO_MANY_YOUTUBE_MEDIA_IDS_IN_UNIVERSAL_APP_CAMPAIGN = 16 - TOO_MANY_IMAGE_MEDIA_IDS_IN_UNIVERSAL_APP_CAMPAIGN = 17 - MEDIA_INCOMPATIBLE_FOR_UNIVERSAL_APP_CAMPAIGN = 18 - TOO_MANY_EXCLAMATION_MARKS = 19 + SETTING_VALUE_NOT_COMPATIBLE_WITH_CAMPAIGN = 20 +''' +SettingErrorEnum = SettingErrorEnum() # For __getattribute__ -class SharedCriterionErrorEnum(object): +class SharedCriterionErrorEnum(_CreateEnumTypeUponFirstAccess): + SharedCriterionError = '''\ class SharedCriterionError(enum.IntEnum): """ Enum describing possible shared criterion errors. @@ -8917,9 +10742,12 @@ class SharedCriterionError(enum.IntEnum): UNSPECIFIED = 0 UNKNOWN = 1 CRITERION_TYPE_NOT_ALLOWED_FOR_SHARED_SET_TYPE = 2 +''' +SharedCriterionErrorEnum = SharedCriterionErrorEnum() # For __getattribute__ -class SharedSetErrorEnum(object): +class SharedSetErrorEnum(_CreateEnumTypeUponFirstAccess): + SharedSetError = '''\ class SharedSetError(enum.IntEnum): """ Enum describing possible shared set errors. @@ -8938,9 +10766,12 @@ class SharedSetError(enum.IntEnum): DUPLICATE_NAME = 3 SHARED_SET_REMOVED = 4 SHARED_SET_IN_USE = 5 +''' +SharedSetErrorEnum = SharedSetErrorEnum() # For __getattribute__ -class SharedSetStatusEnum(object): +class SharedSetStatusEnum(_CreateEnumTypeUponFirstAccess): + SharedSetStatus = '''\ class SharedSetStatus(enum.IntEnum): """ Enum listing the possible shared set statuses. @@ -8955,9 +10786,12 @@ class SharedSetStatus(enum.IntEnum): UNKNOWN = 1 ENABLED = 2 REMOVED = 3 +''' +SharedSetStatusEnum = SharedSetStatusEnum() # For __getattribute__ -class SharedSetTypeEnum(object): +class SharedSetTypeEnum(_CreateEnumTypeUponFirstAccess): + SharedSetType = '''\ class SharedSetType(enum.IntEnum): """ Enum listing the possible shared set types. @@ -8972,9 +10806,12 @@ class SharedSetType(enum.IntEnum): UNKNOWN = 1 NEGATIVE_KEYWORDS = 2 NEGATIVE_PLACEMENTS = 3 +''' +SharedSetTypeEnum = SharedSetTypeEnum() # For __getattribute__ -class SimulationModificationMethodEnum(object): +class SimulationModificationMethodEnum(_CreateEnumTypeUponFirstAccess): + SimulationModificationMethod = '''\ class SimulationModificationMethod(enum.IntEnum): """ Enum describing the method by which a simulation modifies a field. @@ -8992,9 +10829,12 @@ class SimulationModificationMethod(enum.IntEnum): UNKNOWN = 1 UNIFORM = 2 DEFAULT = 3 +''' +SimulationModificationMethodEnum = SimulationModificationMethodEnum() # For __getattribute__ -class SimulationTypeEnum(object): +class SimulationTypeEnum(_CreateEnumTypeUponFirstAccess): + SimulationType = '''\ class SimulationType(enum.IntEnum): """ Enum describing the field a simulation modifies. @@ -9006,6 +10846,7 @@ class SimulationType(enum.IntEnum): CPV_BID (int): The simulation is for a cpv bid. TARGET_CPA (int): The simulation is for a cpa target. BID_MODIFIER (int): The simulation is for a bid modifier. + TARGET_ROAS (int): The simulation is for a ROAS target. """ UNSPECIFIED = 0 UNKNOWN = 1 @@ -9013,9 +10854,13 @@ class SimulationType(enum.IntEnum): CPV_BID = 3 TARGET_CPA = 4 BID_MODIFIER = 5 + TARGET_ROAS = 6 +''' +SimulationTypeEnum = SimulationTypeEnum() # For __getattribute__ -class SitelinkPlaceholderFieldEnum(object): +class SitelinkPlaceholderFieldEnum(_CreateEnumTypeUponFirstAccess): + SitelinkPlaceholderField = '''\ class SitelinkPlaceholderField(enum.IntEnum): """ Possible values for Sitelink placeholder fields. @@ -9044,9 +10889,12 @@ class SitelinkPlaceholderField(enum.IntEnum): FINAL_MOBILE_URLS = 6 TRACKING_URL = 7 FINAL_URL_SUFFIX = 8 +''' +SitelinkPlaceholderFieldEnum = SitelinkPlaceholderFieldEnum() # For __getattribute__ -class SizeLimitErrorEnum(object): +class SizeLimitErrorEnum(_CreateEnumTypeUponFirstAccess): + SizeLimitError = '''\ class SizeLimitError(enum.IntEnum): """ Enum describing possible size limit errors. @@ -9061,9 +10909,12 @@ class SizeLimitError(enum.IntEnum): UNKNOWN = 1 REQUEST_SIZE_LIMIT_EXCEEDED = 2 RESPONSE_SIZE_LIMIT_EXCEEDED = 3 +''' +SizeLimitErrorEnum = SizeLimitErrorEnum() # For __getattribute__ -class SlotEnum(object): +class SlotEnum(_CreateEnumTypeUponFirstAccess): + Slot = '''\ class Slot(enum.IntEnum): """ Enumerates possible positions of the Ad. @@ -9088,9 +10939,12 @@ class Slot(enum.IntEnum): SEARCH_PARTNER_TOP = 6 SEARCH_PARTNER_OTHER = 7 MIXED = 8 +''' +SlotEnum = SlotEnum() # For __getattribute__ -class SpendingLimitTypeEnum(object): +class SpendingLimitTypeEnum(_CreateEnumTypeUponFirstAccess): + SpendingLimitType = '''\ class SpendingLimitType(enum.IntEnum): """ The possible spending limit types used by certain resources as an @@ -9104,9 +10958,12 @@ class SpendingLimitType(enum.IntEnum): UNSPECIFIED = 0 UNKNOWN = 1 INFINITE = 2 +''' +SpendingLimitTypeEnum = SpendingLimitTypeEnum() # For __getattribute__ -class StringFormatErrorEnum(object): +class StringFormatErrorEnum(_CreateEnumTypeUponFirstAccess): + StringFormatError = '''\ class StringFormatError(enum.IntEnum): """ Enum describing possible string format errors. @@ -9121,9 +10978,12 @@ class StringFormatError(enum.IntEnum): UNKNOWN = 1 ILLEGAL_CHARS = 2 INVALID_FORMAT = 3 +''' +StringFormatErrorEnum = StringFormatErrorEnum() # For __getattribute__ -class StringLengthErrorEnum(object): +class StringLengthErrorEnum(_CreateEnumTypeUponFirstAccess): + StringLengthError = '''\ class StringLengthError(enum.IntEnum): """ Enum describing possible string length errors. @@ -9131,16 +10991,22 @@ class StringLengthError(enum.IntEnum): Attributes: UNSPECIFIED (int): Enum unspecified. UNKNOWN (int): The received error code is not known in this version. + EMPTY (int): The specified field should have a least one non-whitespace character in + it. TOO_SHORT (int): Too short. TOO_LONG (int): Too long. """ UNSPECIFIED = 0 UNKNOWN = 1 + EMPTY = 4 TOO_SHORT = 2 TOO_LONG = 3 +''' +StringLengthErrorEnum = StringLengthErrorEnum() # For __getattribute__ -class StructuredSnippetPlaceholderFieldEnum(object): +class StructuredSnippetPlaceholderFieldEnum(_CreateEnumTypeUponFirstAccess): + StructuredSnippetPlaceholderField = '''\ class StructuredSnippetPlaceholderField(enum.IntEnum): """ Possible values for Structured Snippet placeholder fields. @@ -9149,10 +11015,9 @@ class StructuredSnippetPlaceholderField(enum.IntEnum): UNSPECIFIED (int): Not specified. UNKNOWN (int): Used for return value only. Represents value unknown in this version. HEADER (int): Data Type: STRING. The category of snippet of your products/services. - Must match one of the predefined structured snippets headers exactly. - See - https://developers.google.com/adwords/api - /docs/appendix/structured-snippet-headers + Must match exactly one of the predefined structured snippets headers. + For a list, visit + https://developers.google.com/adwords/api/docs/appendix/structured-snippet-headers SNIPPETS (int): Data Type: STRING\_LIST. Text values that describe your products/services. All text must be family safe. Special or non-ASCII characters are not permitted. A snippet can be at most 25 characters. @@ -9161,9 +11026,35 @@ class StructuredSnippetPlaceholderField(enum.IntEnum): UNKNOWN = 1 HEADER = 2 SNIPPETS = 3 +''' +StructuredSnippetPlaceholderFieldEnum = StructuredSnippetPlaceholderFieldEnum() # For __getattribute__ + +class SummaryRowSettingEnum(_CreateEnumTypeUponFirstAccess): + SummaryRowSetting = '''\ + class SummaryRowSetting(enum.IntEnum): + """ + Enum describing return summary row settings. + + Attributes: + UNSPECIFIED (int): Not specified. + UNKNOWN (int): Represent unknown values of return summary row. + NO_SUMMARY_ROW (int): Do not return summary row. + SUMMARY_ROW_WITH_RESULTS (int): Return summary row along with results. The summary row will be returned + in the last batch alone (last batch will contain no results). + SUMMARY_ROW_ONLY (int): Return summary row only and return no results. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + NO_SUMMARY_ROW = 2 + SUMMARY_ROW_WITH_RESULTS = 3 + SUMMARY_ROW_ONLY = 4 +''' +SummaryRowSettingEnum = SummaryRowSettingEnum() # For __getattribute__ -class SystemManagedResourceSourceEnum(object): + +class SystemManagedResourceSourceEnum(_CreateEnumTypeUponFirstAccess): + SystemManagedResourceSource = '''\ class SystemManagedResourceSource(enum.IntEnum): """ Enum listing the possible system managed entity sources. @@ -9176,9 +11067,12 @@ class SystemManagedResourceSource(enum.IntEnum): UNSPECIFIED = 0 UNKNOWN = 1 AD_VARIATIONS = 2 +''' +SystemManagedResourceSourceEnum = SystemManagedResourceSourceEnum() # For __getattribute__ -class TargetCpaOptInRecommendationGoalEnum(object): +class TargetCpaOptInRecommendationGoalEnum(_CreateEnumTypeUponFirstAccess): + TargetCpaOptInRecommendationGoal = '''\ class TargetCpaOptInRecommendationGoal(enum.IntEnum): """ Goal of TargetCpaOptIn recommendation. @@ -9198,9 +11092,12 @@ class TargetCpaOptInRecommendationGoal(enum.IntEnum): SAME_CONVERSIONS = 3 SAME_CPA = 4 CLOSEST_CPA = 5 +''' +TargetCpaOptInRecommendationGoalEnum = TargetCpaOptInRecommendationGoalEnum() # For __getattribute__ -class TargetImpressionShareLocationEnum(object): +class TargetImpressionShareLocationEnum(_CreateEnumTypeUponFirstAccess): + TargetImpressionShareLocation = '''\ class TargetImpressionShareLocation(enum.IntEnum): """ Enum describing possible goals. @@ -9217,9 +11114,32 @@ class TargetImpressionShareLocation(enum.IntEnum): ANYWHERE_ON_PAGE = 2 TOP_OF_PAGE = 3 ABSOLUTE_TOP_OF_PAGE = 4 +''' +TargetImpressionShareLocationEnum = TargetImpressionShareLocationEnum() # For __getattribute__ + + +class TargetRestrictionOperation(_CreateEnumTypeUponFirstAccess): + Operator = '''\ + class Operator(enum.IntEnum): + """ + The operator. + + Attributes: + UNSPECIFIED (int): Unspecified. + UNKNOWN (int): Used for return value only. Represents value unknown in this version. + ADD (int): Add the restriction to the existing restrictions. + REMOVE (int): Remove the restriction from the existing restrictions. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + ADD = 2 + REMOVE = 3 +''' +TargetRestrictionOperation = TargetRestrictionOperation() # For __getattribute__ -class TargetingDimensionEnum(object): +class TargetingDimensionEnum(_CreateEnumTypeUponFirstAccess): + TargetingDimension = '''\ class TargetingDimension(enum.IntEnum): """ Enum describing possible targeting dimensions. @@ -9252,9 +11172,12 @@ class TargetingDimension(enum.IntEnum): PLACEMENT = 7 PARENTAL_STATUS = 8 INCOME_RANGE = 9 +''' +TargetingDimensionEnum = TargetingDimensionEnum() # For __getattribute__ -class TimeTypeEnum(object): +class TimeTypeEnum(_CreateEnumTypeUponFirstAccess): + TimeType = '''\ class TimeType(enum.IntEnum): """ The possible time types used by certain resources as an alternative to @@ -9270,9 +11193,30 @@ class TimeType(enum.IntEnum): UNKNOWN = 1 NOW = 2 FOREVER = 3 +''' +TimeTypeEnum = TimeTypeEnum() # For __getattribute__ -class TrackingCodePageFormatEnum(object): +class TimeZoneErrorEnum(_CreateEnumTypeUponFirstAccess): + TimeZoneError = '''\ + class TimeZoneError(enum.IntEnum): + """ + Enum describing possible currency code errors. + + Attributes: + UNSPECIFIED (int): Enum unspecified. + UNKNOWN (int): The received error code is not known in this version. + INVALID_TIME_ZONE (int): Time zone is not valid. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + INVALID_TIME_ZONE = 5 +''' +TimeZoneErrorEnum = TimeZoneErrorEnum() # For __getattribute__ + + +class TrackingCodePageFormatEnum(_CreateEnumTypeUponFirstAccess): + TrackingCodePageFormat = '''\ class TrackingCodePageFormat(enum.IntEnum): """ The format of the web page where the tracking tag and snippet will be @@ -9288,9 +11232,12 @@ class TrackingCodePageFormat(enum.IntEnum): UNKNOWN = 1 HTML = 2 AMP = 3 +''' +TrackingCodePageFormatEnum = TrackingCodePageFormatEnum() # For __getattribute__ -class TrackingCodeTypeEnum(object): +class TrackingCodeTypeEnum(_CreateEnumTypeUponFirstAccess): + TrackingCodeType = '''\ class TrackingCodeType(enum.IntEnum): """ The type of the generated tag snippets for tracking conversions. @@ -9304,15 +11251,21 @@ class TrackingCodeType(enum.IntEnum): button element on the page. CLICK_TO_CALL (int): For embedding on a mobile webpage. The snippet contains a JavaScript function which fires the tag. + WEBSITE_CALL (int): The snippet that is used to replace the phone number on your website with + a Google forwarding number for call tracking purposes. """ UNSPECIFIED = 0 UNKNOWN = 1 WEBPAGE = 2 WEBPAGE_ONCLICK = 3 CLICK_TO_CALL = 4 + WEBSITE_CALL = 5 +''' +TrackingCodeTypeEnum = TrackingCodeTypeEnum() # For __getattribute__ -class TravelPlaceholderFieldEnum(object): +class TravelPlaceholderFieldEnum(_CreateEnumTypeUponFirstAccess): + TravelPlaceholderField = '''\ class TravelPlaceholderField(enum.IntEnum): """ Possible values for Travel placeholder fields. @@ -9383,9 +11336,12 @@ class TravelPlaceholderField(enum.IntEnum): SIMILAR_DESTINATION_IDS = 19 IOS_APP_LINK = 20 IOS_APP_STORE_ID = 21 +''' +TravelPlaceholderFieldEnum = TravelPlaceholderFieldEnum() # For __getattribute__ -class UrlFieldErrorEnum(object): +class UrlFieldErrorEnum(_CreateEnumTypeUponFirstAccess): + UrlFieldError = '''\ class UrlFieldError(enum.IntEnum): """ Enum describing possible url field errors. @@ -9515,9 +11471,34 @@ class UrlFieldError(enum.IntEnum): MALFORMED_URL = 55 MISSING_HOST = 56 NULL_CUSTOM_PARAMETER_VALUE = 57 +''' +UrlFieldErrorEnum = UrlFieldErrorEnum() # For __getattribute__ + + +class UserDataErrorEnum(_CreateEnumTypeUponFirstAccess): + UserDataError = '''\ + class UserDataError(enum.IntEnum): + """ + Enum describing possible request errors. + + Attributes: + UNSPECIFIED (int): Enum unspecified. + UNKNOWN (int): The received error code is not known in this version. + OPERATIONS_FOR_CUSTOMER_MATCH_NOT_ALLOWED (int): Customer is not allowed to perform operations related to Customer Match. + TOO_MANY_USER_IDENTIFIERS (int): Maximum number of user identifiers allowed for each mutate is 100. + USER_LIST_NOT_APPLICABLE (int): Current user list is not applicable for the given customer. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + OPERATIONS_FOR_CUSTOMER_MATCH_NOT_ALLOWED = 2 + TOO_MANY_USER_IDENTIFIERS = 3 + USER_LIST_NOT_APPLICABLE = 4 +''' +UserDataErrorEnum = UserDataErrorEnum() # For __getattribute__ -class UserInterestTaxonomyTypeEnum(object): +class UserInterestTaxonomyTypeEnum(_CreateEnumTypeUponFirstAccess): + UserInterestTaxonomyType = '''\ class UserInterestTaxonomyType(enum.IntEnum): """ Enum containing the possible UserInterestTaxonomyTypes. @@ -9538,9 +11519,12 @@ class UserInterestTaxonomyType(enum.IntEnum): MOBILE_APP_INSTALL_USER = 4 VERTICAL_GEO = 5 NEW_SMART_PHONE_USER = 6 +''' +UserInterestTaxonomyTypeEnum = UserInterestTaxonomyTypeEnum() # For __getattribute__ -class UserListAccessStatusEnum(object): +class UserListAccessStatusEnum(_CreateEnumTypeUponFirstAccess): + UserListAccessStatus = '''\ class UserListAccessStatus(enum.IntEnum): """ Enum containing possible user list access statuses. @@ -9555,9 +11539,12 @@ class UserListAccessStatus(enum.IntEnum): UNKNOWN = 1 ENABLED = 2 DISABLED = 3 +''' +UserListAccessStatusEnum = UserListAccessStatusEnum() # For __getattribute__ -class UserListClosingReasonEnum(object): +class UserListClosingReasonEnum(_CreateEnumTypeUponFirstAccess): + UserListClosingReason = '''\ class UserListClosingReason(enum.IntEnum): """ Enum describing possible user list closing reasons. @@ -9570,9 +11557,12 @@ class UserListClosingReason(enum.IntEnum): UNSPECIFIED = 0 UNKNOWN = 1 UNUSED = 2 +''' +UserListClosingReasonEnum = UserListClosingReasonEnum() # For __getattribute__ -class UserListCombinedRuleOperatorEnum(object): +class UserListCombinedRuleOperatorEnum(_CreateEnumTypeUponFirstAccess): + UserListCombinedRuleOperator = '''\ class UserListCombinedRuleOperator(enum.IntEnum): """ Enum describing possible user list combined rule operators. @@ -9587,9 +11577,12 @@ class UserListCombinedRuleOperator(enum.IntEnum): UNKNOWN = 1 AND = 2 AND_NOT = 3 +''' +UserListCombinedRuleOperatorEnum = UserListCombinedRuleOperatorEnum() # For __getattribute__ -class UserListCrmDataSourceTypeEnum(object): +class UserListCrmDataSourceTypeEnum(_CreateEnumTypeUponFirstAccess): + UserListCrmDataSourceType = '''\ class UserListCrmDataSourceType(enum.IntEnum): """ Enum describing possible user list crm data source type. @@ -9606,9 +11599,12 @@ class UserListCrmDataSourceType(enum.IntEnum): FIRST_PARTY = 2 THIRD_PARTY_CREDIT_BUREAU = 3 THIRD_PARTY_VOTER_FILE = 4 +''' +UserListCrmDataSourceTypeEnum = UserListCrmDataSourceTypeEnum() # For __getattribute__ -class UserListDateRuleItemOperatorEnum(object): +class UserListDateRuleItemOperatorEnum(_CreateEnumTypeUponFirstAccess): + UserListDateRuleItemOperator = '''\ class UserListDateRuleItemOperator(enum.IntEnum): """ Enum describing possible user list date rule item operators. @@ -9627,9 +11623,12 @@ class UserListDateRuleItemOperator(enum.IntEnum): NOT_EQUALS = 3 BEFORE = 4 AFTER = 5 +''' +UserListDateRuleItemOperatorEnum = UserListDateRuleItemOperatorEnum() # For __getattribute__ -class UserListErrorEnum(object): +class UserListErrorEnum(_CreateEnumTypeUponFirstAccess): + UserListError = '''\ class UserListError(enum.IntEnum): """ Enum describing possible user list errors. @@ -9699,9 +11698,12 @@ class UserListError(enum.IntEnum): RULE_TYPE_IS_NOT_SUPPORTED = 34 CAN_NOT_ADD_A_SIMILAR_USERLIST_AS_LOGICAL_LIST_OPERAND = 35 CAN_NOT_MIX_CRM_BASED_IN_LOGICAL_LIST_WITH_OTHER_LISTS = 36 +''' +UserListErrorEnum = UserListErrorEnum() # For __getattribute__ -class UserListLogicalRuleOperatorEnum(object): +class UserListLogicalRuleOperatorEnum(_CreateEnumTypeUponFirstAccess): + UserListLogicalRuleOperator = '''\ class UserListLogicalRuleOperator(enum.IntEnum): """ Enum describing possible user list logical rule operators. @@ -9718,9 +11720,12 @@ class UserListLogicalRuleOperator(enum.IntEnum): ALL = 2 ANY = 3 NONE = 4 +''' +UserListLogicalRuleOperatorEnum = UserListLogicalRuleOperatorEnum() # For __getattribute__ -class UserListMembershipStatusEnum(object): +class UserListMembershipStatusEnum(_CreateEnumTypeUponFirstAccess): + UserListMembershipStatus = '''\ class UserListMembershipStatus(enum.IntEnum): """ Enum containing possible user list membership statuses. @@ -9735,9 +11740,12 @@ class UserListMembershipStatus(enum.IntEnum): UNKNOWN = 1 OPEN = 2 CLOSED = 3 +''' +UserListMembershipStatusEnum = UserListMembershipStatusEnum() # For __getattribute__ -class UserListNumberRuleItemOperatorEnum(object): +class UserListNumberRuleItemOperatorEnum(_CreateEnumTypeUponFirstAccess): + UserListNumberRuleItemOperator = '''\ class UserListNumberRuleItemOperator(enum.IntEnum): """ Enum describing possible user list number rule item operators. @@ -9760,9 +11768,12 @@ class UserListNumberRuleItemOperator(enum.IntEnum): NOT_EQUALS = 5 LESS_THAN = 6 LESS_THAN_OR_EQUAL = 7 +''' +UserListNumberRuleItemOperatorEnum = UserListNumberRuleItemOperatorEnum() # For __getattribute__ -class UserListPrepopulationStatusEnum(object): +class UserListPrepopulationStatusEnum(_CreateEnumTypeUponFirstAccess): + UserListPrepopulationStatus = '''\ class UserListPrepopulationStatus(enum.IntEnum): """ Enum describing possible user list prepopulation status. @@ -9779,9 +11790,12 @@ class UserListPrepopulationStatus(enum.IntEnum): REQUESTED = 2 FINISHED = 3 FAILED = 4 +''' +UserListPrepopulationStatusEnum = UserListPrepopulationStatusEnum() # For __getattribute__ -class UserListRuleTypeEnum(object): +class UserListRuleTypeEnum(_CreateEnumTypeUponFirstAccess): + UserListRuleType = '''\ class UserListRuleType(enum.IntEnum): """ Enum describing possible user list rule types. @@ -9796,9 +11810,12 @@ class UserListRuleType(enum.IntEnum): UNKNOWN = 1 AND_OF_ORS = 2 OR_OF_ANDS = 3 +''' +UserListRuleTypeEnum = UserListRuleTypeEnum() # For __getattribute__ -class UserListSizeRangeEnum(object): +class UserListSizeRangeEnum(_CreateEnumTypeUponFirstAccess): + UserListSizeRange = '''\ class UserListSizeRange(enum.IntEnum): """ Enum containing possible user list size ranges. @@ -9841,9 +11858,12 @@ class UserListSizeRange(enum.IntEnum): TWENTY_MILLION_TO_THIRTY_MILLION = 15 THIRTY_MILLION_TO_FIFTY_MILLION = 16 OVER_FIFTY_MILLION = 17 +''' +UserListSizeRangeEnum = UserListSizeRangeEnum() # For __getattribute__ -class UserListStringRuleItemOperatorEnum(object): +class UserListStringRuleItemOperatorEnum(_CreateEnumTypeUponFirstAccess): + UserListStringRuleItemOperator = '''\ class UserListStringRuleItemOperator(enum.IntEnum): """ Enum describing possible user list string rule item operators. @@ -9870,9 +11890,12 @@ class UserListStringRuleItemOperator(enum.IntEnum): NOT_CONTAINS = 7 NOT_STARTS_WITH = 8 NOT_ENDS_WITH = 9 +''' +UserListStringRuleItemOperatorEnum = UserListStringRuleItemOperatorEnum() # For __getattribute__ -class UserListTypeEnum(object): +class UserListTypeEnum(_CreateEnumTypeUponFirstAccess): + UserListType = '''\ class UserListType(enum.IntEnum): """ Enum containing possible user list types. @@ -9896,9 +11919,12 @@ class UserListType(enum.IntEnum): RULE_BASED = 5 SIMILAR = 6 CRM_BASED = 7 +''' +UserListTypeEnum = UserListTypeEnum() # For __getattribute__ -class VanityPharmaDisplayUrlModeEnum(object): +class VanityPharmaDisplayUrlModeEnum(_CreateEnumTypeUponFirstAccess): + VanityPharmaDisplayUrlMode = '''\ class VanityPharmaDisplayUrlMode(enum.IntEnum): """ Enum describing possible display modes for vanity pharma URLs. @@ -9913,9 +11939,12 @@ class VanityPharmaDisplayUrlMode(enum.IntEnum): UNKNOWN = 1 MANUFACTURER_WEBSITE_URL = 2 WEBSITE_DESCRIPTION = 3 +''' +VanityPharmaDisplayUrlModeEnum = VanityPharmaDisplayUrlModeEnum() # For __getattribute__ -class VanityPharmaTextEnum(object): +class VanityPharmaTextEnum(_CreateEnumTypeUponFirstAccess): + VanityPharmaText = '''\ class VanityPharmaText(enum.IntEnum): """ Enum describing possible text. @@ -9956,9 +11985,12 @@ class VanityPharmaText(enum.IntEnum): PRESCRIPTION_CONTRACEPTION_WEBSITE_ES = 11 PRESCRIPTION_VACCINE_WEBSITE_EN = 12 PRESCRIPTION_VACCINE_WEBSITE_ES = 13 +''' +VanityPharmaTextEnum = VanityPharmaTextEnum() # For __getattribute__ -class WebpageConditionOperandEnum(object): +class WebpageConditionOperandEnum(_CreateEnumTypeUponFirstAccess): + WebpageConditionOperand = '''\ class WebpageConditionOperand(enum.IntEnum): """ The webpage condition operand in webpage criterion. @@ -9979,9 +12011,12 @@ class WebpageConditionOperand(enum.IntEnum): PAGE_TITLE = 4 PAGE_CONTENT = 5 CUSTOM_LABEL = 6 +''' +WebpageConditionOperandEnum = WebpageConditionOperandEnum() # For __getattribute__ -class WebpageConditionOperatorEnum(object): +class WebpageConditionOperatorEnum(_CreateEnumTypeUponFirstAccess): + WebpageConditionOperator = '''\ class WebpageConditionOperator(enum.IntEnum): """ The webpage condition operator in webpage criterion. @@ -9996,9 +12031,12 @@ class WebpageConditionOperator(enum.IntEnum): UNKNOWN = 1 EQUALS = 2 CONTAINS = 3 +''' +WebpageConditionOperatorEnum = WebpageConditionOperatorEnum() # For __getattribute__ -class YoutubeVideoRegistrationErrorEnum(object): +class YoutubeVideoRegistrationErrorEnum(_CreateEnumTypeUponFirstAccess): + YoutubeVideoRegistrationError = '''\ class YoutubeVideoRegistrationError(enum.IntEnum): """ Enum describing YouTube video registration errors. @@ -10008,8 +12046,12 @@ class YoutubeVideoRegistrationError(enum.IntEnum): UNKNOWN (int): The received error code is not known in this version. VIDEO_NOT_FOUND (int): Video to be registered wasn't found. VIDEO_NOT_ACCESSIBLE (int): Video to be registered is not accessible (e.g. private). + VIDEO_NOT_ELIGIBLE (int): Video to be registered is not eligible (e.g. mature content). """ UNSPECIFIED = 0 UNKNOWN = 1 VIDEO_NOT_FOUND = 2 VIDEO_NOT_ACCESSIBLE = 3 + VIDEO_NOT_ELIGIBLE = 4 +''' +YoutubeVideoRegistrationErrorEnum = YoutubeVideoRegistrationErrorEnum() # For __getattribute__ diff --git a/google/ads/google_ads/v1/services/expanded_landing_page_view_service_client.py b/google/ads/google_ads/v4/services/expanded_landing_page_view_service_client.py similarity index 77% rename from google/ads/google_ads/v1/services/expanded_landing_page_view_service_client.py rename to google/ads/google_ads/v4/services/expanded_landing_page_view_service_client.py index b81df53b4..68c448ad0 100644 --- a/google/ads/google_ads/v1/services/expanded_landing_page_view_service_client.py +++ b/google/ads/google_ads/v4/services/expanded_landing_page_view_service_client.py @@ -13,7 +13,8 @@ # 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. -"""Accesses the google.ads.googleads.v1.services ExpandedLandingPageViewService API.""" + +"""Accesses the google.ads.googleads.v4.services ExpandedLandingPageViewService API.""" import pkg_resources import warnings @@ -22,15 +23,19 @@ import google.api_core.gapic_v1.client_info import google.api_core.gapic_v1.config import google.api_core.gapic_v1.method +import google.api_core.gapic_v1.routing_header import google.api_core.grpc_helpers import google.api_core.path_template -from google.ads.google_ads.v1.services import expanded_landing_page_view_service_client_config -from google.ads.google_ads.v1.services.transports import expanded_landing_page_view_service_grpc_transport -from google.ads.google_ads.v1.proto.services import expanded_landing_page_view_service_pb2 +from google.ads.google_ads.v4.services import expanded_landing_page_view_service_client_config +from google.ads.google_ads.v4.services.transports import expanded_landing_page_view_service_grpc_transport +from google.ads.google_ads.v4.proto.services import expanded_landing_page_view_service_pb2 + + _GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( - 'google-ads', ).version + 'google-ads', +).version class ExpandedLandingPageViewServiceClient(object): @@ -41,7 +46,8 @@ class ExpandedLandingPageViewServiceClient(object): # The name of the interface for this client. This is the key used to # find the method configuration in the client_config dictionary. - _INTERFACE_NAME = 'google.ads.googleads.v1.services.ExpandedLandingPageViewService' + _INTERFACE_NAME = 'google.ads.googleads.v4.services.ExpandedLandingPageViewService' + @classmethod def from_service_account_file(cls, filename, *args, **kwargs): @@ -64,9 +70,9 @@ def from_service_account_file(cls, filename, *args, **kwargs): from_service_account_json = from_service_account_file + @classmethod - def expanded_landing_page_view_path(cls, customer, - expanded_landing_page_view): + def expanded_landing_page_view_path(cls, customer, expanded_landing_page_view): """Return a fully-qualified expanded_landing_page_view string.""" return google.api_core.path_template.expand( 'customers/{customer}/expandedLandingPageViews/{expanded_landing_page_view}', @@ -74,12 +80,8 @@ def expanded_landing_page_view_path(cls, customer, expanded_landing_page_view=expanded_landing_page_view, ) - def __init__(self, - transport=None, - channel=None, - credentials=None, - client_config=None, - client_info=None): + def __init__(self, transport=None, channel=None, credentials=None, + client_config=None, client_info=None): """Constructor. Args: @@ -112,19 +114,15 @@ def __init__(self, """ # Raise deprecation warnings for things we want to go away. if client_config is not None: - warnings.warn( - 'The `client_config` argument is deprecated.', - PendingDeprecationWarning, - stacklevel=2) + warnings.warn('The `client_config` argument is deprecated.', + PendingDeprecationWarning, stacklevel=2) else: client_config = expanded_landing_page_view_service_client_config.config if channel: - warnings.warn( - 'The `channel` argument is deprecated; use ' - '`transport` instead.', - PendingDeprecationWarning, - stacklevel=2) + warnings.warn('The `channel` argument is deprecated; use ' + '`transport` instead.', + PendingDeprecationWarning, stacklevel=2) # Instantiate the transport. # The transport is responsible for handling serialization and @@ -133,15 +131,14 @@ def __init__(self, if callable(transport): self.transport = transport( credentials=credentials, - default_class= - expanded_landing_page_view_service_grpc_transport. - ExpandedLandingPageViewServiceGrpcTransport, + default_class=expanded_landing_page_view_service_grpc_transport.ExpandedLandingPageViewServiceGrpcTransport, ) else: if credentials: raise ValueError( 'Received both a transport instance and ' - 'credentials; these are mutually exclusive.') + 'credentials; these are mutually exclusive.' + ) self.transport = transport else: self.transport = expanded_landing_page_view_service_grpc_transport.ExpandedLandingPageViewServiceGrpcTransport( @@ -152,7 +149,8 @@ def __init__(self, if client_info is None: client_info = google.api_core.gapic_v1.client_info.ClientInfo( - gapic_version=_GAPIC_LIBRARY_VERSION, ) + gapic_version=_GAPIC_LIBRARY_VERSION, + ) else: client_info.gapic_version = _GAPIC_LIBRARY_VERSION self._client_info = client_info @@ -162,7 +160,8 @@ def __init__(self, # (Ordinarily, these are the defaults specified in the `*_config.py` # file next to this one.) self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( - client_config['interfaces'][self._INTERFACE_NAME], ) + client_config['interfaces'][self._INTERFACE_NAME], + ) # Save a dictionary of cached API call functions. # These are the actual callables which invoke the proper @@ -181,7 +180,7 @@ def get_expanded_landing_page_view( Returns the requested expanded landing page view in full detail. Args: - resource_name (str): The resource name of the expanded landing page view to fetch. + resource_name (str): Required. The resource name of the expanded landing page view to fetch. retry (Optional[google.api_core.retry.Retry]): A retry object used to retry requests. If ``None`` is specified, requests will not be retried. @@ -192,7 +191,7 @@ def get_expanded_landing_page_view( that is provided to the method. Returns: - A :class:`~google.ads.googleads_v1.types.ExpandedLandingPageView` instance. + A :class:`~google.ads.googleads_v4.types.ExpandedLandingPageView` instance. Raises: google.api_core.exceptions.GoogleAPICallError: If the request @@ -203,17 +202,25 @@ def get_expanded_landing_page_view( """ # Wrap the transport method to add retry and timeout logic. if 'get_expanded_landing_page_view' not in self._inner_api_calls: - self._inner_api_calls[ - 'get_expanded_landing_page_view'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.get_expanded_landing_page_view, - default_retry=self. - _method_configs['GetExpandedLandingPageView'].retry, - default_timeout=self. - _method_configs['GetExpandedLandingPageView'].timeout, - client_info=self._client_info, - ) + self._inner_api_calls['get_expanded_landing_page_view'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.get_expanded_landing_page_view, + default_retry=self._method_configs['GetExpandedLandingPageView'].retry, + default_timeout=self._method_configs['GetExpandedLandingPageView'].timeout, + client_info=self._client_info, + ) request = expanded_landing_page_view_service_pb2.GetExpandedLandingPageViewRequest( - resource_name=resource_name, ) - return self._inner_api_calls['get_expanded_landing_page_view']( - request, retry=retry, timeout=timeout, metadata=metadata) + resource_name=resource_name, + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [('resource_name', resource_name)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata(routing_header) + metadata.append(routing_metadata) + + return self._inner_api_calls['get_expanded_landing_page_view'](request, retry=retry, timeout=timeout, metadata=metadata) diff --git a/google/ads/google_ads/v4/services/expanded_landing_page_view_service_client_config.py b/google/ads/google_ads/v4/services/expanded_landing_page_view_service_client_config.py new file mode 100644 index 000000000..b7806702d --- /dev/null +++ b/google/ads/google_ads/v4/services/expanded_landing_page_view_service_client_config.py @@ -0,0 +1,31 @@ +config = { + "interfaces": { + "google.ads.googleads.v4.services.ExpandedLandingPageViewService": { + "retry_codes": { + "idempotent": [ + "DEADLINE_EXCEEDED", + "UNAVAILABLE" + ], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 5000, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 3600000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 3600000, + "total_timeout_millis": 3600000 + } + }, + "methods": { + "GetExpandedLandingPageView": { + "timeout_millis": 60000, + "retry_codes_name": "idempotent", + "retry_params_name": "default" + } + } + } + } +} diff --git a/google/ads/google_ads/v4/services/extension_feed_item_service_client.py b/google/ads/google_ads/v4/services/extension_feed_item_service_client.py new file mode 100644 index 000000000..950678957 --- /dev/null +++ b/google/ads/google_ads/v4/services/extension_feed_item_service_client.py @@ -0,0 +1,299 @@ +# -*- coding: utf-8 -*- +# +# 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. + +"""Accesses the google.ads.googleads.v4.services ExtensionFeedItemService API.""" + +import pkg_resources +import warnings + +from google.oauth2 import service_account +import google.api_core.gapic_v1.client_info +import google.api_core.gapic_v1.config +import google.api_core.gapic_v1.method +import google.api_core.gapic_v1.routing_header +import google.api_core.grpc_helpers +import google.api_core.path_template + +from google.ads.google_ads.v4.services import extension_feed_item_service_client_config +from google.ads.google_ads.v4.services.transports import extension_feed_item_service_grpc_transport +from google.ads.google_ads.v4.proto.services import extension_feed_item_service_pb2 + + + +_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( + 'google-ads', +).version + + +class ExtensionFeedItemServiceClient(object): + """Service to manage extension feed items.""" + + SERVICE_ADDRESS = 'googleads.googleapis.com:443' + """The default address of the service.""" + + # The name of the interface for this client. This is the key used to + # find the method configuration in the client_config dictionary. + _INTERFACE_NAME = 'google.ads.googleads.v4.services.ExtensionFeedItemService' + + + @classmethod + def from_service_account_file(cls, filename, *args, **kwargs): + """Creates an instance of this client using the provided credentials + file. + + Args: + filename (str): The path to the service account private key json + file. + args: Additional arguments to pass to the constructor. + kwargs: Additional arguments to pass to the constructor. + + Returns: + ExtensionFeedItemServiceClient: The constructed client. + """ + credentials = service_account.Credentials.from_service_account_file( + filename) + kwargs['credentials'] = credentials + return cls(*args, **kwargs) + + from_service_account_json = from_service_account_file + + + @classmethod + def extension_feed_item_path(cls, customer, extension_feed_item): + """Return a fully-qualified extension_feed_item string.""" + return google.api_core.path_template.expand( + 'customers/{customer}/extensionFeedItems/{extension_feed_item}', + customer=customer, + extension_feed_item=extension_feed_item, + ) + + def __init__(self, transport=None, channel=None, credentials=None, + client_config=None, client_info=None): + """Constructor. + + Args: + transport (Union[~.ExtensionFeedItemServiceGrpcTransport, + Callable[[~.Credentials, type], ~.ExtensionFeedItemServiceGrpcTransport]): A transport + instance, responsible for actually making the API calls. + The default transport uses the gRPC protocol. + This argument may also be a callable which returns a + transport instance. Callables will be sent the credentials + as the first argument and the default transport class as + the second argument. + channel (grpc.Channel): DEPRECATED. A ``Channel`` instance + through which to make calls. This argument is mutually exclusive + with ``credentials``; providing both will raise an exception. + credentials (google.auth.credentials.Credentials): The + authorization credentials to attach to requests. These + credentials identify this application to the service. If none + are specified, the client will attempt to ascertain the + credentials from the environment. + This argument is mutually exclusive with providing a + transport instance to ``transport``; doing so will raise + an exception. + client_config (dict): DEPRECATED. A dictionary of call options for + each method. If not specified, the default configuration is used. + client_info (google.api_core.gapic_v1.client_info.ClientInfo): + The client info used to send a user-agent string along with + API requests. If ``None``, then default info will be used. + Generally, you only need to set this if you're developing + your own client library. + """ + # Raise deprecation warnings for things we want to go away. + if client_config is not None: + warnings.warn('The `client_config` argument is deprecated.', + PendingDeprecationWarning, stacklevel=2) + else: + client_config = extension_feed_item_service_client_config.config + + if channel: + warnings.warn('The `channel` argument is deprecated; use ' + '`transport` instead.', + PendingDeprecationWarning, stacklevel=2) + + # Instantiate the transport. + # The transport is responsible for handling serialization and + # deserialization and actually sending data to the service. + if transport: + if callable(transport): + self.transport = transport( + credentials=credentials, + default_class=extension_feed_item_service_grpc_transport.ExtensionFeedItemServiceGrpcTransport, + ) + else: + if credentials: + raise ValueError( + 'Received both a transport instance and ' + 'credentials; these are mutually exclusive.' + ) + self.transport = transport + else: + self.transport = extension_feed_item_service_grpc_transport.ExtensionFeedItemServiceGrpcTransport( + address=self.SERVICE_ADDRESS, + channel=channel, + credentials=credentials, + ) + + if client_info is None: + client_info = google.api_core.gapic_v1.client_info.ClientInfo( + gapic_version=_GAPIC_LIBRARY_VERSION, + ) + else: + client_info.gapic_version = _GAPIC_LIBRARY_VERSION + self._client_info = client_info + + # Parse out the default settings for retry and timeout for each RPC + # from the client configuration. + # (Ordinarily, these are the defaults specified in the `*_config.py` + # file next to this one.) + self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( + client_config['interfaces'][self._INTERFACE_NAME], + ) + + # Save a dictionary of cached API call functions. + # These are the actual callables which invoke the proper + # transport methods, wrapped with `wrap_method` to add retry, + # timeout, and the like. + self._inner_api_calls = {} + + # Service calls + def get_extension_feed_item( + self, + resource_name, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None): + """ + Returns the requested extension feed item in full detail. + + Args: + resource_name (str): Required. The resource name of the extension feed item to fetch. + retry (Optional[google.api_core.retry.Retry]): A retry object used + to retry requests. If ``None`` is specified, requests will not + be retried. + timeout (Optional[float]): The amount of time, in seconds, to wait + for the request to complete. Note that if ``retry`` is + specified, the timeout applies to each individual attempt. + metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata + that is provided to the method. + + Returns: + A :class:`~google.ads.googleads_v4.types.ExtensionFeedItem` instance. + + Raises: + google.api_core.exceptions.GoogleAPICallError: If the request + failed for any reason. + google.api_core.exceptions.RetryError: If the request failed due + to a retryable error and retry attempts failed. + ValueError: If the parameters are invalid. + """ + # Wrap the transport method to add retry and timeout logic. + if 'get_extension_feed_item' not in self._inner_api_calls: + self._inner_api_calls['get_extension_feed_item'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.get_extension_feed_item, + default_retry=self._method_configs['GetExtensionFeedItem'].retry, + default_timeout=self._method_configs['GetExtensionFeedItem'].timeout, + client_info=self._client_info, + ) + + request = extension_feed_item_service_pb2.GetExtensionFeedItemRequest( + resource_name=resource_name, + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [('resource_name', resource_name)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata(routing_header) + metadata.append(routing_metadata) + + return self._inner_api_calls['get_extension_feed_item'](request, retry=retry, timeout=timeout, metadata=metadata) + + def mutate_extension_feed_items( + self, + customer_id, + operations, + partial_failure=None, + validate_only=None, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None): + """ + Creates, updates, or removes extension feed items. Operation + statuses are returned. + + Args: + customer_id (str): Required. The ID of the customer whose extension feed items are being + modified. + operations (list[Union[dict, ~google.ads.googleads_v4.types.ExtensionFeedItemOperation]]): Required. The list of operations to perform on individual extension feed items. + + If a dict is provided, it must be of the same form as the protobuf + message :class:`~google.ads.googleads_v4.types.ExtensionFeedItemOperation` + partial_failure (bool): If true, successful operations will be carried out and invalid + operations will return errors. If false, all operations will be carried + out in one transaction if and only if they are all valid. + Default is false. + validate_only (bool): If true, the request is validated but not executed. Only errors are + returned, not results. + retry (Optional[google.api_core.retry.Retry]): A retry object used + to retry requests. If ``None`` is specified, requests will not + be retried. + timeout (Optional[float]): The amount of time, in seconds, to wait + for the request to complete. Note that if ``retry`` is + specified, the timeout applies to each individual attempt. + metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata + that is provided to the method. + + Returns: + A :class:`~google.ads.googleads_v4.types.MutateExtensionFeedItemsResponse` instance. + + Raises: + google.api_core.exceptions.GoogleAPICallError: If the request + failed for any reason. + google.api_core.exceptions.RetryError: If the request failed due + to a retryable error and retry attempts failed. + ValueError: If the parameters are invalid. + """ + # Wrap the transport method to add retry and timeout logic. + if 'mutate_extension_feed_items' not in self._inner_api_calls: + self._inner_api_calls['mutate_extension_feed_items'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.mutate_extension_feed_items, + default_retry=self._method_configs['MutateExtensionFeedItems'].retry, + default_timeout=self._method_configs['MutateExtensionFeedItems'].timeout, + client_info=self._client_info, + ) + + request = extension_feed_item_service_pb2.MutateExtensionFeedItemsRequest( + customer_id=customer_id, + operations=operations, + partial_failure=partial_failure, + validate_only=validate_only, + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [('customer_id', customer_id)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata(routing_header) + metadata.append(routing_metadata) + + return self._inner_api_calls['mutate_extension_feed_items'](request, retry=retry, timeout=timeout, metadata=metadata) diff --git a/google/ads/google_ads/v4/services/extension_feed_item_service_client_config.py b/google/ads/google_ads/v4/services/extension_feed_item_service_client_config.py new file mode 100644 index 000000000..bcfa3ccec --- /dev/null +++ b/google/ads/google_ads/v4/services/extension_feed_item_service_client_config.py @@ -0,0 +1,36 @@ +config = { + "interfaces": { + "google.ads.googleads.v4.services.ExtensionFeedItemService": { + "retry_codes": { + "idempotent": [ + "DEADLINE_EXCEEDED", + "UNAVAILABLE" + ], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 5000, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 3600000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 3600000, + "total_timeout_millis": 3600000 + } + }, + "methods": { + "GetExtensionFeedItem": { + "timeout_millis": 60000, + "retry_codes_name": "idempotent", + "retry_params_name": "default" + }, + "MutateExtensionFeedItems": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + } + } + } + } +} diff --git a/google/ads/google_ads/v4/services/feed_item_service_client.py b/google/ads/google_ads/v4/services/feed_item_service_client.py new file mode 100644 index 000000000..43a0f0cca --- /dev/null +++ b/google/ads/google_ads/v4/services/feed_item_service_client.py @@ -0,0 +1,298 @@ +# -*- coding: utf-8 -*- +# +# 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. + +"""Accesses the google.ads.googleads.v4.services FeedItemService API.""" + +import pkg_resources +import warnings + +from google.oauth2 import service_account +import google.api_core.gapic_v1.client_info +import google.api_core.gapic_v1.config +import google.api_core.gapic_v1.method +import google.api_core.gapic_v1.routing_header +import google.api_core.grpc_helpers +import google.api_core.path_template + +from google.ads.google_ads.v4.services import feed_item_service_client_config +from google.ads.google_ads.v4.services.transports import feed_item_service_grpc_transport +from google.ads.google_ads.v4.proto.services import feed_item_service_pb2 + + + +_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( + 'google-ads', +).version + + +class FeedItemServiceClient(object): + """Service to manage feed items.""" + + SERVICE_ADDRESS = 'googleads.googleapis.com:443' + """The default address of the service.""" + + # The name of the interface for this client. This is the key used to + # find the method configuration in the client_config dictionary. + _INTERFACE_NAME = 'google.ads.googleads.v4.services.FeedItemService' + + + @classmethod + def from_service_account_file(cls, filename, *args, **kwargs): + """Creates an instance of this client using the provided credentials + file. + + Args: + filename (str): The path to the service account private key json + file. + args: Additional arguments to pass to the constructor. + kwargs: Additional arguments to pass to the constructor. + + Returns: + FeedItemServiceClient: The constructed client. + """ + credentials = service_account.Credentials.from_service_account_file( + filename) + kwargs['credentials'] = credentials + return cls(*args, **kwargs) + + from_service_account_json = from_service_account_file + + + @classmethod + def feed_item_path(cls, customer, feed_item): + """Return a fully-qualified feed_item string.""" + return google.api_core.path_template.expand( + 'customers/{customer}/feedItems/{feed_item}', + customer=customer, + feed_item=feed_item, + ) + + def __init__(self, transport=None, channel=None, credentials=None, + client_config=None, client_info=None): + """Constructor. + + Args: + transport (Union[~.FeedItemServiceGrpcTransport, + Callable[[~.Credentials, type], ~.FeedItemServiceGrpcTransport]): A transport + instance, responsible for actually making the API calls. + The default transport uses the gRPC protocol. + This argument may also be a callable which returns a + transport instance. Callables will be sent the credentials + as the first argument and the default transport class as + the second argument. + channel (grpc.Channel): DEPRECATED. A ``Channel`` instance + through which to make calls. This argument is mutually exclusive + with ``credentials``; providing both will raise an exception. + credentials (google.auth.credentials.Credentials): The + authorization credentials to attach to requests. These + credentials identify this application to the service. If none + are specified, the client will attempt to ascertain the + credentials from the environment. + This argument is mutually exclusive with providing a + transport instance to ``transport``; doing so will raise + an exception. + client_config (dict): DEPRECATED. A dictionary of call options for + each method. If not specified, the default configuration is used. + client_info (google.api_core.gapic_v1.client_info.ClientInfo): + The client info used to send a user-agent string along with + API requests. If ``None``, then default info will be used. + Generally, you only need to set this if you're developing + your own client library. + """ + # Raise deprecation warnings for things we want to go away. + if client_config is not None: + warnings.warn('The `client_config` argument is deprecated.', + PendingDeprecationWarning, stacklevel=2) + else: + client_config = feed_item_service_client_config.config + + if channel: + warnings.warn('The `channel` argument is deprecated; use ' + '`transport` instead.', + PendingDeprecationWarning, stacklevel=2) + + # Instantiate the transport. + # The transport is responsible for handling serialization and + # deserialization and actually sending data to the service. + if transport: + if callable(transport): + self.transport = transport( + credentials=credentials, + default_class=feed_item_service_grpc_transport.FeedItemServiceGrpcTransport, + ) + else: + if credentials: + raise ValueError( + 'Received both a transport instance and ' + 'credentials; these are mutually exclusive.' + ) + self.transport = transport + else: + self.transport = feed_item_service_grpc_transport.FeedItemServiceGrpcTransport( + address=self.SERVICE_ADDRESS, + channel=channel, + credentials=credentials, + ) + + if client_info is None: + client_info = google.api_core.gapic_v1.client_info.ClientInfo( + gapic_version=_GAPIC_LIBRARY_VERSION, + ) + else: + client_info.gapic_version = _GAPIC_LIBRARY_VERSION + self._client_info = client_info + + # Parse out the default settings for retry and timeout for each RPC + # from the client configuration. + # (Ordinarily, these are the defaults specified in the `*_config.py` + # file next to this one.) + self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( + client_config['interfaces'][self._INTERFACE_NAME], + ) + + # Save a dictionary of cached API call functions. + # These are the actual callables which invoke the proper + # transport methods, wrapped with `wrap_method` to add retry, + # timeout, and the like. + self._inner_api_calls = {} + + # Service calls + def get_feed_item( + self, + resource_name, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None): + """ + Returns the requested feed item in full detail. + + Args: + resource_name (str): Required. The resource name of the feed item to fetch. + retry (Optional[google.api_core.retry.Retry]): A retry object used + to retry requests. If ``None`` is specified, requests will not + be retried. + timeout (Optional[float]): The amount of time, in seconds, to wait + for the request to complete. Note that if ``retry`` is + specified, the timeout applies to each individual attempt. + metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata + that is provided to the method. + + Returns: + A :class:`~google.ads.googleads_v4.types.FeedItem` instance. + + Raises: + google.api_core.exceptions.GoogleAPICallError: If the request + failed for any reason. + google.api_core.exceptions.RetryError: If the request failed due + to a retryable error and retry attempts failed. + ValueError: If the parameters are invalid. + """ + # Wrap the transport method to add retry and timeout logic. + if 'get_feed_item' not in self._inner_api_calls: + self._inner_api_calls['get_feed_item'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.get_feed_item, + default_retry=self._method_configs['GetFeedItem'].retry, + default_timeout=self._method_configs['GetFeedItem'].timeout, + client_info=self._client_info, + ) + + request = feed_item_service_pb2.GetFeedItemRequest( + resource_name=resource_name, + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [('resource_name', resource_name)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata(routing_header) + metadata.append(routing_metadata) + + return self._inner_api_calls['get_feed_item'](request, retry=retry, timeout=timeout, metadata=metadata) + + def mutate_feed_items( + self, + customer_id, + operations, + partial_failure=None, + validate_only=None, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None): + """ + Creates, updates, or removes feed items. Operation statuses are + returned. + + Args: + customer_id (str): Required. The ID of the customer whose feed items are being modified. + operations (list[Union[dict, ~google.ads.googleads_v4.types.FeedItemOperation]]): Required. The list of operations to perform on individual feed items. + + If a dict is provided, it must be of the same form as the protobuf + message :class:`~google.ads.googleads_v4.types.FeedItemOperation` + partial_failure (bool): If true, successful operations will be carried out and invalid + operations will return errors. If false, all operations will be carried + out in one transaction if and only if they are all valid. + Default is false. + validate_only (bool): If true, the request is validated but not executed. Only errors are + returned, not results. + retry (Optional[google.api_core.retry.Retry]): A retry object used + to retry requests. If ``None`` is specified, requests will not + be retried. + timeout (Optional[float]): The amount of time, in seconds, to wait + for the request to complete. Note that if ``retry`` is + specified, the timeout applies to each individual attempt. + metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata + that is provided to the method. + + Returns: + A :class:`~google.ads.googleads_v4.types.MutateFeedItemsResponse` instance. + + Raises: + google.api_core.exceptions.GoogleAPICallError: If the request + failed for any reason. + google.api_core.exceptions.RetryError: If the request failed due + to a retryable error and retry attempts failed. + ValueError: If the parameters are invalid. + """ + # Wrap the transport method to add retry and timeout logic. + if 'mutate_feed_items' not in self._inner_api_calls: + self._inner_api_calls['mutate_feed_items'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.mutate_feed_items, + default_retry=self._method_configs['MutateFeedItems'].retry, + default_timeout=self._method_configs['MutateFeedItems'].timeout, + client_info=self._client_info, + ) + + request = feed_item_service_pb2.MutateFeedItemsRequest( + customer_id=customer_id, + operations=operations, + partial_failure=partial_failure, + validate_only=validate_only, + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [('customer_id', customer_id)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata(routing_header) + metadata.append(routing_metadata) + + return self._inner_api_calls['mutate_feed_items'](request, retry=retry, timeout=timeout, metadata=metadata) diff --git a/google/ads/google_ads/v4/services/feed_item_service_client_config.py b/google/ads/google_ads/v4/services/feed_item_service_client_config.py new file mode 100644 index 000000000..9b6868645 --- /dev/null +++ b/google/ads/google_ads/v4/services/feed_item_service_client_config.py @@ -0,0 +1,36 @@ +config = { + "interfaces": { + "google.ads.googleads.v4.services.FeedItemService": { + "retry_codes": { + "idempotent": [ + "DEADLINE_EXCEEDED", + "UNAVAILABLE" + ], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 5000, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 3600000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 3600000, + "total_timeout_millis": 3600000 + } + }, + "methods": { + "GetFeedItem": { + "timeout_millis": 60000, + "retry_codes_name": "idempotent", + "retry_params_name": "default" + }, + "MutateFeedItems": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + } + } + } + } +} diff --git a/google/ads/google_ads/v4/services/feed_item_target_service_client.py b/google/ads/google_ads/v4/services/feed_item_target_service_client.py new file mode 100644 index 000000000..eb5e6fbd6 --- /dev/null +++ b/google/ads/google_ads/v4/services/feed_item_target_service_client.py @@ -0,0 +1,287 @@ +# -*- coding: utf-8 -*- +# +# 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. + +"""Accesses the google.ads.googleads.v4.services FeedItemTargetService API.""" + +import pkg_resources +import warnings + +from google.oauth2 import service_account +import google.api_core.gapic_v1.client_info +import google.api_core.gapic_v1.config +import google.api_core.gapic_v1.method +import google.api_core.gapic_v1.routing_header +import google.api_core.grpc_helpers +import google.api_core.path_template + +from google.ads.google_ads.v4.services import feed_item_target_service_client_config +from google.ads.google_ads.v4.services.transports import feed_item_target_service_grpc_transport +from google.ads.google_ads.v4.proto.services import feed_item_target_service_pb2 + + + +_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( + 'google-ads', +).version + + +class FeedItemTargetServiceClient(object): + """Service to manage feed item targets.""" + + SERVICE_ADDRESS = 'googleads.googleapis.com:443' + """The default address of the service.""" + + # The name of the interface for this client. This is the key used to + # find the method configuration in the client_config dictionary. + _INTERFACE_NAME = 'google.ads.googleads.v4.services.FeedItemTargetService' + + + @classmethod + def from_service_account_file(cls, filename, *args, **kwargs): + """Creates an instance of this client using the provided credentials + file. + + Args: + filename (str): The path to the service account private key json + file. + args: Additional arguments to pass to the constructor. + kwargs: Additional arguments to pass to the constructor. + + Returns: + FeedItemTargetServiceClient: The constructed client. + """ + credentials = service_account.Credentials.from_service_account_file( + filename) + kwargs['credentials'] = credentials + return cls(*args, **kwargs) + + from_service_account_json = from_service_account_file + + + @classmethod + def feed_item_target_path(cls, customer, feed_item_target): + """Return a fully-qualified feed_item_target string.""" + return google.api_core.path_template.expand( + 'customers/{customer}/feedItemTargets/{feed_item_target}', + customer=customer, + feed_item_target=feed_item_target, + ) + + def __init__(self, transport=None, channel=None, credentials=None, + client_config=None, client_info=None): + """Constructor. + + Args: + transport (Union[~.FeedItemTargetServiceGrpcTransport, + Callable[[~.Credentials, type], ~.FeedItemTargetServiceGrpcTransport]): A transport + instance, responsible for actually making the API calls. + The default transport uses the gRPC protocol. + This argument may also be a callable which returns a + transport instance. Callables will be sent the credentials + as the first argument and the default transport class as + the second argument. + channel (grpc.Channel): DEPRECATED. A ``Channel`` instance + through which to make calls. This argument is mutually exclusive + with ``credentials``; providing both will raise an exception. + credentials (google.auth.credentials.Credentials): The + authorization credentials to attach to requests. These + credentials identify this application to the service. If none + are specified, the client will attempt to ascertain the + credentials from the environment. + This argument is mutually exclusive with providing a + transport instance to ``transport``; doing so will raise + an exception. + client_config (dict): DEPRECATED. A dictionary of call options for + each method. If not specified, the default configuration is used. + client_info (google.api_core.gapic_v1.client_info.ClientInfo): + The client info used to send a user-agent string along with + API requests. If ``None``, then default info will be used. + Generally, you only need to set this if you're developing + your own client library. + """ + # Raise deprecation warnings for things we want to go away. + if client_config is not None: + warnings.warn('The `client_config` argument is deprecated.', + PendingDeprecationWarning, stacklevel=2) + else: + client_config = feed_item_target_service_client_config.config + + if channel: + warnings.warn('The `channel` argument is deprecated; use ' + '`transport` instead.', + PendingDeprecationWarning, stacklevel=2) + + # Instantiate the transport. + # The transport is responsible for handling serialization and + # deserialization and actually sending data to the service. + if transport: + if callable(transport): + self.transport = transport( + credentials=credentials, + default_class=feed_item_target_service_grpc_transport.FeedItemTargetServiceGrpcTransport, + ) + else: + if credentials: + raise ValueError( + 'Received both a transport instance and ' + 'credentials; these are mutually exclusive.' + ) + self.transport = transport + else: + self.transport = feed_item_target_service_grpc_transport.FeedItemTargetServiceGrpcTransport( + address=self.SERVICE_ADDRESS, + channel=channel, + credentials=credentials, + ) + + if client_info is None: + client_info = google.api_core.gapic_v1.client_info.ClientInfo( + gapic_version=_GAPIC_LIBRARY_VERSION, + ) + else: + client_info.gapic_version = _GAPIC_LIBRARY_VERSION + self._client_info = client_info + + # Parse out the default settings for retry and timeout for each RPC + # from the client configuration. + # (Ordinarily, these are the defaults specified in the `*_config.py` + # file next to this one.) + self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( + client_config['interfaces'][self._INTERFACE_NAME], + ) + + # Save a dictionary of cached API call functions. + # These are the actual callables which invoke the proper + # transport methods, wrapped with `wrap_method` to add retry, + # timeout, and the like. + self._inner_api_calls = {} + + # Service calls + def get_feed_item_target( + self, + resource_name, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None): + """ + Returns the requested feed item targets in full detail. + + Args: + resource_name (str): Required. The resource name of the feed item targets to fetch. + retry (Optional[google.api_core.retry.Retry]): A retry object used + to retry requests. If ``None`` is specified, requests will not + be retried. + timeout (Optional[float]): The amount of time, in seconds, to wait + for the request to complete. Note that if ``retry`` is + specified, the timeout applies to each individual attempt. + metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata + that is provided to the method. + + Returns: + A :class:`~google.ads.googleads_v4.types.FeedItemTarget` instance. + + Raises: + google.api_core.exceptions.GoogleAPICallError: If the request + failed for any reason. + google.api_core.exceptions.RetryError: If the request failed due + to a retryable error and retry attempts failed. + ValueError: If the parameters are invalid. + """ + # Wrap the transport method to add retry and timeout logic. + if 'get_feed_item_target' not in self._inner_api_calls: + self._inner_api_calls['get_feed_item_target'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.get_feed_item_target, + default_retry=self._method_configs['GetFeedItemTarget'].retry, + default_timeout=self._method_configs['GetFeedItemTarget'].timeout, + client_info=self._client_info, + ) + + request = feed_item_target_service_pb2.GetFeedItemTargetRequest( + resource_name=resource_name, + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [('resource_name', resource_name)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata(routing_header) + metadata.append(routing_metadata) + + return self._inner_api_calls['get_feed_item_target'](request, retry=retry, timeout=timeout, metadata=metadata) + + def mutate_feed_item_targets( + self, + customer_id, + operations, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None): + """ + Creates or removes feed item targets. Operation statuses are returned. + + Args: + customer_id (str): Required. The ID of the customer whose feed item targets are being modified. + operations (list[Union[dict, ~google.ads.googleads_v4.types.FeedItemTargetOperation]]): Required. The list of operations to perform on individual feed item targets. + + If a dict is provided, it must be of the same form as the protobuf + message :class:`~google.ads.googleads_v4.types.FeedItemTargetOperation` + retry (Optional[google.api_core.retry.Retry]): A retry object used + to retry requests. If ``None`` is specified, requests will not + be retried. + timeout (Optional[float]): The amount of time, in seconds, to wait + for the request to complete. Note that if ``retry`` is + specified, the timeout applies to each individual attempt. + metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata + that is provided to the method. + + Returns: + A :class:`~google.ads.googleads_v4.types.MutateFeedItemTargetsResponse` instance. + + Raises: + google.api_core.exceptions.GoogleAPICallError: If the request + failed for any reason. + google.api_core.exceptions.RetryError: If the request failed due + to a retryable error and retry attempts failed. + ValueError: If the parameters are invalid. + """ + # Wrap the transport method to add retry and timeout logic. + if 'mutate_feed_item_targets' not in self._inner_api_calls: + self._inner_api_calls['mutate_feed_item_targets'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.mutate_feed_item_targets, + default_retry=self._method_configs['MutateFeedItemTargets'].retry, + default_timeout=self._method_configs['MutateFeedItemTargets'].timeout, + client_info=self._client_info, + ) + + request = feed_item_target_service_pb2.MutateFeedItemTargetsRequest( + customer_id=customer_id, + operations=operations, + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [('customer_id', customer_id)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata(routing_header) + metadata.append(routing_metadata) + + return self._inner_api_calls['mutate_feed_item_targets'](request, retry=retry, timeout=timeout, metadata=metadata) diff --git a/google/ads/google_ads/v4/services/feed_item_target_service_client_config.py b/google/ads/google_ads/v4/services/feed_item_target_service_client_config.py new file mode 100644 index 000000000..cfc9ae4b2 --- /dev/null +++ b/google/ads/google_ads/v4/services/feed_item_target_service_client_config.py @@ -0,0 +1,36 @@ +config = { + "interfaces": { + "google.ads.googleads.v4.services.FeedItemTargetService": { + "retry_codes": { + "idempotent": [ + "DEADLINE_EXCEEDED", + "UNAVAILABLE" + ], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 5000, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 3600000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 3600000, + "total_timeout_millis": 3600000 + } + }, + "methods": { + "GetFeedItemTarget": { + "timeout_millis": 60000, + "retry_codes_name": "idempotent", + "retry_params_name": "default" + }, + "MutateFeedItemTargets": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + } + } + } + } +} diff --git a/google/ads/google_ads/v4/services/feed_mapping_service_client.py b/google/ads/google_ads/v4/services/feed_mapping_service_client.py new file mode 100644 index 000000000..4d1f2471e --- /dev/null +++ b/google/ads/google_ads/v4/services/feed_mapping_service_client.py @@ -0,0 +1,298 @@ +# -*- coding: utf-8 -*- +# +# 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. + +"""Accesses the google.ads.googleads.v4.services FeedMappingService API.""" + +import pkg_resources +import warnings + +from google.oauth2 import service_account +import google.api_core.gapic_v1.client_info +import google.api_core.gapic_v1.config +import google.api_core.gapic_v1.method +import google.api_core.gapic_v1.routing_header +import google.api_core.grpc_helpers +import google.api_core.path_template + +from google.ads.google_ads.v4.services import feed_mapping_service_client_config +from google.ads.google_ads.v4.services.transports import feed_mapping_service_grpc_transport +from google.ads.google_ads.v4.proto.services import feed_mapping_service_pb2 + + + +_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( + 'google-ads', +).version + + +class FeedMappingServiceClient(object): + """Service to manage feed mappings.""" + + SERVICE_ADDRESS = 'googleads.googleapis.com:443' + """The default address of the service.""" + + # The name of the interface for this client. This is the key used to + # find the method configuration in the client_config dictionary. + _INTERFACE_NAME = 'google.ads.googleads.v4.services.FeedMappingService' + + + @classmethod + def from_service_account_file(cls, filename, *args, **kwargs): + """Creates an instance of this client using the provided credentials + file. + + Args: + filename (str): The path to the service account private key json + file. + args: Additional arguments to pass to the constructor. + kwargs: Additional arguments to pass to the constructor. + + Returns: + FeedMappingServiceClient: The constructed client. + """ + credentials = service_account.Credentials.from_service_account_file( + filename) + kwargs['credentials'] = credentials + return cls(*args, **kwargs) + + from_service_account_json = from_service_account_file + + + @classmethod + def feed_mapping_path(cls, customer, feed_mapping): + """Return a fully-qualified feed_mapping string.""" + return google.api_core.path_template.expand( + 'customers/{customer}/feedMappings/{feed_mapping}', + customer=customer, + feed_mapping=feed_mapping, + ) + + def __init__(self, transport=None, channel=None, credentials=None, + client_config=None, client_info=None): + """Constructor. + + Args: + transport (Union[~.FeedMappingServiceGrpcTransport, + Callable[[~.Credentials, type], ~.FeedMappingServiceGrpcTransport]): A transport + instance, responsible for actually making the API calls. + The default transport uses the gRPC protocol. + This argument may also be a callable which returns a + transport instance. Callables will be sent the credentials + as the first argument and the default transport class as + the second argument. + channel (grpc.Channel): DEPRECATED. A ``Channel`` instance + through which to make calls. This argument is mutually exclusive + with ``credentials``; providing both will raise an exception. + credentials (google.auth.credentials.Credentials): The + authorization credentials to attach to requests. These + credentials identify this application to the service. If none + are specified, the client will attempt to ascertain the + credentials from the environment. + This argument is mutually exclusive with providing a + transport instance to ``transport``; doing so will raise + an exception. + client_config (dict): DEPRECATED. A dictionary of call options for + each method. If not specified, the default configuration is used. + client_info (google.api_core.gapic_v1.client_info.ClientInfo): + The client info used to send a user-agent string along with + API requests. If ``None``, then default info will be used. + Generally, you only need to set this if you're developing + your own client library. + """ + # Raise deprecation warnings for things we want to go away. + if client_config is not None: + warnings.warn('The `client_config` argument is deprecated.', + PendingDeprecationWarning, stacklevel=2) + else: + client_config = feed_mapping_service_client_config.config + + if channel: + warnings.warn('The `channel` argument is deprecated; use ' + '`transport` instead.', + PendingDeprecationWarning, stacklevel=2) + + # Instantiate the transport. + # The transport is responsible for handling serialization and + # deserialization and actually sending data to the service. + if transport: + if callable(transport): + self.transport = transport( + credentials=credentials, + default_class=feed_mapping_service_grpc_transport.FeedMappingServiceGrpcTransport, + ) + else: + if credentials: + raise ValueError( + 'Received both a transport instance and ' + 'credentials; these are mutually exclusive.' + ) + self.transport = transport + else: + self.transport = feed_mapping_service_grpc_transport.FeedMappingServiceGrpcTransport( + address=self.SERVICE_ADDRESS, + channel=channel, + credentials=credentials, + ) + + if client_info is None: + client_info = google.api_core.gapic_v1.client_info.ClientInfo( + gapic_version=_GAPIC_LIBRARY_VERSION, + ) + else: + client_info.gapic_version = _GAPIC_LIBRARY_VERSION + self._client_info = client_info + + # Parse out the default settings for retry and timeout for each RPC + # from the client configuration. + # (Ordinarily, these are the defaults specified in the `*_config.py` + # file next to this one.) + self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( + client_config['interfaces'][self._INTERFACE_NAME], + ) + + # Save a dictionary of cached API call functions. + # These are the actual callables which invoke the proper + # transport methods, wrapped with `wrap_method` to add retry, + # timeout, and the like. + self._inner_api_calls = {} + + # Service calls + def get_feed_mapping( + self, + resource_name, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None): + """ + Returns the requested feed mapping in full detail. + + Args: + resource_name (str): Required. The resource name of the feed mapping to fetch. + retry (Optional[google.api_core.retry.Retry]): A retry object used + to retry requests. If ``None`` is specified, requests will not + be retried. + timeout (Optional[float]): The amount of time, in seconds, to wait + for the request to complete. Note that if ``retry`` is + specified, the timeout applies to each individual attempt. + metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata + that is provided to the method. + + Returns: + A :class:`~google.ads.googleads_v4.types.FeedMapping` instance. + + Raises: + google.api_core.exceptions.GoogleAPICallError: If the request + failed for any reason. + google.api_core.exceptions.RetryError: If the request failed due + to a retryable error and retry attempts failed. + ValueError: If the parameters are invalid. + """ + # Wrap the transport method to add retry and timeout logic. + if 'get_feed_mapping' not in self._inner_api_calls: + self._inner_api_calls['get_feed_mapping'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.get_feed_mapping, + default_retry=self._method_configs['GetFeedMapping'].retry, + default_timeout=self._method_configs['GetFeedMapping'].timeout, + client_info=self._client_info, + ) + + request = feed_mapping_service_pb2.GetFeedMappingRequest( + resource_name=resource_name, + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [('resource_name', resource_name)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata(routing_header) + metadata.append(routing_metadata) + + return self._inner_api_calls['get_feed_mapping'](request, retry=retry, timeout=timeout, metadata=metadata) + + def mutate_feed_mappings( + self, + customer_id, + operations, + partial_failure=None, + validate_only=None, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None): + """ + Creates or removes feed mappings. Operation statuses are + returned. + + Args: + customer_id (str): Required. The ID of the customer whose feed mappings are being modified. + operations (list[Union[dict, ~google.ads.googleads_v4.types.FeedMappingOperation]]): Required. The list of operations to perform on individual feed mappings. + + If a dict is provided, it must be of the same form as the protobuf + message :class:`~google.ads.googleads_v4.types.FeedMappingOperation` + partial_failure (bool): If true, successful operations will be carried out and invalid + operations will return errors. If false, all operations will be carried + out in one transaction if and only if they are all valid. + Default is false. + validate_only (bool): If true, the request is validated but not executed. Only errors are + returned, not results. + retry (Optional[google.api_core.retry.Retry]): A retry object used + to retry requests. If ``None`` is specified, requests will not + be retried. + timeout (Optional[float]): The amount of time, in seconds, to wait + for the request to complete. Note that if ``retry`` is + specified, the timeout applies to each individual attempt. + metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata + that is provided to the method. + + Returns: + A :class:`~google.ads.googleads_v4.types.MutateFeedMappingsResponse` instance. + + Raises: + google.api_core.exceptions.GoogleAPICallError: If the request + failed for any reason. + google.api_core.exceptions.RetryError: If the request failed due + to a retryable error and retry attempts failed. + ValueError: If the parameters are invalid. + """ + # Wrap the transport method to add retry and timeout logic. + if 'mutate_feed_mappings' not in self._inner_api_calls: + self._inner_api_calls['mutate_feed_mappings'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.mutate_feed_mappings, + default_retry=self._method_configs['MutateFeedMappings'].retry, + default_timeout=self._method_configs['MutateFeedMappings'].timeout, + client_info=self._client_info, + ) + + request = feed_mapping_service_pb2.MutateFeedMappingsRequest( + customer_id=customer_id, + operations=operations, + partial_failure=partial_failure, + validate_only=validate_only, + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [('customer_id', customer_id)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata(routing_header) + metadata.append(routing_metadata) + + return self._inner_api_calls['mutate_feed_mappings'](request, retry=retry, timeout=timeout, metadata=metadata) diff --git a/google/ads/google_ads/v4/services/feed_mapping_service_client_config.py b/google/ads/google_ads/v4/services/feed_mapping_service_client_config.py new file mode 100644 index 000000000..cefa19df6 --- /dev/null +++ b/google/ads/google_ads/v4/services/feed_mapping_service_client_config.py @@ -0,0 +1,36 @@ +config = { + "interfaces": { + "google.ads.googleads.v4.services.FeedMappingService": { + "retry_codes": { + "idempotent": [ + "DEADLINE_EXCEEDED", + "UNAVAILABLE" + ], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 5000, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 3600000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 3600000, + "total_timeout_millis": 3600000 + } + }, + "methods": { + "GetFeedMapping": { + "timeout_millis": 60000, + "retry_codes_name": "idempotent", + "retry_params_name": "default" + }, + "MutateFeedMappings": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + } + } + } + } +} diff --git a/google/ads/google_ads/v1/services/feed_placeholder_view_service_client.py b/google/ads/google_ads/v4/services/feed_placeholder_view_service_client.py similarity index 78% rename from google/ads/google_ads/v1/services/feed_placeholder_view_service_client.py rename to google/ads/google_ads/v4/services/feed_placeholder_view_service_client.py index 54e93d30d..bbee27bd1 100644 --- a/google/ads/google_ads/v1/services/feed_placeholder_view_service_client.py +++ b/google/ads/google_ads/v4/services/feed_placeholder_view_service_client.py @@ -13,7 +13,8 @@ # 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. -"""Accesses the google.ads.googleads.v1.services FeedPlaceholderViewService API.""" + +"""Accesses the google.ads.googleads.v4.services FeedPlaceholderViewService API.""" import pkg_resources import warnings @@ -22,15 +23,19 @@ import google.api_core.gapic_v1.client_info import google.api_core.gapic_v1.config import google.api_core.gapic_v1.method +import google.api_core.gapic_v1.routing_header import google.api_core.grpc_helpers import google.api_core.path_template -from google.ads.google_ads.v1.services import feed_placeholder_view_service_client_config -from google.ads.google_ads.v1.services.transports import feed_placeholder_view_service_grpc_transport -from google.ads.google_ads.v1.proto.services import feed_placeholder_view_service_pb2 +from google.ads.google_ads.v4.services import feed_placeholder_view_service_client_config +from google.ads.google_ads.v4.services.transports import feed_placeholder_view_service_grpc_transport +from google.ads.google_ads.v4.proto.services import feed_placeholder_view_service_pb2 + + _GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( - 'google-ads', ).version + 'google-ads', +).version class FeedPlaceholderViewServiceClient(object): @@ -41,7 +46,8 @@ class FeedPlaceholderViewServiceClient(object): # The name of the interface for this client. This is the key used to # find the method configuration in the client_config dictionary. - _INTERFACE_NAME = 'google.ads.googleads.v1.services.FeedPlaceholderViewService' + _INTERFACE_NAME = 'google.ads.googleads.v4.services.FeedPlaceholderViewService' + @classmethod def from_service_account_file(cls, filename, *args, **kwargs): @@ -64,6 +70,7 @@ def from_service_account_file(cls, filename, *args, **kwargs): from_service_account_json = from_service_account_file + @classmethod def feed_placeholder_view_path(cls, customer, feed_placeholder_view): """Return a fully-qualified feed_placeholder_view string.""" @@ -73,12 +80,8 @@ def feed_placeholder_view_path(cls, customer, feed_placeholder_view): feed_placeholder_view=feed_placeholder_view, ) - def __init__(self, - transport=None, - channel=None, - credentials=None, - client_config=None, - client_info=None): + def __init__(self, transport=None, channel=None, credentials=None, + client_config=None, client_info=None): """Constructor. Args: @@ -111,19 +114,15 @@ def __init__(self, """ # Raise deprecation warnings for things we want to go away. if client_config is not None: - warnings.warn( - 'The `client_config` argument is deprecated.', - PendingDeprecationWarning, - stacklevel=2) + warnings.warn('The `client_config` argument is deprecated.', + PendingDeprecationWarning, stacklevel=2) else: client_config = feed_placeholder_view_service_client_config.config if channel: - warnings.warn( - 'The `channel` argument is deprecated; use ' - '`transport` instead.', - PendingDeprecationWarning, - stacklevel=2) + warnings.warn('The `channel` argument is deprecated; use ' + '`transport` instead.', + PendingDeprecationWarning, stacklevel=2) # Instantiate the transport. # The transport is responsible for handling serialization and @@ -132,14 +131,14 @@ def __init__(self, if callable(transport): self.transport = transport( credentials=credentials, - default_class=feed_placeholder_view_service_grpc_transport. - FeedPlaceholderViewServiceGrpcTransport, + default_class=feed_placeholder_view_service_grpc_transport.FeedPlaceholderViewServiceGrpcTransport, ) else: if credentials: raise ValueError( 'Received both a transport instance and ' - 'credentials; these are mutually exclusive.') + 'credentials; these are mutually exclusive.' + ) self.transport = transport else: self.transport = feed_placeholder_view_service_grpc_transport.FeedPlaceholderViewServiceGrpcTransport( @@ -150,7 +149,8 @@ def __init__(self, if client_info is None: client_info = google.api_core.gapic_v1.client_info.ClientInfo( - gapic_version=_GAPIC_LIBRARY_VERSION, ) + gapic_version=_GAPIC_LIBRARY_VERSION, + ) else: client_info.gapic_version = _GAPIC_LIBRARY_VERSION self._client_info = client_info @@ -160,7 +160,8 @@ def __init__(self, # (Ordinarily, these are the defaults specified in the `*_config.py` # file next to this one.) self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( - client_config['interfaces'][self._INTERFACE_NAME], ) + client_config['interfaces'][self._INTERFACE_NAME], + ) # Save a dictionary of cached API call functions. # These are the actual callables which invoke the proper @@ -179,7 +180,7 @@ def get_feed_placeholder_view( Returns the requested feed placeholder view in full detail. Args: - resource_name (str): The resource name of the feed placeholder view to fetch. + resource_name (str): Required. The resource name of the feed placeholder view to fetch. retry (Optional[google.api_core.retry.Retry]): A retry object used to retry requests. If ``None`` is specified, requests will not be retried. @@ -190,7 +191,7 @@ def get_feed_placeholder_view( that is provided to the method. Returns: - A :class:`~google.ads.googleads_v1.types.FeedPlaceholderView` instance. + A :class:`~google.ads.googleads_v4.types.FeedPlaceholderView` instance. Raises: google.api_core.exceptions.GoogleAPICallError: If the request @@ -201,17 +202,25 @@ def get_feed_placeholder_view( """ # Wrap the transport method to add retry and timeout logic. if 'get_feed_placeholder_view' not in self._inner_api_calls: - self._inner_api_calls[ - 'get_feed_placeholder_view'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.get_feed_placeholder_view, - default_retry=self. - _method_configs['GetFeedPlaceholderView'].retry, - default_timeout=self. - _method_configs['GetFeedPlaceholderView'].timeout, - client_info=self._client_info, - ) + self._inner_api_calls['get_feed_placeholder_view'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.get_feed_placeholder_view, + default_retry=self._method_configs['GetFeedPlaceholderView'].retry, + default_timeout=self._method_configs['GetFeedPlaceholderView'].timeout, + client_info=self._client_info, + ) request = feed_placeholder_view_service_pb2.GetFeedPlaceholderViewRequest( - resource_name=resource_name, ) - return self._inner_api_calls['get_feed_placeholder_view']( - request, retry=retry, timeout=timeout, metadata=metadata) + resource_name=resource_name, + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [('resource_name', resource_name)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata(routing_header) + metadata.append(routing_metadata) + + return self._inner_api_calls['get_feed_placeholder_view'](request, retry=retry, timeout=timeout, metadata=metadata) diff --git a/google/ads/google_ads/v4/services/feed_placeholder_view_service_client_config.py b/google/ads/google_ads/v4/services/feed_placeholder_view_service_client_config.py new file mode 100644 index 000000000..269960ad4 --- /dev/null +++ b/google/ads/google_ads/v4/services/feed_placeholder_view_service_client_config.py @@ -0,0 +1,31 @@ +config = { + "interfaces": { + "google.ads.googleads.v4.services.FeedPlaceholderViewService": { + "retry_codes": { + "idempotent": [ + "DEADLINE_EXCEEDED", + "UNAVAILABLE" + ], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 5000, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 3600000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 3600000, + "total_timeout_millis": 3600000 + } + }, + "methods": { + "GetFeedPlaceholderView": { + "timeout_millis": 60000, + "retry_codes_name": "idempotent", + "retry_params_name": "default" + } + } + } + } +} diff --git a/google/ads/google_ads/v4/services/feed_service_client.py b/google/ads/google_ads/v4/services/feed_service_client.py new file mode 100644 index 000000000..0030085a0 --- /dev/null +++ b/google/ads/google_ads/v4/services/feed_service_client.py @@ -0,0 +1,298 @@ +# -*- coding: utf-8 -*- +# +# 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. + +"""Accesses the google.ads.googleads.v4.services FeedService API.""" + +import pkg_resources +import warnings + +from google.oauth2 import service_account +import google.api_core.gapic_v1.client_info +import google.api_core.gapic_v1.config +import google.api_core.gapic_v1.method +import google.api_core.gapic_v1.routing_header +import google.api_core.grpc_helpers +import google.api_core.path_template + +from google.ads.google_ads.v4.services import feed_service_client_config +from google.ads.google_ads.v4.services.transports import feed_service_grpc_transport +from google.ads.google_ads.v4.proto.services import feed_service_pb2 + + + +_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( + 'google-ads', +).version + + +class FeedServiceClient(object): + """Service to manage feeds.""" + + SERVICE_ADDRESS = 'googleads.googleapis.com:443' + """The default address of the service.""" + + # The name of the interface for this client. This is the key used to + # find the method configuration in the client_config dictionary. + _INTERFACE_NAME = 'google.ads.googleads.v4.services.FeedService' + + + @classmethod + def from_service_account_file(cls, filename, *args, **kwargs): + """Creates an instance of this client using the provided credentials + file. + + Args: + filename (str): The path to the service account private key json + file. + args: Additional arguments to pass to the constructor. + kwargs: Additional arguments to pass to the constructor. + + Returns: + FeedServiceClient: The constructed client. + """ + credentials = service_account.Credentials.from_service_account_file( + filename) + kwargs['credentials'] = credentials + return cls(*args, **kwargs) + + from_service_account_json = from_service_account_file + + + @classmethod + def feed_path(cls, customer, feed): + """Return a fully-qualified feed string.""" + return google.api_core.path_template.expand( + 'customers/{customer}/feeds/{feed}', + customer=customer, + feed=feed, + ) + + def __init__(self, transport=None, channel=None, credentials=None, + client_config=None, client_info=None): + """Constructor. + + Args: + transport (Union[~.FeedServiceGrpcTransport, + Callable[[~.Credentials, type], ~.FeedServiceGrpcTransport]): A transport + instance, responsible for actually making the API calls. + The default transport uses the gRPC protocol. + This argument may also be a callable which returns a + transport instance. Callables will be sent the credentials + as the first argument and the default transport class as + the second argument. + channel (grpc.Channel): DEPRECATED. A ``Channel`` instance + through which to make calls. This argument is mutually exclusive + with ``credentials``; providing both will raise an exception. + credentials (google.auth.credentials.Credentials): The + authorization credentials to attach to requests. These + credentials identify this application to the service. If none + are specified, the client will attempt to ascertain the + credentials from the environment. + This argument is mutually exclusive with providing a + transport instance to ``transport``; doing so will raise + an exception. + client_config (dict): DEPRECATED. A dictionary of call options for + each method. If not specified, the default configuration is used. + client_info (google.api_core.gapic_v1.client_info.ClientInfo): + The client info used to send a user-agent string along with + API requests. If ``None``, then default info will be used. + Generally, you only need to set this if you're developing + your own client library. + """ + # Raise deprecation warnings for things we want to go away. + if client_config is not None: + warnings.warn('The `client_config` argument is deprecated.', + PendingDeprecationWarning, stacklevel=2) + else: + client_config = feed_service_client_config.config + + if channel: + warnings.warn('The `channel` argument is deprecated; use ' + '`transport` instead.', + PendingDeprecationWarning, stacklevel=2) + + # Instantiate the transport. + # The transport is responsible for handling serialization and + # deserialization and actually sending data to the service. + if transport: + if callable(transport): + self.transport = transport( + credentials=credentials, + default_class=feed_service_grpc_transport.FeedServiceGrpcTransport, + ) + else: + if credentials: + raise ValueError( + 'Received both a transport instance and ' + 'credentials; these are mutually exclusive.' + ) + self.transport = transport + else: + self.transport = feed_service_grpc_transport.FeedServiceGrpcTransport( + address=self.SERVICE_ADDRESS, + channel=channel, + credentials=credentials, + ) + + if client_info is None: + client_info = google.api_core.gapic_v1.client_info.ClientInfo( + gapic_version=_GAPIC_LIBRARY_VERSION, + ) + else: + client_info.gapic_version = _GAPIC_LIBRARY_VERSION + self._client_info = client_info + + # Parse out the default settings for retry and timeout for each RPC + # from the client configuration. + # (Ordinarily, these are the defaults specified in the `*_config.py` + # file next to this one.) + self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( + client_config['interfaces'][self._INTERFACE_NAME], + ) + + # Save a dictionary of cached API call functions. + # These are the actual callables which invoke the proper + # transport methods, wrapped with `wrap_method` to add retry, + # timeout, and the like. + self._inner_api_calls = {} + + # Service calls + def get_feed( + self, + resource_name, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None): + """ + Returns the requested feed in full detail. + + Args: + resource_name (str): Required. The resource name of the feed to fetch. + retry (Optional[google.api_core.retry.Retry]): A retry object used + to retry requests. If ``None`` is specified, requests will not + be retried. + timeout (Optional[float]): The amount of time, in seconds, to wait + for the request to complete. Note that if ``retry`` is + specified, the timeout applies to each individual attempt. + metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata + that is provided to the method. + + Returns: + A :class:`~google.ads.googleads_v4.types.Feed` instance. + + Raises: + google.api_core.exceptions.GoogleAPICallError: If the request + failed for any reason. + google.api_core.exceptions.RetryError: If the request failed due + to a retryable error and retry attempts failed. + ValueError: If the parameters are invalid. + """ + # Wrap the transport method to add retry and timeout logic. + if 'get_feed' not in self._inner_api_calls: + self._inner_api_calls['get_feed'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.get_feed, + default_retry=self._method_configs['GetFeed'].retry, + default_timeout=self._method_configs['GetFeed'].timeout, + client_info=self._client_info, + ) + + request = feed_service_pb2.GetFeedRequest( + resource_name=resource_name, + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [('resource_name', resource_name)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata(routing_header) + metadata.append(routing_metadata) + + return self._inner_api_calls['get_feed'](request, retry=retry, timeout=timeout, metadata=metadata) + + def mutate_feeds( + self, + customer_id, + operations, + partial_failure=None, + validate_only=None, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None): + """ + Creates, updates, or removes feeds. Operation statuses are + returned. + + Args: + customer_id (str): Required. The ID of the customer whose feeds are being modified. + operations (list[Union[dict, ~google.ads.googleads_v4.types.FeedOperation]]): Required. The list of operations to perform on individual feeds. + + If a dict is provided, it must be of the same form as the protobuf + message :class:`~google.ads.googleads_v4.types.FeedOperation` + partial_failure (bool): If true, successful operations will be carried out and invalid + operations will return errors. If false, all operations will be carried + out in one transaction if and only if they are all valid. + Default is false. + validate_only (bool): If true, the request is validated but not executed. Only errors are + returned, not results. + retry (Optional[google.api_core.retry.Retry]): A retry object used + to retry requests. If ``None`` is specified, requests will not + be retried. + timeout (Optional[float]): The amount of time, in seconds, to wait + for the request to complete. Note that if ``retry`` is + specified, the timeout applies to each individual attempt. + metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata + that is provided to the method. + + Returns: + A :class:`~google.ads.googleads_v4.types.MutateFeedsResponse` instance. + + Raises: + google.api_core.exceptions.GoogleAPICallError: If the request + failed for any reason. + google.api_core.exceptions.RetryError: If the request failed due + to a retryable error and retry attempts failed. + ValueError: If the parameters are invalid. + """ + # Wrap the transport method to add retry and timeout logic. + if 'mutate_feeds' not in self._inner_api_calls: + self._inner_api_calls['mutate_feeds'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.mutate_feeds, + default_retry=self._method_configs['MutateFeeds'].retry, + default_timeout=self._method_configs['MutateFeeds'].timeout, + client_info=self._client_info, + ) + + request = feed_service_pb2.MutateFeedsRequest( + customer_id=customer_id, + operations=operations, + partial_failure=partial_failure, + validate_only=validate_only, + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [('customer_id', customer_id)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata(routing_header) + metadata.append(routing_metadata) + + return self._inner_api_calls['mutate_feeds'](request, retry=retry, timeout=timeout, metadata=metadata) diff --git a/google/ads/google_ads/v4/services/feed_service_client_config.py b/google/ads/google_ads/v4/services/feed_service_client_config.py new file mode 100644 index 000000000..2716e61ef --- /dev/null +++ b/google/ads/google_ads/v4/services/feed_service_client_config.py @@ -0,0 +1,36 @@ +config = { + "interfaces": { + "google.ads.googleads.v4.services.FeedService": { + "retry_codes": { + "idempotent": [ + "DEADLINE_EXCEEDED", + "UNAVAILABLE" + ], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 5000, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 3600000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 3600000, + "total_timeout_millis": 3600000 + } + }, + "methods": { + "GetFeed": { + "timeout_millis": 60000, + "retry_codes_name": "idempotent", + "retry_params_name": "default" + }, + "MutateFeeds": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + } + } + } + } +} diff --git a/google/ads/google_ads/v1/services/gender_view_service_client.py b/google/ads/google_ads/v4/services/gender_view_service_client.py similarity index 76% rename from google/ads/google_ads/v1/services/gender_view_service_client.py rename to google/ads/google_ads/v4/services/gender_view_service_client.py index ea467f063..ff720616e 100644 --- a/google/ads/google_ads/v1/services/gender_view_service_client.py +++ b/google/ads/google_ads/v4/services/gender_view_service_client.py @@ -13,7 +13,8 @@ # 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. -"""Accesses the google.ads.googleads.v1.services GenderViewService API.""" + +"""Accesses the google.ads.googleads.v4.services GenderViewService API.""" import pkg_resources import warnings @@ -22,15 +23,19 @@ import google.api_core.gapic_v1.client_info import google.api_core.gapic_v1.config import google.api_core.gapic_v1.method +import google.api_core.gapic_v1.routing_header import google.api_core.grpc_helpers import google.api_core.path_template -from google.ads.google_ads.v1.services import gender_view_service_client_config -from google.ads.google_ads.v1.services.transports import gender_view_service_grpc_transport -from google.ads.google_ads.v1.proto.services import gender_view_service_pb2 +from google.ads.google_ads.v4.services import gender_view_service_client_config +from google.ads.google_ads.v4.services.transports import gender_view_service_grpc_transport +from google.ads.google_ads.v4.proto.services import gender_view_service_pb2 + + _GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( - 'google-ads', ).version + 'google-ads', +).version class GenderViewServiceClient(object): @@ -41,7 +46,8 @@ class GenderViewServiceClient(object): # The name of the interface for this client. This is the key used to # find the method configuration in the client_config dictionary. - _INTERFACE_NAME = 'google.ads.googleads.v1.services.GenderViewService' + _INTERFACE_NAME = 'google.ads.googleads.v4.services.GenderViewService' + @classmethod def from_service_account_file(cls, filename, *args, **kwargs): @@ -64,6 +70,7 @@ def from_service_account_file(cls, filename, *args, **kwargs): from_service_account_json = from_service_account_file + @classmethod def gender_view_path(cls, customer, gender_view): """Return a fully-qualified gender_view string.""" @@ -73,12 +80,8 @@ def gender_view_path(cls, customer, gender_view): gender_view=gender_view, ) - def __init__(self, - transport=None, - channel=None, - credentials=None, - client_config=None, - client_info=None): + def __init__(self, transport=None, channel=None, credentials=None, + client_config=None, client_info=None): """Constructor. Args: @@ -111,19 +114,15 @@ def __init__(self, """ # Raise deprecation warnings for things we want to go away. if client_config is not None: - warnings.warn( - 'The `client_config` argument is deprecated.', - PendingDeprecationWarning, - stacklevel=2) + warnings.warn('The `client_config` argument is deprecated.', + PendingDeprecationWarning, stacklevel=2) else: client_config = gender_view_service_client_config.config if channel: - warnings.warn( - 'The `channel` argument is deprecated; use ' - '`transport` instead.', - PendingDeprecationWarning, - stacklevel=2) + warnings.warn('The `channel` argument is deprecated; use ' + '`transport` instead.', + PendingDeprecationWarning, stacklevel=2) # Instantiate the transport. # The transport is responsible for handling serialization and @@ -132,14 +131,14 @@ def __init__(self, if callable(transport): self.transport = transport( credentials=credentials, - default_class=gender_view_service_grpc_transport. - GenderViewServiceGrpcTransport, + default_class=gender_view_service_grpc_transport.GenderViewServiceGrpcTransport, ) else: if credentials: raise ValueError( 'Received both a transport instance and ' - 'credentials; these are mutually exclusive.') + 'credentials; these are mutually exclusive.' + ) self.transport = transport else: self.transport = gender_view_service_grpc_transport.GenderViewServiceGrpcTransport( @@ -150,7 +149,8 @@ def __init__(self, if client_info is None: client_info = google.api_core.gapic_v1.client_info.ClientInfo( - gapic_version=_GAPIC_LIBRARY_VERSION, ) + gapic_version=_GAPIC_LIBRARY_VERSION, + ) else: client_info.gapic_version = _GAPIC_LIBRARY_VERSION self._client_info = client_info @@ -160,7 +160,8 @@ def __init__(self, # (Ordinarily, these are the defaults specified in the `*_config.py` # file next to this one.) self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( - client_config['interfaces'][self._INTERFACE_NAME], ) + client_config['interfaces'][self._INTERFACE_NAME], + ) # Save a dictionary of cached API call functions. # These are the actual callables which invoke the proper @@ -169,16 +170,17 @@ def __init__(self, self._inner_api_calls = {} # Service calls - def get_gender_view(self, - resource_name, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): + def get_gender_view( + self, + resource_name, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None): """ Returns the requested gender view in full detail. Args: - resource_name (str): The resource name of the gender view to fetch. + resource_name (str): Required. The resource name of the gender view to fetch. retry (Optional[google.api_core.retry.Retry]): A retry object used to retry requests. If ``None`` is specified, requests will not be retried. @@ -189,7 +191,7 @@ def get_gender_view(self, that is provided to the method. Returns: - A :class:`~google.ads.googleads_v1.types.GenderView` instance. + A :class:`~google.ads.googleads_v4.types.GenderView` instance. Raises: google.api_core.exceptions.GoogleAPICallError: If the request @@ -200,16 +202,25 @@ def get_gender_view(self, """ # Wrap the transport method to add retry and timeout logic. if 'get_gender_view' not in self._inner_api_calls: - self._inner_api_calls[ - 'get_gender_view'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.get_gender_view, - default_retry=self._method_configs['GetGenderView'].retry, - default_timeout=self._method_configs['GetGenderView']. - timeout, - client_info=self._client_info, - ) + self._inner_api_calls['get_gender_view'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.get_gender_view, + default_retry=self._method_configs['GetGenderView'].retry, + default_timeout=self._method_configs['GetGenderView'].timeout, + client_info=self._client_info, + ) request = gender_view_service_pb2.GetGenderViewRequest( - resource_name=resource_name, ) - return self._inner_api_calls['get_gender_view']( - request, retry=retry, timeout=timeout, metadata=metadata) + resource_name=resource_name, + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [('resource_name', resource_name)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata(routing_header) + metadata.append(routing_metadata) + + return self._inner_api_calls['get_gender_view'](request, retry=retry, timeout=timeout, metadata=metadata) diff --git a/google/ads/google_ads/v4/services/gender_view_service_client_config.py b/google/ads/google_ads/v4/services/gender_view_service_client_config.py new file mode 100644 index 000000000..f10205625 --- /dev/null +++ b/google/ads/google_ads/v4/services/gender_view_service_client_config.py @@ -0,0 +1,31 @@ +config = { + "interfaces": { + "google.ads.googleads.v4.services.GenderViewService": { + "retry_codes": { + "idempotent": [ + "DEADLINE_EXCEEDED", + "UNAVAILABLE" + ], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 5000, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 3600000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 3600000, + "total_timeout_millis": 3600000 + } + }, + "methods": { + "GetGenderView": { + "timeout_millis": 60000, + "retry_codes_name": "idempotent", + "retry_params_name": "default" + } + } + } + } +} diff --git a/google/ads/google_ads/v1/services/geo_target_constant_service_client.py b/google/ads/google_ads/v4/services/geo_target_constant_service_client.py similarity index 77% rename from google/ads/google_ads/v1/services/geo_target_constant_service_client.py rename to google/ads/google_ads/v4/services/geo_target_constant_service_client.py index 0628bfeeb..be4fe7f11 100644 --- a/google/ads/google_ads/v1/services/geo_target_constant_service_client.py +++ b/google/ads/google_ads/v4/services/geo_target_constant_service_client.py @@ -13,7 +13,8 @@ # 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. -"""Accesses the google.ads.googleads.v1.services GeoTargetConstantService API.""" + +"""Accesses the google.ads.googleads.v4.services GeoTargetConstantService API.""" import pkg_resources import warnings @@ -22,16 +23,20 @@ import google.api_core.gapic_v1.client_info import google.api_core.gapic_v1.config import google.api_core.gapic_v1.method +import google.api_core.gapic_v1.routing_header import google.api_core.grpc_helpers import google.api_core.path_template import google.api_core.protobuf_helpers -from google.ads.google_ads.v1.services import geo_target_constant_service_client_config -from google.ads.google_ads.v1.services.transports import geo_target_constant_service_grpc_transport -from google.ads.google_ads.v1.proto.services import geo_target_constant_service_pb2 +from google.ads.google_ads.v4.services import geo_target_constant_service_client_config +from google.ads.google_ads.v4.services.transports import geo_target_constant_service_grpc_transport +from google.ads.google_ads.v4.proto.services import geo_target_constant_service_pb2 + + _GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( - 'google-ads', ).version + 'google-ads', +).version class GeoTargetConstantServiceClient(object): @@ -42,7 +47,8 @@ class GeoTargetConstantServiceClient(object): # The name of the interface for this client. This is the key used to # find the method configuration in the client_config dictionary. - _INTERFACE_NAME = 'google.ads.googleads.v1.services.GeoTargetConstantService' + _INTERFACE_NAME = 'google.ads.googleads.v4.services.GeoTargetConstantService' + @classmethod def from_service_account_file(cls, filename, *args, **kwargs): @@ -65,6 +71,7 @@ def from_service_account_file(cls, filename, *args, **kwargs): from_service_account_json = from_service_account_file + @classmethod def geo_target_constant_path(cls, geo_target_constant): """Return a fully-qualified geo_target_constant string.""" @@ -73,12 +80,8 @@ def geo_target_constant_path(cls, geo_target_constant): geo_target_constant=geo_target_constant, ) - def __init__(self, - transport=None, - channel=None, - credentials=None, - client_config=None, - client_info=None): + def __init__(self, transport=None, channel=None, credentials=None, + client_config=None, client_info=None): """Constructor. Args: @@ -111,19 +114,15 @@ def __init__(self, """ # Raise deprecation warnings for things we want to go away. if client_config is not None: - warnings.warn( - 'The `client_config` argument is deprecated.', - PendingDeprecationWarning, - stacklevel=2) + warnings.warn('The `client_config` argument is deprecated.', + PendingDeprecationWarning, stacklevel=2) else: client_config = geo_target_constant_service_client_config.config if channel: - warnings.warn( - 'The `channel` argument is deprecated; use ' - '`transport` instead.', - PendingDeprecationWarning, - stacklevel=2) + warnings.warn('The `channel` argument is deprecated; use ' + '`transport` instead.', + PendingDeprecationWarning, stacklevel=2) # Instantiate the transport. # The transport is responsible for handling serialization and @@ -132,14 +131,14 @@ def __init__(self, if callable(transport): self.transport = transport( credentials=credentials, - default_class=geo_target_constant_service_grpc_transport. - GeoTargetConstantServiceGrpcTransport, + default_class=geo_target_constant_service_grpc_transport.GeoTargetConstantServiceGrpcTransport, ) else: if credentials: raise ValueError( 'Received both a transport instance and ' - 'credentials; these are mutually exclusive.') + 'credentials; these are mutually exclusive.' + ) self.transport = transport else: self.transport = geo_target_constant_service_grpc_transport.GeoTargetConstantServiceGrpcTransport( @@ -150,7 +149,8 @@ def __init__(self, if client_info is None: client_info = google.api_core.gapic_v1.client_info.ClientInfo( - gapic_version=_GAPIC_LIBRARY_VERSION, ) + gapic_version=_GAPIC_LIBRARY_VERSION, + ) else: client_info.gapic_version = _GAPIC_LIBRARY_VERSION self._client_info = client_info @@ -160,7 +160,8 @@ def __init__(self, # (Ordinarily, these are the defaults specified in the `*_config.py` # file next to this one.) self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( - client_config['interfaces'][self._INTERFACE_NAME], ) + client_config['interfaces'][self._INTERFACE_NAME], + ) # Save a dictionary of cached API call functions. # These are the actual callables which invoke the proper @@ -179,7 +180,7 @@ def get_geo_target_constant( Returns the requested geo target constant in full detail. Args: - resource_name (str): The resource name of the geo target constant to fetch. + resource_name (str): Required. The resource name of the geo target constant to fetch. retry (Optional[google.api_core.retry.Retry]): A retry object used to retry requests. If ``None`` is specified, requests will not be retried. @@ -190,7 +191,7 @@ def get_geo_target_constant( that is provided to the method. Returns: - A :class:`~google.ads.googleads_v1.types.GeoTargetConstant` instance. + A :class:`~google.ads.googleads_v4.types.GeoTargetConstant` instance. Raises: google.api_core.exceptions.GoogleAPICallError: If the request @@ -201,20 +202,28 @@ def get_geo_target_constant( """ # Wrap the transport method to add retry and timeout logic. if 'get_geo_target_constant' not in self._inner_api_calls: - self._inner_api_calls[ - 'get_geo_target_constant'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.get_geo_target_constant, - default_retry=self._method_configs['GetGeoTargetConstant']. - retry, - default_timeout=self. - _method_configs['GetGeoTargetConstant'].timeout, - client_info=self._client_info, - ) + self._inner_api_calls['get_geo_target_constant'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.get_geo_target_constant, + default_retry=self._method_configs['GetGeoTargetConstant'].retry, + default_timeout=self._method_configs['GetGeoTargetConstant'].timeout, + client_info=self._client_info, + ) request = geo_target_constant_service_pb2.GetGeoTargetConstantRequest( - resource_name=resource_name, ) - return self._inner_api_calls['get_geo_target_constant']( - request, retry=retry, timeout=timeout, metadata=metadata) + resource_name=resource_name, + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [('resource_name', resource_name)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata(routing_header) + metadata.append(routing_metadata) + + return self._inner_api_calls['get_geo_target_constant'](request, retry=retry, timeout=timeout, metadata=metadata) def suggest_geo_target_constants( self, @@ -229,24 +238,24 @@ def suggest_geo_target_constants( Returns GeoTargetConstant suggestions by location name or by resource name. Args: - locale (Union[dict, ~google.ads.googleads_v1.types.StringValue]): If possible, returned geo targets are translated using this locale. If not, + locale (Union[dict, ~google.ads.googleads_v4.types.StringValue]): If possible, returned geo targets are translated using this locale. If not, en is used by default. This is also used as a hint for returned geo targets. If a dict is provided, it must be of the same form as the protobuf - message :class:`~google.ads.googleads_v1.types.StringValue` - country_code (Union[dict, ~google.ads.googleads_v1.types.StringValue]): Returned geo targets are restricted to this country code. + message :class:`~google.ads.googleads_v4.types.StringValue` + country_code (Union[dict, ~google.ads.googleads_v4.types.StringValue]): Returned geo targets are restricted to this country code. If a dict is provided, it must be of the same form as the protobuf - message :class:`~google.ads.googleads_v1.types.StringValue` - location_names (Union[dict, ~google.ads.googleads_v1.types.LocationNames]): The location names to search by. At most 25 names can be set. + message :class:`~google.ads.googleads_v4.types.StringValue` + location_names (Union[dict, ~google.ads.googleads_v4.types.LocationNames]): The location names to search by. At most 25 names can be set. If a dict is provided, it must be of the same form as the protobuf - message :class:`~google.ads.googleads_v1.types.LocationNames` - geo_targets (Union[dict, ~google.ads.googleads_v1.types.GeoTargets]): The geo target constant resource names to filter by. + message :class:`~google.ads.googleads_v4.types.LocationNames` + geo_targets (Union[dict, ~google.ads.googleads_v4.types.GeoTargets]): The geo target constant resource names to filter by. If a dict is provided, it must be of the same form as the protobuf - message :class:`~google.ads.googleads_v1.types.GeoTargets` + message :class:`~google.ads.googleads_v4.types.GeoTargets` retry (Optional[google.api_core.retry.Retry]): A retry object used to retry requests. If ``None`` is specified, requests will not be retried. @@ -257,7 +266,7 @@ def suggest_geo_target_constants( that is provided to the method. Returns: - A :class:`~google.ads.googleads_v1.types.SuggestGeoTargetConstantsResponse` instance. + A :class:`~google.ads.googleads_v4.types.SuggestGeoTargetConstantsResponse` instance. Raises: google.api_core.exceptions.GoogleAPICallError: If the request @@ -268,15 +277,12 @@ def suggest_geo_target_constants( """ # Wrap the transport method to add retry and timeout logic. if 'suggest_geo_target_constants' not in self._inner_api_calls: - self._inner_api_calls[ - 'suggest_geo_target_constants'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.suggest_geo_target_constants, - default_retry=self. - _method_configs['SuggestGeoTargetConstants'].retry, - default_timeout=self. - _method_configs['SuggestGeoTargetConstants'].timeout, - client_info=self._client_info, - ) + self._inner_api_calls['suggest_geo_target_constants'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.suggest_geo_target_constants, + default_retry=self._method_configs['SuggestGeoTargetConstants'].retry, + default_timeout=self._method_configs['SuggestGeoTargetConstants'].timeout, + client_info=self._client_info, + ) # Sanity check: We have some fields which are mutually exclusive; # raise ValueError if more than one is sent. @@ -291,5 +297,4 @@ def suggest_geo_target_constants( location_names=location_names, geo_targets=geo_targets, ) - return self._inner_api_calls['suggest_geo_target_constants']( - request, retry=retry, timeout=timeout, metadata=metadata) + return self._inner_api_calls['suggest_geo_target_constants'](request, retry=retry, timeout=timeout, metadata=metadata) diff --git a/google/ads/google_ads/v4/services/geo_target_constant_service_client_config.py b/google/ads/google_ads/v4/services/geo_target_constant_service_client_config.py new file mode 100644 index 000000000..ab086f807 --- /dev/null +++ b/google/ads/google_ads/v4/services/geo_target_constant_service_client_config.py @@ -0,0 +1,36 @@ +config = { + "interfaces": { + "google.ads.googleads.v4.services.GeoTargetConstantService": { + "retry_codes": { + "idempotent": [ + "DEADLINE_EXCEEDED", + "UNAVAILABLE" + ], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 5000, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 3600000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 3600000, + "total_timeout_millis": 3600000 + } + }, + "methods": { + "GetGeoTargetConstant": { + "timeout_millis": 60000, + "retry_codes_name": "idempotent", + "retry_params_name": "default" + }, + "SuggestGeoTargetConstants": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + } + } + } + } +} diff --git a/google/ads/google_ads/v1/services/geographic_view_service_client.py b/google/ads/google_ads/v4/services/geographic_view_service_client.py similarity index 75% rename from google/ads/google_ads/v1/services/geographic_view_service_client.py rename to google/ads/google_ads/v4/services/geographic_view_service_client.py index 3430150a7..ea674fdda 100644 --- a/google/ads/google_ads/v1/services/geographic_view_service_client.py +++ b/google/ads/google_ads/v4/services/geographic_view_service_client.py @@ -13,7 +13,8 @@ # 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. -"""Accesses the google.ads.googleads.v1.services GeographicViewService API.""" + +"""Accesses the google.ads.googleads.v4.services GeographicViewService API.""" import pkg_resources import warnings @@ -22,15 +23,19 @@ import google.api_core.gapic_v1.client_info import google.api_core.gapic_v1.config import google.api_core.gapic_v1.method +import google.api_core.gapic_v1.routing_header import google.api_core.grpc_helpers import google.api_core.path_template -from google.ads.google_ads.v1.services import geographic_view_service_client_config -from google.ads.google_ads.v1.services.transports import geographic_view_service_grpc_transport -from google.ads.google_ads.v1.proto.services import geographic_view_service_pb2 +from google.ads.google_ads.v4.services import geographic_view_service_client_config +from google.ads.google_ads.v4.services.transports import geographic_view_service_grpc_transport +from google.ads.google_ads.v4.proto.services import geographic_view_service_pb2 + + _GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( - 'google-ads', ).version + 'google-ads', +).version class GeographicViewServiceClient(object): @@ -41,7 +46,8 @@ class GeographicViewServiceClient(object): # The name of the interface for this client. This is the key used to # find the method configuration in the client_config dictionary. - _INTERFACE_NAME = 'google.ads.googleads.v1.services.GeographicViewService' + _INTERFACE_NAME = 'google.ads.googleads.v4.services.GeographicViewService' + @classmethod def from_service_account_file(cls, filename, *args, **kwargs): @@ -64,6 +70,7 @@ def from_service_account_file(cls, filename, *args, **kwargs): from_service_account_json = from_service_account_file + @classmethod def geographic_view_path(cls, customer, geographic_view): """Return a fully-qualified geographic_view string.""" @@ -73,12 +80,8 @@ def geographic_view_path(cls, customer, geographic_view): geographic_view=geographic_view, ) - def __init__(self, - transport=None, - channel=None, - credentials=None, - client_config=None, - client_info=None): + def __init__(self, transport=None, channel=None, credentials=None, + client_config=None, client_info=None): """Constructor. Args: @@ -111,19 +114,15 @@ def __init__(self, """ # Raise deprecation warnings for things we want to go away. if client_config is not None: - warnings.warn( - 'The `client_config` argument is deprecated.', - PendingDeprecationWarning, - stacklevel=2) + warnings.warn('The `client_config` argument is deprecated.', + PendingDeprecationWarning, stacklevel=2) else: client_config = geographic_view_service_client_config.config if channel: - warnings.warn( - 'The `channel` argument is deprecated; use ' - '`transport` instead.', - PendingDeprecationWarning, - stacklevel=2) + warnings.warn('The `channel` argument is deprecated; use ' + '`transport` instead.', + PendingDeprecationWarning, stacklevel=2) # Instantiate the transport. # The transport is responsible for handling serialization and @@ -132,14 +131,14 @@ def __init__(self, if callable(transport): self.transport = transport( credentials=credentials, - default_class=geographic_view_service_grpc_transport. - GeographicViewServiceGrpcTransport, + default_class=geographic_view_service_grpc_transport.GeographicViewServiceGrpcTransport, ) else: if credentials: raise ValueError( 'Received both a transport instance and ' - 'credentials; these are mutually exclusive.') + 'credentials; these are mutually exclusive.' + ) self.transport = transport else: self.transport = geographic_view_service_grpc_transport.GeographicViewServiceGrpcTransport( @@ -150,7 +149,8 @@ def __init__(self, if client_info is None: client_info = google.api_core.gapic_v1.client_info.ClientInfo( - gapic_version=_GAPIC_LIBRARY_VERSION, ) + gapic_version=_GAPIC_LIBRARY_VERSION, + ) else: client_info.gapic_version = _GAPIC_LIBRARY_VERSION self._client_info = client_info @@ -160,7 +160,8 @@ def __init__(self, # (Ordinarily, these are the defaults specified in the `*_config.py` # file next to this one.) self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( - client_config['interfaces'][self._INTERFACE_NAME], ) + client_config['interfaces'][self._INTERFACE_NAME], + ) # Save a dictionary of cached API call functions. # These are the actual callables which invoke the proper @@ -169,16 +170,17 @@ def __init__(self, self._inner_api_calls = {} # Service calls - def get_geographic_view(self, - resource_name, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): + def get_geographic_view( + self, + resource_name, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None): """ Returns the requested geographic view in full detail. Args: - resource_name (str): The resource name of the geographic view to fetch. + resource_name (str): Required. The resource name of the geographic view to fetch. retry (Optional[google.api_core.retry.Retry]): A retry object used to retry requests. If ``None`` is specified, requests will not be retried. @@ -189,7 +191,7 @@ def get_geographic_view(self, that is provided to the method. Returns: - A :class:`~google.ads.googleads_v1.types.GeographicView` instance. + A :class:`~google.ads.googleads_v4.types.GeographicView` instance. Raises: google.api_core.exceptions.GoogleAPICallError: If the request @@ -200,17 +202,25 @@ def get_geographic_view(self, """ # Wrap the transport method to add retry and timeout logic. if 'get_geographic_view' not in self._inner_api_calls: - self._inner_api_calls[ - 'get_geographic_view'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.get_geographic_view, - default_retry=self._method_configs['GetGeographicView']. - retry, - default_timeout=self._method_configs['GetGeographicView']. - timeout, - client_info=self._client_info, - ) + self._inner_api_calls['get_geographic_view'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.get_geographic_view, + default_retry=self._method_configs['GetGeographicView'].retry, + default_timeout=self._method_configs['GetGeographicView'].timeout, + client_info=self._client_info, + ) request = geographic_view_service_pb2.GetGeographicViewRequest( - resource_name=resource_name, ) - return self._inner_api_calls['get_geographic_view']( - request, retry=retry, timeout=timeout, metadata=metadata) + resource_name=resource_name, + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [('resource_name', resource_name)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata(routing_header) + metadata.append(routing_metadata) + + return self._inner_api_calls['get_geographic_view'](request, retry=retry, timeout=timeout, metadata=metadata) diff --git a/google/ads/google_ads/v4/services/geographic_view_service_client_config.py b/google/ads/google_ads/v4/services/geographic_view_service_client_config.py new file mode 100644 index 000000000..b3334ba4b --- /dev/null +++ b/google/ads/google_ads/v4/services/geographic_view_service_client_config.py @@ -0,0 +1,31 @@ +config = { + "interfaces": { + "google.ads.googleads.v4.services.GeographicViewService": { + "retry_codes": { + "idempotent": [ + "DEADLINE_EXCEEDED", + "UNAVAILABLE" + ], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 5000, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 3600000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 3600000, + "total_timeout_millis": 3600000 + } + }, + "methods": { + "GetGeographicView": { + "timeout_millis": 60000, + "retry_codes_name": "idempotent", + "retry_params_name": "default" + } + } + } + } +} diff --git a/google/ads/google_ads/v1/services/google_ads_field_service_client.py b/google/ads/google_ads/v4/services/google_ads_field_service_client.py similarity index 76% rename from google/ads/google_ads/v1/services/google_ads_field_service_client.py rename to google/ads/google_ads/v4/services/google_ads_field_service_client.py index 9493b0740..845be6143 100644 --- a/google/ads/google_ads/v1/services/google_ads_field_service_client.py +++ b/google/ads/google_ads/v4/services/google_ads_field_service_client.py @@ -13,7 +13,8 @@ # 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. -"""Accesses the google.ads.googleads.v1.services GoogleAdsFieldService API.""" + +"""Accesses the google.ads.googleads.v4.services GoogleAdsFieldService API.""" import functools import pkg_resources @@ -23,16 +24,20 @@ import google.api_core.gapic_v1.client_info import google.api_core.gapic_v1.config import google.api_core.gapic_v1.method +import google.api_core.gapic_v1.routing_header import google.api_core.grpc_helpers import google.api_core.page_iterator import google.api_core.path_template -from google.ads.google_ads.v1.services import google_ads_field_service_client_config -from google.ads.google_ads.v1.services.transports import google_ads_field_service_grpc_transport -from google.ads.google_ads.v1.proto.services import google_ads_field_service_pb2 +from google.ads.google_ads.v4.services import google_ads_field_service_client_config +from google.ads.google_ads.v4.services.transports import google_ads_field_service_grpc_transport +from google.ads.google_ads.v4.proto.services import google_ads_field_service_pb2 + + _GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( - 'google-ads', ).version + 'google-ads', +).version class GoogleAdsFieldServiceClient(object): @@ -43,7 +48,8 @@ class GoogleAdsFieldServiceClient(object): # The name of the interface for this client. This is the key used to # find the method configuration in the client_config dictionary. - _INTERFACE_NAME = 'google.ads.googleads.v1.services.GoogleAdsFieldService' + _INTERFACE_NAME = 'google.ads.googleads.v4.services.GoogleAdsFieldService' + @classmethod def from_service_account_file(cls, filename, *args, **kwargs): @@ -66,6 +72,7 @@ def from_service_account_file(cls, filename, *args, **kwargs): from_service_account_json = from_service_account_file + @classmethod def google_ads_field_path(cls, google_ads_field): """Return a fully-qualified google_ads_field string.""" @@ -74,12 +81,8 @@ def google_ads_field_path(cls, google_ads_field): google_ads_field=google_ads_field, ) - def __init__(self, - transport=None, - channel=None, - credentials=None, - client_config=None, - client_info=None): + def __init__(self, transport=None, channel=None, credentials=None, + client_config=None, client_info=None): """Constructor. Args: @@ -112,19 +115,15 @@ def __init__(self, """ # Raise deprecation warnings for things we want to go away. if client_config is not None: - warnings.warn( - 'The `client_config` argument is deprecated.', - PendingDeprecationWarning, - stacklevel=2) + warnings.warn('The `client_config` argument is deprecated.', + PendingDeprecationWarning, stacklevel=2) else: client_config = google_ads_field_service_client_config.config if channel: - warnings.warn( - 'The `channel` argument is deprecated; use ' - '`transport` instead.', - PendingDeprecationWarning, - stacklevel=2) + warnings.warn('The `channel` argument is deprecated; use ' + '`transport` instead.', + PendingDeprecationWarning, stacklevel=2) # Instantiate the transport. # The transport is responsible for handling serialization and @@ -133,14 +132,14 @@ def __init__(self, if callable(transport): self.transport = transport( credentials=credentials, - default_class=google_ads_field_service_grpc_transport. - GoogleAdsFieldServiceGrpcTransport, + default_class=google_ads_field_service_grpc_transport.GoogleAdsFieldServiceGrpcTransport, ) else: if credentials: raise ValueError( 'Received both a transport instance and ' - 'credentials; these are mutually exclusive.') + 'credentials; these are mutually exclusive.' + ) self.transport = transport else: self.transport = google_ads_field_service_grpc_transport.GoogleAdsFieldServiceGrpcTransport( @@ -151,7 +150,8 @@ def __init__(self, if client_info is None: client_info = google.api_core.gapic_v1.client_info.ClientInfo( - gapic_version=_GAPIC_LIBRARY_VERSION, ) + gapic_version=_GAPIC_LIBRARY_VERSION, + ) else: client_info.gapic_version = _GAPIC_LIBRARY_VERSION self._client_info = client_info @@ -161,7 +161,8 @@ def __init__(self, # (Ordinarily, these are the defaults specified in the `*_config.py` # file next to this one.) self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( - client_config['interfaces'][self._INTERFACE_NAME], ) + client_config['interfaces'][self._INTERFACE_NAME], + ) # Save a dictionary of cached API call functions. # These are the actual callables which invoke the proper @@ -170,16 +171,17 @@ def __init__(self, self._inner_api_calls = {} # Service calls - def get_google_ads_field(self, - resource_name, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): + def get_google_ads_field( + self, + resource_name, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None): """ Returns just the requested field. Args: - resource_name (str): The resource name of the field to get. + resource_name (str): Required. The resource name of the field to get. retry (Optional[google.api_core.retry.Retry]): A retry object used to retry requests. If ``None`` is specified, requests will not be retried. @@ -190,7 +192,7 @@ def get_google_ads_field(self, that is provided to the method. Returns: - A :class:`~google.ads.googleads_v1.types.GoogleAdsField` instance. + A :class:`~google.ads.googleads_v4.types.GoogleAdsField` instance. Raises: google.api_core.exceptions.GoogleAPICallError: If the request @@ -201,20 +203,28 @@ def get_google_ads_field(self, """ # Wrap the transport method to add retry and timeout logic. if 'get_google_ads_field' not in self._inner_api_calls: - self._inner_api_calls[ - 'get_google_ads_field'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.get_google_ads_field, - default_retry=self._method_configs['GetGoogleAdsField']. - retry, - default_timeout=self._method_configs['GetGoogleAdsField']. - timeout, - client_info=self._client_info, - ) + self._inner_api_calls['get_google_ads_field'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.get_google_ads_field, + default_retry=self._method_configs['GetGoogleAdsField'].retry, + default_timeout=self._method_configs['GetGoogleAdsField'].timeout, + client_info=self._client_info, + ) request = google_ads_field_service_pb2.GetGoogleAdsFieldRequest( - resource_name=resource_name, ) - return self._inner_api_calls['get_google_ads_field']( - request, retry=retry, timeout=timeout, metadata=metadata) + resource_name=resource_name, + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [('resource_name', resource_name)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata(routing_header) + metadata.append(routing_metadata) + + return self._inner_api_calls['get_google_ads_field'](request, retry=retry, timeout=timeout, metadata=metadata) def search_google_ads_fields( self, @@ -227,7 +237,7 @@ def search_google_ads_fields( Returns all fields that match the search query. Args: - query (str): The query string. + query (str): Required. The query string. page_size (int): The maximum number of resources contained in the underlying API response. If page streaming is performed per- resource, this parameter does not affect the return value. If page @@ -244,7 +254,7 @@ def search_google_ads_fields( Returns: A :class:`~google.gax.PageIterator` instance. By default, this - is an iterable of :class:`~google.ads.googleads_v1.types.GoogleAdsField` instances. + is an iterable of :class:`~google.ads.googleads_v4.types.GoogleAdsField` instances. This object can also be configured to iterate over the pages of the response through the `options` parameter. @@ -257,15 +267,12 @@ def search_google_ads_fields( """ # Wrap the transport method to add retry and timeout logic. if 'search_google_ads_fields' not in self._inner_api_calls: - self._inner_api_calls[ - 'search_google_ads_fields'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.search_google_ads_fields, - default_retry=self. - _method_configs['SearchGoogleAdsFields'].retry, - default_timeout=self. - _method_configs['SearchGoogleAdsFields'].timeout, - client_info=self._client_info, - ) + self._inner_api_calls['search_google_ads_fields'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.search_google_ads_fields, + default_retry=self._method_configs['SearchGoogleAdsFields'].retry, + default_timeout=self._method_configs['SearchGoogleAdsFields'].timeout, + client_info=self._client_info, + ) request = google_ads_field_service_pb2.SearchGoogleAdsFieldsRequest( query=query, @@ -273,11 +280,7 @@ def search_google_ads_fields( ) iterator = google.api_core.page_iterator.GRPCIterator( client=None, - method=functools.partial( - self._inner_api_calls['search_google_ads_fields'], - retry=retry, - timeout=timeout, - metadata=metadata), + method=functools.partial(self._inner_api_calls['search_google_ads_fields'], retry=retry, timeout=timeout, metadata=metadata), request=request, items_field='results', request_token_field='page_token', diff --git a/google/ads/google_ads/v4/services/google_ads_field_service_client_config.py b/google/ads/google_ads/v4/services/google_ads_field_service_client_config.py new file mode 100644 index 000000000..ead477a32 --- /dev/null +++ b/google/ads/google_ads/v4/services/google_ads_field_service_client_config.py @@ -0,0 +1,36 @@ +config = { + "interfaces": { + "google.ads.googleads.v4.services.GoogleAdsFieldService": { + "retry_codes": { + "idempotent": [ + "DEADLINE_EXCEEDED", + "UNAVAILABLE" + ], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 5000, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 3600000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 3600000, + "total_timeout_millis": 3600000 + } + }, + "methods": { + "GetGoogleAdsField": { + "timeout_millis": 600000, + "retry_codes_name": "idempotent", + "retry_params_name": "default" + }, + "SearchGoogleAdsFields": { + "timeout_millis": 600000, + "retry_codes_name": "idempotent", + "retry_params_name": "default" + } + } + } + } +} diff --git a/google/ads/google_ads/v4/services/google_ads_service_client.py b/google/ads/google_ads/v4/services/google_ads_service_client.py new file mode 100644 index 000000000..c3acb46f8 --- /dev/null +++ b/google/ads/google_ads/v4/services/google_ads_service_client.py @@ -0,0 +1,436 @@ +# -*- coding: utf-8 -*- +# +# 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. + +"""Accesses the google.ads.googleads.v4.services GoogleAdsService API.""" + +import functools +import pkg_resources +import warnings + +from google.oauth2 import service_account +import google.api_core.gapic_v1.client_info +import google.api_core.gapic_v1.config +import google.api_core.gapic_v1.method +import google.api_core.gapic_v1.routing_header +import google.api_core.grpc_helpers +import google.api_core.page_iterator + +from google.ads.google_ads.v4.services import google_ads_service_client_config +from google.ads.google_ads.v4.services.transports import google_ads_service_grpc_transport +from google.ads.google_ads.v4.proto.services import google_ads_service_pb2 + + + +_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( + 'google-ads', +).version + + +class GoogleAdsServiceClient(object): + """Service to fetch data and metrics across resources.""" + + SERVICE_ADDRESS = 'googleads.googleapis.com:443' + """The default address of the service.""" + + # The name of the interface for this client. This is the key used to + # find the method configuration in the client_config dictionary. + _INTERFACE_NAME = 'google.ads.googleads.v4.services.GoogleAdsService' + + + @classmethod + def from_service_account_file(cls, filename, *args, **kwargs): + """Creates an instance of this client using the provided credentials + file. + + Args: + filename (str): The path to the service account private key json + file. + args: Additional arguments to pass to the constructor. + kwargs: Additional arguments to pass to the constructor. + + Returns: + GoogleAdsServiceClient: The constructed client. + """ + credentials = service_account.Credentials.from_service_account_file( + filename) + kwargs['credentials'] = credentials + return cls(*args, **kwargs) + + from_service_account_json = from_service_account_file + + def __init__(self, transport=None, channel=None, credentials=None, + client_config=None, client_info=None): + """Constructor. + + Args: + transport (Union[~.GoogleAdsServiceGrpcTransport, + Callable[[~.Credentials, type], ~.GoogleAdsServiceGrpcTransport]): A transport + instance, responsible for actually making the API calls. + The default transport uses the gRPC protocol. + This argument may also be a callable which returns a + transport instance. Callables will be sent the credentials + as the first argument and the default transport class as + the second argument. + channel (grpc.Channel): DEPRECATED. A ``Channel`` instance + through which to make calls. This argument is mutually exclusive + with ``credentials``; providing both will raise an exception. + credentials (google.auth.credentials.Credentials): The + authorization credentials to attach to requests. These + credentials identify this application to the service. If none + are specified, the client will attempt to ascertain the + credentials from the environment. + This argument is mutually exclusive with providing a + transport instance to ``transport``; doing so will raise + an exception. + client_config (dict): DEPRECATED. A dictionary of call options for + each method. If not specified, the default configuration is used. + client_info (google.api_core.gapic_v1.client_info.ClientInfo): + The client info used to send a user-agent string along with + API requests. If ``None``, then default info will be used. + Generally, you only need to set this if you're developing + your own client library. + """ + # Raise deprecation warnings for things we want to go away. + if client_config is not None: + warnings.warn('The `client_config` argument is deprecated.', + PendingDeprecationWarning, stacklevel=2) + else: + client_config = google_ads_service_client_config.config + + if channel: + warnings.warn('The `channel` argument is deprecated; use ' + '`transport` instead.', + PendingDeprecationWarning, stacklevel=2) + + # Instantiate the transport. + # The transport is responsible for handling serialization and + # deserialization and actually sending data to the service. + if transport: + if callable(transport): + self.transport = transport( + credentials=credentials, + default_class=google_ads_service_grpc_transport.GoogleAdsServiceGrpcTransport, + ) + else: + if credentials: + raise ValueError( + 'Received both a transport instance and ' + 'credentials; these are mutually exclusive.' + ) + self.transport = transport + else: + self.transport = google_ads_service_grpc_transport.GoogleAdsServiceGrpcTransport( + address=self.SERVICE_ADDRESS, + channel=channel, + credentials=credentials, + ) + + if client_info is None: + client_info = google.api_core.gapic_v1.client_info.ClientInfo( + gapic_version=_GAPIC_LIBRARY_VERSION, + ) + else: + client_info.gapic_version = _GAPIC_LIBRARY_VERSION + self._client_info = client_info + + # Parse out the default settings for retry and timeout for each RPC + # from the client configuration. + # (Ordinarily, these are the defaults specified in the `*_config.py` + # file next to this one.) + self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( + client_config['interfaces'][self._INTERFACE_NAME], + ) + + # Save a dictionary of cached API call functions. + # These are the actual callables which invoke the proper + # transport methods, wrapped with `wrap_method` to add retry, + # timeout, and the like. + self._inner_api_calls = {} + + # Service calls + def search( + self, + customer_id, + query, + page_size=None, + validate_only=None, + return_total_results_count=None, + summary_row_setting=None, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None): + """ + Returns all rows that match the search query. + + Args: + customer_id (str): Required. The ID of the customer being queried. + query (str): Required. The query string. + page_size (int): The maximum number of resources contained in the + underlying API response. If page streaming is performed per- + resource, this parameter does not affect the return value. If page + streaming is performed per-page, this determines the maximum number + of resources in a page. + validate_only (bool): If true, the request is validated but not executed. + return_total_results_count (bool): If true, the total number of results that match the query ignoring the + LIMIT clause will be included in the response. + Default is false. + summary_row_setting (~google.ads.googleads_v4.types.SummaryRowSetting): Determines whether a summary row will be returned. By default, summary row + is not returned. If requested, the summary row will be sent in a response + by itself after all other query results are returned. + retry (Optional[google.api_core.retry.Retry]): A retry object used + to retry requests. If ``None`` is specified, requests will not + be retried. + timeout (Optional[float]): The amount of time, in seconds, to wait + for the request to complete. Note that if ``retry`` is + specified, the timeout applies to each individual attempt. + metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata + that is provided to the method. + + Returns: + A :class:`~google.gax.PageIterator` instance. By default, this + is an iterable of :class:`~google.ads.googleads_v4.types.GoogleAdsRow` instances. + This object can also be configured to iterate over the pages + of the response through the `options` parameter. + + Raises: + google.api_core.exceptions.GoogleAPICallError: If the request + failed for any reason. + google.api_core.exceptions.RetryError: If the request failed due + to a retryable error and retry attempts failed. + ValueError: If the parameters are invalid. + """ + # Wrap the transport method to add retry and timeout logic. + if 'search' not in self._inner_api_calls: + self._inner_api_calls['search'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.search, + default_retry=self._method_configs['Search'].retry, + default_timeout=self._method_configs['Search'].timeout, + client_info=self._client_info, + ) + + request = google_ads_service_pb2.SearchGoogleAdsRequest( + customer_id=customer_id, + query=query, + page_size=page_size, + validate_only=validate_only, + return_total_results_count=return_total_results_count, + summary_row_setting=summary_row_setting, + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [('customer_id', customer_id)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata(routing_header) + metadata.append(routing_metadata) + + iterator = google.api_core.page_iterator.GRPCIterator( + client=None, + method=functools.partial(self._inner_api_calls['search'], retry=retry, timeout=timeout, metadata=metadata), + request=request, + items_field='results', + request_token_field='page_token', + response_token_field='next_page_token', + ) + return iterator + + def search_stream( + self, + customer_id, + query, + summary_row_setting=None, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None): + """ + Returns all rows that match the search stream query. + + Args: + customer_id (str): Required. The ID of the customer being queried. + query (str): Required. The query string. + summary_row_setting (~google.ads.googleads_v4.types.SummaryRowSetting): Determines whether a summary row will be returned. By default, summary row + is not returned. If requested, the summary row will be sent in a response + by itself after all other query results are returned. + retry (Optional[google.api_core.retry.Retry]): A retry object used + to retry requests. If ``None`` is specified, requests will not + be retried. + timeout (Optional[float]): The amount of time, in seconds, to wait + for the request to complete. Note that if ``retry`` is + specified, the timeout applies to each individual attempt. + metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata + that is provided to the method. + + Returns: + Iterable[~google.ads.googleads_v4.types.SearchGoogleAdsStreamResponse]. + + Raises: + google.api_core.exceptions.GoogleAPICallError: If the request + failed for any reason. + google.api_core.exceptions.RetryError: If the request failed due + to a retryable error and retry attempts failed. + ValueError: If the parameters are invalid. + """ + # Wrap the transport method to add retry and timeout logic. + if 'search_stream' not in self._inner_api_calls: + self._inner_api_calls['search_stream'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.search_stream, + default_retry=self._method_configs['SearchStream'].retry, + default_timeout=self._method_configs['SearchStream'].timeout, + client_info=self._client_info, + ) + + request = google_ads_service_pb2.SearchGoogleAdsStreamRequest( + customer_id=customer_id, + query=query, + summary_row_setting=summary_row_setting, + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [('customer_id', customer_id)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata(routing_header) + metadata.append(routing_metadata) + + return self._inner_api_calls['search_stream'](request, retry=retry, timeout=timeout, metadata=metadata) + + def mutate( + self, + customer_id, + mutate_operations, + partial_failure=None, + validate_only=None, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None): + """ + Creates, updates, or removes resources. This method supports atomic + transactions with multiple types of resources. For example, you can + atomically create a campaign and a campaign budget, or perform up to + thousands of mutates atomically. + + This method is essentially a wrapper around a series of mutate methods. + The only features it offers over calling those methods directly are: + + - Atomic transactions + - Temp resource names (described below) + - Somewhat reduced latency over making a series of mutate calls + + Note: Only resources that support atomic transactions are included, so + this method can't replace all calls to individual services. + + ## Atomic Transaction Benefits + + Atomicity makes error handling much easier. If you're making a series of + changes and one fails, it can leave your account in an inconsistent + state. With atomicity, you either reach the desired state directly, or + the request fails and you can retry. + + ## Temp Resource Names + + Temp resource names are a special type of resource name used to create a + resource and reference that resource in the same request. For example, + if a campaign budget is created with ``resource_name`` equal to + ``customers/123/campaignBudgets/-1``, that resource name can be reused + in the ``Campaign.budget`` field in the same request. That way, the two + resources are created and linked atomically. + + To create a temp resource name, put a negative number in the part of the + name that the server would normally allocate. + + Note: + + - Resources must be created with a temp name before the name can be + reused. For example, the previous CampaignBudget+Campaign example + would fail if the mutate order was reversed. + - Temp names are not remembered across requests. + - There's no limit to the number of temp names in a request. + - Each temp name must use a unique negative number, even if the + resource types differ. + + ## Latency + + It's important to group mutates by resource type or the request may time + out and fail. Latency is roughly equal to a series of calls to + individual mutate methods, where each change in resource type is a new + call. For example, mutating 10 campaigns then 10 ad groups is like 2 + calls, while mutating 1 campaign, 1 ad group, 1 campaign, 1 ad group is + like 4 calls. + + Args: + customer_id (str): Required. The ID of the customer whose resources are being modified. + mutate_operations (list[Union[dict, ~google.ads.googleads_v4.types.MutateOperation]]): Required. The list of operations to perform on individual resources. + + If a dict is provided, it must be of the same form as the protobuf + message :class:`~google.ads.googleads_v4.types.MutateOperation` + partial_failure (bool): If true, successful operations will be carried out and invalid + operations will return errors. If false, all operations will be carried + out in one transaction if and only if they are all valid. + Default is false. + validate_only (bool): If true, the request is validated but not executed. Only errors are + returned, not results. + retry (Optional[google.api_core.retry.Retry]): A retry object used + to retry requests. If ``None`` is specified, requests will not + be retried. + timeout (Optional[float]): The amount of time, in seconds, to wait + for the request to complete. Note that if ``retry`` is + specified, the timeout applies to each individual attempt. + metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata + that is provided to the method. + + Returns: + A :class:`~google.ads.googleads_v4.types.MutateGoogleAdsResponse` instance. + + Raises: + google.api_core.exceptions.GoogleAPICallError: If the request + failed for any reason. + google.api_core.exceptions.RetryError: If the request failed due + to a retryable error and retry attempts failed. + ValueError: If the parameters are invalid. + """ + # Wrap the transport method to add retry and timeout logic. + if 'mutate' not in self._inner_api_calls: + self._inner_api_calls['mutate'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.mutate, + default_retry=self._method_configs['Mutate'].retry, + default_timeout=self._method_configs['Mutate'].timeout, + client_info=self._client_info, + ) + + request = google_ads_service_pb2.MutateGoogleAdsRequest( + customer_id=customer_id, + mutate_operations=mutate_operations, + partial_failure=partial_failure, + validate_only=validate_only, + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [('customer_id', customer_id)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata(routing_header) + metadata.append(routing_metadata) + + return self._inner_api_calls['mutate'](request, retry=retry, timeout=timeout, metadata=metadata) diff --git a/google/ads/google_ads/v4/services/google_ads_service_client_config.py b/google/ads/google_ads/v4/services/google_ads_service_client_config.py new file mode 100644 index 000000000..aa3e61b29 --- /dev/null +++ b/google/ads/google_ads/v4/services/google_ads_service_client_config.py @@ -0,0 +1,41 @@ +config = { + "interfaces": { + "google.ads.googleads.v4.services.GoogleAdsService": { + "retry_codes": { + "idempotent": [ + "DEADLINE_EXCEEDED", + "UNAVAILABLE" + ], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 5000, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 3600000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 3600000, + "total_timeout_millis": 3600000 + } + }, + "methods": { + "Search": { + "timeout_millis": 3600000, + "retry_codes_name": "idempotent", + "retry_params_name": "default" + }, + "SearchStream": { + "timeout_millis": 3600000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "Mutate": { + "timeout_millis": 600000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + } + } + } + } +} diff --git a/google/ads/google_ads/v1/services/group_placement_view_service_client.py b/google/ads/google_ads/v4/services/group_placement_view_service_client.py similarity index 78% rename from google/ads/google_ads/v1/services/group_placement_view_service_client.py rename to google/ads/google_ads/v4/services/group_placement_view_service_client.py index 868d5eece..f4fc6dce1 100644 --- a/google/ads/google_ads/v1/services/group_placement_view_service_client.py +++ b/google/ads/google_ads/v4/services/group_placement_view_service_client.py @@ -13,7 +13,8 @@ # 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. -"""Accesses the google.ads.googleads.v1.services GroupPlacementViewService API.""" + +"""Accesses the google.ads.googleads.v4.services GroupPlacementViewService API.""" import pkg_resources import warnings @@ -22,15 +23,19 @@ import google.api_core.gapic_v1.client_info import google.api_core.gapic_v1.config import google.api_core.gapic_v1.method +import google.api_core.gapic_v1.routing_header import google.api_core.grpc_helpers import google.api_core.path_template -from google.ads.google_ads.v1.services import group_placement_view_service_client_config -from google.ads.google_ads.v1.services.transports import group_placement_view_service_grpc_transport -from google.ads.google_ads.v1.proto.services import group_placement_view_service_pb2 +from google.ads.google_ads.v4.services import group_placement_view_service_client_config +from google.ads.google_ads.v4.services.transports import group_placement_view_service_grpc_transport +from google.ads.google_ads.v4.proto.services import group_placement_view_service_pb2 + + _GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( - 'google-ads', ).version + 'google-ads', +).version class GroupPlacementViewServiceClient(object): @@ -41,7 +46,8 @@ class GroupPlacementViewServiceClient(object): # The name of the interface for this client. This is the key used to # find the method configuration in the client_config dictionary. - _INTERFACE_NAME = 'google.ads.googleads.v1.services.GroupPlacementViewService' + _INTERFACE_NAME = 'google.ads.googleads.v4.services.GroupPlacementViewService' + @classmethod def from_service_account_file(cls, filename, *args, **kwargs): @@ -64,6 +70,7 @@ def from_service_account_file(cls, filename, *args, **kwargs): from_service_account_json = from_service_account_file + @classmethod def group_placement_view_path(cls, customer, group_placement_view): """Return a fully-qualified group_placement_view string.""" @@ -73,12 +80,8 @@ def group_placement_view_path(cls, customer, group_placement_view): group_placement_view=group_placement_view, ) - def __init__(self, - transport=None, - channel=None, - credentials=None, - client_config=None, - client_info=None): + def __init__(self, transport=None, channel=None, credentials=None, + client_config=None, client_info=None): """Constructor. Args: @@ -111,19 +114,15 @@ def __init__(self, """ # Raise deprecation warnings for things we want to go away. if client_config is not None: - warnings.warn( - 'The `client_config` argument is deprecated.', - PendingDeprecationWarning, - stacklevel=2) + warnings.warn('The `client_config` argument is deprecated.', + PendingDeprecationWarning, stacklevel=2) else: client_config = group_placement_view_service_client_config.config if channel: - warnings.warn( - 'The `channel` argument is deprecated; use ' - '`transport` instead.', - PendingDeprecationWarning, - stacklevel=2) + warnings.warn('The `channel` argument is deprecated; use ' + '`transport` instead.', + PendingDeprecationWarning, stacklevel=2) # Instantiate the transport. # The transport is responsible for handling serialization and @@ -132,14 +131,14 @@ def __init__(self, if callable(transport): self.transport = transport( credentials=credentials, - default_class=group_placement_view_service_grpc_transport. - GroupPlacementViewServiceGrpcTransport, + default_class=group_placement_view_service_grpc_transport.GroupPlacementViewServiceGrpcTransport, ) else: if credentials: raise ValueError( 'Received both a transport instance and ' - 'credentials; these are mutually exclusive.') + 'credentials; these are mutually exclusive.' + ) self.transport = transport else: self.transport = group_placement_view_service_grpc_transport.GroupPlacementViewServiceGrpcTransport( @@ -150,7 +149,8 @@ def __init__(self, if client_info is None: client_info = google.api_core.gapic_v1.client_info.ClientInfo( - gapic_version=_GAPIC_LIBRARY_VERSION, ) + gapic_version=_GAPIC_LIBRARY_VERSION, + ) else: client_info.gapic_version = _GAPIC_LIBRARY_VERSION self._client_info = client_info @@ -160,7 +160,8 @@ def __init__(self, # (Ordinarily, these are the defaults specified in the `*_config.py` # file next to this one.) self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( - client_config['interfaces'][self._INTERFACE_NAME], ) + client_config['interfaces'][self._INTERFACE_NAME], + ) # Save a dictionary of cached API call functions. # These are the actual callables which invoke the proper @@ -179,7 +180,7 @@ def get_group_placement_view( Returns the requested Group Placement view in full detail. Args: - resource_name (str): The resource name of the Group Placement view to fetch. + resource_name (str): Required. The resource name of the Group Placement view to fetch. retry (Optional[google.api_core.retry.Retry]): A retry object used to retry requests. If ``None`` is specified, requests will not be retried. @@ -190,7 +191,7 @@ def get_group_placement_view( that is provided to the method. Returns: - A :class:`~google.ads.googleads_v1.types.GroupPlacementView` instance. + A :class:`~google.ads.googleads_v4.types.GroupPlacementView` instance. Raises: google.api_core.exceptions.GoogleAPICallError: If the request @@ -201,17 +202,25 @@ def get_group_placement_view( """ # Wrap the transport method to add retry and timeout logic. if 'get_group_placement_view' not in self._inner_api_calls: - self._inner_api_calls[ - 'get_group_placement_view'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.get_group_placement_view, - default_retry=self. - _method_configs['GetGroupPlacementView'].retry, - default_timeout=self. - _method_configs['GetGroupPlacementView'].timeout, - client_info=self._client_info, - ) + self._inner_api_calls['get_group_placement_view'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.get_group_placement_view, + default_retry=self._method_configs['GetGroupPlacementView'].retry, + default_timeout=self._method_configs['GetGroupPlacementView'].timeout, + client_info=self._client_info, + ) request = group_placement_view_service_pb2.GetGroupPlacementViewRequest( - resource_name=resource_name, ) - return self._inner_api_calls['get_group_placement_view']( - request, retry=retry, timeout=timeout, metadata=metadata) + resource_name=resource_name, + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [('resource_name', resource_name)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata(routing_header) + metadata.append(routing_metadata) + + return self._inner_api_calls['get_group_placement_view'](request, retry=retry, timeout=timeout, metadata=metadata) diff --git a/google/ads/google_ads/v4/services/group_placement_view_service_client_config.py b/google/ads/google_ads/v4/services/group_placement_view_service_client_config.py new file mode 100644 index 000000000..c7f44234f --- /dev/null +++ b/google/ads/google_ads/v4/services/group_placement_view_service_client_config.py @@ -0,0 +1,31 @@ +config = { + "interfaces": { + "google.ads.googleads.v4.services.GroupPlacementViewService": { + "retry_codes": { + "idempotent": [ + "DEADLINE_EXCEEDED", + "UNAVAILABLE" + ], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 5000, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 3600000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 3600000, + "total_timeout_millis": 3600000 + } + }, + "methods": { + "GetGroupPlacementView": { + "timeout_millis": 60000, + "retry_codes_name": "idempotent", + "retry_params_name": "default" + } + } + } + } +} diff --git a/google/ads/google_ads/v1/services/hotel_group_view_service_client.py b/google/ads/google_ads/v4/services/hotel_group_view_service_client.py similarity index 76% rename from google/ads/google_ads/v1/services/hotel_group_view_service_client.py rename to google/ads/google_ads/v4/services/hotel_group_view_service_client.py index e8f2ea235..aebd3307d 100644 --- a/google/ads/google_ads/v1/services/hotel_group_view_service_client.py +++ b/google/ads/google_ads/v4/services/hotel_group_view_service_client.py @@ -13,7 +13,8 @@ # 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. -"""Accesses the google.ads.googleads.v1.services HotelGroupViewService API.""" + +"""Accesses the google.ads.googleads.v4.services HotelGroupViewService API.""" import pkg_resources import warnings @@ -22,15 +23,19 @@ import google.api_core.gapic_v1.client_info import google.api_core.gapic_v1.config import google.api_core.gapic_v1.method +import google.api_core.gapic_v1.routing_header import google.api_core.grpc_helpers import google.api_core.path_template -from google.ads.google_ads.v1.services import hotel_group_view_service_client_config -from google.ads.google_ads.v1.services.transports import hotel_group_view_service_grpc_transport -from google.ads.google_ads.v1.proto.services import hotel_group_view_service_pb2 +from google.ads.google_ads.v4.services import hotel_group_view_service_client_config +from google.ads.google_ads.v4.services.transports import hotel_group_view_service_grpc_transport +from google.ads.google_ads.v4.proto.services import hotel_group_view_service_pb2 + + _GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( - 'google-ads', ).version + 'google-ads', +).version class HotelGroupViewServiceClient(object): @@ -41,7 +46,8 @@ class HotelGroupViewServiceClient(object): # The name of the interface for this client. This is the key used to # find the method configuration in the client_config dictionary. - _INTERFACE_NAME = 'google.ads.googleads.v1.services.HotelGroupViewService' + _INTERFACE_NAME = 'google.ads.googleads.v4.services.HotelGroupViewService' + @classmethod def from_service_account_file(cls, filename, *args, **kwargs): @@ -64,6 +70,7 @@ def from_service_account_file(cls, filename, *args, **kwargs): from_service_account_json = from_service_account_file + @classmethod def hotel_group_view_path(cls, customer, hotel_group_view): """Return a fully-qualified hotel_group_view string.""" @@ -73,12 +80,8 @@ def hotel_group_view_path(cls, customer, hotel_group_view): hotel_group_view=hotel_group_view, ) - def __init__(self, - transport=None, - channel=None, - credentials=None, - client_config=None, - client_info=None): + def __init__(self, transport=None, channel=None, credentials=None, + client_config=None, client_info=None): """Constructor. Args: @@ -111,19 +114,15 @@ def __init__(self, """ # Raise deprecation warnings for things we want to go away. if client_config is not None: - warnings.warn( - 'The `client_config` argument is deprecated.', - PendingDeprecationWarning, - stacklevel=2) + warnings.warn('The `client_config` argument is deprecated.', + PendingDeprecationWarning, stacklevel=2) else: client_config = hotel_group_view_service_client_config.config if channel: - warnings.warn( - 'The `channel` argument is deprecated; use ' - '`transport` instead.', - PendingDeprecationWarning, - stacklevel=2) + warnings.warn('The `channel` argument is deprecated; use ' + '`transport` instead.', + PendingDeprecationWarning, stacklevel=2) # Instantiate the transport. # The transport is responsible for handling serialization and @@ -132,14 +131,14 @@ def __init__(self, if callable(transport): self.transport = transport( credentials=credentials, - default_class=hotel_group_view_service_grpc_transport. - HotelGroupViewServiceGrpcTransport, + default_class=hotel_group_view_service_grpc_transport.HotelGroupViewServiceGrpcTransport, ) else: if credentials: raise ValueError( 'Received both a transport instance and ' - 'credentials; these are mutually exclusive.') + 'credentials; these are mutually exclusive.' + ) self.transport = transport else: self.transport = hotel_group_view_service_grpc_transport.HotelGroupViewServiceGrpcTransport( @@ -150,7 +149,8 @@ def __init__(self, if client_info is None: client_info = google.api_core.gapic_v1.client_info.ClientInfo( - gapic_version=_GAPIC_LIBRARY_VERSION, ) + gapic_version=_GAPIC_LIBRARY_VERSION, + ) else: client_info.gapic_version = _GAPIC_LIBRARY_VERSION self._client_info = client_info @@ -160,7 +160,8 @@ def __init__(self, # (Ordinarily, these are the defaults specified in the `*_config.py` # file next to this one.) self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( - client_config['interfaces'][self._INTERFACE_NAME], ) + client_config['interfaces'][self._INTERFACE_NAME], + ) # Save a dictionary of cached API call functions. # These are the actual callables which invoke the proper @@ -169,16 +170,17 @@ def __init__(self, self._inner_api_calls = {} # Service calls - def get_hotel_group_view(self, - resource_name, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): + def get_hotel_group_view( + self, + resource_name, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None): """ Returns the requested Hotel Group View in full detail. Args: - resource_name (str): Resource name of the Hotel Group View to fetch. + resource_name (str): Required. Resource name of the Hotel Group View to fetch. retry (Optional[google.api_core.retry.Retry]): A retry object used to retry requests. If ``None`` is specified, requests will not be retried. @@ -189,7 +191,7 @@ def get_hotel_group_view(self, that is provided to the method. Returns: - A :class:`~google.ads.googleads_v1.types.HotelGroupView` instance. + A :class:`~google.ads.googleads_v4.types.HotelGroupView` instance. Raises: google.api_core.exceptions.GoogleAPICallError: If the request @@ -200,17 +202,25 @@ def get_hotel_group_view(self, """ # Wrap the transport method to add retry and timeout logic. if 'get_hotel_group_view' not in self._inner_api_calls: - self._inner_api_calls[ - 'get_hotel_group_view'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.get_hotel_group_view, - default_retry=self._method_configs['GetHotelGroupView']. - retry, - default_timeout=self._method_configs['GetHotelGroupView']. - timeout, - client_info=self._client_info, - ) + self._inner_api_calls['get_hotel_group_view'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.get_hotel_group_view, + default_retry=self._method_configs['GetHotelGroupView'].retry, + default_timeout=self._method_configs['GetHotelGroupView'].timeout, + client_info=self._client_info, + ) request = hotel_group_view_service_pb2.GetHotelGroupViewRequest( - resource_name=resource_name, ) - return self._inner_api_calls['get_hotel_group_view']( - request, retry=retry, timeout=timeout, metadata=metadata) + resource_name=resource_name, + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [('resource_name', resource_name)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata(routing_header) + metadata.append(routing_metadata) + + return self._inner_api_calls['get_hotel_group_view'](request, retry=retry, timeout=timeout, metadata=metadata) diff --git a/google/ads/google_ads/v4/services/hotel_group_view_service_client_config.py b/google/ads/google_ads/v4/services/hotel_group_view_service_client_config.py new file mode 100644 index 000000000..7398495cb --- /dev/null +++ b/google/ads/google_ads/v4/services/hotel_group_view_service_client_config.py @@ -0,0 +1,31 @@ +config = { + "interfaces": { + "google.ads.googleads.v4.services.HotelGroupViewService": { + "retry_codes": { + "idempotent": [ + "DEADLINE_EXCEEDED", + "UNAVAILABLE" + ], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 5000, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 3600000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 3600000, + "total_timeout_millis": 3600000 + } + }, + "methods": { + "GetHotelGroupView": { + "timeout_millis": 60000, + "retry_codes_name": "idempotent", + "retry_params_name": "default" + } + } + } + } +} diff --git a/google/ads/google_ads/v1/services/hotel_performance_view_service_client.py b/google/ads/google_ads/v4/services/hotel_performance_view_service_client.py similarity index 78% rename from google/ads/google_ads/v1/services/hotel_performance_view_service_client.py rename to google/ads/google_ads/v4/services/hotel_performance_view_service_client.py index 1a62551a1..d89576d59 100644 --- a/google/ads/google_ads/v1/services/hotel_performance_view_service_client.py +++ b/google/ads/google_ads/v4/services/hotel_performance_view_service_client.py @@ -13,7 +13,8 @@ # 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. -"""Accesses the google.ads.googleads.v1.services HotelPerformanceViewService API.""" + +"""Accesses the google.ads.googleads.v4.services HotelPerformanceViewService API.""" import pkg_resources import warnings @@ -22,15 +23,19 @@ import google.api_core.gapic_v1.client_info import google.api_core.gapic_v1.config import google.api_core.gapic_v1.method +import google.api_core.gapic_v1.routing_header import google.api_core.grpc_helpers import google.api_core.path_template -from google.ads.google_ads.v1.services import hotel_performance_view_service_client_config -from google.ads.google_ads.v1.services.transports import hotel_performance_view_service_grpc_transport -from google.ads.google_ads.v1.proto.services import hotel_performance_view_service_pb2 +from google.ads.google_ads.v4.services import hotel_performance_view_service_client_config +from google.ads.google_ads.v4.services.transports import hotel_performance_view_service_grpc_transport +from google.ads.google_ads.v4.proto.services import hotel_performance_view_service_pb2 + + _GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( - 'google-ads', ).version + 'google-ads', +).version class HotelPerformanceViewServiceClient(object): @@ -41,7 +46,8 @@ class HotelPerformanceViewServiceClient(object): # The name of the interface for this client. This is the key used to # find the method configuration in the client_config dictionary. - _INTERFACE_NAME = 'google.ads.googleads.v1.services.HotelPerformanceViewService' + _INTERFACE_NAME = 'google.ads.googleads.v4.services.HotelPerformanceViewService' + @classmethod def from_service_account_file(cls, filename, *args, **kwargs): @@ -64,6 +70,7 @@ def from_service_account_file(cls, filename, *args, **kwargs): from_service_account_json = from_service_account_file + @classmethod def hotel_performance_view_path(cls, customer): """Return a fully-qualified hotel_performance_view string.""" @@ -72,12 +79,8 @@ def hotel_performance_view_path(cls, customer): customer=customer, ) - def __init__(self, - transport=None, - channel=None, - credentials=None, - client_config=None, - client_info=None): + def __init__(self, transport=None, channel=None, credentials=None, + client_config=None, client_info=None): """Constructor. Args: @@ -110,19 +113,15 @@ def __init__(self, """ # Raise deprecation warnings for things we want to go away. if client_config is not None: - warnings.warn( - 'The `client_config` argument is deprecated.', - PendingDeprecationWarning, - stacklevel=2) + warnings.warn('The `client_config` argument is deprecated.', + PendingDeprecationWarning, stacklevel=2) else: client_config = hotel_performance_view_service_client_config.config if channel: - warnings.warn( - 'The `channel` argument is deprecated; use ' - '`transport` instead.', - PendingDeprecationWarning, - stacklevel=2) + warnings.warn('The `channel` argument is deprecated; use ' + '`transport` instead.', + PendingDeprecationWarning, stacklevel=2) # Instantiate the transport. # The transport is responsible for handling serialization and @@ -131,14 +130,14 @@ def __init__(self, if callable(transport): self.transport = transport( credentials=credentials, - default_class=hotel_performance_view_service_grpc_transport - .HotelPerformanceViewServiceGrpcTransport, + default_class=hotel_performance_view_service_grpc_transport.HotelPerformanceViewServiceGrpcTransport, ) else: if credentials: raise ValueError( 'Received both a transport instance and ' - 'credentials; these are mutually exclusive.') + 'credentials; these are mutually exclusive.' + ) self.transport = transport else: self.transport = hotel_performance_view_service_grpc_transport.HotelPerformanceViewServiceGrpcTransport( @@ -149,7 +148,8 @@ def __init__(self, if client_info is None: client_info = google.api_core.gapic_v1.client_info.ClientInfo( - gapic_version=_GAPIC_LIBRARY_VERSION, ) + gapic_version=_GAPIC_LIBRARY_VERSION, + ) else: client_info.gapic_version = _GAPIC_LIBRARY_VERSION self._client_info = client_info @@ -159,7 +159,8 @@ def __init__(self, # (Ordinarily, these are the defaults specified in the `*_config.py` # file next to this one.) self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( - client_config['interfaces'][self._INTERFACE_NAME], ) + client_config['interfaces'][self._INTERFACE_NAME], + ) # Save a dictionary of cached API call functions. # These are the actual callables which invoke the proper @@ -178,7 +179,7 @@ def get_hotel_performance_view( Returns the requested Hotel Performance View in full detail. Args: - resource_name (str): Resource name of the Hotel Performance View to fetch. + resource_name (str): Required. Resource name of the Hotel Performance View to fetch. retry (Optional[google.api_core.retry.Retry]): A retry object used to retry requests. If ``None`` is specified, requests will not be retried. @@ -189,7 +190,7 @@ def get_hotel_performance_view( that is provided to the method. Returns: - A :class:`~google.ads.googleads_v1.types.HotelPerformanceView` instance. + A :class:`~google.ads.googleads_v4.types.HotelPerformanceView` instance. Raises: google.api_core.exceptions.GoogleAPICallError: If the request @@ -200,17 +201,25 @@ def get_hotel_performance_view( """ # Wrap the transport method to add retry and timeout logic. if 'get_hotel_performance_view' not in self._inner_api_calls: - self._inner_api_calls[ - 'get_hotel_performance_view'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.get_hotel_performance_view, - default_retry=self. - _method_configs['GetHotelPerformanceView'].retry, - default_timeout=self. - _method_configs['GetHotelPerformanceView'].timeout, - client_info=self._client_info, - ) + self._inner_api_calls['get_hotel_performance_view'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.get_hotel_performance_view, + default_retry=self._method_configs['GetHotelPerformanceView'].retry, + default_timeout=self._method_configs['GetHotelPerformanceView'].timeout, + client_info=self._client_info, + ) request = hotel_performance_view_service_pb2.GetHotelPerformanceViewRequest( - resource_name=resource_name, ) - return self._inner_api_calls['get_hotel_performance_view']( - request, retry=retry, timeout=timeout, metadata=metadata) + resource_name=resource_name, + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [('resource_name', resource_name)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata(routing_header) + metadata.append(routing_metadata) + + return self._inner_api_calls['get_hotel_performance_view'](request, retry=retry, timeout=timeout, metadata=metadata) diff --git a/google/ads/google_ads/v4/services/hotel_performance_view_service_client_config.py b/google/ads/google_ads/v4/services/hotel_performance_view_service_client_config.py new file mode 100644 index 000000000..de953afee --- /dev/null +++ b/google/ads/google_ads/v4/services/hotel_performance_view_service_client_config.py @@ -0,0 +1,31 @@ +config = { + "interfaces": { + "google.ads.googleads.v4.services.HotelPerformanceViewService": { + "retry_codes": { + "idempotent": [ + "DEADLINE_EXCEEDED", + "UNAVAILABLE" + ], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 5000, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 3600000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 3600000, + "total_timeout_millis": 3600000 + } + }, + "methods": { + "GetHotelPerformanceView": { + "timeout_millis": 60000, + "retry_codes_name": "idempotent", + "retry_params_name": "default" + } + } + } + } +} diff --git a/google/ads/google_ads/v4/services/income_range_view_service_client.py b/google/ads/google_ads/v4/services/income_range_view_service_client.py new file mode 100644 index 000000000..c49d6854b --- /dev/null +++ b/google/ads/google_ads/v4/services/income_range_view_service_client.py @@ -0,0 +1,226 @@ +# -*- coding: utf-8 -*- +# +# 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. + +"""Accesses the google.ads.googleads.v4.services IncomeRangeViewService API.""" + +import pkg_resources +import warnings + +from google.oauth2 import service_account +import google.api_core.gapic_v1.client_info +import google.api_core.gapic_v1.config +import google.api_core.gapic_v1.method +import google.api_core.gapic_v1.routing_header +import google.api_core.grpc_helpers +import google.api_core.path_template + +from google.ads.google_ads.v4.services import income_range_view_service_client_config +from google.ads.google_ads.v4.services.transports import income_range_view_service_grpc_transport +from google.ads.google_ads.v4.proto.services import income_range_view_service_pb2 + + + +_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( + 'google-ads', +).version + + +class IncomeRangeViewServiceClient(object): + """Service to manage income range views.""" + + SERVICE_ADDRESS = 'googleads.googleapis.com:443' + """The default address of the service.""" + + # The name of the interface for this client. This is the key used to + # find the method configuration in the client_config dictionary. + _INTERFACE_NAME = 'google.ads.googleads.v4.services.IncomeRangeViewService' + + + @classmethod + def from_service_account_file(cls, filename, *args, **kwargs): + """Creates an instance of this client using the provided credentials + file. + + Args: + filename (str): The path to the service account private key json + file. + args: Additional arguments to pass to the constructor. + kwargs: Additional arguments to pass to the constructor. + + Returns: + IncomeRangeViewServiceClient: The constructed client. + """ + credentials = service_account.Credentials.from_service_account_file( + filename) + kwargs['credentials'] = credentials + return cls(*args, **kwargs) + + from_service_account_json = from_service_account_file + + + @classmethod + def income_range_view_path(cls, customer, income_range_view): + """Return a fully-qualified income_range_view string.""" + return google.api_core.path_template.expand( + 'customers/{customer}/incomeRangeViews/{income_range_view}', + customer=customer, + income_range_view=income_range_view, + ) + + def __init__(self, transport=None, channel=None, credentials=None, + client_config=None, client_info=None): + """Constructor. + + Args: + transport (Union[~.IncomeRangeViewServiceGrpcTransport, + Callable[[~.Credentials, type], ~.IncomeRangeViewServiceGrpcTransport]): A transport + instance, responsible for actually making the API calls. + The default transport uses the gRPC protocol. + This argument may also be a callable which returns a + transport instance. Callables will be sent the credentials + as the first argument and the default transport class as + the second argument. + channel (grpc.Channel): DEPRECATED. A ``Channel`` instance + through which to make calls. This argument is mutually exclusive + with ``credentials``; providing both will raise an exception. + credentials (google.auth.credentials.Credentials): The + authorization credentials to attach to requests. These + credentials identify this application to the service. If none + are specified, the client will attempt to ascertain the + credentials from the environment. + This argument is mutually exclusive with providing a + transport instance to ``transport``; doing so will raise + an exception. + client_config (dict): DEPRECATED. A dictionary of call options for + each method. If not specified, the default configuration is used. + client_info (google.api_core.gapic_v1.client_info.ClientInfo): + The client info used to send a user-agent string along with + API requests. If ``None``, then default info will be used. + Generally, you only need to set this if you're developing + your own client library. + """ + # Raise deprecation warnings for things we want to go away. + if client_config is not None: + warnings.warn('The `client_config` argument is deprecated.', + PendingDeprecationWarning, stacklevel=2) + else: + client_config = income_range_view_service_client_config.config + + if channel: + warnings.warn('The `channel` argument is deprecated; use ' + '`transport` instead.', + PendingDeprecationWarning, stacklevel=2) + + # Instantiate the transport. + # The transport is responsible for handling serialization and + # deserialization and actually sending data to the service. + if transport: + if callable(transport): + self.transport = transport( + credentials=credentials, + default_class=income_range_view_service_grpc_transport.IncomeRangeViewServiceGrpcTransport, + ) + else: + if credentials: + raise ValueError( + 'Received both a transport instance and ' + 'credentials; these are mutually exclusive.' + ) + self.transport = transport + else: + self.transport = income_range_view_service_grpc_transport.IncomeRangeViewServiceGrpcTransport( + address=self.SERVICE_ADDRESS, + channel=channel, + credentials=credentials, + ) + + if client_info is None: + client_info = google.api_core.gapic_v1.client_info.ClientInfo( + gapic_version=_GAPIC_LIBRARY_VERSION, + ) + else: + client_info.gapic_version = _GAPIC_LIBRARY_VERSION + self._client_info = client_info + + # Parse out the default settings for retry and timeout for each RPC + # from the client configuration. + # (Ordinarily, these are the defaults specified in the `*_config.py` + # file next to this one.) + self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( + client_config['interfaces'][self._INTERFACE_NAME], + ) + + # Save a dictionary of cached API call functions. + # These are the actual callables which invoke the proper + # transport methods, wrapped with `wrap_method` to add retry, + # timeout, and the like. + self._inner_api_calls = {} + + # Service calls + def get_income_range_view( + self, + resource_name, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None): + """ + Returns the requested income range view in full detail. + + Args: + resource_name (str): Required. The resource name of the income range view to fetch. + retry (Optional[google.api_core.retry.Retry]): A retry object used + to retry requests. If ``None`` is specified, requests will not + be retried. + timeout (Optional[float]): The amount of time, in seconds, to wait + for the request to complete. Note that if ``retry`` is + specified, the timeout applies to each individual attempt. + metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata + that is provided to the method. + + Returns: + A :class:`~google.ads.googleads_v4.types.IncomeRangeView` instance. + + Raises: + google.api_core.exceptions.GoogleAPICallError: If the request + failed for any reason. + google.api_core.exceptions.RetryError: If the request failed due + to a retryable error and retry attempts failed. + ValueError: If the parameters are invalid. + """ + # Wrap the transport method to add retry and timeout logic. + if 'get_income_range_view' not in self._inner_api_calls: + self._inner_api_calls['get_income_range_view'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.get_income_range_view, + default_retry=self._method_configs['GetIncomeRangeView'].retry, + default_timeout=self._method_configs['GetIncomeRangeView'].timeout, + client_info=self._client_info, + ) + + request = income_range_view_service_pb2.GetIncomeRangeViewRequest( + resource_name=resource_name, + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [('resource_name', resource_name)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata(routing_header) + metadata.append(routing_metadata) + + return self._inner_api_calls['get_income_range_view'](request, retry=retry, timeout=timeout, metadata=metadata) diff --git a/google/ads/google_ads/v4/services/income_range_view_service_client_config.py b/google/ads/google_ads/v4/services/income_range_view_service_client_config.py new file mode 100644 index 000000000..2dc8f59d7 --- /dev/null +++ b/google/ads/google_ads/v4/services/income_range_view_service_client_config.py @@ -0,0 +1,31 @@ +config = { + "interfaces": { + "google.ads.googleads.v4.services.IncomeRangeViewService": { + "retry_codes": { + "idempotent": [ + "DEADLINE_EXCEEDED", + "UNAVAILABLE" + ], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 5000, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 3600000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 3600000, + "total_timeout_millis": 3600000 + } + }, + "methods": { + "GetIncomeRangeView": { + "timeout_millis": 60000, + "retry_codes_name": "idempotent", + "retry_params_name": "default" + } + } + } + } +} diff --git a/google/ads/google_ads/v4/services/invoice_service_client.py b/google/ads/google_ads/v4/services/invoice_service_client.py new file mode 100644 index 000000000..f474b3b86 --- /dev/null +++ b/google/ads/google_ads/v4/services/invoice_service_client.py @@ -0,0 +1,227 @@ +# -*- coding: utf-8 -*- +# +# 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. + +"""Accesses the google.ads.googleads.v4.services InvoiceService API.""" + +import pkg_resources +import warnings + +from google.oauth2 import service_account +import google.api_core.gapic_v1.client_info +import google.api_core.gapic_v1.config +import google.api_core.gapic_v1.method +import google.api_core.gapic_v1.routing_header +import google.api_core.grpc_helpers + +from google.ads.google_ads.v4.services import invoice_service_client_config +from google.ads.google_ads.v4.services.transports import invoice_service_grpc_transport +from google.ads.google_ads.v4.proto.services import invoice_service_pb2 + + + +_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( + 'google-ads', +).version + + +class InvoiceServiceClient(object): + """A service to fetch invoices issued for a billing setup during a given month.""" + + SERVICE_ADDRESS = 'googleads.googleapis.com:443' + """The default address of the service.""" + + # The name of the interface for this client. This is the key used to + # find the method configuration in the client_config dictionary. + _INTERFACE_NAME = 'google.ads.googleads.v4.services.InvoiceService' + + + @classmethod + def from_service_account_file(cls, filename, *args, **kwargs): + """Creates an instance of this client using the provided credentials + file. + + Args: + filename (str): The path to the service account private key json + file. + args: Additional arguments to pass to the constructor. + kwargs: Additional arguments to pass to the constructor. + + Returns: + InvoiceServiceClient: The constructed client. + """ + credentials = service_account.Credentials.from_service_account_file( + filename) + kwargs['credentials'] = credentials + return cls(*args, **kwargs) + + from_service_account_json = from_service_account_file + + def __init__(self, transport=None, channel=None, credentials=None, + client_config=None, client_info=None): + """Constructor. + + Args: + transport (Union[~.InvoiceServiceGrpcTransport, + Callable[[~.Credentials, type], ~.InvoiceServiceGrpcTransport]): A transport + instance, responsible for actually making the API calls. + The default transport uses the gRPC protocol. + This argument may also be a callable which returns a + transport instance. Callables will be sent the credentials + as the first argument and the default transport class as + the second argument. + channel (grpc.Channel): DEPRECATED. A ``Channel`` instance + through which to make calls. This argument is mutually exclusive + with ``credentials``; providing both will raise an exception. + credentials (google.auth.credentials.Credentials): The + authorization credentials to attach to requests. These + credentials identify this application to the service. If none + are specified, the client will attempt to ascertain the + credentials from the environment. + This argument is mutually exclusive with providing a + transport instance to ``transport``; doing so will raise + an exception. + client_config (dict): DEPRECATED. A dictionary of call options for + each method. If not specified, the default configuration is used. + client_info (google.api_core.gapic_v1.client_info.ClientInfo): + The client info used to send a user-agent string along with + API requests. If ``None``, then default info will be used. + Generally, you only need to set this if you're developing + your own client library. + """ + # Raise deprecation warnings for things we want to go away. + if client_config is not None: + warnings.warn('The `client_config` argument is deprecated.', + PendingDeprecationWarning, stacklevel=2) + else: + client_config = invoice_service_client_config.config + + if channel: + warnings.warn('The `channel` argument is deprecated; use ' + '`transport` instead.', + PendingDeprecationWarning, stacklevel=2) + + # Instantiate the transport. + # The transport is responsible for handling serialization and + # deserialization and actually sending data to the service. + if transport: + if callable(transport): + self.transport = transport( + credentials=credentials, + default_class=invoice_service_grpc_transport.InvoiceServiceGrpcTransport, + ) + else: + if credentials: + raise ValueError( + 'Received both a transport instance and ' + 'credentials; these are mutually exclusive.' + ) + self.transport = transport + else: + self.transport = invoice_service_grpc_transport.InvoiceServiceGrpcTransport( + address=self.SERVICE_ADDRESS, + channel=channel, + credentials=credentials, + ) + + if client_info is None: + client_info = google.api_core.gapic_v1.client_info.ClientInfo( + gapic_version=_GAPIC_LIBRARY_VERSION, + ) + else: + client_info.gapic_version = _GAPIC_LIBRARY_VERSION + self._client_info = client_info + + # Parse out the default settings for retry and timeout for each RPC + # from the client configuration. + # (Ordinarily, these are the defaults specified in the `*_config.py` + # file next to this one.) + self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( + client_config['interfaces'][self._INTERFACE_NAME], + ) + + # Save a dictionary of cached API call functions. + # These are the actual callables which invoke the proper + # transport methods, wrapped with `wrap_method` to add retry, + # timeout, and the like. + self._inner_api_calls = {} + + # Service calls + def list_invoices( + self, + customer_id, + billing_setup, + issue_year, + issue_month, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None): + """ + Returns all invoices associated with a billing setup, for a given month. + + Args: + customer_id (str): Required. The ID of the customer to fetch invoices for. + billing_setup (str): Required. The billing setup resource name of the requested invoices. + + ``customers/{customer_id}/billingSetups/{billing_setup_id}`` + issue_year (str): Required. The issue year to retrieve invoices, in yyyy format. Only + invoices issued in 2019 or later can be retrieved. + issue_month (~google.ads.googleads_v4.types.MonthOfYear): Required. The issue month to retrieve invoices. + retry (Optional[google.api_core.retry.Retry]): A retry object used + to retry requests. If ``None`` is specified, requests will not + be retried. + timeout (Optional[float]): The amount of time, in seconds, to wait + for the request to complete. Note that if ``retry`` is + specified, the timeout applies to each individual attempt. + metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata + that is provided to the method. + + Returns: + A :class:`~google.ads.googleads_v4.types.ListInvoicesResponse` instance. + + Raises: + google.api_core.exceptions.GoogleAPICallError: If the request + failed for any reason. + google.api_core.exceptions.RetryError: If the request failed due + to a retryable error and retry attempts failed. + ValueError: If the parameters are invalid. + """ + # Wrap the transport method to add retry and timeout logic. + if 'list_invoices' not in self._inner_api_calls: + self._inner_api_calls['list_invoices'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.list_invoices, + default_retry=self._method_configs['ListInvoices'].retry, + default_timeout=self._method_configs['ListInvoices'].timeout, + client_info=self._client_info, + ) + + request = invoice_service_pb2.ListInvoicesRequest( + customer_id=customer_id, + billing_setup=billing_setup, + issue_year=issue_year, + issue_month=issue_month, + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [('customer_id', customer_id)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata(routing_header) + metadata.append(routing_metadata) + + return self._inner_api_calls['list_invoices'](request, retry=retry, timeout=timeout, metadata=metadata) diff --git a/google/ads/google_ads/v4/services/invoice_service_client_config.py b/google/ads/google_ads/v4/services/invoice_service_client_config.py new file mode 100644 index 000000000..9d107253d --- /dev/null +++ b/google/ads/google_ads/v4/services/invoice_service_client_config.py @@ -0,0 +1,31 @@ +config = { + "interfaces": { + "google.ads.googleads.v4.services.InvoiceService": { + "retry_codes": { + "idempotent": [ + "DEADLINE_EXCEEDED", + "UNAVAILABLE" + ], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 5000, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 3600000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 3600000, + "total_timeout_millis": 3600000 + } + }, + "methods": { + "ListInvoices": { + "timeout_millis": 60000, + "retry_codes_name": "idempotent", + "retry_params_name": "default" + } + } + } + } +} diff --git a/google/ads/google_ads/v4/services/keyword_plan_ad_group_keyword_service_client.py b/google/ads/google_ads/v4/services/keyword_plan_ad_group_keyword_service_client.py new file mode 100644 index 000000000..ece8dbccd --- /dev/null +++ b/google/ads/google_ads/v4/services/keyword_plan_ad_group_keyword_service_client.py @@ -0,0 +1,306 @@ +# -*- coding: utf-8 -*- +# +# 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. + +"""Accesses the google.ads.googleads.v4.services KeywordPlanAdGroupKeywordService API.""" + +import pkg_resources +import warnings + +from google.oauth2 import service_account +import google.api_core.gapic_v1.client_info +import google.api_core.gapic_v1.config +import google.api_core.gapic_v1.method +import google.api_core.gapic_v1.routing_header +import google.api_core.grpc_helpers +import google.api_core.path_template + +from google.ads.google_ads.v4.services import keyword_plan_ad_group_keyword_service_client_config +from google.ads.google_ads.v4.services.transports import keyword_plan_ad_group_keyword_service_grpc_transport +from google.ads.google_ads.v4.proto.services import keyword_plan_ad_group_keyword_service_pb2 + + + +_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( + 'google-ads', +).version + + +class KeywordPlanAdGroupKeywordServiceClient(object): + """ + Service to manage Keyword Plan ad group keywords. KeywordPlanAdGroup is + required to add ad group keywords. Positive and negative keywords are + supported. A maximum of 10,000 positive keywords are allowed per keyword + plan. A maximum of 1,000 negative keywords are allower per keyword plan. This + includes campaign negative keywords and ad group negative keywords. + """ + + SERVICE_ADDRESS = 'googleads.googleapis.com:443' + """The default address of the service.""" + + # The name of the interface for this client. This is the key used to + # find the method configuration in the client_config dictionary. + _INTERFACE_NAME = 'google.ads.googleads.v4.services.KeywordPlanAdGroupKeywordService' + + + @classmethod + def from_service_account_file(cls, filename, *args, **kwargs): + """Creates an instance of this client using the provided credentials + file. + + Args: + filename (str): The path to the service account private key json + file. + args: Additional arguments to pass to the constructor. + kwargs: Additional arguments to pass to the constructor. + + Returns: + KeywordPlanAdGroupKeywordServiceClient: The constructed client. + """ + credentials = service_account.Credentials.from_service_account_file( + filename) + kwargs['credentials'] = credentials + return cls(*args, **kwargs) + + from_service_account_json = from_service_account_file + + + @classmethod + def keyword_plan_ad_group_keyword_path(cls, customer, keyword_plan_ad_group_keyword): + """Return a fully-qualified keyword_plan_ad_group_keyword string.""" + return google.api_core.path_template.expand( + 'customers/{customer}/keywordPlanAdGroupKeywords/{keyword_plan_ad_group_keyword}', + customer=customer, + keyword_plan_ad_group_keyword=keyword_plan_ad_group_keyword, + ) + + def __init__(self, transport=None, channel=None, credentials=None, + client_config=None, client_info=None): + """Constructor. + + Args: + transport (Union[~.KeywordPlanAdGroupKeywordServiceGrpcTransport, + Callable[[~.Credentials, type], ~.KeywordPlanAdGroupKeywordServiceGrpcTransport]): A transport + instance, responsible for actually making the API calls. + The default transport uses the gRPC protocol. + This argument may also be a callable which returns a + transport instance. Callables will be sent the credentials + as the first argument and the default transport class as + the second argument. + channel (grpc.Channel): DEPRECATED. A ``Channel`` instance + through which to make calls. This argument is mutually exclusive + with ``credentials``; providing both will raise an exception. + credentials (google.auth.credentials.Credentials): The + authorization credentials to attach to requests. These + credentials identify this application to the service. If none + are specified, the client will attempt to ascertain the + credentials from the environment. + This argument is mutually exclusive with providing a + transport instance to ``transport``; doing so will raise + an exception. + client_config (dict): DEPRECATED. A dictionary of call options for + each method. If not specified, the default configuration is used. + client_info (google.api_core.gapic_v1.client_info.ClientInfo): + The client info used to send a user-agent string along with + API requests. If ``None``, then default info will be used. + Generally, you only need to set this if you're developing + your own client library. + """ + # Raise deprecation warnings for things we want to go away. + if client_config is not None: + warnings.warn('The `client_config` argument is deprecated.', + PendingDeprecationWarning, stacklevel=2) + else: + client_config = keyword_plan_ad_group_keyword_service_client_config.config + + if channel: + warnings.warn('The `channel` argument is deprecated; use ' + '`transport` instead.', + PendingDeprecationWarning, stacklevel=2) + + # Instantiate the transport. + # The transport is responsible for handling serialization and + # deserialization and actually sending data to the service. + if transport: + if callable(transport): + self.transport = transport( + credentials=credentials, + default_class=keyword_plan_ad_group_keyword_service_grpc_transport.KeywordPlanAdGroupKeywordServiceGrpcTransport, + ) + else: + if credentials: + raise ValueError( + 'Received both a transport instance and ' + 'credentials; these are mutually exclusive.' + ) + self.transport = transport + else: + self.transport = keyword_plan_ad_group_keyword_service_grpc_transport.KeywordPlanAdGroupKeywordServiceGrpcTransport( + address=self.SERVICE_ADDRESS, + channel=channel, + credentials=credentials, + ) + + if client_info is None: + client_info = google.api_core.gapic_v1.client_info.ClientInfo( + gapic_version=_GAPIC_LIBRARY_VERSION, + ) + else: + client_info.gapic_version = _GAPIC_LIBRARY_VERSION + self._client_info = client_info + + # Parse out the default settings for retry and timeout for each RPC + # from the client configuration. + # (Ordinarily, these are the defaults specified in the `*_config.py` + # file next to this one.) + self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( + client_config['interfaces'][self._INTERFACE_NAME], + ) + + # Save a dictionary of cached API call functions. + # These are the actual callables which invoke the proper + # transport methods, wrapped with `wrap_method` to add retry, + # timeout, and the like. + self._inner_api_calls = {} + + # Service calls + def get_keyword_plan_ad_group_keyword( + self, + resource_name, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None): + """ + Returns the requested Keyword Plan ad group keyword in full detail. + + Args: + resource_name (str): Required. The resource name of the ad group keyword to fetch. + retry (Optional[google.api_core.retry.Retry]): A retry object used + to retry requests. If ``None`` is specified, requests will not + be retried. + timeout (Optional[float]): The amount of time, in seconds, to wait + for the request to complete. Note that if ``retry`` is + specified, the timeout applies to each individual attempt. + metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata + that is provided to the method. + + Returns: + A :class:`~google.ads.googleads_v4.types.KeywordPlanAdGroupKeyword` instance. + + Raises: + google.api_core.exceptions.GoogleAPICallError: If the request + failed for any reason. + google.api_core.exceptions.RetryError: If the request failed due + to a retryable error and retry attempts failed. + ValueError: If the parameters are invalid. + """ + # Wrap the transport method to add retry and timeout logic. + if 'get_keyword_plan_ad_group_keyword' not in self._inner_api_calls: + self._inner_api_calls['get_keyword_plan_ad_group_keyword'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.get_keyword_plan_ad_group_keyword, + default_retry=self._method_configs['GetKeywordPlanAdGroupKeyword'].retry, + default_timeout=self._method_configs['GetKeywordPlanAdGroupKeyword'].timeout, + client_info=self._client_info, + ) + + request = keyword_plan_ad_group_keyword_service_pb2.GetKeywordPlanAdGroupKeywordRequest( + resource_name=resource_name, + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [('resource_name', resource_name)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata(routing_header) + metadata.append(routing_metadata) + + return self._inner_api_calls['get_keyword_plan_ad_group_keyword'](request, retry=retry, timeout=timeout, metadata=metadata) + + def mutate_keyword_plan_ad_group_keywords( + self, + customer_id, + operations, + partial_failure=None, + validate_only=None, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None): + """ + Creates, updates, or removes Keyword Plan ad group keywords. Operation + statuses are returned. + + Args: + customer_id (str): Required. The ID of the customer whose Keyword Plan ad group keywords are being + modified. + operations (list[Union[dict, ~google.ads.googleads_v4.types.KeywordPlanAdGroupKeywordOperation]]): Required. The list of operations to perform on individual Keyword Plan ad group + keywords. + + If a dict is provided, it must be of the same form as the protobuf + message :class:`~google.ads.googleads_v4.types.KeywordPlanAdGroupKeywordOperation` + partial_failure (bool): If true, successful operations will be carried out and invalid + operations will return errors. If false, all operations will be carried + out in one transaction if and only if they are all valid. + Default is false. + validate_only (bool): If true, the request is validated but not executed. Only errors are + returned, not results. + retry (Optional[google.api_core.retry.Retry]): A retry object used + to retry requests. If ``None`` is specified, requests will not + be retried. + timeout (Optional[float]): The amount of time, in seconds, to wait + for the request to complete. Note that if ``retry`` is + specified, the timeout applies to each individual attempt. + metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata + that is provided to the method. + + Returns: + A :class:`~google.ads.googleads_v4.types.MutateKeywordPlanAdGroupKeywordsResponse` instance. + + Raises: + google.api_core.exceptions.GoogleAPICallError: If the request + failed for any reason. + google.api_core.exceptions.RetryError: If the request failed due + to a retryable error and retry attempts failed. + ValueError: If the parameters are invalid. + """ + # Wrap the transport method to add retry and timeout logic. + if 'mutate_keyword_plan_ad_group_keywords' not in self._inner_api_calls: + self._inner_api_calls['mutate_keyword_plan_ad_group_keywords'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.mutate_keyword_plan_ad_group_keywords, + default_retry=self._method_configs['MutateKeywordPlanAdGroupKeywords'].retry, + default_timeout=self._method_configs['MutateKeywordPlanAdGroupKeywords'].timeout, + client_info=self._client_info, + ) + + request = keyword_plan_ad_group_keyword_service_pb2.MutateKeywordPlanAdGroupKeywordsRequest( + customer_id=customer_id, + operations=operations, + partial_failure=partial_failure, + validate_only=validate_only, + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [('customer_id', customer_id)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata(routing_header) + metadata.append(routing_metadata) + + return self._inner_api_calls['mutate_keyword_plan_ad_group_keywords'](request, retry=retry, timeout=timeout, metadata=metadata) diff --git a/google/ads/google_ads/v4/services/keyword_plan_ad_group_keyword_service_client_config.py b/google/ads/google_ads/v4/services/keyword_plan_ad_group_keyword_service_client_config.py new file mode 100644 index 000000000..8364a26a3 --- /dev/null +++ b/google/ads/google_ads/v4/services/keyword_plan_ad_group_keyword_service_client_config.py @@ -0,0 +1,36 @@ +config = { + "interfaces": { + "google.ads.googleads.v4.services.KeywordPlanAdGroupKeywordService": { + "retry_codes": { + "idempotent": [ + "DEADLINE_EXCEEDED", + "UNAVAILABLE" + ], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 5000, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 3600000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 3600000, + "total_timeout_millis": 3600000 + } + }, + "methods": { + "GetKeywordPlanAdGroupKeyword": { + "timeout_millis": 60000, + "retry_codes_name": "idempotent", + "retry_params_name": "default" + }, + "MutateKeywordPlanAdGroupKeywords": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + } + } + } + } +} diff --git a/google/ads/google_ads/v1/services/keyword_plan_ad_group_service_client.py b/google/ads/google_ads/v4/services/keyword_plan_ad_group_service_client.py similarity index 75% rename from google/ads/google_ads/v1/services/keyword_plan_ad_group_service_client.py rename to google/ads/google_ads/v4/services/keyword_plan_ad_group_service_client.py index 911e141ad..3cf3a74ae 100644 --- a/google/ads/google_ads/v1/services/keyword_plan_ad_group_service_client.py +++ b/google/ads/google_ads/v4/services/keyword_plan_ad_group_service_client.py @@ -13,7 +13,8 @@ # 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. -"""Accesses the google.ads.googleads.v1.services KeywordPlanAdGroupService API.""" + +"""Accesses the google.ads.googleads.v4.services KeywordPlanAdGroupService API.""" import pkg_resources import warnings @@ -22,15 +23,19 @@ import google.api_core.gapic_v1.client_info import google.api_core.gapic_v1.config import google.api_core.gapic_v1.method +import google.api_core.gapic_v1.routing_header import google.api_core.grpc_helpers import google.api_core.path_template -from google.ads.google_ads.v1.services import keyword_plan_ad_group_service_client_config -from google.ads.google_ads.v1.services.transports import keyword_plan_ad_group_service_grpc_transport -from google.ads.google_ads.v1.proto.services import keyword_plan_ad_group_service_pb2 +from google.ads.google_ads.v4.services import keyword_plan_ad_group_service_client_config +from google.ads.google_ads.v4.services.transports import keyword_plan_ad_group_service_grpc_transport +from google.ads.google_ads.v4.proto.services import keyword_plan_ad_group_service_pb2 + + _GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( - 'google-ads', ).version + 'google-ads', +).version class KeywordPlanAdGroupServiceClient(object): @@ -41,7 +46,8 @@ class KeywordPlanAdGroupServiceClient(object): # The name of the interface for this client. This is the key used to # find the method configuration in the client_config dictionary. - _INTERFACE_NAME = 'google.ads.googleads.v1.services.KeywordPlanAdGroupService' + _INTERFACE_NAME = 'google.ads.googleads.v4.services.KeywordPlanAdGroupService' + @classmethod def from_service_account_file(cls, filename, *args, **kwargs): @@ -64,6 +70,7 @@ def from_service_account_file(cls, filename, *args, **kwargs): from_service_account_json = from_service_account_file + @classmethod def keyword_plan_ad_group_path(cls, customer, keyword_plan_ad_group): """Return a fully-qualified keyword_plan_ad_group string.""" @@ -73,12 +80,8 @@ def keyword_plan_ad_group_path(cls, customer, keyword_plan_ad_group): keyword_plan_ad_group=keyword_plan_ad_group, ) - def __init__(self, - transport=None, - channel=None, - credentials=None, - client_config=None, - client_info=None): + def __init__(self, transport=None, channel=None, credentials=None, + client_config=None, client_info=None): """Constructor. Args: @@ -111,19 +114,15 @@ def __init__(self, """ # Raise deprecation warnings for things we want to go away. if client_config is not None: - warnings.warn( - 'The `client_config` argument is deprecated.', - PendingDeprecationWarning, - stacklevel=2) + warnings.warn('The `client_config` argument is deprecated.', + PendingDeprecationWarning, stacklevel=2) else: client_config = keyword_plan_ad_group_service_client_config.config if channel: - warnings.warn( - 'The `channel` argument is deprecated; use ' - '`transport` instead.', - PendingDeprecationWarning, - stacklevel=2) + warnings.warn('The `channel` argument is deprecated; use ' + '`transport` instead.', + PendingDeprecationWarning, stacklevel=2) # Instantiate the transport. # The transport is responsible for handling serialization and @@ -132,14 +131,14 @@ def __init__(self, if callable(transport): self.transport = transport( credentials=credentials, - default_class=keyword_plan_ad_group_service_grpc_transport. - KeywordPlanAdGroupServiceGrpcTransport, + default_class=keyword_plan_ad_group_service_grpc_transport.KeywordPlanAdGroupServiceGrpcTransport, ) else: if credentials: raise ValueError( 'Received both a transport instance and ' - 'credentials; these are mutually exclusive.') + 'credentials; these are mutually exclusive.' + ) self.transport = transport else: self.transport = keyword_plan_ad_group_service_grpc_transport.KeywordPlanAdGroupServiceGrpcTransport( @@ -150,7 +149,8 @@ def __init__(self, if client_info is None: client_info = google.api_core.gapic_v1.client_info.ClientInfo( - gapic_version=_GAPIC_LIBRARY_VERSION, ) + gapic_version=_GAPIC_LIBRARY_VERSION, + ) else: client_info.gapic_version = _GAPIC_LIBRARY_VERSION self._client_info = client_info @@ -160,7 +160,8 @@ def __init__(self, # (Ordinarily, these are the defaults specified in the `*_config.py` # file next to this one.) self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( - client_config['interfaces'][self._INTERFACE_NAME], ) + client_config['interfaces'][self._INTERFACE_NAME], + ) # Save a dictionary of cached API call functions. # These are the actual callables which invoke the proper @@ -179,7 +180,7 @@ def get_keyword_plan_ad_group( Returns the requested Keyword Plan ad group in full detail. Args: - resource_name (str): The resource name of the Keyword Plan ad group to fetch. + resource_name (str): Required. The resource name of the Keyword Plan ad group to fetch. retry (Optional[google.api_core.retry.Retry]): A retry object used to retry requests. If ``None`` is specified, requests will not be retried. @@ -190,7 +191,7 @@ def get_keyword_plan_ad_group( that is provided to the method. Returns: - A :class:`~google.ads.googleads_v1.types.KeywordPlanAdGroup` instance. + A :class:`~google.ads.googleads_v4.types.KeywordPlanAdGroup` instance. Raises: google.api_core.exceptions.GoogleAPICallError: If the request @@ -201,20 +202,28 @@ def get_keyword_plan_ad_group( """ # Wrap the transport method to add retry and timeout logic. if 'get_keyword_plan_ad_group' not in self._inner_api_calls: - self._inner_api_calls[ - 'get_keyword_plan_ad_group'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.get_keyword_plan_ad_group, - default_retry=self. - _method_configs['GetKeywordPlanAdGroup'].retry, - default_timeout=self. - _method_configs['GetKeywordPlanAdGroup'].timeout, - client_info=self._client_info, - ) + self._inner_api_calls['get_keyword_plan_ad_group'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.get_keyword_plan_ad_group, + default_retry=self._method_configs['GetKeywordPlanAdGroup'].retry, + default_timeout=self._method_configs['GetKeywordPlanAdGroup'].timeout, + client_info=self._client_info, + ) request = keyword_plan_ad_group_service_pb2.GetKeywordPlanAdGroupRequest( - resource_name=resource_name, ) - return self._inner_api_calls['get_keyword_plan_ad_group']( - request, retry=retry, timeout=timeout, metadata=metadata) + resource_name=resource_name, + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [('resource_name', resource_name)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata(routing_header) + metadata.append(routing_metadata) + + return self._inner_api_calls['get_keyword_plan_ad_group'](request, retry=retry, timeout=timeout, metadata=metadata) def mutate_keyword_plan_ad_groups( self, @@ -230,11 +239,11 @@ def mutate_keyword_plan_ad_groups( returned. Args: - customer_id (str): The ID of the customer whose Keyword Plan ad groups are being modified. - operations (list[Union[dict, ~google.ads.googleads_v1.types.KeywordPlanAdGroupOperation]]): The list of operations to perform on individual Keyword Plan ad groups. + customer_id (str): Required. The ID of the customer whose Keyword Plan ad groups are being modified. + operations (list[Union[dict, ~google.ads.googleads_v4.types.KeywordPlanAdGroupOperation]]): Required. The list of operations to perform on individual Keyword Plan ad groups. If a dict is provided, it must be of the same form as the protobuf - message :class:`~google.ads.googleads_v1.types.KeywordPlanAdGroupOperation` + message :class:`~google.ads.googleads_v4.types.KeywordPlanAdGroupOperation` partial_failure (bool): If true, successful operations will be carried out and invalid operations will return errors. If false, all operations will be carried out in one transaction if and only if they are all valid. @@ -251,7 +260,7 @@ def mutate_keyword_plan_ad_groups( that is provided to the method. Returns: - A :class:`~google.ads.googleads_v1.types.MutateKeywordPlanAdGroupsResponse` instance. + A :class:`~google.ads.googleads_v4.types.MutateKeywordPlanAdGroupsResponse` instance. Raises: google.api_core.exceptions.GoogleAPICallError: If the request @@ -262,15 +271,12 @@ def mutate_keyword_plan_ad_groups( """ # Wrap the transport method to add retry and timeout logic. if 'mutate_keyword_plan_ad_groups' not in self._inner_api_calls: - self._inner_api_calls[ - 'mutate_keyword_plan_ad_groups'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.mutate_keyword_plan_ad_groups, - default_retry=self. - _method_configs['MutateKeywordPlanAdGroups'].retry, - default_timeout=self. - _method_configs['MutateKeywordPlanAdGroups'].timeout, - client_info=self._client_info, - ) + self._inner_api_calls['mutate_keyword_plan_ad_groups'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.mutate_keyword_plan_ad_groups, + default_retry=self._method_configs['MutateKeywordPlanAdGroups'].retry, + default_timeout=self._method_configs['MutateKeywordPlanAdGroups'].timeout, + client_info=self._client_info, + ) request = keyword_plan_ad_group_service_pb2.MutateKeywordPlanAdGroupsRequest( customer_id=customer_id, @@ -278,5 +284,15 @@ def mutate_keyword_plan_ad_groups( partial_failure=partial_failure, validate_only=validate_only, ) - return self._inner_api_calls['mutate_keyword_plan_ad_groups']( - request, retry=retry, timeout=timeout, metadata=metadata) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [('customer_id', customer_id)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata(routing_header) + metadata.append(routing_metadata) + + return self._inner_api_calls['mutate_keyword_plan_ad_groups'](request, retry=retry, timeout=timeout, metadata=metadata) diff --git a/google/ads/google_ads/v4/services/keyword_plan_ad_group_service_client_config.py b/google/ads/google_ads/v4/services/keyword_plan_ad_group_service_client_config.py new file mode 100644 index 000000000..bdc57c3f3 --- /dev/null +++ b/google/ads/google_ads/v4/services/keyword_plan_ad_group_service_client_config.py @@ -0,0 +1,36 @@ +config = { + "interfaces": { + "google.ads.googleads.v4.services.KeywordPlanAdGroupService": { + "retry_codes": { + "idempotent": [ + "DEADLINE_EXCEEDED", + "UNAVAILABLE" + ], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 5000, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 3600000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 3600000, + "total_timeout_millis": 3600000 + } + }, + "methods": { + "GetKeywordPlanAdGroup": { + "timeout_millis": 60000, + "retry_codes_name": "idempotent", + "retry_params_name": "default" + }, + "MutateKeywordPlanAdGroups": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + } + } + } + } +} diff --git a/google/ads/google_ads/v4/services/keyword_plan_campaign_keyword_service_client.py b/google/ads/google_ads/v4/services/keyword_plan_campaign_keyword_service_client.py new file mode 100644 index 000000000..38b53f420 --- /dev/null +++ b/google/ads/google_ads/v4/services/keyword_plan_campaign_keyword_service_client.py @@ -0,0 +1,304 @@ +# -*- coding: utf-8 -*- +# +# 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. + +"""Accesses the google.ads.googleads.v4.services KeywordPlanCampaignKeywordService API.""" + +import pkg_resources +import warnings + +from google.oauth2 import service_account +import google.api_core.gapic_v1.client_info +import google.api_core.gapic_v1.config +import google.api_core.gapic_v1.method +import google.api_core.gapic_v1.routing_header +import google.api_core.grpc_helpers +import google.api_core.path_template + +from google.ads.google_ads.v4.services import keyword_plan_campaign_keyword_service_client_config +from google.ads.google_ads.v4.services.transports import keyword_plan_campaign_keyword_service_grpc_transport +from google.ads.google_ads.v4.proto.services import keyword_plan_campaign_keyword_service_pb2 + + + +_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( + 'google-ads', +).version + + +class KeywordPlanCampaignKeywordServiceClient(object): + """ + Service to manage Keyword Plan campaign keywords. KeywordPlanCampaign is + required to add the campaign keywords. Only negative keywords are supported. + A maximum of 1000 negative keywords are allowed per plan. This includes both + campaign negative keywords and ad group negative keywords. + """ + + SERVICE_ADDRESS = 'googleads.googleapis.com:443' + """The default address of the service.""" + + # The name of the interface for this client. This is the key used to + # find the method configuration in the client_config dictionary. + _INTERFACE_NAME = 'google.ads.googleads.v4.services.KeywordPlanCampaignKeywordService' + + + @classmethod + def from_service_account_file(cls, filename, *args, **kwargs): + """Creates an instance of this client using the provided credentials + file. + + Args: + filename (str): The path to the service account private key json + file. + args: Additional arguments to pass to the constructor. + kwargs: Additional arguments to pass to the constructor. + + Returns: + KeywordPlanCampaignKeywordServiceClient: The constructed client. + """ + credentials = service_account.Credentials.from_service_account_file( + filename) + kwargs['credentials'] = credentials + return cls(*args, **kwargs) + + from_service_account_json = from_service_account_file + + + @classmethod + def keyword_plan_campaign_keyword_path(cls, customer, keyword_plan_campaign_keyword): + """Return a fully-qualified keyword_plan_campaign_keyword string.""" + return google.api_core.path_template.expand( + 'customers/{customer}/keywordPlanCampaignKeywords/{keyword_plan_campaign_keyword}', + customer=customer, + keyword_plan_campaign_keyword=keyword_plan_campaign_keyword, + ) + + def __init__(self, transport=None, channel=None, credentials=None, + client_config=None, client_info=None): + """Constructor. + + Args: + transport (Union[~.KeywordPlanCampaignKeywordServiceGrpcTransport, + Callable[[~.Credentials, type], ~.KeywordPlanCampaignKeywordServiceGrpcTransport]): A transport + instance, responsible for actually making the API calls. + The default transport uses the gRPC protocol. + This argument may also be a callable which returns a + transport instance. Callables will be sent the credentials + as the first argument and the default transport class as + the second argument. + channel (grpc.Channel): DEPRECATED. A ``Channel`` instance + through which to make calls. This argument is mutually exclusive + with ``credentials``; providing both will raise an exception. + credentials (google.auth.credentials.Credentials): The + authorization credentials to attach to requests. These + credentials identify this application to the service. If none + are specified, the client will attempt to ascertain the + credentials from the environment. + This argument is mutually exclusive with providing a + transport instance to ``transport``; doing so will raise + an exception. + client_config (dict): DEPRECATED. A dictionary of call options for + each method. If not specified, the default configuration is used. + client_info (google.api_core.gapic_v1.client_info.ClientInfo): + The client info used to send a user-agent string along with + API requests. If ``None``, then default info will be used. + Generally, you only need to set this if you're developing + your own client library. + """ + # Raise deprecation warnings for things we want to go away. + if client_config is not None: + warnings.warn('The `client_config` argument is deprecated.', + PendingDeprecationWarning, stacklevel=2) + else: + client_config = keyword_plan_campaign_keyword_service_client_config.config + + if channel: + warnings.warn('The `channel` argument is deprecated; use ' + '`transport` instead.', + PendingDeprecationWarning, stacklevel=2) + + # Instantiate the transport. + # The transport is responsible for handling serialization and + # deserialization and actually sending data to the service. + if transport: + if callable(transport): + self.transport = transport( + credentials=credentials, + default_class=keyword_plan_campaign_keyword_service_grpc_transport.KeywordPlanCampaignKeywordServiceGrpcTransport, + ) + else: + if credentials: + raise ValueError( + 'Received both a transport instance and ' + 'credentials; these are mutually exclusive.' + ) + self.transport = transport + else: + self.transport = keyword_plan_campaign_keyword_service_grpc_transport.KeywordPlanCampaignKeywordServiceGrpcTransport( + address=self.SERVICE_ADDRESS, + channel=channel, + credentials=credentials, + ) + + if client_info is None: + client_info = google.api_core.gapic_v1.client_info.ClientInfo( + gapic_version=_GAPIC_LIBRARY_VERSION, + ) + else: + client_info.gapic_version = _GAPIC_LIBRARY_VERSION + self._client_info = client_info + + # Parse out the default settings for retry and timeout for each RPC + # from the client configuration. + # (Ordinarily, these are the defaults specified in the `*_config.py` + # file next to this one.) + self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( + client_config['interfaces'][self._INTERFACE_NAME], + ) + + # Save a dictionary of cached API call functions. + # These are the actual callables which invoke the proper + # transport methods, wrapped with `wrap_method` to add retry, + # timeout, and the like. + self._inner_api_calls = {} + + # Service calls + def get_keyword_plan_campaign_keyword( + self, + resource_name, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None): + """ + Returns the requested plan in full detail. + + Args: + resource_name (str): Required. The resource name of the plan to fetch. + retry (Optional[google.api_core.retry.Retry]): A retry object used + to retry requests. If ``None`` is specified, requests will not + be retried. + timeout (Optional[float]): The amount of time, in seconds, to wait + for the request to complete. Note that if ``retry`` is + specified, the timeout applies to each individual attempt. + metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata + that is provided to the method. + + Returns: + A :class:`~google.ads.googleads_v4.types.KeywordPlanCampaignKeyword` instance. + + Raises: + google.api_core.exceptions.GoogleAPICallError: If the request + failed for any reason. + google.api_core.exceptions.RetryError: If the request failed due + to a retryable error and retry attempts failed. + ValueError: If the parameters are invalid. + """ + # Wrap the transport method to add retry and timeout logic. + if 'get_keyword_plan_campaign_keyword' not in self._inner_api_calls: + self._inner_api_calls['get_keyword_plan_campaign_keyword'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.get_keyword_plan_campaign_keyword, + default_retry=self._method_configs['GetKeywordPlanCampaignKeyword'].retry, + default_timeout=self._method_configs['GetKeywordPlanCampaignKeyword'].timeout, + client_info=self._client_info, + ) + + request = keyword_plan_campaign_keyword_service_pb2.GetKeywordPlanCampaignKeywordRequest( + resource_name=resource_name, + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [('resource_name', resource_name)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata(routing_header) + metadata.append(routing_metadata) + + return self._inner_api_calls['get_keyword_plan_campaign_keyword'](request, retry=retry, timeout=timeout, metadata=metadata) + + def mutate_keyword_plan_campaign_keywords( + self, + customer_id, + operations, + partial_failure=None, + validate_only=None, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None): + """ + Creates, updates, or removes Keyword Plan campaign keywords. Operation + statuses are returned. + + Args: + customer_id (str): Required. The ID of the customer whose campaign keywords are being modified. + operations (list[Union[dict, ~google.ads.googleads_v4.types.KeywordPlanCampaignKeywordOperation]]): Required. The list of operations to perform on individual Keyword Plan campaign + keywords. + + If a dict is provided, it must be of the same form as the protobuf + message :class:`~google.ads.googleads_v4.types.KeywordPlanCampaignKeywordOperation` + partial_failure (bool): If true, successful operations will be carried out and invalid + operations will return errors. If false, all operations will be carried + out in one transaction if and only if they are all valid. + Default is false. + validate_only (bool): If true, the request is validated but not executed. Only errors are + returned, not results. + retry (Optional[google.api_core.retry.Retry]): A retry object used + to retry requests. If ``None`` is specified, requests will not + be retried. + timeout (Optional[float]): The amount of time, in seconds, to wait + for the request to complete. Note that if ``retry`` is + specified, the timeout applies to each individual attempt. + metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata + that is provided to the method. + + Returns: + A :class:`~google.ads.googleads_v4.types.MutateKeywordPlanCampaignKeywordsResponse` instance. + + Raises: + google.api_core.exceptions.GoogleAPICallError: If the request + failed for any reason. + google.api_core.exceptions.RetryError: If the request failed due + to a retryable error and retry attempts failed. + ValueError: If the parameters are invalid. + """ + # Wrap the transport method to add retry and timeout logic. + if 'mutate_keyword_plan_campaign_keywords' not in self._inner_api_calls: + self._inner_api_calls['mutate_keyword_plan_campaign_keywords'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.mutate_keyword_plan_campaign_keywords, + default_retry=self._method_configs['MutateKeywordPlanCampaignKeywords'].retry, + default_timeout=self._method_configs['MutateKeywordPlanCampaignKeywords'].timeout, + client_info=self._client_info, + ) + + request = keyword_plan_campaign_keyword_service_pb2.MutateKeywordPlanCampaignKeywordsRequest( + customer_id=customer_id, + operations=operations, + partial_failure=partial_failure, + validate_only=validate_only, + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [('customer_id', customer_id)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata(routing_header) + metadata.append(routing_metadata) + + return self._inner_api_calls['mutate_keyword_plan_campaign_keywords'](request, retry=retry, timeout=timeout, metadata=metadata) diff --git a/google/ads/google_ads/v4/services/keyword_plan_campaign_keyword_service_client_config.py b/google/ads/google_ads/v4/services/keyword_plan_campaign_keyword_service_client_config.py new file mode 100644 index 000000000..0f5323413 --- /dev/null +++ b/google/ads/google_ads/v4/services/keyword_plan_campaign_keyword_service_client_config.py @@ -0,0 +1,36 @@ +config = { + "interfaces": { + "google.ads.googleads.v4.services.KeywordPlanCampaignKeywordService": { + "retry_codes": { + "idempotent": [ + "DEADLINE_EXCEEDED", + "UNAVAILABLE" + ], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 5000, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 3600000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 3600000, + "total_timeout_millis": 3600000 + } + }, + "methods": { + "GetKeywordPlanCampaignKeyword": { + "timeout_millis": 60000, + "retry_codes_name": "idempotent", + "retry_params_name": "default" + }, + "MutateKeywordPlanCampaignKeywords": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + } + } + } + } +} diff --git a/google/ads/google_ads/v1/services/keyword_plan_campaign_service_client.py b/google/ads/google_ads/v4/services/keyword_plan_campaign_service_client.py similarity index 75% rename from google/ads/google_ads/v1/services/keyword_plan_campaign_service_client.py rename to google/ads/google_ads/v4/services/keyword_plan_campaign_service_client.py index 4746f440d..b3e41df39 100644 --- a/google/ads/google_ads/v1/services/keyword_plan_campaign_service_client.py +++ b/google/ads/google_ads/v4/services/keyword_plan_campaign_service_client.py @@ -13,7 +13,8 @@ # 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. -"""Accesses the google.ads.googleads.v1.services KeywordPlanCampaignService API.""" + +"""Accesses the google.ads.googleads.v4.services KeywordPlanCampaignService API.""" import pkg_resources import warnings @@ -22,15 +23,19 @@ import google.api_core.gapic_v1.client_info import google.api_core.gapic_v1.config import google.api_core.gapic_v1.method +import google.api_core.gapic_v1.routing_header import google.api_core.grpc_helpers import google.api_core.path_template -from google.ads.google_ads.v1.services import keyword_plan_campaign_service_client_config -from google.ads.google_ads.v1.services.transports import keyword_plan_campaign_service_grpc_transport -from google.ads.google_ads.v1.proto.services import keyword_plan_campaign_service_pb2 +from google.ads.google_ads.v4.services import keyword_plan_campaign_service_client_config +from google.ads.google_ads.v4.services.transports import keyword_plan_campaign_service_grpc_transport +from google.ads.google_ads.v4.proto.services import keyword_plan_campaign_service_pb2 + + _GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( - 'google-ads', ).version + 'google-ads', +).version class KeywordPlanCampaignServiceClient(object): @@ -41,7 +46,8 @@ class KeywordPlanCampaignServiceClient(object): # The name of the interface for this client. This is the key used to # find the method configuration in the client_config dictionary. - _INTERFACE_NAME = 'google.ads.googleads.v1.services.KeywordPlanCampaignService' + _INTERFACE_NAME = 'google.ads.googleads.v4.services.KeywordPlanCampaignService' + @classmethod def from_service_account_file(cls, filename, *args, **kwargs): @@ -64,6 +70,7 @@ def from_service_account_file(cls, filename, *args, **kwargs): from_service_account_json = from_service_account_file + @classmethod def keyword_plan_campaign_path(cls, customer, keyword_plan_campaign): """Return a fully-qualified keyword_plan_campaign string.""" @@ -73,12 +80,8 @@ def keyword_plan_campaign_path(cls, customer, keyword_plan_campaign): keyword_plan_campaign=keyword_plan_campaign, ) - def __init__(self, - transport=None, - channel=None, - credentials=None, - client_config=None, - client_info=None): + def __init__(self, transport=None, channel=None, credentials=None, + client_config=None, client_info=None): """Constructor. Args: @@ -111,19 +114,15 @@ def __init__(self, """ # Raise deprecation warnings for things we want to go away. if client_config is not None: - warnings.warn( - 'The `client_config` argument is deprecated.', - PendingDeprecationWarning, - stacklevel=2) + warnings.warn('The `client_config` argument is deprecated.', + PendingDeprecationWarning, stacklevel=2) else: client_config = keyword_plan_campaign_service_client_config.config if channel: - warnings.warn( - 'The `channel` argument is deprecated; use ' - '`transport` instead.', - PendingDeprecationWarning, - stacklevel=2) + warnings.warn('The `channel` argument is deprecated; use ' + '`transport` instead.', + PendingDeprecationWarning, stacklevel=2) # Instantiate the transport. # The transport is responsible for handling serialization and @@ -132,14 +131,14 @@ def __init__(self, if callable(transport): self.transport = transport( credentials=credentials, - default_class=keyword_plan_campaign_service_grpc_transport. - KeywordPlanCampaignServiceGrpcTransport, + default_class=keyword_plan_campaign_service_grpc_transport.KeywordPlanCampaignServiceGrpcTransport, ) else: if credentials: raise ValueError( 'Received both a transport instance and ' - 'credentials; these are mutually exclusive.') + 'credentials; these are mutually exclusive.' + ) self.transport = transport else: self.transport = keyword_plan_campaign_service_grpc_transport.KeywordPlanCampaignServiceGrpcTransport( @@ -150,7 +149,8 @@ def __init__(self, if client_info is None: client_info = google.api_core.gapic_v1.client_info.ClientInfo( - gapic_version=_GAPIC_LIBRARY_VERSION, ) + gapic_version=_GAPIC_LIBRARY_VERSION, + ) else: client_info.gapic_version = _GAPIC_LIBRARY_VERSION self._client_info = client_info @@ -160,7 +160,8 @@ def __init__(self, # (Ordinarily, these are the defaults specified in the `*_config.py` # file next to this one.) self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( - client_config['interfaces'][self._INTERFACE_NAME], ) + client_config['interfaces'][self._INTERFACE_NAME], + ) # Save a dictionary of cached API call functions. # These are the actual callables which invoke the proper @@ -179,7 +180,7 @@ def get_keyword_plan_campaign( Returns the requested Keyword Plan campaign in full detail. Args: - resource_name (str): The resource name of the Keyword Plan campaign to fetch. + resource_name (str): Required. The resource name of the Keyword Plan campaign to fetch. retry (Optional[google.api_core.retry.Retry]): A retry object used to retry requests. If ``None`` is specified, requests will not be retried. @@ -190,7 +191,7 @@ def get_keyword_plan_campaign( that is provided to the method. Returns: - A :class:`~google.ads.googleads_v1.types.KeywordPlanCampaign` instance. + A :class:`~google.ads.googleads_v4.types.KeywordPlanCampaign` instance. Raises: google.api_core.exceptions.GoogleAPICallError: If the request @@ -201,20 +202,28 @@ def get_keyword_plan_campaign( """ # Wrap the transport method to add retry and timeout logic. if 'get_keyword_plan_campaign' not in self._inner_api_calls: - self._inner_api_calls[ - 'get_keyword_plan_campaign'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.get_keyword_plan_campaign, - default_retry=self. - _method_configs['GetKeywordPlanCampaign'].retry, - default_timeout=self. - _method_configs['GetKeywordPlanCampaign'].timeout, - client_info=self._client_info, - ) + self._inner_api_calls['get_keyword_plan_campaign'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.get_keyword_plan_campaign, + default_retry=self._method_configs['GetKeywordPlanCampaign'].retry, + default_timeout=self._method_configs['GetKeywordPlanCampaign'].timeout, + client_info=self._client_info, + ) request = keyword_plan_campaign_service_pb2.GetKeywordPlanCampaignRequest( - resource_name=resource_name, ) - return self._inner_api_calls['get_keyword_plan_campaign']( - request, retry=retry, timeout=timeout, metadata=metadata) + resource_name=resource_name, + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [('resource_name', resource_name)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata(routing_header) + metadata.append(routing_metadata) + + return self._inner_api_calls['get_keyword_plan_campaign'](request, retry=retry, timeout=timeout, metadata=metadata) def mutate_keyword_plan_campaigns( self, @@ -230,11 +239,11 @@ def mutate_keyword_plan_campaigns( returned. Args: - customer_id (str): The ID of the customer whose Keyword Plan campaigns are being modified. - operations (list[Union[dict, ~google.ads.googleads_v1.types.KeywordPlanCampaignOperation]]): The list of operations to perform on individual Keyword Plan campaigns. + customer_id (str): Required. The ID of the customer whose Keyword Plan campaigns are being modified. + operations (list[Union[dict, ~google.ads.googleads_v4.types.KeywordPlanCampaignOperation]]): Required. The list of operations to perform on individual Keyword Plan campaigns. If a dict is provided, it must be of the same form as the protobuf - message :class:`~google.ads.googleads_v1.types.KeywordPlanCampaignOperation` + message :class:`~google.ads.googleads_v4.types.KeywordPlanCampaignOperation` partial_failure (bool): If true, successful operations will be carried out and invalid operations will return errors. If false, all operations will be carried out in one transaction if and only if they are all valid. @@ -251,7 +260,7 @@ def mutate_keyword_plan_campaigns( that is provided to the method. Returns: - A :class:`~google.ads.googleads_v1.types.MutateKeywordPlanCampaignsResponse` instance. + A :class:`~google.ads.googleads_v4.types.MutateKeywordPlanCampaignsResponse` instance. Raises: google.api_core.exceptions.GoogleAPICallError: If the request @@ -262,15 +271,12 @@ def mutate_keyword_plan_campaigns( """ # Wrap the transport method to add retry and timeout logic. if 'mutate_keyword_plan_campaigns' not in self._inner_api_calls: - self._inner_api_calls[ - 'mutate_keyword_plan_campaigns'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.mutate_keyword_plan_campaigns, - default_retry=self. - _method_configs['MutateKeywordPlanCampaigns'].retry, - default_timeout=self. - _method_configs['MutateKeywordPlanCampaigns'].timeout, - client_info=self._client_info, - ) + self._inner_api_calls['mutate_keyword_plan_campaigns'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.mutate_keyword_plan_campaigns, + default_retry=self._method_configs['MutateKeywordPlanCampaigns'].retry, + default_timeout=self._method_configs['MutateKeywordPlanCampaigns'].timeout, + client_info=self._client_info, + ) request = keyword_plan_campaign_service_pb2.MutateKeywordPlanCampaignsRequest( customer_id=customer_id, @@ -278,5 +284,15 @@ def mutate_keyword_plan_campaigns( partial_failure=partial_failure, validate_only=validate_only, ) - return self._inner_api_calls['mutate_keyword_plan_campaigns']( - request, retry=retry, timeout=timeout, metadata=metadata) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [('customer_id', customer_id)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata(routing_header) + metadata.append(routing_metadata) + + return self._inner_api_calls['mutate_keyword_plan_campaigns'](request, retry=retry, timeout=timeout, metadata=metadata) diff --git a/google/ads/google_ads/v4/services/keyword_plan_campaign_service_client_config.py b/google/ads/google_ads/v4/services/keyword_plan_campaign_service_client_config.py new file mode 100644 index 000000000..45a286633 --- /dev/null +++ b/google/ads/google_ads/v4/services/keyword_plan_campaign_service_client_config.py @@ -0,0 +1,36 @@ +config = { + "interfaces": { + "google.ads.googleads.v4.services.KeywordPlanCampaignService": { + "retry_codes": { + "idempotent": [ + "DEADLINE_EXCEEDED", + "UNAVAILABLE" + ], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 5000, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 3600000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 3600000, + "total_timeout_millis": 3600000 + } + }, + "methods": { + "GetKeywordPlanCampaign": { + "timeout_millis": 60000, + "retry_codes_name": "idempotent", + "retry_params_name": "default" + }, + "MutateKeywordPlanCampaigns": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + } + } + } + } +} diff --git a/google/ads/google_ads/v4/services/keyword_plan_idea_service_client.py b/google/ads/google_ads/v4/services/keyword_plan_idea_service_client.py new file mode 100644 index 000000000..47bfc9b02 --- /dev/null +++ b/google/ads/google_ads/v4/services/keyword_plan_idea_service_client.py @@ -0,0 +1,291 @@ +# -*- coding: utf-8 -*- +# +# 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. + +"""Accesses the google.ads.googleads.v4.services KeywordPlanIdeaService API.""" + +import functools +import pkg_resources +import warnings + +from google.oauth2 import service_account +import google.api_core.gapic_v1.client_info +import google.api_core.gapic_v1.config +import google.api_core.gapic_v1.method +import google.api_core.gapic_v1.routing_header +import google.api_core.grpc_helpers +import google.api_core.page_iterator +import google.api_core.protobuf_helpers + +from google.ads.google_ads.v4.services import keyword_plan_idea_service_client_config +from google.ads.google_ads.v4.services.transports import keyword_plan_idea_service_grpc_transport +from google.ads.google_ads.v4.proto.services import keyword_plan_idea_service_pb2 + + + +_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( + 'google-ads', +).version + + +class KeywordPlanIdeaServiceClient(object): + """Service to generate keyword ideas.""" + + SERVICE_ADDRESS = 'googleads.googleapis.com:443' + """The default address of the service.""" + + # The name of the interface for this client. This is the key used to + # find the method configuration in the client_config dictionary. + _INTERFACE_NAME = 'google.ads.googleads.v4.services.KeywordPlanIdeaService' + + + @classmethod + def from_service_account_file(cls, filename, *args, **kwargs): + """Creates an instance of this client using the provided credentials + file. + + Args: + filename (str): The path to the service account private key json + file. + args: Additional arguments to pass to the constructor. + kwargs: Additional arguments to pass to the constructor. + + Returns: + KeywordPlanIdeaServiceClient: The constructed client. + """ + credentials = service_account.Credentials.from_service_account_file( + filename) + kwargs['credentials'] = credentials + return cls(*args, **kwargs) + + from_service_account_json = from_service_account_file + + def __init__(self, transport=None, channel=None, credentials=None, + client_config=None, client_info=None): + """Constructor. + + Args: + transport (Union[~.KeywordPlanIdeaServiceGrpcTransport, + Callable[[~.Credentials, type], ~.KeywordPlanIdeaServiceGrpcTransport]): A transport + instance, responsible for actually making the API calls. + The default transport uses the gRPC protocol. + This argument may also be a callable which returns a + transport instance. Callables will be sent the credentials + as the first argument and the default transport class as + the second argument. + channel (grpc.Channel): DEPRECATED. A ``Channel`` instance + through which to make calls. This argument is mutually exclusive + with ``credentials``; providing both will raise an exception. + credentials (google.auth.credentials.Credentials): The + authorization credentials to attach to requests. These + credentials identify this application to the service. If none + are specified, the client will attempt to ascertain the + credentials from the environment. + This argument is mutually exclusive with providing a + transport instance to ``transport``; doing so will raise + an exception. + client_config (dict): DEPRECATED. A dictionary of call options for + each method. If not specified, the default configuration is used. + client_info (google.api_core.gapic_v1.client_info.ClientInfo): + The client info used to send a user-agent string along with + API requests. If ``None``, then default info will be used. + Generally, you only need to set this if you're developing + your own client library. + """ + # Raise deprecation warnings for things we want to go away. + if client_config is not None: + warnings.warn('The `client_config` argument is deprecated.', + PendingDeprecationWarning, stacklevel=2) + else: + client_config = keyword_plan_idea_service_client_config.config + + if channel: + warnings.warn('The `channel` argument is deprecated; use ' + '`transport` instead.', + PendingDeprecationWarning, stacklevel=2) + + # Instantiate the transport. + # The transport is responsible for handling serialization and + # deserialization and actually sending data to the service. + if transport: + if callable(transport): + self.transport = transport( + credentials=credentials, + default_class=keyword_plan_idea_service_grpc_transport.KeywordPlanIdeaServiceGrpcTransport, + ) + else: + if credentials: + raise ValueError( + 'Received both a transport instance and ' + 'credentials; these are mutually exclusive.' + ) + self.transport = transport + else: + self.transport = keyword_plan_idea_service_grpc_transport.KeywordPlanIdeaServiceGrpcTransport( + address=self.SERVICE_ADDRESS, + channel=channel, + credentials=credentials, + ) + + if client_info is None: + client_info = google.api_core.gapic_v1.client_info.ClientInfo( + gapic_version=_GAPIC_LIBRARY_VERSION, + ) + else: + client_info.gapic_version = _GAPIC_LIBRARY_VERSION + self._client_info = client_info + + # Parse out the default settings for retry and timeout for each RPC + # from the client configuration. + # (Ordinarily, these are the defaults specified in the `*_config.py` + # file next to this one.) + self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( + client_config['interfaces'][self._INTERFACE_NAME], + ) + + # Save a dictionary of cached API call functions. + # These are the actual callables which invoke the proper + # transport methods, wrapped with `wrap_method` to add retry, + # timeout, and the like. + self._inner_api_calls = {} + + # Service calls + def generate_keyword_ideas( + self, + customer_id, + language, + geo_target_constants, + include_adult_keywords, + keyword_plan_network, + page_size=None, + keyword_and_url_seed=None, + keyword_seed=None, + url_seed=None, + site_seed=None, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None): + """ + Returns a list of keyword ideas. + + Args: + customer_id (str): The ID of the customer with the recommendation. + language (Union[dict, ~google.ads.googleads_v4.types.StringValue]): Required. The resource name of the language to target. + Required + + If a dict is provided, it must be of the same form as the protobuf + message :class:`~google.ads.googleads_v4.types.StringValue` + geo_target_constants (list[Union[dict, ~google.ads.googleads_v4.types.StringValue]]): The resource names of the location to target. + Max 10 + + If a dict is provided, it must be of the same form as the protobuf + message :class:`~google.ads.googleads_v4.types.StringValue` + include_adult_keywords (bool): If true, adult keywords will be included in response. + The default value is false. + keyword_plan_network (~google.ads.googleads_v4.types.KeywordPlanNetwork): Targeting network. + page_size (int): The maximum number of resources contained in the + underlying API response. If page streaming is performed per- + resource, this parameter does not affect the return value. If page + streaming is performed per-page, this determines the maximum number + of resources in a page. + keyword_and_url_seed (Union[dict, ~google.ads.googleads_v4.types.KeywordAndUrlSeed]): A Keyword and a specific Url to generate ideas from + e.g. cars, www.example.com/cars. + + If a dict is provided, it must be of the same form as the protobuf + message :class:`~google.ads.googleads_v4.types.KeywordAndUrlSeed` + keyword_seed (Union[dict, ~google.ads.googleads_v4.types.KeywordSeed]): A Keyword or phrase to generate ideas from, e.g. cars. + + If a dict is provided, it must be of the same form as the protobuf + message :class:`~google.ads.googleads_v4.types.KeywordSeed` + url_seed (Union[dict, ~google.ads.googleads_v4.types.UrlSeed]): A specific url to generate ideas from, e.g. www.example.com/cars. + + If a dict is provided, it must be of the same form as the protobuf + message :class:`~google.ads.googleads_v4.types.UrlSeed` + site_seed (Union[dict, ~google.ads.googleads_v4.types.SiteSeed]): The site to generate ideas from, e.g. www.example.com. + + If a dict is provided, it must be of the same form as the protobuf + message :class:`~google.ads.googleads_v4.types.SiteSeed` + retry (Optional[google.api_core.retry.Retry]): A retry object used + to retry requests. If ``None`` is specified, requests will not + be retried. + timeout (Optional[float]): The amount of time, in seconds, to wait + for the request to complete. Note that if ``retry`` is + specified, the timeout applies to each individual attempt. + metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata + that is provided to the method. + + Returns: + A :class:`~google.gax.PageIterator` instance. By default, this + is an iterable of :class:`~google.ads.googleads_v4.types.GenerateKeywordIdeaResult` instances. + This object can also be configured to iterate over the pages + of the response through the `options` parameter. + + Raises: + google.api_core.exceptions.GoogleAPICallError: If the request + failed for any reason. + google.api_core.exceptions.RetryError: If the request failed due + to a retryable error and retry attempts failed. + ValueError: If the parameters are invalid. + """ + # Wrap the transport method to add retry and timeout logic. + if 'generate_keyword_ideas' not in self._inner_api_calls: + self._inner_api_calls['generate_keyword_ideas'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.generate_keyword_ideas, + default_retry=self._method_configs['GenerateKeywordIdeas'].retry, + default_timeout=self._method_configs['GenerateKeywordIdeas'].timeout, + client_info=self._client_info, + ) + + # Sanity check: We have some fields which are mutually exclusive; + # raise ValueError if more than one is sent. + google.api_core.protobuf_helpers.check_oneof( + keyword_and_url_seed=keyword_and_url_seed, + keyword_seed=keyword_seed, + url_seed=url_seed, + site_seed=site_seed, + ) + + request = keyword_plan_idea_service_pb2.GenerateKeywordIdeasRequest( + customer_id=customer_id, + language=language, + geo_target_constants=geo_target_constants, + include_adult_keywords=include_adult_keywords, + keyword_plan_network=keyword_plan_network, + page_size=page_size, + keyword_and_url_seed=keyword_and_url_seed, + keyword_seed=keyword_seed, + url_seed=url_seed, + site_seed=site_seed, + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [('customer_id', customer_id)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata(routing_header) + metadata.append(routing_metadata) + + iterator = google.api_core.page_iterator.GRPCIterator( + client=None, + method=functools.partial(self._inner_api_calls['generate_keyword_ideas'], retry=retry, timeout=timeout, metadata=metadata), + request=request, + items_field='results', + request_token_field='page_token', + response_token_field='next_page_token', + ) + return iterator diff --git a/google/ads/google_ads/v4/services/keyword_plan_idea_service_client_config.py b/google/ads/google_ads/v4/services/keyword_plan_idea_service_client_config.py new file mode 100644 index 000000000..eccf9f37d --- /dev/null +++ b/google/ads/google_ads/v4/services/keyword_plan_idea_service_client_config.py @@ -0,0 +1,31 @@ +config = { + "interfaces": { + "google.ads.googleads.v4.services.KeywordPlanIdeaService": { + "retry_codes": { + "idempotent": [ + "DEADLINE_EXCEEDED", + "UNAVAILABLE" + ], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 5000, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 3600000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 3600000, + "total_timeout_millis": 3600000 + } + }, + "methods": { + "GenerateKeywordIdeas": { + "timeout_millis": 600000, + "retry_codes_name": "idempotent", + "retry_params_name": "default" + } + } + } + } +} diff --git a/google/ads/google_ads/v4/services/keyword_plan_service_client.py b/google/ads/google_ads/v4/services/keyword_plan_service_client.py new file mode 100644 index 000000000..c5b63f371 --- /dev/null +++ b/google/ads/google_ads/v4/services/keyword_plan_service_client.py @@ -0,0 +1,470 @@ +# -*- coding: utf-8 -*- +# +# 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. + +"""Accesses the google.ads.googleads.v4.services KeywordPlanService API.""" + +import pkg_resources +import warnings + +from google.oauth2 import service_account +import google.api_core.gapic_v1.client_info +import google.api_core.gapic_v1.config +import google.api_core.gapic_v1.method +import google.api_core.gapic_v1.routing_header +import google.api_core.grpc_helpers +import google.api_core.path_template + +from google.ads.google_ads.v4.services import keyword_plan_service_client_config +from google.ads.google_ads.v4.services.transports import keyword_plan_service_grpc_transport +from google.ads.google_ads.v4.proto.services import keyword_plan_service_pb2 + + + +_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( + 'google-ads', +).version + + +class KeywordPlanServiceClient(object): + """Service to manage keyword plans.""" + + SERVICE_ADDRESS = 'googleads.googleapis.com:443' + """The default address of the service.""" + + # The name of the interface for this client. This is the key used to + # find the method configuration in the client_config dictionary. + _INTERFACE_NAME = 'google.ads.googleads.v4.services.KeywordPlanService' + + + @classmethod + def from_service_account_file(cls, filename, *args, **kwargs): + """Creates an instance of this client using the provided credentials + file. + + Args: + filename (str): The path to the service account private key json + file. + args: Additional arguments to pass to the constructor. + kwargs: Additional arguments to pass to the constructor. + + Returns: + KeywordPlanServiceClient: The constructed client. + """ + credentials = service_account.Credentials.from_service_account_file( + filename) + kwargs['credentials'] = credentials + return cls(*args, **kwargs) + + from_service_account_json = from_service_account_file + + + @classmethod + def keyword_plan_path(cls, customer, keyword_plan): + """Return a fully-qualified keyword_plan string.""" + return google.api_core.path_template.expand( + 'customers/{customer}/keywordPlans/{keyword_plan}', + customer=customer, + keyword_plan=keyword_plan, + ) + + def __init__(self, transport=None, channel=None, credentials=None, + client_config=None, client_info=None): + """Constructor. + + Args: + transport (Union[~.KeywordPlanServiceGrpcTransport, + Callable[[~.Credentials, type], ~.KeywordPlanServiceGrpcTransport]): A transport + instance, responsible for actually making the API calls. + The default transport uses the gRPC protocol. + This argument may also be a callable which returns a + transport instance. Callables will be sent the credentials + as the first argument and the default transport class as + the second argument. + channel (grpc.Channel): DEPRECATED. A ``Channel`` instance + through which to make calls. This argument is mutually exclusive + with ``credentials``; providing both will raise an exception. + credentials (google.auth.credentials.Credentials): The + authorization credentials to attach to requests. These + credentials identify this application to the service. If none + are specified, the client will attempt to ascertain the + credentials from the environment. + This argument is mutually exclusive with providing a + transport instance to ``transport``; doing so will raise + an exception. + client_config (dict): DEPRECATED. A dictionary of call options for + each method. If not specified, the default configuration is used. + client_info (google.api_core.gapic_v1.client_info.ClientInfo): + The client info used to send a user-agent string along with + API requests. If ``None``, then default info will be used. + Generally, you only need to set this if you're developing + your own client library. + """ + # Raise deprecation warnings for things we want to go away. + if client_config is not None: + warnings.warn('The `client_config` argument is deprecated.', + PendingDeprecationWarning, stacklevel=2) + else: + client_config = keyword_plan_service_client_config.config + + if channel: + warnings.warn('The `channel` argument is deprecated; use ' + '`transport` instead.', + PendingDeprecationWarning, stacklevel=2) + + # Instantiate the transport. + # The transport is responsible for handling serialization and + # deserialization and actually sending data to the service. + if transport: + if callable(transport): + self.transport = transport( + credentials=credentials, + default_class=keyword_plan_service_grpc_transport.KeywordPlanServiceGrpcTransport, + ) + else: + if credentials: + raise ValueError( + 'Received both a transport instance and ' + 'credentials; these are mutually exclusive.' + ) + self.transport = transport + else: + self.transport = keyword_plan_service_grpc_transport.KeywordPlanServiceGrpcTransport( + address=self.SERVICE_ADDRESS, + channel=channel, + credentials=credentials, + ) + + if client_info is None: + client_info = google.api_core.gapic_v1.client_info.ClientInfo( + gapic_version=_GAPIC_LIBRARY_VERSION, + ) + else: + client_info.gapic_version = _GAPIC_LIBRARY_VERSION + self._client_info = client_info + + # Parse out the default settings for retry and timeout for each RPC + # from the client configuration. + # (Ordinarily, these are the defaults specified in the `*_config.py` + # file next to this one.) + self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( + client_config['interfaces'][self._INTERFACE_NAME], + ) + + # Save a dictionary of cached API call functions. + # These are the actual callables which invoke the proper + # transport methods, wrapped with `wrap_method` to add retry, + # timeout, and the like. + self._inner_api_calls = {} + + # Service calls + def get_keyword_plan( + self, + resource_name, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None): + """ + Returns the requested plan in full detail. + + Args: + resource_name (str): Required. The resource name of the plan to fetch. + retry (Optional[google.api_core.retry.Retry]): A retry object used + to retry requests. If ``None`` is specified, requests will not + be retried. + timeout (Optional[float]): The amount of time, in seconds, to wait + for the request to complete. Note that if ``retry`` is + specified, the timeout applies to each individual attempt. + metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata + that is provided to the method. + + Returns: + A :class:`~google.ads.googleads_v4.types.KeywordPlan` instance. + + Raises: + google.api_core.exceptions.GoogleAPICallError: If the request + failed for any reason. + google.api_core.exceptions.RetryError: If the request failed due + to a retryable error and retry attempts failed. + ValueError: If the parameters are invalid. + """ + # Wrap the transport method to add retry and timeout logic. + if 'get_keyword_plan' not in self._inner_api_calls: + self._inner_api_calls['get_keyword_plan'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.get_keyword_plan, + default_retry=self._method_configs['GetKeywordPlan'].retry, + default_timeout=self._method_configs['GetKeywordPlan'].timeout, + client_info=self._client_info, + ) + + request = keyword_plan_service_pb2.GetKeywordPlanRequest( + resource_name=resource_name, + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [('resource_name', resource_name)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata(routing_header) + metadata.append(routing_metadata) + + return self._inner_api_calls['get_keyword_plan'](request, retry=retry, timeout=timeout, metadata=metadata) + + def mutate_keyword_plans( + self, + customer_id, + operations, + partial_failure=None, + validate_only=None, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None): + """ + Creates, updates, or removes keyword plans. Operation statuses are + returned. + + Args: + customer_id (str): Required. The ID of the customer whose keyword plans are being modified. + operations (list[Union[dict, ~google.ads.googleads_v4.types.KeywordPlanOperation]]): Required. The list of operations to perform on individual keyword plans. + + If a dict is provided, it must be of the same form as the protobuf + message :class:`~google.ads.googleads_v4.types.KeywordPlanOperation` + partial_failure (bool): If true, successful operations will be carried out and invalid + operations will return errors. If false, all operations will be carried + out in one transaction if and only if they are all valid. + Default is false. + validate_only (bool): If true, the request is validated but not executed. Only errors are + returned, not results. + retry (Optional[google.api_core.retry.Retry]): A retry object used + to retry requests. If ``None`` is specified, requests will not + be retried. + timeout (Optional[float]): The amount of time, in seconds, to wait + for the request to complete. Note that if ``retry`` is + specified, the timeout applies to each individual attempt. + metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata + that is provided to the method. + + Returns: + A :class:`~google.ads.googleads_v4.types.MutateKeywordPlansResponse` instance. + + Raises: + google.api_core.exceptions.GoogleAPICallError: If the request + failed for any reason. + google.api_core.exceptions.RetryError: If the request failed due + to a retryable error and retry attempts failed. + ValueError: If the parameters are invalid. + """ + # Wrap the transport method to add retry and timeout logic. + if 'mutate_keyword_plans' not in self._inner_api_calls: + self._inner_api_calls['mutate_keyword_plans'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.mutate_keyword_plans, + default_retry=self._method_configs['MutateKeywordPlans'].retry, + default_timeout=self._method_configs['MutateKeywordPlans'].timeout, + client_info=self._client_info, + ) + + request = keyword_plan_service_pb2.MutateKeywordPlansRequest( + customer_id=customer_id, + operations=operations, + partial_failure=partial_failure, + validate_only=validate_only, + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [('customer_id', customer_id)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata(routing_header) + metadata.append(routing_metadata) + + return self._inner_api_calls['mutate_keyword_plans'](request, retry=retry, timeout=timeout, metadata=metadata) + + def generate_forecast_curve( + self, + keyword_plan, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None): + """ + Returns the requested Keyword Plan forecast curve. Only the bidding + strategy is considered for generating forecast curve. The bidding + strategy value (eg: max\_cpc\_bid\_micros in maximize cpc bidding + strategy) specified in the plan is ignored. + + To generate a forecast at a value specified in the plan, use + KeywordPlanService.GenerateForecastMetrics. + + Args: + keyword_plan (str): Required. The resource name of the keyword plan to be forecasted. + retry (Optional[google.api_core.retry.Retry]): A retry object used + to retry requests. If ``None`` is specified, requests will not + be retried. + timeout (Optional[float]): The amount of time, in seconds, to wait + for the request to complete. Note that if ``retry`` is + specified, the timeout applies to each individual attempt. + metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata + that is provided to the method. + + Returns: + A :class:`~google.ads.googleads_v4.types.GenerateForecastCurveResponse` instance. + + Raises: + google.api_core.exceptions.GoogleAPICallError: If the request + failed for any reason. + google.api_core.exceptions.RetryError: If the request failed due + to a retryable error and retry attempts failed. + ValueError: If the parameters are invalid. + """ + # Wrap the transport method to add retry and timeout logic. + if 'generate_forecast_curve' not in self._inner_api_calls: + self._inner_api_calls['generate_forecast_curve'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.generate_forecast_curve, + default_retry=self._method_configs['GenerateForecastCurve'].retry, + default_timeout=self._method_configs['GenerateForecastCurve'].timeout, + client_info=self._client_info, + ) + + request = keyword_plan_service_pb2.GenerateForecastCurveRequest( + keyword_plan=keyword_plan, + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [('keyword_plan', keyword_plan)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata(routing_header) + metadata.append(routing_metadata) + + return self._inner_api_calls['generate_forecast_curve'](request, retry=retry, timeout=timeout, metadata=metadata) + + def generate_forecast_metrics( + self, + keyword_plan, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None): + """ + Returns the requested Keyword Plan forecasts. + + Args: + keyword_plan (str): Required. The resource name of the keyword plan to be forecasted. + retry (Optional[google.api_core.retry.Retry]): A retry object used + to retry requests. If ``None`` is specified, requests will not + be retried. + timeout (Optional[float]): The amount of time, in seconds, to wait + for the request to complete. Note that if ``retry`` is + specified, the timeout applies to each individual attempt. + metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata + that is provided to the method. + + Returns: + A :class:`~google.ads.googleads_v4.types.GenerateForecastMetricsResponse` instance. + + Raises: + google.api_core.exceptions.GoogleAPICallError: If the request + failed for any reason. + google.api_core.exceptions.RetryError: If the request failed due + to a retryable error and retry attempts failed. + ValueError: If the parameters are invalid. + """ + # Wrap the transport method to add retry and timeout logic. + if 'generate_forecast_metrics' not in self._inner_api_calls: + self._inner_api_calls['generate_forecast_metrics'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.generate_forecast_metrics, + default_retry=self._method_configs['GenerateForecastMetrics'].retry, + default_timeout=self._method_configs['GenerateForecastMetrics'].timeout, + client_info=self._client_info, + ) + + request = keyword_plan_service_pb2.GenerateForecastMetricsRequest( + keyword_plan=keyword_plan, + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [('keyword_plan', keyword_plan)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata(routing_header) + metadata.append(routing_metadata) + + return self._inner_api_calls['generate_forecast_metrics'](request, retry=retry, timeout=timeout, metadata=metadata) + + def generate_historical_metrics( + self, + keyword_plan, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None): + """ + Returns the requested Keyword Plan historical metrics. + + Args: + keyword_plan (str): Required. The resource name of the keyword plan of which historical metrics are + requested. + retry (Optional[google.api_core.retry.Retry]): A retry object used + to retry requests. If ``None`` is specified, requests will not + be retried. + timeout (Optional[float]): The amount of time, in seconds, to wait + for the request to complete. Note that if ``retry`` is + specified, the timeout applies to each individual attempt. + metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata + that is provided to the method. + + Returns: + A :class:`~google.ads.googleads_v4.types.GenerateHistoricalMetricsResponse` instance. + + Raises: + google.api_core.exceptions.GoogleAPICallError: If the request + failed for any reason. + google.api_core.exceptions.RetryError: If the request failed due + to a retryable error and retry attempts failed. + ValueError: If the parameters are invalid. + """ + # Wrap the transport method to add retry and timeout logic. + if 'generate_historical_metrics' not in self._inner_api_calls: + self._inner_api_calls['generate_historical_metrics'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.generate_historical_metrics, + default_retry=self._method_configs['GenerateHistoricalMetrics'].retry, + default_timeout=self._method_configs['GenerateHistoricalMetrics'].timeout, + client_info=self._client_info, + ) + + request = keyword_plan_service_pb2.GenerateHistoricalMetricsRequest( + keyword_plan=keyword_plan, + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [('keyword_plan', keyword_plan)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata(routing_header) + metadata.append(routing_metadata) + + return self._inner_api_calls['generate_historical_metrics'](request, retry=retry, timeout=timeout, metadata=metadata) diff --git a/google/ads/google_ads/v4/services/keyword_plan_service_client_config.py b/google/ads/google_ads/v4/services/keyword_plan_service_client_config.py new file mode 100644 index 000000000..3803daede --- /dev/null +++ b/google/ads/google_ads/v4/services/keyword_plan_service_client_config.py @@ -0,0 +1,51 @@ +config = { + "interfaces": { + "google.ads.googleads.v4.services.KeywordPlanService": { + "retry_codes": { + "idempotent": [ + "DEADLINE_EXCEEDED", + "UNAVAILABLE" + ], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 5000, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 3600000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 3600000, + "total_timeout_millis": 3600000 + } + }, + "methods": { + "GetKeywordPlan": { + "timeout_millis": 60000, + "retry_codes_name": "idempotent", + "retry_params_name": "default" + }, + "MutateKeywordPlans": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "GenerateForecastCurve": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "GenerateForecastMetrics": { + "timeout_millis": 60000, + "retry_codes_name": "idempotent", + "retry_params_name": "default" + }, + "GenerateHistoricalMetrics": { + "timeout_millis": 60000, + "retry_codes_name": "idempotent", + "retry_params_name": "default" + } + } + } + } +} diff --git a/google/ads/google_ads/v1/services/keyword_view_service_client.py b/google/ads/google_ads/v4/services/keyword_view_service_client.py similarity index 76% rename from google/ads/google_ads/v1/services/keyword_view_service_client.py rename to google/ads/google_ads/v4/services/keyword_view_service_client.py index 78f9b2f16..94de41a76 100644 --- a/google/ads/google_ads/v1/services/keyword_view_service_client.py +++ b/google/ads/google_ads/v4/services/keyword_view_service_client.py @@ -13,7 +13,8 @@ # 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. -"""Accesses the google.ads.googleads.v1.services KeywordViewService API.""" + +"""Accesses the google.ads.googleads.v4.services KeywordViewService API.""" import pkg_resources import warnings @@ -22,15 +23,19 @@ import google.api_core.gapic_v1.client_info import google.api_core.gapic_v1.config import google.api_core.gapic_v1.method +import google.api_core.gapic_v1.routing_header import google.api_core.grpc_helpers import google.api_core.path_template -from google.ads.google_ads.v1.services import keyword_view_service_client_config -from google.ads.google_ads.v1.services.transports import keyword_view_service_grpc_transport -from google.ads.google_ads.v1.proto.services import keyword_view_service_pb2 +from google.ads.google_ads.v4.services import keyword_view_service_client_config +from google.ads.google_ads.v4.services.transports import keyword_view_service_grpc_transport +from google.ads.google_ads.v4.proto.services import keyword_view_service_pb2 + + _GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( - 'google-ads', ).version + 'google-ads', +).version class KeywordViewServiceClient(object): @@ -41,7 +46,8 @@ class KeywordViewServiceClient(object): # The name of the interface for this client. This is the key used to # find the method configuration in the client_config dictionary. - _INTERFACE_NAME = 'google.ads.googleads.v1.services.KeywordViewService' + _INTERFACE_NAME = 'google.ads.googleads.v4.services.KeywordViewService' + @classmethod def from_service_account_file(cls, filename, *args, **kwargs): @@ -64,6 +70,7 @@ def from_service_account_file(cls, filename, *args, **kwargs): from_service_account_json = from_service_account_file + @classmethod def keyword_view_path(cls, customer, keyword_view): """Return a fully-qualified keyword_view string.""" @@ -73,12 +80,8 @@ def keyword_view_path(cls, customer, keyword_view): keyword_view=keyword_view, ) - def __init__(self, - transport=None, - channel=None, - credentials=None, - client_config=None, - client_info=None): + def __init__(self, transport=None, channel=None, credentials=None, + client_config=None, client_info=None): """Constructor. Args: @@ -111,19 +114,15 @@ def __init__(self, """ # Raise deprecation warnings for things we want to go away. if client_config is not None: - warnings.warn( - 'The `client_config` argument is deprecated.', - PendingDeprecationWarning, - stacklevel=2) + warnings.warn('The `client_config` argument is deprecated.', + PendingDeprecationWarning, stacklevel=2) else: client_config = keyword_view_service_client_config.config if channel: - warnings.warn( - 'The `channel` argument is deprecated; use ' - '`transport` instead.', - PendingDeprecationWarning, - stacklevel=2) + warnings.warn('The `channel` argument is deprecated; use ' + '`transport` instead.', + PendingDeprecationWarning, stacklevel=2) # Instantiate the transport. # The transport is responsible for handling serialization and @@ -132,14 +131,14 @@ def __init__(self, if callable(transport): self.transport = transport( credentials=credentials, - default_class=keyword_view_service_grpc_transport. - KeywordViewServiceGrpcTransport, + default_class=keyword_view_service_grpc_transport.KeywordViewServiceGrpcTransport, ) else: if credentials: raise ValueError( 'Received both a transport instance and ' - 'credentials; these are mutually exclusive.') + 'credentials; these are mutually exclusive.' + ) self.transport = transport else: self.transport = keyword_view_service_grpc_transport.KeywordViewServiceGrpcTransport( @@ -150,7 +149,8 @@ def __init__(self, if client_info is None: client_info = google.api_core.gapic_v1.client_info.ClientInfo( - gapic_version=_GAPIC_LIBRARY_VERSION, ) + gapic_version=_GAPIC_LIBRARY_VERSION, + ) else: client_info.gapic_version = _GAPIC_LIBRARY_VERSION self._client_info = client_info @@ -160,7 +160,8 @@ def __init__(self, # (Ordinarily, these are the defaults specified in the `*_config.py` # file next to this one.) self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( - client_config['interfaces'][self._INTERFACE_NAME], ) + client_config['interfaces'][self._INTERFACE_NAME], + ) # Save a dictionary of cached API call functions. # These are the actual callables which invoke the proper @@ -169,16 +170,17 @@ def __init__(self, self._inner_api_calls = {} # Service calls - def get_keyword_view(self, - resource_name, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): + def get_keyword_view( + self, + resource_name, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None): """ Returns the requested keyword view in full detail. Args: - resource_name (str): The resource name of the keyword view to fetch. + resource_name (str): Required. The resource name of the keyword view to fetch. retry (Optional[google.api_core.retry.Retry]): A retry object used to retry requests. If ``None`` is specified, requests will not be retried. @@ -189,7 +191,7 @@ def get_keyword_view(self, that is provided to the method. Returns: - A :class:`~google.ads.googleads_v1.types.KeywordView` instance. + A :class:`~google.ads.googleads_v4.types.KeywordView` instance. Raises: google.api_core.exceptions.GoogleAPICallError: If the request @@ -200,16 +202,25 @@ def get_keyword_view(self, """ # Wrap the transport method to add retry and timeout logic. if 'get_keyword_view' not in self._inner_api_calls: - self._inner_api_calls[ - 'get_keyword_view'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.get_keyword_view, - default_retry=self._method_configs['GetKeywordView'].retry, - default_timeout=self._method_configs['GetKeywordView']. - timeout, - client_info=self._client_info, - ) + self._inner_api_calls['get_keyword_view'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.get_keyword_view, + default_retry=self._method_configs['GetKeywordView'].retry, + default_timeout=self._method_configs['GetKeywordView'].timeout, + client_info=self._client_info, + ) request = keyword_view_service_pb2.GetKeywordViewRequest( - resource_name=resource_name, ) - return self._inner_api_calls['get_keyword_view']( - request, retry=retry, timeout=timeout, metadata=metadata) + resource_name=resource_name, + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [('resource_name', resource_name)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata(routing_header) + metadata.append(routing_metadata) + + return self._inner_api_calls['get_keyword_view'](request, retry=retry, timeout=timeout, metadata=metadata) diff --git a/google/ads/google_ads/v4/services/keyword_view_service_client_config.py b/google/ads/google_ads/v4/services/keyword_view_service_client_config.py new file mode 100644 index 000000000..3c7de4c25 --- /dev/null +++ b/google/ads/google_ads/v4/services/keyword_view_service_client_config.py @@ -0,0 +1,31 @@ +config = { + "interfaces": { + "google.ads.googleads.v4.services.KeywordViewService": { + "retry_codes": { + "idempotent": [ + "DEADLINE_EXCEEDED", + "UNAVAILABLE" + ], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 5000, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 3600000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 3600000, + "total_timeout_millis": 3600000 + } + }, + "methods": { + "GetKeywordView": { + "timeout_millis": 60000, + "retry_codes_name": "idempotent", + "retry_params_name": "default" + } + } + } + } +} diff --git a/google/ads/google_ads/v4/services/label_service_client.py b/google/ads/google_ads/v4/services/label_service_client.py new file mode 100644 index 000000000..ddb7ac66e --- /dev/null +++ b/google/ads/google_ads/v4/services/label_service_client.py @@ -0,0 +1,297 @@ +# -*- coding: utf-8 -*- +# +# 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. + +"""Accesses the google.ads.googleads.v4.services LabelService API.""" + +import pkg_resources +import warnings + +from google.oauth2 import service_account +import google.api_core.gapic_v1.client_info +import google.api_core.gapic_v1.config +import google.api_core.gapic_v1.method +import google.api_core.gapic_v1.routing_header +import google.api_core.grpc_helpers +import google.api_core.path_template + +from google.ads.google_ads.v4.services import label_service_client_config +from google.ads.google_ads.v4.services.transports import label_service_grpc_transport +from google.ads.google_ads.v4.proto.services import label_service_pb2 + + + +_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( + 'google-ads', +).version + + +class LabelServiceClient(object): + """Service to manage labels.""" + + SERVICE_ADDRESS = 'googleads.googleapis.com:443' + """The default address of the service.""" + + # The name of the interface for this client. This is the key used to + # find the method configuration in the client_config dictionary. + _INTERFACE_NAME = 'google.ads.googleads.v4.services.LabelService' + + + @classmethod + def from_service_account_file(cls, filename, *args, **kwargs): + """Creates an instance of this client using the provided credentials + file. + + Args: + filename (str): The path to the service account private key json + file. + args: Additional arguments to pass to the constructor. + kwargs: Additional arguments to pass to the constructor. + + Returns: + LabelServiceClient: The constructed client. + """ + credentials = service_account.Credentials.from_service_account_file( + filename) + kwargs['credentials'] = credentials + return cls(*args, **kwargs) + + from_service_account_json = from_service_account_file + + + @classmethod + def label_path(cls, customer, label): + """Return a fully-qualified label string.""" + return google.api_core.path_template.expand( + 'customers/{customer}/labels/{label}', + customer=customer, + label=label, + ) + + def __init__(self, transport=None, channel=None, credentials=None, + client_config=None, client_info=None): + """Constructor. + + Args: + transport (Union[~.LabelServiceGrpcTransport, + Callable[[~.Credentials, type], ~.LabelServiceGrpcTransport]): A transport + instance, responsible for actually making the API calls. + The default transport uses the gRPC protocol. + This argument may also be a callable which returns a + transport instance. Callables will be sent the credentials + as the first argument and the default transport class as + the second argument. + channel (grpc.Channel): DEPRECATED. A ``Channel`` instance + through which to make calls. This argument is mutually exclusive + with ``credentials``; providing both will raise an exception. + credentials (google.auth.credentials.Credentials): The + authorization credentials to attach to requests. These + credentials identify this application to the service. If none + are specified, the client will attempt to ascertain the + credentials from the environment. + This argument is mutually exclusive with providing a + transport instance to ``transport``; doing so will raise + an exception. + client_config (dict): DEPRECATED. A dictionary of call options for + each method. If not specified, the default configuration is used. + client_info (google.api_core.gapic_v1.client_info.ClientInfo): + The client info used to send a user-agent string along with + API requests. If ``None``, then default info will be used. + Generally, you only need to set this if you're developing + your own client library. + """ + # Raise deprecation warnings for things we want to go away. + if client_config is not None: + warnings.warn('The `client_config` argument is deprecated.', + PendingDeprecationWarning, stacklevel=2) + else: + client_config = label_service_client_config.config + + if channel: + warnings.warn('The `channel` argument is deprecated; use ' + '`transport` instead.', + PendingDeprecationWarning, stacklevel=2) + + # Instantiate the transport. + # The transport is responsible for handling serialization and + # deserialization and actually sending data to the service. + if transport: + if callable(transport): + self.transport = transport( + credentials=credentials, + default_class=label_service_grpc_transport.LabelServiceGrpcTransport, + ) + else: + if credentials: + raise ValueError( + 'Received both a transport instance and ' + 'credentials; these are mutually exclusive.' + ) + self.transport = transport + else: + self.transport = label_service_grpc_transport.LabelServiceGrpcTransport( + address=self.SERVICE_ADDRESS, + channel=channel, + credentials=credentials, + ) + + if client_info is None: + client_info = google.api_core.gapic_v1.client_info.ClientInfo( + gapic_version=_GAPIC_LIBRARY_VERSION, + ) + else: + client_info.gapic_version = _GAPIC_LIBRARY_VERSION + self._client_info = client_info + + # Parse out the default settings for retry and timeout for each RPC + # from the client configuration. + # (Ordinarily, these are the defaults specified in the `*_config.py` + # file next to this one.) + self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( + client_config['interfaces'][self._INTERFACE_NAME], + ) + + # Save a dictionary of cached API call functions. + # These are the actual callables which invoke the proper + # transport methods, wrapped with `wrap_method` to add retry, + # timeout, and the like. + self._inner_api_calls = {} + + # Service calls + def get_label( + self, + resource_name, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None): + """ + Returns the requested label in full detail. + + Args: + resource_name (str): Required. The resource name of the label to fetch. + retry (Optional[google.api_core.retry.Retry]): A retry object used + to retry requests. If ``None`` is specified, requests will not + be retried. + timeout (Optional[float]): The amount of time, in seconds, to wait + for the request to complete. Note that if ``retry`` is + specified, the timeout applies to each individual attempt. + metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata + that is provided to the method. + + Returns: + A :class:`~google.ads.googleads_v4.types.Label` instance. + + Raises: + google.api_core.exceptions.GoogleAPICallError: If the request + failed for any reason. + google.api_core.exceptions.RetryError: If the request failed due + to a retryable error and retry attempts failed. + ValueError: If the parameters are invalid. + """ + # Wrap the transport method to add retry and timeout logic. + if 'get_label' not in self._inner_api_calls: + self._inner_api_calls['get_label'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.get_label, + default_retry=self._method_configs['GetLabel'].retry, + default_timeout=self._method_configs['GetLabel'].timeout, + client_info=self._client_info, + ) + + request = label_service_pb2.GetLabelRequest( + resource_name=resource_name, + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [('resource_name', resource_name)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata(routing_header) + metadata.append(routing_metadata) + + return self._inner_api_calls['get_label'](request, retry=retry, timeout=timeout, metadata=metadata) + + def mutate_labels( + self, + customer_id, + operations, + partial_failure=None, + validate_only=None, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None): + """ + Creates, updates, or removes labels. Operation statuses are returned. + + Args: + customer_id (str): Required. ID of the customer whose labels are being modified. + operations (list[Union[dict, ~google.ads.googleads_v4.types.LabelOperation]]): Required. The list of operations to perform on labels. + + If a dict is provided, it must be of the same form as the protobuf + message :class:`~google.ads.googleads_v4.types.LabelOperation` + partial_failure (bool): If true, successful operations will be carried out and invalid + operations will return errors. If false, all operations will be carried + out in one transaction if and only if they are all valid. + Default is false. + validate_only (bool): If true, the request is validated but not executed. Only errors are + returned, not results. + retry (Optional[google.api_core.retry.Retry]): A retry object used + to retry requests. If ``None`` is specified, requests will not + be retried. + timeout (Optional[float]): The amount of time, in seconds, to wait + for the request to complete. Note that if ``retry`` is + specified, the timeout applies to each individual attempt. + metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata + that is provided to the method. + + Returns: + A :class:`~google.ads.googleads_v4.types.MutateLabelsResponse` instance. + + Raises: + google.api_core.exceptions.GoogleAPICallError: If the request + failed for any reason. + google.api_core.exceptions.RetryError: If the request failed due + to a retryable error and retry attempts failed. + ValueError: If the parameters are invalid. + """ + # Wrap the transport method to add retry and timeout logic. + if 'mutate_labels' not in self._inner_api_calls: + self._inner_api_calls['mutate_labels'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.mutate_labels, + default_retry=self._method_configs['MutateLabels'].retry, + default_timeout=self._method_configs['MutateLabels'].timeout, + client_info=self._client_info, + ) + + request = label_service_pb2.MutateLabelsRequest( + customer_id=customer_id, + operations=operations, + partial_failure=partial_failure, + validate_only=validate_only, + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [('customer_id', customer_id)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata(routing_header) + metadata.append(routing_metadata) + + return self._inner_api_calls['mutate_labels'](request, retry=retry, timeout=timeout, metadata=metadata) diff --git a/google/ads/google_ads/v4/services/label_service_client_config.py b/google/ads/google_ads/v4/services/label_service_client_config.py new file mode 100644 index 000000000..852373c5e --- /dev/null +++ b/google/ads/google_ads/v4/services/label_service_client_config.py @@ -0,0 +1,36 @@ +config = { + "interfaces": { + "google.ads.googleads.v4.services.LabelService": { + "retry_codes": { + "idempotent": [ + "DEADLINE_EXCEEDED", + "UNAVAILABLE" + ], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 5000, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 3600000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 3600000, + "total_timeout_millis": 3600000 + } + }, + "methods": { + "GetLabel": { + "timeout_millis": 60000, + "retry_codes_name": "idempotent", + "retry_params_name": "default" + }, + "MutateLabels": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + } + } + } + } +} diff --git a/google/ads/google_ads/v1/services/landing_page_view_service_client.py b/google/ads/google_ads/v4/services/landing_page_view_service_client.py similarity index 75% rename from google/ads/google_ads/v1/services/landing_page_view_service_client.py rename to google/ads/google_ads/v4/services/landing_page_view_service_client.py index 919a3072f..2b2532e41 100644 --- a/google/ads/google_ads/v1/services/landing_page_view_service_client.py +++ b/google/ads/google_ads/v4/services/landing_page_view_service_client.py @@ -13,7 +13,8 @@ # 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. -"""Accesses the google.ads.googleads.v1.services LandingPageViewService API.""" + +"""Accesses the google.ads.googleads.v4.services LandingPageViewService API.""" import pkg_resources import warnings @@ -22,15 +23,19 @@ import google.api_core.gapic_v1.client_info import google.api_core.gapic_v1.config import google.api_core.gapic_v1.method +import google.api_core.gapic_v1.routing_header import google.api_core.grpc_helpers import google.api_core.path_template -from google.ads.google_ads.v1.services import landing_page_view_service_client_config -from google.ads.google_ads.v1.services.transports import landing_page_view_service_grpc_transport -from google.ads.google_ads.v1.proto.services import landing_page_view_service_pb2 +from google.ads.google_ads.v4.services import landing_page_view_service_client_config +from google.ads.google_ads.v4.services.transports import landing_page_view_service_grpc_transport +from google.ads.google_ads.v4.proto.services import landing_page_view_service_pb2 + + _GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( - 'google-ads', ).version + 'google-ads', +).version class LandingPageViewServiceClient(object): @@ -41,7 +46,8 @@ class LandingPageViewServiceClient(object): # The name of the interface for this client. This is the key used to # find the method configuration in the client_config dictionary. - _INTERFACE_NAME = 'google.ads.googleads.v1.services.LandingPageViewService' + _INTERFACE_NAME = 'google.ads.googleads.v4.services.LandingPageViewService' + @classmethod def from_service_account_file(cls, filename, *args, **kwargs): @@ -64,6 +70,7 @@ def from_service_account_file(cls, filename, *args, **kwargs): from_service_account_json = from_service_account_file + @classmethod def landing_page_view_path(cls, customer, landing_page_view): """Return a fully-qualified landing_page_view string.""" @@ -73,12 +80,8 @@ def landing_page_view_path(cls, customer, landing_page_view): landing_page_view=landing_page_view, ) - def __init__(self, - transport=None, - channel=None, - credentials=None, - client_config=None, - client_info=None): + def __init__(self, transport=None, channel=None, credentials=None, + client_config=None, client_info=None): """Constructor. Args: @@ -111,19 +114,15 @@ def __init__(self, """ # Raise deprecation warnings for things we want to go away. if client_config is not None: - warnings.warn( - 'The `client_config` argument is deprecated.', - PendingDeprecationWarning, - stacklevel=2) + warnings.warn('The `client_config` argument is deprecated.', + PendingDeprecationWarning, stacklevel=2) else: client_config = landing_page_view_service_client_config.config if channel: - warnings.warn( - 'The `channel` argument is deprecated; use ' - '`transport` instead.', - PendingDeprecationWarning, - stacklevel=2) + warnings.warn('The `channel` argument is deprecated; use ' + '`transport` instead.', + PendingDeprecationWarning, stacklevel=2) # Instantiate the transport. # The transport is responsible for handling serialization and @@ -132,14 +131,14 @@ def __init__(self, if callable(transport): self.transport = transport( credentials=credentials, - default_class=landing_page_view_service_grpc_transport. - LandingPageViewServiceGrpcTransport, + default_class=landing_page_view_service_grpc_transport.LandingPageViewServiceGrpcTransport, ) else: if credentials: raise ValueError( 'Received both a transport instance and ' - 'credentials; these are mutually exclusive.') + 'credentials; these are mutually exclusive.' + ) self.transport = transport else: self.transport = landing_page_view_service_grpc_transport.LandingPageViewServiceGrpcTransport( @@ -150,7 +149,8 @@ def __init__(self, if client_info is None: client_info = google.api_core.gapic_v1.client_info.ClientInfo( - gapic_version=_GAPIC_LIBRARY_VERSION, ) + gapic_version=_GAPIC_LIBRARY_VERSION, + ) else: client_info.gapic_version = _GAPIC_LIBRARY_VERSION self._client_info = client_info @@ -160,7 +160,8 @@ def __init__(self, # (Ordinarily, these are the defaults specified in the `*_config.py` # file next to this one.) self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( - client_config['interfaces'][self._INTERFACE_NAME], ) + client_config['interfaces'][self._INTERFACE_NAME], + ) # Save a dictionary of cached API call functions. # These are the actual callables which invoke the proper @@ -169,16 +170,17 @@ def __init__(self, self._inner_api_calls = {} # Service calls - def get_landing_page_view(self, - resource_name, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): + def get_landing_page_view( + self, + resource_name, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None): """ Returns the requested landing page view in full detail. Args: - resource_name (str): The resource name of the landing page view to fetch. + resource_name (str): Required. The resource name of the landing page view to fetch. retry (Optional[google.api_core.retry.Retry]): A retry object used to retry requests. If ``None`` is specified, requests will not be retried. @@ -189,7 +191,7 @@ def get_landing_page_view(self, that is provided to the method. Returns: - A :class:`~google.ads.googleads_v1.types.LandingPageView` instance. + A :class:`~google.ads.googleads_v4.types.LandingPageView` instance. Raises: google.api_core.exceptions.GoogleAPICallError: If the request @@ -200,17 +202,25 @@ def get_landing_page_view(self, """ # Wrap the transport method to add retry and timeout logic. if 'get_landing_page_view' not in self._inner_api_calls: - self._inner_api_calls[ - 'get_landing_page_view'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.get_landing_page_view, - default_retry=self._method_configs['GetLandingPageView']. - retry, - default_timeout=self._method_configs['GetLandingPageView']. - timeout, - client_info=self._client_info, - ) + self._inner_api_calls['get_landing_page_view'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.get_landing_page_view, + default_retry=self._method_configs['GetLandingPageView'].retry, + default_timeout=self._method_configs['GetLandingPageView'].timeout, + client_info=self._client_info, + ) request = landing_page_view_service_pb2.GetLandingPageViewRequest( - resource_name=resource_name, ) - return self._inner_api_calls['get_landing_page_view']( - request, retry=retry, timeout=timeout, metadata=metadata) + resource_name=resource_name, + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [('resource_name', resource_name)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata(routing_header) + metadata.append(routing_metadata) + + return self._inner_api_calls['get_landing_page_view'](request, retry=retry, timeout=timeout, metadata=metadata) diff --git a/google/ads/google_ads/v4/services/landing_page_view_service_client_config.py b/google/ads/google_ads/v4/services/landing_page_view_service_client_config.py new file mode 100644 index 000000000..8b4b60a61 --- /dev/null +++ b/google/ads/google_ads/v4/services/landing_page_view_service_client_config.py @@ -0,0 +1,31 @@ +config = { + "interfaces": { + "google.ads.googleads.v4.services.LandingPageViewService": { + "retry_codes": { + "idempotent": [ + "DEADLINE_EXCEEDED", + "UNAVAILABLE" + ], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 5000, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 3600000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 3600000, + "total_timeout_millis": 3600000 + } + }, + "methods": { + "GetLandingPageView": { + "timeout_millis": 60000, + "retry_codes_name": "idempotent", + "retry_params_name": "default" + } + } + } + } +} diff --git a/google/ads/google_ads/v1/services/language_constant_service_client.py b/google/ads/google_ads/v4/services/language_constant_service_client.py similarity index 75% rename from google/ads/google_ads/v1/services/language_constant_service_client.py rename to google/ads/google_ads/v4/services/language_constant_service_client.py index 42388805d..d5a7bc0ff 100644 --- a/google/ads/google_ads/v1/services/language_constant_service_client.py +++ b/google/ads/google_ads/v4/services/language_constant_service_client.py @@ -13,7 +13,8 @@ # 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. -"""Accesses the google.ads.googleads.v1.services LanguageConstantService API.""" + +"""Accesses the google.ads.googleads.v4.services LanguageConstantService API.""" import pkg_resources import warnings @@ -22,15 +23,19 @@ import google.api_core.gapic_v1.client_info import google.api_core.gapic_v1.config import google.api_core.gapic_v1.method +import google.api_core.gapic_v1.routing_header import google.api_core.grpc_helpers import google.api_core.path_template -from google.ads.google_ads.v1.services import language_constant_service_client_config -from google.ads.google_ads.v1.services.transports import language_constant_service_grpc_transport -from google.ads.google_ads.v1.proto.services import language_constant_service_pb2 +from google.ads.google_ads.v4.services import language_constant_service_client_config +from google.ads.google_ads.v4.services.transports import language_constant_service_grpc_transport +from google.ads.google_ads.v4.proto.services import language_constant_service_pb2 + + _GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( - 'google-ads', ).version + 'google-ads', +).version class LanguageConstantServiceClient(object): @@ -41,7 +46,8 @@ class LanguageConstantServiceClient(object): # The name of the interface for this client. This is the key used to # find the method configuration in the client_config dictionary. - _INTERFACE_NAME = 'google.ads.googleads.v1.services.LanguageConstantService' + _INTERFACE_NAME = 'google.ads.googleads.v4.services.LanguageConstantService' + @classmethod def from_service_account_file(cls, filename, *args, **kwargs): @@ -64,6 +70,7 @@ def from_service_account_file(cls, filename, *args, **kwargs): from_service_account_json = from_service_account_file + @classmethod def language_constant_path(cls, language_constant): """Return a fully-qualified language_constant string.""" @@ -72,12 +79,8 @@ def language_constant_path(cls, language_constant): language_constant=language_constant, ) - def __init__(self, - transport=None, - channel=None, - credentials=None, - client_config=None, - client_info=None): + def __init__(self, transport=None, channel=None, credentials=None, + client_config=None, client_info=None): """Constructor. Args: @@ -110,19 +113,15 @@ def __init__(self, """ # Raise deprecation warnings for things we want to go away. if client_config is not None: - warnings.warn( - 'The `client_config` argument is deprecated.', - PendingDeprecationWarning, - stacklevel=2) + warnings.warn('The `client_config` argument is deprecated.', + PendingDeprecationWarning, stacklevel=2) else: client_config = language_constant_service_client_config.config if channel: - warnings.warn( - 'The `channel` argument is deprecated; use ' - '`transport` instead.', - PendingDeprecationWarning, - stacklevel=2) + warnings.warn('The `channel` argument is deprecated; use ' + '`transport` instead.', + PendingDeprecationWarning, stacklevel=2) # Instantiate the transport. # The transport is responsible for handling serialization and @@ -131,14 +130,14 @@ def __init__(self, if callable(transport): self.transport = transport( credentials=credentials, - default_class=language_constant_service_grpc_transport. - LanguageConstantServiceGrpcTransport, + default_class=language_constant_service_grpc_transport.LanguageConstantServiceGrpcTransport, ) else: if credentials: raise ValueError( 'Received both a transport instance and ' - 'credentials; these are mutually exclusive.') + 'credentials; these are mutually exclusive.' + ) self.transport = transport else: self.transport = language_constant_service_grpc_transport.LanguageConstantServiceGrpcTransport( @@ -149,7 +148,8 @@ def __init__(self, if client_info is None: client_info = google.api_core.gapic_v1.client_info.ClientInfo( - gapic_version=_GAPIC_LIBRARY_VERSION, ) + gapic_version=_GAPIC_LIBRARY_VERSION, + ) else: client_info.gapic_version = _GAPIC_LIBRARY_VERSION self._client_info = client_info @@ -159,7 +159,8 @@ def __init__(self, # (Ordinarily, these are the defaults specified in the `*_config.py` # file next to this one.) self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( - client_config['interfaces'][self._INTERFACE_NAME], ) + client_config['interfaces'][self._INTERFACE_NAME], + ) # Save a dictionary of cached API call functions. # These are the actual callables which invoke the proper @@ -168,16 +169,17 @@ def __init__(self, self._inner_api_calls = {} # Service calls - def get_language_constant(self, - resource_name, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): + def get_language_constant( + self, + resource_name, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None): """ Returns the requested language constant. Args: - resource_name (str): Resource name of the language constant to fetch. + resource_name (str): Required. Resource name of the language constant to fetch. retry (Optional[google.api_core.retry.Retry]): A retry object used to retry requests. If ``None`` is specified, requests will not be retried. @@ -188,7 +190,7 @@ def get_language_constant(self, that is provided to the method. Returns: - A :class:`~google.ads.googleads_v1.types.LanguageConstant` instance. + A :class:`~google.ads.googleads_v4.types.LanguageConstant` instance. Raises: google.api_core.exceptions.GoogleAPICallError: If the request @@ -199,17 +201,25 @@ def get_language_constant(self, """ # Wrap the transport method to add retry and timeout logic. if 'get_language_constant' not in self._inner_api_calls: - self._inner_api_calls[ - 'get_language_constant'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.get_language_constant, - default_retry=self._method_configs['GetLanguageConstant']. - retry, - default_timeout=self. - _method_configs['GetLanguageConstant'].timeout, - client_info=self._client_info, - ) + self._inner_api_calls['get_language_constant'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.get_language_constant, + default_retry=self._method_configs['GetLanguageConstant'].retry, + default_timeout=self._method_configs['GetLanguageConstant'].timeout, + client_info=self._client_info, + ) request = language_constant_service_pb2.GetLanguageConstantRequest( - resource_name=resource_name, ) - return self._inner_api_calls['get_language_constant']( - request, retry=retry, timeout=timeout, metadata=metadata) + resource_name=resource_name, + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [('resource_name', resource_name)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata(routing_header) + metadata.append(routing_metadata) + + return self._inner_api_calls['get_language_constant'](request, retry=retry, timeout=timeout, metadata=metadata) diff --git a/google/ads/google_ads/v4/services/language_constant_service_client_config.py b/google/ads/google_ads/v4/services/language_constant_service_client_config.py new file mode 100644 index 000000000..e83b92e02 --- /dev/null +++ b/google/ads/google_ads/v4/services/language_constant_service_client_config.py @@ -0,0 +1,31 @@ +config = { + "interfaces": { + "google.ads.googleads.v4.services.LanguageConstantService": { + "retry_codes": { + "idempotent": [ + "DEADLINE_EXCEEDED", + "UNAVAILABLE" + ], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 5000, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 3600000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 3600000, + "total_timeout_millis": 3600000 + } + }, + "methods": { + "GetLanguageConstant": { + "timeout_millis": 60000, + "retry_codes_name": "idempotent", + "retry_params_name": "default" + } + } + } + } +} diff --git a/google/ads/google_ads/v1/services/location_view_service_client.py b/google/ads/google_ads/v4/services/location_view_service_client.py similarity index 76% rename from google/ads/google_ads/v1/services/location_view_service_client.py rename to google/ads/google_ads/v4/services/location_view_service_client.py index 42ce44b17..c5b85da49 100644 --- a/google/ads/google_ads/v1/services/location_view_service_client.py +++ b/google/ads/google_ads/v4/services/location_view_service_client.py @@ -13,7 +13,8 @@ # 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. -"""Accesses the google.ads.googleads.v1.services LocationViewService API.""" + +"""Accesses the google.ads.googleads.v4.services LocationViewService API.""" import pkg_resources import warnings @@ -22,15 +23,19 @@ import google.api_core.gapic_v1.client_info import google.api_core.gapic_v1.config import google.api_core.gapic_v1.method +import google.api_core.gapic_v1.routing_header import google.api_core.grpc_helpers import google.api_core.path_template -from google.ads.google_ads.v1.services import location_view_service_client_config -from google.ads.google_ads.v1.services.transports import location_view_service_grpc_transport -from google.ads.google_ads.v1.proto.services import location_view_service_pb2 +from google.ads.google_ads.v4.services import location_view_service_client_config +from google.ads.google_ads.v4.services.transports import location_view_service_grpc_transport +from google.ads.google_ads.v4.proto.services import location_view_service_pb2 + + _GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( - 'google-ads', ).version + 'google-ads', +).version class LocationViewServiceClient(object): @@ -41,7 +46,8 @@ class LocationViewServiceClient(object): # The name of the interface for this client. This is the key used to # find the method configuration in the client_config dictionary. - _INTERFACE_NAME = 'google.ads.googleads.v1.services.LocationViewService' + _INTERFACE_NAME = 'google.ads.googleads.v4.services.LocationViewService' + @classmethod def from_service_account_file(cls, filename, *args, **kwargs): @@ -64,6 +70,7 @@ def from_service_account_file(cls, filename, *args, **kwargs): from_service_account_json = from_service_account_file + @classmethod def location_view_path(cls, customer, location_view): """Return a fully-qualified location_view string.""" @@ -73,12 +80,8 @@ def location_view_path(cls, customer, location_view): location_view=location_view, ) - def __init__(self, - transport=None, - channel=None, - credentials=None, - client_config=None, - client_info=None): + def __init__(self, transport=None, channel=None, credentials=None, + client_config=None, client_info=None): """Constructor. Args: @@ -111,19 +114,15 @@ def __init__(self, """ # Raise deprecation warnings for things we want to go away. if client_config is not None: - warnings.warn( - 'The `client_config` argument is deprecated.', - PendingDeprecationWarning, - stacklevel=2) + warnings.warn('The `client_config` argument is deprecated.', + PendingDeprecationWarning, stacklevel=2) else: client_config = location_view_service_client_config.config if channel: - warnings.warn( - 'The `channel` argument is deprecated; use ' - '`transport` instead.', - PendingDeprecationWarning, - stacklevel=2) + warnings.warn('The `channel` argument is deprecated; use ' + '`transport` instead.', + PendingDeprecationWarning, stacklevel=2) # Instantiate the transport. # The transport is responsible for handling serialization and @@ -132,14 +131,14 @@ def __init__(self, if callable(transport): self.transport = transport( credentials=credentials, - default_class=location_view_service_grpc_transport. - LocationViewServiceGrpcTransport, + default_class=location_view_service_grpc_transport.LocationViewServiceGrpcTransport, ) else: if credentials: raise ValueError( 'Received both a transport instance and ' - 'credentials; these are mutually exclusive.') + 'credentials; these are mutually exclusive.' + ) self.transport = transport else: self.transport = location_view_service_grpc_transport.LocationViewServiceGrpcTransport( @@ -150,7 +149,8 @@ def __init__(self, if client_info is None: client_info = google.api_core.gapic_v1.client_info.ClientInfo( - gapic_version=_GAPIC_LIBRARY_VERSION, ) + gapic_version=_GAPIC_LIBRARY_VERSION, + ) else: client_info.gapic_version = _GAPIC_LIBRARY_VERSION self._client_info = client_info @@ -160,7 +160,8 @@ def __init__(self, # (Ordinarily, these are the defaults specified in the `*_config.py` # file next to this one.) self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( - client_config['interfaces'][self._INTERFACE_NAME], ) + client_config['interfaces'][self._INTERFACE_NAME], + ) # Save a dictionary of cached API call functions. # These are the actual callables which invoke the proper @@ -169,16 +170,17 @@ def __init__(self, self._inner_api_calls = {} # Service calls - def get_location_view(self, - resource_name, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): + def get_location_view( + self, + resource_name, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None): """ Returns the requested location view in full detail. Args: - resource_name (str): The resource name of the location view to fetch. + resource_name (str): Required. The resource name of the location view to fetch. retry (Optional[google.api_core.retry.Retry]): A retry object used to retry requests. If ``None`` is specified, requests will not be retried. @@ -189,7 +191,7 @@ def get_location_view(self, that is provided to the method. Returns: - A :class:`~google.ads.googleads_v1.types.LocationView` instance. + A :class:`~google.ads.googleads_v4.types.LocationView` instance. Raises: google.api_core.exceptions.GoogleAPICallError: If the request @@ -200,17 +202,25 @@ def get_location_view(self, """ # Wrap the transport method to add retry and timeout logic. if 'get_location_view' not in self._inner_api_calls: - self._inner_api_calls[ - 'get_location_view'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.get_location_view, - default_retry=self._method_configs['GetLocationView']. - retry, - default_timeout=self._method_configs['GetLocationView']. - timeout, - client_info=self._client_info, - ) + self._inner_api_calls['get_location_view'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.get_location_view, + default_retry=self._method_configs['GetLocationView'].retry, + default_timeout=self._method_configs['GetLocationView'].timeout, + client_info=self._client_info, + ) request = location_view_service_pb2.GetLocationViewRequest( - resource_name=resource_name, ) - return self._inner_api_calls['get_location_view']( - request, retry=retry, timeout=timeout, metadata=metadata) + resource_name=resource_name, + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [('resource_name', resource_name)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata(routing_header) + metadata.append(routing_metadata) + + return self._inner_api_calls['get_location_view'](request, retry=retry, timeout=timeout, metadata=metadata) diff --git a/google/ads/google_ads/v4/services/location_view_service_client_config.py b/google/ads/google_ads/v4/services/location_view_service_client_config.py new file mode 100644 index 000000000..85597cf37 --- /dev/null +++ b/google/ads/google_ads/v4/services/location_view_service_client_config.py @@ -0,0 +1,31 @@ +config = { + "interfaces": { + "google.ads.googleads.v4.services.LocationViewService": { + "retry_codes": { + "idempotent": [ + "DEADLINE_EXCEEDED", + "UNAVAILABLE" + ], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 5000, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 3600000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 3600000, + "total_timeout_millis": 3600000 + } + }, + "methods": { + "GetLocationView": { + "timeout_millis": 60000, + "retry_codes_name": "idempotent", + "retry_params_name": "default" + } + } + } + } +} diff --git a/google/ads/google_ads/v1/services/managed_placement_view_service_client.py b/google/ads/google_ads/v4/services/managed_placement_view_service_client.py similarity index 78% rename from google/ads/google_ads/v1/services/managed_placement_view_service_client.py rename to google/ads/google_ads/v4/services/managed_placement_view_service_client.py index ed1a93008..e883d725d 100644 --- a/google/ads/google_ads/v1/services/managed_placement_view_service_client.py +++ b/google/ads/google_ads/v4/services/managed_placement_view_service_client.py @@ -13,7 +13,8 @@ # 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. -"""Accesses the google.ads.googleads.v1.services ManagedPlacementViewService API.""" + +"""Accesses the google.ads.googleads.v4.services ManagedPlacementViewService API.""" import pkg_resources import warnings @@ -22,15 +23,19 @@ import google.api_core.gapic_v1.client_info import google.api_core.gapic_v1.config import google.api_core.gapic_v1.method +import google.api_core.gapic_v1.routing_header import google.api_core.grpc_helpers import google.api_core.path_template -from google.ads.google_ads.v1.services import managed_placement_view_service_client_config -from google.ads.google_ads.v1.services.transports import managed_placement_view_service_grpc_transport -from google.ads.google_ads.v1.proto.services import managed_placement_view_service_pb2 +from google.ads.google_ads.v4.services import managed_placement_view_service_client_config +from google.ads.google_ads.v4.services.transports import managed_placement_view_service_grpc_transport +from google.ads.google_ads.v4.proto.services import managed_placement_view_service_pb2 + + _GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( - 'google-ads', ).version + 'google-ads', +).version class ManagedPlacementViewServiceClient(object): @@ -41,7 +46,8 @@ class ManagedPlacementViewServiceClient(object): # The name of the interface for this client. This is the key used to # find the method configuration in the client_config dictionary. - _INTERFACE_NAME = 'google.ads.googleads.v1.services.ManagedPlacementViewService' + _INTERFACE_NAME = 'google.ads.googleads.v4.services.ManagedPlacementViewService' + @classmethod def from_service_account_file(cls, filename, *args, **kwargs): @@ -64,6 +70,7 @@ def from_service_account_file(cls, filename, *args, **kwargs): from_service_account_json = from_service_account_file + @classmethod def managed_placement_view_path(cls, customer, managed_placement_view): """Return a fully-qualified managed_placement_view string.""" @@ -73,12 +80,8 @@ def managed_placement_view_path(cls, customer, managed_placement_view): managed_placement_view=managed_placement_view, ) - def __init__(self, - transport=None, - channel=None, - credentials=None, - client_config=None, - client_info=None): + def __init__(self, transport=None, channel=None, credentials=None, + client_config=None, client_info=None): """Constructor. Args: @@ -111,19 +114,15 @@ def __init__(self, """ # Raise deprecation warnings for things we want to go away. if client_config is not None: - warnings.warn( - 'The `client_config` argument is deprecated.', - PendingDeprecationWarning, - stacklevel=2) + warnings.warn('The `client_config` argument is deprecated.', + PendingDeprecationWarning, stacklevel=2) else: client_config = managed_placement_view_service_client_config.config if channel: - warnings.warn( - 'The `channel` argument is deprecated; use ' - '`transport` instead.', - PendingDeprecationWarning, - stacklevel=2) + warnings.warn('The `channel` argument is deprecated; use ' + '`transport` instead.', + PendingDeprecationWarning, stacklevel=2) # Instantiate the transport. # The transport is responsible for handling serialization and @@ -132,14 +131,14 @@ def __init__(self, if callable(transport): self.transport = transport( credentials=credentials, - default_class=managed_placement_view_service_grpc_transport - .ManagedPlacementViewServiceGrpcTransport, + default_class=managed_placement_view_service_grpc_transport.ManagedPlacementViewServiceGrpcTransport, ) else: if credentials: raise ValueError( 'Received both a transport instance and ' - 'credentials; these are mutually exclusive.') + 'credentials; these are mutually exclusive.' + ) self.transport = transport else: self.transport = managed_placement_view_service_grpc_transport.ManagedPlacementViewServiceGrpcTransport( @@ -150,7 +149,8 @@ def __init__(self, if client_info is None: client_info = google.api_core.gapic_v1.client_info.ClientInfo( - gapic_version=_GAPIC_LIBRARY_VERSION, ) + gapic_version=_GAPIC_LIBRARY_VERSION, + ) else: client_info.gapic_version = _GAPIC_LIBRARY_VERSION self._client_info = client_info @@ -160,7 +160,8 @@ def __init__(self, # (Ordinarily, these are the defaults specified in the `*_config.py` # file next to this one.) self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( - client_config['interfaces'][self._INTERFACE_NAME], ) + client_config['interfaces'][self._INTERFACE_NAME], + ) # Save a dictionary of cached API call functions. # These are the actual callables which invoke the proper @@ -179,7 +180,7 @@ def get_managed_placement_view( Returns the requested Managed Placement view in full detail. Args: - resource_name (str): The resource name of the Managed Placement View to fetch. + resource_name (str): Required. The resource name of the Managed Placement View to fetch. retry (Optional[google.api_core.retry.Retry]): A retry object used to retry requests. If ``None`` is specified, requests will not be retried. @@ -190,7 +191,7 @@ def get_managed_placement_view( that is provided to the method. Returns: - A :class:`~google.ads.googleads_v1.types.ManagedPlacementView` instance. + A :class:`~google.ads.googleads_v4.types.ManagedPlacementView` instance. Raises: google.api_core.exceptions.GoogleAPICallError: If the request @@ -201,17 +202,25 @@ def get_managed_placement_view( """ # Wrap the transport method to add retry and timeout logic. if 'get_managed_placement_view' not in self._inner_api_calls: - self._inner_api_calls[ - 'get_managed_placement_view'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.get_managed_placement_view, - default_retry=self. - _method_configs['GetManagedPlacementView'].retry, - default_timeout=self. - _method_configs['GetManagedPlacementView'].timeout, - client_info=self._client_info, - ) + self._inner_api_calls['get_managed_placement_view'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.get_managed_placement_view, + default_retry=self._method_configs['GetManagedPlacementView'].retry, + default_timeout=self._method_configs['GetManagedPlacementView'].timeout, + client_info=self._client_info, + ) request = managed_placement_view_service_pb2.GetManagedPlacementViewRequest( - resource_name=resource_name, ) - return self._inner_api_calls['get_managed_placement_view']( - request, retry=retry, timeout=timeout, metadata=metadata) + resource_name=resource_name, + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [('resource_name', resource_name)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata(routing_header) + metadata.append(routing_metadata) + + return self._inner_api_calls['get_managed_placement_view'](request, retry=retry, timeout=timeout, metadata=metadata) diff --git a/google/ads/google_ads/v4/services/managed_placement_view_service_client_config.py b/google/ads/google_ads/v4/services/managed_placement_view_service_client_config.py new file mode 100644 index 000000000..8aca2b85a --- /dev/null +++ b/google/ads/google_ads/v4/services/managed_placement_view_service_client_config.py @@ -0,0 +1,31 @@ +config = { + "interfaces": { + "google.ads.googleads.v4.services.ManagedPlacementViewService": { + "retry_codes": { + "idempotent": [ + "DEADLINE_EXCEEDED", + "UNAVAILABLE" + ], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 5000, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 3600000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 3600000, + "total_timeout_millis": 3600000 + } + }, + "methods": { + "GetManagedPlacementView": { + "timeout_millis": 60000, + "retry_codes_name": "idempotent", + "retry_params_name": "default" + } + } + } + } +} diff --git a/google/ads/google_ads/v4/services/media_file_service_client.py b/google/ads/google_ads/v4/services/media_file_service_client.py new file mode 100644 index 000000000..c2d40893f --- /dev/null +++ b/google/ads/google_ads/v4/services/media_file_service_client.py @@ -0,0 +1,297 @@ +# -*- coding: utf-8 -*- +# +# 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. + +"""Accesses the google.ads.googleads.v4.services MediaFileService API.""" + +import pkg_resources +import warnings + +from google.oauth2 import service_account +import google.api_core.gapic_v1.client_info +import google.api_core.gapic_v1.config +import google.api_core.gapic_v1.method +import google.api_core.gapic_v1.routing_header +import google.api_core.grpc_helpers +import google.api_core.path_template + +from google.ads.google_ads.v4.services import media_file_service_client_config +from google.ads.google_ads.v4.services.transports import media_file_service_grpc_transport +from google.ads.google_ads.v4.proto.services import media_file_service_pb2 + + + +_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( + 'google-ads', +).version + + +class MediaFileServiceClient(object): + """Service to manage media files.""" + + SERVICE_ADDRESS = 'googleads.googleapis.com:443' + """The default address of the service.""" + + # The name of the interface for this client. This is the key used to + # find the method configuration in the client_config dictionary. + _INTERFACE_NAME = 'google.ads.googleads.v4.services.MediaFileService' + + + @classmethod + def from_service_account_file(cls, filename, *args, **kwargs): + """Creates an instance of this client using the provided credentials + file. + + Args: + filename (str): The path to the service account private key json + file. + args: Additional arguments to pass to the constructor. + kwargs: Additional arguments to pass to the constructor. + + Returns: + MediaFileServiceClient: The constructed client. + """ + credentials = service_account.Credentials.from_service_account_file( + filename) + kwargs['credentials'] = credentials + return cls(*args, **kwargs) + + from_service_account_json = from_service_account_file + + + @classmethod + def media_file_path(cls, customer, media_file): + """Return a fully-qualified media_file string.""" + return google.api_core.path_template.expand( + 'customers/{customer}/mediaFiles/{media_file}', + customer=customer, + media_file=media_file, + ) + + def __init__(self, transport=None, channel=None, credentials=None, + client_config=None, client_info=None): + """Constructor. + + Args: + transport (Union[~.MediaFileServiceGrpcTransport, + Callable[[~.Credentials, type], ~.MediaFileServiceGrpcTransport]): A transport + instance, responsible for actually making the API calls. + The default transport uses the gRPC protocol. + This argument may also be a callable which returns a + transport instance. Callables will be sent the credentials + as the first argument and the default transport class as + the second argument. + channel (grpc.Channel): DEPRECATED. A ``Channel`` instance + through which to make calls. This argument is mutually exclusive + with ``credentials``; providing both will raise an exception. + credentials (google.auth.credentials.Credentials): The + authorization credentials to attach to requests. These + credentials identify this application to the service. If none + are specified, the client will attempt to ascertain the + credentials from the environment. + This argument is mutually exclusive with providing a + transport instance to ``transport``; doing so will raise + an exception. + client_config (dict): DEPRECATED. A dictionary of call options for + each method. If not specified, the default configuration is used. + client_info (google.api_core.gapic_v1.client_info.ClientInfo): + The client info used to send a user-agent string along with + API requests. If ``None``, then default info will be used. + Generally, you only need to set this if you're developing + your own client library. + """ + # Raise deprecation warnings for things we want to go away. + if client_config is not None: + warnings.warn('The `client_config` argument is deprecated.', + PendingDeprecationWarning, stacklevel=2) + else: + client_config = media_file_service_client_config.config + + if channel: + warnings.warn('The `channel` argument is deprecated; use ' + '`transport` instead.', + PendingDeprecationWarning, stacklevel=2) + + # Instantiate the transport. + # The transport is responsible for handling serialization and + # deserialization and actually sending data to the service. + if transport: + if callable(transport): + self.transport = transport( + credentials=credentials, + default_class=media_file_service_grpc_transport.MediaFileServiceGrpcTransport, + ) + else: + if credentials: + raise ValueError( + 'Received both a transport instance and ' + 'credentials; these are mutually exclusive.' + ) + self.transport = transport + else: + self.transport = media_file_service_grpc_transport.MediaFileServiceGrpcTransport( + address=self.SERVICE_ADDRESS, + channel=channel, + credentials=credentials, + ) + + if client_info is None: + client_info = google.api_core.gapic_v1.client_info.ClientInfo( + gapic_version=_GAPIC_LIBRARY_VERSION, + ) + else: + client_info.gapic_version = _GAPIC_LIBRARY_VERSION + self._client_info = client_info + + # Parse out the default settings for retry and timeout for each RPC + # from the client configuration. + # (Ordinarily, these are the defaults specified in the `*_config.py` + # file next to this one.) + self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( + client_config['interfaces'][self._INTERFACE_NAME], + ) + + # Save a dictionary of cached API call functions. + # These are the actual callables which invoke the proper + # transport methods, wrapped with `wrap_method` to add retry, + # timeout, and the like. + self._inner_api_calls = {} + + # Service calls + def get_media_file( + self, + resource_name, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None): + """ + Returns the requested media file in full detail. + + Args: + resource_name (str): Required. The resource name of the media file to fetch. + retry (Optional[google.api_core.retry.Retry]): A retry object used + to retry requests. If ``None`` is specified, requests will not + be retried. + timeout (Optional[float]): The amount of time, in seconds, to wait + for the request to complete. Note that if ``retry`` is + specified, the timeout applies to each individual attempt. + metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata + that is provided to the method. + + Returns: + A :class:`~google.ads.googleads_v4.types.MediaFile` instance. + + Raises: + google.api_core.exceptions.GoogleAPICallError: If the request + failed for any reason. + google.api_core.exceptions.RetryError: If the request failed due + to a retryable error and retry attempts failed. + ValueError: If the parameters are invalid. + """ + # Wrap the transport method to add retry and timeout logic. + if 'get_media_file' not in self._inner_api_calls: + self._inner_api_calls['get_media_file'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.get_media_file, + default_retry=self._method_configs['GetMediaFile'].retry, + default_timeout=self._method_configs['GetMediaFile'].timeout, + client_info=self._client_info, + ) + + request = media_file_service_pb2.GetMediaFileRequest( + resource_name=resource_name, + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [('resource_name', resource_name)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata(routing_header) + metadata.append(routing_metadata) + + return self._inner_api_calls['get_media_file'](request, retry=retry, timeout=timeout, metadata=metadata) + + def mutate_media_files( + self, + customer_id, + operations, + partial_failure=None, + validate_only=None, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None): + """ + Creates media files. Operation statuses are returned. + + Args: + customer_id (str): Required. The ID of the customer whose media files are being modified. + operations (list[Union[dict, ~google.ads.googleads_v4.types.MediaFileOperation]]): Required. The list of operations to perform on individual media file. + + If a dict is provided, it must be of the same form as the protobuf + message :class:`~google.ads.googleads_v4.types.MediaFileOperation` + partial_failure (bool): If true, successful operations will be carried out and invalid + operations will return errors. If false, all operations will be carried + out in one transaction if and only if they are all valid. + Default is false. + validate_only (bool): If true, the request is validated but not executed. Only errors are + returned, not results. + retry (Optional[google.api_core.retry.Retry]): A retry object used + to retry requests. If ``None`` is specified, requests will not + be retried. + timeout (Optional[float]): The amount of time, in seconds, to wait + for the request to complete. Note that if ``retry`` is + specified, the timeout applies to each individual attempt. + metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata + that is provided to the method. + + Returns: + A :class:`~google.ads.googleads_v4.types.MutateMediaFilesResponse` instance. + + Raises: + google.api_core.exceptions.GoogleAPICallError: If the request + failed for any reason. + google.api_core.exceptions.RetryError: If the request failed due + to a retryable error and retry attempts failed. + ValueError: If the parameters are invalid. + """ + # Wrap the transport method to add retry and timeout logic. + if 'mutate_media_files' not in self._inner_api_calls: + self._inner_api_calls['mutate_media_files'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.mutate_media_files, + default_retry=self._method_configs['MutateMediaFiles'].retry, + default_timeout=self._method_configs['MutateMediaFiles'].timeout, + client_info=self._client_info, + ) + + request = media_file_service_pb2.MutateMediaFilesRequest( + customer_id=customer_id, + operations=operations, + partial_failure=partial_failure, + validate_only=validate_only, + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [('customer_id', customer_id)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata(routing_header) + metadata.append(routing_metadata) + + return self._inner_api_calls['mutate_media_files'](request, retry=retry, timeout=timeout, metadata=metadata) diff --git a/google/ads/google_ads/v4/services/media_file_service_client_config.py b/google/ads/google_ads/v4/services/media_file_service_client_config.py new file mode 100644 index 000000000..459dd737e --- /dev/null +++ b/google/ads/google_ads/v4/services/media_file_service_client_config.py @@ -0,0 +1,36 @@ +config = { + "interfaces": { + "google.ads.googleads.v4.services.MediaFileService": { + "retry_codes": { + "idempotent": [ + "DEADLINE_EXCEEDED", + "UNAVAILABLE" + ], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 5000, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 3600000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 3600000, + "total_timeout_millis": 3600000 + } + }, + "methods": { + "GetMediaFile": { + "timeout_millis": 60000, + "retry_codes_name": "idempotent", + "retry_params_name": "default" + }, + "MutateMediaFiles": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + } + } + } + } +} diff --git a/google/ads/google_ads/v4/services/merchant_center_link_service_client.py b/google/ads/google_ads/v4/services/merchant_center_link_service_client.py new file mode 100644 index 000000000..35bfa7246 --- /dev/null +++ b/google/ads/google_ads/v4/services/merchant_center_link_service_client.py @@ -0,0 +1,346 @@ +# -*- coding: utf-8 -*- +# +# 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. + +"""Accesses the google.ads.googleads.v4.services MerchantCenterLinkService API.""" + +import pkg_resources +import warnings + +from google.oauth2 import service_account +import google.api_core.gapic_v1.client_info +import google.api_core.gapic_v1.config +import google.api_core.gapic_v1.method +import google.api_core.gapic_v1.routing_header +import google.api_core.grpc_helpers +import google.api_core.path_template + +from google.ads.google_ads.v4.services import merchant_center_link_service_client_config +from google.ads.google_ads.v4.services.transports import merchant_center_link_service_grpc_transport +from google.ads.google_ads.v4.proto.services import merchant_center_link_service_pb2 + + + +_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( + 'google-ads', +).version + + +class MerchantCenterLinkServiceClient(object): + """ + This service allows management of links between Google Ads and Google + Merchant Center. + """ + + SERVICE_ADDRESS = 'googleads.googleapis.com:443' + """The default address of the service.""" + + # The name of the interface for this client. This is the key used to + # find the method configuration in the client_config dictionary. + _INTERFACE_NAME = 'google.ads.googleads.v4.services.MerchantCenterLinkService' + + + @classmethod + def from_service_account_file(cls, filename, *args, **kwargs): + """Creates an instance of this client using the provided credentials + file. + + Args: + filename (str): The path to the service account private key json + file. + args: Additional arguments to pass to the constructor. + kwargs: Additional arguments to pass to the constructor. + + Returns: + MerchantCenterLinkServiceClient: The constructed client. + """ + credentials = service_account.Credentials.from_service_account_file( + filename) + kwargs['credentials'] = credentials + return cls(*args, **kwargs) + + from_service_account_json = from_service_account_file + + + @classmethod + def merchant_center_link_path(cls, customer, merchant_center_link): + """Return a fully-qualified merchant_center_link string.""" + return google.api_core.path_template.expand( + 'customers/{customer}/merchantCenterLinks/{merchant_center_link}', + customer=customer, + merchant_center_link=merchant_center_link, + ) + + def __init__(self, transport=None, channel=None, credentials=None, + client_config=None, client_info=None): + """Constructor. + + Args: + transport (Union[~.MerchantCenterLinkServiceGrpcTransport, + Callable[[~.Credentials, type], ~.MerchantCenterLinkServiceGrpcTransport]): A transport + instance, responsible for actually making the API calls. + The default transport uses the gRPC protocol. + This argument may also be a callable which returns a + transport instance. Callables will be sent the credentials + as the first argument and the default transport class as + the second argument. + channel (grpc.Channel): DEPRECATED. A ``Channel`` instance + through which to make calls. This argument is mutually exclusive + with ``credentials``; providing both will raise an exception. + credentials (google.auth.credentials.Credentials): The + authorization credentials to attach to requests. These + credentials identify this application to the service. If none + are specified, the client will attempt to ascertain the + credentials from the environment. + This argument is mutually exclusive with providing a + transport instance to ``transport``; doing so will raise + an exception. + client_config (dict): DEPRECATED. A dictionary of call options for + each method. If not specified, the default configuration is used. + client_info (google.api_core.gapic_v1.client_info.ClientInfo): + The client info used to send a user-agent string along with + API requests. If ``None``, then default info will be used. + Generally, you only need to set this if you're developing + your own client library. + """ + # Raise deprecation warnings for things we want to go away. + if client_config is not None: + warnings.warn('The `client_config` argument is deprecated.', + PendingDeprecationWarning, stacklevel=2) + else: + client_config = merchant_center_link_service_client_config.config + + if channel: + warnings.warn('The `channel` argument is deprecated; use ' + '`transport` instead.', + PendingDeprecationWarning, stacklevel=2) + + # Instantiate the transport. + # The transport is responsible for handling serialization and + # deserialization and actually sending data to the service. + if transport: + if callable(transport): + self.transport = transport( + credentials=credentials, + default_class=merchant_center_link_service_grpc_transport.MerchantCenterLinkServiceGrpcTransport, + ) + else: + if credentials: + raise ValueError( + 'Received both a transport instance and ' + 'credentials; these are mutually exclusive.' + ) + self.transport = transport + else: + self.transport = merchant_center_link_service_grpc_transport.MerchantCenterLinkServiceGrpcTransport( + address=self.SERVICE_ADDRESS, + channel=channel, + credentials=credentials, + ) + + if client_info is None: + client_info = google.api_core.gapic_v1.client_info.ClientInfo( + gapic_version=_GAPIC_LIBRARY_VERSION, + ) + else: + client_info.gapic_version = _GAPIC_LIBRARY_VERSION + self._client_info = client_info + + # Parse out the default settings for retry and timeout for each RPC + # from the client configuration. + # (Ordinarily, these are the defaults specified in the `*_config.py` + # file next to this one.) + self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( + client_config['interfaces'][self._INTERFACE_NAME], + ) + + # Save a dictionary of cached API call functions. + # These are the actual callables which invoke the proper + # transport methods, wrapped with `wrap_method` to add retry, + # timeout, and the like. + self._inner_api_calls = {} + + # Service calls + def list_merchant_center_links( + self, + customer_id, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None): + """ + Returns Merchant Center links available for this customer. + + Args: + customer_id (str): Required. The ID of the customer onto which to apply the Merchant Center link list + operation. + retry (Optional[google.api_core.retry.Retry]): A retry object used + to retry requests. If ``None`` is specified, requests will not + be retried. + timeout (Optional[float]): The amount of time, in seconds, to wait + for the request to complete. Note that if ``retry`` is + specified, the timeout applies to each individual attempt. + metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata + that is provided to the method. + + Returns: + A :class:`~google.ads.googleads_v4.types.ListMerchantCenterLinksResponse` instance. + + Raises: + google.api_core.exceptions.GoogleAPICallError: If the request + failed for any reason. + google.api_core.exceptions.RetryError: If the request failed due + to a retryable error and retry attempts failed. + ValueError: If the parameters are invalid. + """ + # Wrap the transport method to add retry and timeout logic. + if 'list_merchant_center_links' not in self._inner_api_calls: + self._inner_api_calls['list_merchant_center_links'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.list_merchant_center_links, + default_retry=self._method_configs['ListMerchantCenterLinks'].retry, + default_timeout=self._method_configs['ListMerchantCenterLinks'].timeout, + client_info=self._client_info, + ) + + request = merchant_center_link_service_pb2.ListMerchantCenterLinksRequest( + customer_id=customer_id, + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [('customer_id', customer_id)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata(routing_header) + metadata.append(routing_metadata) + + return self._inner_api_calls['list_merchant_center_links'](request, retry=retry, timeout=timeout, metadata=metadata) + + def get_merchant_center_link( + self, + resource_name, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None): + """ + Returns the Merchant Center link in full detail. + + Args: + resource_name (str): Required. Resource name of the Merchant Center link. + retry (Optional[google.api_core.retry.Retry]): A retry object used + to retry requests. If ``None`` is specified, requests will not + be retried. + timeout (Optional[float]): The amount of time, in seconds, to wait + for the request to complete. Note that if ``retry`` is + specified, the timeout applies to each individual attempt. + metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata + that is provided to the method. + + Returns: + A :class:`~google.ads.googleads_v4.types.MerchantCenterLink` instance. + + Raises: + google.api_core.exceptions.GoogleAPICallError: If the request + failed for any reason. + google.api_core.exceptions.RetryError: If the request failed due + to a retryable error and retry attempts failed. + ValueError: If the parameters are invalid. + """ + # Wrap the transport method to add retry and timeout logic. + if 'get_merchant_center_link' not in self._inner_api_calls: + self._inner_api_calls['get_merchant_center_link'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.get_merchant_center_link, + default_retry=self._method_configs['GetMerchantCenterLink'].retry, + default_timeout=self._method_configs['GetMerchantCenterLink'].timeout, + client_info=self._client_info, + ) + + request = merchant_center_link_service_pb2.GetMerchantCenterLinkRequest( + resource_name=resource_name, + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [('resource_name', resource_name)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata(routing_header) + metadata.append(routing_metadata) + + return self._inner_api_calls['get_merchant_center_link'](request, retry=retry, timeout=timeout, metadata=metadata) + + def mutate_merchant_center_link( + self, + customer_id, + operation_, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None): + """ + Updates status or removes a Merchant Center link. + + Args: + customer_id (str): Required. The ID of the customer being modified. + operation_ (Union[dict, ~google.ads.googleads_v4.types.MerchantCenterLinkOperation]): Required. The operation to perform on the link + + If a dict is provided, it must be of the same form as the protobuf + message :class:`~google.ads.googleads_v4.types.MerchantCenterLinkOperation` + retry (Optional[google.api_core.retry.Retry]): A retry object used + to retry requests. If ``None`` is specified, requests will not + be retried. + timeout (Optional[float]): The amount of time, in seconds, to wait + for the request to complete. Note that if ``retry`` is + specified, the timeout applies to each individual attempt. + metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata + that is provided to the method. + + Returns: + A :class:`~google.ads.googleads_v4.types.MutateMerchantCenterLinkResponse` instance. + + Raises: + google.api_core.exceptions.GoogleAPICallError: If the request + failed for any reason. + google.api_core.exceptions.RetryError: If the request failed due + to a retryable error and retry attempts failed. + ValueError: If the parameters are invalid. + """ + # Wrap the transport method to add retry and timeout logic. + if 'mutate_merchant_center_link' not in self._inner_api_calls: + self._inner_api_calls['mutate_merchant_center_link'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.mutate_merchant_center_link, + default_retry=self._method_configs['MutateMerchantCenterLink'].retry, + default_timeout=self._method_configs['MutateMerchantCenterLink'].timeout, + client_info=self._client_info, + ) + + request = merchant_center_link_service_pb2.MutateMerchantCenterLinkRequest( + customer_id=customer_id, + operation=operation_, + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [('customer_id', customer_id)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata(routing_header) + metadata.append(routing_metadata) + + return self._inner_api_calls['mutate_merchant_center_link'](request, retry=retry, timeout=timeout, metadata=metadata) diff --git a/google/ads/google_ads/v4/services/merchant_center_link_service_client_config.py b/google/ads/google_ads/v4/services/merchant_center_link_service_client_config.py new file mode 100644 index 000000000..ee531443a --- /dev/null +++ b/google/ads/google_ads/v4/services/merchant_center_link_service_client_config.py @@ -0,0 +1,41 @@ +config = { + "interfaces": { + "google.ads.googleads.v4.services.MerchantCenterLinkService": { + "retry_codes": { + "idempotent": [ + "DEADLINE_EXCEEDED", + "UNAVAILABLE" + ], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 5000, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 3600000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 3600000, + "total_timeout_millis": 3600000 + } + }, + "methods": { + "ListMerchantCenterLinks": { + "timeout_millis": 60000, + "retry_codes_name": "idempotent", + "retry_params_name": "default" + }, + "GetMerchantCenterLink": { + "timeout_millis": 60000, + "retry_codes_name": "idempotent", + "retry_params_name": "default" + }, + "MutateMerchantCenterLink": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + } + } + } + } +} diff --git a/google/ads/google_ads/v1/services/mobile_app_category_constant_service_client.py b/google/ads/google_ads/v4/services/mobile_app_category_constant_service_client.py similarity index 78% rename from google/ads/google_ads/v1/services/mobile_app_category_constant_service_client.py rename to google/ads/google_ads/v4/services/mobile_app_category_constant_service_client.py index 6d97a4a0f..503d7a594 100644 --- a/google/ads/google_ads/v1/services/mobile_app_category_constant_service_client.py +++ b/google/ads/google_ads/v4/services/mobile_app_category_constant_service_client.py @@ -13,7 +13,8 @@ # 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. -"""Accesses the google.ads.googleads.v1.services MobileAppCategoryConstantService API.""" + +"""Accesses the google.ads.googleads.v4.services MobileAppCategoryConstantService API.""" import pkg_resources import warnings @@ -22,15 +23,19 @@ import google.api_core.gapic_v1.client_info import google.api_core.gapic_v1.config import google.api_core.gapic_v1.method +import google.api_core.gapic_v1.routing_header import google.api_core.grpc_helpers import google.api_core.path_template -from google.ads.google_ads.v1.services import mobile_app_category_constant_service_client_config -from google.ads.google_ads.v1.services.transports import mobile_app_category_constant_service_grpc_transport -from google.ads.google_ads.v1.proto.services import mobile_app_category_constant_service_pb2 +from google.ads.google_ads.v4.services import mobile_app_category_constant_service_client_config +from google.ads.google_ads.v4.services.transports import mobile_app_category_constant_service_grpc_transport +from google.ads.google_ads.v4.proto.services import mobile_app_category_constant_service_pb2 + + _GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( - 'google-ads', ).version + 'google-ads', +).version class MobileAppCategoryConstantServiceClient(object): @@ -41,7 +46,8 @@ class MobileAppCategoryConstantServiceClient(object): # The name of the interface for this client. This is the key used to # find the method configuration in the client_config dictionary. - _INTERFACE_NAME = 'google.ads.googleads.v1.services.MobileAppCategoryConstantService' + _INTERFACE_NAME = 'google.ads.googleads.v4.services.MobileAppCategoryConstantService' + @classmethod def from_service_account_file(cls, filename, *args, **kwargs): @@ -64,6 +70,7 @@ def from_service_account_file(cls, filename, *args, **kwargs): from_service_account_json = from_service_account_file + @classmethod def mobile_app_category_constant_path(cls, mobile_app_category_constant): """Return a fully-qualified mobile_app_category_constant string.""" @@ -72,12 +79,8 @@ def mobile_app_category_constant_path(cls, mobile_app_category_constant): mobile_app_category_constant=mobile_app_category_constant, ) - def __init__(self, - transport=None, - channel=None, - credentials=None, - client_config=None, - client_info=None): + def __init__(self, transport=None, channel=None, credentials=None, + client_config=None, client_info=None): """Constructor. Args: @@ -110,19 +113,15 @@ def __init__(self, """ # Raise deprecation warnings for things we want to go away. if client_config is not None: - warnings.warn( - 'The `client_config` argument is deprecated.', - PendingDeprecationWarning, - stacklevel=2) + warnings.warn('The `client_config` argument is deprecated.', + PendingDeprecationWarning, stacklevel=2) else: client_config = mobile_app_category_constant_service_client_config.config if channel: - warnings.warn( - 'The `channel` argument is deprecated; use ' - '`transport` instead.', - PendingDeprecationWarning, - stacklevel=2) + warnings.warn('The `channel` argument is deprecated; use ' + '`transport` instead.', + PendingDeprecationWarning, stacklevel=2) # Instantiate the transport. # The transport is responsible for handling serialization and @@ -131,15 +130,14 @@ def __init__(self, if callable(transport): self.transport = transport( credentials=credentials, - default_class= - mobile_app_category_constant_service_grpc_transport. - MobileAppCategoryConstantServiceGrpcTransport, + default_class=mobile_app_category_constant_service_grpc_transport.MobileAppCategoryConstantServiceGrpcTransport, ) else: if credentials: raise ValueError( 'Received both a transport instance and ' - 'credentials; these are mutually exclusive.') + 'credentials; these are mutually exclusive.' + ) self.transport = transport else: self.transport = mobile_app_category_constant_service_grpc_transport.MobileAppCategoryConstantServiceGrpcTransport( @@ -150,7 +148,8 @@ def __init__(self, if client_info is None: client_info = google.api_core.gapic_v1.client_info.ClientInfo( - gapic_version=_GAPIC_LIBRARY_VERSION, ) + gapic_version=_GAPIC_LIBRARY_VERSION, + ) else: client_info.gapic_version = _GAPIC_LIBRARY_VERSION self._client_info = client_info @@ -160,7 +159,8 @@ def __init__(self, # (Ordinarily, these are the defaults specified in the `*_config.py` # file next to this one.) self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( - client_config['interfaces'][self._INTERFACE_NAME], ) + client_config['interfaces'][self._INTERFACE_NAME], + ) # Save a dictionary of cached API call functions. # These are the actual callables which invoke the proper @@ -179,7 +179,7 @@ def get_mobile_app_category_constant( Returns the requested mobile app category constant. Args: - resource_name (str): Resource name of the mobile app category constant to fetch. + resource_name (str): Required. Resource name of the mobile app category constant to fetch. retry (Optional[google.api_core.retry.Retry]): A retry object used to retry requests. If ``None`` is specified, requests will not be retried. @@ -190,7 +190,7 @@ def get_mobile_app_category_constant( that is provided to the method. Returns: - A :class:`~google.ads.googleads_v1.types.MobileAppCategoryConstant` instance. + A :class:`~google.ads.googleads_v4.types.MobileAppCategoryConstant` instance. Raises: google.api_core.exceptions.GoogleAPICallError: If the request @@ -201,17 +201,25 @@ def get_mobile_app_category_constant( """ # Wrap the transport method to add retry and timeout logic. if 'get_mobile_app_category_constant' not in self._inner_api_calls: - self._inner_api_calls[ - 'get_mobile_app_category_constant'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.get_mobile_app_category_constant, - default_retry=self. - _method_configs['GetMobileAppCategoryConstant'].retry, - default_timeout=self. - _method_configs['GetMobileAppCategoryConstant'].timeout, - client_info=self._client_info, - ) + self._inner_api_calls['get_mobile_app_category_constant'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.get_mobile_app_category_constant, + default_retry=self._method_configs['GetMobileAppCategoryConstant'].retry, + default_timeout=self._method_configs['GetMobileAppCategoryConstant'].timeout, + client_info=self._client_info, + ) request = mobile_app_category_constant_service_pb2.GetMobileAppCategoryConstantRequest( - resource_name=resource_name, ) - return self._inner_api_calls['get_mobile_app_category_constant']( - request, retry=retry, timeout=timeout, metadata=metadata) + resource_name=resource_name, + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [('resource_name', resource_name)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata(routing_header) + metadata.append(routing_metadata) + + return self._inner_api_calls['get_mobile_app_category_constant'](request, retry=retry, timeout=timeout, metadata=metadata) diff --git a/google/ads/google_ads/v4/services/mobile_app_category_constant_service_client_config.py b/google/ads/google_ads/v4/services/mobile_app_category_constant_service_client_config.py new file mode 100644 index 000000000..1f790391c --- /dev/null +++ b/google/ads/google_ads/v4/services/mobile_app_category_constant_service_client_config.py @@ -0,0 +1,31 @@ +config = { + "interfaces": { + "google.ads.googleads.v4.services.MobileAppCategoryConstantService": { + "retry_codes": { + "idempotent": [ + "DEADLINE_EXCEEDED", + "UNAVAILABLE" + ], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 5000, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 3600000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 3600000, + "total_timeout_millis": 3600000 + } + }, + "methods": { + "GetMobileAppCategoryConstant": { + "timeout_millis": 60000, + "retry_codes_name": "idempotent", + "retry_params_name": "default" + } + } + } + } +} diff --git a/google/ads/google_ads/v1/services/mobile_device_constant_service_client.py b/google/ads/google_ads/v4/services/mobile_device_constant_service_client.py similarity index 78% rename from google/ads/google_ads/v1/services/mobile_device_constant_service_client.py rename to google/ads/google_ads/v4/services/mobile_device_constant_service_client.py index 58364f2c6..50fb8e4b5 100644 --- a/google/ads/google_ads/v1/services/mobile_device_constant_service_client.py +++ b/google/ads/google_ads/v4/services/mobile_device_constant_service_client.py @@ -13,7 +13,8 @@ # 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. -"""Accesses the google.ads.googleads.v1.services MobileDeviceConstantService API.""" + +"""Accesses the google.ads.googleads.v4.services MobileDeviceConstantService API.""" import pkg_resources import warnings @@ -22,15 +23,19 @@ import google.api_core.gapic_v1.client_info import google.api_core.gapic_v1.config import google.api_core.gapic_v1.method +import google.api_core.gapic_v1.routing_header import google.api_core.grpc_helpers import google.api_core.path_template -from google.ads.google_ads.v1.services import mobile_device_constant_service_client_config -from google.ads.google_ads.v1.services.transports import mobile_device_constant_service_grpc_transport -from google.ads.google_ads.v1.proto.services import mobile_device_constant_service_pb2 +from google.ads.google_ads.v4.services import mobile_device_constant_service_client_config +from google.ads.google_ads.v4.services.transports import mobile_device_constant_service_grpc_transport +from google.ads.google_ads.v4.proto.services import mobile_device_constant_service_pb2 + + _GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( - 'google-ads', ).version + 'google-ads', +).version class MobileDeviceConstantServiceClient(object): @@ -41,7 +46,8 @@ class MobileDeviceConstantServiceClient(object): # The name of the interface for this client. This is the key used to # find the method configuration in the client_config dictionary. - _INTERFACE_NAME = 'google.ads.googleads.v1.services.MobileDeviceConstantService' + _INTERFACE_NAME = 'google.ads.googleads.v4.services.MobileDeviceConstantService' + @classmethod def from_service_account_file(cls, filename, *args, **kwargs): @@ -64,6 +70,7 @@ def from_service_account_file(cls, filename, *args, **kwargs): from_service_account_json = from_service_account_file + @classmethod def mobile_device_constant_path(cls, mobile_device_constant): """Return a fully-qualified mobile_device_constant string.""" @@ -72,12 +79,8 @@ def mobile_device_constant_path(cls, mobile_device_constant): mobile_device_constant=mobile_device_constant, ) - def __init__(self, - transport=None, - channel=None, - credentials=None, - client_config=None, - client_info=None): + def __init__(self, transport=None, channel=None, credentials=None, + client_config=None, client_info=None): """Constructor. Args: @@ -110,19 +113,15 @@ def __init__(self, """ # Raise deprecation warnings for things we want to go away. if client_config is not None: - warnings.warn( - 'The `client_config` argument is deprecated.', - PendingDeprecationWarning, - stacklevel=2) + warnings.warn('The `client_config` argument is deprecated.', + PendingDeprecationWarning, stacklevel=2) else: client_config = mobile_device_constant_service_client_config.config if channel: - warnings.warn( - 'The `channel` argument is deprecated; use ' - '`transport` instead.', - PendingDeprecationWarning, - stacklevel=2) + warnings.warn('The `channel` argument is deprecated; use ' + '`transport` instead.', + PendingDeprecationWarning, stacklevel=2) # Instantiate the transport. # The transport is responsible for handling serialization and @@ -131,14 +130,14 @@ def __init__(self, if callable(transport): self.transport = transport( credentials=credentials, - default_class=mobile_device_constant_service_grpc_transport - .MobileDeviceConstantServiceGrpcTransport, + default_class=mobile_device_constant_service_grpc_transport.MobileDeviceConstantServiceGrpcTransport, ) else: if credentials: raise ValueError( 'Received both a transport instance and ' - 'credentials; these are mutually exclusive.') + 'credentials; these are mutually exclusive.' + ) self.transport = transport else: self.transport = mobile_device_constant_service_grpc_transport.MobileDeviceConstantServiceGrpcTransport( @@ -149,7 +148,8 @@ def __init__(self, if client_info is None: client_info = google.api_core.gapic_v1.client_info.ClientInfo( - gapic_version=_GAPIC_LIBRARY_VERSION, ) + gapic_version=_GAPIC_LIBRARY_VERSION, + ) else: client_info.gapic_version = _GAPIC_LIBRARY_VERSION self._client_info = client_info @@ -159,7 +159,8 @@ def __init__(self, # (Ordinarily, these are the defaults specified in the `*_config.py` # file next to this one.) self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( - client_config['interfaces'][self._INTERFACE_NAME], ) + client_config['interfaces'][self._INTERFACE_NAME], + ) # Save a dictionary of cached API call functions. # These are the actual callables which invoke the proper @@ -178,7 +179,7 @@ def get_mobile_device_constant( Returns the requested mobile device constant in full detail. Args: - resource_name (str): Resource name of the mobile device to fetch. + resource_name (str): Required. Resource name of the mobile device to fetch. retry (Optional[google.api_core.retry.Retry]): A retry object used to retry requests. If ``None`` is specified, requests will not be retried. @@ -189,7 +190,7 @@ def get_mobile_device_constant( that is provided to the method. Returns: - A :class:`~google.ads.googleads_v1.types.MobileDeviceConstant` instance. + A :class:`~google.ads.googleads_v4.types.MobileDeviceConstant` instance. Raises: google.api_core.exceptions.GoogleAPICallError: If the request @@ -200,17 +201,25 @@ def get_mobile_device_constant( """ # Wrap the transport method to add retry and timeout logic. if 'get_mobile_device_constant' not in self._inner_api_calls: - self._inner_api_calls[ - 'get_mobile_device_constant'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.get_mobile_device_constant, - default_retry=self. - _method_configs['GetMobileDeviceConstant'].retry, - default_timeout=self. - _method_configs['GetMobileDeviceConstant'].timeout, - client_info=self._client_info, - ) + self._inner_api_calls['get_mobile_device_constant'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.get_mobile_device_constant, + default_retry=self._method_configs['GetMobileDeviceConstant'].retry, + default_timeout=self._method_configs['GetMobileDeviceConstant'].timeout, + client_info=self._client_info, + ) request = mobile_device_constant_service_pb2.GetMobileDeviceConstantRequest( - resource_name=resource_name, ) - return self._inner_api_calls['get_mobile_device_constant']( - request, retry=retry, timeout=timeout, metadata=metadata) + resource_name=resource_name, + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [('resource_name', resource_name)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata(routing_header) + metadata.append(routing_metadata) + + return self._inner_api_calls['get_mobile_device_constant'](request, retry=retry, timeout=timeout, metadata=metadata) diff --git a/google/ads/google_ads/v4/services/mobile_device_constant_service_client_config.py b/google/ads/google_ads/v4/services/mobile_device_constant_service_client_config.py new file mode 100644 index 000000000..b637eeba4 --- /dev/null +++ b/google/ads/google_ads/v4/services/mobile_device_constant_service_client_config.py @@ -0,0 +1,31 @@ +config = { + "interfaces": { + "google.ads.googleads.v4.services.MobileDeviceConstantService": { + "retry_codes": { + "idempotent": [ + "DEADLINE_EXCEEDED", + "UNAVAILABLE" + ], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 5000, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 3600000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 3600000, + "total_timeout_millis": 3600000 + } + }, + "methods": { + "GetMobileDeviceConstant": { + "timeout_millis": 60000, + "retry_codes_name": "idempotent", + "retry_params_name": "default" + } + } + } + } +} diff --git a/google/ads/google_ads/v4/services/offline_user_data_job_service_client.py b/google/ads/google_ads/v4/services/offline_user_data_job_service_client.py new file mode 100644 index 000000000..e762cb5a9 --- /dev/null +++ b/google/ads/google_ads/v4/services/offline_user_data_job_service_client.py @@ -0,0 +1,421 @@ +# -*- coding: utf-8 -*- +# +# 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. + +"""Accesses the google.ads.googleads.v4.services OfflineUserDataJobService API.""" + +import pkg_resources +import warnings + +from google.oauth2 import service_account +import google.api_core.gapic_v1.client_info +import google.api_core.gapic_v1.config +import google.api_core.gapic_v1.method +import google.api_core.gapic_v1.routing_header +import google.api_core.grpc_helpers +import google.api_core.operation +import google.api_core.operations_v1 +import google.api_core.path_template + +from google.ads.google_ads.v4.services import offline_user_data_job_service_client_config +from google.ads.google_ads.v4.services.transports import offline_user_data_job_service_grpc_transport +from google.ads.google_ads.v4.proto.services import offline_user_data_job_service_pb2 +from google.protobuf import empty_pb2 + + + +_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( + 'google-ads', +).version + + +class OfflineUserDataJobServiceClient(object): + """Service to manage offline user data jobs.""" + + SERVICE_ADDRESS = 'googleads.googleapis.com:443' + """The default address of the service.""" + + # The name of the interface for this client. This is the key used to + # find the method configuration in the client_config dictionary. + _INTERFACE_NAME = 'google.ads.googleads.v4.services.OfflineUserDataJobService' + + + @classmethod + def from_service_account_file(cls, filename, *args, **kwargs): + """Creates an instance of this client using the provided credentials + file. + + Args: + filename (str): The path to the service account private key json + file. + args: Additional arguments to pass to the constructor. + kwargs: Additional arguments to pass to the constructor. + + Returns: + OfflineUserDataJobServiceClient: The constructed client. + """ + credentials = service_account.Credentials.from_service_account_file( + filename) + kwargs['credentials'] = credentials + return cls(*args, **kwargs) + + from_service_account_json = from_service_account_file + + + @classmethod + def offline_user_data_job_path(cls, customer, offline_user_data_job): + """Return a fully-qualified offline_user_data_job string.""" + return google.api_core.path_template.expand( + 'customers/{customer}/offlineUserDataJobs/{offline_user_data_job}', + customer=customer, + offline_user_data_job=offline_user_data_job, + ) + + def __init__(self, transport=None, channel=None, credentials=None, + client_config=None, client_info=None): + """Constructor. + + Args: + transport (Union[~.OfflineUserDataJobServiceGrpcTransport, + Callable[[~.Credentials, type], ~.OfflineUserDataJobServiceGrpcTransport]): A transport + instance, responsible for actually making the API calls. + The default transport uses the gRPC protocol. + This argument may also be a callable which returns a + transport instance. Callables will be sent the credentials + as the first argument and the default transport class as + the second argument. + channel (grpc.Channel): DEPRECATED. A ``Channel`` instance + through which to make calls. This argument is mutually exclusive + with ``credentials``; providing both will raise an exception. + credentials (google.auth.credentials.Credentials): The + authorization credentials to attach to requests. These + credentials identify this application to the service. If none + are specified, the client will attempt to ascertain the + credentials from the environment. + This argument is mutually exclusive with providing a + transport instance to ``transport``; doing so will raise + an exception. + client_config (dict): DEPRECATED. A dictionary of call options for + each method. If not specified, the default configuration is used. + client_info (google.api_core.gapic_v1.client_info.ClientInfo): + The client info used to send a user-agent string along with + API requests. If ``None``, then default info will be used. + Generally, you only need to set this if you're developing + your own client library. + """ + # Raise deprecation warnings for things we want to go away. + if client_config is not None: + warnings.warn('The `client_config` argument is deprecated.', + PendingDeprecationWarning, stacklevel=2) + else: + client_config = offline_user_data_job_service_client_config.config + + if channel: + warnings.warn('The `channel` argument is deprecated; use ' + '`transport` instead.', + PendingDeprecationWarning, stacklevel=2) + + # Instantiate the transport. + # The transport is responsible for handling serialization and + # deserialization and actually sending data to the service. + if transport: + if callable(transport): + self.transport = transport( + credentials=credentials, + default_class=offline_user_data_job_service_grpc_transport.OfflineUserDataJobServiceGrpcTransport, + ) + else: + if credentials: + raise ValueError( + 'Received both a transport instance and ' + 'credentials; these are mutually exclusive.' + ) + self.transport = transport + else: + self.transport = offline_user_data_job_service_grpc_transport.OfflineUserDataJobServiceGrpcTransport( + address=self.SERVICE_ADDRESS, + channel=channel, + credentials=credentials, + ) + + if client_info is None: + client_info = google.api_core.gapic_v1.client_info.ClientInfo( + gapic_version=_GAPIC_LIBRARY_VERSION, + ) + else: + client_info.gapic_version = _GAPIC_LIBRARY_VERSION + self._client_info = client_info + + # Parse out the default settings for retry and timeout for each RPC + # from the client configuration. + # (Ordinarily, these are the defaults specified in the `*_config.py` + # file next to this one.) + self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( + client_config['interfaces'][self._INTERFACE_NAME], + ) + + # Save a dictionary of cached API call functions. + # These are the actual callables which invoke the proper + # transport methods, wrapped with `wrap_method` to add retry, + # timeout, and the like. + self._inner_api_calls = {} + + # Service calls + def create_offline_user_data_job( + self, + customer_id, + job, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None): + """ + Creates an offline user data job. + + Args: + customer_id (str): Required. The ID of the customer for which to create an offline user data job. + job (Union[dict, ~google.ads.googleads_v4.types.OfflineUserDataJob]): Required. The offline user data job to be created. + + If a dict is provided, it must be of the same form as the protobuf + message :class:`~google.ads.googleads_v4.types.OfflineUserDataJob` + retry (Optional[google.api_core.retry.Retry]): A retry object used + to retry requests. If ``None`` is specified, requests will not + be retried. + timeout (Optional[float]): The amount of time, in seconds, to wait + for the request to complete. Note that if ``retry`` is + specified, the timeout applies to each individual attempt. + metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata + that is provided to the method. + + Returns: + A :class:`~google.ads.googleads_v4.types.CreateOfflineUserDataJobResponse` instance. + + Raises: + google.api_core.exceptions.GoogleAPICallError: If the request + failed for any reason. + google.api_core.exceptions.RetryError: If the request failed due + to a retryable error and retry attempts failed. + ValueError: If the parameters are invalid. + """ + # Wrap the transport method to add retry and timeout logic. + if 'create_offline_user_data_job' not in self._inner_api_calls: + self._inner_api_calls['create_offline_user_data_job'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.create_offline_user_data_job, + default_retry=self._method_configs['CreateOfflineUserDataJob'].retry, + default_timeout=self._method_configs['CreateOfflineUserDataJob'].timeout, + client_info=self._client_info, + ) + + request = offline_user_data_job_service_pb2.CreateOfflineUserDataJobRequest( + customer_id=customer_id, + job=job, + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [('customer_id', customer_id)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata(routing_header) + metadata.append(routing_metadata) + + return self._inner_api_calls['create_offline_user_data_job'](request, retry=retry, timeout=timeout, metadata=metadata) + + def get_offline_user_data_job( + self, + resource_name, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None): + """ + Returns the offline user data job. + + Args: + resource_name (str): Required. The resource name of the OfflineUserDataJob to get. + retry (Optional[google.api_core.retry.Retry]): A retry object used + to retry requests. If ``None`` is specified, requests will not + be retried. + timeout (Optional[float]): The amount of time, in seconds, to wait + for the request to complete. Note that if ``retry`` is + specified, the timeout applies to each individual attempt. + metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata + that is provided to the method. + + Returns: + A :class:`~google.ads.googleads_v4.types.OfflineUserDataJob` instance. + + Raises: + google.api_core.exceptions.GoogleAPICallError: If the request + failed for any reason. + google.api_core.exceptions.RetryError: If the request failed due + to a retryable error and retry attempts failed. + ValueError: If the parameters are invalid. + """ + # Wrap the transport method to add retry and timeout logic. + if 'get_offline_user_data_job' not in self._inner_api_calls: + self._inner_api_calls['get_offline_user_data_job'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.get_offline_user_data_job, + default_retry=self._method_configs['GetOfflineUserDataJob'].retry, + default_timeout=self._method_configs['GetOfflineUserDataJob'].timeout, + client_info=self._client_info, + ) + + request = offline_user_data_job_service_pb2.GetOfflineUserDataJobRequest( + resource_name=resource_name, + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [('resource_name', resource_name)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata(routing_header) + metadata.append(routing_metadata) + + return self._inner_api_calls['get_offline_user_data_job'](request, retry=retry, timeout=timeout, metadata=metadata) + + def add_offline_user_data_job_operations( + self, + resource_name, + enable_partial_failure, + operations, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None): + """ + Adds operations to the offline user data job. + + Args: + resource_name (str): Required. The resource name of the OfflineUserDataJob. + enable_partial_failure (Union[dict, ~google.ads.googleads_v4.types.BoolValue]): True to enable partial failure for the offline user data job. + + If a dict is provided, it must be of the same form as the protobuf + message :class:`~google.ads.googleads_v4.types.BoolValue` + operations (list[Union[dict, ~google.ads.googleads_v4.types.OfflineUserDataJobOperation]]): Required. The list of operations to be done. + + If a dict is provided, it must be of the same form as the protobuf + message :class:`~google.ads.googleads_v4.types.OfflineUserDataJobOperation` + retry (Optional[google.api_core.retry.Retry]): A retry object used + to retry requests. If ``None`` is specified, requests will not + be retried. + timeout (Optional[float]): The amount of time, in seconds, to wait + for the request to complete. Note that if ``retry`` is + specified, the timeout applies to each individual attempt. + metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata + that is provided to the method. + + Returns: + A :class:`~google.ads.googleads_v4.types.AddOfflineUserDataJobOperationsResponse` instance. + + Raises: + google.api_core.exceptions.GoogleAPICallError: If the request + failed for any reason. + google.api_core.exceptions.RetryError: If the request failed due + to a retryable error and retry attempts failed. + ValueError: If the parameters are invalid. + """ + # Wrap the transport method to add retry and timeout logic. + if 'add_offline_user_data_job_operations' not in self._inner_api_calls: + self._inner_api_calls['add_offline_user_data_job_operations'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.add_offline_user_data_job_operations, + default_retry=self._method_configs['AddOfflineUserDataJobOperations'].retry, + default_timeout=self._method_configs['AddOfflineUserDataJobOperations'].timeout, + client_info=self._client_info, + ) + + request = offline_user_data_job_service_pb2.AddOfflineUserDataJobOperationsRequest( + resource_name=resource_name, + enable_partial_failure=enable_partial_failure, + operations=operations, + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [('resource_name', resource_name)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata(routing_header) + metadata.append(routing_metadata) + + return self._inner_api_calls['add_offline_user_data_job_operations'](request, retry=retry, timeout=timeout, metadata=metadata) + + def run_offline_user_data_job( + self, + resource_name, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None): + """ + Runs the offline user data job. + + When finished, the long running operation will contain the processing + result or failure information, if any. + + Args: + resource_name (str): Required. The resource name of the OfflineUserDataJob to run. + retry (Optional[google.api_core.retry.Retry]): A retry object used + to retry requests. If ``None`` is specified, requests will not + be retried. + timeout (Optional[float]): The amount of time, in seconds, to wait + for the request to complete. Note that if ``retry`` is + specified, the timeout applies to each individual attempt. + metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata + that is provided to the method. + + Returns: + A :class:`~google.ads.googleads_v4.types._OperationFuture` instance. + + Raises: + google.api_core.exceptions.GoogleAPICallError: If the request + failed for any reason. + google.api_core.exceptions.RetryError: If the request failed due + to a retryable error and retry attempts failed. + ValueError: If the parameters are invalid. + """ + # Wrap the transport method to add retry and timeout logic. + if 'run_offline_user_data_job' not in self._inner_api_calls: + self._inner_api_calls['run_offline_user_data_job'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.run_offline_user_data_job, + default_retry=self._method_configs['RunOfflineUserDataJob'].retry, + default_timeout=self._method_configs['RunOfflineUserDataJob'].timeout, + client_info=self._client_info, + ) + + request = offline_user_data_job_service_pb2.RunOfflineUserDataJobRequest( + resource_name=resource_name, + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [('resource_name', resource_name)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata(routing_header) + metadata.append(routing_metadata) + + operation = self._inner_api_calls['run_offline_user_data_job'](request, retry=retry, timeout=timeout, metadata=metadata) + return google.api_core.operation.from_gapic( + operation, + self.transport._operations_client, + empty_pb2.Empty, + metadata_type=empty_pb2.Empty, + ) diff --git a/google/ads/google_ads/v4/services/offline_user_data_job_service_client_config.py b/google/ads/google_ads/v4/services/offline_user_data_job_service_client_config.py new file mode 100644 index 000000000..7d9718714 --- /dev/null +++ b/google/ads/google_ads/v4/services/offline_user_data_job_service_client_config.py @@ -0,0 +1,46 @@ +config = { + "interfaces": { + "google.ads.googleads.v4.services.OfflineUserDataJobService": { + "retry_codes": { + "idempotent": [ + "DEADLINE_EXCEEDED", + "UNAVAILABLE" + ], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 5000, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 3600000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 3600000, + "total_timeout_millis": 3600000 + } + }, + "methods": { + "CreateOfflineUserDataJob": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "GetOfflineUserDataJob": { + "timeout_millis": 60000, + "retry_codes_name": "idempotent", + "retry_params_name": "default" + }, + "AddOfflineUserDataJobOperations": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "RunOfflineUserDataJob": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + } + } + } + } +} diff --git a/google/ads/google_ads/v1/services/operating_system_version_constant_service_client.py b/google/ads/google_ads/v4/services/operating_system_version_constant_service_client.py similarity index 77% rename from google/ads/google_ads/v1/services/operating_system_version_constant_service_client.py rename to google/ads/google_ads/v4/services/operating_system_version_constant_service_client.py index bf017b4cd..4747ffbec 100644 --- a/google/ads/google_ads/v1/services/operating_system_version_constant_service_client.py +++ b/google/ads/google_ads/v4/services/operating_system_version_constant_service_client.py @@ -13,7 +13,8 @@ # 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. -"""Accesses the google.ads.googleads.v1.services OperatingSystemVersionConstantService API.""" + +"""Accesses the google.ads.googleads.v4.services OperatingSystemVersionConstantService API.""" import pkg_resources import warnings @@ -22,15 +23,19 @@ import google.api_core.gapic_v1.client_info import google.api_core.gapic_v1.config import google.api_core.gapic_v1.method +import google.api_core.gapic_v1.routing_header import google.api_core.grpc_helpers import google.api_core.path_template -from google.ads.google_ads.v1.services import operating_system_version_constant_service_client_config -from google.ads.google_ads.v1.services.transports import operating_system_version_constant_service_grpc_transport -from google.ads.google_ads.v1.proto.services import operating_system_version_constant_service_pb2 +from google.ads.google_ads.v4.services import operating_system_version_constant_service_client_config +from google.ads.google_ads.v4.services.transports import operating_system_version_constant_service_grpc_transport +from google.ads.google_ads.v4.proto.services import operating_system_version_constant_service_pb2 + + _GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( - 'google-ads', ).version + 'google-ads', +).version class OperatingSystemVersionConstantServiceClient(object): @@ -41,7 +46,8 @@ class OperatingSystemVersionConstantServiceClient(object): # The name of the interface for this client. This is the key used to # find the method configuration in the client_config dictionary. - _INTERFACE_NAME = 'google.ads.googleads.v1.services.OperatingSystemVersionConstantService' + _INTERFACE_NAME = 'google.ads.googleads.v4.services.OperatingSystemVersionConstantService' + @classmethod def from_service_account_file(cls, filename, *args, **kwargs): @@ -64,21 +70,17 @@ def from_service_account_file(cls, filename, *args, **kwargs): from_service_account_json = from_service_account_file + @classmethod - def operating_system_version_constant_path( - cls, operating_system_version_constant): + def operating_system_version_constant_path(cls, operating_system_version_constant): """Return a fully-qualified operating_system_version_constant string.""" return google.api_core.path_template.expand( 'operatingSystemVersionConstants/{operating_system_version_constant}', operating_system_version_constant=operating_system_version_constant, ) - def __init__(self, - transport=None, - channel=None, - credentials=None, - client_config=None, - client_info=None): + def __init__(self, transport=None, channel=None, credentials=None, + client_config=None, client_info=None): """Constructor. Args: @@ -111,19 +113,15 @@ def __init__(self, """ # Raise deprecation warnings for things we want to go away. if client_config is not None: - warnings.warn( - 'The `client_config` argument is deprecated.', - PendingDeprecationWarning, - stacklevel=2) + warnings.warn('The `client_config` argument is deprecated.', + PendingDeprecationWarning, stacklevel=2) else: client_config = operating_system_version_constant_service_client_config.config if channel: - warnings.warn( - 'The `channel` argument is deprecated; use ' - '`transport` instead.', - PendingDeprecationWarning, - stacklevel=2) + warnings.warn('The `channel` argument is deprecated; use ' + '`transport` instead.', + PendingDeprecationWarning, stacklevel=2) # Instantiate the transport. # The transport is responsible for handling serialization and @@ -132,15 +130,14 @@ def __init__(self, if callable(transport): self.transport = transport( credentials=credentials, - default_class= - operating_system_version_constant_service_grpc_transport. - OperatingSystemVersionConstantServiceGrpcTransport, + default_class=operating_system_version_constant_service_grpc_transport.OperatingSystemVersionConstantServiceGrpcTransport, ) else: if credentials: raise ValueError( 'Received both a transport instance and ' - 'credentials; these are mutually exclusive.') + 'credentials; these are mutually exclusive.' + ) self.transport = transport else: self.transport = operating_system_version_constant_service_grpc_transport.OperatingSystemVersionConstantServiceGrpcTransport( @@ -151,7 +148,8 @@ def __init__(self, if client_info is None: client_info = google.api_core.gapic_v1.client_info.ClientInfo( - gapic_version=_GAPIC_LIBRARY_VERSION, ) + gapic_version=_GAPIC_LIBRARY_VERSION, + ) else: client_info.gapic_version = _GAPIC_LIBRARY_VERSION self._client_info = client_info @@ -161,7 +159,8 @@ def __init__(self, # (Ordinarily, these are the defaults specified in the `*_config.py` # file next to this one.) self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( - client_config['interfaces'][self._INTERFACE_NAME], ) + client_config['interfaces'][self._INTERFACE_NAME], + ) # Save a dictionary of cached API call functions. # These are the actual callables which invoke the proper @@ -180,7 +179,7 @@ def get_operating_system_version_constant( Returns the requested OS version constant in full detail. Args: - resource_name (str): Resource name of the OS version to fetch. + resource_name (str): Required. Resource name of the OS version to fetch. retry (Optional[google.api_core.retry.Retry]): A retry object used to retry requests. If ``None`` is specified, requests will not be retried. @@ -191,7 +190,7 @@ def get_operating_system_version_constant( that is provided to the method. Returns: - A :class:`~google.ads.googleads_v1.types.OperatingSystemVersionConstant` instance. + A :class:`~google.ads.googleads_v4.types.OperatingSystemVersionConstant` instance. Raises: google.api_core.exceptions.GoogleAPICallError: If the request @@ -202,17 +201,25 @@ def get_operating_system_version_constant( """ # Wrap the transport method to add retry and timeout logic. if 'get_operating_system_version_constant' not in self._inner_api_calls: - self._inner_api_calls[ - 'get_operating_system_version_constant'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.get_operating_system_version_constant, - default_retry=self. - _method_configs['GetOperatingSystemVersionConstant'].retry, - default_timeout=self._method_configs[ - 'GetOperatingSystemVersionConstant'].timeout, - client_info=self._client_info, - ) + self._inner_api_calls['get_operating_system_version_constant'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.get_operating_system_version_constant, + default_retry=self._method_configs['GetOperatingSystemVersionConstant'].retry, + default_timeout=self._method_configs['GetOperatingSystemVersionConstant'].timeout, + client_info=self._client_info, + ) request = operating_system_version_constant_service_pb2.GetOperatingSystemVersionConstantRequest( - resource_name=resource_name, ) - return self._inner_api_calls['get_operating_system_version_constant']( - request, retry=retry, timeout=timeout, metadata=metadata) + resource_name=resource_name, + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [('resource_name', resource_name)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata(routing_header) + metadata.append(routing_metadata) + + return self._inner_api_calls['get_operating_system_version_constant'](request, retry=retry, timeout=timeout, metadata=metadata) diff --git a/google/ads/google_ads/v4/services/operating_system_version_constant_service_client_config.py b/google/ads/google_ads/v4/services/operating_system_version_constant_service_client_config.py new file mode 100644 index 000000000..e14beffca --- /dev/null +++ b/google/ads/google_ads/v4/services/operating_system_version_constant_service_client_config.py @@ -0,0 +1,31 @@ +config = { + "interfaces": { + "google.ads.googleads.v4.services.OperatingSystemVersionConstantService": { + "retry_codes": { + "idempotent": [ + "DEADLINE_EXCEEDED", + "UNAVAILABLE" + ], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 5000, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 3600000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 3600000, + "total_timeout_millis": 3600000 + } + }, + "methods": { + "GetOperatingSystemVersionConstant": { + "timeout_millis": 60000, + "retry_codes_name": "idempotent", + "retry_params_name": "default" + } + } + } + } +} diff --git a/google/ads/google_ads/v1/services/paid_organic_search_term_view_service_client.py b/google/ads/google_ads/v4/services/paid_organic_search_term_view_service_client.py similarity index 77% rename from google/ads/google_ads/v1/services/paid_organic_search_term_view_service_client.py rename to google/ads/google_ads/v4/services/paid_organic_search_term_view_service_client.py index 71cf407ab..3a91edbea 100644 --- a/google/ads/google_ads/v1/services/paid_organic_search_term_view_service_client.py +++ b/google/ads/google_ads/v4/services/paid_organic_search_term_view_service_client.py @@ -13,7 +13,8 @@ # 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. -"""Accesses the google.ads.googleads.v1.services PaidOrganicSearchTermViewService API.""" + +"""Accesses the google.ads.googleads.v4.services PaidOrganicSearchTermViewService API.""" import pkg_resources import warnings @@ -22,15 +23,19 @@ import google.api_core.gapic_v1.client_info import google.api_core.gapic_v1.config import google.api_core.gapic_v1.method +import google.api_core.gapic_v1.routing_header import google.api_core.grpc_helpers import google.api_core.path_template -from google.ads.google_ads.v1.services import paid_organic_search_term_view_service_client_config -from google.ads.google_ads.v1.services.transports import paid_organic_search_term_view_service_grpc_transport -from google.ads.google_ads.v1.proto.services import paid_organic_search_term_view_service_pb2 +from google.ads.google_ads.v4.services import paid_organic_search_term_view_service_client_config +from google.ads.google_ads.v4.services.transports import paid_organic_search_term_view_service_grpc_transport +from google.ads.google_ads.v4.proto.services import paid_organic_search_term_view_service_pb2 + + _GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( - 'google-ads', ).version + 'google-ads', +).version class PaidOrganicSearchTermViewServiceClient(object): @@ -41,7 +46,8 @@ class PaidOrganicSearchTermViewServiceClient(object): # The name of the interface for this client. This is the key used to # find the method configuration in the client_config dictionary. - _INTERFACE_NAME = 'google.ads.googleads.v1.services.PaidOrganicSearchTermViewService' + _INTERFACE_NAME = 'google.ads.googleads.v4.services.PaidOrganicSearchTermViewService' + @classmethod def from_service_account_file(cls, filename, *args, **kwargs): @@ -64,9 +70,9 @@ def from_service_account_file(cls, filename, *args, **kwargs): from_service_account_json = from_service_account_file + @classmethod - def paid_organic_search_term_view_path(cls, customer, - paid_organic_search_term_view): + def paid_organic_search_term_view_path(cls, customer, paid_organic_search_term_view): """Return a fully-qualified paid_organic_search_term_view string.""" return google.api_core.path_template.expand( 'customers/{customer}/paidOrganicSearchTermViews/{paid_organic_search_term_view}', @@ -74,12 +80,8 @@ def paid_organic_search_term_view_path(cls, customer, paid_organic_search_term_view=paid_organic_search_term_view, ) - def __init__(self, - transport=None, - channel=None, - credentials=None, - client_config=None, - client_info=None): + def __init__(self, transport=None, channel=None, credentials=None, + client_config=None, client_info=None): """Constructor. Args: @@ -112,19 +114,15 @@ def __init__(self, """ # Raise deprecation warnings for things we want to go away. if client_config is not None: - warnings.warn( - 'The `client_config` argument is deprecated.', - PendingDeprecationWarning, - stacklevel=2) + warnings.warn('The `client_config` argument is deprecated.', + PendingDeprecationWarning, stacklevel=2) else: client_config = paid_organic_search_term_view_service_client_config.config if channel: - warnings.warn( - 'The `channel` argument is deprecated; use ' - '`transport` instead.', - PendingDeprecationWarning, - stacklevel=2) + warnings.warn('The `channel` argument is deprecated; use ' + '`transport` instead.', + PendingDeprecationWarning, stacklevel=2) # Instantiate the transport. # The transport is responsible for handling serialization and @@ -133,15 +131,14 @@ def __init__(self, if callable(transport): self.transport = transport( credentials=credentials, - default_class= - paid_organic_search_term_view_service_grpc_transport. - PaidOrganicSearchTermViewServiceGrpcTransport, + default_class=paid_organic_search_term_view_service_grpc_transport.PaidOrganicSearchTermViewServiceGrpcTransport, ) else: if credentials: raise ValueError( 'Received both a transport instance and ' - 'credentials; these are mutually exclusive.') + 'credentials; these are mutually exclusive.' + ) self.transport = transport else: self.transport = paid_organic_search_term_view_service_grpc_transport.PaidOrganicSearchTermViewServiceGrpcTransport( @@ -152,7 +149,8 @@ def __init__(self, if client_info is None: client_info = google.api_core.gapic_v1.client_info.ClientInfo( - gapic_version=_GAPIC_LIBRARY_VERSION, ) + gapic_version=_GAPIC_LIBRARY_VERSION, + ) else: client_info.gapic_version = _GAPIC_LIBRARY_VERSION self._client_info = client_info @@ -162,7 +160,8 @@ def __init__(self, # (Ordinarily, these are the defaults specified in the `*_config.py` # file next to this one.) self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( - client_config['interfaces'][self._INTERFACE_NAME], ) + client_config['interfaces'][self._INTERFACE_NAME], + ) # Save a dictionary of cached API call functions. # These are the actual callables which invoke the proper @@ -181,7 +180,7 @@ def get_paid_organic_search_term_view( Returns the requested paid organic search term view in full detail. Args: - resource_name (str): The resource name of the paid organic search term view to fetch. + resource_name (str): Required. The resource name of the paid organic search term view to fetch. retry (Optional[google.api_core.retry.Retry]): A retry object used to retry requests. If ``None`` is specified, requests will not be retried. @@ -192,7 +191,7 @@ def get_paid_organic_search_term_view( that is provided to the method. Returns: - A :class:`~google.ads.googleads_v1.types.PaidOrganicSearchTermView` instance. + A :class:`~google.ads.googleads_v4.types.PaidOrganicSearchTermView` instance. Raises: google.api_core.exceptions.GoogleAPICallError: If the request @@ -203,17 +202,25 @@ def get_paid_organic_search_term_view( """ # Wrap the transport method to add retry and timeout logic. if 'get_paid_organic_search_term_view' not in self._inner_api_calls: - self._inner_api_calls[ - 'get_paid_organic_search_term_view'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.get_paid_organic_search_term_view, - default_retry=self. - _method_configs['GetPaidOrganicSearchTermView'].retry, - default_timeout=self. - _method_configs['GetPaidOrganicSearchTermView'].timeout, - client_info=self._client_info, - ) + self._inner_api_calls['get_paid_organic_search_term_view'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.get_paid_organic_search_term_view, + default_retry=self._method_configs['GetPaidOrganicSearchTermView'].retry, + default_timeout=self._method_configs['GetPaidOrganicSearchTermView'].timeout, + client_info=self._client_info, + ) request = paid_organic_search_term_view_service_pb2.GetPaidOrganicSearchTermViewRequest( - resource_name=resource_name, ) - return self._inner_api_calls['get_paid_organic_search_term_view']( - request, retry=retry, timeout=timeout, metadata=metadata) + resource_name=resource_name, + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [('resource_name', resource_name)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata(routing_header) + metadata.append(routing_metadata) + + return self._inner_api_calls['get_paid_organic_search_term_view'](request, retry=retry, timeout=timeout, metadata=metadata) diff --git a/google/ads/google_ads/v4/services/paid_organic_search_term_view_service_client_config.py b/google/ads/google_ads/v4/services/paid_organic_search_term_view_service_client_config.py new file mode 100644 index 000000000..64afb8a9f --- /dev/null +++ b/google/ads/google_ads/v4/services/paid_organic_search_term_view_service_client_config.py @@ -0,0 +1,31 @@ +config = { + "interfaces": { + "google.ads.googleads.v4.services.PaidOrganicSearchTermViewService": { + "retry_codes": { + "idempotent": [ + "DEADLINE_EXCEEDED", + "UNAVAILABLE" + ], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 5000, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 3600000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 3600000, + "total_timeout_millis": 3600000 + } + }, + "methods": { + "GetPaidOrganicSearchTermView": { + "timeout_millis": 60000, + "retry_codes_name": "idempotent", + "retry_params_name": "default" + } + } + } + } +} diff --git a/google/ads/google_ads/v1/services/parental_status_view_service_client.py b/google/ads/google_ads/v4/services/parental_status_view_service_client.py similarity index 78% rename from google/ads/google_ads/v1/services/parental_status_view_service_client.py rename to google/ads/google_ads/v4/services/parental_status_view_service_client.py index 366fed9e0..fb51d7673 100644 --- a/google/ads/google_ads/v1/services/parental_status_view_service_client.py +++ b/google/ads/google_ads/v4/services/parental_status_view_service_client.py @@ -13,7 +13,8 @@ # 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. -"""Accesses the google.ads.googleads.v1.services ParentalStatusViewService API.""" + +"""Accesses the google.ads.googleads.v4.services ParentalStatusViewService API.""" import pkg_resources import warnings @@ -22,15 +23,19 @@ import google.api_core.gapic_v1.client_info import google.api_core.gapic_v1.config import google.api_core.gapic_v1.method +import google.api_core.gapic_v1.routing_header import google.api_core.grpc_helpers import google.api_core.path_template -from google.ads.google_ads.v1.services import parental_status_view_service_client_config -from google.ads.google_ads.v1.services.transports import parental_status_view_service_grpc_transport -from google.ads.google_ads.v1.proto.services import parental_status_view_service_pb2 +from google.ads.google_ads.v4.services import parental_status_view_service_client_config +from google.ads.google_ads.v4.services.transports import parental_status_view_service_grpc_transport +from google.ads.google_ads.v4.proto.services import parental_status_view_service_pb2 + + _GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( - 'google-ads', ).version + 'google-ads', +).version class ParentalStatusViewServiceClient(object): @@ -41,7 +46,8 @@ class ParentalStatusViewServiceClient(object): # The name of the interface for this client. This is the key used to # find the method configuration in the client_config dictionary. - _INTERFACE_NAME = 'google.ads.googleads.v1.services.ParentalStatusViewService' + _INTERFACE_NAME = 'google.ads.googleads.v4.services.ParentalStatusViewService' + @classmethod def from_service_account_file(cls, filename, *args, **kwargs): @@ -64,6 +70,7 @@ def from_service_account_file(cls, filename, *args, **kwargs): from_service_account_json = from_service_account_file + @classmethod def parental_status_view_path(cls, customer, parental_status_view): """Return a fully-qualified parental_status_view string.""" @@ -73,12 +80,8 @@ def parental_status_view_path(cls, customer, parental_status_view): parental_status_view=parental_status_view, ) - def __init__(self, - transport=None, - channel=None, - credentials=None, - client_config=None, - client_info=None): + def __init__(self, transport=None, channel=None, credentials=None, + client_config=None, client_info=None): """Constructor. Args: @@ -111,19 +114,15 @@ def __init__(self, """ # Raise deprecation warnings for things we want to go away. if client_config is not None: - warnings.warn( - 'The `client_config` argument is deprecated.', - PendingDeprecationWarning, - stacklevel=2) + warnings.warn('The `client_config` argument is deprecated.', + PendingDeprecationWarning, stacklevel=2) else: client_config = parental_status_view_service_client_config.config if channel: - warnings.warn( - 'The `channel` argument is deprecated; use ' - '`transport` instead.', - PendingDeprecationWarning, - stacklevel=2) + warnings.warn('The `channel` argument is deprecated; use ' + '`transport` instead.', + PendingDeprecationWarning, stacklevel=2) # Instantiate the transport. # The transport is responsible for handling serialization and @@ -132,14 +131,14 @@ def __init__(self, if callable(transport): self.transport = transport( credentials=credentials, - default_class=parental_status_view_service_grpc_transport. - ParentalStatusViewServiceGrpcTransport, + default_class=parental_status_view_service_grpc_transport.ParentalStatusViewServiceGrpcTransport, ) else: if credentials: raise ValueError( 'Received both a transport instance and ' - 'credentials; these are mutually exclusive.') + 'credentials; these are mutually exclusive.' + ) self.transport = transport else: self.transport = parental_status_view_service_grpc_transport.ParentalStatusViewServiceGrpcTransport( @@ -150,7 +149,8 @@ def __init__(self, if client_info is None: client_info = google.api_core.gapic_v1.client_info.ClientInfo( - gapic_version=_GAPIC_LIBRARY_VERSION, ) + gapic_version=_GAPIC_LIBRARY_VERSION, + ) else: client_info.gapic_version = _GAPIC_LIBRARY_VERSION self._client_info = client_info @@ -160,7 +160,8 @@ def __init__(self, # (Ordinarily, these are the defaults specified in the `*_config.py` # file next to this one.) self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( - client_config['interfaces'][self._INTERFACE_NAME], ) + client_config['interfaces'][self._INTERFACE_NAME], + ) # Save a dictionary of cached API call functions. # These are the actual callables which invoke the proper @@ -179,7 +180,7 @@ def get_parental_status_view( Returns the requested parental status view in full detail. Args: - resource_name (str): The resource name of the parental status view to fetch. + resource_name (str): Required. The resource name of the parental status view to fetch. retry (Optional[google.api_core.retry.Retry]): A retry object used to retry requests. If ``None`` is specified, requests will not be retried. @@ -190,7 +191,7 @@ def get_parental_status_view( that is provided to the method. Returns: - A :class:`~google.ads.googleads_v1.types.ParentalStatusView` instance. + A :class:`~google.ads.googleads_v4.types.ParentalStatusView` instance. Raises: google.api_core.exceptions.GoogleAPICallError: If the request @@ -201,17 +202,25 @@ def get_parental_status_view( """ # Wrap the transport method to add retry and timeout logic. if 'get_parental_status_view' not in self._inner_api_calls: - self._inner_api_calls[ - 'get_parental_status_view'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.get_parental_status_view, - default_retry=self. - _method_configs['GetParentalStatusView'].retry, - default_timeout=self. - _method_configs['GetParentalStatusView'].timeout, - client_info=self._client_info, - ) + self._inner_api_calls['get_parental_status_view'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.get_parental_status_view, + default_retry=self._method_configs['GetParentalStatusView'].retry, + default_timeout=self._method_configs['GetParentalStatusView'].timeout, + client_info=self._client_info, + ) request = parental_status_view_service_pb2.GetParentalStatusViewRequest( - resource_name=resource_name, ) - return self._inner_api_calls['get_parental_status_view']( - request, retry=retry, timeout=timeout, metadata=metadata) + resource_name=resource_name, + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [('resource_name', resource_name)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata(routing_header) + metadata.append(routing_metadata) + + return self._inner_api_calls['get_parental_status_view'](request, retry=retry, timeout=timeout, metadata=metadata) diff --git a/google/ads/google_ads/v4/services/parental_status_view_service_client_config.py b/google/ads/google_ads/v4/services/parental_status_view_service_client_config.py new file mode 100644 index 000000000..ee9db0308 --- /dev/null +++ b/google/ads/google_ads/v4/services/parental_status_view_service_client_config.py @@ -0,0 +1,31 @@ +config = { + "interfaces": { + "google.ads.googleads.v4.services.ParentalStatusViewService": { + "retry_codes": { + "idempotent": [ + "DEADLINE_EXCEEDED", + "UNAVAILABLE" + ], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 5000, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 3600000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 3600000, + "total_timeout_millis": 3600000 + } + }, + "methods": { + "GetParentalStatusView": { + "timeout_millis": 60000, + "retry_codes_name": "idempotent", + "retry_params_name": "default" + } + } + } + } +} diff --git a/google/ads/google_ads/v4/services/payments_account_service_client.py b/google/ads/google_ads/v4/services/payments_account_service_client.py new file mode 100644 index 000000000..8beca1870 --- /dev/null +++ b/google/ads/google_ads/v4/services/payments_account_service_client.py @@ -0,0 +1,220 @@ +# -*- coding: utf-8 -*- +# +# 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. + +"""Accesses the google.ads.googleads.v4.services PaymentsAccountService API.""" + +import pkg_resources +import warnings + +from google.oauth2 import service_account +import google.api_core.gapic_v1.client_info +import google.api_core.gapic_v1.config +import google.api_core.gapic_v1.method +import google.api_core.gapic_v1.routing_header +import google.api_core.grpc_helpers + +from google.ads.google_ads.v4.services import payments_account_service_client_config +from google.ads.google_ads.v4.services.transports import payments_account_service_grpc_transport +from google.ads.google_ads.v4.proto.services import payments_account_service_pb2 + + + +_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( + 'google-ads', +).version + + +class PaymentsAccountServiceClient(object): + """ + Service to provide payments accounts that can be used to set up consolidated + billing. + """ + + SERVICE_ADDRESS = 'googleads.googleapis.com:443' + """The default address of the service.""" + + # The name of the interface for this client. This is the key used to + # find the method configuration in the client_config dictionary. + _INTERFACE_NAME = 'google.ads.googleads.v4.services.PaymentsAccountService' + + + @classmethod + def from_service_account_file(cls, filename, *args, **kwargs): + """Creates an instance of this client using the provided credentials + file. + + Args: + filename (str): The path to the service account private key json + file. + args: Additional arguments to pass to the constructor. + kwargs: Additional arguments to pass to the constructor. + + Returns: + PaymentsAccountServiceClient: The constructed client. + """ + credentials = service_account.Credentials.from_service_account_file( + filename) + kwargs['credentials'] = credentials + return cls(*args, **kwargs) + + from_service_account_json = from_service_account_file + + def __init__(self, transport=None, channel=None, credentials=None, + client_config=None, client_info=None): + """Constructor. + + Args: + transport (Union[~.PaymentsAccountServiceGrpcTransport, + Callable[[~.Credentials, type], ~.PaymentsAccountServiceGrpcTransport]): A transport + instance, responsible for actually making the API calls. + The default transport uses the gRPC protocol. + This argument may also be a callable which returns a + transport instance. Callables will be sent the credentials + as the first argument and the default transport class as + the second argument. + channel (grpc.Channel): DEPRECATED. A ``Channel`` instance + through which to make calls. This argument is mutually exclusive + with ``credentials``; providing both will raise an exception. + credentials (google.auth.credentials.Credentials): The + authorization credentials to attach to requests. These + credentials identify this application to the service. If none + are specified, the client will attempt to ascertain the + credentials from the environment. + This argument is mutually exclusive with providing a + transport instance to ``transport``; doing so will raise + an exception. + client_config (dict): DEPRECATED. A dictionary of call options for + each method. If not specified, the default configuration is used. + client_info (google.api_core.gapic_v1.client_info.ClientInfo): + The client info used to send a user-agent string along with + API requests. If ``None``, then default info will be used. + Generally, you only need to set this if you're developing + your own client library. + """ + # Raise deprecation warnings for things we want to go away. + if client_config is not None: + warnings.warn('The `client_config` argument is deprecated.', + PendingDeprecationWarning, stacklevel=2) + else: + client_config = payments_account_service_client_config.config + + if channel: + warnings.warn('The `channel` argument is deprecated; use ' + '`transport` instead.', + PendingDeprecationWarning, stacklevel=2) + + # Instantiate the transport. + # The transport is responsible for handling serialization and + # deserialization and actually sending data to the service. + if transport: + if callable(transport): + self.transport = transport( + credentials=credentials, + default_class=payments_account_service_grpc_transport.PaymentsAccountServiceGrpcTransport, + ) + else: + if credentials: + raise ValueError( + 'Received both a transport instance and ' + 'credentials; these are mutually exclusive.' + ) + self.transport = transport + else: + self.transport = payments_account_service_grpc_transport.PaymentsAccountServiceGrpcTransport( + address=self.SERVICE_ADDRESS, + channel=channel, + credentials=credentials, + ) + + if client_info is None: + client_info = google.api_core.gapic_v1.client_info.ClientInfo( + gapic_version=_GAPIC_LIBRARY_VERSION, + ) + else: + client_info.gapic_version = _GAPIC_LIBRARY_VERSION + self._client_info = client_info + + # Parse out the default settings for retry and timeout for each RPC + # from the client configuration. + # (Ordinarily, these are the defaults specified in the `*_config.py` + # file next to this one.) + self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( + client_config['interfaces'][self._INTERFACE_NAME], + ) + + # Save a dictionary of cached API call functions. + # These are the actual callables which invoke the proper + # transport methods, wrapped with `wrap_method` to add retry, + # timeout, and the like. + self._inner_api_calls = {} + + # Service calls + def list_payments_accounts( + self, + customer_id, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None): + """ + Returns all payments accounts associated with all managers + between the login customer ID and specified serving customer in the + hierarchy, inclusive. + + Args: + customer_id (str): Required. The ID of the customer to apply the PaymentsAccount list operation to. + retry (Optional[google.api_core.retry.Retry]): A retry object used + to retry requests. If ``None`` is specified, requests will not + be retried. + timeout (Optional[float]): The amount of time, in seconds, to wait + for the request to complete. Note that if ``retry`` is + specified, the timeout applies to each individual attempt. + metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata + that is provided to the method. + + Returns: + A :class:`~google.ads.googleads_v4.types.ListPaymentsAccountsResponse` instance. + + Raises: + google.api_core.exceptions.GoogleAPICallError: If the request + failed for any reason. + google.api_core.exceptions.RetryError: If the request failed due + to a retryable error and retry attempts failed. + ValueError: If the parameters are invalid. + """ + # Wrap the transport method to add retry and timeout logic. + if 'list_payments_accounts' not in self._inner_api_calls: + self._inner_api_calls['list_payments_accounts'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.list_payments_accounts, + default_retry=self._method_configs['ListPaymentsAccounts'].retry, + default_timeout=self._method_configs['ListPaymentsAccounts'].timeout, + client_info=self._client_info, + ) + + request = payments_account_service_pb2.ListPaymentsAccountsRequest( + customer_id=customer_id, + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [('customer_id', customer_id)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata(routing_header) + metadata.append(routing_metadata) + + return self._inner_api_calls['list_payments_accounts'](request, retry=retry, timeout=timeout, metadata=metadata) diff --git a/google/ads/google_ads/v4/services/payments_account_service_client_config.py b/google/ads/google_ads/v4/services/payments_account_service_client_config.py new file mode 100644 index 000000000..683c03581 --- /dev/null +++ b/google/ads/google_ads/v4/services/payments_account_service_client_config.py @@ -0,0 +1,31 @@ +config = { + "interfaces": { + "google.ads.googleads.v4.services.PaymentsAccountService": { + "retry_codes": { + "idempotent": [ + "DEADLINE_EXCEEDED", + "UNAVAILABLE" + ], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 5000, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 3600000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 3600000, + "total_timeout_millis": 3600000 + } + }, + "methods": { + "ListPaymentsAccounts": { + "timeout_millis": 60000, + "retry_codes_name": "idempotent", + "retry_params_name": "default" + } + } + } + } +} diff --git a/google/ads/google_ads/v1/services/product_bidding_category_constant_service_client.py b/google/ads/google_ads/v4/services/product_bidding_category_constant_service_client.py similarity index 77% rename from google/ads/google_ads/v1/services/product_bidding_category_constant_service_client.py rename to google/ads/google_ads/v4/services/product_bidding_category_constant_service_client.py index b08d53ea4..65b4ffce5 100644 --- a/google/ads/google_ads/v1/services/product_bidding_category_constant_service_client.py +++ b/google/ads/google_ads/v4/services/product_bidding_category_constant_service_client.py @@ -13,7 +13,8 @@ # 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. -"""Accesses the google.ads.googleads.v1.services ProductBiddingCategoryConstantService API.""" + +"""Accesses the google.ads.googleads.v4.services ProductBiddingCategoryConstantService API.""" import pkg_resources import warnings @@ -22,15 +23,19 @@ import google.api_core.gapic_v1.client_info import google.api_core.gapic_v1.config import google.api_core.gapic_v1.method +import google.api_core.gapic_v1.routing_header import google.api_core.grpc_helpers import google.api_core.path_template -from google.ads.google_ads.v1.services import product_bidding_category_constant_service_client_config -from google.ads.google_ads.v1.services.transports import product_bidding_category_constant_service_grpc_transport -from google.ads.google_ads.v1.proto.services import product_bidding_category_constant_service_pb2 +from google.ads.google_ads.v4.services import product_bidding_category_constant_service_client_config +from google.ads.google_ads.v4.services.transports import product_bidding_category_constant_service_grpc_transport +from google.ads.google_ads.v4.proto.services import product_bidding_category_constant_service_pb2 + + _GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( - 'google-ads', ).version + 'google-ads', +).version class ProductBiddingCategoryConstantServiceClient(object): @@ -41,7 +46,8 @@ class ProductBiddingCategoryConstantServiceClient(object): # The name of the interface for this client. This is the key used to # find the method configuration in the client_config dictionary. - _INTERFACE_NAME = 'google.ads.googleads.v1.services.ProductBiddingCategoryConstantService' + _INTERFACE_NAME = 'google.ads.googleads.v4.services.ProductBiddingCategoryConstantService' + @classmethod def from_service_account_file(cls, filename, *args, **kwargs): @@ -64,21 +70,17 @@ def from_service_account_file(cls, filename, *args, **kwargs): from_service_account_json = from_service_account_file + @classmethod - def product_bidding_category_constant_path( - cls, product_bidding_category_constant): + def product_bidding_category_constant_path(cls, product_bidding_category_constant): """Return a fully-qualified product_bidding_category_constant string.""" return google.api_core.path_template.expand( 'productBiddingCategoryConstants/{product_bidding_category_constant}', product_bidding_category_constant=product_bidding_category_constant, ) - def __init__(self, - transport=None, - channel=None, - credentials=None, - client_config=None, - client_info=None): + def __init__(self, transport=None, channel=None, credentials=None, + client_config=None, client_info=None): """Constructor. Args: @@ -111,19 +113,15 @@ def __init__(self, """ # Raise deprecation warnings for things we want to go away. if client_config is not None: - warnings.warn( - 'The `client_config` argument is deprecated.', - PendingDeprecationWarning, - stacklevel=2) + warnings.warn('The `client_config` argument is deprecated.', + PendingDeprecationWarning, stacklevel=2) else: client_config = product_bidding_category_constant_service_client_config.config if channel: - warnings.warn( - 'The `channel` argument is deprecated; use ' - '`transport` instead.', - PendingDeprecationWarning, - stacklevel=2) + warnings.warn('The `channel` argument is deprecated; use ' + '`transport` instead.', + PendingDeprecationWarning, stacklevel=2) # Instantiate the transport. # The transport is responsible for handling serialization and @@ -132,15 +130,14 @@ def __init__(self, if callable(transport): self.transport = transport( credentials=credentials, - default_class= - product_bidding_category_constant_service_grpc_transport. - ProductBiddingCategoryConstantServiceGrpcTransport, + default_class=product_bidding_category_constant_service_grpc_transport.ProductBiddingCategoryConstantServiceGrpcTransport, ) else: if credentials: raise ValueError( 'Received both a transport instance and ' - 'credentials; these are mutually exclusive.') + 'credentials; these are mutually exclusive.' + ) self.transport = transport else: self.transport = product_bidding_category_constant_service_grpc_transport.ProductBiddingCategoryConstantServiceGrpcTransport( @@ -151,7 +148,8 @@ def __init__(self, if client_info is None: client_info = google.api_core.gapic_v1.client_info.ClientInfo( - gapic_version=_GAPIC_LIBRARY_VERSION, ) + gapic_version=_GAPIC_LIBRARY_VERSION, + ) else: client_info.gapic_version = _GAPIC_LIBRARY_VERSION self._client_info = client_info @@ -161,7 +159,8 @@ def __init__(self, # (Ordinarily, these are the defaults specified in the `*_config.py` # file next to this one.) self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( - client_config['interfaces'][self._INTERFACE_NAME], ) + client_config['interfaces'][self._INTERFACE_NAME], + ) # Save a dictionary of cached API call functions. # These are the actual callables which invoke the proper @@ -180,7 +179,7 @@ def get_product_bidding_category_constant( Returns the requested Product Bidding Category in full detail. Args: - resource_name (str): Resource name of the Product Bidding Category to fetch. + resource_name (str): Required. Resource name of the Product Bidding Category to fetch. retry (Optional[google.api_core.retry.Retry]): A retry object used to retry requests. If ``None`` is specified, requests will not be retried. @@ -191,7 +190,7 @@ def get_product_bidding_category_constant( that is provided to the method. Returns: - A :class:`~google.ads.googleads_v1.types.ProductBiddingCategoryConstant` instance. + A :class:`~google.ads.googleads_v4.types.ProductBiddingCategoryConstant` instance. Raises: google.api_core.exceptions.GoogleAPICallError: If the request @@ -202,17 +201,25 @@ def get_product_bidding_category_constant( """ # Wrap the transport method to add retry and timeout logic. if 'get_product_bidding_category_constant' not in self._inner_api_calls: - self._inner_api_calls[ - 'get_product_bidding_category_constant'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.get_product_bidding_category_constant, - default_retry=self. - _method_configs['GetProductBiddingCategoryConstant'].retry, - default_timeout=self._method_configs[ - 'GetProductBiddingCategoryConstant'].timeout, - client_info=self._client_info, - ) + self._inner_api_calls['get_product_bidding_category_constant'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.get_product_bidding_category_constant, + default_retry=self._method_configs['GetProductBiddingCategoryConstant'].retry, + default_timeout=self._method_configs['GetProductBiddingCategoryConstant'].timeout, + client_info=self._client_info, + ) request = product_bidding_category_constant_service_pb2.GetProductBiddingCategoryConstantRequest( - resource_name=resource_name, ) - return self._inner_api_calls['get_product_bidding_category_constant']( - request, retry=retry, timeout=timeout, metadata=metadata) + resource_name=resource_name, + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [('resource_name', resource_name)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata(routing_header) + metadata.append(routing_metadata) + + return self._inner_api_calls['get_product_bidding_category_constant'](request, retry=retry, timeout=timeout, metadata=metadata) diff --git a/google/ads/google_ads/v4/services/product_bidding_category_constant_service_client_config.py b/google/ads/google_ads/v4/services/product_bidding_category_constant_service_client_config.py new file mode 100644 index 000000000..13df3b2e9 --- /dev/null +++ b/google/ads/google_ads/v4/services/product_bidding_category_constant_service_client_config.py @@ -0,0 +1,31 @@ +config = { + "interfaces": { + "google.ads.googleads.v4.services.ProductBiddingCategoryConstantService": { + "retry_codes": { + "idempotent": [ + "DEADLINE_EXCEEDED", + "UNAVAILABLE" + ], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 5000, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 3600000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 3600000, + "total_timeout_millis": 3600000 + } + }, + "methods": { + "GetProductBiddingCategoryConstant": { + "timeout_millis": 60000, + "retry_codes_name": "idempotent", + "retry_params_name": "default" + } + } + } + } +} diff --git a/google/ads/google_ads/v1/services/product_group_view_service_client.py b/google/ads/google_ads/v4/services/product_group_view_service_client.py similarity index 75% rename from google/ads/google_ads/v1/services/product_group_view_service_client.py rename to google/ads/google_ads/v4/services/product_group_view_service_client.py index 072c4d21b..fd3aa9fe9 100644 --- a/google/ads/google_ads/v1/services/product_group_view_service_client.py +++ b/google/ads/google_ads/v4/services/product_group_view_service_client.py @@ -13,7 +13,8 @@ # 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. -"""Accesses the google.ads.googleads.v1.services ProductGroupViewService API.""" + +"""Accesses the google.ads.googleads.v4.services ProductGroupViewService API.""" import pkg_resources import warnings @@ -22,15 +23,19 @@ import google.api_core.gapic_v1.client_info import google.api_core.gapic_v1.config import google.api_core.gapic_v1.method +import google.api_core.gapic_v1.routing_header import google.api_core.grpc_helpers import google.api_core.path_template -from google.ads.google_ads.v1.services import product_group_view_service_client_config -from google.ads.google_ads.v1.services.transports import product_group_view_service_grpc_transport -from google.ads.google_ads.v1.proto.services import product_group_view_service_pb2 +from google.ads.google_ads.v4.services import product_group_view_service_client_config +from google.ads.google_ads.v4.services.transports import product_group_view_service_grpc_transport +from google.ads.google_ads.v4.proto.services import product_group_view_service_pb2 + + _GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( - 'google-ads', ).version + 'google-ads', +).version class ProductGroupViewServiceClient(object): @@ -41,7 +46,8 @@ class ProductGroupViewServiceClient(object): # The name of the interface for this client. This is the key used to # find the method configuration in the client_config dictionary. - _INTERFACE_NAME = 'google.ads.googleads.v1.services.ProductGroupViewService' + _INTERFACE_NAME = 'google.ads.googleads.v4.services.ProductGroupViewService' + @classmethod def from_service_account_file(cls, filename, *args, **kwargs): @@ -64,6 +70,7 @@ def from_service_account_file(cls, filename, *args, **kwargs): from_service_account_json = from_service_account_file + @classmethod def product_group_view_path(cls, customer, product_group_view): """Return a fully-qualified product_group_view string.""" @@ -73,12 +80,8 @@ def product_group_view_path(cls, customer, product_group_view): product_group_view=product_group_view, ) - def __init__(self, - transport=None, - channel=None, - credentials=None, - client_config=None, - client_info=None): + def __init__(self, transport=None, channel=None, credentials=None, + client_config=None, client_info=None): """Constructor. Args: @@ -111,19 +114,15 @@ def __init__(self, """ # Raise deprecation warnings for things we want to go away. if client_config is not None: - warnings.warn( - 'The `client_config` argument is deprecated.', - PendingDeprecationWarning, - stacklevel=2) + warnings.warn('The `client_config` argument is deprecated.', + PendingDeprecationWarning, stacklevel=2) else: client_config = product_group_view_service_client_config.config if channel: - warnings.warn( - 'The `channel` argument is deprecated; use ' - '`transport` instead.', - PendingDeprecationWarning, - stacklevel=2) + warnings.warn('The `channel` argument is deprecated; use ' + '`transport` instead.', + PendingDeprecationWarning, stacklevel=2) # Instantiate the transport. # The transport is responsible for handling serialization and @@ -132,14 +131,14 @@ def __init__(self, if callable(transport): self.transport = transport( credentials=credentials, - default_class=product_group_view_service_grpc_transport. - ProductGroupViewServiceGrpcTransport, + default_class=product_group_view_service_grpc_transport.ProductGroupViewServiceGrpcTransport, ) else: if credentials: raise ValueError( 'Received both a transport instance and ' - 'credentials; these are mutually exclusive.') + 'credentials; these are mutually exclusive.' + ) self.transport = transport else: self.transport = product_group_view_service_grpc_transport.ProductGroupViewServiceGrpcTransport( @@ -150,7 +149,8 @@ def __init__(self, if client_info is None: client_info = google.api_core.gapic_v1.client_info.ClientInfo( - gapic_version=_GAPIC_LIBRARY_VERSION, ) + gapic_version=_GAPIC_LIBRARY_VERSION, + ) else: client_info.gapic_version = _GAPIC_LIBRARY_VERSION self._client_info = client_info @@ -160,7 +160,8 @@ def __init__(self, # (Ordinarily, these are the defaults specified in the `*_config.py` # file next to this one.) self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( - client_config['interfaces'][self._INTERFACE_NAME], ) + client_config['interfaces'][self._INTERFACE_NAME], + ) # Save a dictionary of cached API call functions. # These are the actual callables which invoke the proper @@ -169,16 +170,17 @@ def __init__(self, self._inner_api_calls = {} # Service calls - def get_product_group_view(self, - resource_name, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): + def get_product_group_view( + self, + resource_name, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None): """ Returns the requested product group view in full detail. Args: - resource_name (str): The resource name of the product group view to fetch. + resource_name (str): Required. The resource name of the product group view to fetch. retry (Optional[google.api_core.retry.Retry]): A retry object used to retry requests. If ``None`` is specified, requests will not be retried. @@ -189,7 +191,7 @@ def get_product_group_view(self, that is provided to the method. Returns: - A :class:`~google.ads.googleads_v1.types.ProductGroupView` instance. + A :class:`~google.ads.googleads_v4.types.ProductGroupView` instance. Raises: google.api_core.exceptions.GoogleAPICallError: If the request @@ -200,17 +202,25 @@ def get_product_group_view(self, """ # Wrap the transport method to add retry and timeout logic. if 'get_product_group_view' not in self._inner_api_calls: - self._inner_api_calls[ - 'get_product_group_view'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.get_product_group_view, - default_retry=self._method_configs['GetProductGroupView']. - retry, - default_timeout=self. - _method_configs['GetProductGroupView'].timeout, - client_info=self._client_info, - ) + self._inner_api_calls['get_product_group_view'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.get_product_group_view, + default_retry=self._method_configs['GetProductGroupView'].retry, + default_timeout=self._method_configs['GetProductGroupView'].timeout, + client_info=self._client_info, + ) request = product_group_view_service_pb2.GetProductGroupViewRequest( - resource_name=resource_name, ) - return self._inner_api_calls['get_product_group_view']( - request, retry=retry, timeout=timeout, metadata=metadata) + resource_name=resource_name, + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [('resource_name', resource_name)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata(routing_header) + metadata.append(routing_metadata) + + return self._inner_api_calls['get_product_group_view'](request, retry=retry, timeout=timeout, metadata=metadata) diff --git a/google/ads/google_ads/v4/services/product_group_view_service_client_config.py b/google/ads/google_ads/v4/services/product_group_view_service_client_config.py new file mode 100644 index 000000000..9646a29d5 --- /dev/null +++ b/google/ads/google_ads/v4/services/product_group_view_service_client_config.py @@ -0,0 +1,31 @@ +config = { + "interfaces": { + "google.ads.googleads.v4.services.ProductGroupViewService": { + "retry_codes": { + "idempotent": [ + "DEADLINE_EXCEEDED", + "UNAVAILABLE" + ], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 5000, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 3600000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 3600000, + "total_timeout_millis": 3600000 + } + }, + "methods": { + "GetProductGroupView": { + "timeout_millis": 60000, + "retry_codes_name": "idempotent", + "retry_params_name": "default" + } + } + } + } +} diff --git a/google/ads/google_ads/v4/services/reach_plan_service_client.py b/google/ads/google_ads/v4/services/reach_plan_service_client.py new file mode 100644 index 000000000..0b1c356e0 --- /dev/null +++ b/google/ads/google_ads/v4/services/reach_plan_service_client.py @@ -0,0 +1,462 @@ +# -*- coding: utf-8 -*- +# +# 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. + +"""Accesses the google.ads.googleads.v4.services ReachPlanService API.""" + +import pkg_resources +import warnings + +from google.oauth2 import service_account +import google.api_core.gapic_v1.client_info +import google.api_core.gapic_v1.config +import google.api_core.gapic_v1.method +import google.api_core.gapic_v1.routing_header +import google.api_core.grpc_helpers + +from google.ads.google_ads.v4.services import reach_plan_service_client_config +from google.ads.google_ads.v4.services.transports import reach_plan_service_grpc_transport +from google.ads.google_ads.v4.proto.services import reach_plan_service_pb2 + + + +_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( + 'google-ads', +).version + + +class ReachPlanServiceClient(object): + """ + Reach Plan Service gives users information about audience size that can + be reached through advertisement on YouTube. In particular, + GenerateReachForecast provides estimated number of people of specified + demographics that can be reached by an ad in a given market by a campaign of + certain duration with a defined budget. + """ + + SERVICE_ADDRESS = 'googleads.googleapis.com:443' + """The default address of the service.""" + + # The name of the interface for this client. This is the key used to + # find the method configuration in the client_config dictionary. + _INTERFACE_NAME = 'google.ads.googleads.v4.services.ReachPlanService' + + + @classmethod + def from_service_account_file(cls, filename, *args, **kwargs): + """Creates an instance of this client using the provided credentials + file. + + Args: + filename (str): The path to the service account private key json + file. + args: Additional arguments to pass to the constructor. + kwargs: Additional arguments to pass to the constructor. + + Returns: + ReachPlanServiceClient: The constructed client. + """ + credentials = service_account.Credentials.from_service_account_file( + filename) + kwargs['credentials'] = credentials + return cls(*args, **kwargs) + + from_service_account_json = from_service_account_file + + def __init__(self, transport=None, channel=None, credentials=None, + client_config=None, client_info=None): + """Constructor. + + Args: + transport (Union[~.ReachPlanServiceGrpcTransport, + Callable[[~.Credentials, type], ~.ReachPlanServiceGrpcTransport]): A transport + instance, responsible for actually making the API calls. + The default transport uses the gRPC protocol. + This argument may also be a callable which returns a + transport instance. Callables will be sent the credentials + as the first argument and the default transport class as + the second argument. + channel (grpc.Channel): DEPRECATED. A ``Channel`` instance + through which to make calls. This argument is mutually exclusive + with ``credentials``; providing both will raise an exception. + credentials (google.auth.credentials.Credentials): The + authorization credentials to attach to requests. These + credentials identify this application to the service. If none + are specified, the client will attempt to ascertain the + credentials from the environment. + This argument is mutually exclusive with providing a + transport instance to ``transport``; doing so will raise + an exception. + client_config (dict): DEPRECATED. A dictionary of call options for + each method. If not specified, the default configuration is used. + client_info (google.api_core.gapic_v1.client_info.ClientInfo): + The client info used to send a user-agent string along with + API requests. If ``None``, then default info will be used. + Generally, you only need to set this if you're developing + your own client library. + """ + # Raise deprecation warnings for things we want to go away. + if client_config is not None: + warnings.warn('The `client_config` argument is deprecated.', + PendingDeprecationWarning, stacklevel=2) + else: + client_config = reach_plan_service_client_config.config + + if channel: + warnings.warn('The `channel` argument is deprecated; use ' + '`transport` instead.', + PendingDeprecationWarning, stacklevel=2) + + # Instantiate the transport. + # The transport is responsible for handling serialization and + # deserialization and actually sending data to the service. + if transport: + if callable(transport): + self.transport = transport( + credentials=credentials, + default_class=reach_plan_service_grpc_transport.ReachPlanServiceGrpcTransport, + ) + else: + if credentials: + raise ValueError( + 'Received both a transport instance and ' + 'credentials; these are mutually exclusive.' + ) + self.transport = transport + else: + self.transport = reach_plan_service_grpc_transport.ReachPlanServiceGrpcTransport( + address=self.SERVICE_ADDRESS, + channel=channel, + credentials=credentials, + ) + + if client_info is None: + client_info = google.api_core.gapic_v1.client_info.ClientInfo( + gapic_version=_GAPIC_LIBRARY_VERSION, + ) + else: + client_info.gapic_version = _GAPIC_LIBRARY_VERSION + self._client_info = client_info + + # Parse out the default settings for retry and timeout for each RPC + # from the client configuration. + # (Ordinarily, these are the defaults specified in the `*_config.py` + # file next to this one.) + self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( + client_config['interfaces'][self._INTERFACE_NAME], + ) + + # Save a dictionary of cached API call functions. + # These are the actual callables which invoke the proper + # transport methods, wrapped with `wrap_method` to add retry, + # timeout, and the like. + self._inner_api_calls = {} + + # Service calls + def list_plannable_locations( + self, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None): + """ + Returns the list of plannable locations (for example, countries & DMAs). + + Args: + retry (Optional[google.api_core.retry.Retry]): A retry object used + to retry requests. If ``None`` is specified, requests will not + be retried. + timeout (Optional[float]): The amount of time, in seconds, to wait + for the request to complete. Note that if ``retry`` is + specified, the timeout applies to each individual attempt. + metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata + that is provided to the method. + + Returns: + A :class:`~google.ads.googleads_v4.types.ListPlannableLocationsResponse` instance. + + Raises: + google.api_core.exceptions.GoogleAPICallError: If the request + failed for any reason. + google.api_core.exceptions.RetryError: If the request failed due + to a retryable error and retry attempts failed. + """ + # Wrap the transport method to add retry and timeout logic. + if 'list_plannable_locations' not in self._inner_api_calls: + self._inner_api_calls['list_plannable_locations'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.list_plannable_locations, + default_retry=self._method_configs['ListPlannableLocations'].retry, + default_timeout=self._method_configs['ListPlannableLocations'].timeout, + client_info=self._client_info, + ) + + request = reach_plan_service_pb2.ListPlannableLocationsRequest() + return self._inner_api_calls['list_plannable_locations'](request, retry=retry, timeout=timeout, metadata=metadata) + + def list_plannable_products( + self, + plannable_location_id, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None): + """ + Returns the list of per-location plannable YouTube ad formats with allowed + targeting. + + Args: + plannable_location_id (Union[dict, ~google.ads.googleads_v4.types.StringValue]): Required. The ID of the selected location for planning. To list the available + plannable location ids use ListPlannableLocations. + + If a dict is provided, it must be of the same form as the protobuf + message :class:`~google.ads.googleads_v4.types.StringValue` + retry (Optional[google.api_core.retry.Retry]): A retry object used + to retry requests. If ``None`` is specified, requests will not + be retried. + timeout (Optional[float]): The amount of time, in seconds, to wait + for the request to complete. Note that if ``retry`` is + specified, the timeout applies to each individual attempt. + metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata + that is provided to the method. + + Returns: + A :class:`~google.ads.googleads_v4.types.ListPlannableProductsResponse` instance. + + Raises: + google.api_core.exceptions.GoogleAPICallError: If the request + failed for any reason. + google.api_core.exceptions.RetryError: If the request failed due + to a retryable error and retry attempts failed. + ValueError: If the parameters are invalid. + """ + # Wrap the transport method to add retry and timeout logic. + if 'list_plannable_products' not in self._inner_api_calls: + self._inner_api_calls['list_plannable_products'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.list_plannable_products, + default_retry=self._method_configs['ListPlannableProducts'].retry, + default_timeout=self._method_configs['ListPlannableProducts'].timeout, + client_info=self._client_info, + ) + + request = reach_plan_service_pb2.ListPlannableProductsRequest( + plannable_location_id=plannable_location_id, + ) + return self._inner_api_calls['list_plannable_products'](request, retry=retry, timeout=timeout, metadata=metadata) + + def generate_product_mix_ideas( + self, + customer_id, + plannable_location_id, + currency_code, + budget_micros, + preferences, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None): + """ + Generates a product mix ideas given a set of preferences. This method + helps the advertiser to obtain a good mix of ad formats and budget + allocations based on its preferences. + + Args: + customer_id (str): Required. The ID of the customer. + plannable_location_id (Union[dict, ~google.ads.googleads_v4.types.StringValue]): Required. The ID of the location, this is one of the ids returned by + ListPlannableLocations. + + If a dict is provided, it must be of the same form as the protobuf + message :class:`~google.ads.googleads_v4.types.StringValue` + currency_code (Union[dict, ~google.ads.googleads_v4.types.StringValue]): Required. Currency code. + Three-character ISO 4217 currency code. + + If a dict is provided, it must be of the same form as the protobuf + message :class:`~google.ads.googleads_v4.types.StringValue` + budget_micros (Union[dict, ~google.ads.googleads_v4.types.Int64Value]): Required. Total budget. + Amount in micros. One million is equivalent to one unit. + + If a dict is provided, it must be of the same form as the protobuf + message :class:`~google.ads.googleads_v4.types.Int64Value` + preferences (Union[dict, ~google.ads.googleads_v4.types.Preferences]): The preferences of the suggested product mix. + An unset preference is interpreted as all possible values are allowed, + unless explicitly specified. + + If a dict is provided, it must be of the same form as the protobuf + message :class:`~google.ads.googleads_v4.types.Preferences` + retry (Optional[google.api_core.retry.Retry]): A retry object used + to retry requests. If ``None`` is specified, requests will not + be retried. + timeout (Optional[float]): The amount of time, in seconds, to wait + for the request to complete. Note that if ``retry`` is + specified, the timeout applies to each individual attempt. + metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata + that is provided to the method. + + Returns: + A :class:`~google.ads.googleads_v4.types.GenerateProductMixIdeasResponse` instance. + + Raises: + google.api_core.exceptions.GoogleAPICallError: If the request + failed for any reason. + google.api_core.exceptions.RetryError: If the request failed due + to a retryable error and retry attempts failed. + ValueError: If the parameters are invalid. + """ + # Wrap the transport method to add retry and timeout logic. + if 'generate_product_mix_ideas' not in self._inner_api_calls: + self._inner_api_calls['generate_product_mix_ideas'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.generate_product_mix_ideas, + default_retry=self._method_configs['GenerateProductMixIdeas'].retry, + default_timeout=self._method_configs['GenerateProductMixIdeas'].timeout, + client_info=self._client_info, + ) + + request = reach_plan_service_pb2.GenerateProductMixIdeasRequest( + customer_id=customer_id, + plannable_location_id=plannable_location_id, + currency_code=currency_code, + budget_micros=budget_micros, + preferences=preferences, + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [('customer_id', customer_id)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata(routing_header) + metadata.append(routing_metadata) + + return self._inner_api_calls['generate_product_mix_ideas'](request, retry=retry, timeout=timeout, metadata=metadata) + + def generate_reach_forecast( + self, + customer_id, + currency_code, + campaign_duration, + cookie_frequency_cap, + cookie_frequency_cap_setting, + min_effective_frequency, + targeting, + planned_products, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None): + """ + Generates a reach forecast for a given targeting / product mix. + + Args: + customer_id (str): Required. The ID of the customer. + currency_code (Union[dict, ~google.ads.googleads_v4.types.StringValue]): The currency code. + Three-character ISO 4217 currency code. + + If a dict is provided, it must be of the same form as the protobuf + message :class:`~google.ads.googleads_v4.types.StringValue` + campaign_duration (Union[dict, ~google.ads.googleads_v4.types.CampaignDuration]): Required. Campaign duration. + + If a dict is provided, it must be of the same form as the protobuf + message :class:`~google.ads.googleads_v4.types.CampaignDuration` + cookie_frequency_cap (Union[dict, ~google.ads.googleads_v4.types.Int32Value]): Desired cookie frequency cap that will be applied to each planned + product. This is equivalent to the frequency cap exposed in Google Ads + when creating a campaign, it represents the maximum number of times an + ad can be shown to the same user. If not specified no cap is applied. + + This field is deprecated in v4 and will eventually be removed. Please + use cookie\_frequency\_cap\_setting instead. + + If a dict is provided, it must be of the same form as the protobuf + message :class:`~google.ads.googleads_v4.types.Int32Value` + cookie_frequency_cap_setting (Union[dict, ~google.ads.googleads_v4.types.FrequencyCap]): Desired cookie frequency cap that will be applied to each planned + product. This is equivalent to the frequency cap exposed in Google Ads + when creating a campaign, it represents the maximum number of times an + ad can be shown to the same user during a specified time interval. If + not specified, no cap is applied. + + This field replaces the deprecated cookie\_frequency\_cap field. + + If a dict is provided, it must be of the same form as the protobuf + message :class:`~google.ads.googleads_v4.types.FrequencyCap` + min_effective_frequency (Union[dict, ~google.ads.googleads_v4.types.Int32Value]): Desired minimum effective frequency (the number of times a person was + exposed to the ad) for the reported reach metrics [1-10]. This won't + affect the targeting, but just the reporting. If not specified, a + default of 1 is applied. + + If a dict is provided, it must be of the same form as the protobuf + message :class:`~google.ads.googleads_v4.types.Int32Value` + targeting (Union[dict, ~google.ads.googleads_v4.types.Targeting]): The targeting to be applied to all products selected in the product mix. + + This is planned targeting: execution details might vary based on the + advertising product, please consult an implementation specialist. + + See specific metrics for details on how targeting affects them. + + In some cases, targeting may be overridden using the + PlannedProduct.advanced\_product\_targeting field. + + If a dict is provided, it must be of the same form as the protobuf + message :class:`~google.ads.googleads_v4.types.Targeting` + planned_products (list[Union[dict, ~google.ads.googleads_v4.types.PlannedProduct]]): Required. The products to be forecast. + The max number of allowed planned products is 15. + + If a dict is provided, it must be of the same form as the protobuf + message :class:`~google.ads.googleads_v4.types.PlannedProduct` + retry (Optional[google.api_core.retry.Retry]): A retry object used + to retry requests. If ``None`` is specified, requests will not + be retried. + timeout (Optional[float]): The amount of time, in seconds, to wait + for the request to complete. Note that if ``retry`` is + specified, the timeout applies to each individual attempt. + metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata + that is provided to the method. + + Returns: + A :class:`~google.ads.googleads_v4.types.GenerateReachForecastResponse` instance. + + Raises: + google.api_core.exceptions.GoogleAPICallError: If the request + failed for any reason. + google.api_core.exceptions.RetryError: If the request failed due + to a retryable error and retry attempts failed. + ValueError: If the parameters are invalid. + """ + # Wrap the transport method to add retry and timeout logic. + if 'generate_reach_forecast' not in self._inner_api_calls: + self._inner_api_calls['generate_reach_forecast'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.generate_reach_forecast, + default_retry=self._method_configs['GenerateReachForecast'].retry, + default_timeout=self._method_configs['GenerateReachForecast'].timeout, + client_info=self._client_info, + ) + + request = reach_plan_service_pb2.GenerateReachForecastRequest( + customer_id=customer_id, + currency_code=currency_code, + campaign_duration=campaign_duration, + cookie_frequency_cap=cookie_frequency_cap, + cookie_frequency_cap_setting=cookie_frequency_cap_setting, + min_effective_frequency=min_effective_frequency, + targeting=targeting, + planned_products=planned_products, + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [('customer_id', customer_id)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata(routing_header) + metadata.append(routing_metadata) + + return self._inner_api_calls['generate_reach_forecast'](request, retry=retry, timeout=timeout, metadata=metadata) diff --git a/google/ads/google_ads/v4/services/reach_plan_service_client_config.py b/google/ads/google_ads/v4/services/reach_plan_service_client_config.py new file mode 100644 index 000000000..7da209ded --- /dev/null +++ b/google/ads/google_ads/v4/services/reach_plan_service_client_config.py @@ -0,0 +1,46 @@ +config = { + "interfaces": { + "google.ads.googleads.v4.services.ReachPlanService": { + "retry_codes": { + "idempotent": [ + "DEADLINE_EXCEEDED", + "UNAVAILABLE" + ], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 5000, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 3600000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 3600000, + "total_timeout_millis": 3600000 + } + }, + "methods": { + "ListPlannableLocations": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "ListPlannableProducts": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "GenerateProductMixIdeas": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "GenerateReachForecast": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + } + } + } + } +} diff --git a/google/ads/google_ads/v4/services/recommendation_service_client.py b/google/ads/google_ads/v4/services/recommendation_service_client.py new file mode 100644 index 000000000..070dba264 --- /dev/null +++ b/google/ads/google_ads/v4/services/recommendation_service_client.py @@ -0,0 +1,364 @@ +# -*- coding: utf-8 -*- +# +# 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. + +"""Accesses the google.ads.googleads.v4.services RecommendationService API.""" + +import pkg_resources +import warnings + +from google.oauth2 import service_account +import google.api_core.gapic_v1.client_info +import google.api_core.gapic_v1.config +import google.api_core.gapic_v1.method +import google.api_core.gapic_v1.routing_header +import google.api_core.grpc_helpers +import google.api_core.path_template + +from google.ads.google_ads.v4.services import recommendation_service_client_config +from google.ads.google_ads.v4.services.transports import recommendation_service_grpc_transport +from google.ads.google_ads.v4.proto.services import recommendation_service_pb2 + + + +_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( + 'google-ads', +).version + + +class RecommendationServiceClient(object): + """Service to manage recommendations.""" + + SERVICE_ADDRESS = 'googleads.googleapis.com:443' + """The default address of the service.""" + + # The name of the interface for this client. This is the key used to + # find the method configuration in the client_config dictionary. + _INTERFACE_NAME = 'google.ads.googleads.v4.services.RecommendationService' + + + @classmethod + def from_service_account_file(cls, filename, *args, **kwargs): + """Creates an instance of this client using the provided credentials + file. + + Args: + filename (str): The path to the service account private key json + file. + args: Additional arguments to pass to the constructor. + kwargs: Additional arguments to pass to the constructor. + + Returns: + RecommendationServiceClient: The constructed client. + """ + credentials = service_account.Credentials.from_service_account_file( + filename) + kwargs['credentials'] = credentials + return cls(*args, **kwargs) + + from_service_account_json = from_service_account_file + + + @classmethod + def recommendation_path(cls, customer, recommendation): + """Return a fully-qualified recommendation string.""" + return google.api_core.path_template.expand( + 'customers/{customer}/recommendations/{recommendation}', + customer=customer, + recommendation=recommendation, + ) + + def __init__(self, transport=None, channel=None, credentials=None, + client_config=None, client_info=None): + """Constructor. + + Args: + transport (Union[~.RecommendationServiceGrpcTransport, + Callable[[~.Credentials, type], ~.RecommendationServiceGrpcTransport]): A transport + instance, responsible for actually making the API calls. + The default transport uses the gRPC protocol. + This argument may also be a callable which returns a + transport instance. Callables will be sent the credentials + as the first argument and the default transport class as + the second argument. + channel (grpc.Channel): DEPRECATED. A ``Channel`` instance + through which to make calls. This argument is mutually exclusive + with ``credentials``; providing both will raise an exception. + credentials (google.auth.credentials.Credentials): The + authorization credentials to attach to requests. These + credentials identify this application to the service. If none + are specified, the client will attempt to ascertain the + credentials from the environment. + This argument is mutually exclusive with providing a + transport instance to ``transport``; doing so will raise + an exception. + client_config (dict): DEPRECATED. A dictionary of call options for + each method. If not specified, the default configuration is used. + client_info (google.api_core.gapic_v1.client_info.ClientInfo): + The client info used to send a user-agent string along with + API requests. If ``None``, then default info will be used. + Generally, you only need to set this if you're developing + your own client library. + """ + # Raise deprecation warnings for things we want to go away. + if client_config is not None: + warnings.warn('The `client_config` argument is deprecated.', + PendingDeprecationWarning, stacklevel=2) + else: + client_config = recommendation_service_client_config.config + + if channel: + warnings.warn('The `channel` argument is deprecated; use ' + '`transport` instead.', + PendingDeprecationWarning, stacklevel=2) + + # Instantiate the transport. + # The transport is responsible for handling serialization and + # deserialization and actually sending data to the service. + if transport: + if callable(transport): + self.transport = transport( + credentials=credentials, + default_class=recommendation_service_grpc_transport.RecommendationServiceGrpcTransport, + ) + else: + if credentials: + raise ValueError( + 'Received both a transport instance and ' + 'credentials; these are mutually exclusive.' + ) + self.transport = transport + else: + self.transport = recommendation_service_grpc_transport.RecommendationServiceGrpcTransport( + address=self.SERVICE_ADDRESS, + channel=channel, + credentials=credentials, + ) + + if client_info is None: + client_info = google.api_core.gapic_v1.client_info.ClientInfo( + gapic_version=_GAPIC_LIBRARY_VERSION, + ) + else: + client_info.gapic_version = _GAPIC_LIBRARY_VERSION + self._client_info = client_info + + # Parse out the default settings for retry and timeout for each RPC + # from the client configuration. + # (Ordinarily, these are the defaults specified in the `*_config.py` + # file next to this one.) + self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( + client_config['interfaces'][self._INTERFACE_NAME], + ) + + # Save a dictionary of cached API call functions. + # These are the actual callables which invoke the proper + # transport methods, wrapped with `wrap_method` to add retry, + # timeout, and the like. + self._inner_api_calls = {} + + # Service calls + def get_recommendation( + self, + resource_name, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None): + """ + Returns the requested recommendation in full detail. + + Args: + resource_name (str): Required. The resource name of the recommendation to fetch. + retry (Optional[google.api_core.retry.Retry]): A retry object used + to retry requests. If ``None`` is specified, requests will not + be retried. + timeout (Optional[float]): The amount of time, in seconds, to wait + for the request to complete. Note that if ``retry`` is + specified, the timeout applies to each individual attempt. + metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata + that is provided to the method. + + Returns: + A :class:`~google.ads.googleads_v4.types.Recommendation` instance. + + Raises: + google.api_core.exceptions.GoogleAPICallError: If the request + failed for any reason. + google.api_core.exceptions.RetryError: If the request failed due + to a retryable error and retry attempts failed. + ValueError: If the parameters are invalid. + """ + # Wrap the transport method to add retry and timeout logic. + if 'get_recommendation' not in self._inner_api_calls: + self._inner_api_calls['get_recommendation'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.get_recommendation, + default_retry=self._method_configs['GetRecommendation'].retry, + default_timeout=self._method_configs['GetRecommendation'].timeout, + client_info=self._client_info, + ) + + request = recommendation_service_pb2.GetRecommendationRequest( + resource_name=resource_name, + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [('resource_name', resource_name)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata(routing_header) + metadata.append(routing_metadata) + + return self._inner_api_calls['get_recommendation'](request, retry=retry, timeout=timeout, metadata=metadata) + + def apply_recommendation( + self, + customer_id, + operations, + partial_failure=None, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None): + """ + Applies given recommendations with corresponding apply parameters. + + Args: + customer_id (str): Required. The ID of the customer with the recommendation. + operations (list[Union[dict, ~google.ads.googleads_v4.types.ApplyRecommendationOperation]]): Required. The list of operations to apply recommendations. If + partial\_failure=false all recommendations should be of the same type + There is a limit of 100 operations per request. + + If a dict is provided, it must be of the same form as the protobuf + message :class:`~google.ads.googleads_v4.types.ApplyRecommendationOperation` + partial_failure (bool): If true, successful operations will be carried out and invalid + operations will return errors. If false, operations will be carried + out as a transaction if and only if they are all valid. + Default is false. + retry (Optional[google.api_core.retry.Retry]): A retry object used + to retry requests. If ``None`` is specified, requests will not + be retried. + timeout (Optional[float]): The amount of time, in seconds, to wait + for the request to complete. Note that if ``retry`` is + specified, the timeout applies to each individual attempt. + metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata + that is provided to the method. + + Returns: + A :class:`~google.ads.googleads_v4.types.ApplyRecommendationResponse` instance. + + Raises: + google.api_core.exceptions.GoogleAPICallError: If the request + failed for any reason. + google.api_core.exceptions.RetryError: If the request failed due + to a retryable error and retry attempts failed. + ValueError: If the parameters are invalid. + """ + # Wrap the transport method to add retry and timeout logic. + if 'apply_recommendation' not in self._inner_api_calls: + self._inner_api_calls['apply_recommendation'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.apply_recommendation, + default_retry=self._method_configs['ApplyRecommendation'].retry, + default_timeout=self._method_configs['ApplyRecommendation'].timeout, + client_info=self._client_info, + ) + + request = recommendation_service_pb2.ApplyRecommendationRequest( + customer_id=customer_id, + operations=operations, + partial_failure=partial_failure, + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [('customer_id', customer_id)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata(routing_header) + metadata.append(routing_metadata) + + return self._inner_api_calls['apply_recommendation'](request, retry=retry, timeout=timeout, metadata=metadata) + + def dismiss_recommendation( + self, + customer_id, + operations, + partial_failure=None, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None): + """ + Dismisses given recommendations. + + Args: + customer_id (str): Required. The ID of the customer with the recommendation. + operations (list[Union[dict, ~google.ads.googleads_v4.types.DismissRecommendationOperation]]): Required. The list of operations to dismiss recommendations. If + partial\_failure=false all recommendations should be of the same type + There is a limit of 100 operations per request. + + If a dict is provided, it must be of the same form as the protobuf + message :class:`~google.ads.googleads_v4.types.DismissRecommendationOperation` + partial_failure (bool): If true, successful operations will be carried out and invalid + operations will return errors. If false, operations will be carried in a + single transaction if and only if they are all valid. + Default is false. + retry (Optional[google.api_core.retry.Retry]): A retry object used + to retry requests. If ``None`` is specified, requests will not + be retried. + timeout (Optional[float]): The amount of time, in seconds, to wait + for the request to complete. Note that if ``retry`` is + specified, the timeout applies to each individual attempt. + metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata + that is provided to the method. + + Returns: + A :class:`~google.ads.googleads_v4.types.DismissRecommendationResponse` instance. + + Raises: + google.api_core.exceptions.GoogleAPICallError: If the request + failed for any reason. + google.api_core.exceptions.RetryError: If the request failed due + to a retryable error and retry attempts failed. + ValueError: If the parameters are invalid. + """ + # Wrap the transport method to add retry and timeout logic. + if 'dismiss_recommendation' not in self._inner_api_calls: + self._inner_api_calls['dismiss_recommendation'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.dismiss_recommendation, + default_retry=self._method_configs['DismissRecommendation'].retry, + default_timeout=self._method_configs['DismissRecommendation'].timeout, + client_info=self._client_info, + ) + + request = recommendation_service_pb2.DismissRecommendationRequest( + customer_id=customer_id, + operations=operations, + partial_failure=partial_failure, + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [('customer_id', customer_id)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata(routing_header) + metadata.append(routing_metadata) + + return self._inner_api_calls['dismiss_recommendation'](request, retry=retry, timeout=timeout, metadata=metadata) diff --git a/google/ads/google_ads/v4/services/recommendation_service_client_config.py b/google/ads/google_ads/v4/services/recommendation_service_client_config.py new file mode 100644 index 000000000..dfcfe482c --- /dev/null +++ b/google/ads/google_ads/v4/services/recommendation_service_client_config.py @@ -0,0 +1,41 @@ +config = { + "interfaces": { + "google.ads.googleads.v4.services.RecommendationService": { + "retry_codes": { + "idempotent": [ + "DEADLINE_EXCEEDED", + "UNAVAILABLE" + ], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 5000, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 3600000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 3600000, + "total_timeout_millis": 3600000 + } + }, + "methods": { + "GetRecommendation": { + "timeout_millis": 60000, + "retry_codes_name": "idempotent", + "retry_params_name": "default" + }, + "ApplyRecommendation": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "DismissRecommendation": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + } + } + } + } +} diff --git a/google/ads/google_ads/v4/services/remarketing_action_service_client.py b/google/ads/google_ads/v4/services/remarketing_action_service_client.py new file mode 100644 index 000000000..be6f1d601 --- /dev/null +++ b/google/ads/google_ads/v4/services/remarketing_action_service_client.py @@ -0,0 +1,297 @@ +# -*- coding: utf-8 -*- +# +# 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. + +"""Accesses the google.ads.googleads.v4.services RemarketingActionService API.""" + +import pkg_resources +import warnings + +from google.oauth2 import service_account +import google.api_core.gapic_v1.client_info +import google.api_core.gapic_v1.config +import google.api_core.gapic_v1.method +import google.api_core.gapic_v1.routing_header +import google.api_core.grpc_helpers +import google.api_core.path_template + +from google.ads.google_ads.v4.services import remarketing_action_service_client_config +from google.ads.google_ads.v4.services.transports import remarketing_action_service_grpc_transport +from google.ads.google_ads.v4.proto.services import remarketing_action_service_pb2 + + + +_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( + 'google-ads', +).version + + +class RemarketingActionServiceClient(object): + """Service to manage remarketing actions.""" + + SERVICE_ADDRESS = 'googleads.googleapis.com:443' + """The default address of the service.""" + + # The name of the interface for this client. This is the key used to + # find the method configuration in the client_config dictionary. + _INTERFACE_NAME = 'google.ads.googleads.v4.services.RemarketingActionService' + + + @classmethod + def from_service_account_file(cls, filename, *args, **kwargs): + """Creates an instance of this client using the provided credentials + file. + + Args: + filename (str): The path to the service account private key json + file. + args: Additional arguments to pass to the constructor. + kwargs: Additional arguments to pass to the constructor. + + Returns: + RemarketingActionServiceClient: The constructed client. + """ + credentials = service_account.Credentials.from_service_account_file( + filename) + kwargs['credentials'] = credentials + return cls(*args, **kwargs) + + from_service_account_json = from_service_account_file + + + @classmethod + def remarketing_action_path(cls, customer, remarketing_action): + """Return a fully-qualified remarketing_action string.""" + return google.api_core.path_template.expand( + 'customers/{customer}/remarketingActions/{remarketing_action}', + customer=customer, + remarketing_action=remarketing_action, + ) + + def __init__(self, transport=None, channel=None, credentials=None, + client_config=None, client_info=None): + """Constructor. + + Args: + transport (Union[~.RemarketingActionServiceGrpcTransport, + Callable[[~.Credentials, type], ~.RemarketingActionServiceGrpcTransport]): A transport + instance, responsible for actually making the API calls. + The default transport uses the gRPC protocol. + This argument may also be a callable which returns a + transport instance. Callables will be sent the credentials + as the first argument and the default transport class as + the second argument. + channel (grpc.Channel): DEPRECATED. A ``Channel`` instance + through which to make calls. This argument is mutually exclusive + with ``credentials``; providing both will raise an exception. + credentials (google.auth.credentials.Credentials): The + authorization credentials to attach to requests. These + credentials identify this application to the service. If none + are specified, the client will attempt to ascertain the + credentials from the environment. + This argument is mutually exclusive with providing a + transport instance to ``transport``; doing so will raise + an exception. + client_config (dict): DEPRECATED. A dictionary of call options for + each method. If not specified, the default configuration is used. + client_info (google.api_core.gapic_v1.client_info.ClientInfo): + The client info used to send a user-agent string along with + API requests. If ``None``, then default info will be used. + Generally, you only need to set this if you're developing + your own client library. + """ + # Raise deprecation warnings for things we want to go away. + if client_config is not None: + warnings.warn('The `client_config` argument is deprecated.', + PendingDeprecationWarning, stacklevel=2) + else: + client_config = remarketing_action_service_client_config.config + + if channel: + warnings.warn('The `channel` argument is deprecated; use ' + '`transport` instead.', + PendingDeprecationWarning, stacklevel=2) + + # Instantiate the transport. + # The transport is responsible for handling serialization and + # deserialization and actually sending data to the service. + if transport: + if callable(transport): + self.transport = transport( + credentials=credentials, + default_class=remarketing_action_service_grpc_transport.RemarketingActionServiceGrpcTransport, + ) + else: + if credentials: + raise ValueError( + 'Received both a transport instance and ' + 'credentials; these are mutually exclusive.' + ) + self.transport = transport + else: + self.transport = remarketing_action_service_grpc_transport.RemarketingActionServiceGrpcTransport( + address=self.SERVICE_ADDRESS, + channel=channel, + credentials=credentials, + ) + + if client_info is None: + client_info = google.api_core.gapic_v1.client_info.ClientInfo( + gapic_version=_GAPIC_LIBRARY_VERSION, + ) + else: + client_info.gapic_version = _GAPIC_LIBRARY_VERSION + self._client_info = client_info + + # Parse out the default settings for retry and timeout for each RPC + # from the client configuration. + # (Ordinarily, these are the defaults specified in the `*_config.py` + # file next to this one.) + self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( + client_config['interfaces'][self._INTERFACE_NAME], + ) + + # Save a dictionary of cached API call functions. + # These are the actual callables which invoke the proper + # transport methods, wrapped with `wrap_method` to add retry, + # timeout, and the like. + self._inner_api_calls = {} + + # Service calls + def get_remarketing_action( + self, + resource_name, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None): + """ + Returns the requested remarketing action in full detail. + + Args: + resource_name (str): Required. The resource name of the remarketing action to fetch. + retry (Optional[google.api_core.retry.Retry]): A retry object used + to retry requests. If ``None`` is specified, requests will not + be retried. + timeout (Optional[float]): The amount of time, in seconds, to wait + for the request to complete. Note that if ``retry`` is + specified, the timeout applies to each individual attempt. + metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata + that is provided to the method. + + Returns: + A :class:`~google.ads.googleads_v4.types.RemarketingAction` instance. + + Raises: + google.api_core.exceptions.GoogleAPICallError: If the request + failed for any reason. + google.api_core.exceptions.RetryError: If the request failed due + to a retryable error and retry attempts failed. + ValueError: If the parameters are invalid. + """ + # Wrap the transport method to add retry and timeout logic. + if 'get_remarketing_action' not in self._inner_api_calls: + self._inner_api_calls['get_remarketing_action'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.get_remarketing_action, + default_retry=self._method_configs['GetRemarketingAction'].retry, + default_timeout=self._method_configs['GetRemarketingAction'].timeout, + client_info=self._client_info, + ) + + request = remarketing_action_service_pb2.GetRemarketingActionRequest( + resource_name=resource_name, + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [('resource_name', resource_name)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata(routing_header) + metadata.append(routing_metadata) + + return self._inner_api_calls['get_remarketing_action'](request, retry=retry, timeout=timeout, metadata=metadata) + + def mutate_remarketing_actions( + self, + customer_id, + operations, + partial_failure=None, + validate_only=None, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None): + """ + Creates or updates remarketing actions. Operation statuses are returned. + + Args: + customer_id (str): Required. The ID of the customer whose remarketing actions are being modified. + operations (list[Union[dict, ~google.ads.googleads_v4.types.RemarketingActionOperation]]): Required. The list of operations to perform on individual remarketing actions. + + If a dict is provided, it must be of the same form as the protobuf + message :class:`~google.ads.googleads_v4.types.RemarketingActionOperation` + partial_failure (bool): If true, successful operations will be carried out and invalid + operations will return errors. If false, all operations will be carried + out in one transaction if and only if they are all valid. + Default is false. + validate_only (bool): If true, the request is validated but not executed. Only errors are + returned, not results. + retry (Optional[google.api_core.retry.Retry]): A retry object used + to retry requests. If ``None`` is specified, requests will not + be retried. + timeout (Optional[float]): The amount of time, in seconds, to wait + for the request to complete. Note that if ``retry`` is + specified, the timeout applies to each individual attempt. + metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata + that is provided to the method. + + Returns: + A :class:`~google.ads.googleads_v4.types.MutateRemarketingActionsResponse` instance. + + Raises: + google.api_core.exceptions.GoogleAPICallError: If the request + failed for any reason. + google.api_core.exceptions.RetryError: If the request failed due + to a retryable error and retry attempts failed. + ValueError: If the parameters are invalid. + """ + # Wrap the transport method to add retry and timeout logic. + if 'mutate_remarketing_actions' not in self._inner_api_calls: + self._inner_api_calls['mutate_remarketing_actions'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.mutate_remarketing_actions, + default_retry=self._method_configs['MutateRemarketingActions'].retry, + default_timeout=self._method_configs['MutateRemarketingActions'].timeout, + client_info=self._client_info, + ) + + request = remarketing_action_service_pb2.MutateRemarketingActionsRequest( + customer_id=customer_id, + operations=operations, + partial_failure=partial_failure, + validate_only=validate_only, + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [('customer_id', customer_id)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata(routing_header) + metadata.append(routing_metadata) + + return self._inner_api_calls['mutate_remarketing_actions'](request, retry=retry, timeout=timeout, metadata=metadata) diff --git a/google/ads/google_ads/v4/services/remarketing_action_service_client_config.py b/google/ads/google_ads/v4/services/remarketing_action_service_client_config.py new file mode 100644 index 000000000..09c3cb56d --- /dev/null +++ b/google/ads/google_ads/v4/services/remarketing_action_service_client_config.py @@ -0,0 +1,36 @@ +config = { + "interfaces": { + "google.ads.googleads.v4.services.RemarketingActionService": { + "retry_codes": { + "idempotent": [ + "DEADLINE_EXCEEDED", + "UNAVAILABLE" + ], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 5000, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 3600000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 3600000, + "total_timeout_millis": 3600000 + } + }, + "methods": { + "GetRemarketingAction": { + "timeout_millis": 60000, + "retry_codes_name": "idempotent", + "retry_params_name": "default" + }, + "MutateRemarketingActions": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + } + } + } + } +} diff --git a/google/ads/google_ads/v1/services/search_term_view_service_client.py b/google/ads/google_ads/v4/services/search_term_view_service_client.py similarity index 75% rename from google/ads/google_ads/v1/services/search_term_view_service_client.py rename to google/ads/google_ads/v4/services/search_term_view_service_client.py index fa3453753..6e723cbbe 100644 --- a/google/ads/google_ads/v1/services/search_term_view_service_client.py +++ b/google/ads/google_ads/v4/services/search_term_view_service_client.py @@ -13,7 +13,8 @@ # 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. -"""Accesses the google.ads.googleads.v1.services SearchTermViewService API.""" + +"""Accesses the google.ads.googleads.v4.services SearchTermViewService API.""" import pkg_resources import warnings @@ -22,15 +23,19 @@ import google.api_core.gapic_v1.client_info import google.api_core.gapic_v1.config import google.api_core.gapic_v1.method +import google.api_core.gapic_v1.routing_header import google.api_core.grpc_helpers import google.api_core.path_template -from google.ads.google_ads.v1.services import search_term_view_service_client_config -from google.ads.google_ads.v1.services.transports import search_term_view_service_grpc_transport -from google.ads.google_ads.v1.proto.services import search_term_view_service_pb2 +from google.ads.google_ads.v4.services import search_term_view_service_client_config +from google.ads.google_ads.v4.services.transports import search_term_view_service_grpc_transport +from google.ads.google_ads.v4.proto.services import search_term_view_service_pb2 + + _GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( - 'google-ads', ).version + 'google-ads', +).version class SearchTermViewServiceClient(object): @@ -41,7 +46,8 @@ class SearchTermViewServiceClient(object): # The name of the interface for this client. This is the key used to # find the method configuration in the client_config dictionary. - _INTERFACE_NAME = 'google.ads.googleads.v1.services.SearchTermViewService' + _INTERFACE_NAME = 'google.ads.googleads.v4.services.SearchTermViewService' + @classmethod def from_service_account_file(cls, filename, *args, **kwargs): @@ -64,6 +70,7 @@ def from_service_account_file(cls, filename, *args, **kwargs): from_service_account_json = from_service_account_file + @classmethod def search_term_view_path(cls, customer, search_term_view): """Return a fully-qualified search_term_view string.""" @@ -73,12 +80,8 @@ def search_term_view_path(cls, customer, search_term_view): search_term_view=search_term_view, ) - def __init__(self, - transport=None, - channel=None, - credentials=None, - client_config=None, - client_info=None): + def __init__(self, transport=None, channel=None, credentials=None, + client_config=None, client_info=None): """Constructor. Args: @@ -111,19 +114,15 @@ def __init__(self, """ # Raise deprecation warnings for things we want to go away. if client_config is not None: - warnings.warn( - 'The `client_config` argument is deprecated.', - PendingDeprecationWarning, - stacklevel=2) + warnings.warn('The `client_config` argument is deprecated.', + PendingDeprecationWarning, stacklevel=2) else: client_config = search_term_view_service_client_config.config if channel: - warnings.warn( - 'The `channel` argument is deprecated; use ' - '`transport` instead.', - PendingDeprecationWarning, - stacklevel=2) + warnings.warn('The `channel` argument is deprecated; use ' + '`transport` instead.', + PendingDeprecationWarning, stacklevel=2) # Instantiate the transport. # The transport is responsible for handling serialization and @@ -132,14 +131,14 @@ def __init__(self, if callable(transport): self.transport = transport( credentials=credentials, - default_class=search_term_view_service_grpc_transport. - SearchTermViewServiceGrpcTransport, + default_class=search_term_view_service_grpc_transport.SearchTermViewServiceGrpcTransport, ) else: if credentials: raise ValueError( 'Received both a transport instance and ' - 'credentials; these are mutually exclusive.') + 'credentials; these are mutually exclusive.' + ) self.transport = transport else: self.transport = search_term_view_service_grpc_transport.SearchTermViewServiceGrpcTransport( @@ -150,7 +149,8 @@ def __init__(self, if client_info is None: client_info = google.api_core.gapic_v1.client_info.ClientInfo( - gapic_version=_GAPIC_LIBRARY_VERSION, ) + gapic_version=_GAPIC_LIBRARY_VERSION, + ) else: client_info.gapic_version = _GAPIC_LIBRARY_VERSION self._client_info = client_info @@ -160,7 +160,8 @@ def __init__(self, # (Ordinarily, these are the defaults specified in the `*_config.py` # file next to this one.) self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( - client_config['interfaces'][self._INTERFACE_NAME], ) + client_config['interfaces'][self._INTERFACE_NAME], + ) # Save a dictionary of cached API call functions. # These are the actual callables which invoke the proper @@ -169,16 +170,17 @@ def __init__(self, self._inner_api_calls = {} # Service calls - def get_search_term_view(self, - resource_name, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): + def get_search_term_view( + self, + resource_name, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None): """ Returns the attributes of the requested search term view. Args: - resource_name (str): The resource name of the search term view to fetch. + resource_name (str): Required. The resource name of the search term view to fetch. retry (Optional[google.api_core.retry.Retry]): A retry object used to retry requests. If ``None`` is specified, requests will not be retried. @@ -189,7 +191,7 @@ def get_search_term_view(self, that is provided to the method. Returns: - A :class:`~google.ads.googleads_v1.types.SearchTermView` instance. + A :class:`~google.ads.googleads_v4.types.SearchTermView` instance. Raises: google.api_core.exceptions.GoogleAPICallError: If the request @@ -200,17 +202,25 @@ def get_search_term_view(self, """ # Wrap the transport method to add retry and timeout logic. if 'get_search_term_view' not in self._inner_api_calls: - self._inner_api_calls[ - 'get_search_term_view'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.get_search_term_view, - default_retry=self._method_configs['GetSearchTermView']. - retry, - default_timeout=self._method_configs['GetSearchTermView']. - timeout, - client_info=self._client_info, - ) + self._inner_api_calls['get_search_term_view'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.get_search_term_view, + default_retry=self._method_configs['GetSearchTermView'].retry, + default_timeout=self._method_configs['GetSearchTermView'].timeout, + client_info=self._client_info, + ) request = search_term_view_service_pb2.GetSearchTermViewRequest( - resource_name=resource_name, ) - return self._inner_api_calls['get_search_term_view']( - request, retry=retry, timeout=timeout, metadata=metadata) + resource_name=resource_name, + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [('resource_name', resource_name)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata(routing_header) + metadata.append(routing_metadata) + + return self._inner_api_calls['get_search_term_view'](request, retry=retry, timeout=timeout, metadata=metadata) diff --git a/google/ads/google_ads/v4/services/search_term_view_service_client_config.py b/google/ads/google_ads/v4/services/search_term_view_service_client_config.py new file mode 100644 index 000000000..5ea99e728 --- /dev/null +++ b/google/ads/google_ads/v4/services/search_term_view_service_client_config.py @@ -0,0 +1,31 @@ +config = { + "interfaces": { + "google.ads.googleads.v4.services.SearchTermViewService": { + "retry_codes": { + "idempotent": [ + "DEADLINE_EXCEEDED", + "UNAVAILABLE" + ], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 5000, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 3600000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 3600000, + "total_timeout_millis": 3600000 + } + }, + "methods": { + "GetSearchTermView": { + "timeout_millis": 60000, + "retry_codes_name": "idempotent", + "retry_params_name": "default" + } + } + } + } +} diff --git a/google/ads/google_ads/v4/services/shared_criterion_service_client.py b/google/ads/google_ads/v4/services/shared_criterion_service_client.py new file mode 100644 index 000000000..63b3ff585 --- /dev/null +++ b/google/ads/google_ads/v4/services/shared_criterion_service_client.py @@ -0,0 +1,297 @@ +# -*- coding: utf-8 -*- +# +# 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. + +"""Accesses the google.ads.googleads.v4.services SharedCriterionService API.""" + +import pkg_resources +import warnings + +from google.oauth2 import service_account +import google.api_core.gapic_v1.client_info +import google.api_core.gapic_v1.config +import google.api_core.gapic_v1.method +import google.api_core.gapic_v1.routing_header +import google.api_core.grpc_helpers +import google.api_core.path_template + +from google.ads.google_ads.v4.services import shared_criterion_service_client_config +from google.ads.google_ads.v4.services.transports import shared_criterion_service_grpc_transport +from google.ads.google_ads.v4.proto.services import shared_criterion_service_pb2 + + + +_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( + 'google-ads', +).version + + +class SharedCriterionServiceClient(object): + """Service to manage shared criteria.""" + + SERVICE_ADDRESS = 'googleads.googleapis.com:443' + """The default address of the service.""" + + # The name of the interface for this client. This is the key used to + # find the method configuration in the client_config dictionary. + _INTERFACE_NAME = 'google.ads.googleads.v4.services.SharedCriterionService' + + + @classmethod + def from_service_account_file(cls, filename, *args, **kwargs): + """Creates an instance of this client using the provided credentials + file. + + Args: + filename (str): The path to the service account private key json + file. + args: Additional arguments to pass to the constructor. + kwargs: Additional arguments to pass to the constructor. + + Returns: + SharedCriterionServiceClient: The constructed client. + """ + credentials = service_account.Credentials.from_service_account_file( + filename) + kwargs['credentials'] = credentials + return cls(*args, **kwargs) + + from_service_account_json = from_service_account_file + + + @classmethod + def shared_criteria_path(cls, customer, shared_criteria): + """Return a fully-qualified shared_criteria string.""" + return google.api_core.path_template.expand( + 'customers/{customer}/sharedCriteria/{shared_criteria}', + customer=customer, + shared_criteria=shared_criteria, + ) + + def __init__(self, transport=None, channel=None, credentials=None, + client_config=None, client_info=None): + """Constructor. + + Args: + transport (Union[~.SharedCriterionServiceGrpcTransport, + Callable[[~.Credentials, type], ~.SharedCriterionServiceGrpcTransport]): A transport + instance, responsible for actually making the API calls. + The default transport uses the gRPC protocol. + This argument may also be a callable which returns a + transport instance. Callables will be sent the credentials + as the first argument and the default transport class as + the second argument. + channel (grpc.Channel): DEPRECATED. A ``Channel`` instance + through which to make calls. This argument is mutually exclusive + with ``credentials``; providing both will raise an exception. + credentials (google.auth.credentials.Credentials): The + authorization credentials to attach to requests. These + credentials identify this application to the service. If none + are specified, the client will attempt to ascertain the + credentials from the environment. + This argument is mutually exclusive with providing a + transport instance to ``transport``; doing so will raise + an exception. + client_config (dict): DEPRECATED. A dictionary of call options for + each method. If not specified, the default configuration is used. + client_info (google.api_core.gapic_v1.client_info.ClientInfo): + The client info used to send a user-agent string along with + API requests. If ``None``, then default info will be used. + Generally, you only need to set this if you're developing + your own client library. + """ + # Raise deprecation warnings for things we want to go away. + if client_config is not None: + warnings.warn('The `client_config` argument is deprecated.', + PendingDeprecationWarning, stacklevel=2) + else: + client_config = shared_criterion_service_client_config.config + + if channel: + warnings.warn('The `channel` argument is deprecated; use ' + '`transport` instead.', + PendingDeprecationWarning, stacklevel=2) + + # Instantiate the transport. + # The transport is responsible for handling serialization and + # deserialization and actually sending data to the service. + if transport: + if callable(transport): + self.transport = transport( + credentials=credentials, + default_class=shared_criterion_service_grpc_transport.SharedCriterionServiceGrpcTransport, + ) + else: + if credentials: + raise ValueError( + 'Received both a transport instance and ' + 'credentials; these are mutually exclusive.' + ) + self.transport = transport + else: + self.transport = shared_criterion_service_grpc_transport.SharedCriterionServiceGrpcTransport( + address=self.SERVICE_ADDRESS, + channel=channel, + credentials=credentials, + ) + + if client_info is None: + client_info = google.api_core.gapic_v1.client_info.ClientInfo( + gapic_version=_GAPIC_LIBRARY_VERSION, + ) + else: + client_info.gapic_version = _GAPIC_LIBRARY_VERSION + self._client_info = client_info + + # Parse out the default settings for retry and timeout for each RPC + # from the client configuration. + # (Ordinarily, these are the defaults specified in the `*_config.py` + # file next to this one.) + self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( + client_config['interfaces'][self._INTERFACE_NAME], + ) + + # Save a dictionary of cached API call functions. + # These are the actual callables which invoke the proper + # transport methods, wrapped with `wrap_method` to add retry, + # timeout, and the like. + self._inner_api_calls = {} + + # Service calls + def get_shared_criterion( + self, + resource_name, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None): + """ + Returns the requested shared criterion in full detail. + + Args: + resource_name (str): Required. The resource name of the shared criterion to fetch. + retry (Optional[google.api_core.retry.Retry]): A retry object used + to retry requests. If ``None`` is specified, requests will not + be retried. + timeout (Optional[float]): The amount of time, in seconds, to wait + for the request to complete. Note that if ``retry`` is + specified, the timeout applies to each individual attempt. + metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata + that is provided to the method. + + Returns: + A :class:`~google.ads.googleads_v4.types.SharedCriterion` instance. + + Raises: + google.api_core.exceptions.GoogleAPICallError: If the request + failed for any reason. + google.api_core.exceptions.RetryError: If the request failed due + to a retryable error and retry attempts failed. + ValueError: If the parameters are invalid. + """ + # Wrap the transport method to add retry and timeout logic. + if 'get_shared_criterion' not in self._inner_api_calls: + self._inner_api_calls['get_shared_criterion'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.get_shared_criterion, + default_retry=self._method_configs['GetSharedCriterion'].retry, + default_timeout=self._method_configs['GetSharedCriterion'].timeout, + client_info=self._client_info, + ) + + request = shared_criterion_service_pb2.GetSharedCriterionRequest( + resource_name=resource_name, + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [('resource_name', resource_name)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata(routing_header) + metadata.append(routing_metadata) + + return self._inner_api_calls['get_shared_criterion'](request, retry=retry, timeout=timeout, metadata=metadata) + + def mutate_shared_criteria( + self, + customer_id, + operations, + partial_failure=None, + validate_only=None, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None): + """ + Creates or removes shared criteria. Operation statuses are returned. + + Args: + customer_id (str): Required. The ID of the customer whose shared criteria are being modified. + operations (list[Union[dict, ~google.ads.googleads_v4.types.SharedCriterionOperation]]): Required. The list of operations to perform on individual shared criteria. + + If a dict is provided, it must be of the same form as the protobuf + message :class:`~google.ads.googleads_v4.types.SharedCriterionOperation` + partial_failure (bool): If true, successful operations will be carried out and invalid + operations will return errors. If false, all operations will be carried + out in one transaction if and only if they are all valid. + Default is false. + validate_only (bool): If true, the request is validated but not executed. Only errors are + returned, not results. + retry (Optional[google.api_core.retry.Retry]): A retry object used + to retry requests. If ``None`` is specified, requests will not + be retried. + timeout (Optional[float]): The amount of time, in seconds, to wait + for the request to complete. Note that if ``retry`` is + specified, the timeout applies to each individual attempt. + metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata + that is provided to the method. + + Returns: + A :class:`~google.ads.googleads_v4.types.MutateSharedCriteriaResponse` instance. + + Raises: + google.api_core.exceptions.GoogleAPICallError: If the request + failed for any reason. + google.api_core.exceptions.RetryError: If the request failed due + to a retryable error and retry attempts failed. + ValueError: If the parameters are invalid. + """ + # Wrap the transport method to add retry and timeout logic. + if 'mutate_shared_criteria' not in self._inner_api_calls: + self._inner_api_calls['mutate_shared_criteria'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.mutate_shared_criteria, + default_retry=self._method_configs['MutateSharedCriteria'].retry, + default_timeout=self._method_configs['MutateSharedCriteria'].timeout, + client_info=self._client_info, + ) + + request = shared_criterion_service_pb2.MutateSharedCriteriaRequest( + customer_id=customer_id, + operations=operations, + partial_failure=partial_failure, + validate_only=validate_only, + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [('customer_id', customer_id)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata(routing_header) + metadata.append(routing_metadata) + + return self._inner_api_calls['mutate_shared_criteria'](request, retry=retry, timeout=timeout, metadata=metadata) diff --git a/google/ads/google_ads/v4/services/shared_criterion_service_client_config.py b/google/ads/google_ads/v4/services/shared_criterion_service_client_config.py new file mode 100644 index 000000000..7e3712f47 --- /dev/null +++ b/google/ads/google_ads/v4/services/shared_criterion_service_client_config.py @@ -0,0 +1,36 @@ +config = { + "interfaces": { + "google.ads.googleads.v4.services.SharedCriterionService": { + "retry_codes": { + "idempotent": [ + "DEADLINE_EXCEEDED", + "UNAVAILABLE" + ], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 5000, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 3600000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 3600000, + "total_timeout_millis": 3600000 + } + }, + "methods": { + "GetSharedCriterion": { + "timeout_millis": 60000, + "retry_codes_name": "idempotent", + "retry_params_name": "default" + }, + "MutateSharedCriteria": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + } + } + } + } +} diff --git a/google/ads/google_ads/v4/services/shared_set_service_client.py b/google/ads/google_ads/v4/services/shared_set_service_client.py new file mode 100644 index 000000000..b01b0bf0c --- /dev/null +++ b/google/ads/google_ads/v4/services/shared_set_service_client.py @@ -0,0 +1,297 @@ +# -*- coding: utf-8 -*- +# +# 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. + +"""Accesses the google.ads.googleads.v4.services SharedSetService API.""" + +import pkg_resources +import warnings + +from google.oauth2 import service_account +import google.api_core.gapic_v1.client_info +import google.api_core.gapic_v1.config +import google.api_core.gapic_v1.method +import google.api_core.gapic_v1.routing_header +import google.api_core.grpc_helpers +import google.api_core.path_template + +from google.ads.google_ads.v4.services import shared_set_service_client_config +from google.ads.google_ads.v4.services.transports import shared_set_service_grpc_transport +from google.ads.google_ads.v4.proto.services import shared_set_service_pb2 + + + +_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( + 'google-ads', +).version + + +class SharedSetServiceClient(object): + """Service to manage shared sets.""" + + SERVICE_ADDRESS = 'googleads.googleapis.com:443' + """The default address of the service.""" + + # The name of the interface for this client. This is the key used to + # find the method configuration in the client_config dictionary. + _INTERFACE_NAME = 'google.ads.googleads.v4.services.SharedSetService' + + + @classmethod + def from_service_account_file(cls, filename, *args, **kwargs): + """Creates an instance of this client using the provided credentials + file. + + Args: + filename (str): The path to the service account private key json + file. + args: Additional arguments to pass to the constructor. + kwargs: Additional arguments to pass to the constructor. + + Returns: + SharedSetServiceClient: The constructed client. + """ + credentials = service_account.Credentials.from_service_account_file( + filename) + kwargs['credentials'] = credentials + return cls(*args, **kwargs) + + from_service_account_json = from_service_account_file + + + @classmethod + def shared_set_path(cls, customer, shared_set): + """Return a fully-qualified shared_set string.""" + return google.api_core.path_template.expand( + 'customers/{customer}/sharedSets/{shared_set}', + customer=customer, + shared_set=shared_set, + ) + + def __init__(self, transport=None, channel=None, credentials=None, + client_config=None, client_info=None): + """Constructor. + + Args: + transport (Union[~.SharedSetServiceGrpcTransport, + Callable[[~.Credentials, type], ~.SharedSetServiceGrpcTransport]): A transport + instance, responsible for actually making the API calls. + The default transport uses the gRPC protocol. + This argument may also be a callable which returns a + transport instance. Callables will be sent the credentials + as the first argument and the default transport class as + the second argument. + channel (grpc.Channel): DEPRECATED. A ``Channel`` instance + through which to make calls. This argument is mutually exclusive + with ``credentials``; providing both will raise an exception. + credentials (google.auth.credentials.Credentials): The + authorization credentials to attach to requests. These + credentials identify this application to the service. If none + are specified, the client will attempt to ascertain the + credentials from the environment. + This argument is mutually exclusive with providing a + transport instance to ``transport``; doing so will raise + an exception. + client_config (dict): DEPRECATED. A dictionary of call options for + each method. If not specified, the default configuration is used. + client_info (google.api_core.gapic_v1.client_info.ClientInfo): + The client info used to send a user-agent string along with + API requests. If ``None``, then default info will be used. + Generally, you only need to set this if you're developing + your own client library. + """ + # Raise deprecation warnings for things we want to go away. + if client_config is not None: + warnings.warn('The `client_config` argument is deprecated.', + PendingDeprecationWarning, stacklevel=2) + else: + client_config = shared_set_service_client_config.config + + if channel: + warnings.warn('The `channel` argument is deprecated; use ' + '`transport` instead.', + PendingDeprecationWarning, stacklevel=2) + + # Instantiate the transport. + # The transport is responsible for handling serialization and + # deserialization and actually sending data to the service. + if transport: + if callable(transport): + self.transport = transport( + credentials=credentials, + default_class=shared_set_service_grpc_transport.SharedSetServiceGrpcTransport, + ) + else: + if credentials: + raise ValueError( + 'Received both a transport instance and ' + 'credentials; these are mutually exclusive.' + ) + self.transport = transport + else: + self.transport = shared_set_service_grpc_transport.SharedSetServiceGrpcTransport( + address=self.SERVICE_ADDRESS, + channel=channel, + credentials=credentials, + ) + + if client_info is None: + client_info = google.api_core.gapic_v1.client_info.ClientInfo( + gapic_version=_GAPIC_LIBRARY_VERSION, + ) + else: + client_info.gapic_version = _GAPIC_LIBRARY_VERSION + self._client_info = client_info + + # Parse out the default settings for retry and timeout for each RPC + # from the client configuration. + # (Ordinarily, these are the defaults specified in the `*_config.py` + # file next to this one.) + self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( + client_config['interfaces'][self._INTERFACE_NAME], + ) + + # Save a dictionary of cached API call functions. + # These are the actual callables which invoke the proper + # transport methods, wrapped with `wrap_method` to add retry, + # timeout, and the like. + self._inner_api_calls = {} + + # Service calls + def get_shared_set( + self, + resource_name, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None): + """ + Returns the requested shared set in full detail. + + Args: + resource_name (str): Required. The resource name of the shared set to fetch. + retry (Optional[google.api_core.retry.Retry]): A retry object used + to retry requests. If ``None`` is specified, requests will not + be retried. + timeout (Optional[float]): The amount of time, in seconds, to wait + for the request to complete. Note that if ``retry`` is + specified, the timeout applies to each individual attempt. + metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata + that is provided to the method. + + Returns: + A :class:`~google.ads.googleads_v4.types.SharedSet` instance. + + Raises: + google.api_core.exceptions.GoogleAPICallError: If the request + failed for any reason. + google.api_core.exceptions.RetryError: If the request failed due + to a retryable error and retry attempts failed. + ValueError: If the parameters are invalid. + """ + # Wrap the transport method to add retry and timeout logic. + if 'get_shared_set' not in self._inner_api_calls: + self._inner_api_calls['get_shared_set'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.get_shared_set, + default_retry=self._method_configs['GetSharedSet'].retry, + default_timeout=self._method_configs['GetSharedSet'].timeout, + client_info=self._client_info, + ) + + request = shared_set_service_pb2.GetSharedSetRequest( + resource_name=resource_name, + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [('resource_name', resource_name)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata(routing_header) + metadata.append(routing_metadata) + + return self._inner_api_calls['get_shared_set'](request, retry=retry, timeout=timeout, metadata=metadata) + + def mutate_shared_sets( + self, + customer_id, + operations, + partial_failure=None, + validate_only=None, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None): + """ + Creates, updates, or removes shared sets. Operation statuses are returned. + + Args: + customer_id (str): Required. The ID of the customer whose shared sets are being modified. + operations (list[Union[dict, ~google.ads.googleads_v4.types.SharedSetOperation]]): Required. The list of operations to perform on individual shared sets. + + If a dict is provided, it must be of the same form as the protobuf + message :class:`~google.ads.googleads_v4.types.SharedSetOperation` + partial_failure (bool): If true, successful operations will be carried out and invalid + operations will return errors. If false, all operations will be carried + out in one transaction if and only if they are all valid. + Default is false. + validate_only (bool): If true, the request is validated but not executed. Only errors are + returned, not results. + retry (Optional[google.api_core.retry.Retry]): A retry object used + to retry requests. If ``None`` is specified, requests will not + be retried. + timeout (Optional[float]): The amount of time, in seconds, to wait + for the request to complete. Note that if ``retry`` is + specified, the timeout applies to each individual attempt. + metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata + that is provided to the method. + + Returns: + A :class:`~google.ads.googleads_v4.types.MutateSharedSetsResponse` instance. + + Raises: + google.api_core.exceptions.GoogleAPICallError: If the request + failed for any reason. + google.api_core.exceptions.RetryError: If the request failed due + to a retryable error and retry attempts failed. + ValueError: If the parameters are invalid. + """ + # Wrap the transport method to add retry and timeout logic. + if 'mutate_shared_sets' not in self._inner_api_calls: + self._inner_api_calls['mutate_shared_sets'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.mutate_shared_sets, + default_retry=self._method_configs['MutateSharedSets'].retry, + default_timeout=self._method_configs['MutateSharedSets'].timeout, + client_info=self._client_info, + ) + + request = shared_set_service_pb2.MutateSharedSetsRequest( + customer_id=customer_id, + operations=operations, + partial_failure=partial_failure, + validate_only=validate_only, + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [('customer_id', customer_id)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata(routing_header) + metadata.append(routing_metadata) + + return self._inner_api_calls['mutate_shared_sets'](request, retry=retry, timeout=timeout, metadata=metadata) diff --git a/google/ads/google_ads/v4/services/shared_set_service_client_config.py b/google/ads/google_ads/v4/services/shared_set_service_client_config.py new file mode 100644 index 000000000..503fe0335 --- /dev/null +++ b/google/ads/google_ads/v4/services/shared_set_service_client_config.py @@ -0,0 +1,36 @@ +config = { + "interfaces": { + "google.ads.googleads.v4.services.SharedSetService": { + "retry_codes": { + "idempotent": [ + "DEADLINE_EXCEEDED", + "UNAVAILABLE" + ], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 5000, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 3600000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 3600000, + "total_timeout_millis": 3600000 + } + }, + "methods": { + "GetSharedSet": { + "timeout_millis": 60000, + "retry_codes_name": "idempotent", + "retry_params_name": "default" + }, + "MutateSharedSets": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + } + } + } + } +} diff --git a/google/ads/google_ads/v1/services/shopping_performance_view_service_client.py b/google/ads/google_ads/v4/services/shopping_performance_view_service_client.py similarity index 77% rename from google/ads/google_ads/v1/services/shopping_performance_view_service_client.py rename to google/ads/google_ads/v4/services/shopping_performance_view_service_client.py index 0c089589d..dbe869c09 100644 --- a/google/ads/google_ads/v1/services/shopping_performance_view_service_client.py +++ b/google/ads/google_ads/v4/services/shopping_performance_view_service_client.py @@ -13,7 +13,8 @@ # 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. -"""Accesses the google.ads.googleads.v1.services ShoppingPerformanceViewService API.""" + +"""Accesses the google.ads.googleads.v4.services ShoppingPerformanceViewService API.""" import pkg_resources import warnings @@ -22,15 +23,19 @@ import google.api_core.gapic_v1.client_info import google.api_core.gapic_v1.config import google.api_core.gapic_v1.method +import google.api_core.gapic_v1.routing_header import google.api_core.grpc_helpers import google.api_core.path_template -from google.ads.google_ads.v1.services import shopping_performance_view_service_client_config -from google.ads.google_ads.v1.services.transports import shopping_performance_view_service_grpc_transport -from google.ads.google_ads.v1.proto.services import shopping_performance_view_service_pb2 +from google.ads.google_ads.v4.services import shopping_performance_view_service_client_config +from google.ads.google_ads.v4.services.transports import shopping_performance_view_service_grpc_transport +from google.ads.google_ads.v4.proto.services import shopping_performance_view_service_pb2 + + _GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( - 'google-ads', ).version + 'google-ads', +).version class ShoppingPerformanceViewServiceClient(object): @@ -41,7 +46,8 @@ class ShoppingPerformanceViewServiceClient(object): # The name of the interface for this client. This is the key used to # find the method configuration in the client_config dictionary. - _INTERFACE_NAME = 'google.ads.googleads.v1.services.ShoppingPerformanceViewService' + _INTERFACE_NAME = 'google.ads.googleads.v4.services.ShoppingPerformanceViewService' + @classmethod def from_service_account_file(cls, filename, *args, **kwargs): @@ -64,6 +70,7 @@ def from_service_account_file(cls, filename, *args, **kwargs): from_service_account_json = from_service_account_file + @classmethod def shopping_performance_view_path(cls, customer): """Return a fully-qualified shopping_performance_view string.""" @@ -72,12 +79,8 @@ def shopping_performance_view_path(cls, customer): customer=customer, ) - def __init__(self, - transport=None, - channel=None, - credentials=None, - client_config=None, - client_info=None): + def __init__(self, transport=None, channel=None, credentials=None, + client_config=None, client_info=None): """Constructor. Args: @@ -110,19 +113,15 @@ def __init__(self, """ # Raise deprecation warnings for things we want to go away. if client_config is not None: - warnings.warn( - 'The `client_config` argument is deprecated.', - PendingDeprecationWarning, - stacklevel=2) + warnings.warn('The `client_config` argument is deprecated.', + PendingDeprecationWarning, stacklevel=2) else: client_config = shopping_performance_view_service_client_config.config if channel: - warnings.warn( - 'The `channel` argument is deprecated; use ' - '`transport` instead.', - PendingDeprecationWarning, - stacklevel=2) + warnings.warn('The `channel` argument is deprecated; use ' + '`transport` instead.', + PendingDeprecationWarning, stacklevel=2) # Instantiate the transport. # The transport is responsible for handling serialization and @@ -131,15 +130,14 @@ def __init__(self, if callable(transport): self.transport = transport( credentials=credentials, - default_class= - shopping_performance_view_service_grpc_transport. - ShoppingPerformanceViewServiceGrpcTransport, + default_class=shopping_performance_view_service_grpc_transport.ShoppingPerformanceViewServiceGrpcTransport, ) else: if credentials: raise ValueError( 'Received both a transport instance and ' - 'credentials; these are mutually exclusive.') + 'credentials; these are mutually exclusive.' + ) self.transport = transport else: self.transport = shopping_performance_view_service_grpc_transport.ShoppingPerformanceViewServiceGrpcTransport( @@ -150,7 +148,8 @@ def __init__(self, if client_info is None: client_info = google.api_core.gapic_v1.client_info.ClientInfo( - gapic_version=_GAPIC_LIBRARY_VERSION, ) + gapic_version=_GAPIC_LIBRARY_VERSION, + ) else: client_info.gapic_version = _GAPIC_LIBRARY_VERSION self._client_info = client_info @@ -160,7 +159,8 @@ def __init__(self, # (Ordinarily, these are the defaults specified in the `*_config.py` # file next to this one.) self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( - client_config['interfaces'][self._INTERFACE_NAME], ) + client_config['interfaces'][self._INTERFACE_NAME], + ) # Save a dictionary of cached API call functions. # These are the actual callables which invoke the proper @@ -179,7 +179,7 @@ def get_shopping_performance_view( Returns the requested Shopping performance view in full detail. Args: - resource_name (str): The resource name of the Shopping performance view to fetch. + resource_name (str): Required. The resource name of the Shopping performance view to fetch. retry (Optional[google.api_core.retry.Retry]): A retry object used to retry requests. If ``None`` is specified, requests will not be retried. @@ -190,7 +190,7 @@ def get_shopping_performance_view( that is provided to the method. Returns: - A :class:`~google.ads.googleads_v1.types.ShoppingPerformanceView` instance. + A :class:`~google.ads.googleads_v4.types.ShoppingPerformanceView` instance. Raises: google.api_core.exceptions.GoogleAPICallError: If the request @@ -201,17 +201,25 @@ def get_shopping_performance_view( """ # Wrap the transport method to add retry and timeout logic. if 'get_shopping_performance_view' not in self._inner_api_calls: - self._inner_api_calls[ - 'get_shopping_performance_view'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.get_shopping_performance_view, - default_retry=self. - _method_configs['GetShoppingPerformanceView'].retry, - default_timeout=self. - _method_configs['GetShoppingPerformanceView'].timeout, - client_info=self._client_info, - ) + self._inner_api_calls['get_shopping_performance_view'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.get_shopping_performance_view, + default_retry=self._method_configs['GetShoppingPerformanceView'].retry, + default_timeout=self._method_configs['GetShoppingPerformanceView'].timeout, + client_info=self._client_info, + ) request = shopping_performance_view_service_pb2.GetShoppingPerformanceViewRequest( - resource_name=resource_name, ) - return self._inner_api_calls['get_shopping_performance_view']( - request, retry=retry, timeout=timeout, metadata=metadata) + resource_name=resource_name, + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [('resource_name', resource_name)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata(routing_header) + metadata.append(routing_metadata) + + return self._inner_api_calls['get_shopping_performance_view'](request, retry=retry, timeout=timeout, metadata=metadata) diff --git a/google/ads/google_ads/v4/services/shopping_performance_view_service_client_config.py b/google/ads/google_ads/v4/services/shopping_performance_view_service_client_config.py new file mode 100644 index 000000000..760b8dbc3 --- /dev/null +++ b/google/ads/google_ads/v4/services/shopping_performance_view_service_client_config.py @@ -0,0 +1,31 @@ +config = { + "interfaces": { + "google.ads.googleads.v4.services.ShoppingPerformanceViewService": { + "retry_codes": { + "idempotent": [ + "DEADLINE_EXCEEDED", + "UNAVAILABLE" + ], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 5000, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 3600000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 3600000, + "total_timeout_millis": 3600000 + } + }, + "methods": { + "GetShoppingPerformanceView": { + "timeout_millis": 60000, + "retry_codes_name": "idempotent", + "retry_params_name": "default" + } + } + } + } +} diff --git a/google/ads/google_ads/v4/services/third_party_app_analytics_link_service_client.py b/google/ads/google_ads/v4/services/third_party_app_analytics_link_service_client.py new file mode 100644 index 000000000..0583dcce0 --- /dev/null +++ b/google/ads/google_ads/v4/services/third_party_app_analytics_link_service_client.py @@ -0,0 +1,229 @@ +# -*- coding: utf-8 -*- +# +# 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. + +"""Accesses the google.ads.googleads.v4.services ThirdPartyAppAnalyticsLinkService API.""" + +import pkg_resources +import warnings + +from google.oauth2 import service_account +import google.api_core.gapic_v1.client_info +import google.api_core.gapic_v1.config +import google.api_core.gapic_v1.method +import google.api_core.gapic_v1.routing_header +import google.api_core.grpc_helpers +import google.api_core.path_template + +from google.ads.google_ads.v4.services import third_party_app_analytics_link_service_client_config +from google.ads.google_ads.v4.services.transports import third_party_app_analytics_link_service_grpc_transport +from google.ads.google_ads.v4.proto.services import third_party_app_analytics_link_service_pb2 + + + +_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( + 'google-ads', +).version + + +class ThirdPartyAppAnalyticsLinkServiceClient(object): + """ + This service allows management of links between Google Ads and third party + app analytics. + """ + + SERVICE_ADDRESS = 'googleads.googleapis.com:443' + """The default address of the service.""" + + # The name of the interface for this client. This is the key used to + # find the method configuration in the client_config dictionary. + _INTERFACE_NAME = 'google.ads.googleads.v4.services.ThirdPartyAppAnalyticsLinkService' + + + @classmethod + def from_service_account_file(cls, filename, *args, **kwargs): + """Creates an instance of this client using the provided credentials + file. + + Args: + filename (str): The path to the service account private key json + file. + args: Additional arguments to pass to the constructor. + kwargs: Additional arguments to pass to the constructor. + + Returns: + ThirdPartyAppAnalyticsLinkServiceClient: The constructed client. + """ + credentials = service_account.Credentials.from_service_account_file( + filename) + kwargs['credentials'] = credentials + return cls(*args, **kwargs) + + from_service_account_json = from_service_account_file + + + @classmethod + def third_party_app_analytics_link_path(cls, customer, third_party_app_analytics_link): + """Return a fully-qualified third_party_app_analytics_link string.""" + return google.api_core.path_template.expand( + 'customers/{customer}/thirdPartyAppAnalyticsLinks/{third_party_app_analytics_link}', + customer=customer, + third_party_app_analytics_link=third_party_app_analytics_link, + ) + + def __init__(self, transport=None, channel=None, credentials=None, + client_config=None, client_info=None): + """Constructor. + + Args: + transport (Union[~.ThirdPartyAppAnalyticsLinkServiceGrpcTransport, + Callable[[~.Credentials, type], ~.ThirdPartyAppAnalyticsLinkServiceGrpcTransport]): A transport + instance, responsible for actually making the API calls. + The default transport uses the gRPC protocol. + This argument may also be a callable which returns a + transport instance. Callables will be sent the credentials + as the first argument and the default transport class as + the second argument. + channel (grpc.Channel): DEPRECATED. A ``Channel`` instance + through which to make calls. This argument is mutually exclusive + with ``credentials``; providing both will raise an exception. + credentials (google.auth.credentials.Credentials): The + authorization credentials to attach to requests. These + credentials identify this application to the service. If none + are specified, the client will attempt to ascertain the + credentials from the environment. + This argument is mutually exclusive with providing a + transport instance to ``transport``; doing so will raise + an exception. + client_config (dict): DEPRECATED. A dictionary of call options for + each method. If not specified, the default configuration is used. + client_info (google.api_core.gapic_v1.client_info.ClientInfo): + The client info used to send a user-agent string along with + API requests. If ``None``, then default info will be used. + Generally, you only need to set this if you're developing + your own client library. + """ + # Raise deprecation warnings for things we want to go away. + if client_config is not None: + warnings.warn('The `client_config` argument is deprecated.', + PendingDeprecationWarning, stacklevel=2) + else: + client_config = third_party_app_analytics_link_service_client_config.config + + if channel: + warnings.warn('The `channel` argument is deprecated; use ' + '`transport` instead.', + PendingDeprecationWarning, stacklevel=2) + + # Instantiate the transport. + # The transport is responsible for handling serialization and + # deserialization and actually sending data to the service. + if transport: + if callable(transport): + self.transport = transport( + credentials=credentials, + default_class=third_party_app_analytics_link_service_grpc_transport.ThirdPartyAppAnalyticsLinkServiceGrpcTransport, + ) + else: + if credentials: + raise ValueError( + 'Received both a transport instance and ' + 'credentials; these are mutually exclusive.' + ) + self.transport = transport + else: + self.transport = third_party_app_analytics_link_service_grpc_transport.ThirdPartyAppAnalyticsLinkServiceGrpcTransport( + address=self.SERVICE_ADDRESS, + channel=channel, + credentials=credentials, + ) + + if client_info is None: + client_info = google.api_core.gapic_v1.client_info.ClientInfo( + gapic_version=_GAPIC_LIBRARY_VERSION, + ) + else: + client_info.gapic_version = _GAPIC_LIBRARY_VERSION + self._client_info = client_info + + # Parse out the default settings for retry and timeout for each RPC + # from the client configuration. + # (Ordinarily, these are the defaults specified in the `*_config.py` + # file next to this one.) + self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( + client_config['interfaces'][self._INTERFACE_NAME], + ) + + # Save a dictionary of cached API call functions. + # These are the actual callables which invoke the proper + # transport methods, wrapped with `wrap_method` to add retry, + # timeout, and the like. + self._inner_api_calls = {} + + # Service calls + def get_third_party_app_analytics_link( + self, + resource_name, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None): + """ + Returns the third party app analytics link in full detail. + + Args: + resource_name (str): Resource name of the third party app analytics link. + retry (Optional[google.api_core.retry.Retry]): A retry object used + to retry requests. If ``None`` is specified, requests will not + be retried. + timeout (Optional[float]): The amount of time, in seconds, to wait + for the request to complete. Note that if ``retry`` is + specified, the timeout applies to each individual attempt. + metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata + that is provided to the method. + + Returns: + A :class:`~google.ads.googleads_v4.types.ThirdPartyAppAnalyticsLink` instance. + + Raises: + google.api_core.exceptions.GoogleAPICallError: If the request + failed for any reason. + google.api_core.exceptions.RetryError: If the request failed due + to a retryable error and retry attempts failed. + ValueError: If the parameters are invalid. + """ + # Wrap the transport method to add retry and timeout logic. + if 'get_third_party_app_analytics_link' not in self._inner_api_calls: + self._inner_api_calls['get_third_party_app_analytics_link'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.get_third_party_app_analytics_link, + default_retry=self._method_configs['GetThirdPartyAppAnalyticsLink'].retry, + default_timeout=self._method_configs['GetThirdPartyAppAnalyticsLink'].timeout, + client_info=self._client_info, + ) + + request = third_party_app_analytics_link_service_pb2.GetThirdPartyAppAnalyticsLinkRequest( + resource_name=resource_name, + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [('resource_name', resource_name)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata(routing_header) + metadata.append(routing_metadata) + + return self._inner_api_calls['get_third_party_app_analytics_link'](request, retry=retry, timeout=timeout, metadata=metadata) diff --git a/google/ads/google_ads/v4/services/third_party_app_analytics_link_service_client_config.py b/google/ads/google_ads/v4/services/third_party_app_analytics_link_service_client_config.py new file mode 100644 index 000000000..2a6ad7489 --- /dev/null +++ b/google/ads/google_ads/v4/services/third_party_app_analytics_link_service_client_config.py @@ -0,0 +1,31 @@ +config = { + "interfaces": { + "google.ads.googleads.v4.services.ThirdPartyAppAnalyticsLinkService": { + "retry_codes": { + "idempotent": [ + "DEADLINE_EXCEEDED", + "UNAVAILABLE" + ], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 5000, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 3600000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 3600000, + "total_timeout_millis": 3600000 + } + }, + "methods": { + "GetThirdPartyAppAnalyticsLink": { + "timeout_millis": 600000, + "retry_codes_name": "idempotent", + "retry_params_name": "default" + } + } + } + } +} diff --git a/google/ads/google_ads/v1/services/topic_constant_service_client.py b/google/ads/google_ads/v4/services/topic_constant_service_client.py similarity index 75% rename from google/ads/google_ads/v1/services/topic_constant_service_client.py rename to google/ads/google_ads/v4/services/topic_constant_service_client.py index 16c3e2d00..06c322bab 100644 --- a/google/ads/google_ads/v1/services/topic_constant_service_client.py +++ b/google/ads/google_ads/v4/services/topic_constant_service_client.py @@ -13,7 +13,8 @@ # 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. -"""Accesses the google.ads.googleads.v1.services TopicConstantService API.""" + +"""Accesses the google.ads.googleads.v4.services TopicConstantService API.""" import pkg_resources import warnings @@ -22,15 +23,19 @@ import google.api_core.gapic_v1.client_info import google.api_core.gapic_v1.config import google.api_core.gapic_v1.method +import google.api_core.gapic_v1.routing_header import google.api_core.grpc_helpers import google.api_core.path_template -from google.ads.google_ads.v1.services import topic_constant_service_client_config -from google.ads.google_ads.v1.services.transports import topic_constant_service_grpc_transport -from google.ads.google_ads.v1.proto.services import topic_constant_service_pb2 +from google.ads.google_ads.v4.services import topic_constant_service_client_config +from google.ads.google_ads.v4.services.transports import topic_constant_service_grpc_transport +from google.ads.google_ads.v4.proto.services import topic_constant_service_pb2 + + _GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( - 'google-ads', ).version + 'google-ads', +).version class TopicConstantServiceClient(object): @@ -41,7 +46,8 @@ class TopicConstantServiceClient(object): # The name of the interface for this client. This is the key used to # find the method configuration in the client_config dictionary. - _INTERFACE_NAME = 'google.ads.googleads.v1.services.TopicConstantService' + _INTERFACE_NAME = 'google.ads.googleads.v4.services.TopicConstantService' + @classmethod def from_service_account_file(cls, filename, *args, **kwargs): @@ -64,6 +70,7 @@ def from_service_account_file(cls, filename, *args, **kwargs): from_service_account_json = from_service_account_file + @classmethod def topic_constant_path(cls, topic_constant): """Return a fully-qualified topic_constant string.""" @@ -72,12 +79,8 @@ def topic_constant_path(cls, topic_constant): topic_constant=topic_constant, ) - def __init__(self, - transport=None, - channel=None, - credentials=None, - client_config=None, - client_info=None): + def __init__(self, transport=None, channel=None, credentials=None, + client_config=None, client_info=None): """Constructor. Args: @@ -110,19 +113,15 @@ def __init__(self, """ # Raise deprecation warnings for things we want to go away. if client_config is not None: - warnings.warn( - 'The `client_config` argument is deprecated.', - PendingDeprecationWarning, - stacklevel=2) + warnings.warn('The `client_config` argument is deprecated.', + PendingDeprecationWarning, stacklevel=2) else: client_config = topic_constant_service_client_config.config if channel: - warnings.warn( - 'The `channel` argument is deprecated; use ' - '`transport` instead.', - PendingDeprecationWarning, - stacklevel=2) + warnings.warn('The `channel` argument is deprecated; use ' + '`transport` instead.', + PendingDeprecationWarning, stacklevel=2) # Instantiate the transport. # The transport is responsible for handling serialization and @@ -131,14 +130,14 @@ def __init__(self, if callable(transport): self.transport = transport( credentials=credentials, - default_class=topic_constant_service_grpc_transport. - TopicConstantServiceGrpcTransport, + default_class=topic_constant_service_grpc_transport.TopicConstantServiceGrpcTransport, ) else: if credentials: raise ValueError( 'Received both a transport instance and ' - 'credentials; these are mutually exclusive.') + 'credentials; these are mutually exclusive.' + ) self.transport = transport else: self.transport = topic_constant_service_grpc_transport.TopicConstantServiceGrpcTransport( @@ -149,7 +148,8 @@ def __init__(self, if client_info is None: client_info = google.api_core.gapic_v1.client_info.ClientInfo( - gapic_version=_GAPIC_LIBRARY_VERSION, ) + gapic_version=_GAPIC_LIBRARY_VERSION, + ) else: client_info.gapic_version = _GAPIC_LIBRARY_VERSION self._client_info = client_info @@ -159,7 +159,8 @@ def __init__(self, # (Ordinarily, these are the defaults specified in the `*_config.py` # file next to this one.) self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( - client_config['interfaces'][self._INTERFACE_NAME], ) + client_config['interfaces'][self._INTERFACE_NAME], + ) # Save a dictionary of cached API call functions. # These are the actual callables which invoke the proper @@ -168,16 +169,17 @@ def __init__(self, self._inner_api_calls = {} # Service calls - def get_topic_constant(self, - resource_name, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): + def get_topic_constant( + self, + resource_name, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None): """ Returns the requested topic constant in full detail. Args: - resource_name (str): Resource name of the Topic to fetch. + resource_name (str): Required. Resource name of the Topic to fetch. retry (Optional[google.api_core.retry.Retry]): A retry object used to retry requests. If ``None`` is specified, requests will not be retried. @@ -188,7 +190,7 @@ def get_topic_constant(self, that is provided to the method. Returns: - A :class:`~google.ads.googleads_v1.types.TopicConstant` instance. + A :class:`~google.ads.googleads_v4.types.TopicConstant` instance. Raises: google.api_core.exceptions.GoogleAPICallError: If the request @@ -199,17 +201,25 @@ def get_topic_constant(self, """ # Wrap the transport method to add retry and timeout logic. if 'get_topic_constant' not in self._inner_api_calls: - self._inner_api_calls[ - 'get_topic_constant'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.get_topic_constant, - default_retry=self._method_configs['GetTopicConstant']. - retry, - default_timeout=self._method_configs['GetTopicConstant']. - timeout, - client_info=self._client_info, - ) + self._inner_api_calls['get_topic_constant'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.get_topic_constant, + default_retry=self._method_configs['GetTopicConstant'].retry, + default_timeout=self._method_configs['GetTopicConstant'].timeout, + client_info=self._client_info, + ) request = topic_constant_service_pb2.GetTopicConstantRequest( - resource_name=resource_name, ) - return self._inner_api_calls['get_topic_constant']( - request, retry=retry, timeout=timeout, metadata=metadata) + resource_name=resource_name, + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [('resource_name', resource_name)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata(routing_header) + metadata.append(routing_metadata) + + return self._inner_api_calls['get_topic_constant'](request, retry=retry, timeout=timeout, metadata=metadata) diff --git a/google/ads/google_ads/v4/services/topic_constant_service_client_config.py b/google/ads/google_ads/v4/services/topic_constant_service_client_config.py new file mode 100644 index 000000000..031037a27 --- /dev/null +++ b/google/ads/google_ads/v4/services/topic_constant_service_client_config.py @@ -0,0 +1,31 @@ +config = { + "interfaces": { + "google.ads.googleads.v4.services.TopicConstantService": { + "retry_codes": { + "idempotent": [ + "DEADLINE_EXCEEDED", + "UNAVAILABLE" + ], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 5000, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 3600000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 3600000, + "total_timeout_millis": 3600000 + } + }, + "methods": { + "GetTopicConstant": { + "timeout_millis": 60000, + "retry_codes_name": "idempotent", + "retry_params_name": "default" + } + } + } + } +} diff --git a/google/ads/google_ads/v1/services/topic_view_service_client.py b/google/ads/google_ads/v4/services/topic_view_service_client.py similarity index 76% rename from google/ads/google_ads/v1/services/topic_view_service_client.py rename to google/ads/google_ads/v4/services/topic_view_service_client.py index 0637eeb75..713bdcfc7 100644 --- a/google/ads/google_ads/v1/services/topic_view_service_client.py +++ b/google/ads/google_ads/v4/services/topic_view_service_client.py @@ -13,7 +13,8 @@ # 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. -"""Accesses the google.ads.googleads.v1.services TopicViewService API.""" + +"""Accesses the google.ads.googleads.v4.services TopicViewService API.""" import pkg_resources import warnings @@ -22,15 +23,19 @@ import google.api_core.gapic_v1.client_info import google.api_core.gapic_v1.config import google.api_core.gapic_v1.method +import google.api_core.gapic_v1.routing_header import google.api_core.grpc_helpers import google.api_core.path_template -from google.ads.google_ads.v1.services import topic_view_service_client_config -from google.ads.google_ads.v1.services.transports import topic_view_service_grpc_transport -from google.ads.google_ads.v1.proto.services import topic_view_service_pb2 +from google.ads.google_ads.v4.services import topic_view_service_client_config +from google.ads.google_ads.v4.services.transports import topic_view_service_grpc_transport +from google.ads.google_ads.v4.proto.services import topic_view_service_pb2 + + _GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( - 'google-ads', ).version + 'google-ads', +).version class TopicViewServiceClient(object): @@ -41,7 +46,8 @@ class TopicViewServiceClient(object): # The name of the interface for this client. This is the key used to # find the method configuration in the client_config dictionary. - _INTERFACE_NAME = 'google.ads.googleads.v1.services.TopicViewService' + _INTERFACE_NAME = 'google.ads.googleads.v4.services.TopicViewService' + @classmethod def from_service_account_file(cls, filename, *args, **kwargs): @@ -64,6 +70,7 @@ def from_service_account_file(cls, filename, *args, **kwargs): from_service_account_json = from_service_account_file + @classmethod def topic_view_path(cls, customer, topic_view): """Return a fully-qualified topic_view string.""" @@ -73,12 +80,8 @@ def topic_view_path(cls, customer, topic_view): topic_view=topic_view, ) - def __init__(self, - transport=None, - channel=None, - credentials=None, - client_config=None, - client_info=None): + def __init__(self, transport=None, channel=None, credentials=None, + client_config=None, client_info=None): """Constructor. Args: @@ -111,19 +114,15 @@ def __init__(self, """ # Raise deprecation warnings for things we want to go away. if client_config is not None: - warnings.warn( - 'The `client_config` argument is deprecated.', - PendingDeprecationWarning, - stacklevel=2) + warnings.warn('The `client_config` argument is deprecated.', + PendingDeprecationWarning, stacklevel=2) else: client_config = topic_view_service_client_config.config if channel: - warnings.warn( - 'The `channel` argument is deprecated; use ' - '`transport` instead.', - PendingDeprecationWarning, - stacklevel=2) + warnings.warn('The `channel` argument is deprecated; use ' + '`transport` instead.', + PendingDeprecationWarning, stacklevel=2) # Instantiate the transport. # The transport is responsible for handling serialization and @@ -132,14 +131,14 @@ def __init__(self, if callable(transport): self.transport = transport( credentials=credentials, - default_class=topic_view_service_grpc_transport. - TopicViewServiceGrpcTransport, + default_class=topic_view_service_grpc_transport.TopicViewServiceGrpcTransport, ) else: if credentials: raise ValueError( 'Received both a transport instance and ' - 'credentials; these are mutually exclusive.') + 'credentials; these are mutually exclusive.' + ) self.transport = transport else: self.transport = topic_view_service_grpc_transport.TopicViewServiceGrpcTransport( @@ -150,7 +149,8 @@ def __init__(self, if client_info is None: client_info = google.api_core.gapic_v1.client_info.ClientInfo( - gapic_version=_GAPIC_LIBRARY_VERSION, ) + gapic_version=_GAPIC_LIBRARY_VERSION, + ) else: client_info.gapic_version = _GAPIC_LIBRARY_VERSION self._client_info = client_info @@ -160,7 +160,8 @@ def __init__(self, # (Ordinarily, these are the defaults specified in the `*_config.py` # file next to this one.) self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( - client_config['interfaces'][self._INTERFACE_NAME], ) + client_config['interfaces'][self._INTERFACE_NAME], + ) # Save a dictionary of cached API call functions. # These are the actual callables which invoke the proper @@ -169,16 +170,17 @@ def __init__(self, self._inner_api_calls = {} # Service calls - def get_topic_view(self, - resource_name, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): + def get_topic_view( + self, + resource_name, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None): """ Returns the requested topic view in full detail. Args: - resource_name (str): The resource name of the topic view to fetch. + resource_name (str): Required. The resource name of the topic view to fetch. retry (Optional[google.api_core.retry.Retry]): A retry object used to retry requests. If ``None`` is specified, requests will not be retried. @@ -189,7 +191,7 @@ def get_topic_view(self, that is provided to the method. Returns: - A :class:`~google.ads.googleads_v1.types.TopicView` instance. + A :class:`~google.ads.googleads_v4.types.TopicView` instance. Raises: google.api_core.exceptions.GoogleAPICallError: If the request @@ -200,16 +202,25 @@ def get_topic_view(self, """ # Wrap the transport method to add retry and timeout logic. if 'get_topic_view' not in self._inner_api_calls: - self._inner_api_calls[ - 'get_topic_view'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.get_topic_view, - default_retry=self._method_configs['GetTopicView'].retry, - default_timeout=self._method_configs['GetTopicView']. - timeout, - client_info=self._client_info, - ) + self._inner_api_calls['get_topic_view'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.get_topic_view, + default_retry=self._method_configs['GetTopicView'].retry, + default_timeout=self._method_configs['GetTopicView'].timeout, + client_info=self._client_info, + ) request = topic_view_service_pb2.GetTopicViewRequest( - resource_name=resource_name, ) - return self._inner_api_calls['get_topic_view']( - request, retry=retry, timeout=timeout, metadata=metadata) + resource_name=resource_name, + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [('resource_name', resource_name)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata(routing_header) + metadata.append(routing_metadata) + + return self._inner_api_calls['get_topic_view'](request, retry=retry, timeout=timeout, metadata=metadata) diff --git a/google/ads/google_ads/v4/services/topic_view_service_client_config.py b/google/ads/google_ads/v4/services/topic_view_service_client_config.py new file mode 100644 index 000000000..8732ac75a --- /dev/null +++ b/google/ads/google_ads/v4/services/topic_view_service_client_config.py @@ -0,0 +1,31 @@ +config = { + "interfaces": { + "google.ads.googleads.v4.services.TopicViewService": { + "retry_codes": { + "idempotent": [ + "DEADLINE_EXCEEDED", + "UNAVAILABLE" + ], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 5000, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 3600000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 3600000, + "total_timeout_millis": 3600000 + } + }, + "methods": { + "GetTopicView": { + "timeout_millis": 60000, + "retry_codes_name": "idempotent", + "retry_params_name": "default" + } + } + } + } +} diff --git a/google/ads/google_ads/v1/services/transports/__init__.py b/google/ads/google_ads/v4/services/transports/__init__.py similarity index 100% rename from google/ads/google_ads/v1/services/transports/__init__.py rename to google/ads/google_ads/v4/services/transports/__init__.py diff --git a/google/ads/google_ads/v1/services/transports/account_budget_proposal_service_grpc_transport.py b/google/ads/google_ads/v4/services/transports/account_budget_proposal_service_grpc_transport.py similarity index 90% rename from google/ads/google_ads/v1/services/transports/account_budget_proposal_service_grpc_transport.py rename to google/ads/google_ads/v4/services/transports/account_budget_proposal_service_grpc_transport.py index c58eddad1..21f2f615f 100644 --- a/google/ads/google_ads/v1/services/transports/account_budget_proposal_service_grpc_transport.py +++ b/google/ads/google_ads/v4/services/transports/account_budget_proposal_service_grpc_transport.py @@ -14,14 +14,15 @@ # See the License for the specific language governing permissions and # limitations under the License. + import google.api_core.grpc_helpers -from google.ads.google_ads.v1.proto.services import account_budget_proposal_service_pb2_grpc +from google.ads.google_ads.v4.proto.services import account_budget_proposal_service_pb2_grpc class AccountBudgetProposalServiceGrpcTransport(object): """gRPC transport class providing stubs for - google.ads.googleads.v1.services AccountBudgetProposalService API. + google.ads.googleads.v4.services AccountBudgetProposalService API. The transport provides access to the raw gRPC stubs, which can be used to take advantage of advanced @@ -29,11 +30,10 @@ class AccountBudgetProposalServiceGrpcTransport(object): """ # The scopes needed to make gRPC calls to all of the methods defined # in this service. - _OAUTH_SCOPES = () + _OAUTH_SCOPES = ( + ) - def __init__(self, - channel=None, - credentials=None, + def __init__(self, channel=None, credentials=None, address='googleads.googleapis.com:443'): """Instantiate the transport class. @@ -53,7 +53,8 @@ def __init__(self, if channel is not None and credentials is not None: raise ValueError( 'The `channel` and `credentials` arguments are mutually ' - 'exclusive.', ) + 'exclusive.', + ) # Create the channel. if channel is None: @@ -119,8 +120,7 @@ def get_account_budget_proposal(self): deserialized request object and returns a deserialized response object. """ - return self._stubs[ - 'account_budget_proposal_service_stub'].GetAccountBudgetProposal + return self._stubs['account_budget_proposal_service_stub'].GetAccountBudgetProposal @property def mutate_account_budget_proposal(self): @@ -134,5 +134,4 @@ def mutate_account_budget_proposal(self): deserialized request object and returns a deserialized response object. """ - return self._stubs[ - 'account_budget_proposal_service_stub'].MutateAccountBudgetProposal + return self._stubs['account_budget_proposal_service_stub'].MutateAccountBudgetProposal \ No newline at end of file diff --git a/google/ads/google_ads/v1/services/transports/account_budget_service_grpc_transport.py b/google/ads/google_ads/v4/services/transports/account_budget_service_grpc_transport.py similarity index 93% rename from google/ads/google_ads/v1/services/transports/account_budget_service_grpc_transport.py rename to google/ads/google_ads/v4/services/transports/account_budget_service_grpc_transport.py index eb1cf53a9..6d74fe678 100644 --- a/google/ads/google_ads/v1/services/transports/account_budget_service_grpc_transport.py +++ b/google/ads/google_ads/v4/services/transports/account_budget_service_grpc_transport.py @@ -14,14 +14,15 @@ # See the License for the specific language governing permissions and # limitations under the License. + import google.api_core.grpc_helpers -from google.ads.google_ads.v1.proto.services import account_budget_service_pb2_grpc +from google.ads.google_ads.v4.proto.services import account_budget_service_pb2_grpc class AccountBudgetServiceGrpcTransport(object): """gRPC transport class providing stubs for - google.ads.googleads.v1.services AccountBudgetService API. + google.ads.googleads.v4.services AccountBudgetService API. The transport provides access to the raw gRPC stubs, which can be used to take advantage of advanced @@ -29,11 +30,10 @@ class AccountBudgetServiceGrpcTransport(object): """ # The scopes needed to make gRPC calls to all of the methods defined # in this service. - _OAUTH_SCOPES = () + _OAUTH_SCOPES = ( + ) - def __init__(self, - channel=None, - credentials=None, + def __init__(self, channel=None, credentials=None, address='googleads.googleapis.com:443'): """Instantiate the transport class. @@ -53,7 +53,8 @@ def __init__(self, if channel is not None and credentials is not None: raise ValueError( 'The `channel` and `credentials` arguments are mutually ' - 'exclusive.', ) + 'exclusive.', + ) # Create the channel. if channel is None: @@ -119,4 +120,4 @@ def get_account_budget(self): deserialized request object and returns a deserialized response object. """ - return self._stubs['account_budget_service_stub'].GetAccountBudget + return self._stubs['account_budget_service_stub'].GetAccountBudget \ No newline at end of file diff --git a/google/ads/google_ads/v4/services/transports/account_link_service_grpc_transport.py b/google/ads/google_ads/v4/services/transports/account_link_service_grpc_transport.py new file mode 100644 index 000000000..240538465 --- /dev/null +++ b/google/ads/google_ads/v4/services/transports/account_link_service_grpc_transport.py @@ -0,0 +1,136 @@ +# -*- coding: utf-8 -*- +# +# 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. + + +import google.api_core.grpc_helpers + +from google.ads.google_ads.v4.proto.services import account_link_service_pb2_grpc + + +class AccountLinkServiceGrpcTransport(object): + """gRPC transport class providing stubs for + google.ads.googleads.v4.services AccountLinkService API. + + The transport provides access to the raw gRPC stubs, + which can be used to take advantage of advanced + features of gRPC. + """ + # The scopes needed to make gRPC calls to all of the methods defined + # in this service. + _OAUTH_SCOPES = ( + ) + + def __init__(self, channel=None, credentials=None, + address='googleads.googleapis.com:443'): + """Instantiate the transport class. + + Args: + channel (grpc.Channel): A ``Channel`` instance through + which to make calls. This argument is mutually exclusive + with ``credentials``; providing both will raise an exception. + credentials (google.auth.credentials.Credentials): The + authorization credentials to attach to requests. These + credentials identify this application to the service. If none + are specified, the client will attempt to ascertain the + credentials from the environment. + address (str): The address where the service is hosted. + """ + # If both `channel` and `credentials` are specified, raise an + # exception (channels come with credentials baked in already). + if channel is not None and credentials is not None: + raise ValueError( + 'The `channel` and `credentials` arguments are mutually ' + 'exclusive.', + ) + + # Create the channel. + if channel is None: + channel = self.create_channel( + address=address, + credentials=credentials, + ) + + self._channel = channel + + # gRPC uses objects called "stubs" that are bound to the + # channel and provide a basic method for each RPC. + self._stubs = { + 'account_link_service_stub': account_link_service_pb2_grpc.AccountLinkServiceStub(channel), + } + + + @classmethod + def create_channel( + cls, + address='googleads.googleapis.com:443', + credentials=None, + **kwargs): + """Create and return a gRPC channel object. + + Args: + address (str): The host for the channel to use. + credentials (~.Credentials): The + authorization credentials to attach to requests. These + credentials identify this application to the service. If + none are specified, the client will attempt to ascertain + the credentials from the environment. + kwargs (dict): Keyword arguments, which are passed to the + channel creation. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return google.api_core.grpc_helpers.create_channel( + address, + credentials=credentials, + scopes=cls._OAUTH_SCOPES, + **kwargs + ) + + @property + def channel(self): + """The gRPC channel used by the transport. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return self._channel + + @property + def get_account_link(self): + """Return the gRPC stub for :meth:`AccountLinkServiceClient.get_account_link`. + + Returns the account link in full detail. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs['account_link_service_stub'].GetAccountLink + + @property + def mutate_account_link(self): + """Return the gRPC stub for :meth:`AccountLinkServiceClient.mutate_account_link`. + + Creates or removes an account link. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs['account_link_service_stub'].MutateAccountLink \ No newline at end of file diff --git a/google/ads/google_ads/v4/services/transports/ad_group_ad_asset_view_service_grpc_transport.py b/google/ads/google_ads/v4/services/transports/ad_group_ad_asset_view_service_grpc_transport.py new file mode 100644 index 000000000..f18663f62 --- /dev/null +++ b/google/ads/google_ads/v4/services/transports/ad_group_ad_asset_view_service_grpc_transport.py @@ -0,0 +1,123 @@ +# -*- coding: utf-8 -*- +# +# 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. + + +import google.api_core.grpc_helpers + +from google.ads.google_ads.v4.proto.services import ad_group_ad_asset_view_service_pb2_grpc + + +class AdGroupAdAssetViewServiceGrpcTransport(object): + """gRPC transport class providing stubs for + google.ads.googleads.v4.services AdGroupAdAssetViewService API. + + The transport provides access to the raw gRPC stubs, + which can be used to take advantage of advanced + features of gRPC. + """ + # The scopes needed to make gRPC calls to all of the methods defined + # in this service. + _OAUTH_SCOPES = ( + ) + + def __init__(self, channel=None, credentials=None, + address='googleads.googleapis.com:443'): + """Instantiate the transport class. + + Args: + channel (grpc.Channel): A ``Channel`` instance through + which to make calls. This argument is mutually exclusive + with ``credentials``; providing both will raise an exception. + credentials (google.auth.credentials.Credentials): The + authorization credentials to attach to requests. These + credentials identify this application to the service. If none + are specified, the client will attempt to ascertain the + credentials from the environment. + address (str): The address where the service is hosted. + """ + # If both `channel` and `credentials` are specified, raise an + # exception (channels come with credentials baked in already). + if channel is not None and credentials is not None: + raise ValueError( + 'The `channel` and `credentials` arguments are mutually ' + 'exclusive.', + ) + + # Create the channel. + if channel is None: + channel = self.create_channel( + address=address, + credentials=credentials, + ) + + self._channel = channel + + # gRPC uses objects called "stubs" that are bound to the + # channel and provide a basic method for each RPC. + self._stubs = { + 'ad_group_ad_asset_view_service_stub': ad_group_ad_asset_view_service_pb2_grpc.AdGroupAdAssetViewServiceStub(channel), + } + + + @classmethod + def create_channel( + cls, + address='googleads.googleapis.com:443', + credentials=None, + **kwargs): + """Create and return a gRPC channel object. + + Args: + address (str): The host for the channel to use. + credentials (~.Credentials): The + authorization credentials to attach to requests. These + credentials identify this application to the service. If + none are specified, the client will attempt to ascertain + the credentials from the environment. + kwargs (dict): Keyword arguments, which are passed to the + channel creation. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return google.api_core.grpc_helpers.create_channel( + address, + credentials=credentials, + scopes=cls._OAUTH_SCOPES, + **kwargs + ) + + @property + def channel(self): + """The gRPC channel used by the transport. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return self._channel + + @property + def get_ad_group_ad_asset_view(self): + """Return the gRPC stub for :meth:`AdGroupAdAssetViewServiceClient.get_ad_group_ad_asset_view`. + + Returns the requested ad group ad asset view in full detail. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs['ad_group_ad_asset_view_service_stub'].GetAdGroupAdAssetView \ No newline at end of file diff --git a/google/ads/google_ads/v1/services/transports/ad_group_ad_label_service_grpc_transport.py b/google/ads/google_ads/v4/services/transports/ad_group_ad_label_service_grpc_transport.py similarity index 92% rename from google/ads/google_ads/v1/services/transports/ad_group_ad_label_service_grpc_transport.py rename to google/ads/google_ads/v4/services/transports/ad_group_ad_label_service_grpc_transport.py index 30cde423f..a4c1d7086 100644 --- a/google/ads/google_ads/v1/services/transports/ad_group_ad_label_service_grpc_transport.py +++ b/google/ads/google_ads/v4/services/transports/ad_group_ad_label_service_grpc_transport.py @@ -14,14 +14,15 @@ # See the License for the specific language governing permissions and # limitations under the License. + import google.api_core.grpc_helpers -from google.ads.google_ads.v1.proto.services import ad_group_ad_label_service_pb2_grpc +from google.ads.google_ads.v4.proto.services import ad_group_ad_label_service_pb2_grpc class AdGroupAdLabelServiceGrpcTransport(object): """gRPC transport class providing stubs for - google.ads.googleads.v1.services AdGroupAdLabelService API. + google.ads.googleads.v4.services AdGroupAdLabelService API. The transport provides access to the raw gRPC stubs, which can be used to take advantage of advanced @@ -29,11 +30,10 @@ class AdGroupAdLabelServiceGrpcTransport(object): """ # The scopes needed to make gRPC calls to all of the methods defined # in this service. - _OAUTH_SCOPES = () + _OAUTH_SCOPES = ( + ) - def __init__(self, - channel=None, - credentials=None, + def __init__(self, channel=None, credentials=None, address='googleads.googleapis.com:443'): """Instantiate the transport class. @@ -53,7 +53,8 @@ def __init__(self, if channel is not None and credentials is not None: raise ValueError( 'The `channel` and `credentials` arguments are mutually ' - 'exclusive.', ) + 'exclusive.', + ) # Create the channel. if channel is None: @@ -133,5 +134,4 @@ def mutate_ad_group_ad_labels(self): deserialized request object and returns a deserialized response object. """ - return self._stubs[ - 'ad_group_ad_label_service_stub'].MutateAdGroupAdLabels + return self._stubs['ad_group_ad_label_service_stub'].MutateAdGroupAdLabels \ No newline at end of file diff --git a/google/ads/google_ads/v1/services/transports/ad_group_ad_service_grpc_transport.py b/google/ads/google_ads/v4/services/transports/ad_group_ad_service_grpc_transport.py similarity index 94% rename from google/ads/google_ads/v1/services/transports/ad_group_ad_service_grpc_transport.py rename to google/ads/google_ads/v4/services/transports/ad_group_ad_service_grpc_transport.py index 753d0bdd1..c04d0ff3d 100644 --- a/google/ads/google_ads/v1/services/transports/ad_group_ad_service_grpc_transport.py +++ b/google/ads/google_ads/v4/services/transports/ad_group_ad_service_grpc_transport.py @@ -14,14 +14,15 @@ # See the License for the specific language governing permissions and # limitations under the License. + import google.api_core.grpc_helpers -from google.ads.google_ads.v1.proto.services import ad_group_ad_service_pb2_grpc +from google.ads.google_ads.v4.proto.services import ad_group_ad_service_pb2_grpc class AdGroupAdServiceGrpcTransport(object): """gRPC transport class providing stubs for - google.ads.googleads.v1.services AdGroupAdService API. + google.ads.googleads.v4.services AdGroupAdService API. The transport provides access to the raw gRPC stubs, which can be used to take advantage of advanced @@ -29,11 +30,10 @@ class AdGroupAdServiceGrpcTransport(object): """ # The scopes needed to make gRPC calls to all of the methods defined # in this service. - _OAUTH_SCOPES = () + _OAUTH_SCOPES = ( + ) - def __init__(self, - channel=None, - credentials=None, + def __init__(self, channel=None, credentials=None, address='googleads.googleapis.com:443'): """Instantiate the transport class. @@ -53,7 +53,8 @@ def __init__(self, if channel is not None and credentials is not None: raise ValueError( 'The `channel` and `credentials` arguments are mutually ' - 'exclusive.', ) + 'exclusive.', + ) # Create the channel. if channel is None: @@ -132,4 +133,4 @@ def mutate_ad_group_ads(self): deserialized request object and returns a deserialized response object. """ - return self._stubs['ad_group_ad_service_stub'].MutateAdGroupAds + return self._stubs['ad_group_ad_service_stub'].MutateAdGroupAds \ No newline at end of file diff --git a/google/ads/google_ads/v1/services/transports/ad_group_audience_view_service_grpc_transport.py b/google/ads/google_ads/v4/services/transports/ad_group_audience_view_service_grpc_transport.py similarity index 91% rename from google/ads/google_ads/v1/services/transports/ad_group_audience_view_service_grpc_transport.py rename to google/ads/google_ads/v4/services/transports/ad_group_audience_view_service_grpc_transport.py index 63c991129..8c0dea456 100644 --- a/google/ads/google_ads/v1/services/transports/ad_group_audience_view_service_grpc_transport.py +++ b/google/ads/google_ads/v4/services/transports/ad_group_audience_view_service_grpc_transport.py @@ -14,14 +14,15 @@ # See the License for the specific language governing permissions and # limitations under the License. + import google.api_core.grpc_helpers -from google.ads.google_ads.v1.proto.services import ad_group_audience_view_service_pb2_grpc +from google.ads.google_ads.v4.proto.services import ad_group_audience_view_service_pb2_grpc class AdGroupAudienceViewServiceGrpcTransport(object): """gRPC transport class providing stubs for - google.ads.googleads.v1.services AdGroupAudienceViewService API. + google.ads.googleads.v4.services AdGroupAudienceViewService API. The transport provides access to the raw gRPC stubs, which can be used to take advantage of advanced @@ -29,11 +30,10 @@ class AdGroupAudienceViewServiceGrpcTransport(object): """ # The scopes needed to make gRPC calls to all of the methods defined # in this service. - _OAUTH_SCOPES = () + _OAUTH_SCOPES = ( + ) - def __init__(self, - channel=None, - credentials=None, + def __init__(self, channel=None, credentials=None, address='googleads.googleapis.com:443'): """Instantiate the transport class. @@ -53,7 +53,8 @@ def __init__(self, if channel is not None and credentials is not None: raise ValueError( 'The `channel` and `credentials` arguments are mutually ' - 'exclusive.', ) + 'exclusive.', + ) # Create the channel. if channel is None: @@ -119,5 +120,4 @@ def get_ad_group_audience_view(self): deserialized request object and returns a deserialized response object. """ - return self._stubs[ - 'ad_group_audience_view_service_stub'].GetAdGroupAudienceView + return self._stubs['ad_group_audience_view_service_stub'].GetAdGroupAudienceView \ No newline at end of file diff --git a/google/ads/google_ads/v1/services/transports/ad_group_bid_modifier_service_grpc_transport.py b/google/ads/google_ads/v4/services/transports/ad_group_bid_modifier_service_grpc_transport.py similarity index 90% rename from google/ads/google_ads/v1/services/transports/ad_group_bid_modifier_service_grpc_transport.py rename to google/ads/google_ads/v4/services/transports/ad_group_bid_modifier_service_grpc_transport.py index bdd20c614..1f0dc6263 100644 --- a/google/ads/google_ads/v1/services/transports/ad_group_bid_modifier_service_grpc_transport.py +++ b/google/ads/google_ads/v4/services/transports/ad_group_bid_modifier_service_grpc_transport.py @@ -14,14 +14,15 @@ # See the License for the specific language governing permissions and # limitations under the License. + import google.api_core.grpc_helpers -from google.ads.google_ads.v1.proto.services import ad_group_bid_modifier_service_pb2_grpc +from google.ads.google_ads.v4.proto.services import ad_group_bid_modifier_service_pb2_grpc class AdGroupBidModifierServiceGrpcTransport(object): """gRPC transport class providing stubs for - google.ads.googleads.v1.services AdGroupBidModifierService API. + google.ads.googleads.v4.services AdGroupBidModifierService API. The transport provides access to the raw gRPC stubs, which can be used to take advantage of advanced @@ -29,11 +30,10 @@ class AdGroupBidModifierServiceGrpcTransport(object): """ # The scopes needed to make gRPC calls to all of the methods defined # in this service. - _OAUTH_SCOPES = () + _OAUTH_SCOPES = ( + ) - def __init__(self, - channel=None, - credentials=None, + def __init__(self, channel=None, credentials=None, address='googleads.googleapis.com:443'): """Instantiate the transport class. @@ -53,7 +53,8 @@ def __init__(self, if channel is not None and credentials is not None: raise ValueError( 'The `channel` and `credentials` arguments are mutually ' - 'exclusive.', ) + 'exclusive.', + ) # Create the channel. if channel is None: @@ -119,8 +120,7 @@ def get_ad_group_bid_modifier(self): deserialized request object and returns a deserialized response object. """ - return self._stubs[ - 'ad_group_bid_modifier_service_stub'].GetAdGroupBidModifier + return self._stubs['ad_group_bid_modifier_service_stub'].GetAdGroupBidModifier @property def mutate_ad_group_bid_modifiers(self): @@ -134,5 +134,4 @@ def mutate_ad_group_bid_modifiers(self): deserialized request object and returns a deserialized response object. """ - return self._stubs[ - 'ad_group_bid_modifier_service_stub'].MutateAdGroupBidModifiers + return self._stubs['ad_group_bid_modifier_service_stub'].MutateAdGroupBidModifiers \ No newline at end of file diff --git a/google/ads/google_ads/v1/services/transports/ad_group_criterion_label_service_grpc_transport.py b/google/ads/google_ads/v4/services/transports/ad_group_criterion_label_service_grpc_transport.py similarity index 90% rename from google/ads/google_ads/v1/services/transports/ad_group_criterion_label_service_grpc_transport.py rename to google/ads/google_ads/v4/services/transports/ad_group_criterion_label_service_grpc_transport.py index 0a4de6253..007e77933 100644 --- a/google/ads/google_ads/v1/services/transports/ad_group_criterion_label_service_grpc_transport.py +++ b/google/ads/google_ads/v4/services/transports/ad_group_criterion_label_service_grpc_transport.py @@ -14,14 +14,15 @@ # See the License for the specific language governing permissions and # limitations under the License. + import google.api_core.grpc_helpers -from google.ads.google_ads.v1.proto.services import ad_group_criterion_label_service_pb2_grpc +from google.ads.google_ads.v4.proto.services import ad_group_criterion_label_service_pb2_grpc class AdGroupCriterionLabelServiceGrpcTransport(object): """gRPC transport class providing stubs for - google.ads.googleads.v1.services AdGroupCriterionLabelService API. + google.ads.googleads.v4.services AdGroupCriterionLabelService API. The transport provides access to the raw gRPC stubs, which can be used to take advantage of advanced @@ -29,11 +30,10 @@ class AdGroupCriterionLabelServiceGrpcTransport(object): """ # The scopes needed to make gRPC calls to all of the methods defined # in this service. - _OAUTH_SCOPES = () + _OAUTH_SCOPES = ( + ) - def __init__(self, - channel=None, - credentials=None, + def __init__(self, channel=None, credentials=None, address='googleads.googleapis.com:443'): """Instantiate the transport class. @@ -53,7 +53,8 @@ def __init__(self, if channel is not None and credentials is not None: raise ValueError( 'The `channel` and `credentials` arguments are mutually ' - 'exclusive.', ) + 'exclusive.', + ) # Create the channel. if channel is None: @@ -119,8 +120,7 @@ def get_ad_group_criterion_label(self): deserialized request object and returns a deserialized response object. """ - return self._stubs[ - 'ad_group_criterion_label_service_stub'].GetAdGroupCriterionLabel + return self._stubs['ad_group_criterion_label_service_stub'].GetAdGroupCriterionLabel @property def mutate_ad_group_criterion_labels(self): @@ -134,5 +134,4 @@ def mutate_ad_group_criterion_labels(self): deserialized request object and returns a deserialized response object. """ - return self._stubs[ - 'ad_group_criterion_label_service_stub'].MutateAdGroupCriterionLabels + return self._stubs['ad_group_criterion_label_service_stub'].MutateAdGroupCriterionLabels \ No newline at end of file diff --git a/google/ads/google_ads/v1/services/transports/ad_group_criterion_service_grpc_transport.py b/google/ads/google_ads/v4/services/transports/ad_group_criterion_service_grpc_transport.py similarity index 90% rename from google/ads/google_ads/v1/services/transports/ad_group_criterion_service_grpc_transport.py rename to google/ads/google_ads/v4/services/transports/ad_group_criterion_service_grpc_transport.py index e76235fe6..2189ec1da 100644 --- a/google/ads/google_ads/v1/services/transports/ad_group_criterion_service_grpc_transport.py +++ b/google/ads/google_ads/v4/services/transports/ad_group_criterion_service_grpc_transport.py @@ -14,14 +14,15 @@ # See the License for the specific language governing permissions and # limitations under the License. + import google.api_core.grpc_helpers -from google.ads.google_ads.v1.proto.services import ad_group_criterion_service_pb2_grpc +from google.ads.google_ads.v4.proto.services import ad_group_criterion_service_pb2_grpc class AdGroupCriterionServiceGrpcTransport(object): """gRPC transport class providing stubs for - google.ads.googleads.v1.services AdGroupCriterionService API. + google.ads.googleads.v4.services AdGroupCriterionService API. The transport provides access to the raw gRPC stubs, which can be used to take advantage of advanced @@ -29,11 +30,10 @@ class AdGroupCriterionServiceGrpcTransport(object): """ # The scopes needed to make gRPC calls to all of the methods defined # in this service. - _OAUTH_SCOPES = () + _OAUTH_SCOPES = ( + ) - def __init__(self, - channel=None, - credentials=None, + def __init__(self, channel=None, credentials=None, address='googleads.googleapis.com:443'): """Instantiate the transport class. @@ -53,7 +53,8 @@ def __init__(self, if channel is not None and credentials is not None: raise ValueError( 'The `channel` and `credentials` arguments are mutually ' - 'exclusive.', ) + 'exclusive.', + ) # Create the channel. if channel is None: @@ -119,8 +120,7 @@ def get_ad_group_criterion(self): deserialized request object and returns a deserialized response object. """ - return self._stubs[ - 'ad_group_criterion_service_stub'].GetAdGroupCriterion + return self._stubs['ad_group_criterion_service_stub'].GetAdGroupCriterion @property def mutate_ad_group_criteria(self): @@ -133,5 +133,4 @@ def mutate_ad_group_criteria(self): deserialized request object and returns a deserialized response object. """ - return self._stubs[ - 'ad_group_criterion_service_stub'].MutateAdGroupCriteria + return self._stubs['ad_group_criterion_service_stub'].MutateAdGroupCriteria \ No newline at end of file diff --git a/google/ads/google_ads/v1/services/transports/ad_group_criterion_simulation_service_grpc_transport.py b/google/ads/google_ads/v4/services/transports/ad_group_criterion_simulation_service_grpc_transport.py similarity index 91% rename from google/ads/google_ads/v1/services/transports/ad_group_criterion_simulation_service_grpc_transport.py rename to google/ads/google_ads/v4/services/transports/ad_group_criterion_simulation_service_grpc_transport.py index 63f1571f2..b8be4f625 100644 --- a/google/ads/google_ads/v1/services/transports/ad_group_criterion_simulation_service_grpc_transport.py +++ b/google/ads/google_ads/v4/services/transports/ad_group_criterion_simulation_service_grpc_transport.py @@ -14,14 +14,15 @@ # See the License for the specific language governing permissions and # limitations under the License. + import google.api_core.grpc_helpers -from google.ads.google_ads.v1.proto.services import ad_group_criterion_simulation_service_pb2_grpc +from google.ads.google_ads.v4.proto.services import ad_group_criterion_simulation_service_pb2_grpc class AdGroupCriterionSimulationServiceGrpcTransport(object): """gRPC transport class providing stubs for - google.ads.googleads.v1.services AdGroupCriterionSimulationService API. + google.ads.googleads.v4.services AdGroupCriterionSimulationService API. The transport provides access to the raw gRPC stubs, which can be used to take advantage of advanced @@ -29,11 +30,10 @@ class AdGroupCriterionSimulationServiceGrpcTransport(object): """ # The scopes needed to make gRPC calls to all of the methods defined # in this service. - _OAUTH_SCOPES = () + _OAUTH_SCOPES = ( + ) - def __init__(self, - channel=None, - credentials=None, + def __init__(self, channel=None, credentials=None, address='googleads.googleapis.com:443'): """Instantiate the transport class. @@ -53,7 +53,8 @@ def __init__(self, if channel is not None and credentials is not None: raise ValueError( 'The `channel` and `credentials` arguments are mutually ' - 'exclusive.', ) + 'exclusive.', + ) # Create the channel. if channel is None: @@ -119,5 +120,4 @@ def get_ad_group_criterion_simulation(self): deserialized request object and returns a deserialized response object. """ - return self._stubs[ - 'ad_group_criterion_simulation_service_stub'].GetAdGroupCriterionSimulation + return self._stubs['ad_group_criterion_simulation_service_stub'].GetAdGroupCriterionSimulation \ No newline at end of file diff --git a/google/ads/google_ads/v1/services/transports/ad_group_extension_setting_service_grpc_transport.py b/google/ads/google_ads/v4/services/transports/ad_group_extension_setting_service_grpc_transport.py similarity index 90% rename from google/ads/google_ads/v1/services/transports/ad_group_extension_setting_service_grpc_transport.py rename to google/ads/google_ads/v4/services/transports/ad_group_extension_setting_service_grpc_transport.py index d6b61518e..5777ac7aa 100644 --- a/google/ads/google_ads/v1/services/transports/ad_group_extension_setting_service_grpc_transport.py +++ b/google/ads/google_ads/v4/services/transports/ad_group_extension_setting_service_grpc_transport.py @@ -14,14 +14,15 @@ # See the License for the specific language governing permissions and # limitations under the License. + import google.api_core.grpc_helpers -from google.ads.google_ads.v1.proto.services import ad_group_extension_setting_service_pb2_grpc +from google.ads.google_ads.v4.proto.services import ad_group_extension_setting_service_pb2_grpc class AdGroupExtensionSettingServiceGrpcTransport(object): """gRPC transport class providing stubs for - google.ads.googleads.v1.services AdGroupExtensionSettingService API. + google.ads.googleads.v4.services AdGroupExtensionSettingService API. The transport provides access to the raw gRPC stubs, which can be used to take advantage of advanced @@ -29,11 +30,10 @@ class AdGroupExtensionSettingServiceGrpcTransport(object): """ # The scopes needed to make gRPC calls to all of the methods defined # in this service. - _OAUTH_SCOPES = () + _OAUTH_SCOPES = ( + ) - def __init__(self, - channel=None, - credentials=None, + def __init__(self, channel=None, credentials=None, address='googleads.googleapis.com:443'): """Instantiate the transport class. @@ -53,7 +53,8 @@ def __init__(self, if channel is not None and credentials is not None: raise ValueError( 'The `channel` and `credentials` arguments are mutually ' - 'exclusive.', ) + 'exclusive.', + ) # Create the channel. if channel is None: @@ -119,8 +120,7 @@ def get_ad_group_extension_setting(self): deserialized request object and returns a deserialized response object. """ - return self._stubs[ - 'ad_group_extension_setting_service_stub'].GetAdGroupExtensionSetting + return self._stubs['ad_group_extension_setting_service_stub'].GetAdGroupExtensionSetting @property def mutate_ad_group_extension_settings(self): @@ -134,5 +134,4 @@ def mutate_ad_group_extension_settings(self): deserialized request object and returns a deserialized response object. """ - return self._stubs[ - 'ad_group_extension_setting_service_stub'].MutateAdGroupExtensionSettings + return self._stubs['ad_group_extension_setting_service_stub'].MutateAdGroupExtensionSettings \ No newline at end of file diff --git a/google/ads/google_ads/v1/services/transports/ad_group_feed_service_grpc_transport.py b/google/ads/google_ads/v4/services/transports/ad_group_feed_service_grpc_transport.py similarity index 94% rename from google/ads/google_ads/v1/services/transports/ad_group_feed_service_grpc_transport.py rename to google/ads/google_ads/v4/services/transports/ad_group_feed_service_grpc_transport.py index 7e58fe087..81c97e2a4 100644 --- a/google/ads/google_ads/v1/services/transports/ad_group_feed_service_grpc_transport.py +++ b/google/ads/google_ads/v4/services/transports/ad_group_feed_service_grpc_transport.py @@ -14,14 +14,15 @@ # See the License for the specific language governing permissions and # limitations under the License. + import google.api_core.grpc_helpers -from google.ads.google_ads.v1.proto.services import ad_group_feed_service_pb2_grpc +from google.ads.google_ads.v4.proto.services import ad_group_feed_service_pb2_grpc class AdGroupFeedServiceGrpcTransport(object): """gRPC transport class providing stubs for - google.ads.googleads.v1.services AdGroupFeedService API. + google.ads.googleads.v4.services AdGroupFeedService API. The transport provides access to the raw gRPC stubs, which can be used to take advantage of advanced @@ -29,11 +30,10 @@ class AdGroupFeedServiceGrpcTransport(object): """ # The scopes needed to make gRPC calls to all of the methods defined # in this service. - _OAUTH_SCOPES = () + _OAUTH_SCOPES = ( + ) - def __init__(self, - channel=None, - credentials=None, + def __init__(self, channel=None, credentials=None, address='googleads.googleapis.com:443'): """Instantiate the transport class. @@ -53,7 +53,8 @@ def __init__(self, if channel is not None and credentials is not None: raise ValueError( 'The `channel` and `credentials` arguments are mutually ' - 'exclusive.', ) + 'exclusive.', + ) # Create the channel. if channel is None: @@ -133,4 +134,4 @@ def mutate_ad_group_feeds(self): deserialized request object and returns a deserialized response object. """ - return self._stubs['ad_group_feed_service_stub'].MutateAdGroupFeeds + return self._stubs['ad_group_feed_service_stub'].MutateAdGroupFeeds \ No newline at end of file diff --git a/google/ads/google_ads/v1/services/transports/ad_group_label_service_grpc_transport.py b/google/ads/google_ads/v4/services/transports/ad_group_label_service_grpc_transport.py similarity index 94% rename from google/ads/google_ads/v1/services/transports/ad_group_label_service_grpc_transport.py rename to google/ads/google_ads/v4/services/transports/ad_group_label_service_grpc_transport.py index f8d494676..c814454c9 100644 --- a/google/ads/google_ads/v1/services/transports/ad_group_label_service_grpc_transport.py +++ b/google/ads/google_ads/v4/services/transports/ad_group_label_service_grpc_transport.py @@ -14,14 +14,15 @@ # See the License for the specific language governing permissions and # limitations under the License. + import google.api_core.grpc_helpers -from google.ads.google_ads.v1.proto.services import ad_group_label_service_pb2_grpc +from google.ads.google_ads.v4.proto.services import ad_group_label_service_pb2_grpc class AdGroupLabelServiceGrpcTransport(object): """gRPC transport class providing stubs for - google.ads.googleads.v1.services AdGroupLabelService API. + google.ads.googleads.v4.services AdGroupLabelService API. The transport provides access to the raw gRPC stubs, which can be used to take advantage of advanced @@ -29,11 +30,10 @@ class AdGroupLabelServiceGrpcTransport(object): """ # The scopes needed to make gRPC calls to all of the methods defined # in this service. - _OAUTH_SCOPES = () + _OAUTH_SCOPES = ( + ) - def __init__(self, - channel=None, - credentials=None, + def __init__(self, channel=None, credentials=None, address='googleads.googleapis.com:443'): """Instantiate the transport class. @@ -53,7 +53,8 @@ def __init__(self, if channel is not None and credentials is not None: raise ValueError( 'The `channel` and `credentials` arguments are mutually ' - 'exclusive.', ) + 'exclusive.', + ) # Create the channel. if channel is None: @@ -133,4 +134,4 @@ def mutate_ad_group_labels(self): deserialized request object and returns a deserialized response object. """ - return self._stubs['ad_group_label_service_stub'].MutateAdGroupLabels + return self._stubs['ad_group_label_service_stub'].MutateAdGroupLabels \ No newline at end of file diff --git a/google/ads/google_ads/v1/services/transports/ad_group_service_grpc_transport.py b/google/ads/google_ads/v4/services/transports/ad_group_service_grpc_transport.py similarity index 94% rename from google/ads/google_ads/v1/services/transports/ad_group_service_grpc_transport.py rename to google/ads/google_ads/v4/services/transports/ad_group_service_grpc_transport.py index ab2fc8dec..2e0f4bce9 100644 --- a/google/ads/google_ads/v1/services/transports/ad_group_service_grpc_transport.py +++ b/google/ads/google_ads/v4/services/transports/ad_group_service_grpc_transport.py @@ -14,14 +14,15 @@ # See the License for the specific language governing permissions and # limitations under the License. + import google.api_core.grpc_helpers -from google.ads.google_ads.v1.proto.services import ad_group_service_pb2_grpc +from google.ads.google_ads.v4.proto.services import ad_group_service_pb2_grpc class AdGroupServiceGrpcTransport(object): """gRPC transport class providing stubs for - google.ads.googleads.v1.services AdGroupService API. + google.ads.googleads.v4.services AdGroupService API. The transport provides access to the raw gRPC stubs, which can be used to take advantage of advanced @@ -29,11 +30,10 @@ class AdGroupServiceGrpcTransport(object): """ # The scopes needed to make gRPC calls to all of the methods defined # in this service. - _OAUTH_SCOPES = () + _OAUTH_SCOPES = ( + ) - def __init__(self, - channel=None, - credentials=None, + def __init__(self, channel=None, credentials=None, address='googleads.googleapis.com:443'): """Instantiate the transport class. @@ -53,7 +53,8 @@ def __init__(self, if channel is not None and credentials is not None: raise ValueError( 'The `channel` and `credentials` arguments are mutually ' - 'exclusive.', ) + 'exclusive.', + ) # Create the channel. if channel is None: @@ -132,4 +133,4 @@ def mutate_ad_groups(self): deserialized request object and returns a deserialized response object. """ - return self._stubs['ad_group_service_stub'].MutateAdGroups + return self._stubs['ad_group_service_stub'].MutateAdGroups \ No newline at end of file diff --git a/google/ads/google_ads/v1/services/transports/ad_group_simulation_service_grpc_transport.py b/google/ads/google_ads/v4/services/transports/ad_group_simulation_service_grpc_transport.py similarity index 91% rename from google/ads/google_ads/v1/services/transports/ad_group_simulation_service_grpc_transport.py rename to google/ads/google_ads/v4/services/transports/ad_group_simulation_service_grpc_transport.py index 495729ee2..434aed48e 100644 --- a/google/ads/google_ads/v1/services/transports/ad_group_simulation_service_grpc_transport.py +++ b/google/ads/google_ads/v4/services/transports/ad_group_simulation_service_grpc_transport.py @@ -14,14 +14,15 @@ # See the License for the specific language governing permissions and # limitations under the License. + import google.api_core.grpc_helpers -from google.ads.google_ads.v1.proto.services import ad_group_simulation_service_pb2_grpc +from google.ads.google_ads.v4.proto.services import ad_group_simulation_service_pb2_grpc class AdGroupSimulationServiceGrpcTransport(object): """gRPC transport class providing stubs for - google.ads.googleads.v1.services AdGroupSimulationService API. + google.ads.googleads.v4.services AdGroupSimulationService API. The transport provides access to the raw gRPC stubs, which can be used to take advantage of advanced @@ -29,11 +30,10 @@ class AdGroupSimulationServiceGrpcTransport(object): """ # The scopes needed to make gRPC calls to all of the methods defined # in this service. - _OAUTH_SCOPES = () + _OAUTH_SCOPES = ( + ) - def __init__(self, - channel=None, - credentials=None, + def __init__(self, channel=None, credentials=None, address='googleads.googleapis.com:443'): """Instantiate the transport class. @@ -53,7 +53,8 @@ def __init__(self, if channel is not None and credentials is not None: raise ValueError( 'The `channel` and `credentials` arguments are mutually ' - 'exclusive.', ) + 'exclusive.', + ) # Create the channel. if channel is None: @@ -119,5 +120,4 @@ def get_ad_group_simulation(self): deserialized request object and returns a deserialized response object. """ - return self._stubs[ - 'ad_group_simulation_service_stub'].GetAdGroupSimulation + return self._stubs['ad_group_simulation_service_stub'].GetAdGroupSimulation \ No newline at end of file diff --git a/google/ads/google_ads/v1/services/transports/ad_parameter_service_grpc_transport.py b/google/ads/google_ads/v4/services/transports/ad_parameter_service_grpc_transport.py similarity index 94% rename from google/ads/google_ads/v1/services/transports/ad_parameter_service_grpc_transport.py rename to google/ads/google_ads/v4/services/transports/ad_parameter_service_grpc_transport.py index 02c8dd905..515e27679 100644 --- a/google/ads/google_ads/v1/services/transports/ad_parameter_service_grpc_transport.py +++ b/google/ads/google_ads/v4/services/transports/ad_parameter_service_grpc_transport.py @@ -14,14 +14,15 @@ # See the License for the specific language governing permissions and # limitations under the License. + import google.api_core.grpc_helpers -from google.ads.google_ads.v1.proto.services import ad_parameter_service_pb2_grpc +from google.ads.google_ads.v4.proto.services import ad_parameter_service_pb2_grpc class AdParameterServiceGrpcTransport(object): """gRPC transport class providing stubs for - google.ads.googleads.v1.services AdParameterService API. + google.ads.googleads.v4.services AdParameterService API. The transport provides access to the raw gRPC stubs, which can be used to take advantage of advanced @@ -29,11 +30,10 @@ class AdParameterServiceGrpcTransport(object): """ # The scopes needed to make gRPC calls to all of the methods defined # in this service. - _OAUTH_SCOPES = () + _OAUTH_SCOPES = ( + ) - def __init__(self, - channel=None, - credentials=None, + def __init__(self, channel=None, credentials=None, address='googleads.googleapis.com:443'): """Instantiate the transport class. @@ -53,7 +53,8 @@ def __init__(self, if channel is not None and credentials is not None: raise ValueError( 'The `channel` and `credentials` arguments are mutually ' - 'exclusive.', ) + 'exclusive.', + ) # Create the channel. if channel is None: @@ -133,4 +134,4 @@ def mutate_ad_parameters(self): deserialized request object and returns a deserialized response object. """ - return self._stubs['ad_parameter_service_stub'].MutateAdParameters + return self._stubs['ad_parameter_service_stub'].MutateAdParameters \ No newline at end of file diff --git a/google/ads/google_ads/v1/services/transports/ad_schedule_view_service_grpc_transport.py b/google/ads/google_ads/v4/services/transports/ad_schedule_view_service_grpc_transport.py similarity index 93% rename from google/ads/google_ads/v1/services/transports/ad_schedule_view_service_grpc_transport.py rename to google/ads/google_ads/v4/services/transports/ad_schedule_view_service_grpc_transport.py index 545ec2fba..0ce004fd0 100644 --- a/google/ads/google_ads/v1/services/transports/ad_schedule_view_service_grpc_transport.py +++ b/google/ads/google_ads/v4/services/transports/ad_schedule_view_service_grpc_transport.py @@ -14,14 +14,15 @@ # See the License for the specific language governing permissions and # limitations under the License. + import google.api_core.grpc_helpers -from google.ads.google_ads.v1.proto.services import ad_schedule_view_service_pb2_grpc +from google.ads.google_ads.v4.proto.services import ad_schedule_view_service_pb2_grpc class AdScheduleViewServiceGrpcTransport(object): """gRPC transport class providing stubs for - google.ads.googleads.v1.services AdScheduleViewService API. + google.ads.googleads.v4.services AdScheduleViewService API. The transport provides access to the raw gRPC stubs, which can be used to take advantage of advanced @@ -29,11 +30,10 @@ class AdScheduleViewServiceGrpcTransport(object): """ # The scopes needed to make gRPC calls to all of the methods defined # in this service. - _OAUTH_SCOPES = () + _OAUTH_SCOPES = ( + ) - def __init__(self, - channel=None, - credentials=None, + def __init__(self, channel=None, credentials=None, address='googleads.googleapis.com:443'): """Instantiate the transport class. @@ -53,7 +53,8 @@ def __init__(self, if channel is not None and credentials is not None: raise ValueError( 'The `channel` and `credentials` arguments are mutually ' - 'exclusive.', ) + 'exclusive.', + ) # Create the channel. if channel is None: @@ -119,4 +120,4 @@ def get_ad_schedule_view(self): deserialized request object and returns a deserialized response object. """ - return self._stubs['ad_schedule_view_service_stub'].GetAdScheduleView + return self._stubs['ad_schedule_view_service_stub'].GetAdScheduleView \ No newline at end of file diff --git a/google/ads/google_ads/v4/services/transports/ad_service_grpc_transport.py b/google/ads/google_ads/v4/services/transports/ad_service_grpc_transport.py new file mode 100644 index 000000000..2f557d013 --- /dev/null +++ b/google/ads/google_ads/v4/services/transports/ad_service_grpc_transport.py @@ -0,0 +1,137 @@ +# -*- coding: utf-8 -*- +# +# 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. + + +import google.api_core.grpc_helpers + +from google.ads.google_ads.v4.proto.services import ad_service_pb2_grpc + + +class AdServiceGrpcTransport(object): + """gRPC transport class providing stubs for + google.ads.googleads.v4.services AdService API. + + The transport provides access to the raw gRPC stubs, + which can be used to take advantage of advanced + features of gRPC. + """ + # The scopes needed to make gRPC calls to all of the methods defined + # in this service. + _OAUTH_SCOPES = ( + ) + + def __init__(self, channel=None, credentials=None, + address='googleads.googleapis.com:443'): + """Instantiate the transport class. + + Args: + channel (grpc.Channel): A ``Channel`` instance through + which to make calls. This argument is mutually exclusive + with ``credentials``; providing both will raise an exception. + credentials (google.auth.credentials.Credentials): The + authorization credentials to attach to requests. These + credentials identify this application to the service. If none + are specified, the client will attempt to ascertain the + credentials from the environment. + address (str): The address where the service is hosted. + """ + # If both `channel` and `credentials` are specified, raise an + # exception (channels come with credentials baked in already). + if channel is not None and credentials is not None: + raise ValueError( + 'The `channel` and `credentials` arguments are mutually ' + 'exclusive.', + ) + + # Create the channel. + if channel is None: + channel = self.create_channel( + address=address, + credentials=credentials, + ) + + self._channel = channel + + # gRPC uses objects called "stubs" that are bound to the + # channel and provide a basic method for each RPC. + self._stubs = { + 'ad_service_stub': ad_service_pb2_grpc.AdServiceStub(channel), + } + + + @classmethod + def create_channel( + cls, + address='googleads.googleapis.com:443', + credentials=None, + **kwargs): + """Create and return a gRPC channel object. + + Args: + address (str): The host for the channel to use. + credentials (~.Credentials): The + authorization credentials to attach to requests. These + credentials identify this application to the service. If + none are specified, the client will attempt to ascertain + the credentials from the environment. + kwargs (dict): Keyword arguments, which are passed to the + channel creation. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return google.api_core.grpc_helpers.create_channel( + address, + credentials=credentials, + scopes=cls._OAUTH_SCOPES, + **kwargs + ) + + @property + def channel(self): + """The gRPC channel used by the transport. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return self._channel + + @property + def get_ad(self): + """Return the gRPC stub for :meth:`AdServiceClient.get_ad`. + + Returns the requested ad in full detail. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs['ad_service_stub'].GetAd + + @property + def mutate_ads(self): + """Return the gRPC stub for :meth:`AdServiceClient.mutate_ads`. + + Updates ads. Operation statuses are returned. Updating ads is not supported + for TextAd, ExpandedDynamicSearchAd, GmailAd and ImageAd. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs['ad_service_stub'].MutateAds \ No newline at end of file diff --git a/google/ads/google_ads/v1/services/transports/age_range_view_service_grpc_transport.py b/google/ads/google_ads/v4/services/transports/age_range_view_service_grpc_transport.py similarity index 93% rename from google/ads/google_ads/v1/services/transports/age_range_view_service_grpc_transport.py rename to google/ads/google_ads/v4/services/transports/age_range_view_service_grpc_transport.py index 194290f15..d5fd8a660 100644 --- a/google/ads/google_ads/v1/services/transports/age_range_view_service_grpc_transport.py +++ b/google/ads/google_ads/v4/services/transports/age_range_view_service_grpc_transport.py @@ -14,14 +14,15 @@ # See the License for the specific language governing permissions and # limitations under the License. + import google.api_core.grpc_helpers -from google.ads.google_ads.v1.proto.services import age_range_view_service_pb2_grpc +from google.ads.google_ads.v4.proto.services import age_range_view_service_pb2_grpc class AgeRangeViewServiceGrpcTransport(object): """gRPC transport class providing stubs for - google.ads.googleads.v1.services AgeRangeViewService API. + google.ads.googleads.v4.services AgeRangeViewService API. The transport provides access to the raw gRPC stubs, which can be used to take advantage of advanced @@ -29,11 +30,10 @@ class AgeRangeViewServiceGrpcTransport(object): """ # The scopes needed to make gRPC calls to all of the methods defined # in this service. - _OAUTH_SCOPES = () + _OAUTH_SCOPES = ( + ) - def __init__(self, - channel=None, - credentials=None, + def __init__(self, channel=None, credentials=None, address='googleads.googleapis.com:443'): """Instantiate the transport class. @@ -53,7 +53,8 @@ def __init__(self, if channel is not None and credentials is not None: raise ValueError( 'The `channel` and `credentials` arguments are mutually ' - 'exclusive.', ) + 'exclusive.', + ) # Create the channel. if channel is None: @@ -119,4 +120,4 @@ def get_age_range_view(self): deserialized request object and returns a deserialized response object. """ - return self._stubs['age_range_view_service_stub'].GetAgeRangeView + return self._stubs['age_range_view_service_stub'].GetAgeRangeView \ No newline at end of file diff --git a/google/ads/google_ads/v1/services/transports/asset_service_grpc_transport.py b/google/ads/google_ads/v4/services/transports/asset_service_grpc_transport.py similarity index 93% rename from google/ads/google_ads/v1/services/transports/asset_service_grpc_transport.py rename to google/ads/google_ads/v4/services/transports/asset_service_grpc_transport.py index 79927cbd2..89c20c099 100644 --- a/google/ads/google_ads/v1/services/transports/asset_service_grpc_transport.py +++ b/google/ads/google_ads/v4/services/transports/asset_service_grpc_transport.py @@ -14,14 +14,15 @@ # See the License for the specific language governing permissions and # limitations under the License. + import google.api_core.grpc_helpers -from google.ads.google_ads.v1.proto.services import asset_service_pb2_grpc +from google.ads.google_ads.v4.proto.services import asset_service_pb2_grpc class AssetServiceGrpcTransport(object): """gRPC transport class providing stubs for - google.ads.googleads.v1.services AssetService API. + google.ads.googleads.v4.services AssetService API. The transport provides access to the raw gRPC stubs, which can be used to take advantage of advanced @@ -29,11 +30,10 @@ class AssetServiceGrpcTransport(object): """ # The scopes needed to make gRPC calls to all of the methods defined # in this service. - _OAUTH_SCOPES = () + _OAUTH_SCOPES = ( + ) - def __init__(self, - channel=None, - credentials=None, + def __init__(self, channel=None, credentials=None, address='googleads.googleapis.com:443'): """Instantiate the transport class. @@ -53,7 +53,8 @@ def __init__(self, if channel is not None and credentials is not None: raise ValueError( 'The `channel` and `credentials` arguments are mutually ' - 'exclusive.', ) + 'exclusive.', + ) # Create the channel. if channel is None: @@ -132,4 +133,4 @@ def mutate_assets(self): deserialized request object and returns a deserialized response object. """ - return self._stubs['asset_service_stub'].MutateAssets + return self._stubs['asset_service_stub'].MutateAssets \ No newline at end of file diff --git a/google/ads/google_ads/v4/services/transports/batch_job_service_grpc_transport.py b/google/ads/google_ads/v4/services/transports/batch_job_service_grpc_transport.py new file mode 100644 index 000000000..d4a13be3a --- /dev/null +++ b/google/ads/google_ads/v4/services/transports/batch_job_service_grpc_transport.py @@ -0,0 +1,185 @@ +# -*- coding: utf-8 -*- +# +# 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. + + +import google.api_core.grpc_helpers +import google.api_core.operations_v1 + +from google.ads.google_ads.v4.proto.services import batch_job_service_pb2_grpc + + +class BatchJobServiceGrpcTransport(object): + """gRPC transport class providing stubs for + google.ads.googleads.v4.services BatchJobService API. + + The transport provides access to the raw gRPC stubs, + which can be used to take advantage of advanced + features of gRPC. + """ + # The scopes needed to make gRPC calls to all of the methods defined + # in this service. + _OAUTH_SCOPES = ( + ) + + def __init__(self, channel=None, credentials=None, + address='googleads.googleapis.com:443'): + """Instantiate the transport class. + + Args: + channel (grpc.Channel): A ``Channel`` instance through + which to make calls. This argument is mutually exclusive + with ``credentials``; providing both will raise an exception. + credentials (google.auth.credentials.Credentials): The + authorization credentials to attach to requests. These + credentials identify this application to the service. If none + are specified, the client will attempt to ascertain the + credentials from the environment. + address (str): The address where the service is hosted. + """ + # If both `channel` and `credentials` are specified, raise an + # exception (channels come with credentials baked in already). + if channel is not None and credentials is not None: + raise ValueError( + 'The `channel` and `credentials` arguments are mutually ' + 'exclusive.', + ) + + # Create the channel. + if channel is None: + channel = self.create_channel( + address=address, + credentials=credentials, + ) + + self._channel = channel + + # gRPC uses objects called "stubs" that are bound to the + # channel and provide a basic method for each RPC. + self._stubs = { + 'batch_job_service_stub': batch_job_service_pb2_grpc.BatchJobServiceStub(channel), + } + + # Because this API includes a method that returns a + # long-running operation (proto: google.longrunning.Operation), + # instantiate an LRO client. + self._operations_client = google.api_core.operations_v1.OperationsClient(channel) + + @classmethod + def create_channel( + cls, + address='googleads.googleapis.com:443', + credentials=None, + **kwargs): + """Create and return a gRPC channel object. + + Args: + address (str): The host for the channel to use. + credentials (~.Credentials): The + authorization credentials to attach to requests. These + credentials identify this application to the service. If + none are specified, the client will attempt to ascertain + the credentials from the environment. + kwargs (dict): Keyword arguments, which are passed to the + channel creation. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return google.api_core.grpc_helpers.create_channel( + address, + credentials=credentials, + scopes=cls._OAUTH_SCOPES, + **kwargs + ) + + @property + def channel(self): + """The gRPC channel used by the transport. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return self._channel + + @property + def mutate_batch_job(self): + """Return the gRPC stub for :meth:`BatchJobServiceClient.mutate_batch_job`. + + Mutates a batch job. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs['batch_job_service_stub'].MutateBatchJob + + @property + def get_batch_job(self): + """Return the gRPC stub for :meth:`BatchJobServiceClient.get_batch_job`. + + Returns the batch job. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs['batch_job_service_stub'].GetBatchJob + + @property + def list_batch_job_results(self): + """Return the gRPC stub for :meth:`BatchJobServiceClient.list_batch_job_results`. + + Returns the results of the batch job. The job must be done. + Supports standard list paging. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs['batch_job_service_stub'].ListBatchJobResults + + @property + def run_batch_job(self): + """Return the gRPC stub for :meth:`BatchJobServiceClient.run_batch_job`. + + Runs the batch job. + + The Operation.metadata field type is BatchJobMetadata. When finished, the + long running operation will not contain errors or a response. Instead, use + ListBatchJobResults to get the results of the job. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs['batch_job_service_stub'].RunBatchJob + + @property + def add_batch_job_operations(self): + """Return the gRPC stub for :meth:`BatchJobServiceClient.add_batch_job_operations`. + + Add operations to the batch job. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs['batch_job_service_stub'].AddBatchJobOperations \ No newline at end of file diff --git a/google/ads/google_ads/v1/services/transports/bidding_strategy_service_grpc_transport.py b/google/ads/google_ads/v4/services/transports/bidding_strategy_service_grpc_transport.py similarity index 92% rename from google/ads/google_ads/v1/services/transports/bidding_strategy_service_grpc_transport.py rename to google/ads/google_ads/v4/services/transports/bidding_strategy_service_grpc_transport.py index 757dd6074..7105c89d8 100644 --- a/google/ads/google_ads/v1/services/transports/bidding_strategy_service_grpc_transport.py +++ b/google/ads/google_ads/v4/services/transports/bidding_strategy_service_grpc_transport.py @@ -14,14 +14,15 @@ # See the License for the specific language governing permissions and # limitations under the License. + import google.api_core.grpc_helpers -from google.ads.google_ads.v1.proto.services import bidding_strategy_service_pb2_grpc +from google.ads.google_ads.v4.proto.services import bidding_strategy_service_pb2_grpc class BiddingStrategyServiceGrpcTransport(object): """gRPC transport class providing stubs for - google.ads.googleads.v1.services BiddingStrategyService API. + google.ads.googleads.v4.services BiddingStrategyService API. The transport provides access to the raw gRPC stubs, which can be used to take advantage of advanced @@ -29,11 +30,10 @@ class BiddingStrategyServiceGrpcTransport(object): """ # The scopes needed to make gRPC calls to all of the methods defined # in this service. - _OAUTH_SCOPES = () + _OAUTH_SCOPES = ( + ) - def __init__(self, - channel=None, - credentials=None, + def __init__(self, channel=None, credentials=None, address='googleads.googleapis.com:443'): """Instantiate the transport class. @@ -53,7 +53,8 @@ def __init__(self, if channel is not None and credentials is not None: raise ValueError( 'The `channel` and `credentials` arguments are mutually ' - 'exclusive.', ) + 'exclusive.', + ) # Create the channel. if channel is None: @@ -133,5 +134,4 @@ def mutate_bidding_strategies(self): deserialized request object and returns a deserialized response object. """ - return self._stubs[ - 'bidding_strategy_service_stub'].MutateBiddingStrategies + return self._stubs['bidding_strategy_service_stub'].MutateBiddingStrategies \ No newline at end of file diff --git a/google/ads/google_ads/v1/services/transports/billing_setup_service_grpc_transport.py b/google/ads/google_ads/v4/services/transports/billing_setup_service_grpc_transport.py similarity index 94% rename from google/ads/google_ads/v1/services/transports/billing_setup_service_grpc_transport.py rename to google/ads/google_ads/v4/services/transports/billing_setup_service_grpc_transport.py index 9afc9ba92..ec83a80b1 100644 --- a/google/ads/google_ads/v1/services/transports/billing_setup_service_grpc_transport.py +++ b/google/ads/google_ads/v4/services/transports/billing_setup_service_grpc_transport.py @@ -14,14 +14,15 @@ # See the License for the specific language governing permissions and # limitations under the License. + import google.api_core.grpc_helpers -from google.ads.google_ads.v1.proto.services import billing_setup_service_pb2_grpc +from google.ads.google_ads.v4.proto.services import billing_setup_service_pb2_grpc class BillingSetupServiceGrpcTransport(object): """gRPC transport class providing stubs for - google.ads.googleads.v1.services BillingSetupService API. + google.ads.googleads.v4.services BillingSetupService API. The transport provides access to the raw gRPC stubs, which can be used to take advantage of advanced @@ -29,11 +30,10 @@ class BillingSetupServiceGrpcTransport(object): """ # The scopes needed to make gRPC calls to all of the methods defined # in this service. - _OAUTH_SCOPES = () + _OAUTH_SCOPES = ( + ) - def __init__(self, - channel=None, - credentials=None, + def __init__(self, channel=None, credentials=None, address='googleads.googleapis.com:443'): """Instantiate the transport class. @@ -53,7 +53,8 @@ def __init__(self, if channel is not None and credentials is not None: raise ValueError( 'The `channel` and `credentials` arguments are mutually ' - 'exclusive.', ) + 'exclusive.', + ) # Create the channel. if channel is None: @@ -132,4 +133,4 @@ def mutate_billing_setup(self): deserialized request object and returns a deserialized response object. """ - return self._stubs['billing_setup_service_stub'].MutateBillingSetup + return self._stubs['billing_setup_service_stub'].MutateBillingSetup \ No newline at end of file diff --git a/google/ads/google_ads/v1/services/transports/campaign_audience_view_service_grpc_transport.py b/google/ads/google_ads/v4/services/transports/campaign_audience_view_service_grpc_transport.py similarity index 91% rename from google/ads/google_ads/v1/services/transports/campaign_audience_view_service_grpc_transport.py rename to google/ads/google_ads/v4/services/transports/campaign_audience_view_service_grpc_transport.py index dfa53bc2f..fee5a1ab9 100644 --- a/google/ads/google_ads/v1/services/transports/campaign_audience_view_service_grpc_transport.py +++ b/google/ads/google_ads/v4/services/transports/campaign_audience_view_service_grpc_transport.py @@ -14,14 +14,15 @@ # See the License for the specific language governing permissions and # limitations under the License. + import google.api_core.grpc_helpers -from google.ads.google_ads.v1.proto.services import campaign_audience_view_service_pb2_grpc +from google.ads.google_ads.v4.proto.services import campaign_audience_view_service_pb2_grpc class CampaignAudienceViewServiceGrpcTransport(object): """gRPC transport class providing stubs for - google.ads.googleads.v1.services CampaignAudienceViewService API. + google.ads.googleads.v4.services CampaignAudienceViewService API. The transport provides access to the raw gRPC stubs, which can be used to take advantage of advanced @@ -29,11 +30,10 @@ class CampaignAudienceViewServiceGrpcTransport(object): """ # The scopes needed to make gRPC calls to all of the methods defined # in this service. - _OAUTH_SCOPES = () + _OAUTH_SCOPES = ( + ) - def __init__(self, - channel=None, - credentials=None, + def __init__(self, channel=None, credentials=None, address='googleads.googleapis.com:443'): """Instantiate the transport class. @@ -53,7 +53,8 @@ def __init__(self, if channel is not None and credentials is not None: raise ValueError( 'The `channel` and `credentials` arguments are mutually ' - 'exclusive.', ) + 'exclusive.', + ) # Create the channel. if channel is None: @@ -119,5 +120,4 @@ def get_campaign_audience_view(self): deserialized request object and returns a deserialized response object. """ - return self._stubs[ - 'campaign_audience_view_service_stub'].GetCampaignAudienceView + return self._stubs['campaign_audience_view_service_stub'].GetCampaignAudienceView \ No newline at end of file diff --git a/google/ads/google_ads/v1/services/transports/campaign_bid_modifier_service_grpc_transport.py b/google/ads/google_ads/v4/services/transports/campaign_bid_modifier_service_grpc_transport.py similarity index 90% rename from google/ads/google_ads/v1/services/transports/campaign_bid_modifier_service_grpc_transport.py rename to google/ads/google_ads/v4/services/transports/campaign_bid_modifier_service_grpc_transport.py index b3568c746..d8bc5c18c 100644 --- a/google/ads/google_ads/v1/services/transports/campaign_bid_modifier_service_grpc_transport.py +++ b/google/ads/google_ads/v4/services/transports/campaign_bid_modifier_service_grpc_transport.py @@ -14,14 +14,15 @@ # See the License for the specific language governing permissions and # limitations under the License. + import google.api_core.grpc_helpers -from google.ads.google_ads.v1.proto.services import campaign_bid_modifier_service_pb2_grpc +from google.ads.google_ads.v4.proto.services import campaign_bid_modifier_service_pb2_grpc class CampaignBidModifierServiceGrpcTransport(object): """gRPC transport class providing stubs for - google.ads.googleads.v1.services CampaignBidModifierService API. + google.ads.googleads.v4.services CampaignBidModifierService API. The transport provides access to the raw gRPC stubs, which can be used to take advantage of advanced @@ -29,11 +30,10 @@ class CampaignBidModifierServiceGrpcTransport(object): """ # The scopes needed to make gRPC calls to all of the methods defined # in this service. - _OAUTH_SCOPES = () + _OAUTH_SCOPES = ( + ) - def __init__(self, - channel=None, - credentials=None, + def __init__(self, channel=None, credentials=None, address='googleads.googleapis.com:443'): """Instantiate the transport class. @@ -53,7 +53,8 @@ def __init__(self, if channel is not None and credentials is not None: raise ValueError( 'The `channel` and `credentials` arguments are mutually ' - 'exclusive.', ) + 'exclusive.', + ) # Create the channel. if channel is None: @@ -119,8 +120,7 @@ def get_campaign_bid_modifier(self): deserialized request object and returns a deserialized response object. """ - return self._stubs[ - 'campaign_bid_modifier_service_stub'].GetCampaignBidModifier + return self._stubs['campaign_bid_modifier_service_stub'].GetCampaignBidModifier @property def mutate_campaign_bid_modifiers(self): @@ -134,5 +134,4 @@ def mutate_campaign_bid_modifiers(self): deserialized request object and returns a deserialized response object. """ - return self._stubs[ - 'campaign_bid_modifier_service_stub'].MutateCampaignBidModifiers + return self._stubs['campaign_bid_modifier_service_stub'].MutateCampaignBidModifiers \ No newline at end of file diff --git a/google/ads/google_ads/v1/services/transports/campaign_budget_service_grpc_transport.py b/google/ads/google_ads/v4/services/transports/campaign_budget_service_grpc_transport.py similarity index 92% rename from google/ads/google_ads/v1/services/transports/campaign_budget_service_grpc_transport.py rename to google/ads/google_ads/v4/services/transports/campaign_budget_service_grpc_transport.py index 126ceca16..6bc43ad40 100644 --- a/google/ads/google_ads/v1/services/transports/campaign_budget_service_grpc_transport.py +++ b/google/ads/google_ads/v4/services/transports/campaign_budget_service_grpc_transport.py @@ -14,14 +14,15 @@ # See the License for the specific language governing permissions and # limitations under the License. + import google.api_core.grpc_helpers -from google.ads.google_ads.v1.proto.services import campaign_budget_service_pb2_grpc +from google.ads.google_ads.v4.proto.services import campaign_budget_service_pb2_grpc class CampaignBudgetServiceGrpcTransport(object): """gRPC transport class providing stubs for - google.ads.googleads.v1.services CampaignBudgetService API. + google.ads.googleads.v4.services CampaignBudgetService API. The transport provides access to the raw gRPC stubs, which can be used to take advantage of advanced @@ -29,11 +30,10 @@ class CampaignBudgetServiceGrpcTransport(object): """ # The scopes needed to make gRPC calls to all of the methods defined # in this service. - _OAUTH_SCOPES = () + _OAUTH_SCOPES = ( + ) - def __init__(self, - channel=None, - credentials=None, + def __init__(self, channel=None, credentials=None, address='googleads.googleapis.com:443'): """Instantiate the transport class. @@ -53,7 +53,8 @@ def __init__(self, if channel is not None and credentials is not None: raise ValueError( 'The `channel` and `credentials` arguments are mutually ' - 'exclusive.', ) + 'exclusive.', + ) # Create the channel. if channel is None: @@ -133,5 +134,4 @@ def mutate_campaign_budgets(self): deserialized request object and returns a deserialized response object. """ - return self._stubs[ - 'campaign_budget_service_stub'].MutateCampaignBudgets + return self._stubs['campaign_budget_service_stub'].MutateCampaignBudgets \ No newline at end of file diff --git a/google/ads/google_ads/v1/services/transports/campaign_criterion_service_grpc_transport.py b/google/ads/google_ads/v4/services/transports/campaign_criterion_service_grpc_transport.py similarity index 90% rename from google/ads/google_ads/v1/services/transports/campaign_criterion_service_grpc_transport.py rename to google/ads/google_ads/v4/services/transports/campaign_criterion_service_grpc_transport.py index aaab88f34..b48d77d42 100644 --- a/google/ads/google_ads/v1/services/transports/campaign_criterion_service_grpc_transport.py +++ b/google/ads/google_ads/v4/services/transports/campaign_criterion_service_grpc_transport.py @@ -14,14 +14,15 @@ # See the License for the specific language governing permissions and # limitations under the License. + import google.api_core.grpc_helpers -from google.ads.google_ads.v1.proto.services import campaign_criterion_service_pb2_grpc +from google.ads.google_ads.v4.proto.services import campaign_criterion_service_pb2_grpc class CampaignCriterionServiceGrpcTransport(object): """gRPC transport class providing stubs for - google.ads.googleads.v1.services CampaignCriterionService API. + google.ads.googleads.v4.services CampaignCriterionService API. The transport provides access to the raw gRPC stubs, which can be used to take advantage of advanced @@ -29,11 +30,10 @@ class CampaignCriterionServiceGrpcTransport(object): """ # The scopes needed to make gRPC calls to all of the methods defined # in this service. - _OAUTH_SCOPES = () + _OAUTH_SCOPES = ( + ) - def __init__(self, - channel=None, - credentials=None, + def __init__(self, channel=None, credentials=None, address='googleads.googleapis.com:443'): """Instantiate the transport class. @@ -53,7 +53,8 @@ def __init__(self, if channel is not None and credentials is not None: raise ValueError( 'The `channel` and `credentials` arguments are mutually ' - 'exclusive.', ) + 'exclusive.', + ) # Create the channel. if channel is None: @@ -119,8 +120,7 @@ def get_campaign_criterion(self): deserialized request object and returns a deserialized response object. """ - return self._stubs[ - 'campaign_criterion_service_stub'].GetCampaignCriterion + return self._stubs['campaign_criterion_service_stub'].GetCampaignCriterion @property def mutate_campaign_criteria(self): @@ -133,5 +133,4 @@ def mutate_campaign_criteria(self): deserialized request object and returns a deserialized response object. """ - return self._stubs[ - 'campaign_criterion_service_stub'].MutateCampaignCriteria + return self._stubs['campaign_criterion_service_stub'].MutateCampaignCriteria \ No newline at end of file diff --git a/google/ads/google_ads/v1/services/transports/campaign_criterion_simulation_service_grpc_transport.py b/google/ads/google_ads/v4/services/transports/campaign_criterion_simulation_service_grpc_transport.py similarity index 91% rename from google/ads/google_ads/v1/services/transports/campaign_criterion_simulation_service_grpc_transport.py rename to google/ads/google_ads/v4/services/transports/campaign_criterion_simulation_service_grpc_transport.py index 192817274..dbb2df214 100644 --- a/google/ads/google_ads/v1/services/transports/campaign_criterion_simulation_service_grpc_transport.py +++ b/google/ads/google_ads/v4/services/transports/campaign_criterion_simulation_service_grpc_transport.py @@ -14,14 +14,15 @@ # See the License for the specific language governing permissions and # limitations under the License. + import google.api_core.grpc_helpers -from google.ads.google_ads.v1.proto.services import campaign_criterion_simulation_service_pb2_grpc +from google.ads.google_ads.v4.proto.services import campaign_criterion_simulation_service_pb2_grpc class CampaignCriterionSimulationServiceGrpcTransport(object): """gRPC transport class providing stubs for - google.ads.googleads.v1.services CampaignCriterionSimulationService API. + google.ads.googleads.v4.services CampaignCriterionSimulationService API. The transport provides access to the raw gRPC stubs, which can be used to take advantage of advanced @@ -29,11 +30,10 @@ class CampaignCriterionSimulationServiceGrpcTransport(object): """ # The scopes needed to make gRPC calls to all of the methods defined # in this service. - _OAUTH_SCOPES = () + _OAUTH_SCOPES = ( + ) - def __init__(self, - channel=None, - credentials=None, + def __init__(self, channel=None, credentials=None, address='googleads.googleapis.com:443'): """Instantiate the transport class. @@ -53,7 +53,8 @@ def __init__(self, if channel is not None and credentials is not None: raise ValueError( 'The `channel` and `credentials` arguments are mutually ' - 'exclusive.', ) + 'exclusive.', + ) # Create the channel. if channel is None: @@ -119,5 +120,4 @@ def get_campaign_criterion_simulation(self): deserialized request object and returns a deserialized response object. """ - return self._stubs[ - 'campaign_criterion_simulation_service_stub'].GetCampaignCriterionSimulation + return self._stubs['campaign_criterion_simulation_service_stub'].GetCampaignCriterionSimulation \ No newline at end of file diff --git a/google/ads/google_ads/v1/services/transports/campaign_draft_service_grpc_transport.py b/google/ads/google_ads/v4/services/transports/campaign_draft_service_grpc_transport.py similarity index 94% rename from google/ads/google_ads/v1/services/transports/campaign_draft_service_grpc_transport.py rename to google/ads/google_ads/v4/services/transports/campaign_draft_service_grpc_transport.py index 03462a88e..758245b7b 100644 --- a/google/ads/google_ads/v1/services/transports/campaign_draft_service_grpc_transport.py +++ b/google/ads/google_ads/v4/services/transports/campaign_draft_service_grpc_transport.py @@ -14,15 +14,16 @@ # See the License for the specific language governing permissions and # limitations under the License. + import google.api_core.grpc_helpers import google.api_core.operations_v1 -from google.ads.google_ads.v1.proto.services import campaign_draft_service_pb2_grpc +from google.ads.google_ads.v4.proto.services import campaign_draft_service_pb2_grpc class CampaignDraftServiceGrpcTransport(object): """gRPC transport class providing stubs for - google.ads.googleads.v1.services CampaignDraftService API. + google.ads.googleads.v4.services CampaignDraftService API. The transport provides access to the raw gRPC stubs, which can be used to take advantage of advanced @@ -30,11 +31,10 @@ class CampaignDraftServiceGrpcTransport(object): """ # The scopes needed to make gRPC calls to all of the methods defined # in this service. - _OAUTH_SCOPES = () + _OAUTH_SCOPES = ( + ) - def __init__(self, - channel=None, - credentials=None, + def __init__(self, channel=None, credentials=None, address='googleads.googleapis.com:443'): """Instantiate the transport class. @@ -54,7 +54,8 @@ def __init__(self, if channel is not None and credentials is not None: raise ValueError( 'The `channel` and `credentials` arguments are mutually ' - 'exclusive.', ) + 'exclusive.', + ) # Create the channel. if channel is None: @@ -174,5 +175,4 @@ def list_campaign_draft_async_errors(self): deserialized request object and returns a deserialized response object. """ - return self._stubs[ - 'campaign_draft_service_stub'].ListCampaignDraftAsyncErrors + return self._stubs['campaign_draft_service_stub'].ListCampaignDraftAsyncErrors \ No newline at end of file diff --git a/google/ads/google_ads/v1/services/transports/campaign_experiment_service_grpc_transport.py b/google/ads/google_ads/v4/services/transports/campaign_experiment_service_grpc_transport.py similarity index 89% rename from google/ads/google_ads/v1/services/transports/campaign_experiment_service_grpc_transport.py rename to google/ads/google_ads/v4/services/transports/campaign_experiment_service_grpc_transport.py index c0355663f..1fcfa8218 100644 --- a/google/ads/google_ads/v1/services/transports/campaign_experiment_service_grpc_transport.py +++ b/google/ads/google_ads/v4/services/transports/campaign_experiment_service_grpc_transport.py @@ -14,15 +14,16 @@ # See the License for the specific language governing permissions and # limitations under the License. + import google.api_core.grpc_helpers import google.api_core.operations_v1 -from google.ads.google_ads.v1.proto.services import campaign_experiment_service_pb2_grpc +from google.ads.google_ads.v4.proto.services import campaign_experiment_service_pb2_grpc class CampaignExperimentServiceGrpcTransport(object): """gRPC transport class providing stubs for - google.ads.googleads.v1.services CampaignExperimentService API. + google.ads.googleads.v4.services CampaignExperimentService API. The transport provides access to the raw gRPC stubs, which can be used to take advantage of advanced @@ -30,11 +31,10 @@ class CampaignExperimentServiceGrpcTransport(object): """ # The scopes needed to make gRPC calls to all of the methods defined # in this service. - _OAUTH_SCOPES = () + _OAUTH_SCOPES = ( + ) - def __init__(self, - channel=None, - credentials=None, + def __init__(self, channel=None, credentials=None, address='googleads.googleapis.com:443'): """Instantiate the transport class. @@ -54,7 +54,8 @@ def __init__(self, if channel is not None and credentials is not None: raise ValueError( 'The `channel` and `credentials` arguments are mutually ' - 'exclusive.', ) + 'exclusive.', + ) # Create the channel. if channel is None: @@ -124,8 +125,7 @@ def get_campaign_experiment(self): deserialized request object and returns a deserialized response object. """ - return self._stubs[ - 'campaign_experiment_service_stub'].GetCampaignExperiment + return self._stubs['campaign_experiment_service_stub'].GetCampaignExperiment @property def create_campaign_experiment(self): @@ -147,8 +147,7 @@ def create_campaign_experiment(self): deserialized request object and returns a deserialized response object. """ - return self._stubs[ - 'campaign_experiment_service_stub'].CreateCampaignExperiment + return self._stubs['campaign_experiment_service_stub'].CreateCampaignExperiment @property def mutate_campaign_experiments(self): @@ -161,8 +160,7 @@ def mutate_campaign_experiments(self): deserialized request object and returns a deserialized response object. """ - return self._stubs[ - 'campaign_experiment_service_stub'].MutateCampaignExperiments + return self._stubs['campaign_experiment_service_stub'].MutateCampaignExperiments @property def graduate_campaign_experiment(self): @@ -176,8 +174,7 @@ def graduate_campaign_experiment(self): deserialized request object and returns a deserialized response object. """ - return self._stubs[ - 'campaign_experiment_service_stub'].GraduateCampaignExperiment + return self._stubs['campaign_experiment_service_stub'].GraduateCampaignExperiment @property def promote_campaign_experiment(self): @@ -195,8 +192,7 @@ def promote_campaign_experiment(self): deserialized request object and returns a deserialized response object. """ - return self._stubs[ - 'campaign_experiment_service_stub'].PromoteCampaignExperiment + return self._stubs['campaign_experiment_service_stub'].PromoteCampaignExperiment @property def end_campaign_experiment(self): @@ -211,8 +207,7 @@ def end_campaign_experiment(self): deserialized request object and returns a deserialized response object. """ - return self._stubs[ - 'campaign_experiment_service_stub'].EndCampaignExperiment + return self._stubs['campaign_experiment_service_stub'].EndCampaignExperiment @property def list_campaign_experiment_async_errors(self): @@ -227,5 +222,4 @@ def list_campaign_experiment_async_errors(self): deserialized request object and returns a deserialized response object. """ - return self._stubs[ - 'campaign_experiment_service_stub'].ListCampaignExperimentAsyncErrors + return self._stubs['campaign_experiment_service_stub'].ListCampaignExperimentAsyncErrors \ No newline at end of file diff --git a/google/ads/google_ads/v1/services/transports/campaign_extension_setting_service_grpc_transport.py b/google/ads/google_ads/v4/services/transports/campaign_extension_setting_service_grpc_transport.py similarity index 90% rename from google/ads/google_ads/v1/services/transports/campaign_extension_setting_service_grpc_transport.py rename to google/ads/google_ads/v4/services/transports/campaign_extension_setting_service_grpc_transport.py index bd83f7b01..f63d0f41e 100644 --- a/google/ads/google_ads/v1/services/transports/campaign_extension_setting_service_grpc_transport.py +++ b/google/ads/google_ads/v4/services/transports/campaign_extension_setting_service_grpc_transport.py @@ -14,14 +14,15 @@ # See the License for the specific language governing permissions and # limitations under the License. + import google.api_core.grpc_helpers -from google.ads.google_ads.v1.proto.services import campaign_extension_setting_service_pb2_grpc +from google.ads.google_ads.v4.proto.services import campaign_extension_setting_service_pb2_grpc class CampaignExtensionSettingServiceGrpcTransport(object): """gRPC transport class providing stubs for - google.ads.googleads.v1.services CampaignExtensionSettingService API. + google.ads.googleads.v4.services CampaignExtensionSettingService API. The transport provides access to the raw gRPC stubs, which can be used to take advantage of advanced @@ -29,11 +30,10 @@ class CampaignExtensionSettingServiceGrpcTransport(object): """ # The scopes needed to make gRPC calls to all of the methods defined # in this service. - _OAUTH_SCOPES = () + _OAUTH_SCOPES = ( + ) - def __init__(self, - channel=None, - credentials=None, + def __init__(self, channel=None, credentials=None, address='googleads.googleapis.com:443'): """Instantiate the transport class. @@ -53,7 +53,8 @@ def __init__(self, if channel is not None and credentials is not None: raise ValueError( 'The `channel` and `credentials` arguments are mutually ' - 'exclusive.', ) + 'exclusive.', + ) # Create the channel. if channel is None: @@ -119,8 +120,7 @@ def get_campaign_extension_setting(self): deserialized request object and returns a deserialized response object. """ - return self._stubs[ - 'campaign_extension_setting_service_stub'].GetCampaignExtensionSetting + return self._stubs['campaign_extension_setting_service_stub'].GetCampaignExtensionSetting @property def mutate_campaign_extension_settings(self): @@ -134,5 +134,4 @@ def mutate_campaign_extension_settings(self): deserialized request object and returns a deserialized response object. """ - return self._stubs[ - 'campaign_extension_setting_service_stub'].MutateCampaignExtensionSettings + return self._stubs['campaign_extension_setting_service_stub'].MutateCampaignExtensionSettings \ No newline at end of file diff --git a/google/ads/google_ads/v1/services/transports/campaign_feed_service_grpc_transport.py b/google/ads/google_ads/v4/services/transports/campaign_feed_service_grpc_transport.py similarity index 94% rename from google/ads/google_ads/v1/services/transports/campaign_feed_service_grpc_transport.py rename to google/ads/google_ads/v4/services/transports/campaign_feed_service_grpc_transport.py index 5ae297b0b..c7a30a61f 100644 --- a/google/ads/google_ads/v1/services/transports/campaign_feed_service_grpc_transport.py +++ b/google/ads/google_ads/v4/services/transports/campaign_feed_service_grpc_transport.py @@ -14,14 +14,15 @@ # See the License for the specific language governing permissions and # limitations under the License. + import google.api_core.grpc_helpers -from google.ads.google_ads.v1.proto.services import campaign_feed_service_pb2_grpc +from google.ads.google_ads.v4.proto.services import campaign_feed_service_pb2_grpc class CampaignFeedServiceGrpcTransport(object): """gRPC transport class providing stubs for - google.ads.googleads.v1.services CampaignFeedService API. + google.ads.googleads.v4.services CampaignFeedService API. The transport provides access to the raw gRPC stubs, which can be used to take advantage of advanced @@ -29,11 +30,10 @@ class CampaignFeedServiceGrpcTransport(object): """ # The scopes needed to make gRPC calls to all of the methods defined # in this service. - _OAUTH_SCOPES = () + _OAUTH_SCOPES = ( + ) - def __init__(self, - channel=None, - credentials=None, + def __init__(self, channel=None, credentials=None, address='googleads.googleapis.com:443'): """Instantiate the transport class. @@ -53,7 +53,8 @@ def __init__(self, if channel is not None and credentials is not None: raise ValueError( 'The `channel` and `credentials` arguments are mutually ' - 'exclusive.', ) + 'exclusive.', + ) # Create the channel. if channel is None: @@ -133,4 +134,4 @@ def mutate_campaign_feeds(self): deserialized request object and returns a deserialized response object. """ - return self._stubs['campaign_feed_service_stub'].MutateCampaignFeeds + return self._stubs['campaign_feed_service_stub'].MutateCampaignFeeds \ No newline at end of file diff --git a/google/ads/google_ads/v1/services/transports/campaign_label_service_grpc_transport.py b/google/ads/google_ads/v4/services/transports/campaign_label_service_grpc_transport.py similarity index 94% rename from google/ads/google_ads/v1/services/transports/campaign_label_service_grpc_transport.py rename to google/ads/google_ads/v4/services/transports/campaign_label_service_grpc_transport.py index 6fc58ef25..77a02e5f7 100644 --- a/google/ads/google_ads/v1/services/transports/campaign_label_service_grpc_transport.py +++ b/google/ads/google_ads/v4/services/transports/campaign_label_service_grpc_transport.py @@ -14,14 +14,15 @@ # See the License for the specific language governing permissions and # limitations under the License. + import google.api_core.grpc_helpers -from google.ads.google_ads.v1.proto.services import campaign_label_service_pb2_grpc +from google.ads.google_ads.v4.proto.services import campaign_label_service_pb2_grpc class CampaignLabelServiceGrpcTransport(object): """gRPC transport class providing stubs for - google.ads.googleads.v1.services CampaignLabelService API. + google.ads.googleads.v4.services CampaignLabelService API. The transport provides access to the raw gRPC stubs, which can be used to take advantage of advanced @@ -29,11 +30,10 @@ class CampaignLabelServiceGrpcTransport(object): """ # The scopes needed to make gRPC calls to all of the methods defined # in this service. - _OAUTH_SCOPES = () + _OAUTH_SCOPES = ( + ) - def __init__(self, - channel=None, - credentials=None, + def __init__(self, channel=None, credentials=None, address='googleads.googleapis.com:443'): """Instantiate the transport class. @@ -53,7 +53,8 @@ def __init__(self, if channel is not None and credentials is not None: raise ValueError( 'The `channel` and `credentials` arguments are mutually ' - 'exclusive.', ) + 'exclusive.', + ) # Create the channel. if channel is None: @@ -133,4 +134,4 @@ def mutate_campaign_labels(self): deserialized request object and returns a deserialized response object. """ - return self._stubs['campaign_label_service_stub'].MutateCampaignLabels + return self._stubs['campaign_label_service_stub'].MutateCampaignLabels \ No newline at end of file diff --git a/google/ads/google_ads/v1/services/transports/campaign_service_grpc_transport.py b/google/ads/google_ads/v4/services/transports/campaign_service_grpc_transport.py similarity index 94% rename from google/ads/google_ads/v1/services/transports/campaign_service_grpc_transport.py rename to google/ads/google_ads/v4/services/transports/campaign_service_grpc_transport.py index 8818a928c..a4774bba6 100644 --- a/google/ads/google_ads/v1/services/transports/campaign_service_grpc_transport.py +++ b/google/ads/google_ads/v4/services/transports/campaign_service_grpc_transport.py @@ -14,14 +14,15 @@ # See the License for the specific language governing permissions and # limitations under the License. + import google.api_core.grpc_helpers -from google.ads.google_ads.v1.proto.services import campaign_service_pb2_grpc +from google.ads.google_ads.v4.proto.services import campaign_service_pb2_grpc class CampaignServiceGrpcTransport(object): """gRPC transport class providing stubs for - google.ads.googleads.v1.services CampaignService API. + google.ads.googleads.v4.services CampaignService API. The transport provides access to the raw gRPC stubs, which can be used to take advantage of advanced @@ -29,11 +30,10 @@ class CampaignServiceGrpcTransport(object): """ # The scopes needed to make gRPC calls to all of the methods defined # in this service. - _OAUTH_SCOPES = () + _OAUTH_SCOPES = ( + ) - def __init__(self, - channel=None, - credentials=None, + def __init__(self, channel=None, credentials=None, address='googleads.googleapis.com:443'): """Instantiate the transport class. @@ -53,7 +53,8 @@ def __init__(self, if channel is not None and credentials is not None: raise ValueError( 'The `channel` and `credentials` arguments are mutually ' - 'exclusive.', ) + 'exclusive.', + ) # Create the channel. if channel is None: @@ -132,4 +133,4 @@ def mutate_campaigns(self): deserialized request object and returns a deserialized response object. """ - return self._stubs['campaign_service_stub'].MutateCampaigns + return self._stubs['campaign_service_stub'].MutateCampaigns \ No newline at end of file diff --git a/google/ads/google_ads/v1/services/transports/campaign_shared_set_service_grpc_transport.py b/google/ads/google_ads/v4/services/transports/campaign_shared_set_service_grpc_transport.py similarity index 90% rename from google/ads/google_ads/v1/services/transports/campaign_shared_set_service_grpc_transport.py rename to google/ads/google_ads/v4/services/transports/campaign_shared_set_service_grpc_transport.py index 397e4a2c8..795033f8c 100644 --- a/google/ads/google_ads/v1/services/transports/campaign_shared_set_service_grpc_transport.py +++ b/google/ads/google_ads/v4/services/transports/campaign_shared_set_service_grpc_transport.py @@ -14,14 +14,15 @@ # See the License for the specific language governing permissions and # limitations under the License. + import google.api_core.grpc_helpers -from google.ads.google_ads.v1.proto.services import campaign_shared_set_service_pb2_grpc +from google.ads.google_ads.v4.proto.services import campaign_shared_set_service_pb2_grpc class CampaignSharedSetServiceGrpcTransport(object): """gRPC transport class providing stubs for - google.ads.googleads.v1.services CampaignSharedSetService API. + google.ads.googleads.v4.services CampaignSharedSetService API. The transport provides access to the raw gRPC stubs, which can be used to take advantage of advanced @@ -29,11 +30,10 @@ class CampaignSharedSetServiceGrpcTransport(object): """ # The scopes needed to make gRPC calls to all of the methods defined # in this service. - _OAUTH_SCOPES = () + _OAUTH_SCOPES = ( + ) - def __init__(self, - channel=None, - credentials=None, + def __init__(self, channel=None, credentials=None, address='googleads.googleapis.com:443'): """Instantiate the transport class. @@ -53,7 +53,8 @@ def __init__(self, if channel is not None and credentials is not None: raise ValueError( 'The `channel` and `credentials` arguments are mutually ' - 'exclusive.', ) + 'exclusive.', + ) # Create the channel. if channel is None: @@ -119,8 +120,7 @@ def get_campaign_shared_set(self): deserialized request object and returns a deserialized response object. """ - return self._stubs[ - 'campaign_shared_set_service_stub'].GetCampaignSharedSet + return self._stubs['campaign_shared_set_service_stub'].GetCampaignSharedSet @property def mutate_campaign_shared_sets(self): @@ -133,5 +133,4 @@ def mutate_campaign_shared_sets(self): deserialized request object and returns a deserialized response object. """ - return self._stubs[ - 'campaign_shared_set_service_stub'].MutateCampaignSharedSets + return self._stubs['campaign_shared_set_service_stub'].MutateCampaignSharedSets \ No newline at end of file diff --git a/google/ads/google_ads/v1/services/transports/carrier_constant_service_grpc_transport.py b/google/ads/google_ads/v4/services/transports/carrier_constant_service_grpc_transport.py similarity index 93% rename from google/ads/google_ads/v1/services/transports/carrier_constant_service_grpc_transport.py rename to google/ads/google_ads/v4/services/transports/carrier_constant_service_grpc_transport.py index cc30757ad..e402ff531 100644 --- a/google/ads/google_ads/v1/services/transports/carrier_constant_service_grpc_transport.py +++ b/google/ads/google_ads/v4/services/transports/carrier_constant_service_grpc_transport.py @@ -14,14 +14,15 @@ # See the License for the specific language governing permissions and # limitations under the License. + import google.api_core.grpc_helpers -from google.ads.google_ads.v1.proto.services import carrier_constant_service_pb2_grpc +from google.ads.google_ads.v4.proto.services import carrier_constant_service_pb2_grpc class CarrierConstantServiceGrpcTransport(object): """gRPC transport class providing stubs for - google.ads.googleads.v1.services CarrierConstantService API. + google.ads.googleads.v4.services CarrierConstantService API. The transport provides access to the raw gRPC stubs, which can be used to take advantage of advanced @@ -29,11 +30,10 @@ class CarrierConstantServiceGrpcTransport(object): """ # The scopes needed to make gRPC calls to all of the methods defined # in this service. - _OAUTH_SCOPES = () + _OAUTH_SCOPES = ( + ) - def __init__(self, - channel=None, - credentials=None, + def __init__(self, channel=None, credentials=None, address='googleads.googleapis.com:443'): """Instantiate the transport class. @@ -53,7 +53,8 @@ def __init__(self, if channel is not None and credentials is not None: raise ValueError( 'The `channel` and `credentials` arguments are mutually ' - 'exclusive.', ) + 'exclusive.', + ) # Create the channel. if channel is None: @@ -119,4 +120,4 @@ def get_carrier_constant(self): deserialized request object and returns a deserialized response object. """ - return self._stubs['carrier_constant_service_stub'].GetCarrierConstant + return self._stubs['carrier_constant_service_stub'].GetCarrierConstant \ No newline at end of file diff --git a/google/ads/google_ads/v1/services/transports/change_status_service_grpc_transport.py b/google/ads/google_ads/v4/services/transports/change_status_service_grpc_transport.py similarity index 93% rename from google/ads/google_ads/v1/services/transports/change_status_service_grpc_transport.py rename to google/ads/google_ads/v4/services/transports/change_status_service_grpc_transport.py index d33638fe3..d368a0d06 100644 --- a/google/ads/google_ads/v1/services/transports/change_status_service_grpc_transport.py +++ b/google/ads/google_ads/v4/services/transports/change_status_service_grpc_transport.py @@ -14,14 +14,15 @@ # See the License for the specific language governing permissions and # limitations under the License. + import google.api_core.grpc_helpers -from google.ads.google_ads.v1.proto.services import change_status_service_pb2_grpc +from google.ads.google_ads.v4.proto.services import change_status_service_pb2_grpc class ChangeStatusServiceGrpcTransport(object): """gRPC transport class providing stubs for - google.ads.googleads.v1.services ChangeStatusService API. + google.ads.googleads.v4.services ChangeStatusService API. The transport provides access to the raw gRPC stubs, which can be used to take advantage of advanced @@ -29,11 +30,10 @@ class ChangeStatusServiceGrpcTransport(object): """ # The scopes needed to make gRPC calls to all of the methods defined # in this service. - _OAUTH_SCOPES = () + _OAUTH_SCOPES = ( + ) - def __init__(self, - channel=None, - credentials=None, + def __init__(self, channel=None, credentials=None, address='googleads.googleapis.com:443'): """Instantiate the transport class. @@ -53,7 +53,8 @@ def __init__(self, if channel is not None and credentials is not None: raise ValueError( 'The `channel` and `credentials` arguments are mutually ' - 'exclusive.', ) + 'exclusive.', + ) # Create the channel. if channel is None: @@ -119,4 +120,4 @@ def get_change_status(self): deserialized request object and returns a deserialized response object. """ - return self._stubs['change_status_service_stub'].GetChangeStatus + return self._stubs['change_status_service_stub'].GetChangeStatus \ No newline at end of file diff --git a/google/ads/google_ads/v1/services/transports/click_view_service_grpc_transport.py b/google/ads/google_ads/v4/services/transports/click_view_service_grpc_transport.py similarity index 93% rename from google/ads/google_ads/v1/services/transports/click_view_service_grpc_transport.py rename to google/ads/google_ads/v4/services/transports/click_view_service_grpc_transport.py index 0ed1be701..73822c92a 100644 --- a/google/ads/google_ads/v1/services/transports/click_view_service_grpc_transport.py +++ b/google/ads/google_ads/v4/services/transports/click_view_service_grpc_transport.py @@ -14,14 +14,15 @@ # See the License for the specific language governing permissions and # limitations under the License. + import google.api_core.grpc_helpers -from google.ads.google_ads.v1.proto.services import click_view_service_pb2_grpc +from google.ads.google_ads.v4.proto.services import click_view_service_pb2_grpc class ClickViewServiceGrpcTransport(object): """gRPC transport class providing stubs for - google.ads.googleads.v1.services ClickViewService API. + google.ads.googleads.v4.services ClickViewService API. The transport provides access to the raw gRPC stubs, which can be used to take advantage of advanced @@ -29,11 +30,10 @@ class ClickViewServiceGrpcTransport(object): """ # The scopes needed to make gRPC calls to all of the methods defined # in this service. - _OAUTH_SCOPES = () + _OAUTH_SCOPES = ( + ) - def __init__(self, - channel=None, - credentials=None, + def __init__(self, channel=None, credentials=None, address='googleads.googleapis.com:443'): """Instantiate the transport class. @@ -53,7 +53,8 @@ def __init__(self, if channel is not None and credentials is not None: raise ValueError( 'The `channel` and `credentials` arguments are mutually ' - 'exclusive.', ) + 'exclusive.', + ) # Create the channel. if channel is None: @@ -119,4 +120,4 @@ def get_click_view(self): deserialized request object and returns a deserialized response object. """ - return self._stubs['click_view_service_stub'].GetClickView + return self._stubs['click_view_service_stub'].GetClickView \ No newline at end of file diff --git a/google/ads/google_ads/v1/services/transports/conversion_action_service_grpc_transport.py b/google/ads/google_ads/v4/services/transports/conversion_action_service_grpc_transport.py similarity index 90% rename from google/ads/google_ads/v1/services/transports/conversion_action_service_grpc_transport.py rename to google/ads/google_ads/v4/services/transports/conversion_action_service_grpc_transport.py index e11ab666c..a4d4db7ed 100644 --- a/google/ads/google_ads/v1/services/transports/conversion_action_service_grpc_transport.py +++ b/google/ads/google_ads/v4/services/transports/conversion_action_service_grpc_transport.py @@ -14,14 +14,15 @@ # See the License for the specific language governing permissions and # limitations under the License. + import google.api_core.grpc_helpers -from google.ads.google_ads.v1.proto.services import conversion_action_service_pb2_grpc +from google.ads.google_ads.v4.proto.services import conversion_action_service_pb2_grpc class ConversionActionServiceGrpcTransport(object): """gRPC transport class providing stubs for - google.ads.googleads.v1.services ConversionActionService API. + google.ads.googleads.v4.services ConversionActionService API. The transport provides access to the raw gRPC stubs, which can be used to take advantage of advanced @@ -29,11 +30,10 @@ class ConversionActionServiceGrpcTransport(object): """ # The scopes needed to make gRPC calls to all of the methods defined # in this service. - _OAUTH_SCOPES = () + _OAUTH_SCOPES = ( + ) - def __init__(self, - channel=None, - credentials=None, + def __init__(self, channel=None, credentials=None, address='googleads.googleapis.com:443'): """Instantiate the transport class. @@ -53,7 +53,8 @@ def __init__(self, if channel is not None and credentials is not None: raise ValueError( 'The `channel` and `credentials` arguments are mutually ' - 'exclusive.', ) + 'exclusive.', + ) # Create the channel. if channel is None: @@ -119,8 +120,7 @@ def get_conversion_action(self): deserialized request object and returns a deserialized response object. """ - return self._stubs[ - 'conversion_action_service_stub'].GetConversionAction + return self._stubs['conversion_action_service_stub'].GetConversionAction @property def mutate_conversion_actions(self): @@ -134,5 +134,4 @@ def mutate_conversion_actions(self): deserialized request object and returns a deserialized response object. """ - return self._stubs[ - 'conversion_action_service_stub'].MutateConversionActions + return self._stubs['conversion_action_service_stub'].MutateConversionActions \ No newline at end of file diff --git a/google/ads/google_ads/v1/services/transports/conversion_adjustment_upload_service_grpc_transport.py b/google/ads/google_ads/v4/services/transports/conversion_adjustment_upload_service_grpc_transport.py similarity index 91% rename from google/ads/google_ads/v1/services/transports/conversion_adjustment_upload_service_grpc_transport.py rename to google/ads/google_ads/v4/services/transports/conversion_adjustment_upload_service_grpc_transport.py index 16de30245..38029fddd 100644 --- a/google/ads/google_ads/v1/services/transports/conversion_adjustment_upload_service_grpc_transport.py +++ b/google/ads/google_ads/v4/services/transports/conversion_adjustment_upload_service_grpc_transport.py @@ -14,14 +14,15 @@ # See the License for the specific language governing permissions and # limitations under the License. + import google.api_core.grpc_helpers -from google.ads.google_ads.v1.proto.services import conversion_adjustment_upload_service_pb2_grpc +from google.ads.google_ads.v4.proto.services import conversion_adjustment_upload_service_pb2_grpc class ConversionAdjustmentUploadServiceGrpcTransport(object): """gRPC transport class providing stubs for - google.ads.googleads.v1.services ConversionAdjustmentUploadService API. + google.ads.googleads.v4.services ConversionAdjustmentUploadService API. The transport provides access to the raw gRPC stubs, which can be used to take advantage of advanced @@ -29,11 +30,10 @@ class ConversionAdjustmentUploadServiceGrpcTransport(object): """ # The scopes needed to make gRPC calls to all of the methods defined # in this service. - _OAUTH_SCOPES = () + _OAUTH_SCOPES = ( + ) - def __init__(self, - channel=None, - credentials=None, + def __init__(self, channel=None, credentials=None, address='googleads.googleapis.com:443'): """Instantiate the transport class. @@ -53,7 +53,8 @@ def __init__(self, if channel is not None and credentials is not None: raise ValueError( 'The `channel` and `credentials` arguments are mutually ' - 'exclusive.', ) + 'exclusive.', + ) # Create the channel. if channel is None: @@ -119,5 +120,4 @@ def upload_conversion_adjustments(self): deserialized request object and returns a deserialized response object. """ - return self._stubs[ - 'conversion_adjustment_upload_service_stub'].UploadConversionAdjustments + return self._stubs['conversion_adjustment_upload_service_stub'].UploadConversionAdjustments \ No newline at end of file diff --git a/google/ads/google_ads/v1/services/transports/conversion_upload_service_grpc_transport.py b/google/ads/google_ads/v4/services/transports/conversion_upload_service_grpc_transport.py similarity index 90% rename from google/ads/google_ads/v1/services/transports/conversion_upload_service_grpc_transport.py rename to google/ads/google_ads/v4/services/transports/conversion_upload_service_grpc_transport.py index 4e879c9ed..ef5c43a00 100644 --- a/google/ads/google_ads/v1/services/transports/conversion_upload_service_grpc_transport.py +++ b/google/ads/google_ads/v4/services/transports/conversion_upload_service_grpc_transport.py @@ -14,14 +14,15 @@ # See the License for the specific language governing permissions and # limitations under the License. + import google.api_core.grpc_helpers -from google.ads.google_ads.v1.proto.services import conversion_upload_service_pb2_grpc +from google.ads.google_ads.v4.proto.services import conversion_upload_service_pb2_grpc class ConversionUploadServiceGrpcTransport(object): """gRPC transport class providing stubs for - google.ads.googleads.v1.services ConversionUploadService API. + google.ads.googleads.v4.services ConversionUploadService API. The transport provides access to the raw gRPC stubs, which can be used to take advantage of advanced @@ -29,11 +30,10 @@ class ConversionUploadServiceGrpcTransport(object): """ # The scopes needed to make gRPC calls to all of the methods defined # in this service. - _OAUTH_SCOPES = () + _OAUTH_SCOPES = ( + ) - def __init__(self, - channel=None, - credentials=None, + def __init__(self, channel=None, credentials=None, address='googleads.googleapis.com:443'): """Instantiate the transport class. @@ -53,7 +53,8 @@ def __init__(self, if channel is not None and credentials is not None: raise ValueError( 'The `channel` and `credentials` arguments are mutually ' - 'exclusive.', ) + 'exclusive.', + ) # Create the channel. if channel is None: @@ -119,8 +120,7 @@ def upload_click_conversions(self): deserialized request object and returns a deserialized response object. """ - return self._stubs[ - 'conversion_upload_service_stub'].UploadClickConversions + return self._stubs['conversion_upload_service_stub'].UploadClickConversions @property def upload_call_conversions(self): @@ -133,5 +133,4 @@ def upload_call_conversions(self): deserialized request object and returns a deserialized response object. """ - return self._stubs[ - 'conversion_upload_service_stub'].UploadCallConversions + return self._stubs['conversion_upload_service_stub'].UploadCallConversions \ No newline at end of file diff --git a/google/ads/google_ads/v4/services/transports/currency_constant_service_grpc_transport.py b/google/ads/google_ads/v4/services/transports/currency_constant_service_grpc_transport.py new file mode 100644 index 000000000..a49ca224e --- /dev/null +++ b/google/ads/google_ads/v4/services/transports/currency_constant_service_grpc_transport.py @@ -0,0 +1,123 @@ +# -*- coding: utf-8 -*- +# +# 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. + + +import google.api_core.grpc_helpers + +from google.ads.google_ads.v4.proto.services import currency_constant_service_pb2_grpc + + +class CurrencyConstantServiceGrpcTransport(object): + """gRPC transport class providing stubs for + google.ads.googleads.v4.services CurrencyConstantService API. + + The transport provides access to the raw gRPC stubs, + which can be used to take advantage of advanced + features of gRPC. + """ + # The scopes needed to make gRPC calls to all of the methods defined + # in this service. + _OAUTH_SCOPES = ( + ) + + def __init__(self, channel=None, credentials=None, + address='googleads.googleapis.com:443'): + """Instantiate the transport class. + + Args: + channel (grpc.Channel): A ``Channel`` instance through + which to make calls. This argument is mutually exclusive + with ``credentials``; providing both will raise an exception. + credentials (google.auth.credentials.Credentials): The + authorization credentials to attach to requests. These + credentials identify this application to the service. If none + are specified, the client will attempt to ascertain the + credentials from the environment. + address (str): The address where the service is hosted. + """ + # If both `channel` and `credentials` are specified, raise an + # exception (channels come with credentials baked in already). + if channel is not None and credentials is not None: + raise ValueError( + 'The `channel` and `credentials` arguments are mutually ' + 'exclusive.', + ) + + # Create the channel. + if channel is None: + channel = self.create_channel( + address=address, + credentials=credentials, + ) + + self._channel = channel + + # gRPC uses objects called "stubs" that are bound to the + # channel and provide a basic method for each RPC. + self._stubs = { + 'currency_constant_service_stub': currency_constant_service_pb2_grpc.CurrencyConstantServiceStub(channel), + } + + + @classmethod + def create_channel( + cls, + address='googleads.googleapis.com:443', + credentials=None, + **kwargs): + """Create and return a gRPC channel object. + + Args: + address (str): The host for the channel to use. + credentials (~.Credentials): The + authorization credentials to attach to requests. These + credentials identify this application to the service. If + none are specified, the client will attempt to ascertain + the credentials from the environment. + kwargs (dict): Keyword arguments, which are passed to the + channel creation. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return google.api_core.grpc_helpers.create_channel( + address, + credentials=credentials, + scopes=cls._OAUTH_SCOPES, + **kwargs + ) + + @property + def channel(self): + """The gRPC channel used by the transport. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return self._channel + + @property + def get_currency_constant(self): + """Return the gRPC stub for :meth:`CurrencyConstantServiceClient.get_currency_constant`. + + Returns the requested currency constant. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs['currency_constant_service_stub'].GetCurrencyConstant \ No newline at end of file diff --git a/google/ads/google_ads/v1/services/transports/custom_interest_service_grpc_transport.py b/google/ads/google_ads/v4/services/transports/custom_interest_service_grpc_transport.py similarity index 92% rename from google/ads/google_ads/v1/services/transports/custom_interest_service_grpc_transport.py rename to google/ads/google_ads/v4/services/transports/custom_interest_service_grpc_transport.py index 0070b3443..382b949fd 100644 --- a/google/ads/google_ads/v1/services/transports/custom_interest_service_grpc_transport.py +++ b/google/ads/google_ads/v4/services/transports/custom_interest_service_grpc_transport.py @@ -14,14 +14,15 @@ # See the License for the specific language governing permissions and # limitations under the License. + import google.api_core.grpc_helpers -from google.ads.google_ads.v1.proto.services import custom_interest_service_pb2_grpc +from google.ads.google_ads.v4.proto.services import custom_interest_service_pb2_grpc class CustomInterestServiceGrpcTransport(object): """gRPC transport class providing stubs for - google.ads.googleads.v1.services CustomInterestService API. + google.ads.googleads.v4.services CustomInterestService API. The transport provides access to the raw gRPC stubs, which can be used to take advantage of advanced @@ -29,11 +30,10 @@ class CustomInterestServiceGrpcTransport(object): """ # The scopes needed to make gRPC calls to all of the methods defined # in this service. - _OAUTH_SCOPES = () + _OAUTH_SCOPES = ( + ) - def __init__(self, - channel=None, - credentials=None, + def __init__(self, channel=None, credentials=None, address='googleads.googleapis.com:443'): """Instantiate the transport class. @@ -53,7 +53,8 @@ def __init__(self, if channel is not None and credentials is not None: raise ValueError( 'The `channel` and `credentials` arguments are mutually ' - 'exclusive.', ) + 'exclusive.', + ) # Create the channel. if channel is None: @@ -132,5 +133,4 @@ def mutate_custom_interests(self): deserialized request object and returns a deserialized response object. """ - return self._stubs[ - 'custom_interest_service_stub'].MutateCustomInterests + return self._stubs['custom_interest_service_stub'].MutateCustomInterests \ No newline at end of file diff --git a/google/ads/google_ads/v1/services/transports/customer_client_link_service_grpc_transport.py b/google/ads/google_ads/v4/services/transports/customer_client_link_service_grpc_transport.py similarity index 90% rename from google/ads/google_ads/v1/services/transports/customer_client_link_service_grpc_transport.py rename to google/ads/google_ads/v4/services/transports/customer_client_link_service_grpc_transport.py index ec67bb608..cf427e25d 100644 --- a/google/ads/google_ads/v1/services/transports/customer_client_link_service_grpc_transport.py +++ b/google/ads/google_ads/v4/services/transports/customer_client_link_service_grpc_transport.py @@ -14,14 +14,15 @@ # See the License for the specific language governing permissions and # limitations under the License. + import google.api_core.grpc_helpers -from google.ads.google_ads.v1.proto.services import customer_client_link_service_pb2_grpc +from google.ads.google_ads.v4.proto.services import customer_client_link_service_pb2_grpc class CustomerClientLinkServiceGrpcTransport(object): """gRPC transport class providing stubs for - google.ads.googleads.v1.services CustomerClientLinkService API. + google.ads.googleads.v4.services CustomerClientLinkService API. The transport provides access to the raw gRPC stubs, which can be used to take advantage of advanced @@ -29,11 +30,10 @@ class CustomerClientLinkServiceGrpcTransport(object): """ # The scopes needed to make gRPC calls to all of the methods defined # in this service. - _OAUTH_SCOPES = () + _OAUTH_SCOPES = ( + ) - def __init__(self, - channel=None, - credentials=None, + def __init__(self, channel=None, credentials=None, address='googleads.googleapis.com:443'): """Instantiate the transport class. @@ -53,7 +53,8 @@ def __init__(self, if channel is not None and credentials is not None: raise ValueError( 'The `channel` and `credentials` arguments are mutually ' - 'exclusive.', ) + 'exclusive.', + ) # Create the channel. if channel is None: @@ -119,8 +120,7 @@ def get_customer_client_link(self): deserialized request object and returns a deserialized response object. """ - return self._stubs[ - 'customer_client_link_service_stub'].GetCustomerClientLink + return self._stubs['customer_client_link_service_stub'].GetCustomerClientLink @property def mutate_customer_client_link(self): @@ -133,5 +133,4 @@ def mutate_customer_client_link(self): deserialized request object and returns a deserialized response object. """ - return self._stubs[ - 'customer_client_link_service_stub'].MutateCustomerClientLink + return self._stubs['customer_client_link_service_stub'].MutateCustomerClientLink \ No newline at end of file diff --git a/google/ads/google_ads/v1/services/transports/customer_client_service_grpc_transport.py b/google/ads/google_ads/v4/services/transports/customer_client_service_grpc_transport.py similarity index 93% rename from google/ads/google_ads/v1/services/transports/customer_client_service_grpc_transport.py rename to google/ads/google_ads/v4/services/transports/customer_client_service_grpc_transport.py index 7f5ee0fe4..e394ceb27 100644 --- a/google/ads/google_ads/v1/services/transports/customer_client_service_grpc_transport.py +++ b/google/ads/google_ads/v4/services/transports/customer_client_service_grpc_transport.py @@ -14,14 +14,15 @@ # See the License for the specific language governing permissions and # limitations under the License. + import google.api_core.grpc_helpers -from google.ads.google_ads.v1.proto.services import customer_client_service_pb2_grpc +from google.ads.google_ads.v4.proto.services import customer_client_service_pb2_grpc class CustomerClientServiceGrpcTransport(object): """gRPC transport class providing stubs for - google.ads.googleads.v1.services CustomerClientService API. + google.ads.googleads.v4.services CustomerClientService API. The transport provides access to the raw gRPC stubs, which can be used to take advantage of advanced @@ -29,11 +30,10 @@ class CustomerClientServiceGrpcTransport(object): """ # The scopes needed to make gRPC calls to all of the methods defined # in this service. - _OAUTH_SCOPES = () + _OAUTH_SCOPES = ( + ) - def __init__(self, - channel=None, - credentials=None, + def __init__(self, channel=None, credentials=None, address='googleads.googleapis.com:443'): """Instantiate the transport class. @@ -53,7 +53,8 @@ def __init__(self, if channel is not None and credentials is not None: raise ValueError( 'The `channel` and `credentials` arguments are mutually ' - 'exclusive.', ) + 'exclusive.', + ) # Create the channel. if channel is None: @@ -119,4 +120,4 @@ def get_customer_client(self): deserialized request object and returns a deserialized response object. """ - return self._stubs['customer_client_service_stub'].GetCustomerClient + return self._stubs['customer_client_service_stub'].GetCustomerClient \ No newline at end of file diff --git a/google/ads/google_ads/v1/services/transports/customer_extension_setting_service_grpc_transport.py b/google/ads/google_ads/v4/services/transports/customer_extension_setting_service_grpc_transport.py similarity index 90% rename from google/ads/google_ads/v1/services/transports/customer_extension_setting_service_grpc_transport.py rename to google/ads/google_ads/v4/services/transports/customer_extension_setting_service_grpc_transport.py index aace80fa3..59f1a39c2 100644 --- a/google/ads/google_ads/v1/services/transports/customer_extension_setting_service_grpc_transport.py +++ b/google/ads/google_ads/v4/services/transports/customer_extension_setting_service_grpc_transport.py @@ -14,14 +14,15 @@ # See the License for the specific language governing permissions and # limitations under the License. + import google.api_core.grpc_helpers -from google.ads.google_ads.v1.proto.services import customer_extension_setting_service_pb2_grpc +from google.ads.google_ads.v4.proto.services import customer_extension_setting_service_pb2_grpc class CustomerExtensionSettingServiceGrpcTransport(object): """gRPC transport class providing stubs for - google.ads.googleads.v1.services CustomerExtensionSettingService API. + google.ads.googleads.v4.services CustomerExtensionSettingService API. The transport provides access to the raw gRPC stubs, which can be used to take advantage of advanced @@ -29,11 +30,10 @@ class CustomerExtensionSettingServiceGrpcTransport(object): """ # The scopes needed to make gRPC calls to all of the methods defined # in this service. - _OAUTH_SCOPES = () + _OAUTH_SCOPES = ( + ) - def __init__(self, - channel=None, - credentials=None, + def __init__(self, channel=None, credentials=None, address='googleads.googleapis.com:443'): """Instantiate the transport class. @@ -53,7 +53,8 @@ def __init__(self, if channel is not None and credentials is not None: raise ValueError( 'The `channel` and `credentials` arguments are mutually ' - 'exclusive.', ) + 'exclusive.', + ) # Create the channel. if channel is None: @@ -119,8 +120,7 @@ def get_customer_extension_setting(self): deserialized request object and returns a deserialized response object. """ - return self._stubs[ - 'customer_extension_setting_service_stub'].GetCustomerExtensionSetting + return self._stubs['customer_extension_setting_service_stub'].GetCustomerExtensionSetting @property def mutate_customer_extension_settings(self): @@ -134,5 +134,4 @@ def mutate_customer_extension_settings(self): deserialized request object and returns a deserialized response object. """ - return self._stubs[ - 'customer_extension_setting_service_stub'].MutateCustomerExtensionSettings + return self._stubs['customer_extension_setting_service_stub'].MutateCustomerExtensionSettings \ No newline at end of file diff --git a/google/ads/google_ads/v1/services/transports/customer_feed_service_grpc_transport.py b/google/ads/google_ads/v4/services/transports/customer_feed_service_grpc_transport.py similarity index 94% rename from google/ads/google_ads/v1/services/transports/customer_feed_service_grpc_transport.py rename to google/ads/google_ads/v4/services/transports/customer_feed_service_grpc_transport.py index a2c68706f..a07651e55 100644 --- a/google/ads/google_ads/v1/services/transports/customer_feed_service_grpc_transport.py +++ b/google/ads/google_ads/v4/services/transports/customer_feed_service_grpc_transport.py @@ -14,14 +14,15 @@ # See the License for the specific language governing permissions and # limitations under the License. + import google.api_core.grpc_helpers -from google.ads.google_ads.v1.proto.services import customer_feed_service_pb2_grpc +from google.ads.google_ads.v4.proto.services import customer_feed_service_pb2_grpc class CustomerFeedServiceGrpcTransport(object): """gRPC transport class providing stubs for - google.ads.googleads.v1.services CustomerFeedService API. + google.ads.googleads.v4.services CustomerFeedService API. The transport provides access to the raw gRPC stubs, which can be used to take advantage of advanced @@ -29,11 +30,10 @@ class CustomerFeedServiceGrpcTransport(object): """ # The scopes needed to make gRPC calls to all of the methods defined # in this service. - _OAUTH_SCOPES = () + _OAUTH_SCOPES = ( + ) - def __init__(self, - channel=None, - credentials=None, + def __init__(self, channel=None, credentials=None, address='googleads.googleapis.com:443'): """Instantiate the transport class. @@ -53,7 +53,8 @@ def __init__(self, if channel is not None and credentials is not None: raise ValueError( 'The `channel` and `credentials` arguments are mutually ' - 'exclusive.', ) + 'exclusive.', + ) # Create the channel. if channel is None: @@ -133,4 +134,4 @@ def mutate_customer_feeds(self): deserialized request object and returns a deserialized response object. """ - return self._stubs['customer_feed_service_stub'].MutateCustomerFeeds + return self._stubs['customer_feed_service_stub'].MutateCustomerFeeds \ No newline at end of file diff --git a/google/ads/google_ads/v1/services/transports/customer_label_service_grpc_transport.py b/google/ads/google_ads/v4/services/transports/customer_label_service_grpc_transport.py similarity index 94% rename from google/ads/google_ads/v1/services/transports/customer_label_service_grpc_transport.py rename to google/ads/google_ads/v4/services/transports/customer_label_service_grpc_transport.py index 9a3fdfec0..6653a0abd 100644 --- a/google/ads/google_ads/v1/services/transports/customer_label_service_grpc_transport.py +++ b/google/ads/google_ads/v4/services/transports/customer_label_service_grpc_transport.py @@ -14,14 +14,15 @@ # See the License for the specific language governing permissions and # limitations under the License. + import google.api_core.grpc_helpers -from google.ads.google_ads.v1.proto.services import customer_label_service_pb2_grpc +from google.ads.google_ads.v4.proto.services import customer_label_service_pb2_grpc class CustomerLabelServiceGrpcTransport(object): """gRPC transport class providing stubs for - google.ads.googleads.v1.services CustomerLabelService API. + google.ads.googleads.v4.services CustomerLabelService API. The transport provides access to the raw gRPC stubs, which can be used to take advantage of advanced @@ -29,11 +30,10 @@ class CustomerLabelServiceGrpcTransport(object): """ # The scopes needed to make gRPC calls to all of the methods defined # in this service. - _OAUTH_SCOPES = () + _OAUTH_SCOPES = ( + ) - def __init__(self, - channel=None, - credentials=None, + def __init__(self, channel=None, credentials=None, address='googleads.googleapis.com:443'): """Instantiate the transport class. @@ -53,7 +53,8 @@ def __init__(self, if channel is not None and credentials is not None: raise ValueError( 'The `channel` and `credentials` arguments are mutually ' - 'exclusive.', ) + 'exclusive.', + ) # Create the channel. if channel is None: @@ -133,4 +134,4 @@ def mutate_customer_labels(self): deserialized request object and returns a deserialized response object. """ - return self._stubs['customer_label_service_stub'].MutateCustomerLabels + return self._stubs['customer_label_service_stub'].MutateCustomerLabels \ No newline at end of file diff --git a/google/ads/google_ads/v1/services/transports/customer_manager_link_service_grpc_transport.py b/google/ads/google_ads/v4/services/transports/customer_manager_link_service_grpc_transport.py similarity index 79% rename from google/ads/google_ads/v1/services/transports/customer_manager_link_service_grpc_transport.py rename to google/ads/google_ads/v4/services/transports/customer_manager_link_service_grpc_transport.py index 81bf1203d..dd59a42dc 100644 --- a/google/ads/google_ads/v1/services/transports/customer_manager_link_service_grpc_transport.py +++ b/google/ads/google_ads/v4/services/transports/customer_manager_link_service_grpc_transport.py @@ -14,14 +14,15 @@ # See the License for the specific language governing permissions and # limitations under the License. + import google.api_core.grpc_helpers -from google.ads.google_ads.v1.proto.services import customer_manager_link_service_pb2_grpc +from google.ads.google_ads.v4.proto.services import customer_manager_link_service_pb2_grpc class CustomerManagerLinkServiceGrpcTransport(object): """gRPC transport class providing stubs for - google.ads.googleads.v1.services CustomerManagerLinkService API. + google.ads.googleads.v4.services CustomerManagerLinkService API. The transport provides access to the raw gRPC stubs, which can be used to take advantage of advanced @@ -29,11 +30,10 @@ class CustomerManagerLinkServiceGrpcTransport(object): """ # The scopes needed to make gRPC calls to all of the methods defined # in this service. - _OAUTH_SCOPES = () + _OAUTH_SCOPES = ( + ) - def __init__(self, - channel=None, - credentials=None, + def __init__(self, channel=None, credentials=None, address='googleads.googleapis.com:443'): """Instantiate the transport class. @@ -53,7 +53,8 @@ def __init__(self, if channel is not None and credentials is not None: raise ValueError( 'The `channel` and `credentials` arguments are mutually ' - 'exclusive.', ) + 'exclusive.', + ) # Create the channel. if channel is None: @@ -119,8 +120,7 @@ def get_customer_manager_link(self): deserialized request object and returns a deserialized response object. """ - return self._stubs[ - 'customer_manager_link_service_stub'].GetCustomerManagerLink + return self._stubs['customer_manager_link_service_stub'].GetCustomerManagerLink @property def mutate_customer_manager_link(self): @@ -133,5 +133,21 @@ def mutate_customer_manager_link(self): deserialized request object and returns a deserialized response object. """ - return self._stubs[ - 'customer_manager_link_service_stub'].MutateCustomerManagerLink + return self._stubs['customer_manager_link_service_stub'].MutateCustomerManagerLink + + @property + def move_manager_link(self): + """Return the gRPC stub for :meth:`CustomerManagerLinkServiceClient.move_manager_link`. + + Moves a client customer to a new manager customer. + This simplifies the complex request that requires two operations to move + a client customer to a new manager. i.e: + 1. Update operation with Status INACTIVE (previous manager) and, + 2. Update operation with Status ACTIVE (new manager). + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs['customer_manager_link_service_stub'].MoveManagerLink \ No newline at end of file diff --git a/google/ads/google_ads/v1/services/transports/customer_negative_criterion_service_grpc_transport.py b/google/ads/google_ads/v4/services/transports/customer_negative_criterion_service_grpc_transport.py similarity index 90% rename from google/ads/google_ads/v1/services/transports/customer_negative_criterion_service_grpc_transport.py rename to google/ads/google_ads/v4/services/transports/customer_negative_criterion_service_grpc_transport.py index 4ea0bf60f..952a79fb6 100644 --- a/google/ads/google_ads/v1/services/transports/customer_negative_criterion_service_grpc_transport.py +++ b/google/ads/google_ads/v4/services/transports/customer_negative_criterion_service_grpc_transport.py @@ -14,14 +14,15 @@ # See the License for the specific language governing permissions and # limitations under the License. + import google.api_core.grpc_helpers -from google.ads.google_ads.v1.proto.services import customer_negative_criterion_service_pb2_grpc +from google.ads.google_ads.v4.proto.services import customer_negative_criterion_service_pb2_grpc class CustomerNegativeCriterionServiceGrpcTransport(object): """gRPC transport class providing stubs for - google.ads.googleads.v1.services CustomerNegativeCriterionService API. + google.ads.googleads.v4.services CustomerNegativeCriterionService API. The transport provides access to the raw gRPC stubs, which can be used to take advantage of advanced @@ -29,11 +30,10 @@ class CustomerNegativeCriterionServiceGrpcTransport(object): """ # The scopes needed to make gRPC calls to all of the methods defined # in this service. - _OAUTH_SCOPES = () + _OAUTH_SCOPES = ( + ) - def __init__(self, - channel=None, - credentials=None, + def __init__(self, channel=None, credentials=None, address='googleads.googleapis.com:443'): """Instantiate the transport class. @@ -53,7 +53,8 @@ def __init__(self, if channel is not None and credentials is not None: raise ValueError( 'The `channel` and `credentials` arguments are mutually ' - 'exclusive.', ) + 'exclusive.', + ) # Create the channel. if channel is None: @@ -119,8 +120,7 @@ def get_customer_negative_criterion(self): deserialized request object and returns a deserialized response object. """ - return self._stubs[ - 'customer_negative_criterion_service_stub'].GetCustomerNegativeCriterion + return self._stubs['customer_negative_criterion_service_stub'].GetCustomerNegativeCriterion @property def mutate_customer_negative_criteria(self): @@ -133,5 +133,4 @@ def mutate_customer_negative_criteria(self): deserialized request object and returns a deserialized response object. """ - return self._stubs[ - 'customer_negative_criterion_service_stub'].MutateCustomerNegativeCriteria + return self._stubs['customer_negative_criterion_service_stub'].MutateCustomerNegativeCriteria \ No newline at end of file diff --git a/google/ads/google_ads/v1/services/transports/customer_service_grpc_transport.py b/google/ads/google_ads/v4/services/transports/customer_service_grpc_transport.py similarity index 95% rename from google/ads/google_ads/v1/services/transports/customer_service_grpc_transport.py rename to google/ads/google_ads/v4/services/transports/customer_service_grpc_transport.py index 8d2c525cd..e6400f137 100644 --- a/google/ads/google_ads/v1/services/transports/customer_service_grpc_transport.py +++ b/google/ads/google_ads/v4/services/transports/customer_service_grpc_transport.py @@ -14,14 +14,15 @@ # See the License for the specific language governing permissions and # limitations under the License. + import google.api_core.grpc_helpers -from google.ads.google_ads.v1.proto.services import customer_service_pb2_grpc +from google.ads.google_ads.v4.proto.services import customer_service_pb2_grpc class CustomerServiceGrpcTransport(object): """gRPC transport class providing stubs for - google.ads.googleads.v1.services CustomerService API. + google.ads.googleads.v4.services CustomerService API. The transport provides access to the raw gRPC stubs, which can be used to take advantage of advanced @@ -29,11 +30,10 @@ class CustomerServiceGrpcTransport(object): """ # The scopes needed to make gRPC calls to all of the methods defined # in this service. - _OAUTH_SCOPES = () + _OAUTH_SCOPES = ( + ) - def __init__(self, - channel=None, - credentials=None, + def __init__(self, channel=None, credentials=None, address='googleads.googleapis.com:443'): """Instantiate the transport class. @@ -53,7 +53,8 @@ def __init__(self, if channel is not None and credentials is not None: raise ValueError( 'The `channel` and `credentials` arguments are mutually ' - 'exclusive.', ) + 'exclusive.', + ) # Create the channel. if channel is None: @@ -159,4 +160,4 @@ def create_customer_client(self): deserialized request object and returns a deserialized response object. """ - return self._stubs['customer_service_stub'].CreateCustomerClient + return self._stubs['customer_service_stub'].CreateCustomerClient \ No newline at end of file diff --git a/google/ads/google_ads/v1/services/transports/detail_placement_view_service_grpc_transport.py b/google/ads/google_ads/v4/services/transports/detail_placement_view_service_grpc_transport.py similarity index 91% rename from google/ads/google_ads/v1/services/transports/detail_placement_view_service_grpc_transport.py rename to google/ads/google_ads/v4/services/transports/detail_placement_view_service_grpc_transport.py index 3c4bd7e33..81040d889 100644 --- a/google/ads/google_ads/v1/services/transports/detail_placement_view_service_grpc_transport.py +++ b/google/ads/google_ads/v4/services/transports/detail_placement_view_service_grpc_transport.py @@ -14,14 +14,15 @@ # See the License for the specific language governing permissions and # limitations under the License. + import google.api_core.grpc_helpers -from google.ads.google_ads.v1.proto.services import detail_placement_view_service_pb2_grpc +from google.ads.google_ads.v4.proto.services import detail_placement_view_service_pb2_grpc class DetailPlacementViewServiceGrpcTransport(object): """gRPC transport class providing stubs for - google.ads.googleads.v1.services DetailPlacementViewService API. + google.ads.googleads.v4.services DetailPlacementViewService API. The transport provides access to the raw gRPC stubs, which can be used to take advantage of advanced @@ -29,11 +30,10 @@ class DetailPlacementViewServiceGrpcTransport(object): """ # The scopes needed to make gRPC calls to all of the methods defined # in this service. - _OAUTH_SCOPES = () + _OAUTH_SCOPES = ( + ) - def __init__(self, - channel=None, - credentials=None, + def __init__(self, channel=None, credentials=None, address='googleads.googleapis.com:443'): """Instantiate the transport class. @@ -53,7 +53,8 @@ def __init__(self, if channel is not None and credentials is not None: raise ValueError( 'The `channel` and `credentials` arguments are mutually ' - 'exclusive.', ) + 'exclusive.', + ) # Create the channel. if channel is None: @@ -119,5 +120,4 @@ def get_detail_placement_view(self): deserialized request object and returns a deserialized response object. """ - return self._stubs[ - 'detail_placement_view_service_stub'].GetDetailPlacementView + return self._stubs['detail_placement_view_service_stub'].GetDetailPlacementView \ No newline at end of file diff --git a/google/ads/google_ads/v1/services/transports/display_keyword_view_service_grpc_transport.py b/google/ads/google_ads/v4/services/transports/display_keyword_view_service_grpc_transport.py similarity index 91% rename from google/ads/google_ads/v1/services/transports/display_keyword_view_service_grpc_transport.py rename to google/ads/google_ads/v4/services/transports/display_keyword_view_service_grpc_transport.py index 9e216f381..da935e0df 100644 --- a/google/ads/google_ads/v1/services/transports/display_keyword_view_service_grpc_transport.py +++ b/google/ads/google_ads/v4/services/transports/display_keyword_view_service_grpc_transport.py @@ -14,14 +14,15 @@ # See the License for the specific language governing permissions and # limitations under the License. + import google.api_core.grpc_helpers -from google.ads.google_ads.v1.proto.services import display_keyword_view_service_pb2_grpc +from google.ads.google_ads.v4.proto.services import display_keyword_view_service_pb2_grpc class DisplayKeywordViewServiceGrpcTransport(object): """gRPC transport class providing stubs for - google.ads.googleads.v1.services DisplayKeywordViewService API. + google.ads.googleads.v4.services DisplayKeywordViewService API. The transport provides access to the raw gRPC stubs, which can be used to take advantage of advanced @@ -29,11 +30,10 @@ class DisplayKeywordViewServiceGrpcTransport(object): """ # The scopes needed to make gRPC calls to all of the methods defined # in this service. - _OAUTH_SCOPES = () + _OAUTH_SCOPES = ( + ) - def __init__(self, - channel=None, - credentials=None, + def __init__(self, channel=None, credentials=None, address='googleads.googleapis.com:443'): """Instantiate the transport class. @@ -53,7 +53,8 @@ def __init__(self, if channel is not None and credentials is not None: raise ValueError( 'The `channel` and `credentials` arguments are mutually ' - 'exclusive.', ) + 'exclusive.', + ) # Create the channel. if channel is None: @@ -119,5 +120,4 @@ def get_display_keyword_view(self): deserialized request object and returns a deserialized response object. """ - return self._stubs[ - 'display_keyword_view_service_stub'].GetDisplayKeywordView + return self._stubs['display_keyword_view_service_stub'].GetDisplayKeywordView \ No newline at end of file diff --git a/google/ads/google_ads/v4/services/transports/distance_view_service_grpc_transport.py b/google/ads/google_ads/v4/services/transports/distance_view_service_grpc_transport.py new file mode 100644 index 000000000..555441f31 --- /dev/null +++ b/google/ads/google_ads/v4/services/transports/distance_view_service_grpc_transport.py @@ -0,0 +1,123 @@ +# -*- coding: utf-8 -*- +# +# 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. + + +import google.api_core.grpc_helpers + +from google.ads.google_ads.v4.proto.services import distance_view_service_pb2_grpc + + +class DistanceViewServiceGrpcTransport(object): + """gRPC transport class providing stubs for + google.ads.googleads.v4.services DistanceViewService API. + + The transport provides access to the raw gRPC stubs, + which can be used to take advantage of advanced + features of gRPC. + """ + # The scopes needed to make gRPC calls to all of the methods defined + # in this service. + _OAUTH_SCOPES = ( + ) + + def __init__(self, channel=None, credentials=None, + address='googleads.googleapis.com:443'): + """Instantiate the transport class. + + Args: + channel (grpc.Channel): A ``Channel`` instance through + which to make calls. This argument is mutually exclusive + with ``credentials``; providing both will raise an exception. + credentials (google.auth.credentials.Credentials): The + authorization credentials to attach to requests. These + credentials identify this application to the service. If none + are specified, the client will attempt to ascertain the + credentials from the environment. + address (str): The address where the service is hosted. + """ + # If both `channel` and `credentials` are specified, raise an + # exception (channels come with credentials baked in already). + if channel is not None and credentials is not None: + raise ValueError( + 'The `channel` and `credentials` arguments are mutually ' + 'exclusive.', + ) + + # Create the channel. + if channel is None: + channel = self.create_channel( + address=address, + credentials=credentials, + ) + + self._channel = channel + + # gRPC uses objects called "stubs" that are bound to the + # channel and provide a basic method for each RPC. + self._stubs = { + 'distance_view_service_stub': distance_view_service_pb2_grpc.DistanceViewServiceStub(channel), + } + + + @classmethod + def create_channel( + cls, + address='googleads.googleapis.com:443', + credentials=None, + **kwargs): + """Create and return a gRPC channel object. + + Args: + address (str): The host for the channel to use. + credentials (~.Credentials): The + authorization credentials to attach to requests. These + credentials identify this application to the service. If + none are specified, the client will attempt to ascertain + the credentials from the environment. + kwargs (dict): Keyword arguments, which are passed to the + channel creation. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return google.api_core.grpc_helpers.create_channel( + address, + credentials=credentials, + scopes=cls._OAUTH_SCOPES, + **kwargs + ) + + @property + def channel(self): + """The gRPC channel used by the transport. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return self._channel + + @property + def get_distance_view(self): + """Return the gRPC stub for :meth:`DistanceViewServiceClient.get_distance_view`. + + Returns the attributes of the requested distance view. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs['distance_view_service_stub'].GetDistanceView \ No newline at end of file diff --git a/google/ads/google_ads/v1/services/transports/domain_category_service_grpc_transport.py b/google/ads/google_ads/v4/services/transports/domain_category_service_grpc_transport.py similarity index 93% rename from google/ads/google_ads/v1/services/transports/domain_category_service_grpc_transport.py rename to google/ads/google_ads/v4/services/transports/domain_category_service_grpc_transport.py index 3812d3460..33e03b8e2 100644 --- a/google/ads/google_ads/v1/services/transports/domain_category_service_grpc_transport.py +++ b/google/ads/google_ads/v4/services/transports/domain_category_service_grpc_transport.py @@ -14,14 +14,15 @@ # See the License for the specific language governing permissions and # limitations under the License. + import google.api_core.grpc_helpers -from google.ads.google_ads.v1.proto.services import domain_category_service_pb2_grpc +from google.ads.google_ads.v4.proto.services import domain_category_service_pb2_grpc class DomainCategoryServiceGrpcTransport(object): """gRPC transport class providing stubs for - google.ads.googleads.v1.services DomainCategoryService API. + google.ads.googleads.v4.services DomainCategoryService API. The transport provides access to the raw gRPC stubs, which can be used to take advantage of advanced @@ -29,11 +30,10 @@ class DomainCategoryServiceGrpcTransport(object): """ # The scopes needed to make gRPC calls to all of the methods defined # in this service. - _OAUTH_SCOPES = () + _OAUTH_SCOPES = ( + ) - def __init__(self, - channel=None, - credentials=None, + def __init__(self, channel=None, credentials=None, address='googleads.googleapis.com:443'): """Instantiate the transport class. @@ -53,7 +53,8 @@ def __init__(self, if channel is not None and credentials is not None: raise ValueError( 'The `channel` and `credentials` arguments are mutually ' - 'exclusive.', ) + 'exclusive.', + ) # Create the channel. if channel is None: @@ -119,4 +120,4 @@ def get_domain_category(self): deserialized request object and returns a deserialized response object. """ - return self._stubs['domain_category_service_stub'].GetDomainCategory + return self._stubs['domain_category_service_stub'].GetDomainCategory \ No newline at end of file diff --git a/google/ads/google_ads/v1/services/transports/dynamic_search_ads_search_term_view_service_grpc_transport.py b/google/ads/google_ads/v4/services/transports/dynamic_search_ads_search_term_view_service_grpc_transport.py similarity index 91% rename from google/ads/google_ads/v1/services/transports/dynamic_search_ads_search_term_view_service_grpc_transport.py rename to google/ads/google_ads/v4/services/transports/dynamic_search_ads_search_term_view_service_grpc_transport.py index 17b3f87b4..fa845d78d 100644 --- a/google/ads/google_ads/v1/services/transports/dynamic_search_ads_search_term_view_service_grpc_transport.py +++ b/google/ads/google_ads/v4/services/transports/dynamic_search_ads_search_term_view_service_grpc_transport.py @@ -14,14 +14,15 @@ # See the License for the specific language governing permissions and # limitations under the License. + import google.api_core.grpc_helpers -from google.ads.google_ads.v1.proto.services import dynamic_search_ads_search_term_view_service_pb2_grpc +from google.ads.google_ads.v4.proto.services import dynamic_search_ads_search_term_view_service_pb2_grpc class DynamicSearchAdsSearchTermViewServiceGrpcTransport(object): """gRPC transport class providing stubs for - google.ads.googleads.v1.services DynamicSearchAdsSearchTermViewService API. + google.ads.googleads.v4.services DynamicSearchAdsSearchTermViewService API. The transport provides access to the raw gRPC stubs, which can be used to take advantage of advanced @@ -29,11 +30,10 @@ class DynamicSearchAdsSearchTermViewServiceGrpcTransport(object): """ # The scopes needed to make gRPC calls to all of the methods defined # in this service. - _OAUTH_SCOPES = () + _OAUTH_SCOPES = ( + ) - def __init__(self, - channel=None, - credentials=None, + def __init__(self, channel=None, credentials=None, address='googleads.googleapis.com:443'): """Instantiate the transport class. @@ -53,7 +53,8 @@ def __init__(self, if channel is not None and credentials is not None: raise ValueError( 'The `channel` and `credentials` arguments are mutually ' - 'exclusive.', ) + 'exclusive.', + ) # Create the channel. if channel is None: @@ -119,5 +120,4 @@ def get_dynamic_search_ads_search_term_view(self): deserialized request object and returns a deserialized response object. """ - return self._stubs[ - 'dynamic_search_ads_search_term_view_service_stub'].GetDynamicSearchAdsSearchTermView + return self._stubs['dynamic_search_ads_search_term_view_service_stub'].GetDynamicSearchAdsSearchTermView \ No newline at end of file diff --git a/google/ads/google_ads/v1/services/transports/expanded_landing_page_view_service_grpc_transport.py b/google/ads/google_ads/v4/services/transports/expanded_landing_page_view_service_grpc_transport.py similarity index 91% rename from google/ads/google_ads/v1/services/transports/expanded_landing_page_view_service_grpc_transport.py rename to google/ads/google_ads/v4/services/transports/expanded_landing_page_view_service_grpc_transport.py index 0688204fc..1ded18af3 100644 --- a/google/ads/google_ads/v1/services/transports/expanded_landing_page_view_service_grpc_transport.py +++ b/google/ads/google_ads/v4/services/transports/expanded_landing_page_view_service_grpc_transport.py @@ -14,14 +14,15 @@ # See the License for the specific language governing permissions and # limitations under the License. + import google.api_core.grpc_helpers -from google.ads.google_ads.v1.proto.services import expanded_landing_page_view_service_pb2_grpc +from google.ads.google_ads.v4.proto.services import expanded_landing_page_view_service_pb2_grpc class ExpandedLandingPageViewServiceGrpcTransport(object): """gRPC transport class providing stubs for - google.ads.googleads.v1.services ExpandedLandingPageViewService API. + google.ads.googleads.v4.services ExpandedLandingPageViewService API. The transport provides access to the raw gRPC stubs, which can be used to take advantage of advanced @@ -29,11 +30,10 @@ class ExpandedLandingPageViewServiceGrpcTransport(object): """ # The scopes needed to make gRPC calls to all of the methods defined # in this service. - _OAUTH_SCOPES = () + _OAUTH_SCOPES = ( + ) - def __init__(self, - channel=None, - credentials=None, + def __init__(self, channel=None, credentials=None, address='googleads.googleapis.com:443'): """Instantiate the transport class. @@ -53,7 +53,8 @@ def __init__(self, if channel is not None and credentials is not None: raise ValueError( 'The `channel` and `credentials` arguments are mutually ' - 'exclusive.', ) + 'exclusive.', + ) # Create the channel. if channel is None: @@ -119,5 +120,4 @@ def get_expanded_landing_page_view(self): deserialized request object and returns a deserialized response object. """ - return self._stubs[ - 'expanded_landing_page_view_service_stub'].GetExpandedLandingPageView + return self._stubs['expanded_landing_page_view_service_stub'].GetExpandedLandingPageView \ No newline at end of file diff --git a/google/ads/google_ads/v1/services/transports/extension_feed_item_service_grpc_transport.py b/google/ads/google_ads/v4/services/transports/extension_feed_item_service_grpc_transport.py similarity index 90% rename from google/ads/google_ads/v1/services/transports/extension_feed_item_service_grpc_transport.py rename to google/ads/google_ads/v4/services/transports/extension_feed_item_service_grpc_transport.py index 67e250f7e..73efb1097 100644 --- a/google/ads/google_ads/v1/services/transports/extension_feed_item_service_grpc_transport.py +++ b/google/ads/google_ads/v4/services/transports/extension_feed_item_service_grpc_transport.py @@ -14,14 +14,15 @@ # See the License for the specific language governing permissions and # limitations under the License. + import google.api_core.grpc_helpers -from google.ads.google_ads.v1.proto.services import extension_feed_item_service_pb2_grpc +from google.ads.google_ads.v4.proto.services import extension_feed_item_service_pb2_grpc class ExtensionFeedItemServiceGrpcTransport(object): """gRPC transport class providing stubs for - google.ads.googleads.v1.services ExtensionFeedItemService API. + google.ads.googleads.v4.services ExtensionFeedItemService API. The transport provides access to the raw gRPC stubs, which can be used to take advantage of advanced @@ -29,11 +30,10 @@ class ExtensionFeedItemServiceGrpcTransport(object): """ # The scopes needed to make gRPC calls to all of the methods defined # in this service. - _OAUTH_SCOPES = () + _OAUTH_SCOPES = ( + ) - def __init__(self, - channel=None, - credentials=None, + def __init__(self, channel=None, credentials=None, address='googleads.googleapis.com:443'): """Instantiate the transport class. @@ -53,7 +53,8 @@ def __init__(self, if channel is not None and credentials is not None: raise ValueError( 'The `channel` and `credentials` arguments are mutually ' - 'exclusive.', ) + 'exclusive.', + ) # Create the channel. if channel is None: @@ -119,8 +120,7 @@ def get_extension_feed_item(self): deserialized request object and returns a deserialized response object. """ - return self._stubs[ - 'extension_feed_item_service_stub'].GetExtensionFeedItem + return self._stubs['extension_feed_item_service_stub'].GetExtensionFeedItem @property def mutate_extension_feed_items(self): @@ -134,5 +134,4 @@ def mutate_extension_feed_items(self): deserialized request object and returns a deserialized response object. """ - return self._stubs[ - 'extension_feed_item_service_stub'].MutateExtensionFeedItems + return self._stubs['extension_feed_item_service_stub'].MutateExtensionFeedItems \ No newline at end of file diff --git a/google/ads/google_ads/v1/services/transports/feed_item_service_grpc_transport.py b/google/ads/google_ads/v4/services/transports/feed_item_service_grpc_transport.py similarity index 94% rename from google/ads/google_ads/v1/services/transports/feed_item_service_grpc_transport.py rename to google/ads/google_ads/v4/services/transports/feed_item_service_grpc_transport.py index 5d4d3ac46..f29c90041 100644 --- a/google/ads/google_ads/v1/services/transports/feed_item_service_grpc_transport.py +++ b/google/ads/google_ads/v4/services/transports/feed_item_service_grpc_transport.py @@ -14,14 +14,15 @@ # See the License for the specific language governing permissions and # limitations under the License. + import google.api_core.grpc_helpers -from google.ads.google_ads.v1.proto.services import feed_item_service_pb2_grpc +from google.ads.google_ads.v4.proto.services import feed_item_service_pb2_grpc class FeedItemServiceGrpcTransport(object): """gRPC transport class providing stubs for - google.ads.googleads.v1.services FeedItemService API. + google.ads.googleads.v4.services FeedItemService API. The transport provides access to the raw gRPC stubs, which can be used to take advantage of advanced @@ -29,11 +30,10 @@ class FeedItemServiceGrpcTransport(object): """ # The scopes needed to make gRPC calls to all of the methods defined # in this service. - _OAUTH_SCOPES = () + _OAUTH_SCOPES = ( + ) - def __init__(self, - channel=None, - credentials=None, + def __init__(self, channel=None, credentials=None, address='googleads.googleapis.com:443'): """Instantiate the transport class. @@ -53,7 +53,8 @@ def __init__(self, if channel is not None and credentials is not None: raise ValueError( 'The `channel` and `credentials` arguments are mutually ' - 'exclusive.', ) + 'exclusive.', + ) # Create the channel. if channel is None: @@ -133,4 +134,4 @@ def mutate_feed_items(self): deserialized request object and returns a deserialized response object. """ - return self._stubs['feed_item_service_stub'].MutateFeedItems + return self._stubs['feed_item_service_stub'].MutateFeedItems \ No newline at end of file diff --git a/google/ads/google_ads/v1/services/transports/feed_item_target_service_grpc_transport.py b/google/ads/google_ads/v4/services/transports/feed_item_target_service_grpc_transport.py similarity index 92% rename from google/ads/google_ads/v1/services/transports/feed_item_target_service_grpc_transport.py rename to google/ads/google_ads/v4/services/transports/feed_item_target_service_grpc_transport.py index fb0544a11..55d8c7e2e 100644 --- a/google/ads/google_ads/v1/services/transports/feed_item_target_service_grpc_transport.py +++ b/google/ads/google_ads/v4/services/transports/feed_item_target_service_grpc_transport.py @@ -14,14 +14,15 @@ # See the License for the specific language governing permissions and # limitations under the License. + import google.api_core.grpc_helpers -from google.ads.google_ads.v1.proto.services import feed_item_target_service_pb2_grpc +from google.ads.google_ads.v4.proto.services import feed_item_target_service_pb2_grpc class FeedItemTargetServiceGrpcTransport(object): """gRPC transport class providing stubs for - google.ads.googleads.v1.services FeedItemTargetService API. + google.ads.googleads.v4.services FeedItemTargetService API. The transport provides access to the raw gRPC stubs, which can be used to take advantage of advanced @@ -29,11 +30,10 @@ class FeedItemTargetServiceGrpcTransport(object): """ # The scopes needed to make gRPC calls to all of the methods defined # in this service. - _OAUTH_SCOPES = () + _OAUTH_SCOPES = ( + ) - def __init__(self, - channel=None, - credentials=None, + def __init__(self, channel=None, credentials=None, address='googleads.googleapis.com:443'): """Instantiate the transport class. @@ -53,7 +53,8 @@ def __init__(self, if channel is not None and credentials is not None: raise ValueError( 'The `channel` and `credentials` arguments are mutually ' - 'exclusive.', ) + 'exclusive.', + ) # Create the channel. if channel is None: @@ -132,5 +133,4 @@ def mutate_feed_item_targets(self): deserialized request object and returns a deserialized response object. """ - return self._stubs[ - 'feed_item_target_service_stub'].MutateFeedItemTargets + return self._stubs['feed_item_target_service_stub'].MutateFeedItemTargets \ No newline at end of file diff --git a/google/ads/google_ads/v1/services/transports/feed_mapping_service_grpc_transport.py b/google/ads/google_ads/v4/services/transports/feed_mapping_service_grpc_transport.py similarity index 94% rename from google/ads/google_ads/v1/services/transports/feed_mapping_service_grpc_transport.py rename to google/ads/google_ads/v4/services/transports/feed_mapping_service_grpc_transport.py index cdfca0b49..c4db7c1a4 100644 --- a/google/ads/google_ads/v1/services/transports/feed_mapping_service_grpc_transport.py +++ b/google/ads/google_ads/v4/services/transports/feed_mapping_service_grpc_transport.py @@ -14,14 +14,15 @@ # See the License for the specific language governing permissions and # limitations under the License. + import google.api_core.grpc_helpers -from google.ads.google_ads.v1.proto.services import feed_mapping_service_pb2_grpc +from google.ads.google_ads.v4.proto.services import feed_mapping_service_pb2_grpc class FeedMappingServiceGrpcTransport(object): """gRPC transport class providing stubs for - google.ads.googleads.v1.services FeedMappingService API. + google.ads.googleads.v4.services FeedMappingService API. The transport provides access to the raw gRPC stubs, which can be used to take advantage of advanced @@ -29,11 +30,10 @@ class FeedMappingServiceGrpcTransport(object): """ # The scopes needed to make gRPC calls to all of the methods defined # in this service. - _OAUTH_SCOPES = () + _OAUTH_SCOPES = ( + ) - def __init__(self, - channel=None, - credentials=None, + def __init__(self, channel=None, credentials=None, address='googleads.googleapis.com:443'): """Instantiate the transport class. @@ -53,7 +53,8 @@ def __init__(self, if channel is not None and credentials is not None: raise ValueError( 'The `channel` and `credentials` arguments are mutually ' - 'exclusive.', ) + 'exclusive.', + ) # Create the channel. if channel is None: @@ -133,4 +134,4 @@ def mutate_feed_mappings(self): deserialized request object and returns a deserialized response object. """ - return self._stubs['feed_mapping_service_stub'].MutateFeedMappings + return self._stubs['feed_mapping_service_stub'].MutateFeedMappings \ No newline at end of file diff --git a/google/ads/google_ads/v1/services/transports/feed_placeholder_view_service_grpc_transport.py b/google/ads/google_ads/v4/services/transports/feed_placeholder_view_service_grpc_transport.py similarity index 91% rename from google/ads/google_ads/v1/services/transports/feed_placeholder_view_service_grpc_transport.py rename to google/ads/google_ads/v4/services/transports/feed_placeholder_view_service_grpc_transport.py index 65aade611..5e7155156 100644 --- a/google/ads/google_ads/v1/services/transports/feed_placeholder_view_service_grpc_transport.py +++ b/google/ads/google_ads/v4/services/transports/feed_placeholder_view_service_grpc_transport.py @@ -14,14 +14,15 @@ # See the License for the specific language governing permissions and # limitations under the License. + import google.api_core.grpc_helpers -from google.ads.google_ads.v1.proto.services import feed_placeholder_view_service_pb2_grpc +from google.ads.google_ads.v4.proto.services import feed_placeholder_view_service_pb2_grpc class FeedPlaceholderViewServiceGrpcTransport(object): """gRPC transport class providing stubs for - google.ads.googleads.v1.services FeedPlaceholderViewService API. + google.ads.googleads.v4.services FeedPlaceholderViewService API. The transport provides access to the raw gRPC stubs, which can be used to take advantage of advanced @@ -29,11 +30,10 @@ class FeedPlaceholderViewServiceGrpcTransport(object): """ # The scopes needed to make gRPC calls to all of the methods defined # in this service. - _OAUTH_SCOPES = () + _OAUTH_SCOPES = ( + ) - def __init__(self, - channel=None, - credentials=None, + def __init__(self, channel=None, credentials=None, address='googleads.googleapis.com:443'): """Instantiate the transport class. @@ -53,7 +53,8 @@ def __init__(self, if channel is not None and credentials is not None: raise ValueError( 'The `channel` and `credentials` arguments are mutually ' - 'exclusive.', ) + 'exclusive.', + ) # Create the channel. if channel is None: @@ -119,5 +120,4 @@ def get_feed_placeholder_view(self): deserialized request object and returns a deserialized response object. """ - return self._stubs[ - 'feed_placeholder_view_service_stub'].GetFeedPlaceholderView + return self._stubs['feed_placeholder_view_service_stub'].GetFeedPlaceholderView \ No newline at end of file diff --git a/google/ads/google_ads/v1/services/transports/feed_service_grpc_transport.py b/google/ads/google_ads/v4/services/transports/feed_service_grpc_transport.py similarity index 93% rename from google/ads/google_ads/v1/services/transports/feed_service_grpc_transport.py rename to google/ads/google_ads/v4/services/transports/feed_service_grpc_transport.py index 28b67cb7f..0d36696cd 100644 --- a/google/ads/google_ads/v1/services/transports/feed_service_grpc_transport.py +++ b/google/ads/google_ads/v4/services/transports/feed_service_grpc_transport.py @@ -14,14 +14,15 @@ # See the License for the specific language governing permissions and # limitations under the License. + import google.api_core.grpc_helpers -from google.ads.google_ads.v1.proto.services import feed_service_pb2_grpc +from google.ads.google_ads.v4.proto.services import feed_service_pb2_grpc class FeedServiceGrpcTransport(object): """gRPC transport class providing stubs for - google.ads.googleads.v1.services FeedService API. + google.ads.googleads.v4.services FeedService API. The transport provides access to the raw gRPC stubs, which can be used to take advantage of advanced @@ -29,11 +30,10 @@ class FeedServiceGrpcTransport(object): """ # The scopes needed to make gRPC calls to all of the methods defined # in this service. - _OAUTH_SCOPES = () + _OAUTH_SCOPES = ( + ) - def __init__(self, - channel=None, - credentials=None, + def __init__(self, channel=None, credentials=None, address='googleads.googleapis.com:443'): """Instantiate the transport class. @@ -53,7 +53,8 @@ def __init__(self, if channel is not None and credentials is not None: raise ValueError( 'The `channel` and `credentials` arguments are mutually ' - 'exclusive.', ) + 'exclusive.', + ) # Create the channel. if channel is None: @@ -133,4 +134,4 @@ def mutate_feeds(self): deserialized request object and returns a deserialized response object. """ - return self._stubs['feed_service_stub'].MutateFeeds + return self._stubs['feed_service_stub'].MutateFeeds \ No newline at end of file diff --git a/google/ads/google_ads/v1/services/transports/gender_view_service_grpc_transport.py b/google/ads/google_ads/v4/services/transports/gender_view_service_grpc_transport.py similarity index 93% rename from google/ads/google_ads/v1/services/transports/gender_view_service_grpc_transport.py rename to google/ads/google_ads/v4/services/transports/gender_view_service_grpc_transport.py index df31c8b28..2416dd731 100644 --- a/google/ads/google_ads/v1/services/transports/gender_view_service_grpc_transport.py +++ b/google/ads/google_ads/v4/services/transports/gender_view_service_grpc_transport.py @@ -14,14 +14,15 @@ # See the License for the specific language governing permissions and # limitations under the License. + import google.api_core.grpc_helpers -from google.ads.google_ads.v1.proto.services import gender_view_service_pb2_grpc +from google.ads.google_ads.v4.proto.services import gender_view_service_pb2_grpc class GenderViewServiceGrpcTransport(object): """gRPC transport class providing stubs for - google.ads.googleads.v1.services GenderViewService API. + google.ads.googleads.v4.services GenderViewService API. The transport provides access to the raw gRPC stubs, which can be used to take advantage of advanced @@ -29,11 +30,10 @@ class GenderViewServiceGrpcTransport(object): """ # The scopes needed to make gRPC calls to all of the methods defined # in this service. - _OAUTH_SCOPES = () + _OAUTH_SCOPES = ( + ) - def __init__(self, - channel=None, - credentials=None, + def __init__(self, channel=None, credentials=None, address='googleads.googleapis.com:443'): """Instantiate the transport class. @@ -53,7 +53,8 @@ def __init__(self, if channel is not None and credentials is not None: raise ValueError( 'The `channel` and `credentials` arguments are mutually ' - 'exclusive.', ) + 'exclusive.', + ) # Create the channel. if channel is None: @@ -119,4 +120,4 @@ def get_gender_view(self): deserialized request object and returns a deserialized response object. """ - return self._stubs['gender_view_service_stub'].GetGenderView + return self._stubs['gender_view_service_stub'].GetGenderView \ No newline at end of file diff --git a/google/ads/google_ads/v1/services/transports/geo_target_constant_service_grpc_transport.py b/google/ads/google_ads/v4/services/transports/geo_target_constant_service_grpc_transport.py similarity index 90% rename from google/ads/google_ads/v1/services/transports/geo_target_constant_service_grpc_transport.py rename to google/ads/google_ads/v4/services/transports/geo_target_constant_service_grpc_transport.py index 0526a9f5d..2a1e4b93f 100644 --- a/google/ads/google_ads/v1/services/transports/geo_target_constant_service_grpc_transport.py +++ b/google/ads/google_ads/v4/services/transports/geo_target_constant_service_grpc_transport.py @@ -14,14 +14,15 @@ # See the License for the specific language governing permissions and # limitations under the License. + import google.api_core.grpc_helpers -from google.ads.google_ads.v1.proto.services import geo_target_constant_service_pb2_grpc +from google.ads.google_ads.v4.proto.services import geo_target_constant_service_pb2_grpc class GeoTargetConstantServiceGrpcTransport(object): """gRPC transport class providing stubs for - google.ads.googleads.v1.services GeoTargetConstantService API. + google.ads.googleads.v4.services GeoTargetConstantService API. The transport provides access to the raw gRPC stubs, which can be used to take advantage of advanced @@ -29,11 +30,10 @@ class GeoTargetConstantServiceGrpcTransport(object): """ # The scopes needed to make gRPC calls to all of the methods defined # in this service. - _OAUTH_SCOPES = () + _OAUTH_SCOPES = ( + ) - def __init__(self, - channel=None, - credentials=None, + def __init__(self, channel=None, credentials=None, address='googleads.googleapis.com:443'): """Instantiate the transport class. @@ -53,7 +53,8 @@ def __init__(self, if channel is not None and credentials is not None: raise ValueError( 'The `channel` and `credentials` arguments are mutually ' - 'exclusive.', ) + 'exclusive.', + ) # Create the channel. if channel is None: @@ -119,8 +120,7 @@ def get_geo_target_constant(self): deserialized request object and returns a deserialized response object. """ - return self._stubs[ - 'geo_target_constant_service_stub'].GetGeoTargetConstant + return self._stubs['geo_target_constant_service_stub'].GetGeoTargetConstant @property def suggest_geo_target_constants(self): @@ -133,5 +133,4 @@ def suggest_geo_target_constants(self): deserialized request object and returns a deserialized response object. """ - return self._stubs[ - 'geo_target_constant_service_stub'].SuggestGeoTargetConstants + return self._stubs['geo_target_constant_service_stub'].SuggestGeoTargetConstants \ No newline at end of file diff --git a/google/ads/google_ads/v1/services/transports/geographic_view_service_grpc_transport.py b/google/ads/google_ads/v4/services/transports/geographic_view_service_grpc_transport.py similarity index 93% rename from google/ads/google_ads/v1/services/transports/geographic_view_service_grpc_transport.py rename to google/ads/google_ads/v4/services/transports/geographic_view_service_grpc_transport.py index ee339e3bf..7d0a0d799 100644 --- a/google/ads/google_ads/v1/services/transports/geographic_view_service_grpc_transport.py +++ b/google/ads/google_ads/v4/services/transports/geographic_view_service_grpc_transport.py @@ -14,14 +14,15 @@ # See the License for the specific language governing permissions and # limitations under the License. + import google.api_core.grpc_helpers -from google.ads.google_ads.v1.proto.services import geographic_view_service_pb2_grpc +from google.ads.google_ads.v4.proto.services import geographic_view_service_pb2_grpc class GeographicViewServiceGrpcTransport(object): """gRPC transport class providing stubs for - google.ads.googleads.v1.services GeographicViewService API. + google.ads.googleads.v4.services GeographicViewService API. The transport provides access to the raw gRPC stubs, which can be used to take advantage of advanced @@ -29,11 +30,10 @@ class GeographicViewServiceGrpcTransport(object): """ # The scopes needed to make gRPC calls to all of the methods defined # in this service. - _OAUTH_SCOPES = () + _OAUTH_SCOPES = ( + ) - def __init__(self, - channel=None, - credentials=None, + def __init__(self, channel=None, credentials=None, address='googleads.googleapis.com:443'): """Instantiate the transport class. @@ -53,7 +53,8 @@ def __init__(self, if channel is not None and credentials is not None: raise ValueError( 'The `channel` and `credentials` arguments are mutually ' - 'exclusive.', ) + 'exclusive.', + ) # Create the channel. if channel is None: @@ -119,4 +120,4 @@ def get_geographic_view(self): deserialized request object and returns a deserialized response object. """ - return self._stubs['geographic_view_service_stub'].GetGeographicView + return self._stubs['geographic_view_service_stub'].GetGeographicView \ No newline at end of file diff --git a/google/ads/google_ads/v1/services/transports/google_ads_field_service_grpc_transport.py b/google/ads/google_ads/v4/services/transports/google_ads_field_service_grpc_transport.py similarity index 92% rename from google/ads/google_ads/v1/services/transports/google_ads_field_service_grpc_transport.py rename to google/ads/google_ads/v4/services/transports/google_ads_field_service_grpc_transport.py index c06795670..a5b633091 100644 --- a/google/ads/google_ads/v1/services/transports/google_ads_field_service_grpc_transport.py +++ b/google/ads/google_ads/v4/services/transports/google_ads_field_service_grpc_transport.py @@ -14,14 +14,15 @@ # See the License for the specific language governing permissions and # limitations under the License. + import google.api_core.grpc_helpers -from google.ads.google_ads.v1.proto.services import google_ads_field_service_pb2_grpc +from google.ads.google_ads.v4.proto.services import google_ads_field_service_pb2_grpc class GoogleAdsFieldServiceGrpcTransport(object): """gRPC transport class providing stubs for - google.ads.googleads.v1.services GoogleAdsFieldService API. + google.ads.googleads.v4.services GoogleAdsFieldService API. The transport provides access to the raw gRPC stubs, which can be used to take advantage of advanced @@ -29,11 +30,10 @@ class GoogleAdsFieldServiceGrpcTransport(object): """ # The scopes needed to make gRPC calls to all of the methods defined # in this service. - _OAUTH_SCOPES = () + _OAUTH_SCOPES = ( + ) - def __init__(self, - channel=None, - credentials=None, + def __init__(self, channel=None, credentials=None, address='googleads.googleapis.com:443'): """Instantiate the transport class. @@ -53,7 +53,8 @@ def __init__(self, if channel is not None and credentials is not None: raise ValueError( 'The `channel` and `credentials` arguments are mutually ' - 'exclusive.', ) + 'exclusive.', + ) # Create the channel. if channel is None: @@ -132,5 +133,4 @@ def search_google_ads_fields(self): deserialized request object and returns a deserialized response object. """ - return self._stubs[ - 'google_ads_field_service_stub'].SearchGoogleAdsFields + return self._stubs['google_ads_field_service_stub'].SearchGoogleAdsFields \ No newline at end of file diff --git a/google/ads/google_ads/v1/services/transports/google_ads_service_grpc_transport.py b/google/ads/google_ads/v4/services/transports/google_ads_service_grpc_transport.py similarity index 79% rename from google/ads/google_ads/v1/services/transports/google_ads_service_grpc_transport.py rename to google/ads/google_ads/v4/services/transports/google_ads_service_grpc_transport.py index e69aad4fb..9d651ac3d 100644 --- a/google/ads/google_ads/v1/services/transports/google_ads_service_grpc_transport.py +++ b/google/ads/google_ads/v4/services/transports/google_ads_service_grpc_transport.py @@ -14,14 +14,15 @@ # See the License for the specific language governing permissions and # limitations under the License. + import google.api_core.grpc_helpers -from google.ads.google_ads.v1.proto.services import google_ads_service_pb2_grpc +from google.ads.google_ads.v4.proto.services import google_ads_service_pb2_grpc class GoogleAdsServiceGrpcTransport(object): """gRPC transport class providing stubs for - google.ads.googleads.v1.services GoogleAdsService API. + google.ads.googleads.v4.services GoogleAdsService API. The transport provides access to the raw gRPC stubs, which can be used to take advantage of advanced @@ -29,11 +30,10 @@ class GoogleAdsServiceGrpcTransport(object): """ # The scopes needed to make gRPC calls to all of the methods defined # in this service. - _OAUTH_SCOPES = () + _OAUTH_SCOPES = ( + ) - def __init__(self, - channel=None, - credentials=None, + def __init__(self, channel=None, credentials=None, address='googleads.googleapis.com:443'): """Instantiate the transport class. @@ -53,7 +53,8 @@ def __init__(self, if channel is not None and credentials is not None: raise ValueError( 'The `channel` and `credentials` arguments are mutually ' - 'exclusive.', ) + 'exclusive.', + ) # Create the channel. if channel is None: @@ -121,6 +122,19 @@ def search(self): """ return self._stubs['google_ads_service_stub'].Search + @property + def search_stream(self): + """Return the gRPC stub for :meth:`GoogleAdsServiceClient.search_stream`. + + Returns all rows that match the search stream query. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs['google_ads_service_stub'].SearchStream + @property def mutate(self): """Return the gRPC stub for :meth:`GoogleAdsServiceClient.mutate`. @@ -131,9 +145,11 @@ def mutate(self): thousands of mutates atomically. This method is essentially a wrapper around a series of mutate methods. - The only features it offers over calling those methods directly are: - - Atomic transactions - Temp resource names (described below) - Somewhat - reduced latency over making a series of mutate calls. + The only features it offers over calling those methods directly are: + + - Atomic transactions + - Temp resource names (described below) + - Somewhat reduced latency over making a series of mutate calls Note: Only resources that support atomic transactions are included, so this method can't replace all calls to individual services. @@ -149,20 +165,23 @@ def mutate(self): Temp resource names are a special type of resource name used to create a resource and reference that resource in the same request. For example, - if a campaign budget is created with 'resource\_name' equal to - 'customers/123/campaignBudgets/-1', that resource name can be reused in - the 'Campaign.budget' field in the same request. That way, the two + if a campaign budget is created with ``resource_name`` equal to + ``customers/123/campaignBudgets/-1``, that resource name can be reused + in the ``Campaign.budget`` field in the same request. That way, the two resources are created and linked atomically. To create a temp resource name, put a negative number in the part of the name that the server would normally allocate. - Note: - Resources must be created with a temp name before the name can - be reused. For example, the previous CampaignBudget+Campaign example - would fail if the mutate order was reversed. - Temp names are not - remembered across requests. - There's no limit to the number of temp - names in a request. - Each temp name must use a unique negative number, - even if the resource types differ. + Note: + + - Resources must be created with a temp name before the name can be + reused. For example, the previous CampaignBudget+Campaign example + would fail if the mutate order was reversed. + - Temp names are not remembered across requests. + - There's no limit to the number of temp names in a request. + - Each temp name must use a unique negative number, even if the + resource types differ. ## Latency @@ -178,4 +197,4 @@ def mutate(self): deserialized request object and returns a deserialized response object. """ - return self._stubs['google_ads_service_stub'].Mutate + return self._stubs['google_ads_service_stub'].Mutate \ No newline at end of file diff --git a/google/ads/google_ads/v1/services/transports/group_placement_view_service_grpc_transport.py b/google/ads/google_ads/v4/services/transports/group_placement_view_service_grpc_transport.py similarity index 91% rename from google/ads/google_ads/v1/services/transports/group_placement_view_service_grpc_transport.py rename to google/ads/google_ads/v4/services/transports/group_placement_view_service_grpc_transport.py index 745d92bb1..406199ea3 100644 --- a/google/ads/google_ads/v1/services/transports/group_placement_view_service_grpc_transport.py +++ b/google/ads/google_ads/v4/services/transports/group_placement_view_service_grpc_transport.py @@ -14,14 +14,15 @@ # See the License for the specific language governing permissions and # limitations under the License. + import google.api_core.grpc_helpers -from google.ads.google_ads.v1.proto.services import group_placement_view_service_pb2_grpc +from google.ads.google_ads.v4.proto.services import group_placement_view_service_pb2_grpc class GroupPlacementViewServiceGrpcTransport(object): """gRPC transport class providing stubs for - google.ads.googleads.v1.services GroupPlacementViewService API. + google.ads.googleads.v4.services GroupPlacementViewService API. The transport provides access to the raw gRPC stubs, which can be used to take advantage of advanced @@ -29,11 +30,10 @@ class GroupPlacementViewServiceGrpcTransport(object): """ # The scopes needed to make gRPC calls to all of the methods defined # in this service. - _OAUTH_SCOPES = () + _OAUTH_SCOPES = ( + ) - def __init__(self, - channel=None, - credentials=None, + def __init__(self, channel=None, credentials=None, address='googleads.googleapis.com:443'): """Instantiate the transport class. @@ -53,7 +53,8 @@ def __init__(self, if channel is not None and credentials is not None: raise ValueError( 'The `channel` and `credentials` arguments are mutually ' - 'exclusive.', ) + 'exclusive.', + ) # Create the channel. if channel is None: @@ -119,5 +120,4 @@ def get_group_placement_view(self): deserialized request object and returns a deserialized response object. """ - return self._stubs[ - 'group_placement_view_service_stub'].GetGroupPlacementView + return self._stubs['group_placement_view_service_stub'].GetGroupPlacementView \ No newline at end of file diff --git a/google/ads/google_ads/v1/services/transports/hotel_group_view_service_grpc_transport.py b/google/ads/google_ads/v4/services/transports/hotel_group_view_service_grpc_transport.py similarity index 93% rename from google/ads/google_ads/v1/services/transports/hotel_group_view_service_grpc_transport.py rename to google/ads/google_ads/v4/services/transports/hotel_group_view_service_grpc_transport.py index 977aaf98d..bd4897cdb 100644 --- a/google/ads/google_ads/v1/services/transports/hotel_group_view_service_grpc_transport.py +++ b/google/ads/google_ads/v4/services/transports/hotel_group_view_service_grpc_transport.py @@ -14,14 +14,15 @@ # See the License for the specific language governing permissions and # limitations under the License. + import google.api_core.grpc_helpers -from google.ads.google_ads.v1.proto.services import hotel_group_view_service_pb2_grpc +from google.ads.google_ads.v4.proto.services import hotel_group_view_service_pb2_grpc class HotelGroupViewServiceGrpcTransport(object): """gRPC transport class providing stubs for - google.ads.googleads.v1.services HotelGroupViewService API. + google.ads.googleads.v4.services HotelGroupViewService API. The transport provides access to the raw gRPC stubs, which can be used to take advantage of advanced @@ -29,11 +30,10 @@ class HotelGroupViewServiceGrpcTransport(object): """ # The scopes needed to make gRPC calls to all of the methods defined # in this service. - _OAUTH_SCOPES = () + _OAUTH_SCOPES = ( + ) - def __init__(self, - channel=None, - credentials=None, + def __init__(self, channel=None, credentials=None, address='googleads.googleapis.com:443'): """Instantiate the transport class. @@ -53,7 +53,8 @@ def __init__(self, if channel is not None and credentials is not None: raise ValueError( 'The `channel` and `credentials` arguments are mutually ' - 'exclusive.', ) + 'exclusive.', + ) # Create the channel. if channel is None: @@ -119,4 +120,4 @@ def get_hotel_group_view(self): deserialized request object and returns a deserialized response object. """ - return self._stubs['hotel_group_view_service_stub'].GetHotelGroupView + return self._stubs['hotel_group_view_service_stub'].GetHotelGroupView \ No newline at end of file diff --git a/google/ads/google_ads/v1/services/transports/hotel_performance_view_service_grpc_transport.py b/google/ads/google_ads/v4/services/transports/hotel_performance_view_service_grpc_transport.py similarity index 91% rename from google/ads/google_ads/v1/services/transports/hotel_performance_view_service_grpc_transport.py rename to google/ads/google_ads/v4/services/transports/hotel_performance_view_service_grpc_transport.py index 4096985cd..311189fff 100644 --- a/google/ads/google_ads/v1/services/transports/hotel_performance_view_service_grpc_transport.py +++ b/google/ads/google_ads/v4/services/transports/hotel_performance_view_service_grpc_transport.py @@ -14,14 +14,15 @@ # See the License for the specific language governing permissions and # limitations under the License. + import google.api_core.grpc_helpers -from google.ads.google_ads.v1.proto.services import hotel_performance_view_service_pb2_grpc +from google.ads.google_ads.v4.proto.services import hotel_performance_view_service_pb2_grpc class HotelPerformanceViewServiceGrpcTransport(object): """gRPC transport class providing stubs for - google.ads.googleads.v1.services HotelPerformanceViewService API. + google.ads.googleads.v4.services HotelPerformanceViewService API. The transport provides access to the raw gRPC stubs, which can be used to take advantage of advanced @@ -29,11 +30,10 @@ class HotelPerformanceViewServiceGrpcTransport(object): """ # The scopes needed to make gRPC calls to all of the methods defined # in this service. - _OAUTH_SCOPES = () + _OAUTH_SCOPES = ( + ) - def __init__(self, - channel=None, - credentials=None, + def __init__(self, channel=None, credentials=None, address='googleads.googleapis.com:443'): """Instantiate the transport class. @@ -53,7 +53,8 @@ def __init__(self, if channel is not None and credentials is not None: raise ValueError( 'The `channel` and `credentials` arguments are mutually ' - 'exclusive.', ) + 'exclusive.', + ) # Create the channel. if channel is None: @@ -119,5 +120,4 @@ def get_hotel_performance_view(self): deserialized request object and returns a deserialized response object. """ - return self._stubs[ - 'hotel_performance_view_service_stub'].GetHotelPerformanceView + return self._stubs['hotel_performance_view_service_stub'].GetHotelPerformanceView \ No newline at end of file diff --git a/google/ads/google_ads/v4/services/transports/income_range_view_service_grpc_transport.py b/google/ads/google_ads/v4/services/transports/income_range_view_service_grpc_transport.py new file mode 100644 index 000000000..026926ff8 --- /dev/null +++ b/google/ads/google_ads/v4/services/transports/income_range_view_service_grpc_transport.py @@ -0,0 +1,123 @@ +# -*- coding: utf-8 -*- +# +# 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. + + +import google.api_core.grpc_helpers + +from google.ads.google_ads.v4.proto.services import income_range_view_service_pb2_grpc + + +class IncomeRangeViewServiceGrpcTransport(object): + """gRPC transport class providing stubs for + google.ads.googleads.v4.services IncomeRangeViewService API. + + The transport provides access to the raw gRPC stubs, + which can be used to take advantage of advanced + features of gRPC. + """ + # The scopes needed to make gRPC calls to all of the methods defined + # in this service. + _OAUTH_SCOPES = ( + ) + + def __init__(self, channel=None, credentials=None, + address='googleads.googleapis.com:443'): + """Instantiate the transport class. + + Args: + channel (grpc.Channel): A ``Channel`` instance through + which to make calls. This argument is mutually exclusive + with ``credentials``; providing both will raise an exception. + credentials (google.auth.credentials.Credentials): The + authorization credentials to attach to requests. These + credentials identify this application to the service. If none + are specified, the client will attempt to ascertain the + credentials from the environment. + address (str): The address where the service is hosted. + """ + # If both `channel` and `credentials` are specified, raise an + # exception (channels come with credentials baked in already). + if channel is not None and credentials is not None: + raise ValueError( + 'The `channel` and `credentials` arguments are mutually ' + 'exclusive.', + ) + + # Create the channel. + if channel is None: + channel = self.create_channel( + address=address, + credentials=credentials, + ) + + self._channel = channel + + # gRPC uses objects called "stubs" that are bound to the + # channel and provide a basic method for each RPC. + self._stubs = { + 'income_range_view_service_stub': income_range_view_service_pb2_grpc.IncomeRangeViewServiceStub(channel), + } + + + @classmethod + def create_channel( + cls, + address='googleads.googleapis.com:443', + credentials=None, + **kwargs): + """Create and return a gRPC channel object. + + Args: + address (str): The host for the channel to use. + credentials (~.Credentials): The + authorization credentials to attach to requests. These + credentials identify this application to the service. If + none are specified, the client will attempt to ascertain + the credentials from the environment. + kwargs (dict): Keyword arguments, which are passed to the + channel creation. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return google.api_core.grpc_helpers.create_channel( + address, + credentials=credentials, + scopes=cls._OAUTH_SCOPES, + **kwargs + ) + + @property + def channel(self): + """The gRPC channel used by the transport. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return self._channel + + @property + def get_income_range_view(self): + """Return the gRPC stub for :meth:`IncomeRangeViewServiceClient.get_income_range_view`. + + Returns the requested income range view in full detail. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs['income_range_view_service_stub'].GetIncomeRangeView \ No newline at end of file diff --git a/google/ads/google_ads/v4/services/transports/invoice_service_grpc_transport.py b/google/ads/google_ads/v4/services/transports/invoice_service_grpc_transport.py new file mode 100644 index 000000000..3c110d10b --- /dev/null +++ b/google/ads/google_ads/v4/services/transports/invoice_service_grpc_transport.py @@ -0,0 +1,123 @@ +# -*- coding: utf-8 -*- +# +# 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. + + +import google.api_core.grpc_helpers + +from google.ads.google_ads.v4.proto.services import invoice_service_pb2_grpc + + +class InvoiceServiceGrpcTransport(object): + """gRPC transport class providing stubs for + google.ads.googleads.v4.services InvoiceService API. + + The transport provides access to the raw gRPC stubs, + which can be used to take advantage of advanced + features of gRPC. + """ + # The scopes needed to make gRPC calls to all of the methods defined + # in this service. + _OAUTH_SCOPES = ( + ) + + def __init__(self, channel=None, credentials=None, + address='googleads.googleapis.com:443'): + """Instantiate the transport class. + + Args: + channel (grpc.Channel): A ``Channel`` instance through + which to make calls. This argument is mutually exclusive + with ``credentials``; providing both will raise an exception. + credentials (google.auth.credentials.Credentials): The + authorization credentials to attach to requests. These + credentials identify this application to the service. If none + are specified, the client will attempt to ascertain the + credentials from the environment. + address (str): The address where the service is hosted. + """ + # If both `channel` and `credentials` are specified, raise an + # exception (channels come with credentials baked in already). + if channel is not None and credentials is not None: + raise ValueError( + 'The `channel` and `credentials` arguments are mutually ' + 'exclusive.', + ) + + # Create the channel. + if channel is None: + channel = self.create_channel( + address=address, + credentials=credentials, + ) + + self._channel = channel + + # gRPC uses objects called "stubs" that are bound to the + # channel and provide a basic method for each RPC. + self._stubs = { + 'invoice_service_stub': invoice_service_pb2_grpc.InvoiceServiceStub(channel), + } + + + @classmethod + def create_channel( + cls, + address='googleads.googleapis.com:443', + credentials=None, + **kwargs): + """Create and return a gRPC channel object. + + Args: + address (str): The host for the channel to use. + credentials (~.Credentials): The + authorization credentials to attach to requests. These + credentials identify this application to the service. If + none are specified, the client will attempt to ascertain + the credentials from the environment. + kwargs (dict): Keyword arguments, which are passed to the + channel creation. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return google.api_core.grpc_helpers.create_channel( + address, + credentials=credentials, + scopes=cls._OAUTH_SCOPES, + **kwargs + ) + + @property + def channel(self): + """The gRPC channel used by the transport. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return self._channel + + @property + def list_invoices(self): + """Return the gRPC stub for :meth:`InvoiceServiceClient.list_invoices`. + + Returns all invoices associated with a billing setup, for a given month. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs['invoice_service_stub'].ListInvoices \ No newline at end of file diff --git a/google/ads/google_ads/v4/services/transports/keyword_plan_ad_group_keyword_service_grpc_transport.py b/google/ads/google_ads/v4/services/transports/keyword_plan_ad_group_keyword_service_grpc_transport.py new file mode 100644 index 000000000..3c65ba73b --- /dev/null +++ b/google/ads/google_ads/v4/services/transports/keyword_plan_ad_group_keyword_service_grpc_transport.py @@ -0,0 +1,137 @@ +# -*- coding: utf-8 -*- +# +# 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. + + +import google.api_core.grpc_helpers + +from google.ads.google_ads.v4.proto.services import keyword_plan_ad_group_keyword_service_pb2_grpc + + +class KeywordPlanAdGroupKeywordServiceGrpcTransport(object): + """gRPC transport class providing stubs for + google.ads.googleads.v4.services KeywordPlanAdGroupKeywordService API. + + The transport provides access to the raw gRPC stubs, + which can be used to take advantage of advanced + features of gRPC. + """ + # The scopes needed to make gRPC calls to all of the methods defined + # in this service. + _OAUTH_SCOPES = ( + ) + + def __init__(self, channel=None, credentials=None, + address='googleads.googleapis.com:443'): + """Instantiate the transport class. + + Args: + channel (grpc.Channel): A ``Channel`` instance through + which to make calls. This argument is mutually exclusive + with ``credentials``; providing both will raise an exception. + credentials (google.auth.credentials.Credentials): The + authorization credentials to attach to requests. These + credentials identify this application to the service. If none + are specified, the client will attempt to ascertain the + credentials from the environment. + address (str): The address where the service is hosted. + """ + # If both `channel` and `credentials` are specified, raise an + # exception (channels come with credentials baked in already). + if channel is not None and credentials is not None: + raise ValueError( + 'The `channel` and `credentials` arguments are mutually ' + 'exclusive.', + ) + + # Create the channel. + if channel is None: + channel = self.create_channel( + address=address, + credentials=credentials, + ) + + self._channel = channel + + # gRPC uses objects called "stubs" that are bound to the + # channel and provide a basic method for each RPC. + self._stubs = { + 'keyword_plan_ad_group_keyword_service_stub': keyword_plan_ad_group_keyword_service_pb2_grpc.KeywordPlanAdGroupKeywordServiceStub(channel), + } + + + @classmethod + def create_channel( + cls, + address='googleads.googleapis.com:443', + credentials=None, + **kwargs): + """Create and return a gRPC channel object. + + Args: + address (str): The host for the channel to use. + credentials (~.Credentials): The + authorization credentials to attach to requests. These + credentials identify this application to the service. If + none are specified, the client will attempt to ascertain + the credentials from the environment. + kwargs (dict): Keyword arguments, which are passed to the + channel creation. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return google.api_core.grpc_helpers.create_channel( + address, + credentials=credentials, + scopes=cls._OAUTH_SCOPES, + **kwargs + ) + + @property + def channel(self): + """The gRPC channel used by the transport. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return self._channel + + @property + def get_keyword_plan_ad_group_keyword(self): + """Return the gRPC stub for :meth:`KeywordPlanAdGroupKeywordServiceClient.get_keyword_plan_ad_group_keyword`. + + Returns the requested Keyword Plan ad group keyword in full detail. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs['keyword_plan_ad_group_keyword_service_stub'].GetKeywordPlanAdGroupKeyword + + @property + def mutate_keyword_plan_ad_group_keywords(self): + """Return the gRPC stub for :meth:`KeywordPlanAdGroupKeywordServiceClient.mutate_keyword_plan_ad_group_keywords`. + + Creates, updates, or removes Keyword Plan ad group keywords. Operation + statuses are returned. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs['keyword_plan_ad_group_keyword_service_stub'].MutateKeywordPlanAdGroupKeywords \ No newline at end of file diff --git a/google/ads/google_ads/v1/services/transports/keyword_plan_ad_group_service_grpc_transport.py b/google/ads/google_ads/v4/services/transports/keyword_plan_ad_group_service_grpc_transport.py similarity index 90% rename from google/ads/google_ads/v1/services/transports/keyword_plan_ad_group_service_grpc_transport.py rename to google/ads/google_ads/v4/services/transports/keyword_plan_ad_group_service_grpc_transport.py index 90eee599a..10b3d194d 100644 --- a/google/ads/google_ads/v1/services/transports/keyword_plan_ad_group_service_grpc_transport.py +++ b/google/ads/google_ads/v4/services/transports/keyword_plan_ad_group_service_grpc_transport.py @@ -14,14 +14,15 @@ # See the License for the specific language governing permissions and # limitations under the License. + import google.api_core.grpc_helpers -from google.ads.google_ads.v1.proto.services import keyword_plan_ad_group_service_pb2_grpc +from google.ads.google_ads.v4.proto.services import keyword_plan_ad_group_service_pb2_grpc class KeywordPlanAdGroupServiceGrpcTransport(object): """gRPC transport class providing stubs for - google.ads.googleads.v1.services KeywordPlanAdGroupService API. + google.ads.googleads.v4.services KeywordPlanAdGroupService API. The transport provides access to the raw gRPC stubs, which can be used to take advantage of advanced @@ -29,11 +30,10 @@ class KeywordPlanAdGroupServiceGrpcTransport(object): """ # The scopes needed to make gRPC calls to all of the methods defined # in this service. - _OAUTH_SCOPES = () + _OAUTH_SCOPES = ( + ) - def __init__(self, - channel=None, - credentials=None, + def __init__(self, channel=None, credentials=None, address='googleads.googleapis.com:443'): """Instantiate the transport class. @@ -53,7 +53,8 @@ def __init__(self, if channel is not None and credentials is not None: raise ValueError( 'The `channel` and `credentials` arguments are mutually ' - 'exclusive.', ) + 'exclusive.', + ) # Create the channel. if channel is None: @@ -119,8 +120,7 @@ def get_keyword_plan_ad_group(self): deserialized request object and returns a deserialized response object. """ - return self._stubs[ - 'keyword_plan_ad_group_service_stub'].GetKeywordPlanAdGroup + return self._stubs['keyword_plan_ad_group_service_stub'].GetKeywordPlanAdGroup @property def mutate_keyword_plan_ad_groups(self): @@ -134,5 +134,4 @@ def mutate_keyword_plan_ad_groups(self): deserialized request object and returns a deserialized response object. """ - return self._stubs[ - 'keyword_plan_ad_group_service_stub'].MutateKeywordPlanAdGroups + return self._stubs['keyword_plan_ad_group_service_stub'].MutateKeywordPlanAdGroups \ No newline at end of file diff --git a/google/ads/google_ads/v4/services/transports/keyword_plan_campaign_keyword_service_grpc_transport.py b/google/ads/google_ads/v4/services/transports/keyword_plan_campaign_keyword_service_grpc_transport.py new file mode 100644 index 000000000..8829e2c03 --- /dev/null +++ b/google/ads/google_ads/v4/services/transports/keyword_plan_campaign_keyword_service_grpc_transport.py @@ -0,0 +1,137 @@ +# -*- coding: utf-8 -*- +# +# 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. + + +import google.api_core.grpc_helpers + +from google.ads.google_ads.v4.proto.services import keyword_plan_campaign_keyword_service_pb2_grpc + + +class KeywordPlanCampaignKeywordServiceGrpcTransport(object): + """gRPC transport class providing stubs for + google.ads.googleads.v4.services KeywordPlanCampaignKeywordService API. + + The transport provides access to the raw gRPC stubs, + which can be used to take advantage of advanced + features of gRPC. + """ + # The scopes needed to make gRPC calls to all of the methods defined + # in this service. + _OAUTH_SCOPES = ( + ) + + def __init__(self, channel=None, credentials=None, + address='googleads.googleapis.com:443'): + """Instantiate the transport class. + + Args: + channel (grpc.Channel): A ``Channel`` instance through + which to make calls. This argument is mutually exclusive + with ``credentials``; providing both will raise an exception. + credentials (google.auth.credentials.Credentials): The + authorization credentials to attach to requests. These + credentials identify this application to the service. If none + are specified, the client will attempt to ascertain the + credentials from the environment. + address (str): The address where the service is hosted. + """ + # If both `channel` and `credentials` are specified, raise an + # exception (channels come with credentials baked in already). + if channel is not None and credentials is not None: + raise ValueError( + 'The `channel` and `credentials` arguments are mutually ' + 'exclusive.', + ) + + # Create the channel. + if channel is None: + channel = self.create_channel( + address=address, + credentials=credentials, + ) + + self._channel = channel + + # gRPC uses objects called "stubs" that are bound to the + # channel and provide a basic method for each RPC. + self._stubs = { + 'keyword_plan_campaign_keyword_service_stub': keyword_plan_campaign_keyword_service_pb2_grpc.KeywordPlanCampaignKeywordServiceStub(channel), + } + + + @classmethod + def create_channel( + cls, + address='googleads.googleapis.com:443', + credentials=None, + **kwargs): + """Create and return a gRPC channel object. + + Args: + address (str): The host for the channel to use. + credentials (~.Credentials): The + authorization credentials to attach to requests. These + credentials identify this application to the service. If + none are specified, the client will attempt to ascertain + the credentials from the environment. + kwargs (dict): Keyword arguments, which are passed to the + channel creation. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return google.api_core.grpc_helpers.create_channel( + address, + credentials=credentials, + scopes=cls._OAUTH_SCOPES, + **kwargs + ) + + @property + def channel(self): + """The gRPC channel used by the transport. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return self._channel + + @property + def get_keyword_plan_campaign_keyword(self): + """Return the gRPC stub for :meth:`KeywordPlanCampaignKeywordServiceClient.get_keyword_plan_campaign_keyword`. + + Returns the requested plan in full detail. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs['keyword_plan_campaign_keyword_service_stub'].GetKeywordPlanCampaignKeyword + + @property + def mutate_keyword_plan_campaign_keywords(self): + """Return the gRPC stub for :meth:`KeywordPlanCampaignKeywordServiceClient.mutate_keyword_plan_campaign_keywords`. + + Creates, updates, or removes Keyword Plan campaign keywords. Operation + statuses are returned. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs['keyword_plan_campaign_keyword_service_stub'].MutateKeywordPlanCampaignKeywords \ No newline at end of file diff --git a/google/ads/google_ads/v1/services/transports/keyword_plan_campaign_service_grpc_transport.py b/google/ads/google_ads/v4/services/transports/keyword_plan_campaign_service_grpc_transport.py similarity index 90% rename from google/ads/google_ads/v1/services/transports/keyword_plan_campaign_service_grpc_transport.py rename to google/ads/google_ads/v4/services/transports/keyword_plan_campaign_service_grpc_transport.py index 16b889b9c..e8f724a8d 100644 --- a/google/ads/google_ads/v1/services/transports/keyword_plan_campaign_service_grpc_transport.py +++ b/google/ads/google_ads/v4/services/transports/keyword_plan_campaign_service_grpc_transport.py @@ -14,14 +14,15 @@ # See the License for the specific language governing permissions and # limitations under the License. + import google.api_core.grpc_helpers -from google.ads.google_ads.v1.proto.services import keyword_plan_campaign_service_pb2_grpc +from google.ads.google_ads.v4.proto.services import keyword_plan_campaign_service_pb2_grpc class KeywordPlanCampaignServiceGrpcTransport(object): """gRPC transport class providing stubs for - google.ads.googleads.v1.services KeywordPlanCampaignService API. + google.ads.googleads.v4.services KeywordPlanCampaignService API. The transport provides access to the raw gRPC stubs, which can be used to take advantage of advanced @@ -29,11 +30,10 @@ class KeywordPlanCampaignServiceGrpcTransport(object): """ # The scopes needed to make gRPC calls to all of the methods defined # in this service. - _OAUTH_SCOPES = () + _OAUTH_SCOPES = ( + ) - def __init__(self, - channel=None, - credentials=None, + def __init__(self, channel=None, credentials=None, address='googleads.googleapis.com:443'): """Instantiate the transport class. @@ -53,7 +53,8 @@ def __init__(self, if channel is not None and credentials is not None: raise ValueError( 'The `channel` and `credentials` arguments are mutually ' - 'exclusive.', ) + 'exclusive.', + ) # Create the channel. if channel is None: @@ -119,8 +120,7 @@ def get_keyword_plan_campaign(self): deserialized request object and returns a deserialized response object. """ - return self._stubs[ - 'keyword_plan_campaign_service_stub'].GetKeywordPlanCampaign + return self._stubs['keyword_plan_campaign_service_stub'].GetKeywordPlanCampaign @property def mutate_keyword_plan_campaigns(self): @@ -134,5 +134,4 @@ def mutate_keyword_plan_campaigns(self): deserialized request object and returns a deserialized response object. """ - return self._stubs[ - 'keyword_plan_campaign_service_stub'].MutateKeywordPlanCampaigns + return self._stubs['keyword_plan_campaign_service_stub'].MutateKeywordPlanCampaigns \ No newline at end of file diff --git a/google/ads/google_ads/v1/services/transports/keyword_plan_idea_service_grpc_transport.py b/google/ads/google_ads/v4/services/transports/keyword_plan_idea_service_grpc_transport.py similarity index 91% rename from google/ads/google_ads/v1/services/transports/keyword_plan_idea_service_grpc_transport.py rename to google/ads/google_ads/v4/services/transports/keyword_plan_idea_service_grpc_transport.py index 13ca49445..7bd7ccdab 100644 --- a/google/ads/google_ads/v1/services/transports/keyword_plan_idea_service_grpc_transport.py +++ b/google/ads/google_ads/v4/services/transports/keyword_plan_idea_service_grpc_transport.py @@ -14,14 +14,15 @@ # See the License for the specific language governing permissions and # limitations under the License. + import google.api_core.grpc_helpers -from google.ads.google_ads.v1.proto.services import keyword_plan_idea_service_pb2_grpc +from google.ads.google_ads.v4.proto.services import keyword_plan_idea_service_pb2_grpc class KeywordPlanIdeaServiceGrpcTransport(object): """gRPC transport class providing stubs for - google.ads.googleads.v1.services KeywordPlanIdeaService API. + google.ads.googleads.v4.services KeywordPlanIdeaService API. The transport provides access to the raw gRPC stubs, which can be used to take advantage of advanced @@ -29,11 +30,10 @@ class KeywordPlanIdeaServiceGrpcTransport(object): """ # The scopes needed to make gRPC calls to all of the methods defined # in this service. - _OAUTH_SCOPES = () + _OAUTH_SCOPES = ( + ) - def __init__(self, - channel=None, - credentials=None, + def __init__(self, channel=None, credentials=None, address='googleads.googleapis.com:443'): """Instantiate the transport class. @@ -53,7 +53,8 @@ def __init__(self, if channel is not None and credentials is not None: raise ValueError( 'The `channel` and `credentials` arguments are mutually ' - 'exclusive.', ) + 'exclusive.', + ) # Create the channel. if channel is None: @@ -119,5 +120,4 @@ def generate_keyword_ideas(self): deserialized request object and returns a deserialized response object. """ - return self._stubs[ - 'keyword_plan_idea_service_stub'].GenerateKeywordIdeas + return self._stubs['keyword_plan_idea_service_stub'].GenerateKeywordIdeas \ No newline at end of file diff --git a/google/ads/google_ads/v1/services/transports/keyword_plan_service_grpc_transport.py b/google/ads/google_ads/v4/services/transports/keyword_plan_service_grpc_transport.py similarity index 82% rename from google/ads/google_ads/v1/services/transports/keyword_plan_service_grpc_transport.py rename to google/ads/google_ads/v4/services/transports/keyword_plan_service_grpc_transport.py index 669e79624..724d840c8 100644 --- a/google/ads/google_ads/v1/services/transports/keyword_plan_service_grpc_transport.py +++ b/google/ads/google_ads/v4/services/transports/keyword_plan_service_grpc_transport.py @@ -14,14 +14,15 @@ # See the License for the specific language governing permissions and # limitations under the License. + import google.api_core.grpc_helpers -from google.ads.google_ads.v1.proto.services import keyword_plan_service_pb2_grpc +from google.ads.google_ads.v4.proto.services import keyword_plan_service_pb2_grpc class KeywordPlanServiceGrpcTransport(object): """gRPC transport class providing stubs for - google.ads.googleads.v1.services KeywordPlanService API. + google.ads.googleads.v4.services KeywordPlanService API. The transport provides access to the raw gRPC stubs, which can be used to take advantage of advanced @@ -29,11 +30,10 @@ class KeywordPlanServiceGrpcTransport(object): """ # The scopes needed to make gRPC calls to all of the methods defined # in this service. - _OAUTH_SCOPES = () + _OAUTH_SCOPES = ( + ) - def __init__(self, - channel=None, - credentials=None, + def __init__(self, channel=None, credentials=None, address='googleads.googleapis.com:443'): """Instantiate the transport class. @@ -53,7 +53,8 @@ def __init__(self, if channel is not None and credentials is not None: raise ValueError( 'The `channel` and `credentials` arguments are mutually ' - 'exclusive.', ) + 'exclusive.', + ) # Create the channel. if channel is None: @@ -135,6 +136,25 @@ def mutate_keyword_plans(self): """ return self._stubs['keyword_plan_service_stub'].MutateKeywordPlans + @property + def generate_forecast_curve(self): + """Return the gRPC stub for :meth:`KeywordPlanServiceClient.generate_forecast_curve`. + + Returns the requested Keyword Plan forecast curve. Only the bidding + strategy is considered for generating forecast curve. The bidding + strategy value (eg: max\_cpc\_bid\_micros in maximize cpc bidding + strategy) specified in the plan is ignored. + + To generate a forecast at a value specified in the plan, use + KeywordPlanService.GenerateForecastMetrics. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs['keyword_plan_service_stub'].GenerateForecastCurve + @property def generate_forecast_metrics(self): """Return the gRPC stub for :meth:`KeywordPlanServiceClient.generate_forecast_metrics`. @@ -159,5 +179,4 @@ def generate_historical_metrics(self): deserialized request object and returns a deserialized response object. """ - return self._stubs[ - 'keyword_plan_service_stub'].GenerateHistoricalMetrics + return self._stubs['keyword_plan_service_stub'].GenerateHistoricalMetrics \ No newline at end of file diff --git a/google/ads/google_ads/v1/services/transports/keyword_view_service_grpc_transport.py b/google/ads/google_ads/v4/services/transports/keyword_view_service_grpc_transport.py similarity index 93% rename from google/ads/google_ads/v1/services/transports/keyword_view_service_grpc_transport.py rename to google/ads/google_ads/v4/services/transports/keyword_view_service_grpc_transport.py index 54a63e442..191d8992a 100644 --- a/google/ads/google_ads/v1/services/transports/keyword_view_service_grpc_transport.py +++ b/google/ads/google_ads/v4/services/transports/keyword_view_service_grpc_transport.py @@ -14,14 +14,15 @@ # See the License for the specific language governing permissions and # limitations under the License. + import google.api_core.grpc_helpers -from google.ads.google_ads.v1.proto.services import keyword_view_service_pb2_grpc +from google.ads.google_ads.v4.proto.services import keyword_view_service_pb2_grpc class KeywordViewServiceGrpcTransport(object): """gRPC transport class providing stubs for - google.ads.googleads.v1.services KeywordViewService API. + google.ads.googleads.v4.services KeywordViewService API. The transport provides access to the raw gRPC stubs, which can be used to take advantage of advanced @@ -29,11 +30,10 @@ class KeywordViewServiceGrpcTransport(object): """ # The scopes needed to make gRPC calls to all of the methods defined # in this service. - _OAUTH_SCOPES = () + _OAUTH_SCOPES = ( + ) - def __init__(self, - channel=None, - credentials=None, + def __init__(self, channel=None, credentials=None, address='googleads.googleapis.com:443'): """Instantiate the transport class. @@ -53,7 +53,8 @@ def __init__(self, if channel is not None and credentials is not None: raise ValueError( 'The `channel` and `credentials` arguments are mutually ' - 'exclusive.', ) + 'exclusive.', + ) # Create the channel. if channel is None: @@ -119,4 +120,4 @@ def get_keyword_view(self): deserialized request object and returns a deserialized response object. """ - return self._stubs['keyword_view_service_stub'].GetKeywordView + return self._stubs['keyword_view_service_stub'].GetKeywordView \ No newline at end of file diff --git a/google/ads/google_ads/v1/services/transports/label_service_grpc_transport.py b/google/ads/google_ads/v4/services/transports/label_service_grpc_transport.py similarity index 93% rename from google/ads/google_ads/v1/services/transports/label_service_grpc_transport.py rename to google/ads/google_ads/v4/services/transports/label_service_grpc_transport.py index 6e22dba24..fcd028587 100644 --- a/google/ads/google_ads/v1/services/transports/label_service_grpc_transport.py +++ b/google/ads/google_ads/v4/services/transports/label_service_grpc_transport.py @@ -14,14 +14,15 @@ # See the License for the specific language governing permissions and # limitations under the License. + import google.api_core.grpc_helpers -from google.ads.google_ads.v1.proto.services import label_service_pb2_grpc +from google.ads.google_ads.v4.proto.services import label_service_pb2_grpc class LabelServiceGrpcTransport(object): """gRPC transport class providing stubs for - google.ads.googleads.v1.services LabelService API. + google.ads.googleads.v4.services LabelService API. The transport provides access to the raw gRPC stubs, which can be used to take advantage of advanced @@ -29,11 +30,10 @@ class LabelServiceGrpcTransport(object): """ # The scopes needed to make gRPC calls to all of the methods defined # in this service. - _OAUTH_SCOPES = () + _OAUTH_SCOPES = ( + ) - def __init__(self, - channel=None, - credentials=None, + def __init__(self, channel=None, credentials=None, address='googleads.googleapis.com:443'): """Instantiate the transport class. @@ -53,7 +53,8 @@ def __init__(self, if channel is not None and credentials is not None: raise ValueError( 'The `channel` and `credentials` arguments are mutually ' - 'exclusive.', ) + 'exclusive.', + ) # Create the channel. if channel is None: @@ -132,4 +133,4 @@ def mutate_labels(self): deserialized request object and returns a deserialized response object. """ - return self._stubs['label_service_stub'].MutateLabels + return self._stubs['label_service_stub'].MutateLabels \ No newline at end of file diff --git a/google/ads/google_ads/v1/services/transports/landing_page_view_service_grpc_transport.py b/google/ads/google_ads/v4/services/transports/landing_page_view_service_grpc_transport.py similarity index 93% rename from google/ads/google_ads/v1/services/transports/landing_page_view_service_grpc_transport.py rename to google/ads/google_ads/v4/services/transports/landing_page_view_service_grpc_transport.py index 1e4c905ac..6d9dfdeb5 100644 --- a/google/ads/google_ads/v1/services/transports/landing_page_view_service_grpc_transport.py +++ b/google/ads/google_ads/v4/services/transports/landing_page_view_service_grpc_transport.py @@ -14,14 +14,15 @@ # See the License for the specific language governing permissions and # limitations under the License. + import google.api_core.grpc_helpers -from google.ads.google_ads.v1.proto.services import landing_page_view_service_pb2_grpc +from google.ads.google_ads.v4.proto.services import landing_page_view_service_pb2_grpc class LandingPageViewServiceGrpcTransport(object): """gRPC transport class providing stubs for - google.ads.googleads.v1.services LandingPageViewService API. + google.ads.googleads.v4.services LandingPageViewService API. The transport provides access to the raw gRPC stubs, which can be used to take advantage of advanced @@ -29,11 +30,10 @@ class LandingPageViewServiceGrpcTransport(object): """ # The scopes needed to make gRPC calls to all of the methods defined # in this service. - _OAUTH_SCOPES = () + _OAUTH_SCOPES = ( + ) - def __init__(self, - channel=None, - credentials=None, + def __init__(self, channel=None, credentials=None, address='googleads.googleapis.com:443'): """Instantiate the transport class. @@ -53,7 +53,8 @@ def __init__(self, if channel is not None and credentials is not None: raise ValueError( 'The `channel` and `credentials` arguments are mutually ' - 'exclusive.', ) + 'exclusive.', + ) # Create the channel. if channel is None: @@ -119,4 +120,4 @@ def get_landing_page_view(self): deserialized request object and returns a deserialized response object. """ - return self._stubs['landing_page_view_service_stub'].GetLandingPageView + return self._stubs['landing_page_view_service_stub'].GetLandingPageView \ No newline at end of file diff --git a/google/ads/google_ads/v1/services/transports/language_constant_service_grpc_transport.py b/google/ads/google_ads/v4/services/transports/language_constant_service_grpc_transport.py similarity index 91% rename from google/ads/google_ads/v1/services/transports/language_constant_service_grpc_transport.py rename to google/ads/google_ads/v4/services/transports/language_constant_service_grpc_transport.py index 0660cb100..d923dc4ae 100644 --- a/google/ads/google_ads/v1/services/transports/language_constant_service_grpc_transport.py +++ b/google/ads/google_ads/v4/services/transports/language_constant_service_grpc_transport.py @@ -14,14 +14,15 @@ # See the License for the specific language governing permissions and # limitations under the License. + import google.api_core.grpc_helpers -from google.ads.google_ads.v1.proto.services import language_constant_service_pb2_grpc +from google.ads.google_ads.v4.proto.services import language_constant_service_pb2_grpc class LanguageConstantServiceGrpcTransport(object): """gRPC transport class providing stubs for - google.ads.googleads.v1.services LanguageConstantService API. + google.ads.googleads.v4.services LanguageConstantService API. The transport provides access to the raw gRPC stubs, which can be used to take advantage of advanced @@ -29,11 +30,10 @@ class LanguageConstantServiceGrpcTransport(object): """ # The scopes needed to make gRPC calls to all of the methods defined # in this service. - _OAUTH_SCOPES = () + _OAUTH_SCOPES = ( + ) - def __init__(self, - channel=None, - credentials=None, + def __init__(self, channel=None, credentials=None, address='googleads.googleapis.com:443'): """Instantiate the transport class. @@ -53,7 +53,8 @@ def __init__(self, if channel is not None and credentials is not None: raise ValueError( 'The `channel` and `credentials` arguments are mutually ' - 'exclusive.', ) + 'exclusive.', + ) # Create the channel. if channel is None: @@ -119,5 +120,4 @@ def get_language_constant(self): deserialized request object and returns a deserialized response object. """ - return self._stubs[ - 'language_constant_service_stub'].GetLanguageConstant + return self._stubs['language_constant_service_stub'].GetLanguageConstant \ No newline at end of file diff --git a/google/ads/google_ads/v1/services/transports/location_view_service_grpc_transport.py b/google/ads/google_ads/v4/services/transports/location_view_service_grpc_transport.py similarity index 93% rename from google/ads/google_ads/v1/services/transports/location_view_service_grpc_transport.py rename to google/ads/google_ads/v4/services/transports/location_view_service_grpc_transport.py index 7c641bf84..6f256d044 100644 --- a/google/ads/google_ads/v1/services/transports/location_view_service_grpc_transport.py +++ b/google/ads/google_ads/v4/services/transports/location_view_service_grpc_transport.py @@ -14,14 +14,15 @@ # See the License for the specific language governing permissions and # limitations under the License. + import google.api_core.grpc_helpers -from google.ads.google_ads.v1.proto.services import location_view_service_pb2_grpc +from google.ads.google_ads.v4.proto.services import location_view_service_pb2_grpc class LocationViewServiceGrpcTransport(object): """gRPC transport class providing stubs for - google.ads.googleads.v1.services LocationViewService API. + google.ads.googleads.v4.services LocationViewService API. The transport provides access to the raw gRPC stubs, which can be used to take advantage of advanced @@ -29,11 +30,10 @@ class LocationViewServiceGrpcTransport(object): """ # The scopes needed to make gRPC calls to all of the methods defined # in this service. - _OAUTH_SCOPES = () + _OAUTH_SCOPES = ( + ) - def __init__(self, - channel=None, - credentials=None, + def __init__(self, channel=None, credentials=None, address='googleads.googleapis.com:443'): """Instantiate the transport class. @@ -53,7 +53,8 @@ def __init__(self, if channel is not None and credentials is not None: raise ValueError( 'The `channel` and `credentials` arguments are mutually ' - 'exclusive.', ) + 'exclusive.', + ) # Create the channel. if channel is None: @@ -119,4 +120,4 @@ def get_location_view(self): deserialized request object and returns a deserialized response object. """ - return self._stubs['location_view_service_stub'].GetLocationView + return self._stubs['location_view_service_stub'].GetLocationView \ No newline at end of file diff --git a/google/ads/google_ads/v1/services/transports/managed_placement_view_service_grpc_transport.py b/google/ads/google_ads/v4/services/transports/managed_placement_view_service_grpc_transport.py similarity index 91% rename from google/ads/google_ads/v1/services/transports/managed_placement_view_service_grpc_transport.py rename to google/ads/google_ads/v4/services/transports/managed_placement_view_service_grpc_transport.py index 039516179..71580ed20 100644 --- a/google/ads/google_ads/v1/services/transports/managed_placement_view_service_grpc_transport.py +++ b/google/ads/google_ads/v4/services/transports/managed_placement_view_service_grpc_transport.py @@ -14,14 +14,15 @@ # See the License for the specific language governing permissions and # limitations under the License. + import google.api_core.grpc_helpers -from google.ads.google_ads.v1.proto.services import managed_placement_view_service_pb2_grpc +from google.ads.google_ads.v4.proto.services import managed_placement_view_service_pb2_grpc class ManagedPlacementViewServiceGrpcTransport(object): """gRPC transport class providing stubs for - google.ads.googleads.v1.services ManagedPlacementViewService API. + google.ads.googleads.v4.services ManagedPlacementViewService API. The transport provides access to the raw gRPC stubs, which can be used to take advantage of advanced @@ -29,11 +30,10 @@ class ManagedPlacementViewServiceGrpcTransport(object): """ # The scopes needed to make gRPC calls to all of the methods defined # in this service. - _OAUTH_SCOPES = () + _OAUTH_SCOPES = ( + ) - def __init__(self, - channel=None, - credentials=None, + def __init__(self, channel=None, credentials=None, address='googleads.googleapis.com:443'): """Instantiate the transport class. @@ -53,7 +53,8 @@ def __init__(self, if channel is not None and credentials is not None: raise ValueError( 'The `channel` and `credentials` arguments are mutually ' - 'exclusive.', ) + 'exclusive.', + ) # Create the channel. if channel is None: @@ -119,5 +120,4 @@ def get_managed_placement_view(self): deserialized request object and returns a deserialized response object. """ - return self._stubs[ - 'managed_placement_view_service_stub'].GetManagedPlacementView + return self._stubs['managed_placement_view_service_stub'].GetManagedPlacementView \ No newline at end of file diff --git a/google/ads/google_ads/v1/services/transports/media_file_service_grpc_transport.py b/google/ads/google_ads/v4/services/transports/media_file_service_grpc_transport.py similarity index 94% rename from google/ads/google_ads/v1/services/transports/media_file_service_grpc_transport.py rename to google/ads/google_ads/v4/services/transports/media_file_service_grpc_transport.py index 44f4aceaa..94f549b55 100644 --- a/google/ads/google_ads/v1/services/transports/media_file_service_grpc_transport.py +++ b/google/ads/google_ads/v4/services/transports/media_file_service_grpc_transport.py @@ -14,14 +14,15 @@ # See the License for the specific language governing permissions and # limitations under the License. + import google.api_core.grpc_helpers -from google.ads.google_ads.v1.proto.services import media_file_service_pb2_grpc +from google.ads.google_ads.v4.proto.services import media_file_service_pb2_grpc class MediaFileServiceGrpcTransport(object): """gRPC transport class providing stubs for - google.ads.googleads.v1.services MediaFileService API. + google.ads.googleads.v4.services MediaFileService API. The transport provides access to the raw gRPC stubs, which can be used to take advantage of advanced @@ -29,11 +30,10 @@ class MediaFileServiceGrpcTransport(object): """ # The scopes needed to make gRPC calls to all of the methods defined # in this service. - _OAUTH_SCOPES = () + _OAUTH_SCOPES = ( + ) - def __init__(self, - channel=None, - credentials=None, + def __init__(self, channel=None, credentials=None, address='googleads.googleapis.com:443'): """Instantiate the transport class. @@ -53,7 +53,8 @@ def __init__(self, if channel is not None and credentials is not None: raise ValueError( 'The `channel` and `credentials` arguments are mutually ' - 'exclusive.', ) + 'exclusive.', + ) # Create the channel. if channel is None: @@ -132,4 +133,4 @@ def mutate_media_files(self): deserialized request object and returns a deserialized response object. """ - return self._stubs['media_file_service_stub'].MutateMediaFiles + return self._stubs['media_file_service_stub'].MutateMediaFiles \ No newline at end of file diff --git a/google/ads/google_ads/v1/services/transports/merchant_center_link_service_grpc_transport.py b/google/ads/google_ads/v4/services/transports/merchant_center_link_service_grpc_transport.py similarity index 88% rename from google/ads/google_ads/v1/services/transports/merchant_center_link_service_grpc_transport.py rename to google/ads/google_ads/v4/services/transports/merchant_center_link_service_grpc_transport.py index 73158f9b1..b885216fb 100644 --- a/google/ads/google_ads/v1/services/transports/merchant_center_link_service_grpc_transport.py +++ b/google/ads/google_ads/v4/services/transports/merchant_center_link_service_grpc_transport.py @@ -14,14 +14,15 @@ # See the License for the specific language governing permissions and # limitations under the License. + import google.api_core.grpc_helpers -from google.ads.google_ads.v1.proto.services import merchant_center_link_service_pb2_grpc +from google.ads.google_ads.v4.proto.services import merchant_center_link_service_pb2_grpc class MerchantCenterLinkServiceGrpcTransport(object): """gRPC transport class providing stubs for - google.ads.googleads.v1.services MerchantCenterLinkService API. + google.ads.googleads.v4.services MerchantCenterLinkService API. The transport provides access to the raw gRPC stubs, which can be used to take advantage of advanced @@ -29,11 +30,10 @@ class MerchantCenterLinkServiceGrpcTransport(object): """ # The scopes needed to make gRPC calls to all of the methods defined # in this service. - _OAUTH_SCOPES = () + _OAUTH_SCOPES = ( + ) - def __init__(self, - channel=None, - credentials=None, + def __init__(self, channel=None, credentials=None, address='googleads.googleapis.com:443'): """Instantiate the transport class. @@ -53,7 +53,8 @@ def __init__(self, if channel is not None and credentials is not None: raise ValueError( 'The `channel` and `credentials` arguments are mutually ' - 'exclusive.', ) + 'exclusive.', + ) # Create the channel. if channel is None: @@ -112,15 +113,14 @@ def channel(self): def list_merchant_center_links(self): """Return the gRPC stub for :meth:`MerchantCenterLinkServiceClient.list_merchant_center_links`. - Returns Merchant Center links available tor this customer. + Returns Merchant Center links available for this customer. Returns: Callable: A callable which accepts the appropriate deserialized request object and returns a deserialized response object. """ - return self._stubs[ - 'merchant_center_link_service_stub'].ListMerchantCenterLinks + return self._stubs['merchant_center_link_service_stub'].ListMerchantCenterLinks @property def get_merchant_center_link(self): @@ -133,8 +133,7 @@ def get_merchant_center_link(self): deserialized request object and returns a deserialized response object. """ - return self._stubs[ - 'merchant_center_link_service_stub'].GetMerchantCenterLink + return self._stubs['merchant_center_link_service_stub'].GetMerchantCenterLink @property def mutate_merchant_center_link(self): @@ -147,5 +146,4 @@ def mutate_merchant_center_link(self): deserialized request object and returns a deserialized response object. """ - return self._stubs[ - 'merchant_center_link_service_stub'].MutateMerchantCenterLink + return self._stubs['merchant_center_link_service_stub'].MutateMerchantCenterLink \ No newline at end of file diff --git a/google/ads/google_ads/v1/services/transports/mobile_app_category_constant_service_grpc_transport.py b/google/ads/google_ads/v4/services/transports/mobile_app_category_constant_service_grpc_transport.py similarity index 91% rename from google/ads/google_ads/v1/services/transports/mobile_app_category_constant_service_grpc_transport.py rename to google/ads/google_ads/v4/services/transports/mobile_app_category_constant_service_grpc_transport.py index 08cc7643c..0c418e584 100644 --- a/google/ads/google_ads/v1/services/transports/mobile_app_category_constant_service_grpc_transport.py +++ b/google/ads/google_ads/v4/services/transports/mobile_app_category_constant_service_grpc_transport.py @@ -14,14 +14,15 @@ # See the License for the specific language governing permissions and # limitations under the License. + import google.api_core.grpc_helpers -from google.ads.google_ads.v1.proto.services import mobile_app_category_constant_service_pb2_grpc +from google.ads.google_ads.v4.proto.services import mobile_app_category_constant_service_pb2_grpc class MobileAppCategoryConstantServiceGrpcTransport(object): """gRPC transport class providing stubs for - google.ads.googleads.v1.services MobileAppCategoryConstantService API. + google.ads.googleads.v4.services MobileAppCategoryConstantService API. The transport provides access to the raw gRPC stubs, which can be used to take advantage of advanced @@ -29,11 +30,10 @@ class MobileAppCategoryConstantServiceGrpcTransport(object): """ # The scopes needed to make gRPC calls to all of the methods defined # in this service. - _OAUTH_SCOPES = () + _OAUTH_SCOPES = ( + ) - def __init__(self, - channel=None, - credentials=None, + def __init__(self, channel=None, credentials=None, address='googleads.googleapis.com:443'): """Instantiate the transport class. @@ -53,7 +53,8 @@ def __init__(self, if channel is not None and credentials is not None: raise ValueError( 'The `channel` and `credentials` arguments are mutually ' - 'exclusive.', ) + 'exclusive.', + ) # Create the channel. if channel is None: @@ -119,5 +120,4 @@ def get_mobile_app_category_constant(self): deserialized request object and returns a deserialized response object. """ - return self._stubs[ - 'mobile_app_category_constant_service_stub'].GetMobileAppCategoryConstant + return self._stubs['mobile_app_category_constant_service_stub'].GetMobileAppCategoryConstant \ No newline at end of file diff --git a/google/ads/google_ads/v1/services/transports/mobile_device_constant_service_grpc_transport.py b/google/ads/google_ads/v4/services/transports/mobile_device_constant_service_grpc_transport.py similarity index 91% rename from google/ads/google_ads/v1/services/transports/mobile_device_constant_service_grpc_transport.py rename to google/ads/google_ads/v4/services/transports/mobile_device_constant_service_grpc_transport.py index a53b8f483..da3962613 100644 --- a/google/ads/google_ads/v1/services/transports/mobile_device_constant_service_grpc_transport.py +++ b/google/ads/google_ads/v4/services/transports/mobile_device_constant_service_grpc_transport.py @@ -14,14 +14,15 @@ # See the License for the specific language governing permissions and # limitations under the License. + import google.api_core.grpc_helpers -from google.ads.google_ads.v1.proto.services import mobile_device_constant_service_pb2_grpc +from google.ads.google_ads.v4.proto.services import mobile_device_constant_service_pb2_grpc class MobileDeviceConstantServiceGrpcTransport(object): """gRPC transport class providing stubs for - google.ads.googleads.v1.services MobileDeviceConstantService API. + google.ads.googleads.v4.services MobileDeviceConstantService API. The transport provides access to the raw gRPC stubs, which can be used to take advantage of advanced @@ -29,11 +30,10 @@ class MobileDeviceConstantServiceGrpcTransport(object): """ # The scopes needed to make gRPC calls to all of the methods defined # in this service. - _OAUTH_SCOPES = () + _OAUTH_SCOPES = ( + ) - def __init__(self, - channel=None, - credentials=None, + def __init__(self, channel=None, credentials=None, address='googleads.googleapis.com:443'): """Instantiate the transport class. @@ -53,7 +53,8 @@ def __init__(self, if channel is not None and credentials is not None: raise ValueError( 'The `channel` and `credentials` arguments are mutually ' - 'exclusive.', ) + 'exclusive.', + ) # Create the channel. if channel is None: @@ -119,5 +120,4 @@ def get_mobile_device_constant(self): deserialized request object and returns a deserialized response object. """ - return self._stubs[ - 'mobile_device_constant_service_stub'].GetMobileDeviceConstant + return self._stubs['mobile_device_constant_service_stub'].GetMobileDeviceConstant \ No newline at end of file diff --git a/google/ads/google_ads/v4/services/transports/offline_user_data_job_service_grpc_transport.py b/google/ads/google_ads/v4/services/transports/offline_user_data_job_service_grpc_transport.py new file mode 100644 index 000000000..758b02af8 --- /dev/null +++ b/google/ads/google_ads/v4/services/transports/offline_user_data_job_service_grpc_transport.py @@ -0,0 +1,170 @@ +# -*- coding: utf-8 -*- +# +# 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. + + +import google.api_core.grpc_helpers +import google.api_core.operations_v1 + +from google.ads.google_ads.v4.proto.services import offline_user_data_job_service_pb2_grpc + + +class OfflineUserDataJobServiceGrpcTransport(object): + """gRPC transport class providing stubs for + google.ads.googleads.v4.services OfflineUserDataJobService API. + + The transport provides access to the raw gRPC stubs, + which can be used to take advantage of advanced + features of gRPC. + """ + # The scopes needed to make gRPC calls to all of the methods defined + # in this service. + _OAUTH_SCOPES = ( + ) + + def __init__(self, channel=None, credentials=None, + address='googleads.googleapis.com:443'): + """Instantiate the transport class. + + Args: + channel (grpc.Channel): A ``Channel`` instance through + which to make calls. This argument is mutually exclusive + with ``credentials``; providing both will raise an exception. + credentials (google.auth.credentials.Credentials): The + authorization credentials to attach to requests. These + credentials identify this application to the service. If none + are specified, the client will attempt to ascertain the + credentials from the environment. + address (str): The address where the service is hosted. + """ + # If both `channel` and `credentials` are specified, raise an + # exception (channels come with credentials baked in already). + if channel is not None and credentials is not None: + raise ValueError( + 'The `channel` and `credentials` arguments are mutually ' + 'exclusive.', + ) + + # Create the channel. + if channel is None: + channel = self.create_channel( + address=address, + credentials=credentials, + ) + + self._channel = channel + + # gRPC uses objects called "stubs" that are bound to the + # channel and provide a basic method for each RPC. + self._stubs = { + 'offline_user_data_job_service_stub': offline_user_data_job_service_pb2_grpc.OfflineUserDataJobServiceStub(channel), + } + + # Because this API includes a method that returns a + # long-running operation (proto: google.longrunning.Operation), + # instantiate an LRO client. + self._operations_client = google.api_core.operations_v1.OperationsClient(channel) + + @classmethod + def create_channel( + cls, + address='googleads.googleapis.com:443', + credentials=None, + **kwargs): + """Create and return a gRPC channel object. + + Args: + address (str): The host for the channel to use. + credentials (~.Credentials): The + authorization credentials to attach to requests. These + credentials identify this application to the service. If + none are specified, the client will attempt to ascertain + the credentials from the environment. + kwargs (dict): Keyword arguments, which are passed to the + channel creation. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return google.api_core.grpc_helpers.create_channel( + address, + credentials=credentials, + scopes=cls._OAUTH_SCOPES, + **kwargs + ) + + @property + def channel(self): + """The gRPC channel used by the transport. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return self._channel + + @property + def create_offline_user_data_job(self): + """Return the gRPC stub for :meth:`OfflineUserDataJobServiceClient.create_offline_user_data_job`. + + Creates an offline user data job. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs['offline_user_data_job_service_stub'].CreateOfflineUserDataJob + + @property + def get_offline_user_data_job(self): + """Return the gRPC stub for :meth:`OfflineUserDataJobServiceClient.get_offline_user_data_job`. + + Returns the offline user data job. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs['offline_user_data_job_service_stub'].GetOfflineUserDataJob + + @property + def add_offline_user_data_job_operations(self): + """Return the gRPC stub for :meth:`OfflineUserDataJobServiceClient.add_offline_user_data_job_operations`. + + Adds operations to the offline user data job. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs['offline_user_data_job_service_stub'].AddOfflineUserDataJobOperations + + @property + def run_offline_user_data_job(self): + """Return the gRPC stub for :meth:`OfflineUserDataJobServiceClient.run_offline_user_data_job`. + + Runs the offline user data job. + + When finished, the long running operation will contain the processing + result or failure information, if any. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs['offline_user_data_job_service_stub'].RunOfflineUserDataJob \ No newline at end of file diff --git a/google/ads/google_ads/v1/services/transports/operating_system_version_constant_service_grpc_transport.py b/google/ads/google_ads/v4/services/transports/operating_system_version_constant_service_grpc_transport.py similarity index 91% rename from google/ads/google_ads/v1/services/transports/operating_system_version_constant_service_grpc_transport.py rename to google/ads/google_ads/v4/services/transports/operating_system_version_constant_service_grpc_transport.py index 39a9595e6..95600d822 100644 --- a/google/ads/google_ads/v1/services/transports/operating_system_version_constant_service_grpc_transport.py +++ b/google/ads/google_ads/v4/services/transports/operating_system_version_constant_service_grpc_transport.py @@ -14,14 +14,15 @@ # See the License for the specific language governing permissions and # limitations under the License. + import google.api_core.grpc_helpers -from google.ads.google_ads.v1.proto.services import operating_system_version_constant_service_pb2_grpc +from google.ads.google_ads.v4.proto.services import operating_system_version_constant_service_pb2_grpc class OperatingSystemVersionConstantServiceGrpcTransport(object): """gRPC transport class providing stubs for - google.ads.googleads.v1.services OperatingSystemVersionConstantService API. + google.ads.googleads.v4.services OperatingSystemVersionConstantService API. The transport provides access to the raw gRPC stubs, which can be used to take advantage of advanced @@ -29,11 +30,10 @@ class OperatingSystemVersionConstantServiceGrpcTransport(object): """ # The scopes needed to make gRPC calls to all of the methods defined # in this service. - _OAUTH_SCOPES = () + _OAUTH_SCOPES = ( + ) - def __init__(self, - channel=None, - credentials=None, + def __init__(self, channel=None, credentials=None, address='googleads.googleapis.com:443'): """Instantiate the transport class. @@ -53,7 +53,8 @@ def __init__(self, if channel is not None and credentials is not None: raise ValueError( 'The `channel` and `credentials` arguments are mutually ' - 'exclusive.', ) + 'exclusive.', + ) # Create the channel. if channel is None: @@ -119,5 +120,4 @@ def get_operating_system_version_constant(self): deserialized request object and returns a deserialized response object. """ - return self._stubs[ - 'operating_system_version_constant_service_stub'].GetOperatingSystemVersionConstant + return self._stubs['operating_system_version_constant_service_stub'].GetOperatingSystemVersionConstant \ No newline at end of file diff --git a/google/ads/google_ads/v1/services/transports/paid_organic_search_term_view_service_grpc_transport.py b/google/ads/google_ads/v4/services/transports/paid_organic_search_term_view_service_grpc_transport.py similarity index 91% rename from google/ads/google_ads/v1/services/transports/paid_organic_search_term_view_service_grpc_transport.py rename to google/ads/google_ads/v4/services/transports/paid_organic_search_term_view_service_grpc_transport.py index 4c7d390a7..c3ca8beda 100644 --- a/google/ads/google_ads/v1/services/transports/paid_organic_search_term_view_service_grpc_transport.py +++ b/google/ads/google_ads/v4/services/transports/paid_organic_search_term_view_service_grpc_transport.py @@ -14,14 +14,15 @@ # See the License for the specific language governing permissions and # limitations under the License. + import google.api_core.grpc_helpers -from google.ads.google_ads.v1.proto.services import paid_organic_search_term_view_service_pb2_grpc +from google.ads.google_ads.v4.proto.services import paid_organic_search_term_view_service_pb2_grpc class PaidOrganicSearchTermViewServiceGrpcTransport(object): """gRPC transport class providing stubs for - google.ads.googleads.v1.services PaidOrganicSearchTermViewService API. + google.ads.googleads.v4.services PaidOrganicSearchTermViewService API. The transport provides access to the raw gRPC stubs, which can be used to take advantage of advanced @@ -29,11 +30,10 @@ class PaidOrganicSearchTermViewServiceGrpcTransport(object): """ # The scopes needed to make gRPC calls to all of the methods defined # in this service. - _OAUTH_SCOPES = () + _OAUTH_SCOPES = ( + ) - def __init__(self, - channel=None, - credentials=None, + def __init__(self, channel=None, credentials=None, address='googleads.googleapis.com:443'): """Instantiate the transport class. @@ -53,7 +53,8 @@ def __init__(self, if channel is not None and credentials is not None: raise ValueError( 'The `channel` and `credentials` arguments are mutually ' - 'exclusive.', ) + 'exclusive.', + ) # Create the channel. if channel is None: @@ -119,5 +120,4 @@ def get_paid_organic_search_term_view(self): deserialized request object and returns a deserialized response object. """ - return self._stubs[ - 'paid_organic_search_term_view_service_stub'].GetPaidOrganicSearchTermView + return self._stubs['paid_organic_search_term_view_service_stub'].GetPaidOrganicSearchTermView \ No newline at end of file diff --git a/google/ads/google_ads/v1/services/transports/parental_status_view_service_grpc_transport.py b/google/ads/google_ads/v4/services/transports/parental_status_view_service_grpc_transport.py similarity index 91% rename from google/ads/google_ads/v1/services/transports/parental_status_view_service_grpc_transport.py rename to google/ads/google_ads/v4/services/transports/parental_status_view_service_grpc_transport.py index 0fe5e545c..8bce08cc8 100644 --- a/google/ads/google_ads/v1/services/transports/parental_status_view_service_grpc_transport.py +++ b/google/ads/google_ads/v4/services/transports/parental_status_view_service_grpc_transport.py @@ -14,14 +14,15 @@ # See the License for the specific language governing permissions and # limitations under the License. + import google.api_core.grpc_helpers -from google.ads.google_ads.v1.proto.services import parental_status_view_service_pb2_grpc +from google.ads.google_ads.v4.proto.services import parental_status_view_service_pb2_grpc class ParentalStatusViewServiceGrpcTransport(object): """gRPC transport class providing stubs for - google.ads.googleads.v1.services ParentalStatusViewService API. + google.ads.googleads.v4.services ParentalStatusViewService API. The transport provides access to the raw gRPC stubs, which can be used to take advantage of advanced @@ -29,11 +30,10 @@ class ParentalStatusViewServiceGrpcTransport(object): """ # The scopes needed to make gRPC calls to all of the methods defined # in this service. - _OAUTH_SCOPES = () + _OAUTH_SCOPES = ( + ) - def __init__(self, - channel=None, - credentials=None, + def __init__(self, channel=None, credentials=None, address='googleads.googleapis.com:443'): """Instantiate the transport class. @@ -53,7 +53,8 @@ def __init__(self, if channel is not None and credentials is not None: raise ValueError( 'The `channel` and `credentials` arguments are mutually ' - 'exclusive.', ) + 'exclusive.', + ) # Create the channel. if channel is None: @@ -119,5 +120,4 @@ def get_parental_status_view(self): deserialized request object and returns a deserialized response object. """ - return self._stubs[ - 'parental_status_view_service_stub'].GetParentalStatusView + return self._stubs['parental_status_view_service_stub'].GetParentalStatusView \ No newline at end of file diff --git a/google/ads/google_ads/v1/services/transports/payments_account_service_grpc_transport.py b/google/ads/google_ads/v4/services/transports/payments_account_service_grpc_transport.py similarity index 90% rename from google/ads/google_ads/v1/services/transports/payments_account_service_grpc_transport.py rename to google/ads/google_ads/v4/services/transports/payments_account_service_grpc_transport.py index 00578af3d..72cc6adfc 100644 --- a/google/ads/google_ads/v1/services/transports/payments_account_service_grpc_transport.py +++ b/google/ads/google_ads/v4/services/transports/payments_account_service_grpc_transport.py @@ -14,14 +14,15 @@ # See the License for the specific language governing permissions and # limitations under the License. + import google.api_core.grpc_helpers -from google.ads.google_ads.v1.proto.services import payments_account_service_pb2_grpc +from google.ads.google_ads.v4.proto.services import payments_account_service_pb2_grpc class PaymentsAccountServiceGrpcTransport(object): """gRPC transport class providing stubs for - google.ads.googleads.v1.services PaymentsAccountService API. + google.ads.googleads.v4.services PaymentsAccountService API. The transport provides access to the raw gRPC stubs, which can be used to take advantage of advanced @@ -29,11 +30,10 @@ class PaymentsAccountServiceGrpcTransport(object): """ # The scopes needed to make gRPC calls to all of the methods defined # in this service. - _OAUTH_SCOPES = () + _OAUTH_SCOPES = ( + ) - def __init__(self, - channel=None, - credentials=None, + def __init__(self, channel=None, credentials=None, address='googleads.googleapis.com:443'): """Instantiate the transport class. @@ -53,7 +53,8 @@ def __init__(self, if channel is not None and credentials is not None: raise ValueError( 'The `channel` and `credentials` arguments are mutually ' - 'exclusive.', ) + 'exclusive.', + ) # Create the channel. if channel is None: @@ -112,7 +113,7 @@ def channel(self): def list_payments_accounts(self): """Return the gRPC stub for :meth:`PaymentsAccountServiceClient.list_payments_accounts`. - Returns all Payments accounts associated with all managers + Returns all payments accounts associated with all managers between the login customer ID and specified serving customer in the hierarchy, inclusive. @@ -121,5 +122,4 @@ def list_payments_accounts(self): deserialized request object and returns a deserialized response object. """ - return self._stubs[ - 'payments_account_service_stub'].ListPaymentsAccounts + return self._stubs['payments_account_service_stub'].ListPaymentsAccounts \ No newline at end of file diff --git a/google/ads/google_ads/v1/services/transports/product_bidding_category_constant_service_grpc_transport.py b/google/ads/google_ads/v4/services/transports/product_bidding_category_constant_service_grpc_transport.py similarity index 91% rename from google/ads/google_ads/v1/services/transports/product_bidding_category_constant_service_grpc_transport.py rename to google/ads/google_ads/v4/services/transports/product_bidding_category_constant_service_grpc_transport.py index 5ccbacbf6..a3c7c78ad 100644 --- a/google/ads/google_ads/v1/services/transports/product_bidding_category_constant_service_grpc_transport.py +++ b/google/ads/google_ads/v4/services/transports/product_bidding_category_constant_service_grpc_transport.py @@ -14,14 +14,15 @@ # See the License for the specific language governing permissions and # limitations under the License. + import google.api_core.grpc_helpers -from google.ads.google_ads.v1.proto.services import product_bidding_category_constant_service_pb2_grpc +from google.ads.google_ads.v4.proto.services import product_bidding_category_constant_service_pb2_grpc class ProductBiddingCategoryConstantServiceGrpcTransport(object): """gRPC transport class providing stubs for - google.ads.googleads.v1.services ProductBiddingCategoryConstantService API. + google.ads.googleads.v4.services ProductBiddingCategoryConstantService API. The transport provides access to the raw gRPC stubs, which can be used to take advantage of advanced @@ -29,11 +30,10 @@ class ProductBiddingCategoryConstantServiceGrpcTransport(object): """ # The scopes needed to make gRPC calls to all of the methods defined # in this service. - _OAUTH_SCOPES = () + _OAUTH_SCOPES = ( + ) - def __init__(self, - channel=None, - credentials=None, + def __init__(self, channel=None, credentials=None, address='googleads.googleapis.com:443'): """Instantiate the transport class. @@ -53,7 +53,8 @@ def __init__(self, if channel is not None and credentials is not None: raise ValueError( 'The `channel` and `credentials` arguments are mutually ' - 'exclusive.', ) + 'exclusive.', + ) # Create the channel. if channel is None: @@ -119,5 +120,4 @@ def get_product_bidding_category_constant(self): deserialized request object and returns a deserialized response object. """ - return self._stubs[ - 'product_bidding_category_constant_service_stub'].GetProductBiddingCategoryConstant + return self._stubs['product_bidding_category_constant_service_stub'].GetProductBiddingCategoryConstant \ No newline at end of file diff --git a/google/ads/google_ads/v1/services/transports/product_group_view_service_grpc_transport.py b/google/ads/google_ads/v4/services/transports/product_group_view_service_grpc_transport.py similarity index 91% rename from google/ads/google_ads/v1/services/transports/product_group_view_service_grpc_transport.py rename to google/ads/google_ads/v4/services/transports/product_group_view_service_grpc_transport.py index 59e757d9b..0e6435f2c 100644 --- a/google/ads/google_ads/v1/services/transports/product_group_view_service_grpc_transport.py +++ b/google/ads/google_ads/v4/services/transports/product_group_view_service_grpc_transport.py @@ -14,14 +14,15 @@ # See the License for the specific language governing permissions and # limitations under the License. + import google.api_core.grpc_helpers -from google.ads.google_ads.v1.proto.services import product_group_view_service_pb2_grpc +from google.ads.google_ads.v4.proto.services import product_group_view_service_pb2_grpc class ProductGroupViewServiceGrpcTransport(object): """gRPC transport class providing stubs for - google.ads.googleads.v1.services ProductGroupViewService API. + google.ads.googleads.v4.services ProductGroupViewService API. The transport provides access to the raw gRPC stubs, which can be used to take advantage of advanced @@ -29,11 +30,10 @@ class ProductGroupViewServiceGrpcTransport(object): """ # The scopes needed to make gRPC calls to all of the methods defined # in this service. - _OAUTH_SCOPES = () + _OAUTH_SCOPES = ( + ) - def __init__(self, - channel=None, - credentials=None, + def __init__(self, channel=None, credentials=None, address='googleads.googleapis.com:443'): """Instantiate the transport class. @@ -53,7 +53,8 @@ def __init__(self, if channel is not None and credentials is not None: raise ValueError( 'The `channel` and `credentials` arguments are mutually ' - 'exclusive.', ) + 'exclusive.', + ) # Create the channel. if channel is None: @@ -119,5 +120,4 @@ def get_product_group_view(self): deserialized request object and returns a deserialized response object. """ - return self._stubs[ - 'product_group_view_service_stub'].GetProductGroupView + return self._stubs['product_group_view_service_stub'].GetProductGroupView \ No newline at end of file diff --git a/google/ads/google_ads/v4/services/transports/reach_plan_service_grpc_transport.py b/google/ads/google_ads/v4/services/transports/reach_plan_service_grpc_transport.py new file mode 100644 index 000000000..e3a7ca81a --- /dev/null +++ b/google/ads/google_ads/v4/services/transports/reach_plan_service_grpc_transport.py @@ -0,0 +1,165 @@ +# -*- coding: utf-8 -*- +# +# 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. + + +import google.api_core.grpc_helpers + +from google.ads.google_ads.v4.proto.services import reach_plan_service_pb2_grpc + + +class ReachPlanServiceGrpcTransport(object): + """gRPC transport class providing stubs for + google.ads.googleads.v4.services ReachPlanService API. + + The transport provides access to the raw gRPC stubs, + which can be used to take advantage of advanced + features of gRPC. + """ + # The scopes needed to make gRPC calls to all of the methods defined + # in this service. + _OAUTH_SCOPES = ( + ) + + def __init__(self, channel=None, credentials=None, + address='googleads.googleapis.com:443'): + """Instantiate the transport class. + + Args: + channel (grpc.Channel): A ``Channel`` instance through + which to make calls. This argument is mutually exclusive + with ``credentials``; providing both will raise an exception. + credentials (google.auth.credentials.Credentials): The + authorization credentials to attach to requests. These + credentials identify this application to the service. If none + are specified, the client will attempt to ascertain the + credentials from the environment. + address (str): The address where the service is hosted. + """ + # If both `channel` and `credentials` are specified, raise an + # exception (channels come with credentials baked in already). + if channel is not None and credentials is not None: + raise ValueError( + 'The `channel` and `credentials` arguments are mutually ' + 'exclusive.', + ) + + # Create the channel. + if channel is None: + channel = self.create_channel( + address=address, + credentials=credentials, + ) + + self._channel = channel + + # gRPC uses objects called "stubs" that are bound to the + # channel and provide a basic method for each RPC. + self._stubs = { + 'reach_plan_service_stub': reach_plan_service_pb2_grpc.ReachPlanServiceStub(channel), + } + + + @classmethod + def create_channel( + cls, + address='googleads.googleapis.com:443', + credentials=None, + **kwargs): + """Create and return a gRPC channel object. + + Args: + address (str): The host for the channel to use. + credentials (~.Credentials): The + authorization credentials to attach to requests. These + credentials identify this application to the service. If + none are specified, the client will attempt to ascertain + the credentials from the environment. + kwargs (dict): Keyword arguments, which are passed to the + channel creation. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return google.api_core.grpc_helpers.create_channel( + address, + credentials=credentials, + scopes=cls._OAUTH_SCOPES, + **kwargs + ) + + @property + def channel(self): + """The gRPC channel used by the transport. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return self._channel + + @property + def list_plannable_locations(self): + """Return the gRPC stub for :meth:`ReachPlanServiceClient.list_plannable_locations`. + + Returns the list of plannable locations (for example, countries & DMAs). + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs['reach_plan_service_stub'].ListPlannableLocations + + @property + def list_plannable_products(self): + """Return the gRPC stub for :meth:`ReachPlanServiceClient.list_plannable_products`. + + Returns the list of per-location plannable YouTube ad formats with allowed + targeting. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs['reach_plan_service_stub'].ListPlannableProducts + + @property + def generate_product_mix_ideas(self): + """Return the gRPC stub for :meth:`ReachPlanServiceClient.generate_product_mix_ideas`. + + Generates a product mix ideas given a set of preferences. This method + helps the advertiser to obtain a good mix of ad formats and budget + allocations based on its preferences. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs['reach_plan_service_stub'].GenerateProductMixIdeas + + @property + def generate_reach_forecast(self): + """Return the gRPC stub for :meth:`ReachPlanServiceClient.generate_reach_forecast`. + + Generates a reach forecast for a given targeting / product mix. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs['reach_plan_service_stub'].GenerateReachForecast \ No newline at end of file diff --git a/google/ads/google_ads/v1/services/transports/recommendation_service_grpc_transport.py b/google/ads/google_ads/v4/services/transports/recommendation_service_grpc_transport.py similarity index 94% rename from google/ads/google_ads/v1/services/transports/recommendation_service_grpc_transport.py rename to google/ads/google_ads/v4/services/transports/recommendation_service_grpc_transport.py index 0ba71090c..b524654cd 100644 --- a/google/ads/google_ads/v1/services/transports/recommendation_service_grpc_transport.py +++ b/google/ads/google_ads/v4/services/transports/recommendation_service_grpc_transport.py @@ -14,14 +14,15 @@ # See the License for the specific language governing permissions and # limitations under the License. + import google.api_core.grpc_helpers -from google.ads.google_ads.v1.proto.services import recommendation_service_pb2_grpc +from google.ads.google_ads.v4.proto.services import recommendation_service_pb2_grpc class RecommendationServiceGrpcTransport(object): """gRPC transport class providing stubs for - google.ads.googleads.v1.services RecommendationService API. + google.ads.googleads.v4.services RecommendationService API. The transport provides access to the raw gRPC stubs, which can be used to take advantage of advanced @@ -29,11 +30,10 @@ class RecommendationServiceGrpcTransport(object): """ # The scopes needed to make gRPC calls to all of the methods defined # in this service. - _OAUTH_SCOPES = () + _OAUTH_SCOPES = ( + ) - def __init__(self, - channel=None, - credentials=None, + def __init__(self, channel=None, credentials=None, address='googleads.googleapis.com:443'): """Instantiate the transport class. @@ -53,7 +53,8 @@ def __init__(self, if channel is not None and credentials is not None: raise ValueError( 'The `channel` and `credentials` arguments are mutually ' - 'exclusive.', ) + 'exclusive.', + ) # Create the channel. if channel is None: @@ -145,4 +146,4 @@ def dismiss_recommendation(self): deserialized request object and returns a deserialized response object. """ - return self._stubs['recommendation_service_stub'].DismissRecommendation + return self._stubs['recommendation_service_stub'].DismissRecommendation \ No newline at end of file diff --git a/google/ads/google_ads/v1/services/transports/remarketing_action_service_grpc_transport.py b/google/ads/google_ads/v4/services/transports/remarketing_action_service_grpc_transport.py similarity index 90% rename from google/ads/google_ads/v1/services/transports/remarketing_action_service_grpc_transport.py rename to google/ads/google_ads/v4/services/transports/remarketing_action_service_grpc_transport.py index d11b584c5..4c264b9d3 100644 --- a/google/ads/google_ads/v1/services/transports/remarketing_action_service_grpc_transport.py +++ b/google/ads/google_ads/v4/services/transports/remarketing_action_service_grpc_transport.py @@ -14,14 +14,15 @@ # See the License for the specific language governing permissions and # limitations under the License. + import google.api_core.grpc_helpers -from google.ads.google_ads.v1.proto.services import remarketing_action_service_pb2_grpc +from google.ads.google_ads.v4.proto.services import remarketing_action_service_pb2_grpc class RemarketingActionServiceGrpcTransport(object): """gRPC transport class providing stubs for - google.ads.googleads.v1.services RemarketingActionService API. + google.ads.googleads.v4.services RemarketingActionService API. The transport provides access to the raw gRPC stubs, which can be used to take advantage of advanced @@ -29,11 +30,10 @@ class RemarketingActionServiceGrpcTransport(object): """ # The scopes needed to make gRPC calls to all of the methods defined # in this service. - _OAUTH_SCOPES = () + _OAUTH_SCOPES = ( + ) - def __init__(self, - channel=None, - credentials=None, + def __init__(self, channel=None, credentials=None, address='googleads.googleapis.com:443'): """Instantiate the transport class. @@ -53,7 +53,8 @@ def __init__(self, if channel is not None and credentials is not None: raise ValueError( 'The `channel` and `credentials` arguments are mutually ' - 'exclusive.', ) + 'exclusive.', + ) # Create the channel. if channel is None: @@ -119,8 +120,7 @@ def get_remarketing_action(self): deserialized request object and returns a deserialized response object. """ - return self._stubs[ - 'remarketing_action_service_stub'].GetRemarketingAction + return self._stubs['remarketing_action_service_stub'].GetRemarketingAction @property def mutate_remarketing_actions(self): @@ -133,5 +133,4 @@ def mutate_remarketing_actions(self): deserialized request object and returns a deserialized response object. """ - return self._stubs[ - 'remarketing_action_service_stub'].MutateRemarketingActions + return self._stubs['remarketing_action_service_stub'].MutateRemarketingActions \ No newline at end of file diff --git a/google/ads/google_ads/v1/services/transports/search_term_view_service_grpc_transport.py b/google/ads/google_ads/v4/services/transports/search_term_view_service_grpc_transport.py similarity index 93% rename from google/ads/google_ads/v1/services/transports/search_term_view_service_grpc_transport.py rename to google/ads/google_ads/v4/services/transports/search_term_view_service_grpc_transport.py index e88ad99bc..d47339c6d 100644 --- a/google/ads/google_ads/v1/services/transports/search_term_view_service_grpc_transport.py +++ b/google/ads/google_ads/v4/services/transports/search_term_view_service_grpc_transport.py @@ -14,14 +14,15 @@ # See the License for the specific language governing permissions and # limitations under the License. + import google.api_core.grpc_helpers -from google.ads.google_ads.v1.proto.services import search_term_view_service_pb2_grpc +from google.ads.google_ads.v4.proto.services import search_term_view_service_pb2_grpc class SearchTermViewServiceGrpcTransport(object): """gRPC transport class providing stubs for - google.ads.googleads.v1.services SearchTermViewService API. + google.ads.googleads.v4.services SearchTermViewService API. The transport provides access to the raw gRPC stubs, which can be used to take advantage of advanced @@ -29,11 +30,10 @@ class SearchTermViewServiceGrpcTransport(object): """ # The scopes needed to make gRPC calls to all of the methods defined # in this service. - _OAUTH_SCOPES = () + _OAUTH_SCOPES = ( + ) - def __init__(self, - channel=None, - credentials=None, + def __init__(self, channel=None, credentials=None, address='googleads.googleapis.com:443'): """Instantiate the transport class. @@ -53,7 +53,8 @@ def __init__(self, if channel is not None and credentials is not None: raise ValueError( 'The `channel` and `credentials` arguments are mutually ' - 'exclusive.', ) + 'exclusive.', + ) # Create the channel. if channel is None: @@ -119,4 +120,4 @@ def get_search_term_view(self): deserialized request object and returns a deserialized response object. """ - return self._stubs['search_term_view_service_stub'].GetSearchTermView + return self._stubs['search_term_view_service_stub'].GetSearchTermView \ No newline at end of file diff --git a/google/ads/google_ads/v1/services/transports/shared_criterion_service_grpc_transport.py b/google/ads/google_ads/v4/services/transports/shared_criterion_service_grpc_transport.py similarity index 92% rename from google/ads/google_ads/v1/services/transports/shared_criterion_service_grpc_transport.py rename to google/ads/google_ads/v4/services/transports/shared_criterion_service_grpc_transport.py index aece0ce70..9debeea93 100644 --- a/google/ads/google_ads/v1/services/transports/shared_criterion_service_grpc_transport.py +++ b/google/ads/google_ads/v4/services/transports/shared_criterion_service_grpc_transport.py @@ -14,14 +14,15 @@ # See the License for the specific language governing permissions and # limitations under the License. + import google.api_core.grpc_helpers -from google.ads.google_ads.v1.proto.services import shared_criterion_service_pb2_grpc +from google.ads.google_ads.v4.proto.services import shared_criterion_service_pb2_grpc class SharedCriterionServiceGrpcTransport(object): """gRPC transport class providing stubs for - google.ads.googleads.v1.services SharedCriterionService API. + google.ads.googleads.v4.services SharedCriterionService API. The transport provides access to the raw gRPC stubs, which can be used to take advantage of advanced @@ -29,11 +30,10 @@ class SharedCriterionServiceGrpcTransport(object): """ # The scopes needed to make gRPC calls to all of the methods defined # in this service. - _OAUTH_SCOPES = () + _OAUTH_SCOPES = ( + ) - def __init__(self, - channel=None, - credentials=None, + def __init__(self, channel=None, credentials=None, address='googleads.googleapis.com:443'): """Instantiate the transport class. @@ -53,7 +53,8 @@ def __init__(self, if channel is not None and credentials is not None: raise ValueError( 'The `channel` and `credentials` arguments are mutually ' - 'exclusive.', ) + 'exclusive.', + ) # Create the channel. if channel is None: @@ -132,5 +133,4 @@ def mutate_shared_criteria(self): deserialized request object and returns a deserialized response object. """ - return self._stubs[ - 'shared_criterion_service_stub'].MutateSharedCriteria + return self._stubs['shared_criterion_service_stub'].MutateSharedCriteria \ No newline at end of file diff --git a/google/ads/google_ads/v1/services/transports/shared_set_service_grpc_transport.py b/google/ads/google_ads/v4/services/transports/shared_set_service_grpc_transport.py similarity index 94% rename from google/ads/google_ads/v1/services/transports/shared_set_service_grpc_transport.py rename to google/ads/google_ads/v4/services/transports/shared_set_service_grpc_transport.py index 97e7d4c36..1bca313cb 100644 --- a/google/ads/google_ads/v1/services/transports/shared_set_service_grpc_transport.py +++ b/google/ads/google_ads/v4/services/transports/shared_set_service_grpc_transport.py @@ -14,14 +14,15 @@ # See the License for the specific language governing permissions and # limitations under the License. + import google.api_core.grpc_helpers -from google.ads.google_ads.v1.proto.services import shared_set_service_pb2_grpc +from google.ads.google_ads.v4.proto.services import shared_set_service_pb2_grpc class SharedSetServiceGrpcTransport(object): """gRPC transport class providing stubs for - google.ads.googleads.v1.services SharedSetService API. + google.ads.googleads.v4.services SharedSetService API. The transport provides access to the raw gRPC stubs, which can be used to take advantage of advanced @@ -29,11 +30,10 @@ class SharedSetServiceGrpcTransport(object): """ # The scopes needed to make gRPC calls to all of the methods defined # in this service. - _OAUTH_SCOPES = () + _OAUTH_SCOPES = ( + ) - def __init__(self, - channel=None, - credentials=None, + def __init__(self, channel=None, credentials=None, address='googleads.googleapis.com:443'): """Instantiate the transport class. @@ -53,7 +53,8 @@ def __init__(self, if channel is not None and credentials is not None: raise ValueError( 'The `channel` and `credentials` arguments are mutually ' - 'exclusive.', ) + 'exclusive.', + ) # Create the channel. if channel is None: @@ -132,4 +133,4 @@ def mutate_shared_sets(self): deserialized request object and returns a deserialized response object. """ - return self._stubs['shared_set_service_stub'].MutateSharedSets + return self._stubs['shared_set_service_stub'].MutateSharedSets \ No newline at end of file diff --git a/google/ads/google_ads/v1/services/transports/shopping_performance_view_service_grpc_transport.py b/google/ads/google_ads/v4/services/transports/shopping_performance_view_service_grpc_transport.py similarity index 91% rename from google/ads/google_ads/v1/services/transports/shopping_performance_view_service_grpc_transport.py rename to google/ads/google_ads/v4/services/transports/shopping_performance_view_service_grpc_transport.py index 420330105..5bf80f98d 100644 --- a/google/ads/google_ads/v1/services/transports/shopping_performance_view_service_grpc_transport.py +++ b/google/ads/google_ads/v4/services/transports/shopping_performance_view_service_grpc_transport.py @@ -14,14 +14,15 @@ # See the License for the specific language governing permissions and # limitations under the License. + import google.api_core.grpc_helpers -from google.ads.google_ads.v1.proto.services import shopping_performance_view_service_pb2_grpc +from google.ads.google_ads.v4.proto.services import shopping_performance_view_service_pb2_grpc class ShoppingPerformanceViewServiceGrpcTransport(object): """gRPC transport class providing stubs for - google.ads.googleads.v1.services ShoppingPerformanceViewService API. + google.ads.googleads.v4.services ShoppingPerformanceViewService API. The transport provides access to the raw gRPC stubs, which can be used to take advantage of advanced @@ -29,11 +30,10 @@ class ShoppingPerformanceViewServiceGrpcTransport(object): """ # The scopes needed to make gRPC calls to all of the methods defined # in this service. - _OAUTH_SCOPES = () + _OAUTH_SCOPES = ( + ) - def __init__(self, - channel=None, - credentials=None, + def __init__(self, channel=None, credentials=None, address='googleads.googleapis.com:443'): """Instantiate the transport class. @@ -53,7 +53,8 @@ def __init__(self, if channel is not None and credentials is not None: raise ValueError( 'The `channel` and `credentials` arguments are mutually ' - 'exclusive.', ) + 'exclusive.', + ) # Create the channel. if channel is None: @@ -119,5 +120,4 @@ def get_shopping_performance_view(self): deserialized request object and returns a deserialized response object. """ - return self._stubs[ - 'shopping_performance_view_service_stub'].GetShoppingPerformanceView + return self._stubs['shopping_performance_view_service_stub'].GetShoppingPerformanceView \ No newline at end of file diff --git a/google/ads/google_ads/v4/services/transports/third_party_app_analytics_link_service_grpc_transport.py b/google/ads/google_ads/v4/services/transports/third_party_app_analytics_link_service_grpc_transport.py new file mode 100644 index 000000000..9b82496a2 --- /dev/null +++ b/google/ads/google_ads/v4/services/transports/third_party_app_analytics_link_service_grpc_transport.py @@ -0,0 +1,123 @@ +# -*- coding: utf-8 -*- +# +# 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. + + +import google.api_core.grpc_helpers + +from google.ads.google_ads.v4.proto.services import third_party_app_analytics_link_service_pb2_grpc + + +class ThirdPartyAppAnalyticsLinkServiceGrpcTransport(object): + """gRPC transport class providing stubs for + google.ads.googleads.v4.services ThirdPartyAppAnalyticsLinkService API. + + The transport provides access to the raw gRPC stubs, + which can be used to take advantage of advanced + features of gRPC. + """ + # The scopes needed to make gRPC calls to all of the methods defined + # in this service. + _OAUTH_SCOPES = ( + ) + + def __init__(self, channel=None, credentials=None, + address='googleads.googleapis.com:443'): + """Instantiate the transport class. + + Args: + channel (grpc.Channel): A ``Channel`` instance through + which to make calls. This argument is mutually exclusive + with ``credentials``; providing both will raise an exception. + credentials (google.auth.credentials.Credentials): The + authorization credentials to attach to requests. These + credentials identify this application to the service. If none + are specified, the client will attempt to ascertain the + credentials from the environment. + address (str): The address where the service is hosted. + """ + # If both `channel` and `credentials` are specified, raise an + # exception (channels come with credentials baked in already). + if channel is not None and credentials is not None: + raise ValueError( + 'The `channel` and `credentials` arguments are mutually ' + 'exclusive.', + ) + + # Create the channel. + if channel is None: + channel = self.create_channel( + address=address, + credentials=credentials, + ) + + self._channel = channel + + # gRPC uses objects called "stubs" that are bound to the + # channel and provide a basic method for each RPC. + self._stubs = { + 'third_party_app_analytics_link_service_stub': third_party_app_analytics_link_service_pb2_grpc.ThirdPartyAppAnalyticsLinkServiceStub(channel), + } + + + @classmethod + def create_channel( + cls, + address='googleads.googleapis.com:443', + credentials=None, + **kwargs): + """Create and return a gRPC channel object. + + Args: + address (str): The host for the channel to use. + credentials (~.Credentials): The + authorization credentials to attach to requests. These + credentials identify this application to the service. If + none are specified, the client will attempt to ascertain + the credentials from the environment. + kwargs (dict): Keyword arguments, which are passed to the + channel creation. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return google.api_core.grpc_helpers.create_channel( + address, + credentials=credentials, + scopes=cls._OAUTH_SCOPES, + **kwargs + ) + + @property + def channel(self): + """The gRPC channel used by the transport. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return self._channel + + @property + def get_third_party_app_analytics_link(self): + """Return the gRPC stub for :meth:`ThirdPartyAppAnalyticsLinkServiceClient.get_third_party_app_analytics_link`. + + Returns the third party app analytics link in full detail. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs['third_party_app_analytics_link_service_stub'].GetThirdPartyAppAnalyticsLink \ No newline at end of file diff --git a/google/ads/google_ads/v1/services/transports/topic_constant_service_grpc_transport.py b/google/ads/google_ads/v4/services/transports/topic_constant_service_grpc_transport.py similarity index 93% rename from google/ads/google_ads/v1/services/transports/topic_constant_service_grpc_transport.py rename to google/ads/google_ads/v4/services/transports/topic_constant_service_grpc_transport.py index 88da2b0d4..e438f20a1 100644 --- a/google/ads/google_ads/v1/services/transports/topic_constant_service_grpc_transport.py +++ b/google/ads/google_ads/v4/services/transports/topic_constant_service_grpc_transport.py @@ -14,14 +14,15 @@ # See the License for the specific language governing permissions and # limitations under the License. + import google.api_core.grpc_helpers -from google.ads.google_ads.v1.proto.services import topic_constant_service_pb2_grpc +from google.ads.google_ads.v4.proto.services import topic_constant_service_pb2_grpc class TopicConstantServiceGrpcTransport(object): """gRPC transport class providing stubs for - google.ads.googleads.v1.services TopicConstantService API. + google.ads.googleads.v4.services TopicConstantService API. The transport provides access to the raw gRPC stubs, which can be used to take advantage of advanced @@ -29,11 +30,10 @@ class TopicConstantServiceGrpcTransport(object): """ # The scopes needed to make gRPC calls to all of the methods defined # in this service. - _OAUTH_SCOPES = () + _OAUTH_SCOPES = ( + ) - def __init__(self, - channel=None, - credentials=None, + def __init__(self, channel=None, credentials=None, address='googleads.googleapis.com:443'): """Instantiate the transport class. @@ -53,7 +53,8 @@ def __init__(self, if channel is not None and credentials is not None: raise ValueError( 'The `channel` and `credentials` arguments are mutually ' - 'exclusive.', ) + 'exclusive.', + ) # Create the channel. if channel is None: @@ -119,4 +120,4 @@ def get_topic_constant(self): deserialized request object and returns a deserialized response object. """ - return self._stubs['topic_constant_service_stub'].GetTopicConstant + return self._stubs['topic_constant_service_stub'].GetTopicConstant \ No newline at end of file diff --git a/google/ads/google_ads/v1/services/transports/topic_view_service_grpc_transport.py b/google/ads/google_ads/v4/services/transports/topic_view_service_grpc_transport.py similarity index 93% rename from google/ads/google_ads/v1/services/transports/topic_view_service_grpc_transport.py rename to google/ads/google_ads/v4/services/transports/topic_view_service_grpc_transport.py index 686467235..279226106 100644 --- a/google/ads/google_ads/v1/services/transports/topic_view_service_grpc_transport.py +++ b/google/ads/google_ads/v4/services/transports/topic_view_service_grpc_transport.py @@ -14,14 +14,15 @@ # See the License for the specific language governing permissions and # limitations under the License. + import google.api_core.grpc_helpers -from google.ads.google_ads.v1.proto.services import topic_view_service_pb2_grpc +from google.ads.google_ads.v4.proto.services import topic_view_service_pb2_grpc class TopicViewServiceGrpcTransport(object): """gRPC transport class providing stubs for - google.ads.googleads.v1.services TopicViewService API. + google.ads.googleads.v4.services TopicViewService API. The transport provides access to the raw gRPC stubs, which can be used to take advantage of advanced @@ -29,11 +30,10 @@ class TopicViewServiceGrpcTransport(object): """ # The scopes needed to make gRPC calls to all of the methods defined # in this service. - _OAUTH_SCOPES = () + _OAUTH_SCOPES = ( + ) - def __init__(self, - channel=None, - credentials=None, + def __init__(self, channel=None, credentials=None, address='googleads.googleapis.com:443'): """Instantiate the transport class. @@ -53,7 +53,8 @@ def __init__(self, if channel is not None and credentials is not None: raise ValueError( 'The `channel` and `credentials` arguments are mutually ' - 'exclusive.', ) + 'exclusive.', + ) # Create the channel. if channel is None: @@ -119,4 +120,4 @@ def get_topic_view(self): deserialized request object and returns a deserialized response object. """ - return self._stubs['topic_view_service_stub'].GetTopicView + return self._stubs['topic_view_service_stub'].GetTopicView \ No newline at end of file diff --git a/google/ads/google_ads/v4/services/transports/user_data_service_grpc_transport.py b/google/ads/google_ads/v4/services/transports/user_data_service_grpc_transport.py new file mode 100644 index 000000000..ec4db4762 --- /dev/null +++ b/google/ads/google_ads/v4/services/transports/user_data_service_grpc_transport.py @@ -0,0 +1,123 @@ +# -*- coding: utf-8 -*- +# +# 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. + + +import google.api_core.grpc_helpers + +from google.ads.google_ads.v4.proto.services import user_data_service_pb2_grpc + + +class UserDataServiceGrpcTransport(object): + """gRPC transport class providing stubs for + google.ads.googleads.v4.services UserDataService API. + + The transport provides access to the raw gRPC stubs, + which can be used to take advantage of advanced + features of gRPC. + """ + # The scopes needed to make gRPC calls to all of the methods defined + # in this service. + _OAUTH_SCOPES = ( + ) + + def __init__(self, channel=None, credentials=None, + address='googleads.googleapis.com:443'): + """Instantiate the transport class. + + Args: + channel (grpc.Channel): A ``Channel`` instance through + which to make calls. This argument is mutually exclusive + with ``credentials``; providing both will raise an exception. + credentials (google.auth.credentials.Credentials): The + authorization credentials to attach to requests. These + credentials identify this application to the service. If none + are specified, the client will attempt to ascertain the + credentials from the environment. + address (str): The address where the service is hosted. + """ + # If both `channel` and `credentials` are specified, raise an + # exception (channels come with credentials baked in already). + if channel is not None and credentials is not None: + raise ValueError( + 'The `channel` and `credentials` arguments are mutually ' + 'exclusive.', + ) + + # Create the channel. + if channel is None: + channel = self.create_channel( + address=address, + credentials=credentials, + ) + + self._channel = channel + + # gRPC uses objects called "stubs" that are bound to the + # channel and provide a basic method for each RPC. + self._stubs = { + 'user_data_service_stub': user_data_service_pb2_grpc.UserDataServiceStub(channel), + } + + + @classmethod + def create_channel( + cls, + address='googleads.googleapis.com:443', + credentials=None, + **kwargs): + """Create and return a gRPC channel object. + + Args: + address (str): The host for the channel to use. + credentials (~.Credentials): The + authorization credentials to attach to requests. These + credentials identify this application to the service. If + none are specified, the client will attempt to ascertain + the credentials from the environment. + kwargs (dict): Keyword arguments, which are passed to the + channel creation. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return google.api_core.grpc_helpers.create_channel( + address, + credentials=credentials, + scopes=cls._OAUTH_SCOPES, + **kwargs + ) + + @property + def channel(self): + """The gRPC channel used by the transport. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return self._channel + + @property + def upload_user_data(self): + """Return the gRPC stub for :meth:`UserDataServiceClient.upload_user_data`. + + Uploads the given user data. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs['user_data_service_stub'].UploadUserData \ No newline at end of file diff --git a/google/ads/google_ads/v1/services/transports/user_interest_service_grpc_transport.py b/google/ads/google_ads/v4/services/transports/user_interest_service_grpc_transport.py similarity index 93% rename from google/ads/google_ads/v1/services/transports/user_interest_service_grpc_transport.py rename to google/ads/google_ads/v4/services/transports/user_interest_service_grpc_transport.py index 03d3fe19f..09c2b8700 100644 --- a/google/ads/google_ads/v1/services/transports/user_interest_service_grpc_transport.py +++ b/google/ads/google_ads/v4/services/transports/user_interest_service_grpc_transport.py @@ -14,14 +14,15 @@ # See the License for the specific language governing permissions and # limitations under the License. + import google.api_core.grpc_helpers -from google.ads.google_ads.v1.proto.services import user_interest_service_pb2_grpc +from google.ads.google_ads.v4.proto.services import user_interest_service_pb2_grpc class UserInterestServiceGrpcTransport(object): """gRPC transport class providing stubs for - google.ads.googleads.v1.services UserInterestService API. + google.ads.googleads.v4.services UserInterestService API. The transport provides access to the raw gRPC stubs, which can be used to take advantage of advanced @@ -29,11 +30,10 @@ class UserInterestServiceGrpcTransport(object): """ # The scopes needed to make gRPC calls to all of the methods defined # in this service. - _OAUTH_SCOPES = () + _OAUTH_SCOPES = ( + ) - def __init__(self, - channel=None, - credentials=None, + def __init__(self, channel=None, credentials=None, address='googleads.googleapis.com:443'): """Instantiate the transport class. @@ -53,7 +53,8 @@ def __init__(self, if channel is not None and credentials is not None: raise ValueError( 'The `channel` and `credentials` arguments are mutually ' - 'exclusive.', ) + 'exclusive.', + ) # Create the channel. if channel is None: @@ -119,4 +120,4 @@ def get_user_interest(self): deserialized request object and returns a deserialized response object. """ - return self._stubs['user_interest_service_stub'].GetUserInterest + return self._stubs['user_interest_service_stub'].GetUserInterest \ No newline at end of file diff --git a/google/ads/google_ads/v1/services/transports/user_list_service_grpc_transport.py b/google/ads/google_ads/v4/services/transports/user_list_service_grpc_transport.py similarity index 94% rename from google/ads/google_ads/v1/services/transports/user_list_service_grpc_transport.py rename to google/ads/google_ads/v4/services/transports/user_list_service_grpc_transport.py index ea003a0ec..2734dcc6d 100644 --- a/google/ads/google_ads/v1/services/transports/user_list_service_grpc_transport.py +++ b/google/ads/google_ads/v4/services/transports/user_list_service_grpc_transport.py @@ -14,14 +14,15 @@ # See the License for the specific language governing permissions and # limitations under the License. + import google.api_core.grpc_helpers -from google.ads.google_ads.v1.proto.services import user_list_service_pb2_grpc +from google.ads.google_ads.v4.proto.services import user_list_service_pb2_grpc class UserListServiceGrpcTransport(object): """gRPC transport class providing stubs for - google.ads.googleads.v1.services UserListService API. + google.ads.googleads.v4.services UserListService API. The transport provides access to the raw gRPC stubs, which can be used to take advantage of advanced @@ -29,11 +30,10 @@ class UserListServiceGrpcTransport(object): """ # The scopes needed to make gRPC calls to all of the methods defined # in this service. - _OAUTH_SCOPES = () + _OAUTH_SCOPES = ( + ) - def __init__(self, - channel=None, - credentials=None, + def __init__(self, channel=None, credentials=None, address='googleads.googleapis.com:443'): """Instantiate the transport class. @@ -53,7 +53,8 @@ def __init__(self, if channel is not None and credentials is not None: raise ValueError( 'The `channel` and `credentials` arguments are mutually ' - 'exclusive.', ) + 'exclusive.', + ) # Create the channel. if channel is None: @@ -132,4 +133,4 @@ def mutate_user_lists(self): deserialized request object and returns a deserialized response object. """ - return self._stubs['user_list_service_stub'].MutateUserLists + return self._stubs['user_list_service_stub'].MutateUserLists \ No newline at end of file diff --git a/google/ads/google_ads/v4/services/transports/user_location_view_service_grpc_transport.py b/google/ads/google_ads/v4/services/transports/user_location_view_service_grpc_transport.py new file mode 100644 index 000000000..7094f0348 --- /dev/null +++ b/google/ads/google_ads/v4/services/transports/user_location_view_service_grpc_transport.py @@ -0,0 +1,123 @@ +# -*- coding: utf-8 -*- +# +# 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. + + +import google.api_core.grpc_helpers + +from google.ads.google_ads.v4.proto.services import user_location_view_service_pb2_grpc + + +class UserLocationViewServiceGrpcTransport(object): + """gRPC transport class providing stubs for + google.ads.googleads.v4.services UserLocationViewService API. + + The transport provides access to the raw gRPC stubs, + which can be used to take advantage of advanced + features of gRPC. + """ + # The scopes needed to make gRPC calls to all of the methods defined + # in this service. + _OAUTH_SCOPES = ( + ) + + def __init__(self, channel=None, credentials=None, + address='googleads.googleapis.com:443'): + """Instantiate the transport class. + + Args: + channel (grpc.Channel): A ``Channel`` instance through + which to make calls. This argument is mutually exclusive + with ``credentials``; providing both will raise an exception. + credentials (google.auth.credentials.Credentials): The + authorization credentials to attach to requests. These + credentials identify this application to the service. If none + are specified, the client will attempt to ascertain the + credentials from the environment. + address (str): The address where the service is hosted. + """ + # If both `channel` and `credentials` are specified, raise an + # exception (channels come with credentials baked in already). + if channel is not None and credentials is not None: + raise ValueError( + 'The `channel` and `credentials` arguments are mutually ' + 'exclusive.', + ) + + # Create the channel. + if channel is None: + channel = self.create_channel( + address=address, + credentials=credentials, + ) + + self._channel = channel + + # gRPC uses objects called "stubs" that are bound to the + # channel and provide a basic method for each RPC. + self._stubs = { + 'user_location_view_service_stub': user_location_view_service_pb2_grpc.UserLocationViewServiceStub(channel), + } + + + @classmethod + def create_channel( + cls, + address='googleads.googleapis.com:443', + credentials=None, + **kwargs): + """Create and return a gRPC channel object. + + Args: + address (str): The host for the channel to use. + credentials (~.Credentials): The + authorization credentials to attach to requests. These + credentials identify this application to the service. If + none are specified, the client will attempt to ascertain + the credentials from the environment. + kwargs (dict): Keyword arguments, which are passed to the + channel creation. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return google.api_core.grpc_helpers.create_channel( + address, + credentials=credentials, + scopes=cls._OAUTH_SCOPES, + **kwargs + ) + + @property + def channel(self): + """The gRPC channel used by the transport. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return self._channel + + @property + def get_user_location_view(self): + """Return the gRPC stub for :meth:`UserLocationViewServiceClient.get_user_location_view`. + + Returns the requested user location view in full detail. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs['user_location_view_service_stub'].GetUserLocationView \ No newline at end of file diff --git a/google/ads/google_ads/v1/services/transports/video_service_grpc_transport.py b/google/ads/google_ads/v4/services/transports/video_service_grpc_transport.py similarity index 92% rename from google/ads/google_ads/v1/services/transports/video_service_grpc_transport.py rename to google/ads/google_ads/v4/services/transports/video_service_grpc_transport.py index b371a3799..89af21487 100644 --- a/google/ads/google_ads/v1/services/transports/video_service_grpc_transport.py +++ b/google/ads/google_ads/v4/services/transports/video_service_grpc_transport.py @@ -14,14 +14,15 @@ # See the License for the specific language governing permissions and # limitations under the License. + import google.api_core.grpc_helpers -from google.ads.google_ads.v1.proto.services import video_service_pb2_grpc +from google.ads.google_ads.v4.proto.services import video_service_pb2_grpc class VideoServiceGrpcTransport(object): """gRPC transport class providing stubs for - google.ads.googleads.v1.services VideoService API. + google.ads.googleads.v4.services VideoService API. The transport provides access to the raw gRPC stubs, which can be used to take advantage of advanced @@ -29,11 +30,10 @@ class VideoServiceGrpcTransport(object): """ # The scopes needed to make gRPC calls to all of the methods defined # in this service. - _OAUTH_SCOPES = () + _OAUTH_SCOPES = ( + ) - def __init__(self, - channel=None, - credentials=None, + def __init__(self, channel=None, credentials=None, address='googleads.googleapis.com:443'): """Instantiate the transport class. @@ -53,7 +53,8 @@ def __init__(self, if channel is not None and credentials is not None: raise ValueError( 'The `channel` and `credentials` arguments are mutually ' - 'exclusive.', ) + 'exclusive.', + ) # Create the channel. if channel is None: @@ -119,4 +120,4 @@ def get_video(self): deserialized request object and returns a deserialized response object. """ - return self._stubs['video_service_stub'].GetVideo + return self._stubs['video_service_stub'].GetVideo \ No newline at end of file diff --git a/google/ads/google_ads/v4/services/user_data_service_client.py b/google/ads/google_ads/v4/services/user_data_service_client.py new file mode 100644 index 000000000..c81015267 --- /dev/null +++ b/google/ads/google_ads/v4/services/user_data_service_client.py @@ -0,0 +1,237 @@ +# -*- coding: utf-8 -*- +# +# 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. + +"""Accesses the google.ads.googleads.v4.services UserDataService API.""" + +import pkg_resources +import warnings + +from google.oauth2 import service_account +import google.api_core.gapic_v1.client_info +import google.api_core.gapic_v1.config +import google.api_core.gapic_v1.method +import google.api_core.gapic_v1.routing_header +import google.api_core.grpc_helpers +import google.api_core.protobuf_helpers + +from google.ads.google_ads.v4.services import user_data_service_client_config +from google.ads.google_ads.v4.services.transports import user_data_service_grpc_transport +from google.ads.google_ads.v4.proto.services import user_data_service_pb2 + + + +_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( + 'google-ads', +).version + + +class UserDataServiceClient(object): + """ + Service to manage user data uploads. + Accessible to whitelisted customers only. + """ + + SERVICE_ADDRESS = 'googleads.googleapis.com:443' + """The default address of the service.""" + + # The name of the interface for this client. This is the key used to + # find the method configuration in the client_config dictionary. + _INTERFACE_NAME = 'google.ads.googleads.v4.services.UserDataService' + + + @classmethod + def from_service_account_file(cls, filename, *args, **kwargs): + """Creates an instance of this client using the provided credentials + file. + + Args: + filename (str): The path to the service account private key json + file. + args: Additional arguments to pass to the constructor. + kwargs: Additional arguments to pass to the constructor. + + Returns: + UserDataServiceClient: The constructed client. + """ + credentials = service_account.Credentials.from_service_account_file( + filename) + kwargs['credentials'] = credentials + return cls(*args, **kwargs) + + from_service_account_json = from_service_account_file + + def __init__(self, transport=None, channel=None, credentials=None, + client_config=None, client_info=None): + """Constructor. + + Args: + transport (Union[~.UserDataServiceGrpcTransport, + Callable[[~.Credentials, type], ~.UserDataServiceGrpcTransport]): A transport + instance, responsible for actually making the API calls. + The default transport uses the gRPC protocol. + This argument may also be a callable which returns a + transport instance. Callables will be sent the credentials + as the first argument and the default transport class as + the second argument. + channel (grpc.Channel): DEPRECATED. A ``Channel`` instance + through which to make calls. This argument is mutually exclusive + with ``credentials``; providing both will raise an exception. + credentials (google.auth.credentials.Credentials): The + authorization credentials to attach to requests. These + credentials identify this application to the service. If none + are specified, the client will attempt to ascertain the + credentials from the environment. + This argument is mutually exclusive with providing a + transport instance to ``transport``; doing so will raise + an exception. + client_config (dict): DEPRECATED. A dictionary of call options for + each method. If not specified, the default configuration is used. + client_info (google.api_core.gapic_v1.client_info.ClientInfo): + The client info used to send a user-agent string along with + API requests. If ``None``, then default info will be used. + Generally, you only need to set this if you're developing + your own client library. + """ + # Raise deprecation warnings for things we want to go away. + if client_config is not None: + warnings.warn('The `client_config` argument is deprecated.', + PendingDeprecationWarning, stacklevel=2) + else: + client_config = user_data_service_client_config.config + + if channel: + warnings.warn('The `channel` argument is deprecated; use ' + '`transport` instead.', + PendingDeprecationWarning, stacklevel=2) + + # Instantiate the transport. + # The transport is responsible for handling serialization and + # deserialization and actually sending data to the service. + if transport: + if callable(transport): + self.transport = transport( + credentials=credentials, + default_class=user_data_service_grpc_transport.UserDataServiceGrpcTransport, + ) + else: + if credentials: + raise ValueError( + 'Received both a transport instance and ' + 'credentials; these are mutually exclusive.' + ) + self.transport = transport + else: + self.transport = user_data_service_grpc_transport.UserDataServiceGrpcTransport( + address=self.SERVICE_ADDRESS, + channel=channel, + credentials=credentials, + ) + + if client_info is None: + client_info = google.api_core.gapic_v1.client_info.ClientInfo( + gapic_version=_GAPIC_LIBRARY_VERSION, + ) + else: + client_info.gapic_version = _GAPIC_LIBRARY_VERSION + self._client_info = client_info + + # Parse out the default settings for retry and timeout for each RPC + # from the client configuration. + # (Ordinarily, these are the defaults specified in the `*_config.py` + # file next to this one.) + self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( + client_config['interfaces'][self._INTERFACE_NAME], + ) + + # Save a dictionary of cached API call functions. + # These are the actual callables which invoke the proper + # transport methods, wrapped with `wrap_method` to add retry, + # timeout, and the like. + self._inner_api_calls = {} + + # Service calls + def upload_user_data( + self, + customer_id, + operations, + customer_match_user_list_metadata=None, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None): + """ + Uploads the given user data. + + Args: + customer_id (str): Required. The ID of the customer for which to update the user data. + operations (list[Union[dict, ~google.ads.googleads_v4.types.UserDataOperation]]): Required. The list of operations to be done. + + If a dict is provided, it must be of the same form as the protobuf + message :class:`~google.ads.googleads_v4.types.UserDataOperation` + customer_match_user_list_metadata (Union[dict, ~google.ads.googleads_v4.types.CustomerMatchUserListMetadata]): Metadata for data updates to a Customer Match user list. + + If a dict is provided, it must be of the same form as the protobuf + message :class:`~google.ads.googleads_v4.types.CustomerMatchUserListMetadata` + retry (Optional[google.api_core.retry.Retry]): A retry object used + to retry requests. If ``None`` is specified, requests will not + be retried. + timeout (Optional[float]): The amount of time, in seconds, to wait + for the request to complete. Note that if ``retry`` is + specified, the timeout applies to each individual attempt. + metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata + that is provided to the method. + + Returns: + A :class:`~google.ads.googleads_v4.types.UploadUserDataResponse` instance. + + Raises: + google.api_core.exceptions.GoogleAPICallError: If the request + failed for any reason. + google.api_core.exceptions.RetryError: If the request failed due + to a retryable error and retry attempts failed. + ValueError: If the parameters are invalid. + """ + # Wrap the transport method to add retry and timeout logic. + if 'upload_user_data' not in self._inner_api_calls: + self._inner_api_calls['upload_user_data'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.upload_user_data, + default_retry=self._method_configs['UploadUserData'].retry, + default_timeout=self._method_configs['UploadUserData'].timeout, + client_info=self._client_info, + ) + + # Sanity check: We have some fields which are mutually exclusive; + # raise ValueError if more than one is sent. + google.api_core.protobuf_helpers.check_oneof( + customer_match_user_list_metadata=customer_match_user_list_metadata, + ) + + request = user_data_service_pb2.UploadUserDataRequest( + customer_id=customer_id, + operations=operations, + customer_match_user_list_metadata=customer_match_user_list_metadata, + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [('customer_id', customer_id)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata(routing_header) + metadata.append(routing_metadata) + + return self._inner_api_calls['upload_user_data'](request, retry=retry, timeout=timeout, metadata=metadata) diff --git a/google/ads/google_ads/v4/services/user_data_service_client_config.py b/google/ads/google_ads/v4/services/user_data_service_client_config.py new file mode 100644 index 000000000..debd238ec --- /dev/null +++ b/google/ads/google_ads/v4/services/user_data_service_client_config.py @@ -0,0 +1,31 @@ +config = { + "interfaces": { + "google.ads.googleads.v4.services.UserDataService": { + "retry_codes": { + "idempotent": [ + "DEADLINE_EXCEEDED", + "UNAVAILABLE" + ], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 5000, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 3600000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 3600000, + "total_timeout_millis": 3600000 + } + }, + "methods": { + "UploadUserData": { + "timeout_millis": 600000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + } + } + } + } +} diff --git a/google/ads/google_ads/v1/services/user_interest_service_client.py b/google/ads/google_ads/v4/services/user_interest_service_client.py similarity index 76% rename from google/ads/google_ads/v1/services/user_interest_service_client.py rename to google/ads/google_ads/v4/services/user_interest_service_client.py index 58ffe12ac..6cfd28599 100644 --- a/google/ads/google_ads/v1/services/user_interest_service_client.py +++ b/google/ads/google_ads/v4/services/user_interest_service_client.py @@ -13,7 +13,8 @@ # 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. -"""Accesses the google.ads.googleads.v1.services UserInterestService API.""" + +"""Accesses the google.ads.googleads.v4.services UserInterestService API.""" import pkg_resources import warnings @@ -22,15 +23,19 @@ import google.api_core.gapic_v1.client_info import google.api_core.gapic_v1.config import google.api_core.gapic_v1.method +import google.api_core.gapic_v1.routing_header import google.api_core.grpc_helpers import google.api_core.path_template -from google.ads.google_ads.v1.services import user_interest_service_client_config -from google.ads.google_ads.v1.services.transports import user_interest_service_grpc_transport -from google.ads.google_ads.v1.proto.services import user_interest_service_pb2 +from google.ads.google_ads.v4.services import user_interest_service_client_config +from google.ads.google_ads.v4.services.transports import user_interest_service_grpc_transport +from google.ads.google_ads.v4.proto.services import user_interest_service_pb2 + + _GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( - 'google-ads', ).version + 'google-ads', +).version class UserInterestServiceClient(object): @@ -41,7 +46,8 @@ class UserInterestServiceClient(object): # The name of the interface for this client. This is the key used to # find the method configuration in the client_config dictionary. - _INTERFACE_NAME = 'google.ads.googleads.v1.services.UserInterestService' + _INTERFACE_NAME = 'google.ads.googleads.v4.services.UserInterestService' + @classmethod def from_service_account_file(cls, filename, *args, **kwargs): @@ -64,6 +70,7 @@ def from_service_account_file(cls, filename, *args, **kwargs): from_service_account_json = from_service_account_file + @classmethod def user_interest_path(cls, customer, user_interest): """Return a fully-qualified user_interest string.""" @@ -73,12 +80,8 @@ def user_interest_path(cls, customer, user_interest): user_interest=user_interest, ) - def __init__(self, - transport=None, - channel=None, - credentials=None, - client_config=None, - client_info=None): + def __init__(self, transport=None, channel=None, credentials=None, + client_config=None, client_info=None): """Constructor. Args: @@ -111,19 +114,15 @@ def __init__(self, """ # Raise deprecation warnings for things we want to go away. if client_config is not None: - warnings.warn( - 'The `client_config` argument is deprecated.', - PendingDeprecationWarning, - stacklevel=2) + warnings.warn('The `client_config` argument is deprecated.', + PendingDeprecationWarning, stacklevel=2) else: client_config = user_interest_service_client_config.config if channel: - warnings.warn( - 'The `channel` argument is deprecated; use ' - '`transport` instead.', - PendingDeprecationWarning, - stacklevel=2) + warnings.warn('The `channel` argument is deprecated; use ' + '`transport` instead.', + PendingDeprecationWarning, stacklevel=2) # Instantiate the transport. # The transport is responsible for handling serialization and @@ -132,14 +131,14 @@ def __init__(self, if callable(transport): self.transport = transport( credentials=credentials, - default_class=user_interest_service_grpc_transport. - UserInterestServiceGrpcTransport, + default_class=user_interest_service_grpc_transport.UserInterestServiceGrpcTransport, ) else: if credentials: raise ValueError( 'Received both a transport instance and ' - 'credentials; these are mutually exclusive.') + 'credentials; these are mutually exclusive.' + ) self.transport = transport else: self.transport = user_interest_service_grpc_transport.UserInterestServiceGrpcTransport( @@ -150,7 +149,8 @@ def __init__(self, if client_info is None: client_info = google.api_core.gapic_v1.client_info.ClientInfo( - gapic_version=_GAPIC_LIBRARY_VERSION, ) + gapic_version=_GAPIC_LIBRARY_VERSION, + ) else: client_info.gapic_version = _GAPIC_LIBRARY_VERSION self._client_info = client_info @@ -160,7 +160,8 @@ def __init__(self, # (Ordinarily, these are the defaults specified in the `*_config.py` # file next to this one.) self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( - client_config['interfaces'][self._INTERFACE_NAME], ) + client_config['interfaces'][self._INTERFACE_NAME], + ) # Save a dictionary of cached API call functions. # These are the actual callables which invoke the proper @@ -169,16 +170,17 @@ def __init__(self, self._inner_api_calls = {} # Service calls - def get_user_interest(self, - resource_name, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): + def get_user_interest( + self, + resource_name, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None): """ Returns the requested user interest in full detail Args: - resource_name (str): Resource name of the UserInterest to fetch. + resource_name (str): Required. Resource name of the UserInterest to fetch. retry (Optional[google.api_core.retry.Retry]): A retry object used to retry requests. If ``None`` is specified, requests will not be retried. @@ -189,7 +191,7 @@ def get_user_interest(self, that is provided to the method. Returns: - A :class:`~google.ads.googleads_v1.types.UserInterest` instance. + A :class:`~google.ads.googleads_v4.types.UserInterest` instance. Raises: google.api_core.exceptions.GoogleAPICallError: If the request @@ -200,17 +202,25 @@ def get_user_interest(self, """ # Wrap the transport method to add retry and timeout logic. if 'get_user_interest' not in self._inner_api_calls: - self._inner_api_calls[ - 'get_user_interest'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.get_user_interest, - default_retry=self._method_configs['GetUserInterest']. - retry, - default_timeout=self._method_configs['GetUserInterest']. - timeout, - client_info=self._client_info, - ) + self._inner_api_calls['get_user_interest'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.get_user_interest, + default_retry=self._method_configs['GetUserInterest'].retry, + default_timeout=self._method_configs['GetUserInterest'].timeout, + client_info=self._client_info, + ) request = user_interest_service_pb2.GetUserInterestRequest( - resource_name=resource_name, ) - return self._inner_api_calls['get_user_interest']( - request, retry=retry, timeout=timeout, metadata=metadata) + resource_name=resource_name, + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [('resource_name', resource_name)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata(routing_header) + metadata.append(routing_metadata) + + return self._inner_api_calls['get_user_interest'](request, retry=retry, timeout=timeout, metadata=metadata) diff --git a/google/ads/google_ads/v4/services/user_interest_service_client_config.py b/google/ads/google_ads/v4/services/user_interest_service_client_config.py new file mode 100644 index 000000000..7684eff2a --- /dev/null +++ b/google/ads/google_ads/v4/services/user_interest_service_client_config.py @@ -0,0 +1,31 @@ +config = { + "interfaces": { + "google.ads.googleads.v4.services.UserInterestService": { + "retry_codes": { + "idempotent": [ + "DEADLINE_EXCEEDED", + "UNAVAILABLE" + ], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 5000, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 3600000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 3600000, + "total_timeout_millis": 3600000 + } + }, + "methods": { + "GetUserInterest": { + "timeout_millis": 60000, + "retry_codes_name": "idempotent", + "retry_params_name": "default" + } + } + } + } +} diff --git a/google/ads/google_ads/v4/services/user_list_service_client.py b/google/ads/google_ads/v4/services/user_list_service_client.py new file mode 100644 index 000000000..1a0305f1c --- /dev/null +++ b/google/ads/google_ads/v4/services/user_list_service_client.py @@ -0,0 +1,297 @@ +# -*- coding: utf-8 -*- +# +# 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. + +"""Accesses the google.ads.googleads.v4.services UserListService API.""" + +import pkg_resources +import warnings + +from google.oauth2 import service_account +import google.api_core.gapic_v1.client_info +import google.api_core.gapic_v1.config +import google.api_core.gapic_v1.method +import google.api_core.gapic_v1.routing_header +import google.api_core.grpc_helpers +import google.api_core.path_template + +from google.ads.google_ads.v4.services import user_list_service_client_config +from google.ads.google_ads.v4.services.transports import user_list_service_grpc_transport +from google.ads.google_ads.v4.proto.services import user_list_service_pb2 + + + +_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( + 'google-ads', +).version + + +class UserListServiceClient(object): + """Service to manage user lists.""" + + SERVICE_ADDRESS = 'googleads.googleapis.com:443' + """The default address of the service.""" + + # The name of the interface for this client. This is the key used to + # find the method configuration in the client_config dictionary. + _INTERFACE_NAME = 'google.ads.googleads.v4.services.UserListService' + + + @classmethod + def from_service_account_file(cls, filename, *args, **kwargs): + """Creates an instance of this client using the provided credentials + file. + + Args: + filename (str): The path to the service account private key json + file. + args: Additional arguments to pass to the constructor. + kwargs: Additional arguments to pass to the constructor. + + Returns: + UserListServiceClient: The constructed client. + """ + credentials = service_account.Credentials.from_service_account_file( + filename) + kwargs['credentials'] = credentials + return cls(*args, **kwargs) + + from_service_account_json = from_service_account_file + + + @classmethod + def user_list_path(cls, customer, user_list): + """Return a fully-qualified user_list string.""" + return google.api_core.path_template.expand( + 'customers/{customer}/userLists/{user_list}', + customer=customer, + user_list=user_list, + ) + + def __init__(self, transport=None, channel=None, credentials=None, + client_config=None, client_info=None): + """Constructor. + + Args: + transport (Union[~.UserListServiceGrpcTransport, + Callable[[~.Credentials, type], ~.UserListServiceGrpcTransport]): A transport + instance, responsible for actually making the API calls. + The default transport uses the gRPC protocol. + This argument may also be a callable which returns a + transport instance. Callables will be sent the credentials + as the first argument and the default transport class as + the second argument. + channel (grpc.Channel): DEPRECATED. A ``Channel`` instance + through which to make calls. This argument is mutually exclusive + with ``credentials``; providing both will raise an exception. + credentials (google.auth.credentials.Credentials): The + authorization credentials to attach to requests. These + credentials identify this application to the service. If none + are specified, the client will attempt to ascertain the + credentials from the environment. + This argument is mutually exclusive with providing a + transport instance to ``transport``; doing so will raise + an exception. + client_config (dict): DEPRECATED. A dictionary of call options for + each method. If not specified, the default configuration is used. + client_info (google.api_core.gapic_v1.client_info.ClientInfo): + The client info used to send a user-agent string along with + API requests. If ``None``, then default info will be used. + Generally, you only need to set this if you're developing + your own client library. + """ + # Raise deprecation warnings for things we want to go away. + if client_config is not None: + warnings.warn('The `client_config` argument is deprecated.', + PendingDeprecationWarning, stacklevel=2) + else: + client_config = user_list_service_client_config.config + + if channel: + warnings.warn('The `channel` argument is deprecated; use ' + '`transport` instead.', + PendingDeprecationWarning, stacklevel=2) + + # Instantiate the transport. + # The transport is responsible for handling serialization and + # deserialization and actually sending data to the service. + if transport: + if callable(transport): + self.transport = transport( + credentials=credentials, + default_class=user_list_service_grpc_transport.UserListServiceGrpcTransport, + ) + else: + if credentials: + raise ValueError( + 'Received both a transport instance and ' + 'credentials; these are mutually exclusive.' + ) + self.transport = transport + else: + self.transport = user_list_service_grpc_transport.UserListServiceGrpcTransport( + address=self.SERVICE_ADDRESS, + channel=channel, + credentials=credentials, + ) + + if client_info is None: + client_info = google.api_core.gapic_v1.client_info.ClientInfo( + gapic_version=_GAPIC_LIBRARY_VERSION, + ) + else: + client_info.gapic_version = _GAPIC_LIBRARY_VERSION + self._client_info = client_info + + # Parse out the default settings for retry and timeout for each RPC + # from the client configuration. + # (Ordinarily, these are the defaults specified in the `*_config.py` + # file next to this one.) + self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( + client_config['interfaces'][self._INTERFACE_NAME], + ) + + # Save a dictionary of cached API call functions. + # These are the actual callables which invoke the proper + # transport methods, wrapped with `wrap_method` to add retry, + # timeout, and the like. + self._inner_api_calls = {} + + # Service calls + def get_user_list( + self, + resource_name, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None): + """ + Returns the requested user list. + + Args: + resource_name (str): Required. The resource name of the user list to fetch. + retry (Optional[google.api_core.retry.Retry]): A retry object used + to retry requests. If ``None`` is specified, requests will not + be retried. + timeout (Optional[float]): The amount of time, in seconds, to wait + for the request to complete. Note that if ``retry`` is + specified, the timeout applies to each individual attempt. + metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata + that is provided to the method. + + Returns: + A :class:`~google.ads.googleads_v4.types.UserList` instance. + + Raises: + google.api_core.exceptions.GoogleAPICallError: If the request + failed for any reason. + google.api_core.exceptions.RetryError: If the request failed due + to a retryable error and retry attempts failed. + ValueError: If the parameters are invalid. + """ + # Wrap the transport method to add retry and timeout logic. + if 'get_user_list' not in self._inner_api_calls: + self._inner_api_calls['get_user_list'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.get_user_list, + default_retry=self._method_configs['GetUserList'].retry, + default_timeout=self._method_configs['GetUserList'].timeout, + client_info=self._client_info, + ) + + request = user_list_service_pb2.GetUserListRequest( + resource_name=resource_name, + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [('resource_name', resource_name)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata(routing_header) + metadata.append(routing_metadata) + + return self._inner_api_calls['get_user_list'](request, retry=retry, timeout=timeout, metadata=metadata) + + def mutate_user_lists( + self, + customer_id, + operations, + partial_failure=None, + validate_only=None, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None): + """ + Creates or updates user lists. Operation statuses are returned. + + Args: + customer_id (str): Required. The ID of the customer whose user lists are being modified. + operations (list[Union[dict, ~google.ads.googleads_v4.types.UserListOperation]]): Required. The list of operations to perform on individual user lists. + + If a dict is provided, it must be of the same form as the protobuf + message :class:`~google.ads.googleads_v4.types.UserListOperation` + partial_failure (bool): If true, successful operations will be carried out and invalid + operations will return errors. If false, all operations will be carried + out in one transaction if and only if they are all valid. + Default is false. + validate_only (bool): If true, the request is validated but not executed. Only errors are + returned, not results. + retry (Optional[google.api_core.retry.Retry]): A retry object used + to retry requests. If ``None`` is specified, requests will not + be retried. + timeout (Optional[float]): The amount of time, in seconds, to wait + for the request to complete. Note that if ``retry`` is + specified, the timeout applies to each individual attempt. + metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata + that is provided to the method. + + Returns: + A :class:`~google.ads.googleads_v4.types.MutateUserListsResponse` instance. + + Raises: + google.api_core.exceptions.GoogleAPICallError: If the request + failed for any reason. + google.api_core.exceptions.RetryError: If the request failed due + to a retryable error and retry attempts failed. + ValueError: If the parameters are invalid. + """ + # Wrap the transport method to add retry and timeout logic. + if 'mutate_user_lists' not in self._inner_api_calls: + self._inner_api_calls['mutate_user_lists'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.mutate_user_lists, + default_retry=self._method_configs['MutateUserLists'].retry, + default_timeout=self._method_configs['MutateUserLists'].timeout, + client_info=self._client_info, + ) + + request = user_list_service_pb2.MutateUserListsRequest( + customer_id=customer_id, + operations=operations, + partial_failure=partial_failure, + validate_only=validate_only, + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [('customer_id', customer_id)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata(routing_header) + metadata.append(routing_metadata) + + return self._inner_api_calls['mutate_user_lists'](request, retry=retry, timeout=timeout, metadata=metadata) diff --git a/google/ads/google_ads/v4/services/user_list_service_client_config.py b/google/ads/google_ads/v4/services/user_list_service_client_config.py new file mode 100644 index 000000000..d69dd465c --- /dev/null +++ b/google/ads/google_ads/v4/services/user_list_service_client_config.py @@ -0,0 +1,36 @@ +config = { + "interfaces": { + "google.ads.googleads.v4.services.UserListService": { + "retry_codes": { + "idempotent": [ + "DEADLINE_EXCEEDED", + "UNAVAILABLE" + ], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 5000, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 3600000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 3600000, + "total_timeout_millis": 3600000 + } + }, + "methods": { + "GetUserList": { + "timeout_millis": 60000, + "retry_codes_name": "idempotent", + "retry_params_name": "default" + }, + "MutateUserLists": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + } + } + } + } +} diff --git a/google/ads/google_ads/v4/services/user_location_view_service_client.py b/google/ads/google_ads/v4/services/user_location_view_service_client.py new file mode 100644 index 000000000..841b2c90d --- /dev/null +++ b/google/ads/google_ads/v4/services/user_location_view_service_client.py @@ -0,0 +1,226 @@ +# -*- coding: utf-8 -*- +# +# 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. + +"""Accesses the google.ads.googleads.v4.services UserLocationViewService API.""" + +import pkg_resources +import warnings + +from google.oauth2 import service_account +import google.api_core.gapic_v1.client_info +import google.api_core.gapic_v1.config +import google.api_core.gapic_v1.method +import google.api_core.gapic_v1.routing_header +import google.api_core.grpc_helpers +import google.api_core.path_template + +from google.ads.google_ads.v4.services import user_location_view_service_client_config +from google.ads.google_ads.v4.services.transports import user_location_view_service_grpc_transport +from google.ads.google_ads.v4.proto.services import user_location_view_service_pb2 + + + +_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( + 'google-ads', +).version + + +class UserLocationViewServiceClient(object): + """Service to manage user location views.""" + + SERVICE_ADDRESS = 'googleads.googleapis.com:443' + """The default address of the service.""" + + # The name of the interface for this client. This is the key used to + # find the method configuration in the client_config dictionary. + _INTERFACE_NAME = 'google.ads.googleads.v4.services.UserLocationViewService' + + + @classmethod + def from_service_account_file(cls, filename, *args, **kwargs): + """Creates an instance of this client using the provided credentials + file. + + Args: + filename (str): The path to the service account private key json + file. + args: Additional arguments to pass to the constructor. + kwargs: Additional arguments to pass to the constructor. + + Returns: + UserLocationViewServiceClient: The constructed client. + """ + credentials = service_account.Credentials.from_service_account_file( + filename) + kwargs['credentials'] = credentials + return cls(*args, **kwargs) + + from_service_account_json = from_service_account_file + + + @classmethod + def user_location_view_path(cls, customer, user_location_view): + """Return a fully-qualified user_location_view string.""" + return google.api_core.path_template.expand( + 'customers/{customer}/userLocationViews/{user_location_view}', + customer=customer, + user_location_view=user_location_view, + ) + + def __init__(self, transport=None, channel=None, credentials=None, + client_config=None, client_info=None): + """Constructor. + + Args: + transport (Union[~.UserLocationViewServiceGrpcTransport, + Callable[[~.Credentials, type], ~.UserLocationViewServiceGrpcTransport]): A transport + instance, responsible for actually making the API calls. + The default transport uses the gRPC protocol. + This argument may also be a callable which returns a + transport instance. Callables will be sent the credentials + as the first argument and the default transport class as + the second argument. + channel (grpc.Channel): DEPRECATED. A ``Channel`` instance + through which to make calls. This argument is mutually exclusive + with ``credentials``; providing both will raise an exception. + credentials (google.auth.credentials.Credentials): The + authorization credentials to attach to requests. These + credentials identify this application to the service. If none + are specified, the client will attempt to ascertain the + credentials from the environment. + This argument is mutually exclusive with providing a + transport instance to ``transport``; doing so will raise + an exception. + client_config (dict): DEPRECATED. A dictionary of call options for + each method. If not specified, the default configuration is used. + client_info (google.api_core.gapic_v1.client_info.ClientInfo): + The client info used to send a user-agent string along with + API requests. If ``None``, then default info will be used. + Generally, you only need to set this if you're developing + your own client library. + """ + # Raise deprecation warnings for things we want to go away. + if client_config is not None: + warnings.warn('The `client_config` argument is deprecated.', + PendingDeprecationWarning, stacklevel=2) + else: + client_config = user_location_view_service_client_config.config + + if channel: + warnings.warn('The `channel` argument is deprecated; use ' + '`transport` instead.', + PendingDeprecationWarning, stacklevel=2) + + # Instantiate the transport. + # The transport is responsible for handling serialization and + # deserialization and actually sending data to the service. + if transport: + if callable(transport): + self.transport = transport( + credentials=credentials, + default_class=user_location_view_service_grpc_transport.UserLocationViewServiceGrpcTransport, + ) + else: + if credentials: + raise ValueError( + 'Received both a transport instance and ' + 'credentials; these are mutually exclusive.' + ) + self.transport = transport + else: + self.transport = user_location_view_service_grpc_transport.UserLocationViewServiceGrpcTransport( + address=self.SERVICE_ADDRESS, + channel=channel, + credentials=credentials, + ) + + if client_info is None: + client_info = google.api_core.gapic_v1.client_info.ClientInfo( + gapic_version=_GAPIC_LIBRARY_VERSION, + ) + else: + client_info.gapic_version = _GAPIC_LIBRARY_VERSION + self._client_info = client_info + + # Parse out the default settings for retry and timeout for each RPC + # from the client configuration. + # (Ordinarily, these are the defaults specified in the `*_config.py` + # file next to this one.) + self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( + client_config['interfaces'][self._INTERFACE_NAME], + ) + + # Save a dictionary of cached API call functions. + # These are the actual callables which invoke the proper + # transport methods, wrapped with `wrap_method` to add retry, + # timeout, and the like. + self._inner_api_calls = {} + + # Service calls + def get_user_location_view( + self, + resource_name, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None): + """ + Returns the requested user location view in full detail. + + Args: + resource_name (str): Required. The resource name of the user location view to fetch. + retry (Optional[google.api_core.retry.Retry]): A retry object used + to retry requests. If ``None`` is specified, requests will not + be retried. + timeout (Optional[float]): The amount of time, in seconds, to wait + for the request to complete. Note that if ``retry`` is + specified, the timeout applies to each individual attempt. + metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata + that is provided to the method. + + Returns: + A :class:`~google.ads.googleads_v4.types.UserLocationView` instance. + + Raises: + google.api_core.exceptions.GoogleAPICallError: If the request + failed for any reason. + google.api_core.exceptions.RetryError: If the request failed due + to a retryable error and retry attempts failed. + ValueError: If the parameters are invalid. + """ + # Wrap the transport method to add retry and timeout logic. + if 'get_user_location_view' not in self._inner_api_calls: + self._inner_api_calls['get_user_location_view'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.get_user_location_view, + default_retry=self._method_configs['GetUserLocationView'].retry, + default_timeout=self._method_configs['GetUserLocationView'].timeout, + client_info=self._client_info, + ) + + request = user_location_view_service_pb2.GetUserLocationViewRequest( + resource_name=resource_name, + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [('resource_name', resource_name)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata(routing_header) + metadata.append(routing_metadata) + + return self._inner_api_calls['get_user_location_view'](request, retry=retry, timeout=timeout, metadata=metadata) diff --git a/google/ads/google_ads/v4/services/user_location_view_service_client_config.py b/google/ads/google_ads/v4/services/user_location_view_service_client_config.py new file mode 100644 index 000000000..efb4c56ef --- /dev/null +++ b/google/ads/google_ads/v4/services/user_location_view_service_client_config.py @@ -0,0 +1,31 @@ +config = { + "interfaces": { + "google.ads.googleads.v4.services.UserLocationViewService": { + "retry_codes": { + "idempotent": [ + "DEADLINE_EXCEEDED", + "UNAVAILABLE" + ], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 5000, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 3600000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 3600000, + "total_timeout_millis": 3600000 + } + }, + "methods": { + "GetUserLocationView": { + "timeout_millis": 60000, + "retry_codes_name": "idempotent", + "retry_params_name": "default" + } + } + } + } +} diff --git a/google/ads/google_ads/v1/services/video_service_client.py b/google/ads/google_ads/v4/services/video_service_client.py similarity index 75% rename from google/ads/google_ads/v1/services/video_service_client.py rename to google/ads/google_ads/v4/services/video_service_client.py index f862b1bac..792ece215 100644 --- a/google/ads/google_ads/v1/services/video_service_client.py +++ b/google/ads/google_ads/v4/services/video_service_client.py @@ -13,7 +13,8 @@ # 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. -"""Accesses the google.ads.googleads.v1.services VideoService API.""" + +"""Accesses the google.ads.googleads.v4.services VideoService API.""" import pkg_resources import warnings @@ -22,15 +23,19 @@ import google.api_core.gapic_v1.client_info import google.api_core.gapic_v1.config import google.api_core.gapic_v1.method +import google.api_core.gapic_v1.routing_header import google.api_core.grpc_helpers import google.api_core.path_template -from google.ads.google_ads.v1.services import video_service_client_config -from google.ads.google_ads.v1.services.transports import video_service_grpc_transport -from google.ads.google_ads.v1.proto.services import video_service_pb2 +from google.ads.google_ads.v4.services import video_service_client_config +from google.ads.google_ads.v4.services.transports import video_service_grpc_transport +from google.ads.google_ads.v4.proto.services import video_service_pb2 + + _GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( - 'google-ads', ).version + 'google-ads', +).version class VideoServiceClient(object): @@ -41,7 +46,8 @@ class VideoServiceClient(object): # The name of the interface for this client. This is the key used to # find the method configuration in the client_config dictionary. - _INTERFACE_NAME = 'google.ads.googleads.v1.services.VideoService' + _INTERFACE_NAME = 'google.ads.googleads.v4.services.VideoService' + @classmethod def from_service_account_file(cls, filename, *args, **kwargs): @@ -64,6 +70,7 @@ def from_service_account_file(cls, filename, *args, **kwargs): from_service_account_json = from_service_account_file + @classmethod def video_path(cls, customer, video): """Return a fully-qualified video string.""" @@ -73,12 +80,8 @@ def video_path(cls, customer, video): video=video, ) - def __init__(self, - transport=None, - channel=None, - credentials=None, - client_config=None, - client_info=None): + def __init__(self, transport=None, channel=None, credentials=None, + client_config=None, client_info=None): """Constructor. Args: @@ -111,19 +114,15 @@ def __init__(self, """ # Raise deprecation warnings for things we want to go away. if client_config is not None: - warnings.warn( - 'The `client_config` argument is deprecated.', - PendingDeprecationWarning, - stacklevel=2) + warnings.warn('The `client_config` argument is deprecated.', + PendingDeprecationWarning, stacklevel=2) else: client_config = video_service_client_config.config if channel: - warnings.warn( - 'The `channel` argument is deprecated; use ' - '`transport` instead.', - PendingDeprecationWarning, - stacklevel=2) + warnings.warn('The `channel` argument is deprecated; use ' + '`transport` instead.', + PendingDeprecationWarning, stacklevel=2) # Instantiate the transport. # The transport is responsible for handling serialization and @@ -132,14 +131,14 @@ def __init__(self, if callable(transport): self.transport = transport( credentials=credentials, - default_class=video_service_grpc_transport. - VideoServiceGrpcTransport, + default_class=video_service_grpc_transport.VideoServiceGrpcTransport, ) else: if credentials: raise ValueError( 'Received both a transport instance and ' - 'credentials; these are mutually exclusive.') + 'credentials; these are mutually exclusive.' + ) self.transport = transport else: self.transport = video_service_grpc_transport.VideoServiceGrpcTransport( @@ -150,7 +149,8 @@ def __init__(self, if client_info is None: client_info = google.api_core.gapic_v1.client_info.ClientInfo( - gapic_version=_GAPIC_LIBRARY_VERSION, ) + gapic_version=_GAPIC_LIBRARY_VERSION, + ) else: client_info.gapic_version = _GAPIC_LIBRARY_VERSION self._client_info = client_info @@ -160,7 +160,8 @@ def __init__(self, # (Ordinarily, these are the defaults specified in the `*_config.py` # file next to this one.) self._method_configs = google.api_core.gapic_v1.config.parse_method_configs( - client_config['interfaces'][self._INTERFACE_NAME], ) + client_config['interfaces'][self._INTERFACE_NAME], + ) # Save a dictionary of cached API call functions. # These are the actual callables which invoke the proper @@ -169,16 +170,17 @@ def __init__(self, self._inner_api_calls = {} # Service calls - def get_video(self, - resource_name, - retry=google.api_core.gapic_v1.method.DEFAULT, - timeout=google.api_core.gapic_v1.method.DEFAULT, - metadata=None): + def get_video( + self, + resource_name, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None): """ Returns the requested video in full detail. Args: - resource_name (str): The resource name of the video to fetch. + resource_name (str): Required. The resource name of the video to fetch. retry (Optional[google.api_core.retry.Retry]): A retry object used to retry requests. If ``None`` is specified, requests will not be retried. @@ -189,7 +191,7 @@ def get_video(self, that is provided to the method. Returns: - A :class:`~google.ads.googleads_v1.types.Video` instance. + A :class:`~google.ads.googleads_v4.types.Video` instance. Raises: google.api_core.exceptions.GoogleAPICallError: If the request @@ -200,15 +202,25 @@ def get_video(self, """ # Wrap the transport method to add retry and timeout logic. if 'get_video' not in self._inner_api_calls: - self._inner_api_calls[ - 'get_video'] = google.api_core.gapic_v1.method.wrap_method( - self.transport.get_video, - default_retry=self._method_configs['GetVideo'].retry, - default_timeout=self._method_configs['GetVideo'].timeout, - client_info=self._client_info, - ) + self._inner_api_calls['get_video'] = google.api_core.gapic_v1.method.wrap_method( + self.transport.get_video, + default_retry=self._method_configs['GetVideo'].retry, + default_timeout=self._method_configs['GetVideo'].timeout, + client_info=self._client_info, + ) request = video_service_pb2.GetVideoRequest( - resource_name=resource_name, ) - return self._inner_api_calls['get_video']( - request, retry=retry, timeout=timeout, metadata=metadata) + resource_name=resource_name, + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [('resource_name', resource_name)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata(routing_header) + metadata.append(routing_metadata) + + return self._inner_api_calls['get_video'](request, retry=retry, timeout=timeout, metadata=metadata) diff --git a/google/ads/google_ads/v4/services/video_service_client_config.py b/google/ads/google_ads/v4/services/video_service_client_config.py new file mode 100644 index 000000000..18b236e1d --- /dev/null +++ b/google/ads/google_ads/v4/services/video_service_client_config.py @@ -0,0 +1,31 @@ +config = { + "interfaces": { + "google.ads.googleads.v4.services.VideoService": { + "retry_codes": { + "idempotent": [ + "DEADLINE_EXCEEDED", + "UNAVAILABLE" + ], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 5000, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 3600000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 3600000, + "total_timeout_millis": 3600000 + } + }, + "methods": { + "GetVideo": { + "timeout_millis": 60000, + "retry_codes_name": "idempotent", + "retry_params_name": "default" + } + } + } + } +} diff --git a/google/ads/google_ads/v4/types.py b/google/ads/google_ads/v4/types.py new file mode 100644 index 000000000..308e90b79 --- /dev/null +++ b/google/ads/google_ads/v4/types.py @@ -0,0 +1,1824 @@ +# -*- coding: utf-8 -*- +# +# Copyright 2020 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. + + +import importlib +import sys +from itertools import chain + +from google.api_core.protobuf_helpers import get_messages + +from google.ads.google_ads import util + + +if sys.version_info < (3, 7): + raise ImportError('This module requires Python 3.7 or later.') + + +_lazy_name_to_package_map = dict( + ad_asset_pb2='google.ads.google_ads.v4.proto.common', + ad_type_infos_pb2='google.ads.google_ads.v4.proto.common', + asset_types_pb2='google.ads.google_ads.v4.proto.common', + bidding_pb2='google.ads.google_ads.v4.proto.common', + click_location_pb2='google.ads.google_ads.v4.proto.common', + criteria_pb2='google.ads.google_ads.v4.proto.common', + criterion_category_availability_pb2='google.ads.google_ads.v4.proto.common', + custom_parameter_pb2='google.ads.google_ads.v4.proto.common', + dates_pb2='google.ads.google_ads.v4.proto.common', + explorer_auto_optimizer_setting_pb2='google.ads.google_ads.v4.proto.common', + extensions_pb2='google.ads.google_ads.v4.proto.common', + feed_common_pb2='google.ads.google_ads.v4.proto.common', + final_app_url_pb2='google.ads.google_ads.v4.proto.common', + frequency_cap_pb2='google.ads.google_ads.v4.proto.common', + keyword_plan_common_pb2='google.ads.google_ads.v4.proto.common', + matching_function_pb2='google.ads.google_ads.v4.proto.common', + metrics_pb2='google.ads.google_ads.v4.proto.common', + offline_user_data_pb2='google.ads.google_ads.v4.proto.common', + policy_pb2='google.ads.google_ads.v4.proto.common', + real_time_bidding_setting_pb2='google.ads.google_ads.v4.proto.common', + segments_pb2='google.ads.google_ads.v4.proto.common', + simulation_pb2='google.ads.google_ads.v4.proto.common', + tag_snippet_pb2='google.ads.google_ads.v4.proto.common', + targeting_setting_pb2='google.ads.google_ads.v4.proto.common', + text_label_pb2='google.ads.google_ads.v4.proto.common', + url_collection_pb2='google.ads.google_ads.v4.proto.common', + user_lists_pb2='google.ads.google_ads.v4.proto.common', + value_pb2='google.ads.google_ads.v4.proto.common', + access_reason_pb2='google.ads.google_ads.v4.proto.enums', + access_role_pb2='google.ads.google_ads.v4.proto.enums', + account_budget_proposal_status_pb2='google.ads.google_ads.v4.proto.enums', + account_budget_proposal_type_pb2='google.ads.google_ads.v4.proto.enums', + account_budget_status_pb2='google.ads.google_ads.v4.proto.enums', + account_link_status_pb2='google.ads.google_ads.v4.proto.enums', + ad_customizer_placeholder_field_pb2='google.ads.google_ads.v4.proto.enums', + ad_group_ad_rotation_mode_pb2='google.ads.google_ads.v4.proto.enums', + ad_group_ad_status_pb2='google.ads.google_ads.v4.proto.enums', + ad_group_criterion_approval_status_pb2='google.ads.google_ads.v4.proto.enums', + ad_group_criterion_status_pb2='google.ads.google_ads.v4.proto.enums', + ad_group_status_pb2='google.ads.google_ads.v4.proto.enums', + ad_group_type_pb2='google.ads.google_ads.v4.proto.enums', + ad_network_type_pb2='google.ads.google_ads.v4.proto.enums', + ad_serving_optimization_status_pb2='google.ads.google_ads.v4.proto.enums', + ad_strength_pb2='google.ads.google_ads.v4.proto.enums', + ad_type_pb2='google.ads.google_ads.v4.proto.enums', + advertising_channel_sub_type_pb2='google.ads.google_ads.v4.proto.enums', + advertising_channel_type_pb2='google.ads.google_ads.v4.proto.enums', + affiliate_location_feed_relationship_type_pb2='google.ads.google_ads.v4.proto.enums', + affiliate_location_placeholder_field_pb2='google.ads.google_ads.v4.proto.enums', + age_range_type_pb2='google.ads.google_ads.v4.proto.enums', + app_campaign_app_store_pb2='google.ads.google_ads.v4.proto.enums', + app_campaign_bidding_strategy_goal_type_pb2='google.ads.google_ads.v4.proto.enums', + app_payment_model_type_pb2='google.ads.google_ads.v4.proto.enums', + app_placeholder_field_pb2='google.ads.google_ads.v4.proto.enums', + app_store_pb2='google.ads.google_ads.v4.proto.enums', + app_url_operating_system_type_pb2='google.ads.google_ads.v4.proto.enums', + asset_field_type_pb2='google.ads.google_ads.v4.proto.enums', + asset_performance_label_pb2='google.ads.google_ads.v4.proto.enums', + asset_type_pb2='google.ads.google_ads.v4.proto.enums', + attribution_model_pb2='google.ads.google_ads.v4.proto.enums', + batch_job_status_pb2='google.ads.google_ads.v4.proto.enums', + bid_modifier_source_pb2='google.ads.google_ads.v4.proto.enums', + bidding_source_pb2='google.ads.google_ads.v4.proto.enums', + bidding_strategy_status_pb2='google.ads.google_ads.v4.proto.enums', + bidding_strategy_type_pb2='google.ads.google_ads.v4.proto.enums', + billing_setup_status_pb2='google.ads.google_ads.v4.proto.enums', + brand_safety_suitability_pb2='google.ads.google_ads.v4.proto.enums', + budget_delivery_method_pb2='google.ads.google_ads.v4.proto.enums', + budget_period_pb2='google.ads.google_ads.v4.proto.enums', + budget_status_pb2='google.ads.google_ads.v4.proto.enums', + budget_type_pb2='google.ads.google_ads.v4.proto.enums', + call_conversion_reporting_state_pb2='google.ads.google_ads.v4.proto.enums', + call_placeholder_field_pb2='google.ads.google_ads.v4.proto.enums', + callout_placeholder_field_pb2='google.ads.google_ads.v4.proto.enums', + campaign_criterion_status_pb2='google.ads.google_ads.v4.proto.enums', + campaign_draft_status_pb2='google.ads.google_ads.v4.proto.enums', + campaign_experiment_status_pb2='google.ads.google_ads.v4.proto.enums', + campaign_experiment_traffic_split_type_pb2='google.ads.google_ads.v4.proto.enums', + campaign_experiment_type_pb2='google.ads.google_ads.v4.proto.enums', + campaign_serving_status_pb2='google.ads.google_ads.v4.proto.enums', + campaign_shared_set_status_pb2='google.ads.google_ads.v4.proto.enums', + campaign_status_pb2='google.ads.google_ads.v4.proto.enums', + change_status_operation_pb2='google.ads.google_ads.v4.proto.enums', + change_status_resource_type_pb2='google.ads.google_ads.v4.proto.enums', + click_type_pb2='google.ads.google_ads.v4.proto.enums', + content_label_type_pb2='google.ads.google_ads.v4.proto.enums', + conversion_action_category_pb2='google.ads.google_ads.v4.proto.enums', + conversion_action_counting_type_pb2='google.ads.google_ads.v4.proto.enums', + conversion_action_status_pb2='google.ads.google_ads.v4.proto.enums', + conversion_action_type_pb2='google.ads.google_ads.v4.proto.enums', + conversion_adjustment_type_pb2='google.ads.google_ads.v4.proto.enums', + conversion_attribution_event_type_pb2='google.ads.google_ads.v4.proto.enums', + conversion_lag_bucket_pb2='google.ads.google_ads.v4.proto.enums', + conversion_or_adjustment_lag_bucket_pb2='google.ads.google_ads.v4.proto.enums', + criterion_category_channel_availability_mode_pb2='google.ads.google_ads.v4.proto.enums', + criterion_category_locale_availability_mode_pb2='google.ads.google_ads.v4.proto.enums', + criterion_system_serving_status_pb2='google.ads.google_ads.v4.proto.enums', + criterion_type_pb2='google.ads.google_ads.v4.proto.enums', + custom_interest_member_type_pb2='google.ads.google_ads.v4.proto.enums', + custom_interest_status_pb2='google.ads.google_ads.v4.proto.enums', + custom_interest_type_pb2='google.ads.google_ads.v4.proto.enums', + custom_placeholder_field_pb2='google.ads.google_ads.v4.proto.enums', + customer_match_upload_key_type_pb2='google.ads.google_ads.v4.proto.enums', + customer_pay_per_conversion_eligibility_failure_reason_pb2='google.ads.google_ads.v4.proto.enums', + data_driven_model_status_pb2='google.ads.google_ads.v4.proto.enums', + day_of_week_pb2='google.ads.google_ads.v4.proto.enums', + device_pb2='google.ads.google_ads.v4.proto.enums', + display_ad_format_setting_pb2='google.ads.google_ads.v4.proto.enums', + display_upload_product_type_pb2='google.ads.google_ads.v4.proto.enums', + distance_bucket_pb2='google.ads.google_ads.v4.proto.enums', + dsa_page_feed_criterion_field_pb2='google.ads.google_ads.v4.proto.enums', + education_placeholder_field_pb2='google.ads.google_ads.v4.proto.enums', + extension_setting_device_pb2='google.ads.google_ads.v4.proto.enums', + extension_type_pb2='google.ads.google_ads.v4.proto.enums', + external_conversion_source_pb2='google.ads.google_ads.v4.proto.enums', + feed_attribute_type_pb2='google.ads.google_ads.v4.proto.enums', + feed_item_quality_approval_status_pb2='google.ads.google_ads.v4.proto.enums', + feed_item_quality_disapproval_reason_pb2='google.ads.google_ads.v4.proto.enums', + feed_item_status_pb2='google.ads.google_ads.v4.proto.enums', + feed_item_target_device_pb2='google.ads.google_ads.v4.proto.enums', + feed_item_target_status_pb2='google.ads.google_ads.v4.proto.enums', + feed_item_target_type_pb2='google.ads.google_ads.v4.proto.enums', + feed_item_validation_status_pb2='google.ads.google_ads.v4.proto.enums', + feed_link_status_pb2='google.ads.google_ads.v4.proto.enums', + feed_mapping_criterion_type_pb2='google.ads.google_ads.v4.proto.enums', + feed_mapping_status_pb2='google.ads.google_ads.v4.proto.enums', + feed_origin_pb2='google.ads.google_ads.v4.proto.enums', + feed_status_pb2='google.ads.google_ads.v4.proto.enums', + flight_placeholder_field_pb2='google.ads.google_ads.v4.proto.enums', + frequency_cap_event_type_pb2='google.ads.google_ads.v4.proto.enums', + frequency_cap_level_pb2='google.ads.google_ads.v4.proto.enums', + frequency_cap_time_unit_pb2='google.ads.google_ads.v4.proto.enums', + gender_type_pb2='google.ads.google_ads.v4.proto.enums', + geo_target_constant_status_pb2='google.ads.google_ads.v4.proto.enums', + geo_targeting_restriction_pb2='google.ads.google_ads.v4.proto.enums', + geo_targeting_type_pb2='google.ads.google_ads.v4.proto.enums', + google_ads_field_category_pb2='google.ads.google_ads.v4.proto.enums', + google_ads_field_data_type_pb2='google.ads.google_ads.v4.proto.enums', + hotel_date_selection_type_pb2='google.ads.google_ads.v4.proto.enums', + hotel_placeholder_field_pb2='google.ads.google_ads.v4.proto.enums', + hotel_price_bucket_pb2='google.ads.google_ads.v4.proto.enums', + hotel_rate_type_pb2='google.ads.google_ads.v4.proto.enums', + income_range_type_pb2='google.ads.google_ads.v4.proto.enums', + interaction_event_type_pb2='google.ads.google_ads.v4.proto.enums', + interaction_type_pb2='google.ads.google_ads.v4.proto.enums', + invoice_type_pb2='google.ads.google_ads.v4.proto.enums', + job_placeholder_field_pb2='google.ads.google_ads.v4.proto.enums', + keyword_match_type_pb2='google.ads.google_ads.v4.proto.enums', + keyword_plan_competition_level_pb2='google.ads.google_ads.v4.proto.enums', + keyword_plan_forecast_interval_pb2='google.ads.google_ads.v4.proto.enums', + keyword_plan_network_pb2='google.ads.google_ads.v4.proto.enums', + label_status_pb2='google.ads.google_ads.v4.proto.enums', + legacy_app_install_ad_app_store_pb2='google.ads.google_ads.v4.proto.enums', + linked_account_type_pb2='google.ads.google_ads.v4.proto.enums', + listing_group_type_pb2='google.ads.google_ads.v4.proto.enums', + local_placeholder_field_pb2='google.ads.google_ads.v4.proto.enums', + location_extension_targeting_criterion_field_pb2='google.ads.google_ads.v4.proto.enums', + location_group_radius_units_pb2='google.ads.google_ads.v4.proto.enums', + location_placeholder_field_pb2='google.ads.google_ads.v4.proto.enums', + location_source_type_pb2='google.ads.google_ads.v4.proto.enums', + manager_link_status_pb2='google.ads.google_ads.v4.proto.enums', + matching_function_context_type_pb2='google.ads.google_ads.v4.proto.enums', + matching_function_operator_pb2='google.ads.google_ads.v4.proto.enums', + media_type_pb2='google.ads.google_ads.v4.proto.enums', + merchant_center_link_status_pb2='google.ads.google_ads.v4.proto.enums', + message_placeholder_field_pb2='google.ads.google_ads.v4.proto.enums', + mime_type_pb2='google.ads.google_ads.v4.proto.enums', + minute_of_hour_pb2='google.ads.google_ads.v4.proto.enums', + mobile_app_vendor_pb2='google.ads.google_ads.v4.proto.enums', + mobile_device_type_pb2='google.ads.google_ads.v4.proto.enums', + month_of_year_pb2='google.ads.google_ads.v4.proto.enums', + negative_geo_target_type_pb2='google.ads.google_ads.v4.proto.enums', + offline_user_data_job_failure_reason_pb2='google.ads.google_ads.v4.proto.enums', + offline_user_data_job_status_pb2='google.ads.google_ads.v4.proto.enums', + offline_user_data_job_type_pb2='google.ads.google_ads.v4.proto.enums', + operating_system_version_operator_type_pb2='google.ads.google_ads.v4.proto.enums', + optimization_goal_type_pb2='google.ads.google_ads.v4.proto.enums', + page_one_promoted_strategy_goal_pb2='google.ads.google_ads.v4.proto.enums', + parental_status_type_pb2='google.ads.google_ads.v4.proto.enums', + payment_mode_pb2='google.ads.google_ads.v4.proto.enums', + placeholder_type_pb2='google.ads.google_ads.v4.proto.enums', + placement_type_pb2='google.ads.google_ads.v4.proto.enums', + policy_approval_status_pb2='google.ads.google_ads.v4.proto.enums', + policy_review_status_pb2='google.ads.google_ads.v4.proto.enums', + policy_topic_entry_type_pb2='google.ads.google_ads.v4.proto.enums', + policy_topic_evidence_destination_mismatch_url_type_pb2='google.ads.google_ads.v4.proto.enums', + policy_topic_evidence_destination_not_working_device_pb2='google.ads.google_ads.v4.proto.enums', + policy_topic_evidence_destination_not_working_dns_error_type_pb2='google.ads.google_ads.v4.proto.enums', + positive_geo_target_type_pb2='google.ads.google_ads.v4.proto.enums', + preferred_content_type_pb2='google.ads.google_ads.v4.proto.enums', + price_extension_price_qualifier_pb2='google.ads.google_ads.v4.proto.enums', + price_extension_price_unit_pb2='google.ads.google_ads.v4.proto.enums', + price_extension_type_pb2='google.ads.google_ads.v4.proto.enums', + price_placeholder_field_pb2='google.ads.google_ads.v4.proto.enums', + product_bidding_category_level_pb2='google.ads.google_ads.v4.proto.enums', + product_bidding_category_status_pb2='google.ads.google_ads.v4.proto.enums', + product_channel_exclusivity_pb2='google.ads.google_ads.v4.proto.enums', + product_channel_pb2='google.ads.google_ads.v4.proto.enums', + product_condition_pb2='google.ads.google_ads.v4.proto.enums', + product_custom_attribute_index_pb2='google.ads.google_ads.v4.proto.enums', + product_type_level_pb2='google.ads.google_ads.v4.proto.enums', + promotion_extension_discount_modifier_pb2='google.ads.google_ads.v4.proto.enums', + promotion_extension_occasion_pb2='google.ads.google_ads.v4.proto.enums', + promotion_placeholder_field_pb2='google.ads.google_ads.v4.proto.enums', + proximity_radius_units_pb2='google.ads.google_ads.v4.proto.enums', + quality_score_bucket_pb2='google.ads.google_ads.v4.proto.enums', + reach_plan_ad_length_pb2='google.ads.google_ads.v4.proto.enums', + reach_plan_age_range_pb2='google.ads.google_ads.v4.proto.enums', + reach_plan_network_pb2='google.ads.google_ads.v4.proto.enums', + real_estate_placeholder_field_pb2='google.ads.google_ads.v4.proto.enums', + recommendation_type_pb2='google.ads.google_ads.v4.proto.enums', + search_engine_results_page_type_pb2='google.ads.google_ads.v4.proto.enums', + search_term_match_type_pb2='google.ads.google_ads.v4.proto.enums', + search_term_targeting_status_pb2='google.ads.google_ads.v4.proto.enums', + served_asset_field_type_pb2='google.ads.google_ads.v4.proto.enums', + shared_set_status_pb2='google.ads.google_ads.v4.proto.enums', + shared_set_type_pb2='google.ads.google_ads.v4.proto.enums', + simulation_modification_method_pb2='google.ads.google_ads.v4.proto.enums', + simulation_type_pb2='google.ads.google_ads.v4.proto.enums', + sitelink_placeholder_field_pb2='google.ads.google_ads.v4.proto.enums', + slot_pb2='google.ads.google_ads.v4.proto.enums', + spending_limit_type_pb2='google.ads.google_ads.v4.proto.enums', + structured_snippet_placeholder_field_pb2='google.ads.google_ads.v4.proto.enums', + summary_row_setting_pb2='google.ads.google_ads.v4.proto.enums', + system_managed_entity_source_pb2='google.ads.google_ads.v4.proto.enums', + target_cpa_opt_in_recommendation_goal_pb2='google.ads.google_ads.v4.proto.enums', + target_impression_share_location_pb2='google.ads.google_ads.v4.proto.enums', + targeting_dimension_pb2='google.ads.google_ads.v4.proto.enums', + time_type_pb2='google.ads.google_ads.v4.proto.enums', + tracking_code_page_format_pb2='google.ads.google_ads.v4.proto.enums', + tracking_code_type_pb2='google.ads.google_ads.v4.proto.enums', + travel_placeholder_field_pb2='google.ads.google_ads.v4.proto.enums', + user_interest_taxonomy_type_pb2='google.ads.google_ads.v4.proto.enums', + user_list_access_status_pb2='google.ads.google_ads.v4.proto.enums', + user_list_closing_reason_pb2='google.ads.google_ads.v4.proto.enums', + user_list_combined_rule_operator_pb2='google.ads.google_ads.v4.proto.enums', + user_list_crm_data_source_type_pb2='google.ads.google_ads.v4.proto.enums', + user_list_date_rule_item_operator_pb2='google.ads.google_ads.v4.proto.enums', + user_list_logical_rule_operator_pb2='google.ads.google_ads.v4.proto.enums', + user_list_membership_status_pb2='google.ads.google_ads.v4.proto.enums', + user_list_number_rule_item_operator_pb2='google.ads.google_ads.v4.proto.enums', + user_list_prepopulation_status_pb2='google.ads.google_ads.v4.proto.enums', + user_list_rule_type_pb2='google.ads.google_ads.v4.proto.enums', + user_list_size_range_pb2='google.ads.google_ads.v4.proto.enums', + user_list_string_rule_item_operator_pb2='google.ads.google_ads.v4.proto.enums', + user_list_type_pb2='google.ads.google_ads.v4.proto.enums', + vanity_pharma_display_url_mode_pb2='google.ads.google_ads.v4.proto.enums', + vanity_pharma_text_pb2='google.ads.google_ads.v4.proto.enums', + webpage_condition_operand_pb2='google.ads.google_ads.v4.proto.enums', + webpage_condition_operator_pb2='google.ads.google_ads.v4.proto.enums', + access_invitation_error_pb2='google.ads.google_ads.v4.proto.errors', + account_budget_proposal_error_pb2='google.ads.google_ads.v4.proto.errors', + account_link_error_pb2='google.ads.google_ads.v4.proto.errors', + ad_customizer_error_pb2='google.ads.google_ads.v4.proto.errors', + ad_error_pb2='google.ads.google_ads.v4.proto.errors', + ad_group_ad_error_pb2='google.ads.google_ads.v4.proto.errors', + ad_group_bid_modifier_error_pb2='google.ads.google_ads.v4.proto.errors', + ad_group_criterion_error_pb2='google.ads.google_ads.v4.proto.errors', + ad_group_error_pb2='google.ads.google_ads.v4.proto.errors', + ad_group_feed_error_pb2='google.ads.google_ads.v4.proto.errors', + ad_parameter_error_pb2='google.ads.google_ads.v4.proto.errors', + ad_sharing_error_pb2='google.ads.google_ads.v4.proto.errors', + adx_error_pb2='google.ads.google_ads.v4.proto.errors', + asset_error_pb2='google.ads.google_ads.v4.proto.errors', + asset_link_error_pb2='google.ads.google_ads.v4.proto.errors', + authentication_error_pb2='google.ads.google_ads.v4.proto.errors', + authorization_error_pb2='google.ads.google_ads.v4.proto.errors', + batch_job_error_pb2='google.ads.google_ads.v4.proto.errors', + bidding_error_pb2='google.ads.google_ads.v4.proto.errors', + bidding_strategy_error_pb2='google.ads.google_ads.v4.proto.errors', + billing_setup_error_pb2='google.ads.google_ads.v4.proto.errors', + campaign_budget_error_pb2='google.ads.google_ads.v4.proto.errors', + campaign_criterion_error_pb2='google.ads.google_ads.v4.proto.errors', + campaign_draft_error_pb2='google.ads.google_ads.v4.proto.errors', + campaign_error_pb2='google.ads.google_ads.v4.proto.errors', + campaign_experiment_error_pb2='google.ads.google_ads.v4.proto.errors', + campaign_feed_error_pb2='google.ads.google_ads.v4.proto.errors', + campaign_shared_set_error_pb2='google.ads.google_ads.v4.proto.errors', + change_status_error_pb2='google.ads.google_ads.v4.proto.errors', + collection_size_error_pb2='google.ads.google_ads.v4.proto.errors', + context_error_pb2='google.ads.google_ads.v4.proto.errors', + conversion_action_error_pb2='google.ads.google_ads.v4.proto.errors', + conversion_adjustment_upload_error_pb2='google.ads.google_ads.v4.proto.errors', + conversion_upload_error_pb2='google.ads.google_ads.v4.proto.errors', + country_code_error_pb2='google.ads.google_ads.v4.proto.errors', + criterion_error_pb2='google.ads.google_ads.v4.proto.errors', + currency_code_error_pb2='google.ads.google_ads.v4.proto.errors', + custom_interest_error_pb2='google.ads.google_ads.v4.proto.errors', + customer_client_link_error_pb2='google.ads.google_ads.v4.proto.errors', + customer_error_pb2='google.ads.google_ads.v4.proto.errors', + customer_feed_error_pb2='google.ads.google_ads.v4.proto.errors', + customer_manager_link_error_pb2='google.ads.google_ads.v4.proto.errors', + database_error_pb2='google.ads.google_ads.v4.proto.errors', + date_error_pb2='google.ads.google_ads.v4.proto.errors', + date_range_error_pb2='google.ads.google_ads.v4.proto.errors', + distinct_error_pb2='google.ads.google_ads.v4.proto.errors', + enum_error_pb2='google.ads.google_ads.v4.proto.errors', + errors_pb2='google.ads.google_ads.v4.proto.errors', + extension_feed_item_error_pb2='google.ads.google_ads.v4.proto.errors', + extension_setting_error_pb2='google.ads.google_ads.v4.proto.errors', + feed_attribute_reference_error_pb2='google.ads.google_ads.v4.proto.errors', + feed_error_pb2='google.ads.google_ads.v4.proto.errors', + feed_item_error_pb2='google.ads.google_ads.v4.proto.errors', + feed_item_target_error_pb2='google.ads.google_ads.v4.proto.errors', + feed_item_validation_error_pb2='google.ads.google_ads.v4.proto.errors', + feed_mapping_error_pb2='google.ads.google_ads.v4.proto.errors', + field_error_pb2='google.ads.google_ads.v4.proto.errors', + field_mask_error_pb2='google.ads.google_ads.v4.proto.errors', + function_error_pb2='google.ads.google_ads.v4.proto.errors', + function_parsing_error_pb2='google.ads.google_ads.v4.proto.errors', + geo_target_constant_suggestion_error_pb2='google.ads.google_ads.v4.proto.errors', + header_error_pb2='google.ads.google_ads.v4.proto.errors', + id_error_pb2='google.ads.google_ads.v4.proto.errors', + image_error_pb2='google.ads.google_ads.v4.proto.errors', + internal_error_pb2='google.ads.google_ads.v4.proto.errors', + invoice_error_pb2='google.ads.google_ads.v4.proto.errors', + keyword_plan_ad_group_error_pb2='google.ads.google_ads.v4.proto.errors', + keyword_plan_ad_group_keyword_error_pb2='google.ads.google_ads.v4.proto.errors', + keyword_plan_campaign_error_pb2='google.ads.google_ads.v4.proto.errors', + keyword_plan_campaign_keyword_error_pb2='google.ads.google_ads.v4.proto.errors', + keyword_plan_error_pb2='google.ads.google_ads.v4.proto.errors', + keyword_plan_idea_error_pb2='google.ads.google_ads.v4.proto.errors', + label_error_pb2='google.ads.google_ads.v4.proto.errors', + language_code_error_pb2='google.ads.google_ads.v4.proto.errors', + list_operation_error_pb2='google.ads.google_ads.v4.proto.errors', + manager_link_error_pb2='google.ads.google_ads.v4.proto.errors', + media_bundle_error_pb2='google.ads.google_ads.v4.proto.errors', + media_file_error_pb2='google.ads.google_ads.v4.proto.errors', + media_upload_error_pb2='google.ads.google_ads.v4.proto.errors', + multiplier_error_pb2='google.ads.google_ads.v4.proto.errors', + mutate_error_pb2='google.ads.google_ads.v4.proto.errors', + new_resource_creation_error_pb2='google.ads.google_ads.v4.proto.errors', + not_empty_error_pb2='google.ads.google_ads.v4.proto.errors', + not_whitelisted_error_pb2='google.ads.google_ads.v4.proto.errors', + null_error_pb2='google.ads.google_ads.v4.proto.errors', + offline_user_data_job_error_pb2='google.ads.google_ads.v4.proto.errors', + operation_access_denied_error_pb2='google.ads.google_ads.v4.proto.errors', + operator_error_pb2='google.ads.google_ads.v4.proto.errors', + partial_failure_error_pb2='google.ads.google_ads.v4.proto.errors', + payments_account_error_pb2='google.ads.google_ads.v4.proto.errors', + policy_finding_error_pb2='google.ads.google_ads.v4.proto.errors', + policy_validation_parameter_error_pb2='google.ads.google_ads.v4.proto.errors', + policy_violation_error_pb2='google.ads.google_ads.v4.proto.errors', + query_error_pb2='google.ads.google_ads.v4.proto.errors', + quota_error_pb2='google.ads.google_ads.v4.proto.errors', + range_error_pb2='google.ads.google_ads.v4.proto.errors', + reach_plan_error_pb2='google.ads.google_ads.v4.proto.errors', + recommendation_error_pb2='google.ads.google_ads.v4.proto.errors', + region_code_error_pb2='google.ads.google_ads.v4.proto.errors', + request_error_pb2='google.ads.google_ads.v4.proto.errors', + resource_access_denied_error_pb2='google.ads.google_ads.v4.proto.errors', + resource_count_limit_exceeded_error_pb2='google.ads.google_ads.v4.proto.errors', + setting_error_pb2='google.ads.google_ads.v4.proto.errors', + shared_criterion_error_pb2='google.ads.google_ads.v4.proto.errors', + shared_set_error_pb2='google.ads.google_ads.v4.proto.errors', + size_limit_error_pb2='google.ads.google_ads.v4.proto.errors', + string_format_error_pb2='google.ads.google_ads.v4.proto.errors', + string_length_error_pb2='google.ads.google_ads.v4.proto.errors', + third_party_app_analytics_link_error_pb2='google.ads.google_ads.v4.proto.errors', + time_zone_error_pb2='google.ads.google_ads.v4.proto.errors', + url_field_error_pb2='google.ads.google_ads.v4.proto.errors', + user_data_error_pb2='google.ads.google_ads.v4.proto.errors', + user_list_error_pb2='google.ads.google_ads.v4.proto.errors', + youtube_video_registration_error_pb2='google.ads.google_ads.v4.proto.errors', + account_budget_pb2='google.ads.google_ads.v4.proto.resources', + account_budget_proposal_pb2='google.ads.google_ads.v4.proto.resources', + account_link_pb2='google.ads.google_ads.v4.proto.resources', + ad_group_ad_asset_view_pb2='google.ads.google_ads.v4.proto.resources', + ad_group_ad_label_pb2='google.ads.google_ads.v4.proto.resources', + ad_group_ad_pb2='google.ads.google_ads.v4.proto.resources', + ad_group_audience_view_pb2='google.ads.google_ads.v4.proto.resources', + ad_group_bid_modifier_pb2='google.ads.google_ads.v4.proto.resources', + ad_group_criterion_label_pb2='google.ads.google_ads.v4.proto.resources', + ad_group_criterion_pb2='google.ads.google_ads.v4.proto.resources', + ad_group_criterion_simulation_pb2='google.ads.google_ads.v4.proto.resources', + ad_group_extension_setting_pb2='google.ads.google_ads.v4.proto.resources', + ad_group_feed_pb2='google.ads.google_ads.v4.proto.resources', + ad_group_label_pb2='google.ads.google_ads.v4.proto.resources', + ad_group_pb2='google.ads.google_ads.v4.proto.resources', + ad_group_simulation_pb2='google.ads.google_ads.v4.proto.resources', + ad_parameter_pb2='google.ads.google_ads.v4.proto.resources', + ad_pb2='google.ads.google_ads.v4.proto.resources', + ad_schedule_view_pb2='google.ads.google_ads.v4.proto.resources', + age_range_view_pb2='google.ads.google_ads.v4.proto.resources', + asset_pb2='google.ads.google_ads.v4.proto.resources', + batch_job_pb2='google.ads.google_ads.v4.proto.resources', + bidding_strategy_pb2='google.ads.google_ads.v4.proto.resources', + billing_setup_pb2='google.ads.google_ads.v4.proto.resources', + campaign_audience_view_pb2='google.ads.google_ads.v4.proto.resources', + campaign_bid_modifier_pb2='google.ads.google_ads.v4.proto.resources', + campaign_budget_pb2='google.ads.google_ads.v4.proto.resources', + campaign_criterion_pb2='google.ads.google_ads.v4.proto.resources', + campaign_criterion_simulation_pb2='google.ads.google_ads.v4.proto.resources', + campaign_draft_pb2='google.ads.google_ads.v4.proto.resources', + campaign_experiment_pb2='google.ads.google_ads.v4.proto.resources', + campaign_extension_setting_pb2='google.ads.google_ads.v4.proto.resources', + campaign_feed_pb2='google.ads.google_ads.v4.proto.resources', + campaign_label_pb2='google.ads.google_ads.v4.proto.resources', + campaign_pb2='google.ads.google_ads.v4.proto.resources', + campaign_shared_set_pb2='google.ads.google_ads.v4.proto.resources', + carrier_constant_pb2='google.ads.google_ads.v4.proto.resources', + change_status_pb2='google.ads.google_ads.v4.proto.resources', + click_view_pb2='google.ads.google_ads.v4.proto.resources', + conversion_action_pb2='google.ads.google_ads.v4.proto.resources', + currency_constant_pb2='google.ads.google_ads.v4.proto.resources', + custom_interest_pb2='google.ads.google_ads.v4.proto.resources', + customer_client_link_pb2='google.ads.google_ads.v4.proto.resources', + customer_client_pb2='google.ads.google_ads.v4.proto.resources', + customer_extension_setting_pb2='google.ads.google_ads.v4.proto.resources', + customer_feed_pb2='google.ads.google_ads.v4.proto.resources', + customer_label_pb2='google.ads.google_ads.v4.proto.resources', + customer_manager_link_pb2='google.ads.google_ads.v4.proto.resources', + customer_negative_criterion_pb2='google.ads.google_ads.v4.proto.resources', + customer_pb2='google.ads.google_ads.v4.proto.resources', + detail_placement_view_pb2='google.ads.google_ads.v4.proto.resources', + display_keyword_view_pb2='google.ads.google_ads.v4.proto.resources', + distance_view_pb2='google.ads.google_ads.v4.proto.resources', + domain_category_pb2='google.ads.google_ads.v4.proto.resources', + dynamic_search_ads_search_term_view_pb2='google.ads.google_ads.v4.proto.resources', + expanded_landing_page_view_pb2='google.ads.google_ads.v4.proto.resources', + extension_feed_item_pb2='google.ads.google_ads.v4.proto.resources', + feed_item_pb2='google.ads.google_ads.v4.proto.resources', + feed_item_target_pb2='google.ads.google_ads.v4.proto.resources', + feed_mapping_pb2='google.ads.google_ads.v4.proto.resources', + feed_pb2='google.ads.google_ads.v4.proto.resources', + feed_placeholder_view_pb2='google.ads.google_ads.v4.proto.resources', + gender_view_pb2='google.ads.google_ads.v4.proto.resources', + geo_target_constant_pb2='google.ads.google_ads.v4.proto.resources', + geographic_view_pb2='google.ads.google_ads.v4.proto.resources', + google_ads_field_pb2='google.ads.google_ads.v4.proto.resources', + group_placement_view_pb2='google.ads.google_ads.v4.proto.resources', + hotel_group_view_pb2='google.ads.google_ads.v4.proto.resources', + hotel_performance_view_pb2='google.ads.google_ads.v4.proto.resources', + income_range_view_pb2='google.ads.google_ads.v4.proto.resources', + invoice_pb2='google.ads.google_ads.v4.proto.resources', + keyword_plan_ad_group_keyword_pb2='google.ads.google_ads.v4.proto.resources', + keyword_plan_ad_group_pb2='google.ads.google_ads.v4.proto.resources', + keyword_plan_campaign_keyword_pb2='google.ads.google_ads.v4.proto.resources', + keyword_plan_campaign_pb2='google.ads.google_ads.v4.proto.resources', + keyword_plan_pb2='google.ads.google_ads.v4.proto.resources', + keyword_view_pb2='google.ads.google_ads.v4.proto.resources', + label_pb2='google.ads.google_ads.v4.proto.resources', + landing_page_view_pb2='google.ads.google_ads.v4.proto.resources', + language_constant_pb2='google.ads.google_ads.v4.proto.resources', + location_view_pb2='google.ads.google_ads.v4.proto.resources', + managed_placement_view_pb2='google.ads.google_ads.v4.proto.resources', + media_file_pb2='google.ads.google_ads.v4.proto.resources', + merchant_center_link_pb2='google.ads.google_ads.v4.proto.resources', + mobile_app_category_constant_pb2='google.ads.google_ads.v4.proto.resources', + mobile_device_constant_pb2='google.ads.google_ads.v4.proto.resources', + offline_user_data_job_pb2='google.ads.google_ads.v4.proto.resources', + operating_system_version_constant_pb2='google.ads.google_ads.v4.proto.resources', + paid_organic_search_term_view_pb2='google.ads.google_ads.v4.proto.resources', + parental_status_view_pb2='google.ads.google_ads.v4.proto.resources', + payments_account_pb2='google.ads.google_ads.v4.proto.resources', + product_bidding_category_constant_pb2='google.ads.google_ads.v4.proto.resources', + product_group_view_pb2='google.ads.google_ads.v4.proto.resources', + recommendation_pb2='google.ads.google_ads.v4.proto.resources', + remarketing_action_pb2='google.ads.google_ads.v4.proto.resources', + search_term_view_pb2='google.ads.google_ads.v4.proto.resources', + shared_criterion_pb2='google.ads.google_ads.v4.proto.resources', + shared_set_pb2='google.ads.google_ads.v4.proto.resources', + shopping_performance_view_pb2='google.ads.google_ads.v4.proto.resources', + third_party_app_analytics_link_pb2='google.ads.google_ads.v4.proto.resources', + topic_constant_pb2='google.ads.google_ads.v4.proto.resources', + topic_view_pb2='google.ads.google_ads.v4.proto.resources', + user_interest_pb2='google.ads.google_ads.v4.proto.resources', + user_list_pb2='google.ads.google_ads.v4.proto.resources', + user_location_view_pb2='google.ads.google_ads.v4.proto.resources', + video_pb2='google.ads.google_ads.v4.proto.resources', + account_budget_proposal_service_pb2='google.ads.google_ads.v4.proto.services', + account_budget_service_pb2='google.ads.google_ads.v4.proto.services', + account_link_service_pb2='google.ads.google_ads.v4.proto.services', + ad_group_ad_asset_view_service_pb2='google.ads.google_ads.v4.proto.services', + ad_group_ad_label_service_pb2='google.ads.google_ads.v4.proto.services', + ad_group_ad_service_pb2='google.ads.google_ads.v4.proto.services', + ad_group_audience_view_service_pb2='google.ads.google_ads.v4.proto.services', + ad_group_bid_modifier_service_pb2='google.ads.google_ads.v4.proto.services', + ad_group_criterion_label_service_pb2='google.ads.google_ads.v4.proto.services', + ad_group_criterion_service_pb2='google.ads.google_ads.v4.proto.services', + ad_group_criterion_simulation_service_pb2='google.ads.google_ads.v4.proto.services', + ad_group_extension_setting_service_pb2='google.ads.google_ads.v4.proto.services', + ad_group_feed_service_pb2='google.ads.google_ads.v4.proto.services', + ad_group_label_service_pb2='google.ads.google_ads.v4.proto.services', + ad_group_service_pb2='google.ads.google_ads.v4.proto.services', + ad_group_simulation_service_pb2='google.ads.google_ads.v4.proto.services', + ad_parameter_service_pb2='google.ads.google_ads.v4.proto.services', + ad_schedule_view_service_pb2='google.ads.google_ads.v4.proto.services', + ad_service_pb2='google.ads.google_ads.v4.proto.services', + age_range_view_service_pb2='google.ads.google_ads.v4.proto.services', + asset_service_pb2='google.ads.google_ads.v4.proto.services', + batch_job_service_pb2='google.ads.google_ads.v4.proto.services', + bidding_strategy_service_pb2='google.ads.google_ads.v4.proto.services', + billing_setup_service_pb2='google.ads.google_ads.v4.proto.services', + campaign_audience_view_service_pb2='google.ads.google_ads.v4.proto.services', + campaign_bid_modifier_service_pb2='google.ads.google_ads.v4.proto.services', + campaign_budget_service_pb2='google.ads.google_ads.v4.proto.services', + campaign_criterion_service_pb2='google.ads.google_ads.v4.proto.services', + campaign_criterion_simulation_service_pb2='google.ads.google_ads.v4.proto.services', + campaign_draft_service_pb2='google.ads.google_ads.v4.proto.services', + campaign_experiment_service_pb2='google.ads.google_ads.v4.proto.services', + campaign_extension_setting_service_pb2='google.ads.google_ads.v4.proto.services', + campaign_feed_service_pb2='google.ads.google_ads.v4.proto.services', + campaign_label_service_pb2='google.ads.google_ads.v4.proto.services', + campaign_service_pb2='google.ads.google_ads.v4.proto.services', + campaign_shared_set_service_pb2='google.ads.google_ads.v4.proto.services', + carrier_constant_service_pb2='google.ads.google_ads.v4.proto.services', + change_status_service_pb2='google.ads.google_ads.v4.proto.services', + click_view_service_pb2='google.ads.google_ads.v4.proto.services', + conversion_action_service_pb2='google.ads.google_ads.v4.proto.services', + conversion_adjustment_upload_service_pb2='google.ads.google_ads.v4.proto.services', + conversion_upload_service_pb2='google.ads.google_ads.v4.proto.services', + currency_constant_service_pb2='google.ads.google_ads.v4.proto.services', + custom_interest_service_pb2='google.ads.google_ads.v4.proto.services', + customer_client_link_service_pb2='google.ads.google_ads.v4.proto.services', + customer_client_service_pb2='google.ads.google_ads.v4.proto.services', + customer_extension_setting_service_pb2='google.ads.google_ads.v4.proto.services', + customer_feed_service_pb2='google.ads.google_ads.v4.proto.services', + customer_label_service_pb2='google.ads.google_ads.v4.proto.services', + customer_manager_link_service_pb2='google.ads.google_ads.v4.proto.services', + customer_negative_criterion_service_pb2='google.ads.google_ads.v4.proto.services', + customer_service_pb2='google.ads.google_ads.v4.proto.services', + detail_placement_view_service_pb2='google.ads.google_ads.v4.proto.services', + display_keyword_view_service_pb2='google.ads.google_ads.v4.proto.services', + distance_view_service_pb2='google.ads.google_ads.v4.proto.services', + domain_category_service_pb2='google.ads.google_ads.v4.proto.services', + dynamic_search_ads_search_term_view_service_pb2='google.ads.google_ads.v4.proto.services', + expanded_landing_page_view_service_pb2='google.ads.google_ads.v4.proto.services', + extension_feed_item_service_pb2='google.ads.google_ads.v4.proto.services', + feed_item_service_pb2='google.ads.google_ads.v4.proto.services', + feed_item_target_service_pb2='google.ads.google_ads.v4.proto.services', + feed_mapping_service_pb2='google.ads.google_ads.v4.proto.services', + feed_placeholder_view_service_pb2='google.ads.google_ads.v4.proto.services', + feed_service_pb2='google.ads.google_ads.v4.proto.services', + gender_view_service_pb2='google.ads.google_ads.v4.proto.services', + geo_target_constant_service_pb2='google.ads.google_ads.v4.proto.services', + geographic_view_service_pb2='google.ads.google_ads.v4.proto.services', + google_ads_field_service_pb2='google.ads.google_ads.v4.proto.services', + google_ads_service_pb2='google.ads.google_ads.v4.proto.services', + group_placement_view_service_pb2='google.ads.google_ads.v4.proto.services', + hotel_group_view_service_pb2='google.ads.google_ads.v4.proto.services', + hotel_performance_view_service_pb2='google.ads.google_ads.v4.proto.services', + income_range_view_service_pb2='google.ads.google_ads.v4.proto.services', + invoice_service_pb2='google.ads.google_ads.v4.proto.services', + keyword_plan_ad_group_keyword_service_pb2='google.ads.google_ads.v4.proto.services', + keyword_plan_ad_group_service_pb2='google.ads.google_ads.v4.proto.services', + keyword_plan_campaign_keyword_service_pb2='google.ads.google_ads.v4.proto.services', + keyword_plan_campaign_service_pb2='google.ads.google_ads.v4.proto.services', + keyword_plan_idea_service_pb2='google.ads.google_ads.v4.proto.services', + keyword_plan_service_pb2='google.ads.google_ads.v4.proto.services', + keyword_view_service_pb2='google.ads.google_ads.v4.proto.services', + label_service_pb2='google.ads.google_ads.v4.proto.services', + landing_page_view_service_pb2='google.ads.google_ads.v4.proto.services', + language_constant_service_pb2='google.ads.google_ads.v4.proto.services', + location_view_service_pb2='google.ads.google_ads.v4.proto.services', + managed_placement_view_service_pb2='google.ads.google_ads.v4.proto.services', + media_file_service_pb2='google.ads.google_ads.v4.proto.services', + merchant_center_link_service_pb2='google.ads.google_ads.v4.proto.services', + mobile_app_category_constant_service_pb2='google.ads.google_ads.v4.proto.services', + mobile_device_constant_service_pb2='google.ads.google_ads.v4.proto.services', + offline_user_data_job_service_pb2='google.ads.google_ads.v4.proto.services', + operating_system_version_constant_service_pb2='google.ads.google_ads.v4.proto.services', + paid_organic_search_term_view_service_pb2='google.ads.google_ads.v4.proto.services', + parental_status_view_service_pb2='google.ads.google_ads.v4.proto.services', + payments_account_service_pb2='google.ads.google_ads.v4.proto.services', + product_bidding_category_constant_service_pb2='google.ads.google_ads.v4.proto.services', + product_group_view_service_pb2='google.ads.google_ads.v4.proto.services', + reach_plan_service_pb2='google.ads.google_ads.v4.proto.services', + recommendation_service_pb2='google.ads.google_ads.v4.proto.services', + remarketing_action_service_pb2='google.ads.google_ads.v4.proto.services', + search_term_view_service_pb2='google.ads.google_ads.v4.proto.services', + shared_criterion_service_pb2='google.ads.google_ads.v4.proto.services', + shared_set_service_pb2='google.ads.google_ads.v4.proto.services', + shopping_performance_view_service_pb2='google.ads.google_ads.v4.proto.services', + third_party_app_analytics_link_service_pb2='google.ads.google_ads.v4.proto.services', + topic_constant_service_pb2='google.ads.google_ads.v4.proto.services', + topic_view_service_pb2='google.ads.google_ads.v4.proto.services', + user_data_service_pb2='google.ads.google_ads.v4.proto.services', + user_interest_service_pb2='google.ads.google_ads.v4.proto.services', + user_list_service_pb2='google.ads.google_ads.v4.proto.services', + user_location_view_service_pb2='google.ads.google_ads.v4.proto.services', + video_service_pb2='google.ads.google_ads.v4.proto.services', + operations_pb2='google.longrunning', + any_pb2='google.protobuf', + empty_pb2='google.protobuf', + field_mask_pb2='google.protobuf', + wrappers_pb2='google.protobuf', + status_pb2='google.rpc', +) + + +_lazy_class_to_package_map = dict( + AccessInvitationErrorEnum='google.ads.google_ads.v4.proto.errors.access_invitation_error_pb2', + AccessReasonEnum='google.ads.google_ads.v4.proto.enums.access_reason_pb2', + AccessRoleEnum='google.ads.google_ads.v4.proto.enums.access_role_pb2', + AccountBudget='google.ads.google_ads.v4.proto.resources.account_budget_pb2', + AccountBudgetProposal='google.ads.google_ads.v4.proto.resources.account_budget_proposal_pb2', + AccountBudgetProposalErrorEnum='google.ads.google_ads.v4.proto.errors.account_budget_proposal_error_pb2', + AccountBudgetProposalOperation='google.ads.google_ads.v4.proto.services.account_budget_proposal_service_pb2', + AccountBudgetProposalStatusEnum='google.ads.google_ads.v4.proto.enums.account_budget_proposal_status_pb2', + AccountBudgetProposalTypeEnum='google.ads.google_ads.v4.proto.enums.account_budget_proposal_type_pb2', + AccountBudgetStatusEnum='google.ads.google_ads.v4.proto.enums.account_budget_status_pb2', + AccountLink='google.ads.google_ads.v4.proto.resources.account_link_pb2', + AccountLinkOperation='google.ads.google_ads.v4.proto.services.account_link_service_pb2', + AccountLinkStatusEnum='google.ads.google_ads.v4.proto.enums.account_link_status_pb2', + Ad='google.ads.google_ads.v4.proto.resources.ad_pb2', + AdCustomizerErrorEnum='google.ads.google_ads.v4.proto.errors.ad_customizer_error_pb2', + AdCustomizerPlaceholderFieldEnum='google.ads.google_ads.v4.proto.enums.ad_customizer_placeholder_field_pb2', + AdErrorEnum='google.ads.google_ads.v4.proto.errors.ad_error_pb2', + AdGroup='google.ads.google_ads.v4.proto.resources.ad_group_pb2', + AdGroupAd='google.ads.google_ads.v4.proto.resources.ad_group_ad_pb2', + AdGroupAdAssetPolicySummary='google.ads.google_ads.v4.proto.resources.ad_group_ad_asset_view_pb2', + AdGroupAdAssetView='google.ads.google_ads.v4.proto.resources.ad_group_ad_asset_view_pb2', + AdGroupAdErrorEnum='google.ads.google_ads.v4.proto.errors.ad_group_ad_error_pb2', + AdGroupAdLabel='google.ads.google_ads.v4.proto.resources.ad_group_ad_label_pb2', + AdGroupAdLabelOperation='google.ads.google_ads.v4.proto.services.ad_group_ad_label_service_pb2', + AdGroupAdOperation='google.ads.google_ads.v4.proto.services.ad_group_ad_service_pb2', + AdGroupAdPolicySummary='google.ads.google_ads.v4.proto.resources.ad_group_ad_pb2', + AdGroupAdRotationModeEnum='google.ads.google_ads.v4.proto.enums.ad_group_ad_rotation_mode_pb2', + AdGroupAdStatusEnum='google.ads.google_ads.v4.proto.enums.ad_group_ad_status_pb2', + AdGroupAudienceView='google.ads.google_ads.v4.proto.resources.ad_group_audience_view_pb2', + AdGroupBidModifier='google.ads.google_ads.v4.proto.resources.ad_group_bid_modifier_pb2', + AdGroupBidModifierErrorEnum='google.ads.google_ads.v4.proto.errors.ad_group_bid_modifier_error_pb2', + AdGroupBidModifierOperation='google.ads.google_ads.v4.proto.services.ad_group_bid_modifier_service_pb2', + AdGroupCriterion='google.ads.google_ads.v4.proto.resources.ad_group_criterion_pb2', + AdGroupCriterionApprovalStatusEnum='google.ads.google_ads.v4.proto.enums.ad_group_criterion_approval_status_pb2', + AdGroupCriterionErrorEnum='google.ads.google_ads.v4.proto.errors.ad_group_criterion_error_pb2', + AdGroupCriterionLabel='google.ads.google_ads.v4.proto.resources.ad_group_criterion_label_pb2', + AdGroupCriterionLabelOperation='google.ads.google_ads.v4.proto.services.ad_group_criterion_label_service_pb2', + AdGroupCriterionOperation='google.ads.google_ads.v4.proto.services.ad_group_criterion_service_pb2', + AdGroupCriterionSimulation='google.ads.google_ads.v4.proto.resources.ad_group_criterion_simulation_pb2', + AdGroupCriterionStatusEnum='google.ads.google_ads.v4.proto.enums.ad_group_criterion_status_pb2', + AdGroupErrorEnum='google.ads.google_ads.v4.proto.errors.ad_group_error_pb2', + AdGroupExtensionSetting='google.ads.google_ads.v4.proto.resources.ad_group_extension_setting_pb2', + AdGroupExtensionSettingOperation='google.ads.google_ads.v4.proto.services.ad_group_extension_setting_service_pb2', + AdGroupFeed='google.ads.google_ads.v4.proto.resources.ad_group_feed_pb2', + AdGroupFeedErrorEnum='google.ads.google_ads.v4.proto.errors.ad_group_feed_error_pb2', + AdGroupFeedOperation='google.ads.google_ads.v4.proto.services.ad_group_feed_service_pb2', + AdGroupLabel='google.ads.google_ads.v4.proto.resources.ad_group_label_pb2', + AdGroupLabelOperation='google.ads.google_ads.v4.proto.services.ad_group_label_service_pb2', + AdGroupOperation='google.ads.google_ads.v4.proto.services.ad_group_service_pb2', + AdGroupSimulation='google.ads.google_ads.v4.proto.resources.ad_group_simulation_pb2', + AdGroupStatusEnum='google.ads.google_ads.v4.proto.enums.ad_group_status_pb2', + AdGroupTypeEnum='google.ads.google_ads.v4.proto.enums.ad_group_type_pb2', + AdImageAsset='google.ads.google_ads.v4.proto.common.ad_asset_pb2', + AdMediaBundleAsset='google.ads.google_ads.v4.proto.common.ad_asset_pb2', + AdNetworkTypeEnum='google.ads.google_ads.v4.proto.enums.ad_network_type_pb2', + AdOperation='google.ads.google_ads.v4.proto.services.ad_service_pb2', + AdParameter='google.ads.google_ads.v4.proto.resources.ad_parameter_pb2', + AdParameterErrorEnum='google.ads.google_ads.v4.proto.errors.ad_parameter_error_pb2', + AdParameterOperation='google.ads.google_ads.v4.proto.services.ad_parameter_service_pb2', + AdScheduleInfo='google.ads.google_ads.v4.proto.common.criteria_pb2', + AdScheduleView='google.ads.google_ads.v4.proto.resources.ad_schedule_view_pb2', + AdServingOptimizationStatusEnum='google.ads.google_ads.v4.proto.enums.ad_serving_optimization_status_pb2', + AdSharingErrorEnum='google.ads.google_ads.v4.proto.errors.ad_sharing_error_pb2', + AdStrengthEnum='google.ads.google_ads.v4.proto.enums.ad_strength_pb2', + AdTextAsset='google.ads.google_ads.v4.proto.common.ad_asset_pb2', + AdTypeEnum='google.ads.google_ads.v4.proto.enums.ad_type_pb2', + AdVideoAsset='google.ads.google_ads.v4.proto.common.ad_asset_pb2', + AddBatchJobOperationsRequest='google.ads.google_ads.v4.proto.services.batch_job_service_pb2', + AddBatchJobOperationsResponse='google.ads.google_ads.v4.proto.services.batch_job_service_pb2', + AddOfflineUserDataJobOperationsRequest='google.ads.google_ads.v4.proto.services.offline_user_data_job_service_pb2', + AddOfflineUserDataJobOperationsResponse='google.ads.google_ads.v4.proto.services.offline_user_data_job_service_pb2', + AddressInfo='google.ads.google_ads.v4.proto.common.criteria_pb2', + AdvertisingChannelSubTypeEnum='google.ads.google_ads.v4.proto.enums.advertising_channel_sub_type_pb2', + AdvertisingChannelTypeEnum='google.ads.google_ads.v4.proto.enums.advertising_channel_type_pb2', + AdxErrorEnum='google.ads.google_ads.v4.proto.errors.adx_error_pb2', + AffiliateLocationFeedItem='google.ads.google_ads.v4.proto.common.extensions_pb2', + AffiliateLocationFeedRelationshipTypeEnum='google.ads.google_ads.v4.proto.enums.affiliate_location_feed_relationship_type_pb2', + AffiliateLocationPlaceholderFieldEnum='google.ads.google_ads.v4.proto.enums.affiliate_location_placeholder_field_pb2', + AgeRangeInfo='google.ads.google_ads.v4.proto.common.criteria_pb2', + AgeRangeTypeEnum='google.ads.google_ads.v4.proto.enums.age_range_type_pb2', + AgeRangeView='google.ads.google_ads.v4.proto.resources.age_range_view_pb2', + AppAdInfo='google.ads.google_ads.v4.proto.common.ad_type_infos_pb2', + AppCampaignAppStoreEnum='google.ads.google_ads.v4.proto.enums.app_campaign_app_store_pb2', + AppCampaignBiddingStrategyGoalTypeEnum='google.ads.google_ads.v4.proto.enums.app_campaign_bidding_strategy_goal_type_pb2', + AppEngagementAdInfo='google.ads.google_ads.v4.proto.common.ad_type_infos_pb2', + AppFeedItem='google.ads.google_ads.v4.proto.common.extensions_pb2', + AppPaymentModelInfo='google.ads.google_ads.v4.proto.common.criteria_pb2', + AppPaymentModelTypeEnum='google.ads.google_ads.v4.proto.enums.app_payment_model_type_pb2', + AppPlaceholderFieldEnum='google.ads.google_ads.v4.proto.enums.app_placeholder_field_pb2', + AppStoreEnum='google.ads.google_ads.v4.proto.enums.app_store_pb2', + AppUrlOperatingSystemTypeEnum='google.ads.google_ads.v4.proto.enums.app_url_operating_system_type_pb2', + ApplyRecommendationOperation='google.ads.google_ads.v4.proto.services.recommendation_service_pb2', + ApplyRecommendationRequest='google.ads.google_ads.v4.proto.services.recommendation_service_pb2', + ApplyRecommendationResponse='google.ads.google_ads.v4.proto.services.recommendation_service_pb2', + ApplyRecommendationResult='google.ads.google_ads.v4.proto.services.recommendation_service_pb2', + Asset='google.ads.google_ads.v4.proto.resources.asset_pb2', + AssetErrorEnum='google.ads.google_ads.v4.proto.errors.asset_error_pb2', + AssetFieldTypeEnum='google.ads.google_ads.v4.proto.enums.asset_field_type_pb2', + AssetLinkErrorEnum='google.ads.google_ads.v4.proto.errors.asset_link_error_pb2', + AssetOperation='google.ads.google_ads.v4.proto.services.asset_service_pb2', + AssetPerformanceLabelEnum='google.ads.google_ads.v4.proto.enums.asset_performance_label_pb2', + AssetTypeEnum='google.ads.google_ads.v4.proto.enums.asset_type_pb2', + AttributeFieldMapping='google.ads.google_ads.v4.proto.resources.feed_mapping_pb2', + AttributionModelEnum='google.ads.google_ads.v4.proto.enums.attribution_model_pb2', + AuthenticationErrorEnum='google.ads.google_ads.v4.proto.errors.authentication_error_pb2', + AuthorizationErrorEnum='google.ads.google_ads.v4.proto.errors.authorization_error_pb2', + BasicUserListInfo='google.ads.google_ads.v4.proto.common.user_lists_pb2', + BatchJob='google.ads.google_ads.v4.proto.resources.batch_job_pb2', + BatchJobErrorEnum='google.ads.google_ads.v4.proto.errors.batch_job_error_pb2', + BatchJobOperation='google.ads.google_ads.v4.proto.services.batch_job_service_pb2', + BatchJobResult='google.ads.google_ads.v4.proto.services.batch_job_service_pb2', + BatchJobStatusEnum='google.ads.google_ads.v4.proto.enums.batch_job_status_pb2', + BidModifierSimulationPoint='google.ads.google_ads.v4.proto.common.simulation_pb2', + BidModifierSimulationPointList='google.ads.google_ads.v4.proto.common.simulation_pb2', + BidModifierSourceEnum='google.ads.google_ads.v4.proto.enums.bid_modifier_source_pb2', + BiddingErrorEnum='google.ads.google_ads.v4.proto.errors.bidding_error_pb2', + BiddingSourceEnum='google.ads.google_ads.v4.proto.enums.bidding_source_pb2', + BiddingStrategy='google.ads.google_ads.v4.proto.resources.bidding_strategy_pb2', + BiddingStrategyErrorEnum='google.ads.google_ads.v4.proto.errors.bidding_strategy_error_pb2', + BiddingStrategyOperation='google.ads.google_ads.v4.proto.services.bidding_strategy_service_pb2', + BiddingStrategyStatusEnum='google.ads.google_ads.v4.proto.enums.bidding_strategy_status_pb2', + BiddingStrategyTypeEnum='google.ads.google_ads.v4.proto.enums.bidding_strategy_type_pb2', + BillingSetup='google.ads.google_ads.v4.proto.resources.billing_setup_pb2', + BillingSetupErrorEnum='google.ads.google_ads.v4.proto.errors.billing_setup_error_pb2', + BillingSetupOperation='google.ads.google_ads.v4.proto.services.billing_setup_service_pb2', + BillingSetupStatusEnum='google.ads.google_ads.v4.proto.enums.billing_setup_status_pb2', + BookOnGoogleAsset='google.ads.google_ads.v4.proto.common.asset_types_pb2', + BrandSafetySuitabilityEnum='google.ads.google_ads.v4.proto.enums.brand_safety_suitability_pb2', + BudgetDeliveryMethodEnum='google.ads.google_ads.v4.proto.enums.budget_delivery_method_pb2', + BudgetPeriodEnum='google.ads.google_ads.v4.proto.enums.budget_period_pb2', + BudgetStatusEnum='google.ads.google_ads.v4.proto.enums.budget_status_pb2', + BudgetTypeEnum='google.ads.google_ads.v4.proto.enums.budget_type_pb2', + CallConversion='google.ads.google_ads.v4.proto.services.conversion_upload_service_pb2', + CallConversionReportingStateEnum='google.ads.google_ads.v4.proto.enums.call_conversion_reporting_state_pb2', + CallConversionResult='google.ads.google_ads.v4.proto.services.conversion_upload_service_pb2', + CallFeedItem='google.ads.google_ads.v4.proto.common.extensions_pb2', + CallOnlyAdInfo='google.ads.google_ads.v4.proto.common.ad_type_infos_pb2', + CallPlaceholderFieldEnum='google.ads.google_ads.v4.proto.enums.call_placeholder_field_pb2', + CallReportingSetting='google.ads.google_ads.v4.proto.resources.customer_pb2', + CalloutFeedItem='google.ads.google_ads.v4.proto.common.extensions_pb2', + CalloutPlaceholderFieldEnum='google.ads.google_ads.v4.proto.enums.callout_placeholder_field_pb2', + Campaign='google.ads.google_ads.v4.proto.resources.campaign_pb2', + CampaignAudienceView='google.ads.google_ads.v4.proto.resources.campaign_audience_view_pb2', + CampaignBidModifier='google.ads.google_ads.v4.proto.resources.campaign_bid_modifier_pb2', + CampaignBidModifierOperation='google.ads.google_ads.v4.proto.services.campaign_bid_modifier_service_pb2', + CampaignBudget='google.ads.google_ads.v4.proto.resources.campaign_budget_pb2', + CampaignBudgetErrorEnum='google.ads.google_ads.v4.proto.errors.campaign_budget_error_pb2', + CampaignBudgetOperation='google.ads.google_ads.v4.proto.services.campaign_budget_service_pb2', + CampaignCriterion='google.ads.google_ads.v4.proto.resources.campaign_criterion_pb2', + CampaignCriterionErrorEnum='google.ads.google_ads.v4.proto.errors.campaign_criterion_error_pb2', + CampaignCriterionOperation='google.ads.google_ads.v4.proto.services.campaign_criterion_service_pb2', + CampaignCriterionSimulation='google.ads.google_ads.v4.proto.resources.campaign_criterion_simulation_pb2', + CampaignCriterionStatusEnum='google.ads.google_ads.v4.proto.enums.campaign_criterion_status_pb2', + CampaignDraft='google.ads.google_ads.v4.proto.resources.campaign_draft_pb2', + CampaignDraftErrorEnum='google.ads.google_ads.v4.proto.errors.campaign_draft_error_pb2', + CampaignDraftOperation='google.ads.google_ads.v4.proto.services.campaign_draft_service_pb2', + CampaignDraftStatusEnum='google.ads.google_ads.v4.proto.enums.campaign_draft_status_pb2', + CampaignDuration='google.ads.google_ads.v4.proto.services.reach_plan_service_pb2', + CampaignErrorEnum='google.ads.google_ads.v4.proto.errors.campaign_error_pb2', + CampaignExperiment='google.ads.google_ads.v4.proto.resources.campaign_experiment_pb2', + CampaignExperimentErrorEnum='google.ads.google_ads.v4.proto.errors.campaign_experiment_error_pb2', + CampaignExperimentOperation='google.ads.google_ads.v4.proto.services.campaign_experiment_service_pb2', + CampaignExperimentStatusEnum='google.ads.google_ads.v4.proto.enums.campaign_experiment_status_pb2', + CampaignExperimentTrafficSplitTypeEnum='google.ads.google_ads.v4.proto.enums.campaign_experiment_traffic_split_type_pb2', + CampaignExperimentTypeEnum='google.ads.google_ads.v4.proto.enums.campaign_experiment_type_pb2', + CampaignExtensionSetting='google.ads.google_ads.v4.proto.resources.campaign_extension_setting_pb2', + CampaignExtensionSettingOperation='google.ads.google_ads.v4.proto.services.campaign_extension_setting_service_pb2', + CampaignFeed='google.ads.google_ads.v4.proto.resources.campaign_feed_pb2', + CampaignFeedErrorEnum='google.ads.google_ads.v4.proto.errors.campaign_feed_error_pb2', + CampaignFeedOperation='google.ads.google_ads.v4.proto.services.campaign_feed_service_pb2', + CampaignLabel='google.ads.google_ads.v4.proto.resources.campaign_label_pb2', + CampaignLabelOperation='google.ads.google_ads.v4.proto.services.campaign_label_service_pb2', + CampaignOperation='google.ads.google_ads.v4.proto.services.campaign_service_pb2', + CampaignServingStatusEnum='google.ads.google_ads.v4.proto.enums.campaign_serving_status_pb2', + CampaignSharedSet='google.ads.google_ads.v4.proto.resources.campaign_shared_set_pb2', + CampaignSharedSetErrorEnum='google.ads.google_ads.v4.proto.errors.campaign_shared_set_error_pb2', + CampaignSharedSetOperation='google.ads.google_ads.v4.proto.services.campaign_shared_set_service_pb2', + CampaignSharedSetStatusEnum='google.ads.google_ads.v4.proto.enums.campaign_shared_set_status_pb2', + CampaignStatusEnum='google.ads.google_ads.v4.proto.enums.campaign_status_pb2', + CarrierConstant='google.ads.google_ads.v4.proto.resources.carrier_constant_pb2', + CarrierInfo='google.ads.google_ads.v4.proto.common.criteria_pb2', + ChangeStatus='google.ads.google_ads.v4.proto.resources.change_status_pb2', + ChangeStatusErrorEnum='google.ads.google_ads.v4.proto.errors.change_status_error_pb2', + ChangeStatusOperationEnum='google.ads.google_ads.v4.proto.enums.change_status_operation_pb2', + ChangeStatusResourceTypeEnum='google.ads.google_ads.v4.proto.enums.change_status_resource_type_pb2', + ClickConversion='google.ads.google_ads.v4.proto.services.conversion_upload_service_pb2', + ClickConversionResult='google.ads.google_ads.v4.proto.services.conversion_upload_service_pb2', + ClickLocation='google.ads.google_ads.v4.proto.common.click_location_pb2', + ClickTypeEnum='google.ads.google_ads.v4.proto.enums.click_type_pb2', + ClickView='google.ads.google_ads.v4.proto.resources.click_view_pb2', + CollectionSizeErrorEnum='google.ads.google_ads.v4.proto.errors.collection_size_error_pb2', + CombinedRuleUserListInfo='google.ads.google_ads.v4.proto.common.user_lists_pb2', + Commission='google.ads.google_ads.v4.proto.common.bidding_pb2', + ContentLabelInfo='google.ads.google_ads.v4.proto.common.criteria_pb2', + ContentLabelTypeEnum='google.ads.google_ads.v4.proto.enums.content_label_type_pb2', + ContextErrorEnum='google.ads.google_ads.v4.proto.errors.context_error_pb2', + ConversionAction='google.ads.google_ads.v4.proto.resources.conversion_action_pb2', + ConversionActionCategoryEnum='google.ads.google_ads.v4.proto.enums.conversion_action_category_pb2', + ConversionActionCountingTypeEnum='google.ads.google_ads.v4.proto.enums.conversion_action_counting_type_pb2', + ConversionActionErrorEnum='google.ads.google_ads.v4.proto.errors.conversion_action_error_pb2', + ConversionActionOperation='google.ads.google_ads.v4.proto.services.conversion_action_service_pb2', + ConversionActionStatusEnum='google.ads.google_ads.v4.proto.enums.conversion_action_status_pb2', + ConversionActionTypeEnum='google.ads.google_ads.v4.proto.enums.conversion_action_type_pb2', + ConversionAdjustment='google.ads.google_ads.v4.proto.services.conversion_adjustment_upload_service_pb2', + ConversionAdjustmentResult='google.ads.google_ads.v4.proto.services.conversion_adjustment_upload_service_pb2', + ConversionAdjustmentTypeEnum='google.ads.google_ads.v4.proto.enums.conversion_adjustment_type_pb2', + ConversionAdjustmentUploadErrorEnum='google.ads.google_ads.v4.proto.errors.conversion_adjustment_upload_error_pb2', + ConversionAttributionEventTypeEnum='google.ads.google_ads.v4.proto.enums.conversion_attribution_event_type_pb2', + ConversionLagBucketEnum='google.ads.google_ads.v4.proto.enums.conversion_lag_bucket_pb2', + ConversionOrAdjustmentLagBucketEnum='google.ads.google_ads.v4.proto.enums.conversion_or_adjustment_lag_bucket_pb2', + ConversionTrackingSetting='google.ads.google_ads.v4.proto.resources.customer_pb2', + ConversionUploadErrorEnum='google.ads.google_ads.v4.proto.errors.conversion_upload_error_pb2', + CountryCodeErrorEnum='google.ads.google_ads.v4.proto.errors.country_code_error_pb2', + CpcBidSimulationPoint='google.ads.google_ads.v4.proto.common.simulation_pb2', + CpcBidSimulationPointList='google.ads.google_ads.v4.proto.common.simulation_pb2', + CpvBidSimulationPoint='google.ads.google_ads.v4.proto.common.simulation_pb2', + CpvBidSimulationPointList='google.ads.google_ads.v4.proto.common.simulation_pb2', + CreateCampaignExperimentMetadata='google.ads.google_ads.v4.proto.services.campaign_experiment_service_pb2', + CreateCampaignExperimentRequest='google.ads.google_ads.v4.proto.services.campaign_experiment_service_pb2', + CreateCustomerClientRequest='google.ads.google_ads.v4.proto.services.customer_service_pb2', + CreateCustomerClientResponse='google.ads.google_ads.v4.proto.services.customer_service_pb2', + CreateOfflineUserDataJobRequest='google.ads.google_ads.v4.proto.services.offline_user_data_job_service_pb2', + CreateOfflineUserDataJobResponse='google.ads.google_ads.v4.proto.services.offline_user_data_job_service_pb2', + CriterionCategoryAvailability='google.ads.google_ads.v4.proto.common.criterion_category_availability_pb2', + CriterionCategoryChannelAvailability='google.ads.google_ads.v4.proto.common.criterion_category_availability_pb2', + CriterionCategoryChannelAvailabilityModeEnum='google.ads.google_ads.v4.proto.enums.criterion_category_channel_availability_mode_pb2', + CriterionCategoryLocaleAvailability='google.ads.google_ads.v4.proto.common.criterion_category_availability_pb2', + CriterionCategoryLocaleAvailabilityModeEnum='google.ads.google_ads.v4.proto.enums.criterion_category_locale_availability_mode_pb2', + CriterionErrorEnum='google.ads.google_ads.v4.proto.errors.criterion_error_pb2', + CriterionSystemServingStatusEnum='google.ads.google_ads.v4.proto.enums.criterion_system_serving_status_pb2', + CriterionTypeEnum='google.ads.google_ads.v4.proto.enums.criterion_type_pb2', + CrmBasedUserListInfo='google.ads.google_ads.v4.proto.common.user_lists_pb2', + CurrencyCodeErrorEnum='google.ads.google_ads.v4.proto.errors.currency_code_error_pb2', + CurrencyConstant='google.ads.google_ads.v4.proto.resources.currency_constant_pb2', + CustomAffinityInfo='google.ads.google_ads.v4.proto.common.criteria_pb2', + CustomIntentInfo='google.ads.google_ads.v4.proto.common.criteria_pb2', + CustomInterest='google.ads.google_ads.v4.proto.resources.custom_interest_pb2', + CustomInterestErrorEnum='google.ads.google_ads.v4.proto.errors.custom_interest_error_pb2', + CustomInterestMember='google.ads.google_ads.v4.proto.resources.custom_interest_pb2', + CustomInterestMemberTypeEnum='google.ads.google_ads.v4.proto.enums.custom_interest_member_type_pb2', + CustomInterestOperation='google.ads.google_ads.v4.proto.services.custom_interest_service_pb2', + CustomInterestStatusEnum='google.ads.google_ads.v4.proto.enums.custom_interest_status_pb2', + CustomInterestTypeEnum='google.ads.google_ads.v4.proto.enums.custom_interest_type_pb2', + CustomParameter='google.ads.google_ads.v4.proto.common.custom_parameter_pb2', + CustomPlaceholderFieldEnum='google.ads.google_ads.v4.proto.enums.custom_placeholder_field_pb2', + Customer='google.ads.google_ads.v4.proto.resources.customer_pb2', + CustomerClient='google.ads.google_ads.v4.proto.resources.customer_client_pb2', + CustomerClientLink='google.ads.google_ads.v4.proto.resources.customer_client_link_pb2', + CustomerClientLinkErrorEnum='google.ads.google_ads.v4.proto.errors.customer_client_link_error_pb2', + CustomerClientLinkOperation='google.ads.google_ads.v4.proto.services.customer_client_link_service_pb2', + CustomerErrorEnum='google.ads.google_ads.v4.proto.errors.customer_error_pb2', + CustomerExtensionSetting='google.ads.google_ads.v4.proto.resources.customer_extension_setting_pb2', + CustomerExtensionSettingOperation='google.ads.google_ads.v4.proto.services.customer_extension_setting_service_pb2', + CustomerFeed='google.ads.google_ads.v4.proto.resources.customer_feed_pb2', + CustomerFeedErrorEnum='google.ads.google_ads.v4.proto.errors.customer_feed_error_pb2', + CustomerFeedOperation='google.ads.google_ads.v4.proto.services.customer_feed_service_pb2', + CustomerLabel='google.ads.google_ads.v4.proto.resources.customer_label_pb2', + CustomerLabelOperation='google.ads.google_ads.v4.proto.services.customer_label_service_pb2', + CustomerManagerLink='google.ads.google_ads.v4.proto.resources.customer_manager_link_pb2', + CustomerManagerLinkErrorEnum='google.ads.google_ads.v4.proto.errors.customer_manager_link_error_pb2', + CustomerManagerLinkOperation='google.ads.google_ads.v4.proto.services.customer_manager_link_service_pb2', + CustomerMatchUploadKeyTypeEnum='google.ads.google_ads.v4.proto.enums.customer_match_upload_key_type_pb2', + CustomerMatchUserListMetadata='google.ads.google_ads.v4.proto.common.offline_user_data_pb2', + CustomerNegativeCriterion='google.ads.google_ads.v4.proto.resources.customer_negative_criterion_pb2', + CustomerNegativeCriterionOperation='google.ads.google_ads.v4.proto.services.customer_negative_criterion_service_pb2', + CustomerOperation='google.ads.google_ads.v4.proto.services.customer_service_pb2', + CustomerPayPerConversionEligibilityFailureReasonEnum='google.ads.google_ads.v4.proto.enums.customer_pay_per_conversion_eligibility_failure_reason_pb2', + DataDrivenModelStatusEnum='google.ads.google_ads.v4.proto.enums.data_driven_model_status_pb2', + DatabaseErrorEnum='google.ads.google_ads.v4.proto.errors.database_error_pb2', + DateErrorEnum='google.ads.google_ads.v4.proto.errors.date_error_pb2', + DateRange='google.ads.google_ads.v4.proto.common.dates_pb2', + DateRangeErrorEnum='google.ads.google_ads.v4.proto.errors.date_range_error_pb2', + DateSpecificRuleUserListInfo='google.ads.google_ads.v4.proto.common.user_lists_pb2', + DayOfWeekEnum='google.ads.google_ads.v4.proto.enums.day_of_week_pb2', + DetailPlacementView='google.ads.google_ads.v4.proto.resources.detail_placement_view_pb2', + DeviceEnum='google.ads.google_ads.v4.proto.enums.device_pb2', + DeviceInfo='google.ads.google_ads.v4.proto.common.criteria_pb2', + DismissRecommendationRequest='google.ads.google_ads.v4.proto.services.recommendation_service_pb2', + DismissRecommendationResponse='google.ads.google_ads.v4.proto.services.recommendation_service_pb2', + DisplayAdFormatSettingEnum='google.ads.google_ads.v4.proto.enums.display_ad_format_setting_pb2', + DisplayCallToAction='google.ads.google_ads.v4.proto.common.ad_type_infos_pb2', + DisplayKeywordView='google.ads.google_ads.v4.proto.resources.display_keyword_view_pb2', + DisplayUploadAdInfo='google.ads.google_ads.v4.proto.common.ad_type_infos_pb2', + DisplayUploadProductTypeEnum='google.ads.google_ads.v4.proto.enums.display_upload_product_type_pb2', + DistanceBucketEnum='google.ads.google_ads.v4.proto.enums.distance_bucket_pb2', + DistanceView='google.ads.google_ads.v4.proto.resources.distance_view_pb2', + DistinctErrorEnum='google.ads.google_ads.v4.proto.errors.distinct_error_pb2', + DomainCategory='google.ads.google_ads.v4.proto.resources.domain_category_pb2', + DsaPageFeedCriterionFieldEnum='google.ads.google_ads.v4.proto.enums.dsa_page_feed_criterion_field_pb2', + DynamicSearchAdsSearchTermView='google.ads.google_ads.v4.proto.resources.dynamic_search_ads_search_term_view_pb2', + EducationPlaceholderFieldEnum='google.ads.google_ads.v4.proto.enums.education_placeholder_field_pb2', + EndCampaignExperimentRequest='google.ads.google_ads.v4.proto.services.campaign_experiment_service_pb2', + EnhancedCpc='google.ads.google_ads.v4.proto.common.bidding_pb2', + EnumErrorEnum='google.ads.google_ads.v4.proto.errors.enum_error_pb2', + ErrorCode='google.ads.google_ads.v4.proto.errors.errors_pb2', + ErrorDetails='google.ads.google_ads.v4.proto.errors.errors_pb2', + ErrorLocation='google.ads.google_ads.v4.proto.errors.errors_pb2', + ExpandedDynamicSearchAdInfo='google.ads.google_ads.v4.proto.common.ad_type_infos_pb2', + ExpandedLandingPageView='google.ads.google_ads.v4.proto.resources.expanded_landing_page_view_pb2', + ExpandedTextAdInfo='google.ads.google_ads.v4.proto.common.ad_type_infos_pb2', + ExplorerAutoOptimizerSetting='google.ads.google_ads.v4.proto.common.explorer_auto_optimizer_setting_pb2', + ExpressionRuleUserListInfo='google.ads.google_ads.v4.proto.common.user_lists_pb2', + ExtensionFeedItem='google.ads.google_ads.v4.proto.resources.extension_feed_item_pb2', + ExtensionFeedItemErrorEnum='google.ads.google_ads.v4.proto.errors.extension_feed_item_error_pb2', + ExtensionFeedItemOperation='google.ads.google_ads.v4.proto.services.extension_feed_item_service_pb2', + ExtensionSettingDeviceEnum='google.ads.google_ads.v4.proto.enums.extension_setting_device_pb2', + ExtensionSettingErrorEnum='google.ads.google_ads.v4.proto.errors.extension_setting_error_pb2', + ExtensionTypeEnum='google.ads.google_ads.v4.proto.enums.extension_type_pb2', + ExternalAttributionData='google.ads.google_ads.v4.proto.services.conversion_upload_service_pb2', + ExternalConversionSourceEnum='google.ads.google_ads.v4.proto.enums.external_conversion_source_pb2', + Feed='google.ads.google_ads.v4.proto.resources.feed_pb2', + FeedAttribute='google.ads.google_ads.v4.proto.resources.feed_pb2', + FeedAttributeOperation='google.ads.google_ads.v4.proto.resources.feed_pb2', + FeedAttributeReferenceErrorEnum='google.ads.google_ads.v4.proto.errors.feed_attribute_reference_error_pb2', + FeedAttributeTypeEnum='google.ads.google_ads.v4.proto.enums.feed_attribute_type_pb2', + FeedErrorEnum='google.ads.google_ads.v4.proto.errors.feed_error_pb2', + FeedItem='google.ads.google_ads.v4.proto.resources.feed_item_pb2', + FeedItemAttributeValue='google.ads.google_ads.v4.proto.resources.feed_item_pb2', + FeedItemErrorEnum='google.ads.google_ads.v4.proto.errors.feed_item_error_pb2', + FeedItemOperation='google.ads.google_ads.v4.proto.services.feed_item_service_pb2', + FeedItemPlaceholderPolicyInfo='google.ads.google_ads.v4.proto.resources.feed_item_pb2', + FeedItemQualityApprovalStatusEnum='google.ads.google_ads.v4.proto.enums.feed_item_quality_approval_status_pb2', + FeedItemQualityDisapprovalReasonEnum='google.ads.google_ads.v4.proto.enums.feed_item_quality_disapproval_reason_pb2', + FeedItemStatusEnum='google.ads.google_ads.v4.proto.enums.feed_item_status_pb2', + FeedItemTarget='google.ads.google_ads.v4.proto.resources.feed_item_target_pb2', + FeedItemTargetDeviceEnum='google.ads.google_ads.v4.proto.enums.feed_item_target_device_pb2', + FeedItemTargetErrorEnum='google.ads.google_ads.v4.proto.errors.feed_item_target_error_pb2', + FeedItemTargetOperation='google.ads.google_ads.v4.proto.services.feed_item_target_service_pb2', + FeedItemTargetStatusEnum='google.ads.google_ads.v4.proto.enums.feed_item_target_status_pb2', + FeedItemTargetTypeEnum='google.ads.google_ads.v4.proto.enums.feed_item_target_type_pb2', + FeedItemValidationError='google.ads.google_ads.v4.proto.resources.feed_item_pb2', + FeedItemValidationErrorEnum='google.ads.google_ads.v4.proto.errors.feed_item_validation_error_pb2', + FeedItemValidationStatusEnum='google.ads.google_ads.v4.proto.enums.feed_item_validation_status_pb2', + FeedLinkStatusEnum='google.ads.google_ads.v4.proto.enums.feed_link_status_pb2', + FeedMapping='google.ads.google_ads.v4.proto.resources.feed_mapping_pb2', + FeedMappingCriterionTypeEnum='google.ads.google_ads.v4.proto.enums.feed_mapping_criterion_type_pb2', + FeedMappingErrorEnum='google.ads.google_ads.v4.proto.errors.feed_mapping_error_pb2', + FeedMappingOperation='google.ads.google_ads.v4.proto.services.feed_mapping_service_pb2', + FeedMappingStatusEnum='google.ads.google_ads.v4.proto.enums.feed_mapping_status_pb2', + FeedOperation='google.ads.google_ads.v4.proto.services.feed_service_pb2', + FeedOriginEnum='google.ads.google_ads.v4.proto.enums.feed_origin_pb2', + FeedPlaceholderView='google.ads.google_ads.v4.proto.resources.feed_placeholder_view_pb2', + FeedStatusEnum='google.ads.google_ads.v4.proto.enums.feed_status_pb2', + FieldErrorEnum='google.ads.google_ads.v4.proto.errors.field_error_pb2', + FieldMaskErrorEnum='google.ads.google_ads.v4.proto.errors.field_mask_error_pb2', + FinalAppUrl='google.ads.google_ads.v4.proto.common.final_app_url_pb2', + FlightPlaceholderFieldEnum='google.ads.google_ads.v4.proto.enums.flight_placeholder_field_pb2', + Forecast='google.ads.google_ads.v4.proto.services.reach_plan_service_pb2', + ForecastMetrics='google.ads.google_ads.v4.proto.services.keyword_plan_service_pb2', + FrequencyCap='google.ads.google_ads.v4.proto.services.reach_plan_service_pb2', + FrequencyCapEntry='google.ads.google_ads.v4.proto.common.frequency_cap_pb2', + FrequencyCapEventTypeEnum='google.ads.google_ads.v4.proto.enums.frequency_cap_event_type_pb2', + FrequencyCapKey='google.ads.google_ads.v4.proto.common.frequency_cap_pb2', + FrequencyCapLevelEnum='google.ads.google_ads.v4.proto.enums.frequency_cap_level_pb2', + FrequencyCapTimeUnitEnum='google.ads.google_ads.v4.proto.enums.frequency_cap_time_unit_pb2', + FunctionErrorEnum='google.ads.google_ads.v4.proto.errors.function_error_pb2', + FunctionParsingErrorEnum='google.ads.google_ads.v4.proto.errors.function_parsing_error_pb2', + GclidDateTimePair='google.ads.google_ads.v4.proto.services.conversion_adjustment_upload_service_pb2', + GenderInfo='google.ads.google_ads.v4.proto.common.criteria_pb2', + GenderTypeEnum='google.ads.google_ads.v4.proto.enums.gender_type_pb2', + GenderView='google.ads.google_ads.v4.proto.resources.gender_view_pb2', + GenerateForecastCurveRequest='google.ads.google_ads.v4.proto.services.keyword_plan_service_pb2', + GenerateForecastCurveResponse='google.ads.google_ads.v4.proto.services.keyword_plan_service_pb2', + GenerateForecastMetricsRequest='google.ads.google_ads.v4.proto.services.keyword_plan_service_pb2', + GenerateForecastMetricsResponse='google.ads.google_ads.v4.proto.services.keyword_plan_service_pb2', + GenerateHistoricalMetricsRequest='google.ads.google_ads.v4.proto.services.keyword_plan_service_pb2', + GenerateHistoricalMetricsResponse='google.ads.google_ads.v4.proto.services.keyword_plan_service_pb2', + GenerateKeywordIdeaResponse='google.ads.google_ads.v4.proto.services.keyword_plan_idea_service_pb2', + GenerateKeywordIdeaResult='google.ads.google_ads.v4.proto.services.keyword_plan_idea_service_pb2', + GenerateKeywordIdeasRequest='google.ads.google_ads.v4.proto.services.keyword_plan_idea_service_pb2', + GenerateProductMixIdeasRequest='google.ads.google_ads.v4.proto.services.reach_plan_service_pb2', + GenerateProductMixIdeasResponse='google.ads.google_ads.v4.proto.services.reach_plan_service_pb2', + GenerateReachForecastRequest='google.ads.google_ads.v4.proto.services.reach_plan_service_pb2', + GenerateReachForecastResponse='google.ads.google_ads.v4.proto.services.reach_plan_service_pb2', + GeoPointInfo='google.ads.google_ads.v4.proto.common.criteria_pb2', + GeoTargetConstant='google.ads.google_ads.v4.proto.resources.geo_target_constant_pb2', + GeoTargetConstantStatusEnum='google.ads.google_ads.v4.proto.enums.geo_target_constant_status_pb2', + GeoTargetConstantSuggestion='google.ads.google_ads.v4.proto.services.geo_target_constant_service_pb2', + GeoTargetConstantSuggestionErrorEnum='google.ads.google_ads.v4.proto.errors.geo_target_constant_suggestion_error_pb2', + GeoTargetingRestrictionEnum='google.ads.google_ads.v4.proto.enums.geo_targeting_restriction_pb2', + GeoTargetingTypeEnum='google.ads.google_ads.v4.proto.enums.geo_targeting_type_pb2', + GeographicView='google.ads.google_ads.v4.proto.resources.geographic_view_pb2', + GetAccountBudgetProposalRequest='google.ads.google_ads.v4.proto.services.account_budget_proposal_service_pb2', + GetAccountBudgetRequest='google.ads.google_ads.v4.proto.services.account_budget_service_pb2', + GetAccountLinkRequest='google.ads.google_ads.v4.proto.services.account_link_service_pb2', + GetAdGroupAdAssetViewRequest='google.ads.google_ads.v4.proto.services.ad_group_ad_asset_view_service_pb2', + GetAdGroupAdLabelRequest='google.ads.google_ads.v4.proto.services.ad_group_ad_label_service_pb2', + GetAdGroupAdRequest='google.ads.google_ads.v4.proto.services.ad_group_ad_service_pb2', + GetAdGroupAudienceViewRequest='google.ads.google_ads.v4.proto.services.ad_group_audience_view_service_pb2', + GetAdGroupBidModifierRequest='google.ads.google_ads.v4.proto.services.ad_group_bid_modifier_service_pb2', + GetAdGroupCriterionLabelRequest='google.ads.google_ads.v4.proto.services.ad_group_criterion_label_service_pb2', + GetAdGroupCriterionRequest='google.ads.google_ads.v4.proto.services.ad_group_criterion_service_pb2', + GetAdGroupCriterionSimulationRequest='google.ads.google_ads.v4.proto.services.ad_group_criterion_simulation_service_pb2', + GetAdGroupExtensionSettingRequest='google.ads.google_ads.v4.proto.services.ad_group_extension_setting_service_pb2', + GetAdGroupFeedRequest='google.ads.google_ads.v4.proto.services.ad_group_feed_service_pb2', + GetAdGroupLabelRequest='google.ads.google_ads.v4.proto.services.ad_group_label_service_pb2', + GetAdGroupRequest='google.ads.google_ads.v4.proto.services.ad_group_service_pb2', + GetAdGroupSimulationRequest='google.ads.google_ads.v4.proto.services.ad_group_simulation_service_pb2', + GetAdParameterRequest='google.ads.google_ads.v4.proto.services.ad_parameter_service_pb2', + GetAdRequest='google.ads.google_ads.v4.proto.services.ad_service_pb2', + GetAdScheduleViewRequest='google.ads.google_ads.v4.proto.services.ad_schedule_view_service_pb2', + GetAgeRangeViewRequest='google.ads.google_ads.v4.proto.services.age_range_view_service_pb2', + GetAssetRequest='google.ads.google_ads.v4.proto.services.asset_service_pb2', + GetBatchJobRequest='google.ads.google_ads.v4.proto.services.batch_job_service_pb2', + GetBiddingStrategyRequest='google.ads.google_ads.v4.proto.services.bidding_strategy_service_pb2', + GetBillingSetupRequest='google.ads.google_ads.v4.proto.services.billing_setup_service_pb2', + GetCampaignAudienceViewRequest='google.ads.google_ads.v4.proto.services.campaign_audience_view_service_pb2', + GetCampaignBidModifierRequest='google.ads.google_ads.v4.proto.services.campaign_bid_modifier_service_pb2', + GetCampaignBudgetRequest='google.ads.google_ads.v4.proto.services.campaign_budget_service_pb2', + GetCampaignCriterionRequest='google.ads.google_ads.v4.proto.services.campaign_criterion_service_pb2', + GetCampaignCriterionSimulationRequest='google.ads.google_ads.v4.proto.services.campaign_criterion_simulation_service_pb2', + GetCampaignDraftRequest='google.ads.google_ads.v4.proto.services.campaign_draft_service_pb2', + GetCampaignExperimentRequest='google.ads.google_ads.v4.proto.services.campaign_experiment_service_pb2', + GetCampaignExtensionSettingRequest='google.ads.google_ads.v4.proto.services.campaign_extension_setting_service_pb2', + GetCampaignFeedRequest='google.ads.google_ads.v4.proto.services.campaign_feed_service_pb2', + GetCampaignLabelRequest='google.ads.google_ads.v4.proto.services.campaign_label_service_pb2', + GetCampaignRequest='google.ads.google_ads.v4.proto.services.campaign_service_pb2', + GetCampaignSharedSetRequest='google.ads.google_ads.v4.proto.services.campaign_shared_set_service_pb2', + GetCarrierConstantRequest='google.ads.google_ads.v4.proto.services.carrier_constant_service_pb2', + GetChangeStatusRequest='google.ads.google_ads.v4.proto.services.change_status_service_pb2', + GetClickViewRequest='google.ads.google_ads.v4.proto.services.click_view_service_pb2', + GetConversionActionRequest='google.ads.google_ads.v4.proto.services.conversion_action_service_pb2', + GetCurrencyConstantRequest='google.ads.google_ads.v4.proto.services.currency_constant_service_pb2', + GetCustomInterestRequest='google.ads.google_ads.v4.proto.services.custom_interest_service_pb2', + GetCustomerClientLinkRequest='google.ads.google_ads.v4.proto.services.customer_client_link_service_pb2', + GetCustomerClientRequest='google.ads.google_ads.v4.proto.services.customer_client_service_pb2', + GetCustomerExtensionSettingRequest='google.ads.google_ads.v4.proto.services.customer_extension_setting_service_pb2', + GetCustomerFeedRequest='google.ads.google_ads.v4.proto.services.customer_feed_service_pb2', + GetCustomerLabelRequest='google.ads.google_ads.v4.proto.services.customer_label_service_pb2', + GetCustomerManagerLinkRequest='google.ads.google_ads.v4.proto.services.customer_manager_link_service_pb2', + GetCustomerNegativeCriterionRequest='google.ads.google_ads.v4.proto.services.customer_negative_criterion_service_pb2', + GetCustomerRequest='google.ads.google_ads.v4.proto.services.customer_service_pb2', + GetDetailPlacementViewRequest='google.ads.google_ads.v4.proto.services.detail_placement_view_service_pb2', + GetDisplayKeywordViewRequest='google.ads.google_ads.v4.proto.services.display_keyword_view_service_pb2', + GetDistanceViewRequest='google.ads.google_ads.v4.proto.services.distance_view_service_pb2', + GetDomainCategoryRequest='google.ads.google_ads.v4.proto.services.domain_category_service_pb2', + GetDynamicSearchAdsSearchTermViewRequest='google.ads.google_ads.v4.proto.services.dynamic_search_ads_search_term_view_service_pb2', + GetExpandedLandingPageViewRequest='google.ads.google_ads.v4.proto.services.expanded_landing_page_view_service_pb2', + GetExtensionFeedItemRequest='google.ads.google_ads.v4.proto.services.extension_feed_item_service_pb2', + GetFeedItemRequest='google.ads.google_ads.v4.proto.services.feed_item_service_pb2', + GetFeedItemTargetRequest='google.ads.google_ads.v4.proto.services.feed_item_target_service_pb2', + GetFeedMappingRequest='google.ads.google_ads.v4.proto.services.feed_mapping_service_pb2', + GetFeedPlaceholderViewRequest='google.ads.google_ads.v4.proto.services.feed_placeholder_view_service_pb2', + GetFeedRequest='google.ads.google_ads.v4.proto.services.feed_service_pb2', + GetGenderViewRequest='google.ads.google_ads.v4.proto.services.gender_view_service_pb2', + GetGeoTargetConstantRequest='google.ads.google_ads.v4.proto.services.geo_target_constant_service_pb2', + GetGeographicViewRequest='google.ads.google_ads.v4.proto.services.geographic_view_service_pb2', + GetGoogleAdsFieldRequest='google.ads.google_ads.v4.proto.services.google_ads_field_service_pb2', + GetGroupPlacementViewRequest='google.ads.google_ads.v4.proto.services.group_placement_view_service_pb2', + GetHotelGroupViewRequest='google.ads.google_ads.v4.proto.services.hotel_group_view_service_pb2', + GetHotelPerformanceViewRequest='google.ads.google_ads.v4.proto.services.hotel_performance_view_service_pb2', + GetIncomeRangeViewRequest='google.ads.google_ads.v4.proto.services.income_range_view_service_pb2', + GetKeywordPlanAdGroupKeywordRequest='google.ads.google_ads.v4.proto.services.keyword_plan_ad_group_keyword_service_pb2', + GetKeywordPlanAdGroupRequest='google.ads.google_ads.v4.proto.services.keyword_plan_ad_group_service_pb2', + GetKeywordPlanCampaignKeywordRequest='google.ads.google_ads.v4.proto.services.keyword_plan_campaign_keyword_service_pb2', + GetKeywordPlanCampaignRequest='google.ads.google_ads.v4.proto.services.keyword_plan_campaign_service_pb2', + GetKeywordPlanRequest='google.ads.google_ads.v4.proto.services.keyword_plan_service_pb2', + GetKeywordViewRequest='google.ads.google_ads.v4.proto.services.keyword_view_service_pb2', + GetLabelRequest='google.ads.google_ads.v4.proto.services.label_service_pb2', + GetLandingPageViewRequest='google.ads.google_ads.v4.proto.services.landing_page_view_service_pb2', + GetLanguageConstantRequest='google.ads.google_ads.v4.proto.services.language_constant_service_pb2', + GetLocationViewRequest='google.ads.google_ads.v4.proto.services.location_view_service_pb2', + GetManagedPlacementViewRequest='google.ads.google_ads.v4.proto.services.managed_placement_view_service_pb2', + GetMediaFileRequest='google.ads.google_ads.v4.proto.services.media_file_service_pb2', + GetMerchantCenterLinkRequest='google.ads.google_ads.v4.proto.services.merchant_center_link_service_pb2', + GetMobileAppCategoryConstantRequest='google.ads.google_ads.v4.proto.services.mobile_app_category_constant_service_pb2', + GetMobileDeviceConstantRequest='google.ads.google_ads.v4.proto.services.mobile_device_constant_service_pb2', + GetOfflineUserDataJobRequest='google.ads.google_ads.v4.proto.services.offline_user_data_job_service_pb2', + GetOperatingSystemVersionConstantRequest='google.ads.google_ads.v4.proto.services.operating_system_version_constant_service_pb2', + GetPaidOrganicSearchTermViewRequest='google.ads.google_ads.v4.proto.services.paid_organic_search_term_view_service_pb2', + GetParentalStatusViewRequest='google.ads.google_ads.v4.proto.services.parental_status_view_service_pb2', + GetProductBiddingCategoryConstantRequest='google.ads.google_ads.v4.proto.services.product_bidding_category_constant_service_pb2', + GetProductGroupViewRequest='google.ads.google_ads.v4.proto.services.product_group_view_service_pb2', + GetRecommendationRequest='google.ads.google_ads.v4.proto.services.recommendation_service_pb2', + GetRemarketingActionRequest='google.ads.google_ads.v4.proto.services.remarketing_action_service_pb2', + GetSearchTermViewRequest='google.ads.google_ads.v4.proto.services.search_term_view_service_pb2', + GetSharedCriterionRequest='google.ads.google_ads.v4.proto.services.shared_criterion_service_pb2', + GetSharedSetRequest='google.ads.google_ads.v4.proto.services.shared_set_service_pb2', + GetShoppingPerformanceViewRequest='google.ads.google_ads.v4.proto.services.shopping_performance_view_service_pb2', + GetThirdPartyAppAnalyticsLinkRequest='google.ads.google_ads.v4.proto.services.third_party_app_analytics_link_service_pb2', + GetTopicConstantRequest='google.ads.google_ads.v4.proto.services.topic_constant_service_pb2', + GetTopicViewRequest='google.ads.google_ads.v4.proto.services.topic_view_service_pb2', + GetUserInterestRequest='google.ads.google_ads.v4.proto.services.user_interest_service_pb2', + GetUserListRequest='google.ads.google_ads.v4.proto.services.user_list_service_pb2', + GetUserLocationViewRequest='google.ads.google_ads.v4.proto.services.user_location_view_service_pb2', + GetVideoRequest='google.ads.google_ads.v4.proto.services.video_service_pb2', + GmailAdInfo='google.ads.google_ads.v4.proto.common.ad_type_infos_pb2', + GmailTeaser='google.ads.google_ads.v4.proto.common.ad_type_infos_pb2', + GoogleAdsError='google.ads.google_ads.v4.proto.errors.errors_pb2', + GoogleAdsFailure='google.ads.google_ads.v4.proto.errors.errors_pb2', + GoogleAdsField='google.ads.google_ads.v4.proto.resources.google_ads_field_pb2', + GoogleAdsFieldCategoryEnum='google.ads.google_ads.v4.proto.enums.google_ads_field_category_pb2', + GoogleAdsFieldDataTypeEnum='google.ads.google_ads.v4.proto.enums.google_ads_field_data_type_pb2', + GoogleAdsRow='google.ads.google_ads.v4.proto.services.google_ads_service_pb2', + GraduateCampaignExperimentRequest='google.ads.google_ads.v4.proto.services.campaign_experiment_service_pb2', + GraduateCampaignExperimentResponse='google.ads.google_ads.v4.proto.services.campaign_experiment_service_pb2', + GroupPlacementView='google.ads.google_ads.v4.proto.resources.group_placement_view_pb2', + HeaderErrorEnum='google.ads.google_ads.v4.proto.errors.header_error_pb2', + HotelAdInfo='google.ads.google_ads.v4.proto.common.ad_type_infos_pb2', + HotelAdvanceBookingWindowInfo='google.ads.google_ads.v4.proto.common.criteria_pb2', + HotelCalloutFeedItem='google.ads.google_ads.v4.proto.common.extensions_pb2', + HotelCheckInDayInfo='google.ads.google_ads.v4.proto.common.criteria_pb2', + HotelCityInfo='google.ads.google_ads.v4.proto.common.criteria_pb2', + HotelClassInfo='google.ads.google_ads.v4.proto.common.criteria_pb2', + HotelCountryRegionInfo='google.ads.google_ads.v4.proto.common.criteria_pb2', + HotelDateSelectionTypeEnum='google.ads.google_ads.v4.proto.enums.hotel_date_selection_type_pb2', + HotelDateSelectionTypeInfo='google.ads.google_ads.v4.proto.common.criteria_pb2', + HotelGroupView='google.ads.google_ads.v4.proto.resources.hotel_group_view_pb2', + HotelIdInfo='google.ads.google_ads.v4.proto.common.criteria_pb2', + HotelLengthOfStayInfo='google.ads.google_ads.v4.proto.common.criteria_pb2', + HotelPerformanceView='google.ads.google_ads.v4.proto.resources.hotel_performance_view_pb2', + HotelPlaceholderFieldEnum='google.ads.google_ads.v4.proto.enums.hotel_placeholder_field_pb2', + HotelPriceBucketEnum='google.ads.google_ads.v4.proto.enums.hotel_price_bucket_pb2', + HotelRateTypeEnum='google.ads.google_ads.v4.proto.enums.hotel_rate_type_pb2', + HotelStateInfo='google.ads.google_ads.v4.proto.common.criteria_pb2', + IdErrorEnum='google.ads.google_ads.v4.proto.errors.id_error_pb2', + ImageAdInfo='google.ads.google_ads.v4.proto.common.ad_type_infos_pb2', + ImageAsset='google.ads.google_ads.v4.proto.common.asset_types_pb2', + ImageDimension='google.ads.google_ads.v4.proto.common.asset_types_pb2', + ImageErrorEnum='google.ads.google_ads.v4.proto.errors.image_error_pb2', + IncomeRangeInfo='google.ads.google_ads.v4.proto.common.criteria_pb2', + IncomeRangeTypeEnum='google.ads.google_ads.v4.proto.enums.income_range_type_pb2', + IncomeRangeView='google.ads.google_ads.v4.proto.resources.income_range_view_pb2', + InteractionEventTypeEnum='google.ads.google_ads.v4.proto.enums.interaction_event_type_pb2', + InteractionTypeEnum='google.ads.google_ads.v4.proto.enums.interaction_type_pb2', + InteractionTypeInfo='google.ads.google_ads.v4.proto.common.criteria_pb2', + InternalErrorEnum='google.ads.google_ads.v4.proto.errors.internal_error_pb2', + Invoice='google.ads.google_ads.v4.proto.resources.invoice_pb2', + InvoiceErrorEnum='google.ads.google_ads.v4.proto.errors.invoice_error_pb2', + InvoiceTypeEnum='google.ads.google_ads.v4.proto.enums.invoice_type_pb2', + IpBlockInfo='google.ads.google_ads.v4.proto.common.criteria_pb2', + JobPlaceholderFieldEnum='google.ads.google_ads.v4.proto.enums.job_placeholder_field_pb2', + Keyword='google.ads.google_ads.v4.proto.common.segments_pb2', + KeywordAndUrlSeed='google.ads.google_ads.v4.proto.services.keyword_plan_idea_service_pb2', + KeywordInfo='google.ads.google_ads.v4.proto.common.criteria_pb2', + KeywordMatchTypeEnum='google.ads.google_ads.v4.proto.enums.keyword_match_type_pb2', + KeywordPlan='google.ads.google_ads.v4.proto.resources.keyword_plan_pb2', + KeywordPlanAdGroup='google.ads.google_ads.v4.proto.resources.keyword_plan_ad_group_pb2', + KeywordPlanAdGroupErrorEnum='google.ads.google_ads.v4.proto.errors.keyword_plan_ad_group_error_pb2', + KeywordPlanAdGroupForecast='google.ads.google_ads.v4.proto.services.keyword_plan_service_pb2', + KeywordPlanAdGroupKeyword='google.ads.google_ads.v4.proto.resources.keyword_plan_ad_group_keyword_pb2', + KeywordPlanAdGroupKeywordErrorEnum='google.ads.google_ads.v4.proto.errors.keyword_plan_ad_group_keyword_error_pb2', + KeywordPlanAdGroupKeywordOperation='google.ads.google_ads.v4.proto.services.keyword_plan_ad_group_keyword_service_pb2', + KeywordPlanAdGroupOperation='google.ads.google_ads.v4.proto.services.keyword_plan_ad_group_service_pb2', + KeywordPlanCampaign='google.ads.google_ads.v4.proto.resources.keyword_plan_campaign_pb2', + KeywordPlanCampaignErrorEnum='google.ads.google_ads.v4.proto.errors.keyword_plan_campaign_error_pb2', + KeywordPlanCampaignForecast='google.ads.google_ads.v4.proto.services.keyword_plan_service_pb2', + KeywordPlanCampaignForecastCurve='google.ads.google_ads.v4.proto.services.keyword_plan_service_pb2', + KeywordPlanCampaignKeyword='google.ads.google_ads.v4.proto.resources.keyword_plan_campaign_keyword_pb2', + KeywordPlanCampaignKeywordErrorEnum='google.ads.google_ads.v4.proto.errors.keyword_plan_campaign_keyword_error_pb2', + KeywordPlanCampaignKeywordOperation='google.ads.google_ads.v4.proto.services.keyword_plan_campaign_keyword_service_pb2', + KeywordPlanCampaignOperation='google.ads.google_ads.v4.proto.services.keyword_plan_campaign_service_pb2', + KeywordPlanCompetitionLevelEnum='google.ads.google_ads.v4.proto.enums.keyword_plan_competition_level_pb2', + KeywordPlanErrorEnum='google.ads.google_ads.v4.proto.errors.keyword_plan_error_pb2', + KeywordPlanForecastIntervalEnum='google.ads.google_ads.v4.proto.enums.keyword_plan_forecast_interval_pb2', + KeywordPlanForecastPeriod='google.ads.google_ads.v4.proto.resources.keyword_plan_pb2', + KeywordPlanGeoTarget='google.ads.google_ads.v4.proto.resources.keyword_plan_campaign_pb2', + KeywordPlanHistoricalMetrics='google.ads.google_ads.v4.proto.common.keyword_plan_common_pb2', + KeywordPlanIdeaErrorEnum='google.ads.google_ads.v4.proto.errors.keyword_plan_idea_error_pb2', + KeywordPlanKeywordForecast='google.ads.google_ads.v4.proto.services.keyword_plan_service_pb2', + KeywordPlanKeywordHistoricalMetrics='google.ads.google_ads.v4.proto.services.keyword_plan_service_pb2', + KeywordPlanMaxCpcBidForecast='google.ads.google_ads.v4.proto.services.keyword_plan_service_pb2', + KeywordPlanMaxCpcBidForecastCurve='google.ads.google_ads.v4.proto.services.keyword_plan_service_pb2', + KeywordPlanNetworkEnum='google.ads.google_ads.v4.proto.enums.keyword_plan_network_pb2', + KeywordPlanOperation='google.ads.google_ads.v4.proto.services.keyword_plan_service_pb2', + KeywordSeed='google.ads.google_ads.v4.proto.services.keyword_plan_idea_service_pb2', + KeywordView='google.ads.google_ads.v4.proto.resources.keyword_view_pb2', + Label='google.ads.google_ads.v4.proto.resources.label_pb2', + LabelErrorEnum='google.ads.google_ads.v4.proto.errors.label_error_pb2', + LabelOperation='google.ads.google_ads.v4.proto.services.label_service_pb2', + LabelStatusEnum='google.ads.google_ads.v4.proto.enums.label_status_pb2', + LandingPageView='google.ads.google_ads.v4.proto.resources.landing_page_view_pb2', + LanguageCodeErrorEnum='google.ads.google_ads.v4.proto.errors.language_code_error_pb2', + LanguageConstant='google.ads.google_ads.v4.proto.resources.language_constant_pb2', + LanguageInfo='google.ads.google_ads.v4.proto.common.criteria_pb2', + LegacyAppInstallAdAppStoreEnum='google.ads.google_ads.v4.proto.enums.legacy_app_install_ad_app_store_pb2', + LegacyAppInstallAdInfo='google.ads.google_ads.v4.proto.common.ad_type_infos_pb2', + LegacyResponsiveDisplayAdInfo='google.ads.google_ads.v4.proto.common.ad_type_infos_pb2', + LinkedAccountTypeEnum='google.ads.google_ads.v4.proto.enums.linked_account_type_pb2', + ListAccessibleCustomersRequest='google.ads.google_ads.v4.proto.services.customer_service_pb2', + ListAccessibleCustomersResponse='google.ads.google_ads.v4.proto.services.customer_service_pb2', + ListBatchJobResultsRequest='google.ads.google_ads.v4.proto.services.batch_job_service_pb2', + ListBatchJobResultsResponse='google.ads.google_ads.v4.proto.services.batch_job_service_pb2', + ListCampaignDraftAsyncErrorsRequest='google.ads.google_ads.v4.proto.services.campaign_draft_service_pb2', + ListCampaignDraftAsyncErrorsResponse='google.ads.google_ads.v4.proto.services.campaign_draft_service_pb2', + ListCampaignExperimentAsyncErrorsRequest='google.ads.google_ads.v4.proto.services.campaign_experiment_service_pb2', + ListCampaignExperimentAsyncErrorsResponse='google.ads.google_ads.v4.proto.services.campaign_experiment_service_pb2', + ListInvoicesRequest='google.ads.google_ads.v4.proto.services.invoice_service_pb2', + ListInvoicesResponse='google.ads.google_ads.v4.proto.services.invoice_service_pb2', + ListMerchantCenterLinksRequest='google.ads.google_ads.v4.proto.services.merchant_center_link_service_pb2', + ListMerchantCenterLinksResponse='google.ads.google_ads.v4.proto.services.merchant_center_link_service_pb2', + ListOperationErrorEnum='google.ads.google_ads.v4.proto.errors.list_operation_error_pb2', + ListPaymentsAccountsRequest='google.ads.google_ads.v4.proto.services.payments_account_service_pb2', + ListPaymentsAccountsResponse='google.ads.google_ads.v4.proto.services.payments_account_service_pb2', + ListPlannableLocationsRequest='google.ads.google_ads.v4.proto.services.reach_plan_service_pb2', + ListPlannableLocationsResponse='google.ads.google_ads.v4.proto.services.reach_plan_service_pb2', + ListPlannableProductsRequest='google.ads.google_ads.v4.proto.services.reach_plan_service_pb2', + ListPlannableProductsResponse='google.ads.google_ads.v4.proto.services.reach_plan_service_pb2', + ListingDimensionInfo='google.ads.google_ads.v4.proto.common.criteria_pb2', + ListingGroupInfo='google.ads.google_ads.v4.proto.common.criteria_pb2', + ListingGroupTypeEnum='google.ads.google_ads.v4.proto.enums.listing_group_type_pb2', + ListingScopeInfo='google.ads.google_ads.v4.proto.common.criteria_pb2', + LocalAdInfo='google.ads.google_ads.v4.proto.common.ad_type_infos_pb2', + LocalPlaceholderFieldEnum='google.ads.google_ads.v4.proto.enums.local_placeholder_field_pb2', + LocationExtensionTargetingCriterionFieldEnum='google.ads.google_ads.v4.proto.enums.location_extension_targeting_criterion_field_pb2', + LocationFeedItem='google.ads.google_ads.v4.proto.common.extensions_pb2', + LocationGroupInfo='google.ads.google_ads.v4.proto.common.criteria_pb2', + LocationGroupRadiusUnitsEnum='google.ads.google_ads.v4.proto.enums.location_group_radius_units_pb2', + LocationInfo='google.ads.google_ads.v4.proto.common.criteria_pb2', + LocationPlaceholderFieldEnum='google.ads.google_ads.v4.proto.enums.location_placeholder_field_pb2', + LocationSourceTypeEnum='google.ads.google_ads.v4.proto.enums.location_source_type_pb2', + LocationView='google.ads.google_ads.v4.proto.resources.location_view_pb2', + LogicalUserListInfo='google.ads.google_ads.v4.proto.common.user_lists_pb2', + LogicalUserListOperandInfo='google.ads.google_ads.v4.proto.common.user_lists_pb2', + ManagedPlacementView='google.ads.google_ads.v4.proto.resources.managed_placement_view_pb2', + ManagerLinkErrorEnum='google.ads.google_ads.v4.proto.errors.manager_link_error_pb2', + ManagerLinkStatusEnum='google.ads.google_ads.v4.proto.enums.manager_link_status_pb2', + ManualCpc='google.ads.google_ads.v4.proto.common.bidding_pb2', + ManualCpm='google.ads.google_ads.v4.proto.common.bidding_pb2', + ManualCpv='google.ads.google_ads.v4.proto.common.bidding_pb2', + MatchingFunction='google.ads.google_ads.v4.proto.common.matching_function_pb2', + MatchingFunctionContextTypeEnum='google.ads.google_ads.v4.proto.enums.matching_function_context_type_pb2', + MatchingFunctionOperatorEnum='google.ads.google_ads.v4.proto.enums.matching_function_operator_pb2', + MaximizeConversionValue='google.ads.google_ads.v4.proto.common.bidding_pb2', + MaximizeConversions='google.ads.google_ads.v4.proto.common.bidding_pb2', + MediaAudio='google.ads.google_ads.v4.proto.resources.media_file_pb2', + MediaBundle='google.ads.google_ads.v4.proto.resources.media_file_pb2', + MediaBundleAsset='google.ads.google_ads.v4.proto.common.asset_types_pb2', + MediaBundleErrorEnum='google.ads.google_ads.v4.proto.errors.media_bundle_error_pb2', + MediaFile='google.ads.google_ads.v4.proto.resources.media_file_pb2', + MediaFileErrorEnum='google.ads.google_ads.v4.proto.errors.media_file_error_pb2', + MediaFileOperation='google.ads.google_ads.v4.proto.services.media_file_service_pb2', + MediaImage='google.ads.google_ads.v4.proto.resources.media_file_pb2', + MediaTypeEnum='google.ads.google_ads.v4.proto.enums.media_type_pb2', + MediaUploadErrorEnum='google.ads.google_ads.v4.proto.errors.media_upload_error_pb2', + MediaVideo='google.ads.google_ads.v4.proto.resources.media_file_pb2', + MerchantCenterLink='google.ads.google_ads.v4.proto.resources.merchant_center_link_pb2', + MerchantCenterLinkOperation='google.ads.google_ads.v4.proto.services.merchant_center_link_service_pb2', + MerchantCenterLinkStatusEnum='google.ads.google_ads.v4.proto.enums.merchant_center_link_status_pb2', + MessagePlaceholderFieldEnum='google.ads.google_ads.v4.proto.enums.message_placeholder_field_pb2', + Metrics='google.ads.google_ads.v4.proto.common.metrics_pb2', + MimeTypeEnum='google.ads.google_ads.v4.proto.enums.mime_type_pb2', + MinuteOfHourEnum='google.ads.google_ads.v4.proto.enums.minute_of_hour_pb2', + MobileAppCategoryConstant='google.ads.google_ads.v4.proto.resources.mobile_app_category_constant_pb2', + MobileAppCategoryInfo='google.ads.google_ads.v4.proto.common.criteria_pb2', + MobileAppVendorEnum='google.ads.google_ads.v4.proto.enums.mobile_app_vendor_pb2', + MobileApplicationInfo='google.ads.google_ads.v4.proto.common.criteria_pb2', + MobileDeviceConstant='google.ads.google_ads.v4.proto.resources.mobile_device_constant_pb2', + MobileDeviceInfo='google.ads.google_ads.v4.proto.common.criteria_pb2', + MobileDeviceTypeEnum='google.ads.google_ads.v4.proto.enums.mobile_device_type_pb2', + Money='google.ads.google_ads.v4.proto.common.feed_common_pb2', + MonthOfYearEnum='google.ads.google_ads.v4.proto.enums.month_of_year_pb2', + MonthlySearchVolume='google.ads.google_ads.v4.proto.common.keyword_plan_common_pb2', + MoveManagerLinkRequest='google.ads.google_ads.v4.proto.services.customer_manager_link_service_pb2', + MoveManagerLinkResponse='google.ads.google_ads.v4.proto.services.customer_manager_link_service_pb2', + MultiplierErrorEnum='google.ads.google_ads.v4.proto.errors.multiplier_error_pb2', + MutateAccountBudgetProposalRequest='google.ads.google_ads.v4.proto.services.account_budget_proposal_service_pb2', + MutateAccountBudgetProposalResponse='google.ads.google_ads.v4.proto.services.account_budget_proposal_service_pb2', + MutateAccountBudgetProposalResult='google.ads.google_ads.v4.proto.services.account_budget_proposal_service_pb2', + MutateAccountLinkRequest='google.ads.google_ads.v4.proto.services.account_link_service_pb2', + MutateAccountLinkResponse='google.ads.google_ads.v4.proto.services.account_link_service_pb2', + MutateAccountLinkResult='google.ads.google_ads.v4.proto.services.account_link_service_pb2', + MutateAdGroupAdLabelResult='google.ads.google_ads.v4.proto.services.ad_group_ad_label_service_pb2', + MutateAdGroupAdLabelsRequest='google.ads.google_ads.v4.proto.services.ad_group_ad_label_service_pb2', + MutateAdGroupAdLabelsResponse='google.ads.google_ads.v4.proto.services.ad_group_ad_label_service_pb2', + MutateAdGroupAdResult='google.ads.google_ads.v4.proto.services.ad_group_ad_service_pb2', + MutateAdGroupAdsRequest='google.ads.google_ads.v4.proto.services.ad_group_ad_service_pb2', + MutateAdGroupAdsResponse='google.ads.google_ads.v4.proto.services.ad_group_ad_service_pb2', + MutateAdGroupBidModifierResult='google.ads.google_ads.v4.proto.services.ad_group_bid_modifier_service_pb2', + MutateAdGroupBidModifiersRequest='google.ads.google_ads.v4.proto.services.ad_group_bid_modifier_service_pb2', + MutateAdGroupBidModifiersResponse='google.ads.google_ads.v4.proto.services.ad_group_bid_modifier_service_pb2', + MutateAdGroupCriteriaRequest='google.ads.google_ads.v4.proto.services.ad_group_criterion_service_pb2', + MutateAdGroupCriteriaResponse='google.ads.google_ads.v4.proto.services.ad_group_criterion_service_pb2', + MutateAdGroupCriterionLabelResult='google.ads.google_ads.v4.proto.services.ad_group_criterion_label_service_pb2', + MutateAdGroupCriterionLabelsRequest='google.ads.google_ads.v4.proto.services.ad_group_criterion_label_service_pb2', + MutateAdGroupCriterionLabelsResponse='google.ads.google_ads.v4.proto.services.ad_group_criterion_label_service_pb2', + MutateAdGroupCriterionResult='google.ads.google_ads.v4.proto.services.ad_group_criterion_service_pb2', + MutateAdGroupExtensionSettingResult='google.ads.google_ads.v4.proto.services.ad_group_extension_setting_service_pb2', + MutateAdGroupExtensionSettingsRequest='google.ads.google_ads.v4.proto.services.ad_group_extension_setting_service_pb2', + MutateAdGroupExtensionSettingsResponse='google.ads.google_ads.v4.proto.services.ad_group_extension_setting_service_pb2', + MutateAdGroupFeedResult='google.ads.google_ads.v4.proto.services.ad_group_feed_service_pb2', + MutateAdGroupFeedsRequest='google.ads.google_ads.v4.proto.services.ad_group_feed_service_pb2', + MutateAdGroupFeedsResponse='google.ads.google_ads.v4.proto.services.ad_group_feed_service_pb2', + MutateAdGroupLabelResult='google.ads.google_ads.v4.proto.services.ad_group_label_service_pb2', + MutateAdGroupLabelsRequest='google.ads.google_ads.v4.proto.services.ad_group_label_service_pb2', + MutateAdGroupLabelsResponse='google.ads.google_ads.v4.proto.services.ad_group_label_service_pb2', + MutateAdGroupResult='google.ads.google_ads.v4.proto.services.ad_group_service_pb2', + MutateAdGroupsRequest='google.ads.google_ads.v4.proto.services.ad_group_service_pb2', + MutateAdGroupsResponse='google.ads.google_ads.v4.proto.services.ad_group_service_pb2', + MutateAdParameterResult='google.ads.google_ads.v4.proto.services.ad_parameter_service_pb2', + MutateAdParametersRequest='google.ads.google_ads.v4.proto.services.ad_parameter_service_pb2', + MutateAdParametersResponse='google.ads.google_ads.v4.proto.services.ad_parameter_service_pb2', + MutateAdResult='google.ads.google_ads.v4.proto.services.ad_service_pb2', + MutateAdsRequest='google.ads.google_ads.v4.proto.services.ad_service_pb2', + MutateAdsResponse='google.ads.google_ads.v4.proto.services.ad_service_pb2', + MutateAssetResult='google.ads.google_ads.v4.proto.services.asset_service_pb2', + MutateAssetsRequest='google.ads.google_ads.v4.proto.services.asset_service_pb2', + MutateAssetsResponse='google.ads.google_ads.v4.proto.services.asset_service_pb2', + MutateBatchJobRequest='google.ads.google_ads.v4.proto.services.batch_job_service_pb2', + MutateBatchJobResponse='google.ads.google_ads.v4.proto.services.batch_job_service_pb2', + MutateBatchJobResult='google.ads.google_ads.v4.proto.services.batch_job_service_pb2', + MutateBiddingStrategiesRequest='google.ads.google_ads.v4.proto.services.bidding_strategy_service_pb2', + MutateBiddingStrategiesResponse='google.ads.google_ads.v4.proto.services.bidding_strategy_service_pb2', + MutateBiddingStrategyResult='google.ads.google_ads.v4.proto.services.bidding_strategy_service_pb2', + MutateBillingSetupRequest='google.ads.google_ads.v4.proto.services.billing_setup_service_pb2', + MutateBillingSetupResponse='google.ads.google_ads.v4.proto.services.billing_setup_service_pb2', + MutateBillingSetupResult='google.ads.google_ads.v4.proto.services.billing_setup_service_pb2', + MutateCampaignBidModifierResult='google.ads.google_ads.v4.proto.services.campaign_bid_modifier_service_pb2', + MutateCampaignBidModifiersRequest='google.ads.google_ads.v4.proto.services.campaign_bid_modifier_service_pb2', + MutateCampaignBidModifiersResponse='google.ads.google_ads.v4.proto.services.campaign_bid_modifier_service_pb2', + MutateCampaignBudgetResult='google.ads.google_ads.v4.proto.services.campaign_budget_service_pb2', + MutateCampaignBudgetsRequest='google.ads.google_ads.v4.proto.services.campaign_budget_service_pb2', + MutateCampaignBudgetsResponse='google.ads.google_ads.v4.proto.services.campaign_budget_service_pb2', + MutateCampaignCriteriaRequest='google.ads.google_ads.v4.proto.services.campaign_criterion_service_pb2', + MutateCampaignCriteriaResponse='google.ads.google_ads.v4.proto.services.campaign_criterion_service_pb2', + MutateCampaignCriterionResult='google.ads.google_ads.v4.proto.services.campaign_criterion_service_pb2', + MutateCampaignDraftResult='google.ads.google_ads.v4.proto.services.campaign_draft_service_pb2', + MutateCampaignDraftsRequest='google.ads.google_ads.v4.proto.services.campaign_draft_service_pb2', + MutateCampaignDraftsResponse='google.ads.google_ads.v4.proto.services.campaign_draft_service_pb2', + MutateCampaignExperimentResult='google.ads.google_ads.v4.proto.services.campaign_experiment_service_pb2', + MutateCampaignExperimentsRequest='google.ads.google_ads.v4.proto.services.campaign_experiment_service_pb2', + MutateCampaignExperimentsResponse='google.ads.google_ads.v4.proto.services.campaign_experiment_service_pb2', + MutateCampaignExtensionSettingResult='google.ads.google_ads.v4.proto.services.campaign_extension_setting_service_pb2', + MutateCampaignExtensionSettingsRequest='google.ads.google_ads.v4.proto.services.campaign_extension_setting_service_pb2', + MutateCampaignExtensionSettingsResponse='google.ads.google_ads.v4.proto.services.campaign_extension_setting_service_pb2', + MutateCampaignFeedResult='google.ads.google_ads.v4.proto.services.campaign_feed_service_pb2', + MutateCampaignFeedsRequest='google.ads.google_ads.v4.proto.services.campaign_feed_service_pb2', + MutateCampaignFeedsResponse='google.ads.google_ads.v4.proto.services.campaign_feed_service_pb2', + MutateCampaignLabelResult='google.ads.google_ads.v4.proto.services.campaign_label_service_pb2', + MutateCampaignLabelsRequest='google.ads.google_ads.v4.proto.services.campaign_label_service_pb2', + MutateCampaignLabelsResponse='google.ads.google_ads.v4.proto.services.campaign_label_service_pb2', + MutateCampaignResult='google.ads.google_ads.v4.proto.services.campaign_service_pb2', + MutateCampaignSharedSetResult='google.ads.google_ads.v4.proto.services.campaign_shared_set_service_pb2', + MutateCampaignSharedSetsRequest='google.ads.google_ads.v4.proto.services.campaign_shared_set_service_pb2', + MutateCampaignSharedSetsResponse='google.ads.google_ads.v4.proto.services.campaign_shared_set_service_pb2', + MutateCampaignsRequest='google.ads.google_ads.v4.proto.services.campaign_service_pb2', + MutateCampaignsResponse='google.ads.google_ads.v4.proto.services.campaign_service_pb2', + MutateConversionActionResult='google.ads.google_ads.v4.proto.services.conversion_action_service_pb2', + MutateConversionActionsRequest='google.ads.google_ads.v4.proto.services.conversion_action_service_pb2', + MutateConversionActionsResponse='google.ads.google_ads.v4.proto.services.conversion_action_service_pb2', + MutateCustomInterestResult='google.ads.google_ads.v4.proto.services.custom_interest_service_pb2', + MutateCustomInterestsRequest='google.ads.google_ads.v4.proto.services.custom_interest_service_pb2', + MutateCustomInterestsResponse='google.ads.google_ads.v4.proto.services.custom_interest_service_pb2', + MutateCustomerClientLinkRequest='google.ads.google_ads.v4.proto.services.customer_client_link_service_pb2', + MutateCustomerClientLinkResponse='google.ads.google_ads.v4.proto.services.customer_client_link_service_pb2', + MutateCustomerClientLinkResult='google.ads.google_ads.v4.proto.services.customer_client_link_service_pb2', + MutateCustomerExtensionSettingResult='google.ads.google_ads.v4.proto.services.customer_extension_setting_service_pb2', + MutateCustomerExtensionSettingsRequest='google.ads.google_ads.v4.proto.services.customer_extension_setting_service_pb2', + MutateCustomerExtensionSettingsResponse='google.ads.google_ads.v4.proto.services.customer_extension_setting_service_pb2', + MutateCustomerFeedResult='google.ads.google_ads.v4.proto.services.customer_feed_service_pb2', + MutateCustomerFeedsRequest='google.ads.google_ads.v4.proto.services.customer_feed_service_pb2', + MutateCustomerFeedsResponse='google.ads.google_ads.v4.proto.services.customer_feed_service_pb2', + MutateCustomerLabelResult='google.ads.google_ads.v4.proto.services.customer_label_service_pb2', + MutateCustomerLabelsRequest='google.ads.google_ads.v4.proto.services.customer_label_service_pb2', + MutateCustomerLabelsResponse='google.ads.google_ads.v4.proto.services.customer_label_service_pb2', + MutateCustomerManagerLinkRequest='google.ads.google_ads.v4.proto.services.customer_manager_link_service_pb2', + MutateCustomerManagerLinkResponse='google.ads.google_ads.v4.proto.services.customer_manager_link_service_pb2', + MutateCustomerManagerLinkResult='google.ads.google_ads.v4.proto.services.customer_manager_link_service_pb2', + MutateCustomerNegativeCriteriaRequest='google.ads.google_ads.v4.proto.services.customer_negative_criterion_service_pb2', + MutateCustomerNegativeCriteriaResponse='google.ads.google_ads.v4.proto.services.customer_negative_criterion_service_pb2', + MutateCustomerNegativeCriteriaResult='google.ads.google_ads.v4.proto.services.customer_negative_criterion_service_pb2', + MutateCustomerRequest='google.ads.google_ads.v4.proto.services.customer_service_pb2', + MutateCustomerResponse='google.ads.google_ads.v4.proto.services.customer_service_pb2', + MutateCustomerResult='google.ads.google_ads.v4.proto.services.customer_service_pb2', + MutateErrorEnum='google.ads.google_ads.v4.proto.errors.mutate_error_pb2', + MutateExtensionFeedItemResult='google.ads.google_ads.v4.proto.services.extension_feed_item_service_pb2', + MutateExtensionFeedItemsRequest='google.ads.google_ads.v4.proto.services.extension_feed_item_service_pb2', + MutateExtensionFeedItemsResponse='google.ads.google_ads.v4.proto.services.extension_feed_item_service_pb2', + MutateFeedItemResult='google.ads.google_ads.v4.proto.services.feed_item_service_pb2', + MutateFeedItemTargetResult='google.ads.google_ads.v4.proto.services.feed_item_target_service_pb2', + MutateFeedItemTargetsRequest='google.ads.google_ads.v4.proto.services.feed_item_target_service_pb2', + MutateFeedItemTargetsResponse='google.ads.google_ads.v4.proto.services.feed_item_target_service_pb2', + MutateFeedItemsRequest='google.ads.google_ads.v4.proto.services.feed_item_service_pb2', + MutateFeedItemsResponse='google.ads.google_ads.v4.proto.services.feed_item_service_pb2', + MutateFeedMappingResult='google.ads.google_ads.v4.proto.services.feed_mapping_service_pb2', + MutateFeedMappingsRequest='google.ads.google_ads.v4.proto.services.feed_mapping_service_pb2', + MutateFeedMappingsResponse='google.ads.google_ads.v4.proto.services.feed_mapping_service_pb2', + MutateFeedResult='google.ads.google_ads.v4.proto.services.feed_service_pb2', + MutateFeedsRequest='google.ads.google_ads.v4.proto.services.feed_service_pb2', + MutateFeedsResponse='google.ads.google_ads.v4.proto.services.feed_service_pb2', + MutateGoogleAdsRequest='google.ads.google_ads.v4.proto.services.google_ads_service_pb2', + MutateGoogleAdsResponse='google.ads.google_ads.v4.proto.services.google_ads_service_pb2', + MutateKeywordPlanAdGroupKeywordResult='google.ads.google_ads.v4.proto.services.keyword_plan_ad_group_keyword_service_pb2', + MutateKeywordPlanAdGroupKeywordsRequest='google.ads.google_ads.v4.proto.services.keyword_plan_ad_group_keyword_service_pb2', + MutateKeywordPlanAdGroupKeywordsResponse='google.ads.google_ads.v4.proto.services.keyword_plan_ad_group_keyword_service_pb2', + MutateKeywordPlanAdGroupResult='google.ads.google_ads.v4.proto.services.keyword_plan_ad_group_service_pb2', + MutateKeywordPlanAdGroupsRequest='google.ads.google_ads.v4.proto.services.keyword_plan_ad_group_service_pb2', + MutateKeywordPlanAdGroupsResponse='google.ads.google_ads.v4.proto.services.keyword_plan_ad_group_service_pb2', + MutateKeywordPlanCampaignKeywordResult='google.ads.google_ads.v4.proto.services.keyword_plan_campaign_keyword_service_pb2', + MutateKeywordPlanCampaignKeywordsRequest='google.ads.google_ads.v4.proto.services.keyword_plan_campaign_keyword_service_pb2', + MutateKeywordPlanCampaignKeywordsResponse='google.ads.google_ads.v4.proto.services.keyword_plan_campaign_keyword_service_pb2', + MutateKeywordPlanCampaignResult='google.ads.google_ads.v4.proto.services.keyword_plan_campaign_service_pb2', + MutateKeywordPlanCampaignsRequest='google.ads.google_ads.v4.proto.services.keyword_plan_campaign_service_pb2', + MutateKeywordPlanCampaignsResponse='google.ads.google_ads.v4.proto.services.keyword_plan_campaign_service_pb2', + MutateKeywordPlansRequest='google.ads.google_ads.v4.proto.services.keyword_plan_service_pb2', + MutateKeywordPlansResponse='google.ads.google_ads.v4.proto.services.keyword_plan_service_pb2', + MutateKeywordPlansResult='google.ads.google_ads.v4.proto.services.keyword_plan_service_pb2', + MutateLabelResult='google.ads.google_ads.v4.proto.services.label_service_pb2', + MutateLabelsRequest='google.ads.google_ads.v4.proto.services.label_service_pb2', + MutateLabelsResponse='google.ads.google_ads.v4.proto.services.label_service_pb2', + MutateMediaFileResult='google.ads.google_ads.v4.proto.services.media_file_service_pb2', + MutateMediaFilesRequest='google.ads.google_ads.v4.proto.services.media_file_service_pb2', + MutateMediaFilesResponse='google.ads.google_ads.v4.proto.services.media_file_service_pb2', + MutateMerchantCenterLinkRequest='google.ads.google_ads.v4.proto.services.merchant_center_link_service_pb2', + MutateMerchantCenterLinkResponse='google.ads.google_ads.v4.proto.services.merchant_center_link_service_pb2', + MutateMerchantCenterLinkResult='google.ads.google_ads.v4.proto.services.merchant_center_link_service_pb2', + MutateOperation='google.ads.google_ads.v4.proto.services.google_ads_service_pb2', + MutateOperationResponse='google.ads.google_ads.v4.proto.services.google_ads_service_pb2', + MutateRemarketingActionResult='google.ads.google_ads.v4.proto.services.remarketing_action_service_pb2', + MutateRemarketingActionsRequest='google.ads.google_ads.v4.proto.services.remarketing_action_service_pb2', + MutateRemarketingActionsResponse='google.ads.google_ads.v4.proto.services.remarketing_action_service_pb2', + MutateSharedCriteriaRequest='google.ads.google_ads.v4.proto.services.shared_criterion_service_pb2', + MutateSharedCriteriaResponse='google.ads.google_ads.v4.proto.services.shared_criterion_service_pb2', + MutateSharedCriterionResult='google.ads.google_ads.v4.proto.services.shared_criterion_service_pb2', + MutateSharedSetResult='google.ads.google_ads.v4.proto.services.shared_set_service_pb2', + MutateSharedSetsRequest='google.ads.google_ads.v4.proto.services.shared_set_service_pb2', + MutateSharedSetsResponse='google.ads.google_ads.v4.proto.services.shared_set_service_pb2', + MutateUserListResult='google.ads.google_ads.v4.proto.services.user_list_service_pb2', + MutateUserListsRequest='google.ads.google_ads.v4.proto.services.user_list_service_pb2', + MutateUserListsResponse='google.ads.google_ads.v4.proto.services.user_list_service_pb2', + NegativeGeoTargetTypeEnum='google.ads.google_ads.v4.proto.enums.negative_geo_target_type_pb2', + NewResourceCreationErrorEnum='google.ads.google_ads.v4.proto.errors.new_resource_creation_error_pb2', + NotEmptyErrorEnum='google.ads.google_ads.v4.proto.errors.not_empty_error_pb2', + NotWhitelistedErrorEnum='google.ads.google_ads.v4.proto.errors.not_whitelisted_error_pb2', + NullErrorEnum='google.ads.google_ads.v4.proto.errors.null_error_pb2', + OfflineUserAddressInfo='google.ads.google_ads.v4.proto.common.offline_user_data_pb2', + OfflineUserDataJob='google.ads.google_ads.v4.proto.resources.offline_user_data_job_pb2', + OfflineUserDataJobErrorEnum='google.ads.google_ads.v4.proto.errors.offline_user_data_job_error_pb2', + OfflineUserDataJobFailureReasonEnum='google.ads.google_ads.v4.proto.enums.offline_user_data_job_failure_reason_pb2', + OfflineUserDataJobOperation='google.ads.google_ads.v4.proto.services.offline_user_data_job_service_pb2', + OfflineUserDataJobStatusEnum='google.ads.google_ads.v4.proto.enums.offline_user_data_job_status_pb2', + OfflineUserDataJobTypeEnum='google.ads.google_ads.v4.proto.enums.offline_user_data_job_type_pb2', + OnTargetAudienceMetrics='google.ads.google_ads.v4.proto.services.reach_plan_service_pb2', + Operand='google.ads.google_ads.v4.proto.common.matching_function_pb2', + OperatingSystemVersionConstant='google.ads.google_ads.v4.proto.resources.operating_system_version_constant_pb2', + OperatingSystemVersionInfo='google.ads.google_ads.v4.proto.common.criteria_pb2', + OperatingSystemVersionOperatorTypeEnum='google.ads.google_ads.v4.proto.enums.operating_system_version_operator_type_pb2', + OperationAccessDeniedErrorEnum='google.ads.google_ads.v4.proto.errors.operation_access_denied_error_pb2', + OperatorErrorEnum='google.ads.google_ads.v4.proto.errors.operator_error_pb2', + OptimizationGoalTypeEnum='google.ads.google_ads.v4.proto.enums.optimization_goal_type_pb2', + PaidOrganicSearchTermView='google.ads.google_ads.v4.proto.resources.paid_organic_search_term_view_pb2', + ParentalStatusInfo='google.ads.google_ads.v4.proto.common.criteria_pb2', + ParentalStatusTypeEnum='google.ads.google_ads.v4.proto.enums.parental_status_type_pb2', + ParentalStatusView='google.ads.google_ads.v4.proto.resources.parental_status_view_pb2', + PartialFailureErrorEnum='google.ads.google_ads.v4.proto.errors.partial_failure_error_pb2', + PaymentModeEnum='google.ads.google_ads.v4.proto.enums.payment_mode_pb2', + PaymentsAccount='google.ads.google_ads.v4.proto.resources.payments_account_pb2', + PaymentsAccountErrorEnum='google.ads.google_ads.v4.proto.errors.payments_account_error_pb2', + PercentCpc='google.ads.google_ads.v4.proto.common.bidding_pb2', + PlaceholderTypeEnum='google.ads.google_ads.v4.proto.enums.placeholder_type_pb2', + PlacementInfo='google.ads.google_ads.v4.proto.common.criteria_pb2', + PlacementTypeEnum='google.ads.google_ads.v4.proto.enums.placement_type_pb2', + PlannableLocation='google.ads.google_ads.v4.proto.services.reach_plan_service_pb2', + PlannableTargeting='google.ads.google_ads.v4.proto.services.reach_plan_service_pb2', + PlannedProduct='google.ads.google_ads.v4.proto.services.reach_plan_service_pb2', + PolicyApprovalStatusEnum='google.ads.google_ads.v4.proto.enums.policy_approval_status_pb2', + PolicyFindingDetails='google.ads.google_ads.v4.proto.errors.errors_pb2', + PolicyFindingErrorEnum='google.ads.google_ads.v4.proto.errors.policy_finding_error_pb2', + PolicyReviewStatusEnum='google.ads.google_ads.v4.proto.enums.policy_review_status_pb2', + PolicyTopicConstraint='google.ads.google_ads.v4.proto.common.policy_pb2', + PolicyTopicEntry='google.ads.google_ads.v4.proto.common.policy_pb2', + PolicyTopicEntryTypeEnum='google.ads.google_ads.v4.proto.enums.policy_topic_entry_type_pb2', + PolicyTopicEvidence='google.ads.google_ads.v4.proto.common.policy_pb2', + PolicyTopicEvidenceDestinationMismatchUrlTypeEnum='google.ads.google_ads.v4.proto.enums.policy_topic_evidence_destination_mismatch_url_type_pb2', + PolicyTopicEvidenceDestinationNotWorkingDeviceEnum='google.ads.google_ads.v4.proto.enums.policy_topic_evidence_destination_not_working_device_pb2', + PolicyTopicEvidenceDestinationNotWorkingDnsErrorTypeEnum='google.ads.google_ads.v4.proto.enums.policy_topic_evidence_destination_not_working_dns_error_type_pb2', + PolicyValidationParameter='google.ads.google_ads.v4.proto.common.policy_pb2', + PolicyValidationParameterErrorEnum='google.ads.google_ads.v4.proto.errors.policy_validation_parameter_error_pb2', + PolicyViolationDetails='google.ads.google_ads.v4.proto.errors.errors_pb2', + PolicyViolationErrorEnum='google.ads.google_ads.v4.proto.errors.policy_violation_error_pb2', + PolicyViolationKey='google.ads.google_ads.v4.proto.common.policy_pb2', + PositiveGeoTargetTypeEnum='google.ads.google_ads.v4.proto.enums.positive_geo_target_type_pb2', + Preferences='google.ads.google_ads.v4.proto.services.reach_plan_service_pb2', + PreferredContentInfo='google.ads.google_ads.v4.proto.common.criteria_pb2', + PreferredContentTypeEnum='google.ads.google_ads.v4.proto.enums.preferred_content_type_pb2', + PriceExtensionPriceQualifierEnum='google.ads.google_ads.v4.proto.enums.price_extension_price_qualifier_pb2', + PriceExtensionPriceUnitEnum='google.ads.google_ads.v4.proto.enums.price_extension_price_unit_pb2', + PriceExtensionTypeEnum='google.ads.google_ads.v4.proto.enums.price_extension_type_pb2', + PriceFeedItem='google.ads.google_ads.v4.proto.common.extensions_pb2', + PriceOffer='google.ads.google_ads.v4.proto.common.extensions_pb2', + PricePlaceholderFieldEnum='google.ads.google_ads.v4.proto.enums.price_placeholder_field_pb2', + ProductAllocation='google.ads.google_ads.v4.proto.services.reach_plan_service_pb2', + ProductBiddingCategoryConstant='google.ads.google_ads.v4.proto.resources.product_bidding_category_constant_pb2', + ProductBiddingCategoryInfo='google.ads.google_ads.v4.proto.common.criteria_pb2', + ProductBiddingCategoryLevelEnum='google.ads.google_ads.v4.proto.enums.product_bidding_category_level_pb2', + ProductBiddingCategoryStatusEnum='google.ads.google_ads.v4.proto.enums.product_bidding_category_status_pb2', + ProductBrandInfo='google.ads.google_ads.v4.proto.common.criteria_pb2', + ProductChannelEnum='google.ads.google_ads.v4.proto.enums.product_channel_pb2', + ProductChannelExclusivityEnum='google.ads.google_ads.v4.proto.enums.product_channel_exclusivity_pb2', + ProductChannelExclusivityInfo='google.ads.google_ads.v4.proto.common.criteria_pb2', + ProductChannelInfo='google.ads.google_ads.v4.proto.common.criteria_pb2', + ProductConditionEnum='google.ads.google_ads.v4.proto.enums.product_condition_pb2', + ProductConditionInfo='google.ads.google_ads.v4.proto.common.criteria_pb2', + ProductCustomAttributeIndexEnum='google.ads.google_ads.v4.proto.enums.product_custom_attribute_index_pb2', + ProductCustomAttributeInfo='google.ads.google_ads.v4.proto.common.criteria_pb2', + ProductGroupView='google.ads.google_ads.v4.proto.resources.product_group_view_pb2', + ProductImage='google.ads.google_ads.v4.proto.common.ad_type_infos_pb2', + ProductItemIdInfo='google.ads.google_ads.v4.proto.common.criteria_pb2', + ProductMetadata='google.ads.google_ads.v4.proto.services.reach_plan_service_pb2', + ProductTypeInfo='google.ads.google_ads.v4.proto.common.criteria_pb2', + ProductTypeLevelEnum='google.ads.google_ads.v4.proto.enums.product_type_level_pb2', + ProductVideo='google.ads.google_ads.v4.proto.common.ad_type_infos_pb2', + PromoteCampaignDraftRequest='google.ads.google_ads.v4.proto.services.campaign_draft_service_pb2', + PromoteCampaignExperimentRequest='google.ads.google_ads.v4.proto.services.campaign_experiment_service_pb2', + PromotionExtensionDiscountModifierEnum='google.ads.google_ads.v4.proto.enums.promotion_extension_discount_modifier_pb2', + PromotionExtensionOccasionEnum='google.ads.google_ads.v4.proto.enums.promotion_extension_occasion_pb2', + PromotionFeedItem='google.ads.google_ads.v4.proto.common.extensions_pb2', + PromotionPlaceholderFieldEnum='google.ads.google_ads.v4.proto.enums.promotion_placeholder_field_pb2', + ProximityInfo='google.ads.google_ads.v4.proto.common.criteria_pb2', + ProximityRadiusUnitsEnum='google.ads.google_ads.v4.proto.enums.proximity_radius_units_pb2', + QualityScoreBucketEnum='google.ads.google_ads.v4.proto.enums.quality_score_bucket_pb2', + QueryErrorEnum='google.ads.google_ads.v4.proto.errors.query_error_pb2', + QuotaErrorEnum='google.ads.google_ads.v4.proto.errors.quota_error_pb2', + RangeErrorEnum='google.ads.google_ads.v4.proto.errors.range_error_pb2', + ReachCurve='google.ads.google_ads.v4.proto.services.reach_plan_service_pb2', + ReachForecast='google.ads.google_ads.v4.proto.services.reach_plan_service_pb2', + ReachPlanAdLengthEnum='google.ads.google_ads.v4.proto.enums.reach_plan_ad_length_pb2', + ReachPlanAgeRangeEnum='google.ads.google_ads.v4.proto.enums.reach_plan_age_range_pb2', + ReachPlanErrorEnum='google.ads.google_ads.v4.proto.errors.reach_plan_error_pb2', + ReachPlanNetworkEnum='google.ads.google_ads.v4.proto.enums.reach_plan_network_pb2', + RealEstatePlaceholderFieldEnum='google.ads.google_ads.v4.proto.enums.real_estate_placeholder_field_pb2', + RealTimeBiddingSetting='google.ads.google_ads.v4.proto.common.real_time_bidding_setting_pb2', + Recommendation='google.ads.google_ads.v4.proto.resources.recommendation_pb2', + RecommendationErrorEnum='google.ads.google_ads.v4.proto.errors.recommendation_error_pb2', + RecommendationTypeEnum='google.ads.google_ads.v4.proto.enums.recommendation_type_pb2', + RegionCodeErrorEnum='google.ads.google_ads.v4.proto.errors.region_code_error_pb2', + RemarketingAction='google.ads.google_ads.v4.proto.resources.remarketing_action_pb2', + RemarketingActionOperation='google.ads.google_ads.v4.proto.services.remarketing_action_service_pb2', + RemarketingSetting='google.ads.google_ads.v4.proto.resources.customer_pb2', + RequestErrorEnum='google.ads.google_ads.v4.proto.errors.request_error_pb2', + ResourceAccessDeniedErrorEnum='google.ads.google_ads.v4.proto.errors.resource_access_denied_error_pb2', + ResourceCountLimitExceededErrorEnum='google.ads.google_ads.v4.proto.errors.resource_count_limit_exceeded_error_pb2', + ResponsiveDisplayAdInfo='google.ads.google_ads.v4.proto.common.ad_type_infos_pb2', + ResponsiveSearchAdInfo='google.ads.google_ads.v4.proto.common.ad_type_infos_pb2', + RestatementValue='google.ads.google_ads.v4.proto.services.conversion_adjustment_upload_service_pb2', + RuleBasedUserListInfo='google.ads.google_ads.v4.proto.common.user_lists_pb2', + RunBatchJobRequest='google.ads.google_ads.v4.proto.services.batch_job_service_pb2', + RunOfflineUserDataJobRequest='google.ads.google_ads.v4.proto.services.offline_user_data_job_service_pb2', + SearchEngineResultsPageTypeEnum='google.ads.google_ads.v4.proto.enums.search_engine_results_page_type_pb2', + SearchGoogleAdsFieldsRequest='google.ads.google_ads.v4.proto.services.google_ads_field_service_pb2', + SearchGoogleAdsFieldsResponse='google.ads.google_ads.v4.proto.services.google_ads_field_service_pb2', + SearchGoogleAdsRequest='google.ads.google_ads.v4.proto.services.google_ads_service_pb2', + SearchGoogleAdsResponse='google.ads.google_ads.v4.proto.services.google_ads_service_pb2', + SearchGoogleAdsStreamRequest='google.ads.google_ads.v4.proto.services.google_ads_service_pb2', + SearchGoogleAdsStreamResponse='google.ads.google_ads.v4.proto.services.google_ads_service_pb2', + SearchTermMatchTypeEnum='google.ads.google_ads.v4.proto.enums.search_term_match_type_pb2', + SearchTermTargetingStatusEnum='google.ads.google_ads.v4.proto.enums.search_term_targeting_status_pb2', + SearchTermView='google.ads.google_ads.v4.proto.resources.search_term_view_pb2', + Segments='google.ads.google_ads.v4.proto.common.segments_pb2', + ServedAssetFieldTypeEnum='google.ads.google_ads.v4.proto.enums.served_asset_field_type_pb2', + SettingErrorEnum='google.ads.google_ads.v4.proto.errors.setting_error_pb2', + SharedCriterion='google.ads.google_ads.v4.proto.resources.shared_criterion_pb2', + SharedCriterionErrorEnum='google.ads.google_ads.v4.proto.errors.shared_criterion_error_pb2', + SharedCriterionOperation='google.ads.google_ads.v4.proto.services.shared_criterion_service_pb2', + SharedSet='google.ads.google_ads.v4.proto.resources.shared_set_pb2', + SharedSetErrorEnum='google.ads.google_ads.v4.proto.errors.shared_set_error_pb2', + SharedSetOperation='google.ads.google_ads.v4.proto.services.shared_set_service_pb2', + SharedSetStatusEnum='google.ads.google_ads.v4.proto.enums.shared_set_status_pb2', + SharedSetTypeEnum='google.ads.google_ads.v4.proto.enums.shared_set_type_pb2', + ShoppingComparisonListingAdInfo='google.ads.google_ads.v4.proto.common.ad_type_infos_pb2', + ShoppingPerformanceView='google.ads.google_ads.v4.proto.resources.shopping_performance_view_pb2', + ShoppingProductAdInfo='google.ads.google_ads.v4.proto.common.ad_type_infos_pb2', + ShoppingSmartAdInfo='google.ads.google_ads.v4.proto.common.ad_type_infos_pb2', + SimilarUserListInfo='google.ads.google_ads.v4.proto.common.user_lists_pb2', + SimulationModificationMethodEnum='google.ads.google_ads.v4.proto.enums.simulation_modification_method_pb2', + SimulationTypeEnum='google.ads.google_ads.v4.proto.enums.simulation_type_pb2', + SiteSeed='google.ads.google_ads.v4.proto.services.keyword_plan_idea_service_pb2', + SitelinkFeedItem='google.ads.google_ads.v4.proto.common.extensions_pb2', + SitelinkPlaceholderFieldEnum='google.ads.google_ads.v4.proto.enums.sitelink_placeholder_field_pb2', + SizeLimitErrorEnum='google.ads.google_ads.v4.proto.errors.size_limit_error_pb2', + SlotEnum='google.ads.google_ads.v4.proto.enums.slot_pb2', + SpendingLimitTypeEnum='google.ads.google_ads.v4.proto.enums.spending_limit_type_pb2', + StoreAttribute='google.ads.google_ads.v4.proto.common.offline_user_data_pb2', + StoreSalesMetadata='google.ads.google_ads.v4.proto.common.offline_user_data_pb2', + StoreSalesThirdPartyMetadata='google.ads.google_ads.v4.proto.common.offline_user_data_pb2', + StringFormatErrorEnum='google.ads.google_ads.v4.proto.errors.string_format_error_pb2', + StringLengthErrorEnum='google.ads.google_ads.v4.proto.errors.string_length_error_pb2', + StructuredSnippetFeedItem='google.ads.google_ads.v4.proto.common.extensions_pb2', + StructuredSnippetPlaceholderFieldEnum='google.ads.google_ads.v4.proto.enums.structured_snippet_placeholder_field_pb2', + SuggestGeoTargetConstantsRequest='google.ads.google_ads.v4.proto.services.geo_target_constant_service_pb2', + SuggestGeoTargetConstantsResponse='google.ads.google_ads.v4.proto.services.geo_target_constant_service_pb2', + SummaryRowSettingEnum='google.ads.google_ads.v4.proto.enums.summary_row_setting_pb2', + SystemManagedResourceSourceEnum='google.ads.google_ads.v4.proto.enums.system_managed_entity_source_pb2', + TagSnippet='google.ads.google_ads.v4.proto.common.tag_snippet_pb2', + TargetCpa='google.ads.google_ads.v4.proto.common.bidding_pb2', + TargetCpaOptInRecommendationGoalEnum='google.ads.google_ads.v4.proto.enums.target_cpa_opt_in_recommendation_goal_pb2', + TargetCpaSimulationPoint='google.ads.google_ads.v4.proto.common.simulation_pb2', + TargetCpaSimulationPointList='google.ads.google_ads.v4.proto.common.simulation_pb2', + TargetCpm='google.ads.google_ads.v4.proto.common.bidding_pb2', + TargetImpressionShare='google.ads.google_ads.v4.proto.common.bidding_pb2', + TargetImpressionShareLocationEnum='google.ads.google_ads.v4.proto.enums.target_impression_share_location_pb2', + TargetRestriction='google.ads.google_ads.v4.proto.common.targeting_setting_pb2', + TargetRestrictionOperation='google.ads.google_ads.v4.proto.common.targeting_setting_pb2', + TargetRoas='google.ads.google_ads.v4.proto.common.bidding_pb2', + TargetRoasSimulationPoint='google.ads.google_ads.v4.proto.common.simulation_pb2', + TargetRoasSimulationPointList='google.ads.google_ads.v4.proto.common.simulation_pb2', + TargetSpend='google.ads.google_ads.v4.proto.common.bidding_pb2', + Targeting='google.ads.google_ads.v4.proto.services.reach_plan_service_pb2', + TargetingDimensionEnum='google.ads.google_ads.v4.proto.enums.targeting_dimension_pb2', + TargetingSetting='google.ads.google_ads.v4.proto.common.targeting_setting_pb2', + TextAdInfo='google.ads.google_ads.v4.proto.common.ad_type_infos_pb2', + TextAsset='google.ads.google_ads.v4.proto.common.asset_types_pb2', + TextLabel='google.ads.google_ads.v4.proto.common.text_label_pb2', + TextMessageFeedItem='google.ads.google_ads.v4.proto.common.extensions_pb2', + ThirdPartyAppAnalyticsLink='google.ads.google_ads.v4.proto.resources.third_party_app_analytics_link_pb2', + ThirdPartyAppAnalyticsLinkIdentifier='google.ads.google_ads.v4.proto.resources.account_link_pb2', + TimeTypeEnum='google.ads.google_ads.v4.proto.enums.time_type_pb2', + TimeZoneErrorEnum='google.ads.google_ads.v4.proto.errors.time_zone_error_pb2', + TopicConstant='google.ads.google_ads.v4.proto.resources.topic_constant_pb2', + TopicInfo='google.ads.google_ads.v4.proto.common.criteria_pb2', + TopicView='google.ads.google_ads.v4.proto.resources.topic_view_pb2', + TrackingCodePageFormatEnum='google.ads.google_ads.v4.proto.enums.tracking_code_page_format_pb2', + TrackingCodeTypeEnum='google.ads.google_ads.v4.proto.enums.tracking_code_type_pb2', + TransactionAttribute='google.ads.google_ads.v4.proto.common.offline_user_data_pb2', + TravelPlaceholderFieldEnum='google.ads.google_ads.v4.proto.enums.travel_placeholder_field_pb2', + UnknownListingDimensionInfo='google.ads.google_ads.v4.proto.common.criteria_pb2', + UploadCallConversionsRequest='google.ads.google_ads.v4.proto.services.conversion_upload_service_pb2', + UploadCallConversionsResponse='google.ads.google_ads.v4.proto.services.conversion_upload_service_pb2', + UploadClickConversionsRequest='google.ads.google_ads.v4.proto.services.conversion_upload_service_pb2', + UploadClickConversionsResponse='google.ads.google_ads.v4.proto.services.conversion_upload_service_pb2', + UploadConversionAdjustmentsRequest='google.ads.google_ads.v4.proto.services.conversion_adjustment_upload_service_pb2', + UploadConversionAdjustmentsResponse='google.ads.google_ads.v4.proto.services.conversion_adjustment_upload_service_pb2', + UploadUserDataRequest='google.ads.google_ads.v4.proto.services.user_data_service_pb2', + UploadUserDataResponse='google.ads.google_ads.v4.proto.services.user_data_service_pb2', + UrlCollection='google.ads.google_ads.v4.proto.common.url_collection_pb2', + UrlFieldErrorEnum='google.ads.google_ads.v4.proto.errors.url_field_error_pb2', + UrlSeed='google.ads.google_ads.v4.proto.services.keyword_plan_idea_service_pb2', + UserData='google.ads.google_ads.v4.proto.common.offline_user_data_pb2', + UserDataErrorEnum='google.ads.google_ads.v4.proto.errors.user_data_error_pb2', + UserDataOperation='google.ads.google_ads.v4.proto.services.user_data_service_pb2', + UserIdentifier='google.ads.google_ads.v4.proto.common.offline_user_data_pb2', + UserInterest='google.ads.google_ads.v4.proto.resources.user_interest_pb2', + UserInterestInfo='google.ads.google_ads.v4.proto.common.criteria_pb2', + UserInterestTaxonomyTypeEnum='google.ads.google_ads.v4.proto.enums.user_interest_taxonomy_type_pb2', + UserList='google.ads.google_ads.v4.proto.resources.user_list_pb2', + UserListAccessStatusEnum='google.ads.google_ads.v4.proto.enums.user_list_access_status_pb2', + UserListActionInfo='google.ads.google_ads.v4.proto.common.user_lists_pb2', + UserListClosingReasonEnum='google.ads.google_ads.v4.proto.enums.user_list_closing_reason_pb2', + UserListCombinedRuleOperatorEnum='google.ads.google_ads.v4.proto.enums.user_list_combined_rule_operator_pb2', + UserListCrmDataSourceTypeEnum='google.ads.google_ads.v4.proto.enums.user_list_crm_data_source_type_pb2', + UserListDateRuleItemInfo='google.ads.google_ads.v4.proto.common.user_lists_pb2', + UserListDateRuleItemOperatorEnum='google.ads.google_ads.v4.proto.enums.user_list_date_rule_item_operator_pb2', + UserListErrorEnum='google.ads.google_ads.v4.proto.errors.user_list_error_pb2', + UserListInfo='google.ads.google_ads.v4.proto.common.criteria_pb2', + UserListLogicalRuleInfo='google.ads.google_ads.v4.proto.common.user_lists_pb2', + UserListLogicalRuleOperatorEnum='google.ads.google_ads.v4.proto.enums.user_list_logical_rule_operator_pb2', + UserListMembershipStatusEnum='google.ads.google_ads.v4.proto.enums.user_list_membership_status_pb2', + UserListNumberRuleItemInfo='google.ads.google_ads.v4.proto.common.user_lists_pb2', + UserListNumberRuleItemOperatorEnum='google.ads.google_ads.v4.proto.enums.user_list_number_rule_item_operator_pb2', + UserListOperation='google.ads.google_ads.v4.proto.services.user_list_service_pb2', + UserListPrepopulationStatusEnum='google.ads.google_ads.v4.proto.enums.user_list_prepopulation_status_pb2', + UserListRuleInfo='google.ads.google_ads.v4.proto.common.user_lists_pb2', + UserListRuleItemGroupInfo='google.ads.google_ads.v4.proto.common.user_lists_pb2', + UserListRuleItemInfo='google.ads.google_ads.v4.proto.common.user_lists_pb2', + UserListRuleTypeEnum='google.ads.google_ads.v4.proto.enums.user_list_rule_type_pb2', + UserListSizeRangeEnum='google.ads.google_ads.v4.proto.enums.user_list_size_range_pb2', + UserListStringRuleItemInfo='google.ads.google_ads.v4.proto.common.user_lists_pb2', + UserListStringRuleItemOperatorEnum='google.ads.google_ads.v4.proto.enums.user_list_string_rule_item_operator_pb2', + UserListTypeEnum='google.ads.google_ads.v4.proto.enums.user_list_type_pb2', + UserLocationView='google.ads.google_ads.v4.proto.resources.user_location_view_pb2', + Value='google.ads.google_ads.v4.proto.common.value_pb2', + VanityPharmaDisplayUrlModeEnum='google.ads.google_ads.v4.proto.enums.vanity_pharma_display_url_mode_pb2', + VanityPharmaTextEnum='google.ads.google_ads.v4.proto.enums.vanity_pharma_text_pb2', + Video='google.ads.google_ads.v4.proto.resources.video_pb2', + VideoAdInfo='google.ads.google_ads.v4.proto.common.ad_type_infos_pb2', + VideoBumperInStreamAdInfo='google.ads.google_ads.v4.proto.common.ad_type_infos_pb2', + VideoNonSkippableInStreamAdInfo='google.ads.google_ads.v4.proto.common.ad_type_infos_pb2', + VideoOutstreamAdInfo='google.ads.google_ads.v4.proto.common.ad_type_infos_pb2', + VideoTrueViewDiscoveryAdInfo='google.ads.google_ads.v4.proto.common.ad_type_infos_pb2', + VideoTrueViewInStreamAdInfo='google.ads.google_ads.v4.proto.common.ad_type_infos_pb2', + WebpageConditionInfo='google.ads.google_ads.v4.proto.common.criteria_pb2', + WebpageConditionOperandEnum='google.ads.google_ads.v4.proto.enums.webpage_condition_operand_pb2', + WebpageConditionOperatorEnum='google.ads.google_ads.v4.proto.enums.webpage_condition_operator_pb2', + WebpageInfo='google.ads.google_ads.v4.proto.common.criteria_pb2', + YouTubeChannelInfo='google.ads.google_ads.v4.proto.common.criteria_pb2', + YouTubeVideoInfo='google.ads.google_ads.v4.proto.common.criteria_pb2', + YoutubeVideoAsset='google.ads.google_ads.v4.proto.common.asset_types_pb2', + YoutubeVideoRegistrationErrorEnum='google.ads.google_ads.v4.proto.errors.youtube_video_registration_error_pb2', +) + + +DEPENDENT_MODULE_LIST = [ + 'google.longrunning.operations_pb2', + 'google.protobuf.any_pb2', + 'google.protobuf.empty_pb2', + 'google.protobuf.field_mask_pb2', + 'google.protobuf.wrappers_pb2', + 'google.rpc.status_pb2'] + +def _get_class_from_module(module_name): + module = importlib.import_module(module_name) + for class_name in get_messages(module).keys(): # from inspect module + yield class_name + +def _populate_dependent_classes(module_list = DEPENDENT_MODULE_LIST): + class_list = {} + for module_name in module_list: + for cls in _get_class_from_module(module_name): + class_list[cls] = module_name + return class_list + +_lazy_dependent_class_to_package_map = _populate_dependent_classes() + +def _load_module(module_name): + """Load a module by it's name. + + Args: + module_name: a str of the name of a sub-module to load. + + Returns: + A module class instance. + + Raises: + AttributeError if the given module can't be found. + """ + try: + if module_name in _lazy_name_to_package_map: + module_path = f'{_lazy_name_to_package_map[module_name]}.{module_name}' + else: + module_path = module_name + return importlib.import_module(module_path) + except KeyError: + raise AttributeError(f'unknown sub-module {module_name!r}.') + + +def _get_module_by_name(module_name): + """Get a module containing one or more message classes. + + For example: google.ads.google_ads.v2.proto.services.video_service_pb2. + + Args: + module_name: a str of the name of a module. + + Returns: + a module class instance. + """ + module = _load_module(module_name) + globals()[module_name] = module + + for name, message in get_messages(module).items(): + if name.endswith('_service_pb2'): + message.__module__ = 'google.ads.google_ads.v2.types' + globals()[name] = message + + return module + + +def _get_message_class_by_name(class_name): + """Get a message class instance by name. + + For example: VideoService + + Args: + module_name: a str of the name of a protobuf class to load. + + Returns: + a protobuf message class definition that inherits from + google.protobuf.pyext.cpp_message.GeneratedProtocolMessageType. + """ + if class_name in _lazy_dependent_class_to_package_map: + module_path = _lazy_dependent_class_to_package_map[class_name] + elif class_name in _lazy_class_to_package_map: + module_path = _lazy_class_to_package_map[class_name] + else: + raise AttributeError(f'unknown sub-module {class_name!r}.') + + try: + module = _load_module(module_path) + message = getattr(module, class_name) + except AttributeError: + raise AttributeError(f'unknown message class {class_name!r}.') + + if class_name.endswith('Service'): + message.__module__ = 'google.ads.google_ads.v2.types' + + globals()[class_name] = message + return message + + +# Background on how this behaves: https://www.python.org/dev/peps/pep-0562/ +def __getattr__(name): # Requires Python >= 3.7 + """Lazily perform imports and class definitions on first demand.""" + if name == '__all__': + converted = (util.convert_snake_case_to_upper_case(key) for + key in chain(_lazy_name_to_package_map, + _lazy_class_to_package_map, + _lazy_dependent_class_to_package_map)) + all_names = sorted(converted) + globals()['__all__'] = all_names + return all_names + elif name.endswith('_pb2'): + return _get_module_by_name(name) + elif name.endswith('Pb2'): + module_name = f'{util.convert_upper_case_to_snake_case(name)}' + return _get_module_by_name(module_name) + else: + return _get_message_class_by_name(name) + + +def __dir__(): + return globals().get('__all__') or __getattr__('__all__') diff --git a/setup.py b/setup.py index c68349034..76928b1d3 100644 --- a/setup.py +++ b/setup.py @@ -34,7 +34,7 @@ setup( name='google-ads', - version='5.1.0', + version='6.0.0', author='Google LLC', author_email='googleapis-packages@google.com', classifiers=[ diff --git a/tests/client_test.py b/tests/client_test.py index f5338fb66..2a72eaca3 100644 --- a/tests/client_test.py +++ b/tests/client_test.py @@ -360,7 +360,7 @@ def test_get_service(self): # Iterate through retrieval of all service clients by name. for service_name in service_names: - client.get_service(service_name) + client.get_service(service_name, version=ver) def test_get_service_custom_endpoint(self): service_name = 'GoogleAdsService'